Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Refactor project to use packaged version of our react component

Roland Geider909361f6ec0b
diff --git a/.yarnrc.yml b/.yarnrc.yml
deleted file mode 100644
index 3186f3f07..000000000
--- a/.yarnrc.yml
+++ /dev/null
@@ -1 +0,0 @@
-nodeLinker: node-modules
diff --git a/extras/docker/demo/Dockerfile b/extras/docker/demo/Dockerfile
index 9466c5ecb..01fcee711 100644
--- a/extras/docker/demo/Dockerfile
+++ b/extras/docker/demo/Dockerfile
@@ -36,8 +36,7 @@ RUN wget -O- https://deb.nodesource.com/setup_22.x | bash - \
sassc \
nodejs \
&& ln -s /usr/bin/sassc /usr/bin/sass \
- && rm -rf /var/lib/apt/lists/* \
- && corepack enable
+ && rm -rf /var/lib/apt/lists/*
# Build the necessary python wheels
# Note that the --mount is a workaround for https://github.com/rust-lang/cargo/issues/8719
@@ -48,11 +47,12 @@ COPY wger/version.py /home/wger/src/wger/
COPY wger/__init__.py /home/wger/src/wger/
COPY README.md /home/wger/src
COPY package.json /home/wger/src
-COPY yarn.lock /home/wger/src
+COPY package-lock.json /home/wger/src
COPY wger/core/static /home/wger/src/wger/core/static
-RUN --mount=type=tmpfs,target=/root/.cargo pip3 wheel --no-cache-dir --wheel-dir /wheels --group docker . \
- && yarn install \
- && yarn build:css:sass
+RUN --mount=type=tmpfs,target=/root/.cargo pip3 wheel --no-cache-dir --wheel-dir /wheels --group docker .
+RUN cat package.json \
+ && npm install \
+ && npm run build:css:sass
########
@@ -94,7 +94,7 @@ RUN chmod 0644 /etc/cron.d/wger \
&& touch /var/log/cron.log
COPY --chown=wger:www-data . /home/wger/src
-COPY --from=builder --chown=wger:wger /home/wger/src/wger/core/static/yarn /home/wger/src/wger/core/static/yarn
+COPY --from=builder --chown=wger:wger /home/wger/src/wger/node_modules /home/wger/src/wger/node_modules
# Set up the application
RUN ln -s /home/wger/static/CACHE /var/www
diff --git a/extras/docker/development/Dockerfile b/extras/docker/development/Dockerfile
index 651006474..41c437cf8 100644
--- a/extras/docker/development/Dockerfile
+++ b/extras/docker/development/Dockerfile
@@ -18,11 +18,10 @@ RUN wget -O- https://deb.nodesource.com/setup_22.x | bash - \
sassc \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
- && ln -s /usr/bin/yarnpkg /usr/bin/yarn \
&& ln -s /usr/bin/sassc /usr/bin/sass
USER wger
COPY --chown=wger:wger . /home/wger/src
-RUN yarn install:force \
- && yarn build:css:sass \
+RUN npm install \
+ && npm run build:css:sass \
&& pip3 install --break-system-packages --user --group dev --editable .
diff --git a/extras/docker/production/Dockerfile b/extras/docker/production/Dockerfile
index 4b0d0b5bb..d9c651ff9 100644
--- a/extras/docker/production/Dockerfile
+++ b/extras/docker/production/Dockerfile
@@ -32,7 +32,6 @@ RUN wget -O- https://deb.nodesource.com/setup_22.x | bash - \
unzip \
nodejs \
&& rm -rf /var/lib/apt/lists/* \
- && corepack enable \
&& mkdir -p /root/src/wger/core/static
@@ -42,33 +41,22 @@ RUN wget -O- https://deb.nodesource.com/setup_22.x | bash - \
WORKDIR /root/src
# Build the application
-COPY pyproject.toml /root/src
-COPY wger/version.py /root/src/wger/
-COPY wger/__init__.py /root/src/wger/
-COPY README.md /root/src
+COPY pyproject.toml README.md /root/src/
+COPY wger/version.py wger/__init__.py /root/src/wger/
# NB: the --mount tmpfs is a workaround for https://github.com/rust-lang/cargo/issues/8719
-RUN --mount=type=tmpfs,target=/root/.cargo \
- pip3 wheel \
+# --mount=type=tmpfs,target=/root/.cargo \
+RUN pip3 wheel \
--no-cache-dir \
--wheel-dir /wheels \
--group docker . \
&& ln -s /usr/bin/sassc /usr/bin/sass
# Build the JS and CSS files
-COPY package.json yarn.lock .yarnrc.yml ./
+COPY package.json package-lock.json ./
COPY wger/core/static /root/src/wger/core/static
-RUN yarn install \
- && yarn build:css:sass \
- && cd .. \
- && wget https://github.com/wger-project/react/archive/refs/heads/master.zip \
- && unzip master.zip \
- && cd react-master \
- && yarn config set --home enableTelemetry 0 \
- && yarn config set nodeLinker node-modules \
- && yarn install \
- && WGER_STATIC_FOLDER="/root/src/wger/core/static/react" yarn build
-
+RUN npm install \
+ && npm run build:css:sass
########
# Final
@@ -88,8 +76,7 @@ EXPOSE 8000
# Set up the application
COPY --chown=wger:wger . /home/wger/src
-COPY --chown=wger:wger --from=builder /root/src/wger/core/static/yarn /home/wger/src/wger/core/static/yarn
-COPY --chown=wger:wger --from=builder /root/src/wger/core/static/react /home/wger/src/wger/core/static/react
+COPY --chown=wger:wger --from=builder /root/src/node_modules /home/wger/src/wger/node_modules
COPY ${DOCKER_DIR}/settings.py /home/wger/src
COPY ${DOCKER_DIR}/settings.py /tmp/
COPY ${DOCKER_DIR}/entrypoint.sh /home/wger/entrypoint.sh
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 000000000..f43932493
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,4014 @@
+{
+ "name": "wger",
+ "version": "2.4.alpha1",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "wger",
+ "version": "2.4.alpha1",
+ "license": "AGPL-3.0",
+ "dependencies": {
+ "@popperjs/core": "^2.11.8",
+ "@wger-project/react-components": "0.1.4",
+ "bootstrap": "5.3.8",
+ "components-font-awesome": "5.9.0",
+ "datatables.net-bs5": "^2.3.4",
+ "devbridge-autocomplete": "^1.5.0",
+ "htmx.org": "^2.0.7",
+ "jquery": "^3.7.1",
+ "masonry-layout": "^4.2.2",
+ "popper.js": "^1.16.1"
+ }
+ },
+ "node_modules/@babel/code-frame": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz",
+ "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.27.1",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/compat-data": {
+ "version": "7.28.4",
+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.4.tgz",
+ "integrity": "sha512-YsmSKC29MJwf0gF8Rjjrg5LQCmyh+j/nD8/eP7f+BeoQTKYqs9RoWbjGOdy0+1Ekr68RJZMUOPVQaQisnIo4Rw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/core": {
+ "version": "7.28.4",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.4.tgz",
+ "integrity": "sha512-2BCOP7TN8M+gVDj7/ht3hsaO/B/n5oDbiAyyvnRlNOs+u1o+JWNYTQrmpuNp1/Wq2gcFrI01JAW+paEKDMx/CA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.27.1",
+ "@babel/generator": "^7.28.3",
+ "@babel/helper-compilation-targets": "^7.27.2",
+ "@babel/helper-module-transforms": "^7.28.3",
+ "@babel/helpers": "^7.28.4",
+ "@babel/parser": "^7.28.4",
+ "@babel/template": "^7.27.2",
+ "@babel/traverse": "^7.28.4",
+ "@babel/types": "^7.28.4",
+ "@jridgewell/remapping": "^2.3.5",
+ "convert-source-map": "^2.0.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.2",
+ "json5": "^2.2.3",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/babel"
+ }
+ },
+ "node_modules/@babel/core/node_modules/convert-source-map": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
+ "license": "MIT"
+ },
+ "node_modules/@babel/generator": {
+ "version": "7.28.3",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.3.tgz",
+ "integrity": "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.28.3",
+ "@babel/types": "^7.28.2",
+ "@jridgewell/gen-mapping": "^0.3.12",
+ "@jridgewell/trace-mapping": "^0.3.28",
+ "jsesc": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets": {
+ "version": "7.27.2",
+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz",
+ "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/compat-data": "^7.27.2",
+ "@babel/helper-validator-option": "^7.27.1",
+ "browserslist": "^4.24.0",
+ "lru-cache": "^5.1.1",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-globals": {
+ "version": "7.28.0",
+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",
+ "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-imports": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz",
+ "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/traverse": "^7.27.1",
+ "@babel/types": "^7.27.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-transforms": {
+ "version": "7.28.3",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz",
+ "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.27.1",
+ "@babel/helper-validator-identifier": "^7.27.1",
+ "@babel/traverse": "^7.28.3"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-plugin-utils": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz",
+ "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-string-parser": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
+ "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz",
+ "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-option": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",
+ "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helpers": {
+ "version": "7.28.4",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.4.tgz",
+ "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/template": "^7.27.2",
+ "@babel/types": "^7.28.4"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.28.4",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.4.tgz",
+ "integrity": "sha512-yZbBqeM6TkpP9du/I2pUZnJsRMGGvOuIrhjzC1AwHwW+6he4mni6Bp/m8ijn0iOuZuPI2BfkCoSRunpyjnrQKg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.28.4"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-react-jsx-self": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz",
+ "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.27.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-react-jsx-source": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz",
+ "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.27.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/runtime": {
+ "version": "7.28.4",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.4.tgz",
+ "integrity": "sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/template": {
+ "version": "7.27.2",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz",
+ "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.27.1",
+ "@babel/parser": "^7.27.2",
+ "@babel/types": "^7.27.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/traverse": {
+ "version": "7.28.4",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.4.tgz",
+ "integrity": "sha512-YEzuboP2qvQavAcjgQNVgsvHIDv6ZpwXvcvjmyySP2DIMuByS/6ioU5G9pYrWHM6T2YDfc7xga9iNzYOs12CFQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.27.1",
+ "@babel/generator": "^7.28.3",
+ "@babel/helper-globals": "^7.28.0",
+ "@babel/parser": "^7.28.4",
+ "@babel/template": "^7.27.2",
+ "@babel/types": "^7.28.4",
+ "debug": "^4.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/types": {
+ "version": "7.28.4",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.4.tgz",
+ "integrity": "sha512-bkFqkLhh3pMBUQQkpVgWDWq/lqzc2678eUyDlTBhRqhCHFguYYGM0Efga7tYk4TogG/3x0EEl66/OQ+WGbWB/Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.27.1",
+ "@babel/helper-validator-identifier": "^7.27.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@emotion/babel-plugin": {
+ "version": "11.13.5",
+ "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.13.5.tgz",
+ "integrity": "sha512-pxHCpT2ex+0q+HH91/zsdHkw/lXd468DIN2zvfvLtPKLLMo6gQj7oLObq8PhkrxOZb/gGCq03S3Z7PDhS8pduQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.16.7",
+ "@babel/runtime": "^7.18.3",
+ "@emotion/hash": "^0.9.2",
+ "@emotion/memoize": "^0.9.0",
+ "@emotion/serialize": "^1.3.3",
+ "babel-plugin-macros": "^3.1.0",
+ "convert-source-map": "^1.5.0",
+ "escape-string-regexp": "^4.0.0",
+ "find-root": "^1.1.0",
+ "source-map": "^0.5.7",
+ "stylis": "4.2.0"
+ }
+ },
+ "node_modules/@emotion/cache": {
+ "version": "11.14.0",
+ "resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-11.14.0.tgz",
+ "integrity": "sha512-L/B1lc/TViYk4DcpGxtAVbx0ZyiKM5ktoIyafGkH6zg/tj+mA+NE//aPYKG0k8kCHSHVJrpLpcAlOBEXQ3SavA==",
+ "license": "MIT",
+ "dependencies": {
+ "@emotion/memoize": "^0.9.0",
+ "@emotion/sheet": "^1.4.0",
+ "@emotion/utils": "^1.4.2",
+ "@emotion/weak-memoize": "^0.4.0",
+ "stylis": "4.2.0"
+ }
+ },
+ "node_modules/@emotion/hash": {
+ "version": "0.9.2",
+ "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.2.tgz",
+ "integrity": "sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g==",
+ "license": "MIT"
+ },
+ "node_modules/@emotion/is-prop-valid": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.4.0.tgz",
+ "integrity": "sha512-QgD4fyscGcbbKwJmqNvUMSE02OsHUa+lAWKdEUIJKgqe5IwRSKd7+KhibEWdaKwgjLj0DRSHA9biAIqGBk05lw==",
+ "license": "MIT",
+ "dependencies": {
+ "@emotion/memoize": "^0.9.0"
+ }
+ },
+ "node_modules/@emotion/memoize": {
+ "version": "0.9.0",
+ "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.9.0.tgz",
+ "integrity": "sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==",
+ "license": "MIT"
+ },
+ "node_modules/@emotion/react": {
+ "version": "11.14.0",
+ "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.14.0.tgz",
+ "integrity": "sha512-O000MLDBDdk/EohJPFUqvnp4qnHeYkVP5B0xEG0D/L7cOKP9kefu2DXn8dj74cQfsEzUqh+sr1RzFqiL1o+PpA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.18.3",
+ "@emotion/babel-plugin": "^11.13.5",
+ "@emotion/cache": "^11.14.0",
+ "@emotion/serialize": "^1.3.3",
+ "@emotion/use-insertion-effect-with-fallbacks": "^1.2.0",
+ "@emotion/utils": "^1.4.2",
+ "@emotion/weak-memoize": "^0.4.0",
+ "hoist-non-react-statics": "^3.3.1"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@emotion/serialize": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/@emotion/serialize/-/serialize-1.3.3.tgz",
+ "integrity": "sha512-EISGqt7sSNWHGI76hC7x1CksiXPahbxEOrC5RjmFRJTqLyEK9/9hZvBbiYn70dw4wuwMKiEMCUlR6ZXTSWQqxA==",
+ "license": "MIT",
+ "dependencies": {
+ "@emotion/hash": "^0.9.2",
+ "@emotion/memoize": "^0.9.0",
+ "@emotion/unitless": "^0.10.0",
+ "@emotion/utils": "^1.4.2",
+ "csstype": "^3.0.2"
+ }
+ },
+ "node_modules/@emotion/sheet": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.4.0.tgz",
+ "integrity": "sha512-fTBW9/8r2w3dXWYM4HCB1Rdp8NLibOw2+XELH5m5+AkWiL/KqYX6dc0kKYlaYyKjrQ6ds33MCdMPEwgs2z1rqg==",
+ "license": "MIT"
+ },
+ "node_modules/@emotion/styled": {
+ "version": "11.14.1",
+ "resolved": "https://registry.npmjs.org/@emotion/styled/-/styled-11.14.1.tgz",
+ "integrity": "sha512-qEEJt42DuToa3gurlH4Qqc1kVpNq8wO8cJtDzU46TjlzWjDlsVyevtYCRijVq3SrHsROS+gVQ8Fnea108GnKzw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.18.3",
+ "@emotion/babel-plugin": "^11.13.5",
+ "@emotion/is-prop-valid": "^1.3.0",
+ "@emotion/serialize": "^1.3.3",
+ "@emotion/use-insertion-effect-with-fallbacks": "^1.2.0",
+ "@emotion/utils": "^1.4.2"
+ },
+ "peerDependencies": {
+ "@emotion/react": "^11.0.0-rc.0",
+ "react": ">=16.8.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@emotion/unitless": {
+ "version": "0.10.0",
+ "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.10.0.tgz",
+ "integrity": "sha512-dFoMUuQA20zvtVTuxZww6OHoJYgrzfKM1t52mVySDJnMSEa08ruEvdYQbhvyu6soU+NeLVd3yKfTfT0NeV6qGg==",
+ "license": "MIT"
+ },
+ "node_modules/@emotion/use-insertion-effect-with-fallbacks": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@emotion/use-insertion-effect-with-fallbacks/-/use-insertion-effect-with-fallbacks-1.2.0.tgz",
+ "integrity": "sha512-yJMtVdH59sxi/aVJBpk9FQq+OR8ll5GT8oWd57UpeaKEVGab41JWaCFA7FRLoMLloOZF/c/wsPoe+bfGmRKgDg==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": ">=16.8.0"
+ }
+ },
+ "node_modules/@emotion/utils": {
+ "version": "1.4.2",
+ "resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-1.4.2.tgz",
+ "integrity": "sha512-3vLclRofFziIa3J2wDh9jjbkUz9qk5Vi3IZ/FSTKViB0k+ef0fPV7dYrUIugbgupYDx7v9ud/SjrtEP8Y4xLoA==",
+ "license": "MIT"
+ },
+ "node_modules/@emotion/weak-memoize": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.4.0.tgz",
+ "integrity": "sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg==",
+ "license": "MIT"
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.10.tgz",
+ "integrity": "sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw==",
+ "cpu": [
+ "ppc64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.10.tgz",
+ "integrity": "sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.10.tgz",
+ "integrity": "sha512-LSQa7eDahypv/VO6WKohZGPSJDq5OVOo3UoFR1E4t4Gj1W7zEQMUhI+lo81H+DtB+kP+tDgBp+M4oNCwp6kffg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.10.tgz",
+ "integrity": "sha512-MiC9CWdPrfhibcXwr39p9ha1x0lZJ9KaVfvzA0Wxwz9ETX4v5CHfF09bx935nHlhi+MxhA63dKRRQLiVgSUtEg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.10.tgz",
+ "integrity": "sha512-JC74bdXcQEpW9KkV326WpZZjLguSZ3DfS8wrrvPMHgQOIEIG/sPXEN/V8IssoJhbefLRcRqw6RQH2NnpdprtMA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.10.tgz",
+ "integrity": "sha512-tguWg1olF6DGqzws97pKZ8G2L7Ig1vjDmGTwcTuYHbuU6TTjJe5FXbgs5C1BBzHbJ2bo1m3WkQDbWO2PvamRcg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.10.tgz",
+ "integrity": "sha512-3ZioSQSg1HT2N05YxeJWYR+Libe3bREVSdWhEEgExWaDtyFbbXWb49QgPvFH8u03vUPX10JhJPcz7s9t9+boWg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.10.tgz",
+ "integrity": "sha512-LLgJfHJk014Aa4anGDbh8bmI5Lk+QidDmGzuC2D+vP7mv/GeSN+H39zOf7pN5N8p059FcOfs2bVlrRr4SK9WxA==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.10.tgz",
+ "integrity": "sha512-oR31GtBTFYCqEBALI9r6WxoU/ZofZl962pouZRTEYECvNF/dtXKku8YXcJkhgK/beU+zedXfIzHijSRapJY3vg==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.10.tgz",
+ "integrity": "sha512-5luJWN6YKBsawd5f9i4+c+geYiVEw20FVW5x0v1kEMWNq8UctFjDiMATBxLvmmHA4bf7F6hTRaJgtghFr9iziQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.10.tgz",
+ "integrity": "sha512-NrSCx2Kim3EnnWgS4Txn0QGt0Xipoumb6z6sUtl5bOEZIVKhzfyp/Lyw4C1DIYvzeW/5mWYPBFJU3a/8Yr75DQ==",
+ "cpu": [
+ "ia32"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.10.tgz",
+ "integrity": "sha512-xoSphrd4AZda8+rUDDfD9J6FUMjrkTz8itpTITM4/xgerAZZcFW7Dv+sun7333IfKxGG8gAq+3NbfEMJfiY+Eg==",
+ "cpu": [
+ "loong64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.10.tgz",
+ "integrity": "sha512-ab6eiuCwoMmYDyTnyptoKkVS3k8fy/1Uvq7Dj5czXI6DF2GqD2ToInBI0SHOp5/X1BdZ26RKc5+qjQNGRBelRA==",
+ "cpu": [
+ "mips64el"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.10.tgz",
+ "integrity": "sha512-NLinzzOgZQsGpsTkEbdJTCanwA5/wozN9dSgEl12haXJBzMTpssebuXR42bthOF3z7zXFWH1AmvWunUCkBE4EA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.10.tgz",
+ "integrity": "sha512-FE557XdZDrtX8NMIeA8LBJX3dC2M8VGXwfrQWU7LB5SLOajfJIxmSdyL/gU1m64Zs9CBKvm4UAuBp5aJ8OgnrA==",
+ "cpu": [
+ "riscv64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.10.tgz",
+ "integrity": "sha512-3BBSbgzuB9ajLoVZk0mGu+EHlBwkusRmeNYdqmznmMc9zGASFjSsxgkNsqmXugpPk00gJ0JNKh/97nxmjctdew==",
+ "cpu": [
+ "s390x"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.10.tgz",
+ "integrity": "sha512-QSX81KhFoZGwenVyPoberggdW1nrQZSvfVDAIUXr3WqLRZGZqWk/P4T8p2SP+de2Sr5HPcvjhcJzEiulKgnxtA==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.10.tgz",
+ "integrity": "sha512-AKQM3gfYfSW8XRk8DdMCzaLUFB15dTrZfnX8WXQoOUpUBQ+NaAFCP1kPS/ykbbGYz7rxn0WS48/81l9hFl3u4A==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.10.tgz",
+ "integrity": "sha512-7RTytDPGU6fek/hWuN9qQpeGPBZFfB4zZgcz2VK2Z5VpdUxEI8JKYsg3JfO0n/Z1E/6l05n0unDCNc4HnhQGig==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.10.tgz",
+ "integrity": "sha512-5Se0VM9Wtq797YFn+dLimf2Zx6McttsH2olUBsDml+lm0GOCRVebRWUvDtkY4BWYv/3NgzS8b/UM3jQNh5hYyw==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.10.tgz",
+ "integrity": "sha512-XkA4frq1TLj4bEMB+2HnI0+4RnjbuGZfet2gs/LNs5Hc7D89ZQBHQ0gL2ND6Lzu1+QVkjp3x1gIcPKzRNP8bXw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openharmony-arm64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.10.tgz",
+ "integrity": "sha512-AVTSBhTX8Y/Fz6OmIVBip9tJzZEUcY8WLh7I59+upa5/GPhh2/aM6bvOMQySspnCCHvFi79kMtdJS1w0DXAeag==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.10.tgz",
+ "integrity": "sha512-fswk3XT0Uf2pGJmOpDB7yknqhVkJQkAQOcW/ccVOtfx05LkbWOaRAtn5SaqXypeKQra1QaEa841PgrSL9ubSPQ==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.10.tgz",
+ "integrity": "sha512-ah+9b59KDTSfpaCg6VdJoOQvKjI33nTaQr4UluQwW7aEwZQsbMCfTmfEO4VyewOxx4RaDT/xCy9ra2GPWmO7Kw==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.10.tgz",
+ "integrity": "sha512-QHPDbKkrGO8/cz9LKVnJU22HOi4pxZnZhhA2HYHez5Pz4JeffhDjf85E57Oyco163GnzNCVkZK0b/n4Y0UHcSw==",
+ "cpu": [
+ "ia32"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.10.tgz",
+ "integrity": "sha512-9KpxSVFCu0iK1owoez6aC/s/EdUQLDN3adTxGCqxMVhrPDj6bt5dbrHDXUuq+Bs2vATFBBrQS5vdQ/Ed2P+nbw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@hello-pangea/dnd": {
+ "version": "18.0.1",
+ "resolved": "https://registry.npmjs.org/@hello-pangea/dnd/-/dnd-18.0.1.tgz",
+ "integrity": "sha512-xojVWG8s/TGrKT1fC8K2tIWeejJYTAeJuj36zM//yEm/ZrnZUSFGS15BpO+jGZT1ybWvyXmeDJwPYb4dhWlbZQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime": "^7.26.7",
+ "css-box-model": "^1.2.1",
+ "raf-schd": "^4.0.3",
+ "react-redux": "^9.2.0",
+ "redux": "^5.0.1"
+ },
+ "peerDependencies": {
+ "react": "^18.0.0 || ^19.0.0",
+ "react-dom": "^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.13",
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/remapping": {
+ "version": "2.3.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.5.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.31",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@mui/core-downloads-tracker": {
+ "version": "7.3.4",
+ "resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-7.3.4.tgz",
+ "integrity": "sha512-BIktMapG3r4iXwIhYNpvk97ZfYWTreBBQTWjQKbNbzI64+ULHfYavQEX2w99aSWHS58DvXESWIgbD9adKcUOBw==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/mui-org"
+ }
+ },
+ "node_modules/@mui/icons-material": {
+ "version": "7.3.4",
+ "resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-7.3.4.tgz",
+ "integrity": "sha512-9n6Xcq7molXWYb680N2Qx+FRW8oT6j/LXF5PZFH3ph9X/Rct0B/BlLAsFI7iL9ySI6LVLuQIVtrLiPT82R7OZw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.28.4"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/mui-org"
+ },
+ "peerDependencies": {
+ "@mui/material": "^7.3.4",
+ "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@mui/lab": {
+ "version": "7.0.1-beta.18",
+ "resolved": "https://registry.npmjs.org/@mui/lab/-/lab-7.0.1-beta.18.tgz",
+ "integrity": "sha512-LC+Eki92aW9/8uUS2RNqo3yytdMlUiIzV3tKvaZVabzecHncyiItAk12SNSqV+U4Pu+TUKqEM9Y5lShAUtuLPQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.28.4",
+ "@mui/system": "^7.3.3",
+ "@mui/types": "^7.4.7",
+ "@mui/utils": "^7.3.3",
+ "clsx": "^2.1.1",
+ "prop-types": "^15.8.1"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/mui-org"
+ },
+ "peerDependencies": {
+ "@emotion/react": "^11.5.0",
+ "@emotion/styled": "^11.3.0",
+ "@mui/material": "^7.3.4",
+ "@mui/material-pigment-css": "^7.3.3",
+ "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@emotion/react": {
+ "optional": true
+ },
+ "@emotion/styled": {
+ "optional": true
+ },
+ "@mui/material-pigment-css": {
+ "optional": true
+ },
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@mui/material": {
+ "version": "7.3.4",
+ "resolved": "https://registry.npmjs.org/@mui/material/-/material-7.3.4.tgz",
+ "integrity": "sha512-gEQL9pbJZZHT7lYJBKQCS723v1MGys2IFc94COXbUIyCTWa+qC77a7hUax4Yjd5ggEm35dk4AyYABpKKWC4MLw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.28.4",
+ "@mui/core-downloads-tracker": "^7.3.4",
+ "@mui/system": "^7.3.3",
+ "@mui/types": "^7.4.7",
+ "@mui/utils": "^7.3.3",
+ "@popperjs/core": "^2.11.8",
+ "@types/react-transition-group": "^4.4.12",
+ "clsx": "^2.1.1",
+ "csstype": "^3.1.3",
+ "prop-types": "^15.8.1",
+ "react-is": "^19.1.1",
+ "react-transition-group": "^4.4.5"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/mui-org"
+ },
+ "peerDependencies": {
+ "@emotion/react": "^11.5.0",
+ "@emotion/styled": "^11.3.0",
+ "@mui/material-pigment-css": "^7.3.3",
+ "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@emotion/react": {
+ "optional": true
+ },
+ "@emotion/styled": {
+ "optional": true
+ },
+ "@mui/material-pigment-css": {
+ "optional": true
+ },
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@mui/private-theming": {
+ "version": "7.3.3",
+ "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-7.3.3.tgz",
+ "integrity": "sha512-OJM+9nj5JIyPUvsZ5ZjaeC9PfktmK+W5YaVLToLR8L0lB/DGmv1gcKE43ssNLSvpoW71Hct0necfade6+kW3zQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.28.4",
+ "@mui/utils": "^7.3.3",
+ "prop-types": "^15.8.1"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/mui-org"
+ },
+ "peerDependencies": {
+ "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@mui/styled-engine": {
+ "version": "7.3.3",
+ "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-7.3.3.tgz",
+ "integrity": "sha512-CmFxvRJIBCEaWdilhXMw/5wFJ1+FT9f3xt+m2pPXhHPeVIbBg9MnMvNSJjdALvnQJMPw8jLhrUtXmN7QAZV2fw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.28.4",
+ "@emotion/cache": "^11.14.0",
+ "@emotion/serialize": "^1.3.3",
+ "@emotion/sheet": "^1.4.0",
+ "csstype": "^3.1.3",
+ "prop-types": "^15.8.1"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/mui-org"
+ },
+ "peerDependencies": {
+ "@emotion/react": "^11.4.1",
+ "@emotion/styled": "^11.3.0",
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@emotion/react": {
+ "optional": true
+ },
+ "@emotion/styled": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@mui/system": {
+ "version": "7.3.3",
+ "resolved": "https://registry.npmjs.org/@mui/system/-/system-7.3.3.tgz",
+ "integrity": "sha512-Lqq3emZr5IzRLKaHPuMaLBDVaGvxoh6z7HMWd1RPKawBM5uMRaQ4ImsmmgXWtwJdfZux5eugfDhXJUo2mliS8Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.28.4",
+ "@mui/private-theming": "^7.3.3",
+ "@mui/styled-engine": "^7.3.3",
+ "@mui/types": "^7.4.7",
+ "@mui/utils": "^7.3.3",
+ "clsx": "^2.1.1",
+ "csstype": "^3.1.3",
+ "prop-types": "^15.8.1"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/mui-org"
+ },
+ "peerDependencies": {
+ "@emotion/react": "^11.5.0",
+ "@emotion/styled": "^11.3.0",
+ "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@emotion/react": {
+ "optional": true
+ },
+ "@emotion/styled": {
+ "optional": true
+ },
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@mui/types": {
+ "version": "7.4.7",
+ "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.4.7.tgz",
+ "integrity": "sha512-8vVje9rdEr1rY8oIkYgP+Su5Kwl6ik7O3jQ0wl78JGSmiZhRHV+vkjooGdKD8pbtZbutXFVTWQYshu2b3sG9zw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.28.4"
+ },
+ "peerDependencies": {
+ "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@mui/utils": {
+ "version": "7.3.3",
+ "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-7.3.3.tgz",
+ "integrity": "sha512-kwNAUh7bLZ7mRz9JZ+6qfRnnxbE4Zuc+RzXnhSpRSxjTlSTj7b4JxRLXpG+MVtPVtqks5k/XC8No1Vs3x4Z2gg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.28.4",
+ "@mui/types": "^7.4.7",
+ "@types/prop-types": "^15.7.15",
+ "clsx": "^2.1.1",
+ "prop-types": "^15.8.1",
+ "react-is": "^19.1.1"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/mui-org"
+ },
+ "peerDependencies": {
+ "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@mui/x-data-grid": {
+ "version": "8.13.1",
+ "resolved": "https://registry.npmjs.org/@mui/x-data-grid/-/x-data-grid-8.13.1.tgz",
+ "integrity": "sha512-64MlyukMoGEDLT3kqdm6tw+rocgMayChj+h+fdAwqD4+2NMQoD5wZElQE+xTNmU0/DPv710X4ENceBRt2hMuGw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.28.4",
+ "@mui/utils": "^7.3.2",
+ "@mui/x-internals": "8.13.1",
+ "@mui/x-virtualizer": "0.2.2",
+ "clsx": "^2.1.1",
+ "prop-types": "^15.8.1",
+ "use-sync-external-store": "^1.5.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/mui-org"
+ },
+ "peerDependencies": {
+ "@emotion/react": "^11.9.0",
+ "@emotion/styled": "^11.8.1",
+ "@mui/material": "^5.15.14 || ^6.0.0 || ^7.0.0",
+ "@mui/system": "^5.15.14 || ^6.0.0 || ^7.0.0",
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@emotion/react": {
+ "optional": true
+ },
+ "@emotion/styled": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@mui/x-date-pickers": {
+ "version": "8.12.0",
+ "resolved": "https://registry.npmjs.org/@mui/x-date-pickers/-/x-date-pickers-8.12.0.tgz",
+ "integrity": "sha512-CDcjdBNwMcTy3flZTCKZqSUS6deBFGKLqy3Vl6bgr5KTo8Vky2v+S+zNi56fv23Qs+P47GwpILcm3QZt/0BP0A==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.28.2",
+ "@mui/utils": "^7.3.2",
+ "@mui/x-internals": "8.12.0",
+ "@types/react-transition-group": "^4.4.12",
+ "clsx": "^2.1.1",
+ "prop-types": "^15.8.1",
+ "react-transition-group": "^4.4.5"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/mui-org"
+ },
+ "peerDependencies": {
+ "@emotion/react": "^11.9.0",
+ "@emotion/styled": "^11.8.1",
+ "@mui/material": "^5.15.14 || ^6.0.0 || ^7.0.0",
+ "@mui/system": "^5.15.14 || ^6.0.0 || ^7.0.0",
+ "date-fns": "^2.25.0 || ^3.2.0 || ^4.0.0",
+ "date-fns-jalali": "^2.13.0-0 || ^3.2.0-0 || ^4.0.0-0",
+ "dayjs": "^1.10.7",
+ "luxon": "^3.0.2",
+ "moment": "^2.29.4",
+ "moment-hijri": "^2.1.2 || ^3.0.0",
+ "moment-jalaali": "^0.7.4 || ^0.8.0 || ^0.9.0 || ^0.10.0",
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@emotion/react": {
+ "optional": true
+ },
+ "@emotion/styled": {
+ "optional": true
+ },
+ "date-fns": {
+ "optional": true
+ },
+ "date-fns-jalali": {
+ "optional": true
+ },
+ "dayjs": {
+ "optional": true
+ },
+ "luxon": {
+ "optional": true
+ },
+ "moment": {
+ "optional": true
+ },
+ "moment-hijri": {
+ "optional": true
+ },
+ "moment-jalaali": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@mui/x-date-pickers/node_modules/@mui/x-internals": {
+ "version": "8.12.0",
+ "resolved": "https://registry.npmjs.org/@mui/x-internals/-/x-internals-8.12.0.tgz",
+ "integrity": "sha512-KCZgFHwuPg0v8I2gpjeC6k3eDRXPPX8RIGSNDXe8zSZ8dAw+p6Q2pzT9kKvctqCXSFK8ct/5YQwqx8Quhs8Ndg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.28.2",
+ "@mui/utils": "^7.3.2",
+ "reselect": "^5.1.1",
+ "use-sync-external-store": "^1.5.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/mui-org"
+ },
+ "peerDependencies": {
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@mui/x-internals": {
+ "version": "8.13.1",
+ "resolved": "https://registry.npmjs.org/@mui/x-internals/-/x-internals-8.13.1.tgz",
+ "integrity": "sha512-OKQyCJ9uxtMpjBZCOEQGOR5MhgL1f9HjI4qZHuaLxxtDATK5rcBbVjBF67hI8FzXeF1wrcZP2wsjc4AgGpAo9g==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.28.4",
+ "@mui/utils": "^7.3.2",
+ "reselect": "^5.1.1",
+ "use-sync-external-store": "^1.5.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/mui-org"
+ },
+ "peerDependencies": {
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@mui/x-virtualizer": {
+ "version": "0.2.2",
+ "resolved": "https://registry.npmjs.org/@mui/x-virtualizer/-/x-virtualizer-0.2.2.tgz",
+ "integrity": "sha512-+ZcGYh/9ykoEofzcAWcJ3n6TBXzCc2ETvytho30wRkYv1ez+8yps0ezns/QvC4JqXBge/3y+e+QatIYjkTltdw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.28.4",
+ "@mui/utils": "^7.3.2",
+ "@mui/x-internals": "8.13.1"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/mui-org"
+ },
+ "peerDependencies": {
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@popperjs/core": {
+ "version": "2.11.8",
+ "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
+ "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/popperjs"
+ }
+ },
+ "node_modules/@reduxjs/toolkit": {
+ "version": "2.9.0",
+ "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.9.0.tgz",
+ "integrity": "sha512-fSfQlSRu9Z5yBkvsNhYF2rPS8cGXn/TZVrlwN1948QyZ8xMZ0JvP50S2acZNaf+o63u6aEeMjipFyksjIcWrog==",
+ "license": "MIT",
+ "dependencies": {
+ "@standard-schema/spec": "^1.0.0",
+ "@standard-schema/utils": "^0.3.0",
+ "immer": "^10.0.3",
+ "redux": "^5.0.1",
+ "redux-thunk": "^3.1.0",
+ "reselect": "^5.1.0"
+ },
+ "peerDependencies": {
+ "react": "^16.9.0 || ^17.0.0 || ^18 || ^19",
+ "react-redux": "^7.2.1 || ^8.1.3 || ^9.0.0"
+ },
+ "peerDependenciesMeta": {
+ "react": {
+ "optional": true
+ },
+ "react-redux": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@rolldown/pluginutils": {
+ "version": "1.0.0-beta.38",
+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.38.tgz",
+ "integrity": "sha512-N/ICGKleNhA5nc9XXQG/kkKHJ7S55u0x0XUJbbkmdCnFuoRkM1Il12q9q0eX19+M7KKUEPw/daUPIRnxhcxAIw==",
+ "license": "MIT"
+ },
+ "node_modules/@rollup/rollup-android-arm-eabi": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.52.4.tgz",
+ "integrity": "sha512-BTm2qKNnWIQ5auf4deoetINJm2JzvihvGb9R6K/ETwKLql/Bb3Eg2H1FBp1gUb4YGbydMA3jcmQTR73q7J+GAA==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-android-arm64": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.52.4.tgz",
+ "integrity": "sha512-P9LDQiC5vpgGFgz7GSM6dKPCiqR3XYN1WwJKA4/BUVDjHpYsf3iBEmVz62uyq20NGYbiGPR5cNHI7T1HqxNs2w==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-darwin-arm64": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.52.4.tgz",
+ "integrity": "sha512-QRWSW+bVccAvZF6cbNZBJwAehmvG9NwfWHwMy4GbWi/BQIA/laTIktebT2ipVjNncqE6GLPxOok5hsECgAxGZg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-darwin-x64": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.52.4.tgz",
+ "integrity": "sha512-hZgP05pResAkRJxL1b+7yxCnXPGsXU0fG9Yfd6dUaoGk+FhdPKCJ5L1Sumyxn8kvw8Qi5PvQ8ulenUbRjzeCTw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-freebsd-arm64": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.52.4.tgz",
+ "integrity": "sha512-xmc30VshuBNUd58Xk4TKAEcRZHaXlV+tCxIXELiE9sQuK3kG8ZFgSPi57UBJt8/ogfhAF5Oz4ZSUBN77weM+mQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-freebsd-x64": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.52.4.tgz",
+ "integrity": "sha512-WdSLpZFjOEqNZGmHflxyifolwAiZmDQzuOzIq9L27ButpCVpD7KzTRtEG1I0wMPFyiyUdOO+4t8GvrnBLQSwpw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.52.4.tgz",
+ "integrity": "sha512-xRiOu9Of1FZ4SxVbB0iEDXc4ddIcjCv2aj03dmW8UrZIW7aIQ9jVJdLBIhxBI+MaTnGAKyvMwPwQnoOEvP7FgQ==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.52.4.tgz",
+ "integrity": "sha512-FbhM2p9TJAmEIEhIgzR4soUcsW49e9veAQCziwbR+XWB2zqJ12b4i/+hel9yLiD8pLncDH4fKIPIbt5238341Q==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-linux-arm64-gnu": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.52.4.tgz",
+ "integrity": "sha512-4n4gVwhPHR9q/g8lKCyz0yuaD0MvDf7dV4f9tHt0C73Mp8h38UCtSCSE6R9iBlTbXlmA8CjpsZoujhszefqueg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-linux-arm64-musl": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.52.4.tgz",
+ "integrity": "sha512-u0n17nGA0nvi/11gcZKsjkLj1QIpAuPFQbR48Subo7SmZJnGxDpspyw2kbpuoQnyK+9pwf3pAoEXerJs/8Mi9g==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-linux-loong64-gnu": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.52.4.tgz",
+ "integrity": "sha512-0G2c2lpYtbTuXo8KEJkDkClE/+/2AFPdPAbmaHoE870foRFs4pBrDehilMcrSScrN/fB/1HTaWO4bqw+ewBzMQ==",
+ "cpu": [
+ "loong64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.52.4.tgz",
+ "integrity": "sha512-teSACug1GyZHmPDv14VNbvZFX779UqWTsd7KtTM9JIZRDI5NUwYSIS30kzI8m06gOPB//jtpqlhmraQ68b5X2g==",
+ "cpu": [
+ "ppc64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.52.4.tgz",
+ "integrity": "sha512-/MOEW3aHjjs1p4Pw1Xk4+3egRevx8Ji9N6HUIA1Ifh8Q+cg9dremvFCUbOX2Zebz80BwJIgCBUemjqhU5XI5Eg==",
+ "cpu": [
+ "riscv64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-musl": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.52.4.tgz",
+ "integrity": "sha512-1HHmsRyh845QDpEWzOFtMCph5Ts+9+yllCrREuBR/vg2RogAQGGBRC8lDPrPOMnrdOJ+mt1WLMOC2Kao/UwcvA==",
+ "cpu": [
+ "riscv64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-linux-s390x-gnu": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.52.4.tgz",
+ "integrity": "sha512-seoeZp4L/6D1MUyjWkOMRU6/iLmCU2EjbMTyAG4oIOs1/I82Y5lTeaxW0KBfkUdHAWN7j25bpkt0rjnOgAcQcA==",
+ "cpu": [
+ "s390x"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-linux-x64-gnu": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.4.tgz",
+ "integrity": "sha512-Wi6AXf0k0L7E2gteNsNHUs7UMwCIhsCTs6+tqQ5GPwVRWMaflqGec4Sd8n6+FNFDw9vGcReqk2KzBDhCa1DLYg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-linux-x64-musl": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.52.4.tgz",
+ "integrity": "sha512-dtBZYjDmCQ9hW+WgEkaffvRRCKm767wWhxsFW3Lw86VXz/uJRuD438/XvbZT//B96Vs8oTA8Q4A0AfHbrxP9zw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-openharmony-arm64": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.52.4.tgz",
+ "integrity": "sha512-1ox+GqgRWqaB1RnyZXL8PD6E5f7YyRUJYnCqKpNzxzP0TkaUh112NDrR9Tt+C8rJ4x5G9Mk8PQR3o7Ku2RKqKA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-win32-arm64-msvc": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.52.4.tgz",
+ "integrity": "sha512-8GKr640PdFNXwzIE0IrkMWUNUomILLkfeHjXBi/nUvFlpZP+FA8BKGKpacjW6OUUHaNI6sUURxR2U2g78FOHWQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-win32-ia32-msvc": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.52.4.tgz",
+ "integrity": "sha512-AIy/jdJ7WtJ/F6EcfOb2GjR9UweO0n43jNObQMb6oGxkYTfLcnN7vYYpG+CN3lLxrQkzWnMOoNSHTW54pgbVxw==",
+ "cpu": [
+ "ia32"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-win32-x64-gnu": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.52.4.tgz",
+ "integrity": "sha512-UF9KfsH9yEam0UjTwAgdK0anlQ7c8/pWPU2yVjyWcF1I1thABt6WXE47cI71pGiZ8wGvxohBoLnxM04L/wj8mQ==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "peer": true
+ },
+ "node_modules/@rollup/rollup-win32-x64-msvc": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.52.4.tgz",
+ "integrity": "sha512-bf9PtUa0u8IXDVxzRToFQKsNCRz9qLYfR/MpECxl4mRoWYjAeFjgxj1XdZr2M/GNVpT05p+LgQOHopYDlUu6/w==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "peer": true
+ },
+ "node_modules/@standard-schema/spec": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.0.0.tgz",
+ "integrity": "sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==",
+ "license": "MIT"
+ },
+ "node_modules/@standard-schema/utils": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/@standard-schema/utils/-/utils-0.3.0.tgz",
+ "integrity": "sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==",
+ "license": "MIT"
+ },
+ "node_modules/@tanstack/query-core": {
+ "version": "5.90.2",
+ "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.90.2.tgz",
+ "integrity": "sha512-k/TcR3YalnzibscALLwxeiLUub6jN5EDLwKDiO7q5f4ICEoptJ+n9+7vcEFy5/x/i6Q+Lb/tXrsKCggf5uQJXQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/tannerlinsley"
+ }
+ },
+ "node_modules/@tanstack/react-query": {
+ "version": "5.90.2",
+ "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.90.2.tgz",
+ "integrity": "sha512-CLABiR+h5PYfOWr/z+vWFt5VsOA2ekQeRQBFSKlcoW6Ndx/f8rfyVmq4LbgOM4GG2qtxAxjLYLOpCNTYm4uKzw==",
+ "license": "MIT",
+ "dependencies": {
+ "@tanstack/query-core": "5.90.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/tannerlinsley"
+ },
+ "peerDependencies": {
+ "react": "^18 || ^19"
+ }
+ },
+ "node_modules/@types/babel__core": {
+ "version": "7.20.5",
+ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",
+ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.20.7",
+ "@babel/types": "^7.20.7",
+ "@types/babel__generator": "*",
+ "@types/babel__template": "*",
+ "@types/babel__traverse": "*"
+ }
+ },
+ "node_modules/@types/babel__generator": {
+ "version": "7.27.0",
+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",
+ "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "node_modules/@types/babel__template": {
+ "version": "7.4.4",
+ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",
+ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.1.0",
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "node_modules/@types/babel__traverse": {
+ "version": "7.28.0",
+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",
+ "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.28.2"
+ }
+ },
+ "node_modules/@types/d3-array": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.2.tgz",
+ "integrity": "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-color": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz",
+ "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-ease": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz",
+ "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-interpolate": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz",
+ "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-color": "*"
+ }
+ },
+ "node_modules/@types/d3-path": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz",
+ "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-scale": {
+ "version": "4.0.9",
+ "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz",
+ "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-time": "*"
+ }
+ },
+ "node_modules/@types/d3-shape": {
+ "version": "3.1.7",
+ "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.7.tgz",
+ "integrity": "sha512-VLvUQ33C+3J+8p+Daf+nYSOsjB4GXp19/S/aGo60m9h1v6XaxjiT82lKVWJCfzhtuZ3yD7i/TPeC/fuKLLOSmg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-path": "*"
+ }
+ },
+ "node_modules/@types/d3-time": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz",
+ "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-timer": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz",
+ "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==",
+ "license": "MIT"
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
+ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/@types/hoist-non-react-statics": {
+ "version": "3.3.7",
+ "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.7.tgz",
+ "integrity": "sha512-PQTyIulDkIDro8P+IHbKCsw7U2xxBYflVzW/FgWdCAePD9xGSidgA76/GeJ6lBKoblyhf9pBY763gbrN+1dI8g==",
+ "license": "MIT",
+ "dependencies": {
+ "hoist-non-react-statics": "^3.3.0"
+ },
+ "peerDependencies": {
+ "@types/react": "*"
+ }
+ },
+ "node_modules/@types/parse-json": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz",
+ "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==",
+ "license": "MIT"
+ },
+ "node_modules/@types/prop-types": {
+ "version": "15.7.15",
+ "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz",
+ "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==",
+ "license": "MIT"
+ },
+ "node_modules/@types/react": {
+ "version": "19.2.2",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.2.tgz",
+ "integrity": "sha512-6mDvHUFSjyT2B2yeNx2nUgMxh9LtOWvkhIU3uePn2I2oyNymUAX1NIsdgviM4CH+JSrp2D2hsMvJOkxY+0wNRA==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "csstype": "^3.0.2"
+ }
+ },
+ "node_modules/@types/react-transition-group": {
+ "version": "4.4.12",
+ "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.12.tgz",
+ "integrity": "sha512-8TV6R3h2j7a91c+1DXdJi3Syo69zzIZbz7Lg5tORM5LEJG7X/E6a1V3drRyBRZq7/utz7A+c4OgYLiLcYGHG6w==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*"
+ }
+ },
+ "node_modules/@types/use-sync-external-store": {
+ "version": "0.0.6",
+ "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.6.tgz",
+ "integrity": "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==",
+ "license": "MIT"
+ },
+ "node_modules/@vitejs/plugin-react": {
+ "version": "5.0.4",
+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.0.4.tgz",
+ "integrity": "sha512-La0KD0vGkVkSk6K+piWDKRUyg8Rl5iAIKRMH0vMJI0Eg47bq1eOxmoObAaQG37WMW9MSyk7Cs8EIWwJC1PtzKA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.28.4",
+ "@babel/plugin-transform-react-jsx-self": "^7.27.1",
+ "@babel/plugin-transform-react-jsx-source": "^7.27.1",
+ "@rolldown/pluginutils": "1.0.0-beta.38",
+ "@types/babel__core": "^7.20.5",
+ "react-refresh": "^0.17.0"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "peerDependencies": {
+ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"
+ }
+ },
+ "node_modules/@wger-project/react-components": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/@wger-project/react-components/-/react-components-0.1.4.tgz",
+ "integrity": "sha512-rLmyeJr0hvaqrocQbsdEIwdGgfj7R3pN380kKGgu6HEvVq/Ccivnrq8kgMPkw8C2GQVuJxfFfqGdJPadSdfcnw==",
+ "dependencies": {
+ "@emotion/babel-plugin": "^11.12.0",
+ "@emotion/react": "^11.14.0",
+ "@emotion/styled": "^11.14.0",
+ "@hello-pangea/dnd": "^18.0.1",
+ "@mui/icons-material": "^7.3.4",
+ "@mui/lab": "^7.0.1-beta.18",
+ "@mui/material": "^7.3.4",
+ "@mui/system": "^7.3.3",
+ "@mui/x-data-grid": "^8.13.1",
+ "@mui/x-date-pickers": "^8.12.0",
+ "@tanstack/react-query": "^5.71.5",
+ "@vitejs/plugin-react": "^5.0.4",
+ "axios": "^1.12.2",
+ "formik": "^2.4.6",
+ "history": "^5.3.0",
+ "i18next": "^25.5.3",
+ "i18next-browser-languagedetector": "^8.2.0",
+ "i18next-http-backend": "^3.0.2",
+ "luxon": "^3.7.2",
+ "react": "^19.2.0",
+ "react-dom": "^19.2.0",
+ "react-i18next": "^16.0.0",
+ "react-is": "^19.2.0",
+ "react-responsive": "^10.0.1",
+ "react-router-dom": "^7.9.3",
+ "react-simple-wysiwyg": "^3.4.1",
+ "recharts": "^3.2.1",
+ "slug": "^9.1.0",
+ "typescript": "^5.9.3",
+ "vite-tsconfig-paths": "^5.1.4",
+ "web-vitals": "^5.1.0",
+ "yup": "^1.7.1"
+ }
+ },
+ "node_modules/asynckit": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
+ "license": "MIT"
+ },
+ "node_modules/axios": {
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.12.2.tgz",
+ "integrity": "sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw==",
+ "license": "MIT",
+ "dependencies": {
+ "follow-redirects": "^1.15.6",
+ "form-data": "^4.0.4",
+ "proxy-from-env": "^1.1.0"
+ }
+ },
+ "node_modules/babel-plugin-macros": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz",
+ "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.12.5",
+ "cosmiconfig": "^7.0.0",
+ "resolve": "^1.19.0"
+ },
+ "engines": {
+ "node": ">=10",
+ "npm": ">=6"
+ }
+ },
+ "node_modules/baseline-browser-mapping": {
+ "version": "2.8.14",
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.14.tgz",
+ "integrity": "sha512-GM9c0cWWR8Ga7//Ves/9KRgTS8nLausCkP3CGiFLrnwA2CDUluXgaQqvrULoR2Ujrd/mz/lkX87F5BHFsNr5sQ==",
+ "license": "Apache-2.0",
+ "bin": {
+ "baseline-browser-mapping": "dist/cli.js"
+ }
+ },
+ "node_modules/bootstrap": {
+ "version": "5.3.8",
+ "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.8.tgz",
+ "integrity": "sha512-HP1SZDqaLDPwsNiqRqi5NcP0SSXciX2s9E+RyqJIIqGo+vJeN5AJVM98CXmW/Wux0nQ5L7jeWUdplCEf0Ee+tg==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/twbs"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/bootstrap"
+ }
+ ],
+ "license": "MIT",
+ "peerDependencies": {
+ "@popperjs/core": "^2.11.8"
+ }
+ },
+ "node_modules/browserslist": {
+ "version": "4.26.3",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.26.3.tgz",
+ "integrity": "sha512-lAUU+02RFBuCKQPj/P6NgjlbCnLBMp4UtgTx7vNHd3XSIJF87s9a5rA3aH2yw3GS9DqZAUbOtZdCCiZeVRqt0w==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "baseline-browser-mapping": "^2.8.9",
+ "caniuse-lite": "^1.0.30001746",
+ "electron-to-chromium": "^1.5.227",
+ "node-releases": "^2.0.21",
+ "update-browserslist-db": "^1.1.3"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/call-bind-apply-helpers": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001749",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001749.tgz",
+ "integrity": "sha512-0rw2fJOmLfnzCRbkm8EyHL8SvI2Apu5UbnQuTsJ0ClgrH8hcwFooJ1s5R0EP8o8aVrFu8++ae29Kt9/gZAZp/Q==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "CC-BY-4.0"
+ },
+ "node_modules/clsx": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",
+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/combined-stream": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
+ "license": "MIT",
+ "dependencies": {
+ "delayed-stream": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/components-font-awesome": {
+ "version": "5.9.0",
+ "resolved": "https://registry.npmjs.org/components-font-awesome/-/components-font-awesome-5.9.0.tgz",
+ "integrity": "sha512-AjY5WwmKripvroQ1oYpCC4eK8efavSKUGN/ATgwcbyz/kRmojslH8l6Mrlxq071bdzBrZvCxi+RKgU5ao3bU+A==",
+ "license": [
+ "CC-BY-4.0",
+ "MIT",
+ "OFL-1.1"
+ ]
+ },
+ "node_modules/convert-source-map": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",
+ "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==",
+ "license": "MIT"
+ },
+ "node_modules/cookie": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.0.2.tgz",
+ "integrity": "sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/cosmiconfig": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz",
+ "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/parse-json": "^4.0.0",
+ "import-fresh": "^3.2.1",
+ "parse-json": "^5.0.0",
+ "path-type": "^4.0.0",
+ "yaml": "^1.10.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/cosmiconfig/node_modules/yaml": {
+ "version": "1.10.2",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",
+ "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",
+ "license": "ISC",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/cross-fetch": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz",
+ "integrity": "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==",
+ "license": "MIT",
+ "dependencies": {
+ "node-fetch": "^2.6.12"
+ }
+ },
+ "node_modules/css-box-model": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/css-box-model/-/css-box-model-1.2.1.tgz",
+ "integrity": "sha512-a7Vr4Q/kd/aw96bnJG332W9V9LkJO69JRcaCYDUqjp6/z0w6VcZjgAcTbgFxEPfBgdnAwlh3iwu+hLopa+flJw==",
+ "license": "MIT",
+ "dependencies": {
+ "tiny-invariant": "^1.0.6"
+ }
+ },
+ "node_modules/css-mediaquery": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/css-mediaquery/-/css-mediaquery-0.1.2.tgz",
+ "integrity": "sha512-COtn4EROW5dBGlE/4PiKnh6rZpAPxDeFLaEEwt4i10jpDMFt2EhQGS79QmmrO+iKCHv0PU/HrOWEhijFd1x99Q==",
+ "license": "BSD"
+ },
+ "node_modules/csstype": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
+ "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",
+ "license": "MIT"
+ },
+ "node_modules/d3-array": {
+ "version": "3.2.4",
+ "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz",
+ "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==",
+ "license": "ISC",
+ "dependencies": {
+ "internmap": "1 - 2"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-color": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz",
+ "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-ease": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz",
+ "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-format": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.0.tgz",
+ "integrity": "sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-interpolate": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz",
+ "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-color": "1 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-path": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz",
+ "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-scale": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz",
+ "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-array": "2.10.0 - 3",
+ "d3-format": "1 - 3",
+ "d3-interpolate": "1.2.0 - 3",
+ "d3-time": "2.1.1 - 3",
+ "d3-time-format": "2 - 4"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-shape": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz",
+ "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-path": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-time": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz",
+ "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-array": "2 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-time-format": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz",
+ "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-time": "1 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-timer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz",
+ "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/datatables.net": {
+ "version": "2.3.4",
+ "resolved": "https://registry.npmjs.org/datatables.net/-/datatables.net-2.3.4.tgz",
+ "integrity": "sha512-fKuRlrBIdpAl2uIFgl9enKecHB41QmFd/2nN9LBbOvItV/JalAxLcyqdZXex7wX4ZXjnJQEnv6xeS9veOpKzSw==",
+ "license": "MIT",
+ "dependencies": {
+ "jquery": ">=1.7"
+ }
+ },
+ "node_modules/datatables.net-bs5": {
+ "version": "2.3.4",
+ "resolved": "https://registry.npmjs.org/datatables.net-bs5/-/datatables.net-bs5-2.3.4.tgz",
+ "integrity": "sha512-OSoPWhNfiU71VjNP604uTmFRxiX32U7SCW0KRZ2X6z3ZYbIwjjoWcMEjjPWOH3uOqaI0OTDBgOgOs5G28VaJog==",
+ "license": "MIT",
+ "dependencies": {
+ "datatables.net": "2.3.4",
+ "jquery": ">=1.7"
+ }
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/decimal.js-light": {
+ "version": "2.5.1",
+ "resolved": "https://registry.npmjs.org/decimal.js-light/-/decimal.js-light-2.5.1.tgz",
+ "integrity": "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==",
+ "license": "MIT"
+ },
+ "node_modules/deepmerge": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-2.2.1.tgz",
+ "integrity": "sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/delayed-stream": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/desandro-matches-selector": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/desandro-matches-selector/-/desandro-matches-selector-2.0.2.tgz",
+ "integrity": "sha512-+1q0nXhdzg1IpIJdMKalUwvvskeKnYyEe3shPRwedNcWtnhEKT3ZxvFjzywHDeGcKViIxTCAoOYQWP1qD7VNyg==",
+ "license": "MIT"
+ },
+ "node_modules/devbridge-autocomplete": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/devbridge-autocomplete/-/devbridge-autocomplete-1.5.0.tgz",
+ "integrity": "sha512-yz6W76PyXS9DtuyYbQtVcpxtkI8pQ02EQwZeNWnqUJXmM5jSmsPFKmpFEBneImcHwYJrMf3+6m86Hj2MRPELGQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "jquery": ">=1.9"
+ }
+ },
+ "node_modules/dom-helpers": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz",
+ "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.8.7",
+ "csstype": "^3.0.2"
+ }
+ },
+ "node_modules/dunder-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/electron-to-chromium": {
+ "version": "1.5.233",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.233.tgz",
+ "integrity": "sha512-iUdTQSf7EFXsDdQsp8MwJz5SVk4APEFqXU/S47OtQ0YLqacSwPXdZ5vRlMX3neb07Cy2vgioNuRnWUXFwuslkg==",
+ "license": "ISC"
+ },
+ "node_modules/error-ex": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz",
+ "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==",
+ "license": "MIT",
+ "dependencies": {
+ "is-arrayish": "^0.2.1"
+ }
+ },
+ "node_modules/es-define-property": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-object-atoms": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-set-tostringtag": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.6",
+ "has-tostringtag": "^1.0.2",
+ "hasown": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-toolkit": {
+ "version": "1.40.0",
+ "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.40.0.tgz",
+ "integrity": "sha512-8o6w0KFmU0CiIl0/Q/BCEOabF2IJaELM1T2PWj6e8KqzHv1gdx+7JtFnDwOx1kJH/isJ5NwlDG1nCr1HrRF94Q==",
+ "license": "MIT",
+ "workspaces": [
+ "docs",
+ "benchmarks"
+ ]
+ },
+ "node_modules/esbuild": {
+ "version": "0.25.10",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.10.tgz",
+ "integrity": "sha512-9RiGKvCwaqxO2owP61uQ4BgNborAQskMR6QusfWzQqv7AZOg5oGehdY2pRJMTKuwxd1IDBP4rSbI5lHzU7SMsQ==",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "peer": true,
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.25.10",
+ "@esbuild/android-arm": "0.25.10",
+ "@esbuild/android-arm64": "0.25.10",
+ "@esbuild/android-x64": "0.25.10",
+ "@esbuild/darwin-arm64": "0.25.10",
+ "@esbuild/darwin-x64": "0.25.10",
+ "@esbuild/freebsd-arm64": "0.25.10",
+ "@esbuild/freebsd-x64": "0.25.10",
+ "@esbuild/linux-arm": "0.25.10",
+ "@esbuild/linux-arm64": "0.25.10",
+ "@esbuild/linux-ia32": "0.25.10",
+ "@esbuild/linux-loong64": "0.25.10",
+ "@esbuild/linux-mips64el": "0.25.10",
+ "@esbuild/linux-ppc64": "0.25.10",
+ "@esbuild/linux-riscv64": "0.25.10",
+ "@esbuild/linux-s390x": "0.25.10",
+ "@esbuild/linux-x64": "0.25.10",
+ "@esbuild/netbsd-arm64": "0.25.10",
+ "@esbuild/netbsd-x64": "0.25.10",
+ "@esbuild/openbsd-arm64": "0.25.10",
+ "@esbuild/openbsd-x64": "0.25.10",
+ "@esbuild/openharmony-arm64": "0.25.10",
+ "@esbuild/sunos-x64": "0.25.10",
+ "@esbuild/win32-arm64": "0.25.10",
+ "@esbuild/win32-ia32": "0.25.10",
+ "@esbuild/win32-x64": "0.25.10"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/ev-emitter": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/ev-emitter/-/ev-emitter-1.1.1.tgz",
+ "integrity": "sha512-ipiDYhdQSCZ4hSbX4rMW+XzNKMD1prg/sTvoVmSLkuQ1MVlwjJQQA+sW8tMYR3BLUr9KjodFV4pvzunvRhd33Q==",
+ "license": "MIT"
+ },
+ "node_modules/eventemitter3": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz",
+ "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==",
+ "license": "MIT"
+ },
+ "node_modules/fdir": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/find-root": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz",
+ "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==",
+ "license": "MIT"
+ },
+ "node_modules/fizzy-ui-utils": {
+ "version": "2.0.7",
+ "resolved": "https://registry.npmjs.org/fizzy-ui-utils/-/fizzy-ui-utils-2.0.7.tgz",
+ "integrity": "sha512-CZXDVXQ1If3/r8s0T+v+qVeMshhfcuq0rqIFgJnrtd+Bu8GmDmqMjntjUePypVtjHXKJ6V4sw9zeyox34n9aCg==",
+ "license": "MIT",
+ "dependencies": {
+ "desandro-matches-selector": "^2.0.0"
+ }
+ },
+ "node_modules/follow-redirects": {
+ "version": "1.15.11",
+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz",
+ "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==",
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://github.com/sponsors/RubenVerborgh"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0"
+ },
+ "peerDependenciesMeta": {
+ "debug": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/form-data": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",
+ "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
+ "license": "MIT",
+ "dependencies": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.8",
+ "es-set-tostringtag": "^2.1.0",
+ "hasown": "^2.0.2",
+ "mime-types": "^2.1.12"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/formik": {
+ "version": "2.4.6",
+ "resolved": "https://registry.npmjs.org/formik/-/formik-2.4.6.tgz",
+ "integrity": "sha512-A+2EI7U7aG296q2TLGvNapDNTZp1khVt5Vk0Q/fyfSROss0V/V6+txt2aJnwEos44IxTCW/LYAi/zgWzlevj+g==",
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://opencollective.com/formik"
+ }
+ ],
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@types/hoist-non-react-statics": "^3.3.1",
+ "deepmerge": "^2.1.1",
+ "hoist-non-react-statics": "^3.3.0",
+ "lodash": "^4.17.21",
+ "lodash-es": "^4.17.21",
+ "react-fast-compare": "^2.0.1",
+ "tiny-warning": "^1.0.2",
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0"
+ }
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "peer": true,
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/gensync": {
+ "version": "1.0.0-beta.2",
+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/get-intrinsic": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.1",
+ "function-bind": "^1.1.2",
+ "get-proto": "^1.0.1",
+ "gopd": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "hasown": "^2.0.2",
+ "math-intrinsics": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/get-size": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/get-size/-/get-size-2.0.3.tgz",
+ "integrity": "sha512-lXNzT/h/dTjTxRbm9BXb+SGxxzkm97h/PCIKtlN/CBCxxmkkIVV21udumMS93MuVTDX583gqc94v3RjuHmI+2Q==",
+ "license": "MIT"
+ },
+ "node_modules/globrex": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",
+ "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==",
+ "license": "MIT"
+ },
+ "node_modules/gopd": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-symbols": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-tostringtag": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
+ "license": "MIT",
+ "dependencies": {
+ "has-symbols": "^1.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/history": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/history/-/history-5.3.0.tgz",
+ "integrity": "sha512-ZqaKwjjrAYUYfLG+htGaIIZ4nioX2L70ZUMIFysS3xvBsSG4x/n1V6TXV3N8ZYNuFGlDirFg32T7B6WOUPDYcQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.7.6"
+ }
+ },
+ "node_modules/hoist-non-react-statics": {
+ "version": "3.3.2",
+ "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",
+ "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "react-is": "^16.7.0"
+ }
+ },
+ "node_modules/hoist-non-react-statics/node_modules/react-is": {
+ "version": "16.13.1",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
+ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
+ "license": "MIT"
+ },
+ "node_modules/html-parse-stringify": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/html-parse-stringify/-/html-parse-stringify-3.0.1.tgz",
+ "integrity": "sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg==",
+ "license": "MIT",
+ "dependencies": {
+ "void-elements": "3.1.0"
+ }
+ },
+ "node_modules/htmx.org": {
+ "version": "2.0.7",
+ "resolved": "https://registry.npmjs.org/htmx.org/-/htmx.org-2.0.7.tgz",
+ "integrity": "sha512-YiJqF3U5KyO28VC5mPfehKJPF+n1Gni+cupK+D69TF0nm7wY6AXn3a4mPWIikfAXtl1u1F1+ZhSCS7KT8pVmqA==",
+ "license": "0BSD"
+ },
+ "node_modules/hyphenate-style-name": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.1.0.tgz",
+ "integrity": "sha512-WDC/ui2VVRrz3jOVi+XtjqkDjiVjTtFaAGiW37k6b+ohyQ5wYDOGkvCZa8+H0nx3gyvv0+BST9xuOgIyGQ00gw==",
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/i18next": {
+ "version": "25.5.3",
+ "resolved": "https://registry.npmjs.org/i18next/-/i18next-25.5.3.tgz",
+ "integrity": "sha512-joFqorDeQ6YpIXni944upwnuHBf5IoPMuqAchGVeQLdWC2JOjxgM9V8UGLhNIIH/Q8QleRxIi0BSRQehSrDLcg==",
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://locize.com"
+ },
+ {
+ "type": "individual",
+ "url": "https://locize.com/i18next.html"
+ },
+ {
+ "type": "individual",
+ "url": "https://www.i18next.com/how-to/faq#i18next-is-awesome.-how-can-i-support-the-project"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.27.6"
+ },
+ "peerDependencies": {
+ "typescript": "^5"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/i18next-browser-languagedetector": {
+ "version": "8.2.0",
+ "resolved": "https://registry.npmjs.org/i18next-browser-languagedetector/-/i18next-browser-languagedetector-8.2.0.tgz",
+ "integrity": "sha512-P+3zEKLnOF0qmiesW383vsLdtQVyKtCNA9cjSoKCppTKPQVfKd2W8hbVo5ZhNJKDqeM7BOcvNoKJOjpHh4Js9g==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.23.2"
+ }
+ },
+ "node_modules/i18next-http-backend": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/i18next-http-backend/-/i18next-http-backend-3.0.2.tgz",
+ "integrity": "sha512-PdlvPnvIp4E1sYi46Ik4tBYh/v/NbYfFFgTjkwFl0is8A18s7/bx9aXqsrOax9WUbeNS6mD2oix7Z0yGGf6m5g==",
+ "license": "MIT",
+ "dependencies": {
+ "cross-fetch": "4.0.0"
+ }
+ },
+ "node_modules/immer": {
+ "version": "10.1.3",
+ "resolved": "https://registry.npmjs.org/immer/-/immer-10.1.3.tgz",
+ "integrity": "sha512-tmjF/k8QDKydUlm3mZU+tjM6zeq9/fFpPqH9SzWmBnVVKsPBg/V66qsMwb3/Bo90cgUN+ghdVBess+hPsxUyRw==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/immer"
+ }
+ },
+ "node_modules/import-fresh": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
+ "license": "MIT",
+ "dependencies": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/internmap": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz",
+ "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/is-arrayish": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
+ "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",
+ "license": "MIT"
+ },
+ "node_modules/is-core-module": {
+ "version": "2.16.1",
+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",
+ "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",
+ "license": "MIT",
+ "dependencies": {
+ "hasown": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/jquery": {
+ "version": "3.7.1",
+ "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz",
+ "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==",
+ "license": "MIT"
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "license": "MIT"
+ },
+ "node_modules/jsesc": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
+ "license": "MIT",
+ "bin": {
+ "jsesc": "bin/jsesc"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/json-parse-even-better-errors": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
+ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
+ "license": "MIT"
+ },
+ "node_modules/json5": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
+ "license": "MIT",
+ "bin": {
+ "json5": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/lines-and-columns": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
+ "license": "MIT"
+ },
+ "node_modules/lodash": {
+ "version": "4.17.21",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
+ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
+ "license": "MIT"
+ },
+ "node_modules/lodash-es": {
+ "version": "4.17.21",
+ "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz",
+ "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==",
+ "license": "MIT"
+ },
+ "node_modules/loose-envify": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
+ "license": "MIT",
+ "dependencies": {
+ "js-tokens": "^3.0.0 || ^4.0.0"
+ },
+ "bin": {
+ "loose-envify": "cli.js"
+ }
+ },
+ "node_modules/lru-cache": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^3.0.2"
+ }
+ },
+ "node_modules/luxon": {
+ "version": "3.7.2",
+ "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.7.2.tgz",
+ "integrity": "sha512-vtEhXh/gNjI9Yg1u4jX/0YVPMvxzHuGgCm6tC5kZyb08yjGWGnqAjGJvcXbqQR2P3MyMEFnRbpcdFS6PBcLqew==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/masonry-layout": {
+ "version": "4.2.2",
+ "resolved": "https://registry.npmjs.org/masonry-layout/-/masonry-layout-4.2.2.tgz",
+ "integrity": "sha512-iGtAlrpHNyxaR19CvKC3npnEcAwszXoyJiI8ARV2ePi7fmYhIud25MHK8Zx4P0LCC4d3TNO9+rFa1KoK1OEOaA==",
+ "license": "MIT",
+ "dependencies": {
+ "get-size": "^2.0.2",
+ "outlayer": "^2.1.0"
+ }
+ },
+ "node_modules/matchmediaquery": {
+ "version": "0.4.2",
+ "resolved": "https://registry.npmjs.org/matchmediaquery/-/matchmediaquery-0.4.2.tgz",
+ "integrity": "sha512-wrZpoT50ehYOudhDjt/YvUJc6eUzcdFPdmbizfgvswCKNHD1/OBOHYJpHie+HXpu6bSkEGieFMYk6VuutaiRfA==",
+ "license": "MIT",
+ "dependencies": {
+ "css-mediaquery": "^0.1.2"
+ }
+ },
+ "node_modules/math-intrinsics": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/mime-db": {
+ "version": "1.52.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime-types": {
+ "version": "2.1.35",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "1.52.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "license": "MIT"
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.11",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "peer": true,
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/node-fetch": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
+ "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
+ "license": "MIT",
+ "dependencies": {
+ "whatwg-url": "^5.0.0"
+ },
+ "engines": {
+ "node": "4.x || >=6.0.0"
+ },
+ "peerDependencies": {
+ "encoding": "^0.1.0"
+ },
+ "peerDependenciesMeta": {
+ "encoding": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/node-releases": {
+ "version": "2.0.23",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.23.tgz",
+ "integrity": "sha512-cCmFDMSm26S6tQSDpBCg/NR8NENrVPhAJSf+XbxBG4rPFaaonlEoE9wHQmun+cls499TQGSb7ZyPBRlzgKfpeg==",
+ "license": "MIT"
+ },
+ "node_modules/object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/outlayer": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/outlayer/-/outlayer-2.1.1.tgz",
+ "integrity": "sha512-+GplXsCQ3VrbGujAeHEzP9SXsBmJxzn/YdDSQZL0xqBmAWBmortu2Y9Gwdp9J0bgDQ8/YNIPMoBM13nTwZfAhw==",
+ "license": "MIT",
+ "dependencies": {
+ "ev-emitter": "^1.0.0",
+ "fizzy-ui-utils": "^2.0.0",
+ "get-size": "^2.0.2"
+ }
+ },
+ "node_modules/parent-module": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
+ "license": "MIT",
+ "dependencies": {
+ "callsites": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/parse-json": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
+ "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.0.0",
+ "error-ex": "^1.3.1",
+ "json-parse-even-better-errors": "^2.3.0",
+ "lines-and-columns": "^1.1.6"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/path-parse": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
+ "license": "MIT"
+ },
+ "node_modules/path-type": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
+ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",
+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/popper.js": {
+ "version": "1.16.1",
+ "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1.tgz",
+ "integrity": "sha512-Wb4p1J4zyFTbM+u6WuO4XstYx4Ky9Cewe4DWrel7B0w6VVICvPwdOpotjzcf6eD8TsckVnIMNONQyPIUFOUbCQ==",
+ "deprecated": "You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/popperjs"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.6",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",
+ "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "nanoid": "^3.3.11",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/prop-types": {
+ "version": "15.8.1",
+ "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
+ "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.4.0",
+ "object-assign": "^4.1.1",
+ "react-is": "^16.13.1"
+ }
+ },
+ "node_modules/prop-types/node_modules/react-is": {
+ "version": "16.13.1",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
+ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
+ "license": "MIT"
+ },
+ "node_modules/property-expr": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/property-expr/-/property-expr-2.0.6.tgz",
+ "integrity": "sha512-SVtmxhRE/CGkn3eZY1T6pC8Nln6Fr/lu1mKSgRud0eC73whjGfoAogbn78LkD8aFL0zz3bAFerKSnOl7NlErBA==",
+ "license": "MIT"
+ },
+ "node_modules/proxy-from-env": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
+ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
+ "license": "MIT"
+ },
+ "node_modules/raf-schd": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/raf-schd/-/raf-schd-4.0.3.tgz",
+ "integrity": "sha512-tQkJl2GRWh83ui2DiPTJz9wEiMN20syf+5oKfB03yYP7ioZcJwsIK8FjrtLwH1m7C7e+Tt2yYBlrOpdT+dyeIQ==",
+ "license": "MIT"
+ },
+ "node_modules/react": {
+ "version": "19.2.0",
+ "resolved": "https://registry.npmjs.org/react/-/react-19.2.0.tgz",
+ "integrity": "sha512-tmbWg6W31tQLeB5cdIBOicJDJRR2KzXsV7uSK9iNfLWQ5bIZfxuPEHp7M8wiHyHnn0DD1i7w3Zmin0FtkrwoCQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "19.2.0",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.0.tgz",
+ "integrity": "sha512-UlbRu4cAiGaIewkPyiRGJk0imDN2T3JjieT6spoL2UeSf5od4n5LB/mQ4ejmxhCFT1tYe8IvaFulzynWovsEFQ==",
+ "license": "MIT",
+ "dependencies": {
+ "scheduler": "^0.27.0"
+ },
+ "peerDependencies": {
+ "react": "^19.2.0"
+ }
+ },
+ "node_modules/react-fast-compare": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-2.0.4.tgz",
+ "integrity": "sha512-suNP+J1VU1MWFKcyt7RtjiSWUjvidmQSlqu+eHslq+342xCbGTYmC0mEhPCOHxlW0CywylOC1u2DFAT+bv4dBw==",
+ "license": "MIT"
+ },
+ "node_modules/react-i18next": {
+ "version": "16.0.0",
+ "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-16.0.0.tgz",
+ "integrity": "sha512-JQ+dFfLnFSKJQt7W01lJHWRC0SX7eDPobI+MSTJ3/gP39xH2g33AuTE7iddAfXYHamJdAeMGM0VFboPaD3G68Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.27.6",
+ "html-parse-stringify": "^3.0.1"
+ },
+ "peerDependencies": {
+ "i18next": ">= 25.5.2",
+ "react": ">= 16.8.0",
+ "typescript": "^5"
+ },
+ "peerDependenciesMeta": {
+ "react-dom": {
+ "optional": true
+ },
+ "react-native": {
+ "optional": true
+ },
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-is": {
+ "version": "19.2.0",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.2.0.tgz",
+ "integrity": "sha512-x3Ax3kNSMIIkyVYhWPyO09bu0uttcAIoecO/um/rKGQ4EltYWVYtyiGkS/3xMynrbVQdS69Jhlv8FXUEZehlzA==",
+ "license": "MIT"
+ },
+ "node_modules/react-redux": {
+ "version": "9.2.0",
+ "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-9.2.0.tgz",
+ "integrity": "sha512-ROY9fvHhwOD9ySfrF0wmvu//bKCQ6AeZZq1nJNtbDC+kk5DuSuNX/n6YWYF/SYy7bSba4D4FSz8DJeKY/S/r+g==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/use-sync-external-store": "^0.0.6",
+ "use-sync-external-store": "^1.4.0"
+ },
+ "peerDependencies": {
+ "@types/react": "^18.2.25 || ^19",
+ "react": "^18.0 || ^19",
+ "redux": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "redux": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-refresh": {
+ "version": "0.17.0",
+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz",
+ "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-responsive": {
+ "version": "10.0.1",
+ "resolved": "https://registry.npmjs.org/react-responsive/-/react-responsive-10.0.1.tgz",
+ "integrity": "sha512-OM5/cRvbtUWEX8le8RCT8scA8y2OPtb0Q/IViEyCEM5FBN8lRrkUOZnu87I88A6njxDldvxG+rLBxWiA7/UM9g==",
+ "license": "MIT",
+ "dependencies": {
+ "hyphenate-style-name": "^1.0.0",
+ "matchmediaquery": "^0.4.2",
+ "prop-types": "^15.6.1",
+ "shallow-equal": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0"
+ }
+ },
+ "node_modules/react-router": {
+ "version": "7.9.4",
+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.9.4.tgz",
+ "integrity": "sha512-SD3G8HKviFHg9xj7dNODUKDFgpG4xqD5nhyd0mYoB5iISepuZAvzSr8ywxgxKJ52yRzf/HWtVHc9AWwoTbljvA==",
+ "license": "MIT",
+ "dependencies": {
+ "cookie": "^1.0.1",
+ "set-cookie-parser": "^2.6.0"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=18",
+ "react-dom": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-router-dom": {
+ "version": "7.9.4",
+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.9.4.tgz",
+ "integrity": "sha512-f30P6bIkmYvnHHa5Gcu65deIXoA2+r3Eb6PJIAddvsT9aGlchMatJ51GgpU470aSqRRbFX22T70yQNUGuW3DfA==",
+ "license": "MIT",
+ "dependencies": {
+ "react-router": "7.9.4"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=18",
+ "react-dom": ">=18"
+ }
+ },
+ "node_modules/react-simple-wysiwyg": {
+ "version": "3.4.1",
+ "resolved": "https://registry.npmjs.org/react-simple-wysiwyg/-/react-simple-wysiwyg-3.4.1.tgz",
+ "integrity": "sha512-amppNS/WiUSURSFXg9evcRjRBwK6pf5LRWDACVZT/q4k2TginjNxegxM0T2s2LYulbRFS4eGwO7nv57OskckHw==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": ">=16.8"
+ }
+ },
+ "node_modules/react-transition-group": {
+ "version": "4.4.5",
+ "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz",
+ "integrity": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@babel/runtime": "^7.5.5",
+ "dom-helpers": "^5.0.1",
+ "loose-envify": "^1.4.0",
+ "prop-types": "^15.6.2"
+ },
+ "peerDependencies": {
+ "react": ">=16.6.0",
+ "react-dom": ">=16.6.0"
+ }
+ },
+ "node_modules/recharts": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/recharts/-/recharts-3.2.1.tgz",
+ "integrity": "sha512-0JKwHRiFZdmLq/6nmilxEZl3pqb4T+aKkOkOi/ZISRZwfBhVMgInxzlYU9D4KnCH3KINScLy68m/OvMXoYGZUw==",
+ "license": "MIT",
+ "dependencies": {
+ "@reduxjs/toolkit": "1.x.x || 2.x.x",
+ "clsx": "^2.1.1",
+ "decimal.js-light": "^2.5.1",
+ "es-toolkit": "^1.39.3",
+ "eventemitter3": "^5.0.1",
+ "immer": "^10.1.1",
+ "react-redux": "8.x.x || 9.x.x",
+ "reselect": "5.1.1",
+ "tiny-invariant": "^1.3.3",
+ "use-sync-external-store": "^1.2.2",
+ "victory-vendor": "^37.0.2"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-is": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/redux": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/redux/-/redux-5.0.1.tgz",
+ "integrity": "sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==",
+ "license": "MIT"
+ },
+ "node_modules/redux-thunk": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-3.1.0.tgz",
+ "integrity": "sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==",
+ "license": "MIT",
+ "peerDependencies": {
+ "redux": "^5.0.0"
+ }
+ },
+ "node_modules/reselect": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.1.1.tgz",
+ "integrity": "sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==",
+ "license": "MIT"
+ },
+ "node_modules/resolve": {
+ "version": "1.22.10",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",
+ "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==",
+ "license": "MIT",
+ "dependencies": {
+ "is-core-module": "^2.16.0",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ },
+ "bin": {
+ "resolve": "bin/resolve"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/rollup": {
+ "version": "4.52.4",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.52.4.tgz",
+ "integrity": "sha512-CLEVl+MnPAiKh5pl4dEWSyMTpuflgNQiLGhMv8ezD5W/qP8AKvmYpCOKRRNOh7oRKnauBZ4SyeYkMS+1VSyKwQ==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@types/estree": "1.0.8"
+ },
+ "bin": {
+ "rollup": "dist/bin/rollup"
+ },
+ "engines": {
+ "node": ">=18.0.0",
+ "npm": ">=8.0.0"
+ },
+ "optionalDependencies": {
+ "@rollup/rollup-android-arm-eabi": "4.52.4",
+ "@rollup/rollup-android-arm64": "4.52.4",
+ "@rollup/rollup-darwin-arm64": "4.52.4",
+ "@rollup/rollup-darwin-x64": "4.52.4",
+ "@rollup/rollup-freebsd-arm64": "4.52.4",
+ "@rollup/rollup-freebsd-x64": "4.52.4",
+ "@rollup/rollup-linux-arm-gnueabihf": "4.52.4",
+ "@rollup/rollup-linux-arm-musleabihf": "4.52.4",
+ "@rollup/rollup-linux-arm64-gnu": "4.52.4",
+ "@rollup/rollup-linux-arm64-musl": "4.52.4",
+ "@rollup/rollup-linux-loong64-gnu": "4.52.4",
+ "@rollup/rollup-linux-ppc64-gnu": "4.52.4",
+ "@rollup/rollup-linux-riscv64-gnu": "4.52.4",
+ "@rollup/rollup-linux-riscv64-musl": "4.52.4",
+ "@rollup/rollup-linux-s390x-gnu": "4.52.4",
+ "@rollup/rollup-linux-x64-gnu": "4.52.4",
+ "@rollup/rollup-linux-x64-musl": "4.52.4",
+ "@rollup/rollup-openharmony-arm64": "4.52.4",
+ "@rollup/rollup-win32-arm64-msvc": "4.52.4",
+ "@rollup/rollup-win32-ia32-msvc": "4.52.4",
+ "@rollup/rollup-win32-x64-gnu": "4.52.4",
+ "@rollup/rollup-win32-x64-msvc": "4.52.4",
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/scheduler": {
+ "version": "0.27.0",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
+ "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
+ "license": "MIT"
+ },
+ "node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/set-cookie-parser": {
+ "version": "2.7.1",
+ "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.1.tgz",
+ "integrity": "sha512-IOc8uWeOZgnb3ptbCURJWNjWUPcO3ZnTTdzsurqERrP6nPyv+paC55vJM0LpOlT2ne+Ix+9+CRG1MNLlyZ4GjQ==",
+ "license": "MIT"
+ },
+ "node_modules/shallow-equal": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/shallow-equal/-/shallow-equal-3.1.0.tgz",
+ "integrity": "sha512-pfVOw8QZIXpMbhBWvzBISicvToTiM5WBF1EeAUZDDSb5Dt29yl4AYbyywbJFSEsRUMr7gJaxqCdr4L3tQf9wVg==",
+ "license": "MIT"
+ },
+ "node_modules/slug": {
+ "version": "9.1.0",
+ "resolved": "https://registry.npmjs.org/slug/-/slug-9.1.0.tgz",
+ "integrity": "sha512-ioOsCfzQSu+D6NZ8XMCR8IW9FgvF8W7Xzz56hBkB/ALvNaWeBs2MUvvPugq3GCrxfHPFeK6hAxGkY/WLnfX2Lg==",
+ "license": "MIT",
+ "bin": {
+ "slug": "cli.js"
+ }
+ },
+ "node_modules/source-map": {
+ "version": "0.5.7",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
+ "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+ "license": "BSD-3-Clause",
+ "peer": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/stylis": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.2.0.tgz",
+ "integrity": "sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==",
+ "license": "MIT"
+ },
+ "node_modules/supports-preserve-symlinks-flag": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/tiny-case": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/tiny-case/-/tiny-case-1.0.3.tgz",
+ "integrity": "sha512-Eet/eeMhkO6TX8mnUteS9zgPbUMQa4I6Kkp5ORiBD5476/m+PIRiumP5tmh5ioJpH7k51Kehawy2UDfsnxxY8Q==",
+ "license": "MIT"
+ },
+ "node_modules/tiny-invariant": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz",
+ "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==",
+ "license": "MIT"
+ },
+ "node_modules/tiny-warning": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz",
+ "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==",
+ "license": "MIT"
+ },
+ "node_modules/tinyglobby": {
+ "version": "0.2.15",
+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",
+ "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "fdir": "^6.5.0",
+ "picomatch": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/SuperchupuDev"
+ }
+ },
+ "node_modules/toposort": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz",
+ "integrity": "sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg==",
+ "license": "MIT"
+ },
+ "node_modules/tr46": {
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
+ "license": "MIT"
+ },
+ "node_modules/tsconfck": {
+ "version": "3.1.6",
+ "resolved": "https://registry.npmjs.org/tsconfck/-/tsconfck-3.1.6.tgz",
+ "integrity": "sha512-ks6Vjr/jEw0P1gmOVwutM3B7fWxoWBL2KRDb1JfqGVawBmO5UsvmWOQFGHBPl5yxYz4eERr19E6L7NMv+Fej4w==",
+ "license": "MIT",
+ "bin": {
+ "tsconfck": "bin/tsconfck.js"
+ },
+ "engines": {
+ "node": "^18 || >=20"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/tslib": {
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
+ "license": "0BSD"
+ },
+ "node_modules/type-fest": {
+ "version": "2.19.0",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz",
+ "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==",
+ "license": "(MIT OR CC0-1.0)",
+ "engines": {
+ "node": ">=12.20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/typescript": {
+ "version": "5.9.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/update-browserslist-db": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz",
+ "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "escalade": "^3.2.0",
+ "picocolors": "^1.1.1"
+ },
+ "bin": {
+ "update-browserslist-db": "cli.js"
+ },
+ "peerDependencies": {
+ "browserslist": ">= 4.21.0"
+ }
+ },
+ "node_modules/use-sync-external-store": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",
+ "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/victory-vendor": {
+ "version": "37.3.6",
+ "resolved": "https://registry.npmjs.org/victory-vendor/-/victory-vendor-37.3.6.tgz",
+ "integrity": "sha512-SbPDPdDBYp+5MJHhBCAyI7wKM3d5ivekigc2Dk2s7pgbZ9wIgIBYGVw4zGHBml/qTFbexrofXW6Gu4noGxrOwQ==",
+ "license": "MIT AND ISC",
+ "dependencies": {
+ "@types/d3-array": "^3.0.3",
+ "@types/d3-ease": "^3.0.0",
+ "@types/d3-interpolate": "^3.0.1",
+ "@types/d3-scale": "^4.0.2",
+ "@types/d3-shape": "^3.1.0",
+ "@types/d3-time": "^3.0.0",
+ "@types/d3-timer": "^3.0.0",
+ "d3-array": "^3.1.6",
+ "d3-ease": "^3.0.1",
+ "d3-interpolate": "^3.0.1",
+ "d3-scale": "^4.0.2",
+ "d3-shape": "^3.1.0",
+ "d3-time": "^3.0.0",
+ "d3-timer": "^3.0.1"
+ }
+ },
+ "node_modules/vite": {
+ "version": "7.1.9",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-7.1.9.tgz",
+ "integrity": "sha512-4nVGliEpxmhCL8DslSAUdxlB6+SMrhB0a1v5ijlh1xB1nEPuy1mxaHxysVucLHuWryAxLWg6a5ei+U4TLn/rFg==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "esbuild": "^0.25.0",
+ "fdir": "^6.5.0",
+ "picomatch": "^4.0.3",
+ "postcss": "^8.5.6",
+ "rollup": "^4.43.0",
+ "tinyglobby": "^0.2.15"
+ },
+ "bin": {
+ "vite": "bin/vite.js"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "funding": {
+ "url": "https://github.com/vitejs/vite?sponsor=1"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ },
+ "peerDependencies": {
+ "@types/node": "^20.19.0 || >=22.12.0",
+ "jiti": ">=1.21.0",
+ "less": "^4.0.0",
+ "lightningcss": "^1.21.0",
+ "sass": "^1.70.0",
+ "sass-embedded": "^1.70.0",
+ "stylus": ">=0.54.8",
+ "sugarss": "^5.0.0",
+ "terser": "^5.16.0",
+ "tsx": "^4.8.1",
+ "yaml": "^2.4.2"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ },
+ "jiti": {
+ "optional": true
+ },
+ "less": {
+ "optional": true
+ },
+ "lightningcss": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ },
+ "sass-embedded": {
+ "optional": true
+ },
+ "stylus": {
+ "optional": true
+ },
+ "sugarss": {
+ "optional": true
+ },
+ "terser": {
+ "optional": true
+ },
+ "tsx": {
+ "optional": true
+ },
+ "yaml": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vite-tsconfig-paths": {
+ "version": "5.1.4",
+ "resolved": "https://registry.npmjs.org/vite-tsconfig-paths/-/vite-tsconfig-paths-5.1.4.tgz",
+ "integrity": "sha512-cYj0LRuLV2c2sMqhqhGpaO3LretdtMn/BVX4cPLanIZuwwrkVl+lK84E/miEXkCHWXuq65rhNN4rXsBcOB3S4w==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.1.1",
+ "globrex": "^0.1.2",
+ "tsconfck": "^3.0.3"
+ },
+ "peerDependencies": {
+ "vite": "*"
+ },
+ "peerDependenciesMeta": {
+ "vite": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/void-elements": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-3.1.0.tgz",
+ "integrity": "sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/web-vitals": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-5.1.0.tgz",
+ "integrity": "sha512-ArI3kx5jI0atlTtmV0fWU3fjpLmq/nD3Zr1iFFlJLaqa5wLBkUSzINwBPySCX/8jRyjlmy1Volw1kz1g9XE4Jg==",
+ "license": "Apache-2.0"
+ },
+ "node_modules/webidl-conversions": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/whatwg-url": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
+ "license": "MIT",
+ "dependencies": {
+ "tr46": "~0.0.3",
+ "webidl-conversions": "^3.0.0"
+ }
+ },
+ "node_modules/yallist": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
+ "license": "ISC"
+ },
+ "node_modules/yaml": {
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz",
+ "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==",
+ "license": "ISC",
+ "optional": true,
+ "peer": true,
+ "bin": {
+ "yaml": "bin.mjs"
+ },
+ "engines": {
+ "node": ">= 14.6"
+ }
+ },
+ "node_modules/yup": {
+ "version": "1.7.1",
+ "resolved": "https://registry.npmjs.org/yup/-/yup-1.7.1.tgz",
+ "integrity": "sha512-GKHFX2nXul2/4Dtfxhozv701jLQHdf6J34YDh2cEkpqoo8le5Mg6/LrdseVLrFarmFygZTlfIhHx/QKfb/QWXw==",
+ "license": "MIT",
+ "dependencies": {
+ "property-expr": "^2.0.5",
+ "tiny-case": "^1.0.3",
+ "toposort": "^2.0.2",
+ "type-fest": "^2.19.0"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
index 70336e555..ba038f215 100644
--- a/package.json
+++ b/package.json
@@ -10,6 +10,7 @@
},
"homepage": "https://github.com/wger-project/wger",
"dependencies": {
+ "@wger-project/react-components": "0.1.4",
"@popperjs/core": "^2.11.8",
"bootstrap": "5.3.8",
"components-font-awesome": "5.9.0",
@@ -21,12 +22,7 @@
"popper.js": "^1.16.1"
},
"scripts": {
- "build:css:sass": "sass wger/core/static/scss/main.scss wger/core/static/yarn/bootstrap-compiled.css",
- "install:force": "yarn install && yarn run postinstall",
- "postinstall": "rm -rf wger/core/static/yarn/ && mkdir -p wger/core/static/yarn/ && cp -r node_modules/* wger/core/static/yarn/"
+ "build:css:sass": "sass wger/core/static/scss/main.scss wger/core/static/bootstrap-compiled.css"
},
- "engines": {
- "yarn": ">= 1.0.0"
- },
- "packageManager": "[email protected]"
+ "packageManager": "[email protected]"
}
diff --git a/wger/core/static/react/locales/README.md b/wger/core/static/react/locales/README.md
deleted file mode 100644
index 2707acfb4..000000000
--- a/wger/core/static/react/locales/README.md
+++ /dev/null
@@ -1,10 +0,0 @@
-i18n README
-===========
-
-To extract new strings `yarn i18n`, actual translation occurs in weblate:
-<https://hosted.weblate.org/projects/wger/frontend/>
-
-More info: <https://react.i18next.com/>
-
-Please note that the contents of i18n.tsx contains the values of the exercise categories, equipment, etc. and is
-autogenerated on the wger repo by the extract-i18n.py script (python manage.py extract-i18n).
\ No newline at end of file
diff --git a/wger/core/static/react/locales/ar/translation.json b/wger/core/static/react/locales/ar/translation.json
deleted file mode 100644
index 562fe2b5f..000000000
--- a/wger/core/static/react/locales/ar/translation.json
+++ /dev/null
@@ -1,240 +0,0 @@
-{
- "weight": "الوزن",
- "height": "الطول",
- "cm": "سم",
- "date": "التاريخ",
- "timeOfDay": "الوقت من اليوم",
- "submit": "إرسال",
- "edit": "تعديل",
- "delete": "حذف",
- "deleteConfirmation": "هل أنت متأكد أنك تريد حذف \"{{name}}\"؟",
- "add": "إضافة",
- "close": "إغلاق",
- "difference": "الفرق",
- "days": "أيام",
- "all": "الكل",
- "lastYear": "العام الماضي",
- "lastHalfYear": "آخر 6 أشهر",
- "lastMonth": "الشهر الماضي",
- "lastWeek": "الأسبوع الماضي",
- "licenses": {
- "authors": "المؤلف(ون)",
- "authorProfile": "رابط الموقع الشخصي أو الملف الشخصي للمؤلف (إن وجد)",
- "derivativeSourceUrl": "رابط المصدر الأصلي (إذا كان هذا العمل مشتقًا)",
- "derivativeSourceUrlHelper": "ملاحظة: العمل المشتق هو العمل الذي لا يعتمد فقط على عمل سابق، ولكنه يحتوي أيضًا على محتوى جديد وخلاق كافٍ ليمنحه حقوق النشر الخاصة به.",
- "originalObjectUrl": "رابط الموقع الأصلي (إن وجد)",
- "originalTitle": "العنوان"
- },
- "loading": "جاري التحميل...",
- "nutritionalPlan": "الخطة الغذائية",
- "addEntry": "إضافة مدخل",
- "currentWeight": "الوزن الحالي",
- "workout": "التدريب",
- "seeDetails": "عرض التفاصيل",
- "actions": "الإجراءات",
- "nothingHereYet": "لا يوجد شيء هنا بعد...",
- "nothingHereYetAction": "اضغط على زر الإجراء للبدء",
- "notes": "ملاحظات",
- "value": "القيمة",
- "unit": "الوحدة",
- "alsoSearchEnglish": "البحث أيضًا عن الأسماء بالإنجليزية",
- "copyToClipboard": "نسخ إلى الحافظة",
- "filters": "الفلاتر",
- "exercises": {
- "replacements": "البدائل",
- "replacementsInfoText": "يمكنك اختياريًا تحديد تمرين ليحل محل هذا التمرين (على سبيل المثال، لأنه تم إرساله مرتين، أو ما شابه). سيؤدي هذا إلى استبدال التمرين في الروتينات وسجلات التدريب بدلًا من حذفه فقط. هذه التغييرات ستنتشر أيضًا إلى أي نسخة تتم مزامنة التمارين منها.",
- "replacementsSearch": "ابحث عن تمرين أو انسخ ولصق معرف معروف في الحقل ثم انقر على زر \"تحميل\".",
- "noReplacementSelected": "لم يتم اختيار تمرين بديل",
- "contributeExercise": "المساهمة بتمرين",
- "step1HeaderBasics": "الأساسيات بالإنجليزية",
- "variations": "الاختلافات",
- "notEnoughRightsHeader": "لا يمكنك المساهمة بتمارين",
- "notEnoughRights": "يمكنك المساهمة بتمارين فقط إذا كان عمر حسابك أكثر من {{days}} يومًا وقمت بتأكيد بريدك الإلكتروني",
- "muscles": "العضلات",
- "secondaryMuscles": "العضلات الثانوية",
- "whatVariationsExist": "ما هي الاختلافات الموجودة لهذا التمرين، إن وجدت؟",
- "filterVariations": "أدخل اسم التمرين لتصفية الاختلافات",
- "identicalExercise": "تجنب التمارين المكررة",
- "identicalExercisePleaseDiscard": "إذا لاحظت تمرينًا مطابقًا للذي تضيفه، يرجى إلغاء المسودة وتعديل التمرين الموجود بدلًا من ذلك.",
- "translateExerciseNow": "ترجمة هذا التمرين الآن",
- "compatibleImagesCC": "يجب أن تكون الصور متوافقة مع رخصة CC BY SA. إذا كنت في شك، قم بتحميل الصور التي التقطتها بنفسك فقط.",
- "alternativeNames": "أسماء بديلة",
- "notes": "ملاحظات",
- "equipment": "المعدات",
- "checkInformationBeforeSubmitting": "يرجى التحقق من صحة المعلومات قبل إرسال التمرين",
- "cacheWarning": "بسبب التخزين المؤقت، قد تستغرق التغييرات بعض الوقت حتى تظهر في التطبيق بالكامل.",
- "submitExercise": "إرسال التمرين",
- "successfullyUpdated": "تم تحديث التمرين بنجاح. بسبب التخزين المؤقت، قد تستغرق التغييرات بعض الوقت حتى تظهر في التطبيق بالكامل.",
- "description": "الوصف",
- "basics": "الأساسيات",
- "exerciseNotTranslated": "لا تتوفر ترجمة",
- "exerciseNotTranslatedBody": "هذا التمرين غير متوفر باللغة المحددة حاليًا. هل تريد المساهمة بترجمة؟",
- "alsoKnownAs": "معروف أيضًا باسم:",
- "primaryMuscles": "العضلات الرئيسية",
- "deleteExerciseBody": "هل تريد حذف التمرين \"{{name}}\"؟ يمكنك حذف الترجمة الحالية ({{language}}) أو التمرين الكامل مع جميع الترجمات والصور وغيرها.",
- "deleteTranslation": "حذف الترجمة",
- "deleteExerciseFull": "حذف التمرين بالكامل",
- "deleteExerciseReplace": "حذف واستبدال",
- "exercises": "التمارين",
- "changeExerciseLanguage": "تغيير لغة هذا التمرين",
- "noEquipment": "لا يوجد معدات",
- "missingExercise": "هل تفتقد تمرينًا معينًا؟",
- "missingExerciseDescription": "ساعد المجتمع عن طريق المساهمة به!",
- "searchExerciseName": "البحث باسم التمرين",
- "newNote": "ملاحظة جديدة",
- "notesHelpText": "الملاحظات هي تعليقات قصيرة حول كيفية أداء التمرين مثل \"حافظ على استقامة جسمك\"",
- "imageStylePhoto": "صورة",
- "imageStyle3D": "ثلاثي الأبعاد",
- "imageStyleLine": "خطي",
- "imageStyleLowPoly": "Low-Poly",
- "imageStyleOther": "أخرى",
- "imageDetails": "تفاصيل الصورة"
- },
- "nutrition": {
- "plans": "الخطط الغذائية",
- "copyPlan": "إنشاء نسخة من هذه الخطة",
- "plan": "الخطة الغذائية",
- "onlyLoggingHelpText": "تتبع السعرات الحرارية فقط. حدد المربع إذا كنت تريد تسجيل السعرات الحرارية دون إعداد خطة غذائية مفصلة مع وجبات محددة",
- "goalsTitle": "الأهداف",
- "useGoalsHelpText": "إضافة أهداف إلى هذه الخطة",
- "useGoalsHelpTextLong": "يتيح لك ذلك تعيين أهداف عامة للطاقة أو البروتين أو الكربوهيدرات أو الدهون للخطة. لاحظ أن إعداد خطة وجبات مفصلة سيتغلب على هذه القيم.",
- "goalEnergy": "هدف الطاقة",
- "goalProtein": "هدف البروتين",
- "goalCarbohydrates": "هدف الكربوهيدرات",
- "goalFiber": "هدف الألياف",
- "goalFat": "هدف الدهون",
- "addNutritionalDiary": "إضافة مدخل في اليومية الغذائية",
- "meal": "الوجبة",
- "addMeal": "إضافة وجبة",
- "addMealItem": "إضافة مكون إلى الوجبة",
- "nutritionalDiary": "اليومية الغذائية",
- "gramShort": "غ",
- "kcal": "سعرة",
- "valueEnergyKcal": "{{value}} سعرة",
- "valueEnergyKcalKj": "{{kcal}} سعرة / {{kj}} كيلوجول",
- "searchIngredientName": "البحث باسم المكون",
- "macronutrient": "المغذيات الكبرى",
- "percentEnergy": "النسبة المئوية للطاقة",
- "gPerBodyKg": "غرام لكل كغم من الجسم",
- "planned": "مخطط",
- "logged": "مسجل",
- "loggedToday": "مسجل اليوم",
- "difference": "الفرق",
- "today": "اليوم",
- "7dayAvg": "متوسط 7 أيام",
- "energy": "الطاقة",
- "protein": "البروتين",
- "carbohydrates": "الكربوهيدرات",
- "sugar": "السكر",
- "ofWhichSugars": "منها سكريات",
- "fat": "الدهون",
- "ofWhichSaturated": "منها مشبعة",
- "saturatedFat": "الدهون المشبعة",
- "pseudoMealTitle": "سجلات أخرى",
- "others": "أخرى",
- "fibres": "الألياف",
- "sodium": "الصوديوم",
- "planDeleteInfo": "سيؤدي هذا إلى حذف جميع مدخلات اليومية الغذائية أيضًا",
- "mealDeleteInfo": "لن يتم حذف مدخلات اليومية الغذائية لهذه الوجبة وستظهر تحت \"سجلات أخرى\"",
- "diaryEntrySaved": "تم حفظ مدخل اليومية بنجاح",
- "logThisMeal": "تسجيل هذه الوجبة كما هي في اليومية الغذائية",
- "logThisMealItem": "تسجيل هذا المكون كما هو في اليومية الغذائية",
- "valueRemaining": "متبقي",
- "valueTooMany": "زيادة"
- },
- "bmi": {
- "calculator": "حاسبة مؤشر كتلة الجسم",
- "overweight": "وزن زائد",
- "obese": "سمنة",
- "normal": "وزن طبيعي",
- "underweight": "نقص الوزن",
- "result": "مؤشر كتلة جسمك هو {{value}}"
- },
- "downloadAsPdf": "تحميل كـ PDF",
- "total": "الإجمالي",
- "description": "الوصف",
- "translation": "الترجمة",
- "images": "الصور",
- "overview": "نظرة عامة",
- "preferences": "التفضيلات",
- "continue": "متابعة",
- "goBack": "رجوع",
- "language": "اللغة",
- "forms": {
- "supportedImageFormats": "يتم دعم ملفات JPEG وPNG وWEBP فقط بحجم أقل من 20 ميجابايت",
- "valueTooShort": "القيمة قصيرة جدًا",
- "valueTooLong": "القيمة طويلة جدًا",
- "fieldRequired": "هذا الحقل مطلوب",
- "maxLength": "الرجاء إدخال أقل من {{chars}} حرفًا",
- "minLength": "الرجاء إدخال أكثر من {{chars}} حرفًا",
- "minValue": "يجب أن تكون القيمة أكبر من {{value}}",
- "maxValue": "يجب أن تكون القيمة أقل من {{value}}"
- },
- "name": "الاسم",
- "category": "الفئة",
- "success": "نجاح!",
- "English": "الإنجليزية",
- "save": "حفظ",
- "videos": "الفيديوهات",
- "cannotBeUndone": "لا يمكن التراجع عن هذا الإجراء.",
- "cancel": "إلغاء",
- "noResults": "لا توجد نتائج",
- "noResultsDescription": "لم يتم العثور على نتائج لهذا الاستعلام، يرجى تقليل عدد الفلاتر.",
- "routines": {
- "addDay": "إضافة يوم تدريب",
- "addWeightLog": "إضافة سجل تدريب",
- "logsHeader": "سجل التدريب للتمرين",
- "logsFilterNote": "ملاحظة: فقط المدخلات ذات وحدة الوزن (كجم أو رطل) والتكرارات تظهر في الرسم البياني، وتُهمل التركيبات الأخرى مثل الوقت أو حتى الفشل.",
- "addLogToDay": "إضافة سجل إلى هذا اليوم",
- "routine": "الروتين",
- "routines": "الروتينات",
- "rir": "RiR"
- },
- "measurements": {
- "measurements": "القياسات",
- "unitFormHelpText": "الوحدة التي سيتم بها قياس الفئة، مثل سم أو ٪",
- "deleteInfo": "سيؤدي هذا إلى حذف الفئة وجميع مدخلاتها"
- },
- "server": {
- "abs": "البطن",
- "arms": "الأذرع",
- "back": "الظهر",
- "barbell": "البار",
- "bench": "المقعد",
- "biceps": "العضلة ذات الرأسين",
- "body_weight": "وزن الجسم",
- "calves": "العجول",
- "cardio": "الكارديو",
- "chest": "الصدر",
- "dumbbell": "الدمبل",
- "glutes": "الأرداف",
- "gym_mat": "سجادة الجيم",
- "hamstrings": "أوتار الركبة",
- "incline_bench": "مقعد مائل",
- "kettlebell": "كيتل بيل",
- "kilometers": "كيلومترات",
- "kilometers_per_hour": "كيلومتر في الساعة",
- "lats": "العضلة الظهرية العريضة",
- "legs": "الأرجل",
- "max_reps": "أقصى تكرارات",
- "miles": "أميال",
- "miles_per_hour": "ميل في الساعة",
- "minutes": "دقائق",
- "plates": "الأوزان",
- "pull_up_bar": "بار الشد",
- "quads": "العضلات الرباعية",
- "repetitions": "التكرارات",
- "sz_bar": "البار الملتوي",
- "seconds": "ثواني",
- "shoulders": "الأكتاف",
- "swiss_ball": "الكرة السويسرية",
- "triceps": "العضلة ثلاثية الرؤوس",
- "until_failure": "حتى الفشل",
- "kg": "كجم",
- "lb": "رطل",
- "none__bodyweight_exercise_": "بدون (تمرين بوزن الجسم)"
- },
- "calendar": "التقويم",
- "entries": "المدخلات",
- "no_entries_for_day": "لا توجد مدخلات لهذا اليوم"
-}
diff --git a/wger/core/static/react/locales/ca/translation.json b/wger/core/static/react/locales/ca/translation.json
deleted file mode 100644
index 2f8585fcb..000000000
--- a/wger/core/static/react/locales/ca/translation.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "add": "Afegeix",
- "addEntry": "Afegeix entrada",
- "close": "Tanca",
- "currentWeight": "Pes actual",
- "date": "Data",
- "days": "Dies",
- "delete": "Esborra",
- "difference": "Diferència",
- "edit": "Edita",
- "nutritionalPlan": "Pla nutricional",
- "submit": "Tramet",
- "weight": "Pes",
- "workout": "Entrenament",
- "language": "Llenguatge",
- "images": "Imatges",
- "translation": "Traducció",
- "timeOfDay": "Hora",
- "editName": "Editar {{name}}",
- "start": "Inici",
- "licenses": {
- "authors": "Autor(s)",
- "authorProfile": "Enllaç al lloc web de l'autor, si n'hi ha",
- "derivativeSourceUrl": "Enllaç a la font original, si es tracta d'una obra derivada"
- },
- "comment": "Comentari",
- "deleteConfirmation": "Segur que vols esborrar \"{{name}}\"?",
- "lastYear": "Any passat",
- "lastHalfYear": "Darrers 6 mesos",
- "lastMonth": "Darrer mes",
- "height": "Alçada",
- "cm": "cm",
- "all": "Tot",
- "lastWeek": "Darrera setmana"
-}
diff --git a/wger/core/static/react/locales/cs/translation.json b/wger/core/static/react/locales/cs/translation.json
deleted file mode 100644
index a932999da..000000000
--- a/wger/core/static/react/locales/cs/translation.json
+++ /dev/null
@@ -1,257 +0,0 @@
-{
- "exercises": {
- "deleteExerciseBody": "Chcete odstranit cvičení „{{name}}“? Můžete odstranit buď aktuální překlad do jazyka {{language}} nebo celé cvičení se všemi překlady, obrázky apod.",
- "noEquipment": "Žádné vybavení",
- "missingExercise": "Chybí vám nějaké cvičení?",
- "searchExerciseName": "Hledat podle názvu cvičení",
- "imageStyle3D": "3D",
- "notesHelpText": "Poznámky jsou krátké komentáře o tom, jak provádět cvičení, například „tělo držte napřímené“",
- "imageStylePhoto": "Fotka",
- "imageStyleLowPoly": "Low-poly",
- "imageStyleLine": "Čára",
- "imageStyleOther": "Jiné",
- "imageDetails": "Podrobnosti o obrázku",
- "notEnoughRights": "Cviky můžete přidávat pouze, pokud je váš účet starší než {{days}} dní a máte ověřený svůj e-mail",
- "step1HeaderBasics": "Základy v angličtině",
- "variations": "Variace",
- "notEnoughRightsHeader": "Nemůžete přidávat cviky",
- "replacementsInfoText": "Volitelně můžete také vybrat cvičení, které by mělo toto cvičení nahradit (např. protože bylo odesláno dvakrát apod.). Tím se cvičení nahradí v rutinách i tréninkových protokolech, místo aby se pouze vymazalo. Tyto změny se také promítnou do jakékoli instance, která synchronizuje cvičení z této instance.",
- "replacementsSearch": "Vyhledejte cvičení nebo zkopírujte a vložte známé ID do pole a klikněte na tlačítko „Načíst“.",
- "whatVariationsExist": "Které variace tohoto cvičení existují, pokud nějaké jsou?",
- "filterVariations": "Zadejte název cvičení pro filtrování variací",
- "identicalExercisePleaseDiscard": "Pokud si všimnete cvičení, které je identické tomu, které právě přidáváte, zahoďte prosím váš návrh a místo toho upravte dané cvičení.",
- "compatibleImagesCC": "Obrázky musí být kompatibilní s licencí CC BY SA. Pokud si nejste jistí, nahrajte pouze fotky, které jste sami pořídili.",
- "alternativeNames": "Alternativní názvy",
- "notes": "Poznámky",
- "equipment": "Vybavení",
- "checkInformationBeforeSubmitting": "Před odesláním cvičení prosím zkontrolujte, že jsou zadané informace správné",
- "submitExercise": "Odeslat cvičení",
- "successfullyUpdated": "Cvičení bylo úspěšně upraveno. Kvůli ukládání do mezipaměti může zobrazení změn v aplikaci chvíli trvat.",
- "exerciseNotTranslated": "Překlad není dostupný",
- "exerciseNotTranslatedBody": "Toto cvičení momentálně není dostupné ve vybraném jazyce. Chcete přidat vlastní překlad?",
- "replacements": "Nahrazení",
- "noReplacementSelected": " Žádné cvičení nebylo vybráno jako náhrada",
- "contributeExercise": "Přidat cvičení",
- "muscles": "Svaly",
- "secondaryMuscles": "Sekundární svaly",
- "identicalExercise": "Vyhněte se duplicitním cvičením",
- "translateExerciseNow": "Přeložit toto cvičení",
- "cacheWarning": "Kvůli ukládání do mezipaměti může zobrazení změn v aplikaci chvíli trvat.",
- "description": "Popis",
- "basics": "Základy",
- "alsoKnownAs": "Také známé jako:",
- "primaryMuscles": "Primární svaly",
- "deleteTranslation": "Odstranit překlad",
- "deleteExerciseFull": "Odstranit celé cvičení",
- "deleteExerciseReplace": "Odstranit a nahradit",
- "exercises": "Cvičení",
- "changeExerciseLanguage": "Změnit jazyk tohoto cvičení",
- "missingExerciseDescription": "Pomozte komunitě jeho přidáním!",
- "newNote": "Nová poznámka",
- "swapExercise": "Změna cvičení"
- },
- "nutrition": {
- "plans": "Výživové plány",
- "plan": "Výživový plán",
- "goalsTitle": "Cíle",
- "useGoalsHelpText": "Přidat cíle do tohoto plánu",
- "goalEnergy": "Cíl energie",
- "goalFat": "Cíl tuku",
- "addNutritionalDiary": "Přidat záznam do výživového deníku",
- "meal": "Jídlo",
- "valueEnergyKcalKj": "{{kcal}} kcal / {{kj}} kJ",
- "searchIngredientName": "Hledat podle názvu ingredience",
- "today": "Dnes",
- "7dayAvg": "Průměr za 7 dní",
- "protein": "Bílkovina",
- "sugar": "Cukr",
- "pseudoMealTitle": "Další záznamy",
- "others": "Jiné",
- "copyPlan": "Kopírovat tento plán",
- "goalProtein": "Cíl bílkovin",
- "goalCarbohydrates": "Cíl sacharidů",
- "addMeal": "Přidat jídlo",
- "addMealItem": "Přidat ingredienci do jídla",
- "nutritionalDiary": "Výživový deník",
- "gramShort": "g",
- "kcal": "kcal",
- "valueEnergyKcal": "{{value}} kcal",
- "macronutrient": "Makroživina",
- "percentEnergy": "Procento energie",
- "gPerBodyKg": "g na tělo-kg",
- "planned": "Plánováno",
- "logged": "Zaznamenáno",
- "loggedToday": "Zaznamenáno dnes",
- "difference": "Rozdíl",
- "energy": "Energie",
- "carbohydrates": "Sacharidy",
- "ofWhichSugars": "z toho cukry",
- "fat": "Tuk",
- "ofWhichSaturated": "z toho nasycené",
- "saturatedFat": "Nasycený tuk",
- "fibres": "Vláknina",
- "sodium": "Sodík",
- "onlyLoggingHelpText": "Sledovat pouze kalorie. Pole zaškrtněte, pokud chcete zaznamenávat pouze vaše kalorie a nechcete nastavovat podrobný výživový plán se specifickými jídly",
- "valueRemaining": "zbývá",
- "diaryEntrySaved": "Záznam do deníku úspěšně uložen",
- "valueTooMany": "příliš mnoho",
- "useGoalsHelpTextLong": "Toto vám umožňuje nastavit obecné cíle pro energii, bílkoviny, sacharidy nebo tuky pro váš plán. Upozorňujeme, že pokud si nastavíte podrobný plán jídel, budou tyto hodnoty mít přednost.",
- "planDeleteInfo": "Touto akcí odstraníte také všechny záznamy ve výživovém deníku",
- "mealDeleteInfo": "Záznamy ve výživovém deníku u tohoto jídla nebudou odstraněny a budou přesunuty pod „ostatní záznamy“",
- "logThisMeal": "Zaznamenat jídlo do deníku tak jak je",
- "logThisMealItem": "Zaznamenat ingredienci do deníku tak jak je",
- "goalFiber": "Cíl vlákniny"
- },
- "add": "Přidat",
- "licenses": {
- "derivativeSourceUrlHelper": "Odvozené dílo je dílo, které je nejen založeno na předchozím díle, ale které také obsahuje dostatečně nový, tvůrčí obsah, aby mu vznikl nárok na vlastní autorská práva.",
- "originalObjectUrl": "Odkaz na zdrojový web, pokud je dostupný",
- "authors": "Autoři",
- "authorProfile": "Odkaz na web nebo profil autora, pokud je dostupný",
- "derivativeSourceUrl": "Odkaz na původní zdroj, pokud se jedná o odvozené dílo",
- "originalTitle": "Název"
- },
- "loading": "Načítání...",
- "addEntry": "Přidat záznam",
- "seeDetails": "Zobrazit podrobnosti",
- "notes": "Poznámky",
- "nothingHereYet": "Zatím tu nic není...",
- "weight": "Váha",
- "date": "Datum",
- "timeOfDay": "Čas",
- "submit": "Potvrdit",
- "edit": "Upravit",
- "delete": "Odstranit",
- "deleteConfirmation": "Opravdu chcete odstranit „{{name}}“?",
- "close": "Zavřít",
- "difference": "Rozdíl",
- "days": "Dny",
- "nutritionalPlan": "Výživový plán",
- "currentWeight": "Aktuální váha",
- "workout": "Trénink",
- "actions": "Akce",
- "nothingHereYetAction": "Stiskněte akční tlačítko pro začátek",
- "value": "Hodnota",
- "unit": "Jednotka",
- "alsoSearchEnglish": "Také hledat názvy v angličtině",
- "copyToClipboard": "Kopírovat do schránky",
- "downloadAsPdf": "Stáhnout jako PDF",
- "total": "Celkem",
- "description": "Popis",
- "translation": "Překlad",
- "routines": {
- "logsHeader": "Tréninkový záznam pro trénink",
- "addDay": "Přidat tréninkový den",
- "logsFilterNote": "Jsou zobrazeny pouze záznamy s jednotkou hmotnosti kg nebo lb a opakováními, ostatní kombinace, jako je čas nebo do selhání, jsou zde ignorovány",
- "addLogToDay": "Přidat záznam k tomuto dni",
- "addWeightLog": "Přidat tréninkový záznam",
- "routine": "Rutina",
- "routines": "Rutiny",
- "rir": "OvR",
- "reps": "Repetice",
- "currentRoutine": "Současná trasa"
- },
- "measurements": {
- "measurements": "Měření",
- "unitFormHelpText": "Jednotka, ve které bude kategorie měřena, například cm nebo %",
- "deleteInfo": "Touto akcí také odstraníte kategorii a její záznamy"
- },
- "server": {
- "arms": "Paže",
- "back": "Záda",
- "bench": "Lavice",
- "barbell": "Vzpěračská činka",
- "biceps": "Bicepsy",
- "incline_bench": "Šikmá lavice",
- "kilometers_per_hour": "Kilometry za hodinu",
- "lb": "lb",
- "abs": "Břišní svaly",
- "body_weight": "Tělesná hmotnost",
- "calves": "Lýtka",
- "cardio": "Kardio",
- "chest": "Hrudník",
- "dumbbell": "Jednoruční činka",
- "glutes": "Hýždě",
- "gym_mat": "Gymnastická podložka",
- "hamstrings": "Zadní stehenní svaly",
- "kettlebell": "Kettlebell",
- "kilometers": "Kilometry",
- "lats": "Široký sval zádový",
- "legs": "Nohy",
- "max_reps": "Max. opakování",
- "miles": "Míle",
- "miles_per_hour": "Míle za hodinu",
- "minutes": "Minuty",
- "plates": "Závaží",
- "pull_up_bar": "Hrazda",
- "quads": "Čtyřhlavý sval stehenní",
- "repetitions": "Opakování",
- "sz_bar": "Lišta SZ",
- "seconds": "Sekundy",
- "shoulders": "Ramena",
- "swiss_ball": "Gymnastický míč",
- "triceps": "Tricepsy",
- "until_failure": "Do selhání",
- "kg": "kg",
- "none__bodyweight_exercise_": "žádný (cvičení s vlastní vahou)"
- },
- "images": "Obrázky",
- "overview": "Přehled",
- "preferences": "Předvolby",
- "continue": "Pokračovat",
- "goBack": "Zpět",
- "language": "Jazyk",
- "forms": {
- "supportedImageFormats": "Jsou podporovány pouze soubory JPEG, PNG a WEBP do velikosti 20 Mb",
- "valueTooShort": "Hodnota je příliš krátká",
- "valueTooLong": "Hodnota je příliš dlouhá",
- "fieldRequired": "Toto pole je vyžadováno",
- "maxLength": "Zadejte prosím méně než {{chars}} znaků",
- "minLength": "Zadejte prosím více než {{chars}} znaků",
- "minValue": "Hodnota tohoto pole musí být vyšší než {{value}}",
- "maxValue": "Hodnota tohoto pole musí být nižší než {{value}}",
- "enterNumber": "Zadejte prosím platné číslo",
- "enterInteger": "Zadejte prosím celé číslo",
- "maxLessThanMin": "Maximální hodnota musí být větší než minimální",
- "endBeforeStart": "Konečná hodnota nemůže být předcházející počáteční hodnotě"
- },
- "name": "Název",
- "category": "Kategorie",
- "success": "Úspěch!",
- "English": "Čeština",
- "save": "Uložit",
- "videos": "Videa",
- "cannotBeUndone": "Tato akce je nevratná.",
- "cancel": "Zrušit",
- "noResults": "Žádné výsledky",
- "noResultsDescription": "Nenalezeny žádné výsledky pro tento dotaz, zvažte snížení počtu filtrů.",
- "filters": "Filtry",
- "calendar": "Kalendář",
- "entries": "Záznamy",
- "no_entries_for_day": "Žádné záznamy pro tento den",
- "editName": "Upravit {{name}}",
- "start": "Start",
- "end": "Konec",
- "comment": "Komentář",
- "min": "Min",
- "max": "Max",
- "durationWeeks": "{{number}} týdnů",
- "durationWeeksDays": "{{nrWeeks}} týdnů, {{nrDays}} dní",
- "undo": "Vrátit",
- "successfullyDeleted": "Úspěšně smazáno",
- "height": "Výška",
- "cm": "cm",
- "all": "Vše",
- "lastYear": "Minulý rok",
- "lastHalfYear": "Posledních 6 měsíců",
- "lastMonth": "Poslední měsíc",
- "lastWeek": "Poslední Týden",
- "bmi": {
- "overweight": "Nadváha",
- "normal": "Normální váha",
- "calculator": "BMI kalkulačka",
- "obese": "Obezita",
- "underweight": "Podváha",
- "result": "Vaše BMI je {{value}}"
- }
-}
diff --git a/wger/core/static/react/locales/de/translation.json b/wger/core/static/react/locales/de/translation.json
deleted file mode 100644
index eacae223f..000000000
--- a/wger/core/static/react/locales/de/translation.json
+++ /dev/null
@@ -1,338 +0,0 @@
-{
- "add": "Hinzufügen",
- "addEntry": "Eintrag hinzufügen",
- "change": "Veränderung",
- "close": "Schließen",
- "currentWeight": "Aktuelles Gewicht",
- "date": "Datum",
- "days": "Tage",
- "loading": "Lade...",
- "delete": "Löschen",
- "difference": "Differenz",
- "edit": "Bearbeiten",
- "category": "Kategorie",
- "English": "Englisch",
- "save": "Speichern",
- "continue": "Fortfahren",
- "exercises": {
- "equipment": "Gerät",
- "exercises": "Übungen",
- "muscles": "Muskeln",
- "secondaryMuscles": "Sekundäre Muskeln",
- "noEquipment": "Keine Ausrüstung",
- "searchExerciseName": "Nach Übungsnamen suchen",
- "exerciseNotTranslated": "Keine Übersetzung verfügbar",
- "exerciseNotTranslatedBody": "Diese Übung ist derzeit nicht in der gewählten Sprache verfügbar. Möchtest du eine Übersetzung beisteuern?",
- "translateExerciseNow": "Diese Übung jetzt übersetzen",
- "notes": "Anmerkungen",
- "description": "Beschreibung",
- "primaryMuscles": "Primäre Muskeln",
- "identicalExercisePleaseDiscard": "Wenn dir eine Übung auffällt, die mit der von dir hinzugefügten identisch ist, verwerfe bitte deinen Entwurf und bearbeite stattdessen diese Übung.",
- "contributeExercise": "Eine Übung beisteuern",
- "checkInformationBeforeSubmitting": "Bitte überprüfe vor dem Absenden der Übung, ob die von dir eingegebenen Informationen korrekt sind",
- "successfullyUpdated": "Die Übung wurde erfolgreich aktualisiert. Aufgrund von Caching kann es einige Zeit dauern, bis die Änderungen in der gesamten Anwendung sichtbar sind.",
- "alsoKnownAs": "Auch bekannt als:",
- "deleteExerciseTranslation": "Aktuelle Übersetzung löschen?",
- "deleteExerciseTranslationBody": "Du bist dabei, die Übersetzung {{language}} für die Übung \"{{name}}\" zu löschen. Diese Aktion kann nicht rückgängig gemacht werden. Weitermachen?",
- "missingExercise": "Fehlt eine bestimmte Übung?",
- "newNote": "Neuer Hinweis",
- "notesHelpText": "Hinweise sind kurze Kommentare zur Ausführung der Übung, wie z. B. \"Halte deinen Körper gerade\"",
- "variations": "Variationen",
- "step1HeaderBasics": "Grundlagen auf Englisch",
- "whatVariationsExist": "Welche Variationen dieser Übung gibt es, wenn überhaupt?",
- "filterVariations": "Name der Übung eingeben, um Variationen zu filtern",
- "submitExercise": "Übung einreichen",
- "compatibleImagesCC": "Die Bilder müssen mit der CC BY SA-Lizenz kompatibel sein. Im Zweifelsfall solltest du nur Fotos hochladen, die du selbst aufgenommen hast.",
- "alternativeNames": "Alternative Namen",
- "missingExerciseDescription": "Hilf der Community und leiste einen Beitrag!",
- "deleteExerciseFull": "Vollständige Übung löschen",
- "deleteTranslation": "Übersetzung löschen",
- "deleteExerciseBody": "Möchtest du die Übung \"{{name}}\" löschen? Du kannst entweder die aktuelle {{language}} Übersetzung oder die komplette Übung mit allen Übersetzungen, Bildern usw. löschen.",
- "basics": "Grundlagen",
- "notEnoughRightsHeader": "Du kannst keine Übungen beisteuern",
- "notEnoughRights": "Du kannst Übungen nur dann beisteuern, wenn dein Benutzerkonto älter als {{days}} Tage und deine E-Mail-Adresse verifiziert ist",
- "changeExerciseLanguage": "Ändere die Sprache dieser Übung",
- "identicalExercise": "Vermeide doppelte Übungen",
- "cacheWarning": "Aufgrund von Caching kann es einige Zeit dauern, bis Änderungen in der ganzen Anwendung sichtbar sind.",
- "replacements": "Ersatz",
- "replacementsInfoText": "Optional können Sie auch eine Übung auswählen, die diese ersetzen soll (z. B. weil sie zweimal eingereicht wurde oder ähnliches). Dadurch wird die Übung in Routinen sowie Trainingsprotokollen ersetzt, anstatt sie einfach zu löschen. Diese Änderungen werden auch auf alle Instanzen übertragen, die Übungen von dieser übernehmen.",
- "replacementsSearch": "Suche nach Übungen oder kopiere eine Bekannte ID in das Feld und drücke den \"Laden\" Button.",
- "noReplacementSelected": " Keine Übung zum ersätzen ausgewählt",
- "deleteExerciseReplace": "Löschen und ersetzen",
- "imageStylePhoto": "Foto",
- "imageStyle3D": "3D",
- "imageStyleLine": "Linie",
- "imageStyleLowPoly": "Niedrig-Poly",
- "imageStyleOther": "andere",
- "imageDetails": "Bilddetails",
- "swapExercise": "Übungen tauschen"
- },
- "noResults": "Keine Ergebnisse",
- "noResultsDescription": "Keine Ergebnisse für diese Suche gefunden, bitte reduziere die Anzahl der Filter.",
- "nutritionalPlan": "Ernährungsplan",
- "server": {
- "abs": "Bauch",
- "arms": "Arme",
- "back": "Rücken",
- "barbell": "Langhantel",
- "bench": "Bank",
- "biceps": "Bizeps",
- "calves": "Waden",
- "chest": "Brust",
- "dumbbell": "Kurzhantel",
- "glutes": "Po",
- "gym_mat": "Matte",
- "hamstrings": "Beinbeuger",
- "incline_bench": "Schrägbank",
- "kettlebell": "Kugelhantel",
- "kilometers": "Kilometer",
- "lats": "Latissimus",
- "legs": "Beine",
- "lower_back": "Unterer Rücken",
- "miles": "Meilen",
- "minutes": "Minuten",
- "none__bodyweight_exercise_": "keine (Körpergewichtübung)",
- "pull_up_bar": "Klimmzugstange",
- "quads": "Beinstrecker",
- "repetitions": "Wiederholungen",
- "seconds": "Sekunden",
- "shoulders": "Schultern",
- "swiss_ball": "Schweizer Ball",
- "sz_bar": "SZ Stange",
- "triceps": "Trizeps",
- "until_failure": "Bis zum Muskelversagen",
- "cardio": "Kardio",
- "lb": "lb",
- "kg": "kg",
- "kilometers_per_hour": "Kilometer pro Stunde",
- "body_weight": "Körpergewicht",
- "miles_per_hour": "Meilen pro Stunde",
- "max_reps": "Max. Wdh.",
- "plates": "Gewichtsscheiben"
- },
- "submit": "Abschicken",
- "weight": "Gewicht",
- "workout": "Training",
- "images": "Bilder",
- "description": "Beschreibung",
- "translation": "Übersetzung",
- "overview": "Übersicht",
- "goBack": "Zurück",
- "language": "Sprache",
- "forms": {
- "supportedImageFormats": "Es werden nur JPEG-, PNG- und WEBP-Dateien unter 20Mb unterstützt",
- "valueTooShort": "Der Wert ist zu gering",
- "valueTooLong": "Der Wert ist zu groß",
- "fieldRequired": "Pflichtfeld",
- "maxLength": "Bitte geben Sie weniger als {{chars}} Zeichen ein",
- "minLength": "Bitte geben Sie mehr als {{chars}} Zeichen ein",
- "minValue": "Der Wert für dieses Feld muss höher sein als {{value}}",
- "maxValue": "Der Wert für dieses Feld muss niedriger sein als {{value}}",
- "enterNumber": "Bitte gib eine gültige Nummer ein",
- "enterInteger": "Bitte gib eine ganze Zahl ein",
- "maxLessThanMin": "Der maximale Wert muss größer als der minimale sein",
- "endBeforeStart": "Der Endwert darf nicht vor dem Startwert liegen"
- },
- "routines": {
- "sets": "Sätze",
- "reps": "Wdh.",
- "rir": "RiR",
- "volume": "Volumen",
- "intensity": "Intensität",
- "currentRoutine": "Aktuelle Routine",
- "iteration": "Iteration",
- "weekly": "Wöchentlich",
- "daily": "Täglich",
- "restTime": "Pausenzeit",
- "workoutNr": "Training {{number}}",
- "weekNr": "Woche {{number}}",
- "addDay": "Trainingstag hinzufügen",
- "needsLogsToAdvance": "Benötigt Eintrag, um fortzufahren",
- "needsLogsToAdvanceHelpText": "Wenn du diese Option auswählst, wird die Routine nur dann zum nächsten geplanten Tag fortschreiten, wenn du ein Training für den aktuellen Tag protokolliert hast. Wenn diese Option nicht ausgewählt ist, wird die Routine automatisch zum nächsten Tag fortschreiten, unabhängig davon, ob du ein Training protokolliert hast oder nicht.",
- "routineHasNoDays": "Diese Routine hat keine Trainingstage",
- "setHasNoExercises": "Dieser Satz hat keine Übungen",
- "routine": "Routine",
- "editProgression": "Progression bearbeiten",
- "progressionNeedsReplace": "Einer der vorherigen Einträge muss eine Ersetzungsoperation haben",
- "exerciseHasProgression": "Diese Übung hat Progressionsregeln und kann hier nicht bearbeitet werden. Klicke dazu auf die Schaltfläche.",
- "routines": "Routinen",
- "addSuperset": "Supersatz hinzufügen",
- "addExercise": "Übung hinzufügen",
- "exerciseNr": "Übung {{number}}",
- "supersetNr": "Supersatz {{number}}",
- "statsOverview": "Statistiken",
- "simpleMode": "Einfacher Modus",
- "restDay": "Ruhetag",
- "addWeightLog": "Trainingslog hinzufügen",
- "logsFilterNote": "Beachte, dass nur Einträge mit einer Gewichtseinheit (kg oder lb) und Wiederholungen gezeichnet werden, andere Kombinationen wie Zeit oder bis zum Ausfall werden hier ignoriert",
- "logsHeader": "Trainingsprotokoll für das Workout",
- "addLogToDay": "Protokoll zu diesem Tag hinzufügen",
- "backToRoutine": "Zurück zur Routine",
- "maxLengthRoutine": "Die Routine darf maximal {{number}} Wochen lang sein",
- "resultingRoutine": "Resultierende Routine",
- "deleteDayConfirmation": "Dies löscht alle Sets, Übungen und Fortschrittsregeln",
- "fitDaysInWeek": "Tage in die Woche einpassen",
- "defaultRounding": "Standardrundung",
- "rounding": "Rundung (diese Übung)",
- "weightLogNotPlanned": "Speichere Log an einem Tag ohne geplantes Workout.",
- "alsoShowLogs": "Zeige auch Logeinträge",
- "confirmRestDay": "Änderung des Ruhetags bestätigen",
- "confirmRestDayHelpText": "Bitte beachten Sie, dass alle Sätze und Übungen entfernt werden, wenn Sie einen Tag als Ruhetag markieren.",
- "duplicate": "Routine duplizieren",
- "downloadPdfTable": "Download PDF (Tabelle)",
- "downloadPdfLogs": "Download PDF (Logs)",
- "downloadIcal": "Download iCal Datei",
- "impression": "Gesamteindruck",
- "impressionGood": "Gut",
- "impressionNeutral": "Neutral",
- "operation": "Funktion",
- "step": "Schritt",
- "requirements": "Voraussetzungen",
- "repeat": "Wiederhole Regel",
- "requirementsHelpText": "Wähle das Trainingsergebnis (aus einem vorherigen Eintrag), welcher erreicht werden muss, damit die Regel auslöst",
- "markAsTemplate": "Verwalte Vorlage",
- "template": "Vorlage",
- "templates": "Vorlagen",
- "publicTemplate": "Öffentliche Vorlage",
- "publicTemplates": "Öffentliche Vorlagen",
- "copyAndUseTemplate": "Vorlage kopieren und verwenden",
- "publicTemplateHelpText": "Öffentliche Vorlagen sind sichtbar für alle Nutzer.",
- "set": {
- "type": "Typ",
- "myo": "MYO",
- "partial": "Teilweise",
- "forced": "Erzwungenes",
- "normalSet": "Normaler Satz",
- "dropSet": "Absteigender Satz",
- "tut": "TUT",
- "iso": "ISO",
- "jump": "Sprung"
- },
- "impressionBad": "Schlecht",
- "newDay": "Neuer Tag",
- "logsOverview": "Log Übersicht",
- "minLengthRoutine": "Die Routine muss mindestens {{number}} Wochen lang sein",
- "workoutSession": "Trainingseinheit",
- "repeatHelpText": "Aktivieren Sie das Kontrollkästchen, wenn diese Regel auch für nachfolgende Trainingseinheiten gelten soll, bis Sie eine neue definieren",
- "impressionHelpText": "Dieses Formular erfasst Ihre Trainingsergebnisse (Wiederholungen, Gewicht usw.) für jede Übung. Änderungen, die Sie hier vornehmen, wie das Entfernen oder Austauschen von Übungen, wirken sich nur auf die gespeicherten Protokolle aus und haben keinen Einfluss auf Ihr Gesamtprogramm. Es werden nur Zeilen mit Werten für Gewicht oder Wiederholungen gespeichert.",
- "fitDaysInWeekHelpText": "Diese Einstellung steuert die Verteilung der Trainingstage deiner Routine über mehrere Wochen. Ist diese Option aktiviert, wiederholen sich die Tage wöchentlich. Beispielsweise wird ein Trainingsplan mit Trainingseinheiten am Montag, Mittwoch und Freitag am darauffolgenden Montag, Mittwoch und Freitag fortgesetzt. Ist diese Option deaktiviert, werden die Trainingstage unabhängig vom Wochenbeginn nacheinander abgearbeitet. Dies ist nützlich für Trainingspläne, die keinem strengen Wochenplan folgen.",
- "templatesHelpText": "Vorlagen ermöglichen es Ihnen, Ihre Routine für die spätere Verwendung zu speichern und als Ausgangspunkt für weitere Routinen zu verwenden. Sie können Vorlagen nicht bearbeiten, aber Sie können sie duplizieren und Änderungen an der Kopie vornehmen (und sie natürlich auch wieder in eine reguläre Routine umwandeln).",
- "roundingHelp": "Lege die Standardrundung für Gewicht und Wiederholungen fest (dies ist besonders nützlich, wenn du den prozentualen Steigerungsschritt in der Progression verwendest). Dies gilt für alle neuen Sätze, kann aber im Progressionsformular individuell geändert werden. Lasse das Feld leer, um die Rundung zu deaktivieren.",
- "addAdditionalLog": "Hinzufügen eines zusätzlichen Eintrags"
- },
- "name": "Name",
- "cancel": "Abbrechen",
- "videos": "Videos",
- "cannotBeUndone": "Diese Aktion kann nicht rückgängig gemacht werden.",
- "preferences": "Voreinstellungen",
- "success": "Geschafft!",
- "measurements": {
- "deleteInfo": "Dies wird die Kategorie sowie alle seine Einträge löschen",
- "unitFormHelpText": "Die Einheit, in der die Kategorie gemessen wird, wie cm oder %",
- "measurements": "Messungen"
- },
- "timeOfDay": "Uhrzeit",
- "notes": "Notizen",
- "value": "Wert",
- "unit": "Einheit",
- "alsoSearchEnglish": "Namen auch auf Englisch suchen",
- "deleteConfirmation": "Sind Sie sicher, dass Sie \"{{name}}\" löschen wollen?",
- "seeDetails": "Details anzeigen",
- "actions": "Aktion",
- "nothingHereYet": "Hier ist noch nichts...",
- "nothingHereYetAction": "Drücken Sie die Aktionstaste, um zu beginnen",
- "copyToClipboard": "In Zwischenablage kopieren",
- "nutrition": {
- "plans": "Ernährungspläne",
- "plan": "Ernährungsplan",
- "useGoalsHelpText": "Ziele zu diesem Plan hinzufügen",
- "meal": "Mahlzeit",
- "gramShort": "g",
- "valueEnergyKcal": "{{value}} kcal",
- "kcal": "kcal",
- "percentEnergy": "Prozent der Energie",
- "gPerBodyKg": "g pro Körper-kg",
- "planned": "Geplant",
- "logged": "Protokolliert",
- "difference": "Unterschied",
- "today": "Heute",
- "7dayAvg": "7-Tage-Durchschnitt",
- "carbohydrates": "Kohlenhydrate",
- "sugar": "Zucker",
- "ofWhichSugars": "davon Zucker",
- "fat": "Fett",
- "others": "Sonstige",
- "fibres": "Ballaststoffe",
- "sodium": "Natrium",
- "planDeleteInfo": "Dies wird ebenfalls alle Nahrungstagebucheinträge löschen",
- "mealDeleteInfo": "Ernährungstagebucheinträge zu dieser Mahlzeit werden nicht gelöscht und erscheinen unter \"andere Protokolle\"",
- "diaryEntrySaved": "Tagebucheintrag erfolgreich gespeichert",
- "goalsTitle": "Ziele",
- "goalEnergy": "Energieziel",
- "goalProtein": "Protein Ziel",
- "goalCarbohydrates": "Kohlenhydrate Ziel",
- "goalFat": "Fett Ziel",
- "addNutritionalDiary": "Nahrungstagebucheintrag hinzufügen",
- "nutritionalDiary": "Ernährungstagebuch",
- "valueEnergyKcalKj": "{{kcal}} kcal / {{kj}} kJ",
- "energy": "Energie",
- "protein": "Eiweiß",
- "ofWhichSaturated": "davon gesättigt",
- "pseudoMealTitle": "Andere Protokolle",
- "valueRemaining": "verbleibend",
- "copyPlan": "Mache eine Kopie dieses Plans",
- "macronutrient": "Makronährstoff",
- "loggedToday": "Heute protokolliert",
- "addMeal": "Mahlzeit hinzufügen",
- "useGoalsHelpTextLong": "So kannst du allgemeine Ziele für Energie, Eiweiß, Kohlenhydrate oder Fett für den Plan festlegen. Beachte, dass diese Werte Vorrang haben, wenn du einen detaillierten Mahlzeitenplan erstellst.",
- "addMealItem": "Zutat zu Mahlzeit hinzufügen",
- "searchIngredientName": "Suche nach Zutatenname",
- "saturatedFat": "Gesättigte Fette",
- "valueTooMany": "zu viele",
- "logThisMealItem": "Diese Zutat unverändert in das Ernährungstagebuch eintragen",
- "onlyLoggingHelpText": "Nur Kalorien verfolgen. Markiere das Kästchen, wenn du nur deine Kalorien protokollieren möchtest und keinen detaillierten Ernährungsplan mit spezifischen Mahlzeiten einrichten willst",
- "goalFiber": "Ballaststoffziel",
- "logThisMeal": "Dieses Gericht unverändert in das Ernährungstagebuch eintragen"
- },
- "downloadAsPdf": "Download als PDF",
- "total": "Gesamt",
- "licenses": {
- "authors": "Autor(en)",
- "derivativeSourceUrl": "Link zur Originalquelle, falls es sich um die Abwandlung eines anderen Werkes handelt",
- "originalObjectUrl": "Link zur Quell-Website, falls verfügbar",
- "originalTitle": "Titel",
- "authorProfile": "Link zur Website oder Profil des Autors, falls verfügbar",
- "derivativeSourceUrlHelper": "Beachte, dass ein abgeleitetes Werk nicht nur auf einem vorherigen Werk basiert, sondern auch genügend neue, kreative Inhalte enthält, um ein eigenes Urheberrecht zu beanspruchen."
- },
- "filters": "Filter",
- "calendar": "Kalender",
- "entries": "Einträge",
- "no_entries_for_day": "Keine Einträge für diesen Tag",
- "height": "Größe",
- "cm": "cm",
- "all": "Alle",
- "lastYear": "Letztes Jahr",
- "lastHalfYear": "In den letzten 6 Monaten",
- "lastMonth": "Letzten Monat",
- "lastWeek": "Letzte Woche",
- "bmi": {
- "overweight": "Übergewicht",
- "obese": "Fettleibig",
- "normal": "Normales Gewicht",
- "calculator": "BMI Rechner",
- "underweight": "Untergewicht",
- "result": "Dein BMI ist {{value}}"
- },
- "editName": "{{name}} bearbeiten",
- "start": "Start",
- "end": "Ende",
- "comment": "Kommentar",
- "min": "Min",
- "max": "Max",
- "durationWeeks": "{{number}} Wochen",
- "durationWeeksDays": "{{nrWeeks}} Wochen, {{nrDays}} Tage",
- "undo": "Rückgängig machen",
- "successfullyDeleted": "Erfolgreich gelöscht",
- "private": "Privat",
- "public": "Öffentlich"
-}
diff --git a/wger/core/static/react/locales/el/translation.json b/wger/core/static/react/locales/el/translation.json
deleted file mode 100644
index 5409c55db..000000000
--- a/wger/core/static/react/locales/el/translation.json
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- "exercises": {
- "secondaryMuscles": "Δευτερεύοντες μύες",
- "muscles": "Μύες",
- "contributeExercise": "Συνεισφέρετε μια άσκηση",
- "notEnoughRights": "Μπορείτε να συνεισφέρετε ασκήσεις μόνο εάν ο λογαριασμός σας είναι παλαιότερος από {{days}} ημέρες και έχετε επαληθεύσει το ηλεκτρονικό σας ταχυδρομείο",
- "variations": "Παραλλαγές",
- "notEnoughRightsHeader": "Δεν μπορείτε να συνεισφέρετε ασκήσεις",
- "newNote": "Νέα σημείωση",
- "identicalExercise": "Αποφύγετε διπλές ασκήσεις",
- "identicalExercisePleaseDiscard": "Αν παρατηρήσετε μια άσκηση που είναι πανομοιότυπη με αυτή που προσθέτετε, παρακαλούμε απορρίψτε το προσχέδιό σας και επεξεργαστείτε αυτή την άσκηση.",
- "missingExerciseDescription": "Βοηθήστε την κοινότητα με τη συνεισφορά σας!",
- "equipment": "Εξοπλισμός",
- "exercises": "Ασκήσεις",
- "alsoKnownAs": "Επίσης γνωστό ως:",
- "primaryMuscles": "Πρωτεύοντες μύες",
- "successfullyUpdated": "Η άσκηση ενημερώθηκε επιτυχώς. Λόγω της προσωρινής αποθήκευσης μπορεί να χρειαστεί κάποιος χρόνος μέχρι οι αλλαγές να είναι ορατές σε όλη την εφαρμογή.",
- "noEquipment": "Χωρίς εξοπλισμό",
- "translateExerciseNow": "Μεταφράστε αυτή την άσκηση τώρα",
- "notesHelpText": "Οι σημειώσεις είναι σύντομα σχόλια για τον τρόπο εκτέλεσης της άσκησης, όπως \"κρατήστε το σώμα σας ίσιο\"",
- "notes": "Σημειώσεις",
- "basics": "Βασικά στοιχεία",
- "whatVariationsExist": "Ποιες παραλλαγές αυτής της άσκησης υπάρχουν, αν υπάρχουν;",
- "submitExercise": "Υποβολή άσκησης",
- "changeExerciseLanguage": "Αλλάξτε τη γλώσσα αυτής της άσκησης",
- "exerciseNotTranslated": "Δεν υπάρχει διαθέσιμη μετάφραση",
- "compatibleImagesCC": "Οι εικόνες πρέπει να είναι συμβατές με την άδεια CC BY SA. Αν έχετε αμφιβολίες, ανεβάζετε μόνο φωτογραφίες που έχετε τραβήξει μόνοι σας.",
- "step1HeaderBasics": "Βασικά στα αγγλικά",
- "exerciseNotTranslatedBody": "Αυτή η άσκηση δεν είναι προς το παρόν διαθέσιμη στην τρέχουσα επιλεγμένη γλώσσα. Θέλετε να συνεισφέρετε μια μετάφραση;",
- "cacheWarning": "Λόγω της προσωρινής αποθήκευσης μπορεί να χρειαστεί κάποιος χρόνος μέχρι οι αλλαγές να είναι ορατές σε όλη την εφαρμογή.",
- "deleteTranslation": "Διαγραφή μετάφρασης",
- "checkInformationBeforeSubmitting": "Βεβαιωθείτε ότι οι πληροφορίες που καταχωρήσατε είναι σωστές πριν υποβάλετε την άσκηση",
- "searchExerciseName": "Αναζήτηση με το όνομα της άσκησης",
- "description": "Περιγραφή",
- "deleteExerciseBody": "Θέλετε να διαγράψετε την άσκηση \"{{όνομα}}\"; Μπορείτε να διαγράψετε είτε την τρέχουσα μετάφραση {{γλώσσα}} είτε ολόκληρη την άσκηση με όλες τις μεταφράσεις, τις εικόνες, κ.λπ.",
- "missingExercise": "Σας λείπει μια συγκεκριμένη άσκηση;",
- "deleteExerciseFull": "Διαγραφή πλήρους άσκησης",
- "alternativeNames": "Εναλλακτικές ονομασίες",
- "filterVariations": "Εισάγετε το όνομα της άσκησης για να φιλτράρετε τις παραλλαγές"
- },
- "nutritionalPlan": "Διατροφικό σχέδιο",
- "date": "Ημερομηνία",
- "days": "Ημέρες",
- "edit": "Επεξεργασία",
- "submit": "Υποβολλή",
- "value": "Αξία",
- "delete": "Διαγραφή",
- "deleteConfirmation": "Είστε βέβαιοι ότι θέλετε να διαγράψετε το \"{{name}}\";",
- "notes": "Σημειώσεις",
- "difference": "Διαφορά",
- "seeDetails": "Δείτε λεπτομέρειες",
- "server": {
- "none__bodyweight_exercise_": "κανένα (άσκηση με σωματικό βάρος)"
- },
- "currentWeight": "Τρέχον βάρος",
- "workout": "Προπόνηση",
- "addEntry": "Προσθήκη καταχώρησης",
- "actions": "Ενέργειες",
- "unit": "Μονάδα",
- "loading": "Φόρτωση…",
- "weight": "Βάρος",
- "add": "Προσθήκη",
- "routines": {
- "logsHeader": "Ημερολόγιο βάρους για προπόνηση",
- "addDay": "Προσθέστε ημέρα προπόνησης",
- "addWeightLog": "Προσθέστε ημερολόγιο βάρους",
- "logsFilterNote": "Σημειώστε ότι καταγράφονται μόνο καταχωρήσεις με μονάδα βάρους kg ή lb και επαναλήψεις, άλλοι συνδυασμοί όπως χρόνος ή μέχρι την αποτυχία αγνοούνται εδώ"
- },
- "images": "Εικόνες",
- "save": "Αποθήκευση",
- "forms": {
- "valueTooLong": "Η τιμή είναι πολύ μεγάλη",
- "minValue": "Η τιμή για αυτό το πεδίο πρέπει να είναι μεγαλύτερη από {{value}}",
- "minLength": "Παρακαλώ εισάγετε περισσότερους από {{chars}} χαρακτήρες",
- "valueTooShort": "Η τιμή είναι πολύ μικρή",
- "supportedImageFormats": "Υποστηρίζονται μόνο αρχεία JPEG, PNG και WEBP κάτω των 20Mb",
- "maxLength": "Παρακαλώ εισάγετε λιγότερους από {{chars}} χαρακτήρες",
- "maxValue": "Η τιμή για αυτό το πεδίο πρέπει να είναι μικρότερη από {{value}}",
- "fieldRequired": "Το πεδίο αυτό είναι υποχρεωτικό"
- },
- "videos": "Βίντεο",
- "English": "Αγγλικά",
- "success": "Επιτυχία!",
- "description": "Περιγραφή",
- "name": "Όνομα",
- "preferences": "Προτιμήσεις",
- "continue": "Συνεχίστε",
- "noResults": "Δεν υπάρχουν αποτελέσματα",
- "goBack": "Πίσω",
- "translation": "Μετάφραση",
- "cancel": "Ακύρωση",
- "language": "Γλώσσα",
- "noResultsDescription": "Δεν βρέθηκαν αποτελέσματα για αυτό το ερώτημα, σκεφτείτε να μειώσετε τον αριθμό των φίλτρων.",
- "overview": "Επισκόπηση",
- "category": "Κατηγορία",
- "cannotBeUndone": "Αυτή η ενέργεια δεν μπορεί να αναιρεθεί."
-}
diff --git a/wger/core/static/react/locales/en/translation.json b/wger/core/static/react/locales/en/translation.json
deleted file mode 100644
index 1018352ce..000000000
--- a/wger/core/static/react/locales/en/translation.json
+++ /dev/null
@@ -1,332 +0,0 @@
-{
- "weight": "Weight",
- "height": "Height",
- "cm": "cm",
- "date": "Date",
- "timeOfDay": "Time of day",
- "submit": "Submit",
- "edit": "Edit",
- "editName": "Edit {{name}}",
- "delete": "Delete",
- "deleteConfirmation": "Are you sure you want to delete \"{{name}}\"?",
- "add": "Add",
- "close": "Close",
- "difference": "Difference",
- "days": "Days",
- "all": "All",
- "lastYear": "Last Year",
- "lastHalfYear": "Last 6 Months",
- "lastMonth": "Last Month",
- "lastWeek": "Last Week",
- "start": "Start",
- "end": "End",
- "comment": "Comment",
- "licenses": {
- "authors": "Author(s)",
- "authorProfile": "Link to author website or profile, if available",
- "derivativeSourceUrl": "Link to the original source, if this is a derivative work",
- "derivativeSourceUrlHelper": "Note that a derivative work is one which is not only based on a previous work, but which also contains sufficient new, creative content to entitle it to its own copyright.",
- "originalObjectUrl": "Link to the source website, if available",
- "originalTitle": "Title"
- },
- "loading": "Loading...",
- "nutritionalPlan": "Nutritional plan",
- "addEntry": "Add entry",
- "currentWeight": "Current weight",
- "workout": "Workout",
- "seeDetails": "See details",
- "actions": "Actions",
- "nothingHereYet": "Nothing here yet...",
- "nothingHereYetAction": "Press the action button to begin",
- "notes": "Notes",
- "value": "Value",
- "unit": "Unit",
- "alsoSearchEnglish": "Also search for names in English",
- "copyToClipboard": "Copy to clipboard",
- "filters": "Filters",
- "private": "Private",
- "public": "Public",
- "exercises": {
- "replacements": "Replacements",
- "replacementsInfoText": "Optionally, you can also select an exercise that should replace this one (e.g. because it was submitted twice, or similar). This will replace the exercise in routines as well as training logs, instead of just deleting it. These changes will also propagate to any instance that syncs the exercises from this one.",
- "replacementsSearch": "Search for an exercise or copy and paste a known ID into the field and click on the \"load\" button.",
- "noReplacementSelected": " No exercise selected for replacement",
- "contributeExercise": "Contribute an exercise",
- "step1HeaderBasics": "Basics in English",
- "variations": "Variations",
- "notEnoughRightsHeader": "You can't contribute exercises",
- "notEnoughRights": "You can only contribute exercises if your account is older than {{days}} days and have verified your email",
- "muscles": "Muscles",
- "secondaryMuscles": "Secondary muscles",
- "whatVariationsExist": "Which variations of this exercise exist, if any?",
- "filterVariations": "Enter exercise name to filter variations",
- "identicalExercise": "Avoid duplicate exercises",
- "identicalExercisePleaseDiscard": "If you notice an exercise that is identical to the one you're adding, please discard your draft and edit that exercise instead.",
- "translateExerciseNow": "Translate this exercise now",
- "compatibleImagesCC": "Images must be compatible with the CC BY SA license. If in doubt, upload only photos you've taken yourself.",
- "alternativeNames": "Alternative names",
- "notes": "Notes",
- "equipment": "Equipment",
- "checkInformationBeforeSubmitting": "Please check that the information you entered is correct before submitting the exercise",
- "cacheWarning": "Due to caching it might take some time till the changes are visible throughout the application.",
- "submitExercise": "Submit exercise",
- "successfullyUpdated": "The exercise was successfully updated. Due to caching it might take some time till the changes are visible throughout the application.",
- "description": "Description",
- "basics": "Basics",
- "exerciseNotTranslated": "No translation available",
- "exerciseNotTranslatedBody": "This exercise is currently not available in the currently selected language. Do you want to contribute a translation?",
- "alsoKnownAs": "Also known as:",
- "primaryMuscles": "Primary muscles",
- "deleteExerciseBody": "Do you want to delete the exercise \"{{name}}\"? You can either delete the current {{language}} translation or the complete exercise with all translations, images, etc.",
- "deleteTranslation": "Delete translation",
- "deleteExerciseFull": "Delete full exercise",
- "deleteExerciseReplace": "Delete and replace",
- "exercises": "Exercises",
- "changeExerciseLanguage": "Change this exercise's language",
- "noEquipment": "No equipment",
- "missingExercise": "Missing a certain exercise?",
- "missingExerciseDescription": "Help out the community by contributing it!",
- "searchExerciseName": "Search by exercise name",
- "newNote": "New note",
- "notesHelpText": "Notes are short comments on how to perform the exercise such as \"keep your body straight\"",
- "imageStylePhoto": "Photo",
- "imageStyle3D": "3D",
- "imageStyleLine": "Line",
- "imageStyleLowPoly": "Low-Poly",
- "imageStyleOther": "Other",
- "imageDetails": "Image details",
- "swapExercise": "Swap exercise"
- },
- "nutrition": {
- "plans": "Nutritional plans",
- "copyPlan": "Make a copy of this plan",
- "plan": "Nutritional plan",
- "onlyLoggingHelpText": "Only track calories. Check the box if you only want to log your calories and don't want to setup a detailed nutritional plan with specific meals",
- "goalsTitle": "Goals",
- "useGoalsHelpText": "Add goals to this plan",
- "useGoalsHelpTextLong": "This allows you to set general goals for energy, protein, carbohydrates or fat for the plan. Note that if you setup a detailed meal plan, these values will take precedence.",
- "goalEnergy": "Energy goal",
- "goalProtein": "Protein goal",
- "goalCarbohydrates": "Carbohydrates goal",
- "goalFiber": "Fiber goal",
- "goalFat": "Fat goal",
- "addNutritionalDiary": "Add nutrition diary entry",
- "meal": "Meal",
- "addMeal": "Add meal",
- "addMealItem": "Add ingredient to meal",
- "nutritionalDiary": "Nutrition diary",
- "gramShort": "g",
- "kcal": "kcal",
- "valueEnergyKcal": "{{value}} kcal",
- "valueEnergyKcalKj": "{{kcal}} kcal / {{kj}} kJ",
- "searchIngredientName": "Search by ingredient name",
- "macronutrient": "Macronutrient",
- "percentEnergy": "Percent of energy",
- "gPerBodyKg": "g per body-kg",
- "planned": "Planned",
- "logged": "Logged",
- "loggedToday": "Logged today",
- "difference": "Difference",
- "today": "Today",
- "7dayAvg": "7-day average",
- "energy": "Energy",
- "protein": "Protein",
- "carbohydrates": "Carbohydrates",
- "sugar": "Sugar",
- "ofWhichSugars": "of which sugars",
- "fat": "Fat",
- "ofWhichSaturated": "of which saturated",
- "saturatedFat": "Saturated fat",
- "pseudoMealTitle": "Other logs",
- "others": "Others",
- "fibres": "Fibres",
- "sodium": "Sodium",
- "planDeleteInfo": "This will delete all nutrition diary entries as well",
- "mealDeleteInfo": "Nutrition diary entries to this meal will not be deleted and will appear under \"other logs\"",
- "diaryEntrySaved": "Diary entry successfully saved",
- "logThisMeal": "Log this meal as-is to the nutrition diary",
- "logThisMealItem": "Log this ingredient as-is to the nutrition diary",
- "valueRemaining": "remaining",
- "valueTooMany": "too many"
- },
- "bmi": {
- "calculator": "BMI calculator",
- "overweight": "Overweight",
- "obese": "Obese",
- "normal": "Normal weight",
- "underweight": "Underweight",
- "result": "Your BMI is {{value}}"
- },
- "downloadAsPdf": "Download as PDF",
- "total": "Total",
- "description": "Description",
- "translation": "Translation",
- "images": "Images",
- "overview": "Overview",
- "preferences": "Preferences",
- "continue": "Continue",
- "goBack": "Go back",
- "language": "Language",
- "forms": {
- "supportedImageFormats": "Only JPEG, PNG and WEBP files below 20Mb are supported",
- "enterNumber": "Please enter a valid number",
- "enterInteger": "Please enter a whole number",
- "fieldRequired": "This field is required",
- "maxLength": "Please enter less than {{chars}} characters",
- "minLength": "Please enter more than {{chars}} characters",
- "minValue": "The value for this field has to be higher than {{value}}",
- "maxValue": "The value for this field has to be less than {{value}}",
- "maxLessThanMin": "The max value has to be bigger than the minimum",
- "endBeforeStart": "The end value cannot be before the start"
- },
- "name": "Name",
- "category": "Category",
- "success": "Success!",
- "English": "English",
- "save": "Save",
- "min": "Min",
- "max": "Max",
- "durationWeeks": "{{number}} weeks",
- "durationWeeksDays": "{{nrWeeks}} weeks, {{nrDays}} days",
- "videos": "Videos",
- "undo": "Undo",
- "successfullyDeleted": "Successfully deleted",
- "cannotBeUndone": "This action can't be undone.",
- "cancel": "Cancel",
- "noResults": "No results",
- "noResultsDescription": "No results found for this query, consider reducing the number of filters.",
- "routines": {
- "sets": "Sets",
- "reps": "Reps",
- "volume": "Volume",
- "intensity": "Intensity",
- "currentRoutine": "Current routine",
- "iteration": "Iteration",
- "weekly": "Weekly",
- "daily": "Daily",
- "restTime": "Rest time",
- "workoutNr": "Workout Nr. {{number}}",
- "weekNr": "Week {{number}}",
- "backToRoutine": "Back to routine",
- "minLengthRoutine": "The routine needs to be at least {{number}} weeks long",
- "maxLengthRoutine": "The routine can be at most {{number}} weeks long",
- "resultingRoutine": "Resulting routine",
- "addDay": "Add training day",
- "deleteDayConfirmation": "This will remove all sets, exercises and progression rules",
- "routineHasNoDays": "The routine has no days",
- "setHasNoExercises": "This set has no exercises",
- "fitDaysInWeek": "Fit days in week",
- "fitDaysInWeekHelpText": "This setting controls how your routine's days are scheduled across multiple weeks. If enabled, the days will repeat in a weekly cycle. For example, a routine with workouts on Monday, Wednesday, and Friday will continue this pattern on the following Monday, Wednesday, and Friday. If disabled, the days will follow sequentially without regard to the start of a new week. This is useful for routines that don't follow a strict weekly schedule.",
- "needsLogsToAdvance": "Needs logs to advance",
- "needsLogsToAdvanceHelpText": "If you select this option, the routine will only progress to the next scheduled day if you've logged a workout for the current day. If this option is not selected, the routine will automatically advance to the next day regardless of whether you logged a workout or not.",
- "addSuperset": "Add superset",
- "addExercise": "Add exercise",
- "exerciseNr": "Exercise {{number}}",
- "supersetNr": "Superset {{number}}",
- "editProgression": "Edit progression",
- "progressionNeedsReplace": "One of the previous entries must have a replace operation",
- "exerciseHasProgression": "This exercise has progression rules and can't be edited here. To do so, click the button.",
- "defaultRounding": "Default rounding",
- "rounding": "Rounding (this exercise)",
- "roundingHelp": "Set the default rounding for weight and repetitions (this is specially useful when using the percentage increase step in the progression). This will apply to all new sets but can be changed individually in the progression form. Leave empty to disable rounding.",
- "newDay": "New day",
- "addWeightLog": "Add training log",
- "weightLogNotPlanned": "Saving logs to a date for which no workouts were planned.",
- "logsOverview": "Logs overview",
- "alsoShowLogs": "Also show logs",
- "statsOverview": "Statistics",
- "simpleMode": "Simple mode",
- "logsHeader": "Training log for workout",
- "logsFilterNote": "Note that only entries with a weight unit of kg or lb and repetitions are charted, other combinations such as time or until failure are ignored here",
- "addLogToDay": "Add log to this day",
- "routine": "Routine",
- "routines": "Routines",
- "workoutSession": "Workout session",
- "rir": "RiR",
- "restDay": "Rest day",
- "confirmRestDay": "Confirm rest day change",
- "confirmRestDayHelpText": "Please note that all sets and exercises will be removed when you mark a day as a rest day.",
- "duplicate": "Duplicate routine",
- "downloadPdfTable": "Download PDF (table)",
- "downloadPdfLogs": "Download PDF (logs)",
- "downloadIcal": "Download iCal file",
- "impression": "General impression",
- "impressionGood": "Good",
- "impressionNeutral": "Neutral",
- "impressionBad": "Bad",
- "impressionHelpText": "This form records your workout results (reps, weight, etc.) for each exercise. Changes you make here, like removing or swapping exercises, only affect the specific logs you save and and won't change your overall routine. Only rows with values for either weight or repetitions are saved.",
- "addAdditionalLog": "Add additional log",
- "operation": "Operation",
- "step": "Step",
- "requirements": "Requirements",
- "requirementsHelpText": "Select the workout results (from previous logs) that must be met for this rule to take effect",
- "repeat": "Repeat rule",
- "repeatHelpText": "Check the check box if you want this rule to continue to apply to subsequent workouts until you define a new one",
- "markAsTemplate": "Manage template",
- "template": "Template",
- "templates": "Templates",
- "publicTemplate": "Public template",
- "publicTemplates": "Public templates",
- "templatesHelpText": "Templates are a way to save your routine for later use and as a starting point for further routines. You can't edit templates, but you can duplicate them and make changes to the copy (as well as converting them back to a regular routine, of course).",
- "publicTemplateHelpText": "Public templates are available to all users.",
- "copyAndUseTemplate": "Copy and use template",
- "set": {
- "type": "Type",
- "normalSet": "Normal set",
- "dropSet": "Drop set",
- "myo": "MYO",
- "partial": "Partial",
- "forced": "Forced",
- "tut": "TUT",
- "iso": "ISO",
- "jump": "Jump"
- }
- },
- "measurements": {
- "measurements": "Measurements",
- "unitFormHelpText": "The unit in which the category will be measured, such as cm or %",
- "deleteInfo": "This will delete the category as well as all its entries"
- },
- "server": {
- "abs": "Abs",
- "arms": "Arms",
- "back": "Back",
- "barbell": "Barbell",
- "bench": "Bench",
- "biceps": "Biceps",
- "body_weight": "Body weight",
- "calves": "Calves",
- "cardio": "Cardio",
- "chest": "Chest",
- "dumbbell": "Dumbbell",
- "glutes": "Glutes",
- "gym_mat": "Gym mat",
- "hamstrings": "Hamstrings",
- "incline_bench": "Incline bench",
- "kettlebell": "Kettlebell",
- "kilometers": "Kilometers",
- "kilometers_per_hour": "Kilometers per hour",
- "lats": "Lats",
- "legs": "Legs",
- "max_reps": "Max reps",
- "miles": "Miles",
- "miles_per_hour": "Miles per hour",
- "minutes": "Minutes",
- "plates": "Plates",
- "pull_up_bar": "Pull up bar",
- "quads": "Quads",
- "repetitions": "Repetitions",
- "sz_bar": "SZ bar",
- "seconds": "Seconds",
- "shoulders": "Shoulders",
- "swiss_ball": "Swiss ball",
- "triceps": "Triceps",
- "until_failure": "Until failure",
- "kg": "kg",
- "lb": "lb",
- "none__bodyweight_exercise_": "none (bodyweight exercise)"
- },
- "calendar": "Calendar",
- "entries": "Entries",
- "no_entries_for_day": "No entries for this day"
-}
diff --git a/wger/core/static/react/locales/es/translation.json b/wger/core/static/react/locales/es/translation.json
deleted file mode 100644
index 42b278046..000000000
--- a/wger/core/static/react/locales/es/translation.json
+++ /dev/null
@@ -1,334 +0,0 @@
-{
- "add": "Añadir",
- "addEntry": "Añadir entrada",
- "close": "Cerrar",
- "currentWeight": "Peso actual",
- "date": "Fecha",
- "days": "Días",
- "delete": "Borrar",
- "difference": "Diferencia",
- "edit": "Editar",
- "nutritionalPlan": "Plan nutricional",
- "submit": "Enviar",
- "weight": "Peso",
- "workout": "Entrenamiento",
- "exercises": {
- "secondaryMuscles": "Músculos secundarios",
- "contributeExercise": "Aporta un ejercicio",
- "variations": "Variaciones",
- "whatVariationsExist": "¿Qué variaciones de este ejercicio existen, si las hay?",
- "translateExerciseNow": "Traducir este ejercicio ahora",
- "compatibleImagesCC": "Las imágenes deben ser compatibles con la licencia CC BY SA. En caso de duda, cargue solo fotos que haya tomado usted mismo.",
- "filterVariations": "Introduce el nombre del ejercicio para filtrar variaciones",
- "muscles": "Músculos",
- "identicalExercisePleaseDiscard": "Si observa un ejercicio que es idéntico al que está agregando, descarte su borrador y edite ese ejercicio en su lugar.",
- "basics": "Básicos",
- "missingExerciseDescription": "¡Ayuda a la comunidad aportándolo!",
- "searchExerciseName": "Buscar por nombre de ejercicio",
- "newNote": "Nueva nota",
- "notesHelpText": "Las notas son comentarios breves sobre cómo realizar el ejercicio, como \"mantener el cuerpo recto\"",
- "notes": "Notas",
- "notEnoughRightsHeader": "No puedes aportar ejercicios",
- "equipment": "Equipamiento",
- "submitExercise": "Enviar ejercicio",
- "step1HeaderBasics": "Conceptos básicos en inglés",
- "alsoKnownAs": "También conocido como:",
- "exerciseNotTranslatedBody": "Este ejercicio no está disponible actualmente en el idioma seleccionado. ¿Quieres contribuir con una traducción?",
- "primaryMuscles": "Músculos primarios",
- "exercises": "Ejercicios",
- "noEquipment": "Sin equipamiento",
- "notEnoughRights": "Solo puede aportar ejercicios si su cuenta tiene más de {{days}} días y ha verificado su correo electrónico",
- "alternativeNames": "Nombres alternativos",
- "checkInformationBeforeSubmitting": "Verifique que la información que ingresó sea correcta antes de enviar el ejercicio",
- "successfullyUpdated": "El ejercicio se actualizó con éxito. Debido al almacenamiento en caché, puede llevar algún tiempo hasta que los cambios sean visibles en toda la aplicación.",
- "description": "Descripción",
- "exerciseNotTranslated": "No hay traducción disponible",
- "deleteExerciseBody": "¿Quieres eliminar el ejercicio \"{{name}}\"? Puede eliminar la traducción actual de {{language}} o el ejercicio completo con todas las traducciones, imágenes, etc.",
- "deleteExerciseFull": "Eliminar ejercicio completo",
- "deleteTranslation": "Eliminar traducción",
- "changeExerciseLanguage": "Cambiar el idioma de este ejercicio",
- "missingExercise": "¿Falta algún ejercicio?",
- "identicalExercise": "Evitar los ejercicios duplicados",
- "cacheWarning": "Debido al almacenamiento en caché, puede pasar algún tiempo hasta que los cambios sean visibles en toda la aplicación.",
- "replacements": "Sustituciones",
- "replacementsInfoText": "Opcionalmente, también puede seleccionar un ejercicio que debería sustituir a éste (por ejemplo, porque fue enviado dos veces, o similar). Esto sustituye el ejercicio en las rutinas así como en los registros de entrenamiento, en lugar de simplemente borrarlo. Estos cambios también se propagarán a cualquier instancia que sincronice los ejercicios.",
- "deleteExerciseReplace": "Borrar y sustituir",
- "replacementsSearch": "Busque un ejercicio o copie y pegue un ID conocido en el campo y pulse el botón \"cargar\".",
- "noReplacementSelected": " Ningún ejercicio seleccionado para sustituir",
- "imageStylePhoto": "Foto",
- "imageStyle3D": "3D",
- "imageStyleOther": "Otro",
- "imageStyleLine": "Línea",
- "imageDetails": "Detalles de la imagen",
- "imageStyleLowPoly": "Bajo poligonaje (Low-Poly)",
- "swapExercise": "Cambiar ejercicio"
- },
- "loading": "Cargando...",
- "images": "Imágenes",
- "translation": "Traducción",
- "description": "Descripción",
- "overview": "Descripción general",
- "noResultsDescription": "No se encontraron resultados para esta consulta, considere reducir la cantidad de filtros.",
- "server": {
- "arms": "Brazos",
- "back": "Espalda",
- "calves": "Pantorrillas",
- "pull_up_bar": "Barra de dominadas",
- "sz_bar": "Barra SZ",
- "swiss_ball": "Pelota suiza",
- "biceps": "Bíceps",
- "hamstrings": "Isquiotibiales",
- "lower_back": "Espalda baja",
- "glutes": "Glúteos",
- "lats": "Laterales",
- "barbell": "Barra con pesas",
- "none__bodyweight_exercise_": "Ninguno (ejercicio de peso corporal)",
- "quads": "Cuádriceps",
- "triceps": "Tríceps",
- "miles": "Millas",
- "minutes": "Minutos",
- "repetitions": "Repeticiones",
- "seconds": "Segundos",
- "until_failure": "Hasta que falle",
- "abs": "Abdominales",
- "chest": "Pecho",
- "kettlebell": "Pesa rusa",
- "legs": "Piernas",
- "bench": "Banco",
- "shoulders": "Hombros",
- "kilometers": "Kilómetros",
- "dumbbell": "Mancuerna",
- "gym_mat": "Colchoneta",
- "incline_bench": "Banco inclinado",
- "cardio": "Cardio",
- "max_reps": "Número máximo de repeticiones",
- "kg": "kg",
- "lb": "lb",
- "miles_per_hour": "Millas por hora",
- "plates": "Platos",
- "body_weight": "Peso corporal",
- "kilometers_per_hour": "Kilómetros por hora"
- },
- "English": "Inglés",
- "name": "Nombre",
- "category": "Categoría",
- "save": "Guardar",
- "videos": "Videos",
- "cannotBeUndone": "Esta acción no se puede deshacer.",
- "continue": "Continuar",
- "language": "Lenguaje",
- "goBack": "Atrás",
- "forms": {
- "supportedImageFormats": "Solo se admiten archivos JPEG, PNG y WEBP de menos de 20 Mb",
- "valueTooShort": "El valor es demasiado corto",
- "valueTooLong": "El valor es demasiado largo",
- "fieldRequired": "Este campo es obligatorio",
- "minValue": "El valor de este campo tiene que ser superior a {{value}}",
- "minLength": "Por favor, introduce más de {{chars}} caracteres",
- "maxLength": "Por favor, escribe menos de {{chars}} caracteres",
- "maxValue": "El valor de este campo tiene que ser inferior a {{value}}",
- "enterNumber": "Introduzca un número válido",
- "enterInteger": "Introduzca un número entero",
- "maxLessThanMin": "El valor máximo ha de ser superior al mínimo",
- "endBeforeStart": "El final no puede ser anterior al inicio"
- },
- "preferences": "Preferencias",
- "cancel": "Cancelar",
- "noResults": "Sin resultados",
- "success": "¡Éxito!",
- "routines": {
- "rir": "Repeticiones",
- "addDay": "Añadir un día de entrenamiento",
- "addWeightLog": "Añadir un registro para el entrenamiento",
- "addLogToDay": "Añadir un registro a este día",
- "routine": "Rutina",
- "logsHeader": "Registro de entrenamientos",
- "logsFilterNote": "Ten en cuenta que sólo se registran las entradas con una unidad de peso de kg o lb y las repeticiones, aquí se ignoran otras combinaciones como el tiempo o hasta los errores",
- "routines": "Rutinas",
- "sets": "Conjuntos",
- "reps": "Repet",
- "volume": "Volumen",
- "intensity": "Intensidad",
- "currentRoutine": "Rutina actual",
- "iteration": "Iteración",
- "weekly": "Semanal",
- "daily": "Diaria",
- "restTime": "Descanso",
- "workoutNr": "Sesión Num. {{number}}",
- "weekNr": "Semana {{number}}",
- "backToRoutine": "Vuelta a la rutina",
- "minLengthRoutine": "La rutina debe ser de al menos {{number}} semanas",
- "resultingRoutine": "Rutina resultante",
- "routineHasNoDays": "La rutina no tiene días",
- "setHasNoExercises": "El conjunto no tiene días",
- "fitDaysInWeek": "Meter días en la semana",
- "needsLogsToAdvance": "Necesita registros para avanzar",
- "needsLogsToAdvanceHelpText": "Si selecciona esta opción, la rutina solo progresará al próximo día programado si ha registrado un entrenamiento para el día actual. Si esta opción no está seleccionada, la rutina avanzará automáticamente al día siguiente, independientemente de si registró un entrenamiento o no.",
- "addSuperset": "Añadir superset",
- "addExercise": "Añadir ejercicio",
- "exerciseNr": "Ejercicio {{number}}",
- "supersetNr": "Superserie {{number}}",
- "editProgression": "Editar progreso",
- "progressionNeedsReplace": "Una de las entradas anteriores debe tener ser reemplazada",
- "exerciseHasProgression": "Este ejercicio tiene reglas de progresión y no se puede editar aquí. Para hacerlo, haga clic en el botón.",
- "defaultRounding": "Redondeo por defecto",
- "rounding": "Redondeo (este ejercicio)",
- "newDay": "Nuevo día",
- "weightLogNotPlanned": "Guardar registros de peso a una fecha para la cual no se planificaron entrenamientos.",
- "logsOverview": "Examinar registros",
- "alsoShowLogs": "Mostrar también registros",
- "simpleMode": "Modo sencillo",
- "restDay": "Día de descanso",
- "confirmRestDayHelpText": "Tenga en cuenta que todos los conjuntos y ejercicios se eliminarán cuando marque un día como día de descanso.",
- "duplicate": "Duplicar rutina",
- "confirmRestDay": "Confirmar cambio de día de descanso",
- "downloadPdfTable": "Descargar PDF (tabla)",
- "downloadPdfLogs": "Descargar PDF (registros)",
- "downloadIcal": "Descargar fichero iCal",
- "impressionNeutral": "Impresión neutra",
- "impressionBad": "Mala impresión",
- "impressionGood": "Buena impresión",
- "impression": "Impresión",
- "addAdditionalLog": "Añada registro adicional",
- "step": "Paso",
- "operation": "Operación",
- "requirements": "Requisitos",
- "markAsTemplate": "Hacer plantilla",
- "publicTemplates": "Plantillas públicas",
- "set": {
- "dropSet": "Borrar conjunto",
- "myo": "Técnica MYO",
- "tut": "Trabajo bajo tensión",
- "normalSet": "Conjunto normal",
- "partial": "Parcial",
- "forced": "Forzado",
- "type": "Tipo",
- "jump": "Salto"
- },
- "roundingHelp": "Establezca el redondeo predeterminado para obtener peso y repeticiones (esto es especialmente útil cuando se usan incrementos porcentuales en la progresión). Esto se aplicará a todos los conjuntos nuevos, pero se puede cambiar individualmente en el formulario de progresión. Deja vacío para deshabilitar el redondeo.",
- "maxLengthRoutine": "La rutina debe tener como mucho {{number}} semanas",
- "deleteDayConfirmation": "Esto eliminará todos los conjuntos, ejercicios y progresos del día",
- "statsOverview": "Estadísticas",
- "repeat": "Regla para repeticiones",
- "fitDaysInWeekHelpText": "Esta configuración controla cómo se programan los días de su rutina en varias semanas. Si está habilitado, los días se repetirán en un ciclo semanal. Por ejemplo, una rutina con sesiones el lunes, miércoles y viernes continuará este patrón los lunes, miércoles y viernes siguientes. Si está deshabilitado, los días seguirán secuencialmente sin tener en cuenta el comienzo de una nueva semana. Esto es útil para rutinas que no siguen un horario semanal estricto.",
- "impressionHelpText": "Este formulario registra los resultados de su entrenamiento (repeticiones, peso, etc.) para cada ejercicio. Los cambios que realice aquí, como eliminar o intercambiar ejercicios, solo afectan los registros específicos que guarde y no cambiarán su rutina general. Solo se guardan filas con valores para peso o repeticiones.",
- "repeatHelpText": "Compruebe la casilla de verificación si desea que esta regla se siga aplicando a ejercicios posteriores hasta que defina una nueva",
- "templatesHelpText": "Las plantillas son una manera de guardar su rutina para uso posterior y como punto de partida para futuras rutinas. No puedes editar plantillas, pero puedes duplicarlas y hacer cambios en la copia (así como convertirlas en una rutina regular, por supuesto).",
- "workoutSession": "Sesión de entrenamiento",
- "requirementsHelpText": "Seleccione los resultados de entrenamiento (de registros anteriores) que deben cumplirse para que esta regla surta efecto",
- "template": "Plantilla",
- "templates": "Plantillas",
- "publicTemplate": "Plantilla pública",
- "publicTemplateHelpText": "Las plantillas públicas están disponibles para todos los usuarios.",
- "copyAndUseTemplate": "Copiar y usar plantilla"
- },
- "actions": "Acciones",
- "value": "Valor",
- "unit": "Unidad",
- "notes": "Notas personales",
- "seeDetails": "Ver los detalles",
- "measurements": {
- "measurements": "Mediciones",
- "unitFormHelpText": "La unidad en la que se medirá la categoría, como cm o %",
- "deleteInfo": "Esto eliminará la categoría así como todas sus entradas"
- },
- "deleteConfirmation": "¿Estás seguro de que quieres borrar \"{{name}}\"?",
- "nutrition": {
- "percentEnergy": "Porcentaje de energía",
- "fibres": "Fibra",
- "saturatedFat": "Grasas saturadas",
- "loggedToday": "Registrado hoy",
- "goalsTitle": "Objetivos",
- "addMealItem": "Añadir el ingrediente para la comida",
- "sugar": "Azúcar",
- "planned": "Planeado",
- "mealDeleteInfo": "Las entradas del diario nutricional para esta comida no se borrarán y aparecerán en \"otros registros\"",
- "goalEnergy": "Objetivo energético",
- "logged": "Registrado",
- "logThisMeal": "Registre esta comida en el diario nutricional",
- "valueEnergyKcal": "{{value}} kcal",
- "7dayAvg": "Promedio de los 7 días",
- "ofWhichSugars": "de los cuales azúcares",
- "ofWhichSaturated": "de las cuales saturadas",
- "nutritionalDiary": "Diario nutricional",
- "valueRemaining": "restante",
- "plan": "Plan nutricional",
- "valueTooMany": "demasiados",
- "logThisMealItem": "Registre este ingrediente en el diario nutricional",
- "kcal": "kcal",
- "planDeleteInfo": "Esto borrará también todas las entradas del diario nutricional",
- "copyPlan": "Haga una copia de este plan",
- "plans": "Planes nutricionales",
- "others": "Otros",
- "useGoalsHelpTextLong": "Esto le permite establecer los objetivos generales de energía, proteínas, carbohidratos o grasas para el plan. Tenga en cuenta que si configura un plan de comidas detallado, estos valores tendrán prioridad.",
- "difference": "Diferencia",
- "protein": "Proteína",
- "addNutritionalDiary": "Añadir una entrada al diario nutricional",
- "today": "Hoy",
- "onlyLoggingHelpText": "Registrar sólo las calorías. Marque la casilla si sólo desea registrar las calorías y no desea configurar un plan nutricional detallado con comidas específicas",
- "fat": "Grasa",
- "gPerBodyKg": "g por kg de peso",
- "goalProtein": "Objetivo proteico",
- "valueEnergyKcalKj": "{{kcal}} kcal / {{kj}} kJ",
- "goalFat": "Objetivo de grasa",
- "meal": "Menú",
- "goalCarbohydrates": "Objetivo de carbohidratos",
- "diaryEntrySaved": "Entrada para la agenda guardada correctamente",
- "energy": "Energía",
- "useGoalsHelpText": "Añadir objetivos a este plan",
- "addMeal": "Añadir un menú",
- "carbohydrates": "Carbohidratos",
- "macronutrient": "Macronutriente",
- "gramShort": "g",
- "searchIngredientName": "Búsqueda por nombre de ingrediente",
- "sodium": "Sodio",
- "pseudoMealTitle": "Otros registros",
- "goalFiber": "Objetivo de fibra"
- },
- "downloadAsPdf": "Descargar como un PDF",
- "total": "Total",
- "alsoSearchEnglish": "Buscar también los nombres en inglés",
- "timeOfDay": "Hora del día",
- "nothingHereYet": "Todavía no hay nada aquí...",
- "nothingHereYetAction": "Pulse el botón de acción para empezar",
- "copyToClipboard": "Copiar al portapapeles",
- "licenses": {
- "authors": "Autor(es)",
- "derivativeSourceUrl": "Enlace a la fuente original, si se trata de una obra derivada",
- "originalObjectUrl": "Enlace al sitio web de origen, si está disponible",
- "originalTitle": "Título",
- "derivativeSourceUrlHelper": "Tenga en cuenta que una obra derivada es aquella que no sólo se basa en una obra anterior, sino que además contiene suficiente contenido nuevo y creativo como para tener derecho a sus propios derechos de autor.",
- "authorProfile": "Enlace al sitio web o perfil del autor, si está disponible"
- },
- "filters": "Filtros",
- "lastYear": "El año pasado",
- "lastHalfYear": "Últimos 6 meses",
- "lastMonth": "Último mes",
- "all": "Todo",
- "lastWeek": "Última semana",
- "calendar": "Calendario",
- "entries": "Entradas",
- "no_entries_for_day": "No hay entradas para este día",
- "height": "Altura",
- "cm": "cm",
- "bmi": {
- "calculator": "Calculadora de IMC",
- "overweight": "Sobrepeso",
- "obese": "Obeso",
- "normal": "En tu peso ideal",
- "underweight": "Bajo peso",
- "result": "Su IMC es {{value}}"
- },
- "editName": "Editar {{name}}",
- "start": "Comenzar",
- "end": "Fin",
- "comment": "Comentar",
- "min": "Mínimo",
- "max": "Máximo",
- "durationWeeks": "{{number}} semanas",
- "durationWeeksDays": "{{nrWeeks}} semanas, {{nrDays}} días",
- "undo": "Deshacer",
- "successfullyDeleted": "Borrado completado",
- "public": "Público",
- "private": "Privado"
-}
diff --git a/wger/core/static/react/locales/fa/translation.json b/wger/core/static/react/locales/fa/translation.json
deleted file mode 100644
index 0967ef424..000000000
--- a/wger/core/static/react/locales/fa/translation.json
+++ /dev/null
@@ -1 +0,0 @@
-{}
diff --git a/wger/core/static/react/locales/fr/translation.json b/wger/core/static/react/locales/fr/translation.json
deleted file mode 100644
index 861d25d62..000000000
--- a/wger/core/static/react/locales/fr/translation.json
+++ /dev/null
@@ -1,339 +0,0 @@
-{
- "difference": "Différence",
- "delete": "Supprimer",
- "date": "Date",
- "days": "Jours",
- "edit": "Modifier",
- "weight": "Poids",
- "submit": "Envoyer",
- "add": "Ajouter",
- "close": "Fermer",
- "exercises": {
- "secondaryMuscles": "Muscles secondaires",
- "searchExerciseName": "Rechercher par nom d'exercice",
- "alsoKnownAs": "Aussi connu sous :",
- "notes": "Notes",
- "description": "Déscription",
- "noEquipment": "Sans équipement",
- "missingExercise": "Un certain exercice manque ?",
- "missingExerciseDescription": "Aidez la communauté en y contribuant !",
- "contributeExercise": "Contribuer à un exercice",
- "exercises": "Exercices",
- "category": "Catégorie",
- "equipment": "Équipement",
- "notEnoughRightsHeader": "Vous ne pouvez pas contribuer aux exercices",
- "translateExerciseNow": "Traduire cet exercice maintenant",
- "variations": "Variations",
- "notEnoughRights": "Vous pouvez contribuer aux exercices seulement si votre compte est vieux d'au moins {{days}} jours et votre email est vérifié",
- "muscles": "Muscles",
- "deleteTranslation": "Supprimer la traduction",
- "identicalExercise": "Éviter les exercices en double",
- "compatibleImagesCC": "Les images doivent être compatibles avec la licence CC BY SA. En cas de doute, envoyez uniquement les photos que vous avez prises vous-même.",
- "submitExercise": "Envoyer l'exercice",
- "alternativeNames": "Noms alternatifs",
- "checkInformationBeforeSubmitting": "Veuillez vérifier que les informations que vous avez saisies sont correctes avant de soumettre l'exercice",
- "cacheWarning": "En raison de la mise en cache, cela peut prendre un certain temps avant que les modifications soient visibles dans toute l'application.",
- "exerciseNotTranslated": "Aucune traduction n'est disponible",
- "basics": "Bases",
- "exerciseNotTranslatedBody": "Cet exercice n'est actuellement pas disponible dans la langue sélectionnée. Voulez-vous contribuer à la traduction ?",
- "successfullyUpdated": "L'exercice a été mis à jour avec succès. En raison de la mise en cache, cela peut prendre un certain temps avant que les modifications soient visibles dans toute l'application.",
- "identicalExercisePleaseDiscard": "Si vous remarquez un exercice identique à celui que vous ajoutez, veuillez supprimer votre brouillon et modifier cet exercice à la place.",
- "deleteExerciseBody": "Voulez-vous supprimer l'exercice \"{{name}}\" ? Vous pouvez soit supprimer la traduction actuelle de {{language}}, soit l'exercice complet avec toutes les traductions, images, etc.",
- "deleteExerciseFull": "Supprimer l'exercice complètement",
- "changeExerciseLanguage": "Changer la langue de l'exercice",
- "step1HeaderBasics": "Les bases en anglais",
- "whatVariationsExist": "Quelles sont les variantes de cet exercice, s'il en existe ?",
- "filterVariations": "Entrer un nom d'exercice pour filtrer les variantes",
- "newNote": "Nouvelle note",
- "notesHelpText": "Les notes sont de brefs commentaires sur la façon d'exécuter l'exercice, par exemple \"gardez votre corps droit\"",
- "primaryMuscles": "Muscles primaires",
- "replacements": "Substitutions",
- "replacementsInfoText": "En option, vous pouvez également sélectionner un exercice qui devrait remplacer celui-ci (par exemple, s'il a été soumis deux fois, ou similaire). Cela remplacera l'exercice dans les routines ainsi que dans les journaux d'entraînement, au lieu de simplement le supprimer. Ces modifications seront également propagées à toute instance synchronisant les exercices à partir de celui-ci.",
- "deleteExerciseReplace": "Supprimer et remplacer",
- "replacementsSearch": "Recherchez un exercice ou copiez-collez un identifiant connu dans le champ, puis cliquez sur le bouton \"Charger\".",
- "noReplacementSelected": " Aucun exercice sélectionné pour le remplacement",
- "imageStylePhoto": "Photo",
- "imageStyle3D": "3D",
- "imageStyleLine": "Ligne",
- "imageDetails": "Détail des images",
- "imageStyleOther": "Autre",
- "imageStyleLowPoly": "Low-Poly",
- "swapExercise": "Changer d'exercice"
- },
- "server": {
- "arms": "Bras",
- "back": "Dos",
- "calves": "Mollets",
- "chest": "Pectoraux",
- "legs": "Jambes",
- "shoulders": "Epaules",
- "bench": "Banc",
- "barbell": "Barre",
- "primaryMuscles": "Muscle primaire",
- "pull-up_bar": "Barre de traction",
- "swiss_ball": "Ballon de gym",
- "kilometers": "Kilomètres",
- "miles": "Miles",
- "minutes": "Minutes",
- "repetitions": "Répétitions",
- "seconds": "Secondes",
- "until_failure": "Jusqu'à l'échec",
- "gym_mat": "Tapis de gymnastique",
- "dumbbell": "Haltère",
- "kettlebell": "Kettlebell",
- "muscles": "Muscles",
- "sz-bar": "Barre SZ",
- "none_(bodyweight_exercise)": "Aucun (exercice au poids du corps)",
- "incline_bench": "Banc incliné",
- "none__bodyweight_exercise_": "aucun (exercice au poids du corps)",
- "abs": "Abdos",
- "cardio": "Cardio",
- "sz_bar": "Barre EZ",
- "pull_up_bar": "Barre de traction",
- "triceps": "Triceps",
- "glutes": "Fessiers",
- "quads": "Quadriceps",
- "lats": "Grand dorsal",
- "biceps": "Biceps",
- "hamstrings": "Ischio-jambiers",
- "lower_back": "Bas du dos",
- "plates": "Disques",
- "body_weight": "Poids corporel",
- "kilometers_per_hour": "Kilomètres par heure",
- "miles_per_hour": "Miles par heure",
- "kg": "kg",
- "lb": "lb",
- "max_reps": "Reps maxi"
- },
- "noResults": "Aucun résultats",
- "noResultsDescription": "Aucun résultats n'a été trouvé avec cette requête, essayez de réduire le nombre de filtres.",
- "nutritionalPlan": "Programme nutritionnel",
- "addEntry": "Ajouter une entrée",
- "currentWeight": "Poids actuel",
- "workout": "Entraînement",
- "loading": "Chargement…",
- "continue": "Continuer",
- "preferences": "Préférences",
- "goBack": "Retour",
- "language": "Langues",
- "forms": {
- "supportedImageFormats": "Seuls les fichiers JPEG, PNG et WEBP de moins de 20 Mo sont pris en charge",
- "valueTooShort": "La valeur est trop courte",
- "fieldRequired": "Le champ est requis",
- "valueTooLong": "La valeur est trop longue",
- "minLength": "Veuillez saisir plus de {{chars}} caractères",
- "maxLength": "Veuillez saisir moins de {{chars}} caractères",
- "maxValue": "La valeur de ce champ doit être inférieure à {{value}}",
- "minValue": "La valeur de ce champ doit être supérieure à {{value}}",
- "enterNumber": "Veuillez entrer un nombre valide",
- "maxLessThanMin": "La valeur maximale doit être plus grande que la valeur minimale",
- "endBeforeStart": "La valeur de fin ne peut être avant le début",
- "enterInteger": "Veuillez entrer un nombre entier"
- },
- "name": "Nom",
- "category": "Catégorie",
- "English": "Anglais",
- "save": "Sauvegarder",
- "cancel": "Annuler",
- "success": "Succès!",
- "videos": "Vidéos",
- "cannotBeUndone": "Cette action ne peux pas être annulée.",
- "translation": "Traduction",
- "description": "Description",
- "images": "Photos",
- "overview": "Vue d'ensemble",
- "routines": {
- "addDay": "Ajouter un jour d'entraînement",
- "addWeightLog": "Ajouter un historique de poids",
- "logsFilterNote": "Notez que seules les entrées avec un poids dont l'unité est kg ou lb et contenant des répétitions sont classées, les autres combinaisons telles que le temps ou jusqu'à l'échec sont ignorées",
- "addLogToDay": "Ajouter un journal à ce jour",
- "routine": "Routine",
- "routines": "Routines",
- "logsHeader": "Journal de poids pour cet entraînement",
- "rir": "ReR",
- "reps": "Répétitions",
- "addAdditionalLog": "Ajouter un journal supplémentaire",
- "templatesHelpText": "Les modèles permettent de sauvegarder votre routine pour une utilisation ultérieure et comme point de départ pour d'autres routines. Vous ne pouvez pas modifier les modèles, mais vous pouvez les dupliquer et apporter des modifications à la copie (et bien sûr les reconvertir en routine standard).",
- "sets": "Séries",
- "volume": "Volume",
- "currentRoutine": "Routine actuelle",
- "iteration": "Itération",
- "intensity": "Intensité",
- "weekly": "Hebdomadaire",
- "daily": "Quotidien",
- "restTime": "Temps de repos",
- "workoutNr": "Entraînement n° {{number}}",
- "weekNr": "Semaine {{number}}",
- "backToRoutine": "Retour à la routine",
- "minLengthRoutine": "La routine doit durer au moins {{number}} semaines",
- "maxLengthRoutine": "La routine peut durer au maximum {{number}} semaines",
- "deleteDayConfirmation": "Cela supprimera toutes les séries, exercices et règles de progression",
- "resultingRoutine": "Routine résultante",
- "routineHasNoDays": "La routine n'a pas de jours",
- "setHasNoExercises": "Cette série ne contient aucun exercice",
- "fitDaysInWeek": "Jours en forme dans la semaine",
- "needsLogsToAdvance": "Nécessite des journaux pour avancer",
- "needsLogsToAdvanceHelpText": "Si vous sélectionnez cette option, la routine passera au jour suivant uniquement si vous avez enregistré une séance d'entraînement pour la journée en cours. Si cette option n'est pas sélectionnée, la routine passera automatiquement au jour suivant, que vous ayez enregistré une séance d'entraînement ou non.",
- "fitDaysInWeekHelpText": "Ce paramètre contrôle la répartition des jours de votre routine sur plusieurs semaines. Si cette option est activée, les jours se répètent selon un cycle hebdomadaire. Par exemple, une routine avec des entraînements le lundi, le mercredi et le vendredi se répète les lundi, mercredi et vendredi suivants. Si elle est désactivée, les jours se succèdent sans tenir compte du début d'une nouvelle semaine. Ceci est utile pour les routines qui ne suivent pas un planning hebdomadaire strict.",
- "addSuperset": "Ajouter une supersérie",
- "addExercise": "Ajouter un exercice",
- "exerciseNr": "Exercice {{number}}",
- "supersetNr": "Supersérie {{number}}",
- "editProgression": "Modifier la progression",
- "progressionNeedsReplace": "L'une des entrées précédentes doit avoir une opération de remplacement",
- "exerciseHasProgression": "Cet exercice est soumis à des règles de progression et ne peut pas être modifié ici. Pour ce faire, cliquez sur le bouton.",
- "defaultRounding": "Arrondi par défaut",
- "rounding": "Arrondi (cet exercice)",
- "newDay": "Nouveau jour",
- "weightLogNotPlanned": "Sauvegarde des journaux à une date pour laquelle aucun entraînement n'était prévu.",
- "logsOverview": "Aperçu des journaux",
- "alsoShowLogs": "Afficher également les journaux",
- "statsOverview": "Statistiques",
- "confirmRestDay": "Confirmer le changement de jour de repos",
- "confirmRestDayHelpText": "Veuillez noter que toutes les séries et tous les exercices seront supprimés lorsque vous marquez un jour comme jour de repos.",
- "simpleMode": "Mode simple",
- "restDay": "Jour de repos",
- "duplicate": "Routine en double",
- "downloadPdfTable": "Télécharger le PDF (tableau)",
- "downloadPdfLogs": "Télécharger le PDF (journaux)",
- "downloadIcal": "Télécharger le fichier iCal",
- "impression": "Impression générale",
- "impressionGood": "Bien",
- "impressionNeutral": "Neutre",
- "impressionBad": "Mauvais",
- "impressionHelpText": "Ce formulaire enregistre vos résultats d'entraînement (répétitions, poids, etc.) pour chaque exercice. Les modifications que vous effectuez ici, comme la suppression ou le remplacement d'exercices, n'affectent que les journaux spécifiques que vous enregistrez et ne modifient pas votre routine globale. Seules les lignes contenant des valeurs de poids ou de répétitions sont enregistrées.",
- "operation": "Opération",
- "step": "Étape",
- "requirementsHelpText": "Sélectionnez les résultats d'entraînement (à partir des journaux précédents) qui doivent être atteints pour que cette règle prenne effet",
- "requirements": "Exigences",
- "repeat": "Répéter la règle",
- "template": "Modèle",
- "repeatHelpText": "Cochez la case si vous souhaitez que cette règle continue de s'appliquer aux entraînements suivants jusqu'à ce que vous en définissiez un nouveau",
- "templates": "Modèles",
- "markAsTemplate": "Gérer le modèle",
- "publicTemplate": "Modèle public",
- "publicTemplates": "Modèles publics",
- "set": {
- "type": "Type",
- "normalSet": "Série normale",
- "dropSet": "Série dégressive",
- "myo": "MYO",
- "tut": "TUT",
- "iso": "ISO",
- "jump": "Saut",
- "partial": "Partielle",
- "forced": "Forcée"
- },
- "publicTemplateHelpText": "Les modèles publics sont disponibles pour tous les utilisateurs.",
- "workoutSession": "Séance d'entraînement",
- "copyAndUseTemplate": "Copier et utiliser le modèle",
- "roundingHelp": "Définissez l'arrondi par défaut pour le poids et les répétitions (particulièrement utile lors de l'utilisation de l'incrémentation en pourcentage dans la progression). Ce paramètre s'applique à toutes les nouvelles séries, mais peut être modifié individuellement dans le formulaire de progression. Laissez vide pour désactiver l'arrondi."
- },
- "value": "Valeur",
- "deleteConfirmation": "Êtes-vous certain de vouloir supprimer \"{{name}}\" ?",
- "notes": "Notes",
- "seeDetails": "Voir les détails",
- "actions": "Actions",
- "unit": "Unité",
- "nutrition": {
- "percentEnergy": "Pourcentage d'énergie",
- "loggedToday": "Connecté aujourd'hui",
- "goalsTitle": "Objectifs",
- "addMealItem": "Ajouter un ingrédient au repas",
- "goalEnergy": "Objectif énergétique",
- "logged": "Connecté",
- "valueEnergyKcal": "{{value}} Kcal",
- "nutritionalDiary": "Journal nutritionnel",
- "plan": "Plan nutritionnel",
- "kcal": "Kcal",
- "copyPlan": "Créer une copie de ce plan",
- "plans": "Plans nutritionnels",
- "useGoalsHelpTextLong": "Cela vous permet de définir des objectifs généraux pour l'énergie, les protéines, les glucides ou les graisses du plan. Notez que si vous configurez un plan de repas détaillé, ces valeurs auront la priorité.",
- "addNutritionalDiary": "Ajouter une entrée au journal nutritionnel",
- "onlyLoggingHelpText": "Suivre uniquement les calories. Cochez la case si vous souhaitez uniquement enregistrer vos calories et ne souhaitez pas configurer un plan nutritionnel détaillé avec des repas spécifiques",
- "gPerBodyKg": "gramme par kilogramme de poids corporel",
- "goalProtein": "Objectif en protéines",
- "valueEnergyKcalKj": "{{kcal}} Kcal / {{kj}} kJ",
- "goalFat": "Objectif en matières grasses",
- "meal": "Repas",
- "goalCarbohydrates": "Objectif en glucides",
- "useGoalsHelpText": "Ajouter des objectifs à ce plan",
- "addMeal": "Ajouter un repas",
- "macronutrient": "Macronutriment",
- "gramShort": "g",
- "searchIngredientName": "Rechercher par nom d'ingrédient",
- "planned": "Plannifié",
- "today": "Aujourd'hui",
- "difference": "Différence",
- "energy": "Energie",
- "protein": "Protéine",
- "carbohydrates": "Glucides",
- "fat": "Graisse",
- "saturatedFat": "Graisse saturé",
- "sodium": "Sodium",
- "fibres": "Fibres",
- "sugar": "Sucre",
- "others": "Autres",
- "valueRemaining": "restant",
- "goalFiber": "Objectif fibre",
- "7dayAvg": "Moyenne sur 7 jours",
- "mealDeleteInfo": "Les entrées du journal nutritionnel pour ce repas ne seront pas supprimées et apparaîtront sous « autres journaux »",
- "diaryEntrySaved": "Entrée du journal enregistrée avec succès",
- "logThisMeal": "Enregistrez ce repas tel quel dans le journal nutritionnel",
- "valueTooMany": "trop",
- "ofWhichSugars": "dont les sucres",
- "pseudoMealTitle": "Autres journaux",
- "ofWhichSaturated": "dont saturé",
- "planDeleteInfo": "Cela supprimera également toutes les entrées du journal nutritionnel",
- "logThisMealItem": "Enregistrez cet ingrédient tel quel dans le journal nutritionnel"
- },
- "nothingHereYet": "Rien ici pour le moment …",
- "total": "Total",
- "alsoSearchEnglish": "Recherchez également des noms en anglais",
- "timeOfDay": "Heure de la journée",
- "copyToClipboard": "Copier dans le presse-papiers",
- "nothingHereYetAction": "Appuyez sur le bouton d'action pour commencer",
- "licenses": {
- "originalTitle": "Titre",
- "authors": "Auteur(s)",
- "authorProfile": "Lien vers le profile ou le site de l'auteur, si disponible",
- "derivativeSourceUrl": "Lien vers la source originale, s'il s'agit d'une œuvre dérivée",
- "originalObjectUrl": "Lien vers le site Web source, si disponible",
- "derivativeSourceUrlHelper": "Notez qu'une œuvre dérivée est une œuvre qui n'est pas seulement basée sur une œuvre antérieure, mais qui contient également suffisamment de contenu nouveau et créatif pour lui donner droit à son propre droit d'auteur."
- },
- "filters": "Filtres",
- "measurements": {
- "measurements": "Mesures",
- "unitFormHelpText": "L'unité dans laquelle la catégorie sera mesurée, telle que cm ou %",
- "deleteInfo": "Ceci supprimera la catégorie ainsi que toutes ses entrées"
- },
- "downloadAsPdf": "Télécharger en PDF",
- "calendar": "Calendrier",
- "entries": "Entrées",
- "no_entries_for_day": "Aucune entrée pour ce jour",
- "height": "Taille",
- "cm": "cm",
- "lastHalfYear": "6 Derniers Mois",
- "lastMonth": "Dernier Mois",
- "all": "Tous",
- "lastYear": "Dernière Année",
- "lastWeek": "Dernière Semaine",
- "start": "Démarrer",
- "end": "Terminer",
- "min": "Min",
- "max": "Max",
- "durationWeeks": "{{number}} semaines",
- "successfullyDeleted": "Suppression effectuée",
- "durationWeeksDays": "{{nrWeeks}} semaines, {{nrDays}} jours",
- "undo": "Annuler les modifications",
- "bmi": {
- "calculator": "Calculateur BMI",
- "overweight": "Surpoids",
- "obese": "Obèse",
- "normal": "Poids normal",
- "underweight": "Poids insuffisant",
- "result": "Votre BMI est {{value}}"
- },
- "editName": "Editer {{name}}",
- "comment": "Commentaire"
-}
diff --git a/wger/core/static/react/locales/he/translation.json b/wger/core/static/react/locales/he/translation.json
deleted file mode 100644
index db160cb3a..000000000
--- a/wger/core/static/react/locales/he/translation.json
+++ /dev/null
@@ -1,146 +0,0 @@
-{
- "weight": "משקל",
- "height": "גובה",
- "cm": "ס״מ",
- "date": "תאריך",
- "timeOfDay": "שעה ביום",
- "submit": "שליחה",
- "edit": "עריכה",
- "editName": "עריכת {{name}}",
- "delete": "מחיקה",
- "deleteConfirmation": "למחוק את \"{{name}}\"?",
- "add": "הוספה",
- "close": "סגירה",
- "difference": "הבדל",
- "days": "ימים",
- "all": "הכול",
- "lastYear": "בשנה האחרונה",
- "lastHalfYear": "ב־6 החודשים האחרונים",
- "lastMonth": "בחודש האחרון",
- "lastWeek": "בשבוע האחרון",
- "start": "התחלה",
- "end": "סיום",
- "comment": "הערה",
- "licenses": {
- "authors": "יוצר(ים)",
- "originalTitle": "כותרת",
- "originalObjectUrl": "קישור לאתר המקור, אם יש"
- },
- "loading": "בטעינה...",
- "nutritionalPlan": "תכנון תזונתי",
- "addEntry": "הוספת ערך",
- "currentWeight": "המשקל הנוכחי",
- "workout": "אימון",
- "seeDetails": "צפייה בפרטים",
- "actions": "פעולות",
- "nothingHereYet": "אין כאן כלום עדיין...",
- "notes": "הערות",
- "value": "ערך",
- "unit": "יחידת מידה",
- "copyToClipboard": "העתקה ללוח",
- "filters": "מסננים",
- "exercises": {
- "replacements": "חלופות",
- "translateExerciseNow": "לתרגום תרגיל זה כעת",
- "alternativeNames": "שמות חלופיים",
- "notes": "הערות",
- "equipment": "ציוד",
- "submitExercise": "שליחת תרגיל",
- "description": "תיאור",
- "exerciseNotTranslated": "אין תרגום זמין",
- "alsoKnownAs": "מוכר גם בתור:",
- "primaryMuscles": "שרירים ראשיים",
- "deleteTranslation": "מחיקת תרגום",
- "deleteExerciseReplace": "מחיקה והחלפה",
- "exercises": "תרגילים",
- "changeExerciseLanguage": "שינוי שפת התרגיל הזה",
- "noEquipment": "ללא ציוד",
- "missingExercise": "חסר תרגיל משמעותי?",
- "imageStylePhoto": "תמונה",
- "contributeExercise": "לתרום תרגיל",
- "variations": "וריאציות",
- "muscles": "שרירים",
- "secondaryMuscles": "שרירים משניים",
- "compatibleImagesCC": "על התמונות להיות תואמות לרישיון CC BY SA. אם יש ספק כלשהו, יש להעלות רק תמונות שצילמת בעצמך.",
- "identicalExercise": "הימנעות משימוש חוזר בתרגילים",
- "exerciseNotTranslatedBody": "תרגיל זה עדיין אינו זמין בשפה שנבחרה. האם ברצונך לתרום תרגום?",
- "deleteExerciseFull": "מחיקת כל האימון",
- "searchExerciseName": "חיפוש לפי שם אימון",
- "newNote": "הערה חדשה",
- "imageStyle3D": "תלת־ממד",
- "imageDetails": "פרטי תמונה",
- "swapExercise": "החלפת אימון"
- },
- "success": "הפעולה צלחה!",
- "English": "עברית",
- "save": "שמירה",
- "total": "סה״כ",
- "images": "תמונות",
- "successfullyDeleted": "המחיקה צלחה",
- "routines": {
- "reps": "חזרות",
- "sets": "סטים",
- "intensity": "עצימות",
- "currentRoutine": "שגרה נוכחית",
- "restTime": "זמן מנוחה",
- "backToRoutine": "חזרה לשגרה",
- "addDay": "הוספת יום אימון",
- "addExercise": "הוספת אימון"
- },
- "server": {
- "repetitions": "חזרות"
- },
- "nothingHereYetAction": "נא ללחוץ על כפתור הפעולה כדי להתחיל",
- "alsoSearchEnglish": "לחפש גם לפי השמות באנגלית",
- "nutrition": {
- "plans": "תוכניות תזונתיות",
- "copyPlan": "יצירת העתק של תוכנית זו",
- "plan": "תוכנית תזונתית",
- "goalsTitle": "יעדים",
- "useGoalsHelpText": "הוספת יעדים לתוכנית זו",
- "goalEnergy": "יעד אנרגיה",
- "goalProtein": "יעד חלבונים",
- "goalFiber": "יעד סיבים תזונתיים",
- "goalFat": "יעד שומנים",
- "meal": "מנה",
- "addMeal": "הוספת מנה",
- "gramShort": "גר׳",
- "kcal": "ק׳ קלוריות",
- "percentEnergy": "אחוז אנרגיה",
- "difference": "הבדל",
- "today": "היום",
- "energy": "אנרגיה",
- "protein": "חלבונים",
- "sugar": "סוכר",
- "fat": "שומנים",
- "sodium": "נתרן"
- },
- "bmi": {
- "calculator": "מחשבון BMI",
- "overweight": "משקל עודף",
- "normal": "משקל נורמלי",
- "underweight": "תת־משקל",
- "result": "ה־BMI שלך הוא {{value}}"
- },
- "downloadAsPdf": "הורדה בתור PDF",
- "description": "תיאור",
- "translation": "תרגום",
- "preferences": "העדפות",
- "continue": "המשך",
- "goBack": "חזרה",
- "language": "שפה",
- "forms": {
- "valueTooShort": "הערך קצר מדי",
- "valueTooLong": "הערך ארוך מדי",
- "fieldRequired": "זהו שדה חובה"
- },
- "name": "שם",
- "category": "קטגוריה",
- "min": "מינ׳",
- "max": "מקס׳",
- "videos": "סרטונים",
- "undo": "ביטול פעולה",
- "cannotBeUndone": "לא ניתן לבטל פעולה זו.",
- "cancel": "ביטול",
- "noResults": "אין תוצאות"
-}
diff --git a/wger/core/static/react/locales/hr/translation.json b/wger/core/static/react/locales/hr/translation.json
deleted file mode 100644
index 590674a8b..000000000
--- a/wger/core/static/react/locales/hr/translation.json
+++ /dev/null
@@ -1,249 +0,0 @@
-{
- "add": "Dodaj",
- "addEntry": "Dodaj unos",
- "close": "Zatvori",
- "currentWeight": "Trenutačna težina",
- "date": "Datum",
- "days": "Dani",
- "delete": "Izbriši",
- "difference": "Razlika",
- "edit": "Uredi",
- "exercises": {
- "alsoKnownAs": "Poznata i kao:",
- "category": "Kategorija",
- "contributeExercise": "Doprinesi vježbu",
- "description": "Opis",
- "equipment": "Oprema",
- "exercises": "Vježbe",
- "missingExercise": "Nedostaje određena vježba?",
- "missingExerciseDescription": "Pomogni zajednici svojim doprinosom!",
- "muscles": "Mišići",
- "noEquipment": "Nema opreme",
- "notes": "Bilješke",
- "primaryMuscles": "Primarni mišići",
- "searchExerciseName": "Traži po imenu vježbe",
- "secondaryMuscles": "Sekundarni mišići",
- "deleteExerciseBody": "Želiš li izbrisati vježbu „{{name}}”? Možeš izbrisati trenutačni {{language}} prijevod ili cijelu vježbu sa svim prijevodima, slikama itd.",
- "deleteExerciseFull": "Izbriši cijelu vježbu",
- "deleteTranslation": "Izbriši prijevod",
- "step1HeaderBasics": "Osnove na engleskom",
- "variations": "Varijacije",
- "whatVariationsExist": "Koje varijacije ove vježbe postoje, ako ih ima?",
- "filterVariations": "Upiši ime vježbe za filtriranje varijacija",
- "identicalExercisePleaseDiscard": "Ako primijetiš vježbu koja je identična onoj koju dodaješ, odbaci skicu i umjesto toga uredi tu vježbu.",
- "translateExerciseNow": "Prevedi ovu vježbu sada",
- "compatibleImagesCC": "Slike moraju biti kompatibilne s licencom CC BY SA. Ako si u nedoumici, prenesi samo svoje vlastite fotografije.",
- "alternativeNames": "Alternativna imena",
- "exerciseNotTranslated": "Nema prijevoda",
- "submitExercise": "Pošalji vježbu",
- "successfullyUpdated": "Vježba je uspješno aktualizirana. Zbog predmemoriranja može potrajati neko vrijeme dok promjene ne budu vidljive u cijeloj aplikaciji.",
- "checkInformationBeforeSubmitting": "Prije slanja vježbe provjeri jesu li tvoji upisani podaci točni",
- "exerciseNotTranslatedBody": "Ova vježba trenutačno nije dostupna na trenutačno odabranom jeziku. Želiš li doprinijeti prijevodu?",
- "newNote": "Nova bilješka",
- "notesHelpText": "Bilješke su kratki komentari o tome kako izvesti vježbu, poput „drži tijelo ravno”",
- "identicalExercise": "Nemoj dodavati vježbe koje već postoje",
- "changeExerciseLanguage": "Promijeni jezik za ovu vježbu",
- "basics": "Osnove",
- "cacheWarning": "Zbog predmemoriranja, vidljivost promjena u aplikaciji može nešto potrajati.",
- "notEnoughRightsHeader": "Ne možeš dodati vježbe",
- "notEnoughRights": "Vježbe možeš dodati samo ako je tvoj račun stariji od {{days}} dana i ako si potvrdio/la tvoju e-mail adresu",
- "replacements": "Zamjene",
- "replacementsInfoText": "Opcionalno možeš odabrati i vježbu koja bi trebala zamijeniti ovu (npr. zato što je poslana dva puta ili jer je slična). To će zamijeniti vježbu u rutinama kao i zapisnike treninga, umjesto da se samo izbrišu. Ove promjene će se također proširiti na bilo koju instancu koja sinkronizira vježbe iz ove.",
- "deleteExerciseReplace": "Izbriši i zamijeni",
- "replacementsSearch": "Traži vježbu ili kopiraj i umetni poznati ID u polje i pritisni gumb „Učitaj”.",
- "noReplacementSelected": " Nije odabrana nijedna vježba za zamjenu",
- "imageStylePhoto": "Fotografija",
- "imageStyle3D": "3D",
- "imageStyleLine": "Linija",
- "imageStyleLowPoly": "Grubi poligoni",
- "imageStyleOther": "Drugo",
- "imageDetails": "Detalji slike"
- },
- "noResults": "Nema rezultata",
- "noResultsDescription": "Za ovaj upit nisu pronađeni rezultati. Smanji broja filtara.",
- "nutritionalPlan": "Plan prehrane",
- "server": {
- "arms": "Ruke",
- "back": "Leđa",
- "barbell": "Šipka",
- "bench": "Klupa",
- "calves": "Lisni mišići",
- "chest": "Prsa",
- "dumbbell": "Ručni uteg",
- "gym_mat": "Podloga za treniranje",
- "incline_bench": "Nagnuta klupa",
- "kettlebell": "Kuglasti uteg",
- "kilometers": "Kilometri",
- "legs": "Noge",
- "miles": "Milje",
- "minutes": "Minute",
- "none_(bodyweight_exercise)": "ništa (vježba za tjelesnu težinu)",
- "pull-up_bar": "Prečka",
- "repetitions": "Ponavljanja",
- "seconds": "Sekunde",
- "shoulders": "Ramena",
- "swiss_ball": "Gimnastička lopta",
- "sz-bar": "SZ prečka",
- "until_failure": "Do neuspjeha",
- "abs": "Trbuh",
- "quads": "Ekstenzije nogu",
- "triceps": "Triceps",
- "pull_up_bar": "Prečka",
- "sz_bar": "Zaobljena šipka",
- "none__bodyweight_exercise_": "ništa (vježba za tjelesnu težinu)",
- "biceps": "Bicepsi",
- "hamstrings": "Tetive koljena",
- "lower_back": "Donji dio leđa",
- "glutes": "Stražnjica",
- "lats": "Leđni mišići",
- "cardio": "Kardio",
- "body_weight": "Tjelesna težina",
- "kilometers_per_hour": "Kilometara na sat",
- "miles_per_hour": "Milja na sat",
- "lb": "lb",
- "kg": "kg",
- "plates": "Ploče",
- "max_reps": "Maks. broj ponavljanja"
- },
- "submit": "Pošalji",
- "weight": "Težina",
- "workout": "Trening",
- "goBack": "Natrag",
- "language": "Jezik",
- "videos": "Videa",
- "cannotBeUndone": "Ova se radnja ne može poništiti.",
- "forms": {
- "supportedImageFormats": "Podržane su samo JPEG, PNG i WEBP datoteke manje od 20 Mb",
- "valueTooLong": "Vrijednost je predugačka",
- "valueTooShort": "Vrijednost je prekratka",
- "fieldRequired": "Ovo je obavezno polje",
- "maxLength": "Upiši manje od {{chars}} znakova",
- "minLength": "Upiši više od {{chars}} znakova",
- "minValue": "Vrijednost za ovo polje mora biti veća od {{value}}",
- "maxValue": "Vrijednost za ovo polje mora biti manja od {{value}}"
- },
- "English": "Engleski",
- "name": "Ime",
- "category": "Kategorija",
- "save": "Spremi",
- "cancel": "Odustani",
- "loading": "Učitavanje …",
- "description": "Opis",
- "translation": "Prijevod",
- "images": "Slike",
- "overview": "Pregled",
- "continue": "Nastavi",
- "success": "Uspjeh!",
- "routines": {
- "addDay": "Dodaj dan treninga",
- "addWeightLog": "Dodaj dnevnik treninga",
- "addLogToDay": "Dodaj dnevnik za ovaj dan",
- "routine": "Rutina",
- "routines": "Rutine",
- "logsFilterNote": "Napomena: prikazuju se samo unosi s jedinicom težine kg ili lb i ponavljanja, druge kombinacije kao što su vrijeme ili do neuspjeha se ovdje zanemaruju",
- "logsHeader": "Dnevnik treninga",
- "rir": "PUR"
- },
- "preferences": "Postavke",
- "notes": "Bilješke",
- "value": "Vrijednost",
- "unit": "Jedinica",
- "seeDetails": "Pogledaj detalje",
- "actions": "Radnje",
- "measurements": {
- "measurements": "Mjerenja",
- "unitFormHelpText": "Jedinica za mjerenje kategorije, npr. cm ili %",
- "deleteInfo": "Ovo će izbrisati kategoriju kao i sve njezine unose"
- },
- "deleteConfirmation": "Stvarno želiš izbrisati „{{name}}”?",
- "nutrition": {
- "percentEnergy": "Postotak energije",
- "fibres": "Balastne tvari",
- "saturatedFat": "Zasićena mast",
- "loggedToday": "Zapisano danas",
- "goalsTitle": "Ciljevi",
- "addMealItem": "Dodaj sastojak obroku",
- "sugar": "Šećer",
- "planned": "Planirano",
- "mealDeleteInfo": "Unosi u dnevniku prehrane se za ovaj obrok neće izbrisati i pojavit će se pod „Drugi zapisi”",
- "goalEnergy": "Cilj za energiju",
- "logged": "Zapisano",
- "logThisMeal": "Zapiši ovaj obrok u dnevnik prehrane",
- "valueEnergyKcal": "{{value}} kcal",
- "7dayAvg": "sedmodnevni prosjek",
- "ofWhichSugars": "od kojih šećeri",
- "ofWhichSaturated": "od kojih zasićene",
- "nutritionalDiary": "Dnevnik prehrane",
- "valueRemaining": "preostalo",
- "plan": "Plan prehrane",
- "valueTooMany": "previše",
- "logThisMealItem": "Zapiši ovaj sastojak u dnevnik prehrane",
- "kcal": "kcal",
- "planDeleteInfo": "Ovo će izbrisati i sve unose u dnevniku prehrane",
- "copyPlan": "Napravi kopiju ovog plana",
- "plans": "Planovi prehrane",
- "others": "Drugo",
- "useGoalsHelpTextLong": "To omogućuje postavljanje općih ciljeva za energiju, proteine, ugljikohidrate ili masti za plan. Napomena: ako postaviš detaljan plan obroka, ove će vrijednosti imati prioritet.",
- "difference": "Razlika",
- "protein": "Proteini",
- "addNutritionalDiary": "Dodaj unos u dnevnik prehrane",
- "today": "Danas",
- "onlyLoggingHelpText": "Prati samo kalorije. Označi polje ako samo želiš zapisivati svoje kalorije bez postavljanja detaljnog plana prehrane s određenim obrocima",
- "fat": "Masti",
- "gPerBodyKg": "g po kg težine",
- "goalProtein": "Cilj za proteine",
- "valueEnergyKcalKj": "{{kcal}} kcal / {{kj}} kJ",
- "goalFat": "Cilj za mast",
- "meal": "Obrok",
- "goalCarbohydrates": "Cilj za ugljikohidrate",
- "diaryEntrySaved": "Unos u dnevnik je uspješno spremljen",
- "energy": "Energija",
- "useGoalsHelpText": "Dodaj ciljeve ovom planu",
- "addMeal": "Dodaj obrok",
- "carbohydrates": "Ugljikohidrati",
- "macronutrient": "Makronutrijent",
- "gramShort": "g",
- "searchIngredientName": "Traži prema imenu sastojka",
- "sodium": "Natrij",
- "pseudoMealTitle": "Drugi zapisi",
- "goalFiber": "Cilj za vlakna"
- },
- "downloadAsPdf": "Preuzmi kao PDF",
- "total": "Ukupno",
- "alsoSearchEnglish": "Također traži imena na engleskom jeziku",
- "timeOfDay": "Vrijeme dana",
- "nothingHereYet": "Ovdje još nema ničega …",
- "nothingHereYetAction": "Počni pritiskom gumba radnje",
- "copyToClipboard": "Kopiraj u međuspremnik",
- "licenses": {
- "authorProfile": "Poveži na web stranicu autora ili profil, ako postoji",
- "originalObjectUrl": "Poveži na web stranicu izvora, ako postoji",
- "originalTitle": "Naslov",
- "authors": "Autori",
- "derivativeSourceUrl": "Poveži na izvorni izvor, ako je ovo izvedeno djelo",
- "derivativeSourceUrlHelper": "Izvedeni rad koji se ne temelji samo na prethodnom radu, te sadrži dovoljno novog, kreativnog sadržaja ima pravo na vlastito autorsko pravo."
- },
- "filters": "Filtri",
- "height": "Visina",
- "cm": "cm",
- "all": "Sve",
- "lastYear": "Prošla godina",
- "lastMonth": "Prošli mjesec",
- "lastWeek": "Prošli tjedan",
- "bmi": {
- "calculator": "Kalkulator indeksa tjelesne mase",
- "obese": "Pretilost",
- "overweight": "Prekomjerna težina",
- "normal": "Normalna težina",
- "underweight": "Nedovoljna težina",
- "result": "Tvoj indeks tjelesne mase je {{value}}"
- },
- "lastHalfYear": "Prošlih 6 mjeseci",
- "calendar": "Kalendar",
- "entries": "Unosi",
- "no_entries_for_day": "Nema unosa za ovaj dan",
- "editName": "Uredi {{ime}}",
- "start": "Start",
- "end": "Kraj",
- "comment": "Komentari"
-}
diff --git a/wger/core/static/react/locales/it/translation.json b/wger/core/static/react/locales/it/translation.json
deleted file mode 100644
index 24203c3ca..000000000
--- a/wger/core/static/react/locales/it/translation.json
+++ /dev/null
@@ -1,338 +0,0 @@
-{
- "add": "Aggiungi",
- "addEntry": "Aggiungi voce",
- "currentWeight": "Peso attuale",
- "date": "Data",
- "days": "Giorni",
- "delete": "Elimina",
- "difference": "Differenza",
- "edit": "Modifica",
- "exercises": {
- "alsoKnownAs": "Conosciuto anche come:",
- "category": "Categoria",
- "contributeExercise": "Suggerisci un esercizio",
- "description": "Descrizione",
- "equipment": "Attrezzatura",
- "exercises": "Esercizi",
- "missingExercise": "Ti manca un certo esercizio?",
- "missingExerciseDescription": "Aiuta la comunità contribuendo!",
- "muscles": "Muscoli",
- "noEquipment": "Senza attrezzatura",
- "notes": "Note",
- "primaryMuscles": "Muscoli primari",
- "searchExerciseName": "Cerca per nome dell'esercizio",
- "secondaryMuscles": "Muscoli secondari",
- "deleteTranslation": "Elimina la traduzione",
- "deleteExerciseFull": "Cancella tutto l'esercizio",
- "exerciseNotTranslated": "Nessuna traduzione disponibile",
- "notEnoughRightsHeader": "Non puoi contribuire agli esercizi",
- "notEnoughRights": "Puoi contribuire agli esercizi solo se il tuo account è più vecchio di {{days}} giorni e hai verificato il tuo indirizzo mail",
- "alternativeNames": "Nomi alternativi",
- "changeExerciseLanguage": "Modifica la lingua dell'esercizio",
- "filterVariations": "Inserisci il nome dell'esercizio per filtrare le varianti",
- "translateExerciseNow": "Traduci l'esercizio adesso",
- "compatibleImagesCC": "Le immagini devono essere compatibili con la licenza CC BY SA. In caso di dubbi, inserisci una foto che hai fatto personalmente.",
- "submitExercise": "Invia esercizio",
- "whatVariationsExist": "Quali varianti di questo esercizio esistono, se ce ne sono ?",
- "variations": "Variazioni",
- "identicalExercisePleaseDiscard": "Se noti un esercizio identico a quello che stai aggiungendo, elimina la bozza e modifica invece quell'esercizio.",
- "checkInformationBeforeSubmitting": "Per favore controlla che le informazioni inserite siano corrette prima di confermare l'esercizio",
- "step1HeaderBasics": "Nozioni di base in inglese",
- "replacements": "Sostituzioni",
- "newNote": "Nuova nota",
- "identicalExercise": "Evita esercizi duplicati",
- "successfullyUpdated": "L'esercizio è stato aggiornato con successo. A causa della memorizzazione nella cache, potrebbe essere necessario del tempo prima che le modifiche siano visibili in tutta l'applicazione.",
- "notesHelpText": "Le note sono brevi commenti su come eseguire l'esercizio, ad esempio \"mantieni il corpo dritto\"",
- "basics": "Nozioni di base",
- "replacementsInfoText": "Facoltativamente, puoi anche selezionare un esercizio che puó sostituire il presente(ad esempio perché è stato inviato due volte o simile). Si sostituirà l'esercizio nelle routine e nei registri di allenamento, invece di eliminarlo semplicemente. Queste modifiche si propagheranno a qualsiasi istanza che sincronizzerà gli esercizi.",
- "exerciseNotTranslatedBody": "Questo esercizio al momento non è disponibile nella lingua selezionata. Vuoi contribuire con una traduzione?",
- "cacheWarning": "A causa della memorizzazione nella cache, potrebbe essere necessario del tempo prima che le modifiche siano visibili in tutta l'applicazione.",
- "deleteExerciseReplace": "Elimina e sostituisci",
- "deleteExerciseBody": "Vuoi eliminare l'esercizio \"{{name}}\"? Puoi eliminare la traduzione corrente in {{lingua}} o l'esercizio completo con tutte le traduzioni, immagini, ecc.",
- "replacementsSearch": "Cerca un esercizio oppure copia e incolla un ID conosciuto nel campo e clicca sul pulsante \"carica\".",
- "noReplacementSelected": " Nessun esercizio selezionato per la sostituzione",
- "imageStylePhoto": "Foto",
- "imageStyle3D": "3D",
- "imageStyleLowPoly": "Basso numero di poligoni",
- "imageStyleOther": "Altro",
- "imageDetails": "Dettagli immagine",
- "imageStyleLine": "Linea",
- "swapExercise": "Esercizio di scambio"
- },
- "noResults": "Nessun risultato",
- "noResultsDescription": "Nessun risultato trovato. Prova a ridurre i termini di ricerca.",
- "nutritionalPlan": "Piano nutrizionale",
- "server": {
- "arms": "Braccia",
- "back": "Schiena",
- "barbell": "Bilanciere",
- "bench": "Panca",
- "calves": "Polpacci",
- "chest": "Petto",
- "dumbbell": "Manubrio",
- "gym_mat": "Materassino",
- "incline_bench": "Panca inclinata",
- "kettlebell": "Ghiria",
- "kilometers": "Kilometri",
- "legs": "Gambe",
- "miles": "Miglia",
- "minutes": "Minuti",
- "none_(bodyweight_exercise)": "nessuno (esercizio a corpo libero)",
- "pull-up_bar": "Barra per trazioni",
- "repetitions": "Ripetizioni",
- "seconds": "Secondi",
- "shoulders": "Spalle",
- "swiss_ball": "Palla da ginnastica",
- "sz-bar": "SZ bar",
- "until_failure": "A sfinimento",
- "biceps": "Bicipiti",
- "cardio": "Cardio",
- "glutes": "Glutei",
- "hamstrings": "Bicipiti femorali",
- "max_reps": "Ripetizioni massime",
- "miles_per_hour": "Miglia all'ora",
- "plates": "Dischi",
- "pull_up_bar": "Barra per le trazioni",
- "sz_bar": "Bilanciere SZ",
- "kg": "kg",
- "lb": "lb",
- "none__bodyweight_exercise_": "nessuno (esercizio a corpo libero)",
- "abs": "Addominali",
- "lats": "Gran dorsale",
- "quads": "Quadricipiti",
- "body_weight": "Peso corporeo",
- "triceps": "Tricipiti",
- "kilometers_per_hour": "Chilometri all'ora"
- },
- "submit": "Invia",
- "weight": "Peso",
- "workout": "Allenamento",
- "description": "Descrizione",
- "save": "Salva",
- "category": "Categoria",
- "name": "Nome",
- "loading": "Caricamento…",
- "actions": "Azioni",
- "seeDetails": "Vedere dettagli",
- "deleteConfirmation": "Sei sicuro di voler cancellare \"{{name}}\"?",
- "notes": "Note",
- "value": "Valore",
- "unit": "Unità",
- "close": "Chiudi",
- "nothingHereYet": "Qui non c'è ancora nulla ...",
- "alsoSearchEnglish": "Cerca anche nomi in inglese",
- "timeOfDay": "Ora del giorno",
- "copyToClipboard": "Copia negli appunti",
- "nothingHereYetAction": "Premi il pulsante di azione per iniziare",
- "nutrition": {
- "percentEnergy": "Percentuale di energia",
- "fibres": "Fibre",
- "saturatedFat": "Grassi saturi",
- "loggedToday": "Registrato oggi",
- "goalsTitle": "Obiettivi",
- "addMealItem": "Aggiungi ingredienti al pasto",
- "sugar": "Zucchero",
- "planned": "Pianificato",
- "mealDeleteInfo": "Le voci del diario nutrizionale relative a questo pasto non verranno eliminate e verranno visualizzate in \"altri registri\"",
- "goalEnergy": "Obiettivo energetico",
- "logged": "Registrato",
- "logThisMeal": "Registra questo pasto così com'è nel diario nutrizionale",
- "valueEnergyKcal": "{{value}} kcal",
- "7dayAvg": "media di 7 giorni",
- "ofWhichSugars": "di cui zuccheri",
- "ofWhichSaturated": "di cui saturi",
- "nutritionalDiary": "Diario nutrizionale",
- "valueRemaining": "residuo",
- "plan": "Piano nutrizionale",
- "valueTooMany": "Troppo",
- "logThisMealItem": "Registra questo ingrediente così com'è nel diario nutrizionale",
- "kcal": "kcal",
- "planDeleteInfo": "Eliminerà anche tutte le voci del diario nutrizionale",
- "copyPlan": "Fai una copia di questo piano",
- "plans": "Piani nutrizionali",
- "others": "Altri",
- "useGoalsHelpTextLong": "Ciò consente di impostare obiettivi generali per energia, proteine, carboidrati o grassi per il piano. Tieni presente che se imposti un piano alimentare dettagliato, questi valori avranno la precedenza.",
- "difference": "Differenza",
- "protein": "Proteina",
- "addNutritionalDiary": "Aggiungi una voce al diario nutrizionale",
- "today": "Oggi",
- "onlyLoggingHelpText": "Tieni traccia solo delle calorie. Seleziona la casella se desideri registrare solo le calorie e non vuoi impostare un piano nutrizionale dettagliato con pasti specifici",
- "fat": "Grasso",
- "gPerBodyKg": "g per kg-corporeo",
- "goalProtein": "Obiettivo proteico",
- "valueEnergyKcalKj": "{{kcal}} kcal / {{kj}} kJ",
- "goalFat": "Obiettivo grasso",
- "meal": "Pasto",
- "goalCarbohydrates": "Obiettivo carboidrati",
- "diaryEntrySaved": "Voce del diario salvata con successo",
- "energy": "Energia",
- "useGoalsHelpText": "Aggiungi obiettivi a questo piano",
- "addMeal": "Aggiungi pasto",
- "carbohydrates": "Carboidrati",
- "macronutrient": "Macronutriente",
- "gramShort": "g",
- "searchIngredientName": "Cerca per nome dell'ingrediente",
- "sodium": "Sodio",
- "pseudoMealTitle": "Altri registri",
- "goalFiber": "Obiettivo fibre"
- },
- "images": "Immagini",
- "downloadAsPdf": "Scarica come PDF",
- "total": "Totale",
- "preferences": "Preferenze",
- "continue": "Continua",
- "translation": "Traduzione",
- "overview": "Panoramica",
- "language": "Lingua",
- "forms": {
- "valueTooLong": "Il valore è troppo lungo",
- "fieldRequired": "Questo campo è richiesto",
- "minLength": "Per favore inserisci più di {{chars}} caratteri",
- "supportedImageFormats": "Sono supportati solo file JPEG, PNG e WEBP al di sotto dei 20Mb",
- "valueTooShort": "Il valore è troppo corto",
- "maxLength": "Per favore inserisci meno di {{chars}} caratteri",
- "maxValue": "Il valore di questo campo deve essere minore di {{value}}",
- "minValue": "Il valore di questo campo deve essere maggiore di {{value}}",
- "enterNumber": "Inserisci un numero valido",
- "enterInteger": "Inserisci un numero intero",
- "maxLessThanMin": "Il valore massimo deve essere più grande del minimo",
- "endBeforeStart": "Il valore finale non può precedere quello iniziale"
- },
- "goBack": "Indietro",
- "licenses": {
- "authorProfile": "Link al sito web o al profilo dell'autore, se disponibile",
- "derivativeSourceUrl": "Link alla risorsa originale, se è un'opera derivata",
- "derivativeSourceUrlHelper": "Tieni presente che un'opera derivata è un'opera che non solo si basa solo su un'opera precedente, ma che contiene anche contenuti nuovi e creativi a sufficienza per darle diritto al proprio copyright.",
- "originalObjectUrl": "Link al sito web della fonte, se disponibile",
- "originalTitle": "Titolo",
- "authors": "Autore(i)"
- },
- "cancel": "Annulla",
- "routines": {
- "routine": "Routine",
- "routines": "Routine",
- "rir": "RiR",
- "addDay": "Aggiungi giorno di allenamento",
- "addLogToDay": "Aggiungi registro a questo giorno",
- "logsFilterNote": "Tieni presente che vengono tracciate solo le voci con un'unità di peso di kg o lb e le ripetizioni, altre combinazioni come il tempo o fino allo cedimento qui vengono ignorate",
- "logsHeader": "Registro di allenamento per l'allenamento",
- "addWeightLog": "Aggiungi registro di allenamento",
- "iteration": "Iterazione",
- "weekly": "Settimanale",
- "daily": "Quotidiano",
- "restTime": "Tempo di riposo",
- "deleteDayConfirmation": "Questo rimuoverà tutti i set, gli esercizi e le regole di progressione",
- "routineHasNoDays": "La routine non ha giorni",
- "setHasNoExercises": "Questo set non ha esercizi",
- "fitDaysInWeek": "Giorni in forma nella settimana",
- "fitDaysInWeekHelpText": "Questa impostazione controlla la programmazione dei giorni della tua routine su più settimane. Se abilitata, i giorni si ripeteranno in un ciclo settimanale. Ad esempio, una routine con allenamenti il lunedì, mercoledì e venerdì continuerà con questo schema il lunedì, mercoledì e venerdì successivi. Se disabilitata, i giorni si susseguiranno in sequenza, indipendentemente dall'inizio di una nuova settimana. Questa opzione è utile per le routine che non seguono un programma settimanale rigido.",
- "needsLogsToAdvance": "Ha bisogno di registri per avanzare",
- "needsLogsToAdvanceHelpText": "Se selezioni questa opzione, la routine passerà al giorno successivo programmato solo se hai registrato un allenamento per il giorno corrente. Se questa opzione non è selezionata, la routine passerà automaticamente al giorno successivo, indipendentemente dal fatto che tu abbia registrato o meno un allenamento.",
- "simpleMode": "Modalità semplice",
- "workoutSession": "Sessione di allenamento",
- "restDay": "Giorno di riposo",
- "confirmRestDay": "Conferma la modifica del giorno di riposo",
- "confirmRestDayHelpText": "Tieni presente che tutte le serie e gli esercizi verranno rimossi quando contrassegni un giorno come giorno di riposo.",
- "duplicate": "Routine duplicata",
- "downloadPdfTable": "Scarica PDF (tabella)",
- "downloadPdfLogs": "Scarica PDF (registri)",
- "downloadIcal": "Scarica il file iCal",
- "impression": "Impressione generale",
- "impressionGood": "Bene",
- "impressionNeutral": "Neutro",
- "impressionBad": "Male",
- "impressionHelpText": "Questo modulo registra i risultati del tuo allenamento (ripetizioni, peso, ecc.) per ogni esercizio. Le modifiche apportate qui, come la rimozione o lo scambio di esercizi, influiscono solo sui registri specifici salvati e non modificano la routine complessiva. Vengono salvate solo le righe con i valori relativi al peso o alle ripetizioni.",
- "addAdditionalLog": "Aggiungi ulteriore registro",
- "operation": "Operazione",
- "requirements": "Requisiti",
- "requirementsHelpText": "Seleziona i risultati dell'allenamento (dai registri precedenti) che devono essere soddisfatti affinché questa regola abbia effetto",
- "repeatHelpText": "Seleziona la casella di controllo se desideri che questa regola continui ad applicarsi agli allenamenti successivi finché non ne definisci una nuova",
- "template": "Modello",
- "templates": "Modelli",
- "publicTemplate": "Modello pubblico",
- "publicTemplates": "Modelli pubblici",
- "templatesHelpText": "I modelli sono un modo per salvare la routine per un utilizzo futuro e come punto di partenza per altre routine. Non è possibile modificare i modelli, ma è possibile duplicarli e apportare modifiche alla copia (oltre a riconvertirli in una routine normale, ovviamente).",
- "publicTemplateHelpText": "I modelli pubblici sono disponibili a tutti gli utenti.",
- "copyAndUseTemplate": "Copia e utilizza il modello",
- "set": {
- "type": "Tipo",
- "normalSet": "Set normale",
- "dropSet": "Set di rilascio",
- "partial": "Parziale",
- "myo": "Serie MYO",
- "forced": "Forzato",
- "tut": "Tempo sotto tensione",
- "iso": "Isometrico",
- "jump": "Salto"
- },
- "sets": "Serie",
- "reps": "Ripetizioni",
- "volume": "Volume",
- "intensity": "Intensità",
- "currentRoutine": "Programma attuale",
- "workoutNr": "Allenamento Nr. {{number}}",
- "weekNr": "Settimana {{number}}",
- "backToRoutine": "Torna al programma",
- "minLengthRoutine": "Il programma deve durare almeno {{number}} settimane",
- "maxLengthRoutine": "Il programma può durare massimo {{number}} settimane",
- "addSuperset": "Aggiungi serie combinata",
- "addExercise": "Aggiungi esercizio",
- "exerciseNr": "Esercizio {{number}}",
- "supersetNr": "Serie combinata {{number}}",
- "editProgression": "Modifica avanzamento",
- "progressionNeedsReplace": "Una delle voci precedenti deve avere un'operazione di sostituzione",
- "exerciseHasProgression": "Questo esercizio ha regole di progressione e non può essere modificato qui. Per farlo, clicca il bottone.",
- "defaultRounding": "Arrotondamento predefinito",
- "rounding": "Arrotondamento (per questo esercizio)",
- "roundingHelp": "Imposta l'arrotondamento predefinito per peso e ripetizioni (particolarmente utile quando si utilizza l’aumento percentuale nella progressione). Verrà applicato a tutte le nuove serie, ma potrà essere modificato singolarmente nel modulo della progressione. Lascia vuoto per disattivare l'arrotondamento.",
- "newDay": "Nuovo giorno",
- "weightLogNotPlanned": "Salvataggio dei log in una data senza allenamenti programmati.",
- "logsOverview": "Panoramica dei log",
- "alsoShowLogs": "Mostra anche logs",
- "statsOverview": "Statistiche",
- "step": "Fase",
- "repeat": "Impostazione di ripetizione",
- "markAsTemplate": "Gestisci template",
- "resultingRoutine": "Risultato routine"
- },
- "measurements": {
- "deleteInfo": "Ciò eliminerà la categoria e tutte le sue voci",
- "measurements": "Misure",
- "unitFormHelpText": "L'unità in cui la categoria verrà misurata, come cm o %"
- },
- "success": "Completato!",
- "cannotBeUndone": "L'azione non può essere annullata.",
- "English": "Inglese",
- "videos": "Video",
- "calendar": "Calendario",
- "entries": "Voci",
- "no_entries_for_day": "Nessuna voce per questo giorno",
- "height": "Altezza",
- "cm": "cm",
- "all": "Tutto",
- "lastYear": "Ultimo Anno",
- "lastHalfYear": "Ultimi 6 mesi",
- "lastMonth": "Ultimo mese",
- "lastWeek": "Ultima settimana",
- "start": "Inizia",
- "end": "Fine",
- "editName": "Modifica {{name}}",
- "comment": "Commento",
- "filters": "Filtri",
- "bmi": {
- "calculator": "Calcolatore IMC",
- "overweight": "Sovrappeso",
- "obese": "Obeso",
- "normal": "Peso normale",
- "underweight": "Sottopeso",
- "result": "Il tuo IMC è {{value}}"
- },
- "min": "Min",
- "max": "Max",
- "durationWeeks": "{{number}} settimane",
- "durationWeeksDays": "{{nrWeeks}} settimane, {{nrDays}} giorni",
- "undo": "Annulla",
- "successfullyDeleted": "Eliminato con successo",
- "private": "Privato",
- "public": "Pubblico"
-}
diff --git a/wger/core/static/react/locales/ko/translation.json b/wger/core/static/react/locales/ko/translation.json
deleted file mode 100644
index c2b76a0fb..000000000
--- a/wger/core/static/react/locales/ko/translation.json
+++ /dev/null
@@ -1,331 +0,0 @@
-{
- "exercises": {
- "alternativeNames": "대체 이름",
- "filterVariations": "변형을 필터링하려면 운동 이름을 입력하세요",
- "notes": "메모",
- "replacements": "교체품",
- "whatVariationsExist": "이 운동에는 어떤 변형이 있나요?",
- "basics": "기본",
- "identicalExercise": "중복된 운동을 피하세요",
- "submitExercise": "운동 제출",
- "exerciseNotTranslatedBody": "이 운동은 현재 선택된 언어로 제공되지 않습니다. 번역을 원하시나요?",
- "alsoKnownAs": "다음으로도 알려진:",
- "primaryMuscles": "주 근육",
- "deleteExerciseReplace": "삭제 및 변경",
- "exercises": "운동",
- "changeExerciseLanguage": "이 운동의 언어를 변경하세요",
- "missingExerciseDescription": "기여하여 커뮤니티에 도움을 주세요!",
- "imageStyleLowPoly": "Low-Poly",
- "imageStyleOther": "기타",
- "imageDetails": "이미지 세부정보",
- "noReplacementSelected": " 교체를 위해 선택된 운동이 없습니다",
- "muscles": "근육",
- "imageStylePhoto": "사진",
- "replacementsInfoText": "선택적으로, 이 운동을 대체할 운동을 선택할 수도 있습니다(예: 두 번 제출된 운동 등). 이렇게 하면 운동이 삭제되는 것이 아니라 루틴과 훈련 기록에도 해당 운동이 대체됩니다. 이러한 변경 사항은 이 운동과 동기화되는 모든 인스턴스에도 적용됩니다.",
- "deleteTranslation": "번역 삭제",
- "replacementsSearch": "운동을 검색하거나 알려진 ID를 필드에 복사하여 붙여넣고 \"불러오기\" 버튼을 클릭하세요.",
- "contributeExercise": "운동에 기여하다",
- "step1HeaderBasics": "영어를 기본으로",
- "variations": "변형",
- "notEnoughRights": "계정이 {{days}}일 이상 경과하고 이메일을 인증한 경우에만 운동에 참여할 수 있습니다",
- "notEnoughRightsHeader": "운동에 기여할 수 없습니다",
- "identicalExercisePleaseDiscard": "추가하려는 운동과 동일한 운동이 있는 경우, 초안을 삭제하고 대신 해당 운동을 편집하세요.",
- "newNote": "새 메모",
- "secondaryMuscles": "이차 근육",
- "successfullyUpdated": "운동이 성공적으로 업데이트되었습니다. 캐싱으로 인해 변경 사항이 애플리케이션 전체에 표시될 때까지 시간이 걸릴 수 있습니다.",
- "equipment": "장비",
- "translateExerciseNow": "지금 이 운동을 번역하세요",
- "noEquipment": "장비 없음",
- "compatibleImagesCC": "이미지는 CC BY SA 라이선스를 준수해야 합니다. 확실하지 않은 경우 직접 촬영한 사진만 업로드하세요.",
- "checkInformationBeforeSubmitting": "제출하기 전에 입력하신 정보가 정확한지 확인해 주세요",
- "swapExercise": "운동 바꾸기",
- "cacheWarning": "캐싱으로 인해 변경 사항이 애플리케이션 전체에 표시될 때까지 시간이 걸릴 수 있습니다.",
- "description": "설명",
- "exerciseNotTranslated": "번역이 가능하지 않습니다",
- "deleteExerciseBody": "\"{{name}}\" 운동을 삭제하시겠습니까? 현재 {{language}} 번역을 삭제하거나 모든 번역, 이미지 등이 포함된 운동 전체를 삭제할 수 있습니다.",
- "deleteExerciseFull": "전체 운동 삭제",
- "missingExercise": "특정 운동을 놓치셨나요?",
- "searchExerciseName": "운동명으로 검색",
- "notesHelpText": "메모는 \"몸을 똑바로 유지하세요\"와 같이 운동을 수행하는 방법에 대한 짧은 설명입니다",
- "imageStyle3D": "3D",
- "imageStyleLine": "줄"
- },
- "forms": {
- "valueTooLong": "값이 너무 깁니다",
- "minLength": "{{chars}}자 이상을 입력하세요",
- "endBeforeStart": "종료 값은 시작 값보다 앞서 있을 수 없습니다",
- "enterNumber": "유효한 숫자를 입력하세요",
- "maxLength": "{{chars}}자 이하로 입력해 주세요",
- "fieldRequired": "필수 입력항목입니다",
- "valueTooShort": "값이 너무 짧습니다",
- "supportedImageFormats": "20Mb 이하의 JPEG, PNG 및 WEBP 파일만 지원됩니다",
- "enterInteger": "정수를 입력하세요",
- "minValue": "이 필드의 값은 {{value}}보다 커야 합니다",
- "maxValue": "이 필드의 값은 {{value}}보다 작아야 합니다",
- "maxLessThanMin": "최대값은 최소값보다 커야 합니다"
- },
- "unit": "단위",
- "nutrition": {
- "ofWhichSugars": "그 중 설탕",
- "goalsTitle": "목표",
- "useGoalsHelpText": "이 계획에 목표 추가",
- "goalProtein": "단백질 목표",
- "goalCarbohydrates": "탄수화물 목표",
- "addNutritionalDiary": "영양일기 항목 추가",
- "nutritionalDiary": "영양 일기",
- "gramShort": "g",
- "kcal": "kcal",
- "searchIngredientName": "성분명으로 검색해보세요",
- "percentEnergy": "에너지 비율",
- "gPerBodyKg": "체중 kg당 g",
- "today": "오늘",
- "protein": "단백질",
- "carbohydrates": "탄수화물",
- "sugar": "설탕",
- "saturatedFat": "포화지방",
- "pseudoMealTitle": "기타 로그",
- "others": "기타",
- "fibres": "섬유질",
- "sodium": "나트륨",
- "planDeleteInfo": "이렇게 하면 모든 영양 일기 항목도 삭제됩니다",
- "diaryEntrySaved": "일기 항목이 성공적으로 저장되었습니다",
- "logThisMeal": "이 식사를 그대로 영양 일지에 기록하세요",
- "valueRemaining": "남은",
- "valueTooMany": "너무 많은",
- "energy": "에너지",
- "valueEnergyKcal": "{{value}} kcal",
- "goalFat": "지방 목표",
- "addMeal": "식사 추가",
- "plans": "영양 계획",
- "copyPlan": "이 계획의 사본을 만드세요",
- "fat": "지방",
- "meal": "식사",
- "planned": "예정",
- "plan": "영양 계획",
- "goalEnergy": "에너지 목표",
- "goalFiber": "섬유질 목표",
- "onlyLoggingHelpText": "칼로리만 추적합니다. 칼로리만 기록하고 특정 식사에 대한 자세한 영양 계획을 세우고 싶지 않으면 이 상자를 선택하세요",
- "useGoalsHelpTextLong": "이를 통해 에너지, 단백질, 탄수화물, 지방에 대한 일반적인 목표를 설정할 수 있습니다. 자세한 식사 계획을 세우는 경우, 이 목표가 우선적으로 적용됩니다.",
- "addMealItem": "식사에 재료 추가",
- "mealDeleteInfo": "이 식사에 대한 영양 일지 항목은 삭제되지 않으며 \"다른 로그\"에 표시됩니다",
- "7dayAvg": "7일 평균",
- "valueEnergyKcalKj": "{{kcal}} kcal / {{kj}} kJ",
- "macronutrient": "다량 영양소",
- "logged": "기록됨",
- "loggedToday": "오늘 기록",
- "difference": "차이점",
- "logThisMealItem": "이 성분을 그대로 영양 일지에 기록하세요",
- "ofWhichSaturated": "그 중 포화된"
- },
- "save": "저장",
- "routines": {
- "needsLogsToAdvanceHelpText": "이 옵션을 선택하면 당일 운동을 기록한 경우에만 다음 예정일로 루틴이 진행됩니다. 이 옵션을 선택하지 않으면 운동 기록 여부와 관계없이 루틴이 자동으로 다음 날로 진행됩니다.",
- "roundingHelp": "무게와 반복 횟수에 대한 기본 반올림을 설정합니다(특히 진행 과정에서 백분율 증가 단계를 사용할 때 유용합니다). 이 설정은 모든 새 세트에 적용되지만 진행 양식에서 개별적으로 변경할 수 있습니다. 반올림을 사용하지 않으려면 비워 두세요.",
- "sets": "세트",
- "reps": "랩스",
- "currentRoutine": "현재 루틴",
- "iteration": "반복",
- "weekly": "주간",
- "daily": "일간",
- "addDay": "훈련일 추가",
- "deleteDayConfirmation": "이렇게 하면 모든 세트, 운동 및 진행 규칙이 제거됩니다",
- "routineHasNoDays": "이 루틴에는 요일이 없습니다",
- "setHasNoExercises": "이 세트에는 운동이 없습니다",
- "exerciseNr": "{{number}}번 운동",
- "supersetNr": "{{number}}개 수퍼세트",
- "editProgression": "진행 상황 편집",
- "defaultRounding": "기본 반올림",
- "newDay": "새로운 날",
- "addWeightLog": "훈련 로그 추가",
- "statsOverview": "통계",
- "addLogToDay": "이 날짜에 로그 추가",
- "routine": "루틴",
- "duplicate": "중복된 루틴",
- "impressionNeutral": "중립적",
- "set": {
- "dropSet": "세트 포기",
- "myo": "MYO",
- "tut": "TUT",
- "iso": "ISO",
- "jump": "점프",
- "partial": "부분",
- "type": "유형",
- "normalSet": "일반 세트",
- "forced": "강제"
- },
- "markAsTemplate": "템플릿 관리",
- "confirmRestDay": "휴무일 변경 확인",
- "resultingRoutine": "결과 루틴",
- "templatesHelpText": "템플릿은 나중에 사용할 루틴을 저장하고, 향후 루틴을 위한 시작점으로 활용할 수 있는 방법입니다. 템플릿을 편집할 수는 없지만, 복제하여 복사본을 변경할 수 있습니다(물론 일반 루틴으로 다시 변환할 수도 있습니다).",
- "intensity": "강함",
- "weekNr": "{{number}} 주",
- "logsOverview": "로그 개요",
- "downloadPdfTable": "PDF 다운로드(표)",
- "templates": "템플릿",
- "volume": "볼륨",
- "minLengthRoutine": "루틴은 최소 {{number}}주 동안 지속되어야 합니다",
- "copyAndUseTemplate": "템플릿 복사 및 사용",
- "simpleMode": "단순 모드",
- "restTime": "휴식 시간",
- "workoutNr": "운동 Nr. {{number}}",
- "impressionBad": "나쁜",
- "step": "스탭",
- "requirements": "요구사항",
- "template": "템플릿",
- "backToRoutine": "루틴으로 돌아가기",
- "exerciseHasProgression": "이 연습에는 진행 규칙이 있으므로 여기서는 편집할 수 없습니다. 편집하려면 버튼을 클릭하세요.",
- "maxLengthRoutine": "루틴은 최대 {{number}}주 동안 지속될 수 있습니다",
- "publicTemplates": "공용 템플릿",
- "fitDaysInWeek": "일주일에 맞는 요일",
- "addExercise": "운동 추가",
- "fitDaysInWeekHelpText": "이 설정은 여러 주에 걸쳐 루틴의 요일이 어떻게 예약되는지 제어합니다. 이 설정을 활성화하면 요일이 주 단위로 반복됩니다. 예를 들어, 월요일, 수요일, 금요일에 운동하는 루틴은 다음 주 월요일, 수요일, 금요일에도 같은 패턴으로 진행됩니다. 이 설정을 비활성화하면 새로운 주의 시작 여부와 관계없이 요일이 순차적으로 진행됩니다. 이 설정은 엄격한 주간 일정을 따르지 않는 루틴에 유용합니다.",
- "needsLogsToAdvance": "진행하려면 로그가 필요합니다",
- "addSuperset": "슈퍼세트 추가",
- "alsoShowLogs": "로그도 표시",
- "progressionNeedsReplace": "이전 항목 중 하나에 바꾸기 작업이 있어야 합니다",
- "rounding": "반올림(이 운동만)",
- "weightLogNotPlanned": "운동을 계획하지 않은 날짜까지 로그를 저장합니다.",
- "rir": "RiR",
- "repeat": "반복 규칙",
- "restDay": "휴식",
- "logsHeader": "운동을 위한 훈련 로그",
- "logsFilterNote": "kg 또는 lb의 무게 단위와 반복 횟수를 갖는 항목만 차트에 표시되며 시간이나 실패할 때까지와 같은 다른 조합은 여기에서 무시됩니다",
- "operation": "작업",
- "downloadIcal": "iCal 파일 다운로드",
- "repeatHelpText": "새 규칙을 정의할 때까지 이 규칙이 후속 운동에 계속 적용되도록 하려면 확인란을 선택하십시오",
- "routines": "루틴",
- "confirmRestDayHelpText": "휴식일로 표시하면 모든 세트와 운동이 삭제됩니다.",
- "impressionGood": "좋은",
- "workoutSession": "운동 세션",
- "downloadPdfLogs": "PDF 다운로드(로그)",
- "impression": "일반적인 인상",
- "addAdditionalLog": "추가 로그 추가",
- "impressionHelpText": "이 양식은 각 운동에 대한 운동 결과(반복 횟수, 중량 등)를 기록합니다. 운동 삭제 또는 교체와 같은 변경 사항은 저장된 특정 기록에만 적용되며 전체 루틴에는 영향을 미치지 않습니다. 중량 또는 반복 횟수 값이 있는 행만 저장됩니다.",
- "requirementsHelpText": "이 규칙이 적용되려면 충족해야 하는 운동 결과(이전 로그에서)를 선택하세요",
- "publicTemplate": "공개 템플릿",
- "publicTemplateHelpText": "공개 템플릿은 모든 사용자가 사용할 수 있습니다."
- },
- "server": {
- "chest": "가슴",
- "arms": "팔",
- "kilometers_per_hour": "km/h",
- "lats": "Lats",
- "minutes": "분",
- "plates": "플레이트",
- "sz_bar": "SZ 바",
- "swiss_ball": "스위스볼",
- "kg": "kg",
- "biceps": "이두근",
- "triceps": "삼두근",
- "back": "뒤로",
- "dumbbell": "덤벨",
- "lb": "lb",
- "seconds": "초",
- "calves": "장딴지",
- "pull_up_bar": "풀업 바",
- "miles_per_hour": "mi/h",
- "shoulders": "어깨",
- "barbell": "바벨",
- "body_weight": "체중",
- "gym_mat": "체육관 매트",
- "until_failure": "실패할 때까지",
- "glutes": "엉덩이",
- "hamstrings": "햄스트링",
- "bench": "벤치프레스",
- "abs": "복근",
- "kettlebell": "케틀벨",
- "legs": "다리",
- "cardio": "심장강화",
- "incline_bench": "인클라인 벤치",
- "kilometers": "킬로미터",
- "miles": "마일스",
- "repetitions": "반복",
- "quads": "쿼드",
- "none__bodyweight_exercise_": "없음(체중 운동)"
- },
- "nothingHereYetAction": "시작하려면 작업 버튼을 누르세요",
- "licenses": {
- "derivativeSourceUrlHelper": "파생 작품이란 단순히 기존 작품을 기반으로 하는 것이 아니라, 그 자체로 저작권을 가질 만큼 충분히 새롭고 창의적인 콘텐츠를 포함하는 작품을 말합니다.",
- "authors": "작성자",
- "originalTitle": "제목",
- "derivativeSourceUrl": "이것이 파생 작품인 경우 원본 소스에 대한 링크를 제공하십시오",
- "authorProfile": "가능한 경우 저자 웹사이트 또는 프로필에 대한 링크",
- "originalObjectUrl": "가능한 경우 소스 웹사이트에 대한 링크"
- },
- "height": "키",
- "cm": "cm",
- "seeDetails": "상세보기",
- "copyToClipboard": "클립보드에 복사",
- "date": "일자",
- "timeOfDay": "하루 중 시간",
- "submit": "제출",
- "edit": "편집",
- "editName": "{{name}} 편집",
- "add": "추가",
- "close": "닫기",
- "difference": "차이점",
- "days": "날",
- "all": "전체",
- "lastYear": "최근 년도",
- "lastHalfYear": "최근 6개월",
- "lastMonth": "최근 한달",
- "lastWeek": "최근 일주",
- "start": "시작",
- "end": "종료",
- "comment": "댓글",
- "loading": "로딩...",
- "nutritionalPlan": "영양 계획",
- "addEntry": "항목 추가",
- "actions": "활동",
- "nothingHereYet": "아직 아무것도 없습니다...",
- "value": "값",
- "bmi": {
- "overweight": "과체중",
- "obese": "뚱뚱한",
- "calculator": "BMI 계산기",
- "normal": "표준 체중",
- "result": "당신의 BMI는 {{value}}",
- "underweight": "저체중"
- },
- "downloadAsPdf": "다운로드 PDF",
- "total": "총",
- "description": "설명",
- "continue": "계속",
- "language": "언어",
- "success": "성공!",
- "English": "영어",
- "durationWeeksDays": "{{nrWeeks}} 주, {{nrDays}} 일",
- "videos": "비디오",
- "undo": "실행취소",
- "noResultsDescription": "이 쿼리에 대한 결과가 없습니다. 필터 수를 줄이는 것이 좋습니다.",
- "calendar": "달력",
- "entries": "항목",
- "no_entries_for_day": "이 날에는 항목이 없습니다",
- "weight": "체중",
- "alsoSearchEnglish": "영어 이름도 검색해 보세요",
- "delete": "삭제",
- "deleteConfirmation": "\"{{name}}\"을(를) 삭제하시겠습니까?",
- "currentWeight": "현재 체중",
- "workout": "운동",
- "notes": "메모",
- "filters": "필터",
- "images": "이미지",
- "successfullyDeleted": "삭제 성공",
- "overview": "개요",
- "goBack": "뒤로",
- "translation": "번역",
- "preferences": "환경설정",
- "name": "이름",
- "category": "카테고리",
- "durationWeeks": "{{number}} 주",
- "cancel": "취소",
- "cannotBeUndone": "이 작업은 실행 취소할 수 없습니다.",
- "min": "최소",
- "max": "최대",
- "noResults": "결과 없음",
- "measurements": {
- "measurements": "측정",
- "unitFormHelpText": "범주를 측정하는 단위(예: cm 또는 %)",
- "deleteInfo": "이렇게 하면 해당 카테고리와 모든 항목이 삭제됩니다"
- }
-}
diff --git a/wger/core/static/react/locales/nb_NO/translation.json b/wger/core/static/react/locales/nb_NO/translation.json
deleted file mode 100644
index a5425ba6a..000000000
--- a/wger/core/static/react/locales/nb_NO/translation.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "add": "Legg til",
- "close": "Lukk",
- "date": "Dato",
- "days": "Dager",
- "delete": "Slett",
- "difference": "Forskjell",
- "edit": "Rediger",
- "submit": "Send",
- "weight": "Vekt",
- "exercises": {
- "replacements": "Erstatninger"
- },
- "licenses": {
- "authors": "Forfatter",
- "authorProfile": "Lenke til forfatters nettside eller profil, hvis tilgjengelig",
- "derivativeSourceUrl": "Lenke til opprinnelig kilde, dersom dette er avledet arbeid",
- "originalObjectUrl": "Lenke til kildenettstedet, hvis tilgjengelig",
- "originalTitle": "Tittel",
- "derivativeSourceUrlHelper": "Merk at et avledet verk er et som ikke bare er basert på et tidligere verk, men som også inneholder tilstrekkelig med nytt, kreativt innhold til å gi det rett til sin egen opphavsrett."
- },
- "timeOfDay": "Klokkeslett",
- "addEntry": "Legg til oppføring",
- "editName": "Endre {{name}}",
- "start": "Start",
- "end": "Slutt",
- "comment": "Kommentar",
- "loading": "Laster...",
- "nutritionalPlan": "Ernæringsplan",
- "seeDetails": "Se detaljer",
- "unit": "Enhet",
- "nothingHereYet": "Ingenting her enda...",
- "height": "Høyde",
- "all": "Alt",
- "lastYear": "Siste 12 måneder",
- "cm": "cm",
- "deleteConfirmation": "Er du sikker på at du vil slette \"{name}\"?",
- "lastMonth": "Siste måned",
- "lastWeek": "Siste uke",
- "lastHalfYear": "Siste 6 måneder",
- "currentWeight": "Nåværende vekt",
- "workout": "Treningsøkt",
- "actions": "Handlinger",
- "nothingHereYetAction": "Trykk på handlingsknappen for å starte",
- "notes": "Notater",
- "value": "Verdi",
- "filters": "Filtre",
- "alsoSearchEnglish": "Søk også etter navn på engelsk",
- "copyToClipboard": "Kopier til utklippstavlen"
-}
diff --git a/wger/core/static/react/locales/nl/translation.json b/wger/core/static/react/locales/nl/translation.json
deleted file mode 100644
index 223175b93..000000000
--- a/wger/core/static/react/locales/nl/translation.json
+++ /dev/null
@@ -1,242 +0,0 @@
-{
- "days": "Dagen",
- "edit": "Bewerk",
- "close": "Sluit",
- "submit": "Verzend",
- "height": "Lengte",
- "lastYear": "Vorig jaar",
- "cm": "cm",
- "date": "Datum",
- "weight": "Trainings Gewicht",
- "timeOfDay": "Tijd vandaag",
- "licenses": {
- "authorProfile": "Link naar de auteur website of profiel, indien beschikbaar",
- "originalTitle": "Titel",
- "authors": "Auteur",
- "derivativeSourceUrl": "Link naar de originele bron, als die gebruikt is",
- "derivativeSourceUrlHelper": "Wees ervan bewust dat \"afgeleid werk\" niet alleen gebaseerd is op een eerder werk, maar dat ook voldoende nieuwe, creatieve inhoud bevat om recht te geven op eigen auteursrecht.",
- "originalObjectUrl": "Link naar de bron website, indien mogelijk"
- },
- "nutritionalPlan": "Maaltijden Plan",
- "delete": "Verwijder",
- "lastWeek": "Vorige week",
- "deleteConfirmation": "Weet je zeker dat je wil verwijderen \"{{name}}\"?",
- "add": "Voeg toe",
- "difference": "Verschil",
- "all": "Alles",
- "lastHalfYear": "Laatste 6 maanden",
- "lastMonth": "Afgelopen maand",
- "value": "Waarde",
- "loading": "Aan het laden ...",
- "currentWeight": "Huidig gewicht",
- "workout": "Workout",
- "seeDetails": "Zie details",
- "actions": "Actie",
- "addEntry": "Item toevoegen",
- "notes": "Notities",
- "unit": "Eenheid",
- "copyToClipboard": "Kopieer naar geheugen",
- "exercises": {
- "replacementsSearch": "Zoek naar een oefening of kopieer en plak een bekende ID in het veld en klik op de knop “laden”.",
- "noReplacementSelected": " Geen oefening geselecteerd voor vervanging",
- "contributeExercise": "Voeg een oefening toe",
- "step1HeaderBasics": "Basis in Engels",
- "variations": "Variaties",
- "notEnoughRightsHeader": "Je kunt geen oefeningen toevoegen",
- "muscles": "Spieren",
- "notEnoughRights": "Je kunt alleen oefeningen bijdragen als je account ouder is dan {{days}} dagen en je, je e-mail hebt geverifieerd",
- "replacements": "Alternatieven",
- "replacementsInfoText": "Optioneel kun je ook een oefening selecteren die deze oefening moet vervangen (b.v. omdat deze twee keer is ingestuurd, of iets dergelijks). Dit zal de oefening vervangen in routines en trainingslogs, in plaats van deze gewoon te verwijderen. Deze wijzigingen worden ook doorgevoerd in elke instantie die de oefeningen van deze instantie synchroniseert.",
- "secondaryMuscles": "Secundaire spieren",
- "whatVariationsExist": "Welke variaties van deze oefening bestaan er?",
- "filterVariations": "Voer de naam van de oefening in om varianten te filteren",
- "identicalExercise": "Dubbele oefeningen vermijden",
- "identicalExercisePleaseDiscard": "Als je een oefening ziet die identiek is aan de oefening die je toevoegt, gooi je ontwerp dan weg en bewerk in plaats daarvan die oefening.",
- "translateExerciseNow": "Vertaal deze oefening nu",
- "notes": "Notities",
- "cacheWarning": "Door caching kan het even duren voordat de wijzigingen zichtbaar zijn in de hele applicatie.",
- "equipment": "Benodigdheden",
- "submitExercise": "Verstuur oefening",
- "successfullyUpdated": "De oefening is succesvol bijgewerkt. Door caching kan het even duren voordat de wijzigingen zichtbaar zijn in de hele applicatie.",
- "description": "Omschrijving",
- "basics": "Basis",
- "exerciseNotTranslated": "Geen vertaling beschikbaar",
- "exerciseNotTranslatedBody": "Deze oefening is momenteel niet beschikbaar in de geselecteerde taal. Wil je een vertaling toevoegen?",
- "missingExercise": "Mis je een bepaalde oefening?",
- "primaryMuscles": "Primaire spieren",
- "deleteTranslation": "Verwijder vertaling",
- "deleteExerciseFull": "Verwijder hele oefening",
- "deleteExerciseReplace": "Verwijder en vervang",
- "exercises": "Oefeningen",
- "changeExerciseLanguage": "Wijzig de taal van de oefening",
- "noEquipment": "Geen benodigdheden",
- "missingExerciseDescription": "Help de gemeenschap door een bijdrage te leveren!",
- "searchExerciseName": "Zoeken op naam oefening",
- "newNote": "Nieuwe opmerking",
- "notesHelpText": "Opmerkingen zijn korte aantekeningen over hoe je de oefening moet uitvoeren, zoals “houd je lichaam recht”",
- "imageStyle3D": "3D",
- "imageStylePhoto": "Foto",
- "imageStyleLine": "Lijn",
- "imageStyleLowPoly": "Lage lijn",
- "imageStyleOther": "Andere",
- "imageDetails": "Beeld details",
- "alternativeNames": "Alternatieve namen",
- "alsoKnownAs": "Ook bekend als:",
- "compatibleImagesCC": "Afbeeldingen moeten compatibel zijn met de CC BY SA-licentie. Als je twijfelt, upload dan alleen foto's die je zelf hebt gemaakt.",
- "checkInformationBeforeSubmitting": "Controleer of de ingevoerde informatie correct is voordat u de oefening verzendt",
- "deleteExerciseBody": "Wil je de oefening “{{naam}}” verwijderen? Je kunt de huidige {{taal}} vertaling verwijderen of de volledige oefening met alle vertalingen, afbeeldingen, enz."
- },
- "filters": "Filters",
- "nothingHereYet": "Nog niets ingevuld...",
- "nothingHereYetAction": "Druk op de actie knop om te beginnen",
- "alsoSearchEnglish": "Zoek ook voor de namen in Engelse taal",
- "nutrition": {
- "plans": "Voedings plannen",
- "copyPlan": "Maak een kopie van dit plan",
- "plan": "Maaltijd plan",
- "goalsTitle": "Doelen",
- "useGoalsHelpText": "Doelen aan dit plan toevoegen",
- "useGoalsHelpTextLong": "Hiermee kun je algemene doelen instellen voor energie, eiwitten, koolhydraten of vet voor het plan. Merk op dat als je een gedetailleerd maaltijdplan instelt, deze waarden voorrang krijgen.",
- "goalEnergy": "Energiedoel",
- "addNutritionalDiary": "Voedingsdagboek toevoegen",
- "meal": "Maaltijd",
- "addMeal": "Maaltijd toevoegen",
- "addMealItem": "Ingrediënt aan maaltijd toevoegen",
- "nutritionalDiary": "Voedingsdagboek",
- "gramShort": "gr",
- "kcal": "kcal",
- "valueEnergyKcalKj": "{{kcal}} kcal / {{kj}} kJ",
- "macronutrient": "Macronutrient",
- "percentEnergy": "Procent energie",
- "gPerBodyKg": "gr per kg lichaams gewicht",
- "planned": "Gepland",
- "logged": "Bijgehouden",
- "loggedToday": "Vandaag bijgehouden",
- "7dayAvg": "7-dagen gemiddelde",
- "energy": "Energie",
- "protein": "Eiwit",
- "carbohydrates": "Koolhydraten",
- "sugar": "Suiker",
- "ofWhichSugars": "waarvan suikers",
- "fat": "Vet",
- "ofWhichSaturated": "Van welke verzadigd",
- "saturatedFat": "Vezadigd vet",
- "pseudoMealTitle": "Andere logs",
- "others": "Andere",
- "fibres": "Vezels",
- "diaryEntrySaved": "Agenda-item succesvol opgeslagen",
- "logThisMealItem": "Log dit ingrediënt in het voedingsdagboek",
- "logThisMeal": "Log deze maaltijd in het voedingsdagboek",
- "onlyLoggingHelpText": "Alleen calorieën bijhouden. Vink het vakje aan als je alleen je calorieën wilt bijhouden en geen gedetailleerd voedingsplan met specifieke maaltijden wilt instellen",
- "goalFiber": "Vezel doel",
- "goalFat": "Vet doel",
- "today": "Vandaag",
- "goalProtein": "Eiwit doel",
- "goalCarbohydrates": "Koolhydraten doel",
- "valueEnergyKcal": "{{value}} kcal",
- "searchIngredientName": "Zoek op ingrediënt naam",
- "sodium": "Sodium",
- "mealDeleteInfo": "Voedingsdagboekvermeldingen voor deze maaltijd worden niet verwijderd en verschijnen onder “andere logs”",
- "valueRemaining": "resterend",
- "difference": "Verschil",
- "planDeleteInfo": "Hierdoor worden ook alle voedingsdagboekvermeldingen verwijderd",
- "valueTooMany": "teveel"
- },
- "bmi": {
- "overweight": "Overgewicht",
- "obese": "Obese",
- "result": "Je BMI is {{value}}",
- "underweight": "Onder gewicht",
- "calculator": "BMI calculator",
- "normal": "Normaal gewicht"
- },
- "downloadAsPdf": "Download als PDF",
- "total": "Totaal",
- "description": "Omschrijving",
- "translation": "Vertaling",
- "images": "Foto's",
- "overview": "Overzicht",
- "preferences": "Voorkeuren",
- "continue": "Ga door",
- "goBack": "terug",
- "language": "Taal",
- "forms": {
- "supportedImageFormats": "Alleen JPEG-, PNG- en WEBP-bestanden van minder dan 20Mb worden ondersteund",
- "valueTooShort": "De waarde is te kort",
- "valueTooLong": "De waarde is te lang",
- "fieldRequired": "Dit veld is vereist",
- "maxLength": "Voer minder dan {{chars}} tekens in",
- "minLength": "Voer meer dan {{chars}} tekens in",
- "minValue": "De waarde voor dit veld moet hoger zijn dan {{value}}",
- "maxValue": "De waarde voor dit veld moet kleiner zijn dan {{value}}"
- },
- "name": "Naam",
- "category": "Categorie",
- "success": "Gelukt!",
- "English": "Engels",
- "save": "Opslaan",
- "videos": "Video's",
- "cannotBeUndone": "Deze actie kan niet ongedaan worden gemaakt.",
- "cancel": "Cancel",
- "noResults": "Geen resultaten",
- "noResultsDescription": "Geen resultaten gevonden voor deze zoekopdracht, overweeg het aantal filters te verminderen.",
- "routines": {
- "addDay": "Trainingsdag toevoegen",
- "addWeightLog": "Trainingslogboek toevoegen",
- "logsHeader": "Trainingslogboek voor workout",
- "routine": "Routine",
- "routines": "Routines",
- "rir": "RiR",
- "addLogToDay": "Logboek toevoegen aan deze dag",
- "logsFilterNote": "Merk op dat alleen items met een gewichtseenheid van kg of lb en herhalingen in kaart worden gebracht, andere combinaties zoals tijd of tot falen worden hier genegeerd"
- },
- "measurements": {
- "measurements": "Metingen",
- "unitFormHelpText": "De eenheid waarin de categorie wordt gemeten, bijvoorbeeld: cm of %",
- "deleteInfo": "Dit verwijdert de categorie en alle items"
- },
- "server": {
- "abs": "Buikspieren",
- "arms": "Armen",
- "back": "Rug",
- "barbell": "Barbell",
- "bench": "Bench",
- "biceps": "Biceps",
- "body_weight": "Lichaams gewicht",
- "calves": "Kuiten",
- "cardio": "Cardio",
- "chest": "Borst",
- "dumbbell": "Dumbbell",
- "glutes": "Billen",
- "gym_mat": "Gym matje",
- "hamstrings": "Hamstrings",
- "incline_bench": "Incline bench",
- "kettlebell": "Kettlebell",
- "kilometers": "Kilometers",
- "kilometers_per_hour": "Kilometers per uur",
- "lats": "Brede rugspieren (lats)",
- "max_reps": "Max herh.",
- "miles": "Mijl",
- "miles_per_hour": "Mijl per uur",
- "plates": "Schijven",
- "pull_up_bar": "Optrek stang",
- "quads": "Quads",
- "repetitions": "Herhalingen",
- "sz_bar": "SZ bar",
- "seconds": "Seconden",
- "shoulders": "Schouders",
- "swiss_ball": "Swiss ball",
- "triceps": "Triceps",
- "until_failure": "Tot falen",
- "kg": "kg",
- "lb": "lb",
- "none__bodyweight_exercise_": "geen (lichaamsgewicht oefening)",
- "legs": "Benen",
- "minutes": "Minuten"
- },
- "entries": "Invoer",
- "no_entries_for_day": "Geen items voor deze dag",
- "calendar": "Kalender",
- "start": "Start",
- "end": "Einde"
-}
diff --git a/wger/core/static/react/locales/pl/translation.json b/wger/core/static/react/locales/pl/translation.json
deleted file mode 100644
index 898a6d08a..000000000
--- a/wger/core/static/react/locales/pl/translation.json
+++ /dev/null
@@ -1,261 +0,0 @@
-{
- "add": "Dodaj",
- "addEntry": "Dodaj wpis",
- "currentWeight": "Aktualna waga",
- "date": "Data",
- "days": "Dni",
- "delete": "Usuń",
- "difference": "Różnice",
- "edit": "Edytuj",
- "exercises": {
- "alsoKnownAs": "Inna nazwa ćwiczenia:",
- "category": "Kategoria",
- "contributeExercise": "Dodaj nowe ćwiczenie",
- "description": "Opis",
- "equipment": "Sprzęt",
- "exercises": "Ćwiczenia",
- "missingExercise": "Brakuje Ci określonego ćwiczenia?",
- "missingExerciseDescription": "Pomóż społeczności, dodając to!",
- "muscles": "Mięśnie",
- "noEquipment": "Bez sprzętu",
- "notes": "Notatki",
- "primaryMuscles": "Mięśnie główne",
- "searchExerciseName": "Szukaj ćwiczenia przez nazwę",
- "secondaryMuscles": "Mięśnie pomocnicze",
- "basics": "Podstawy ćwiczenia",
- "notEnoughRightsHeader": "Nie możesz dodawać ćwiczeń",
- "changeExerciseLanguage": "Zmień język tego ćwiczenia",
- "notesHelpText": "Notatki to krótkie komentarze dotyczące wykonywania ćwiczenia, np. „utrzymuj swoje ciało prosto”",
- "filterVariations": "Wpisz nazwę ćwiczenia aby filtrować wariację",
- "variations": "Wariacje",
- "whatVariationsExist": "Czy istnieją jakieś wariacje tego ćwiczenia?",
- "identicalExercisePleaseDiscard": "Jeśli zauważysz ćwiczenie identyczne z tym które dodajesz, odrzuć swoją wersję i edytuj to ćwiczenie.",
- "checkInformationBeforeSubmitting": "Przed przesłaniem ćwiczenia sprawdź czy wprowadzone informacje są prawidłowe",
- "submitExercise": "Prześlij ćwiczenie",
- "exerciseNotTranslated": "Brak dostępnego tłumaczenia",
- "newNote": "Nowa notatka",
- "alternativeNames": "Alternatywne nazwy",
- "successfullyUpdated": "Ćwiczenie zostało pomyślnie zaktualizowane. Ze względu na buforowanie może minąć trochę czasu zanim zmiany będą widoczne w całej aplikacji.",
- "exerciseNotTranslatedBody": "To ćwiczenie nie jest obecnie dostępne w aktualnie wybranym języku. Chcesz pomóc w tłumaczeniu?",
- "notEnoughRights": "Możesz dodawać ćwiczenia tylko wtedy, gdy Twoje konto jest starsze niż {{days}} dni i zweryfikowałeś swój adres e-mail",
- "translateExerciseNow": "Przetłumacz to ćwiczenie",
- "deleteExerciseBody": "Czy chcesz usunąć ćwiczenie „{{name}}”? Możesz usunąć bieżące tłumaczenie {{language}} lub całe ćwiczenie ze wszystkimi tłumaczeniami, obrazami itp.",
- "deleteExerciseFull": "Usuń całe ćwiczenie",
- "compatibleImagesCC": "Obrazy muszą być zgodne z licencją CC BY SA. Jeśli masz wątpliwości przesyłaj tylko zdjęcia które sam zrobiłeś.",
- "deleteTranslation": "Usuń tłumaczenie",
- "step1HeaderBasics": "Podstawowe informacje po angielsku",
- "identicalExercise": "Unikaj powielania ćwiczeń",
- "cacheWarning": "Ze względu na buforowanie może minąć trochę czasu zanim zmiany będą widoczne w całej aplikacji.",
- "replacements": "Zamienniki",
- "imageDetails": "Szczegóły grafiki",
- "replacementsSearch": "Szukaj ćwiczenia, bądź skopiuj i wklej znane ID tego ćwiczenia w polu, a następnie kliknij przycisk \"Załaduj\".",
- "noReplacementSelected": " Brak wybranego ćwiczenia do zamiany",
- "deleteExerciseReplace": "Usuń/Zamień",
- "imageStylePhoto": "Zdjęcie",
- "imageStyle3D": "3D",
- "imageStyleLine": "Linia",
- "imageStyleLowPoly": "Low-Poly",
- "imageStyleOther": "Inne",
- "replacementsInfoText": "Opcjonalnie, możesz również wybrać ćwiczenie, które ma zamienić obecne (np. ponieważ zostało przesłane podwójnie lub w podobnych sytuacjach). Sprawi to, że zamiast usuwania nieaktualnego ćwiczenia, w jego miejsce, zarówno w planach jak i w dzienniku treningowym. Te zmiany wpłyną również na każdą instancję, która synchronizuje zamieniane ćwiczenia z tej instancji.",
- "swapExercise": "Zamień ćwiczenie"
- },
- "noResults": "Brak wyników",
- "noResultsDescription": "Nie znaleziono wyników dla tego zapytania, rozważ zmniejszenie liczby filtrów.",
- "nutritionalPlan": "Plan diety",
- "server": {
- "arms": "Ramiona",
- "back": "Plecy",
- "barbell": "Sztanga",
- "bench": "Ławka",
- "calves": "Łydki",
- "chest": "Klatka piersiowa",
- "dumbbell": "Hantle",
- "gym_mat": "Mata gimnastyczna",
- "incline_bench": "Ławka skośna",
- "kettlebell": "Odważniki",
- "kilometers": "Kilometry",
- "legs": "Nogi",
- "miles": "Mile",
- "minutes": "Minuty",
- "none_(bodyweight_exercise)": "brak (ćwiczenie z masą ciała)",
- "pull-up_bar": "Drążek",
- "repetitions": "Powtórzenia",
- "seconds": "Sekundy",
- "shoulders": "Barki",
- "swiss_ball": "Piłka gimnastyczna",
- "sz-bar": "Gryf łamany",
- "until_failure": "Do upadku",
- "pull_up_bar": "Drążek do podciągania",
- "biceps": "Biceps",
- "lower_back": "Dolna część pleców",
- "triceps": "Triceps",
- "none__bodyweight_exercise_": "brak (ćwiczenie z masą ciała)",
- "sz_bar": "Gryf łamany",
- "glutes": "Pośladki",
- "lats": "Mięsień najszerszy grzbietu",
- "quads": "Mięsień czworogłowy uda",
- "hamstrings": "Mięsień dwugłowy uda",
- "abs": "Brzuch",
- "cardio": "Kardio",
- "plates": "Talerze",
- "miles_per_hour": "Mil na godzinę",
- "kg": "kg",
- "max_reps": "Maksymalna liczba powtórzeń",
- "kilometers_per_hour": "Kilometrów na godzinę",
- "lb": "lb",
- "body_weight": "Masa ciała"
- },
- "submit": "Wyślij",
- "weight": "Waga",
- "workout": "Trening",
- "description": "Opis",
- "translation": "Tłumaczenie",
- "images": "Obrazy",
- "overview": "Przegląd",
- "preferences": "Preferencje",
- "continue": "Kontynuuj",
- "language": "Język",
- "forms": {
- "fieldRequired": "To pole jest wymagane",
- "valueTooLong": "Wartość jest za długa",
- "supportedImageFormats": "Obsługiwane są tylko pliki JPEG, PNG i WEBP poniżej 20 MB",
- "valueTooShort": "Wartość jest za krótka",
- "minLength": "Wprowadź więcej niż {{chars}} znaków",
- "maxLength": "Wprowadź mniej niż {{chars}} znaków",
- "maxValue": "Wartość w tym polu nie może być mniejsza niż {{value}}",
- "minValue": "Wartość w tym polu nie może być większa niż {{value}}",
- "enterNumber": "Proszę wprowadzić poprawny numer",
- "enterInteger": "Wprowadź liczbę całkowitą",
- "maxLessThanMin": "Wartość maksymalna musi być większa niż minimalna"
- },
- "category": "Kategoria",
- "English": "Angielski",
- "save": "Zapisz",
- "videos": "Wideo",
- "cannotBeUndone": "Tej czynności nie można cofnąć.",
- "cancel": "Anuluj",
- "name": "Nazwa",
- "loading": "Ładowanie...",
- "goBack": "Powrót",
- "success": "Sukces!",
- "licenses": {
- "authors": "Autor(rzy)",
- "authorProfile": "Link do witryny lub profilu autora, jeśli jest dostępny",
- "originalObjectUrl": "Link do strony źródłowej, jeśli dostępny",
- "originalTitle": "Tytuł",
- "derivativeSourceUrlHelper": "Zwróć uwagę na to, że praca pochodna nie tylko bazuje na oryginalnej pracy, ale także posiada własne, nowe, twórcze elementy, żeby była objęta własnym prawem autorskim.",
- "derivativeSourceUrl": "Link do materiału źródłowego, jeśli zmodyfikowano"
- },
- "nothingHereYet": "Jeszcze tu nic nie ma...",
- "nothingHereYetAction": "Wciśnij przycisk, aby rozpocząć",
- "notes": "Notatki",
- "value": "Wartość",
- "unit": "Jednostka",
- "copyToClipboard": "Skopiuj do schowku (clipboard)",
- "nutrition": {
- "goalEnergy": "Cel energii",
- "macronutrient": "Makroskładnik",
- "percentEnergy": "Procent energii",
- "difference": "Różnice",
- "copyPlan": "Stwórz kopię tego planu",
- "onlyLoggingHelpText": "Tylko licz kalorie. Zaznacz to pole jeśli wyłącznie chcesz śledzić kalorie i nie chcesz tworzyć szczegółowego planu diety z poszczególnymi posiłkami",
- "useGoalsHelpText": "Dodaj cele do tego planu",
- "useGoalsHelpTextLong": "To pozwoli Ci ustawić ogólne cele dla energii, białka, węglowodanów i tłuszczy dla planu. Pamiętaj, że jeśli skonfigurujesz szczegółowy plan posiłków, te wartości będą miały pierwszeństwo.",
- "goalProtein": "Cel białka",
- "searchIngredientName": "Szukaj składnika po nazwie",
- "gPerBodyKg": "g na kg masy ciała",
- "valueEnergyKcalKj": "{{kcal}} kcal / {{kj}} kJ",
- "planned": "Planowane",
- "logged": "Zarejestrowane",
- "loggedToday": "Zarejestrowane dzisiaj",
- "today": "Dzisiaj",
- "mealDeleteInfo": "Wpisy składników odżywczych do tego posiłku nie zostaną usunięte i pojawią się w zakładce \"Dziennik\"",
- "plans": "Plany diety",
- "plan": "Plan diety",
- "goalsTitle": "Cele",
- "goalFat": "Cel tłuszczów",
- "addNutritionalDiary": "Nowy wpis w dzienniku",
- "meal": "Posiłek",
- "addMeal": "Dodaj posiłek",
- "valueEnergyKcal": "{{value}} kcal",
- "addMealItem": "Dodaj składnik do posiłku",
- "nutritionalDiary": "Dziennik dietetyczny",
- "gramShort": "g",
- "kcal": "kcal",
- "sugar": "Cukier",
- "ofWhichSugars": "w tym cukry",
- "fibres": "Błonnik",
- "sodium": "Sód",
- "planDeleteInfo": "Spowoduje to również usunięcie wszystkich wpisów w dzienniku dietetycznym",
- "diaryEntrySaved": "Wpis do dziennika został pomyślnie zapisany",
- "logThisMeal": "Wpisz ten posiłek w tej postaci do dziennika",
- "goalCarbohydrates": "Cel węglowodanów",
- "energy": "Energia",
- "protein": "Białko",
- "carbohydrates": "Węglowodany",
- "fat": "Tłuszcz",
- "ofWhichSaturated": "w tym nasycone kwasy tłuszczowe",
- "saturatedFat": "Nasycone kwasy tłuszczowe",
- "pseudoMealTitle": "Dziennik",
- "others": "Inne",
- "logThisMealItem": "Wpisz ten składnik do dziennika",
- "valueRemaining": "pozostało",
- "valueTooMany": "za dużo",
- "7dayAvg": "Średnia z 7 dni",
- "goalFiber": "Cel błonnikowy"
- },
- "routines": {
- "routines": "Plany treningowe",
- "addDay": "Dodaj dzień treningowy",
- "addLogToDay": "Dodaj dziennik dla tego dnia",
- "routine": "Plan treningowy",
- "addWeightLog": "Dodaj dziennik treningu",
- "logsFilterNote": "Pamiętaj, że na wykresie prezentowane są tylko wpisy z wagą w kg, lb lub z liczbą powtórzeń, a wszystkie inne kombinacje takie jak określony czas lub opcja do upadku mięśniowego są pomijane",
- "rir": "Liczba powtórzeń w rezerwie",
- "logsHeader": "Dziennik treningu",
- "reps": "Powtórzenia",
- "intensity": "Intensywność",
- "currentRoutine": "Aktualna rutyna"
- },
- "filters": "Filtry",
- "close": "Zamknij",
- "timeOfDay": "Godzina",
- "alsoSearchEnglish": "Szukaj również w języku angielskim",
- "measurements": {
- "measurements": "Pomiary",
- "deleteInfo": "To spowoduje usunięcie kategorii i wszystkich wpisów z nią powiązanych",
- "unitFormHelpText": "Jednostka miary dla tej kategorii będzie mierzona w cm lub w %"
- },
- "deleteConfirmation": "Czy na pewno usunąć \"{{name}}\"?",
- "seeDetails": "Zobacz szczegóły",
- "actions": "Akcje",
- "downloadAsPdf": "Pobierz PDF",
- "total": "Całkowite",
- "calendar": "Kalendarz",
- "entries": "Wpisy",
- "no_entries_for_day": "Brak wpisów na ten dzień",
- "lastYear": "Ostatni rok",
- "all": "Wszystko",
- "bmi": {
- "calculator": "Kalkulator BMI",
- "overweight": "Nadwaga",
- "obese": "Otyłość",
- "normal": "Normalna waga",
- "underweight": "Niedowaga",
- "result": "Twoje BMI wynosi"
- },
- "height": "Wysokość",
- "cm": "cm",
- "lastHalfYear": "Ostatnie 6 miesięcy",
- "lastMonth": "Ostatni miesiąc",
- "lastWeek": "Ostatni tydzień",
- "comment": "Komentarz",
- "durationWeeksDays": "{{nrWeeks}} tygodni, {{nrDays}} dni",
- "undo": "Cofnij",
- "successfullyDeleted": "Usunięto",
- "editName": "Edytować {{name}}",
- "min": "Min",
- "max": "Max",
- "start": "Uruchom",
- "end": "Koniec"
-}
diff --git a/wger/core/static/react/locales/pt/translation.json b/wger/core/static/react/locales/pt/translation.json
deleted file mode 100644
index aa484c6b1..000000000
--- a/wger/core/static/react/locales/pt/translation.json
+++ /dev/null
@@ -1,342 +0,0 @@
-{
- "date": "Data",
- "days": "Dias",
- "edit": "Editar",
- "delete": "Deletar",
- "add": "Adicionar",
- "weight": "Peso",
- "submit": "Enviar",
- "difference": "Diferença",
- "close": "Fechar",
- "nutritionalPlan": "Plano nutricional",
- "currentWeight": "Peso atual",
- "addEntry": "Adicionar entrada",
- "workout": "Treino",
- "exercises": {
- "searchExerciseName": "Procurar pelo nome do exercício",
- "notes": "Notas",
- "description": "Descrição",
- "arms": "Braços",
- "calves": "Panturrilhas",
- "chest": "Peito",
- "legs": "Pernas",
- "shoulders": "Ombros",
- "dumbbell": "Halter",
- "gym_mat": "Tapete para exercícios",
- "incline_bench": "Supino inclinado",
- "kettlebell": "Kettlebell",
- "pull-up_bar": "Barra fixa",
- "sz-bar": "Barra SZ",
- "swiss_ball": "Bola suíça",
- "none_(bodyweight_exercise)": "nenhum (exercício com o peso do corpo)",
- "kilometers": "Quilômetros",
- "miles": "Milhas",
- "minutes": "Minutos",
- "repetitions": "Repetições",
- "seconds": "Segundos",
- "until_failure": "Até a falha",
- "primaryMuscles": "Músculos primários",
- "alsoKnownAs": "Também conhecido como:",
- "secondaryMuscles": "Músculos secundários",
- "back": "Costas",
- "barbell": "Barra",
- "bench": "Supino",
- "noEquipment": "Sem equipamento",
- "missingExercise": "Sentindo falta de algum exercício?",
- "missingExerciseDescription": "Ajuda a comunidade ao contribuir!",
- "contributeExercise": "Contribua um exercício",
- "exercises": "Exercícios",
- "category": "Categoria",
- "equipment": "Equipamento",
- "muscles": "Músculos",
- "notEnoughRightsHeader": "Você não pode contribuir com exercícios",
- "variations": "Variações",
- "deleteTranslation": "Deletar traduçao",
- "deleteExerciseFull": "Excluir exercício completo",
- "changeExerciseLanguage": "Mudar linguagem do exercício",
- "basics": "Básico",
- "newNote": "Nova nota",
- "cacheWarning": "Devido ao caching, pode levar algum tempo até que as alterações sejam visíveis durante todo o processo de aplicação.",
- "identicalExercise": "Evitar exercícios duplicados",
- "notesHelpText": "As notas são breves comentários sobre como realizar o exercício, tais como \"manter o corpo direito\"",
- "deleteExerciseBody": "Quer apagar o exercício \"{{nome}}\"? Pode apagar a tradução atual {{{língua}} ou o exercício completo com todas as traduções, imagens, etc.",
- "notEnoughRights": "Você só pode contribuir com exercícios se sua conta tiver mais de {{days}} dias e tiver verificado seu e-mail",
- "whatVariationsExist": "Que variações deste exercício existem, se é que existem?",
- "filterVariations": "Introduzir o nome do exercício para filtrar variações",
- "identicalExercisePleaseDiscard": "Se notar um exercício que seja idêntico ao que está a acrescentar, por favor descarte o seu rascunho e em vez disso edite esse exercício.",
- "translateExerciseNow": "Traduza esse exercício agora",
- "compatibleImagesCC": "As imagens devem ser compatíveis com a licença CC BY SA. Em caso de dúvida, carregue apenas fotografias que você mesmo tenha tirado.",
- "alternativeNames": "Nomes alternativos",
- "checkInformationBeforeSubmitting": "Verifique se a informação que introduziu está certa antes de submeter o exercício",
- "submitExercise": "Enviar exercício",
- "successfullyUpdated": "O exercício foi atualizado com sucesso. Devido ao caching, poderá levar algum tempo até que as alterações sejam visíveis ao longo de toda a aplicação.",
- "exerciseNotTranslated": "Sem traduções disponíveis",
- "exerciseNotTranslatedBody": "Este exercício não está atualmente disponível na língua atualmente selecionada. Quer contribuir com uma tradução?",
- "step1HeaderBasics": "Conceitos básicos em inglês",
- "replacementsInfoText": "Opcionalmente, você também pode selecionar um exercício que deva substituir este (por exemplo, porque foi enviado duas vezes ou algo semelhante). Isso substituirá o exercício nas rotinas e também nos registros de treinamento, em vez de apenas excluí-lo. Essas alterações também serão propagadas para qualquer instância que sincronize os exercícios desta.",
- "replacements": "Substituições",
- "replacementsSearch": "Procure um exercício ou copie e cole um ID conhecido no campo e clique no botão “carregar”.",
- "noReplacementSelected": " Nenhum exercício selecionado para substituição",
- "deleteExerciseReplace": "Excluir e substituir",
- "imageStylePhoto": "Foto",
- "imageStyle3D": "3D",
- "imageStyleLine": "Linha",
- "imageStyleLowPoly": "Baixa Poligonalidade",
- "imageStyleOther": "Outro",
- "imageDetails": "Detalhes da Imagem",
- "swapExercise": "Trocar exercício"
- },
- "noResults": "Sem resultados",
- "noResultsDescription": "Nenhum resultado encontrado para essa consulta, considere reduzir o número de filtros.",
- "loading": "Carregando...",
- "overview": "Panorama",
- "preferences": "Preferências",
- "continue": "Continuar",
- "goBack": "Costas",
- "forms": {
- "fieldRequired": "Esse campo é obrigatório",
- "supportedImageFormats": "São aceitos somente JPEG, PNG e WEBP menores de 20Mb",
- "valueTooShort": "O valor é muito curto",
- "valueTooLong": "O valor é muito longo",
- "minValue": "O valor para esse campo deve ser maior que {{value}}",
- "maxLength": "Por favor, entre com menos de {{chars}} caracteres",
- "minLength": "Por favor, use mais que {{chars}} caracteres",
- "maxValue": "O valor para esse campo deve ser menor que {{value}}",
- "enterNumber": "Favor inserir um número válido",
- "enterInteger": "Favor inserir um número inteiro",
- "maxLessThanMin": "O valor máximo deve ser maior que o mínimo",
- "endBeforeStart": "O valor de fim não pode anteceder o início"
- },
- "cannotBeUndone": "Essa ação é irreversível.",
- "server": {
- "back": "Costas",
- "abs": "Abdominal",
- "sz_bar": "Barra SZ",
- "pull_up_bar": "Puxar barra",
- "kettlebell": "Kettlebell",
- "biceps": "Bíceps",
- "triceps": "Tríceps",
- "quads": "Quadríceps",
- "miles": "Milhas",
- "minutes": "Minutos",
- "kilometers": "Kilometros",
- "arms": "Braços",
- "until_failure": "Até falhar",
- "gym_mat": "Tapete de ginástica",
- "cardio": "Cardio",
- "incline_bench": "Supino inclinado",
- "dumbbell": "Haltere",
- "barbell": "Barra",
- "swiss_ball": "Bola suiça",
- "shoulders": "Ombros",
- "legs": "Pernas",
- "repetitions": "Repetições",
- "seconds": "Segundos",
- "bench": "Supino",
- "hamstrings": "Isquiotibiais",
- "none__bodyweight_exercise_": "Nenhum (exercício corporal)",
- "lower_back": "Lombar",
- "calves": "Panturrilha",
- "chest": "Peito",
- "lats": "Dorsal",
- "glutes": "Glúteos",
- "body_weight": "Peso corporal",
- "miles_per_hour": "Milhas por hora",
- "kilometers_per_hour": "Quilômetros por hora",
- "kg": "kg",
- "lb": "lb",
- "plates": "Pratos",
- "max_reps": "Número máximo de repetições"
- },
- "description": "Descrição",
- "translation": "Tradução",
- "images": "Imagens",
- "name": "Nome",
- "category": "Categoria",
- "English": "Inglês",
- "language": "Idioma",
- "save": "Salvar",
- "success": "Sucesso!",
- "videos": "Vídeos",
- "cancel": "Cancelar",
- "routines": {
- "addDay": "Adicionar dia de treino",
- "addWeightLog": "Adicionar registro de treino",
- "addLogToDay": "Adicionar registro para este dia",
- "routine": "Rotina",
- "routines": "Rotinas",
- "logsFilterNote": "Note que apenas entradas com uma unidade de massa de kg ou lb e repetições aparecem no gráfico. Outras combinações tais como tempo ou até falha são ignoradas aqui",
- "logsHeader": "Registro de peso para treino",
- "rir": "ReR",
- "sets": "Séries",
- "intensity": "Intensidade",
- "currentRoutine": "Rotina atual",
- "weekly": "Semanal",
- "daily": "Diária",
- "restTime": "Tempo de repouso",
- "backToRoutine": "Voltar para rotina",
- "reps": "Repetições",
- "volume": "Volume",
- "iteration": "Iteração",
- "workoutNr": "Treino n.º {{number}}",
- "weekNr": "Semana {{number}}",
- "minLengthRoutine": "A rotina tem de ser, pelo menos, de {{number}} semanas",
- "maxLengthRoutine": "A rotina pode ser, no máximo, de {{number}} semanas",
- "resultingRoutine": "Rotina resultante",
- "deleteDayConfirmation": "Isto removerá todas as regras de séries, exercícios e progressões",
- "routineHasNoDays": "A rotina não tem dias",
- "setHasNoExercises": "Este conjunto não tem exercícios",
- "fitDaysInWeek": "Encaixa os dias na semana",
- "needsLogsToAdvance": "Precisa de registo para avançar",
- "needsLogsToAdvanceHelpText": "Se escolher esta opção, a rotina só progredirá para o próximo dia agendado se registou um treino para o dia corrente. Se não estiver selecionada, a rotina avançará um dia independentemente de ter registado um treino ou não.",
- "addSuperset": "Juntar superset",
- "addExercise": "Adicionar exercício",
- "exerciseNr": "Exercício {{number}}",
- "supersetNr": "Superset {{number}}",
- "editProgression": "Editar a progressão",
- "progressionNeedsReplace": "Uma das entradas anteriores precisa duma operação de substituição",
- "exerciseHasProgression": "Este exercício tem regras de progressão e não pode ser editado aqui. Para o fazer, pressione o botão.",
- "defaultRounding": "Arredondamento por defeito",
- "rounding": "Arredondamento (este exercício)",
- "roundingHelp": "Regista o arredondamento por defeito para peso e repetições (isto é especialmente útil quando usando percentagens no valor do aumento nas progressões). Isto aplicar-se-á a todas as novas séries, mas pode ser alterado individualmente no formulário de progressões. Deixa vazio para desativar arredondamentos.",
- "weightLogNotPlanned": "Registando numa data para a qual não estava planeado um treino.",
- "logsOverview": "Panorama de registos",
- "alsoShowLogs": "Também mostra registos",
- "statsOverview": "Estatística",
- "simpleMode": "Modo simples",
- "confirmRestDay": "Confirma a mudança do dia de descanço",
- "restDay": "Dia de descanço",
- "confirmRestDayHelpText": "Por favor, repara que todas as repetições e exercícios serão removidos quando marcas um dia como dia de descanso.",
- "duplicate": "Duplicar rotina",
- "downloadPdfLogs": "Descarrega PDF (registos)",
- "downloadPdfTable": "Descarrega PDF (tabela)",
- "downloadIcal": "Descarrega ficheiro iCal",
- "impression": "Impressão geral",
- "impressionGood": "Bom",
- "impressionNeutral": "Neutro",
- "impressionBad": "Mau",
- "impressionHelpText": "Este formulário regista os resultados dos teus treinos (repetições, pesos, etc.) para cada exercício. Alterações feitas aqui, como remover ou trocar exercícios, só afetam este registo específico e não ateram a tua rotina planeada. Só linhas com valores para peso ou repetições são registadas.",
- "addAdditionalLog": "Adicionar registo adicional",
- "operation": "Operação",
- "requirements": "Requisitos",
- "requirementsHelpText": "Selecione o resultado do treino (de registos anteriores) que devam ser atingidos para ativar esta regra",
- "step": "Passo",
- "repeatHelpText": "Marca a caixa de verificação se quiseres que esta regra continue a aplicar-se a treinos posteriores até que definas uma nova",
- "markAsTemplate": "Gere modelo",
- "template": "Modelo",
- "publicTemplates": "Modelos públicos",
- "workoutSession": "Sessão de treino",
- "templates": "Modelos",
- "publicTemplate": "Modelo público",
- "fitDaysInWeekHelpText": "Esta opção controla a forma com é agendada a tua rotina ao longo de várias semanas. Se marcada, os dias repetir-se-ão ao longo duma semana. Por exemplo: uma rotina com treinos à segunda, quarta e sexta continuará este padrão na próxima segunda, quarta e sexta. Se desmarcada, os dias seguir-se-ão de forma sequencial independentemente do início duma nova semana. Isto é útil para rotinas que não seguem uma rotina estritamente semanal.",
- "repeat": "Repetir regra",
- "newDay": "Novo dia"
- },
- "measurements": {
- "measurements": "Medidas",
- "unitFormHelpText": "A unidade de medida a ser usada para a categoria, ex. cm ou %",
- "deleteInfo": "Isso vai apagar a categoria e todas as suas entradas"
- },
- "deleteConfirmation": "Tem certeza que deseja deletar \"{{name}}\"?",
- "seeDetails": "Ver detalhes",
- "actions": "Ações",
- "notes": "Notas",
- "value": "Valor",
- "unit": "Unidade",
- "nutrition": {
- "percentEnergy": "Percentual de energia",
- "fibres": "Fibras",
- "saturatedFat": "Gordura saturada",
- "goalsTitle": "Metas",
- "addMealItem": "Adicionar ingredientes à refeição",
- "sugar": "Açúcar",
- "goalEnergy": "Meta energética",
- "valueEnergyKcal": "{{value}} kcal",
- "plan": "Plano nutricional",
- "kcal": "kcal",
- "planDeleteInfo": "Os diários nutricionais também serão deletados",
- "copyPlan": "Copiar plano",
- "plans": "Planos nutricionais",
- "others": "Outros",
- "protein": "Proteína",
- "today": "Hoje",
- "fat": "Gordura",
- "goalProtein": "Meta de proteínas",
- "valueEnergyKcalKj": "{{kcal}} kcal / {{kj}} kJ",
- "goalFat": "Meta de Gordura",
- "meal": "Refeição",
- "goalCarbohydrates": "Meta de Carboidratos",
- "energy": "Energia",
- "useGoalsHelpText": "Adicionar metas ao plano",
- "addMeal": "Adicionar refeição",
- "carbohydrates": "Carboidratos",
- "searchIngredientName": "Procurar pelo nome do ingrediente",
- "sodium": "Sódio",
- "onlyLoggingHelpText": "Apenas rastreie calorias. Marque a caixa se você deseja apenas registrar suas calorias e não quer configurar um plano nutricional detalhado com refeições específicas",
- "ofWhichSugars": "dos quais açúcares",
- "ofWhichSaturated": "dos quais saturadas",
- "pseudoMealTitle": "Outros registros",
- "diaryEntrySaved": "Entrada do diário salva com sucesso",
- "logThisMeal": "Registrar esta refeição como está no diário nutricional",
- "valueRemaining": "lembrando",
- "valueTooMany": "muitos",
- "useGoalsHelpTextLong": "Isso permite que você defina metas gerais para energia, proteínas, carboidratos ou gordura para o plano. Observe que se você configurar um plano de refeições detalhado, esses valores terão prioridade.",
- "addNutritionalDiary": "Adicionar entrada no diário nutricional",
- "nutritionalDiary": "Diário nutricional",
- "gramShort": "g",
- "macronutrient": "Macronutriente",
- "planned": "Planejado",
- "gPerBodyKg": "g por kilo de peso",
- "logged": "Registrado",
- "loggedToday": "Registrado hoje",
- "difference": "Diferença",
- "7dayAvg": "Média de 7 dias",
- "logThisMealItem": "Registrar este ingrediente como está no diário nutricional",
- "mealDeleteInfo": "As entradas do diário nutricional para esta refeição não serão excluídas e aparecerão em 'outros registros'",
- "goalFiber": "Meta de fibra"
- },
- "downloadAsPdf": "Download como PDF",
- "nothingHereYet": "Nada aqui por enquanto...",
- "total": "Total",
- "alsoSearchEnglish": "Também procure por nomes em Inglês",
- "timeOfDay": "Hora do dia",
- "nothingHereYetAction": "Pressione o botão de ação para começar",
- "copyToClipboard": "Copia para a memória",
- "licenses": {
- "authorProfile": "Link para o perfil ou website do autor, caso exista",
- "authors": "Autor(a)",
- "derivativeSourceUrl": "Link para a fonte origial, caso for derivado",
- "originalTitle": "Titulo",
- "derivativeSourceUrlHelper": "Observe que uma obra derivada é aquela que não apenas se baseia em uma obra anterior, mas que também contém conteúdo novo e criativo suficiente para lhe garantir seu próprio direito autoral.",
- "originalObjectUrl": "Link para o site de origem, se disponível"
- },
- "filters": "Filtros",
- "height": "Altura",
- "cm": "cm",
- "all": "Todos",
- "lastYear": "Ano passado",
- "lastHalfYear": "Últimos 6 meses",
- "lastMonth": "Último mês",
- "lastWeek": "Última semana",
- "bmi": {
- "calculator": "Calculadora de IMC",
- "overweight": "Sobrepeso",
- "obese": "Obeso",
- "normal": "Peso normal",
- "underweight": "Subpeso",
- "result": "Seu IMC é {{value}}"
- },
- "entries": "Entradas",
- "calendar": "Calendário",
- "no_entries_for_day": "Não há entradas para este dia",
- "start": "Iniciar",
- "comment": "Comentário",
- "editName": "Editar {{name}}",
- "undo": "Desfazer",
- "successfullyDeleted": "Apagado com sucesso",
- "end": "Fim",
- "min": "Min",
- "max": "Máximo",
- "durationWeeks": "{{number}} semanas",
- "durationWeeksDays": "{{nrWeeks}} semanas, {{nrDays}} dias"
-}
diff --git a/wger/core/static/react/locales/pt_BR/translation.json b/wger/core/static/react/locales/pt_BR/translation.json
deleted file mode 100644
index eafa8f90d..000000000
--- a/wger/core/static/react/locales/pt_BR/translation.json
+++ /dev/null
@@ -1,259 +0,0 @@
-{
- "routines": {
- "rir": "RIR",
- "routine": "Rotina",
- "routines": "Rotinas",
- "addDay": "Adicionar dia de treinamento",
- "addWeightLog": "Adicionar registro de treino",
- "logsHeader": "Registro de exercícios para treino",
- "logsFilterNote": "Observe que somente as entradas com uma unidade de peso de kg ou lb e repetições são registradas; outras combinações, como tempo ou até a falha, são ignoradas aqui",
- "addLogToDay": "Adicionar registro a este dia",
- "intensity": "Intensidade",
- "currentRoutine": "Rotina atual",
- "volume": "Volume",
- "weekNr": "Semana {{number}}"
- },
- "server": {
- "glutes": "Glúteos",
- "gym_mat": "Tapete de academia",
- "hamstrings": "Isquiotibiais",
- "abs": "Abs",
- "arms": "Braços",
- "back": "Voltar",
- "barbell": "Barra",
- "bench": "Supino",
- "biceps": "Bíceps",
- "calves": "Panturrilha",
- "cardio": "Cardio",
- "chest": "Peitoral",
- "dumbbell": "Haltere",
- "body_weight": "Peso corporal",
- "incline_bench": "Supino inclinado",
- "kg": "kg",
- "none__bodyweight_exercise_": "nenhum (exercício com peso corporal)",
- "lb": "lb",
- "miles_per_hour": "Milhas por hora",
- "kilometers_per_hour": "Kilômetros por hora",
- "triceps": "Trícepes",
- "kilometers": "Kilômetros",
- "max_reps": "Máximo de repetições",
- "seconds": "Segundos",
- "shoulders": "Ombros",
- "swiss_ball": "Bola de pilates",
- "until_failure": "Até a falha",
- "kettlebell": "Kettlebell",
- "lats": "Costas",
- "miles": "Milhas",
- "minutes": "Minutos",
- "plates": "Pesos",
- "pull_up_bar": "Barra de pull-up",
- "quads": "Quadríceps",
- "repetitions": "Repetições",
- "sz_bar": "Barra Z",
- "legs": "Pernas"
- },
- "forms": {
- "maxLength": "Insira menos de {{chars}} caracteres",
- "minValue": "O valor desse campo deve ser maior que {{value}}",
- "minLength": "Insira mais de {{chars}} caracteres",
- "maxValue": "O valor desse campo deve ser menor que {{value}}",
- "valueTooShort": "O valor é muito pequeno",
- "supportedImageFormats": "Apenas são suportados arquivos JPEG, PNG e WEBP com menos de 20Mb",
- "valueTooLong": "O valor é muito longo",
- "fieldRequired": "Este campo é obrigatório",
- "enterNumber": "Por favor, insira um número válido",
- "enterInteger": "Por favor, insira um número inteiro",
- "maxLessThanMin": "O valor máximo deve ser maior que o valor mínimo",
- "endBeforeStart": "O valor final não pode ser anterior ao inicial"
- },
- "translation": "Tradução",
- "name": "Nome",
- "cancel": "Cancelar",
- "noResults": "Sem resultados",
- "measurements": {
- "unitFormHelpText": "A unidade na qual a categoria será medida, como cm ou %",
- "measurements": "Medições",
- "deleteInfo": "Isso excluirá a categoria, bem como todas as suas entradas"
- },
- "category": "Categoria",
- "success": "Sucesso!",
- "English": "Inglês",
- "save": "Salvar",
- "videos": "Vídeos",
- "cannotBeUndone": "Essa ação não pode ser desfeita.",
- "images": "Imagens",
- "overview": "Visão geral",
- "preferences": "Preferências",
- "continue": "Continuar",
- "goBack": "Voltar",
- "language": "Linguagem",
- "noResultsDescription": "Não foram encontrados resultados para essa consulta, considere a possibilidade de reduzir o número de filtros.",
- "exercises": {
- "notEnoughRights": "Apenas é possível contribuir com exercícios se sua conta tiver mais de {{days}} dias e você tiver verificado seu e-mail",
- "notEnoughRightsHeader": "Você não pode contribuir com exercícios",
- "translateExerciseNow": "Traduza este exercício agora",
- "alternativeNames": "Nomes alternativos",
- "identicalExercisePleaseDiscard": "Se você perceber que um exercício é idêntico ao que está adicionando, por favor, descarte o seu rascunho e edite aquele exercício em vez disso.",
- "checkInformationBeforeSubmitting": "Por favor, verifique se as informações que você inseriu estão corretas antes de enviar o exercício",
- "notes": "Notas",
- "equipment": "Equipamento",
- "submitExercise": "Enviar exercício",
- "successfullyUpdated": "O exercício foi atualizado com sucesso. Devido ao armazenamento em cache, pode levar algum tempo até que as alterações sejam visíveis em toda a aplicação.",
- "description": "Descrição",
- "cacheWarning": "Devido ao armazenamento em cache, pode levar algum tempo até que as alterações sejam visíveis em toda a aplicação.",
- "missingExerciseDescription": "Ajude a comunidade contribuindo com ele!",
- "searchExerciseName": "Buscar por nome do exercício",
- "newNote": "Nova nota",
- "notesHelpText": "Notas são comentários curtos sobre como realizar o exercício, como \"mantenha seu corpo reto\"",
- "whatVariationsExist": "Quais variações deste exercício existem, se houver alguma?",
- "filterVariations": "Digite o nome do exercício para filtrar variações",
- "identicalExercise": "Evite duplicar exercícios",
- "basics": "Noções básicas",
- "exerciseNotTranslated": "Tradução não disponível",
- "alsoKnownAs": "Também conhecido como:",
- "primaryMuscles": "Músculos primários",
- "noEquipment": "Sem equipamento",
- "missingExercise": "Falta algum exercício específico?",
- "contributeExercise": "Contribua com um exercício",
- "step1HeaderBasics": "Básico em Inglês",
- "variations": "Variações",
- "muscles": "Músculos",
- "deleteExerciseBody": "Você deseja excluir o exercício \"{{name}}\"? Você pode excluir a tradução atual em {{language}} ou o exercício completo, incluindo todas as traduções, imagens, etc.",
- "deleteTranslation": "Excluir tradução",
- "deleteExerciseFull": "Excluir exercício completo",
- "exercises": "Exercícios",
- "changeExerciseLanguage": "Alterar o idioma deste exercício",
- "secondaryMuscles": "Músculos secundários",
- "compatibleImagesCC": "As imagens devem ser compatíveis com a licença CC BY SA. Em caso de dúvida, faça o upload apenas de fotos tiradas por você mesmo.",
- "exerciseNotTranslatedBody": "Este exercício não está disponível no idioma atualmente selecionado. Você deseja contribuir com uma tradução?",
- "replacements": "Substituições",
- "imageStylePhoto": "Foto",
- "replacementsSearch": "Procure por um exercício ou copie e cole um ID conhecido no campo e e client no botão \"carregar\".",
- "noReplacementSelected": " .Nenhum exercício selecionado para substituição",
- "imageStyle3D": "3D",
- "imageStyleLine": "Linha",
- "imageStyleLowPoly": "Polia Baixa",
- "imageStyleOther": "Outros",
- "imageDetails": "Detalhes da Imagem",
- "replacementsInfoText": "Opcionalmente, você pode também selecionar um exercício que pode substituir esse (ex: porque foi substituído duas vezes, or similar). Isso irá substituir o exercício em rotinas e também logs de treinos, ao invés de apenas excluí-lo. Essas mudanças irão também ser propagadas para qualquer instancia que sincroniza os exercícios a partir desse.",
- "deleteExerciseReplace": "Delete e substitua",
- "swapExercise": "Substituir exercício"
- },
- "notes": "Comentários",
- "value": "Valor",
- "unit": "Unidade",
- "description": "Descrição",
- "seeDetails": "Veja detalhes",
- "actions": "Ações",
- "difference": "Diferença",
- "days": "Dias",
- "loading": "Carregando...",
- "nutritionalPlan": "Plano nutricional",
- "addEntry": "Adicionar item",
- "currentWeight": "Peso atual",
- "workout": "Treino",
- "delete": "Excluir",
- "weight": "Peso",
- "date": "Data",
- "submit": "Enviar",
- "edit": "Editar",
- "add": "Adicionar",
- "deleteConfirmation": "Tem certeza que deseja apagar \"{{name}}\"?",
- "close": "Fechar",
- "total": "Total",
- "alsoSearchEnglish": "Pesquise também por nomes em inglês",
- "timeOfDay": "Hora do dia",
- "licenses": {
- "authors": "Autor(es)",
- "authorProfile": "Link para o website ou profile do autor, se disponível",
- "originalTitle": "Título",
- "derivativeSourceUrl": "Link para o conteúdo original, se isso é um trabalho derivativo",
- "originalObjectUrl": "Link ao website de origem, se disponível",
- "derivativeSourceUrlHelper": "Observe que um trabalho derivativo é um em que não é somente baseado em um trabalho anterior, mas que também contém suficientemente novos, conteúdos criativos para dar títulos aos próprios copyrights"
- },
- "filters": "Filtros",
- "nothingHereYet": "Nada aqui ainda...",
- "nothingHereYetAction": "Pressione o botão de ação para iniciar",
- "copyToClipboard": "Copiar ao clipboard",
- "nutrition": {
- "goalFat": "Objetivo de gordura",
- "addMeal": "Adicionar alimentação",
- "addNutritionalDiary": "Adicione entrada diaria nutricional",
- "valueEnergyKcalKj": "{{kcal}} kcal / {{kj}} kJ",
- "plan": "Plano nutricional",
- "addMealItem": "Adicione ingrediente ou alimentação",
- "valueEnergyKcal": "{{value}} kcal",
- "searchIngredientName": "Procure pelo nome do ingrediente",
- "macronutrient": "Macronutriente",
- "loggedToday": "Logado hoje",
- "difference": "Diferença",
- "today": "Hoje",
- "sugar": "Açúcar",
- "ofWhichSugars": "do qual açúcares",
- "fat": "Gordura",
- "valueTooMany": "bastante",
- "goalFiber": "Objetivo de fibras",
- "plans": "Planos nutricionais",
- "goalsTitle": "Objectivos",
- "useGoalsHelpText": "Adicione objectivos a esse plano",
- "goalEnergy": "Objetivo energético",
- "goalProtein": "Objetivo proteico",
- "goalCarbohydrates": "Objetivo de carboidratos",
- "nutritionalDiary": "Nutrição diária",
- "gramShort": "g",
- "kcal": "kcal",
- "planned": "Planejado",
- "logged": "Logado",
- "percentEnergy": "Porcentagem de energia",
- "gPerBodyKg": "g por kg-corpo",
- "7dayAvg": "Média em 7-dias",
- "ofWhichSaturated": "dos quais saturados",
- "saturatedFat": "Gordura saturada",
- "pseudoMealTitle": "Outros logs",
- "others": "Outros",
- "fibres": "Fibras",
- "planDeleteInfo": "Isto irá remover todas as entradas de dados de nutrição diárias também",
- "sodium": "Sódio",
- "mealDeleteInfo": "Entradas de nutrição diária para este alimento não serão removidas e irão aparecer em \"outros logs\"",
- "diaryEntrySaved": "Entrada de dados diária salvo com sucesso",
- "logThisMealItem": "Log esse ingrediente sem alterações para o diário nutricional",
- "valueRemaining": "restantes",
- "energy": "Energia",
- "carbohydrates": "Carboidratos",
- "logThisMeal": "Log esta alimentação sem alterações para o diário nutricional",
- "copyPlan": "Faça uma cópia deste plano",
- "onlyLoggingHelpText": "Apenas acompanha calorias. Selecione o box se você apenas quer logar suas calorias e não que iniciar um plano de nutrição detalhado com alimentação específica",
- "useGoalsHelpTextLong": "Isto permite que você defina objetivos gerais para energia, proteína, carboidratos ou gorduras para o plano. Note que se você iniciar um plano alimentar detalhado, estes valores tem precedência.",
- "protein": "Proteína",
- "meal": "Alimentação"
- },
- "downloadAsPdf": "Baixar como PDF",
- "height": "Altura",
- "cm": "cm",
- "all": "Tudo",
- "lastYear": "Ano Passado",
- "lastHalfYear": "Últimos 6 meses",
- "lastMonth": "Mês passado",
- "lastWeek": "Semana passada",
- "bmi": {
- "calculator": "Calculadora IMC",
- "overweight": "Sobrepeso",
- "obese": "Obeso",
- "normal": "Peso Normal",
- "underweight": "Abaixo do peso",
- "result": "Seu IMC é {{value}}"
- },
- "calendar": "Calendário",
- "entries": "Registros",
- "no_entries_for_day": "Sem registros para este dia",
- "comment": "Comentário",
- "editName": "Editar {{name}}",
- "min": "Min",
- "max": "Max",
- "successfullyDeleted": "Deletado com sucesso",
- "undo": "Desfazer",
- "public": "Público",
- "private": "Privado",
- "durationWeeks": "{{number}} semanas",
- "durationWeeksDays": "{{nrWeeks}} semanas, {{nrDays}} dias"
-}
diff --git a/wger/core/static/react/locales/pt_PT/translation.json b/wger/core/static/react/locales/pt_PT/translation.json
deleted file mode 100644
index f56c9ac02..000000000
--- a/wger/core/static/react/locales/pt_PT/translation.json
+++ /dev/null
@@ -1,334 +0,0 @@
-{
- "weight": "Peso",
- "height": "Altura",
- "cm": "cm",
- "date": "Data",
- "timeOfDay": "Hora do dia",
- "submit": "Submeter",
- "edit": "Editar",
- "editName": "Editar {{name}}",
- "delete": "Eliminar",
- "deleteConfirmation": "Tens a certeza que queres apagar \"{{name}}\"?",
- "add": "Adicionar",
- "close": "Fechar",
- "difference": "Diferença",
- "days": "Dias",
- "all": "Tudo",
- "lastYear": "Último ano",
- "lastHalfYear": "Últimos 6 meses",
- "lastMonth": "Último mês",
- "lastWeek": "Última semana",
- "start": "Início",
- "end": "Fim",
- "comment": "Comentário",
- "licenses": {
- "authors": "Autor(es)",
- "authorProfile": "Link para o site ou perfil do autor, se houver",
- "derivativeSourceUrl": "Link para a fonte original, se for uma versão derivada",
- "derivativeSourceUrlHelper": "Nota: uma obra derivada baseia-se noutra, mas tem conteúdo criativo novo suficiente para ter direitos de autor próprios.",
- "originalObjectUrl": "Link para o site da fonte, se houver",
- "originalTitle": "Título"
- },
- "loading": "A carregar...",
- "nutritionalPlan": "Plano nutricional",
- "addEntry": "Adicionar registo",
- "currentWeight": "Peso atual",
- "workout": "Treino",
- "seeDetails": "Ver detalhes",
- "actions": "Ações",
- "nothingHereYet": "Ainda não há nada aqui...",
- "nothingHereYetAction": "Carrega no botão de ação para começar",
- "notes": "Notas",
- "value": "Valor",
- "unit": "Unidade",
- "alsoSearchEnglish": "Também procura nomes em inglês",
- "copyToClipboard": "Copiar para a área de transferência",
- "filters": "Filtros",
- "exercises": {
- "replacements": "Substituições",
- "replacementsInfoText": "Se quiseres, podes selecionar um exercício para substituir este (por exemplo, se foi adicionado duas vezes ou for muito parecido). Isso vai substituir o exercício nas rotinas e registos, em vez de apenas o apagar. As alterações também se aplicam a todas as instâncias que sincronizem este exercício.",
- "replacementsSearch": "Procura por um exercício ou cola um ID conhecido no campo e clica no botão \"carregar\".",
- "noReplacementSelected": " Nenhum exercício selecionado para substituição",
- "contributeExercise": "Contribuir com um exercício",
- "step1HeaderBasics": "Conceitos básicos em inglês",
- "variations": "Variações",
- "notEnoughRightsHeader": "Não podes contribuir com exercícios",
- "notEnoughRights": "Só podes contribuir com exercícios se a tua conta tiver mais de {{days}} dias e o email estiver verificado",
- "muscles": "Músculos",
- "secondaryMuscles": "Músculos secundários",
- "whatVariationsExist": "Que variações deste exercício existem, se houver?",
- "filterVariations": "Escreve o nome do exercício para filtrar variações",
- "identicalExercise": "Evita exercícios duplicados",
- "identicalExercisePleaseDiscard": "Se reparares que o exercício é igual a um já existente, apaga o rascunho e edita o original.",
- "translateExerciseNow": "Traduz este exercício agora",
- "compatibleImagesCC": "As imagens têm de ser compatíveis com a licença CC BY SA. Se tiveres dúvidas, carrega apenas fotos tiradas por ti.",
- "alternativeNames": "Nomes alternativos",
- "notes": "Notas",
- "equipment": "Equipamento",
- "checkInformationBeforeSubmitting": "Confirma se a informação está correta antes de submeter o exercício",
- "cacheWarning": "Por causa da cache, as alterações podem demorar a aparecer na app.",
- "submitExercise": "Submeter exercício",
- "successfullyUpdated": "O exercício foi atualizado com sucesso. Por causa da cache, pode demorar a aparecer na app.",
- "description": "Descrição",
- "basics": "Básico",
- "exerciseNotTranslated": "Sem tradução disponível",
- "exerciseNotTranslatedBody": "Este exercício ainda não está disponível na língua escolhida. Queres traduzir?",
- "alsoKnownAs": "Também conhecido como:",
- "primaryMuscles": "Músculos principais",
- "deleteExerciseBody": "Queres apagar o exercício \"{{name}}\"? Podes apagar só a tradução em {{language}} ou o exercício completo com todas as traduções, imagens, etc.",
- "deleteTranslation": "Apagar tradução",
- "deleteExerciseFull": "Apagar exercício completo",
- "deleteExerciseReplace": "Apagar e substituir",
- "exercises": "Exercícios",
- "changeExerciseLanguage": "Mudar a língua deste exercício",
- "noEquipment": "Sem equipamento",
- "missingExercise": "Falta algum exercício?",
- "missingExerciseDescription": "Ajuda a comunidade e adiciona-o!",
- "searchExerciseName": "Procurar por nome do exercício",
- "newNote": "Nova nota",
- "notesHelpText": "As notas são comentários curtos sobre como executar o exercício, tipo \"mantém o corpo direito\"",
- "imageStylePhoto": "Foto",
- "imageStyle3D": "3D",
- "imageStyleLine": "Linha",
- "imageStyleLowPoly": "Roldana baixa",
- "imageStyleOther": "Outro",
- "imageDetails": "Detalhes da imagem",
- "swapExercise": "Trocar exercício"
- },
- "nutrition": {
- "plans": "Planos alimentares",
- "copyPlan": "Fazer uma cópia deste plano",
- "plan": "Plano alimentar",
- "onlyLoggingHelpText": "Só controlar calorias. Marca esta opção se só quiseres registar calorias sem criar um plano detalhado com refeições específicas",
- "goalsTitle": "Objetivos",
- "useGoalsHelpText": "Adiciona objetivos a este plano",
- "useGoalsHelpTextLong": "Isto permite definir objetivos gerais de energia, proteína, hidratos ou gordura. Se definires refeições específicas, esses valores têm prioridade.",
- "goalEnergy": "Objetivo energético",
- "goalProtein": "Objetivo de proteína",
- "goalCarbohydrates": "Objetivo de hidratos de carbono",
- "goalFiber": "Objetivo de fibra",
- "goalFat": "Objetivo de gordura",
- "addNutritionalDiary": "Adicionar registo ao diário alimentar",
- "meal": "Refeição",
- "addMeal": "Adicionar refeição",
- "addMealItem": "Adicionar ingrediente à refeição",
- "nutritionalDiary": "Diário alimentar",
- "gramShort": "g",
- "kcal": "kcal",
- "valueEnergyKcal": "{{value}} kcal",
- "valueEnergyKcalKj": "{{kcal}} kcal / {{kj}} kJ",
- "searchIngredientName": "Procurar por nome do ingrediente",
- "macronutrient": "Macronutriente",
- "percentEnergy": "Percentagem de energia",
- "gPerBodyKg": "g por kg de peso corporal",
- "planned": "Planeado",
- "logged": "Registado",
- "loggedToday": "Registado hoje",
- "difference": "Diferença",
- "today": "Hoje",
- "7dayAvg": "Média de 7 dias",
- "energy": "Energia",
- "protein": "Proteína",
- "carbohydrates": "Hidratos de carbono",
- "sugar": "Açúcar",
- "ofWhichSugars": "dos quais açúcares",
- "fat": "Gordura",
- "ofWhichSaturated": "das quais saturadas",
- "saturatedFat": "Gordura saturada",
- "pseudoMealTitle": "Outros registos",
- "others": "Outros",
- "fibres": "Fibras",
- "sodium": "Sódio",
- "planDeleteInfo": "Isto vai apagar todos os registos do diário alimentar também",
- "mealDeleteInfo": "Os registos desta refeição não vão ser apagados e vão aparecer em \"outros registos\"",
- "diaryEntrySaved": "Registo guardado com sucesso",
- "logThisMeal": "Regista esta refeição tal como está no diário alimentar",
- "logThisMealItem": "Regista este ingrediente tal como está no diário alimentar",
- "valueRemaining": "restam",
- "valueTooMany": "demasiadas"
- },
- "bmi": {
- "calculator": "Calculadora de IMC",
- "overweight": "Acima do peso",
- "obese": "Obesidade",
- "normal": "Peso normal",
- "underweight": "Abaixo do peso",
- "result": "O teu IMC é {{value}}"
- },
- "downloadAsPdf": "Descarregar como PDF",
- "total": "Total",
- "description": "Descrição",
- "translation": "Tradução",
- "images": "Imagens",
- "overview": "Resumo",
- "preferences": "Preferências",
- "continue": "Continuar",
- "goBack": "Voltar atrás",
- "language": "Idioma",
- "forms": {
- "supportedImageFormats": "Só são suportados ficheiros JPEG, PNG e WEBP abaixo dos 20MB",
- "enterNumber": "Insere um número válido",
- "enterInteger": "Insere um número inteiro",
- "valueTooShort": "O valor é muito curto",
- "valueTooLong": "O valor é muito longo",
- "fieldRequired": "Campo obrigatório",
- "maxLength": "Insere menos de {{chars}} caracteres",
- "minLength": "Insere mais de {{chars}} caracteres",
- "minValue": "O valor tem de ser maior que {{value}}",
- "maxValue": "O valor tem de ser menor que {{value}}",
- "maxLessThanMin": "O valor máximo tem de ser maior que o mínimo",
- "endBeforeStart": "O valor final não pode ser anterior ao inicial"
- },
- "name": "Nome",
- "category": "Categoria",
- "success": "Sucesso!",
- "English": "Inglês",
- "save": "Guardar",
- "min": "Mín",
- "max": "Máx",
- "durationWeeks": "{{number}} semanas",
- "durationWeeksDays": "{{nrWeeks}} semanas, {{nrDays}} dias",
- "videos": "Vídeos",
- "undo": "Desfazer",
- "successfullyDeleted": "Eliminado com sucesso",
- "cannotBeUndone": "Esta ação é irreversível.",
- "cancel": "Cancelar",
- "noResults": "Sem resultados",
- "noResultsDescription": "Nenhum resultado encontrado para esta pesquisa. Tenta reduzir os filtros.",
- "routines": {
- "sets": "Séries",
- "reps": "Repetições",
- "volume": "Volume",
- "intensity": "Intensidade",
- "currentRoutine": "Rotina atual",
- "iteration": "Iteração",
- "weekly": "Semanal",
- "daily": "Diário",
- "restTime": "Tempo de descanso",
- "workoutNr": "Treino nº {{number}}",
- "weekNr": "Semana {{number}}",
- "backToRoutine": "Voltar à rotina",
- "minLengthRoutine": "A rotina tem de ter pelo menos {{number}} semanas",
- "maxLengthRoutine": "A rotina pode ter no máximo {{number}} semanas",
- "resultingRoutine": "Rotina resultante",
- "addDay": "Adicionar dia de treino",
- "deleteDayConfirmation": "Isto vai apagar todas as séries, exercícios e regras de progressão",
- "routineHasNoDays": "A rotina não tem dias",
- "setHasNoExercises": "Esta série não tem exercícios",
- "fitDaysInWeek": "Ajustar dias por semana",
- "fitDaysInWeekHelpText": "Esta opção define como os dias de treino são distribuídos nas semanas. Se estiver ativa, os dias repetem-se semanalmente (ex: seg, qua, sex). Se estiver desligada, os dias seguem em sequência, mesmo que mudem de semana.",
- "needsLogsToAdvance": "Precisa de registos para avançar",
- "needsLogsToAdvanceHelpText": "Se ativares isto, só avanças para o próximo treino se registares o atual. Caso contrário, avança automaticamente.",
- "addSuperset": "Adicionar Superset",
- "addExercise": "Adicionar exercício",
- "exerciseNr": "Exercício {{number}}",
- "supersetNr": "Superset {{number}}",
- "editProgression": "Editar progressão",
- "progressionNeedsReplace": "Uma das entradas anteriores tem de ter uma operação de substituição",
- "exerciseHasProgression": "Este exercício tem regras de progressão e não pode ser editado aqui. Clica no botão para o fazer.",
- "defaultRounding": "Arredondamento padrão",
- "rounding": "Arredondamento (deste exercício)",
- "roundingHelp": "Define o arredondamento para peso e repetições (especialmente útil com aumentos percentuais). Aplica-se a novas séries, mas pode ser alterado depois. Deixa em branco para desativar.",
- "newDay": "Novo dia",
- "addWeightLog": "Adicionar registo de treino",
- "weightLogNotPlanned": "A guardar registos para um dia sem treinos planeados.",
- "logsOverview": "Resumo dos registos",
- "alsoShowLogs": "Mostrar também os registos",
- "statsOverview": "Estatísticas",
- "simpleMode": "Modo simples",
- "logsHeader": "Registo de treino para o treino",
- "logsFilterNote": "Atenção: só são mostrados no gráfico os registos com peso (kg ou lb) e repetições. Outros tipos (tempo, até falhar, etc.) são ignorados",
- "addLogToDay": "Adicionar registo a este dia",
- "routine": "Rotina",
- "routines": "Rotinas",
- "workoutSession": "Sessão de treino",
- "rir": "Repetições em Reserva",
- "restDay": "Dia de descanso",
- "confirmRestDay": "Confirmar mudança para dia de descanso",
- "confirmRestDayHelpText": "Atenção: todas as séries e exercícios serão removidos ao marcar este dia como descanso.",
- "duplicate": "Duplicar rotina",
- "downloadPdfTable": "Descarregar PDF (tabela)",
- "downloadPdfLogs": "Descarregar PDF (registos)",
- "downloadIcal": "Descarregar ficheiro iCal",
- "impression": "Impressão geral",
- "impressionGood": "Bom",
- "impressionNeutral": "Neutro",
- "impressionBad": "Mau",
- "impressionHelpText": "Este formulário regista os resultados do teu treino (reps, peso, etc.). As alterações aqui só afetam este registo, não a tua rotina geral. Só linhas com peso ou repetições são guardadas.",
- "addAdditionalLog": "Adicionar registo extra",
- "operation": "Operação",
- "step": "Passo",
- "requirements": "Requisitos",
- "requirementsHelpText": "Seleciona os resultados (de registos anteriores) que devem ser atingidos para esta regra entrar em vigor",
- "repeat": "Repetir regra",
- "repeatHelpText": "Marca esta opção se quiseres que esta regra se mantenha nos treinos seguintes até definires outra",
- "markAsTemplate": "Gerir modelo",
- "template": "Modelo",
- "templates": "Modelos",
- "publicTemplate": "Modelo público",
- "publicTemplates": "Modelos públicos",
- "templatesHelpText": "Os modelos servem para guardar uma rotina e reutilizá-la mais tarde. Não podes editar modelos, mas podes duplicar e alterar a cópia (e converter novamente para rotina normal).",
- "publicTemplateHelpText": "Modelos públicos estão disponíveis para todos.",
- "copyAndUseTemplate": "Copiar e usar modelo",
- "set": {
- "type": "Tipo",
- "normalSet": "Série normal",
- "dropSet": "Drop set",
- "myo": "MYO",
- "partial": "Parcial",
- "forced": "Forçado",
- "tut": "TUT",
- "iso": "ISO",
- "jump": "Salto"
- }
- },
- "measurements": {
- "measurements": "Medições",
- "unitFormHelpText": "Unidade em que esta categoria será medida (ex: cm, %)",
- "deleteInfo": "Isto vai apagar a categoria e todos os seus registos"
- },
- "server": {
- "abs": "Abdominais",
- "arms": "Braços",
- "back": "Costas",
- "barbell": "Barra olímpica",
- "bench": "Banco",
- "biceps": "Bíceps",
- "body_weight": "Peso corporal",
- "calves": "Gémeos",
- "cardio": "Cardio",
- "chest": "Peito",
- "dumbbell": "Halteres",
- "glutes": "Glúteos",
- "gym_mat": "Tapete de ginásio",
- "hamstrings": "Isquiotibiais",
- "incline_bench": "Banco inclinado",
- "kettlebell": "Kettlebell",
- "kilometers": "Quilómetros",
- "kilometers_per_hour": "Quilómetros por hora",
- "lats": "Dorsais",
- "legs": "Pernas",
- "max_reps": "Máx. reps",
- "miles": "Milhas",
- "miles_per_hour": "Milhas por hora",
- "minutes": "Minutos",
- "plates": "Discos",
- "pull_up_bar": "Barra de elevações",
- "quads": "Quadríceps",
- "repetitions": "Repetições",
- "sz_bar": "Barra SZ",
- "seconds": "Segundos",
- "shoulders": "Ombros",
- "swiss_ball": "Bola suíça",
- "triceps": "Tríceps",
- "until_failure": "Até falhar",
- "kg": "kg",
- "lb": "lb",
- "none__bodyweight_exercise_": "nenhum (exercício com peso corporal)"
- },
- "calendar": "Calendário",
- "entries": "Registos",
- "no_entries_for_day": "Sem registos neste dia",
- "private": "Privado",
- "public": "Público"
-}
diff --git a/wger/core/static/react/locales/ru/translation.json b/wger/core/static/react/locales/ru/translation.json
deleted file mode 100644
index 21a4a124b..000000000
--- a/wger/core/static/react/locales/ru/translation.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "add": "Добавить",
- "addEntry": "Добавить запись",
- "close": "Закрыть",
- "currentWeight": "Текущий вес",
- "date": "Дата",
- "days": "Дней",
- "delete": "Удалить",
- "difference": "Разница",
- "edit": "Редактировать",
- "exercises": {
- "alsoKnownAs": "Другое название:",
- "category": "Категория",
- "contributeExercise": "Добавить упражнение",
- "description": "Описание",
- "equipment": "Снаряжение",
- "exercises": "Упражнения",
- "missingExercise": "Нет определённого упражнения?",
- "missingExerciseDescription": "Помогите сообществу, добавив его!",
- "muscles": "Мышцы",
- "noEquipment": "Без снаряжения",
- "notes": "Заметки",
- "primaryMuscles": "Крупные мышцы",
- "searchExerciseName": "Поиск по названию",
- "secondaryMuscles": "Вторичные мышцы",
- "checkInformationBeforeSubmitting": "Перед отправкой упражнения проверьте правильность введенной информации",
- "replacementsSearch": "ыполните поиск упражнения или скопируйте и вставьте известный ID в соответствующее поле и нажмите кнопку \"загрузить\".",
- "replacementsInfoText": "По желанию вы можете выбрать упражнение, которое должно заменить это (например, потому что оно было представлено дважды или что-то подобное). В этом случае упражнение будет заменено в расписаниях и журналах тренировок, а не просто удалено. Эти изменения также распространятся на все экземпляры, которые синхронизируют упражнения с этим экземпляром.",
- "noReplacementSelected": " Не выбрано упражнение для замены",
- "replacements": "Замены",
- "step1HeaderBasics": "Основы (на английском)",
- "notEnoughRightsHeader": "Вы не можете добавлять упражнения",
- "variations": "Варианты",
- "notEnoughRights": "Вы можете добавлять упражнения только если ваш аккаунт старше {{days}} дней и вы подтвердили свою электронную почту",
- "whatVariationsExist": "Какие существуют вариации этого упражнения, если таковые имеются?",
- "identicalExercise": "Избегайте дублирования упражнений",
- "compatibleImagesCC": "Изображения должны быть совместимы с лицензией CC BY SA. Если вы сомневаетесь, загрузите только фотографии, которые вы сделали сами.",
- "alternativeNames": "Альтернативные названия",
- "basics": "Основы",
- "exerciseNotTranslated": "Перевод отсутствует",
- "exerciseNotTranslatedBody": "Это упражнение в настоящее время недоступно на выбранном языке. Хотите предложить перевод?",
- "deleteTranslation": "Удалить перевод",
- "changeExerciseLanguage": "Изменить язык этого упражнения",
- "newNote": "Новая заметка",
- "imageStylePhoto": "Фото",
- "imageStyle3D": "3D"
- },
- "noResults": "Нет результатов",
- "noResultsDescription": "Для этого запроса не найдено результатов, рассмотрите возможность уменьшения количества фильтров.",
- "nutritionalPlan": "План питания",
- "server": {
- "arms": "Руки",
- "back": "Спина",
- "barbell": "Штанга",
- "bench": "Скамья",
- "calves": "Икры",
- "chest": "Грудь",
- "dumbbell": "Гантель",
- "gym_mat": "Спортивный коврик",
- "incline_bench": "Наклонная скамья",
- "kettlebell": "Гиря",
- "kilometers": "Километры",
- "legs": "Ноги",
- "miles": "Мили",
- "minutes": "Минуты",
- "none_(bodyweight_exercise)": "Ничего (упражнения с собственным весом)",
- "pull-up_bar": "Турник",
- "repetitions": "Повторения",
- "seconds": "Секунды",
- "shoulders": "Плечи",
- "swiss_ball": "Фитбол",
- "sz-bar": "Изогнутый SZ гриф",
- "until_failure": "До неудачи"
- },
- "submit": "Отправить",
- "weight": "Вес",
- "workout": "Тренировка",
- "loading": "Загрузка...",
- "translation": "Перевод",
- "language": "Язык",
- "images": "Изображения",
- "timeOfDay": "Время дня",
- "nothingHereYet": "Здесь пока ничего нет...",
- "licenses": {
- "authors": "Автор(ы)",
- "authorProfile": "Ссылка на сайт или профиль автора, если доступна",
- "originalObjectUrl": "Ссылка на сайт источника, если доступна",
- "originalTitle": "Название",
- "derivativeSourceUrl": "Ссылка на первоисточник, если это производная работа",
- "derivativeSourceUrlHelper": "Обратите внимание, что производное произведение - это не только то, что основано на предыдущем произведении, но и содержит достаточно нового, творческого контента, чтобы иметь право на собственное авторское право."
- },
- "deleteConfirmation": "Вы уверены, что хотите удалить \"{{name}}\"?",
- "seeDetails": "Посмотреть детали",
- "actions": "Действия",
- "nothingHereYetAction": "Нажмите кнопку действия, чтобы начать",
- "notes": "Заметки",
- "copyToClipboard": "Скопируйте в буфер обмена",
- "filters": "Фильтры",
- "alsoSearchEnglish": "Также поищите имена на английском",
- "value": "Значение",
- "unit": "Единица",
- "all": "Всё",
- "lastYear": "Прошлый год",
- "lastHalfYear": "Последние 6 месяцев",
- "lastWeek": "Предыдущая неделя",
- "lastMonth": "Предыдущий месяц",
- "name": "Имя",
- "height": "Рост",
- "cm": "см",
- "editName": "Изменить {{name}}",
- "start": "Старт",
- "comment": "Комментарий",
- "end": "Конец",
- "description": "Описание",
- "save": "Сохранить"
-}
diff --git a/wger/core/static/react/locales/sk/translation.json b/wger/core/static/react/locales/sk/translation.json
deleted file mode 100644
index d03acd2ad..000000000
--- a/wger/core/static/react/locales/sk/translation.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "weight": "Hmotnosť",
- "category": "Kategória",
- "comment": "Komentár",
- "notes": "Poznámky",
- "description": "Popis",
- "name": "Názov",
- "save": "Uložiť",
- "nutritionalPlan": "Výživový plán"
-}
diff --git a/wger/core/static/react/locales/sl/translation.json b/wger/core/static/react/locales/sl/translation.json
deleted file mode 100644
index 902260100..000000000
--- a/wger/core/static/react/locales/sl/translation.json
+++ /dev/null
@@ -1,326 +0,0 @@
-{
- "weight": "teža",
- "workout": "Trening",
- "height": "Višina",
- "cm": "cm",
- "date": "Datum",
- "timeOfDay": "Čas dneva",
- "submit": "Predloži",
- "edit": "Uredi",
- "editName": "Uredi {{name}}",
- "delete": "Izbriši",
- "deleteConfirmation": "Ali ste prepričani da želite izbrisati \"{{name}}\"?",
- "add": "Dodaj",
- "close": "Zapri",
- "difference": "Razlika",
- "days": "Dnevi",
- "all": "Vse",
- "lastYear": "Prejšnje Leto",
- "lastHalfYear": "Zadnjih 6 Mesecev",
- "lastMonth": "Zadnji Mesec",
- "lastWeek": "Zadnji Teden",
- "start": "Začni",
- "end": "Končaj",
- "comment": "Komentiraj",
- "licenses": {
- "authors": "Avtor(ji)",
- "authorProfile": "Povezava do spletne strani ali profila avtorja, če je na voljo",
- "derivativeSourceUrl": "Povezava do izvirnega vira, če gre za izpeljano delo",
- "derivativeSourceUrlHelper": "Upoštevajte, da je izpeljano delo tisto, ki ne temelji le na prejšnjem delu, ampak vsebuje tudi dovolj novih, ustvarjalnih vsebin, da je upravičeno do lastnih avtorskih pravic.",
- "originalObjectUrl": "Povezava do izvorne spletne strani, če je na voljo",
- "originalTitle": "Naslov"
- },
- "loading": "Nalaganje...",
- "nutritionalPlan": "Prehranski načrt",
- "addEntry": "Dodaj vnos",
- "currentWeight": "Trenutna Teža",
- "seeDetails": "Glej podrobnosti",
- "actions": "Ukrepi",
- "nothingHereYet": "Tukaj še ni nič...",
- "nothingHereYetAction": "Pritisnite gumb za začetek",
- "notes": "Opombe",
- "value": "Vrednost",
- "unit": "Enota",
- "alsoSearchEnglish": "Poišči imena tudi v Angleščini",
- "copyToClipboard": "Kopiraj v odložišče",
- "filters": "Filtri",
- "exercises": {
- "replacements": "Zamenjave",
- "replacementsInfoText": "Po želji lahko izberete tudi vajo, ki naj nadomesti to (npr. ker je bila oddana dvakrat ali podobno). To bo nadomestilo vajo v rutinih in dnevnikih treningov, namesto da bi jo samo izbrisalo. Te spremembe se bodo prenesle tudi na vse primere, ki sinhronizirajo vaje iz te.",
- "replacementsSearch": "Poiščite vajo ali kopirajte in prilepite znano ID v polje in kliknite na gumb \"naloži\".",
- "noReplacementSelected": " Ni izbrana nobena vaja za zamenjavo",
- "contributeExercise": "Prispevaj vajo",
- "step1HeaderBasics": "Osnove v Angleščini",
- "variations": "Različice",
- "notEnoughRightsHeader": "Ne morete prispevati vaj",
- "notEnoughRights": "Vaje lahko prispevate le, če je vaš račun starejši od {{days}} dni in ste potrdili svoj epoštni naslov",
- "muscles": "Mišice",
- "secondaryMuscles": "Sekundarne mišice",
- "whatVariationsExist": "Katere različice te vaje obstajajo, če sploh?",
- "filterVariations": "Vnesite ime vaje, da filtrirate različice",
- "identicalExercise": "Izogibaj se ponavljajočim se vajam",
- "identicalExercisePleaseDiscard": "Če opazite vajo, ki je identična tisti, ki jo dodajate, zavrzite svoj osnutek in namesto tega uredite to vajo.",
- "translateExerciseNow": "Prevedi to vajo zdaj",
- "compatibleImagesCC": "Slike morajo biti združljive z licenco CC BY SA. Če niste prepričani, naložite samo fotografije, ki ste jih posneli sami.",
- "alternativeNames": "Alternativna imena",
- "notes": "Opombe",
- "equipment": "Oprema",
- "checkInformationBeforeSubmitting": "Preden oddate vajo, preverite, ali so vneseni podatki pravilni",
- "cacheWarning": "Zaradi shranjevanja v predpomnilniku lahko traja nekaj časa, preden bodo spremembe vidne v celotni aplikaciji.",
- "submitExercise": "Oddaj vajo",
- "successfullyUpdated": "Vaja je bila uspešno posodobljena. Zaradi shranjevanja v predpomnilnik lahko traja nekaj časa, preden bodo spremembe vidne v celotni aplikaciji.",
- "description": "Opis",
- "basics": "Osnove",
- "exerciseNotTranslated": "Prevod ni na voljo",
- "exerciseNotTranslatedBody": "Ta vaja trenutno ni na voljo v izbranem jeziku. Želite prispevati prevod?",
- "alsoKnownAs": "Znano tudi kot:",
- "primaryMuscles": "Primarne mišice",
- "deleteExerciseBody": "Ali želite izbrisati vajo \"{{name}}\"? Lahko izbrišete trenutni prevod v jeziku {{language}} ali celotno vajo z vsemi prevodi, slikami itd.",
- "deleteTranslation": "Izbriši prevod",
- "deleteExerciseFull": "Izbriši celotno vajo",
- "deleteExerciseReplace": "Izbriši in zamenjaj",
- "exercises": "Vaje",
- "changeExerciseLanguage": "Spremeni jezik te vaje",
- "noEquipment": "Brez opreme",
- "missingExercise": "Manjka določena vaja?",
- "missingExerciseDescription": "Pomagajte skupnosti s svojim prispevkom!",
- "searchExerciseName": "Iskanje po imenu vaje",
- "newNote": "Nova opomba",
- "notesHelpText": "Opombe so kratki komentarji o tem, kako izvesti vajo, na primer \"držite telo ravno\"",
- "imageStylePhoto": "Fotografija",
- "imageStyle3D": "3D",
- "imageStyleLine": "Črta",
- "imageStyleLowPoly": "Nizka poligonalnost",
- "imageStyleOther": "Drugo",
- "imageDetails": "Podrobnosti slike",
- "swapExercise": "Zamenjaj vajo"
- },
- "nutrition": {
- "plans": "Prehranski Načrti",
- "copyPlan": "Naredite kopijo tega načrta",
- "plan": "Prehranski načrt",
- "onlyLoggingHelpText": "Sledi samo kalorijam. Označi polje, če želiš beležiti samo kalorije in ne želiš nastaviti podrobnega prehranskega načrta s konkretnimi obroki",
- "goalsTitle": "Cilji",
- "useGoalsHelpText": "Dodajte cilje k temu načrtu",
- "useGoalsHelpTextLong": "To vam omogoča, da za načrt določite splošne cilje za energijo, beljakovine, ogljikove hidrate ali maščobe. Upoštevajte, da če nastavite podrobni načrt obrokov, bodo te vrednosti imele prednost.",
- "goalEnergy": "Cilj vnesene energije",
- "goalProtein": "Cilj beljakovin",
- "goalCarbohydrates": "Cilj ogljikovih hidratov",
- "goalFiber": "Cilj vlaknin",
- "goalFat": "Cilj maščob",
- "addNutritionalDiary": "Dodaj vnos v dnevnik prehrane",
- "meal": "Obrok",
- "addMeal": "Dodaj obrok",
- "addMealItem": "Dodaj sestavino k obroku",
- "nutritionalDiary": "Dnevnik prehrane",
- "gramShort": "g",
- "kcal": "kcal",
- "valueEnergyKcal": "{{value}} kcal",
- "valueEnergyKcalKj": "{{kcal}} kcal / {{kj}} kJ",
- "searchIngredientName": "Iskanje po imenu sestavine",
- "macronutrient": "Makrohranilo",
- "percentEnergy": "Odstotek energije",
- "gPerBodyKg": "g na kg telesne teže",
- "planned": "Načrtovano",
- "logged": "Zabeleženo",
- "loggedToday": "Danes zabeleženo",
- "difference": "Razlika",
- "today": "Danes",
- "7dayAvg": "7-dnevno povprečje",
- "energy": "Energija",
- "protein": "Beljakovine",
- "carbohydrates": "Ogljikovi hidrati",
- "sugar": "Sladkor",
- "ofWhichSugars": "od tega sladkorji",
- "fat": "Maščoba",
- "ofWhichSaturated": "od tega nasičene",
- "saturatedFat": "Nasičene maščobe",
- "pseudoMealTitle": "Drugi dnevniki",
- "others": "Drugi",
- "fibres": "Vlaknine",
- "sodium": "Sol",
- "planDeleteInfo": "S tem se bodo izbrisali tudi vsi vnosi v dnevnik prehrane",
- "mealDeleteInfo": "Vnosi v dnevnik prehrane za ta obrok ne bodo izbrisani in se bodo prikazali pod \"drugi dnevniki\"",
- "diaryEntrySaved": "Vnos v dnevnik je bil uspešno shranjen",
- "logThisMeal": "Ta obrok zabeležite tak, kot je, v dnevnik prehrane",
- "logThisMealItem": "Vnesite to sestavino takšno, kot je, v dnevnik prehrane",
- "valueRemaining": "preostalo",
- "valueTooMany": "preveč"
- },
- "bmi": {
- "calculator": "Kalkulator BMI",
- "overweight": "Prekomerna telesna teža",
- "obese": "Debel",
- "normal": "Normalna teža",
- "underweight": "Podhranjenost",
- "result": "Vaš BMI je {{value}}"
- },
- "downloadAsPdf": "Prenesi kot PDF",
- "total": "Skupno",
- "description": "Opis",
- "translation": "Prevod",
- "images": "Slike",
- "overview": "Pregled",
- "preferences": "Nastavitve",
- "continue": "Nadaljuj",
- "goBack": "Pojdi nazaj",
- "language": "Jezik",
- "forms": {
- "supportedImageFormats": "Podprte so samo datoteke JPEG, PNG in WEBP, manjše od 20 MB",
- "enterNumber": "Prosim vnesite veljavno številko",
- "enterInteger": "Prosim, vnesite celo število (brez decimalk)",
- "valueTooShort": "Vrednost je prekratka",
- "valueTooLong": "Vrednost je predolga",
- "fieldRequired": "To polje je obvezno",
- "maxLength": "Prosim, vnesite manj kot {{chars}} znakov",
- "minLength": "Prosim, vnesite več kot {{chars}} znakov",
- "minValue": "Vrednost za to polje mora biti višja od {{value}}",
- "maxValue": "Vrednost za to polje mora biti manjša od {{value}}",
- "maxLessThanMin": "Največja vrednost mora biti večja od najmanjše",
- "endBeforeStart": "Končna vrednost ne more biti pred začetkom"
- },
- "name": "Ime",
- "category": "Kategorija",
- "success": "Uspeh!",
- "English": "Angleščina",
- "save": "Shrani",
- "min": "Min",
- "max": "Max",
- "durationWeeks": "{{number}} tednov",
- "durationWeeksDays": "{{nrWeeks}} tednov, {{nrDays}} dni",
- "videos": "Videoposnetki",
- "undo": "Razveljavi",
- "successfullyDeleted": "Uspešno izbrisano",
- "cannotBeUndone": "To dejanje ni mogoče razveljaviti.",
- "cancel": "Prekliči",
- "noResults": "Ni rezultatov",
- "noResultsDescription": "Za to poizvedbo ni bilo najdenih rezultatov, razmislite o zmanjšanju števila filtrov.",
- "routines": {
- "sets": "Kompletov",
- "reps": "Ponovitev",
- "volume": "Volumen",
- "intensity": "Intenziteta",
- "currentRoutine": "Trenutna rutina",
- "iteration": "Iteracija",
- "weekly": "Tedensko",
- "daily": "Dnevno",
- "restTime": "Čas počitka",
- "workoutNr": "Vadba št. {{number}}",
- "weekNr": "Teden {{številka}}",
- "backToRoutine": "Nazaj k rutini",
- "minLengthRoutine": "Rutina mora trajati vsaj {{number}} tednov",
- "maxLengthRoutine": "Rutina lahko traja največ {{number}} tednov",
- "resultingRoutine": "Končna rutina",
- "addDay": "Dodaj dan vadbe",
- "deleteDayConfirmation": "S tem boste odstranili vse sklope, vaje in pravila napredovanja",
- "routineHasNoDays": "Rutina nima dni",
- "setHasNoExercises": "Ta komplet nima vaj",
- "fitDaysInWeek": "Vključi dneve v teden",
- "fitDaysInWeekHelpText": "Ta nastavitev nadzira, kako so dnevi vaše rutine razporejeni v več tednih. Če je omogočena, se dnevi ponavljajo v tedenskem ciklu. Na primer, rutina s treningi v ponedeljek, sredo in petek se bo nadaljevala po istem vzorcu v naslednji ponedeljek, sredo in petek. Če je onemogočena, se dnevi nadaljujejo zaporedno, ne glede na začetek novega tedna. To je koristno za rutine, ki ne sledijo strogo tedenskemu urniku.",
- "needsLogsToAdvance": "Za napredovanje potrebuje dnevnike",
- "needsLogsToAdvanceHelpText": "Če izberete to možnost, se rutina nadaljuje do naslednjega načrtovanega dneva le, če ste za tekoči dan zabeležili vadbo. Če ta možnost ni izbrana, se rutina samodejno nadaljuje do naslednjega dneva, ne glede na to, ali ste zabeležili vadbo ali ne.",
- "addSuperset": "Dodaj superset",
- "addExercise": "Dodaj vajo",
- "exerciseNr": "Vaja {{number}}",
- "supersetNr": "Superset {{number}}",
- "editProgression": "Uredi napredek",
- "progressionNeedsReplace": "Eden od prejšnjih vnosov mora imeti operacijo zamenjave",
- "exerciseHasProgression": "Ta vaja ima pravila napredovanja in je ni mogoče urediti tukaj. Če želite to storiti, kliknite gumb.",
- "defaultRounding": "Privzeto zaokroževanje",
- "rounding": "Zaokroževanje (ta vaja)",
- "roundingHelp": "Nastavite privzeto zaokroževanje za težo in ponovitve (to je še posebej koristno pri uporabi odstotnega povečanja v napredovanju). To velja za vse nove serije, vendar se lahko spremeni posamično v obrazcu za napredovanje. Pustite prazno, če želite onemogočiti zaokroževanje.",
- "newDay": "Nov dan",
- "addWeightLog": "Dodaj dnevnik za trening",
- "weightLogNotPlanned": "Shranjevanje dnevnikov za datum, za katerega ni bilo načrtovanih treningov.",
- "logsOverview": "Pregled dnevnikov",
- "alsoShowLogs": "Pokaži tudi dnevnike",
- "statsOverview": "Statistika",
- "simpleMode": "Preprost način",
- "logsHeader": "Dnevnik vadbe za trening",
- "logsFilterNote": "Upoštevajte, da so v grafikonu prikazani samo vnosi z enoto teže kg ali lb in ponovitvami, druge kombinacije, kot so čas ali do izčrpanosti, pa so tukaj prezrte",
- "addLogToDay": "Dodaj dnevnik za ta dan",
- "routine": "Rutina",
- "routines": "Rutine",
- "workoutSession": "Seja vadbe",
- "rir": "PvR",
- "restDay": "Dan počitka",
- "confirmRestDay": "Potrdite spremembo dneva počitka",
- "confirmRestDayHelpText": "Upoštevajte, da bodo vsi sklopi in vaje odstranjeni, ko označite dan kot dan počitka.",
- "duplicate": "Podvojena rutina",
- "downloadPdfTable": "Prenesi PDF (tabela)",
- "downloadPdfLogs": "Prenesi PDF (dnevniki)",
- "downloadIcal": "Prenesi datoteko iCal",
- "impression": "Splošni vtis",
- "impressionGood": "Dobro",
- "impressionNeutral": "Nevtralno",
- "impressionBad": "Slabo",
- "impressionHelpText": "Ta obrazec beleži rezultate vašega treninga (ponovitve, težo itd.) za vsako vajo. Spremembe, ki jih tukaj naredite, na primer odstranjevanje ali zamenjava vaj, vplivajo samo na določene dnevnike, ki jih shranite, in ne spremenijo vašega splošnega programa. Shranijo se samo vrstice z vrednostmi za težo ali ponovitve.",
- "publicTemplate": "Javna predloga",
- "publicTemplates": "Javne predloge",
- "set": {
- "iso": "ISO",
- "jump": "Skoči",
- "type": "Vrsta",
- "normalSet": "Normalni set",
- "dropSet": "Drop set",
- "myo": "Myo-reps",
- "partial": "Delno",
- "forced": "Prisiljena ponavljanja",
- "tut": "Čas pod napetostjo"
- },
- "copyAndUseTemplate": "Kopiraj in uporabi predlogo",
- "requirementsHelpText": "Izberite rezultate vadbe (iz prejšnjih dnevnikov), ki morajo biti doseženi, da se to pravilo začne uporabljati",
- "repeat": "Ponovi pravilo",
- "repeatHelpText": "Potrdite potrditveno polje, če želite, da se to pravilo še naprej uporablja za nadaljnje vadbe, dokler ne opredelite novega",
- "markAsTemplate": "Uredi predlogo",
- "template": "Predloga",
- "templates": "Predloge"
- },
- "measurements": {
- "measurements": "Meritve",
- "unitFormHelpText": "Enota, v kateri se bo kategorija merila, na primer cm ali %",
- "deleteInfo": "S tem boste izbrisali kategorijo in vse njene vnose"
- },
- "server": {
- "abs": "Trebušne mišice",
- "arms": "Roke",
- "back": "Hrbet",
- "barbell": "Olimpijska palica",
- "bench": "Klop",
- "biceps": "Biceps",
- "body_weight": "Telesna teža",
- "calves": "Meča",
- "cardio": "Kardio",
- "chest": "Prsni koš",
- "dumbbell": "Dumbbell",
- "glutes": "Glutealne mišice",
- "gym_mat": "Telovadna podloga",
- "hamstrings": "Zadnje stegenske mišice",
- "incline_bench": "Naklonjena klop",
- "kettlebell": "Kettlebell",
- "kilometers": "Kilometri",
- "kilometers_per_hour": "Kilometri na uro",
- "lats": "Lati",
- "legs": "Noge",
- "max_reps": "Max ponovitev",
- "miles": "Milje",
- "miles_per_hour": "Milje na uro",
- "minutes": "Minute",
- "plates": "Plošče",
- "pull_up_bar": "Palica za dviganje",
- "quads": "Kvadricepsi",
- "repetitions": "Ponovitve",
- "sz_bar": "SZ palica",
- "seconds": "Sekunde",
- "shoulders": "Ramena",
- "swiss_ball": "Švicarska žoga",
- "triceps": "Triceps",
- "until_failure": "Do odpovedi",
- "kg": "kg",
- "lb": "lb",
- "none__bodyweight_exercise_": "nič (vaja z lastno telesno težo)"
- },
- "calendar": "Koledar",
- "entries": "Vnosi",
- "no_entries_for_day": "Za ta dan ni vnosov"
-}
diff --git a/wger/core/static/react/locales/sr/translation.json b/wger/core/static/react/locales/sr/translation.json
deleted file mode 100644
index fbf64b309..000000000
--- a/wger/core/static/react/locales/sr/translation.json
+++ /dev/null
@@ -1,240 +0,0 @@
-{
- "alsoSearchEnglish": "Такође претражи имена на енглеском језику",
- "close": "Затвори",
- "exercises": {
- "identicalExercisePleaseDiscard": "Ако приметите вежбу која је идентична овој коју додајете, молимо одустаните од вашег нацрта и уместо тога измените постојећу вежбу.",
- "cacheWarning": "Због кеширања, може потрајати док промене не постану видљиве у апликацији.",
- "replacements": "Замене",
- "replacementsSearch": "Претражи вежбу или пејстуј познати ИД у поље, па притисни дугме \"Учитај\".",
- "noReplacementSelected": " Нема вежбе која би могла заменити",
- "contributeExercise": "Допринеси вежбу",
- "step1HeaderBasics": "Основе на енглеском",
- "variations": "Варијације",
- "notEnoughRightsHeader": "Не можете допринети вежбом",
- "notEnoughRights": "Можете допринети вежбом само ако је ваш налог старији од {{days}} дана и имате верификовану е-мејл адресу",
- "muscles": "Мишићи",
- "secondaryMuscles": "Секундарни мишићи",
- "whatVariationsExist": "Које варијације ове вежбе постоје, ако их има?",
- "filterVariations": "Унесите име вежбе за филтрирање варијација",
- "identicalExercise": "Извегавајте додавање дупликата",
- "translateExerciseNow": "Преведите ову вежбу сада",
- "compatibleImagesCC": "Слике морају бити компатибилне са \"CC BY SA\" лиценцом. Ако нисте сигурни, додајте само слике које сте сами усликали.",
- "alternativeNames": "Алтернативни називи",
- "notes": "Белешке",
- "equipment": "Опрема",
- "checkInformationBeforeSubmitting": "Молимо проверите да ли су информације које сте унели тачне пре слања вежбе",
- "submitExercise": "Пошаљи вежбу",
- "description": "Опис",
- "basics": "Основе",
- "exerciseNotTranslated": "Нема доступног превода",
- "replacementsInfoText": "Опционо, можете изабрати вежбе које могу заменити ову(нпр. зато што је послата два пута или друго). Ово ће заменити ову вежбу у списку рутина, као и у дневнику тренинга, уместо да је избрише. Ове промене ће се пропагирати на све уређаје који се сихронизују са овим.",
- "successfullyUpdated": "Вежба је успешно уплоадована. Звог кеширања, може проћи неко време пре него што промене постану видљиве на апликацији.",
- "imageStylePhoto": "Фотографија",
- "exerciseNotTranslatedBody": "Ова вежба тренутно није доступна у изабраном језику. Да ли желите да допринесете тако што ћете направити превод?",
- "alsoKnownAs": "Такође познат(а) и као:",
- "primaryMuscles": "Примарни мишићи",
- "deleteTranslation": "Избриши превод",
- "deleteExerciseFull": "Избриши целу вежбу",
- "deleteExerciseReplace": "Избрижи и замени",
- "exercises": "Вежбе",
- "changeExerciseLanguage": "Измени језик ове вежбе",
- "missingExercise": "Недостаје одређена вежба?",
- "newNote": "Нова велешка",
- "notesHelpText": "Белешке су кратки коментари о томе како изводити вежбу, попут \"држите тело усправно\"",
- "imageStyle3D": "3Д",
- "imageStyleLine": "Линија",
- "imageStyleLowPoly": "Мало-полигони",
- "imageStyleOther": "Остало",
- "imageDetails": "Детаљи слике",
- "noEquipment": "Без опреме",
- "searchExerciseName": "Претражи вежбу по имену",
- "deleteExerciseBody": "Дал и желите да избришете вежбу \"{{name}}\"? Можете да избришете било само тренутни превод ( {{language}} ), или да избришете целу вежбу са свим преводима, сликама и осталим подацима...",
- "missingExerciseDescription": "Помози нашој заједници својим доприносом!"
- },
- "submit": "Пошаљи",
- "lastMonth": "Прошли месец",
- "weight": "Тежина",
- "date": "Датум",
- "licenses": {
- "derivativeSourceUrlHelper": "Изведени рад који се не темељи само на претходном садржају, те садржи довољно новог, креативног садржаја да би се могло сматрати властитим ауторским делом.",
- "derivativeSourceUrl": "Линк ка оригиналном извору, ако је ово изведено дело",
- "authors": "Аутор(и)",
- "authorProfile": "Линк ка аутору сајта или профила, ако је доступан",
- "originalObjectUrl": "Линк ка изворном сајту, ако је доступан",
- "originalTitle": "Наслов"
- },
- "height": "Висина",
- "cm": "цм",
- "timeOfDay": "Време у дану",
- "edit": "Измени",
- "delete": "Избриши",
- "deleteConfirmation": "Да ли сте сигурни да желите да избришете \"{{name}}\"?",
- "add": "Додај",
- "difference": "Разлика",
- "days": "Дани",
- "all": "Све",
- "lastYear": "Прошла година",
- "lastHalfYear": "Последњих 6 месеци",
- "lastWeek": "Прошла недеља",
- "loading": "Учитавање...",
- "nutritionalPlan": "План исхране",
- "addEntry": "Додај унос",
- "currentWeight": "Тренутна тежина",
- "workout": "Тренинг",
- "seeDetails": "Погледај детаље",
- "actions": "Акције",
- "nothingHereYet": "За сада нема ничега овде...",
- "nothingHereYetAction": "Започни притиском на дугме",
- "notes": "Белешке",
- "value": "Вредност",
- "copyToClipboard": "Копирај у клипборд",
- "filters": "Филтери",
- "unit": "Јединица",
- "forms": {
- "valueTooLong": "Вредност је превише дугачка",
- "supportedImageFormats": "Подржани су само JPEG, PNG и WEBP фајлови испод 20Mb",
- "valueTooShort": "Вредност је сувише кратка",
- "fieldRequired": "Ово је обавезно поље",
- "maxLength": "Молимо унесите манје од {{chars}} карактера",
- "minLength": "Молимо унесите барем {{chars}} карактера",
- "maxValue": "Вредност за ово поље мора бити мања од {{value}}",
- "minValue": "Вредност за ово поље мора бити већа од {{value}}"
- },
- "category": "Категорија",
- "routines": {
- "logsFilterNote": "Напомена: само уноси са тежином у кг или лб се узимају у обзир, остале комбинације попут оних са временом или фалинкама су игнорисана овде",
- "addDay": "Додај дан тренинга",
- "addWeightLog": "Додај дневник тренинга",
- "logsHeader": "Унос за тренинг",
- "addLogToDay": "Додај унос за овај дан",
- "routine": "Рутина",
- "routines": "Рутине",
- "rir": "ПУР"
- },
- "nutrition": {
- "useGoalsHelpTextLong": "Ово омогућава постављање општих циљева за енергијом, протеином, угљеним хидратима или мастима за план. Напомена: Ако поставите и детаљан план оброка, ове вредности ће бити већег приоритета.",
- "today": "Данас",
- "useGoalsHelpText": "Додај циљеве у овај план",
- "plans": "Планови исхране",
- "copyPlan": "Направи копију овог плана",
- "plan": "План исхране",
- "onlyLoggingHelpText": "Прати само калорије. Изавери ово поље ако желиш да се прате само твоје калорије и не желиш додатни план исхране са специфичним оброцима",
- "goalsTitle": "Циљеви",
- "goalCarbohydrates": "Циљ за угљене хидрате",
- "goalFiber": "Циљ за влакна",
- "goalEnergy": "Циљана енергија",
- "goalProtein": "Циљани протеини",
- "addNutritionalDiary": "Додај унос у дневних исхране",
- "addMeal": "Додај оброк",
- "addMealItem": "Додај састојке у оброк",
- "nutritionalDiary": "Дневних исхране",
- "gramShort": "г",
- "kcal": "kcal",
- "valueEnergyKcal": "{{value}} kcal",
- "valueEnergyKcalKj": "{{kcal}} kcal / {{kj}} kJ",
- "searchIngredientName": "Претражи по састојку",
- "macronutrient": "Макронутријент",
- "percentEnergy": "Проценат енергије",
- "gPerBodyKg": "грама по кг тежине",
- "loggedToday": "Записано данас",
- "difference": "Разлика",
- "7dayAvg": "Седмодневни просек",
- "energy": "Енергија",
- "protein": "Протеини",
- "carbohydrates": "Угљени хидрати",
- "sugar": "Шећер",
- "ofWhichSugars": "од којих шећери",
- "ofWhichSaturated": "од којих засићене",
- "saturatedFat": "Засићене масти",
- "others": "Остали",
- "fibres": "Влакна",
- "mealDeleteInfo": "Уноси у дневник исхране за овај оброк неће бити избрисани и могу се појавити у одељку \"остали записи\"",
- "diaryEntrySaved": "Унос у дневник је успешно сачуван",
- "logThisMealItem": "Забележи овај састојак у дневник прехране",
- "valueRemaining": "преостало",
- "valueTooMany": "превише",
- "goalFat": "Циљане масти",
- "logThisMeal": "Забележи овај оброк у дневник исхране",
- "meal": "Оброк",
- "logged": "Записано",
- "sodium": "Натријум",
- "planned": "Планирано",
- "fat": "Масти",
- "pseudoMealTitle": "Други записи",
- "planDeleteInfo": "Ово ће избрисати и све уносе у дневнику исхране"
- },
- "bmi": {
- "obese": "Гојазност",
- "overweight": "Прекомерна тежина",
- "normal": "Нормална тежина",
- "underweight": "Испод нормалне тежине",
- "result": "Ваш BMI је {{value}}",
- "calculator": "BMI калкулатор"
- },
- "downloadAsPdf": "Преузми као ПДФ",
- "total": "Укупно",
- "description": "Опис",
- "images": "Слике",
- "overview": "Преглед",
- "preferences": "Подешавања",
- "continue": "Настави",
- "goBack": "Назад",
- "language": "Језик",
- "name": "Име",
- "success": "Успешно!",
- "English": "Енглески",
- "videos": "Видео",
- "cancel": "Одустани",
- "noResults": "Нема резултата",
- "measurements": {
- "measurements": "Мерења",
- "deleteInfo": "Ово ће избрисати категорију и све њене уносе",
- "unitFormHelpText": "Јединица за мерење категорије, нпр. цм или %"
- },
- "server": {
- "arms": "Руке",
- "back": "Леђа",
- "barbell": "Шипка",
- "bench": "Клупа",
- "biceps": "Бицепси",
- "body_weight": "Телесна тежина",
- "calves": "Листови",
- "cardio": "Кардио",
- "chest": "Груди",
- "dumbbell": "Бучице",
- "glutes": "Задњица",
- "gym_mat": "Подлога за тренирање",
- "hamstrings": "Тетиве",
- "incline_bench": "Коса клупа",
- "kilometers": "Километара",
- "lats": "Леђни мишићи",
- "legs": "Ноге",
- "max_reps": "Максимални бр. понављања",
- "miles_per_hour": "Миља на сат",
- "minutes": "Минута",
- "plates": "Плочице",
- "quads": "Квадрицепс",
- "repetitions": "Понављања",
- "sz_bar": "Закривљена шипка",
- "seconds": "Секунде",
- "shoulders": "Рамена",
- "swiss_ball": "Гимнастичарска лопта",
- "triceps": "Трицепси",
- "until_failure": "До неуспеха",
- "kg": "кг",
- "lb": "лб",
- "none__bodyweight_exercise_": "ништа (вежба телесне тежине)",
- "miles": "Миље",
- "abs": "Трбушњаци",
- "kilometers_per_hour": "Километара на сат",
- "kettlebell": "Звоно",
- "pull_up_bar": "Пречка"
- },
- "calendar": "Календар",
- "entries": "Уноси",
- "no_entries_for_day": "Нема уноса за овај дан",
- "noResultsDescription": "Нема резултата за дату претрагу. Покушајте да смањите број филтера.",
- "cannotBeUndone": "Ова акција не може бити поништена.",
- "translation": "Превод",
- "save": "Сачувај"
-}
diff --git a/wger/core/static/react/locales/sv/translation.json b/wger/core/static/react/locales/sv/translation.json
deleted file mode 100644
index 2dce1be3d..000000000
--- a/wger/core/static/react/locales/sv/translation.json
+++ /dev/null
@@ -1,165 +0,0 @@
-{
- "weight": "Vikt",
- "timeOfDay": "Tid på dygnet",
- "height": "Längd",
- "date": "Datum",
- "cm": "cm",
- "edit": "Ändra",
- "delete": "Ta bort",
- "deleteConfirmation": "Är du säker på att du vill ta bort \"{{name}}\"?",
- "add": "Lägg till",
- "difference": "Skillnad",
- "days": "Dagar",
- "all": "Alla",
- "lastYear": "Förra året",
- "lastHalfYear": "Senaste 6 månaderna",
- "lastMonth": "Förra månaden",
- "lastWeek": "Förra veckan",
- "close": "Stäng",
- "submit": "Skicka",
- "licenses": {
- "derivativeSourceUrl": "Länk till original, om detta är ett härlett verk",
- "originalObjectUrl": "Länk till källa, om sådan finns",
- "originalTitle": "Rubrik",
- "authors": "Författare",
- "authorProfile": "Länk till författares websida eller profil, om tillgänglig",
- "derivativeSourceUrlHelper": "Observera att ett verk som inte bara är baserat på ett tidigare verk, utan som också innehåller tillräckligt med nytt, kreativt innehåll kan ge det rätt till sin egen upphovsrätt."
- },
- "workout": "Träningspass",
- "loading": "Laddar...",
- "nutritionalPlan": "Kostplan",
- "addEntry": "Registrera",
- "currentWeight": "Nuvarande vikt",
- "seeDetails": "Visa detaljer",
- "actions": "Åtgärder",
- "nothingHereYet": "Här var det tomt...",
- "nothingHereYetAction": "Tryck på knappen för att fortsätta",
- "notes": "Anteckningar",
- "value": "Värde",
- "unit": "Enhet",
- "alsoSearchEnglish": "Sök även efter namn på engelska",
- "copyToClipboard": "Kopiera till urklipp",
- "filters": "Filter",
- "exercises": {
- "replacements": "Ersättningar",
- "noReplacementSelected": " Ingen övning vald",
- "contributeExercise": "Lägg till en övning",
- "step1HeaderBasics": "Grunder på engelska",
- "variations": "Variationer",
- "notEnoughRightsHeader": "Du kan inte lägga till övningar",
- "replacementsSearch": "Sök efter en övning eller klistra in ett ID i fältet och klicka på knappen \"hämta\".",
- "notEnoughRights": "Du kan bara bidra med övningar om ditt konto är äldre än {{days}} dagar och att du har verifierat din e-post",
- "muscles": "Muskler",
- "whatVariationsExist": "Vilka andra varianter finns det?",
- "identicalExercise": "Undvik upprepade övningar",
- "translateExerciseNow": "Översätt denna övning nu",
- "compatibleImagesCC": "Bilderna måste vara kompatibla med CC BY SA-licensen. Om du är osäker kan du bara ladda upp foton som du har tagit själv.",
- "alternativeNames": "Alternativa namn",
- "notes": "Noteringar",
- "equipment": "Utrustning",
- "checkInformationBeforeSubmitting": "Kontrollera att de uppgifter du angett är korrekta innan du skickar in övningen",
- "identicalExercisePleaseDiscard": "Om du upptäcker en övning som är identiskt med den du försöker lägga till, vänligen använd den befintliga istället.",
- "replacementsInfoText": "Alternativt kan du också välja en övning som ska ersätta den här (t.ex. för att den har lämnats in två gånger eller liknande). Detta kommer att ersätta träningen i rutiner samt träningsloggar, istället för att bara radera den. Dessa ändringar kommer också att spridas till alla instanser som synkroniserar övningarna från den här.",
- "basics": "Grunderna",
- "deleteTranslation": "Radera översättning",
- "deleteExerciseReplace": "Radera och ersätt",
- "exercises": "Övningar",
- "newNote": "Ny notering",
- "secondaryMuscles": "Sekundära muskler",
- "submitExercise": "Skicka in övning",
- "description": "Beskrivning",
- "imageStyle3D": "3D",
- "imageStyleLine": "Linje",
- "imageDetails": "Bild detaljer",
- "noEquipment": "Ingen utrustning",
- "imageStyleLowPoly": "Lågpoly",
- "primaryMuscles": "Primära muskler",
- "exerciseNotTranslated": "Ingen översättning tillgänglig",
- "imageStylePhoto": "Bild"
- },
- "description": "Beskrivning",
- "translation": "Översättning",
- "images": "Bilder",
- "overview": "Överblick",
- "preferences": "Inställningar",
- "continue": "Fortsätt",
- "goBack": "Gå tillbaka",
- "language": "Språk",
- "forms": {
- "supportedImageFormats": "Endast JPEG, PNG och WEBP med en storlek under 20MB stöds",
- "valueTooShort": "Värdet är för kort",
- "valueTooLong": "Värdet är för långt",
- "fieldRequired": "Detta fält är obligatoriskt",
- "maxLength": "Ange färre än {{chars}} tecken",
- "minLength": "Ange fler än {{chars}} tecken",
- "minValue": "Värdet för detta fält måste överstiga {{value}}",
- "maxValue": "Värdet för detta fält måste vara mindre än {{value}}"
- },
- "name": "Namn",
- "category": "Kategori",
- "success": "Lyckat!",
- "English": "Engelska",
- "save": "Spara",
- "videos": "Videos",
- "cannotBeUndone": "Denna åtgärd kan inte ångras.",
- "cancel": "Avbryt",
- "noResults": "Inga resultat",
- "noResultsDescription": "Inga resultat hittades för den här frågan, överväg att minska antalet filter.",
- "routines": {
- "addDay": "Lägg till träningsdag",
- "addWeightLog": "Lägg till tränings logg",
- "logsHeader": "Logg för träningspass",
- "logsFilterNote": "Observera att endast poster med en viktenhet på kg eller lb och repetitioner kartläggs, andra kombinationer som tid eller tills fel ignoreras här",
- "volume": "Volym",
- "intensity": "Intensitet",
- "currentRoutine": "Nuvarande rutin",
- "iteration": "Iteration",
- "daily": "Daglig",
- "weekNr": "Vecka {{number}}",
- "addExercise": "Lägg till övning",
- "exerciseNr": "Övning {{number}}",
- "newDay": "Ny dag",
- "statsOverview": "Statistik",
- "duplicate": "Duplicera rutin",
- "downloadPdfTable": "Ladda ned PDF (tabell)",
- "downloadIcal": "Ladda ned iCal fil",
- "impressionGood": "Bra",
- "impressionNeutral": "Neutral",
- "step": "Steg",
- "template": "Mall",
- "templates": "Mallar",
- "routines": "Rutiner",
- "routine": "Rutin"
- },
- "editName": "Ändra {{namn}}",
- "start": "Start",
- "end": "Slut",
- "nutrition": {
- "addMeal": "Lägg till måltid",
- "addMealItem": "Lägg till ingredienser till måltid",
- "gramShort": "g",
- "kcal": "kcal",
- "valueEnergyKcal": "{{value}} kcal",
- "planned": "Planerad",
- "difference": "Skillnad",
- "energy": "Energi",
- "today": "Idag",
- "fat": "Fett",
- "meal": "Måltid",
- "goalsTitle": "Mål",
- "protein": "Protein",
- "copyPlan": "Skapa en kopia av planen",
- "sugar": "Socker"
- },
- "bmi": {
- "result": "Ditt BMI är {{value}}",
- "overweight": "Överviktig",
- "normal": "Normal vikt",
- "underweight": "Underviktig",
- "calculator": "BMI kalkylator"
- },
- "durationWeeks": "{{number}} veckor",
- "durationWeeksDays": "{{nrWeeks}} veckor, {{nrDays}} dagar",
- "downloadAsPdf": "Ladda ned som PDF",
- "comment": "Kommentar"
-}
diff --git a/wger/core/static/react/locales/ta/translation.json b/wger/core/static/react/locales/ta/translation.json
deleted file mode 100644
index 596706a15..000000000
--- a/wger/core/static/react/locales/ta/translation.json
+++ /dev/null
@@ -1,331 +0,0 @@
-{
- "weight": "எடை",
- "date": "தேதி",
- "add": "சேர்",
- "days": "நாட்கள்",
- "currentWeight": "தற்போதைய எடை",
- "workout": "பயிற்சி",
- "submit": "சமர்ப்பி",
- "delete": "நீக்கு",
- "deleteConfirmation": "\"{{name}}\" ஐ நிச்சயமாக நீக்க விரும்புகிறீர்களா?",
- "nutritionalPlan": "ஊட்டச்சத்து திட்டம்",
- "edit": "தொகு",
- "exercises": {
- "replacementsInfoText": "விருப்பமாக, இதை மாற்ற வேண்டிய ஒரு பயிற்சியையும் நீங்கள் தேர்ந்தெடுக்கலாம் (எ.கா. இது இரண்டு முறை சமர்ப்பிக்கப்பட்டது அல்லது அதற்கு ஒத்ததாக இருந்தது). இது நடைமுறைகள் மற்றும் பயிற்சி பதிவுகளை நீக்குவதற்கு பதிலாக, நடைமுறைகள் மற்றும் பயிற்சி பதிவுகளை மாற்றும். இந்த மாற்றங்கள் இதிலிருந்து பயிற்சிகளை ஒத்திசைக்கும் எந்த நிகழ்விற்கும் பிரச்சாரம் செய்யும்.",
- "replacementsSearch": "ஒரு உடற்பயிற்சியைத் தேடுங்கள் அல்லது அறியப்பட்ட ஐடியை புலத்தில் நகலெடுத்து ஒட்டவும், \"சுமை\" பொத்தானைக் சொடுக்கு செய்யவும்.",
- "noReplacementSelected": " மாற்றுவதற்கு எந்த உடற்பயிற்சியும் தேர்ந்தெடுக்கப்படவில்லை",
- "notEnoughRightsHeader": "நீங்கள் பயிற்சிகளை பங்களிக்க முடியாது",
- "notEnoughRights": "உங்கள் கணக்கு {{days}} நாட்களை விட பழையதாக இருந்தால் மட்டுமே நீங்கள் பயிற்சிகளை பங்களிக்க முடியும், மேலும் உங்கள் மின்னஞ்சலை சரிபார்த்துள்ளீர்கள்",
- "muscles": "தசைகள்",
- "secondaryMuscles": "இரண்டாம் நிலை தசைகள்",
- "whatVariationsExist": "இந்த பயிற்சியின் எந்த மாறுபாடுகள் உள்ளன, ஏதேனும் இருந்தால்?",
- "identicalExercise": "நகல் பயிற்சிகளைத் தவிர்க்கவும்",
- "identicalExercisePleaseDiscard": "நீங்கள் சேர்ப்பதற்கு ஒத்த ஒரு பயிற்சியை நீங்கள் கவனித்தால், தயவுசெய்து உங்கள் வரைவை நிராகரித்து, அதற்கு பதிலாக அந்த பயிற்சியைத் திருத்தவும்.",
- "equipment": "உபகரணங்கள்",
- "cacheWarning": "கேச்சிங் காரணமாக விண்ணப்பம் முழுவதும் மாற்றங்கள் தெரியும் வரை சிறிது நேரம் ஆகலாம்.",
- "successfullyUpdated": "உடற்பயிற்சி வெற்றிகரமாக புதுப்பிக்கப்பட்டது. கேச்சிங் காரணமாக விண்ணப்பம் முழுவதும் மாற்றங்கள் தெரியும் வரை சிறிது நேரம் ஆகலாம்.",
- "deleteTranslation": "மொழிபெயர்ப்பை நீக்கு",
- "deleteExerciseFull": "முழு உடற்பயிற்சியை நீக்கு",
- "missingExerciseDescription": "சமூகத்தை பங்களிப்பதன் மூலம் உதவுங்கள்!",
- "searchExerciseName": "உடற்பயிற்சி பெயரால் தேடுங்கள்",
- "imageStylePhoto": "புகைப்படம்",
- "imageStyle3D": "ZD",
- "imageStyleLine": "வரி",
- "imageStyleLowPoly": "குறைந்த பாலி",
- "imageStyleOther": "மற்றொன்று",
- "imageDetails": "பட விவரங்கள்",
- "replacements": "மாற்றீடுகள்",
- "description": "விவரம்",
- "primaryMuscles": "முதன்மை தசைகள்",
- "deleteExerciseReplace": "நீக்கவும் மாற்றவும்",
- "alternativeNames": "மாற்று பெயர்கள்",
- "exercises": "பயிற்சிகள்",
- "changeExerciseLanguage": "இந்த உடற்பயிற்சியின் மொழியை மாற்றவும்",
- "noEquipment": "உபகரணங்கள் இல்லை",
- "missingExercise": "ஒரு குறிப்பிட்ட உடற்பயிற்சியைக் காணவில்லையா?",
- "notesHelpText": "குறிப்புகள் \"உங்கள் உடலை நேராக வைத்திருங்கள்\" போன்ற பயிற்சியை எவ்வாறு செய்வது என்பது குறித்த குறுகிய கருத்துகள்",
- "contributeExercise": "ஒரு உடற்பயிற்சியை பங்களிக்கவும்",
- "step1HeaderBasics": "ஆங்கிலத்தில் அடிப்படைகள்",
- "variations": "மாறுபாடுகள்",
- "checkInformationBeforeSubmitting": "பயிற்சியைச் சமர்ப்பிப்பதற்கு முன் நீங்கள் உள்ளிட்ட செய்தி சரியானதா என்பதை சரிபார்க்கவும்",
- "submitExercise": "உடற்பயிற்சியை சமர்ப்பிக்கவும்",
- "basics": "அடிப்படைகள்",
- "exerciseNotTranslatedBody": "இந்த பயிற்சி தற்போது தேர்ந்தெடுக்கப்பட்ட மொழியில் கிடைக்கவில்லை. மொழிபெயர்ப்பை பங்களிக்க விரும்புகிறீர்களா?",
- "newNote": "புதிய குறிப்பு",
- "filterVariations": "வடிகட்டி மாறுபாடுகளுக்கு உடற்பயிற்சி பெயரை உள்ளிடவும்",
- "compatibleImagesCC": "எச்.ஏ. உரிமம் மூலம் சி.சி உடன் படங்கள் இணக்கமாக இருக்க வேண்டும். ஐயம் இருந்தால், நீங்கள் எடுத்த புகைப்படங்களை மட்டுமே பதிவேற்றவும்.",
- "exerciseNotTranslated": "மொழிபெயர்ப்பு எதுவும் கிடைக்கவில்லை",
- "alsoKnownAs": "மேலும் அழைக்கப்படுகிறது:",
- "deleteExerciseBody": "\"{{name}}\" என்ற பயிற்சியை நீக்க விரும்புகிறீர்களா? நீங்கள் தற்போதைய {{language}} மொழிபெயர்ப்பை அல்லது அனைத்து மொழிபெயர்ப்புகள், படங்கள் போன்றவற்றைக் கொண்ட முழுமையான உடற்பயிற்சியை நீக்கலாம்.",
- "translateExerciseNow": "இந்த பயிற்சியை இப்போது மொழிபெயர்க்கவும்",
- "notes": "குறிப்புகள்",
- "swapExercise": "உடற்பயிற்சியை மாற்றவும்"
- },
- "nutrition": {
- "plans": "ஊட்டச்சத்து திட்டங்கள்",
- "onlyLoggingHelpText": "கலோரிகளை மட்டுமே கண்காணிக்கவும். உங்கள் கலோரிகளை மட்டுமே உள்நுழைய விரும்பினால், குறிப்பிட்ட உணவுடன் விரிவான ஊட்டச்சத்து திட்டத்தை அமைக்க விரும்பவில்லை என்றால் பெட்டியை சரிபார்க்கவும்",
- "useGoalsHelpText": "இந்த திட்டத்தில் இலக்குகளைச் சேர்க்கவும்",
- "useGoalsHelpTextLong": "திட்டத்திற்கான ஆற்றல், புரதம், கார்போஐட்ரேட்டுகள் அல்லது கொழுப்புக்கான பொதுவான இலக்குகளை நிர்ணயிக்க இது உங்களை அனுமதிக்கிறது. நீங்கள் ஒரு விரிவான உணவுத் திட்டத்தை அமைத்தால், இந்த மதிப்புகள் முன்னுரிமை பெறும் என்பதை நினைவில் கொள்க.",
- "goalCarbohydrates": "கார்போஐட்ரேட் இலக்கு",
- "kcal": "கிலோகலோரி",
- "valueEnergyKcalKj": "{{kcal}} kcal / {{kj}} kj",
- "searchIngredientName": "மூலப்பொருள் பெயரால் தேடுங்கள்",
- "macronutrient": "மேக்ரோனூட்ரியண்ட்",
- "percentEnergy": "ஆற்றலின் விழுக்காடு",
- "logged": "உள்நுழைந்த",
- "loggedToday": "இன்று உள்நுழைந்துள்ளது",
- "difference": "வேறுபாடு",
- "7dayAvg": "7 நாள் சராசரி",
- "protein": "புரதம்",
- "pseudoMealTitle": "பிற பதிவுகள்",
- "others": "மற்றவர்கள்",
- "sodium": "உவர்மம்",
- "mealDeleteInfo": "இந்த உணவுக்கான ஊட்டச்சத்து டைரி உள்ளீடுகள் நீக்கப்படாது, மேலும் \"பிற பதிவுகள்\" இன் கீழ் தோன்றும்",
- "logThisMeal": "இந்த உணவை ஊட்டச்சத்து நாட்குறிப்புக்கு பதிவுசெய்க",
- "logThisMealItem": "இந்த மூலப்பொருளை ஊட்டச்சத்து நாட்குறிப்புக்கு பதிவுசெய்க",
- "valueRemaining": "மீதமுள்ள",
- "meal": "உணவு",
- "addMeal": "உணவு சேர்க்கவும்",
- "copyPlan": "இந்த திட்டத்தின் நகலை உருவாக்கவும்",
- "goalProtein": "புரத இலக்கு",
- "addMealItem": "உணவுக்கு மூலப்பொருள் சேர்க்கவும்",
- "nutritionalDiary": "ஊட்டச்சத்து நாட்குறிப்பு",
- "gramShort": "g",
- "valueEnergyKcal": "{{value}} கிலோகலோரி",
- "planDeleteInfo": "இது அனைத்து ஊட்டச்சத்து டைரி உள்ளீடுகளையும் நீக்கிவிடும்",
- "goalFiber": "ஃபைபர் இலக்கு",
- "today": "இன்று",
- "energy": "ஆற்றல்",
- "plan": "ஊட்டச்சத்து திட்டம்",
- "goalsTitle": "இலக்குகள்",
- "goalEnergy": "ஆற்றல் இலக்கு",
- "goalFat": "கொழுப்பு இலக்கு",
- "addNutritionalDiary": "ஊட்டச்சத்து டைரி நுழைவு சேர்க்கவும்",
- "gPerBodyKg": "g க்கு g-kg",
- "planned": "திட்டமிடப்பட்டது",
- "carbohydrates": "கார்போஐட்ரேட்டுகள்",
- "sugar": "சர்க்கரை",
- "ofWhichSugars": "அதில் சர்க்கரைகள்",
- "fat": "கொழுப்பு",
- "ofWhichSaturated": "அதில் நிறைவுற்றது",
- "saturatedFat": "பூரிதக் கொழுப்பு",
- "fibres": "இழைகள்",
- "diaryEntrySaved": "டைரி நுழைவு வெற்றிகரமாக சேமிக்கப்பட்டது",
- "valueTooMany": "பல"
- },
- "description": "விவரம்",
- "forms": {
- "maxLength": "தயவுசெய்து {{chars}} எழுத்துக்களை விட குறைவாக உள்ளிடவும்",
- "minLength": "தயவுசெய்து {{chars}} எழுத்துக்களை விட அதிகமாக உள்ளிடவும்",
- "supportedImageFormats": "20MB க்குக் கீழே உள்ள JPEG, PNG மற்றும் WEBP கோப்புகள் மட்டுமே ஆதரிக்கப்படுகின்றன",
- "valueTooShort": "மதிப்பு மிகக் குறைவு",
- "minValue": "இந்த புலத்திற்கான மதிப்பு {{value}} ஐ விட அதிகமாக இருக்க வேண்டும்",
- "valueTooLong": "மதிப்பு மிக நீளமானது",
- "fieldRequired": "இந்த புலம் தேவை",
- "maxValue": "இந்த புலத்திற்கான மதிப்பு {{value} than ஐ விட குறைவாக இருக்க வேண்டும்",
- "enterNumber": "செல்லுபடியாகும் எண்ணை உள்ளிடவும்",
- "enterInteger": "முழு எண்ணையும் உள்ளிடவும்",
- "maxLessThanMin": "அதிகபட்ச மதிப்பு குறைந்தபட்சத்தை விட பெரியதாக இருக்க வேண்டும்",
- "endBeforeStart": "இறுதி மதிப்பு தொடக்கத்திற்கு முன் இருக்க முடியாது"
- },
- "category": "வகை",
- "success": "வெற்றி!",
- "noResultsDescription": "இந்த வினவலுக்கு எந்த முடிவுகளும் கிடைக்கவில்லை, வடிப்பான்களின் எண்ணிக்கையைக் குறைப்பதைக் கவனியுங்கள்.",
- "routines": {
- "addWeightLog": "பயிற்சி பதிவைச் சேர்க்கவும்",
- "logsFilterNote": "KG அல்லது LB இன் எடை அலகு கொண்ட உள்ளீடுகள் மற்றும் மறுபடியும் பட்டியலிடப்பட்டுள்ளன என்பதை நினைவில் கொள்க, நேரம் போன்ற பிற சேர்க்கைகள் அல்லது தோல்விவரை இங்கே புறக்கணிக்கப்படும்",
- "rir": "ஆர்.ஐ.ஆர்",
- "routine": "வழக்கமான",
- "routines": "நடைமுறைகள்",
- "addDay": "பயிற்சி நாள் சேர்க்கவும்",
- "logsHeader": "வொர்க்அவுட்டுக்கான பயிற்சி பதிவு",
- "addLogToDay": "இன்றுவரை பதிவைச் சேர்க்கவும்",
- "daily": "நாள்தோறும்",
- "routineHasNoDays": "வழக்கத்திற்கு நாட்கள் இல்லை",
- "setHasNoExercises": "இந்த தொகுப்பில் எந்த பயிற்சிகளும் இல்லை",
- "fitDaysInWeek": "வாரத்தில் பொருத்தமான நாட்கள்",
- "needsLogsToAdvance": "முன்னேற பதிவுகள் தேவை",
- "addSuperset": "சூப்பர்செட் சேர்க்கவும்",
- "exerciseHasProgression": "இந்த பயிற்சிக்கு முன்னேற்ற விதிகள் உள்ளன, இங்கு திருத்த முடியாது. அவ்வாறு செய்ய, பொத்தானைக் சொடுக்கு செய்க.",
- "newDay": "புதிய நாள்",
- "statsOverview": "புள்ளிவிவரங்கள்",
- "simpleMode": "எளிய முறை",
- "impressionNeutral": "நடுநிலை",
- "repeat": "விதி மீண்டும்",
- "repeatHelpText": "இந்த விதி புதியதை வரையறுக்கும் வரை அடுத்தடுத்த உடற்பயிற்சிகளுக்கும் தொடர்ந்து விண்ணப்பிக்க விரும்பினால் தேர்வுப்பெட்டியை சரிபார்க்கவும்",
- "markAsTemplate": "வார்ப்புருவை நிர்வகிக்கவும்",
- "template": "வார்ப்புரு",
- "templates": "வார்ப்புருக்கள்",
- "publicTemplate": "பொது வார்ப்புரு",
- "publicTemplates": "பொது வார்ப்புருக்கள்",
- "publicTemplateHelpText": "அனைத்து பயனர்களுக்கும் பொது வார்ப்புருக்கள் கிடைக்கின்றன.",
- "set": {
- "jump": "தாவு",
- "type": "வகை",
- "normalSet": "சாதாரண தொகுப்பு",
- "dropSet": "துளி தொகுப்பு",
- "myo": "Myo",
- "partial": "பகுதி",
- "forced": "கட்டாயப்படுத்தப்பட்டது",
- "tut": "Tut",
- "iso": "ஐசோ"
- },
- "sets": "செட்",
- "reps": "பிரதிநிதிகள்",
- "volume": "தொகுதி",
- "intensity": "தீவிரம்",
- "currentRoutine": "தற்போதைய வழக்கமான",
- "iteration": "மறுசெய்கை",
- "weekly": "வாராந்திர",
- "restTime": "ஓய்வு நேரம்",
- "workoutNr": "ஒர்க்அவுட் என்.ஆர். {{number}}",
- "weekNr": "வாரம் {{number}}",
- "backToRoutine": "வழக்கத்திற்கு திரும்பவும்",
- "minLengthRoutine": "வழக்கம் குறைந்தது {{number}} வாரங்கள் நீளமாக இருக்க வேண்டும்",
- "maxLengthRoutine": "வழக்கம் அதிகபட்சம் {{number}} வாரங்கள் நீளமாக இருக்கலாம்",
- "resultingRoutine": "இதன் விளைவாக வழக்கமான",
- "deleteDayConfirmation": "இது அனைத்து செட், பயிற்சிகள் மற்றும் முன்னேற்ற விதிகளை அகற்றும்",
- "fitDaysInWeekHelpText": "பல வாரங்களில் உங்கள் வழக்கமான நாட்கள் எவ்வாறு திட்டமிடப்பட்டுள்ளன என்பதை இந்த அமைப்பு கட்டுப்படுத்துகிறது. இயக்கப்பட்டால், வாரங்கள் வாராந்திர சுழற்சியில் மீண்டும் நிகழும். எடுத்துக்காட்டாக, திங்கள், அறிவன் மற்றும் வெள்ளிக்கிழமைகளில் உடற்பயிற்சிகளுடன் ஒரு வழக்கம் அடுத்த திங்கள், அறிவன் மற்றும் வெள்ளிக்கிழமைகளில் இந்த முறையைத் தொடரும். முடக்கப்பட்டால், ஒரு புதிய வாரத்தின் தொடக்கத்தைப் பொருட்படுத்தாமல் நாட்கள் தொடர்ச்சியாக பின்பற்றப்படும். கடுமையான வாராந்திர அட்டவணையைப் பின்பற்றாத நடைமுறைகளுக்கு இது பயனுள்ளதாக இருக்கும்.",
- "needsLogsToAdvanceHelpText": "இந்த விருப்பத்தை நீங்கள் தேர்ந்தெடுத்தால், தற்போதைய நாளுக்கு நீங்கள் ஒரு வொர்க்அவுட்டை பதிவு செய்திருந்தால், அடுத்த திட்டமிடப்பட்ட நாளுக்கு மட்டுமே வழக்கம் முன்னேறும். இந்த விருப்பம் தேர்ந்தெடுக்கப்படாவிட்டால், நீங்கள் ஒரு வொர்க்அவுட்டை உள்நுழைந்திருக்கிறீர்களா இல்லையா என்பதைப் பொருட்படுத்தாமல் வழக்கமானது அடுத்த நாளுக்கு தானாகவே முன்னேறும்.",
- "addExercise": "உடற்பயிற்சியைச் சேர்க்கவும்",
- "exerciseNr": "உடற்பயிற்சி {{number}}",
- "supersetNr": "சூப்பர்செட் {{number}}}",
- "editProgression": "முன்னேற்றத்தைத் திருத்தவும்",
- "progressionNeedsReplace": "முந்தைய உள்ளீடுகளில் ஒன்று மாற்றும் செயல்பாட்டைக் கொண்டிருக்க வேண்டும்",
- "defaultRounding": "இயல்புநிலை ரவுண்டிங்",
- "rounding": "ரவுண்டிங் (இந்த உடற்பயிற்சி)",
- "roundingHelp": "எடை மற்றும் மறுபடியும் இயல்புநிலை ரவுண்டிங் அமைக்கவும் (முன்னேற்றத்தின் சதவீத அதிகரிப்பு படியைப் பயன்படுத்தும்போது இது மிகவும் பயனுள்ளதாக இருக்கும்). இது அனைத்து புதிய தொகுப்புகளுக்கும் பொருந்தும், ஆனால் முன்னேற்ற வடிவத்தில் தனித்தனியாக மாற்றலாம். வட்டத்தை முடக்க காலியாக விடவும்.",
- "weightLogNotPlanned": "உடற்பயிற்சிகளும் திட்டமிடப்படாத தேதிக்கு பதிவுகளைச் சேமித்தல்.",
- "logsOverview": "பதிவுகள் கண்ணோட்டம்",
- "alsoShowLogs": "பதிவுகளையும் காட்டு",
- "restDay": "ஓய்வு நாள்",
- "confirmRestDay": "ஓய்வு நாள் மாற்றத்தை உறுதிப்படுத்தவும்",
- "confirmRestDayHelpText": "ஒரு நாள் ஓய்வு நாளாக நீங்கள் குறிக்கும்போது அனைத்து தொகுப்புகளும் பயிற்சிகளும் அகற்றப்படும் என்பதை நினைவில் கொள்க.",
- "duplicate": "நகல் வழக்கமான",
- "downloadPdfTable": "PDF (அட்டவணை) பதிவிறக்கவும்",
- "downloadPdfLogs": "PDF (பதிவுகள்) பதிவிறக்கவும்",
- "downloadIcal": "Ical கோப்பைப் பதிவிறக்கவும்",
- "impression": "பொது எண்ணம்",
- "impressionGood": "நல்லது",
- "impressionBad": "மோசமான",
- "impressionHelpText": "இந்த படிவம் ஒவ்வொரு உடற்பயிற்சிக்கும் உங்கள் பயிற்சி முடிவுகளை (பிரதிநிதிகள், எடை போன்றவை) பதிவு செய்கிறது. பயிற்சிகளை அகற்றுவது அல்லது மாற்றுவது போன்ற நீங்கள் இங்கு செய்யும் மாற்றங்கள், நீங்கள் சேமிக்கும் குறிப்பிட்ட பதிவுகளை மட்டுமே பாதிக்கின்றன, மேலும் உங்கள் ஒட்டுமொத்த வழக்கத்தை மாற்றாது. எடை அல்லது மறுபடியும் மதிப்புகளைக் கொண்ட வரிசைகள் மட்டுமே சேமிக்கப்படுகின்றன.",
- "addAdditionalLog": "கூடுதல் பதிவைச் சேர்க்கவும்",
- "operation": "செயல்பாடு",
- "step": "படி",
- "requirements": "தேவைகள்",
- "requirementsHelpText": "இந்த விதி நடைமுறைக்கு வர நிறைவு செய்யப்பட வேண்டிய வொர்க்அவுட் முடிவுகளை (முந்தைய பதிவுகளிலிருந்து) தேர்ந்தெடுக்கவும்",
- "templatesHelpText": "வார்ப்புருக்கள் உங்கள் வழக்கத்தை பிற்கால பயன்பாட்டிற்காக சேமிப்பதற்கான ஒரு வழியாகும், மேலும் நடைமுறைகளுக்கான தொடக்க புள்ளியாகவும். நீங்கள் வார்ப்புருக்களைத் திருத்த முடியாது, ஆனால் நீங்கள் அவற்றை நகலெடுத்து நகலில் மாற்றங்களைச் செய்யலாம் (அத்துடன் அவற்றை ஒரு வழக்கமான வழக்கமாக மாற்றலாம்).",
- "copyAndUseTemplate": "வார்ப்புருவை நகலெடுத்து பயன்படுத்தவும்"
- },
- "server": {
- "incline_bench": "சாய்வு பெஞ்ச்",
- "kettlebell": "கெட்டில் பெல்",
- "miles": "மைல்கள்",
- "miles_per_hour": "ஒரு மணி நேரத்திற்கு மைல்கள்",
- "minutes": "நிமிடங்கள்",
- "quads": "குவாட்ச்",
- "repetitions": "மறுநிகழ்வுகள்",
- "triceps": "ட்ரைசெப்ச்",
- "kg": "கிலோ",
- "kilometers": "கிலோமீட்டர்",
- "lats": "லாட்ச்",
- "legs": "கால்கள்",
- "max_reps": "அதிகபட்ச பிரதிநிதிகள்",
- "none__bodyweight_exercise_": "எதுவுமில்லை (உடல் எடை உடற்பயிற்சி)",
- "abs": "ஏபிஎச்",
- "arms": "ஆயுதங்கள்",
- "glutes": "க்ளூட்டுகள்",
- "gym_mat": "சிம் பாய்",
- "sz_bar": "Szar",
- "seconds": "நொடிகள்",
- "lb": "எல்.பி.",
- "back": "பின்",
- "barbell": "பார்பெல்",
- "bench": "பென்ச்",
- "biceps": "கயிறுகள்",
- "body_weight": "உடல் எடை",
- "calves": "கன்றுகள்",
- "cardio": "கார்டியோ",
- "chest": "மார்பு",
- "dumbbell": "டம்பல்",
- "hamstrings": "தொடை எலும்புகள்",
- "kilometers_per_hour": "ஒரு மணி நேரத்திற்கு கிலோமீட்டர்",
- "plates": "தட்டுகள்",
- "pull_up_bar": "பட்டியை இழுக்கவும்",
- "shoulders": "தோள்கள்",
- "swiss_ball": "சுவிச் பந்து",
- "until_failure": "தோல்வி வரை"
- },
- "licenses": {
- "authors": "ஆசிரியர் (கள்)",
- "authorProfile": "கிடைத்தால், ஆசிரியர் வலைத்தளம் அல்லது சுயவிவரத்திற்கான இணைப்பு",
- "derivativeSourceUrl": "அசல் மூலத்துடன் இணைக்கவும், இது ஒரு வழித்தோன்றல் வேலை என்றால்",
- "derivativeSourceUrlHelper": "ஒரு வழித்தோன்றல் வேலை என்பது முந்தைய படைப்பை அடிப்படையாகக் கொண்ட ஒன்றாகும், ஆனால் அதன் சொந்த பதிப்புரிமைக்கு உரிமை பெற போதுமான புதிய, ஆக்கபூர்வமான உள்ளடக்கத்தையும் கொண்டுள்ளது என்பதை நினைவில் கொள்க.",
- "originalObjectUrl": "கிடைத்தால், மூல வலைத்தளத்துடன் இணைக்கவும்",
- "originalTitle": "தலைப்பு"
- },
- "seeDetails": "விவரங்களைக் காண்க",
- "actions": "செயல்கள்",
- "notes": "குறிப்புகள்",
- "unit": "அலகு",
- "alsoSearchEnglish": "ஆங்கிலத்தில் பெயர்களையும் தேடுங்கள்",
- "copyToClipboard": "கிளிப்போர்டுக்கு நகலெடுக்கவும்",
- "images": "படங்கள்",
- "overview": "கண்ணோட்டம்",
- "goBack": "திரும்பிச் செல்லுங்கள்",
- "language": "மொழி",
- "save": "சேமி",
- "filters": "வடிப்பான்கள்",
- "videos": "வீடியோக்கள்",
- "noResults": "முடிவுகள் இல்லை",
- "translation": "மொழிபெயர்ப்பு",
- "English": "ஆங்கிலம்",
- "timeOfDay": "நாள் நேரம்",
- "close": "மூடு",
- "difference": "வேறுபாடு",
- "loading": "ஏற்றுகிறது ...",
- "addEntry": "உள்ளீட்டைச் சேர்க்கவும்",
- "value": "மதிப்பு",
- "downloadAsPdf": "PDF ஆக பதிவிறக்கவும்",
- "total": "மொத்தம்",
- "preferences": "விருப்பத்தேர்வுகள்",
- "continue": "தொடரவும்",
- "name": "பெயர்",
- "cannotBeUndone": "இந்த செயலை செயல்தவிர்க்க முடியாது.",
- "cancel": "ரத்துசெய்",
- "measurements": {
- "measurements": "அளவீடுகள்",
- "unitFormHelpText": "சி.எம் அல்லது % போன்ற வகை அளவிடப்படும் அலகு",
- "deleteInfo": "இது வகையையும் அதன் அனைத்து உள்ளீடுகளையும் நீக்கும்"
- },
- "nothingHereYet": "இன்னும் இங்கே எதுவும் இல்லை ...",
- "nothingHereYetAction": "தொடங்க செயல் பொத்தானை அழுத்தவும்",
- "lastHalfYear": "கடந்த 6 மாதங்கள்",
- "bmi": {
- "calculator": "பி.எம்.ஐ கால்குலேட்டர்",
- "obese": "பருமனான",
- "overweight": "அதிக எடை",
- "normal": "சாதாரண எடை",
- "underweight": "எடை குறைவாக",
- "result": "உங்கள் பி.எம்.ஐ {{value}}"
- },
- "no_entries_for_day": "இந்த நாளுக்கு உள்ளீடுகள் இல்லை",
- "height": "உயரம்",
- "cm": "முதல்வர்",
- "all": "அனைத்தும்",
- "lastYear": "கடந்த ஆண்டு",
- "lastMonth": "கடந்த மாதம்",
- "lastWeek": "கடந்த வாரம்",
- "entries": "உள்ளீடுகள்",
- "min": "மணித்துளி",
- "max": "அதிகபட்சம்",
- "calendar": "நாட்காட்டி",
- "editName": "திருத்து {{name}}",
- "start": "தொடங்கு",
- "end": "முடிவு",
- "comment": "கருத்து",
- "durationWeeks": "{{number}} வாரங்கள்",
- "undo": "செயல்தவிர்",
- "durationWeeksDays": "{{nrWeeks}} வாரங்கள், {{nrDays}} நாட்கள்",
- "successfullyDeleted": "வெற்றிகரமாக நீக்கப்பட்டது"
-}
diff --git a/wger/core/static/react/locales/tr/translation.json b/wger/core/static/react/locales/tr/translation.json
deleted file mode 100644
index 8776df1aa..000000000
--- a/wger/core/static/react/locales/tr/translation.json
+++ /dev/null
@@ -1,238 +0,0 @@
-{
- "add": "Ekle",
- "addEntry": "Giriş ekle",
- "close": "Kapat",
- "currentWeight": "Şu anki ağırlık",
- "date": "Tarih",
- "days": "Gün",
- "delete": "Sil",
- "difference": "Fark",
- "edit": "Düzenle",
- "exercises": {
- "alsoKnownAs": "Ayrıca şöyle bilinir:",
- "category": "Kategori",
- "contributeExercise": "Bir egzersize katkıda bulunun",
- "equipment": "Ekipman",
- "exercises": "Egzersizler",
- "missingExercise": "Bir egzersiz mi eksik?",
- "missingExerciseDescription": "Katkıda bulunarak topluluğa yardım edin!",
- "muscles": "Kaslar",
- "noEquipment": "Ekipman yok",
- "notes": "Notlar",
- "primaryMuscles": "Birincil kaslar",
- "searchExerciseName": "Egzersiz adına göre ara",
- "secondaryMuscles": "İkincil kaslar",
- "variations": "Varyasyonlar",
- "deleteTranslation": "Çeviriyi sil",
- "deleteExerciseFull": "Tüm egzersizi sil",
- "newNote": "Yeni not",
- "basics": "Temeller",
- "exerciseNotTranslatedBody": "Seçtiğiniz egzersiz şu anda dilinde mevcut değil. Çeviriye katkıda bulunmak ister misiniz?",
- "changeExerciseLanguage": "Egzersizin dilini değiştir",
- "exerciseNotTranslated": "Çeviri mevcut değil",
- "notEnoughRights": "Yalnızca hesabınız {{days}} günden eskiyse ve e-posta adresinizi doğruladıysanız egzersizlere katkıda bulunabilirsiniz",
- "description": "Açıklama",
- "notEnoughRightsHeader": "Egzersizlere katkıda bulunamazsın",
- "translateExerciseNow": "Bu egzersizi şimdi çevir",
- "checkInformationBeforeSubmitting": "Lütfen egzersinizi göndermeden önce girdiğiniz bilgilerin doğru olduğunu kontrol edin",
- "submitExercise": "Egzersizi gönder",
- "successfullyUpdated": "Egzersiz başarıyla güncellendi. Önbelleğe alma nedeniyle, değişikliklerin uygulama genelinde görünmesi biraz zaman alabilir.",
- "alternativeNames": "Alternatif isimler",
- "compatibleImagesCC": "Görseller CC BY SA lisansı ile uyumlu olmalıdır. Emin değilseniz, yalnızca kendi çektiğiniz fotoğrafları yükleyin.",
- "whatVariationsExist": "Varsa, bu alıştırmanın hangi varyasyonları mevcuttur?",
- "notesHelpText": "Notlar \"vücudunuzu dik tutun\" gibi egzersizin nasıl yapılacağına dair kısa yorumlardır",
- "filterVariations": "Varyasyonları filtrelemek için egzersiz adı girin",
- "deleteExerciseBody": "\"{{name}}\" egzersizini silmek istiyor musunuz? İster {{language}} çeviriyi silebilirsiniz, isterseniz alıştırmanın tamamını silebilirsiniz tüm çeviriler, resimler vb.",
- "step1HeaderBasics": "İngilizce'de temel bilgiler",
- "identicalExercisePleaseDiscard": "Eklediğiniz egzersizle aynı olan bir egzersiz fark ederseniz, lütfen taslağınızı atın ve bunun yerine o egzersizi düzenleyin.",
- "identicalExercise": "Yinelenen egzersizlerden kaçın",
- "cacheWarning": "Önbelleğe alma nedeniyle değişikliklerin uygulama genelinde görünür olması biraz zaman alabilir.",
- "replacements": "Değişimler",
- "replacementsInfoText": "İsteğe bağlı olarak, bunun yerine geçmesi gereken bir egzersiz de seçebilirsiniz (örneğin, iki kez gönderildiği için veya benzeri). Bu, egzersizi sadece silmek yerine programlarda ve antrenman günlüklerinde değiştirecektir. Bu değişiklikler, egzersizleri bununla eşzamanlayan diğer sunuculara da yayılacaktır.",
- "imageStyle3D": "3B",
- "imageStyleOther": "Diğer",
- "replacementsSearch": "Bir egzersiz arayın veya bilinen bir kimliği kopyalayıp alana yapıştırın ve \"yükle\" düğmesine tıklayın.",
- "noReplacementSelected": " Değişim için egzersiz seçilmedi",
- "deleteExerciseReplace": "Sil ve değiştir",
- "imageStylePhoto": "Fotoğraf",
- "imageStyleLine": "Çizgi",
- "imageStyleLowPoly": "Düşük poli",
- "imageDetails": "Resim ayrıntıları"
- },
- "noResults": "Sonuç yok",
- "noResultsDescription": "Bu sorgu için sonuç bulunamadı, filtre sayısını azaltmayı düşünün.",
- "nutritionalPlan": "Beslenme planı",
- "server": {
- "arms": "Kollar",
- "back": "Sırt",
- "barbell": "Halter",
- "bench": "Benç",
- "calves": "Baldırlar",
- "chest": "Göğüs",
- "description": "Açıklama",
- "dumbbell": "Dambıl",
- "gym_mat": "Spor paspası",
- "incline_bench": "Eğim tezgahı",
- "kettlebell": "Kettlebell",
- "kilometers": "Kilometre",
- "legs": "Bacaklar",
- "miles": "Mil",
- "minutes": "Dakika",
- "none_(bodyweight_exercise)": "hiçbiri (vücut ağırlığı egzersizi)",
- "pull-up_bar": "Barfiks çubuğu",
- "repetitions": "Tekrarlar",
- "seconds": "Saniye",
- "shoulders": "Omuzlar",
- "swiss_ball": "Egzersiz topu",
- "sz-bar": "SZ çubuğu",
- "until_failure": "Başarısızlığa kadar",
- "abs": "Karın",
- "lats": "Lat kasları",
- "glutes": "Kalça kasları",
- "biceps": "Pazılar",
- "lower_back": "Alt sırt",
- "hamstrings": "Hamstringler",
- "quads": "Quad kasları",
- "none__bodyweight_exercise_": "yok (vücut ağırlığı egzersizi)",
- "sz_bar": "Z bar",
- "pull_up_bar": "Barfiks çubuğu",
- "triceps": "Tricep kasları",
- "cardio": "Kardiyo",
- "miles_per_hour": "Mil/saat",
- "plates": "Tabaklar",
- "kg": "kg",
- "kilometers_per_hour": "Kilometre/saat",
- "max_reps": "Azami tekrar sayısı",
- "body_weight": "Vücut ağırlığı",
- "lb": "paunt"
- },
- "submit": "Gönder",
- "weight": "Ağırlık",
- "workout": "Antrenman",
- "category": "Kategori",
- "description": "Açıklama",
- "name": "İsim",
- "save": "Kaydet",
- "loading": "Yükleniyor...",
- "language": "Dil",
- "forms": {
- "supportedImageFormats": "Sadece 20 Mb'ın altındaki JPEG, PNG ve WEBP dosyaları desteklenir",
- "valueTooShort": "Değer çok kısa",
- "valueTooLong": "Değer çok uzun",
- "fieldRequired": "Bu alan gereklidir",
- "maxLength": "Lütfen {{chars}} karakterden daha az girin",
- "minLength": "Lütfen {{chars}} karakterden daha fazla girin",
- "minValue": "Bu alanın değeri {{value}} değerinden fazla olmalıdır",
- "maxValue": "Bu alanın değeri {{value}} değerinden az olmalıdır"
- },
- "preferences": "Tercihler",
- "continue": "Devam et",
- "overview": "Genel Bakış",
- "images": "Resimler",
- "English": "İngilizce",
- "goBack": "Sırt",
- "videos": "Videolar",
- "cancel": "İptal",
- "cannotBeUndone": "Bu eylem geri alınamaz.",
- "translation": "Çeviri",
- "success": "Başarılı!",
- "nutrition": {
- "goalProtein": "Protein hedefi",
- "searchIngredientName": "Malzeme adına göre ara",
- "protein": "Protein",
- "fibres": "Lifler",
- "valueRemaining": "kalan",
- "plans": "Beslenme planları",
- "useGoalsHelpText": "Bu plana hedefler ekleyin",
- "onlyLoggingHelpText": "Yalnızca kalori takibi yapın. Yalnızca kalorilerinizi kaydetmek istiyorsanız ve belirli öğünler içeren ayrıntılı bir beslenme planı oluşturmak istemiyorsanız kutuyu işaretleyin",
- "goalsTitle": "Hedefler",
- "goalEnergy": "Enerji hedefi",
- "goalCarbohydrates": "Karbonhidrat hedefi",
- "goalFat": "Yağ hedefi",
- "meal": "Yemek",
- "addNutritionalDiary": "Beslenme günlüğü girişi ekle",
- "addMeal": "Yemek ekle",
- "addMealItem": "Yemeğe malzeme ekle",
- "nutritionalDiary": "Beslenme günlüğü",
- "gramShort": "g",
- "kcal": "kilokalori",
- "valueEnergyKcal": "{{value}} kilokalori",
- "valueEnergyKcalKj": "{{kcal}} kilokalori / {{kj}} kJ",
- "7dayAvg": "7 günlük ortalama",
- "energy": "Enerji",
- "carbohydrates": "Karbonhidratlar",
- "sugar": "Şeker",
- "fat": "Yağ",
- "ofWhichSaturated": "kadarı doymuş",
- "saturatedFat": "Doymuş yağ",
- "sodium": "Sodyum",
- "pseudoMealTitle": "Diğer günlükler",
- "others": "Diğerleri",
- "diaryEntrySaved": "Günlük girişi başarıyla kaydedildi",
- "logThisMeal": "Bu öğünü olduğu gibi beslenme günlüğüne kaydet",
- "logThisMealItem": "Bu malzemeyi olduğu gibi beslenme günlüğüne kaydet",
- "valueTooMany": "çok fazla",
- "copyPlan": "Bu planın bir kopyasını oluştur",
- "plan": "Beslenme planı",
- "useGoalsHelpTextLong": "Bu, plan için enerji, protein, karbonhidrat veya yağ için genel hedefler belirlemenize olanak tanır. Ayrıntılı bir öğün planı ayarlarsanız, bu değerlerin öncelikli olacağını unutmayın.",
- "macronutrient": "Makro besin",
- "percentEnergy": "Enerji yüzdesi",
- "gPerBodyKg": "vücut ağırlığı-kg başına g",
- "planned": "Planlı",
- "logged": "Kaydedildi",
- "loggedToday": "Bugün kaydedildi",
- "difference": "Fark",
- "today": "Bugün",
- "ofWhichSugars": "kadarı şeker",
- "planDeleteInfo": "Bu, tüm beslenme günlüğü kayıtlarını da silecektir",
- "mealDeleteInfo": "Bu öğüne ait beslenme günlüğü kayıtları silinmeyecek ve \"diğer günlükler\" altında görünecektir",
- "goalFiber": "Lif hedefi"
- },
- "measurements": {
- "unitFormHelpText": "Kategorinin ölçüleceği birim, örneğin cm veya %",
- "measurements": "Ölçümler",
- "deleteInfo": "Bu, kategoriyi ve tüm girişlerini silecektir"
- },
- "licenses": {
- "derivativeSourceUrlHelper": "Türev bir çalışmanın yalnızca önceki bir çalışmaya dayanmakla kalmayıp, aynı zamanda kendi telif hakkına hak kazanması için yeterli yeni, yaratıcı içerik içeren bir çalışma olduğunu unutmayın.",
- "authors": "Yazar(lar)",
- "authorProfile": "Varsa yazarın web sitesinin veya profilinin bağlantısı",
- "derivativeSourceUrl": "Bu türev bir çalışma ise asıl kaynağın bağlantısı",
- "originalObjectUrl": "Varsa kaynak web sitesinin bağlantısı",
- "originalTitle": "Başlık"
- },
- "actions": "Hareketler",
- "value": "Değer",
- "nothingHereYet": "Burada henüz bir şey yok...",
- "nothingHereYetAction": "Başlamak için eylem düğmesine basın",
- "unit": "Birim",
- "alsoSearchEnglish": "Ayrıca İngilizce adları da arayın",
- "copyToClipboard": "Panoya kopyala",
- "routines": {
- "logsFilterNote": "Yalnızca kg veya paunt ağırlık birimi ve tekrarlar içeren girişlerin çizelgelendiğini, süre veya başarısızlığa kadar gibi diğer birleşimlerin burada göz ardı edildiğini unutmayın",
- "addLogToDay": "Bu güne günlük ekle",
- "routine": "Program",
- "routines": "Programlar",
- "rir": "RiR",
- "addDay": "Eğitim günü ekle",
- "addWeightLog": "Eğitim günlüğü ekle",
- "logsHeader": "Antrenman için eğitim günlüğü"
- },
- "timeOfDay": "Günün saati",
- "notes": "Notlar",
- "seeDetails": "Ayrıntıları gör",
- "total": "Toplam",
- "deleteConfirmation": "\"{{name}}\" silmek istediğinizden emin misiniz?",
- "downloadAsPdf": "PDF olarak indir",
- "filters": "Filtreler",
- "all": "Hepsi",
- "lastYear": "Geçen Yıl",
- "lastHalfYear": "Son 6 Ay",
- "lastMonth": "Geçen Ay",
- "height": "Boy",
- "cm": "cm",
- "lastWeek": "Geçen Hafta",
- "bmi": {
- "calculator": "VKE Hesaplayıcı"
- }
-}
diff --git a/wger/core/static/react/locales/uk/translation.json b/wger/core/static/react/locales/uk/translation.json
deleted file mode 100644
index e57953f4c..000000000
--- a/wger/core/static/react/locales/uk/translation.json
+++ /dev/null
@@ -1,339 +0,0 @@
-{
- "add": "Додати",
- "addEntry": "Додати запис",
- "currentWeight": "Поточна вага",
- "date": "Дата",
- "days": "Днів",
- "delete": "Видалити",
- "difference": "Різниця",
- "edit": "Змінити",
- "exercises": {
- "alsoKnownAs": "Також відома як:",
- "category": "Категорія",
- "contributeExercise": "Внести вправу",
- "description": "Опис",
- "equipment": "Спорядження",
- "exercises": "Вправи",
- "missingExercise": "Не вистачає певної вправи?",
- "missingExerciseDescription": "Допоможіть спільноті, зробивши свій внесок!",
- "muscles": "М'язи",
- "noEquipment": "Без спорядження",
- "notes": "Нотатки",
- "primaryMuscles": "Основні м'язи",
- "searchExerciseName": "Пошук за назвою вправи",
- "secondaryMuscles": "Вторинні м’язи",
- "basics": "Основи",
- "deleteExerciseFull": "Видалити всю вправу",
- "changeExerciseLanguage": "Змінити мову цієї вправи",
- "newNote": "Нова нотатка",
- "notesHelpText": "Нотатки є короткими коментарями щодо виконання вправи, таких як \"тримайте своє тіло прямо\"",
- "notEnoughRightsHeader": "Ви не можете додавати вправи",
- "notEnoughRights": "Ви можете додавати вправи, лише якщо ваш обліковий запис зареєстровано більше ніж {{days}} днів і ви підтвердили свою електронну адресу",
- "compatibleImagesCC": "Зображення мають бути сумісні з ліцензією CC BY SA. Якщо сумніваєтеся, завантажуйте лише фотографії, зроблені вами.",
- "alternativeNames": "Альтернативні назви",
- "submitExercise": "Надіслати вправу",
- "deleteTranslation": "Видалити переклад",
- "identicalExercisePleaseDiscard": "Якщо ви помітили вправу, ідентичну до тієї, яку ви додаєте, відкиньте чернетку та натомість відредагуйте цю вправу.",
- "translateExerciseNow": "Перекладіть цю вправу зараз",
- "step1HeaderBasics": "Основи англійської мови",
- "variations": "Варіації",
- "whatVariationsExist": "Які варіації цієї вправи існують, якщо такі є?",
- "filterVariations": "Введіть назву вправи, щоб відфільтрувати варіанти",
- "exerciseNotTranslated": "Немає перекладу",
- "successfullyUpdated": "Вправу успішно оновлено. Через кешування може знадобитися деякий час, перш ніж зміни стануть видимі у всьому застосунку.",
- "exerciseNotTranslatedBody": "Ця вправа наразі недоступна вибраною мовою. Хочете зробити переклад?",
- "deleteExerciseBody": "Ви бажаєте видалити вправу \"{{name}}\"? Ви можете видалити поточний переклад {{language}} або всю вправу з усіма перекладами, зображеннями тощо.",
- "checkInformationBeforeSubmitting": "Будь ласка, перевірте правильність введеної вами інформації, перш ніж надсилати вправу",
- "identicalExercise": "Уникайте повторюваних вправ",
- "cacheWarning": "Через кешування може знадобитися деякий час, поки зміни не будуть видимі у всьому застосунку.",
- "replacementsSearch": "Знайдіть вправу або скопіюйте та вставте відомий ідентифікатор у поле та натисніть кнопку «завантажити».",
- "deleteExerciseReplace": "Видалити і замінити",
- "imageStylePhoto": "Фото",
- "imageStyle3D": "3D",
- "imageStyleLine": "лінія",
- "imageStyleLowPoly": "Низький-полі",
- "imageStyleOther": "інше",
- "imageDetails": "Деталі зображення",
- "replacements": "Заміни",
- "replacementsInfoText": "За бажанням ви також можете вибрати вправу, яка має замінити цю вправу (наприклад, тому що її було подано двічі або подібне). Це замінить вправу в програмах, а також у журналах тренувань, а не просто видалить її. Ці зміни також поширюватимуться на будь-який екземпляр, який синхронізує вправи з цього.",
- "noReplacementSelected": " Жодна вправа не вибрана для заміни",
- "swapExercise": "Обмін вправи"
- },
- "noResults": "Немає результатів",
- "noResultsDescription": "Не знайдено результатів для даного запиту, подумайте про зменшення кількості фільтрів.",
- "nutritionalPlan": "План харчування",
- "server": {
- "arms": "Руки",
- "back": "Спина",
- "barbell": "Штанга",
- "bench": "Лавка",
- "calves": "Ікри",
- "chest": "Груди",
- "dumbbell": "Гантель",
- "gym_mat": "Килимок для спорту",
- "incline_bench": "Лавка похила",
- "kettlebell": "Гиря",
- "kilometers": "Кілометри",
- "legs": "Ноги",
- "miles": "Милі",
- "minutes": "Хвилини",
- "none_(bodyweight_exercise)": "немає (вправа з вагою тіла)",
- "pull-up_bar": "Перекладина",
- "repetitions": "Повтори",
- "seconds": "Секунди",
- "shoulders": "Плечі",
- "swiss_ball": "Гімнастичний м'яч",
- "sz-bar": "SZ гриф",
- "until_failure": "До невдачі",
- "pull_up_bar": "Підтягування на перекладині",
- "sz_bar": "Планка SZ",
- "none__bodyweight_exercise_": "немає (вправи з власною вагою)",
- "biceps": "Біцепс",
- "lower_back": "Поперек спини",
- "glutes": "Сідничні м’язи",
- "lats": "М'язи спини",
- "quads": "Квадрицепс",
- "triceps": "Трицепси",
- "abs": "Живіт",
- "hamstrings": "Підколінні сухожилля",
- "cardio": "Кардіо",
- "kg": "кг",
- "lb": "фунт",
- "body_weight": "Вага тіла",
- "kilometers_per_hour": "Кілометрів на годину",
- "miles_per_hour": "Миль на годину",
- "plates": "Пластини",
- "max_reps": "Максимальна кількість повторень"
- },
- "submit": "Надіслати",
- "weight": "Вага",
- "workout": "Тренування",
- "name": "Ім'я",
- "translation": "Переклад",
- "images": "Зображення",
- "language": "Мова",
- "description": "Опис",
- "forms": {
- "supportedImageFormats": "Підтримуються лише файли JPEG, PNG і WEBP розміром до 20 Мб",
- "valueTooShort": "Значення закоротке",
- "valueTooLong": "Значення задовге",
- "fieldRequired": "Це поле є обов'язковим",
- "maxValue": "Значення для цього поля має бути меншим за {{value}}",
- "maxLength": "Будь ласка, введіть менше {{chars} символів",
- "minLength": "Будь ласка, введіть більше {{chars}} символів",
- "minValue": "Значення для цього поля має бути більшим за {{value}}",
- "endBeforeStart": "Кінцеве значення не може передувати початку",
- "enterNumber": "Введіть дійсний номер",
- "maxLessThanMin": "Максимальне значення має бути більшим за мінімальне",
- "enterInteger": "Будь ласка, введіть ціле число"
- },
- "category": "Категорія",
- "cancel": "Скасувати",
- "English": "Англійська",
- "save": "Зберегти",
- "videos": "Відео",
- "cannotBeUndone": "Цю дію не можна скасувати.",
- "preferences": "Налаштування",
- "overview": "Огляд",
- "continue": "Продовжити",
- "goBack": "Іди назад",
- "loading": "Завантаження...",
- "success": "Успіх!",
- "routines": {
- "addDay": "Додати тренувальний день",
- "addWeightLog": "Додати журнал навчання",
- "addLogToDay": "Додати журнал до цього дня",
- "routine": "Рутина",
- "routines": "Рутини",
- "logsFilterNote": "Зверніть увагу, що на графіку відображаються лише записи з одиницею ваги кг або фунт і повтореннями, інші комбінації, такі як час або до відмови, тут ігноруються",
- "logsHeader": "Журнал тренувань для тренування",
- "rir": "RiR",
- "backToRoutine": "Назад до рутини",
- "templatesHelpText": "Шаблони - це спосіб зберегти вашу рутину для подальшого використання і як відправну точку для подальших рутин. Ви не можете редагувати шаблони, але ви можете дублювати їх і вносити зміни в копію (а також, звичайно, перетворювати їх назад у звичайну рутину).",
- "templates": "Шаблони",
- "markAsTemplate": "Керувати шаблоном",
- "intensity": "Інтенсивність",
- "currentRoutine": "Поточна рутина",
- "daily": "Щодня",
- "workoutNr": "Тренування № {{number}}",
- "weekNr": "Тиждень {{number}}",
- "maxLengthRoutine": "Процедура може тривати щонайбільше {{number}} тижнів",
- "deleteDayConfirmation": "Це видалить усі підходи, вправи та правила прогресу",
- "routineHasNoDays": "Розпорядок дня не має",
- "setHasNoExercises": "Цей комплекс не містить вправ",
- "needsLogsToAdvance": "Для просування потрібні журнали",
- "addSuperset": "Додайте надмножину",
- "addExercise": "Додайте вправи",
- "exerciseNr": "Вправа {{number}}",
- "supersetNr": "Суперсет {{number}}",
- "editProgression": "Редагувати прогрес",
- "exerciseHasProgression": "Ця вправа має правила прогресу, і її не можна редагувати тут. Для цього натисніть кнопку.",
- "defaultRounding": "Округлення за замовчуванням",
- "newDay": "Новий день",
- "weightLogNotPlanned": "Збереження журналів до дати, на яку не було заплановано тренувань.",
- "logsOverview": "Огляд журналів",
- "alsoShowLogs": "Також показати журнали",
- "simpleMode": "Простий режим",
- "downloadPdfTable": "Завантажити PDF (таблиця)",
- "impression": "Загальне враження",
- "impressionGood": "Добре",
- "impressionNeutral": "Нейтральний",
- "impressionBad": "Погано",
- "addAdditionalLog": "Додати додатковий журнал",
- "step": "Крок",
- "requirements": "Вимоги",
- "template": "Шаблон",
- "publicTemplate": "Загальнодоступний шаблон",
- "set": {
- "type": "Тип",
- "dropSet": "Дроп набір",
- "myo": "МІО",
- "partial": "Частковий",
- "forced": "Примусово",
- "tut": "TUT",
- "iso": "ISO",
- "jump": "Стрибок",
- "normalSet": "Звичайний комплект"
- },
- "confirmRestDay": "Підтвердити зміну дня відпочинку",
- "iteration": "Ітерація",
- "copyAndUseTemplate": "Скопіюйте та використовуйте шаблон",
- "volume": "Обсяг",
- "sets": "Набори",
- "repeatHelpText": "Поставте прапорець, якщо ви хочете, щоб це правило продовжувало застосовуватися до наступних тренувань, доки ви не визначите нове",
- "restDay": "День відпочинку",
- "progressionNeedsReplace": "Один із попередніх записів має мати операцію заміни",
- "reps": "Повторення",
- "weekly": "Щотижня",
- "restTime": "Час відпочинку",
- "requirementsHelpText": "Виберіть результати тренування (з попередніх журналів), які мають бути виконані, щоб це правило вступило в силу",
- "minLengthRoutine": "Розпорядок має тривати принаймні {{number}} тижнів",
- "confirmRestDayHelpText": "Будь ласка, зверніть увагу, що всі комплекси та вправи будуть видалені, коли ви позначите день як вихідний.",
- "resultingRoutine": "Результативна рутина",
- "fitDaysInWeek": "Відповідні дні тижня",
- "fitDaysInWeekHelpText": "Цей параметр визначає, як дні вашої рутини будуть розписані на кілька тижнів. Якщо увімкнено, дні повторюватимуться у тижневому циклі. Наприклад, тренування у понеділок, середу та п'ятницю продовжуватимуться за такою схемою наступного понеділка, середи та п'ятниці. Якщо цю опцію вимкнено, дні повторюватимуться послідовно, незалежно від початку нового тижня. Це корисно для тренувань, які не дотримуються суворого тижневого розкладу.",
- "needsLogsToAdvanceHelpText": "Якщо ви виберете цю опцію, тренування перейде до наступного запланованого дня, тільки якщо ви зареєстрували тренування на поточний день. Якщо цю опцію не вибрано, тренування автоматично перейде на наступний день, незалежно від того, чи ви зареєстрували тренування, чи ні.",
- "rounding": "Округлення (ця вправа)",
- "roundingHelp": "Встановіть округлення за замовчуванням для ваги та повторень (це особливо корисно при використанні кроку збільшення у відсотках у прогресії). Це буде застосовано до всіх нових наборів, але може бути змінено індивідуально у формі прогресії. Залиште поле порожнім, щоб вимкнути округлення.",
- "downloadIcal": "Завантажте файл iCal",
- "statsOverview": "Статистика",
- "duplicate": "Дубльована процедура",
- "downloadPdfLogs": "Завантажити PDF (журнали)",
- "impressionHelpText": "У цій формі записуються результати тренування (кількість повторень, вага тощо) для кожної вправи. Зміни, які ви вносите тут, наприклад, видалення або заміна вправ, впливають лише на конкретні журнали, які ви зберігаєте, і не змінюють вашу загальну рутину. Зберігаються лише рядки зі значеннями ваги або повторень.",
- "operation": "Операція",
- "publicTemplates": "Публічні шаблони",
- "repeat": "Правило повторення",
- "publicTemplateHelpText": "Публічні шаблони доступні всім користувачам.",
- "workoutSession": "Сеанс тренування"
- },
- "seeDetails": "Дивітити подробиці",
- "actions": "Дії",
- "notes": "Нотатки",
- "value": "Значення",
- "unit": "Одиниця",
- "measurements": {
- "measurements": "Вимірювання",
- "unitFormHelpText": "Одиниця, в якій буде вимірюватися категорія, наприклад, см або %",
- "deleteInfo": "Це призведе до видалення категорії та всіх її записів"
- },
- "deleteConfirmation": "Ви дійсно хочете видалити \"{{name}}\"?",
- "licenses": {
- "authorProfile": "Посилання на веб-сайт або профіль автора, якщо є",
- "originalTitle": "Назва",
- "derivativeSourceUrl": "Посилання на першоджерело, якщо це похідна робота",
- "derivativeSourceUrlHelper": "Зауважте, що похідна робота – це робота, яка не тільки базується на попередній роботі, але й містить достатню кількість нового, творчого вмісту, щоб надати їй власне авторське право.",
- "authors": "Автор(и)",
- "originalObjectUrl": "Посилання на веб-сайт джерела, якщо є"
- },
- "copyToClipboard": "Копіювати в буфер обміну",
- "nutrition": {
- "kcal": "ккал",
- "gramShort": "г",
- "nutritionalDiary": "щоденник харчування",
- "valueTooMany": "занадто багато",
- "plan": "План харчування",
- "useGoalsHelpTextLong": "Це дозволяє встановити загальні цілі щодо енергії, білка, вуглеводів або жиру для плану. Зауважте, що якщо ви налаштуєте детальний план харчування, ці значення матимуть перевагу.",
- "7dayAvg": "7-середньоденний",
- "gPerBodyKg": "г на тіло-кг",
- "loggedToday": "Зареєстровано сьогодні",
- "sugar": "Цукор",
- "today": "Сьогодні",
- "difference": "Різниця",
- "valueRemaining": "залишилося",
- "pseudoMealTitle": "Інші колоди",
- "ofWhichSaturated": "з яких насичений",
- "plans": "Плани харчування",
- "copyPlan": "Зробіть копію цього плану",
- "goalEnergy": "Енергетична мета",
- "meal": "харчування",
- "valueEnergyKcalKj": "{{kcal}} ккал / {{kj}} кДж",
- "logged": "Зареєстровано",
- "planned": "Планується",
- "planDeleteInfo": "Це також видалить усі записи щоденника харчування",
- "logThisMeal": "Запишіть цю їжу як є в щоденник харчування",
- "addNutritionalDiary": "Додайте запис у щоденник харчування",
- "addMeal": "Додати їжу",
- "valueEnergyKcal": "{{value}} ккал",
- "fat": "Жир",
- "logThisMealItem": "Запишіть цей інгредієнт як є в щоденник харчування",
- "diaryEntrySaved": "Запис щоденника успішно збережено",
- "saturatedFat": "Насичені жири",
- "addMealItem": "Додати інгредієнт до їжі",
- "onlyLoggingHelpText": "Слідкуйте лише за калоріями. Поставте прапорець, якщо ви хочете лише реєструвати свої калорії та не хочете встановлювати детальний план харчування з певними стравами",
- "useGoalsHelpText": "Додайте цілі до цього плану",
- "goalFat": "Товстий гол",
- "goalFiber": "Волокно гол",
- "goalsTitle": "Цілі",
- "macronutrient": "Макроелемент",
- "carbohydrates": "Вуглеводи",
- "protein": "Білок",
- "others": "Інші",
- "energy": "Енергія",
- "percentEnergy": "Відсоток енергії",
- "searchIngredientName": "Пошук за назвою інгредієнта",
- "goalProtein": "Білкова мета",
- "goalCarbohydrates": "Мета вуглеводів",
- "mealDeleteInfo": "Записи щоденника харчування для цього прийому їжі не будуть видалені та відображатимуться в «інших журналах»",
- "sodium": "Натрію",
- "fibres": "Волокна",
- "ofWhichSugars": "з них цукрів"
- },
- "timeOfDay": "Час доби",
- "close": "Закрити",
- "alsoSearchEnglish": "Також шукайте імена англійською мовою",
- "downloadAsPdf": "Завантажити як PDF",
- "total": "Всього",
- "height": "Висота",
- "cm": "см",
- "all": "Всі",
- "lastYear": "Минулого року",
- "lastHalfYear": "Останні 6 місяців",
- "lastMonth": "Останній місяць",
- "lastWeek": "Минулий тиждень",
- "nothingHereYet": "Тут ще нічого...",
- "nothingHereYetAction": "Щоб почати, натисніть кнопку дії",
- "filters": "Фільтри",
- "bmi": {
- "obese": "Ожиріння",
- "overweight": "Надмірна вага",
- "calculator": "Калькулятор ІМТ",
- "underweight": "Недостатня вага",
- "normal": "Нормальна вага",
- "result": "Ваш ІМТ становить {{value}}"
- },
- "calendar": "Календар",
- "entries": "Записи",
- "no_entries_for_day": "Немає записів на цей день",
- "comment": "Коментар",
- "editName": "Редагувати {{name}}",
- "start": "Старт",
- "end": "Кінець",
- "min": "Мін",
- "max": "Макс",
- "durationWeeks": "{{number}} тижнів",
- "undo": "Відмініти",
- "successfullyDeleted": "Успішно вилучено",
- "durationWeeksDays": "{{nrWeeks}} тижнів, {{nrDays}} днів",
- "private": "Приватний",
- "public": "Громадськість"
-}
diff --git a/wger/core/static/react/locales/uz/translation.json b/wger/core/static/react/locales/uz/translation.json
deleted file mode 100644
index e24a91649..000000000
--- a/wger/core/static/react/locales/uz/translation.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "editName": "{{name}} tahrirlash",
- "filters": "Filtrlar",
- "days": "Kunlar",
- "lastMonth": "Oxirgi oy",
- "height": "Bo'y",
- "submit": "Yuborish",
- "weight": "Og'irlik",
- "alsoSearchEnglish": "Ingliz tilidagi nomlarni ham qidiring",
- "copyToClipboard": "Buferga nusxalash",
- "licenses": {
- "derivativeSourceUrlHelper": "Diqqat, nusxa(derivativ) asar — bu nafaqat oldingi asarga asoslangan, balki o‘zining mualliflik huquqiga ega bo‘lishi uchun yetarlicha yangi va ijodiy tarkibga ega bo‘lgan asardir.",
- "authors": "Muallif(lar)",
- "authorProfile": "Agar mavjud bo'lsa, muallif veb-saytiga yoki profiliga havola",
- "derivativeSourceUrl": "Agar bu asar boshqa manbaga asoslangan bo‘lsa (nusxa ko‘chirilgan), asl manbaga havola qoldiring.",
- "originalObjectUrl": "Agar mavjud bo'lsa, manba veb-saytiga link",
- "originalTitle": "Sarlavha"
- },
- "lastYear": "O'tkan yili",
- "difference": "Farq",
- "cm": "cm",
- "edit": "Tahrirlash",
- "deleteConfirmation": "Haqiqatan ham “{{name}}”ni o‘chirib tashlamoqchimisiz?",
- "exercises": {
- "replacementsInfoText": "Ixtiyoriy ravishda, siz ushbu mashq o'rniga qo'yilishi kerak bo'lgan mashqni ham tanlashingiz mumkin (masalan, u ikki marta topshirilganligi yoki shunga o'xshash sabablarga ko'ra). Bu mashqni shunchaki o'chirish o'rniga, mashqlar rejalarida hamda mashqlar jurnallarida almashtiradi. Bu o'zgarishlar ushbu mashqdan sinxronlashtirilgan har qanday nusxaga ham tarqaladi.",
- "replacements": "Almashtirishlar",
- "replacementsSearch": "Mashqni qidiring yoki ma'lum IDni maydonga nusxalab joylashtiring va \"yuklash\" tugmasini bosing.",
- "noReplacementSelected": " O'rniga qo'yish uchun mashq tanlanmadi.",
- "contributeExercise": "Mashq qo'shing",
- "step1HeaderBasics": "Asoslar Ingliz tilida",
- "variations": "Variantlar"
- },
- "end": "Tugatish",
- "date": "Sana",
- "timeOfDay": "Kun vaqti",
- "delete": "Oʻchirish",
- "add": "Qo'shish",
- "close": "Yopish",
- "all": "Hammasi",
- "lastHalfYear": "Oxirgi 6 oy",
- "lastWeek": "O'tkan hafta",
- "start": "Boshlash",
- "loading": "Yuklanmoqda...",
- "nutritionalPlan": "Muvozanatli ovqatlanish dasturi",
- "addEntry": "Ma'lumot qo‘shish",
- "currentWeight": "Hozirgi vazn",
- "workout": "Zal mashg‘uloti",
- "seeDetails": "Batafsil ko‘rish",
- "actions": "Buyruqlar",
- "nothingHereYet": "Bu yerda hali hech narsa...",
- "nothingHereYetAction": "Boshlash uchun harakat tugmasini bosing",
- "notes": "Eslatmalar",
- "value": "Qiymat",
- "unit": "Birlik",
- "comment": "Izoh"
-}
diff --git a/wger/core/static/react/locales/vi/translation.json b/wger/core/static/react/locales/vi/translation.json
deleted file mode 100644
index 8c0555c53..000000000
--- a/wger/core/static/react/locales/vi/translation.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "weight": "cân nặng",
- "date": "ngày",
- "submit": "nộp",
- "delete": "xóa bỏ",
- "edit": "biên tập",
- "add": "thêm vào",
- "currentWeight": "cân nặng hiện tại",
- "workout": "Bài tập",
- "licenses": {
- "authors": "Tác giả",
- "originalObjectUrl": "Đường dẫn tới website gốc, nếu có",
- "originalTitle": "Tựa",
- "authorProfile": "Đường dẫn tới web hay profile của tác giả hay, nếu có",
- "derivativeSourceUrl": "Đường dẫn tới nguồn chính gốc, nếu đây là sản phẩm phái sinh",
- "derivativeSourceUrlHelper": "Chú ý nếu sản phẩm phái sinh không chỉ là sản phẩm dựa vào những sản phẩm trước mà nó cũng có những thứ mới, nội dung sáng tạo để tự có bản quyền của mình"
- },
- "addEntry": "Thêm hạng mục",
- "exercises": {
- "noReplacementSelected": " Không có bài tập đã chọn để thay thế",
- "muscles": "Cơ chính",
- "filterVariations": "Nhập tên bài tập để lọc các biến thể",
- "notes": "Ghi chú",
- "checkInformationBeforeSubmitting": "Vui lòng kiểm tra các dữ liệu bạn nhập trước khi gửi bài tập",
- "alsoKnownAs": "Còn được biết là:",
- "primaryMuscles": "Các cơ chính",
- "deleteExerciseFull": "Xóa toàn bộ bài tập",
- "deleteTranslation": "Xóa bản dịch",
- "secondaryMuscles": "Cơ phụ",
- "whatVariationsExist": "Bài tập này có biến thể nào không?",
- "alternativeNames": "Tên khác",
- "submitExercise": "Gửi bài tập",
- "description": "Mô tả",
- "exerciseNotTranslatedBody": "Bài tập này không có sẵn trong ngôn ngữ đã chọn. Bạn có muốn đóng góp dịch?",
- "notEnoughRightsHeader": "Bạn không thể đóng góp các bài tập",
- "basics": "Cơ bản bài tập",
- "equipment": "Thiết bị",
- "step1HeaderBasics": "Tên đơn giản trong tiếng Anh",
- "notEnoughRights": "Bạn chỉ có thể đóng góp các bài tập nếu tài khoản của bạn tạo được nhiều hơn {{days}} ngày và đã xác nhận email",
- "successfullyUpdated": "Bài tập đã được cập nhật. Bởi vì cache nên sẽ mất chút thời gian để thay đổi được cập nhật trên ứng dụng.",
- "exerciseNotTranslated": "Không có dịch",
- "replacements": "Các bài tập thay thế",
- "replacementsInfoText": "Bạn có thể lựa bài tập thay thế. Nó sẽ thay thế bài tập trong buổi tập cũng như trong nhật ký tập thay vì xóa nó đi. Những thay đổi này cũng áp dụng tới tất cả những dữ liệu có liên quan tới bài tập này",
- "deleteExerciseBody": "Bạn có muốn xóa bài tập \"{{name}}\". Bạn có thể xóa bản dịch tiếng {{language}} hiện tại hoặc xóa toàn bộ bài tập.",
- "replacementsSearch": "Tìm kiếm một bài tập hoặc nhập ID vào sau đó bấm nút \"Tải\"",
- "contributeExercise": "Đóng góp một bài tập",
- "variations": "Các biến thể",
- "identicalExercise": "Tránh các bài tập bị trùng",
- "identicalExercisePleaseDiscard": "Nếu bạn thấy bài tập này giống bài tập bạn đang muốn đóng góp, hãy bỏ bản nháp bạn đang làm và cập nhật lại bài tập đó.",
- "translateExerciseNow": "Dịch bài tập này",
- "compatibleImagesCC": "Hình ảnh phải tuân thủ bản quyền CC BY SA. Nếu có nghi ngờ, hãy tải lên những hình ảnh bạn tự chụp.",
- "cacheWarning": "Bởi vì cache nên có thể thay đổi phải mất một chút thời gian để được cập nhật."
- },
- "difference": "Thay đổi",
- "days": "Ngày",
- "timeOfDay": "Giờ",
- "close": "Đóng",
- "alsoSearchEnglish": "Tìm kiếm thên bằng tiếng Anh",
- "seeDetails": "Xem chi tiết",
- "deleteConfirmation": "Bạn chắc chắc muốn xóa \"{{name}}\"?",
- "loading": "Đang tải...",
- "nutritionalPlan": "Kế hoạch dinh dưỡng",
- "nothingHereYet": "Để trống...",
- "nothingHereYetAction": "Bấm nút Hành động để bắt đầu",
- "notes": "Ghi chú",
- "value": "Giá trị",
- "actions": "Tác vụ",
- "unit": "Đơn vị tính",
- "copyToClipboard": "Lưu vào clipboard"
-}
diff --git a/wger/core/static/react/locales/zh_Hans/translation.json b/wger/core/static/react/locales/zh_Hans/translation.json
deleted file mode 100644
index 1d5d21217..000000000
--- a/wger/core/static/react/locales/zh_Hans/translation.json
+++ /dev/null
@@ -1,336 +0,0 @@
-{
- "weight": "重量",
- "submit": "提交",
- "edit": "编辑",
- "add": "添加",
- "difference": "差异",
- "days": "天数",
- "nutritionalPlan": "饮食计划",
- "addEntry": "添加条目",
- "currentWeight": "目前重量",
- "workout": "训练",
- "date": "日期",
- "delete": "删除",
- "exercises": {
- "primaryMuscles": "主动肌",
- "secondaryMuscles": "次动肌",
- "searchExerciseName": "按动作名称搜索",
- "alsoKnownAs": "也被称为:",
- "notes": "注",
- "description": "描述",
- "contributeExercise": "添加一个新动作",
- "exercises": "动作",
- "missingExercise": "缺少某项动作?",
- "missingExerciseDescription": "通过添加贡献来帮助社区!",
- "category": "类别",
- "muscles": "肌肉",
- "noEquipment": "无器械",
- "equipment": "器械",
- "replacementsSearch": "搜寻训练或将已知 ID 复制并贴上到栏位中,然后按一下「载入」按钮。",
- "identicalExercise": "避免重复训练",
- "imageStyleLowPoly": "低多边形",
- "imageStylePhoto": "照片",
- "imageStyle3D": "3D",
- "imageStyleLine": "行",
- "replacements": "替代品",
- "step1HeaderBasics": "基础数据(英文)",
- "notEnoughRightsHeader": "你不能贡献训练",
- "checkInformationBeforeSubmitting": "请在提交训练之前,核实输入的信息",
- "exerciseNotTranslated": "没有可用的翻译",
- "deleteExerciseReplace": "删除并替换",
- "imageDetails": "图片详情",
- "filterVariations": "输入训练名称来过滤变体",
- "translateExerciseNow": "立即翻译此训练",
- "alternativeNames": "别称",
- "submitExercise": "提交训练",
- "successfullyUpdated": "训练已成功更新。由于缓存中,改变可能需要一些时间才能在应用程式显示。",
- "basics": "基础",
- "deleteTranslation": "删除翻译",
- "deleteExerciseFull": "删除整个训练",
- "changeExerciseLanguage": "更改此训练的语言",
- "notEnoughRights": "只有当您的帐户已超过 {days} 天并且已验证您的电子邮件时,您才可以贡献训练",
- "identicalExercisePleaseDiscard": "如果你注意到已有训练跟你要添加的练习相同,请丢弃草稿并编辑该训练。",
- "compatibleImagesCC": "影像必须与 CC BY SA 授权相容。如有疑问,请仅上传你自己拍摄的照片。",
- "replacementsInfoText": "你也可以选择一个训练取替这个训练(例如,因为它被提交了两次,或类似情况)。这将取代日常训练和训练日志中的训练,而不仅仅是删除它。这些变更还将传播到同步此训练的任何实例。",
- "noReplacementSelected": " 没有选择训练作替代",
- "variations": "变体",
- "whatVariationsExist": "此练习有哪些变体(如果有)?",
- "cacheWarning": "由于缓存中,改变可能需要一些时间才能在应用程式显示。",
- "exerciseNotTranslatedBody": "此训练没有当前选择的语言。你想贡献翻译吗?",
- "deleteExerciseBody": "你要删除“ {{name}}”训练吗?你可以删除当前{{language}}翻译或带有翻译,图像等的完整的训练。",
- "newNote": "新笔记",
- "notesHelpText": "笔记是关于如何训练的简短评论,例如「保持身体挺直」",
- "imageStyleOther": "其它",
- "swapExercise": "切换练习"
- },
- "server": {
- "arms": "手臂",
- "dumbbell": "哑铃",
- "gym_mat": "体操垫",
- "back": "背部",
- "incline_bench": "倾斜卧推架",
- "kettlebell": "壶铃",
- "pull-up_bar": "单杠",
- "sz-bar": "SZ 杠铃",
- "swiss_ball": "健身球",
- "none_(bodyweight_exercise)": "无(自重动作)",
- "kilometers": "千米",
- "miles": "英里",
- "minutes": "分钟",
- "repetitions": "重复次数",
- "seconds": "秒",
- "until_failure": "直到失败",
- "bench": "卧推架",
- "calves": "小腿",
- "chest": "胸部",
- "legs": "腿部",
- "shoulders": "肩部",
- "barbell": "杠铃",
- "body_weight": "体重",
- "hamstrings": "大腿后侧",
- "biceps": "肱二头肌",
- "max_reps": "最大次数",
- "kilometers_per_hour": "千米每小时",
- "kg": "千克",
- "abs": "腹",
- "plates": "杠铃片",
- "quads": "大腿前侧",
- "lb": "磅",
- "lats": "背阔肌",
- "cardio": "有氧",
- "pull_up_bar": "引体向上杆",
- "triceps": "肱三头肌",
- "none__bodyweight_exercise_": "无(自重训练)",
- "glutes": "臀",
- "miles_per_hour": "迈",
- "sz_bar": "W型弯曲杆"
- },
- "noResults": "无结果",
- "noResultsDescription": "找不到此查询的结果,请考虑减少过滤器的数量。",
- "loading": "加载中…",
- "deleteConfirmation": "你确定要删除 \"{{name}}\"吗?",
- "seeDetails": "查看详情",
- "licenses": {
- "authors": "作者",
- "derivativeSourceUrlHelper": "请注意,衍生作品不仅基于先前的作品,而且还包含足够的新创意内容,使其享有自己的版权。",
- "originalTitle": "标题",
- "authorProfile": "作者网站或个人资料的连结(如果有)",
- "derivativeSourceUrl": "如果这是衍生作品,请连结到原始来源",
- "originalObjectUrl": "来源网站的连结(如果有)"
- },
- "actions": "行动",
- "notes": "笔记",
- "value": "数值",
- "copyToClipboard": "复制",
- "nutrition": {
- "plan": "营养计划",
- "copyPlan": "复制此计划",
- "plans": "营养计划",
- "onlyLoggingHelpText": "只记录卡路里。如果你只想记录卡路里但不想设计有特定膳食的详细营养计划,请选中此框",
- "useGoalsHelpTextLong": "这允许你为热量、蛋白质碳水或者脂肪设立一个总体目标。请注意,如果你设计的健身餐计划非常详细,那将以彼为准。",
- "difference": "差异",
- "logThisMealItem": "将该营养成分就这样记录营养日记中",
- "goalFat": "脂肪目标",
- "goalEnergy": "能量目标",
- "addNutritionalDiary": "添加营养日记项目",
- "meal": "一餐",
- "goalFiber": "膳食纤维目标",
- "searchIngredientName": "以营养成分搜索",
- "macronutrient": "常量元素",
- "sugar": "糖类",
- "sodium": "钠",
- "planDeleteInfo": "这还会删掉所有营养日记项目",
- "diaryEntrySaved": "日记项目成功保存",
- "valueTooMany": "太多",
- "goalProtein": "蛋白质目标",
- "goalCarbohydrates": "碳水目标",
- "nutritionalDiary": "营养日记",
- "gramShort": "克",
- "kcal": "千卡",
- "gPerBodyKg": "克(按每公斤体重计算)",
- "percentEnergy": "能量百分比",
- "planned": "已计划",
- "today": "今日",
- "7dayAvg": "七日平均",
- "energy": "能量",
- "protein": "蛋白质",
- "ofWhichSugars": "糖",
- "saturatedFat": "饱和脂肪",
- "pseudoMealTitle": "其他记录",
- "others": "其它",
- "fibres": "纤维素",
- "mealDeleteInfo": "这一餐的营养日记项目将不会被删除,而会出现在“其他记录”中",
- "logThisMeal": "将这一餐原样记录在营养日记中",
- "valueRemaining": "剩下的",
- "addMeal": "添加一餐",
- "goalsTitle": "目标",
- "addMealItem": "向一餐添加营养成分",
- "valueEnergyKcal": "{{value}} 千卡",
- "valueEnergyKcalKj": "{{kcal}}千卡/ {{kj}}千焦",
- "logged": "已记录",
- "loggedToday": "今日已记录",
- "carbohydrates": "碳水化合物",
- "useGoalsHelpText": "向此计划添加目标",
- "fat": "脂肪",
- "ofWhichSaturated": "(饱和)"
- },
- "total": "总共",
- "description": "描述",
- "category": "类别",
- "name": "名称",
- "save": "保存",
- "timeOfDay": "时间",
- "close": "关闭",
- "alsoSearchEnglish": "同时搜寻英文名称",
- "nothingHereYet": "这里什么都没有...",
- "nothingHereYetAction": "按动作按钮开始",
- "unit": "单位",
- "filters": "过滤器",
- "downloadAsPdf": "下载 PDF 格式",
- "forms": {
- "supportedImageFormats": "仅支持20MB以下的 JPEG、PNG及WEBP文件",
- "valueTooShort": "此项过短",
- "valueTooLong": "此项过长",
- "fieldRequired": "此项必填",
- "maxLength": "请勿超过{{chars}}字",
- "minLength": "请勿少于{{chars}}字",
- "maxValue": "此项必须小于{{value}}",
- "minValue": "此项必须大于{{value}}",
- "enterInteger": "请输入全数字",
- "maxLessThanMin": "最大值应大于最小值",
- "enterNumber": "请输入有效数值",
- "endBeforeStart": "结束数值必须大于开始数值"
- },
- "routines": {
- "addDay": "添加训练日",
- "rir": "保留次数",
- "logsHeader": "训练日志",
- "addLogToDay": "向此日添加记录",
- "routines": "日常",
- "logsFilterNote": "注意仅有带有重量及次数的项目能被可视化,诸如时间和力竭的组合则不然",
- "addWeightLog": "添加训练记录",
- "routine": "日常",
- "intensity": "强度",
- "currentRoutine": "当前计划",
- "volume": "卷",
- "iteration": "重复次数",
- "daily": "日",
- "weekNr": "周 {{number}}",
- "backToRoutine": "返回 routine",
- "minLengthRoutine": "此计划至少需要持续 {{number}} 周",
- "maxLengthRoutine": "此计划最多持续 {{number}} 周",
- "deleteDayConfirmation": "这将移除所有训练计划、训练内容与训练进度信息",
- "routineHasNoDays": "此计划不包含任何日期",
- "setHasNoExercises": "此计划没有任何练习",
- "fitDaysInWeek": "每周练习天数",
- "weekly": "周",
- "restTime": "休息时间",
- "sets": "组",
- "workoutNr": "训练计划 Nr. {{number}}",
- "fitDaysInWeekHelpText": "此设置可控制例程天数在多个星期内的安排方式。如果启用,工作日将以周为周期重复。例如,在周一、周三和周五进行锻炼的例程,将在下周的周一、周三和周五继续这种模式。如果禁用,则各天将按顺序进行,而不考虑新一周的开始。这对于没有严格周计划的例程非常有用。",
- "reps": "重复次数",
- "resultingRoutine": "生成的训练计划",
- "needsLogsToAdvanceHelpText": "如果您选择此选项,只有在记录了当天的训练后,训练计划才会推进到下一个预定日期。如果不选择此选项,无论您是否记录了训练,训练计划都会自动推进到下一天。",
- "needsLogsToAdvance": "需要记录训练才能推进",
- "addSuperset": "添加超级组",
- "addExercise": "添加训练动作",
- "exerciseNr": "训练动作 {{number}}",
- "supersetNr": "超级组 {{number}}",
- "editProgression": "编辑进阶设置",
- "progressionNeedsReplace": "其中一个项目必须包含替换操作",
- "exerciseHasProgression": "此训练动作设有进阶规则,无法在此处编辑。如需编辑,请点击按钮。",
- "defaultRounding": "默认取整",
- "rounding": "取整(本训练动作)",
- "roundingHelp": "设置重量和次数的默认取整方式(在进阶设置中使用百分比递增步骤时,此功能尤为实用)。该设置将应用于所有新组,但可在进阶表单中单独修改。留空则禁用取整功能。",
- "newDay": "新的一天",
- "weightLogNotPlanned": "将日志保存到未计划训练的日期。",
- "logsOverview": "记录概览",
- "alsoShowLogs": "显示日志",
- "statsOverview": "统计",
- "simpleMode": "简单模式",
- "workoutSession": "训练时段",
- "restDay": "休息日",
- "confirmRestDay": "确认变更休息日",
- "confirmRestDayHelpText": "请注意,当您将某一天标记为休息日时,所有训练组和训练动作都将被移除。",
- "duplicate": "复制训练计划",
- "downloadPdfTable": "下载PDF(表格)",
- "downloadPdfLogs": "下载PDF(记录)",
- "downloadIcal": "下载iCal文件",
- "impression": "总体感受",
- "impressionGood": "佳",
- "impressionNeutral": "一般",
- "impressionBad": "不好",
- "impressionHelpText": "此表单用于记录每个训练动作的锻炼结果(次数、重量等)。您在此处的修改(如移除或调换训练动作)仅会影响您所保存的特定日志,不会改变整体训练计划。仅保存重量或次数栏有值的行。",
- "addAdditionalLog": "添加额外日志",
- "operation": "操作",
- "step": "步骤",
- "requirements": "要求",
- "requirementsHelpText": "选择必须满足的训练结果(来自之前的日志),此规则才能生效",
- "repeat": "重复规则",
- "repeatHelpText": "若您希望此规则在定义新规则前持续应用于后续训练,请勾选复选框",
- "markAsTemplate": "管理模板",
- "template": "模板",
- "templates": "模板",
- "publicTemplate": "公开模板",
- "publicTemplates": "公开模板",
- "templatesHelpText": "模板是一种保存您的训练计划以供日后使用的方式,也可作为制定其他训练计划的起点。您无法编辑模板,但可以复制它们并对副本进行修改(当然,也可以将副本转换回常规训练计划)。",
- "publicTemplateHelpText": "所有用户可以查看公开模板。",
- "copyAndUseTemplate": "复制使用模板",
- "set": {
- "type": "类型",
- "normalSet": "常规组",
- "dropSet": "递减组",
- "myo": "肌红蛋白",
- "partial": "部分",
- "forced": "强制",
- "tut": "肌肉张力时间",
- "iso": "等长收缩",
- "jump": "跳"
- }
- },
- "language": "语言",
- "cannotBeUndone": "此操作无法撤回。",
- "cancel": "撤销",
- "translation": "翻译",
- "videos": "视频",
- "success": "成功了!",
- "goBack": "后退",
- "preferences": "设置",
- "measurements": {
- "unitFormHelpText": "此类别下的单位能被测量,例如厘米或百分比",
- "deleteInfo": "这将把此分类及其所有条目一同删除",
- "measurements": "围度"
- },
- "English": "英文",
- "height": "高度",
- "cm": "厘米",
- "all": "全部",
- "lastYear": "去年",
- "lastHalfYear": "过去半年",
- "lastMonth": "上个月",
- "lastWeek": "上周",
- "bmi": {
- "calculator": "体重指数计算器",
- "overweight": "超重",
- "obese": "肥胖",
- "normal": "正常体重",
- "underweight": "偏瘦",
- "result": "你的体重指数是{{value}}"
- },
- "images": "图像",
- "overview": "总览",
- "continue": "继续",
- "calendar": "日历",
- "entries": "项目",
- "no_entries_for_day": "今日无项目",
- "editName": "编辑 {{name}}",
- "start": "开始",
- "comment": "评论",
- "min": "分钟",
- "max": "最大",
- "durationWeeks": "{{number}} 周",
- "durationWeeksDays": "{{nrWeeks}} 周, {{nrDays}} 天",
- "undo": "撤销",
- "successfullyDeleted": "成功删除",
- "end": "结束"
-}
diff --git a/wger/core/static/react/locales/zh_Hant/translation.json b/wger/core/static/react/locales/zh_Hant/translation.json
deleted file mode 100644
index 29714e1f0..000000000
--- a/wger/core/static/react/locales/zh_Hant/translation.json
+++ /dev/null
@@ -1,246 +0,0 @@
-{
- "difference": "差異",
- "close": "關閉",
- "timeOfDay": "時間",
- "submit": "提交",
- "deleteConfirmation": "你確定要刪除“{{name}}”嗎?",
- "licenses": {
- "originalObjectUrl": "來源網站的連結(如果有)",
- "originalTitle": "標題",
- "authors": "作者",
- "authorProfile": "作者網站或個人資料的連結(如果有)",
- "derivativeSourceUrl": "如果這是衍生作品,請連結到原始來源",
- "derivativeSourceUrlHelper": "請注意,衍生作品不僅基於先前的作品,而且還包含足夠的新創意內容,使其享有自己的版權。"
- },
- "loading": "載入中...",
- "currentWeight": "目前體重",
- "seeDetails": "檢視詳細資訊",
- "workout": "訓練項目",
- "nothingHereYetAction": "按動作按鈕開始",
- "alsoSearchEnglish": "同時搜尋英文名稱",
- "exercises": {
- "replacementsSearch": "搜尋訓練或將已知 ID 複製並貼上到欄位中,然後按一下「載入」按鈕。",
- "noReplacementSelected": " 沒有選擇訓練作替代",
- "step1HeaderBasics": "基礎資料(英文)",
- "whatVariationsExist": "此練習有哪些變體(如果有)?",
- "filterVariations": "輸入訓練名稱來過濾變體",
- "identicalExercise": "避免重複訓練",
- "translateExerciseNow": "立即翻譯此訓練",
- "notes": "筆記",
- "alternativeNames": "別稱",
- "cacheWarning": "由於快取中,改變可能需要一些時間才能在應用程式顯示。",
- "submitExercise": "提交訓練",
- "successfullyUpdated": "訓練已成功更新。由於快取中,改變可能需要一些時間才能在應用程式顯示。",
- "description": "描述",
- "exerciseNotTranslated": "沒有可用的翻譯",
- "alsoKnownAs": "也稱為:",
- "deleteTranslation": "刪除翻譯",
- "deleteExerciseFull": "刪除整個訓練",
- "newNote": "新筆記",
- "imageStyleLowPoly": "低多邊形",
- "replacements": "替代品",
- "replacementsInfoText": "你也可以選擇一個訓練取替這個訓練(例如,因為它被提交了兩次,或類似情況)。這將取代日常訓練和訓練日誌中的訓練,而不僅僅是刪除它。這些變更還將傳播到同步此訓練的任何實例。",
- "contributeExercise": "貢獻一個訓練",
- "variations": "變體",
- "notEnoughRights": "只有當您的帳戶已超過 {days} 天並且已驗證您的電子郵件時,您才可以貢獻訓練",
- "notEnoughRightsHeader": "你不能貢獻訓練",
- "muscles": "肌肉",
- "secondaryMuscles": "輔助肌",
- "identicalExercisePleaseDiscard": "如果你注意到已有訓練跟你要新增的練習相同,請丟棄草稿並編輯該訓練。",
- "compatibleImagesCC": "影像必須與 CC BY SA 授權相容。如有疑問,請僅上傳你自己拍攝的照片。",
- "equipment": "器材",
- "checkInformationBeforeSubmitting": "請在提交訓練之前,核實輸入的資訊",
- "basics": "基礎",
- "exerciseNotTranslatedBody": "此訓練沒有目前選擇的語言。你想貢獻翻譯嗎?",
- "primaryMuscles": "主肌肉",
- "deleteExerciseBody": "你要刪除“ {{name}}”訓練嗎?你可以刪除目前{{language}}翻譯或帶有翻譯,影像等的完整的訓練。",
- "deleteExerciseReplace": "刪除並替換",
- "exercises": "訓練",
- "changeExerciseLanguage": "更改此訓練的語言",
- "noEquipment": "沒有器材",
- "missingExercise": "缺少某項訓練?",
- "missingExerciseDescription": "透過貢獻來幫助社群!",
- "searchExerciseName": "以訓練名稱搜尋",
- "notesHelpText": "筆記是關於如何訓練的簡短評論,例如「保持身體挺直」",
- "imageStylePhoto": "照片",
- "imageStyle3D": "3D",
- "imageStyleLine": "行",
- "imageStyleOther": "其它",
- "imageDetails": "圖片詳細資訊"
- },
- "nutrition": {
- "plans": "營養計劃",
- "copyPlan": "複製此計劃",
- "plan": "營養計劃",
- "goalsTitle": "目標",
- "useGoalsHelpText": "新增目標至此計劃",
- "goalEnergy": "能量目標",
- "goalProtein": "蛋白質目標",
- "goalCarbohydrates": "蛋白質目標",
- "goalFat": "脂肪目標",
- "addNutritionalDiary": "增加營養日記條目",
- "meal": "餐單",
- "addMeal": "増加餐單",
- "addMealItem": "増加材料到膳食",
- "nutritionalDiary": "營養日記",
- "valueEnergyKcal": "{{value}} 千卡",
- "valueEnergyKcalKj": "{{kcal}} 千卡 / {{kj}} 千焦",
- "searchIngredientName": "按材料名稱搜尋",
- "onlyLoggingHelpText": "只記錄卡路里。如果你只想記錄卡路里但不想設計有特定膳食的詳細營養計劃,請選中此框。",
- "gPerBodyKg": "克 / 體重 (公斤)",
- "logged": "紀錄",
- "loggedToday": "在今天紀錄",
- "difference": "差異",
- "7dayAvg": "七天平均值",
- "protein": "蛋白質",
- "carbohydrates": "碳水化合物",
- "today": "今天",
- "ofWhichSaturated": "哪種飽和脂肪",
- "saturatedFat": "飽和脂肪",
- "fibres": "纖維",
- "sodium": "鈉",
- "diaryEntrySaved": "日記條目已成功儲存",
- "logThisMeal": "將這餐按原樣記錄到營養日記",
- "logThisMealItem": "將此材料按原樣記錄到營養日記",
- "valueRemaining": "剩餘的",
- "valueTooMany": "過多",
- "useGoalsHelpTextLong": "這使你可以為計劃設定能量、蛋白質、碳水化合物或脂肪的總體目標。請注意,如果你設定了詳細的膳食計劃,這些數值將取得優先權。",
- "gramShort": "克",
- "kcal": "千卡",
- "macronutrient": "宏量營養素",
- "percentEnergy": "能量百分比",
- "planned": "計劃",
- "energy": "能量",
- "sugar": "糖",
- "fat": "脂肪",
- "pseudoMealTitle": "其它紀錄",
- "others": "其它",
- "planDeleteInfo": "這也會刪除所有營養日記條目",
- "mealDeleteInfo": "本餐的營養日記條目不會被刪除,並會顯示在「其他日誌」下",
- "ofWhichSugars": "哪種糖",
- "goalFiber": "纖維目標"
- },
- "images": "圖片",
- "language": "語言",
- "translation": "翻譯",
- "downloadAsPdf": "下載成 PDF",
- "total": "總計",
- "description": "描述",
- "overview": "概覽",
- "preferences": "偏好",
- "category": "類別",
- "success": "成功!",
- "English": "英文",
- "name": "名稱",
- "forms": {
- "fieldRequired": "此欄位是必需的",
- "maxLength": "請輸入少於 {{chars}} 個字元",
- "minLength": "請輸入多於 {{chars}} 個字元",
- "minValue": "該欄位的值必須高於 {{value}}",
- "valueTooLong": "數值過長",
- "valueTooShort": "數值過短",
- "supportedImageFormats": "僅支援 20Mb 以下的 JPEG、PNG 和 WEBP 文件",
- "maxValue": "此欄位的值必須小於 {{value}}",
- "enterNumber": "請輸入有效數字",
- "maxLessThanMin": "最大值必須大於最小值"
- },
- "save": "儲存",
- "videos": "影片",
- "cancel": "取消",
- "cannotBeUndone": "此操作無法撤銷。",
- "noResults": "沒有結果",
- "noResultsDescription": "找不到此查詢的結果,請減少篩選器的數量。",
- "routines": {
- "addDay": "增加訓練日",
- "logsFilterNote": "請注意,系統只會繪製帶重量單位(公斤或磅)和重複次數的紀錄,其他組合(例如時間或直到力竭)將被忽略。",
- "logsHeader": "訓練日誌",
- "rir": "保留次數",
- "addLogToDay": "增加這天日誌",
- "addWeightLog": "增加訓練日誌",
- "routine": "常規項目",
- "routines": "常規項目",
- "restTime": "休息時間"
- },
- "server": {
- "arms": "手臂",
- "back": "背部",
- "barbell": "槓鈴",
- "calves": "小腿肌群",
- "cardio": "帶氧運動",
- "chest": "胸",
- "body_weight": "體重",
- "glutes": "臀大肌",
- "kilometers": "公里",
- "gym_mat": "健身墊",
- "incline_bench": "上斜凳",
- "max_reps": "最大次數",
- "none__bodyweight_exercise_": "無(自重訓練)",
- "miles": "英里",
- "minutes": "分鐘",
- "plates": "槓片",
- "quads": "股四頭肌",
- "repetitions": "次數",
- "seconds": "秒",
- "shoulders": "肩膀",
- "triceps": "三頭肌",
- "lb": "磅",
- "kg": "公斤",
- "miles_per_hour": "英里/小時",
- "pull_up_bar": "引體上升桿",
- "swiss_ball": "抗力球",
- "sz_bar": "彎曲槓",
- "until_failure": "直到力竭",
- "abs": "腹肌",
- "bench": "平板凳",
- "biceps": "二頭肌",
- "dumbbell": "啞鈴",
- "hamstrings": "大腿後肌",
- "kettlebell": "壺鈴",
- "lats": "背闊肌",
- "legs": "腿",
- "kilometers_per_hour": "公里/小時"
- },
- "measurements": {
- "deleteInfo": "這將刪除該類別及其所有條目",
- "unitFormHelpText": "測量類別的單位,例如釐米或 %",
- "measurements": "測量"
- },
- "weight": "重量",
- "date": "日期",
- "edit": "編輯",
- "delete": "刪除",
- "add": "加",
- "days": "日子",
- "nutritionalPlan": "營養計劃",
- "addEntry": "增加條目",
- "actions": "行動",
- "nothingHereYet": "這裡什麼都沒有...",
- "notes": "筆記",
- "value": "數值",
- "unit": "單位",
- "copyToClipboard": "複製到剪貼簿",
- "filters": "過濾器",
- "continue": "繼續",
- "goBack": "後退",
- "lastMonth": "上個月",
- "lastYear": "去年",
- "height": "身高",
- "cm": "公分",
- "lastWeek": "上週",
- "bmi": {
- "calculator": "BMI 計算器",
- "underweight": "過輕",
- "normal": "正常",
- "overweight": "過重",
- "obese": "肥胖",
- "result": "你的 BMI 是{{value}}"
- },
- "all": "所有",
- "lastHalfYear": "過去六個月",
- "calendar": "日曆",
- "entries": "項目",
- "no_entries_for_day": "本日無紀錄",
- "comment": "註解",
- "editName": "編輯 {{name}}",
- "successfullyDeleted": "刪除成功"
-}
diff --git a/wger/core/static/react/main.css b/wger/core/static/react/main.css
deleted file mode 100644
index 258cdbfae..000000000
--- a/wger/core/static/react/main.css
+++ /dev/null
@@ -1 +0,0 @@
-._root_l288f_1{background-color:#f8f8f8;padding:1rem}._root_l288f_1 ._detail_language_l288f_4{display:flex;justify-content:space-between;align-items:flex-start}._root_l288f_1 ._detail_language_l288f_4 ._detail_l288f_4{display:none}._root_l288f_1 ._detail_language_l288f_4 ._detail_l288f_4 a{text-decoration:none;color:#283c5c}._root_l288f_1 ._detail_language_l288f_4 ._detail_l288f_4 a:hover{color:#111}@media screen and (min-width: 700px){._root_l288f_1 ._detail_language_l288f_4 ._detail_l288f_4{display:block}}._root_l288f_1 ._detail_language_l288f_4 ._detail_arrow_l288f_18{width:25px;height:25px;cursor:pointer;border-radius:50%}._root_l288f_1 ._detail_language_l288f_4 ._detail_arrow_l288f_18:hover{background-color:#fff}@media screen and (min-width: 700px){._root_l288f_1 ._detail_language_l288f_4 ._detail_arrow_l288f_18{display:none}}._root_l288f_1 ._detail_language_l288f_4 ._languages_l288f_28{position:relative}._root_l288f_1 ._detail_language_l288f_4 ._languages_l288f_28 ._language_l288f_28{display:flex;align-items:flex-end;gap:2rem;border-radius:.5rem}@media screen and (min-width: 700px){._root_l288f_1 ._detail_language_l288f_4 ._languages_l288f_28 ._language_l288f_28{background-color:#e4e4e4;padding:.5rem 1rem;border-radius:.5rem}}._root_l288f_1 ._detail_language_l288f_4 ._languages_l288f_28 ._language_menu_l288f_40{position:absolute;top:3rem;left:-3rem;background-color:#fff;padding:0 1rem;border-radius:10px;border:1px solid #979797;text-align:left}._root_l288f_1 ._detail_language_l288f_4 ._languages_l288f_28 ._language_menu_l288f_40 span{text-transform:uppercase;color:#5e5e5e}._root_l288f_1 ._header_l288f_52{display:flex;justify-content:space-between}._root_l288f_1 ._header_l288f_52 ._toolbar_l288f_55{display:none}@media screen and (min-width: 700px){._root_l288f_1 ._header_l288f_52 ._toolbar_l288f_55{display:flex;align-self:flex-end;align-items:center;justify-content:center}}._root_l288f_1 ._header_l288f_52 ._toolbar_l288f_55 img{width:25px;height:25px;cursor:pointer}._dots_l288f_68{height:20px;width:20px;cursor:pointer}._notification_bbb61_1{position:fixed;top:5%;right:5%;width:20%}body{margin:0;font-family:Open Sans Light,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
diff --git a/wger/core/static/react/main.js b/wger/core/static/react/main.js
deleted file mode 100644
index 54f0c4032..000000000
--- a/wger/core/static/react/main.js
+++ /dev/null
@@ -1,553 +0,0 @@
-function tpe(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var dm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var HN={exports:{}},jC={};/**
- * @license React
- * react-jsx-runtime.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var p4;function npe(){if(p4)return jC;p4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var s in o)s!=="key"&&(i[s]=o[s])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:i}}return jC.Fragment=t,jC.jsx=n,jC.jsxs=n,jC}var h4;function rpe(){return h4||(h4=1,HN.exports=npe()),HN.exports}var R=rpe(),UN={exports:{}},Un={};/**
- * @license React
- * react.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var m4;function ope(){if(m4)return Un;m4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),f=Symbol.iterator;function h(U){return U===null||typeof U!="object"?null:(U=f&&U[f]||U["@@iterator"],typeof U=="function"?U:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,x={};function S(U,K,ee){this.props=U,this.context=K,this.refs=x,this.updater=ee||g}S.prototype.isReactComponent={},S.prototype.setState=function(U,K){if(typeof U!="object"&&typeof U!="function"&&U!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,U,K,"setState")},S.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function C(){}C.prototype=S.prototype;function E(U,K,ee){this.props=U,this.context=K,this.refs=x,this.updater=ee||g}var I=E.prototype=new C;I.constructor=E,y(I,S.prototype),I.isPureReactComponent=!0;var M=Array.isArray,O={H:null,A:null,T:null,S:null,V:null},D=Object.prototype.hasOwnProperty;function N(U,K,ee,le,ce,se){return ee=se.ref,{$$typeof:e,type:U,key:K,ref:ee!==void 0?ee:null,props:se}}function $(U,K){return N(U.type,K,void 0,void 0,void 0,U.props)}function L(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function A(U){var K={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(ee){return K[ee]})}var F=/\/+/g;function z(U,K){return typeof U=="object"&&U!==null&&U.key!=null?A(""+U.key):K.toString(36)}function H(){}function Q(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(H,H):(U.status="pending",U.then(function(K){U.status==="pending"&&(U.status="fulfilled",U.value=K)},function(K){U.status==="pending"&&(U.status="rejected",U.reason=K)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function G(U,K,ee,le,ce){var se=typeof U;(se==="undefined"||se==="boolean")&&(U=null);var fe=!1;if(U===null)fe=!0;else switch(se){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(U.$$typeof){case e:case t:fe=!0;break;case u:return fe=U._init,G(fe(U._payload),K,ee,le,ce)}}if(fe)return ce=ce(U),fe=le===""?"."+z(U,0):le,M(ce)?(ee="",fe!=null&&(ee=fe.replace(F,"$&/")+"/"),G(ce,K,ee,"",function(he){return he})):ce!=null&&(L(ce)&&(ce=$(ce,ee+(ce.key==null||U&&U.key===ce.key?"":(""+ce.key).replace(F,"$&/")+"/")+fe)),K.push(ce)),1;fe=0;var we=le===""?".":le+":";if(M(U))for(var Oe=0;Oe<U.length;Oe++)le=U[Oe],se=we+z(le,Oe),fe+=G(le,K,ee,se,ce);else if(Oe=h(U),typeof Oe=="function")for(U=Oe.call(U),Oe=0;!(le=U.next()).done;)le=le.value,se=we+z(le,Oe++),fe+=G(le,K,ee,se,ce);else if(se==="object"){if(typeof U.then=="function")return G(Q(U),K,ee,le,ce);throw K=String(U),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return fe}function V(U,K,ee){if(U==null)return U;var le=[],ce=0;return G(U,le,"","",function(se){return K.call(ee,se,ce++)}),le}function Y(U){if(U._status===-1){var K=U._result;K=K(),K.then(function(ee){(U._status===0||U._status===-1)&&(U._status=1,U._result=ee)},function(ee){(U._status===0||U._status===-1)&&(U._status=2,U._result=ee)}),U._status===-1&&(U._status=0,U._result=K)}if(U._status===1)return U._result.default;throw U._result}var X=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}console.error(U)};function te(){}return Un.Children={map:V,forEach:function(U,K,ee){V(U,function(){K.apply(this,arguments)},ee)},count:function(U){var K=0;return V(U,function(){K++}),K},toArray:function(U){return V(U,function(K){return K})||[]},only:function(U){if(!L(U))throw Error("React.Children.only expected to receive a single React element child.");return U}},Un.Component=S,Un.Fragment=n,Un.Profiler=o,Un.PureComponent=E,Un.StrictMode=r,Un.Suspense=l,Un.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,Un.__COMPILER_RUNTIME={__proto__:null,c:function(U){return O.H.useMemoCache(U)}},Un.cache=function(U){return function(){return U.apply(null,arguments)}},Un.cloneElement=function(U,K,ee){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var le=y({},U.props),ce=U.key,se=void 0;if(K!=null)for(fe in K.ref!==void 0&&(se=void 0),K.key!==void 0&&(ce=""+K.key),K)!D.call(K,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&K.ref===void 0||(le[fe]=K[fe]);var fe=arguments.length-2;if(fe===1)le.children=ee;else if(1<fe){for(var we=Array(fe),Oe=0;Oe<fe;Oe++)we[Oe]=arguments[Oe+2];le.children=we}return N(U.type,ce,void 0,void 0,se,le)},Un.createContext=function(U){return U={$$typeof:a,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:i,_context:U},U},Un.createElement=function(U,K,ee){var le,ce={},se=null;if(K!=null)for(le in K.key!==void 0&&(se=""+K.key),K)D.call(K,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(ce[le]=K[le]);var fe=arguments.length-2;if(fe===1)ce.children=ee;else if(1<fe){for(var we=Array(fe),Oe=0;Oe<fe;Oe++)we[Oe]=arguments[Oe+2];ce.children=we}if(U&&U.defaultProps)for(le in fe=U.defaultProps,fe)ce[le]===void 0&&(ce[le]=fe[le]);return N(U,se,void 0,void 0,null,ce)},Un.createRef=function(){return{current:null}},Un.forwardRef=function(U){return{$$typeof:s,render:U}},Un.isValidElement=L,Un.lazy=function(U){return{$$typeof:u,_payload:{_status:-1,_result:U},_init:Y}},Un.memo=function(U,K){return{$$typeof:c,type:U,compare:K===void 0?null:K}},Un.startTransition=function(U){var K=O.T,ee={};O.T=ee;try{var le=U(),ce=O.S;ce!==null&&ce(ee,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(te,X)}catch(se){X(se)}finally{O.T=K}},Un.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},Un.use=function(U){return O.H.use(U)},Un.useActionState=function(U,K,ee){return O.H.useActionState(U,K,ee)},Un.useCallback=function(U,K){return O.H.useCallback(U,K)},Un.useContext=function(U){return O.H.useContext(U)},Un.useDebugValue=function(){},Un.useDeferredValue=function(U,K){return O.H.useDeferredValue(U,K)},Un.useEffect=function(U,K,ee){var le=O.H;if(typeof ee=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return le.useEffect(U,K)},Un.useId=function(){return O.H.useId()},Un.useImperativeHandle=function(U,K,ee){return O.H.useImperativeHandle(U,K,ee)},Un.useInsertionEffect=function(U,K){return O.H.useInsertionEffect(U,K)},Un.useLayoutEffect=function(U,K){return O.H.useLayoutEffect(U,K)},Un.useMemo=function(U,K){return O.H.useMemo(U,K)},Un.useOptimistic=function(U,K){return O.H.useOptimistic(U,K)},Un.useReducer=function(U,K,ee){return O.H.useReducer(U,K,ee)},Un.useRef=function(U){return O.H.useRef(U)},Un.useState=function(U){return O.H.useState(U)},Un.useSyncExternalStore=function(U,K,ee){return O.H.useSyncExternalStore(U,K,ee)},Un.useTransition=function(){return O.H.useTransition()},Un.version="19.1.1",Un}var g4;function ew(){return g4||(g4=1,UN.exports=ope()),UN.exports}var m=ew();const qe=cs(m),oE=tpe({__proto__:null,default:qe},[m]);function ipe(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ape(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var spe=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ape(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=ipe(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Ja="-ms-",IA="-moz-",$r="-webkit-",qQ="comm",nz="rule",rz="decl",lpe="@import",KQ="@keyframes",cpe="@layer",upe=Math.abs,pR=String.fromCharCode,dpe=Object.assign;function fpe(e,t){return Aa(e,0)^45?(((t<<2^Aa(e,0))<<2^Aa(e,1))<<2^Aa(e,2))<<2^Aa(e,3):0}function YQ(e){return e.trim()}function ppe(e,t){return(e=t.exec(e))?e[0]:e}function Fr(e,t,n){return e.replace(t,n)}function dF(e,t){return e.indexOf(t)}function Aa(e,t){return e.charCodeAt(t)|0}function iE(e,t,n){return e.slice(t,n)}function Hd(e){return e.length}function oz(e){return e.length}function QO(e,t){return t.push(e),e}function hpe(e,t){return e.map(t).join("")}var hR=1,bx=1,QQ=0,pl=0,Di=0,tw="";function mR(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:hR,column:bx,length:a,return:""}}function BC(e,t){return dpe(mR("",null,null,"",null,null,0),e,{length:-e.length},t)}function mpe(){return Di}function gpe(){return Di=pl>0?Aa(tw,--pl):0,bx--,Di===10&&(bx=1,hR--),Di}function Bl(){return Di=pl<QQ?Aa(tw,pl++):0,bx++,Di===10&&(bx=1,hR++),Di}function Qd(){return Aa(tw,pl)}function QM(){return pl}function oT(e,t){return iE(tw,e,t)}function aE(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function XQ(e){return hR=bx=1,QQ=Hd(tw=e),pl=0,[]}function JQ(e){return tw="",e}function XM(e){return YQ(oT(pl-1,fF(e===91?e+2:e===40?e+1:e)))}function ype(e){for(;(Di=Qd())&&Di<33;)Bl();return aE(e)>2||aE(Di)>3?"":" "}function vpe(e,t){for(;--t&&Bl()&&!(Di<48||Di>102||Di>57&&Di<65||Di>70&&Di<97););return oT(e,QM()+(t<6&&Qd()==32&&Bl()==32))}function fF(e){for(;Bl();)switch(Di){case e:return pl;case 34:case 39:e!==34&&e!==39&&fF(Di);break;case 40:e===41&&fF(e);break;case 92:Bl();break}return pl}function bpe(e,t){for(;Bl()&&e+Di!==57;)if(e+Di===84&&Qd()===47)break;return"/*"+oT(t,pl-1)+"*"+pR(e===47?e:Bl())}function xpe(e){for(;!aE(Qd());)Bl();return oT(e,pl)}function wpe(e){return JQ(JM("",null,null,null,[""],e=XQ(e),0,[0],e))}function JM(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,f=a,h=0,g=0,y=0,x=1,S=1,C=1,E=0,I="",M=o,O=i,D=r,N=I;S;)switch(y=E,E=Bl()){case 40:if(y!=108&&Aa(N,f-1)==58){dF(N+=Fr(XM(E),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:N+=XM(E);break;case 9:case 10:case 13:case 32:N+=ype(y);break;case 92:N+=vpe(QM()-1,7);continue;case 47:switch(Qd()){case 42:case 47:QO(Spe(bpe(Bl(),QM()),t,n),l);break;default:N+="/"}break;case 123*x:s[c++]=Hd(N)*C;case 125*x:case 59:case 0:switch(E){case 0:case 125:S=0;case 59+u:C==-1&&(N=Fr(N,/\f/g,"")),g>0&&Hd(N)-f&&QO(g>32?v4(N+";",r,n,f-1):v4(Fr(N," ","")+";",r,n,f-2),l);break;case 59:N+=";";default:if(QO(D=y4(N,t,n,c,u,o,s,I,M=[],O=[],f),i),E===123)if(u===0)JM(N,t,D,D,M,i,f,s,O);else switch(h===99&&Aa(N,3)===110?100:h){case 100:case 108:case 109:case 115:JM(e,D,D,r&&QO(y4(e,D,D,0,0,o,s,I,o,M=[],f),O),o,O,f,s,r?M:O);break;default:JM(N,D,D,D,[""],O,0,s,O)}}c=u=g=0,x=C=1,I=N="",f=a;break;case 58:f=1+Hd(N),g=y;default:if(x<1){if(E==123)--x;else if(E==125&&x++==0&&gpe()==125)continue}switch(N+=pR(E),E*x){case 38:C=u>0?1:(N+="\f",-1);break;case 44:s[c++]=(Hd(N)-1)*C,C=1;break;case 64:Qd()===45&&(N+=XM(Bl())),h=Qd(),u=f=Hd(I=N+=xpe(QM())),E++;break;case 45:y===45&&Hd(N)==2&&(x=0)}}return i}function y4(e,t,n,r,o,i,a,s,l,c,u){for(var f=o-1,h=o===0?i:[""],g=oz(h),y=0,x=0,S=0;y<r;++y)for(var C=0,E=iE(e,f+1,f=upe(x=a[y])),I=e;C<g;++C)(I=YQ(x>0?h[C]+" "+E:Fr(E,/&\f/g,h[C])))&&(l[S++]=I);return mR(e,t,n,o===0?nz:s,l,c,u)}function Spe(e,t,n){return mR(e,t,n,qQ,pR(mpe()),iE(e,2,-2),0)}function v4(e,t,n,r){return mR(e,t,n,rz,iE(e,0,r),iE(e,r+1,-1),r)}function ix(e,t){for(var n="",r=oz(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Cpe(e,t,n,r){switch(e.type){case cpe:if(e.children.length)break;case lpe:case rz:return e.return=e.return||e.value;case qQ:return"";case KQ:return e.return=e.value+"{"+ix(e.children,r)+"}";case nz:e.value=e.props.join(",")}return Hd(n=ix(e.children,r))?e.return=e.value+"{"+n+"}":""}function Epe(e){var t=oz(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function Tpe(e){return function(t){t.root||(t=t.return)&&e(t)}}function ZQ(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ppe=function(t,n,r){for(var o=0,i=0;o=i,i=Qd(),o===38&&i===12&&(n[r]=1),!aE(i);)Bl();return oT(t,pl)},Ipe=function(t,n){var r=-1,o=44;do switch(aE(o)){case 0:o===38&&Qd()===12&&(n[r]=1),t[r]+=Ppe(pl-1,n,r);break;case 2:t[r]+=XM(o);break;case 4:if(o===44){t[++r]=Qd()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=pR(o)}while(o=Bl());return t},Ope=function(t,n){return JQ(Ipe(XQ(t),n))},b4=new WeakMap,Mpe=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!b4.get(r))&&!o){b4.set(t,!0);for(var i=[],a=Ope(n,i),s=r.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l]}}},Ape=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function eX(e,t){switch(fpe(e,t)){case 5103:return $r+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $r+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $r+e+IA+e+Ja+e+e;case 6828:case 4268:return $r+e+Ja+e+e;case 6165:return $r+e+Ja+"flex-"+e+e;case 5187:return $r+e+Fr(e,/(\w+).+(:[^]+)/,$r+"box-$1$2"+Ja+"flex-$1$2")+e;case 5443:return $r+e+Ja+"flex-item-"+Fr(e,/flex-|-self/,"")+e;case 4675:return $r+e+Ja+"flex-line-pack"+Fr(e,/align-content|flex-|-self/,"")+e;case 5548:return $r+e+Ja+Fr(e,"shrink","negative")+e;case 5292:return $r+e+Ja+Fr(e,"basis","preferred-size")+e;case 6060:return $r+"box-"+Fr(e,"-grow","")+$r+e+Ja+Fr(e,"grow","positive")+e;case 4554:return $r+Fr(e,/([^-])(transform)/g,"$1"+$r+"$2")+e;case 6187:return Fr(Fr(Fr(e,/(zoom-|grab)/,$r+"$1"),/(image-set)/,$r+"$1"),e,"")+e;case 5495:case 3959:return Fr(e,/(image-set\([^]*)/,$r+"$1$`$1");case 4968:return Fr(Fr(e,/(.+:)(flex-)?(.*)/,$r+"box-pack:$3"+Ja+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$r+e+e;case 4095:case 3583:case 4068:case 2532:return Fr(e,/(.+)-inline(.+)/,$r+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Hd(e)-1-t>6)switch(Aa(e,t+1)){case 109:if(Aa(e,t+4)!==45)break;case 102:return Fr(e,/(.+:)(.+)-([^]+)/,"$1"+$r+"$2-$3$1"+IA+(Aa(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~dF(e,"stretch")?eX(Fr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Aa(e,t+1)!==115)break;case 6444:switch(Aa(e,Hd(e)-3-(~dF(e,"!important")&&10))){case 107:return Fr(e,":",":"+$r)+e;case 101:return Fr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$r+(Aa(e,14)===45?"inline-":"")+"box$3$1"+$r+"$2$3$1"+Ja+"$2box$3")+e}break;case 5936:switch(Aa(e,t+11)){case 114:return $r+e+Ja+Fr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $r+e+Ja+Fr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $r+e+Ja+Fr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $r+e+Ja+e+e}return e}var Dpe=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case rz:t.return=eX(t.value,t.length);break;case KQ:return ix([BC(t,{value:Fr(t.value,"@","@"+$r)})],o);case nz:if(t.length)return hpe(t.props,function(i){switch(ppe(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ix([BC(t,{props:[Fr(i,/:(read-\w+)/,":"+IA+"$1")]})],o);case"::placeholder":return ix([BC(t,{props:[Fr(i,/:(plac\w+)/,":"+$r+"input-$1")]}),BC(t,{props:[Fr(i,/:(plac\w+)/,":"+IA+"$1")]}),BC(t,{props:[Fr(i,/:(plac\w+)/,Ja+"input-$1")]})],o)}return""})}},Rpe=[Dpe],tX=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var S=x.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||Rpe,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var S=x.getAttribute("data-emotion").split(" "),C=1;C<S.length;C++)i[S[C]]=!0;s.push(x)});var l,c=[Mpe,Ape];{var u,f=[Cpe,Tpe(function(x){u.insert(x)})],h=Epe(c.concat(o,f)),g=function(S){return ix(wpe(S),h)};l=function(S,C,E,I){u=E,g(S?S+"{"+C.styles+"}":C.styles),I&&(y.inserted[C.name]=!0)}}var y={key:n,sheet:new spe({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return y.sheet.hydrate(s),y};function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(null,arguments)}var GN={exports:{}},Hr={};/** @license React v16.13.1
- * react-is.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var x4;function kpe(){if(x4)return Hr;x4=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function I(O){if(typeof O=="object"&&O!==null){var D=O.$$typeof;switch(D){case t:switch(O=O.type,O){case l:case c:case r:case i:case o:case f:return O;default:switch(O=O&&O.$$typeof,O){case s:case u:case y:case g:case a:return O;default:return D}}case n:return D}}}function M(O){return I(O)===c}return Hr.AsyncMode=l,Hr.ConcurrentMode=c,Hr.ContextConsumer=s,Hr.ContextProvider=a,Hr.Element=t,Hr.ForwardRef=u,Hr.Fragment=r,Hr.Lazy=y,Hr.Memo=g,Hr.Portal=n,Hr.Profiler=i,Hr.StrictMode=o,Hr.Suspense=f,Hr.isAsyncMode=function(O){return M(O)||I(O)===l},Hr.isConcurrentMode=M,Hr.isContextConsumer=function(O){return I(O)===s},Hr.isContextProvider=function(O){return I(O)===a},Hr.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},Hr.isForwardRef=function(O){return I(O)===u},Hr.isFragment=function(O){return I(O)===r},Hr.isLazy=function(O){return I(O)===y},Hr.isMemo=function(O){return I(O)===g},Hr.isPortal=function(O){return I(O)===n},Hr.isProfiler=function(O){return I(O)===i},Hr.isStrictMode=function(O){return I(O)===o},Hr.isSuspense=function(O){return I(O)===f},Hr.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===r||O===c||O===i||O===o||O===f||O===h||typeof O=="object"&&O!==null&&(O.$$typeof===y||O.$$typeof===g||O.$$typeof===a||O.$$typeof===s||O.$$typeof===u||O.$$typeof===S||O.$$typeof===C||O.$$typeof===E||O.$$typeof===x)},Hr.typeOf=I,Hr}var w4;function Npe(){return w4||(w4=1,GN.exports=kpe()),GN.exports}var WN,S4;function _pe(){if(S4)return WN;S4=1;var e=Npe(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function a(y){return e.isMemo(y)?o:i[y.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;function g(y,x,S){if(typeof x!="string"){if(h){var C=f(x);C&&C!==h&&g(y,C,S)}var E=l(x);c&&(E=E.concat(c(x)));for(var I=a(y),M=a(x),O=0;O<E.length;++O){var D=E[O];if(!n[D]&&!(S&&S[D])&&!(M&&M[D])&&!(I&&I[D])){var N=u(x,D);try{s(y,D,N)}catch{}}}}return y}return WN=g,WN}var Lpe=_pe();const $pe=cs(Lpe);var Fpe=!0;function nX(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var iz=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Fpe===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},az=function(t,n,r){iz(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function jpe(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Bpe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},zpe=/[A-Z]|^ms/g,Vpe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rX=function(t){return t.charCodeAt(1)===45},C4=function(t){return t!=null&&typeof t!="boolean"},qN=ZQ(function(e){return rX(e)?e:e.replace(zpe,"-$&").toLowerCase()}),E4=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Vpe,function(r,o,i){return Ud={name:o,styles:i,next:Ud},o})}return Bpe[t]!==1&&!rX(t)&&typeof n=="number"&&n!==0?n+"px":n};function sE(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Ud={name:o.name,styles:o.styles,next:Ud},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Ud={name:a.name,styles:a.styles,next:Ud},a=a.next;var s=i.styles+";";return s}return Hpe(e,t,n)}case"function":{if(e!==void 0){var l=Ud,c=n(e);return Ud=l,sE(e,t,c)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function Hpe(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=sE(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=i+"{"+t[s]+"}":C4(s)&&(r+=qN(i)+":"+E4(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)C4(a[l])&&(r+=qN(i)+":"+E4(i,a[l])+";");else{var c=sE(e,t,a);switch(i){case"animation":case"animationName":{r+=qN(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var T4=/label:\s*([^\s;{]+)\s*(;|$)/g,Ud;function iT(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Ud=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=sE(n,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=sE(n,t,e[s]),r){var l=i;o+=l[s]}T4.lastIndex=0;for(var c="",u;(u=T4.exec(o))!==null;)c+="-"+u[1];var f=jpe(o)+c;return{name:f,styles:o,next:Ud}}var Upe=function(t){return t()},oX=oE.useInsertionEffect?oE.useInsertionEffect:!1,iX=oX||Upe,P4=oX||m.useLayoutEffect,aX=m.createContext(typeof HTMLElement<"u"?tX({key:"css"}):null),Gpe=aX.Provider,sz=function(t){return m.forwardRef(function(n,r){var o=m.useContext(aX);return t(n,o,r)})},aT=m.createContext({}),sT={}.hasOwnProperty,pF="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lz=function(t,n){var r={};for(var o in n)sT.call(n,o)&&(r[o]=n[o]);return r[pF]=t,r},Wpe=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return iz(n,r,o),iX(function(){return az(n,r,o)}),null},qpe=sz(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[pF],i=[r],a="";typeof e.className=="string"?a=nX(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=iT(i,void 0,m.useContext(aT));a+=t.key+"-"+s.name;var l={};for(var c in e)sT.call(e,c)&&c!=="css"&&c!==pF&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),m.createElement(m.Fragment,null,m.createElement(Wpe,{cache:t,serialized:s,isStringTag:typeof o=="string"}),m.createElement(o,l))}),cz=qpe,_t=R.Fragment,w=function(t,n,r){return sT.call(n,"css")?R.jsx(cz,lz(t,n),r):R.jsx(t,n,r)},J=function(t,n,r){return sT.call(n,"css")?R.jsxs(cz,lz(t,n),r):R.jsxs(t,n,r)},lE=function(t,n){var r=arguments;if(n==null||!sT.call(n,"css"))return m.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=cz,i[1]=lz(t,n);for(var a=2;a<o;a++)i[a]=r[a];return m.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(lE||(lE={}));var Kpe=sz(function(e,t){var n=e.styles,r=iT([n],void 0,m.useContext(aT)),o=m.useRef();return P4(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",i),a.hydrate([l])),o.current=[a,s],function(){a.flush()}},[t]),P4(function(){var i=o.current,a=i[0],s=i[1];if(s){i[1]=!1;return}if(r.next!==void 0&&az(t,r.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function Nm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return iT(t)}function nu(){var e=Nm.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function Sp(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const jc="$$material";var Ype=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Qpe=ZQ(function(e){return Ype.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Xpe=Qpe,Jpe=function(t){return t!=="theme"},I4=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Xpe:Jpe},O4=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Zpe=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return iz(n,r,o),iX(function(){return az(n,r,o)}),null},ehe=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=O4(t,n,r),l=s||I4(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{var h=u[0];f.push(h[0]);for(var g=u.length,y=1;y<g;y++)f.push(u[y],h[y])}var x=sz(function(S,C,E){var I=c&&S.as||o,M="",O=[],D=S;if(S.theme==null){D={};for(var N in S)D[N]=S[N];D.theme=m.useContext(aT)}typeof S.className=="string"?M=nX(C.registered,O,S.className):S.className!=null&&(M=S.className+" ");var $=iT(f.concat(O),C.registered,D);M+=C.key+"-"+$.name,a!==void 0&&(M+=" "+a);var L=c&&s===void 0?I4(I):l,A={};for(var F in S)c&&F==="as"||L(F)&&(A[F]=S[F]);return A.className=M,E&&(A.ref=E),m.createElement(m.Fragment,null,m.createElement(Zpe,{cache:C,serialized:$,isStringTag:typeof I=="string"}),m.createElement(I,A))});return x.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=o,x.__emotion_styles=f,x.__emotion_forwardProp=s,Object.defineProperty(x,"toString",{value:function(){return"."+a}}),x.withComponent=function(S,C){var E=e(S,B({},n,C,{shouldForwardProp:O4(x,C,!0)}));return E.apply(void 0,f)},x}},the=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],hF=ehe.bind(null);the.forEach(function(e){hF[e]=hF(e)});var KN={exports:{}},YN,M4;function nhe(){if(M4)return YN;M4=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return YN=e,YN}var QN,A4;function rhe(){if(A4)return QN;A4=1;var e=nhe();function t(){}function n(){}return n.resetWarningCache=t,QN=function(){function r(a,s,l,c,u,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},QN}var D4;function ohe(){return D4||(D4=1,KN.exports=rhe()()),KN.exports}var ihe=ohe();const W=cs(ihe);function ahe(e){return e==null||Object.keys(e).length===0}function sX(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(ahe(o)?n:o):t;return R.jsx(Kpe,{styles:r})}function lX(e,t){return hF(e,t)}function she(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const R4=[];function k4(e){return R4[0]=e,iT(R4)}var XN={exports:{}},oo={};/**
- * @license React
- * react-is.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var N4;function lhe(){if(N4)return oo;N4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function y(x){if(typeof x=="object"&&x!==null){var S=x.$$typeof;switch(S){case e:switch(x=x.type,x){case n:case o:case r:case l:case c:case h:return x;default:switch(x=x&&x.$$typeof,x){case a:case s:case f:case u:return x;case i:return x;default:return S}}case t:return S}}}return oo.ContextConsumer=i,oo.ContextProvider=a,oo.Element=e,oo.ForwardRef=s,oo.Fragment=n,oo.Lazy=f,oo.Memo=u,oo.Portal=t,oo.Profiler=o,oo.StrictMode=r,oo.Suspense=l,oo.SuspenseList=c,oo.isContextConsumer=function(x){return y(x)===i},oo.isContextProvider=function(x){return y(x)===a},oo.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},oo.isForwardRef=function(x){return y(x)===s},oo.isFragment=function(x){return y(x)===n},oo.isLazy=function(x){return y(x)===f},oo.isMemo=function(x){return y(x)===u},oo.isPortal=function(x){return y(x)===t},oo.isProfiler=function(x){return y(x)===o},oo.isStrictMode=function(x){return y(x)===r},oo.isSuspense=function(x){return y(x)===l},oo.isSuspenseList=function(x){return y(x)===c},oo.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===l||x===c||typeof x=="object"&&x!==null&&(x.$$typeof===f||x.$$typeof===u||x.$$typeof===a||x.$$typeof===i||x.$$typeof===s||x.$$typeof===g||x.getModuleId!==void 0)},oo.typeOf=y,oo}var _4;function che(){return _4||(_4=1,XN.exports=lhe()),XN.exports}var cX=che();function Gd(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function uX(e){if(m.isValidElement(e)||cX.isValidElementType(e)||!Gd(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=uX(e[n])}),t}function da(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Gd(e)&&Gd(t)&&Object.keys(t).forEach(o=>{m.isValidElement(t[o])||cX.isValidElementType(t[o])?r[o]=t[o]:Gd(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Gd(e[o])?r[o]=da(e[o],t[o],n):n.clone?r[o]=Gd(t[o])?uX(t[o]):t[o]:r[o]=t[o]}),r}const uhe=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function dhe(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=uhe(t),a=Object.keys(i);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,g){const y=a.indexOf(g);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(y!==-1&&typeof t[a[y]]=="number"?t[a[y]]:g)-r/100}${n})`}function u(h){return a.indexOf(h)+1<a.length?c(h,a[a.indexOf(h)+1]):s(h)}function f(h){const g=a.indexOf(h);return g===0?s(a[1]):g===a.length-1?l(a[g]):c(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:s,down:l,between:c,only:u,not:f,unit:n,...o}}function fhe(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(r.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function phe(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function hhe(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function mhe(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const ghe={borderRadius:4};function $1(e,t){return t?da(e,t,{clone:!1}):e}const gR={xs:0,sm:600,md:900,lg:1200,xl:1536},L4={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gR[e]}px)`},yhe={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:gR[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Xu(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||L4;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||L4;return Object.keys(t).reduce((a,s)=>{if(phe(i.keys,s)){const l=hhe(r.containerQueries?r:yhe,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(i.values||gR).includes(s)){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function dX(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function fX(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function vhe(e,...t){const n=dX(e),r=[n,...t].reduce((o,i)=>da(o,i),{});return fX(Object.keys(n),r)}function bhe(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function JN({values:e,breakpoints:t,base:n}){const r=n||bhe(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function Ae(e){if(typeof e!="string")throw new Error(Sp(7));return e.charAt(0).toUpperCase()+e.slice(1)}function yR(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function OA(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=yR(e,n)||r,t&&(o=t(o,r,e)),o}function xi(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=yR(l,r)||{};return Xu(a,s,f=>{let h=OA(c,o,f);return f===h&&typeof f=="string"&&(h=OA(c,o,`${t}${f==="default"?"":Ae(f)}`,f)),n===!1?h:{[n]:h}})};return i.propTypes={},i.filterProps=[t],i}function xhe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const whe={m:"margin",p:"padding"},She={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$4={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Che=xhe(e=>{if(e.length>2)if($4[e])e=$4[e];else return[e];const[t,n]=e.split(""),r=whe[t],o=She[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),uz=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],dz=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...uz,...dz];function lT(e,t,n,r){const o=yR(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),s=o[a];return i>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:()=>{}}function vR(e){return lT(e,"spacing",8)}function Ky(e,t){return typeof t=="string"||t==null?t:e(t)}function Ehe(e,t){return n=>e.reduce((r,o)=>(r[o]=Ky(t,n),r),{})}function The(e,t,n,r){if(!t.includes(n))return null;const o=Che(n),i=Ehe(o,r),a=e[n];return Xu(e,a,i)}function pX(e,t){const n=vR(e.theme);return Object.keys(e).map(r=>The(e,t,r,n)).reduce($1,{})}function ei(e){return pX(e,uz)}ei.propTypes={};ei.filterProps=uz;function ti(e){return pX(e,dz)}ti.propTypes={};ti.filterProps=dz;function hX(e=8,t=vR({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function bR(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?$1(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Dc(e){return typeof e!="number"?e:`${e}px solid`}function ru(e,t){return xi({prop:e,themeKey:"borders",transform:t})}const Phe=ru("border",Dc),Ihe=ru("borderTop",Dc),Ohe=ru("borderRight",Dc),Mhe=ru("borderBottom",Dc),Ahe=ru("borderLeft",Dc),Dhe=ru("borderColor"),Rhe=ru("borderTopColor"),khe=ru("borderRightColor"),Nhe=ru("borderBottomColor"),_he=ru("borderLeftColor"),Lhe=ru("outline",Dc),$he=ru("outlineColor"),xR=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=lT(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ky(t,r)});return Xu(e,e.borderRadius,n)}return null};xR.propTypes={};xR.filterProps=["borderRadius"];bR(Phe,Ihe,Ohe,Mhe,Ahe,Dhe,Rhe,khe,Nhe,_he,xR,Lhe,$he);const wR=e=>{if(e.gap!==void 0&&e.gap!==null){const t=lT(e.theme,"spacing",8),n=r=>({gap:Ky(t,r)});return Xu(e,e.gap,n)}return null};wR.propTypes={};wR.filterProps=["gap"];const SR=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=lT(e.theme,"spacing",8),n=r=>({columnGap:Ky(t,r)});return Xu(e,e.columnGap,n)}return null};SR.propTypes={};SR.filterProps=["columnGap"];const CR=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=lT(e.theme,"spacing",8),n=r=>({rowGap:Ky(t,r)});return Xu(e,e.rowGap,n)}return null};CR.propTypes={};CR.filterProps=["rowGap"];const Fhe=xi({prop:"gridColumn"}),jhe=xi({prop:"gridRow"}),Bhe=xi({prop:"gridAutoFlow"}),zhe=xi({prop:"gridAutoColumns"}),Vhe=xi({prop:"gridAutoRows"}),Hhe=xi({prop:"gridTemplateColumns"}),Uhe=xi({prop:"gridTemplateRows"}),Ghe=xi({prop:"gridTemplateAreas"}),Whe=xi({prop:"gridArea"});bR(wR,SR,CR,Fhe,jhe,Bhe,zhe,Vhe,Hhe,Uhe,Ghe,Whe);function ax(e,t){return t==="grey"?t:e}const qhe=xi({prop:"color",themeKey:"palette",transform:ax}),Khe=xi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ax}),Yhe=xi({prop:"backgroundColor",themeKey:"palette",transform:ax});bR(qhe,Khe,Yhe);function Ll(e){return e<=1&&e!==0?`${e*100}%`:e}const Qhe=xi({prop:"width",transform:Ll}),fz=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||gR[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ll(n)}};return Xu(e,e.maxWidth,t)}return null};fz.filterProps=["maxWidth"];const Xhe=xi({prop:"minWidth",transform:Ll}),Jhe=xi({prop:"height",transform:Ll}),Zhe=xi({prop:"maxHeight",transform:Ll}),eme=xi({prop:"minHeight",transform:Ll});xi({prop:"size",cssProperty:"width",transform:Ll});xi({prop:"size",cssProperty:"height",transform:Ll});const tme=xi({prop:"boxSizing"});bR(Qhe,fz,Xhe,Jhe,Zhe,eme,tme);const cT={border:{themeKey:"borders",transform:Dc},borderTop:{themeKey:"borders",transform:Dc},borderRight:{themeKey:"borders",transform:Dc},borderBottom:{themeKey:"borders",transform:Dc},borderLeft:{themeKey:"borders",transform:Dc},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Dc},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xR},color:{themeKey:"palette",transform:ax},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ax},backgroundColor:{themeKey:"palette",transform:ax},p:{style:ti},pt:{style:ti},pr:{style:ti},pb:{style:ti},pl:{style:ti},px:{style:ti},py:{style:ti},padding:{style:ti},paddingTop:{style:ti},paddingRight:{style:ti},paddingBottom:{style:ti},paddingLeft:{style:ti},paddingX:{style:ti},paddingY:{style:ti},paddingInline:{style:ti},paddingInlineStart:{style:ti},paddingInlineEnd:{style:ti},paddingBlock:{style:ti},paddingBlockStart:{style:ti},paddingBlockEnd:{style:ti},m:{style:ei},mt:{style:ei},mr:{style:ei},mb:{style:ei},ml:{style:ei},mx:{style:ei},my:{style:ei},margin:{style:ei},marginTop:{style:ei},marginRight:{style:ei},marginBottom:{style:ei},marginLeft:{style:ei},marginX:{style:ei},marginY:{style:ei},marginInline:{style:ei},marginInlineStart:{style:ei},marginInlineEnd:{style:ei},marginBlock:{style:ei},marginBlockStart:{style:ei},marginBlockEnd:{style:ei},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:wR},rowGap:{style:CR},columnGap:{style:SR},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ll},maxWidth:{style:fz},minWidth:{transform:Ll},height:{transform:Ll},maxHeight:{transform:Ll},minHeight:{transform:Ll},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function nme(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function rme(e,t){return typeof e=="function"?e(t):e}function ome(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=yR(o,c)||{};return f?f(a):Xu(a,r,y=>{let x=OA(h,u,y);return y===x&&typeof y=="string"&&(x=OA(h,u,`${n}${y==="default"?"":Ae(y)}`,y)),l===!1?x:{[l]:x}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??cT;function a(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=dX(o.breakpoints),u=Object.keys(c);let f=c;return Object.keys(l).forEach(h=>{const g=rme(l[h],o);if(g!=null)if(typeof g=="object")if(i[h])f=$1(f,e(h,g,o,i));else{const y=Xu({theme:o},g,x=>({[h]:x}));nme(y,g)?f[h]=t({sx:g,theme:o}):f=$1(f,y)}else f=$1(f,e(h,g,o,i))}),fhe(o,fX(u,f))}return Array.isArray(r)?r.map(a):a(r)}return t}const xm=ome();xm.filterProps=["sx"];function ime(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function nw(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,s=dhe(n),l=hX(o);let c=da({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...ghe,...i}},a);return c=mhe(c),c.applyStyles=ime,c=t.reduce((u,f)=>da(u,f),c),c.unstable_sxConfig={...cT,...a?.unstable_sxConfig},c.unstable_sx=function(f){return xm({sx:f,theme:this})},c}function ame(e){return Object.keys(e).length===0}function pz(e=null){const t=m.useContext(aT);return!t||ame(t)?e:t}const sme=nw();function uT(e=sme){return pz(e)}function lme({styles:e,themeId:t,defaultTheme:n={}}){const r=uT(n),o=typeof e=="function"?e(t&&r[t]||r):e;return R.jsx(sX,{styles:o})}const cme=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??cT;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function ER(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=cme(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return Gd(s)?{...r,...s}:r}:i={...r,...t},{...o,sx:i}}const F4=e=>e,ume=()=>{let e=F4;return{configure(t){e=t},generate(t){return e(t)},reset(){e=F4}}},mX=ume();function gX(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=gX(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ge(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=gX(e))&&(r&&(r+=" "),r+=t);return r}function dme(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=lX("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(xm);return m.forwardRef(function(l,c){const u=uT(n),{className:f,component:h="div",...g}=ER(l);return R.jsx(i,{as:h,ref:c,className:ge(f,o?o(r):r),theme:t&&u[t]||u,...g})})}const fme={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function st(e,t,n="Mui"){const r=fme[t];return r?`${n}-${r}`:`${mX.generate(e)}-${t}`}function ct(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=st(e,o,n)}),r}function yX(e){const{variants:t,...n}=e,r={variants:t,style:k4(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=k4(o.style))}),r}const pme=nw();function ll(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function hme(e){return e?(t,n)=>n[e]:null}function mme(e,t,n){e.theme=yme(e.theme)?n:e.theme[t]||e.theme}function ZM(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>ZM(e,r));if(Array.isArray(n?.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return vX(e,n.variants,[r])}return n?.isProcessed?n.style:n}function vX(e,t,n=[]){let r;e:for(let o=0;o<t.length;o+=1){const i=t[o];if(typeof i.props=="function"){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(r))continue}else for(const a in i.props)if(e[a]!==i.props[a]&&e.ownerState?.[a]!==i.props[a])continue e;typeof i.style=="function"?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(i.style(r))):n.push(i.style)}return n}function bX(e={}){const{themeId:t,defaultTheme:n=pme,rootShouldForwardProp:r=ll,slotShouldForwardProp:o=ll}=e;function i(s){mme(s,t,n)}return(s,l={})=>{she(s,O=>O.filter(D=>D!==xm));const{name:c,slot:u,skipVariantsResolver:f,skipSx:h,overridesResolver:g=hme(bme(u)),...y}=l,x=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,S=h||!1;let C=ll;u==="Root"||u==="root"?C=r:u?C=o:vme(s)&&(C=void 0);const E=lX(s,{shouldForwardProp:C,label:gme(),...y}),I=O=>{if(typeof O=="function"&&O.__emotion_real!==O)return function(N){return ZM(N,O)};if(Gd(O)){const D=yX(O);return D.variants?function($){return ZM($,D)}:D.style}return O},M=(...O)=>{const D=[],N=O.map(I),$=[];if(D.push(i),c&&g&&$.push(function(z){const Q=z.theme.components?.[c]?.styleOverrides;if(!Q)return null;const G={};for(const V in Q)G[V]=ZM(z,Q[V]);return g(z,G)}),c&&!x&&$.push(function(z){const Q=z.theme?.components?.[c]?.variants;return Q?vX(z,Q):null}),S||$.push(xm),Array.isArray(N[0])){const F=N.shift(),z=new Array(D.length).fill(""),H=new Array($.length).fill("");let Q;Q=[...z,...F,...H],Q.raw=[...z,...F.raw,...H],D.unshift(Q)}const L=[...D,...N,...$],A=E(...L);return s.muiName&&(A.muiName=s.muiName),A};return E.withConfig&&(M.withConfig=E.withConfig),M}}function gme(e,t){return void 0}function yme(e){for(const t in e)return!1;return!0}function vme(e){return typeof e=="string"&&e.charCodeAt(0)>96}function bme(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const sr=bX();function Yy(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)n[o]=i||{};else if(!i)n[o]=a;else{n[o]={...a};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=s;n[o][l]=Yy(i[l],a[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function hz(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Yy(t.components[n].defaultProps,r)}function TR({props:e,name:t,defaultTheme:n,themeId:r}){let o=uT(n);return r&&(o=o[r]||o),hz({theme:o,name:t,props:e})}const qn=typeof window<"u"?m.useLayoutEffect:m.useEffect;function xme(e,t,n,r,o){const[i,a]=m.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return qn(()=>{if(!n)return;const s=n(e),l=()=>{a(s.matches)};return l(),s.addEventListener("change",l),()=>{s.removeEventListener("change",l)}},[e,n]),i}const wme={...oE},xX=wme.useSyncExternalStore;function Sme(e,t,n,r,o){const i=m.useCallback(()=>t,[t]),a=m.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return i},[i,e,r,o,n]),[s,l]=m.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addEventListener("change",f),()=>{u.removeEventListener("change",f)})]},[i,n,e]);return xX(l,s,a)}function wX(e={}){const{themeId:t}=e;return function(r,o={}){let i=pz();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:s=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=hz({name:"MuiUseMediaQuery",props:o,theme:i});let f=typeof r=="function"?r(i):r;return f=f.replace(/^@media( ?)/m,""),(xX!==void 0?Sme:xme)(f,s,l,c,u)}}wX();function Cme(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function mz(e,t=0,n=1){return Cme(e,t,n)}function Eme(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function wm(e){if(e.type)return e;if(e.charAt(0)==="#")return wm(Eme(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Sp(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Sp(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Tme=e=>{const t=wm(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},w1=(e,t)=>{try{return Tme(e)}catch{return e}};function PR(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function SX(e){e=wm(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),PR({type:s,values:l})}function mF(e){e=wm(e);let t=e.type==="hsl"||e.type==="hsla"?wm(SX(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Pme(e,t){const n=mF(e),r=mF(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Kt(e,t){return e=wm(e),t=mz(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,PR(e)}function XO(e,t,n){try{return Kt(e,t)}catch{return e}}function Cp(e,t){if(e=wm(e),t=mz(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return PR(e)}function ho(e,t,n){try{return Cp(e,t)}catch{return e}}function Ep(e,t){if(e=wm(e),t=mz(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return PR(e)}function mo(e,t,n){try{return Ep(e,t)}catch{return e}}function CX(e,t=.15){return mF(e)>.5?Cp(e,t):Ep(e,t)}function JO(e,t,n){try{return CX(e,t)}catch{return e}}const rw=W.oneOfType([W.func,W.object]);function j4(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Sv(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function sx(e,t){return m.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function yo(e){return e&&e.ownerDocument||document}function ql(e){return yo(e).defaultView||window}function gF(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let B4=0;function Ime(e){const[t,n]=m.useState(e),r=e||t;return m.useEffect(()=>{t==null&&(B4+=1,n(`mui-${B4}`))},[t]),r}const Ome={...oE},z4=Ome.useId;function _n(e){if(z4!==void 0){const t=z4();return e??t}return Ime(e)}function _s({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=m.useRef(e!==void 0),[i,a]=m.useState(t),s=o?e:i,l=m.useCallback(c=>{o||a(c)},[]);return[s,l]}function ft(e){const t=m.useRef(e);return qn(()=>{t.current=e}),m.useRef((...n)=>(0,t.current)(...n)).current}function xn(...e){const t=m.useRef(void 0),n=m.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,s=a(r);return typeof s=="function"?s:()=>{a(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i?.())}},e);return m.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}const V4={};function nd(e,t){const n=m.useRef(V4);return n.current===V4&&(n.current=e(t)),n}const Mme=[];function gz(e){m.useEffect(e,Mme)}class IR{static create(){return new IR}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Ni(){const e=nd(IR.create).current;return gz(e.disposeEffect),e}function MA(e){try{return e.matches(":focus-visible")}catch{}return!1}function EX(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const yz=e=>{const t=m.useRef({});return m.useEffect(()=>{t.current=e}),t.current};function TX(e){return m.Children.toArray(e).filter(t=>m.isValidElement(t))}const Ame={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function $e(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(a+=(s===!0?"":" ")+t(c),s=!1,n&&n[c]&&(a+=" "+n[c]))}r[o]=a}return r}function Dme(e){return typeof e=="string"}function PX(e,t,n){return e===void 0||Dme(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function AA(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function H4(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function IX(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const g=ge(n?.className,i,o?.className,r?.className),y={...n?.style,...o?.style,...r?.style},x={...n,...o,...r};return g.length>0&&(x.className=g),Object.keys(y).length>0&&(x.style=y),{props:x,internalRef:void 0}}const a=AA({...o,...r}),s=H4(r),l=H4(o),c=t(a),u=ge(c?.className,n?.className,i,o?.className,r?.className),f={...c?.style,...n?.style,...o?.style,...r?.style},h={...c,...n,...l,...s};return u.length>0&&(h.className=u),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}function tf(e,t,n){return typeof e=="function"?e(t,n):e}function nr(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:tf(n,r),{props:s,internalRef:l}=IX({...i,externalSlotProps:a}),c=xn(l,a?.ref,e.additionalProps?.ref);return PX(t,{...s,ref:c},r)}function _m(e){return parseInt(m.version,10)>=19?e?.props?.ref||null:e?.ref||null}const OX=m.createContext(null);function vz(){return m.useContext(OX)}const Rme=typeof Symbol=="function"&&Symbol.for,kme=Rme?Symbol.for("mui.nested"):"__THEME_NESTED__";function Nme(e,t){return typeof t=="function"?t(e):{...e,...t}}function _me(e){const{children:t,theme:n}=e,r=vz(),o=m.useMemo(()=>{const i=r===null?{...n}:Nme(r,n);return i!=null&&(i[kme]=r!==null),i},[n,r]);return R.jsx(OX.Provider,{value:o,children:t})}const MX=m.createContext();function Lme({value:e,...t}){return R.jsx(MX.Provider,{value:e??!0,...t})}const eo=()=>m.useContext(MX)??!1,AX=m.createContext(void 0);function $me({value:e,children:t}){return R.jsx(AX.Provider,{value:e,children:t})}function Fme(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Yy(o.defaultProps,r):!o.styleOverrides&&!o.variants?Yy(o,r):r}function jme({props:e,name:t}){const n=m.useContext(AX);return Fme({props:e,name:t,theme:{components:n}})}const U4={};function G4(e,t,n,r=!1){return m.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?{...t,[e]:i}:i;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function DX(e){const{children:t,theme:n,themeId:r}=e,o=pz(U4),i=vz()||U4,a=G4(r,o,n),s=G4(r,i,n,!0),l=(r?a[r]:a).direction==="rtl";return R.jsx(_me,{theme:s,children:R.jsx(aT.Provider,{value:a,children:R.jsx(Lme,{value:l,children:R.jsx($me,{value:r?a[r].components:a.components,children:t})})})})}const W4={theme:void 0};function Bme(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(W4.theme=o.theme,i=yX(e(W4)),t=i,n=o.theme),i}}const bz="mode",xz="color-scheme",zme="data-color-scheme";function Vme(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=bz,colorSchemeStorageKey:i=xz,attribute:a=zme,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let c="",u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),u.startsWith(".")){const h=u.substring(1);c+=`${s}.classList.remove('${h}'.replace('%s', light), '${h}'.replace('%s', dark));
- ${s}.classList.add('${h}'.replace('%s', colorScheme));`}const f=u.match(/\[([^\]]+)\]/);if(f){const[h,g]=f[1].split("=");g||(c+=`${s}.removeAttribute('${h}'.replace('%s', light));
- ${s}.removeAttribute('${h}'.replace('%s', dark));`),c+=`
- ${s}.setAttribute('${h}'.replace('%s', colorScheme), ${g?`${g}.replace('%s', colorScheme)`:'""'});`}else c+=`${s}.setAttribute('${u}', colorScheme);`;return R.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() {
-try {
- let colorScheme = '';
- const mode = localStorage.getItem('${o}') || '${t}';
- const dark = localStorage.getItem('${i}-dark') || '${r}';
- const light = localStorage.getItem('${i}-light') || '${n}';
- if (mode === 'system') {
- // handle system mode
- const mql = window.matchMedia('(prefers-color-scheme: dark)');
- if (mql.matches) {
- colorScheme = dark
- } else {
- colorScheme = light
- }
- }
- if (mode === 'light') {
- colorScheme = light;
- }
- if (mode === 'dark') {
- colorScheme = dark;
- }
- if (colorScheme) {
- ${c}
- }
-} catch(e){}})();`}},"mui-color-scheme-init")}function Hme(){}const Ume=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return Hme;const r=o=>{const i=o.newValue;o.key===e&&n(i)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function ZN(){}function q4(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function RX(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function Gme(e){return RX(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function Wme(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=bz,colorSchemeStorageKey:a=xz,storageWindow:s=typeof window>"u"?void 0:window,storageManager:l=Ume,noSsr:c=!1}=e,u=o.join(","),f=o.length>1,h=m.useMemo(()=>l?.({key:i,storageWindow:s}),[l,i,s]),g=m.useMemo(()=>l?.({key:`${a}-light`,storageWindow:s}),[l,a,s]),y=m.useMemo(()=>l?.({key:`${a}-dark`,storageWindow:s}),[l,a,s]),[x,S]=m.useState(()=>{const $=h?.get(t)||t,L=g?.get(n)||n,A=y?.get(r)||r;return{mode:$,systemMode:q4($),lightColorScheme:L,darkColorScheme:A}}),[C,E]=m.useState(c||!f);m.useEffect(()=>{E(!0)},[]);const I=Gme(x),M=m.useCallback($=>{S(L=>{if($===L.mode)return L;const A=$??t;return h?.set(A),{...L,mode:A,systemMode:q4(A)}})},[h,t]),O=m.useCallback($=>{$?typeof $=="string"?$&&!u.includes($)?console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`):S(L=>{const A={...L};return RX(L,F=>{F==="light"&&(g?.set($),A.lightColorScheme=$),F==="dark"&&(y?.set($),A.darkColorScheme=$)}),A}):S(L=>{const A={...L},F=$.light===null?n:$.light,z=$.dark===null?r:$.dark;return F&&(u.includes(F)?(A.lightColorScheme=F,g?.set(F)):console.error(`\`${F}\` does not exist in \`theme.colorSchemes\`.`)),z&&(u.includes(z)?(A.darkColorScheme=z,y?.set(z)):console.error(`\`${z}\` does not exist in \`theme.colorSchemes\`.`)),A}):S(L=>(g?.set(n),y?.set(r),{...L,lightColorScheme:n,darkColorScheme:r}))},[u,g,y,n,r]),D=m.useCallback($=>{x.mode==="system"&&S(L=>{const A=$?.matches?"dark":"light";return L.systemMode===A?L:{...L,systemMode:A}})},[x.mode]),N=m.useRef(D);return N.current=D,m.useEffect(()=>{if(typeof window.matchMedia!="function"||!f)return;const $=(...A)=>N.current(...A),L=window.matchMedia("(prefers-color-scheme: dark)");return L.addListener($),$(L),()=>{L.removeListener($)}},[f]),m.useEffect(()=>{if(f){const $=h?.subscribe(F=>{(!F||["light","dark","system"].includes(F))&&M(F||t)})||ZN,L=g?.subscribe(F=>{(!F||u.match(F))&&O({light:F})})||ZN,A=y?.subscribe(F=>{(!F||u.match(F))&&O({dark:F})})||ZN;return()=>{$(),L(),A()}}},[O,M,u,t,s,f,h,g,y]),{...x,mode:C?x.mode:void 0,systemMode:C?x.systemMode:void 0,colorScheme:C?I:void 0,setMode:M,setColorScheme:O}}const qme="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Kme(e){const{themeId:t,theme:n={},modeStorageKey:r=bz,colorSchemeStorageKey:o=xz,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=m.createContext(void 0),u=()=>m.useContext(c)||l,f={},h={};function g(C){const{children:E,theme:I,modeStorageKey:M=r,colorSchemeStorageKey:O=o,disableTransitionOnChange:D=i,storageManager:N,storageWindow:$=typeof window>"u"?void 0:window,documentNode:L=typeof document>"u"?void 0:document,colorSchemeNode:A=typeof document>"u"?void 0:document.documentElement,disableNestedContext:F=!1,disableStyleSheetGeneration:z=!1,defaultMode:H="system",forceThemeRerender:Q=!1,noSsr:G}=C,V=m.useRef(!1),Y=vz(),X=m.useContext(c),te=!!X&&!F,U=m.useMemo(()=>I||(typeof n=="function"?n():n),[I]),K=U[t],ee=K||U,{colorSchemes:le=f,components:ce=h,cssVarPrefix:se}=ee,fe=Object.keys(le).filter(nt=>!!le[nt]).join(","),we=m.useMemo(()=>fe.split(","),[fe]),Oe=typeof a=="string"?a:a.light,he=typeof a=="string"?a:a.dark,me=le[Oe]&&le[he]?H:le[ee.defaultColorScheme]?.palette?.mode||ee.palette?.mode,{mode:ye,setMode:ae,systemMode:Se,lightColorScheme:Ie,darkColorScheme:Re,colorScheme:ke,setColorScheme:Te}=Wme({supportedColorSchemes:we,defaultLightColorScheme:Oe,defaultDarkColorScheme:he,modeStorageKey:M,colorSchemeStorageKey:O,defaultMode:me,storageManager:N,storageWindow:$,noSsr:G});let Ce=ye,Ze=ke;te&&(Ce=X.mode,Ze=X.colorScheme);let Me=Ze||ee.defaultColorScheme;ee.vars&&!Q&&(Me=ee.defaultColorScheme);const _e=m.useMemo(()=>{const nt=ee.generateThemeVars?.()||ee.vars,ot={...ee,components:ce,colorSchemes:le,cssVarPrefix:se,vars:nt};if(typeof ot.generateSpacing=="function"&&(ot.spacing=ot.generateSpacing()),Me){const it=le[Me];it&&typeof it=="object"&&Object.keys(it).forEach(tt=>{it[tt]&&typeof it[tt]=="object"?ot[tt]={...ot[tt],...it[tt]}:ot[tt]=it[tt]})}return s?s(ot):ot},[ee,Me,ce,le,se]),pe=ee.colorSchemeSelector;qn(()=>{if(Ze&&A&&pe&&pe!=="media"){const nt=pe;let ot=pe;if(nt==="class"&&(ot=".%s"),nt==="data"&&(ot="[data-%s]"),nt?.startsWith("data-")&&!nt.includes("%s")&&(ot=`[${nt}="%s"]`),ot.startsWith("."))A.classList.remove(...we.map(it=>ot.substring(1).replace("%s",it))),A.classList.add(ot.substring(1).replace("%s",Ze));else{const it=ot.replace("%s",Ze).match(/\[([^\]]+)\]/);if(it){const[tt,vt]=it[1].split("=");vt||we.forEach(Je=>{A.removeAttribute(tt.replace(Ze,Je))}),A.setAttribute(tt,vt?vt.replace(/"|'/g,""):"")}else A.setAttribute(ot,Ze)}}},[Ze,pe,A,we]),m.useEffect(()=>{let nt;if(D&&V.current&&L){const ot=L.createElement("style");ot.appendChild(L.createTextNode(qme)),L.head.appendChild(ot),window.getComputedStyle(L.body),nt=setTimeout(()=>{L.head.removeChild(ot)},1)}return()=>{clearTimeout(nt)}},[Ze,D,L]),m.useEffect(()=>(V.current=!0,()=>{V.current=!1}),[]);const je=m.useMemo(()=>({allColorSchemes:we,colorScheme:Ze,darkColorScheme:Re,lightColorScheme:Ie,mode:Ce,setColorScheme:Te,setMode:ae,systemMode:Se}),[we,Ze,Re,Ie,Ce,Te,ae,Se,_e.colorSchemeSelector]);let Ke=!0;(z||ee.cssVariables===!1||te&&Y?.cssVarPrefix===se)&&(Ke=!1);const et=R.jsxs(m.Fragment,{children:[R.jsx(DX,{themeId:K?t:void 0,theme:_e,children:E}),Ke&&R.jsx(sX,{styles:_e.generateStyleSheets?.()||[]})]});return te?et:R.jsx(c.Provider,{value:je,children:et})}const y=typeof a=="string"?a:a.light,x=typeof a=="string"?a:a.dark;return{CssVarsProvider:g,useColorScheme:u,getInitColorSchemeScript:C=>Vme({colorSchemeStorageKey:o,defaultLightColorScheme:y,defaultDarkColorScheme:x,modeStorageKey:r,...C})}}function Yme(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const K4=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},Qme=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([s,l])=>{(!n||n&&!n([...i,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,s],Array.isArray(l)?[...a,s]:a):t([...i,s],l,a))})}r(e)},Xme=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function e_(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return Qme(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const u=`--${n?`${n}-`:""}${s.join("-")}`,f=Xme(s,l);Object.assign(o,{[u]:f}),K4(i,s,`var(${u})`,c),K4(a,s,`var(${u}, ${f})`,c)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function Jme(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:f}=e_(l,t);let h=f;const g={},{[s]:y,...x}=i;if(Object.entries(x||{}).forEach(([I,M])=>{const{vars:O,css:D,varsWithDefaults:N}=e_(M,t);h=da(h,N),g[I]={css:D,vars:O}}),y){const{css:I,vars:M,varsWithDefaults:O}=e_(y,t);h=da(h,O),g[s]={css:I,vars:M}}function S(I,M){let O=o;if(o==="class"&&(O=".%s"),o==="data"&&(O="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(O=`[${o}="%s"]`),I){if(O==="media")return e.defaultColorScheme===I?":root":{[`@media (prefers-color-scheme: ${i[I]?.palette?.mode||I})`]:{":root":M}};if(O)return e.defaultColorScheme===I?`:root, ${O.replace("%s",String(I))}`:O.replace("%s",String(I))}return":root"}return{vars:h,generateThemeVars:()=>{let I={...c};return Object.entries(g).forEach(([,{vars:M}])=>{I=da(I,M)}),I},generateStyleSheets:()=>{const I=[],M=e.defaultColorScheme||"light";function O($,L){Object.keys(L).length&&I.push(typeof $=="string"?{[$]:{...L}}:$)}O(n(void 0,{...u}),u);const{[M]:D,...N}=g;if(D){const{css:$}=D,L=i[M]?.palette?.mode,A=!r&&L?{colorScheme:L,...$}:{...$};O(n(M,{...A}),A)}return Object.entries(N).forEach(([$,{css:L}])=>{const A=i[$]?.palette?.mode,F=!r&&A?{colorScheme:A,...L}:{...L};O(n($,{...F}),F)}),I}}}function Zme(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const ege=nw(),tge=sr("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Ae(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),nge=e=>TR({props:e,name:"MuiContainer",defaultTheme:ege}),rge=(e,t)=>{const n=l=>st(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${Ae(String(a))}`,o&&"fixed",i&&"disableGutters"]};return $e(s,n,r)};function oge(e={}){const{createStyledComponent:t=tge,useThemeProps:n=nge,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:s})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,c)=>{const u=c,f=a.breakpoints.values[u];return f!==0&&(l[a.breakpoints.up(u)]={maxWidth:`${f}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>({...s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}}));return m.forwardRef(function(s,l){const c=n(s),{className:u,component:f="div",disableGutters:h=!1,fixed:g=!1,maxWidth:y="lg",classes:x,...S}=c,C={...c,component:f,disableGutters:h,fixed:g,maxWidth:y},E=rge(C,r);return R.jsx(o,{as:f,ownerState:C,className:ge(E.root,u),ref:l,...S})})}const ige=(e,t)=>e.filter(n=>t.includes(n)),ow=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,i)=>{n((a,s)=>{i<=e.keys.length-1&&(i===0?Object.assign(a,s):a[e.up(e.keys[i])]=s)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:ige(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){const a=t[i];a!==void 0&&n((s,l)=>{r===i?Object.assign(s,l):s[e.up(i)]=l},a)}}):(typeof t=="number"||typeof t=="string")&&n((o,i)=>{Object.assign(o,i)},t)};function DA(e){return`--Grid-${e}Spacing`}function OR(e){return`--Grid-parent-${e}Spacing`}const Y4="--Grid-columns",lx="--Grid-parent-columns",age=({theme:e,ownerState:t})=>{const n={};return ow(e.breakpoints,t.size,(r,o)=>{let i={};o==="grow"&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${lx}) - (var(${lx}) - ${o}) * (var(${OR("column")}) / var(${lx})))`}),r(n,i)}),n},sge=({theme:e,ownerState:t})=>{const n={};return ow(e.breakpoints,t.offset,(r,o)=>{let i={};o==="auto"&&(i={marginLeft:"auto"}),typeof o=="number"&&(i={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${lx}) + var(${OR("column")}) * ${o} / var(${lx}))`}),r(n,i)}),n},lge=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Y4]:12};return ow(e.breakpoints,t.columns,(r,o)=>{const i=o??12;r(n,{[Y4]:i,"> *":{[lx]:i}})}),n},cge=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return ow(e.breakpoints,t.rowSpacing,(r,o)=>{const i=typeof o=="string"?o:e.spacing?.(o);r(n,{[DA("row")]:i,"> *":{[OR("row")]:i}})}),n},uge=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return ow(e.breakpoints,t.columnSpacing,(r,o)=>{const i=typeof o=="string"?o:e.spacing?.(o);r(n,{[DA("column")]:i,"> *":{[OR("column")]:i}})}),n},dge=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return ow(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},fge=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${DA("row")}) var(${DA("column")})`}}),pge=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},hge=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,i])=>{n(i)&&r.push(`spacing-${o}-${String(i)}`)}),r}return[]},mge=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function gge(e,t){e.item!==void 0&&delete e.item,e.zeroMinWidth!==void 0&&delete e.zeroMinWidth,t.keys.forEach(n=>{e[n]!==void 0&&delete e[n]})}const yge=nw(),vge=sr("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function bge(e){return TR({props:e,name:"MuiGrid",defaultTheme:yge})}function xge(e={}){const{createStyledComponent:t=vge,useThemeProps:n=bge,useTheme:r=uT,componentName:o="MuiGrid"}=e,i=(c,u)=>{const{container:f,direction:h,spacing:g,wrap:y,size:x}=c,S={root:["root",f&&"container",y!=="wrap"&&`wrap-xs-${String(y)}`,...mge(h),...pge(x),...f?hge(g,u.breakpoints.keys[0]):[]]};return $e(S,C=>st(o,C),{})};function a(c,u,f=()=>!0){const h={};return c===null||(Array.isArray(c)?c.forEach((g,y)=>{g!==null&&f(g)&&u.keys[y]&&(h[u.keys[y]]=g)}):typeof c=="object"?Object.keys(c).forEach(g=>{const y=c[g];y!=null&&f(y)&&(h[g]=y)}):h[u.keys[0]]=c),h}const s=t(lge,uge,cge,age,dge,fge,sge),l=m.forwardRef(function(u,f){const h=r(),g=n(u),y=ER(g);gge(y,h.breakpoints);const{className:x,children:S,columns:C=12,container:E=!1,component:I="div",direction:M="row",wrap:O="wrap",size:D={},offset:N={},spacing:$=0,rowSpacing:L=$,columnSpacing:A=$,unstable_level:F=0,...z}=y,H=a(D,h.breakpoints,K=>K!==!1),Q=a(N,h.breakpoints),G=u.columns??(F?void 0:C),V=u.spacing??(F?void 0:$),Y=u.rowSpacing??u.spacing??(F?void 0:L),X=u.columnSpacing??u.spacing??(F?void 0:A),te={...y,level:F,columns:G,container:E,direction:M,wrap:O,spacing:V,rowSpacing:Y,columnSpacing:X,size:H,offset:Q},U=i(te,h);return R.jsx(s,{ref:f,as:I,ownerState:te,className:ge(U.root,x),...z,children:m.Children.map(S,K=>m.isValidElement(K)&&sx(K,["Grid"])&&E&&K.props.container?m.cloneElement(K,{unstable_level:K.props?.unstable_level??F+1}):K)})});return l.muiName="Grid",l}const wge=nw(),Sge=sr("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Cge(e){return TR({props:e,name:"MuiStack",defaultTheme:wge})}function Ege(e,t){const n=m.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(m.cloneElement(t,{key:`separator-${i}`})),r),[])}const Tge=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Pge=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Xu({theme:t},JN({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=vR(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=JN({values:e.direction,base:o}),a=JN({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const h=c>0?i[u[c-1]]:"column";i[l]=h}}),n=da(n,Xu({theme:t},a,(l,c)=>e.useFlexGap?{gap:Ky(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Tge(c?i[c]:e.direction)}`]:Ky(r,l)}}))}return n=vhe(t.breakpoints,n),n};function Ige(e={}){const{createStyledComponent:t=Sge,useThemeProps:n=Cge,componentName:r="MuiStack"}=e,o=()=>$e({root:["root"]},l=>st(r,l),{}),i=t(Pge);return m.forwardRef(function(l,c){const u=n(l),f=ER(u),{component:h="div",direction:g="column",spacing:y=0,divider:x,children:S,className:C,useFlexGap:E=!1,...I}=f,M={direction:g,spacing:y,useFlexGap:E},O=o();return R.jsx(i,{as:h,ownerState:M,ref:c,className:ge(O.root,C),...I,children:x?Ege(S,x):S})})}const cE={black:"#000",white:"#fff"},Oge={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},b0={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},x0={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},zC={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},w0={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},S0={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},C0={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function kX(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:cE.white,default:cE.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Mge=kX();function NX(){return{text:{primary:cE.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:cE.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Q4=NX();function X4(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ep(e.main,o):t==="dark"&&(e.dark=Cp(e.main,i)))}function Age(e="light"){return e==="dark"?{main:w0[200],light:w0[50],dark:w0[400]}:{main:w0[700],light:w0[400],dark:w0[800]}}function Dge(e="light"){return e==="dark"?{main:b0[200],light:b0[50],dark:b0[400]}:{main:b0[500],light:b0[300],dark:b0[700]}}function Rge(e="light"){return e==="dark"?{main:x0[500],light:x0[300],dark:x0[700]}:{main:x0[700],light:x0[400],dark:x0[800]}}function kge(e="light"){return e==="dark"?{main:S0[400],light:S0[300],dark:S0[700]}:{main:S0[700],light:S0[500],dark:S0[900]}}function Nge(e="light"){return e==="dark"?{main:C0[400],light:C0[300],dark:C0[700]}:{main:C0[800],light:C0[500],dark:C0[900]}}function _ge(e="light"){return e==="dark"?{main:zC[400],light:zC[300],dark:zC[700]}:{main:"#ed6c02",light:zC[500],dark:zC[900]}}function wz(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||Age(t),a=e.secondary||Dge(t),s=e.error||Rge(t),l=e.info||kge(t),c=e.success||Nge(t),u=e.warning||_ge(t);function f(x){return Pme(x,Q4.text.primary)>=n?Q4.text.primary:Mge.text.primary}const h=({color:x,name:S,mainShade:C=500,lightShade:E=300,darkShade:I=700})=>{if(x={...x},!x.main&&x[C]&&(x.main=x[C]),!x.hasOwnProperty("main"))throw new Error(Sp(11,S?` (${S})`:"",C));if(typeof x.main!="string")throw new Error(Sp(12,S?` (${S})`:"",JSON.stringify(x.main)));return X4(x,"light",E,r),X4(x,"dark",I,r),x.contrastText||(x.contrastText=f(x.main)),x};let g;return t==="light"?g=kX():t==="dark"&&(g=NX()),da({common:{...cE},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:Oge,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r,...g},o)}function Lge(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function $ge(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Fge(e){return Math.round(e*1e5)/1e5}const J4={textTransform:"uppercase"},Z4='"Roboto", "Helvetica", "Arial", sans-serif';function _X(e,t){const{fontFamily:n=Z4,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...f}=typeof t=="function"?t(e):t,h=r/14,g=u||(S=>`${S/l*h}rem`),y=(S,C,E,I,M)=>({fontFamily:n,fontWeight:S,fontSize:g(C),lineHeight:E,...n===Z4?{letterSpacing:`${Fge(I/C)}em`}:{},...M,...c}),x={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(a,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(a,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(a,14,1.75,.4,J4),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,J4),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return da({htmlFontSize:l,pxToRem:g,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...x},f,{clone:!1})}const jge=.2,Bge=.14,zge=.12;function zo(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${jge})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Bge})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${zge})`].join(",")}const Vge=["none",zo(0,2,1,-1,0,1,1,0,0,1,3,0),zo(0,3,1,-2,0,2,2,0,0,1,5,0),zo(0,3,3,-2,0,3,4,0,0,1,8,0),zo(0,2,4,-1,0,4,5,0,0,1,10,0),zo(0,3,5,-1,0,5,8,0,0,1,14,0),zo(0,3,5,-1,0,6,10,0,0,1,18,0),zo(0,4,5,-2,0,7,10,1,0,2,16,1),zo(0,5,5,-3,0,8,10,1,0,3,14,2),zo(0,5,6,-3,0,9,12,1,0,3,16,2),zo(0,6,6,-3,0,10,14,1,0,4,18,3),zo(0,6,7,-4,0,11,15,1,0,4,20,3),zo(0,7,8,-4,0,12,17,2,0,5,22,4),zo(0,7,8,-4,0,13,19,2,0,5,24,4),zo(0,7,9,-4,0,14,21,2,0,5,26,4),zo(0,8,9,-5,0,15,22,2,0,6,28,5),zo(0,8,10,-5,0,16,24,2,0,6,30,5),zo(0,8,11,-5,0,17,26,2,0,6,32,5),zo(0,9,11,-5,0,18,28,2,0,7,34,6),zo(0,9,12,-6,0,19,29,2,0,7,36,6),zo(0,10,13,-6,0,20,31,3,0,8,38,7),zo(0,10,13,-6,0,21,33,3,0,8,40,7),zo(0,10,14,-6,0,22,35,3,0,8,42,7),zo(0,11,14,-7,0,23,36,3,0,9,44,8),zo(0,11,15,-7,0,24,38,3,0,9,46,8)],Hge={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},LX={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function e3(e){return`${Math.round(e)}ms`}function Uge(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Gge(e){const t={...Hge,...e.easing},n={...LX,...e.duration};return{getAutoHeightDuration:Uge,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...c}=i;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:e3(a)} ${s} ${typeof l=="string"?l:e3(l)}`).join(",")},...e,easing:t,duration:n}}const Wge={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function qge(e){return Gd(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function $X(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[a,s]=o[i];!qge(s)||a.startsWith("unstable_")?delete r[a]:Gd(s)&&(r[a]={...s},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
-
-const theme = ${JSON.stringify(t,null,2)};
-
-theme.breakpoints = createBreakpoints(theme.breakpoints || {});
-theme.transitions = createTransitions(theme.transitions || {});
-
-export default theme;`}function yF(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Sp(20));const u=wz(i),f=nw(e);let h=da(f,{mixins:$ge(f.breakpoints,r),palette:u,shadows:Vge.slice(),typography:_X(u,s),transitions:Gge(a),zIndex:{...Wge}});return h=da(h,c),h=t.reduce((g,y)=>da(g,y),h),h.unstable_sxConfig={...cT,...c?.unstable_sxConfig},h.unstable_sx=function(y){return xm({sx:y,theme:this})},h.toRuntimeSource=$X,h}function vF(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Kge=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=vF(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function FX(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function jX(e){return e==="dark"?Kge:[]}function Yge(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=wz(t);return{palette:i,opacity:{...FX(i.mode),...n},overlays:r||jX(i.mode),...o}}function Qge(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Xge=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Jge=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Xge(e.cssVarPrefix).forEach(s=>{a[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function Zge(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ut(e,t,n){!e[t]&&n&&(e[t]=n)}function S1(e){return typeof e!="string"||!e.startsWith("hsl")?e:SX(e)}function Zf(e,t){`${t}Channel`in e||(e[`${t}Channel`]=w1(S1(e[t])))}function eye(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Bd=e=>{try{return e()}catch{}},tye=(e="mui")=>Yme(e);function t_(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=Yge({...t,palette:{mode:o,...t?.palette}});return}const{palette:i,...a}=yF({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:i,opacity:{...FX(o),...t?.opacity},overlays:t?.overlays||jX(o)},a}function nye(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=Qge,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],f=r||(n.light&&u!=="light"?"light":u),h=tye(i),{[f]:g,light:y,dark:x,...S}=n,C={...S};let E=g;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(E=!0),!E)throw new Error(Sp(21,f));const I=t_(C,E,c,f);y&&!C.light&&t_(C,y,void 0,"light"),x&&!C.dark&&t_(C,x,void 0,"dark");let M={defaultColorScheme:f,...I,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:h,colorSchemes:C,font:{...Lge(I.typography),...I.font},spacing:eye(c.spacing)};Object.keys(M.colorSchemes).forEach(L=>{const A=M.colorSchemes[L].palette,F=z=>{const H=z.split("-"),Q=H[1],G=H[2];return h(z,A[Q][G])};if(A.mode==="light"&&(ut(A.common,"background","#fff"),ut(A.common,"onBackground","#000")),A.mode==="dark"&&(ut(A.common,"background","#000"),ut(A.common,"onBackground","#fff")),Zge(A,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),A.mode==="light"){ut(A.Alert,"errorColor",ho(A.error.light,.6)),ut(A.Alert,"infoColor",ho(A.info.light,.6)),ut(A.Alert,"successColor",ho(A.success.light,.6)),ut(A.Alert,"warningColor",ho(A.warning.light,.6)),ut(A.Alert,"errorFilledBg",F("palette-error-main")),ut(A.Alert,"infoFilledBg",F("palette-info-main")),ut(A.Alert,"successFilledBg",F("palette-success-main")),ut(A.Alert,"warningFilledBg",F("palette-warning-main")),ut(A.Alert,"errorFilledColor",Bd(()=>A.getContrastText(A.error.main))),ut(A.Alert,"infoFilledColor",Bd(()=>A.getContrastText(A.info.main))),ut(A.Alert,"successFilledColor",Bd(()=>A.getContrastText(A.success.main))),ut(A.Alert,"warningFilledColor",Bd(()=>A.getContrastText(A.warning.main))),ut(A.Alert,"errorStandardBg",mo(A.error.light,.9)),ut(A.Alert,"infoStandardBg",mo(A.info.light,.9)),ut(A.Alert,"successStandardBg",mo(A.success.light,.9)),ut(A.Alert,"warningStandardBg",mo(A.warning.light,.9)),ut(A.Alert,"errorIconColor",F("palette-error-main")),ut(A.Alert,"infoIconColor",F("palette-info-main")),ut(A.Alert,"successIconColor",F("palette-success-main")),ut(A.Alert,"warningIconColor",F("palette-warning-main")),ut(A.AppBar,"defaultBg",F("palette-grey-100")),ut(A.Avatar,"defaultBg",F("palette-grey-400")),ut(A.Button,"inheritContainedBg",F("palette-grey-300")),ut(A.Button,"inheritContainedHoverBg",F("palette-grey-A100")),ut(A.Chip,"defaultBorder",F("palette-grey-400")),ut(A.Chip,"defaultAvatarColor",F("palette-grey-700")),ut(A.Chip,"defaultIconColor",F("palette-grey-700")),ut(A.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ut(A.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ut(A.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ut(A.LinearProgress,"primaryBg",mo(A.primary.main,.62)),ut(A.LinearProgress,"secondaryBg",mo(A.secondary.main,.62)),ut(A.LinearProgress,"errorBg",mo(A.error.main,.62)),ut(A.LinearProgress,"infoBg",mo(A.info.main,.62)),ut(A.LinearProgress,"successBg",mo(A.success.main,.62)),ut(A.LinearProgress,"warningBg",mo(A.warning.main,.62)),ut(A.Skeleton,"bg",`rgba(${F("palette-text-primaryChannel")} / 0.11)`),ut(A.Slider,"primaryTrack",mo(A.primary.main,.62)),ut(A.Slider,"secondaryTrack",mo(A.secondary.main,.62)),ut(A.Slider,"errorTrack",mo(A.error.main,.62)),ut(A.Slider,"infoTrack",mo(A.info.main,.62)),ut(A.Slider,"successTrack",mo(A.success.main,.62)),ut(A.Slider,"warningTrack",mo(A.warning.main,.62));const z=JO(A.background.default,.8);ut(A.SnackbarContent,"bg",z),ut(A.SnackbarContent,"color",Bd(()=>A.getContrastText(z))),ut(A.SpeedDialAction,"fabHoverBg",JO(A.background.paper,.15)),ut(A.StepConnector,"border",F("palette-grey-400")),ut(A.StepContent,"border",F("palette-grey-400")),ut(A.Switch,"defaultColor",F("palette-common-white")),ut(A.Switch,"defaultDisabledColor",F("palette-grey-100")),ut(A.Switch,"primaryDisabledColor",mo(A.primary.main,.62)),ut(A.Switch,"secondaryDisabledColor",mo(A.secondary.main,.62)),ut(A.Switch,"errorDisabledColor",mo(A.error.main,.62)),ut(A.Switch,"infoDisabledColor",mo(A.info.main,.62)),ut(A.Switch,"successDisabledColor",mo(A.success.main,.62)),ut(A.Switch,"warningDisabledColor",mo(A.warning.main,.62)),ut(A.TableCell,"border",mo(XO(A.divider,1),.88)),ut(A.Tooltip,"bg",XO(A.grey[700],.92))}if(A.mode==="dark"){ut(A.Alert,"errorColor",mo(A.error.light,.6)),ut(A.Alert,"infoColor",mo(A.info.light,.6)),ut(A.Alert,"successColor",mo(A.success.light,.6)),ut(A.Alert,"warningColor",mo(A.warning.light,.6)),ut(A.Alert,"errorFilledBg",F("palette-error-dark")),ut(A.Alert,"infoFilledBg",F("palette-info-dark")),ut(A.Alert,"successFilledBg",F("palette-success-dark")),ut(A.Alert,"warningFilledBg",F("palette-warning-dark")),ut(A.Alert,"errorFilledColor",Bd(()=>A.getContrastText(A.error.dark))),ut(A.Alert,"infoFilledColor",Bd(()=>A.getContrastText(A.info.dark))),ut(A.Alert,"successFilledColor",Bd(()=>A.getContrastText(A.success.dark))),ut(A.Alert,"warningFilledColor",Bd(()=>A.getContrastText(A.warning.dark))),ut(A.Alert,"errorStandardBg",ho(A.error.light,.9)),ut(A.Alert,"infoStandardBg",ho(A.info.light,.9)),ut(A.Alert,"successStandardBg",ho(A.success.light,.9)),ut(A.Alert,"warningStandardBg",ho(A.warning.light,.9)),ut(A.Alert,"errorIconColor",F("palette-error-main")),ut(A.Alert,"infoIconColor",F("palette-info-main")),ut(A.Alert,"successIconColor",F("palette-success-main")),ut(A.Alert,"warningIconColor",F("palette-warning-main")),ut(A.AppBar,"defaultBg",F("palette-grey-900")),ut(A.AppBar,"darkBg",F("palette-background-paper")),ut(A.AppBar,"darkColor",F("palette-text-primary")),ut(A.Avatar,"defaultBg",F("palette-grey-600")),ut(A.Button,"inheritContainedBg",F("palette-grey-800")),ut(A.Button,"inheritContainedHoverBg",F("palette-grey-700")),ut(A.Chip,"defaultBorder",F("palette-grey-700")),ut(A.Chip,"defaultAvatarColor",F("palette-grey-300")),ut(A.Chip,"defaultIconColor",F("palette-grey-300")),ut(A.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ut(A.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ut(A.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ut(A.LinearProgress,"primaryBg",ho(A.primary.main,.5)),ut(A.LinearProgress,"secondaryBg",ho(A.secondary.main,.5)),ut(A.LinearProgress,"errorBg",ho(A.error.main,.5)),ut(A.LinearProgress,"infoBg",ho(A.info.main,.5)),ut(A.LinearProgress,"successBg",ho(A.success.main,.5)),ut(A.LinearProgress,"warningBg",ho(A.warning.main,.5)),ut(A.Skeleton,"bg",`rgba(${F("palette-text-primaryChannel")} / 0.13)`),ut(A.Slider,"primaryTrack",ho(A.primary.main,.5)),ut(A.Slider,"secondaryTrack",ho(A.secondary.main,.5)),ut(A.Slider,"errorTrack",ho(A.error.main,.5)),ut(A.Slider,"infoTrack",ho(A.info.main,.5)),ut(A.Slider,"successTrack",ho(A.success.main,.5)),ut(A.Slider,"warningTrack",ho(A.warning.main,.5));const z=JO(A.background.default,.98);ut(A.SnackbarContent,"bg",z),ut(A.SnackbarContent,"color",Bd(()=>A.getContrastText(z))),ut(A.SpeedDialAction,"fabHoverBg",JO(A.background.paper,.15)),ut(A.StepConnector,"border",F("palette-grey-600")),ut(A.StepContent,"border",F("palette-grey-600")),ut(A.Switch,"defaultColor",F("palette-grey-300")),ut(A.Switch,"defaultDisabledColor",F("palette-grey-600")),ut(A.Switch,"primaryDisabledColor",ho(A.primary.main,.55)),ut(A.Switch,"secondaryDisabledColor",ho(A.secondary.main,.55)),ut(A.Switch,"errorDisabledColor",ho(A.error.main,.55)),ut(A.Switch,"infoDisabledColor",ho(A.info.main,.55)),ut(A.Switch,"successDisabledColor",ho(A.success.main,.55)),ut(A.Switch,"warningDisabledColor",ho(A.warning.main,.55)),ut(A.TableCell,"border",ho(XO(A.divider,1),.68)),ut(A.Tooltip,"bg",XO(A.grey[700],.92))}Zf(A.background,"default"),Zf(A.background,"paper"),Zf(A.common,"background"),Zf(A.common,"onBackground"),Zf(A,"divider"),Object.keys(A).forEach(z=>{const H=A[z];z!=="tonalOffset"&&H&&typeof H=="object"&&(H.main&&ut(A[z],"mainChannel",w1(S1(H.main))),H.light&&ut(A[z],"lightChannel",w1(S1(H.light))),H.dark&&ut(A[z],"darkChannel",w1(S1(H.dark))),H.contrastText&&ut(A[z],"contrastTextChannel",w1(S1(H.contrastText))),z==="text"&&(Zf(A[z],"primary"),Zf(A[z],"secondary")),z==="action"&&(H.active&&Zf(A[z],"active"),H.selected&&Zf(A[z],"selected")))})}),M=t.reduce((L,A)=>da(L,A),M);const O={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:Jge(M)},{vars:D,generateThemeVars:N,generateStyleSheets:$}=Jme(M,O);return M.vars=D,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([L,A])=>{M[L]=A}),M.generateThemeVars=N,M.generateStyleSheets=$,M.generateSpacing=function(){return hX(c.spacing,vR(this))},M.getColorSchemeSelector=Zme(s),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=a,M.unstable_sxConfig={...cT,...c?.unstable_sxConfig},M.unstable_sx=function(A){return xm({sx:A,theme:this})},M.toRuntimeSource=$X,M}function t3(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:wz({...n===!0?{}:n.palette,mode:t})})}function dT(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,s=i||"light",l=o?.[s],c={...o,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return yF(e,...t);let u=n;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const f=yF({...e,palette:u},...t);return f.defaultColorScheme=s,f.colorSchemes=c,f.palette.mode==="light"&&(f.colorSchemes.light={...c.light!==!0&&c.light,palette:f.palette},t3(f,"dark",c.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:f.palette},t3(f,"light",c.light)),f}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),nye({...a,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}function rye(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function oye(e){return parseFloat(e)}const MR=dT();function Po(){const e=uT(MR);return e[jc]||e}function Kn({props:e,name:t}){return TR({props:e,name:t,defaultTheme:MR,themeId:jc})}function BX(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ma=e=>BX(e)&&e!=="classes",ue=bX({themeId:jc,defaultTheme:MR,rootShouldForwardProp:ma});function n_({theme:e,...t}){const n=jc in e?e[jc]:void 0;return R.jsx(DX,{...t,themeId:n?jc:void 0,theme:n||e})}const ZO={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:iye}=Kme({themeId:jc,theme:()=>dT({cssVariables:!0}),colorSchemeStorageKey:ZO.colorSchemeStorageKey,modeStorageKey:ZO.modeStorageKey,defaultColorScheme:{light:ZO.defaultLightColorScheme,dark:ZO.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:_X(e.palette,e.typography)};return t.unstable_sx=function(r){return xm({sx:r,theme:this})},t}}),aye=iye;function Cv({theme:e,...t}){if(typeof e=="function")return R.jsx(n_,{theme:e,...t});const n=jc in e?e[jc]:e;return"colorSchemes"in n?R.jsx(aye,{theme:e,...t}):"vars"in n?R.jsx(n_,{theme:e,...t}):R.jsx(n_,{theme:{...e,vars:null},...t})}var iw=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Qy=typeof window>"u"||"Deno"in globalThis;function Oc(){}function sye(e,t){return typeof e=="function"?e(t):e}function bF(e){return typeof e=="number"&&e>=0&&e!==1/0}function zX(e,t){return Math.max(e+(t||0)-Date.now(),0)}function cx(e,t){return typeof e=="function"?e(t):e}function Lu(e,t){return typeof e=="function"?e(t):e}function n3(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==Sz(a,t.options))return!1}else if(!uE(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function r3(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Xy(t.options.mutationKey)!==Xy(i))return!1}else if(!uE(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Sz(e,t){return(t?.queryKeyHashFn||Xy)(e)}function Xy(e){return JSON.stringify(e,(t,n)=>xF(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function uE(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!uE(e[n],t[n])):!1}function VX(e,t){if(e===t)return e;const n=o3(e)&&o3(t);if(n||xF(e)&&xF(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),a=i.length,s=n?[]:{};let l=0;for(let c=0;c<a;c++){const u=n?c:i[c];(!n&&r.includes(u)||n)&&e[u]===void 0&&t[u]===void 0?(s[u]=void 0,l++):(s[u]=VX(e[u],t[u]),s[u]===e[u]&&e[u]!==void 0&&l++)}return o===a&&l===o?e:s}return t}function RA(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function o3(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function xF(e){if(!i3(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!i3(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function i3(e){return Object.prototype.toString.call(e)==="[object Object]"}function lye(e){return new Promise(t=>{setTimeout(t,e)})}function wF(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?VX(e,t):t}function cye(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function uye(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Cz=Symbol();function HX(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Cz?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var dye=class extends iw{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Qy&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Ez=new dye,fye=class extends iw{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Qy&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},kA=new fye;function SF(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function pye(e){return Math.min(1e3*2**e,3e4)}function UX(e){return(e??"online")==="online"?kA.isOnline():!0}var GX=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function r_(e){return e instanceof GX}function WX(e){let t=!1,n=0,r=!1,o;const i=SF(),a=x=>{r||(h(new GX(x)),e.abort?.())},s=()=>{t=!0},l=()=>{t=!1},c=()=>Ez.isFocused()&&(e.networkMode==="always"||kA.isOnline())&&e.canRun(),u=()=>UX(e.networkMode)&&e.canRun(),f=x=>{r||(r=!0,e.onSuccess?.(x),o?.(),i.resolve(x))},h=x=>{r||(r=!0,e.onError?.(x),o?.(),i.reject(x))},g=()=>new Promise(x=>{o=S=>{(r||c())&&x(S)},e.onPause?.()}).then(()=>{o=void 0,r||e.onContinue?.()}),y=()=>{if(r)return;let x;const S=n===0?e.initialPromise:void 0;try{x=S??e.fn()}catch(C){x=Promise.reject(C)}Promise.resolve(x).then(f).catch(C=>{if(r)return;const E=e.retry??(Qy?0:3),I=e.retryDelay??pye,M=typeof I=="function"?I(n,C):I,O=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,C);if(t||!O){h(C);return}n++,e.onFail?.(n,C),lye(M).then(()=>c()?void 0:g()).then(()=>{t?h(C):y()})})};return{promise:i,cancel:a,continue:()=>(o?.(),i),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?y():g().then(y),i)}}var hye=e=>setTimeout(e,0);function mye(){let e=[],t=0,n=s=>{s()},r=s=>{s()},o=hye;const i=s=>{t?e.push(s):o(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&o(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{o=s}}}var Vi=mye(),qX=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),bF(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qy?1/0:5*60*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},gye=class extends qX{#t;#e;#n;#r;#o;#a;#s;constructor(e){super(),this.#s=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=yye(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=wF(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(Oc).catch(Oc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Lu(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Cz||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!zX(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#s?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){const s=this.observers.find(l=>l.options.queryFn);s&&this.setOptions(s.options)}const n=new AbortController,r=s=>{Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const s=HX(this.options,t),l={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(l),this.#s=!1,this.options.persister?this.options.persister(s,l,this):s(l)},i={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o};r(i),this.options.behavior?.onFetch(i,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==i.fetchOptions?.meta)&&this.#i({type:"fetch",meta:i.fetchOptions?.meta});const a=s=>{r_(s)&&s.silent||this.#i({type:"error",error:s}),r_(s)||(this.#n.config.onError?.(s,this),this.#n.config.onSettled?.(this.state.data,s,this)),this.scheduleGc()};return this.#o=WX({initialPromise:t?.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:s=>{if(s===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(s)}catch(l){a(l);return}this.#n.config.onSuccess?.(s,this),this.#n.config.onSettled?.(s,this.state.error,this),this.scheduleGc()},onError:a,onFail:(s,l)=>{this.#i({type:"failed",failureCount:s,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}),this.#o.start()}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...KX(n.data,this.options),fetchMeta:e.meta??null};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return r_(r)&&r.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Vi.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function KX(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:UX(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function yye(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var vye=class extends iw{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,o=t.queryHash??Sz(r,t);let i=this.get(o);return i||(i=new gye({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Vi.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>n3(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>n3(e,n)):t}notify(e){Vi.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Vi.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Vi.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},bye=class extends qX{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||YX(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){this.#n=WX({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(r,o)=>{this.#r({type:"failed",failureCount:r,error:o})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const t=this.state.status==="pending",n=!this.#n.canStart();try{if(!t){this.#r({type:"pending",variables:e,isPaused:n}),await this.#e.config.onMutate?.(e,this);const o=await this.options.onMutate?.(e);o!==this.state.context&&this.#r({type:"pending",context:o,variables:e,isPaused:n})}const r=await this.#n.start();return await this.#e.config.onSuccess?.(r,e,this.state.context,this),await this.options.onSuccess?.(r,e,this.state.context),await this.#e.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,e,this.state.context),this.#r({type:"success",data:r}),r}catch(r){try{throw await this.#e.config.onError?.(r,e,this.state.context,this),await this.options.onError?.(r,e,this.state.context),await this.#e.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,r,e,this.state.context),r}finally{this.#r({type:"error",error:r})}}finally{this.#e.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Vi.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function YX(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var xye=class extends iw{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new bye({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=eM(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=eM(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=eM(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=eM(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Vi.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>r3(t,n))}findAll(e={}){return this.getAll().filter(t=>r3(e,t))}notify(e){Vi.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Vi.batch(()=>Promise.all(e.map(t=>t.continue().catch(Oc))))}};function eM(e){return e.options.scope?.id}function a3(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let u=!1;const f=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},h=HX(t.options,t.fetchOptions),g=async(y,x,S)=>{if(u)return Promise.reject();if(x==null&&y.pages.length)return Promise.resolve(y);const C={client:t.client,queryKey:t.queryKey,pageParam:x,direction:S?"backward":"forward",meta:t.options.meta};f(C);const E=await h(C),{maxPages:I}=t.options,M=S?uye:cye;return{pages:M(y.pages,E,I),pageParams:M(y.pageParams,x,I)}};if(o&&i.length){const y=o==="backward",x=y?wye:s3,S={pages:i,pageParams:a},C=x(r,S);s=await g(S,C,y)}else{const y=e??i.length;do{const x=l===0?a[0]??r.initialPageParam:s3(r,s);if(l>0&&x==null)break;s=await g(s,x),l++}while(l<y)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function s3(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function wye(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Sye=class{#t;#e;#n;#r;#o;#a;#s;#i;constructor(e={}){this.#t=e.queryCache||new vye,this.#e=e.mutationCache||new xye,this.#n=e.defaultOptions||{},this.#r=new Map,this.#o=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#s=Ez.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=kA.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(cx(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#t.get(r.queryHash)?.state.data,a=sye(t,i);if(a!==void 0)return this.#t.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Vi.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;Vi.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return Vi.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Vi.batch(()=>this.#t.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Oc).catch(Oc)}invalidateQueries(e,t={}){return Vi.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Vi.batch(()=>this.#t.findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Oc)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Oc)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(cx(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Oc).catch(Oc)}fetchInfiniteQuery(e){return e.behavior=a3(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Oc).catch(Oc)}ensureInfiniteQueryData(e){return e.behavior=a3(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return kA.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Xy(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{uE(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#o.set(Xy(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{uE(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Sz(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Cz&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Cye=class extends iw{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#s=SF(),this.options.experimental_prefetchInRender||this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#r=void 0;#o;#a;#s;#i;#m;#f;#p;#c;#u;#l;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),l3(this.#e,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return CF(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return CF(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#w(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Lu(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!RA(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&c3(this.#e,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==n||Lu(this.options.enabled,this.#e)!==Lu(t.enabled,this.#e)||cx(this.options.staleTime,this.#e)!==cx(t.staleTime,this.#e))&&this.#g();const o=this.#y();r&&(this.#e!==n||Lu(this.options.enabled,this.#e)!==Lu(t.enabled,this.#e)||o!==this.#l)&&this.#v(o)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return Tye(this,n)&&(this.#r=n,this.#a=this.options,this.#o=this.#e.state),n}getCurrentResult(){return this.#r}trackResult(e,t){const n={};return Object.keys(e).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})}),n}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Oc)),t}#g(){this.#x();const e=cx(this.options.staleTime,this.#e);if(Qy||this.#r.isStale||!bF(e))return;const n=zX(this.#r.dataUpdatedAt,e)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#v(e){this.#w(),this.#l=e,!(Qy||Lu(this.options.enabled,this.#e)===!1||!bF(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||Ez.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#v(this.#y())}#x(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#w(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,o=this.#r,i=this.#o,a=this.#a,l=e!==n?e.state:this.#n,{state:c}=e;let u={...c},f=!1,h;if(t._optimisticResults){const N=this.hasListeners(),$=!N&&l3(e,t),L=N&&c3(e,n,t,r);($||L)&&(u={...u,...KX(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:g,errorUpdatedAt:y,status:x}=u;if(t.select&&u.data!==void 0)if(o&&u.data===i?.data&&t.select===this.#m)h=this.#f;else try{this.#m=t.select,h=t.select(u.data),h=wF(o?.data,h,t),this.#f=h,this.#i=null}catch(N){this.#i=N}else h=u.data;if(t.placeholderData!==void 0&&h===void 0&&x==="pending"){let N;if(o?.isPlaceholderData&&t.placeholderData===a?.placeholderData)N=o.data;else if(N=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,t.select&&N!==void 0)try{N=t.select(N),this.#i=null}catch($){this.#i=$}N!==void 0&&(x="success",h=wF(o?.data,N,t),f=!0)}this.#i&&(g=this.#i,h=this.#f,y=Date.now(),x="error");const S=u.fetchStatus==="fetching",C=x==="pending",E=x==="error",I=C&&S,M=h!==void 0,D={status:x,fetchStatus:u.fetchStatus,isPending:C,isSuccess:x==="success",isError:E,isInitialLoading:I,isLoading:I,data:h,dataUpdatedAt:u.dataUpdatedAt,error:g,errorUpdatedAt:y,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:S,isRefetching:S&&!C,isLoadingError:E&&!M,isPaused:u.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:E&&M,isStale:Tz(e,t),refetch:this.refetch,promise:this.#s};if(this.options.experimental_prefetchInRender){const N=A=>{D.status==="error"?A.reject(D.error):D.data!==void 0&&A.resolve(D.data)},$=()=>{const A=this.#s=D.promise=SF();N(A)},L=this.#s;switch(L.status){case"pending":e.queryHash===n.queryHash&&N(L);break;case"fulfilled":(D.status==="error"||D.data!==L.value)&&$();break;case"rejected":(D.status!=="error"||D.error!==L.reason)&&$();break}}return D}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#o=this.#e.state,this.#a=this.options,this.#o.data!==void 0&&(this.#p=this.#e),RA(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#h.size)return!0;const i=new Set(o??this.#h);return this.options.throwOnError&&i.add("error"),Object.keys(this.#r).some(a=>{const s=a;return this.#r[s]!==e[s]&&i.has(s)})};this.#C({listeners:n()})}#S(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#C(e){Vi.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function Eye(e,t){return Lu(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function l3(e,t){return Eye(e,t)||e.state.data!==void 0&&CF(e,t,t.refetchOnMount)}function CF(e,t,n){if(Lu(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Tz(e,t)}return!1}function c3(e,t,n,r){return(e!==t||Lu(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Tz(e,n)}function Tz(e,t){return Lu(t.enabled,e)!==!1&&e.isStaleByTime(cx(t.staleTime,e))}function Tye(e,t){return!RA(e.getCurrentResult(),t)}var Pye=class extends iw{#t;#e=void 0;#n;#r;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#o()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),RA(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Xy(n.mutationKey)!==Xy(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#o(),this.#a(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#o(),this.#a()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#o(){const t=this.#n?.state??YX();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#a(t){Vi.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context;t?.type==="success"?(this.#r.onSuccess?.(t.data,n,r),this.#r.onSettled?.(t.data,null,n,r)):t?.type==="error"&&(this.#r.onError?.(t.error,n,r),this.#r.onSettled?.(void 0,t.error,n,r))}this.listeners.forEach(n=>{n(this.#e)})})}},QX=m.createContext(void 0),Bt=e=>{const t=m.useContext(QX);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},aw=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(QX.Provider,{value:e,children:t})),XX=m.createContext(!1),Iye=()=>m.useContext(XX);XX.Provider;function Oye(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Mye=m.createContext(Oye()),Aye=()=>m.useContext(Mye);function JX(e,t){return typeof e=="function"?e(...t):!!e}function EF(){}var Dye=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Rye=e=>{m.useEffect(()=>{e.clearReset()},[e])},kye=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||JX(n,[e.error,r])),Nye=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},_ye=(e,t)=>e.isLoading&&e.isFetching&&!t,Lye=(e,t)=>e?.suspense&&t.isPending,u3=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function $ye(e,t,n){const r=Bt(),o=Iye(),i=Aye(),a=r.defaultQueryOptions(e);r.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=o?"isRestoring":"optimistic",Nye(a),Dye(a,i),Rye(i);const s=!r.getQueryCache().get(a.queryHash),[l]=m.useState(()=>new t(r,a)),c=l.getOptimisticResult(a),u=!o&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(f=>{const h=u?l.subscribe(Vi.batchCalls(f)):EF;return l.updateResult(),h},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),m.useEffect(()=>{l.setOptions(a)},[a,l]),Lye(a,c))throw u3(a,l,i);if(kye({result:c,errorResetBoundary:i,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw c.error;return r.getDefaultOptions().queries?._experimental_afterQuery?.(a,c),a.experimental_prefetchInRender&&!Qy&&_ye(c,o)&&(s?u3(a,l,i):r.getQueryCache().get(a.queryHash)?.promise)?.catch(EF).finally(()=>{l.updateResult()}),a.notifyOnChangeProps?c:l.trackResult(c)}function Zr(e,t){return $ye(e,Cye)}function zt(e,t){const n=Bt(),[r]=m.useState(()=>new Pye(n,e));m.useEffect(()=>{r.setOptions(e)},[r,e]);const o=m.useSyncExternalStore(m.useCallback(a=>r.subscribe(Vi.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=m.useCallback((a,s)=>{r.mutate(a,s).catch(EF)},[r]);if(o.error&&JX(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const Fye="modulepreload",jye=function(e){return"/"+e},d3={},Bye=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let l=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=a?.nonce||a?.getAttribute("nonce");o=l(n.map(c=>{if(c=jye(c),c in d3)return;d3[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":Fye,u||(h.as="script"),h.crossOrigin="",h.href=c,s&&h.setAttribute("nonce",s),document.head.appendChild(h),u)return new Promise((g,y)=>{h.addEventListener("load",g),h.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return o.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})};var zye=function(){return null};function Vye(e){return R.jsx(lme,{...e,defaultTheme:MR,themeId:jc})}function Hye(e){return function(n){return R.jsx(Vye,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Uye(){return ER}const Et=Bme;function Tt(e){return jme(e)}function Gye(e){return st("MuiSvgIcon",e)}ct("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Wye=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ae(t)}`,`fontSize${Ae(n)}`]};return $e(o,Gye,r)},qye=ue("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ae(n.color)}`],t[`fontSize${Ae(n.fontSize)}`]]}})(Et(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),NA=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:h="0 0 24 24",...g}=r,y=m.isValidElement(o)&&o.type==="svg",x={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:y},S={};u||(S.viewBox=h);const C=Wye(x);return R.jsxs(qye,{as:s,className:ge(C.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...S,...g,...y&&o.props,ownerState:x,children:[y?o.props.children:o,f?R.jsx("title",{children:f}):null]})});NA.muiName="SvgIcon";function Lt(e,t){function n(r,o){return R.jsx(NA,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=NA.muiName,m.memo(m.forwardRef(n))}function Kye(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Pz(e,t){if(!e)return t;function n(a,s){const l={};return Object.keys(s).forEach(c=>{Kye(c,s[c])&&typeof a[c]=="function"&&(l[c]=(...u)=>{a[c](...u),s[c](...u)})}),l}if(typeof e=="function"||typeof t=="function")return a=>{const s=typeof t=="function"?t(a):t,l=typeof e=="function"?e({...a,...s}):e,c=ge(a?.className,s?.className,l?.className),u=n(l,s);return{...s,...l,...u,...!!c&&{className:c},...s?.style&&l?.style&&{style:{...s.style,...l.style}},...s?.sx&&l?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=t,o=n(e,r),i=ge(r?.className,e?.className);return{...t,...e,...o,...!!i&&{className:i},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function He(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function TF(e,t){return TF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},TF(e,t)}function Iz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,TF(e,t)}function Yye(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Qye(e,t){e.classList?e.classList.add(t):Yye(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function f3(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Xye(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=f3(e.className,t):e.setAttribute("class",f3(e.className&&e.className.baseVal||"",t))}var o_={exports:{}},Xa={};/**
- * @license React
- * react-dom.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var p3;function Jye(){if(p3)return Xa;p3=1;var e=ew();function t(l){var c="https://react.dev/errors/"+l;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)c+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+l+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function i(l,c,u){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:f==null?null:""+f,children:l,containerInfo:c,implementation:u}}var a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(l,c){if(l==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return Xa.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Xa.createPortal=function(l,c){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return i(l,c,null,u)},Xa.flushSync=function(l){var c=a.T,u=r.p;try{if(a.T=null,r.p=2,l)return l()}finally{a.T=c,r.p=u,r.d.f()}},Xa.preconnect=function(l,c){typeof l=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,r.d.C(l,c))},Xa.prefetchDNS=function(l){typeof l=="string"&&r.d.D(l)},Xa.preinit=function(l,c){if(typeof l=="string"&&c&&typeof c.as=="string"){var u=c.as,f=s(u,c.crossOrigin),h=typeof c.integrity=="string"?c.integrity:void 0,g=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;u==="style"?r.d.S(l,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:f,integrity:h,fetchPriority:g}):u==="script"&&r.d.X(l,{crossOrigin:f,integrity:h,fetchPriority:g,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},Xa.preinitModule=function(l,c){if(typeof l=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var u=s(c.as,c.crossOrigin);r.d.M(l,{crossOrigin:u,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&r.d.M(l)},Xa.preload=function(l,c){if(typeof l=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var u=c.as,f=s(u,c.crossOrigin);r.d.L(l,u,{crossOrigin:f,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},Xa.preloadModule=function(l,c){if(typeof l=="string")if(c){var u=s(c.as,c.crossOrigin);r.d.m(l,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:u,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else r.d.m(l)},Xa.requestFormReset=function(l){r.d.r(l)},Xa.unstable_batchedUpdates=function(l,c){return l(c)},Xa.useFormState=function(l,c,u){return a.H.useFormState(l,c,u)},Xa.useFormStatus=function(){return a.H.useHostTransitionStatus()},Xa.version="19.1.1",Xa}var h3;function ZX(){if(h3)return o_.exports;h3=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),o_.exports=Jye(),o_.exports}var Ev=ZX();const C1=cs(Ev),m3={disabled:!1},_A=qe.createContext(null);var eJ=function(t){return t.scrollTop},E1="unmounted",vy="exited",by="entering",z0="entered",PF="exiting",Zl=function(e){Iz(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=vy,i.appearStatus=by):l=z0:r.unmountOnExit||r.mountOnEnter?l=E1:l=vy,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===E1?{status:vy}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==by&&a!==z0&&(i=by):(a===by||a===z0)&&(i=PF)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===by){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:C1.findDOMNode(this);a&&eJ(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vy&&this.setState({status:E1})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[C1.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),h=s?f.appear:f.enter;if(!o&&!a||m3.disabled){this.safeSetState({status:z0},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:by},function(){i.props.onEntering(c,u),i.onTransitionEnd(h,function(){i.safeSetState({status:z0},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:C1.findDOMNode(this);if(!i||m3.disabled){this.safeSetState({status:vy},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:PF},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:vy},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:C1.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===E1)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=He(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return qe.createElement(_A.Provider,{value:null},typeof a=="function"?a(o,s):qe.cloneElement(qe.Children.only(a),s))},t}(qe.Component);Zl.contextType=_A;Zl.propTypes={};function E0(){}Zl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:E0,onEntering:E0,onEntered:E0,onExit:E0,onExiting:E0,onExited:E0};Zl.UNMOUNTED=E1;Zl.EXITED=vy;Zl.ENTERING=by;Zl.ENTERED=z0;Zl.EXITING=PF;var Zye=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Qye(t,r)})},i_=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Xye(t,r)})},Oz=function(e){Iz(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(s,l){var c=r.resolveArguments(s,l),u=c[0],f=c[1];r.removeClasses(u,"exit"),r.addClass(u,f?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(s,l)},r.onEntering=function(s,l){var c=r.resolveArguments(s,l),u=c[0],f=c[1],h=f?"appear":"enter";r.addClass(u,h,"active"),r.props.onEntering&&r.props.onEntering(s,l)},r.onEntered=function(s,l){var c=r.resolveArguments(s,l),u=c[0],f=c[1],h=f?"appear":"enter";r.removeClasses(u,h),r.addClass(u,h,"done"),r.props.onEntered&&r.props.onEntered(s,l)},r.onExit=function(s){var l=r.resolveArguments(s),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(s)},r.onExiting=function(s){var l=r.resolveArguments(s),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(s)},r.onExited=function(s){var l=r.resolveArguments(s),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(s)},r.resolveArguments=function(s,l){return r.props.nodeRef?[r.props.nodeRef.current,s]:[s,l]},r.getClassNames=function(s){var l=r.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",f=c?""+u+s:l[s],h=c?f+"-active":l[s+"Active"],g=c?f+"-done":l[s+"Done"];return{baseClassName:f,activeClassName:h,doneClassName:g}},r}var n=t.prototype;return n.addClass=function(o,i,a){var s=this.getClassNames(i)[a+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;i==="appear"&&a==="done"&&c&&(s+=" "+c),a==="active"&&o&&eJ(o),s&&(this.appliedClasses[i][a]=s,Zye(o,s))},n.removeClasses=function(o,i){var a=this.appliedClasses[i],s=a.base,l=a.active,c=a.done;this.appliedClasses[i]={},s&&i_(o,s),l&&i_(o,l),c&&i_(o,c)},n.render=function(){var o=this.props;o.classNames;var i=He(o,["classNames"]);return qe.createElement(Zl,B({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(qe.Component);Oz.defaultProps={classNames:""};Oz.propTypes={};function eve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mz(e,t){var n=function(i){return t&&m.isValidElement(i)?t(i):i},r=Object.create(null);return e&&m.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function tve(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var c=r[l][a];s[r[l][a]]=n(c)}s[l]=n(l)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}function Iy(e,t,n){return n[t]!=null?n[t]:e.props[t]}function nve(e,t){return Mz(e.children,function(n){return m.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Iy(n,"appear",e),enter:Iy(n,"enter",e),exit:Iy(n,"exit",e)})})}function rve(e,t,n){var r=Mz(e.children),o=tve(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(m.isValidElement(a)){var s=i in t,l=i in r,c=t[i],u=m.isValidElement(c)&&!c.props.in;l&&(!s||u)?o[i]=m.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Iy(a,"exit",e),enter:Iy(a,"enter",e)}):!l&&s&&!u?o[i]=m.cloneElement(a,{in:!1}):l&&s&&m.isValidElement(c)&&(o[i]=m.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:Iy(a,"exit",e),enter:Iy(a,"enter",e)}))}}),o}var ove=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ive={component:"div",childFactory:function(t){return t}},fT=function(e){Iz(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(eve(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,s=i.handleExited,l=i.firstRender;return{children:l?nve(o,s):rve(o,a,s),firstRender:!1}},n.handleExited=function(o,i){var a=Mz(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(s){var l=B({},s.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,s=He(o,["component","childFactory"]),l=this.state.contextValue,c=ove(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,i===null?qe.createElement(_A.Provider,{value:l},c):qe.createElement(_A.Provider,{value:l},qe.createElement(i,s,c))},t}(qe.Component);fT.propTypes={};fT.defaultProps=ive;const Az=e=>e.scrollTop;function Sm(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function ave(e){return st("MuiCollapse",e)}ct("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const sve=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return $e(r,ave,n)},lve=ue("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Et(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),cve=ue("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),uve=ue("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),as=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:f,onEntered:h,onEntering:g,onExit:y,onExited:x,onExiting:S,orientation:C="vertical",style:E,timeout:I=LX.standard,TransitionComponent:M=Zl,...O}=r,D={...r,orientation:C,collapsedSize:s},N=sve(D),$=Po(),L=Ni(),A=m.useRef(null),F=m.useRef(),z=typeof s=="number"?`${s}px`:s,H=C==="horizontal",Q=H?"width":"height",G=m.useRef(null),V=xn(n,G),Y=fe=>we=>{if(fe){const Oe=G.current;we===void 0?fe(Oe):fe(Oe,we)}},X=()=>A.current?A.current[H?"clientWidth":"clientHeight"]:0,te=Y((fe,we)=>{A.current&&H&&(A.current.style.position="absolute"),fe.style[Q]=z,f&&f(fe,we)}),U=Y((fe,we)=>{const Oe=X();A.current&&H&&(A.current.style.position="");const{duration:he,easing:me}=Sm({style:E,timeout:I,easing:c},{mode:"enter"});if(I==="auto"){const ye=$.transitions.getAutoHeightDuration(Oe);fe.style.transitionDuration=`${ye}ms`,F.current=ye}else fe.style.transitionDuration=typeof he=="string"?he:`${he}ms`;fe.style[Q]=`${Oe}px`,fe.style.transitionTimingFunction=me,g&&g(fe,we)}),K=Y((fe,we)=>{fe.style[Q]="auto",h&&h(fe,we)}),ee=Y(fe=>{fe.style[Q]=`${X()}px`,y&&y(fe)}),le=Y(x),ce=Y(fe=>{const we=X(),{duration:Oe,easing:he}=Sm({style:E,timeout:I,easing:c},{mode:"exit"});if(I==="auto"){const me=$.transitions.getAutoHeightDuration(we);fe.style.transitionDuration=`${me}ms`,F.current=me}else fe.style.transitionDuration=typeof Oe=="string"?Oe:`${Oe}ms`;fe.style[Q]=z,fe.style.transitionTimingFunction=he,S&&S(fe)}),se=fe=>{I==="auto"&&L.start(F.current||0,fe),o&&o(G.current,fe)};return R.jsx(M,{in:u,onEnter:te,onEntered:K,onEntering:U,onExit:ee,onExited:le,onExiting:ce,addEndListener:se,nodeRef:G,timeout:I==="auto"?null:I,...O,children:(fe,{ownerState:we,...Oe})=>R.jsx(lve,{as:l,className:ge(N.root,a,{entered:N.entered,exited:!u&&z==="0px"&&N.hidden}[fe]),style:{[H?"minWidth":"minHeight"]:z,...E},ref:V,ownerState:{...D,state:fe},...Oe,children:R.jsx(cve,{ownerState:{...D,state:fe},className:N.wrapper,ref:A,children:R.jsx(uve,{ownerState:{...D,state:fe},className:N.wrapperInner,children:i})})})})});as&&(as.muiSupportAuto=!0);function dve(e){return st("MuiPaper",e)}ct("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const fve=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return $e(i,dve,o)},pve=ue("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Et(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),ai=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiPaper"}),o=Po(),{className:i,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...u}=r,f={...r,component:a,elevation:s,square:l,variant:c},h=fve(f);return R.jsx(pve,{as:a,ownerState:f,className:ge(h.root,i),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[s],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Kt("#fff",vF(s))}, ${Kt("#fff",vF(s))})`}},...u.style}})}),tJ=m.createContext({});function Dt(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:f={[e]:void 0},...h}=i,g=u[e]||r,y=tf(f[e],o),{props:{component:x,...S},internalRef:C}=IX({className:n,...l,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:y}),E=xn(C,y?.ref,t.ref),I=e==="root"?x||c:x,M=PX(g,{...e==="root"&&!c&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...S,...I&&!s&&{as:I},...I&&s&&{component:I},ref:E},o);return[g,M]}function hve(e){return st("MuiAccordion",e)}const tM=ct("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),mve=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:i}=e;return $e({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!i&&"gutters"],heading:["heading"],region:["region"]},hve,t)},gve=ue(ai,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${tM.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(Et(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${tM.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${tM.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),Et(({theme:e})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${tM.expanded}`]:{margin:"16px 0"}}}]}))),yve=ue("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(e,t)=>t.heading})({all:"unset"}),Dz=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiAccordion"}),{children:o,className:i,defaultExpanded:a=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:f=!1,slots:h={},slotProps:g={},TransitionComponent:y,TransitionProps:x,...S}=r,[C,E]=_s({controlled:c,default:a,name:"Accordion",state:"expanded"}),I=m.useCallback(X=>{E(!C),u&&u(X,!C)},[C,u,E]),[M,...O]=m.Children.toArray(o),D=m.useMemo(()=>({expanded:C,disabled:s,disableGutters:l,toggle:I}),[C,s,l,I]),N={...r,square:f,disabled:s,disableGutters:l,expanded:C},$=mve(N),L={transition:y,...h},A={transition:x,...g},F={slots:L,slotProps:A},[z,H]=Dt("root",{elementType:gve,externalForwardedProps:{...F,...S},className:ge($.root,i),shouldForwardComponentProp:!0,ownerState:N,ref:n,additionalProps:{square:f}}),[Q,G]=Dt("heading",{elementType:yve,externalForwardedProps:F,className:$.heading,ownerState:N}),[V,Y]=Dt("transition",{elementType:as,externalForwardedProps:F,ownerState:N});return R.jsxs(z,{...H,children:[R.jsx(Q,{...G,children:R.jsx(tJ.Provider,{value:D,children:M})}),R.jsx(V,{in:C,timeout:"auto",...Y,children:R.jsx("div",{"aria-labelledby":M.props.id,id:M.props["aria-controls"],role:"region",className:$.region,children:O})})]})});function vve(e){return st("MuiAccordionDetails",e)}ct("MuiAccordionDetails",["root"]);const bve=e=>{const{classes:t}=e;return $e({root:["root"]},vve,t)},xve=ue("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(Et(({theme:e})=>({padding:e.spacing(1,2,2)}))),Rz=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiAccordionDetails"}),{className:o,...i}=r,a=r,s=bve(a);return R.jsx(xve,{className:ge(s.root,o),ref:n,ownerState:a,...i})});class LA{static create(){return new LA}static use(){const t=nd(LA.create).current,[n,r]=m.useState(!1);return t.shouldMount=n,t.setShouldMount=r,m.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Sve(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function wve(){return LA.use()}function Sve(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Cve(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,f]=m.useState(!1),h=ge(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},y=ge(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),m.useEffect(()=>{if(!s&&l!=null){const x=setTimeout(l,c);return()=>{clearTimeout(x)}}},[l,s,c]),R.jsx("span",{className:h,style:g,children:R.jsx("span",{className:y})})}const Ac=ct("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),IF=550,Eve=80,Tve=nu`
- 0% {
- transform: scale(0);
- opacity: 0.1;
- }
-
- 100% {
- transform: scale(1);
- opacity: 0.3;
- }
-`,Pve=nu`
- 0% {
- opacity: 1;
- }
-
- 100% {
- opacity: 0;
- }
-`,Ive=nu`
- 0% {
- transform: scale(1);
- }
-
- 50% {
- transform: scale(0.92);
- }
-
- 100% {
- transform: scale(1);
- }
-`,Ove=ue("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Mve=ue(Cve,{name:"MuiTouchRipple",slot:"Ripple"})`
- opacity: 0;
- position: absolute;
-
- &.${Ac.rippleVisible} {
- opacity: 0.3;
- transform: scale(1);
- animation-name: ${Tve};
- animation-duration: ${IF}ms;
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
- }
-
- &.${Ac.ripplePulsate} {
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
- }
-
- & .${Ac.child} {
- opacity: 1;
- display: block;
- width: 100%;
- height: 100%;
- border-radius: 50%;
- background-color: currentColor;
- }
-
- & .${Ac.childLeaving} {
- opacity: 0;
- animation-name: ${Pve};
- animation-duration: ${IF}ms;
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
- }
-
- & .${Ac.childPulsate} {
- position: absolute;
- /* @noflip */
- left: 0px;
- top: 0;
- animation-name: ${Ive};
- animation-duration: 2500ms;
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
- animation-iteration-count: infinite;
- animation-delay: 200ms;
- }
-`,Ave=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...s}=r,[l,c]=m.useState([]),u=m.useRef(0),f=m.useRef(null);m.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=m.useRef(!1),g=Ni(),y=m.useRef(null),x=m.useRef(null),S=m.useCallback(M=>{const{pulsate:O,rippleX:D,rippleY:N,rippleSize:$,cb:L}=M;c(A=>[...A,R.jsx(Mve,{classes:{ripple:ge(i.ripple,Ac.ripple),rippleVisible:ge(i.rippleVisible,Ac.rippleVisible),ripplePulsate:ge(i.ripplePulsate,Ac.ripplePulsate),child:ge(i.child,Ac.child),childLeaving:ge(i.childLeaving,Ac.childLeaving),childPulsate:ge(i.childPulsate,Ac.childPulsate)},timeout:IF,pulsate:O,rippleX:D,rippleY:N,rippleSize:$},u.current)]),u.current+=1,f.current=L},[i]),C=m.useCallback((M={},O={},D=()=>{})=>{const{pulsate:N=!1,center:$=o||O.pulsate,fakeElement:L=!1}=O;if(M?.type==="mousedown"&&h.current){h.current=!1;return}M?.type==="touchstart"&&(h.current=!0);const A=L?null:x.current,F=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let z,H,Q;if($||M===void 0||M.clientX===0&&M.clientY===0||!M.clientX&&!M.touches)z=Math.round(F.width/2),H=Math.round(F.height/2);else{const{clientX:G,clientY:V}=M.touches&&M.touches.length>0?M.touches[0]:M;z=Math.round(G-F.left),H=Math.round(V-F.top)}if($)Q=Math.sqrt((2*F.width**2+F.height**2)/3),Q%2===0&&(Q+=1);else{const G=Math.max(Math.abs((A?A.clientWidth:0)-z),z)*2+2,V=Math.max(Math.abs((A?A.clientHeight:0)-H),H)*2+2;Q=Math.sqrt(G**2+V**2)}M?.touches?y.current===null&&(y.current=()=>{S({pulsate:N,rippleX:z,rippleY:H,rippleSize:Q,cb:D})},g.start(Eve,()=>{y.current&&(y.current(),y.current=null)})):S({pulsate:N,rippleX:z,rippleY:H,rippleSize:Q,cb:D})},[o,S,g]),E=m.useCallback(()=>{C({},{pulsate:!0})},[C]),I=m.useCallback((M,O)=>{if(g.clear(),M?.type==="touchend"&&y.current){y.current(),y.current=null,g.start(0,()=>{I(M,O)});return}y.current=null,c(D=>D.length>0?D.slice(1):D),f.current=O},[g]);return m.useImperativeHandle(n,()=>({pulsate:E,start:C,stop:I}),[E,C,I]),R.jsx(Ove,{className:ge(Ac.root,i.root,a),ref:x,...s,children:R.jsx(fT,{component:null,exit:!0,children:l})})});function Dve(e){return st("MuiButtonBase",e)}const Rve=ct("MuiButtonBase",["root","disabled","focusVisible"]),kve=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=$e({root:["root",t&&"disabled",n&&"focusVisible"]},Dve,o);return n&&r&&(a.root+=` ${r}`),a},Nve=ue("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Rve.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ls=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:h=!1,focusVisibleClassName:g,LinkComponent:y="a",onBlur:x,onClick:S,onContextMenu:C,onDragLeave:E,onFocus:I,onFocusVisible:M,onKeyDown:O,onKeyUp:D,onMouseDown:N,onMouseLeave:$,onMouseUp:L,onTouchEnd:A,onTouchMove:F,onTouchStart:z,tabIndex:H=0,TouchRippleProps:Q,touchRippleRef:G,type:V,...Y}=r,X=m.useRef(null),te=wve(),U=xn(te.ref,G),[K,ee]=m.useState(!1);c&&K&&ee(!1),m.useImperativeHandle(o,()=>({focusVisible:()=>{ee(!0),X.current.focus()}}),[]);const le=te.shouldMount&&!u&&!c;m.useEffect(()=>{K&&h&&!u&&te.pulsate()},[u,h,K,te]);const ce=ep(te,"start",N,f),se=ep(te,"stop",C,f),fe=ep(te,"stop",E,f),we=ep(te,"stop",L,f),Oe=ep(te,"stop",pe=>{K&&pe.preventDefault(),$&&$(pe)},f),he=ep(te,"start",z,f),me=ep(te,"stop",A,f),ye=ep(te,"stop",F,f),ae=ep(te,"stop",pe=>{MA(pe.target)||ee(!1),x&&x(pe)},!1),Se=ft(pe=>{X.current||(X.current=pe.currentTarget),MA(pe.target)&&(ee(!0),M&&M(pe)),I&&I(pe)}),Ie=()=>{const pe=X.current;return l&&l!=="button"&&!(pe.tagName==="A"&&pe.href)},Re=ft(pe=>{h&&!pe.repeat&&K&&pe.key===" "&&te.stop(pe,()=>{te.start(pe)}),pe.target===pe.currentTarget&&Ie()&&pe.key===" "&&pe.preventDefault(),O&&O(pe),pe.target===pe.currentTarget&&Ie()&&pe.key==="Enter"&&!c&&(pe.preventDefault(),S&&S(pe))}),ke=ft(pe=>{h&&pe.key===" "&&K&&!pe.defaultPrevented&&te.stop(pe,()=>{te.pulsate(pe)}),D&&D(pe),S&&pe.target===pe.currentTarget&&Ie()&&pe.key===" "&&!pe.defaultPrevented&&S(pe)});let Te=l;Te==="button"&&(Y.href||Y.to)&&(Te=y);const Ce={};Te==="button"?(Ce.type=V===void 0?"button":V,Ce.disabled=c):(!Y.href&&!Y.to&&(Ce.role="button"),c&&(Ce["aria-disabled"]=c));const Ze=xn(n,X),Me={...r,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:h,tabIndex:H,focusVisible:K},_e=kve(Me);return R.jsxs(Nve,{as:Te,className:ge(_e.root,s),ownerState:Me,onBlur:ae,onClick:S,onContextMenu:se,onFocus:Se,onKeyDown:Re,onKeyUp:ke,onMouseDown:ce,onMouseLeave:Oe,onMouseUp:we,onDragLeave:fe,onTouchEnd:me,onTouchMove:ye,onTouchStart:he,ref:Ze,tabIndex:c?-1:H,type:V,...Ce,...Y,children:[a,le?R.jsx(Ave,{ref:U,center:i,...Q}):null]})});function ep(e,t,n,r=!1){return ft(o=>(n&&n(o),r||e[t](o),!0))}function _ve(e){return st("MuiAccordionSummary",e)}const q0=ct("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Lve=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return $e({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},_ve,t)},$ve=ue(Ls,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(Et(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${q0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${q0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${q0.disabled})`]:{cursor:"pointer"},variants:[{props:n=>!n.disableGutters,style:{[`&.${q0.expanded}`]:{minHeight:64}}}]}})),Fve=ue("span",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(Et(({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${q0.expanded}`]:{margin:"20px 0"}}}]}))),jve=ue("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(Et(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${q0.expanded}`]:{transform:"rotate(180deg)"}}))),kz=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiAccordionSummary"}),{children:o,className:i,expandIcon:a,focusVisibleClassName:s,onClick:l,slots:c,slotProps:u,...f}=r,{disabled:h=!1,disableGutters:g,expanded:y,toggle:x}=m.useContext(tJ),S=A=>{x&&x(A),l&&l(A)},C={...r,expanded:y,disabled:h,disableGutters:g},E=Lve(C),I={slots:c,slotProps:u},[M,O]=Dt("root",{ref:n,shouldForwardComponentProp:!0,className:ge(E.root,i),elementType:$ve,externalForwardedProps:{...I,...f},ownerState:C,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:h,"aria-expanded":y,focusVisibleClassName:ge(E.focusVisible,s)},getSlotProps:A=>({...A,onClick:F=>{A.onClick?.(F),S(F)}})}),[D,N]=Dt("content",{className:E.content,elementType:Fve,externalForwardedProps:I,ownerState:C}),[$,L]=Dt("expandIconWrapper",{className:E.expandIconWrapper,elementType:jve,externalForwardedProps:I,ownerState:C});return R.jsxs(M,{...O,children:[R.jsx(D,{...N,children:o}),a&&R.jsx($,{...L,children:a})]})});function Bve(e){return typeof e.main=="string"}function zve(e,t=[]){if(!Bve(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Mr(e=[]){return([,t])=>t&&zve(t,e)}function Vve(e){return st("MuiAlert",e)}const g3=ct("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Hve(e){return st("MuiCircularProgress",e)}ct("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Wh=44,OF=nu`
- 0% {
- transform: rotate(0deg);
- }
-
- 100% {
- transform: rotate(360deg);
- }
-`,MF=nu`
- 0% {
- stroke-dasharray: 1px, 200px;
- stroke-dashoffset: 0;
- }
-
- 50% {
- stroke-dasharray: 100px, 200px;
- stroke-dashoffset: -15px;
- }
-
- 100% {
- stroke-dasharray: 1px, 200px;
- stroke-dashoffset: -126px;
- }
-`,Uve=typeof OF!="string"?Nm`
- animation: ${OF} 1.4s linear infinite;
- `:null,Gve=typeof MF!="string"?Nm`
- animation: ${MF} 1.4s ease-in-out infinite;
- `:null,Wve=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${Ae(r)}`],svg:["svg"],circle:["circle",`circle${Ae(n)}`,o&&"circleDisableShrink"]};return $e(i,Hve,t)},qve=ue("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Ae(n.color)}`]]}})(Et(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Uve||{animation:`${OF} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Mr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Kve=ue("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Yve=ue("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Ae(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Et(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Gve||{animation:`${MF} 1.4s ease-in-out infinite`}}]}))),pT=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:f="indeterminate",...h}=r,g={...r,color:i,disableShrink:a,size:s,thickness:c,value:u,variant:f},y=Wve(g),x={},S={},C={};if(f==="determinate"){const E=2*Math.PI*((Wh-c)/2);x.strokeDasharray=E.toFixed(3),C["aria-valuenow"]=Math.round(u),x.strokeDashoffset=`${((100-u)/100*E).toFixed(3)}px`,S.transform="rotate(-90deg)"}return R.jsx(qve,{className:ge(y.root,o),style:{width:s,height:s,...S,...l},ownerState:g,ref:n,role:"progressbar",...C,...h,children:R.jsx(Kve,{className:y.svg,ownerState:g,viewBox:`${Wh/2} ${Wh/2} ${Wh} ${Wh}`,children:R.jsx(Yve,{className:y.circle,style:x,ownerState:g,cx:Wh,cy:Wh,r:(Wh-c)/2,fill:"none",strokeWidth:c})})})});function Qve(e){return st("MuiIconButton",e)}const AF=ct("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Xve=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:a}=e,s={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${Ae(r)}`,o&&`edge${Ae(o)}`,`size${Ae(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return $e(s,Qve,t)},Jve=ue(Ls,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Ae(n.color)}`],n.edge&&t[`edge${Ae(n.edge)}`],t[`size${Ae(n.size)}`]]}})(Et(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Et(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Mr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Mr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${AF.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${AF.loading}`]:{color:"transparent"}}))),Zve=ue("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),An=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:f,loading:h=null,loadingIndicator:g,...y}=r,x=_n(f),S=g??R.jsx(pT,{"aria-labelledby":x,color:"inherit",size:16}),C={...r,edge:o,color:s,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:S,size:u},E=Xve(C);return R.jsxs(Jve,{id:h?x:f,className:ge(E.root,a),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:n,...y,ownerState:C,children:[typeof h=="boolean"&&R.jsx("span",{className:E.loadingWrapper,style:{display:"contents"},children:R.jsx(Zve,{className:E.loadingIndicator,ownerState:C,children:h&&S})}),i]})}),ebe=Lt(R.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),tbe=Lt(R.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),nbe=Lt(R.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),rbe=Lt(R.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),nJ=Lt(R.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),obe=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${Ae(n||r)}`,`${t}${Ae(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return $e(i,Vve,o)},ibe=ue(ai,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ae(n.color||n.severity)}`]]}})(Et(({theme:e})=>{const t=e.palette.mode==="light"?Cp:Ep,n=e.palette.mode==="light"?Ep:Cp;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Mr(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${g3.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Mr(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${g3.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Mr(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),abe=ue("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),sbe=ue("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),lbe=ue("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),y3={success:R.jsx(ebe,{fontSize:"inherit"}),warning:R.jsx(tbe,{fontSize:"inherit"}),error:R.jsx(nbe,{fontSize:"inherit"}),info:R.jsx(rbe,{fontSize:"inherit"})},pa=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:f,iconMapping:h=y3,onClose:g,role:y="alert",severity:x="success",slotProps:S={},slots:C={},variant:E="standard",...I}=r,M={...r,color:l,severity:x,variant:E,colorSeverity:l||x},O=obe(M),D={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...C},slotProps:{...u,...S}},[N,$]=Dt("root",{ref:n,shouldForwardComponentProp:!0,className:ge(O.root,a),elementType:ibe,externalForwardedProps:{...D,...I},ownerState:M,additionalProps:{role:y,elevation:0}}),[L,A]=Dt("icon",{className:O.icon,elementType:abe,externalForwardedProps:D,ownerState:M}),[F,z]=Dt("message",{className:O.message,elementType:sbe,externalForwardedProps:D,ownerState:M}),[H,Q]=Dt("action",{className:O.action,elementType:lbe,externalForwardedProps:D,ownerState:M}),[G,V]=Dt("closeButton",{elementType:An,externalForwardedProps:D,ownerState:M}),[Y,X]=Dt("closeIcon",{elementType:nJ,externalForwardedProps:D,ownerState:M});return R.jsxs(N,{...$,children:[f!==!1?R.jsx(L,{...A,children:f||h[x]||y3[x]}):null,R.jsx(F,{...z,children:i}),o!=null?R.jsx(H,{...Q,children:o}):null,o==null&&g?R.jsx(H,{...Q,children:R.jsx(G,{size:"small","aria-label":s,title:s,color:"inherit",onClick:g,...V,children:R.jsx(Y,{fontSize:"small",...X})})}):null]})});function cbe(e){return st("MuiTypography",e)}const $A=ct("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),ube={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},dbe=Uye(),fbe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${Ae(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return $e(s,cbe,a)},pbe=ue("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Ae(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Et(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(Mr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Ae(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),v3={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},wt=m.forwardRef(function(t,n){const{color:r,...o}=Tt({props:t,name:"MuiTypography"}),i=!ube[r],a=dbe({...o,...i&&{color:r}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:f=!1,paragraph:h=!1,variant:g="body1",variantMapping:y=v3,...x}=a,S={...a,align:s,color:r,className:l,component:c,gutterBottom:u,noWrap:f,paragraph:h,variant:g,variantMapping:y},C=c||(h?"p":y[g]||v3[g])||"span",E=fbe(S);return R.jsx(pbe,{as:C,ref:n,className:ge(E.root,l),...x,ownerState:S,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...x.style}})});function hbe(e){return st("MuiAlertTitle",e)}ct("MuiAlertTitle",["root"]);const mbe=e=>{const{classes:t}=e;return $e({root:["root"]},hbe,t)},gbe=ue(wt,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(Et(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),Cm=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiAlertTitle"}),{className:o,...i}=r,a=r,s=mbe(a);return R.jsx(gbe,{gutterBottom:!0,component:"div",ownerState:a,ref:n,className:ge(s.root,o),...i})});function ybe(e){return st("MuiAppBar",e)}ct("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const vbe=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Ae(t)}`,`position${Ae(n)}`]};return $e(o,ybe,r)},b3=(e,t)=>e?`${e?.replace(")","")}, ${t})`:t,bbe=ue(ai,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Ae(n.position)}`],t[`color${Ae(n.color)}`]]}})(Et(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Mr(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?b3(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?b3(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),xbe=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed",...l}=r,c={...r,color:i,position:s,enableColorOnDark:a},u=vbe(c);return R.jsx(bbe,{square:!0,component:"header",ownerState:c,elevation:4,className:ge(u.root,o,s==="fixed"&&"mui-fixed"),ref:n,...l})});function x3(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function wbe(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=a?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=x3(u));const f=u?s.filter(h=>{let g=(i||c)(h);return n&&(g=g.toLowerCase()),t&&(g=x3(g)),o==="start"?g.startsWith(u):g.includes(u)}):s;return typeof r=="number"?f.slice(0,r):f}}const Sbe=wbe(),w3=5,Cbe=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),Ebe=[];function S3(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function Tbe(e){const{unstable_isActiveElementInListbox:t=Cbe,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?Ebe:null,disableClearable:f=!1,disableCloseOnSelect:h=!1,disabled:g,disabledItemsFocusable:y=!1,disableListWrap:x=!1,filterOptions:S=Sbe,filterSelectedOptions:C=!1,freeSolo:E=!1,getOptionDisabled:I,getOptionKey:M,getOptionLabel:O=Ye=>Ye.label??Ye,groupBy:D,handleHomeEndKeys:N=!e.freeSolo,id:$,includeInputInList:L=!1,inputValue:A,isOptionEqualToValue:F=(Ye,at)=>Ye===at,multiple:z=!1,onChange:H,onClose:Q,onHighlightChange:G,onInputChange:V,onOpen:Y,open:X,openOnFocus:te=!1,options:U,readOnly:K=!1,renderValue:ee,selectOnFocus:le=!e.freeSolo,value:ce}=e,se=_n($);let fe=O;fe=Ye=>{const at=O(Ye);return typeof at!="string"?String(at):at};const we=m.useRef(!1),Oe=m.useRef(!0),he=m.useRef(null),me=m.useRef(null),[ye,ae]=m.useState(null),[Se,Ie]=m.useState(-1),Re=o?0:-1,ke=m.useRef(Re),Te=m.useRef(S3(u??ce,z,fe)).current,[Ce,Ze]=_s({controlled:ce,default:u,name:c}),[Me,_e]=_s({controlled:A,default:Te,name:c,state:"inputValue"}),[pe,je]=m.useState(!1),Ke=m.useCallback((Ye,at,Wt)=>{if(!(z?Ce.length<at.length:at!==null)&&!s)return;const an=S3(at,z,fe,ee);Me!==an&&(_e(an),V&&V(Ye,an,Wt))},[fe,Me,z,V,_e,s,Ce,ee]),[et,nt]=_s({controlled:X,default:!1,name:c,state:"open"}),[ot,it]=m.useState(!0),tt=!z&&Ce!=null&&Me===fe(Ce),vt=et&&!K,Je=vt?S(U.filter(Ye=>!(C&&(z?Ce:[Ce]).some(at=>at!==null&&F(Ye,at)))),{inputValue:tt&&ot?"":Me,getOptionLabel:fe}):[],Mt=yz({filteredOptions:Je,value:Ce,inputValue:Me});m.useEffect(()=>{const Ye=Ce!==Mt.value;pe&&!Ye||E&&!Ye||Ke(null,Ce,"reset")},[Ce,Ke,pe,Mt.value,E]);const Gt=et&&Je.length>0&&!K,ht=ft(Ye=>{if(Ye===-1)he.current.focus();else{const at=ee?"data-item-index":"data-tag-index";ye.querySelector(`[${at}="${Ye}"]`).focus()}});m.useEffect(()=>{z&&Se>Ce.length-1&&(Ie(-1),ht(-1))},[Ce,z,Se,ht]);function Qt(Ye,at){if(!me.current||Ye<0||Ye>=Je.length)return-1;let Wt=Ye;for(;;){const Mn=me.current.querySelector(`[data-option-index="${Wt}"]`),an=y?!1:!Mn||Mn.disabled||Mn.getAttribute("aria-disabled")==="true";if(Mn&&Mn.hasAttribute("tabindex")&&!an)return Wt;if(at==="next"?Wt=(Wt+1)%Je.length:Wt=(Wt-1+Je.length)%Je.length,Wt===Ye)return-1}}const en=ft(({event:Ye,index:at,reason:Wt})=>{if(ke.current=at,at===-1?he.current.removeAttribute("aria-activedescendant"):he.current.setAttribute("aria-activedescendant",`${se}-option-${at}`),G&&["mouse","keyboard","touch"].includes(Wt)&&G(Ye,at===-1?null:Je[at],Wt),!me.current)return;const Mn=me.current.querySelector(`[role="option"].${n}-focused`);Mn&&(Mn.classList.remove(`${n}-focused`),Mn.classList.remove(`${n}-focusVisible`));let an=me.current;if(me.current.getAttribute("role")!=="listbox"&&(an=me.current.parentElement.querySelector('[role="listbox"]')),!an)return;if(at===-1){an.scrollTop=0;return}const no=me.current.querySelector(`[data-option-index="${at}"]`);if(no&&(no.classList.add(`${n}-focused`),Wt==="keyboard"&&no.classList.add(`${n}-focusVisible`),an.scrollHeight>an.clientHeight&&Wt!=="mouse"&&Wt!=="touch")){const Oo=no,Ti=an.clientHeight+an.scrollTop,Xm=Oo.offsetTop+Oo.offsetHeight;Xm>Ti?an.scrollTop=Xm-an.clientHeight:Oo.offsetTop-Oo.offsetHeight*(D?1.3:0)<an.scrollTop&&(an.scrollTop=Oo.offsetTop-Oo.offsetHeight*(D?1.3:0))}}),qt=ft(({event:Ye,diff:at,direction:Wt="next",reason:Mn})=>{if(!vt)return;const no=Qt((()=>{const Oo=Je.length-1;if(at==="reset")return Re;if(at==="start")return 0;if(at==="end")return Oo;const Ti=ke.current+at;return Ti<0?Ti===-1&&L?-1:x&&ke.current!==-1||Math.abs(at)>1?0:Oo:Ti>Oo?Ti===Oo+1&&L?-1:x||Math.abs(at)>1?Oo:0:Ti})(),Wt);if(en({index:no,reason:Mn,event:Ye}),r&&at!=="reset")if(no===-1)he.current.value=Me;else{const Oo=fe(Je[no]);he.current.value=Oo,Oo.toLowerCase().indexOf(Me.toLowerCase())===0&&Me.length>0&&he.current.setSelectionRange(Me.length,Oo.length)}}),zn=()=>{const Ye=(at,Wt)=>{const Mn=at?fe(at):"",an=Wt?fe(Wt):"";return Mn===an};if(ke.current!==-1&&Mt.filteredOptions&&Mt.filteredOptions.length!==Je.length&&Mt.inputValue===Me&&(z?Ce.length===Mt.value.length&&Mt.value.every((at,Wt)=>fe(Ce[Wt])===fe(at)):Ye(Mt.value,Ce))){const at=Mt.filteredOptions[ke.current];if(at)return Je.findIndex(Wt=>fe(Wt)===fe(at))}return-1},lr=m.useCallback(()=>{if(!vt)return;const Ye=zn();if(Ye!==-1){ke.current=Ye;return}const at=z?Ce[0]:Ce;if(Je.length===0||at==null){qt({diff:"reset"});return}if(me.current){if(at!=null){const Wt=Je[ke.current];if(z&&Wt&&Ce.findIndex(an=>F(Wt,an))!==-1)return;const Mn=Je.findIndex(an=>F(an,at));Mn===-1?qt({diff:"reset"}):en({index:Mn});return}if(ke.current>=Je.length-1){en({index:Je.length-1});return}en({index:ke.current})}},[Je.length,z?!1:Ce,C,qt,en,vt,Me,z]),to=ft(Ye=>{gF(me,Ye),Ye&&lr()});m.useEffect(()=>{lr()},[lr]);const xr=Ye=>{et||(nt(!0),it(!0),Y&&Y(Ye))},Yn=(Ye,at)=>{et&&(nt(!1),Q&&Q(Ye,at))},Io=(Ye,at,Wt,Mn)=>{if(z){if(Ce.length===at.length&&Ce.every((an,no)=>an===at[no]))return}else if(Ce===at)return;H&&H(Ye,at,Wt,Mn),Ze(at)},Ci=m.useRef(!1),si=(Ye,at,Wt="selectOption",Mn="options")=>{let an=Wt,no=at;if(z){no=Array.isArray(Ce)?Ce.slice():[];const Oo=no.findIndex(Ti=>F(at,Ti));Oo===-1?no.push(at):Mn!=="freeSolo"&&(no.splice(Oo,1),an="removeOption")}Ke(Ye,no,an),Io(Ye,no,an,{option:at}),!h&&(!Ye||!Ye.ctrlKey&&!Ye.metaKey)&&Yn(Ye,an),(a===!0||a==="touch"&&Ci.current||a==="mouse"&&!Ci.current)&&he.current.blur()};function us(Ye,at){if(Ye===-1)return-1;let Wt=Ye;for(;;){if(at==="next"&&Wt===Ce.length||at==="previous"&&Wt===-1)return-1;const Mn=ee?"data-item-index":"data-tag-index",an=ye.querySelector(`[${Mn}="${Wt}"]`);if(!an||!an.hasAttribute("tabindex")||an.disabled||an.getAttribute("aria-disabled")==="true")Wt+=at==="next"?1:-1;else return Wt}}const fn=(Ye,at)=>{if(!z)return;Me===""&&Yn(Ye,"toggleInput");let Wt=Se;Se===-1?Me===""&&at==="previous"&&(Wt=Ce.length-1):(Wt+=at==="next"?1:-1,Wt<0&&(Wt=0),Wt===Ce.length&&(Wt=-1)),Wt=us(Wt,at),Ie(Wt),ht(Wt)},Vn=Ye=>{we.current=!0,_e(""),V&&V(Ye,"","clear"),Io(Ye,z?[]:null,"clear")},$t=Ye=>at=>{if(Ye.onKeyDown&&Ye.onKeyDown(at),!at.defaultMuiPrevented&&(Se!==-1&&!["ArrowLeft","ArrowRight"].includes(at.key)&&(Ie(-1),ht(-1)),at.which!==229))switch(at.key){case"Home":vt&&N&&(at.preventDefault(),qt({diff:"start",direction:"next",reason:"keyboard",event:at}));break;case"End":vt&&N&&(at.preventDefault(),qt({diff:"end",direction:"previous",reason:"keyboard",event:at}));break;case"PageUp":at.preventDefault(),qt({diff:-w3,direction:"previous",reason:"keyboard",event:at}),xr(at);break;case"PageDown":at.preventDefault(),qt({diff:w3,direction:"next",reason:"keyboard",event:at}),xr(at);break;case"ArrowDown":at.preventDefault(),qt({diff:1,direction:"next",reason:"keyboard",event:at}),xr(at);break;case"ArrowUp":at.preventDefault(),qt({diff:-1,direction:"previous",reason:"keyboard",event:at}),xr(at);break;case"ArrowLeft":!z&&ee?ht(0):fn(at,"previous");break;case"ArrowRight":!z&&ee?ht(-1):fn(at,"next");break;case"Enter":if(ke.current!==-1&&vt){const Wt=Je[ke.current],Mn=I?I(Wt):!1;if(at.preventDefault(),Mn)return;si(at,Wt,"selectOption"),r&&he.current.setSelectionRange(he.current.value.length,he.current.value.length)}else E&&Me!==""&&tt===!1&&(z&&at.preventDefault(),si(at,Me,"createOption","freeSolo"));break;case"Escape":vt?(at.preventDefault(),at.stopPropagation(),Yn(at,"escape")):l&&(Me!==""||z&&Ce.length>0||ee)&&(at.preventDefault(),at.stopPropagation(),Vn(at));break;case"Backspace":if(z&&!K&&Me===""&&Ce.length>0){const Wt=Se===-1?Ce.length-1:Se,Mn=Ce.slice();Mn.splice(Wt,1),Io(at,Mn,"removeOption",{option:Ce[Wt]})}!z&&ee&&!K&&(Ze(null),ht(-1));break;case"Delete":if(z&&!K&&Me===""&&Ce.length>0&&Se!==-1){const Wt=Se,Mn=Ce.slice();Mn.splice(Wt,1),Io(at,Mn,"removeOption",{option:Ce[Wt]})}!z&&ee&&!K&&(Ze(null),ht(-1));break}},Yt=Ye=>{je(!0),te&&!we.current&&xr(Ye)},ln=Ye=>{if(t(me)){he.current.focus();return}je(!1),Oe.current=!0,we.current=!1,i&&ke.current!==-1&&vt?si(Ye,Je[ke.current],"blur"):i&&E&&Me!==""?si(Ye,Me,"blur","freeSolo"):s&&Ke(Ye,Ce,"blur"),Yn(Ye,"blur")},pn=Ye=>{const at=Ye.target.value;Me!==at&&(_e(at),it(!1),V&&V(Ye,at,"input")),at===""?!f&&!z&&Io(Ye,null,"clear"):xr(Ye)},cr=Ye=>{const at=Number(Ye.currentTarget.getAttribute("data-option-index"));ke.current!==at&&en({event:Ye,index:at,reason:"mouse"})},Ei=Ye=>{en({event:Ye,index:Number(Ye.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ci.current=!0},ds=Ye=>{const at=Number(Ye.currentTarget.getAttribute("data-option-index"));si(Ye,Je[at],"selectOption"),Ci.current=!1},Fs=Ye=>at=>{const Wt=Ce.slice();Wt.splice(Ye,1),Io(at,Wt,"removeOption",{option:Ce[Ye]})},cd=Ye=>{Io(Ye,null,"removeOption",{option:Ce})},Zi=Ye=>{et?Yn(Ye,"toggleInput"):xr(Ye)},qo=Ye=>{Ye.currentTarget.contains(Ye.target)&&Ye.target.getAttribute("id")!==se&&Ye.preventDefault()},uo=Ye=>{Ye.currentTarget.contains(Ye.target)&&(he.current.focus(),le&&Oe.current&&he.current.selectionEnd-he.current.selectionStart===0&&he.current.select(),Oe.current=!1)},xa=Ye=>{!g&&(Me===""||!et)&&Zi(Ye)};let js=E&&Me.length>0;js=js||(z?Ce.length>0:Ce!==null);let vl=Je;return D&&(vl=Je.reduce((Ye,at,Wt)=>{const Mn=D(at);return Ye.length>0&&Ye[Ye.length-1].group===Mn?Ye[Ye.length-1].options.push(at):Ye.push({key:Wt,index:Wt,group:Mn,options:[at]}),Ye},[])),g&&pe&&ln(),{getRootProps:(Ye={})=>({...Ye,onKeyDown:$t(Ye),onMouseDown:qo,onClick:uo}),getInputLabelProps:()=>({id:`${se}-label`,htmlFor:se}),getInputProps:()=>({id:se,value:Me,onBlur:ln,onFocus:Yt,onChange:pn,onMouseDown:xa,"aria-activedescendant":vt?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Gt?`${se}-listbox`:void 0,"aria-expanded":Gt,autoComplete:"off",ref:he,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Vn}),getItemProps:({index:Ye=0}={})=>({...z&&{key:Ye},...ee?{"data-item-index":Ye}:{"data-tag-index":Ye},tabIndex:-1,...!K&&{onDelete:z?Fs(Ye):cd}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Zi}),getTagProps:({index:Ye})=>({key:Ye,"data-tag-index":Ye,tabIndex:-1,...!K&&{onDelete:Fs(Ye)}}),getListboxProps:()=>({role:"listbox",id:`${se}-listbox`,"aria-labelledby":`${se}-label`,ref:to,onMouseDown:Ye=>{Ye.preventDefault()}}),getOptionProps:({index:Ye,option:at})=>{const Wt=(z?Ce:[Ce]).some(an=>an!=null&&F(at,an)),Mn=I?I(at):!1;return{key:M?.(at)??fe(at),tabIndex:-1,role:"option",id:`${se}-option-${Ye}`,onMouseMove:cr,onClick:ds,onTouchStart:Ei,"data-option-index":Ye,"aria-disabled":Mn,"aria-selected":Wt}},id:se,inputValue:Me,value:Ce,dirty:js,expanded:vt&&ye,popupOpen:vt,focused:pe||Se!==-1,anchorEl:ye,setAnchorEl:ae,focusedItem:Se,focusedTag:Se,groupedOptions:vl}}var cl="top",qc="bottom",Kc="right",ul="left",Nz="auto",hT=[cl,qc,Kc,ul],xx="start",dE="end",Pbe="clippingParents",rJ="viewport",VC="popper",Ibe="reference",C3=hT.reduce(function(e,t){return e.concat([t+"-"+xx,t+"-"+dE])},[]),oJ=[].concat(hT,[Nz]).reduce(function(e,t){return e.concat([t,t+"-"+xx,t+"-"+dE])},[]),Obe="beforeRead",Mbe="read",Abe="afterRead",Dbe="beforeMain",Rbe="main",kbe="afterMain",Nbe="beforeWrite",_be="write",Lbe="afterWrite",$be=[Obe,Mbe,Abe,Dbe,Rbe,kbe,Nbe,_be,Lbe];function nf(e){return e?(e.nodeName||"").toLowerCase():null}function Kl(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Jy(e){var t=Kl(e).Element;return e instanceof t||e instanceof Element}function Bc(e){var t=Kl(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _z(e){if(typeof ShadowRoot>"u")return!1;var t=Kl(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Fbe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Bc(i)||!nf(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function jbe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Bc(o)||!nf(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Bbe={name:"applyStyles",enabled:!0,phase:"write",fn:Fbe,effect:jbe,requires:["computeStyles"]};function Xd(e){return e.split("-")[0]}var $y=Math.max,FA=Math.min,wx=Math.round;function DF(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function iJ(){return!/^((?!chrome|android).)*safari/i.test(DF())}function Sx(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Bc(e)&&(o=e.offsetWidth>0&&wx(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&wx(r.height)/e.offsetHeight||1);var a=Jy(e)?Kl(e):window,s=a.visualViewport,l=!iJ()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function Lz(e){var t=Sx(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function aJ(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&_z(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Tp(e){return Kl(e).getComputedStyle(e)}function zbe(e){return["table","td","th"].indexOf(nf(e))>=0}function Lm(e){return((Jy(e)?e.ownerDocument:e.document)||window.document).documentElement}function AR(e){return nf(e)==="html"?e:e.assignedSlot||e.parentNode||(_z(e)?e.host:null)||Lm(e)}function E3(e){return!Bc(e)||Tp(e).position==="fixed"?null:e.offsetParent}function Vbe(e){var t=/firefox/i.test(DF()),n=/Trident/i.test(DF());if(n&&Bc(e)){var r=Tp(e);if(r.position==="fixed")return null}var o=AR(e);for(_z(o)&&(o=o.host);Bc(o)&&["html","body"].indexOf(nf(o))<0;){var i=Tp(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function mT(e){for(var t=Kl(e),n=E3(e);n&&zbe(n)&&Tp(n).position==="static";)n=E3(n);return n&&(nf(n)==="html"||nf(n)==="body"&&Tp(n).position==="static")?t:n||Vbe(e)||t}function $z(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function F1(e,t,n){return $y(e,FA(t,n))}function Hbe(e,t,n){var r=F1(e,t,n);return r>n?n:r}function sJ(){return{top:0,right:0,bottom:0,left:0}}function lJ(e){return Object.assign({},sJ(),e)}function cJ(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ube=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,lJ(typeof t!="number"?t:cJ(t,hT))};function Gbe(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Xd(n.placement),l=$z(s),c=[ul,Kc].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var f=Ube(o.padding,n),h=Lz(i),g=l==="y"?cl:ul,y=l==="y"?qc:Kc,x=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],S=a[l]-n.rects.reference[l],C=mT(i),E=C?l==="y"?C.clientHeight||0:C.clientWidth||0:0,I=x/2-S/2,M=f[g],O=E-h[u]-f[y],D=E/2-h[u]/2+I,N=F1(M,D,O),$=l;n.modifiersData[r]=(t={},t[$]=N,t.centerOffset=N-D,t)}}function Wbe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||aJ(t.elements.popper,o)&&(t.elements.arrow=o))}const qbe={name:"arrow",enabled:!0,phase:"main",fn:Gbe,effect:Wbe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Cx(e){return e.split("-")[1]}var Kbe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ybe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:wx(n*o)/o||0,y:wx(r*o)/o||0}}function T3(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=a.x,g=h===void 0?0:h,y=a.y,x=y===void 0?0:y,S=typeof u=="function"?u({x:g,y:x}):{x:g,y:x};g=S.x,x=S.y;var C=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),I=ul,M=cl,O=window;if(c){var D=mT(n),N="clientHeight",$="clientWidth";if(D===Kl(n)&&(D=Lm(n),Tp(D).position!=="static"&&s==="absolute"&&(N="scrollHeight",$="scrollWidth")),D=D,o===cl||(o===ul||o===Kc)&&i===dE){M=qc;var L=f&&D===O&&O.visualViewport?O.visualViewport.height:D[N];x-=L-r.height,x*=l?1:-1}if(o===ul||(o===cl||o===qc)&&i===dE){I=Kc;var A=f&&D===O&&O.visualViewport?O.visualViewport.width:D[$];g-=A-r.width,g*=l?1:-1}}var F=Object.assign({position:s},c&&Kbe),z=u===!0?Ybe({x:g,y:x},Kl(n)):{x:g,y:x};if(g=z.x,x=z.y,l){var H;return Object.assign({},F,(H={},H[M]=E?"0":"",H[I]=C?"0":"",H.transform=(O.devicePixelRatio||1)<=1?"translate("+g+"px, "+x+"px)":"translate3d("+g+"px, "+x+"px, 0)",H))}return Object.assign({},F,(t={},t[M]=E?x+"px":"",t[I]=C?g+"px":"",t.transform="",t))}function Qbe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Xd(t.placement),variation:Cx(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,T3(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,T3(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Xbe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Qbe,data:{}};var nM={passive:!0};function Jbe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=Kl(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,nM)}),s&&l.addEventListener("resize",n.update,nM),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,nM)}),s&&l.removeEventListener("resize",n.update,nM)}}const Zbe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Jbe,data:{}};var e0e={left:"right",right:"left",bottom:"top",top:"bottom"};function eA(e){return e.replace(/left|right|bottom|top/g,function(t){return e0e[t]})}var t0e={start:"end",end:"start"};function P3(e){return e.replace(/start|end/g,function(t){return t0e[t]})}function Fz(e){var t=Kl(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function jz(e){return Sx(Lm(e)).left+Fz(e).scrollLeft}function n0e(e,t){var n=Kl(e),r=Lm(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=iJ();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+jz(e),y:l}}function r0e(e){var t,n=Lm(e),r=Fz(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=$y(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=$y(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+jz(e),l=-r.scrollTop;return Tp(o||n).direction==="rtl"&&(s+=$y(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function Bz(e){var t=Tp(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function uJ(e){return["html","body","#document"].indexOf(nf(e))>=0?e.ownerDocument.body:Bc(e)&&Bz(e)?e:uJ(AR(e))}function j1(e,t){var n;t===void 0&&(t=[]);var r=uJ(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Kl(r),a=o?[i].concat(i.visualViewport||[],Bz(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(j1(AR(a)))}function RF(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function o0e(e,t){var n=Sx(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function I3(e,t,n){return t===rJ?RF(n0e(e,n)):Jy(t)?o0e(t,n):RF(r0e(Lm(e)))}function i0e(e){var t=j1(AR(e)),n=["absolute","fixed"].indexOf(Tp(e).position)>=0,r=n&&Bc(e)?mT(e):e;return Jy(r)?t.filter(function(o){return Jy(o)&&aJ(o,r)&&nf(o)!=="body"}):[]}function a0e(e,t,n,r){var o=t==="clippingParents"?i0e(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=I3(e,c,r);return l.top=$y(u.top,l.top),l.right=FA(u.right,l.right),l.bottom=FA(u.bottom,l.bottom),l.left=$y(u.left,l.left),l},I3(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function dJ(e){var t=e.reference,n=e.element,r=e.placement,o=r?Xd(r):null,i=r?Cx(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case cl:l={x:a,y:t.y-n.height};break;case qc:l={x:a,y:t.y+t.height};break;case Kc:l={x:t.x+t.width,y:s};break;case ul:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?$z(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case xx:l[c]=l[c]-(t[u]/2-n[u]/2);break;case dE:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function fE(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?Pbe:s,c=n.rootBoundary,u=c===void 0?rJ:c,f=n.elementContext,h=f===void 0?VC:f,g=n.altBoundary,y=g===void 0?!1:g,x=n.padding,S=x===void 0?0:x,C=lJ(typeof S!="number"?S:cJ(S,hT)),E=h===VC?Ibe:VC,I=e.rects.popper,M=e.elements[y?E:h],O=a0e(Jy(M)?M:M.contextElement||Lm(e.elements.popper),l,u,a),D=Sx(e.elements.reference),N=dJ({reference:D,element:I,placement:o}),$=RF(Object.assign({},I,N)),L=h===VC?$:D,A={top:O.top-L.top+C.top,bottom:L.bottom-O.bottom+C.bottom,left:O.left-L.left+C.left,right:L.right-O.right+C.right},F=e.modifiersData.offset;if(h===VC&&F){var z=F[o];Object.keys(A).forEach(function(H){var Q=[Kc,qc].indexOf(H)>=0?1:-1,G=[cl,qc].indexOf(H)>=0?"y":"x";A[H]+=z[G]*Q})}return A}function s0e(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?oJ:l,u=Cx(r),f=u?s?C3:C3.filter(function(y){return Cx(y)===u}):hT,h=f.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=f);var g=h.reduce(function(y,x){return y[x]=fE(e,{placement:x,boundary:o,rootBoundary:i,padding:a})[Xd(x)],y},{});return Object.keys(g).sort(function(y,x){return g[y]-g[x]})}function l0e(e){if(Xd(e)===Nz)return[];var t=eA(e);return[P3(e),t,P3(t)]}function c0e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,y=g===void 0?!0:g,x=n.allowedAutoPlacements,S=t.options.placement,C=Xd(S),E=C===S,I=l||(E||!y?[eA(S)]:l0e(S)),M=[S].concat(I).reduce(function(ce,se){return ce.concat(Xd(se)===Nz?s0e(t,{placement:se,boundary:u,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:x}):se)},[]),O=t.rects.reference,D=t.rects.popper,N=new Map,$=!0,L=M[0],A=0;A<M.length;A++){var F=M[A],z=Xd(F),H=Cx(F)===xx,Q=[cl,qc].indexOf(z)>=0,G=Q?"width":"height",V=fE(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),Y=Q?H?Kc:ul:H?qc:cl;O[G]>D[G]&&(Y=eA(Y));var X=eA(Y),te=[];if(i&&te.push(V[z]<=0),s&&te.push(V[Y]<=0,V[X]<=0),te.every(function(ce){return ce})){L=F,$=!1;break}N.set(F,te)}if($)for(var U=y?3:1,K=function(se){var fe=M.find(function(we){var Oe=N.get(we);if(Oe)return Oe.slice(0,se).every(function(he){return he})});if(fe)return L=fe,"break"},ee=U;ee>0;ee--){var le=K(ee);if(le==="break")break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}}const u0e={name:"flip",enabled:!0,phase:"main",fn:c0e,requiresIfExists:["offset"],data:{_skip:!1}};function O3(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function M3(e){return[cl,Kc,qc,ul].some(function(t){return e[t]>=0})}function d0e(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=fE(t,{elementContext:"reference"}),s=fE(t,{altBoundary:!0}),l=O3(a,r),c=O3(s,o,i),u=M3(l),f=M3(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const f0e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:d0e};function p0e(e,t,n){var r=Xd(e),o=[ul,cl].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[ul,Kc].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function h0e(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=oJ.reduce(function(u,f){return u[f]=p0e(f,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const m0e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:h0e};function g0e(e){var t=e.state,n=e.name;t.modifiersData[n]=dJ({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const y0e={name:"popperOffsets",enabled:!0,phase:"read",fn:g0e,data:{}};function v0e(e){return e==="x"?"y":"x"}function b0e(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,g=h===void 0?!0:h,y=n.tetherOffset,x=y===void 0?0:y,S=fE(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),C=Xd(t.placement),E=Cx(t.placement),I=!E,M=$z(C),O=v0e(M),D=t.modifiersData.popperOffsets,N=t.rects.reference,$=t.rects.popper,L=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,A=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(D){if(i){var H,Q=M==="y"?cl:ul,G=M==="y"?qc:Kc,V=M==="y"?"height":"width",Y=D[M],X=Y+S[Q],te=Y-S[G],U=g?-$[V]/2:0,K=E===xx?N[V]:$[V],ee=E===xx?-$[V]:-N[V],le=t.elements.arrow,ce=g&&le?Lz(le):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sJ(),fe=se[Q],we=se[G],Oe=F1(0,N[V],ce[V]),he=I?N[V]/2-U-Oe-fe-A.mainAxis:K-Oe-fe-A.mainAxis,me=I?-N[V]/2+U+Oe+we+A.mainAxis:ee+Oe+we+A.mainAxis,ye=t.elements.arrow&&mT(t.elements.arrow),ae=ye?M==="y"?ye.clientTop||0:ye.clientLeft||0:0,Se=(H=F?.[M])!=null?H:0,Ie=Y+he-Se-ae,Re=Y+me-Se,ke=F1(g?FA(X,Ie):X,Y,g?$y(te,Re):te);D[M]=ke,z[M]=ke-Y}if(s){var Te,Ce=M==="x"?cl:ul,Ze=M==="x"?qc:Kc,Me=D[O],_e=O==="y"?"height":"width",pe=Me+S[Ce],je=Me-S[Ze],Ke=[cl,ul].indexOf(C)!==-1,et=(Te=F?.[O])!=null?Te:0,nt=Ke?pe:Me-N[_e]-$[_e]-et+A.altAxis,ot=Ke?Me+N[_e]+$[_e]-et-A.altAxis:je,it=g&&Ke?Hbe(nt,Me,ot):F1(g?nt:pe,Me,g?ot:je);D[O]=it,z[O]=it-Me}t.modifiersData[r]=z}}const x0e={name:"preventOverflow",enabled:!0,phase:"main",fn:b0e,requiresIfExists:["offset"]};function w0e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function S0e(e){return e===Kl(e)||!Bc(e)?Fz(e):w0e(e)}function C0e(e){var t=e.getBoundingClientRect(),n=wx(t.width)/e.offsetWidth||1,r=wx(t.height)/e.offsetHeight||1;return n!==1||r!==1}function E0e(e,t,n){n===void 0&&(n=!1);var r=Bc(t),o=Bc(t)&&C0e(t),i=Lm(t),a=Sx(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((nf(t)!=="body"||Bz(i))&&(s=S0e(t)),Bc(t)?(l=Sx(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=jz(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function T0e(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function P0e(e){var t=T0e(e);return $be.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function I0e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function O0e(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var A3={placement:"bottom",modifiers:[],strategy:"absolute"};function D3(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function M0e(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?A3:o;return function(s,l,c){c===void 0&&(c=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},A3,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],h=!1,g={state:u,setOptions:function(C){var E=typeof C=="function"?C(u.options):C;x(),u.options=Object.assign({},i,u.options,E),u.scrollParents={reference:Jy(s)?j1(s):s.contextElement?j1(s.contextElement):[],popper:j1(l)};var I=P0e(O0e([].concat(r,u.options.modifiers)));return u.orderedModifiers=I.filter(function(M){return M.enabled}),y(),g.update()},forceUpdate:function(){if(!h){var C=u.elements,E=C.reference,I=C.popper;if(D3(E,I)){u.rects={reference:E0e(E,mT(I),u.options.strategy==="fixed"),popper:Lz(I)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(A){return u.modifiersData[A.name]=Object.assign({},A.data)});for(var M=0;M<u.orderedModifiers.length;M++){if(u.reset===!0){u.reset=!1,M=-1;continue}var O=u.orderedModifiers[M],D=O.fn,N=O.options,$=N===void 0?{}:N,L=O.name;typeof D=="function"&&(u=D({state:u,options:$,name:L,instance:g})||u)}}}},update:I0e(function(){return new Promise(function(S){g.forceUpdate(),S(u)})}),destroy:function(){x(),h=!0}};if(!D3(s,l))return g;g.setOptions(c).then(function(S){!h&&c.onFirstUpdate&&c.onFirstUpdate(S)});function y(){u.orderedModifiers.forEach(function(S){var C=S.name,E=S.options,I=E===void 0?{}:E,M=S.effect;if(typeof M=="function"){var O=M({state:u,name:C,instance:g,options:I}),D=function(){};f.push(O||D)}})}function x(){f.forEach(function(S){return S()}),f=[]}return g}}var A0e=[Zbe,y0e,Xbe,Bbe,m0e,u0e,x0e,qbe,f0e],D0e=M0e({defaultModifiers:A0e});function R0e(e){return typeof e=="function"?e():e}const fJ=m.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=m.useState(null),l=xn(m.isValidElement(r)?_m(r):null,n);if(qn(()=>{i||s(R0e(o)||document.body)},[o,i]),qn(()=>{if(a&&!i)return gF(n,a),()=>{gF(n,null)}},[n,a,i]),i){if(m.isValidElement(r)){const c={ref:l};return m.cloneElement(r,c)}return r}return a&&Ev.createPortal(r,a)});function k0e(e){return st("MuiPopper",e)}ct("MuiPopper",["root"]);function N0e(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function kF(e){return typeof e=="function"?e():e}function _0e(e){return e.nodeType!==void 0}const L0e=e=>{const{classes:t}=e;return $e({root:["root"]},k0e,t)},$0e={},F0e=m.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:f,slotProps:h={},slots:g={},TransitionProps:y,ownerState:x,...S}=t,C=m.useRef(null),E=xn(C,n),I=m.useRef(null),M=xn(I,f),O=m.useRef(M);qn(()=>{O.current=M},[M]),m.useImperativeHandle(f,()=>I.current,[]);const D=N0e(c,i),[N,$]=m.useState(D),[L,A]=m.useState(kF(r));m.useEffect(()=>{I.current&&I.current.forceUpdate()}),m.useEffect(()=>{r&&A(kF(r))},[r]),qn(()=>{if(!L||!l)return;const G=X=>{$(X.placement)};let V=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:X})=>{G(X)}}];s!=null&&(V=V.concat(s)),u&&u.modifiers!=null&&(V=V.concat(u.modifiers));const Y=D0e(L,C.current,{placement:D,...u,modifiers:V});return O.current(Y),()=>{Y.destroy(),O.current(null)}},[L,a,s,l,u,D]);const F={placement:N};y!==null&&(F.TransitionProps=y);const z=L0e(t),H=g.root??"div",Q=nr({elementType:H,externalSlotProps:h.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:E},ownerState:t,className:z.root});return R.jsx(H,{...Q,children:typeof o=="function"?o(F):o})}),j0e=m.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:h=$0e,popperRef:g,style:y,transition:x=!1,slotProps:S={},slots:C={},...E}=t,[I,M]=m.useState(!0),O=()=>{M(!1)},D=()=>{M(!0)};if(!l&&!u&&(!x||I))return null;let N;if(i)N=i;else if(r){const A=kF(r);N=A&&_0e(A)?yo(A).body:yo(null).body}const $=!u&&l&&(!x||I)?"none":void 0,L=x?{in:u,onEnter:O,onExited:D}:void 0;return R.jsx(fJ,{disablePortal:s,container:N,children:R.jsx(F0e,{anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:x?!I:u,placement:f,popperOptions:h,popperRef:g,slotProps:S,slots:C,...E,style:{position:"fixed",top:0,left:0,display:$,...y},TransitionProps:L,children:o})})}),B0e=ue(j0e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sw=m.forwardRef(function(t,n){const r=eo(),o=Tt({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:f,modifiers:h,open:g,placement:y,popperOptions:x,popperRef:S,transition:C,slots:E,slotProps:I,...M}=o,O=E?.root??s?.Root,D={anchorEl:i,container:c,disablePortal:u,keepMounted:f,modifiers:h,open:g,placement:y,popperOptions:x,popperRef:S,transition:C,...M};return R.jsx(B0e,{as:a,direction:r?"rtl":"ltr",slots:{root:O},slotProps:I??l,...D,ref:n})});function z0e(e){return st("MuiListSubheader",e)}ct("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const V0e=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${Ae(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return $e(a,z0e,t)},H0e=ue("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Ae(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Et(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),NF=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1,...u}=r,f={...r,color:i,component:a,disableGutters:s,disableSticky:l,inset:c},h=V0e(f);return R.jsx(H0e,{as:a,className:ge(h.root,o),ref:n,ownerState:f,...u})});NF&&(NF.muiSkipListHighlight=!0);const U0e=Lt(R.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function G0e(e){return st("MuiChip",e)}const fr=ct("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),W0e=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Ae(r)}`,`color${Ae(o)}`,s&&"clickable",s&&`clickableColor${Ae(o)}`,a&&"deletable",a&&`deletableColor${Ae(o)}`,`${l}${Ae(o)}`],label:["label",`label${Ae(r)}`],avatar:["avatar",`avatar${Ae(r)}`,`avatarColor${Ae(o)}`],icon:["icon",`icon${Ae(r)}`,`iconColor${Ae(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Ae(r)}`,`deleteIconColor${Ae(o)}`,`deleteIcon${Ae(l)}Color${Ae(o)}`]};return $e(c,G0e,t)},q0e=ue("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${fr.avatar}`]:t.avatar},{[`& .${fr.avatar}`]:t[`avatar${Ae(s)}`]},{[`& .${fr.avatar}`]:t[`avatarColor${Ae(r)}`]},{[`& .${fr.icon}`]:t.icon},{[`& .${fr.icon}`]:t[`icon${Ae(s)}`]},{[`& .${fr.icon}`]:t[`iconColor${Ae(o)}`]},{[`& .${fr.deleteIcon}`]:t.deleteIcon},{[`& .${fr.deleteIcon}`]:t[`deleteIcon${Ae(s)}`]},{[`& .${fr.deleteIcon}`]:t[`deleteIconColor${Ae(r)}`]},{[`& .${fr.deleteIcon}`]:t[`deleteIcon${Ae(l)}Color${Ae(r)}`]},t.root,t[`size${Ae(s)}`],t[`color${Ae(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Ae(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Ae(r)}`],t[l],t[`${l}${Ae(r)}`]]}})(Et(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${fr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${fr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${fr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${fr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${fr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${fr.icon}`]:{marginLeft:5,marginRight:-6},[`& .${fr.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Kt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Kt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${fr.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${fr.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Mr(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${fr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Kt(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${fr.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${fr.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${fr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Kt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Mr(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${fr.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Kt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${fr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Kt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Mr(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${fr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${fr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${fr.avatar}`]:{marginLeft:4},[`& .${fr.avatarSmall}`]:{marginLeft:2},[`& .${fr.icon}`]:{marginLeft:4},[`& .${fr.iconSmall}`]:{marginLeft:2},[`& .${fr.deleteIcon}`]:{marginRight:5},[`& .${fr.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Mr()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Kt(e.palette[n].main,.7)}`,[`&.${fr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${fr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Kt(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${fr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Kt(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),K0e=ue("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Ae(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function R3(e){return e.key==="Backspace"||e.key==="Delete"}const Yc=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:h,onClick:g,onDelete:y,onKeyDown:x,onKeyUp:S,size:C="medium",variant:E="filled",tabIndex:I,skipFocusWhenDisabled:M=!1,...O}=r,D=m.useRef(null),N=xn(D,n),$=te=>{te.stopPropagation(),y&&y(te)},L=te=>{te.currentTarget===te.target&&R3(te)&&te.preventDefault(),x&&x(te)},A=te=>{te.currentTarget===te.target&&y&&R3(te)&&y(te),S&&S(te)},F=a!==!1&&g?!0:a,z=F||y?Ls:l||"div",H={...r,component:z,disabled:u,size:C,color:s,iconColor:m.isValidElement(f)&&f.props.color||s,onDelete:!!y,clickable:F,variant:E},Q=W0e(H),G=z===Ls?{component:l||"div",focusVisibleClassName:Q.focusVisible,...y&&{disableRipple:!0}}:{};let V=null;y&&(V=c&&m.isValidElement(c)?m.cloneElement(c,{className:ge(c.props.className,Q.deleteIcon),onClick:$}):R.jsx(U0e,{className:ge(Q.deleteIcon),onClick:$}));let Y=null;o&&m.isValidElement(o)&&(Y=m.cloneElement(o,{className:ge(Q.avatar,o.props.className)}));let X=null;return f&&m.isValidElement(f)&&(X=m.cloneElement(f,{className:ge(Q.icon,f.props.className)})),R.jsxs(q0e,{as:z,className:ge(Q.root,i),disabled:F&&u?!0:void 0,onClick:g,onKeyDown:L,onKeyUp:A,ref:N,tabIndex:M&&u?-1:I,ownerState:H,...G,...O,children:[Y||X,R.jsx(K0e,{className:ge(Q.label),ownerState:H,children:h}),V]})});function rM(e){return parseInt(e,10)||0}const Y0e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Q0e(e){for(const t in e)return!1;return!0}function k3(e){return Q0e(e)||e.outerHeightStyle===0&&!e.overflowing}const X0e=m.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s,...l}=t,{current:c}=m.useRef(s!=null),u=m.useRef(null),f=xn(n,u),h=m.useRef(null),g=m.useRef(null),y=m.useCallback(()=>{const I=u.current,M=g.current;if(!I||!M)return;const D=ql(I).getComputedStyle(I);if(D.width==="0px")return{outerHeightStyle:0,overflowing:!1};M.style.width=D.width,M.value=I.value||t.placeholder||"x",M.value.slice(-1)===`
-`&&(M.value+=" ");const N=D.boxSizing,$=rM(D.paddingBottom)+rM(D.paddingTop),L=rM(D.borderBottomWidth)+rM(D.borderTopWidth),A=M.scrollHeight;M.value="x";const F=M.scrollHeight;let z=A;i&&(z=Math.max(Number(i)*F,z)),o&&(z=Math.min(Number(o)*F,z)),z=Math.max(z,F);const H=z+(N==="border-box"?$+L:0),Q=Math.abs(z-A)<=1;return{outerHeightStyle:H,overflowing:Q}},[o,i,t.placeholder]),x=ft(()=>{const I=u.current,M=y();if(!I||!M||k3(M))return!1;const O=M.outerHeightStyle;return h.current!=null&&h.current!==O}),S=m.useCallback(()=>{const I=u.current,M=y();if(!I||!M||k3(M))return;const O=M.outerHeightStyle;h.current!==O&&(h.current=O,I.style.height=`${O}px`),I.style.overflow=M.overflowing?"hidden":""},[y]),C=m.useRef(-1);qn(()=>{const I=Sv(S),M=u?.current;if(!M)return;const O=ql(M);O.addEventListener("resize",I);let D;return typeof ResizeObserver<"u"&&(D=new ResizeObserver(()=>{x()&&(D.unobserve(M),cancelAnimationFrame(C.current),S(),C.current=requestAnimationFrame(()=>{D.observe(M)}))}),D.observe(M)),()=>{I.clear(),cancelAnimationFrame(C.current),O.removeEventListener("resize",I),D&&D.disconnect()}},[y,S,x]),qn(()=>{S()});const E=I=>{c||S(),r&&r(I)};return R.jsxs(m.Fragment,{children:[R.jsx("textarea",{value:s,onChange:E,ref:f,rows:i,style:a,...l}),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:{...Y0e.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function pE(e){return typeof e=="string"}function $m({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const DR=m.createContext(void 0);function ou(){return m.useContext(DR)}function N3(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function jA(e,t=!1){return e&&(N3(e.value)&&e.value!==""||t&&N3(e.defaultValue)&&e.defaultValue!=="")}function J0e(e){return e.startAdornment}function Z0e(e){return st("MuiInputBase",e)}const Da=ct("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var _3;const RR=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Ae(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},kR=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},exe=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:h,startAdornment:g,type:y}=e,x={root:["root",`color${Ae(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&h!=="medium"&&`size${Ae(h)}`,u&&"multiline",g&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",g&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return $e(x,Z0e,t)},NR=ue("div",{name:"MuiInputBase",slot:"Root",overridesResolver:RR})(Et(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Da.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),_R=ue("input",{name:"MuiInputBase",slot:"Input",overridesResolver:kR})(Et(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Da.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Da.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),L3=Hye({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),gT=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,color:l,components:c={},componentsProps:u={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:g,endAdornment:y,error:x,fullWidth:S=!1,id:C,inputComponent:E="input",inputProps:I={},inputRef:M,margin:O,maxRows:D,minRows:N,multiline:$=!1,name:L,onBlur:A,onChange:F,onClick:z,onFocus:H,onKeyDown:Q,onKeyUp:G,placeholder:V,readOnly:Y,renderSuffix:X,rows:te,size:U,slotProps:K={},slots:ee={},startAdornment:le,type:ce="text",value:se,...fe}=r,we=I.value!=null?I.value:se,{current:Oe}=m.useRef(we!=null),he=m.useRef(),me=m.useCallback(Je=>{},[]),ye=xn(he,M,I.ref,me),[ae,Se]=m.useState(!1),Ie=ou(),Re=$m({props:r,muiFormControl:Ie,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Re.focused=Ie?Ie.focused:ae,m.useEffect(()=>{!Ie&&h&&ae&&(Se(!1),A&&A())},[Ie,h,ae,A]);const ke=Ie&&Ie.onFilled,Te=Ie&&Ie.onEmpty,Ce=m.useCallback(Je=>{jA(Je)?ke&&ke():Te&&Te()},[ke,Te]);qn(()=>{Oe&&Ce({value:we})},[we,Ce,Oe]);const Ze=Je=>{H&&H(Je),I.onFocus&&I.onFocus(Je),Ie&&Ie.onFocus?Ie.onFocus(Je):Se(!0)},Me=Je=>{A&&A(Je),I.onBlur&&I.onBlur(Je),Ie&&Ie.onBlur?Ie.onBlur(Je):Se(!1)},_e=(Je,...Mt)=>{if(!Oe){const Gt=Je.target||he.current;if(Gt==null)throw new Error(Sp(1));Ce({value:Gt.value})}I.onChange&&I.onChange(Je,...Mt),F&&F(Je,...Mt)};m.useEffect(()=>{Ce(he.current)},[]);const pe=Je=>{he.current&&Je.currentTarget===Je.target&&he.current.focus(),z&&z(Je)};let je=E,Ke=I;$&&je==="input"&&(te?Ke={type:void 0,minRows:te,maxRows:te,...Ke}:Ke={type:void 0,maxRows:D,minRows:N,...Ke},je=X0e);const et=Je=>{Ce(Je.animationName==="mui-auto-fill-cancel"?he.current:{value:"x"})};m.useEffect(()=>{Ie&&Ie.setAdornedStart(!!le)},[Ie,le]);const nt={...r,color:Re.color||"primary",disabled:Re.disabled,endAdornment:y,error:Re.error,focused:Re.focused,formControl:Ie,fullWidth:S,hiddenLabel:Re.hiddenLabel,multiline:$,size:Re.size,startAdornment:le,type:ce},ot=exe(nt),it=ee.root||c.Root||NR,tt=K.root||u.root||{},vt=ee.input||c.Input||_R;return Ke={...Ke,...K.input??u.input},R.jsxs(m.Fragment,{children:[!g&&typeof L3=="function"&&(_3||(_3=R.jsx(L3,{}))),R.jsxs(it,{...tt,ref:n,onClick:pe,...fe,...!pE(it)&&{ownerState:{...nt,...tt.ownerState}},className:ge(ot.root,tt.className,s,Y&&"MuiInputBase-readOnly"),children:[le,R.jsx(DR.Provider,{value:null,children:R.jsx(vt,{"aria-invalid":Re.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:f,disabled:Re.disabled,id:C,onAnimationStart:et,name:L,placeholder:V,readOnly:Y,required:Re.required,rows:te,value:we,onKeyDown:Q,onKeyUp:G,type:ce,...Ke,...!pE(vt)&&{as:je,ownerState:{...nt,...Ke.ownerState}},ref:ye,className:ge(ot.input,Ke.className,Y&&"MuiInputBase-readOnly"),onBlur:Me,onChange:_e,onFocus:Ze})}),y,X?X({...Re,startAdornment:le}):null]})]})});function txe(e){return st("MuiInput",e)}const om={...Da,...ct("MuiInput",["root","underline","input"])};function nxe(e){return st("MuiOutlinedInput",e)}const Pc={...Da,...ct("MuiOutlinedInput",["root","notchedOutline","input"])};function rxe(e){return st("MuiFilledInput",e)}const kl={...Da,...ct("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},pJ=Lt(R.jsx("path",{d:"M7 10l5 5 5-5z"}));function oxe(e){return st("MuiAutocomplete",e)}const Zn=ct("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var $3,F3;const ixe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,f={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${Ae(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return $e(f,oxe,t)},axe=ue("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${Zn.tag}`]:t.tag},{[`& .${Zn.tag}`]:t[`tagSize${Ae(s)}`]},{[`& .${Zn.inputRoot}`]:t.inputRoot},{[`& .${Zn.input}`]:t.input},{[`& .${Zn.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Zn.focused} .${Zn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Zn.clearIndicator}`]:{visibility:"visible"}},[`& .${Zn.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Zn.inputRoot}`]:{[`.${Zn.hasPopupIcon}&, .${Zn.hasClearIcon}&`]:{paddingRight:30},[`.${Zn.hasPopupIcon}.${Zn.hasClearIcon}&`]:{paddingRight:56},[`& .${Zn.input}`]:{width:0,minWidth:30}},[`& .${om.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${om.root}.${Da.sizeSmall}`]:{[`& .${om.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Pc.root}`]:{padding:9,[`.${Zn.hasPopupIcon}&, .${Zn.hasClearIcon}&`]:{paddingRight:39},[`.${Zn.hasPopupIcon}.${Zn.hasClearIcon}&`]:{paddingRight:65},[`& .${Zn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Zn.endAdornment}`]:{right:9}},[`& .${Pc.root}.${Da.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Zn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${kl.root}`]:{paddingTop:19,paddingLeft:8,[`.${Zn.hasPopupIcon}&, .${Zn.hasClearIcon}&`]:{paddingRight:39},[`.${Zn.hasPopupIcon}.${Zn.hasClearIcon}&`]:{paddingRight:65},[`& .${kl.input}`]:{padding:"7px 4px"},[`& .${Zn.endAdornment}`]:{right:9}},[`& .${kl.root}.${Da.sizeSmall}`]:{paddingBottom:1,[`& .${kl.input}`]:{padding:"2.5px 4px"}},[`& .${Da.hiddenLabel}`]:{paddingTop:8},[`& .${kl.root}.${Da.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Zn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${kl.root}.${Da.hiddenLabel}.${Da.sizeSmall}`]:{[`& .${Zn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Zn.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Zn.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Zn.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Zn.inputRoot}`]:{flexWrap:"wrap"}}}]}),sxe=ue("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),lxe=ue(An,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),cxe=ue(An,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),uxe=ue(sw,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Zn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Et(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),dxe=ue(ai,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(Et(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),fxe=ue("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(Et(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),pxe=ue("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(Et(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),hxe=ue("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(Et(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Zn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Zn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Zn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Zn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Zn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),mxe=ue(NF,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(Et(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),gxe=ue("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Zn.option}`]:{paddingLeft:24}}),rf=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,ChipProps:l,className:c,clearIcon:u=$3||($3=R.jsx(nJ,{fontSize:"small"})),clearOnBlur:f=!r.freeSolo,clearOnEscape:h=!1,clearText:g="Clear",closeText:y="Close",componentsProps:x,defaultValue:S=r.multiple?[]:null,disableClearable:C=!1,disableCloseOnSelect:E=!1,disabled:I=!1,disabledItemsFocusable:M=!1,disableListWrap:O=!1,disablePortal:D=!1,filterOptions:N,filterSelectedOptions:$=!1,forcePopupIcon:L="auto",freeSolo:A=!1,fullWidth:F=!1,getLimitTagsText:z=rr=>`+${rr}`,getOptionDisabled:H,getOptionKey:Q,getOptionLabel:G,isOptionEqualToValue:V,groupBy:Y,handleHomeEndKeys:X=!r.freeSolo,id:te,includeInputInList:U=!1,inputValue:K,limitTags:ee=-1,ListboxComponent:le,ListboxProps:ce,loading:se=!1,loadingText:fe="Loading…",multiple:we=!1,noOptionsText:Oe="No options",onChange:he,onClose:me,onHighlightChange:ye,onInputChange:ae,onOpen:Se,open:Ie,openOnFocus:Re=!1,openText:ke="Open",options:Te,PaperComponent:Ce,PopperComponent:Ze,popupIcon:Me=F3||(F3=R.jsx(pJ,{})),readOnly:_e=!1,renderGroup:pe,renderInput:je,renderOption:Ke,renderTags:et,renderValue:nt,selectOnFocus:ot=!r.freeSolo,size:it="medium",slots:tt={},slotProps:vt={},value:Je,...Mt}=r,{getRootProps:Gt,getInputProps:ht,getInputLabelProps:Qt,getPopupIndicatorProps:en,getClearProps:qt,getItemProps:zn,getListboxProps:lr,getOptionProps:to,value:xr,dirty:Yn,expanded:Io,id:Ci,popupOpen:si,focused:us,focusedItem:fn,anchorEl:Vn,setAnchorEl:$t,inputValue:Yt,groupedOptions:ln}=Tbe({...r,componentName:"Autocomplete"}),pn=!C&&!I&&Yn&&!_e,cr=(!A||L===!0)&&L!==!1,{onMouseDown:Ei}=ht(),{ref:ds,...Fs}=lr(),Zi=G||(rr=>rr.label??rr),qo={...r,disablePortal:D,expanded:Io,focused:us,fullWidth:F,getOptionLabel:Zi,hasClearIcon:pn,hasPopupIcon:cr,inputFocused:fn===-1,popupOpen:si,size:it},uo=ixe(qo),xa={slots:{paper:Ce,popper:Ze,...tt},slotProps:{chip:l,listbox:ce,...x,...vt}},[js,vl]=Dt("listbox",{elementType:hxe,externalForwardedProps:xa,ownerState:qo,className:uo.listbox,additionalProps:Fs,ref:ds}),[Ye,at]=Dt("paper",{elementType:ai,externalForwardedProps:xa,ownerState:qo,className:uo.paper}),[Wt,Mn]=Dt("popper",{elementType:sw,externalForwardedProps:xa,ownerState:qo,className:uo.popper,additionalProps:{disablePortal:D,style:{width:Vn?Vn.clientWidth:null},role:"presentation",anchorEl:Vn,open:si}});let an;const no=rr=>({className:uo.tag,disabled:I,...zn(rr)});if(et&&we&&xr.length>0?an=et(xr,no,qo):nt&&xr?an=nt(xr,no,qo):we&&xr.length>0&&(an=xr.map((rr,wa)=>{const{key:Bs,...su}=no({index:wa});return R.jsx(Yc,{label:Zi(rr),size:it,...su,...xa.slotProps.chip},Bs)})),ee>-1&&Array.isArray(an)){const rr=an.length-ee;!us&&rr>0&&(an=an.splice(0,ee),an.push(R.jsx("span",{className:uo.tag,children:z(rr)},an.length)))}const Ti=pe||(rr=>R.jsxs("li",{children:[R.jsx(mxe,{className:uo.groupLabel,ownerState:qo,component:"div",children:rr.group}),R.jsx(gxe,{className:uo.groupUl,ownerState:qo,children:rr.children})]},rr.key)),eh=Ke||((rr,wa)=>{const{key:Bs,...su}=rr;return R.jsx("li",{...su,children:Zi(wa)},Bs)}),Tf=(rr,wa)=>{const Bs=to({option:rr,index:wa});return eh({...Bs,className:uo.option},rr,{selected:Bs["aria-selected"],index:wa,inputValue:Yt},qo)},fs=xa.slotProps.clearIndicator,Pf=xa.slotProps.popupIndicator;return R.jsxs(m.Fragment,{children:[R.jsx(axe,{ref:n,className:ge(uo.root,c),ownerState:qo,...Gt(Mt),children:je({id:Ci,disabled:I,fullWidth:!0,size:it==="small"?"small":void 0,InputLabelProps:Qt(),InputProps:{ref:$t,className:uo.inputRoot,startAdornment:an,onMouseDown:rr=>{rr.target===rr.currentTarget&&Ei(rr)},...(pn||cr)&&{endAdornment:R.jsxs(sxe,{className:uo.endAdornment,ownerState:qo,children:[pn?R.jsx(lxe,{...qt(),"aria-label":g,title:g,ownerState:qo,...fs,className:ge(uo.clearIndicator,fs?.className),children:u}):null,cr?R.jsx(cxe,{...en(),disabled:I,"aria-label":si?y:ke,title:si?y:ke,ownerState:qo,...Pf,className:ge(uo.popupIndicator,Pf?.className),children:Me}):null]})}},inputProps:{className:uo.input,disabled:I,readOnly:_e,...ht()}})}),Vn?R.jsx(uxe,{as:Wt,...Mn,children:R.jsxs(dxe,{as:Ye,...at,children:[se&&ln.length===0?R.jsx(fxe,{className:uo.loading,ownerState:qo,children:fe}):null,ln.length===0&&!A&&!se?R.jsx(pxe,{className:uo.noOptions,ownerState:qo,role:"presentation",onMouseDown:rr=>{rr.preventDefault()},children:Oe}):null,ln.length>0?R.jsx(js,{as:le,...vl,children:ln.map((rr,wa)=>Y?Ti({key:rr.key,group:rr.group,children:rr.options.map((Bs,su)=>Tf(Bs,rr.index+su))}):Tf(rr,wa))}):null]})}):null]})}),yxe=Lt(R.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function vxe(e){return st("MuiAvatar",e)}const bxe=ct("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),xxe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return $e({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},vxe,t)},wxe=ue("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Et(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),Sxe=ue("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Cxe=ue(yxe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Exe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=m.useState(!1);return m.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const Ju=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",slots:l={},slotProps:c={},imgProps:u,sizes:f,src:h,srcSet:g,variant:y="circular",...x}=r;let S=null;const C={...r,component:s,variant:y},E=Exe({...u,...typeof c.img=="function"?c.img(C):c.img,src:h,srcSet:g}),I=h||g,M=I&&E!=="error";C.colorDefault=!M,delete C.ownerState;const O=xxe(C),[D,N]=Dt("img",{className:O.img,elementType:Sxe,externalForwardedProps:{slots:l,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:o,src:h,srcSet:g,sizes:f},ownerState:C});return M?S=R.jsx(D,{...N}):i||i===0?S=i:I&&o?S=o[0]:S=R.jsx(Cxe,{ownerState:C,className:O.fallback}),R.jsx(wxe,{as:s,className:ge(O.root,a),ref:n,...x,ownerState:C,children:S})});function Txe(e){return st("MuiAvatarGroup",e)}const Pxe=ct("MuiAvatarGroup",["root","avatar"]),a_={small:-16,medium:-8},Ixe=e=>{const{classes:t}=e;return $e({root:["root"],avatar:["avatar"]},Txe,t)},Oxe=ue("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Pxe.avatar}`]:t.avatar},t.root]})(Et(({theme:e})=>({display:"flex",flexDirection:"row-reverse",[`& .${bxe.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:"var(--AvatarGroup-spacing, -8px)","&:last-child":{marginLeft:0}}}))),Mxe=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiAvatarGroup"}),{children:o,className:i,component:a="div",componentsProps:s,max:l=5,renderSurplus:c,slotProps:u={},slots:f={},spacing:h="medium",total:g,variant:y="circular",...x}=r;let S=l<2?2:l;const C={...r,max:l,spacing:h,component:a,variant:y},E=Ixe(C),I=m.Children.toArray(o).filter(z=>m.isValidElement(z)),M=g||I.length;M===S&&(S+=1),S=Math.min(M+1,S);const O=Math.min(I.length,S-1),D=Math.max(M-S,M-O,0),N=c?c(D):`+${D}`;let $;C.spacing&&a_[C.spacing]!==void 0?$=a_[C.spacing]:C.spacing===0?$=0:$=-C.spacing||a_.medium;const L={slots:f,slotProps:{surplus:u.additionalAvatar??s?.additionalAvatar,...s,...u}},[A,F]=Dt("surplus",{elementType:Ju,externalForwardedProps:L,className:E.avatar,ownerState:C,additionalProps:{variant:y}});return R.jsxs(Oxe,{as:a,ownerState:C,className:ge(E.root,i),ref:n,...x,style:{"--AvatarGroup-spacing":`${$}px`,...x.style},children:[D?R.jsx(A,{...F,children:N}):null,I.slice(0,O).reverse().map(z=>m.cloneElement(z,{className:ge(z.props.className,E.avatar),variant:z.props.variant||y}))]})}),Axe={entering:{opacity:1},entered:{opacity:1}},Zy=m.forwardRef(function(t,n){const r=Po(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:h,onExit:g,onExited:y,onExiting:x,style:S,timeout:C=o,TransitionComponent:E=Zl,...I}=t,M=m.useRef(null),O=xn(M,_m(s),n),D=Q=>G=>{if(Q){const V=M.current;G===void 0?Q(V):Q(V,G)}},N=D(h),$=D((Q,G)=>{Az(Q);const V=Sm({style:S,timeout:C,easing:l},{mode:"enter"});Q.style.webkitTransition=r.transitions.create("opacity",V),Q.style.transition=r.transitions.create("opacity",V),u&&u(Q,G)}),L=D(f),A=D(x),F=D(Q=>{const G=Sm({style:S,timeout:C,easing:l},{mode:"exit"});Q.style.webkitTransition=r.transitions.create("opacity",G),Q.style.transition=r.transitions.create("opacity",G),g&&g(Q)}),z=D(y),H=Q=>{i&&i(M.current,Q)};return R.jsx(E,{appear:a,in:c,nodeRef:M,onEnter:$,onEntered:L,onEntering:N,onExit:F,onExited:z,onExiting:A,addEndListener:H,timeout:C,...I,children:(Q,{ownerState:G,...V})=>m.cloneElement(s,{style:{opacity:0,visibility:Q==="exited"&&!c?"hidden":void 0,...Axe[Q],...S,...s.props.style},ref:O,...V})})});function Dxe(e){return st("MuiBackdrop",e)}ct("MuiBackdrop",["root","invisible"]);const Rxe=e=>{const{classes:t,invisible:n}=e;return $e({root:["root",n&&"invisible"]},Dxe,t)},kxe=ue("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),hJ=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:u={},slotProps:f={},slots:h={},TransitionComponent:g,transitionDuration:y,...x}=r,S={...r,component:a,invisible:s},C=Rxe(S),E={transition:g,root:c.Root,...h},I={...u,...f},M={slots:E,slotProps:I},[O,D]=Dt("root",{elementType:kxe,externalForwardedProps:M,className:ge(C.root,i),ownerState:S}),[N,$]=Dt("transition",{elementType:Zy,externalForwardedProps:M,ownerState:S});return R.jsx(N,{in:l,timeout:y,...x,...$,children:R.jsx(O,{"aria-hidden":!0,...D,classes:C,ref:n,children:o})})});function Nxe(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=yz({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:s,max:l=r}=a?i:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:c}}function _xe(e){return st("MuiBadge",e)}const qh=ct("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),s_=10,l_=4,Lxe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Ae(n.vertical)}${Ae(n.horizontal)}`,`anchorOrigin${Ae(n.vertical)}${Ae(n.horizontal)}${Ae(o)}`,`overlap${Ae(o)}`,t!=="default"&&`color${Ae(t)}`]};return $e(s,_xe,a)},$xe=ue("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Fxe=ue("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Ae(n.anchorOrigin.vertical)}${Ae(n.anchorOrigin.horizontal)}${Ae(n.overlap)}`],n.color!=="default"&&t[`color${Ae(n.color)}`],n.invisible&&t.invisible]}})(Et(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:s_*2,lineHeight:1,padding:"0 6px",height:s_*2,borderRadius:s_,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Mr(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:l_,height:l_*2,minWidth:l_*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${qh.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${qh.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${qh.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${qh.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${qh.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${qh.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${qh.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${qh.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function j3(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const jxe=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:i,classes:a,component:s,components:l={},componentsProps:c={},children:u,overlap:f="rectangular",color:h="default",invisible:g=!1,max:y=99,badgeContent:x,slots:S,slotProps:C,showZero:E=!1,variant:I="standard",...M}=r,{badgeContent:O,invisible:D,max:N,displayValue:$}=Nxe({max:y,invisible:g,badgeContent:x,showZero:E}),L=yz({anchorOrigin:j3(o),color:h,overlap:f,variant:I,badgeContent:x}),A=D||O==null&&I!=="dot",{color:F=h,overlap:z=f,anchorOrigin:H,variant:Q=I}=A?L:r,G=j3(H),V=Q!=="dot"?$:void 0,Y={...r,badgeContent:O,invisible:A,max:N,displayValue:V,showZero:E,anchorOrigin:G,color:F,overlap:z,variant:Q},X=Lxe(Y),te=S?.root??l.Root??$xe,U=S?.badge??l.Badge??Fxe,K=C?.root??c.root,ee=C?.badge??c.badge,le=nr({elementType:te,externalSlotProps:K,externalForwardedProps:M,additionalProps:{ref:n,as:s},ownerState:Y,className:ge(K?.className,X.root,i)}),ce=nr({elementType:U,externalSlotProps:ee,ownerState:Y,className:ge(X.badge,ee?.className)});return R.jsxs(te,{...le,children:[u,R.jsx(U,{...ce,children:V})]})}),Bxe=ct("MuiBox",["root"]),zxe=dT(),mn=dme({themeId:jc,defaultTheme:zxe,defaultClassName:Bxe.root,generateClassName:mX.generate});function Vxe(e){return st("MuiButton",e)}const ly=ct("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),mJ=m.createContext({}),gJ=m.createContext(void 0),Hxe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:s,classes:l}=e,c={root:["root",a&&"loading",i,`${i}${Ae(t)}`,`size${Ae(o)}`,`${i}Size${Ae(o)}`,`color${Ae(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${Ae(s)}`],startIcon:["icon","startIcon",`iconSize${Ae(o)}`],endIcon:["icon","endIcon",`iconSize${Ae(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=$e(c,Vxe,l);return{...l,...u}},yJ=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Uxe=ue(Ls,{shouldForwardProp:e=>ma(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ae(n.color)}`],t[`size${Ae(n.size)}`],t[`${n.variant}Size${Ae(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Et(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ly.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ly.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ly.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ly.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Mr()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Kt(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ly.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ly.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${ly.loading}`]:{color:"transparent"}}}]}})),Gxe=ue("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Ae(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...yJ]})),Wxe=ue("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Ae(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...yJ]})),qxe=ue("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),B3=ue("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),St=m.forwardRef(function(t,n){const r=m.useContext(mJ),o=m.useContext(gJ),i=Yy(r,t),a=Tt({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:g=!1,endIcon:y,focusVisibleClassName:x,fullWidth:S=!1,id:C,loading:E=null,loadingIndicator:I,loadingPosition:M="center",size:O="medium",startIcon:D,type:N,variant:$="text",...L}=a,A=_n(C),F=I??R.jsx(pT,{"aria-labelledby":A,color:"inherit",size:16}),z={...a,color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:g,fullWidth:S,loading:E,loadingIndicator:F,loadingPosition:M,size:O,type:N,variant:$},H=Hxe(z),Q=(D||E&&M==="start")&&R.jsx(Gxe,{className:H.startIcon,ownerState:z,children:D||R.jsx(B3,{className:H.loadingIconPlaceholder,ownerState:z})}),G=(y||E&&M==="end")&&R.jsx(Wxe,{className:H.endIcon,ownerState:z,children:y||R.jsx(B3,{className:H.loadingIconPlaceholder,ownerState:z})}),V=o||"",Y=typeof E=="boolean"?R.jsx("span",{className:H.loadingWrapper,style:{display:"contents"},children:E&&R.jsx(qxe,{className:H.loadingIndicator,ownerState:z,children:F})}):null;return R.jsxs(Uxe,{ownerState:z,className:ge(r.className,H.root,u,V),component:c,disabled:f||E,focusRipple:!g,focusVisibleClassName:ge(H.focusVisible,x),ref:n,type:N,id:E?A:C,...L,classes:H,children:[Q,M!=="end"&&Y,s,M==="end"&&Y,G]})});function Kxe(e){return st("MuiButtonGroup",e)}const Gn=ct("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),Yxe=(e,t)=>{const{ownerState:n}=e;return[{[`& .${Gn.grouped}`]:t.grouped},{[`& .${Gn.grouped}`]:t[`grouped${Ae(n.orientation)}`]},{[`& .${Gn.grouped}`]:t[`grouped${Ae(n.variant)}`]},{[`& .${Gn.grouped}`]:t[`grouped${Ae(n.variant)}${Ae(n.orientation)}`]},{[`& .${Gn.grouped}`]:t[`grouped${Ae(n.variant)}${Ae(n.color)}`]},{[`& .${Gn.firstButton}`]:t.firstButton},{[`& .${Gn.lastButton}`]:t.lastButton},{[`& .${Gn.middleButton}`]:t.middleButton},t.root,t[n.variant],n.disableElevation===!0&&t.disableElevation,n.fullWidth&&t.fullWidth,n.orientation==="vertical"&&t.vertical]},Qxe=e=>{const{classes:t,color:n,disabled:r,disableElevation:o,fullWidth:i,orientation:a,variant:s}=e,l={root:["root",s,a,i&&"fullWidth",o&&"disableElevation",`color${Ae(n)}`],grouped:["grouped",`grouped${Ae(a)}`,`grouped${Ae(s)}`,`grouped${Ae(s)}${Ae(a)}`,`grouped${Ae(s)}${Ae(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return $e(l,Kxe,t)},Xxe=ue("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:Yxe})(Et(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(e.vars||e).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Gn.lastButton},& .${Gn.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${Gn.firstButton},& .${Gn.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${Gn.firstButton},& .${Gn.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Gn.lastButton},& .${Gn.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${Gn.firstButton},& .${Gn.middleButton}`]:{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Gn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${Gn.firstButton},& .${Gn.middleButton}`]:{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Gn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(Mr()).flatMap(([t])=>[{props:{variant:"text",color:t},style:{[`& .${Gn.firstButton},& .${Gn.middleButton}`]:{borderColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:Kt(e.palette[t].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${Gn.firstButton},& .${Gn.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${Gn.lastButton},& .${Gn.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${Gn.firstButton},& .${Gn.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${Gn.lastButton},& .${Gn.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${Gn.firstButton},& .${Gn.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Gn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${Gn.firstButton},& .${Gn.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Gn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(Mr(["dark"])).map(([t])=>({props:{variant:"contained",color:t},style:{[`& .${Gn.firstButton},& .${Gn.middleButton}`]:{borderColor:(e.vars||e).palette[t].dark}}}))],[`& .${Gn.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),zz=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiButtonGroup"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,disableElevation:c=!1,disableFocusRipple:u=!1,disableRipple:f=!1,fullWidth:h=!1,orientation:g="horizontal",size:y="medium",variant:x="outlined",...S}=r,C={...r,color:a,component:s,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:f,fullWidth:h,orientation:g,size:y,variant:x},E=Qxe(C),I=m.useMemo(()=>({className:E.grouped,color:a,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:f,fullWidth:h,size:y,variant:x}),[a,l,c,u,f,h,y,x,E.grouped]),M=TX(o),O=M.length,D=N=>{const $=N===0,L=N===O-1;return $&&L?"":$?E.firstButton:L?E.lastButton:E.middleButton};return R.jsx(Xxe,{as:s,role:"group",className:ge(E.root,i),ref:n,ownerState:C,...S,children:R.jsx(mJ.Provider,{value:I,children:M.map((N,$)=>R.jsx(gJ.Provider,{value:D($),children:N},$))})})});function Jxe(e){return st("MuiCard",e)}ct("MuiCard",["root"]);const Zxe=e=>{const{classes:t}=e;return $e({root:["root"]},Jxe,t)},ewe=ue(ai,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),oi=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiCard"}),{className:o,raised:i=!1,...a}=r,s={...r,raised:i},l=Zxe(s);return R.jsx(ewe,{className:ge(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s,...a})});function twe(e){return st("MuiCardActionArea",e)}const c_=ct("MuiCardActionArea",["root","focusVisible","focusHighlight"]),nwe=e=>{const{classes:t}=e;return $e({root:["root"],focusHighlight:["focusHighlight"]},twe,t)},rwe=ue(Ls,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(Et(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${c_.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${c_.focusVisible} .${c_.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),owe=ue("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(Et(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),iwe=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiCardActionArea"}),{children:o,className:i,focusVisibleClassName:a,...s}=r,l=r,c=nwe(l);return R.jsxs(rwe,{className:ge(c.root,i),focusVisibleClassName:ge(a,c.focusVisible),ref:n,ownerState:l,...s,children:[o,R.jsx(owe,{className:c.focusHighlight,ownerState:l})]})});function awe(e){return st("MuiCardActions",e)}ct("MuiCardActions",["root","spacing"]);const swe=e=>{const{classes:t,disableSpacing:n}=e;return $e({root:["root",!n&&"spacing"]},awe,t)},lwe=ue("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),iu=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:i,...a}=r,s={...r,disableSpacing:o},l=swe(s);return R.jsx(lwe,{className:ge(l.root,i),ownerState:s,ref:n,...a})});function cwe(e){return st("MuiCardContent",e)}ct("MuiCardContent",["root"]);const uwe=e=>{const{classes:t}=e;return $e({root:["root"]},cwe,t)},dwe=ue("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),ss=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiCardContent"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=uwe(s);return R.jsx(dwe,{as:i,className:ge(l.root,o),ownerState:s,ref:n,...a})});function fwe(e){return st("MuiCardHeader",e)}const BA=ct("MuiCardHeader",["root","avatar","action","content","title","subheader"]),pwe=e=>{const{classes:t}=e;return $e({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},fwe,t)},hwe=ue("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${BA.title}`]:t.title},{[`& .${BA.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),mwe=ue("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),gwe=ue("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),ywe=ue("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto",[`.${$A.root}:where(& .${BA.title})`]:{display:"block"},[`.${$A.root}:where(& .${BA.subheader})`]:{display:"block"}}),rd=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiCardHeader"}),{action:o,avatar:i,component:a="div",disableTypography:s=!1,subheader:l,subheaderTypographyProps:c,title:u,titleTypographyProps:f,slots:h={},slotProps:g={},...y}=r,x={...r,component:a,disableTypography:s},S=pwe(x),C={slots:h,slotProps:{title:f,subheader:c,...g}};let E=u;const[I,M]=Dt("title",{className:S.title,elementType:wt,externalForwardedProps:C,ownerState:x,additionalProps:{variant:i?"body2":"h5",component:"span"}});E!=null&&E.type!==wt&&!s&&(E=R.jsx(I,{...M,children:E}));let O=l;const[D,N]=Dt("subheader",{className:S.subheader,elementType:wt,externalForwardedProps:C,ownerState:x,additionalProps:{variant:i?"body2":"body1",color:"textSecondary",component:"span"}});O!=null&&O.type!==wt&&!s&&(O=R.jsx(D,{...N,children:O}));const[$,L]=Dt("root",{ref:n,className:S.root,elementType:hwe,externalForwardedProps:{...C,...y,component:a},ownerState:x}),[A,F]=Dt("avatar",{className:S.avatar,elementType:mwe,externalForwardedProps:C,ownerState:x}),[z,H]=Dt("content",{className:S.content,elementType:ywe,externalForwardedProps:C,ownerState:x}),[Q,G]=Dt("action",{className:S.action,elementType:gwe,externalForwardedProps:C,ownerState:x});return R.jsxs($,{...L,children:[i&&R.jsx(A,{...F,children:i}),R.jsxs(z,{...H,children:[E,O]}),o&&R.jsx(Q,{...G,children:o})]})});function vwe(e){return st("MuiCardMedia",e)}ct("MuiCardMedia",["root","media","img"]);const bwe=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return $e({root:["root",n&&"media",r&&"img"]},vwe,t)},xwe=ue("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),wwe=["video","audio","picture","iframe","img"],Swe=["picture","img"],of=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiCardMedia"}),{children:o,className:i,component:a="div",image:s,src:l,style:c,...u}=r,f=wwe.includes(a),h=!f&&s?{backgroundImage:`url("${s}")`,...c}:c,g={...r,component:a,isMediaComponent:f,isImageComponent:Swe.includes(a)},y=bwe(g);return R.jsx(xwe,{className:ge(y.root,i),as:a,role:!f&&s?"img":void 0,ref:n,style:h,ownerState:g,src:f?s||l:void 0,...u,children:o})});function Cwe(e){return st("PrivateSwitchBase",e)}ct("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Ewe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${Ae(o)}`],input:["input"]};return $e(i,Cwe,t)},Twe=ue(Ls)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),Pwe=ue("input",{shouldForwardProp:ma})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),vJ=m.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:f,inputProps:h,inputRef:g,name:y,onBlur:x,onChange:S,onFocus:C,readOnly:E,required:I=!1,tabIndex:M,type:O,value:D,slots:N={},slotProps:$={},...L}=t,[A,F]=_s({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),z=ou(),H=se=>{C&&C(se),z&&z.onFocus&&z.onFocus(se)},Q=se=>{x&&x(se),z&&z.onBlur&&z.onBlur(se)},G=se=>{if(se.nativeEvent.defaultPrevented)return;const fe=se.target.checked;F(fe),S&&S(se,fe)};let V=s;z&&typeof V>"u"&&(V=z.disabled);const Y=O==="checkbox"||O==="radio",X={...t,checked:A,disabled:V,disableFocusRipple:l,edge:c},te=Ewe(X),U={slots:N,slotProps:{input:h,...$}},[K,ee]=Dt("root",{ref:n,elementType:Twe,className:te.root,shouldForwardComponentProp:!0,externalForwardedProps:{...U,component:"span",...L},getSlotProps:se=>({...se,onFocus:fe=>{se.onFocus?.(fe),H(fe)},onBlur:fe=>{se.onBlur?.(fe),Q(fe)}}),ownerState:X,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:V,role:void 0,tabIndex:null}}),[le,ce]=Dt("input",{ref:g,elementType:Pwe,className:te.input,externalForwardedProps:U,getSlotProps:se=>({...se,onChange:fe=>{se.onChange?.(fe),G(fe)}}),ownerState:X,additionalProps:{autoFocus:r,checked:o,defaultChecked:a,disabled:V,id:Y?f:void 0,name:y,readOnly:E,required:I,tabIndex:M,type:O,...O==="checkbox"&&D===void 0?{}:{value:D}}});return R.jsxs(K,{...ee,children:[R.jsx(le,{...ce}),A?i:u]})}),Iwe=Lt(R.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),Owe=Lt(R.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),Mwe=Lt(R.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function Awe(e){return st("MuiCheckbox",e)}const u_=ct("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Dwe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${Ae(r)}`,`size${Ae(o)}`]},a=$e(i,Awe,t);return{...t,...a}},Rwe=ue(vJ,{shouldForwardProp:e=>ma(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Ae(n.size)}`],n.color!=="default"&&t[`color${Ae(n.color)}`]]}})(Et(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Mr()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Mr()).map(([t])=>({props:{color:t},style:{[`&.${u_.checked}, &.${u_.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${u_.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),kwe=R.jsx(Owe,{}),Nwe=R.jsx(Iwe,{}),_we=R.jsx(Mwe,{}),Lwe=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiCheckbox"}),{checkedIcon:o=kwe,color:i="primary",icon:a=Nwe,indeterminate:s=!1,indeterminateIcon:l=_we,inputProps:c,size:u="medium",disableRipple:f=!1,className:h,slots:g={},slotProps:y={},...x}=r,S=s?l:a,C=s?l:o,E={...r,disableRipple:f,color:i,indeterminate:s,size:u},I=Dwe(E),M=y.input??c,[O,D]=Dt("root",{ref:n,elementType:Rwe,className:ge(I.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:y,...x},ownerState:E,additionalProps:{type:"checkbox",icon:m.cloneElement(S,{fontSize:S.props.fontSize??u}),checkedIcon:m.cloneElement(C,{fontSize:C.props.fontSize??u}),disableRipple:f,slots:g,slotProps:{input:Pz(typeof M=="function"?M(E):M,{"data-indeterminate":s})}}});return R.jsx(O,{...D,classes:I})});function z3(e){return e.substring(2).toLowerCase()}function $we(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function bJ(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=m.useRef(!1),s=m.useRef(null),l=m.useRef(!1),c=m.useRef(!1);m.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=xn(_m(t),s),f=ft(y=>{const x=c.current;c.current=!1;const S=yo(s.current);if(!l.current||!s.current||"clientX"in y&&$we(y,S))return;if(a.current){a.current=!1;return}let C;y.composedPath?C=y.composedPath().includes(s.current):C=!S.documentElement.contains(y.target)||s.current.contains(y.target),!C&&(n||!x)&&o(y)}),h=y=>x=>{c.current=!0;const S=t.props[y];S&&S(x)},g={ref:u};return i!==!1&&(g[i]=h(i)),m.useEffect(()=>{if(i!==!1){const y=z3(i),x=yo(s.current),S=()=>{a.current=!0};return x.addEventListener(y,f),x.addEventListener("touchmove",S),()=>{x.removeEventListener(y,f),x.removeEventListener("touchmove",S)}}},[f,i]),r!==!1&&(g[r]=h(r)),m.useEffect(()=>{if(r!==!1){const y=z3(r),x=yo(s.current);return x.addEventListener(y,f),()=>{x.removeEventListener(y,f)}}},[f,r]),m.cloneElement(t,g)}const Pp=oge({createStyledComponent:ue("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Ae(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Tt({props:e,name:"MuiContainer"})});function Fwe(e){const t=yo(e);return t.body===e?ql(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function B1(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function V3(e){return parseInt(ql(e).getComputedStyle(e).paddingRight,10)||0}function jwe(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function H3(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=!i.includes(a),l=!jwe(a);s&&l&&B1(a,o)})}function d_(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Bwe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Fwe(r)){const a=EX(ql(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${V3(r)+a}px`;const s=yo(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${V3(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=yo(r).body;else{const a=r.parentElement,s=ql(r);i=a?.nodeName==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function zwe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Vwe{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&B1(t.modalRef,!1);const o=zwe(n);H3(n,t.mount,t.modalRef,o,!0);const i=d_(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=d_(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=Bwe(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=d_(this.containers,a=>a.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&B1(t.modalRef,n),H3(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&B1(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Hwe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Uwe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Gwe(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Wwe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Gwe(e))}function qwe(e){const t=[],n=[];return Array.from(e.querySelectorAll(Hwe)).forEach((r,o)=>{const i=Uwe(r);i===-1||!Wwe(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function Kwe(){return!0}function Vz(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=qwe,isEnabled:a=Kwe,open:s}=e,l=m.useRef(!1),c=m.useRef(null),u=m.useRef(null),f=m.useRef(null),h=m.useRef(null),g=m.useRef(!1),y=m.useRef(null),x=xn(_m(t),y),S=m.useRef(null);m.useEffect(()=>{!s||!y.current||(g.current=!n)},[n,s]),m.useEffect(()=>{if(!s||!y.current)return;const I=yo(y.current);return y.current.contains(I.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),g.current&&y.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),m.useEffect(()=>{if(!s||!y.current)return;const I=yo(y.current),M=N=>{S.current=N,!(r||!a()||N.key!=="Tab")&&I.activeElement===y.current&&N.shiftKey&&(l.current=!0,u.current&&u.current.focus())},O=()=>{const N=y.current;if(N===null)return;if(!I.hasFocus()||!a()||l.current){l.current=!1;return}if(N.contains(I.activeElement)||r&&I.activeElement!==c.current&&I.activeElement!==u.current)return;if(I.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!g.current)return;let $=[];if((I.activeElement===c.current||I.activeElement===u.current)&&($=i(y.current)),$.length>0){const L=!!(S.current?.shiftKey&&S.current?.key==="Tab"),A=$[0],F=$[$.length-1];typeof A!="string"&&typeof F!="string"&&(L?F.focus():A.focus())}else N.focus()};I.addEventListener("focusin",O),I.addEventListener("keydown",M,!0);const D=setInterval(()=>{I.activeElement&&I.activeElement.tagName==="BODY"&&O()},50);return()=>{clearInterval(D),I.removeEventListener("focusin",O),I.removeEventListener("keydown",M,!0)}},[n,r,o,a,s,i]);const C=I=>{f.current===null&&(f.current=I.relatedTarget),g.current=!0,h.current=I.target;const M=t.props.onFocus;M&&M(I)},E=I=>{f.current===null&&(f.current=I.relatedTarget),g.current=!0};return R.jsxs(m.Fragment,{children:[R.jsx("div",{tabIndex:s?0:-1,onFocus:E,ref:c,"data-testid":"sentinelStart"}),m.cloneElement(t,{ref:x,onFocus:C}),R.jsx("div",{tabIndex:s?0:-1,onFocus:E,ref:u,"data-testid":"sentinelEnd"})]})}function Ywe(e){return typeof e=="function"?e():e}function Qwe(e){return e?e.props.hasOwnProperty("in"):!1}const U3=()=>{},oM=new Vwe;function Xwe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:u}=e,f=m.useRef({}),h=m.useRef(null),g=m.useRef(null),y=xn(g,u),[x,S]=m.useState(!c),C=Qwe(s);let E=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(E=!1);const I=()=>yo(h.current),M=()=>(f.current.modalRef=g.current,f.current.mount=h.current,f.current),O=()=>{oM.mount(M(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},D=ft(()=>{const G=Ywe(t)||I().body;oM.add(M(),G),g.current&&O()}),N=()=>oM.isTopModal(M()),$=ft(G=>{h.current=G,G&&(c&&N()?O():g.current&&B1(g.current,E))}),L=m.useCallback(()=>{oM.remove(M(),E)},[E]);m.useEffect(()=>()=>{L()},[L]),m.useEffect(()=>{c?D():(!C||!o)&&L()},[c,L,C,o,D]);const A=G=>V=>{G.onKeyDown?.(V),!(V.key!=="Escape"||V.which===229||!N())&&(n||(V.stopPropagation(),l&&l(V,"escapeKeyDown")))},F=G=>V=>{G.onClick?.(V),V.target===V.currentTarget&&l&&l(V,"backdropClick")};return{getRootProps:(G={})=>{const V=AA(e);delete V.onTransitionEnter,delete V.onTransitionExited;const Y={...V,...G};return{role:"presentation",...Y,onKeyDown:A(Y),ref:y}},getBackdropProps:(G={})=>{const V=G;return{"aria-hidden":!0,...V,onClick:F(V),open:c}},getTransitionProps:()=>{const G=()=>{S(!1),i&&i()},V=()=>{S(!0),a&&a(),o&&L()};return{onEnter:j4(G,s?.props.onEnter??U3),onExited:j4(V,s?.props.onExited??U3)}},rootRef:y,portalRef:$,isTopModal:N,exited:x,hasTransition:C}}function Jwe(e){return st("MuiModal",e)}ct("MuiModal",["root","hidden","backdrop"]);const Zwe=e=>{const{open:t,exited:n,classes:r}=e;return $e({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Jwe,r)},eSe=ue("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Et(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),tSe=ue(hJ,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),lw=m.forwardRef(function(t,n){const r=Tt({name:"MuiModal",props:t}),{BackdropComponent:o=tSe,BackdropProps:i,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:u,component:f,components:h={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:C=!1,disableRestoreFocus:E=!1,disableScrollLock:I=!1,hideBackdrop:M=!1,keepMounted:O=!1,onClose:D,onTransitionEnter:N,onTransitionExited:$,open:L,slotProps:A={},slots:F={},theme:z,...H}=r,Q={...r,closeAfterTransition:l,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:C,disableRestoreFocus:E,disableScrollLock:I,hideBackdrop:M,keepMounted:O},{getRootProps:G,getBackdropProps:V,getTransitionProps:Y,portalRef:X,isTopModal:te,exited:U,hasTransition:K}=Xwe({...Q,rootRef:n}),ee={...Q,exited:U},le=Zwe(ee),ce={};if(c.props.tabIndex===void 0&&(ce.tabIndex="-1"),K){const{onEnter:me,onExited:ye}=Y();ce.onEnter=me,ce.onExited=ye}const se={slots:{root:h.Root,backdrop:h.Backdrop,...F},slotProps:{...g,...A}},[fe,we]=Dt("root",{ref:n,elementType:eSe,externalForwardedProps:{...se,...H,component:f},getSlotProps:G,ownerState:ee,className:ge(s,le?.root,!ee.open&&ee.exited&&le?.hidden)}),[Oe,he]=Dt("backdrop",{ref:i?.ref,elementType:o,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:me=>V({...me,onClick:ye=>{me?.onClick&&me.onClick(ye)}}),className:ge(i?.className,le?.backdrop),ownerState:ee});return!O&&!L&&(!K||U)?null:R.jsx(fJ,{ref:X,container:u,disablePortal:C,children:R.jsxs(fe,{...we,children:[!M&&o?R.jsx(Oe,{...he}):null,R.jsx(Vz,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:E,isEnabled:te,open:L,children:m.cloneElement(c,ce)})]})})});function nSe(e){return st("MuiDialog",e)}const z1=ct("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),xJ=m.createContext({}),rSe=ue(hJ,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),oSe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Ae(n)}`],paper:["paper",`paperScroll${Ae(n)}`,`paperWidth${Ae(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return $e(a,nSe,t)},iSe=ue(lw,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),aSe=ue("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Ae(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),sSe=ue(ai,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Ae(n.scroll)}`],t[`paperWidth${Ae(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Et(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${z1.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${z1.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${z1.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),hE=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiDialog"}),o=Po(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:f,className:h,disableEscapeKeyDown:g=!1,fullScreen:y=!1,fullWidth:x=!1,maxWidth:S="sm",onClick:C,onClose:E,open:I,PaperComponent:M=ai,PaperProps:O={},scroll:D="paper",slots:N={},slotProps:$={},TransitionComponent:L=Zy,transitionDuration:A=i,TransitionProps:F,...z}=r,H={...r,disableEscapeKeyDown:g,fullScreen:y,fullWidth:x,maxWidth:S,scroll:D},Q=oSe(H),G=m.useRef(),V=Se=>{G.current=Se.target===Se.currentTarget},Y=Se=>{C&&C(Se),G.current&&(G.current=null,E&&E(Se,"backdropClick"))},X=_n(s),te=m.useMemo(()=>({titleId:X}),[X]),U={transition:L,...N},K={transition:F,paper:O,backdrop:u,...$},ee={slots:U,slotProps:K},[le,ce]=Dt("root",{elementType:iSe,shouldForwardComponentProp:!0,externalForwardedProps:ee,ownerState:H,className:ge(Q.root,h),ref:n}),[se,fe]=Dt("backdrop",{elementType:rSe,shouldForwardComponentProp:!0,externalForwardedProps:ee,ownerState:H}),[we,Oe]=Dt("paper",{elementType:sSe,shouldForwardComponentProp:!0,externalForwardedProps:ee,ownerState:H,className:ge(Q.paper,O.className)}),[he,me]=Dt("container",{elementType:aSe,externalForwardedProps:ee,ownerState:H,className:ge(Q.container)}),[ye,ae]=Dt("transition",{elementType:Zy,externalForwardedProps:ee,ownerState:H,additionalProps:{appear:!0,in:I,timeout:A,role:"presentation"}});return R.jsx(le,{closeAfterTransition:!0,slots:{backdrop:se},slotProps:{backdrop:{transitionDuration:A,as:c,...fe}},disableEscapeKeyDown:g,onClose:E,open:I,onClick:Y,...ce,...z,children:R.jsx(ye,{...ae,children:R.jsx(he,{onMouseDown:V,...me,children:R.jsx(we,{as:M,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":X,"aria-modal":l,...Oe,children:R.jsx(xJ.Provider,{value:te,children:f})})})})})});function lSe(e){return st("MuiDialogActions",e)}ct("MuiDialogActions",["root","spacing"]);const cSe=e=>{const{classes:t,disableSpacing:n}=e;return $e({root:["root",!n&&"spacing"]},lSe,t)},uSe=ue("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),mE=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...a}=r,s={...r,disableSpacing:i},l=cSe(s);return R.jsx(uSe,{className:ge(l.root,o),ownerState:s,ref:n,...a})});function dSe(e){return st("MuiDialogContent",e)}ct("MuiDialogContent",["root","dividers"]);function fSe(e){return st("MuiDialogTitle",e)}const pSe=ct("MuiDialogTitle",["root"]),hSe=e=>{const{classes:t,dividers:n}=e;return $e({root:["root",n&&"dividers"]},dSe,t)},mSe=ue("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Et(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${pSe.root} + &`]:{paddingTop:0}}}]}))),gE=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...a}=r,s={...r,dividers:i},l=hSe(s);return R.jsx(mSe,{className:ge(l.root,o),ownerState:s,ref:n,...a})});function gSe(e){return st("MuiDialogContentText",e)}ct("MuiDialogContentText",["root"]);const ySe=e=>{const{classes:t}=e,r=$e({root:["root"]},gSe,t);return{...t,...r}},vSe=ue(wt,{shouldForwardProp:e=>ma(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),G3=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiDialogContentText"}),{children:o,className:i,...a}=r,s=ySe(a);return R.jsx(vSe,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:a,className:ge(s.root,i),...r,classes:s})}),bSe=e=>{const{classes:t}=e;return $e({root:["root"]},fSe,t)},xSe=ue(wt,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),zA=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiDialogTitle"}),{className:o,id:i,...a}=r,s=r,l=bSe(s),{titleId:c=i}=m.useContext(xJ);return R.jsx(xSe,{component:"h2",className:ge(l.root,o),ownerState:s,ref:n,variant:"h6",id:i??c,...a})});function wSe(e){return st("MuiDivider",e)}const W3=ct("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),SSe=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return $e({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},wSe,r)},CSe=ue("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Et(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Kt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),ESe=ue("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Et(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),$s=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,orientation:s="horizontal",component:l=i||s==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:f=l!=="hr"?"separator":void 0,textAlign:h="center",variant:g="fullWidth",...y}=r,x={...r,absolute:o,component:l,flexItem:c,light:u,orientation:s,role:f,textAlign:h,variant:g},S=SSe(x);return R.jsx(CSe,{as:l,className:ge(S.root,a),role:f,ref:n,ownerState:x,"aria-orientation":f==="separator"&&(l!=="hr"||s==="vertical")?s:void 0,...y,children:i?R.jsx(ESe,{className:S.wrapper,ownerState:x,children:i}):null})});$s&&($s.muiSkipListHighlight=!0);function TSe(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=ql(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=i.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function PSe(e){return typeof e=="function"?e():e}function iM(e,t,n){const r=PSe(n),o=TSe(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const ISe=m.forwardRef(function(t,n){const r=Po(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:f=o,in:h,onEnter:g,onEntered:y,onEntering:x,onExit:S,onExited:C,onExiting:E,style:I,timeout:M=i,TransitionComponent:O=Zl,...D}=t,N=m.useRef(null),$=xn(_m(l),N,n),L=X=>te=>{X&&(te===void 0?X(N.current):X(N.current,te))},A=L((X,te)=>{iM(u,X,c),Az(X),g&&g(X,te)}),F=L((X,te)=>{const U=Sm({timeout:M,style:I,easing:f},{mode:"enter"});X.style.webkitTransition=r.transitions.create("-webkit-transform",{...U}),X.style.transition=r.transitions.create("transform",{...U}),X.style.webkitTransform="none",X.style.transform="none",x&&x(X,te)}),z=L(y),H=L(E),Q=L(X=>{const te=Sm({timeout:M,style:I,easing:f},{mode:"exit"});X.style.webkitTransition=r.transitions.create("-webkit-transform",te),X.style.transition=r.transitions.create("transform",te),iM(u,X,c),S&&S(X)}),G=L(X=>{X.style.webkitTransition="",X.style.transition="",C&&C(X)}),V=X=>{a&&a(N.current,X)},Y=m.useCallback(()=>{N.current&&iM(u,N.current,c)},[u,c]);return m.useEffect(()=>{if(h||u==="down"||u==="right")return;const X=Sv(()=>{N.current&&iM(u,N.current,c)}),te=ql(N.current);return te.addEventListener("resize",X),()=>{X.clear(),te.removeEventListener("resize",X)}},[u,h,c]),m.useEffect(()=>{h||Y()},[h,Y]),R.jsx(O,{nodeRef:N,onEnter:A,onEntered:z,onEntering:F,onExit:Q,onExited:G,onExiting:H,addEndListener:V,appear:s,in:h,timeout:M,...D,children:(X,{ownerState:te,...U})=>m.cloneElement(l,{ref:$,style:{visibility:X==="exited"&&!h?"hidden":void 0,...I,...l.props.style},...U})})});function OSe(e){return st("MuiDrawer",e)}ct("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const wJ=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},MSe=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root",`anchor${Ae(n)}`],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Ae(n)}`,r!=="temporary"&&`paperAnchorDocked${Ae(n)}`]};return $e(o,OSe,t)},ASe=ue(lw,{name:"MuiDrawer",slot:"Root",overridesResolver:wJ})(Et(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),DSe=ue("div",{shouldForwardProp:ma,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:wJ})({flex:"0 0 auto"}),RSe=ue(ai,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Ae(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Ae(n.anchor)}`]]}})(Et(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),SJ={left:"right",right:"left",top:"down",bottom:"up"};function kSe(e){return["left","right"].includes(e)}function NSe({direction:e},t){return e==="rtl"&&kSe(t)?SJ[t]:t}const _Se=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiDrawer"}),o=Po(),i=eo(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:g,...y}={},onClose:x,open:S=!1,PaperProps:C={},SlideProps:E,TransitionComponent:I,transitionDuration:M=a,variant:O="temporary",slots:D={},slotProps:N={},...$}=r,L=m.useRef(!1);m.useEffect(()=>{L.current=!0},[]);const A=NSe({direction:i?"rtl":"ltr"},s),z={...r,anchor:s,elevation:f,open:S,variant:O,...$},H=MSe(z),Q={slots:{transition:I,...D},slotProps:{paper:C,transition:E,...N,backdrop:Pz(N.backdrop||{...l,...g},{transitionDuration:M})}},[G,V]=Dt("root",{ref:n,elementType:ASe,className:ge(H.root,H.modal,u),shouldForwardComponentProp:!0,ownerState:z,externalForwardedProps:{...Q,...$,...y},additionalProps:{open:S,onClose:x,hideBackdrop:h,slots:{backdrop:Q.slots.backdrop},slotProps:{backdrop:Q.slotProps.backdrop}}}),[Y,X]=Dt("paper",{elementType:RSe,shouldForwardComponentProp:!0,className:ge(H.paper,C.className),ownerState:z,externalForwardedProps:Q,additionalProps:{elevation:O==="temporary"?f:0,square:!0}}),[te,U]=Dt("docked",{elementType:DSe,ref:n,className:ge(H.root,H.docked,u),ownerState:z,externalForwardedProps:Q,additionalProps:$}),[K,ee]=Dt("transition",{elementType:ISe,ownerState:z,externalForwardedProps:Q,additionalProps:{in:S,direction:SJ[A],timeout:M,appear:L.current}}),le=R.jsx(Y,{...X,children:c});if(O==="permanent")return R.jsx(te,{...U,children:le});const ce=R.jsx(K,{...ee,children:le});return O==="persistent"?R.jsx(te,{...U,children:ce}):R.jsx(G,{...V,children:ce})});function LSe(e){return st("MuiFab",e)}const q3=ct("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),$Se=e=>{const{color:t,variant:n,classes:r,size:o}=e,i={root:["root",n,`size${Ae(o)}`,t==="inherit"?"colorInherit":t]},a=$e(i,LSe,r);return{...r,...a}},FSe=ue(Ls,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>ma(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Ae(n.size)}`],n.color==="inherit"&&t.colorInherit,t[Ae(n.size)],t[n.color]]}})(Et(({theme:e})=>({...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:e.palette.getContrastText?.(e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${q3.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]})),Et(({theme:e})=>({variants:[...Object.entries(e.palette).filter(Mr(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),Et(({theme:e})=>({[`&.${q3.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),jp=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiFab"}),{children:o,className:i,color:a="default",component:s="button",disabled:l=!1,disableFocusRipple:c=!1,focusVisibleClassName:u,size:f="large",variant:h="circular",...g}=r,y={...r,color:a,component:s,disabled:l,disableFocusRipple:c,size:f,variant:h},x=$Se(y);return R.jsx(FSe,{className:ge(x.root,i),component:s,disabled:l,focusRipple:!c,focusVisibleClassName:ge(x.focusVisible,u),ownerState:y,ref:n,...g,classes:x,children:o})}),jSe=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:a,multiline:s}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${Ae(i)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=$e(l,rxe,t);return{...t,...c}},BSe=ue(NR,{shouldForwardProp:e=>ma(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...RR(e,t),!n.disableUnderline&&t.underline]}})(Et(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${kl.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${kl.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${kl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${kl.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${kl.disabled}, .${kl.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${kl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Mr()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),zSe=ue(_R,{name:"MuiFilledInput",slot:"Input",overridesResolver:kR})(Et(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Hz=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:f,slots:h={},type:g="text",...y}=r,x={...r,disableUnderline:o,fullWidth:s,inputComponent:c,multiline:u,type:g},S=jSe(r),C={root:{ownerState:x},input:{ownerState:x}},E=f??a?da(C,f??a):C,I=h.root??i.Root??BSe,M=h.input??i.Input??zSe;return R.jsx(gT,{slots:{root:I,input:M},slotProps:E,fullWidth:s,inputComponent:c,multiline:u,ref:n,type:g,...y,classes:S})});Hz.muiName="Input";function VSe(e){return st("MuiFormControl",e)}ct("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const HSe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Ae(n)}`,r&&"fullWidth"]};return $e(o,VSe,t)},USe=ue("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Ae(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Tv=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:h=!1,margin:g="none",required:y=!1,size:x="medium",variant:S="outlined",...C}=r,E={...r,color:a,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:h,margin:g,required:y,size:x,variant:S},I=HSe(E),[M,O]=m.useState(()=>{let G=!1;return o&&m.Children.forEach(o,V=>{if(!sx(V,["Input","Select"]))return;const Y=sx(V,["Select"])?V.props.input:V;Y&&J0e(Y.props)&&(G=!0)}),G}),[D,N]=m.useState(()=>{let G=!1;return o&&m.Children.forEach(o,V=>{sx(V,["Input","Select"])&&(jA(V.props,!0)||jA(V.props.inputProps,!0))&&(G=!0)}),G}),[$,L]=m.useState(!1);l&&$&&L(!1);const A=u!==void 0&&!l?u:$;let F;m.useRef(!1);const z=m.useCallback(()=>{N(!0)},[]),H=m.useCallback(()=>{N(!1)},[]),Q=m.useMemo(()=>({adornedStart:M,setAdornedStart:O,color:a,disabled:l,error:c,filled:D,focused:A,fullWidth:f,hiddenLabel:h,size:x,onBlur:()=>{L(!1)},onFocus:()=>{L(!0)},onEmpty:H,onFilled:z,registerEffect:F,required:y,variant:S}),[M,a,l,c,D,A,f,h,F,H,z,y,x,S]);return R.jsx(DR.Provider,{value:Q,children:R.jsx(USe,{as:s,ownerState:E,className:ge(I.root,i),ref:n,...C,children:o})})});function GSe(e){return st("MuiFormControlLabel",e)}const K0=ct("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),WSe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${Ae(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return $e(a,GSe,t)},qSe=ue("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${K0.label}`]:t.label},t.root,t[`labelPlacement${Ae(n.labelPlacement)}`]]}})(Et(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${K0.disabled}`]:{cursor:"default"},[`& .${K0.label}`]:{[`&.${K0.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),KSe=ue("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Et(({theme:e})=>({[`&.${K0.error}`]:{color:(e.vars||e).palette.error.main}}))),Yl=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiFormControlLabel"}),{checked:o,className:i,componentsProps:a={},control:s,disabled:l,disableTypography:c,inputRef:u,label:f,labelPlacement:h="end",name:g,onChange:y,required:x,slots:S={},slotProps:C={},value:E,...I}=r,M=ou(),O=l??s.props.disabled??M?.disabled,D=x??s.props.required,N={disabled:O,required:D};["checked","name","onChange","value","inputRef"].forEach(G=>{typeof s.props[G]>"u"&&typeof r[G]<"u"&&(N[G]=r[G])});const $=$m({props:r,muiFormControl:M,states:["error"]}),L={...r,disabled:O,labelPlacement:h,required:D,error:$.error},A=WSe(L),F={slots:S,slotProps:{...a,...C}},[z,H]=Dt("typography",{elementType:wt,externalForwardedProps:F,ownerState:L});let Q=f;return Q!=null&&Q.type!==wt&&!c&&(Q=R.jsx(z,{component:"span",...H,className:ge(A.label,H?.className),children:Q})),R.jsxs(qSe,{className:ge(A.root,i),ownerState:L,ref:n,...I,children:[m.cloneElement(s,N),D?R.jsxs("div",{children:[Q,R.jsxs(KSe,{ownerState:L,"aria-hidden":!0,className:A.asterisk,children:[" ","*"]})]}):Q]})});function YSe(e){return st("MuiFormGroup",e)}ct("MuiFormGroup",["root","row","error"]);const QSe=e=>{const{classes:t,row:n,error:r}=e;return $e({root:["root",n&&"row",r&&"error"]},YSe,t)},XSe=ue("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),yE=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1,...a}=r,s=ou(),l=$m({props:r,muiFormControl:s,states:["error"]}),c={...r,row:i,error:l.error},u=QSe(c);return R.jsx(XSe,{className:ge(u.root,o),ownerState:c,ref:n,...a})});function JSe(e){return st("MuiFormHelperText",e)}const K3=ct("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Y3;const ZSe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${Ae(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return $e(c,JSe,t)},eCe=ue("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Ae(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Et(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${K3.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${K3.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),yT=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p",disabled:s,error:l,filled:c,focused:u,margin:f,required:h,variant:g,...y}=r,x=ou(),S=$m({props:r,muiFormControl:x,states:["variant","size","disabled","error","filled","focused","required"]}),C={...r,component:a,contained:S.variant==="filled"||S.variant==="outlined",variant:S.variant,size:S.size,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required};delete C.ownerState;const E=ZSe(C);return R.jsx(eCe,{as:a,className:ge(E.root,i),ref:n,...y,ownerState:C,children:o===" "?Y3||(Y3=R.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function tCe(e){return st("MuiFormLabel",e)}const V1=ct("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),nCe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${Ae(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return $e(l,tCe,t)},rCe=ue("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Et(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Mr()).map(([t])=>({props:{color:t},style:{[`&.${V1.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${V1.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${V1.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),oCe=ue("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Et(({theme:e})=>({[`&.${V1.error}`]:{color:(e.vars||e).palette.error.main}}))),iCe=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiFormLabel"}),{children:o,className:i,color:a,component:s="label",disabled:l,error:c,filled:u,focused:f,required:h,...g}=r,y=ou(),x=$m({props:r,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),S={...r,color:x.color||"primary",component:s,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required},C=nCe(S);return R.jsxs(rCe,{as:s,ownerState:S,className:ge(C.root,i),ref:n,...g,children:[o,x.required&&R.jsxs(oCe,{ownerState:S,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})}),xe=xge({createStyledComponent:ue("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Tt({props:e,name:"MuiGrid"}),useTheme:Po});function _F(e){return`scale(${e}, ${e**2})`}const aCe={entering:{opacity:1,transform:_F(1)},entered:{opacity:1,transform:"none"}},f_=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ev=m.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:h,onExiting:g,style:y,timeout:x="auto",TransitionComponent:S=Zl,...C}=t,E=Ni(),I=m.useRef(),M=Po(),O=m.useRef(null),D=xn(O,_m(i),n),N=G=>V=>{if(G){const Y=O.current;V===void 0?G(Y):G(Y,V)}},$=N(u),L=N((G,V)=>{Az(G);const{duration:Y,delay:X,easing:te}=Sm({style:y,timeout:x,easing:a},{mode:"enter"});let U;x==="auto"?(U=M.transitions.getAutoHeightDuration(G.clientHeight),I.current=U):U=Y,G.style.transition=[M.transitions.create("opacity",{duration:U,delay:X}),M.transitions.create("transform",{duration:f_?U:U*.666,delay:X,easing:te})].join(","),l&&l(G,V)}),A=N(c),F=N(g),z=N(G=>{const{duration:V,delay:Y,easing:X}=Sm({style:y,timeout:x,easing:a},{mode:"exit"});let te;x==="auto"?(te=M.transitions.getAutoHeightDuration(G.clientHeight),I.current=te):te=V,G.style.transition=[M.transitions.create("opacity",{duration:te,delay:Y}),M.transitions.create("transform",{duration:f_?te:te*.666,delay:f_?Y:Y||te*.333,easing:X})].join(","),G.style.opacity=0,G.style.transform=_F(.75),f&&f(G)}),H=N(h),Q=G=>{x==="auto"&&E.start(I.current||0,G),r&&r(O.current,G)};return R.jsx(S,{appear:o,in:s,nodeRef:O,onEnter:L,onEntered:A,onEntering:$,onExit:z,onExited:H,onExiting:F,addEndListener:Q,timeout:x==="auto"?null:x,...C,children:(G,{ownerState:V,...Y})=>m.cloneElement(i,{style:{opacity:0,transform:_F(.75),visibility:G==="exited"&&!s?"hidden":void 0,...aCe[G],...y,...i.props.style},ref:D,...Y})})});ev&&(ev.muiSupportAuto=!0);function sCe(e){return st("MuiImageList",e)}ct("MuiImageList",["root","masonry","quilted","standard","woven"]);const CJ=m.createContext({}),lCe=e=>{const{classes:t,variant:n}=e;return $e({root:["root",n]},sCe,t)},cCe=ue("ul",{name:"MuiImageList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({display:"grid",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch",variants:[{props:{variant:"masonry"},style:{display:"block"}}]}),EJ=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiImageList"}),{children:o,className:i,cols:a=2,component:s="ul",rowHeight:l="auto",gap:c=4,style:u,variant:f="standard",...h}=r,g=m.useMemo(()=>({rowHeight:l,gap:c,variant:f}),[l,c,f]),y=f==="masonry"?{columnCount:a,columnGap:c,...u}:{gridTemplateColumns:`repeat(${a}, 1fr)`,gap:c,...u},x={...r,component:s,gap:c,rowHeight:l,variant:f},S=lCe(x);return R.jsx(cCe,{as:s,className:ge(S.root,S[f],i),ref:n,style:y,ownerState:x,...h,children:R.jsx(CJ.Provider,{value:g,children:o})})});function uCe(e){return st("MuiImageListItem",e)}const p_=ct("MuiImageListItem",["root","img","standard","woven","masonry","quilted"]),dCe=e=>{const{classes:t,variant:n}=e;return $e({root:["root",n],img:["img"]},uCe,t)},fCe=ue("li",{name:"MuiImageListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${p_.img}`]:t.img},t.root,t[n.variant]]}})({display:"block",position:"relative",[`& .${p_.img}`]:{objectFit:"cover",width:"100%",height:"100%",display:"block"},variants:[{props:{variant:"standard"},style:{display:"flex",flexDirection:"column"}},{props:{variant:"woven"},style:{height:"100%",alignSelf:"center","&:nth-of-type(even)":{height:"70%"}}},{props:{variant:"standard"},style:{[`& .${p_.img}`]:{height:"auto",flexGrow:1}}}]}),TJ=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiImageListItem"}),{children:o,className:i,cols:a=1,component:s="li",rows:l=1,style:c,...u}=r,{rowHeight:f="auto",gap:h,variant:g}=m.useContext(CJ);let y="auto";g==="woven"?y=void 0:f!=="auto"&&(y=f*l+h*(l-1));const x={...r,cols:a,component:s,gap:h,rowHeight:f,rows:l,variant:g},S=dCe(x);return R.jsx(fCe,{as:s,className:ge(S.root,S[g],i),ref:n,style:{height:y,gridColumnEnd:g!=="masonry"?`span ${a}`:void 0,gridRowEnd:g!=="masonry"?`span ${l}`:void 0,marginBottom:g==="masonry"?h:void 0,breakInside:g==="masonry"?"avoid":void 0,...c},ownerState:x,...u,children:m.Children.map(o,C=>m.isValidElement(C)?C.type==="img"||sx(C,["Image"])?m.cloneElement(C,{className:ge(S.img,C.props.className)}):C:null)})});function pCe(e){return st("MuiImageListItemBar",e)}ct("MuiImageListItemBar",["root","positionBottom","positionTop","positionBelow","actionPositionLeft","actionPositionRight","titleWrap","titleWrapBottom","titleWrapTop","titleWrapBelow","titleWrapActionPosLeft","titleWrapActionPosRight","title","subtitle","actionIcon","actionIconActionPosLeft","actionIconActionPosRight"]);const hCe=e=>{const{classes:t,position:n,actionIcon:r,actionPosition:o}=e,i={root:["root",`position${Ae(n)}`,`actionPosition${Ae(o)}`],titleWrap:["titleWrap",`titleWrap${Ae(n)}`,r&&`titleWrapActionPos${Ae(o)}`],title:["title"],subtitle:["subtitle"],actionIcon:["actionIcon",`actionIconActionPos${Ae(o)}`]};return $e(i,pCe,t)},mCe=ue("div",{name:"MuiImageListItemBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Ae(n.position)}`]]}})(Et(({theme:e})=>({position:"absolute",left:0,right:0,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:e.typography.fontFamily,variants:[{props:{position:"bottom"},style:{bottom:0}},{props:{position:"top"},style:{top:0}},{props:{position:"below"},style:{position:"relative",background:"transparent",alignItems:"normal"}}]}))),gCe=ue("div",{name:"MuiImageListItemBar",slot:"TitleWrap",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.titleWrap,t[`titleWrap${Ae(n.position)}`],n.actionIcon&&t[`titleWrapActionPos${Ae(n.actionPosition)}`]]}})(Et(({theme:e})=>({flexGrow:1,padding:"12px 16px",color:(e.vars||e).palette.common.white,overflow:"hidden",variants:[{props:{position:"below"},style:{padding:"6px 0 12px",color:"inherit"}},{props:({ownerState:t})=>t.actionIcon&&t.actionPosition==="left",style:{paddingLeft:0}},{props:({ownerState:t})=>t.actionIcon&&t.actionPosition==="right",style:{paddingRight:0}}]}))),yCe=ue("div",{name:"MuiImageListItemBar",slot:"Title",overridesResolver:(e,t)=>t.title})(Et(({theme:e})=>({fontSize:e.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),vCe=ue("div",{name:"MuiImageListItemBar",slot:"Subtitle",overridesResolver:(e,t)=>t.subtitle})(Et(({theme:e})=>({fontSize:e.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),bCe=ue("div",{name:"MuiImageListItemBar",slot:"ActionIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.actionIcon,t[`actionIconActionPos${Ae(n.actionPosition)}`]]}})({variants:[{props:{actionPosition:"left"},style:{order:-1}}]}),xCe=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiImageListItemBar"}),{actionIcon:o,actionPosition:i="right",className:a,subtitle:s,title:l,position:c="bottom",...u}=r,f={...r,position:c,actionPosition:i},h=hCe(f);return R.jsxs(mCe,{ownerState:f,className:ge(h.root,a),ref:n,...u,children:[R.jsxs(gCe,{ownerState:f,className:h.titleWrap,children:[R.jsx(yCe,{className:h.title,children:l}),s?R.jsx(vCe,{className:h.subtitle,children:s}):null]}),o?R.jsx(bCe,{ownerState:f,className:h.actionIcon,children:o}):null]})}),wCe=e=>{const{classes:t,disableUnderline:n}=e,o=$e({root:["root",!n&&"underline"],input:["input"]},txe,t);return{...t,...o}},SCe=ue(NR,{shouldForwardProp:e=>ma(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...RR(e,t),!n.disableUnderline&&t.underline]}})(Et(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${om.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${om.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${om.disabled}, .${om.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${om.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Mr()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),CCe=ue(_R,{name:"MuiInput",slot:"Input",overridesResolver:kR})({}),Uz=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:f={},type:h="text",...g}=r,y=wCe(r),S={root:{ownerState:{disableUnderline:o}}},C=u??a?da(u??a,S):S,E=f.root??i.Root??SCe,I=f.input??i.Input??CCe;return R.jsx(gT,{slots:{root:E,input:I},slotProps:C,fullWidth:s,inputComponent:l,multiline:c,ref:n,type:h,...g,classes:y})});Uz.muiName="Input";function ECe(e){return st("MuiInputAdornment",e)}const LF=ct("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Q3;const TCe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Ae(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},PCe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Ae(o)}`,a,r&&"hiddenLabel",i&&`size${Ae(i)}`]};return $e(s,ECe,t)},ICe=ue("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:TCe})(Et(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${LF.positionStart}&:not(.${LF.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),gi=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u,...f}=r,h=ou()||{};let g=u;u&&h.variant,h&&!g&&(g=h.variant);const y={...r,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:c,variant:g},x=PCe(y);return R.jsx(DR.Provider,{value:null,children:R.jsx(ICe,{as:a,ownerState:y,className:ge(x.root,i),ref:n,...f,children:typeof o=="string"&&!l?R.jsx(wt,{color:"textSecondary",children:o}):R.jsxs(m.Fragment,{children:[c==="start"?Q3||(Q3=R.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function OCe(e){return st("MuiInputLabel",e)}ct("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const MCe=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="medium"&&`size${Ae(r)}`,a],asterisk:[s&&"asterisk"]},c=$e(l,OCe,t);return{...t,...c}},ACe=ue(iCe,{shouldForwardProp:e=>ma(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${V1.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Et(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Pv=m.forwardRef(function(t,n){const r=Tt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:a,variant:s,className:l,...c}=r,u=ou();let f=a;typeof f>"u"&&u&&(f=u.filled||u.focused||u.adornedStart);const h=$m({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),g={...r,disableAnimation:o,formControl:u,shrink:f,size:h.size,variant:h.variant,required:h.required,focused:h.focused},y=MCe(g);return R.jsx(ACe,{"data-shrink":f,ref:n,className:ge(y.root,l),...c,ownerState:g,classes:y})});function DCe(e){return st("MuiLinearProgress",e)}ct("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const $F=4,FF=nu`
- 0% {
- left: -35%;
- right: 100%;
- }
-
- 60% {
- left: 100%;
- right: -90%;
- }
-
- 100% {
- left: 100%;
- right: -90%;
- }
-`,RCe=typeof FF!="string"?Nm`
- animation: ${FF} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
- `:null,jF=nu`
- 0% {
- left: -200%;
- right: 100%;
- }
-
- 60% {
- left: 107%;
- right: -8%;
- }
-
- 100% {
- left: 107%;
- right: -8%;
- }
-`,kCe=typeof jF!="string"?Nm`
- animation: ${jF} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
- `:null,BF=nu`
- 0% {
- opacity: 1;
- background-position: 0 -23px;
- }
-
- 60% {
- opacity: 0;
- background-position: 0 -23px;
- }
-
- 100% {
- opacity: 1;
- background-position: -200px -23px;
- }
-`,NCe=typeof BF!="string"?Nm`
- animation: ${BF} 3s infinite linear;
- `:null,_Ce=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${Ae(r)}`,n],dashed:["dashed",`dashedColor${Ae(r)}`],bar1:["bar","bar1",`barColor${Ae(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${Ae(r)}`,n==="buffer"&&`color${Ae(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return $e(o,DCe,t)},Gz=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Ep(e.palette[t].main,.62):Cp(e.palette[t].main,.5),LCe=ue("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Ae(n.color)}`],t[n.variant]]}})(Et(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Mr()).map(([t])=>({props:{color:t},style:{backgroundColor:Gz(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),$Ce=ue("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Ae(n.color)}`]]}})(Et(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(Mr()).map(([t])=>{const n=Gz(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),NCe||{animation:`${BF} 3s infinite linear`}),FCe=ue("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${Ae(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(Et(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(Mr()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${$F}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${$F}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:RCe||{animation:`${FF} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),jCe=ue("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${Ae(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(Et(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(Mr()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(Mr()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Gz(e,t),transition:`transform .${$F}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:kCe||{animation:`${jF} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),PJ=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:a,valueBuffer:s,variant:l="indeterminate",...c}=r,u={...r,color:i,variant:l},f=_Ce(u),h=eo(),g={},y={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&a!==void 0){g["aria-valuenow"]=Math.round(a),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let x=a-100;h&&(x=-x),y.bar1.transform=`translateX(${x}%)`}if(l==="buffer"&&s!==void 0){let x=(s||0)-100;h&&(x=-x),y.bar2.transform=`translateX(${x}%)`}return R.jsxs(LCe,{className:ge(f.root,o),ownerState:u,role:"progressbar",...g,ref:n,...c,children:[l==="buffer"?R.jsx($Ce,{className:f.dashed,ownerState:u}):null,R.jsx(FCe,{className:f.bar1,ownerState:u,style:y.bar1}),l==="determinate"?null:R.jsx(jCe,{className:f.bar2,ownerState:u,style:y.bar2})]})}),zc=m.createContext({});function BCe(e){return st("MuiList",e)}ct("MuiList",["root","padding","dense","subheader"]);const zCe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return $e({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},BCe,t)},VCe=ue("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),ca=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=r,f=m.useMemo(()=>({dense:s}),[s]),h={...r,component:a,dense:s,disablePadding:l},g=zCe(h);return R.jsx(zc.Provider,{value:f,children:R.jsxs(VCe,{as:a,className:ge(g.root,i),ref:n,ownerState:h,...u,children:[c,o]})})});function HCe(e){return st("MuiListItem",e)}ct("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function UCe(e){return st("MuiListItemButton",e)}const V0=ct("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),GCe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},WCe=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e,c=$e({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},UCe,n);return{...n,...c}},qCe=ue(Ls,{shouldForwardProp:e=>ma(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:GCe})(Et(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${V0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${V0.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${V0.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${V0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${V0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),Gu=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:s,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:f,selected:h=!1,className:g,...y}=r,x=m.useContext(zc),S=m.useMemo(()=>({dense:l||x.dense||!1,alignItems:o,disableGutters:c}),[o,x.dense,l,c]),C=m.useRef(null);qn(()=>{i&&C.current&&C.current.focus()},[i]);const E={...r,alignItems:o,dense:S.dense,disableGutters:c,divider:u,selected:h},I=WCe(E),M=xn(C,n);return R.jsx(zc.Provider,{value:S,children:R.jsx(qCe,{ref:M,href:y.href||y.to,component:(y.href||y.to)&&a==="div"?"button":a,focusVisibleClassName:ge(I.focusVisible,f),ownerState:E,className:ge(I.root,g),...y,classes:I,children:s})})});function KCe(e){return st("MuiListItemSecondaryAction",e)}ct("MuiListItemSecondaryAction",["root","disableGutters"]);const YCe=e=>{const{disableGutters:t,classes:n}=e;return $e({root:["root",t&&"disableGutters"]},KCe,n)},QCe=ue("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),IJ=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,a=m.useContext(zc),s={...r,disableGutters:a.disableGutters},l=YCe(s);return R.jsx(QCe,{className:ge(l.root,o),ownerState:s,ref:n,...i})});IJ.muiName="ListItemSecondaryAction";const XCe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},JCe=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:s}=e;return $e({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},HCe,n)},ZCe=ue("div",{name:"MuiListItem",slot:"Root",overridesResolver:XCe})(Et(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${V0.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),e1e=ue("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),vi=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:a,component:s,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:f,...h}={},dense:g=!1,disableGutters:y=!1,disablePadding:x=!1,divider:S=!1,secondaryAction:C,slotProps:E={},slots:I={},...M}=r,O=m.useContext(zc),D=m.useMemo(()=>({dense:g||O.dense||!1,alignItems:o,disableGutters:y}),[o,O.dense,g,y]),N=m.useRef(null),$=m.Children.toArray(i),L=$.length&&sx($[$.length-1],["ListItemSecondaryAction"]),A={...r,alignItems:o,dense:D.dense,disableGutters:y,disablePadding:x,divider:S,hasSecondaryAction:L},F=JCe(A),z=xn(N,n),H=I.root||l.Root||ZCe,Q=E.root||c.root||{},G={className:ge(F.root,Q.className,a),...M};let V=s||"li";return L?(V=!G.component&&!s?"div":V,u==="li"&&(V==="li"?V="div":G.component==="li"&&(G.component="div")),R.jsx(zc.Provider,{value:D,children:R.jsxs(e1e,{as:u,className:ge(F.container,f),ref:z,ownerState:A,...h,children:[R.jsx(H,{...Q,...!pE(H)&&{as:V,ownerState:{...A,...Q.ownerState}},...G,children:$}),$.pop()]})})):R.jsx(zc.Provider,{value:D,children:R.jsxs(H,{...Q,as:V,ref:z,...!pE(H)&&{ownerState:{...A,...Q.ownerState}},...G,children:[$,C&&R.jsx(IJ,{children:C})]})})});function t1e(e){return st("MuiListItemAvatar",e)}ct("MuiListItemAvatar",["root","alignItemsFlexStart"]);const n1e=e=>{const{alignItems:t,classes:n}=e;return $e({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},t1e,n)},r1e=ue("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})({minWidth:56,flexShrink:0,variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}),Wz=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiListItemAvatar"}),{className:o,...i}=r,a=m.useContext(zc),s={...r,alignItems:a.alignItems},l=n1e(s);return R.jsx(r1e,{className:ge(l.root,o),ownerState:s,ref:n,...i})});function o1e(e){return st("MuiListItemIcon",e)}const X3=ct("MuiListItemIcon",["root","alignItemsFlexStart"]),i1e=e=>{const{alignItems:t,classes:n}=e;return $e({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},o1e,n)},a1e=ue("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Et(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Ql=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiListItemIcon"}),{className:o,...i}=r,a=m.useContext(zc),s={...r,alignItems:a.alignItems},l=i1e(s);return R.jsx(a1e,{className:ge(l.root,o),ownerState:s,ref:n,...i})});function s1e(e){return st("MuiListItemText",e)}const Oy=ct("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),l1e=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return $e({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},s1e,t)},c1e=ue("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Oy.primary}`]:t.primary},{[`& .${Oy.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${$A.root}:where(& .${Oy.primary})`]:{display:"block"},[`.${$A.root}:where(& .${Oy.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ko=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f,slots:h={},slotProps:g={},...y}=r,{dense:x}=m.useContext(zc);let S=l??o,C=u;const E={...r,disableTypography:a,inset:s,primary:!!S,secondary:!!C,dense:x},I=l1e(E),M={slots:h,slotProps:{primary:c,secondary:f,...g}},[O,D]=Dt("root",{className:ge(I.root,i),elementType:c1e,externalForwardedProps:{...M,...y},ownerState:E,ref:n}),[N,$]=Dt("primary",{className:I.primary,elementType:wt,externalForwardedProps:M,ownerState:E}),[L,A]=Dt("secondary",{className:I.secondary,elementType:wt,externalForwardedProps:M,ownerState:E});return S!=null&&S.type!==wt&&!a&&(S=R.jsx(N,{variant:x?"body2":"body1",component:$?.variant?void 0:"span",...$,children:S})),C!=null&&C.type!==wt&&!a&&(C=R.jsx(L,{variant:"body2",color:"textSecondary",...A,children:C})),R.jsxs(O,{...D,children:[S,C]})});function h_(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function J3(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function OJ(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function HC(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!OJ(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const LR=m.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu",...h}=t,g=m.useRef(null),y=m.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qn(()=>{o&&g.current.focus()},[o]),m.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(I,{direction:M})=>{const O=!g.current.style.width;if(I.clientHeight<g.current.clientHeight&&O){const D=`${EX(ql(I))}px`;g.current.style[M==="rtl"?"paddingLeft":"paddingRight"]=D,g.current.style.width=`calc(100% + ${D})`}return g.current}}),[]);const x=I=>{const M=g.current,O=I.key;if(I.ctrlKey||I.metaKey||I.altKey){u&&u(I);return}const N=yo(M).activeElement;if(O==="ArrowDown")I.preventDefault(),HC(M,N,c,l,h_);else if(O==="ArrowUp")I.preventDefault(),HC(M,N,c,l,J3);else if(O==="Home")I.preventDefault(),HC(M,null,c,l,h_);else if(O==="End")I.preventDefault(),HC(M,null,c,l,J3);else if(O.length===1){const $=y.current,L=O.toLowerCase(),A=performance.now();$.keys.length>0&&(A-$.lastTime>500?($.keys=[],$.repeating=!0,$.previousKeyMatched=!0):$.repeating&&L!==$.keys[0]&&($.repeating=!1)),$.lastTime=A,$.keys.push(L);const F=N&&!$.repeating&&OJ(N,$);$.previousKeyMatched&&(F||HC(M,N,!1,l,h_,$))?I.preventDefault():$.previousKeyMatched=!1}u&&u(I)},S=xn(g,n);let C=-1;m.Children.forEach(a,(I,M)=>{if(!m.isValidElement(I)){C===M&&(C+=1,C>=a.length&&(C=-1));return}I.props.disabled||(f==="selectedMenu"&&I.props.selected||C===-1)&&(C=M),C===M&&(I.props.disabled||I.props.muiSkipListHighlight||I.type.muiSkipListHighlight)&&(C+=1,C>=a.length&&(C=-1))});const E=m.Children.map(a,(I,M)=>{if(M===C){const O={};return i&&(O.autoFocus=!0),I.props.tabIndex===void 0&&f==="selectedMenu"&&(O.tabIndex=0),m.cloneElement(I,O)}return I});return R.jsx(ca,{role:"menu",ref:S,className:s,onKeyDown:x,tabIndex:o?0:-1,...h,children:E})});function u1e(e){return st("MuiPopover",e)}ct("MuiPopover",["root","paper"]);function Z3(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function e6(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function t6(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function aM(e){return typeof e=="function"?e():e}const d1e=e=>{const{classes:t}=e;return $e({root:["root"],paper:["paper"]},u1e,t)},f1e=ue(lw,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),MJ=ue(ai,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),p1e=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:f,elevation:h=8,marginThreshold:g=16,open:y,PaperProps:x={},slots:S={},slotProps:C={},transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:I,transitionDuration:M="auto",TransitionProps:O={},disableScrollLock:D=!1,...N}=r,$=m.useRef(),L={...r,anchorOrigin:a,anchorReference:l,elevation:h,marginThreshold:g,transformOrigin:E,TransitionComponent:I,transitionDuration:M,TransitionProps:O},A=d1e(L),F=m.useCallback(()=>{if(l==="anchorPosition")return s;const me=aM(i),ae=(me&&me.nodeType===1?me:yo($.current).body).getBoundingClientRect();return{top:ae.top+Z3(ae,a.vertical),left:ae.left+e6(ae,a.horizontal)}},[i,a.horizontal,a.vertical,s,l]),z=m.useCallback(me=>({vertical:Z3(me,E.vertical),horizontal:e6(me,E.horizontal)}),[E.horizontal,E.vertical]),H=m.useCallback(me=>{const ye={width:me.offsetWidth,height:me.offsetHeight},ae=z(ye);if(l==="none")return{top:null,left:null,transformOrigin:t6(ae)};const Se=F();let Ie=Se.top-ae.vertical,Re=Se.left-ae.horizontal;const ke=Ie+ye.height,Te=Re+ye.width,Ce=ql(aM(i)),Ze=Ce.innerHeight-g,Me=Ce.innerWidth-g;if(g!==null&&Ie<g){const _e=Ie-g;Ie-=_e,ae.vertical+=_e}else if(g!==null&&ke>Ze){const _e=ke-Ze;Ie-=_e,ae.vertical+=_e}if(g!==null&&Re<g){const _e=Re-g;Re-=_e,ae.horizontal+=_e}else if(Te>Me){const _e=Te-Me;Re-=_e,ae.horizontal+=_e}return{top:`${Math.round(Ie)}px`,left:`${Math.round(Re)}px`,transformOrigin:t6(ae)}},[i,l,F,z,g]),[Q,G]=m.useState(y),V=m.useCallback(()=>{const me=$.current;if(!me)return;const ye=H(me);ye.top!==null&&me.style.setProperty("top",ye.top),ye.left!==null&&(me.style.left=ye.left),me.style.transformOrigin=ye.transformOrigin,G(!0)},[H]);m.useEffect(()=>(D&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[i,D,V]);const Y=()=>{V()},X=()=>{G(!1)};m.useEffect(()=>{y&&V()}),m.useImperativeHandle(o,()=>y?{updatePosition:()=>{V()}}:null,[y,V]),m.useEffect(()=>{if(!y)return;const me=Sv(()=>{V()}),ye=ql(aM(i));return ye.addEventListener("resize",me),()=>{me.clear(),ye.removeEventListener("resize",me)}},[i,y,V]);let te=M;const U={slots:{transition:I,...S},slotProps:{transition:O,paper:x,...C}},[K,ee]=Dt("transition",{elementType:ev,externalForwardedProps:U,ownerState:L,getSlotProps:me=>({...me,onEntering:(ye,ae)=>{me.onEntering?.(ye,ae),Y()},onExited:ye=>{me.onExited?.(ye),X()}}),additionalProps:{appear:!0,in:y}});M==="auto"&&!K.muiSupportAuto&&(te=void 0);const le=f||(i?yo(aM(i)).body:void 0),[ce,{slots:se,slotProps:fe,...we}]=Dt("root",{ref:n,elementType:f1e,externalForwardedProps:{...U,...N},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:S.backdrop},slotProps:{backdrop:Pz(typeof C.backdrop=="function"?C.backdrop(L):C.backdrop,{invisible:!0})},container:le,open:y},ownerState:L,className:ge(A.root,u)}),[Oe,he]=Dt("paper",{ref:$,className:A.paper,elementType:MJ,externalForwardedProps:U,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:Q?void 0:{opacity:0}},ownerState:L});return R.jsx(ce,{...we,...!pE(ce)&&{slots:se,slotProps:fe,disableScrollLock:D},children:R.jsx(K,{...ee,timeout:te,children:R.jsx(Oe,{...he,children:c})})})});function h1e(e){return st("MuiMenu",e)}ct("MuiMenu",["root","paper","list"]);const m1e={vertical:"top",horizontal:"right"},g1e={vertical:"top",horizontal:"left"},y1e=e=>{const{classes:t}=e;return $e({root:["root"],paper:["paper"],list:["list"]},h1e,t)},v1e=ue(p1e,{shouldForwardProp:e=>ma(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),b1e=ue(MJ,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),x1e=ue(LR,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ec=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:f={},PopoverClasses:h,transitionDuration:g="auto",TransitionProps:{onEntering:y,...x}={},variant:S="selectedMenu",slots:C={},slotProps:E={},...I}=r,M=eo(),O={...r,autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:y,PaperProps:f,transitionDuration:g,TransitionProps:x,variant:S},D=y1e(O),N=o&&!s&&u,$=m.useRef(null),L=(te,U)=>{$.current&&$.current.adjustStyleForScrollbar(te,{direction:M?"rtl":"ltr"}),y&&y(te,U)},A=te=>{te.key==="Tab"&&(te.preventDefault(),c&&c(te,"tabKeyDown"))};let F=-1;m.Children.map(i,(te,U)=>{m.isValidElement(te)&&(te.props.disabled||(S==="selectedMenu"&&te.props.selected||F===-1)&&(F=U))});const z={slots:C,slotProps:{list:l,transition:x,paper:f,...E}},H=nr({elementType:C.root,externalSlotProps:E.root,ownerState:O,className:[D.root,a]}),[Q,G]=Dt("paper",{className:D.paper,elementType:b1e,externalForwardedProps:z,shouldForwardComponentProp:!0,ownerState:O}),[V,Y]=Dt("list",{className:ge(D.list,l.className),elementType:x1e,shouldForwardComponentProp:!0,externalForwardedProps:z,getSlotProps:te=>({...te,onKeyDown:U=>{A(U),te.onKeyDown?.(U)}}),ownerState:O}),X=typeof z.slotProps.transition=="function"?z.slotProps.transition(O):z.slotProps.transition;return R.jsx(v1e,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:M?"right":"left"},transformOrigin:M?m1e:g1e,slots:{root:C.root,paper:Q,backdrop:C.backdrop,...C.transition&&{transition:C.transition}},slotProps:{root:H,paper:G,backdrop:typeof E.backdrop=="function"?E.backdrop(O):E.backdrop,transition:{...X,onEntering:(...te)=>{L(...te),X?.onEntering?.(...te)}}},open:u,ref:n,transitionDuration:g,ownerState:O,...I,classes:h,children:R.jsx(V,{actions:$,autoFocus:o&&(F===-1||s),autoFocusItem:N,variant:S,...Y,children:i})})});function w1e(e){return st("MuiMenuItem",e)}const UC=ct("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),S1e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},C1e=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=$e({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},w1e,a);return{...a,...l}},E1e=ue(Ls,{shouldForwardProp:e=>ma(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:S1e})(Et(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${UC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${UC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${UC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${UC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${UC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${W3.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${W3.inset}`]:{marginLeft:52},[`& .${Oy.root}`]:{marginTop:0,marginBottom:0},[`& .${Oy.inset}`]:{paddingLeft:36},[`& .${X3.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${X3.root} svg`]:{fontSize:"1.25rem"}}}]}))),bn=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:h,...g}=r,y=m.useContext(zc),x=m.useMemo(()=>({dense:a||y.dense||!1,disableGutters:l}),[y.dense,a,l]),S=m.useRef(null);qn(()=>{o&&S.current&&S.current.focus()},[o]);const C={...r,dense:x.dense,divider:s,disableGutters:l},E=C1e(r),I=xn(S,n);let M;return r.disabled||(M=f!==void 0?f:-1),R.jsx(zc.Provider,{value:x,children:R.jsx(E1e,{ref:I,role:u,tabIndex:M,component:i,focusVisibleClassName:ge(E.focusVisible,c),className:ge(E.root,h),...g,ownerState:C,classes:E})})});function T1e(e){return st("MuiNativeSelect",e)}const qz=ct("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),P1e=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ae(n)}`,i&&"iconOpen",r&&"disabled"]};return $e(s,T1e,t)},AJ=ue("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${qz.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),I1e=ue(AJ,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ma,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${qz.multiple}`]:t.multiple}]}})({}),DJ=ue("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${qz.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),O1e=ue(DJ,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ae(n.variant)}`],n.open&&t.iconOpen]}})({}),M1e=m.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:i},f=P1e(u);return R.jsxs(m.Fragment,{children:[R.jsx(I1e,{ownerState:u,className:ge(f.select,r),disabled:o,ref:s||n,...c}),t.multiple?null:R.jsx(O1e,{as:a,ownerState:u,className:f.icon})]})});var n6;const A1e=ue("fieldset",{shouldForwardProp:ma})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),D1e=ue("legend",{shouldForwardProp:ma})(Et(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function R1e(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,s=o!=null&&o!=="",l={...e,notched:i,withLabel:s};return R.jsx(A1e,{"aria-hidden":!0,className:r,ownerState:l,...a,children:R.jsx(D1e,{ownerState:l,children:s?R.jsx("span",{children:o}):n6||(n6=R.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const k1e=e=>{const{classes:t}=e,r=$e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nxe,t);return{...t,...r}},N1e=ue(NR,{shouldForwardProp:e=>ma(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:RR})(Et(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Pc.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Pc.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Pc.focused} .${Pc.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Mr()).map(([n])=>({props:{color:n},style:{[`&.${Pc.focused} .${Pc.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Pc.error} .${Pc.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Pc.disabled} .${Pc.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),_1e=ue(R1e,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Et(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),L1e=ue(_R,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:kR})(Et(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Kz=m.forwardRef(function(t,n){var r;const o=Tt({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:u,slots:f={},type:h="text",...g}=o,y=k1e(o),x=ou(),S=$m({props:o,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...o,color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:x,fullWidth:a,hiddenLabel:S.hiddenLabel,multiline:c,size:S.size,type:h},E=f.root??i.Root??N1e,I=f.input??i.Input??L1e;return R.jsx(gT,{slots:{root:E,input:I},renderSuffix:M=>R.jsx(_1e,{ownerState:C,className:y.notchedOutline,label:l!=null&&l!==""&&S.required?r||(r=R.jsxs(m.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:a,inputComponent:s,multiline:c,ref:n,type:h,...g,classes:{...y,notchedOutline:null}})});Kz.muiName="Input";function $1e(e){return st("MuiPagination",e)}ct("MuiPagination",["root","ul","outlined","text"]);function F1e(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:i=!1,hideNextButton:a=!1,hidePrevButton:s=!1,onChange:l,page:c,showFirstButton:u=!1,showLastButton:f=!1,siblingCount:h=1,...g}=e,[y,x]=_s({controlled:c,default:o,name:n,state:"page"}),S=(L,A)=>{c||x(A),l&&l(L,A)},C=(L,A)=>{const F=A-L+1;return Array.from({length:F},(z,H)=>L+H)},E=C(1,Math.min(t,r)),I=C(Math.max(r-t+1,t+1),r),M=Math.max(Math.min(y-h,r-t-h*2-1),t+2),O=Math.min(Math.max(y+h,t+h*2+2),r-t-1),D=[...u?["first"]:[],...s?[]:["previous"],...E,...M>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...C(M,O),...O<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...I,...a?[]:["next"],...f?["last"]:[]],N=L=>{switch(L){case"first":return 1;case"previous":return y-1;case"next":return y+1;case"last":return r;default:return null}};return{items:D.map(L=>typeof L=="number"?{onClick:A=>{S(A,L)},type:"page",page:L,selected:L===y,disabled:i,"aria-current":L===y?"page":void 0}:{onClick:A=>{S(A,N(L))},type:L,page:N(L),selected:!1,disabled:i||!L.includes("ellipsis")&&(L==="next"||L==="last"?y>=r:y<=1)}),...g}}function j1e(e){return st("MuiPaginationItem",e)}const Ps=ct("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),RJ=Lt(R.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),kJ=Lt(R.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),B1e=Lt(R.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),z1e=Lt(R.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),NJ=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Ae(n.size)}`],n.variant==="text"&&t[`text${Ae(n.color)}`],n.variant==="outlined"&&t[`outlined${Ae(n.color)}`],n.shape==="rounded"&&t.rounded,n.type==="page"&&t.page,(n.type==="start-ellipsis"||n.type==="end-ellipsis")&&t.ellipsis,(n.type==="previous"||n.type==="next")&&t.previousNext,(n.type==="first"||n.type==="last")&&t.firstLast]},V1e=e=>{const{classes:t,color:n,disabled:r,selected:o,size:i,shape:a,type:s,variant:l}=e,c={root:["root",`size${Ae(i)}`,l,a,n!=="standard"&&`color${Ae(n)}`,n!=="standard"&&`${l}${Ae(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return $e(c,j1e,t)},H1e=ue("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:NJ})(Et(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Ps.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),U1e=ue(Ls,{name:"MuiPaginationItem",slot:"Root",overridesResolver:NJ})(Et(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Ps.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ps.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ps.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Kt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ps.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Kt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Ps.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Ps.selected}`]:{[`&.${Ps.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${Ps.selected}`]:{[`&.${Ps.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(Mr(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${Ps.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${Ps.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${Ps.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(Mr(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${Ps.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:Kt(e.palette[t].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:Kt(e.palette[t].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Kt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ps.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Kt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}}}}))]}))),G1e=ue("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(Et(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),W1e=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiPaginationItem"}),{className:o,color:i="standard",component:a,components:s={},disabled:l=!1,page:c,selected:u=!1,shape:f="circular",size:h="medium",slots:g={},slotProps:y={},type:x="page",variant:S="text",...C}=r,E={...r,color:i,disabled:l,selected:u,shape:f,size:h,type:x,variant:S},I=eo(),M=V1e(E),O={slots:{previous:g.previous??s.previous,next:g.next??s.next,first:g.first??s.first,last:g.last??s.last},slotProps:y},[D,N]=Dt("previous",{elementType:B1e,externalForwardedProps:O,ownerState:E}),[$,L]=Dt("next",{elementType:z1e,externalForwardedProps:O,ownerState:E}),[A,F]=Dt("first",{elementType:RJ,externalForwardedProps:O,ownerState:E}),[z,H]=Dt("last",{elementType:kJ,externalForwardedProps:O,ownerState:E}),Q=I?{previous:"next",next:"previous",first:"last",last:"first"}[x]:x,G={previous:D,next:$,first:A,last:z}[Q],V={previous:N,next:L,first:F,last:H}[Q];return x==="start-ellipsis"||x==="end-ellipsis"?R.jsx(H1e,{ref:n,ownerState:E,className:ge(M.root,o),children:"…"}):R.jsxs(U1e,{ref:n,ownerState:E,component:a,disabled:l,className:ge(M.root,o),...C,children:[x==="page"&&c,G?R.jsx(G1e,{...V,className:M.icon,as:G}):null]})}),q1e=e=>{const{classes:t,variant:n}=e;return $e({root:["root",n],ul:["ul"]},$1e,t)},K1e=ue("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),Y1e=ue("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Q1e(e,t,n){return e==="page"?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const X1e=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:i,color:a="standard",count:s=1,defaultPage:l=1,disabled:c=!1,getItemAriaLabel:u=Q1e,hideNextButton:f=!1,hidePrevButton:h=!1,onChange:g,page:y,renderItem:x=A=>R.jsx(W1e,{...A}),shape:S="circular",showFirstButton:C=!1,showLastButton:E=!1,siblingCount:I=1,size:M="medium",variant:O="text",...D}=r,{items:N}=F1e({...r,componentName:"Pagination"}),$={...r,boundaryCount:o,color:a,count:s,defaultPage:l,disabled:c,getItemAriaLabel:u,hideNextButton:f,hidePrevButton:h,renderItem:x,shape:S,showFirstButton:C,showLastButton:E,siblingCount:I,size:M,variant:O},L=q1e($);return R.jsx(K1e,{"aria-label":"pagination navigation",className:ge(L.root,i),ownerState:$,ref:n,...D,children:R.jsx(Y1e,{className:L.ul,ownerState:$,children:N.map((A,F)=>R.jsx("li",{children:x({...A,color:a,"aria-label":u(A.type,A.page,A.selected),shape:S,size:M,variant:O})},F))})})});function _J(e){return st("MuiSelect",e)}const GC=ct("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var r6;const J1e=ue(AJ,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${GC.select}`]:t.select},{[`&.${GC.select}`]:t[n.variant]},{[`&.${GC.error}`]:t.error},{[`&.${GC.multiple}`]:t.multiple}]}})({[`&.${GC.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Z1e=ue(DJ,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ae(n.variant)}`],n.open&&t.iconOpen]}})({}),eEe=ue("input",{shouldForwardProp:e=>BX(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function o6(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function tEe(e){return e==null||typeof e=="string"&&!e.trim()}const nEe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ae(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return $e(s,_J,t)},rEe=m.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:f,displayEmpty:h,error:g=!1,IconComponent:y,inputRef:x,labelId:S,MenuProps:C={},multiple:E,name:I,onBlur:M,onChange:O,onClose:D,onFocus:N,onOpen:$,open:L,readOnly:A,renderValue:F,required:z,SelectDisplayProps:H={},tabIndex:Q,type:G,value:V,variant:Y="standard",...X}=t,[te,U]=_s({controlled:V,default:u,name:"Select"}),[K,ee]=_s({controlled:L,default:c,name:"Select"}),le=m.useRef(null),ce=m.useRef(null),[se,fe]=m.useState(null),{current:we}=m.useRef(L!=null),[Oe,he]=m.useState(),me=xn(n,x),ye=m.useCallback(ht=>{ce.current=ht,ht&&fe(ht)},[]),ae=se?.parentNode;m.useImperativeHandle(me,()=>({focus:()=>{ce.current.focus()},node:le.current,value:te}),[te]),m.useEffect(()=>{c&&K&&se&&!we&&(he(a?null:ae.clientWidth),ce.current.focus())},[se,a]),m.useEffect(()=>{i&&ce.current.focus()},[i]),m.useEffect(()=>{if(!S)return;const ht=yo(ce.current).getElementById(S);if(ht){const Qt=()=>{getSelection().isCollapsed&&ce.current.focus()};return ht.addEventListener("click",Qt),()=>{ht.removeEventListener("click",Qt)}}},[S]);const Se=(ht,Qt)=>{ht?$&&$(Qt):D&&D(Qt),we||(he(a?null:ae.clientWidth),ee(ht))},Ie=ht=>{ht.button===0&&(ht.preventDefault(),ce.current.focus(),Se(!0,ht))},Re=ht=>{Se(!1,ht)},ke=m.Children.toArray(s),Te=ht=>{const Qt=ke.find(en=>en.props.value===ht.target.value);Qt!==void 0&&(U(Qt.props.value),O&&O(ht,Qt))},Ce=ht=>Qt=>{let en;if(Qt.currentTarget.hasAttribute("tabindex")){if(E){en=Array.isArray(te)?te.slice():[];const qt=te.indexOf(ht.props.value);qt===-1?en.push(ht.props.value):en.splice(qt,1)}else en=ht.props.value;if(ht.props.onClick&&ht.props.onClick(Qt),te!==en&&(U(en),O)){const qt=Qt.nativeEvent||Qt,zn=new qt.constructor(qt.type,qt);Object.defineProperty(zn,"target",{writable:!0,value:{value:en,name:I}}),O(zn,ht)}E||Se(!1,Qt)}},Ze=ht=>{A||[" ","ArrowUp","ArrowDown","Enter"].includes(ht.key)&&(ht.preventDefault(),Se(!0,ht))},Me=se!==null&&K,_e=ht=>{!Me&&M&&(Object.defineProperty(ht,"target",{writable:!0,value:{value:te,name:I}}),M(ht))};delete X["aria-invalid"];let pe,je;const Ke=[];let et=!1;(jA({value:te})||h)&&(F?pe=F(te):et=!0);const nt=ke.map(ht=>{if(!m.isValidElement(ht))return null;let Qt;if(E){if(!Array.isArray(te))throw new Error(Sp(2));Qt=te.some(en=>o6(en,ht.props.value)),Qt&&et&&Ke.push(ht.props.children)}else Qt=o6(te,ht.props.value),Qt&&et&&(je=ht.props.children);return m.cloneElement(ht,{"aria-selected":Qt?"true":"false",onClick:Ce(ht),onKeyUp:en=>{en.key===" "&&en.preventDefault(),ht.props.onKeyUp&&ht.props.onKeyUp(en)},role:"option",selected:Qt,value:void 0,"data-value":ht.props.value})});et&&(E?Ke.length===0?pe=null:pe=Ke.reduce((ht,Qt,en)=>(ht.push(Qt),en<Ke.length-1&&ht.push(", "),ht),[]):pe=je);let ot=Oe;!a&&we&&se&&(ot=ae.clientWidth);let it;typeof Q<"u"?it=Q:it=f?null:0;const tt=H.id||(I?`mui-component-select-${I}`:void 0),vt={...t,variant:Y,value:te,open:Me,error:g},Je=nEe(vt),Mt={...C.PaperProps,...C.slotProps?.paper},Gt=_n();return R.jsxs(m.Fragment,{children:[R.jsx(J1e,{as:"div",ref:ye,tabIndex:it,role:"combobox","aria-controls":Me?Gt:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":Me?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[S,tt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":z?"true":void 0,"aria-invalid":g?"true":void 0,onKeyDown:Ze,onMouseDown:f||A?null:Ie,onBlur:_e,onFocus:N,...H,ownerState:vt,className:ge(H.className,Je.select,l),id:tt,children:tEe(pe)?r6||(r6=R.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):pe}),R.jsx(eEe,{"aria-invalid":g,value:Array.isArray(te)?te.join(","):te,name:I,ref:le,"aria-hidden":!0,onChange:Te,tabIndex:-1,disabled:f,className:Je.nativeInput,autoFocus:i,required:z,...X,ownerState:vt}),R.jsx(Z1e,{as:y,className:Je.icon,ownerState:vt}),R.jsx(ec,{id:`menu-${I||""}`,anchorEl:ae,open:Me,onClose:Re,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...C,slotProps:{...C.slotProps,list:{"aria-labelledby":S,role:"listbox","aria-multiselectable":E?"true":void 0,disableListWrap:!0,id:Gt,...C.MenuListProps},paper:{...Mt,style:{minWidth:ot,...Mt!=null?Mt.style:null}}},children:nt})]})}),oEe=e=>{const{classes:t}=e,r=$e({root:["root"]},_J,t);return{...t,...r}},Yz={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ma(e)&&e!=="variant",slot:"Root"},iEe=ue(Uz,Yz)(""),aEe=ue(Kz,Yz)(""),sEe=ue(Hz,Yz)(""),Fm=m.forwardRef(function(t,n){const r=Tt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=pJ,id:f,input:h,inputProps:g,label:y,labelId:x,MenuProps:S,multiple:C=!1,native:E=!1,onClose:I,onOpen:M,open:O,renderValue:D,SelectDisplayProps:N,variant:$="outlined",...L}=r,A=E?M1e:rEe,F=ou(),z=$m({props:r,muiFormControl:F,states:["variant","error"]}),H=z.variant||$,Q={...r,variant:H,classes:a},G=oEe(Q),{root:V,...Y}=G,X=h||{standard:R.jsx(iEe,{ownerState:Q}),outlined:R.jsx(aEe,{label:y,ownerState:Q}),filled:R.jsx(sEe,{ownerState:Q})}[H],te=xn(n,_m(X));return R.jsx(m.Fragment,{children:m.cloneElement(X,{inputComponent:A,inputProps:{children:i,error:z.error,IconComponent:u,variant:H,type:void 0,multiple:C,...E?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:x,MenuProps:S,onClose:I,onOpen:M,open:O,renderValue:D,SelectDisplayProps:{id:f,...N}},...g,classes:g?da(Y,g.classes):Y,...h?h.props.inputProps:{}},...(C&&E||c)&&H==="outlined"?{notched:!0}:{},ref:te,className:ge(X.props.className,s,G.root),...!h&&{variant:H},...L})})});Fm.muiName="Select";function lEe(e){return st("MuiSkeleton",e)}ct("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const cEe=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:a}=e;return $e({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]},lEe,t)},zF=nu`
- 0% {
- opacity: 1;
- }
-
- 50% {
- opacity: 0.4;
- }
-
- 100% {
- opacity: 1;
- }
-`,VF=nu`
- 0% {
- transform: translateX(-100%);
- }
-
- 50% {
- /* +0.5s of delay between each loop */
- transform: translateX(100%);
- }
-
- 100% {
- transform: translateX(100%);
- }
-`,uEe=typeof zF!="string"?Nm`
- animation: ${zF} 2s ease-in-out 0.5s infinite;
- `:null,dEe=typeof VF!="string"?Nm`
- &::after {
- animation: ${VF} 2s linear 0.5s infinite;
- }
- `:null,fEe=ue("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(Et(({theme:e})=>{const t=rye(e.shape.borderRadius)||"px",n=oye(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Kt(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:uEe||{animation:`${zF} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
- 90deg,
- transparent,
- ${(e.vars||e).palette.action.hover},
- transparent
- )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:dEe||{"&::after":{animation:`${VF} 2s linear 0.5s infinite`}}}]}})),tA=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:s,style:l,variant:c="text",width:u,...f}=r,h={...r,animation:o,component:a,variant:c,hasChildren:!!f.children},g=cEe(h);return R.jsx(fEe,{as:a,ref:n,className:ge(g.root,i),ownerState:h,...f,style:{width:u,height:s,...l}})});function pEe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=Ni();m.useEffect(()=>{if(!o)return;function C(E){E.defaultPrevented||E.key==="Escape"&&r?.(E,"escapeKeyDown")}return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}},[o,r]);const s=ft((C,E)=>{r?.(C,E)}),l=ft(C=>{!r||C==null||a.start(C,()=>{s(null,"timeout")})});m.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=C=>{r?.(C,"clickaway")},u=a.clear,f=m.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),h=C=>E=>{const I=C.onBlur;I?.(E),f()},g=C=>E=>{const I=C.onFocus;I?.(E),u()},y=C=>E=>{const I=C.onMouseEnter;I?.(E),u()},x=C=>E=>{const I=C.onMouseLeave;I?.(E),f()};return m.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",f),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",u)}},[n,o,f,u]),{getRootProps:(C={})=>{const E={...AA(e),...AA(C)};return{role:"presentation",...C,...E,onBlur:h(E),onFocus:g(E),onMouseEnter:y(E),onMouseLeave:x(E)}},onClickAway:c}}function hEe(e){return st("MuiSnackbarContent",e)}ct("MuiSnackbarContent",["root","message","action"]);const mEe=e=>{const{classes:t}=e;return $e({root:["root"],action:["action"],message:["message"]},hEe,t)},gEe=ue(ai,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(Et(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=CX(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),yEe=ue("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),vEe=ue("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),bEe=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:s="alert",...l}=r,c=r,u=mEe(c);return R.jsxs(gEe,{role:s,square:!0,elevation:6,className:ge(u.root,i),ownerState:c,ref:n,...l,children:[R.jsx(yEe,{className:u.message,ownerState:c,children:a}),o?R.jsx(vEe,{className:u.action,ownerState:c,children:o}):null]})});function xEe(e){return st("MuiSnackbar",e)}ct("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const wEe=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Ae(n.vertical)}${Ae(n.horizontal)}`]};return $e(r,xEe,t)},SEe=ue("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Ae(n.anchorOrigin.vertical)}${Ae(n.anchorOrigin.horizontal)}`]]}})(Et(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),vT=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiSnackbar"}),o=Po(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:f,ClickAwayListenerProps:h,ContentProps:g,disableWindowBlurListener:y=!1,message:x,onBlur:S,onClose:C,onFocus:E,onMouseEnter:I,onMouseLeave:M,open:O,resumeHideDuration:D,slots:N={},slotProps:$={},TransitionComponent:L,transitionDuration:A=i,TransitionProps:{onEnter:F,onExited:z,...H}={},...Q}=r,G={...r,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:L,transitionDuration:A},V=wEe(G),{getRootProps:Y,onClickAway:X}=pEe({...G}),[te,U]=m.useState(!0),K=Se=>{U(!0),z&&z(Se)},ee=(Se,Ie)=>{U(!1),F&&F(Se,Ie)},le={slots:{transition:L,...N},slotProps:{content:g,clickAwayListener:h,transition:H,...$}},[ce,se]=Dt("root",{ref:n,className:[V.root,f],elementType:SEe,getSlotProps:Y,externalForwardedProps:{...le,...Q},ownerState:G}),[fe,{ownerState:we,...Oe}]=Dt("clickAwayListener",{elementType:bJ,externalForwardedProps:le,getSlotProps:Se=>({onClickAway:(...Ie)=>{Se.onClickAway?.(...Ie),X(...Ie)}}),ownerState:G}),[he,me]=Dt("content",{elementType:bEe,shouldForwardComponentProp:!0,externalForwardedProps:le,additionalProps:{message:x,action:a},ownerState:G}),[ye,ae]=Dt("transition",{elementType:ev,externalForwardedProps:le,getSlotProps:Se=>({onEnter:(...Ie)=>{Se.onEnter?.(...Ie),ee(...Ie)},onExited:(...Ie)=>{Se.onExited?.(...Ie),K(...Ie)}}),additionalProps:{appear:!0,in:O,timeout:A,direction:s==="top"?"down":"up"},ownerState:G});return!O&&te?null:R.jsx(fe,{...Oe,...N.clickAwayListener&&{ownerState:we},children:R.jsx(ce,{...se,children:R.jsx(ye,{...ae,children:u||R.jsx(he,{...me})})})})});function CEe(e){return st("MuiTooltip",e)}const Yo=ct("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function EEe(e){return Math.round(e*1e5)/1e5}const TEe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ae(i.split("-")[0])}`],arrow:["arrow"]};return $e(a,CEe,t)},PEe=ue(sw,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Et(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Yo.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Yo.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Yo.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Yo.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Yo.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Yo.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Yo.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Yo.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),IEe=ue("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ae(n.placement.split("-")[0])}`]]}})(Et(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Kt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Yo.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Yo.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Yo.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Yo.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${EEe(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Yo.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Yo.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Yo.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Yo.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Yo.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Yo.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Yo.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Yo.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Yo.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Yo.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),OEe=ue("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Et(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Kt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let sM=!1;const i6=new IR;let WC={x:0,y:0};function lM(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Gi=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:f=!1,disableInteractive:h=!1,disableTouchListener:g=!1,enterDelay:y=100,enterNextDelay:x=0,enterTouchDelay:S=700,followCursor:C=!1,id:E,leaveDelay:I=0,leaveTouchDelay:M=1500,onClose:O,onOpen:D,open:N,placement:$="bottom",PopperComponent:L,PopperProps:A={},slotProps:F={},slots:z={},title:H,TransitionComponent:Q,TransitionProps:G,...V}=r,Y=m.isValidElement(i)?i:R.jsx("span",{children:i}),X=Po(),te=eo(),[U,K]=m.useState(),[ee,le]=m.useState(null),ce=m.useRef(!1),se=h||C,fe=Ni(),we=Ni(),Oe=Ni(),he=Ni(),[me,ye]=_s({controlled:N,default:!1,name:"Tooltip",state:"open"});let ae=me;const Se=_n(E),Ie=m.useRef(),Re=ft(()=>{Ie.current!==void 0&&(document.body.style.WebkitUserSelect=Ie.current,Ie.current=void 0),he.clear()});m.useEffect(()=>Re,[Re]);const ke=fn=>{i6.clear(),sM=!0,ye(!0),D&&!ae&&D(fn)},Te=ft(fn=>{i6.start(800+I,()=>{sM=!1}),ye(!1),O&&ae&&O(fn),fe.start(X.transitions.duration.shortest,()=>{ce.current=!1})}),Ce=fn=>{ce.current&&fn.type!=="touchstart"||(U&&U.removeAttribute("title"),we.clear(),Oe.clear(),y||sM&&x?we.start(sM?x:y,()=>{ke(fn)}):ke(fn))},Ze=fn=>{we.clear(),Oe.start(I,()=>{Te(fn)})},[,Me]=m.useState(!1),_e=fn=>{MA(fn.target)||(Me(!1),Ze(fn))},pe=fn=>{U||K(fn.currentTarget),MA(fn.target)&&(Me(!0),Ce(fn))},je=fn=>{ce.current=!0;const Vn=Y.props;Vn.onTouchStart&&Vn.onTouchStart(fn)},Ke=fn=>{je(fn),Oe.clear(),fe.clear(),Re(),Ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",he.start(S,()=>{document.body.style.WebkitUserSelect=Ie.current,Ce(fn)})},et=fn=>{Y.props.onTouchEnd&&Y.props.onTouchEnd(fn),Re(),Oe.start(M,()=>{Te(fn)})};m.useEffect(()=>{if(!ae)return;function fn(Vn){Vn.key==="Escape"&&Te(Vn)}return document.addEventListener("keydown",fn),()=>{document.removeEventListener("keydown",fn)}},[Te,ae]);const nt=xn(_m(Y),K,n);!H&&H!==0&&(ae=!1);const ot=m.useRef(),it=fn=>{const Vn=Y.props;Vn.onMouseMove&&Vn.onMouseMove(fn),WC={x:fn.clientX,y:fn.clientY},ot.current&&ot.current.update()},tt={},vt=typeof H=="string";c?(tt.title=!ae&&vt&&!f?H:null,tt["aria-describedby"]=ae?Se:null):(tt["aria-label"]=vt?H:null,tt["aria-labelledby"]=ae&&!vt?Se:null);const Je={...tt,...V,...Y.props,className:ge(V.className,Y.props.className),onTouchStart:je,ref:nt,...C?{onMouseMove:it}:{}},Mt={};g||(Je.onTouchStart=Ke,Je.onTouchEnd=et),f||(Je.onMouseOver=lM(Ce,Je.onMouseOver),Je.onMouseLeave=lM(Ze,Je.onMouseLeave),se||(Mt.onMouseOver=Ce,Mt.onMouseLeave=Ze)),u||(Je.onFocus=lM(pe,Je.onFocus),Je.onBlur=lM(_e,Je.onBlur),se||(Mt.onFocus=pe,Mt.onBlur=_e));const Gt={...r,isRtl:te,arrow:o,disableInteractive:se,placement:$,PopperComponentProp:L,touch:ce.current},ht=typeof F.popper=="function"?F.popper(Gt):F.popper,Qt=m.useMemo(()=>{let fn=[{name:"arrow",enabled:!!ee,options:{element:ee,padding:4}}];return A.popperOptions?.modifiers&&(fn=fn.concat(A.popperOptions.modifiers)),ht?.popperOptions?.modifiers&&(fn=fn.concat(ht.popperOptions.modifiers)),{...A.popperOptions,...ht?.popperOptions,modifiers:fn}},[ee,A.popperOptions,ht?.popperOptions]),en=TEe(Gt),qt=typeof F.transition=="function"?F.transition(Gt):F.transition,zn={slots:{popper:s.Popper,transition:s.Transition??Q,tooltip:s.Tooltip,arrow:s.Arrow,...z},slotProps:{arrow:F.arrow??l.arrow,popper:{...A,...ht??l.popper},tooltip:F.tooltip??l.tooltip,transition:{...G,...qt??l.transition}}},[lr,to]=Dt("popper",{elementType:PEe,externalForwardedProps:zn,ownerState:Gt,className:ge(en.popper,A?.className)}),[xr,Yn]=Dt("transition",{elementType:ev,externalForwardedProps:zn,ownerState:Gt}),[Io,Ci]=Dt("tooltip",{elementType:IEe,className:en.tooltip,externalForwardedProps:zn,ownerState:Gt}),[si,us]=Dt("arrow",{elementType:OEe,className:en.arrow,externalForwardedProps:zn,ownerState:Gt,ref:le});return R.jsxs(m.Fragment,{children:[m.cloneElement(Y,Je),R.jsx(lr,{as:L??sw,placement:$,anchorEl:C?{getBoundingClientRect:()=>({top:WC.y,left:WC.x,right:WC.x,bottom:WC.y,width:0,height:0})}:U,popperRef:ot,open:U?ae:!1,id:Se,transition:!0,...Mt,...to,popperOptions:Qt,children:({TransitionProps:fn})=>R.jsx(xr,{timeout:X.transitions.duration.shorter,...fn,...Yn,children:R.jsxs(Io,{...Ci,children:[H,o?R.jsx(si,{...us}):null]})})})]})}),Jt=Ige({createStyledComponent:ue("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Tt({props:e,name:"MuiStack"})}),bT=m.createContext({}),$R=m.createContext({});function MEe(e){return st("MuiStep",e)}ct("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const AEe=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return $e({root:["root",n,r&&"alternativeLabel",o&&"completed"]},MEe,t)},DEe=ue("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({variants:[{props:{orientation:"horizontal"},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:"relative"}}]}),T0=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiStep"}),{active:o,children:i,className:a,component:s="div",completed:l,disabled:c,expanded:u=!1,index:f,last:h,...g}=r,{activeStep:y,connector:x,alternativeLabel:S,orientation:C,nonLinear:E}=m.useContext(bT);let[I=!1,M=!1,O=!1]=[o,l,c];y===f?I=o!==void 0?o:!0:!E&&y>f?M=l!==void 0?l:!0:!E&&y<f&&(O=c!==void 0?c:!0);const D=m.useMemo(()=>({index:f,last:h,expanded:u,icon:f+1,active:I,completed:M,disabled:O}),[f,h,u,I,M,O]),N={...r,active:I,orientation:C,alternativeLabel:S,completed:M,disabled:O,expanded:u,component:s},$=AEe(N),L=R.jsxs(DEe,{as:s,className:ge($.root,a),ref:n,ownerState:N,...g,children:[x&&S&&f!==0?x:null,i]});return R.jsx($R.Provider,{value:D,children:x&&!S&&f!==0?R.jsxs(m.Fragment,{children:[x,L]}):L})}),REe=Lt(R.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"})),kEe=Lt(R.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}));function NEe(e){return st("MuiStepIcon",e)}const m_=ct("MuiStepIcon",["root","active","completed","error","text"]);var a6;const _Ee=e=>{const{classes:t,active:n,completed:r,error:o}=e;return $e({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},NEe,t)},g_=ue(NA,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(Et(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${m_.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${m_.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${m_.error}`]:{color:(e.vars||e).palette.error.main}}))),LEe=ue("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(Et(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),$Ee=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiStepIcon"}),{active:o=!1,className:i,completed:a=!1,error:s=!1,icon:l,...c}=r,u={...r,active:o,completed:a,error:s},f=_Ee(u);if(typeof l=="number"||typeof l=="string"){const h=ge(i,f.root);return s?R.jsx(g_,{as:kEe,className:h,ref:n,ownerState:u,...c}):a?R.jsx(g_,{as:REe,className:h,ref:n,ownerState:u,...c}):R.jsxs(g_,{className:h,ref:n,ownerState:u,...c,children:[a6||(a6=R.jsx("circle",{cx:"12",cy:"12",r:"12"})),R.jsx(LEe,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]})}return l});function FEe(e){return st("MuiStepLabel",e)}const fm=ct("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),jEe=e=>{const{classes:t,orientation:n,active:r,completed:o,error:i,disabled:a,alternativeLabel:s}=e;return $e({root:["root",n,i&&"error",a&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",i&&"error",a&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",i&&"error",a&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},FEe,t)},BEe=ue("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})({display:"flex",alignItems:"center",[`&.${fm.alternativeLabel}`]:{flexDirection:"column"},[`&.${fm.disabled}`]:{cursor:"default"},variants:[{props:{orientation:"vertical"},style:{textAlign:"left",padding:"8px 0"}}]}),zEe=ue("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(Et(({theme:e})=>({...e.typography.body2,display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${fm.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${fm.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${fm.alternativeLabel}`]:{marginTop:16},[`&.${fm.error}`]:{color:(e.vars||e).palette.error.main}}))),VEe=ue("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({flexShrink:0,display:"flex",paddingRight:8,[`&.${fm.alternativeLabel}`]:{paddingRight:0}}),HEe=ue("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(Et(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${fm.alternativeLabel}`]:{textAlign:"center"}}))),xy=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiStepLabel"}),{children:o,className:i,componentsProps:a={},error:s=!1,icon:l,optional:c,slots:u={},slotProps:f={},StepIconComponent:h,StepIconProps:g,...y}=r,{alternativeLabel:x,orientation:S}=m.useContext(bT),{active:C,disabled:E,completed:I,icon:M}=m.useContext($R),O=l||M;let D=h;O&&!D&&(D=$Ee);const N={...r,active:C,alternativeLabel:x,completed:I,disabled:E,error:s,orientation:S},$=jEe(N),L={slots:u,slotProps:{stepIcon:g,...a,...f}},[A,F]=Dt("root",{elementType:BEe,externalForwardedProps:{...L,...y},ownerState:N,ref:n,className:ge($.root,i)}),[z,H]=Dt("label",{elementType:zEe,externalForwardedProps:L,ownerState:N}),[Q,G]=Dt("stepIcon",{elementType:D,externalForwardedProps:L,ownerState:N});return R.jsxs(A,{...F,children:[O||Q?R.jsx(VEe,{className:$.iconContainer,ownerState:N,children:R.jsx(Q,{completed:I,active:C,error:s,icon:O,...G})}):null,R.jsxs(HEe,{className:$.labelContainer,ownerState:N,children:[o?R.jsx(z,{...H,className:ge($.label,H?.className),children:o}):null,c]})]})});xy.muiName="StepLabel";function UEe(e){return st("MuiStepConnector",e)}ct("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const GEe=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:i,disabled:a}=e,s={root:["root",n,r&&"alternativeLabel",o&&"active",i&&"completed",a&&"disabled"],line:["line",`line${Ae(n)}`]};return $e(s,UEe,t)},WEe=ue("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({flex:"1 1 auto",variants:[{props:{orientation:"vertical"},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}}]}),qEe=ue("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${Ae(n.orientation)}`]]}})(Et(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600];return{display:"block",borderColor:e.vars?e.vars.palette.StepConnector.border:t,variants:[{props:{orientation:"horizontal"},style:{borderTopStyle:"solid",borderTopWidth:1}},{props:{orientation:"vertical"},style:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}]}})),KEe=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiStepConnector"}),{className:o,...i}=r,{alternativeLabel:a,orientation:s="horizontal"}=m.useContext(bT),{active:l,disabled:c,completed:u}=m.useContext($R),f={...r,alternativeLabel:a,orientation:s,active:l,completed:u,disabled:c},h=GEe(f);return R.jsx(WEe,{className:ge(h.root,o),ref:n,ownerState:f,...i,children:R.jsx(qEe,{className:h.line,ownerState:f})})});function YEe(e){return st("MuiStepContent",e)}ct("MuiStepContent",["root","last","transition"]);const QEe=e=>{const{classes:t,last:n}=e;return $e({root:["root",n&&"last"],transition:["transition"]},YEe,t)},XEe=ue("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.last&&t.last]}})(Et(({theme:e})=>({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:e.vars?`1px solid ${e.vars.palette.StepContent.border}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}`,variants:[{props:{last:!0},style:{borderLeft:"none"}}]}))),JEe=ue(as,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({}),P0=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiStepContent"}),{children:o,className:i,TransitionComponent:a=as,transitionDuration:s="auto",TransitionProps:l,slots:c={},slotProps:u={},...f}=r,{orientation:h}=m.useContext(bT),{active:g,last:y,expanded:x}=m.useContext($R),S={...r,last:y},C=QEe(S);let E=s;s==="auto"&&!a.muiSupportAuto&&(E=void 0);const I={slots:c,slotProps:{transition:l,...u}},[M,O]=Dt("transition",{elementType:JEe,externalForwardedProps:I,ownerState:S,className:C.transition,additionalProps:{in:g||x,timeout:E,unmountOnExit:!0}});return R.jsx(XEe,{className:ge(C.root,i),ref:n,ownerState:S,...f,children:R.jsx(M,{as:a,...O,children:o})})});function ZEe(e){return st("MuiStepper",e)}ct("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const eTe=e=>{const{orientation:t,nonLinear:n,alternativeLabel:r,classes:o}=e;return $e({root:["root",t,n&&"nonLinear",r&&"alternativeLabel"]},ZEe,o)},tTe=ue("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})({display:"flex",variants:[{props:{orientation:"horizontal"},style:{flexDirection:"row",alignItems:"center"}},{props:{orientation:"vertical"},style:{flexDirection:"column"}},{props:{alternativeLabel:!0},style:{alignItems:"flex-start"}}]}),nTe=R.jsx(KEe,{}),rTe=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:i=!1,children:a,className:s,component:l="div",connector:c=nTe,nonLinear:u=!1,orientation:f="horizontal",...h}=r,g={...r,nonLinear:u,alternativeLabel:i,orientation:f,component:l},y=eTe(g),x=m.Children.toArray(a).filter(Boolean),S=x.map((E,I)=>m.cloneElement(E,{index:I,last:I+1===x.length,...E.props})),C=m.useMemo(()=>({activeStep:o,alternativeLabel:i,connector:c,nonLinear:u,orientation:f}),[o,i,c,u,f]);return R.jsx(bT.Provider,{value:C,children:R.jsx(tTe,{as:l,ownerState:g,className:ge(y.root,s),ref:n,...h,children:S})})});function oTe(e){return st("MuiSwitch",e)}const Is=ct("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),iTe=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${Ae(n)}`,`size${Ae(r)}`],switchBase:["switchBase",`color${Ae(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$e(s,oTe,t);return{...t,...l}},aTe=ue("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Ae(n.edge)}`],t[`size${Ae(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Is.thumb}`]:{width:16,height:16},[`& .${Is.switchBase}`]:{padding:4,[`&.${Is.checked}`]:{transform:"translateX(16px)"}}}}]}),sTe=ue(vJ,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Is.input}`]:t.input},n.color!=="default"&&t[`color${Ae(n.color)}`]]}})(Et(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Is.checked}`]:{transform:"translateX(20px)"},[`&.${Is.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Is.checked} + .${Is.track}`]:{opacity:.5},[`&.${Is.disabled} + .${Is.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Is.input}`]:{left:"-100%",width:"300%"}})),Et(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Mr(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Is.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Is.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Ep(e.palette[t].main,.62):Cp(e.palette[t].main,.55)}`}},[`&.${Is.checked} + .${Is.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),lTe=ue("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(Et(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),cTe=ue("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(Et(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Wi=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l,slots:c={},slotProps:u={},...f}=r,h={...r,color:i,edge:a,size:s},g=iTe(h),y={slots:c,slotProps:u},[x,S]=Dt("root",{className:ge(g.root,o),elementType:aTe,externalForwardedProps:y,ownerState:h,additionalProps:{sx:l}}),[C,E]=Dt("thumb",{className:g.thumb,elementType:cTe,externalForwardedProps:y,ownerState:h}),I=R.jsx(C,{...E}),[M,O]=Dt("track",{className:g.track,elementType:lTe,externalForwardedProps:y,ownerState:h});return R.jsxs(x,{...S,children:[R.jsx(sTe,{type:"checkbox",icon:I,checkedIcon:I,ref:n,ownerState:h,...f,classes:{...g,root:g.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(h):u.switchBase},...u.input&&{input:typeof u.input=="function"?u.input(h):u.input}}}),R.jsx(M,{...O})]})});function uTe(e){return st("MuiTab",e)}const yc=ct("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),dTe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,c={root:["root",i&&a&&"labelIcon",`textColor${Ae(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return $e(c,uTe,t)},fTe=ue(Ls,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Ae(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${yc.iconWrapper}`]:t.iconWrapper},{[`& .${yc.icon}`]:t.icon}]}})(Et(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${yc.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${yc.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${yc.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${yc.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${yc.selected}`]:{opacity:1},[`&.${yc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${yc.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${yc.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${yc.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${yc.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),HF=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:h,onClick:g,onFocus:y,selected:x,selectionFollowsFocus:S,textColor:C="inherit",value:E,wrapped:I=!1,...M}=r,O={...r,disabled:i,disableFocusRipple:a,selected:x,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:C,wrapped:I},D=dTe(O),N=l&&f&&m.isValidElement(l)?m.cloneElement(l,{className:ge(D.icon,l.props.className)}):l,$=A=>{!x&&h&&h(A,E),g&&g(A)},L=A=>{S&&!x&&h&&h(A,E),y&&y(A)};return R.jsxs(fTe,{focusRipple:!a,className:ge(D.root,o),ref:n,role:"tab","aria-selected":x,disabled:i,onClick:$,onFocus:L,ownerState:O,tabIndex:x?0:-1,...M,children:[c==="top"||c==="start"?R.jsxs(m.Fragment,{children:[N,f]}):R.jsxs(m.Fragment,{children:[f,N]}),u]})}),LJ=m.createContext();function pTe(e){return st("MuiTable",e)}ct("MuiTable",["root","stickyHeader"]);const hTe=e=>{const{classes:t,stickyHeader:n}=e;return $e({root:["root",n&&"stickyHeader"]},pTe,t)},mTe=ue("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Et(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),s6="table",af=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiTable"}),{className:o,component:i=s6,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=r,u={...r,component:i,padding:a,size:s,stickyHeader:l},f=hTe(u),h=m.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return R.jsx(LJ.Provider,{value:h,children:R.jsx(mTe,{as:i,role:i===s6?null:"table",ref:n,className:ge(f.root,o),ownerState:u,...c})})}),FR=m.createContext();function gTe(e){return st("MuiTableBody",e)}ct("MuiTableBody",["root"]);const yTe=e=>{const{classes:t}=e;return $e({root:["root"]},gTe,t)},vTe=ue("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),bTe={variant:"body"},l6="tbody",sf=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiTableBody"}),{className:o,component:i=l6,...a}=r,s={...r,component:i},l=yTe(s);return R.jsx(FR.Provider,{value:bTe,children:R.jsx(vTe,{className:ge(l.root,o),as:i,ref:n,role:i===l6?null:"rowgroup",ownerState:s,...a})})});function xTe(e){return st("MuiTableCell",e)}const wTe=ct("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),STe=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${Ae(r)}`,o!=="normal"&&`padding${Ae(o)}`,`size${Ae(i)}`]};return $e(s,xTe,t)},CTe=ue("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Ae(n.size)}`],n.padding!=="normal"&&t[`padding${Ae(n.padding)}`],n.align!=="inherit"&&t[`align${Ae(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Et(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
- ${e.palette.mode==="light"?Ep(Kt(e.palette.divider,1),.88):Cp(Kt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${wTe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Be=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:f,...h}=r,g=m.useContext(LJ),y=m.useContext(FR),x=y&&y.variant==="head";let S;a?S=a:S=x?"th":"td";let C=l;S==="td"?C=void 0:!C&&x&&(C="col");const E=f||y&&y.variant,I={...r,align:o,component:S,padding:s||(g&&g.padding?g.padding:"normal"),size:c||(g&&g.size?g.size:"medium"),sortDirection:u,stickyHeader:E==="head"&&g&&g.stickyHeader,variant:E},M=STe(I);let O=null;return u&&(O=u==="asc"?"ascending":"descending"),R.jsx(CTe,{as:S,ref:n,className:ge(M.root,i),"aria-sort":O,scope:C,ownerState:I,...h})});function ETe(e){return st("MuiTableContainer",e)}ct("MuiTableContainer",["root"]);const TTe=e=>{const{classes:t}=e;return $e({root:["root"]},ETe,t)},PTe=ue("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),lf=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiTableContainer"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=TTe(s);return R.jsx(PTe,{ref:n,as:i,className:ge(l.root,o),ownerState:s,...a})});function ITe(e){return st("MuiTableHead",e)}ct("MuiTableHead",["root"]);const OTe=e=>{const{classes:t}=e;return $e({root:["root"]},ITe,t)},MTe=ue("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),ATe={variant:"head"},c6="thead",jm=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiTableHead"}),{className:o,component:i=c6,...a}=r,s={...r,component:i},l=OTe(s);return R.jsx(FR.Provider,{value:ATe,children:R.jsx(MTe,{as:i,className:ge(l.root,o),ref:n,role:i===c6?null:"rowgroup",ownerState:s,...a})})});function DTe(e){return st("MuiToolbar",e)}ct("MuiToolbar",["root","gutters","regular","dense"]);const RTe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return $e({root:["root",!n&&"gutters",r]},DTe,t)},kTe=ue("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Et(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),$J=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular",...l}=r,c={...r,component:i,disableGutters:a,variant:s},u=RTe(c);return R.jsx(kTe,{as:i,className:ge(u.root,o),ref:n,ownerState:c,...l})}),FJ=Lt(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),jJ=Lt(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"})),NTe=m.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,disabled:i=!1,getItemAriaLabel:a,nextIconButtonProps:s,onPageChange:l,page:c,rowsPerPage:u,showFirstButton:f,showLastButton:h,slots:g={},slotProps:y={},...x}=t,S=eo(),C=K=>{l(K,0)},E=K=>{l(K,c-1)},I=K=>{l(K,c+1)},M=K=>{l(K,Math.max(0,Math.ceil(o/u)-1))},O=g.firstButton??An,D=g.lastButton??An,N=g.nextButton??An,$=g.previousButton??An,L=g.firstButtonIcon??RJ,A=g.lastButtonIcon??kJ,F=g.nextButtonIcon??jJ,z=g.previousButtonIcon??FJ,H=S?D:O,Q=S?N:$,G=S?$:N,V=S?O:D,Y=S?y.lastButton:y.firstButton,X=S?y.nextButton:y.previousButton,te=S?y.previousButton:y.nextButton,U=S?y.firstButton:y.lastButton;return R.jsxs("div",{ref:n,...x,children:[f&&R.jsx(H,{onClick:C,disabled:i||c===0,"aria-label":a("first",c),title:a("first",c),...Y,children:S?R.jsx(A,{...y.lastButtonIcon}):R.jsx(L,{...y.firstButtonIcon})}),R.jsx(Q,{onClick:E,disabled:i||c===0,color:"inherit","aria-label":a("previous",c),title:a("previous",c),...X??r,children:S?R.jsx(F,{...y.nextButtonIcon}):R.jsx(z,{...y.previousButtonIcon})}),R.jsx(G,{onClick:I,disabled:i||(o!==-1?c>=Math.ceil(o/u)-1:!1),color:"inherit","aria-label":a("next",c),title:a("next",c),...te??s,children:S?R.jsx(z,{...y.previousButtonIcon}):R.jsx(F,{...y.nextButtonIcon})}),h&&R.jsx(V,{onClick:M,disabled:i||c>=Math.ceil(o/u)-1,"aria-label":a("last",c),title:a("last",c),...U,children:S?R.jsx(L,{...y.firstButtonIcon}):R.jsx(A,{...y.lastButtonIcon})})]})});function _Te(e){return st("MuiTablePagination",e)}const Fy=ct("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var u6;const LTe=ue(Be,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(Et(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),$Te=ue($J,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${Fy.actions}`]:t.actions,...t.toolbar})})(Et(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Fy.actions}`]:{flexShrink:0,marginLeft:20}}))),FTe=ue("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),jTe=ue("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(Et(({theme:e})=>({...e.typography.body2,flexShrink:0}))),BTe=ue(Fm,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${Fy.selectIcon}`]:t.selectIcon,[`& .${Fy.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Fy.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),zTe=ue(bn,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),VTe=ue("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(Et(({theme:e})=>({...e.typography.body2,flexShrink:0})));function HTe({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function UTe(e){return`Go to ${e} page`}const GTe=e=>{const{classes:t}=e;return $e({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},_Te,t)},BJ=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=NTe,backIconButtonProps:i,colSpan:a,component:s=Be,count:l,disabled:c=!1,getItemAriaLabel:u=UTe,labelDisplayedRows:f=HTe,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:g,onPageChange:y,onRowsPerPageChange:x,page:S,rowsPerPage:C,rowsPerPageOptions:E=[10,25,50,100],SelectProps:I={},showFirstButton:M=!1,showLastButton:O=!1,slotProps:D={},slots:N={},...$}=r,L=r,A=GTe(L),F=D?.select??I,z=F.native?"option":zTe;let H;(s===Be||s==="td")&&(H=a||1e3);const Q=_n(F.id),G=_n(F.labelId),V=()=>l===-1?(S+1)*C:C===-1?l:Math.min(l,(S+1)*C),Y={slots:N,slotProps:D},[X,te]=Dt("root",{ref:n,className:A.root,elementType:LTe,externalForwardedProps:{...Y,component:s,...$},ownerState:L,additionalProps:{colSpan:H}}),[U,K]=Dt("toolbar",{className:A.toolbar,elementType:$Te,externalForwardedProps:Y,ownerState:L}),[ee,le]=Dt("spacer",{className:A.spacer,elementType:FTe,externalForwardedProps:Y,ownerState:L}),[ce,se]=Dt("selectLabel",{className:A.selectLabel,elementType:jTe,externalForwardedProps:Y,ownerState:L,additionalProps:{id:G}}),[fe,we]=Dt("select",{className:A.select,elementType:BTe,externalForwardedProps:Y,ownerState:L}),[Oe,he]=Dt("menuItem",{className:A.menuItem,elementType:z,externalForwardedProps:Y,ownerState:L}),[me,ye]=Dt("displayedRows",{className:A.displayedRows,elementType:VTe,externalForwardedProps:Y,ownerState:L});return R.jsx(X,{...te,children:R.jsxs(U,{...K,children:[R.jsx(ee,{...le}),E.length>1&&R.jsx(ce,{...se,children:h}),E.length>1&&R.jsx(fe,{variant:"standard",...!F.variant&&{input:u6||(u6=R.jsx(gT,{}))},value:C,onChange:x,id:Q,labelId:G,...F,classes:{...F.classes,root:ge(A.input,A.selectRoot,(F.classes||{}).root),select:ge(A.select,(F.classes||{}).select),icon:ge(A.selectIcon,(F.classes||{}).icon)},disabled:c,...we,children:E.map(ae=>m.createElement(Oe,{...he,key:ae.label?ae.label:ae,value:ae.value?ae.value:ae},ae.label?ae.label:ae))}),R.jsx(me,{...ye,children:f({from:l===0?0:S*C+1,to:V(),count:l===-1?-1:l,page:S})}),R.jsx(o,{className:A.actions,backIconButtonProps:i,count:l,nextIconButtonProps:g,onPageChange:y,page:S,rowsPerPage:C,showFirstButton:M,showLastButton:O,slotProps:D.actions,slots:N.actions,getItemAriaLabel:u,disabled:c})]})})});function WTe(e){return st("MuiTableRow",e)}const d6=ct("MuiTableRow",["root","selected","hover","head","footer"]),qTe=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return $e({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},WTe,t)},KTe=ue("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Et(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${d6.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${d6.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),f6="tr",Pn=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiTableRow"}),{className:o,component:i=f6,hover:a=!1,selected:s=!1,...l}=r,c=m.useContext(FR),u={...r,component:i,hover:a,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},f=qTe(u);return R.jsx(KTe,{as:i,ref:n,className:ge(f.root,o),role:i===f6?null:"row",ownerState:u,...l})});function YTe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function QTe(e,t,n,r={},o=()=>{}){const{ease:i=YTe,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=h=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=h);const g=Math.min(1,(h-s)/a);if(t[e]=i(g)*(n-l)+l,g>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const XTe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function JTe(e){const{onChange:t,...n}=e,r=m.useRef(),o=m.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return qn(()=>{const a=Sv(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=ql(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),m.useEffect(()=>{i(),t(r.current)},[t]),R.jsx("div",{style:XTe,...n,ref:o})}function ZTe(e){return st("MuiTabScrollButton",e)}const ePe=ct("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),tPe=e=>{const{classes:t,orientation:n,disabled:r}=e;return $e({root:["root",n,r&&"disabled"]},ZTe,t)},nPe=ue(Ls,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${ePe.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),rPe=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiTabScrollButton"}),{className:o,slots:i={},slotProps:a={},direction:s,orientation:l,disabled:c,...u}=r,f=eo(),h={isRtl:f,...r},g=tPe(h),y=i.StartScrollButtonIcon??FJ,x=i.EndScrollButtonIcon??jJ,S=nr({elementType:y,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),C=nr({elementType:x,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return R.jsx(nPe,{component:"div",className:ge(g.root,o),ref:n,role:null,ownerState:h,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:s==="left"?R.jsx(y,{...S}):R.jsx(x,{...C})})});function oPe(e){return st("MuiTabs",e)}const nA=ct("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),p6=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,h6=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,cM=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},iPe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return $e({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},oPe,l)},aPe=ue("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nA.scrollButtons}`]:t.scrollButtons},{[`& .${nA.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Et(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${nA.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),sPe=ue("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),lPe=ue("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),cPe=ue("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Et(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),uPe=ue(JTe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),m6={},zJ=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiTabs"}),o=Po(),i=eo(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:h="div",allowScrollButtonsMobile:g=!1,indicatorColor:y="primary",onChange:x,orientation:S="horizontal",ScrollButtonComponent:C,scrollButtons:E="auto",selectionFollowsFocus:I,slots:M={},slotProps:O={},TabIndicatorProps:D={},TabScrollButtonProps:N={},textColor:$="primary",value:L,variant:A="standard",visibleScrollbar:F=!1,...z}=r,H=A==="scrollable",Q=S==="vertical",G=Q?"scrollTop":"scrollLeft",V=Q?"top":"left",Y=Q?"bottom":"right",X=Q?"clientHeight":"clientWidth",te=Q?"height":"width",U={...r,component:h,allowScrollButtonsMobile:g,indicatorColor:y,orientation:S,vertical:Q,scrollButtons:E,textColor:$,variant:A,visibleScrollbar:F,fixed:!H,hideScrollbar:H&&!F,scrollableX:H&&!Q,scrollableY:H&&Q,centered:c&&!H,scrollButtonsHideMobile:!g},K=iPe(U),ee=nr({elementType:M.StartScrollButtonIcon,externalSlotProps:O.startScrollButtonIcon,ownerState:U}),le=nr({elementType:M.EndScrollButtonIcon,externalSlotProps:O.endScrollButtonIcon,ownerState:U}),[ce,se]=m.useState(!1),[fe,we]=m.useState(m6),[Oe,he]=m.useState(!1),[me,ye]=m.useState(!1),[ae,Se]=m.useState(!1),[Ie,Re]=m.useState({overflow:"hidden",scrollbarWidth:0}),ke=new Map,Te=m.useRef(null),Ce=m.useRef(null),Ze={slots:M,slotProps:{indicator:D,scrollButton:N,...O}},Me=()=>{const $t=Te.current;let Yt;if($t){const pn=$t.getBoundingClientRect();Yt={clientWidth:$t.clientWidth,scrollLeft:$t.scrollLeft,scrollTop:$t.scrollTop,scrollWidth:$t.scrollWidth,top:pn.top,bottom:pn.bottom,left:pn.left,right:pn.right}}let ln;if($t&&L!==!1){const pn=Ce.current.children;if(pn.length>0){const cr=pn[ke.get(L)];ln=cr?cr.getBoundingClientRect():null}}return{tabsMeta:Yt,tabMeta:ln}},_e=ft(()=>{const{tabsMeta:$t,tabMeta:Yt}=Me();let ln=0,pn;Q?(pn="top",Yt&&$t&&(ln=Yt.top-$t.top+$t.scrollTop)):(pn=i?"right":"left",Yt&&$t&&(ln=(i?-1:1)*(Yt[pn]-$t[pn]+$t.scrollLeft)));const cr={[pn]:ln,[te]:Yt?Yt[te]:0};if(typeof fe[pn]!="number"||typeof fe[te]!="number")we(cr);else{const Ei=Math.abs(fe[pn]-cr[pn]),ds=Math.abs(fe[te]-cr[te]);(Ei>=1||ds>=1)&&we(cr)}}),pe=($t,{animation:Yt=!0}={})=>{Yt?QTe(G,Te.current,$t,{duration:o.transitions.duration.standard}):Te.current[G]=$t},je=$t=>{let Yt=Te.current[G];Q?Yt+=$t:Yt+=$t*(i?-1:1),pe(Yt)},Ke=()=>{const $t=Te.current[X];let Yt=0;const ln=Array.from(Ce.current.children);for(let pn=0;pn<ln.length;pn+=1){const cr=ln[pn];if(Yt+cr[X]>$t){pn===0&&(Yt=$t);break}Yt+=cr[X]}return Yt},et=()=>{je(-1*Ke())},nt=()=>{je(Ke())},[ot,{onChange:it,...tt}]=Dt("scrollbar",{className:ge(K.scrollableX,K.hideScrollbar),elementType:uPe,shouldForwardComponentProp:!0,externalForwardedProps:Ze,ownerState:U}),vt=m.useCallback($t=>{it?.($t),Re({overflow:null,scrollbarWidth:$t})},[it]),[Je,Mt]=Dt("scrollButtons",{className:ge(K.scrollButtons,N.className),elementType:rPe,externalForwardedProps:Ze,ownerState:U,additionalProps:{orientation:S,slots:{StartScrollButtonIcon:M.startScrollButtonIcon||M.StartScrollButtonIcon,EndScrollButtonIcon:M.endScrollButtonIcon||M.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:ee,endScrollButtonIcon:le}}}),Gt=()=>{const $t={};$t.scrollbarSizeListener=H?R.jsx(ot,{...tt,onChange:vt}):null;const ln=H&&(E==="auto"&&(Oe||me)||E===!0);return $t.scrollButtonStart=ln?R.jsx(Je,{direction:i?"right":"left",onClick:et,disabled:!Oe,...Mt}):null,$t.scrollButtonEnd=ln?R.jsx(Je,{direction:i?"left":"right",onClick:nt,disabled:!me,...Mt}):null,$t},ht=ft($t=>{const{tabsMeta:Yt,tabMeta:ln}=Me();if(!(!ln||!Yt)){if(ln[V]<Yt[V]){const pn=Yt[G]+(ln[V]-Yt[V]);pe(pn,{animation:$t})}else if(ln[Y]>Yt[Y]){const pn=Yt[G]+(ln[Y]-Yt[Y]);pe(pn,{animation:$t})}}}),Qt=ft(()=>{H&&E!==!1&&Se(!ae)});m.useEffect(()=>{const $t=Sv(()=>{Te.current&&_e()});let Yt;const ln=Ei=>{Ei.forEach(ds=>{ds.removedNodes.forEach(Fs=>{Yt?.unobserve(Fs)}),ds.addedNodes.forEach(Fs=>{Yt?.observe(Fs)})}),$t(),Qt()},pn=ql(Te.current);pn.addEventListener("resize",$t);let cr;return typeof ResizeObserver<"u"&&(Yt=new ResizeObserver($t),Array.from(Ce.current.children).forEach(Ei=>{Yt.observe(Ei)})),typeof MutationObserver<"u"&&(cr=new MutationObserver(ln),cr.observe(Ce.current,{childList:!0})),()=>{$t.clear(),pn.removeEventListener("resize",$t),cr?.disconnect(),Yt?.disconnect()}},[_e,Qt]),m.useEffect(()=>{const $t=Array.from(Ce.current.children),Yt=$t.length;if(typeof IntersectionObserver<"u"&&Yt>0&&H&&E!==!1){const ln=$t[0],pn=$t[Yt-1],cr={root:Te.current,threshold:.99},Ei=Zi=>{he(!Zi[0].isIntersecting)},ds=new IntersectionObserver(Ei,cr);ds.observe(ln);const Fs=Zi=>{ye(!Zi[0].isIntersecting)},cd=new IntersectionObserver(Fs,cr);return cd.observe(pn),()=>{ds.disconnect(),cd.disconnect()}}},[H,E,ae,u?.length]),m.useEffect(()=>{se(!0)},[]),m.useEffect(()=>{_e()}),m.useEffect(()=>{ht(m6!==fe)},[ht,fe]),m.useImperativeHandle(l,()=>({updateIndicator:_e,updateScrollButtons:Qt}),[_e,Qt]);const[en,qt]=Dt("indicator",{className:ge(K.indicator,D.className),elementType:cPe,externalForwardedProps:Ze,ownerState:U,additionalProps:{style:fe}}),zn=R.jsx(en,{...qt});let lr=0;const to=m.Children.map(u,$t=>{if(!m.isValidElement($t))return null;const Yt=$t.props.value===void 0?lr:$t.props.value;ke.set(Yt,lr);const ln=Yt===L;return lr+=1,m.cloneElement($t,{fullWidth:A==="fullWidth",indicator:ln&&!ce&&zn,selected:ln,selectionFollowsFocus:I,onChange:x,textColor:$,value:Yt,...lr===1&&L===!1&&!$t.props.tabIndex?{tabIndex:0}:{}})}),xr=$t=>{if($t.altKey||$t.shiftKey||$t.ctrlKey||$t.metaKey)return;const Yt=Ce.current,ln=yo(Yt).activeElement;if(ln.getAttribute("role")!=="tab")return;let cr=S==="horizontal"?"ArrowLeft":"ArrowUp",Ei=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&i&&(cr="ArrowRight",Ei="ArrowLeft"),$t.key){case cr:$t.preventDefault(),cM(Yt,ln,h6);break;case Ei:$t.preventDefault(),cM(Yt,ln,p6);break;case"Home":$t.preventDefault(),cM(Yt,null,p6);break;case"End":$t.preventDefault(),cM(Yt,null,h6);break}},Yn=Gt(),[Io,Ci]=Dt("root",{ref:n,className:ge(K.root,f),elementType:aPe,externalForwardedProps:{...Ze,...z,component:h},ownerState:U}),[si,us]=Dt("scroller",{ref:Te,className:K.scroller,elementType:sPe,externalForwardedProps:Ze,ownerState:U,additionalProps:{style:{overflow:Ie.overflow,[Q?`margin${i?"Left":"Right"}`:"marginBottom"]:F?void 0:-Ie.scrollbarWidth}}}),[fn,Vn]=Dt("list",{ref:Ce,className:ge(K.list,K.flexContainer),elementType:lPe,externalForwardedProps:Ze,ownerState:U,getSlotProps:$t=>({...$t,onKeyDown:Yt=>{xr(Yt),$t.onKeyDown?.(Yt)}})});return R.jsxs(Io,{...Ci,children:[Yn.scrollButtonStart,Yn.scrollbarSizeListener,R.jsxs(si,{...us,children:[R.jsx(fn,{"aria-label":a,"aria-labelledby":s,"aria-orientation":S==="vertical"?"vertical":null,role:"tablist",...Vn,children:to}),ce&&zn]}),Yn.scrollButtonEnd]})});function dPe(e){return st("MuiTextField",e)}ct("MuiTextField",["root"]);const fPe={standard:Uz,filled:Hz,outlined:Kz},pPe=e=>{const{classes:t}=e;return $e({root:["root"]},dPe,t)},hPe=ue(Tv,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),On=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:y,id:x,InputLabelProps:S,inputProps:C,InputProps:E,inputRef:I,label:M,maxRows:O,minRows:D,multiline:N=!1,name:$,onBlur:L,onChange:A,onFocus:F,placeholder:z,required:H=!1,rows:Q,select:G=!1,SelectProps:V,slots:Y={},slotProps:X={},type:te,value:U,variant:K="outlined",...ee}=r,le={...r,autoFocus:i,color:l,disabled:u,error:f,fullWidth:g,multiline:N,required:H,select:G,variant:K},ce=pPe(le),se=_n(x),fe=y&&se?`${se}-helper-text`:void 0,we=M&&se?`${se}-label`:void 0,Oe=fPe[K],he={slots:Y,slotProps:{input:E,inputLabel:S,htmlInput:C,formHelperText:h,select:V,...X}},me={},ye=he.slotProps.inputLabel;K==="outlined"&&(ye&&typeof ye.shrink<"u"&&(me.notched=ye.shrink),me.label=M),G&&((!V||!V.native)&&(me.id=void 0),me["aria-describedby"]=void 0);const[ae,Se]=Dt("root",{elementType:hPe,shouldForwardComponentProp:!0,externalForwardedProps:{...he,...ee},ownerState:le,className:ge(ce.root,s),ref:n,additionalProps:{disabled:u,error:f,fullWidth:g,required:H,color:l,variant:K}}),[Ie,Re]=Dt("input",{elementType:Oe,externalForwardedProps:he,additionalProps:me,ownerState:le}),[ke,Te]=Dt("inputLabel",{elementType:Pv,externalForwardedProps:he,ownerState:le}),[Ce,Ze]=Dt("htmlInput",{elementType:"input",externalForwardedProps:he,ownerState:le}),[Me,_e]=Dt("formHelperText",{elementType:yT,externalForwardedProps:he,ownerState:le}),[pe,je]=Dt("select",{elementType:Fm,externalForwardedProps:he,ownerState:le}),Ke=R.jsx(Ie,{"aria-describedby":fe,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:g,multiline:N,name:$,rows:Q,maxRows:O,minRows:D,type:te,value:U,id:se,inputRef:I,onBlur:L,onChange:A,onFocus:F,placeholder:z,inputProps:Ze,slots:{input:Y.htmlInput?Ce:void 0},...Re});return R.jsxs(ae,{...Se,children:[M!=null&&M!==""&&R.jsx(ke,{htmlFor:se,id:we,...Te,children:M}),G?R.jsx(pe,{"aria-describedby":fe,id:se,labelId:we,value:U,input:Ke,...je,children:a}):Ke,y&&R.jsx(Me,{id:fe,..._e,children:y})]})});function mPe(e){return st("MuiToggleButton",e)}const My=ct("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),VJ=m.createContext({}),HJ=m.createContext(void 0);function gPe(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}const yPe=e=>{const{classes:t,fullWidth:n,selected:r,disabled:o,size:i,color:a}=e,s={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth",`size${Ae(i)}`,a]};return $e(s,mPe,t)},vPe=ue(Ls,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${Ae(n.size)}`]]}})(Et(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${My.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${My.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Kt(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(Mr()).map(([t])=>({props:{color:t},style:{[`&.${My.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Kt(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette[t].main,e.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),qC=m.forwardRef(function(t,n){const{value:r,...o}=m.useContext(VJ),i=m.useContext(HJ),a=Yy({...o,selected:gPe(t.value,r)},t),s=Tt({props:a,name:"MuiToggleButton"}),{children:l,className:c,color:u="standard",disabled:f=!1,disableFocusRipple:h=!1,fullWidth:g=!1,onChange:y,onClick:x,selected:S,size:C="medium",value:E,...I}=s,M={...s,color:u,disabled:f,disableFocusRipple:h,fullWidth:g,size:C},O=yPe(M),D=$=>{x&&(x($,E),$.defaultPrevented)||y&&y($,E)},N=i||"";return R.jsx(vPe,{className:ge(o.className,O.root,c,N),disabled:f,focusRipple:!h,ref:n,onClick:D,onChange:y,value:E,ownerState:M,"aria-pressed":S,...I,children:l})});function bPe(e){return st("MuiToggleButtonGroup",e)}const Ao=ct("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),xPe=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:o}=e,i={root:["root",n,r&&"fullWidth"],grouped:["grouped",`grouped${Ae(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return $e(i,bPe,t)},wPe=ue("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ao.grouped}`]:t.grouped},{[`& .${Ao.grouped}`]:t[`grouped${Ae(n.orientation)}`]},{[`& .${Ao.firstButton}`]:t.firstButton},{[`& .${Ao.lastButton}`]:t.lastButton},{[`& .${Ao.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(Et(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Ao.grouped}`]:{[`&.${Ao.selected} + .${Ao.grouped}.${Ao.selected}`]:{borderTop:0,marginTop:0}},[`& .${Ao.firstButton},& .${Ao.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Ao.lastButton},& .${Ao.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${Ao.lastButton}.${My.disabled},& .${Ao.middleButton}.${My.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${Ao.grouped}`]:{[`&.${Ao.selected} + .${Ao.grouped}.${Ao.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${Ao.firstButton},& .${Ao.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Ao.lastButton},& .${Ao.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${Ao.lastButton}.${My.disabled},& .${Ao.middleButton}.${My.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),SPe=m.forwardRef(function(t,n){const r=Tt({props:t,name:"MuiToggleButtonGroup"}),{children:o,className:i,color:a="standard",disabled:s=!1,exclusive:l=!1,fullWidth:c=!1,onChange:u,orientation:f="horizontal",size:h="medium",value:g,...y}=r,x={...r,disabled:s,fullWidth:c,orientation:f,size:h},S=xPe(x),C=m.useCallback((N,$)=>{if(!u)return;const L=g&&g.indexOf($);let A;g&&L>=0?(A=g.slice(),A.splice(L,1)):A=g?g.concat($):[$],u(N,A)},[u,g]),E=m.useCallback((N,$)=>{u&&u(N,g===$?null:$)},[u,g]),I=m.useMemo(()=>({className:S.grouped,onChange:l?E:C,value:g,size:h,fullWidth:c,color:a,disabled:s}),[S.grouped,l,E,C,g,h,c,a,s]),M=TX(o),O=M.length,D=N=>{const $=N===0,L=N===O-1;return $&&L?"":$?S.firstButton:L?S.lastButton:S.middleButton};return R.jsx(wPe,{role:"group",className:ge(S.root,i),ref:n,ownerState:x,...y,children:R.jsx(VJ.Provider,{value:I,children:M.map((N,$)=>R.jsx(HJ.Provider,{value:D($),children:N},$))})})}),Em=wX({themeId:jc}),CPe=(e,t,n,r)=>{const o=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);jy(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},g6={},UF=(e,t,n,r)=>{jy(n)&&g6[n]||(jy(n)&&(g6[n]=new Date),CPe(e,t,n,r))},UJ=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},GF=(e,t,n)=>{e.loadNamespaces(t,UJ(e,n))},y6=(e,t,n,r)=>{if(jy(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return GF(e,n,r);n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,UJ(e,r))},EPe=(e,t,n={})=>!t.languages||!t.languages.length?(UF(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,e))return!1}}),jy=e=>typeof e=="string",TPe=e=>typeof e=="object"&&e!==null,PPe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,IPe={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},OPe=e=>IPe[e],MPe=e=>e.replace(PPe,OPe);let WF={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:MPe};const APe=(e={})=>{WF={...WF,...e}},DPe=()=>WF;let GJ;const RPe=e=>{GJ=e},kPe=()=>GJ,NPe={type:"3rdParty",init(e){APe(e.options.react),RPe(e)}},_Pe=m.createContext();class LPe{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const $Pe=(e,t)=>{const n=m.useRef();return m.useEffect(()=>{n.current=e},[e,t]),n.current},WJ=(e,t,n,r)=>e.getFixedT(t,n,r),FPe=(e,t,n,r)=>m.useCallback(WJ(e,t,n,r),[e,t,n,r]),We=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=m.useContext(_Pe)||{},i=n||r||kPe();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new LPe),!i){UF(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const M=(D,N)=>jy(N)?N:TPe(N)&&jy(N.defaultValue)?N.defaultValue:Array.isArray(D)?D[D.length-1]:D,O=[M,{},!1];return O.t=M,O.i18n={},O.ready=!1,O}i.options.react?.wait&&UF(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...DPe(),...i.options.react,...t},{useSuspense:s,keyPrefix:l}=a;let c=o||i.options?.defaultNS;c=jy(c)?[c]:c||["translation"],i.reportNamespaces.addUsedNamespaces?.(c);const u=(i.isInitialized||i.initializedStoreOnce)&&c.every(M=>EPe(M,i,a)),f=FPe(i,t.lng||null,a.nsMode==="fallback"?c:c[0],l),h=()=>f,g=()=>WJ(i,t.lng||null,a.nsMode==="fallback"?c:c[0],l),[y,x]=m.useState(h);let S=c.join();t.lng&&(S=`${t.lng}${S}`);const C=$Pe(S),E=m.useRef(!0);m.useEffect(()=>{const{bindI18n:M,bindI18nStore:O}=a;E.current=!0,!u&&!s&&(t.lng?y6(i,t.lng,c,()=>{E.current&&x(g)}):GF(i,c,()=>{E.current&&x(g)})),u&&C&&C!==S&&E.current&&x(g);const D=()=>{E.current&&x(g)};return M&&i?.on(M,D),O&&i?.store.on(O,D),()=>{E.current=!1,i&&M&&M?.split(" ").forEach(N=>i.off(N,D)),O&&i&&O.split(" ").forEach(N=>i.store.off(N,D))}},[i,S]),m.useEffect(()=>{E.current&&u&&x(h)},[i,l,u]);const I=[y,i,u];if(I.t=y,I.i18n=i,I.ready=u,u||!u&&!s)return I;throw new Promise(M=>{t.lng?y6(i,t.lng,c,()=>M()):GF(i,c,()=>M())})},zl=()=>{const[e]=We();return w(mn,{sx:{textAlign:"center"},children:e("loading")})},lo=()=>w(mn,{sx:{height:200,alignItems:"center",mt:2},component:Jt,direction:"column",justifyContent:"center",children:w(pT,{})}),tv=()=>w(pT,{size:20}),H1=Lt(R.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),hp=Lt(R.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),xT=Lt(R.jsx("path",{d:"M9 4v1.38c-.83-.33-1.72-.5-2.61-.5-1.79 0-3.58.68-4.95 2.05l3.33 3.33h1.11v1.11c.86.86 1.98 1.31 3.11 1.36V15H6v3c0 1.1.9 2 2 2h10c1.66 0 3-1.34 3-3V4zm-1.11 6.41V8.26H5.61L4.57 7.22a5.07 5.07 0 0 1 1.82-.34c1.34 0 2.59.52 3.54 1.46l1.41 1.41-.2.2c-.51.51-1.19.8-1.92.8-.47 0-.93-.12-1.33-.34M19 17c0 .55-.45 1-1 1s-1-.45-1-1v-2h-6v-2.59c.57-.23 1.1-.57 1.56-1.03l.2-.2L15.59 14H17v-1.41l-6-5.97V6h8z"})),Bp=Lt(R.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"})),wT=Lt(R.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),ga=({title:e,subtitle:t,isOpen:n,closeFn:r,children:o})=>w(lw,{open:n,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:J(oi,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:2,minWidth:"400px"},children:[w(rd,{title:e,subheader:t,action:w(wT,{onClick:r})}),w(ss,{children:o}),w(iu,{})]})}),Iv=e=>{const[t]=We(),n=e.height?e.height:"50vh";return w(_t,{children:J(mn,{sx:{height:n,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center"},children:[w(wt,{variant:"h6",mr:3,children:t("nothingHereYet")}),w(wt,{mr:3,children:t("nothingHereYetAction")})]})})},Qz=e=>{const[t]=We(),[n,r]=qe.useState(!1),o=()=>r(!0),i=()=>r(!1),a=e.link!==void 0?w(St,{size:"small",variant:"contained",href:e.link,children:t("add")}):w(St,{size:"small",variant:"contained",onClick:o,children:t("add")});return J(_t,{children:[J(oi,{children:[w(rd,{title:e.title,subheader:".",sx:{paddingBottom:0}}),w(ss,{sx:{paddingTop:0,height:"500px"},children:w(Iv,{})}),w(iu,{children:a})]}),w(ga,{title:t("add"),isOpen:n,closeFn:i,children:e.modalContent})]})};function qJ(e,t){return function(){return e.apply(t,arguments)}}const{toString:jPe}=Object.prototype,{getPrototypeOf:Xz}=Object,{iterator:jR,toStringTag:KJ}=Symbol,BR=(e=>t=>{const n=jPe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),od=e=>(e=e.toLowerCase(),t=>BR(t)===e),zR=e=>t=>typeof t===e,{isArray:cw}=Array,Ex=zR("undefined");function ST(e){return e!==null&&!Ex(e)&&e.constructor!==null&&!Ex(e.constructor)&&dl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const YJ=od("ArrayBuffer");function BPe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&YJ(e.buffer),t}const zPe=zR("string"),dl=zR("function"),QJ=zR("number"),CT=e=>e!==null&&typeof e=="object",VPe=e=>e===!0||e===!1,rA=e=>{if(BR(e)!=="object")return!1;const t=Xz(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(KJ in e)&&!(jR in e)},HPe=e=>{if(!CT(e)||ST(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},UPe=od("Date"),GPe=od("File"),WPe=od("Blob"),qPe=od("FileList"),KPe=e=>CT(e)&&dl(e.pipe),YPe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||dl(e.append)&&((t=BR(e))==="formdata"||t==="object"&&dl(e.toString)&&e.toString()==="[object FormData]"))},QPe=od("URLSearchParams"),[XPe,JPe,ZPe,eIe]=["ReadableStream","Request","Response","Headers"].map(od),tIe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ET(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),cw(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ST(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(r=0;r<a;r++)s=i[r],t.call(null,e[s],s,e)}}function XJ(e,t){if(ST(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Ay=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,JJ=e=>!Ex(e)&&e!==Ay;function qF(){const{caseless:e,skipUndefined:t}=JJ(this)&&this||{},n={},r=(o,i)=>{const a=e&&XJ(n,i)||i;rA(n[a])&&rA(o)?n[a]=qF(n[a],o):rA(o)?n[a]=qF({},o):cw(o)?n[a]=o.slice():(!t||!Ex(o))&&(n[a]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&ET(arguments[o],r);return n}const nIe=(e,t,n,{allOwnKeys:r}={})=>(ET(t,(o,i)=>{n&&dl(o)?e[i]=qJ(o,n):e[i]=o},{allOwnKeys:r}),e),rIe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),oIe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},iIe=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Xz(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},aIe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},sIe=e=>{if(!e)return null;if(cw(e))return e;let t=e.length;if(!QJ(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},lIe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Xz(Uint8Array)),cIe=(e,t)=>{const r=(e&&e[jR]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},uIe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},dIe=od("HTMLFormElement"),fIe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),v6=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),pIe=od("RegExp"),ZJ=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ET(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},hIe=e=>{ZJ(e,(t,n)=>{if(dl(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(dl(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},mIe=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return cw(e)?r(e):r(String(e).split(t)),n},gIe=()=>{},yIe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function vIe(e){return!!(e&&dl(e.append)&&e[KJ]==="FormData"&&e[jR])}const bIe=e=>{const t=new Array(10),n=(r,o)=>{if(CT(r)){if(t.indexOf(r)>=0)return;if(ST(r))return r;if(!("toJSON"in r)){t[o]=r;const i=cw(r)?[]:{};return ET(r,(a,s)=>{const l=n(a,o+1);!Ex(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},xIe=od("AsyncFunction"),wIe=e=>e&&(CT(e)||dl(e))&&dl(e.then)&&dl(e.catch),eZ=((e,t)=>e?setImmediate:t?((n,r)=>(Ay.addEventListener("message",({source:o,data:i})=>{o===Ay&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ay.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",dl(Ay.postMessage)),SIe=typeof queueMicrotask<"u"?queueMicrotask.bind(Ay):typeof process<"u"&&process.nextTick||eZ,CIe=e=>e!=null&&dl(e[jR]),Xe={isArray:cw,isArrayBuffer:YJ,isBuffer:ST,isFormData:YPe,isArrayBufferView:BPe,isString:zPe,isNumber:QJ,isBoolean:VPe,isObject:CT,isPlainObject:rA,isEmptyObject:HPe,isReadableStream:XPe,isRequest:JPe,isResponse:ZPe,isHeaders:eIe,isUndefined:Ex,isDate:UPe,isFile:GPe,isBlob:WPe,isRegExp:pIe,isFunction:dl,isStream:KPe,isURLSearchParams:QPe,isTypedArray:lIe,isFileList:qPe,forEach:ET,merge:qF,extend:nIe,trim:tIe,stripBOM:rIe,inherits:oIe,toFlatObject:iIe,kindOf:BR,kindOfTest:od,endsWith:aIe,toArray:sIe,forEachEntry:cIe,matchAll:uIe,isHTMLForm:dIe,hasOwnProperty:v6,hasOwnProp:v6,reduceDescriptors:ZJ,freezeMethods:hIe,toObjectSet:mIe,toCamelCase:fIe,noop:gIe,toFiniteNumber:yIe,findKey:XJ,global:Ay,isContextDefined:JJ,isSpecCompliantForm:vIe,toJSONObject:bIe,isAsyncFn:xIe,isThenable:wIe,setImmediate:eZ,asap:SIe,isIterable:CIe};function Fn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Xe.inherits(Fn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Xe.toJSONObject(this.config),code:this.code,status:this.status}}});const tZ=Fn.prototype,nZ={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{nZ[e]={value:e}});Object.defineProperties(Fn,nZ);Object.defineProperty(tZ,"isAxiosError",{value:!0});Fn.from=(e,t,n,r,o,i)=>{const a=Object.create(tZ);Xe.toFlatObject(e,a,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const s=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return Fn.call(a,s,l,n,r,o),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};const EIe=null;function KF(e){return Xe.isPlainObject(e)||Xe.isArray(e)}function rZ(e){return Xe.endsWith(e,"[]")?e.slice(0,-2):e}function b6(e,t,n){return e?e.concat(t).map(function(o,i){return o=rZ(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function TIe(e){return Xe.isArray(e)&&!e.some(KF)}const PIe=Xe.toFlatObject(Xe,{},null,function(t){return/^is[A-Z]/.test(t)});function VR(e,t,n){if(!Xe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Xe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,S){return!Xe.isUndefined(S[x])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Xe.isSpecCompliantForm(t);if(!Xe.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(Xe.isDate(y))return y.toISOString();if(Xe.isBoolean(y))return y.toString();if(!l&&Xe.isBlob(y))throw new Fn("Blob is not supported. Use a Buffer instead.");return Xe.isArrayBuffer(y)||Xe.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,x,S){let C=y;if(y&&!S&&typeof y=="object"){if(Xe.endsWith(x,"{}"))x=r?x:x.slice(0,-2),y=JSON.stringify(y);else if(Xe.isArray(y)&&TIe(y)||(Xe.isFileList(y)||Xe.endsWith(x,"[]"))&&(C=Xe.toArray(y)))return x=rZ(x),C.forEach(function(I,M){!(Xe.isUndefined(I)||I===null)&&t.append(a===!0?b6([x],M,i):a===null?x:x+"[]",c(I))}),!1}return KF(y)?!0:(t.append(b6(S,x,i),c(y)),!1)}const f=[],h=Object.assign(PIe,{defaultVisitor:u,convertValue:c,isVisitable:KF});function g(y,x){if(!Xe.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(y),Xe.forEach(y,function(C,E){(!(Xe.isUndefined(C)||C===null)&&o.call(t,C,Xe.isString(E)?E.trim():E,x,h))===!0&&g(C,x?x.concat(E):[E])}),f.pop()}}if(!Xe.isObject(e))throw new TypeError("data must be an object");return g(e),t}function x6(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Jz(e,t){this._pairs=[],e&&VR(e,this,t)}const oZ=Jz.prototype;oZ.append=function(t,n){this._pairs.push([t,n])};oZ.toString=function(t){const n=t?function(r){return t.call(this,r,x6)}:x6;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function IIe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function iZ(e,t,n){if(!t)return e;const r=n&&n.encode||IIe;Xe.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=Xe.isURLSearchParams(t)?t.toString():new Jz(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class w6{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Xe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const aZ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},OIe=typeof URLSearchParams<"u"?URLSearchParams:Jz,MIe=typeof FormData<"u"?FormData:null,AIe=typeof Blob<"u"?Blob:null,DIe={isBrowser:!0,classes:{URLSearchParams:OIe,FormData:MIe,Blob:AIe},protocols:["http","https","file","blob","url","data"]},Zz=typeof window<"u"&&typeof document<"u",YF=typeof navigator=="object"&&navigator||void 0,RIe=Zz&&(!YF||["ReactNative","NativeScript","NS"].indexOf(YF.product)<0),kIe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",NIe=Zz&&window.location.href||"http://localhost",_Ie=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zz,hasStandardBrowserEnv:RIe,hasStandardBrowserWebWorkerEnv:kIe,navigator:YF,origin:NIe},Symbol.toStringTag,{value:"Module"})),rs={..._Ie,...DIe};function LIe(e,t){return VR(e,new rs.classes.URLSearchParams,{visitor:function(n,r,o,i){return rs.isNode&&Xe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function $Ie(e){return Xe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function FIe(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function sZ(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=n.length;return a=!a&&Xe.isArray(o)?o.length:a,l?(Xe.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!Xe.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Xe.isArray(o[a])&&(o[a]=FIe(o[a])),!s)}if(Xe.isFormData(e)&&Xe.isFunction(e.entries)){const n={};return Xe.forEachEntry(e,(r,o)=>{t($Ie(r),o,n,0)}),n}return null}function jIe(e,t,n){if(Xe.isString(e))try{return(t||JSON.parse)(e),Xe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const TT={transitional:aZ,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Xe.isObject(t);if(i&&Xe.isHTMLForm(t)&&(t=new FormData(t)),Xe.isFormData(t))return o?JSON.stringify(sZ(t)):t;if(Xe.isArrayBuffer(t)||Xe.isBuffer(t)||Xe.isStream(t)||Xe.isFile(t)||Xe.isBlob(t)||Xe.isReadableStream(t))return t;if(Xe.isArrayBufferView(t))return t.buffer;if(Xe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return LIe(t,this.formSerializer).toString();if((s=Xe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return VR(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),jIe(t)):t}],transformResponse:[function(t){const n=this.transitional||TT.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Xe.isResponse(t)||Xe.isReadableStream(t))return t;if(t&&Xe.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(s){if(a)throw s.name==="SyntaxError"?Fn.from(s,Fn.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rs.classes.FormData,Blob:rs.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Xe.forEach(["delete","get","head","post","put","patch"],e=>{TT.headers[e]={}});const BIe=Xe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zIe=e=>{const t={};let n,r,o;return e&&e.split(`
-`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&BIe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},S6=Symbol("internals");function KC(e){return e&&String(e).trim().toLowerCase()}function oA(e){return e===!1||e==null?e:Xe.isArray(e)?e.map(oA):String(e)}function VIe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const HIe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function y_(e,t,n,r,o){if(Xe.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Xe.isString(t)){if(Xe.isString(r))return t.indexOf(r)!==-1;if(Xe.isRegExp(r))return r.test(t)}}function UIe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function GIe(e,t){const n=Xe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let fl=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,c){const u=KC(l);if(!u)throw new Error("header name must be a non-empty string");const f=Xe.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=oA(s))}const a=(s,l)=>Xe.forEach(s,(c,u)=>i(c,u,l));if(Xe.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Xe.isString(t)&&(t=t.trim())&&!HIe(t))a(zIe(t),n);else if(Xe.isObject(t)&&Xe.isIterable(t)){let s={},l,c;for(const u of t){if(!Xe.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?Xe.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}a(s,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=KC(t),t){const r=Xe.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return VIe(o);if(Xe.isFunction(n))return n.call(this,o,r);if(Xe.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=KC(t),t){const r=Xe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||y_(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=KC(a),a){const s=Xe.findKey(r,a);s&&(!n||y_(r,r[s],s,n))&&(delete r[s],o=!0)}}return Xe.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||y_(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Xe.forEach(this,(o,i)=>{const a=Xe.findKey(r,i);if(a){n[a]=oA(o),delete n[i];return}const s=t?UIe(i):String(i).trim();s!==i&&delete n[i],n[s]=oA(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Xe.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Xe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
-`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[S6]=this[S6]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=KC(a);r[s]||(GIe(o,a),r[s]=!0)}return Xe.isArray(t)?t.forEach(i):i(t),this}};fl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Xe.reduceDescriptors(fl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Xe.freezeMethods(fl);function v_(e,t){const n=this||TT,r=t||n,o=fl.from(r.headers);let i=r.data;return Xe.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function lZ(e){return!!(e&&e.__CANCEL__)}function uw(e,t,n){Fn.call(this,e??"canceled",Fn.ERR_CANCELED,t,n),this.name="CanceledError"}Xe.inherits(uw,Fn,{__CANCEL__:!0});function cZ(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Fn("Request failed with status code "+n.status,[Fn.ERR_BAD_REQUEST,Fn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function WIe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function qIe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];a||(a=c),n[o]=l,r[o]=c;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a<t)return;const g=u&&c-u;return g?Math.round(h*1e3/g):void 0}}function KIe(e,t){let n=0,r=1e3/t,o,i;const a=(c,u=Date.now())=>{n=u,o=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?a(c,u):(o=c,i||(i=setTimeout(()=>{i=null,a(o)},r-f)))},()=>o&&a(o)]}const VA=(e,t,n=3)=>{let r=0;const o=qIe(50,250);return KIe(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l),u=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},C6=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},E6=e=>(...t)=>Xe.asap(()=>e(...t)),YIe=rs.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,rs.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(rs.origin),rs.navigator&&/(msie|trident)/i.test(rs.navigator.userAgent)):()=>!0,QIe=rs.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Xe.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Xe.isString(r)&&a.push("path="+r),Xe.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function XIe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function JIe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function uZ(e,t,n){let r=!XIe(t);return e&&(r||n==!1)?JIe(e,t):t}const T6=e=>e instanceof fl?{...e}:e;function nv(e,t){t=t||{};const n={};function r(c,u,f,h){return Xe.isPlainObject(c)&&Xe.isPlainObject(u)?Xe.merge.call({caseless:h},c,u):Xe.isPlainObject(u)?Xe.merge({},u):Xe.isArray(u)?u.slice():u}function o(c,u,f,h){if(Xe.isUndefined(u)){if(!Xe.isUndefined(c))return r(void 0,c,f,h)}else return r(c,u,f,h)}function i(c,u){if(!Xe.isUndefined(u))return r(void 0,u)}function a(c,u){if(Xe.isUndefined(u)){if(!Xe.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,f)=>o(T6(c),T6(u),f,!0)};return Xe.forEach(Object.keys({...e,...t}),function(u){const f=l[u]||o,h=f(e[u],t[u],u);Xe.isUndefined(h)&&f!==s||(n[u]=h)}),n}const dZ=e=>{const t=nv({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=fl.from(a),t.url=iZ(uZ(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Xe.isFormData(n)){if(rs.hasStandardBrowserEnv||rs.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(Xe.isFunction(n.getHeaders)){const l=n.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,f])=>{c.includes(u.toLowerCase())&&a.set(u,f)})}}if(rs.hasStandardBrowserEnv&&(r&&Xe.isFunction(r)&&(r=r(t)),r||r!==!1&&YIe(t.url))){const l=o&&i&&QIe.read(i);l&&a.set(o,l)}return t},ZIe=typeof XMLHttpRequest<"u",eOe=ZIe&&function(e){return new Promise(function(n,r){const o=dZ(e);let i=o.data;const a=fl.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=o,u,f,h,g,y;function x(){g&&g(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let S=new XMLHttpRequest;S.open(o.method.toUpperCase(),o.url,!0),S.timeout=o.timeout;function C(){if(!S)return;const I=fl.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),O={data:!s||s==="text"||s==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:I,config:e,request:S};cZ(function(N){n(N),x()},function(N){r(N),x()},O),S=null}"onloadend"in S?S.onloadend=C:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(C)},S.onabort=function(){S&&(r(new Fn("Request aborted",Fn.ECONNABORTED,e,S)),S=null)},S.onerror=function(M){const O=M&&M.message?M.message:"Network Error",D=new Fn(O,Fn.ERR_NETWORK,e,S);D.event=M||null,r(D),S=null},S.ontimeout=function(){let M=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const O=o.transitional||aZ;o.timeoutErrorMessage&&(M=o.timeoutErrorMessage),r(new Fn(M,O.clarifyTimeoutError?Fn.ETIMEDOUT:Fn.ECONNABORTED,e,S)),S=null},i===void 0&&a.setContentType(null),"setRequestHeader"in S&&Xe.forEach(a.toJSON(),function(M,O){S.setRequestHeader(O,M)}),Xe.isUndefined(o.withCredentials)||(S.withCredentials=!!o.withCredentials),s&&s!=="json"&&(S.responseType=o.responseType),c&&([h,y]=VA(c,!0),S.addEventListener("progress",h)),l&&S.upload&&([f,g]=VA(l),S.upload.addEventListener("progress",f),S.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(u=I=>{S&&(r(!I||I.type?new uw(null,e,S):I),S.abort(),S=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const E=WIe(o.url);if(E&&rs.protocols.indexOf(E)===-1){r(new Fn("Unsupported protocol "+E+":",Fn.ERR_BAD_REQUEST,e));return}S.send(i||null)})},tOe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Fn?u:new uw(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new Fn(`timeout ${t} of ms exceeded`,Fn.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>Xe.asap(s),l}},nOe=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},rOe=async function*(e,t){for await(const n of oOe(e))yield*nOe(n,t)},oOe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},P6=(e,t,n,r)=>{const o=rOe(e,t);let i=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){s(),l.close();return}let f=u.byteLength;if(n){let h=i+=f;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},I6=64*1024,{isFunction:uM}=Xe,iOe=(({Request:e,Response:t})=>({Request:e,Response:t}))(Xe.global),{ReadableStream:O6,TextEncoder:M6}=Xe.global,A6=(e,...t)=>{try{return!!e(...t)}catch{return!1}},aOe=e=>{e=Xe.merge.call({skipUndefined:!0},iOe,e);const{fetch:t,Request:n,Response:r}=e,o=t?uM(t):typeof fetch=="function",i=uM(n),a=uM(r);if(!o)return!1;const s=o&&uM(O6),l=o&&(typeof M6=="function"?(y=>x=>y.encode(x))(new M6):async y=>new Uint8Array(await new n(y).arrayBuffer())),c=i&&s&&A6(()=>{let y=!1;const x=new n(rs.origin,{body:new O6,method:"POST",get duplex(){return y=!0,"half"}}).headers.has("Content-Type");return y&&!x}),u=a&&s&&A6(()=>Xe.isReadableStream(new r("").body)),f={stream:u&&(y=>y.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!f[y]&&(f[y]=(x,S)=>{let C=x&&x[y];if(C)return C.call(x);throw new Fn(`Response type '${y}' is not supported`,Fn.ERR_NOT_SUPPORT,S)})});const h=async y=>{if(y==null)return 0;if(Xe.isBlob(y))return y.size;if(Xe.isSpecCompliantForm(y))return(await new n(rs.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(Xe.isArrayBufferView(y)||Xe.isArrayBuffer(y))return y.byteLength;if(Xe.isURLSearchParams(y)&&(y=y+""),Xe.isString(y))return(await l(y)).byteLength},g=async(y,x)=>{const S=Xe.toFiniteNumber(y.getContentLength());return S??h(x)};return async y=>{let{url:x,method:S,data:C,signal:E,cancelToken:I,timeout:M,onDownloadProgress:O,onUploadProgress:D,responseType:N,headers:$,withCredentials:L="same-origin",fetchOptions:A}=dZ(y),F=t||fetch;N=N?(N+"").toLowerCase():"text";let z=tOe([E,I&&I.toAbortSignal()],M),H=null;const Q=z&&z.unsubscribe&&(()=>{z.unsubscribe()});let G;try{if(D&&c&&S!=="get"&&S!=="head"&&(G=await g($,C))!==0){let K=new n(x,{method:"POST",body:C,duplex:"half"}),ee;if(Xe.isFormData(C)&&(ee=K.headers.get("content-type"))&&$.setContentType(ee),K.body){const[le,ce]=C6(G,VA(E6(D)));C=P6(K.body,I6,le,ce)}}Xe.isString(L)||(L=L?"include":"omit");const V=i&&"credentials"in n.prototype,Y={...A,signal:z,method:S.toUpperCase(),headers:$.normalize().toJSON(),body:C,duplex:"half",credentials:V?L:void 0};H=i&&new n(x,Y);let X=await(i?F(H,A):F(x,Y));const te=u&&(N==="stream"||N==="response");if(u&&(O||te&&Q)){const K={};["status","statusText","headers"].forEach(se=>{K[se]=X[se]});const ee=Xe.toFiniteNumber(X.headers.get("content-length")),[le,ce]=O&&C6(ee,VA(E6(O),!0))||[];X=new r(P6(X.body,I6,le,()=>{ce&&ce(),Q&&Q()}),K)}N=N||"text";let U=await f[Xe.findKey(f,N)||"text"](X,y);return!te&&Q&&Q(),await new Promise((K,ee)=>{cZ(K,ee,{data:U,headers:fl.from(X.headers),status:X.status,statusText:X.statusText,config:y,request:H})})}catch(V){throw Q&&Q(),V&&V.name==="TypeError"&&/Load failed|fetch/i.test(V.message)?Object.assign(new Fn("Network Error",Fn.ERR_NETWORK,y,H),{cause:V.cause||V}):Fn.from(V,V&&V.code,y,H)}}},sOe=new Map,fZ=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a=i.length,s=a,l,c,u=sOe;for(;s--;)l=i[s],c=u.get(l),c===void 0&&u.set(l,c=s?new Map:aOe(t)),u=c;return c};fZ();const QF={http:EIe,xhr:eOe,fetch:{get:fZ}};Xe.forEach(QF,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const D6=e=>`- ${e}`,lOe=e=>Xe.isFunction(e)||e===null||e===!1,pZ={getAdapter:(e,t)=>{e=Xe.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){r=e[a];let s;if(o=r,!lOe(r)&&(o=QF[(s=String(r)).toLowerCase()],o===void 0))throw new Fn(`Unknown adapter '${s}'`);if(o&&(Xe.isFunction(o)||(o=o.get(t))))break;i[s||"#"+a]=o}if(!o){const a=Object.entries(i).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?a.length>1?`since :
-`+a.map(D6).join(`
-`):" "+D6(a[0]):"as no adapter specified";throw new Fn("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o},adapters:QF};function b_(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new uw(null,e)}function R6(e){return b_(e),e.headers=fl.from(e.headers),e.data=v_.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),pZ.getAdapter(e.adapter||TT.adapter,e)(e).then(function(r){return b_(e),r.data=v_.call(e,e.transformResponse,r),r.headers=fl.from(r.headers),r},function(r){return lZ(r)||(b_(e),r&&r.response&&(r.response.data=v_.call(e,e.transformResponse,r.response),r.response.headers=fl.from(r.response.headers))),Promise.reject(r)})}const hZ="1.12.2",HR={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{HR[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const k6={};HR.transitional=function(t,n,r){function o(i,a){return"[Axios v"+hZ+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new Fn(o(a," has been removed"+(n?" in "+n:"")),Fn.ERR_DEPRECATED);return n&&!k6[a]&&(k6[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};HR.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function cOe(e,t,n){if(typeof e!="object")throw new Fn("options must be an object",Fn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new Fn("option "+i+" must be "+l,Fn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Fn("Unknown option "+i,Fn.ERR_BAD_OPTION)}}const iA={assertOptions:cOe,validators:HR},zd=iA.validators;let By=class{constructor(t){this.defaults=t||{},this.interceptors={request:new w6,response:new w6}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
-`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=nv(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&iA.assertOptions(r,{silentJSONParsing:zd.transitional(zd.boolean),forcedJSONParsing:zd.transitional(zd.boolean),clarifyTimeoutError:zd.transitional(zd.boolean)},!1),o!=null&&(Xe.isFunction(o)?n.paramsSerializer={serialize:o}:iA.assertOptions(o,{encode:zd.function,serialize:zd.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),iA.assertOptions(n,{baseUrl:zd.spelling("baseURL"),withXsrfToken:zd.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Xe.merge(i.common,i[n.method]);i&&Xe.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=fl.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(l=l&&x.synchronous,s.unshift(x.fulfilled,x.rejected))});const c=[];this.interceptors.response.forEach(function(x){c.push(x.fulfilled,x.rejected)});let u,f=0,h;if(!l){const y=[R6.bind(this),void 0];for(y.unshift(...s),y.push(...c),h=y.length,u=Promise.resolve(n);f<h;)u=u.then(y[f++],y[f++]);return u}h=s.length;let g=n;for(;f<h;){const y=s[f++],x=s[f++];try{g=y(g)}catch(S){x.call(this,S);break}}try{u=R6.call(this,g)}catch(y){return Promise.reject(y)}for(f=0,h=c.length;f<h;)u=u.then(c[f++],c[f++]);return u}getUri(t){t=nv(this.defaults,t);const n=uZ(t.baseURL,t.url,t.allowAbsoluteUrls);return iZ(n,t.params,t.paramsSerializer)}};Xe.forEach(["delete","get","head","options"],function(t){By.prototype[t]=function(n,r){return this.request(nv(r||{},{method:t,url:n,data:(r||{}).data}))}});Xe.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,s){return this.request(nv(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}By.prototype[t]=n(),By.prototype[t+"Form"]=n(!0)});let uOe=class mZ{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new uw(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new mZ(function(o){t=o}),cancel:t}}};function dOe(e){return function(n){return e.apply(null,n)}}function fOe(e){return Xe.isObject(e)&&e.isAxiosError===!0}const XF={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(XF).forEach(([e,t])=>{XF[t]=e});function gZ(e){const t=new By(e),n=qJ(By.prototype.request,t);return Xe.extend(n,By.prototype,t,{allOwnKeys:!0}),Xe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return gZ(nv(e,o))},n}const bt=gZ(TT);bt.Axios=By;bt.CanceledError=uw;bt.CancelToken=uOe;bt.isCancel=lZ;bt.VERSION=hZ;bt.toFormData=VR;bt.AxiosError=Fn;bt.Cancel=bt.CanceledError;bt.all=function(t){return Promise.all(t)};bt.spread=dOe;bt.isAxiosError=fOe;bt.mergeConfig=nv;bt.AxiosHeaders=fl;bt.formToJSON=e=>sZ(Xe.isHTMLForm(e)?new FormData(e):e);bt.getAdapter=pZ.getAdapter;bt.HttpStatusCode=XF;bt.default=bt;const{Axios:bTt,AxiosError:xTt,CanceledError:wTt,isCancel:STt,CancelToken:CTt,VERSION:ETt,all:TTt,Cancel:PTt,isAxiosError:ITt,spread:OTt,toFormData:MTt,AxiosHeaders:ATt,HttpStatusCode:DTt,formToJSON:RTt,getAdapter:kTt,mergeConfig:NTt}=bt,ux={protein:4,carbohydrates:4,fat:9};class $l{bodyWeight=0;energy=0;protein=0;carbohydrates=0;carbohydratesSugar=0;fat=0;fatSaturated=0;fiber=0;sodium=0;get energyKj(){return this.energy*4.184}get isEmpty(){return this.energy===0&&this.protein===0&&this.carbohydrates===0&&this.fat===0}get percent(){return{protein:this.protein>0?this.protein*ux.protein/this.energy*100:0,carbohydrates:this.carbohydrates>0?this.carbohydrates*ux.carbohydrates/this.energy*100:0,fat:this.fat>0?this.fat*ux.fat/this.energy*100:0}}get perBodyKg(){return{protein:this.bodyWeight>0?this.protein/this.bodyWeight:0,carbohydrates:this.bodyWeight>0?this.carbohydrates/this.bodyWeight:0,fat:this.bodyWeight>0?this.fat/this.bodyWeight:0}}constructor(t){this.energy=t?.energy??0,this.protein=t?.protein??0,this.carbohydrates=t?.carbohydrates??0,this.carbohydratesSugar=t?.carbohydratesSugar??0,this.fat=t?.fat??0,this.fatSaturated=t?.fatSaturated??0,this.fiber=t?.fiber??0,this.sodium=t?.sodium??0,this.bodyWeight=t?.bodyWeight??0}static fromIngredient(t,n,r){const o=new $l,i=r===null?n:n*r.amount*r.grams;return o.energy=t.energy*i/100,o.protein=t.protein*i/100,o.carbohydrates=t.carbohydrates*i/100,o.carbohydratesSugar=t.carbohydratesSugar?t.carbohydratesSugar*i/100:0,o.fat=t.fat*i/100,o.fatSaturated=t.fatSaturated?t.fatSaturated*i/100:0,o.fiber=t.fiber?t.fiber*i/100:0,o.sodium=t.sodium?t.sodium*i/100:0,o}add(t){return this.energy+=t.energy,this.protein+=t.protein,this.carbohydrates+=t.carbohydrates,this.carbohydratesSugar+=t.carbohydratesSugar,this.fat+=t.fat,this.fatSaturated+=t.fatSaturated,this.fiber+=t.fiber,this.sodium+=t.sodium,this}toString(){return`e: ${this.energy}, p: ${this.protein}, c: ${this.carbohydrates}, cS: ${this.carbohydratesSugar}, f: ${this.fat}, fS: ${this.fatSaturated}, fi: ${this.fiber}, s: ${this.sodium}`}equals(t){return this.energy===t.energy&&this.protein===t.protein&&this.carbohydrates===t.carbohydrates&&this.carbohydratesSugar===t.carbohydratesSugar&&this.fat===t.fat&&this.fatSaturated===t.fatSaturated&&this.fiber===t.fiber&&this.sodium===t.sodium}}const kn=e=>typeof e=="string",YC=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},N6=e=>e==null?"":""+e,pOe=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},hOe=/###/g,_6=e=>e&&e.indexOf("###")>-1?e.replace(hOe,"."):e,L6=e=>!e||kn(e),U1=(e,t,n)=>{const r=kn(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(L6(e))return{};const i=_6(r[o]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return L6(e)?{}:{obj:e,k:_6(r[o])}},$6=(e,t,n)=>{const{obj:r,k:o}=U1(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let i=t[t.length-1],a=t.slice(0,t.length-1),s=U1(e,a,Object);for(;s.obj===void 0&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=U1(e,a,Object),s?.obj&&typeof s.obj[`${s.k}.${i}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},mOe=(e,t,n,r)=>{const{obj:o,k:i}=U1(e,t,Object);o[i]=o[i]||[],o[i].push(n)},HA=(e,t)=>{const{obj:n,k:r}=U1(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},gOe=(e,t,n)=>{const r=HA(e,n);return r!==void 0?r:HA(t,n)},yZ=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?kn(e[r])||e[r]instanceof String||kn(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):yZ(e[r],t[r],n):e[r]=t[r]);return e},I0=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var yOe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const vOe=e=>kn(e)?e.replace(/[&<>"'\/]/g,t=>yOe[t]):e;class bOe{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const xOe=[" ",",","?","!",";"],wOe=new bOe(20),SOe=(e,t,n)=>{t=t||"",n=n||"";const r=xOe.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const o=wOe.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let i=!o.test(e);if(!i){const a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i},JF=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let o=e;for(let i=0;i<r.length;){if(!o||typeof o!="object")return;let a,s="";for(let l=i;l<r.length;++l)if(l!==i&&(s+=n),s+=r[l],a=o[s],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<r.length-1)continue;i+=l-i+1;break}o=a}return o},vE=e=>e?.replace("_","-"),COe={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class UA{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||COe,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(kn(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new UA(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new UA(this.logger,t)}}var qd=new UA;let UR=class{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,i])=>{for(let a=0;a<i;a++)o(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,i])=>{for(let a=0;a<i;a++)o.apply(o,[t,...n])})}};class F6 extends UR{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,o={}){const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,a=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):kn(r)&&i?s.push(...r.split(i)):s.push(r)));const l=HA(this.data,s);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),l||!a||!kn(r)?l:JF(this.data?.[t]?.[n],r,i)}addResource(t,n,r,o,i={silent:!1}){const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(s=t.split("."),o=n,n=s[1]),this.addNamespaces(n),$6(this.data,s,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r,o={silent:!1}){for(const i in r)(kn(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i,a={silent:!1,skipCopy:!1}){let s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),o=r,r=n,n=s[1]),this.addNamespaces(n);let l=HA(this.data,s)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?yZ(l,r,i):l={...l,...r},$6(this.data,s,l),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var vZ={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{t=this.processors[i]?.process(t,n,r,o)??t}),t}};const bZ=Symbol("i18next/PATH_KEY");function EOe(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===bZ?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function ZF(e,t){const{[bZ]:n}=e(EOe());return n.join(t?.keySeparator??".")}const j6={},B6=e=>!kn(e)&&typeof e!="boolean"&&typeof e!="number";class GA extends UR{constructor(t,n={}){super(),pOe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=qd.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};return t==null?!1:this.resolve(t,r)?.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!SOe(t,r,o);if(a&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:kn(i)?[i]:i};const c=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(o)}return{key:t,namespaces:kn(i)?[i]:i}}translate(t,n,r){let o=typeof n=="object"?{...n}:n;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=ZF(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]);const i=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],o),c=l[l.length-1];let u=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const f=o.lng||this.language,h=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()==="cimode")return h?i?{res:`${c}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(o)}:`${c}${u}${s}`:i?{res:s,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(o)}:s;const g=this.resolve(t,o);let y=g?.res;const x=g?.usedKey||s,S=g?.exactUsedKey||s,C=["[object Number]","[object Function]","[object RegExp]"],E=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,I=!this.i18nFormat||this.i18nFormat.handleAsObject,M=o.count!==void 0&&!kn(o.count),O=GA.hasDefaultValue(o),D=M?this.pluralResolver.getSuffix(f,o.count,o):"",N=o.ordinal&&M?this.pluralResolver.getSuffix(f,o.count,{ordinal:!1}):"",$=M&&!o.ordinal&&o.count===0,L=$&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${D}`]||o[`defaultValue${N}`]||o.defaultValue;let A=y;I&&!y&&O&&(A=L);const F=B6(A),z=Object.prototype.toString.apply(A);if(I&&A&&F&&C.indexOf(z)<0&&!(kn(E)&&Array.isArray(A))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const H=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,A,{...o,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(g.res=H,g.usedParams=this.getUsedParamsDetails(o),g):H}if(a){const H=Array.isArray(A),Q=H?[]:{},G=H?S:x;for(const V in A)if(Object.prototype.hasOwnProperty.call(A,V)){const Y=`${G}${a}${V}`;O&&!y?Q[V]=this.translate(Y,{...o,defaultValue:B6(L)?L[V]:void 0,joinArrays:!1,ns:l}):Q[V]=this.translate(Y,{...o,joinArrays:!1,ns:l}),Q[V]===Y&&(Q[V]=A[V])}y=Q}}else if(I&&kn(E)&&Array.isArray(y))y=y.join(E),y&&(y=this.extendTranslation(y,t,o,r));else{let H=!1,Q=!1;!this.isValidLookup(y)&&O&&(H=!0,y=L),this.isValidLookup(y)||(Q=!0,y=s);const V=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Q?void 0:y,Y=O&&L!==y&&this.options.updateMissing;if(Q||H||Y){if(this.logger.log(Y?"updateKey":"missingKey",f,c,s,Y?L:y),a){const K=this.resolve(s,{...o,keySeparator:!1});K&&K.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let X=[];const te=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&te&&te[0])for(let K=0;K<te.length;K++)X.push(te[K]);else this.options.saveMissingTo==="all"?X=this.languageUtils.toResolveHierarchy(o.lng||this.language):X.push(o.lng||this.language);const U=(K,ee,le)=>{const ce=O&&le!==y?le:V;this.options.missingKeyHandler?this.options.missingKeyHandler(K,c,ee,ce,Y,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(K,c,ee,ce,Y,o),this.emit("missingKey",K,c,ee,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&M?X.forEach(K=>{const ee=this.pluralResolver.getSuffixes(K,o);$&&o[`defaultValue${this.options.pluralSeparator}zero`]&&ee.indexOf(`${this.options.pluralSeparator}zero`)<0&&ee.push(`${this.options.pluralSeparator}zero`),ee.forEach(le=>{U([K],s+le,o[`defaultValue${le}`]||L)})}):U(X,s,L))}y=this.extendTranslation(y,t,o,g,r),Q&&y===s&&this.options.appendNamespaceToMissingKey&&(y=`${c}${u}${s}`),(Q||H)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${u}${s}`:s,H?y:void 0,o))}return i?(g.res=y,g.usedParams=this.getUsedParamsDetails(o),g):y}extendTranslation(t,n,r,o,i){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const l=kn(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(l){const f=t.match(this.interpolator.nestingRegexp);c=f&&f.length}let u=r.replace&&!kn(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),t=this.interpolator.interpolate(t,u,r.lng||this.language||o.usedLng,r),l){const f=t.match(this.interpolator.nestingRegexp),h=f&&f.length;c<h&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...f)=>i?.[0]===f[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):this.translate(...f,n),r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,s=kn(a)?[a]:a;return t!=null&&s?.length&&r.applyPostProcessor!==!1&&(t=vZ.handle(s,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,o,i,a,s;return kn(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),u=c.key;o=u;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const h=n.count!==void 0&&!kn(n.count),g=h&&!n.ordinal&&n.count===0,y=n.context!==void 0&&(kn(n.context)||typeof n.context=="number")&&n.context!=="",x=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(S=>{this.isValidLookup(r)||(s=S,!j6[`${x[0]}-${S}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(s)&&(j6[`${x[0]}-${S}`]=!0,this.logger.warn(`key "${o}" for languages "${x.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),x.forEach(C=>{if(this.isValidLookup(r))return;a=C;const E=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(E,u,C,S,n);else{let M;h&&(M=this.pluralResolver.getSuffix(C,n.count,n));const O=`${this.options.pluralSeparator}zero`,D=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(n.ordinal&&M.indexOf(D)===0&&E.push(u+M.replace(D,this.options.pluralSeparator)),E.push(u+M),g&&E.push(u+O)),y){const N=`${u}${this.options.contextSeparator||"_"}${n.context}`;E.push(N),h&&(n.ordinal&&M.indexOf(D)===0&&E.push(N+M.replace(D,this.options.pluralSeparator)),E.push(N+M),g&&E.push(N+O))}}let I;for(;I=E.pop();)this.isValidLookup(r)||(i=I,r=this.getResource(C,S,I,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!kn(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class z6{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=qd.create("languageUtils")}getScriptPartFromCode(t){if(t=vE(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=vE(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(kn(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return n=o;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(a=>{if(a===i)return a;if(!(a.indexOf("-")<0&&i.indexOf("-")<0)&&(a.indexOf("-")>0&&i.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===i||a.indexOf(i)===0&&i.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),kn(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),o=[],i=a=>{a&&(this.isSupportedCode(a)?o.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return kn(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):kn(t)&&i(this.formatLanguageCode(t)),r.forEach(a=>{o.indexOf(a)<0&&i(this.formatLanguageCode(a))}),o}}const V6={zero:0,one:1,two:2,few:3,many:4,other:5},H6={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class TOe{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=qd.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=vE(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(r,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),H6;if(!t.match(/-|_/))return H6;const l=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(l,n)}return this.pluralRulesCache[i]=a,a}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((o,i)=>V6[o]-V6[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,n,r={}){const o=this.getRule(t,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const U6=(e,t,n,r=".",o=!0)=>{let i=gOe(e,t,n);return!i&&o&&kn(n)&&(i=JF(e,n,r),i===void 0&&(i=JF(t,n,r))),i},x_=e=>e.replace(/\$/g,"$$$$");class POe{constructor(t={}){this.logger=qd.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:i,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:f,nestingPrefix:h,nestingPrefixEscaped:g,nestingSuffix:y,nestingSuffixEscaped:x,nestingOptionsSeparator:S,maxReplaces:C,alwaysFormat:E}=t.interpolation;this.escape=n!==void 0?n:vOe,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?I0(i):a||"{{",this.suffix=s?I0(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=h?I0(h):g||I0("$t("),this.nestingSuffix=y?I0(y):x||I0(")"),this.nestingOptionsSeparator=S||",",this.maxReplaces=C||1e3,this.alwaysFormat=E!==void 0?E:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let i,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=g=>{if(g.indexOf(this.formatSeparator)<0){const C=U6(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(C,void 0,r,{...o,...n,interpolationkey:g}):C}const y=g.split(this.formatSeparator),x=y.shift().trim(),S=y.join(this.formatSeparator).trim();return this.format(U6(n,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),S,r,{...o,...n,interpolationkey:x})};this.resetRegExp();const u=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>x_(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?x_(this.escape(g)):x_(g)}].forEach(g=>{for(s=0;i=g.regex.exec(t);){const y=i[1].trim();if(a=c(y),a===void 0)if(typeof u=="function"){const S=u(t,i,o);a=kn(S)?S:""}else if(o&&Object.prototype.hasOwnProperty.call(o,y))a="";else if(f){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),a="";else!kn(a)&&!this.useRawValueToEscape&&(a=N6(a));const x=g.safeValue(a);if(t=t.replace(i[0],x),f?(g.regex.lastIndex+=a.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n,r={}){let o,i,a;const s=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const f=l.split(new RegExp(`${u}[ ]*{`));let h=`{${f[1]}`;l=f[0],h=this.interpolate(h,a);const g=h.match(/'/g),y=h.match(/"/g);((g?.length??0)%2===0&&!y||y.length%2!==0)&&(h=h.replace(/'/g,'"'));try{a=JSON.parse(h),c&&(a={...c,...a})}catch(x){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,x),`${l}${u}${h}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];a={...r},a=a.replace&&!kn(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;const c=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(c!==-1&&(l=o[1].slice(c).split(this.formatSeparator).map(u=>u.trim()).filter(Boolean),o[1]=o[1].slice(0,c)),i=n(s.call(this,o[1].trim(),a),a),i&&o[0]===t&&!kn(i))return i;kn(i)||(i=N6(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),l.length&&(i=l.reduce((u,f)=>this.format(u,f,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const IOe=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(a=>{if(a){const[s,...l]=a.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=s.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},G6=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=r+JSON.stringify(i);let s=t[a];return s||(s=e(vE(r),o),t[a]=s),s(n)}},OOe=e=>(t,n,r)=>e(vE(n),r)(t);let MOe=class{constructor(t={}){this.logger=qd.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?G6:OOe;this.formats={number:r((o,i)=>{const a=new Intl.NumberFormat(o,{...i});return s=>a.format(s)}),currency:r((o,i)=>{const a=new Intl.NumberFormat(o,{...i,style:"currency"});return s=>a.format(s)}),datetime:r((o,i)=>{const a=new Intl.DateTimeFormat(o,{...i});return s=>a.format(s)}),relativetime:r((o,i)=>{const a=new Intl.RelativeTimeFormat(o,{...i});return s=>a.format(s,i.range||"day")}),list:r((o,i)=>{const a=new Intl.ListFormat(o,{...i});return s=>a.format(s)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=G6(n)}format(t,n,r,o={}){const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(s=>s.indexOf(")")>-1)){const s=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,s)].join(this.formatSeparator)}return i.reduce((s,l)=>{const{formatName:c,formatOptions:u}=IOe(l);if(this.formats[c]){let f=s;try{const h=o?.formatParams?.[o.interpolationkey]||{},g=h.locale||h.lng||o.locale||o.lng||r;f=this.formats[c](s,g,{...u,...o,...h})}catch(h){this.logger.warn(h)}return f}else this.logger.warn(`there was no format function for ${c}`);return s},t)}};const AOe=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class DOe extends UR{constructor(t,n,r,o={}){super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=qd.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,o.backend,o)}queueLoad(t,n,r,o){const i={},a={},s={},l={};return t.forEach(c=>{let u=!0;n.forEach(f=>{const h=`${c}|${f}`;!r.reload&&this.store.hasResourceBundle(c,f)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?a[h]===void 0&&(a[h]=!0):(this.state[h]=1,u=!1,a[h]===void 0&&(a[h]=!0),i[h]===void 0&&(i[h]=!0),l[f]===void 0&&(l[f]=!0)))}),u||(s[c]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const o=t.split("|"),i=o[0],a=o[1];n&&this.emit("failedLoading",i,a,n),!n&&r&&this.store.addResourceBundle(i,a,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(l=>{mOe(l.loaded,[i],a),AOe(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const u=l.loaded[c];u.length&&u.forEach(f=>{s[c][f]===void 0&&(s[c][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r,o=0,i=this.retryTimeout,a){if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:i,callback:a});return}this.readingCalls++;const s=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&u&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,i*2,a)},i);return}a(c,u)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(u=>s(null,u)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,n,s)}prepareLoading(t,n,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();kn(t)&&(t=this.languageUtils.toResolveHierarchy(t)),kn(n)&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,a),!a&&s&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,s),this.loaded(t,a,s)})}saveMissing(t,n,r,o,i,a={},s=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const l={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,n,r,o,l):u=c(t,n,r,o),u&&typeof u.then=="function"?u.then(f=>s(null,f)).catch(s):s(null,u)}catch(u){s(u)}else c(t,n,r,o,s,l)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const W6=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),kn(e[1])&&(t.defaultValue=e[1]),kn(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),q6=e=>(kn(e.ns)&&(e.ns=[e.ns]),kn(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),kn(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),dM=()=>{},ROe=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class bE extends UR{constructor(t={},n){if(super(),this.options=q6(t),this.services={},this.logger=qd,this.modules={external:[]},ROe(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(kn(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=W6();this.options={...r,...this.options,...q6(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?qd.init(o(this.modules.logger),this.options):qd.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=MOe;const u=new z6(this.options);this.store=new F6(this.options.resources,this.options);const f=this.services;f.logger=qd,f.resourceStore=this.store,f.languageUtils=u,f.pluralResolver=new TOe(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),c&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(f.formatter=o(c),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new POe(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new DOe(o(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(g,...y)=>{this.emit(g,...y)}),this.modules.languageDetector&&(f.languageDetector=o(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=o(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new GA(this.services,this.options),this.translator.on("*",(g,...y)=>{this.emit(g,...y)}),this.modules.external.forEach(g=>{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,n||(n=dM),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...u)=>this.store[c](...u)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...u)=>(this.store[c](...u),this)});const s=YC(),l=()=>{const c=(u,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(f),n(u,f)};if(this.languages&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),s}loadResources(t,n=dM){let r=n;const o=kn(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],a=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};o?a(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>a(l)),this.options.preload?.forEach?.(s=>a(s)),this.services.backendConnector.load(i,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const o=YC();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=dM),this.services.backendConnector.reload(t,n,i=>{o.resolve(),r(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&vZ.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=YC();this.emit("languageChanging",t);const o=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},i=(s,l)=>{l?this.isLanguageChangingTo===t&&(o(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...c)=>this.t(...c)),n&&n(s,(...c)=>this.t(...c))},a=s=>{!t&&!s&&this.services.languageDetector&&(s=[]);const l=kn(s)?s:s&&s[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(kn(s)?[s]:s);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector?.cacheUserLanguage?.(c)),this.loadResources(c,u=>{i(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),r}getFixedT(t,n,r){const o=(i,a,...s)=>{let l;typeof a!="object"?l=this.options.overloadTranslationOptionHandler([i,a].concat(s)):l={...a},l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||o.keyPrefix);const c=this.options.keySeparator||".";let u;return l.keyPrefix&&Array.isArray(i)?u=i.map(f=>(typeof f=="function"&&(f=ZF(f,{...this.options,...a})),`${l.keyPrefix}${c}${f}`)):(typeof i=="function"&&(i=ZF(i,{...this.options,...a})),u=l.keyPrefix?`${l.keyPrefix}${c}${i}`:i),this.t(u,l)};return kn(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const s=n.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!o||a(i,t)))}loadNamespaces(t,n){const r=YC();return this.options.ns?(kn(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=YC();kn(t)&&(t=[t]);const o=this.options.preload||[],i=t.filter(a=>o.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return i.length?(this.options.preload=o.concat(i),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const o=new Intl.Locale(t);if(o&&o.getTextInfo){const i=o.getTextInfo();if(i&&i.direction)return i.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new z6(W6());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){return new bE(t,n)}cloneInstance(t={},n=dM){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new bE(o);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(s=>{i[s]=this[s]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const s=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((u,f)=>(u[f]={...l[c][f]},u),l[c]),l),{});i.store=new F6(s,o),i.services.resourceStore=i.store}return i.translator=new GA(i.services,o),i.translator.on("*",(s,...l)=>{i.emit(s,...l)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const jn=bE.createInstance();jn.createInstance=bE.createInstance;jn.createInstance;jn.dir;jn.init;jn.loadResources;jn.reloadResources;jn.use;jn.changeLanguage;jn.getFixedT;jn.t;jn.exists;jn.setDefaultNamespace;jn.hasLoadedNamespace;jn.loadNamespaces;jn.loadLanguages;function al(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Jr(e){return e.toISOString().split("T")[0]}function ej(e,t){return e==null?null:(t=t??jn.language,e.toLocaleTimeString(t?[t]:[],{hour:"2-digit",minute:"2-digit"}))}function xZ(e,t){return e==null?null:(t=t??jn.language,e.toLocaleString(t?[t]:[],{year:"2-digit",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}))}function xE(e){if(e==null)return null;const[t,n]=e.toTimeString().split(":");return`${t}:${n}`}function tj(e){if(e==null)return null;const[t,n]=e.split(":",2),r=new Date;return r.setHours(parseInt(t)),r.setMinutes(parseInt(n)),r}function kOe(e,t=new Date){const r={lastWeek:()=>t.setDate(t.getDate()-7),lastMonth:()=>t.setMonth(t.getMonth()-1),lastHalfYear:()=>t.setMonth(t.getMonth()-6),lastYear:()=>t.setFullYear(t.getFullYear()-1),"":void 0}[e];if(r)r();else return;return Jr(t)}class Ip{id=null;planId=null;order;time=null;name;items;diaryEntries;constructor(t){this.id=t.id||null,this.planId=t.planId||null,this.order=t.order||1,this.time=t.time||null,this.name=t.name,this.items=t.items||[],this.diaryEntries=t.diaryEntries||[]}get isRealMeal(){return this.id!==wZ}get timeHHMMLocale(){return ej(this.time)}get displayName(){return this.name?this.name:this.timeHHMMLocale}get diaryEntriesToday(){return this.diaryEntries.filter(t=>al(t.datetime,new Date))}get plannedNutritionalValues(){const t=new $l;for(const n of this.items)t.add(n.nutritionalValues);return t}get loggedNutritionalValuesToday(){const t=new $l;for(const n of this.diaryEntriesToday)t.add(n.nutritionalValues);return t}static clone(t,n){return new Ip({id:n?.id??t.id,planId:n?.planId??t.planId,order:n?.order??t.order,time:n?.time??t.time,name:n?.name??t.name,items:n?.items??t.items,diaryEntries:n?.diaryEntries??t.diaryEntries})}static fromJson(t){return K6.fromJson(t)}toJson(){return K6.toJson(this)}}class NOe{fromJson(t){return new Ip({id:t.id,planId:t.plan,order:t.order,time:tj(t.time),name:t.name})}toJson(t){return{...t.id!=null?{id:t.id}:{},plan:t.planId,name:t.name,order:t.order,time:xE(t.time)}}}const K6=new NOe,wZ=-1;class GR{id;creationDate;start;end;description;onlyLogging;goalEnergy;goalProtein;goalCarbohydrates;goalFiber;goalSodium;goalFat;goalFatsSaturated;meals=[];diaryEntries=[];constructor(t){this.id=t.id??null,this.creationDate=t.creationDate??new Date,this.start=t.start??this.creationDate,this.end=t.end??null,this.description=t.description??"",this.onlyLogging=t.onlyLogging??!1,this.goalEnergy=t.goalEnergy??null,this.goalProtein=t.goalProtein??null,this.goalCarbohydrates=t.goalCarbohydrates??null,this.goalFiber=t.goalFiber??null,this.goalSodium=t.goalSodium??null,this.goalFat=t.goalFat??null,this.goalFatsSaturated=t.goalFatsSaturated??null}get hasAnyGoals(){return this.goalEnergy!==null||this.goalProtein!==null||this.goalCarbohydrates!==null||this.goalFat!==null}get hasAnyAdvancedGoals(){return this.goalFiber!==null||this.goalSodium!==null||this.goalFatsSaturated!==null}get hasAnyPlanned(){return this.hasAnyGoals||this.plannedNutritionalValues.energy>0}get plannedNutritionalValues(){if(this.hasAnyGoals)return new $l({energy:this.goalEnergy,carbohydrates:this.goalCarbohydrates,protein:this.goalProtein,fat:this.goalFat});const t=new $l;for(const n of this.meals)t.add(n.plannedNutritionalValues);return t}get loggedNutritionalValues7DayAvg(){const t=new Date,n=new Date(t.getTime()-7*24*60*60*1e3),r=this.diaryEntries.filter(o=>o.datetime>=n);return this.getAverageNutritionalValuesFromDiaryEntries(r)}get loggedNutritionalValuesToday(){const t=this.diaryEntries.filter(n=>al(n.datetime,new Date));return this.getNutritionalValuesFromDiaryEntries(t)}get groupDiaryEntries(){return this.diaryEntries.reduce((t,n)=>{const r=n.datetime.toISOString().split("T")[0],o=t.get(r)||{entries:[],nutritionalValues:new $l};return o.entries.push(n),o.nutritionalValues.add(n.nutritionalValues),t.set(r,o),t},new Map)}get percentageValuesLoggedToday(){return new $l({protein:this.loggedNutritionalValuesToday.protein/this.plannedNutritionalValues.protein*100,carbohydrates:this.loggedNutritionalValuesToday.carbohydrates/this.plannedNutritionalValues.carbohydrates*100,fat:this.loggedNutritionalValuesToday.fat/this.plannedNutritionalValues.fat*100})}clone(t){return new GR({id:t.id!==void 0?t.id:this.id,creationDate:t.creationDate!==void 0?t.creationDate:this.creationDate,start:t.start!==void 0?t.start:this.start,end:t.end!==void 0?t.end:this.end,description:t.description!==void 0?t.description:this.description,onlyLogging:t.onlyLogging!==void 0?t.onlyLogging:this.onlyLogging,goalEnergy:t.goalEnergy!==void 0?t.goalEnergy:this.goalEnergy,goalProtein:t.goalProtein!==void 0?t.goalProtein:this.goalProtein,goalCarbohydrates:t.goalCarbohydrates!==void 0?t.goalCarbohydrates:this.goalCarbohydrates,goalFiber:t.goalFiber!==void 0?t.goalFiber:this.goalFiber,goalSodium:t.goalSodium!==void 0?t.goalSodium:this.goalSodium,goalFat:t.goalFat!==void 0?t.goalFat:this.goalFat,goalFatsSaturated:t.goalFatsSaturated!==void 0?t.goalFatsSaturated:this.goalFatsSaturated})}pseudoMealOthers(t){const n=new Ip({id:wZ,order:-1,name:t});return n.diaryEntries=this.diaryEntries.filter(r=>r.mealId===null),n}loggedNutritionalValuesDate(t){return this.getNutritionalValuesFromDiaryEntries(this.loggedEntriesDate(t))}loggedEntriesDate(t){return this.diaryEntries.filter(n=>al(n.datetime,t))}getAverageNutritionalValuesFromDiaryEntries(t){const n=t.length,r=this.getNutritionalValuesFromDiaryEntries(t);return n===0||(r.energy=r.energy/n,r.protein=r.protein/n,r.carbohydrates=r.carbohydrates/n,r.carbohydratesSugar=r.carbohydratesSugar/n,r.fat=r.fat/n,r.fatSaturated=r.fatSaturated/n,r.fiber=r.fiber/n,r.sodium=r.sodium/n),r}getNutritionalValuesFromDiaryEntries(t){return t.reduce((n,r)=>n.add(r.nutritionalValues),new $l)}}class _Oe{fromJson(t){return new GR({id:t.id,creationDate:new Date(t.creation_date),start:new Date(t.start),end:t.end!==null?new Date(t.end):null,description:t.description,onlyLogging:t.only_logging,goalEnergy:t.goal_energy,goalProtein:t.goal_protein,goalCarbohydrates:t.goal_carbohydrates,goalFiber:t.goal_fiber,goalSodium:null,goalFat:t.goal_fat,goalFatsSaturated:null})}toJson(t){return{...t.id!=null?{id:t.id}:{},start:Jr(t.start),end:t.end?Jr(t.end):null,description:t.description,only_logging:t.onlyLogging,goal_energy:t.goalEnergy,goal_protein:t.goalProtein,goal_carbohydrates:t.goalCarbohydrates,goal_fiber:t.goalFiber,goal_sodium:t.goalSodium,goal_fat:t.goalFat,goal_fats_saturated:t.goalFatsSaturated}}}const Tx=new _Oe;class PT{constructor(t,n,r){this.date=t,this.weight=n,this.id=r}static fromJson(t){return Y6.fromJson(t)}toJson(){return Y6.toJson(this)}}class LOe{fromJson(t){return new PT(new Date(t.date),parseFloat(t.weight),t.id)}toJson(t){return{date:t.date.toISOString(),weight:t.weight}}}const Y6=new LOe,$Oe="/static/react",SZ="",FOe="",jOe=void 0;var aA={exports:{}},BOe=aA.exports,Q6;function zOe(){return Q6||(Q6=1,function(e){(function(t){let n;function r(u,f){const h=u.charCodeAt(f);if(isNaN(h))throw new RangeError("Index "+f+' out of range for string "'+u+'"; please open an issue at https://github.com/Trott/slug/issues/new');if(h<55296||h>57343)return[u.charAt(f),f];if(h>=55296&&h<=56319){if(u.length<=f+1)return[" ",f];const y=u.charCodeAt(f+1);return y<56320||y>57343?[" ",f]:[u.charAt(f)+u.charAt(f+1),f+1]}if(f===0)return[" ",f];const g=u.charCodeAt(f-1);if(g<55296||g>56319)return[" ",f];throw new Error('String "'+u+'" reaches code believed to be unreachable; please open an issue at https://github.com/Trott/slug/issues/new')}typeof window<"u"?window.btoa?n=function(u){return btoa(unescape(encodeURIComponent(u)))}:n=function(u){const f=unescape(encodeURIComponent(u+""));let h="";for(let g,y,x=0,S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";f.charAt(x|0)||(S="=",x%1);h+=S.charAt(63&g>>8-x%1*8)){if(y=f.charCodeAt(x+=3/4),y>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");g=g<<8|y}return h}:n=function(u){return Buffer.from(u).toString("base64")};function o(u,f){let h=s(u,f);if((f&&f.fallback!==void 0?f.fallback:o.defaults.fallback)===!0&&h===""){let y="";for(let x=0;x<u.length;x++){const S=r(u,x);x=S[1],y+=S[0]}h=s(n(y),f)}return h}const i={bg:{Й:"Y",й:"y",X:"H",x:"h",Ц:"Ts",ц:"ts",Щ:"Sht",щ:"sht",Ъ:"A",ъ:"a",Ь:"Y",ь:"y"},de:{Ä:"AE",ä:"ae",Ö:"OE",ö:"oe",Ü:"UE",ü:"ue"},sr:{đ:"dj",Đ:"DJ"},uk:{И:"Y",и:"y",Й:"Y",й:"y",Ц:"Ts",ц:"ts",Х:"Kh",х:"kh",Щ:"Shch",щ:"shch",Г:"H",г:"h"}};let a={};function s(u,f){if(typeof u!="string")throw new Error("slug() requires a string argument, received "+typeof u);typeof f=="string"&&(f={replacement:f}),f=f?Object.assign({},f):{},f.mode=f.mode||o.defaults.mode;const h=o.defaults.modes[f.mode],g=["replacement","multicharmap","charmap","remove","lower","trim"];for(let E,I=0,M=g.length;I<M;I++)E=g[I],f[E]=E in f?f[E]:h[E];const y=i[f.locale]||a;let x=[];for(const E in f.multicharmap){if(!Object.prototype.hasOwnProperty.call(f.multicharmap,E))continue;const I=E.length;x.indexOf(I)===-1&&x.push(I)}x=x.sort(function(E,I){return I-E});const S=f.mode==="rfc3986"?/[^\w\s\-.~]/:/[^A-Za-z0-9\s]/;let C="";for(let E,I=0,M=u.length;I<M;I++){E=u[I];let O=!1;for(let D=0;D<x.length;D++){const N=x[D],$=u.substr(I,N);if(f.multicharmap[$]){I+=N-1,E=f.multicharmap[$],O=!0;break}}O||(y[E]?E=y[E]:f.charmap[E]?E=f.charmap[E].replace(f.replacement," "):E.includes(f.replacement)?E=E.replace(f.replacement," "):E=E.replace(S,"")),C+=E}return f.remove&&(C=C.replace(f.remove,"")),f.trim&&(C=C.trim()),C=C.replace(/\s+/g,f.replacement),f.lower&&(C=C.toLowerCase()),C}const l={फ़:"Fi",ग़:"Ghi",ख़:"Khi",क़:"Qi",ड़:"ugDha",ढ़:"ugDhha",य़:"Yi",ज़:"Za",בִי:"i",בֵ:"e",בֵי:"e",בֶ:"e",בַ:"a",בָ:"a",בֹ:"o",וֹ:"o",בֻ:"u",וּ:"u",בּ:"b",כּ:"k",ךּ:"k",פּ:"p",שׁ:"sh",שׂ:"s",בְ:"e",חֱ:"e",חֲ:"a",חֳ:"o",בִ:"i"},c={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ő:"O",Ø:"O",Ō:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ő:"o",ø:"o",ō:"o",Œ:"OE",œ:"oe",ù:"u",ú:"u",û:"u",ü:"u",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",α:"a",β:"b",γ:"g",δ:"d",ε:"e",ζ:"z",η:"h",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"3",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"w",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"h",ώ:"w",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"H",Θ:"Th",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ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:"a",إ:"i",ب:"b",ت:"t",ث:"th",ج:"g",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"d",ط:"t",ظ:"th",ع:"aa",غ:"gh",ف:"f",ق:"k",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"o",ي:"y",ء:"aa",ة:"a",آ:"a",ا:"a",پ:"p",ژ:"zh",گ:"g",چ:"ch",ک:"k",ی:"i",ė:"e",į:"i",ų:"u",Ė:"E",Į:"I",Ų:"U",ț:"t",Ț:"T",ţ:"t",Ţ:"T",ș:"s",Ș:"S",ă:"a",Ă:"A",Ạ:"A",Ả:"A",Ầ:"A",Ấ:"A",Ậ:"A",Ẩ:"A",Ẫ:"A",Ằ:"A",Ắ:"A",Ặ:"A",Ẳ:"A",Ẵ:"A",Ẹ:"E",Ẻ:"E",Ẽ:"E",Ề:"E",Ế:"E",Ệ:"E",Ể:"E",Ễ:"E",Ị:"I",Ỉ:"I",Ĩ:"I",Ọ:"O",Ỏ:"O",Ồ:"O",Ố:"O",Ộ:"O",Ổ:"O",Ỗ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ợ:"O",Ở:"O",Ỡ:"O",Ụ:"U",Ủ:"U",Ũ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ự:"U",Ử:"U",Ữ:"U",Ỳ:"Y",Ỵ:"Y",Ỷ:"Y",Ỹ:"Y",Đ:"D",ạ:"a",ả:"a",ầ:"a",ấ:"a",ậ:"a",ẩ:"a",ẫ:"a",ằ:"a",ắ:"a",ặ:"a",ẳ:"a",ẵ:"a",ẹ:"e",ẻ:"e",ẽ:"e",ề:"e",ế:"e",ệ:"e",ể:"e",ễ:"e",ị:"i",ỉ:"i",ĩ:"i",ọ:"o",ỏ:"o",ồ:"o",ố:"o",ộ:"o",ổ:"o",ỗ:"o",ơ:"o",ờ:"o",ớ:"o",ợ:"o",ở:"o",ỡ:"o",ụ:"u",ủ:"u",ũ:"u",ư:"u",ừ:"u",ứ:"u",ự:"u",ử:"u",ữ:"u",ỳ:"y",ỵ:"y",ỷ:"y",ỹ:"y",đ:"d",Ә:"AE",ә:"ae",Ғ:"GH",ғ:"gh",Қ:"KH",қ:"kh",Ң:"NG",ң:"ng",Ү:"UE",ү:"ue",Ұ:"U",ұ:"u",Һ:"H",һ:"h",Ө:"OE",ө:"oe",ђ:"dj",ј:"j",љ:"lj",њ:"nj",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Љ:"Lj",Њ:"Nj",Ћ:"C",Џ:"Dz",nj:"nj",lj:"lj",Nj:"NJ",Lj:"LJ",अ:"a",आ:"aa",ए:"e",ई:"ii",ऍ:"ei",ऎ:"ae",ऐ:"ai",इ:"i",ओ:"o",ऑ:"oi",ऒ:"oii",ऊ:"uu",औ:"ou",उ:"u",ब:"B",भ:"Bha",च:"Ca",छ:"Chha",ड:"Da",ढ:"Dha",फ:"Fa",ग:"Ga",घ:"Gha",ग़:"Ghi",ह:"Ha",ज:"Ja",झ:"Jha",क:"Ka",ख:"Kha",ख़:"Khi",ल:"L",ळ:"Li",ऌ:"Li",ऴ:"Lii",ॡ:"Lii",म:"Ma",न:"Na",ङ:"Na",ञ:"Nia",ण:"Nae",ऩ:"Ni",ॐ:"oms",प:"Pa",क़:"Qi",र:"Ra",ऋ:"Ri",ॠ:"Ri",ऱ:"Ri",स:"Sa",श:"Sha",ष:"Shha",ट:"Ta",त:"Ta",ठ:"Tha",द:"Tha",थ:"Tha",ध:"Thha",ड़:"ugDha",ढ़:"ugDhha",व:"Va",य:"Ya",य़:"Yi",ज़:"Za",ə:"e",Ə:"E",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",ב:"v",גּ:"g",ג:"g",ד:"d",דּ:"d",ה:"h",ו:"v",ז:"z",ח:"h",ט:"t",י:"y",כ:"kh",ך:"kh",ל:"l",מ:"m",ם:"m",נ:"n",ן:"n",ס:"s",פ:"f",ף:"f",ץ:"ts",צ:"ts",ק:"k",ר:"r",תּ:"t",ת:"t"};o.charmap=Object.assign({},c),o.multicharmap=Object.assign({},l),o.defaults={charmap:o.charmap,mode:"pretty",modes:{rfc3986:{replacement:"-",remove:null,lower:!0,charmap:o.charmap,multicharmap:o.multicharmap,trim:!0},pretty:{replacement:"-",remove:null,lower:!0,charmap:o.charmap,multicharmap:o.multicharmap,trim:!0}},multicharmap:o.multicharmap,fallback:!0},o.reset=function(){o.defaults.modes.rfc3986.charmap=o.defaults.modes.pretty.charmap=o.charmap=o.defaults.charmap=Object.assign({},c),o.defaults.modes.rfc3986.multicharmap=o.defaults.modes.pretty.multicharmap=o.multicharmap=o.defaults.multicharmap=Object.assign({},l),a=""},o.extend=function(u){const f=Object.keys(u),h={},g={};for(let y=0;y<f.length;y++)f[y].length>1?h[f[y]]=u[f[y]]:g[f[y]]=u[f[y]];Object.assign(o.charmap,g),Object.assign(o.multicharmap,h)},o.setLocale=function(u){a=i[u]||{}},e.exports?e.exports=o:t.slug=o})(BOe)}(aA)),aA.exports}var VOe=zOe();const CZ=cs(VOe);function Pt(e,t){t=t||{};const r=[t.server||FOe,"api","v2",e];if(t.id&&r.push(t.id.toString()),t.objectMethod&&r.push(t.objectMethod),r.push(""),t.query){const o=[];for(const i in t.query)Object.hasOwn(t.query,i)&&o.push(`${encodeURIComponent(i)}=${encodeURIComponent(t.query[i])}`);r.pop(),r.push(`?${o.join("&")}`)}return r.join("/")}var hn=(e=>(e[e.DASHBOARD=0]="DASHBOARD",e[e.ROUTINE_OVERVIEW=1]="ROUTINE_OVERVIEW",e[e.ROUTINE_DETAIL=2]="ROUTINE_DETAIL",e[e.ROUTINE_EDIT=3]="ROUTINE_EDIT",e[e.ROUTINE_DETAIL_TABLE=4]="ROUTINE_DETAIL_TABLE",e[e.ROUTINE_EDIT_PROGRESSION=5]="ROUTINE_EDIT_PROGRESSION",e[e.ROUTINE_ADD=6]="ROUTINE_ADD",e[e.ROUTINE_LOGS_OVERVIEW=7]="ROUTINE_LOGS_OVERVIEW",e[e.ROUTINE_STATS_OVERVIEW=8]="ROUTINE_STATS_OVERVIEW",e[e.ROUTINE_PDF_TABLE=9]="ROUTINE_PDF_TABLE",e[e.ROUTINE_PDF_LOGS=10]="ROUTINE_PDF_LOGS",e[e.ROUTINE_ICAL=11]="ROUTINE_ICAL",e[e.ROUTINE_COPY=12]="ROUTINE_COPY",e[e.ROUTINE_ADD_LOG=13]="ROUTINE_ADD_LOG",e[e.TEMPLATE_DETAIL=14]="TEMPLATE_DETAIL",e[e.PRIVATE_TEMPLATE_OVERVIEW=15]="PRIVATE_TEMPLATE_OVERVIEW",e[e.PUBLIC_TEMPLATE_OVERVIEW=16]="PUBLIC_TEMPLATE_OVERVIEW",e[e.EXERCISE_DETAIL=17]="EXERCISE_DETAIL",e[e.EXERCISE_OVERVIEW=18]="EXERCISE_OVERVIEW",e[e.EXERCISE_CONTRIBUTE=19]="EXERCISE_CONTRIBUTE",e[e.WEIGHT_OVERVIEW=20]="WEIGHT_OVERVIEW",e[e.WEIGHT_ADD=21]="WEIGHT_ADD",e[e.MEASUREMENT_OVERVIEW=22]="MEASUREMENT_OVERVIEW",e[e.MEASUREMENT_DETAIL=23]="MEASUREMENT_DETAIL",e[e.NUTRITION_OVERVIEW=24]="NUTRITION_OVERVIEW",e[e.NUTRITION_DETAIL=25]="NUTRITION_DETAIL",e[e.NUTRITION_PLAN_PDF=26]="NUTRITION_PLAN_PDF",e[e.NUTRITION_PLAN_COPY=27]="NUTRITION_PLAN_COPY",e[e.NUTRITION_DIARY=28]="NUTRITION_DIARY",e[e.INGREDIENT_DETAIL=29]="INGREDIENT_DETAIL",e[e.CALENDAR=30]="CALENDAR",e))(hn||{});function Cn(e,t,n){t=t||"en-us";const r=t.split("-")[0];switch(e){case 1:return`/${r}/routine/overview`;case 2:return`/${r}/routine/${n.id}/view`;case 4:return`/${r}/routine/${n.id}/table`;case 3:return`/${r}/routine/${n.id}/edit`;case 5:return`/${r}/routine/${n.id}/edit/progression/${n.id2}`;case 6:return`/${r}/routine/add`;case 12:return`/${r}/routine/${n.id}/copy`;case 9:return`/${r}/routine/${n.id}/pdf/table`;case 10:return`/${r}/routine/${n.id}/pdf/log`;case 11:return`/${r}/routine/${n.id}/ical`;case 7:return`/${r}/routine/${n.id}/logs`;case 8:return`/${r}/routine/${n.id}/statistics`;case 13:return`/${r}/routine/${n.id}/day/${n.id2}/add-logs`;case 30:return`/${r}/routine/calendar`;case 14:return`/${r}/routine/templates/${n.id}/view`;case 15:return`/${r}/routine/templates/overview/private`;case 16:return`/${r}/routine/templates/overview/public`;case 19:return`/${r}/exercise/contribute`;case 17:return n.slug?`/${r}/exercise/${n.id}/view/${CZ(n.slug)}`:`/${r}/exercise/${n.id}/view`;case 18:return`/${r}/exercise/overview`;case 20:return`/${r}/weight/overview`;case 21:return`/${r}/weight/add`;case 22:return`/${r}/measurement/overview`;case 23:return`/${r}/measurement/category/${n.id}`;case 24:return`/${r}/nutrition/overview`;case 25:return`/${r}/nutrition/${n.id}/view`;case 28:return`/${r}/nutrition/${n.id}/${n.date}`;case 26:return`/${r}/nutrition/${n.id}/pdf`;case 27:return`/${r}/nutrition/${n.id}/copy`;case 29:return`/${r}/nutrition/ingredient/${n.id}/view`;case 0:default:return"/"}}function HOe(e){let t=null;if(document.cookie&&document.cookie!==""){const n=document.cookie.split(";");for(let r=0;r<n.length;r++){const o=n[r].trim();if(o.substring(0,e.length+1)===e+"="){t=decodeURIComponent(o.substring(e.length+1));break}}}return t}function It(e){e=e||jOe;const t="csrftoken",n={};n["Content-Type"]="application/json",e&&(n.Authorization=`Token ${e}`);const r=HOe(t);return r!=null&&(n["X-CSRFToken"]=r),n}const WR="weightentry",UOe=async(e="")=>{const t=kOe(e),n=Pt(WR,{query:{ordering:"-date",limit:900,...t&&{date__gte:t}}}),{data:r}=await bt.get(n,{headers:It()});return r.results.map(o=>PT.fromJson(o))},GOe=async e=>(await bt.delete(Pt(WR,{id:e}),{headers:It()})).status,WOe=async e=>{const t=await bt.patch(Pt(WR,{id:e.id}),e.toJson(),{headers:It()});return PT.fromJson(t)},qOe=async e=>{const t=await bt.post(Pt(WR),e.toJson(),{headers:It()});return PT.fromJson(t.data)},KOe=22;function YOe(e,t=KOe){return e.length>t?e.slice(0,t)+"…":e}function QOe(e){return e.toLowerCase().replace(/\s/g,"_").replace("(","_").replace(")","_").replace("-","_")}function eV(e){return e===void 0?(console.warn("called getTranslationKey with undefined name"),""):`server.${QOe(e)}`}class XOe{constructor(t,n,r,o){this.id=t,this.name=n,this.nameEn=r,this.isFront=o}get translatedName(){return jn.t(eV(this.nameEn),{defaultValue:this.nameEn})}getName(){return this.nameEn?`${this.name} (${this.translatedName})`:this.name}}class EZ{fromJson(t){return new XOe(t.id,t.name,t.name_en,t.is_front)}toJson(t){return{}}}const JOe="muscle",ZOe=async()=>{const e=Pt(JOe),{data:t}=await bt.get(e,{headers:It()}),n=new EZ;return t.results.map(r=>n.fromJson(r))},{slice:eMe,forEach:tMe}=[];function nMe(e){return tMe.call(eMe.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function rMe(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const X6=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,oMe=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},o=encodeURIComponent(t);let i=`${e}=${o}`;if(r.maxAge>0){const a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(a)}`}if(r.domain){if(!X6.test(r.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${r.domain}`}if(r.path){if(!X6.test(r.path))throw new TypeError("option path is invalid");i+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(i+="; Partitioned"),i},J6={create(e,t,n,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),r&&(o.domain=r),document.cookie=oMe(e,t,o)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let o=n[r];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var iMe={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return J6.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:i}=t;n&&typeof document<"u"&&J6.create(n,e,r,o,i)}},aMe={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const i=r.substring(1).split("&");for(let a=0;a<i.length;a++){const s=i[a].indexOf("=");s>0&&i[a].substring(0,s)===t&&(n=i[a].substring(s+1))}}return n}},sMe={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:o}=window.location;if(o&&o.length>2){const i=o.substring(1);if(t){const a=i.split("&");for(let s=0;s<a.length;s++){const l=a[s].indexOf("=");l>0&&a[s].substring(0,l)===t&&(r=a[s].substring(l+1))}}if(r)return r;if(!r&&n>-1){const a=o.match(/\/([a-zA-Z-]*)/g);return Array.isArray(a)?a[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let O0=null;const Z6=()=>{if(O0!==null)return O0;try{if(O0=typeof window<"u"&&window.localStorage!==null,!O0)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{O0=!1}return O0};var lMe={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&Z6())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&Z6()&&window.localStorage.setItem(n,e)}};let M0=null;const eG=()=>{if(M0!==null)return M0;try{if(M0=typeof window<"u"&&window.sessionStorage!==null,!M0)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{M0=!1}return M0};var cMe={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&eG())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&eG()&&window.sessionStorage.setItem(n,e)}},uMe={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:o}=navigator;if(n)for(let i=0;i<n.length;i++)t.push(n[i]);r&&t.push(r),o&&t.push(o)}return t.length>0?t:void 0}},dMe={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},fMe={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},pMe={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let TZ=!1;try{document.cookie,TZ=!0}catch{}const PZ=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];TZ||PZ.splice(1,1);const hMe=()=>({order:PZ,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class IZ{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=nMe(n,this.options||{},hMe()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(iMe),this.addDetector(aMe),this.addDetector(lMe),this.addDetector(cMe),this.addDetector(uMe),this.addDetector(dMe),this.addDetector(fMe),this.addDetector(pMe),this.addDetector(sMe)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let o=this.detectors[r].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),n=n.filter(r=>r!=null&&!rMe(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}IZ.type="languageDetector";function nj(e){"@babel/helpers - typeof";return nj=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nj(e)}function OZ(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":nj(XMLHttpRequest))==="object"}function mMe(e){return!!e&&typeof e.then=="function"}function gMe(e){return mMe(e)?e:Promise.resolve(e)}function tG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function nG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tG(Object(n),!0).forEach(function(r){yMe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yMe(e,t,n){return(t=vMe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vMe(e){var t=bMe(e,"string");return rv(t)=="symbol"?t:t+""}function bMe(e,t){if(rv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rv(e){"@babel/helpers - typeof";return rv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rv(e)}var Tm=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?Tm=global.fetch:typeof window<"u"&&window.fetch&&(Tm=window.fetch);var wE;OZ()&&(typeof global<"u"&&global.XMLHttpRequest?wE=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(wE=window.XMLHttpRequest));var WA;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?WA=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(WA=window.ActiveXObject));typeof Tm!="function"&&(Tm=void 0);if(!Tm&&!wE&&!WA)try{Bye(()=>import("./chunks/browser-ponyfill-DX_7BlZA.js").then(e=>e.b),[]).then(function(e){Tm=e.default}).catch(function(){})}catch{}var rj=function(t,n){if(n&&rv(n)==="object"){var r="";for(var o in n)r+="&"+encodeURIComponent(o)+"="+encodeURIComponent(n[o]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},rG=function(t,n,r,o){var i=function(l){if(!l.ok)return r(l.statusText||"Error",{status:l.status});l.text().then(function(c){r(null,{status:l.status,data:c})}).catch(r)};if(o){var a=o(t,n);if(a instanceof Promise){a.then(i).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(i).catch(r):Tm(t,n).then(i).catch(r)},oG=!1,xMe=function(t,n,r,o){t.queryStringParams&&(n=rj(n,t.queryStringParams));var i=nG({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(i["Content-Type"]="application/json");var a=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,s=nG({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},oG?{}:a),l=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{rG(n,s,o,l)}catch(c){if(!a||Object.keys(a).length===0||!c.message||c.message.indexOf("not implemented")<0)return o(c);try{Object.keys(a).forEach(function(u){delete s[u]}),rG(n,s,o,l),oG=!0}catch(u){o(u)}}},wMe=function(t,n,r,o){r&&rv(r)==="object"&&(r=rj("",r).slice(1)),t.queryStringParams&&(n=rj(n,t.queryStringParams));try{var i=wE?new wE:new WA("MSXML2.XMLHTTP.3.0");i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var a=t.customHeaders;if(a=typeof a=="function"?a():a,a)for(var s in a)i.setRequestHeader(s,a[s]);i.onreadystatechange=function(){i.readyState>3&&o(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(l){console&&console.log(l)}},SMe=function(t,n,r,o){if(typeof r=="function"&&(o=r,r=void 0),o=o||function(){},Tm&&n.indexOf("file:")!==0)return xMe(t,n,r,o);if(OZ()||typeof ActiveXObject=="function")return wMe(t,n,r,o);o(new Error("No fetch and no xhr implementation found!"))};function Px(e){"@babel/helpers - typeof";return Px=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Px(e)}function iG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function w_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iG(Object(n),!0).forEach(function(r){MZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EMe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AZ(r.key),r)}}function TMe(e,t,n){return t&&EMe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function MZ(e,t,n){return(t=AZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AZ(e){var t=PMe(e,"string");return Px(t)=="symbol"?t:t+""}function PMe(e,t){if(Px(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Px(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var IMe=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,o){return MZ({},r,o||"")},parseLoadPayload:function(n,r){},request:SMe,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},DZ=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};CMe(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return TMe(e,[{key:"init",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=w_(w_(w_({},IMe()),this.options||{}),o),this.allOptions=i,this.services&&this.options.reloadInterval){var a=setInterval(function(){return r.reload()},this.options.reloadInterval);Px(a)==="object"&&typeof a.unref=="function"&&a.unref()}}},{key:"readMulti",value:function(n,r,o){this._readAny(n,n,r,r,o)}},{key:"read",value:function(n,r,o){this._readAny([n],n,[r],r,o)}},{key:"_readAny",value:function(n,r,o,i,a){var s=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,o)),l=gMe(l),l.then(function(c){if(!c)return a(null,{});var u=s.services.interpolator.interpolate(c,{lng:n.join("+"),ns:o.join("+")});s.loadUrl(u,a,r,i)})}},{key:"loadUrl",value:function(n,r,o,i){var a=this,s=typeof o=="string"?[o]:o,l=typeof i=="string"?[i]:i,c=this.options.parseLoadPayload(s,l);this.options.request(this.options,n,c,function(u,f){if(f&&(f.status>=500&&f.status<600||!f.status))return r("failed loading "+n+"; status code: "+f.status,!0);if(f&&f.status>=400&&f.status<500)return r("failed loading "+n+"; status code: "+f.status,!1);if(!f&&u&&u.message){var h=u.message.toLowerCase(),g=["failed","fetch","network","load"].find(function(S){return h.indexOf(S)>-1});if(g)return r("failed loading "+n+": "+u.message,!0)}if(u)return r(u,!1);var y,x;try{typeof f.data=="string"?y=a.options.parse(f.data,o,i):y=f.data}catch{x="failed parsing "+n+" to json"}if(x)return r(x,!1);r(null,y)})}},{key:"create",value:function(n,r,o,i,a){var s=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,o,i),c=0,u=[],f=[];n.forEach(function(h){var g=s.options.addPath;typeof s.options.addPath=="function"&&(g=s.options.addPath(h,r));var y=s.services.interpolator.interpolate(g,{lng:h,ns:r});s.options.request(s.options,y,l,function(x,S){c+=1,u.push(x),f.push(S),c===n.length&&typeof a=="function"&&a(u,f)})})}}},{key:"reload",value:function(){var n=this,r=this.services,o=r.backendConnector,i=r.languageUtils,a=r.logger,s=o.language;if(!(s&&s.toLowerCase()==="cimode")){var l=[],c=function(f){var h=i.toResolveHierarchy(f);h.forEach(function(g){l.indexOf(g)<0&&l.push(g)})};c(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(u){return c(u)}),l.forEach(function(u){n.allOptions.ns.forEach(function(f){o.read(u,f,"read",null,null,function(h,g){h&&a.warn("loading namespace ".concat(f," for language ").concat(u," failed"),h),!h&&g&&a.log("loaded namespace ".concat(f," for language ").concat(u),g),o.loaded("".concat(u,"|").concat(f),h,g)})})})}}}])}();DZ.type="backend";jn.use(DZ).use(IZ).use(NPe).init({load:"languageOnly",detection:{order:["path","navigator","htmlTag"]},fallbackLng:"en",interpolation:{escapeValue:!1},backend:{loadPath:"/static/react/locales/{{lng}}/{{ns}}.json"}});class OMe{constructor(t,n){this.id=t,this.name=n}get translatedName(){return jn.t(eV(this.name),{defaultValue:this.name})}}class RZ{fromJson(t){return new OMe(t.id,t.name)}toJson(t){return{id:t.id,name:t.name}}}const MMe="equipment",AMe=async()=>{const e=Pt(MMe),{data:t}=await bt.get(e,{headers:It()}),n=new RZ;return t.results.map(r=>n.fromJson(r))};class DMe{constructor(t,n){this.id=t,this.name=n}get translatedName(){return jn.t(eV(this.name),{defaultValue:this.name})}}class kZ{fromJson(t){return new DMe(t.id,t.name)}toJson(t){return{id:t.id,name:t.name}}}const RMe="exercisecategory",kMe=async()=>{const e=Pt(RMe),{data:t}=await bt.get(e,{headers:It()}),n=new kZ;return t.results.map(r=>n.fromJson(r))};var ip=(e=>(e[e.LINE_ART=1]="LINE_ART",e[e.THREE_D=2]="THREE_D",e[e.LOW_POLY=3]="LOW_POLY",e[e.PHOTO=4]="PHOTO",e[e.OTHER=5]="OTHER",e))(ip||{});class NMe{constructor(t,n,r,o){this.id=t,this.uuid=n,this.url=r,this.isMain=o}}class oj{fromJson(t){return new NMe(t.id,t.uuid,t.image,t.is_main)}toJson(t){return{id:t.id,image:t.url,is_front:t.isMain}}}class _Me{constructor(t,n,r){this.id=t,this.uuid=n,this.alias=r}}class NZ{fromJson(t){return new _Me(t.id,t.uuid,t.alias)}toJson(t){return{id:t.id,name:t.alias}}}class LMe{constructor(t,n,r){this.id=t,this.exercise=n,this.note=r}}class $Me{fromJson(t){return new LMe(t.id,t.exercise,t.comment)}toJson(t){return{id:t.id,comment:t.note,exercise:t.exercise}}}class _Z{constructor(t,n,r,o,i,a,s,l){this.id=t,this.uuid=n,this.name=r,this.description=o,this.language=i,a&&(this.notes=a),s&&(this.aliases=s),l&&(this.authors=l)}notes=[];aliases=[];authors=[];get nameLong(){return YOe(this.name)}get nameSlug(){return CZ(this.name)}}class tV{fromJson(t){return new _Z(t.id,t.uuid,t.name,t.description,t.language,t.notes?.map(n=>new $Me().fromJson(n)),t.aliases?.map(n=>new NZ().fromJson(n)),t.author_history)}toJson(t){return{id:t.id,uuid:t.uuid,name:t.name,description:t.description,language:t.language}}}class FMe{constructor(t,n,r,o){this.id=t,this.uuid=n,this.url=r,this.isMain=o}}class LZ{fromJson(t){return new FMe(t.id,t.uuid,t.video,t.is_main)}toJson(t){return{id:t.id,video:t.url}}}class nV{constructor(t,n,r){this.id=t,this.nameShort=n,this.nameLong=r}}class jMe{fromJson(t){return new nV(t.id,t.short_name,t.full_name)}toJson(t){return{}}}const Pm=2,$Z="en",BMe=new nV(Pm,$Z,"English"),zMe=21,VMe=1,HMe=1,UMe=2,GMe="variations",WMe="detail",qMe="permission",dw="measurements",fw="measurements-categories";var xt=(e=>(e.ROUTINE_OVERVIEW="routine-overview",e.ROUTINE_DETAIL="routine-detail",e.SESSION_SEARCH="session-search",e.SESSIONS_FULL="sessions-full",e.ROUTINE_LOGS="routine-logs",e.ROUTINE_LOG_DATA="routine-log-data",e.ROUTINE_STATS="routine-stats",e.ROUTINES_ACTIVE="routines-active",e.ROUTINES_SHALLOW="routines-shallow",e.PRIVATE_TEMPLATES="private-templates",e.PUBLIC_TEMPLATES="public-templates",e.NUTRITIONAL_PLANS="nutritional-plans",e.NUTRITIONAL_PLAN="nutritional-plan",e.NUTRITIONAL_PLAN_DIARY="nutritional-plan-diary",e.NUTRITIONAL_PLAN_LAST="nutritional-plan-last",e.INGREDIENT="ingredient",e.BODY_WEIGHT="body-weight",e.ROUTINE_WEIGHT_UNITS="weight-units",e.ROUTINE_REP_UNITS="rep-units",e.QUERY_PROFILE="profile",e.EXERCISES="exercises",e.EXERCISE_VARIATIONS="variations",e.EXERCISE_DETAIL="detail",e.LANGUAGES="languages",e.CATEGORIES="categories",e.EQUIPMENT="equipment",e.MUSCLES="muscles",e.QUERY_NOTES="notes",e))(xt||{}),kt=(e=>(e.MEAL="meal",e.MEAL_ITEM="mealitem",e.NUTRITIONAL_DIARY="nutritiondiary",e.INGREDIENTINFO_PATH="ingredientinfo",e.INGREDIENT_SEARCH_PATH="ingredient/search",e.INGREDIENT_WEIGHT_UNIT="ingredientweightunit",e.ROUTINE="routine",e.WEIGHT_CONFIG="weight-config",e.MAX_WEIGHT_CONFIG="max-weight-config",e.REPETITIONS_CONFIG="repetitions-config",e.MAX_REPS_CONFIG="max-repetitions-config",e.RIR_CONFIG="rir-config",e.MAX_RIR_CONFIG="max-rir-config",e.NR_OF_SETS_CONFIG="sets-config",e.MAX_NR_OF_SETS_CONFIG="max-sets-config",e.REST_CONFIG="rest-config",e.MAX_REST_CONFIG="max-rest-config",e.DAY="day",e.SLOT="slot",e.SLOT_ENTRY="slot-entry",e.SESSION="workoutsession",e.WORKOUT_LOG="workoutlog",e.PRIVATE_TEMPLATE="templates",e.PUBLIC_TEMPLATE="public-templates",e.API_PROFILE_PATH="userprofile",e))(kt||{});const ij="999",KMe="100",YMe=["#2a4c7d","#5b5291","#8e5298","#bf5092","#e7537e","#ff6461","#ff813d","#ffa600"],QMe=["#2a4c7d","#825298","#d45089","#ff6a59","#ffa600"],XMe=["#2a4c7d","#d45089","#ffa600"],aj={pageSizeOptions:[5,10,25,50,100],pageSize:10},JMe="Europe/Berlin",Ix="en",IT=3e3,FZ=500;class ZMe{constructor(t,n,r,o,i,a,s,l,c,u,f){this.id=t,this.uuid=n,this.category=r,this.equipment=o,this.muscles=i,this.musclesSecondary=a,this.images=s,this.variationId=l,c&&(this.translations=c),u&&(this.videos=u),f&&(this.authors=f)}translations=[];videos=[];authors=[];get availableLanguages(){return this.translations.map(t=>t.language)}get mainImage(){return this.images.find(t=>t.isMain)}get sideImages(){return this.images.filter(t=>!t.isMain)}getTranslation(t){const n=t!=null?t.id:Pm;let r=this.translations.find(o=>o.language===n);return r||(r=this.translations.find(o=>o.language===Pm)),r||this.translations[0]}}class jZ{fromJson(t){const n=new kZ,r=new RZ,o=new EZ,i=new oj,a=new tV,s=new LZ,l=new ZMe(t.id,t.uuid,n.fromJson(t.category),t.equipment.map(c=>r.fromJson(c)),t.muscles.map(c=>o.fromJson(c)),t.muscles_secondary.map(c=>o.fromJson(c)),t.images.map(c=>i.fromJson(c)),t.variations,t.translations.map(c=>a.fromJson(c)),t.videos.map(c=>s.fromJson(c)),t.author_history);if(l.translations.some(c=>c.language===Pm)||console.info(`No english translation found for exercise base ${l.uuid}!`),l.translations.length===0)throw new Error(`No translations found for exercise base ${l.uuid}!`);return l}toJson(t){return{id:t.id,uuid:t.uuid,category:t.category.id,equipment:t.equipment.map(n=>n.id),muscles:t.muscles.map(n=>n.id),muscles_secondary:t.musclesSecondary.map(n=>n.id),images:t.images.map(n=>new oj().toJson(n))}}}const rV="exerciseinfo",BZ="exercise",eAe="exercise-submission";function zZ(e){const t=new jZ,n=[];for(const r of e.results)try{n.push(t.fromJson(r))}catch(o){console.error("An error happened, skipping base:",o)}return n}const tAe=async()=>{const e=Pt(rV,{query:{limit:900}}),t=await bt.get(e,{headers:It()});return zZ(t.data)},pw=async e=>{const t=new jZ,n=Pt(rV,{id:e}),r=await bt.get(n,{headers:It()});return t.fromJson(r.data)},nAe=async e=>{if(!e)return[];const t=Pt(rV,{query:{variations:e}}),n=await bt.get(t,{headers:It()});return zZ(n.data)},rAe=async e=>{const t=Pt(eAe),n={category:e.exercise.categoryId,equipment:e.exercise.equipmentIds,muscles:e.exercise.muscleIds,muscles_secondary:e.exercise.secondaryMuscleIds,license_author:e.author??"",variations:e.variations??null,variations_connect_to:e.variationsConnectTo??null,translations:[...e.translations.map(o=>({name:o.name,description:o.description,language:o.language,license_author:e.author??"",aliases:o.aliases??[],comments:o.comments??[]}))]};return(await bt.post(t,n,{headers:It()})).data.id},oV=async(e,t)=>{const n=Pt(BZ,{id:e});return(await bt.patch(n,t,{headers:It()})).status},aG=async(e,t)=>{const r=Pt(BZ,t===void 0?{id:e}:{id:e,query:{replaced_by:t}});return(await bt.delete(r,{headers:It()})).status},iV="exercise-translation",oAe="exercise/search",iAe=async(e,t=$Z,n=!0)=>{const r=[t];t!==Ix&&n&&r.push(Ix);const o=Pt(oAe,{query:{term:e,language:r.join(",")}}),{data:i}=await bt.get(o);return i.suggestions},aAe=async e=>{const{exerciseId:t,languageId:n,name:r,description:o,author:i}=e,a=Pt(iV),s={exercise:t,language:n,name:r,description:o,license_author:i},l=await bt.post(a,s,{headers:It()});return new tV().fromJson(l.data)},sAe=async e=>{const{id:t,exerciseId:n,languageId:r,name:o,description:i}=e,a=Pt(iV,{id:t}),s={exercise:n,language:r,name:o,description:i},l=await bt.patch(a,s,{headers:It()});return new tV().fromJson(l.data)},lAe=async e=>{const t=Pt(iV,{id:e});return(await bt.delete(t,{headers:It()})).status},cAe="language",uAe=async()=>{const e=Pt(cAe),{data:t}=await bt.get(e,{headers:It()}),n=new jMe;return t.results.map(r=>n.fromJson(r))},Op=(e,t)=>{const n=e.split("-")[0],r=t.find(o=>o.nameShort===n);if(r)return r},VZ="exerciseimage",HZ=async e=>{const t=Pt(VZ),n=It();n["Content-Type"]="multipart/form-data";const r=await bt.post(t,{exercise:e.exerciseId,image:e.image,license_title:e.imageData.title,license_object_url:e.imageData.objectUrl,license_author:e.imageData.author,license_author_url:e.imageData.authorUrl,license_derivative_source_url:e.imageData.derivativeSourceUrl,style:e.imageData.style},{headers:n});return new oj().fromJson(r.data)},dAe=async e=>{const t=Pt(VZ,{id:e}),n=It();return(await bt.delete(t,{headers:n})).status},UZ="exercisealias",fAe=async(e,t)=>{const n=Pt(UZ),r=await bt.post(n,{translation:e,alias:t},{headers:It()});return new NZ().fromJson(r.data)},pAe=async e=>(await bt.delete(Pt(UZ,{id:e}),{headers:It()})).status,GZ="video",hAe=async(e,t,n)=>{const r=Pt(GZ),o=It();o["Content-Type"]="multipart/form-data";const i=await bt.post(r,{exercise:e,license_author:t,video:n},{headers:o});return new LZ().fromJson(i.data)},mAe=async e=>{const t=Pt(GZ,{id:e}),n=It();return(await bt.delete(t,{headers:n})).status},Os="r",gAe="+",yAe="-",sj=["weight","repetitions","rir","rest"],vAe=[{value:"abs",label:"Absolute"},{value:"percent",label:"Percent"}],bAe=[{value:gAe,label:"Add"},{value:yAe,label:"Subtract"},{value:Os,label:"Replace"}],WZ=[{value:"",label:"-/-"},...[0,.5,1,1.5,2,2.5,3,3.5,4].map(e=>({value:e,label:e.toString()})),{value:4.5,label:"4+"}],qZ=[...WZ];class xAe{id;slotEntryId;iteration;value;operation;step;repeat;requirements;constructor(t){this.id=t.id,this.slotEntryId=t.slotEntryId,this.iteration=t.iteration,this.value=t.value,this.operation=t.operation??"r",this.step=t.step??"abs",this.repeat=t.repeat??!1,this.requirements=t.requirements??null}get replace(){return this.operation==="r"}}class aV{fromJson=t=>new xAe({id:t.id,slotEntryId:t.slot_entry,iteration:t.iteration,value:parseFloat(t.value),operation:t.operation,step:t.step,repeat:t.repeat,requirements:t.requirements});toJson=t=>({slot_entry:t.slotEntryId,iteration:t.iteration,value:t.value,operation:t.operation,step:t.step,repeat:t.repeat,requirements:t.requirements})}class ff{id=null;slotId;exerciseId;repetitionUnitId;repetitionRounding;weightUnitId;weightRounding;order;comment;type;config;weightConfigs=[];maxWeightConfigs=[];repetitionsConfigs=[];maxRepetitionsConfigs=[];restTimeConfigs=[];maxRestTimeConfigs=[];nrOfSetsConfigs=[];maxNrOfSetsConfigs=[];rirConfigs=[];maxRirConfigs=[];exercise;repetitionUnit=null;weightUnit=null;constructor(t){this.id=t.id??null,this.slotId=t.slotId,this.exerciseId=t.exerciseId,this.exercise=t.exercise,this.repetitionUnitId=t.repetitionUnitId,this.repetitionRounding=t.repetitionRounding??null,this.weightUnitId=t.weightUnitId,this.weightRounding=t.weightRounding??null,this.order=t.order,this.comment=t.comment,this.type=t.type,this.config=t.config,t.configs!==void 0&&(this.weightConfigs=t.configs.weightConfigs??[],this.maxWeightConfigs=t.configs.maxWeightConfigs??[],this.repetitionsConfigs=t.configs.repetitionsConfigs??[],this.maxRepetitionsConfigs=t.configs.maxRepetitionsConfigs??[],this.restTimeConfigs=t.configs.restTimeConfigs??[],this.maxRestTimeConfigs=t.configs.maxRestTimeConfigs??[],this.nrOfSetsConfigs=t.configs.nrOfSetsConfigs??[],this.maxNrOfSetsConfigs=t.configs.maxNrOfSetsConfigs??[],this.rirConfigs=t.configs.rirConfigs??[],this.maxRirConfigs=t.configs.maxRirConfigs??[]),t.weightUnit!==void 0&&(this.weightUnit=t.weightUnit,this.weightUnitId=t.weightUnit.id),t.repetitionUnit!==void 0&&(this.repetitionUnit=t.repetitionUnit,this.repetitionUnitId=t.repetitionUnit.id)}get hasProgressionRules(){return this.weightConfigs.length>1||this.maxWeightConfigs.length>1||this.repetitionsConfigs.length>1||this.maxRepetitionsConfigs.length>1||this.restTimeConfigs.length>1||this.maxRestTimeConfigs.length>1||this.nrOfSetsConfigs.length>1||this.maxNrOfSetsConfigs.length>1||this.rirConfigs.length>1||this.maxRirConfigs.length>1}static clone(t,n){return new ff({id:n?.id??t?.id,exerciseId:n?.exerciseId??t.exerciseId,exercise:n?.exercise??t.exercise,slotId:n?.slotId??t.slotId,config:n?.config??t.config,type:n?.type??t.type,order:n?.order??t.order,comment:n?.comment??t.comment,repetitionUnit:n?.repetitionUnit??t.repetitionUnit??void 0,repetitionUnitId:n?.repetitionUnitId??t.repetitionUnitId,repetitionRounding:n?.repetitionRounding??t.repetitionRounding,weightUnit:n?.weightUnit??t.weightUnit??void 0,weightUnitId:n?.weightUnitId??t.weightUnitId,weightRounding:n?.weightRounding??t.weightRounding})}static fromJson(t){return sG.fromJson(t)}toJson(){return sG.toJson(this)}}class wAe{fromJson=t=>{const n=new aV,r={weightConfigs:[],maxWeightConfigs:[],repetitionsConfigs:[],maxRepetitionsConfigs:[],restTimeConfigs:[],maxRestTimeConfigs:[],nrOfSetsConfigs:[],maxNrOfSetsConfigs:[],rirConfigs:[],maxRirConfigs:[]};return Object.hasOwn(t,"weight_configs")&&(r.weightConfigs=t.weight_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"max_weight_configs")&&(r.maxWeightConfigs=t.max_weight_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"repetitions_configs")&&(r.repetitionsConfigs=t.repetitions_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"max_repetitions_configs")&&(r.maxRepetitionsConfigs=t.max_repetitions_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"set_nr_configs")&&(r.nrOfSetsConfigs=t.set_nr_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"max_set_nr_configs")&&(r.maxNrOfSetsConfigs=t.max_set_nr_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"rest_configs")&&(r.restTimeConfigs=t.rest_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"max_rest_configs")&&(r.maxRestTimeConfigs=t.max_rest_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"rir_configs")&&(r.rirConfigs=t.rir_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"max_rir_configs")&&(r.maxRirConfigs=t.max_rir_configs.map(o=>n.fromJson(o))),new ff({id:t.id,slotId:t.slot,exerciseId:t.exercise,repetitionUnitId:t.repetition_unit,repetitionRounding:t.repetition_rounding,weightUnitId:t.weight_unit,weightRounding:t.weight_rounding,order:t.order,comment:t.comment,type:t.type,config:t.config,configs:r})};toJson=t=>({slot:t.slotId,exercise:t.exerciseId,repetition_unit:t.repetitionUnitId,repetition_rounding:t.repetitionRounding,weight_unit:t.weightUnitId,weight_rounding:t.weightRounding,order:t.order,comment:t.comment,type:t.type,config:t.config})}const sG=new wAe;class Mp{id=null;dayId;order;comment;config;entries=[];constructor(t){this.id=t.id??null,this.dayId=t.dayId,this.order=t.order,this.comment=t.comment??"",this.config=t.config??null,this.entries=t.entries??[]}static clone(t,n){return new Mp({id:n?.id??t.id??void 0,dayId:n?.dayId??t.dayId,order:n?.order??t.order,comment:n?.comment??t.comment,config:n?.config??t.config})}static fromJson(t){return lG.fromJson(t)}toJson(){return lG.toJson(this)}}class SAe{fromJson=t=>new Mp({id:t.id,dayId:t.day,order:t.order,comment:t.comment,config:t.config,entries:Object.hasOwn(t,"entries")?t.entries.map(n=>ff.fromJson(n)):[]});toJson(t){return{id:t.id,day:t.dayId,order:t.order,comment:t.comment,config:t.config}}}const lG=new SAe;class Zu{id=null;routineId=null;order;name;description;isRest;needLogsToAdvance;type;config;slots=[];constructor(t){this.id=t.id??null,this.routineId=t.routineId??null,this.order=t.order,this.name=t.name,this.description=t.description??"",this.isRest=t.isRest??!1,this.needLogsToAdvance=t.needLogsToAdvance??!1,this.type=t.type??"custom",this.config=t.config??null,this.slots=t.slots??[]}get isSpecialType(){return this.type!=="custom"}static fromJson(t){return cG.fromJson(t)}static clone(t,n){return new Zu({id:n?.id??t.id??void 0,routineId:n?.routineId??t.routineId,order:n?.order??t.order,name:n?.name??t.name,description:n?.description??t.description,isRest:n?.isRest??t.isRest,needLogsToAdvance:n?.needLogsToAdvance??t.needLogsToAdvance,type:n?.type??t.type,config:n?.config??t.config,slots:n?.slots??t.slots})}getDisplayName(){return this.isRest?jn.t("routines.restDay"):this.name}toJson(){return cG.toJson(this)}}const KZ=e=>e===null||e.isRest?jn.t("routines.restDay"):e.getDisplayName();class CAe{fromJson=t=>new Zu({id:t.id,routineId:t.routine,order:t.order,name:t.name,description:t.description,isRest:t.is_rest,needLogsToAdvance:t.need_logs_to_advance,type:t.type,config:t.config,slots:Object.hasOwn(t,"slots")?t.slots.map(n=>Mp.fromJson(n)):[]});toJson=t=>({routine:t.routineId,name:t.name,order:t.order,description:t.description,is_rest:t.isRest,need_logs_to_advance:t.needLogsToAdvance,type:t.type,config:t.config})}const cG=new CAe;class YZ{exercises={};muscle={};upper_body=0;lower_body=0;total=0;constructor(t){Object.assign(this,t)}}class sA{mesocycle=new YZ;iteration={};weekly={};daily={};constructor(t){Object.assign(this,t)}}class EAe{volume=new sA;intensity=new sA;sets=new sA;constructor(t){Object.assign(this,t)}}class TAe{fromJson(t){const n=o=>{const i={};for(const s in o.exercises)i[parseInt(s)]=parseFloat(o.exercises[s]);const a={};for(const s in o.muscle)a[parseInt(s)]=parseFloat(o.muscle[s]);return new YZ({exercises:i,muscle:a,upper_body:parseFloat(o.upper_body),lower_body:parseFloat(o.lower_body),total:parseFloat(o.total)})},r=o=>{const i={};for(const l in o.iteration)i[l]=n(o.iteration[l]);const a={};for(const l in o.weekly)a[l]=n(o.weekly[l]);const s={};for(const l in o.daily)s[l]=n(o.daily[l]);return new sA({mesocycle:n(o.mesocycle),iteration:i,weekly:a,daily:s})};return new EAe({volume:r(t.volume),intensity:r(t.intensity),sets:r(t.sets)})}}class Ov extends Error{}class PAe extends Ov{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class IAe extends Ov{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class OAe extends Ov{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Y0 extends Ov{}class QZ extends Ov{constructor(t){super(`Invalid unit ${t}`)}}class es extends Ov{}class Kh extends Ov{constructor(){super("Zone is an abstract class")}}const Ut="numeric",ed="short",Vl="long",qA={year:Ut,month:Ut,day:Ut},XZ={year:Ut,month:ed,day:Ut},MAe={year:Ut,month:ed,day:Ut,weekday:ed},JZ={year:Ut,month:Vl,day:Ut},ZZ={year:Ut,month:Vl,day:Ut,weekday:Vl},eee={hour:Ut,minute:Ut},tee={hour:Ut,minute:Ut,second:Ut},nee={hour:Ut,minute:Ut,second:Ut,timeZoneName:ed},ree={hour:Ut,minute:Ut,second:Ut,timeZoneName:Vl},oee={hour:Ut,minute:Ut,hourCycle:"h23"},iee={hour:Ut,minute:Ut,second:Ut,hourCycle:"h23"},aee={hour:Ut,minute:Ut,second:Ut,hourCycle:"h23",timeZoneName:ed},see={hour:Ut,minute:Ut,second:Ut,hourCycle:"h23",timeZoneName:Vl},lee={year:Ut,month:Ut,day:Ut,hour:Ut,minute:Ut},cee={year:Ut,month:Ut,day:Ut,hour:Ut,minute:Ut,second:Ut},uee={year:Ut,month:ed,day:Ut,hour:Ut,minute:Ut},dee={year:Ut,month:ed,day:Ut,hour:Ut,minute:Ut,second:Ut},AAe={year:Ut,month:ed,day:Ut,weekday:ed,hour:Ut,minute:Ut},fee={year:Ut,month:Vl,day:Ut,hour:Ut,minute:Ut,timeZoneName:ed},pee={year:Ut,month:Vl,day:Ut,hour:Ut,minute:Ut,second:Ut,timeZoneName:ed},hee={year:Ut,month:Vl,day:Ut,weekday:Vl,hour:Ut,minute:Ut,timeZoneName:Vl},mee={year:Ut,month:Vl,day:Ut,weekday:Vl,hour:Ut,minute:Ut,second:Ut,timeZoneName:Vl};class OT{get type(){throw new Kh}get name(){throw new Kh}get ianaName(){return this.name}get isUniversal(){throw new Kh}offsetName(t,n){throw new Kh}formatOffset(t,n){throw new Kh}offset(t){throw new Kh}equals(t){throw new Kh}get isValid(){throw new Kh}}let S_=null;class qR extends OT{static get instance(){return S_===null&&(S_=new qR),S_}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return Pee(t,n,r)}formatOffset(t,n){return G1(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const lj=new Map;function DAe(e){let t=lj.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),lj.set(e,t)),t}const RAe={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function kAe(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,o,i,a,s,l,c,u]=r;return[a,o,i,s,l,c,u]}function NAe(e,t){const n=e.formatToParts(t),r=[];for(let o=0;o<n.length;o++){const{type:i,value:a}=n[o],s=RAe[i];i==="era"?r[s]=a:Dn(s)||(r[s]=parseInt(a,10))}return r}const C_=new Map;class Ap extends OT{static create(t){let n=C_.get(t);return n===void 0&&C_.set(t,n=new Ap(t)),n}static resetCache(){C_.clear(),lj.clear()}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{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Ap.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return Pee(t,n,r,this.name)}formatOffset(t,n){return G1(this.offset(t),n)}offset(t){if(!this.valid)return NaN;const n=new Date(t);if(isNaN(n))return NaN;const r=DAe(this.name);let[o,i,a,s,l,c,u]=r.formatToParts?NAe(r,n):kAe(r,n);s==="BC"&&(o=-Math.abs(o)+1);const h=YR({year:o,month:i,day:a,hour:l===24?0:l,minute:c,second:u,millisecond:0});let g=+n;const y=g%1e3;return g-=y>=0?y:1e3+y,(h-g)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let uG={};function _Ae(e,t={}){const n=JSON.stringify([e,t]);let r=uG[n];return r||(r=new Intl.ListFormat(e,t),uG[n]=r),r}const cj=new Map;function uj(e,t={}){const n=JSON.stringify([e,t]);let r=cj.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),cj.set(n,r)),r}const dj=new Map;function LAe(e,t={}){const n=JSON.stringify([e,t]);let r=dj.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),dj.set(n,r)),r}const fj=new Map;function $Ae(e,t={}){const{base:n,...r}=t,o=JSON.stringify([e,r]);let i=fj.get(o);return i===void 0&&(i=new Intl.RelativeTimeFormat(e,t),fj.set(o,i)),i}let T1=null;function FAe(){return T1||(T1=new Intl.DateTimeFormat().resolvedOptions().locale,T1)}const pj=new Map;function gee(e){let t=pj.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),pj.set(e,t)),t}const hj=new Map;function jAe(e){let t=hj.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...yee,...t}),hj.set(e,t)}return t}function BAe(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,o;try{r=uj(e).resolvedOptions(),o=e}catch{const l=e.substring(0,n);r=uj(l).resolvedOptions(),o=l}const{numberingSystem:i,calendar:a}=r;return[o,i,a]}}function zAe(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function VAe(e){const t=[];for(let n=1;n<=12;n++){const r=At.utc(2009,n,1);t.push(e(r))}return t}function HAe(e){const t=[];for(let n=1;n<=7;n++){const r=At.utc(2016,11,13+n);t.push(e(r))}return t}function fM(e,t,n,r){const o=e.listingMode();return o==="error"?null:o==="en"?n(t):r(t)}function UAe(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||gee(e.locale).numberingSystem==="latn"}class GAe{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:o,floor:i,...a}=r;if(!n||Object.keys(a).length>0){const s={useGrouping:!1,...r};r.padTo>0&&(s.minimumIntegerDigits=r.padTo),this.inf=LAe(t,s)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):dV(t,3);return Ai(n,this.padTo)}}}class WAe{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const a=-1*(t.offset/60),s=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;t.offset!==0&&Ap.create(s).valid?(o=s,this.dt=t):(o="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,o=t.zone.name):(o="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const i={...this.opts};i.timeZone=i.timeZone||o,this.dtf=uj(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class qAe{constructor(t,n,r){this.opts={style:"long",...r},!n&&Eee()&&(this.rtf=$Ae(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):mDe(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const yee={firstDay:1,minimalDays:4,weekend:[6,7]};class Ur{static fromOpts(t){return Ur.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,o,i=!1){const a=t||Qo.defaultLocale,s=a||(i?"en-US":FAe()),l=n||Qo.defaultNumberingSystem,c=r||Qo.defaultOutputCalendar,u=gj(o)||Qo.defaultWeekSettings;return new Ur(s,l,c,u,a)}static resetCache(){T1=null,cj.clear(),dj.clear(),fj.clear(),pj.clear(),hj.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:o}={}){return Ur.create(t,n,r,o)}constructor(t,n,r,o,i){const[a,s,l]=BAe(t);this.locale=a,this.numberingSystem=n||s||null,this.outputCalendar=r||l||null,this.weekSettings=o,this.intl=zAe(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=UAe(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Ur.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,gj(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return fM(this,t,Mee,()=>{const r=this.intl==="ja"||this.intl.startsWith("ja-");n&=!r;const o=n?{month:t,day:"numeric"}:{month:t},i=n?"format":"standalone";if(!this.monthsCache[i][t]){const a=r?s=>this.dtFormatter(s,o).format():s=>this.extract(s,o,"month");this.monthsCache[i][t]=VAe(a)}return this.monthsCache[i][t]})}weekdays(t,n=!1){return fM(this,t,Ree,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},o=n?"format":"standalone";return this.weekdaysCache[o][t]||(this.weekdaysCache[o][t]=HAe(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[o][t]})}meridiems(){return fM(this,void 0,()=>kee,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[At.utc(2016,11,13,9),At.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return fM(this,t,Nee,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[At.utc(-40,1,1),At.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const o=this.dtFormatter(t,n),i=o.formatToParts(),a=i.find(s=>s.type.toLowerCase()===r);return a?a.value:null}numberFormatter(t={}){return new GAe(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new WAe(t,this.intl,n)}relFormatter(t={}){return new qAe(this.intl,this.isEnglish(),t)}listFormatter(t={}){return _Ae(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||gee(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Tee()?jAe(this.locale):yee}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}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let E_=null;class Rs extends OT{static get utcInstance(){return E_===null&&(E_=new Rs(0)),E_}static instance(t){return t===0?Rs.utcInstance:new Rs(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Rs(QR(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${G1(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${G1(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return G1(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class KAe extends OT{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 im(e,t){if(Dn(e)||e===null)return t;if(e instanceof OT)return e;if(eDe(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?qR.instance:n==="utc"||n==="gmt"?Rs.utcInstance:Rs.parseSpecifier(n)||Ap.create(e)}else return mm(e)?Rs.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new KAe(e)}const sV={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},dG={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]},YAe=sV.hanidec.replace(/[\[|\]]/g,"").split("");function QAe(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(sV.hanidec)!==-1)t+=YAe.indexOf(e[n]);else for(const o in dG){const[i,a]=dG[o];r>=i&&r<=a&&(t+=r-i)}}return parseInt(t,10)}else return t}const mj=new Map;function XAe(){mj.clear()}function Iu({numberingSystem:e},t=""){const n=e||"latn";let r=mj.get(n);r===void 0&&(r=new Map,mj.set(n,r));let o=r.get(t);return o===void 0&&(o=new RegExp(`${sV[n]}${t}`),r.set(t,o)),o}let fG=()=>Date.now(),pG="system",hG=null,mG=null,gG=null,yG=60,vG,bG=null;class Qo{static get now(){return fG}static set now(t){fG=t}static set defaultZone(t){pG=t}static get defaultZone(){return im(pG,qR.instance)}static get defaultLocale(){return hG}static set defaultLocale(t){hG=t}static get defaultNumberingSystem(){return mG}static set defaultNumberingSystem(t){mG=t}static get defaultOutputCalendar(){return gG}static set defaultOutputCalendar(t){gG=t}static get defaultWeekSettings(){return bG}static set defaultWeekSettings(t){bG=gj(t)}static get twoDigitCutoffYear(){return yG}static set twoDigitCutoffYear(t){yG=t%100}static get throwOnInvalid(){return vG}static set throwOnInvalid(t){vG=t}static resetCaches(){Ur.resetCache(),Ap.resetCache(),At.resetCache(),XAe()}}class Bu{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const vee=[0,31,59,90,120,151,181,212,243,273,304,334],bee=[0,31,60,91,121,152,182,213,244,274,305,335];function Nc(e,t){return new Bu("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function lV(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const o=r.getUTCDay();return o===0?7:o}function xee(e,t,n){return n+(MT(e)?bee:vee)[t-1]}function wee(e,t){const n=MT(e)?bee:vee,r=n.findIndex(i=>i<t),o=t-n[r];return{month:r+1,day:o}}function cV(e,t){return(e-t+7)%7+1}function KA(e,t=4,n=1){const{year:r,month:o,day:i}=e,a=xee(r,o,i),s=cV(lV(r,o,i),n);let l=Math.floor((a-s+14-t)/7),c;return l<1?(c=r-1,l=SE(c,t,n)):l>SE(r,t,n)?(c=r+1,l=1):c=r,{weekYear:c,weekNumber:l,weekday:s,...XR(e)}}function xG(e,t=4,n=1){const{weekYear:r,weekNumber:o,weekday:i}=e,a=cV(lV(r,1,t),n),s=dx(r);let l=o*7+i-a-7+t,c;l<1?(c=r-1,l+=dx(c)):l>s?(c=r+1,l-=dx(r)):c=r;const{month:u,day:f}=wee(c,l);return{year:c,month:u,day:f,...XR(e)}}function T_(e){const{year:t,month:n,day:r}=e,o=xee(t,n,r);return{year:t,ordinal:o,...XR(e)}}function wG(e){const{year:t,ordinal:n}=e,{month:r,day:o}=wee(t,n);return{year:t,month:r,day:o,...XR(e)}}function SG(e,t){if(!Dn(e.localWeekday)||!Dn(e.localWeekNumber)||!Dn(e.localWeekYear)){if(!Dn(e.weekday)||!Dn(e.weekNumber)||!Dn(e.weekYear))throw new Y0("Cannot mix locale-based week fields with ISO-based week fields");return Dn(e.localWeekday)||(e.weekday=e.localWeekday),Dn(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Dn(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function JAe(e,t=4,n=1){const r=KR(e.weekYear),o=_c(e.weekNumber,1,SE(e.weekYear,t,n)),i=_c(e.weekday,1,7);return r?o?i?!1:Nc("weekday",e.weekday):Nc("week",e.weekNumber):Nc("weekYear",e.weekYear)}function ZAe(e){const t=KR(e.year),n=_c(e.ordinal,1,dx(e.year));return t?n?!1:Nc("ordinal",e.ordinal):Nc("year",e.year)}function See(e){const t=KR(e.year),n=_c(e.month,1,12),r=_c(e.day,1,YA(e.year,e.month));return t?n?r?!1:Nc("day",e.day):Nc("month",e.month):Nc("year",e.year)}function Cee(e){const{hour:t,minute:n,second:r,millisecond:o}=e,i=_c(t,0,23)||t===24&&n===0&&r===0&&o===0,a=_c(n,0,59),s=_c(r,0,59),l=_c(o,0,999);return i?a?s?l?!1:Nc("millisecond",o):Nc("second",r):Nc("minute",n):Nc("hour",t)}function Dn(e){return typeof e>"u"}function mm(e){return typeof e=="number"}function KR(e){return typeof e=="number"&&e%1===0}function eDe(e){return typeof e=="string"}function tDe(e){return Object.prototype.toString.call(e)==="[object Date]"}function Eee(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Tee(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function nDe(e){return Array.isArray(e)?e:[e]}function CG(e,t,n){if(e.length!==0)return e.reduce((r,o)=>{const i=[t(o),o];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function rDe(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function Ox(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function gj(e){if(e==null)return null;if(typeof e!="object")throw new es("Week settings must be an object");if(!_c(e.firstDay,1,7)||!_c(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!_c(t,1,7)))throw new es("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function _c(e,t,n){return KR(e)&&e>=t&&e<=n}function oDe(e,t){return e-t*Math.floor(e/t)}function Ai(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function Jh(e){if(!(Dn(e)||e===null||e===""))return parseInt(e,10)}function cy(e){if(!(Dn(e)||e===null||e===""))return parseFloat(e)}function uV(e){if(!(Dn(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function dV(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function MT(e){return e%4===0&&(e%100!==0||e%400===0)}function dx(e){return MT(e)?366:365}function YA(e,t){const n=oDe(t-1,12)+1,r=e+(t-n)/12;return n===2?MT(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function YR(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function EG(e,t,n){return-cV(lV(e,1,t),n)+t-1}function SE(e,t=4,n=1){const r=EG(e,t,n),o=EG(e+1,t,n);return(dx(e)-r+o)/7}function yj(e){return e>99?e:e>Qo.twoDigitCutoffYear?1900+e:2e3+e}function Pee(e,t,n,r=null){const o=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:t,...i},s=new Intl.DateTimeFormat(n,a).formatToParts(o).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function QR(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,o=n<0||Object.is(n,-0)?-r:r;return n*60+o}function Iee(e){const t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new es(`Invalid unit value ${e}`);return t}function QA(e,t){const n={};for(const r in e)if(Ox(e,r)){const o=e[r];if(o==null)continue;n[t(r)]=Iee(o)}return n}function G1(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return`${o}${Ai(n,2)}:${Ai(r,2)}`;case"narrow":return`${o}${n}${r>0?`:${r}`:""}`;case"techie":return`${o}${Ai(n,2)}${Ai(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function XR(e){return rDe(e,["hour","minute","second","millisecond"])}const iDe=["January","February","March","April","May","June","July","August","September","October","November","December"],Oee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],aDe=["J","F","M","A","M","J","J","A","S","O","N","D"];function Mee(e){switch(e){case"narrow":return[...aDe];case"short":return[...Oee];case"long":return[...iDe];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 Aee=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Dee=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],sDe=["M","T","W","T","F","S","S"];function Ree(e){switch(e){case"narrow":return[...sDe];case"short":return[...Dee];case"long":return[...Aee];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const kee=["AM","PM"],lDe=["Before Christ","Anno Domini"],cDe=["BC","AD"],uDe=["B","A"];function Nee(e){switch(e){case"narrow":return[...uDe];case"short":return[...cDe];case"long":return[...lDe];default:return null}}function dDe(e){return kee[e.hour<12?0:1]}function fDe(e,t){return Ree(t)[e.weekday-1]}function pDe(e,t){return Mee(t)[e.month-1]}function hDe(e,t){return Nee(t)[e.year<0?0:1]}function mDe(e,t,n="always",r=!1){const o={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=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&i){const f=e==="days";switch(t){case 1:return f?"tomorrow":`next ${o[e][0]}`;case-1:return f?"yesterday":`last ${o[e][0]}`;case 0:return f?"today":`this ${o[e][0]}`}}const a=Object.is(t,-0)||t<0,s=Math.abs(t),l=s===1,c=o[e],u=r?l?c[1]:c[2]||c[1]:l?o[e][0]:e;return a?`${s} ${u} ago`:`in ${s} ${u}`}function TG(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const gDe={D:qA,DD:XZ,DDD:JZ,DDDD:ZZ,t:eee,tt:tee,ttt:nee,tttt:ree,T:oee,TT:iee,TTT:aee,TTTT:see,f:lee,ff:uee,fff:fee,ffff:hee,F:cee,FF:dee,FFF:pee,FFFF:mee};class os{static create(t,n={}){return new os(t,n)}static parseFormat(t){let n=null,r="",o=!1;const i=[];for(let a=0;a<t.length;a++){const s=t.charAt(a);s==="'"?((r.length>0||o)&&i.push({literal:o||/^\s+$/.test(r),val:r===""?"'":r}),n=null,r="",o=!o):o||s===n?r+=s:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=s,n=s)}return r.length>0&&i.push({literal:o||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(t){return gDe[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,r=void 0){if(this.opts.forceSimple)return Ai(t,n);const o={...this.opts};return n>0&&(o.padTo=n),r&&(o.signDisplay=r),this.loc.numberFormatter(o).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(g,y)=>this.loc.extract(t,g,y),a=g=>t.isOffsetFixed&&t.offset===0&&g.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,g.format):"",s=()=>r?dDe(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(g,y)=>r?pDe(t,g):i(y?{month:g}:{month:g,day:"numeric"},"month"),c=(g,y)=>r?fDe(t,g):i(y?{weekday:g}:{weekday:g,month:"long",day:"numeric"},"weekday"),u=g=>{const y=os.macroTokenToFormatOpts(g);return y?this.formatWithSystemDefault(t,y):g},f=g=>r?hDe(t,g):i({era:g},"era"),h=g=>{switch(g){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 a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({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 s();case"d":return o?i({day:"numeric"},"day"):this.num(t.day);case"dd":return o?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return o?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return o?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return o?i({month:"numeric"},"month"):this.num(t.month);case"MM":return o?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return o?i({year:"numeric"},"year"):this.num(t.year);case"yy":return o?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return o?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return o?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("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(g)}};return TG(os.parseFormat(n),h)}formatDurationFromString(t,n){const r=this.opts.signMode==="negativeLargestOnly"?-1:1,o=u=>{switch(u[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},i=(u,f)=>h=>{const g=o(h);if(g){const y=f.isNegativeDuration&&g!==f.largestUnit?r:1;let x;return this.opts.signMode==="negativeLargestOnly"&&g!==f.largestUnit?x="never":this.opts.signMode==="all"?x="always":x="auto",this.num(u.get(g)*y,h.length,x)}else return h},a=os.parseFormat(n),s=a.reduce((u,{literal:f,val:h})=>f?u:u.concat(h),[]),l=t.shiftTo(...s.map(o).filter(u=>u)),c={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return TG(a,i(l,c))}}const _ee=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function hw(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function mw(...e){return t=>e.reduce(([n,r,o],i)=>{const[a,s,l]=i(t,o);return[{...n,...a},s||r,l]},[{},null,1]).slice(0,2)}function gw(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const o=n.exec(e);if(o)return r(o)}return[null,null]}function Lee(...e){return(t,n)=>{const r={};let o;for(o=0;o<e.length;o++)r[e[o]]=Jh(t[n+o]);return[r,null,n+o]}}const $ee=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,yDe=`(?:${$ee.source}?(?:\\[(${_ee.source})\\])?)?`,fV=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Fee=RegExp(`${fV.source}${yDe}`),pV=RegExp(`(?:[Tt]${Fee.source})?`),vDe=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,bDe=/(\d{4})-?W(\d\d)(?:-?(\d))?/,xDe=/(\d{4})-?(\d{3})/,wDe=Lee("weekYear","weekNumber","weekDay"),SDe=Lee("year","ordinal"),CDe=/(\d{4})-(\d\d)-(\d\d)/,jee=RegExp(`${fV.source} ?(?:${$ee.source}|(${_ee.source}))?`),EDe=RegExp(`(?: ${jee.source})?`);function fx(e,t,n){const r=e[t];return Dn(r)?n:Jh(r)}function TDe(e,t){return[{year:fx(e,t),month:fx(e,t+1,1),day:fx(e,t+2,1)},null,t+3]}function yw(e,t){return[{hours:fx(e,t,0),minutes:fx(e,t+1,0),seconds:fx(e,t+2,0),milliseconds:uV(e[t+3])},null,t+4]}function AT(e,t){const n=!e[t]&&!e[t+1],r=QR(e[t+1],e[t+2]),o=n?null:Rs.instance(r);return[{},o,t+3]}function DT(e,t){const n=e[t]?Ap.create(e[t]):null;return[{},n,t+1]}const PDe=RegExp(`^T?${fV.source}$`),IDe=/^-?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)?)?)$/;function ODe(e){const[t,n,r,o,i,a,s,l,c]=e,u=t[0]==="-",f=l&&l[0]==="-",h=(g,y=!1)=>g!==void 0&&(y||g&&u)?-g:g;return[{years:h(cy(n)),months:h(cy(r)),weeks:h(cy(o)),days:h(cy(i)),hours:h(cy(a)),minutes:h(cy(s)),seconds:h(cy(l),l==="-0"),milliseconds:h(uV(c),f)}]}const MDe={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function hV(e,t,n,r,o,i,a){const s={year:t.length===2?yj(Jh(t)):Jh(t),month:Oee.indexOf(n)+1,day:Jh(r),hour:Jh(o),minute:Jh(i)};return a&&(s.second=Jh(a)),e&&(s.weekday=e.length>3?Aee.indexOf(e)+1:Dee.indexOf(e)+1),s}const ADe=/^(?:(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 DDe(e){const[,t,n,r,o,i,a,s,l,c,u,f]=e,h=hV(t,o,r,n,i,a,s);let g;return l?g=MDe[l]:c?g=0:g=QR(u,f),[h,new Rs(g)]}function RDe(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const kDe=/^(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$/,NDe=/^(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$/,_De=/^(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 PG(e){const[,t,n,r,o,i,a,s]=e;return[hV(t,o,r,n,i,a,s),Rs.utcInstance]}function LDe(e){const[,t,n,r,o,i,a,s]=e;return[hV(t,s,n,r,o,i,a),Rs.utcInstance]}const $De=hw(vDe,pV),FDe=hw(bDe,pV),jDe=hw(xDe,pV),BDe=hw(Fee),Bee=mw(TDe,yw,AT,DT),zDe=mw(wDe,yw,AT,DT),VDe=mw(SDe,yw,AT,DT),HDe=mw(yw,AT,DT);function UDe(e){return gw(e,[$De,Bee],[FDe,zDe],[jDe,VDe],[BDe,HDe])}function GDe(e){return gw(RDe(e),[ADe,DDe])}function WDe(e){return gw(e,[kDe,PG],[NDe,PG],[_De,LDe])}function qDe(e){return gw(e,[IDe,ODe])}const KDe=mw(yw);function YDe(e){return gw(e,[PDe,KDe])}const QDe=hw(CDe,EDe),XDe=hw(jee),JDe=mw(yw,AT,DT);function ZDe(e){return gw(e,[QDe,Bee],[XDe,JDe])}const IG="Invalid Duration",zee={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},eRe={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...zee},vc=146097/400,A0=146097/4800,tRe={years:{quarters:4,months:12,weeks:vc/7,days:vc,hours:vc*24,minutes:vc*24*60,seconds:vc*24*60*60,milliseconds:vc*24*60*60*1e3},quarters:{months:3,weeks:vc/28,days:vc/4,hours:vc*24/4,minutes:vc*24*60/4,seconds:vc*24*60*60/4,milliseconds:vc*24*60*60*1e3/4},months:{weeks:A0/7,days:A0,hours:A0*24,minutes:A0*24*60,seconds:A0*24*60*60,milliseconds:A0*24*60*60*1e3},...zee},Dy=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],nRe=Dy.slice(0).reverse();function tp(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Ir(r)}function Vee(e,t){let n=t.milliseconds??0;for(const r of nRe.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function OG(e,t){const n=Vee(e,t)<0?-1:1;Dy.reduceRight((r,o)=>{if(Dn(t[o]))return r;if(r){const i=t[r]*n,a=e[o][r],s=Math.floor(i/a);t[o]+=s*n,t[r]-=s*a*n}return o},null),Dy.reduce((r,o)=>{if(Dn(t[o]))return r;if(r){const i=t[r]%1;t[r]-=i,t[o]+=i*e[r][o]}return o},null)}function MG(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class Ir{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?tRe:eRe;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||Ur.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return Ir.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new es(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Ir({values:QA(t,Ir.normalizeUnit),loc:Ur.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(mm(t))return Ir.fromMillis(t);if(Ir.isDuration(t))return t;if(typeof t=="object")return Ir.fromObject(t);throw new es(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=qDe(t);return r?Ir.fromObject(r,n):Ir.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=YDe(t);return r?Ir.fromObject(r,n):Ir.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new es("need to specify a reason the Duration is invalid");const r=t instanceof Bu?t:new Bu(t,n);if(Qo.throwOnInvalid)throw new OAe(r);return new Ir({invalid:r})}static normalizeUnit(t){const n={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()];if(!n)throw new QZ(t);return n}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,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?os.create(this.loc,r).formatDurationFromString(this,t):IG}toHuman(t={}){if(!this.isValid)return IG;const n=t.showZeros!==!1,r=Dy.map(o=>{const i=this.values[o];return Dn(i)||i===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:o.slice(0,-1)}).format(i)}).filter(o=>o);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=dV(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},At.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Vee(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Ir.fromDurationLike(t),r={};for(const o of Dy)(Ox(n.values,o)||Ox(this.values,o))&&(r[o]=n.get(o)+this.get(o));return tp(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=Ir.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=Iee(t(this.values[r],r));return tp(this,{values:n},!0)}get(t){return this[Ir.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...QA(t,Ir.normalizeUnit)};return tp(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:o}={}){const a={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:o,conversionAccuracy:r};return tp(this,a)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return OG(this.matrix,t),tp(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=MG(this.normalize().shiftToAll().toObject());return tp(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(a=>Ir.normalizeUnit(a));const n={},r={},o=this.toObject();let i;for(const a of Dy)if(t.indexOf(a)>=0){i=a;let s=0;for(const c in r)s+=this.matrix[c][a]*r[c],r[c]=0;mm(o[a])&&(s+=o[a]);const l=Math.trunc(s);n[a]=l,r[a]=(s*1e3-l*1e3)/1e3}else mm(o[a])&&(r[a]=o[a]);for(const a in r)r[a]!==0&&(n[i]+=a===i?r[a]:r[a]/this.matrix[i][a]);return OG(this.matrix,n),tp(this,{values:n},!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 n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return tp(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;const t=MG(this.values);return tp(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 this.invalid===null}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||!this.loc.equals(t.loc))return!1;function n(r,o){return r===void 0||r===0?o===void 0||o===0:r===o}for(const r of Dy)if(!n(this.values[r],t.values[r]))return!1;return!0}}const D0="Invalid Interval";function rRe(e,t){return!e||!e.isValid?ni.invalid("missing or invalid start"):!t||!t.isValid?ni.invalid("missing or invalid end"):t<e?ni.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class ni{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new es("need to specify a reason the Interval is invalid");const r=t instanceof Bu?t:new Bu(t,n);if(Qo.throwOnInvalid)throw new IAe(r);return new ni({invalid:r})}static fromDateTimes(t,n){const r=QC(t),o=QC(n),i=rRe(r,o);return i??new ni({start:r,end:o})}static after(t,n){const r=Ir.fromDurationLike(n),o=QC(t);return ni.fromDateTimes(o,o.plus(r))}static before(t,n){const r=Ir.fromDurationLike(n),o=QC(t);return ni.fromDateTimes(o.minus(r),o)}static fromISO(t,n){const[r,o]=(t||"").split("/",2);if(r&&o){let i,a;try{i=At.fromISO(r,n),a=i.isValid}catch{a=!1}let s,l;try{s=At.fromISO(o,n),l=s.isValid}catch{l=!1}if(a&&l)return ni.fromDateTimes(i,s);if(a){const c=Ir.fromISO(o,n);if(c.isValid)return ni.after(i,c)}else if(l){const c=Ir.fromISO(r,n);if(c.isValid)return ni.before(s,c)}}return ni.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(t,n);let o;return n?.useLocaleWeeks?o=this.end.reconfigure({locale:r.locale}):o=this.end,o=o.startOf(t,n),Math.floor(o.diff(r,t).get(t))+(o.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?ni.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(QC).filter(a=>this.contains(a)).sort((a,s)=>a.toMillis()-s.toMillis()),r=[];let{s:o}=this,i=0;for(;o<this.e;){const a=n[i]||this.e,s=+a>+this.e?this.e:a;r.push(ni.fromDateTimes(o,s)),o=s,i+=1}return r}splitBy(t){const n=Ir.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,o=1,i;const a=[];for(;r<this.e;){const s=this.start.plus(n.mapUnits(l=>l*o));i=+s>+this.e?this.e:s,a.push(ni.fromDateTimes(r,i)),r=i,o+=1}return a}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:ni.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return ni.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((o,i)=>o.s-i.s).reduce(([o,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[o,i.union(a)]:[o.concat([i]),a]:[o,a],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const o=[],i=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),a=Array.prototype.concat(...i),s=a.sort((l,c)=>l.time-c.time);for(const l of s)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&o.push(ni.fromDateTimes(n,l.time)),n=null);return ni.merge(o)}difference(...t){return ni.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:D0}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=qA,n={}){return this.isValid?os.create(this.s.loc.clone(n),t).formatInterval(this):D0}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:D0}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:D0}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:D0}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:D0}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Ir.invalid(this.invalidReason)}mapEndpoints(t){return ni.fromDateTimes(t(this.s),t(this.e))}}class P1{static hasDST(t=Qo.defaultZone){const n=At.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Ap.isValidZone(t)}static normalizeZone(t){return im(t,Qo.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||Ur.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||Ur.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||Ur.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||Ur.create(n,r,i)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||Ur.create(n,r,i)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null}={}){return(o||Ur.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null}={}){return(o||Ur.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Ur.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Ur.create(n,null,"gregory").eras(t)}static features(){return{relative:Eee(),localeWeek:Tee()}}}function AG(e,t){const n=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Ir.fromMillis(r).as("days"))}function oRe(e,t,n){const r=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const u=AG(l,c);return(u-u%7)/7}],["days",AG]],o={},i=e;let a,s;for(const[l,c]of r)n.indexOf(l)>=0&&(a=l,o[l]=c(e,t),s=i.plus(o),s>t?(o[l]--,e=i.plus(o),e>t&&(s=e,o[l]--,e=i.plus(o))):e=s);return[e,o,s,a]}function iRe(e,t,n,r){let[o,i,a,s]=oRe(e,t,n);const l=t-o,c=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);c.length===0&&(a<t&&(a=o.plus({[s]:1})),a!==o&&(i[s]=(i[s]||0)+l/(a-o)));const u=Ir.fromObject(i,r);return c.length>0?Ir.fromMillis(l,r).shiftTo(...c).plus(u):u}const aRe="missing Intl.DateTimeFormat.formatToParts support";function Lr(e,t=n=>n){return{regex:e,deser:([n])=>t(QAe(n))}}const sRe=" ",Hee=`[ ${sRe}]`,Uee=new RegExp(Hee,"g");function lRe(e){return e.replace(/\./g,"\\.?").replace(Uee,Hee)}function DG(e){return e.replace(/\./g,"").replace(Uee," ").toLowerCase()}function Ou(e,t){return e===null?null:{regex:RegExp(e.map(lRe).join("|")),deser:([n])=>e.findIndex(r=>DG(n)===DG(r))+t}}function RG(e,t){return{regex:e,deser:([,n,r])=>QR(n,r),groups:t}}function pM(e){return{regex:e,deser:([t])=>t}}function cRe(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function uRe(e,t){const n=Iu(t),r=Iu(t,"{2}"),o=Iu(t,"{3}"),i=Iu(t,"{4}"),a=Iu(t,"{6}"),s=Iu(t,"{1,2}"),l=Iu(t,"{1,3}"),c=Iu(t,"{1,6}"),u=Iu(t,"{1,9}"),f=Iu(t,"{2,4}"),h=Iu(t,"{4,6}"),g=S=>({regex:RegExp(cRe(S.val)),deser:([C])=>C,literal:!0}),x=(S=>{if(e.literal)return g(S);switch(S.val){case"G":return Ou(t.eras("short"),0);case"GG":return Ou(t.eras("long"),0);case"y":return Lr(c);case"yy":return Lr(f,yj);case"yyyy":return Lr(i);case"yyyyy":return Lr(h);case"yyyyyy":return Lr(a);case"M":return Lr(s);case"MM":return Lr(r);case"MMM":return Ou(t.months("short",!0),1);case"MMMM":return Ou(t.months("long",!0),1);case"L":return Lr(s);case"LL":return Lr(r);case"LLL":return Ou(t.months("short",!1),1);case"LLLL":return Ou(t.months("long",!1),1);case"d":return Lr(s);case"dd":return Lr(r);case"o":return Lr(l);case"ooo":return Lr(o);case"HH":return Lr(r);case"H":return Lr(s);case"hh":return Lr(r);case"h":return Lr(s);case"mm":return Lr(r);case"m":return Lr(s);case"q":return Lr(s);case"qq":return Lr(r);case"s":return Lr(s);case"ss":return Lr(r);case"S":return Lr(l);case"SSS":return Lr(o);case"u":return pM(u);case"uu":return pM(s);case"uuu":return Lr(n);case"a":return Ou(t.meridiems(),0);case"kkkk":return Lr(i);case"kk":return Lr(f,yj);case"W":return Lr(s);case"WW":return Lr(r);case"E":case"c":return Lr(n);case"EEE":return Ou(t.weekdays("short",!1),1);case"EEEE":return Ou(t.weekdays("long",!1),1);case"ccc":return Ou(t.weekdays("short",!0),1);case"cccc":return Ou(t.weekdays("long",!0),1);case"Z":case"ZZ":return RG(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return RG(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return pM(/[a-z_+-/]{1,256}?/i);case" ":return pM(/[^\S\n\r]/);default:return g(S)}})(e)||{invalidReason:aRe};return x.token=e,x}const dRe={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"}};function fRe(e,t,n){const{type:r,value:o}=e;if(r==="literal"){const l=/^\s+$/.test(o);return{literal:!l,val:l?" ":o}}const i=t[r];let a=r;r==="hour"&&(t.hour12!=null?a=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?a="hour12":a="hour24":a=n.hour12?"hour12":"hour24");let s=dRe[a];if(typeof s=="object"&&(s=s[i]),s)return{literal:!1,val:s}}function pRe(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function hRe(e,t,n){const r=e.match(t);if(r){const o={};let i=1;for(const a in n)if(Ox(n,a)){const s=n[a],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(o[s.token.val[0]]=s.deser(r.slice(i,i+l))),i+=l}return[r,o]}else return[r,{}]}function mRe(e){const t=i=>{switch(i){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}};let n=null,r;return Dn(e.z)||(n=Ap.create(e.z)),Dn(e.Z)||(n||(n=new Rs(e.Z)),r=e.Z),Dn(e.q)||(e.M=(e.q-1)*3+1),Dn(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Dn(e.u)||(e.S=uV(e.u)),[Object.keys(e).reduce((i,a)=>{const s=t(a);return s&&(i[s]=e[a]),i},{}),n,r]}let P_=null;function gRe(){return P_||(P_=At.fromMillis(1555555555555)),P_}function yRe(e,t){if(e.literal)return e;const n=os.macroTokenToFormatOpts(e.val),r=Kee(n,t);return r==null||r.includes(void 0)?e:r}function Gee(e,t){return Array.prototype.concat(...e.map(n=>yRe(n,t)))}class Wee{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=Gee(os.parseFormat(n),t),this.units=this.tokens.map(r=>uRe(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,o]=pRe(this.units);this.regex=RegExp(r,"i"),this.handlers=o}}explainFromTokens(t){if(this.isValid){const[n,r]=hRe(t,this.regex,this.handlers),[o,i,a]=r?mRe(r):[null,null,void 0];if(Ox(r,"a")&&Ox(r,"H"))throw new Y0("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:o,zone:i,specificOffset:a}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function qee(e,t,n){return new Wee(e,n).explainFromTokens(t)}function vRe(e,t,n){const{result:r,zone:o,specificOffset:i,invalidReason:a}=qee(e,t,n);return[r,o,i,a]}function Kee(e,t){if(!e)return null;const r=os.create(t,e).dtFormatter(gRe()),o=r.formatToParts(),i=r.resolvedOptions();return o.map(a=>fRe(a,e,i))}const I_="Invalid DateTime",kG=864e13;function I1(e){return new Bu("unsupported zone",`the zone "${e.name}" is not supported`)}function O_(e){return e.weekData===null&&(e.weekData=KA(e.c)),e.weekData}function M_(e){return e.localWeekData===null&&(e.localWeekData=KA(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function uy(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new At({...n,...t,old:n})}function Yee(e,t,n){let r=e-t*60*1e3;const o=n.offset(r);if(t===o)return[r,t];r-=(o-t)*60*1e3;const i=n.offset(r);return o===i?[r,o]:[e-Math.min(o,i)*60*1e3,Math.max(o,i)]}function hM(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function lA(e,t,n){return Yee(YR(e),t,n)}function NG(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),o=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,i={...e.c,year:r,month:o,day:Math.min(e.c.day,YA(r,o))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},a=Ir.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=YR(i);let[l,c]=Yee(s,n,e.zone);return a!==0&&(l+=a,c=e.zone.offset(l)),{ts:l,o:c}}function R0(e,t,n,r,o,i){const{setZone:a,zone:s}=n;if(e&&Object.keys(e).length!==0||t){const l=t||s,c=At.fromObject(e,{...n,zone:l,specificOffset:i});return a?c:c.setZone(s)}else return At.invalid(new Bu("unparsable",`the input "${o}" can't be parsed as ${r}`))}function mM(e,t,n=!0){return e.isValid?os.create(Ur.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function A_(e,t,n){const r=e.c.year>9999||e.c.year<0;let o="";if(r&&e.c.year>=0&&(o+="+"),o+=Ai(e.c.year,r?6:4),n==="year")return o;if(t){if(o+="-",o+=Ai(e.c.month),n==="month")return o;o+="-"}else if(o+=Ai(e.c.month),n==="month")return o;return o+=Ai(e.c.day),o}function _G(e,t,n,r,o,i,a){let s=!n||e.c.millisecond!==0||e.c.second!==0,l="";switch(a){case"day":case"month":case"year":break;default:if(l+=Ai(e.c.hour),a==="hour")break;if(t){if(l+=":",l+=Ai(e.c.minute),a==="minute")break;s&&(l+=":",l+=Ai(e.c.second))}else{if(l+=Ai(e.c.minute),a==="minute")break;s&&(l+=Ai(e.c.second))}if(a==="second")break;s&&(!r||e.c.millisecond!==0)&&(l+=".",l+=Ai(e.c.millisecond,3))}return o&&(e.isOffsetFixed&&e.offset===0&&!i?l+="Z":e.o<0?(l+="-",l+=Ai(Math.trunc(-e.o/60)),l+=":",l+=Ai(Math.trunc(-e.o%60))):(l+="+",l+=Ai(Math.trunc(e.o/60)),l+=":",l+=Ai(Math.trunc(e.o%60)))),i&&(l+="["+e.zone.ianaName+"]"),l}const Qee={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},bRe={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},xRe={ordinal:1,hour:0,minute:0,second:0,millisecond:0},cA=["year","month","day","hour","minute","second","millisecond"],wRe=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],SRe=["year","ordinal","hour","minute","second","millisecond"];function uA(e){const t={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"}[e.toLowerCase()];if(!t)throw new QZ(e);return t}function LG(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return uA(e)}}function CRe(e){if(O1===void 0&&(O1=Qo.now()),e.type!=="iana")return e.offset(O1);const t=e.name;let n=vj.get(t);return n===void 0&&(n=e.offset(O1),vj.set(t,n)),n}function $G(e,t){const n=im(t.zone,Qo.defaultZone);if(!n.isValid)return At.invalid(I1(n));const r=Ur.fromObject(t);let o,i;if(Dn(e.year))o=Qo.now();else{for(const l of cA)Dn(e[l])&&(e[l]=Qee[l]);const a=See(e)||Cee(e);if(a)return At.invalid(a);const s=CRe(n);[o,i]=lA(e,s,n)}return new At({ts:o,zone:n,loc:r,o:i})}function FG(e,t,n){const r=Dn(n.round)?!0:n.round,o=Dn(n.rounding)?"trunc":n.rounding,i=(s,l)=>(s=dV(s,r||n.calendary?0:2,n.calendary?"round":o),t.loc.clone(n).relFormatter(n).format(s,l)),a=s=>n.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(n.unit)return i(a(n.unit),n.unit);for(const s of n.units){const l=a(s);if(Math.abs(l)>=1)return i(l,s)}return i(e>t?-0:0,n.units[n.units.length-1])}function jG(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let O1;const vj=new Map;class At{constructor(t){const n=t.zone||Qo.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new Bu("invalid input"):null)||(n.isValid?null:I1(n));this.ts=Dn(t.ts)?Qo.now():t.ts;let o=null,i=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[o,i]=[t.old.c,t.old.o];else{const s=mm(t.o)&&!t.old?t.o:n.offset(this.ts);o=hM(this.ts,s),r=Number.isNaN(o.year)?new Bu("invalid input"):null,o=r?null:o,i=r?null:s}this._zone=n,this.loc=t.loc||Ur.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=o,this.o=i,this.isLuxonDateTime=!0}static now(){return new At({})}static local(){const[t,n]=jG(arguments),[r,o,i,a,s,l,c]=n;return $G({year:r,month:o,day:i,hour:a,minute:s,second:l,millisecond:c},t)}static utc(){const[t,n]=jG(arguments),[r,o,i,a,s,l,c]=n;return t.zone=Rs.utcInstance,$G({year:r,month:o,day:i,hour:a,minute:s,second:l,millisecond:c},t)}static fromJSDate(t,n={}){const r=tDe(t)?t.valueOf():NaN;if(Number.isNaN(r))return At.invalid("invalid input");const o=im(n.zone,Qo.defaultZone);return o.isValid?new At({ts:r,zone:o,loc:Ur.fromObject(n)}):At.invalid(I1(o))}static fromMillis(t,n={}){if(mm(t))return t<-kG||t>kG?At.invalid("Timestamp out of range"):new At({ts:t,zone:im(n.zone,Qo.defaultZone),loc:Ur.fromObject(n)});throw new es(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(mm(t))return new At({ts:t*1e3,zone:im(n.zone,Qo.defaultZone),loc:Ur.fromObject(n)});throw new es("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=im(n.zone,Qo.defaultZone);if(!r.isValid)return At.invalid(I1(r));const o=Ur.fromObject(n),i=QA(t,LG),{minDaysInFirstWeek:a,startOfWeek:s}=SG(i,o),l=Qo.now(),c=Dn(n.specificOffset)?r.offset(l):n.specificOffset,u=!Dn(i.ordinal),f=!Dn(i.year),h=!Dn(i.month)||!Dn(i.day),g=f||h,y=i.weekYear||i.weekNumber;if((g||u)&&y)throw new Y0("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&u)throw new Y0("Can't mix ordinal dates with month/day");const x=y||i.weekday&&!g;let S,C,E=hM(l,c);x?(S=wRe,C=bRe,E=KA(E,a,s)):u?(S=SRe,C=xRe,E=T_(E)):(S=cA,C=Qee);let I=!1;for(const A of S){const F=i[A];Dn(F)?I?i[A]=C[A]:i[A]=E[A]:I=!0}const M=x?JAe(i,a,s):u?ZAe(i):See(i),O=M||Cee(i);if(O)return At.invalid(O);const D=x?xG(i,a,s):u?wG(i):i,[N,$]=lA(D,c,r),L=new At({ts:N,zone:r,o:$,loc:o});return i.weekday&&g&&t.weekday!==L.weekday?At.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${L.toISO()}`):L.isValid?L:At.invalid(L.invalid)}static fromISO(t,n={}){const[r,o]=UDe(t);return R0(r,o,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,o]=GDe(t);return R0(r,o,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,o]=WDe(t);return R0(r,o,n,"HTTP",n)}static fromFormat(t,n,r={}){if(Dn(t)||Dn(n))throw new es("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:i=null}=r,a=Ur.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0}),[s,l,c,u]=vRe(a,t,n);return u?At.invalid(u):R0(s,l,r,`format ${n}`,t,c)}static fromString(t,n,r={}){return At.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,o]=ZDe(t);return R0(r,o,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new es("need to specify a reason the DateTime is invalid");const r=t instanceof Bu?t:new Bu(t,n);if(Qo.throwOnInvalid)throw new PAe(r);return new At({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=Kee(t,Ur.fromObject(n));return r?r.map(o=>o?o.val:null).join(""):null}static expandFormat(t,n={}){return Gee(os.parseFormat(t),Ur.fromObject(n)).map(o=>o.val).join("")}static resetCache(){O1=void 0,vj.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}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?O_(this).weekYear:NaN}get weekNumber(){return this.isValid?O_(this).weekNumber:NaN}get weekday(){return this.isValid?O_(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?M_(this).weekday:NaN}get localWeekNumber(){return this.isValid?M_(this).weekNumber:NaN}get localWeekYear(){return this.isValid?M_(this).weekYear:NaN}get ordinal(){return this.isValid?T_(this.c).ordinal:NaN}get monthShort(){return this.isValid?P1.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?P1.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?P1.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?P1.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?!1: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,n=6e4,r=YR(this.c),o=this.zone.offset(r-t),i=this.zone.offset(r+t),a=this.zone.offset(r-o*n),s=this.zone.offset(r-i*n);if(a===s)return[this];const l=r-a*n,c=r-s*n,u=hM(l,a),f=hM(c,s);return u.hour===f.hour&&u.minute===f.minute&&u.second===f.second&&u.millisecond===f.millisecond?[uy(this,{ts:l}),uy(this,{ts:c})]:[this]}get isInLeapYear(){return MT(this.year)}get daysInMonth(){return YA(this.year,this.month)}get daysInYear(){return this.isValid?dx(this.year):NaN}get weeksInWeekYear(){return this.isValid?SE(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?SE(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:o}=os.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:o}}toUTC(t=0,n={}){return this.setZone(Rs.instance(t),n)}toLocal(){return this.setZone(Qo.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=im(t,Qo.defaultZone),t.equals(this.zone))return this;if(t.isValid){let o=this.ts;if(n||r){const i=t.offset(this.ts),a=this.toObject();[o]=lA(a,i,t)}return uy(this,{ts:o,zone:t})}else return At.invalid(I1(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const o=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return uy(this,{loc:o})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=QA(t,LG),{minDaysInFirstWeek:r,startOfWeek:o}=SG(n,this.loc),i=!Dn(n.weekYear)||!Dn(n.weekNumber)||!Dn(n.weekday),a=!Dn(n.ordinal),s=!Dn(n.year),l=!Dn(n.month)||!Dn(n.day),c=s||l,u=n.weekYear||n.weekNumber;if((c||a)&&u)throw new Y0("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new Y0("Can't mix ordinal dates with month/day");let f;i?f=xG({...KA(this.c,r,o),...n},r,o):Dn(n.ordinal)?(f={...this.toObject(),...n},Dn(n.day)&&(f.day=Math.min(YA(f.year,f.month),f.day))):f=wG({...T_(this.c),...n});const[h,g]=lA(f,this.o,this.zone);return uy(this,{ts:h,o:g})}plus(t){if(!this.isValid)return this;const n=Ir.fromDurationLike(t);return uy(this,NG(this,n))}minus(t){if(!this.isValid)return this;const n=Ir.fromDurationLike(t).negate();return uy(this,NG(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},o=Ir.normalizeUnit(t);switch(o){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(o==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:a}=this;a<i&&(r.weekNumber=this.weekNumber-1),r.weekday=i}else r.weekday=1;if(o==="quarters"){const i=Math.ceil(this.month/3);r.month=(i-1)*3+1}return this.set(r)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?os.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):I_}toLocaleString(t=qA,n={}){return this.isValid?os.create(this.loc.clone(n),t).formatDateTime(this):I_}toLocaleParts(t={}){return this.isValid?os.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:o=!0,extendedZone:i=!1,precision:a="milliseconds"}={}){if(!this.isValid)return null;a=uA(a);const s=t==="extended";let l=A_(this,s,a);return cA.indexOf(a)>=3&&(l+="T"),l+=_G(this,s,n,r,o,i,a),l}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?A_(this,t==="extended",uA(n)):null}toISOWeekDate(){return mM(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:o=!1,extendedZone:i=!1,format:a="extended",precision:s="milliseconds"}={}){return this.isValid?(s=uA(s),(o&&cA.indexOf(s)>=3?"T":"")+_G(this,a==="extended",n,t,r,i,s)):null}toRFC2822(){return mM(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return mM(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?A_(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let o="HH:mm:ss.SSS";return(n||t)&&(r&&(o+=" "),n?o+="z":t&&(o+="ZZ")),mM(this,o,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():I_}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${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(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return Ir.invalid("created by diffing an invalid DateTime");const o={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=nDe(n).map(Ir.normalizeUnit),a=t.valueOf()>this.valueOf(),s=a?this:t,l=a?t:this,c=iRe(s,l,i,o);return a?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(At.now(),t,n)}until(t){return this.isValid?ni.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const o=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n,r)<=o&&o<=i.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||At.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let o=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(o=t.unit,i=void 0),FG(n,this.plus(r),{...t,numeric:"always",units:o,unit:i})}toRelativeCalendar(t={}){return this.isValid?FG(t.base||At.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(At.isDateTime))throw new es("min requires all arguments be DateTimes");return CG(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(At.isDateTime))throw new es("max requires all arguments be DateTimes");return CG(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:o=null,numberingSystem:i=null}=r,a=Ur.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});return qee(a,t,n)}static fromStringExplain(t,n,r={}){return At.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:o=null}=n,i=Ur.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0});return new Wee(i,t)}static fromFormatParser(t,n,r={}){if(Dn(t)||Dn(n))throw new es("fromFormatParser requires an input string and a format parser");const{locale:o=null,numberingSystem:i=null}=r,a=Ur.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});if(!a.equals(n.locale))throw new es(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${n.locale}`);const{result:s,zone:l,specificOffset:c,invalidReason:u}=n.explainFromTokens(t);return u?At.invalid(u):R0(s,l,r,`format ${n.format}`,t,c)}static get DATE_SHORT(){return qA}static get DATE_MED(){return XZ}static get DATE_MED_WITH_WEEKDAY(){return MAe}static get DATE_FULL(){return JZ}static get DATE_HUGE(){return ZZ}static get TIME_SIMPLE(){return eee}static get TIME_WITH_SECONDS(){return tee}static get TIME_WITH_SHORT_OFFSET(){return nee}static get TIME_WITH_LONG_OFFSET(){return ree}static get TIME_24_SIMPLE(){return oee}static get TIME_24_WITH_SECONDS(){return iee}static get TIME_24_WITH_SHORT_OFFSET(){return aee}static get TIME_24_WITH_LONG_OFFSET(){return see}static get DATETIME_SHORT(){return lee}static get DATETIME_SHORT_WITH_SECONDS(){return cee}static get DATETIME_MED(){return uee}static get DATETIME_MED_WITH_SECONDS(){return dee}static get DATETIME_MED_WITH_WEEKDAY(){return AAe}static get DATETIME_FULL(){return fee}static get DATETIME_FULL_WITH_SECONDS(){return pee}static get DATETIME_HUGE(){return hee}static get DATETIME_HUGE_WITH_SECONDS(){return mee}}function QC(e){if(At.isDateTime(e))return e;if(e&&e.valueOf&&mm(e.valueOf()))return At.fromJSDate(e);if(e&&typeof e=="object")return At.fromObject(e);throw new es(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const BG=3,zG=25,VG=1e3,HG=1,UG=16,ERe=12;class Qc{id=null;name;description;created=new Date;start=new Date;end;fitInWeek=!1;isTemplate=!1;isPublic=!1;days=[];dayData=[];constructor(t){this.name=t.name,this.description=t.description,this.end=t.end,Object.assign(this,t)}get isNotTemplate(){return!this.isTemplate}get exercises(){return this.days.flatMap(t=>t.slots.flatMap(n=>n.entries.flatMap(r=>r.exercise)))}get dayDataCurrentIteration(){const t=this.getIteration()??1;return this.dayData.filter(n=>n.iteration===t)}get groupedDayDataByIteration(){const t={};for(const n of this.dayData)t[n.iteration]||(t[n.iteration]=[]),t[n.iteration].push(n);return t}get duration(){const t=At.fromJSDate(this.end).diff(At.fromJSDate(this.start),["weeks","days"]),n=Math.floor(t.weeks),r=Math.floor(t.days);return{weeks:n,days:r}}get durationText(){const t=this.duration.days,n=this.duration.weeks;return t===0?jn.t("durationWeeks",{number:n}):jn.t("durationWeeksDays",{nrWeeks:n,nrDays:t})}get mainMuscles(){return this.days.flatMap(n=>n.slots.flatMap(r=>r.entries.flatMap(o=>o.exercise?.muscles||[]))).filter((n,r,o)=>r===o.findIndex(i=>i.id===n.id))}get secondaryMuscles(){return this.days.flatMap(n=>n.slots.flatMap(r=>r.entries.flatMap(o=>o.exercise?.musclesSecondary||[]))).filter((n,r,o)=>r===o.findIndex(i=>i.id===n.id))}get cycleLength(){return this.dayDataCurrentIteration.length}static fromJson(t){return GG.fromJson(t)}static clone(t,n){return new Qc({id:n?.id??t.id,name:n?.name??t.name,description:n?.description??t.description,created:n?.created??new Date,start:n?.start??t.start,end:n?.end??t.end??void 0,fitInWeek:n?.fitInWeek??t.fitInWeek,isTemplate:n?.isTemplate??t.isTemplate,isPublic:n?.isPublic??t.isPublic,days:n?.days??t.days,dayData:n?.dayData??t.dayData})}toJson(){return GG.toJson(this)}getIteration(t){const n=t??new Date,r=this.dayData.find(o=>al(o.date,n));return r?r.iteration:null}getSetConfigData(t,n,r){const o=this.dayData.find(a=>a.day?.id===t&&a.iteration===n);return o&&o.slots.find(a=>a.setConfigs.some(s=>s.slotEntryId===r))?.setConfigs.find(a=>a.slotEntryId===r)||null}getDayData(t,n){return this.dayData.filter(r=>r.day?.id===t&&r.date.getDate()===n.getDate()&&r.date.getMonth()===n.getMonth()&&r.date.getFullYear()===n.getFullYear())}}class TRe{fromJson(t){return new Qc({id:t.id,name:t.name,description:t.description,created:new Date(t.created),start:new Date(t.start),end:new Date(t.end),fitInWeek:t.fit_in_week,isTemplate:t.is_template,isPublic:t.is_public,days:t.days?t.days.map(n=>Zu.fromJson(n)):[]})}toJson(t){return{...t.id!=null?{id:t.id}:{},name:t.name,description:t.description,start:Jr(t.start),end:Jr(t.end),fit_in_week:t.fitInWeek,is_template:t.isTemplate,is_public:t.isPublic}}}const GG=new TRe;class PRe{exercise;weightUnit=null;repetitionsUnit=null;exerciseId;slotEntryId;type;nrOfSets;maxNrOfSets;weight;maxWeight;weightUnitId=null;weightRounding=null;repetitions;maxRepetitions;repetitionsUnitId=null;repetitionsRounding=null;rir;maxRir;rpe;restTime;maxRestTime;textRepr;comment;constructor(t){this.exerciseId=t.exerciseId,this.exercise=t.exercise,this.slotEntryId=t.slotEntryId,this.type=t.type,this.nrOfSets=t.nrOfSets,this.maxNrOfSets=t.maxNrOfSets??null,this.weight=t.weight??null,this.maxWeight=t.maxWeight??null,this.weightUnitId=t.weightUnitId,this.weightUnit=t.weightUnit??null,this.weightRounding=t.weightRounding,this.repetitions=t.repetitions??null,this.maxRepetitions=t.maxRepetitions??null,this.repetitionsUnitId=t.repetitionsUnitId,this.repetitionsUnit=t.repetitionsUnit??null,this.repetitionsRounding=t.repetitionsRounding,this.rir=t.rir??null,this.maxRir=t.maxRir??null,this.rpe=t.rpe??null,this.restTime=t.restTime??null,this.maxRestTime=t.maxRestTime??null,this.textRepr=t.textRepr,this.comment=t.comment}get isSpecialType(){return this.type!=="normal"}}class IRe{fromJson=t=>new PRe({exerciseId:t.exercise,slotEntryId:t.slot_entry_id,type:t.type,nrOfSets:t.sets,maxNrOfSets:t.max_sets!==null?parseInt(t.max_sets):null,weight:t.weight!==null?parseFloat(t.weight):null,maxWeight:t.max_weight!==null?parseFloat(t.max_weight):null,weightUnitId:t.weight_unit,weightRounding:t.weight_rounding!==null?parseFloat(t.weight_rounding):null,repetitions:t.repetitions!==null?parseFloat(t.repetitions):null,maxRepetitions:t.max_repetitions!==null?parseFloat(t.max_repetitions):null,repetitionsUnitId:t.repetitions_unit,repetitionsRounding:t.repetitions_rounding!==null?parseFloat(t.repetitions_rounding):null,rir:t.rir!==null?parseFloat(t.rir):null,maxRir:t.max_rir!==null?parseFloat(t.max_rir):null,rpe:t.rpe!==null?parseFloat(t.rpe):null,restTime:t.rest!==null?parseInt(t.rest):null,maxRestTime:t.max_rest!==null?parseInt(t.max_rest):null,textRepr:t.text_repr,comment:t.comment})}class ORe{constructor(t,n,r,o,i){this.comment=t,this.isSuperset=n,this.exerciseIds=r,this.setConfigs=o,this.exercises=i??[]}exercises=[]}class MRe{fromJson=t=>new ORe(t.comment,t.is_superset,t.exercises,t.sets.map(n=>new IRe().fromJson(n)))}class ARe{constructor(t,n,r,o,i){this.iteration=t,this.date=n,this.label=r,this.day=o,this.slots=i??[]}slots=[]}class DRe{fromJson=t=>new ARe(t.iteration,new Date(t.date),t.label,t.day!=null?Zu.fromJson(t.day):null,t.slots.map(n=>new MRe().fromJson(n)))}class RRe{id;date;iteration;exerciseId;slotEntryId;sessionId;routineId;repetitionUnitObj;repetitionUnitId;repetitions;repetitionsTarget;weightUnitObj;weightUnitId;weight;weightTarget;rir;rirTarget;restTime;restTimeTarget;exerciseObj;constructor(t){this.id=t.id,this.date=typeof t.date=="string"?new Date(t.date):t.date,this.iteration=t.iteration,this.slotEntryId=t.slotEntryId,this.sessionId=t.sessionId||null,this.routineId=t.routineId||null,this.exerciseObj=t.exercise,this.exerciseId=t.exerciseId,this.repetitionUnitObj=t.repetitionsUnit||null,this.repetitionUnitId=t.repetitionsUnitId||null,this.repetitions=t.repetitions,this.repetitionsTarget=t.repetitionsTarget||null,this.weightUnitObj=t.weightUnit||null,this.weightUnitId=t.weightUnitId||null,this.weight=t.weight,this.weightTarget=t.weightTarget||null,this.rir=t.rir,this.rirTarget=t.rirTarget||null,this.restTime=t.restTime||null,this.restTimeTarget=t.restTimeTarget||null}get rirString(){return this.rir===null?"-/-":this.rir.toString()}}class JR{fromJson=t=>new RRe({id:t.id,date:t.date,iteration:t.iteration,exerciseId:t.exercise,slotEntryId:t.slot_entry,sessionId:t.session,routineId:t.routine,repetitionsUnitId:t.repetitions_unit,repetitions:t.repetitions===null?null:Number.parseFloat(t.repetitions),repetitionsTarget:t.repetitions_target===null?null:Number.parseFloat(t.repetitions_target),weightUnitId:t.weight_unit,weight:t.weight===null?null:Number.parseFloat(t.weight),weightTarget:t.weight_target===null?null:Number.parseFloat(t.weight_target),rir:t.rir===null?null:Number.parseFloat(t.rir),rirTarget:t.rir_target===null?null:Number.parseFloat(t.rir_target),restTime:t.rest,restTimeTarget:t.rest_target});toJson=t=>({id:t.id,iteration:t.iteration,date:t.date.toISOString(),slot_entry:t.slotEntryId,exercise:t.exerciseId,routine:t.routineId,repetitions_unit:t.repetitionUnitId,repetitions:t.repetitions,repetitions_target:t.repetitionsTarget,weight_unit:t.weightUnitId,weight:t.weight,weight_target:t.weightTarget,rir:t.rir,rir_target:t.rirTarget,rest:t.restTime,rest_target:t.restTimeTarget})}const WG=1e3,bj="1",H0="2",xj="3";class kRe{id;dayId;routineId;date;notes;impression;timeStart;timeEnd;dayObj;logs=[];constructor(t){this.id=t.id,this.dayId=t.dayId,this.routineId=t.routineId,this.date=t.date,this.notes=t.notes,this.impression=t.impression,this.timeStart=t.timeStart,this.timeEnd=t.timeEnd,t.dayObj&&(this.dayObj=t.dayObj),this.logs=t.logs??[]}get impressionString(){switch(this.impression){case bj:return jn.t("routines.impressionBad");case H0:return jn.t("routines.impressionNeutral");case xj:return jn.t("routines.impressionGood");default:return""}}get textRepresentation(){const t=this.timeStart&&this.timeEnd?`${this.timeStart.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} - ${this.timeEnd.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} /`:"",n=this.notes??"";return`${this.impressionString} ${t} ${n}`}}class RT{fromJson=t=>new kRe({id:t.id,dayId:t.day,routineId:t.routine,date:new Date(t.date),notes:t.notes!==void 0?t.notes:null,impression:t.impression,timeStart:t.time_start!==void 0?tj(t.time_start):null,timeEnd:t.time_end!==void 0?tj(t.time_end):null,dayObj:t.dayObj,logs:t.logs});toJson=t=>({id:t.id,day:t.dayId,date:Jr(t.date),routine:t.routineId,notes:t.notes,impression:t.impression,time_start:xE(t.timeStart),time_end:xE(t.timeEnd)})}class NRe{constructor(t,n){this.session=t,this.logs=n}}class _Re{fromJson=t=>new NRe(new RT().fromJson(t.session),t.logs.map(n=>new JR().fromJson(n)))}class LRe{id;name;constructor(t,n){this.id=t,this.name=n}}class $Re{fromJson(t){return new LRe(t.id,t.name)}toJson(t){return{}}}class FRe{id;name;constructor(t,n){this.id=t,this.name=n}}class jRe{fromJson(t){return new FRe(t.id,t.name)}toJson(t){return{}}}const BRe="setting-repetitionunit",zRe="setting-weightunit",Xee=async()=>{const e=Pt(BRe),{data:t}=await bt.get(e,{headers:It()}),n=new $Re;return t.results.map(r=>n.fromJson(r))},Jee=async()=>{const e=Pt(zRe),{data:t}=await bt.get(e,{headers:It()}),n=new jRe;return t.results.map(r=>n.fromJson(r))},VRe="structure",HRe="logs",URe="stats",GRe="date-sequence-display",gM={},Zee=async e=>{const t=await bt.get(Pt(kt.ROUTINE,{id:e}),{headers:It()}),n=Qc.fromJson(t.data),r=await Promise.all([Xee(),Jee(),eke(e),tke(e)]),o=r[0],i=r[1],a=r[2],s=r[3],l=new Set;for(const f of a.filter(h=>h.day!==null&&h.iteration===1))for(const h of f.slots)for(const g of h.setConfigs)l.add(g.exerciseId);const c=Array.from(l).map(f=>pw(f));(await Promise.all(c)).forEach(f=>{gM[f.id]=f});for(const f of a)for(const h of f.slots){for(const g of h.setConfigs)g.exercise=gM[g.exerciseId],g.repetitionsUnitId!==null&&(g.repetitionsUnit=o.find(y=>y.id===g.repetitionsUnitId)??null),g.weightUnitId!==null&&(g.weightUnit=i.find(y=>y.id===g.weightUnitId)??null);for(const g of h.exerciseIds)h.exercises?.push(gM[g])}for(const f of s)for(const h of f.slots)for(const g of h.entries)g.exercise=gM[g.exerciseId],g.repetitionUnitId!==null&&(g.repetitionUnit=o.find(y=>y.id===g.repetitionUnitId)??null),g.weightUnitId!==null&&(g.weightUnit=i.find(y=>y.id===g.weightUnitId)??null);return n.dayData=a,n.days=s,n},WRe=async()=>{const e=Pt(kt.ROUTINE,{query:{limit:"1",is_template:!1}}),t=await bt.get(e,{headers:It()});return t.data.count===0?null:await Zee(t.data.results[0].id)},qRe=async e=>await Zee(e),KRe=async()=>{const e=Pt(kt.ROUTINE,{query:{is_public:!1}});return(await bt.get(e,{headers:It()})).data.results.map(n=>Qc.fromJson(n)).filter(n=>n.isNotTemplate)},YRe=async()=>{const e=Pt(kt.PRIVATE_TEMPLATE);return(await bt.get(e,{headers:It()})).data.results.map(n=>Qc.fromJson(n))},QRe=async()=>{const e=Pt(kt.PUBLIC_TEMPLATE);return(await bt.get(e,{headers:It()})).data.results.map(n=>Qc.fromJson(n))},XRe=async e=>{const t=await bt.post(Pt(kt.ROUTINE),e.toJson(),{headers:It()});return Qc.fromJson(t.data)},JRe=async e=>{const t=await bt.patch(Pt(kt.ROUTINE,{id:e.id}),e.toJson(),{headers:It()});return Qc.fromJson(t.data)},ZRe=async e=>(await bt.delete(Pt(kt.ROUTINE,{id:e}),{headers:It()})).status,eke=async e=>{const t=await bt.get(Pt(kt.ROUTINE,{id:e,objectMethod:GRe}),{headers:It()}),n=new DRe;return t.data.map(r=>n.fromJson(r))},tke=async e=>(await bt.get(Pt(kt.ROUTINE,{id:e,objectMethod:VRe}),{headers:It()})).data.days.map(n=>Zu.fromJson(n)),nke=async e=>{const t=await bt.get(Pt(kt.ROUTINE,{id:e,objectMethod:HRe}),{headers:It()}),n=new _Re;return t.data.map(r=>n.fromJson(r))},rke=async e=>{const t=await bt.get(Pt(kt.ROUTINE,{id:e,objectMethod:URe}),{headers:It()});return new TAe().fromJson(t.data)};class oke{constructor(t,n,r,o){this.id=t,this.name=n,this.unit=r,o&&(this.entries=o)}entries=[]}class ZR{fromJson(t){return new oke(t.id,t.name,t.unit)}toJson(t){return{id:t.id,name:t.name,unit:t.unit}}}class ike{constructor(t,n,r,o,i){this.id=t,this.category=n,this.date=r,this.value=o,this.notes=i}}class ek{fromJson(t){return new ike(t.id,t.category,new Date(t.date),t.value,t.notes)}toJson(t){return{id:t.id,category:t.category,date:t.date,value:t.value,notes:t.notes}}}async function*ov(e,t){for(t==null&&(t=It());;){const r=(await bt.get(e,{headers:t})).data;if(yield r.results,e=r.next,!e)break}}const kT="measurement-category",NT="measurement",ake=async e=>{const{filtersetQueryCategories:t={},filtersetQueryEntries:n={}}=e||{},r=new ZR,o=new ek,i=[];for await(const c of ov(Pt(kT,{query:{...t}}),It()))for(const u of c)i.push(r.fromJson(u));const a=i.map(async c=>{const u=[],f=Pt(NT,{query:{category:c.id,...n}});for await(const h of ov(f,It()))for(const g of h)u.push(o.fromJson(g));return u}),s=await Promise.all(a);let l;return s.forEach(c=>{c.length>0&&(l=c[0].category,i.findLast(u=>u.id===l).entries=c)}),i},ske=async e=>{const{data:t}=await bt.get(Pt(kT,{id:e}),{headers:It()}),n=new ZR().fromJson(t),r=new ek,o=[],i=Pt(NT,{query:{category:n.id}});for await(const a of ov(i,It()))for(const s of a)o.push(r.fromJson(s));return n.entries=o,n},lke=async e=>{const t=await bt.post(Pt(kT),{name:e.name,unit:e.unit},{headers:It()});return new ZR().fromJson(t.data)},cke=async e=>{const t=await bt.patch(Pt(kT,{id:e.id}),{name:e.name,unit:e.unit},{headers:It()});return new ZR().fromJson(t.data)},uke=async e=>{await bt.delete(Pt(kT,{id:e}),{headers:It()})},dke=async e=>{await bt.delete(Pt(NT,{id:e}),{headers:It()})},fke=async e=>{const t=await bt.patch(Pt(NT,{id:e.id}),{date:Jr(e.date),value:e.value,notes:e.notes},{headers:It()});return new ek().fromJson(t.data)},pke=async e=>{const t=await bt.post(Pt(NT),{category:e.categoryId,date:Jr(e.date),value:e.value,notes:e.notes},{headers:It()});return new ek().fromJson(t.data)};class ete{id;uuid;url;created;lastUpdate;size;width;height;constructor(t){this.id=t.id,this.uuid=t.uuid,this.url=t.url,this.created=t.created,this.lastUpdate=t.lastUpdate,this.size=t.size,this.width=t.width,this.height=t.height}static fromJson(t){return mke.fromJson(t)}}class hke{fromJson(t){return new ete({id:t.id,uuid:t.uuid,url:t.image,created:new Date(t.created),lastUpdate:new Date(t.last_update),size:t.size,width:t.width,height:t.height})}}const mke=new hke;class tte{small;smallCropped;medium;mediumCropped;large;largeCropped;constructor(t){this.small=t.small,this.smallCropped=t.smallCropped,this.medium=t.medium,this.mediumCropped=t.mediumCropped,this.large=t.large,this.largeCropped=t.largeCropped}static fromJson(t){return yke.fromJson(t)}}class gke{fromJson(t){return new tte({small:t.small,smallCropped:t.small_cropped,medium:t.medium,mediumCropped:t.medium_cropped,large:t.large,largeCropped:t.large_cropped})}}const yke=new gke;class tk{id;uuid;code;name;energy;protein;carbohydrates;carbohydratesSugar;fat;fatSaturated;fiber;sodium;image;thumbnails;constructor(t){this.id=t.id,this.uuid=t.uuid,this.code=t.code,this.name=t.name,this.energy=t.energy,this.protein=t.protein,this.carbohydrates=t.carbohydrates,this.carbohydratesSugar=t.carbohydratesSugar,this.fat=t.fat,this.fatSaturated=t.fatSaturated,this.fiber=t.fiber,this.sodium=t.sodium,this.image=t.image??null,this.thumbnails=t.thumbnails??null}static fromJson(t){return bke.fromJson(t)}}class vke{fromJson(t){return new tk({id:t.id,uuid:t.uuid,code:t.code,name:t.name,energy:t.energy,protein:parseFloat(t.protein),carbohydrates:parseFloat(t.carbohydrates),carbohydratesSugar:t.carbohydrates_sugar===null?null:parseFloat(t.carbohydrates_sugar),fat:parseFloat(t.fat),fatSaturated:t.fat_saturated===null?null:parseFloat(t.fat_saturated),fiber:t.fiber===null?null:parseFloat(t.fiber),sodium:t.sodium===null?null:parseFloat(t.sodium),image:t.image===null?null:ete.fromJson(t.image),thumbnails:t.thumbnails===null?null:tte.fromJson(t.thumbnails)})}}const bke=new vke;var M1={exports:{}};/**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */var xke=M1.exports,qG;function wke(){return qG||(qG=1,function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",f=1,h=2,g=4,y=1,x=2,S=1,C=2,E=4,I=8,M=16,O=32,D=64,N=128,$=256,L=512,A=30,F="...",z=800,H=16,Q=1,G=2,V=3,Y=1/0,X=9007199254740991,te=17976931348623157e292,U=NaN,K=4294967295,ee=K-1,le=K>>>1,ce=[["ary",N],["bind",S],["bindKey",C],["curry",I],["curryRight",M],["flip",L],["partial",O],["partialRight",D],["rearg",$]],se="[object Arguments]",fe="[object Array]",we="[object AsyncFunction]",Oe="[object Boolean]",he="[object Date]",me="[object DOMException]",ye="[object Error]",ae="[object Function]",Se="[object GeneratorFunction]",Ie="[object Map]",Re="[object Number]",ke="[object Null]",Te="[object Object]",Ce="[object Promise]",Ze="[object Proxy]",Me="[object RegExp]",_e="[object Set]",pe="[object String]",je="[object Symbol]",Ke="[object Undefined]",et="[object WeakMap]",nt="[object WeakSet]",ot="[object ArrayBuffer]",it="[object DataView]",tt="[object Float32Array]",vt="[object Float64Array]",Je="[object Int8Array]",Mt="[object Int16Array]",Gt="[object Int32Array]",ht="[object Uint8Array]",Qt="[object Uint8ClampedArray]",en="[object Uint16Array]",qt="[object Uint32Array]",zn=/\b__p \+= '';/g,lr=/\b(__p \+=) '' \+/g,to=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xr=/&(?:amp|lt|gt|quot|#39);/g,Yn=/[&<>"']/g,Io=RegExp(xr.source),Ci=RegExp(Yn.source),si=/<%-([\s\S]+?)%>/g,us=/<%([\s\S]+?)%>/g,fn=/<%=([\s\S]+?)%>/g,Vn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$t=/^\w*$/,Yt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ln=/[\\^$.*+?()[\]{}|]/g,pn=RegExp(ln.source),cr=/^\s+/,Ei=/\s/,ds=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fs=/\{\n\/\* \[wrapped with (.+)\] \*/,cd=/,? & /,Zi=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qo=/[()=,{}\[\]\/\s]/,uo=/\\(\\)?/g,xa=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,js=/\w*$/,vl=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,at=/^\[object .+?Constructor\]$/,Wt=/^0o[0-7]+$/i,Mn=/^(?:0|[1-9]\d*)$/,an=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,no=/($^)/,Oo=/['\n\r\u2028\u2029\\]/g,Ti="\\ud800-\\udfff",Xm="\\u0300-\\u036f",eh="\\ufe20-\\ufe2f",Tf="\\u20d0-\\u20ff",fs=Xm+eh+Tf,Pf="\\u2700-\\u27bf",rr="a-z\\xdf-\\xf6\\xf8-\\xff",wa="\\xac\\xb1\\xd7\\xf7",Bs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",su="\\u2000-\\u206f",j2=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Xw="A-Z\\xc0-\\xd6\\xd8-\\xde",ps="\\ufe0e\\ufe0f",Jw=wa+Bs+su+j2,Zw="['’]",Wv="["+Ti+"]",eS="["+Jw+"]",If="["+fs+"]",kP="\\d+",zs="["+Pf+"]",qv="["+rr+"]",tS="[^"+Ti+Jw+kP+Pf+rr+Xw+"]",Jm="\\ud83c[\\udffb-\\udfff]",th="(?:"+If+"|"+Jm+")",nS="[^"+Ti+"]",Kv="(?:\\ud83c[\\udde6-\\uddff]){2}",ud="[\\ud800-\\udbff][\\udc00-\\udfff]",nh="["+Xw+"]",rS="\\u200d",oS="(?:"+qv+"|"+tS+")",iS="(?:"+nh+"|"+tS+")",NP="(?:"+Zw+"(?:d|ll|m|re|s|t|ve))?",_P="(?:"+Zw+"(?:D|LL|M|RE|S|T|VE))?",Zm=th+"?",Yv="["+ps+"]?",aS="(?:"+rS+"(?:"+[nS,Kv,ud].join("|")+")"+Yv+Zm+")*",rh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",oh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sS=Yv+Zm+aS,lS="(?:"+[zs,Kv,ud].join("|")+")"+sS,LP="(?:"+[nS+If+"?",If,Kv,ud,Wv].join("|")+")",eg=RegExp(Zw,"g"),lu=RegExp(If,"g"),tg=RegExp(Jm+"(?="+Jm+")|"+LP+sS,"g"),ng=RegExp([nh+"?"+qv+"+"+NP+"(?="+[eS,nh,"$"].join("|")+")",iS+"+"+_P+"(?="+[eS,nh+oS,"$"].join("|")+")",nh+"?"+oS+"+"+NP,nh+"+"+_P,oh,rh,kP,lS].join("|"),"g"),dd=RegExp("["+rS+Ti+fs+ps+"]"),cS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qv=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$P=-1,Br={};Br[tt]=Br[vt]=Br[Je]=Br[Mt]=Br[Gt]=Br[ht]=Br[Qt]=Br[en]=Br[qt]=!0,Br[se]=Br[fe]=Br[ot]=Br[Oe]=Br[it]=Br[he]=Br[ye]=Br[ae]=Br[Ie]=Br[Re]=Br[Te]=Br[Me]=Br[_e]=Br[pe]=Br[et]=!1;var Rr={};Rr[se]=Rr[fe]=Rr[ot]=Rr[it]=Rr[Oe]=Rr[he]=Rr[tt]=Rr[vt]=Rr[Je]=Rr[Mt]=Rr[Gt]=Rr[Ie]=Rr[Re]=Rr[Te]=Rr[Me]=Rr[_e]=Rr[pe]=Rr[je]=Rr[ht]=Rr[Qt]=Rr[en]=Rr[qt]=!0,Rr[ye]=Rr[ae]=Rr[et]=!1;var FP={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą: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u2028":"u2028","\u2029":"u2029"},rg=parseFloat,B2=parseInt,Jv=typeof dm=="object"&&dm&&dm.Object===Object&&dm,uS=typeof self=="object"&&self&&self.Object===Object&&self,Ko=Jv||uS||Function("return this")(),ih=t&&!t.nodeType&&t,fd=ih&&!0&&e&&!e.nodeType&&e,jP=fd&&fd.exports===ih,dS=jP&&Jv.process,Vs=function(){try{var De=fd&&fd.require&&fd.require("util").types;return De||dS&&dS.binding&&dS.binding("util")}catch{}}(),Zv=Vs&&Vs.isArrayBuffer,BP=Vs&&Vs.isDate,zP=Vs&&Vs.isMap,VP=Vs&&Vs.isRegExp,HP=Vs&&Vs.isSet,UP=Vs&&Vs.isTypedArray;function ja(De,lt,Qe){switch(Qe.length){case 0:return De.call(lt);case 1:return De.call(lt,Qe[0]);case 2:return De.call(lt,Qe[0],Qe[1]);case 3:return De.call(lt,Qe[0],Qe[1],Qe[2])}return De.apply(lt,Qe)}function z2(De,lt,Qe,Vt){for(var Sn=-1,gr=De==null?0:De.length;++Sn<gr;){var Jo=De[Sn];lt(Vt,Jo,Qe(Jo),De)}return Vt}function Hs(De,lt){for(var Qe=-1,Vt=De==null?0:De.length;++Qe<Vt&&lt(De[Qe],Qe,De)!==!1;);return De}function V2(De,lt){for(var Qe=De==null?0:De.length;Qe--&&lt(De[Qe],Qe,De)!==!1;);return De}function GP(De,lt){for(var Qe=-1,Vt=De==null?0:De.length;++Qe<Vt;)if(!lt(De[Qe],Qe,De))return!1;return!0}function ic(De,lt){for(var Qe=-1,Vt=De==null?0:De.length,Sn=0,gr=[];++Qe<Vt;){var Jo=De[Qe];lt(Jo,Qe,De)&&(gr[Sn++]=Jo)}return gr}function eb(De,lt){var Qe=De==null?0:De.length;return!!Qe&&ah(De,lt,0)>-1}function fS(De,lt,Qe){for(var Vt=-1,Sn=De==null?0:De.length;++Vt<Sn;)if(Qe(lt,De[Vt]))return!0;return!1}function bo(De,lt){for(var Qe=-1,Vt=De==null?0:De.length,Sn=Array(Vt);++Qe<Vt;)Sn[Qe]=lt(De[Qe],Qe,De);return Sn}function cu(De,lt){for(var Qe=-1,Vt=lt.length,Sn=De.length;++Qe<Vt;)De[Sn+Qe]=lt[Qe];return De}function pS(De,lt,Qe,Vt){var Sn=-1,gr=De==null?0:De.length;for(Vt&&gr&&(Qe=De[++Sn]);++Sn<gr;)Qe=lt(Qe,De[Sn],Sn,De);return Qe}function H2(De,lt,Qe,Vt){var Sn=De==null?0:De.length;for(Vt&&Sn&&(Qe=De[--Sn]);Sn--;)Qe=lt(Qe,De[Sn],Sn,De);return Qe}function hS(De,lt){for(var Qe=-1,Vt=De==null?0:De.length;++Qe<Vt;)if(lt(De[Qe],Qe,De))return!0;return!1}var U2=nb("length");function G2(De){return De.split("")}function W2(De){return De.match(Zi)||[]}function WP(De,lt,Qe){var Vt;return Qe(De,function(Sn,gr,Jo){if(lt(Sn,gr,Jo))return Vt=gr,!1}),Vt}function tb(De,lt,Qe,Vt){for(var Sn=De.length,gr=Qe+(Vt?1:-1);Vt?gr--:++gr<Sn;)if(lt(De[gr],gr,De))return gr;return-1}function ah(De,lt,Qe){return lt===lt?Q2(De,lt,Qe):tb(De,sh,Qe)}function mS(De,lt,Qe,Vt){for(var Sn=Qe-1,gr=De.length;++Sn<gr;)if(Vt(De[Sn],lt))return Sn;return-1}function sh(De){return De!==De}function qP(De,lt){var Qe=De==null?0:De.length;return Qe?ob(De,lt)/Qe:U}function nb(De){return function(lt){return lt==null?n:lt[De]}}function rb(De){return function(lt){return De==null?n:De[lt]}}function gS(De,lt,Qe,Vt,Sn){return Sn(De,function(gr,Jo,yr){Qe=Vt?(Vt=!1,gr):lt(Qe,gr,Jo,yr)}),Qe}function KP(De,lt){var Qe=De.length;for(De.sort(lt);Qe--;)De[Qe]=De[Qe].value;return De}function ob(De,lt){for(var Qe,Vt=-1,Sn=De.length;++Vt<Sn;){var gr=lt(De[Vt]);gr!==n&&(Qe=Qe===n?gr:Qe+gr)}return Qe}function pd(De,lt){for(var Qe=-1,Vt=Array(De);++Qe<De;)Vt[Qe]=lt(Qe);return Vt}function q2(De,lt){return bo(lt,function(Qe){return[Qe,De[Qe]]})}function YP(De){return De&&De.slice(0,vS(De)+1).replace(cr,"")}function hs(De){return function(lt){return De(lt)}}function ib(De,lt){return bo(lt,function(Qe){return De[Qe]})}function lh(De,lt){return De.has(lt)}function ch(De,lt){for(var Qe=-1,Vt=De.length;++Qe<Vt&&ah(lt,De[Qe],0)>-1;);return Qe}function uh(De,lt){for(var Qe=De.length;Qe--&&ah(lt,De[Qe],0)>-1;);return Qe}function K2(De,lt){for(var Qe=De.length,Vt=0;Qe--;)De[Qe]===lt&&++Vt;return Vt}var ab=rb(FP),QP=rb(Fa);function XP(De){return"\\"+Xv[De]}function yS(De,lt){return De==null?n:De[lt]}function hd(De){return dd.test(De)}function JP(De){return cS.test(De)}function ZP(De){for(var lt,Qe=[];!(lt=De.next()).done;)Qe.push(lt.value);return Qe}function sb(De){var lt=-1,Qe=Array(De.size);return De.forEach(function(Vt,Sn){Qe[++lt]=[Sn,Vt]}),Qe}function eI(De,lt){return function(Qe){return De(lt(Qe))}}function md(De,lt){for(var Qe=-1,Vt=De.length,Sn=0,gr=[];++Qe<Vt;){var Jo=De[Qe];(Jo===lt||Jo===u)&&(De[Qe]=u,gr[Sn++]=Qe)}return gr}function lb(De){var lt=-1,Qe=Array(De.size);return De.forEach(function(Vt){Qe[++lt]=Vt}),Qe}function Y2(De){var lt=-1,Qe=Array(De.size);return De.forEach(function(Vt){Qe[++lt]=[Vt,Vt]}),Qe}function Q2(De,lt,Qe){for(var Vt=Qe-1,Sn=De.length;++Vt<Sn;)if(De[Vt]===lt)return Vt;return-1}function ms(De,lt,Qe){for(var Vt=Qe+1;Vt--;)if(De[Vt]===lt)return Vt;return Vt}function ac(De){return hd(De)?nI(De):U2(De)}function Us(De){return hd(De)?bS(De):G2(De)}function vS(De){for(var lt=De.length;lt--&&Ei.test(De.charAt(lt)););return lt}var tI=rb(Of);function nI(De){for(var lt=tg.lastIndex=0;tg.test(De);)++lt;return lt}function bS(De){return De.match(tg)||[]}function X2(De){return De.match(ng)||[]}var dh=function De(lt){lt=lt==null?Ko:gd.defaults(Ko.Object(),lt,gd.pick(Ko,Qv));var Qe=lt.Array,Vt=lt.Date,Sn=lt.Error,gr=lt.Function,Jo=lt.Math,yr=lt.Object,cb=lt.RegExp,rI=lt.String,gs=lt.TypeError,ub=Qe.prototype,J2=gr.prototype,fh=yr.prototype,og=lt["__core-js_shared__"],ig=J2.toString,Er=fh.hasOwnProperty,bl=0,xS=function(){var b=/[^.]+$/.exec(og&&og.keys&&og.keys.IE_PROTO||"");return b?"Symbol(src)_1."+b:""}(),Sa=fh.toString,Gs=ig.call(yr),ph=Ko._,wS=cb("^"+ig.call(Er).replace(ln,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Mf=jP?lt.Buffer:n,xl=lt.Symbol,hh=lt.Uint8Array,Af=Mf?Mf.allocUnsafe:n,ag=eI(yr.getPrototypeOf,yr),sg=yr.create,Df=fh.propertyIsEnumerable,db=ub.splice,Ba=xl?xl.isConcatSpreadable:n,Rf=xl?xl.iterator:n,Ca=xl?xl.toStringTag:n,lg=function(){try{var b=Td(yr,"defineProperty");return b({},"",{}),b}catch{}}(),fb=lt.clearTimeout!==Ko.clearTimeout&&lt.clearTimeout,kf=Vt&&Vt.now!==Ko.Date.now&&Vt.now,SS=lt.setTimeout!==Ko.setTimeout&&lt.setTimeout,mh=Jo.ceil,uu=Jo.floor,yd=yr.getOwnPropertySymbols,pb=Mf?Mf.isBuffer:n,cg=lt.isFinite,Ws=ub.join,qs=eI(yr.keys,yr),fo=Jo.max,xo=Jo.min,du=Vt.now,Nf=lt.parseInt,CS=Jo.random,ES=ub.reverse,ug=Td(lt,"DataView"),li=Td(lt,"Map"),wo=Td(lt,"Promise"),or=Td(lt,"Set"),wl=Td(lt,"WeakMap"),za=Td(yr,"create"),gh=wl&&new wl,Ks={},oI=xu(ug),iI=xu(li),dg=xu(wo),fg=xu(or),aI=xu(wl),vd=xl?xl.prototype:n,_f=vd?vd.valueOf:n,bd=vd?vd.toString:n;function oe(b){if(Mo(b)&&!In(b)&&!(b instanceof Qn)){if(b instanceof Va)return b;if(Er.call(b,"__wrapped__"))return ui(b)}return new Va(b)}var ys=function(){function b(){}return function(T){if(!Co(T))return{};if(sg)return sg(T);b.prototype=T;var _=new b;return b.prototype=n,_}}();function Ys(){}function Va(b,T){this.__wrapped__=b,this.__actions__=[],this.__chain__=!!T,this.__index__=0,this.__values__=n}oe.templateSettings={escape:si,evaluate:us,interpolate:fn,variable:"",imports:{_:oe}},oe.prototype=Ys.prototype,oe.prototype.constructor=oe,Va.prototype=ys(Ys.prototype),Va.prototype.constructor=Va;function Qn(b){this.__wrapped__=b,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function pg(){var b=new Qn(this.__wrapped__);return b.__actions__=ci(this.__actions__),b.__dir__=this.__dir__,b.__filtered__=this.__filtered__,b.__iteratees__=ci(this.__iteratees__),b.__takeCount__=this.__takeCount__,b.__views__=ci(this.__views__),b}function hb(){if(this.__filtered__){var b=new Qn(this);b.__dir__=-1,b.__filtered__=!0}else b=this.clone(),b.__dir__*=-1;return b}function Lf(){var b=this.__wrapped__.value(),T=this.__dir__,_=In(b),q=T<0,ne=_?b.length:0,de=jI(0,ne,this.__views__),ve=de.start,Ee=de.end,Le=Ee-ve,mt=q?Ee:ve-1,yt=this.__iteratees__,Ct=yt.length,Ht=0,on=xo(Le,this.__takeCount__);if(!_||!q&&ne==Le&&on==Le)return TI(b,this.__actions__);var En=[];e:for(;Le--&&Ht<on;){mt+=T;for(var Jn=-1,Tn=b[mt];++Jn<Ct;){var dr=yt[Jn],br=dr.iteratee,Ol=dr.type,Es=br(Tn);if(Ol==G)Tn=Es;else if(!Es){if(Ol==Q)continue e;break e}}En[Ht++]=Tn}return En}Qn.prototype=ys(Ys.prototype),Qn.prototype.constructor=Qn;function $o(b){var T=-1,_=b==null?0:b.length;for(this.clear();++T<_;){var q=b[T];this.set(q[0],q[1])}}function mb(){this.__data__=za?za(null):{},this.size=0}function sI(b){var T=this.has(b)&&delete this.__data__[b];return this.size-=T?1:0,T}function Z2(b){var T=this.__data__;if(za){var _=T[b];return _===l?n:_}return Er.call(T,b)?T[b]:n}function eN(b){var T=this.__data__;return za?T[b]!==n:Er.call(T,b)}function tN(b,T){var _=this.__data__;return this.size+=this.has(b)?0:1,_[b]=za&&T===n?l:T,this}$o.prototype.clear=mb,$o.prototype.delete=sI,$o.prototype.get=Z2,$o.prototype.has=eN,$o.prototype.set=tN;function Kr(b){var T=-1,_=b==null?0:b.length;for(this.clear();++T<_;){var q=b[T];this.set(q[0],q[1])}}function TS(){this.__data__=[],this.size=0}function hg(b){var T=this.__data__,_=bh(T,b);if(_<0)return!1;var q=T.length-1;return _==q?T.pop():db.call(T,_,1),--this.size,!0}function mg(b){var T=this.__data__,_=bh(T,b);return _<0?n:T[_][1]}function PS(b){return bh(this.__data__,b)>-1}function yh(b,T){var _=this.__data__,q=bh(_,b);return q<0?(++this.size,_.push([b,T])):_[q][1]=T,this}Kr.prototype.clear=TS,Kr.prototype.delete=hg,Kr.prototype.get=mg,Kr.prototype.has=PS,Kr.prototype.set=yh;function Ha(b){var T=-1,_=b==null?0:b.length;for(this.clear();++T<_;){var q=b[T];this.set(q[0],q[1])}}function nN(){this.size=0,this.__data__={hash:new $o,map:new(li||Kr),string:new $o}}function lI(b){var T=Th(this,b).delete(b);return this.size-=T?1:0,T}function rN(b){return Th(this,b).get(b)}function cI(b){return Th(this,b).has(b)}function $f(b,T){var _=Th(this,b),q=_.size;return _.set(b,T),this.size+=_.size==q?0:1,this}Ha.prototype.clear=nN,Ha.prototype.delete=lI,Ha.prototype.get=rN,Ha.prototype.has=cI,Ha.prototype.set=$f;function fu(b){var T=-1,_=b==null?0:b.length;for(this.__data__=new Ha;++T<_;)this.add(b[T])}function gb(b){return this.__data__.set(b,l),this}function uI(b){return this.__data__.has(b)}fu.prototype.add=fu.prototype.push=gb,fu.prototype.has=uI;function Ea(b){var T=this.__data__=new Kr(b);this.size=T.size}function dI(){this.__data__=new Kr,this.size=0}function yb(b){var T=this.__data__,_=T.delete(b);return this.size=T.size,_}function IS(b){return this.__data__.get(b)}function fI(b){return this.__data__.has(b)}function vb(b,T){var _=this.__data__;if(_ instanceof Kr){var q=_.__data__;if(!li||q.length<o-1)return q.push([b,T]),this.size=++_.size,this;_=this.__data__=new Ha(q)}return _.set(b,T),this.size=_.size,this}Ea.prototype.clear=dI,Ea.prototype.delete=yb,Ea.prototype.get=IS,Ea.prototype.has=fI,Ea.prototype.set=vb;function OS(b,T){var _=In(b),q=!_&&Eu(b),ne=!_&&!q&&_d(b),de=!_&&!q&&!ne&&jh(b),ve=_||q||ne||de,Ee=ve?pd(b.length,rI):[],Le=Ee.length;for(var mt in b)(T||Er.call(b,mt))&&!(ve&&(mt=="length"||ne&&(mt=="offset"||mt=="parent")||de&&(mt=="buffer"||mt=="byteLength"||mt=="byteOffset")||Tl(mt,Le)))&&Ee.push(mt);return Ee}function vh(b){var T=b.length;return T?b[Ob(0,T-1)]:n}function pI(b,T){return Vg(ci(b),Cl(T,0,b.length))}function hI(b){return Vg(ci(b))}function sc(b,T,_){(_!==n&&!Qa(b[T],_)||_===n&&!(T in b))&&Sl(b,T,_)}function Ff(b,T,_){var q=b[T];(!(Er.call(b,T)&&Qa(q,_))||_===n&&!(T in b))&&Sl(b,T,_)}function bh(b,T){for(var _=b.length;_--;)if(Qa(b[_][0],T))return _;return-1}function xd(b,T,_,q){return hu(b,function(ne,de,ve){T(q,ne,_(ne),ve)}),q}function pu(b,T){return b&&Wa(T,pi(T),b)}function gg(b,T){return b&&Wa(T,Oi(T),b)}function Sl(b,T,_){T=="__proto__"&&lg?lg(b,T,{configurable:!0,enumerable:!0,value:_,writable:!0}):b[T]=_}function yg(b,T){for(var _=-1,q=T.length,ne=Qe(q),de=b==null;++_<q;)ne[_]=de?n:ny(b,T[_]);return ne}function Cl(b,T,_){return b===b&&(_!==n&&(b=b<=_?b:_),T!==n&&(b=b>=T?b:T)),b}function ea(b,T,_,q,ne,de){var ve,Ee=T&f,Le=T&h,mt=T&g;if(_&&(ve=ne?_(b,q,ne,de):_(b)),ve!==n)return ve;if(!Co(b))return b;var yt=In(b);if(yt){if(ve=eC(b),!Ee)return ci(b,ve)}else{var Ct=Ii(b),Ht=Ct==ae||Ct==Se;if(_d(b))return WS(b,Ee);if(Ct==Te||Ct==se||Ht&&!ne){if(ve=Le||Ht?{}:tC(b),!Ee)return Le?Ag(b,gg(ve,b)):Nb(b,pu(ve,b))}else{if(!Rr[Ct])return ne?b:{};ve=nC(b,Ct,Ee)}}de||(de=new Ea);var on=de.get(b);if(on)return on;de.set(b,ve),DO(b)?b.forEach(function(Tn){ve.add(ea(Tn,T,_,Tn,b,de))}):i0(b)&&b.forEach(function(Tn,dr){ve.set(dr,ea(Tn,T,_,dr,b,de))});var En=mt?Le?Fb:$b:Le?Oi:pi,Jn=yt?n:En(b);return Hs(Jn||b,function(Tn,dr){Jn&&(dr=Tn,Tn=b[dr]),Ff(ve,dr,ea(Tn,T,_,dr,b,de))}),ve}function mI(b){var T=pi(b);return function(_){return MS(_,b,T)}}function MS(b,T,_){var q=_.length;if(b==null)return!q;for(b=yr(b);q--;){var ne=_[q],de=T[ne],ve=b[ne];if(ve===n&&!(ne in b)||!de(ve))return!1}return!0}function jf(b,T,_){if(typeof b!="function")throw new gs(a);return Ih(function(){b.apply(n,_)},T)}function wd(b,T,_,q){var ne=-1,de=eb,ve=!0,Ee=b.length,Le=[],mt=T.length;if(!Ee)return Le;_&&(T=bo(T,hs(_))),q?(de=fS,ve=!1):T.length>=o&&(de=lh,ve=!1,T=new fu(T));e:for(;++ne<Ee;){var yt=b[ne],Ct=_==null?yt:_(yt);if(yt=q||yt!==0?yt:0,ve&&Ct===Ct){for(var Ht=mt;Ht--;)if(T[Ht]===Ct)continue e;Le.push(yt)}else de(T,Ct,q)||Le.push(yt)}return Le}var hu=QS(ta),bb=QS(wh,!0);function AS(b,T){var _=!0;return hu(b,function(q,ne,de){return _=!!T(q,ne,de),_}),_}function El(b,T,_){for(var q=-1,ne=b.length;++q<ne;){var de=b[q],ve=T(de);if(ve!=null&&(Ee===n?ve===ve&&!Ia(ve):_(ve,Ee)))var Ee=ve,Le=de}return Le}function Hn(b,T,_,q){var ne=b.length;for(_=Rn(_),_<0&&(_=-_>ne?0:ne+_),q=q===n||q>ne?ne:Rn(q),q<0&&(q+=ne),q=_>q?0:gc(q);_<q;)b[_++]=T;return b}function kr(b,T){var _=[];return hu(b,function(q,ne,de){T(q,ne,de)&&_.push(q)}),_}function ir(b,T,_,q,ne){var de=-1,ve=b.length;for(_||(_=vu),ne||(ne=[]);++de<ve;){var Ee=b[de];T>0&&_(Ee)?T>1?ir(Ee,T-1,_,q,ne):cu(ne,Ee):q||(ne[ne.length]=Ee)}return ne}var xh=Wf(),Bf=Wf(!0);function ta(b,T){return b&&xh(b,T,pi)}function wh(b,T){return b&&Bf(b,T,pi)}function Sd(b,T){return ic(T,function(_){return Pl(b[_])})}function Qs(b,T){T=gu(T,b);for(var _=0,q=T.length;b!=null&&_<q;)b=b[Or(T[_++])];return _&&_==q?b:n}function gI(b,T,_){var q=T(b);return In(b)?q:cu(q,_(b))}function ur(b){return b==null?b===n?Ke:ke:Ca&&Ca in yr(b)?FI(b):UI(b)}function vg(b,T){return b>T}function DS(b,T){return b!=null&&Er.call(b,T)}function yI(b,T){return b!=null&&T in yr(b)}function vI(b,T,_){return b>=xo(T,_)&&b<fo(T,_)}function RS(b,T,_){for(var q=_?fS:eb,ne=b[0].length,de=b.length,ve=de,Ee=Qe(de),Le=1/0,mt=[];ve--;){var yt=b[ve];ve&&T&&(yt=bo(yt,hs(T))),Le=xo(yt.length,Le),Ee[ve]=!_&&(T||ne>=120&&yt.length>=120)?new fu(ve&&yt):n}yt=b[0];var Ct=-1,Ht=Ee[0];e:for(;++Ct<ne&&mt.length<Le;){var on=yt[Ct],En=T?T(on):on;if(on=_||on!==0?on:0,!(Ht?lh(Ht,En):q(mt,En,_))){for(ve=de;--ve;){var Jn=Ee[ve];if(!(Jn?lh(Jn,En):q(b[ve],En,_)))continue e}Ht&&Ht.push(En),mt.push(on)}}return mt}function kS(b,T,_,q){return ta(b,function(ne,de,ve){T(q,_(ne),de,ve)}),q}function zf(b,T,_){T=gu(T,b),b=Ph(b,T);var q=b==null?b:b[Or(na(T))];return q==null?n:ja(q,b,_)}function xb(b){return Mo(b)&&ur(b)==se}function Ua(b){return Mo(b)&&ur(b)==ot}function Zo(b){return Mo(b)&&ur(b)==he}function Vf(b,T,_,q,ne){return b===T?!0:b==null||T==null||!Mo(b)&&!Mo(T)?b!==b&&T!==T:bg(b,T,_,q,Vf,ne)}function bg(b,T,_,q,ne,de){var ve=In(b),Ee=In(T),Le=ve?fe:Ii(b),mt=Ee?fe:Ii(T);Le=Le==se?Te:Le,mt=mt==se?Te:mt;var yt=Le==Te,Ct=mt==Te,Ht=Le==mt;if(Ht&&_d(b)){if(!_d(T))return!1;ve=!0,yt=!1}if(Ht&&!yt)return de||(de=new Ea),ve||jh(b)?LI(b,T,_,q,ne,de):$I(b,T,Le,_,q,ne,de);if(!(_&y)){var on=yt&&Er.call(b,"__wrapped__"),En=Ct&&Er.call(T,"__wrapped__");if(on||En){var Jn=on?b.value():b,Tn=En?T.value():T;return de||(de=new Ea),ne(Jn,Tn,_,q,de)}}return Ht?(de||(de=new Ea),Pi(b,T,_,q,ne,de)):!1}function wb(b){return Mo(b)&&Ii(b)==Ie}function xg(b,T,_,q){var ne=_.length,de=ne,ve=!q;if(b==null)return!de;for(b=yr(b);ne--;){var Ee=_[ne];if(ve&&Ee[2]?Ee[1]!==b[Ee[0]]:!(Ee[0]in b))return!1}for(;++ne<de;){Ee=_[ne];var Le=Ee[0],mt=b[Le],yt=Ee[1];if(ve&&Ee[2]){if(mt===n&&!(Le in b))return!1}else{var Ct=new Ea;if(q)var Ht=q(mt,yt,Le,b,T,Ct);if(!(Ht===n?Vf(yt,mt,y|x,q,Ct):Ht))return!1}}return!0}function lc(b){if(!Co(b)||Ub(b))return!1;var T=Pl(b)?wS:at;return T.test(xu(b))}function Sb(b){return Mo(b)&&ur(b)==Me}function NS(b){return Mo(b)&&Ii(b)==_e}function _S(b){return Mo(b)&&Xf(b.length)&&!!Br[ur(b)]}function LS(b){return typeof b=="function"?b:b==null?Ve:typeof b=="object"?In(b)?Tb(b[0],b[1]):FS(b):vr(b)}function Cb(b){if(!Yr(b))return qs(b);var T=[];for(var _ in yr(b))Er.call(b,_)&&_!="constructor"&&T.push(_);return T}function bI(b){if(!Co(b))return Pd(b);var T=Yr(b),_=[];for(var q in b)q=="constructor"&&(T||!Er.call(b,q))||_.push(q);return _}function Eb(b,T){return b<T}function $S(b,T){var _=-1,q=di(b)?Qe(b.length):[];return hu(b,function(ne,de,ve){q[++_]=T(ne,de,ve)}),q}function FS(b){var T=Bb(b);return T.length==1&&T[0][2]?VI(T[0][0],T[0][1]):function(_){return _===b||xg(_,b,T)}}function Tb(b,T){return Vb(b)&&zI(T)?VI(Or(b),T):function(_){var q=ny(_,b);return q===n&&q===T?Hh(_,b):Vf(T,q,y|x)}}function wg(b,T,_,q,ne){b!==T&&xh(T,function(de,ve){if(ne||(ne=new Ea),Co(de))oN(b,T,ve,_,wg,q,ne);else{var Ee=q?q(Gb(b,ve),de,ve+"",b,T,ne):n;Ee===n&&(Ee=de),sc(b,ve,Ee)}},Oi)}function oN(b,T,_,q,ne,de,ve){var Ee=Gb(b,_),Le=Gb(T,_),mt=ve.get(Le);if(mt){sc(b,_,mt);return}var yt=de?de(Ee,Le,_+"",b,T,ve):n,Ct=yt===n;if(Ct){var Ht=In(Le),on=!Ht&&_d(Le),En=!Ht&&!on&&jh(Le);yt=Le,Ht||on||En?In(Ee)?yt=Ee:Bo(Ee)?yt=ci(Ee):on?(Ct=!1,yt=WS(Le,!0)):En?(Ct=!1,yt=KS(Le,!0)):yt=[]:el(Le)||Eu(Le)?(yt=Ee,Eu(Ee)?yt=NO(Ee):(!Co(Ee)||Pl(Ee))&&(yt=tC(Le))):Ct=!1}Ct&&(ve.set(Le,yt),ne(yt,Le,q,de,ve),ve.delete(Le)),sc(b,_,yt)}function jS(b,T){var _=b.length;if(_)return T+=T<0?_:0,Tl(T,_)?b[T]:n}function BS(b,T,_){T.length?T=bo(T,function(de){return In(de)?function(ve){return Qs(ve,de.length===1?de[0]:de)}:de}):T=[Ve];var q=-1;T=bo(T,hs(dn()));var ne=$S(b,function(de,ve,Ee){var Le=bo(T,function(mt){return mt(de)});return{criteria:Le,index:++q,value:de}});return KP(ne,function(de,ve){return MI(de,ve,_)})}function xI(b,T){return Pb(b,T,function(_,q){return Hh(b,q)})}function Pb(b,T,_){for(var q=-1,ne=T.length,de={};++q<ne;){var ve=T[q],Ee=Qs(b,ve);_(Ee,ve)&&Ch(de,gu(ve,b),Ee)}return de}function wI(b){return function(T){return Qs(T,b)}}function Ib(b,T,_,q){var ne=q?mS:ah,de=-1,ve=T.length,Ee=b;for(b===T&&(T=ci(T)),_&&(Ee=bo(b,hs(_)));++de<ve;)for(var Le=0,mt=T[de],yt=_?_(mt):mt;(Le=ne(Ee,yt,Le,q))>-1;)Ee!==b&&db.call(Ee,Le,1),db.call(b,Le,1);return b}function zS(b,T){for(var _=b?T.length:0,q=_-1;_--;){var ne=T[_];if(_==q||ne!==de){var de=ne;Tl(ne)?db.call(b,ne,1):Tg(b,ne)}}return b}function Ob(b,T){return b+uu(CS()*(T-b+1))}function SI(b,T,_,q){for(var ne=-1,de=fo(mh((T-b)/(_||1)),0),ve=Qe(de);de--;)ve[q?de:++ne]=b,b+=_;return ve}function VS(b,T){var _="";if(!b||T<1||T>X)return _;do T%2&&(_+=b),T=uu(T/2),T&&(b+=b);while(T);return _}function $n(b,T){return Bg(rC(b,T,Ve),b+"")}function Sh(b){return vh(Gh(b))}function Mb(b,T){var _=Gh(b);return Vg(_,Cl(T,0,_.length))}function Ch(b,T,_,q){if(!Co(b))return b;T=gu(T,b);for(var ne=-1,de=T.length,ve=de-1,Ee=b;Ee!=null&&++ne<de;){var Le=Or(T[ne]),mt=_;if(Le==="__proto__"||Le==="constructor"||Le==="prototype")return b;if(ne!=ve){var yt=Ee[Le];mt=q?q(yt,Le,Ee):n,mt===n&&(mt=Co(yt)?yt:Tl(T[ne+1])?[]:{})}Ff(Ee,Le,mt),Ee=Ee[Le]}return b}var Sg=gh?function(b,T){return gh.set(b,T),b}:Ve,Cg=lg?function(b,T){return lg(b,"toString",{configurable:!0,enumerable:!1,value:ze(T),writable:!0})}:Ve;function CI(b){return Vg(Gh(b))}function vs(b,T,_){var q=-1,ne=b.length;T<0&&(T=-T>ne?0:ne+T),_=_>ne?ne:_,_<0&&(_+=ne),ne=T>_?0:_-T>>>0,T>>>=0;for(var de=Qe(ne);++q<ne;)de[q]=b[q+T];return de}function EI(b,T){var _;return hu(b,function(q,ne,de){return _=T(q,ne,de),!_}),!!_}function Eg(b,T,_){var q=0,ne=b==null?q:b.length;if(typeof T=="number"&&T===T&&ne<=le){for(;q<ne;){var de=q+ne>>>1,ve=b[de];ve!==null&&!Ia(ve)&&(_?ve<=T:ve<T)?q=de+1:ne=de}return ne}return Ab(b,T,Ve,_)}function Ab(b,T,_,q){var ne=0,de=b==null?0:b.length;if(de===0)return 0;T=_(T);for(var ve=T!==T,Ee=T===null,Le=Ia(T),mt=T===n;ne<de;){var yt=uu((ne+de)/2),Ct=_(b[yt]),Ht=Ct!==n,on=Ct===null,En=Ct===Ct,Jn=Ia(Ct);if(ve)var Tn=q||En;else mt?Tn=En&&(q||Ht):Ee?Tn=En&&Ht&&(q||!on):Le?Tn=En&&Ht&&!on&&(q||!Jn):on||Jn?Tn=!1:Tn=q?Ct<=T:Ct<T;Tn?ne=yt+1:de=yt}return xo(de,ee)}function HS(b,T){for(var _=-1,q=b.length,ne=0,de=[];++_<q;){var ve=b[_],Ee=T?T(ve):ve;if(!_||!Qa(Ee,Le)){var Le=Ee;de[ne++]=ve===0?0:ve}}return de}function Db(b){return typeof b=="number"?b:Ia(b)?U:+b}function Ga(b){if(typeof b=="string")return b;if(In(b))return bo(b,Ga)+"";if(Ia(b))return bd?bd.call(b):"";var T=b+"";return T=="0"&&1/b==-Y?"-0":T}function mu(b,T,_){var q=-1,ne=eb,de=b.length,ve=!0,Ee=[],Le=Ee;if(_)ve=!1,ne=fS;else if(de>=o){var mt=T?null:NI(b);if(mt)return lb(mt);ve=!1,ne=lh,Le=new fu}else Le=T?[]:Ee;e:for(;++q<de;){var yt=b[q],Ct=T?T(yt):yt;if(yt=_||yt!==0?yt:0,ve&&Ct===Ct){for(var Ht=Le.length;Ht--;)if(Le[Ht]===Ct)continue e;T&&Le.push(Ct),Ee.push(yt)}else ne(Le,Ct,_)||(Le!==Ee&&Le.push(Ct),Ee.push(yt))}return Ee}function Tg(b,T){return T=gu(T,b),b=Ph(b,T),b==null||delete b[Or(na(T))]}function US(b,T,_,q){return Ch(b,T,_(Qs(b,T)),q)}function Pg(b,T,_,q){for(var ne=b.length,de=q?ne:-1;(q?de--:++de<ne)&&T(b[de],de,b););return _?vs(b,q?0:de,q?de+1:ne):vs(b,q?de+1:0,q?ne:de)}function TI(b,T){var _=b;return _ instanceof Qn&&(_=_.value()),pS(T,function(q,ne){return ne.func.apply(ne.thisArg,cu([q],ne.args))},_)}function Ig(b,T,_){var q=b.length;if(q<2)return q?mu(b[0]):[];for(var ne=-1,de=Qe(q);++ne<q;)for(var ve=b[ne],Ee=-1;++Ee<q;)Ee!=ne&&(de[ne]=wd(de[ne]||ve,b[Ee],T,_));return mu(ir(de,1),T,_)}function GS(b,T,_){for(var q=-1,ne=b.length,de=T.length,ve={};++q<ne;){var Ee=q<de?T[q]:n;_(ve,b[q],Ee)}return ve}function Rb(b){return Bo(b)?b:[]}function Og(b){return typeof b=="function"?b:Ve}function gu(b,T){return In(b)?b:Vb(b,T)?[b]:fc(Tr(b))}var PI=$n;function Cd(b,T,_){var q=b.length;return _=_===n?q:_,!T&&_>=q?b:vs(b,T,_)}var II=fb||function(b){return Ko.clearTimeout(b)};function WS(b,T){if(T)return b.slice();var _=b.length,q=Af?Af(_):new b.constructor(_);return b.copy(q),q}function Hf(b){var T=new b.constructor(b.byteLength);return new hh(T).set(new hh(b)),T}function qS(b,T){var _=T?Hf(b.buffer):b.buffer;return new b.constructor(_,b.byteOffset,b.byteLength)}function kb(b){var T=new b.constructor(b.source,js.exec(b));return T.lastIndex=b.lastIndex,T}function OI(b){return _f?yr(_f.call(b)):{}}function KS(b,T){var _=T?Hf(b.buffer):b.buffer;return new b.constructor(_,b.byteOffset,b.length)}function Mg(b,T){if(b!==T){var _=b!==n,q=b===null,ne=b===b,de=Ia(b),ve=T!==n,Ee=T===null,Le=T===T,mt=Ia(T);if(!Ee&&!mt&&!de&&b>T||de&&ve&&Le&&!Ee&&!mt||q&&ve&&Le||!_&&Le||!ne)return 1;if(!q&&!de&&!mt&&b<T||mt&&_&&ne&&!q&&!de||Ee&&_&&ne||!ve&&ne||!Le)return-1}return 0}function MI(b,T,_){for(var q=-1,ne=b.criteria,de=T.criteria,ve=ne.length,Ee=_.length;++q<ve;){var Le=Mg(ne[q],de[q]);if(Le){if(q>=Ee)return Le;var mt=_[q];return Le*(mt=="desc"?-1:1)}}return b.index-T.index}function YS(b,T,_,q){for(var ne=-1,de=b.length,ve=_.length,Ee=-1,Le=T.length,mt=fo(de-ve,0),yt=Qe(Le+mt),Ct=!q;++Ee<Le;)yt[Ee]=T[Ee];for(;++ne<ve;)(Ct||ne<de)&&(yt[_[ne]]=b[ne]);for(;mt--;)yt[Ee++]=b[ne++];return yt}function AI(b,T,_,q){for(var ne=-1,de=b.length,ve=-1,Ee=_.length,Le=-1,mt=T.length,yt=fo(de-Ee,0),Ct=Qe(yt+mt),Ht=!q;++ne<yt;)Ct[ne]=b[ne];for(var on=ne;++Le<mt;)Ct[on+Le]=T[Le];for(;++ve<Ee;)(Ht||ne<de)&&(Ct[on+_[ve]]=b[ne++]);return Ct}function ci(b,T){var _=-1,q=b.length;for(T||(T=Qe(q));++_<q;)T[_]=b[_];return T}function Wa(b,T,_,q){var ne=!_;_||(_={});for(var de=-1,ve=T.length;++de<ve;){var Ee=T[de],Le=q?q(_[Ee],b[Ee],Ee,_,b):n;Le===n&&(Le=b[Ee]),ne?Sl(_,Ee,Le):Ff(_,Ee,Le)}return _}function Nb(b,T){return Wa(b,Lg(b),T)}function Ag(b,T){return Wa(b,zb(b),T)}function Uf(b,T){return function(_,q){var ne=In(_)?z2:xd,de=T?T():{};return ne(_,b,dn(q,2),de)}}function Gf(b){return $n(function(T,_){var q=-1,ne=_.length,de=ne>1?_[ne-1]:n,ve=ne>2?_[2]:n;for(de=b.length>3&&typeof de=="function"?(ne--,de):n,ve&&Pa(_[0],_[1],ve)&&(de=ne<3?n:de,ne=1),T=yr(T);++q<ne;){var Ee=_[q];Ee&&b(T,Ee,q,de)}return T})}function QS(b,T){return function(_,q){if(_==null)return _;if(!di(_))return b(_,q);for(var ne=_.length,de=T?ne:-1,ve=yr(_);(T?de--:++de<ne)&&q(ve[de],de,ve)!==!1;);return _}}function Wf(b){return function(T,_,q){for(var ne=-1,de=yr(T),ve=q(T),Ee=ve.length;Ee--;){var Le=ve[b?Ee:++ne];if(_(de[Le],Le,de)===!1)break}return T}}function DI(b,T,_){var q=T&S,ne=Xs(b);function de(){var ve=this&&this!==Ko&&this instanceof de?ne:b;return ve.apply(q?_:this,arguments)}return de}function bs(b){return function(T){T=Tr(T);var _=hd(T)?Us(T):n,q=_?_[0]:T.charAt(0),ne=_?Cd(_,1).join(""):T.slice(1);return q[b]()+ne}}function Ta(b){return function(T){return pS(k(Tu(T).replace(eg,"")),b,"")}}function Xs(b){return function(){var T=arguments;switch(T.length){case 0:return new b;case 1:return new b(T[0]);case 2:return new b(T[0],T[1]);case 3:return new b(T[0],T[1],T[2]);case 4:return new b(T[0],T[1],T[2],T[3]);case 5:return new b(T[0],T[1],T[2],T[3],T[4]);case 6:return new b(T[0],T[1],T[2],T[3],T[4],T[5]);case 7:return new b(T[0],T[1],T[2],T[3],T[4],T[5],T[6])}var _=ys(b.prototype),q=b.apply(_,T);return Co(q)?q:_}}function RI(b,T,_){var q=Xs(b);function ne(){for(var de=arguments.length,ve=Qe(de),Ee=de,Le=Kf(ne);Ee--;)ve[Ee]=arguments[Ee];var mt=de<3&&ve[0]!==Le&&ve[de-1]!==Le?[]:md(ve,Le);if(de-=mt.length,de<_)return XS(b,T,Fo,ne.placeholder,n,ve,mt,n,n,_-de);var yt=this&&this!==Ko&&this instanceof ne?q:b;return ja(yt,this,ve)}return ne}function yu(b){return function(T,_,q){var ne=yr(T);if(!di(T)){var de=dn(_,3);T=pi(T),_=function(Ee){return de(ne[Ee],Ee,ne)}}var ve=b(T,_,q);return ve>-1?ne[de?T[ve]:ve]:n}}function cc(b){return po(function(T){var _=T.length,q=_,ne=Va.prototype.thru;for(b&&T.reverse();q--;){var de=T[q];if(typeof de!="function")throw new gs(a);if(ne&&!ve&&_g(de)=="wrapper")var ve=new Va([],!0)}for(q=ve?q:_;++q<_;){de=T[q];var Ee=_g(de),Le=Ee=="wrapper"?jb(de):n;Le&&Hb(Le[0])&&Le[1]==(N|I|O|$)&&!Le[4].length&&Le[9]==1?ve=ve[_g(Le[0])].apply(ve,Le[3]):ve=de.length==1&&Hb(de)?ve[Ee]():ve.thru(de)}return function(){var mt=arguments,yt=mt[0];if(ve&&mt.length==1&&In(yt))return ve.plant(yt).value();for(var Ct=0,Ht=_?T[Ct].apply(this,mt):yt;++Ct<_;)Ht=T[Ct].call(this,Ht);return Ht}})}function Fo(b,T,_,q,ne,de,ve,Ee,Le,mt){var yt=T&N,Ct=T&S,Ht=T&C,on=T&(I|M),En=T&L,Jn=Ht?n:Xs(b);function Tn(){for(var dr=arguments.length,br=Qe(dr),Ol=dr;Ol--;)br[Ol]=arguments[Ol];if(on)var Es=Kf(Tn),Ml=K2(br,Es);if(q&&(br=YS(br,q,ne,on)),de&&(br=AI(br,de,ve,on)),dr-=Ml,on&&dr<mt){var hi=md(br,Es);return XS(b,T,Fo,Tn.placeholder,_,br,hi,Ee,Le,mt-dr)}var Pu=Ct?_:this,Jf=Ht?Pu[b]:b;return dr=br.length,Ee?br=dc(br,Ee):En&&dr>1&&br.reverse(),yt&&Le<dr&&(br.length=Le),this&&this!==Ko&&this instanceof Tn&&(Jf=Jn||Xs(Jf)),Jf.apply(Pu,br)}return Tn}function Dg(b,T){return function(_,q){return kS(_,b,T(q),{})}}function Eh(b,T){return function(_,q){var ne;if(_===n&&q===n)return T;if(_!==n&&(ne=_),q!==n){if(ne===n)return q;typeof _=="string"||typeof q=="string"?(_=Ga(_),q=Ga(q)):(_=Db(_),q=Db(q)),ne=b(_,q)}return ne}}function Rg(b){return po(function(T){return T=bo(T,hs(dn())),$n(function(_){var q=this;return b(T,function(ne){return ja(ne,q,_)})})})}function kg(b,T){T=T===n?" ":Ga(T);var _=T.length;if(_<2)return _?VS(T,b):T;var q=VS(T,mh(b/ac(T)));return hd(T)?Cd(Us(q),0,b).join(""):q.slice(0,b)}function kI(b,T,_,q){var ne=T&S,de=Xs(b);function ve(){for(var Ee=-1,Le=arguments.length,mt=-1,yt=q.length,Ct=Qe(yt+Le),Ht=this&&this!==Ko&&this instanceof ve?de:b;++mt<yt;)Ct[mt]=q[mt];for(;Le--;)Ct[mt++]=arguments[++Ee];return ja(Ht,ne?_:this,Ct)}return ve}function Ed(b){return function(T,_,q){return q&&typeof q!="number"&&Pa(T,_,q)&&(_=q=n),T=mc(T),_===n?(_=T,T=0):_=mc(_),q=q===n?T<_?1:-1:mc(q),SI(T,_,q,b)}}function qf(b){return function(T,_){return typeof T=="string"&&typeof _=="string"||(T=tl(T),_=tl(_)),b(T,_)}}function XS(b,T,_,q,ne,de,ve,Ee,Le,mt){var yt=T&I,Ct=yt?ve:n,Ht=yt?n:ve,on=yt?de:n,En=yt?n:de;T|=yt?O:D,T&=~(yt?D:O),T&E||(T&=-4);var Jn=[b,T,ne,on,Ct,En,Ht,Ee,Le,mt],Tn=_.apply(n,Jn);return Hb(b)&&Wb(Tn,Jn),Tn.placeholder=q,qb(Tn,b,T)}function _b(b){var T=Jo[b];return function(_,q){if(_=tl(_),q=q==null?0:xo(Rn(q),292),q&&cg(_)){var ne=(Tr(_)+"e").split("e"),de=T(ne[0]+"e"+(+ne[1]+q));return ne=(Tr(de)+"e").split("e"),+(ne[0]+"e"+(+ne[1]-q))}return T(_)}}var NI=or&&1/lb(new or([,-0]))[1]==Y?function(b){return new or(b)}:Xt;function Ng(b){return function(T){var _=Ii(T);return _==Ie?sb(T):_==_e?Y2(T):q2(T,b(T))}}function uc(b,T,_,q,ne,de,ve,Ee){var Le=T&C;if(!Le&&typeof b!="function")throw new gs(a);var mt=q?q.length:0;if(mt||(T&=-97,q=ne=n),ve=ve===n?ve:fo(Rn(ve),0),Ee=Ee===n?Ee:Rn(Ee),mt-=ne?ne.length:0,T&D){var yt=q,Ct=ne;q=ne=n}var Ht=Le?n:jb(b),on=[b,T,_,q,ne,yt,Ct,de,ve,Ee];if(Ht&&jg(on,Ht),b=on[0],T=on[1],_=on[2],q=on[3],ne=on[4],Ee=on[9]=on[9]===n?Le?0:b.length:fo(on[9]-mt,0),!Ee&&T&(I|M)&&(T&=-25),!T||T==S)var En=DI(b,T,_);else T==I||T==M?En=RI(b,T,Ee):(T==O||T==(S|O))&&!ne.length?En=kI(b,T,_,q):En=Fo.apply(n,on);var Jn=Ht?Sg:Wb;return qb(Jn(En,on),b,T)}function Lb(b,T,_,q){return b===n||Qa(b,fh[_])&&!Er.call(q,_)?T:b}function JS(b,T,_,q,ne,de){return Co(b)&&Co(T)&&(de.set(T,b),wg(b,T,n,JS,de),de.delete(T)),b}function _I(b){return el(b)?n:b}function LI(b,T,_,q,ne,de){var ve=_&y,Ee=b.length,Le=T.length;if(Ee!=Le&&!(ve&&Le>Ee))return!1;var mt=de.get(b),yt=de.get(T);if(mt&&yt)return mt==T&&yt==b;var Ct=-1,Ht=!0,on=_&x?new fu:n;for(de.set(b,T),de.set(T,b);++Ct<Ee;){var En=b[Ct],Jn=T[Ct];if(q)var Tn=ve?q(Jn,En,Ct,T,b,de):q(En,Jn,Ct,b,T,de);if(Tn!==n){if(Tn)continue;Ht=!1;break}if(on){if(!hS(T,function(dr,br){if(!lh(on,br)&&(En===dr||ne(En,dr,_,q,de)))return on.push(br)})){Ht=!1;break}}else if(!(En===Jn||ne(En,Jn,_,q,de))){Ht=!1;break}}return de.delete(b),de.delete(T),Ht}function $I(b,T,_,q,ne,de,ve){switch(_){case it:if(b.byteLength!=T.byteLength||b.byteOffset!=T.byteOffset)return!1;b=b.buffer,T=T.buffer;case ot:return!(b.byteLength!=T.byteLength||!de(new hh(b),new hh(T)));case Oe:case he:case Re:return Qa(+b,+T);case ye:return b.name==T.name&&b.message==T.message;case Me:case pe:return b==T+"";case Ie:var Ee=sb;case _e:var Le=q&y;if(Ee||(Ee=lb),b.size!=T.size&&!Le)return!1;var mt=ve.get(b);if(mt)return mt==T;q|=x,ve.set(b,T);var yt=LI(Ee(b),Ee(T),q,ne,de,ve);return ve.delete(b),yt;case je:if(_f)return _f.call(b)==_f.call(T)}return!1}function Pi(b,T,_,q,ne,de){var ve=_&y,Ee=$b(b),Le=Ee.length,mt=$b(T),yt=mt.length;if(Le!=yt&&!ve)return!1;for(var Ct=Le;Ct--;){var Ht=Ee[Ct];if(!(ve?Ht in T:Er.call(T,Ht)))return!1}var on=de.get(b),En=de.get(T);if(on&&En)return on==T&&En==b;var Jn=!0;de.set(b,T),de.set(T,b);for(var Tn=ve;++Ct<Le;){Ht=Ee[Ct];var dr=b[Ht],br=T[Ht];if(q)var Ol=ve?q(br,dr,Ht,T,b,de):q(dr,br,Ht,b,T,de);if(!(Ol===n?dr===br||ne(dr,br,_,q,de):Ol)){Jn=!1;break}Tn||(Tn=Ht=="constructor")}if(Jn&&!Tn){var Es=b.constructor,Ml=T.constructor;Es!=Ml&&"constructor"in b&&"constructor"in T&&!(typeof Es=="function"&&Es instanceof Es&&typeof Ml=="function"&&Ml instanceof Ml)&&(Jn=!1)}return de.delete(b),de.delete(T),Jn}function po(b){return Bg(rC(b,n,Ka),b+"")}function $b(b){return gI(b,pi,Lg)}function Fb(b){return gI(b,Oi,zb)}var jb=gh?function(b){return gh.get(b)}:Xt;function _g(b){for(var T=b.name+"",_=Ks[T],q=Er.call(Ks,T)?_.length:0;q--;){var ne=_[q],de=ne.func;if(de==null||de==b)return ne.name}return T}function Kf(b){var T=Er.call(oe,"placeholder")?oe:b;return T.placeholder}function dn(){var b=oe.iteratee||yn;return b=b===yn?LS:b,arguments.length?b(arguments[0],arguments[1]):b}function Th(b,T){var _=b.__data__;return bu(T)?_[typeof T=="string"?"string":"hash"]:_.map}function Bb(b){for(var T=pi(b),_=T.length;_--;){var q=T[_],ne=b[q];T[_]=[q,ne,zI(ne)]}return T}function Td(b,T){var _=yS(b,T);return lc(_)?_:n}function FI(b){var T=Er.call(b,Ca),_=b[Ca];try{b[Ca]=n;var q=!0}catch{}var ne=Sa.call(b);return q&&(T?b[Ca]=_:delete b[Ca]),ne}var Lg=yd?function(b){return b==null?[]:(b=yr(b),ic(yd(b),function(T){return Df.call(b,T)}))}:zN,zb=yd?function(b){for(var T=[];b;)cu(T,Lg(b)),b=ag(b);return T}:zN,Ii=ur;(ug&&Ii(new ug(new ArrayBuffer(1)))!=it||li&&Ii(new li)!=Ie||wo&&Ii(wo.resolve())!=Ce||or&&Ii(new or)!=_e||wl&&Ii(new wl)!=et)&&(Ii=function(b){var T=ur(b),_=T==Te?b.constructor:n,q=_?xu(_):"";if(q)switch(q){case oI:return it;case iI:return Ie;case dg:return Ce;case fg:return _e;case aI:return et}return T});function jI(b,T,_){for(var q=-1,ne=_.length;++q<ne;){var de=_[q],ve=de.size;switch(de.type){case"drop":b+=ve;break;case"dropRight":T-=ve;break;case"take":T=xo(T,b+ve);break;case"takeRight":b=fo(b,T-ve);break}}return{start:b,end:T}}function ZS(b){var T=b.match(Fs);return T?T[1].split(cd):[]}function $g(b,T,_){T=gu(T,b);for(var q=-1,ne=T.length,de=!1;++q<ne;){var ve=Or(T[q]);if(!(de=b!=null&&_(b,ve)))break;b=b[ve]}return de||++q!=ne?de:(ne=b==null?0:b.length,!!ne&&Xf(ne)&&Tl(ve,ne)&&(In(b)||Eu(b)))}function eC(b){var T=b.length,_=new b.constructor(T);return T&&typeof b[0]=="string"&&Er.call(b,"index")&&(_.index=b.index,_.input=b.input),_}function tC(b){return typeof b.constructor=="function"&&!Yr(b)?ys(ag(b)):{}}function nC(b,T,_){var q=b.constructor;switch(T){case ot:return Hf(b);case Oe:case he:return new q(+b);case it:return qS(b,_);case tt:case vt:case Je:case Mt:case Gt:case ht:case Qt:case en:case qt:return KS(b,_);case Ie:return new q;case Re:case pe:return new q(b);case Me:return kb(b);case _e:return new q;case je:return OI(b)}}function BI(b,T){var _=T.length;if(!_)return b;var q=_-1;return T[q]=(_>1?"& ":"")+T[q],T=T.join(_>2?", ":" "),b.replace(ds,`{
-/* [wrapped with `+T+`] */
-`)}function vu(b){return In(b)||Eu(b)||!!(Ba&&b&&b[Ba])}function Tl(b,T){var _=typeof b;return T=T??X,!!T&&(_=="number"||_!="symbol"&&Mn.test(b))&&b>-1&&b%1==0&&b<T}function Pa(b,T,_){if(!Co(_))return!1;var q=typeof T;return(q=="number"?di(_)&&Tl(T,_.length):q=="string"&&T in _)?Qa(_[T],b):!1}function Vb(b,T){if(In(b))return!1;var _=typeof b;return _=="number"||_=="symbol"||_=="boolean"||b==null||Ia(b)?!0:$t.test(b)||!Vn.test(b)||T!=null&&b in yr(T)}function bu(b){var T=typeof b;return T=="string"||T=="number"||T=="symbol"||T=="boolean"?b!=="__proto__":b===null}function Hb(b){var T=_g(b),_=oe[T];if(typeof _!="function"||!(T in Qn.prototype))return!1;if(b===_)return!0;var q=jb(_);return!!q&&b===q[0]}function Ub(b){return!!xS&&xS in b}var Fg=og?Pl:VN;function Yr(b){var T=b&&b.constructor,_=typeof T=="function"&&T.prototype||fh;return b===_}function zI(b){return b===b&&!Co(b)}function VI(b,T){return function(_){return _==null?!1:_[b]===T&&(T!==n||b in yr(_))}}function HI(b){var T=Qg(b,function(q){return _.size===c&&_.clear(),q}),_=T.cache;return T}function jg(b,T){var _=b[1],q=T[1],ne=_|q,de=ne<(S|C|N),ve=q==N&&_==I||q==N&&_==$&&b[7].length<=T[8]||q==(N|$)&&T[7].length<=T[8]&&_==I;if(!(de||ve))return b;q&S&&(b[2]=T[2],ne|=_&S?0:E);var Ee=T[3];if(Ee){var Le=b[3];b[3]=Le?YS(Le,Ee,T[4]):Ee,b[4]=Le?md(b[3],u):T[4]}return Ee=T[5],Ee&&(Le=b[5],b[5]=Le?AI(Le,Ee,T[6]):Ee,b[6]=Le?md(b[5],u):T[6]),Ee=T[7],Ee&&(b[7]=Ee),q&N&&(b[8]=b[8]==null?T[8]:xo(b[8],T[8])),b[9]==null&&(b[9]=T[9]),b[0]=T[0],b[1]=ne,b}function Pd(b){var T=[];if(b!=null)for(var _ in yr(b))T.push(_);return T}function UI(b){return Sa.call(b)}function rC(b,T,_){return T=fo(T===n?b.length-1:T,0),function(){for(var q=arguments,ne=-1,de=fo(q.length-T,0),ve=Qe(de);++ne<de;)ve[ne]=q[T+ne];ne=-1;for(var Ee=Qe(T+1);++ne<T;)Ee[ne]=q[ne];return Ee[T]=_(ve),ja(b,this,Ee)}}function Ph(b,T){return T.length<2?b:Qs(b,vs(T,0,-1))}function dc(b,T){for(var _=b.length,q=xo(T.length,_),ne=ci(b);q--;){var de=T[q];b[q]=Tl(de,_)?ne[de]:n}return b}function Gb(b,T){if(!(T==="constructor"&&typeof b[T]=="function")&&T!="__proto__")return b[T]}var Wb=zg(Sg),Ih=SS||function(b,T){return Ko.setTimeout(b,T)},Bg=zg(Cg);function qb(b,T,_){var q=T+"";return Bg(b,BI(q,GI(ZS(q),_)))}function zg(b){var T=0,_=0;return function(){var q=du(),ne=H-(q-_);if(_=q,ne>0){if(++T>=z)return arguments[0]}else T=0;return b.apply(n,arguments)}}function Vg(b,T){var _=-1,q=b.length,ne=q-1;for(T=T===n?q:T;++_<T;){var de=Ob(_,ne),ve=b[de];b[de]=b[_],b[_]=ve}return b.length=T,b}var fc=HI(function(b){var T=[];return b.charCodeAt(0)===46&&T.push(""),b.replace(Yt,function(_,q,ne,de){T.push(ne?de.replace(uo,"$1"):q||_)}),T});function Or(b){if(typeof b=="string"||Ia(b))return b;var T=b+"";return T=="0"&&1/b==-Y?"-0":T}function xu(b){if(b!=null){try{return ig.call(b)}catch{}try{return b+""}catch{}}return""}function GI(b,T){return Hs(ce,function(_){var q="_."+_[0];T&_[1]&&!eb(b,q)&&b.push(q)}),b.sort()}function ui(b){if(b instanceof Qn)return b.clone();var T=new Va(b.__wrapped__,b.__chain__);return T.__actions__=ci(b.__actions__),T.__index__=b.__index__,T.__values__=b.__values__,T}function iN(b,T,_){(_?Pa(b,T,_):T===n)?T=1:T=fo(Rn(T),0);var q=b==null?0:b.length;if(!q||T<1)return[];for(var ne=0,de=0,ve=Qe(mh(q/T));ne<q;)ve[de++]=vs(b,ne,ne+=T);return ve}function WI(b){for(var T=-1,_=b==null?0:b.length,q=0,ne=[];++T<_;){var de=b[T];de&&(ne[q++]=de)}return ne}function qI(){var b=arguments.length;if(!b)return[];for(var T=Qe(b-1),_=arguments[0],q=b;q--;)T[q-1]=arguments[q];return cu(In(_)?ci(_):[_],ir(T,1))}var So=$n(function(b,T){return Bo(b)?wd(b,ir(T,1,Bo,!0)):[]}),qa=$n(function(b,T){var _=na(T);return Bo(_)&&(_=n),Bo(b)?wd(b,ir(T,1,Bo,!0),dn(_,2)):[]}),wu=$n(function(b,T){var _=na(T);return Bo(_)&&(_=n),Bo(b)?wd(b,ir(T,1,Bo,!0),n,_):[]});function KI(b,T,_){var q=b==null?0:b.length;return q?(T=_||T===n?1:Rn(T),vs(b,T<0?0:T,q)):[]}function YI(b,T,_){var q=b==null?0:b.length;return q?(T=_||T===n?1:Rn(T),T=q-T,vs(b,0,T<0?0:T)):[]}function aN(b,T){return b&&b.length?Pg(b,dn(T,3),!0,!0):[]}function oC(b,T){return b&&b.length?Pg(b,dn(T,3),!0):[]}function xs(b,T,_,q){var ne=b==null?0:b.length;return ne?(_&&typeof _!="number"&&Pa(b,T,_)&&(_=0,q=ne),Hn(b,T,_,q)):[]}function Js(b,T,_){var q=b==null?0:b.length;if(!q)return-1;var ne=_==null?0:Rn(_);return ne<0&&(ne=fo(q+ne,0)),tb(b,dn(T,3),ne)}function iC(b,T,_){var q=b==null?0:b.length;if(!q)return-1;var ne=q-1;return _!==n&&(ne=Rn(_),ne=_<0?fo(q+ne,0):xo(ne,q-1)),tb(b,dn(T,3),ne,!0)}function Ka(b){var T=b==null?0:b.length;return T?ir(b,1):[]}function QI(b){var T=b==null?0:b.length;return T?ir(b,Y):[]}function Id(b,T){var _=b==null?0:b.length;return _?(T=T===n?1:Rn(T),ir(b,T)):[]}function Yf(b){for(var T=-1,_=b==null?0:b.length,q={};++T<_;){var ne=b[T];q[ne[0]]=ne[1]}return q}function Su(b){return b&&b.length?b[0]:n}function aC(b,T,_){var q=b==null?0:b.length;if(!q)return-1;var ne=_==null?0:Rn(_);return ne<0&&(ne=fo(q+ne,0)),ah(b,T,ne)}function sC(b){var T=b==null?0:b.length;return T?vs(b,0,-1):[]}var pc=$n(function(b){var T=bo(b,Rb);return T.length&&T[0]===b[0]?RS(T):[]}),XI=$n(function(b){var T=na(b),_=bo(b,Rb);return T===na(_)?T=n:_.pop(),_.length&&_[0]===b[0]?RS(_,dn(T,2)):[]}),Oh=$n(function(b){var T=na(b),_=bo(b,Rb);return T=typeof T=="function"?T:n,T&&_.pop(),_.length&&_[0]===b[0]?RS(_,n,T):[]});function Hg(b,T){return b==null?"":Ws.call(b,T)}function na(b){var T=b==null?0:b.length;return T?b[T-1]:n}function Mh(b,T,_){var q=b==null?0:b.length;if(!q)return-1;var ne=q;return _!==n&&(ne=Rn(_),ne=ne<0?fo(q+ne,0):xo(ne,q-1)),T===T?ms(b,T,ne):tb(b,sh,ne,!0)}function JI(b,T){return b&&b.length?jS(b,Rn(T)):n}var ZI=$n(Ah);function Ah(b,T){return b&&b.length&&T&&T.length?Ib(b,T):b}function eO(b,T,_){return b&&b.length&&T&&T.length?Ib(b,T,dn(_,2)):b}function Kb(b,T,_){return b&&b.length&&T&&T.length?Ib(b,T,n,_):b}var tO=po(function(b,T){var _=b==null?0:b.length,q=yg(b,T);return zS(b,bo(T,function(ne){return Tl(ne,_)?+ne:ne}).sort(Mg)),q});function sN(b,T){var _=[];if(!(b&&b.length))return _;var q=-1,ne=[],de=b.length;for(T=dn(T,3);++q<de;){var ve=b[q];T(ve,q,b)&&(_.push(ve),ne.push(q))}return zS(b,ne),_}function lC(b){return b==null?b:ES.call(b)}function Nr(b,T,_){var q=b==null?0:b.length;return q?(_&&typeof _!="number"&&Pa(b,T,_)?(T=0,_=q):(T=T==null?0:Rn(T),_=_===n?q:Rn(_)),vs(b,T,_)):[]}function ro(b,T){return Eg(b,T)}function er(b,T,_){return Ab(b,T,dn(_,2))}function hr(b,T){var _=b==null?0:b.length;if(_){var q=Eg(b,T);if(q<_&&Qa(b[q],T))return q}return-1}function _r(b,T){return Eg(b,T,!0)}function ws(b,T,_){return Ab(b,T,dn(_,2),!0)}function Od(b,T){var _=b==null?0:b.length;if(_){var q=Eg(b,T,!0)-1;if(Qa(b[q],T))return q}return-1}function Dh(b){return b&&b.length?HS(b):[]}function cC(b,T){return b&&b.length?HS(b,dn(T,2)):[]}function Cu(b){var T=b==null?0:b.length;return T?vs(b,1,T):[]}function jo(b,T,_){return b&&b.length?(T=_||T===n?1:Rn(T),vs(b,0,T<0?0:T)):[]}function Md(b,T,_){var q=b==null?0:b.length;return q?(T=_||T===n?1:Rn(T),T=q-T,vs(b,T<0?0:T,q)):[]}function Qf(b,T){return b&&b.length?Pg(b,dn(T,3),!1,!0):[]}function uC(b,T){return b&&b.length?Pg(b,dn(T,3)):[]}var Zs=$n(function(b){return mu(ir(b,1,Bo,!0))}),Rh=$n(function(b){var T=na(b);return Bo(T)&&(T=n),mu(ir(b,1,Bo,!0),dn(T,2))}),Ug=$n(function(b){var T=na(b);return T=typeof T=="function"?T:n,mu(ir(b,1,Bo,!0),n,T)});function Ya(b){return b&&b.length?mu(b):[]}function dC(b,T){return b&&b.length?mu(b,dn(T,2)):[]}function fC(b,T){return T=typeof T=="function"?T:n,b&&b.length?mu(b,n,T):[]}function kh(b){if(!(b&&b.length))return[];var T=0;return b=ic(b,function(_){if(Bo(_))return T=fo(_.length,T),!0}),pd(T,function(_){return bo(b,nb(_))})}function Gg(b,T){if(!(b&&b.length))return[];var _=kh(b);return T==null?_:bo(_,function(q){return ja(T,n,q)})}var Ad=$n(function(b,T){return Bo(b)?wd(b,T):[]}),$i=$n(function(b){return Ig(ic(b,Bo))}),Dd=$n(function(b){var T=na(b);return Bo(T)&&(T=n),Ig(ic(b,Bo),dn(T,2))}),Nh=$n(function(b){var T=na(b);return T=typeof T=="function"?T:n,Ig(ic(b,Bo),n,T)}),_h=$n(kh);function pC(b,T){return GS(b||[],T||[],Ff)}function hC(b,T){return GS(b||[],T||[],Ch)}var nO=$n(function(b){var T=b.length,_=T>1?b[T-1]:n;return _=typeof _=="function"?(b.pop(),_):n,Gg(b,_)});function Lh(b){var T=oe(b);return T.__chain__=!0,T}function mC(b,T){return T(b),b}function ra(b,T){return T(b)}var rO=po(function(b){var T=b.length,_=T?b[0]:0,q=this.__wrapped__,ne=function(de){return yg(de,b)};return T>1||this.__actions__.length||!(q instanceof Qn)||!Tl(_)?this.thru(ne):(q=q.slice(_,+_+(T?1:0)),q.__actions__.push({func:ra,args:[ne],thisArg:n}),new Va(q,this.__chain__).thru(function(de){return T&&!de.length&&de.push(n),de}))});function Ss(){return Lh(this)}function oO(){return new Va(this.value(),this.__chain__)}function iO(){this.__values__===n&&(this.__values__=Cs(this.value()));var b=this.__index__>=this.__values__.length,T=b?n:this.__values__[this.__index__++];return{done:b,value:T}}function lN(){return this}function Rd(b){for(var T,_=this;_ instanceof Ys;){var q=ui(_);q.__index__=0,q.__values__=n,T?ne.__wrapped__=q:T=q;var ne=q;_=_.__wrapped__}return ne.__wrapped__=b,T}function Yb(){var b=this.__wrapped__;if(b instanceof Qn){var T=b;return this.__actions__.length&&(T=new Qn(this)),T=T.reverse(),T.__actions__.push({func:ra,args:[lC],thisArg:n}),new Va(T,this.__chain__)}return this.thru(lC)}function gC(){return TI(this.__wrapped__,this.__actions__)}var $h=Uf(function(b,T,_){Er.call(b,_)?++b[_]:Sl(b,_,1)});function aO(b,T,_){var q=In(b)?GP:AS;return _&&Pa(b,T,_)&&(T=n),q(b,dn(T,3))}function sO(b,T){var _=In(b)?ic:kr;return _(b,dn(T,3))}var lO=yu(Js),yC=yu(iC);function vC(b,T){return ir(Wg(b,T),1)}function cN(b,T){return ir(Wg(b,T),Y)}function uN(b,T,_){return _=_===n?1:Rn(_),ir(Wg(b,T),_)}function cO(b,T){var _=In(b)?Hs:hu;return _(b,dn(T,3))}function bC(b,T){var _=In(b)?V2:bb;return _(b,dn(T,3))}var uO=Uf(function(b,T,_){Er.call(b,_)?b[_].push(T):Sl(b,_,[T])});function Fh(b,T,_,q){b=di(b)?b:Gh(b),_=_&&!q?Rn(_):0;var ne=b.length;return _<0&&(_=fo(ne+_,0)),s0(b)?_<=ne&&b.indexOf(T,_)>-1:!!ne&&ah(b,T,_)>-1}var Qb=$n(function(b,T,_){var q=-1,ne=typeof T=="function",de=di(b)?Qe(b.length):[];return hu(b,function(ve){de[++q]=ne?ja(T,ve,_):zf(ve,T,_)}),de}),dO=Uf(function(b,T,_){Sl(b,_,T)});function Wg(b,T){var _=In(b)?bo:$S;return _(b,dn(T,3))}function fO(b,T,_,q){return b==null?[]:(In(T)||(T=T==null?[]:[T]),_=q?n:_,In(_)||(_=_==null?[]:[_]),BS(b,T,_))}var pO=Uf(function(b,T,_){b[_?0:1].push(T)},function(){return[[],[]]});function hO(b,T,_){var q=In(b)?pS:gS,ne=arguments.length<3;return q(b,dn(T,4),_,ne,hu)}function mO(b,T,_){var q=In(b)?H2:gS,ne=arguments.length<3;return q(b,dn(T,4),_,ne,bb)}function Xb(b,T){var _=In(b)?ic:kr;return _(b,Xg(dn(T,3)))}function gO(b){var T=In(b)?vh:Sh;return T(b)}function yO(b,T,_){(_?Pa(b,T,_):T===n)?T=1:T=Rn(T);var q=In(b)?pI:Mb;return q(b,T)}function Qr(b){var T=In(b)?hI:CI;return T(b)}function xC(b){if(b==null)return 0;if(di(b))return s0(b)?ac(b):b.length;var T=Ii(b);return T==Ie||T==_e?b.size:Cb(b).length}function dN(b,T,_){var q=In(b)?hS:EI;return _&&Pa(b,T,_)&&(T=n),q(b,dn(T,3))}var vO=$n(function(b,T){if(b==null)return[];var _=T.length;return _>1&&Pa(b,T[0],T[1])?T=[]:_>2&&Pa(T[0],T[1],T[2])&&(T=[T[0]]),BS(b,ir(T,1),[])}),Jb=kf||function(){return Ko.Date.now()};function fN(b,T){if(typeof T!="function")throw new gs(a);return b=Rn(b),function(){if(--b<1)return T.apply(this,arguments)}}function bO(b,T,_){return T=_?n:T,T=b&&T==null?b.length:T,uc(b,N,n,n,n,n,T)}function qg(b,T){var _;if(typeof T!="function")throw new gs(a);return b=Rn(b),function(){return--b>0&&(_=T.apply(this,arguments)),b<=1&&(T=n),_}}var kd=$n(function(b,T,_){var q=S;if(_.length){var ne=md(_,Kf(kd));q|=O}return uc(b,q,T,_,ne)}),Zb=$n(function(b,T,_){var q=S|C;if(_.length){var ne=md(_,Kf(Zb));q|=O}return uc(T,q,b,_,ne)});function Kg(b,T,_){T=_?n:T;var q=uc(b,I,n,n,n,n,n,T);return q.placeholder=Kg.placeholder,q}function e0(b,T,_){T=_?n:T;var q=uc(b,M,n,n,n,n,n,T);return q.placeholder=e0.placeholder,q}function Nd(b,T,_){var q,ne,de,ve,Ee,Le,mt=0,yt=!1,Ct=!1,Ht=!0;if(typeof b!="function")throw new gs(a);T=tl(T)||0,Co(_)&&(yt=!!_.leading,Ct="maxWait"in _,de=Ct?fo(tl(_.maxWait)||0,T):de,Ht="trailing"in _?!!_.trailing:Ht);function on(hi){var Pu=q,Jf=ne;return q=ne=n,mt=hi,ve=b.apply(Jf,Pu),ve}function En(hi){return mt=hi,Ee=Ih(dr,T),yt?on(hi):ve}function Jn(hi){var Pu=hi-Le,Jf=hi-mt,f4=T-Pu;return Ct?xo(f4,de-Jf):f4}function Tn(hi){var Pu=hi-Le,Jf=hi-mt;return Le===n||Pu>=T||Pu<0||Ct&&Jf>=de}function dr(){var hi=Jb();if(Tn(hi))return br(hi);Ee=Ih(dr,Jn(hi))}function br(hi){return Ee=n,Ht&&q?on(hi):(q=ne=n,ve)}function Ol(){Ee!==n&&II(Ee),mt=0,q=Le=ne=Ee=n}function Es(){return Ee===n?ve:br(Jb())}function Ml(){var hi=Jb(),Pu=Tn(hi);if(q=arguments,ne=this,Le=hi,Pu){if(Ee===n)return En(Le);if(Ct)return II(Ee),Ee=Ih(dr,T),on(Le)}return Ee===n&&(Ee=Ih(dr,T)),ve}return Ml.cancel=Ol,Ml.flush=Es,Ml}var hc=$n(function(b,T){return jf(b,1,T)}),Yg=$n(function(b,T,_){return jf(b,tl(T)||0,_)});function pN(b){return uc(b,L)}function Qg(b,T){if(typeof b!="function"||T!=null&&typeof T!="function")throw new gs(a);var _=function(){var q=arguments,ne=T?T.apply(this,q):q[0],de=_.cache;if(de.has(ne))return de.get(ne);var ve=b.apply(this,q);return _.cache=de.set(ne,ve)||de,ve};return _.cache=new(Qg.Cache||Ha),_}Qg.Cache=Ha;function Xg(b){if(typeof b!="function")throw new gs(a);return function(){var T=arguments;switch(T.length){case 0:return!b.call(this);case 1:return!b.call(this,T[0]);case 2:return!b.call(this,T[0],T[1]);case 3:return!b.call(this,T[0],T[1],T[2])}return!b.apply(this,T)}}function xO(b){return qg(2,b)}var wO=PI(function(b,T){T=T.length==1&&In(T[0])?bo(T[0],hs(dn())):bo(ir(T,1),hs(dn()));var _=T.length;return $n(function(q){for(var ne=-1,de=xo(q.length,_);++ne<de;)q[ne]=T[ne].call(this,q[ne]);return ja(b,this,q)})}),wC=$n(function(b,T){var _=md(T,Kf(wC));return uc(b,O,n,T,_)}),t0=$n(function(b,T){var _=md(T,Kf(t0));return uc(b,D,n,T,_)}),SO=po(function(b,T){return uc(b,$,n,n,n,T)});function CO(b,T){if(typeof b!="function")throw new gs(a);return T=T===n?T:Rn(T),$n(b,T)}function hN(b,T){if(typeof b!="function")throw new gs(a);return T=T==null?0:fo(Rn(T),0),$n(function(_){var q=_[T],ne=Cd(_,0,T);return q&&cu(ne,q),ja(b,this,ne)})}function SC(b,T,_){var q=!0,ne=!0;if(typeof b!="function")throw new gs(a);return Co(_)&&(q="leading"in _?!!_.leading:q,ne="trailing"in _?!!_.trailing:ne),Nd(b,T,{leading:q,maxWait:T,trailing:ne})}function CC(b){return bO(b,1)}function mN(b,T){return wC(Og(T),b)}function gN(){if(!arguments.length)return[];var b=arguments[0];return In(b)?b:[b]}function Jg(b){return ea(b,g)}function yN(b,T){return T=typeof T=="function"?T:n,ea(b,g,T)}function EO(b){return ea(b,f|g)}function tr(b,T){return T=typeof T=="function"?T:n,ea(b,f|g,T)}function EC(b,T){return T==null||MS(b,T,pi(T))}function Qa(b,T){return b===T||b!==b&&T!==T}var TC=qf(vg),TO=qf(function(b,T){return b>=T}),Eu=xb(function(){return arguments}())?xb:function(b){return Mo(b)&&Er.call(b,"callee")&&!Df.call(b,"callee")},In=Qe.isArray,n0=Zv?hs(Zv):Ua;function di(b){return b!=null&&Xf(b.length)&&!Pl(b)}function Bo(b){return Mo(b)&&di(b)}function vN(b){return b===!0||b===!1||Mo(b)&&ur(b)==Oe}var _d=pb||VN,PO=BP?hs(BP):Zo;function IO(b){return Mo(b)&&b.nodeType===1&&!el(b)}function r0(b){if(b==null)return!0;if(di(b)&&(In(b)||typeof b=="string"||typeof b.splice=="function"||_d(b)||jh(b)||Eu(b)))return!b.length;var T=Ii(b);if(T==Ie||T==_e)return!b.size;if(Yr(b))return!Cb(b).length;for(var _ in b)if(Er.call(b,_))return!1;return!0}function zr(b,T){return Vf(b,T)}function PC(b,T,_){_=typeof _=="function"?_:n;var q=_?_(b,T):n;return q===n?Vf(b,T,n,_):!!q}function fi(b){if(!Mo(b))return!1;var T=ur(b);return T==ye||T==me||typeof b.message=="string"&&typeof b.name=="string"&&!el(b)}function bN(b){return typeof b=="number"&&cg(b)}function Pl(b){if(!Co(b))return!1;var T=ur(b);return T==ae||T==Se||T==we||T==Ze}function o0(b){return typeof b=="number"&&b==Rn(b)}function Xf(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=X}function Co(b){var T=typeof b;return b!=null&&(T=="object"||T=="function")}function Mo(b){return b!=null&&typeof b=="object"}var i0=zP?hs(zP):wb;function IC(b,T){return b===T||xg(b,T,Bb(T))}function xN(b,T,_){return _=typeof _=="function"?_:n,xg(b,T,Bb(T),_)}function OO(b){return AO(b)&&b!=+b}function wN(b){if(Fg(b))throw new Sn(i);return lc(b)}function MO(b){return b===null}function SN(b){return b==null}function AO(b){return typeof b=="number"||Mo(b)&&ur(b)==Re}function el(b){if(!Mo(b)||ur(b)!=Te)return!1;var T=ag(b);if(T===null)return!0;var _=Er.call(T,"constructor")&&T.constructor;return typeof _=="function"&&_ instanceof _&&ig.call(_)==Gs}var a0=VP?hs(VP):Sb;function OC(b){return o0(b)&&b>=-X&&b<=X}var DO=HP?hs(HP):NS;function s0(b){return typeof b=="string"||!In(b)&&Mo(b)&&ur(b)==pe}function Ia(b){return typeof b=="symbol"||Mo(b)&&ur(b)==je}var jh=UP?hs(UP):_S;function Il(b){return b===n}function MC(b){return Mo(b)&&Ii(b)==et}function RO(b){return Mo(b)&&ur(b)==nt}var kO=qf(Eb),Zg=qf(function(b,T){return b<=T});function Cs(b){if(!b)return[];if(di(b))return s0(b)?Us(b):ci(b);if(Rf&&b[Rf])return ZP(b[Rf]());var T=Ii(b),_=T==Ie?sb:T==_e?lb:Gh;return _(b)}function mc(b){if(!b)return b===0?b:0;if(b=tl(b),b===Y||b===-Y){var T=b<0?-1:1;return T*te}return b===b?b:0}function Rn(b){var T=mc(b),_=T%1;return T===T?_?T-_:T:0}function gc(b){return b?Cl(Rn(b),0,K):0}function tl(b){if(typeof b=="number")return b;if(Ia(b))return U;if(Co(b)){var T=typeof b.valueOf=="function"?b.valueOf():b;b=Co(T)?T+"":T}if(typeof b!="string")return b===0?b:+b;b=YP(b);var _=Ye.test(b);return _||Wt.test(b)?B2(b.slice(2),_?2:8):vl.test(b)?U:+b}function NO(b){return Wa(b,Oi(b))}function Bh(b){return b?Cl(Rn(b),-X,X):b===0?b:0}function Tr(b){return b==null?"":Ga(b)}var CN=Gf(function(b,T){if(Yr(T)||di(T)){Wa(T,pi(T),b);return}for(var _ in T)Er.call(T,_)&&Ff(b,_,T[_])}),_O=Gf(function(b,T){Wa(T,Oi(T),b)}),l0=Gf(function(b,T,_,q){Wa(T,Oi(T),b,q)}),EN=Gf(function(b,T,_,q){Wa(T,pi(T),b,q)}),TN=po(yg);function PN(b,T){var _=ys(b);return T==null?_:pu(_,T)}var IN=$n(function(b,T){b=yr(b);var _=-1,q=T.length,ne=q>2?T[2]:n;for(ne&&Pa(T[0],T[1],ne)&&(q=1);++_<q;)for(var de=T[_],ve=Oi(de),Ee=-1,Le=ve.length;++Ee<Le;){var mt=ve[Ee],yt=b[mt];(yt===n||Qa(yt,fh[mt])&&!Er.call(b,mt))&&(b[mt]=de[mt])}return b}),LO=$n(function(b){return b.push(n,JS),ja(ry,n,b)});function zh(b,T){return WP(b,dn(T,3),ta)}function ey(b,T){return WP(b,dn(T,3),wh)}function $O(b,T){return b==null?b:xh(b,dn(T,3),Oi)}function ON(b,T){return b==null?b:Bf(b,dn(T,3),Oi)}function Vh(b,T){return b&&ta(b,dn(T,3))}function ty(b,T){return b&&wh(b,dn(T,3))}function FO(b){return b==null?[]:Sd(b,pi(b))}function c0(b){return b==null?[]:Sd(b,Oi(b))}function ny(b,T,_){var q=b==null?n:Qs(b,T);return q===n?_:q}function AC(b,T){return b!=null&&$g(b,T,DS)}function Hh(b,T){return b!=null&&$g(b,T,yI)}var jO=Dg(function(b,T,_){T!=null&&typeof T.toString!="function"&&(T=Sa.call(T)),b[T]=_},ze(Ve)),BO=Dg(function(b,T,_){T!=null&&typeof T.toString!="function"&&(T=Sa.call(T)),Er.call(b,T)?b[T].push(_):b[T]=[_]},dn),MN=$n(zf);function pi(b){return di(b)?OS(b):Cb(b)}function Oi(b){return di(b)?OS(b,!0):bI(b)}function AN(b,T){var _={};return T=dn(T,3),ta(b,function(q,ne,de){Sl(_,T(q,ne,de),q)}),_}function DN(b,T){var _={};return T=dn(T,3),ta(b,function(q,ne,de){Sl(_,ne,T(q,ne,de))}),_}var RN=Gf(function(b,T,_){wg(b,T,_)}),ry=Gf(function(b,T,_,q){wg(b,T,_,q)}),u0=po(function(b,T){var _={};if(b==null)return _;var q=!1;T=bo(T,function(de){return de=gu(de,b),q||(q=de.length>1),de}),Wa(b,Fb(b),_),q&&(_=ea(_,f|h|g,_I));for(var ne=T.length;ne--;)Tg(_,T[ne]);return _});function DC(b,T){return Uh(b,Xg(dn(T)))}var kN=po(function(b,T){return b==null?{}:xI(b,T)});function Uh(b,T){if(b==null)return{};var _=bo(Fb(b),function(q){return[q]});return T=dn(T),Pb(b,_,function(q,ne){return T(q,ne[0])})}function NN(b,T,_){T=gu(T,b);var q=-1,ne=T.length;for(ne||(ne=1,b=n);++q<ne;){var de=b==null?n:b[Or(T[q])];de===n&&(q=ne,de=_),b=Pl(de)?de.call(b):de}return b}function zO(b,T,_){return b==null?b:Ch(b,T,_)}function VO(b,T,_,q){return q=typeof q=="function"?q:n,b==null?b:Ch(b,T,_,q)}var RC=Ng(pi),kC=Ng(Oi);function NC(b,T,_){var q=In(b),ne=q||_d(b)||jh(b);if(T=dn(T,4),_==null){var de=b&&b.constructor;ne?_=q?new de:[]:Co(b)?_=Pl(de)?ys(ag(b)):{}:_={}}return(ne?Hs:ta)(b,function(ve,Ee,Le){return T(_,ve,Ee,Le)}),_}function HO(b,T){return b==null?!0:Tg(b,T)}function d0(b,T,_){return b==null?b:US(b,T,Og(_))}function _N(b,T,_,q){return q=typeof q=="function"?q:n,b==null?b:US(b,T,Og(_),q)}function Gh(b){return b==null?[]:ib(b,pi(b))}function _C(b){return b==null?[]:ib(b,Oi(b))}function LC(b,T,_){return _===n&&(_=T,T=n),_!==n&&(_=tl(_),_=_===_?_:0),T!==n&&(T=tl(T),T=T===T?T:0),Cl(tl(b),T,_)}function f0(b,T,_){return T=mc(T),_===n?(_=T,T=0):_=mc(_),b=tl(b),vI(b,T,_)}function $C(b,T,_){if(_&&typeof _!="boolean"&&Pa(b,T,_)&&(T=_=n),_===n&&(typeof T=="boolean"?(_=T,T=n):typeof b=="boolean"&&(_=b,b=n)),b===n&&T===n?(b=0,T=1):(b=mc(b),T===n?(T=b,b=0):T=mc(T)),b>T){var q=b;b=T,T=q}if(_||b%1||T%1){var ne=CS();return xo(b+ne*(T-b+rg("1e-"+((ne+"").length-1))),T)}return Ob(b,T)}var UO=Ta(function(b,T,_){return T=T.toLowerCase(),b+(_?p0(T):T)});function p0(b){return P(Tr(b).toLowerCase())}function Tu(b){return b=Tr(b),b&&b.replace(an,ab).replace(lu,"")}function Ld(b,T,_){b=Tr(b),T=Ga(T);var q=b.length;_=_===n?q:Cl(Rn(_),0,q);var ne=_;return _-=T.length,_>=0&&b.slice(_,ne)==T}function $d(b){return b=Tr(b),b&&Ci.test(b)?b.replace(Yn,QP):b}function oy(b){return b=Tr(b),b&&pn.test(b)?b.replace(ln,"\\$&"):b}var iy=Ta(function(b,T,_){return b+(_?"-":"")+T.toLowerCase()}),Fd=Ta(function(b,T,_){return b+(_?" ":"")+T.toLowerCase()}),LN=bs("toLowerCase");function GO(b,T,_){b=Tr(b),T=Rn(T);var q=T?ac(b):0;if(!T||q>=T)return b;var ne=(T-q)/2;return kg(uu(ne),_)+b+kg(mh(ne),_)}function ay(b,T,_){b=Tr(b),T=Rn(T);var q=T?ac(b):0;return T&&q<T?b+kg(T-q,_):b}function $N(b,T,_){b=Tr(b),T=Rn(T);var q=T?ac(b):0;return T&&q<T?kg(T-q,_)+b:b}function WO(b,T,_){return _||T==null?T=0:T&&(T=+T),Nf(Tr(b).replace(cr,""),T||0)}function h0(b,T,_){return(_?Pa(b,T,_):T===n)?T=1:T=Rn(T),VS(Tr(b),T)}function qO(){var b=arguments,T=Tr(b[0]);return b.length<3?T:T.replace(b[1],b[2])}var FN=Ta(function(b,T,_){return b+(_?"_":"")+T.toLowerCase()});function m0(b,T,_){return _&&typeof _!="number"&&Pa(b,T,_)&&(T=_=n),_=_===n?K:_>>>0,_?(b=Tr(b),b&&(typeof T=="string"||T!=null&&!a0(T))&&(T=Ga(T),!T&&hd(b))?Cd(Us(b),0,_):b.split(T,_)):[]}var g0=Ta(function(b,T,_){return b+(_?" ":"")+P(T)});function KO(b,T,_){return b=Tr(b),_=_==null?0:Cl(Rn(_),0,b.length),T=Ga(T),b.slice(_,_+T.length)==T}function sy(b,T,_){var q=oe.templateSettings;_&&Pa(b,T,_)&&(T=n),b=Tr(b),T=l0({},T,q,Lb);var ne=l0({},T.imports,q.imports,Lb),de=pi(ne),ve=ib(ne,de),Ee,Le,mt=0,yt=T.interpolate||no,Ct="__p += '",Ht=cb((T.escape||no).source+"|"+yt.source+"|"+(yt===fn?xa:no).source+"|"+(T.evaluate||no).source+"|$","g"),on="//# sourceURL="+(Er.call(T,"sourceURL")?(T.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$P+"]")+`
-`;b.replace(Ht,function(Tn,dr,br,Ol,Es,Ml){return br||(br=Ol),Ct+=b.slice(mt,Ml).replace(Oo,XP),dr&&(Ee=!0,Ct+=`' +
-__e(`+dr+`) +
-'`),Es&&(Le=!0,Ct+=`';
-`+Es+`;
-__p += '`),br&&(Ct+=`' +
-((__t = (`+br+`)) == null ? '' : __t) +
-'`),mt=Ml+Tn.length,Tn}),Ct+=`';
-`;var En=Er.call(T,"variable")&&T.variable;if(!En)Ct=`with (obj) {
-`+Ct+`
-}
-`;else if(qo.test(En))throw new Sn(s);Ct=(Le?Ct.replace(zn,""):Ct).replace(lr,"$1").replace(to,"$1;"),Ct="function("+(En||"obj")+`) {
-`+(En?"":`obj || (obj = {});
-`)+"var __t, __p = ''"+(Ee?", __e = _.escape":"")+(Le?`, __j = Array.prototype.join;
-function print() { __p += __j.call(arguments, '') }
-`:`;
-`)+Ct+`return __p
-}`;var Jn=j(function(){return gr(de,on+"return "+Ct).apply(n,ve)});if(Jn.source=Ct,fi(Jn))throw Jn;return Jn}function FC(b){return Tr(b).toLowerCase()}function y0(b){return Tr(b).toUpperCase()}function YO(b,T,_){if(b=Tr(b),b&&(_||T===n))return YP(b);if(!b||!(T=Ga(T)))return b;var q=Us(b),ne=Us(T),de=ch(q,ne),ve=uh(q,ne)+1;return Cd(q,de,ve).join("")}function jN(b,T,_){if(b=Tr(b),b&&(_||T===n))return b.slice(0,vS(b)+1);if(!b||!(T=Ga(T)))return b;var q=Us(b),ne=uh(q,Us(T))+1;return Cd(q,0,ne).join("")}function v0(b,T,_){if(b=Tr(b),b&&(_||T===n))return b.replace(cr,"");if(!b||!(T=Ga(T)))return b;var q=Us(b),ne=ch(q,Us(T));return Cd(q,ne).join("")}function d(b,T){var _=A,q=F;if(Co(T)){var ne="separator"in T?T.separator:ne;_="length"in T?Rn(T.length):_,q="omission"in T?Ga(T.omission):q}b=Tr(b);var de=b.length;if(hd(b)){var ve=Us(b);de=ve.length}if(_>=de)return b;var Ee=_-ac(q);if(Ee<1)return q;var Le=ve?Cd(ve,0,Ee).join(""):b.slice(0,Ee);if(ne===n)return Le+q;if(ve&&(Ee+=Le.length-Ee),a0(ne)){if(b.slice(Ee).search(ne)){var mt,yt=Le;for(ne.global||(ne=cb(ne.source,Tr(js.exec(ne))+"g")),ne.lastIndex=0;mt=ne.exec(yt);)var Ct=mt.index;Le=Le.slice(0,Ct===n?Ee:Ct)}}else if(b.indexOf(Ga(ne),Ee)!=Ee){var Ht=Le.lastIndexOf(ne);Ht>-1&&(Le=Le.slice(0,Ht))}return Le+q}function p(b){return b=Tr(b),b&&Io.test(b)?b.replace(xr,tI):b}var v=Ta(function(b,T,_){return b+(_?" ":"")+T.toUpperCase()}),P=bs("toUpperCase");function k(b,T,_){return b=Tr(b),T=_?n:T,T===n?JP(b)?X2(b):W2(b):b.match(T)||[]}var j=$n(function(b,T){try{return ja(b,n,T)}catch(_){return fi(_)?_:new Sn(_)}}),Z=po(function(b,T){return Hs(T,function(_){_=Or(_),Sl(b,_,kd(b[_],b))}),b});function ie(b){var T=b==null?0:b.length,_=dn();return b=T?bo(b,function(q){if(typeof q[1]!="function")throw new gs(a);return[_(q[0]),q[1]]}):[],$n(function(q){for(var ne=-1;++ne<T;){var de=b[ne];if(ja(de[0],this,q))return ja(de[1],this,q)}})}function be(b){return mI(ea(b,f))}function ze(b){return function(){return b}}function dt(b,T){return b==null||b!==b?T:b}var gt=cc(),Ge=cc(!0);function Ve(b){return b}function yn(b){return LS(typeof b=="function"?b:ea(b,f))}function gn(b){return FS(ea(b,f))}function Vr(b,T){return Tb(b,ea(T,f))}var Ne=$n(function(b,T){return function(_){return zf(_,b,T)}}),Pe=$n(function(b,T){return function(_){return zf(b,_,T)}});function Fe(b,T,_){var q=pi(T),ne=Sd(T,q);_==null&&!(Co(T)&&(ne.length||!q.length))&&(_=T,T=b,b=this,ne=Sd(T,pi(T)));var de=!(Co(_)&&"chain"in _)||!!_.chain,ve=Pl(b);return Hs(ne,function(Ee){var Le=T[Ee];b[Ee]=Le,ve&&(b.prototype[Ee]=function(){var mt=this.__chain__;if(de||mt){var yt=b(this.__wrapped__),Ct=yt.__actions__=ci(this.__actions__);return Ct.push({func:Le,args:arguments,thisArg:b}),yt.__chain__=mt,yt}return Le.apply(b,cu([this.value()],arguments))})}),b}function pt(){return Ko._===this&&(Ko._=ph),this}function Xt(){}function Xn(b){return b=Rn(b),$n(function(T){return jS(T,b)})}var sn=Rg(bo),vn=Rg(GP),Mi=Rg(hS);function vr(b){return Vb(b)?nb(Or(b)):wI(b)}function jd(b){return function(T){return b==null?n:Qs(b,T)}}var BN=Ed(),kfe=Ed(!0);function zN(){return[]}function VN(){return!1}function Nfe(){return{}}function _fe(){return""}function Lfe(){return!0}function $fe(b,T){if(b=Rn(b),b<1||b>X)return[];var _=K,q=xo(b,K);T=dn(T),b-=K;for(var ne=pd(q,T);++_<b;)T(_);return ne}function Ffe(b){return In(b)?bo(b,Or):Ia(b)?[b]:ci(fc(Tr(b)))}function jfe(b){var T=++bl;return Tr(b)+T}var Bfe=Eh(function(b,T){return b+T},0),zfe=_b("ceil"),Vfe=Eh(function(b,T){return b/T},1),Hfe=_b("floor");function Ufe(b){return b&&b.length?El(b,Ve,vg):n}function Gfe(b,T){return b&&b.length?El(b,dn(T,2),vg):n}function Wfe(b){return qP(b,Ve)}function qfe(b,T){return qP(b,dn(T,2))}function Kfe(b){return b&&b.length?El(b,Ve,Eb):n}function Yfe(b,T){return b&&b.length?El(b,dn(T,2),Eb):n}var Qfe=Eh(function(b,T){return b*T},1),Xfe=_b("round"),Jfe=Eh(function(b,T){return b-T},0);function Zfe(b){return b&&b.length?ob(b,Ve):0}function epe(b,T){return b&&b.length?ob(b,dn(T,2)):0}return oe.after=fN,oe.ary=bO,oe.assign=CN,oe.assignIn=_O,oe.assignInWith=l0,oe.assignWith=EN,oe.at=TN,oe.before=qg,oe.bind=kd,oe.bindAll=Z,oe.bindKey=Zb,oe.castArray=gN,oe.chain=Lh,oe.chunk=iN,oe.compact=WI,oe.concat=qI,oe.cond=ie,oe.conforms=be,oe.constant=ze,oe.countBy=$h,oe.create=PN,oe.curry=Kg,oe.curryRight=e0,oe.debounce=Nd,oe.defaults=IN,oe.defaultsDeep=LO,oe.defer=hc,oe.delay=Yg,oe.difference=So,oe.differenceBy=qa,oe.differenceWith=wu,oe.drop=KI,oe.dropRight=YI,oe.dropRightWhile=aN,oe.dropWhile=oC,oe.fill=xs,oe.filter=sO,oe.flatMap=vC,oe.flatMapDeep=cN,oe.flatMapDepth=uN,oe.flatten=Ka,oe.flattenDeep=QI,oe.flattenDepth=Id,oe.flip=pN,oe.flow=gt,oe.flowRight=Ge,oe.fromPairs=Yf,oe.functions=FO,oe.functionsIn=c0,oe.groupBy=uO,oe.initial=sC,oe.intersection=pc,oe.intersectionBy=XI,oe.intersectionWith=Oh,oe.invert=jO,oe.invertBy=BO,oe.invokeMap=Qb,oe.iteratee=yn,oe.keyBy=dO,oe.keys=pi,oe.keysIn=Oi,oe.map=Wg,oe.mapKeys=AN,oe.mapValues=DN,oe.matches=gn,oe.matchesProperty=Vr,oe.memoize=Qg,oe.merge=RN,oe.mergeWith=ry,oe.method=Ne,oe.methodOf=Pe,oe.mixin=Fe,oe.negate=Xg,oe.nthArg=Xn,oe.omit=u0,oe.omitBy=DC,oe.once=xO,oe.orderBy=fO,oe.over=sn,oe.overArgs=wO,oe.overEvery=vn,oe.overSome=Mi,oe.partial=wC,oe.partialRight=t0,oe.partition=pO,oe.pick=kN,oe.pickBy=Uh,oe.property=vr,oe.propertyOf=jd,oe.pull=ZI,oe.pullAll=Ah,oe.pullAllBy=eO,oe.pullAllWith=Kb,oe.pullAt=tO,oe.range=BN,oe.rangeRight=kfe,oe.rearg=SO,oe.reject=Xb,oe.remove=sN,oe.rest=CO,oe.reverse=lC,oe.sampleSize=yO,oe.set=zO,oe.setWith=VO,oe.shuffle=Qr,oe.slice=Nr,oe.sortBy=vO,oe.sortedUniq=Dh,oe.sortedUniqBy=cC,oe.split=m0,oe.spread=hN,oe.tail=Cu,oe.take=jo,oe.takeRight=Md,oe.takeRightWhile=Qf,oe.takeWhile=uC,oe.tap=mC,oe.throttle=SC,oe.thru=ra,oe.toArray=Cs,oe.toPairs=RC,oe.toPairsIn=kC,oe.toPath=Ffe,oe.toPlainObject=NO,oe.transform=NC,oe.unary=CC,oe.union=Zs,oe.unionBy=Rh,oe.unionWith=Ug,oe.uniq=Ya,oe.uniqBy=dC,oe.uniqWith=fC,oe.unset=HO,oe.unzip=kh,oe.unzipWith=Gg,oe.update=d0,oe.updateWith=_N,oe.values=Gh,oe.valuesIn=_C,oe.without=Ad,oe.words=k,oe.wrap=mN,oe.xor=$i,oe.xorBy=Dd,oe.xorWith=Nh,oe.zip=_h,oe.zipObject=pC,oe.zipObjectDeep=hC,oe.zipWith=nO,oe.entries=RC,oe.entriesIn=kC,oe.extend=_O,oe.extendWith=l0,Fe(oe,oe),oe.add=Bfe,oe.attempt=j,oe.camelCase=UO,oe.capitalize=p0,oe.ceil=zfe,oe.clamp=LC,oe.clone=Jg,oe.cloneDeep=EO,oe.cloneDeepWith=tr,oe.cloneWith=yN,oe.conformsTo=EC,oe.deburr=Tu,oe.defaultTo=dt,oe.divide=Vfe,oe.endsWith=Ld,oe.eq=Qa,oe.escape=$d,oe.escapeRegExp=oy,oe.every=aO,oe.find=lO,oe.findIndex=Js,oe.findKey=zh,oe.findLast=yC,oe.findLastIndex=iC,oe.findLastKey=ey,oe.floor=Hfe,oe.forEach=cO,oe.forEachRight=bC,oe.forIn=$O,oe.forInRight=ON,oe.forOwn=Vh,oe.forOwnRight=ty,oe.get=ny,oe.gt=TC,oe.gte=TO,oe.has=AC,oe.hasIn=Hh,oe.head=Su,oe.identity=Ve,oe.includes=Fh,oe.indexOf=aC,oe.inRange=f0,oe.invoke=MN,oe.isArguments=Eu,oe.isArray=In,oe.isArrayBuffer=n0,oe.isArrayLike=di,oe.isArrayLikeObject=Bo,oe.isBoolean=vN,oe.isBuffer=_d,oe.isDate=PO,oe.isElement=IO,oe.isEmpty=r0,oe.isEqual=zr,oe.isEqualWith=PC,oe.isError=fi,oe.isFinite=bN,oe.isFunction=Pl,oe.isInteger=o0,oe.isLength=Xf,oe.isMap=i0,oe.isMatch=IC,oe.isMatchWith=xN,oe.isNaN=OO,oe.isNative=wN,oe.isNil=SN,oe.isNull=MO,oe.isNumber=AO,oe.isObject=Co,oe.isObjectLike=Mo,oe.isPlainObject=el,oe.isRegExp=a0,oe.isSafeInteger=OC,oe.isSet=DO,oe.isString=s0,oe.isSymbol=Ia,oe.isTypedArray=jh,oe.isUndefined=Il,oe.isWeakMap=MC,oe.isWeakSet=RO,oe.join=Hg,oe.kebabCase=iy,oe.last=na,oe.lastIndexOf=Mh,oe.lowerCase=Fd,oe.lowerFirst=LN,oe.lt=kO,oe.lte=Zg,oe.max=Ufe,oe.maxBy=Gfe,oe.mean=Wfe,oe.meanBy=qfe,oe.min=Kfe,oe.minBy=Yfe,oe.stubArray=zN,oe.stubFalse=VN,oe.stubObject=Nfe,oe.stubString=_fe,oe.stubTrue=Lfe,oe.multiply=Qfe,oe.nth=JI,oe.noConflict=pt,oe.noop=Xt,oe.now=Jb,oe.pad=GO,oe.padEnd=ay,oe.padStart=$N,oe.parseInt=WO,oe.random=$C,oe.reduce=hO,oe.reduceRight=mO,oe.repeat=h0,oe.replace=qO,oe.result=NN,oe.round=Xfe,oe.runInContext=De,oe.sample=gO,oe.size=xC,oe.snakeCase=FN,oe.some=dN,oe.sortedIndex=ro,oe.sortedIndexBy=er,oe.sortedIndexOf=hr,oe.sortedLastIndex=_r,oe.sortedLastIndexBy=ws,oe.sortedLastIndexOf=Od,oe.startCase=g0,oe.startsWith=KO,oe.subtract=Jfe,oe.sum=Zfe,oe.sumBy=epe,oe.template=sy,oe.times=$fe,oe.toFinite=mc,oe.toInteger=Rn,oe.toLength=gc,oe.toLower=FC,oe.toNumber=tl,oe.toSafeInteger=Bh,oe.toString=Tr,oe.toUpper=y0,oe.trim=YO,oe.trimEnd=jN,oe.trimStart=v0,oe.truncate=d,oe.unescape=p,oe.uniqueId=jfe,oe.upperCase=v,oe.upperFirst=P,oe.each=cO,oe.eachRight=bC,oe.first=Su,Fe(oe,function(){var b={};return ta(oe,function(T,_){Er.call(oe.prototype,_)||(b[_]=T)}),b}(),{chain:!1}),oe.VERSION=r,Hs(["bind","bindKey","curry","curryRight","partial","partialRight"],function(b){oe[b].placeholder=oe}),Hs(["drop","take"],function(b,T){Qn.prototype[b]=function(_){_=_===n?1:fo(Rn(_),0);var q=this.__filtered__&&!T?new Qn(this):this.clone();return q.__filtered__?q.__takeCount__=xo(_,q.__takeCount__):q.__views__.push({size:xo(_,K),type:b+(q.__dir__<0?"Right":"")}),q},Qn.prototype[b+"Right"]=function(_){return this.reverse()[b](_).reverse()}}),Hs(["filter","map","takeWhile"],function(b,T){var _=T+1,q=_==Q||_==V;Qn.prototype[b]=function(ne){var de=this.clone();return de.__iteratees__.push({iteratee:dn(ne,3),type:_}),de.__filtered__=de.__filtered__||q,de}}),Hs(["head","last"],function(b,T){var _="take"+(T?"Right":"");Qn.prototype[b]=function(){return this[_](1).value()[0]}}),Hs(["initial","tail"],function(b,T){var _="drop"+(T?"":"Right");Qn.prototype[b]=function(){return this.__filtered__?new Qn(this):this[_](1)}}),Qn.prototype.compact=function(){return this.filter(Ve)},Qn.prototype.find=function(b){return this.filter(b).head()},Qn.prototype.findLast=function(b){return this.reverse().find(b)},Qn.prototype.invokeMap=$n(function(b,T){return typeof b=="function"?new Qn(this):this.map(function(_){return zf(_,b,T)})}),Qn.prototype.reject=function(b){return this.filter(Xg(dn(b)))},Qn.prototype.slice=function(b,T){b=Rn(b);var _=this;return _.__filtered__&&(b>0||T<0)?new Qn(_):(b<0?_=_.takeRight(-b):b&&(_=_.drop(b)),T!==n&&(T=Rn(T),_=T<0?_.dropRight(-T):_.take(T-b)),_)},Qn.prototype.takeRightWhile=function(b){return this.reverse().takeWhile(b).reverse()},Qn.prototype.toArray=function(){return this.take(K)},ta(Qn.prototype,function(b,T){var _=/^(?:filter|find|map|reject)|While$/.test(T),q=/^(?:head|last)$/.test(T),ne=oe[q?"take"+(T=="last"?"Right":""):T],de=q||/^find/.test(T);ne&&(oe.prototype[T]=function(){var ve=this.__wrapped__,Ee=q?[1]:arguments,Le=ve instanceof Qn,mt=Ee[0],yt=Le||In(ve),Ct=function(dr){var br=ne.apply(oe,cu([dr],Ee));return q&&Ht?br[0]:br};yt&&_&&typeof mt=="function"&&mt.length!=1&&(Le=yt=!1);var Ht=this.__chain__,on=!!this.__actions__.length,En=de&&!Ht,Jn=Le&&!on;if(!de&&yt){ve=Jn?ve:new Qn(this);var Tn=b.apply(ve,Ee);return Tn.__actions__.push({func:ra,args:[Ct],thisArg:n}),new Va(Tn,Ht)}return En&&Jn?b.apply(this,Ee):(Tn=this.thru(Ct),En?q?Tn.value()[0]:Tn.value():Tn)})}),Hs(["pop","push","shift","sort","splice","unshift"],function(b){var T=ub[b],_=/^(?:push|sort|unshift)$/.test(b)?"tap":"thru",q=/^(?:pop|shift)$/.test(b);oe.prototype[b]=function(){var ne=arguments;if(q&&!this.__chain__){var de=this.value();return T.apply(In(de)?de:[],ne)}return this[_](function(ve){return T.apply(In(ve)?ve:[],ne)})}}),ta(Qn.prototype,function(b,T){var _=oe[T];if(_){var q=_.name+"";Er.call(Ks,q)||(Ks[q]=[]),Ks[q].push({name:T,func:_})}}),Ks[Fo(n,C).name]=[{name:"wrapper",func:n}],Qn.prototype.clone=pg,Qn.prototype.reverse=hb,Qn.prototype.value=Lf,oe.prototype.at=rO,oe.prototype.chain=Ss,oe.prototype.commit=oO,oe.prototype.next=iO,oe.prototype.plant=Rd,oe.prototype.reverse=Yb,oe.prototype.toJSON=oe.prototype.valueOf=oe.prototype.value=gC,oe.prototype.first=oe.prototype.head,Rf&&(oe.prototype[Rf]=lN),oe},gd=dh();fd?((fd.exports=gd)._=gd,ih._=gd):Ko._=gd}).call(xke)}(M1,M1.exports)),M1.exports}var Ske=wke();const Cke=Ske.memoize(async e=>{const{data:t}=await bt.get(Pt(kt.INGREDIENTINFO_PATH,{id:e}),{headers:It()});return tk.fromJson(t)}),nte=async e=>{if(e.length===0)return[];const t=Pt(kt.INGREDIENTINFO_PATH,{query:{id__in:e.join(",")}}),n=[];for await(const r of ov(t,It()))for(const o of r)n.push(tk.fromJson(o));return n},Eke=async(e,t,n=!0)=>{const r=[t];t!==Ix&&n&&r.push(Ix);const o=Pt(kt.INGREDIENTINFO_PATH,{query:{name__search:e,language__code:r.join(","),limit:KMe}}),{data:i}=await bt.get(o);return i.results.map(a=>tk.fromJson(a))};class Dp{id;planId;mealId;amount;datetime;ingredientId;ingredient=null;weightUnitId;weightUnit=null;constructor(t){this.id=t.id??null,this.planId=t.planId,this.mealId=t.mealId??null,this.amount=t.amount,this.datetime=t.datetime,this.ingredientId=t.ingredientId,t.ingredient&&(this.ingredient=t.ingredient,this.ingredientId=t.ingredient.id),this.weightUnitId=t.weightUnitId??null,t.weightUnit&&(this.weightUnit=t.weightUnit,this.weightUnitId=t.weightUnit.id)}get amountString(){return this.amount.toFixed().toString()+(this.weightUnitId!==null?` ${this.weightUnit?.name}`:"g")}get nutritionalValues(){return this.ingredient?$l.fromIngredient(this.ingredient,this.amount,this.weightUnit):(console.log("Diary entry has no ingredient, returning empty NutritionalValues object"),new $l)}static clone(t,n){const r=n?.ingredient??t.ingredient,o=n?.weightUnit??t.weightUnit;return new Dp({id:n?.id??t.id??void 0,planId:n?.planId??t.planId,mealId:n?.mealId??t.mealId,amount:n?.amount??t.amount,datetime:n?.datetime??t.datetime,ingredientId:r?r.id:n?.ingredientId??t.ingredientId,ingredient:r,weightUnitId:o?o.id:n?.weightUnitId??t.weightUnitId,weightUnit:o})}static fromJson(t){return KG.fromJson(t)}toJson(){return KG.toJson(this)}}class Tke{fromJson(t){return new Dp({id:t.id,planId:t.plan,mealId:t.meal,ingredientId:t.ingredient,weightUnitId:t.weight_unit,amount:parseFloat(t.amount),datetime:new Date(t.datetime)})}toJson(t){return{plan:t.planId,meal:t.mealId,ingredient:t.ingredientId,weight_unit:t.weightUnitId,amount:t.amount.toString(),datetime:t.datetime.toISOString()}}}const KG=new Tke;class Im{id;mealId;ingredientId;weightUnitId;amount;order;ingredient=null;weightUnit=null;constructor(t){this.id=t.id||null,this.mealId=t.mealId,this.amount=t.amount,this.order=t.order,this.ingredientId=t.ingredientId,this.weightUnitId=t.weightUnitId??null,t.ingredient&&(this.ingredient=t.ingredient,this.ingredientId=t.ingredient.id),t.weightUnit&&(this.weightUnit=t.weightUnit,this.weightUnitId=t.weightUnit.id)}get amountString(){return this.amount.toFixed().toString()+(this.weightUnitId!==null?` ${this.weightUnit?.name}`:"g")}get nutritionalValues(){return this.ingredient?$l.fromIngredient(this.ingredient,this.amount,this.weightUnit):new $l}static fromJson(t){return YG.fromJson(t)}static clone(t,n){const r=n?.ingredient??t.ingredient,o=n?.weightUnit??t.weightUnit;return new Im({id:n?.id??t.id??void 0,mealId:n?.mealId??t.mealId,amount:n?.amount??t.amount,order:n?.order??t.order,ingredientId:r?r.id:n?.ingredientId??t.ingredientId,ingredient:r,weightUnitId:o?o.id:n?.weightUnitId??t.weightUnitId,weightUnit:o})}diaryEntry(t,n){return new Dp({mealId:this.mealId,planId:t,amount:this.amount,datetime:n||new Date,ingredient:this.ingredient,ingredientId:this.ingredientId,weightUnitId:this.weightUnitId,weightUnit:this.weightUnit})}toJson(){return YG.toJson(this)}}class Pke{fromJson(t){return new Im({id:t.id,mealId:t.meal,ingredientId:t.ingredient,weightUnitId:t.weight_unit,amount:parseFloat(t.amount),order:t.order})}toJson(t){return{...t.id!=null?{id:t.id}:{},meal:t.mealId,ingredient:t.ingredientId,weight_unit:t.weightUnitId,amount:t.amount.toString(),order:t.order}}}const YG=new Pke,Ike=async e=>{const t=await bt.post(Pt(kt.MEAL_ITEM),e.toJson(),{headers:It()});return Im.fromJson(t.data)},Oke=async e=>{const t=await bt.patch(Pt(kt.MEAL_ITEM,{id:e.id}),e.toJson(),{headers:It()});return Im.fromJson(t.data)},Mke=async e=>{await bt.delete(Pt(kt.MEAL_ITEM,{id:e}),{headers:It()})};class Ake{constructor(t,n,r,o=""){this.id=t,this.amount=n,this.grams=r,this.name=o}}class Dke{fromJson(t){return new Ake(t.id,parseFloat(t.amount),t.gram)}}const rte=async e=>{if(e===null)return null;const{data:t}=await bt.get(Pt(kt.INGREDIENT_WEIGHT_UNIT,{id:e}),{headers:It()});return new Dke().fromJson(t)},Rke=async e=>{const t=await bt.post(Pt(kt.MEAL),e.toJson(),{headers:It()});return Ip.fromJson(t.data)},kke=async e=>{const t=await bt.patch(Pt(kt.MEAL,{id:e.id}),e.toJson(),{headers:It()});return Ip.fromJson(t.data)},Nke=async e=>{await bt.delete(Pt(kt.MEAL,{id:e}),{headers:It()})},_ke=async e=>{let t=[];const{data:n}=await bt.get(Pt(kt.MEAL,{query:{plan:e}}),{headers:It()}),r=n.results.map(o=>Ip.fromJson(o));for(const o of r){t=[];const{data:i}=await bt.get(Pt(kt.MEAL_ITEM,{query:{meal:o.id}}),{headers:It()}),a=i.results.map(l=>Im.fromJson(l));for(const l of a)t.push(l.ingredientId);const s=await nte(t);for(const l of a)l.weightUnit=await rte(l.weightUnitId),l.ingredient=s.find(c=>c.id===l.ingredientId);o.items=a}return r},Lke=async e=>(await bt.delete(Pt(kt.WORKOUT_LOG,{id:e}),{headers:It()})).status,$ke=async e=>{const t=new JR,n=await bt.patch(Pt(kt.WORKOUT_LOG,{id:e.id}),t.toJson(e),{headers:It()});return t.fromJson(n.data)},Fke=async e=>{const t=new JR,n=[];for(const r of e){const o=await bt.post(Pt(kt.WORKOUT_LOG),{...r},{headers:It()});n.push(t.fromJson(o.data))}return n},jke=async e=>{const t=await bt.patch(Pt(kt.SLOT_ENTRY,{id:e.id}),e.toJson(),{headers:It()});return ff.fromJson(t.data)},Bke=async e=>{await bt.delete(Pt(kt.SLOT_ENTRY,{id:e}),{headers:It()})},zke=async e=>{const t=await bt.post(Pt(kt.SLOT_ENTRY),e,{headers:It()});return ff.fromJson(t.data)},ote=async e=>{const t=await bt.patch(Pt(kt.DAY,{id:e.id}),e.toJson(),{headers:It()});return Zu.fromJson(t.data)},Vke=async e=>{const t=await bt.post(Pt(kt.DAY),e.toJson(),{headers:It()});return Zu.fromJson(t.data)},Hke=async e=>{await bt.delete(Pt(kt.DAY,{id:e}),{headers:It()})},Uke=async e=>{const t=await bt.post(Pt(kt.SLOT),e.toJson(),{headers:It()});return Mp.fromJson(t.data)},ite=async e=>{const t=await bt.patch(Pt(kt.SLOT,{id:e.id}),e.toJson(),{headers:It()});return Mp.fromJson(t.data)},Gke=async e=>{await bt.delete(Pt(kt.SLOT,{id:e}),{headers:It()})},Wke=async({values:e,maxValues:t})=>{const n=async r=>{const{toAdd:o,toEdit:i,toDelete:a,apiPath:s}=r;for(const l of o)await ad(l,s);for(const l of i)await id(l,s);for(const l of a)await pf(l,s)};e!==void 0&&await n(e),t!==void 0&&await n(t)},id=async(e,t)=>{const n=await bt.patch(Pt(t,{id:e.id}),e,{headers:It()});return new aV().fromJson(n.data)},ad=async(e,t)=>{const n=await bt.post(Pt(t),e,{headers:It()});return new aV().fromJson(n.data)},pf=async(e,t)=>await bt.delete(Pt(t,{id:e}),{headers:It()}),qke=async e=>await id(e,kt.WEIGHT_CONFIG),Kke=async e=>await ad(e,kt.WEIGHT_CONFIG),Yke=async e=>await pf(e,kt.WEIGHT_CONFIG),Qke=async e=>await id(e,kt.MAX_WEIGHT_CONFIG),Xke=async e=>await ad(e,kt.MAX_WEIGHT_CONFIG),Jke=async e=>await pf(e,kt.MAX_WEIGHT_CONFIG),Zke=async e=>await id(e,kt.REPETITIONS_CONFIG),e2e=async e=>await ad(e,kt.REPETITIONS_CONFIG),t2e=async e=>await pf(e,kt.REPETITIONS_CONFIG),n2e=async e=>await id(e,kt.MAX_REPS_CONFIG),r2e=async e=>await ad(e,kt.MAX_REPS_CONFIG),o2e=async e=>await pf(e,kt.MAX_REPS_CONFIG),i2e=async e=>await id(e,kt.NR_OF_SETS_CONFIG),a2e=async e=>await ad(e,kt.NR_OF_SETS_CONFIG),s2e=async e=>await pf(e,kt.NR_OF_SETS_CONFIG),l2e=async e=>await id(e,kt.MAX_NR_OF_SETS_CONFIG),c2e=async e=>await ad(e,kt.MAX_NR_OF_SETS_CONFIG),u2e=async e=>await id(e,kt.RIR_CONFIG),d2e=async e=>await ad(e,kt.RIR_CONFIG),f2e=async e=>await pf(e,kt.RIR_CONFIG),p2e=async e=>await id(e,kt.MAX_RIR_CONFIG),h2e=async e=>await ad(e,kt.MAX_RIR_CONFIG),m2e=async e=>await pf(e,kt.MAX_RIR_CONFIG),g2e=async e=>await id(e,kt.REST_CONFIG),y2e=async e=>await ad(e,kt.REST_CONFIG),v2e=async e=>await pf(e,kt.REST_CONFIG),b2e=async e=>await id(e,kt.MAX_REST_CONFIG),x2e=async e=>await ad(e,kt.MAX_REST_CONFIG),w2e=async e=>await pf(e,kt.MAX_REST_CONFIG),S2e=async e=>{const t=await bt.get(Pt(kt.SESSION,{query:e}),{headers:It()});return t.data.count===1?new RT().fromJson(t.data.results[0]):null},C2e=async e=>{const{filtersetQuerySessions:t={},filtersetQueryLogs:n={}}=e||{},r=new RT,o=new JR,i=[],a=[],s={};for await(const l of ov(Pt(kt.WORKOUT_LOG,{query:{limit:ij,...n}}),It()))for(const c of l)a.push(o.fromJson(c));for(const l of a)s[l.exerciseId]||(s[l.exerciseId]=await pw(l.exerciseId)),l.exerciseObj=s[l.exerciseId];for await(const l of ov(Pt(kt.SESSION,{query:{limit:ij,...t}}),It()))for(const c of l){const u=r.fromJson(c);u.logs=a.filter(f=>f.sessionId===u.id),i.push(u)}return i},E2e=async e=>{const t=await bt.post(Pt(kt.SESSION),e,{headers:It()});return new RT().fromJson(t.data)},T2e=async e=>{const t=await bt.patch(Pt(kt.SESSION,{id:e.id}),e,{headers:It()});return new RT().fromJson(t.data)},ate=async e=>{const{filtersetQuery:t={},loadUnit:n=!0,loadIngredient:r=!0}=e||{},o=Pt(kt.NUTRITIONAL_DIARY,{query:{limit:ij,...t}}),i=[];for await(const a of ov(o,It()))for(const s of a){const l=Dp.fromJson(s);n&&(l.weightUnit=await rte(l.weightUnitId)),r&&(l.ingredient=await Cke(l.ingredientId)),i.push(l)}return i},ste=async e=>{const t=await bt.post(Pt(kt.NUTRITIONAL_DIARY),e.toJson(),{headers:It()});return Dp.fromJson(t.data)},P2e=async e=>{const t=await bt.patch(Pt(kt.NUTRITIONAL_DIARY,{id:e.id}),e.toJson(),{headers:It()});return Dp.fromJson(t.data)};class mV{username;email;emailVerified;dateJoined;isTrustworthy;useMetric;height;weightRounding;repetitionsRounding;constructor(t){this.username=t.username,this.email=t.email,this.emailVerified=t.emailVerified,this.dateJoined=t.dateJoined,this.isTrustworthy=t.isTrustworthy,this.useMetric=t.useMetric,this.height=t.height,this.weightRounding=t.weightRounding,this.repetitionsRounding=t.repetitionsRounding}static fromJson(t){return QG.fromJson(t)}toJson(){return QG.toJson(this)}}class I2e{fromJson=t=>new mV({username:t.username,email:t.email,emailVerified:t.email_verified,dateJoined:new Date(t.date_joined),isTrustworthy:t.is_trustworthy,useMetric:t.weight_unit==="kg",height:t.height,weightRounding:t.weight_rounding!==null?parseFloat(t.weight_rounding):null,repetitionsRounding:t.repetitions_rounding!==null?parseFloat(t.repetitions_rounding):null});toJson=t=>({email:t.email,height:t.height,weight_unit:t.useMetric?"kg":"lb",weight_rounding:t.weightRounding,repetitions_rounding:t.repetitionsRounding})}const QG=new I2e,O2e="userprofile",M2e=async()=>{const e=Pt(O2e);try{const t=await bt.get(e,{headers:It()});return mV.fromJson(t.data)}catch{return null}},A2e=async e=>{const{weightRounding:t,repetitionRounding:n,...r}=e,o={...r,...t!==void 0&&{weight_rounding:t},...n!==void 0&&{repetition_rounding:n}},i=await bt.post(Pt(kt.API_PROFILE_PATH),o,{headers:It()});return mV.fromJson(i.data)},D2e="check-language",R2e=async e=>{const t=Pt(D2e),n={input:e.input,...e.languageId!==void 0?{language:e.languageId}:{languageCode:e.languageCode}};return(await bt.post(t,n,{headers:It()})).data},vw="nutritionplan",k2e=async()=>{const{data:e}=await bt.get(Pt(vw),{headers:It()});return e.results.map(t=>Tx.fromJson(t))},N2e=async()=>{const{data:e}=await bt.get(Pt(vw,{query:{limit:"1"}}),{headers:It()});return e.count===0?null:await gV(e.results[0].id)},gV=async(e,t)=>{if(e===null)return null;const{filtersetQueryLogs:n={}}=t||{},{data:r}=await bt.get(Pt(vw,{id:e}),{headers:It()}),o=[],i=Tx.fromJson(r),a=await Promise.all([_ke(e),ate({filtersetQuery:{plan:e,...n}})]);i.meals=a[0],i.diaryEntries=a[1],i.diaryEntries.forEach(l=>{o.includes(l.ingredientId)||o.push(l.ingredientId)});const s=await nte(o);return i.diaryEntries.forEach(l=>{l.ingredient=s.find(c=>c.id===l.ingredientId)}),i.meals.forEach(l=>{l.diaryEntries=i.diaryEntries.filter(c=>c.mealId===l.id)}),i},_2e=async e=>{const t=await bt.post(Pt(vw),Tx.toJson(e),{headers:It()});return Tx.fromJson(t.data)},L2e=async e=>{const t=await bt.patch(Pt(vw,{id:e.id}),Tx.toJson(e),{headers:It()});return Tx.fromJson(t.data)},$2e=async e=>{await bt.delete(Pt(vw,{id:e}),{headers:It()})};function F2e(){return Zr({queryKey:[xt.NUTRITIONAL_PLANS],queryFn:()=>k2e()})}function j2e(){return Zr({queryKey:[xt.NUTRITIONAL_PLAN,"last"],queryFn:()=>N2e()})}function B2e(e){return Zr({queryKey:[xt.NUTRITIONAL_PLAN,e],queryFn:()=>gV(e)})}function z2e(e,t,n=!0){return Zr({queryKey:[xt.NUTRITIONAL_PLAN,e,t],queryFn:()=>gV(e,{filtersetQueryLogs:{datetime__eq:Jr(new Date(t))}}),enabled:n})}const V2e=()=>{const e=Bt();return zt({mutationFn:t=>_2e(t),onSuccess:()=>{e.invalidateQueries({queryKey:[xt.NUTRITIONAL_PLANS]}),e.invalidateQueries({queryKey:[xt.NUTRITIONAL_PLAN]})}})},H2e=e=>{const t=Bt();return zt({mutationFn:n=>$2e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[xt.NUTRITIONAL_PLANS]}),t.invalidateQueries({queryKey:[xt.NUTRITIONAL_PLAN,e]})}})},U2e=e=>{const t=Bt();return zt({mutationFn:n=>L2e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[xt.NUTRITIONAL_PLAN,e]}),t.invalidateQueries({queryKey:[xt.NUTRITIONAL_PLANS]})}})},G2e=e=>Zr({queryFn:()=>ate(e),queryKey:[xt.NUTRITIONAL_PLAN_DIARY,JSON.stringify(e||{})]}),lte=e=>{const t=Bt();return zt({mutationFn:n=>ste(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.NUTRITIONAL_PLAN,e]})})},W2e=e=>{const t=Bt();return zt({mutationFn:n=>Promise.all(n.map(r=>ste(r))),onSuccess:()=>t.invalidateQueries({queryKey:[xt.NUTRITIONAL_PLAN,e]})})},q2e=e=>{const t=Bt();return zt({mutationFn:n=>P2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.NUTRITIONAL_PLAN,e]})})},K2e=e=>{const t=Bt();return zt({mutationFn:n=>Rke(n),onSuccess:()=>{t.invalidateQueries({queryKey:[xt.NUTRITIONAL_PLAN,e]})}})},Y2e=e=>{const t=Bt();return zt({mutationFn:n=>Nke(n),onSuccess:()=>{t.invalidateQueries({queryKey:[xt.NUTRITIONAL_PLAN,e]})}})},Q2e=e=>{const t=Bt();return zt({mutationFn:n=>kke(n),onSuccess:()=>{t.invalidateQueries({queryKey:[xt.NUTRITIONAL_PLAN,e]})}})},X2e=e=>{const t=Bt();return zt({mutationFn:n=>Ike(n),onSuccess:()=>{t.invalidateQueries({queryKey:[xt.NUTRITIONAL_PLAN,e]})}})},J2e=e=>{const t=Bt();return zt({mutationFn:n=>Oke(n),onSuccess:()=>{t.invalidateQueries({queryKey:[xt.NUTRITIONAL_PLAN,e]})}})},Z2e=e=>{const t=Bt();return zt({mutationFn:n=>Mke(n),onSuccess:()=>{t.invalidateQueries({queryKey:[xt.NUTRITIONAL_PLAN,e]})}})};function ts(e,t){return e.toLocaleString(t,{maximumFractionDigits:0})}function cte(e,t,n){return e.toLocaleString(t,{maximumFractionDigits:0,unit:n.valueOf(),style:"unit"})}function ar(e,t){return cte(e,t,"gram")}function D_(e,t){return cte(e,t,"percent")}const px=e=>{const{i18n:t}=We(),n=e.planned>0;return J(_t,{children:[w(PJ,{variant:"determinate",value:e.percentage<100?e.percentage:100}),J(wt,{variant:"caption",children:[e.title," — ",ar(e.logged,t.language),n&&J(_t,{children:[" / ",ar(e.planned,t.language)]})]})]})};var R_={},k_={},XG;function eNe(){return XG||(XG=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t}(k_)),k_}var N_={},JG;function ute(){return JG||(JG=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t}(N_)),N_}var __={},ZG;function dte(){return ZG||(ZG=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="string"||typeof n=="symbol"?n:Object.is(n?.valueOf?.(),-0)?"-0":String(n)}e.toKey=t}(__)),__}var L_={},eW;function yV(){return eW||(eW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){const r=[],o=n.length;if(o===0)return r;let i=0,a="",s="",l=!1;for(n.charCodeAt(0)===46&&(r.push(""),i++);i<o;){const c=n[i];s?c==="\\"&&i+1<o?(i++,a+=n[i]):c===s?s="":a+=c:l?c==='"'||c==="'"?s=c:c==="]"?(l=!1,r.push(a),a=""):a+=c:c==="["?(l=!0,a&&(r.push(a),a="")):c==="."?a&&(r.push(a),a=""):a+=c,i++}return a&&r.push(a),r}e.toPath=t}(L_)),L_}var tW;function vV(){return tW||(tW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eNe(),n=ute(),r=dte(),o=yV();function i(s,l,c){if(s==null)return c;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?n.isDeepKey(l)?i(s,o.toPath(l),c):c:u}case"number":case"symbol":{typeof l=="number"&&(l=r.toKey(l));const u=s[l];return u===void 0?c:u}default:{if(Array.isArray(l))return a(s,l,c);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?c:u}}}function a(s,l,c){if(l.length===0)return c;let u=s;for(let f=0;f<l.length;f++){if(u==null||t.isUnsafeProperty(l[f]))return c;u=u[l[f]]}return u===void 0?c:u}e.get=i}(R_)),R_}var $_,nW;function tNe(){return nW||(nW=1,$_=vV().get),$_}var nNe=tNe();const iv=cs(nNe);var F_={exports:{}},io={};/**
- * @license React
- * react-is.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var rW;function rNe(){if(rW)return io;rW=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function y(x){if(typeof x=="object"&&x!==null){var S=x.$$typeof;switch(S){case e:switch(x=x.type,x){case n:case o:case r:case l:case c:case h:return x;default:switch(x=x&&x.$$typeof,x){case a:case s:case f:case u:return x;case i:return x;default:return S}}case t:return S}}}return io.ContextConsumer=i,io.ContextProvider=a,io.Element=e,io.ForwardRef=s,io.Fragment=n,io.Lazy=f,io.Memo=u,io.Portal=t,io.Profiler=o,io.StrictMode=r,io.Suspense=l,io.SuspenseList=c,io.isContextConsumer=function(x){return y(x)===i},io.isContextProvider=function(x){return y(x)===a},io.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},io.isForwardRef=function(x){return y(x)===s},io.isFragment=function(x){return y(x)===n},io.isLazy=function(x){return y(x)===f},io.isMemo=function(x){return y(x)===u},io.isPortal=function(x){return y(x)===t},io.isProfiler=function(x){return y(x)===o},io.isStrictMode=function(x){return y(x)===r},io.isSuspense=function(x){return y(x)===l},io.isSuspenseList=function(x){return y(x)===c},io.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===l||x===c||typeof x=="object"&&x!==null&&(x.$$typeof===f||x.$$typeof===u||x.$$typeof===a||x.$$typeof===i||x.$$typeof===s||x.$$typeof===g||x.getModuleId!==void 0)},io.typeOf=y,io}var oW;function oNe(){return oW||(oW=1,F_.exports=rNe()),F_.exports}var iNe=oNe(),ua=e=>e===0?0:e>0?1:-1,hl=e=>typeof e=="number"&&e!=+e,Ry=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,nn=e=>(typeof e=="number"||e instanceof Number)&&!hl(e),Xc=e=>nn(e)||typeof e=="string",aNe=0,CE=e=>{var t=++aNe;return"".concat(e||"").concat(t)},ls=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!nn(t)&&typeof t!="string")return r;var i;if(Ry(t)){if(n==null)return r;var a=t.indexOf("%");i=n*parseFloat(t.slice(0,a))/100}else i=+t;return hl(i)&&(i=r),o&&n!=null&&i>n&&(i=n),i},fte=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1},yM=(e,t)=>nn(e)&&nn(t)?n=>e+n*(t-e):()=>t;function ao(e,t,n){return nn(e)&&nn(t)?e+n*(t-e):t}function pte(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):iv(r,t))===n)}var sNe=e=>{if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,o=0,i=0,a=1/0,s=-1/0,l=0,c=0,u=0;u<t;u++)l=e[u].cx||0,c=e[u].cy||0,n+=l,r+=c,o+=l*c,i+=l*l,a=Math.min(a,l),s=Math.max(s,l);var f=t*i!==n*n?(t*o-n*r)/(t*i-n*n):0;return{xmin:a,xmax:s,a:f,b:(r-f*n)/t}},Gr=e=>e===null||typeof e>"u",_T=e=>Gr(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),lNe=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function bV(e){if(typeof e!="string")return!1;var t=lNe;return t.includes(e)}var cNe=["viewBox","children"],iW=["points","pathLength"],j_={svg:cNe,polygon:iW,polyline:iW},xV=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(m.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(o=>{bV(o)&&(r[o]=i=>n[o](n,i))}),r},uNe=(e,t,n)=>r=>(e(t,n,r),null),bw=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(o=>{var i=e[o];bV(o)&&typeof i=="function"&&(r||(r={}),r[o]=uNe(i,t,n))}),r},dNe=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"];function hte(e){if(typeof e!="string")return!1;var t=dNe;return t.includes(e)}function ml(e){var t=Object.entries(e).filter(n=>{var[r]=n;return hte(r)});return Object.fromEntries(t)}var aW=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",sW=null,B_=null,mte=e=>{if(e===sW&&Array.isArray(B_))return B_;var t=[];return m.Children.forEach(e,n=>{Gr(n)||(iNe.isFragment(n)?t=t.concat(mte(n.props.children)):t.push(n))}),B_=t,sW=e,t};function nk(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(o=>aW(o)):r=[aW(t)],mte(e).forEach(o=>{var i=iv(o,"type.displayName")||iv(o,"type.name");r.indexOf(i)!==-1&&n.push(o)}),n}var rk=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,fNe=(e,t,n,r)=>{var o;if(typeof t=="symbol"||typeof t=="number")return!0;var i=(o=r&&j_?.[r])!==null&&o!==void 0?o:[],a=t.startsWith("data-"),s=typeof e!="function"&&(!!r&&i.includes(t)||hte(t)),l=!!n&&bV(t);return a||s||l},vo=(e,t,n)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(m.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var o={};return Object.keys(r).forEach(i=>{var a;fNe((a=r)===null||a===void 0?void 0:a[i],i,t,n)&&(o[i]=r[i])}),o},pNe=["children","width","height","viewBox","className","style","title","desc"];function wj(){return wj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wj.apply(null,arguments)}function hNe(e,t){if(e==null)return{};var n,r,o=mNe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function mNe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var wV=m.forwardRef((e,t)=>{var{children:n,width:r,height:o,viewBox:i,className:a,style:s,title:l,desc:c}=e,u=hNe(e,pNe),f=i||{width:r,height:o,x:0,y:0},h=ge("recharts-surface",a);return m.createElement("svg",wj({},vo(u,!0,"svg"),{className:h,width:r,height:o,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),m.createElement("title",null,l),m.createElement("desc",null,c),n)}),gNe=["children","className"];function Sj(){return Sj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sj.apply(null,arguments)}function yNe(e,t){if(e==null)return{};var n,r,o=vNe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function vNe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var so=m.forwardRef((e,t)=>{var{children:n,className:r}=e,o=yNe(e,gNe),i=ge("recharts-layer",r);return m.createElement("g",Sj({className:i},vo(o,!0),{ref:t}),n)}),gte=m.createContext(null),bNe=()=>m.useContext(gte);function To(e){return function(){return e}}const yte=Math.cos,XA=Math.sin,sd=Math.sqrt,JA=Math.PI,ok=2*JA,Cj=Math.PI,Ej=2*Cj,wy=1e-6,xNe=Ej-wy;function vte(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function wNe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return vte;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;o<i;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class SNe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?vte:wNe(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,i,a){this._append`C${+t},${+n},${+r},${+o},${this._x1=+i},${this._y1=+a}`}arcTo(t,n,r,o,i){if(t=+t,n=+n,r=+r,o=+o,i=+i,i<0)throw new Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,l=r-t,c=o-n,u=a-t,f=s-n,h=u*u+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>wy)if(!(Math.abs(f*l-c*u)>wy)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let g=r-a,y=o-s,x=l*l+c*c,S=g*g+y*y,C=Math.sqrt(x),E=Math.sqrt(h),I=i*Math.tan((Cj-Math.acos((x+h-S)/(2*C*E)))/2),M=I/E,O=I/C;Math.abs(M-1)>wy&&this._append`L${t+M*u},${n+M*f}`,this._append`A${i},${i},0,0,${+(f*g>u*y)},${this._x1=t+O*l},${this._y1=n+O*c}`}}arc(t,n,r,o,i,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),c=t+s,u=n+l,f=1^a,h=a?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>wy||Math.abs(this._y1-u)>wy)&&this._append`L${c},${u}`,r&&(h<0&&(h=h%Ej+Ej),h>xNe?this._append`A${r},${r},0,1,${f},${t-s},${n-l}A${r},${r},0,1,${f},${this._x1=c},${this._y1=u}`:h>wy&&this._append`A${r},${r},0,${+(h>=Cj)},${f},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function SV(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new SNe(t)}function CV(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bte(e){this._context=e}bte.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ik(e){return new bte(e)}function xte(e){return e[0]}function wte(e){return e[1]}function Ste(e,t){var n=To(!0),r=null,o=ik,i=null,a=SV(s);e=typeof e=="function"?e:e===void 0?xte:To(e),t=typeof t=="function"?t:t===void 0?wte:To(t);function s(l){var c,u=(l=CV(l)).length,f,h=!1,g;for(r==null&&(i=o(g=a())),c=0;c<=u;++c)!(c<u&&n(f=l[c],c,l))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(f,c,l),+t(f,c,l));if(g)return i=null,g+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:To(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:To(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:To(!!l),s):n},s.curve=function(l){return arguments.length?(o=l,r!=null&&(i=o(r)),s):o},s.context=function(l){return arguments.length?(l==null?r=i=null:i=o(r=l),s):r},s}function vM(e,t,n){var r=null,o=To(!0),i=null,a=ik,s=null,l=SV(c);e=typeof e=="function"?e:e===void 0?xte:To(+e),t=typeof t=="function"?t:To(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?wte:To(+n);function c(f){var h,g,y,x=(f=CV(f)).length,S,C=!1,E,I=new Array(x),M=new Array(x);for(i==null&&(s=a(E=l())),h=0;h<=x;++h){if(!(h<x&&o(S=f[h],h,f))===C)if(C=!C)g=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=h-1;y>=g;--y)s.point(I[y],M[y]);s.lineEnd(),s.areaEnd()}C&&(I[h]=+e(S,h,f),M[h]=+t(S,h,f),s.point(r?+r(S,h,f):I[h],n?+n(S,h,f):M[h]))}if(E)return s=null,E+""||null}function u(){return Ste().defined(o).curve(a).context(i)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:To(+f),r=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:To(+f),c):e},c.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:To(+f),c):r},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:To(+f),n=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:To(+f),c):t},c.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:To(+f),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(f){return arguments.length?(o=typeof f=="function"?f:To(!!f),c):o},c.curve=function(f){return arguments.length?(a=f,i!=null&&(s=a(i)),c):a},c.context=function(f){return arguments.length?(f==null?i=s=null:s=a(i=f),c):i},c}class Cte{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function CNe(e){return new Cte(e,!0)}function ENe(e){return new Cte(e,!1)}const EV={draw(e,t){const n=sd(t/JA);e.moveTo(n,0),e.arc(0,0,n,0,ok)}},TNe={draw(e,t){const n=sd(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Ete=sd(1/3),PNe=Ete*2,INe={draw(e,t){const n=sd(t/PNe),r=n*Ete;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},ONe={draw(e,t){const n=sd(t),r=-n/2;e.rect(r,r,n,n)}},MNe=.8908130915292852,Tte=XA(JA/10)/XA(7*JA/10),ANe=XA(ok/10)*Tte,DNe=-yte(ok/10)*Tte,RNe={draw(e,t){const n=sd(t*MNe),r=ANe*n,o=DNe*n;e.moveTo(0,-n),e.lineTo(r,o);for(let i=1;i<5;++i){const a=ok*i/5,s=yte(a),l=XA(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},z_=sd(3),kNe={draw(e,t){const n=-sd(t/(z_*3));e.moveTo(0,n*2),e.lineTo(-z_*n,-n),e.lineTo(z_*n,-n),e.closePath()}},bc=-.5,xc=sd(3)/2,Tj=1/sd(12),NNe=(Tj/2+1)*3,_Ne={draw(e,t){const n=sd(t/NNe),r=n/2,o=n*Tj,i=r,a=n*Tj+n,s=-i,l=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(bc*r-xc*o,xc*r+bc*o),e.lineTo(bc*i-xc*a,xc*i+bc*a),e.lineTo(bc*s-xc*l,xc*s+bc*l),e.lineTo(bc*r+xc*o,bc*o-xc*r),e.lineTo(bc*i+xc*a,bc*a-xc*i),e.lineTo(bc*s+xc*l,bc*l-xc*s),e.closePath()}};function LNe(e,t){let n=null,r=SV(o);e=typeof e=="function"?e:To(e||EV),t=typeof t=="function"?t:To(t===void 0?64:+t);function o(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:To(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:To(+i),o):t},o.context=function(i){return arguments.length?(n=i??null,o):n},o}function ZA(){}function eD(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Pte(e){this._context=e}Pte.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:eD(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:eD(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $Ne(e){return new Pte(e)}function Ite(e){this._context=e}Ite.prototype={areaStart:ZA,areaEnd:ZA,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:eD(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function FNe(e){return new Ite(e)}function Ote(e){this._context=e}Ote.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:eD(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jNe(e){return new Ote(e)}function Mte(e){this._context=e}Mte.prototype={areaStart:ZA,areaEnd:ZA,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function BNe(e){return new Mte(e)}function lW(e){return e<0?-1:1}function cW(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(lW(i)+lW(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function uW(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function V_(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function tD(e){this._context=e}tD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:V_(this,this._t0,uW(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,V_(this,uW(this,n=cW(this,e,t)),n);break;default:V_(this,this._t0,n=cW(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Ate(e){this._context=new Dte(e)}(Ate.prototype=Object.create(tD.prototype)).point=function(e,t){tD.prototype.point.call(this,t,e)};function Dte(e){this._context=e}Dte.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};function zNe(e){return new tD(e)}function VNe(e){return new Ate(e)}function Rte(e){this._context=e}Rte.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=dW(e),o=dW(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function dW(e){var t,n=e.length-1,r,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/i[t-1],i[t]-=r,a[t]-=r*a[t-1];for(o[n-1]=a[n-1]/i[n-1],t=n-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function HNe(e){return new Rte(e)}function ak(e,t){this._context=e,this._t=t}ak.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function UNe(e){return new ak(e,.5)}function GNe(e){return new ak(e,0)}function WNe(e){return new ak(e,1)}function Mx(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,s=i.length;n<a;++n)for(o=i,i=e[t[n]],r=0;r<s;++r)i[r][1]+=i[r][0]=isNaN(o[r][1])?o[r][0]:o[r][1]}function Pj(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function qNe(e,t){return e[t]}function KNe(e){const t=[];return t.key=e,t}function YNe(){var e=To([]),t=Pj,n=Mx,r=qNe;function o(i){var a=Array.from(e.apply(this,arguments),KNe),s,l=a.length,c=-1,u;for(const f of i)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(f,a[s].key,c,i)]).data=f;for(s=0,u=CV(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return o.keys=function(i){return arguments.length?(e=typeof i=="function"?i:To(Array.from(i)),o):e},o.value=function(i){return arguments.length?(r=typeof i=="function"?i:To(+i),o):r},o.order=function(i){return arguments.length?(t=i==null?Pj:typeof i=="function"?i:To(Array.from(i)),o):t},o.offset=function(i){return arguments.length?(n=i??Mx,o):n},o}function QNe(e,t){if((r=e.length)>0){for(var n,r,o=0,i=e[0].length,a;o<i;++o){for(a=n=0;n<r;++n)a+=e[n][o][1]||0;if(a)for(n=0;n<r;++n)e[n][o][1]/=a}Mx(e,t)}}function XNe(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,i=r.length;n<i;++n){for(var a=0,s=0;a<o;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}Mx(e,t)}}function JNe(e,t){if(!(!((a=e.length)>0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,a;r<i;++r){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],f=u[r][1]||0,h=u[r-1][1]||0,g=(f-h)/2,y=0;y<s;++y){var x=e[t[y]],S=x[r][1]||0,C=x[r-1][1]||0;g+=S-C}l+=f,c+=g*f}o[r-1][1]+=o[r-1][0]=n,l&&(n-=c/l)}o[r-1][1]+=o[r-1][0]=n,Mx(e,t)}}var ZNe=["type","size","sizeType"];function Ij(){return Ij=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ij.apply(null,arguments)}function fW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function pW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fW(Object(n),!0).forEach(function(r){e_e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fW(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e_e(e,t,n){return(t=t_e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t_e(e){var t=n_e(e,"string");return typeof t=="symbol"?t:t+""}function n_e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r_e(e,t){if(e==null)return{};var n,r,o=o_e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o_e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var kte={symbolCircle:EV,symbolCross:TNe,symbolDiamond:INe,symbolSquare:ONe,symbolStar:RNe,symbolTriangle:kNe,symbolWye:_Ne},i_e=Math.PI/180,a_e=e=>{var t="symbol".concat(_T(e));return kte[t]||EV},s_e=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*i_e;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},l_e=(e,t)=>{kte["symbol".concat(_T(e))]=t},sk=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,o=r_e(e,ZNe),i=pW(pW({},o),{},{type:t,size:n,sizeType:r}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var h=a_e(a),g=LNe().type(h).size(s_e(n,r,a));return g()},{className:l,cx:c,cy:u}=i,f=vo(i,!0);return c===+c&&u===+u&&n===+n?m.createElement("path",Ij({},f,{className:ge("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};sk.registerSymbol=l_e;function Oj(){return Oj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oj.apply(null,arguments)}function hW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function c_e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hW(Object(n),!0).forEach(function(r){TV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hW(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TV(e,t,n){return(t=u_e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u_e(e){var t=d_e(e,"string");return typeof t=="symbol"?t:t+""}function d_e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wc=32;class PV extends m.PureComponent{renderIcon(t,n){var{inactiveColor:r}=this.props,o=wc/2,i=wc/6,a=wc/3,s=t.inactive?r:t.color,l=n??t.type;if(l==="none")return null;if(l==="plainline")return m.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:o,x2:wc,y2:o,className:"recharts-legend-icon"});if(l==="line")return m.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(o,"h").concat(a,`
- A`).concat(i,",").concat(i,",0,1,1,").concat(2*a,",").concat(o,`
- H`).concat(wc,"M").concat(2*a,",").concat(o,`
- A`).concat(i,",").concat(i,",0,1,1,").concat(a,",").concat(o),className:"recharts-legend-icon"});if(l==="rect")return m.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(wc/8,"h").concat(wc,"v").concat(wc*3/4,"h").concat(-wc,"z"),className:"recharts-legend-icon"});if(m.isValidElement(t.legendIcon)){var c=c_e({},t);return delete c.legendIcon,m.cloneElement(t.legendIcon,c)}return m.createElement(sk,{fill:s,cx:o,cy:o,size:wc,sizeType:"diameter",type:l})}renderItems(){var{payload:t,iconSize:n,layout:r,formatter:o,inactiveColor:i,iconType:a}=this.props,s={x:0,y:0,width:wc,height:wc},l={display:r==="horizontal"?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((u,f)=>{var h=u.formatter||o,g=ge({"recharts-legend-item":!0,["legend-item-".concat(f)]:!0,inactive:u.inactive});if(u.type==="none")return null;var y=u.inactive?i:u.color,x=h?h(u.value,u,f):u.value;return m.createElement("li",Oj({className:g,style:l,key:"legend-item-".concat(f)},bw(this.props,u,f)),m.createElement(wV,{width:n,height:n,viewBox:s,style:c,"aria-label":"".concat(x," legend icon")},this.renderIcon(u,a)),m.createElement("span",{className:"recharts-legend-item-text",style:{color:y}},x))})}render(){var{payload:t,layout:n,align:r}=this.props;if(!t||!t.length)return null;var o={padding:0,margin:0,textAlign:n==="horizontal"?r:"left"};return m.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}TV(PV,"displayName","Legend");TV(PV,"defaultProps",{align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"});var H_={},U_={},mW;function f_e(){return mW||(mW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const o=new Map;for(let i=0;i<n.length;i++){const a=n[i],s=r(a);o.has(s)||o.set(s,a)}return Array.from(o.values())}e.uniqBy=t}(U_)),U_}var G_={},gW;function Nte(){return gW||(gW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t}(G_)),G_}var W_={},q_={},K_={},yW;function p_e(){return yW||(yW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t}(K_)),K_}var vW;function IV(){return vW||(vW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=p_e();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n}(q_)),q_}var Y_={},bW;function h_e(){return bW||(bW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t}(Y_)),Y_}var xW;function m_e(){return xW||(xW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=IV(),n=h_e();function r(o){return n.isObjectLike(o)&&t.isArrayLike(o)}e.isArrayLikeObject=r}(W_)),W_}var Q_={},X_={},wW;function g_e(){return wW||(wW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vV();function n(r){return function(o){return t.get(o,r)}}e.property=n}(X_)),X_}var J_={},Z_={},eL={},tL={},SW;function _te(){return SW||(SW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t}(tL)),tL}var nL={},CW;function Lte(){return CW||(CW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t}(nL)),nL}var rL={},EW;function $te(){return EW||(EW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.eq=t}(rL)),rL}var TW;function y_e(){return TW||(TW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=OV(),n=_te(),r=Lte(),o=$te();function i(f,h,g){return typeof g!="function"?t.isMatch(f,h):a(f,h,function y(x,S,C,E,I,M){const O=g(x,S,C,E,I,M);return O!==void 0?!!O:a(x,S,y,M)},new Map)}function a(f,h,g,y){if(h===f)return!0;switch(typeof h){case"object":return s(f,h,g,y);case"function":return Object.keys(h).length>0?a(f,{...h},g,y):o.eq(f,h);default:return n.isObject(f)?typeof h=="string"?h==="":!0:o.eq(f,h)}}function s(f,h,g,y){if(h==null)return!0;if(Array.isArray(h))return c(f,h,g,y);if(h instanceof Map)return l(f,h,g,y);if(h instanceof Set)return u(f,h,g,y);const x=Object.keys(h);if(f==null)return x.length===0;if(x.length===0)return!0;if(y&&y.has(h))return y.get(h)===f;y&&y.set(h,f);try{for(let S=0;S<x.length;S++){const C=x[S];if(!r.isPrimitive(f)&&!(C in f)||h[C]===void 0&&f[C]!==void 0||h[C]===null&&f[C]!==null||!g(f[C],h[C],C,f,h,y))return!1}return!0}finally{y&&y.delete(h)}}function l(f,h,g,y){if(h.size===0)return!0;if(!(f instanceof Map))return!1;for(const[x,S]of h.entries()){const C=f.get(x);if(g(C,S,x,f,h,y)===!1)return!1}return!0}function c(f,h,g,y){if(h.length===0)return!0;if(!Array.isArray(f))return!1;const x=new Set;for(let S=0;S<h.length;S++){const C=h[S];let E=!1;for(let I=0;I<f.length;I++){if(x.has(I))continue;const M=f[I];let O=!1;if(g(M,C,S,f,h,y)&&(O=!0),O){x.add(I),E=!0;break}}if(!E)return!1}return!0}function u(f,h,g,y){return h.size===0?!0:f instanceof Set?c([...f],[...h],g,y):!1}e.isMatchWith=i,e.isSetMatch=u}(eL)),eL}var PW;function OV(){return PW||(PW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=y_e();function n(r,o){return t.isMatchWith(r,o,()=>{})}e.isMatch=n}(Z_)),Z_}var oL={},iL={},aL={},IW;function v_e(){return IW||(IW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t}(aL)),aL}var sL={},OW;function Fte(){return OW||(OW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t}(sL)),sL}var lL={},MW;function jte(){return MW||(MW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",o="[object Boolean]",i="[object Arguments]",a="[object Symbol]",s="[object Date]",l="[object Map]",c="[object Set]",u="[object Array]",f="[object Function]",h="[object ArrayBuffer]",g="[object Object]",y="[object Error]",x="[object DataView]",S="[object Uint8Array]",C="[object Uint8ClampedArray]",E="[object Uint16Array]",I="[object Uint32Array]",M="[object BigUint64Array]",O="[object Int8Array]",D="[object Int16Array]",N="[object Int32Array]",$="[object BigInt64Array]",L="[object Float32Array]",A="[object Float64Array]";e.argumentsTag=i,e.arrayBufferTag=h,e.arrayTag=u,e.bigInt64ArrayTag=$,e.bigUint64ArrayTag=M,e.booleanTag=o,e.dataViewTag=x,e.dateTag=s,e.errorTag=y,e.float32ArrayTag=L,e.float64ArrayTag=A,e.functionTag=f,e.int16ArrayTag=D,e.int32ArrayTag=N,e.int8ArrayTag=O,e.mapTag=l,e.numberTag=r,e.objectTag=g,e.regexpTag=t,e.setTag=c,e.stringTag=n,e.symbolTag=a,e.uint16ArrayTag=E,e.uint32ArrayTag=I,e.uint8ArrayTag=S,e.uint8ClampedArrayTag=C}(lL)),lL}var cL={},AW;function b_e(){return AW||(AW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t}(cL)),cL}var DW;function Bte(){return DW||(DW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=v_e(),n=Fte(),r=jte(),o=Lte(),i=b_e();function a(u,f){return s(u,void 0,u,new Map,f)}function s(u,f,h,g=new Map,y=void 0){const x=y?.(u,f,h,g);if(x!==void 0)return x;if(o.isPrimitive(u))return u;if(g.has(u))return g.get(u);if(Array.isArray(u)){const S=new Array(u.length);g.set(u,S);for(let C=0;C<u.length;C++)S[C]=s(u[C],C,h,g,y);return Object.hasOwn(u,"index")&&(S.index=u.index),Object.hasOwn(u,"input")&&(S.input=u.input),S}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const S=new RegExp(u.source,u.flags);return S.lastIndex=u.lastIndex,S}if(u instanceof Map){const S=new Map;g.set(u,S);for(const[C,E]of u)S.set(C,s(E,C,h,g,y));return S}if(u instanceof Set){const S=new Set;g.set(u,S);for(const C of u)S.add(s(C,void 0,h,g,y));return S}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(i.isTypedArray(u)){const S=new(Object.getPrototypeOf(u)).constructor(u.length);g.set(u,S);for(let C=0;C<u.length;C++)S[C]=s(u[C],C,h,g,y);return S}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const S=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return g.set(u,S),l(S,u,h,g,y),S}if(typeof File<"u"&&u instanceof File){const S=new File([u],u.name,{type:u.type});return g.set(u,S),l(S,u,h,g,y),S}if(u instanceof Blob){const S=new Blob([u],{type:u.type});return g.set(u,S),l(S,u,h,g,y),S}if(u instanceof Error){const S=new u.constructor;return g.set(u,S),S.message=u.message,S.name=u.name,S.stack=u.stack,S.cause=u.cause,l(S,u,h,g,y),S}if(typeof u=="object"&&c(u)){const S=Object.create(Object.getPrototypeOf(u));return g.set(u,S),l(S,u,h,g,y),S}return u}function l(u,f,h=u,g,y){const x=[...Object.keys(f),...t.getSymbols(f)];for(let S=0;S<x.length;S++){const C=x[S],E=Object.getOwnPropertyDescriptor(u,C);(E==null||E.writable)&&(u[C]=s(f[C],C,h,g,y))}}function c(u){switch(n.getTag(u)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=a,e.cloneDeepWithImpl=s,e.copyProperties=l}(iL)),iL}var RW;function x_e(){return RW||(RW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Bte();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n}(oL)),oL}var kW;function w_e(){return kW||(kW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=OV(),n=x_e();function r(o){return o=n.cloneDeep(o),i=>t.isMatch(i,o)}e.matches=r}(J_)),J_}var uL={},dL={},fL={},NW;function S_e(){return NW||(NW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Bte(),n=jte();function r(o,i){return t.cloneDeepWith(o,(a,s,l,c)=>{const u=i?.(a,s,l,c);if(u!==void 0)return u;if(typeof o=="object")switch(Object.prototype.toString.call(o)){case n.numberTag:case n.stringTag:case n.booleanTag:{const f=new o.constructor(o?.valueOf());return t.copyProperties(f,o),f}case n.argumentsTag:{const f={};return t.copyProperties(f,o),f.length=o.length,f[Symbol.iterator]=o[Symbol.iterator],f}default:return}})}e.cloneDeepWith=r}(fL)),fL}var _W;function C_e(){return _W||(_W=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=S_e();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n}(dL)),dL}var pL={},hL={},LW;function zte(){return LW||(LW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,o=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<o;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n}(hL)),hL}var mL={},$W;function E_e(){return $W||($W=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Fte();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n}(mL)),mL}var FW;function T_e(){return FW||(FW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ute(),n=zte(),r=E_e(),o=yV();function i(a,s){let l;if(Array.isArray(s)?l=s:typeof s=="string"&&t.isDeepKey(s)&&a?.[s]==null?l=o.toPath(s):l=[s],l.length===0)return!1;let c=a;for(let u=0;u<l.length;u++){const f=l[u];if((c==null||!Object.hasOwn(c,f))&&!((Array.isArray(c)||r.isArguments(c))&&n.isIndex(f)&&f<c.length))return!1;c=c[f]}return!0}e.has=i}(pL)),pL}var jW;function P_e(){return jW||(jW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=OV(),n=dte(),r=C_e(),o=vV(),i=T_e();function a(s,l){switch(typeof s){case"object":{Object.is(s?.valueOf(),-0)&&(s="-0");break}case"number":{s=n.toKey(s);break}}return l=r.cloneDeep(l),function(c){const u=o.get(c,s);return u===void 0?i.has(c,s):l===void 0?u===void 0:t.isMatch(u,l)}}e.matchesProperty=a}(uL)),uL}var BW;function I_e(){return BW||(BW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Nte(),n=g_e(),r=w_e(),o=P_e();function i(a){if(a==null)return t.identity;switch(typeof a){case"function":return a;case"object":return Array.isArray(a)&&a.length===2?o.matchesProperty(a[0],a[1]):r.matches(a);case"string":case"symbol":case"number":return n.property(a)}}e.iteratee=i}(Q_)),Q_}var zW;function O_e(){return zW||(zW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=f_e(),n=Nte(),r=m_e(),o=I_e();function i(a,s=n.identity){return r.isArrayLikeObject(a)?t.uniqBy(Array.from(a),o.iteratee(s)):[]}e.uniqBy=i}(H_)),H_}var gL,VW;function M_e(){return VW||(VW=1,gL=O_e().uniqBy),gL}var A_e=M_e();const HW=cs(A_e);function Vte(e,t,n){return t===!0?HW(e,n):typeof t=="function"?HW(e,t):e}var yL={exports:{}},vL={},bL={exports:{}},xL={};/**
- * @license React
- * use-sync-external-store-shim.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var UW;function D_e(){if(UW)return xL;UW=1;var e=ew();function t(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(f,h){var g=h(),y=r({inst:{value:g,getSnapshot:h}}),x=y[0].inst,S=y[1];return i(function(){x.value=g,x.getSnapshot=h,l(x)&&S({inst:x})},[f,g,h]),o(function(){return l(x)&&S({inst:x}),f(function(){l(x)&&S({inst:x})})},[f]),a(g),g}function l(f){var h=f.getSnapshot;f=f.value;try{var g=h();return!n(f,g)}catch{return!0}}function c(f,h){return h()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return xL.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,xL}var GW;function Hte(){return GW||(GW=1,bL.exports=D_e()),bL.exports}/**
- * @license React
- * use-sync-external-store-shim/with-selector.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var WW;function R_e(){if(WW)return vL;WW=1;var e=ew(),t=Hte();function n(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;return vL.useSyncExternalStoreWithSelector=function(c,u,f,h,g){var y=i(null);if(y.current===null){var x={hasValue:!1,value:null};y.current=x}else x=y.current;y=s(function(){function C(D){if(!E){if(E=!0,I=D,D=h(D),g!==void 0&&x.hasValue){var N=x.value;if(g(N,D))return M=N}return M=D}if(N=M,r(I,D))return N;var $=h(D);return g!==void 0&&g(N,$)?(I=D,N):(I=D,M=$)}var E=!1,I,M,O=f===void 0?null:f;return[function(){return C(u())},O===null?void 0:function(){return C(O())}]},[u,f,h,g]);var S=o(c,y[0],y[1]);return a(function(){x.hasValue=!0,x.value=S},[S]),l(S),S},vL}var qW;function k_e(){return qW||(qW=1,yL.exports=R_e()),yL.exports}var N_e=k_e(),MV=m.createContext(null),__e=e=>e,Lo=()=>{var e=m.useContext(MV);return e?e.store.dispatch:__e},dA=()=>{},L_e=()=>dA,$_e=(e,t)=>e===t;function Zt(e){var t=m.useContext(MV);return N_e.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:L_e,t?t.store.getState:dA,t?t.store.getState:dA,t?e:dA,$_e)}var nD=Symbol("NOT_FOUND");function F_e(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function j_e(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function B_e(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var KW=e=>Array.isArray(e)?e:[e];function z_e(e){const t=Array.isArray(e[0])?e[0]:e;return B_e(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function V_e(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}function H_e(e){let t;return{get(n){return t&&e(t.key,n)?t.value:nD},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function U_e(e,t){let n=[];function r(s){const l=n.findIndex(c=>t(s,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return nD}function o(s,l){r(s)===nD&&(n.unshift({key:s,value:l}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var G_e=(e,t)=>e===t;function W_e(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function Ute(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=G_e,maxSize:o=1,resultEqualityCheck:i}=n,a=W_e(r);let s=0;const l=o<=1?H_e(a):U_e(o,a);function c(){let u=l.get(arguments);if(u===nD){if(u=e.apply(null,arguments),s++,i){const h=l.getEntries().find(g=>i(g.value,u));h&&(u=h.value,s!==0&&s--)}l.put(arguments,u)}return u}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>s,c.resetResultsCount=()=>{s=0},c}var q_e=class{constructor(t){this.value=t}deref(){return this.value}},K_e=typeof WeakRef<"u"?WeakRef:q_e,Y_e=0,YW=1;function bM(){return{s:Y_e,v:void 0,o:null,p:null}}function Gte(e,t={}){let n=bM();const{resultEqualityCheck:r}=t;let o,i=0;function a(){let s=n;const{length:l}=arguments;for(let f=0,h=l;f<h;f++){const g=arguments[f];if(typeof g=="function"||typeof g=="object"&&g!==null){let y=s.o;y===null&&(s.o=y=new WeakMap);const x=y.get(g);x===void 0?(s=bM(),y.set(g,s)):s=x}else{let y=s.p;y===null&&(s.p=y=new Map);const x=y.get(g);x===void 0?(s=bM(),y.set(g,s)):s=x}}const c=s;let u;if(s.s===YW)u=s.v;else if(u=e.apply(null,arguments),i++,r){const f=o?.deref?.()??o;f!=null&&r(f,u)&&(u=f,i!==0&&i--),o=typeof u=="object"&&u!==null||typeof u=="function"?new K_e(u):u}return c.s=YW,c.v=u,u}return a.clearCache=()=>{n=bM(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function Wte(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,a=0,s,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),F_e(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:f,memoizeOptions:h=[],argsMemoize:g=Gte,argsMemoizeOptions:y=[]}=u,x=KW(h),S=KW(y),C=z_e(o),E=f(function(){return i++,c.apply(null,arguments)},...x),I=g(function(){a++;const O=V_e(C,arguments);return s=E.apply(null,O),s},...S);return Object.assign(I,{resultFunc:c,memoizedResultFunc:E,dependencies:C,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:g})};return Object.assign(r,{withTypes:()=>r}),r}var Ue=Wte(Gte),Q_e=Object.assign((e,t=Ue)=>{j_e(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((a,s,l)=>(a[n[l]]=s,a),{}))},{withTypes:()=>Q_e}),wL={},SL={},CL={},QW;function X_e(){return QW||(QW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,o,i)=>{if(r!==o){const a=t(r),s=t(o);if(a===s&&a===0){if(r<o)return i==="desc"?1:-1;if(r>o)return i==="desc"?-1:1}return i==="desc"?s-a:a-s}return 0};e.compareValues=n}(CL)),CL}var EL={},TL={},XW;function qte(){return XW||(XW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t}(TL)),TL}var JW;function J_e(){return JW||(JW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qte(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(i,a){return Array.isArray(i)?!1:typeof i=="number"||typeof i=="boolean"||i==null||t.isSymbol(i)?!0:typeof i=="string"&&(r.test(i)||!n.test(i))||a!=null&&Object.hasOwn(a,i)}e.isKey=o}(EL)),EL}var ZW;function Z_e(){return ZW||(ZW=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=X_e(),n=J_e(),r=yV();function o(i,a,s,l){if(i==null)return[];s=l?void 0:s,Array.isArray(i)||(i=Object.values(i)),Array.isArray(a)||(a=a==null?[null]:[a]),a.length===0&&(a=[null]),Array.isArray(s)||(s=s==null?[]:[s]),s=s.map(g=>String(g));const c=(g,y)=>{let x=g;for(let S=0;S<y.length&&x!=null;++S)x=x[y[S]];return x},u=(g,y)=>y==null||g==null?y:typeof g=="object"&&"key"in g?Object.hasOwn(y,g.key)?y[g.key]:c(y,g.path):typeof g=="function"?g(y):Array.isArray(g)?c(y,g):typeof y=="object"?y[g]:y,f=a.map(g=>(Array.isArray(g)&&g.length===1&&(g=g[0]),g==null||typeof g=="function"||Array.isArray(g)||n.isKey(g)?g:{key:g,path:r.toPath(g)}));return i.map(g=>({original:g,criteria:f.map(y=>u(y,g))})).slice().sort((g,y)=>{for(let x=0;x<f.length;x++){const S=t.compareValues(g.criteria[x],y.criteria[x],s[x]);if(S!==0)return S}return 0}).map(g=>g.original)}e.orderBy=o}(SL)),SL}var PL={},e8;function eLe(){return e8||(e8=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const o=[],i=Math.floor(r),a=(s,l)=>{for(let c=0;c<s.length;c++){const u=s[c];Array.isArray(u)&&l<i?a(u,l+1):o.push(u)}};return a(n,0),o}e.flatten=t}(PL)),PL}var IL={},t8;function Kte(){return t8||(t8=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zte(),n=IV(),r=_te(),o=$te();function i(a,s,l){return r.isObject(l)&&(typeof s=="number"&&n.isArrayLike(l)&&t.isIndex(s)&&s<l.length||typeof s=="string"&&s in l)?o.eq(l[s],a):!1}e.isIterateeCall=i}(IL)),IL}var n8;function tLe(){return n8||(n8=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Z_e(),n=eLe(),r=Kte();function o(i,...a){const s=a.length;return s>1&&r.isIterateeCall(i,a[0],a[1])?a=[]:s>2&&r.isIterateeCall(a[0],a[1],a[2])&&(a=[a[0]]),t.orderBy(i,n.flatten(a),["asc"])}e.sortBy=o}(wL)),wL}var OL,r8;function nLe(){return r8||(r8=1,OL=tLe().sortBy),OL}var rLe=nLe();const lk=cs(rLe);var Yte=e=>e.legend.settings,oLe=e=>e.legend.size,iLe=e=>e.legend.payload,aLe=Ue([iLe,Yte],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?lk(r,n):r});function sLe(){return Zt(aLe)}var xM=1;function Qte(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=m.useState({height:0,left:0,top:0,width:0}),r=m.useCallback(o=>{if(o!=null){var i=o.getBoundingClientRect(),a={height:i.height,left:i.left,top:i.top,width:i.width};(Math.abs(a.height-t.height)>xM||Math.abs(a.left-t.left)>xM||Math.abs(a.top-t.top)>xM||Math.abs(a.width-t.width)>xM)&&n({height:a.height,left:a.left,top:a.top,width:a.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}function oa(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var lLe=typeof Symbol=="function"&&Symbol.observable||"@@observable",o8=lLe,ML=()=>Math.random().toString(36).substring(7).split("").join("."),cLe={INIT:`@@redux/INIT${ML()}`,REPLACE:`@@redux/REPLACE${ML()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ML()}`},rD=cLe;function AV(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function DV(e,t,n){if(typeof e!="function")throw new Error(oa(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(oa(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(oa(1));return n(DV)(e,t)}let r=e,o=t,i=new Map,a=i,s=0,l=!1;function c(){a===i&&(a=new Map,i.forEach((S,C)=>{a.set(C,S)}))}function u(){if(l)throw new Error(oa(3));return o}function f(S){if(typeof S!="function")throw new Error(oa(4));if(l)throw new Error(oa(5));let C=!0;c();const E=s++;return a.set(E,S),function(){if(C){if(l)throw new Error(oa(6));C=!1,c(),a.delete(E),i=null}}}function h(S){if(!AV(S))throw new Error(oa(7));if(typeof S.type>"u")throw new Error(oa(8));if(typeof S.type!="string")throw new Error(oa(17));if(l)throw new Error(oa(9));try{l=!0,o=r(o,S)}finally{l=!1}return(i=a).forEach(E=>{E()}),S}function g(S){if(typeof S!="function")throw new Error(oa(10));r=S,h({type:rD.REPLACE})}function y(){const S=f;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(oa(11));function E(){const M=C;M.next&&M.next(u())}return E(),{unsubscribe:S(E)}},[o8](){return this}}}return h({type:rD.INIT}),{dispatch:h,subscribe:f,getState:u,replaceReducer:g,[o8]:y}}function uLe(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:rD.INIT})>"u")throw new Error(oa(12));if(typeof n(void 0,{type:rD.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(oa(13))})}function Xte(e){const t=Object.keys(e),n={};for(let i=0;i<t.length;i++){const a=t[i];typeof e[a]=="function"&&(n[a]=e[a])}const r=Object.keys(n);let o;try{uLe(n)}catch(i){o=i}return function(a={},s){if(o)throw o;let l=!1;const c={};for(let u=0;u<r.length;u++){const f=r[u],h=n[f],g=a[f],y=h(g,s);if(typeof y>"u")throw s&&s.type,new Error(oa(14));c[f]=y,l=l||y!==g}return l=l||r.length!==Object.keys(a).length,l?c:a}}function i8(e,t){return function(...n){return t(e.apply(this,n))}}function a8(e,t){if(typeof e=="function")return i8(e,t);if(typeof e!="object"||e===null)throw new Error(oa(16));const n={};for(const r in e){const o=e[r];typeof o=="function"&&(n[r]=i8(o,t))}return n}function EE(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Jte(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(oa(15))};const a={getState:o.getState,dispatch:(l,...c)=>i(l,...c)},s=e.map(l=>l(a));return i=EE(...s)(o.dispatch),{...o,dispatch:i}}}function Zte(e){return AV(e)&&"type"in e&&typeof e.type=="string"}var ene=Symbol.for("immer-nothing"),s8=Symbol.for("immer-draftable"),Xl=Symbol.for("immer-state");function Fu(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ax=Object.getPrototypeOf;function av(e){return!!e&&!!e[Xl]}function Rp(e){return e?tne(e)||Array.isArray(e)||!!e[s8]||!!e.constructor?.[s8]||LT(e)||uk(e):!1}var dLe=Object.prototype.constructor.toString();function tne(e){if(!e||typeof e!="object")return!1;const t=Ax(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===dLe}function oD(e,t){ck(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function ck(e){const t=e[Xl];return t?t.type_:Array.isArray(e)?1:LT(e)?2:uk(e)?3:0}function Mj(e,t){return ck(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function nne(e,t,n){const r=ck(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function fLe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function LT(e){return e instanceof Map}function uk(e){return e instanceof Set}function Sy(e){return e.copy_||e.base_}function Aj(e,t){if(LT(e))return new Map(e);if(uk(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=tne(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Xl];let o=Reflect.ownKeys(r);for(let i=0;i<o.length;i++){const a=o[i],s=r[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(Ax(e),r)}else{const r=Ax(e);if(r!==null&&n)return{...e};const o=Object.create(r);return Object.assign(o,e)}}function RV(e,t=!1){return dk(e)||av(e)||!Rp(e)||(ck(e)>1&&Object.defineProperties(e,{set:{value:wM},add:{value:wM},clear:{value:wM},delete:{value:wM}}),Object.freeze(e),t&&Object.values(e).forEach(n=>RV(n,!0))),e}function wM(){Fu(2)}function dk(e){return Object.isFrozen(e)}var pLe={};function sv(e){const t=pLe[e];return t||Fu(0,e),t}var TE;function rne(){return TE}function hLe(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function l8(e,t){t&&(sv("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Dj(e){Rj(e),e.drafts_.forEach(mLe),e.drafts_=null}function Rj(e){e===TE&&(TE=e.parent_)}function c8(e){return TE=hLe(TE,e)}function mLe(e){const t=e[Xl];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function u8(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Xl].modified_&&(Dj(t),Fu(4)),Rp(e)&&(e=iD(t,e),t.parent_||aD(t,e)),t.patches_&&sv("Patches").generateReplacementPatches_(n[Xl].base_,e,t.patches_,t.inversePatches_)):e=iD(t,n,[]),Dj(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ene?e:void 0}function iD(e,t,n){if(dk(t))return t;const r=t[Xl];if(!r)return oD(t,(o,i)=>d8(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return aD(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,a=!1;r.type_===3&&(i=new Set(o),o.clear(),a=!0),oD(i,(s,l)=>d8(e,r,o,s,l,n,a)),aD(e,o,!1),n&&e.patches_&&sv("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function d8(e,t,n,r,o,i,a){if(av(o)){const s=i&&t&&t.type_!==3&&!Mj(t.assigned_,r)?i.concat(r):void 0,l=iD(e,o,s);if(nne(n,r,l),av(l))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(Rp(o)&&!dk(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;iD(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(LT(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&aD(e,o)}}function aD(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&RV(t,n)}function gLe(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:rne(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=kV;n&&(o=[r],i=PE);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var kV={get(e,t){if(t===Xl)return e;const n=Sy(e);if(!Mj(n,t))return yLe(e,n,t);const r=n[t];return e.finalized_||!Rp(r)?r:r===AL(e.base_,t)?(DL(e),e.copy_[t]=Nj(r,e)):r},has(e,t){return t in Sy(e)},ownKeys(e){return Reflect.ownKeys(Sy(e))},set(e,t,n){const r=one(Sy(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=AL(Sy(e),t),i=o?.[Xl];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(fLe(n,o)&&(n!==void 0||Mj(e.base_,t)))return!0;DL(e),kj(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return AL(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,DL(e),kj(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Sy(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Fu(11)},getPrototypeOf(e){return Ax(e.base_)},setPrototypeOf(){Fu(12)}},PE={};oD(kV,(e,t)=>{PE[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});PE.deleteProperty=function(e,t){return PE.set.call(this,e,t,void 0)};PE.set=function(e,t,n){return kV.set.call(this,e[0],t,n,e[0])};function AL(e,t){const n=e[Xl];return(n?Sy(n):e)[t]}function yLe(e,t,n){const r=one(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function one(e,t){if(!(t in e))return;let n=Ax(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ax(n)}}function kj(e){e.modified_||(e.modified_=!0,e.parent_&&kj(e.parent_))}function DL(e){e.copy_||(e.copy_=Aj(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var vLe=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(l=i,...c){return a.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&Fu(6),r!==void 0&&typeof r!="function"&&Fu(7);let o;if(Rp(t)){const i=c8(this),a=Nj(t,void 0);let s=!0;try{o=n(a),s=!1}finally{s?Dj(i):Rj(i)}return l8(i,r),u8(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===ene&&(o=void 0),this.autoFreeze_&&RV(o,!0),r){const i=[],a=[];sv("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else Fu(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,o;return[this.produce(t,n,(a,s)=>{r=a,o=s}),r,o]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Rp(e)||Fu(8),av(e)&&(e=mp(e));const t=c8(this),n=Nj(e,void 0);return n[Xl].isManual_=!0,Rj(t),n}finishDraft(e,t){const n=e&&e[Xl];(!n||!n.isManual_)&&Fu(9);const{scope_:r}=n;return l8(r,t),u8(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=sv("Patches").applyPatches_;return av(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Nj(e,t){const n=LT(e)?sv("MapSet").proxyMap_(e,t):uk(e)?sv("MapSet").proxySet_(e,t):gLe(e,t);return(t?t.scope_:rne()).drafts_.push(n),n}function mp(e){return av(e)||Fu(10,e),ine(e)}function ine(e){if(!Rp(e)||dk(e))return e;const t=e[Xl];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Aj(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Aj(e,!0);return oD(n,(r,o)=>{nne(n,r,ine(o))}),t&&(t.finalized_=!1),n}var bLe=new vLe,ane=bLe.produce;function sne(e){return({dispatch:n,getState:r})=>o=>i=>typeof i=="function"?i(n,r,e):o(i)}var xLe=sne(),wLe=sne,SLe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?EE:EE.apply(null,arguments)};function Jc(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(Hl(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Zte(r)&&r.type===e,n}var lne=class A1 extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,A1.prototype)}static get[Symbol.species](){return A1}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new A1(...t[0].concat(this)):new A1(...t.concat(this))}};function f8(e){return Rp(e)?ane(e,()=>{}):e}function SM(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function CLe(e){return typeof e=="boolean"}var ELe=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new lne;return n&&(CLe(n)?a.push(xLe):a.push(wLe(n.extraArgument))),a},TLe="RTK_autoBatch",p8=e=>t=>{setTimeout(t,e)},PLe=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:p8(10):e.type==="callback"?e.queueNotification:p8(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const f=()=>o&&u(),h=r.subscribe(f);return s.add(u),()=>{h(),s.delete(u)}},dispatch(u){try{return o=!u?.meta?.[TLe],i=!o,i&&(a||(a=!0,l(c))),r.dispatch(u)}finally{o=!0}}})},ILe=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new lne(e);return r&&o.push(PLe(typeof r=="object"?r:void 0)),o};function OLe(e){const t=ELe(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:i=void 0,enhancers:a=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(AV(n))s=Xte(n);else throw new Error(Hl(1));let l;typeof r=="function"?l=r(t):l=t();let c=EE;o&&(c=SLe({trace:!1,...typeof o=="object"&&o}));const u=Jte(...l),f=ILe(u);let h=typeof a=="function"?a(f):f();const g=c(...h);return DV(s,i,g)}function cne(e){const t={},n=[];let r;const o={addCase(i,a){const s=typeof i=="string"?i:i.type;if(!s)throw new Error(Hl(28));if(s in t)throw new Error(Hl(29));return t[s]=a,o},addAsyncThunk(i,a){return a.pending&&(t[i.pending.type]=a.pending),a.rejected&&(t[i.rejected.type]=a.rejected),a.fulfilled&&(t[i.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:i.settled,reducer:a.settled}),o},addMatcher(i,a){return n.push({matcher:i,reducer:a}),o},addDefaultCase(i){return r=i,o}};return e(o),[t,n,r]}function MLe(e){return typeof e=="function"}function ALe(e,t){let[n,r,o]=cne(t),i;if(MLe(e))i=()=>f8(e());else{const s=f8(e);i=()=>s}function a(s=i(),l){let c=[n[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[o]),c.reduce((u,f)=>{if(f)if(av(u)){const g=f(u,l);return g===void 0?u:g}else{if(Rp(u))return ane(u,h=>f(h,l));{const h=f(u,l);if(h===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return u},s)}return a.getInitialState=i,a}var DLe="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",RLe=(e=21)=>{let t="",n=e;for(;n--;)t+=DLe[Math.random()*64|0];return t},kLe=Symbol.for("rtk-slice-createasyncthunk");function NLe(e,t){return`${e}/${t}`}function _Le({creators:e}={}){const t=e?.asyncThunk?.[kLe];return function(r){const{name:o,reducerPath:i=o}=r;if(!o)throw new Error(Hl(11));const a=(typeof r.reducers=="function"?r.reducers($Le()):r.reducers)||{},s=Object.keys(a),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(I,M){const O=typeof I=="string"?I:I.type;if(!O)throw new Error(Hl(12));if(O in l.sliceCaseReducersByType)throw new Error(Hl(13));return l.sliceCaseReducersByType[O]=M,c},addMatcher(I,M){return l.sliceMatchers.push({matcher:I,reducer:M}),c},exposeAction(I,M){return l.actionCreators[I]=M,c},exposeCaseReducer(I,M){return l.sliceCaseReducersByName[I]=M,c}};s.forEach(I=>{const M=a[I],O={reducerName:I,type:NLe(o,I),createNotation:typeof r.reducers=="function"};jLe(M)?zLe(O,M,c,t):FLe(O,M,c)});function u(){const[I={},M=[],O=void 0]=typeof r.extraReducers=="function"?cne(r.extraReducers):[r.extraReducers],D={...I,...l.sliceCaseReducersByType};return ALe(r.initialState,N=>{for(let $ in D)N.addCase($,D[$]);for(let $ of l.sliceMatchers)N.addMatcher($.matcher,$.reducer);for(let $ of M)N.addMatcher($.matcher,$.reducer);O&&N.addDefaultCase(O)})}const f=I=>I,h=new Map,g=new WeakMap;let y;function x(I,M){return y||(y=u()),y(I,M)}function S(){return y||(y=u()),y.getInitialState()}function C(I,M=!1){function O(N){let $=N[I];return typeof $>"u"&&M&&($=SM(g,O,S)),$}function D(N=f){const $=SM(h,M,()=>new WeakMap);return SM($,N,()=>{const L={};for(const[A,F]of Object.entries(r.selectors??{}))L[A]=LLe(F,N,()=>SM(g,N,S),M);return L})}return{reducerPath:I,getSelectors:D,get selectors(){return D(O)},selectSlice:O}}const E={name:o,reducer:x,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:S,...C(i),injectInto(I,{reducerPath:M,...O}={}){const D=M??i;return I.inject({reducerPath:D,reducer:x},O),{...E,...C(D,!0)}}};return E}}function LLe(e,t,n,r){function o(i,...a){let s=t(i);return typeof s>"u"&&r&&(s=n()),e(s,...a)}return o.unwrapped=e,o}var tc=_Le();function $Le(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function FLe({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!BLe(r))throw new Error(Hl(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Jc(e,a):Jc(e))}function jLe(e){return e._reducerDefinitionType==="asyncThunk"}function BLe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function zLe({type:e,reducerName:t},n,r,o){if(!o)throw new Error(Hl(18));const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=n,f=o(e,i,u);r.exposeAction(t,f),a&&r.addCase(f.fulfilled,a),s&&r.addCase(f.pending,s),l&&r.addCase(f.rejected,l),c&&r.addMatcher(f.settled,c),r.exposeCaseReducer(t,{fulfilled:a||CM,pending:s||CM,rejected:l||CM,settled:c||CM})}function CM(){}var VLe="task",une="listener",dne="completed",NV="cancelled",HLe=`task-${NV}`,ULe=`task-${dne}`,_j=`${une}-${NV}`,GLe=`${une}-${dne}`,fk=class{constructor(e){this.code=e,this.message=`${VLe} ${NV} (reason: ${e})`}name="TaskAbortError";message},_V=(e,t)=>{if(typeof e!="function")throw new TypeError(Hl(32))},sD=()=>{},fne=(e,t=sD)=>(e.catch(t),e),pne=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),zy=(e,t)=>{const n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},Vy=e=>{if(e.aborted){const{reason:t}=e;throw new fk(t)}};function hne(e,t){let n=sD;return new Promise((r,o)=>{const i=()=>o(new fk(e.reason));if(e.aborted){i();return}n=pne(e,i),t.finally(()=>n()).then(r,o)}).finally(()=>{n=sD})}var WLe=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof fk?"cancelled":"rejected",error:n}}finally{t?.()}},lD=e=>t=>fne(hne(e,t).then(n=>(Vy(e),n))),mne=e=>{const t=lD(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:hx}=Object,h8={},pk="listenerMiddleware",qLe=(e,t)=>{const n=r=>pne(e,()=>zy(r,e.reason));return(r,o)=>{_V(r);const i=new AbortController;n(i);const a=WLe(async()=>{Vy(e),Vy(i.signal);const s=await r({pause:lD(i.signal),delay:mne(i.signal),signal:i.signal});return Vy(i.signal),s},()=>zy(i,ULe));return o?.autoJoin&&t.push(a.catch(sD)),{result:lD(e)(a),cancel(){zy(i,HLe)}}}},KLe=(e,t)=>{const n=async(r,o)=>{Vy(t);let i=()=>{};const s=[new Promise((l,c)=>{let u=e({predicate:r,effect:(f,h)=>{h.unsubscribe(),l([f,h.getState(),h.getOriginalState()])}});i=()=>{u(),c()}})];o!=null&&s.push(new Promise(l=>setTimeout(l,o,null)));try{const l=await hne(t,Promise.race(s));return Vy(t),l}finally{i()}};return(r,o)=>fne(n(r,o))},gne=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=Jc(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(Hl(21));return _V(i),{predicate:o,type:t,effect:i}},yne=hx(e=>{const{type:t,predicate:n,effect:r}=gne(e);return{id:RLe(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Hl(22))}}},{withTypes:()=>yne}),m8=(e,t)=>{const{type:n,effect:r,predicate:o}=gne(t);return Array.from(e.values()).find(i=>(typeof n=="string"?i.type===n:i.predicate===o)&&i.effect===r)},Lj=e=>{e.pending.forEach(t=>{zy(t,_j)})},YLe=e=>()=>{e.forEach(Lj),e.clear()},g8=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},vne=hx(Jc(`${pk}/add`),{withTypes:()=>vne}),QLe=Jc(`${pk}/removeAll`),bne=hx(Jc(`${pk}/remove`),{withTypes:()=>bne}),XLe=(...e)=>{console.error(`${pk}/error`,...e)},$T=(e={})=>{const t=new Map,{extra:n,onError:r=XLe}=e;_V(r);const o=u=>(u.unsubscribe=()=>t.delete(u.id),t.set(u.id,u),f=>{u.unsubscribe(),f?.cancelActive&&Lj(u)}),i=u=>{const f=m8(t,u)??yne(u);return o(f)};hx(i,{withTypes:()=>i});const a=u=>{const f=m8(t,u);return f&&(f.unsubscribe(),u.cancelActive&&Lj(f)),!!f};hx(a,{withTypes:()=>a});const s=async(u,f,h,g)=>{const y=new AbortController,x=KLe(i,y.signal),S=[];try{u.pending.add(y),await Promise.resolve(u.effect(f,hx({},h,{getOriginalState:g,condition:(C,E)=>x(C,E).then(Boolean),take:x,delay:mne(y.signal),pause:lD(y.signal),extra:n,signal:y.signal,fork:qLe(y.signal,S),unsubscribe:u.unsubscribe,subscribe:()=>{t.set(u.id,u)},cancelActiveListeners:()=>{u.pending.forEach((C,E,I)=>{C!==y&&(zy(C,_j),I.delete(C))})},cancel:()=>{zy(y,_j),u.pending.delete(y)},throwIfCancelled:()=>{Vy(y.signal)}})))}catch(C){C instanceof fk||g8(r,C,{raisedBy:"effect"})}finally{await Promise.all(S),zy(y,GLe),u.pending.delete(y)}},l=YLe(t);return{middleware:u=>f=>h=>{if(!Zte(h))return f(h);if(vne.match(h))return i(h.payload);if(QLe.match(h)){l();return}if(bne.match(h))return a(h.payload);let g=u.getState();const y=()=>{if(g===h8)throw new Error(Hl(23));return g};let x;try{if(x=f(h),t.size>0){const S=u.getState(),C=Array.from(t.values());for(const E of C){let I=!1;try{I=E.predicate(h,S,g)}catch(M){I=!1,g8(r,M,{raisedBy:"predicate"})}I&&s(E,h,u,y)}}}finally{g=h8}return x},startListening:i,stopListening:a,clearListeners:l}};function Hl(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var JLe={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},xne=tc({name:"chartLayout",initialState:JLe,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,o,i;e.margin.top=(n=t.payload.top)!==null&&n!==void 0?n:0,e.margin.right=(r=t.payload.right)!==null&&r!==void 0?r:0,e.margin.bottom=(o=t.payload.bottom)!==null&&o!==void 0?o:0,e.margin.left=(i=t.payload.left)!==null&&i!==void 0?i:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:ZLe,setLayout:e$e,setChartSize:t$e,setScale:n$e}=xne.actions,r$e=xne.reducer;function y8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function v8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y8(Object(n),!0).forEach(function(r){o$e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function o$e(e,t,n){return(t=i$e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i$e(e){var t=a$e(e,"string");return typeof t=="symbol"?t:t+""}function a$e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cD=Math.PI/180,s$e=e=>e*180/Math.PI,_i=(e,t,n,r)=>({x:e+Math.cos(-cD*r)*n,y:t+Math.sin(-cD*r)*n}),wne=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},l$e=(e,t)=>{var{x:n,y:r}=e,{x:o,y:i}=t;return Math.sqrt((n-o)**2+(r-i)**2)},c$e=(e,t)=>{var{x:n,y:r}=e,{cx:o,cy:i}=t,a=l$e({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a,angle:0};var s=(n-o)/a,l=Math.acos(s);return r>i&&(l=2*Math.PI-l),{radius:a,angle:s$e(l),angleInRadian:l}},u$e=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-i*360,endAngle:n-i*360}},d$e=(e,t)=>{var{startAngle:n,endAngle:r}=t,o=Math.floor(n/360),i=Math.floor(r/360),a=Math.min(o,i);return e+a*360},f$e=(e,t)=>{var{x:n,y:r}=e,{radius:o,angle:i}=c$e({x:n,y:r},t),{innerRadius:a,outerRadius:s}=t;if(o<a||o>s||o===0)return null;var{startAngle:l,endAngle:c}=u$e(t),u=i,f;if(l<=c){for(;u>c;)u-=360;for(;u<l;)u+=360;f=u>=l&&u<=c}else{for(;u>l;)u-=360;for(;u<c;)u+=360;f=u>=c&&u<=l}return f?v8(v8({},t),{},{radius:o,angle:d$e(u,t)}):null};function Sne(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function b8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Rc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b8(Object(n),!0).forEach(function(r){p$e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function p$e(e,t,n){return(t=h$e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h$e(e){var t=m$e(e,"string");return typeof t=="symbol"?t:t+""}function m$e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ar(e,t,n){return Gr(e)||Gr(t)?n:Xc(t)?iv(e,t,n):typeof t=="function"?t(e):n}var g$e=(e,t,n,r,o)=>{var i,a=-1,s=(i=t?.length)!==null&&i!==void 0?i:0;if(s<=1||e==null)return 0;if(r==="angleAxis"&&o!=null&&Math.abs(Math.abs(o[1]-o[0])-360)<=1e-6)for(var l=0;l<s;l++){var c=l>0?n[l-1].coordinate:n[s-1].coordinate,u=n[l].coordinate,f=l>=s-1?n[0].coordinate:n[l+1].coordinate,h=void 0;if(ua(u-c)!==ua(f-u)){var g=[];if(ua(f-u)===ua(o[1]-o[0])){h=f;var y=u+o[1]-o[0];g[0]=Math.min(y,(y+c)/2),g[1]=Math.max(y,(y+c)/2)}else{h=c;var x=f+o[1]-o[0];g[0]=Math.min(u,(x+u)/2),g[1]=Math.max(u,(x+u)/2)}var S=[Math.min(u,(h+u)/2),Math.max(u,(h+u)/2)];if(e>S[0]&&e<=S[1]||e>=g[0]&&e<=g[1]){({index:a}=n[l]);break}}else{var C=Math.min(c,f),E=Math.max(c,f);if(e>(C+u)/2&&e<=(E+u)/2){({index:a}=n[l]);break}}}else if(t){for(var I=0;I<s;I++)if(I===0&&e<=(t[I].coordinate+t[I+1].coordinate)/2||I>0&&I<s-1&&e>(t[I].coordinate+t[I-1].coordinate)/2&&e<=(t[I].coordinate+t[I+1].coordinate)/2||I===s-1&&e>(t[I].coordinate+t[I-1].coordinate)/2){({index:a}=t[I]);break}}return a},y$e=(e,t,n)=>{if(t&&n){var{width:r,height:o}=n,{align:i,verticalAlign:a,layout:s}=t;if((s==="vertical"||s==="horizontal"&&a==="middle")&&i!=="center"&&nn(e[i]))return Rc(Rc({},e),{},{[i]:e[i]+(r||0)});if((s==="horizontal"||s==="vertical"&&i==="center")&&a!=="middle"&&nn(e[a]))return Rc(Rc({},e),{},{[a]:e[a]+(o||0)})}return e},hf=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",Cne=(e,t,n,r)=>{if(r)return e.map(s=>s.coordinate);var o,i,a=e.map(s=>(s.coordinate===t&&(o=!0),s.coordinate===n&&(i=!0),s.coordinate));return o||a.push(t),i||a.push(n),a},Ene=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:o,range:i,scale:a,realScaleType:s,isCategorical:l,categoricalDomain:c,tickCount:u,ticks:f,niceTicks:h,axisType:g}=e;if(!a)return null;var y=s==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,x=o==="category"&&a.bandwidth?a.bandwidth()/y:0;if(x=g==="angleAxis"&&i&&i.length>=2?ua(i[0]-i[1])*2*x:x,f||h){var S=(f||h||[]).map((C,E)=>{var I=r?r.indexOf(C):C;return{coordinate:a(I)+x,value:C,offset:x,index:E}});return S.filter(C=>!hl(C.coordinate))}return l&&c?c.map((C,E)=>({coordinate:a(C)+x,value:C,index:E,offset:x})):a.ticks&&u!=null?a.ticks(u).map((C,E)=>({coordinate:a(C)+x,value:C,offset:x,index:E})):a.domain().map((C,E)=>({coordinate:a(C)+x,value:r?r[C]:C,index:E,offset:x}))},x8=1e-4,v$e=e=>{var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-x8,i=Math.max(r[0],r[1])+x8,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},b$e=(e,t)=>{if(!t||t.length!==2||!nn(t[0])||!nn(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!nn(e[0])||e[0]<n)&&(o[0]=n),(!nn(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o},x$e=e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var s=hl(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1])}},w$e=e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0;i<t;++i){var a=hl(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}},S$e={sign:x$e,expand:QNe,none:Mx,silhouette:XNe,wiggle:JNe,positive:w$e},C$e=(e,t,n)=>{var r=S$e[n],o=YNe().keys(t).value((i,a)=>+Ar(i,a,0)).order(Pj).offset(r);return o(e)};function Tne(e){return e==null?void 0:String(e)}function Dx(e){var{axis:t,ticks:n,bandSize:r,entry:o,index:i,dataKey:a}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Gr(o[t.dataKey])){var s=pte(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var l=Ar(o,Gr(a)?t.dataKey:a);return Gr(l)?null:t.scale(l)}var w8=e=>{var{axis:t,ticks:n,offset:r,bandSize:o,entry:i,index:a}=e;if(t.type==="category")return n[a]?n[a].coordinate+r:null;var s=Ar(i,t.dataKey,t.scale.domain()[a]);return Gr(s)?null:t.scale(s)-o/2+r},E$e=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]},T$e=e=>{var t=e.flat(2).filter(nn);return[Math.min(...t),Math.max(...t)]},P$e=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],I$e=(e,t,n)=>{if(e!=null)return P$e(Object.keys(e).reduce((r,o)=>{var i=e[o],{stackedData:a}=i,s=a.reduce((l,c)=>{var u=Sne(c,t,n),f=T$e(u);return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]))},S8=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,C8=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,lv=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=lk(t,u=>u.coordinate),i=1/0,a=1,s=o.length;a<s;a++){var l=o[a],c=o[a-1];i=Math.min((l.coordinate||0)-(c.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0};function E8(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:o,name:i}=e;return Rc(Rc({},t),{},{dataKey:n,payload:r,value:o,name:i})}function mf(e,t){if(e)return String(e);if(typeof t=="string")return t}function O$e(e,t,n,r,o){if(n==="horizontal"||n==="vertical"){var i=e>=o.left&&e<=o.left+o.width&&t>=o.top&&t<=o.top+o.height;return i?{x:e,y:t}:null}return r?f$e({x:e,y:t},r):null}var M$e=(e,t,n,r)=>{var o=t.find(c=>c&&c.index===n);if(o){if(e==="horizontal")return{x:o.coordinate,y:r.y};if(e==="vertical")return{x:r.x,y:o.coordinate};if(e==="centric"){var i=o.coordinate,{radius:a}=r;return Rc(Rc(Rc({},r),_i(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,{angle:l}=r;return Rc(Rc(Rc({},r),_i(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return{x:0,y:0}},A$e=(e,t)=>t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius,zp=e=>e.layout.width,Vp=e=>e.layout.height,D$e=e=>e.layout.scale,Pne=e=>e.layout.margin,hk=Ue(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),mk=Ue(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),LV="data-recharts-item-index",$V="data-recharts-item-data-key",FT=60;function T8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function EM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T8(Object(n),!0).forEach(function(r){R$e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function R$e(e,t,n){return(t=k$e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k$e(e){var t=N$e(e,"string");return typeof t=="symbol"?t:t+""}function N$e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _$e=e=>e.brush.height;function L$e(e){var t=mk(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var o=typeof r.width=="number"?r.width:FT;return n+o}return n},0)}function $$e(e){var t=mk(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var o=typeof r.width=="number"?r.width:FT;return n+o}return n},0)}function F$e(e){var t=hk(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function j$e(e){var t=hk(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var Ki=Ue([zp,Vp,Pne,_$e,L$e,$$e,F$e,j$e,Yte,oLe],(e,t,n,r,o,i,a,s,l,c)=>{var u={left:(n.left||0)+o,right:(n.right||0)+i},f={top:(n.top||0)+a,bottom:(n.bottom||0)+s},h=EM(EM({},f),u),g=h.bottom;h.bottom+=r,h=y$e(h,l,c);var y=e-h.left-h.right,x=t-h.top-h.bottom;return EM(EM({brushBottom:g},h),{},{width:Math.max(y,0),height:Math.max(x,0)})}),B$e=Ue(Ki,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),FV=Ue(zp,Vp,(e,t)=>({x:0,y:0,width:e,height:t})),z$e=m.createContext(null),Yi=()=>m.useContext(z$e)!=null,gk=e=>e.brush,yk=Ue([gk,Ki,Pne],(e,t,n)=>({height:e.height,x:nn(e.x)?e.x:t.left,y:nn(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:nn(e.width)?e.width:t.width})),vk=()=>{var e,t=Yi(),n=Zt(B$e),r=Zt(yk),o=(e=Zt(gk))===null||e===void 0?void 0:e.padding;return!t||!r||!o?n:{width:r.width-o.left-o.right,height:r.height-o.top-o.bottom,x:o.left,y:o.top}},V$e={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Ine=()=>{var e;return(e=Zt(Ki))!==null&&e!==void 0?e:V$e},jV=()=>Zt(zp),BV=()=>Zt(Vp),H$e=()=>Zt(e=>e.layout.margin),pr=e=>e.layout.layoutType,jT=()=>Zt(pr),U$e={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},One=tc({name:"legend",initialState:U$e,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload(e,t){e.payload.push(t.payload)},removeLegendPayload(e,t){var n=mp(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)}}}),{setLegendSize:P8,setLegendSettings:G$e,addLegendPayload:Mne,removeLegendPayload:Ane}=One.actions,W$e=One.reducer,q$e=["contextPayload"];function $j(){return $j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$j.apply(null,arguments)}function I8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Rx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I8(Object(n),!0).forEach(function(r){zV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zV(e,t,n){return(t=K$e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K$e(e){var t=Y$e(e,"string");return typeof t=="symbol"?t:t+""}function Y$e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Q$e(e,t){if(e==null)return{};var n,r,o=X$e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function X$e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function J$e(e){return e.value}function Z$e(e){var{contextPayload:t}=e,n=Q$e(e,q$e),r=Vte(t,e.payloadUniqBy,J$e),o=Rx(Rx({},n),{},{payload:r});return m.isValidElement(e.content)?m.cloneElement(e.content,o):typeof e.content=="function"?m.createElement(e.content,o):m.createElement(PV,o)}function eFe(e,t,n,r,o,i){var{layout:a,align:s,verticalAlign:l}=t,c,u;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(s==="center"&&a==="vertical"?c={left:((r||0)-i.width)/2}:c=s==="right"?{right:n&&n.right||0}:{left:n&&n.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(l==="middle"?u={top:((o||0)-i.height)/2}:u=l==="bottom"?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),Rx(Rx({},c),u)}function tFe(e){var t=Lo();return m.useEffect(()=>{t(G$e(e))},[t,e]),null}function nFe(e){var t=Lo();return m.useEffect(()=>(t(P8(e)),()=>{t(P8({width:0,height:0}))}),[t,e]),null}function rFe(e){var t=sLe(),n=bNe(),r=H$e(),{width:o,height:i,wrapperStyle:a,portal:s}=e,[l,c]=Qte([t]),u=jV(),f=BV();if(u==null||f==null)return null;var h=u-(r.left||0)-(r.right||0),g=Mv.getWidthOrHeight(e.layout,i,o,h),y=s?a:Rx(Rx({position:"absolute",width:g?.width||o||"auto",height:g?.height||i||"auto"},eFe(a,e,r,u,f,l)),a),x=s??n;if(x==null)return null;var S=m.createElement("div",{className:"recharts-legend-wrapper",style:y,ref:c},m.createElement(tFe,{layout:e.layout,align:e.align,verticalAlign:e.verticalAlign,itemSorter:e.itemSorter}),m.createElement(nFe,{width:l.width,height:l.height}),m.createElement(Z$e,$j({},e,g,{margin:r,chartWidth:u,chartHeight:f,contextPayload:t})));return Ev.createPortal(S,x)}class Mv extends m.PureComponent{static getWidthOrHeight(t,n,r,o){return t==="vertical"&&nn(n)?{height:n}:t==="horizontal"?{width:r||o}:null}render(){return m.createElement(rFe,this.props)}}zV(Mv,"displayName","Legend");zV(Mv,"defaultProps",{align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"});function Fj(){return Fj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fj.apply(null,arguments)}function O8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function RL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O8(Object(n),!0).forEach(function(r){oFe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oFe(e,t,n){return(t=iFe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iFe(e){var t=aFe(e,"string");return typeof t=="symbol"?t:t+""}function aFe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sFe(e){return Array.isArray(e)&&Xc(e[0])&&Xc(e[1])?e.join(" ~ "):e}var lFe=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:r={},labelStyle:o={},payload:i,formatter:a,itemSorter:s,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:f,accessibilityLayer:h=!1}=e,g=()=>{if(i&&i.length){var O={padding:0,margin:0},D=(s?lk(i,s):i).map((N,$)=>{if(N.type==="none")return null;var L=N.formatter||a||sFe,{value:A,name:F}=N,z=A,H=F;if(L){var Q=L(A,F,N,$,i);if(Array.isArray(Q))[z,H]=Q;else if(Q!=null)z=Q;else return null}var G=RL({display:"block",paddingTop:4,paddingBottom:4,color:N.color||"#000"},r);return m.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:G},Xc(H)?m.createElement("span",{className:"recharts-tooltip-item-name"},H):null,Xc(H)?m.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,m.createElement("span",{className:"recharts-tooltip-item-value"},z),m.createElement("span",{className:"recharts-tooltip-item-unit"},N.unit||""))});return m.createElement("ul",{className:"recharts-tooltip-item-list",style:O},D)}return null},y=RL({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),x=RL({margin:0},o),S=!Gr(u),C=S?u:"",E=ge("recharts-default-tooltip",l),I=ge("recharts-tooltip-label",c);S&&f&&i!==void 0&&i!==null&&(C=f(u,i));var M=h?{role:"status","aria-live":"assertive"}:{};return m.createElement("div",Fj({className:E,style:y},M),m.createElement("p",{className:I,style:x},m.isValidElement(C)?C:"".concat(C)),g())},XC="recharts-tooltip-wrapper",cFe={visibility:"hidden"};function uFe(e){var{coordinate:t,translateX:n,translateY:r}=e;return ge(XC,{["".concat(XC,"-right")]:nn(n)&&t&&nn(t.x)&&n>=t.x,["".concat(XC,"-left")]:nn(n)&&t&&nn(t.x)&&n<t.x,["".concat(XC,"-bottom")]:nn(r)&&t&&nn(t.y)&&r>=t.y,["".concat(XC,"-top")]:nn(r)&&t&&nn(t.y)&&r<t.y})}function M8(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offsetTopLeft:o,position:i,reverseDirection:a,tooltipDimension:s,viewBox:l,viewBoxDimension:c}=e;if(i&&nn(i[r]))return i[r];var u=n[r]-s-(o>0?o:0),f=n[r]+o;if(t[r])return a[r]?u:f;var h=l[r];if(h==null)return 0;if(a[r]){var g=u,y=h;return g<y?Math.max(f,h):Math.max(u,h)}if(c==null)return 0;var x=f+s,S=h+c;return x>S?Math.max(u,h):Math.max(f,h)}function dFe(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function fFe(e){var{allowEscapeViewBox:t,coordinate:n,offsetTopLeft:r,position:o,reverseDirection:i,tooltipBox:a,useTranslate3d:s,viewBox:l}=e,c,u,f;return a.height>0&&a.width>0&&n?(u=M8({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),f=M8({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),c=dFe({translateX:u,translateY:f,useTranslate3d:s})):c=cFe,{cssProperties:c,cssClasses:uFe({translateX:u,translateY:f,coordinate:n})}}function A8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function TM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A8(Object(n),!0).forEach(function(r){jj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jj(e,t,n){return(t=pFe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pFe(e){var t=hFe(e,"string");return typeof t=="symbol"?t:t+""}function hFe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class mFe extends m.PureComponent{constructor(){super(...arguments),jj(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),jj(this,"handleKeyDown",t=>{if(t.key==="Escape"){var n,r,o,i;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(n=(r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==null&&n!==void 0?n:0,y:(o=(i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==null&&o!==void 0?o:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,n;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((n=this.props.coordinate)===null||n===void 0?void 0:n.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:n,animationDuration:r,animationEasing:o,children:i,coordinate:a,hasPayload:s,isAnimationActive:l,offset:c,position:u,reverseDirection:f,useTranslate3d:h,viewBox:g,wrapperStyle:y,lastBoundingBox:x,innerRef:S,hasPortalFromProps:C}=this.props,{cssClasses:E,cssProperties:I}=fFe({allowEscapeViewBox:n,coordinate:a,offsetTopLeft:c,position:u,reverseDirection:f,tooltipBox:{height:x.height,width:x.width},useTranslate3d:h,viewBox:g}),M=C?{}:TM(TM({transition:l&&t?"transform ".concat(r,"ms ").concat(o):void 0},I),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),O=TM(TM({},M),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},y);return m.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:E,style:O,ref:S},i)}}var gFe=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),gf={devToolsEnabled:!1,isSsr:gFe()},Dne=()=>Zt(e=>e.rootProps.accessibilityLayer);function _a(e){return Number.isFinite(e)}function kx(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Bj(){return Bj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bj.apply(null,arguments)}function D8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function R8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D8(Object(n),!0).forEach(function(r){yFe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yFe(e,t,n){return(t=vFe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vFe(e){var t=bFe(e,"string");return typeof t=="symbol"?t:t+""}function bFe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var k8={curveBasisClosed:FNe,curveBasisOpen:jNe,curveBasis:$Ne,curveBumpX:CNe,curveBumpY:ENe,curveLinearClosed:BNe,curveLinear:ik,curveMonotoneX:zNe,curveMonotoneY:VNe,curveNatural:HNe,curveStep:UNe,curveStepAfter:WNe,curveStepBefore:GNe},PM=e=>_a(e.x)&&_a(e.y),JC=e=>e.x,ZC=e=>e.y,xFe=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(_T(e));return(n==="curveMonotone"||n==="curveBump")&&t?k8["".concat(n).concat(t==="vertical"?"Y":"X")]:k8[n]||ik},wFe=e=>{var{type:t="linear",points:n=[],baseLine:r,layout:o,connectNulls:i=!1}=e,a=xFe(t,o),s=i?n.filter(PM):n,l;if(Array.isArray(r)){var c=i?r.filter(f=>PM(f)):r,u=s.map((f,h)=>R8(R8({},f),{},{base:c[h]}));return o==="vertical"?l=vM().y(ZC).x1(JC).x0(f=>f.base.x):l=vM().x(JC).y1(ZC).y0(f=>f.base.y),l.defined(PM).curve(a),l(u)}return o==="vertical"&&nn(r)?l=vM().y(ZC).x1(JC).x0(r):nn(r)?l=vM().x(JC).y1(ZC).y0(r):l=Ste().x(JC).y(ZC),l.defined(PM).curve(a),l(s)},Hy=e=>{var{className:t,points:n,path:r,pathRef:o}=e;if((!n||!n.length)&&!r)return null;var i=n&&n.length?wFe(e):r;return m.createElement("path",Bj({},ml(e),xV(e),{className:ge("recharts-curve",t),d:i===null?void 0:i,ref:o}))},SFe=["x","y","top","left","width","height","className"];function zj(){return zj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zj.apply(null,arguments)}function N8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function CFe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N8(Object(n),!0).forEach(function(r){EFe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EFe(e,t,n){return(t=TFe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TFe(e){var t=PFe(e,"string");return typeof t=="symbol"?t:t+""}function PFe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IFe(e,t){if(e==null)return{};var n,r,o=OFe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function OFe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var MFe=(e,t,n,r,o,i)=>"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n),AFe=e=>{var{x:t=0,y:n=0,top:r=0,left:o=0,width:i=0,height:a=0,className:s}=e,l=IFe(e,SFe),c=CFe({x:t,y:n,top:r,left:o,width:i,height:a},l);return!nn(t)||!nn(n)||!nn(i)||!nn(a)||!nn(r)||!nn(o)?null:m.createElement("path",zj({},vo(c,!0),{className:ge("recharts-cross",s),d:MFe(t,n,i,a,r,o)}))};function DFe(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-o,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function _8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function RFe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_8(Object(n),!0).forEach(function(r){kFe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kFe(e,t,n){return(t=NFe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NFe(e){var t=_Fe(e,"string");return typeof t=="symbol"?t:t+""}function _Fe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wi(e,t){var n=RFe({},e),r=t,o=Object.keys(t),i=o.reduce((a,s)=>(a[s]===void 0&&r[s]!==void 0&&(a[s]=r[s]),a),n);return i}function LFe(){}function L8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L8(Object(n),!0).forEach(function(r){$Fe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $Fe(e,t,n){return(t=FFe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FFe(e){var t=jFe(e,"string");return typeof t=="symbol"?t:t+""}function jFe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var BFe=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),Rne=(e,t,n)=>e.map(r=>"".concat(BFe(r)," ").concat(t,"ms ").concat(n)).join(","),zFe=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(o=>r.includes(o))),IE=(e,t)=>Object.keys(t).reduce((n,r)=>$8($8({},n),{},{[r]:e(r,t[r])}),{});function F8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Oa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F8(Object(n),!0).forEach(function(r){VFe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VFe(e,t,n){return(t=HFe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HFe(e){var t=UFe(e,"string");return typeof t=="symbol"?t:t+""}function UFe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uD=(e,t,n)=>e+(t-e)*n,Vj=e=>{var{from:t,to:n}=e;return t!==n},kne=(e,t,n)=>{var r=IE((o,i)=>{if(Vj(i)){var[a,s]=e(i.from,i.to,i.velocity);return Oa(Oa({},i),{},{from:a,velocity:s})}return i},t);return n<1?IE((o,i)=>Vj(i)?Oa(Oa({},i),{},{velocity:uD(i.velocity,r[o].velocity,n),from:uD(i.from,r[o].from,n)}):i,t):kne(e,r,n-1)};function GFe(e,t,n,r,o,i){var a,s=r.reduce((h,g)=>Oa(Oa({},h),{},{[g]:{from:e[g],velocity:0,to:t[g]}}),{}),l=()=>IE((h,g)=>g.from,s),c=()=>!Object.values(s).filter(Vj).length,u=null,f=h=>{a||(a=h);var g=h-a,y=g/n.dt;s=kne(n,s,y),o(Oa(Oa(Oa({},e),t),l())),a=h,c()||(u=i.setTimeout(f))};return()=>(u=i.setTimeout(f),()=>{u()})}function WFe(e,t,n,r,o,i,a){var s=null,l=o.reduce((f,h)=>Oa(Oa({},f),{},{[h]:[e[h],t[h]]}),{}),c,u=f=>{c||(c=f);var h=(f-c)/r,g=IE((x,S)=>uD(...S,n(h)),l);if(i(Oa(Oa(Oa({},e),t),g)),h<1)s=a.setTimeout(u);else{var y=IE((x,S)=>uD(...S,n(1)),l);i(Oa(Oa(Oa({},e),t),y))}};return()=>(s=a.setTimeout(u),()=>{s()})}const qFe=(e,t,n,r,o,i)=>{var a=zFe(e,t);return n.isStepper===!0?GFe(e,t,n,a,o,i):WFe(e,t,n,r,a,o,i)};var dD=1e-4,Nne=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],_ne=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),j8=(e,t)=>n=>{var r=Nne(e,t);return _ne(r,n)},KFe=(e,t)=>n=>{var r=Nne(e,t),o=[...r.map((i,a)=>i*a).slice(1),0];return _ne(o,n)},B8=function(){for(var t,n,r,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];if(a.length===1)switch(a[0]){case"linear":[t,r,n,o]=[0,0,1,1];break;case"ease":[t,r,n,o]=[.25,.1,.25,1];break;case"ease-in":[t,r,n,o]=[.42,0,1,1];break;case"ease-out":[t,r,n,o]=[.42,0,.58,1];break;case"ease-in-out":[t,r,n,o]=[0,0,.58,1];break;default:{var l=a[0].split("(");l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4&&([t,r,n,o]=l[1].split(")")[0].split(",").map(y=>parseFloat(y)))}}else a.length===4&&([t,r,n,o]=a);var c=j8(t,n),u=j8(r,o),f=KFe(t,n),h=y=>y>1?1:y<0?0:y,g=y=>{for(var x=y>1?1:y,S=x,C=0;C<8;++C){var E=c(S)-x,I=f(S);if(Math.abs(E-x)<dD||I<dD)return u(S);S=h(S-E/I)}return u(S)};return g.isStepper=!1,g},YFe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:o=17}=t,i=(a,s,l)=>{var c=-(a-s)*n,u=l*r,f=l+(c-u)*o/1e3,h=l*o/1e3+a;return Math.abs(h-s)<dD&&Math.abs(f)<dD?[s,0]:[h,f]};return i.isStepper=!0,i.dt=o,i},QFe=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return B8(e);case"spring":return YFe();default:if(e.split("(")[0]==="cubic-bezier")return B8(e)}return typeof e=="function"?e:null};function XFe(e){var t,n=()=>null,r=!1,o=null,i=a=>{if(!r){if(Array.isArray(a)){if(!a.length)return;var s=a,[l,...c]=s;if(typeof l=="number"){o=e.setTimeout(i.bind(null,c),l);return}i(l),o=e.setTimeout(i.bind(null,c));return}typeof a=="string"&&(t=a,n(t)),typeof a=="object"&&(t=a,n(t)),typeof a=="function"&&a()}};return{stop:()=>{r=!0},start:a=>{r=!1,o&&(o(),o=null),i(a)},subscribe:a=>(n=a,()=>{n=()=>null}),getTimeoutController:()=>e}}class JFe{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),o=null,i=a=>{a-r>=n?t(a):typeof requestAnimationFrame=="function"&&(o=requestAnimationFrame(i))};return o=requestAnimationFrame(i),()=>{cancelAnimationFrame(o)}}}function ZFe(){return XFe(new JFe)}var eje=m.createContext(ZFe);function tje(e,t){var n=m.useContext(eje);return m.useMemo(()=>t??n(e),[e,t,n])}var nje={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},z8={t:0},kL={t:1};function Av(e){var t=wi(e,nje),{isActive:n,canBegin:r,duration:o,easing:i,begin:a,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=tje(t.animationId,t.animationManager),[f,h]=m.useState(n?z8:kL),g=m.useRef(null);return m.useEffect(()=>{n||h(kL)},[n]),m.useEffect(()=>{if(!n||!r)return LFe;var y=qFe(z8,kL,QFe(i),o,h,u.getTimeoutController()),x=()=>{g.current=y()};return u.start([l,a,x,o,s]),()=>{u.stop(),g.current&&g.current(),s()}},[n,r,o,i,a,l,s,u]),c(f.t)}function Dv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=m.useRef(CE(t)),r=m.useRef(e);return r.current!==e&&(n.current=CE(t),r.current=e),n.current}function V8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function H8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V8(Object(n),!0).forEach(function(r){rje(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rje(e,t,n){return(t=oje(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oje(e){var t=ije(e,"string");return typeof t=="symbol"?t:t+""}function ije(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fD(){return fD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fD.apply(null,arguments)}var U8=(e,t,n,r,o)=>{var i=Math.min(Math.abs(n)/2,Math.abs(r)/2),a=r>=0?1:-1,s=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0,c;if(i>0&&o instanceof Array){for(var u=[0,0,0,0],f=0,h=4;f<h;f++)u[f]=o[f]>i?i:o[f];c="M".concat(e,",").concat(t+a*u[0]),u[0]>0&&(c+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(l,",").concat(e+s*u[0],",").concat(t)),c+="L ".concat(e+n-s*u[1],",").concat(t),u[1]>0&&(c+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(l,`,
- `).concat(e+n,",").concat(t+a*u[1])),c+="L ".concat(e+n,",").concat(t+r-a*u[2]),u[2]>0&&(c+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(l,`,
- `).concat(e+n-s*u[2],",").concat(t+r)),c+="L ".concat(e+s*u[3],",").concat(t+r),u[3]>0&&(c+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(l,`,
- `).concat(e,",").concat(t+r-a*u[3])),c+="Z"}else if(i>0&&o===+o&&o>0){var g=Math.min(i,o);c="M ".concat(e,",").concat(t+a*g,`
- A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(e+s*g,",").concat(t,`
- L `).concat(e+n-s*g,",").concat(t,`
- A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(e+n,",").concat(t+a*g,`
- L `).concat(e+n,",").concat(t+r-a*g,`
- A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(e+n-s*g,",").concat(t+r,`
- L `).concat(e+s*g,",").concat(t+r,`
- A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(e,",").concat(t+r-a*g," Z")}else c="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return c},aje={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Lne=e=>{var t=wi(e,aje),n=m.useRef(null),[r,o]=m.useState(-1);m.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var Q=n.current.getTotalLength();Q&&o(Q)}catch{}},[]);var{x:i,y:a,width:s,height:l,radius:c,className:u}=t,{animationEasing:f,animationDuration:h,animationBegin:g,isAnimationActive:y,isUpdateAnimationActive:x}=t,S=m.useRef(s),C=m.useRef(l),E=m.useRef(i),I=m.useRef(a),M=m.useMemo(()=>({x:i,y:a,width:s,height:l,radius:c}),[i,a,s,l,c]),O=Dv(M,"rectangle-");if(i!==+i||a!==+a||s!==+s||l!==+l||s===0||l===0)return null;var D=ge("recharts-rectangle",u);if(!x)return m.createElement("path",fD({},vo(t,!0),{className:D,d:U8(i,a,s,l,c)}));var N=S.current,$=C.current,L=E.current,A=I.current,F="0px ".concat(r===-1?1:r,"px"),z="".concat(r,"px 0px"),H=Rne(["strokeDasharray"],h,typeof f=="string"?f:void 0);return m.createElement(Av,{animationId:O,key:O,canBegin:r>0,duration:h,easing:f,isActive:x,begin:g},Q=>{var G=ao(N,s,Q),V=ao($,l,Q),Y=ao(L,i,Q),X=ao(A,a,Q);n.current&&(S.current=G,C.current=V,E.current=Y,I.current=X);var te;return y?Q>0?te={transition:H,strokeDasharray:z}:te={strokeDasharray:F}:te={strokeDasharray:z},m.createElement("path",fD({},vo(t,!0),{className:D,d:U8(Y,X,G,V,c),ref:n,style:H8(H8({},te),t.style)}))})};function $ne(e){var{cx:t,cy:n,radius:r,startAngle:o,endAngle:i}=e,a=_i(t,n,r,o),s=_i(t,n,r,i);return{points:[a,s],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}function Hj(){return Hj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hj.apply(null,arguments)}var sje=(e,t)=>{var n=ua(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},IM=e=>{var{cx:t,cy:n,radius:r,angle:o,sign:i,isExternal:a,cornerRadius:s,cornerIsExternal:l}=e,c=s*(a?1:-1)+r,u=Math.asin(s/c)/cD,f=l?o:o+i*u,h=_i(t,n,c,f),g=_i(t,n,r,f),y=l?o-i*u:o,x=_i(t,n,c*Math.cos(u*cD),y);return{center:h,circleTangency:g,lineTangency:x,theta:u}},Fne=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:i,endAngle:a}=e,s=sje(i,a),l=i+s,c=_i(t,n,o,i),u=_i(t,n,o,l),f="M ".concat(c.x,",").concat(c.y,`
- A `).concat(o,",").concat(o,`,0,
- `).concat(+(Math.abs(s)>180),",").concat(+(i>l),`,
- `).concat(u.x,",").concat(u.y,`
- `);if(r>0){var h=_i(t,n,r,i),g=_i(t,n,r,l);f+="L ".concat(g.x,",").concat(g.y,`
- A `).concat(r,",").concat(r,`,0,
- `).concat(+(Math.abs(s)>180),",").concat(+(i<=l),`,
- `).concat(h.x,",").concat(h.y," Z")}else f+="L ".concat(t,",").concat(n," Z");return f},lje=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:i,forceCornerRadius:a,cornerIsExternal:s,startAngle:l,endAngle:c}=e,u=ua(c-l),{circleTangency:f,lineTangency:h,theta:g}=IM({cx:t,cy:n,radius:o,angle:l,sign:u,cornerRadius:i,cornerIsExternal:s}),{circleTangency:y,lineTangency:x,theta:S}=IM({cx:t,cy:n,radius:o,angle:c,sign:-u,cornerRadius:i,cornerIsExternal:s}),C=s?Math.abs(l-c):Math.abs(l-c)-g-S;if(C<0)return a?"M ".concat(h.x,",").concat(h.y,`
- a`).concat(i,",").concat(i,",0,0,1,").concat(i*2,`,0
- a`).concat(i,",").concat(i,",0,0,1,").concat(-i*2,`,0
- `):Fne({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:l,endAngle:c});var E="M ".concat(h.x,",").concat(h.y,`
- A`).concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(f.x,",").concat(f.y,`
- A`).concat(o,",").concat(o,",0,").concat(+(C>180),",").concat(+(u<0),",").concat(y.x,",").concat(y.y,`
- A`).concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(x.x,",").concat(x.y,`
- `);if(r>0){var{circleTangency:I,lineTangency:M,theta:O}=IM({cx:t,cy:n,radius:r,angle:l,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),{circleTangency:D,lineTangency:N,theta:$}=IM({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),L=s?Math.abs(l-c):Math.abs(l-c)-O-$;if(L<0&&i===0)return"".concat(E,"L").concat(t,",").concat(n,"Z");E+="L".concat(N.x,",").concat(N.y,`
- A`).concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(D.x,",").concat(D.y,`
- A`).concat(r,",").concat(r,",0,").concat(+(L>180),",").concat(+(u>0),",").concat(I.x,",").concat(I.y,`
- A`).concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(M.x,",").concat(M.y,"Z")}else E+="L".concat(t,",").concat(n,"Z");return E},cje={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},jne=e=>{var t=wi(e,cje),{cx:n,cy:r,innerRadius:o,outerRadius:i,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u,className:f}=t;if(i<o||c===u)return null;var h=ge("recharts-sector",f),g=i-o,y=ls(a,g,0,!0),x;return y>0&&Math.abs(c-u)<360?x=lje({cx:n,cy:r,innerRadius:o,outerRadius:i,cornerRadius:Math.min(y,g/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):x=Fne({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u}),m.createElement("path",Hj({},vo(t,!0),{className:h,d:x}))};function uje(e,t,n){var r,o,i,a;if(e==="horizontal")r=t.x,i=r,o=n.top,a=n.top+n.height;else if(e==="vertical")o=t.y,a=o,r=n.left,i=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var{cx:s,cy:l,innerRadius:c,outerRadius:u,angle:f}=t,h=_i(s,l,c,f),g=_i(s,l,u,f);r=h.x,o=h.y,i=g.x,a=g.y}else return $ne(t);return[{x:r,y:o},{x:i,y:a}]}var NL={},_L={},LL={},G8;function dje(){return G8||(G8=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qte();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n}(LL)),LL}var W8;function fje(){return W8||(W8=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dje();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n}(_L)),_L}var q8;function pje(){return q8||(q8=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Kte(),n=fje();function r(o,i,a){a&&typeof a!="number"&&t.isIterateeCall(o,i,a)&&(i=a=void 0),o=n.toFinite(o),i===void 0?(i=o,o=0):i=n.toFinite(i),a=a===void 0?o<i?1:-1:n.toFinite(a);const s=Math.max(Math.ceil((i-o)/(a||1)),0),l=new Array(s);for(let c=0;c<s;c++)l[c]=o,o+=a;return l}e.range=r}(NL)),NL}var $L,K8;function hje(){return K8||(K8=1,$L=pje().range),$L}var mje=hje();const Bne=cs(mje);function gm(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function gje(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function VV(e){let t,n,r;e.length!==2?(t=gm,n=(s,l)=>gm(e(s),l),r=(s,l)=>e(s)-l):(t=e===gm||e===gje?e:yje,n=e,r=e);function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;n(s[f],l)<0?c=f+1:u=f}while(c<u)}return c}function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;n(s[f],l)<=0?c=f+1:u=f}while(c<u)}return c}function a(s,l,c=0,u=s.length){const f=o(s,l,c,u-1);return f>c&&r(s[f-1],l)>-r(s[f],l)?f-1:f}return{left:o,center:a,right:i}}function yje(){return 0}function zne(e){return e===null?NaN:+e}function*vje(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const bje=VV(gm),BT=bje.right;VV(zne).center;class Y8 extends Map{constructor(t,n=Sje){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(Q8(this,t))}has(t){return super.has(Q8(this,t))}set(t,n){return super.set(xje(this,t),n)}delete(t){return super.delete(wje(this,t))}}function Q8({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function xje({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function wje({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Sje(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Cje(e=gm){if(e===gm)return Vne;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Vne(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Eje=Math.sqrt(50),Tje=Math.sqrt(10),Pje=Math.sqrt(2);function pD(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=Eje?10:i>=Tje?5:i>=Pje?2:1;let s,l,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?pD(e,t,n*2):[s,l,c]}function Uj(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,i,a]=r?pD(t,e,n):pD(e,t,n);if(!(i>=o))return[];const s=i-o+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(i-c)/-a;else for(let c=0;c<s;++c)l[c]=(i-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(o+c)/-a;else for(let c=0;c<s;++c)l[c]=(o+c)*a;return l}function Gj(e,t,n){return t=+t,e=+e,n=+n,pD(e,t,n)[2]}function Wj(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?Gj(t,e,n):Gj(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function X8(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function J8(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function Hne(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=o===void 0?Vne:Cje(o);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),f=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*f*(l-f)/l)*(c-l/2<0?-1:1),g=Math.max(n,Math.floor(t-c*f/l+h)),y=Math.min(r,Math.floor(t+(l-c)*f/l+h));Hne(e,t,g,y,o)}const i=e[t];let a=n,s=r;for(e1(e,n,t),o(e[r],i)>0&&e1(e,n,r);a<s;){for(e1(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}o(e[n],i)===0?e1(e,n,s):(++s,e1(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function e1(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Ije(e,t,n){if(e=Float64Array.from(vje(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return J8(e);if(t>=1)return X8(e);var r,o=(r-1)*t,i=Math.floor(o),a=X8(Hne(e,i).subarray(0,i+1)),s=J8(e.subarray(i+1));return a+(s-a)*(o-i)}}function Oje(e,t,n=zne){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return a+(s-a)*(o-i)}}function Mje(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(o);++r<o;)i[r]=e+r*n;return i}function au(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Hp(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const qj=Symbol("implicit");function HV(){var e=new Y8,t=[],n=[],r=qj;function o(i){let a=e.get(i);if(a===void 0){if(r!==qj)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return o.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new Y8;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(i){return arguments.length?(n=Array.from(i),o):n.slice()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return HV(t,n).unknown(r)},au.apply(o,arguments),o}function UV(){var e=HV().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,i,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function f(){var h=t().length,g=o<r,y=g?o:r,x=g?r:o;i=(x-y)/Math.max(1,h-l+c*2),s&&(i=Math.floor(i)),y+=(x-y-i*(h-l))*u,a=i*(1-l),s&&(y=Math.round(y),a=Math.round(a));var S=Mje(h).map(function(C){return y+i*C});return n(g?S.reverse():S)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([r,o]=h,r=+r,o=+o,f()):[r,o]},e.rangeRound=function(h){return[r,o]=h,r=+r,o=+o,s=!0,f()},e.bandwidth=function(){return a},e.step=function(){return i},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(l=Math.min(1,c=+h),f()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),f()):l},e.paddingOuter=function(h){return arguments.length?(c=+h,f()):c},e.align=function(h){return arguments.length?(u=Math.max(0,Math.min(1,h)),f()):u},e.copy=function(){return UV(t(),[r,o]).round(s).paddingInner(l).paddingOuter(c).align(u)},au.apply(f(),arguments)}function Une(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Une(t())},e}function Aje(){return Une(UV.apply(null,arguments).paddingInner(1))}function GV(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Gne(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function zT(){}var OE=.7,hD=1/OE,mx="\\s*([+-]?\\d+)\\s*",ME="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Dje=/^#([0-9a-f]{3,8})$/,Rje=new RegExp(`^rgb\\(${mx},${mx},${mx}\\)$`),kje=new RegExp(`^rgb\\(${Jd},${Jd},${Jd}\\)$`),Nje=new RegExp(`^rgba\\(${mx},${mx},${mx},${ME}\\)$`),_je=new RegExp(`^rgba\\(${Jd},${Jd},${Jd},${ME}\\)$`),Lje=new RegExp(`^hsl\\(${ME},${Jd},${Jd}\\)$`),$je=new RegExp(`^hsla\\(${ME},${Jd},${Jd},${ME}\\)$`),Z8={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};GV(zT,AE,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:eq,formatHex:eq,formatHex8:Fje,formatHsl:jje,formatRgb:tq,toString:tq});function eq(){return this.rgb().formatHex()}function Fje(){return this.rgb().formatHex8()}function jje(){return Wne(this).formatHsl()}function tq(){return this.rgb().formatRgb()}function AE(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Dje.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?nq(t):n===3?new sl(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?OM(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?OM(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Rje.exec(e))?new sl(t[1],t[2],t[3],1):(t=kje.exec(e))?new sl(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Nje.exec(e))?OM(t[1],t[2],t[3],t[4]):(t=_je.exec(e))?OM(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Lje.exec(e))?iq(t[1],t[2]/100,t[3]/100,1):(t=$je.exec(e))?iq(t[1],t[2]/100,t[3]/100,t[4]):Z8.hasOwnProperty(e)?nq(Z8[e]):e==="transparent"?new sl(NaN,NaN,NaN,0):null}function nq(e){return new sl(e>>16&255,e>>8&255,e&255,1)}function OM(e,t,n,r){return r<=0&&(e=t=n=NaN),new sl(e,t,n,r)}function Bje(e){return e instanceof zT||(e=AE(e)),e?(e=e.rgb(),new sl(e.r,e.g,e.b,e.opacity)):new sl}function Kj(e,t,n,r){return arguments.length===1?Bje(e):new sl(e,t,n,r??1)}function sl(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}GV(sl,Kj,Gne(zT,{brighter(e){return e=e==null?hD:Math.pow(hD,e),new sl(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?OE:Math.pow(OE,e),new sl(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new sl(Uy(this.r),Uy(this.g),Uy(this.b),mD(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rq,formatHex:rq,formatHex8:zje,formatRgb:oq,toString:oq}));function rq(){return`#${ky(this.r)}${ky(this.g)}${ky(this.b)}`}function zje(){return`#${ky(this.r)}${ky(this.g)}${ky(this.b)}${ky((isNaN(this.opacity)?1:this.opacity)*255)}`}function oq(){const e=mD(this.opacity);return`${e===1?"rgb(":"rgba("}${Uy(this.r)}, ${Uy(this.g)}, ${Uy(this.b)}${e===1?")":`, ${e})`}`}function mD(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Uy(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ky(e){return e=Uy(e),(e<16?"0":"")+e.toString(16)}function iq(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ju(e,t,n,r)}function Wne(e){if(e instanceof ju)return new ju(e.h,e.s,e.l,e.opacity);if(e instanceof zT||(e=AE(e)),!e)return new ju;if(e instanceof ju)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n<r)*6:n===i?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new ju(a,s,l,e.opacity)}function Vje(e,t,n,r){return arguments.length===1?Wne(e):new ju(e,t,n,r??1)}function ju(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}GV(ju,Vje,Gne(zT,{brighter(e){return e=e==null?hD:Math.pow(hD,e),new ju(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?OE:Math.pow(OE,e),new ju(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new sl(FL(e>=240?e-240:e+120,o,r),FL(e,o,r),FL(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ju(aq(this.h),MM(this.s),MM(this.l),mD(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=mD(this.opacity);return`${e===1?"hsl(":"hsla("}${aq(this.h)}, ${MM(this.s)*100}%, ${MM(this.l)*100}%${e===1?")":`, ${e})`}`}}));function aq(e){return e=(e||0)%360,e<0?e+360:e}function MM(e){return Math.max(0,Math.min(1,e||0))}function FL(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const WV=e=>()=>e;function Hje(e,t){return function(n){return e+n*t}}function Uje(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Gje(e){return(e=+e)==1?qne:function(t,n){return n-t?Uje(t,n,e):WV(isNaN(t)?n:t)}}function qne(e,t){var n=t-e;return n?Hje(e,n):WV(isNaN(e)?t:e)}const sq=function e(t){var n=Gje(t);function r(o,i){var a=n((o=Kj(o)).r,(i=Kj(i)).r),s=n(o.g,i.g),l=n(o.b,i.b),c=qne(o.opacity,i.opacity);return function(u){return o.r=a(u),o.g=s(u),o.b=l(u),o.opacity=c(u),o+""}}return r.gamma=e,r}(1);function Wje(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;o<n;++o)r[o]=e[o]*(1-i)+t[o]*i;return r}}function qje(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Kje(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),i=new Array(n),a;for(a=0;a<r;++a)o[a]=xw(e[a],t[a]);for(;a<n;++a)i[a]=t[a];return function(s){for(a=0;a<r;++a)i[a]=o[a](s);return i}}function Yje(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function gD(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Qje(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=xw(e[o],t[o]):r[o]=t[o];return function(i){for(o in n)r[o]=n[o](i);return r}}var Yj=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jL=new RegExp(Yj.source,"g");function Xje(e){return function(){return e}}function Jje(e){return function(t){return e(t)+""}}function Zje(e,t){var n=Yj.lastIndex=jL.lastIndex=0,r,o,i,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Yj.exec(e))&&(o=jL.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:gD(r,o)})),n=jL.lastIndex;return n<t.length&&(i=t.slice(n),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?Jje(l[0].x):Xje(t):(t=l.length,function(c){for(var u=0,f;u<t;++u)s[(f=l[u]).i]=f.x(c);return s.join("")})}function xw(e,t){var n=typeof t,r;return t==null||n==="boolean"?WV(t):(n==="number"?gD:n==="string"?(r=AE(t))?(t=r,sq):Zje:t instanceof AE?sq:t instanceof Date?Yje:qje(t)?Wje:Array.isArray(t)?Kje:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Qje:gD)(e,t)}function qV(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function eBe(e,t){t===void 0&&(t=e,e=xw);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return i[s](a-s)}}function tBe(e){return function(){return e}}function yD(e){return+e}var lq=[0,1];function ks(e){return e}function Qj(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:tBe(isNaN(t)?NaN:.5)}function nBe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function rBe(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=Qj(o,r),i=n(a,i)):(r=Qj(r,o),i=n(i,a)),function(s){return i(r(s))}}function oBe(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=Qj(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(s){var l=BT(e,s,1,r)-1;return i[l](o[l](s))}}function VT(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function bk(){var e=lq,t=lq,n=xw,r,o,i,a=ks,s,l,c;function u(){var h=Math.min(e.length,t.length);return a!==ks&&(a=nBe(e[0],e[h-1])),s=h>2?oBe:rBe,l=c=null,f}function f(h){return h==null||isNaN(h=+h)?i:(l||(l=s(e.map(r),t,n)))(r(a(h)))}return f.invert=function(h){return a(o((c||(c=s(t,e.map(r),gD)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,yD),u()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),u()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),n=qV,u()},f.clamp=function(h){return arguments.length?(a=h?!0:ks,u()):a!==ks},f.interpolate=function(h){return arguments.length?(n=h,u()):n},f.unknown=function(h){return arguments.length?(i=h,f):i},function(h,g){return r=h,o=g,u()}}function KV(){return bk()(ks,ks)}function iBe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function vD(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Nx(e){return e=vD(Math.abs(e)),e?e[1]:NaN}function aBe(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function sBe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var lBe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function DE(e){if(!(t=lBe.exec(e)))throw new Error("invalid format: "+e);var t;return new YV({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}DE.prototype=YV.prototype;function YV(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}YV.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function cBe(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var Kne;function uBe(e,t){var n=vD(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Kne=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+vD(e,Math.max(0,t+i-1))[0]}function cq(e,t){var n=vD(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const uq={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:iBe,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>cq(e*100,t),r:cq,s:uBe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function dq(e){return e}var fq=Array.prototype.map,pq=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function dBe(e){var t=e.grouping===void 0||e.thousands===void 0?dq:aBe(fq.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?dq:sBe(fq.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(f){f=DE(f);var h=f.fill,g=f.align,y=f.sign,x=f.symbol,S=f.zero,C=f.width,E=f.comma,I=f.precision,M=f.trim,O=f.type;O==="n"?(E=!0,O="g"):uq[O]||(I===void 0&&(I=12),M=!0,O="g"),(S||h==="0"&&g==="=")&&(S=!0,h="0",g="=");var D=x==="$"?n:x==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",N=x==="$"?r:/[%p]/.test(O)?a:"",$=uq[O],L=/[defgprs%]/.test(O);I=I===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,I)):Math.max(0,Math.min(20,I));function A(F){var z=D,H=N,Q,G,V;if(O==="c")H=$(F)+H,F="";else{F=+F;var Y=F<0||1/F<0;if(F=isNaN(F)?l:$(Math.abs(F),I),M&&(F=cBe(F)),Y&&+F==0&&y!=="+"&&(Y=!1),z=(Y?y==="("?y:s:y==="-"||y==="("?"":y)+z,H=(O==="s"?pq[8+Kne/3]:"")+H+(Y&&y==="("?")":""),L){for(Q=-1,G=F.length;++Q<G;)if(V=F.charCodeAt(Q),48>V||V>57){H=(V===46?o+F.slice(Q+1):F.slice(Q))+H,F=F.slice(0,Q);break}}}E&&!S&&(F=t(F,1/0));var X=z.length+F.length+H.length,te=X<C?new Array(C-X+1).join(h):"";switch(E&&S&&(F=t(te+F,te.length?C-H.length:1/0),te=""),g){case"<":F=z+F+H+te;break;case"=":F=z+te+F+H;break;case"^":F=te.slice(0,X=te.length>>1)+z+F+H+te.slice(X);break;default:F=te+z+F+H;break}return i(F)}return A.toString=function(){return f+""},A}function u(f,h){var g=c((f=DE(f),f.type="f",f)),y=Math.max(-8,Math.min(8,Math.floor(Nx(h)/3)))*3,x=Math.pow(10,-y),S=pq[8+y/3];return function(C){return g(x*C)+S}}return{format:c,formatPrefix:u}}var AM,QV,Yne;fBe({thousands:",",grouping:[3],currency:["$",""]});function fBe(e){return AM=dBe(e),QV=AM.format,Yne=AM.formatPrefix,AM}function pBe(e){return Math.max(0,-Nx(Math.abs(e)))}function hBe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Nx(t)/3)))*3-Nx(Math.abs(e)))}function mBe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Nx(t)-Nx(e))+1}function Qne(e,t,n,r){var o=Wj(e,t,n),i;switch(r=DE(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=hBe(o,a))&&(r.precision=i),Yne(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=mBe(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=pBe(o))&&(r.precision=i-(r.type==="%")*2);break}}return QV(r)}function Bm(e){var t=e.domain;return e.ticks=function(n){var r=t();return Uj(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return Qne(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,a=r[o],s=r[i],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=o,o=i,i=c);u-- >0;){if(c=Gj(a,s,n),c===l)return r[o]=a,r[i]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function Xne(){var e=KV();return e.copy=function(){return VT(e,Xne())},au.apply(e,arguments),Bm(e)}function Jne(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,yD),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Jne(e).unknown(t)},e=arguments.length?Array.from(e,yD):[0,1],Bm(n)}function Zne(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return i<o&&(a=n,n=r,r=a,a=o,o=i,i=a),e[n]=t.floor(o),e[r]=t.ceil(i),e}function hq(e){return Math.log(e)}function mq(e){return Math.exp(e)}function gBe(e){return-Math.log(-e)}function yBe(e){return-Math.exp(-e)}function vBe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function bBe(e){return e===10?vBe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function xBe(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function gq(e){return(t,n)=>-e(-t,n)}function XV(e){const t=e(hq,mq),n=t.domain;let r=10,o,i;function a(){return o=xBe(r),i=bBe(r),n()[0]<0?(o=gq(o),i=gq(i),e(gBe,yBe)):e(hq,mq),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const f=u<c;f&&([c,u]=[u,c]);let h=o(c),g=o(u),y,x;const S=s==null?10:+s;let C=[];if(!(r%1)&&g-h<S){if(h=Math.floor(h),g=Math.ceil(g),c>0){for(;h<=g;++h)for(y=1;y<r;++y)if(x=h<0?y/i(-h):y*i(h),!(x<c)){if(x>u)break;C.push(x)}}else for(;h<=g;++h)for(y=r-1;y>=1;--y)if(x=h>0?y/i(-h):y*i(h),!(x<c)){if(x>u)break;C.push(x)}C.length*2<S&&(C=Uj(c,u,S))}else C=Uj(h,g,Math.min(g-h,S)).map(i);return f?C.reverse():C},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=DE(l)).precision==null&&(l.trim=!0),l=QV(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let f=u/i(Math.round(o(u)));return f*r<r-.5&&(f*=r),f<=c?l(u):""}},t.nice=()=>n(Zne(n(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function ere(){const e=XV(bk()).domain([1,10]);return e.copy=()=>VT(e,ere()).base(e.base()),au.apply(e,arguments),e}function yq(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function vq(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function JV(e){var t=1,n=e(yq(t),vq(t));return n.constant=function(r){return arguments.length?e(yq(t=+r),vq(t)):t},Bm(n)}function tre(){var e=JV(bk());return e.copy=function(){return VT(e,tre()).constant(e.constant())},au.apply(e,arguments)}function bq(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function wBe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function SBe(e){return e<0?-e*e:e*e}function ZV(e){var t=e(ks,ks),n=1;function r(){return n===1?e(ks,ks):n===.5?e(wBe,SBe):e(bq(n),bq(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},Bm(t)}function eH(){var e=ZV(bk());return e.copy=function(){return VT(e,eH()).exponent(e.exponent())},au.apply(e,arguments),e}function CBe(){return eH.apply(null,arguments).exponent(.5)}function xq(e){return Math.sign(e)*e*e}function EBe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function nre(){var e=KV(),t=[0,1],n=!1,r;function o(i){var a=EBe(e(i));return isNaN(a)?r:n?Math.round(a):a}return o.invert=function(i){return e.invert(xq(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,yD)).map(xq)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(n=!!i,o):n},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return nre(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},au.apply(o,arguments),Bm(o)}function rre(){var e=[],t=[],n=[],r;function o(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=Oje(e,a/s);return i}function i(a){return a==null||isNaN(a=+a)?r:t[BT(n,a)]}return i.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},i.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(gm),o()},i.range=function(a){return arguments.length?(t=Array.from(a),o()):t.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return rre().domain(e).range(t).unknown(r)},au.apply(i,arguments)}function ore(){var e=0,t=1,n=1,r=[.5],o=[0,1],i;function a(l){return l!=null&&l<=l?o[BT(r,l,0,n)]:i}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(o=Array.from(l)).length-1,s()):o.slice()},a.invertExtent=function(l){var c=o.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(i=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return ore().domain([e,t]).range(o).unknown(i)},au.apply(Bm(a),arguments)}function ire(){var e=[.5],t=[0,1],n,r=1;function o(i){return i!=null&&i<=i?t[BT(e,i,0,r)]:n}return o.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return ire().domain(e).range(t).unknown(n)},au.apply(o,arguments)}const BL=new Date,zL=new Date;function Qi(e,t,n,r){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),s=o.ceil(i);return i-a<s-i?a:s},o.offset=(i,a)=>(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{const l=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i<a)||!(s>0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(c<i&&i<a);return l},o.filter=i=>Qi(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),n&&(o.count=(i,a)=>(BL.setTime(+i),zL.setTime(+a),e(BL),e(zL),Math.floor(n(BL,zL))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?a=>r(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const bD=Qi(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);bD.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Qi(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):bD);bD.range;const dp=1e3,Lc=dp*60,fp=Lc*60,kp=fp*24,tH=kp*7,wq=kp*30,VL=kp*365,Ny=Qi(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*dp)},(e,t)=>(t-e)/dp,e=>e.getUTCSeconds());Ny.range;const nH=Qi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dp)},(e,t)=>{e.setTime(+e+t*Lc)},(e,t)=>(t-e)/Lc,e=>e.getMinutes());nH.range;const rH=Qi(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Lc)},(e,t)=>(t-e)/Lc,e=>e.getUTCMinutes());rH.range;const oH=Qi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dp-e.getMinutes()*Lc)},(e,t)=>{e.setTime(+e+t*fp)},(e,t)=>(t-e)/fp,e=>e.getHours());oH.range;const iH=Qi(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*fp)},(e,t)=>(t-e)/fp,e=>e.getUTCHours());iH.range;const HT=Qi(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Lc)/kp,e=>e.getDate()-1);HT.range;const xk=Qi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/kp,e=>e.getUTCDate()-1);xk.range;const are=Qi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/kp,e=>Math.floor(e/kp));are.range;function Rv(e){return Qi(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Lc)/tH)}const wk=Rv(0),xD=Rv(1),TBe=Rv(2),PBe=Rv(3),_x=Rv(4),IBe=Rv(5),OBe=Rv(6);wk.range;xD.range;TBe.range;PBe.range;_x.range;IBe.range;OBe.range;function kv(e){return Qi(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/tH)}const Sk=kv(0),wD=kv(1),MBe=kv(2),ABe=kv(3),Lx=kv(4),DBe=kv(5),RBe=kv(6);Sk.range;wD.range;MBe.range;ABe.range;Lx.range;DBe.range;RBe.range;const aH=Qi(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());aH.range;const sH=Qi(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());sH.range;const Np=Qi(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Np.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Qi(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Np.range;const _p=Qi(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());_p.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Qi(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});_p.range;function sre(e,t,n,r,o,i){const a=[[Ny,1,dp],[Ny,5,5*dp],[Ny,15,15*dp],[Ny,30,30*dp],[i,1,Lc],[i,5,5*Lc],[i,15,15*Lc],[i,30,30*Lc],[o,1,fp],[o,3,3*fp],[o,6,6*fp],[o,12,12*fp],[r,1,kp],[r,2,2*kp],[n,1,tH],[t,1,wq],[t,3,3*wq],[e,1,VL]];function s(c,u,f){const h=u<c;h&&([c,u]=[u,c]);const g=f&&typeof f.range=="function"?f:l(c,u,f),y=g?g.range(c,+u+1):[];return h?y.reverse():y}function l(c,u,f){const h=Math.abs(u-c)/f,g=VV(([,,S])=>S).right(a,h);if(g===a.length)return e.every(Wj(c/VL,u/VL,f));if(g===0)return bD.every(Math.max(Wj(c,u,f),1));const[y,x]=a[h/a[g-1][2]<a[g][2]/h?g-1:g];return y.every(x)}return[s,l]}const[kBe,NBe]=sre(_p,sH,Sk,are,iH,rH),[_Be,LBe]=sre(Np,aH,wk,HT,oH,nH);function HL(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function UL(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function t1(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function $Be(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=n1(o),u=r1(o),f=n1(i),h=r1(i),g=n1(a),y=r1(a),x=n1(s),S=r1(s),C=n1(l),E=r1(l),I={a:Y,A:X,b:te,B:U,c:null,d:Iq,e:Iq,f:aze,g:gze,G:vze,H:rze,I:oze,j:ize,L:lre,m:sze,M:lze,p:K,q:ee,Q:Aq,s:Dq,S:cze,u:uze,U:dze,V:fze,w:pze,W:hze,x:null,X:null,y:mze,Y:yze,Z:bze,"%":Mq},M={a:le,A:ce,b:se,B:fe,c:null,d:Oq,e:Oq,f:Cze,g:kze,G:_ze,H:xze,I:wze,j:Sze,L:ure,m:Eze,M:Tze,p:we,q:Oe,Q:Aq,s:Dq,S:Pze,u:Ize,U:Oze,V:Mze,w:Aze,W:Dze,x:null,X:null,y:Rze,Y:Nze,Z:Lze,"%":Mq},O={a:A,A:F,b:z,B:H,c:Q,d:Tq,e:Tq,f:ZBe,g:Eq,G:Cq,H:Pq,I:Pq,j:YBe,L:JBe,m:KBe,M:QBe,p:L,q:qBe,Q:tze,s:nze,S:XBe,u:VBe,U:HBe,V:UBe,w:zBe,W:GBe,x:G,X:V,y:Eq,Y:Cq,Z:WBe,"%":eze};I.x=D(n,I),I.X=D(r,I),I.c=D(t,I),M.x=D(n,M),M.X=D(r,M),M.c=D(t,M);function D(he,me){return function(ye){var ae=[],Se=-1,Ie=0,Re=he.length,ke,Te,Ce;for(ye instanceof Date||(ye=new Date(+ye));++Se<Re;)he.charCodeAt(Se)===37&&(ae.push(he.slice(Ie,Se)),(Te=Sq[ke=he.charAt(++Se)])!=null?ke=he.charAt(++Se):Te=ke==="e"?" ":"0",(Ce=me[ke])&&(ke=Ce(ye,Te)),ae.push(ke),Ie=Se+1);return ae.push(he.slice(Ie,Se)),ae.join("")}}function N(he,me){return function(ye){var ae=t1(1900,void 0,1),Se=$(ae,he,ye+="",0),Ie,Re;if(Se!=ye.length)return null;if("Q"in ae)return new Date(ae.Q);if("s"in ae)return new Date(ae.s*1e3+("L"in ae?ae.L:0));if(me&&!("Z"in ae)&&(ae.Z=0),"p"in ae&&(ae.H=ae.H%12+ae.p*12),ae.m===void 0&&(ae.m="q"in ae?ae.q:0),"V"in ae){if(ae.V<1||ae.V>53)return null;"w"in ae||(ae.w=1),"Z"in ae?(Ie=UL(t1(ae.y,0,1)),Re=Ie.getUTCDay(),Ie=Re>4||Re===0?wD.ceil(Ie):wD(Ie),Ie=xk.offset(Ie,(ae.V-1)*7),ae.y=Ie.getUTCFullYear(),ae.m=Ie.getUTCMonth(),ae.d=Ie.getUTCDate()+(ae.w+6)%7):(Ie=HL(t1(ae.y,0,1)),Re=Ie.getDay(),Ie=Re>4||Re===0?xD.ceil(Ie):xD(Ie),Ie=HT.offset(Ie,(ae.V-1)*7),ae.y=Ie.getFullYear(),ae.m=Ie.getMonth(),ae.d=Ie.getDate()+(ae.w+6)%7)}else("W"in ae||"U"in ae)&&("w"in ae||(ae.w="u"in ae?ae.u%7:"W"in ae?1:0),Re="Z"in ae?UL(t1(ae.y,0,1)).getUTCDay():HL(t1(ae.y,0,1)).getDay(),ae.m=0,ae.d="W"in ae?(ae.w+6)%7+ae.W*7-(Re+5)%7:ae.w+ae.U*7-(Re+6)%7);return"Z"in ae?(ae.H+=ae.Z/100|0,ae.M+=ae.Z%100,UL(ae)):HL(ae)}}function $(he,me,ye,ae){for(var Se=0,Ie=me.length,Re=ye.length,ke,Te;Se<Ie;){if(ae>=Re)return-1;if(ke=me.charCodeAt(Se++),ke===37){if(ke=me.charAt(Se++),Te=O[ke in Sq?me.charAt(Se++):ke],!Te||(ae=Te(he,ye,ae))<0)return-1}else if(ke!=ye.charCodeAt(ae++))return-1}return ae}function L(he,me,ye){var ae=c.exec(me.slice(ye));return ae?(he.p=u.get(ae[0].toLowerCase()),ye+ae[0].length):-1}function A(he,me,ye){var ae=g.exec(me.slice(ye));return ae?(he.w=y.get(ae[0].toLowerCase()),ye+ae[0].length):-1}function F(he,me,ye){var ae=f.exec(me.slice(ye));return ae?(he.w=h.get(ae[0].toLowerCase()),ye+ae[0].length):-1}function z(he,me,ye){var ae=C.exec(me.slice(ye));return ae?(he.m=E.get(ae[0].toLowerCase()),ye+ae[0].length):-1}function H(he,me,ye){var ae=x.exec(me.slice(ye));return ae?(he.m=S.get(ae[0].toLowerCase()),ye+ae[0].length):-1}function Q(he,me,ye){return $(he,t,me,ye)}function G(he,me,ye){return $(he,n,me,ye)}function V(he,me,ye){return $(he,r,me,ye)}function Y(he){return a[he.getDay()]}function X(he){return i[he.getDay()]}function te(he){return l[he.getMonth()]}function U(he){return s[he.getMonth()]}function K(he){return o[+(he.getHours()>=12)]}function ee(he){return 1+~~(he.getMonth()/3)}function le(he){return a[he.getUTCDay()]}function ce(he){return i[he.getUTCDay()]}function se(he){return l[he.getUTCMonth()]}function fe(he){return s[he.getUTCMonth()]}function we(he){return o[+(he.getUTCHours()>=12)]}function Oe(he){return 1+~~(he.getUTCMonth()/3)}return{format:function(he){var me=D(he+="",I);return me.toString=function(){return he},me},parse:function(he){var me=N(he+="",!1);return me.toString=function(){return he},me},utcFormat:function(he){var me=D(he+="",M);return me.toString=function(){return he},me},utcParse:function(he){var me=N(he+="",!0);return me.toString=function(){return he},me}}}var Sq={"-":"",_:" ",0:"0"},ya=/^\s*\d+/,FBe=/^%/,jBe=/[\\^$*+?|[\]().{}]/g;function Dr(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function BBe(e){return e.replace(jBe,"\\$&")}function n1(e){return new RegExp("^(?:"+e.map(BBe).join("|")+")","i")}function r1(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function zBe(e,t,n){var r=ya.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function VBe(e,t,n){var r=ya.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function HBe(e,t,n){var r=ya.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function UBe(e,t,n){var r=ya.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function GBe(e,t,n){var r=ya.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Cq(e,t,n){var r=ya.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Eq(e,t,n){var r=ya.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function WBe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function qBe(e,t,n){var r=ya.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function KBe(e,t,n){var r=ya.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Tq(e,t,n){var r=ya.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function YBe(e,t,n){var r=ya.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Pq(e,t,n){var r=ya.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function QBe(e,t,n){var r=ya.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function XBe(e,t,n){var r=ya.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function JBe(e,t,n){var r=ya.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ZBe(e,t,n){var r=ya.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function eze(e,t,n){var r=FBe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function tze(e,t,n){var r=ya.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function nze(e,t,n){var r=ya.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Iq(e,t){return Dr(e.getDate(),t,2)}function rze(e,t){return Dr(e.getHours(),t,2)}function oze(e,t){return Dr(e.getHours()%12||12,t,2)}function ize(e,t){return Dr(1+HT.count(Np(e),e),t,3)}function lre(e,t){return Dr(e.getMilliseconds(),t,3)}function aze(e,t){return lre(e,t)+"000"}function sze(e,t){return Dr(e.getMonth()+1,t,2)}function lze(e,t){return Dr(e.getMinutes(),t,2)}function cze(e,t){return Dr(e.getSeconds(),t,2)}function uze(e){var t=e.getDay();return t===0?7:t}function dze(e,t){return Dr(wk.count(Np(e)-1,e),t,2)}function cre(e){var t=e.getDay();return t>=4||t===0?_x(e):_x.ceil(e)}function fze(e,t){return e=cre(e),Dr(_x.count(Np(e),e)+(Np(e).getDay()===4),t,2)}function pze(e){return e.getDay()}function hze(e,t){return Dr(xD.count(Np(e)-1,e),t,2)}function mze(e,t){return Dr(e.getFullYear()%100,t,2)}function gze(e,t){return e=cre(e),Dr(e.getFullYear()%100,t,2)}function yze(e,t){return Dr(e.getFullYear()%1e4,t,4)}function vze(e,t){var n=e.getDay();return e=n>=4||n===0?_x(e):_x.ceil(e),Dr(e.getFullYear()%1e4,t,4)}function bze(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Dr(t/60|0,"0",2)+Dr(t%60,"0",2)}function Oq(e,t){return Dr(e.getUTCDate(),t,2)}function xze(e,t){return Dr(e.getUTCHours(),t,2)}function wze(e,t){return Dr(e.getUTCHours()%12||12,t,2)}function Sze(e,t){return Dr(1+xk.count(_p(e),e),t,3)}function ure(e,t){return Dr(e.getUTCMilliseconds(),t,3)}function Cze(e,t){return ure(e,t)+"000"}function Eze(e,t){return Dr(e.getUTCMonth()+1,t,2)}function Tze(e,t){return Dr(e.getUTCMinutes(),t,2)}function Pze(e,t){return Dr(e.getUTCSeconds(),t,2)}function Ize(e){var t=e.getUTCDay();return t===0?7:t}function Oze(e,t){return Dr(Sk.count(_p(e)-1,e),t,2)}function dre(e){var t=e.getUTCDay();return t>=4||t===0?Lx(e):Lx.ceil(e)}function Mze(e,t){return e=dre(e),Dr(Lx.count(_p(e),e)+(_p(e).getUTCDay()===4),t,2)}function Aze(e){return e.getUTCDay()}function Dze(e,t){return Dr(wD.count(_p(e)-1,e),t,2)}function Rze(e,t){return Dr(e.getUTCFullYear()%100,t,2)}function kze(e,t){return e=dre(e),Dr(e.getUTCFullYear()%100,t,2)}function Nze(e,t){return Dr(e.getUTCFullYear()%1e4,t,4)}function _ze(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Lx(e):Lx.ceil(e),Dr(e.getUTCFullYear()%1e4,t,4)}function Lze(){return"+0000"}function Mq(){return"%"}function Aq(e){return+e}function Dq(e){return Math.floor(+e/1e3)}var k0,fre,pre;$ze({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function $ze(e){return k0=$Be(e),fre=k0.format,k0.parse,pre=k0.utcFormat,k0.utcParse,k0}function Fze(e){return new Date(e)}function jze(e){return e instanceof Date?+e:+new Date(+e)}function lH(e,t,n,r,o,i,a,s,l,c){var u=KV(),f=u.invert,h=u.domain,g=c(".%L"),y=c(":%S"),x=c("%I:%M"),S=c("%I %p"),C=c("%a %d"),E=c("%b %d"),I=c("%B"),M=c("%Y");function O(D){return(l(D)<D?g:s(D)<D?y:a(D)<D?x:i(D)<D?S:r(D)<D?o(D)<D?C:E:n(D)<D?I:M)(D)}return u.invert=function(D){return new Date(f(D))},u.domain=function(D){return arguments.length?h(Array.from(D,jze)):h().map(Fze)},u.ticks=function(D){var N=h();return e(N[0],N[N.length-1],D??10)},u.tickFormat=function(D,N){return N==null?O:c(N)},u.nice=function(D){var N=h();return(!D||typeof D.range!="function")&&(D=t(N[0],N[N.length-1],D??10)),D?h(Zne(N,D)):u},u.copy=function(){return VT(u,lH(e,t,n,r,o,i,a,s,l,c))},u}function Bze(){return au.apply(lH(_Be,LBe,Np,aH,wk,HT,oH,nH,Ny,fre).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function zze(){return au.apply(lH(kBe,NBe,_p,sH,Sk,xk,iH,rH,Ny,pre).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ck(){var e=0,t=1,n,r,o,i,a=ks,s=!1,l;function c(f){return f==null||isNaN(f=+f)?l:a(o===0?.5:(f=(i(f)-n)*o,s?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,n=i(e=+e),r=i(t=+t),o=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(f){return arguments.length?(s=!!f,c):s},c.interpolator=function(f){return arguments.length?(a=f,c):a};function u(f){return function(h){var g,y;return arguments.length?([g,y]=h,a=f(g,y),c):[a(0),a(1)]}}return c.range=u(xw),c.rangeRound=u(qV),c.unknown=function(f){return arguments.length?(l=f,c):l},function(f){return i=f,n=f(e),r=f(t),o=n===r?0:1/(r-n),c}}function zm(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function hre(){var e=Bm(Ck()(ks));return e.copy=function(){return zm(e,hre())},Hp.apply(e,arguments)}function mre(){var e=XV(Ck()).domain([1,10]);return e.copy=function(){return zm(e,mre()).base(e.base())},Hp.apply(e,arguments)}function gre(){var e=JV(Ck());return e.copy=function(){return zm(e,gre()).constant(e.constant())},Hp.apply(e,arguments)}function cH(){var e=ZV(Ck());return e.copy=function(){return zm(e,cH()).exponent(e.exponent())},Hp.apply(e,arguments)}function Vze(){return cH.apply(null,arguments).exponent(.5)}function yre(){var e=[],t=ks;function n(r){if(r!=null&&!isNaN(r=+r))return t((BT(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let o of r)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(gm),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,o)=>t(o/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,i)=>Ije(e,i/r))},n.copy=function(){return yre(t).domain(e)},Hp.apply(n,arguments)}function Ek(){var e=0,t=.5,n=1,r=1,o,i,a,s,l,c=ks,u,f=!1,h;function g(x){return isNaN(x=+x)?h:(x=.5+((x=+u(x))-i)*(r*x<r*i?s:l),c(f?Math.max(0,Math.min(1,x)):x))}g.domain=function(x){return arguments.length?([e,t,n]=x,o=u(e=+e),i=u(t=+t),a=u(n=+n),s=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),r=i<o?-1:1,g):[e,t,n]},g.clamp=function(x){return arguments.length?(f=!!x,g):f},g.interpolator=function(x){return arguments.length?(c=x,g):c};function y(x){return function(S){var C,E,I;return arguments.length?([C,E,I]=S,c=eBe(x,[C,E,I]),g):[c(0),c(.5),c(1)]}}return g.range=y(xw),g.rangeRound=y(qV),g.unknown=function(x){return arguments.length?(h=x,g):h},function(x){return u=x,o=x(e),i=x(t),a=x(n),s=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),r=i<o?-1:1,g}}function vre(){var e=Bm(Ek()(ks));return e.copy=function(){return zm(e,vre())},Hp.apply(e,arguments)}function bre(){var e=XV(Ek()).domain([.1,1,10]);return e.copy=function(){return zm(e,bre()).base(e.base())},Hp.apply(e,arguments)}function xre(){var e=JV(Ek());return e.copy=function(){return zm(e,xre()).constant(e.constant())},Hp.apply(e,arguments)}function uH(){var e=ZV(Ek());return e.copy=function(){return zm(e,uH()).exponent(e.exponent())},Hp.apply(e,arguments)}function Hze(){return uH.apply(null,arguments).exponent(.5)}const D1=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:UV,scaleDiverging:vre,scaleDivergingLog:bre,scaleDivergingPow:uH,scaleDivergingSqrt:Hze,scaleDivergingSymlog:xre,scaleIdentity:Jne,scaleImplicit:qj,scaleLinear:Xne,scaleLog:ere,scaleOrdinal:HV,scalePoint:Aje,scalePow:eH,scaleQuantile:rre,scaleQuantize:ore,scaleRadial:nre,scaleSequential:hre,scaleSequentialLog:mre,scaleSequentialPow:cH,scaleSequentialQuantile:yre,scaleSequentialSqrt:Vze,scaleSequentialSymlog:gre,scaleSqrt:CBe,scaleSymlog:tre,scaleThreshold:ire,scaleTime:Bze,scaleUtc:zze,tickFormat:Qne},Symbol.toStringTag,{value:"Module"}));var Vm=e=>e.chartData,dH=Ue([Vm],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),ww=(e,t,n,r)=>r?dH(e):Vm(e);function $x(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(_a(t)&&_a(n))return!0}return!1}function Rq(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Uze(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,o,i;if(_a(n))o=n;else if(typeof n=="function")return;if(_a(r))i=r;else if(typeof r=="function")return;var a=[o,i];if($x(a))return a}}function Gze(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if($x(r))return Rq(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[o,i]=e,a,s;if(o==="auto")t!=null&&(a=Math.min(...t));else if(nn(o))a=o;else if(typeof o=="function")try{t!=null&&(a=o(t?.[0]))}catch{}else if(typeof o=="string"&&S8.test(o)){var l=S8.exec(o);if(l==null||t==null)a=void 0;else{var c=+l[1];a=t[0]-c}}else a=t?.[0];if(i==="auto")t!=null&&(s=Math.max(...t));else if(nn(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t?.[1]))}catch{}else if(typeof i=="string"&&C8.test(i)){var u=C8.exec(i);if(u==null||t==null)s=void 0;else{var f=+u[1];s=t[1]+f}}else s=t?.[1];var h=[a,s];if($x(h))return t==null?h:Rq(h,t,n)}}}var Sw=1e9,Wze={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},pH,Ho=!0,Zc="[DecimalError] ",Gy=Zc+"Invalid argument: ",fH=Zc+"Exponent out of range: ",Cw=Math.floor,Cy=Math.pow,qze=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Fl,aa=1e7,Ro=7,wre=9007199254740991,SD=Cw(wre/Ro),tn={};tn.absoluteValue=tn.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};tn.comparedTo=tn.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(r=i.d.length,o=e.d.length,t=0,n=r<o?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1};tn.decimalPlaces=tn.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Ro;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};tn.dividedBy=tn.div=function(e){return gp(this,new this.constructor(e))};tn.dividedToIntegerBy=tn.idiv=function(e){var t=this,n=t.constructor;return go(gp(t,new n(e),0,1),n.precision)};tn.equals=tn.eq=function(e){return!this.cmp(e)};tn.exponent=function(){return Li(this)};tn.greaterThan=tn.gt=function(e){return this.cmp(e)>0};tn.greaterThanOrEqualTo=tn.gte=function(e){return this.cmp(e)>=0};tn.isInteger=tn.isint=function(){return this.e>this.d.length-2};tn.isNegative=tn.isneg=function(){return this.s<0};tn.isPositive=tn.ispos=function(){return this.s>0};tn.isZero=function(){return this.s===0};tn.lessThan=tn.lt=function(e){return this.cmp(e)<0};tn.lessThanOrEqualTo=tn.lte=function(e){return this.cmp(e)<1};tn.logarithm=tn.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Fl))throw Error(Zc+"NaN");if(n.s<1)throw Error(Zc+(n.s?"NaN":"-Infinity"));return n.eq(Fl)?new r(0):(Ho=!1,t=gp(RE(n,i),RE(e,i),i),Ho=!0,go(t,o))};tn.minus=tn.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Ere(t,e):Sre(t,(e.s=-e.s,e))};tn.modulo=tn.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(Zc+"NaN");return n.s?(Ho=!1,t=gp(n,e,0,1).times(e),Ho=!0,n.minus(t)):go(new r(n),o)};tn.naturalExponential=tn.exp=function(){return Cre(this)};tn.naturalLogarithm=tn.ln=function(){return RE(this)};tn.negated=tn.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};tn.plus=tn.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Sre(t,e):Ere(t,(e.s=-e.s,e))};tn.precision=tn.sd=function(e){var t,n,r,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Gy+e);if(t=Li(o)+1,r=o.d.length-1,n=r*Ro+1,r=o.d[r],r){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};tn.squareRoot=tn.sqrt=function(){var e,t,n,r,o,i,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Zc+"NaN")}for(e=Li(s),Ho=!1,o=Math.sqrt(+s),o==0||o==1/0?(t=Kd(s.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Cw((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(o.toString()),n=l.precision,o=a=n+3;;)if(i=r,r=i.plus(gp(s,i,a+2)).times(.5),Kd(i.d).slice(0,a)===(t=Kd(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&t=="4999"){if(go(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if(t!="9999")break;a+=4}return Ho=!0,go(r,n)};tn.times=tn.mul=function(e){var t,n,r,o,i,a,s,l,c,u=this,f=u.constructor,h=u.d,g=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,n=u.e+e.e,l=h.length,c=g.length,l<c&&(i=h,h=g,g=i,a=l,l=c,c=a),i=[],a=l+c,r=a;r--;)i.push(0);for(r=c;--r>=0;){for(t=0,o=l+r;o>r;)s=i[o]+g[r]*h[o-r-1]+t,i[o--]=s%aa|0,t=s/aa|0;i[o]=(i[o]+t)%aa|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,Ho?go(e,f.precision):e};tn.toDecimalPlaces=tn.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(cf(e,0,Sw),t===void 0?t=r.rounding:cf(t,0,8),go(n,e+Li(n)+1,t))};tn.toExponential=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=cv(r,!0):(cf(e,0,Sw),t===void 0?t=o.rounding:cf(t,0,8),r=go(new o(r),e+1,t),n=cv(r,!0,e+1)),n};tn.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?cv(o):(cf(e,0,Sw),t===void 0?t=i.rounding:cf(t,0,8),r=go(new i(o),e+Li(o)+1,t),n=cv(r.abs(),!1,e+Li(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)};tn.toInteger=tn.toint=function(){var e=this,t=e.constructor;return go(new t(e),Li(e)+1,t.rounding)};tn.toNumber=function(){return+this};tn.toPower=tn.pow=function(e){var t,n,r,o,i,a,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Fl);if(s=new l(s),!s.s){if(e.s<1)throw Error(Zc+"Infinity");return s}if(s.eq(Fl))return s;if(r=l.precision,e.eq(Fl))return go(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,i=s.s,a){if((n=u<0?-u:u)<=wre){for(o=new l(Fl),t=Math.ceil(r/Ro+4),Ho=!1;n%2&&(o=o.times(s),Nq(o.d,t)),n=Cw(n/2),n!==0;)s=s.times(s),Nq(s.d,t);return Ho=!0,e.s<0?new l(Fl).div(o):go(o,r)}}else if(i<0)throw Error(Zc+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,Ho=!1,o=e.times(RE(s,r+c)),Ho=!0,o=Cre(o),o.s=i,o};tn.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?(n=Li(o),r=cv(o,n<=i.toExpNeg||n>=i.toExpPos)):(cf(e,1,Sw),t===void 0?t=i.rounding:cf(t,0,8),o=go(new i(o),e,t),n=Li(o),r=cv(o,e<=n||n<=i.toExpNeg,e)),r};tn.toSignificantDigits=tn.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(cf(e,1,Sw),t===void 0?t=r.rounding:cf(t,0,8)),go(new r(n),e,t)};tn.toString=tn.valueOf=tn.val=tn.toJSON=tn[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Li(e),n=e.constructor;return cv(e,t<=n.toExpNeg||t>=n.toExpPos)};function Sre(e,t){var n,r,o,i,a,s,l,c,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),Ho?go(t,f):t;if(l=e.d,c=t.d,a=e.e,o=t.e,l=l.slice(),i=a-o,i){for(i<0?(r=l,i=-i,s=c.length):(r=c,o=a,s=l.length),a=Math.ceil(f/Ro),s=a>s?a+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,r=c,c=l,l=r),n=0;i;)n=(l[--i]=l[i]+c[i]+n)/aa|0,l[i]%=aa;for(n&&(l.unshift(n),++o),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=o,Ho?go(t,f):t}function cf(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Gy+e)}function Kd(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",n=Ro-r.length,n&&(i+=Zh(n)),i+=r;a=e[t],r=a+"",n=Ro-r.length,n&&(i+=Zh(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return i+a}var gp=function(){function e(r,o){var i,a=0,s=r.length;for(r=r.slice();s--;)i=r[s]*o+a,r[s]=i%aa|0,a=i/aa|0;return a&&r.unshift(a),r}function t(r,o,i,a){var s,l;if(i!=a)l=i>a?1:-1;else for(s=l=0;s<i;s++)if(r[s]!=o[s]){l=r[s]>o[s]?1:-1;break}return l}function n(r,o,i){for(var a=0;i--;)r[i]-=a,a=r[i]<o[i]?1:0,r[i]=a*aa+r[i]-o[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,o,i,a){var s,l,c,u,f,h,g,y,x,S,C,E,I,M,O,D,N,$,L=r.constructor,A=r.s==o.s?1:-1,F=r.d,z=o.d;if(!r.s)return new L(r);if(!o.s)throw Error(Zc+"Division by zero");for(l=r.e-o.e,N=z.length,O=F.length,g=new L(A),y=g.d=[],c=0;z[c]==(F[c]||0);)++c;if(z[c]>(F[c]||0)&&--l,i==null?E=i=L.precision:a?E=i+(Li(r)-Li(o))+1:E=i,E<0)return new L(0);if(E=E/Ro+2|0,c=0,N==1)for(u=0,z=z[0],E++;(c<O||u)&&E--;c++)I=u*aa+(F[c]||0),y[c]=I/z|0,u=I%z|0;else{for(u=aa/(z[0]+1)|0,u>1&&(z=e(z,u),F=e(F,u),N=z.length,O=F.length),M=N,x=F.slice(0,N),S=x.length;S<N;)x[S++]=0;$=z.slice(),$.unshift(0),D=z[0],z[1]>=aa/2&&++D;do u=0,s=t(z,x,N,S),s<0?(C=x[0],N!=S&&(C=C*aa+(x[1]||0)),u=C/D|0,u>1?(u>=aa&&(u=aa-1),f=e(z,u),h=f.length,S=x.length,s=t(f,x,h,S),s==1&&(u--,n(f,N<h?$:z,h))):(u==0&&(s=u=1),f=z.slice()),h=f.length,h<S&&f.unshift(0),n(x,f,S),s==-1&&(S=x.length,s=t(z,x,N,S),s<1&&(u++,n(x,N<S?$:z,S))),S=x.length):s===0&&(u++,x=[0]),y[c++]=u,s&&x[0]?x[S++]=F[M]||0:(x=[F[M]],S=1);while((M++<O||x[0]!==void 0)&&E--)}return y[0]||y.shift(),g.e=l,go(g,a?i+Li(g)+1:i)}}();function Cre(e,t){var n,r,o,i,a,s,l=0,c=0,u=e.constructor,f=u.precision;if(Li(e)>16)throw Error(fH+Li(e));if(!e.s)return new u(Fl);for(Ho=!1,s=f,a=new u(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(r=Math.log(Cy(2,c))/Math.LN10*2+5|0,s+=r,n=o=i=new u(Fl),u.precision=s;;){if(o=go(o.times(e),s),n=n.times(++l),a=i.plus(gp(o,n,s)),Kd(a.d).slice(0,s)===Kd(i.d).slice(0,s)){for(;c--;)i=go(i.times(i),s);return u.precision=f,t==null?(Ho=!0,go(i,f)):i}i=a}}function Li(e){for(var t=e.e*Ro,n=e.d[0];n>=10;n/=10)t++;return t}function GL(e,t,n){if(t>e.LN10.sd())throw Ho=!0,n&&(e.precision=n),Error(Zc+"LN10 precision limit exceeded");return go(new e(e.LN10),t)}function Zh(e){for(var t="";e--;)t+="0";return t}function RE(e,t){var n,r,o,i,a,s,l,c,u,f=1,h=10,g=e,y=g.d,x=g.constructor,S=x.precision;if(g.s<1)throw Error(Zc+(g.s?"NaN":"-Infinity"));if(g.eq(Fl))return new x(0);if(t==null?(Ho=!1,c=S):c=t,g.eq(10))return t==null&&(Ho=!0),GL(x,c);if(c+=h,x.precision=c,n=Kd(y),r=n.charAt(0),i=Li(g),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=Kd(g.d),r=n.charAt(0),f++;i=Li(g),r>1?(g=new x("0."+n),i++):g=new x(r+"."+n.slice(1))}else return l=GL(x,c+2,S).times(i+""),g=RE(new x(r+"."+n.slice(1)),c-h).plus(l),x.precision=S,t==null?(Ho=!0,go(g,S)):g;for(s=a=g=gp(g.minus(Fl),g.plus(Fl),c),u=go(g.times(g),c),o=3;;){if(a=go(a.times(u),c),l=s.plus(gp(a,new x(o),c)),Kd(l.d).slice(0,c)===Kd(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(GL(x,c+2,S).times(i+""))),s=gp(s,new x(f),c),x.precision=S,t==null?(Ho=!0,go(s,S)):s;s=l,o+=2}}function kq(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(r,o),t){if(o-=r,n=n-r-1,e.e=Cw(n/Ro),e.d=[],r=(n+1)%Ro,n<0&&(r+=Ro),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=Ro;r<o;)e.d.push(+t.slice(r,r+=Ro));t=t.slice(r),r=Ro-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),Ho&&(e.e>SD||e.e<-SD))throw Error(fH+n)}else e.s=0,e.e=0,e.d=[0];return e}function go(e,t,n){var r,o,i,a,s,l,c,u,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if(r=t-a,r<0)r+=Ro,o=t,c=f[u=0];else{if(u=Math.ceil((r+1)/Ro),i=f.length,u>=i)return e;for(c=i=f[u],a=1;i>=10;i/=10)a++;r%=Ro,o=r-Ro+a}if(n!==void 0&&(i=Cy(10,a-o-1),s=c/i%10|0,l=t<0||f[u+1]!==void 0||c%i,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?o>0?c/Cy(10,a-o):0:f[u-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return l?(i=Li(e),f.length=1,t=t-i-1,f[0]=Cy(10,(Ro-t%Ro)%Ro),e.e=Cw(-t/Ro)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(r==0?(f.length=u,i=1,u--):(f.length=u+1,i=Cy(10,Ro-r),f[u]=o>0?(c/Cy(10,a-o)%Cy(10,o)|0)*i:0),l)for(;;)if(u==0){(f[0]+=i)==aa&&(f[0]=1,++e.e);break}else{if(f[u]+=i,f[u]!=aa)break;f[u--]=0,i=1}for(r=f.length;f[--r]===0;)f.pop();if(Ho&&(e.e>SD||e.e<-SD))throw Error(fH+Li(e));return e}function Ere(e,t){var n,r,o,i,a,s,l,c,u,f,h=e.constructor,g=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),Ho?go(t,g):t;if(l=e.d,f=t.d,r=t.e,c=e.e,l=l.slice(),a=c-r,a){for(u=a<0,u?(n=l,a=-a,s=f.length):(n=f,r=c,s=l.length),o=Math.max(Math.ceil(g/Ro),s)+2,a>o&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for(o=l.length,s=f.length,u=o<s,u&&(s=o),o=0;o<s;o++)if(l[o]!=f[o]){u=l[o]<f[o];break}a=0}for(u&&(n=l,l=f,f=n,t.s=-t.s),s=l.length,o=f.length-s;o>0;--o)l[s++]=0;for(o=f.length;o>a;){if(l[--o]<f[o]){for(i=o;i&&l[--i]===0;)l[i]=aa-1;--l[i],l[o]+=aa}l[o]-=f[o]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,Ho?go(t,g):t):new h(0)}function cv(e,t,n){var r,o=Li(e),i=Kd(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+Zh(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Zh(-o-1)+i,n&&(r=n-a)>0&&(i+=Zh(r))):o>=a?(i+=Zh(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+Zh(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=Zh(r))),e.s<0?"-"+i:i}function Nq(e,t){if(e.length>t)return e.length=t,!0}function Tre(e){var t,n,r;function o(i){var a=this;if(!(a instanceof o))return new o(i);if(a.constructor=o,i instanceof o){a.s=i.s,a.e=i.e,a.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Gy+i);if(i>0)a.s=1;else if(i<0)i=-i,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(i===~~i&&i<1e7){a.e=0,a.d=[i];return}return kq(a,i.toString())}else if(typeof i!="string")throw Error(Gy+i);if(i.charCodeAt(0)===45?(i=i.slice(1),a.s=-1):a.s=1,qze.test(i))kq(a,i);else throw Error(Gy+i)}if(o.prototype=tn,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=Tre,o.config=o.set=Kze,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return o.config(e),o}function Kze(e){if(!e||typeof e!="object")throw Error(Zc+"Object expected");var t,n,r,o=["precision",1,Sw,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if((r=e[n=o[t]])!==void 0)if(Cw(r)===r&&r>=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(Gy+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Gy+n+": "+r);return this}var pH=Tre(Wze);Fl=new pH(1);const Xr=pH;var Yze=e=>e,Pre={},Ire=e=>e===Pre,_q=e=>function t(){return arguments.length===0||arguments.length===1&&Ire(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},Ore=(e,t)=>e===1?t:_q(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=r.filter(a=>a!==Pre).length;return i>=e?t(...r):Ore(e-i,_q(function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=r.map(u=>Ire(u)?s.shift():u);return t(...c,...s)}))}),Tk=e=>Ore(e.length,e),Xj=(e,t)=>{for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},Qze=Tk((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(n=>t[n]).map(e)),Xze=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Yze;var o=n.reverse(),i=o[0],a=o.slice(1);return function(){return a.reduce((s,l)=>l(s),i(...arguments))}},Jj=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),Mre=e=>{var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((a,s)=>{var l;return a===((l=t)===null||l===void 0?void 0:l[s])})||(t=o,n=e(...o)),n}};function Are(e){var t;return e===0?t=1:t=Math.floor(new Xr(e).abs().log(10).toNumber())+1,t}function Dre(e,t,n){for(var r=new Xr(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i}Tk((e,t,n)=>{var r=+e,o=+t;return r+n*(o-r)});Tk((e,t,n)=>{var r=t-+e;return r=r||1/0,(n-e)/r});Tk((e,t,n)=>{var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});var Rre=e=>{var[t,n]=e,[r,o]=[t,n];return t>n&&([r,o]=[n,t]),[r,o]},kre=(e,t,n)=>{if(e.lte(0))return new Xr(0);var r=Are(e.toNumber()),o=new Xr(10).pow(r),i=e.div(o),a=r!==1?.05:.1,s=new Xr(Math.ceil(i.div(a).toNumber())).add(n).mul(a),l=s.mul(o);return t?new Xr(l.toNumber()):new Xr(Math.ceil(l.toNumber()))},Jze=(e,t,n)=>{var r=new Xr(1),o=new Xr(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new Xr(10).pow(Are(e)-1),o=new Xr(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new Xr(Math.floor(e)))}else e===0?o=new Xr(Math.floor((t-1)/2)):n||(o=new Xr(Math.floor(e)));var a=Math.floor((t-1)/2),s=Xze(Qze(l=>o.add(new Xr(l-a).mul(r)).toNumber()),Xj);return s(0,t)},Nre=function(t,n,r,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new Xr(0),tickMin:new Xr(0),tickMax:new Xr(0)};var a=kre(new Xr(n).sub(t).div(r-1),o,i),s;t<=0&&n>=0?s=new Xr(0):(s=new Xr(t).add(n).div(2),s=s.sub(new Xr(s).mod(a)));var l=Math.ceil(s.sub(t).div(a).toNumber()),c=Math.ceil(new Xr(n).sub(s).div(a).toNumber()),u=l+c+1;return u>r?Nre(t,n,r,o,i+1):(u<r&&(c=n>0?c+(r-u):c,l=n>0?l:l+(r-u)),{step:a,tickMin:s.sub(new Xr(l).mul(a)),tickMax:s.add(new Xr(c).mul(a))})};function Zze(e){var[t,n]=e,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=Math.max(r,2),[a,s]=Rre([t,n]);if(a===-1/0||s===1/0){var l=s===1/0?[a,...Xj(0,r-1).map(()=>1/0)]:[...Xj(0,r-1).map(()=>-1/0),s];return t>n?Jj(l):l}if(a===s)return Jze(a,r,o);var{step:c,tickMin:u,tickMax:f}=Nre(a,s,i,o,0),h=Dre(u,f.add(new Xr(.1).mul(c)),c);return t>n?Jj(h):h}function eVe(e,t){var[n,r]=e,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[i,a]=Rre([n,r]);if(i===-1/0||a===1/0)return[n,r];if(i===a)return[i];var s=Math.max(t,2),l=kre(new Xr(a).sub(i).div(s-1),o,0),c=[...Dre(new Xr(i),new Xr(a),l),a];return o===!1&&(c=c.map(u=>Math.round(u))),n>r?Jj(c):c}var tVe=Mre(Zze),nVe=Mre(eVe),_re=e=>e.rootProps.maxBarSize,rVe=e=>e.rootProps.barGap,Lre=e=>e.rootProps.barCategoryGap,oVe=e=>e.rootProps.barSize,UT=e=>e.rootProps.stackOffset,hH=e=>e.options.chartName,mH=e=>e.rootProps.syncId,$re=e=>e.rootProps.syncMethod,gH=e=>e.options.eventEmitter,lp={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},Nl={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},Pk=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},iVe={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:lp.angleAxisId,includeHidden:!1,name:void 0,reversed:lp.reversed,scale:lp.scale,tick:lp.tick,tickCount:void 0,ticks:void 0,type:lp.type,unit:void 0},aVe={allowDataOverflow:Nl.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Nl.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Nl.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Nl.scale,tick:Nl.tick,tickCount:Nl.tickCount,ticks:void 0,type:Nl.type,unit:void 0},sVe={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:lp.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:lp.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:lp.scale,tick:lp.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},lVe={allowDataOverflow:Nl.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Nl.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Nl.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Nl.scale,tick:Nl.tick,tickCount:Nl.tickCount,ticks:void 0,type:"category",unit:void 0},yH=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?sVe:iVe,vH=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?lVe:aVe,Ik=e=>e.polarOptions,bH=Ue([zp,Vp,Ki],wne),Fre=Ue([Ik,bH],(e,t)=>{if(e!=null)return ls(e.innerRadius,t,0)}),jre=Ue([Ik,bH],(e,t)=>{if(e!=null)return ls(e.outerRadius,t,t*.8)}),cVe=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},Bre=Ue([Ik],cVe);Ue([yH,Bre],Pk);var zre=Ue([bH,Fre,jre],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});Ue([vH,zre],Pk);var Vre=Ue([pr,Ik,Fre,jre,zp,Vp],(e,t,n,r,o,i)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:a,cy:s,startAngle:l,endAngle:c}=t;return{cx:ls(a,o,o/2),cy:ls(s,i,i/2),innerRadius:n,outerRadius:r,startAngle:l,endAngle:c,clockWise:!1}}}),Go=(e,t)=>t,GT=(e,t,n)=>n;function Ok(e){return e?.id}var Xi=e=>{var t=pr(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Ew=e=>e.tooltip.settings.axisId,va=e=>{var t=Xi(e),n=Ew(e);return WT(e,t,n)},Hre=Ue([va],e=>e?.dataKey);function Ure(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:o,dataKey:i}=n,a=new Map;return e.forEach(s=>{var l,c=(l=s.data)!==null&&l!==void 0?l:r;if(!(c==null||c.length===0)){var u=Ok(s);c.forEach((f,h)=>{var g=i==null||o?h:String(Ar(f,i,null)),y=Ar(f,s.dataKey,0),x;a.has(g)?x=a.get(g):x={},Object.assign(x,{[u]:y}),a.set(g,x)})}}),Array.from(a.values())}function Mk(e){return e.stackId!=null&&e.dataKey!=null}function Lq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function CD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lq(Object(n),!0).forEach(function(r){uVe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uVe(e,t,n){return(t=dVe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dVe(e){var t=fVe(e,"string");return typeof t=="symbol"?t:t+""}function fVe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zj=[0,"auto"],Al={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},Gre=(e,t)=>e.cartesianAxis.xAxis[t],Up=(e,t)=>{var n=Gre(e,t);return n??Al},Dl={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Zj,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:FT},Wre=(e,t)=>e.cartesianAxis.yAxis[t],Gp=(e,t)=>{var n=Wre(e,t);return n??Dl},pm={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},xH=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??pm},Si=(e,t,n)=>{switch(t){case"xAxis":return Up(e,n);case"yAxis":return Gp(e,n);case"zAxis":return xH(e,n);case"angleAxis":return yH(e,n);case"radiusAxis":return vH(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},pVe=(e,t,n)=>{switch(t){case"xAxis":return Up(e,n);case"yAxis":return Gp(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},WT=(e,t,n)=>{switch(t){case"xAxis":return Up(e,n);case"yAxis":return Gp(e,n);case"angleAxis":return yH(e,n);case"radiusAxis":return vH(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},qre=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function wH(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var Tw=e=>e.graphicalItems.cartesianItems,hVe=Ue([Go,GT],wH),SH=(e,t,n)=>e.filter(n).filter(r=>t?.includeHidden===!0?!0:!r.hide),qT=Ue([Tw,Si,hVe],SH),Kre=Ue([qT],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(Mk)),Yre=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Qre=Ue([qT],Yre),CH=e=>e.map(t=>t.data).filter(Boolean).flat(1),mVe=Ue([qT],CH),EH=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:o}=t;return e.length>0?e:n.slice(r,o+1)},TH=Ue([mVe,ww],EH),PH=(e,t,n)=>t?.dataKey!=null?e.map(r=>({value:Ar(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(o=>({value:Ar(o,r)}))):e.map(r=>({value:r})),Ak=Ue([TH,Si,qT],PH);function Xre(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Nv(e){return e.filter(t=>Xc(t)||t instanceof Date).map(Number).filter(t=>hl(t)===!1)}function gVe(e,t,n){return!n||typeof t!="number"||hl(t)?[]:n.length?Nv(n.flatMap(r=>{var o=Ar(e,r.dataKey),i,a;if(Array.isArray(o)?[i,a]=o:i=a=o,!(!_a(i)||!_a(a)))return[t-i,t+a]})):[]}var yVe=Ue([Kre,ww,va],Ure),Jre=(e,t,n)=>{var r={},o=t.reduce((i,a)=>(a.stackId==null||(i[a.stackId]==null&&(i[a.stackId]=[]),i[a.stackId].push(a)),i),r);return Object.fromEntries(Object.entries(o).map(i=>{var[a,s]=i,l=s.map(Ok);return[a,{stackedData:C$e(e,l,n),graphicalItems:s}]}))},kE=Ue([yVe,Kre,UT],Jre),Zre=(e,t,n)=>{var{dataStartIndex:r,dataEndIndex:o}=t;if(n!=="zAxis"){var i=I$e(e,r,o);if(!(i!=null&&i[0]===0&&i[1]===0))return i}},vVe=Ue([kE,Vm,Go],Zre),eoe=(e,t,n,r,o)=>n.length>0?e.flatMap(i=>n.flatMap(a=>{var s,l,c=(s=r[a.id])===null||s===void 0?void 0:s.filter(f=>Xre(o,f)),u=Ar(i,(l=t.dataKey)!==null&&l!==void 0?l:a.dataKey);return{value:u,errorDomain:gVe(i,u,c)}})).filter(Boolean):t?.dataKey!=null?e.map(i=>({value:Ar(i,t.dataKey),errorDomain:[]})):e.map(i=>({value:i,errorDomain:[]})),Dk=e=>e.errorBars,toe=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>Xre(n,r));Ue([Qre,Dk,Go],toe);var bVe=Ue([TH,Si,Qre,Dk,Go],eoe);function xVe(e){var{value:t}=e;if(Xc(t)||t instanceof Date)return t}var $q=e=>{var t=e.flatMap(r=>[r.value,r.errorDomain]).flat(1),n=Nv(t);if(n.length!==0)return[Math.min(...n),Math.max(...n)]},wVe=(e,t,n)=>{var r=e.map(xVe).filter(o=>o!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&fte(r))?Bne(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},IH=e=>{var t;if(e==null||!("domain"in e))return Zj;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var n=Nv(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:Zj},ED=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);if(o.length!==0){var i=o.flat(),a=Math.min(...i),s=Math.max(...i);return[a,s]}},noe=e=>e.referenceElements.dots,Pw=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),SVe=Ue([noe,Go,GT],Pw),roe=e=>e.referenceElements.areas,CVe=Ue([roe,Go,GT],Pw),ooe=e=>e.referenceElements.lines,EVe=Ue([ooe,Go,GT],Pw),ioe=(e,t)=>{var n=Nv(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},TVe=Ue(SVe,Go,ioe),aoe=(e,t)=>{var n=Nv(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},PVe=Ue([CVe,Go],aoe),soe=(e,t)=>{var n=Nv(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},IVe=Ue(EVe,Go,soe),OVe=Ue(TVe,IVe,PVe,(e,t,n)=>ED(e,n,t)),loe=Ue([Si],IH),OH=(e,t,n,r,o,i,a)=>{var s=Uze(t,e.allowDataOverflow);if(s!=null)return s;var l=i==="vertical"&&a==="xAxis"||i==="horizontal"&&a==="yAxis",c=l?ED(n,o,$q(r)):ED(o,$q(r));return Gze(t,c,e.allowDataOverflow)},MVe=Ue([Si,loe,vVe,bVe,OVe,pr,Go],OH),AVe=[0,1],MH=(e,t,n,r,o,i,a)=>{if(!((e==null||n==null||n.length===0)&&a===void 0)){var{dataKey:s,type:l}=e,c=hf(t,i);return c&&s==null?Bne(0,n.length):l==="category"?wVe(r,e,c):o==="expand"?AVe:a}},AH=Ue([Si,pr,TH,Ak,UT,Go,MVe],MH),coe=(e,t,n,r,o)=>{if(e!=null){var{scale:i,type:a}=e;if(i==="auto")return t==="radial"&&o==="radiusAxis"?"band":t==="radial"&&o==="angleAxis"?"linear":a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?"point":a==="category"?"band":"linear";if(typeof i=="string"){var s="scale".concat(_T(i));return s in D1?s:"point"}}},Iw=Ue([Si,pr,qre,hH,Go],coe);function DVe(e){if(e!=null){if(e in D1)return D1[e]();var t="scale".concat(_T(e));if(t in D1)return D1[t]()}}function DH(e,t,n,r){if(!(n==null||r==null)){if(typeof e.scale=="function")return e.scale.copy().domain(n).range(r);var o=DVe(t);if(o!=null){var i=o.domain(n).range(r);return v$e(i),i}}}var RH=(e,t,n)=>{var r=IH(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&$x(e))return tVe(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&$x(e))return nVe(e,t.tickCount,t.allowDecimals)}},kH=Ue([AH,WT,Iw],RH),NH=(e,t,n,r)=>{if(r!=="angleAxis"&&e?.type==="number"&&$x(t)&&Array.isArray(n)&&n.length>0){var o=t[0],i=n[0],a=t[1],s=n[n.length-1];return[Math.min(o,i),Math.max(a,s)]}return t},RVe=Ue([Si,AH,kH,Go],NH),kVe=Ue(Ak,Si,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(Nv(e.map(s=>s.value))).sort((s,l)=>s-l);if(r.length<2)return 1/0;var o=r[r.length-1]-r[0];if(o===0)return 1/0;for(var i=0;i<r.length-1;i++){var a=r[i+1]-r[i];n=Math.min(n,a)}return n/o}}),uoe=Ue(kVe,pr,Lre,Ki,(e,t,n,r)=>r,(e,t,n,r,o)=>{if(!_a(e))return 0;var i=t==="vertical"?r.height:r.width;if(o==="gap")return e*i/2;if(o==="no-gap"){var a=ls(n,e*i),s=e*i/2;return s-a-(s-a)/i*a}return 0}),NVe=(e,t)=>{var n=Up(e,t);return n==null||typeof n.padding!="string"?0:uoe(e,"xAxis",t,n.padding)},_Ve=(e,t)=>{var n=Gp(e,t);return n==null||typeof n.padding!="string"?0:uoe(e,"yAxis",t,n.padding)},LVe=Ue(Up,NVe,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:o}=e;return typeof o=="string"?{left:t,right:t}:{left:((n=o.left)!==null&&n!==void 0?n:0)+t,right:((r=o.right)!==null&&r!==void 0?r:0)+t}}),$Ve=Ue(Gp,_Ve,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:o}=e;return typeof o=="string"?{top:t,bottom:t}:{top:((n=o.top)!==null&&n!==void 0?n:0)+t,bottom:((r=o.bottom)!==null&&r!==void 0?r:0)+t}}),FVe=Ue([Ki,LVe,yk,gk,(e,t,n)=>n],(e,t,n,r,o)=>{var{padding:i}=r;return o?[i.left,n.width-i.right]:[e.left+t.left,e.left+e.width-t.right]}),jVe=Ue([Ki,pr,$Ve,yk,gk,(e,t,n)=>n],(e,t,n,r,o,i)=>{var{padding:a}=o;return i?[r.height-a.bottom,a.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),KT=(e,t,n,r)=>{var o;switch(t){case"xAxis":return FVe(e,n,r);case"yAxis":return jVe(e,n,r);case"zAxis":return(o=xH(e,n))===null||o===void 0?void 0:o.range;case"angleAxis":return Bre(e);case"radiusAxis":return zre(e,n);default:return}},doe=Ue([Si,KT],Pk),Om=Ue([Si,Iw,RVe,doe],DH);Ue([qT,Dk,Go],toe);function foe(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Rk=(e,t)=>t,kk=(e,t,n)=>n,BVe=Ue(hk,Rk,kk,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(foe)),zVe=Ue(mk,Rk,kk,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(foe)),poe=(e,t)=>({width:e.width,height:t.height}),VVe=(e,t)=>{var n=typeof t.width=="number"?t.width:FT;return{width:n,height:e.height}},hoe=Ue(Ki,Up,poe),HVe=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},UVe=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},GVe=Ue(Vp,Ki,BVe,Rk,kk,(e,t,n,r,o)=>{var i={},a;return n.forEach(s=>{var l=poe(t,s);a==null&&(a=HVe(t,r,e));var c=r==="top"&&!o||r==="bottom"&&o;i[s.id]=a-Number(c)*l.height,a+=(c?-1:1)*l.height}),i}),WVe=Ue(zp,Ki,zVe,Rk,kk,(e,t,n,r,o)=>{var i={},a;return n.forEach(s=>{var l=VVe(t,s);a==null&&(a=UVe(t,r,e));var c=r==="left"&&!o||r==="right"&&o;i[s.id]=a-Number(c)*l.width,a+=(c?-1:1)*l.width}),i}),qVe=(e,t)=>{var n=Up(e,t);if(n!=null)return GVe(e,n.orientation,n.mirror)},KVe=Ue([Ki,Up,qVe,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var o=n?.[r];return o==null?{x:e.left,y:0}:{x:e.left,y:o}}}),YVe=(e,t)=>{var n=Gp(e,t);if(n!=null)return WVe(e,n.orientation,n.mirror)},QVe=Ue([Ki,Gp,YVe,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var o=n?.[r];return o==null?{x:0,y:e.top}:{x:o,y:e.top}}}),moe=Ue(Ki,Gp,(e,t)=>{var n=typeof t.width=="number"?t.width:FT;return{width:n,height:e.height}}),Fq=(e,t,n)=>{switch(t){case"xAxis":return hoe(e,n).width;case"yAxis":return moe(e,n).height;default:return}},goe=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:o,type:i,dataKey:a}=n,s=hf(e,r),l=t.map(c=>c.value);if(a&&s&&i==="category"&&o&&fte(l))return l}},_H=Ue([pr,Ak,Si,Go],goe),yoe=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:o,scale:i}=n,a=hf(e,r);if(a&&(o==="number"||i!=="auto"))return t.map(s=>s.value)}},LH=Ue([pr,Ak,WT,Go],yoe),jq=Ue([pr,pVe,Iw,Om,_H,LH,KT,kH,Go],(e,t,n,r,o,i,a,s,l)=>{if(t==null)return null;var c=hf(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:i,duplicateDomain:o,isCategorical:c,niceTicks:s,range:a,realScaleType:n,scale:r}}),XVe=(e,t,n,r,o,i,a,s,l)=>{if(!(t==null||r==null)){var c=hf(e,l),{type:u,ticks:f,tickCount:h}=t,g=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,y=u==="category"&&r.bandwidth?r.bandwidth()/g:0;y=l==="angleAxis"&&i!=null&&i.length>=2?ua(i[0]-i[1])*2*y:y;var x=f||o;if(x){var S=x.map((C,E)=>{var I=a?a.indexOf(C):C;return{index:E,coordinate:r(I)+y,value:C,offset:y}});return S.filter(C=>!hl(C.coordinate))}return c&&s?s.map((C,E)=>({coordinate:r(C)+y,value:C,index:E,offset:y})):r.ticks?r.ticks(h).map(C=>({coordinate:r(C)+y,value:C,offset:y})):r.domain().map((C,E)=>({coordinate:r(C)+y,value:a?a[C]:C,index:E,offset:y}))}},voe=Ue([pr,WT,Iw,Om,kH,KT,_H,LH,Go],XVe),JVe=(e,t,n,r,o,i,a)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var s=hf(e,a),{tickCount:l}=t,c=0;return c=a==="angleAxis"&&r?.length>=2?ua(r[0]-r[1])*2*c:c,s&&i?i.map((u,f)=>({coordinate:n(u)+c,value:u,index:f,offset:c})):n.ticks?n.ticks(l).map(u=>({coordinate:n(u)+c,value:u,offset:c})):n.domain().map((u,f)=>({coordinate:n(u)+c,value:o?o[u]:u,index:f,offset:c}))}},eu=Ue([pr,WT,Om,KT,_H,LH,Go],JVe),tu=Ue(Si,Om,(e,t)=>{if(!(e==null||t==null))return CD(CD({},e),{},{scale:t})}),ZVe=Ue([Si,Iw,AH,doe],DH),eHe=Ue((e,t,n)=>xH(e,n),ZVe,(e,t)=>{if(!(e==null||t==null))return CD(CD({},e),{},{scale:t})}),tHe=Ue([pr,hk,mk],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),boe=e=>e.options.defaultTooltipEventType,xoe=e=>e.options.validateTooltipEventTypes;function woe(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function $H(e,t){var n=boe(e),r=xoe(e);return woe(t,n,r)}function nHe(e){return Zt(t=>$H(t,e))}var Soe=(e,t)=>{var n,r=Number(t);if(!(hl(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},rHe=e=>e.tooltip.settings,am={active:!1,index:null,dataKey:void 0,coordinate:void 0},oHe={itemInteraction:{click:am,hover:am},axisInteraction:{click:am,hover:am},keyboardInteraction:am,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},Coe=tc({name:"tooltip",initialState:oHe,reducers:{addTooltipEntrySettings(e,t){e.tooltipItemPayloads.push(t.payload)},removeTooltipEntrySettings(e,t){var n=mp(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:iHe,removeTooltipEntrySettings:aHe,setTooltipSettingsState:sHe,setActiveMouseOverItemIndex:Eoe,mouseLeaveItem:lHe,mouseLeaveChart:Toe,setActiveClickItemIndex:cHe,setMouseOverAxisIndex:Poe,setMouseClickAxisIndex:uHe,setSyncInteraction:eB,setKeyboardInteraction:tB}=Coe.actions,dHe=Coe.reducer;function Bq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function DM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bq(Object(n),!0).forEach(function(r){fHe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fHe(e,t,n){return(t=pHe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pHe(e){var t=hHe(e,"string");return typeof t=="symbol"?t:t+""}function hHe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mHe(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function gHe(e){return e.index!=null}var Ioe=(e,t,n,r)=>{if(t==null)return am;var o=mHe(e,t,n);if(o==null)return am;if(o.active)return o;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var i=e.settings.active===!0;if(gHe(o)){if(i)return DM(DM({},o),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r};return DM(DM({},am),{},{coordinate:o.coordinate})},FH=(e,t)=>{var n=e?.index;if(n==null)return null;var r=Number(n);if(!_a(r))return n;var o=0,i=1/0;return t.length>0&&(i=t.length-1),String(Math.max(o,Math.min(r,i)))},Ooe=(e,t,n,r,o,i,a,s)=>{if(!(i==null||s==null)){var l=a[0],c=l==null?void 0:s(l.positions,i);if(c!=null)return c;var u=o?.[Number(i)];if(u)switch(n){case"horizontal":return{x:u.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:u.coordinate}}}},Moe=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var o;return n==="hover"?o=e.itemInteraction.hover.dataKey:o=e.itemInteraction.click.dataKey,o==null&&r!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(i=>{var a;return((a=i.settings)===null||a===void 0?void 0:a.dataKey)===o})},YT=e=>e.options.tooltipPayloadSearcher,Ow=e=>e.tooltip;function zq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Vq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zq(Object(n),!0).forEach(function(r){yHe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yHe(e,t,n){return(t=vHe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vHe(e){var t=bHe(e,"string");return typeof t=="symbol"?t:t+""}function bHe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xHe(e,t){return e??t}var Aoe=(e,t,n,r,o,i,a)=>{if(!(t==null||i==null)){var{chartData:s,computedData:l,dataStartIndex:c,dataEndIndex:u}=n,f=[];return e.reduce((h,g)=>{var y,{dataDefinedOnItem:x,settings:S}=g,C=xHe(x,s),E=Array.isArray(C)?Sne(C,c,u):C,I=(y=S?.dataKey)!==null&&y!==void 0?y:r,M=S?.nameKey,O;if(r&&Array.isArray(E)&&!Array.isArray(E[0])&&a==="axis"?O=pte(E,r,o):O=i(E,t,l,M),Array.isArray(O))O.forEach(N=>{var $=Vq(Vq({},S),{},{name:N.name,unit:N.unit,color:void 0,fill:void 0});h.push(E8({tooltipEntrySettings:$,dataKey:N.dataKey,payload:N.payload,value:Ar(N.payload,N.dataKey),name:N.name}))});else{var D;h.push(E8({tooltipEntrySettings:S,dataKey:I,payload:O,value:Ar(O,I),name:(D=Ar(O,M))!==null&&D!==void 0?D:S?.name}))}return h},f)}},jH=Ue([va,pr,qre,hH,Xi],coe),wHe=Ue([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),SHe=Ue([Xi,Ew],wH),QT=Ue([wHe,va,SHe],SH),CHe=Ue([QT],e=>e.filter(Mk)),EHe=Ue([QT],CH),Mw=Ue([EHe,Vm],EH),THe=Ue([CHe,Vm,va],Ure),BH=Ue([Mw,va,QT],PH),PHe=Ue([va],IH),IHe=Ue([QT],e=>e.filter(Mk)),OHe=Ue([THe,IHe,UT],Jre),MHe=Ue([OHe,Vm,Xi],Zre),AHe=Ue([QT],Yre),DHe=Ue([Mw,va,AHe,Dk,Xi],eoe),RHe=Ue([noe,Xi,Ew],Pw),kHe=Ue([RHe,Xi],ioe),NHe=Ue([roe,Xi,Ew],Pw),_He=Ue([NHe,Xi],aoe),LHe=Ue([ooe,Xi,Ew],Pw),$He=Ue([LHe,Xi],soe),FHe=Ue([kHe,$He,_He],ED),jHe=Ue([va,PHe,MHe,DHe,FHe,pr,Xi],OH),Doe=Ue([va,pr,Mw,BH,UT,Xi,jHe],MH),BHe=Ue([Doe,va,jH],RH),zHe=Ue([va,Doe,BHe,Xi],NH),Roe=e=>{var t=Xi(e),n=Ew(e),r=!1;return KT(e,t,n,r)},koe=Ue([va,Roe],Pk),Noe=Ue([va,jH,zHe,koe],DH),VHe=Ue([pr,BH,va,Xi],goe),HHe=Ue([pr,BH,va,Xi],yoe),UHe=(e,t,n,r,o,i,a,s)=>{if(t){var{type:l}=t,c=hf(e,s);if(r){var u=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,f=l==="category"&&r.bandwidth?r.bandwidth()/u:0;return f=s==="angleAxis"&&o!=null&&o?.length>=2?ua(o[0]-o[1])*2*f:f,c&&a?a.map((h,g)=>({coordinate:r(h)+f,value:h,index:g,offset:f})):r.domain().map((h,g)=>({coordinate:r(h)+f,value:i?i[h]:h,index:g,offset:f}))}}},Wp=Ue([pr,va,jH,Noe,Roe,VHe,HHe,Xi],UHe),zH=Ue([boe,xoe,rHe],(e,t,n)=>woe(n.shared,e,t)),_oe=e=>e.tooltip.settings.trigger,VH=e=>e.tooltip.settings.defaultIndex,Nk=Ue([Ow,zH,_oe,VH],Ioe),Lp=Ue([Nk,Mw],FH),Loe=Ue([Wp,Lp],Soe),$oe=Ue([Nk],e=>{if(e)return e.dataKey}),Foe=Ue([Ow,zH,_oe,VH],Moe),GHe=Ue([zp,Vp,pr,Ki,Wp,VH,Foe,YT],Ooe),WHe=Ue([Nk,GHe],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),qHe=Ue([Nk],e=>e.active),KHe=Ue([Foe,Lp,Vm,Hre,Loe,YT,zH],Aoe),YHe=Ue([KHe],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function Hq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Uq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hq(Object(n),!0).forEach(function(r){QHe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QHe(e,t,n){return(t=XHe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XHe(e){var t=JHe(e,"string");return typeof t=="symbol"?t:t+""}function JHe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZHe=()=>Zt(va),eUe=()=>{var e=ZHe(),t=Zt(Wp),n=Zt(Noe);return lv(Uq(Uq({},e),{},{scale:n}),t)},joe=()=>Zt(hH),HH=(e,t)=>t,Boe=(e,t,n)=>n,UH=(e,t,n,r)=>r,tUe=Ue(Wp,e=>lk(e,t=>t.coordinate)),GH=Ue([Ow,HH,Boe,UH],Ioe),zoe=Ue([GH,Mw],FH),nUe=(e,t,n)=>{if(t!=null){var r=Ow(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},Voe=Ue([Ow,HH,Boe,UH],Moe),TD=Ue([zp,Vp,pr,Ki,Wp,UH,Voe,YT],Ooe),rUe=Ue([GH,TD],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),Hoe=Ue(Wp,zoe,Soe),oUe=Ue([Voe,zoe,Vm,Hre,Hoe,YT,HH],Aoe),iUe=Ue([GH],e=>({isActive:e.active,activeIndex:e.index})),aUe=(e,t,n,r,o,i,a,s)=>{if(!(!e||!t||!r||!o||!i)){var l=O$e(e.chartX,e.chartY,t,n,s);if(l){var c=A$e(l,t),u=g$e(c,a,i,r,o),f=M$e(t,i,u,l);return{activeIndex:String(u),activeCoordinate:f}}}};function nB(){return nB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nB.apply(null,arguments)}function Gq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function RM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gq(Object(n),!0).forEach(function(r){sUe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sUe(e,t,n){return(t=lUe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lUe(e){var t=cUe(e,"string");return typeof t=="symbol"?t:t+""}function cUe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uUe(e){var{coordinate:t,payload:n,index:r,offset:o,tooltipAxisBandSize:i,layout:a,cursor:s,tooltipEventType:l,chartName:c}=e,u=t,f=n,h=r;if(!s||!u||c!=="ScatterChart"&&l!=="axis")return null;var g,y;if(c==="ScatterChart")g=u,y=AFe;else if(c==="BarChart")g=DFe(a,u,o,i),y=Lne;else if(a==="radial"){var{cx:x,cy:S,radius:C,startAngle:E,endAngle:I}=$ne(u);g={cx:x,cy:S,startAngle:E,endAngle:I,innerRadius:C,outerRadius:C},y=jne}else g={points:uje(a,u,o)},y=Hy;var M=typeof s=="object"&&"className"in s?s.className:void 0,O=RM(RM(RM(RM({stroke:"#ccc",pointerEvents:"none"},o),g),vo(s,!1)),{},{payload:f,payloadIndex:h,className:ge("recharts-tooltip-cursor",M)});return m.isValidElement(s)?m.cloneElement(s,O):m.createElement(y,O)}function dUe(e){var t=eUe(),n=Ine(),r=jT(),o=joe();return m.createElement(uUe,nB({},e,{coordinate:e.coordinate,index:e.index,payload:e.payload,offset:n,layout:r,tooltipAxisBandSize:t,chartName:o}))}var Uoe=m.createContext(null),fUe=()=>m.useContext(Uoe),WL={exports:{}},Wq;function pUe(){return Wq||(Wq=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function i(l,c,u,f,h){if(typeof u!="function")throw new TypeError("The listener must be a function");var g=new o(u,f||l,h),y=n?n+c:c;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],g]:l._events[y].push(g):(l._events[y]=g,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,f;if(this._eventsCount===0)return c;for(f in u=this._events)t.call(u,f)&&c.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=n?n+c:c,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,g=f.length,y=new Array(g);h<g;h++)y[h]=f[h].fn;return y},s.prototype.listenerCount=function(c){var u=n?n+c:c,f=this._events[u];return f?f.fn?1:f.length:0},s.prototype.emit=function(c,u,f,h,g,y){var x=n?n+c:c;if(!this._events[x])return!1;var S=this._events[x],C=arguments.length,E,I;if(S.fn){switch(S.once&&this.removeListener(c,S.fn,void 0,!0),C){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,u),!0;case 3:return S.fn.call(S.context,u,f),!0;case 4:return S.fn.call(S.context,u,f,h),!0;case 5:return S.fn.call(S.context,u,f,h,g),!0;case 6:return S.fn.call(S.context,u,f,h,g,y),!0}for(I=1,E=new Array(C-1);I<C;I++)E[I-1]=arguments[I];S.fn.apply(S.context,E)}else{var M=S.length,O;for(I=0;I<M;I++)switch(S[I].once&&this.removeListener(c,S[I].fn,void 0,!0),C){case 1:S[I].fn.call(S[I].context);break;case 2:S[I].fn.call(S[I].context,u);break;case 3:S[I].fn.call(S[I].context,u,f);break;case 4:S[I].fn.call(S[I].context,u,f,h);break;default:if(!E)for(O=1,E=new Array(C-1);O<C;O++)E[O-1]=arguments[O];S[I].fn.apply(S[I].context,E)}}return!0},s.prototype.on=function(c,u,f){return i(this,c,u,f,!1)},s.prototype.once=function(c,u,f){return i(this,c,u,f,!0)},s.prototype.removeListener=function(c,u,f,h){var g=n?n+c:c;if(!this._events[g])return this;if(!u)return a(this,g),this;var y=this._events[g];if(y.fn)y.fn===u&&(!h||y.once)&&(!f||y.context===f)&&a(this,g);else{for(var x=0,S=[],C=y.length;x<C;x++)(y[x].fn!==u||h&&!y[x].once||f&&y[x].context!==f)&&S.push(y[x]);S.length?this._events[g]=S.length===1?S[0]:S:a(this,g)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&a(this,u)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(WL)),WL.exports}var hUe=pUe();const mUe=cs(hUe);var NE=new mUe,rB="recharts.syncEvent.tooltip",qq="recharts.syncEvent.brush";function XT(e,t){if(t){var n=Number.parseInt(t,10);if(!hl(n))return e?.[n]}}var gUe={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},Goe=tc({name:"options",initialState:gUe,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),yUe=Goe.reducer,{createEventEmitter:vUe}=Goe.actions;function bUe(e){return e.tooltip.syncInteraction}var xUe={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},Woe=tc({name:"chartData",initialState:xUe,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:Kq,setDataStartEndIndexes:wUe,setComputedData:FTt}=Woe.actions,SUe=Woe.reducer,CUe=["x","y"];function Yq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function dy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yq(Object(n),!0).forEach(function(r){EUe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EUe(e,t,n){return(t=TUe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TUe(e){var t=PUe(e,"string");return typeof t=="symbol"?t:t+""}function PUe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IUe(e,t){if(e==null)return{};var n,r,o=OUe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function OUe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var qoe=()=>{};function MUe(){var e=Zt(mH),t=Zt(gH),n=Lo(),r=Zt($re),o=Zt(Wp),i=jT(),a=vk(),s=Zt(l=>l.rootProps.className);m.useEffect(()=>{if(e==null)return qoe;var l=(c,u,f)=>{if(t!==f&&e===c){if(r==="index"){var h;if(a&&u!==null&&u!==void 0&&(h=u.payload)!==null&&h!==void 0&&h.coordinate){var g=u.payload.coordinate,{x:y,y:x}=g,S=IUe(g,CUe),C=dy(dy(dy({},S),typeof y=="number"&&{x:Math.max(a.x,Math.min(y,a.x+a.width))}),typeof x=="number"&&{y:Math.max(a.y,Math.min(x,a.y+a.height))}),E=dy(dy({},u),{},{payload:dy(dy({},u.payload),{},{coordinate:C})});n(E)}else n(u);return}if(o!=null){var I;if(typeof r=="function"){var M={activeTooltipIndex:u.payload.index==null?void 0:Number(u.payload.index),isTooltipActive:u.payload.active,activeIndex:u.payload.index==null?void 0:Number(u.payload.index),activeLabel:u.payload.label,activeDataKey:u.payload.dataKey,activeCoordinate:u.payload.coordinate},O=r(o,M);I=o[O]}else r==="value"&&(I=o.find(H=>String(H.value)===u.payload.label));var{coordinate:D}=u.payload;if(I==null||u.payload.active===!1||D==null||a==null){n(eB({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0}));return}var{x:N,y:$}=D,L=Math.min(N,a.x+a.width),A=Math.min($,a.y+a.height),F={x:i==="horizontal"?I.coordinate:L,y:i==="horizontal"?A:I.coordinate},z=eB({active:u.payload.active,coordinate:F,dataKey:u.payload.dataKey,index:String(I.index),label:u.payload.label});n(z)}}};return NE.on(rB,l),()=>{NE.off(rB,l)}},[s,n,t,e,r,o,i,a])}function AUe(){var e=Zt(mH),t=Zt(gH),n=Lo();m.useEffect(()=>{if(e==null)return qoe;var r=(o,i,a)=>{t!==a&&e===o&&n(wUe(i))};return NE.on(qq,r),()=>{NE.off(qq,r)}},[n,t,e])}function DUe(){var e=Lo();m.useEffect(()=>{e(vUe())},[e]),MUe(),AUe()}function RUe(e,t,n,r,o,i){var a=Zt(h=>nUe(h,e,t)),s=Zt(gH),l=Zt(mH),c=Zt($re),u=Zt(bUe),f=u?.active;m.useEffect(()=>{if(!f&&l!=null&&s!=null){var h=eB({active:i,coordinate:n,dataKey:a,index:o,label:typeof r=="number"?String(r):r});NE.emit(rB,l,h,s)}},[f,n,a,o,r,s,l,c,i])}function Qq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Xq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qq(Object(n),!0).forEach(function(r){kUe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kUe(e,t,n){return(t=NUe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NUe(e){var t=_Ue(e,"string");return typeof t=="symbol"?t:t+""}function _Ue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LUe(e){return e.dataKey}function $Ue(e,t){return m.isValidElement(e)?m.cloneElement(e,t):typeof e=="function"?m.createElement(e,t):m.createElement(lFe,t)}var Jq=[],FUe={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!gf.isSsr,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function JT(e){var t=wi(e,FUe),{active:n,allowEscapeViewBox:r,animationDuration:o,animationEasing:i,content:a,filterNull:s,isAnimationActive:l,offset:c,payloadUniqBy:u,position:f,reverseDirection:h,useTranslate3d:g,wrapperStyle:y,cursor:x,shared:S,trigger:C,defaultIndex:E,portal:I,axisId:M}=t,O=Lo(),D=typeof E=="number"?String(E):E;m.useEffect(()=>{O(sHe({shared:S,trigger:C,axisId:M,active:n,defaultIndex:D}))},[O,S,C,M,n,D]);var N=vk(),$=Dne(),L=nHe(S),{activeIndex:A,isActive:F}=Zt(se=>iUe(se,L,C,D)),z=Zt(se=>oUe(se,L,C,D)),H=Zt(se=>Hoe(se,L,C,D)),Q=Zt(se=>rUe(se,L,C,D)),G=z,V=fUe(),Y=n??F,[X,te]=Qte([G,Y]),U=L==="axis"?H:void 0;RUe(L,C,Q,U,A,Y);var K=I??V;if(K==null)return null;var ee=G??Jq;Y||(ee=Jq),s&&ee.length&&(ee=Vte(G.filter(se=>se.value!=null&&(se.hide!==!0||t.includeHidden)),u,LUe));var le=ee.length>0,ce=m.createElement(mFe,{allowEscapeViewBox:r,animationDuration:o,animationEasing:i,isAnimationActive:l,active:Y,coordinate:Q,hasPayload:le,offset:c,position:f,reverseDirection:h,useTranslate3d:g,viewBox:N,wrapperStyle:y,lastBoundingBox:X,innerRef:te,hasPortalFromProps:!!I},$Ue(a,Xq(Xq({},t),{},{payload:ee,label:U,active:Y,coordinate:Q,accessibilityLayer:$})));return m.createElement(m.Fragment,null,Ev.createPortal(ce,K),Y&&m.createElement(dUe,{cursor:x,tooltipEventType:L,coordinate:Q,payload:G,index:A}))}var qL={},KL={},YL={},Zq;function jUe(){return Zq||(Zq=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:o,edges:i}={}){let a,s=null;const l=i!=null&&i.includes("leading"),c=i==null||i.includes("trailing"),u=()=>{s!==null&&(n.apply(a,s),a=void 0,s=null)},f=()=>{c&&u(),x()};let h=null;const g=()=>{h!=null&&clearTimeout(h),h=setTimeout(()=>{h=null,f()},r)},y=()=>{h!==null&&(clearTimeout(h),h=null)},x=()=>{y(),a=void 0,s=null},S=()=>{u()},C=function(...E){if(o?.aborted)return;a=this,s=E;const I=h==null;g(),l&&I&&u()};return C.schedule=g,C.cancel=x,C.flush=S,o?.addEventListener("abort",x,{once:!0}),C}e.debounce=t}(YL)),YL}var e9;function BUe(){return e9||(e9=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jUe();function n(r,o=0,i={}){typeof i!="object"&&(i={});const{leading:a=!1,trailing:s=!0,maxWait:l}=i,c=Array(2);a&&(c[0]="leading"),s&&(c[1]="trailing");let u,f=null;const h=t.debounce(function(...x){u=r.apply(this,x),f=null},o,{edges:c}),g=function(...x){return l!=null&&(f===null&&(f=Date.now()),Date.now()-f>=l)?(u=r.apply(this,x),f=Date.now(),h.cancel(),h.schedule(),u):(h.apply(this,x),u)},y=()=>(h.flush(),u);return g.cancel=h.cancel,g.flush=y,g}e.debounce=n}(KL)),KL}var t9;function zUe(){return t9||(t9=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=BUe();function n(r,o=0,i={}){const{leading:a=!0,trailing:s=!0}=i;return t.debounce(r,o,{leading:a,maxWait:o,trailing:s})}e.throttle=n}(qL)),qL}var QL,n9;function VUe(){return n9||(n9=1,QL=zUe().throttle),QL}var HUe=VUe();const UUe=cs(HUe);var W1=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i]};function r9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function XL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r9(Object(n),!0).forEach(function(r){GUe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GUe(e,t,n){return(t=WUe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WUe(e){var t=qUe(e,"string");return typeof t=="symbol"?t:t+""}function qUe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qp=m.forwardRef((e,t)=>{var{aspect:n,initialDimension:r={width:-1,height:-1},width:o="100%",height:i="100%",minWidth:a=0,minHeight:s,maxHeight:l,children:c,debounce:u=0,id:f,className:h,onResize:g,style:y={}}=e,x=m.useRef(null),S=m.useRef();S.current=g,m.useImperativeHandle(t,()=>x.current);var[C,E]=m.useState({containerWidth:r.width,containerHeight:r.height}),I=m.useCallback((O,D)=>{E(N=>{var $=Math.round(O),L=Math.round(D);return N.containerWidth===$&&N.containerHeight===L?N:{containerWidth:$,containerHeight:L}})},[]);m.useEffect(()=>{var O=L=>{var A,{width:F,height:z}=L[0].contentRect;I(F,z),(A=S.current)===null||A===void 0||A.call(S,F,z)};u>0&&(O=UUe(O,u,{trailing:!0,leading:!1}));var D=new ResizeObserver(O),{width:N,height:$}=x.current.getBoundingClientRect();return I(N,$),D.observe(x.current),()=>{D.disconnect()}},[I,u]);var M=m.useMemo(()=>{var{containerWidth:O,containerHeight:D}=C;if(O<0||D<0)return null;W1(Ry(o)||Ry(i),`The width(%s) and height(%s) are both fixed numbers,
- maybe you don't need to use a ResponsiveContainer.`,o,i),W1(!n||n>0,"The aspect(%s) must be greater than zero.",n);var N=Ry(o)?O:o,$=Ry(i)?D:i;return n&&n>0&&(N?$=N/n:$&&(N=$*n),l&&$>l&&($=l)),W1(N>0||$>0,`The width(%s) and height(%s) of chart should be greater than 0,
- please check the style of container, or the props width(%s) and height(%s),
- or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
- height and width.`,N,$,o,i,a,s,n),m.Children.map(c,L=>m.cloneElement(L,{width:N,height:$,style:XL({width:N,height:$},L.props.style)}))},[n,c,i,l,s,a,C,o]);return m.createElement("div",{id:f?"".concat(f):void 0,className:ge("recharts-responsive-container",h),style:XL(XL({},y),{},{width:o,height:i,minWidth:a,minHeight:s,maxHeight:l}),ref:x},m.createElement("div",{style:{width:0,height:0,overflow:"visible"}},M))}),_v=e=>null;_v.displayName="Cell";function KUe(e,t,n){return(t=YUe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YUe(e){var t=QUe(e,"string");return typeof t=="symbol"?t:t+""}function QUe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class XUe{constructor(t){KUe(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function o9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function JUe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o9(Object(n),!0).forEach(function(r){ZUe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZUe(e,t,n){return(t=e5e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e5e(e){var t=t5e(e,"string");return typeof t=="symbol"?t:t+""}function t5e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n5e={cacheSize:2e3,enableCache:!0},Koe=JUe({},n5e),i9=new XUe(Koe.cacheSize),r5e={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},a9="recharts_measurement_span";function o5e(e,t){var n=t.fontSize||"",r=t.fontFamily||"",o=t.fontWeight||"",i=t.fontStyle||"",a=t.letterSpacing||"",s=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(o,"|").concat(i,"|").concat(a,"|").concat(s)}var s9=(e,t)=>{try{var n=document.getElementById(a9);n||(n=document.createElement("span"),n.setAttribute("id",a9),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,r5e,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},q1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||gf.isSsr)return{width:0,height:0};if(!Koe.enableCache)return s9(t,n);var r=o5e(t,n),o=i9.get(r);if(o)return o;var i=s9(t,n);return i9.set(r,i),i},l9=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,c9=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,i5e=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,a5e=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Yoe={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},s5e=Object.keys(Yoe),Q0="NaN";function l5e(e,t){return e*Yoe[t]}class ol{static parse(t){var n,[,r,o]=(n=a5e.exec(t))!==null&&n!==void 0?n:[];return new ol(parseFloat(r),o??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,hl(t)&&(this.unit=""),n!==""&&!i5e.test(n)&&(this.num=NaN,this.unit=""),s5e.includes(n)&&(this.num=l5e(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new ol(NaN,""):new ol(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new ol(NaN,""):new ol(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ol(NaN,""):new ol(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ol(NaN,""):new ol(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return hl(this.num)}}function Qoe(e){if(e.includes(Q0))return Q0;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,o,i]=(n=l9.exec(t))!==null&&n!==void 0?n:[],a=ol.parse(r??""),s=ol.parse(i??""),l=o==="*"?a.multiply(s):a.divide(s);if(l.isNaN())return Q0;t=t.replace(l9,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,f,h]=(c=c9.exec(t))!==null&&c!==void 0?c:[],g=ol.parse(u??""),y=ol.parse(h??""),x=f==="+"?g.add(y):g.subtract(y);if(x.isNaN())return Q0;t=t.replace(c9,x.toString())}return t}var u9=/\(([^()]*)\)/;function c5e(e){for(var t=e,n;(n=u9.exec(t))!=null;){var[,r]=n;t=t.replace(u9,Qoe(r))}return t}function u5e(e){var t=e.replace(/\s+/g,"");return t=c5e(t),t=Qoe(t),t}function d5e(e){try{return u5e(e)}catch{return Q0}}function JL(e){var t=d5e(e.slice(5,-1));return t===Q0?"":t}var f5e=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],p5e=["dx","dy","angle","className","breakAll"];function oB(){return oB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oB.apply(null,arguments)}function d9(e,t){if(e==null)return{};var n,r,o=h5e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h5e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Xoe=/[ \f\n\r\t\v\u2028\u2029]+/,Joe=e=>{var{children:t,breakAll:n,style:r}=e;try{var o=[];Gr(t)||(n?o=t.toString().split(""):o=t.toString().split(Xoe));var i=o.map(s=>({word:s,width:q1(s,r).width})),a=n?0:q1(" ",r).width;return{wordsWithComputedWidth:i,spaceWidth:a}}catch{return null}},m5e=(e,t,n,r,o)=>{var{maxLines:i,children:a,style:s,breakAll:l}=e,c=nn(i),u=a,f=function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return F.reduce((z,H)=>{var{word:Q,width:G}=H,V=z[z.length-1];if(V&&(r==null||o||V.width+G+n<Number(r)))V.words.push(Q),V.width+=G+n;else{var Y={words:[Q],width:G};z.push(Y)}return z},[])},h=f(t),g=A=>A.reduce((F,z)=>F.width>z.width?F:z);if(!c||o)return h;var y=h.length>i||g(h).width>Number(r);if(!y)return h;for(var x="…",S=A=>{var F=u.slice(0,A),z=Joe({breakAll:l,style:s,children:F+x}).wordsWithComputedWidth,H=f(z),Q=H.length>i||g(H).width>Number(r);return[Q,H]},C=0,E=u.length-1,I=0,M;C<=E&&I<=u.length-1;){var O=Math.floor((C+E)/2),D=O-1,[N,$]=S(D),[L]=S(O);if(!N&&!L&&(C=O+1),N&&L&&(E=O-1),!N&&L){M=$;break}I++}return M||h},f9=e=>{var t=Gr(e)?[]:e.toString().split(Xoe);return[{words:t}]},g5e=e=>{var{width:t,scaleToFit:n,children:r,style:o,breakAll:i,maxLines:a}=e;if((t||n)&&!gf.isSsr){var s,l,c=Joe({breakAll:i,children:r,style:o});if(c){var{wordsWithComputedWidth:u,spaceWidth:f}=c;s=u,l=f}else return f9(r);return m5e({breakAll:i,children:r,maxLines:a,style:o},s,l,t,n)}return f9(r)},p9="#808080",_k=m.forwardRef((e,t)=>{var{x:n=0,y:r=0,lineHeight:o="1em",capHeight:i="0.71em",scaleToFit:a=!1,textAnchor:s="start",verticalAnchor:l="end",fill:c=p9}=e,u=d9(e,f5e),f=m.useMemo(()=>g5e({breakAll:u.breakAll,children:u.children,maxLines:u.maxLines,scaleToFit:a,style:u.style,width:u.width}),[u.breakAll,u.children,u.maxLines,a,u.style,u.width]),{dx:h,dy:g,angle:y,className:x,breakAll:S}=u,C=d9(u,p5e);if(!Xc(n)||!Xc(r)||f.length===0)return null;var E=n+(nn(h)?h:0),I=r+(nn(g)?g:0),M;switch(l){case"start":M=JL("calc(".concat(i,")"));break;case"middle":M=JL("calc(".concat((f.length-1)/2," * -").concat(o," + (").concat(i," / 2))"));break;default:M=JL("calc(".concat(f.length-1," * -").concat(o,")"));break}var O=[];if(a){var D=f[0].width,{width:N}=u;O.push("scale(".concat(nn(N)?N/D:1,")"))}return y&&O.push("rotate(".concat(y,", ").concat(E,", ").concat(I,")")),O.length&&(C.transform=O.join(" ")),m.createElement("text",oB({},vo(C,!0),{ref:t,x:E,y:I,className:ge("recharts-text",x),textAnchor:s,fill:c.includes("url")?p9:c}),f.map(($,L)=>{var A=$.words.join(S?"":" ");return m.createElement("tspan",{x:E,dy:L===0?M:o,key:"".concat(A,"-").concat(L)},A)}))});_k.displayName="Text";var y5e=["labelRef"];function v5e(e,t){if(e==null)return{};var n,r,o=b5e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function b5e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function h9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function mi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h9(Object(n),!0).forEach(function(r){x5e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function x5e(e,t,n){return(t=w5e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w5e(e){var t=S5e(e,"string");return typeof t=="symbol"?t:t+""}function S5e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cp(){return cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cp.apply(null,arguments)}var Zoe=m.createContext(null),eie=e=>{var{x:t,y:n,width:r,height:o,children:i}=e,a=m.useMemo(()=>({x:t,y:n,width:r,height:o}),[t,n,r,o]);return m.createElement(Zoe.Provider,{value:a},i)},tie=()=>{var e=m.useContext(Zoe),t=vk();return e||t},C5e=m.createContext(null),E5e=()=>{var e=m.useContext(C5e),t=Zt(Vre);return e||t},T5e=e=>{var{value:t,formatter:n}=e,r=Gr(e.children)?t:e.children;return typeof n=="function"?n(r):r},WH=e=>e!=null&&typeof e=="function",P5e=(e,t)=>{var n=ua(t-e),r=Math.min(Math.abs(t-e),360);return n*r},I5e=(e,t,n,r,o)=>{var{offset:i,className:a}=e,{cx:s,cy:l,innerRadius:c,outerRadius:u,startAngle:f,endAngle:h,clockWise:g}=o,y=(c+u)/2,x=P5e(f,h),S=x>=0?1:-1,C,E;switch(t){case"insideStart":C=f+S*i,E=g;break;case"insideEnd":C=h-S*i,E=!g;break;case"end":C=h+S*i,E=g;break;default:throw new Error("Unsupported position ".concat(t))}E=x<=0?E:!E;var I=_i(s,l,y,C),M=_i(s,l,y,C+(E?1:-1)*359),O="M".concat(I.x,",").concat(I.y,`
- A`).concat(y,",").concat(y,",0,1,").concat(E?0:1,`,
- `).concat(M.x,",").concat(M.y),D=Gr(e.id)?CE("recharts-radial-line-"):e.id;return m.createElement("text",cp({},r,{dominantBaseline:"central",className:ge("recharts-radial-bar-label",a)}),m.createElement("defs",null,m.createElement("path",{id:D,d:O})),m.createElement("textPath",{xlinkHref:"#".concat(D)},n))},O5e=(e,t,n)=>{var{cx:r,cy:o,innerRadius:i,outerRadius:a,startAngle:s,endAngle:l}=e,c=(s+l)/2;if(n==="outside"){var{x:u,y:f}=_i(r,o,a+t,c);return{x:u,y:f,textAnchor:u>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:o,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:o,textAnchor:"middle",verticalAnchor:"end"};var h=(i+a)/2,{x:g,y}=_i(r,o,h,c);return{x:g,y,textAnchor:"middle",verticalAnchor:"middle"}},nie=e=>"cx"in e&&nn(e.cx),M5e=(e,t)=>{var{parentViewBox:n,offset:r,position:o}=e,i;n!=null&&!nie(n)&&(i=n);var{x:a,y:s,width:l,height:c}=t,u=c>=0?1:-1,f=u*r,h=u>0?"end":"start",g=u>0?"start":"end",y=l>=0?1:-1,x=y*r,S=y>0?"end":"start",C=y>0?"start":"end";if(o==="top"){var E={x:a+l/2,y:s-u*r,textAnchor:"middle",verticalAnchor:h};return mi(mi({},E),i?{height:Math.max(s-i.y,0),width:l}:{})}if(o==="bottom"){var I={x:a+l/2,y:s+c+f,textAnchor:"middle",verticalAnchor:g};return mi(mi({},I),i?{height:Math.max(i.y+i.height-(s+c),0),width:l}:{})}if(o==="left"){var M={x:a-x,y:s+c/2,textAnchor:S,verticalAnchor:"middle"};return mi(mi({},M),i?{width:Math.max(M.x-i.x,0),height:c}:{})}if(o==="right"){var O={x:a+l+x,y:s+c/2,textAnchor:C,verticalAnchor:"middle"};return mi(mi({},O),i?{width:Math.max(i.x+i.width-O.x,0),height:c}:{})}var D=i?{width:l,height:c}:{};return o==="insideLeft"?mi({x:a+x,y:s+c/2,textAnchor:C,verticalAnchor:"middle"},D):o==="insideRight"?mi({x:a+l-x,y:s+c/2,textAnchor:S,verticalAnchor:"middle"},D):o==="insideTop"?mi({x:a+l/2,y:s+f,textAnchor:"middle",verticalAnchor:g},D):o==="insideBottom"?mi({x:a+l/2,y:s+c-f,textAnchor:"middle",verticalAnchor:h},D):o==="insideTopLeft"?mi({x:a+x,y:s+f,textAnchor:C,verticalAnchor:g},D):o==="insideTopRight"?mi({x:a+l-x,y:s+f,textAnchor:S,verticalAnchor:g},D):o==="insideBottomLeft"?mi({x:a+x,y:s+c-f,textAnchor:C,verticalAnchor:h},D):o==="insideBottomRight"?mi({x:a+l-x,y:s+c-f,textAnchor:S,verticalAnchor:h},D):o&&typeof o=="object"&&(nn(o.x)||Ry(o.x))&&(nn(o.y)||Ry(o.y))?mi({x:a+ls(o.x,l),y:s+ls(o.y,c),textAnchor:"end",verticalAnchor:"end"},D):mi({x:a+l/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},D)},A5e={offset:5};function em(e){var t=wi(e,A5e),{viewBox:n,position:r,value:o,children:i,content:a,className:s="",textBreakAll:l,labelRef:c}=t,u=E5e(),f=tie(),h=r==="center"?f:u??f,g=n||h;if(!g||Gr(o)&&Gr(i)&&!m.isValidElement(a)&&typeof a!="function")return null;var y=mi(mi({},t),{},{viewBox:g});if(m.isValidElement(a)){var{labelRef:x}=y,S=v5e(y,y5e);return m.cloneElement(a,S)}var C;if(typeof a=="function"){if(C=m.createElement(a,y),m.isValidElement(C))return C}else C=T5e(t);var E=nie(g),I=vo(t,!0);if(E&&(r==="insideStart"||r==="insideEnd"||r==="end"))return I5e(t,r,C,I,g);var M=E?O5e(g,t.offset,t.position):M5e(t,g);return m.createElement(_k,cp({ref:c,className:ge("recharts-label",s)},I,M,{breakAll:l}),C)}em.displayName="Label";var D5e=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?m.createElement(em,cp({key:"label-implicit"},r)):Xc(e)?m.createElement(em,cp({key:"label-implicit",value:e},r)):m.isValidElement(e)?e.type===em?m.cloneElement(e,mi({key:"label-implicit"},r)):m.createElement(em,cp({key:"label-implicit",content:e},r)):WH(e)?m.createElement(em,cp({key:"label-implicit",content:e},r)):e&&typeof e=="object"?m.createElement(em,cp({},e,{key:"label-implicit"},r)):null};function rie(e){var{label:t}=e,n=tie();return D5e(t,n)||null}var ZL={},e$={},m9;function R5e(){return m9||(m9=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t}(e$)),e$}var t$={},g9;function k5e(){return g9||(g9=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t}(t$)),t$}var y9;function N5e(){return y9||(y9=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=R5e(),n=k5e(),r=IV();function o(i){if(r.isArrayLike(i))return t.last(n.toArray(i))}e.last=o}(ZL)),ZL}var n$,v9;function _5e(){return v9||(v9=1,n$=N5e().last),n$}var L5e=_5e();const $5e=cs(L5e);var F5e=["valueAccessor"],j5e=["dataKey","clockWise","id","textBreakAll"];function PD(){return PD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PD.apply(null,arguments)}function b9(e,t){if(e==null)return{};var n,r,o=B5e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function B5e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var z5e=e=>Array.isArray(e.value)?$5e(e.value):e.value,oie=m.createContext(void 0),Lk=oie.Provider,iie=m.createContext(void 0),V5e=iie.Provider;function H5e(){return m.useContext(oie)}function U5e(){return m.useContext(iie)}function fA(e){var{valueAccessor:t=z5e}=e,n=b9(e,F5e),{dataKey:r,clockWise:o,id:i,textBreakAll:a}=n,s=b9(n,j5e),l=H5e(),c=U5e(),u=l||c;return!u||!u.length?null:m.createElement(so,{className:"recharts-label-list"},u.map((f,h)=>{var g,y=Gr(r)?t(f,h):Ar(f&&f.payload,r),x=Gr(i)?{}:{id:"".concat(i,"-").concat(h)};return m.createElement(em,PD({},vo(f,!0),s,x,{fill:(g=n.fill)!==null&&g!==void 0?g:f.fill,parentViewBox:f.parentViewBox,value:y,textBreakAll:a,viewBox:f.viewBox,key:"label-".concat(h),index:h}))}))}fA.displayName="LabelList";function ZT(e){var{label:t}=e;return t?t===!0?m.createElement(fA,{key:"labelList-implicit"}):m.isValidElement(t)||WH(t)?m.createElement(fA,{key:"labelList-implicit",content:t}):typeof t=="object"?m.createElement(fA,PD({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function iB(){return iB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iB.apply(null,arguments)}var $k=e=>{var{cx:t,cy:n,r,className:o}=e,i=ge("recharts-dot",o);return t===+t&&n===+n&&r===+r?m.createElement("circle",iB({},ml(e),xV(e),{className:i,cx:t,cy:n,r})):null},aie=e=>e.graphicalItems.polarItems,G5e=Ue([Go,GT],wH),qH=Ue([aie,Si,G5e],SH),W5e=Ue([qH],CH),KH=Ue([W5e,dH],EH),q5e=Ue([KH,Si,qH],PH),K5e=Ue([KH,Si,qH],(e,t,n)=>n.length>0?e.flatMap(r=>n.flatMap(o=>{var i,a=Ar(r,(i=t.dataKey)!==null&&i!==void 0?i:o.dataKey);return{value:a,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(r=>({value:Ar(r,t.dataKey),errorDomain:[]})):e.map(r=>({value:r,errorDomain:[]}))),x9=()=>{},Y5e=Ue([Si,loe,x9,K5e,x9,pr,Go],OH),sie=Ue([Si,pr,KH,q5e,UT,Go,Y5e],MH),Q5e=Ue([sie,Si,Iw],RH);Ue([Si,sie,Q5e,Go],NH);var X5e={radiusAxis:{},angleAxis:{}},lie=tc({name:"polarAxis",initialState:X5e,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:jTt,removeRadiusAxis:BTt,addAngleAxis:zTt,removeAngleAxis:VTt}=lie.actions,J5e=lie.reducer;function w9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function S9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w9(Object(n),!0).forEach(function(r){Z5e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z5e(e,t,n){return(t=e4e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e4e(e){var t=t4e(e,"string");return typeof t=="symbol"?t:t+""}function t4e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n4e=(e,t)=>t,YH=Ue([aie,n4e],(e,t)=>e.filter(n=>n.type==="pie").find(n=>n.id===t)),r4e=[],QH=(e,t,n)=>n?.length===0?r4e:n,cie=Ue([dH,YH,QH],(e,t,n)=>{var{chartData:r}=e;if(t!=null){var o;if(t?.data!=null&&t.data.length>0?o=t.data:o=r,(!o||!o.length)&&n!=null&&(o=n.map(i=>S9(S9({},t.presentationProps),i.props))),o!=null)return o}}),o4e=Ue([cie,YH,QH],(e,t,n)=>{if(!(e==null||t==null))return e.map((r,o)=>{var i,a=Ar(r,t.nameKey,t.name),s;return n!=null&&(i=n[o])!==null&&i!==void 0&&(i=i.props)!==null&&i!==void 0&&i.fill?s=n[o].props.fill:typeof r=="object"&&r!=null&&"fill"in r?s=r.fill:s=t.fill,{value:mf(a,t.dataKey),color:s,payload:r,type:t.legendType}})}),i4e=Ue([cie,YH,QH,Ki],(e,t,n,r)=>{if(!(t==null||e==null))return n3e({offset:r,pieSettings:t,displayedData:e,cells:n})}),r$={},C9;function a4e(){return C9||(C9=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const o=n[Symbol.toStringTag];return o==null||!Object.getOwnPropertyDescriptor(n,Symbol.toStringTag)?.writable?!1:n.toString()===`[object ${o}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t}(r$)),r$}var o$,E9;function s4e(){return E9||(E9=1,o$=a4e().isPlainObject),o$}var l4e=s4e();const c4e=cs(l4e);function T9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function P9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T9(Object(n),!0).forEach(function(r){u4e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u4e(e,t,n){return(t=d4e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d4e(e){var t=f4e(e,"string");return typeof t=="symbol"?t:t+""}function f4e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ID(){return ID=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ID.apply(null,arguments)}var I9=(e,t,n,r,o)=>{var i=n-r,a;return a="M ".concat(e,",").concat(t),a+="L ".concat(e+n,",").concat(t),a+="L ".concat(e+n-i/2,",").concat(t+o),a+="L ".concat(e+n-i/2-r,",").concat(t+o),a+="L ".concat(e,",").concat(t," Z"),a},p4e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},h4e=e=>{var t=wi(e,p4e),{x:n,y:r,upperWidth:o,lowerWidth:i,height:a,className:s}=t,{animationEasing:l,animationDuration:c,animationBegin:u,isUpdateAnimationActive:f}=t,h=m.useRef(),[g,y]=m.useState(-1),x=m.useRef(o),S=m.useRef(i),C=m.useRef(a),E=m.useRef(n),I=m.useRef(r),M=Dv(e,"trapezoid-");if(m.useEffect(()=>{if(h.current&&h.current.getTotalLength)try{var Q=h.current.getTotalLength();Q&&y(Q)}catch{}},[]),n!==+n||r!==+r||o!==+o||i!==+i||a!==+a||o===0&&i===0||a===0)return null;var O=ge("recharts-trapezoid",s);if(!f)return m.createElement("g",null,m.createElement("path",ID({},vo(t,!0),{className:O,d:I9(n,r,o,i,a)})));var D=x.current,N=S.current,$=C.current,L=E.current,A=I.current,F="0px ".concat(g===-1?1:g,"px"),z="".concat(g,"px 0px"),H=Rne(["strokeDasharray"],c,l);return m.createElement(Av,{animationId:M,key:M,canBegin:g>0,duration:c,easing:l,isActive:f,begin:u},Q=>{var G=ao(D,o,Q),V=ao(N,i,Q),Y=ao($,a,Q),X=ao(L,n,Q),te=ao(A,r,Q);h.current&&(x.current=G,S.current=V,C.current=Y,E.current=X,I.current=te);var U=Q>0?{transition:H,strokeDasharray:z}:{strokeDasharray:F};return m.createElement("path",ID({},vo(t,!0),{className:O,d:I9(X,te,G,V,Y),ref:h,style:P9(P9({},U),t.style)}))})},m4e=["option","shapeType","propTransformer","activeClassName","isActive"];function g4e(e,t){if(e==null)return{};var n,r,o=y4e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function y4e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function O9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function OD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O9(Object(n),!0).forEach(function(r){v4e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function v4e(e,t,n){return(t=b4e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b4e(e){var t=x4e(e,"string");return typeof t=="symbol"?t:t+""}function x4e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w4e(e,t){return OD(OD({},t),e)}function S4e(e,t){return e==="symbols"}function M9(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return m.createElement(Lne,n);case"trapezoid":return m.createElement(h4e,n);case"sector":return m.createElement(jne,n);case"symbols":if(S4e(t))return m.createElement(sk,n);break;default:return null}}function C4e(e){return m.isValidElement(e)?e.props:e}function MD(e){var{option:t,shapeType:n,propTransformer:r=w4e,activeClassName:o="recharts-active-shape",isActive:i}=e,a=g4e(e,m4e),s;if(m.isValidElement(t))s=m.cloneElement(t,OD(OD({},a),C4e(t)));else if(typeof t=="function")s=t(a);else if(c4e(t)&&typeof t!="boolean"){var l=r(t,a);s=m.createElement(M9,{shapeType:n,elementProps:l})}else{var c=a;s=m.createElement(M9,{shapeType:n,elementProps:c})}return i?m.createElement(so,{className:o},s):s}var Fk=(e,t)=>{var n=Lo();return(r,o)=>i=>{e?.(r,o,i),n(Eoe({activeIndex:String(o),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}},jk=e=>{var t=Lo();return(n,r)=>o=>{e?.(n,r,o),t(lHe())}},Bk=(e,t)=>{var n=Lo();return(r,o)=>i=>{e?.(r,o,i),n(cHe({activeIndex:String(o),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}};function eP(e){var{fn:t,args:n}=e,r=Lo(),o=Yi();return m.useEffect(()=>{if(!o){var i=t(n);return r(iHe(i)),()=>{r(aHe(i))}}},[t,n,r,o]),null}var uie=()=>{};function zk(e){var{legendPayload:t}=e,n=Lo(),r=Yi();return m.useEffect(()=>r?uie:(n(Mne(t)),()=>{n(Ane(t))}),[n,r,t]),null}function E4e(e){var{legendPayload:t}=e,n=Lo(),r=Zt(pr);return m.useEffect(()=>r!=="centric"&&r!=="radial"?uie:(n(Mne(t)),()=>{n(Ane(t))}),[n,r,t]),null}var i$,T4e=()=>{var[e]=m.useState(()=>CE("uid-"));return e},P4e=(i$=oE.useId)!==null&&i$!==void 0?i$:T4e;function I4e(e,t){var n=P4e();return t||(e?"".concat(e,"-").concat(n):n)}var O4e=m.createContext(void 0),tP=e=>{var{id:t,type:n,children:r}=e,o=I4e("recharts-".concat(n),t);return m.createElement(O4e.Provider,{value:o},r(o))},M4e={cartesianItems:[],polarItems:[]},die=tc({name:"graphicalItems",initialState:M4e,reducers:{addCartesianGraphicalItem(e,t){e.cartesianItems.push(t.payload)},replaceCartesianGraphicalItem(e,t){var{prev:n,next:r}=t.payload,o=mp(e).cartesianItems.indexOf(n);o>-1&&(e.cartesianItems[o]=r)},removeCartesianGraphicalItem(e,t){var n=mp(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},addPolarGraphicalItem(e,t){e.polarItems.push(t.payload)},removePolarGraphicalItem(e,t){var n=mp(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)}}}),{addCartesianGraphicalItem:A4e,replaceCartesianGraphicalItem:D4e,removeCartesianGraphicalItem:R4e,addPolarGraphicalItem:k4e,removePolarGraphicalItem:N4e}=die.actions,_4e=die.reducer;function Vk(e){var t=Lo(),n=m.useRef(null);return m.useEffect(()=>{n.current===null?t(A4e(e)):n.current!==e&&t(D4e({prev:n.current,next:e})),n.current=e},[t,e]),m.useEffect(()=>()=>{n.current&&(t(R4e(n.current)),n.current=null)},[t]),null}function L4e(e){var t=Lo();return m.useEffect(()=>(t(k4e(e)),()=>{t(N4e(e))}),[t,e]),null}var $4e=["onMouseEnter","onClick","onMouseLeave"],F4e=["id"],j4e=["id"];function XH(e,t){if(e==null)return{};var n,r,o=B4e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function B4e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function A9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Vo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A9(Object(n),!0).forEach(function(r){z4e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function z4e(e,t,n){return(t=V4e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V4e(e){var t=H4e(e,"string");return typeof t=="symbol"?t:t+""}function H4e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mm(){return Mm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mm.apply(null,arguments)}function U4e(e){var t=m.useMemo(()=>nk(e.children,_v),[e.children]),n=Zt(r=>o4e(r,e.id,t));return n==null?null:m.createElement(E4e,{legendPayload:n})}function G4e(e){var{dataKey:t,nameKey:n,sectors:r,stroke:o,strokeWidth:i,fill:a,name:s,hide:l,tooltipType:c}=e;return{dataDefinedOnItem:r.map(u=>u.tooltipPayload),positions:r.map(u=>u.tooltipPosition),settings:{stroke:o,strokeWidth:i,fill:a,dataKey:t,nameKey:n,name:mf(s,t),hide:l,type:c,color:a,unit:""}}}var W4e=(e,t)=>e>t?"start":e<t?"end":"middle",q4e=(e,t,n)=>ls(typeof t=="function"?t(e):t,n,n*.8),K4e=(e,t,n)=>{var{top:r,left:o,width:i,height:a}=t,s=wne(i,a),l=o+ls(e.cx,i,i/2),c=r+ls(e.cy,a,a/2),u=ls(e.innerRadius,s,0),f=q4e(n,e.outerRadius,s),h=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:l,cy:c,innerRadius:u,outerRadius:f,maxRadius:h}},Y4e=(e,t)=>{var n=ua(t-e),r=Math.min(Math.abs(t-e),360);return n*r};function Q4e(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var X4e=(e,t)=>{if(m.isValidElement(e))return m.cloneElement(e,t);if(typeof e=="function")return e(t);var n=ge("recharts-pie-label-line",typeof e!="boolean"?e.className:"");return m.createElement(Hy,Mm({},t,{type:"linear",className:n}))},J4e=(e,t,n)=>{if(m.isValidElement(e))return m.cloneElement(e,t);var r=n;if(typeof e=="function"&&(r=e(t),m.isValidElement(r)))return r;var o=ge("recharts-pie-label-text",Q4e(e));return m.createElement(_k,Mm({},t,{alignmentBaseline:"middle",className:o}),r)};function Z4e(e){var{sectors:t,props:n,showLabels:r}=e,{label:o,labelLine:i,dataKey:a}=n;if(!r||!o||!t)return null;var s=ml(n),l=vo(o,!1),c=vo(i,!1),u=typeof o=="object"&&"offsetRadius"in o&&typeof o.offsetRadius=="number"&&o.offsetRadius||20,f=t.map((h,g)=>{var y=(h.startAngle+h.endAngle)/2,x=_i(h.cx,h.cy,h.outerRadius+u,y),S=Vo(Vo(Vo(Vo({},s),h),{},{stroke:"none"},l),{},{index:g,textAnchor:W4e(x.x,h.cx)},x),C=Vo(Vo(Vo(Vo({},s),h),{},{fill:"none",stroke:h.fill},c),{},{index:g,points:[_i(h.cx,h.cy,h.outerRadius,y),x],key:"line"});return m.createElement(so,{key:"label-".concat(h.startAngle,"-").concat(h.endAngle,"-").concat(h.midAngle,"-").concat(g)},i&&X4e(i,C),J4e(o,S,Ar(h,a)))});return m.createElement(so,{className:"recharts-pie-labels"},f)}function e3e(e){var{sectors:t,props:n,showLabels:r}=e,{label:o}=n;return typeof o=="object"&&o!=null&&"position"in o?m.createElement(ZT,{label:o}):m.createElement(Z4e,{sectors:t,props:n,showLabels:r})}function t3e(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:o}=e,i=Zt(Lp),{onMouseEnter:a,onClick:s,onMouseLeave:l}=o,c=XH(o,$4e),u=Fk(a,o.dataKey),f=jk(l),h=Bk(s,o.dataKey);return t==null||t.length===0?null:m.createElement(m.Fragment,null,t.map((g,y)=>{if(g?.startAngle===0&&g?.endAngle===0&&t.length!==1)return null;var x=n&&String(y)===i,S=i?r:null,C=x?n:S,E=Vo(Vo({},g),{},{stroke:g.stroke,tabIndex:-1,[LV]:y,[$V]:o.dataKey});return m.createElement(so,Mm({tabIndex:-1,className:"recharts-pie-sector"},bw(c,g,y),{onMouseEnter:u(g,y),onMouseLeave:f(g,y),onClick:h(g,y),key:"sector-".concat(g?.startAngle,"-").concat(g?.endAngle,"-").concat(g.midAngle,"-").concat(y)}),m.createElement(MD,Mm({option:C,isActive:x,shapeType:"sector"},E)))}))}function n3e(e){var t,{pieSettings:n,displayedData:r,cells:o,offset:i}=e,{cornerRadius:a,startAngle:s,endAngle:l,dataKey:c,nameKey:u,tooltipType:f}=n,h=Math.abs(n.minAngle),g=Y4e(s,l),y=Math.abs(g),x=r.length<=1?0:(t=n.paddingAngle)!==null&&t!==void 0?t:0,S=r.filter(D=>Ar(D,c,0)!==0).length,C=(y>=360?S:S-1)*x,E=y-S*h-C,I=r.reduce((D,N)=>{var $=Ar(N,c,0);return D+(nn($)?$:0)},0),M;if(I>0){var O;M=r.map((D,N)=>{var $=Ar(D,c,0),L=Ar(D,u,N),A=K4e(n,i,D),F=(nn($)?$:0)/I,z,H=Vo(Vo({},D),o&&o[N]&&o[N].props);N?z=O.endAngle+ua(g)*x*($!==0?1:0):z=s;var Q=z+ua(g)*(($!==0?h:0)+F*E),G=(z+Q)/2,V=(A.innerRadius+A.outerRadius)/2,Y=[{name:L,value:$,payload:H,dataKey:c,type:f}],X=_i(A.cx,A.cy,V,G);return O=Vo(Vo(Vo(Vo({},n.presentationProps),{},{percent:F,cornerRadius:a,name:L,tooltipPayload:Y,midAngle:G,middleRadius:V,tooltipPosition:X},H),A),{},{value:$,startAngle:z,endAngle:Q,payload:H,paddingAngle:ua(g)*x}),O})}return M}function r3e(e){var{showLabels:t,sectors:n,children:r}=e,o=m.useMemo(()=>!t||!n?[]:n.map(i=>({value:i.value,payload:i.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:i.cx,cy:i.cy,innerRadius:i.innerRadius,outerRadius:i.outerRadius,startAngle:i.startAngle,endAngle:i.endAngle,clockWise:!1},fill:i.fill})),[n,t]);return m.createElement(V5e,{value:t?o:void 0},r)}function o3e(e){var{props:t,previousSectorsRef:n}=e,{sectors:r,isAnimationActive:o,animationBegin:i,animationDuration:a,animationEasing:s,activeShape:l,inactiveShape:c,onAnimationStart:u,onAnimationEnd:f}=t,h=Dv(t,"recharts-pie-"),g=n.current,[y,x]=m.useState(!1),S=m.useCallback(()=>{typeof f=="function"&&f(),x(!1)},[f]),C=m.useCallback(()=>{typeof u=="function"&&u(),x(!0)},[u]);return m.createElement(r3e,{showLabels:!y,sectors:r},m.createElement(Av,{animationId:h,begin:i,duration:a,isActive:o,easing:s,onAnimationStart:C,onAnimationEnd:S,key:h},E=>{var I=[],M=r&&r[0],O=M?.startAngle;return r?.forEach((D,N)=>{var $=g&&g[N],L=N>0?iv(D,"paddingAngle",0):0;if($){var A=ao($.endAngle-$.startAngle,D.endAngle-D.startAngle,E),F=Vo(Vo({},D),{},{startAngle:O+L,endAngle:O+A+L});I.push(F),O=F.endAngle}else{var{endAngle:z,startAngle:H}=D,Q=ao(0,z-H,E),G=Vo(Vo({},D),{},{startAngle:O+L,endAngle:O+Q+L});I.push(G),O=G.endAngle}}),n.current=I,m.createElement(so,null,m.createElement(t3e,{sectors:I,activeShape:l,inactiveShape:c,allOtherPieProps:t}))}),m.createElement(e3e,{showLabels:!y,sectors:r,props:t}),t.children)}var i3e={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:!gf.isSsr,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff"};function a3e(e){var{id:t}=e,n=XH(e,F4e),{hide:r,className:o,rootTabIndex:i}=e,a=m.useMemo(()=>nk(e.children,_v),[e.children]),s=Zt(u=>i4e(u,t,a)),l=m.useRef(null),c=ge("recharts-pie",o);return r||s==null?(l.current=null,m.createElement(so,{tabIndex:i,className:c})):m.createElement(m.Fragment,null,m.createElement(eP,{fn:G4e,args:Vo(Vo({},e),{},{sectors:s})}),m.createElement(so,{tabIndex:i,className:c},m.createElement(o3e,{props:Vo(Vo({},n),{},{sectors:s}),previousSectorsRef:l})))}function JH(e){var t=wi(e,i3e),{id:n}=t,r=XH(t,j4e),o=ml(r);return m.createElement(tP,{id:n,type:"pie"},i=>m.createElement(m.Fragment,null,m.createElement(L4e,{type:"pie",id:i,data:r.data,dataKey:r.dataKey,hide:r.hide,angleAxisId:0,radiusAxisId:0,name:r.name,nameKey:r.nameKey,tooltipType:r.tooltipType,legendType:r.legendType,fill:r.fill,cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,paddingAngle:r.paddingAngle,minAngle:r.minAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,cornerRadius:r.cornerRadius,presentationProps:o,maxRadius:t.maxRadius}),m.createElement(U4e,Mm({},r,{id:i})),m.createElement(a3e,Mm({},r,{id:i}))))}JH.displayName="Pie";function D9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function R9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D9(Object(n),!0).forEach(function(r){s3e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function s3e(e,t,n){return(t=l3e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l3e(e){var t=c3e(e,"string");return typeof t=="symbol"?t:t+""}function c3e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var u3e={xAxis:{},yAxis:{},zAxis:{}},fie=tc({name:"cartesianAxis",initialState:u3e,reducers:{addXAxis(e,t){e.xAxis[t.payload.id]=t.payload},removeXAxis(e,t){delete e.xAxis[t.payload.id]},addYAxis(e,t){e.yAxis[t.payload.id]=t.payload},removeYAxis(e,t){delete e.yAxis[t.payload.id]},addZAxis(e,t){e.zAxis[t.payload.id]=t.payload},removeZAxis(e,t){delete e.zAxis[t.payload.id]},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload;e.yAxis[n]&&(e.yAxis[n]=R9(R9({},e.yAxis[n]),{},{width:r}))}}}),{addXAxis:d3e,removeXAxis:f3e,addYAxis:p3e,removeYAxis:h3e,addZAxis:m3e,removeZAxis:g3e,updateYAxisWidth:y3e}=fie.actions,v3e=fie.reducer,b3e=Ue([Ki],e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}),x3e=Ue([b3e,zp,Vp],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),Hk=()=>Zt(x3e),w3e=()=>Zt(YHe);function k9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function N9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k9(Object(n),!0).forEach(function(r){S3e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S3e(e,t,n){return(t=C3e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C3e(e){var t=E3e(e,"string");return typeof t=="symbol"?t:t+""}function E3e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var T3e=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:o,dataKey:i}=e;if(o===!1||t.x==null||t.y==null)return null;var a=N9(N9({index:n,dataKey:i,cx:t.x,cy:t.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},vo(o,!1)),xV(o)),s;return m.isValidElement(o)?s=m.cloneElement(o,a):typeof o=="function"?s=o(a):s=m.createElement($k,a),m.createElement(so,{className:"recharts-active-dot"},s)};function aB(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:o}=e,i=Zt(Lp),a=w3e();if(t==null||a==null)return null;var s=t.find(l=>a.includes(l.payload));return Gr(s)?null:T3e({point:s,childIndex:Number(i),mainColor:n,dataKey:o,activeDot:r})}var P3e="Invariant failed";function pie(e,t){throw new Error(P3e)}var I3e=["x","y"];function sB(){return sB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sB.apply(null,arguments)}function _9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function o1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_9(Object(n),!0).forEach(function(r){O3e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O3e(e,t,n){return(t=M3e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M3e(e){var t=A3e(e,"string");return typeof t=="symbol"?t:t+""}function A3e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D3e(e,t){if(e==null)return{};var n,r,o=R3e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function R3e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function k3e(e,t){var{x:n,y:r}=e,o=D3e(e,I3e),i="".concat(n),a=parseInt(i,10),s="".concat(r),l=parseInt(s,10),c="".concat(t.height||o.height),u=parseInt(c,10),f="".concat(t.width||o.width),h=parseInt(f,10);return o1(o1(o1(o1(o1({},t),o),a?{x:a}:{}),l?{y:l}:{}),{},{height:u,width:h,name:t.name,radius:t.radius})}function ZH(e){return m.createElement(MD,sB({shapeType:"rectangle",propTransformer:k3e,activeClassName:"recharts-active-bar"},e))}var N3e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,o)=>{if(nn(t))return t;var i=nn(r)||Gr(r);return i?t(r,o):(i||pie(),n)}},_3e={},hie=tc({name:"errorBars",initialState:_3e,reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:o}=t.payload;e[n]&&(e[n]=e[n].map(i=>i.dataKey===r.dataKey&&i.direction===r.direction?o:i))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(o=>o.dataKey!==r.dataKey||o.direction!==r.direction))}}}),{addErrorBar:HTt,replaceErrorBar:UTt,removeErrorBar:GTt}=hie.actions,L3e=hie.reducer,$3e=["children"];function F3e(e,t){if(e==null)return{};var n,r,o=j3e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function j3e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var B3e={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},z3e=m.createContext(B3e);function eU(e){var{children:t}=e,n=F3e(e,$3e);return m.createElement(z3e.Provider,{value:n},t)}function nP(e,t){var n,r,o=Zt(c=>Up(c,e)),i=Zt(c=>Gp(c,t)),a=(n=o?.allowDataOverflow)!==null&&n!==void 0?n:Al.allowDataOverflow,s=(r=i?.allowDataOverflow)!==null&&r!==void 0?r:Dl.allowDataOverflow,l=a||s;return{needClip:l,needClipX:a,needClipY:s}}function Uk(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,o=Hk(),{needClipX:i,needClipY:a,needClip:s}=nP(t,n);if(!s)return null;var{x:l,y:c,width:u,height:f}=o;return m.createElement("clipPath",{id:"clipPath-".concat(r)},m.createElement("rect",{x:i?l:l-u/2,y:a?c:c-f/2,width:i?u:u*2,height:a?f:f*2}))}var V3e=["onMouseEnter","onMouseLeave","onClick"],H3e=["value","background","tooltipPosition"],U3e=["id"],G3e=["onMouseEnter","onClick","onMouseLeave"];function Am(){return Am=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Am.apply(null,arguments)}function L9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function As(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L9(Object(n),!0).forEach(function(r){W3e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function W3e(e,t,n){return(t=q3e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q3e(e){var t=K3e(e,"string");return typeof t=="symbol"?t:t+""}function K3e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AD(e,t){if(e==null)return{};var n,r,o=Y3e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Y3e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Q3e=e=>{var{dataKey:t,name:n,fill:r,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:r,value:mf(n,t),payload:e}]};function X3e(e){var{dataKey:t,stroke:n,strokeWidth:r,fill:o,name:i,hide:a,unit:s}=e;return{dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:n,strokeWidth:r,fill:o,dataKey:t,nameKey:void 0,name:mf(i,t),hide:a,type:e.tooltipType,color:e.fill,unit:s}}}function J3e(e){var t=Zt(Lp),{data:n,dataKey:r,background:o,allOtherBarProps:i}=e,{onMouseEnter:a,onMouseLeave:s,onClick:l}=i,c=AD(i,V3e),u=Fk(a,r),f=jk(s),h=Bk(l,r);if(!o||n==null)return null;var g=vo(o,!1);return m.createElement(m.Fragment,null,n.map((y,x)=>{var{value:S,background:C,tooltipPosition:E}=y,I=AD(y,H3e);if(!C)return null;var M=u(y,x),O=f(y,x),D=h(y,x),N=As(As(As(As(As({option:o,isActive:String(x)===t},I),{},{fill:"#eee"},C),g),bw(c,y,x)),{},{onMouseEnter:M,onMouseLeave:O,onClick:D,dataKey:r,index:x,className:"recharts-bar-background-rectangle"});return m.createElement(ZH,Am({key:"background-bar-".concat(N.index)},N))}))}function Z3e(e){var{showLabels:t,children:n,rects:r}=e,o=r?.map(i=>{var a={x:i.x,y:i.y,width:i.width,height:i.height};return As(As({},a),{},{value:i.value,payload:i.payload,parentViewBox:i.parentViewBox,viewBox:a,fill:i.fill})});return m.createElement(Lk,{value:t?o:void 0},n)}function e6e(e){var{shape:t,activeBar:n,baseProps:r,entry:o,index:i,dataKey:a}=e,s=Zt(Lp),l=Zt($oe),c=n&&String(i)===s&&(l==null||a===l),u=c?n:t;return m.createElement(ZH,Am({},r,o,{isActive:c,option:u,index:i,dataKey:a}))}function t6e(e){var{shape:t,baseProps:n,entry:r,index:o,dataKey:i}=e;return m.createElement(ZH,Am({},n,r,{isActive:!1,option:t,index:o,dataKey:i}))}function n6e(e){var{data:t,props:n}=e,r=ml(n),{id:o}=r,i=AD(r,U3e),{shape:a,dataKey:s,activeBar:l}=n,{onMouseEnter:c,onClick:u,onMouseLeave:f}=n,h=AD(n,G3e),g=Fk(c,s),y=jk(f),x=Bk(u,s);return t?m.createElement(m.Fragment,null,t.map((S,C)=>m.createElement(so,Am({className:"recharts-bar-rectangle"},bw(h,S,C),{onMouseEnter:g(S,C),onMouseLeave:y(S,C),onClick:x(S,C),key:"rectangle-".concat(S?.x,"-").concat(S?.y,"-").concat(S?.value,"-").concat(C)}),l?m.createElement(e6e,{shape:a,activeBar:l,baseProps:i,entry:S,index:C,dataKey:s}):m.createElement(t6e,{shape:a,baseProps:i,entry:S,index:C,dataKey:s})))):null}function r6e(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:o,isAnimationActive:i,animationBegin:a,animationDuration:s,animationEasing:l,onAnimationEnd:c,onAnimationStart:u}=t,f=n.current,h=Dv(t,"recharts-bar-"),[g,y]=m.useState(!1),x=!g,S=m.useCallback(()=>{typeof c=="function"&&c(),y(!1)},[c]),C=m.useCallback(()=>{typeof u=="function"&&u(),y(!0)},[u]);return m.createElement(Z3e,{showLabels:x,rects:r},m.createElement(Av,{animationId:h,begin:a,duration:s,isActive:i,easing:l,onAnimationEnd:S,onAnimationStart:C,key:h},E=>{var I=E===1?r:r?.map((M,O)=>{var D=f&&f[O];if(D)return As(As({},M),{},{x:ao(D.x,M.x,E),y:ao(D.y,M.y,E),width:ao(D.width,M.width,E),height:ao(D.height,M.height,E)});if(o==="horizontal"){var N=ao(0,M.height,E);return As(As({},M),{},{y:M.y+M.height-N,height:N})}var $=ao(0,M.width,E);return As(As({},M),{},{width:$})});return E>0&&(n.current=I??null),I==null?null:m.createElement(so,null,m.createElement(n6e,{props:t,data:I}))}),m.createElement(ZT,{label:t.label}),t.children)}function o6e(e){var t=m.useRef(null);return m.createElement(r6e,{previousRectanglesRef:t,props:e})}var mie=0,i6e=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:Ar(e,t)}};class a6e extends m.PureComponent{render(){var{hide:t,data:n,dataKey:r,className:o,xAxisId:i,yAxisId:a,needClip:s,background:l,id:c}=this.props;if(t||n==null)return null;var u=ge("recharts-bar",o),f=c;return m.createElement(so,{className:u,id:c},s&&m.createElement("defs",null,m.createElement(Uk,{clipPathId:f,xAxisId:i,yAxisId:a})),m.createElement(so,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(f,")"):void 0},m.createElement(J3e,{data:n,dataKey:r,background:l,allOtherBarProps:this.props}),m.createElement(o6e,this.props)))}}var s6e={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",hide:!1,isAnimationActive:!gf.isSsr,legendType:"rect",minPointSize:mie,xAxisId:0,yAxisId:0};function l6e(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:o,minPointSize:i,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u}=e,{needClip:f}=nP(t,n),h=jT(),g=Yi(),y=nk(e.children,_v),x=Zt(E=>L6e(E,t,n,g,e.id,y));if(h!=="vertical"&&h!=="horizontal")return null;var S,C=x?.[0];return C==null||C.height==null||C.width==null?S=0:S=h==="vertical"?C.height/2:C.width/2,m.createElement(eU,{xAxisId:t,yAxisId:n,data:x,dataPointFormatter:i6e,errorBarOffset:S},m.createElement(a6e,Am({},e,{layout:h,needClip:f,data:x,xAxisId:t,yAxisId:n,hide:r,legendType:o,minPointSize:i,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u})))}function c6e(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r},pos:o,bandSize:i,xAxis:a,yAxis:s,xAxisTicks:l,yAxisTicks:c,stackedData:u,displayedData:f,offset:h,cells:g,parentViewBox:y}=e,x=t==="horizontal"?s:a,S=u?x.scale.domain():null,C=E$e({numericAxis:x});return f.map((E,I)=>{var M,O,D,N,$,L;u?M=b$e(u[I],S):(M=Ar(E,n),Array.isArray(M)||(M=[C,M]));var A=N3e(r,mie)(M[1],I);if(t==="horizontal"){var F,[z,H]=[s.scale(M[0]),s.scale(M[1])];O=w8({axis:a,ticks:l,bandSize:i,offset:o.offset,entry:E,index:I}),D=(F=H??z)!==null&&F!==void 0?F:void 0,N=o.size;var Q=z-H;if($=hl(Q)?0:Q,L={x:O,y:h.top,width:N,height:h.height},Math.abs(A)>0&&Math.abs($)<Math.abs(A)){var G=ua($||A)*(Math.abs(A)-Math.abs($));D-=G,$+=G}}else{var[V,Y]=[a.scale(M[0]),a.scale(M[1])];if(O=V,D=w8({axis:s,ticks:c,bandSize:i,offset:o.offset,entry:E,index:I}),N=Y-V,$=o.size,L={x:h.left,y:D,width:h.width,height:$},Math.abs(A)>0&&Math.abs(N)<Math.abs(A)){var X=ua(N||A)*(Math.abs(A)-Math.abs(N));N+=X}}if(O==null||D==null||N==null||$==null)return null;var te=As(As({},E),{},{x:O,y:D,width:N,height:$,value:u?M:M[1],payload:E,background:L,tooltipPosition:{x:O+N/2,y:D+$/2},parentViewBox:y},g&&g[I]&&g[I].props);return te}).filter(Boolean)}function u6e(e){var t=wi(e,s6e),n=Yi();return m.createElement(tP,{id:t.id,type:"bar"},r=>m.createElement(m.Fragment,null,m.createElement(zk,{legendPayload:Q3e(t)}),m.createElement(eP,{fn:X3e,args:t}),m.createElement(Vk,{type:"bar",id:r,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:Tne(t.stackId),hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:n}),m.createElement(l6e,Am({},t,{id:r}))))}var K1=m.memo(u6e);K1.displayName="Bar";function $9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function kM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$9(Object(n),!0).forEach(function(r){d6e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function d6e(e,t,n){return(t=f6e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f6e(e){var t=p6e(e,"string");return typeof t=="symbol"?t:t+""}function p6e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var h6e=(e,t)=>t,m6e=(e,t,n)=>n,g6e=(e,t,n,r)=>r,y6e=(e,t,n,r,o)=>o,rP=Ue([Tw,y6e],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),v6e=Ue([rP],e=>e?.maxBarSize),b6e=(e,t,n,r,o,i)=>i,F9=(e,t,n)=>{var r=n??e;if(!Gr(r))return ls(r,t,0)},x6e=Ue([pr,Tw,h6e,m6e,g6e],(e,t,n,r,o)=>t.filter(i=>e==="horizontal"?i.xAxisId===n:i.yAxisId===r).filter(i=>i.isPanorama===o).filter(i=>i.hide===!1).filter(i=>i.type==="bar")),w6e=(e,t,n,r)=>{var o=pr(e);return o==="horizontal"?kE(e,"yAxis",n,r):kE(e,"xAxis",t,r)},S6e=(e,t,n)=>{var r=pr(e);return r==="horizontal"?Fq(e,"xAxis",t):Fq(e,"yAxis",n)},C6e=(e,t,n)=>{var r={},o=e.filter(Mk),i=e.filter(c=>c.stackId==null),a=o.reduce((c,u)=>(c[u.stackId]||(c[u.stackId]=[]),c[u.stackId].push(u),c),r),s=Object.entries(a).map(c=>{var[u,f]=c,h=f.map(y=>y.dataKey),g=F9(t,n,f[0].barSize);return{stackId:u,dataKeys:h,barSize:g}}),l=i.map(c=>{var u=[c.dataKey].filter(h=>h!=null),f=F9(t,n,c.barSize);return{stackId:void 0,dataKeys:u,barSize:f}});return[...s,...l]},E6e=Ue([x6e,oVe,S6e],C6e),T6e=(e,t,n,r,o)=>{var i,a,s=rP(e,t,n,r,o);if(s!=null){var l=pr(e),c=_re(e),{maxBarSize:u}=s,f=Gr(u)?c:u,h,g;return l==="horizontal"?(h=tu(e,"xAxis",t,r),g=eu(e,"xAxis",t,r)):(h=tu(e,"yAxis",n,r),g=eu(e,"yAxis",n,r)),(i=(a=lv(h,g,!0))!==null&&a!==void 0?a:f)!==null&&i!==void 0?i:0}},gie=(e,t,n,r)=>{var o=pr(e),i,a;return o==="horizontal"?(i=tu(e,"xAxis",t,r),a=eu(e,"xAxis",t,r)):(i=tu(e,"yAxis",n,r),a=eu(e,"yAxis",n,r)),lv(i,a)};function P6e(e,t,n,r,o){var i=r.length;if(!(i<1)){var a=ls(e,n,0,!0),s,l=[];if(_a(r[0].barSize)){var c=!1,u=n/i,f=r.reduce((C,E)=>C+(E.barSize||0),0);f+=(i-1)*a,f>=n&&(f-=(i-1)*a,a=0),f>=n&&u>0&&(c=!0,u*=.9,f=i*u);var h=(n-f)/2>>0,g={offset:h-a,size:0};s=r.reduce((C,E)=>{var I,M={stackId:E.stackId,dataKeys:E.dataKeys,position:{offset:g.offset+g.size+a,size:c?u:(I=E.barSize)!==null&&I!==void 0?I:0}},O=[...C,M];return g=O[O.length-1].position,O},l)}else{var y=ls(t,n,0,!0);n-2*y-(i-1)*a<=0&&(a=0);var x=(n-2*y-(i-1)*a)/i;x>1&&(x>>=0);var S=_a(o)?Math.min(x,o):x;s=r.reduce((C,E,I)=>[...C,{stackId:E.stackId,dataKeys:E.dataKeys,position:{offset:y+(x+a)*I+(x-S)/2,size:S}}],l)}return s}}var I6e=(e,t,n,r,o,i,a)=>{var s=Gr(a)?t:a,l=P6e(n,r,o!==i?o:i,e,s);return o!==i&&l!=null&&(l=l.map(c=>kM(kM({},c),{},{position:kM(kM({},c.position),{},{offset:c.position.offset-o/2})}))),l},O6e=Ue([E6e,_re,rVe,Lre,T6e,gie,v6e],I6e),M6e=(e,t,n,r)=>tu(e,"xAxis",t,r),A6e=(e,t,n,r)=>tu(e,"yAxis",n,r),D6e=(e,t,n,r)=>eu(e,"xAxis",t,r),R6e=(e,t,n,r)=>eu(e,"yAxis",n,r),k6e=Ue([O6e,rP],(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}}),N6e=(e,t)=>{var n=Ok(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var o=e[r];if(o){var{stackedData:i}=o;if(i)return i.find(a=>a.key===n)}}}},_6e=Ue([w6e,rP],N6e),L6e=Ue([Ki,FV,M6e,A6e,D6e,R6e,k6e,pr,ww,gie,_6e,rP,b6e],(e,t,n,r,o,i,a,s,l,c,u,f,h)=>{var{chartData:g,dataStartIndex:y,dataEndIndex:x}=l;if(!(f==null||a==null||t==null||s!=="horizontal"&&s!=="vertical"||n==null||r==null||o==null||i==null||c==null)){var{data:S}=f,C;if(S!=null&&S.length>0?C=S:C=g?.slice(y,x+1),C!=null)return c6e({layout:s,barSettings:f,pos:a,parentViewBox:t,bandSize:c,xAxis:n,yAxis:r,xAxisTicks:o,yAxisTicks:i,stackedData:u,displayedData:C,offset:e,cells:h})}}),yie=e=>{var{chartData:t}=e,n=Lo(),r=Yi();return m.useEffect(()=>r?()=>{}:(n(Kq(t)),()=>{n(Kq(void 0))}),[t,n,r]),null},j9={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},vie=tc({name:"brush",initialState:j9,reducers:{setBrushSettings(e,t){return t.payload==null?j9:t.payload}}}),{setBrushSettings:WTt}=vie.actions,$6e=vie.reducer;function B9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function NM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B9(Object(n),!0).forEach(function(r){bie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bie(e,t,n){return(t=F6e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F6e(e){var t=j6e(e,"string");return typeof t=="symbol"?t:t+""}function j6e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Gk{static create(t){return new Gk(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:n,position:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(r)switch(r){case"start":return this.scale(t);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o}case"end":{var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}default:return this.scale(t)}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}isInRange(t){var n=this.range(),r=n[0],o=n[n.length-1];return r<=o?t>=r&&t<=o:t>=o&&t<=r}}bie(Gk,"EPS",1e-4);var B6e=e=>{var t=Object.keys(e).reduce((n,r)=>NM(NM({},n),{},{[r]:Gk.create(e[r])}),{});return NM(NM({},t),{},{apply(n){var{bandAware:r,position:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.fromEntries(Object.entries(n).map(i=>{var[a,s]=i;return[a,t[a].apply(s,{bandAware:r,position:o})]}))},isInRange(n){return Object.keys(n).every(r=>t[r].isInRange(n[r]))}})};function z6e(e){return(e%180+180)%180}var V6e=function(t){var{width:n,height:r}=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=z6e(o),a=i*Math.PI/180,s=Math.atan(r/n),l=a>s&&a<Math.PI-s?r/Math.sin(a):n/Math.cos(a);return Math.abs(l)},H6e={dots:[],areas:[],lines:[]},xie=tc({name:"referenceElements",initialState:H6e,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=mp(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=mp(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=mp(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:U6e,removeDot:G6e,addArea:qTt,removeArea:KTt,addLine:YTt,removeLine:QTt}=xie.actions,W6e=xie.reducer,wie=m.createContext(void 0),q6e=e=>{var{children:t}=e,[n]=m.useState("".concat(CE("recharts"),"-clip")),r=Hk();if(r==null)return null;var{x:o,y:i,width:a,height:s}=r;return m.createElement(wie.Provider,{value:n},m.createElement("defs",null,m.createElement("clipPath",{id:n},m.createElement("rect",{x:o,y:i,height:s,width:a}))),t)},K6e=()=>m.useContext(wie);function z9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function V9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z9(Object(n),!0).forEach(function(r){tU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tU(e,t,n){return(t=Y6e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y6e(e){var t=Q6e(e,"string");return typeof t=="symbol"?t:t+""}function Q6e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lB(){return lB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lB.apply(null,arguments)}var X6e=(e,t,n,r,o)=>{var i=Xc(e),a=Xc(t),s=Yi(),l=Zt(h=>Om(h,"xAxis",n,s)),c=Zt(h=>Om(h,"yAxis",r,s));if(!i||!a||l==null||c==null)return null;var u=B6e({x:l,y:c}),f=u.apply({x:e,y:t},{bandAware:!0});return o==="discard"&&!u.isInRange(f)?null:f};function J6e(e){var t=Lo();return m.useEffect(()=>(t(U6e(e)),()=>{t(G6e(e))})),null}var Z6e=(e,t)=>{var n;return m.isValidElement(e)?n=m.cloneElement(e,t):typeof e=="function"?n=e(t):n=m.createElement($k,lB({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n};function eGe(e){var{x:t,y:n,r}=e,o=K6e(),i=X6e(t,n,e.xAxisId,e.yAxisId,e.ifOverflow);if(!i)return null;var{x:a,y:s}=i,{shape:l,className:c,ifOverflow:u}=e,f=u==="hidden"?"url(#".concat(o,")"):void 0,h=V9(V9({clipPath:f},vo(e,!0)),{},{cx:a,cy:s});return m.createElement(so,{className:ge("recharts-reference-dot",c)},Z6e(l,h),m.createElement(eie,{x:a-r,y:s-r,width:2*r,height:2*r},m.createElement(rie,{label:e.label}),e.children))}function tGe(e){var{x:t,y:n,r,ifOverflow:o,yAxisId:i,xAxisId:a}=e;return m.createElement(m.Fragment,null,m.createElement(J6e,{y:n,x:t,r,yAxisId:i,xAxisId:a,ifOverflow:o}),m.createElement(eGe,e))}class nU extends m.Component{render(){return m.createElement(tGe,this.props)}}tU(nU,"displayName","ReferenceDot");tU(nU,"defaultProps",{ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});function Fx(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function Sie(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],o=0;o<e.length;o+=t)r.push(e[o]);return r}function nGe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return V6e(r,n)}function rGe(e,t,n){var r=n==="width",{x:o,y:i,width:a,height:s}=e;return t===1?{start:r?o:i,end:r?o+a:i+s}:{start:r?o+a:i+s,end:r?o:i}}function DD(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function oGe(e,t){return Sie(e,t+1)}function iGe(e,t,n,r,o){for(var i=(r||[]).slice(),{start:a,end:s}=t,l=0,c=1,u=a,f=function(){var y=r?.[l];if(y===void 0)return{v:Sie(r,c)};var x=l,S,C=()=>(S===void 0&&(S=n(y,x)),S),E=y.coordinate,I=l===0||DD(e,E,C,u,s);I||(l=0,u=a,c+=1),I&&(u=E+e*(C()/2+o),l+=c)},h;c<=i.length;)if(h=f(),h)return h.v;return[]}function H9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Za(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H9(Object(n),!0).forEach(function(r){aGe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aGe(e,t,n){return(t=sGe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sGe(e){var t=lGe(e,"string");return typeof t=="symbol"?t:t+""}function lGe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cGe(e,t,n,r,o){for(var i=(r||[]).slice(),a=i.length,{start:s}=t,{end:l}=t,c=function(h){var g=i[h],y,x=()=>(y===void 0&&(y=n(g,h)),y);if(h===a-1){var S=e*(g.coordinate+e*x()/2-l);i[h]=g=Za(Za({},g),{},{tickCoord:S>0?g.coordinate-S*e:g.coordinate})}else i[h]=g=Za(Za({},g),{},{tickCoord:g.coordinate});var C=DD(e,g.tickCoord,x,s,l);C&&(l=g.tickCoord-e*(x()/2+o),i[h]=Za(Za({},g),{},{isShow:!0}))},u=a-1;u>=0;u--)c(u);return i}function uGe(e,t,n,r,o,i){var a=(r||[]).slice(),s=a.length,{start:l,end:c}=t;if(i){var u=r[s-1],f=n(u,s-1),h=e*(u.coordinate+e*f/2-c);a[s-1]=u=Za(Za({},u),{},{tickCoord:h>0?u.coordinate-h*e:u.coordinate});var g=DD(e,u.tickCoord,()=>f,l,c);g&&(c=u.tickCoord-e*(f/2+o),a[s-1]=Za(Za({},u),{},{isShow:!0}))}for(var y=i?s-1:s,x=function(E){var I=a[E],M,O=()=>(M===void 0&&(M=n(I,E)),M);if(E===0){var D=e*(I.coordinate-e*O()/2-l);a[E]=I=Za(Za({},I),{},{tickCoord:D<0?I.coordinate-D*e:I.coordinate})}else a[E]=I=Za(Za({},I),{},{tickCoord:I.coordinate});var N=DD(e,I.tickCoord,O,l,c);N&&(l=I.tickCoord+e*(O()/2+o),a[E]=Za(Za({},I),{},{isShow:!0}))},S=0;S<y;S++)x(S);return a}function rU(e,t,n){var{tick:r,ticks:o,viewBox:i,minTickGap:a,orientation:s,interval:l,tickFormatter:c,unit:u,angle:f}=e;if(!o||!o.length||!r)return[];if(nn(l)||gf.isSsr){var h;return(h=oGe(o,nn(l)?l:0))!==null&&h!==void 0?h:[]}var g=[],y=s==="top"||s==="bottom"?"width":"height",x=u&&y==="width"?q1(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},S=(I,M)=>{var O=typeof c=="function"?c(I.value,M):I.value;return y==="width"?nGe(q1(O,{fontSize:t,letterSpacing:n}),x,f):q1(O,{fontSize:t,letterSpacing:n})[y]},C=o.length>=2?ua(o[1].coordinate-o[0].coordinate):1,E=rGe(i,C,y);return l==="equidistantPreserveStart"?iGe(C,E,S,o,a):(l==="preserveStart"||l==="preserveStartEnd"?g=uGe(C,E,S,o,a,l==="preserveStartEnd"):g=cGe(C,E,S,o,a),g.filter(I=>I.isShow))}var dGe=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:o=0,tickMargin:i=0}=e,a=0;if(t){t.forEach(u=>{if(u){var f=u.getBoundingClientRect();f.width>a&&(a=f.width)}});var s=n?n.getBoundingClientRect().width:0,l=o+i,c=a+l+s+(n?r:0);return Math.round(c)}return 0},fGe=["axisLine","width","height","className","hide","ticks"],pGe=["viewBox"],hGe=["viewBox"];function cB(e,t){if(e==null)return{};var n,r,o=mGe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function mGe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function uv(){return uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uv.apply(null,arguments)}function U9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Bi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U9(Object(n),!0).forEach(function(r){gGe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gGe(e,t,n){return(t=yGe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yGe(e){var t=vGe(e,"string");return typeof t=="symbol"?t:t+""}function vGe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oU={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};function bGe(e){var{x:t,y:n,width:r,height:o,orientation:i,mirror:a,axisLine:s,otherSvgProps:l}=e;if(!s)return null;var c=Bi(Bi(Bi({},l),vo(s,!1)),{},{fill:"none"});if(i==="top"||i==="bottom"){var u=+(i==="top"&&!a||i==="bottom"&&a);c=Bi(Bi({},c),{},{x1:t,y1:n+u*o,x2:t+r,y2:n+u*o})}else{var f=+(i==="left"&&!a||i==="right"&&a);c=Bi(Bi({},c),{},{x1:t+f*r,y1:n,x2:t+f*r,y2:n+o})}return m.createElement("line",uv({},c,{className:ge("recharts-cartesian-axis-line",iv(s,"className"))}))}function xGe(e,t,n,r,o,i,a,s,l){var c,u,f,h,g,y,x=s?-1:1,S=e.tickSize||a,C=nn(e.tickCoord)?e.tickCoord:e.coordinate;switch(i){case"top":c=u=e.coordinate,h=n+ +!s*o,f=h-x*S,y=f-x*l,g=C;break;case"left":f=h=e.coordinate,u=t+ +!s*r,c=u-x*S,g=c-x*l,y=C;break;case"right":f=h=e.coordinate,u=t+ +s*r,c=u+x*S,g=c+x*l,y=C;break;default:c=u=e.coordinate,h=n+ +s*o,f=h+x*S,y=f+x*l,g=C;break}return{line:{x1:c,y1:f,x2:u,y2:h},tick:{x:g,y}}}function wGe(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function SGe(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function CGe(e){var{option:t,tickProps:n,value:r}=e,o,i=ge(n.className,"recharts-cartesian-axis-tick-value");if(m.isValidElement(t))o=m.cloneElement(t,Bi(Bi({},n),{},{className:i}));else if(typeof t=="function")o=t(Bi(Bi({},n),{},{className:i}));else{var a="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(a=ge(a,t?.className)),o=m.createElement(_k,uv({},n,{className:a}),r)}return o}function EGe(e){var{ticks:t=[],tick:n,tickLine:r,stroke:o,tickFormatter:i,unit:a,padding:s,tickTextProps:l,orientation:c,mirror:u,x:f,y:h,width:g,height:y,tickSize:x,tickMargin:S,fontSize:C,letterSpacing:E,getTicksConfig:I,events:M}=e,O=rU(Bi(Bi({},I),{},{ticks:t}),C,E),D=wGe(c,u),N=SGe(c,u),$=ml(I),L=vo(n,!1),A=Bi(Bi({},$),{},{fill:"none"},vo(r,!1)),F=O.map((z,H)=>{var{line:Q,tick:G}=xGe(z,f,h,g,y,c,x,u,S),V=Bi(Bi(Bi(Bi({textAnchor:D,verticalAnchor:N},$),{},{stroke:"none",fill:o},L),G),{},{index:H,payload:z,visibleTicksCount:O.length,tickFormatter:i,padding:s},l);return m.createElement(so,uv({className:"recharts-cartesian-axis-tick",key:"tick-".concat(z.value,"-").concat(z.coordinate,"-").concat(z.tickCoord)},bw(M,z,H)),r&&m.createElement("line",uv({},A,Q,{className:ge("recharts-cartesian-axis-tick-line",iv(r,"className"))})),n&&m.createElement(CGe,{option:n,tickProps:V,value:"".concat(typeof i=="function"?i(z.value,H):z.value).concat(a||"")}))});return F.length>0?m.createElement("g",{className:"recharts-cartesian-axis-ticks"},F):null}var TGe=m.forwardRef((e,t)=>{var{axisLine:n,width:r,height:o,className:i,hide:a,ticks:s}=e,l=cB(e,fGe),[c,u]=m.useState(""),[f,h]=m.useState(""),g=m.useRef([]);m.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var x;return dGe({ticks:g.current,label:(x=e.labelRef)===null||x===void 0?void 0:x.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var y=m.useCallback(x=>{if(x){var S=x.getElementsByClassName("recharts-cartesian-axis-tick-value");g.current=Array.from(S);var C=S[0];if(C){var E=window.getComputedStyle(C),I=E.fontSize,M=E.letterSpacing;(I!==c||M!==f)&&(u(I),h(M))}}},[c,f]);return a||r!=null&&r<=0||o!=null&&o<=0?null:m.createElement(so,{className:ge("recharts-cartesian-axis",i),ref:y},m.createElement(bGe,{x:e.x,y:e.y,width:r,height:o,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:ml(e)}),m.createElement(EGe,{ticks:s,tick:e.tick,tickLine:e.tickLine,stroke:e.stroke,tickFormatter:e.tickFormatter,unit:e.unit,padding:e.padding,tickTextProps:e.tickTextProps,orientation:e.orientation,mirror:e.mirror,x:e.x,y:e.y,width:e.width,height:e.height,tickSize:e.tickSize,tickMargin:e.tickMargin,fontSize:c,letterSpacing:f,getTicksConfig:e,events:l}),m.createElement(eie,{x:e.x,y:e.y,width:e.width,height:e.height},m.createElement(rie,{label:e.label}),e.children))}),PGe=m.memo(TGe,(e,t)=>{var{viewBox:n}=e,r=cB(e,pGe),{viewBox:o}=t,i=cB(t,hGe);return Fx(n,o)&&Fx(r,i)}),iU=m.forwardRef((e,t)=>{var n=wi(e,oU);return m.createElement(PGe,uv({},n,{ref:t}))});iU.displayName="CartesianAxis";var IGe=["x1","y1","x2","y2","key"],OGe=["offset"],MGe=["xAxisId","yAxisId"],AGe=["xAxisId","yAxisId"];function G9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ns(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G9(Object(n),!0).forEach(function(r){DGe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DGe(e,t,n){return(t=RGe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RGe(e){var t=kGe(e,"string");return typeof t=="symbol"?t:t+""}function kGe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _y(){return _y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_y.apply(null,arguments)}function RD(e,t){if(e==null)return{};var n,r,o=NGe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function NGe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var _Ge=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:o,width:i,height:a,ry:s}=e;return m.createElement("rect",{x:r,y:o,ry:s,width:i,height:a,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Cie(e,t){var n;if(m.isValidElement(e))n=m.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var{x1:r,y1:o,x2:i,y2:a,key:s}=t,l=RD(t,IGe),c=ml(l),{offset:u}=c,f=RD(c,OGe);n=m.createElement("line",_y({},f,{x1:r,y1:o,x2:i,y2:a,fill:"none",key:s}))}return n}function LGe(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:o}=e;if(!r||!o||!o.length)return null;var{xAxisId:i,yAxisId:a}=e,s=RD(e,MGe),l=o.map((c,u)=>{var f=ns(ns({},s),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(u),index:u});return Cie(r,f)});return m.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function $Ge(e){var{y:t,height:n,vertical:r=!0,verticalPoints:o}=e;if(!r||!o||!o.length)return null;var{xAxisId:i,yAxisId:a}=e,s=RD(e,AGe),l=o.map((c,u)=>{var f=ns(ns({},s),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(u),index:u});return Cie(r,f)});return m.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function FGe(e){var{horizontalFill:t,fillOpacity:n,x:r,y:o,width:i,height:a,horizontalPoints:s,horizontal:l=!0}=e;if(!l||!t||!t.length)return null;var c=s.map(f=>Math.round(f+o-o)).sort((f,h)=>f-h);o!==c[0]&&c.unshift(0);var u=c.map((f,h)=>{var g=!c[h+1],y=g?o+a-f:c[h+1]-f;if(y<=0)return null;var x=h%t.length;return m.createElement("rect",{key:"react-".concat(h),y:f,x:r,height:y,width:i,stroke:"none",fill:t[x],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return m.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function jGe(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:o,y:i,width:a,height:s,verticalPoints:l}=e;if(!t||!n||!n.length)return null;var c=l.map(f=>Math.round(f+o-o)).sort((f,h)=>f-h);o!==c[0]&&c.unshift(0);var u=c.map((f,h)=>{var g=!c[h+1],y=g?o+a-f:c[h+1]-f;if(y<=0)return null;var x=h%n.length;return m.createElement("rect",{key:"react-".concat(h),x:f,y:i,width:y,height:s,stroke:"none",fill:n[x],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return m.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var BGe=(e,t)=>{var{xAxis:n,width:r,height:o,offset:i}=e;return Cne(rU(ns(ns(ns({},oU),n),{},{ticks:Ene(n),viewBox:{x:0,y:0,width:r,height:o}})),i.left,i.left+i.width,t)},zGe=(e,t)=>{var{yAxis:n,width:r,height:o,offset:i}=e;return Cne(rU(ns(ns(ns({},oU),n),{},{ticks:Ene(n),viewBox:{x:0,y:0,width:r,height:o}})),i.top,i.top+i.height,t)},VGe={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0};function Hm(e){var t=jV(),n=BV(),r=Ine(),o=ns(ns({},wi(e,VGe)),{},{x:nn(e.x)?e.x:r.left,y:nn(e.y)?e.y:r.top,width:nn(e.width)?e.width:r.width,height:nn(e.height)?e.height:r.height}),{xAxisId:i,yAxisId:a,x:s,y:l,width:c,height:u,syncWithTicks:f,horizontalValues:h,verticalValues:g}=o,y=Yi(),x=Zt(L=>jq(L,"xAxis",i,y)),S=Zt(L=>jq(L,"yAxis",a,y));if(!nn(c)||c<=0||!nn(u)||u<=0||!nn(s)||s!==+s||!nn(l)||l!==+l)return null;var C=o.verticalCoordinatesGenerator||BGe,E=o.horizontalCoordinatesGenerator||zGe,{horizontalPoints:I,verticalPoints:M}=o;if((!I||!I.length)&&typeof E=="function"){var O=h&&h.length,D=E({yAxis:S?ns(ns({},S),{},{ticks:O?h:S.ticks}):void 0,width:t,height:n,offset:r},O?!0:f);W1(Array.isArray(D),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof D,"]")),Array.isArray(D)&&(I=D)}if((!M||!M.length)&&typeof C=="function"){var N=g&&g.length,$=C({xAxis:x?ns(ns({},x),{},{ticks:N?g:x.ticks}):void 0,width:t,height:n,offset:r},N?!0:f);W1(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof $,"]")),Array.isArray($)&&(M=$)}return m.createElement("g",{className:"recharts-cartesian-grid"},m.createElement(_Ge,{fill:o.fill,fillOpacity:o.fillOpacity,x:o.x,y:o.y,width:o.width,height:o.height,ry:o.ry}),m.createElement(FGe,_y({},o,{horizontalPoints:I})),m.createElement(jGe,_y({},o,{verticalPoints:M})),m.createElement(LGe,_y({},o,{offset:r,horizontalPoints:I,xAxis:x,yAxis:S})),m.createElement($Ge,_y({},o,{offset:r,verticalPoints:M,xAxis:x,yAxis:S})))}Hm.displayName="CartesianGrid";var Eie=(e,t,n,r)=>tu(e,"xAxis",t,r),Tie=(e,t,n,r)=>eu(e,"xAxis",t,r),Pie=(e,t,n,r)=>tu(e,"yAxis",n,r),Iie=(e,t,n,r)=>eu(e,"yAxis",n,r),HGe=Ue([pr,Eie,Pie,Tie,Iie],(e,t,n,r,o)=>hf(e,"xAxis")?lv(t,r,!1):lv(n,o,!1)),UGe=(e,t,n,r,o)=>o;function GGe(e){return e.type==="line"}var WGe=Ue([Tw,UGe],(e,t)=>e.filter(GGe).find(n=>n.id===t)),qGe=Ue([pr,Eie,Pie,Tie,Iie,WGe,HGe,ww],(e,t,n,r,o,i,a,s)=>{var{chartData:l,dataStartIndex:c,dataEndIndex:u}=s;if(!(i==null||t==null||n==null||r==null||o==null||r.length===0||o.length===0||a==null)){var{dataKey:f,data:h}=i,g;if(h!=null&&h.length>0?g=h:g=l?.slice(c,u+1),g!=null)return mWe({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:o,dataKey:f,bandSize:a,displayedData:g})}}),KGe=["id"],YGe=["type","layout","connectNulls","needClip"],QGe=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function W9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _l(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W9(Object(n),!0).forEach(function(r){XGe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XGe(e,t,n){return(t=JGe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JGe(e){var t=ZGe(e,"string");return typeof t=="symbol"?t:t+""}function ZGe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aU(e,t){if(e==null)return{};var n,r,o=eWe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function eWe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function dv(){return dv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dv.apply(null,arguments)}var tWe=e=>{var{dataKey:t,name:n,stroke:r,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:r,value:mf(n,t),payload:e}]};function nWe(e){var{dataKey:t,data:n,stroke:r,strokeWidth:o,fill:i,name:a,hide:s,unit:l}=e;return{dataDefinedOnItem:n,positions:void 0,settings:{stroke:r,strokeWidth:o,fill:i,dataKey:t,nameKey:void 0,name:mf(a,t),hide:s,type:e.tooltipType,color:e.stroke,unit:l}}}var Oie=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function rWe(e,t){for(var n=e.length%2!==0?[...e,0]:e,r=[],o=0;o<t;++o)r=[...r,...n];return r}var oWe=(e,t,n)=>{var r=n.reduce((f,h)=>f+h);if(!r)return Oie(t,e);for(var o=Math.floor(e/r),i=e%r,a=t-e,s=[],l=0,c=0;l<n.length;c+=n[l],++l)if(c+n[l]>i){s=[...n.slice(0,l),i-c];break}var u=s.length%2===0?[0,a]:[a];return[...rWe(n,o),...s,...u].map(f=>"".concat(f,"px")).join(", ")};function iWe(e,t){var n;if(m.isValidElement(e))n=m.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var r=ge("recharts-line-dot",typeof e!="boolean"?e.className:"");n=m.createElement($k,dv({},t,{className:r}))}return n}function aWe(e,t){return e==null?!1:t?!0:e.length===1}function sWe(e){var{clipPathId:t,points:n,props:r}=e,{dot:o,dataKey:i,needClip:a}=r;if(!aWe(n,o))return null;var{id:s}=r,l=aU(r,KGe),c=rk(o),u=ml(l),f=vo(o,!0),h=n.map((y,x)=>{var S=_l(_l(_l({key:"dot-".concat(x),r:3},u),f),{},{index:x,cx:y.x,cy:y.y,dataKey:i,value:y.value,payload:y.payload,points:n});return iWe(o,S)}),g={clipPath:a?"url(#clipPath-".concat(c?"":"dots-").concat(t,")"):void 0};return m.createElement(so,dv({className:"recharts-line-dots",key:"dots"},g),h)}function lWe(e){var{showLabels:t,children:n,points:r}=e,o=m.useMemo(()=>r?.map(i=>{var a={x:i.x,y:i.y,width:0,height:0};return _l(_l({},a),{},{value:i.value,payload:i.payload,viewBox:a,parentViewBox:void 0,fill:void 0})}),[r]);return m.createElement(Lk,{value:t?o:null},n)}function q9(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:o,props:i}=e,{type:a,layout:s,connectNulls:l,needClip:c}=i,u=aU(i,YGe),f=_l(_l({},vo(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:c?"url(#clipPath-".concat(t,")"):void 0,points:r,type:a,layout:s,connectNulls:l,strokeDasharray:o??i.strokeDasharray});return m.createElement(m.Fragment,null,r?.length>1&&m.createElement(Hy,dv({},f,{pathRef:n})),m.createElement(sWe,{points:r,clipPathId:t,props:i}))}function cWe(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function uWe(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:o,longestAnimatedLengthRef:i}=e,{points:a,strokeDasharray:s,isAnimationActive:l,animationBegin:c,animationDuration:u,animationEasing:f,animateNewValues:h,width:g,height:y,onAnimationEnd:x,onAnimationStart:S}=n,C=o.current,E=Dv(n,"recharts-line-"),[I,M]=m.useState(!1),O=!I,D=m.useCallback(()=>{typeof x=="function"&&x(),M(!1)},[x]),N=m.useCallback(()=>{typeof S=="function"&&S(),M(!0)},[S]),$=cWe(r.current),L=i.current;return m.createElement(lWe,{points:a,showLabels:O},n.children,m.createElement(Av,{animationId:E,begin:c,duration:u,isActive:l,easing:f,onAnimationEnd:D,onAnimationStart:N,key:E},A=>{var F=ao(L,$+L,A),z=Math.min(F,$),H;if(l)if(s){var Q="".concat(s).split(/[,\s]+/gim).map(Y=>parseFloat(Y));H=oWe(z,$,Q)}else H=Oie($,z);else H=s==null?void 0:String(s);if(C){var G=C.length/a.length,V=A===1?a:a.map((Y,X)=>{var te=Math.floor(X*G);if(C[te]){var U=C[te];return _l(_l({},Y),{},{x:ao(U.x,Y.x,A),y:ao(U.y,Y.y,A)})}return h?_l(_l({},Y),{},{x:ao(g*2,Y.x,A),y:ao(y/2,Y.y,A)}):_l(_l({},Y),{},{x:Y.x,y:Y.y})});return o.current=V,m.createElement(q9,{props:n,points:V,clipPathId:t,pathRef:r,strokeDasharray:H})}return A>0&&$>0&&(o.current=a,i.current=z),m.createElement(q9,{props:n,points:a,clipPathId:t,pathRef:r,strokeDasharray:H})}),m.createElement(ZT,{label:n.label}))}function dWe(e){var{clipPathId:t,props:n}=e,r=m.useRef(null),o=m.useRef(0),i=m.useRef(null);return m.createElement(uWe,{props:n,clipPathId:t,previousPointsRef:r,longestAnimatedLengthRef:o,pathRef:i})}var fWe=(e,t)=>({x:e.x,y:e.y,value:e.value,errorVal:Ar(e.payload,t)});class pWe extends m.Component{render(){var t,{hide:n,dot:r,points:o,className:i,xAxisId:a,yAxisId:s,top:l,left:c,width:u,height:f,id:h,needClip:g}=this.props;if(n)return null;var y=ge("recharts-line",i),x=h,{r:S=3,strokeWidth:C=2}=(t=vo(r,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},E=rk(r),I=S*2+C;return m.createElement(m.Fragment,null,m.createElement(so,{className:y},g&&m.createElement("defs",null,m.createElement(Uk,{clipPathId:x,xAxisId:a,yAxisId:s}),!E&&m.createElement("clipPath",{id:"clipPath-dots-".concat(x)},m.createElement("rect",{x:c-I/2,y:l-I/2,width:u+I,height:f+I}))),m.createElement(eU,{xAxisId:a,yAxisId:s,data:o,dataPointFormatter:fWe,errorBarOffset:0},m.createElement(dWe,{props:this.props,clipPathId:x}))),m.createElement(aB,{activeDot:this.props.activeDot,points:o,mainColor:this.props.stroke,itemDataKey:this.props.dataKey}))}}var Mie={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:!gf.isSsr,label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0};function hWe(e){var t=wi(e,Mie),{activeDot:n,animateNewValues:r,animationBegin:o,animationDuration:i,animationEasing:a,connectNulls:s,dot:l,hide:c,isAnimationActive:u,label:f,legendType:h,xAxisId:g,yAxisId:y,id:x}=t,S=aU(t,QGe),{needClip:C}=nP(g,y),E=Hk(),I=jT(),M=Yi(),O=Zt(A=>qGe(A,g,y,M,x));if(I!=="horizontal"&&I!=="vertical"||O==null||E==null)return null;var{height:D,width:N,x:$,y:L}=E;return m.createElement(pWe,dv({},S,{id:x,connectNulls:s,dot:l,activeDot:n,animateNewValues:r,animationBegin:o,animationDuration:i,animationEasing:a,isAnimationActive:u,hide:c,label:f,legendType:h,xAxisId:g,yAxisId:y,points:O,layout:I,height:D,width:N,left:$,top:L,needClip:C}))}function mWe(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:o,yAxisTicks:i,dataKey:a,bandSize:s,displayedData:l}=e;return l.map((c,u)=>{var f=Ar(c,a);if(t==="horizontal"){var h=Dx({axis:n,ticks:o,bandSize:s,entry:c,index:u}),g=Gr(f)?null:r.scale(f);return{x:h,y:g,value:f,payload:c}}var y=Gr(f)?null:n.scale(f),x=Dx({axis:r,ticks:i,bandSize:s,entry:c,index:u});return y==null||x==null?null:{x:y,y:x,value:f,payload:c}}).filter(Boolean)}function gWe(e){var t=wi(e,Mie),n=Yi();return m.createElement(tP,{id:t.id,type:"line"},r=>m.createElement(m.Fragment,null,m.createElement(zk,{legendPayload:tWe(t)}),m.createElement(eP,{fn:nWe,args:t}),m.createElement(Vk,{type:"line",id:r,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),m.createElement(hWe,dv({},t,{id:r}))))}var Wk=m.memo(gWe);Wk.displayName="Line";var Aie=(e,t,n,r)=>tu(e,"xAxis",t,r),Die=(e,t,n,r)=>eu(e,"xAxis",t,r),Rie=(e,t,n,r)=>tu(e,"yAxis",n,r),kie=(e,t,n,r)=>eu(e,"yAxis",n,r),yWe=Ue([pr,Aie,Rie,Die,kie],(e,t,n,r,o)=>hf(e,"xAxis")?lv(t,r,!1):lv(n,o,!1)),vWe=(e,t,n,r,o)=>o,Nie=Ue([Tw,vWe],(e,t)=>e.filter(n=>n.type==="area").find(n=>n.id===t)),bWe=(e,t,n,r,o)=>{var i,a=Nie(e,t,n,r,o);if(a!=null){var s=pr(e),l=hf(s,"xAxis"),c;if(l?c=kE(e,"yAxis",n,r):c=kE(e,"xAxis",t,r),c!=null){var{stackId:u}=a,f=Ok(a);if(!(u==null||f==null)){var h=(i=c[u])===null||i===void 0?void 0:i.stackedData;return h?.find(g=>g.key===f)}}}},xWe=Ue([pr,Aie,Rie,Die,kie,bWe,ww,yWe,Nie],(e,t,n,r,o,i,a,s,l)=>{var{chartData:c,dataStartIndex:u,dataEndIndex:f}=a;if(!(l==null||e!=="horizontal"&&e!=="vertical"||t==null||n==null||r==null||o==null||r.length===0||o.length===0||s==null)){var{data:h}=l,g;if(h&&h.length>0?g=h:g=c?.slice(u,f+1),g!=null){var y=void 0;return zWe({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:o,dataStartIndex:u,areaSettings:l,stackedData:i,displayedData:g,chartBaseValue:y,bandSize:s})}}}),wWe=["id"],SWe=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function _ie(e,t){if(e==null)return{};var n,r,o=CWe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function CWe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function K9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function pp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K9(Object(n),!0).forEach(function(r){EWe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EWe(e,t,n){return(t=TWe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TWe(e){var t=PWe(e,"string");return typeof t=="symbol"?t:t+""}function PWe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yp(){return yp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yp.apply(null,arguments)}function kD(e,t){return e&&e!=="none"?e:t}var IWe=e=>{var{dataKey:t,name:n,stroke:r,fill:o,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:kD(r,o),value:mf(n,t),payload:e}]};function OWe(e){var{dataKey:t,data:n,stroke:r,strokeWidth:o,fill:i,name:a,hide:s,unit:l}=e;return{dataDefinedOnItem:n,positions:void 0,settings:{stroke:r,strokeWidth:o,fill:i,dataKey:t,nameKey:void 0,name:mf(a,t),hide:s,type:e.tooltipType,color:kD(r,i),unit:l}}}var MWe=(e,t)=>{var n;if(m.isValidElement(e))n=m.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var r=ge("recharts-area-dot",typeof e!="boolean"?e.className:"");n=m.createElement($k,yp({},t,{className:r}))}return n};function AWe(e,t){return e==null?!1:t?!0:e.length===1}function DWe(e){var{clipPathId:t,points:n,props:r}=e,{needClip:o,dot:i,dataKey:a}=r;if(!AWe(n,i))return null;var s=rk(i),l=ml(r),c=vo(i,!0),u=n.map((h,g)=>{var y=pp(pp(pp({key:"dot-".concat(g),r:3},l),c),{},{index:g,cx:h.x,cy:h.y,dataKey:a,value:h.value,payload:h.payload,points:n});return MWe(i,y)}),f={clipPath:o?"url(#clipPath-".concat(s?"":"dots-").concat(t,")"):void 0};return m.createElement(so,yp({className:"recharts-area-dots"},f),u)}function RWe(e){var{showLabels:t,children:n,points:r}=e,o=r.map(i=>{var a={x:i.x,y:i.y,width:0,height:0};return pp(pp({},a),{},{value:i.value,payload:i.payload,parentViewBox:void 0,viewBox:a,fill:void 0})});return m.createElement(Lk,{value:t?o:null},n)}function Y9(e){var{points:t,baseLine:n,needClip:r,clipPathId:o,props:i}=e,{layout:a,type:s,stroke:l,connectNulls:c,isRange:u}=i,{id:f}=i,h=_ie(i,wWe),g=ml(h);return m.createElement(m.Fragment,null,t?.length>1&&m.createElement(so,{clipPath:r?"url(#clipPath-".concat(o,")"):void 0},m.createElement(Hy,yp({},g,{id:f,points:t,connectNulls:c,type:s,baseLine:n,layout:a,stroke:"none",className:"recharts-area-area"})),l!=="none"&&m.createElement(Hy,yp({},g,{className:"recharts-area-curve",layout:a,type:s,connectNulls:c,fill:"none",points:t})),l!=="none"&&u&&m.createElement(Hy,yp({},g,{className:"recharts-area-curve",layout:a,type:s,connectNulls:c,fill:"none",points:n}))),m.createElement(DWe,{points:t,props:h,clipPathId:o}))}function kWe(e){var{alpha:t,baseLine:n,points:r,strokeWidth:o}=e,i=r[0].y,a=r[r.length-1].y;if(!_a(i)||!_a(a))return null;var s=t*Math.abs(i-a),l=Math.max(...r.map(c=>c.x||0));return nn(n)?l=Math.max(n,l):n&&Array.isArray(n)&&n.length&&(l=Math.max(...n.map(c=>c.x||0),l)),nn(l)?m.createElement("rect",{x:0,y:i<a?i:i-s,width:l+(o?parseInt("".concat(o),10):1),height:Math.floor(s)}):null}function NWe(e){var{alpha:t,baseLine:n,points:r,strokeWidth:o}=e,i=r[0].x,a=r[r.length-1].x;if(!_a(i)||!_a(a))return null;var s=t*Math.abs(i-a),l=Math.max(...r.map(c=>c.y||0));return nn(n)?l=Math.max(n,l):n&&Array.isArray(n)&&n.length&&(l=Math.max(...n.map(c=>c.y||0),l)),nn(l)?m.createElement("rect",{x:i<a?i:i-s,y:0,width:s,height:Math.floor(l+(o?parseInt("".concat(o),10):1))}):null}function _We(e){var{alpha:t,layout:n,points:r,baseLine:o,strokeWidth:i}=e;return n==="vertical"?m.createElement(kWe,{alpha:t,points:r,baseLine:o,strokeWidth:i}):m.createElement(NWe,{alpha:t,points:r,baseLine:o,strokeWidth:i})}function LWe(e){var{needClip:t,clipPathId:n,props:r,previousPointsRef:o,previousBaselineRef:i}=e,{points:a,baseLine:s,isAnimationActive:l,animationBegin:c,animationDuration:u,animationEasing:f,onAnimationStart:h,onAnimationEnd:g}=r,y=Dv(r,"recharts-area-"),[x,S]=m.useState(!1),C=!x,E=m.useCallback(()=>{typeof g=="function"&&g(),S(!1)},[g]),I=m.useCallback(()=>{typeof h=="function"&&h(),S(!0)},[h]),M=o.current,O=i.current;return m.createElement(RWe,{showLabels:C,points:a},r.children,m.createElement(Av,{animationId:y,begin:c,duration:u,isActive:l,easing:f,onAnimationEnd:E,onAnimationStart:I,key:y},D=>{if(M){var N=M.length/a.length,$=D===1?a:a.map((A,F)=>{var z=Math.floor(F*N);if(M[z]){var H=M[z];return pp(pp({},A),{},{x:ao(H.x,A.x,D),y:ao(H.y,A.y,D)})}return A}),L;return nn(s)?L=ao(O,s,D):Gr(s)||hl(s)?L=ao(O,0,D):L=s.map((A,F)=>{var z=Math.floor(F*N);if(Array.isArray(O)&&O[z]){var H=O[z];return pp(pp({},A),{},{x:ao(H.x,A.x,D),y:ao(H.y,A.y,D)})}return A}),D>0&&(o.current=$,i.current=L),m.createElement(Y9,{points:$,baseLine:L,needClip:t,clipPathId:n,props:r})}return D>0&&(o.current=a,i.current=s),m.createElement(so,null,l&&m.createElement("defs",null,m.createElement("clipPath",{id:"animationClipPath-".concat(n)},m.createElement(_We,{alpha:D,points:a,baseLine:s,layout:r.layout,strokeWidth:r.strokeWidth}))),m.createElement(so,{clipPath:"url(#animationClipPath-".concat(n,")")},m.createElement(Y9,{points:a,baseLine:s,needClip:t,clipPathId:n,props:r})))}),m.createElement(ZT,{label:r.label}))}function $We(e){var{needClip:t,clipPathId:n,props:r}=e,o=m.useRef(null),i=m.useRef();return m.createElement(LWe,{needClip:t,clipPathId:n,props:r,previousPointsRef:o,previousBaselineRef:i})}class FWe extends m.PureComponent{render(){var t,{hide:n,dot:r,points:o,className:i,top:a,left:s,needClip:l,xAxisId:c,yAxisId:u,width:f,height:h,id:g,baseLine:y}=this.props;if(n)return null;var x=ge("recharts-area",i),S=g,{r:C=3,strokeWidth:E=2}=(t=vo(r,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},I=rk(r),M=C*2+E;return m.createElement(m.Fragment,null,m.createElement(so,{className:x},l&&m.createElement("defs",null,m.createElement(Uk,{clipPathId:S,xAxisId:c,yAxisId:u}),!I&&m.createElement("clipPath",{id:"clipPath-dots-".concat(S)},m.createElement("rect",{x:s-M/2,y:a-M/2,width:f+M,height:h+M}))),m.createElement($We,{needClip:l,clipPathId:S,props:this.props})),m.createElement(aB,{points:o,mainColor:kD(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot}),this.props.isRange&&Array.isArray(y)&&m.createElement(aB,{points:y,mainColor:kD(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot}))}}var Lie={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:!gf.isSsr,legendType:"line",stroke:"#3182bd",xAxisId:0,yAxisId:0};function jWe(e){var t,n=wi(e,Lie),{activeDot:r,animationBegin:o,animationDuration:i,animationEasing:a,connectNulls:s,dot:l,fill:c,fillOpacity:u,hide:f,isAnimationActive:h,legendType:g,stroke:y,xAxisId:x,yAxisId:S}=n,C=_ie(n,SWe),E=jT(),I=joe(),{needClip:M}=nP(x,S),O=Yi(),{points:D,isRange:N,baseLine:$}=(t=Zt(Q=>xWe(Q,x,S,O,e.id)))!==null&&t!==void 0?t:{},L=Hk();if(E!=="horizontal"&&E!=="vertical"||L==null||I!=="AreaChart"&&I!=="ComposedChart")return null;var{height:A,width:F,x:z,y:H}=L;return!D||!D.length?null:m.createElement(FWe,yp({},C,{activeDot:r,animationBegin:o,animationDuration:i,animationEasing:a,baseLine:$,connectNulls:s,dot:l,fill:c,fillOpacity:u,height:A,hide:f,layout:E,isAnimationActive:h,isRange:N,legendType:g,needClip:M,points:D,stroke:y,width:F,left:z,top:H,xAxisId:x,yAxisId:S}))}var BWe=(e,t,n,r,o)=>{var i=n??t;if(nn(i))return i;var a=e==="horizontal"?o:r,s=a.scale.domain();if(a.type==="number"){var l=Math.max(s[0],s[1]),c=Math.min(s[0],s[1]);return i==="dataMin"?c:i==="dataMax"||l<0?l:Math.max(Math.min(s[0],s[1]),0)}return i==="dataMin"?s[0]:i==="dataMax"?s[1]:s[0]};function zWe(e){var{areaSettings:{connectNulls:t,baseValue:n,dataKey:r},stackedData:o,layout:i,chartBaseValue:a,xAxis:s,yAxis:l,displayedData:c,dataStartIndex:u,xAxisTicks:f,yAxisTicks:h,bandSize:g}=e,y=o&&o.length,x=BWe(i,a,n,s,l),S=i==="horizontal",C=!1,E=c.map((M,O)=>{var D;y?D=o[u+O]:(D=Ar(M,r),Array.isArray(D)?C=!0:D=[x,D]);var N=D[1]==null||y&&!t&&Ar(M,r)==null;return S?{x:Dx({axis:s,ticks:f,bandSize:g,entry:M,index:O}),y:N?null:l.scale(D[1]),value:D,payload:M}:{x:N?null:s.scale(D[1]),y:Dx({axis:l,ticks:h,bandSize:g,entry:M,index:O}),value:D,payload:M}}),I;return y||C?I=E.map(M=>{var O=Array.isArray(M.value)?M.value[0]:null;return S?{x:M.x,y:O!=null&&M.y!=null?l.scale(O):null,payload:M.payload}:{x:O!=null?s.scale(O):null,y:M.y,payload:M.payload}}):I=S?l.scale(x):s.scale(x),{points:E,baseLine:I,isRange:C}}function VWe(e){var t=wi(e,Lie),n=Yi();return m.createElement(tP,{id:t.id,type:"area"},r=>m.createElement(m.Fragment,null,m.createElement(zk,{legendPayload:IWe(t)}),m.createElement(eP,{fn:OWe,args:t}),m.createElement(Vk,{type:"area",id:r,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:Tne(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),m.createElement(jWe,yp({},t,{id:r}))))}var $ie=m.memo(VWe);$ie.displayName="Area";function Fie(e,t,n){return(t=HWe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HWe(e){var t=UWe(e,"string");return typeof t=="symbol"?t:t+""}function UWe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GWe(e){var t=Lo();return m.useEffect(()=>(t(m3e(e)),()=>{t(g3e(e))}),[e,t]),null}class sU extends m.Component{render(){return m.createElement(GWe,{domain:this.props.domain,id:this.props.zAxisId,dataKey:this.props.dataKey,name:this.props.name,unit:this.props.unit,range:this.props.range,scale:this.props.scale,type:this.props.type,allowDuplicatedCategory:pm.allowDuplicatedCategory,allowDataOverflow:pm.allowDataOverflow,reversed:pm.reversed,includeHidden:pm.includeHidden})}}Fie(sU,"displayName","ZAxis");Fie(sU,"defaultProps",{zAxisId:0,range:pm.range,scale:pm.scale,type:pm.type});var WWe=["option","isActive"];function Y1(){return Y1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y1.apply(null,arguments)}function qWe(e,t){if(e==null)return{};var n,r,o=KWe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function KWe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function YWe(e){var{option:t,isActive:n}=e,r=qWe(e,WWe);return typeof t=="string"?m.createElement(MD,Y1({option:m.createElement(sk,Y1({type:t},r)),isActive:n,shapeType:"symbols"},r)):m.createElement(MD,Y1({option:t,isActive:n,shapeType:"symbols"},r))}var QWe=(e,t,n,r,o,i,a)=>tu(e,"xAxis",t,a),XWe=(e,t,n,r,o,i,a)=>eu(e,"xAxis",t,a),JWe=(e,t,n,r,o,i,a)=>tu(e,"yAxis",n,a),ZWe=(e,t,n,r,o,i,a)=>eu(e,"yAxis",n,a),e8e=(e,t,n,r)=>eHe(e,"zAxis",r,!1),t8e=(e,t,n,r,o)=>o,n8e=(e,t,n,r,o,i)=>i,r8e=(e,t,n,r,o,i,a)=>ww(e,t,n,a),o8e=Ue([Tw,t8e],(e,t)=>e.filter(n=>n.type==="scatter").find(n=>n.id===t)),i8e=Ue([r8e,QWe,XWe,JWe,ZWe,e8e,o8e,n8e],(e,t,n,r,o,i,a,s)=>{var{chartData:l,dataStartIndex:c,dataEndIndex:u}=e;if(a!=null){var f;if(a?.data!=null&&a.data.length>0?f=a.data:f=l?.slice(c,u+1),!(f==null||t==null||r==null||n==null||o==null||n?.length===0||o?.length===0))return b8e({displayedData:f,xAxis:t,yAxis:r,zAxis:i,scatterSettings:a,xAxisTicks:n,yAxisTicks:o,cells:s})}}),a8e=["onMouseEnter","onClick","onMouseLeave"],s8e=["id"],l8e=["animationBegin","animationDuration","animationEasing","hide","isAnimationActive","legendType","lineJointType","lineType","shape","xAxisId","yAxisId","zAxisId"];function uB(e,t){if(e==null)return{};var n,r,o=c8e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c8e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function fv(){return fv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fv.apply(null,arguments)}function Q9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function is(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q9(Object(n),!0).forEach(function(r){u8e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u8e(e,t,n){return(t=d8e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d8e(e){var t=f8e(e,"string");return typeof t=="symbol"?t:t+""}function f8e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var p8e=e=>{var{dataKey:t,name:n,fill:r,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:r,value:mf(n,t),payload:e}]};function h8e(e){var{points:t,props:n}=e,{line:r,lineType:o,lineJointType:i}=n;if(!r)return null;var a=ml(n),s=vo(r,!1),l,c;if(o==="joint")l=t.map(S=>({x:S.cx,y:S.cy}));else if(o==="fitting"){var{xmin:u,xmax:f,a:h,b:g}=sNe(t),y=S=>h*S+g;l=[{x:u,y:y(u)},{x:f,y:y(f)}]}var x=is(is(is({},a),{},{fill:"none",stroke:a&&a.fill},s),{},{points:l});return m.isValidElement(r)?c=m.cloneElement(r,x):typeof r=="function"?c=r(x):c=m.createElement(Hy,fv({},x,{type:i})),m.createElement(so,{className:"recharts-scatter-line",key:"recharts-scatter-line"},c)}function m8e(e){var{showLabels:t,points:n,children:r}=e,o=vk(),i=m.useMemo(()=>n?.map(a=>{var s={x:a.x,y:a.y,width:a.width,height:a.height};return is(is({},s),{},{value:void 0,payload:a.payload,viewBox:s,parentViewBox:o,fill:void 0})}),[o,n]);return m.createElement(Lk,{value:t?i:null},r)}function g8e(e){var{points:t,allOtherScatterProps:n}=e,{shape:r,activeShape:o,dataKey:i}=n,a=Zt(Lp),{onMouseEnter:s,onClick:l,onMouseLeave:c}=n,u=uB(n,a8e),f=Fk(s,n.dataKey),h=jk(c),g=Bk(l,n.dataKey);if(t==null)return null;var{id:y}=n,x=uB(n,s8e),S=ml(x);return m.createElement(m.Fragment,null,m.createElement(h8e,{points:t,props:x}),t.map((C,E)=>{var I=o&&a===String(E),M=I?o:r,O=is(is(is({key:"symbol-".concat(E)},S),C),{},{[LV]:E,[$V]:String(i)});return m.createElement(so,fv({className:"recharts-scatter-symbol"},bw(u,C,E),{onMouseEnter:f(C,E),onMouseLeave:h(C,E),onClick:g(C,E),key:"symbol-".concat(C?.cx,"-").concat(C?.cy,"-").concat(C?.size,"-").concat(E)}),m.createElement(YWe,fv({option:M,isActive:I},O)))}))}function y8e(e){var{previousPointsRef:t,props:n}=e,{points:r,isAnimationActive:o,animationBegin:i,animationDuration:a,animationEasing:s}=n,l=t.current,c=Dv(n,"recharts-scatter-"),[u,f]=m.useState(!1),h=m.useCallback(()=>{f(!1)},[]),g=m.useCallback(()=>{f(!0)},[]),y=!u;return m.createElement(m8e,{showLabels:y,points:r},n.children,m.createElement(Av,{animationId:c,begin:i,duration:a,isActive:o,easing:s,onAnimationEnd:h,onAnimationStart:g,key:c},x=>{var S=x===1?r:r?.map((C,E)=>{var I=l&&l[E];if(I){var M=yM(I.cx,C.cx),O=yM(I.cy,C.cy),D=yM(I.size,C.size);return is(is({},C),{},{cx:M(x),cy:O(x),size:D(x)})}var N=yM(0,C.size);return is(is({},C),{},{size:N(x)})});return x>0&&(t.current=S),m.createElement(so,null,m.createElement(g8e,{points:S,allOtherScatterProps:n,showLabels:y}))}),m.createElement(ZT,{label:n.label}))}function v8e(e){var{dataKey:t,points:n,stroke:r,strokeWidth:o,fill:i,name:a,hide:s,tooltipType:l}=e;return{dataDefinedOnItem:n?.map(c=>c.tooltipPayload),positions:n?.map(c=>c.tooltipPosition),settings:{stroke:r,strokeWidth:o,fill:i,nameKey:void 0,dataKey:t,name:mf(a,t),hide:s,type:l,color:i,unit:""}}}function b8e(e){var{displayedData:t,xAxis:n,yAxis:r,zAxis:o,scatterSettings:i,xAxisTicks:a,yAxisTicks:s,cells:l}=e,c=Gr(n.dataKey)?i.dataKey:n.dataKey,u=Gr(r.dataKey)?i.dataKey:r.dataKey,f=o&&o.dataKey,h=o?o.range:sU.defaultProps.range,g=h&&h[0],y=n.scale.bandwidth?n.scale.bandwidth():0,x=r.scale.bandwidth?r.scale.bandwidth():0;return t.map((S,C)=>{var E=Ar(S,c),I=Ar(S,u),M=!Gr(f)&&Ar(S,f)||"-",O=[{name:Gr(n.dataKey)?i.name:n.name||n.dataKey,unit:n.unit||"",value:E,payload:S,dataKey:c,type:i.tooltipType},{name:Gr(r.dataKey)?i.name:r.name||r.dataKey,unit:r.unit||"",value:I,payload:S,dataKey:u,type:i.tooltipType}];M!=="-"&&O.push({name:o.name||o.dataKey,unit:o.unit||"",value:M,payload:S,dataKey:f,type:i.tooltipType});var D=Dx({axis:n,ticks:a,bandSize:y,entry:S,index:C,dataKey:c}),N=Dx({axis:r,ticks:s,bandSize:x,entry:S,index:C,dataKey:u}),$=M!=="-"?o.scale(M):g,L=Math.sqrt(Math.max($,0)/Math.PI);return is(is({},S),{},{cx:D,cy:N,x:D-L,y:N-L,width:2*L,height:2*L,size:$,node:{x:E,y:I,z:M},tooltipPayload:O,tooltipPosition:{x:D,y:N},payload:S},l&&l[C]&&l[C].props)})}var x8e=(e,t,n)=>({x:e.cx,y:e.cy,value:n==="x"?+e.node.x:+e.node.y,errorVal:Ar(e,t)});function w8e(e){var{hide:t,points:n,className:r,needClip:o,xAxisId:i,yAxisId:a,id:s}=e,l=m.useRef(null);if(t)return null;var c=ge("recharts-scatter",r),u=s;return m.createElement(so,{className:c,clipPath:o?"url(#clipPath-".concat(u,")"):null,id:s},o&&m.createElement("defs",null,m.createElement(Uk,{clipPathId:u,xAxisId:i,yAxisId:a})),m.createElement(eU,{xAxisId:i,yAxisId:a,data:n,dataPointFormatter:x8e,errorBarOffset:0},m.createElement(so,{key:"recharts-scatter-symbols"},m.createElement(y8e,{props:e,previousPointsRef:l}))))}var jie={xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!gf.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"};function S8e(e){var t=wi(e,jie),{animationBegin:n,animationDuration:r,animationEasing:o,hide:i,isAnimationActive:a,legendType:s,lineJointType:l,lineType:c,shape:u,xAxisId:f,yAxisId:h,zAxisId:g}=t,y=uB(t,l8e),{needClip:x}=nP(f,h),S=m.useMemo(()=>nk(e.children,_v),[e.children]),C=Yi(),E=Zt(I=>i8e(I,f,h,g,e.id,S,C));return x==null||E==null?null:m.createElement(m.Fragment,null,m.createElement(eP,{fn:v8e,args:is(is({},e),{},{points:E})}),m.createElement(w8e,fv({},y,{xAxisId:f,yAxisId:h,zAxisId:g,lineType:c,lineJointType:l,legendType:s,shape:u,hide:i,isAnimationActive:a,animationBegin:n,animationDuration:r,animationEasing:o,points:E,needClip:x})))}function C8e(e){var t=wi(e,jie),n=Yi();return m.createElement(tP,{id:t.id,type:"scatter"},r=>m.createElement(m.Fragment,null,m.createElement(zk,{legendPayload:p8e(t)}),m.createElement(Vk,{type:"scatter",id:r,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:t.zAxisId,dataKey:t.dataKey,hide:t.hide,name:t.name,tooltipType:t.tooltipType,isPanorama:n}),m.createElement(S8e,fv({},t,{id:r}))))}var Bie=m.memo(C8e);Bie.displayName="Scatter";var E8e=["dangerouslySetInnerHTML","ticks"],T8e=["id"],P8e=["domain"],I8e=["domain"];function dB(){return dB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dB.apply(null,arguments)}function ND(e,t){if(e==null)return{};var n,r,o=O8e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function O8e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function M8e(e){var t=Lo();return m.useEffect(()=>(t(d3e(e)),()=>{t(f3e(e))}),[e,t]),null}var A8e=e=>{var{xAxisId:t,className:n}=e,r=Zt(FV),o=Yi(),i="xAxis",a=Zt(S=>Om(S,i,t,o)),s=Zt(S=>voe(S,i,t,o)),l=Zt(S=>hoe(S,t)),c=Zt(S=>KVe(S,t)),u=Zt(S=>Gre(S,t));if(l==null||c==null||u==null)return null;var{dangerouslySetInnerHTML:f,ticks:h}=e,g=ND(e,E8e),{id:y}=u,x=ND(u,T8e);return m.createElement(iU,dB({},g,x,{scale:a,x:c.x,y:c.y,width:l.width,height:l.height,className:ge("recharts-".concat(i," ").concat(i),n),viewBox:r,ticks:s}))},D8e={allowDataOverflow:Al.allowDataOverflow,allowDecimals:Al.allowDecimals,allowDuplicatedCategory:Al.allowDuplicatedCategory,height:Al.height,hide:!1,mirror:Al.mirror,orientation:Al.orientation,padding:Al.padding,reversed:Al.reversed,scale:Al.scale,tickCount:Al.tickCount,type:Al.type,xAxisId:0},R8e=e=>{var t,n,r,o,i,a=wi(e,D8e);return m.createElement(m.Fragment,null,m.createElement(M8e,{interval:(t=a.interval)!==null&&t!==void 0?t:"preserveEnd",id:a.xAxisId,scale:a.scale,type:a.type,padding:a.padding,allowDataOverflow:a.allowDataOverflow,domain:a.domain,dataKey:a.dataKey,allowDuplicatedCategory:a.allowDuplicatedCategory,allowDecimals:a.allowDecimals,tickCount:a.tickCount,includeHidden:(n=a.includeHidden)!==null&&n!==void 0?n:!1,reversed:a.reversed,ticks:a.ticks,height:a.height,orientation:a.orientation,mirror:a.mirror,hide:a.hide,unit:a.unit,name:a.name,angle:(r=a.angle)!==null&&r!==void 0?r:0,minTickGap:(o=a.minTickGap)!==null&&o!==void 0?o:5,tick:(i=a.tick)!==null&&i!==void 0?i:!0,tickFormatter:a.tickFormatter}),m.createElement(A8e,a))},k8e=(e,t)=>{var{domain:n}=e,r=ND(e,P8e),{domain:o}=t,i=ND(t,I8e);return Fx(r,i)?Array.isArray(n)&&n.length===2&&Array.isArray(o)&&o.length===2?n[0]===o[0]&&n[1]===o[1]:Fx({domain:n},{domain:o}):!1},Um=m.memo(R8e,k8e);Um.displayName="XAxis";var N8e=["dangerouslySetInnerHTML","ticks"],_8e=["id"],L8e=["domain"],$8e=["domain"];function fB(){return fB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fB.apply(null,arguments)}function _D(e,t){if(e==null)return{};var n,r,o=F8e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function F8e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function j8e(e){var t=Lo();return m.useEffect(()=>(t(p3e(e)),()=>{t(h3e(e))}),[e,t]),null}var B8e=e=>{var{yAxisId:t,className:n,width:r,label:o}=e,i=m.useRef(null),a=m.useRef(null),s=Zt(FV),l=Yi(),c=Lo(),u="yAxis",f=Zt(O=>Om(O,u,t,l)),h=Zt(O=>moe(O,t)),g=Zt(O=>QVe(O,t)),y=Zt(O=>voe(O,u,t,l)),x=Zt(O=>Wre(O,t));if(m.useLayoutEffect(()=>{if(!(r!=="auto"||!h||WH(o)||m.isValidElement(o)||x==null)){var O=i.current;if(O){var D=O.getCalculatedWidth();Math.round(h.width)!==Math.round(D)&&c(y3e({id:t,width:D}))}}},[y,h,c,o,t,r,x]),h==null||g==null||x==null)return null;var{dangerouslySetInnerHTML:S,ticks:C}=e,E=_D(e,N8e),{id:I}=x,M=_D(x,_8e);return m.createElement(iU,fB({},E,M,{ref:i,labelRef:a,scale:f,x:g.x,y:g.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:h.width,height:h.height,className:ge("recharts-".concat(u," ").concat(u),n),viewBox:s,ticks:y}))},z8e={allowDataOverflow:Dl.allowDataOverflow,allowDecimals:Dl.allowDecimals,allowDuplicatedCategory:Dl.allowDuplicatedCategory,hide:!1,mirror:Dl.mirror,orientation:Dl.orientation,padding:Dl.padding,reversed:Dl.reversed,scale:Dl.scale,tickCount:Dl.tickCount,type:Dl.type,width:Dl.width,yAxisId:0},V8e=e=>{var t,n,r,o,i,a=wi(e,z8e);return m.createElement(m.Fragment,null,m.createElement(j8e,{interval:(t=a.interval)!==null&&t!==void 0?t:"preserveEnd",id:a.yAxisId,scale:a.scale,type:a.type,domain:a.domain,allowDataOverflow:a.allowDataOverflow,dataKey:a.dataKey,allowDuplicatedCategory:a.allowDuplicatedCategory,allowDecimals:a.allowDecimals,tickCount:a.tickCount,padding:a.padding,includeHidden:(n=a.includeHidden)!==null&&n!==void 0?n:!1,reversed:a.reversed,ticks:a.ticks,width:a.width,orientation:a.orientation,mirror:a.mirror,hide:a.hide,unit:a.unit,name:a.name,angle:(r=a.angle)!==null&&r!==void 0?r:0,minTickGap:(o=a.minTickGap)!==null&&o!==void 0?o:5,tick:(i=a.tick)!==null&&i!==void 0?i:!0,tickFormatter:a.tickFormatter}),m.createElement(B8e,a))},H8e=(e,t)=>{var{domain:n}=e,r=_D(e,L8e),{domain:o}=t,i=_D(t,$8e);return Fx(r,i)?Array.isArray(n)&&n.length===2&&Array.isArray(o)&&o.length===2?n[0]===o[0]&&n[1]===o[1]:Fx({domain:n},{domain:o}):!1},Gm=m.memo(V8e,H8e);Gm.displayName="YAxis";var a$={exports:{}},s$={};/**
- * @license React
- * use-sync-external-store-with-selector.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var X9;function U8e(){if(X9)return s$;X9=1;var e=ew();function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,a=e.useMemo,s=e.useDebugValue;return s$.useSyncExternalStoreWithSelector=function(l,c,u,f,h){var g=o(null);if(g.current===null){var y={hasValue:!1,value:null};g.current=y}else y=g.current;g=a(function(){function S(O){if(!C){if(C=!0,E=O,O=f(O),h!==void 0&&y.hasValue){var D=y.value;if(h(D,O))return I=D}return I=O}if(D=I,n(E,O))return D;var N=f(O);return h!==void 0&&h(D,N)?(E=O,D):(E=O,I=N)}var C=!1,E,I,M=u===void 0?null:u;return[function(){return S(c())},M===null?void 0:function(){return S(M())}]},[c,u,f,h]);var x=r(l,g[0],g[1]);return i(function(){y.hasValue=!0,y.value=x},[x]),s(x),x},s$}var J9;function G8e(){return J9||(J9=1,a$.exports=U8e()),a$.exports}G8e();var W8e=m.version.startsWith("19"),q8e=Symbol.for(W8e?"react.transitional.element":"react.element"),K8e=Symbol.for("react.portal"),Y8e=Symbol.for("react.fragment"),Q8e=Symbol.for("react.strict_mode"),X8e=Symbol.for("react.profiler"),J8e=Symbol.for("react.consumer"),Z8e=Symbol.for("react.context"),zie=Symbol.for("react.forward_ref"),eqe=Symbol.for("react.suspense"),tqe=Symbol.for("react.suspense_list"),lU=Symbol.for("react.memo"),nqe=Symbol.for("react.lazy"),rqe=zie,oqe=lU;function iqe(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case q8e:switch(e=e.type,e){case Y8e:case X8e:case Q8e:case eqe:case tqe:return e;default:switch(e=e&&e.$$typeof,e){case Z8e:case zie:case nqe:case lU:return e;case J8e:return e;default:return t}}case K8e:return t}}}function aqe(e){return iqe(e)===lU}function sqe(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s=!1,l,c,u,f,h;function g(E,I){return l=E,c=I,u=e(l,c),f=t(r,c),h=n(u,f,c),s=!0,h}function y(){return u=e(l,c),t.dependsOnOwnProps&&(f=t(r,c)),h=n(u,f,c),h}function x(){return e.dependsOnOwnProps&&(u=e(l,c)),t.dependsOnOwnProps&&(f=t(r,c)),h=n(u,f,c),h}function S(){const E=e(l,c),I=!a(E,u);return u=E,I&&(h=n(u,f,c)),h}function C(E,I){const M=!i(I,c),O=!o(E,l,I,c);return l=E,c=I,M&&O?y():M?x():O?S():h}return function(I,M){return s?C(I,M):g(I,M)}}function lqe(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){const i=t(e,o),a=n(e,o),s=r(e,o);return sqe(i,a,s,e,o)}function cqe(e,t){const n={};for(const r in e){const o=e[r];typeof o=="function"&&(n[r]=(...i)=>t(o(...i)))}return n}function pB(e){return function(n){const r=e(n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function Z9(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function Vie(e,t){return function(r,{displayName:o}){const i=function(s,l){return i.dependsOnOwnProps?i.mapToProps(s,l):i.mapToProps(s,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(s,l){i.mapToProps=e,i.dependsOnOwnProps=Z9(e);let c=i(s,l);return typeof c=="function"&&(i.mapToProps=c,i.dependsOnOwnProps=Z9(c),c=i(s,l)),c},i}}function cU(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function uqe(e){return e&&typeof e=="object"?pB(t=>cqe(e,t)):e?typeof e=="function"?Vie(e):cU(e,"mapDispatchToProps"):pB(t=>({dispatch:t}))}function dqe(e){return e?typeof e=="function"?Vie(e):cU(e,"mapStateToProps"):pB(()=>({}))}function fqe(e,t,n){return{...n,...e,...t}}function pqe(e){return function(n,{displayName:r,areMergedPropsEqual:o}){let i=!1,a;return function(l,c,u){const f=e(l,c,u);return i?o(f,a)||(a=f):(i=!0,a=f),a}}}function hqe(e){return e?typeof e=="function"?pqe(e):cU(e,"mergeProps"):()=>fqe}function mqe(e){e()}function gqe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){mqe(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var e7={notify(){},get:()=>[]};function Hie(e,t){let n,r=e7,o=0,i=!1;function a(x){u();const S=r.subscribe(x);let C=!1;return()=>{C||(C=!0,S(),f())}}function s(){r.notify()}function l(){y.onStateChange&&y.onStateChange()}function c(){return i}function u(){o++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=gqe())}function f(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=e7)}function h(){i||(i=!0,u())}function g(){i&&(i=!1,f())}const y={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:h,tryUnsubscribe:g,getListeners:()=>r};return y}var yqe=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vqe=yqe(),bqe=()=>typeof navigator<"u"&&navigator.product==="ReactNative",xqe=bqe(),wqe=()=>vqe||xqe?m.useLayoutEffect:m.useEffect,LD=wqe();function t7(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function l$(e,t){if(t7(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!t7(e[n[o]],t[n[o]]))return!1;return!0}var Sqe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Cqe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Eqe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Uie={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Tqe={[rqe]:Eqe,[oqe]:Uie};function n7(e){return aqe(e)?Uie:Tqe[e.$$typeof]||Sqe}var Pqe=Object.defineProperty,Iqe=Object.getOwnPropertyNames,r7=Object.getOwnPropertySymbols,Oqe=Object.getOwnPropertyDescriptor,Mqe=Object.getPrototypeOf,o7=Object.prototype;function hB(e,t){if(typeof t!="string"){if(o7){const i=Mqe(t);i&&i!==o7&&hB(e,i)}let n=Iqe(t);r7&&(n=n.concat(r7(t)));const r=n7(e),o=n7(t);for(let i=0;i<n.length;++i){const a=n[i];if(!Cqe[a]&&!(o&&o[a])&&!(r&&r[a])){const s=Oqe(t,a);try{Pqe(e,a,s)}catch{}}}}return e}var Aqe=Symbol.for("react-redux-context"),Dqe=typeof globalThis<"u"?globalThis:{};function Rqe(){if(!m.createContext)return{};const e=Dqe[Aqe]??=new Map;let t=e.get(m.createContext);return t||(t=m.createContext(null),e.set(m.createContext,t)),t}var Gie=Rqe(),kqe=[null,null];function Nqe(e,t,n){LD(()=>e(...t),n)}function _qe(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function Lqe(e,t,n,r,o,i,a,s,l,c,u){if(!e)return()=>{};let f=!1,h=null;const g=()=>{if(f||!s.current)return;const x=t.getState();let S,C;try{S=r(x,o.current)}catch(E){C=E,h=E}C||(h=null),S===i.current?a.current||c():(i.current=S,l.current=S,a.current=!0,u())};return n.onStateChange=g,n.trySubscribe(),g(),()=>{if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,h)throw h}}function $qe(e,t){return e===t}function Fqe(e,t,n,{pure:r,areStatesEqual:o=$qe,areOwnPropsEqual:i=l$,areStatePropsEqual:a=l$,areMergedPropsEqual:s=l$,forwardRef:l=!1,context:c=Gie}={}){const u=c,f=dqe(e),h=uqe(t),g=hqe(n),y=!!e;return S=>{const C=S.displayName||S.name||"Component",E=`Connect(${C})`,I={shouldHandleStateChanges:y,displayName:E,wrappedComponentName:C,WrappedComponent:S,initMapStateToProps:f,initMapDispatchToProps:h,initMergeProps:g,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function M(N){const[$,L,A]=m.useMemo(()=>{const{reactReduxForwardedRef:ae,...Se}=N;return[N.context,ae,Se]},[N]),F=m.useMemo(()=>{let ae=u;return $?.Consumer,ae},[$,u]),z=m.useContext(F),H=!!N.store&&!!N.store.getState&&!!N.store.dispatch,Q=!!z&&!!z.store,G=H?N.store:z.store,V=Q?z.getServerState:G.getState,Y=m.useMemo(()=>lqe(G.dispatch,I),[G]),[X,te]=m.useMemo(()=>{if(!y)return kqe;const ae=Hie(G,H?void 0:z.subscription),Se=ae.notifyNestedSubs.bind(ae);return[ae,Se]},[G,H,z]),U=m.useMemo(()=>H?z:{...z,subscription:X},[H,z,X]),K=m.useRef(void 0),ee=m.useRef(A),le=m.useRef(void 0),ce=m.useRef(!1),se=m.useRef(!1),fe=m.useRef(void 0);LD(()=>(se.current=!0,()=>{se.current=!1}),[]);const we=m.useMemo(()=>()=>le.current&&A===ee.current?le.current:Y(G.getState(),A),[G,A]),Oe=m.useMemo(()=>Se=>X?Lqe(y,G,X,Y,ee,K,ce,se,le,te,Se):()=>{},[X]);Nqe(_qe,[ee,K,ce,A,le,te]);let he;try{he=m.useSyncExternalStore(Oe,we,V?()=>Y(V(),A):we)}catch(ae){throw fe.current&&(ae.message+=`
-The error may be correlated with this previous error:
-${fe.current.stack}
-
-`),ae}LD(()=>{fe.current=void 0,le.current=void 0,K.current=he});const me=m.useMemo(()=>m.createElement(S,{...he,ref:L}),[L,S,he]);return m.useMemo(()=>y?m.createElement(F.Provider,{value:U},me):me,[F,me,U])}const D=m.memo(M);if(D.WrappedComponent=S,D.displayName=M.displayName=E,l){const $=m.forwardRef(function(A,F){return m.createElement(D,{...A,reactReduxForwardedRef:F})});return $.displayName=E,$.WrappedComponent=S,hB($,S)}return hB(D,S)}}var Wie=Fqe;function jqe(e){const{children:t,context:n,serverState:r,store:o}=e,i=m.useMemo(()=>{const l=Hie(o);return{store:o,subscription:l,getServerState:r?()=>r:void 0}},[o,r]),a=m.useMemo(()=>o.getState(),[o]);LD(()=>{const{subscription:l}=i;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==o.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[i,a]);const s=n||Gie;return m.createElement(s.Provider,{value:i},t)}var qie=jqe,Bqe=(e,t)=>t,uU=Ue([Bqe,pr,Vre,Xi,koe,Wp,tUe,Ki],aUe),dU=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,r=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/r)}},Kie=Jc("mouseClick"),Yie=$T();Yie.startListening({actionCreator:Kie,effect:(e,t)=>{var n=e.payload,r=uU(t.getState(),dU(n));r?.activeIndex!=null&&t.dispatch(uHe({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var mB=Jc("mouseMove"),Qie=$T();Qie.startListening({actionCreator:mB,effect:(e,t)=>{var n=e.payload,r=t.getState(),o=$H(r,r.tooltip.settings.shared),i=uU(r,dU(n));o==="axis"&&(i?.activeIndex!=null?t.dispatch(Poe({activeIndex:i.activeIndex,activeDataKey:void 0,activeCoordinate:i.activeCoordinate})):t.dispatch(Toe()))}});var i7={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},Xie=tc({name:"rootProps",initialState:i7,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:i7.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className}}}),zqe=Xie.reducer,{updateOptions:Vqe}=Xie.actions,Jie=tc({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:Hqe}=Jie.actions,Uqe=Jie.reducer,Zie=Jc("keyDown"),eae=Jc("focus"),fU=$T();fU.startListening({actionCreator:Zie,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:o}=n.tooltip,i=e.payload;if(!(i!=="ArrowRight"&&i!=="ArrowLeft"&&i!=="Enter")){var a=Number(FH(o,Mw(n))),s=Wp(n);if(i==="Enter"){var l=TD(n,"axis","hover",String(o.index));t.dispatch(tB({active:!o.active,activeIndex:o.index,activeDataKey:o.dataKey,activeCoordinate:l}));return}var c=tHe(n),u=c==="left-to-right"?1:-1,f=i==="ArrowRight"?1:-1,h=a+f*u;if(!(s==null||h>=s.length||h<0)){var g=TD(n,"axis","hover",String(h));t.dispatch(tB({active:!0,activeIndex:h.toString(),activeDataKey:void 0,activeCoordinate:g}))}}}}});fU.startListening({actionCreator:eae,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:o}=n.tooltip;if(!o.active&&o.index==null){var i="0",a=TD(n,"axis","hover",String(i));t.dispatch(tB({activeDataKey:void 0,active:!0,activeIndex:i,activeCoordinate:a}))}}}});var Tc=Jc("externalEvent"),tae=$T();tae.startListening({actionCreator:Tc,effect:(e,t)=>{if(e.payload.handler!=null){var n=t.getState(),r={activeCoordinate:WHe(n),activeDataKey:$oe(n),activeIndex:Lp(n),activeLabel:Loe(n),activeTooltipIndex:Lp(n),isTooltipActive:qHe(n)};e.payload.handler(r,e.payload.reactEvent)}}});var Gqe=Ue([Ow],e=>e.tooltipItemPayloads),Wqe=Ue([Gqe,YT,(e,t,n)=>t,(e,t,n)=>n],(e,t,n,r)=>{var o=e.find(s=>s.settings.dataKey===r);if(o!=null){var{positions:i}=o;if(i!=null){var a=t(i,n);return a}}}),nae=Jc("touchMove"),rae=$T();rae.startListening({actionCreator:nae,effect:(e,t)=>{var n=e.payload,r=t.getState(),o=$H(r,r.tooltip.settings.shared);if(o==="axis"){var i=uU(r,dU({clientX:n.touches[0].clientX,clientY:n.touches[0].clientY,currentTarget:n.currentTarget}));i?.activeIndex!=null&&t.dispatch(Poe({activeIndex:i.activeIndex,activeDataKey:void 0,activeCoordinate:i.activeCoordinate}))}else if(o==="item"){var a,s=n.touches[0],l=document.elementFromPoint(s.clientX,s.clientY);if(!l||!l.getAttribute)return;var c=l.getAttribute(LV),u=(a=l.getAttribute($V))!==null&&a!==void 0?a:void 0,f=Wqe(t.getState(),c,u);t.dispatch(Eoe({activeDataKey:u,activeIndex:c,activeCoordinate:f}))}}});var qqe=Xte({brush:$6e,cartesianAxis:v3e,chartData:SUe,errorBars:L3e,graphicalItems:_4e,layout:r$e,legend:W$e,options:yUe,polarAxis:J5e,polarOptions:Uqe,referenceElements:W6e,rootProps:zqe,tooltip:dHe}),Kqe=function(t){return OLe({reducer:qqe,preloadedState:t,middleware:n=>n({serializableCheck:!1}).concat([Yie.middleware,Qie.middleware,fU.middleware,tae.middleware,rae.middleware]),devTools:gf.devToolsEnabled})};function oae(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,o=Yi(),i=m.useRef(null);if(o)return n;i.current==null&&(i.current=Kqe(t));var a=MV;return m.createElement(qie,{context:a,store:i.current},n)}function iae(e){var{layout:t,width:n,height:r,margin:o}=e,i=Lo(),a=Yi();return m.useEffect(()=>{a||(i(e$e(t)),i(t$e({width:n,height:r})),i(ZLe(o)))},[i,a,t,n,r,o]),null}function aae(e){var t=Lo();return m.useEffect(()=>{t(Vqe(e))},[t,e]),null}var Yqe=["children"];function Qqe(e,t){if(e==null)return{};var n,r,o=Xqe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Xqe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function $D(){return $D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$D.apply(null,arguments)}var Jqe={width:"100%",height:"100%"},Zqe=m.forwardRef((e,t)=>{var n=jV(),r=BV(),o=Dne();if(!kx(n)||!kx(r))return null;var{children:i,otherAttributes:a,title:s,desc:l}=e,c,u;return typeof a.tabIndex=="number"?c=a.tabIndex:c=o?0:void 0,typeof a.role=="string"?u=a.role:u=o?"application":void 0,m.createElement(wV,$D({},a,{title:s,desc:l,role:u,tabIndex:c,width:n,height:r,style:Jqe,ref:t}),i)}),e9e=e=>{var{children:t}=e,n=Zt(yk);if(!n)return null;var{width:r,height:o,y:i,x:a}=n;return m.createElement(wV,{width:r,height:o,x:a,y:i},t)},a7=m.forwardRef((e,t)=>{var{children:n}=e,r=Qqe(e,Yqe),o=Yi();return o?m.createElement(e9e,null,n):m.createElement(Zqe,$D({ref:t},r),n)});function t9e(){var e=Lo(),[t,n]=m.useState(null),r=Zt(D$e);return m.useEffect(()=>{if(t!=null){var o=t.getBoundingClientRect(),i=o.width/t.offsetWidth;_a(i)&&i!==r&&e(n$e(i))}},[t,e,r]),n}function s7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function n9e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s7(Object(n),!0).forEach(function(r){r9e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function r9e(e,t,n){return(t=o9e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o9e(e){var t=i9e(e,"string");return typeof t=="symbol"?t:t+""}function i9e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var a9e=m.forwardRef((e,t)=>{var{children:n,className:r,height:o,onClick:i,onContextMenu:a,onDoubleClick:s,onMouseDown:l,onMouseEnter:c,onMouseLeave:u,onMouseMove:f,onMouseUp:h,onTouchEnd:g,onTouchMove:y,onTouchStart:x,style:S,width:C}=e,E=Lo(),[I,M]=m.useState(null),[O,D]=m.useState(null);DUe();var N=t9e(),$=m.useCallback(ee=>{N(ee),typeof t=="function"&&t(ee),M(ee),D(ee)},[N,t,M,D]),L=m.useCallback(ee=>{E(Kie(ee)),E(Tc({handler:i,reactEvent:ee}))},[E,i]),A=m.useCallback(ee=>{E(mB(ee)),E(Tc({handler:c,reactEvent:ee}))},[E,c]),F=m.useCallback(ee=>{E(Toe()),E(Tc({handler:u,reactEvent:ee}))},[E,u]),z=m.useCallback(ee=>{E(mB(ee)),E(Tc({handler:f,reactEvent:ee}))},[E,f]),H=m.useCallback(()=>{E(eae())},[E]),Q=m.useCallback(ee=>{E(Zie(ee.key))},[E]),G=m.useCallback(ee=>{E(Tc({handler:a,reactEvent:ee}))},[E,a]),V=m.useCallback(ee=>{E(Tc({handler:s,reactEvent:ee}))},[E,s]),Y=m.useCallback(ee=>{E(Tc({handler:l,reactEvent:ee}))},[E,l]),X=m.useCallback(ee=>{E(Tc({handler:h,reactEvent:ee}))},[E,h]),te=m.useCallback(ee=>{E(Tc({handler:x,reactEvent:ee}))},[E,x]),U=m.useCallback(ee=>{E(nae(ee)),E(Tc({handler:y,reactEvent:ee}))},[E,y]),K=m.useCallback(ee=>{E(Tc({handler:g,reactEvent:ee}))},[E,g]);return m.createElement(Uoe.Provider,{value:I},m.createElement(gte.Provider,{value:O},m.createElement("div",{className:ge("recharts-wrapper",r),style:n9e({position:"relative",cursor:"default",width:C,height:o},S),onClick:L,onContextMenu:G,onDoubleClick:V,onFocus:H,onKeyDown:Q,onMouseDown:Y,onMouseEnter:A,onMouseLeave:F,onMouseMove:z,onMouseUp:X,onTouchEnd:K,onTouchMove:U,onTouchStart:te,ref:$},n)))}),s9e=["children","className","width","height","style","compact","title","desc"];function l9e(e,t){if(e==null)return{};var n,r,o=c9e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c9e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var sae=m.forwardRef((e,t)=>{var{children:n,className:r,width:o,height:i,style:a,compact:s,title:l,desc:c}=e,u=l9e(e,s9e),f=ml(u);return s?m.createElement(a7,{otherAttributes:f,title:l,desc:c},n):m.createElement(a9e,{className:r,style:a,width:o,height:i,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},m.createElement(a7,{otherAttributes:f,title:l,desc:c,ref:t},m.createElement(q6e,null,n)))}),u9e=["width","height"];function gB(){return gB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gB.apply(null,arguments)}function d9e(e,t){if(e==null)return{};var n,r,o=f9e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f9e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var p9e={top:5,right:5,bottom:5,left:5},h9e={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:p9e,reverseStackOrder:!1,syncMethod:"index"},qk=m.forwardRef(function(t,n){var r,o=wi(t.categoricalChartProps,h9e),{width:i,height:a}=o,s=d9e(o,u9e);if(!kx(i)||!kx(a))return null;var{chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:u,tooltipPayloadSearcher:f,categoricalChartProps:h}=t,g={chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:u,tooltipPayloadSearcher:f,eventEmitter:void 0};return m.createElement(oae,{preloadedState:{options:g},reduxStoreName:(r=h.id)!==null&&r!==void 0?r:l},m.createElement(yie,{chartData:h.data}),m.createElement(iae,{width:i,height:a,layout:o.layout,margin:o.margin}),m.createElement(aae,{accessibilityLayer:o.accessibilityLayer,barCategoryGap:o.barCategoryGap,maxBarSize:o.maxBarSize,stackOffset:o.stackOffset,barGap:o.barGap,barSize:o.barSize,syncId:o.syncId,syncMethod:o.syncMethod,className:o.className}),m.createElement(sae,gB({},s,{width:i,height:a,ref:n})))}),m9e=["axis"],pU=m.forwardRef((e,t)=>m.createElement(qk,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:m9e,tooltipPayloadSearcher:XT,categoricalChartProps:e,ref:t})),g9e=["axis","item"],lae=m.forwardRef((e,t)=>m.createElement(qk,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:g9e,tooltipPayloadSearcher:XT,categoricalChartProps:e,ref:t}));function y9e(e){var t=Lo();return m.useEffect(()=>{t(Hqe(e))},[t,e]),null}var v9e=["width","height","layout"];function yB(){return yB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yB.apply(null,arguments)}function b9e(e,t){if(e==null)return{};var n,r,o=x9e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function x9e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var w9e={top:5,right:5,bottom:5,left:5},S9e={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:w9e,reverseStackOrder:!1,syncMethod:"index",layout:"radial"},C9e=m.forwardRef(function(t,n){var r,o=wi(t.categoricalChartProps,S9e),{width:i,height:a,layout:s}=o,l=b9e(o,v9e);if(!kx(i)||!kx(a))return null;var{chartName:c,defaultTooltipEventType:u,validateTooltipEventTypes:f,tooltipPayloadSearcher:h}=t,g={chartName:c,defaultTooltipEventType:u,validateTooltipEventTypes:f,tooltipPayloadSearcher:h,eventEmitter:void 0};return m.createElement(oae,{preloadedState:{options:g},reduxStoreName:(r=o.id)!==null&&r!==void 0?r:c},m.createElement(yie,{chartData:o.data}),m.createElement(iae,{width:i,height:a,layout:s,margin:o.margin}),m.createElement(aae,{accessibilityLayer:o.accessibilityLayer,barCategoryGap:o.barCategoryGap,maxBarSize:o.maxBarSize,stackOffset:o.stackOffset,barGap:o.barGap,barSize:o.barSize,syncId:o.syncId,syncMethod:o.syncMethod,className:o.className}),m.createElement(y9e,{cx:o.cx,cy:o.cy,startAngle:o.startAngle,endAngle:o.endAngle,innerRadius:o.innerRadius,outerRadius:o.outerRadius}),m.createElement(sae,yB({width:i,height:a},l,{ref:n})))}),E9e=["item"],T9e={layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},cae=m.forwardRef((e,t)=>{var n=wi(e,T9e);return m.createElement(C9e,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:E9e,tooltipPayloadSearcher:XT,categoricalChartProps:n,ref:t})}),P9e=["item"],I9e=m.forwardRef((e,t)=>m.createElement(qk,{chartName:"ScatterChart",defaultTooltipEventType:"item",validateTooltipEventTypes:P9e,tooltipPayloadSearcher:XT,categoricalChartProps:e,ref:t})),O9e=["axis"],M9e=m.forwardRef((e,t)=>m.createElement(qk,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:O9e,tooltipPayloadSearcher:XT,categoricalChartProps:e,ref:t}));const A9e=e=>{const t=e.planned.energy>0?e.logged.energy/e.planned.energy*100:100,n=e.planned.energy>0?e.planned.energy-e.logged.energy:e.logged.energy,r=Po(),[o,i]=We(),a=[{name:"",value:t},{name:"",value:t<100?100-t:0}],s=[r.palette.primary.main,"#C5C5C5"];return J(Jt,{direction:"row",children:[w(qp,{width:"50%",height:140,children:J(cae,{children:[w(JH,{height:100,data:a,startAngle:200,endAngle:-20,innerRadius:60,outerRadius:70,paddingAngle:2,dataKey:"value",children:a.map((l,c)=>w(_v,{fill:s[c%s.length]},`cell-${c}`))}),J("g",{children:[w("text",{x:"50%",y:"45%",fontSize:"1.25em",textAnchor:"middle",children:o("nutrition.valueEnergyKcal",{value:ts(n,i.language)})}),w("text",{x:"50%",y:"60%",fontSize:"1em",textAnchor:"middle",children:e.planned.energy>0&&o(t<100?"nutrition.valueRemaining":"nutrition.valueTooMany")})]})]})}),J(Jt,{width:"50%",spacing:1,children:[w(px,{title:o("nutrition.protein"),percentage:e.percentage.protein,logged:e.logged.protein,planned:e.planned.protein}),w(px,{title:o("nutrition.carbohydrates"),percentage:e.percentage.carbohydrates,logged:e.logged.carbohydrates,planned:e.planned.carbohydrates}),w(px,{title:o("nutrition.fat"),percentage:e.percentage.fat,logged:e.logged.fat,planned:e.planned.fat})]})]})},D9e=["localeText"],vB=m.createContext(null),Vc=function(t){const{localeText:n}=t,r=He(t,D9e),{utils:o,localeText:i}=m.useContext(vB)??{utils:void 0,localeText:void 0},a=Kn({props:r,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:f,localeText:h}=a,g=m.useMemo(()=>B({},h,i,n),[h,i,n]),y=m.useMemo(()=>{if(!l)return o||null;const C=new l({locale:f,formats:c,instance:u});if(!C.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(`
-`));return C},[l,f,c,u,o]),x=m.useMemo(()=>y?{minDate:y.date("1900-01-01T00:00:00.000"),maxDate:y.date("2099-12-31T00:00:00.000")}:null,[y]),S=m.useMemo(()=>({utils:y,defaultDates:x,localeText:g}),[x,y,g]);return R.jsx(vB.Provider,{value:S,children:s})},R9e=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:B({},e)}}}}),uae={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},k9e=uae;R9e(uae);const Lv=()=>{const e=m.useContext(vB);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
-`));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
-`));const t=m.useMemo(()=>B({},k9e,e.localeText),[e.localeText]);return m.useMemo(()=>B({},e,{localeText:t}),[e,t])},Ln=()=>Lv().utils,dae=()=>Lv().defaultDates,$v=e=>{const t=Ln(),n=m.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},La=()=>Lv().localeText,N9e=Lt(R.jsx("path",{d:"M7 10l5 5 5-5z"})),_9e=Lt(R.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),L9e=Lt(R.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),fae=Lt(R.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"})),$9e=Lt(R.jsxs(m.Fragment,{children:[R.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),R.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]})),F9e=Lt(R.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"})),j9e=Lt(R.jsxs(m.Fragment,{children:[R.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),R.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]})),B9e=Lt(R.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function z9e(e){return st("MuiPickersArrowSwitcher",e)}ct("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const pae=m.createContext(()=>!0);function V9e(){return m.useContext(pae)}const hae=m.createContext(null);function mae(){return m.useContext(hae)}const hU=m.createContext(null),yf=()=>{const e=m.useContext(hU);if(e==null)throw new Error("MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component");return e},gae=m.createContext(null),yae=m.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});function vae(e){const{contextValue:t,actionsContextValue:n,privateContextValue:r,fieldPrivateContextValue:o,isValidContextValue:i,localeText:a,children:s}=e;return R.jsx(hU.Provider,{value:t,children:R.jsx(gae.Provider,{value:n,children:R.jsx(yae.Provider,{value:r,children:R.jsx(hae.Provider,{value:o,children:R.jsx(pae.Provider,{value:i,children:R.jsx(Vc,{localeText:a,children:s})})})})})})}const _o=()=>m.useContext(yae),H9e=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],U9e=["ownerState"],G9e=["ownerState"],W9e=ue("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),q9e=ue("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),l7=ue(An,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),K9e=e=>$e({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},z9e,e),bae=m.forwardRef(function(t,n){const r=eo(),o=Kn({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:s,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:f,nextLabel:h,isPreviousDisabled:g,isPreviousHidden:y,onGoToPrevious:x,previousLabel:S,labelId:C,classes:E}=o,I=He(o,H9e),{ownerState:M}=_o(),O=K9e(E),D={isDisabled:c,isHidden:u,goTo:f,label:h},N={isDisabled:g,isHidden:y,goTo:x,label:S},$=s?.previousIconButton??l7,L=nr({elementType:$,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:N.label,"aria-label":N.label,disabled:N.isDisabled,edge:"end",onClick:N.goTo},ownerState:B({},M,{isButtonHidden:N.isHidden??!1}),className:ge(O.button,O.previousIconButton)}),A=s?.nextIconButton??l7,F=nr({elementType:A,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:D.label,"aria-label":D.label,disabled:D.isDisabled,edge:"start",onClick:D.goTo},ownerState:B({},M,{isButtonHidden:D.isHidden??!1}),className:ge(O.button,O.nextIconButton)}),z=s?.leftArrowIcon??_9e,H=nr({elementType:z,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:M,className:O.leftArrowIcon}),Q=He(H,U9e),G=s?.rightArrowIcon??L9e,V=nr({elementType:G,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:M,className:O.rightArrowIcon}),Y=He(V,G9e);return R.jsxs(W9e,B({ref:n,className:ge(O.root,a),ownerState:M},I,{children:[R.jsx($,B({},L,{children:r?R.jsx(G,B({},Y)):R.jsx(z,B({},Q))})),i?R.jsx(wt,{variant:"subtitle1",component:"span",id:C,children:i}):R.jsx(q9e,{className:O.spacer,ownerState:M}),R.jsx(A,B({},F,{children:r?R.jsx(z,B({},Q)):R.jsx(G,B({},Y))}))]}))}),Wd=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),mU=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let i;if(e!=null)i=e;else if(o.includes(t))i=t;else if(o.length>0)i=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:i}},xae=["hours","minutes","seconds"],Y9e=["hours","minutes","seconds","meridiem"],pv=e=>xae.includes(e),X0=e=>Y9e.includes(e),Q9e=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,_E=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,X9e=(e,t,n,r)=>{const o=_E(r.getHours(e),t,n);return r.setHours(e,o)},c7=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),oP=(e,t)=>(n,r)=>e?t.isAfter(n,r):c7(n,t)>c7(r,t),FD=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return Wd(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:Wd(n,["minutes"])?o.minutes:Wd(n,["seconds"])?o.seconds:Wd(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:Wd(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`},wae={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function J9e(e){const{steps:t,isViewMatchingStep:n,onStepChange:r}=e;return o=>{if(t==null)return wae;const i=t.findIndex(s=>n(o.view,s)),a=i===-1||i===t.length-1?null:t[i+1];return{hasNextStep:a!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{a!=null&&r(B({},o,{step:a}))},areViewsInSameStep:(s,l)=>{const c=t.find(f=>n(s,f)),u=t.find(f=>n(l,f));return c===u}}}}function iP({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:s,getStepNavigation:l}){const c=m.useRef(n),u=m.useRef(o),f=m.useRef(o.includes(n)?n:o[0]),[h,g]=_s({name:"useViews",state:"view",controlled:r,default:f.current}),y=m.useRef(i?h:null),[x,S]=_s({name:"useViews",state:"focusedView",controlled:a,default:y.current}),C=l?l({setView:g,view:h,defaultView:f.current,views:o}):wae;m.useEffect(()=>{(c.current&&c.current!==n||u.current&&u.current.some(L=>!o.includes(L)))&&(g(o.includes(n)?n:o[0]),u.current=o,c.current=n)},[n,g,h,o]);const E=o.indexOf(h),I=o[E-1]??null,M=o[E+1]??null,O=ft((L,A)=>{S(A?L:F=>L===F?null:F),s?.(L,A)}),D=ft(L=>{O(L,!0),L!==h&&(g(L),t&&t(L))}),N=ft(()=>{M&&D(M)}),$=ft((L,A,F)=>{const z=A==="finish",H=F?o.indexOf(F)<o.length-1:!!M;e(L,z&&H?"partial":A,F);let G=null;if(F!=null&&F!==h?G=F:z&&(G=h),G==null)return;const V=o[o.indexOf(G)+1];V==null||!C.areViewsInSameStep(G,V)||D(V)});return B({},C,{view:h,setView:D,focusedView:x,setFocusedView:O,nextView:M,previousView:I,defaultView:o.includes(n)?n:o[0],goToNextView:N,setValueAndGoToNextView:$})}function Z9e(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Ln();return m.useMemo(()=>{const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(a,e)},[t,n,e,o,r])}function e7e(e,{disablePast:t,minDate:n,timezone:r}){const o=Ln();return m.useMemo(()=>{const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(a,e)},[t,n,e,o,r])}function Kk(e,t,n,r){const o=Ln(),i=m.useMemo(()=>o.isValid(e)?e:null,[o,e]),a=Q9e(i,o),s=m.useCallback(l=>{const c=i==null?null:X9e(i,l,!!t,o);n(c,r??"partial")},[t,i,n,r,o]);return{meridiemMode:a,handleMeridiemChange:s}}const LE=36,Yk=2,jx=320,t7e=280,Bx=336,Sae=232,R1=48,Qk=ue("div")({overflow:"hidden",width:jx,maxHeight:Bx,display:"flex",flexDirection:"column",margin:"0 auto"});function n7e(e){return st("MuiTimeClock",e)}ct("MuiTimeClock",["root","arrowSwitcher"]);const zx=220,vp=36,$E={x:zx/2,y:zx/2},Cae={x:$E.x,y:0},r7e=Cae.x-$E.x,o7e=Cae.y-$E.y,i7e=e=>e*(180/Math.PI),Eae=(e,t,n)=>{const r=t-$E.x,o=n-$E.y,i=Math.atan2(r7e,o7e)-Math.atan2(r,o);let a=i7e(i);a=Math.round(a/e)*e,a%=360;const s=Math.floor(a/e)||0,l=r**2+o**2,c=Math.sqrt(l);return{value:s,distance:c}},a7e=(e,t,n=1)=>{const r=n*6;let{value:o}=Eae(r,e,t);return o=o*n%60,o},s7e=(e,t,n)=>{const{value:r,distance:o}=Eae(30,e,t);let i=r||12;return n?i%=12:o<zx/2-vp&&(i+=12,i%=24),i};function l7e(e){return st("MuiClockPointer",e)}ct("MuiClockPointer",["root","thumb"]);const c7e=["className","classes","isBetweenTwoClockValues","isInner","type","viewValue"],u7e=e=>$e({root:["root"],thumb:["thumb"]},l7e,e),d7e=ue("div",{name:"MuiClockPointer",slot:"Root"})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{isClockPointerAnimated:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),f7e=ue("div",{name:"MuiClockPointer",slot:"Thumb"})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${vp/2}px)`,border:`${(vp-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{isClockPointerBetweenTwoValues:!1},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function p7e(e){const t=Kn({props:e,name:"MuiClockPointer"}),{className:n,classes:r,isBetweenTwoClockValues:o,isInner:i,type:a,viewValue:s}=t,l=He(t,c7e),c=m.useRef(a);m.useEffect(()=>{c.current=a},[a]);const{ownerState:u}=_o(),f=B({},u,{isClockPointerAnimated:c.current!==a,isClockPointerBetweenTwoValues:o}),h=u7e(r),g=()=>{let x=360/(a==="hours"?12:60)*s;return a==="hours"&&s>12&&(x-=360),{height:Math.round((i?.26:.4)*zx),transform:`rotateZ(${x}deg)`}};return R.jsx(d7e,B({style:g(),className:ge(h.root,n),ownerState:f},l,{children:R.jsx(f7e,{ownerState:f,className:h.thumb})}))}function h7e(e){return st("MuiClock",e)}ct("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const jD=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},FE=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a,timezone:s})=>{const l=jD(a,a.date(void 0,s),e);n&&a.isBefore(o,l)&&(o=l),t&&a.isAfter(r,l)&&(r=l);let c=e,u=e;for(a.isBefore(e,o)&&(c=o,u=null),a.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&a.isAfter(c,r)&&(c=null),u&&a.isBefore(u,o)&&(u=null),c){if(!i(c))return c;c=a.addDays(c,1)}if(u){if(!i(u))return u;u=a.addDays(u,-1)}}return null},m7e=(e,t)=>e.isValid(t)?t:null,BD=(e,t,n)=>t==null||!e.isValid(t)?n:t,g7e=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),gU=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},yU=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),zu=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},Tae=["year","month","day"],Vx=e=>Tae.includes(e),jE=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Wd(n,["year"])?o.year:Wd(n,["month"])?o.month:Wd(n,["day"])?o.dayOfMonth:Wd(n,["month","year"])?`${o.month} ${o.year}`:Wd(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},y7e=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},v7e=(e,t)=>{const n={root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",t.clockMeridiemMode==="am"&&"selected"],pmButton:["pmButton",t.clockMeridiemMode==="pm"&&"selected"],meridiemText:["meridiemText"]};return $e(n,h7e,e)},b7e=ue("div",{name:"MuiClock",slot:"Root"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),x7e=ue("div",{name:"MuiClock",slot:"Clock"})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),w7e=ue("div",{name:"MuiClock",slot:"Wrapper"})({"&:focus":{outline:"none"}}),S7e=ue("div",{name:"MuiClock",slot:"SquareMask"})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{isClockDisabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),C7e=ue("div",{name:"MuiClock",slot:"Pin"})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Pae=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:vp,variants:[{props:{clockMeridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),E7e=ue(An,{name:"MuiClock",slot:"AmButton"})(({theme:e})=>B({},Pae(e,"am"),{position:"absolute",left:8})),T7e=ue(An,{name:"MuiClock",slot:"PmButton"})(({theme:e})=>B({},Pae(e,"pm"),{position:"absolute",right:8})),u7=ue(wt,{name:"MuiClock",slot:"MeridiemText"})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function P7e(e){const t=Kn({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:i,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:f,selectedId:h,type:g,viewValue:y,viewRange:[x,S],disabled:C=!1,readOnly:E,className:I,classes:M}=t,O=Ln(),D=La(),{ownerState:N}=_o(),$=B({},N,{isClockDisabled:C,clockMeridiemMode:c}),L=m.useRef(!1),A=v7e(M,$),F=l(y,g),z=!n&&g==="hours"&&(y<1||y>12),H=(se,fe)=>{C||E||l(se,g)||f(se,fe)},Q=(se,fe)=>{let{offsetX:we,offsetY:Oe}=se;if(we===void 0){const me=se.target.getBoundingClientRect();we=se.changedTouches[0].clientX-me.left,Oe=se.changedTouches[0].clientY-me.top}const he=g==="seconds"||g==="minutes"?a7e(we,Oe,u):s7e(we,Oe,!!n);H(he,fe)},G=se=>{L.current=!0,Q(se,"shallow")},V=se=>{L.current&&(Q(se,"finish"),L.current=!1),se.preventDefault()},Y=se=>{se.buttons>0&&Q(se.nativeEvent,"shallow")},X=se=>{L.current&&(L.current=!1),Q(se.nativeEvent,"finish")},te=g==="hours"?!1:y%5!==0,U=g==="minutes"?u:1,K=m.useRef(null);qn(()=>{o&&K.current.focus()},[o]);const ee=se=>Math.max(x,Math.min(S,se)),le=se=>(se+(S+1))%(S+1),ce=se=>{if(!L.current)switch(se.key){case"Home":H(x,"partial"),se.preventDefault();break;case"End":H(S,"partial"),se.preventDefault();break;case"ArrowUp":H(le(y+U),"partial"),se.preventDefault();break;case"ArrowDown":H(le(y-U),"partial"),se.preventDefault();break;case"PageUp":H(ee(y+5),"partial"),se.preventDefault();break;case"PageDown":H(ee(y-5),"partial"),se.preventDefault();break;case"Enter":case" ":H(y,"finish"),se.preventDefault();break}};return R.jsxs(b7e,{className:ge(A.root,I),children:[R.jsxs(x7e,{className:A.clock,children:[R.jsx(S7e,{onTouchMove:G,onTouchStart:G,onTouchEnd:V,onMouseUp:X,onMouseMove:Y,ownerState:$,className:A.squareMask}),!F&&R.jsxs(m.Fragment,{children:[R.jsx(C7e,{className:A.pin}),a!=null&&R.jsx(p7e,{type:g,viewValue:y,isInner:z,isBetweenTwoClockValues:te})]}),R.jsx(w7e,{"aria-activedescendant":h,"aria-label":D.clockLabelText(g,a==null?null:O.format(a,n?"fullTime12h":"fullTime24h")),ref:K,role:"listbox",onKeyDown:ce,tabIndex:0,className:A.wrapper,children:i})]}),n&&r&&R.jsxs(m.Fragment,{children:[R.jsx(E7e,{onClick:E?void 0:()=>s("am"),disabled:C||c===null,ownerState:$,className:A.amButton,title:zu(O,"am"),children:R.jsx(u7,{variant:"caption",className:A.meridiemText,children:zu(O,"am")})}),R.jsx(T7e,{disabled:C||c===null,onClick:E?void 0:()=>s("pm"),ownerState:$,className:A.pmButton,title:zu(O,"pm"),children:R.jsx(u7,{variant:"caption",className:A.meridiemText,children:zu(O,"pm")})})]})]})}function I7e(e){return st("MuiClockNumber",e)}const _M=ct("MuiClockNumber",["root","selected","disabled"]),O7e=["className","classes","disabled","index","inner","label","selected"],M7e=(e,t)=>{const n={root:["root",t.isClockNumberSelected&&"selected",t.isClockNumberDisabled&&"disabled"]};return $e(n,I7e,e)},A7e=ue("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${_M.disabled}`]:t.disabled},{[`&.${_M.selected}`]:t.selected}]})(({theme:e})=>({height:vp,width:vp,position:"absolute",left:`calc((100% - ${vp}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${_M.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${_M.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{isClockNumberInInnerRing:!0},style:B({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function Iae(e){const t=Kn({props:e,name:"MuiClockNumber"}),{className:n,classes:r,disabled:o,index:i,inner:a,label:s,selected:l}=t,c=He(t,O7e),{ownerState:u}=_o(),f=B({},u,{isClockNumberInInnerRing:a,isClockNumberSelected:l,isClockNumberDisabled:o}),h=M7e(r,f),g=i%12/12*Math.PI*2-Math.PI/2,y=(zx-vp-2)/2*(a?.65:1),x=Math.round(Math.cos(g)*y),S=Math.round(Math.sin(g)*y);return R.jsx(A7e,B({className:ge(h.root,n),"aria-disabled":o?!0:void 0,"aria-selected":l?!0:void 0,role:"option",style:{transform:`translate(${x}px, ${S+(zx-vp)/2}px`},ownerState:f},c,{children:s}))}const D7e=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:i})=>{const a=t?i.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=f=>a===null?!1:e?f===12?a===12||a===0:a===f||a-12===f:a===f;for(let f=l;f<=c;f+=1){let h=f.toString();f===0&&(h="00");const g=!e&&(f===0||f>12);h=i.formatNumber(h);const y=u(f);s.push(R.jsx(Iae,{id:y?o:void 0,index:f,inner:g,selected:y,disabled:r(f),label:h,"aria-label":n(h)},f))}return s},d7=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([a,s],l)=>{const c=a===t;return R.jsx(Iae,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:n(a),selected:c,"aria-label":r(s)},a)})},Wm=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:a})=>{const s=Ln(),[l,c]=_s({name:e,state:"value",controlled:n,default:r??a.emptyValue}),u=m.useMemo(()=>a.getTimezone(s,l),[s,a,l]),f=ft(x=>u==null?x:a.setTimezone(s,u,x)),h=m.useMemo(()=>t||u||(o?s.getTimezone(o):"default"),[t,u,o,s]),g=m.useMemo(()=>a.setTimezone(s,h,l),[a,s,h,l]),y=ft((x,...S)=>{const C=f(x);c(C),i?.(C,...S)});return{value:g,handleValueChange:y,timezone:h}},$u={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},R7e=e=>Math.max(...e.map(t=>$u[t.type]??1)),i1=(e,t,n)=>{if(t===$u.year)return e.startOfYear(n);if(t===$u.month)return e.startOfMonth(n);if(t===$u.day)return e.startOfDay(n);let r=n;return t<$u.minutes&&(r=e.setMinutes(r,0)),t<$u.seconds&&(r=e.setSeconds(r,0)),t<$u.milliseconds&&(r=e.setMilliseconds(r,0)),r},k7e=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let i=o?o():i1(t,n,yU(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=i1(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=i1(t,n,e.maxDate));const a=oP(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=i1(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:jD(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=i1(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:jD(t,i,e.maxTime))),i},Oae=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
-`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Xk=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),i=e.endOfWeek(r);let a=o;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(s=>e.formatByString(s,t))},Mae=(e,t,n,r)=>{switch(n){case"month":return gU(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return Xk(e,r);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(i=>e.formatByString(i,r))}default:return[]}},f7="s",N7e=["0","1","2","3","4","5","6","7","8","9"],_7e=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),f7)==="0"?N7e:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),f7))},hv=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let o=0;o<e.length;o+=1){r+=e[o];const i=t.indexOf(r);i>-1&&(n.push(i.toString()),r="")}return n.join("")},vU=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),p7=(e,t)=>{const n=hv(e,t);return n!==" "&&!Number.isNaN(Number(n))},bU=(e,t)=>Number(e).toString().padStart(t,"0"),Aae=(e,t,n,r,o)=>{if(o.type==="day"&&o.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,o.format)}let i=t.toString();return o.hasLeadingZerosInInput&&(i=bU(i,o.maxLength)),vU(i,r)},xU=(e,t,n)=>{let r=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(hv(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},h7=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),L7e=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Dae=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&r==="YY"?!0:e.formatByString(e.setYear(o,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},$7e=(e,t,n)=>{const r=t.some(l=>l.type==="day"),o=[],i=[];for(let l=0;l<t.length;l+=1){const c=t[l];r&&c.type==="weekDay"||(o.push(c.format),i.push(xU(c,"non-input",n)))}const a=o.join(" "),s=i.join(" ");return e.parse(s,a)},F7e=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),j7e=(e,t,n)=>{const o=e.map(i=>{const a=xU(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},B7e=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),i=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:s}=gU(e,r).reduce((l,c)=>{const u=e.getDaysInMonth(c);return u>l.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:c}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:L7e(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:l})=>({minimum:1,maximum:e.isValid(l)?e.getDaysInMonth(l):a,longestMonth:s}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const u=Xk(e,l).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const c=e.getHours(i);return hv(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(hv(e.formatByString(e.startOfDay(r),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},z7e=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{let o=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(o=bU(o,t.maxLength));const i=Xk(e,t.format),a=i.indexOf(o),l=i.indexOf(t.value)-a;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,i=e.getHours(r);return o&&i>=12?e.addHours(r,-12):!o&&i<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},m7={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},g7=(e,t,n,r,o)=>[...n].sort((i,a)=>m7[i.type]-m7[a.type]).reduce((i,a)=>!o||a.modified?z7e(e,a,t,i):i,r),V7e=()=>navigator.userAgent.toLowerCase().includes("android"),H7e=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,f=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,c)=>c>=i&&l.endSeparator?.includes(" ")&&l.endSeparator!==" / "),a===-1&&(a=e.length-1);for(let l=a;l>=i;l-=1)o[l]=s,r[s]=l,s-=1;i=a+1}return e.forEach((l,c)=>{const u=o[c],f=u===0?null:r[u-1],h=u===e.length-1?null:r[u+1];n[c]={leftIndex:f,rightIndex:h}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},bB=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},U7e=["value","referenceDate"],ii={emptyValue:null,getTodayValue:yU,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=He(e,U7e);return r.utils.isValid(t)?t:n??k7e(r)},cleanValue:m7e,areValuesEqual:g7e,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},wU={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:F7e,getV6InputValueFromSections:j7e,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>B({},t,{value:""}))},SU=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const i=m.useMemo(()=>ii.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:$u.day,timezone:o,getTodayDate:()=>yU(n,o,"date")}),[]);return e??i},G7e=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","timezone"],W7e=e=>$e({root:["root"],arrowSwitcher:["arrowSwitcher"]},n7e,e),q7e=ue(Qk,{name:"MuiTimeClock",slot:"Root"})({display:"flex",flexDirection:"column",position:"relative"}),K7e=ue(bae,{name:"MuiTimeClock",slot:"ArrowSwitcher"})({position:"absolute",right:12,top:15}),Y7e=["hours","minutes"],Q7e=m.forwardRef(function(t,n){const r=Ln(),o=Kn({props:t,name:"MuiTimeClock"}),{ampm:i=r.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:s,slots:l,slotProps:c,value:u,defaultValue:f,referenceDate:h,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:y,minTime:x,disableFuture:S,disablePast:C,minutesStep:E=1,shouldDisableTime:I,showViewSwitcher:M,onChange:O,view:D,views:N=Y7e,openTo:$,onViewChange:L,focusedView:A,onFocusedViewChange:F,className:z,classes:H,disabled:Q,readOnly:G,timezone:V}=o,Y=He(o,G7e),{value:X,handleValueChange:te,timezone:U}=Wm({name:"TimeClock",timezone:V,value:u,defaultValue:f,referenceDate:h,onChange:O,valueManager:ii}),K=SU({value:X,referenceDate:h,utils:r,props:o,timezone:U}),ee=La(),le=$v(U),ce=_n(),{ownerState:se}=_o(),{view:fe,setView:we,previousView:Oe,nextView:he,setValueAndGoToNextView:me}=iP({view:D,views:N,openTo:$,onViewChange:L,onChange:te,focusedView:A,onFocusedViewChange:F}),{meridiemMode:ye,handleMeridiemChange:ae}=Kk(K,i,me),Se=m.useCallback((ke,Te)=>{const Ce=oP(g,r),Ze=Te==="hours"||Te==="minutes"&&N.includes("seconds"),Me=({start:pe,end:je})=>!(x&&Ce(x,je)||y&&Ce(pe,y)||S&&Ce(pe,le)||C&&Ce(le,Ze?je:pe)),_e=(pe,je=1)=>{if(pe%je!==0)return!1;if(I)switch(Te){case"hours":return!I(r.setHours(K,pe),"hours");case"minutes":return!I(r.setMinutes(K,pe),"minutes");case"seconds":return!I(r.setSeconds(K,pe),"seconds");default:return!1}return!0};switch(Te){case"hours":{const pe=_E(ke,ye,i),je=r.setHours(K,pe);if(r.getHours(je)!==pe)return!0;const Ke=r.setSeconds(r.setMinutes(je,0),0),et=r.setSeconds(r.setMinutes(je,59),59);return!Me({start:Ke,end:et})||!_e(pe)}case"minutes":{const pe=r.setMinutes(K,ke),je=r.setSeconds(pe,0),Ke=r.setSeconds(pe,59);return!Me({start:je,end:Ke})||!_e(ke,E)}case"seconds":{const pe=r.setSeconds(K,ke);return!Me({start:pe,end:pe})||!_e(ke)}default:throw new Error("not supported")}},[i,K,g,y,ye,x,E,I,r,S,C,le,N]),Ie=m.useMemo(()=>{switch(fe){case"hours":{const ke=(Ze,Me)=>{const _e=_E(Ze,ye,i);me(r.setHours(K,_e),Me,"hours")},Te=r.getHours(K);let Ce;return i?Te>12?Ce=[12,23]:Ce=[0,11]:Ce=[0,23],{onChange:ke,viewValue:Te,children:D7e({value:X,utils:r,ampm:i,getClockNumberText:ee.hoursClockNumberText,isDisabled:Ze=>Q||Se(Ze,"hours"),selectedId:ce}),viewRange:Ce}}case"minutes":{const ke=r.getMinutes(K);return{viewValue:ke,onChange:(Ce,Ze)=>{me(r.setMinutes(K,Ce),Ze,"minutes")},children:d7({utils:r,value:ke,getClockNumberText:ee.minutesClockNumberText,isDisabled:Ce=>Q||Se(Ce,"minutes"),selectedId:ce}),viewRange:[0,59]}}case"seconds":{const ke=r.getSeconds(K);return{viewValue:ke,onChange:(Ce,Ze)=>{me(r.setSeconds(K,Ce),Ze,"seconds")},children:d7({utils:r,value:ke,getClockNumberText:ee.secondsClockNumberText,isDisabled:Ce=>Q||Se(Ce,"seconds"),selectedId:ce}),viewRange:[0,59]}}default:throw new Error("You must provide the type for ClockView")}},[fe,r,X,i,ee.hoursClockNumberText,ee.minutesClockNumberText,ee.secondsClockNumberText,ye,me,K,Se,ce,Q]),Re=W7e(H);return R.jsxs(q7e,B({ref:n,className:ge(Re.root,z),ownerState:se},Y,{children:[R.jsx(P7e,B({autoFocus:s??!!A,ampmInClock:a&&N.includes("hours"),value:X,type:fe,ampm:i,minutesStep:E,isTimeDisabled:Se,meridiemMode:ye,handleMeridiemChange:ae,selectedId:ce,disabled:Q,readOnly:G},Ie)),M&&R.jsx(K7e,{className:Re.arrowSwitcher,slots:l,slotProps:c,onGoToPrevious:()=>we(Oe),isPreviousDisabled:!Oe,previousLabel:ee.openPreviousView,onGoToNext:()=>we(he),isNextDisabled:!he,nextLabel:ee.openNextView,ownerState:se})]}))});function X7e(e){return st("MuiDigitalClock",e)}const xB=ct("MuiDigitalClock",["root","list","item"]);function U0(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const J7e=e=>{setTimeout(e,0)},Ra=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Ra(t.shadowRoot):t:null},zD=e=>Array.from(e.children).indexOf(Ra(document)),CU="@media (pointer: fine)";function Z7e(...e){return e.reduce((t,n)=>(Array.isArray(n)?t.push(...n):n!=null&&t.push(n),t),[])}const eKe=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","views","skipDisabled","timezone"],tKe=e=>$e({root:["root"],list:["list"],item:["item"]},X7e,e),nKe=ue(Qk,{name:"MuiDigitalClock",slot:"Root"})({overflowY:"auto",width:"100%",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:Sae,variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),rKe=ue(LR,{name:"MuiDigitalClock",slot:"List"})({padding:0}),oKe=ue(bn,{name:"MuiDigitalClock",slot:"Item",shouldForwardProp:e=>e!=="itemValue"&&e!=="formattedValue"})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Kt(e.palette.primary.main,e.palette.action.focusOpacity)}})),iKe=m.forwardRef(function(t,n){const r=Ln(),o=m.useRef(null),i=xn(n,o),a=m.useRef(null),s=Kn({props:t,name:"MuiDigitalClock"}),{ampm:l=r.is12HourCycleInCurrentLocale(),timeStep:c=30,autoFocus:u,slots:f,slotProps:h,value:g,defaultValue:y,referenceDate:x,disableIgnoringDatePartForTimeValidation:S=!1,maxTime:C,minTime:E,disableFuture:I,disablePast:M,minutesStep:O=1,shouldDisableTime:D,onChange:N,view:$,openTo:L,onViewChange:A,focusedView:F,onFocusedViewChange:z,className:H,classes:Q,disabled:G,readOnly:V,views:Y=["hours"],skipDisabled:X=!1,timezone:te}=s,U=He(s,eKe),{value:K,handleValueChange:ee,timezone:le}=Wm({name:"DigitalClock",timezone:te,value:g,defaultValue:y,referenceDate:x,onChange:N,valueManager:ii}),ce=La(),se=$v(le),{ownerState:fe}=_o(),we=B({},fe,{hasDigitalClockAlreadyBeenRendered:!!o.current}),Oe=tKe(Q),he=f?.digitalClockItem??oKe,me=nr({elementType:he,externalSlotProps:h?.digitalClockItem,ownerState:we,className:Oe.item}),ye=SU({value:K,referenceDate:x,utils:r,props:s,timezone:le}),ae=ft(Ze=>ee(Ze,"finish","hours")),{setValueAndGoToNextView:Se}=iP({view:$,views:Y,openTo:L,onViewChange:A,onChange:ae,focusedView:F,onFocusedViewChange:z}),Ie=ft(Ze=>{Se(Ze,"finish")});m.useEffect(()=>{if(o.current===null)return;const Ze=o.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!Ze)return;const Me=Ze.offsetTop;(u||F)&&Ze.focus(),o.current.scrollTop=Me-4});const Re=m.useCallback(Ze=>{const Me=oP(S,r),_e=()=>!(E&&Me(E,Ze)||C&&Me(Ze,C)||I&&Me(Ze,se)||M&&Me(se,Ze)),pe=()=>r.getMinutes(Ze)%O!==0?!1:D?!D(Ze,"hours"):!0;return!_e()||!pe()},[S,r,E,C,I,se,M,O,D]),ke=m.useMemo(()=>{const Ze=[];let _e=r.startOfDay(ye);for(;r.isSameDay(ye,_e);)Ze.push(_e),_e=r.addMinutes(_e,c);return Ze},[ye,c,r]),Te=ke.findIndex(Ze=>r.isEqual(Ze,ye)),Ce=Ze=>{switch(Ze.key){case"PageUp":{const Me=zD(a.current)-5,_e=a.current.children,pe=Math.max(0,Me),je=_e[pe];je&&je.focus(),Ze.preventDefault();break}case"PageDown":{const Me=zD(a.current)+5,_e=a.current.children,pe=Math.min(_e.length-1,Me),je=_e[pe];je&&je.focus(),Ze.preventDefault();break}}};return R.jsx(nKe,B({ref:i,className:ge(Oe.root,H),ownerState:we},U,{children:R.jsx(rKe,{ref:a,role:"listbox","aria-label":ce.timePickerToolbarTitle,className:Oe.list,onKeyDown:Ce,children:ke.map((Ze,Me)=>{const _e=Re(Ze);if(X&&_e)return null;const pe=r.isEqual(Ze,K),je=r.format(Ze,l?"fullTime12h":"fullTime24h"),et=Te===Me||Te===-1&&Me===0?0:-1;return R.jsx(he,B({onClick:()=>!V&&Ie(Ze),selected:pe,disabled:G||_e,disableRipple:V,role:"option","aria-disabled":V,"aria-selected":pe,tabIndex:et,itemValue:Ze,formattedValue:je},me,{children:je}),`${Ze.valueOf()}-${je}`)})})}))});function aKe(e){return st("MuiMultiSectionDigitalClock",e)}const wB=ct("MuiMultiSectionDigitalClock",["root"]);function sKe(e){return st("MuiMultiSectionDigitalClockSection",e)}const SB=ct("MuiMultiSectionDigitalClockSection",["root","item"]),lKe=["autoFocus","onChange","className","classes","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],cKe=e=>$e({root:["root"],item:["item"]},sKe,e),uKe=ue(LR,{name:"MuiMultiSectionDigitalClockSection",slot:"Root"})(({theme:e})=>({maxHeight:Sae,width:56,padding:0,overflow:"hidden",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&::after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"},variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),dKe=ue(bn,{name:"MuiMultiSectionDigitalClockSection",slot:"Item"})(({theme:e})=>({padding:8,margin:"2px 4px",width:R1,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Kt(e.palette.primary.main,e.palette.action.focusOpacity)}})),fKe=m.forwardRef(function(t,n){const r=m.useRef(null),o=xn(n,r),i=m.useRef(null),a=Kn({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:s,onChange:l,className:c,classes:u,disabled:f,readOnly:h,items:g,active:y,slots:x,slotProps:S,skipDisabled:C}=a,E=He(a,lKe),{ownerState:I}=_o(),M=B({},I,{hasDigitalClockAlreadyBeenRendered:!!r.current}),O=cKe(u),D=x?.digitalClockSectionItem??dKe;m.useEffect(()=>{if(r.current===null)return;const L=r.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(y&&s&&L&&L.focus(),!L||i.current===L)return;i.current=L;const A=L.offsetTop;r.current.scrollTop=A-4});const N=g.findIndex(L=>L.isFocused(L.value)),$=L=>{switch(L.key){case"PageUp":{const A=zD(r.current)-5,F=r.current.children,z=Math.max(0,A),H=F[z];H&&H.focus(),L.preventDefault();break}case"PageDown":{const A=zD(r.current)+5,F=r.current.children,z=Math.min(F.length-1,A),H=F[z];H&&H.focus(),L.preventDefault();break}}};return R.jsx(uKe,B({ref:o,className:ge(O.root,c),ownerState:M,autoFocusItem:s&&y,role:"listbox",onKeyDown:$},E,{children:g.map((L,A)=>{const F=L.isDisabled?.(L.value),z=f||F;if(C&&z)return null;const H=L.isSelected(L.value),Q=N===A||N===-1&&A===0?0:-1;return R.jsx(D,B({onClick:()=>!h&&l(L.value),selected:H,disabled:z,disableRipple:h,role:"option","aria-disabled":h||z||void 0,"aria-label":L.ariaLabel,"aria-selected":H,tabIndex:Q,className:O.item},S?.digitalClockSectionItem,{children:L.label}),L.label)})}))}),pKe=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:i,timeStep:a,valueOrReferenceDate:s})=>{const l=t?n.getHours(t):null,c=[],u=(g,y)=>{const x=y??l;return x===null?!1:r?g===12?x===12||x===0:x===g||x-12===g:x===g},f=g=>u(g,n.getHours(s)),h=r?11:23;for(let g=0;g<=h;g+=a){let y=n.format(n.setHours(e,g),r?"hours12h":"hours24h");const x=i(parseInt(y,10).toString());y=n.formatNumber(y),c.push({value:g,label:y,isSelected:u,isDisabled:o,isFocused:f,ariaLabel:x})}return c},y7=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:o,resolveAriaLabel:i,hasValue:a=!0})=>{const s=c=>e===null?!1:a&&e===c,l=c=>e===c;return[...Array.from({length:Math.ceil(60/r)},(c,u)=>{const f=r*u;return{value:f,label:t.formatNumber(o(f)),isDisabled:n,isSelected:s,isFocused:l,ariaLabel:i(f.toString())}})]},hKe=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","skipDisabled","timezone"],mKe=e=>$e({root:["root"]},aKe,e),gKe=ue(Qk,{name:"MuiMultiSectionDigitalClock",slot:"Root"})(({theme:e})=>({flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),yKe=m.forwardRef(function(t,n){const r=Ln(),o=eo(),i=Kn({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:s,autoFocus:l,slots:c,slotProps:u,value:f,defaultValue:h,referenceDate:g,disableIgnoringDatePartForTimeValidation:y=!1,maxTime:x,minTime:S,disableFuture:C,disablePast:E,minutesStep:I=1,shouldDisableTime:M,onChange:O,view:D,views:N=["hours","minutes"],openTo:$,onViewChange:L,focusedView:A,onFocusedViewChange:F,className:z,classes:H,disabled:Q,readOnly:G,skipDisabled:V=!1,timezone:Y}=i,X=He(i,hKe),{value:te,handleValueChange:U,timezone:K}=Wm({name:"MultiSectionDigitalClock",timezone:Y,value:f,defaultValue:h,referenceDate:g,onChange:O,valueManager:ii}),ee=La(),le=$v(K),ce=m.useMemo(()=>B({hours:1,minutes:5,seconds:5},s),[s]),se=SU({value:te,referenceDate:g,utils:r,props:i,timezone:K}),fe=ft((Me,_e,pe)=>U(Me,_e,pe)),we=m.useMemo(()=>!a||!N.includes("hours")||N.includes("meridiem")?N:[...N,"meridiem"],[a,N]),{view:Oe,setValueAndGoToNextView:he,focusedView:me}=iP({view:D,views:we,openTo:$,onViewChange:L,onChange:fe,focusedView:A,onFocusedViewChange:F}),ye=ft(Me=>{he(Me,"finish","meridiem")}),{meridiemMode:ae,handleMeridiemChange:Se}=Kk(se,a,ye,"finish"),Ie=m.useCallback((Me,_e)=>{const pe=oP(y,r),je=_e==="hours"||_e==="minutes"&&we.includes("seconds"),Ke=({start:nt,end:ot})=>!(S&&pe(S,ot)||x&&pe(nt,x)||C&&pe(nt,le)||E&&pe(le,je?ot:nt)),et=(nt,ot=1)=>{if(nt%ot!==0)return!1;if(M)switch(_e){case"hours":return!M(r.setHours(se,nt),"hours");case"minutes":return!M(r.setMinutes(se,nt),"minutes");case"seconds":return!M(r.setSeconds(se,nt),"seconds");default:return!1}return!0};switch(_e){case"hours":{const nt=_E(Me,ae,a),ot=r.setHours(se,nt);if(r.getHours(ot)!==nt)return!0;const it=r.setSeconds(r.setMinutes(ot,0),0),tt=r.setSeconds(r.setMinutes(ot,59),59);return!Ke({start:it,end:tt})||!et(nt)}case"minutes":{const nt=r.setMinutes(se,Me),ot=r.setSeconds(nt,0),it=r.setSeconds(nt,59);return!Ke({start:ot,end:it})||!et(Me,I)}case"seconds":{const nt=r.setSeconds(se,Me);return!Ke({start:nt,end:nt})||!et(Me)}default:throw new Error("not supported")}},[a,se,y,x,ae,S,I,M,r,C,E,le,we]),Re=m.useCallback(Me=>{switch(Me){case"hours":return{onChange:_e=>{const pe=_E(_e,ae,a);he(r.setHours(se,pe),"finish","hours")},items:pKe({now:le,value:te,ampm:a,utils:r,isDisabled:_e=>Ie(_e,"hours"),timeStep:ce.hours,resolveAriaLabel:ee.hoursClockNumberText,valueOrReferenceDate:se})};case"minutes":return{onChange:_e=>{he(r.setMinutes(se,_e),"finish","minutes")},items:y7({value:r.getMinutes(se),utils:r,isDisabled:_e=>Ie(_e,"minutes"),resolveLabel:_e=>r.format(r.setMinutes(le,_e),"minutes"),timeStep:ce.minutes,hasValue:!!te,resolveAriaLabel:ee.minutesClockNumberText})};case"seconds":return{onChange:_e=>{he(r.setSeconds(se,_e),"finish","seconds")},items:y7({value:r.getSeconds(se),utils:r,isDisabled:_e=>Ie(_e,"seconds"),resolveLabel:_e=>r.format(r.setSeconds(le,_e),"seconds"),timeStep:ce.seconds,hasValue:!!te,resolveAriaLabel:ee.secondsClockNumberText})};case"meridiem":{const _e=zu(r,"am"),pe=zu(r,"pm");return{onChange:Se,items:[{value:"am",label:_e,isSelected:()=>!!te&&ae==="am",isFocused:()=>!!se&&ae==="am",ariaLabel:_e},{value:"pm",label:pe,isSelected:()=>!!te&&ae==="pm",isFocused:()=>!!se&&ae==="pm",ariaLabel:pe}]}}default:throw new Error(`Unknown view: ${Me} found.`)}},[le,te,a,r,ce.hours,ce.minutes,ce.seconds,ee.hoursClockNumberText,ee.minutesClockNumberText,ee.secondsClockNumberText,ae,he,se,Ie,Se]),ke=m.useMemo(()=>{if(!o)return we;const Me=we.filter(_e=>_e!=="meridiem");return Me.reverse(),we.includes("meridiem")&&Me.push("meridiem"),Me},[o,we]),Te=m.useMemo(()=>we.reduce((Me,_e)=>B({},Me,{[_e]:Re(_e)}),{}),[we,Re]),{ownerState:Ce}=_o(),Ze=mKe(H);return R.jsx(gKe,B({ref:n,className:ge(Ze.root,z),ownerState:Ce,role:"group"},X,{children:ke.map(Me=>R.jsx(fKe,{items:Te[Me].items,onChange:Te[Me].onChange,active:Oe===Me,autoFocus:l??me===Me,disabled:Q,readOnly:G,slots:c,slotProps:u,skipDisabled:V,"aria-label":ee.selectViewText(Me)},Me))}))});function vKe(e){return st("MuiPickersDay",e)}const fy=ct("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function Rae(e){const{disabled:t,selected:n,today:r,outsideCurrentMonth:o,day:i,disableMargin:a,disableHighlightToday:s,showDaysOutsideCurrentMonth:l}=e,c=Ln(),{ownerState:u}=_o();return m.useMemo(()=>B({},u,{day:i,isDaySelected:n??!1,isDayDisabled:t??!1,isDayCurrent:r??!1,isDayOutsideMonth:o??!1,isDayStartOfWeek:c.isSameDay(i,c.startOfWeek(i)),isDayEndOfWeek:c.isSameDay(i,c.endOfWeek(i)),disableMargin:a??!1,disableHighlightToday:s??!1,showDaysOutsideCurrentMonth:l??!1}),[c,u,i,n,t,r,o,a,s,l])}const bKe=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],xKe=(e,t)=>{const{isDaySelected:n,isDayDisabled:r,isDayCurrent:o,isDayOutsideMonth:i,disableMargin:a,disableHighlightToday:s,showDaysOutsideCurrentMonth:l}=t,c=i&&!l;return $e({root:["root",n&&!c&&"selected",r&&"disabled",!a&&"dayWithMargin",!s&&o&&"today",i&&l&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},vKe,e)},kae=({theme:e})=>B({},e.typography.caption,{width:LE,height:LE,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Kt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${fy.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${fy.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${fy.disabled}:not(.${fy.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${fy.disabled}&.${fy.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Yk}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${fy.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Nae=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.isDayCurrent&&t.today,!n.isDayOutsideMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.isDayOutsideMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},wKe=ue(Ls,{name:"MuiPickersDay",slot:"Root",overridesResolver:Nae})(kae),SKe=ue("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Nae})(({theme:e})=>B({},kae({theme:e}),{opacity:0,pointerEvents:"none"})),a1=()=>{},CKe=m.forwardRef(function(t,n){const r=Kn({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,classes:a,isAnimating:s,onClick:l,onDaySelect:c,onFocus:u=a1,onBlur:f=a1,onKeyDown:h=a1,onMouseDown:g=a1,onMouseEnter:y=a1,children:x,day:S,selected:C,disabled:E,today:I,outsideCurrentMonth:M,disableMargin:O,disableHighlightToday:D,showDaysOutsideCurrentMonth:N}=r,$=He(r,bKe),L=Rae({day:S,selected:C,disabled:E,today:I,outsideCurrentMonth:M,disableMargin:O,disableHighlightToday:D,showDaysOutsideCurrentMonth:N}),A=xKe(a,L),F=Ln(),z=m.useRef(null),H=xn(z,n);qn(()=>{o&&!E&&!s&&!M&&z.current.focus()},[o,E,s,M]);const Q=V=>{g(V),M&&V.preventDefault()},G=V=>{E||c(S),M&&V.currentTarget.focus(),l&&l(V)};return M&&!N?R.jsx(SKe,{className:ge(A.root,A.hiddenDaySpacingFiller,i),ownerState:L,role:$.role}):R.jsx(wKe,B({className:ge(A.root,i),ref:H,centerRipple:!0,disabled:E,tabIndex:C?0:-1,onKeyDown:V=>h(V,S),onFocus:V=>u(V,S),onBlur:V=>f(V,S),onMouseEnter:V=>y(V,S),onClick:G,onMouseDown:Q},$,{ownerState:L,children:x||F.format(S,"dayOfMonth")}))}),EKe=m.memo(CKe),CB=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],EB=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],_ae=["minDateTime","maxDateTime"],TKe=[...CB,...EB,..._ae],Aw=e=>TKe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),PKe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],Lae=(e,t)=>m.useMemo(()=>{const n=B({},e),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return PKe.forEach(o),t==="date"?CB.forEach(o):t==="time"?EB.forEach(o):t==="date-time"&&(CB.forEach(o),EB.forEach(o),_ae.forEach(o)),{forwardedProps:n,internalProps:r}},[e,t]),IKe=({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.");return o},OKe=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},MKe=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},AKe=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:i,token:a,startSeparator:s})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=Oae(e,a),c=Dae(e,l.contentType,l.type,a),u=n?c:l.contentType==="digit",f=e.isValid(t);let h=f?e.formatByString(t,a):"",g=null;if(u)if(c)g=h===""?e.formatByString(i,a).length:h.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxLength' property on it's adapter`);g=l.maxLength,f&&(h=vU(bU(hv(h,o),g),o))}return B({},l,{format:a,maxLength:g,value:h,placeholder:MKe(e,r,l,a),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:s,endSeparator:"",modified:!1})},DKe=e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),i=[];let a="";const s=Object.keys(t.formatTokenMap).sort((g,y)=>y.length-g.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${s.join("|")})*$`),u=new RegExp(`^(${s.join("|")})`),f=g=>r.find(y=>y.start<=g&&y.end>=g);let h=0;for(;h<n.length;){const g=f(h),y=g!=null,x=l.exec(n.slice(h))?.[1];if(!y&&x!=null&&c.test(x)){let S=x;for(;S.length>0;){const C=u.exec(S)[1];S=S.slice(C.length),i.push(AKe(B({},e,{now:o,token:C,startSeparator:a}))),a=""}h+=x.length}else{const S=n[h];y&&g?.start===h||g?.end===h||(i.length===0?a+=S:(i[i.length-1].endSeparator+=S,i[i.length-1].isEndFormatSeparator=!0)),h+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},RKe=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),v7=e=>{let t=IKe(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=OKe(B({},e,{expandedFormat:t})),r=DKe(B({},e,{expandedFormat:t,escapedParts:n}));return RKe(B({},e,{sections:r}))},EU=()=>m.useContext(hU),kKe=()=>{const e=m.useContext(gae);if(e==null)throw new Error(["MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component"].join(`
-`));return e},N0=e=>e.saveQuery!=null,$ae=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:r,setCharacterQuery:o,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const s=Ln(),l=({keyPressed:f,sectionIndex:h},g,y)=>{const x=f.toLowerCase(),S=n.sections[h];if(n.characterQuery!=null&&(!y||y(n.characterQuery.value))&&n.characterQuery.sectionIndex===h){const E=`${n.characterQuery.value}${x}`,I=g(E,S);if(!N0(I))return o({sectionIndex:h,value:E,sectionType:S.type}),I}const C=g(x,S);return N0(C)&&!C.saveQuery?(o(null),null):(o({sectionIndex:h,value:x,sectionType:S.type}),N0(C)?null:C)},c=f=>{const h=(x,S,C)=>{const E=S.filter(I=>I.toLowerCase().startsWith(C));return E.length===0?{saveQuery:!1}:{sectionValue:E[0],shouldGoToNextSection:E.length===1}},g=(x,S,C,E)=>{const I=M=>Mae(s,r,S.type,M);if(S.contentType==="letter")return h(S.format,I(S.format),x);if(C&&E!=null&&Oae(s,C).contentType==="letter"){const M=I(C),O=h(C,M,x);return N0(O)?{saveQuery:!1}:B({},O,{sectionValue:E(O.sectionValue,M)})}return{saveQuery:!1}};return l(f,(x,S)=>{switch(S.type){case"month":{const C=E=>h7(s,E,s.formats.month,S.format);return g(x,S,s.formats.month,C)}case"weekDay":{const C=(E,I)=>I.indexOf(E).toString();return g(x,S,s.formats.weekday,C)}case"meridiem":return g(x,S);default:return{saveQuery:!1}}})},u=f=>{const h=(y,x)=>{const S=hv(y,e),C=Number(S),E=t[x.type]({currentDate:null,format:x.format,contentType:x.contentType});if(C>E.maximum)return{saveQuery:!1};if(C<E.minimum)return{saveQuery:!0};const I=C*10>E.maximum||S.length===E.maximum.toString().length;return{sectionValue:Aae(s,C,E,e,x),shouldGoToNextSection:I}};return l(f,(y,x)=>{if(x.contentType==="digit"||x.contentType==="digit-with-letter")return h(y,x);if(x.type==="month"){Dae(s,"digit","month","MM");const S=h(y,{type:x.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(N0(S))return S;const C=h7(s,S.sectionValue,"MM",x.format);return B({},S,{sectionValue:C})}if(x.type==="weekDay"){const S=h(y,x);if(N0(S))return S;const C=Xk(s,x.format)[Number(S.sectionValue)-1];return B({},S,{sectionValue:C})}return{saveQuery:!1}},y=>p7(y,e))};return ft(f=>{const h=n.sections[f.sectionIndex],y=p7(f.keyPressed,e)?u(B({},f,{keyPressed:vU(f.keyPressed,e)})):c(f);if(y==null){i(null);return}a({section:h,newSectionValue:y.sectionValue,shouldGoToNextSection:y.shouldGoToNextSection})})},Dw=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:a,disablePast:s,disableFuture:l,minDate:c,maxDate:u}=e,f=r.utils.date(void 0,n);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,f)):return"disableFuture";case!!(s&&r.utils.isBeforeDay(t,f)):return"disablePast";case!!(c&&r.utils.isBeforeDay(t,c)):return"minDate";case!!(u&&r.utils.isAfterDay(t,u)):return"maxDate";default:return null}};Dw.valueManager=ii;const aP=({adapter:e,value:t,timezone:n,props:r})=>{if(t===null)return null;const{minTime:o,maxTime:i,minutesStep:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u}=r,f=e.utils.date(void 0,n),h=oP(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(o&&h(o,t)):return"minTime";case!!(i&&h(t,i)):return"maxTime";case!!(u&&e.utils.isAfter(t,f)):return"disableFuture";case!!(c&&e.utils.isBefore(t,f)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}};aP.valueManager=ii;const Jk=({adapter:e,value:t,timezone:n,props:r})=>{const o=Dw({adapter:e,value:t,timezone:n,props:r});return o!==null?o:aP({adapter:e,value:t,timezone:n,props:r})};Jk.valueManager=ii;function Fae(e){const{props:t,validator:n,value:r,timezone:o,onError:i}=e,a=Lv(),s=m.useRef(n.valueManager.defaultErrorState),l=n({adapter:a,value:r,timezone:o,props:t}),c=n.valueManager.hasError(l);m.useEffect(()=>{i&&!n.valueManager.isSameError(l,s.current)&&i(l,r),s.current=l},[n,i,l,r]);const u=ft(f=>n({adapter:a,value:f,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const NKe=5e3,jae=e=>{const t=Ln(),n=La(),r=Lv(),o=eo(),{manager:{validator:i,valueType:a,internal_valueManager:s,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:f,referenceDate:h,onChange:g,format:y,formatDensity:x="dense",selectedSections:S,onSelectedSectionsChange:C,shouldRespectLeadingZeros:E=!1,timezone:I,enableAccessibleFieldDOMStructure:M=!0},forwardedProps:{error:O}}=e,{value:D,handleValueChange:N,timezone:$}=Wm({name:"a field component",timezone:I,value:u,defaultValue:f,referenceDate:h,onChange:g,valueManager:s}),L=m.useRef(D);m.useEffect(()=>{L.current=D},[D]);const{hasValidationError:A}=Fae({props:c,validator:i,timezone:$,value:D,onError:c.onError}),F=m.useMemo(()=>O!==void 0?O:A,[A,O]),z=m.useMemo(()=>_7e(t),[t]),H=m.useMemo(()=>B7e(t,z,$),[t,z,$]),Q=m.useCallback(Te=>l.getSectionsFromValue(Te,Ce=>v7({utils:t,localeText:n,localizedDigits:z,format:y,date:Ce,formatDensity:x,shouldRespectLeadingZeros:E,enableAccessibleFieldDOMStructure:M,isRtl:o})),[l,y,n,z,o,E,t,x,M]),[G,V]=m.useState(()=>{const Te=Q(D),Ce={sections:Te,lastExternalValue:D,lastSectionsDependencies:{format:y,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},Ze=R7e(Te),Me=s.getInitialReferenceValue({referenceDate:h,value:D,utils:t,props:c,granularity:Ze,timezone:$});return B({},Ce,{referenceValue:Me})}),[Y,X]=_s({controlled:S,default:null,name:"useField",state:"selectedSections"}),te=Te=>{X(Te),C?.(Te)},U=m.useMemo(()=>bB(Y,G.sections),[Y,G.sections]),K=U==="all"?0:U,ee=m.useMemo(()=>H7e(G.sections,o&&!M),[G.sections,o,M]),le=m.useMemo(()=>G.sections.every(Te=>Te.value===""),[G.sections]),ce=Te=>{const Ce={validationError:i({adapter:r,value:Te,timezone:$,props:c})};N(Te,Ce)},se=(Te,Ce)=>{const Ze=[...G.sections];return Ze[Te]=B({},Ze[Te],{value:Ce,modified:!0}),Ze},fe=m.useRef(null),we=Ni(),Oe=Te=>{K!=null&&(fe.current={sectionIndex:K,value:Te},we.start(0,()=>{fe.current=null}))},he=()=>{s.areValuesEqual(t,D,s.emptyValue)?V(Te=>B({},Te,{sections:Te.sections.map(Ce=>B({},Ce,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(V(Te=>B({},Te,{characterQuery:null})),ce(s.emptyValue))},me=()=>{if(K==null)return;const Te=G.sections[K];Te.value!==""&&(Oe(""),l.getDateFromSection(D,Te)===null?V(Ce=>B({},Ce,{sections:se(K,""),tempValueStrAndroid:null,characterQuery:null})):(V(Ce=>B({},Ce,{characterQuery:null})),ce(l.updateDateInValue(D,Te,null))))},ye=Te=>{const Ce=(Me,_e)=>{const pe=t.parse(Me,y);if(!t.isValid(pe))return null;const je=v7({utils:t,localeText:n,localizedDigits:z,format:y,date:pe,formatDensity:x,shouldRespectLeadingZeros:E,enableAccessibleFieldDOMStructure:M,isRtl:o});return g7(t,pe,je,_e,!1)},Ze=l.parseValueStr(Te,G.referenceValue,Ce);ce(Ze)},ae=Ni(),Se=({section:Te,newSectionValue:Ce,shouldGoToNextSection:Ze})=>{we.clear(),ae.clear();const Me=l.getDateFromSection(D,Te);Ze&&K<G.sections.length-1&&te(K+1);const _e=se(K,Ce),pe=l.getDateSectionsFromValue(_e,Te),je=$7e(t,pe,z);if(t.isValid(je)){const Ke=g7(t,je,pe,l.getDateFromSection(G.referenceValue,Te),!0);return Me==null&&ae.start(0,()=>{L.current===D&&V(et=>B({},et,{sections:l.clearDateSections(G.sections,Te),tempValueStrAndroid:null}))}),ce(l.updateDateInValue(D,Te,Ke))}return pe.every(Ke=>Ke.value!=="")?(Oe(Ce),ce(l.updateDateInValue(D,Te,je))):Me!=null?(Oe(Ce),ce(l.updateDateInValue(D,Te,null))):V(Ke=>B({},Ke,{sections:_e,tempValueStrAndroid:null}))},Ie=Te=>V(Ce=>B({},Ce,{tempValueStrAndroid:Te})),Re=ft(Te=>{V(Ce=>B({},Ce,{characterQuery:Te}))});if(D!==G.lastExternalValue){let Te;fe.current!=null&&!t.isValid(l.getDateFromSection(D,G.sections[fe.current.sectionIndex]))?Te=se(fe.current.sectionIndex,fe.current.value):Te=Q(D),V(Ce=>B({},Ce,{lastExternalValue:D,sections:Te,sectionsDependencies:{format:y,isRtl:o,locale:t.locale},referenceValue:l.updateReferenceValue(t,D,Ce.referenceValue),tempValueStrAndroid:null}))}if(o!==G.lastSectionsDependencies.isRtl||y!==G.lastSectionsDependencies.format||t.locale!==G.lastSectionsDependencies.locale){const Te=Q(D);V(Ce=>B({},Ce,{lastSectionsDependencies:{format:y,isRtl:o,locale:t.locale},sections:Te,tempValueStrAndroid:null,characterQuery:null}))}G.characterQuery!=null&&!F&&K==null&&Re(null),G.characterQuery!=null&&G.sections[G.characterQuery.sectionIndex]?.type!==G.characterQuery.sectionType&&Re(null),m.useEffect(()=>{fe.current!=null&&(fe.current=null)});const ke=Ni();return m.useEffect(()=>(G.characterQuery!=null&&ke.start(NKe,()=>Re(null)),()=>{}),[G.characterQuery,Re,ke]),m.useEffect(()=>{G.tempValueStrAndroid!=null&&K!=null&&me()},[G.sections]),{activeSectionIndex:K,areAllSectionsEmpty:le,error:F,localizedDigits:z,parsedSelectedSections:U,sectionOrder:ee,sectionsValueBoundaries:H,state:G,timezone:$,value:D,clearValue:he,clearActiveSection:me,setCharacterQuery:Re,setSelectedSections:te,setTempAndroidValueStr:Ie,updateSectionValue:Se,updateValueFromValueStr:ye,getSectionsFromValue:Q}};function Bae(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:r}=e,o=EU(),i=mae(),a=xn(n.unstableFieldRef,r?null:i?.fieldRef),s=o?.setValue,l=m.useCallback((u,f)=>s?.(u,{validationError:f.validationError,shouldClose:!1}),[s]),c=m.useMemo(()=>i!=null&&o!=null?B({value:o.value,onChange:l,timezone:o.timezone,disabled:o.disabled,readOnly:o.readOnly,autoFocus:o.autoFocus&&!o.open,focused:o.open?!0:void 0,format:o.fieldFormat,formatDensity:i.formatDensity,enableAccessibleFieldDOMStructure:i.enableAccessibleFieldDOMStructure,selectedSections:i.selectedSections,onSelectedSectionsChange:i.onSelectedSectionsChange,unstableFieldRef:a},n):n,[o,i,n,l,a]);return t(c)}function TU(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:r,state:o}}=e;if(!n.isReady())return;const i=document.getSelection();if(!i)return;if(r==null){i.rangeCount>0&&n.getRoot().contains(i.getRangeAt(0).startContainer)&&i.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(Ra(document)))return;const a=new window.Range;let s;r==="all"?s=n.getRoot():o.sections[r].type==="empty"?s=n.getSectionContainer(r):s=n.getSectionContent(r),a.selectNodeContents(s),s.focus(),i.removeAllRanges(),i.addRange(a)}function zae(e){const t=Ln(),{manager:{internal_fieldValueManager:n},internalPropsWithDefaults:{minutesStep:r,disabled:o,readOnly:i},stateResponse:{state:a,value:s,activeSectionIndex:l,parsedSelectedSections:c,sectionsValueBoundaries:u,localizedDigits:f,timezone:h,sectionOrder:g,clearValue:y,clearActiveSection:x,setSelectedSections:S,updateSectionValue:C}}=e;return ft(E=>{if(!o)switch(!0){case((E.ctrlKey||E.metaKey)&&String.fromCharCode(E.keyCode)==="A"&&!E.shiftKey&&!E.altKey):{E.preventDefault(),S("all");break}case E.key==="ArrowRight":{if(E.preventDefault(),c==null)S(g.startIndex);else if(c==="all")S(g.endIndex);else{const I=g.neighbors[c].rightIndex;I!==null&&S(I)}break}case E.key==="ArrowLeft":{if(E.preventDefault(),c==null)S(g.endIndex);else if(c==="all")S(g.startIndex);else{const I=g.neighbors[c].leftIndex;I!==null&&S(I)}break}case E.key==="Delete":{if(E.preventDefault(),i)break;c==null||c==="all"?y():x();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(E.key):{if(E.preventDefault(),i||l==null)break;c==="all"&&S(l);const I=a.sections[l],M=LKe(t,h,I,E.key,u,f,n.getDateFromSection(s,I),{minutesStep:r});C({section:I,newSectionValue:M,shouldGoToNextSection:!1});break}}})}function _Ke(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function LKe(e,t,n,r,o,i,a,s){const l=_Ke(r),c=r==="Home",u=r==="End",f=n.value===""||c||u,h=()=>{const y=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),x=E=>Aae(e,E,y,i,n),S=n.type==="minutes"&&s?.minutesStep?s.minutesStep:1;let C;if(f){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?C=y.minimum:C=y.maximum}else C=parseInt(hv(n.value,i),10)+l*S;return C%S!==0&&((l<0||c)&&(C+=S-(S+C)%S),(l>0||u)&&(C-=C%S)),C>y.maximum?x(y.minimum+(C-y.maximum-1)%(y.maximum-y.minimum+1)):C<y.minimum?x(y.maximum-(y.minimum-C-1)%(y.maximum-y.minimum+1)):x(C)},g=()=>{const y=Mae(e,t,n.type,n.format);if(y.length===0)return n.value;if(f)return l>0||c?y[0]:y[y.length-1];const C=((y.indexOf(n.value)+l)%y.length+y.length)%y.length;return y[C]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?h():g()}function $Ke(e){const{manager:t,focused:n,setFocused:r,domGetters:o,stateResponse:i,applyCharacterEditing:a,internalPropsWithDefaults:s,stateResponse:{parsedSelectedSections:l,sectionOrder:c,state:u,clearValue:f,setCharacterQuery:h,setSelectedSections:g,updateValueFromValueStr:y},internalPropsWithDefaults:{disabled:x=!1,readOnly:S=!1}}=e,C=zae({manager:t,internalPropsWithDefaults:s,stateResponse:i}),E=Ni(),I=ft($=>{x||!o.isReady()||(r(!0),l==="all"?E.start(0,()=>{const L=document.getSelection().getRangeAt(0).startOffset;if(L===0){g(c.startIndex);return}let A=0,F=0;for(;F<L&&A<u.sections.length;){const z=u.sections[A];A+=1,F+=`${z.startSeparator}${z.value||z.placeholder}${z.endSeparator}`.length}g(A-1)}):n?o.getRoot().contains($.target)||g(c.startIndex):(r(!0),g(c.startIndex)))}),M=ft($=>{if(!o.isReady()||l!=="all")return;const A=$.target.textContent??"";o.getRoot().innerHTML=u.sections.map(F=>`${F.startSeparator}${F.value||F.placeholder}${F.endSeparator}`).join(""),TU({focused:n,domGetters:o,stateResponse:i}),A.length===0||A.charCodeAt(0)===10?(f(),g("all")):A.length>1?y(A):(l==="all"&&g(0),a({keyPressed:A,sectionIndex:0}))}),O=ft($=>{if(S||l!=="all"){$.preventDefault();return}const L=$.clipboardData.getData("text");$.preventDefault(),h(null),y(L)}),D=ft(()=>{if(n||x||!o.isReady())return;const $=Ra(document);r(!0),o.getSectionIndexFromDOMElement($)!=null||g(c.startIndex)}),N=ft(()=>{setTimeout(()=>{if(!o.isReady())return;const $=Ra(document);!o.getRoot().contains($)&&(r(!1),g(null))})});return{onKeyDown:C,onBlur:N,onFocus:D,onClick:I,onPaste:O,onInput:M,contentEditable:l==="all",tabIndex:l===0?-1:0}}function FKe(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:r,updateValueFromValueStr:o}}=e,i=ft(s=>{o(s.target.value)});return{value:m.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(r.sections),[n,r.sections,t]),onChange:i}}function jKe(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:n=!1}}=e,r=ft(o=>i=>{n||i.isDefaultPrevented()||t(o)});return m.useCallback(o=>({"data-sectionindex":o,onClick:r(o)}),[r])}function BKe(e){const t=Ln(),n=La(),r=_n(),{focused:o,domGetters:i,stateResponse:a,applyCharacterEditing:s,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,state:f,value:h,clearActiveSection:g,setCharacterQuery:y,setSelectedSections:x,updateSectionValue:S,updateValueFromValueStr:C},internalPropsWithDefaults:{disabled:E=!1,readOnly:I=!1}}=e,M=c==="all",O=!M&&!E&&!I,D=ft(z=>{if(!i.isReady())return;const H=f.sections[z];i.getSectionContent(z).innerHTML=H.value||H.placeholder,TU({focused:o,domGetters:i,stateResponse:a})}),N=ft(z=>{if(!i.isReady())return;const H=z.target,Q=H.textContent??"",G=i.getSectionIndexFromDOMElement(H),V=f.sections[G];if(I){D(G);return}if(Q.length===0){if(V.value===""){D(G);return}const Y=z.nativeEvent.inputType;if(Y==="insertParagraph"||Y==="insertLineBreak"){D(G);return}D(G),g();return}s({keyPressed:Q,sectionIndex:G}),D(G)}),$=ft(z=>{z.preventDefault()}),L=ft(z=>{if(z.preventDefault(),I||E||typeof c!="number")return;const H=f.sections[c],Q=z.clipboardData.getData("text"),G=/^[a-zA-Z]+$/.test(Q),V=/^[0-9]+$/.test(Q),Y=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Q);H.contentType==="letter"&&G||H.contentType==="digit"&&V||H.contentType==="digit-with-letter"&&Y?(y(null),S({section:H,newSectionValue:Q,shouldGoToNextSection:!0})):!G&&!V&&(y(null),C(Q))}),A=ft(z=>{z.preventDefault(),z.dataTransfer.dropEffect="none"}),F=ft(z=>()=>{E||x(z)});return m.useCallback((z,H)=>{const Q=u[z.type]({currentDate:l.getDateFromSection(h,z),contentType:z.contentType,format:z.format});return{onInput:N,onPaste:L,onMouseUp:$,onDragOver:A,onFocus:F(H),"aria-labelledby":`${r}-${z.type}`,"aria-readonly":I,"aria-valuenow":VKe(z,t),"aria-valuemin":Q.minimum,"aria-valuemax":Q.maximum,"aria-valuetext":z.value?zKe(z,t):n.empty,"aria-label":n[z.type],"aria-disabled":E,tabIndex:M||H>0?-1:0,contentEditable:!M&&!E&&!I,role:"spinbutton",id:`${r}-${z.type}`,"data-range-position":z.dateName||void 0,spellCheck:O?!1:void 0,autoCapitalize:O?"off":void 0,autoCorrect:O?"off":void 0,children:z.value||z.placeholder,inputMode:z.contentType==="letter"?"text":"numeric"}},[u,r,M,E,I,O,n,t,N,L,$,A,F,l,h])}function zKe(e,t){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}}function VKe(e,t){if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}}const HKe=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:r,manager:{valueType:o,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:s}=Lae(t,o),l=Bae({manager:n,internalProps:a,skipContextFieldRefAssignment:r}),{sectionListRef:c,onBlur:u,onClick:f,onFocus:h,onInput:g,onPaste:y,onKeyDown:x,onClear:S,clearable:C}=s,{disabled:E=!1,readOnly:I=!1,autoFocus:M=!1,focused:O,unstableFieldRef:D}=l,N=m.useRef(null),$=xn(c,N),L=m.useMemo(()=>({isReady:()=>N.current!=null,getRoot:()=>N.current.getRoot(),getSectionContainer:ke=>N.current.getSectionContainer(ke),getSectionContent:ke=>N.current.getSectionContent(ke),getSectionIndexFromDOMElement:ke=>N.current.getSectionIndexFromDOMElement(ke)}),[N]),A=jae({manager:n,internalPropsWithDefaults:l,forwardedProps:s}),{areAllSectionsEmpty:F,error:z,parsedSelectedSections:H,sectionOrder:Q,state:G,value:V,clearValue:Y,setSelectedSections:X}=A,te=$ae({stateResponse:A}),U=i(V),[K,ee]=m.useState(!1);function le(ke=0){if(E||!N.current||b7(N)!=null)return;const Te=bB(ke,G.sections);ee(!0),N.current.getSectionContent(Te).focus()}const ce=$Ke({manager:n,internalPropsWithDefaults:l,stateResponse:A,applyCharacterEditing:te,focused:K,setFocused:ee,domGetters:L}),se=FKe({manager:n,stateResponse:A}),fe=jKe({stateResponse:A,internalPropsWithDefaults:l}),we=BKe({manager:n,stateResponse:A,applyCharacterEditing:te,internalPropsWithDefaults:l,domGetters:L,focused:K}),Oe=ft(ke=>{x?.(ke),ce.onKeyDown(ke)}),he=ft(ke=>{u?.(ke),ce.onBlur(ke)}),me=ft(ke=>{h?.(ke),ce.onFocus(ke)}),ye=ft(ke=>{ke.isDefaultPrevented()||(f?.(ke),ce.onClick(ke))}),ae=ft(ke=>{y?.(ke),ce.onPaste(ke)}),Se=ft(ke=>{g?.(ke),ce.onInput(ke)}),Ie=ft((ke,...Te)=>{ke.preventDefault(),S?.(ke,...Te),Y(),x7(N)?X(Q.startIndex):le(0)}),Re=m.useMemo(()=>G.sections.map((ke,Te)=>{const Ce=we(ke,Te);return{container:fe(Te),content:we(ke,Te),before:{children:ke.startSeparator},after:{children:ke.endSeparator,"data-range-position":ke.isEndFormatSeparator?Ce["data-range-position"]:void 0}}}),[G.sections,fe,we]);return m.useEffect(()=>{if(N.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please add the `enableAccessibleFieldDOMStructure={false}` prop to your Picker or Field component:","","<DatePicker enableAccessibleFieldDOMStructure={false} slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
-`));M&&!E&&N.current&&N.current.getSectionContent(Q.startIndex).focus()},[]),qn(()=>{if(!(!K||!N.current)){if(H==="all")N.current.getRoot().focus();else if(typeof H=="number"){const ke=N.current.getSectionContent(H);ke&&ke.focus()}}},[H,K]),qn(()=>{TU({focused:K,domGetters:L,stateResponse:A})}),m.useImperativeHandle(D,()=>({getSections:()=>G.sections,getActiveSectionIndex:()=>b7(N),setSelectedSections:ke=>{if(E||!N.current)return;const Te=bB(ke,G.sections);ee((Te==="all"?0:Te)!==null),X(ke)},focusField:le,isFieldFocused:()=>x7(N)})),B({},s,ce,{onBlur:he,onClick:ye,onFocus:me,onInput:Se,onPaste:ae,onKeyDown:Oe,onClear:Ie},se,{error:z,clearable:!!(C&&!F&&!I&&!E),focused:O??K,sectionListRef:$,enableAccessibleFieldDOMStructure:!0,elements:Re,areAllSectionsEmpty:F,disabled:E,readOnly:I,autoFocus:M,openPickerAriaLabel:U})};function b7(e){const t=Ra(document);return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function x7(e){const t=Ra(document);return!!e.current&&e.current.getRoot().contains(t)}const J0=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),UKe=(e,t,n)=>{let r=0,o=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const s=e[a],l=xU(s,n?"input-rtl":"input-ltr",t),c=`${s.startSeparator}${l}${s.endSeparator}`,u=J0(c).length,f=c.length,h=J0(l),g=o+(h===""?0:l.indexOf(h[0]))+s.startSeparator.length,y=g+h.length;i.push(B({},s,{start:r,end:r+u,startInInput:g,endInInput:y})),r+=u,o+=f}return i},GKe=e=>{const t=eo(),n=Ni(),r=Ni(),{props:o,manager:i,skipContextFieldRefAssignment:a,manager:{valueType:s,internal_valueManager:l,internal_fieldValueManager:c,internal_useOpenPickerButtonAriaLabel:u}}=e,{internalProps:f,forwardedProps:h}=Lae(o,s),g=Bae({manager:i,internalProps:f,skipContextFieldRefAssignment:a}),{onFocus:y,onClick:x,onPaste:S,onBlur:C,onKeyDown:E,onClear:I,clearable:M,inputRef:O,placeholder:D}=h,{readOnly:N=!1,disabled:$=!1,autoFocus:L=!1,focused:A,unstableFieldRef:F}=g,z=m.useRef(null),H=xn(O,z),Q=jae({manager:i,internalPropsWithDefaults:g,forwardedProps:h}),{activeSectionIndex:G,areAllSectionsEmpty:V,error:Y,localizedDigits:X,parsedSelectedSections:te,sectionOrder:U,state:K,value:ee,clearValue:le,clearActiveSection:ce,setCharacterQuery:se,setSelectedSections:fe,setTempAndroidValueStr:we,updateSectionValue:Oe,updateValueFromValueStr:he,getSectionsFromValue:me}=Q,ye=$ae({stateResponse:Q}),ae=u(ee),Se=m.useMemo(()=>UKe(K.sections,X,t),[K.sections,X,t]);function Ie(){const tt=z.current.selectionStart??0;let vt;tt<=Se[0].startInInput||tt>=Se[Se.length-1].endInInput?vt=1:vt=Se.findIndex(Mt=>Mt.startInInput-Mt.startSeparator.length>tt);const Je=vt===-1?Se.length-1:vt-1;fe(Je)}function Re(tt=0){Ra(document)!==z.current&&(z.current?.focus(),fe(tt))}const ke=ft(tt=>{y?.(tt);const vt=z.current;n.start(0,()=>{!vt||vt!==z.current||G==null&&(vt.value.length&&Number(vt.selectionEnd)-Number(vt.selectionStart)===vt.value.length?fe("all"):Ie())})}),Te=ft((tt,...vt)=>{tt.isDefaultPrevented()||(x?.(tt,...vt),Ie())}),Ce=ft(tt=>{if(S?.(tt),tt.preventDefault(),N||$)return;const vt=tt.clipboardData.getData("text");if(typeof te=="number"){const Je=K.sections[te],Mt=/^[a-zA-Z]+$/.test(vt),Gt=/^[0-9]+$/.test(vt),ht=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(vt);if(Je.contentType==="letter"&&Mt||Je.contentType==="digit"&&Gt||Je.contentType==="digit-with-letter"&&ht){se(null),Oe({section:Je,newSectionValue:vt,shouldGoToNextSection:!0});return}if(Mt||Gt)return}se(null),he(vt)}),Ze=ft(tt=>{C?.(tt),fe(null)}),Me=ft(tt=>{if(N)return;const vt=tt.target.value;if(vt===""){le();return}const Je=tt.nativeEvent.data,Mt=Je&&Je.length>1,Gt=Mt?Je:vt,ht=J0(Gt);if(te==="all"&&fe(G),G==null||Mt){he(Mt?Je:ht);return}let Qt;if(te==="all"&&ht.length===1)Qt=ht;else{const en=J0(c.getV6InputValueFromSections(Se,X,t));let qt=-1,zn=-1;for(let Yn=0;Yn<en.length;Yn+=1)qt===-1&&en[Yn]!==ht[Yn]&&(qt=Yn),zn===-1&&en[en.length-Yn-1]!==ht[ht.length-Yn-1]&&(zn=Yn);const lr=Se[G];if(qt<lr.start||en.length-zn-1>lr.end)return;const xr=ht.length-en.length+lr.end-J0(lr.endSeparator||"").length;Qt=ht.slice(lr.start+J0(lr.startSeparator||"").length,xr)}if(Qt.length===0){V7e()&&we(Gt),ce();return}ye({keyPressed:Qt,sectionIndex:G})}),_e=ft((tt,...vt)=>{tt.preventDefault(),I?.(tt,...vt),le(),w7(z)?fe(U.startIndex):Re(0)}),pe=zae({manager:i,internalPropsWithDefaults:g,stateResponse:Q}),je=ft(tt=>{E?.(tt),pe(tt)}),Ke=m.useMemo(()=>D!==void 0?D:c.getV6InputValueFromSections(me(l.emptyValue),X,t),[D,c,me,l.emptyValue,X,t]),et=m.useMemo(()=>K.tempValueStrAndroid??c.getV6InputValueFromSections(K.sections,X,t),[K.sections,c,K.tempValueStrAndroid,X,t]);m.useEffect(()=>{z.current&&z.current===Ra(document)&&fe("all")},[]),qn(()=>{function tt(){if(!z.current)return;if(te==null){z.current.scrollLeft&&(z.current.scrollLeft=0);return}if(z.current!==Ra(document))return;const vt=z.current.scrollTop;if(te==="all")z.current.select();else{const Je=Se[te],Mt=Je.type==="empty"?Je.startInInput-Je.startSeparator.length:Je.startInInput,Gt=Je.type==="empty"?Je.endInInput+Je.endSeparator.length:Je.endInInput;(Mt!==z.current.selectionStart||Gt!==z.current.selectionEnd)&&z.current===Ra(document)&&z.current.setSelectionRange(Mt,Gt),r.start(0,()=>{z.current&&z.current===Ra(document)&&z.current.selectionStart===z.current.selectionEnd&&(z.current.selectionStart!==Mt||z.current.selectionEnd!==Gt)&&tt()})}z.current.scrollTop=vt}tt()});const nt=m.useMemo(()=>G==null||K.sections[G].contentType==="letter"?"text":"numeric",[G,K.sections]),it=!(z.current&&z.current===Ra(document))&&V;return m.useImperativeHandle(F,()=>({getSections:()=>K.sections,getActiveSectionIndex:()=>{const tt=z.current.selectionStart??0,vt=z.current.selectionEnd??0;if(tt===0&&vt===0)return null;const Je=tt<=Se[0].startInInput?1:Se.findIndex(Mt=>Mt.startInInput-Mt.startSeparator.length>tt);return Je===-1?Se.length-1:Je-1},setSelectedSections:tt=>fe(tt),focusField:Re,isFieldFocused:()=>w7(z)})),B({},h,{error:Y,clearable:!!(M&&!V&&!N&&!$),onBlur:Ze,onClick:Te,onFocus:ke,onPaste:Ce,onKeyDown:je,onClear:_e,inputRef:H,enableAccessibleFieldDOMStructure:!1,placeholder:Ke,inputMode:nt,autoComplete:"off",value:it?"":et,onChange:Me,focused:A,disabled:$,readOnly:N,autoFocus:L,openPickerAriaLabel:ae})};function w7(e){return e.current===Ra(document)}const PU=e=>{const t=mae();return(e.props.enableAccessibleFieldDOMStructure??t?.enableAccessibleFieldDOMStructure??!0?HKe:GKe)(e)};function WKe(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return m.useMemo(()=>({valueType:"date",validator:Dw,internal_valueManager:ii,internal_fieldValueManager:wU,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:KKe,internal_useOpenPickerButtonAriaLabel:qKe}),[t])}function qKe(e){const t=Ln(),n=La();return m.useMemo(()=>{const r=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(r)},[e,n,t])}function KKe(e){const t=Ln(),n=sP(e);return m.useMemo(()=>B({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function sP(e){const t=Ln(),n=dae();return m.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:BD(t,e.minDate,n.minDate),maxDate:BD(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function YKe(e={}){const{enableAccessibleFieldDOMStructure:t=!0,ampm:n}=e;return m.useMemo(()=>({valueType:"time",validator:aP,internal_valueManager:ii,internal_fieldValueManager:wU,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:XKe,internal_useOpenPickerButtonAriaLabel:QKe(n)}),[n,t])}function QKe(e){return function(n){const r=Ln(),o=La();return m.useMemo(()=>{const i=e??r.is12HourCycleInCurrentLocale()?"fullTime12h":"fullTime24h",a=r.isValid(n)?r.format(n,i):null;return o.openTimePickerDialogue(a)},[n,o,r])}}function XKe(e){const t=Ln(),n=Vae(e),r=m.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return m.useMemo(()=>B({},e,n,{format:e.format??(r?t.formats.fullTime12h:t.formats.fullTime24h)}),[e,n,r,t])}function Vae(e){return m.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1}),[e.disablePast,e.disableFuture])}function JKe(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return m.useMemo(()=>({valueType:"date-time",validator:Jk,internal_valueManager:ii,internal_fieldValueManager:wU,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:eYe,internal_useOpenPickerButtonAriaLabel:ZKe}),[t])}function ZKe(e){const t=Ln(),n=La();return m.useMemo(()=>{const r=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(r)},[e,n,t])}function eYe(e){const t=Ln(),n=Hae(e),r=m.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return m.useMemo(()=>B({},e,n,{format:e.format??(r?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h)}),[e,n,r,t])}function Hae(e){const t=Ln(),n=dae();return m.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,disableIgnoringDatePartForTimeValidation:!!e.minDateTime||!!e.maxDateTime||!!e.disableFuture||!!e.disablePast,minDate:BD(t,e.minDateTime??e.minDate,n.minDate),maxDate:BD(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime}),[e.minDateTime,e.maxDateTime,e.minTime,e.maxTime,e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}const tYe=e=>{const t=WKe(e);return PU({manager:t,props:e})};function IU(e){const{ownerState:t}=_o(),n=eo();return m.useMemo(()=>B({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}function nYe(e){return st("MuiPickersTextField",e)}ct("MuiPickersTextField",["root","focused","disabled","error","required"]);function rYe(e){return st("MuiPickersInputBase",e)}const gx=ct("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","activeBar"]);function oYe(e){return st("MuiPickersSectionList",e)}const s1=ct("MuiPickersSectionList",["root","section","sectionContent"]),iYe=["slots","slotProps","elements","sectionListRef","classes"],Uae=ue("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),Gae=ue("span",{name:"MuiPickersSectionList",slot:"Section"})({}),Wae=ue("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),qae=ue("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),aYe=e=>$e({root:["root"],section:["section"],sectionContent:["sectionContent"]},oYe,e);function sYe(e){const{slots:t,slotProps:n,element:r,classes:o}=e,{ownerState:i}=_o(),a=t?.section??Gae,s=nr({elementType:a,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:i}),l=t?.sectionContent??qae,c=nr({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:i}),u=t?.sectionSeparator??Wae,f=nr({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:B({},i,{separatorPosition:"before"})}),h=nr({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:B({},i,{separatorPosition:"after"})});return R.jsxs(a,B({},s,{children:[R.jsx(u,B({},f)),R.jsx(l,B({},c)),R.jsx(u,B({},h))]}))}const lYe=m.forwardRef(function(t,n){const r=Kn({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:i,elements:a,sectionListRef:s,classes:l}=r,c=He(r,iYe),u=aYe(l),{ownerState:f}=_o(),h=m.useRef(null),g=xn(n,h),y=C=>{if(!h.current)throw new Error(`MUI X: Cannot call sectionListRef.${C} before the mount of the component.`);return h.current};m.useImperativeHandle(s,()=>({getRoot(){return y("getRoot")},getSectionContainer(C){return y("getSectionContainer").querySelector(`.${s1.section}[data-sectionindex="${C}"]`)},getSectionContent(C){return y("getSectionContent").querySelector(`.${s1.section}[data-sectionindex="${C}"] .${s1.sectionContent}`)},getSectionIndexFromDOMElement(C){const E=y("getSectionIndexFromDOMElement");if(C==null||!E.contains(C))return null;let I=null;return C.classList.contains(s1.section)?I=C:C.classList.contains(s1.sectionContent)&&(I=C.parentElement),I==null?null:Number(I.dataset.sectionindex)}}));const x=o?.root??Uae,S=nr({elementType:x,externalSlotProps:i?.root,externalForwardedProps:c,additionalProps:{ref:g,suppressContentEditableWarning:!0},className:u.root,ownerState:f});return R.jsx(x,B({},S,{children:S.contentEditable?a.map(({content:C,before:E,after:I})=>`${E.children}${C.children}${I.children}`).join(""):R.jsx(m.Fragment,{children:a.map((C,E)=>R.jsx(sYe,{slots:o,slotProps:i,element:C,classes:u},E))})}))}),Kae=m.createContext(null),Zk=()=>{const e=m.useContext(Kae);if(e==null)throw new Error(["MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component"].join(`
-`));return e},cYe=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],uYe=e=>Math.round(e*1e5)/1e5,e2=ue("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>B({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${uYe(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),OU=ue(Uae,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{textAlign:"right /*! @noflip */"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0},style:{color:"currentColor",opacity:0}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!1},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),dYe=ue(Gae,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),fYe=ue(qae,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),pYe=ue(Wae,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),hYe=ue("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(B({},Ame)),mYe=ue("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),gYe=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:r,isFieldReadOnly:o,hasFieldError:i,inputSize:a,isInputInFullWidth:s,inputColor:l,hasStartAdornment:c,hasEndAdornment:u}=t,f={root:["root",n&&!r&&"focused",r&&"disabled",o&&"readOnly",i&&"error",s&&"fullWidth",`color${Ae(l)}`,a==="small"&&"inputSizeSmall",c&&"adornedStart",u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return $e(f,rYe,e)};function S7(e,t,n,r){if(e.content.id){const o=t.current?.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${r}"]`);if(o)return Array.from(o).reduce((i,a)=>i+a.offsetWidth,0)}return 0}function yYe(e,t){let n=0;if(t.current?.getAttribute("data-active-range-position")==="end")for(let o=e.length-1;o>=e.length/2;o-=1)n+=S7(e[o],t,o,"end");else for(let o=0;o<e.length/2;o+=1)n+=S7(e[o],t,o,"start");return{activeBarWidth:n,sectionOffsets:[t.current?.querySelector('[data-sectionindex="0"]')?.offsetLeft||0,t.current?.querySelector(`[data-sectionindex="${e.length/2}"]`)?.offsetLeft||0]}}const MU=m.forwardRef(function(t,n){const r=Kn({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:i,value:a,onChange:s,id:l,endAdornment:c,startAdornment:u,renderSuffix:f,slots:h,slotProps:g,contentEditable:y,tabIndex:x,onInput:S,onPaste:C,onKeyDown:E,name:I,readOnly:M,inputProps:O,inputRef:D,sectionListRef:N,onFocus:$,onBlur:L,classes:A,ownerState:F}=r,z=He(r,cYe),H=Zk(),Q=m.useRef(null),G=m.useRef(null),V=m.useRef([]),Y=xn(n,Q),X=xn(O?.ref,D),te=ou();if(!te)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const U=F??H,K=me=>{te.onFocus?.(me),$?.(me)},ee=me=>{K(me)},le=me=>{if(E?.(me),me.key==="Enter"&&!me.defaultMuiPrevented){if(Q.current?.dataset.multiInput)return;const ye=Q.current?.closest("form"),ae=ye?.querySelector('[type="submit"]');if(!ye||!ae)return;me.preventDefault(),ye.requestSubmit(ae)}},ce=me=>{te.onBlur?.(me),L?.(me)};m.useEffect(()=>{te&&te.setAdornedStart(!!u)},[te,u]),m.useEffect(()=>{te&&(i?te.onEmpty():te.onFilled())},[te,i]);const se=gYe(A,U),fe=h?.root||e2,we=nr({elementType:fe,externalSlotProps:g?.root,externalForwardedProps:z,additionalProps:{"aria-invalid":te.error,ref:Y},className:se.root,ownerState:U}),Oe=h?.input||OU,he=o.some(me=>me.content["data-range-position"]!==void 0);return m.useEffect(()=>{if(!he||!U.isPickerOpen)return;const{activeBarWidth:me,sectionOffsets:ye}=yYe(o,Q);V.current=[ye[0],ye[1]],G.current&&(G.current.style.width=`${me}px`)},[o,he,U.isPickerOpen]),R.jsxs(fe,B({},we,{children:[u,R.jsx(lYe,{sectionListRef:N,elements:o,contentEditable:y,tabIndex:x,className:se.sectionsContainer,onFocus:K,onBlur:ce,onInput:S,onPaste:C,onKeyDown:le,slots:{root:Oe,section:dYe,sectionContent:fYe,sectionSeparator:pYe},slotProps:{root:B({},g?.input,{ownerState:U}),sectionContent:{className:gx.sectionContent},sectionSeparator:({separatorPosition:me})=>({className:me==="before"?gx.sectionBefore:gx.sectionAfter})}}),c,f?f(B({},te)):null,R.jsx(hYe,B({name:I,className:se.input,value:a,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:M,required:te.required,disabled:te.disabled,onFocus:ee},O,{ref:X})),he&&R.jsx(mYe,{className:se.activeBar,ref:G,ownerState:{sectionOffsets:V.current}})]}))});function vYe(e){return st("MuiPickersOutlinedInput",e)}const Mu=B({},gx,ct("MuiPickersOutlinedInput",["root","notchedOutline","input"])),bYe=["children","className","label","notched","shrink"],xYe=ue("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),C7=ue("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),wYe=ue("legend",{shouldForwardProp:e=>ll(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function SYe(e){const{className:t,label:n,notched:r}=e,o=He(e,bYe),i=Zk();return R.jsx(xYe,B({"aria-hidden":!0,className:t},o,{ownerState:i,children:R.jsx(wYe,{ownerState:i,notched:r,children:n?R.jsx(C7,{children:n}):R.jsx(C7,{className:"notranslate",children:"​"})})}))}const CYe=["label","autoFocus","ownerState","classes","notched"],EYe=ue(e2,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Mu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Mu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Mu.focused} .${Mu.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${Mu.disabled}`]:{[`& .${Mu.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${Mu.error} .${Mu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{inputColor:n},style:{[`&.${Mu.focused}:not(.${Mu.error}) .${Mu.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),TYe=ue(OU,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),PYe=e=>{const n=$e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},vYe,e);return B({},e,n)},Yae=m.forwardRef(function(t,n){const r=Kn({props:t,name:"MuiPickersOutlinedInput"}),{label:o,classes:i,notched:a}=r,s=He(r,CYe),l=ou(),c=PYe(i);return R.jsx(MU,B({slots:{root:EYe,input:TYe},renderSuffix:u=>R.jsx(SYe,{shrink:!!(a||u.adornedStart||u.focused||u.filled),notched:!!(a||u.adornedStart||u.focused||u.filled),className:c.notchedOutline,label:o!=null&&o!==""&&l?.required?R.jsxs(m.Fragment,{children:[o," ","*"]}):o})},s,{label:o,classes:c,ref:n}))});Yae.muiName="Input";function IYe(e){return st("MuiPickersFilledInput",e)}const py=B({},gx,ct("MuiPickersFilledInput",["root","underline","input"])),OYe=["label","autoFocus","disableUnderline","hiddenLabel","classes"],MYe=ue(e2,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>ll(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${py.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${py.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>({props:{inputColor:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${py.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${py.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${py.disabled}, .${py.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${py.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),AYe=ue(OU,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>ll(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),DYe=(e,t)=>{const{inputHasUnderline:n}=t,o=$e({root:["root",n&&"underline"],input:["input"]},IYe,e);return B({},e,o)},Qae=m.forwardRef(function(t,n){const r=Kn({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:i=!1,hiddenLabel:a=!1,classes:s}=r,l=He(r,OYe),c=Zk(),u=B({},c,{inputHasUnderline:!i}),f=DYe(s,u);return R.jsx(MU,B({slots:{root:MYe,input:AYe},slotProps:{root:{disableUnderline:i},input:{hiddenLabel:a}}},l,{label:o,classes:f,ref:n,ownerState:u}))});Qae.muiName="Input";function RYe(e){return st("MuiPickersFilledInput",e)}const l1=B({},gx,ct("MuiPickersInput",["root","underline","input"])),kYe=["label","autoFocus","disableUnderline","ownerState","classes"],NYe=ue(e2,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>ll(e)&&e!=="disableUnderline"})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(r=>(e.vars??e).palette[r].main).map(r=>({props:{inputColor:r},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${l1.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${l1.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${l1.disabled}, .${l1.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${l1.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),_Ye=(e,t)=>{const{inputHasUnderline:n}=t,o=$e({root:["root",!n&&"underline"],input:["input"]},RYe,e);return B({},e,o)},Xae=m.forwardRef(function(t,n){const r=Kn({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:i=!1,classes:a}=r,s=He(r,kYe),l=Zk(),c=B({},l,{inputHasUnderline:!i}),u=_Ye(a,c);return R.jsx(MU,B({slots:{root:NYe},slotProps:{root:{disableUnderline:i}}},s,{label:o,classes:u,ref:n}))});Xae.muiName="Input";const LYe=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps","data-active-range-position"],$Ye={standard:Xae,filled:Qae,outlined:Yae},FYe=ue(Tv,{name:"MuiPickersTextField",slot:"Root"})({}),jYe=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:r,isFieldRequired:o}=t;return $e({root:["root",n&&!r&&"focused",r&&"disabled",o&&"required"]},nYe,e)},Jae=m.forwardRef(function(t,n){const r=Kn({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:i,className:a,classes:s,color:l="primary",disabled:c=!1,error:u=!1,variant:f="outlined",required:h=!1,InputProps:g,inputProps:y,inputRef:x,sectionListRef:S,elements:C,areAllSectionsEmpty:E,onClick:I,onKeyDown:M,onKeyUp:O,onPaste:D,onInput:N,endAdornment:$,startAdornment:L,tabIndex:A,contentEditable:F,focused:z,value:H,onChange:Q,fullWidth:G,id:V,name:Y,helperText:X,FormHelperTextProps:te,label:U,InputLabelProps:K,"data-active-range-position":ee}=r,le=He(r,LYe),ce=m.useRef(null),se=xn(n,ce),fe=_n(V),we=X&&fe?`${fe}-helper-text`:void 0,Oe=U&&fe?`${fe}-label`:void 0,he=IU({disabled:r.disabled,required:r.required,readOnly:g?.readOnly}),me=m.useMemo(()=>B({},he,{isFieldValueEmpty:E,isFieldFocused:z??!1,hasFieldError:u??!1,inputSize:r.size??"medium",inputColor:l??"primary",isInputInFullWidth:G??!1,hasStartAdornment:!!(L??g?.startAdornment),hasEndAdornment:!!($??g?.endAdornment),inputHasLabel:!!U}),[he,E,z,u,r.size,l,G,L,$,g?.startAdornment,g?.endAdornment,U]),ye=jYe(s,me),ae=$Ye[f];return R.jsx(Kae.Provider,{value:me,children:R.jsxs(FYe,B({className:ge(ye.root,a),ref:se,focused:z,disabled:c,variant:f,error:u,color:l,fullWidth:G,required:h,ownerState:me},le,{children:[U!=null&&U!==""&&R.jsx(Pv,B({htmlFor:fe,id:Oe},K,{children:U})),R.jsx(ae,B({elements:C,areAllSectionsEmpty:E,onClick:I,onKeyDown:M,onKeyUp:O,onInput:N,onPaste:D,onFocus:o,onBlur:i,endAdornment:$,startAdornment:L,tabIndex:A,contentEditable:F,value:H,onChange:Q,id:fe,fullWidth:G,inputProps:y,inputRef:x,sectionListRef:S,label:U,name:Y,role:"group","aria-labelledby":Oe,"aria-describedby":we,"aria-live":we?"polite":void 0,"data-active-range-position":ee},g)),X&&R.jsx(yT,B({id:we},te,{children:X}))]}))})}),BYe=["enableAccessibleFieldDOMStructure"],zYe=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],VYe=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],HYe=["ownerState"],UYe=["ownerState"],GYe=["ownerState"],WYe=["ownerState"],qYe=["InputProps","inputProps"],KYe=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=He(e,BYe);if(t){const{InputProps:S,readOnly:C,onClear:E,clearable:I,clearButtonPosition:M,openPickerButtonPosition:O,openPickerAriaLabel:D}=n,N=He(n,zYe);return{clearable:I,onClear:E,clearButtonPosition:M,openPickerButtonPosition:O,openPickerAriaLabel:D,textFieldProps:B({},N,{InputProps:B({},S??{},{readOnly:C})})}}const{onPaste:r,onKeyDown:o,inputMode:i,readOnly:a,InputProps:s,inputProps:l,inputRef:c,onClear:u,clearable:f,clearButtonPosition:h,openPickerButtonPosition:g,openPickerAriaLabel:y}=n,x=He(n,VYe);return{clearable:f,onClear:u,clearButtonPosition:h,openPickerButtonPosition:g,openPickerAriaLabel:y,textFieldProps:B({},x,{InputProps:B({},s??{},{readOnly:a}),inputProps:B({},l??{},{inputMode:i,onPaste:r,onKeyDown:o,ref:c})})}},AU=m.createContext({slots:{},slotProps:{},inputRef:void 0});function DU(e){const{slots:t,slotProps:n,fieldResponse:r,defaultOpenPickerIcon:o}=e,i=La(),a=EU(),s=m.useContext(AU),{textFieldProps:l,onClear:c,clearable:u,openPickerAriaLabel:f,clearButtonPosition:h="end",openPickerButtonPosition:g="end"}=KYe(r),y=IU(l),x=ft(te=>{te.preventDefault(),a?.setOpen(U=>!U)}),S=a?a.triggerStatus:"hidden",C=u?h:null,E=S!=="hidden"?g:null,I=t?.textField??s.slots.textField??(r.enableAccessibleFieldDOMStructure===!1?On:Jae),M=t?.inputAdornment??s.slots.inputAdornment??gi,O=nr({elementType:M,externalSlotProps:pA(s.slotProps.inputAdornment,n?.inputAdornment),additionalProps:{position:"start"},ownerState:B({},y,{position:"start"})}),D=He(O,HYe),N=nr({elementType:M,externalSlotProps:n?.inputAdornment,additionalProps:{position:"end"},ownerState:B({},y,{position:"end"})}),$=He(N,UYe),L=s.slots.openPickerButton??An,A=nr({elementType:L,externalSlotProps:s.slotProps.openPickerButton,additionalProps:{disabled:S==="disabled",onClick:x,"aria-label":f,edge:l.variant!=="standard"?E:!1},ownerState:y}),F=He(A,GYe),z=s.slots.openPickerIcon??o,H=nr({elementType:z,externalSlotProps:s.slotProps.openPickerIcon,ownerState:y}),Q=t?.clearButton??s.slots.clearButton??An,G=nr({elementType:Q,externalSlotProps:pA(s.slotProps.clearButton,n?.clearButton),className:"clearButton",additionalProps:{title:i.fieldClearLabel,tabIndex:-1,onClick:c,disabled:r.disabled||r.readOnly,edge:l.variant!=="standard"&&C!==E?C:!1},ownerState:y}),V=He(G,WYe),Y=t?.clearIcon??s.slots.clearIcon??B9e,X=nr({elementType:Y,externalSlotProps:pA(s.slotProps.clearIcon,n?.clearIcon),additionalProps:{fontSize:"small"},ownerState:y});return l.ref=xn(l.ref,a?.rootRef),l.InputProps||(l.InputProps={}),a&&(l.InputProps.ref=a.triggerRef),!l.InputProps?.startAdornment&&(C==="start"||E==="start")&&(l.InputProps.startAdornment=R.jsxs(M,B({},D,{children:[E==="start"&&R.jsx(L,B({},F,{children:R.jsx(z,B({},H))})),C==="start"&&R.jsx(Q,B({},V,{children:R.jsx(Y,B({},X))}))]}))),!l.InputProps?.endAdornment&&(C==="end"||E==="end")&&(l.InputProps.endAdornment=R.jsxs(M,B({},$,{children:[C==="end"&&R.jsx(Q,B({},V,{children:R.jsx(Y,B({},X))})),E==="end"&&R.jsx(L,B({},F,{children:R.jsx(z,B({},H))}))]}))),C!=null&&(l.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(l.sx)?l.sx:[l.sx]]),R.jsx(I,B({},l))}function pA(e,t){return e?t?n=>B({},tf(t,n),tf(e,n)):e:t}function RU(e){const{ref:t,externalForwardedProps:n,slotProps:r}=e,o=m.useContext(AU),i=EU(),a=IU(n),{InputProps:s,inputProps:l}=n,c=He(n,qYe),u=nr({elementType:Jae,externalSlotProps:pA(o.slotProps.textField,r?.textField),externalForwardedProps:c,additionalProps:{ref:t,sx:i?.rootSx,label:i?.label,name:i?.name,className:i?.rootClassName,inputRef:o.inputRef},ownerState:a});return u.inputProps=B({},l,u.inputProps),u.InputProps=B({},s,u.InputProps),u}function Zae(e){const{slots:t={},slotProps:n={},inputRef:r,children:o}=e,i=m.useMemo(()=>({inputRef:r,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[r,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return R.jsx(AU.Provider,{value:i,children:o})}const YYe=["slots","slotProps"],ese=m.forwardRef(function(t,n){const r=Kn({props:t,name:"MuiDateField"}),{slots:o,slotProps:i}=r,a=He(r,YYe),s=RU({slotProps:i,ref:n,externalForwardedProps:a}),l=tYe(s);return R.jsx(DU,{slots:o,slotProps:i,fieldResponse:l,defaultOpenPickerIcon:fae})}),QYe=e=>{const t=YKe(e);return PU({manager:t,props:e})},XYe=["slots","slotProps","InputProps","inputProps"],tse=m.forwardRef(function(t,n){const r=Kn({props:t,name:"MuiTimeField"}),{slots:o,slotProps:i}=r,a=He(r,XYe),s=RU({slotProps:i,ref:n,externalForwardedProps:a}),l=QYe(s);return R.jsx(DU,{slots:o,slotProps:i,fieldResponse:l,defaultOpenPickerIcon:$9e})}),JYe=e=>{const t=JKe(e);return PU({manager:t,props:e})},ZYe=["slots","slotProps"],nse=m.forwardRef(function(t,n){const r=Kn({props:t,name:"MuiDateTimeField"}),{slots:o,slotProps:i}=r,a=He(r,ZYe),s=RU({slotProps:i,ref:n,externalForwardedProps:a}),l=JYe(s);return R.jsx(DU,{slots:o,slotProps:i,fieldResponse:l,defaultOpenPickerIcon:fae})}),rse=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a,timezone:s})=>{const l=Lv();return m.useCallback(c=>Dw({adapter:l,value:c,timezone:s,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a}})!==null,[l,e,t,n,r,o,i,a,s])},eQe=(e,t)=>(n,r)=>{switch(r.type){case"setVisibleDate":return B({},n,{slideDirection:r.direction,currentMonth:r.month,isMonthSwitchingAnimating:!t.isSameMonth(r.month,n.currentMonth)&&!e&&!r.skipAnimation,focusedDay:r.focusedDay});case"changeMonthTimezone":{const o=r.newTimezone;if(t.getTimezone(n.currentMonth)===o)return n;let i=t.setTimezone(n.currentMonth,o);return t.getMonth(i)!==t.getMonth(n.currentMonth)&&(i=t.setMonth(i,t.getMonth(n.currentMonth))),B({},n,{currentMonth:i})}case"finishMonthSwitchingAnimation":return B({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},tQe=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,maxDate:i,minDate:a,onMonthChange:s,onYearChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:f,getCurrentMonthFromVisibleDate:h}=e,g=Ln(),y=m.useRef(eQe(!!c,g)).current,x=m.useMemo(()=>ii.getInitialReferenceValue({value:t,utils:g,timezone:f,props:e,referenceDate:n,granularity:$u.day}),[n,f]),[S,C]=m.useReducer(y,{isMonthSwitchingAnimating:!1,focusedDay:x,currentMonth:g.startOfMonth(x),slideDirection:"left"}),E=rse({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:r,disablePast:o,timezone:f});m.useEffect(()=>{C({type:"changeMonthTimezone",newTimezone:g.getTimezone(x)})},[x,g]);const I=ft(({target:O,reason:D})=>{if(D==="cell-interaction"&&S.focusedDay!=null&&g.isSameDay(O,S.focusedDay))return;const N=D==="cell-interaction";let $,L;if(D==="cell-interaction")$=h(O,S.currentMonth),L=O;else if($=g.isSameMonth(O,S.currentMonth)?S.currentMonth:g.startOfMonth(O),L=O,E(L)){const z=g.startOfMonth(O),H=g.endOfMonth(O);L=FE({utils:g,date:L,minDate:g.isBefore(a,z)?z:a,maxDate:g.isAfter(i,H)?H:i,disablePast:o,disableFuture:r,isDateDisabled:E,timezone:f})}const A=!g.isSameMonth(S.currentMonth,$),F=!g.isSameYear(S.currentMonth,$);A&&s?.($),F&&l?.(g.startOfYear($)),C({type:"setVisibleDate",month:$,direction:g.isAfterDay($,S.currentMonth)?"left":"right",focusedDay:S.focusedDay!=null&&L!=null&&g.isSameDay(L,S.focusedDay)?S.focusedDay:L,skipAnimation:N})}),M=m.useCallback(()=>{C({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:x,calendarState:S,setVisibleDate:I,isDateDisabled:E,onMonthSwitchingAnimationEnd:M}},nQe=e=>st("MuiPickersFadeTransitionGroup",e);ct("MuiPickersFadeTransitionGroup",["root"]);const rQe=["children"],oQe=e=>$e({root:["root"]},nQe,e),iQe=ue(fT,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function ose(e){const t=Kn({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:r,transKey:o,classes:i}=t,{children:a}=t,s=He(t,rQe),l=oQe(i),c=Po();if(r)return a;const u=B({},s);return R.jsx(iQe,{className:ge(l.root,n),ownerState:u,children:R.jsx(Zy,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:c.transitions.duration.enteringScreen,enter:c.transitions.duration.enteringScreen,exit:0},children:a},o)})}const aQe=e=>st("MuiPickersSlideTransition",e),Sc=ct("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),sQe=["children","className","reduceAnimations","slideDirection","transKey","classes"],lQe=(e,t)=>{const{slideDirection:n}=t,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return $e(r,aQe,e)},cQe=ue(fT,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Sc["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Sc["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Sc.slideEnterActive}`]:t.slideEnterActive},{[`.${Sc.slideExit}`]:t.slideExit},{[`.${Sc["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Sc["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Sc["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Sc["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Sc.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Sc.slideExit}`]:{transform:"translate(0%)"},[`& .${Sc["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Sc["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function uQe(e){const t=Kn({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,slideDirection:i,transKey:a,classes:s}=t,l=He(t,sQe),{ownerState:c}=_o(),u=B({},c,{slideDirection:i}),f=lQe(s,u),h=Po();if(o)return R.jsx("div",{className:ge(f.root,r),children:n});const g={exit:f.exit,enterActive:f.enterActive,enter:f.enter,exitActive:f.exitActive};return R.jsx(cQe,{className:ge(f.root,r),childFactory:y=>m.cloneElement(y,{classNames:g}),role:"presentation",ownerState:u,children:R.jsx(Oz,B({mountOnEnter:!0,unmountOnExit:!0,timeout:h.transitions.duration.complex,classNames:g},l,{children:n}),a)})}const dQe=e=>st("MuiDayCalendar",e);ct("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const fQe=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],pQe=["ownerState"],hQe=e=>$e({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},dQe,e),ise=(LE+Yk*2)*6,mQe=ue("div",{name:"MuiDayCalendar",slot:"Root"})({}),gQe=ue("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),yQe=ue(wt,{name:"MuiDayCalendar",slot:"WeekDayLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),vQe=ue(wt,{name:"MuiDayCalendar",slot:"WeekNumberLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.disabled})),bQe=ue(wt,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>B({},e.typography.caption,{width:LE,height:LE,padding:0,margin:`0 ${Yk}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),xQe=ue("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:ise}),wQe=ue(uQe,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:ise}),SQe=ue("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),CQe=ue("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${Yk}px 0`,display:"flex",justifyContent:"center"});function EQe(e){let{parentProps:t,day:n,focusedDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:a,isViewFocused:s}=e,l=He(e,fQe);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:h,slots:g,slotProps:y,timezone:x}=t,S=Ln(),C=$v(x),E=r!=null&&S.isSameDay(n,r),I=s&&E,M=o.some(Q=>S.isSameDay(Q,n)),O=S.isSameDay(n,C),D=m.useMemo(()=>c||i(n),[c,i,n]),N=m.useMemo(()=>S.getMonth(n)!==a,[S,n,a]),$=Rae({day:n,selected:M,disabled:D,today:O,outsideCurrentMonth:N,disableMargin:void 0,disableHighlightToday:u,showDaysOutsideCurrentMonth:h}),L=g?.day??EKe,A=nr({elementType:L,externalSlotProps:y?.day,additionalProps:B({disableHighlightToday:u,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:f,"data-timestamp":S.toJsDate(n).valueOf()},l),ownerState:B({},$,{day:n,isDayDisabled:D,isDaySelected:M})}),F=He(A,pQe),z=m.useMemo(()=>{const Q=S.startOfMonth(S.setMonth(n,a));return h?S.isSameDay(n,S.startOfWeek(Q)):S.isSameDay(n,Q)},[a,n,h,S]),H=m.useMemo(()=>{const Q=S.endOfMonth(S.setMonth(n,a));return h?S.isSameDay(n,S.endOfWeek(Q)):S.isSameDay(n,Q)},[a,n,h,S]);return R.jsx(L,B({},F,{day:n,disabled:D,autoFocus:!N&&I,today:O,outsideCurrentMonth:N,isFirstVisibleCell:z,isLastVisibleCell:H,selected:M,tabIndex:E?0:-1,"aria-selected":M,"aria-current":O?"date":void 0}))}function TQe(e){const t=Kn({props:e,name:"MuiDayCalendar"}),n=Ln(),{onFocusedDayChange:r,className:o,classes:i,currentMonth:a,selectedDays:s,focusedDay:l,loading:c,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:f,readOnly:h,reduceAnimations:g,renderLoading:y=()=>R.jsx("span",{children:"..."}),slideDirection:x,TransitionProps:S,disablePast:C,disableFuture:E,minDate:I,maxDate:M,shouldDisableDate:O,shouldDisableMonth:D,shouldDisableYear:N,dayOfWeekFormatter:$=ye=>n.format(ye,"weekdayShort").charAt(0).toUpperCase(),hasFocus:L,onFocusedViewChange:A,gridLabelId:F,displayWeekNumber:z,fixedWeekNumber:H,timezone:Q}=t,G=$v(Q),V=hQe(i),Y=eo(),X=rse({shouldDisableDate:O,shouldDisableMonth:D,shouldDisableYear:N,minDate:I,maxDate:M,disablePast:C,disableFuture:E,timezone:Q}),te=La(),U=ft(ye=>{h||u(ye)}),K=ye=>{X(ye)||(r(ye),A?.(!0))},ee=ft((ye,ae)=>{switch(ye.key){case"ArrowUp":K(n.addDays(ae,-7)),ye.preventDefault();break;case"ArrowDown":K(n.addDays(ae,7)),ye.preventDefault();break;case"ArrowLeft":{const Se=n.addDays(ae,Y?1:-1),Ie=n.addMonths(ae,Y?1:-1),Re=FE({utils:n,date:Se,minDate:Y?Se:n.startOfMonth(Ie),maxDate:Y?n.endOfMonth(Ie):Se,isDateDisabled:X,timezone:Q});K(Re||Se),ye.preventDefault();break}case"ArrowRight":{const Se=n.addDays(ae,Y?-1:1),Ie=n.addMonths(ae,Y?-1:1),Re=FE({utils:n,date:Se,minDate:Y?n.startOfMonth(Ie):Se,maxDate:Y?Se:n.endOfMonth(Ie),isDateDisabled:X,timezone:Q});K(Re||Se),ye.preventDefault();break}case"Home":K(n.startOfWeek(ae)),ye.preventDefault();break;case"End":K(n.endOfWeek(ae)),ye.preventDefault();break;case"PageUp":K(n.addMonths(ae,1)),ye.preventDefault();break;case"PageDown":K(n.addMonths(ae,-1)),ye.preventDefault();break}}),le=ft((ye,ae)=>K(ae)),ce=ft((ye,ae)=>{l!=null&&n.isSameDay(l,ae)&&A?.(!1)}),se=n.getMonth(a),fe=n.getYear(a),we=m.useMemo(()=>s.filter(ye=>!!ye).map(ye=>n.startOfDay(ye)),[n,s]),Oe=`${fe}-${se}`,he=m.useMemo(()=>m.createRef(),[Oe]),me=m.useMemo(()=>{const ye=n.getWeekArray(a);let ae=n.addMonths(a,1);for(;H&&ye.length<H;){const Se=n.getWeekArray(ae),Ie=n.isSameDay(ye[ye.length-1][0],Se[0][0]);Se.slice(Ie?1:0).forEach(Re=>{ye.length<H&&ye.push(Re)}),ae=n.addMonths(ae,1)}return ye},[a,H,n]);return R.jsxs(mQe,{role:"grid","aria-labelledby":F,className:V.root,children:[R.jsxs(gQe,{role:"row",className:V.header,children:[z&&R.jsx(vQe,{variant:"caption",role:"columnheader","aria-label":te.calendarWeekNumberHeaderLabel,className:V.weekNumberLabel,children:te.calendarWeekNumberHeaderText}),y7e(n,G).map((ye,ae)=>R.jsx(yQe,{variant:"caption",role:"columnheader","aria-label":n.format(ye,"weekday"),className:V.weekDayLabel,children:$(ye)},ae.toString()))]}),c?R.jsx(xQe,{className:V.loadingContainer,children:y()}):R.jsx(wQe,B({transKey:Oe,onExited:f,reduceAnimations:g,slideDirection:x,className:ge(o,V.slideTransition)},S,{nodeRef:he,children:R.jsx(SQe,{ref:he,role:"rowgroup",className:V.monthContainer,children:me.map((ye,ae)=>R.jsxs(CQe,{role:"row",className:V.weekContainer,"aria-rowindex":ae+1,children:[z&&R.jsx(bQe,{className:V.weekNumber,role:"rowheader","aria-label":te.calendarWeekNumberAriaLabelText(n.getWeekNumber(ye[0])),children:te.calendarWeekNumberText(n.getWeekNumber(ye[0]))}),ye.map((Se,Ie)=>R.jsx(EQe,{parentProps:t,day:Se,selectedDays:we,isViewFocused:L,focusedDay:l,onKeyDown:ee,onFocus:le,onBlur:ce,onDaySelect:U,isDateDisabled:X,currentMonthNumber:se,"aria-colindex":Ie+1},Se.toString()))]},`week-${ye[0]}`))})}))]})}function ase(e){return st("MuiMonthCalendar",e)}const LM=ct("MuiMonthCalendar",["root","button","disabled","selected"]),PQe=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],IQe=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return $e(n,ase,e)},OQe=ue("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${LM.disabled}`]:t.disabled},{[`&.${LM.selected}`]:t.selected}]})(({theme:e})=>B({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${LM.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${LM.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),MQe=m.memo(function(t){const{autoFocus:n,classes:r,disabled:o,selected:i,value:a,onClick:s,onKeyDown:l,onFocus:c,onBlur:u,slots:f,slotProps:h}=t,g=He(t,PQe),y=m.useRef(null),{ownerState:x}=_o(),S=B({},x,{isMonthDisabled:o,isMonthSelected:i}),C=IQe(r,S);qn(()=>{n&&y.current?.focus()},[n]);const E=f?.monthButton??OQe,I=nr({elementType:E,externalSlotProps:h?.monthButton,externalForwardedProps:g,additionalProps:{disabled:o,ref:y,type:"button",role:"radio","aria-checked":i,onClick:M=>s(M,a),onKeyDown:M=>l(M,a),onFocus:M=>c(M,a),onBlur:M=>u(M,a)},ownerState:S,className:C.button});return R.jsx(E,B({},I))}),AQe=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],DQe=e=>$e({root:["root"]},ase,e);function RQe(e,t){const n=Kn({props:e,name:t}),r=sP(n);return B({},n,r,{monthsPerRow:n.monthsPerRow??3})}const kQe=ue("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>ll(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:jx,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),NQe=m.forwardRef(function(t,n){const r=RQe(t,"MuiMonthCalendar"),{autoFocus:o,className:i,classes:a,value:s,defaultValue:l,referenceDate:c,disabled:u,disableFuture:f,disablePast:h,maxDate:g,minDate:y,onChange:x,shouldDisableMonth:S,readOnly:C,onMonthFocus:E,hasFocus:I,onFocusedViewChange:M,monthsPerRow:O,timezone:D,gridLabelId:N,slots:$,slotProps:L}=r,A=He(r,AQe),{value:F,handleValueChange:z,timezone:H}=Wm({name:"MonthCalendar",timezone:D,value:s,defaultValue:l,referenceDate:c,onChange:x,valueManager:ii}),Q=$v(H),G=eo(),V=Ln(),{ownerState:Y}=_o(),X=m.useMemo(()=>ii.getInitialReferenceValue({value:F,utils:V,props:r,timezone:H,referenceDate:c,granularity:$u.month}),[]),te=DQe(a),U=m.useMemo(()=>V.getMonth(Q),[V,Q]),K=m.useMemo(()=>F!=null?V.getMonth(F):null,[F,V]),[ee,le]=m.useState(()=>K||V.getMonth(X)),[ce,se]=_s({name:"MonthCalendar",state:"hasFocus",controlled:I,default:o??!1}),fe=ft(Se=>{se(Se),M&&M(Se)}),we=m.useCallback(Se=>{const Ie=V.startOfMonth(h&&V.isAfter(Q,y)?Q:y),Re=V.startOfMonth(f&&V.isBefore(Q,g)?Q:g),ke=V.startOfMonth(Se);return V.isBefore(ke,Ie)||V.isAfter(ke,Re)?!0:S?S(ke):!1},[f,h,g,y,Q,S,V]),Oe=ft((Se,Ie)=>{if(C)return;const Re=V.setMonth(F??X,Ie);z(Re)}),he=ft(Se=>{we(V.setMonth(F??X,Se))||(le(Se),fe(!0),E&&E(Se))});m.useEffect(()=>{le(Se=>K!==null&&Se!==K?K:Se)},[K]);const me=ft((Se,Ie)=>{switch(Se.key){case"ArrowUp":he((12+Ie-3)%12),Se.preventDefault();break;case"ArrowDown":he((12+Ie+3)%12),Se.preventDefault();break;case"ArrowLeft":he((12+Ie+(G?1:-1))%12),Se.preventDefault();break;case"ArrowRight":he((12+Ie+(G?-1:1))%12),Se.preventDefault();break}}),ye=ft((Se,Ie)=>{he(Ie)}),ae=ft((Se,Ie)=>{ee===Ie&&fe(!1)});return R.jsx(kQe,B({ref:n,className:ge(te.root,i),ownerState:Y,role:"radiogroup","aria-labelledby":N,monthsPerRow:O},A,{children:gU(V,F??X).map(Se=>{const Ie=V.getMonth(Se),Re=V.format(Se,"monthShort"),ke=V.format(Se,"month"),Te=Ie===K,Ce=u||we(Se);return R.jsx(MQe,{selected:Te,value:Ie,onClick:Oe,onKeyDown:me,autoFocus:ce&&Ie===ee,disabled:Ce,tabIndex:Ie===ee&&!Ce?0:-1,onFocus:ye,onBlur:ae,"aria-current":U===Ie?"date":void 0,"aria-label":ke,slots:$,slotProps:L,classes:a,children:Re},Re)})}))});function sse(e){return st("MuiYearCalendar",e)}const $M=ct("MuiYearCalendar",["root","button","disabled","selected"]),_Qe=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],LQe=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return $e(n,sse,e)},$Qe=ue("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${$M.disabled}`]:t.disabled},{[`&.${$M.selected}`]:t.selected}]})(({theme:e})=>B({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Kt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${$M.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${$M.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),FQe=m.memo(function(t){const{autoFocus:n,classes:r,disabled:o,selected:i,value:a,onClick:s,onKeyDown:l,onFocus:c,onBlur:u,slots:f,slotProps:h}=t,g=He(t,_Qe),y=m.useRef(null),{ownerState:x}=_o(),S=B({},x,{isYearDisabled:o,isYearSelected:i}),C=LQe(r,S);qn(()=>{n&&y.current?.focus()},[n]);const E=f?.yearButton??$Qe,I=nr({elementType:E,externalSlotProps:h?.yearButton,externalForwardedProps:g,additionalProps:{disabled:o,ref:y,type:"button",role:"radio","aria-checked":i,onClick:M=>s(M,a),onKeyDown:M=>l(M,a),onFocus:M=>c(M,a),onBlur:M=>u(M,a)},ownerState:S,className:C.button});return R.jsx(E,B({},I))}),jQe=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],BQe=e=>$e({root:["root"]},sse,e);function zQe(e,t){const n=Kn({props:e,name:t}),r=sP(n);return B({},n,r,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const VQe=ue("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>ll(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:jx,maxHeight:t7e,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),HQe=ue("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),UQe=m.forwardRef(function(t,n){const r=zQe(t,"MuiYearCalendar"),{autoFocus:o,className:i,classes:a,value:s,defaultValue:l,referenceDate:c,disabled:u,disableFuture:f,disablePast:h,maxDate:g,minDate:y,onChange:x,readOnly:S,shouldDisableYear:C,onYearFocus:E,hasFocus:I,onFocusedViewChange:M,yearsOrder:O,yearsPerRow:D,timezone:N,gridLabelId:$,slots:L,slotProps:A}=r,F=He(r,jQe),{value:z,handleValueChange:H,timezone:Q}=Wm({name:"YearCalendar",timezone:N,value:s,defaultValue:l,referenceDate:c,onChange:x,valueManager:ii}),G=$v(Q),V=eo(),Y=Ln(),{ownerState:X}=_o(),te=m.useMemo(()=>ii.getInitialReferenceValue({value:z,utils:Y,props:r,timezone:Q,referenceDate:c,granularity:$u.year}),[]),U=BQe(a),K=m.useMemo(()=>Y.getYear(G),[Y,G]),ee=m.useMemo(()=>z!=null?Y.getYear(z):null,[z,Y]),[le,ce]=m.useState(()=>ee||Y.getYear(te)),[se,fe]=_s({name:"YearCalendar",state:"hasFocus",controlled:I,default:o??!1}),we=ft(Me=>{fe(Me),M&&M(Me)}),Oe=m.useCallback(Me=>{if(h&&Y.isBeforeYear(Me,G)||f&&Y.isAfterYear(Me,G)||y&&Y.isBeforeYear(Me,y)||g&&Y.isAfterYear(Me,g))return!0;if(!C)return!1;const _e=Y.startOfYear(Me);return C(_e)},[f,h,g,y,G,C,Y]),he=ft((Me,_e)=>{if(S)return;const pe=Y.setYear(z??te,_e);H(pe)}),me=ft(Me=>{Oe(Y.setYear(z??te,Me))||(ce(Me),we(!0),E?.(Me))});m.useEffect(()=>{ce(Me=>ee!==null&&Me!==ee?ee:Me)},[ee]);const ye=O!=="desc"?D*1:D*-1,ae=V&&O==="asc"||!V&&O==="desc"?-1:1,Se=ft((Me,_e)=>{switch(Me.key){case"ArrowUp":me(_e-ye),Me.preventDefault();break;case"ArrowDown":me(_e+ye),Me.preventDefault();break;case"ArrowLeft":me(_e-ae),Me.preventDefault();break;case"ArrowRight":me(_e+ae),Me.preventDefault();break}}),Ie=ft((Me,_e)=>{me(_e)}),Re=ft((Me,_e)=>{le===_e&&we(!1)}),ke=m.useRef(null),Te=xn(n,ke);m.useEffect(()=>{if(o||ke.current===null)return;const Me=ke.current.querySelector('[tabindex="0"]');if(!Me)return;const _e=Me.offsetHeight,pe=Me.offsetTop,je=ke.current.clientHeight,Ke=ke.current.scrollTop,et=pe+_e;_e>je||pe<Ke||(ke.current.scrollTop=et-je/2-_e/2)},[o]);const Ce=Y.getYearRange([y,g]);O==="desc"&&Ce.reverse();let Ze=D-Ce.length%D;return Ze===D&&(Ze=0),R.jsxs(VQe,B({ref:Te,className:ge(U.root,i),ownerState:X,role:"radiogroup","aria-labelledby":$,yearsPerRow:D},F,{children:[Ce.map(Me=>{const _e=Y.getYear(Me),pe=_e===ee,je=u||Oe(Me);return R.jsx(FQe,{selected:pe,value:_e,onClick:he,onKeyDown:Se,autoFocus:se&&_e===le,disabled:je,tabIndex:_e===le&&!je?0:-1,onFocus:Ie,onBlur:Re,"aria-current":K===_e?"date":void 0,slots:L,slotProps:A,classes:a,children:Y.format(Me,"year")},Y.format(Me,"year"))}),Array.from({length:Ze},(Me,_e)=>R.jsx(HQe,{},_e))]}))}),GQe=e=>st("MuiPickersCalendarHeader",e),WQe=ct("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),qQe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],KQe=["ownerState"],YQe=e=>$e({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},GQe,e),QQe=ue("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),XQe=ue("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>B({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),JQe=ue("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),ZQe=ue(An,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${WQe.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),eXe=ue(N9e,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),tXe=m.forwardRef(function(t,n){const r=La(),o=Ln(),i=Kn({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:c,disableFuture:u,disablePast:f,maxDate:h,minDate:g,onMonthChange:y,onViewChange:x,view:S,reduceAnimations:C,views:E,labelId:I,className:M,classes:O,timezone:D,format:N=`${o.formats.month} ${o.formats.year}`}=i,$=He(i,qQe),{ownerState:L}=_o(),A=YQe(O),F=a?.switchViewButton??ZQe,z=nr({elementType:F,externalSlotProps:s?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(S)},ownerState:L,className:A.switchViewButton}),H=a?.switchViewIcon??eXe,Q=nr({elementType:H,externalSlotProps:s?.switchViewIcon,ownerState:L,className:A.switchViewIcon}),G=He(Q,KQe),V=()=>y(o.addMonths(l,1)),Y=()=>y(o.addMonths(l,-1)),X=Z9e(l,{disableFuture:u,maxDate:h,timezone:D}),te=e7e(l,{disablePast:f,minDate:g,timezone:D}),U=()=>{if(!(E.length===1||!x||c))if(E.length===2)x(E.find(ee=>ee!==S)||E[0]);else{const ee=E.indexOf(S)!==0?0:1;x(E[ee])}};if(E.length===1&&E[0]==="year")return null;const K=o.formatByString(l,N);return R.jsxs(QQe,B({},$,{ownerState:L,className:ge(A.root,M),ref:n,children:[R.jsxs(XQe,{role:"presentation",onClick:U,ownerState:L,"aria-live":"polite",className:A.labelContainer,children:[R.jsx(ose,{reduceAnimations:C,transKey:K,children:R.jsx(JQe,{id:I,ownerState:L,className:A.label,children:K})}),E.length>1&&!c&&R.jsx(F,B({},z,{children:R.jsx(H,B({},G))}))]}),R.jsx(Zy,{in:S==="day",appear:!C,enter:!C,children:R.jsx(bae,{slots:a,slotProps:s,onGoToPrevious:Y,isPreviousDisabled:te,previousLabel:r.previousMonth,onGoToNext:V,isNextDisabled:X,nextLabel:r.nextMonth})})]}))}),nXe="@media (prefers-reduced-motion: reduce)",yx=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),E7=yx&&yx[1]?parseInt(yx[1],10):null,T7=yx&&yx[2]?parseInt(yx[2],10):null,rXe=E7&&E7<10||T7&&T7<13||!1;function lse(e){const t=Em(nXe,{defaultMatches:!1});return e??(t||rXe)}const oXe=e=>st("MuiDateCalendar",e);ct("MuiDateCalendar",["root","viewTransitionContainer"]);const iXe=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","classes","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],aXe=e=>$e({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},oXe,e);function sXe(e,t){const n=Kn({props:e,name:t}),r=lse(n.reduceAnimations),o=sP(n);return B({},n,o,{loading:n.loading??!1,openTo:n.openTo??"day",views:n.views??["year","day"],reduceAnimations:r,renderLoading:n.renderLoading??(()=>R.jsx("span",{children:"..."}))})}const lXe=ue(Qk,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:Bx}),cXe=ue(ose,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),uXe=m.forwardRef(function(t,n){const r=Ln(),{ownerState:o}=_o(),i=_n(),a=sXe(t,"MuiDateCalendar"),{autoFocus:s,onViewChange:l,value:c,defaultValue:u,referenceDate:f,disableFuture:h,disablePast:g,onChange:y,onMonthChange:x,reduceAnimations:S,shouldDisableDate:C,shouldDisableMonth:E,shouldDisableYear:I,view:M,views:O,openTo:D,className:N,classes:$,disabled:L,readOnly:A,minDate:F,maxDate:z,disableHighlightToday:H,focusedView:Q,onFocusedViewChange:G,showDaysOutsideCurrentMonth:V,fixedWeekNumber:Y,dayOfWeekFormatter:X,slots:te,slotProps:U,loading:K,renderLoading:ee,displayWeekNumber:le,yearsOrder:ce,yearsPerRow:se,monthsPerRow:fe,timezone:we}=a,Oe=He(a,iXe),{value:he,handleValueChange:me,timezone:ye}=Wm({name:"DateCalendar",timezone:we,value:c,defaultValue:u,referenceDate:f,onChange:y,valueManager:ii}),{view:ae,setView:Se,focusedView:Ie,setFocusedView:Re,goToNextView:ke,setValueAndGoToNextView:Te}=iP({view:M,views:O,openTo:D,onChange:me,onViewChange:l,autoFocus:s,focusedView:Q,onFocusedViewChange:G}),{referenceDate:Ce,calendarState:Ze,setVisibleDate:Me,isDateDisabled:_e,onMonthSwitchingAnimationEnd:pe}=tQe({value:he,referenceDate:f,reduceAnimations:S,onMonthChange:x,minDate:F,maxDate:z,shouldDisableDate:C,disablePast:g,disableFuture:h,timezone:ye,getCurrentMonthFromVisibleDate:(qt,zn)=>r.isSameMonth(qt,zn)?zn:r.startOfMonth(qt)}),je=L&&he||F,Ke=L&&he||z,et=`${i}-grid-label`,nt=Ie!==null,ot=te?.calendarHeader??tXe,it=nr({elementType:ot,externalSlotProps:U?.calendarHeader,additionalProps:{views:O,view:ae,currentMonth:Ze.currentMonth,onViewChange:Se,onMonthChange:qt=>Me({target:qt,reason:"header-navigation"}),minDate:je,maxDate:Ke,disabled:L,disablePast:g,disableFuture:h,reduceAnimations:S,timezone:ye,labelId:et},ownerState:o}),tt=ft(qt=>{const zn=r.startOfMonth(qt),lr=r.endOfMonth(qt),to=_e(qt)?FE({utils:r,date:qt,minDate:r.isBefore(F,zn)?zn:F,maxDate:r.isAfter(z,lr)?lr:z,disablePast:g,disableFuture:h,isDateDisabled:_e,timezone:ye}):qt;to?(Te(to,"finish"),Me({target:to,reason:"cell-interaction"})):(ke(),Me({target:zn,reason:"cell-interaction"}))}),vt=ft(qt=>{const zn=r.startOfYear(qt),lr=r.endOfYear(qt),to=_e(qt)?FE({utils:r,date:qt,minDate:r.isBefore(F,zn)?zn:F,maxDate:r.isAfter(z,lr)?lr:z,disablePast:g,disableFuture:h,isDateDisabled:_e,timezone:ye}):qt;to?(Te(to,"finish"),Me({target:to,reason:"cell-interaction"})):(ke(),Me({target:zn,reason:"cell-interaction"}))}),Je=ft(qt=>me(qt&&jD(r,qt,he??Ce),"finish",ae));m.useEffect(()=>{r.isValid(he)&&Me({target:he,reason:"controlled-value-change"})},[he]);const Mt=aXe($),Gt={disablePast:g,disableFuture:h,maxDate:z,minDate:F},ht={disableHighlightToday:H,readOnly:A,disabled:L,timezone:ye,gridLabelId:et,slots:te,slotProps:U},Qt=m.useRef(ae);m.useEffect(()=>{Qt.current!==ae&&(Ie===Qt.current&&Re(ae,!0),Qt.current=ae)},[Ie,Re,ae]);const en=m.useMemo(()=>[he],[he]);return R.jsxs(lXe,B({ref:n,className:ge(Mt.root,N),ownerState:o},Oe,{children:[R.jsx(ot,B({},it,{slots:te,slotProps:U})),R.jsx(cXe,{reduceAnimations:S,className:Mt.viewTransitionContainer,transKey:ae,ownerState:o,children:R.jsxs("div",{children:[ae==="year"&&R.jsx(UQe,B({},Gt,ht,{value:he,onChange:vt,shouldDisableYear:I,hasFocus:nt,onFocusedViewChange:qt=>Re("year",qt),yearsOrder:ce,yearsPerRow:se,referenceDate:Ce})),ae==="month"&&R.jsx(NQe,B({},Gt,ht,{hasFocus:nt,className:N,value:he,onChange:tt,shouldDisableMonth:E,onFocusedViewChange:qt=>Re("month",qt),monthsPerRow:fe,referenceDate:Ce})),ae==="day"&&R.jsx(TQe,B({},Ze,Gt,ht,{onMonthSwitchingAnimationEnd:pe,hasFocus:nt,onFocusedDayChange:qt=>Me({target:qt,reason:"cell-interaction"}),reduceAnimations:S,selectedDays:en,onSelectedDaysChange:Je,shouldDisableDate:C,shouldDisableMonth:E,shouldDisableYear:I,onFocusedViewChange:qt=>Re("day",qt),showDaysOutsideCurrentMonth:V,fixedWeekNumber:Y,dayOfWeekFormatter:X,displayWeekNumber:le,loading:K,renderLoading:ee}))]})})]}))});function cse(e){return st("MuiPickersToolbar",e)}const dXe=ct("MuiPickersToolbar",["root","title","content"]);function t2(){const{ownerState:e}=_o(),t=eo();return m.useMemo(()=>B({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const fXe=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],pXe=e=>$e({root:["root"],title:["title"],content:["content"]},cse,e),hXe=ue("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),mXe=ue("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>ll(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),kU=m.forwardRef(function(t,n){const r=Kn({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,classes:a,toolbarTitle:s,hidden:l,titleId:c,landscapeDirection:u}=r,f=He(r,fXe),h=t2(),g=pXe(a);return l?null:R.jsxs(hXe,B({ref:n,className:ge(g.root,i),ownerState:h},f,{children:[R.jsx(wt,{color:"text.secondary",variant:"overline",id:c,className:g.title,children:s}),R.jsx(mXe,{className:g.content,ownerState:h,landscapeDirection:u,children:o})]}))});function gXe(e){return st("MuiDatePickerToolbar",e)}ct("MuiDatePickerToolbar",["root","title"]);const yXe=["toolbarFormat","toolbarPlaceholder","className","classes"],vXe=e=>$e({root:["root"],title:["title"]},gXe,e),bXe=ue(kU,{name:"MuiDatePickerToolbar",slot:"Root"})({}),xXe=ue(wt,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),wXe=m.forwardRef(function(t,n){const r=Kn({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:o,toolbarPlaceholder:i="––",className:a,classes:s}=r,l=He(r,yXe),c=Ln(),{value:u,views:f,orientation:h}=yf(),g=La(),y=t2(),x=vXe(s),S=m.useMemo(()=>{if(!c.isValid(u))return i;const C=jE(c,{format:o,views:f},!0);return c.formatByString(u,C)},[u,o,i,c,f]);return R.jsx(bXe,B({ref:n,toolbarTitle:g.datePickerToolbarTitle,className:ge(x.root,a)},l,{children:R.jsx(xXe,{variant:"h4",align:h==="landscape"?"left":"center",ownerState:y,className:x.title,children:S})}))});function use(e,t){const n=Kn({props:e,name:t}),r=sP(n),o=m.useMemo(()=>n.localeText?.toolbarTitle==null?n.localeText:B({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle}),[n.localeText]);return B({},n,r,{localeText:o},mU({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:B({toolbar:wXe},n.slots)})}function SXe(e){return st("MuiPickerPopper",e)}ct("MuiPickerPopper",["root","paper"]);const CXe=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],EXe=e=>$e({root:["root"],paper:["paper"]},SXe,e),TXe=ue(sw,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),PXe=ue(ai,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function IXe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function OXe(e,t){const n=m.useRef(!1),r=m.useRef(!1),o=m.useRef(null),i=m.useRef(!1);m.useEffect(()=>{if(!e)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[e]);const a=ft(l=>{if(!i.current)return;const c=r.current;r.current=!1;const u=yo(o.current);if(!o.current||"clientX"in l&&IXe(l,u))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!u.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!c&&t(l)}),s=()=>{r.current=!0};return m.useEffect(()=>{if(e){const l=yo(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",c)}}},[e,a]),m.useEffect(()=>{if(e){const l=yo(o.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[o,s,s]}const MXe=m.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:r,children:o,paperSlotProps:i,paperClasses:a,onPaperClick:s,onPaperTouchStart:l}=e,c=He(e,CXe),u=nr({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:r});return R.jsx(n,B({},c,u,{onClick:f=>{s(f),u.onClick?.(f)},onTouchStart:f=>{l(f),u.onTouchStart?.(f)},ownerState:r,children:o}))});function AXe(e){const t=Kn({props:e,name:"MuiPickerPopper"}),{children:n,placement:r="bottom-start",slots:o,slotProps:i,classes:a}=t,{open:s,popupRef:l,reduceAnimations:c}=yf(),{dismissViews:u,getCurrentViewMode:f,onPopperExited:h,triggerElement:g,viewContainerRole:y}=_o();m.useEffect(()=>{function Y(X){s&&X.key==="Escape"&&u()}return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[u,s]);const x=m.useRef(null);m.useEffect(()=>{y==="tooltip"||f()==="field"||(s?x.current=Ra(document):x.current&&x.current instanceof HTMLElement&&setTimeout(()=>{x.current instanceof HTMLElement&&x.current.focus()}))},[s,y,f]);const S=EXe(a),{ownerState:C,rootRefObject:E}=_o(),I=B({},C,{popperPlacement:r}),M=ft(()=>{y==="tooltip"?J7e(()=>{E.current?.contains(Ra(document))||l.current?.contains(Ra(document))||u()}):u()}),[O,D,N]=OXe(s,M),$=m.useRef(null),L=xn($,l),A=xn(L,O),F=Y=>{Y.key==="Escape"&&(Y.stopPropagation(),u())},z=o?.desktopTransition??c?Zy:ev,H=o?.desktopTrapFocus??Vz,Q=o?.desktopPaper??PXe,G=o?.popper??TXe,V=nr({elementType:G,externalSlotProps:i?.popper,additionalProps:{transition:!0,role:y??void 0,open:s,placement:r,anchorEl:g,onKeyDown:F},className:S.root,ownerState:I});return R.jsx(G,B({},V,{children:({TransitionProps:Y})=>R.jsx(H,B({open:s,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:y==="tooltip",isEnabled:()=>!0},i?.desktopTrapFocus,{children:R.jsx(z,B({},Y,i?.desktopTransition,{onExited:X=>{h?.(),i?.desktopTransition?.onExited?.(X),Y?.onExited?.()},children:R.jsx(MXe,{PaperComponent:Q,ownerState:I,ref:A,onPaperClick:D,onPaperTouchStart:N,paperClasses:S.paper,paperSlotProps:i?.desktopPaper,children:n})}))}))}))}function P7(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}function DXe(e,t){const[n,r]=m.useState(P7);return qn(()=>{const o=()=>{r(P7())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),U0(e,["hours","minutes","seconds"])?"portrait":t??n}function RXe(e){const{props:t,valueManager:n,validator:r}=e,{value:o,defaultValue:i,onChange:a,referenceDate:s,timezone:l,onAccept:c,closeOnSelect:u,open:f,onOpen:h,onClose:g}=t,{current:y}=m.useRef(i),{current:x}=m.useRef(o!==void 0),{current:S}=m.useRef(f!==void 0),C=Ln(),{timezone:E,value:I,handleValueChange:M}=Wm({name:"a picker component",timezone:l,value:o,defaultValue:y,referenceDate:s,onChange:a,valueManager:n}),[O,D]=m.useState(()=>({open:!1,lastExternalValue:I,clockShallowValue:void 0,lastCommittedValue:I,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:N}=Fae({props:t,validator:r,timezone:E,value:I,onError:t.onError}),$=ft(z=>{const H=typeof z=="function"?z(O.open):z;S||D(Q=>B({},Q,{open:H})),H&&h&&h(),H||g?.()}),L=ft((z,H)=>{const{changeImportance:Q="accept",skipPublicationIfPristine:G=!1,validationError:V,shortcut:Y,shouldClose:X=Q==="accept"}=H??{};let te,U;!G&&!x&&!O.hasBeenModifiedSinceMount?(te=!0,U=Q==="accept"):(te=!n.areValuesEqual(C,z,I),U=Q==="accept"&&!n.areValuesEqual(C,z,O.lastCommittedValue)),D(le=>B({},le,{clockShallowValue:te?void 0:le.clockShallowValue,lastCommittedValue:U?I:le.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let K=null;const ee=()=>(K||(K={validationError:V??N(z)},Y&&(K.shortcut=Y)),K);te&&M(z,ee()),U&&c&&c(z,ee()),X&&$(!1)});I!==O.lastExternalValue&&D(z=>B({},z,{lastExternalValue:I,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const A=ft((z,H="partial")=>{if(H==="shallow"){D(Q=>B({},Q,{clockShallowValue:z,hasBeenModifiedSinceMount:!0}));return}L(z,{changeImportance:H==="finish"&&u?"accept":"set"})});m.useEffect(()=>{if(S){if(f===void 0)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");D(z=>B({},z,{open:f}))}},[S,f]);const F=m.useMemo(()=>n.cleanValue(C,O.clockShallowValue===void 0?I:O.clockShallowValue),[C,n,O.clockShallowValue,I]);return{timezone:E,state:O,setValue:L,setValueFromView:A,setOpen:$,value:I,viewValue:F}}const kXe=["className","sx"],dse=({ref:e,props:t,valueManager:n,valueType:r,variant:o,validator:i,onPopperExited:a,autoFocusView:s,rendererInterceptor:l,localeText:c,viewContainerRole:u,getStepNavigation:f})=>{const{views:h,view:g,openTo:y,onViewChange:x,viewRenderers:S,reduceAnimations:C,orientation:E,disableOpenPicker:I,closeOnSelect:M,disabled:O,readOnly:D,formatDensity:N,enableAccessibleFieldDOMStructure:$,selectedSections:L,onSelectedSectionsChange:A,format:F,label:z,autoFocus:H,name:Q}=t,{className:G,sx:V}=t,Y=He(t,kXe),X=_n(),te=Ln(),U=Lv(),K=lse(C),ee=DXe(h,E),{current:le}=m.useRef(y??null),[ce,se]=m.useState(null),fe=m.useRef(null),we=m.useRef(null),Oe=m.useRef(null),he=xn(e,Oe),{timezone:me,state:ye,setOpen:ae,setValue:Se,setValueFromView:Ie,value:Re,viewValue:ke}=RXe({props:t,valueManager:n,validator:i}),{view:Te,setView:Ce,defaultView:Ze,focusedView:Me,setFocusedView:_e,setValueAndGoToNextView:pe,goToNextStep:je,hasNextStep:Ke,hasSeveralSteps:et}=iP({view:g,views:h,openTo:y,onChange:Ie,onViewChange:x,autoFocus:s,getStepNavigation:f}),nt=ft(()=>Se(n.emptyValue)),ot=ft(()=>Se(n.getTodayValue(te,me,r))),it=ft(()=>Se(Re)),tt=ft(()=>Se(ye.lastCommittedValue,{skipPublicationIfPristine:!0})),vt=ft(()=>{Se(Re,{skipPublicationIfPristine:!0})}),{hasUIView:Je,viewModeLookup:Mt,timeViewsCount:Gt}=m.useMemo(()=>h.reduce((Vn,$t)=>{const Yt=S[$t]==null?"field":"UI";return Vn.viewModeLookup[$t]=Yt,Yt==="UI"&&(Vn.hasUIView=!0,pv($t)&&(Vn.timeViewsCount+=1)),Vn},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[S,h]),ht=Mt[Te],Qt=ft(()=>ht),[en,qt]=m.useState(ht==="UI"?Te:null);en!==Te&&Mt[Te]==="UI"&&qt(Te),qn(()=>{ht==="field"&&ye.open&&(ae(!1),setTimeout(()=>{we?.current?.setSelectedSections(Te),we?.current?.focusField(Te)}))},[Te]),qn(()=>{if(!ye.open)return;let Vn=Te;ht==="field"&&en!=null&&(Vn=en),Vn!==Ze&&Mt[Vn]==="UI"&&Mt[Ze]==="UI"&&(Vn=Ze),Vn!==Te&&Ce(Vn),_e(Vn,!0)},[ye.open]);const zn=m.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(te,Re,n.emptyValue),isPickerOpen:ye.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:ee,pickerVariant:o}),[te,n,Re,ye.open,ee,o,t.disabled,t.readOnly]),lr=m.useMemo(()=>I||!Je?"hidden":O||D?"disabled":"enabled",[I,Je,O,D]),to=ft(je),xr=m.useMemo(()=>M&&!et?[]:["cancel","nextOrAccept"],[M,et]),Yn=m.useMemo(()=>({setValue:Se,setOpen:ae,clearValue:nt,setValueToToday:ot,acceptValueChanges:it,cancelValueChanges:tt,setView:Ce,goToNextStep:to}),[Se,ae,nt,ot,it,tt,Ce,to]),Io=m.useMemo(()=>B({},Yn,{value:Re,timezone:me,open:ye.open,views:h,view:en,initialView:le,disabled:O??!1,readOnly:D??!1,autoFocus:H??!1,variant:o,orientation:ee,popupRef:fe,reduceAnimations:K,triggerRef:se,triggerStatus:lr,hasNextStep:Ke,fieldFormat:F??"",name:Q,label:z,rootSx:V,rootRef:he,rootClassName:G}),[Yn,Re,he,o,ee,K,O,D,F,G,Q,z,V,lr,Ke,me,ye.open,en,h,le,H]),Ci=m.useMemo(()=>({dismissViews:vt,ownerState:zn,hasUIView:Je,getCurrentViewMode:Qt,rootRefObject:Oe,labelId:X,triggerElement:ce,viewContainerRole:u,defaultActionBarActions:xr,onPopperExited:a}),[vt,zn,Je,Qt,X,ce,u,xr,a]),si=m.useMemo(()=>({formatDensity:N,enableAccessibleFieldDOMStructure:$,selectedSections:L,onSelectedSectionsChange:A,fieldRef:we}),[N,$,L,A,we]);return{providerProps:{localeText:c,contextValue:Io,privateContextValue:Ci,actionsContextValue:Yn,fieldPrivateContextValue:si,isValidContextValue:Vn=>{const $t=i({adapter:U,value:Vn,timezone:me,props:t});return!n.hasError($t)}},renderCurrentView:()=>{if(en==null)return null;const Vn=S[en];if(Vn==null)return null;const $t=B({},Y,{views:h,timezone:me,value:ke,onChange:pe,view:en,onViewChange:Ce,showViewSwitcher:Gt>1,timeViewsCount:Gt},u==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:Me,onFocusedViewChange:_e});return l?R.jsx(l,{viewRenderers:S,popperView:en,rendererProps:$t}):Vn($t)},ownerState:zn}};function fse(e){return st("MuiPickersLayout",e)}const Nu=ct("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),NXe=["actions"],_Xe=ue(mE,{name:"MuiPickersLayout",slot:"ActionBar"})({});function LXe(e){const{actions:t}=e,n=He(e,NXe),r=La(),{clearValue:o,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:s,goToNextStep:l,hasNextStep:c}=yf();if(t==null||t.length===0)return null;const u=t?.map(f=>{switch(f){case"clear":return R.jsx(St,{onClick:o,children:r.clearButtonLabel},f);case"cancel":return R.jsx(St,{onClick:s,children:r.cancelButtonLabel},f);case"accept":return R.jsx(St,{onClick:a,children:r.okButtonLabel},f);case"today":return R.jsx(St,{onClick:i,children:r.todayButtonLabel},f);case"next":return R.jsx(St,{onClick:l,children:r.nextStepButtonLabel},f);case"nextOrAccept":return c?R.jsx(St,{onClick:l,children:r.nextStepButtonLabel},f):R.jsx(St,{onClick:a,children:r.okButtonLabel},f);default:return null}});return R.jsx(_Xe,B({},n,{children:u}))}const $Xe=m.memo(LXe),FXe=["items","changeImportance"],jXe=["getValue"],BXe=ue(ca,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function zXe(e){const{items:t,changeImportance:n="accept"}=e,r=He(e,FXe),{setValue:o}=kKe(),i=V9e();if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,c=He(s,jXe);const u=l({isValid:i});return B({},c,{label:c.label,onClick:()=>{o(u,{changeImportance:n,shortcut:c})},disabled:!i(u)})});return R.jsx(BXe,B({dense:!0,sx:[{maxHeight:Bx,maxWidth:200,overflow:"auto"},...Array.isArray(r.sx)?r.sx:[r.sx]]},r,{children:a.map(s=>R.jsx(vi,{children:R.jsx(Yc,B({},s))},s.id??s.label))}))}const VXe=["ownerState"];function HXe(e){return e.view!==null}const UXe=(e,t)=>{const{pickerOrientation:n}=t;return $e({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},fse,e)},pse=e=>{const{ownerState:t,defaultActionBarActions:n}=_o(),{view:r}=yf(),o=eo(),{children:i,slots:a,slotProps:s,classes:l}=e,c=m.useMemo(()=>B({},t,{layoutDirection:o?"rtl":"ltr"}),[t,o]),u=UXe(l,c),f=a?.actionBar??$Xe,h=nr({elementType:f,externalSlotProps:s?.actionBar,additionalProps:{actions:n},className:u.actionBar,ownerState:c}),g=He(h,VXe),y=R.jsx(f,B({},g)),x=a?.toolbar,S=nr({elementType:x,externalSlotProps:s?.toolbar,className:u.toolbar,ownerState:c}),C=HXe(S)&&x?R.jsx(x,B({},S)):null,E=i,I=a?.tabs,M=r&&I?R.jsx(I,B({className:u.tabs},s?.tabs)):null,O=a?.shortcuts??zXe,D=nr({elementType:O,externalSlotProps:s?.shortcuts,className:u.shortcuts,ownerState:c}),N=r&&O?R.jsx(O,B({},D)):null;return{toolbar:C,content:E,tabs:M,actionBar:y,shortcuts:N,ownerState:c}},GXe=(e,t)=>{const{pickerOrientation:n}=t;return $e({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},fse,e)},hse=ue("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Nu.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape"},style:{[`& .${Nu.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Nu.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{pickerOrientation:"landscape",layoutDirection:"rtl"},style:{[`& .${Nu.toolbar}`]:{gridColumn:3}}},{props:{pickerOrientation:"portrait"},style:{[`& .${Nu.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Nu.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{pickerOrientation:"portrait",layoutDirection:"rtl"},style:{[`& .${Nu.shortcuts}`]:{gridColumn:3}}}]}),mse=ue("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),gse=m.forwardRef(function(t,n){const r=Kn({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:a,actionBar:s,shortcuts:l,ownerState:c}=pse(r),{orientation:u,variant:f}=yf(),{sx:h,className:g,classes:y}=r,x=GXe(y,c);return R.jsxs(hse,{ref:n,sx:h,className:ge(x.root,g),ownerState:c,children:[u==="landscape"?l:o,u==="landscape"?o:l,R.jsx(mse,{className:x.contentWrapper,ownerState:c,children:f==="desktop"?R.jsxs(m.Fragment,{children:[i,a]}):R.jsxs(m.Fragment,{children:[a,i]})}),s]})});function yse(e){const{steps:t}=e;return J9e({steps:t,isViewMatchingStep:(n,r)=>r.views==null||r.views.includes(n),onStepChange:({step:n,defaultView:r,setView:o,view:i,views:a})=>{const s=n.views==null?r:n.views.find(l=>a.includes(l));s!==i&&o(s)}})}const WXe=["props","steps"],qXe=["ownerState"],NU=e=>{let{props:t,steps:n}=e,r=He(e,WXe);const{slots:o,slotProps:i,label:a,inputRef:s,localeText:l}=t,c=yse({steps:n}),{providerProps:u,renderCurrentView:f,ownerState:h}=dse(B({},r,{props:t,localeText:l,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:c})),g=u.privateContextValue.labelId,y=i?.toolbar?.hidden??!1,x=o.field,S=nr({elementType:x,externalSlotProps:i?.field,additionalProps:B({},y&&{id:g}),ownerState:h}),C=He(S,qXe),E=o.layout??gse;let I=g;y&&(a?I=`${g}-label`:I=void 0);const M=B({},i,{toolbar:B({},i?.toolbar,{titleId:g}),popper:B({"aria-labelledby":I},i?.popper)});return{renderPicker:()=>R.jsx(vae,B({},u,{children:R.jsxs(Zae,{slots:o,slotProps:M,inputRef:s,children:[R.jsx(x,B({},C)),R.jsx(AXe,{slots:o,slotProps:M,children:R.jsx(E,B({},M?.layout,{slots:o,slotProps:M,children:f()}))})]})}))}},Hc=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minDate:g,maxDate:y,shouldDisableDate:x,shouldDisableMonth:S,shouldDisableYear:C,reduceAnimations:E,onMonthChange:I,monthsPerRow:M,onYearChange:O,yearsOrder:D,yearsPerRow:N,slots:$,slotProps:L,loading:A,renderLoading:F,disableHighlightToday:z,readOnly:H,disabled:Q,showDaysOutsideCurrentMonth:G,dayOfWeekFormatter:V,sx:Y,autoFocus:X,fixedWeekNumber:te,displayWeekNumber:U,timezone:K})=>R.jsx(uXe,{view:e,onViewChange:t,views:n.filter(Vx),focusedView:r&&Vx(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minDate:g,maxDate:y,shouldDisableDate:x,shouldDisableMonth:S,shouldDisableYear:C,reduceAnimations:E,onMonthChange:I,monthsPerRow:M,onYearChange:O,yearsOrder:D,yearsPerRow:N,slots:$,slotProps:L,loading:A,renderLoading:F,disableHighlightToday:z,readOnly:H,disabled:Q,showDaysOutsideCurrentMonth:G,dayOfWeekFormatter:V,sx:Y,autoFocus:X,fixedWeekNumber:te,displayWeekNumber:U,timezone:K}),vse=m.forwardRef(function(t,n){const r=Ln(),o=use(t,"MuiDesktopDatePicker"),i=B({day:Hc,month:Hc,year:Hc},o.viewRenderers),a=B({},o,{closeOnSelect:o.closeOnSelect??!0,viewRenderers:i,format:jE(r,o,!1),yearsPerRow:o.yearsPerRow??4,slots:B({field:ese},o.slots),slotProps:B({},o.slotProps,{field:l=>B({},tf(o.slotProps?.field,l),Aw(o)),toolbar:B({hidden:!0},o.slotProps?.toolbar)})}),{renderPicker:s}=NU({ref:n,props:a,valueManager:ii,valueType:"date",validator:Dw,steps:null});return s()});vse.propTypes={autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,dayOfWeekFormatter:W.func,defaultValue:W.object,disabled:W.bool,disableFuture:W.bool,disableHighlightToday:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,displayWeekNumber:W.bool,enableAccessibleFieldDOMStructure:W.any,fixedWeekNumber:W.number,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:rw,label:W.node,loading:W.bool,localeText:W.object,maxDate:W.object,minDate:W.object,monthsPerRow:W.oneOf([3,4]),name:W.string,onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onMonthChange:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,onYearChange:W.func,open:W.bool,openTo:W.oneOf(["day","month","year"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.object,renderLoading:W.func,selectedSections:W.oneOfType([W.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number]),shouldDisableDate:W.func,shouldDisableMonth:W.func,shouldDisableYear:W.func,showDaysOutsideCurrentMonth:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),timezone:W.string,value:W.object,view:W.oneOf(["day","month","year"]),viewRenderers:W.shape({day:W.func,month:W.func,year:W.func}),views:W.arrayOf(W.oneOf(["day","month","year"]).isRequired),yearsOrder:W.oneOf(["asc","desc"]),yearsPerRow:W.oneOf([3,4])};const KXe=ue(hE)({[`& .${z1.container}`]:{outline:0},[`& .${z1.paper}`]:{outline:0,minWidth:jx}}),YXe=ue(gE)({"&:first-of-type":{padding:0}});function QXe(e){const{children:t,slots:n,slotProps:r}=e,{open:o}=yf(),{dismissViews:i}=_o(),a=n?.dialog??KXe,s=n?.mobileTransition??Zy;return R.jsx(a,B({open:o,onClose:i},r?.dialog,{TransitionComponent:s,TransitionProps:r?.mobileTransition,PaperComponent:n?.mobilePaper,PaperProps:r?.mobilePaper,children:R.jsx(YXe,{children:t})}))}const XXe=["props","steps"],JXe=["ownerState"],_U=e=>{let{props:t,steps:n}=e,r=He(e,XXe);const{slots:o,slotProps:i,label:a,inputRef:s,localeText:l}=t,c=yse({steps:n}),{providerProps:u,renderCurrentView:f,ownerState:h}=dse(B({},r,{props:t,localeText:l,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:c})),g=u.privateContextValue.labelId,y=i?.toolbar?.hidden??!1,x=o.field,S=nr({elementType:x,externalSlotProps:i?.field,additionalProps:B({},y&&{id:g}),ownerState:h}),C=He(S,JXe),E=o.layout??gse;let I=g;y&&(a?I=`${g}-label`:I=void 0);const M=B({},i,{toolbar:B({},i?.toolbar,{titleId:g}),mobilePaper:B({"aria-labelledby":I},i?.mobilePaper)});return{renderPicker:()=>R.jsx(vae,B({},u,{children:R.jsxs(Zae,{slots:o,slotProps:M,inputRef:s,children:[R.jsx(x,B({},C)),R.jsx(QXe,{slots:o,slotProps:M,children:R.jsx(E,B({},M?.layout,{slots:o,slotProps:M,children:f()}))})]})}))}},bse=m.forwardRef(function(t,n){const r=Ln(),o=use(t,"MuiMobileDatePicker"),i=B({day:Hc,month:Hc,year:Hc},o.viewRenderers),a=B({},o,{viewRenderers:i,format:jE(r,o,!1),slots:B({field:ese},o.slots),slotProps:B({},o.slotProps,{field:l=>B({},tf(o.slotProps?.field,l),Aw(o)),toolbar:B({hidden:!1},o.slotProps?.toolbar)})}),{renderPicker:s}=_U({ref:n,props:a,valueManager:ii,valueType:"date",validator:Dw,steps:null});return s()});bse.propTypes={autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,dayOfWeekFormatter:W.func,defaultValue:W.object,disabled:W.bool,disableFuture:W.bool,disableHighlightToday:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,displayWeekNumber:W.bool,enableAccessibleFieldDOMStructure:W.any,fixedWeekNumber:W.number,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:rw,label:W.node,loading:W.bool,localeText:W.object,maxDate:W.object,minDate:W.object,monthsPerRow:W.oneOf([3,4]),name:W.string,onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onMonthChange:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,onYearChange:W.func,open:W.bool,openTo:W.oneOf(["day","month","year"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.object,renderLoading:W.func,selectedSections:W.oneOfType([W.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number]),shouldDisableDate:W.func,shouldDisableMonth:W.func,shouldDisableYear:W.func,showDaysOutsideCurrentMonth:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),timezone:W.string,value:W.object,view:W.oneOf(["day","month","year"]),viewRenderers:W.shape({day:W.func,month:W.func,year:W.func}),views:W.arrayOf(W.oneOf(["day","month","year"]).isRequired),yearsOrder:W.oneOf(["asc","desc"]),yearsPerRow:W.oneOf([3,4])};const ZXe=["desktopModeMediaQuery"],Hx=m.forwardRef(function(t,n){const r=Kn({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=CU}=r,i=He(r,ZXe);return Em(o,{defaultMatches:!0})?R.jsx(vse,B({ref:n},i)):R.jsx(bse,B({ref:n},i))});function eJe(e){return st("MuiPickersToolbarText",e)}const tJe=ct("MuiPickersToolbarText",["root"]),nJe=["className","classes","selected","value"],rJe=e=>$e({root:["root"]},eJe,e),oJe=ue(wt,{name:"MuiPickersToolbarText",slot:"Root"})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,"&[data-selected]":{color:(e.vars||e).palette.text.primary}})),LU=m.forwardRef(function(t,n){const r=Kn({props:t,name:"MuiPickersToolbarText"}),{className:o,classes:i,selected:a,value:s}=r,l=He(r,nJe),c=rJe(i);return R.jsx(oJe,B({ref:n,className:ge(c.root,o),component:"span",ownerState:r},a&&{"data-selected":!0},l,{children:s}))}),iJe=["align","className","classes","selected","typographyClassName","value","variant","width"],aJe=e=>$e({root:["root"]},cse,e),sJe=ue(St,{name:"MuiPickersToolbarButton",slot:"Root"})({padding:0,minWidth:16,textTransform:"none"}),Rl=m.forwardRef(function(t,n){const r=Kn({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:i,classes:a,selected:s,typographyClassName:l,value:c,variant:u,width:f}=r,h=He(r,iJe),g=aJe(a);return R.jsx(sJe,B({variant:"text",ref:n,className:ge(g.root,i),ownerState:r},f?{sx:{width:f}}:{},h,{children:R.jsx(LU,{align:o,className:l,variant:u,value:c,selected:s})}))});function lJe(e){return st("MuiTimePickerToolbar",e)}const Q1=ct("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),cJe=["ampm","ampmInClock","className","classes"],uJe=(e,t)=>{const{pickerOrientation:n,toolbarDirection:r}=t;return $e({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n==="landscape"&&"hourMinuteLabelLandscape",r==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},lJe,e)},dJe=ue(kU,{name:"MuiTimePickerToolbar",slot:"Root"})({}),fJe=ue(LU,{name:"MuiTimePickerToolbar",slot:"Separator"})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),pJe=ue("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Q1.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Q1.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{pickerOrientation:"landscape"},style:{marginTop:"auto"}}]}),hJe=ue("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Q1.ampmLabel}`]:t.ampmLabel},{[`&.${Q1.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${Q1.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function mJe(e){const t=Kn({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,className:o,classes:i}=t,a=He(t,cJe),s=Ln(),l=La(),c=t2(),u=uJe(i,c),{value:f,setValue:h,disabled:g,readOnly:y,view:x,setView:S,views:C}=yf(),E=!!(n&&!r&&C.includes("hours")),{meridiemMode:I,handleMeridiemChange:M}=Kk(f,n,N=>h(N,{changeImportance:"set"})),O=N=>s.isValid(f)?s.format(f,N):"--",D=R.jsx(fJe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:u.separator});return R.jsxs(dJe,B({landscapeDirection:"row",toolbarTitle:l.timePickerToolbarTitle,ownerState:c,className:ge(u.root,o)},a,{children:[R.jsxs(pJe,{className:u.hourMinuteLabel,ownerState:c,children:[U0(C,"hours")&&R.jsx(Rl,{tabIndex:-1,variant:"h3",onClick:()=>S("hours"),selected:x==="hours",value:O(n?"hours12h":"hours24h")}),U0(C,["hours","minutes"])&&D,U0(C,"minutes")&&R.jsx(Rl,{tabIndex:-1,variant:"h3",onClick:()=>S("minutes"),selected:x==="minutes",value:O("minutes")}),U0(C,["minutes","seconds"])&&D,U0(C,"seconds")&&R.jsx(Rl,{variant:"h3",onClick:()=>S("seconds"),selected:x==="seconds",value:O("seconds")})]}),E&&R.jsxs(hJe,{className:u.ampmSelection,ownerState:c,children:[R.jsx(Rl,{disableRipple:!0,variant:"subtitle2",selected:I==="am",typographyClassName:u.ampmLabel,value:zu(s,"am"),onClick:y?void 0:()=>M("am"),disabled:g}),R.jsx(Rl,{disableRipple:!0,variant:"subtitle2",selected:I==="pm",typographyClassName:u.ampmLabel,value:zu(s,"pm"),onClick:y?void 0:()=>M("pm"),disabled:g})]})]}))}function xse(e,t){const n=Ln(),r=Kn({props:e,name:t}),o=Vae(r),i=r.ampm??n.is12HourCycleInCurrentLocale(),a=m.useMemo(()=>r.localeText?.toolbarTitle==null?r.localeText:B({},r.localeText,{timePickerToolbarTitle:r.localeText.toolbarTitle}),[r.localeText]);return B({},r,o,{ampm:i,localeText:a},mU({views:r.views,openTo:r.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{slots:B({toolbar:mJe},r.slots),slotProps:B({},r.slotProps,{toolbar:B({ampm:i,ampmInClock:r.ampmInClock},r.slotProps?.toolbar)})})}const c$=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minTime:g,maxTime:y,shouldDisableTime:x,minutesStep:S,ampm:C,ampmInClock:E,slots:I,slotProps:M,readOnly:O,disabled:D,sx:N,autoFocus:$,showViewSwitcher:L,disableIgnoringDatePartForTimeValidation:A,timezone:F})=>R.jsx(Q7e,{view:e,onViewChange:t,focusedView:n&&pv(n)?n:null,onFocusedViewChange:r,views:o.filter(pv),value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minTime:g,maxTime:y,shouldDisableTime:x,minutesStep:S,ampm:C,ampmInClock:E,slots:I,slotProps:M,readOnly:O,disabled:D,sx:N,autoFocus:$,showViewSwitcher:L,disableIgnoringDatePartForTimeValidation:A,timezone:F}),$U=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minTime:g,maxTime:y,shouldDisableTime:x,minutesStep:S,ampm:C,slots:E,slotProps:I,readOnly:M,disabled:O,sx:D,autoFocus:N,disableIgnoringDatePartForTimeValidation:$,timeSteps:L,skipDisabled:A,timezone:F})=>R.jsx(iKe,{view:e,onViewChange:t,focusedView:n&&pv(n)?n:null,onFocusedViewChange:r,views:o.filter(pv),value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minTime:g,maxTime:y,shouldDisableTime:x,minutesStep:S,ampm:C,slots:E,slotProps:I,readOnly:M,disabled:O,sx:D,autoFocus:N,disableIgnoringDatePartForTimeValidation:$,timeStep:L?.minutes,skipDisabled:A,timezone:F}),Ux=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minTime:g,maxTime:y,shouldDisableTime:x,minutesStep:S,ampm:C,slots:E,slotProps:I,readOnly:M,disabled:O,sx:D,autoFocus:N,disableIgnoringDatePartForTimeValidation:$,timeSteps:L,skipDisabled:A,timezone:F})=>R.jsx(yKe,{view:e,onViewChange:t,focusedView:n&&X0(n)?n:null,onFocusedViewChange:r,views:o.filter(pv),value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minTime:g,maxTime:y,shouldDisableTime:x,minutesStep:S,ampm:C,slots:E,slotProps:I,readOnly:M,disabled:O,sx:D,autoFocus:N,disableIgnoringDatePartForTimeValidation:$,timeSteps:L,skipDisabled:A,timezone:F}),gJe=["views","format"],wse=(e,t,n)=>{let{views:r,format:o}=t,i=He(t,gJe);if(o)return o;const a=[],s=[];if(r.forEach(u=>{pv(u)?s.push(u):Vx(u)&&a.push(u)}),s.length===0)return jE(e,B({views:a},i),!1);if(a.length===0)return FD(e,B({views:s},i));const l=FD(e,B({views:s},i));return`${jE(e,B({views:a},i),!1)} ${l}`},yJe=(e,t,n)=>n?t.filter(r=>!X0(r)||r==="hours"):e?[...t,"meridiem"]:t,vJe=(e,t)=>24*60/((e.hours??1)*(e.minutes??5))<=t;function Sse({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,i=B({hours:1,minutes:5,seconds:5},n),a=vJe(i,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:i,shouldRenderTimeInASingleColumn:a,views:yJe(t,r,a)}}const Cse=m.forwardRef(function(t,n){const r=Ln(),o=xse(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:i,views:a,timeSteps:s}=Sse(o),l=i?$U:Ux,c=B({hours:l,minutes:l,seconds:l,meridiem:l},o.viewRenderers),u=o.ampmInClock??!0,h=c.hours?.name===Ux.name?a:a.filter(x=>x!=="meridiem"),g=B({},o,{ampmInClock:u,timeSteps:s,viewRenderers:c,format:FD(r,o),views:i?["hours"]:h,slots:B({field:tse},o.slots),slotProps:B({},o.slotProps,{field:x=>B({},tf(o.slotProps?.field,x),Aw(o)),toolbar:B({hidden:!0,ampmInClock:u},o.slotProps?.toolbar)})}),{renderPicker:y}=NU({ref:n,props:g,valueManager:ii,valueType:"time",validator:aP,steps:null});return y()});Cse.propTypes={ampm:W.bool,ampmInClock:W.bool,autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,defaultValue:W.object,disabled:W.bool,disableFuture:W.bool,disableIgnoringDatePartForTimeValidation:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,enableAccessibleFieldDOMStructure:W.any,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:rw,label:W.node,localeText:W.object,maxTime:W.object,minTime:W.object,minutesStep:W.number,name:W.string,onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,open:W.bool,openTo:W.oneOf(["hours","meridiem","minutes","seconds"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.object,selectedSections:W.oneOfType([W.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number]),shouldDisableTime:W.func,skipDisabled:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),thresholdToRenderTimeInASingleColumn:W.number,timeSteps:W.shape({hours:W.number,minutes:W.number,seconds:W.number}),timezone:W.string,value:W.object,view:W.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:W.shape({hours:W.func,meridiem:W.func,minutes:W.func,seconds:W.func}),views:W.arrayOf(W.oneOf(["hours","minutes","seconds"]).isRequired)};const Ese=m.forwardRef(function(t,n){const r=Ln(),o=xse(t,"MuiMobileTimePicker"),i=B({hours:c$,minutes:c$,seconds:c$},o.viewRenderers),a=o.ampmInClock??!1,s=B({},o,{ampmInClock:a,viewRenderers:i,format:FD(r,o),slots:B({field:tse},o.slots),slotProps:B({},o.slotProps,{field:c=>B({},tf(o.slotProps?.field,c),Aw(o)),toolbar:B({hidden:!1,ampmInClock:a},o.slotProps?.toolbar)})}),{renderPicker:l}=_U({ref:n,props:s,valueManager:ii,valueType:"time",validator:aP,steps:null});return l()});Ese.propTypes={ampm:W.bool,ampmInClock:W.bool,autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,defaultValue:W.object,disabled:W.bool,disableFuture:W.bool,disableIgnoringDatePartForTimeValidation:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,enableAccessibleFieldDOMStructure:W.any,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:rw,label:W.node,localeText:W.object,maxTime:W.object,minTime:W.object,minutesStep:W.number,name:W.string,onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,open:W.bool,openTo:W.oneOf(["hours","minutes","seconds"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.object,selectedSections:W.oneOfType([W.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number]),shouldDisableTime:W.func,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),timezone:W.string,value:W.object,view:W.oneOf(["hours","minutes","seconds"]),viewRenderers:W.shape({hours:W.func,minutes:W.func,seconds:W.func}),views:W.arrayOf(W.oneOf(["hours","minutes","seconds"]).isRequired)};const bJe=["desktopModeMediaQuery"],TB=m.forwardRef(function(t,n){const r=Kn({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=CU}=r,i=He(r,bJe);return Em(o,{defaultMatches:!0})?R.jsx(Cse,B({ref:n},i)):R.jsx(Ese,B({ref:n},i))});function xJe(e){return st("MuiDateTimePickerTabs",e)}ct("MuiDateTimePickerTabs",["root"]);const wJe=e=>Vx(e)?"date":"time",SJe=e=>e==="date"?"day":"hours",CJe=e=>$e({root:["root"]},xJe,e),EJe=ue(zJ,{name:"MuiDateTimePickerTabs",slot:"Root"})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${nA.indicator}`]:{bottom:"auto",top:0}}})),TJe=function(t){const n=Kn({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=R.jsx(F9e,{}),timeIcon:o=R.jsx(j9e,{}),hidden:i=typeof window>"u"||window.innerHeight<667,className:a,classes:s,sx:l}=n,c=La(),{ownerState:u}=_o(),{view:f,setView:h}=yf(),g=CJe(s),y=(x,S)=>{h(SJe(S))};return i?null:R.jsxs(EJe,{ownerState:u,variant:"fullWidth",value:wJe(f),onChange:y,className:ge(a,g.root),sx:l,children:[R.jsx(HF,{value:"date","aria-label":c.dateTableLabel,icon:R.jsx(m.Fragment,{children:r})}),R.jsx(HF,{value:"time","aria-label":c.timeTableLabel,icon:R.jsx(m.Fragment,{children:o})})]})};function PJe(e){return st("MuiDateTimePickerToolbar",e)}const u$=ct("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),IJe=["ampm","ampmInClock","toolbarFormat","toolbarPlaceholder","toolbarTitle","className","classes"],OJe=(e,t)=>{const{pickerOrientation:n,toolbarDirection:r}=t;return $e({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",r==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",r==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",n==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},PJe,e)},MJe=ue(kU,{name:"MuiDateTimePickerToolbar",slot:"Root",shouldForwardProp:e=>ll(e)&&e!=="toolbarVariant"})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${dXe.content} .${tJe.root}[data-selected]`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",pickerOrientation:"landscape"},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",pickerOrientation:"portrait"},style:{paddingLeft:24,paddingRight:0}}]})),AJe=ue("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer"})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),DJe=ue("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",shouldForwardProp:e=>ll(e)&&e!=="toolbarVariant"})({display:"flex",flexDirection:"row",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",pickerOrientation:"portrait"},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({pickerOrientation:e,toolbarVariant:t})=>e==="landscape"&&t!=="desktop",style:{flexDirection:"column"}},{props:({pickerOrientation:e,toolbarVariant:t,toolbarDirection:n})=>e==="landscape"&&t!=="desktop"&&n==="rtl",style:{flexDirection:"column-reverse"}}]}),RJe=ue("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",shouldForwardProp:e=>ll(e)&&e!=="toolbarVariant"})({display:"flex",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),I7=ue(LU,{name:"MuiDateTimePickerToolbar",slot:"Separator",shouldForwardProp:e=>ll(e)&&e!=="toolbarVariant"})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),kJe=ue("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${u$.ampmLabel}`]:t.ampmLabel},{[`&.${u$.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${u$.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]}),NJe=m.createContext(null);function _Je(e){const t=Kn({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,toolbarFormat:o,toolbarPlaceholder:i="––",toolbarTitle:a,className:s,classes:l}=t,c=He(t,IJe),{value:u,setValue:f,disabled:h,readOnly:g,variant:y,orientation:x,view:S,setView:C,views:E}=yf(),I=La(),M=t2(),O=OJe(l,M),D=Ln(),N=m.useContext(NJe),$=N?N.value:u,L=N?N.setValue:f,A=N?N.view:S,F=N?N.setView:C,{meridiemMode:z,handleMeridiemChange:H}=Kk($,n,U=>L(U,{changeImportance:"set"})),Q=N?.forceDesktopVariant?"desktop":y,G=Q==="desktop",V=!!(n&&!r),Y=a??I.dateTimePickerToolbarTitle,X=m.useMemo(()=>D.isValid($)?o?D.formatByString($,o):D.format($,"shortDate"):i,[$,o,i,D]),te=(U,K)=>D.isValid($)?D.format($,U):K;return R.jsxs(MJe,B({className:ge(O.root,s),toolbarTitle:Y,toolbarVariant:Q},c,{ownerState:M,children:[R.jsxs(AJe,{className:O.dateContainer,ownerState:M,children:[E.includes("year")&&R.jsx(Rl,{tabIndex:-1,variant:"subtitle1",onClick:()=>F("year"),selected:A==="year",value:te("year","–")}),E.includes("day")&&R.jsx(Rl,{tabIndex:-1,variant:G?"h5":"h4",onClick:()=>F("day"),selected:A==="day",value:X})]}),R.jsxs(DJe,{className:O.timeContainer,ownerState:M,toolbarVariant:Q,children:[R.jsxs(RJe,{className:O.timeDigitsContainer,ownerState:M,toolbarVariant:Q,children:[E.includes("hours")&&R.jsxs(m.Fragment,{children:[R.jsx(Rl,{variant:G?"h5":"h3",width:G&&x==="portrait"?R1:void 0,onClick:()=>F("hours"),selected:A==="hours",value:te(n?"hours12h":"hours24h","--")}),R.jsx(I7,{variant:G?"h5":"h3",value:":",className:O.separator,ownerState:M,toolbarVariant:Q}),R.jsx(Rl,{variant:G?"h5":"h3",width:G&&x==="portrait"?R1:void 0,onClick:()=>F("minutes"),selected:A==="minutes"||!E.includes("minutes")&&A==="hours",value:te("minutes","--"),disabled:!E.includes("minutes")})]}),E.includes("seconds")&&R.jsxs(m.Fragment,{children:[R.jsx(I7,{variant:G?"h5":"h3",value:":",className:O.separator,ownerState:M,toolbarVariant:Q}),R.jsx(Rl,{variant:G?"h5":"h3",width:G&&x==="portrait"?R1:void 0,onClick:()=>F("seconds"),selected:A==="seconds",value:te("seconds","--")})]})]}),V&&!G&&R.jsxs(kJe,{className:O.ampmSelection,ownerState:M,children:[R.jsx(Rl,{variant:"subtitle2",selected:z==="am",typographyClassName:O.ampmLabel,value:zu(D,"am"),onClick:g?void 0:()=>H("am"),disabled:h}),R.jsx(Rl,{variant:"subtitle2",selected:z==="pm",typographyClassName:O.ampmLabel,value:zu(D,"pm"),onClick:g?void 0:()=>H("pm"),disabled:h})]}),n&&G&&R.jsx(Rl,{variant:"h5",onClick:()=>F("meridiem"),selected:A==="meridiem",value:$&&z?zu(D,z):"--",width:R1})]})]}))}function Tse(e,t){const n=Ln(),r=Kn({props:e,name:t}),o=Hae(r),i=r.ampm??n.is12HourCycleInCurrentLocale(),a=m.useMemo(()=>r.localeText?.toolbarTitle==null?r.localeText:B({},r.localeText,{dateTimePickerToolbarTitle:r.localeText.toolbarTitle}),[r.localeText]),{openTo:s,views:l}=mU({views:r.views,openTo:r.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{shouldRenderTimeInASingleColumn:c,thresholdToRenderTimeInASingleColumn:u,views:f,timeSteps:h}=Sse({thresholdToRenderTimeInASingleColumn:r.thresholdToRenderTimeInASingleColumn,ampm:i,timeSteps:r.timeSteps,views:l});return B({},r,o,{timeSteps:h,openTo:s,shouldRenderTimeInASingleColumn:c,thresholdToRenderTimeInASingleColumn:u,views:f,ampm:i,localeText:a,orientation:r.orientation??"portrait",slots:B({toolbar:_Je,tabs:TJe},r.slots),slotProps:B({},r.slotProps,{toolbar:B({ampm:i},r.slotProps?.toolbar)})})}const LJe=m.forwardRef(function(t,n){const{toolbar:r,tabs:o,content:i,actionBar:a,shortcuts:s,ownerState:l}=pse(t),{orientation:c}=yf(),{sx:u,className:f,classes:h}=t,g=a&&(a.props.actions?.length??0)>0;return R.jsxs(hse,{ref:n,className:ge(Nu.root,h?.root,f),sx:[{[`& .${Nu.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${Nu.actionBar}`]:{gridRow:5}},...Array.isArray(u)?u:[u]],ownerState:l,children:[c==="landscape"?s:r,c==="landscape"?r:s,R.jsxs(mse,{className:ge(Nu.contentWrapper,h?.contentWrapper),ownerState:l,sx:{display:"grid"},children:[i,o,g&&R.jsx($s,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),a]})}),$Je=["openTo","focusedView","timeViewsCount"],FJe=function(t){const{viewRenderers:n,popperView:r,rendererProps:o}=t,{openTo:i,focusedView:a,timeViewsCount:s}=o,l=He(o,$Je),c=B({},l,{focusedView:null,sx:[{[`&.${wB.root}`]:{borderBottom:0},[`&.${wB.root}, .${SB.root}, &.${xB.root}`]:{maxHeight:Bx}}]}),u=X0(r),f=u?"day":r,h=u?r:"hours";return R.jsxs(m.Fragment,{children:[n[f]?.(B({},o,{view:u?"day":r,focusedView:a&&Vx(a)?a:null,views:o.views.filter(Vx),sx:[{gridColumn:1},...c.sx]})),s>0&&R.jsxs(m.Fragment,{children:[R.jsx($s,{orientation:"vertical",sx:{gridColumn:2}}),n[h]?.(B({},c,{view:u?r:"hours",focusedView:a&&X0(a)?a:null,openTo:X0(i)?i:"hours",views:o.views.filter(X0),sx:[{gridColumn:3},...c.sx]}))]})]})},Pse=m.forwardRef(function(t,n){const r=Ln(),o=Tse(t,"MuiDesktopDateTimePicker"),i=o.shouldRenderTimeInASingleColumn?$U:Ux,a=B({day:Hc,month:Hc,year:Hc,hours:i,minutes:i,seconds:i,meridiem:i},o.viewRenderers),s=o.ampmInClock??!0,c=a.hours?.name===Ux.name?o.views:o.views.filter(h=>h!=="meridiem"),u=B({},o,{viewRenderers:a,format:wse(r,o),views:c,yearsPerRow:o.yearsPerRow??4,ampmInClock:s,slots:B({field:nse,layout:LJe},o.slots),slotProps:B({},o.slotProps,{field:h=>B({},tf(o.slotProps?.field,h),Aw(o)),toolbar:B({hidden:!0,ampmInClock:s},o.slotProps?.toolbar),tabs:B({hidden:!0},o.slotProps?.tabs)})}),{renderPicker:f}=NU({ref:n,props:u,valueManager:ii,valueType:"date-time",validator:Jk,rendererInterceptor:FJe,steps:null});return f()});Pse.propTypes={ampm:W.bool,ampmInClock:W.bool,autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,dayOfWeekFormatter:W.func,defaultValue:W.object,disabled:W.bool,disableFuture:W.bool,disableHighlightToday:W.bool,disableIgnoringDatePartForTimeValidation:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,displayWeekNumber:W.bool,enableAccessibleFieldDOMStructure:W.any,fixedWeekNumber:W.number,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:rw,label:W.node,loading:W.bool,localeText:W.object,maxDate:W.object,maxDateTime:W.object,maxTime:W.object,minDate:W.object,minDateTime:W.object,minTime:W.object,minutesStep:W.number,monthsPerRow:W.oneOf([3,4]),name:W.string,onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onMonthChange:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,onYearChange:W.func,open:W.bool,openTo:W.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.object,renderLoading:W.func,selectedSections:W.oneOfType([W.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number]),shouldDisableDate:W.func,shouldDisableMonth:W.func,shouldDisableTime:W.func,shouldDisableYear:W.func,showDaysOutsideCurrentMonth:W.bool,skipDisabled:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),thresholdToRenderTimeInASingleColumn:W.number,timeSteps:W.shape({hours:W.number,minutes:W.number,seconds:W.number}),timezone:W.string,value:W.object,view:W.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:W.shape({day:W.func,hours:W.func,meridiem:W.func,minutes:W.func,month:W.func,seconds:W.func,year:W.func}),views:W.arrayOf(W.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:W.oneOf(["asc","desc"]),yearsPerRow:W.oneOf([3,4])};const jJe=[{views:Tae},{views:xae}],Ise=m.forwardRef(function(t,n){const r=Ln(),o=Tse(t,"MuiMobileDateTimePicker"),i=o.shouldRenderTimeInASingleColumn?$U:Ux,a=B({day:Hc,month:Hc,year:Hc,hours:i,minutes:i,seconds:i,meridiem:i},o.viewRenderers),s=o.ampmInClock??!1,c=a.hours?.name===Ux.name?o.views:o.views.filter(h=>h!=="meridiem"),u=B({},o,{viewRenderers:a,format:wse(r,o),views:c,ampmInClock:s,slots:B({field:nse},o.slots),slotProps:B({},o.slotProps,{field:h=>B({},tf(o.slotProps?.field,h),Aw(o)),toolbar:B({hidden:!1,ampmInClock:s},o.slotProps?.toolbar),tabs:B({hidden:!1},o.slotProps?.tabs),layout:B({},o.slotProps?.layout,{sx:Z7e([{[`& .${wB.root}`]:{width:jx},[`& .${SB.root}`]:{flex:1,maxHeight:Bx-1,[`.${SB.item}`]:{width:"auto"}},[`& .${xB.root}`]:{width:jx,maxHeight:Bx,flex:1,[`.${xB.item}`]:{justifyContent:"center"}}}],o.slotProps?.layout?.sx)})})}),{renderPicker:f}=_U({ref:n,props:u,valueManager:ii,valueType:"date-time",validator:Jk,steps:jJe});return f()});Ise.propTypes={ampm:W.bool,ampmInClock:W.bool,autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,dayOfWeekFormatter:W.func,defaultValue:W.object,disabled:W.bool,disableFuture:W.bool,disableHighlightToday:W.bool,disableIgnoringDatePartForTimeValidation:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,displayWeekNumber:W.bool,enableAccessibleFieldDOMStructure:W.any,fixedWeekNumber:W.number,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:rw,label:W.node,loading:W.bool,localeText:W.object,maxDate:W.object,maxDateTime:W.object,maxTime:W.object,minDate:W.object,minDateTime:W.object,minTime:W.object,minutesStep:W.number,monthsPerRow:W.oneOf([3,4]),name:W.string,onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onMonthChange:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,onYearChange:W.func,open:W.bool,openTo:W.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.object,renderLoading:W.func,selectedSections:W.oneOfType([W.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number]),shouldDisableDate:W.func,shouldDisableMonth:W.func,shouldDisableTime:W.func,shouldDisableYear:W.func,showDaysOutsideCurrentMonth:W.bool,skipDisabled:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),thresholdToRenderTimeInASingleColumn:W.number,timeSteps:W.shape({hours:W.number,minutes:W.number,seconds:W.number}),timezone:W.string,value:W.object,view:W.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:W.shape({day:W.func,hours:W.func,meridiem:W.func,minutes:W.func,month:W.func,seconds:W.func,year:W.func}),views:W.arrayOf(W.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:W.oneOf(["asc","desc"]),yearsPerRow:W.oneOf([3,4])};const BJe=["desktopModeMediaQuery"],Ose=m.forwardRef(function(t,n){const r=Kn({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=CU}=r,i=He(r,BJe);return Em(o,{defaultMatches:!0})?R.jsx(Pse,B({ref:n},i)):R.jsx(Ise,B({ref:n},i))}),zJe={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyyy:{sectionType:"year",contentType:"digit",maxLength:4},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",c:{sectionType:"weekDay",contentType:"digit",maxLength:1},ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:2},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},VJe={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"d",weekday:"cccc",weekdayShort:"ccccc",hours24h:"HH",hours12h:"hh",meridiem:"a",minutes:"mm",seconds:"ss",fullDate:"DD",keyboardDate:"D",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime12h:"hh:mm a",fullTime24h:"HH:mm",keyboardDateTime12h:"D hh:mm a",keyboardDateTime24h:"D T"};class Wu{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="luxon",this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"'",end:"'"},this.formatTokenMap=zJe,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale?r:r.setLocale(o)},this.date=(r,o="default")=>r===null?null:typeof r>"u"?At.fromJSDate(new Date,{locale:this.locale,zone:o}):At.fromISO(r,{locale:this.locale,zone:o}),this.getInvalidDate=()=>At.fromJSDate(new Date("Invalid Date")),this.getTimezone=r=>r.zone.type==="system"?"system":r.zoneName,this.setTimezone=(r,o)=>r.zone.equals(P1.normalizeZone(o))?r:r.setZone(o),this.toJsDate=r=>r.toJSDate(),this.parse=(r,o)=>r===""?null:At.fromFormat(r,o,{locale:this.locale}),this.getCurrentLocaleCode=()=>this.locale,this.is12HourCycleInCurrentLocale=()=>typeof Intl>"u"||typeof Intl.DateTimeFormat>"u"?!0:!!new Intl.DateTimeFormat(this.locale,{hour:"numeric"})?.resolvedOptions()?.hour12,this.expandFormat=r=>{const o=/''|'(''|[^'])+('|$)|[^']*/g,i=[...Object.keys(this.formatTokenMap),"yyyyy"],a=new RegExp(`^(${i.join("|")})+$`),s=/(?:^|[^a-z])([a-z]+)(?:[^a-z]|$)|([a-z]+)/gi;return r.match(o).map(l=>l[0]==="'"?l:At.expandFormat(l,{locale:this.locale}).replace(s,(f,h,g)=>{const y=h||g;return a.test(y)?f:`'${f}'`})).join("").replace("yyyyy","yyyy")},this.isValid=r=>r===null?!1:r.isValid,this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>r.setLocale(this.locale).toFormat(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:+r==+o,this.isSameYear=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"year")},this.isSameMonth=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"month")},this.isSameDay=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"day")},this.isSameHour=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"hour")},this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.endOfYear(i),"years").toObject().years>0},this.isAfterDay=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.endOfDay(i),"days").toObject().days>0},this.isBefore=(r,o)=>r<o,this.isBeforeYear=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.startOfYear(i),"years").toObject().years<0},this.isBeforeDay=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.startOfDay(i),"days").toObject().days<0},this.isWithinRange=(r,[o,i])=>this.isEqual(r,o)||this.isEqual(r,i)||this.isAfter(r,o)&&this.isBefore(r,i),this.startOfYear=r=>r.startOf("year"),this.startOfMonth=r=>r.startOf("month"),this.startOfWeek=r=>this.setLocaleToValue(r).startOf("week",{useLocaleWeeks:!0}),this.startOfDay=r=>r.startOf("day"),this.endOfYear=r=>r.endOf("year"),this.endOfMonth=r=>r.endOf("month"),this.endOfWeek=r=>this.setLocaleToValue(r).endOf("week",{useLocaleWeeks:!0}),this.endOfDay=r=>r.endOf("day"),this.addYears=(r,o)=>r.plus({years:o}),this.addMonths=(r,o)=>r.plus({months:o}),this.addWeeks=(r,o)=>r.plus({weeks:o}),this.addDays=(r,o)=>r.plus({days:o}),this.addHours=(r,o)=>r.plus({hours:o}),this.addMinutes=(r,o)=>r.plus({minutes:o}),this.addSeconds=(r,o)=>r.plus({seconds:o}),this.getYear=r=>r.get("year"),this.getMonth=r=>r.get("month")-1,this.getDate=r=>r.get("day"),this.getHours=r=>r.get("hour"),this.getMinutes=r=>r.get("minute"),this.getSeconds=r=>r.get("second"),this.getMilliseconds=r=>r.get("millisecond"),this.setYear=(r,o)=>r.set({year:o}),this.setMonth=(r,o)=>r.set({month:o+1}),this.setDate=(r,o)=>r.set({day:o}),this.setHours=(r,o)=>r.set({hour:o}),this.setMinutes=(r,o)=>r.set({minute:o}),this.setSeconds=(r,o)=>r.set({second:o}),this.setMilliseconds=(r,o)=>r.set({millisecond:o}),this.getDaysInMonth=r=>r.daysInMonth,this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),i=this.endOfWeek(this.endOfMonth(r)),{days:a}=i.diff(o,"days").toObject(),s=[];return new Array(Math.round(a)).fill(0).map((l,c)=>c).map(l=>o.plus({days:l})).forEach((l,c)=>{if(c===0||c%7===0&&c>6){s.push([l]);return}s[s.length-1].push(l)}),s},this.getWeekNumber=r=>r.localWeekNumber??r.weekNumber,this.getDayOfWeek=r=>r.weekday,this.getYearRange=([r,o])=>{const i=this.startOfYear(r),a=this.endOfYear(o),s=[];let l=i;for(;this.isBefore(l,a);)s.push(l),l=this.addYears(l,1);return s},this.locale=t||"en-US",this.formats=B({},VJe,n)}}const FU=Lt(R.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}));var d$,O7;function Mse(){if(O7)return d$;O7=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return d$=e,d$}var f$,M7;function HJe(){if(M7)return f$;M7=1;var e=typeof dm=="object"&&dm&&dm.Object===Object&&dm;return f$=e,f$}var p$,A7;function Ase(){if(A7)return p$;A7=1;var e=HJe(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return p$=n,p$}var h$,D7;function UJe(){if(D7)return h$;D7=1;var e=Ase(),t=function(){return e.Date.now()};return h$=t,h$}var m$,R7;function GJe(){if(R7)return m$;R7=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return m$=t,m$}var g$,k7;function WJe(){if(k7)return g$;k7=1;var e=GJe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return g$=n,g$}var y$,N7;function Dse(){if(N7)return y$;N7=1;var e=Ase(),t=e.Symbol;return y$=t,y$}var v$,_7;function qJe(){if(_7)return v$;_7=1;var e=Dse(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function i(a){var s=n.call(a,o),l=a[o];try{a[o]=void 0;var c=!0}catch{}var u=r.call(a);return c&&(s?a[o]=l:delete a[o]),u}return v$=i,v$}var b$,L7;function KJe(){if(L7)return b$;L7=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return b$=n,b$}var x$,$7;function YJe(){if($7)return x$;$7=1;var e=Dse(),t=qJe(),n=KJe(),r="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?o:r:i&&i in Object(s)?t(s):n(s)}return x$=a,x$}var w$,F7;function QJe(){if(F7)return w$;F7=1;function e(t){return t!=null&&typeof t=="object"}return w$=e,w$}var S$,j7;function XJe(){if(j7)return S$;j7=1;var e=YJe(),t=QJe(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return S$=r,S$}var C$,B7;function JJe(){if(B7)return C$;B7=1;var e=WJe(),t=Mse(),n=XJe(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;function l(c){if(typeof c=="number")return c;if(n(c))return r;if(t(c)){var u=typeof c.valueOf=="function"?c.valueOf():c;c=t(u)?u+"":u}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=i.test(c);return f||a.test(c)?s(c.slice(2),f?2:8):o.test(c)?r:+c}return C$=l,C$}var E$,z7;function ZJe(){if(z7)return E$;z7=1;var e=Mse(),t=UJe(),n=JJe(),r="Expected a function",o=Math.max,i=Math.min;function a(s,l,c){var u,f,h,g,y,x,S=0,C=!1,E=!1,I=!0;if(typeof s!="function")throw new TypeError(r);l=n(l)||0,e(c)&&(C=!!c.leading,E="maxWait"in c,h=E?o(n(c.maxWait)||0,l):h,I="trailing"in c?!!c.trailing:I);function M(H){var Q=u,G=f;return u=f=void 0,S=H,g=s.apply(G,Q),g}function O(H){return S=H,y=setTimeout($,l),C?M(H):g}function D(H){var Q=H-x,G=H-S,V=l-Q;return E?i(V,h-G):V}function N(H){var Q=H-x,G=H-S;return x===void 0||Q>=l||Q<0||E&&G>=h}function $(){var H=t();if(N(H))return L(H);y=setTimeout($,D(H))}function L(H){return y=void 0,I&&u?M(H):(u=f=void 0,g)}function A(){y!==void 0&&clearTimeout(y),S=0,u=x=f=y=void 0}function F(){return y===void 0?g:L(t())}function z(){var H=t(),Q=N(H);if(u=arguments,f=this,x=H,Q){if(y===void 0)return O(x);if(E)return clearTimeout(y),y=setTimeout($,l),M(x)}return y===void 0&&(y=setTimeout($,l)),g}return z.cancel=A,z.flush=F,z}return E$=a,E$}var eZe=ZJe();const Rse=cs(eZe);function jU({callback:e,initialIngredient:t}){const n=t??null,[r,o]=m.useState(!0),[i,a]=m.useState(n),[s,l]=m.useState(""),[c,u]=m.useState([]),[f,h]=We(),g=m.useMemo(()=>Rse(y=>Eke(y,h.language,r).then(x=>u(x)),200),[h.language,r]);return m.useEffect(()=>{if(s===""){u(i?[i]:[]);return}return g(s),()=>{g.cancel()}},[i,s,g]),J(Jt,{children:[w(rf,{id:"ingredient-autocomplete",getOptionLabel:y=>y.name,"data-testid":"autocomplete",filterOptions:y=>y,options:c,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:i,noOptionsText:f("noResults"),isOptionEqualToValue:(y,x)=>y.id===x.id,onChange:(y,x)=>{u(x?[x,...c]:c),a(x),e(x)},onInputChange:(y,x)=>{l(x)},renderInput:y=>w(On,{...y,label:f("nutrition.searchIngredientName"),fullWidth:!0,slotProps:{input:{...y.InputProps,startAdornment:J(_t,{children:[w(gi,{position:"start",children:w(FU,{})}),y.InputProps.startAdornment]})}}}),renderOption:(y,x)=>lE("li",{...y,key:`ingredient-${x.id}`},J(vi,{disablePadding:!0,component:"div",children:[w(Ql,{children:w(Ju,{alt:"",src:x.thumbnails?.medium??"",variant:"rounded",children:w(Bp,{})})}),w(ko,{primary:x.name,slotProps:{primary:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}})]}))}),h.language!==Ix&&w(yE,{children:w(Yl,{control:w(Wi,{checked:r,onChange:(y,x)=>o(x)}),label:f("alsoSearchEnglish")})})]})}var tZe=function(t){return nZe(t)&&!rZe(t)};function nZe(e){return!!e&&typeof e=="object"}function rZe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||aZe(e)}var oZe=typeof Symbol=="function"&&Symbol.for,iZe=oZe?Symbol.for("react.element"):60103;function aZe(e){return e.$$typeof===iZe}function sZe(e){return Array.isArray(e)?[]:{}}function VD(e,t){return t.clone!==!1&&t.isMergeableObject(e)?BE(sZe(e),e,t):e}function lZe(e,t,n){return e.concat(t).map(function(r){return VD(r,n)})}function cZe(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=VD(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=VD(t[o],n):r[o]=BE(e[o],t[o],n)}),r}function BE(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||lZe,n.isMergeableObject=n.isMergeableObject||tZe;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):cZe(e,t,n):VD(t,n)}BE.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return BE(r,o,n)},{})};var PB=BE,kse=typeof global=="object"&&global&&global.Object===Object&&global,uZe=typeof self=="object"&&self&&self.Object===Object&&self,vf=kse||uZe||Function("return this")(),Dm=vf.Symbol,Nse=Object.prototype,dZe=Nse.hasOwnProperty,fZe=Nse.toString,c1=Dm?Dm.toStringTag:void 0;function pZe(e){var t=dZe.call(e,c1),n=e[c1];try{e[c1]=void 0;var r=!0}catch{}var o=fZe.call(e);return r&&(t?e[c1]=n:delete e[c1]),o}var hZe=Object.prototype,mZe=hZe.toString;function gZe(e){return mZe.call(e)}var yZe="[object Null]",vZe="[object Undefined]",V7=Dm?Dm.toStringTag:void 0;function Fv(e){return e==null?e===void 0?vZe:yZe:V7&&V7 in Object(e)?pZe(e):gZe(e)}function _se(e,t){return function(n){return e(t(n))}}var BU=_se(Object.getPrototypeOf,Object);function jv(e){return e!=null&&typeof e=="object"}var bZe="[object Object]",xZe=Function.prototype,wZe=Object.prototype,Lse=xZe.toString,SZe=wZe.hasOwnProperty,CZe=Lse.call(Object);function H7(e){if(!jv(e)||Fv(e)!=bZe)return!1;var t=BU(e);if(t===null)return!0;var n=SZe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Lse.call(n)==CZe}function EZe(){this.__data__=[],this.size=0}function $se(e,t){return e===t||e!==e&&t!==t}function n2(e,t){for(var n=e.length;n--;)if($se(e[n][0],t))return n;return-1}var TZe=Array.prototype,PZe=TZe.splice;function IZe(e){var t=this.__data__,n=n2(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():PZe.call(t,n,1),--this.size,!0}function OZe(e){var t=this.__data__,n=n2(t,e);return n<0?void 0:t[n][1]}function MZe(e){return n2(this.__data__,e)>-1}function AZe(e,t){var n=this.__data__,r=n2(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Kp(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Kp.prototype.clear=EZe;Kp.prototype.delete=IZe;Kp.prototype.get=OZe;Kp.prototype.has=MZe;Kp.prototype.set=AZe;function DZe(){this.__data__=new Kp,this.size=0}function RZe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function kZe(e){return this.__data__.get(e)}function NZe(e){return this.__data__.has(e)}function lP(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _Ze="[object AsyncFunction]",LZe="[object Function]",$Ze="[object GeneratorFunction]",FZe="[object Proxy]";function Fse(e){if(!lP(e))return!1;var t=Fv(e);return t==LZe||t==$Ze||t==_Ze||t==FZe}var T$=vf["__core-js_shared__"],U7=function(){var e=/[^.]+$/.exec(T$&&T$.keys&&T$.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function jZe(e){return!!U7&&U7 in e}var BZe=Function.prototype,zZe=BZe.toString;function Bv(e){if(e!=null){try{return zZe.call(e)}catch{}try{return e+""}catch{}}return""}var VZe=/[\\^$.*+?()[\]{}|]/g,HZe=/^\[object .+?Constructor\]$/,UZe=Function.prototype,GZe=Object.prototype,WZe=UZe.toString,qZe=GZe.hasOwnProperty,KZe=RegExp("^"+WZe.call(qZe).replace(VZe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function YZe(e){if(!lP(e)||jZe(e))return!1;var t=Fse(e)?KZe:HZe;return t.test(Bv(e))}function QZe(e,t){return e?.[t]}function zv(e,t){var n=QZe(e,t);return YZe(n)?n:void 0}var zE=zv(vf,"Map"),VE=zv(Object,"create");function XZe(){this.__data__=VE?VE(null):{},this.size=0}function JZe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ZZe="__lodash_hash_undefined__",eet=Object.prototype,tet=eet.hasOwnProperty;function net(e){var t=this.__data__;if(VE){var n=t[e];return n===ZZe?void 0:n}return tet.call(t,e)?t[e]:void 0}var ret=Object.prototype,oet=ret.hasOwnProperty;function iet(e){var t=this.__data__;return VE?t[e]!==void 0:oet.call(t,e)}var aet="__lodash_hash_undefined__";function set(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=VE&&t===void 0?aet:t,this}function mv(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mv.prototype.clear=XZe;mv.prototype.delete=JZe;mv.prototype.get=net;mv.prototype.has=iet;mv.prototype.set=set;function cet(){this.size=0,this.__data__={hash:new mv,map:new(zE||Kp),string:new mv}}function uet(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function r2(e,t){var n=e.__data__;return uet(t)?n[typeof t=="string"?"string":"hash"]:n.map}function det(e){var t=r2(this,e).delete(e);return this.size-=t?1:0,t}function fet(e){return r2(this,e).get(e)}function pet(e){return r2(this,e).has(e)}function het(e,t){var n=r2(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function qm(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qm.prototype.clear=cet;qm.prototype.delete=det;qm.prototype.get=fet;qm.prototype.has=pet;qm.prototype.set=het;var met=200;function get(e,t){var n=this.__data__;if(n instanceof Kp){var r=n.__data__;if(!zE||r.length<met-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qm(r)}return n.set(e,t),this.size=n.size,this}function Rw(e){var t=this.__data__=new Kp(e);this.size=t.size}Rw.prototype.clear=DZe;Rw.prototype.delete=RZe;Rw.prototype.get=kZe;Rw.prototype.has=NZe;Rw.prototype.set=get;function yet(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var G7=function(){try{var e=zv(Object,"defineProperty");return e({},"",{}),e}catch{}}();function jse(e,t,n){t=="__proto__"&&G7?G7(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var vet=Object.prototype,bet=vet.hasOwnProperty;function Bse(e,t,n){var r=e[t];(!(bet.call(e,t)&&$se(r,n))||n===void 0&&!(t in e))&&jse(e,t,n)}function o2(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=void 0;l===void 0&&(l=e[s]),o?jse(n,s,l):Bse(n,s,l)}return n}function xet(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var wet="[object Arguments]";function W7(e){return jv(e)&&Fv(e)==wet}var zse=Object.prototype,Cet=zse.hasOwnProperty,Eet=zse.propertyIsEnumerable,Tet=W7(function(){return arguments}())?W7:function(e){return jv(e)&&Cet.call(e,"callee")&&!Eet.call(e,"callee")},cP=Array.isArray;function Pet(){return!1}var Vse=typeof exports=="object"&&exports&&!exports.nodeType&&exports,q7=Vse&&typeof module=="object"&&module&&!module.nodeType&&module,Iet=q7&&q7.exports===Vse,K7=Iet?vf.Buffer:void 0,Oet=K7?K7.isBuffer:void 0,Hse=Oet||Pet,Met=9007199254740991,Aet=/^(?:0|[1-9]\d*)$/;function Det(e,t){var n=typeof e;return t=t??Met,!!t&&(n=="number"||n!="symbol"&&Aet.test(e))&&e>-1&&e%1==0&&e<t}var Ret=9007199254740991;function Use(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ret}var ket="[object Arguments]",Net="[object Array]",_et="[object Boolean]",Let="[object Date]",$et="[object Error]",Fet="[object Function]",jet="[object Map]",Bet="[object Number]",zet="[object Object]",Vet="[object RegExp]",Het="[object Set]",Uet="[object String]",Get="[object WeakMap]",Wet="[object ArrayBuffer]",qet="[object DataView]",Ket="[object Float32Array]",Yet="[object Float64Array]",Qet="[object Int8Array]",Xet="[object Int16Array]",Jet="[object Int32Array]",Zet="[object Uint8Array]",ett="[object Uint8ClampedArray]",ttt="[object Uint16Array]",ntt="[object Uint32Array]",Do={};Do[Ket]=Do[Yet]=Do[Qet]=Do[Xet]=Do[Jet]=Do[Zet]=Do[ett]=Do[ttt]=Do[ntt]=!0;Do[ket]=Do[Net]=Do[Wet]=Do[_et]=Do[qet]=Do[Let]=Do[$et]=Do[Fet]=Do[jet]=Do[Bet]=Do[zet]=Do[Vet]=Do[Het]=Do[Uet]=Do[Get]=!1;function rtt(e){return jv(e)&&Use(e.length)&&!!Do[Fv(e)]}function zU(e){return function(t){return e(t)}}var Gse=typeof exports=="object"&&exports&&!exports.nodeType&&exports,X1=Gse&&typeof module=="object"&&module&&!module.nodeType&&module,ott=X1&&X1.exports===Gse,P$=ott&&kse.process,Gx=function(){try{var e=X1&&X1.require&&X1.require("util").types;return e||P$&&P$.binding&&P$.binding("util")}catch{}}(),Y7=Gx&&Gx.isTypedArray,itt=Y7?zU(Y7):rtt,att=Object.prototype,stt=att.hasOwnProperty;function Wse(e,t){var n=cP(e),r=!n&&Tet(e),o=!n&&!r&&Hse(e),i=!n&&!r&&!o&&itt(e),a=n||r||o||i,s=a?xet(e.length,String):[],l=s.length;for(var c in e)(t||stt.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Det(c,l)))&&s.push(c);return s}var ltt=Object.prototype;function VU(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ltt;return e===n}var ctt=_se(Object.keys,Object),utt=Object.prototype,dtt=utt.hasOwnProperty;function ftt(e){if(!VU(e))return ctt(e);var t=[];for(var n in Object(e))dtt.call(e,n)&&n!="constructor"&&t.push(n);return t}function qse(e){return e!=null&&Use(e.length)&&!Fse(e)}function HU(e){return qse(e)?Wse(e):ftt(e)}function ptt(e,t){return e&&o2(t,HU(t),e)}function htt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var mtt=Object.prototype,gtt=mtt.hasOwnProperty;function ytt(e){if(!lP(e))return htt(e);var t=VU(e),n=[];for(var r in e)r=="constructor"&&(t||!gtt.call(e,r))||n.push(r);return n}function UU(e){return qse(e)?Wse(e,!0):ytt(e)}function vtt(e,t){return e&&o2(t,UU(t),e)}var Kse=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Q7=Kse&&typeof module=="object"&&module&&!module.nodeType&&module,btt=Q7&&Q7.exports===Kse,X7=btt?vf.Buffer:void 0,J7=X7?X7.allocUnsafe:void 0;function xtt(e,t){if(t)return e.slice();var n=e.length,r=J7?J7(n):new e.constructor(n);return e.copy(r),r}function Yse(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function wtt(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Qse(){return[]}var Stt=Object.prototype,Ctt=Stt.propertyIsEnumerable,Z7=Object.getOwnPropertySymbols,GU=Z7?function(e){return e==null?[]:(e=Object(e),wtt(Z7(e),function(t){return Ctt.call(e,t)}))}:Qse;function Ett(e,t){return o2(e,GU(e),t)}function Xse(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Ttt=Object.getOwnPropertySymbols,Jse=Ttt?function(e){for(var t=[];e;)Xse(t,GU(e)),e=BU(e);return t}:Qse;function Ptt(e,t){return o2(e,Jse(e),t)}function Zse(e,t,n){var r=t(e);return cP(e)?r:Xse(r,n(e))}function Itt(e){return Zse(e,HU,GU)}function Ott(e){return Zse(e,UU,Jse)}var IB=zv(vf,"DataView"),OB=zv(vf,"Promise"),MB=zv(vf,"Set"),AB=zv(vf,"WeakMap"),eK="[object Map]",Mtt="[object Object]",tK="[object Promise]",nK="[object Set]",rK="[object WeakMap]",oK="[object DataView]",Att=Bv(IB),Dtt=Bv(zE),Rtt=Bv(OB),ktt=Bv(MB),Ntt=Bv(AB),ap=Fv;(IB&&ap(new IB(new ArrayBuffer(1)))!=oK||zE&&ap(new zE)!=eK||OB&&ap(OB.resolve())!=tK||MB&&ap(new MB)!=nK||AB&&ap(new AB)!=rK)&&(ap=function(e){var t=Fv(e),n=t==Mtt?e.constructor:void 0,r=n?Bv(n):"";if(r)switch(r){case Att:return oK;case Dtt:return eK;case Rtt:return tK;case ktt:return nK;case Ntt:return rK}return t});var _tt=Object.prototype,Ltt=_tt.hasOwnProperty;function $tt(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Ltt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var iK=vf.Uint8Array;function WU(e){var t=new e.constructor(e.byteLength);return new iK(t).set(new iK(e)),t}function Ftt(e,t){var n=t?WU(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var jtt=/\w*$/;function Btt(e){var t=new e.constructor(e.source,jtt.exec(e));return t.lastIndex=e.lastIndex,t}var aK=Dm?Dm.prototype:void 0,sK=aK?aK.valueOf:void 0;function ztt(e){return sK?Object(sK.call(e)):{}}function Vtt(e,t){var n=t?WU(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Htt="[object Boolean]",Utt="[object Date]",Gtt="[object Map]",Wtt="[object Number]",qtt="[object RegExp]",Ktt="[object Set]",Ytt="[object String]",Qtt="[object Symbol]",Xtt="[object ArrayBuffer]",Jtt="[object DataView]",Ztt="[object Float32Array]",ent="[object Float64Array]",tnt="[object Int8Array]",nnt="[object Int16Array]",rnt="[object Int32Array]",ont="[object Uint8Array]",int="[object Uint8ClampedArray]",ant="[object Uint16Array]",snt="[object Uint32Array]";function lnt(e,t,n){var r=e.constructor;switch(t){case Xtt:return WU(e);case Htt:case Utt:return new r(+e);case Jtt:return Ftt(e,n);case Ztt:case ent:case tnt:case nnt:case rnt:case ont:case int:case ant:case snt:return Vtt(e,n);case Gtt:return new r;case Wtt:case Ytt:return new r(e);case qtt:return Btt(e);case Ktt:return new r;case Qtt:return ztt(e)}}var lK=Object.create,cnt=function(){function e(){}return function(t){if(!lP(t))return{};if(lK)return lK(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function unt(e){return typeof e.constructor=="function"&&!VU(e)?cnt(BU(e)):{}}var dnt="[object Map]";function fnt(e){return jv(e)&&ap(e)==dnt}var cK=Gx&&Gx.isMap,pnt=cK?zU(cK):fnt,hnt="[object Set]";function mnt(e){return jv(e)&&ap(e)==hnt}var uK=Gx&&Gx.isSet,gnt=uK?zU(uK):mnt,ynt=1,vnt=2,bnt=4,ele="[object Arguments]",xnt="[object Array]",wnt="[object Boolean]",Snt="[object Date]",Cnt="[object Error]",tle="[object Function]",Ent="[object GeneratorFunction]",Tnt="[object Map]",Pnt="[object Number]",nle="[object Object]",Int="[object RegExp]",Ont="[object Set]",Mnt="[object String]",Ant="[object Symbol]",Dnt="[object WeakMap]",Rnt="[object ArrayBuffer]",knt="[object DataView]",Nnt="[object Float32Array]",_nt="[object Float64Array]",Lnt="[object Int8Array]",$nt="[object Int16Array]",Fnt="[object Int32Array]",jnt="[object Uint8Array]",Bnt="[object Uint8ClampedArray]",znt="[object Uint16Array]",Vnt="[object Uint32Array]",Eo={};Eo[ele]=Eo[xnt]=Eo[Rnt]=Eo[knt]=Eo[wnt]=Eo[Snt]=Eo[Nnt]=Eo[_nt]=Eo[Lnt]=Eo[$nt]=Eo[Fnt]=Eo[Tnt]=Eo[Pnt]=Eo[nle]=Eo[Int]=Eo[Ont]=Eo[Mnt]=Eo[Ant]=Eo[jnt]=Eo[Bnt]=Eo[znt]=Eo[Vnt]=!0;Eo[Cnt]=Eo[tle]=Eo[Dnt]=!1;function J1(e,t,n,r,o,i){var a,s=t&ynt,l=t&vnt,c=t&bnt;if(a!==void 0)return a;if(!lP(e))return e;var u=cP(e);if(u){if(a=$tt(e),!s)return Yse(e,a)}else{var f=ap(e),h=f==tle||f==Ent;if(Hse(e))return xtt(e,s);if(f==nle||f==ele||h&&!o){if(a=l||h?{}:unt(e),!s)return l?Ptt(e,vtt(a,e)):Ett(e,ptt(a,e))}else{if(!Eo[f])return o?e:{};a=lnt(e,f,s)}}i||(i=new Rw);var g=i.get(e);if(g)return g;i.set(e,a),gnt(e)?e.forEach(function(S){a.add(J1(S,t,n,S,e,i))}):pnt(e)&&e.forEach(function(S,C){a.set(C,J1(S,t,n,C,e,i))});var y=c?l?Ott:Itt:l?UU:HU,x=u?void 0:y(e);return yet(x||e,function(S,C){x&&(C=S,S=e[C]),Bse(a,C,J1(S,t,n,C,e,i))}),a}var Hnt=1,Unt=4;function k1(e){return J1(e,Hnt|Unt)}var I$,dK;function Gnt(){if(dK)return I$;dK=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r=typeof Element<"u";function o(i,a){if(i===a)return!0;if(i&&a&&typeof i=="object"&&typeof a=="object"){var s=e(i),l=e(a),c,u,f;if(s&&l){if(u=i.length,u!=a.length)return!1;for(c=u;c--!==0;)if(!o(i[c],a[c]))return!1;return!0}if(s!=l)return!1;var h=i instanceof Date,g=a instanceof Date;if(h!=g)return!1;if(h&&g)return i.getTime()==a.getTime();var y=i instanceof RegExp,x=a instanceof RegExp;if(y!=x)return!1;if(y&&x)return i.toString()==a.toString();var S=t(i);if(u=S.length,u!==t(a).length)return!1;for(c=u;c--!==0;)if(!n.call(a,S[c]))return!1;if(r&&i instanceof Element&&a instanceof Element)return i===a;for(c=u;c--!==0;)if(f=S[c],!(f==="_owner"&&i.$$typeof)&&!o(i[f],a[f]))return!1;return!0}return i!==i&&a!==a}return I$=function(a,s){try{return o(a,s)}catch(l){if(l.message&&l.message.match(/stack|recursion/i)||l.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",l.name,l.message),!1;throw l}},I$}var Wnt=Gnt();const tm=cs(Wnt);var qnt=4;function fK(e){return J1(e,qnt)}function rle(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Knt="[object Symbol]";function qU(e){return typeof e=="symbol"||jv(e)&&Fv(e)==Knt}var Ynt="Expected a function";function KU(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ynt);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(KU.Cache||qm),n}KU.Cache=qm;var Qnt=500;function Xnt(e){var t=KU(e,function(r){return n.size===Qnt&&n.clear(),r}),n=t.cache;return t}var Jnt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Znt=/\\(\\)?/g,ert=Xnt(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Jnt,function(n,r,o,i){t.push(o?i.replace(Znt,"$1"):r||n)}),t});function trt(e){if(typeof e=="string"||qU(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var pK=Dm?Dm.prototype:void 0,hK=pK?pK.toString:void 0;function ole(e){if(typeof e=="string")return e;if(cP(e))return rle(e,ole)+"";if(qU(e))return hK?hK.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function nrt(e){return e==null?"":ole(e)}function ile(e){return cP(e)?rle(e,trt):qU(e)?[e]:Yse(ert(nrt(e)))}function ri(){return ri=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ri.apply(this,arguments)}function rrt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function YU(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function mK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var i2=m.createContext(void 0);i2.displayName="FormikContext";var ort=i2.Provider,irt=i2.Consumer;function QU(){var e=m.useContext(i2);return e}var gK=function(t){return Array.isArray(t)&&t.length===0},rl=function(t){return typeof t=="function"},kw=function(t){return t!==null&&typeof t=="object"},art=function(t){return String(Math.floor(Number(t)))===t},O$=function(t){return Object.prototype.toString.call(t)==="[object String]"},ale=function(t){return m.Children.count(t)===0},M$=function(t){return kw(t)&&rl(t.then)};function ia(e,t,n,r){r===void 0&&(r=0);for(var o=ile(t);e&&r<o.length;)e=e[o[r++]];return r!==o.length&&!e||e===void 0?n:e}function Zd(e,t,n){for(var r=fK(e),o=r,i=0,a=ile(t);i<a.length-1;i++){var s=a[i],l=ia(e,a.slice(0,i+1));if(l&&(kw(l)||Array.isArray(l)))o=o[s]=fK(l);else{var c=a[i+1];o=o[s]=art(c)&&Number(c)>=0?[]:{}}}return(i===0?e:o)[a[i]]===n?e:(n===void 0?delete o[a[i]]:o[a[i]]=n,i===0&&n===void 0&&delete r[a[i]],r)}function sle(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],s=e[a];kw(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},sle(s,t,n,r[a])):r[a]=t}return r}function srt(e,t){switch(t.type){case"SET_VALUES":return ri({},e,{values:t.payload});case"SET_TOUCHED":return ri({},e,{touched:t.payload});case"SET_ERRORS":return tm(e.errors,t.payload)?e:ri({},e,{errors:t.payload});case"SET_STATUS":return ri({},e,{status:t.payload});case"SET_ISSUBMITTING":return ri({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return ri({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return ri({},e,{values:Zd(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return ri({},e,{touched:Zd(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return ri({},e,{errors:Zd(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return ri({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return ri({},e,{touched:sle(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return ri({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return ri({},e,{isSubmitting:!1});default:return e}}var hy={},FM={};function lrt(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,o=r===void 0?!0:r,i=e.validateOnMount,a=i===void 0?!1:i,s=e.isInitialValid,l=e.enableReinitialize,c=l===void 0?!1:l,u=e.onSubmit,f=YU(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=ri({validateOnChange:n,validateOnBlur:o,validateOnMount:a,onSubmit:u},f),g=m.useRef(h.initialValues),y=m.useRef(h.initialErrors||hy),x=m.useRef(h.initialTouched||FM),S=m.useRef(h.initialStatus),C=m.useRef(!1),E=m.useRef({});m.useEffect(function(){return C.current=!0,function(){C.current=!1}},[]);var I=m.useState(0),M=I[1],O=m.useRef({values:k1(h.initialValues),errors:k1(h.initialErrors)||hy,touched:k1(h.initialTouched)||FM,status:k1(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),D=O.current,N=m.useCallback(function(pe){var je=O.current;O.current=srt(je,pe),je!==O.current&&M(function(Ke){return Ke+1})},[]),$=m.useCallback(function(pe,je){return new Promise(function(Ke,et){var nt=h.validate(pe,je);nt==null?Ke(hy):M$(nt)?nt.then(function(ot){Ke(ot||hy)},function(ot){et(ot)}):Ke(nt)})},[h.validate]),L=m.useCallback(function(pe,je){var Ke=h.validationSchema,et=rl(Ke)?Ke(je):Ke,nt=je&&et.validateAt?et.validateAt(je,pe):urt(pe,et);return new Promise(function(ot,it){nt.then(function(){ot(hy)},function(tt){tt.name==="ValidationError"?ot(crt(tt)):it(tt)})})},[h.validationSchema]),A=m.useCallback(function(pe,je){return new Promise(function(Ke){return Ke(E.current[pe].validate(je))})},[]),F=m.useCallback(function(pe){var je=Object.keys(E.current).filter(function(et){return rl(E.current[et].validate)}),Ke=je.length>0?je.map(function(et){return A(et,ia(pe,et))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(Ke).then(function(et){return et.reduce(function(nt,ot,it){return ot==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||ot&&(nt=Zd(nt,je[it],ot)),nt},{})})},[A]),z=m.useCallback(function(pe){return Promise.all([F(pe),h.validationSchema?L(pe):{},h.validate?$(pe):{}]).then(function(je){var Ke=je[0],et=je[1],nt=je[2],ot=PB.all([Ke,et,nt],{arrayMerge:drt});return ot})},[h.validate,h.validationSchema,F,$,L]),H=Cc(function(pe){return pe===void 0&&(pe=D.values),N({type:"SET_ISVALIDATING",payload:!0}),z(pe).then(function(je){return C.current&&(N({type:"SET_ISVALIDATING",payload:!1}),N({type:"SET_ERRORS",payload:je})),je})});m.useEffect(function(){a&&C.current===!0&&tm(g.current,h.initialValues)&&H(g.current)},[a,H]);var Q=m.useCallback(function(pe){var je=pe&&pe.values?pe.values:g.current,Ke=pe&&pe.errors?pe.errors:y.current?y.current:h.initialErrors||{},et=pe&&pe.touched?pe.touched:x.current?x.current:h.initialTouched||{},nt=pe&&pe.status?pe.status:S.current?S.current:h.initialStatus;g.current=je,y.current=Ke,x.current=et,S.current=nt;var ot=function(){N({type:"RESET_FORM",payload:{isSubmitting:!!pe&&!!pe.isSubmitting,errors:Ke,touched:et,status:nt,values:je,isValidating:!!pe&&!!pe.isValidating,submitCount:pe&&pe.submitCount&&typeof pe.submitCount=="number"?pe.submitCount:0}})};if(h.onReset){var it=h.onReset(D.values,Se);M$(it)?it.then(ot):ot()}else ot()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);m.useEffect(function(){C.current===!0&&!tm(g.current,h.initialValues)&&c&&(g.current=h.initialValues,Q(),a&&H(g.current))},[c,h.initialValues,Q,a,H]),m.useEffect(function(){c&&C.current===!0&&!tm(y.current,h.initialErrors)&&(y.current=h.initialErrors||hy,N({type:"SET_ERRORS",payload:h.initialErrors||hy}))},[c,h.initialErrors]),m.useEffect(function(){c&&C.current===!0&&!tm(x.current,h.initialTouched)&&(x.current=h.initialTouched||FM,N({type:"SET_TOUCHED",payload:h.initialTouched||FM}))},[c,h.initialTouched]),m.useEffect(function(){c&&C.current===!0&&!tm(S.current,h.initialStatus)&&(S.current=h.initialStatus,N({type:"SET_STATUS",payload:h.initialStatus}))},[c,h.initialStatus,h.initialTouched]);var G=Cc(function(pe){if(E.current[pe]&&rl(E.current[pe].validate)){var je=ia(D.values,pe),Ke=E.current[pe].validate(je);return M$(Ke)?(N({type:"SET_ISVALIDATING",payload:!0}),Ke.then(function(et){return et}).then(function(et){N({type:"SET_FIELD_ERROR",payload:{field:pe,value:et}}),N({type:"SET_ISVALIDATING",payload:!1})})):(N({type:"SET_FIELD_ERROR",payload:{field:pe,value:Ke}}),Promise.resolve(Ke))}else if(h.validationSchema)return N({type:"SET_ISVALIDATING",payload:!0}),L(D.values,pe).then(function(et){return et}).then(function(et){N({type:"SET_FIELD_ERROR",payload:{field:pe,value:ia(et,pe)}}),N({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),V=m.useCallback(function(pe,je){var Ke=je.validate;E.current[pe]={validate:Ke}},[]),Y=m.useCallback(function(pe){delete E.current[pe]},[]),X=Cc(function(pe,je){N({type:"SET_TOUCHED",payload:pe});var Ke=je===void 0?o:je;return Ke?H(D.values):Promise.resolve()}),te=m.useCallback(function(pe){N({type:"SET_ERRORS",payload:pe})},[]),U=Cc(function(pe,je){var Ke=rl(pe)?pe(D.values):pe;N({type:"SET_VALUES",payload:Ke});var et=je===void 0?n:je;return et?H(Ke):Promise.resolve()}),K=m.useCallback(function(pe,je){N({type:"SET_FIELD_ERROR",payload:{field:pe,value:je}})},[]),ee=Cc(function(pe,je,Ke){N({type:"SET_FIELD_VALUE",payload:{field:pe,value:je}});var et=Ke===void 0?n:Ke;return et?H(Zd(D.values,pe,je)):Promise.resolve()}),le=m.useCallback(function(pe,je){var Ke=je,et=pe,nt;if(!O$(pe)){pe.persist&&pe.persist();var ot=pe.target?pe.target:pe.currentTarget,it=ot.type,tt=ot.name,vt=ot.id,Je=ot.value,Mt=ot.checked;ot.outerHTML;var Gt=ot.options,ht=ot.multiple;Ke=je||tt||vt,et=/number|range/.test(it)?(nt=parseFloat(Je),isNaN(nt)?"":nt):/checkbox/.test(it)?prt(ia(D.values,Ke),Mt,Je):Gt&&ht?frt(Gt):Je}Ke&&ee(Ke,et)},[ee,D.values]),ce=Cc(function(pe){if(O$(pe))return function(je){return le(je,pe)};le(pe)}),se=Cc(function(pe,je,Ke){je===void 0&&(je=!0),N({type:"SET_FIELD_TOUCHED",payload:{field:pe,value:je}});var et=Ke===void 0?o:Ke;return et?H(D.values):Promise.resolve()}),fe=m.useCallback(function(pe,je){pe.persist&&pe.persist();var Ke=pe.target,et=Ke.name,nt=Ke.id;Ke.outerHTML;var ot=je||et||nt;se(ot,!0)},[se]),we=Cc(function(pe){if(O$(pe))return function(je){return fe(je,pe)};fe(pe)}),Oe=m.useCallback(function(pe){rl(pe)?N({type:"SET_FORMIK_STATE",payload:pe}):N({type:"SET_FORMIK_STATE",payload:function(){return pe}})},[]),he=m.useCallback(function(pe){N({type:"SET_STATUS",payload:pe})},[]),me=m.useCallback(function(pe){N({type:"SET_ISSUBMITTING",payload:pe})},[]),ye=Cc(function(){return N({type:"SUBMIT_ATTEMPT"}),H().then(function(pe){var je=pe instanceof Error,Ke=!je&&Object.keys(pe).length===0;if(Ke){var et;try{if(et=Ie(),et===void 0)return}catch(nt){throw nt}return Promise.resolve(et).then(function(nt){return C.current&&N({type:"SUBMIT_SUCCESS"}),nt}).catch(function(nt){if(C.current)throw N({type:"SUBMIT_FAILURE"}),nt})}else if(C.current&&(N({type:"SUBMIT_FAILURE"}),je))throw pe})}),ae=Cc(function(pe){pe&&pe.preventDefault&&rl(pe.preventDefault)&&pe.preventDefault(),pe&&pe.stopPropagation&&rl(pe.stopPropagation)&&pe.stopPropagation(),ye().catch(function(je){console.warn("Warning: An unhandled error was caught from submitForm()",je)})}),Se={resetForm:Q,validateForm:H,validateField:G,setErrors:te,setFieldError:K,setFieldTouched:se,setFieldValue:ee,setStatus:he,setSubmitting:me,setTouched:X,setValues:U,setFormikState:Oe,submitForm:ye},Ie=Cc(function(){return u(D.values,Se)}),Re=Cc(function(pe){pe&&pe.preventDefault&&rl(pe.preventDefault)&&pe.preventDefault(),pe&&pe.stopPropagation&&rl(pe.stopPropagation)&&pe.stopPropagation(),Q()}),ke=m.useCallback(function(pe){return{value:ia(D.values,pe),error:ia(D.errors,pe),touched:!!ia(D.touched,pe),initialValue:ia(g.current,pe),initialTouched:!!ia(x.current,pe),initialError:ia(y.current,pe)}},[D.errors,D.touched,D.values]),Te=m.useCallback(function(pe){return{setValue:function(Ke,et){return ee(pe,Ke,et)},setTouched:function(Ke,et){return se(pe,Ke,et)},setError:function(Ke){return K(pe,Ke)}}},[ee,se,K]),Ce=m.useCallback(function(pe){var je=kw(pe),Ke=je?pe.name:pe,et=ia(D.values,Ke),nt={name:Ke,value:et,onChange:ce,onBlur:we};if(je){var ot=pe.type,it=pe.value,tt=pe.as,vt=pe.multiple;ot==="checkbox"?it===void 0?nt.checked=!!et:(nt.checked=!!(Array.isArray(et)&&~et.indexOf(it)),nt.value=it):ot==="radio"?(nt.checked=et===it,nt.value=it):tt==="select"&&vt&&(nt.value=nt.value||[],nt.multiple=!0)}return nt},[we,ce,D.values]),Ze=m.useMemo(function(){return!tm(g.current,D.values)},[g.current,D.values]),Me=m.useMemo(function(){return typeof s<"u"?Ze?D.errors&&Object.keys(D.errors).length===0:s!==!1&&rl(s)?s(h):s:D.errors&&Object.keys(D.errors).length===0},[s,Ze,D.errors,h]),_e=ri({},D,{initialValues:g.current,initialErrors:y.current,initialTouched:x.current,initialStatus:S.current,handleBlur:we,handleChange:ce,handleReset:Re,handleSubmit:ae,resetForm:Q,setErrors:te,setFormikState:Oe,setFieldTouched:se,setFieldValue:ee,setFieldError:K,setStatus:he,setSubmitting:me,setTouched:X,setValues:U,submitForm:ye,validateForm:H,validateField:G,isValid:Me,dirty:Ze,unregisterField:Y,registerField:V,getFieldProps:Ce,getFieldMeta:ke,getFieldHelpers:Te,validateOnBlur:o,validateOnChange:n,validateOnMount:a});return _e}function $a(e){var t=lrt(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return m.useImperativeHandle(i,function(){return t}),m.createElement(ort,{value:t},n?m.createElement(n,t):o?o(t):r?rl(r)?r(t):ale(r)?null:m.Children.only(r):null)}function crt(e){var t={};if(e.inner){if(e.inner.length===0)return Zd(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var a=i;ia(t,a.path)||(t=Zd(t,a.path,a.message))}}return t}function urt(e,t,n,r){n===void 0&&(n=!1);var o=DB(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function DB(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||H7(o)?DB(o):o!==""?o:void 0}):H7(e[r])?t[r]=DB(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function drt(e,t,n){var r=e.slice();return t.forEach(function(i,a){if(typeof r[a]>"u"){var s=n.clone!==!1,l=s&&n.isMergeableObject(i);r[a]=l?PB(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[a]=PB(e[a],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function frt(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function prt(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var hrt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect;function Cc(e){var t=m.useRef(e);return hrt(function(){t.current=e}),m.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current.apply(void 0,r)},[])}function nc(e){var t=QU(),n=t.getFieldProps,r=t.getFieldMeta,o=t.getFieldHelpers,i=t.registerField,a=t.unregisterField,s=kw(e),l=s?e:{name:e},c=l.name,u=l.validate;m.useEffect(function(){return c&&i(c,{validate:u}),function(){c&&a(c)}},[i,a,c,u]);var f=m.useMemo(function(){return o(c)},[o,c]);return[n(l),r(c),f]}var ba=m.forwardRef(function(e,t){var n=e.action,r=YU(e,["action"]),o=n??"#",i=QU(),a=i.handleReset,s=i.handleSubmit;return m.createElement("form",ri({onSubmit:s,ref:t,onReset:a,action:o},r))});ba.displayName="Form";function mrt(e){var t=function(o){return m.createElement(irt,null,function(i){return m.createElement(e,ri({},o,{formik:i}))})},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",$pe(t,e)}var grt=function(t,n,r){var o=gv(t),i=o[n];return o.splice(n,1),o.splice(r,0,i),o},yrt=function(t,n,r){var o=gv(t),i=o[n];return o[n]=o[r],o[r]=i,o},A$=function(t,n,r){var o=gv(t);return o.splice(n,0,r),o},vrt=function(t,n,r){var o=gv(t);return o[n]=r,o},gv=function(t){if(t){if(Array.isArray(t))return[].concat(t);var n=Object.keys(t).map(function(r){return parseInt(r)}).reduce(function(r,o){return o>r?o:r},0);return Array.from(ri({},t,{length:n+1}))}else return[]},yK=function(t,n){var r=typeof t=="function"?t:n;return function(o){if(Array.isArray(o)||kw(o)){var i=gv(o);return r(i)}return o}},lle=function(e){rrt(t,e);function t(r){var o;return o=e.call(this,r)||this,o.updateArrayField=function(i,a,s){var l=o.props,c=l.name,u=l.formik.setFormikState;u(function(f){var h=yK(s,i),g=yK(a,i),y=Zd(f.values,c,i(ia(f.values,c))),x=s?h(ia(f.errors,c)):void 0,S=a?g(ia(f.touched,c)):void 0;return gK(x)&&(x=void 0),gK(S)&&(S=void 0),ri({},f,{values:y,errors:s?Zd(f.errors,c,x):f.errors,touched:a?Zd(f.touched,c,S):f.touched})})},o.push=function(i){return o.updateArrayField(function(a){return[].concat(gv(a),[k1(i)])},!1,!1)},o.handlePush=function(i){return function(){return o.push(i)}},o.swap=function(i,a){return o.updateArrayField(function(s){return yrt(s,i,a)},!0,!0)},o.handleSwap=function(i,a){return function(){return o.swap(i,a)}},o.move=function(i,a){return o.updateArrayField(function(s){return grt(s,i,a)},!0,!0)},o.handleMove=function(i,a){return function(){return o.move(i,a)}},o.insert=function(i,a){return o.updateArrayField(function(s){return A$(s,i,a)},function(s){return A$(s,i,null)},function(s){return A$(s,i,null)})},o.handleInsert=function(i,a){return function(){return o.insert(i,a)}},o.replace=function(i,a){return o.updateArrayField(function(s){return vrt(s,i,a)},!1,!1)},o.handleReplace=function(i,a){return function(){return o.replace(i,a)}},o.unshift=function(i){var a=-1;return o.updateArrayField(function(s){var l=s?[i].concat(s):[i];return a=l.length,l},function(s){return s?[null].concat(s):[null]},function(s){return s?[null].concat(s):[null]}),a},o.handleUnshift=function(i){return function(){return o.unshift(i)}},o.handleRemove=function(i){return function(){return o.remove(i)}},o.handlePop=function(){return function(){return o.pop()}},o.remove=o.remove.bind(mK(o)),o.pop=o.pop.bind(mK(o)),o}var n=t.prototype;return n.componentDidUpdate=function(o){this.props.validateOnChange&&this.props.formik.validateOnChange&&!tm(ia(o.formik.values,o.name),ia(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(o){var i;return this.updateArrayField(function(a){var s=a?gv(a):[];return i||(i=s[o]),rl(s.splice)&&s.splice(o,1),rl(s.every)&&s.every(function(l){return l===void 0})?[]:s},!0,!0),i},n.pop=function(){var o;return this.updateArrayField(function(i){var a=i.slice();return o||(o=a&&a.pop&&a.pop()),a},!0,!0),o},n.render=function(){var o={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},i=this.props,a=i.component,s=i.render,l=i.children,c=i.name,u=i.formik,f=YU(u,["validate","validationSchema"]),h=ri({},o,{form:f,name:c});return a?m.createElement(a,h):s?s(h):l?typeof l=="function"?l(h):ale(l)?null:m.Children.only(l):null},t}(m.Component);lle.defaultProps={validateOnChange:!0};var cle=mrt(lle),D$,vK;function brt(){if(vK)return D$;vK=1;function e(C){this._maxSize=C,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(C){return this._values[C]},e.prototype.set=function(C,E){return this._size>=this._maxSize&&this.clear(),C in this._values||this._size++,this._values[C]=E};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,s=new e(a),l=new e(a),c=new e(a);D$={Cache:e,split:f,normalizePath:u,setter:function(C){var E=u(C);return l.get(C)||l.set(C,function(M,O){for(var D=0,N=E.length,$=M;D<N-1;){var L=E[D];if(L==="__proto__"||L==="constructor"||L==="prototype")return M;$=$[E[D++]]}$[E[D]]=O})},getter:function(C,E){var I=u(C);return c.get(C)||c.set(C,function(O){for(var D=0,N=I.length;D<N;)if(O!=null||!E)O=O[I[D++]];else return;return O})},join:function(C){return C.reduce(function(E,I){return E+(g(I)||n.test(I)?"["+I+"]":(E?".":"")+I)},"")},forEach:function(C,E,I){h(Array.isArray(C)?C:f(C),E,I)}};function u(C){return s.get(C)||s.set(C,f(C).map(function(E){return E.replace(i,"$2")}))}function f(C){return C.match(t)||[""]}function h(C,E,I){var M=C.length,O,D,N,$;for(D=0;D<M;D++)O=C[D],O&&(S(O)&&(O='"'+O+'"'),$=g(O),N=!$&&/^\d+$/.test(O),E.call(I,O,$,N,D,C))}function g(C){return typeof C=="string"&&C&&["'",'"'].indexOf(C.charAt(0))!==-1}function y(C){return C.match(r)&&!C.match(n)}function x(C){return o.test(C)}function S(C){return!g(C)&&(y(C)||x(C))}return D$}var Wy=brt(),R$,bK;function xrt(){if(bK)return R$;bK=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=u=>u.match(e)||[],n=u=>u[0].toUpperCase()+u.slice(1),r=(u,f)=>t(u).join(f).toLowerCase(),o=u=>t(u).reduce((f,h)=>`${f}${f?h[0].toUpperCase()+h.slice(1).toLowerCase():h.toLowerCase()}`,"");return R$={words:t,upperFirst:n,camelCase:o,pascalCase:u=>n(o(u)),snakeCase:u=>r(u,"_"),kebabCase:u=>r(u,"-"),sentenceCase:u=>n(r(u," ")),titleCase:u=>t(u).map(n).join(" ")},R$}var k$=xrt(),jM={exports:{}},xK;function wrt(){if(xK)return jM.exports;xK=1,jM.exports=function(o){return e(t(o),o)},jM.exports.array=e;function e(o,i){var a=o.length,s=new Array(a),l={},c=a,u=n(i),f=r(o);for(i.forEach(function(g){if(!f.has(g[0])||!f.has(g[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});c--;)l[c]||h(o[c],c,new Set);return s;function h(g,y,x){if(x.has(g)){var S;try{S=", node was:"+JSON.stringify(g)}catch{S=""}throw new Error("Cyclic dependency"+S)}if(!f.has(g))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(g));if(!l[y]){l[y]=!0;var C=u.get(g)||new Set;if(C=Array.from(C),y=C.length){x.add(g);do{var E=C[--y];h(E,f.get(E),x)}while(y);x.delete(g)}s[--a]=g}}}function t(o){for(var i=new Set,a=0,s=o.length;a<s;a++){var l=o[a];i.add(l[0]),i.add(l[1])}return Array.from(i)}function n(o){for(var i=new Map,a=0,s=o.length;a<s;a++){var l=o[a];i.has(l[0])||i.set(l[0],new Set),i.has(l[1])||i.set(l[1],new Set),i.get(l[0]).add(l[1])}return i}function r(o){for(var i=new Map,a=0,s=o.length;a<s;a++)i.set(o[a],a);return i}return jM.exports}var Srt=wrt();const Crt=cs(Srt),Ert=Object.prototype.toString,Trt=Error.prototype.toString,Prt=RegExp.prototype.toString,Irt=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Ort=/^Symbol\((.*)\)(.*)$/;function Mrt(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function wK(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return Mrt(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return Irt.call(e).replace(Ort,"Symbol($1)");const r=Ert.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+Trt.call(e)+"]":r==="RegExp"?Prt.call(e):null}function bp(e,t){let n=wK(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=wK(this[r],t);return i!==null?i:o},2)}function ule(e){return e==null?[]:[].concat(e)}let dle,fle,ple,Art=/\$\{\s*(\w+)\s*\}/g;dle=Symbol.toStringTag;class SK{constructor(t,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[dle]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],ule(t).forEach(i=>{if(Ms.isError(i)){this.errors.push(...i.errors);const a=i.inner.length?i.inner:[i];this.inner.push(...a)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}fle=Symbol.hasInstance;ple=Symbol.toStringTag;class Ms extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(Art,(o,i)=>bp(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){const a=new SK(t,n,r,o);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[ple]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Ms)}static[fle](t){return SK[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Vd={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${bp(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${bp(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${bp(n,!0)}\``+o}},nl={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Qh={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},RB={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},kB={isValue:"${path} field must be ${value}"},hA={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},mA={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},Drt={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${bp(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${bp(n,!0)}\``}return Ms.formatError(Vd.notType,e)}};Object.assign(Object.create(null),{mixed:Vd,string:nl,number:Qh,date:RB,object:hA,array:mA,boolean:kB,tuple:Drt});const a2=e=>e&&e.__isYupSchema__;class HD{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,a=typeof r=="function"?r:(...s)=>s.every(l=>l===r);return new HD(t,(s,l)=>{var c;let u=a(...s)?o:i;return(c=u?.(l))!=null?c:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n?.value,n?.parent,n?.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!a2(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const BM={context:"$",value:"."};function s2(e,t){return new Km(e,t)}class Km{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===BM.context,this.isValue=this.key[0]===BM.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?BM.context:this.isValue?BM.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Wy.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n?.parent,n?.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Km.prototype.__isYupRef=!0;const Vu=e=>e==null;function _0(e){function t({value:n,path:r="",options:o,originalValue:i,schema:a},s,l){const{name:c,test:u,params:f,message:h,skipAbsent:g}=e;let{parent:y,context:x,abortEarly:S=a.spec.abortEarly,disableStackTrace:C=a.spec.disableStackTrace}=o;const E={value:n,parent:y,context:x};function I(F={}){const z=hle(Object.assign({value:n,originalValue:i,label:a.spec.label,path:F.path||r,spec:a.spec,disableStackTrace:F.disableStackTrace||C},f,F.params),E),H=new Ms(Ms.formatError(F.message||h,z),n,z.path,F.type||c,z.disableStackTrace);return H.params=z,H}const M=S?s:l;let O={path:r,parent:y,type:c,from:o.from,createError:I,resolve(F){return mle(F,E)},options:o,originalValue:i,schema:a};const D=F=>{Ms.isError(F)?M(F):F?l(null):M(I())},N=F=>{Ms.isError(F)?M(F):s(F)};if(g&&Vu(n))return D(!0);let L;try{var A;if(L=u.call(O,n,O),typeof((A=L)==null?void 0:A.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(L).then(D,N)}}catch(F){N(F);return}D(L)}return t.OPTIONS=e,t}function hle(e,t){if(!e)return e;for(const n of Object.keys(e))e[n]=mle(e[n],t);return e}function mle(e,t){return Km.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function Rrt(e,t,n,r=n){let o,i,a;return t?(Wy.forEach(t,(s,l,c)=>{let u=l?s.slice(1,s.length-1):s;e=e.resolve({context:r,parent:o,value:n});let f=e.type==="tuple",h=c?parseInt(u,10):0;if(e.innerType||f){if(f&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&h>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[h],e=f?e.spec.types[h]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[u],e=e.fields[u]}i=u,a=l?"["+s+"]":"."+s}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class UD extends Set{describe(){const t=[];for(const n of this.values())t.push(Km.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new UD(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Z0(e,t=new Map){if(a2(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Z0(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,Z0(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Z0(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=Z0(o,t)}else throw Error(`Unable to clone ${e}`);return n}function krt(e){if(!(e!=null&&e.length))return;const t=[];let n="",r=!1,o=!1;for(let i=0;i<e.length;i++){const a=e[i];if(a==="["&&!o){n&&(t.push(...n.split(".").filter(Boolean)),n=""),r=!0;continue}if(a==="]"&&!o){n&&(/^\d+$/.test(n)?t.push(n):t.push(n.replace(/^"|"$/g,"")),n=""),r=!1;continue}if(a==='"'){o=!o;continue}if(a==="."&&!r&&!o){n&&(t.push(n),n="");continue}n+=a}return n&&t.push(...n.split(".").filter(Boolean)),t}function Nrt(e,t){const n=t?`${t}.${e.path}`:e.path;return e.errors.map(r=>({message:r,path:krt(n)}))}function gle(e,t){var n;if(!((n=e.inner)!=null&&n.length)&&e.errors.length)return Nrt(e,t);const r=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(o=>gle(o,r))}class Jl{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new UD,this._blacklist=new UD,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Vd.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t?.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Z0(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&Vu(i))return i;let a=bp(t),s=bp(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
-
-attempted value: ${a}
-`+(s!==a?`result of cast: ${s}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:a=t,strict:s=this.spec.strict}=n,l=t;s||(l=this._cast(l,Object.assign({assert:!1},n)));let c=[];for(let u of Object.values(this.internalTests))u&&c.push(u);this.runTests({path:i,value:l,originalValue:a,options:n,tests:c},r,u=>{if(u.length)return o(u,l);this.runTests({path:i,value:l,originalValue:a,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:a,originalValue:s,path:l,options:c}=t,u=x=>{o||(o=!0,n(x,a))},f=x=>{o||(o=!0,r(x,a))},h=i.length,g=[];if(!h)return f([]);let y={value:a,originalValue:s,path:l,options:c,schema:this};for(let x=0;x<i.length;x++){const S=i[x];S(y,u,function(E){E&&(Array.isArray(E)?g.push(...E):g.push(E)),--h<=0&&f(g)})}}asNestedTest({key:t,index:n,parent:r,parentPath:o,originalParent:i,options:a}){const s=t??n;if(s==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof s=="number";let c=r[s];const u=Object.assign({},a,{strict:!0,parent:r,value:c,originalValue:i[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${o||""}[${l?s:`"${s}"`}]`:(o?`${o}.`:"")+t});return(f,h,g)=>this.resolve(u)._validate(c,u,h,g)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n?.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((a,s)=>o._validate(t,n,(l,c)=>{Ms.isError(l)&&(l.value=c),s(l)},(l,c)=>{l.length?s(new Ms(l,c,void 0,void 0,i)):a(c)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,a=(r=n?.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(s,l)=>{throw Ms.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new Ms(s,t,void 0,void 0,a);i=l}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Ms.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Ms.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Z0(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=_0({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=_0({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Vd.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Vd.notNull){return this.nullability(!1,t)}required(t=Vd.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Vd.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=_0(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=ule(t).map(i=>new Km(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new HD(o,n):HD.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=_0({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Vd.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=_0({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),r}notOneOf(t,n=Vd.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=_0({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:a}=n.spec;return{meta:o,label:r,optional:i,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.filter((l,c,u)=>u.findIndex(f=>f.OPTIONS.name===l.OPTIONS.name)===c).map(l=>{const c=l.OPTIONS.params&&t?hle(Object.assign({},l.OPTIONS.params),t):l.OPTIONS.params;return{name:l.OPTIONS.name,params:c}})}}get"~standard"(){const t=this;return{version:1,vendor:"yup",async validate(r){try{return{value:await t.validate(r,{abortEarly:!1})}}catch(o){if(o instanceof Ms)return{issues:gle(o)};throw o}}}}}Jl.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Jl.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=Rrt(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])Jl.prototype[e]=Jl.prototype.oneOf;for(const e of["not","nope"])Jl.prototype[e]=Jl.prototype.notOneOf;function xp(){return new yle}class yle extends Jl{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(r.spec.coerce&&!r.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=kB.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return Vu(n)||n===!0}})}isFalse(t=kB.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return Vu(n)||n===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}xp.prototype=yle.prototype;const _rt=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Lrt(e){const t=NB(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function NB(e){var t,n;const r=_rt.exec(e);return r?{year:np(r[1]),month:np(r[2],1)-1,day:np(r[3],1),hour:np(r[4]),minute:np(r[5]),second:np(r[6]),millisecond:r[7]?np(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:np(r[10]),minuteOffset:np(r[11])}:null}function np(e,t=0){return Number(e)||t}let $rt=/^[a-zA-Z0-9.!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F\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,jrt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Brt="^\\d{4}-\\d{2}-\\d{2}",zrt="\\d{2}:\\d{2}:\\d{2}",Vrt="(([+-]\\d{2}(:?\\d{2})?)|Z)",Hrt=new RegExp(`${Brt}T${zrt}(\\.\\d+)?${Vrt}$`),Urt=e=>Vu(e)||e===e.trim(),Grt={}.toString();function Hi(){return new vle}class vle extends Jl{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===Grt?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Vd.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=nl.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=nl.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=nl.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||nl.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=nl.email){return this.matches($rt,{name:"email",message:t,excludeEmptyString:!0})}url(t=nl.url){return this.matches(Frt,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=nl.uuid){return this.matches(jrt,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,o;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=t:n=t),this.matches(Hrt,{name:"datetime",message:n||nl.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||nl.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const a=NB(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||nl.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const a=NB(i);return a?a.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=nl.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:Urt})}lowercase(t=nl.lowercase){return this.transform(n=>Vu(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Vu(n)||n===n.toLowerCase()})}uppercase(t=nl.uppercase){return this.transform(n=>Vu(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Vu(n)||n===n.toUpperCase()})}}Hi.prototype=vle.prototype;let Wrt=e=>e!=+e;function ki(){return new ble}class ble extends Jl{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Wrt(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=Qh.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=Qh.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=Qh.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return r<this.resolve(t)}})}moreThan(t,n=Qh.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=Qh.positive){return this.moreThan(0,t)}negative(t=Qh.negative){return this.lessThan(0,t)}integer(t=Qh.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>Vu(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>Vu(o)?o:Math[t](o))}}ki.prototype=ble.prototype;let xle=new Date(""),qrt=e=>Object.prototype.toString.call(e)==="[object Date]";function Uc(){return new uP}class uP extends Jl{constructor(){super({type:"date",check(t){return qrt(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=Lrt(t),isNaN(t)?uP.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Km.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=RB.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=RB.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}uP.INVALID_DATE=xle;Uc.prototype=uP.prototype;Uc.INVALID_DATE=xle;function Krt(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,s])=>`${a}-${s}`));function i(a,s){let l=Wy.split(a)[0];r.add(l),o.has(`${s}-${l}`)||n.push([s,l])}for(const a of Object.keys(e)){let s=e[a];r.add(a),Km.isRef(s)&&s.isSibling?i(s.path,a):a2(s)&&"deps"in s&&s.deps.forEach(l=>i(l,a))}return Crt.array(Array.from(r),n).reverse()}function CK(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function wle(e){return(t,n)=>CK(e,t)-CK(e,n)}const Sle=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function gA(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=gA(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=gA(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(gA)}):"optional"in e?e.optional():e}const Yrt=(e,t)=>{const n=[...Wy.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=Wy.getter(Wy.join(n),!0)(e);return!!(o&&r in o)};let EK=e=>Object.prototype.toString.call(e)==="[object Object]";function TK(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const Qrt=wle([]);function qi(e){return new Cle(e)}class Cle extends Jl{constructor(t){super({type:"object",check(n){return EK(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Qrt,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(o).filter(f=>!this._nodes.includes(f))),l={},c=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),u=!1;for(const f of s){let h=i[f],g=f in o;if(h){let y,x=o[f];c.path=(n.path?`${n.path}.`:"")+f,h=h.resolve({value:x,context:n.context,parent:l});let S=h instanceof Jl?h.spec:void 0,C=S?.strict;if(S!=null&&S.strip){u=u||f in o;continue}y=!n.__validating||!C?h.cast(o[f],c):o[f],y!==void 0&&(l[f]=y)}else g&&!a&&(l[f]=o[f]);(g!==f in l||l[f]!==o[f])&&(u=!0)}return u?l:o}_validate(t,n={},r,o){let{from:i=[],originalValue:a=t,recursive:s=this.spec.recursive}=n;n.from=[{schema:this,value:a},...i],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(l,c)=>{if(!s||!EK(c)){o(l,c);return}a=a||c;let u=[];for(let f of this._nodes){let h=this.fields[f];!h||Km.isRef(h)||u.push(h.asNestedTest({options:n,key:f,parent:c,parentPath:n.path,originalParent:a}))}this.runTests({tests:u,value:c,originalValue:a,options:n},r,f=>{o(f.sort(this._sortErrors).concat(l),c)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?i:a}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=Krt(t,n),r._sortErrors=wle(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return gA(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=Wy.getter(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return Yrt(i,t)&&(a=Object.assign({},i),r||delete a[t],a[n]=o(i)),a})}json(){return this.transform(Sle)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||hA.exact,test(n){if(n==null)return!0;const r=TK(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=hA.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=TK(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=hA.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(k$.camelCase)}snakeCase(){return this.transformKeys(k$.snakeCase)}constantCase(){return this.transformKeys(t=>k$.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,a]of Object.entries(n.fields)){var o;let s=t;(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[i]})),r.fields[i]=a.describe(s)}return r}}qi.prototype=Cle.prototype;function qy(e){return new Ele(e)}class Ele extends Jl{constructor(t){super({type:"array",spec:{types:t},check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=t}_cast(t,n){const r=super._cast(t,n);if(!this._typeCheck(r)||!this.innerType)return r;let o=!1;const i=r.map((a,s)=>{const l=this.innerType.cast(a,Object.assign({},n,{path:`${n.path||""}[${s}]`}));return l!==a&&(o=!0),l});return o?i:r}_validate(t,n={},r,o){var i;let a=this.innerType,s=(i=n.recursive)!=null?i:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(t,n,r,(l,c)=>{var u;if(!s||!a||!this._typeCheck(c)){o(l,c);return}let f=new Array(c.length);for(let g=0;g<c.length;g++){var h;f[g]=a.asNestedTest({options:n,index:g,parent:c,parentPath:n.path,originalParent:(h=n.originalValue)!=null?h:t})}this.runTests({value:c,tests:f,originalValue:(u=n.originalValue)!=null?u:t,options:n},r,g=>o(g.concat(l),c))})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}json(){return this.transform(Sle)}concat(t){let n=super.concat(t);return n.innerType=this.innerType,t.innerType&&(n.innerType=n.innerType?n.innerType.concat(t.innerType):t.innerType),n}of(t){let n=this.clone();if(!a2(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+bp(t));return n.innerType=t,n.spec=Object.assign({},n.spec,{types:t}),n}length(t,n=mA.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n){return n=n||mA.min,this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n){return n=n||mA.max,this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,n)=>this._typeCheck(t)?t:n==null?[]:[].concat(n))}compact(t){let n=t?(r,o,i)=>!t(r,o,i):r=>!!r;return this.transform(r=>r!=null?r.filter(n):r)}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);if(n.innerType){var o;let i=t;(o=i)!=null&&o.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),r.innerType=n.innerType.describe(i)}return r}}qy.prototype=Ele.prototype;const XU=({planId:e,entry:t,mealId:n,meals:r,closeFn:o})=>{const i=n===void 0?null:n,a=r===void 0?[]:r,[s,l]=We(),c=lte(e),u=q2e(e),[f,h]=m.useState(t?At.fromJSDate(t.datetime):At.now()),[g,y]=m.useState(i),x=qi({amount:ki().required(s("forms.fieldRequired")).max(1e3,s("forms.maxValue",{value:"1000"})).min(1,s("forms.minValue",{value:"1"})),ingredient:ki().required(s("forms.fieldRequired")),datetime:Uc().required(s("forms.fieldRequired"))});return w($a,{initialValues:{datetime:new Date,amount:0,ingredient:0},validationSchema:x,onSubmit:async S=>{const C=Number(S.amount);if(t){const E=Dp.clone(t,{mealId:g,planId:e,amount:C,datetime:S.datetime,ingredientId:S.ingredient});u.mutate(E)}else c.mutate(new Dp({planId:e,amount:C,datetime:S.datetime,ingredientId:S.ingredient,mealId:g}));o&&o()},children:S=>w(ba,{children:J(Jt,{spacing:2,children:[w(jU,{callback:C=>S.setFieldValue("ingredient",C?.id)}),w(On,{fullWidth:!0,id:"amount",label:"amount",slotProps:{input:{endAdornment:w(gi,{position:"end",children:s("nutrition.gramShort")})}},error:S.touched.amount&&!!S.errors.amount,helperText:S.touched.amount&&S.errors.amount,...S.getFieldProps("amount")}),a.length>0&&w(rf,{value:g,options:a.map(C=>C.id),getOptionLabel:C=>a.find(E=>E.id===C).displayName,onChange:(C,E)=>y(E),renderInput:C=>w(On,{label:s("nutrition.meal"),value:g,...C})}),w(Vc,{dateAdapter:Wu,adapterLocale:l.language,children:w(Ose,{format:"yyyy-MM-dd HH:mm",label:s("date"),value:f,disableFuture:!0,onChange:C=>{S.setFieldValue("datetime",C?.toJSDate()),h(C)},shouldDisableDate:C=>(t&&Jr(t.datetime)===Jr(C.toJSDate()),!1)})}),J(Jt,{direction:"row",justifyContent:"end",spacing:2,children:[o!==void 0&&w(St,{color:"primary",variant:"outlined",onClick:()=>o(),children:s("close")}),w(St,{color:"primary",variant:"contained",type:"submit",children:s("submit")})]})]})})})},JU=({plan:e,closeFn:t})=>{const[n]=We(),r=V2e(),o=U2e(e?.id),[i,a]=m.useState(e?.hasAnyGoals),[s,l]=m.useState(e?At.fromJSDate(e.start):At.now),[c,u]=m.useState(e&&e?.end!==null?At.fromJSDate(e.end):null),f=qi({description:Hi().required().max(25,n("forms.maxLength",{chars:"25"})).min(3,n("forms.minLength",{chars:"3"})),onlyLogging:xp(),goalEnergy:ki().notRequired().positive().max(6e3,n("forms.maxValue",{value:"6000kcal"})),goalProtein:ki().notRequired().positive().max(500,n("forms.maxValue",{value:"500"})),goalCarbohydrates:ki().notRequired().positive().max(750,n("forms.maxValue",{value:"750"})),goalFiber:ki().notRequired().positive().max(500,n("forms.maxValue",{value:"500"})),goalFat:ki().notRequired().positive().max(500,n("forms.maxValue",{value:"500"})),start:Uc().required(),end:Uc().nullable().min(s2("start"),n("forms.endBeforeStart"))});return w($a,{initialValues:{description:e?e.description:n("nutrition.plan"),start:Jr(new Date),end:null,onlyLogging:e?e.onlyLogging:!0,goalEnergy:e?e.goalEnergy:null,goalProtein:e?e.goalProtein:null,goalCarbohydrates:e?e.goalCarbohydrates:null,goalFiber:e?e.goalFiber:null,goalFat:e?e.goalFat:null},validationSchema:f,onSubmit:async h=>{h.goalEnergy=h.goalEnergy?h.goalEnergy:null,h.goalProtein=h.goalProtein?h.goalProtein:null,h.goalCarbohydrates=h.goalCarbohydrates?h.goalCarbohydrates:null,h.goalFiber=h.goalFiber?h.goalFiber:null,h.goalFat=h.goalFat?h.goalFat:null,i||(h.goalEnergy=null,h.goalProtein=null,h.goalCarbohydrates=null,h.goalFiber=null,h.goalFat=null);const g=new GR({start:new Date(h.start),end:h.end?new Date(h.end):null,description:h.description,onlyLogging:h.onlyLogging,goalEnergy:h.goalEnergy,goalProtein:h.goalProtein,goalCarbohydrates:h.goalCarbohydrates,goalFiber:h.goalFiber,goalFat:h.goalFat});e?(g.id=e.id,o.mutate(g)):r.mutate(g),t&&t()},children:h=>w(ba,{children:J(Jt,{spacing:2,children:[w(On,{fullWidth:!0,id:"description",label:n("description"),error:h.touched.description&&!!h.errors.description,helperText:h.touched.description&&h.errors.description,...h.getFieldProps("description")}),J(xe,{container:!0,spacing:1,children:[w(xe,{size:6,children:w(Vc,{dateAdapter:Wu,adapterLocale:jn.language,children:w(Hx,{format:"yyyy-MM-dd",label:n("start"),value:s,slotProps:{textField:{variant:"standard",fullWidth:!0,error:h.touched.start&&!!h.errors.start,helperText:h.touched.start&&h.errors.start?String(h.errors.start):""}},onChange:g=>{g&&h.setFieldValue("start",g.toJSDate()),l(g)}})})}),w(xe,{size:6,children:w(Vc,{dateAdapter:Wu,adapterLocale:jn.language,children:w(Hx,{format:"yyyy-MM-dd",label:n("end"),value:c,slotProps:{textField:{variant:"standard",fullWidth:!0,error:h.touched.end&&!!h.errors.end,helperText:h.touched.end&&h.errors.end?String(h.errors.end):""}},onChange:g=>{g&&h.setFieldValue("end",g.toJSDate()),u(g)}})})})]}),w(yE,{children:w(Yl,{label:n("nutrition.onlyLoggingHelpText"),control:w(Wi,{id:"onlyLogging",checked:h.values.onlyLogging,...h.getFieldProps("onlyLogging")})})}),w(yE,{children:w(Yl,{label:n("nutrition.useGoalsHelpText"),control:w(Wi,{id:"goalEnergy",checked:i,onChange:()=>a(!i)})})}),w(yT,{children:n("nutrition.useGoalsHelpTextLong")}),i&&J(_t,{children:[w(On,{fullWidth:!0,id:"energy",label:n("nutrition.goalEnergy"),error:h.touched.goalEnergy&&!!h.errors.goalEnergy,helperText:h.touched.goalEnergy&&h.errors.goalEnergy,...h.getFieldProps("goalEnergy"),InputProps:{endAdornment:w(gi,{position:"end",children:n("nutrition.kcal")})}}),J(xe,{container:!0,spacing:1,children:[w(xe,{size:4,children:w(On,{id:"protein",fullWidth:!0,label:n("nutrition.goalProtein"),error:h.touched.goalProtein&&!!h.errors.goalProtein,helperText:h.touched.goalProtein&&h.errors.goalProtein,...h.getFieldProps("goalProtein"),InputProps:{startAdornment:w(gi,{position:"start",children:h.values.goalProtein!==null&&h.values.goalProtein!==void 0?n("nutrition.valueEnergyKcal",{value:h.values.goalProtein*ux.protein}):""}),endAdornment:w(gi,{position:"end",children:n("nutrition.gramShort")})}})}),w(xe,{size:4,children:w(On,{id:"carbohydrates",fullWidth:!0,label:n("nutrition.goalCarbohydrates"),error:h.touched.goalCarbohydrates&&!!h.errors.goalCarbohydrates,helperText:h.touched.goalCarbohydrates&&h.errors.goalCarbohydrates,...h.getFieldProps("goalCarbohydrates"),InputProps:{startAdornment:w(gi,{position:"start",children:h.values.goalCarbohydrates!==null&&h.values.goalCarbohydrates!==void 0?n("nutrition.valueEnergyKcal",{value:h.values.goalCarbohydrates*ux.carbohydrates}):""}),endAdornment:w(gi,{position:"end",children:n("nutrition.gramShort")})}})}),w(xe,{size:4,children:w(On,{id:"fat",fullWidth:!0,label:n("nutrition.goalFat"),error:h.touched.goalFat&&!!h.errors.goalFat,helperText:h.touched.goalFat&&h.errors.goalFat,...h.getFieldProps("goalFat"),InputProps:{startAdornment:w(gi,{position:"start",children:h.values.goalFat!==null&&h.values.goalFat!==void 0?n("nutrition.valueEnergyKcal",{value:h.values.goalFat*ux.fat}):""}),endAdornment:w(gi,{position:"end",children:n("nutrition.gramShort")})}})})]}),w(xe,{container:!0,spacing:1,children:w(xe,{size:4,children:w(On,{id:"fiber",fullWidth:!0,label:n("nutrition.goalFiber"),error:h.touched.goalFiber&&!!h.errors.goalFiber,helperText:h.touched.goalFiber&&h.errors.goalFiber,...h.getFieldProps("goalFiber"),InputProps:{startAdornment:w(gi,{position:"start",children:n("nutrition.valueEnergyKcal",{value:0})}),endAdornment:w(gi,{position:"end",children:n("nutrition.gramShort")})}})})})]}),w(Jt,{direction:"row",justifyContent:"end",sx:{mt:2},children:w(St,{color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:n("submit")})})]})})})},Tle=()=>{const[e]=We(),t=j2e();return t.isLoading?w(lo,{}):t.data!==null?w(Xrt,{plan:t.data}):w(Qz,{title:e("nutritionalPlan"),modalContent:w(JU,{}),modalTitle:e("add")})};function Xrt(e){const[t,n]=We(),[r,o]=qe.useState(!1),i=()=>o(!0),a=()=>o(!1);return J(_t,{children:[J(oi,{children:[w(rd,{title:t("nutritionalPlan"),subheader:e.plan.description}),J(ss,{sx:{height:"500px",overflow:"auto"},children:[w(A9e,{percentage:e.plan.percentageValuesLoggedToday,planned:e.plan.plannedNutritionalValues,logged:e.plan.loggedNutritionalValuesToday}),w(ca,{children:e.plan.meals.map(s=>w(Jrt,{meal:s,planId:e.plan.id},s.id))})]}),J(iu,{sx:{justifyContent:"space-between",alignItems:"flex-start"},children:[w(St,{size:"small",href:Cn(hn.NUTRITION_DETAIL,n.language,{id:e.plan.id}),children:t("seeDetails")}),w(Gi,{title:t("nutrition.logThisMealItem"),children:w(An,{onClick:i,children:w(xT,{})})})]})]}),w(ga,{title:t("nutrition.addNutritionalDiary"),isOpen:r,closeFn:a,children:w(XU,{closeFn:a,planId:e.plan.id,meals:e.plan.meals})})]})}const Jrt=e=>{const[t,n]=We(),r=lte(e.planId),[o,i]=m.useState(!1),[a,s]=qe.useState(!1),l=()=>i(!o),c=(g,y)=>{y!=="clickaway"&&s(!1)},u=g=>{r.mutate(g.diaryEntry(e.planId)),s(!0)},f=e.meal.name?e.meal.name:ej(e.meal.time),h=e.meal.name?ej(e.meal.time):null;return J(_t,{children:[J(Gu,{onClick:l,selected:o,children:[w(Ql,{children:o?w(H1,{}):w(hp,{})}),w(ko,{primary:f,secondary:h})]}),w(as,{in:o,timeout:"auto",unmountOnExit:!0,children:w(ca,{children:e.meal.items.map(g=>J(vi,{secondaryAction:w(Gi,{title:t("nutrition.logThisMealItem"),children:w(An,{edge:"end",onClick:()=>u(g),children:w(xT,{})})}),children:[w(Wz,{children:w(Ju,{alt:g.ingredient?.name,src:g.ingredient?.image?.url,sx:{width:45,height:45},children:w(Bp,{})})}),w(ko,{primary:g.ingredient?.name,secondary:ar(g.amount,n.language)})]},g.id))})}),w(vT,{open:a,autoHideDuration:IT,onClose:c,children:w(pa,{onClose:c,severity:"success",sx:{width:"100%"},children:t("nutrition.diaryEntrySaved")})})]})},Ple=Lt(R.jsx("path",{d:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zM7 10h5v5H7z"}));function bf(e){return Zr({queryKey:[xt.ROUTINE_DETAIL,e],queryFn:()=>qRe(e)})}function Zrt(e){return Zr({queryKey:[xt.ROUTINE_STATS,e],queryFn:()=>rke(e)})}function Ile(e){return Zr({queryKey:[xt.ROUTINE_LOG_DATA,e],queryFn:()=>nke(e)})}function eot(){return Zr({queryKey:[xt.ROUTINES_SHALLOW],queryFn:KRe})}function tot(){return Zr({queryKey:[xt.PRIVATE_TEMPLATES],queryFn:YRe})}function not(){return Zr({queryKey:[xt.PUBLIC_TEMPLATES],queryFn:QRe})}function rot(){return Zr({queryKey:[xt.ROUTINES_ACTIVE],queryFn:WRe})}const oot=()=>{const e=Bt();return zt({mutationFn:t=>XRe(t),onSuccess:()=>e.invalidateQueries({queryKey:[xt.ROUTINE_OVERVIEW]})})},Ole=e=>{const t=Bt();return zt({mutationFn:n=>JRe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[xt.ROUTINE_OVERVIEW]}),t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})}})},iot=e=>{const t=Bt();return zt({mutationFn:()=>ZRe(e),onSuccess:()=>{t.invalidateQueries({queryKey:[xt.ROUTINE_OVERVIEW]}),t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})}})},aot=e=>{const t=Bt();return zt({mutationFn:n=>Wke(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},sot=e=>{const t=Bt();return zt({mutationFn:n=>qke(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},lot=e=>{const t=Bt();return zt({mutationFn:n=>Kke(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},cot=e=>{const t=Bt();return zt({mutationFn:n=>Yke(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},uot=e=>{const t=Bt();return zt({mutationFn:n=>Qke(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},dot=e=>{const t=Bt();return zt({mutationFn:n=>Xke(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},fot=e=>{const t=Bt();return zt({mutationFn:n=>Jke(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},pot=e=>{const t=Bt();return zt({mutationFn:n=>Zke(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},hot=e=>{const t=Bt();return zt({mutationFn:n=>e2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},mot=e=>{const t=Bt();return zt({mutationFn:n=>t2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},got=e=>{const t=Bt();return zt({mutationFn:n=>n2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},PK=e=>{const t=Bt();return zt({mutationFn:n=>r2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},yot=e=>{const t=Bt();return zt({mutationFn:n=>o2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},vot=e=>{const t=Bt();return zt({mutationFn:n=>i2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},bot=e=>{const t=Bt();return zt({mutationFn:n=>a2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},xot=e=>{const t=Bt();return zt({mutationFn:n=>s2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},wot=e=>{const t=Bt();return zt({mutationFn:n=>l2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Sot=e=>{const t=Bt();return zt({mutationFn:n=>c2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Mle=e=>{const t=Bt();return zt({mutationFn:n=>u2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Ale=e=>{const t=Bt();return zt({mutationFn:n=>d2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Dle=e=>{const t=Bt();return zt({mutationFn:n=>f2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Cot=e=>{const t=Bt();return zt({mutationFn:n=>p2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Eot=e=>{const t=Bt();return zt({mutationFn:n=>h2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Tot=e=>{const t=Bt();return zt({mutationFn:n=>m2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Pot=e=>{const t=Bt();return zt({mutationFn:n=>g2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Iot=e=>{const t=Bt();return zt({mutationFn:n=>y2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Oot=e=>{const t=Bt();return zt({mutationFn:n=>v2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Mot=e=>{const t=Bt();return zt({mutationFn:n=>b2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Aot=e=>{const t=Bt();return zt({mutationFn:n=>x2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Dot=e=>{const t=Bt();return zt({mutationFn:n=>w2e(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Rot=e=>{const t=Bt();return zt({mutationFn:n=>ote(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},kot=e=>{const t=Bt();return zt({mutationFn:n=>Promise.all(n.map(ote)),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Not=e=>{const t=Bt();return zt({mutationFn:n=>Vke(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},_ot=e=>{const t=Bt();return zt({mutationFn:n=>Hke(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})};function Lot(e){const t=Bt();return zt({mutationFn:n=>Lke(n),onSuccess:()=>{t.invalidateQueries({queryKey:[xt.ROUTINE_LOG_DATA,e]}),t.invalidateQueries({queryKey:[xt.ROUTINE_STATS,e]})}})}function $ot(e){const t=Bt();return zt({mutationFn:n=>$ke(n),onSuccess:()=>{t.invalidateQueries({queryKey:[xt.ROUTINE_LOGS,e]}),t.invalidateQueries({queryKey:[xt.ROUTINE_STATS,e]})}})}function Fot(e){const t=Bt();return zt({mutationFn:n=>Fke(n),onSuccess:()=>{t.invalidateQueries({queryKey:[xt.ROUTINE_LOGS,e]}),t.invalidateQueries({queryKey:[xt.ROUTINE_STATS,e]})}})}const dP=e=>{const t=Bt();return zt({mutationFn:n=>jke(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},jot=e=>{const t=Bt();return zt({mutationFn:n=>zke(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Bot=e=>{const t=Bt();return zt({mutationFn:n=>Bke(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},zot=()=>Zr({queryKey:[xt.ROUTINE_WEIGHT_UNITS],queryFn:Jee}),Vot=()=>Zr({queryKey:[xt.ROUTINE_REP_UNITS],queryFn:Xee}),Hot=e=>{const t=Bt();return zt({mutationFn:n=>Uke(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Uot=e=>{const t=Bt();return zt({mutationFn:n=>ite(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Got=e=>{const t=Bt();return zt({mutationFn:n=>Promise.all(n.map(ite)),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},Wot=e=>{const t=Bt();return zt({mutationFn:n=>Gke(n),onSuccess:()=>t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})})},qot=(e,t)=>Zr({queryFn:()=>S2e(t),queryKey:[xt.SESSION_SEARCH,e,JSON.stringify(t)]}),Kot=()=>{const e=Bt();return zt({mutationFn:t=>E2e(t),onSuccess:()=>e.invalidateQueries({queryKey:[xt.ROUTINE_OVERVIEW]})})},Yot=e=>Zr({queryFn:()=>C2e(e),queryKey:[xt.SESSIONS_FULL,JSON.stringify(e||{})]}),Qot=e=>{const t=Bt();return zt({mutationFn:n=>T2e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[xt.ROUTINE_OVERVIEW]}),t.invalidateQueries({queryKey:[xt.ROUTINE_DETAIL,e]})}})},bi=Lt(R.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),Rle=Lt(R.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11h-4v4h-2v-4H7v-2h4V7h2v4h4z"})),Xot=Lt(R.jsx("path",{d:"M22 5v2h-3v3h-2V7h-3V5h3V2h2v3zm-3 14H5V5h6V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6h-2zm-4-6v4h2v-4zm-4 4h2V9h-2zm-2 0v-6H7v6z"})),Jot=Lt(R.jsx("path",{d:"m7 10 5 5 5-5z"})),Zot=Lt(R.jsx("path",{d:"m7 14 5-5 5 5z"})),eit=Lt(R.jsx("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"})),kle=Lt(R.jsx("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"})),tit=Lt(R.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"})),nit=Lt(R.jsx("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z"})),rit=Lt([R.jsx("circle",{cx:"12",cy:"12",r:"3.2"},"0"),R.jsx("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")]),oit=Lt(R.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"})),iit=Lt(R.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),ait=Lt(R.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"})),sit=Lt(R.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Nle=Lt(R.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),lit=Lt(R.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),cit=Lt(R.jsx("path",{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2m-11-4 2.03 2.71L16 11l4 5H8zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6z"})),uit=Lt(R.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),l2=Lt(R.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),dit=Lt(R.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),HE=Lt(R.jsx("path",{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"})),_le=Lt(R.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),ZU=Lt(R.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),fit=Lt(R.jsx("path",{d:"m12.126 8.125 1.937-1.937 3.747 3.747-1.937 1.938zM20.71 5.63l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75L20.71 7a1 1 0 0 0 0-1.37M2 5l6.63 6.63L3 17.25V21h3.75l5.63-5.62L18 21l2-2L4 3z"})),pit=Lt(R.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"})),hit=Lt(R.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m6 13h-5l-1-2H9.5v5H8V7h6l1 2h3z"})),UE=Lt(R.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})),Lle=Lt(R.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"})),$le=Lt(R.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"})),mit=Lt(R.jsx("path",{d:"m14 6-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22z"})),git=Lt(R.jsx("path",{d:"m14 6-4.22 5.63 1.25 1.67L14 9.33 19 16h-8.46l-4.01-5.37L1 18h22zM5 16l1.52-2.03L8.04 16z"})),yit=Lt([R.jsx("path",{d:"M5 16h3.04l-1.52-2.03z",opacity:".3"},"0"),R.jsx("path",{d:"m9.78 11.63 1.25 1.67L14 9.33 19 16h-8.46l-4.01-5.37L1 18h22L14 6zM5 16l1.52-2.03L8.04 16z"},"1")]),e5=Lt(R.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),vit=Lt(R.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),Fle=Lt(R.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),bit=Lt(R.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),xit=Lt(R.jsx("path",{d:"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"})),wit=Lt([R.jsx("circle",{cx:"12",cy:"12",r:"3.2"},"0"),R.jsx("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")]),Sit=Lt(R.jsx("path",{d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z"})),jle=Lt(R.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"})),Cit=Lt([R.jsx("path",{d:"M9 15.5h6v1H9z"},"0"),R.jsx("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"1"),R.jsx("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"2"),R.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"3")]),Eit=Lt([R.jsx("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"0"),R.jsx("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"1"),R.jsx("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"2"),R.jsx("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"3"),R.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m0-2.5c2.33 0 4.32-1.45 5.12-3.5h-1.67c-.69 1.19-1.97 2-3.45 2s-2.75-.81-3.45-2H6.88c.8 2.05 2.79 3.5 5.12 3.5"},"4")]),Tit=Lt([R.jsx("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"0"),R.jsx("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"1"),R.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m0-6c-2.33 0-4.32 1.45-5.12 3.5h1.67c.69-1.19 1.97-2 3.45-2s2.75.81 3.45 2h1.67c-.8-2.05-2.79-3.5-5.12-3.5"},"2")]),Pit=Lt(R.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"})),Iit=Lt(R.jsx("path",{d:"M19 9h-2v6.59L5.41 4 4 5.41 15.59 17H9v2h10z"})),Oit=Lt(R.jsx("path",{d:"M21 5.47 12 12 7.62 7.62 3 11V8.52L7.83 5l4.38 4.38L21 3zM21 15h-4.7l-4.17 3.34L6 12.41l-3 2.13V17l2.8-2 6.2 6 5-4h4z"})),Mit=Lt(R.jsx("path",{d:"M6.99 11 3 15l3.99 4v-3H14v-2H6.99zM21 9l-3.99-4v3H10v2h7.01v3z"})),c2=e=>{if(e.query.isLoading)return w(lo,{});if(e.query.isError)return w(mn,{sx:{height:200,alignItems:"center",mt:2},component:Jt,direction:"column",justifyContent:"center",children:J(pa,{severity:"error",children:["Error while fetching data: ",e.query.error.message]})});if(e.query.isSuccess)return e.child},Ait=e=>{const t=e.avatarSize||40,n=e.iconSize||40;return w(Ju,{sx:{height:t,width:t,flexShrink:0},src:e.image?.url,children:w(Bp,{sx:{height:n,width:n}})})};function Ble(){return Zr({queryKey:[xt.EXERCISES],queryFn:tAe})}function Dit(e){return Zr({queryKey:[xt.EXERCISE_DETAIL,e],queryFn:()=>pw(e)})}function Rit(){const e=Bt();return zt({mutationFn:t=>rAe(t),onSuccess:()=>{e.invalidateQueries({queryKey:[xt.EXERCISES]})}})}function kit(e){const t=Bt();return zt({mutationFn:n=>aAe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[xt.EXERCISES]}),t.invalidateQueries({queryKey:[xt.EXERCISE_DETAIL,e]})}})}function Nit(e){const t=Bt();return zt({mutationFn:n=>sAe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[xt.EXERCISES]}),t.invalidateQueries({queryKey:[xt.EXERCISE_DETAIL,e]})}})}function _it(e){const t=Bt();return zt({mutationFn:n=>dAe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[xt.EXERCISES]}),t.invalidateQueries({queryKey:[xt.EXERCISE_DETAIL,e]})}})}function Lit(e){const t=Bt();return zt({mutationFn:n=>HZ(n),onSuccess:()=>{t.invalidateQueries({queryKey:[xt.EXERCISES]}),t.invalidateQueries({queryKey:[xt.EXERCISE_DETAIL,e]})}})}function u2(){return Zr({queryKey:[xt.CATEGORIES],queryFn:kMe})}function Nw(){return Zr({queryKey:[xt.MUSCLES],queryFn:ZOe})}function d2(){return Zr({queryKey:[xt.EQUIPMENT],queryFn:AMe})}function xf(){return Zr({queryKey:[xt.LANGUAGES],queryFn:uAe})}/**
- * react-router v7.9.1
- *
- * Copyright (c) Remix Software Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE.md file in the root directory of this source tree.
- *
- * @license MIT
- */var IK="popstate";function $it(e={}){function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return _B("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:GE(o)}return jit(t,n,null,e)}function Xo(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function uf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Fit(){return Math.random().toString(36).substring(2,10)}function OK(e,t){return{usr:e.state,key:e.key,idx:t}}function _B(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?_w(t):t,state:n,key:t&&t.key||r||Fit()}}function GE({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function _w(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function jit(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s="POP",l=null,c=u();c==null&&(c=0,a.replaceState({...a.state,idx:c},""));function u(){return(a.state||{idx:null}).idx}function f(){s="POP";let S=u(),C=S==null?null:S-c;c=S,l&&l({action:s,location:x.location,delta:C})}function h(S,C){s="PUSH";let E=_B(x.location,S,C);c=u()+1;let I=OK(E,c),M=x.createHref(E);try{a.pushState(I,"",M)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;o.location.assign(M)}i&&l&&l({action:s,location:x.location,delta:1})}function g(S,C){s="REPLACE";let E=_B(x.location,S,C);c=u();let I=OK(E,c),M=x.createHref(E);a.replaceState(I,"",M),i&&l&&l({action:s,location:x.location,delta:0})}function y(S){return Bit(S)}let x={get action(){return s},get location(){return e(o,a)},listen(S){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(IK,f),l=S,()=>{o.removeEventListener(IK,f),l=null}},createHref(S){return t(o,S)},createURL:y,encodeLocation(S){let C=y(S);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:h,replace:g,go(S){return a.go(S)}};return x}function Bit(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Xo(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:GE(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function zle(e,t,n="/"){return zit(e,t,n,!1)}function zit(e,t,n,r){let o=typeof t=="string"?_w(t):t,i=$p(o.pathname||"/",n);if(i==null)return null;let a=Vle(e);Vit(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let c=Zit(i);s=Xit(a[l],c,r)}return s}function Vle(e,t=[],n=[],r="",o=!1){let i=(a,s,l=o,c)=>{let u={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(r)&&l)return;Xo(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length)}let f=wp([r,u.relativePath]),h=n.concat(u);a.children&&a.children.length>0&&(Xo(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),Vle(a.children,t,h,f,l)),!(a.path==null&&!a.index)&&t.push({path:f,score:Yit(f,a.index),routesMeta:h})};return e.forEach((a,s)=>{if(a.path===""||!a.path?.includes("?"))i(a,s);else for(let l of Hle(a.path))i(a,s,!0,l)}),t}function Hle(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=Hle(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Vit(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Qit(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Hit=/^:[\w-]+$/,Uit=3,Git=2,Wit=1,qit=10,Kit=-2,MK=e=>e==="*";function Yit(e,t){let n=e.split("/"),r=n.length;return n.some(MK)&&(r+=Kit),t&&(r+=Git),n.filter(o=>!MK(o)).reduce((o,i)=>o+(Hit.test(i)?Uit:i===""?Wit:qit),r)}function Qit(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Xit(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],c=s===r.length-1,u=i==="/"?t:t.slice(i.length)||"/",f=GD({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),h=l.route;if(!f&&c&&n&&!r[r.length-1].route.index&&(f=GD({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!f)return null;Object.assign(o,f.params),a.push({params:o,pathname:wp([i,f.pathname]),pathnameBase:rat(wp([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=wp([i,f.pathnameBase]))}return a}function GD(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Jit(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((c,{paramName:u,isOptional:f},h)=>{if(u==="*"){let y=s[h]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const g=s[h];return f&&!g?c[u]=void 0:c[u]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function Jit(e,t=!1,n=!0){uf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Zit(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return uf(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function $p(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function eat(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?_w(e):e;return{pathname:n?n.startsWith("/")?n:tat(n,t):t,search:oat(r),hash:iat(o)}}function tat(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function N$(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function nat(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ule(e){let t=nat(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Gle(e,t,n,r=!1){let o;typeof e=="string"?o=_w(e):(o={...e},Xo(!o.pathname||!o.pathname.includes("?"),N$("?","pathname","search",o)),Xo(!o.pathname||!o.pathname.includes("#"),N$("#","pathname","hash",o)),Xo(!o.search||!o.search.includes("#"),N$("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}s=f>=0?t[f]:"/"}let l=eat(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var wp=e=>e.join("/").replace(/\/\/+/g,"/"),rat=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),oat=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,iat=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function aat(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Wle=["POST","PUT","PATCH","DELETE"];new Set(Wle);var sat=["GET",...Wle];new Set(sat);var Lw=m.createContext(null);Lw.displayName="DataRouter";var f2=m.createContext(null);f2.displayName="DataRouterState";m.createContext(!1);var qle=m.createContext({isTransitioning:!1});qle.displayName="ViewTransition";var lat=m.createContext(new Map);lat.displayName="Fetchers";var cat=m.createContext(null);cat.displayName="Await";var wf=m.createContext(null);wf.displayName="Navigation";var fP=m.createContext(null);fP.displayName="Location";var Sf=m.createContext({outlet:null,matches:[],isDataRoute:!1});Sf.displayName="Route";var t5=m.createContext(null);t5.displayName="RouteError";function uat(e,{relative:t}={}){Xo(pP(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=m.useContext(wf),{hash:o,pathname:i,search:a}=hP(e,{relative:t}),s=i;return n!=="/"&&(s=i==="/"?n:wp([n,i])),r.createHref({pathname:s,search:a,hash:o})}function pP(){return m.useContext(fP)!=null}function Vv(){return Xo(pP(),"useLocation() may be used only in the context of a <Router> component."),m.useContext(fP).location}var Kle="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Yle(e){m.useContext(wf).static||m.useLayoutEffect(e)}function Yp(){let{isDataRoute:e}=m.useContext(Sf);return e?Cat():dat()}function dat(){Xo(pP(),"useNavigate() may be used only in the context of a <Router> component.");let e=m.useContext(Lw),{basename:t,navigator:n}=m.useContext(wf),{matches:r}=m.useContext(Sf),{pathname:o}=Vv(),i=JSON.stringify(Ule(r)),a=m.useRef(!1);return Yle(()=>{a.current=!0}),m.useCallback((l,c={})=>{if(uf(a.current,Kle),!a.current)return;if(typeof l=="number"){n.go(l);return}let u=Gle(l,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:wp([t,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[t,n,i,o,e])}m.createContext(null);function gl(){let{matches:e}=m.useContext(Sf),t=e[e.length-1];return t?t.params:{}}function hP(e,{relative:t}={}){let{matches:n}=m.useContext(Sf),{pathname:r}=Vv(),o=JSON.stringify(Ule(n));return m.useMemo(()=>Gle(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function fat(e,t){return Qle(e,t)}function Qle(e,t,n,r,o){Xo(pP(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=m.useContext(wf),{matches:a}=m.useContext(Sf),s=a[a.length-1],l=s?s.params:{},c=s?s.pathname:"/",u=s?s.pathnameBase:"/",f=s&&s.route;{let E=f&&f.path||"";Xle(c,!f||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
-
-Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let h=Vv(),g;if(t){let E=typeof t=="string"?_w(t):t;Xo(u==="/"||E.pathname?.startsWith(u),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${E.pathname}" was given in the \`location\` prop.`),g=E}else g=h;let y=g.pathname||"/",x=y;if(u!=="/"){let E=u.replace(/^\//,"").split("/");x="/"+y.replace(/^\//,"").split("/").slice(E.length).join("/")}let S=zle(e,{pathname:x});uf(f||S!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),uf(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=yat(S&&S.map(E=>Object.assign({},E,{params:Object.assign({},l,E.params),pathname:wp([u,i.encodeLocation?i.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?u:wp([u,i.encodeLocation?i.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),a,n,r,o);return t&&C?m.createElement(fP.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},C):C}function pat(){let e=Sat(),t=aat(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=m.createElement(m.Fragment,null,m.createElement("p",null,"💿 Hey developer 👋"),m.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",m.createElement("code",{style:i},"ErrorBoundary")," or"," ",m.createElement("code",{style:i},"errorElement")," prop on your route.")),m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:o},n):null,a)}var hat=m.createElement(pat,null),mat=class extends m.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?m.createElement(Sf.Provider,{value:this.props.routeContext},m.createElement(t5.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function gat({routeContext:e,match:t,children:n}){let r=m.useContext(Lw);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),m.createElement(Sf.Provider,{value:e},n)}function yat(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n?.errors;if(a!=null){let c=i.findIndex(u=>u.route.id&&a?.[u.route.id]!==void 0);Xo(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,c+1))}let s=!1,l=-1;if(n)for(let c=0;c<i.length;c++){let u=i[c];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(l=c),u.route.id){let{loaderData:f,errors:h}=n,g=u.route.loader&&!f.hasOwnProperty(u.route.id)&&(!h||h[u.route.id]===void 0);if(u.route.lazy||g){s=!0,l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((c,u,f)=>{let h,g=!1,y=null,x=null;n&&(h=a&&u.route.id?a[u.route.id]:void 0,y=u.route.errorElement||hat,s&&(l<0&&f===0?(Xle("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,x=null):l===f&&(g=!0,x=u.route.hydrateFallbackElement||null)));let S=t.concat(i.slice(0,f+1)),C=()=>{let E;return h?E=y:g?E=x:u.route.Component?E=m.createElement(u.route.Component,null):u.route.element?E=u.route.element:E=c,m.createElement(gat,{match:u,routeContext:{outlet:c,matches:S,isDataRoute:n!=null},children:E})};return n&&(u.route.ErrorBoundary||u.route.errorElement||f===0)?m.createElement(mat,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0},unstable_onError:r}):C()},null)}function n5(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vat(e){let t=m.useContext(Lw);return Xo(t,n5(e)),t}function bat(e){let t=m.useContext(f2);return Xo(t,n5(e)),t}function xat(e){let t=m.useContext(Sf);return Xo(t,n5(e)),t}function r5(e){let t=xat(e),n=t.matches[t.matches.length-1];return Xo(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function wat(){return r5("useRouteId")}function Sat(){let e=m.useContext(t5),t=bat("useRouteError"),n=r5("useRouteError");return e!==void 0?e:t.errors?.[n]}function Cat(){let{router:e}=vat("useNavigate"),t=r5("useNavigate"),n=m.useRef(!1);return Yle(()=>{n.current=!0}),m.useCallback(async(o,i={})=>{uf(n.current,Kle),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var AK={};function Xle(e,t,n){!t&&!AK[e]&&(AK[e]=!0,uf(!1,n))}m.memo(Eat);function Eat({routes:e,future:t,state:n,unstable_onError:r}){return Qle(e,void 0,n,r,t)}function cn(e){Xo(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Tat({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1}){Xo(!pP(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),s=m.useMemo(()=>({basename:a,navigator:o,static:i,future:{}}),[a,o,i]);typeof n=="string"&&(n=_w(n));let{pathname:l="/",search:c="",hash:u="",state:f=null,key:h="default"}=n,g=m.useMemo(()=>{let y=$p(l,a);return y==null?null:{location:{pathname:y,search:c,hash:u,state:f,key:h},navigationType:r}},[a,l,c,u,f,h,r]);return uf(g!=null,`<Router basename="${a}"> is not able to match the URL "${l}${c}${u}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:m.createElement(wf.Provider,{value:s},m.createElement(fP.Provider,{children:t,value:g}))}function Pat({children:e,location:t}){return fat(LB(e),t)}function LB(e,t=[]){let n=[];return m.Children.forEach(e,(r,o)=>{if(!m.isValidElement(r))return;let i=[...t,o];if(r.type===m.Fragment){n.push.apply(n,LB(r.props.children,i));return}Xo(r.type===cn,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Xo(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=LB(r.props.children,i)),n.push(a)}),n}var yA="get",vA="application/x-www-form-urlencoded";function p2(e){return e!=null&&typeof e.tagName=="string"}function Iat(e){return p2(e)&&e.tagName.toLowerCase()==="button"}function Oat(e){return p2(e)&&e.tagName.toLowerCase()==="form"}function Mat(e){return p2(e)&&e.tagName.toLowerCase()==="input"}function Aat(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Dat(e,t){return e.button===0&&(!t||t==="_self")&&!Aat(e)}var zM=null;function Rat(){if(zM===null)try{new FormData(document.createElement("form"),0),zM=!1}catch{zM=!0}return zM}var kat=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _$(e){return e!=null&&!kat.has(e)?(uf(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vA}"`),null):e}function Nat(e,t){let n,r,o,i,a;if(Oat(e)){let s=e.getAttribute("action");r=s?$p(s,t):null,n=e.getAttribute("method")||yA,o=_$(e.getAttribute("enctype"))||vA,i=new FormData(e)}else if(Iat(e)||Mat(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||s.getAttribute("action");if(r=l?$p(l,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||yA,o=_$(e.getAttribute("formenctype"))||_$(s.getAttribute("enctype"))||vA,i=new FormData(s,e),!Rat()){let{name:c,type:u,value:f}=e;if(u==="image"){let h=c?`${c}.`:"";i.append(`${h}x`,"0"),i.append(`${h}y`,"0")}else c&&i.append(c,f)}}else{if(p2(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=yA,r=null,o=vA,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function o5(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function _at(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&$p(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function Lat(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function $at(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Fat(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let a=await Lat(i,n);return a.links?a.links():[]}return[]}));return Vat(r.flat(1).filter($at).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function DK(e,t,n,r,o,i){let a=(l,c)=>n[c]?l.route.id!==n[c].route.id:!0,s=(l,c)=>n[c].pathname!==l.pathname||n[c].route.path?.endsWith("*")&&n[c].params["*"]!==l.params["*"];return i==="assets"?t.filter((l,c)=>a(l,c)||s(l,c)):i==="data"?t.filter((l,c)=>{let u=r.routes[l.route.id];if(!u||!u.hasLoader)return!1;if(a(l,c)||s(l,c))return!0;if(l.route.shouldRevalidate){let f=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function jat(e,t,{includeHydrateFallback:n}={}){return Bat(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function Bat(e){return[...new Set(e)]}function zat(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Vat(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify(zat(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function Jle(){let e=m.useContext(Lw);return o5(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Hat(){let e=m.useContext(f2);return o5(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var i5=m.createContext(void 0);i5.displayName="FrameworkContext";function Zle(){let e=m.useContext(i5);return o5(e,"You must render this element inside a <HydratedRouter> element"),e}function Uat(e,t){let n=m.useContext(i5),[r,o]=m.useState(!1),[i,a]=m.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:f}=t,h=m.useRef(null);m.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let x=C=>{C.forEach(E=>{a(E.isIntersecting)})},S=new IntersectionObserver(x,{threshold:.5});return h.current&&S.observe(h.current),()=>{S.disconnect()}}},[e]),m.useEffect(()=>{if(r){let x=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(x)}}},[r]);let g=()=>{o(!0)},y=()=>{o(!1),a(!1)};return n?e!=="intent"?[i,h,{}]:[i,h,{onFocus:u1(s,g),onBlur:u1(l,y),onMouseEnter:u1(c,g),onMouseLeave:u1(u,y),onTouchStart:u1(f,g)}]:[!1,h,{}]}function u1(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Gat({page:e,...t}){let{router:n}=Jle(),r=m.useMemo(()=>zle(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?m.createElement(qat,{page:e,matches:r,...t}):null}function Wat(e){let{manifest:t,routeModules:n}=Zle(),[r,o]=m.useState([]);return m.useEffect(()=>{let i=!1;return Fat(e,t,n).then(a=>{i||o(a)}),()=>{i=!0}},[e,t,n]),r}function qat({page:e,matches:t,...n}){let r=Vv(),{manifest:o,routeModules:i}=Zle(),{basename:a}=Jle(),{loaderData:s,matches:l}=Hat(),c=m.useMemo(()=>DK(e,t,l,o,r,"data"),[e,t,l,o,r]),u=m.useMemo(()=>DK(e,t,l,o,r,"assets"),[e,t,l,o,r]),f=m.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let y=new Set,x=!1;if(t.forEach(C=>{let E=o.routes[C.route.id];!E||!E.hasLoader||(!c.some(I=>I.route.id===C.route.id)&&C.route.id in s&&i[C.route.id]?.shouldRevalidate||E.hasClientLoader?x=!0:y.add(C.route.id))}),y.size===0)return[];let S=_at(e,a,"data");return x&&y.size>0&&S.searchParams.set("_routes",t.filter(C=>y.has(C.route.id)).map(C=>C.route.id).join(",")),[S.pathname+S.search]},[a,s,r,o,c,t,e,i]),h=m.useMemo(()=>jat(u,o),[u,o]),g=Wat(u);return m.createElement(m.Fragment,null,f.map(y=>m.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),h.map(y=>m.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),g.map(({key:y,link:x})=>m.createElement("link",{key:y,nonce:n.nonce,...x})))}function Kat(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var ece=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ece&&(window.__reactRouterVersion="7.9.1")}catch{}function a5({basename:e,children:t,window:n}){let r=m.useRef();r.current==null&&(r.current=$it({window:n,v5Compat:!0}));let o=r.current,[i,a]=m.useState({action:o.action,location:o.location}),s=m.useCallback(l=>{m.startTransition(()=>a(l))},[a]);return m.useLayoutEffect(()=>o.listen(s),[o,s]),m.createElement(Tat,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o})}var tce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ri=m.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:f,...h},g){let{basename:y}=m.useContext(wf),x=typeof c=="string"&&tce.test(c),S,C=!1;if(typeof c=="string"&&x&&(S=c,ece))try{let L=new URL(window.location.href),A=c.startsWith("//")?new URL(L.protocol+c):new URL(c),F=$p(A.pathname,y);A.origin===L.origin&&F!=null?c=F+A.search+A.hash:C=!0}catch{uf(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let E=uat(c,{relative:o}),[I,M,O]=Uat(r,h),D=Jat(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:f});function N(L){t&&t(L),L.defaultPrevented||D(L)}let $=m.createElement("a",{...h,...O,href:S||E,onClick:C||i?t:N,ref:Kat(g,M),target:l,"data-discover":!x&&n==="render"?"true":void 0});return I&&!x?m.createElement(m.Fragment,null,$,m.createElement(Gat,{page:E})):$});Ri.displayName="Link";var Yat=m.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:a,viewTransition:s,children:l,...c},u){let f=hP(a,{relative:c.relative}),h=Vv(),g=m.useContext(f2),{navigator:y,basename:x}=m.useContext(wf),S=g!=null&&rst(f)&&s===!0,C=y.encodeLocation?y.encodeLocation(f).pathname:f.pathname,E=h.pathname,I=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;n||(E=E.toLowerCase(),I=I?I.toLowerCase():null,C=C.toLowerCase()),I&&x&&(I=$p(I,x)||I);const M=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let O=E===C||!o&&E.startsWith(C)&&E.charAt(M)==="/",D=I!=null&&(I===C||!o&&I.startsWith(C)&&I.charAt(C.length)==="/"),N={isActive:O,isPending:D,isTransitioning:S},$=O?t:void 0,L;typeof r=="function"?L=r(N):L=[r,O?"active":null,D?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let A=typeof i=="function"?i(N):i;return m.createElement(Ri,{...c,"aria-current":$,className:L,ref:u,style:A,to:a,viewTransition:s},typeof l=="function"?l(N):l)});Yat.displayName="NavLink";var Qat=m.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:a=yA,action:s,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:f,...h},g)=>{let y=tst(),x=nst(s,{relative:c}),S=a.toLowerCase()==="get"?"get":"post",C=typeof s=="string"&&tce.test(s),E=I=>{if(l&&l(I),I.defaultPrevented)return;I.preventDefault();let M=I.nativeEvent.submitter,O=M?.getAttribute("formmethod")||a;y(M||I.currentTarget,{fetcherKey:t,method:O,navigate:n,replace:o,state:i,relative:c,preventScrollReset:u,viewTransition:f})};return m.createElement("form",{ref:g,method:S,action:x,onSubmit:r?l:E,...h,"data-discover":!C&&e==="render"?"true":void 0})});Qat.displayName="Form";function Xat(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nce(e){let t=m.useContext(Lw);return Xo(t,Xat(e)),t}function Jat(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:a}={}){let s=Yp(),l=Vv(),c=hP(e,{relative:i});return m.useCallback(u=>{if(Dat(u,t)){u.preventDefault();let f=n!==void 0?n:GE(l)===GE(c);s(e,{replace:f,state:r,preventScrollReset:o,relative:i,viewTransition:a})}},[l,s,c,n,r,t,e,o,i,a])}var Zat=0,est=()=>`__${String(++Zat)}__`;function tst(){let{router:e}=nce("useSubmit"),{basename:t}=m.useContext(wf),n=wat();return m.useCallback(async(r,o={})=>{let{action:i,method:a,encType:s,formData:l,body:c}=Nat(r,t);if(o.navigate===!1){let u=o.fetcherKey||est();await e.fetch(u,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||a,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||a,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function nst(e,{relative:t}={}){let{basename:n}=m.useContext(wf),r=m.useContext(Sf);Xo(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...hP(e||".",{relative:t})},a=Vv();if(e==null){i.search=a.search;let s=new URLSearchParams(i.search),l=s.getAll("index");if(l.some(u=>u==="")){s.delete("index"),l.filter(f=>f).forEach(f=>s.append("index",f));let u=s.toString();i.search=u?`?${u}`:""}}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:wp([n,i.pathname])),GE(i)}function rst(e,{relative:t}={}){let n=m.useContext(qle);Xo(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=nce("useViewTransitionState"),o=hP(e,{relative:t});if(!n.isTransitioning)return!1;let i=$p(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=$p(n.nextLocation.pathname,r)||n.nextLocation.pathname;return GD(o.pathname,a)!=null||GD(o.pathname,i)!=null}const ost=()=>{const e=gl(),t=parseInt(e.routineId??"");if(Number.isNaN(t))return w("p",{children:"Please pass an integer as the routine id."});const n=bf(t);return w(Pp,{maxWidth:"lg",children:w(c2,{query:n,child:n.isSuccess&&J(_t,{children:[n.data?.description!==""&&w(wt,{variant:"body2",sx:{whiteSpace:"pre-line"},children:n.data?.description}),w(Jt,{spacing:2,sx:{mt:2},children:n.data.dayDataCurrentIteration.filter(r=>r.day!==null).map((r,o)=>w(s5,{routineId:t,dayData:r},`dayDetails-${o}`))})]})})})};function rce(e){const{i18n:t}=We(),n=xf();let r;return n.isSuccess&&(r=Op(t.language,n.data)),w(xe,{container:!0,alignItems:"center",justifyContent:"center",sx:{height:e.rowHeight,marginBottom:e.marginBottom},children:w(xe,{size:12,children:J(Jt,{spacing:0,children:[w(wt,{variant:"h6",children:e.showExercise?e.setConfigData.exercise?.getTranslation(r).name:""}),J("div",{children:[e.setConfigData.textRepr,e.setConfigData.isSpecialType&&w(Yc,{label:e.setConfigData.type,color:"info",size:"small",sx:{marginLeft:"0.5em"}})]}),w(wt,{variant:"caption",children:e.setConfigData.comment})]})})})}function ist(e){return J(xe,{container:!0,alignItems:"flex-start",columnGap:1,wrap:"nowrap",children:[w(xe,{sx:{flex:"0 0 50px"},children:w(Jt,{divider:w(mn,{height:"10px"}),children:e.slotData.exercises.map((t,n)=>w(Ait,{image:t.mainImage,iconSize:40,avatarSize:50},n))})}),w(xe,{sx:{flex:"1 1 auto",minWidth:0},children:e.slotData.setConfigs.map((t,n)=>{const r=n===0||t.exerciseId!==e.slotData.setConfigs[n-1]?.exerciseId;return w(rce,{setConfigData:t,marginBottom:"1em",showExercise:r},n)})})]})}const s5=e=>{const t=(e.readOnly??!1)||e.dayData.day===null||e.dayData.day.isRest,n=Po(),[r,o]=We();return J(oi,{sx:{minWidth:275},children:[w(rd,{sx:{bgcolor:n.palette.grey.A200},action:e.dayData.day===null||e.dayData.day.isRest||t?null:w(Gi,{title:r("routines.addWeightLog"),children:w(An,{href:Cn(hn.ROUTINE_ADD_LOG,o.language,{id:e.routineId,id2:e.dayData.day.id}),children:w(Xot,{})})}),title:KZ(e.dayData.day),avatar:al(e.dayData.date,new Date)?w(Ple,{}):void 0,subheader:w(wt,{sx:{whiteSpace:"pre-line"},children:e.dayData.day?.description})}),e.dayData.slots.length>0&&w(ss,{sx:{padding:0,marginBottom:0},children:w(Jt,{children:e.dayData.slots.map((i,a)=>J("div",{children:[w(mn,{padding:1,children:w(ist,{slotData:i,index:a})}),w($s,{})]},a))})})]})},oce=()=>{const[e,t]=We(),n=rot();return n.isLoading?w(lo,{}):n.data!==null?w(ast,{routine:n.data}):w(Qz,{title:e("routines.routine"),link:Cn(hn.ROUTINE_ADD,t.language)})},ast=e=>{const[t,n]=We();return J(oi,{children:[w(rd,{title:t("routines.routine"),subheader:e.routine.name??"."}),w(ss,{sx:{height:"510px",overflow:"auto"},children:w(ca,{children:e.routine.dayDataCurrentIteration.filter(r=>r.day!==null).map((r,o)=>w(sst,{dayData:r},o))})}),w(iu,{children:w(St,{size:"small",href:Cn(hn.ROUTINE_DETAIL,n.language,{id:e.routine.id}),children:t("seeDetails")})})]})},sst=e=>{const[t,n]=m.useState(!1),{t:r}=We();return J(_t,{children:[J(Gu,{onClick:()=>n(!t),selected:t,disabled:e.dayData.day===null||e.dayData.day?.isRest,children:[w(Ql,{children:t?w(H1,{}):w(hp,{})}),w(ko,{primary:KZ(e.dayData.day),slotProps:{secondary:{noWrap:!0,style:{overflow:"hidden",textOverflow:"ellipsis"}}},secondary:e.dayData.day?.description}),w(Ql,{children:al(e.dayData.date,new Date)?w(Ple,{}):void 0})]}),w(as,{in:t,timeout:"auto",unmountOnExit:!0,children:e.dayData.slots.map((i,a)=>w("div",{children:i.setConfigs.map((s,l)=>w(rce,{setConfigData:s,rowHeight:"70px",showExercise:!0},l))},a))})]})};function mP(e="lastWeek"){return Zr({queryKey:[xt.BODY_WEIGHT,e],queryFn:()=>UOe(e)})}const lst=()=>{const e=Bt();return zt({mutationFn:t=>GOe(t),onSuccess:()=>e.invalidateQueries({queryKey:[xt.BODY_WEIGHT]})})},cst=()=>{const e=Bt();return zt({mutationFn:t=>qOe(t),onSuccess:()=>e.invalidateQueries({queryKey:[xt.BODY_WEIGHT]})})},ust=()=>{const e=Bt();return zt({mutationFn:t=>WOe(t),onSuccess:()=>{e.invalidateQueries({queryKey:[xt.BODY_WEIGHT]})}})},$w=({weightEntry:e,closeFn:t})=>{const n=mP(),r=cst(),o=ust(),[i,a]=m.useState(e?At.fromJSDate(e.date):At.now),[s,l]=We(),c=qi({weight:ki().min(30,"Min weight is 30 kg").max(300,"Max weight is 300 kg").required("Weight field is required")});return n.isLoading?w(lo,{}):w($a,{initialValues:{weight:e?e.weight:0,date:Jr(e?e.date:new Date)},validationSchema:c,onSubmit:async u=>{e?(e.weight=u.weight,e.date=new Date(u.date),o.mutate(e)):(e=new PT(new Date(u.date),u.weight),r.mutate(e)),t&&t()},children:u=>w(ba,{children:J(Jt,{spacing:2,children:[w(On,{fullWidth:!0,id:"weight",label:s("weight"),error:u.touched.weight&&!!u.touched.weight,helperText:u.touched.weight&&u.errors.weight,...u.getFieldProps("weight")}),w(Vc,{dateAdapter:Wu,adapterLocale:l.language,children:w(Ose,{label:s("date"),value:i,slotProps:{textField:{variant:"outlined"}},disableFuture:!0,onChange:f=>{f&&u.setFieldValue("date",f.toJSDate()),a(f)}})}),w(Jt,{direction:"row",justifyContent:"end",sx:{mt:2},children:w(St,{color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:s("submit")})})]})})})},dst="WeightTableDashboard",ice={table:`${dst}-table`},fst=ue("div")(({theme:e})=>({[`&.${ice.table}`]:{"& .MuiPaper-root":{border:"1px solid #bababa"}}})),pst=({weights:e})=>{const[t]=We(),r=e.slice(0,5);return w(fst,{className:ice.table,children:w(lf,{children:J(af,{size:"small",children:[w(jm,{children:J(Pn,{children:[w(Be,{align:"center",children:t("date")}),w(Be,{align:"center",children:t("weight")})]})}),w(sf,{children:r.map(o=>J(Pn,{children:[w(Be,{align:"center",children:xZ(o.date)}),w(Be,{align:"center",children:o.weight})]},o.date.toISOString()))})]})})})},hst=({active:e,payload:t,label:n})=>{const[r,o]=We();return e&&t&&t.length?J(ai,{style:{padding:8},children:[w("p",{children:w("strong",{children:new Date(n).toLocaleDateString(o.language)})}),J("p",{children:[r("weight"),": ",t[0].value]})]}):null},ace=({weights:e,height:t})=>{t=t||300;const r=Po(),[o,i]=We(),[a,s]=qe.useState(!1),[l,c]=qe.useState(),u=()=>s(!1),f=[...e].sort((g,y)=>g.date.getTime()-y.date.getTime()).map(g=>({date:g.date.getTime(),weight:g.weight,entry:g}));function h(g,y){c(y.payload.entry),s(!0)}return J("div",{children:[l&&w(ga,{title:o("edit"),isOpen:a,closeFn:u,children:w($w,{weightEntry:l})}),w(qp,{height:t,children:J(pU,{data:f,children:[w(Wk,{type:"monotone",dataKey:"weight",stroke:r.palette.secondary.main,strokeWidth:2,dot:f.length>30?!1:{strokeWidth:1,r:4},activeDot:{stroke:"black",strokeWidth:1,r:6,onClick:h}}),w(Hm,{stroke:"#ccc",strokeDasharray:"5 5"}),w(Um,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:g=>new Date(g).toLocaleDateString(i.language)}),w(Gm,{domain:["auto","auto"]}),w(JT,{content:w(hst,{})})]})})]})},sce=()=>{const[e]=We(),t=mP("lastYear");return t.isLoading?w(lo,{}):t.data?.length!==void 0&&t.data?.length>0?w(mst,{entries:t.data}):w(Qz,{title:e("weight"),modalContent:w($w,{})})},mst=e=>{const[t,n]=qe.useState(!1),r=()=>n(!0),o=()=>n(!1),[i,a]=We();return J(_t,{children:[J(oi,{children:[w(rd,{title:i("weight"),subheader:"."}),J(ss,{sx:{height:"500px",overflow:"auto"},children:[w(ace,{weights:e.entries,height:200}),w(mn,{sx:{mt:2},children:w(pst,{weights:e.entries})})]}),J(iu,{sx:{justifyContent:"space-between",alignItems:"flex-start"},children:[w(St,{size:"small",href:Cn(hn.WEIGHT_OVERVIEW,a.language),children:i("seeDetails")}),w(Gi,{title:i("addEntry"),children:w(An,{onClick:r,children:w(bi,{})})})]})]}),w(ga,{title:i("add"),isOpen:t,closeFn:o,children:w($w,{closeFn:o})})]})},gst=()=>{const{i18n:e}=We();return w(jU,{callback:n=>{n!==null&&(window.location.href=Cn(hn.INGREDIENT_DETAIL,e.language,{id:n.id}))}})};var L$={exports:{}},d1={},$$={exports:{}},F$={};/**
- * @license React
- * scheduler.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var RK;function yst(){return RK||(RK=1,function(e){function t(V,Y){var X=V.length;V.push(Y);e:for(;0<X;){var te=X-1>>>1,U=V[te];if(0<o(U,Y))V[te]=Y,V[X]=U,X=te;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var Y=V[0],X=V.pop();if(X!==Y){V[0]=X;e:for(var te=0,U=V.length,K=U>>>1;te<K;){var ee=2*(te+1)-1,le=V[ee],ce=ee+1,se=V[ce];if(0>o(le,X))ce<U&&0>o(se,le)?(V[te]=se,V[ce]=X,te=ce):(V[te]=le,V[ee]=X,te=ee);else if(ce<U&&0>o(se,X))V[te]=se,V[ce]=X,te=ce;else break e}}return Y}function o(V,Y){var X=V.sortIndex-Y.sortIndex;return X!==0?X:V.id-Y.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,f=null,h=3,g=!1,y=!1,x=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;function M(V){for(var Y=n(c);Y!==null;){if(Y.callback===null)r(c);else if(Y.startTime<=V)r(c),Y.sortIndex=Y.expirationTime,t(l,Y);else break;Y=n(c)}}function O(V){if(x=!1,M(V),!y)if(n(l)!==null)y=!0,D||(D=!0,z());else{var Y=n(c);Y!==null&&G(O,Y.startTime-V)}}var D=!1,N=-1,$=5,L=-1;function A(){return S?!0:!(e.unstable_now()-L<$)}function F(){if(S=!1,D){var V=e.unstable_now();L=V;var Y=!0;try{e:{y=!1,x&&(x=!1,E(N),N=-1),g=!0;var X=h;try{t:{for(M(V),f=n(l);f!==null&&!(f.expirationTime>V&&A());){var te=f.callback;if(typeof te=="function"){f.callback=null,h=f.priorityLevel;var U=te(f.expirationTime<=V);if(V=e.unstable_now(),typeof U=="function"){f.callback=U,M(V),Y=!0;break t}f===n(l)&&r(l),M(V)}else r(l);f=n(l)}if(f!==null)Y=!0;else{var K=n(c);K!==null&&G(O,K.startTime-V),Y=!1}}break e}finally{f=null,h=X,g=!1}Y=void 0}}finally{Y?z():D=!1}}}var z;if(typeof I=="function")z=function(){I(F)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,Q=H.port2;H.port1.onmessage=F,z=function(){Q.postMessage(null)}}else z=function(){C(F,0)};function G(V,Y){N=C(function(){V(e.unstable_now())},Y)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(V){switch(h){case 1:case 2:case 3:var Y=3;break;default:Y=h}var X=h;h=Y;try{return V()}finally{h=X}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(V,Y){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var X=h;h=V;try{return Y()}finally{h=X}},e.unstable_scheduleCallback=function(V,Y,X){var te=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?te+X:te):X=te,V){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=X+U,V={id:u++,callback:Y,priorityLevel:V,startTime:X,expirationTime:U,sortIndex:-1},X>te?(V.sortIndex=X,t(c,V),n(l)===null&&V===n(c)&&(x?(E(N),N=-1):x=!0,G(O,X-te))):(V.sortIndex=U,t(l,V),y||g||(y=!0,D||(D=!0,z()))),V},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(V){var Y=h;return function(){var X=h;h=Y;try{return V.apply(this,arguments)}finally{h=X}}}}(F$)),F$}var kK;function vst(){return kK||(kK=1,$$.exports=yst()),$$.exports}/**
- * @license React
- * react-dom-client.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var NK;function bst(){if(NK)return d1;NK=1;var e=vst(),t=ew(),n=ZX();function r(d){var p="https://react.dev/errors/"+d;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+d+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(d){return!(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)}function i(d){var p=d,v=d;if(d.alternate)for(;p.return;)p=p.return;else{d=p;do p=d,(p.flags&4098)!==0&&(v=p.return),d=p.return;while(d)}return p.tag===3?v:null}function a(d){if(d.tag===13){var p=d.memoizedState;if(p===null&&(d=d.alternate,d!==null&&(p=d.memoizedState)),p!==null)return p.dehydrated}return null}function s(d){if(i(d)!==d)throw Error(r(188))}function l(d){var p=d.alternate;if(!p){if(p=i(d),p===null)throw Error(r(188));return p!==d?null:d}for(var v=d,P=p;;){var k=v.return;if(k===null)break;var j=k.alternate;if(j===null){if(P=k.return,P!==null){v=P;continue}break}if(k.child===j.child){for(j=k.child;j;){if(j===v)return s(k),d;if(j===P)return s(k),p;j=j.sibling}throw Error(r(188))}if(v.return!==P.return)v=k,P=j;else{for(var Z=!1,ie=k.child;ie;){if(ie===v){Z=!0,v=k,P=j;break}if(ie===P){Z=!0,P=k,v=j;break}ie=ie.sibling}if(!Z){for(ie=j.child;ie;){if(ie===v){Z=!0,v=j,P=k;break}if(ie===P){Z=!0,P=j,v=k;break}ie=ie.sibling}if(!Z)throw Error(r(189))}}if(v.alternate!==P)throw Error(r(190))}if(v.tag!==3)throw Error(r(188));return v.stateNode.current===v?d:p}function c(d){var p=d.tag;if(p===5||p===26||p===27||p===6)return d;for(d=d.child;d!==null;){if(p=c(d),p!==null)return p;d=d.sibling}return null}var u=Object.assign,f=Symbol.for("react.element"),h=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),E=Symbol.for("react.consumer"),I=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),A=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function z(d){return d===null||typeof d!="object"?null:(d=F&&d[F]||d["@@iterator"],typeof d=="function"?d:null)}var H=Symbol.for("react.client.reference");function Q(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===H?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case y:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case O:return"Suspense";case D:return"SuspenseList";case L:return"Activity"}if(typeof d=="object")switch(d.$$typeof){case g:return"Portal";case I:return(d.displayName||"Context")+".Provider";case E:return(d._context.displayName||"Context")+".Consumer";case M:var p=d.render;return d=d.displayName,d||(d=p.displayName||p.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case N:return p=d.displayName||null,p!==null?p:Q(d.type)||"Memo";case $:p=d._payload,d=d._init;try{return Q(d(p))}catch{}}return null}var G=Array.isArray,V=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},te=[],U=-1;function K(d){return{current:d}}function ee(d){0>U||(d.current=te[U],te[U]=null,U--)}function le(d,p){U++,te[U]=d.current,d.current=p}var ce=K(null),se=K(null),fe=K(null),we=K(null);function Oe(d,p){switch(le(fe,p),le(se,d),le(ce,null),p.nodeType){case 9:case 11:d=(d=p.documentElement)&&(d=d.namespaceURI)?Co(d):0;break;default:if(d=p.tagName,p=p.namespaceURI)p=Co(p),d=Mo(p,d);else switch(d){case"svg":d=1;break;case"math":d=2;break;default:d=0}}ee(ce),le(ce,d)}function he(){ee(ce),ee(se),ee(fe)}function me(d){d.memoizedState!==null&&le(we,d);var p=ce.current,v=Mo(p,d.type);p!==v&&(le(se,d),le(ce,v))}function ye(d){se.current===d&&(ee(ce),ee(se)),we.current===d&&(ee(we),Uh._currentValue=X)}var ae=Object.prototype.hasOwnProperty,Se=e.unstable_scheduleCallback,Ie=e.unstable_cancelCallback,Re=e.unstable_shouldYield,ke=e.unstable_requestPaint,Te=e.unstable_now,Ce=e.unstable_getCurrentPriorityLevel,Ze=e.unstable_ImmediatePriority,Me=e.unstable_UserBlockingPriority,_e=e.unstable_NormalPriority,pe=e.unstable_LowPriority,je=e.unstable_IdlePriority,Ke=e.log,et=e.unstable_setDisableYieldValue,nt=null,ot=null;function it(d){if(typeof Ke=="function"&&et(d),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(nt,d)}catch{}}var tt=Math.clz32?Math.clz32:Mt,vt=Math.log,Je=Math.LN2;function Mt(d){return d>>>=0,d===0?32:31-(vt(d)/Je|0)|0}var Gt=256,ht=4194304;function Qt(d){var p=d&42;if(p!==0)return p;switch(d&-d){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return d&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return d&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return d}}function en(d,p,v){var P=d.pendingLanes;if(P===0)return 0;var k=0,j=d.suspendedLanes,Z=d.pingedLanes;d=d.warmLanes;var ie=P&134217727;return ie!==0?(P=ie&~j,P!==0?k=Qt(P):(Z&=ie,Z!==0?k=Qt(Z):v||(v=ie&~d,v!==0&&(k=Qt(v))))):(ie=P&~j,ie!==0?k=Qt(ie):Z!==0?k=Qt(Z):v||(v=P&~d,v!==0&&(k=Qt(v)))),k===0?0:p!==0&&p!==k&&(p&j)===0&&(j=k&-k,v=p&-p,j>=v||j===32&&(v&4194048)!==0)?p:k}function qt(d,p){return(d.pendingLanes&~(d.suspendedLanes&~d.pingedLanes)&p)===0}function zn(d,p){switch(d){case 1:case 2:case 4:case 8:case 64:return p+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return p+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lr(){var d=Gt;return Gt<<=1,(Gt&4194048)===0&&(Gt=256),d}function to(){var d=ht;return ht<<=1,(ht&62914560)===0&&(ht=4194304),d}function xr(d){for(var p=[],v=0;31>v;v++)p.push(d);return p}function Yn(d,p){d.pendingLanes|=p,p!==268435456&&(d.suspendedLanes=0,d.pingedLanes=0,d.warmLanes=0)}function Io(d,p,v,P,k,j){var Z=d.pendingLanes;d.pendingLanes=v,d.suspendedLanes=0,d.pingedLanes=0,d.warmLanes=0,d.expiredLanes&=v,d.entangledLanes&=v,d.errorRecoveryDisabledLanes&=v,d.shellSuspendCounter=0;var ie=d.entanglements,be=d.expirationTimes,ze=d.hiddenUpdates;for(v=Z&~v;0<v;){var dt=31-tt(v),gt=1<<dt;ie[dt]=0,be[dt]=-1;var Ge=ze[dt];if(Ge!==null)for(ze[dt]=null,dt=0;dt<Ge.length;dt++){var Ve=Ge[dt];Ve!==null&&(Ve.lane&=-536870913)}v&=~gt}P!==0&&Ci(d,P,0),j!==0&&k===0&&d.tag!==0&&(d.suspendedLanes|=j&~(Z&~p))}function Ci(d,p,v){d.pendingLanes|=p,d.suspendedLanes&=~p;var P=31-tt(p);d.entangledLanes|=p,d.entanglements[P]=d.entanglements[P]|1073741824|v&4194090}function si(d,p){var v=d.entangledLanes|=p;for(d=d.entanglements;v;){var P=31-tt(v),k=1<<P;k&p|d[P]&p&&(d[P]|=p),v&=~k}}function us(d){switch(d){case 2:d=1;break;case 8:d=4;break;case 32:d=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:d=128;break;case 268435456:d=134217728;break;default:d=0}return d}function fn(d){return d&=-d,2<d?8<d?(d&134217727)!==0?32:268435456:8:2}function Vn(){var d=Y.p;return d!==0?d:(d=window.event,d===void 0?32:UO(d.type))}function $t(d,p){var v=Y.p;try{return Y.p=d,p()}finally{Y.p=v}}var Yt=Math.random().toString(36).slice(2),ln="__reactFiber$"+Yt,pn="__reactProps$"+Yt,cr="__reactContainer$"+Yt,Ei="__reactEvents$"+Yt,ds="__reactListeners$"+Yt,Fs="__reactHandles$"+Yt,cd="__reactResources$"+Yt,Zi="__reactMarker$"+Yt;function qo(d){delete d[ln],delete d[pn],delete d[Ei],delete d[ds],delete d[Fs]}function uo(d){var p=d[ln];if(p)return p;for(var v=d.parentNode;v;){if(p=v[cr]||v[ln]){if(v=p.alternate,p.child!==null||v!==null&&v.child!==null)for(d=RO(d);d!==null;){if(v=d[ln])return v;d=RO(d)}return p}d=v,v=d.parentNode}return null}function xa(d){if(d=d[ln]||d[cr]){var p=d.tag;if(p===5||p===6||p===13||p===26||p===27||p===3)return d}return null}function js(d){var p=d.tag;if(p===5||p===26||p===27||p===6)return d.stateNode;throw Error(r(33))}function vl(d){var p=d[cd];return p||(p=d[cd]={hoistableStyles:new Map,hoistableScripts:new Map}),p}function Ye(d){d[Zi]=!0}var at=new Set,Wt={};function Mn(d,p){an(d,p),an(d+"Capture",p)}function an(d,p){for(Wt[d]=p,d=0;d<p.length;d++)at.add(p[d])}var no=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Oo={},Ti={};function Xm(d){return ae.call(Ti,d)?!0:ae.call(Oo,d)?!1:no.test(d)?Ti[d]=!0:(Oo[d]=!0,!1)}function eh(d,p,v){if(Xm(p))if(v===null)d.removeAttribute(p);else{switch(typeof v){case"undefined":case"function":case"symbol":d.removeAttribute(p);return;case"boolean":var P=p.toLowerCase().slice(0,5);if(P!=="data-"&&P!=="aria-"){d.removeAttribute(p);return}}d.setAttribute(p,""+v)}}function Tf(d,p,v){if(v===null)d.removeAttribute(p);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":d.removeAttribute(p);return}d.setAttribute(p,""+v)}}function fs(d,p,v,P){if(P===null)d.removeAttribute(v);else{switch(typeof P){case"undefined":case"function":case"symbol":case"boolean":d.removeAttribute(v);return}d.setAttributeNS(p,v,""+P)}}var Pf,rr;function wa(d){if(Pf===void 0)try{throw Error()}catch(v){var p=v.stack.trim().match(/\n( *(at )?)/);Pf=p&&p[1]||"",rr=-1<v.stack.indexOf(`
- at`)?" (<anonymous>)":-1<v.stack.indexOf("@")?"@unknown:0:0":""}return`
-`+Pf+d+rr}var Bs=!1;function su(d,p){if(!d||Bs)return"";Bs=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var P={DetermineComponentFrameRoot:function(){try{if(p){var gt=function(){throw Error()};if(Object.defineProperty(gt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(gt,[])}catch(Ve){var Ge=Ve}Reflect.construct(d,[],gt)}else{try{gt.call()}catch(Ve){Ge=Ve}d.call(gt.prototype)}}else{try{throw Error()}catch(Ve){Ge=Ve}(gt=d())&&typeof gt.catch=="function"&&gt.catch(function(){})}}catch(Ve){if(Ve&&Ge&&typeof Ve.stack=="string")return[Ve.stack,Ge.stack]}return[null,null]}};P.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var k=Object.getOwnPropertyDescriptor(P.DetermineComponentFrameRoot,"name");k&&k.configurable&&Object.defineProperty(P.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var j=P.DetermineComponentFrameRoot(),Z=j[0],ie=j[1];if(Z&&ie){var be=Z.split(`
-`),ze=ie.split(`
-`);for(k=P=0;P<be.length&&!be[P].includes("DetermineComponentFrameRoot");)P++;for(;k<ze.length&&!ze[k].includes("DetermineComponentFrameRoot");)k++;if(P===be.length||k===ze.length)for(P=be.length-1,k=ze.length-1;1<=P&&0<=k&&be[P]!==ze[k];)k--;for(;1<=P&&0<=k;P--,k--)if(be[P]!==ze[k]){if(P!==1||k!==1)do if(P--,k--,0>k||be[P]!==ze[k]){var dt=`
-`+be[P].replace(" at new "," at ");return d.displayName&&dt.includes("<anonymous>")&&(dt=dt.replace("<anonymous>",d.displayName)),dt}while(1<=P&&0<=k);break}}}finally{Bs=!1,Error.prepareStackTrace=v}return(v=d?d.displayName||d.name:"")?wa(v):""}function j2(d){switch(d.tag){case 26:case 27:case 5:return wa(d.type);case 16:return wa("Lazy");case 13:return wa("Suspense");case 19:return wa("SuspenseList");case 0:case 15:return su(d.type,!1);case 11:return su(d.type.render,!1);case 1:return su(d.type,!0);case 31:return wa("Activity");default:return""}}function Xw(d){try{var p="";do p+=j2(d),d=d.return;while(d);return p}catch(v){return`
-Error generating stack: `+v.message+`
-`+v.stack}}function ps(d){switch(typeof d){case"bigint":case"boolean":case"number":case"string":case"undefined":return d;case"object":return d;default:return""}}function Jw(d){var p=d.type;return(d=d.nodeName)&&d.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function Zw(d){var p=Jw(d)?"checked":"value",v=Object.getOwnPropertyDescriptor(d.constructor.prototype,p),P=""+d[p];if(!d.hasOwnProperty(p)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var k=v.get,j=v.set;return Object.defineProperty(d,p,{configurable:!0,get:function(){return k.call(this)},set:function(Z){P=""+Z,j.call(this,Z)}}),Object.defineProperty(d,p,{enumerable:v.enumerable}),{getValue:function(){return P},setValue:function(Z){P=""+Z},stopTracking:function(){d._valueTracker=null,delete d[p]}}}}function Wv(d){d._valueTracker||(d._valueTracker=Zw(d))}function eS(d){if(!d)return!1;var p=d._valueTracker;if(!p)return!0;var v=p.getValue(),P="";return d&&(P=Jw(d)?d.checked?"true":"false":d.value),d=P,d!==v?(p.setValue(d),!0):!1}function If(d){if(d=d||(typeof document<"u"?document:void 0),typeof d>"u")return null;try{return d.activeElement||d.body}catch{return d.body}}var kP=/[\n"\\]/g;function zs(d){return d.replace(kP,function(p){return"\\"+p.charCodeAt(0).toString(16)+" "})}function qv(d,p,v,P,k,j,Z,ie){d.name="",Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"?d.type=Z:d.removeAttribute("type"),p!=null?Z==="number"?(p===0&&d.value===""||d.value!=p)&&(d.value=""+ps(p)):d.value!==""+ps(p)&&(d.value=""+ps(p)):Z!=="submit"&&Z!=="reset"||d.removeAttribute("value"),p!=null?Jm(d,Z,ps(p)):v!=null?Jm(d,Z,ps(v)):P!=null&&d.removeAttribute("value"),k==null&&j!=null&&(d.defaultChecked=!!j),k!=null&&(d.checked=k&&typeof k!="function"&&typeof k!="symbol"),ie!=null&&typeof ie!="function"&&typeof ie!="symbol"&&typeof ie!="boolean"?d.name=""+ps(ie):d.removeAttribute("name")}function tS(d,p,v,P,k,j,Z,ie){if(j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(d.type=j),p!=null||v!=null){if(!(j!=="submit"&&j!=="reset"||p!=null))return;v=v!=null?""+ps(v):"",p=p!=null?""+ps(p):v,ie||p===d.value||(d.value=p),d.defaultValue=p}P=P??k,P=typeof P!="function"&&typeof P!="symbol"&&!!P,d.checked=ie?d.checked:!!P,d.defaultChecked=!!P,Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"&&(d.name=Z)}function Jm(d,p,v){p==="number"&&If(d.ownerDocument)===d||d.defaultValue===""+v||(d.defaultValue=""+v)}function th(d,p,v,P){if(d=d.options,p){p={};for(var k=0;k<v.length;k++)p["$"+v[k]]=!0;for(v=0;v<d.length;v++)k=p.hasOwnProperty("$"+d[v].value),d[v].selected!==k&&(d[v].selected=k),k&&P&&(d[v].defaultSelected=!0)}else{for(v=""+ps(v),p=null,k=0;k<d.length;k++){if(d[k].value===v){d[k].selected=!0,P&&(d[k].defaultSelected=!0);return}p!==null||d[k].disabled||(p=d[k])}p!==null&&(p.selected=!0)}}function nS(d,p,v){if(p!=null&&(p=""+ps(p),p!==d.value&&(d.value=p),v==null)){d.defaultValue!==p&&(d.defaultValue=p);return}d.defaultValue=v!=null?""+ps(v):""}function Kv(d,p,v,P){if(p==null){if(P!=null){if(v!=null)throw Error(r(92));if(G(P)){if(1<P.length)throw Error(r(93));P=P[0]}v=P}v==null&&(v=""),p=v}v=ps(p),d.defaultValue=v,P=d.textContent,P===v&&P!==""&&P!==null&&(d.value=P)}function ud(d,p){if(p){var v=d.firstChild;if(v&&v===d.lastChild&&v.nodeType===3){v.nodeValue=p;return}}d.textContent=p}var nh=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function rS(d,p,v){var P=p.indexOf("--")===0;v==null||typeof v=="boolean"||v===""?P?d.setProperty(p,""):p==="float"?d.cssFloat="":d[p]="":P?d.setProperty(p,v):typeof v!="number"||v===0||nh.has(p)?p==="float"?d.cssFloat=v:d[p]=(""+v).trim():d[p]=v+"px"}function oS(d,p,v){if(p!=null&&typeof p!="object")throw Error(r(62));if(d=d.style,v!=null){for(var P in v)!v.hasOwnProperty(P)||p!=null&&p.hasOwnProperty(P)||(P.indexOf("--")===0?d.setProperty(P,""):P==="float"?d.cssFloat="":d[P]="");for(var k in p)P=p[k],p.hasOwnProperty(k)&&v[k]!==P&&rS(d,k,P)}else for(var j in p)p.hasOwnProperty(j)&&rS(d,j,p[j])}function iS(d){if(d.indexOf("-")===-1)return!1;switch(d){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var NP=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),_P=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Zm(d){return _P.test(""+d)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":d}var Yv=null;function aS(d){return d=d.target||d.srcElement||window,d.correspondingUseElement&&(d=d.correspondingUseElement),d.nodeType===3?d.parentNode:d}var rh=null,oh=null;function sS(d){var p=xa(d);if(p&&(d=p.stateNode)){var v=d[pn]||null;e:switch(d=p.stateNode,p.type){case"input":if(qv(d,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name),p=v.name,v.type==="radio"&&p!=null){for(v=d;v.parentNode;)v=v.parentNode;for(v=v.querySelectorAll('input[name="'+zs(""+p)+'"][type="radio"]'),p=0;p<v.length;p++){var P=v[p];if(P!==d&&P.form===d.form){var k=P[pn]||null;if(!k)throw Error(r(90));qv(P,k.value,k.defaultValue,k.defaultValue,k.checked,k.defaultChecked,k.type,k.name)}}for(p=0;p<v.length;p++)P=v[p],P.form===d.form&&eS(P)}break e;case"textarea":nS(d,v.value,v.defaultValue);break e;case"select":p=v.value,p!=null&&th(d,!!v.multiple,p,!1)}}}var lS=!1;function LP(d,p,v){if(lS)return d(p,v);lS=!0;try{var P=d(p);return P}finally{if(lS=!1,(rh!==null||oh!==null)&&(Yb(),rh&&(p=rh,d=oh,oh=rh=null,sS(p),d)))for(p=0;p<d.length;p++)sS(d[p])}}function eg(d,p){var v=d.stateNode;if(v===null)return null;var P=v[pn]||null;if(P===null)return null;v=P[p];e:switch(p){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(P=!P.disabled)||(d=d.type,P=!(d==="button"||d==="input"||d==="select"||d==="textarea")),d=!P;break e;default:d=!1}if(d)return null;if(v&&typeof v!="function")throw Error(r(231,p,typeof v));return v}var lu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tg=!1;if(lu)try{var ng={};Object.defineProperty(ng,"passive",{get:function(){tg=!0}}),window.addEventListener("test",ng,ng),window.removeEventListener("test",ng,ng)}catch{tg=!1}var dd=null,cS=null,Qv=null;function $P(){if(Qv)return Qv;var d,p=cS,v=p.length,P,k="value"in dd?dd.value:dd.textContent,j=k.length;for(d=0;d<v&&p[d]===k[d];d++);var Z=v-d;for(P=1;P<=Z&&p[v-P]===k[j-P];P++);return Qv=k.slice(d,1<P?1-P:void 0)}function Br(d){var p=d.keyCode;return"charCode"in d?(d=d.charCode,d===0&&p===13&&(d=13)):d=p,d===10&&(d=13),32<=d||d===13?d:0}function Rr(){return!0}function FP(){return!1}function Fa(d){function p(v,P,k,j,Z){this._reactName=v,this._targetInst=k,this.type=P,this.nativeEvent=j,this.target=Z,this.currentTarget=null;for(var ie in d)d.hasOwnProperty(ie)&&(v=d[ie],this[ie]=v?v(j):j[ie]);return this.isDefaultPrevented=(j.defaultPrevented!=null?j.defaultPrevented:j.returnValue===!1)?Rr:FP,this.isPropagationStopped=FP,this}return u(p.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=Rr)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=Rr)},persist:function(){},isPersistent:Rr}),p}var Of={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(d){return d.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xv=Fa(Of),rg=u({},Of,{view:0,detail:0}),B2=Fa(rg),Jv,uS,Ko,ih=u({},rg,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ic,button:0,buttons:0,relatedTarget:function(d){return d.relatedTarget===void 0?d.fromElement===d.srcElement?d.toElement:d.fromElement:d.relatedTarget},movementX:function(d){return"movementX"in d?d.movementX:(d!==Ko&&(Ko&&d.type==="mousemove"?(Jv=d.screenX-Ko.screenX,uS=d.screenY-Ko.screenY):uS=Jv=0,Ko=d),Jv)},movementY:function(d){return"movementY"in d?d.movementY:uS}}),fd=Fa(ih),jP=u({},ih,{dataTransfer:0}),dS=Fa(jP),Vs=u({},rg,{relatedTarget:0}),Zv=Fa(Vs),BP=u({},Of,{animationName:0,elapsedTime:0,pseudoElement:0}),zP=Fa(BP),VP=u({},Of,{clipboardData:function(d){return"clipboardData"in d?d.clipboardData:window.clipboardData}}),HP=Fa(VP),UP=u({},Of,{data:0}),ja=Fa(UP),z2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hs={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},V2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function GP(d){var p=this.nativeEvent;return p.getModifierState?p.getModifierState(d):(d=V2[d])?!!p[d]:!1}function ic(){return GP}var eb=u({},rg,{key:function(d){if(d.key){var p=z2[d.key]||d.key;if(p!=="Unidentified")return p}return d.type==="keypress"?(d=Br(d),d===13?"Enter":String.fromCharCode(d)):d.type==="keydown"||d.type==="keyup"?Hs[d.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ic,charCode:function(d){return d.type==="keypress"?Br(d):0},keyCode:function(d){return d.type==="keydown"||d.type==="keyup"?d.keyCode:0},which:function(d){return d.type==="keypress"?Br(d):d.type==="keydown"||d.type==="keyup"?d.keyCode:0}}),fS=Fa(eb),bo=u({},ih,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cu=Fa(bo),pS=u({},rg,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ic}),H2=Fa(pS),hS=u({},Of,{propertyName:0,elapsedTime:0,pseudoElement:0}),U2=Fa(hS),G2=u({},ih,{deltaX:function(d){return"deltaX"in d?d.deltaX:"wheelDeltaX"in d?-d.wheelDeltaX:0},deltaY:function(d){return"deltaY"in d?d.deltaY:"wheelDeltaY"in d?-d.wheelDeltaY:"wheelDelta"in d?-d.wheelDelta:0},deltaZ:0,deltaMode:0}),W2=Fa(G2),WP=u({},Of,{newState:0,oldState:0}),tb=Fa(WP),ah=[9,13,27,32],mS=lu&&"CompositionEvent"in window,sh=null;lu&&"documentMode"in document&&(sh=document.documentMode);var qP=lu&&"TextEvent"in window&&!sh,nb=lu&&(!mS||sh&&8<sh&&11>=sh),rb=" ",gS=!1;function KP(d,p){switch(d){case"keyup":return ah.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ob(d){return d=d.detail,typeof d=="object"&&"data"in d?d.data:null}var pd=!1;function q2(d,p){switch(d){case"compositionend":return ob(p);case"keypress":return p.which!==32?null:(gS=!0,rb);case"textInput":return d=p.data,d===rb&&gS?null:d;default:return null}}function YP(d,p){if(pd)return d==="compositionend"||!mS&&KP(d,p)?(d=$P(),Qv=cS=dd=null,pd=!1,d):null;switch(d){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1<p.char.length)return p.char;if(p.which)return String.fromCharCode(p.which)}return null;case"compositionend":return nb&&p.locale!=="ko"?null:p.data;default:return null}}var hs={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ib(d){var p=d&&d.nodeName&&d.nodeName.toLowerCase();return p==="input"?!!hs[d.type]:p==="textarea"}function lh(d,p,v,P){rh?oh?oh.push(P):oh=[P]:rh=P,p=n0(p,"onChange"),0<p.length&&(v=new Xv("onChange","change",null,v,P),d.push({event:v,listeners:p}))}var ch=null,uh=null;function K2(d){EO(d,0)}function ab(d){var p=js(d);if(eS(p))return d}function QP(d,p){if(d==="change")return p}var XP=!1;if(lu){var yS;if(lu){var hd="oninput"in document;if(!hd){var JP=document.createElement("div");JP.setAttribute("oninput","return;"),hd=typeof JP.oninput=="function"}yS=hd}else yS=!1;XP=yS&&(!document.documentMode||9<document.documentMode)}function ZP(){ch&&(ch.detachEvent("onpropertychange",sb),uh=ch=null)}function sb(d){if(d.propertyName==="value"&&ab(uh)){var p=[];lh(p,uh,d,aS(d)),LP(K2,p)}}function eI(d,p,v){d==="focusin"?(ZP(),ch=p,uh=v,ch.attachEvent("onpropertychange",sb)):d==="focusout"&&ZP()}function md(d){if(d==="selectionchange"||d==="keyup"||d==="keydown")return ab(uh)}function lb(d,p){if(d==="click")return ab(p)}function Y2(d,p){if(d==="input"||d==="change")return ab(p)}function Q2(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var ms=typeof Object.is=="function"?Object.is:Q2;function ac(d,p){if(ms(d,p))return!0;if(typeof d!="object"||d===null||typeof p!="object"||p===null)return!1;var v=Object.keys(d),P=Object.keys(p);if(v.length!==P.length)return!1;for(P=0;P<v.length;P++){var k=v[P];if(!ae.call(p,k)||!ms(d[k],p[k]))return!1}return!0}function Us(d){for(;d&&d.firstChild;)d=d.firstChild;return d}function vS(d,p){var v=Us(d);d=0;for(var P;v;){if(v.nodeType===3){if(P=d+v.textContent.length,d<=p&&P>=p)return{node:v,offset:p-d};d=P}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=Us(v)}}function tI(d,p){return d&&p?d===p?!0:d&&d.nodeType===3?!1:p&&p.nodeType===3?tI(d,p.parentNode):"contains"in d?d.contains(p):d.compareDocumentPosition?!!(d.compareDocumentPosition(p)&16):!1:!1}function nI(d){d=d!=null&&d.ownerDocument!=null&&d.ownerDocument.defaultView!=null?d.ownerDocument.defaultView:window;for(var p=If(d.document);p instanceof d.HTMLIFrameElement;){try{var v=typeof p.contentWindow.location.href=="string"}catch{v=!1}if(v)d=p.contentWindow;else break;p=If(d.document)}return p}function bS(d){var p=d&&d.nodeName&&d.nodeName.toLowerCase();return p&&(p==="input"&&(d.type==="text"||d.type==="search"||d.type==="tel"||d.type==="url"||d.type==="password")||p==="textarea"||d.contentEditable==="true")}var X2=lu&&"documentMode"in document&&11>=document.documentMode,dh=null,gd=null,De=null,lt=!1;function Qe(d,p,v){var P=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;lt||dh==null||dh!==If(P)||(P=dh,"selectionStart"in P&&bS(P)?P={start:P.selectionStart,end:P.selectionEnd}:(P=(P.ownerDocument&&P.ownerDocument.defaultView||window).getSelection(),P={anchorNode:P.anchorNode,anchorOffset:P.anchorOffset,focusNode:P.focusNode,focusOffset:P.focusOffset}),De&&ac(De,P)||(De=P,P=n0(gd,"onSelect"),0<P.length&&(p=new Xv("onSelect","select",null,p,v),d.push({event:p,listeners:P}),p.target=dh)))}function Vt(d,p){var v={};return v[d.toLowerCase()]=p.toLowerCase(),v["Webkit"+d]="webkit"+p,v["Moz"+d]="moz"+p,v}var Sn={animationend:Vt("Animation","AnimationEnd"),animationiteration:Vt("Animation","AnimationIteration"),animationstart:Vt("Animation","AnimationStart"),transitionrun:Vt("Transition","TransitionRun"),transitionstart:Vt("Transition","TransitionStart"),transitioncancel:Vt("Transition","TransitionCancel"),transitionend:Vt("Transition","TransitionEnd")},gr={},Jo={};lu&&(Jo=document.createElement("div").style,"AnimationEvent"in window||(delete Sn.animationend.animation,delete Sn.animationiteration.animation,delete Sn.animationstart.animation),"TransitionEvent"in window||delete Sn.transitionend.transition);function yr(d){if(gr[d])return gr[d];if(!Sn[d])return d;var p=Sn[d],v;for(v in p)if(p.hasOwnProperty(v)&&v in Jo)return gr[d]=p[v];return d}var cb=yr("animationend"),rI=yr("animationiteration"),gs=yr("animationstart"),ub=yr("transitionrun"),J2=yr("transitionstart"),fh=yr("transitioncancel"),og=yr("transitionend"),ig=new Map,Er="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Er.push("scrollEnd");function bl(d,p){ig.set(d,p),Mn(p,[d])}var xS=new WeakMap;function Sa(d,p){if(typeof d=="object"&&d!==null){var v=xS.get(d);return v!==void 0?v:(p={value:d,source:p,stack:Xw(p)},xS.set(d,p),p)}return{value:d,source:p,stack:Xw(p)}}var Gs=[],ph=0,wS=0;function Mf(){for(var d=ph,p=wS=ph=0;p<d;){var v=Gs[p];Gs[p++]=null;var P=Gs[p];Gs[p++]=null;var k=Gs[p];Gs[p++]=null;var j=Gs[p];if(Gs[p++]=null,P!==null&&k!==null){var Z=P.pending;Z===null?k.next=k:(k.next=Z.next,Z.next=k),P.pending=k}j!==0&&ag(v,k,j)}}function xl(d,p,v,P){Gs[ph++]=d,Gs[ph++]=p,Gs[ph++]=v,Gs[ph++]=P,wS|=P,d.lanes|=P,d=d.alternate,d!==null&&(d.lanes|=P)}function hh(d,p,v,P){return xl(d,p,v,P),sg(d)}function Af(d,p){return xl(d,null,null,p),sg(d)}function ag(d,p,v){d.lanes|=v;var P=d.alternate;P!==null&&(P.lanes|=v);for(var k=!1,j=d.return;j!==null;)j.childLanes|=v,P=j.alternate,P!==null&&(P.childLanes|=v),j.tag===22&&(d=j.stateNode,d===null||d._visibility&1||(k=!0)),d=j,j=j.return;return d.tag===3?(j=d.stateNode,k&&p!==null&&(k=31-tt(v),d=j.hiddenUpdates,P=d[k],P===null?d[k]=[p]:P.push(p),p.lane=v|536870912),j):null}function sg(d){if(50<Lh)throw Lh=0,mC=null,Error(r(185));for(var p=d.return;p!==null;)d=p,p=d.return;return d.tag===3?d.stateNode:null}var Df={};function db(d,p,v,P){this.tag=d,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=P,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ba(d,p,v,P){return new db(d,p,v,P)}function Rf(d){return d=d.prototype,!(!d||!d.isReactComponent)}function Ca(d,p){var v=d.alternate;return v===null?(v=Ba(d.tag,p,d.key,d.mode),v.elementType=d.elementType,v.type=d.type,v.stateNode=d.stateNode,v.alternate=d,d.alternate=v):(v.pendingProps=p,v.type=d.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=d.flags&65011712,v.childLanes=d.childLanes,v.lanes=d.lanes,v.child=d.child,v.memoizedProps=d.memoizedProps,v.memoizedState=d.memoizedState,v.updateQueue=d.updateQueue,p=d.dependencies,v.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},v.sibling=d.sibling,v.index=d.index,v.ref=d.ref,v.refCleanup=d.refCleanup,v}function lg(d,p){d.flags&=65011714;var v=d.alternate;return v===null?(d.childLanes=0,d.lanes=p,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=v.childLanes,d.lanes=v.lanes,d.child=v.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=v.memoizedProps,d.memoizedState=v.memoizedState,d.updateQueue=v.updateQueue,d.type=v.type,p=v.dependencies,d.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext}),d}function fb(d,p,v,P,k,j){var Z=0;if(P=d,typeof d=="function")Rf(d)&&(Z=1);else if(typeof d=="string")Z=MN(d,v,ce.current)?26:d==="html"||d==="head"||d==="body"?27:5;else e:switch(d){case L:return d=Ba(31,v,p,k),d.elementType=L,d.lanes=j,d;case y:return kf(v.children,k,j,p);case x:Z=8,k|=24;break;case S:return d=Ba(12,v,p,k|2),d.elementType=S,d.lanes=j,d;case O:return d=Ba(13,v,p,k),d.elementType=O,d.lanes=j,d;case D:return d=Ba(19,v,p,k),d.elementType=D,d.lanes=j,d;default:if(typeof d=="object"&&d!==null)switch(d.$$typeof){case C:case I:Z=10;break e;case E:Z=9;break e;case M:Z=11;break e;case N:Z=14;break e;case $:Z=16,P=null;break e}Z=29,v=Error(r(130,d===null?"null":typeof d,"")),P=null}return p=Ba(Z,v,p,k),p.elementType=d,p.type=P,p.lanes=j,p}function kf(d,p,v,P){return d=Ba(7,d,P,p),d.lanes=v,d}function SS(d,p,v){return d=Ba(6,d,null,p),d.lanes=v,d}function mh(d,p,v){return p=Ba(4,d.children!==null?d.children:[],d.key,p),p.lanes=v,p.stateNode={containerInfo:d.containerInfo,pendingChildren:null,implementation:d.implementation},p}var uu=[],yd=0,pb=null,cg=0,Ws=[],qs=0,fo=null,xo=1,du="";function Nf(d,p){uu[yd++]=cg,uu[yd++]=pb,pb=d,cg=p}function CS(d,p,v){Ws[qs++]=xo,Ws[qs++]=du,Ws[qs++]=fo,fo=d;var P=xo;d=du;var k=32-tt(P)-1;P&=~(1<<k),v+=1;var j=32-tt(p)+k;if(30<j){var Z=k-k%5;j=(P&(1<<Z)-1).toString(32),P>>=Z,k-=Z,xo=1<<32-tt(p)+k|v<<k|P,du=j+d}else xo=1<<j|v<<k|P,du=d}function ES(d){d.return!==null&&(Nf(d,1),CS(d,1,0))}function ug(d){for(;d===pb;)pb=uu[--yd],uu[yd]=null,cg=uu[--yd],uu[yd]=null;for(;d===fo;)fo=Ws[--qs],Ws[qs]=null,du=Ws[--qs],Ws[qs]=null,xo=Ws[--qs],Ws[qs]=null}var li=null,wo=null,or=!1,wl=null,za=!1,gh=Error(r(519));function Ks(d){var p=Error(r(418,""));throw vd(Sa(p,d)),gh}function oI(d){var p=d.stateNode,v=d.type,P=d.memoizedProps;switch(p[ln]=d,p[pn]=P,v){case"dialog":tr("cancel",p),tr("close",p);break;case"iframe":case"object":case"embed":tr("load",p);break;case"video":case"audio":for(v=0;v<Jg.length;v++)tr(Jg[v],p);break;case"source":tr("error",p);break;case"img":case"image":case"link":tr("error",p),tr("load",p);break;case"details":tr("toggle",p);break;case"input":tr("invalid",p),tS(p,P.value,P.defaultValue,P.checked,P.defaultChecked,P.type,P.name,!0),Wv(p);break;case"select":tr("invalid",p);break;case"textarea":tr("invalid",p),Kv(p,P.value,P.defaultValue,P.children),Wv(p)}v=P.children,typeof v!="string"&&typeof v!="number"&&typeof v!="bigint"||p.textContent===""+v||P.suppressHydrationWarning===!0||IO(p.textContent,v)?(P.popover!=null&&(tr("beforetoggle",p),tr("toggle",p)),P.onScroll!=null&&tr("scroll",p),P.onScrollEnd!=null&&tr("scrollend",p),P.onClick!=null&&(p.onclick=r0),p=!0):p=!1,p||Ks(d)}function iI(d){for(li=d.return;li;)switch(li.tag){case 5:case 13:za=!1;return;case 27:case 3:za=!0;return;default:li=li.return}}function dg(d){if(d!==li)return!1;if(!or)return iI(d),or=!0,!1;var p=d.tag,v;if((v=p!==3&&p!==27)&&((v=p===5)&&(v=d.type,v=!(v!=="form"&&v!=="button")||i0(d.type,d.memoizedProps)),v=!v),v&&wo&&Ks(d),iI(d),p===13){if(d=d.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));e:{for(d=d.nextSibling,p=0;d;){if(d.nodeType===8)if(v=d.data,v==="/$"){if(p===0){wo=Il(d.nextSibling);break e}p--}else v!=="$"&&v!=="$!"&&v!=="$?"||p++;d=d.nextSibling}wo=null}}else p===27?(p=wo,el(d.type)?(d=MC,MC=null,wo=d):wo=p):wo=li?Il(d.stateNode.nextSibling):null;return!0}function fg(){wo=li=null,or=!1}function aI(){var d=wl;return d!==null&&(Ya===null?Ya=d:Ya.push.apply(Ya,d),wl=null),d}function vd(d){wl===null?wl=[d]:wl.push(d)}var _f=K(null),bd=null,oe=null;function ys(d,p,v){le(_f,p._currentValue),p._currentValue=v}function Ys(d){d._currentValue=_f.current,ee(_f)}function Va(d,p,v){for(;d!==null;){var P=d.alternate;if((d.childLanes&p)!==p?(d.childLanes|=p,P!==null&&(P.childLanes|=p)):P!==null&&(P.childLanes&p)!==p&&(P.childLanes|=p),d===v)break;d=d.return}}function Qn(d,p,v,P){var k=d.child;for(k!==null&&(k.return=d);k!==null;){var j=k.dependencies;if(j!==null){var Z=k.child;j=j.firstContext;e:for(;j!==null;){var ie=j;j=k;for(var be=0;be<p.length;be++)if(ie.context===p[be]){j.lanes|=v,ie=j.alternate,ie!==null&&(ie.lanes|=v),Va(j.return,v,d),P||(Z=null);break e}j=ie.next}}else if(k.tag===18){if(Z=k.return,Z===null)throw Error(r(341));Z.lanes|=v,j=Z.alternate,j!==null&&(j.lanes|=v),Va(Z,v,d),Z=null}else Z=k.child;if(Z!==null)Z.return=k;else for(Z=k;Z!==null;){if(Z===d){Z=null;break}if(k=Z.sibling,k!==null){k.return=Z.return,Z=k;break}Z=Z.return}k=Z}}function pg(d,p,v,P){d=null;for(var k=p,j=!1;k!==null;){if(!j){if((k.flags&524288)!==0)j=!0;else if((k.flags&262144)!==0)break}if(k.tag===10){var Z=k.alternate;if(Z===null)throw Error(r(387));if(Z=Z.memoizedProps,Z!==null){var ie=k.type;ms(k.pendingProps.value,Z.value)||(d!==null?d.push(ie):d=[ie])}}else if(k===we.current){if(Z=k.alternate,Z===null)throw Error(r(387));Z.memoizedState.memoizedState!==k.memoizedState.memoizedState&&(d!==null?d.push(Uh):d=[Uh])}k=k.return}d!==null&&Qn(p,d,v,P),p.flags|=262144}function hb(d){for(d=d.firstContext;d!==null;){if(!ms(d.context._currentValue,d.memoizedValue))return!0;d=d.next}return!1}function Lf(d){bd=d,oe=null,d=d.dependencies,d!==null&&(d.firstContext=null)}function $o(d){return sI(bd,d)}function mb(d,p){return bd===null&&Lf(d),sI(d,p)}function sI(d,p){var v=p._currentValue;if(p={context:p,memoizedValue:v,next:null},oe===null){if(d===null)throw Error(r(308));oe=p,d.dependencies={lanes:0,firstContext:p},d.flags|=524288}else oe=oe.next=p;return v}var Z2=typeof AbortController<"u"?AbortController:function(){var d=[],p=this.signal={aborted:!1,addEventListener:function(v,P){d.push(P)}};this.abort=function(){p.aborted=!0,d.forEach(function(v){return v()})}},eN=e.unstable_scheduleCallback,tN=e.unstable_NormalPriority,Kr={$$typeof:I,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function TS(){return{controller:new Z2,data:new Map,refCount:0}}function hg(d){d.refCount--,d.refCount===0&&eN(tN,function(){d.controller.abort()})}var mg=null,PS=0,yh=0,Ha=null;function nN(d,p){if(mg===null){var v=mg=[];PS=0,yh=t0(),Ha={status:"pending",value:void 0,then:function(P){v.push(P)}}}return PS++,p.then(lI,lI),p}function lI(){if(--PS===0&&mg!==null){Ha!==null&&(Ha.status="fulfilled");var d=mg;mg=null,yh=0,Ha=null;for(var p=0;p<d.length;p++)(0,d[p])()}}function rN(d,p){var v=[],P={status:"pending",value:null,reason:null,then:function(k){v.push(k)}};return d.then(function(){P.status="fulfilled",P.value=p;for(var k=0;k<v.length;k++)(0,v[k])(p)},function(k){for(P.status="rejected",P.reason=k,k=0;k<v.length;k++)(0,v[k])(void 0)}),P}var cI=V.S;V.S=function(d,p){typeof p=="object"&&p!==null&&typeof p.then=="function"&&nN(d,p),cI!==null&&cI(d,p)};var $f=K(null);function fu(){var d=$f.current;return d!==null?d:ro.pooledCache}function gb(d,p){p===null?le($f,$f.current):le($f,p.pool)}function uI(){var d=fu();return d===null?null:{parent:Kr._currentValue,pool:d}}var Ea=Error(r(460)),dI=Error(r(474)),yb=Error(r(542)),IS={then:function(){}};function fI(d){return d=d.status,d==="fulfilled"||d==="rejected"}function vb(){}function OS(d,p,v){switch(v=d[v],v===void 0?d.push(p):v!==p&&(p.then(vb,vb),p=v),p.status){case"fulfilled":return p.value;case"rejected":throw d=p.reason,hI(d),d;default:if(typeof p.status=="string")p.then(vb,vb);else{if(d=ro,d!==null&&100<d.shellSuspendCounter)throw Error(r(482));d=p,d.status="pending",d.then(function(P){if(p.status==="pending"){var k=p;k.status="fulfilled",k.value=P}},function(P){if(p.status==="pending"){var k=p;k.status="rejected",k.reason=P}})}switch(p.status){case"fulfilled":return p.value;case"rejected":throw d=p.reason,hI(d),d}throw vh=p,Ea}}var vh=null;function pI(){if(vh===null)throw Error(r(459));var d=vh;return vh=null,d}function hI(d){if(d===Ea||d===yb)throw Error(r(483))}var sc=!1;function Ff(d){d.updateQueue={baseState:d.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bh(d,p){d=d.updateQueue,p.updateQueue===d&&(p.updateQueue={baseState:d.baseState,firstBaseUpdate:d.firstBaseUpdate,lastBaseUpdate:d.lastBaseUpdate,shared:d.shared,callbacks:null})}function xd(d){return{lane:d,tag:0,payload:null,callback:null,next:null}}function pu(d,p,v){var P=d.updateQueue;if(P===null)return null;if(P=P.shared,(Nr&2)!==0){var k=P.pending;return k===null?p.next=p:(p.next=k.next,k.next=p),P.pending=p,p=sg(d),ag(d,null,v),p}return xl(d,P,p,v),sg(d)}function gg(d,p,v){if(p=p.updateQueue,p!==null&&(p=p.shared,(v&4194048)!==0)){var P=p.lanes;P&=d.pendingLanes,v|=P,p.lanes=v,si(d,v)}}function Sl(d,p){var v=d.updateQueue,P=d.alternate;if(P!==null&&(P=P.updateQueue,v===P)){var k=null,j=null;if(v=v.firstBaseUpdate,v!==null){do{var Z={lane:v.lane,tag:v.tag,payload:v.payload,callback:null,next:null};j===null?k=j=Z:j=j.next=Z,v=v.next}while(v!==null);j===null?k=j=p:j=j.next=p}else k=j=p;v={baseState:P.baseState,firstBaseUpdate:k,lastBaseUpdate:j,shared:P.shared,callbacks:P.callbacks},d.updateQueue=v;return}d=v.lastBaseUpdate,d===null?v.firstBaseUpdate=p:d.next=p,v.lastBaseUpdate=p}var yg=!1;function Cl(){if(yg){var d=Ha;if(d!==null)throw d}}function ea(d,p,v,P){yg=!1;var k=d.updateQueue;sc=!1;var j=k.firstBaseUpdate,Z=k.lastBaseUpdate,ie=k.shared.pending;if(ie!==null){k.shared.pending=null;var be=ie,ze=be.next;be.next=null,Z===null?j=ze:Z.next=ze,Z=be;var dt=d.alternate;dt!==null&&(dt=dt.updateQueue,ie=dt.lastBaseUpdate,ie!==Z&&(ie===null?dt.firstBaseUpdate=ze:ie.next=ze,dt.lastBaseUpdate=be))}if(j!==null){var gt=k.baseState;Z=0,dt=ze=be=null,ie=j;do{var Ge=ie.lane&-536870913,Ve=Ge!==ie.lane;if(Ve?(hr&Ge)===Ge:(P&Ge)===Ge){Ge!==0&&Ge===yh&&(yg=!0),dt!==null&&(dt=dt.next={lane:0,tag:ie.tag,payload:ie.payload,callback:null,next:null});e:{var yn=d,gn=ie;Ge=p;var Vr=v;switch(gn.tag){case 1:if(yn=gn.payload,typeof yn=="function"){gt=yn.call(Vr,gt,Ge);break e}gt=yn;break e;case 3:yn.flags=yn.flags&-65537|128;case 0:if(yn=gn.payload,Ge=typeof yn=="function"?yn.call(Vr,gt,Ge):yn,Ge==null)break e;gt=u({},gt,Ge);break e;case 2:sc=!0}}Ge=ie.callback,Ge!==null&&(d.flags|=64,Ve&&(d.flags|=8192),Ve=k.callbacks,Ve===null?k.callbacks=[Ge]:Ve.push(Ge))}else Ve={lane:Ge,tag:ie.tag,payload:ie.payload,callback:ie.callback,next:null},dt===null?(ze=dt=Ve,be=gt):dt=dt.next=Ve,Z|=Ge;if(ie=ie.next,ie===null){if(ie=k.shared.pending,ie===null)break;Ve=ie,ie=Ve.next,Ve.next=null,k.lastBaseUpdate=Ve,k.shared.pending=null}}while(!0);dt===null&&(be=gt),k.baseState=be,k.firstBaseUpdate=ze,k.lastBaseUpdate=dt,j===null&&(k.shared.lanes=0),Md|=Z,d.lanes=Z,d.memoizedState=gt}}function mI(d,p){if(typeof d!="function")throw Error(r(191,d));d.call(p)}function MS(d,p){var v=d.callbacks;if(v!==null)for(d.callbacks=null,d=0;d<v.length;d++)mI(v[d],p)}var jf=K(null),wd=K(0);function hu(d,p){d=Cu,le(wd,d),le(jf,p),Cu=d|p.baseLanes}function bb(){le(wd,Cu),le(jf,jf.current)}function AS(){Cu=wd.current,ee(jf),ee(wd)}var El=0,Hn=null,kr=null,ir=null,xh=!1,Bf=!1,ta=!1,wh=0,Sd=0,Qs=null,gI=0;function ur(){throw Error(r(321))}function vg(d,p){if(p===null)return!1;for(var v=0;v<p.length&&v<d.length;v++)if(!ms(d[v],p[v]))return!1;return!0}function DS(d,p,v,P,k,j){return El=j,Hn=p,p.memoizedState=null,p.updateQueue=null,p.lanes=0,V.H=d===null||d.memoizedState===null?MI:YS,ta=!1,j=v(P,k),ta=!1,Bf&&(j=vI(p,v,P,k)),yI(d),j}function yI(d){V.H=Mg;var p=kr!==null&&kr.next!==null;if(El=0,ir=kr=Hn=null,xh=!1,Sd=0,Qs=null,p)throw Error(r(300));d===null||Pi||(d=d.dependencies,d!==null&&hb(d)&&(Pi=!0))}function vI(d,p,v,P){Hn=d;var k=0;do{if(Bf&&(Qs=null),Sd=0,Bf=!1,25<=k)throw Error(r(301));if(k+=1,ir=kr=null,d.updateQueue!=null){var j=d.updateQueue;j.lastEffect=null,j.events=null,j.stores=null,j.memoCache!=null&&(j.memoCache.index=0)}V.H=AI,j=p(v,P)}while(Bf);return j}function RS(){var d=V.H,p=d.useState()[0];return p=typeof p.then=="function"?bg(p):p,d=d.useState()[0],(kr!==null?kr.memoizedState:null)!==d&&(Hn.flags|=1024),p}function kS(){var d=wh!==0;return wh=0,d}function zf(d,p,v){p.updateQueue=d.updateQueue,p.flags&=-2053,d.lanes&=~v}function xb(d){if(xh){for(d=d.memoizedState;d!==null;){var p=d.queue;p!==null&&(p.pending=null),d=d.next}xh=!1}El=0,ir=kr=Hn=null,Bf=!1,Sd=wh=0,Qs=null}function Ua(){var d={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ir===null?Hn.memoizedState=ir=d:ir=ir.next=d,ir}function Zo(){if(kr===null){var d=Hn.alternate;d=d!==null?d.memoizedState:null}else d=kr.next;var p=ir===null?Hn.memoizedState:ir.next;if(p!==null)ir=p,kr=d;else{if(d===null)throw Hn.alternate===null?Error(r(467)):Error(r(310));kr=d,d={memoizedState:kr.memoizedState,baseState:kr.baseState,baseQueue:kr.baseQueue,queue:kr.queue,next:null},ir===null?Hn.memoizedState=ir=d:ir=ir.next=d}return ir}function Vf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bg(d){var p=Sd;return Sd+=1,Qs===null&&(Qs=[]),d=OS(Qs,d,p),p=Hn,(ir===null?p.memoizedState:ir.next)===null&&(p=p.alternate,V.H=p===null||p.memoizedState===null?MI:YS),d}function wb(d){if(d!==null&&typeof d=="object"){if(typeof d.then=="function")return bg(d);if(d.$$typeof===I)return $o(d)}throw Error(r(438,String(d)))}function xg(d){var p=null,v=Hn.updateQueue;if(v!==null&&(p=v.memoCache),p==null){var P=Hn.alternate;P!==null&&(P=P.updateQueue,P!==null&&(P=P.memoCache,P!=null&&(p={data:P.data.map(function(k){return k.slice()}),index:0})))}if(p==null&&(p={data:[],index:0}),v===null&&(v=Vf(),Hn.updateQueue=v),v.memoCache=p,v=p.data[p.index],v===void 0)for(v=p.data[p.index]=Array(d),P=0;P<d;P++)v[P]=A;return p.index++,v}function lc(d,p){return typeof p=="function"?p(d):p}function Sb(d){var p=Zo();return NS(p,kr,d)}function NS(d,p,v){var P=d.queue;if(P===null)throw Error(r(311));P.lastRenderedReducer=v;var k=d.baseQueue,j=P.pending;if(j!==null){if(k!==null){var Z=k.next;k.next=j.next,j.next=Z}p.baseQueue=k=j,P.pending=null}if(j=d.baseState,k===null)d.memoizedState=j;else{p=k.next;var ie=Z=null,be=null,ze=p,dt=!1;do{var gt=ze.lane&-536870913;if(gt!==ze.lane?(hr&gt)===gt:(El&gt)===gt){var Ge=ze.revertLane;if(Ge===0)be!==null&&(be=be.next={lane:0,revertLane:0,action:ze.action,hasEagerState:ze.hasEagerState,eagerState:ze.eagerState,next:null}),gt===yh&&(dt=!0);else if((El&Ge)===Ge){ze=ze.next,Ge===yh&&(dt=!0);continue}else gt={lane:0,revertLane:ze.revertLane,action:ze.action,hasEagerState:ze.hasEagerState,eagerState:ze.eagerState,next:null},be===null?(ie=be=gt,Z=j):be=be.next=gt,Hn.lanes|=Ge,Md|=Ge;gt=ze.action,ta&&v(j,gt),j=ze.hasEagerState?ze.eagerState:v(j,gt)}else Ge={lane:gt,revertLane:ze.revertLane,action:ze.action,hasEagerState:ze.hasEagerState,eagerState:ze.eagerState,next:null},be===null?(ie=be=Ge,Z=j):be=be.next=Ge,Hn.lanes|=gt,Md|=gt;ze=ze.next}while(ze!==null&&ze!==p);if(be===null?Z=j:be.next=ie,!ms(j,d.memoizedState)&&(Pi=!0,dt&&(v=Ha,v!==null)))throw v;d.memoizedState=j,d.baseState=Z,d.baseQueue=be,P.lastRenderedState=j}return k===null&&(P.lanes=0),[d.memoizedState,P.dispatch]}function _S(d){var p=Zo(),v=p.queue;if(v===null)throw Error(r(311));v.lastRenderedReducer=d;var P=v.dispatch,k=v.pending,j=p.memoizedState;if(k!==null){v.pending=null;var Z=k=k.next;do j=d(j,Z.action),Z=Z.next;while(Z!==k);ms(j,p.memoizedState)||(Pi=!0),p.memoizedState=j,p.baseQueue===null&&(p.baseState=j),v.lastRenderedState=j}return[j,P]}function LS(d,p,v){var P=Hn,k=Zo(),j=or;if(j){if(v===void 0)throw Error(r(407));v=v()}else v=p();var Z=!ms((kr||k).memoizedState,v);Z&&(k.memoizedState=v,Pi=!0),k=k.queue;var ie=Eb.bind(null,P,k,d);if(Cg(2048,8,ie,[d]),k.getSnapshot!==p||Z||ir!==null&&ir.memoizedState.tag&1){if(P.flags|=2048,Sh(9,Mb(),bI.bind(null,P,k,v,p),null),ro===null)throw Error(r(349));j||(El&124)!==0||Cb(P,p,v)}return v}function Cb(d,p,v){d.flags|=16384,d={getSnapshot:p,value:v},p=Hn.updateQueue,p===null?(p=Vf(),Hn.updateQueue=p,p.stores=[d]):(v=p.stores,v===null?p.stores=[d]:v.push(d))}function bI(d,p,v,P){p.value=v,p.getSnapshot=P,$S(p)&&FS(d)}function Eb(d,p,v){return v(function(){$S(p)&&FS(d)})}function $S(d){var p=d.getSnapshot;d=d.value;try{var v=p();return!ms(d,v)}catch{return!0}}function FS(d){var p=Af(d,2);p!==null&&Ss(p,d,2)}function Tb(d){var p=Ua();if(typeof d=="function"){var v=d;if(d=v(),ta){it(!0);try{v()}finally{it(!1)}}}return p.memoizedState=p.baseState=d,p.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lc,lastRenderedState:d},p}function wg(d,p,v,P){return d.baseState=v,NS(d,kr,typeof P=="function"?P:lc)}function oN(d,p,v,P,k){if(kb(d))throw Error(r(485));if(d=p.action,d!==null){var j={payload:k,action:d,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Z){j.listeners.push(Z)}};V.T!==null?v(!0):j.isTransition=!1,P(j),v=p.pending,v===null?(j.next=p.pending=j,jS(p,j)):(j.next=v.next,p.pending=v.next=j)}}function jS(d,p){var v=p.action,P=p.payload,k=d.state;if(p.isTransition){var j=V.T,Z={};V.T=Z;try{var ie=v(k,P),be=V.S;be!==null&&be(Z,ie),BS(d,p,ie)}catch(ze){Pb(d,p,ze)}finally{V.T=j}}else try{j=v(k,P),BS(d,p,j)}catch(ze){Pb(d,p,ze)}}function BS(d,p,v){v!==null&&typeof v=="object"&&typeof v.then=="function"?v.then(function(P){xI(d,p,P)},function(P){return Pb(d,p,P)}):xI(d,p,v)}function xI(d,p,v){p.status="fulfilled",p.value=v,wI(p),d.state=v,p=d.pending,p!==null&&(v=p.next,v===p?d.pending=null:(v=v.next,p.next=v,jS(d,v)))}function Pb(d,p,v){var P=d.pending;if(d.pending=null,P!==null){P=P.next;do p.status="rejected",p.reason=v,wI(p),p=p.next;while(p!==P)}d.action=null}function wI(d){d=d.listeners;for(var p=0;p<d.length;p++)(0,d[p])()}function Ib(d,p){return p}function zS(d,p){if(or){var v=ro.formState;if(v!==null){e:{var P=Hn;if(or){if(wo){t:{for(var k=wo,j=za;k.nodeType!==8;){if(!j){k=null;break t}if(k=Il(k.nextSibling),k===null){k=null;break t}}j=k.data,k=j==="F!"||j==="F"?k:null}if(k){wo=Il(k.nextSibling),P=k.data==="F!";break e}}Ks(P)}P=!1}P&&(p=v[0])}}return v=Ua(),v.memoizedState=v.baseState=p,P={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ib,lastRenderedState:p},v.queue=P,v=WS.bind(null,Hn,P),P.dispatch=v,P=Tb(!1),j=qS.bind(null,Hn,!1,P.queue),P=Ua(),k={state:p,dispatch:null,action:d,pending:null},P.queue=k,v=oN.bind(null,Hn,k,j,v),k.dispatch=v,P.memoizedState=d,[p,v,!1]}function Ob(d){var p=Zo();return SI(p,kr,d)}function SI(d,p,v){if(p=NS(d,p,Ib)[0],d=Sb(lc)[0],typeof p=="object"&&p!==null&&typeof p.then=="function")try{var P=bg(p)}catch(Z){throw Z===Ea?yb:Z}else P=p;p=Zo();var k=p.queue,j=k.dispatch;return v!==p.memoizedState&&(Hn.flags|=2048,Sh(9,Mb(),VS.bind(null,k,v),null)),[P,j,d]}function VS(d,p){d.action=p}function $n(d){var p=Zo(),v=kr;if(v!==null)return SI(p,v,d);Zo(),p=p.memoizedState,v=Zo();var P=v.queue.dispatch;return v.memoizedState=d,[p,P,!1]}function Sh(d,p,v,P){return d={tag:d,create:v,deps:P,inst:p,next:null},p=Hn.updateQueue,p===null&&(p=Vf(),Hn.updateQueue=p),v=p.lastEffect,v===null?p.lastEffect=d.next=d:(P=v.next,v.next=d,d.next=P,p.lastEffect=d),d}function Mb(){return{destroy:void 0,resource:void 0}}function Ch(){return Zo().memoizedState}function Sg(d,p,v,P){var k=Ua();P=P===void 0?null:P,Hn.flags|=d,k.memoizedState=Sh(1|p,Mb(),v,P)}function Cg(d,p,v,P){var k=Zo();P=P===void 0?null:P;var j=k.memoizedState.inst;kr!==null&&P!==null&&vg(P,kr.memoizedState.deps)?k.memoizedState=Sh(p,j,v,P):(Hn.flags|=d,k.memoizedState=Sh(1|p,j,v,P))}function CI(d,p){Sg(8390656,8,d,p)}function vs(d,p){Cg(2048,8,d,p)}function EI(d,p){return Cg(4,2,d,p)}function Eg(d,p){return Cg(4,4,d,p)}function Ab(d,p){if(typeof p=="function"){d=d();var v=p(d);return function(){typeof v=="function"?v():p(null)}}if(p!=null)return d=d(),p.current=d,function(){p.current=null}}function HS(d,p,v){v=v!=null?v.concat([d]):null,Cg(4,4,Ab.bind(null,p,d),v)}function Db(){}function Ga(d,p){var v=Zo();p=p===void 0?null:p;var P=v.memoizedState;return p!==null&&vg(p,P[1])?P[0]:(v.memoizedState=[d,p],d)}function mu(d,p){var v=Zo();p=p===void 0?null:p;var P=v.memoizedState;if(p!==null&&vg(p,P[1]))return P[0];if(P=d(),ta){it(!0);try{d()}finally{it(!1)}}return v.memoizedState=[P,p],P}function Tg(d,p,v){return v===void 0||(El&1073741824)!==0?d.memoizedState=p:(d.memoizedState=v,d=rO(),Hn.lanes|=d,Md|=d,v)}function US(d,p,v,P){return ms(v,p)?v:jf.current!==null?(d=Tg(d,v,P),ms(d,p)||(Pi=!0),d):(El&42)===0?(Pi=!0,d.memoizedState=v):(d=rO(),Hn.lanes|=d,Md|=d,p)}function Pg(d,p,v,P,k){var j=Y.p;Y.p=j!==0&&8>j?j:8;var Z=V.T,ie={};V.T=ie,qS(d,!1,p,v);try{var be=k(),ze=V.S;if(ze!==null&&ze(ie,be),be!==null&&typeof be=="object"&&typeof be.then=="function"){var dt=rN(be,P);Hf(d,p,dt,ra(d))}else Hf(d,p,P,ra(d))}catch(gt){Hf(d,p,{then:function(){},status:"rejected",reason:gt},ra())}finally{Y.p=j,V.T=Z}}function TI(){}function Ig(d,p,v,P){if(d.tag!==5)throw Error(r(476));var k=GS(d).queue;Pg(d,k,p,X,v===null?TI:function(){return Rb(d),v(P)})}function GS(d){var p=d.memoizedState;if(p!==null)return p;p={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:lc,lastRenderedState:X},next:null};var v={};return p.next={memoizedState:v,baseState:v,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:lc,lastRenderedState:v},next:null},d.memoizedState=p,d=d.alternate,d!==null&&(d.memoizedState=p),p}function Rb(d){var p=GS(d).next.queue;Hf(d,p,{},ra())}function Og(){return $o(Uh)}function gu(){return Zo().memoizedState}function PI(){return Zo().memoizedState}function Cd(d){for(var p=d.return;p!==null;){switch(p.tag){case 24:case 3:var v=ra();d=xd(v);var P=pu(p,d,v);P!==null&&(Ss(P,p,v),gg(P,p,v)),p={cache:TS()},d.payload=p;return}p=p.return}}function II(d,p,v){var P=ra();v={lane:P,revertLane:0,action:v,hasEagerState:!1,eagerState:null,next:null},kb(d)?OI(p,v):(v=hh(d,p,v,P),v!==null&&(Ss(v,d,P),KS(v,p,P)))}function WS(d,p,v){var P=ra();Hf(d,p,v,P)}function Hf(d,p,v,P){var k={lane:P,revertLane:0,action:v,hasEagerState:!1,eagerState:null,next:null};if(kb(d))OI(p,k);else{var j=d.alternate;if(d.lanes===0&&(j===null||j.lanes===0)&&(j=p.lastRenderedReducer,j!==null))try{var Z=p.lastRenderedState,ie=j(Z,v);if(k.hasEagerState=!0,k.eagerState=ie,ms(ie,Z))return xl(d,p,k,0),ro===null&&Mf(),!1}catch{}finally{}if(v=hh(d,p,k,P),v!==null)return Ss(v,d,P),KS(v,p,P),!0}return!1}function qS(d,p,v,P){if(P={lane:2,revertLane:t0(),action:P,hasEagerState:!1,eagerState:null,next:null},kb(d)){if(p)throw Error(r(479))}else p=hh(d,v,P,2),p!==null&&Ss(p,d,2)}function kb(d){var p=d.alternate;return d===Hn||p!==null&&p===Hn}function OI(d,p){Bf=xh=!0;var v=d.pending;v===null?p.next=p:(p.next=v.next,v.next=p),d.pending=p}function KS(d,p,v){if((v&4194048)!==0){var P=p.lanes;P&=d.pendingLanes,v|=P,p.lanes=v,si(d,v)}}var Mg={readContext:$o,use:wb,useCallback:ur,useContext:ur,useEffect:ur,useImperativeHandle:ur,useLayoutEffect:ur,useInsertionEffect:ur,useMemo:ur,useReducer:ur,useRef:ur,useState:ur,useDebugValue:ur,useDeferredValue:ur,useTransition:ur,useSyncExternalStore:ur,useId:ur,useHostTransitionStatus:ur,useFormState:ur,useActionState:ur,useOptimistic:ur,useMemoCache:ur,useCacheRefresh:ur},MI={readContext:$o,use:wb,useCallback:function(d,p){return Ua().memoizedState=[d,p===void 0?null:p],d},useContext:$o,useEffect:CI,useImperativeHandle:function(d,p,v){v=v!=null?v.concat([d]):null,Sg(4194308,4,Ab.bind(null,p,d),v)},useLayoutEffect:function(d,p){return Sg(4194308,4,d,p)},useInsertionEffect:function(d,p){Sg(4,2,d,p)},useMemo:function(d,p){var v=Ua();p=p===void 0?null:p;var P=d();if(ta){it(!0);try{d()}finally{it(!1)}}return v.memoizedState=[P,p],P},useReducer:function(d,p,v){var P=Ua();if(v!==void 0){var k=v(p);if(ta){it(!0);try{v(p)}finally{it(!1)}}}else k=p;return P.memoizedState=P.baseState=k,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:d,lastRenderedState:k},P.queue=d,d=d.dispatch=II.bind(null,Hn,d),[P.memoizedState,d]},useRef:function(d){var p=Ua();return d={current:d},p.memoizedState=d},useState:function(d){d=Tb(d);var p=d.queue,v=WS.bind(null,Hn,p);return p.dispatch=v,[d.memoizedState,v]},useDebugValue:Db,useDeferredValue:function(d,p){var v=Ua();return Tg(v,d,p)},useTransition:function(){var d=Tb(!1);return d=Pg.bind(null,Hn,d.queue,!0,!1),Ua().memoizedState=d,[!1,d]},useSyncExternalStore:function(d,p,v){var P=Hn,k=Ua();if(or){if(v===void 0)throw Error(r(407));v=v()}else{if(v=p(),ro===null)throw Error(r(349));(hr&124)!==0||Cb(P,p,v)}k.memoizedState=v;var j={value:v,getSnapshot:p};return k.queue=j,CI(Eb.bind(null,P,j,d),[d]),P.flags|=2048,Sh(9,Mb(),bI.bind(null,P,j,v,p),null),v},useId:function(){var d=Ua(),p=ro.identifierPrefix;if(or){var v=du,P=xo;v=(P&~(1<<32-tt(P)-1)).toString(32)+v,p="«"+p+"R"+v,v=wh++,0<v&&(p+="H"+v.toString(32)),p+="»"}else v=gI++,p="«"+p+"r"+v.toString(32)+"»";return d.memoizedState=p},useHostTransitionStatus:Og,useFormState:zS,useActionState:zS,useOptimistic:function(d){var p=Ua();p.memoizedState=p.baseState=d;var v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return p.queue=v,p=qS.bind(null,Hn,!0,v),v.dispatch=p,[d,p]},useMemoCache:xg,useCacheRefresh:function(){return Ua().memoizedState=Cd.bind(null,Hn)}},YS={readContext:$o,use:wb,useCallback:Ga,useContext:$o,useEffect:vs,useImperativeHandle:HS,useInsertionEffect:EI,useLayoutEffect:Eg,useMemo:mu,useReducer:Sb,useRef:Ch,useState:function(){return Sb(lc)},useDebugValue:Db,useDeferredValue:function(d,p){var v=Zo();return US(v,kr.memoizedState,d,p)},useTransition:function(){var d=Sb(lc)[0],p=Zo().memoizedState;return[typeof d=="boolean"?d:bg(d),p]},useSyncExternalStore:LS,useId:gu,useHostTransitionStatus:Og,useFormState:Ob,useActionState:Ob,useOptimistic:function(d,p){var v=Zo();return wg(v,kr,d,p)},useMemoCache:xg,useCacheRefresh:PI},AI={readContext:$o,use:wb,useCallback:Ga,useContext:$o,useEffect:vs,useImperativeHandle:HS,useInsertionEffect:EI,useLayoutEffect:Eg,useMemo:mu,useReducer:_S,useRef:Ch,useState:function(){return _S(lc)},useDebugValue:Db,useDeferredValue:function(d,p){var v=Zo();return kr===null?Tg(v,d,p):US(v,kr.memoizedState,d,p)},useTransition:function(){var d=_S(lc)[0],p=Zo().memoizedState;return[typeof d=="boolean"?d:bg(d),p]},useSyncExternalStore:LS,useId:gu,useHostTransitionStatus:Og,useFormState:$n,useActionState:$n,useOptimistic:function(d,p){var v=Zo();return kr!==null?wg(v,kr,d,p):(v.baseState=d,[d,v.queue.dispatch])},useMemoCache:xg,useCacheRefresh:PI},ci=null,Wa=0;function Nb(d){var p=Wa;return Wa+=1,ci===null&&(ci=[]),OS(ci,d,p)}function Ag(d,p){p=p.props.ref,d.ref=p!==void 0?p:null}function Uf(d,p){throw p.$$typeof===f?Error(r(525)):(d=Object.prototype.toString.call(p),Error(r(31,d==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":d)))}function Gf(d){var p=d._init;return p(d._payload)}function QS(d){function p(Ne,Pe){if(d){var Fe=Ne.deletions;Fe===null?(Ne.deletions=[Pe],Ne.flags|=16):Fe.push(Pe)}}function v(Ne,Pe){if(!d)return null;for(;Pe!==null;)p(Ne,Pe),Pe=Pe.sibling;return null}function P(Ne){for(var Pe=new Map;Ne!==null;)Ne.key!==null?Pe.set(Ne.key,Ne):Pe.set(Ne.index,Ne),Ne=Ne.sibling;return Pe}function k(Ne,Pe){return Ne=Ca(Ne,Pe),Ne.index=0,Ne.sibling=null,Ne}function j(Ne,Pe,Fe){return Ne.index=Fe,d?(Fe=Ne.alternate,Fe!==null?(Fe=Fe.index,Fe<Pe?(Ne.flags|=67108866,Pe):Fe):(Ne.flags|=67108866,Pe)):(Ne.flags|=1048576,Pe)}function Z(Ne){return d&&Ne.alternate===null&&(Ne.flags|=67108866),Ne}function ie(Ne,Pe,Fe,pt){return Pe===null||Pe.tag!==6?(Pe=SS(Fe,Ne.mode,pt),Pe.return=Ne,Pe):(Pe=k(Pe,Fe),Pe.return=Ne,Pe)}function be(Ne,Pe,Fe,pt){var Xt=Fe.type;return Xt===y?dt(Ne,Pe,Fe.props.children,pt,Fe.key):Pe!==null&&(Pe.elementType===Xt||typeof Xt=="object"&&Xt!==null&&Xt.$$typeof===$&&Gf(Xt)===Pe.type)?(Pe=k(Pe,Fe.props),Ag(Pe,Fe),Pe.return=Ne,Pe):(Pe=fb(Fe.type,Fe.key,Fe.props,null,Ne.mode,pt),Ag(Pe,Fe),Pe.return=Ne,Pe)}function ze(Ne,Pe,Fe,pt){return Pe===null||Pe.tag!==4||Pe.stateNode.containerInfo!==Fe.containerInfo||Pe.stateNode.implementation!==Fe.implementation?(Pe=mh(Fe,Ne.mode,pt),Pe.return=Ne,Pe):(Pe=k(Pe,Fe.children||[]),Pe.return=Ne,Pe)}function dt(Ne,Pe,Fe,pt,Xt){return Pe===null||Pe.tag!==7?(Pe=kf(Fe,Ne.mode,pt,Xt),Pe.return=Ne,Pe):(Pe=k(Pe,Fe),Pe.return=Ne,Pe)}function gt(Ne,Pe,Fe){if(typeof Pe=="string"&&Pe!==""||typeof Pe=="number"||typeof Pe=="bigint")return Pe=SS(""+Pe,Ne.mode,Fe),Pe.return=Ne,Pe;if(typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case h:return Fe=fb(Pe.type,Pe.key,Pe.props,null,Ne.mode,Fe),Ag(Fe,Pe),Fe.return=Ne,Fe;case g:return Pe=mh(Pe,Ne.mode,Fe),Pe.return=Ne,Pe;case $:var pt=Pe._init;return Pe=pt(Pe._payload),gt(Ne,Pe,Fe)}if(G(Pe)||z(Pe))return Pe=kf(Pe,Ne.mode,Fe,null),Pe.return=Ne,Pe;if(typeof Pe.then=="function")return gt(Ne,Nb(Pe),Fe);if(Pe.$$typeof===I)return gt(Ne,mb(Ne,Pe),Fe);Uf(Ne,Pe)}return null}function Ge(Ne,Pe,Fe,pt){var Xt=Pe!==null?Pe.key:null;if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number"||typeof Fe=="bigint")return Xt!==null?null:ie(Ne,Pe,""+Fe,pt);if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case h:return Fe.key===Xt?be(Ne,Pe,Fe,pt):null;case g:return Fe.key===Xt?ze(Ne,Pe,Fe,pt):null;case $:return Xt=Fe._init,Fe=Xt(Fe._payload),Ge(Ne,Pe,Fe,pt)}if(G(Fe)||z(Fe))return Xt!==null?null:dt(Ne,Pe,Fe,pt,null);if(typeof Fe.then=="function")return Ge(Ne,Pe,Nb(Fe),pt);if(Fe.$$typeof===I)return Ge(Ne,Pe,mb(Ne,Fe),pt);Uf(Ne,Fe)}return null}function Ve(Ne,Pe,Fe,pt,Xt){if(typeof pt=="string"&&pt!==""||typeof pt=="number"||typeof pt=="bigint")return Ne=Ne.get(Fe)||null,ie(Pe,Ne,""+pt,Xt);if(typeof pt=="object"&&pt!==null){switch(pt.$$typeof){case h:return Ne=Ne.get(pt.key===null?Fe:pt.key)||null,be(Pe,Ne,pt,Xt);case g:return Ne=Ne.get(pt.key===null?Fe:pt.key)||null,ze(Pe,Ne,pt,Xt);case $:var Xn=pt._init;return pt=Xn(pt._payload),Ve(Ne,Pe,Fe,pt,Xt)}if(G(pt)||z(pt))return Ne=Ne.get(Fe)||null,dt(Pe,Ne,pt,Xt,null);if(typeof pt.then=="function")return Ve(Ne,Pe,Fe,Nb(pt),Xt);if(pt.$$typeof===I)return Ve(Ne,Pe,Fe,mb(Pe,pt),Xt);Uf(Pe,pt)}return null}function yn(Ne,Pe,Fe,pt){for(var Xt=null,Xn=null,sn=Pe,vn=Pe=0,Mi=null;sn!==null&&vn<Fe.length;vn++){sn.index>vn?(Mi=sn,sn=null):Mi=sn.sibling;var vr=Ge(Ne,sn,Fe[vn],pt);if(vr===null){sn===null&&(sn=Mi);break}d&&sn&&vr.alternate===null&&p(Ne,sn),Pe=j(vr,Pe,vn),Xn===null?Xt=vr:Xn.sibling=vr,Xn=vr,sn=Mi}if(vn===Fe.length)return v(Ne,sn),or&&Nf(Ne,vn),Xt;if(sn===null){for(;vn<Fe.length;vn++)sn=gt(Ne,Fe[vn],pt),sn!==null&&(Pe=j(sn,Pe,vn),Xn===null?Xt=sn:Xn.sibling=sn,Xn=sn);return or&&Nf(Ne,vn),Xt}for(sn=P(sn);vn<Fe.length;vn++)Mi=Ve(sn,Ne,vn,Fe[vn],pt),Mi!==null&&(d&&Mi.alternate!==null&&sn.delete(Mi.key===null?vn:Mi.key),Pe=j(Mi,Pe,vn),Xn===null?Xt=Mi:Xn.sibling=Mi,Xn=Mi);return d&&sn.forEach(function(jd){return p(Ne,jd)}),or&&Nf(Ne,vn),Xt}function gn(Ne,Pe,Fe,pt){if(Fe==null)throw Error(r(151));for(var Xt=null,Xn=null,sn=Pe,vn=Pe=0,Mi=null,vr=Fe.next();sn!==null&&!vr.done;vn++,vr=Fe.next()){sn.index>vn?(Mi=sn,sn=null):Mi=sn.sibling;var jd=Ge(Ne,sn,vr.value,pt);if(jd===null){sn===null&&(sn=Mi);break}d&&sn&&jd.alternate===null&&p(Ne,sn),Pe=j(jd,Pe,vn),Xn===null?Xt=jd:Xn.sibling=jd,Xn=jd,sn=Mi}if(vr.done)return v(Ne,sn),or&&Nf(Ne,vn),Xt;if(sn===null){for(;!vr.done;vn++,vr=Fe.next())vr=gt(Ne,vr.value,pt),vr!==null&&(Pe=j(vr,Pe,vn),Xn===null?Xt=vr:Xn.sibling=vr,Xn=vr);return or&&Nf(Ne,vn),Xt}for(sn=P(sn);!vr.done;vn++,vr=Fe.next())vr=Ve(sn,Ne,vn,vr.value,pt),vr!==null&&(d&&vr.alternate!==null&&sn.delete(vr.key===null?vn:vr.key),Pe=j(vr,Pe,vn),Xn===null?Xt=vr:Xn.sibling=vr,Xn=vr);return d&&sn.forEach(function(BN){return p(Ne,BN)}),or&&Nf(Ne,vn),Xt}function Vr(Ne,Pe,Fe,pt){if(typeof Fe=="object"&&Fe!==null&&Fe.type===y&&Fe.key===null&&(Fe=Fe.props.children),typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case h:e:{for(var Xt=Fe.key;Pe!==null;){if(Pe.key===Xt){if(Xt=Fe.type,Xt===y){if(Pe.tag===7){v(Ne,Pe.sibling),pt=k(Pe,Fe.props.children),pt.return=Ne,Ne=pt;break e}}else if(Pe.elementType===Xt||typeof Xt=="object"&&Xt!==null&&Xt.$$typeof===$&&Gf(Xt)===Pe.type){v(Ne,Pe.sibling),pt=k(Pe,Fe.props),Ag(pt,Fe),pt.return=Ne,Ne=pt;break e}v(Ne,Pe);break}else p(Ne,Pe);Pe=Pe.sibling}Fe.type===y?(pt=kf(Fe.props.children,Ne.mode,pt,Fe.key),pt.return=Ne,Ne=pt):(pt=fb(Fe.type,Fe.key,Fe.props,null,Ne.mode,pt),Ag(pt,Fe),pt.return=Ne,Ne=pt)}return Z(Ne);case g:e:{for(Xt=Fe.key;Pe!==null;){if(Pe.key===Xt)if(Pe.tag===4&&Pe.stateNode.containerInfo===Fe.containerInfo&&Pe.stateNode.implementation===Fe.implementation){v(Ne,Pe.sibling),pt=k(Pe,Fe.children||[]),pt.return=Ne,Ne=pt;break e}else{v(Ne,Pe);break}else p(Ne,Pe);Pe=Pe.sibling}pt=mh(Fe,Ne.mode,pt),pt.return=Ne,Ne=pt}return Z(Ne);case $:return Xt=Fe._init,Fe=Xt(Fe._payload),Vr(Ne,Pe,Fe,pt)}if(G(Fe))return yn(Ne,Pe,Fe,pt);if(z(Fe)){if(Xt=z(Fe),typeof Xt!="function")throw Error(r(150));return Fe=Xt.call(Fe),gn(Ne,Pe,Fe,pt)}if(typeof Fe.then=="function")return Vr(Ne,Pe,Nb(Fe),pt);if(Fe.$$typeof===I)return Vr(Ne,Pe,mb(Ne,Fe),pt);Uf(Ne,Fe)}return typeof Fe=="string"&&Fe!==""||typeof Fe=="number"||typeof Fe=="bigint"?(Fe=""+Fe,Pe!==null&&Pe.tag===6?(v(Ne,Pe.sibling),pt=k(Pe,Fe),pt.return=Ne,Ne=pt):(v(Ne,Pe),pt=SS(Fe,Ne.mode,pt),pt.return=Ne,Ne=pt),Z(Ne)):v(Ne,Pe)}return function(Ne,Pe,Fe,pt){try{Wa=0;var Xt=Vr(Ne,Pe,Fe,pt);return ci=null,Xt}catch(sn){if(sn===Ea||sn===yb)throw sn;var Xn=Ba(29,sn,null,Ne.mode);return Xn.lanes=pt,Xn.return=Ne,Xn}finally{}}}var Wf=QS(!0),DI=QS(!1),bs=K(null),Ta=null;function Xs(d){var p=d.alternate;le(Fo,Fo.current&1),le(bs,d),Ta===null&&(p===null||jf.current!==null||p.memoizedState!==null)&&(Ta=d)}function RI(d){if(d.tag===22){if(le(Fo,Fo.current),le(bs,d),Ta===null){var p=d.alternate;p!==null&&p.memoizedState!==null&&(Ta=d)}}else yu()}function yu(){le(Fo,Fo.current),le(bs,bs.current)}function cc(d){ee(bs),Ta===d&&(Ta=null),ee(Fo)}var Fo=K(0);function Dg(d){for(var p=d;p!==null;){if(p.tag===13){var v=p.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||v.data==="$?"||Ia(v)))return p}else if(p.tag===19&&p.memoizedProps.revealOrder!==void 0){if((p.flags&128)!==0)return p}else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===d)break;for(;p.sibling===null;){if(p.return===null||p.return===d)return null;p=p.return}p.sibling.return=p.return,p=p.sibling}return null}function Eh(d,p,v,P){p=d.memoizedState,v=v(P,p),v=v==null?p:u({},p,v),d.memoizedState=v,d.lanes===0&&(d.updateQueue.baseState=v)}var Rg={enqueueSetState:function(d,p,v){d=d._reactInternals;var P=ra(),k=xd(P);k.payload=p,v!=null&&(k.callback=v),p=pu(d,k,P),p!==null&&(Ss(p,d,P),gg(p,d,P))},enqueueReplaceState:function(d,p,v){d=d._reactInternals;var P=ra(),k=xd(P);k.tag=1,k.payload=p,v!=null&&(k.callback=v),p=pu(d,k,P),p!==null&&(Ss(p,d,P),gg(p,d,P))},enqueueForceUpdate:function(d,p){d=d._reactInternals;var v=ra(),P=xd(v);P.tag=2,p!=null&&(P.callback=p),p=pu(d,P,v),p!==null&&(Ss(p,d,v),gg(p,d,v))}};function kg(d,p,v,P,k,j,Z){return d=d.stateNode,typeof d.shouldComponentUpdate=="function"?d.shouldComponentUpdate(P,j,Z):p.prototype&&p.prototype.isPureReactComponent?!ac(v,P)||!ac(k,j):!0}function kI(d,p,v,P){d=p.state,typeof p.componentWillReceiveProps=="function"&&p.componentWillReceiveProps(v,P),typeof p.UNSAFE_componentWillReceiveProps=="function"&&p.UNSAFE_componentWillReceiveProps(v,P),p.state!==d&&Rg.enqueueReplaceState(p,p.state,null)}function Ed(d,p){var v=p;if("ref"in p){v={};for(var P in p)P!=="ref"&&(v[P]=p[P])}if(d=d.defaultProps){v===p&&(v=u({},v));for(var k in d)v[k]===void 0&&(v[k]=d[k])}return v}var qf=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var p=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(p))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)};function XS(d){qf(d)}function _b(d){console.error(d)}function NI(d){qf(d)}function Ng(d,p){try{var v=d.onUncaughtError;v(p.value,{componentStack:p.stack})}catch(P){setTimeout(function(){throw P})}}function uc(d,p,v){try{var P=d.onCaughtError;P(v.value,{componentStack:v.stack,errorBoundary:p.tag===1?p.stateNode:null})}catch(k){setTimeout(function(){throw k})}}function Lb(d,p,v){return v=xd(v),v.tag=3,v.payload={element:null},v.callback=function(){Ng(d,p)},v}function JS(d){return d=xd(d),d.tag=3,d}function _I(d,p,v,P){var k=v.type.getDerivedStateFromError;if(typeof k=="function"){var j=P.value;d.payload=function(){return k(j)},d.callback=function(){uc(p,v,P)}}var Z=v.stateNode;Z!==null&&typeof Z.componentDidCatch=="function"&&(d.callback=function(){uc(p,v,P),typeof k!="function"&&(Ad===null?Ad=new Set([this]):Ad.add(this));var ie=P.stack;this.componentDidCatch(P.value,{componentStack:ie!==null?ie:""})})}function LI(d,p,v,P,k){if(v.flags|=32768,P!==null&&typeof P=="object"&&typeof P.then=="function"){if(p=v.alternate,p!==null&&pg(p,v,k,!0),v=bs.current,v!==null){switch(v.tag){case 13:return Ta===null?yC():v.alternate===null&&jo===0&&(jo=3),v.flags&=-257,v.flags|=65536,v.lanes=k,P===IS?v.flags|=16384:(p=v.updateQueue,p===null?v.updateQueue=new Set([P]):p.add(P),xC(d,P,k)),!1;case 22:return v.flags|=65536,P===IS?v.flags|=16384:(p=v.updateQueue,p===null?(p={transitions:null,markerInstances:null,retryQueue:new Set([P])},v.updateQueue=p):(v=p.retryQueue,v===null?p.retryQueue=new Set([P]):v.add(P)),xC(d,P,k)),!1}throw Error(r(435,v.tag))}return xC(d,P,k),yC(),!1}if(or)return p=bs.current,p!==null?((p.flags&65536)===0&&(p.flags|=256),p.flags|=65536,p.lanes=k,P!==gh&&(d=Error(r(422),{cause:P}),vd(Sa(d,v)))):(P!==gh&&(p=Error(r(423),{cause:P}),vd(Sa(p,v))),d=d.current.alternate,d.flags|=65536,k&=-k,d.lanes|=k,P=Sa(P,v),k=Lb(d.stateNode,P,k),Sl(d,k),jo!==4&&(jo=2)),!1;var j=Error(r(520),{cause:P});if(j=Sa(j,v),Ug===null?Ug=[j]:Ug.push(j),jo!==4&&(jo=2),p===null)return!0;P=Sa(P,v),v=p;do{switch(v.tag){case 3:return v.flags|=65536,d=k&-k,v.lanes|=d,d=Lb(v.stateNode,P,d),Sl(v,d),!1;case 1:if(p=v.type,j=v.stateNode,(v.flags&128)===0&&(typeof p.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&(Ad===null||!Ad.has(j))))return v.flags|=65536,k&=-k,v.lanes|=k,k=JS(k),_I(k,d,v,P),Sl(v,k),!1}v=v.return}while(v!==null);return!1}var $I=Error(r(461)),Pi=!1;function po(d,p,v,P){p.child=d===null?DI(p,null,v,P):Wf(p,d.child,v,P)}function $b(d,p,v,P,k){v=v.render;var j=p.ref;if("ref"in P){var Z={};for(var ie in P)ie!=="ref"&&(Z[ie]=P[ie])}else Z=P;return Lf(p),P=DS(d,p,v,Z,j,k),ie=kS(),d!==null&&!Pi?(zf(d,p,k),vu(d,p,k)):(or&&ie&&ES(p),p.flags|=1,po(d,p,P,k),p.child)}function Fb(d,p,v,P,k){if(d===null){var j=v.type;return typeof j=="function"&&!Rf(j)&&j.defaultProps===void 0&&v.compare===null?(p.tag=15,p.type=j,jb(d,p,j,P,k)):(d=fb(v.type,null,P,p,p.mode,k),d.ref=p.ref,d.return=p,p.child=d)}if(j=d.child,!Tl(d,k)){var Z=j.memoizedProps;if(v=v.compare,v=v!==null?v:ac,v(Z,P)&&d.ref===p.ref)return vu(d,p,k)}return p.flags|=1,d=Ca(j,P),d.ref=p.ref,d.return=p,p.child=d}function jb(d,p,v,P,k){if(d!==null){var j=d.memoizedProps;if(ac(j,P)&&d.ref===p.ref)if(Pi=!1,p.pendingProps=P=j,Tl(d,k))(d.flags&131072)!==0&&(Pi=!0);else return p.lanes=d.lanes,vu(d,p,k)}return Th(d,p,v,P,k)}function _g(d,p,v){var P=p.pendingProps,k=P.children,j=d!==null?d.memoizedState:null;if(P.mode==="hidden"){if((p.flags&128)!==0){if(P=j!==null?j.baseLanes|v:v,d!==null){for(k=p.child=d.child,j=0;k!==null;)j=j|k.lanes|k.childLanes,k=k.sibling;p.childLanes=j&~P}else p.childLanes=0,p.child=null;return Kf(d,p,P,v)}if((v&536870912)!==0)p.memoizedState={baseLanes:0,cachePool:null},d!==null&&gb(p,j!==null?j.cachePool:null),j!==null?hu(p,j):bb(),RI(p);else return p.lanes=p.childLanes=536870912,Kf(d,p,j!==null?j.baseLanes|v:v,v)}else j!==null?(gb(p,j.cachePool),hu(p,j),yu(),p.memoizedState=null):(d!==null&&gb(p,null),bb(),yu());return po(d,p,k,v),p.child}function Kf(d,p,v,P){var k=fu();return k=k===null?null:{parent:Kr._currentValue,pool:k},p.memoizedState={baseLanes:v,cachePool:k},d!==null&&gb(p,null),bb(),RI(p),d!==null&&pg(d,p,P,!0),null}function dn(d,p){var v=p.ref;if(v===null)d!==null&&d.ref!==null&&(p.flags|=4194816);else{if(typeof v!="function"&&typeof v!="object")throw Error(r(284));(d===null||d.ref!==v)&&(p.flags|=4194816)}}function Th(d,p,v,P,k){return Lf(p),v=DS(d,p,v,P,void 0,k),P=kS(),d!==null&&!Pi?(zf(d,p,k),vu(d,p,k)):(or&&P&&ES(p),p.flags|=1,po(d,p,v,k),p.child)}function Bb(d,p,v,P,k,j){return Lf(p),p.updateQueue=null,v=vI(p,P,v,k),yI(d),P=kS(),d!==null&&!Pi?(zf(d,p,j),vu(d,p,j)):(or&&P&&ES(p),p.flags|=1,po(d,p,v,j),p.child)}function Td(d,p,v,P,k){if(Lf(p),p.stateNode===null){var j=Df,Z=v.contextType;typeof Z=="object"&&Z!==null&&(j=$o(Z)),j=new v(P,j),p.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,j.updater=Rg,p.stateNode=j,j._reactInternals=p,j=p.stateNode,j.props=P,j.state=p.memoizedState,j.refs={},Ff(p),Z=v.contextType,j.context=typeof Z=="object"&&Z!==null?$o(Z):Df,j.state=p.memoizedState,Z=v.getDerivedStateFromProps,typeof Z=="function"&&(Eh(p,v,Z,P),j.state=p.memoizedState),typeof v.getDerivedStateFromProps=="function"||typeof j.getSnapshotBeforeUpdate=="function"||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(Z=j.state,typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount(),Z!==j.state&&Rg.enqueueReplaceState(j,j.state,null),ea(p,P,j,k),Cl(),j.state=p.memoizedState),typeof j.componentDidMount=="function"&&(p.flags|=4194308),P=!0}else if(d===null){j=p.stateNode;var ie=p.memoizedProps,be=Ed(v,ie);j.props=be;var ze=j.context,dt=v.contextType;Z=Df,typeof dt=="object"&&dt!==null&&(Z=$o(dt));var gt=v.getDerivedStateFromProps;dt=typeof gt=="function"||typeof j.getSnapshotBeforeUpdate=="function",ie=p.pendingProps!==ie,dt||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(ie||ze!==Z)&&kI(p,j,P,Z),sc=!1;var Ge=p.memoizedState;j.state=Ge,ea(p,P,j,k),Cl(),ze=p.memoizedState,ie||Ge!==ze||sc?(typeof gt=="function"&&(Eh(p,v,gt,P),ze=p.memoizedState),(be=sc||kg(p,v,be,P,Ge,ze,Z))?(dt||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount()),typeof j.componentDidMount=="function"&&(p.flags|=4194308)):(typeof j.componentDidMount=="function"&&(p.flags|=4194308),p.memoizedProps=P,p.memoizedState=ze),j.props=P,j.state=ze,j.context=Z,P=be):(typeof j.componentDidMount=="function"&&(p.flags|=4194308),P=!1)}else{j=p.stateNode,bh(d,p),Z=p.memoizedProps,dt=Ed(v,Z),j.props=dt,gt=p.pendingProps,Ge=j.context,ze=v.contextType,be=Df,typeof ze=="object"&&ze!==null&&(be=$o(ze)),ie=v.getDerivedStateFromProps,(ze=typeof ie=="function"||typeof j.getSnapshotBeforeUpdate=="function")||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(Z!==gt||Ge!==be)&&kI(p,j,P,be),sc=!1,Ge=p.memoizedState,j.state=Ge,ea(p,P,j,k),Cl();var Ve=p.memoizedState;Z!==gt||Ge!==Ve||sc||d!==null&&d.dependencies!==null&&hb(d.dependencies)?(typeof ie=="function"&&(Eh(p,v,ie,P),Ve=p.memoizedState),(dt=sc||kg(p,v,dt,P,Ge,Ve,be)||d!==null&&d.dependencies!==null&&hb(d.dependencies))?(ze||typeof j.UNSAFE_componentWillUpdate!="function"&&typeof j.componentWillUpdate!="function"||(typeof j.componentWillUpdate=="function"&&j.componentWillUpdate(P,Ve,be),typeof j.UNSAFE_componentWillUpdate=="function"&&j.UNSAFE_componentWillUpdate(P,Ve,be)),typeof j.componentDidUpdate=="function"&&(p.flags|=4),typeof j.getSnapshotBeforeUpdate=="function"&&(p.flags|=1024)):(typeof j.componentDidUpdate!="function"||Z===d.memoizedProps&&Ge===d.memoizedState||(p.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||Z===d.memoizedProps&&Ge===d.memoizedState||(p.flags|=1024),p.memoizedProps=P,p.memoizedState=Ve),j.props=P,j.state=Ve,j.context=be,P=dt):(typeof j.componentDidUpdate!="function"||Z===d.memoizedProps&&Ge===d.memoizedState||(p.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||Z===d.memoizedProps&&Ge===d.memoizedState||(p.flags|=1024),P=!1)}return j=P,dn(d,p),P=(p.flags&128)!==0,j||P?(j=p.stateNode,v=P&&typeof v.getDerivedStateFromError!="function"?null:j.render(),p.flags|=1,d!==null&&P?(p.child=Wf(p,d.child,null,k),p.child=Wf(p,null,v,k)):po(d,p,v,k),p.memoizedState=j.state,d=p.child):d=vu(d,p,k),d}function FI(d,p,v,P){return fg(),p.flags|=256,po(d,p,v,P),p.child}var Lg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function zb(d){return{baseLanes:d,cachePool:uI()}}function Ii(d,p,v){return d=d!==null?d.childLanes&~v:0,p&&(d|=Zs),d}function jI(d,p,v){var P=p.pendingProps,k=!1,j=(p.flags&128)!==0,Z;if((Z=j)||(Z=d!==null&&d.memoizedState===null?!1:(Fo.current&2)!==0),Z&&(k=!0,p.flags&=-129),Z=(p.flags&32)!==0,p.flags&=-33,d===null){if(or){if(k?Xs(p):yu(),or){var ie=wo,be;if(be=ie){e:{for(be=ie,ie=za;be.nodeType!==8;){if(!ie){ie=null;break e}if(be=Il(be.nextSibling),be===null){ie=null;break e}}ie=be}ie!==null?(p.memoizedState={dehydrated:ie,treeContext:fo!==null?{id:xo,overflow:du}:null,retryLane:536870912,hydrationErrors:null},be=Ba(18,null,null,0),be.stateNode=ie,be.return=p,p.child=be,li=p,wo=null,be=!0):be=!1}be||Ks(p)}if(ie=p.memoizedState,ie!==null&&(ie=ie.dehydrated,ie!==null))return Ia(ie)?p.lanes=32:p.lanes=536870912,null;cc(p)}return ie=P.children,P=P.fallback,k?(yu(),k=p.mode,ie=$g({mode:"hidden",children:ie},k),P=kf(P,k,v,null),ie.return=p,P.return=p,ie.sibling=P,p.child=ie,k=p.child,k.memoizedState=zb(v),k.childLanes=Ii(d,Z,v),p.memoizedState=Lg,P):(Xs(p),ZS(p,ie))}if(be=d.memoizedState,be!==null&&(ie=be.dehydrated,ie!==null)){if(j)p.flags&256?(Xs(p),p.flags&=-257,p=eC(d,p,v)):p.memoizedState!==null?(yu(),p.child=d.child,p.flags|=128,p=null):(yu(),k=P.fallback,ie=p.mode,P=$g({mode:"visible",children:P.children},ie),k=kf(k,ie,v,null),k.flags|=2,P.return=p,k.return=p,P.sibling=k,p.child=P,Wf(p,d.child,null,v),P=p.child,P.memoizedState=zb(v),P.childLanes=Ii(d,Z,v),p.memoizedState=Lg,p=k);else if(Xs(p),Ia(ie)){if(Z=ie.nextSibling&&ie.nextSibling.dataset,Z)var ze=Z.dgst;Z=ze,P=Error(r(419)),P.stack="",P.digest=Z,vd({value:P,source:null,stack:null}),p=eC(d,p,v)}else if(Pi||pg(d,p,v,!1),Z=(v&d.childLanes)!==0,Pi||Z){if(Z=ro,Z!==null&&(P=v&-v,P=(P&42)!==0?1:us(P),P=(P&(Z.suspendedLanes|v))!==0?0:P,P!==0&&P!==be.retryLane))throw be.retryLane=P,Af(d,P),Ss(Z,d,P),$I;ie.data==="$?"||yC(),p=eC(d,p,v)}else ie.data==="$?"?(p.flags|=192,p.child=d.child,p=null):(d=be.treeContext,wo=Il(ie.nextSibling),li=p,or=!0,wl=null,za=!1,d!==null&&(Ws[qs++]=xo,Ws[qs++]=du,Ws[qs++]=fo,xo=d.id,du=d.overflow,fo=p),p=ZS(p,P.children),p.flags|=4096);return p}return k?(yu(),k=P.fallback,ie=p.mode,be=d.child,ze=be.sibling,P=Ca(be,{mode:"hidden",children:P.children}),P.subtreeFlags=be.subtreeFlags&65011712,ze!==null?k=Ca(ze,k):(k=kf(k,ie,v,null),k.flags|=2),k.return=p,P.return=p,P.sibling=k,p.child=P,P=k,k=p.child,ie=d.child.memoizedState,ie===null?ie=zb(v):(be=ie.cachePool,be!==null?(ze=Kr._currentValue,be=be.parent!==ze?{parent:ze,pool:ze}:be):be=uI(),ie={baseLanes:ie.baseLanes|v,cachePool:be}),k.memoizedState=ie,k.childLanes=Ii(d,Z,v),p.memoizedState=Lg,P):(Xs(p),v=d.child,d=v.sibling,v=Ca(v,{mode:"visible",children:P.children}),v.return=p,v.sibling=null,d!==null&&(Z=p.deletions,Z===null?(p.deletions=[d],p.flags|=16):Z.push(d)),p.child=v,p.memoizedState=null,v)}function ZS(d,p){return p=$g({mode:"visible",children:p},d.mode),p.return=d,d.child=p}function $g(d,p){return d=Ba(22,d,null,p),d.lanes=0,d.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},d}function eC(d,p,v){return Wf(p,d.child,null,v),d=ZS(p,p.pendingProps.children),d.flags|=2,p.memoizedState=null,d}function tC(d,p,v){d.lanes|=p;var P=d.alternate;P!==null&&(P.lanes|=p),Va(d.return,p,v)}function nC(d,p,v,P,k){var j=d.memoizedState;j===null?d.memoizedState={isBackwards:p,rendering:null,renderingStartTime:0,last:P,tail:v,tailMode:k}:(j.isBackwards=p,j.rendering=null,j.renderingStartTime=0,j.last=P,j.tail=v,j.tailMode=k)}function BI(d,p,v){var P=p.pendingProps,k=P.revealOrder,j=P.tail;if(po(d,p,P.children,v),P=Fo.current,(P&2)!==0)P=P&1|2,p.flags|=128;else{if(d!==null&&(d.flags&128)!==0)e:for(d=p.child;d!==null;){if(d.tag===13)d.memoizedState!==null&&tC(d,v,p);else if(d.tag===19)tC(d,v,p);else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===p)break e;for(;d.sibling===null;){if(d.return===null||d.return===p)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}P&=1}switch(le(Fo,P),k){case"forwards":for(v=p.child,k=null;v!==null;)d=v.alternate,d!==null&&Dg(d)===null&&(k=v),v=v.sibling;v=k,v===null?(k=p.child,p.child=null):(k=v.sibling,v.sibling=null),nC(p,!1,k,v,j);break;case"backwards":for(v=null,k=p.child,p.child=null;k!==null;){if(d=k.alternate,d!==null&&Dg(d)===null){p.child=k;break}d=k.sibling,k.sibling=v,v=k,k=d}nC(p,!0,v,null,j);break;case"together":nC(p,!1,null,null,void 0);break;default:p.memoizedState=null}return p.child}function vu(d,p,v){if(d!==null&&(p.dependencies=d.dependencies),Md|=p.lanes,(v&p.childLanes)===0)if(d!==null){if(pg(d,p,v,!1),(v&p.childLanes)===0)return null}else return null;if(d!==null&&p.child!==d.child)throw Error(r(153));if(p.child!==null){for(d=p.child,v=Ca(d,d.pendingProps),p.child=v,v.return=p;d.sibling!==null;)d=d.sibling,v=v.sibling=Ca(d,d.pendingProps),v.return=p;v.sibling=null}return p.child}function Tl(d,p){return(d.lanes&p)!==0?!0:(d=d.dependencies,!!(d!==null&&hb(d)))}function Pa(d,p,v){switch(p.tag){case 3:Oe(p,p.stateNode.containerInfo),ys(p,Kr,d.memoizedState.cache),fg();break;case 27:case 5:me(p);break;case 4:Oe(p,p.stateNode.containerInfo);break;case 10:ys(p,p.type,p.memoizedProps.value);break;case 13:var P=p.memoizedState;if(P!==null)return P.dehydrated!==null?(Xs(p),p.flags|=128,null):(v&p.child.childLanes)!==0?jI(d,p,v):(Xs(p),d=vu(d,p,v),d!==null?d.sibling:null);Xs(p);break;case 19:var k=(d.flags&128)!==0;if(P=(v&p.childLanes)!==0,P||(pg(d,p,v,!1),P=(v&p.childLanes)!==0),k){if(P)return BI(d,p,v);p.flags|=128}if(k=p.memoizedState,k!==null&&(k.rendering=null,k.tail=null,k.lastEffect=null),le(Fo,Fo.current),P)break;return null;case 22:case 23:return p.lanes=0,_g(d,p,v);case 24:ys(p,Kr,d.memoizedState.cache)}return vu(d,p,v)}function Vb(d,p,v){if(d!==null)if(d.memoizedProps!==p.pendingProps)Pi=!0;else{if(!Tl(d,v)&&(p.flags&128)===0)return Pi=!1,Pa(d,p,v);Pi=(d.flags&131072)!==0}else Pi=!1,or&&(p.flags&1048576)!==0&&CS(p,cg,p.index);switch(p.lanes=0,p.tag){case 16:e:{d=p.pendingProps;var P=p.elementType,k=P._init;if(P=k(P._payload),p.type=P,typeof P=="function")Rf(P)?(d=Ed(P,d),p.tag=1,p=Td(null,p,P,d,v)):(p.tag=0,p=Th(null,p,P,d,v));else{if(P!=null){if(k=P.$$typeof,k===M){p.tag=11,p=$b(null,p,P,d,v);break e}else if(k===N){p.tag=14,p=Fb(null,p,P,d,v);break e}}throw p=Q(P)||P,Error(r(306,p,""))}}return p;case 0:return Th(d,p,p.type,p.pendingProps,v);case 1:return P=p.type,k=Ed(P,p.pendingProps),Td(d,p,P,k,v);case 3:e:{if(Oe(p,p.stateNode.containerInfo),d===null)throw Error(r(387));P=p.pendingProps;var j=p.memoizedState;k=j.element,bh(d,p),ea(p,P,null,v);var Z=p.memoizedState;if(P=Z.cache,ys(p,Kr,P),P!==j.cache&&Qn(p,[Kr],v,!0),Cl(),P=Z.element,j.isDehydrated)if(j={element:P,isDehydrated:!1,cache:Z.cache},p.updateQueue.baseState=j,p.memoizedState=j,p.flags&256){p=FI(d,p,P,v);break e}else if(P!==k){k=Sa(Error(r(424)),p),vd(k),p=FI(d,p,P,v);break e}else{switch(d=p.stateNode.containerInfo,d.nodeType){case 9:d=d.body;break;default:d=d.nodeName==="HTML"?d.ownerDocument.body:d}for(wo=Il(d.firstChild),li=p,or=!0,wl=null,za=!0,v=DI(p,null,P,v),p.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling}else{if(fg(),P===k){p=vu(d,p,v);break e}po(d,p,P,v)}p=p.child}return p;case 26:return dn(d,p),d===null?(v=LO(p.type,null,p.pendingProps,null))?p.memoizedState=v:or||(v=p.type,d=p.pendingProps,P=Xf(fe.current).createElement(v),P[ln]=p,P[pn]=d,fi(P,v,d),Ye(P),p.stateNode=P):p.memoizedState=LO(p.type,d.memoizedProps,p.pendingProps,d.memoizedState),null;case 27:return me(p),d===null&&or&&(P=p.stateNode=kO(p.type,p.pendingProps,fe.current),li=p,za=!0,k=wo,el(p.type)?(MC=k,wo=Il(P.firstChild)):wo=k),po(d,p,p.pendingProps.children,v),dn(d,p),d===null&&(p.flags|=4194304),p.child;case 5:return d===null&&or&&((k=P=wo)&&(P=DO(P,p.type,p.pendingProps,za),P!==null?(p.stateNode=P,li=p,wo=Il(P.firstChild),za=!1,k=!0):k=!1),k||Ks(p)),me(p),k=p.type,j=p.pendingProps,Z=d!==null?d.memoizedProps:null,P=j.children,i0(k,j)?P=null:Z!==null&&i0(k,Z)&&(p.flags|=32),p.memoizedState!==null&&(k=DS(d,p,RS,null,null,v),Uh._currentValue=k),dn(d,p),po(d,p,P,v),p.child;case 6:return d===null&&or&&((d=v=wo)&&(v=s0(v,p.pendingProps,za),v!==null?(p.stateNode=v,li=p,wo=null,d=!0):d=!1),d||Ks(p)),null;case 13:return jI(d,p,v);case 4:return Oe(p,p.stateNode.containerInfo),P=p.pendingProps,d===null?p.child=Wf(p,null,P,v):po(d,p,P,v),p.child;case 11:return $b(d,p,p.type,p.pendingProps,v);case 7:return po(d,p,p.pendingProps,v),p.child;case 8:return po(d,p,p.pendingProps.children,v),p.child;case 12:return po(d,p,p.pendingProps.children,v),p.child;case 10:return P=p.pendingProps,ys(p,p.type,P.value),po(d,p,P.children,v),p.child;case 9:return k=p.type._context,P=p.pendingProps.children,Lf(p),k=$o(k),P=P(k),p.flags|=1,po(d,p,P,v),p.child;case 14:return Fb(d,p,p.type,p.pendingProps,v);case 15:return jb(d,p,p.type,p.pendingProps,v);case 19:return BI(d,p,v);case 31:return P=p.pendingProps,v=p.mode,P={mode:P.mode,children:P.children},d===null?(v=$g(P,v),v.ref=p.ref,p.child=v,v.return=p,p=v):(v=Ca(d.child,P),v.ref=p.ref,p.child=v,v.return=p,p=v),p;case 22:return _g(d,p,v);case 24:return Lf(p),P=$o(Kr),d===null?(k=fu(),k===null&&(k=ro,j=TS(),k.pooledCache=j,j.refCount++,j!==null&&(k.pooledCacheLanes|=v),k=j),p.memoizedState={parent:P,cache:k},Ff(p),ys(p,Kr,k)):((d.lanes&v)!==0&&(bh(d,p),ea(p,null,null,v),Cl()),k=d.memoizedState,j=p.memoizedState,k.parent!==P?(k={parent:P,cache:P},p.memoizedState=k,p.lanes===0&&(p.memoizedState=p.updateQueue.baseState=k),ys(p,Kr,P)):(P=j.cache,ys(p,Kr,P),P!==k.cache&&Qn(p,[Kr],v,!0))),po(d,p,p.pendingProps.children,v),p.child;case 29:throw p.pendingProps}throw Error(r(156,p.tag))}function bu(d){d.flags|=4}function Hb(d,p){if(p.type!=="stylesheet"||(p.state.loading&4)!==0)d.flags&=-16777217;else if(d.flags|=16777216,!pi(p)){if(p=bs.current,p!==null&&((hr&4194048)===hr?Ta!==null:(hr&62914560)!==hr&&(hr&536870912)===0||p!==Ta))throw vh=IS,dI;d.flags|=8192}}function Ub(d,p){p!==null&&(d.flags|=4),d.flags&16384&&(p=d.tag!==22?to():536870912,d.lanes|=p,Rh|=p)}function Fg(d,p){if(!or)switch(d.tailMode){case"hidden":p=d.tail;for(var v=null;p!==null;)p.alternate!==null&&(v=p),p=p.sibling;v===null?d.tail=null:v.sibling=null;break;case"collapsed":v=d.tail;for(var P=null;v!==null;)v.alternate!==null&&(P=v),v=v.sibling;P===null?p||d.tail===null?d.tail=null:d.tail.sibling=null:P.sibling=null}}function Yr(d){var p=d.alternate!==null&&d.alternate.child===d.child,v=0,P=0;if(p)for(var k=d.child;k!==null;)v|=k.lanes|k.childLanes,P|=k.subtreeFlags&65011712,P|=k.flags&65011712,k.return=d,k=k.sibling;else for(k=d.child;k!==null;)v|=k.lanes|k.childLanes,P|=k.subtreeFlags,P|=k.flags,k.return=d,k=k.sibling;return d.subtreeFlags|=P,d.childLanes=v,p}function zI(d,p,v){var P=p.pendingProps;switch(ug(p),p.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yr(p),null;case 1:return Yr(p),null;case 3:return v=p.stateNode,P=null,d!==null&&(P=d.memoizedState.cache),p.memoizedState.cache!==P&&(p.flags|=2048),Ys(Kr),he(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(d===null||d.child===null)&&(dg(p)?bu(p):d===null||d.memoizedState.isDehydrated&&(p.flags&256)===0||(p.flags|=1024,aI())),Yr(p),null;case 26:return v=p.memoizedState,d===null?(bu(p),v!==null?(Yr(p),Hb(p,v)):(Yr(p),p.flags&=-16777217)):v?v!==d.memoizedState?(bu(p),Yr(p),Hb(p,v)):(Yr(p),p.flags&=-16777217):(d.memoizedProps!==P&&bu(p),Yr(p),p.flags&=-16777217),null;case 27:ye(p),v=fe.current;var k=p.type;if(d!==null&&p.stateNode!=null)d.memoizedProps!==P&&bu(p);else{if(!P){if(p.stateNode===null)throw Error(r(166));return Yr(p),null}d=ce.current,dg(p)?oI(p):(d=kO(k,P,v),p.stateNode=d,bu(p))}return Yr(p),null;case 5:if(ye(p),v=p.type,d!==null&&p.stateNode!=null)d.memoizedProps!==P&&bu(p);else{if(!P){if(p.stateNode===null)throw Error(r(166));return Yr(p),null}if(d=ce.current,dg(p))oI(p);else{switch(k=Xf(fe.current),d){case 1:d=k.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:d=k.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":d=k.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":d=k.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":d=k.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof P.is=="string"?k.createElement("select",{is:P.is}):k.createElement("select"),P.multiple?d.multiple=!0:P.size&&(d.size=P.size);break;default:d=typeof P.is=="string"?k.createElement(v,{is:P.is}):k.createElement(v)}}d[ln]=p,d[pn]=P;e:for(k=p.child;k!==null;){if(k.tag===5||k.tag===6)d.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===p)break e;for(;k.sibling===null;){if(k.return===null||k.return===p)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}p.stateNode=d;e:switch(fi(d,v,P),v){case"button":case"input":case"select":case"textarea":d=!!P.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&bu(p)}}return Yr(p),p.flags&=-16777217,null;case 6:if(d&&p.stateNode!=null)d.memoizedProps!==P&&bu(p);else{if(typeof P!="string"&&p.stateNode===null)throw Error(r(166));if(d=fe.current,dg(p)){if(d=p.stateNode,v=p.memoizedProps,P=null,k=li,k!==null)switch(k.tag){case 27:case 5:P=k.memoizedProps}d[ln]=p,d=!!(d.nodeValue===v||P!==null&&P.suppressHydrationWarning===!0||IO(d.nodeValue,v)),d||Ks(p)}else d=Xf(d).createTextNode(P),d[ln]=p,p.stateNode=d}return Yr(p),null;case 13:if(P=p.memoizedState,d===null||d.memoizedState!==null&&d.memoizedState.dehydrated!==null){if(k=dg(p),P!==null&&P.dehydrated!==null){if(d===null){if(!k)throw Error(r(318));if(k=p.memoizedState,k=k!==null?k.dehydrated:null,!k)throw Error(r(317));k[ln]=p}else fg(),(p.flags&128)===0&&(p.memoizedState=null),p.flags|=4;Yr(p),k=!1}else k=aI(),d!==null&&d.memoizedState!==null&&(d.memoizedState.hydrationErrors=k),k=!0;if(!k)return p.flags&256?(cc(p),p):(cc(p),null)}if(cc(p),(p.flags&128)!==0)return p.lanes=v,p;if(v=P!==null,d=d!==null&&d.memoizedState!==null,v){P=p.child,k=null,P.alternate!==null&&P.alternate.memoizedState!==null&&P.alternate.memoizedState.cachePool!==null&&(k=P.alternate.memoizedState.cachePool.pool);var j=null;P.memoizedState!==null&&P.memoizedState.cachePool!==null&&(j=P.memoizedState.cachePool.pool),j!==k&&(P.flags|=2048)}return v!==d&&v&&(p.child.flags|=8192),Ub(p,p.updateQueue),Yr(p),null;case 4:return he(),d===null&&TC(p.stateNode.containerInfo),Yr(p),null;case 10:return Ys(p.type),Yr(p),null;case 19:if(ee(Fo),k=p.memoizedState,k===null)return Yr(p),null;if(P=(p.flags&128)!==0,j=k.rendering,j===null)if(P)Fg(k,!1);else{if(jo!==0||d!==null&&(d.flags&128)!==0)for(d=p.child;d!==null;){if(j=Dg(d),j!==null){for(p.flags|=128,Fg(k,!1),d=j.updateQueue,p.updateQueue=d,Ub(p,d),p.subtreeFlags=0,d=v,v=p.child;v!==null;)lg(v,d),v=v.sibling;return le(Fo,Fo.current&1|2),p.child}d=d.sibling}k.tail!==null&&Te()>kh&&(p.flags|=128,P=!0,Fg(k,!1),p.lanes=4194304)}else{if(!P)if(d=Dg(j),d!==null){if(p.flags|=128,P=!0,d=d.updateQueue,p.updateQueue=d,Ub(p,d),Fg(k,!0),k.tail===null&&k.tailMode==="hidden"&&!j.alternate&&!or)return Yr(p),null}else 2*Te()-k.renderingStartTime>kh&&v!==536870912&&(p.flags|=128,P=!0,Fg(k,!1),p.lanes=4194304);k.isBackwards?(j.sibling=p.child,p.child=j):(d=k.last,d!==null?d.sibling=j:p.child=j,k.last=j)}return k.tail!==null?(p=k.tail,k.rendering=p,k.tail=p.sibling,k.renderingStartTime=Te(),p.sibling=null,d=Fo.current,le(Fo,P?d&1|2:d&1),p):(Yr(p),null);case 22:case 23:return cc(p),AS(),P=p.memoizedState!==null,d!==null?d.memoizedState!==null!==P&&(p.flags|=8192):P&&(p.flags|=8192),P?(v&536870912)!==0&&(p.flags&128)===0&&(Yr(p),p.subtreeFlags&6&&(p.flags|=8192)):Yr(p),v=p.updateQueue,v!==null&&Ub(p,v.retryQueue),v=null,d!==null&&d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(v=d.memoizedState.cachePool.pool),P=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(P=p.memoizedState.cachePool.pool),P!==v&&(p.flags|=2048),d!==null&&ee($f),null;case 24:return v=null,d!==null&&(v=d.memoizedState.cache),p.memoizedState.cache!==v&&(p.flags|=2048),Ys(Kr),Yr(p),null;case 25:return null;case 30:return null}throw Error(r(156,p.tag))}function VI(d,p){switch(ug(p),p.tag){case 1:return d=p.flags,d&65536?(p.flags=d&-65537|128,p):null;case 3:return Ys(Kr),he(),d=p.flags,(d&65536)!==0&&(d&128)===0?(p.flags=d&-65537|128,p):null;case 26:case 27:case 5:return ye(p),null;case 13:if(cc(p),d=p.memoizedState,d!==null&&d.dehydrated!==null){if(p.alternate===null)throw Error(r(340));fg()}return d=p.flags,d&65536?(p.flags=d&-65537|128,p):null;case 19:return ee(Fo),null;case 4:return he(),null;case 10:return Ys(p.type),null;case 22:case 23:return cc(p),AS(),d!==null&&ee($f),d=p.flags,d&65536?(p.flags=d&-65537|128,p):null;case 24:return Ys(Kr),null;case 25:return null;default:return null}}function HI(d,p){switch(ug(p),p.tag){case 3:Ys(Kr),he();break;case 26:case 27:case 5:ye(p);break;case 4:he();break;case 13:cc(p);break;case 19:ee(Fo);break;case 10:Ys(p.type);break;case 22:case 23:cc(p),AS(),d!==null&&ee($f);break;case 24:Ys(Kr)}}function jg(d,p){try{var v=p.updateQueue,P=v!==null?v.lastEffect:null;if(P!==null){var k=P.next;v=k;do{if((v.tag&d)===d){P=void 0;var j=v.create,Z=v.inst;P=j(),Z.destroy=P}v=v.next}while(v!==k)}}catch(ie){Qr(p,p.return,ie)}}function Pd(d,p,v){try{var P=p.updateQueue,k=P!==null?P.lastEffect:null;if(k!==null){var j=k.next;P=j;do{if((P.tag&d)===d){var Z=P.inst,ie=Z.destroy;if(ie!==void 0){Z.destroy=void 0,k=p;var be=v,ze=ie;try{ze()}catch(dt){Qr(k,be,dt)}}}P=P.next}while(P!==j)}}catch(dt){Qr(p,p.return,dt)}}function UI(d){var p=d.updateQueue;if(p!==null){var v=d.stateNode;try{MS(p,v)}catch(P){Qr(d,d.return,P)}}}function rC(d,p,v){v.props=Ed(d.type,d.memoizedProps),v.state=d.memoizedState;try{v.componentWillUnmount()}catch(P){Qr(d,p,P)}}function Ph(d,p){try{var v=d.ref;if(v!==null){switch(d.tag){case 26:case 27:case 5:var P=d.stateNode;break;case 30:P=d.stateNode;break;default:P=d.stateNode}typeof v=="function"?d.refCleanup=v(P):v.current=P}}catch(k){Qr(d,p,k)}}function dc(d,p){var v=d.ref,P=d.refCleanup;if(v!==null)if(typeof P=="function")try{P()}catch(k){Qr(d,p,k)}finally{d.refCleanup=null,d=d.alternate,d!=null&&(d.refCleanup=null)}else if(typeof v=="function")try{v(null)}catch(k){Qr(d,p,k)}else v.current=null}function Gb(d){var p=d.type,v=d.memoizedProps,P=d.stateNode;try{e:switch(p){case"button":case"input":case"select":case"textarea":v.autoFocus&&P.focus();break e;case"img":v.src?P.src=v.src:v.srcSet&&(P.srcset=v.srcSet)}}catch(k){Qr(d,d.return,k)}}function Wb(d,p,v){try{var P=d.stateNode;bN(P,d.type,v,p),P[pn]=p}catch(k){Qr(d,d.return,k)}}function Ih(d){return d.tag===5||d.tag===3||d.tag===26||d.tag===27&&el(d.type)||d.tag===4}function Bg(d){e:for(;;){for(;d.sibling===null;){if(d.return===null||Ih(d.return))return null;d=d.return}for(d.sibling.return=d.return,d=d.sibling;d.tag!==5&&d.tag!==6&&d.tag!==18;){if(d.tag===27&&el(d.type)||d.flags&2||d.child===null||d.tag===4)continue e;d.child.return=d,d=d.child}if(!(d.flags&2))return d.stateNode}}function qb(d,p,v){var P=d.tag;if(P===5||P===6)d=d.stateNode,p?(v.nodeType===9?v.body:v.nodeName==="HTML"?v.ownerDocument.body:v).insertBefore(d,p):(p=v.nodeType===9?v.body:v.nodeName==="HTML"?v.ownerDocument.body:v,p.appendChild(d),v=v._reactRootContainer,v!=null||p.onclick!==null||(p.onclick=r0));else if(P!==4&&(P===27&&el(d.type)&&(v=d.stateNode,p=null),d=d.child,d!==null))for(qb(d,p,v),d=d.sibling;d!==null;)qb(d,p,v),d=d.sibling}function zg(d,p,v){var P=d.tag;if(P===5||P===6)d=d.stateNode,p?v.insertBefore(d,p):v.appendChild(d);else if(P!==4&&(P===27&&el(d.type)&&(v=d.stateNode),d=d.child,d!==null))for(zg(d,p,v),d=d.sibling;d!==null;)zg(d,p,v),d=d.sibling}function Vg(d){var p=d.stateNode,v=d.memoizedProps;try{for(var P=d.type,k=p.attributes;k.length;)p.removeAttributeNode(k[0]);fi(p,P,v),p[ln]=d,p[pn]=v}catch(j){Qr(d,d.return,j)}}var fc=!1,Or=!1,xu=!1,GI=typeof WeakSet=="function"?WeakSet:Set,ui=null;function iN(d,p){if(d=d.containerInfo,Pl=d0,d=nI(d),bS(d)){if("selectionStart"in d)var v={start:d.selectionStart,end:d.selectionEnd};else e:{v=(v=d.ownerDocument)&&v.defaultView||window;var P=v.getSelection&&v.getSelection();if(P&&P.rangeCount!==0){v=P.anchorNode;var k=P.anchorOffset,j=P.focusNode;P=P.focusOffset;try{v.nodeType,j.nodeType}catch{v=null;break e}var Z=0,ie=-1,be=-1,ze=0,dt=0,gt=d,Ge=null;t:for(;;){for(var Ve;gt!==v||k!==0&&gt.nodeType!==3||(ie=Z+k),gt!==j||P!==0&&gt.nodeType!==3||(be=Z+P),gt.nodeType===3&&(Z+=gt.nodeValue.length),(Ve=gt.firstChild)!==null;)Ge=gt,gt=Ve;for(;;){if(gt===d)break t;if(Ge===v&&++ze===k&&(ie=Z),Ge===j&&++dt===P&&(be=Z),(Ve=gt.nextSibling)!==null)break;gt=Ge,Ge=gt.parentNode}gt=Ve}v=ie===-1||be===-1?null:{start:ie,end:be}}else v=null}v=v||{start:0,end:0}}else v=null;for(o0={focusedElem:d,selectionRange:v},d0=!1,ui=p;ui!==null;)if(p=ui,d=p.child,(p.subtreeFlags&1024)!==0&&d!==null)d.return=p,ui=d;else for(;ui!==null;){switch(p=ui,j=p.alternate,d=p.flags,p.tag){case 0:break;case 11:case 15:break;case 1:if((d&1024)!==0&&j!==null){d=void 0,v=p,k=j.memoizedProps,j=j.memoizedState,P=v.stateNode;try{var yn=Ed(v.type,k,v.elementType===v.type);d=P.getSnapshotBeforeUpdate(yn,j),P.__reactInternalSnapshotBeforeUpdate=d}catch(gn){Qr(v,v.return,gn)}}break;case 3:if((d&1024)!==0){if(d=p.stateNode.containerInfo,v=d.nodeType,v===9)OC(d);else if(v===1)switch(d.nodeName){case"HEAD":case"HTML":case"BODY":OC(d);break;default:d.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((d&1024)!==0)throw Error(r(163))}if(d=p.sibling,d!==null){d.return=p.return,ui=d;break}ui=p.return}}function WI(d,p,v){var P=v.flags;switch(v.tag){case 0:case 11:case 15:Id(d,v),P&4&&jg(5,v);break;case 1:if(Id(d,v),P&4)if(d=v.stateNode,p===null)try{d.componentDidMount()}catch(Z){Qr(v,v.return,Z)}else{var k=Ed(v.type,p.memoizedProps);p=p.memoizedState;try{d.componentDidUpdate(k,p,d.__reactInternalSnapshotBeforeUpdate)}catch(Z){Qr(v,v.return,Z)}}P&64&&UI(v),P&512&&Ph(v,v.return);break;case 3:if(Id(d,v),P&64&&(d=v.updateQueue,d!==null)){if(p=null,v.child!==null)switch(v.child.tag){case 27:case 5:p=v.child.stateNode;break;case 1:p=v.child.stateNode}try{MS(d,p)}catch(Z){Qr(v,v.return,Z)}}break;case 27:p===null&&P&4&&Vg(v);case 26:case 5:Id(d,v),p===null&&P&4&&Gb(v),P&512&&Ph(v,v.return);break;case 12:Id(d,v);break;case 13:Id(d,v),P&4&&YI(d,v),P&64&&(d=v.memoizedState,d!==null&&(d=d.dehydrated,d!==null&&(v=Jb.bind(null,v),jh(d,v))));break;case 22:if(P=v.memoizedState!==null||fc,!P){p=p!==null&&p.memoizedState!==null||Or,k=fc;var j=Or;fc=P,(Or=p)&&!j?Su(d,v,(v.subtreeFlags&8772)!==0):Id(d,v),fc=k,Or=j}break;case 30:break;default:Id(d,v)}}function qI(d){var p=d.alternate;p!==null&&(d.alternate=null,qI(p)),d.child=null,d.deletions=null,d.sibling=null,d.tag===5&&(p=d.stateNode,p!==null&&qo(p)),d.stateNode=null,d.return=null,d.dependencies=null,d.memoizedProps=null,d.memoizedState=null,d.pendingProps=null,d.stateNode=null,d.updateQueue=null}var So=null,qa=!1;function wu(d,p,v){for(v=v.child;v!==null;)KI(d,p,v),v=v.sibling}function KI(d,p,v){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(nt,v)}catch{}switch(v.tag){case 26:Or||dc(v,p),wu(d,p,v),v.memoizedState?v.memoizedState.count--:v.stateNode&&(v=v.stateNode,v.parentNode.removeChild(v));break;case 27:Or||dc(v,p);var P=So,k=qa;el(v.type)&&(So=v.stateNode,qa=!1),wu(d,p,v),Zg(v.stateNode),So=P,qa=k;break;case 5:Or||dc(v,p);case 6:if(P=So,k=qa,So=null,wu(d,p,v),So=P,qa=k,So!==null)if(qa)try{(So.nodeType===9?So.body:So.nodeName==="HTML"?So.ownerDocument.body:So).removeChild(v.stateNode)}catch(j){Qr(v,p,j)}else try{So.removeChild(v.stateNode)}catch(j){Qr(v,p,j)}break;case 18:So!==null&&(qa?(d=So,a0(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,v.stateNode),sy(d)):a0(So,v.stateNode));break;case 4:P=So,k=qa,So=v.stateNode.containerInfo,qa=!0,wu(d,p,v),So=P,qa=k;break;case 0:case 11:case 14:case 15:Or||Pd(2,v,p),Or||Pd(4,v,p),wu(d,p,v);break;case 1:Or||(dc(v,p),P=v.stateNode,typeof P.componentWillUnmount=="function"&&rC(v,p,P)),wu(d,p,v);break;case 21:wu(d,p,v);break;case 22:Or=(P=Or)||v.memoizedState!==null,wu(d,p,v),Or=P;break;default:wu(d,p,v)}}function YI(d,p){if(p.memoizedState===null&&(d=p.alternate,d!==null&&(d=d.memoizedState,d!==null&&(d=d.dehydrated,d!==null))))try{sy(d)}catch(v){Qr(p,p.return,v)}}function aN(d){switch(d.tag){case 13:case 19:var p=d.stateNode;return p===null&&(p=d.stateNode=new GI),p;case 22:return d=d.stateNode,p=d._retryCache,p===null&&(p=d._retryCache=new GI),p;default:throw Error(r(435,d.tag))}}function oC(d,p){var v=aN(d);p.forEach(function(P){var k=fN.bind(null,d,P);v.has(P)||(v.add(P),P.then(k,k))})}function xs(d,p){var v=p.deletions;if(v!==null)for(var P=0;P<v.length;P++){var k=v[P],j=d,Z=p,ie=Z;e:for(;ie!==null;){switch(ie.tag){case 27:if(el(ie.type)){So=ie.stateNode,qa=!1;break e}break;case 5:So=ie.stateNode,qa=!1;break e;case 3:case 4:So=ie.stateNode.containerInfo,qa=!0;break e}ie=ie.return}if(So===null)throw Error(r(160));KI(j,Z,k),So=null,qa=!1,j=k.alternate,j!==null&&(j.return=null),k.return=null}if(p.subtreeFlags&13878)for(p=p.child;p!==null;)iC(p,d),p=p.sibling}var Js=null;function iC(d,p){var v=d.alternate,P=d.flags;switch(d.tag){case 0:case 11:case 14:case 15:xs(p,d),Ka(d),P&4&&(Pd(3,d,d.return),jg(3,d),Pd(5,d,d.return));break;case 1:xs(p,d),Ka(d),P&512&&(Or||v===null||dc(v,v.return)),P&64&&fc&&(d=d.updateQueue,d!==null&&(P=d.callbacks,P!==null&&(v=d.shared.hiddenCallbacks,d.shared.hiddenCallbacks=v===null?P:v.concat(P))));break;case 26:var k=Js;if(xs(p,d),Ka(d),P&512&&(Or||v===null||dc(v,v.return)),P&4){var j=v!==null?v.memoizedState:null;if(P=d.memoizedState,v===null)if(P===null)if(d.stateNode===null){e:{P=d.type,v=d.memoizedProps,k=k.ownerDocument||k;t:switch(P){case"title":j=k.getElementsByTagName("title")[0],(!j||j[Zi]||j[ln]||j.namespaceURI==="http://www.w3.org/2000/svg"||j.hasAttribute("itemprop"))&&(j=k.createElement(P),k.head.insertBefore(j,k.querySelector("head > title"))),fi(j,P,v),j[ln]=d,Ye(j),P=j;break e;case"link":var Z=jO("link","href",k).get(P+(v.href||""));if(Z){for(var ie=0;ie<Z.length;ie++)if(j=Z[ie],j.getAttribute("href")===(v.href==null||v.href===""?null:v.href)&&j.getAttribute("rel")===(v.rel==null?null:v.rel)&&j.getAttribute("title")===(v.title==null?null:v.title)&&j.getAttribute("crossorigin")===(v.crossOrigin==null?null:v.crossOrigin)){Z.splice(ie,1);break t}}j=k.createElement(P),fi(j,P,v),k.head.appendChild(j);break;case"meta":if(Z=jO("meta","content",k).get(P+(v.content||""))){for(ie=0;ie<Z.length;ie++)if(j=Z[ie],j.getAttribute("content")===(v.content==null?null:""+v.content)&&j.getAttribute("name")===(v.name==null?null:v.name)&&j.getAttribute("property")===(v.property==null?null:v.property)&&j.getAttribute("http-equiv")===(v.httpEquiv==null?null:v.httpEquiv)&&j.getAttribute("charset")===(v.charSet==null?null:v.charSet)){Z.splice(ie,1);break t}}j=k.createElement(P),fi(j,P,v),k.head.appendChild(j);break;default:throw Error(r(468,P))}j[ln]=d,Ye(j),P=j}d.stateNode=P}else BO(k,d.type,d.stateNode);else d.stateNode=FO(k,P,d.memoizedProps);else j!==P?(j===null?v.stateNode!==null&&(v=v.stateNode,v.parentNode.removeChild(v)):j.count--,P===null?BO(k,d.type,d.stateNode):FO(k,P,d.memoizedProps)):P===null&&d.stateNode!==null&&Wb(d,d.memoizedProps,v.memoizedProps)}break;case 27:xs(p,d),Ka(d),P&512&&(Or||v===null||dc(v,v.return)),v!==null&&P&4&&Wb(d,d.memoizedProps,v.memoizedProps);break;case 5:if(xs(p,d),Ka(d),P&512&&(Or||v===null||dc(v,v.return)),d.flags&32){k=d.stateNode;try{ud(k,"")}catch(Ve){Qr(d,d.return,Ve)}}P&4&&d.stateNode!=null&&(k=d.memoizedProps,Wb(d,k,v!==null?v.memoizedProps:k)),P&1024&&(xu=!0);break;case 6:if(xs(p,d),Ka(d),P&4){if(d.stateNode===null)throw Error(r(162));P=d.memoizedProps,v=d.stateNode;try{v.nodeValue=P}catch(Ve){Qr(d,d.return,Ve)}}break;case 3:if(Hh=null,k=Js,Js=Rn(p.containerInfo),xs(p,d),Js=k,Ka(d),P&4&&v!==null&&v.memoizedState.isDehydrated)try{sy(p.containerInfo)}catch(Ve){Qr(d,d.return,Ve)}xu&&(xu=!1,QI(d));break;case 4:P=Js,Js=Rn(d.stateNode.containerInfo),xs(p,d),Ka(d),Js=P;break;case 12:xs(p,d),Ka(d);break;case 13:xs(p,d),Ka(d),d.child.flags&8192&&d.memoizedState!==null!=(v!==null&&v.memoizedState!==null)&&(fC=Te()),P&4&&(P=d.updateQueue,P!==null&&(d.updateQueue=null,oC(d,P)));break;case 22:k=d.memoizedState!==null;var be=v!==null&&v.memoizedState!==null,ze=fc,dt=Or;if(fc=ze||k,Or=dt||be,xs(p,d),Or=dt,fc=ze,Ka(d),P&8192)e:for(p=d.stateNode,p._visibility=k?p._visibility&-2:p._visibility|1,k&&(v===null||be||fc||Or||Yf(d)),v=null,p=d;;){if(p.tag===5||p.tag===26){if(v===null){be=v=p;try{if(j=be.stateNode,k)Z=j.style,typeof Z.setProperty=="function"?Z.setProperty("display","none","important"):Z.display="none";else{ie=be.stateNode;var gt=be.memoizedProps.style,Ge=gt!=null&&gt.hasOwnProperty("display")?gt.display:null;ie.style.display=Ge==null||typeof Ge=="boolean"?"":(""+Ge).trim()}}catch(Ve){Qr(be,be.return,Ve)}}}else if(p.tag===6){if(v===null){be=p;try{be.stateNode.nodeValue=k?"":be.memoizedProps}catch(Ve){Qr(be,be.return,Ve)}}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===d)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===d)break e;for(;p.sibling===null;){if(p.return===null||p.return===d)break e;v===p&&(v=null),p=p.return}v===p&&(v=null),p.sibling.return=p.return,p=p.sibling}P&4&&(P=d.updateQueue,P!==null&&(v=P.retryQueue,v!==null&&(P.retryQueue=null,oC(d,v))));break;case 19:xs(p,d),Ka(d),P&4&&(P=d.updateQueue,P!==null&&(d.updateQueue=null,oC(d,P)));break;case 30:break;case 21:break;default:xs(p,d),Ka(d)}}function Ka(d){var p=d.flags;if(p&2){try{for(var v,P=d.return;P!==null;){if(Ih(P)){v=P;break}P=P.return}if(v==null)throw Error(r(160));switch(v.tag){case 27:var k=v.stateNode,j=Bg(d);zg(d,j,k);break;case 5:var Z=v.stateNode;v.flags&32&&(ud(Z,""),v.flags&=-33);var ie=Bg(d);zg(d,ie,Z);break;case 3:case 4:var be=v.stateNode.containerInfo,ze=Bg(d);qb(d,ze,be);break;default:throw Error(r(161))}}catch(dt){Qr(d,d.return,dt)}d.flags&=-3}p&4096&&(d.flags&=-4097)}function QI(d){if(d.subtreeFlags&1024)for(d=d.child;d!==null;){var p=d;QI(p),p.tag===5&&p.flags&1024&&p.stateNode.reset(),d=d.sibling}}function Id(d,p){if(p.subtreeFlags&8772)for(p=p.child;p!==null;)WI(d,p.alternate,p),p=p.sibling}function Yf(d){for(d=d.child;d!==null;){var p=d;switch(p.tag){case 0:case 11:case 14:case 15:Pd(4,p,p.return),Yf(p);break;case 1:dc(p,p.return);var v=p.stateNode;typeof v.componentWillUnmount=="function"&&rC(p,p.return,v),Yf(p);break;case 27:Zg(p.stateNode);case 26:case 5:dc(p,p.return),Yf(p);break;case 22:p.memoizedState===null&&Yf(p);break;case 30:Yf(p);break;default:Yf(p)}d=d.sibling}}function Su(d,p,v){for(v=v&&(p.subtreeFlags&8772)!==0,p=p.child;p!==null;){var P=p.alternate,k=d,j=p,Z=j.flags;switch(j.tag){case 0:case 11:case 15:Su(k,j,v),jg(4,j);break;case 1:if(Su(k,j,v),P=j,k=P.stateNode,typeof k.componentDidMount=="function")try{k.componentDidMount()}catch(ze){Qr(P,P.return,ze)}if(P=j,k=P.updateQueue,k!==null){var ie=P.stateNode;try{var be=k.shared.hiddenCallbacks;if(be!==null)for(k.shared.hiddenCallbacks=null,k=0;k<be.length;k++)mI(be[k],ie)}catch(ze){Qr(P,P.return,ze)}}v&&Z&64&&UI(j),Ph(j,j.return);break;case 27:Vg(j);case 26:case 5:Su(k,j,v),v&&P===null&&Z&4&&Gb(j),Ph(j,j.return);break;case 12:Su(k,j,v);break;case 13:Su(k,j,v),v&&Z&4&&YI(k,j);break;case 22:j.memoizedState===null&&Su(k,j,v),Ph(j,j.return);break;case 30:break;default:Su(k,j,v)}p=p.sibling}}function aC(d,p){var v=null;d!==null&&d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(v=d.memoizedState.cachePool.pool),d=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(d=p.memoizedState.cachePool.pool),d!==v&&(d!=null&&d.refCount++,v!=null&&hg(v))}function sC(d,p){d=null,p.alternate!==null&&(d=p.alternate.memoizedState.cache),p=p.memoizedState.cache,p!==d&&(p.refCount++,d!=null&&hg(d))}function pc(d,p,v,P){if(p.subtreeFlags&10256)for(p=p.child;p!==null;)XI(d,p,v,P),p=p.sibling}function XI(d,p,v,P){var k=p.flags;switch(p.tag){case 0:case 11:case 15:pc(d,p,v,P),k&2048&&jg(9,p);break;case 1:pc(d,p,v,P);break;case 3:pc(d,p,v,P),k&2048&&(d=null,p.alternate!==null&&(d=p.alternate.memoizedState.cache),p=p.memoizedState.cache,p!==d&&(p.refCount++,d!=null&&hg(d)));break;case 12:if(k&2048){pc(d,p,v,P),d=p.stateNode;try{var j=p.memoizedProps,Z=j.id,ie=j.onPostCommit;typeof ie=="function"&&ie(Z,p.alternate===null?"mount":"update",d.passiveEffectDuration,-0)}catch(be){Qr(p,p.return,be)}}else pc(d,p,v,P);break;case 13:pc(d,p,v,P);break;case 23:break;case 22:j=p.stateNode,Z=p.alternate,p.memoizedState!==null?j._visibility&2?pc(d,p,v,P):Hg(d,p):j._visibility&2?pc(d,p,v,P):(j._visibility|=2,Oh(d,p,v,P,(p.subtreeFlags&10256)!==0)),k&2048&&aC(Z,p);break;case 24:pc(d,p,v,P),k&2048&&sC(p.alternate,p);break;default:pc(d,p,v,P)}}function Oh(d,p,v,P,k){for(k=k&&(p.subtreeFlags&10256)!==0,p=p.child;p!==null;){var j=d,Z=p,ie=v,be=P,ze=Z.flags;switch(Z.tag){case 0:case 11:case 15:Oh(j,Z,ie,be,k),jg(8,Z);break;case 23:break;case 22:var dt=Z.stateNode;Z.memoizedState!==null?dt._visibility&2?Oh(j,Z,ie,be,k):Hg(j,Z):(dt._visibility|=2,Oh(j,Z,ie,be,k)),k&&ze&2048&&aC(Z.alternate,Z);break;case 24:Oh(j,Z,ie,be,k),k&&ze&2048&&sC(Z.alternate,Z);break;default:Oh(j,Z,ie,be,k)}p=p.sibling}}function Hg(d,p){if(p.subtreeFlags&10256)for(p=p.child;p!==null;){var v=d,P=p,k=P.flags;switch(P.tag){case 22:Hg(v,P),k&2048&&aC(P.alternate,P);break;case 24:Hg(v,P),k&2048&&sC(P.alternate,P);break;default:Hg(v,P)}p=p.sibling}}var na=8192;function Mh(d){if(d.subtreeFlags&na)for(d=d.child;d!==null;)JI(d),d=d.sibling}function JI(d){switch(d.tag){case 26:Mh(d),d.flags&na&&d.memoizedState!==null&&DN(Js,d.memoizedState,d.memoizedProps);break;case 5:Mh(d);break;case 3:case 4:var p=Js;Js=Rn(d.stateNode.containerInfo),Mh(d),Js=p;break;case 22:d.memoizedState===null&&(p=d.alternate,p!==null&&p.memoizedState!==null?(p=na,na=16777216,Mh(d),na=p):Mh(d));break;default:Mh(d)}}function ZI(d){var p=d.alternate;if(p!==null&&(d=p.child,d!==null)){p.child=null;do p=d.sibling,d.sibling=null,d=p;while(d!==null)}}function Ah(d){var p=d.deletions;if((d.flags&16)!==0){if(p!==null)for(var v=0;v<p.length;v++){var P=p[v];ui=P,tO(P,d)}ZI(d)}if(d.subtreeFlags&10256)for(d=d.child;d!==null;)eO(d),d=d.sibling}function eO(d){switch(d.tag){case 0:case 11:case 15:Ah(d),d.flags&2048&&Pd(9,d,d.return);break;case 3:Ah(d);break;case 12:Ah(d);break;case 22:var p=d.stateNode;d.memoizedState!==null&&p._visibility&2&&(d.return===null||d.return.tag!==13)?(p._visibility&=-3,Kb(d)):Ah(d);break;default:Ah(d)}}function Kb(d){var p=d.deletions;if((d.flags&16)!==0){if(p!==null)for(var v=0;v<p.length;v++){var P=p[v];ui=P,tO(P,d)}ZI(d)}for(d=d.child;d!==null;){switch(p=d,p.tag){case 0:case 11:case 15:Pd(8,p,p.return),Kb(p);break;case 22:v=p.stateNode,v._visibility&2&&(v._visibility&=-3,Kb(p));break;default:Kb(p)}d=d.sibling}}function tO(d,p){for(;ui!==null;){var v=ui;switch(v.tag){case 0:case 11:case 15:Pd(8,v,p);break;case 23:case 22:if(v.memoizedState!==null&&v.memoizedState.cachePool!==null){var P=v.memoizedState.cachePool.pool;P!=null&&P.refCount++}break;case 24:hg(v.memoizedState.cache)}if(P=v.child,P!==null)P.return=v,ui=P;else e:for(v=d;ui!==null;){P=ui;var k=P.sibling,j=P.return;if(qI(P),P===v){ui=null;break e}if(k!==null){k.return=j,ui=k;break e}ui=j}}}var sN={getCacheForType:function(d){var p=$o(Kr),v=p.data.get(d);return v===void 0&&(v=d(),p.data.set(d,v)),v}},lC=typeof WeakMap=="function"?WeakMap:Map,Nr=0,ro=null,er=null,hr=0,_r=0,ws=null,Od=!1,Dh=!1,cC=!1,Cu=0,jo=0,Md=0,Qf=0,uC=0,Zs=0,Rh=0,Ug=null,Ya=null,dC=!1,fC=0,kh=1/0,Gg=null,Ad=null,$i=0,Dd=null,Nh=null,_h=0,pC=0,hC=null,nO=null,Lh=0,mC=null;function ra(){if((Nr&2)!==0&&hr!==0)return hr&-hr;if(V.T!==null){var d=yh;return d!==0?d:t0()}return Vn()}function rO(){Zs===0&&(Zs=(hr&536870912)===0||or?lr():536870912);var d=bs.current;return d!==null&&(d.flags|=32),Zs}function Ss(d,p,v){(d===ro&&(_r===2||_r===9)||d.cancelPendingCommit!==null)&&($h(d,0),Rd(d,hr,Zs,!1)),Yn(d,v),((Nr&2)===0||d!==ro)&&(d===ro&&((Nr&2)===0&&(Qf|=v),jo===4&&Rd(d,hr,Zs,!1)),hc(d))}function oO(d,p,v){if((Nr&6)!==0)throw Error(r(327));var P=!v&&(p&124)===0&&(p&d.expiredLanes)===0||qt(d,p),k=P?uN(d,p):vC(d,p,!0),j=P;do{if(k===0){Dh&&!P&&Rd(d,p,0,!1);break}else{if(v=d.current.alternate,j&&!lN(v)){k=vC(d,p,!1),j=!1;continue}if(k===2){if(j=p,d.errorRecoveryDisabledLanes&j)var Z=0;else Z=d.pendingLanes&-536870913,Z=Z!==0?Z:Z&536870912?536870912:0;if(Z!==0){p=Z;e:{var ie=d;k=Ug;var be=ie.current.memoizedState.isDehydrated;if(be&&($h(ie,Z).flags|=256),Z=vC(ie,Z,!1),Z!==2){if(cC&&!be){ie.errorRecoveryDisabledLanes|=j,Qf|=j,k=4;break e}j=Ya,Ya=k,j!==null&&(Ya===null?Ya=j:Ya.push.apply(Ya,j))}k=Z}if(j=!1,k!==2)continue}}if(k===1){$h(d,0),Rd(d,p,0,!0);break}e:{switch(P=d,j=k,j){case 0:case 1:throw Error(r(345));case 4:if((p&4194048)!==p)break;case 6:Rd(P,p,Zs,!Od);break e;case 2:Ya=null;break;case 3:case 5:break;default:throw Error(r(329))}if((p&62914560)===p&&(k=fC+300-Te(),10<k)){if(Rd(P,p,Zs,!Od),en(P,0,!0)!==0)break e;P.timeoutHandle=OO(iO.bind(null,P,v,Ya,Gg,dC,p,Zs,Qf,Rh,Od,j,2,-0,0),k);break e}iO(P,v,Ya,Gg,dC,p,Zs,Qf,Rh,Od,j,0,-0,0)}}break}while(!0);hc(d)}function iO(d,p,v,P,k,j,Z,ie,be,ze,dt,gt,Ge,Ve){if(d.timeoutHandle=-1,gt=p.subtreeFlags,(gt&8192||(gt&16785408)===16785408)&&(Oi={stylesheets:null,count:0,unsuspend:AN},JI(p),gt=RN(),gt!==null)){d.cancelPendingCommit=gt(Wg.bind(null,d,p,j,v,P,k,Z,ie,be,dt,1,Ge,Ve)),Rd(d,j,Z,!ze);return}Wg(d,p,j,v,P,k,Z,ie,be)}function lN(d){for(var p=d;;){var v=p.tag;if((v===0||v===11||v===15)&&p.flags&16384&&(v=p.updateQueue,v!==null&&(v=v.stores,v!==null)))for(var P=0;P<v.length;P++){var k=v[P],j=k.getSnapshot;k=k.value;try{if(!ms(j(),k))return!1}catch{return!1}}if(v=p.child,p.subtreeFlags&16384&&v!==null)v.return=p,p=v;else{if(p===d)break;for(;p.sibling===null;){if(p.return===null||p.return===d)return!0;p=p.return}p.sibling.return=p.return,p=p.sibling}}return!0}function Rd(d,p,v,P){p&=~uC,p&=~Qf,d.suspendedLanes|=p,d.pingedLanes&=~p,P&&(d.warmLanes|=p),P=d.expirationTimes;for(var k=p;0<k;){var j=31-tt(k),Z=1<<j;P[j]=-1,k&=~Z}v!==0&&Ci(d,v,p)}function Yb(){return(Nr&6)===0?(Yg(0),!1):!0}function gC(){if(er!==null){if(_r===0)var d=er.return;else d=er,oe=bd=null,xb(d),ci=null,Wa=0,d=er;for(;d!==null;)HI(d.alternate,d),d=d.return;er=null}}function $h(d,p){var v=d.timeoutHandle;v!==-1&&(d.timeoutHandle=-1,wN(v)),v=d.cancelPendingCommit,v!==null&&(d.cancelPendingCommit=null,v()),gC(),ro=d,er=v=Ca(d.current,null),hr=p,_r=0,ws=null,Od=!1,Dh=qt(d,p),cC=!1,Rh=Zs=uC=Qf=Md=jo=0,Ya=Ug=null,dC=!1,(p&8)!==0&&(p|=p&32);var P=d.entangledLanes;if(P!==0)for(d=d.entanglements,P&=p;0<P;){var k=31-tt(P),j=1<<k;p|=d[k],P&=~j}return Cu=p,Mf(),v}function aO(d,p){Hn=null,V.H=Mg,p===Ea||p===yb?(p=pI(),_r=3):p===dI?(p=pI(),_r=4):_r=p===$I?8:p!==null&&typeof p=="object"&&typeof p.then=="function"?6:1,ws=p,er===null&&(jo=1,Ng(d,Sa(p,d.current)))}function sO(){var d=V.H;return V.H=Mg,d===null?Mg:d}function lO(){var d=V.A;return V.A=sN,d}function yC(){jo=4,Od||(hr&4194048)!==hr&&bs.current!==null||(Dh=!0),(Md&134217727)===0&&(Qf&134217727)===0||ro===null||Rd(ro,hr,Zs,!1)}function vC(d,p,v){var P=Nr;Nr|=2;var k=sO(),j=lO();(ro!==d||hr!==p)&&(Gg=null,$h(d,p)),p=!1;var Z=jo;e:do try{if(_r!==0&&er!==null){var ie=er,be=ws;switch(_r){case 8:gC(),Z=6;break e;case 3:case 2:case 9:case 6:bs.current===null&&(p=!0);var ze=_r;if(_r=0,ws=null,Fh(d,ie,be,ze),v&&Dh){Z=0;break e}break;default:ze=_r,_r=0,ws=null,Fh(d,ie,be,ze)}}cN(),Z=jo;break}catch(dt){aO(d,dt)}while(!0);return p&&d.shellSuspendCounter++,oe=bd=null,Nr=P,V.H=k,V.A=j,er===null&&(ro=null,hr=0,Mf()),Z}function cN(){for(;er!==null;)bC(er)}function uN(d,p){var v=Nr;Nr|=2;var P=sO(),k=lO();ro!==d||hr!==p?(Gg=null,kh=Te()+500,$h(d,p)):Dh=qt(d,p);e:do try{if(_r!==0&&er!==null){p=er;var j=ws;t:switch(_r){case 1:_r=0,ws=null,Fh(d,p,j,1);break;case 2:case 9:if(fI(j)){_r=0,ws=null,uO(p);break}p=function(){_r!==2&&_r!==9||ro!==d||(_r=7),hc(d)},j.then(p,p);break e;case 3:_r=7;break e;case 4:_r=5;break e;case 7:fI(j)?(_r=0,ws=null,uO(p)):(_r=0,ws=null,Fh(d,p,j,7));break;case 5:var Z=null;switch(er.tag){case 26:Z=er.memoizedState;case 5:case 27:var ie=er;if(!Z||pi(Z)){_r=0,ws=null;var be=ie.sibling;if(be!==null)er=be;else{var ze=ie.return;ze!==null?(er=ze,Qb(ze)):er=null}break t}}_r=0,ws=null,Fh(d,p,j,5);break;case 6:_r=0,ws=null,Fh(d,p,j,6);break;case 8:gC(),jo=6;break e;default:throw Error(r(462))}}cO();break}catch(dt){aO(d,dt)}while(!0);return oe=bd=null,V.H=P,V.A=k,Nr=v,er!==null?0:(ro=null,hr=0,Mf(),jo)}function cO(){for(;er!==null&&!Re();)bC(er)}function bC(d){var p=Vb(d.alternate,d,Cu);d.memoizedProps=d.pendingProps,p===null?Qb(d):er=p}function uO(d){var p=d,v=p.alternate;switch(p.tag){case 15:case 0:p=Bb(v,p,p.pendingProps,p.type,void 0,hr);break;case 11:p=Bb(v,p,p.pendingProps,p.type.render,p.ref,hr);break;case 5:xb(p);default:HI(v,p),p=er=lg(p,Cu),p=Vb(v,p,Cu)}d.memoizedProps=d.pendingProps,p===null?Qb(d):er=p}function Fh(d,p,v,P){oe=bd=null,xb(p),ci=null,Wa=0;var k=p.return;try{if(LI(d,k,p,v,hr)){jo=1,Ng(d,Sa(v,d.current)),er=null;return}}catch(j){if(k!==null)throw er=k,j;jo=1,Ng(d,Sa(v,d.current)),er=null;return}p.flags&32768?(or||P===1?d=!0:Dh||(hr&536870912)!==0?d=!1:(Od=d=!0,(P===2||P===9||P===3||P===6)&&(P=bs.current,P!==null&&P.tag===13&&(P.flags|=16384))),dO(p,d)):Qb(p)}function Qb(d){var p=d;do{if((p.flags&32768)!==0){dO(p,Od);return}d=p.return;var v=zI(p.alternate,p,Cu);if(v!==null){er=v;return}if(p=p.sibling,p!==null){er=p;return}er=p=d}while(p!==null);jo===0&&(jo=5)}function dO(d,p){do{var v=VI(d.alternate,d);if(v!==null){v.flags&=32767,er=v;return}if(v=d.return,v!==null&&(v.flags|=32768,v.subtreeFlags=0,v.deletions=null),!p&&(d=d.sibling,d!==null)){er=d;return}er=d=v}while(d!==null);jo=6,er=null}function Wg(d,p,v,P,k,j,Z,ie,be){d.cancelPendingCommit=null;do Xb();while($i!==0);if((Nr&6)!==0)throw Error(r(327));if(p!==null){if(p===d.current)throw Error(r(177));if(j=p.lanes|p.childLanes,j|=wS,Io(d,v,j,Z,ie,be),d===ro&&(er=ro=null,hr=0),Nh=p,Dd=d,_h=v,pC=j,hC=k,nO=P,(p.subtreeFlags&10256)!==0||(p.flags&10256)!==0?(d.callbackNode=null,d.callbackPriority=0,bO(_e,function(){return gO(),null})):(d.callbackNode=null,d.callbackPriority=0),P=(p.flags&13878)!==0,(p.subtreeFlags&13878)!==0||P){P=V.T,V.T=null,k=Y.p,Y.p=2,Z=Nr,Nr|=4;try{iN(d,p,v)}finally{Nr=Z,Y.p=k,V.T=P}}$i=1,fO(),pO(),hO()}}function fO(){if($i===1){$i=0;var d=Dd,p=Nh,v=(p.flags&13878)!==0;if((p.subtreeFlags&13878)!==0||v){v=V.T,V.T=null;var P=Y.p;Y.p=2;var k=Nr;Nr|=4;try{iC(p,d);var j=o0,Z=nI(d.containerInfo),ie=j.focusedElem,be=j.selectionRange;if(Z!==ie&&ie&&ie.ownerDocument&&tI(ie.ownerDocument.documentElement,ie)){if(be!==null&&bS(ie)){var ze=be.start,dt=be.end;if(dt===void 0&&(dt=ze),"selectionStart"in ie)ie.selectionStart=ze,ie.selectionEnd=Math.min(dt,ie.value.length);else{var gt=ie.ownerDocument||document,Ge=gt&&gt.defaultView||window;if(Ge.getSelection){var Ve=Ge.getSelection(),yn=ie.textContent.length,gn=Math.min(be.start,yn),Vr=be.end===void 0?gn:Math.min(be.end,yn);!Ve.extend&&gn>Vr&&(Z=Vr,Vr=gn,gn=Z);var Ne=vS(ie,gn),Pe=vS(ie,Vr);if(Ne&&Pe&&(Ve.rangeCount!==1||Ve.anchorNode!==Ne.node||Ve.anchorOffset!==Ne.offset||Ve.focusNode!==Pe.node||Ve.focusOffset!==Pe.offset)){var Fe=gt.createRange();Fe.setStart(Ne.node,Ne.offset),Ve.removeAllRanges(),gn>Vr?(Ve.addRange(Fe),Ve.extend(Pe.node,Pe.offset)):(Fe.setEnd(Pe.node,Pe.offset),Ve.addRange(Fe))}}}}for(gt=[],Ve=ie;Ve=Ve.parentNode;)Ve.nodeType===1&&gt.push({element:Ve,left:Ve.scrollLeft,top:Ve.scrollTop});for(typeof ie.focus=="function"&&ie.focus(),ie=0;ie<gt.length;ie++){var pt=gt[ie];pt.element.scrollLeft=pt.left,pt.element.scrollTop=pt.top}}d0=!!Pl,o0=Pl=null}finally{Nr=k,Y.p=P,V.T=v}}d.current=p,$i=2}}function pO(){if($i===2){$i=0;var d=Dd,p=Nh,v=(p.flags&8772)!==0;if((p.subtreeFlags&8772)!==0||v){v=V.T,V.T=null;var P=Y.p;Y.p=2;var k=Nr;Nr|=4;try{WI(d,p.alternate,p)}finally{Nr=k,Y.p=P,V.T=v}}$i=3}}function hO(){if($i===4||$i===3){$i=0,ke();var d=Dd,p=Nh,v=_h,P=nO;(p.subtreeFlags&10256)!==0||(p.flags&10256)!==0?$i=5:($i=0,Nh=Dd=null,mO(d,d.pendingLanes));var k=d.pendingLanes;if(k===0&&(Ad=null),fn(v),p=p.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(nt,p,void 0,(p.current.flags&128)===128)}catch{}if(P!==null){p=V.T,k=Y.p,Y.p=2,V.T=null;try{for(var j=d.onRecoverableError,Z=0;Z<P.length;Z++){var ie=P[Z];j(ie.value,{componentStack:ie.stack})}}finally{V.T=p,Y.p=k}}(_h&3)!==0&&Xb(),hc(d),k=d.pendingLanes,(v&4194090)!==0&&(k&42)!==0?d===mC?Lh++:(Lh=0,mC=d):Lh=0,Yg(0)}}function mO(d,p){(d.pooledCacheLanes&=p)===0&&(p=d.pooledCache,p!=null&&(d.pooledCache=null,hg(p)))}function Xb(d){return fO(),pO(),hO(),gO()}function gO(){if($i!==5)return!1;var d=Dd,p=pC;pC=0;var v=fn(_h),P=V.T,k=Y.p;try{Y.p=32>v?32:v,V.T=null,v=hC,hC=null;var j=Dd,Z=_h;if($i=0,Nh=Dd=null,_h=0,(Nr&6)!==0)throw Error(r(331));var ie=Nr;if(Nr|=4,eO(j.current),XI(j,j.current,Z,v),Nr=ie,Yg(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(nt,j)}catch{}return!0}finally{Y.p=k,V.T=P,mO(d,p)}}function yO(d,p,v){p=Sa(v,p),p=Lb(d.stateNode,p,2),d=pu(d,p,2),d!==null&&(Yn(d,2),hc(d))}function Qr(d,p,v){if(d.tag===3)yO(d,d,v);else for(;p!==null;){if(p.tag===3){yO(p,d,v);break}else if(p.tag===1){var P=p.stateNode;if(typeof p.type.getDerivedStateFromError=="function"||typeof P.componentDidCatch=="function"&&(Ad===null||!Ad.has(P))){d=Sa(v,d),v=JS(2),P=pu(p,v,2),P!==null&&(_I(v,P,p,d),Yn(P,2),hc(P));break}}p=p.return}}function xC(d,p,v){var P=d.pingCache;if(P===null){P=d.pingCache=new lC;var k=new Set;P.set(p,k)}else k=P.get(p),k===void 0&&(k=new Set,P.set(p,k));k.has(v)||(cC=!0,k.add(v),d=dN.bind(null,d,p,v),p.then(d,d))}function dN(d,p,v){var P=d.pingCache;P!==null&&P.delete(p),d.pingedLanes|=d.suspendedLanes&v,d.warmLanes&=~v,ro===d&&(hr&v)===v&&(jo===4||jo===3&&(hr&62914560)===hr&&300>Te()-fC?(Nr&2)===0&&$h(d,0):uC|=v,Rh===hr&&(Rh=0)),hc(d)}function vO(d,p){p===0&&(p=to()),d=Af(d,p),d!==null&&(Yn(d,p),hc(d))}function Jb(d){var p=d.memoizedState,v=0;p!==null&&(v=p.retryLane),vO(d,v)}function fN(d,p){var v=0;switch(d.tag){case 13:var P=d.stateNode,k=d.memoizedState;k!==null&&(v=k.retryLane);break;case 19:P=d.stateNode;break;case 22:P=d.stateNode._retryCache;break;default:throw Error(r(314))}P!==null&&P.delete(p),vO(d,v)}function bO(d,p){return Se(d,p)}var qg=null,kd=null,Zb=!1,Kg=!1,e0=!1,Nd=0;function hc(d){d!==kd&&d.next===null&&(kd===null?qg=kd=d:kd=kd.next=d),Kg=!0,Zb||(Zb=!0,wC())}function Yg(d,p){if(!e0&&Kg){e0=!0;do for(var v=!1,P=qg;P!==null;){if(d!==0){var k=P.pendingLanes;if(k===0)var j=0;else{var Z=P.suspendedLanes,ie=P.pingedLanes;j=(1<<31-tt(42|d)+1)-1,j&=k&~(Z&~ie),j=j&201326741?j&201326741|1:j?j|2:0}j!==0&&(v=!0,wO(P,j))}else j=hr,j=en(P,P===ro?j:0,P.cancelPendingCommit!==null||P.timeoutHandle!==-1),(j&3)===0||qt(P,j)||(v=!0,wO(P,j));P=P.next}while(v);e0=!1}}function pN(){Qg()}function Qg(){Kg=Zb=!1;var d=0;Nd!==0&&(xN()&&(d=Nd),Nd=0);for(var p=Te(),v=null,P=qg;P!==null;){var k=P.next,j=Xg(P,p);j===0?(P.next=null,v===null?qg=k:v.next=k,k===null&&(kd=v)):(v=P,(d!==0||(j&3)!==0)&&(Kg=!0)),P=k}Yg(d)}function Xg(d,p){for(var v=d.suspendedLanes,P=d.pingedLanes,k=d.expirationTimes,j=d.pendingLanes&-62914561;0<j;){var Z=31-tt(j),ie=1<<Z,be=k[Z];be===-1?((ie&v)===0||(ie&P)!==0)&&(k[Z]=zn(ie,p)):be<=p&&(d.expiredLanes|=ie),j&=~ie}if(p=ro,v=hr,v=en(d,d===p?v:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),P=d.callbackNode,v===0||d===p&&(_r===2||_r===9)||d.cancelPendingCommit!==null)return P!==null&&P!==null&&Ie(P),d.callbackNode=null,d.callbackPriority=0;if((v&3)===0||qt(d,v)){if(p=v&-v,p===d.callbackPriority)return p;switch(P!==null&&Ie(P),fn(v)){case 2:case 8:v=Me;break;case 32:v=_e;break;case 268435456:v=je;break;default:v=_e}return P=xO.bind(null,d),v=Se(v,P),d.callbackPriority=p,d.callbackNode=v,p}return P!==null&&P!==null&&Ie(P),d.callbackPriority=2,d.callbackNode=null,2}function xO(d,p){if($i!==0&&$i!==5)return d.callbackNode=null,d.callbackPriority=0,null;var v=d.callbackNode;if(Xb()&&d.callbackNode!==v)return null;var P=hr;return P=en(d,d===ro?P:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),P===0?null:(oO(d,P,p),Xg(d,Te()),d.callbackNode!=null&&d.callbackNode===v?xO.bind(null,d):null)}function wO(d,p){if(Xb())return null;oO(d,p,!0)}function wC(){SN(function(){(Nr&6)!==0?Se(Ze,pN):Qg()})}function t0(){return Nd===0&&(Nd=lr()),Nd}function SO(d){return d==null||typeof d=="symbol"||typeof d=="boolean"?null:typeof d=="function"?d:Zm(""+d)}function CO(d,p){var v=p.ownerDocument.createElement("input");return v.name=p.name,v.value=p.value,d.id&&v.setAttribute("form",d.id),p.parentNode.insertBefore(v,p),d=new FormData(d),v.parentNode.removeChild(v),d}function hN(d,p,v,P,k){if(p==="submit"&&v&&v.stateNode===k){var j=SO((k[pn]||null).action),Z=P.submitter;Z&&(p=(p=Z[pn]||null)?SO(p.formAction):Z.getAttribute("formAction"),p!==null&&(j=p,Z=null));var ie=new Xv("action","action",null,P,k);d.push({event:ie,listeners:[{instance:null,listener:function(){if(P.defaultPrevented){if(Nd!==0){var be=Z?CO(k,Z):new FormData(k);Ig(v,{pending:!0,data:be,method:k.method,action:j},null,be)}}else typeof j=="function"&&(ie.preventDefault(),be=Z?CO(k,Z):new FormData(k),Ig(v,{pending:!0,data:be,method:k.method,action:j},j,be))},currentTarget:k}]})}}for(var SC=0;SC<Er.length;SC++){var CC=Er[SC],mN=CC.toLowerCase(),gN=CC[0].toUpperCase()+CC.slice(1);bl(mN,"on"+gN)}bl(cb,"onAnimationEnd"),bl(rI,"onAnimationIteration"),bl(gs,"onAnimationStart"),bl("dblclick","onDoubleClick"),bl("focusin","onFocus"),bl("focusout","onBlur"),bl(ub,"onTransitionRun"),bl(J2,"onTransitionStart"),bl(fh,"onTransitionCancel"),bl(og,"onTransitionEnd"),an("onMouseEnter",["mouseout","mouseover"]),an("onMouseLeave",["mouseout","mouseover"]),an("onPointerEnter",["pointerout","pointerover"]),an("onPointerLeave",["pointerout","pointerover"]),Mn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Mn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Mn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Mn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Mn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Mn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jg="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),yN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jg));function EO(d,p){p=(p&4)!==0;for(var v=0;v<d.length;v++){var P=d[v],k=P.event;P=P.listeners;e:{var j=void 0;if(p)for(var Z=P.length-1;0<=Z;Z--){var ie=P[Z],be=ie.instance,ze=ie.currentTarget;if(ie=ie.listener,be!==j&&k.isPropagationStopped())break e;j=ie,k.currentTarget=ze;try{j(k)}catch(dt){qf(dt)}k.currentTarget=null,j=be}else for(Z=0;Z<P.length;Z++){if(ie=P[Z],be=ie.instance,ze=ie.currentTarget,ie=ie.listener,be!==j&&k.isPropagationStopped())break e;j=ie,k.currentTarget=ze;try{j(k)}catch(dt){qf(dt)}k.currentTarget=null,j=be}}}}function tr(d,p){var v=p[Ei];v===void 0&&(v=p[Ei]=new Set);var P=d+"__bubble";v.has(P)||(TO(p,d,2,!1),v.add(P))}function EC(d,p,v){var P=0;p&&(P|=4),TO(v,d,P,p)}var Qa="_reactListening"+Math.random().toString(36).slice(2);function TC(d){if(!d[Qa]){d[Qa]=!0,at.forEach(function(v){v!=="selectionchange"&&(yN.has(v)||EC(v,!1,d),EC(v,!0,d))});var p=d.nodeType===9?d:d.ownerDocument;p===null||p[Qa]||(p[Qa]=!0,EC("selectionchange",!1,p))}}function TO(d,p,v,P){switch(UO(p)){case 2:var k=_N;break;case 8:k=Gh;break;default:k=_C}v=k.bind(null,p,v,d),k=void 0,!tg||p!=="touchstart"&&p!=="touchmove"&&p!=="wheel"||(k=!0),P?k!==void 0?d.addEventListener(p,v,{capture:!0,passive:k}):d.addEventListener(p,v,!0):k!==void 0?d.addEventListener(p,v,{passive:k}):d.addEventListener(p,v,!1)}function Eu(d,p,v,P,k){var j=P;if((p&1)===0&&(p&2)===0&&P!==null)e:for(;;){if(P===null)return;var Z=P.tag;if(Z===3||Z===4){var ie=P.stateNode.containerInfo;if(ie===k)break;if(Z===4)for(Z=P.return;Z!==null;){var be=Z.tag;if((be===3||be===4)&&Z.stateNode.containerInfo===k)return;Z=Z.return}for(;ie!==null;){if(Z=uo(ie),Z===null)return;if(be=Z.tag,be===5||be===6||be===26||be===27){P=j=Z;continue e}ie=ie.parentNode}}P=P.return}LP(function(){var ze=j,dt=aS(v),gt=[];e:{var Ge=ig.get(d);if(Ge!==void 0){var Ve=Xv,yn=d;switch(d){case"keypress":if(Br(v)===0)break e;case"keydown":case"keyup":Ve=fS;break;case"focusin":yn="focus",Ve=Zv;break;case"focusout":yn="blur",Ve=Zv;break;case"beforeblur":case"afterblur":Ve=Zv;break;case"click":if(v.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ve=fd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ve=dS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ve=H2;break;case cb:case rI:case gs:Ve=zP;break;case og:Ve=U2;break;case"scroll":case"scrollend":Ve=B2;break;case"wheel":Ve=W2;break;case"copy":case"cut":case"paste":Ve=HP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ve=cu;break;case"toggle":case"beforetoggle":Ve=tb}var gn=(p&4)!==0,Vr=!gn&&(d==="scroll"||d==="scrollend"),Ne=gn?Ge!==null?Ge+"Capture":null:Ge;gn=[];for(var Pe=ze,Fe;Pe!==null;){var pt=Pe;if(Fe=pt.stateNode,pt=pt.tag,pt!==5&&pt!==26&&pt!==27||Fe===null||Ne===null||(pt=eg(Pe,Ne),pt!=null&&gn.push(In(Pe,pt,Fe))),Vr)break;Pe=Pe.return}0<gn.length&&(Ge=new Ve(Ge,yn,null,v,dt),gt.push({event:Ge,listeners:gn}))}}if((p&7)===0){e:{if(Ge=d==="mouseover"||d==="pointerover",Ve=d==="mouseout"||d==="pointerout",Ge&&v!==Yv&&(yn=v.relatedTarget||v.fromElement)&&(uo(yn)||yn[cr]))break e;if((Ve||Ge)&&(Ge=dt.window===dt?dt:(Ge=dt.ownerDocument)?Ge.defaultView||Ge.parentWindow:window,Ve?(yn=v.relatedTarget||v.toElement,Ve=ze,yn=yn?uo(yn):null,yn!==null&&(Vr=i(yn),gn=yn.tag,yn!==Vr||gn!==5&&gn!==27&&gn!==6)&&(yn=null)):(Ve=null,yn=ze),Ve!==yn)){if(gn=fd,pt="onMouseLeave",Ne="onMouseEnter",Pe="mouse",(d==="pointerout"||d==="pointerover")&&(gn=cu,pt="onPointerLeave",Ne="onPointerEnter",Pe="pointer"),Vr=Ve==null?Ge:js(Ve),Fe=yn==null?Ge:js(yn),Ge=new gn(pt,Pe+"leave",Ve,v,dt),Ge.target=Vr,Ge.relatedTarget=Fe,pt=null,uo(dt)===ze&&(gn=new gn(Ne,Pe+"enter",yn,v,dt),gn.target=Fe,gn.relatedTarget=Vr,pt=gn),Vr=pt,Ve&&yn)t:{for(gn=Ve,Ne=yn,Pe=0,Fe=gn;Fe;Fe=di(Fe))Pe++;for(Fe=0,pt=Ne;pt;pt=di(pt))Fe++;for(;0<Pe-Fe;)gn=di(gn),Pe--;for(;0<Fe-Pe;)Ne=di(Ne),Fe--;for(;Pe--;){if(gn===Ne||Ne!==null&&gn===Ne.alternate)break t;gn=di(gn),Ne=di(Ne)}gn=null}else gn=null;Ve!==null&&Bo(gt,Ge,Ve,gn,!1),yn!==null&&Vr!==null&&Bo(gt,Vr,yn,gn,!0)}}e:{if(Ge=ze?js(ze):window,Ve=Ge.nodeName&&Ge.nodeName.toLowerCase(),Ve==="select"||Ve==="input"&&Ge.type==="file")var Xt=QP;else if(ib(Ge))if(XP)Xt=Y2;else{Xt=md;var Xn=eI}else Ve=Ge.nodeName,!Ve||Ve.toLowerCase()!=="input"||Ge.type!=="checkbox"&&Ge.type!=="radio"?ze&&iS(ze.elementType)&&(Xt=QP):Xt=lb;if(Xt&&(Xt=Xt(d,ze))){lh(gt,Xt,v,dt);break e}Xn&&Xn(d,Ge,ze),d==="focusout"&&ze&&Ge.type==="number"&&ze.memoizedProps.value!=null&&Jm(Ge,"number",Ge.value)}switch(Xn=ze?js(ze):window,d){case"focusin":(ib(Xn)||Xn.contentEditable==="true")&&(dh=Xn,gd=ze,De=null);break;case"focusout":De=gd=dh=null;break;case"mousedown":lt=!0;break;case"contextmenu":case"mouseup":case"dragend":lt=!1,Qe(gt,v,dt);break;case"selectionchange":if(X2)break;case"keydown":case"keyup":Qe(gt,v,dt)}var sn;if(mS)e:{switch(d){case"compositionstart":var vn="onCompositionStart";break e;case"compositionend":vn="onCompositionEnd";break e;case"compositionupdate":vn="onCompositionUpdate";break e}vn=void 0}else pd?KP(d,v)&&(vn="onCompositionEnd"):d==="keydown"&&v.keyCode===229&&(vn="onCompositionStart");vn&&(nb&&v.locale!=="ko"&&(pd||vn!=="onCompositionStart"?vn==="onCompositionEnd"&&pd&&(sn=$P()):(dd=dt,cS="value"in dd?dd.value:dd.textContent,pd=!0)),Xn=n0(ze,vn),0<Xn.length&&(vn=new ja(vn,d,null,v,dt),gt.push({event:vn,listeners:Xn}),sn?vn.data=sn:(sn=ob(v),sn!==null&&(vn.data=sn)))),(sn=qP?q2(d,v):YP(d,v))&&(vn=n0(ze,"onBeforeInput"),0<vn.length&&(Xn=new ja("onBeforeInput","beforeinput",null,v,dt),gt.push({event:Xn,listeners:vn}),Xn.data=sn)),hN(gt,d,ze,v,dt)}EO(gt,p)})}function In(d,p,v){return{instance:d,listener:p,currentTarget:v}}function n0(d,p){for(var v=p+"Capture",P=[];d!==null;){var k=d,j=k.stateNode;if(k=k.tag,k!==5&&k!==26&&k!==27||j===null||(k=eg(d,v),k!=null&&P.unshift(In(d,k,j)),k=eg(d,p),k!=null&&P.push(In(d,k,j))),d.tag===3)return P;d=d.return}return[]}function di(d){if(d===null)return null;do d=d.return;while(d&&d.tag!==5&&d.tag!==27);return d||null}function Bo(d,p,v,P,k){for(var j=p._reactName,Z=[];v!==null&&v!==P;){var ie=v,be=ie.alternate,ze=ie.stateNode;if(ie=ie.tag,be!==null&&be===P)break;ie!==5&&ie!==26&&ie!==27||ze===null||(be=ze,k?(ze=eg(v,j),ze!=null&&Z.unshift(In(v,ze,be))):k||(ze=eg(v,j),ze!=null&&Z.push(In(v,ze,be)))),v=v.return}Z.length!==0&&d.push({event:p,listeners:Z})}var vN=/\r\n?/g,_d=/\u0000|\uFFFD/g;function PO(d){return(typeof d=="string"?d:""+d).replace(vN,`
-`).replace(_d,"")}function IO(d,p){return p=PO(p),PO(d)===p}function r0(){}function zr(d,p,v,P,k,j){switch(v){case"children":typeof P=="string"?p==="body"||p==="textarea"&&P===""||ud(d,P):(typeof P=="number"||typeof P=="bigint")&&p!=="body"&&ud(d,""+P);break;case"className":Tf(d,"class",P);break;case"tabIndex":Tf(d,"tabindex",P);break;case"dir":case"role":case"viewBox":case"width":case"height":Tf(d,v,P);break;case"style":oS(d,P,j);break;case"data":if(p!=="object"){Tf(d,"data",P);break}case"src":case"href":if(P===""&&(p!=="a"||v!=="href")){d.removeAttribute(v);break}if(P==null||typeof P=="function"||typeof P=="symbol"||typeof P=="boolean"){d.removeAttribute(v);break}P=Zm(""+P),d.setAttribute(v,P);break;case"action":case"formAction":if(typeof P=="function"){d.setAttribute(v,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof j=="function"&&(v==="formAction"?(p!=="input"&&zr(d,p,"name",k.name,k,null),zr(d,p,"formEncType",k.formEncType,k,null),zr(d,p,"formMethod",k.formMethod,k,null),zr(d,p,"formTarget",k.formTarget,k,null)):(zr(d,p,"encType",k.encType,k,null),zr(d,p,"method",k.method,k,null),zr(d,p,"target",k.target,k,null)));if(P==null||typeof P=="symbol"||typeof P=="boolean"){d.removeAttribute(v);break}P=Zm(""+P),d.setAttribute(v,P);break;case"onClick":P!=null&&(d.onclick=r0);break;case"onScroll":P!=null&&tr("scroll",d);break;case"onScrollEnd":P!=null&&tr("scrollend",d);break;case"dangerouslySetInnerHTML":if(P!=null){if(typeof P!="object"||!("__html"in P))throw Error(r(61));if(v=P.__html,v!=null){if(k.children!=null)throw Error(r(60));d.innerHTML=v}}break;case"multiple":d.multiple=P&&typeof P!="function"&&typeof P!="symbol";break;case"muted":d.muted=P&&typeof P!="function"&&typeof P!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(P==null||typeof P=="function"||typeof P=="boolean"||typeof P=="symbol"){d.removeAttribute("xlink:href");break}v=Zm(""+P),d.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",v);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":P!=null&&typeof P!="function"&&typeof P!="symbol"?d.setAttribute(v,""+P):d.removeAttribute(v);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":P&&typeof P!="function"&&typeof P!="symbol"?d.setAttribute(v,""):d.removeAttribute(v);break;case"capture":case"download":P===!0?d.setAttribute(v,""):P!==!1&&P!=null&&typeof P!="function"&&typeof P!="symbol"?d.setAttribute(v,P):d.removeAttribute(v);break;case"cols":case"rows":case"size":case"span":P!=null&&typeof P!="function"&&typeof P!="symbol"&&!isNaN(P)&&1<=P?d.setAttribute(v,P):d.removeAttribute(v);break;case"rowSpan":case"start":P==null||typeof P=="function"||typeof P=="symbol"||isNaN(P)?d.removeAttribute(v):d.setAttribute(v,P);break;case"popover":tr("beforetoggle",d),tr("toggle",d),eh(d,"popover",P);break;case"xlinkActuate":fs(d,"http://www.w3.org/1999/xlink","xlink:actuate",P);break;case"xlinkArcrole":fs(d,"http://www.w3.org/1999/xlink","xlink:arcrole",P);break;case"xlinkRole":fs(d,"http://www.w3.org/1999/xlink","xlink:role",P);break;case"xlinkShow":fs(d,"http://www.w3.org/1999/xlink","xlink:show",P);break;case"xlinkTitle":fs(d,"http://www.w3.org/1999/xlink","xlink:title",P);break;case"xlinkType":fs(d,"http://www.w3.org/1999/xlink","xlink:type",P);break;case"xmlBase":fs(d,"http://www.w3.org/XML/1998/namespace","xml:base",P);break;case"xmlLang":fs(d,"http://www.w3.org/XML/1998/namespace","xml:lang",P);break;case"xmlSpace":fs(d,"http://www.w3.org/XML/1998/namespace","xml:space",P);break;case"is":eh(d,"is",P);break;case"innerText":case"textContent":break;default:(!(2<v.length)||v[0]!=="o"&&v[0]!=="O"||v[1]!=="n"&&v[1]!=="N")&&(v=NP.get(v)||v,eh(d,v,P))}}function PC(d,p,v,P,k,j){switch(v){case"style":oS(d,P,j);break;case"dangerouslySetInnerHTML":if(P!=null){if(typeof P!="object"||!("__html"in P))throw Error(r(61));if(v=P.__html,v!=null){if(k.children!=null)throw Error(r(60));d.innerHTML=v}}break;case"children":typeof P=="string"?ud(d,P):(typeof P=="number"||typeof P=="bigint")&&ud(d,""+P);break;case"onScroll":P!=null&&tr("scroll",d);break;case"onScrollEnd":P!=null&&tr("scrollend",d);break;case"onClick":P!=null&&(d.onclick=r0);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Wt.hasOwnProperty(v))e:{if(v[0]==="o"&&v[1]==="n"&&(k=v.endsWith("Capture"),p=v.slice(2,k?v.length-7:void 0),j=d[pn]||null,j=j!=null?j[v]:null,typeof j=="function"&&d.removeEventListener(p,j,k),typeof P=="function")){typeof j!="function"&&j!==null&&(v in d?d[v]=null:d.hasAttribute(v)&&d.removeAttribute(v)),d.addEventListener(p,P,k);break e}v in d?d[v]=P:P===!0?d.setAttribute(v,""):eh(d,v,P)}}}function fi(d,p,v){switch(p){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":tr("error",d),tr("load",d);var P=!1,k=!1,j;for(j in v)if(v.hasOwnProperty(j)){var Z=v[j];if(Z!=null)switch(j){case"src":P=!0;break;case"srcSet":k=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,p));default:zr(d,p,j,Z,v,null)}}k&&zr(d,p,"srcSet",v.srcSet,v,null),P&&zr(d,p,"src",v.src,v,null);return;case"input":tr("invalid",d);var ie=j=Z=k=null,be=null,ze=null;for(P in v)if(v.hasOwnProperty(P)){var dt=v[P];if(dt!=null)switch(P){case"name":k=dt;break;case"type":Z=dt;break;case"checked":be=dt;break;case"defaultChecked":ze=dt;break;case"value":j=dt;break;case"defaultValue":ie=dt;break;case"children":case"dangerouslySetInnerHTML":if(dt!=null)throw Error(r(137,p));break;default:zr(d,p,P,dt,v,null)}}tS(d,j,ie,be,ze,Z,k,!1),Wv(d);return;case"select":tr("invalid",d),P=Z=j=null;for(k in v)if(v.hasOwnProperty(k)&&(ie=v[k],ie!=null))switch(k){case"value":j=ie;break;case"defaultValue":Z=ie;break;case"multiple":P=ie;default:zr(d,p,k,ie,v,null)}p=j,v=Z,d.multiple=!!P,p!=null?th(d,!!P,p,!1):v!=null&&th(d,!!P,v,!0);return;case"textarea":tr("invalid",d),j=k=P=null;for(Z in v)if(v.hasOwnProperty(Z)&&(ie=v[Z],ie!=null))switch(Z){case"value":P=ie;break;case"defaultValue":k=ie;break;case"children":j=ie;break;case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(91));break;default:zr(d,p,Z,ie,v,null)}Kv(d,P,k,j),Wv(d);return;case"option":for(be in v)if(v.hasOwnProperty(be)&&(P=v[be],P!=null))switch(be){case"selected":d.selected=P&&typeof P!="function"&&typeof P!="symbol";break;default:zr(d,p,be,P,v,null)}return;case"dialog":tr("beforetoggle",d),tr("toggle",d),tr("cancel",d),tr("close",d);break;case"iframe":case"object":tr("load",d);break;case"video":case"audio":for(P=0;P<Jg.length;P++)tr(Jg[P],d);break;case"image":tr("error",d),tr("load",d);break;case"details":tr("toggle",d);break;case"embed":case"source":case"link":tr("error",d),tr("load",d);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ze in v)if(v.hasOwnProperty(ze)&&(P=v[ze],P!=null))switch(ze){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,p));default:zr(d,p,ze,P,v,null)}return;default:if(iS(p)){for(dt in v)v.hasOwnProperty(dt)&&(P=v[dt],P!==void 0&&PC(d,p,dt,P,v,void 0));return}}for(ie in v)v.hasOwnProperty(ie)&&(P=v[ie],P!=null&&zr(d,p,ie,P,v,null))}function bN(d,p,v,P){switch(p){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var k=null,j=null,Z=null,ie=null,be=null,ze=null,dt=null;for(Ve in v){var gt=v[Ve];if(v.hasOwnProperty(Ve)&&gt!=null)switch(Ve){case"checked":break;case"value":break;case"defaultValue":be=gt;default:P.hasOwnProperty(Ve)||zr(d,p,Ve,null,P,gt)}}for(var Ge in P){var Ve=P[Ge];if(gt=v[Ge],P.hasOwnProperty(Ge)&&(Ve!=null||gt!=null))switch(Ge){case"type":j=Ve;break;case"name":k=Ve;break;case"checked":ze=Ve;break;case"defaultChecked":dt=Ve;break;case"value":Z=Ve;break;case"defaultValue":ie=Ve;break;case"children":case"dangerouslySetInnerHTML":if(Ve!=null)throw Error(r(137,p));break;default:Ve!==gt&&zr(d,p,Ge,Ve,P,gt)}}qv(d,Z,ie,be,ze,dt,j,k);return;case"select":Ve=Z=ie=Ge=null;for(j in v)if(be=v[j],v.hasOwnProperty(j)&&be!=null)switch(j){case"value":break;case"multiple":Ve=be;default:P.hasOwnProperty(j)||zr(d,p,j,null,P,be)}for(k in P)if(j=P[k],be=v[k],P.hasOwnProperty(k)&&(j!=null||be!=null))switch(k){case"value":Ge=j;break;case"defaultValue":ie=j;break;case"multiple":Z=j;default:j!==be&&zr(d,p,k,j,P,be)}p=ie,v=Z,P=Ve,Ge!=null?th(d,!!v,Ge,!1):!!P!=!!v&&(p!=null?th(d,!!v,p,!0):th(d,!!v,v?[]:"",!1));return;case"textarea":Ve=Ge=null;for(ie in v)if(k=v[ie],v.hasOwnProperty(ie)&&k!=null&&!P.hasOwnProperty(ie))switch(ie){case"value":break;case"children":break;default:zr(d,p,ie,null,P,k)}for(Z in P)if(k=P[Z],j=v[Z],P.hasOwnProperty(Z)&&(k!=null||j!=null))switch(Z){case"value":Ge=k;break;case"defaultValue":Ve=k;break;case"children":break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(91));break;default:k!==j&&zr(d,p,Z,k,P,j)}nS(d,Ge,Ve);return;case"option":for(var yn in v)if(Ge=v[yn],v.hasOwnProperty(yn)&&Ge!=null&&!P.hasOwnProperty(yn))switch(yn){case"selected":d.selected=!1;break;default:zr(d,p,yn,null,P,Ge)}for(be in P)if(Ge=P[be],Ve=v[be],P.hasOwnProperty(be)&&Ge!==Ve&&(Ge!=null||Ve!=null))switch(be){case"selected":d.selected=Ge&&typeof Ge!="function"&&typeof Ge!="symbol";break;default:zr(d,p,be,Ge,P,Ve)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var gn in v)Ge=v[gn],v.hasOwnProperty(gn)&&Ge!=null&&!P.hasOwnProperty(gn)&&zr(d,p,gn,null,P,Ge);for(ze in P)if(Ge=P[ze],Ve=v[ze],P.hasOwnProperty(ze)&&Ge!==Ve&&(Ge!=null||Ve!=null))switch(ze){case"children":case"dangerouslySetInnerHTML":if(Ge!=null)throw Error(r(137,p));break;default:zr(d,p,ze,Ge,P,Ve)}return;default:if(iS(p)){for(var Vr in v)Ge=v[Vr],v.hasOwnProperty(Vr)&&Ge!==void 0&&!P.hasOwnProperty(Vr)&&PC(d,p,Vr,void 0,P,Ge);for(dt in P)Ge=P[dt],Ve=v[dt],!P.hasOwnProperty(dt)||Ge===Ve||Ge===void 0&&Ve===void 0||PC(d,p,dt,Ge,P,Ve);return}}for(var Ne in v)Ge=v[Ne],v.hasOwnProperty(Ne)&&Ge!=null&&!P.hasOwnProperty(Ne)&&zr(d,p,Ne,null,P,Ge);for(gt in P)Ge=P[gt],Ve=v[gt],!P.hasOwnProperty(gt)||Ge===Ve||Ge==null&&Ve==null||zr(d,p,gt,Ge,P,Ve)}var Pl=null,o0=null;function Xf(d){return d.nodeType===9?d:d.ownerDocument}function Co(d){switch(d){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Mo(d,p){if(d===0)switch(p){case"svg":return 1;case"math":return 2;default:return 0}return d===1&&p==="foreignObject"?0:d}function i0(d,p){return d==="textarea"||d==="noscript"||typeof p.children=="string"||typeof p.children=="number"||typeof p.children=="bigint"||typeof p.dangerouslySetInnerHTML=="object"&&p.dangerouslySetInnerHTML!==null&&p.dangerouslySetInnerHTML.__html!=null}var IC=null;function xN(){var d=window.event;return d&&d.type==="popstate"?d===IC?!1:(IC=d,!0):(IC=null,!1)}var OO=typeof setTimeout=="function"?setTimeout:void 0,wN=typeof clearTimeout=="function"?clearTimeout:void 0,MO=typeof Promise=="function"?Promise:void 0,SN=typeof queueMicrotask=="function"?queueMicrotask:typeof MO<"u"?function(d){return MO.resolve(null).then(d).catch(AO)}:OO;function AO(d){setTimeout(function(){throw d})}function el(d){return d==="head"}function a0(d,p){var v=p,P=0,k=0;do{var j=v.nextSibling;if(d.removeChild(v),j&&j.nodeType===8)if(v=j.data,v==="/$"){if(0<P&&8>P){v=P;var Z=d.ownerDocument;if(v&1&&Zg(Z.documentElement),v&2&&Zg(Z.body),v&4)for(v=Z.head,Zg(v),Z=v.firstChild;Z;){var ie=Z.nextSibling,be=Z.nodeName;Z[Zi]||be==="SCRIPT"||be==="STYLE"||be==="LINK"&&Z.rel.toLowerCase()==="stylesheet"||v.removeChild(Z),Z=ie}}if(k===0){d.removeChild(j),sy(p);return}k--}else v==="$"||v==="$?"||v==="$!"?k++:P=v.charCodeAt(0)-48;else P=0;v=j}while(v);sy(p)}function OC(d){var p=d.firstChild;for(p&&p.nodeType===10&&(p=p.nextSibling);p;){var v=p;switch(p=p.nextSibling,v.nodeName){case"HTML":case"HEAD":case"BODY":OC(v),qo(v);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(v.rel.toLowerCase()==="stylesheet")continue}d.removeChild(v)}}function DO(d,p,v,P){for(;d.nodeType===1;){var k=v;if(d.nodeName.toLowerCase()!==p.toLowerCase()){if(!P&&(d.nodeName!=="INPUT"||d.type!=="hidden"))break}else if(P){if(!d[Zi])switch(p){case"meta":if(!d.hasAttribute("itemprop"))break;return d;case"link":if(j=d.getAttribute("rel"),j==="stylesheet"&&d.hasAttribute("data-precedence"))break;if(j!==k.rel||d.getAttribute("href")!==(k.href==null||k.href===""?null:k.href)||d.getAttribute("crossorigin")!==(k.crossOrigin==null?null:k.crossOrigin)||d.getAttribute("title")!==(k.title==null?null:k.title))break;return d;case"style":if(d.hasAttribute("data-precedence"))break;return d;case"script":if(j=d.getAttribute("src"),(j!==(k.src==null?null:k.src)||d.getAttribute("type")!==(k.type==null?null:k.type)||d.getAttribute("crossorigin")!==(k.crossOrigin==null?null:k.crossOrigin))&&j&&d.hasAttribute("async")&&!d.hasAttribute("itemprop"))break;return d;default:return d}}else if(p==="input"&&d.type==="hidden"){var j=k.name==null?null:""+k.name;if(k.type==="hidden"&&d.getAttribute("name")===j)return d}else return d;if(d=Il(d.nextSibling),d===null)break}return null}function s0(d,p,v){if(p==="")return null;for(;d.nodeType!==3;)if((d.nodeType!==1||d.nodeName!=="INPUT"||d.type!=="hidden")&&!v||(d=Il(d.nextSibling),d===null))return null;return d}function Ia(d){return d.data==="$!"||d.data==="$?"&&d.ownerDocument.readyState==="complete"}function jh(d,p){var v=d.ownerDocument;if(d.data!=="$?"||v.readyState==="complete")p();else{var P=function(){p(),v.removeEventListener("DOMContentLoaded",P)};v.addEventListener("DOMContentLoaded",P),d._reactRetry=P}}function Il(d){for(;d!=null;d=d.nextSibling){var p=d.nodeType;if(p===1||p===3)break;if(p===8){if(p=d.data,p==="$"||p==="$!"||p==="$?"||p==="F!"||p==="F")break;if(p==="/$")return null}}return d}var MC=null;function RO(d){d=d.previousSibling;for(var p=0;d;){if(d.nodeType===8){var v=d.data;if(v==="$"||v==="$!"||v==="$?"){if(p===0)return d;p--}else v==="/$"&&p++}d=d.previousSibling}return null}function kO(d,p,v){switch(p=Xf(v),d){case"html":if(d=p.documentElement,!d)throw Error(r(452));return d;case"head":if(d=p.head,!d)throw Error(r(453));return d;case"body":if(d=p.body,!d)throw Error(r(454));return d;default:throw Error(r(451))}}function Zg(d){for(var p=d.attributes;p.length;)d.removeAttributeNode(p[0]);qo(d)}var Cs=new Map,mc=new Set;function Rn(d){return typeof d.getRootNode=="function"?d.getRootNode():d.nodeType===9?d:d.ownerDocument}var gc=Y.d;Y.d={f:tl,r:NO,D:CN,C:_O,L:l0,m:EN,X:PN,S:TN,M:IN};function tl(){var d=gc.f(),p=Yb();return d||p}function NO(d){var p=xa(d);p!==null&&p.tag===5&&p.type==="form"?Rb(p):gc.r(d)}var Bh=typeof document>"u"?null:document;function Tr(d,p,v){var P=Bh;if(P&&typeof p=="string"&&p){var k=zs(p);k='link[rel="'+d+'"][href="'+k+'"]',typeof v=="string"&&(k+='[crossorigin="'+v+'"]'),mc.has(k)||(mc.add(k),d={rel:d,crossOrigin:v,href:p},P.querySelector(k)===null&&(p=P.createElement("link"),fi(p,"link",d),Ye(p),P.head.appendChild(p)))}}function CN(d){gc.D(d),Tr("dns-prefetch",d,null)}function _O(d,p){gc.C(d,p),Tr("preconnect",d,p)}function l0(d,p,v){gc.L(d,p,v);var P=Bh;if(P&&d&&p){var k='link[rel="preload"][as="'+zs(p)+'"]';p==="image"&&v&&v.imageSrcSet?(k+='[imagesrcset="'+zs(v.imageSrcSet)+'"]',typeof v.imageSizes=="string"&&(k+='[imagesizes="'+zs(v.imageSizes)+'"]')):k+='[href="'+zs(d)+'"]';var j=k;switch(p){case"style":j=zh(d);break;case"script":j=Vh(d)}Cs.has(j)||(d=u({rel:"preload",href:p==="image"&&v&&v.imageSrcSet?void 0:d,as:p},v),Cs.set(j,d),P.querySelector(k)!==null||p==="style"&&P.querySelector(ey(j))||p==="script"&&P.querySelector(ty(j))||(p=P.createElement("link"),fi(p,"link",d),Ye(p),P.head.appendChild(p)))}}function EN(d,p){gc.m(d,p);var v=Bh;if(v&&d){var P=p&&typeof p.as=="string"?p.as:"script",k='link[rel="modulepreload"][as="'+zs(P)+'"][href="'+zs(d)+'"]',j=k;switch(P){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":j=Vh(d)}if(!Cs.has(j)&&(d=u({rel:"modulepreload",href:d},p),Cs.set(j,d),v.querySelector(k)===null)){switch(P){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(v.querySelector(ty(j)))return}P=v.createElement("link"),fi(P,"link",d),Ye(P),v.head.appendChild(P)}}}function TN(d,p,v){gc.S(d,p,v);var P=Bh;if(P&&d){var k=vl(P).hoistableStyles,j=zh(d);p=p||"default";var Z=k.get(j);if(!Z){var ie={loading:0,preload:null};if(Z=P.querySelector(ey(j)))ie.loading=5;else{d=u({rel:"stylesheet",href:d,"data-precedence":p},v),(v=Cs.get(j))&&ny(d,v);var be=Z=P.createElement("link");Ye(be),fi(be,"link",d),be._p=new Promise(function(ze,dt){be.onload=ze,be.onerror=dt}),be.addEventListener("load",function(){ie.loading|=1}),be.addEventListener("error",function(){ie.loading|=2}),ie.loading|=4,c0(Z,p,P)}Z={type:"stylesheet",instance:Z,count:1,state:ie},k.set(j,Z)}}}function PN(d,p){gc.X(d,p);var v=Bh;if(v&&d){var P=vl(v).hoistableScripts,k=Vh(d),j=P.get(k);j||(j=v.querySelector(ty(k)),j||(d=u({src:d,async:!0},p),(p=Cs.get(k))&&AC(d,p),j=v.createElement("script"),Ye(j),fi(j,"link",d),v.head.appendChild(j)),j={type:"script",instance:j,count:1,state:null},P.set(k,j))}}function IN(d,p){gc.M(d,p);var v=Bh;if(v&&d){var P=vl(v).hoistableScripts,k=Vh(d),j=P.get(k);j||(j=v.querySelector(ty(k)),j||(d=u({src:d,async:!0,type:"module"},p),(p=Cs.get(k))&&AC(d,p),j=v.createElement("script"),Ye(j),fi(j,"link",d),v.head.appendChild(j)),j={type:"script",instance:j,count:1,state:null},P.set(k,j))}}function LO(d,p,v,P){var k=(k=fe.current)?Rn(k):null;if(!k)throw Error(r(446));switch(d){case"meta":case"title":return null;case"style":return typeof v.precedence=="string"&&typeof v.href=="string"?(p=zh(v.href),v=vl(k).hoistableStyles,P=v.get(p),P||(P={type:"style",instance:null,count:0,state:null},v.set(p,P)),P):{type:"void",instance:null,count:0,state:null};case"link":if(v.rel==="stylesheet"&&typeof v.href=="string"&&typeof v.precedence=="string"){d=zh(v.href);var j=vl(k).hoistableStyles,Z=j.get(d);if(Z||(k=k.ownerDocument||k,Z={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},j.set(d,Z),(j=k.querySelector(ey(d)))&&!j._p&&(Z.instance=j,Z.state.loading=5),Cs.has(d)||(v={rel:"preload",as:"style",href:v.href,crossOrigin:v.crossOrigin,integrity:v.integrity,media:v.media,hrefLang:v.hrefLang,referrerPolicy:v.referrerPolicy},Cs.set(d,v),j||ON(k,d,v,Z.state))),p&&P===null)throw Error(r(528,""));return Z}if(p&&P!==null)throw Error(r(529,""));return null;case"script":return p=v.async,v=v.src,typeof v=="string"&&p&&typeof p!="function"&&typeof p!="symbol"?(p=Vh(v),v=vl(k).hoistableScripts,P=v.get(p),P||(P={type:"script",instance:null,count:0,state:null},v.set(p,P)),P):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,d))}}function zh(d){return'href="'+zs(d)+'"'}function ey(d){return'link[rel="stylesheet"]['+d+"]"}function $O(d){return u({},d,{"data-precedence":d.precedence,precedence:null})}function ON(d,p,v,P){d.querySelector('link[rel="preload"][as="style"]['+p+"]")?P.loading=1:(p=d.createElement("link"),P.preload=p,p.addEventListener("load",function(){return P.loading|=1}),p.addEventListener("error",function(){return P.loading|=2}),fi(p,"link",v),Ye(p),d.head.appendChild(p))}function Vh(d){return'[src="'+zs(d)+'"]'}function ty(d){return"script[async]"+d}function FO(d,p,v){if(p.count++,p.instance===null)switch(p.type){case"style":var P=d.querySelector('style[data-href~="'+zs(v.href)+'"]');if(P)return p.instance=P,Ye(P),P;var k=u({},v,{"data-href":v.href,"data-precedence":v.precedence,href:null,precedence:null});return P=(d.ownerDocument||d).createElement("style"),Ye(P),fi(P,"style",k),c0(P,v.precedence,d),p.instance=P;case"stylesheet":k=zh(v.href);var j=d.querySelector(ey(k));if(j)return p.state.loading|=4,p.instance=j,Ye(j),j;P=$O(v),(k=Cs.get(k))&&ny(P,k),j=(d.ownerDocument||d).createElement("link"),Ye(j);var Z=j;return Z._p=new Promise(function(ie,be){Z.onload=ie,Z.onerror=be}),fi(j,"link",P),p.state.loading|=4,c0(j,v.precedence,d),p.instance=j;case"script":return j=Vh(v.src),(k=d.querySelector(ty(j)))?(p.instance=k,Ye(k),k):(P=v,(k=Cs.get(j))&&(P=u({},v),AC(P,k)),d=d.ownerDocument||d,k=d.createElement("script"),Ye(k),fi(k,"link",P),d.head.appendChild(k),p.instance=k);case"void":return null;default:throw Error(r(443,p.type))}else p.type==="stylesheet"&&(p.state.loading&4)===0&&(P=p.instance,p.state.loading|=4,c0(P,v.precedence,d));return p.instance}function c0(d,p,v){for(var P=v.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),k=P.length?P[P.length-1]:null,j=k,Z=0;Z<P.length;Z++){var ie=P[Z];if(ie.dataset.precedence===p)j=ie;else if(j!==k)break}j?j.parentNode.insertBefore(d,j.nextSibling):(p=v.nodeType===9?v.head:v,p.insertBefore(d,p.firstChild))}function ny(d,p){d.crossOrigin==null&&(d.crossOrigin=p.crossOrigin),d.referrerPolicy==null&&(d.referrerPolicy=p.referrerPolicy),d.title==null&&(d.title=p.title)}function AC(d,p){d.crossOrigin==null&&(d.crossOrigin=p.crossOrigin),d.referrerPolicy==null&&(d.referrerPolicy=p.referrerPolicy),d.integrity==null&&(d.integrity=p.integrity)}var Hh=null;function jO(d,p,v){if(Hh===null){var P=new Map,k=Hh=new Map;k.set(v,P)}else k=Hh,P=k.get(v),P||(P=new Map,k.set(v,P));if(P.has(d))return P;for(P.set(d,null),v=v.getElementsByTagName(d),k=0;k<v.length;k++){var j=v[k];if(!(j[Zi]||j[ln]||d==="link"&&j.getAttribute("rel")==="stylesheet")&&j.namespaceURI!=="http://www.w3.org/2000/svg"){var Z=j.getAttribute(p)||"";Z=d+Z;var ie=P.get(Z);ie?ie.push(j):P.set(Z,[j])}}return P}function BO(d,p,v){d=d.ownerDocument||d,d.head.insertBefore(v,p==="title"?d.querySelector("head > title"):null)}function MN(d,p,v){if(v===1||p.itemProp!=null)return!1;switch(d){case"meta":case"title":return!0;case"style":if(typeof p.precedence!="string"||typeof p.href!="string"||p.href==="")break;return!0;case"link":if(typeof p.rel!="string"||typeof p.href!="string"||p.href===""||p.onLoad||p.onError)break;switch(p.rel){case"stylesheet":return d=p.disabled,typeof p.precedence=="string"&&d==null;default:return!0}case"script":if(p.async&&typeof p.async!="function"&&typeof p.async!="symbol"&&!p.onLoad&&!p.onError&&p.src&&typeof p.src=="string")return!0}return!1}function pi(d){return!(d.type==="stylesheet"&&(d.state.loading&3)===0)}var Oi=null;function AN(){}function DN(d,p,v){if(Oi===null)throw Error(r(475));var P=Oi;if(p.type==="stylesheet"&&(typeof v.media!="string"||matchMedia(v.media).matches!==!1)&&(p.state.loading&4)===0){if(p.instance===null){var k=zh(v.href),j=d.querySelector(ey(k));if(j){d=j._p,d!==null&&typeof d=="object"&&typeof d.then=="function"&&(P.count++,P=ry.bind(P),d.then(P,P)),p.state.loading|=4,p.instance=j,Ye(j);return}j=d.ownerDocument||d,v=$O(v),(k=Cs.get(k))&&ny(v,k),j=j.createElement("link"),Ye(j);var Z=j;Z._p=new Promise(function(ie,be){Z.onload=ie,Z.onerror=be}),fi(j,"link",v),p.instance=j}P.stylesheets===null&&(P.stylesheets=new Map),P.stylesheets.set(p,d),(d=p.state.preload)&&(p.state.loading&3)===0&&(P.count++,p=ry.bind(P),d.addEventListener("load",p),d.addEventListener("error",p))}}function RN(){if(Oi===null)throw Error(r(475));var d=Oi;return d.stylesheets&&d.count===0&&DC(d,d.stylesheets),0<d.count?function(p){var v=setTimeout(function(){if(d.stylesheets&&DC(d,d.stylesheets),d.unsuspend){var P=d.unsuspend;d.unsuspend=null,P()}},6e4);return d.unsuspend=p,function(){d.unsuspend=null,clearTimeout(v)}}:null}function ry(){if(this.count--,this.count===0){if(this.stylesheets)DC(this,this.stylesheets);else if(this.unsuspend){var d=this.unsuspend;this.unsuspend=null,d()}}}var u0=null;function DC(d,p){d.stylesheets=null,d.unsuspend!==null&&(d.count++,u0=new Map,p.forEach(kN,d),u0=null,ry.call(d))}function kN(d,p){if(!(p.state.loading&4)){var v=u0.get(d);if(v)var P=v.get(null);else{v=new Map,u0.set(d,v);for(var k=d.querySelectorAll("link[data-precedence],style[data-precedence]"),j=0;j<k.length;j++){var Z=k[j];(Z.nodeName==="LINK"||Z.getAttribute("media")!=="not all")&&(v.set(Z.dataset.precedence,Z),P=Z)}P&&v.set(null,P)}k=p.instance,Z=k.getAttribute("data-precedence"),j=v.get(Z)||P,j===P&&v.set(null,k),v.set(Z,k),this.count++,P=ry.bind(this),k.addEventListener("load",P),k.addEventListener("error",P),j?j.parentNode.insertBefore(k,j.nextSibling):(d=d.nodeType===9?d.head:d,d.insertBefore(k,d.firstChild)),p.state.loading|=4}}var Uh={$$typeof:I,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function NN(d,p,v,P,k,j,Z,ie){this.tag=1,this.containerInfo=d,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=xr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xr(0),this.hiddenUpdates=xr(null),this.identifierPrefix=P,this.onUncaughtError=k,this.onCaughtError=j,this.onRecoverableError=Z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ie,this.incompleteTransitions=new Map}function zO(d,p,v,P,k,j,Z,ie,be,ze,dt,gt){return d=new NN(d,p,v,Z,ie,be,ze,gt),p=1,j===!0&&(p|=24),j=Ba(3,null,null,p),d.current=j,j.stateNode=d,p=TS(),p.refCount++,d.pooledCache=p,p.refCount++,j.memoizedState={element:P,isDehydrated:v,cache:p},Ff(j),d}function VO(d){return d?(d=Df,d):Df}function RC(d,p,v,P,k,j){k=VO(k),P.context===null?P.context=k:P.pendingContext=k,P=xd(p),P.payload={element:v},j=j===void 0?null:j,j!==null&&(P.callback=j),v=pu(d,P,p),v!==null&&(Ss(v,d,p),gg(v,d,p))}function kC(d,p){if(d=d.memoizedState,d!==null&&d.dehydrated!==null){var v=d.retryLane;d.retryLane=v!==0&&v<p?v:p}}function NC(d,p){kC(d,p),(d=d.alternate)&&kC(d,p)}function HO(d){if(d.tag===13){var p=Af(d,67108864);p!==null&&Ss(p,d,67108864),NC(d,67108864)}}var d0=!0;function _N(d,p,v,P){var k=V.T;V.T=null;var j=Y.p;try{Y.p=2,_C(d,p,v,P)}finally{Y.p=j,V.T=k}}function Gh(d,p,v,P){var k=V.T;V.T=null;var j=Y.p;try{Y.p=8,_C(d,p,v,P)}finally{Y.p=j,V.T=k}}function _C(d,p,v,P){if(d0){var k=LC(P);if(k===null)Eu(d,p,P,f0,v),GO(d,P);else if($N(k,d,p,v,P))P.stopPropagation();else if(GO(d,P),p&4&&-1<LN.indexOf(d)){for(;k!==null;){var j=xa(k);if(j!==null)switch(j.tag){case 3:if(j=j.stateNode,j.current.memoizedState.isDehydrated){var Z=Qt(j.pendingLanes);if(Z!==0){var ie=j;for(ie.pendingLanes|=2,ie.entangledLanes|=2;Z;){var be=1<<31-tt(Z);ie.entanglements[1]|=be,Z&=~be}hc(j),(Nr&6)===0&&(kh=Te()+500,Yg(0))}}break;case 13:ie=Af(j,2),ie!==null&&Ss(ie,j,2),Yb(),NC(j,2)}if(j=LC(P),j===null&&Eu(d,p,P,f0,v),j===k)break;k=j}k!==null&&P.stopPropagation()}else Eu(d,p,P,null,v)}}function LC(d){return d=aS(d),$C(d)}var f0=null;function $C(d){if(f0=null,d=uo(d),d!==null){var p=i(d);if(p===null)d=null;else{var v=p.tag;if(v===13){if(d=a(p),d!==null)return d;d=null}else if(v===3){if(p.stateNode.current.memoizedState.isDehydrated)return p.tag===3?p.stateNode.containerInfo:null;d=null}else p!==d&&(d=null)}}return f0=d,null}function UO(d){switch(d){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ce()){case Ze:return 2;case Me:return 8;case _e:case pe:return 32;case je:return 268435456;default:return 32}default:return 32}}var p0=!1,Tu=null,Ld=null,$d=null,oy=new Map,iy=new Map,Fd=[],LN="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function GO(d,p){switch(d){case"focusin":case"focusout":Tu=null;break;case"dragenter":case"dragleave":Ld=null;break;case"mouseover":case"mouseout":$d=null;break;case"pointerover":case"pointerout":oy.delete(p.pointerId);break;case"gotpointercapture":case"lostpointercapture":iy.delete(p.pointerId)}}function ay(d,p,v,P,k,j){return d===null||d.nativeEvent!==j?(d={blockedOn:p,domEventName:v,eventSystemFlags:P,nativeEvent:j,targetContainers:[k]},p!==null&&(p=xa(p),p!==null&&HO(p)),d):(d.eventSystemFlags|=P,p=d.targetContainers,k!==null&&p.indexOf(k)===-1&&p.push(k),d)}function $N(d,p,v,P,k){switch(p){case"focusin":return Tu=ay(Tu,d,p,v,P,k),!0;case"dragenter":return Ld=ay(Ld,d,p,v,P,k),!0;case"mouseover":return $d=ay($d,d,p,v,P,k),!0;case"pointerover":var j=k.pointerId;return oy.set(j,ay(oy.get(j)||null,d,p,v,P,k)),!0;case"gotpointercapture":return j=k.pointerId,iy.set(j,ay(iy.get(j)||null,d,p,v,P,k)),!0}return!1}function WO(d){var p=uo(d.target);if(p!==null){var v=i(p);if(v!==null){if(p=v.tag,p===13){if(p=a(v),p!==null){d.blockedOn=p,$t(d.priority,function(){if(v.tag===13){var P=ra();P=us(P);var k=Af(v,P);k!==null&&Ss(k,v,P),NC(v,P)}});return}}else if(p===3&&v.stateNode.current.memoizedState.isDehydrated){d.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}d.blockedOn=null}function h0(d){if(d.blockedOn!==null)return!1;for(var p=d.targetContainers;0<p.length;){var v=LC(d.nativeEvent);if(v===null){v=d.nativeEvent;var P=new v.constructor(v.type,v);Yv=P,v.target.dispatchEvent(P),Yv=null}else return p=xa(v),p!==null&&HO(p),d.blockedOn=v,!1;p.shift()}return!0}function qO(d,p,v){h0(d)&&v.delete(p)}function FN(){p0=!1,Tu!==null&&h0(Tu)&&(Tu=null),Ld!==null&&h0(Ld)&&(Ld=null),$d!==null&&h0($d)&&($d=null),oy.forEach(qO),iy.forEach(qO)}function m0(d,p){d.blockedOn===p&&(d.blockedOn=null,p0||(p0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,FN)))}var g0=null;function KO(d){g0!==d&&(g0=d,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){g0===d&&(g0=null);for(var p=0;p<d.length;p+=3){var v=d[p],P=d[p+1],k=d[p+2];if(typeof P!="function"){if($C(P||v)===null)continue;break}var j=xa(v);j!==null&&(d.splice(p,3),p-=3,Ig(j,{pending:!0,data:k,method:v.method,action:P},P,k))}}))}function sy(d){function p(be){return m0(be,d)}Tu!==null&&m0(Tu,d),Ld!==null&&m0(Ld,d),$d!==null&&m0($d,d),oy.forEach(p),iy.forEach(p);for(var v=0;v<Fd.length;v++){var P=Fd[v];P.blockedOn===d&&(P.blockedOn=null)}for(;0<Fd.length&&(v=Fd[0],v.blockedOn===null);)WO(v),v.blockedOn===null&&Fd.shift();if(v=(d.ownerDocument||d).$$reactFormReplay,v!=null)for(P=0;P<v.length;P+=3){var k=v[P],j=v[P+1],Z=k[pn]||null;if(typeof j=="function")Z||KO(v);else if(Z){var ie=null;if(j&&j.hasAttribute("formAction")){if(k=j,Z=j[pn]||null)ie=Z.formAction;else if($C(k)!==null)continue}else ie=Z.action;typeof ie=="function"?v[P+1]=ie:(v.splice(P,3),P-=3),KO(v)}}}function FC(d){this._internalRoot=d}y0.prototype.render=FC.prototype.render=function(d){var p=this._internalRoot;if(p===null)throw Error(r(409));var v=p.current,P=ra();RC(v,P,d,p,null,null)},y0.prototype.unmount=FC.prototype.unmount=function(){var d=this._internalRoot;if(d!==null){this._internalRoot=null;var p=d.containerInfo;RC(d.current,2,null,d,null,null),Yb(),p[cr]=null}};function y0(d){this._internalRoot=d}y0.prototype.unstable_scheduleHydration=function(d){if(d){var p=Vn();d={blockedOn:null,target:d,priority:p};for(var v=0;v<Fd.length&&p!==0&&p<Fd[v].priority;v++);Fd.splice(v,0,d),v===0&&WO(d)}};var YO=t.version;if(YO!=="19.1.1")throw Error(r(527,YO,"19.1.1"));Y.findDOMNode=function(d){var p=d._reactInternals;if(p===void 0)throw typeof d.render=="function"?Error(r(188)):(d=Object.keys(d).join(","),Error(r(268,d)));return d=l(p),d=d!==null?c(d):null,d=d===null?null:d.stateNode,d};var jN={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var v0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!v0.isDisabled&&v0.supportsFiber)try{nt=v0.inject(jN),ot=v0}catch{}}return d1.createRoot=function(d,p){if(!o(d))throw Error(r(299));var v=!1,P="",k=XS,j=_b,Z=NI,ie=null;return p!=null&&(p.unstable_strictMode===!0&&(v=!0),p.identifierPrefix!==void 0&&(P=p.identifierPrefix),p.onUncaughtError!==void 0&&(k=p.onUncaughtError),p.onCaughtError!==void 0&&(j=p.onCaughtError),p.onRecoverableError!==void 0&&(Z=p.onRecoverableError),p.unstable_transitionCallbacks!==void 0&&(ie=p.unstable_transitionCallbacks)),p=zO(d,1,!1,null,null,v,P,k,j,Z,ie,null),d[cr]=p.current,TC(d),new FC(p)},d1.hydrateRoot=function(d,p,v){if(!o(d))throw Error(r(299));var P=!1,k="",j=XS,Z=_b,ie=NI,be=null,ze=null;return v!=null&&(v.unstable_strictMode===!0&&(P=!0),v.identifierPrefix!==void 0&&(k=v.identifierPrefix),v.onUncaughtError!==void 0&&(j=v.onUncaughtError),v.onCaughtError!==void 0&&(Z=v.onCaughtError),v.onRecoverableError!==void 0&&(ie=v.onRecoverableError),v.unstable_transitionCallbacks!==void 0&&(be=v.unstable_transitionCallbacks),v.formState!==void 0&&(ze=v.formState)),p=zO(d,1,!0,p,v??null,P,k,j,Z,ie,be,ze),p.context=VO(null),v=p.current,P=ra(),P=us(P),k=xd(P),k.callback=null,pu(v,k,P),v=P,p.current.lanes=v,Yn(p,v),hc(p),d[cr]=p.current,TC(d),new y0(p)},d1.version="19.1.1",d1}var _K;function xst(){if(_K)return L$.exports;_K=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),L$.exports=bst(),L$.exports}var Hv=xst();const wst=()=>J(xe,{container:!0,spacing:2,children:[w(xe,{size:{xs:12,sm:4},children:w(oce,{})}),w(xe,{size:{xs:12,sm:4},children:w(Tle,{})}),w(xe,{size:{xs:12,sm:4},children:w(sce,{})})]}),gP=m.createContext({}),lce=()=>{const{data:e,isLoading:t}=u2(),{selectedCategories:n,setSelectedCategories:r}=m.useContext(gP),[o]=We(),i=a=>()=>{const s=n.indexOf(a),l=[...n];s===-1?l.push(a):l.splice(s,1),r(l)};return t?w(lo,{}):w(ca,{children:e.map(a=>{const s=`checkbox-list-label-${a.id}`;return w(vi,{disablePadding:!0,children:J(Gu,{role:void 0,onClick:i(a),dense:!0,children:[w(Ql,{children:w(Wi,{edge:"start",checked:n.indexOf(a)!==-1,tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":s}},`category-${a.id}`)}),w(ko,{id:s,primary:a.translatedName})]})},a.id)})})},Sst=()=>{const[e]=We();return J(Dz,{children:[w(kz,{expandIcon:w(hp,{}),children:e("category")}),w(Rz,{children:w(lce,{})})]})},Cst=()=>{const[e]=We();return w("div",{"data-testid":"categories",children:J(ai,{children:[w(wt,{gutterBottom:!0,variant:"h6",m:2,children:e("category")}),w(lce,{})]})})},cce=()=>{const{data:e,isLoading:t}=d2(),{selectedEquipment:n,setSelectedEquipment:r}=m.useContext(gP),[o]=We(),i=a=>()=>{const s=n.indexOf(a),l=[...n];s===-1?l.push(a):l.splice(s,1),r(l)};return t?w(lo,{}):w(ca,{sx:{maxHeight:"500px",overflowY:"auto"},children:e.map(a=>{const s=`checkbox-list-label-${a.id}`;return w(vi,{disablePadding:!0,children:J(Gu,{role:void 0,onClick:i(a),dense:!0,children:[w(Ql,{children:w(Wi,{edge:"start",checked:n.indexOf(a)!==-1,tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":s}},`muscle-${a.id}`)}),w(ko,{id:s,primary:a.translatedName})]})},a.id)})})},Est=()=>{const[e]=We();return J(Dz,{children:[w(kz,{expandIcon:w(hp,{}),children:e("exercises.equipment")}),w(Rz,{children:w(cce,{})})]})},Tst=()=>{const[e]=We();return w("div",{"data-testid":"equipment",children:J(ai,{sx:{mt:2},children:[w(wt,{gutterBottom:!0,variant:"h6",m:2,children:e("exercises.equipment")}),w(cce,{})]})})},Pst=ue(({className:e,...t})=>w(Gi,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Yo.tooltip}`]:{backgroundColor:"rgb(245, 245, 245)",color:"rgba(0, 0, 0, 0.87)",boxShadow:e.shadows[1],fontSize:11}})),td=({primaryMuscles:e,secondaryMuscles:t,isFront:n})=>{const r=[];r.push(...e.filter(i=>i.isFront===n).map(i=>`/muscles/main/muscle-${i.id}.svg`)),r.push(...t.filter(i=>i.isFront===n).map(i=>`/muscles/secondary/muscle-${i.id}.svg`)),r.push(n?"/muscles/muscular_system_front.svg":"/muscles/muscular_system_back.svg");const o=r.map(i=>`url(${$Oe}${i})`).join(", ");return w("div",{style:{height:"400px",width:"200px",backgroundImage:o,backgroundRepeat:"no-repeat"}})},uce=()=>{const{data:e,isLoading:t}=Nw(),{selectedMuscles:n,setSelectedMuscles:r}=m.useContext(gP),[o]=We(),i=a=>()=>{const s=n.indexOf(a),l=[...n];s===-1?l.push(a):l.splice(s,1),r(l)};return t?w(lo,{}):w(ca,{sx:{maxHeight:"500px",overflowY:"auto"},children:e.map(a=>{const s=`checkbox-list-label-${a.id}`;return w(vi,{disablePadding:!0,secondaryAction:w(Pst,{title:w(td,{primaryMuscles:[a],secondaryMuscles:[],isFront:a.isFront}),placement:"right",arrow:!0,children:w(An,{edge:"end","aria-label":"comments",children:w($le,{})})}),children:J(Gu,{role:void 0,onClick:i(a),dense:!0,children:[w(Ql,{children:w(Wi,{edge:"start",checked:n.indexOf(a)!==-1,tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":s}},`muscle-${a.id}`)}),w(ko,{id:s,primary:a.name,secondary:a.nameEn!==""?a.translatedName:""})]})},a.id)})})},Ist=()=>{const[e]=We();return J(Dz,{children:[w(kz,{expandIcon:w(hp,{}),children:e("exercises.muscles")}),w(Rz,{children:w(uce,{})})]})},Ost=()=>{const[e]=We();return w("div",{"data-testid":"muscles",children:J(ai,{sx:{mt:2},children:[w(wt,{gutterBottom:!0,variant:"h6",m:2,children:e("exercises.muscles")}),w(uce,{})]})})};function Wx({callback:e,loadExercise:t}){const[n,r]=m.useState(null),[o,i]=m.useState(""),[a,s]=m.useState(!0),[l,c]=m.useState([]),[u,f]=We();t=t===void 0?!1:t;const h=m.useMemo(()=>Rse(g=>iAe(g,f.language,a).then(y=>c(y)),200),[f.language,a]);return m.useEffect(()=>{if(o===""){c(n?[n]:[]);return}return h(o),()=>{}},[n,o,h]),J(_t,{children:[w(rf,{id:"exercise-name-autocomplete",getOptionLabel:g=>g.value,"data-testid":"autocomplete",filterOptions:g=>g,options:l,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:n,noOptionsText:u("noResults"),isOptionEqualToValue:(g,y)=>g.value===y.value,onChange:async(g,y)=>{c(y?[y,...l]:l),r(y),t&&y!==null&&(y.exercise=await pw(y.data.base_id)),e(y)},onInputChange:(g,y)=>{i(y)},renderInput:g=>w(On,{...g,label:u("exercises.searchExerciseName"),fullWidth:!0,slotProps:{input:{...g.InputProps,startAdornment:J(_t,{children:[w(gi,{position:"start",children:w(FU,{})}),g.InputProps.startAdornment]})}}}),renderOption:(g,y,x)=>lE("li",{...g,key:`exercise-${x.index}-${y.data.id}`,"data-testid":`autocompleter-result-${y.data.base_id}`},J(vi,{disablePadding:!0,component:"div",children:[w(Ql,{children:y.data.image?w(Ju,{alt:"",src:`${SZ}${y.data.image}`,variant:"rounded"}):w(Bp,{fontSize:"large"})}),w(ko,{primary:y.value,slotProps:{primary:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},secondary:y.data.category})]}))}),f.language!==Ix&&w(yE,{children:w(Yl,{control:w(Wi,{checked:a,onChange:(g,y)=>s(y)}),label:u("alsoSearchEnglish")})})]})}const Mst=e=>{const t=e.backgroundColor||"lightgray",n=e.iconColor||"gray",r=e.height||200;return w(mn,{sx:{backgroundColor:t,height:r},display:"flex",alignItems:"center",justifyContent:"center",children:w(Bp,{sx:{fontSize:80,color:n}})})},dce=({exercise:e,language:t})=>{const n=t?e.getTranslation(t):e.getTranslation(new nV(Pm,"en","English")),[r,o]=We();return w(oi,{sx:{width:"100%"},children:J(iwe,{href:Cn(hn.EXERCISE_DETAIL,o.language,{id:e.id,slug:n.nameSlug}),sx:{minHeight:330},children:[e.mainImage?w(of,{component:"img",image:e.mainImage.url,sx:{height:200},alt:""}):w(of,{children:w(Mst,{})}),J(ss,{children:[w(Gi,{title:n.name,placement:"top",arrow:!0,children:w(wt,{gutterBottom:!0,variant:"h6",component:"div",noWrap:!0,children:n.name})}),w(Yc,{label:e.category.translatedName,sx:{position:"absolute",top:8,left:8},color:"primary",size:"small"},e.category.id),e.equipment.map(i=>w(wt,{display:"inline",mr:1,children:i.translatedName},i.id)),e.equipment.length===0&&w(wt,{color:"text.secondary",display:"inline",mr:1,children:r("exercises.noEquipment")})]})]})},e.id)},Ast=({exercises:e})=>{const t=xf(),[n,r]=We();let o;return t.isSuccess&&(o=Op(r.language,t.data)),w(xe,{container:!0,spacing:1,children:e.map(i=>w(xe,{sx:{display:"flex"},size:{xs:6,md:4},children:w(dce,{exercise:i,language:o})},i.id))})},Dst=()=>w(xe,{container:!0,spacing:1,children:[...Array(21)].map((e,t)=>w(xe,{sx:{display:"flex"},size:4,children:J(oi,{children:[w(of,{children:w(tA,{variant:"rectangular",width:250,height:150})}),w(ss,{children:J(mn,{sx:{pt:.5},children:[w(tA,{width:"60%"}),w(tA,{})]})})]})},t))}),Rst=({children:e})=>{const[t]=We(),[n,r]=m.useState(!1),o=i=>()=>{r(i)};return J(_t,{children:[w(St,{onClick:o(!0),children:w(pit,{})}),J(_Se,{open:n,onClose:o(!1),anchor:"right",children:[J(Jt,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[w(wt,{gutterBottom:!0,variant:"h6",m:2,children:t("filters")}),w(St,{onClick:o(!1),children:w(wT,{})})]}),w($s,{}),e]})]})},kst=()=>{const[e,t]=We();return J(mn,{marginTop:4,padding:4,sx:{width:"100%",backgroundColor:"#ebebeb",textAlign:"center"},children:[w(wt,{gutterBottom:!0,variant:"h4",component:"div",children:e("exercises.missingExercise")}),w(wt,{gutterBottom:!0,variant:"body1",component:"div",children:e("exercises.missingExerciseDescription")}),w(Ri,{to:Cn(hn.EXERCISE_CONTRIBUTE,t.language),children:e("exercises.contributeExercise")})]})},Nst=()=>{const e=Ble(),[t,n]=We(),r=Yp(),{selectedCategories:o,selectedEquipment:i,selectedMuscles:a}=m.useContext(gP),s=Em("(max-width:600px)"),[l,c]=qe.useState(1),u=(S,C)=>{c(C),window.scrollTo({top:0,behavior:"smooth"})},f=m.useMemo(()=>{let S=e.data||[];return o.length>0&&(S=S.filter(C=>o.some(E=>C.category.id===E.id))),i.length>0&&(S=S.filter(C=>C.equipment.some(E=>i.some(I=>I.id===E.id)))),a.length>0&&(S=S.filter(C=>C.muscles.some(E=>a.some(I=>I.id===E.id)))),S},[e.data,o,i,a]),h=21,g=Math.ceil(f.length/h),y=f.slice((l-1)*h,l*h),x=S=>{S&&r(Cn(hn.EXERCISE_DETAIL,n.language,{id:S.data.base_id}))};return w(Pp,{maxWidth:"lg",children:J(xe,{container:!0,spacing:2,mt:2,children:[w(xe,{size:{xs:10,sm:6},children:w(wt,{gutterBottom:!0,variant:"h3",component:"div",children:t("exercises.exercises")})}),s?J(_t,{children:[w(xe,{size:{xs:2,sm:6},children:w(St,{variant:"contained",onClick:()=>r(Cn(hn.EXERCISE_CONTRIBUTE,n.language)),children:w(bi,{})})}),w(xe,{flexGrow:1,size:{sm:6},children:w(Wx,{callback:x})}),w(xe,{display:"flex",justifyContent:"center",alignItems:"center",size:{xs:2,sm:6},children:J(Rst,{children:[w(Sst,{}),w(Est,{}),w(Ist,{})]})})]}):J(_t,{children:[w(xe,{size:{xs:12,sm:3},children:w(Wx,{callback:x})}),w(xe,{size:{xs:12,sm:3},children:w(St,{variant:"contained",startIcon:w(bi,{}),onClick:()=>r(Cn(hn.EXERCISE_CONTRIBUTE,n.language)),children:t("exercises.contributeExercise")})})]}),!s&&w(xe,{size:{xs:12,sm:3},children:J(xe,{container:!0,spacing:1,children:[w(xe,{size:{xs:6,sm:12},children:w(Cst,{})}),w(xe,{size:{xs:6,sm:12},children:w(Tst,{})}),w(xe,{size:12,children:w(Ost,{})})]})}),J(xe,{size:{xs:12,sm:9},children:[e.isLoading?w(Dst,{}):J(_t,{children:[w(Ast,{exercises:y}),w(Jt,{spacing:2,alignItems:"center",sx:{mt:2},children:w(X1e,{count:g,color:"primary",page:l,onChange:u})})]}),w(kst,{})]})]})})},LK=()=>{const[e,t]=m.useState([]),[n,r]=m.useState([]),[o,i]=qe.useState([]);return w(gP.Provider,{value:{selectedEquipment:e,setSelectedEquipment:t,selectedMuscles:n,setSelectedMuscles:r,selectedCategories:o,setSelectedCategories:i},children:w(Nst,{})})};function fce(e){const{t}=We();return J(St,{size:"small",component:"a",href:e.href,children:[w(sit,{fontSize:"inherit"}),e.backToTitle??t("goBack")]})}const rc=e=>{const t=w(fce,{href:e.backToUrl,backToTitle:e.backToTitle});return J(Pp,{maxWidth:"lg",children:[J(xe,{container:!0,spacing:2,children:[w(xe,{sx:{mb:2},size:8,children:J(Jt,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[J(Jt,{alignItems:"start",children:[w(wt,{variant:"h3",children:e.title}),e.subTitle&&w(wt,{variant:"h6",children:e.subTitle}),e.backToUrl&&t]}),e.optionsMenu]})}),w(xe,{size:{xs:12,sm:8},children:e.mainContent}),w(xe,{size:{xs:12,sm:4},children:e.sideBar})]}),e.fab]})},yP=e=>{const t=w(fce,{href:e.backToUrl,backToTitle:e.backToTitle});return w(Pp,{maxWidth:e.maxWidth,children:J(xe,{container:!0,spacing:2,children:[w(xe,{sx:{mb:2},size:12,children:J(Jt,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[J(Jt,{alignItems:"start",children:[w(wt,{variant:"h3",children:e.title}),e.backToUrl&&t]}),e.optionsMenu]})}),w(xe,{size:12,children:e.children})]})})};function pce(e){return Zr({queryKey:[fw,JSON.stringify(e||{})],queryFn:()=>ake(e)})}const _st=()=>{const e=Bt();return zt({mutationFn:t=>lke(t),onSuccess:()=>e.invalidateQueries({queryKey:[fw]})})},Lst=e=>{const t=Bt();return zt({mutationFn:n=>cke(n),onSuccess:()=>{t.invalidateQueries({queryKey:[dw,e]}),t.invalidateQueries({queryKey:[fw]})}})},$st=e=>{const t=Bt();return zt({mutationFn:n=>uke(n),onSuccess:()=>{t.invalidateQueries({queryKey:[dw,e]}),t.invalidateQueries({queryKey:[fw]})}})};function hce(e){return Zr({queryKey:[dw,e],queryFn:()=>ske(e)})}const Fst=()=>{const e=Bt();return zt({mutationFn:t=>pke(t),onError:t=>{console.log(t)},onSuccess:()=>{e.invalidateQueries({queryKey:[dw]}),e.invalidateQueries({queryKey:[fw]})}})},mce=()=>{const e=Bt();return zt({mutationFn:t=>fke(t),onSuccess:()=>{e.invalidateQueries({queryKey:[dw]}),e.invalidateQueries({queryKey:[fw]})}})},jst=()=>{const e=Bt();return zt({mutationFn:t=>dke(t),onSuccess:()=>e.invalidateQueries({queryKey:[dw]})})},gce=m.createContext(void 0);function wn(){const e=m.useContext(gce);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
-`));return e}const yce=m.createContext(void 0),Ot=()=>{const e=m.useContext(yce);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},vce=parseInt(m.version,10),rn=e=>{if(vce>=19){const t=n=>e(n,n.ref??null);return t.displayName=e.displayName??e.name,t}return m.forwardRef(e)},Bst=Object.is;function bce(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!Bst(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}var xce=Hte();const zst=Object.is,l5=bce,Vst=(e,t)=>e===t?!0:e.length===t.length&&e.every((n,r)=>n===t[r]),wce=(e,t)=>{let n=Object.is;return t instanceof Array?n=Vst:t instanceof Object&&(n=l5),n(e,t)},Hst=()=>({state:null,equals:null,selector:null,args:void 0}),$K=[],Ust=()=>null,rt=(e,t,n=void 0,r=zst)=>{const o=nd(Hst),i=o.current.selector!==null,[a,s]=m.useState(i?null:t(e,n));o.current.state=a,o.current.equals=r,o.current.selector=t;const l=o.current.args;if(o.current.args=n,i&&!wce(l,n)){const f=o.current.selector(e,o.current.args);o.current.equals(o.current.state,f)||(o.current.state=f,s(f))}const c=m.useCallback(()=>(o.current.subscription||(o.current.subscription=e.current.store.subscribe(()=>{const f=o.current.selector(e,o.current.args);o.current.equals(o.current.state,f)||(o.current.state=f,s(f))})),null),$K),u=m.useCallback(()=>()=>{o.current.subscription&&(o.current.subscription(),o.current.subscription=void 0)},$K);return xce.useSyncExternalStore(u,c,Ust),a};class Gst{constructor(t){this.value=t}deref(){return this.value}}const Wst=()=>typeof WeakRef>"u"?Gst:WeakRef,Sce=Wst(),qst=0,FK=1;function VM(){return{s:qst,v:void 0,o:null,p:null}}function Kst(e){return e instanceof Sce?e.deref():e}function Yst(e,t={}){let n=VM();const{resultEqualityCheck:r}=t;let o,i=0;function a(){let s=n;const{length:l}=arguments;for(let f=0,h=l;f<h;f+=1){let g=arguments[f];if(typeof g=="function"||typeof g=="object"&&g!==null){"current"in g&&"instanceId"in g.current&&(g=g.current.state);let y=s.o;y===null&&(y=new WeakMap,s.o=y);const x=y.get(g);x===void 0?(s=VM(),y.set(g,s)):s=x}else{let y=s.p;y===null&&(y=new Map,s.p=y);const x=y.get(g);x===void 0?(s=VM(),y.set(g,s)):s=x}}const c=s;let u;if(s.s===FK)u=s.v;else if(u=e.apply(null,arguments),i+=1,r){const f=Kst(o);f!=null&&r(f,u)&&(u=f,i!==0&&(i-=1)),o=typeof u=="object"&&u!==null||typeof u=="function"?new Sce(u):u}return c.s=FK,c.v=u,u}return a.clearCache=()=>{n=VM(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}const jK=Wte({memoize:Ute,memoizeOptions:{maxSize:1,equalityCheck:Object.is},argsMemoize:Yst}),BK=new WeakMap,Ft=(e,t,n,r,o,i,...a)=>{if(a.length>0)throw new Error("Unsupported number of selectors");let s;if(e&&t&&n&&r&&o&&i)s=(l,c)=>{const u=e(l,c),f=t(l,c),h=n(l,c),g=r(l,c),y=o(l,c);return i(u,f,h,g,y,c)};else if(e&&t&&n&&r&&o)s=(l,c)=>{const u=e(l,c),f=t(l,c),h=n(l,c),g=r(l,c);return o(u,f,h,g,c)};else if(e&&t&&n&&r)s=(l,c)=>{const u=e(l,c),f=t(l,c),h=n(l,c);return r(u,f,h,c)};else if(e&&t&&n)s=(l,c)=>{const u=e(l,c),f=t(l,c);return n(u,f,c)};else if(e&&t)s=(l,c)=>{const u=e(l,c);return t(u,c)};else throw new Error("Missing arguments");return s},Wo=e=>(t,n)=>e(t.current.state,n),Cr=(...e)=>(n,r)=>{const o=n.current.instanceId,i=BK.get(o),a=i??new Map,s=a.get(e);if(a&&s){if(!wce(s.selectorArgs,r)){const u=r!==void 0?[...e.slice(0,e.length-1),()=>r,e[e.length-1]]:e,f=jK(...u);return f.selectorArgs=r,a.set(e,f),f(n,r)}return s(n,r)}const l=r!==void 0?[...e.slice(0,e.length-1),()=>r,e[e.length-1]]:e,c=jK(...l);return c.selectorArgs=r,i||BK.set(o,a),a.set(e,c),c(n,r)},Wr=Wo(e=>e.dimensions),h2=Ft(Wr,e=>e.columnsTotalWidth),c5=Ft(Wr,e=>e.rowHeight),Qst=Ft(Wr,e=>e.contentSize.height),Xst=Ft(Wr,e=>e.hasScrollX),Jst=Ft(Wr,e=>e.hasScrollY),Cce=Ft(Wr,e=>e.columnsTotalWidth<e.viewportOuterSize.width),Zst=Ft(Wr,e=>e.headerHeight),elt=Ft(Wr,e=>e.groupHeaderHeight);Ft(Wr,e=>e.headerFilterHeight);const tlt=Ft(Wr,e=>e.hasScrollX?e.scrollbarSize:0),Ece=Ft(Wr,e=>e.hasScrollY?e.scrollbarSize:0),nlt=Ft(Wr,tlt,(e,t)=>{const n=e.viewportOuterSize.height-e.minimumSize.height>0;return!(t===0&&!n)});function Qp(e){return m.memo(e,bce)}const rlt={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",noColumnsOverlayLabel:"No columns",noColumnsOverlayManageColumns:"Manage columns",emptyPivotOverlayLabel:"Add fields to rows, columns, and values to create a pivot table",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",toolbarPivot:"Pivot",toolbarAssistant:"AI Assistant",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",headerFilterClear:"Clear filter",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuAriaLabel:e=>`${e} column menu`,columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnMenuManagePivot:"Manage pivot",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",paginationRowsPerPage:"Rows per page:",paginationDisplayedRows:({from:e,to:t,count:n,estimated:r})=>{if(!r)return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`;const o=r&&r>t?`around ${r}`:`more than ${t}`;return`${e}–${t} of ${n!==-1?n:o}`},paginationItemAriaLabel:e=>e==="first"?"Go to first page":e==="last"?"Go to last page":e==="next"?"Go to next page":"Go to previous page",rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size",pivotToggleLabel:"Pivot",pivotRows:"Rows",pivotColumns:"Columns",pivotValues:"Values",pivotCloseButton:"Close pivot settings",pivotSearchButton:"Search fields",pivotSearchControlPlaceholder:"Search fields",pivotSearchControlLabel:"Search fields",pivotSearchControlClear:"Clear search",pivotNoFields:"No fields",pivotMenuMoveUp:"Move up",pivotMenuMoveDown:"Move down",pivotMenuMoveToTop:"Move to top",pivotMenuMoveToBottom:"Move to bottom",pivotMenuRows:"Rows",pivotMenuColumns:"Columns",pivotMenuValues:"Values",pivotMenuOptions:"Field options",pivotMenuAddToRows:"Add to Rows",pivotMenuAddToColumns:"Add to Columns",pivotMenuAddToValues:"Add to Values",pivotMenuRemove:"Remove",pivotDragToRows:"Drag here to create rows",pivotDragToColumns:"Drag here to create columns",pivotDragToValues:"Drag here to create values",pivotYearColumnHeaderName:"(Year)",pivotQuarterColumnHeaderName:"(Quarter)",aiAssistantPanelTitle:"AI Assistant",aiAssistantPanelClose:"Close AI Assistant",aiAssistantPanelNewConversation:"New conversation",aiAssistantPanelConversationHistory:"Conversation history",aiAssistantPanelEmptyConversation:"No prompt history",aiAssistantSuggestions:"Suggestions",promptFieldLabel:"Prompt",promptFieldPlaceholder:"Type a prompt…",promptFieldPlaceholderWithRecording:"Type or record a prompt…",promptFieldPlaceholderListening:"Listening for prompt…",promptFieldSpeechRecognitionNotSupported:"Speech recognition is not supported in this browser",promptFieldSend:"Send",promptFieldRecord:"Record",promptFieldStopRecording:"Stop recording",promptRerun:"Run again",promptProcessing:"Processing…",promptAppliedChanges:"Applied changes",promptChangeGroupDescription:e=>`Group by ${e}`,promptChangeAggregationLabel:(e,t)=>`${e} (${t})`,promptChangeAggregationDescription:(e,t)=>`Aggregate ${e} (${t})`,promptChangeFilterLabel:(e,t,n)=>t==="is any of"?`${e} is any of: ${n}`:`${e} ${t} ${n}`,promptChangeFilterDescription:(e,t,n)=>t==="is any of"?`Filter where ${e} is any of: ${n}`:`Filter where ${e} ${t} ${n}`,promptChangeSortDescription:(e,t)=>`Sort by ${e} (${t})`,promptChangePivotEnableLabel:"Pivot",promptChangePivotEnableDescription:"Enable pivot",promptChangePivotColumnsLabel:e=>`Columns (${e})`,promptChangePivotColumnsDescription:(e,t)=>`${e}${t?` (${t})`:""}`,promptChangePivotRowsLabel:e=>`Rows (${e})`,promptChangePivotValuesLabel:e=>`Values (${e})`,promptChangePivotValuesDescription:(e,t)=>`${e} (${t})`};function Bn(e){return st("MuiDataGrid",e)}const re=ct("MuiDataGrid",["aiAssistantPanel","aiAssistantPanelHeader","aiAssistantPanelTitleContainer","aiAssistantPanelTitle","aiAssistantPanelBody","aiAssistantPanelEmptyText","aiAssistantPanelFooter","aiAssistantPanelConversation","aiAssistantPanelConversationList","aiAssistantPanelConversationTitle","aiAssistantPanelSuggestions","aiAssistantPanelSuggestionsList","aiAssistantPanelSuggestionsItem","aiAssistantPanelSuggestionsLabel","actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","aggregationRowOverlayWrapper","autoHeight","autosizing","mainContent","withSidePanel","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","collapsible","collapsibleTrigger","collapsibleIcon","collapsiblePanel","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--lastUnpinned","columnHeader--siblingFocused","columnHeader--filter","columnHeaderFilterInput","columnHeaderFilterOperatorLabel","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","columnsManagementScrollArea","columnsManagementEmptyText","container--top","container--bottom","detailPanel","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hiddenContent","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--borderBottom","scrollbarFiller--pinnedRight","selectedRowCount","sortButton","sortIcon","shadowScrollArea","sidebar","sidebarHeader","toolbarContainer","toolbar","toolbarLabel","toolbarDivider","toolbarFilterList","toolbarQuickFilter","toolbarQuickFilterTrigger","toolbarQuickFilterControl","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pivotPanelAvailableFields","pivotPanelField","pivotPanelField--sorted","pivotPanelFieldActionContainer","pivotPanelFieldCheckbox","pivotPanelFieldDragIcon","pivotPanelFieldList","pivotPanelFieldName","pivotPanelHeader","pivotPanelPlaceholder","pivotPanelScrollArea","pivotPanelSearchContainer","pivotPanelSection","pivotPanelSectionTitle","pivotPanelSections","pivotPanelSwitch","pivotPanelSwitchLabel","prompt","promptContent","promptText","promptFeedback","promptChangeList","promptChangesToggle","promptChangesToggleIcon","promptIcon","promptIconContainer","promptError","promptAction"]);let qu=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}({});const zK=1e3;class olt{constructor(t=zK){this.timeouts=new Map,this.cleanupTimeout=zK,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class ilt{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class u5{static create(){return new u5}}const HM={current:slt()};let VK=0;function jt(e,t,n,r){const o=m.useState(u5.create)[0],i=m.useRef(null),a=m.useRef(null);a.current=n;const s=m.useRef(null);if(!i.current&&a.current){const l=(c,u,f)=>{u.defaultMuiPrevented||a.current?.(c,u,f)};i.current=e.current.subscribeEvent(t,l,r),VK+=1,s.current={cleanupToken:VK},HM.current.register(o,()=>{i.current?.(),i.current=null,s.current=null},s.current)}else!a.current&&i.current&&(i.current(),i.current=null,s.current&&(HM.current.unregister(s.current),s.current=null));m.useEffect(()=>{if(!i.current&&a.current){const l=(c,u,f)=>{u.defaultMuiPrevented||a.current?.(c,u,f)};i.current=e.current.subscribeEvent(t,l,r)}return s.current&&HM.current&&(HM.current.unregister(s.current),s.current=null),()=>{i.current?.(),i.current=null}},[e,t,r])}const alt={isFirst:!0};function jr(e,t,n){jt(e,t,n,alt)}function slt(){return typeof FinalizationRegistry<"u"?new ilt:new olt}const llt=.7,clt=1.3,ult={compact:llt,comfortable:clt,standard:1},ex=Wo(e=>e.density),Fw=Ft(ex,e=>ult[e]);function Xp(e){throw new Error("Failed assertion: should not be rendered")}const Tce={values:{xs:0,sm:600,md:900,lg:1200,xl:1536},up:e=>{const t=Tce.values;return`@media (min-width:${typeof t[e]=="number"?t[e]:e}px)`}},Pce={spacingUnit:"--DataGrid-t-spacing-unit",colors:{border:{base:"--DataGrid-t-color-border-base"},foreground:{base:"--DataGrid-t-color-foreground-base",muted:"--DataGrid-t-color-foreground-muted",accent:"--DataGrid-t-color-foreground-accent",disabled:"--DataGrid-t-color-foreground-disabled",error:"--DataGrid-t-color-foreground-error"},background:{base:"--DataGrid-t-color-background-base",overlay:"--DataGrid-t-color-background-overlay",backdrop:"--DataGrid-t-color-background-backdrop"},interactive:{hover:"--DataGrid-t-color-interactive-hover",hoverOpacity:"--DataGrid-t-color-interactive-hover-opacity",focus:"--DataGrid-t-color-interactive-focus",focusOpacity:"--DataGrid-t-color-interactive-focus-opacity",disabled:"--DataGrid-t-color-interactive-disabled",disabledOpacity:"--DataGrid-t-color-interactive-disabled-opacity",selected:"--DataGrid-t-color-interactive-selected",selectedOpacity:"--DataGrid-t-color-interactive-selected-opacity"}},header:{background:{base:"--DataGrid-t-header-background-base"}},cell:{background:{pinned:"--DataGrid-t-cell-background-pinned"}},radius:{base:"--DataGrid-t-radius-base"},typography:{font:{body:"--DataGrid-t-typography-font-body",small:"--DataGrid-t-typography-font-small",large:"--DataGrid-t-typography-font-large"},fontFamily:{base:"--DataGrid-t-typography-font-family-base"},fontWeight:{light:"--DataGrid-t-typography-font-weight-light",regular:"--DataGrid-t-typography-font-weight-regular",medium:"--DataGrid-t-typography-font-weight-medium",bold:"--DataGrid-t-typography-font-weight-bold"}},transitions:{easing:{easeIn:"--DataGrid-t-transition-easing-ease-in",easeOut:"--DataGrid-t-transition-easing-ease-out",easeInOut:"--DataGrid-t-transition-easing-ease-in-out"},duration:{short:"--DataGrid-t-transition-duration-short",base:"--DataGrid-t-transition-duration-base",long:"--DataGrid-t-transition-duration-long"}},shadows:{base:"--DataGrid-t-shadow-base",overlay:"--DataGrid-t-shadow-overlay"},zIndex:{panel:"--DataGrid-t-z-index-panel",menu:"--DataGrid-t-z-index-menu"}},dlt=Ice(Pce),Rt=B({breakpoints:Tce,spacing:flt,transition:plt,keys:Pce},dlt);function flt(e,t,n,r){return e===void 0?Au(1):t===void 0?Au(e):n===void 0?Au(e)+" "+Au(t):r===void 0?Au(e)+" "+Au(t)+" "+Au(n):Au(e)+" "+Au(t)+" "+Au(n)+" "+Au(r)}function Au(e){return e===0?"0":`calc(var(--DataGrid-t-spacing-unit) * ${e})`}function plt(e,t){const{duration:n=Rt.transitions.duration.base,easing:r=Rt.transitions.easing.easeInOut,delay:o=0}=t??{};return e.map(i=>`${i} ${n} ${r} ${o}ms`).join(", ")}function Ice(e){if(typeof e=="string")return`var(${e})`;const t={};for(const n in e)Object.hasOwn(e,n)&&(t[n]=Ice(e[n]));return t}const hlt=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange","slotProps"],mlt=e=>{const{classes:t}=e;return $e({root:["editInputCell"]},Bn,t)},glt=ue(Xp,{name:"MuiDataGrid",slot:"EditInputCell"})({font:Rt.typography.font.body,padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}),ylt=rn((e,t)=>{const n=Ot(),{id:r,value:o,field:i,colDef:a,hasFocus:s,debounceMs:l=200,isProcessingProps:c,onValueChange:u,slotProps:f}=e,h=He(e,hlt),g=wn(),y=m.useRef(null),[x,S]=m.useState(o),C=mlt(n),E=m.useCallback(async M=>{const O=M.target.value,D=g.current.getColumn(i);let N=O;D.valueParser&&(N=D.valueParser(O,g.current.getRow(r),D,g)),S(N),g.current.setEditCellValue({id:r,field:i,value:N,debounceMs:l,unstable_skipValueParser:!0},M),u&&await u(M,O)},[g,l,i,r,u]),I=g.current.unstable_getEditCellMeta(r,i);return m.useEffect(()=>{I?.changeReason!=="debouncedSetEditCellValue"&&S(o)},[I,o]),qn(()=>{s&&y.current.focus()},[s]),R.jsx(glt,B({as:n.slots.baseInput,inputRef:y,className:C.root,ownerState:n,fullWidth:!0,type:a.type==="number"?a.type:"text",value:x??"",onChange:E,endAdornment:c?R.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},h,f?.root,{ref:t}))}),vlt=e=>R.jsx(ylt,B({},e)),ld=Wo(e=>e.rows),vP=Ft(ld,e=>e.totalRowCount),blt=Ft(ld,e=>e.loading),xlt=Ft(ld,e=>e.totalTopLevelRowCount),$c=Ft(ld,e=>e.dataRowIdToModelLookup);Ft($c,(e,t)=>e[t]);const ka=Ft(ld,e=>e.tree),Yd=Ft(ka,(e,t)=>e[t]),wlt=Ft(ld,e=>e.groupsToFetch),Slt=Ft(ld,e=>e.groupingName),HK=Ft(ld,e=>e.treeDepths),jw=Cr(ld,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:(t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]??0)+1}),Ly=Ft(ld,e=>e.dataRowIds),Clt=Cr(Ly,$c,(e,t)=>e.reduce((n,r)=>(t[r]&&n.push(t[r]),n),[])),Elt=Ft(ld,e=>e?.additionalRowGroups),Bw=Cr(Elt,e=>{const t=e?.pinnedRows;return{bottom:t?.bottom?.map(n=>({id:n.id,model:n.model??{}}))??[],top:t?.top?.map(n=>({id:n.id,model:n.model??{}}))??[]}}),Oce=Ft(Bw,e=>(e?.top?.length||0)+(e?.bottom?.length||0)),Mce=(e,t)=>t&&e.length>1?[e[0]]:e,UK=(e,t)=>n=>B({},n,{sorting:B({},n.sorting,{sortModel:Mce(e,t)})}),Tlt=e=>e==="desc",Plt=(e,t)=>{const n=t.current.getColumn(e.field);if(!n||e.sort===null)return null;let r;return n.getSortComparator?r=n.getSortComparator(e.sort):r=Tlt(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator,r?{getSortCellParams:i=>({id:i,field:n.field,rowNode:Yd(t,i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}:null},Ilt=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const a=t.params[i],s=n.params[i];return r=o.comparator(a.value,s.value,a,s),r},0),Olt=(e,t)=>{const n=e.map(r=>Plt(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>Ilt(n,o,i)).map(o=>o.node.id)},GK=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},d5=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,Mlt=new Intl.Collator,Alt=(e,t)=>{const n=d5(e,t);return n!==null?n:typeof e=="string"?Mlt.compare(e.toString(),t.toString()):e-t},Ace=(e,t)=>{const n=d5(e,t);return n!==null?n:Number(e)-Number(t)},Dce=(e,t)=>{const n=d5(e,t);return n!==null?n:e>t?1:e<t?-1:0},Dlt=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","slotProps","clearButton","headerFilterMenu"];function kc(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,tabIndex:a,disabled:s,slotProps:l,clearButton:c,headerFilterMenu:u}=e,f=He(e,Dlt),h=l?.root,g=Ni(),[y,x]=m.useState(j$(t.value)),[S,C]=m.useState(!1),E=_n(),I=Ot(),M=m.useCallback(O=>{const D=j$(O.target.value);x(D),C(!0),g.start(I.filterDebounceMs,()=>{const N=B({},t,{value:r==="number"&&!Number.isNaN(Number(D))?Number(D):D,fromInput:E});n(N),C(!1)})},[g,I.filterDebounceMs,t,r,E,n]);return m.useEffect(()=>{(t.fromInput!==E||t.value==null)&&x(j$(t.value))},[E,t]),R.jsxs(m.Fragment,{children:[R.jsx(I.slots.baseTextField,B({id:E,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:y??"",onChange:M,type:r||"text",disabled:s,slotProps:B({},h?.slotProps,{input:B({endAdornment:S?R.jsx(I.slots.loadIcon,{fontSize:"small",color:"action"}):null},h?.slotProps?.input),htmlInput:B({tabIndex:a},h?.slotProps?.htmlInput)}),inputRef:i},I.slotProps?.baseTextField,f,h)),u,c]})}function j$(e){if(!(e==null||e===""))return String(e)}function Rlt(e){return typeof e=="number"&&!Number.isNaN(e)}function klt(e){return typeof e=="function"}function f5(e){return typeof e=="object"&&e!==null}function Nlt(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function WD(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Ul=(e,t,n)=>Math.max(t,Math.min(n,e));function WK(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function _lt(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function Llt(e){const t=_lt(e);return(n,r)=>n+(r-n)*t()}function Rce(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const sm=(e,t)=>n=>{e&&t(n)};function kce(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,slotProps:a}=e,s=_n(),[l,c]=m.useState([]),[u,f]=m.useState(t.value||[]),h=Ot();m.useEffect(()=>{const S=t.value??[];f(S.map(String))},[t.value]);const g=m.useCallback((S,C)=>{f(C.map(String)),n(B({},t,{value:[...C.map(E=>r==="number"?Number(E):E)]}))},[n,t,r]),y=m.useCallback((S,C)=>{c(C===""?[]:[C])},[c]),x=h.slots.baseAutocomplete;return R.jsx(x,B({multiple:!0,freeSolo:!0,options:l,id:s,value:u,onChange:g,onInputChange:y,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:r||"text",inputRef:i}}},a?.root))}var df=function(e){return e.Cell="cell",e.Row="row",e}(df||{}),Pr=function(e){return e.Edit="edit",e.View="view",e}(Pr||{}),mr=function(e){return e.Edit="edit",e.View="view",e}(mr||{}),Ds=function(e){return e.And="and",e.Or="or",e}(Ds||{});class $lt{constructor(t){this.data=void 0,this.data=t.ids}has(t){return this.data.has(t)}select(t){this.data.add(t)}unselect(t){this.data.delete(t)}}class Flt{constructor(t){this.data=void 0,this.data=t.ids}has(t){return!this.data.has(t)}select(t){this.data.delete(t)}unselect(t){this.data.add(t)}}const lm=e=>e.type==="include"?new $lt(e):new Flt(e);var rp=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(rp||{}),ku=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(ku||{}),Xh=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Xh||{}),Ic=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Ic||{});function Nce(e){return e.field!==void 0}const _ce={filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},WE=()=>({items:[],logicOperator:Ds.And,quickFilterValues:[],quickFilterLogicOperator:Ds.And});function Lce(e){return{current:e.current.getPublicApi()}}let nm=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const qD={left:[],right:[]},jlt=Wo(e=>e.isRtl),Ku=Wo(e=>e.columns),ef=Ft(Ku,e=>e.orderedFields),Jp=Ft(Ku,e=>e.lookup),Yu=Cr(ef,Jp,(e,t)=>e.map(n=>t[n])),Hu=Ft(Ku,e=>e.columnVisibilityModel),Blt=Ft(Ku,e=>e.initialColumnVisibilityModel),Uo=Cr(Yu,Hu,(e,t)=>e.filter(n=>t[n.field]!==!1)),zw=Cr(Uo,e=>e.map(t=>t.field)),zlt=Wo(e=>e.pinnedColumns),Vw=Cr(Ku,zlt,zw,jlt,(e,t,n,r)=>{const o=Vlt(t,n,r);return{left:o.left.map(a=>e.lookup[a]),right:o.right.map(a=>e.lookup[a])}});function Vlt(e,t,n){if(!Array.isArray(e.left)&&!Array.isArray(e.right)||e.left?.length===0&&e.right?.length===0)return qD;const r=(s,l)=>Array.isArray(s)?s.filter(c=>l.includes(c)):[],o=r(e.left,t),i=t.filter(s=>!o.includes(s)),a=r(e.right,i);return n?{left:a,right:o}:{left:o,right:a}}const Ym=Cr(Uo,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),$ce=Cr(Yu,e=>e.filter(t=>t.filterable)),Hlt=Cr(Yu,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),Ult=Cr(Yu,e=>e.some(t=>t.colSpan!==void 0));let f1;function Glt(){if(f1!==void 0)return f1;try{f1=new Function("return true")()}catch{f1=!1}return f1}const $B=(e,t)=>{const n=B({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=Jp(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},p5=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?o=[e.items[0]]:o=e.items;const i=r&&o.some(s=>s.id==null);return o.some(s=>s.operator==null)||i?B({},e,{items:o.map(s=>$B(s,n))}):e.items!==o?B({},e,{items:o}):e},qK=(e,t,n)=>r=>B({},r,{filterModel:p5(e,t,n)}),qE=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,Fce=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){const u=n.valueParser;r=Array.isArray(e.value)?e.value?.map(f=>u(f,void 0,n,t)):u(e.value,void 0,n,t)}else r=e.value;const{ignoreDiacritics:o}=t.current.rootProps;o&&(r=qE(r));const i=B({},e,{value:r}),a=n.filterOperators;if(!a?.length)throw new Error(`MUI X: No filter operators found for column '${n.field}'.`);const s=a.find(u=>u.value===i.operator);if(!s)throw new Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const l=Lce(t),c=s.getApplyFilterFn(i,n);return typeof c!="function"?null:{item:i,fn:u=>{let f=t.current.getRowValue(u,n);return o&&(f=qE(f)),c(f,u,n,l)}}};let KK=1;const Wlt=(e,t,n)=>{const{items:r}=e,o=r.map(s=>Fce(s,t)).filter(s=>!!s);if(o.length===0)return null;if(n||!Glt())return(s,l)=>{const c={};for(let u=0;u<o.length;u+=1){const f=o[u];(!l||l(f.item.field))&&(c[f.item.id]=f.fn(s))}return c};const i=new Function("appliers","row","shouldApplyFilter",`"use strict";
-${o.map((s,l)=>`const shouldApply${l} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(s.item.field)});`).join(`
-`)}
-
-const result$$ = {
-${o.map((s,l)=>` ${JSON.stringify(String(s.item.id))}: !shouldApply${l} ? false : appliers[${l}].fn(row),`).join(`
-`)}
-};
-
-return result$$;`.replaceAll("$$",String(KK)));return KK+=1,(s,l)=>i(o,s,l)},jce=e=>e.quickFilterExcludeHiddenColumns??!0,qlt=(e,t)=>{const n=e.quickFilterValues?.filter(Boolean)??[];if(n.length===0)return null;const r=jce(e)?zw(t):ef(t),o=[],{ignoreDiacritics:i}=t.current.rootProps,a=Lce(t);return r.forEach(s=>{const l=t.current.getColumn(s),c=l?.getApplyQuickFilterFn;c&&o.push({column:l,appliers:n.map(u=>{const f=i?qE(u):u;return{fn:c(f,l,a)}})})}),function(l,c){const u={};e:for(let f=0;f<n.length;f+=1){const h=n[f];for(let g=0;g<o.length;g+=1){const{column:y,appliers:x}=o[g],{field:S}=y;if(c&&!c(S))continue;const C=x[f];let E=t.current.getRowValue(l,y);if(C.fn===null)continue;if(i&&(E=qE(E)),C.fn(E,l,y,a)){u[h]=!0;continue e}}u[h]=!1}return u}},Klt=(e,t,n)=>{const r=Wlt(e,t,n),o=qlt(e,t);return function(a,s,l){l.passingFilterItems=r?.(a,s)??null,l.passingQuickFilterValues=o?.(a,s)??null}},YK=e=>e!=null,Ylt=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>Fce(r,t)!==null)),e.cleanedFilterItems),Qlt=(e,t,n,r,o)=>{const i=Ylt(o,r,n.items),a=e.filter(YK),s=t.filter(YK);if(a.length>0){const l=u=>a.some(f=>f[u.id]);if((n.logicOperator??WE().logicOperator)===Ds.And){if(!i.every(l))return!1}else if(!i.some(l))return!1}if(s.length>0&&n.quickFilterValues!=null){const l=u=>s.some(f=>f[u]);if((n.quickFilterLogicOperator??WE().quickFilterLogicOperator)===Ds.And){if(!n.quickFilterValues.every(l))return!1}else if(!n.quickFilterValues.some(l))return!1}return!0},Xlt=e=>{if(!e)return null;const t=new RegExp(WD(e),"i");return(n,r,o,i)=>{let a=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(a=qE(a)),a!=null?t.test(a.toString()):!1}},QK=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new RegExp(WD(r),"i");return i=>{if(i==null)return t;const a=o.test(String(i));return t?!a:a}},XK=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return i=>{if(i==null)return t;const a=o.compare(r,i.toString())===0;return t?!a:a}},JK=e=>()=>t=>{const n=t===""||t==null;return e?!n:n},Jlt=(e=!1)=>[{value:"contains",getApplyFilterFn:QK(e,!1),InputComponent:kc},{value:"doesNotContain",getApplyFilterFn:QK(e,!0),InputComponent:kc},{value:"equals",getApplyFilterFn:XK(e,!1),InputComponent:kc},{value:"doesNotEqual",getApplyFilterFn:XK(e,!0),InputComponent:kc},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${WD(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:kc},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${WD(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:kc},{value:"isEmpty",getApplyFilterFn:JK(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:JK(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:kce}],Qu={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:Alt,type:"string",align:"left",filterOperators:Jlt(),renderEditCell:vlt,getApplyQuickFilterFn:Xlt},Bce=m.createContext(void 0),m2=()=>{const e=m.useContext(Bce);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid configuration context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
-`));return e},Zlt="MuiDataGridVariables",h5=m.createContext({className:"unset",tag:R.jsx("style",{href:"/unset"})});function zce(){return m.useContext(h5).className}function ect(){return m.useContext(h5)}function tct(e){const n=m2().hooks.useCSSVariables(),r=m.useMemo(()=>{const o=`${Zlt}-${n.id}`,i=`.${o}{${nct(n.variables)}}`,a=R.jsx("style",{href:`/${o}`,children:i});return{className:o,tag:a}},[n]);return R.jsx(h5.Provider,{value:r,children:e.children})}function nct(e){let t="";for(const n in e)Object.hasOwn(e,n)&&(t+=`${n}:${e[n]};`);return t}const rct=["open","target","onClose","children","position","className","onExited"],oct=e=>{const{classes:t}=e;return $e({root:["menu"]},Bn,t)},ict=ue(Xp,{name:"MuiDataGrid",slot:"Menu"})({zIndex:Rt.zIndex.menu,[`& .${re.menuList}`]:{outline:0}});function g2(e){const{open:t,target:n,onClose:r,children:o,position:i,className:a,onExited:s}=e,l=He(e,rct),c=wn(),u=Ot(),f=oct(u),h=zce(),g=m.useRef(null);qn(()=>{t?g.current=document.activeElement instanceof HTMLElement?document.activeElement:null:(g.current?.focus?.(),g.current=null)},[t]),m.useEffect(()=>{const x=t?"menuOpen":"menuClose";c.current.publishEvent(x,{target:n})},[c,t,n]);const y=x=>{x.target&&(n===x.target||n?.contains(x.target))||r(x)};return R.jsx(ict,B({as:u.slots.basePopper,className:ge(f.root,a,h),ownerState:u,open:t,target:n,transition:!0,placement:i,onClickAway:y,onExited:s,clickAwayMouseEvent:"onMouseDown"},l,u.slotProps?.basePopper,{children:o}))}const act=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],sct=e=>typeof e.getActions=="function";function lct(e){const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:i="bottom-end",focusElementRef:a}=e,s=He(e,act),[l,c]=m.useState(-1),[u,f]=m.useState(!1),h=wn(),g=m.useRef(null),y=m.useRef(null),x=m.useRef(!1),S=m.useRef({}),C=eo(),E=_n(),I=_n(),M=Ot();if(!sct(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const O=t.getActions(h.current.getRowParams(n)),D=O.filter(V=>!V.props.showInMenu),N=O.filter(V=>V.props.showInMenu),$=D.length+(N.length?1:0);m.useLayoutEffect(()=>{r||Object.entries(S.current).forEach(([V,Y])=>{Y?.stop({},()=>{delete S.current[V]})})},[r]),m.useEffect(()=>{if(l<0||!g.current||l>=g.current.children.length)return;g.current.children[l].focus({preventScroll:!0})},[l]),m.useEffect(()=>{r||(c(-1),x.current=!1)},[r]),m.useImperativeHandle(a,()=>({focus(){if(!x.current){const V=O.findIndex(Y=>!Y.props.disabled);c(V)}}}),[O]),m.useEffect(()=>{l>=$&&c($-1)},[l,$]);const L=()=>{f(!0),c($-1),x.current=!0},A=()=>{f(!1)},F=V=>{V.stopPropagation(),V.preventDefault(),u?A():L()},z=V=>Y=>{S.current[V]=Y},H=(V,Y)=>X=>{c(V),x.current=!0,Y&&Y(X)},Q=V=>{if($<=1)return;const Y=(te,U)=>{if(te<0||te>O.length)return te;const ee=(U==="left"?-1:1)*(C?-1:1);return O[te+ee]?.props.disabled?Y(te+ee,U):te+ee};let X=l;V.key==="ArrowRight"?X=Y(l,"right"):V.key==="ArrowLeft"&&(X=Y(l,"left")),!(X<0||X>=$)&&X!==l&&(V.preventDefault(),V.stopPropagation(),c(X))},G=V=>{V.key==="Tab"&&V.preventDefault(),["Tab","Escape"].includes(V.key)&&A()};return R.jsxs("div",B({role:"menu",ref:g,tabIndex:-1,className:re.actionsCell,onKeyDown:Q},s,{children:[D.map((V,Y)=>m.cloneElement(V,{key:Y,touchRippleRef:z(Y),onClick:H(Y,V.props.onClick),tabIndex:l===Y?o:-1})),N.length>0&&I&&R.jsx(M.slots.baseIconButton,B({ref:y,id:I,"aria-label":h.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?E:void 0,role:"menuitem",size:"small",onClick:F,touchRippleRef:z(I),tabIndex:l===D.length?o:-1},M.slotProps?.baseIconButton,{children:R.jsx(M.slots.moreActionsIcon,{fontSize:"small"})})),N.length>0&&R.jsx(g2,{open:u,target:y.current,position:i,onClose:A,children:R.jsx(M.slots.baseMenuList,{id:E,className:re.menuList,onKeyDown:G,"aria-labelledby":I,autoFocusItem:!0,children:N.map((V,Y)=>m.cloneElement(V,{key:Y,closeMenu:A}))})})]}))}const cct=e=>R.jsx(lct,B({},e)),y2="actions",uct=B({},Qu,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:cct,getApplyQuickFilterFn:()=>null}),la="auto-generated-group-node-root",qx=Symbol("mui.id_autogenerated"),dct=()=>({type:"group",id:la,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function fct(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI X: The Data Grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
-`))}const v2=(e,t,n)=>{const r=t?t(e):e.id;return fct(r,e,n),r},pct=(e,t,n)=>{const r=t.field;if(!t||!t.valueGetter)return e[r];const o=e[t.field];return t.valueGetter(o,e,t,n)},bA=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={};for(let a=0;a<e.length;a+=1){const s=e[a],l=v2(s,t);i[l]=s,o.rows.push(l)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToModelLookup:i}},Vce=({tree:e,rowCountProp:t=0})=>{const n=e[la];return Math.max(t,n.children.length+(n.footerId==null?0:1))},Hce=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o,previousGroupsToFetch:i})=>{const a=e.current.caches.rows,{tree:s,treeDepths:l,dataRowIds:c,groupingName:u,groupsToFetch:f=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:a.updates,dataRowIdToModelLookup:a.dataRowIdToModelLookup,previousGroupsToFetch:i}),h=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:s,treeDepths:l,dataRowIds:c,dataRowIdToModelLookup:a.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},B({},h,{totalRowCount:Math.max(t,h.dataRowIds.length),totalTopLevelRowCount:Vce({tree:h.tree,rowCountProp:t}),groupingName:u,loading:n,groupsToFetch:f})},Kx=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,m5=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i<r.children.length;i+=1){const a=r.children[i];(!n||!Kx(e[a]))&&o.push(a);const s=m5(e,a,n);for(let l=0;l<s.length;l+=1)o.push(s[l])}return!n&&r.footerId!=null&&o.push(r.footerId),o},ZK=({previousCache:e,getRowId:t,updates:n,groupKeys:r})=>{if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const o=new Map;n.forEach(c=>{const u=v2(c,t,"A row was provided without id when calling updateRows():");o.has(u)?o.set(u,B({},o.get(u),c)):o.set(u,c)});const i={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:B({},e.updates.idToActionLookup),groupKeys:r},a=B({},e.dataRowIdToModelLookup),s={insert:{},modify:{},remove:{}};o.forEach((c,u)=>{const f=i.idToActionLookup[u];if(c._action==="delete"){if(f==="remove"||!a[u])return;f!=null&&(s[f][u]=!0),i.actions.remove.push(u),delete a[u];return}const h=a[u];if(h){f==="remove"?(s.remove[u]=!0,i.actions.modify.push(u)):f==null&&i.actions.modify.push(u),a[u]=B({},h,c);return}f==="remove"?(s.remove[u]=!0,i.actions.insert.push(u)):f==null&&i.actions.insert.push(u),a[u]=c});const l=Object.keys(s);for(let c=0;c<l.length;c+=1){const u=l[c],f=s[u];Object.keys(f).length>0&&(i.actions[u]=i.actions[u].filter(h=>!f[h]))}return{dataRowIdToModelLookup:a,updates:i,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}},Uce="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function eY(e,t,n){const r=[];return t.forEach(o=>{const i=v2(o,n,"A row was provided without id when calling updateRows():");if(Yd(e,i)?.type==="pinnedRow"){const s=e.current.caches.pinnedRows,l=s.idLookup[i];l&&(s.idLookup[i]=B({},l,o))}else r.push(o)}),r}const Gce=(e,t,n)=>typeof e=="number"&&e>0?e:t,hct="__tree_data_group__",Wce="__row_group_by_columns_group__",b2="__detail_panel_toggle__";let Wn=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({});const mct=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],gct=e=>{const{classes:t}=e;return $e({root:["booleanCell"]},Bn,t)};function yct(e){const{value:t,rowNode:n}=e,r=He(e,mct),o=wn(),i=Ot(),a={classes:i.classes},s=gct(a),c=rt(o,jw)>0&&n.type==="group"&&i.treeData===!1,u=m.useMemo(()=>t?i.slots.booleanCellTrueIcon:i.slots.booleanCellFalseIcon,[i.slots.booleanCellFalseIcon,i.slots.booleanCellTrueIcon,t]);return c&&t===void 0?null:R.jsx(u,B({fontSize:"small",className:s.root,titleAccess:o.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},r))}const vct=m.memo(yct),bct=e=>e.field!==Wce&&Kx(e.rowNode)?"":R.jsx(vct,B({},e)),xct=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],wct=e=>{const{classes:t}=e;return $e({root:["editBooleanCell"]},Bn,t)};function Sct(e){const{id:t,value:n,field:r,className:o,hasFocus:i,onValueChange:a}=e,s=He(e,xct),l=wn(),c=m.useRef(null),u=_n(),[f,h]=m.useState(n),g=Ot(),y={classes:g.classes},x=wct(y),S=m.useCallback(async C=>{const E=C.target.checked;a&&await a(C,E),h(E),await l.current.setEditCellValue({id:t,field:r,value:E},C)},[l,r,t,a]);return m.useEffect(()=>{h(n)},[n]),qn(()=>{i&&c.current.focus()},[i]),R.jsx("label",B({htmlFor:u,className:ge(x.root,o)},s,{children:R.jsx(g.slots.baseCheckbox,B({id:u,inputRef:c,checked:!!f,onChange:S,size:"small"},g.slotProps?.baseCheckbox))}))}const Cct=e=>R.jsx(Sct,B({},e)),Ect=["item","applyValue","apiRef","focusElementRef","isFilterActive","headerFilterMenu","clearButton","tabIndex","slotProps"];function Tct(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,headerFilterMenu:i,clearButton:a,tabIndex:s,slotProps:l}=e,c=He(e,Ect),[u,f]=m.useState(xA(t.value)),h=Ot(),g=_n(),y=_n(),x=h.slotProps?.baseSelect||{},S=x.native??!1,C=h.slotProps?.baseSelectOption||{},E=m.useCallback(O=>{const D=xA(O.target.value);f(D),n(B({},t,{value:D}))},[n,t]);m.useEffect(()=>{f(xA(t.value))},[t.value]);const I=l?.root.label??r.current.getLocaleText("filterPanelInputLabel"),M=l?.root.slotProps;return R.jsxs(m.Fragment,{children:[R.jsxs(h.slots.baseSelect,B({fullWidth:!0,labelId:g,id:y,label:I,value:u===void 0?"":String(u),onChange:E,native:S,slotProps:{htmlInput:B({ref:o,tabIndex:s},M?.htmlInput)}},x,c,l?.root,{children:[R.jsx(h.slots.baseSelectOption,B({},C,{native:S,value:"",children:r.current.getLocaleText("filterValueAny")})),R.jsx(h.slots.baseSelectOption,B({},C,{native:S,value:"true",children:r.current.getLocaleText("filterValueTrue")})),R.jsx(h.slots.baseSelectOption,B({},C,{native:S,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]})),i,a]})}function xA(e){if(String(e).toLowerCase()==="true")return!0;if(String(e).toLowerCase()==="false")return!1}const Pct=()=>[{value:"is",getApplyFilterFn:e=>{const t=xA(e.value);return t===void 0?null:n=>!!n===t},InputComponent:Tct}],Ict=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),Oct=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},qce=B({},Qu,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:bct,renderEditCell:Cct,sortComparator:Ace,valueFormatter:Ict,filterOperators:Pct(),getApplyQuickFilterFn:()=>null,aggregable:!1,pastedValueParser:e=>Oct(e)});function x2(e){for(const t in e)return!1;return!0}const Kce=Wo(e=>e.sorting),Hw=Ft(Kce,e=>e.sortedRows),g5=Cr(Hw,$c,ka,(e,t,n)=>e.reduce((r,o)=>{const i=t[o];if(i)r.push({id:o,model:i});else{const a=n[o];a&&Kx(a)&&r.push({id:o,model:{[qx]:o}})}return r},[])),Mc=Ft(Kce,e=>e.sortModel),Mct=Cr(Mc,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{}));Cr(Hw,e=>e.reduce((t,n,r)=>(t[n]=r,t),Object.create(null)));const w2=Wo(e=>e.filter),ji=Ft(w2,e=>e.filterModel),Yce=Ft(ji,e=>e.quickFilterValues),Act=Wo(e=>e.visibleRowsLookup),Uw=Ft(w2,e=>e.filteredRowsLookup);Ft(w2,e=>e.filteredChildrenCountLookup);Ft(w2,e=>e.filteredDescendantCountLookup);const Qm=Cr(Act,g5,(e,t)=>x2(e)?t:t.filter(n=>e[n.id]!==!1)),vx=Cr(Qm,e=>e.map(t=>t.id)),Qce=Cr(Uw,g5,(e,t)=>x2(e)?t:t.filter(n=>e[n.id]!==!1)),Xce=Cr(Qce,e=>e.map(t=>t.id));Cr(vx,ka,(e,t)=>{const n={};let r=0;return e.reduce((o,i)=>{const a=t[i];return n[a.depth]||(n[a.depth]=0),a.depth>r&&(n[a.depth]=0),r=a.depth,n[a.depth]+=1,o[i]=n[a.depth],o},{})});const Jce=Cr(Qm,ka,jw,(e,t,n)=>n<2?e:e.filter(r=>t[r.id]?.depth===0)),y5=Ft(Qm,e=>e.length),v5=Ft(Jce,e=>e.length),Zce=Ft(Qce,e=>e.length);Ft(Zce,v5,(e,t)=>e-t);const b5=Cr(ji,Jp,(e,t)=>e.items?.filter(n=>{if(!n.field)return!1;const r=t[n.field];if(!r?.filterOperators||r?.filterOperators?.length===0)return!1;const o=r.filterOperators.find(i=>i.value===n.operator);return o?!o.InputComponent||n.value!=null&&n.value?.toString()!=="":!1})),Dct=Cr(b5,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),_u=Wo(e=>e.rowSelection),bP=Cr(_u,lm),S2=Ft(_u,Zce,(e,t)=>e.type==="include"?e.ids.size:t-e.ids.size),eue=Cr(_u,$c,Ly,(e,t,n)=>{const r=new Map;if(e.type==="include")for(const o of e.ids)r.set(o,t[o]);else for(let o=0;o<n.length;o+=1){const i=n[o];e.ids.has(i)||r.set(i,t[i])}return r});function tue(e,t){const n=ka(e),r=Hw(e),o=Uw(e),i=n[t];if(!i||i.type!=="group")return[];const a=[],s=r.findIndex(l=>l===t)+1;for(let l=s;l<r.length&&n[r[l]]?.depth>i.depth;l+=1){const c=r[l];o[c]!==!1&&e.current.isRowSelectable(c)&&a.push(c)}return a}function Rct(e,t){return Ft(ka,Hw,Uw,bP,(n,r,o,i)=>{const a=n[e];if(!a||a.type!=="group")return{isIndeterminate:!1,isChecked:i.has(e)};if(i.has(e))return{isIndeterminate:!1,isChecked:!0};let s=0,l=0;const c=r.findIndex(u=>u===e)+1;for(let u=c;u<r.length&&n[r[u]]?.depth>a.depth;u+=1){const f=r[u];o[f]!==!1&&(s+=1,i.has(f)&&(l+=1))}return{isIndeterminate:l>0&&(l<s||!i.has(e)),isChecked:t?l>0:i.has(e)}})}function x5(e){return e.signature===qu.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const kct=(e,t)=>{const n=[];let r=t;for(;r!=null&&r!==la;){const o=e[r];if(!o)return n;n.push(r),r=o.parent}return n},Nct=(e,t,n)=>{const r=e[n];if(!r)return[];const o=r.parent;return o==null?[]:e[o].children.filter(a=>a!==n&&t[a]!==!1)},p1=(e,t,n,r,o,i,a=bP(e))=>{const s=Uw(e),l=new Set([]);if(!(!r&&!o)&&(r&&t[n]?.type==="group"&&tue(e,n).forEach(f=>{i(f),l.add(f)}),o)){const c=f=>{if(!a.has(f)&&!l.has(f))return!1;const h=t[f];return h?h.type!=="group"?!0:h.children.every(c):!1},u=f=>{const h=Nct(t,s,f);if(h.length===0||h.every(c)){const y=t[f]?.parent;y!=null&&y!==la&&e.current.isRowSelectable(y)&&(i(y),l.add(y),u(y))}};u(n)}},tY=(e,t,n,r,o,i)=>{const a=bP(e);!o&&!r||(o&&kct(t,n).forEach(l=>{a.has(l)&&i(l)}),r&&t[n]?.type==="group"&&tue(e,n).forEach(c=>{i(c)}))},_ct=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],Lct=e=>{const{classes:t}=e;return $e({root:["checkboxInput"]},Bn,t)},$ct=rn(function(t,n){const{field:r,id:o,rowNode:i,tabIndex:a}=t,s=He(t,_ct),l=wn(),c=Ot(),u={classes:c.classes},f=Lct(u),h=I=>{const M={value:I.target.checked,id:o};l.current.publishEvent("rowSelectionCheckboxChange",M,I)};m.useLayoutEffect(()=>{if(a===0){const I=l.current.getCellElement(o,r);I&&(I.tabIndex=-1)}},[l,a,o,r]);const g=m.useCallback(I=>{I.key===" "&&I.stopPropagation()},[]),y=l.current.isRowSelectable(o),x=Rct(o,c.rowSelectionPropagation?.parents??!1),{isIndeterminate:S,isChecked:C}=rt(l,x,void 0,l5);if(i.type==="footer"||i.type==="pinnedRow")return null;const E=l.current.getLocaleText(C&&!S?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return R.jsx(c.slots.baseCheckbox,B({tabIndex:a,checked:C&&!S,onChange:h,className:f.root,slotProps:{htmlInput:{"aria-label":E,name:"select_row"}},onKeyDown:g,indeterminate:S,disabled:!y},c.slotProps?.baseCheckbox,s,{ref:n}))}),Fct=$ct,C2=Wo(e=>e.focus),il=Ft(C2,e=>e.cell),jct=Ft(C2,e=>e.columnHeader);Ft(C2,e=>e.columnHeaderFilter);const KD=Ft(C2,e=>e.columnGroupHeader),E2=Wo(e=>e.tabIndex),w5=Ft(E2,e=>e.cell),nue=Ft(E2,e=>e.columnHeader);Ft(E2,e=>e.columnHeaderFilter);const Bct=Ft(E2,e=>e.columnGroupHeader),zct=100,Vct=e=>e?0:100,rue=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,oue=e=>({page:0,pageSize:e?0:100}),Hct=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),iue=(e,t)=>{if(t===qu.DataGrid&&e>zct)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
-`))},Uct=-1,xP=Wo(e=>e.pagination),aue=Ft(xP,e=>e.enabled&&e.paginationMode==="client"),sa=Ft(xP,e=>e.paginationModel),tx=Ft(xP,e=>e.rowCount),N1=Ft(xP,e=>e.meta),Gct=Ft(sa,e=>e.page),sue=Ft(sa,e=>e.pageSize),lue=Ft(sa,tx,(e,t)=>rue(t,e.pageSize,e.page)),S5=Cr(aue,sa,ka,jw,Qm,Jce,(e,t,n,r,o,i)=>{if(!e)return null;const a=i.length,s=Math.min(t.pageSize*t.page,a-1),l=t.pageSize===Uct?a-1:Math.min(s+t.pageSize-1,a-1);if(s===-1||l===-1)return null;if(r<2)return{firstRowIndex:s,lastRowIndex:l};const c=i[s],u=l-s+1,f=o.findIndex(y=>y.id===c.id);let h=f,g=0;for(;h<o.length&&g<=u;){const y=o[h],x=n[y.id]?.depth;x===void 0?h+=1:((g<u||x>0)&&(h+=1),x===0&&(g+=1))}return{firstRowIndex:f,lastRowIndex:h-1}}),Wct=Cr(Qm,S5,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),cue=Cr(vx,S5,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),wP=Cr(aue,S5,Wct,Qm,(e,t,n,r)=>e?{rows:n,range:t,rowIdToIndexMap:n.reduce((o,i,a)=>(o.set(i.id,a),o),new Map)}:{rows:r,range:r.length===0?null:{firstRowIndex:0,lastRowIndex:r.length-1},rowIdToIndexMap:r.reduce((o,i,a)=>(o.set(i.id,a),o),new Map)}),qct=["field","colDef"],Kct=e=>{const{classes:t}=e;return $e({root:["checkboxInput"]},Bn,t)},Yct=rn(function(t,n){const r=He(t,qct),[,o]=m.useState(!1),i=wn(),a=Ot(),s={classes:a.classes},l=Kct(s),c=rt(i,nue),u=rt(i,_u),f=rt(i,vx),h=rt(i,cue),g=m.useMemo(()=>{const N=a.isRowSelectable;if(typeof N!="function"||u.type==="exclude")return u;const $={type:"include",ids:new Set};for(const L of u.ids)a.keepNonExistentRowsSelected&&$.ids.add(L),i.current.getRow(L)&&N(i.current.getRowParams(L))&&$.ids.add(L);return $},[i,a.isRowSelectable,a.keepNonExistentRowsSelected,u]),y=m.useMemo(()=>{const N=!a.pagination||!a.checkboxSelectionVisibleOnly||a.paginationMode==="server"?f:h,$=new Set;for(let L=0;L<N.length;L+=1){const A=N[L];i.current.isRowSelectable(A)&&$.add(A)}return $},[i,a.pagination,a.paginationMode,a.checkboxSelectionVisibleOnly,h,f]),x=m.useMemo(()=>{const N=lm(g);let $=0;for(const L of y)N.has(L)&&($+=1);return $},[g,y]),S=m.useMemo(()=>{if(g.ids.size===0)return!1;const N=lm(g);for(const $ of y)if(!N.has($))return!0;return!1},[g,y]),C=x>0,E=N=>{const $={value:N.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",$)},I=c!==null&&c.field===t.field?0:-1;m.useLayoutEffect(()=>{const N=i.current.getColumnHeaderElement(t.field);I===0&&N&&(N.tabIndex=-1)},[I,i,t.field]);const M=m.useCallback(N=>{N.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!C})},[i,C]),O=m.useCallback(()=>{o(N=>!N)},[]);m.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",O),[i,O]);const D=i.current.getLocaleText(C&&!S?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return R.jsx(a.slots.baseCheckbox,B({indeterminate:S,checked:C&&!S,onChange:E,className:l.root,slotProps:{htmlInput:{"aria-label":D,name:"select_all_rows"}},tabIndex:I,onKeyDown:M,disabled:!x5(a)},a.slotProps?.baseCheckbox,r,{ref:n}))}),SP=Wo((e,t)=>qx in t?t[qx]:e.props.getRowId?e.props.getRowId(t):t.id),op="__check__",Gw=B({},qce,{type:"custom",field:op,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:()=>null,display:"flex",valueGetter:(e,t,n,r)=>{const o=SP(r,t);return r.current.isRowSelected(o)},renderHeader:e=>R.jsx(Yct,B({},e)),renderCell:e=>R.jsx(Fct,B({},e))}),Qct=["item","applyValue","type","apiRef","focusElementRef","slotProps","isFilterActive","headerFilterMenu","clearButton","tabIndex","disabled"];function nY(e,t){if(e==null)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":t==="date"?n.toISOString().substring(0,10):t==="datetime-local"?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function L0(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,slotProps:a,headerFilterMenu:s,clearButton:l,tabIndex:c,disabled:u}=e,f=He(e,Qct),h=a?.root.slotProps,g=Ni(),[y,x]=m.useState(()=>nY(t.value,r)),[S,C]=m.useState(!1),E=_n(),I=Ot(),M=m.useCallback(O=>{g.clear();const D=O.target.value;x(D),C(!0),g.start(I.filterDebounceMs,()=>{const N=new Date(D);n(B({},t,{value:Number.isNaN(N.getTime())?void 0:N})),C(!1)})},[n,t,I.filterDebounceMs,g]);return m.useEffect(()=>{const O=nY(t.value,r);x(O)},[t.value,r]),R.jsxs(m.Fragment,{children:[R.jsx(I.slots.baseTextField,B({fullWidth:!0,id:E,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:y,onChange:M,type:r||"text",disabled:u,inputRef:i,slotProps:B({},h,{input:B({endAdornment:S?R.jsx(I.slots.loadIcon,{fontSize:"small",color:"action"}):null},h?.input),htmlInput:B({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:c},h?.htmlInput)})},I.slotProps?.baseTextField,f,a?.root)),s,l]})}function $0(e,t,n,r){if(!e.value)return null;const o=new Date(e.value);n?o.setSeconds(0,0):(o.setMinutes(o.getMinutes()+o.getTimezoneOffset()),o.setHours(0,0,0,0));const i=o.getTime();return a=>{if(!a)return!1;if(r)return t(a.getTime(),i);const s=new Date(a);return n?s.setSeconds(0,0):s.setHours(0,0,0,0),t(s.getTime(),i)}}const uue=e=>[{value:"is",getApplyFilterFn:t=>$0(t,(n,r)=>n===r,e),InputComponent:L0,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>$0(t,(n,r)=>n!==r,e),InputComponent:L0,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>$0(t,(n,r)=>n>r,e),InputComponent:L0,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>$0(t,(n,r)=>n>=r,e),InputComponent:L0,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>$0(t,(n,r)=>n<r,e,!e),InputComponent:L0,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>$0(t,(n,r)=>n<=r,e),InputComponent:L0,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],Xct=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange","slotProps"],Jct=ue(Xp)({fontSize:"inherit"}),Zct=e=>{const{classes:t}=e;return $e({root:["editInputCell"]},Bn,t)};function eut(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,onValueChange:a,slotProps:s}=e,l=He(e,Xct),c=o.type==="dateTime",u=wn(),f=m.useRef(null),h=m.useMemo(()=>{let M;n==null?M=null:n instanceof Date?M=n:M=new Date((n??"").toString());let O;return M==null||Number.isNaN(M.getTime())?O="":O=new Date(M.getTime()-M.getTimezoneOffset()*60*1e3).toISOString().substr(0,c?16:10),{parsed:M,formatted:O}},[n,c]),[g,y]=m.useState(h),x=Ot(),S={classes:x.classes},C=Zct(S),E=m.useCallback(M=>{if(M==="")return null;const[O,D]=M.split("T"),[N,$,L]=O.split("-"),A=new Date;if(A.setFullYear(Number(N),Number($)-1,Number(L)),A.setHours(0,0,0,0),D){const[F,z]=D.split(":");A.setHours(Number(F),Number(z),0,0)}return A},[]),I=m.useCallback(async M=>{const O=M.target.value,D=E(O);a&&await a(M,D),y({parsed:D,formatted:O}),u.current.setEditCellValue({id:t,field:r,value:D},M)},[u,r,t,a,E]);return m.useEffect(()=>{y(M=>h.parsed!==M.parsed&&h.parsed?.getTime()!==M.parsed?.getTime()?h:M)},[h]),qn(()=>{i&&f.current.focus()},[i]),R.jsx(Jct,B({as:x.slots.baseInput,inputRef:f,fullWidth:!0,className:C.root,type:c?"datetime-local":"date",value:g.formatted,onChange:I},l,s?.root,{slotProps:{htmlInput:B({max:c?"9999-12-31T23:59":"9999-12-31"},s?.root?.slotProps?.htmlInput)}}))}const due=e=>R.jsx(eut,B({},e));function fue({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI X: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
-`))}const tut=(e,t,n,r)=>{if(!e)return"";const o=SP(r,t);return fue({value:e,columnType:"date",rowId:o,field:n.field}),e.toLocaleDateString()},nut=(e,t,n,r)=>{if(!e)return"";const o=SP(r,t);return fue({value:e,columnType:"dateTime",rowId:o,field:n.field}),e.toLocaleString()},rut=B({},Qu,{type:"date",sortComparator:Dce,valueFormatter:tut,filterOperators:uue(),renderEditCell:due,pastedValueParser:e=>new Date(e)}),out=B({},Qu,{type:"dateTime",sortComparator:Dce,valueFormatter:nut,filterOperators:uue(!0),renderEditCell:due,pastedValueParser:e=>new Date(e)}),rm=e=>e==null?null:Number(e),iut=e=>e==null||Number.isNaN(e)||e===""?null:t=>rm(t)===rm(e),aut=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>rm(t)===e.value,InputComponent:kc,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>rm(t)!==e.value,InputComponent:kc,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:rm(t)>e.value,InputComponent:kc,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:rm(t)>=e.value,InputComponent:kc,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:rm(t)<e.value,InputComponent:kc,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:rm(t)<=e.value,InputComponent:kc,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:kce,InputComponentProps:{type:"number"}}],sut=B({},Qu,{type:"number",align:"right",headerAlign:"right",sortComparator:Ace,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>Rlt(e)?e.toLocaleString():e||"",filterOperators:aut(),getApplyQuickFilterFn:iut});function Yx(e){return e?.type==="singleSelect"}function yv(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(B({field:e.field},t)):e.valueOptions}function YD(e,t,n){if(t===void 0)return;const r=t.find(o=>{const i=n(o);return String(i)===String(e)});return n(r)}const lut=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","slotProps"];function cut(e){return!!e.key}function uut(e){const t=Ot(),{id:n,value:r,field:o,row:i,colDef:a,hasFocus:s,error:l,onValueChange:c,initialOpen:u=t.editMode===df.Cell,slotProps:f}=e,h=He(e,lut),g=wn(),y=m.useRef(null),x=m.useRef(null),[S,C]=m.useState(u),I=(t.slotProps?.baseSelect||{}).native??!1;if(qn(()=>{s&&x.current?.focus()},[s]),!Yx(a))return null;const M=yv(a,{id:n,row:i});if(!M)return null;const O=a.getOptionValue,D=a.getOptionLabel,N=async A=>{if(!Yx(a)||!M)return;C(!1);const F=A.target,z=YD(F.value,M,O);c&&await c(A,z),await g.current.setEditCellValue({id:n,field:o,value:z},A)},$=(A,F)=>{if(t.editMode===df.Row){C(!1);return}if(F==="backdropClick"||A.key==="Escape"){const z=g.current.getCellParams(n,o);g.current.publishEvent("cellEditStop",B({},z,{reason:A.key==="Escape"?ku.escapeKeyDown:ku.cellFocusOut}))}},L=A=>{cut(A)&&A.key==="Enter"||C(!0)};return!M||!a?null:R.jsx(t.slots.baseSelect,B({ref:y,value:r,onChange:N,open:S,onOpen:L,onClose:$,error:l,native:I,fullWidth:!0,slotProps:{htmlInput:{ref:x}}},h,f?.root,t.slotProps?.baseSelect,{children:M.map(A=>{const F=O(A);return m.createElement(t.slots.baseSelectOption,B({},t.slotProps?.baseSelectOption||{},{native:I,key:F,value:F}),D(A))})}))}const dut=e=>R.jsx(uut,B({},e)),fut=["item","applyValue","type","apiRef","focusElementRef","tabIndex","isFilterActive","clearButton","headerFilterMenu","slotProps"],put=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:o,baseSelectOptionProps:i})=>["",...yv(e)||[]].map(s=>{const l=r(s);let c=n(s);return c===""&&(c=" "),m.createElement(t,B({},i,{native:o,key:l,value:l}),c)});function rY(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,tabIndex:a,clearButton:s,headerFilterMenu:l,slotProps:c}=e,u=He(e,fut),f=t.value??"",h=_n(),g=_n(),y=Ot(),x=y.slotProps?.baseSelect?.native??!1;let S=null;if(t.field){const D=o.current.getColumn(t.field);Yx(D)&&(S=D)}const C=S?.getOptionValue,E=S?.getOptionLabel,I=m.useMemo(()=>yv(S),[S]),M=m.useCallback(D=>{let N=D.target.value;N=YD(N,I,C),n(B({},t,{value:N}))},[I,C,n,t]);if(!Yx(S))return null;const O=c?.root.label??o.current.getLocaleText("filterPanelInputLabel");return R.jsxs(m.Fragment,{children:[R.jsx(y.slots.baseSelect,B({fullWidth:!0,id:h,label:O,labelId:g,value:f,onChange:M,slotProps:{htmlInput:B({tabIndex:a,ref:i,type:r||"text",placeholder:c?.root.placeholder??o.current.getLocaleText("filterPanelInputPlaceholder")},c?.root.slotProps?.htmlInput)},native:x},y.slotProps?.baseSelect,u,c?.root,{children:put({column:S,OptionComponent:y.slots.baseSelectOption,getOptionLabel:E,getOptionValue:C,isSelectNative:x,baseSelectOptionProps:y.slotProps?.baseSelectOption})})),l,s]})}const hut=["item","applyValue","type","apiRef","focusElementRef","slotProps"];function mut(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,slotProps:a}=e,s=He(e,hut),l=_n(),c=Ot();let u=null;if(t.field){const E=o.current.getColumn(t.field);Yx(E)&&(u=E)}const f=u?.getOptionValue,h=u?.getOptionLabel,g=m.useCallback((E,I)=>f(E)===f(I),[f]),y=m.useMemo(()=>yv(u)||[],[u]),x=m.useMemo(()=>Array.isArray(t.value)?t.value.reduce((E,I)=>{const M=y.find(O=>f(O)===I);return M!=null&&E.push(M),E},[]):[],[f,t.value,y]),S=m.useCallback((E,I)=>{n(B({},t,{value:I.map(f)}))},[n,t,f]),C=c.slots.baseAutocomplete;return R.jsx(C,B({multiple:!0,options:y,isOptionEqualToValue:g,id:l,value:x,onChange:S,getOptionLabel:h,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:r||"text",inputRef:i}}},s,a?.root))}const F0=e=>e==null||!f5(e)?e:e.value,gut=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>F0(t)===F0(e.value),InputComponent:rY},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>F0(t)!==F0(e.value),InputComponent:rY},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(F0);return n=>t.includes(F0(n))},InputComponent:mut}],yut=e=>typeof e[0]=="object",vut=e=>f5(e)?e.value:e,but=e=>f5(e)?e.label:String(e),xut=B({},Qu,{type:"singleSelect",getOptionLabel:but,getOptionValue:vut,valueFormatter(e,t,n,r){const o=SP(r,t);if(!Yx(n))return"";const i=yv(n,{id:o,row:t});if(e==null)return"";if(!i)return e;if(!yut(i))return n.getOptionLabel(e);const a=i.find(s=>n.getOptionValue(s)===e);return a?n.getOptionLabel(a):""},renderEditCell:dut,filterOperators:gut(),pastedValueParser:(e,t,n)=>{const r=n,o=yv(r)||[],i=r.getOptionValue;if(o.find(s=>i(s)===e))return e}}),wut="string",Sut=()=>({string:Qu,number:sut,date:rut,dateTime:out,boolean:qce,singleSelect:xut,[y2]:uct,custom:Qu}),C5=Wo(e=>e.headerFiltering),Cut=Ft(C5,e=>e?.enabled??!1),Eut=Ft(C5,e=>e.editing),Tut=Ft(C5,e=>e.menuOpen),T2=Wo(e=>e.columnGrouping),pue=Cr(T2,e=>e?.unwrappedGroupingModel??{}),hue=Cr(T2,e=>e?.lookup??{}),Put=Cr(T2,e=>e?.headerStructure??[]),CP=Ft(T2,e=>e?.maxDepth??0),mue=["maxWidth","minWidth","width","flex"],B$=Sut();function Iut({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(a=>a.field)),o={all:{},frozenFields:[],freeze:a=>{const s=o.all[a];s&&s.frozen!==!0&&(o.all[a].frozen=!0,o.frozenFields.push(a))}};function i(){if(o.frozenFields.length===r.size)return;const a={min:{},max:{}};let s=e,l=t,c=0;o.frozenFields.forEach(u=>{s-=o.all[u].computedWidth,l-=o.all[u].flex});for(let u=0;u<n.length;u+=1){const f=n[u];if(o.all[f.field]&&o.all[f.field].frozen===!0)continue;let g=s/l*f.flex;g<f.minWidth?(c+=f.minWidth-g,g=f.minWidth,a.min[f.field]=!0):g>f.maxWidth&&(c+=f.maxWidth-g,g=f.maxWidth,a.max[f.field]=!0),o.all[f.field]={frozen:!1,computedWidth:g,flex:f.flex}}c<0?Object.keys(a.max).forEach(u=>{o.freeze(u)}):c>0?Object.keys(a.min).forEach(u=>{o.freeze(u)}):n.forEach(({field:u})=>{o.freeze(u)}),i()}return i(),o.all}const FB=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(l=>{let c=e.lookup[l],u=0,f=!1;e.columnVisibilityModel[l]!==!1&&(c.flex&&c.flex>0?(r+=c.flex,f=!0):u=Ul(c.width||Qu.width,c.minWidth||Qu.minWidth,c.maxWidth||Qu.maxWidth),o+=u),c.computedWidth!==u&&(c=B({},c,{computedWidth:u})),f&&i.push(c),n[l]=c});const a=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),s=Math.max(a-o,0);if(r>0&&a>0){const l=Iut({initialFreeSpace:s,totalFlexUnits:r,flexColumns:i});Object.keys(l).forEach(c=>{n[c].computedWidth=l[c].computedWidth})}return B({},e,{lookup:n})},Out=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},a=[];for(let u=0;u<n.length;u+=1){const f=n[u];e.lookup[f]&&(i[f]=!0,a.push(f))}const s=a.length===0?e.orderedFields:[...a,...e.orderedFields.filter(u=>!i[u])],l=B({},e.lookup);for(let u=0;u<o.length;u+=1){const f=o[u],h=B({},l[f],{hasBeenResized:!0});Object.entries(r[f]).forEach(([g,y])=>{h[g]=y===-1?1/0:y}),l[f]=h}return B({},e,{orderedFields:s,lookup:l})};function z$(e){let t=B$[wut];return e&&B$[e]&&(t=B$[e]),t}const G0=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=Hu(e),keepOnlyColumnsToUpsert:o=!1,updateInitialVisibilityModel:i=!1})=>{const a=!e.current.state.columns;let s;if(a)s={orderedFields:[],lookup:{},columnVisibilityModel:r,initialColumnVisibilityModel:r};else{const f=Ku(e);s={orderedFields:o?[]:[...f.orderedFields],lookup:B({},f.lookup),columnVisibilityModel:r,initialColumnVisibilityModel:i?r:f.initialColumnVisibilityModel}}let l={};o&&!a&&(l=Object.keys(s.lookup).reduce((f,h)=>B({},f,{[h]:!1}),{})),t.forEach(f=>{const{field:h}=f;l[h]=!0;let g=s.lookup[h];g==null?(g=B({},z$(f.type),{field:h,hasBeenResized:!1}),s.orderedFields.push(h)):o&&s.orderedFields.push(h),g&&g.type!==f.type&&(g=B({},z$(f.type),{field:h}));let y=g.hasBeenResized;mue.forEach(x=>{f[x]!==void 0&&(y=!0,f[x]===-1&&(f[x]=1/0))}),s.lookup[h]=Yy(g,B({},z$(f.type),f,{hasBeenResized:y}))}),o&&!a&&Object.keys(s.lookup).forEach(f=>{l[f]||delete s.lookup[f]});const c=e.current.unstable_applyPipeProcessors("hydrateColumns",s),u=Out(c,n);return FB(u,e.current.getRootDimensions?.()??void 0)};function Mut({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let a=n;a<r;a+=1)if(o[a]){const l=o[a].id,c=t.current.unstable_getCellColSpanInfo(l,e);c&&c.spannedByColSpan&&(i=c.leftVisibleCellIndex)}return i}function E5(e,t){if(t.listView)return 0;const n=Fw(e),r=CP(e),o=Cut(e),i=Math.floor(t.columnHeaderHeight*n),a=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*n),s=o?Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*n):0;return i+a*r+s}const oY=1,Aut=1.5,Dut=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return $e(r,Bn,n)},Rut=sr("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${re["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${re["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${re["scrollArea--left"]}`]:{left:0},[`&.${re["scrollArea--right"]}`]:{right:0}})),kut=Ft(Wr,(e,t)=>t==="left"?e.leftPinnedWidth:t==="right"?e.rightPinnedWidth+(e.hasScrollX?e.scrollbarSize:0):0);function Nut(e){const t=wn(),[n,r]=m.useState(!1);return jt(t,"columnHeaderDragStart",()=>r(!0)),jt(t,"columnHeaderDragEnd",()=>r(!1)),n?R.jsx(_ut,B({},e)):null}function _ut(e){const{scrollDirection:t,scrollPosition:n}=e,r=m.useRef(null),o=wn(),i=Ni(),a=rt(o,Fw),s=rt(o,h2),l=rt(o,kut,t),c=()=>{const M=Wr(o);if(t==="left")return n.current.left>0;if(t==="right"){const O=s-M.viewportInnerSize.width;return n.current.left<O}return!1},[u,f]=m.useState(c),h=Ot(),g=B({},h,{scrollDirection:t}),y=Dut(g),x=E5(o,h),S=Math.floor(h.columnHeaderHeight*a),C={height:S,top:x-S};t==="left"?C.left=l:t==="right"&&(C.right=l);const E=()=>{f(c)},I=ft(M=>{let O;if(M.preventDefault(),t==="left")O=M.clientX-r.current.getBoundingClientRect().right;else if(t==="right")O=Math.max(1,M.clientX-r.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");O=(O-oY)*Aut+oY,i.start(0,()=>{o.current.scroll({left:n.current.left+O,top:n.current.top})})});return jt(o,"scrollPositionChange",E),u?R.jsx(Rut,{ref:r,className:ge(y.root),ownerState:g,onDragOver:I,style:C}):null}const iY=Qp(Nut),gue=m.createContext(void 0);function oc(){const e=m.useContext(gue);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
-`));return e}const Lut=()=>{},$ut=(e,t)=>{const n=m.useRef(!1);qn(()=>n.current||!e?Lut:(n.current=!0,t()),[n.current||e])};function Nn(e,t,n){const r=m.useRef(!0);qn(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function Ji(e,t){const n=m.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const yue=(e,t,n,r,o)=>{const i=Ji(e,"useNativeEventListener");jr(e,"rootMount",()=>{const a=t();if(!(!a||!n))return i.debug(`Binding native ${n} event`),a.addEventListener(n,r,o),()=>{i.debug(`Clearing native ${n} event`),a.removeEventListener(n,r,o)}})},EP=e=>{const t=m.useRef(!0);t.current&&(t.current=!1,e())},ym=(e,t)=>wP(e),T5=(e,t)=>rt(e,wP),Fut=typeof navigator<"u"?navigator.userAgent.toLowerCase():"empty",jut=Fut.includes("firefox"),TP=Wo(e=>e.rowsMeta),P2=Wo(e=>e.virtualization);Ft(P2,e=>e.enabled);const vue=Ft(P2,e=>e.enabledForColumns),But=Ft(P2,e=>e.enabledForRows),PP=Ft(P2,e=>e.renderContext),zut=Cr(e=>e.current.state.virtualization.renderContext.firstColumnIndex,e=>e.current.state.virtualization.renderContext.lastColumnIndex,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t})),jB={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},Vut=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return B({},e,{virtualization:{enabled:!n,enabledForColumns:!n,enabledForRows:!n&&!r,renderContext:jB}})};function Hut(e,t){const n=i=>{e.current.setState(a=>B({},a,{virtualization:B({},a.virtualization,{enabled:i,enabledForColumns:i,enabledForRows:i&&!t.autoHeight})}))};Nn(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(a=>B({},a,{virtualization:B({},a.virtualization,{enabledForColumns:i})}))}},"public"),m.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization,t.autoHeight])}const P5=Wo(e=>e.rowSpanning),bue=Ft(P5,e=>e.hiddenCells),Uut=Ft(P5,e=>e.spannedCells),Gut=Ft(P5,e=>e.hiddenCellOriginMap),Qx=Wo(e=>e.listViewColumn),Wut=Ft(il,PP,wP,Uo,(e,t,n,r)=>{if(!e)return!1;const o=n.rowIdToIndexMap.get(e.id),i=r.slice(t.firstColumnIndex,t.lastColumnIndex).findIndex(s=>s.field===e.field);return!(o!==void 0&&i!==-1&&o>=t.firstRowIndex&&o<=t.lastRowIndex)}),xue=Cr(Wut,Uo,wP,il,(e,t,n,r)=>{if(!e)return null;const o=n.rowIdToIndexMap.get(r.id);if(o===void 0)return null;const i=t.findIndex(a=>a.field===r.field);return i===-1?null:B({},r,{rowIndex:o,columnIndex:i})});function nx(e,t){return Math.round(e*10**t)/10**t}const QD=typeof window<"u"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),V$=50;var yi=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e}(yi||{});const aY={top:0,left:0},qut=Object.freeze(new Map),Kut=(e,t,n,r,o)=>({direction:yi.NONE,buffer:Sue(e,yi.NONE,t,n,r,o)}),Yut=()=>{const e=oc(),t=Ot(),{listView:n}=t,r=rt(e,()=>n?[Qx(e)]:Uo(e)),o=rt(e,But)&&!QD,i=rt(e,vue)&&!QD,a=rt(e,Bw),s=Vw(e),l=n?qD:s,c=a.bottom.length>0,[u,f]=m.useState(qut),h=eo(),g=rt(e,bP),y=T5(e),x=e.current.mainElementRef,S=e.current.virtualScrollerRef,C=e.current.virtualScrollbarVerticalRef,E=e.current.virtualScrollbarHorizontalRef,I=rt(e,Ult),M=m.useRef(!1),O=rt(e,c5),D=rt(e,Qst),N=rt(e,h2),$=rt(e,Qut),L=rt(e,Ece),A=rt(e,Cce),F=m.useRef(null),z=m.useCallback(ae=>{if(x.current=ae,!ae)return;const Se=ae.getBoundingClientRect();let Ie={width:nx(Se.width,1),height:nx(Se.height,1)};if((!F.current||Ie.width!==F.current.width&&Ie.height!==F.current.height)&&(F.current=Ie,e.current.publishEvent("resize",Ie)),typeof ResizeObserver>"u")return;const Re=new ResizeObserver(ke=>{const Te=ke[0];if(!Te)return;const Ce={width:nx(Te.contentRect.width,1),height:nx(Te.contentRect.height,1)};Ce.width===Ie.width&&Ce.height===Ie.height||(e.current.publishEvent("resize",Ce),Ie=Ce)});if(Re.observe(ae),vce>=19)return()=>{x.current=null,Re.disconnect()}},[e,x]),H=m.useRef(t.initialState?.scroll??aY),Q=m.useRef(!1),G=m.useRef(aY),V=m.useRef(jB),Y=rt(e,PP),X=rt(e,xue),te=Ni(),U=m.useRef(void 0),K=nd(()=>Kut(h,t.rowBufferPx,t.columnBufferPx,O*15,V$*6)).current,ee=m.useCallback(ae=>{if(Zut(ae,e.current.state.virtualization.renderContext))return;const Se=ae.firstRowIndex!==V.current.firstRowIndex||ae.lastRowIndex!==V.current.lastRowIndex;e.current.setState(Re=>B({},Re,{virtualization:B({},Re.virtualization,{renderContext:ae})})),Wr(e).isReady&&Se&&(V.current=ae,e.current.publishEvent("renderedRowsIntervalChange",ae)),G.current=H.current},[e]),le=ft(()=>{const ae=S.current;if(!ae)return;const Se=Wr(e),Ie=Math.ceil(Se.minimumSize.height-Se.viewportOuterSize.height),Re=Math.ceil(Se.minimumSize.width-Se.viewportInnerSize.width),ke={top:Ul(ae.scrollTop,0,Ie),left:h?Ul(ae.scrollLeft,-Re,0):Ul(ae.scrollLeft,0,Re)},Te=ke.left-H.current.left,Ce=ke.top-H.current.top,Ze=Te!==0||Ce!==0;H.current=ke;const Me=Ze?edt(Te,Ce):yi.NONE,_e=Math.abs(H.current.top-G.current.top),pe=Math.abs(H.current.left-G.current.left),je=_e>=O||pe>=V$,Ke=K.direction!==Me;if(!(je||Ke))return Y;if(Ke)switch(Me){case yi.NONE:case yi.LEFT:case yi.RIGHT:U.current=void 0;break;default:U.current=Y;break}K.direction=Me,K.buffer=Sue(h,Me,t.rowBufferPx,t.columnBufferPx,O*15,V$*6);const nt=sY(e,t,o,i),ot=lY(nt,H.current,K);return Ev.flushSync(()=>{ee(ot)}),te.start(1e3,le),ot}),ce=()=>{if(!Wr(e).isReady&&(o||i))return;const ae=sY(e,t,o,i),Se=lY(ae,H.current,K);U.current=void 0,ee(Se)},se=ft(()=>{if(Q.current){Q.current=!1;return}const ae=le();e.current.publishEvent("scrollPositionChange",{top:H.current.top,left:H.current.left,renderContext:ae})}),fe=ft(ae=>{e.current.publishEvent("virtualScrollerWheel",{},ae)}),we=ft(ae=>{e.current.publishEvent("virtualScrollerTouchMove",{},ae)}),Oe=(ae={})=>{if(!ae.rows&&!y.range)return[];const Se=ka(e);let Ie=Y;ae.renderContext&&(Ie=ae.renderContext,Ie.firstColumnIndex=Y.firstColumnIndex,Ie.lastColumnIndex=Y.lastColumnIndex);const Re=!c&&ae.position===void 0||c&&ae.position==="bottom",ke=ae.position!==void 0;let Te;switch(ae.position){case"top":Te=0;break;case"bottom":Te=a.top.length+y.rows.length;break;case void 0:Te=a.top.length;break}const Ce=ae.rows??y.rows,Ze=Ie.firstRowIndex,Me=Math.min(Ie.lastRowIndex,Ce.length),_e=ae.rows?WK(0,ae.rows.length):WK(Ze,Me);let pe=-1;!ke&&X&&(X.rowIndex<Ze&&(_e.unshift(X.rowIndex),pe=X.rowIndex),X.rowIndex>Me&&(_e.push(X.rowIndex),pe=X.rowIndex));const je=[],Ke=t.slotProps?.row,et=Ym(e);return _e.forEach(nt=>{const{id:ot,model:it}=Ce[nt];if(!Se[ot])return;const tt=(y?.range?.firstRowIndex||0)+Te+nt;if(I){const Io=l.left.length,Ci=r.length-l.right.length;e.current.calculateColSpan({rowId:ot,minFirstColumn:Io,maxLastColumn:Ci,columns:r}),l.left.length>0&&e.current.calculateColSpan({rowId:ot,minFirstColumn:0,maxLastColumn:l.left.length,columns:r}),l.right.length>0&&e.current.calculateColSpan({rowId:ot,minFirstColumn:r.length-l.right.length,maxLastColumn:r.length,columns:r})}const vt=e.current.rowHasAutoHeight(ot)?"auto":e.current.unstable_getRowHeight(ot),Je=g.has(ot)&&e.current.isRowSelectable(ot);let Mt=!1;ae.position===void 0&&(Mt=nt===0);let Gt=!1;const ht=nt===Ce.length-1;if(Re)if(ke)Gt=ht;else{const Io=y.rows.length-1;nt===Io&&(Gt=!0)}let Qt=Ie;U.current&&nt>=U.current.firstRowIndex&&nt<U.current.lastRowIndex&&(Qt=U.current);const en=nt===pe,qt=X?.rowIndex===tt,zn=wue(et,Qt,l.left.length),lr=ht&&ae.position==="top",to=Qt.firstColumnIndex,xr=Qt.lastColumnIndex;if(je.push(R.jsx(t.slots.row,B({row:it,rowId:ot,index:tt,selected:Je,offsetLeft:zn,columnsTotalWidth:N,rowHeight:vt,pinnedColumns:l,visibleColumns:r,firstColumnIndex:to,lastColumnIndex:xr,focusedColumnIndex:qt?X.columnIndex:void 0,isFirstVisible:Mt,isLastVisible:Gt,isNotVisible:en,showBottomBorder:lr,scrollbarWidth:L,gridHasFiller:A},Ke),ot)),en)return;const Yn=u.get(ot);Yn&&je.push(Yn),ae.position===void 0&&ht&&je.push(e.current.getInfiniteLoadingTriggerElement?.({lastRowId:ot}))}),je},he=m.useMemo(()=>({overflowX:!$||n?"hidden":void 0,overflowY:t.autoHeight?"hidden":void 0}),[$,t.autoHeight,n]),me=m.useMemo(()=>{const ae={width:$?N:"auto",flexBasis:D,flexShrink:0};return ae.flexBasis===0&&(ae.flexBasis=Uce),ae},[N,D,$]),ye=m.useCallback(ae=>{ae&&e.current.publishEvent("virtualScrollerContentSizeChange",{columnsTotalWidth:N,contentHeight:D})},[e,N,D]);return qn(()=>{M.current&&e.current.updateRenderContext?.()},[e,i,o]),qn(()=>{n&&(S.current.scrollLeft=0)},[n,S]),$ut(Y!==jB,()=>{if(e.current.publishEvent("scrollPositionChange",{top:H.current.top,left:H.current.left,renderContext:Y}),M.current=!0,t.initialState?.scroll&&S.current){const ae=S.current,{top:Se,left:Ie}=t.initialState.scroll,Re={top:!(Se>0),left:!(Ie>0)};if(!Re.left&&N&&(ae.scrollLeft=Ie,Q.current=!0,Re.left=!0),!Re.top&&D&&(ae.scrollTop=Se,Q.current=!0,Re.top=!0),!Re.top||!Re.left){const ke=e.current.subscribeEvent("virtualScrollerContentSizeChange",Te=>{!Re.left&&Te.columnsTotalWidth&&(ae.scrollLeft=Ie,Q.current=!0,Re.left=!0),!Re.top&&Te.contentHeight&&(ae.scrollTop=Se,Q.current=!0,Re.top=!0),Re.left&&Re.top&&ke()});return ke}}}),e.current.register("private",{updateRenderContext:ce}),jr(e,"sortedRowsSet",ce),jr(e,"paginationModelChange",ce),jr(e,"columnsChange",ce),{renderContext:Y,setPanels:f,getRows:Oe,getContainerProps:()=>({ref:z}),getScrollerProps:()=>({ref:S,onScroll:se,onWheel:fe,onTouchMove:we,style:he,role:"presentation",tabIndex:jut?-1:void 0}),getContentProps:()=>({style:me,role:"presentation",ref:ye}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:C,scrollPosition:H}),getScrollbarHorizontalProps:()=>({ref:E,scrollPosition:H}),getScrollAreaProps:()=>({scrollPosition:H})}};function Qut(e){return e.current.state.dimensions.viewportOuterSize.width>0&&e.current.state.dimensions.columnsTotalWidth>e.current.state.dimensions.viewportOuterSize.width}function sY(e,t,n,r){const o=Wr(e),i=ym(e),a=t.listView?[Qx(e)]:Uo(e),s=Gut(e),l=e.current.state.rows.dataRowIds.at(-1),c=a.at(-1);return{enabledForRows:n,enabledForColumns:r,apiRef:e,autoHeight:t.autoHeight,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx,leftPinnedWidth:o.leftPinnedWidth,columnsTotalWidth:o.columnsTotalWidth,viewportInnerWidth:o.viewportInnerSize.width,viewportInnerHeight:o.viewportInnerSize.height,lastRowHeight:l!==void 0?e.current.unstable_getRowHeight(l):0,lastColumnWidth:c?.computedWidth??0,rowsMeta:TP(e),columnPositions:Ym(e),rows:i.rows,range:i.range,pinnedColumns:Vw(e),visibleColumns:a,hiddenCellsOriginMap:s,listView:t.listView??!1,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function lY(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length},{top:o,left:i}=t,a=Math.abs(i)+e.leftPinnedWidth;if(e.enabledForRows){let l=Math.min(cY(e,o,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const c=e.hiddenCellsOriginMap[l];if(c){const f=Math.min(...Object.values(c));l=Math.min(l,f)}const u=e.autoHeight?l+e.rows.length:cY(e,o+e.viewportInnerHeight);r.firstRowIndex=l,r.lastRowIndex=u}if(e.listView)return B({},r,{lastColumnIndex:1});if(e.enabledForColumns){let l=0,c=e.columnPositions.length,u=!1;const[f,h]=BB({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});if(!e.virtualizeColumnsWithAutoRowHeight)for(let g=f;g<h&&!u;g+=1){const y=e.rows[g];u=e.apiRef.current.rowHasAutoHeight(y.id)}(!u||e.virtualizeColumnsWithAutoRowHeight)&&(l=Rm(a,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),c=Rm(a+e.viewportInnerWidth,e.columnPositions)),r.firstColumnIndex=l,r.lastColumnIndex=c}return Xut(e,r,n)}function cY(e,t,n){const r=e.apiRef.current.getLastMeasuredRowIndex();let o=r===1/0;e.range?.lastRowIndex&&!o&&(o=r>=e.range.lastRowIndex);const i=Ul(r-(e.range?.firstRowIndex||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[i]>=t?Rm(t,e.rowsMeta.positions,n):Jut(t,e.rowsMeta.positions,i,n)}function Xut(e,t,n){const[r,o]=BB({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[i,a]=BB({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.visibleColumns.length-e.pinnedColumns.right.length,bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),s=Mut({firstColumnToRender:i,apiRef:e.apiRef,firstRowToRender:r,lastRowToRender:o,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:o,firstColumnIndex:s,lastColumnIndex:a}}function Rm(e,t,n=void 0,r=0,o=t.length){if(t.length<=0)return-1;if(r>=o)return r;const i=r+Math.floor((o-r)/2),a=t[i];let s;if(n?.atStart){const l=(i===t.length-1?n.lastPosition:t[i+1])-a;s=e-l<a}else s=e<=a;return s?Rm(e,t,n,r,i):Rm(e,t,n,i+1,o)}function Jut(e,t,n,r=void 0){let o=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=o,o*=2;return Rm(e,t,r,Math.floor(n/2),Math.min(n,t.length))}function BB({firstIndex:e,lastIndex:t,bufferBefore:n,bufferAfter:r,minFirstIndex:o,maxLastIndex:i,positions:a,lastSize:s}){const l=a[e]-n,c=a[t]+r,u=Rm(l,a,{atStart:!0,lastPosition:a[a.length-1]+s}),f=Rm(c,a);return[Ul(u,o,i),Ul(f,o,i)]}function Zut(e,t){return e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex}function wue(e,t,n){const r=(e[t.firstColumnIndex]??0)-(e[n]??0);return Math.abs(r)}function edt(e,t){return e===0&&t===0?yi.NONE:Math.abs(t)>=Math.abs(e)?t>0?yi.DOWN:yi.UP:e>0?yi.RIGHT:yi.LEFT}function Sue(e,t,n,r,o,i){if(e)switch(t){case yi.LEFT:t=yi.RIGHT;break;case yi.RIGHT:t=yi.LEFT;break}switch(t){case yi.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case yi.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:i};case yi.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:i,columnBefore:0};case yi.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case yi.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const tdt=sr("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant"&&e!=="right"})(({overlayType:e,loadingOverlayVariant:t,right:n})=>t!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,right:`${n}px`,width:0,height:0,zIndex:e==="loadingOverlay"?5:4}:{}),ndt=sr("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant"})({}),rdt=e=>{const{classes:t}=e;return $e({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Bn,t)};function odt(e){const t=wn(),n=Ot(),r=rt(t,Wr);let o=Math.max(r.viewportOuterSize.height-r.topContainerHeight-r.bottomContainerHeight-(r.hasScrollX?r.scrollbarSize:0),0);o===0&&(o=Uce);const i=rdt(B({},e,{classes:n.classes}));return R.jsx(tdt,B({className:ge(i.root)},e,{right:r.columnsTotalWidth-r.viewportOuterSize.width,children:R.jsx(ndt,B({className:ge(i.inner),style:{height:o,width:r.viewportOuterSize.width}},e))}))}const I5=Wo(e=>e.pivoting),vv=Ft(I5,e=>e?.active),idt=new Map,Cue=Ft(I5,e=>e?.initialColumns||idt);Ft(I5,e=>e?.panelOpen);const adt=()=>{const e=wn(),t=Ot(),n=rt(e,vP),r=rt(e,y5),o=rt(e,Oce),i=rt(e,Uo),a=n===0&&o===0,s=rt(e,blt),l=rt(e,vv),c=!s&&a,u=!s&&n>0&&r===0,f=!s&&i.length===0,h=c&&l;let g=null,y=null;c&&(g="noRowsOverlay"),f&&(g="noColumnsOverlay"),h&&(g="emptyPivotOverlay"),u&&(g="noResultsOverlay"),s&&(g="loadingOverlay",y=t.slotProps?.loadingOverlay?.[a?"noRowsVariant":"variant"]??(a?"skeleton":"linear-progress"));const x={overlayType:g,loadingOverlayVariant:y};return{getOverlay:()=>{if(!g)return null;const C=t.slots?.[g],E=t.slotProps?.[g];return R.jsx(odt,B({},x,{children:R.jsx(C,B({},E))}))},overlaysProps:x}},wA=Wo(e=>e.columnMenu);function sdt(){const e=oc(),t=Ot(),n=rt(e,Uo),r=rt(e,Dct),o=rt(e,Mct),i=rt(e,nue),a=rt(e,()=>w5(e)===null),s=rt(e,Bct),l=rt(e,jct),c=rt(e,KD),u=rt(e,CP),f=rt(e,wA),h=rt(e,Hu),g=rt(e,Put),y=!(s===null&&i===null&&a),x=e.current.columnHeadersContainerRef;return R.jsx(t.slots.columnHeaders,B({ref:x,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:o,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:f,columnVisibility:h,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:y},t.slotProps?.columnHeaders))}const ldt=Qp(sdt),cdt=sr("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),udt=sr("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>{const{ownerState:n,loadingOverlayVariant:r,overlayType:o}=e,i=r==="skeleton"||o==="noColumnsOverlay";return[t.main,n.hasPinnedRight&&t["main--hasPinnedRight"],i&&t["main--hiddenContent"]]}})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),ddt=rn((e,t)=>{const{ownerState:n}=e,r=Ot(),i=m2().hooks.useGridAriaAttributes();return R.jsxs(udt,B({ownerState:n,className:e.className,tabIndex:-1},i,r.slotProps?.main,{ref:t,children:[R.jsx(cdt,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),fdt=()=>$e({root:["topContainer"]},Bn,{}),pdt=sr("div")({position:"sticky",zIndex:40,top:0});function hdt(e){const t=fdt();return R.jsx(pdt,B({},e,{className:ge(t.root,re["container--top"]),role:"presentation"}))}const mdt=(e,t)=>{const{classes:n}=e;return $e({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Bn,n)},gdt=sr("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScrollerContent,n.overflowedContent&&t["virtualScrollerContent--overflowed"]]}})({}),ydt=rn(function(t,n){const r=Ot(),o=!r.autoHeight&&t.style?.minHeight==="auto",i=mdt(r,o),a={classes:r.classes,overflowedContent:o};return R.jsx(gdt,B({},t,{ownerState:a,className:ge(i.root,t.className),ref:n}))}),vdt=sr("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),Eue=sr("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:Rt.cell.background.pinned}),bdt=sr(Eue)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),xdt=sr(Eue)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),wdt=sr("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function Sdt({rowsLength:e}){const t=wn(),{viewportOuterSize:n,minimumSize:r,hasScrollX:o,hasScrollY:i,scrollbarSize:a,leftPinnedWidth:s,rightPinnedWidth:l}=rt(t,Wr),c=o?a:0,u=n.height-r.height>0;return c===0&&!u?null:R.jsxs(vdt,{className:re.filler,role:"presentation",style:{height:c,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[s>0&&R.jsx(bdt,{className:re["filler--pinnedLeft"],style:{width:s}}),R.jsx(wdt,{}),l>0&&R.jsx(xdt,{className:re["filler--pinnedRight"],style:{width:l+(i?a:0)}})]})}const Cdt=Qp(Sdt),Edt=["className"],Tdt=e=>{const{classes:t}=e;return $e({root:["virtualScrollerRenderZone"]},Bn,t)},Pdt=sr("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone"})({position:"absolute",display:"flex",flexDirection:"column"}),Idt=rn(function(t,n){const{className:r}=t,o=He(t,Edt),i=wn(),a=Ot(),s=Tdt(a),l=rt(i,()=>{const c=PP(i);return TP(i).positions[c.firstRowIndex]??0});return R.jsx(Pdt,B({className:ge(s.root,r),ownerState:a,style:{transform:`translate3d(0, ${l}px, 0)`}},o,{ref:n}))}),Odt={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0},zi=Wo(e=>e.editRows),Tue=Ft(zi,(e,{rowId:t,editMode:n})=>n===df.Row&&!!e[t]),Mdt=Ft(zi,(e,{rowId:t,field:n})=>e[t]?.[n]??null),bv=Wo(e=>e.preferencePanel),Adt=Ft(bv,(e,t)=>!!(e.open&&e.labelId===t));var Ns=function(e){return e.filters="filters",e.columns="columns",e.aiAssistant="aiAssistant",e}(Ns||{});function Ddt(e){return JSON.stringify([e.filterModel,e.sortModel,e.start,e.end])}class Rdt{constructor({ttl:t=3e5,getKey:n=Ddt}){this.cache=void 0,this.ttl=void 0,this.getKey=void 0,this.cache={},this.ttl=t,this.getKey=n}set(t,n){const r=this.getKey(t),o=Date.now()+this.ttl;this.cache[r]={value:n,expiry:o}}get(t){const n=this.getKey(t),r=this.cache[n];if(r){if(Date.now()>r.expiry){delete this.cache[n];return}return r.value}}clear(){this.cache={}}}class kdt extends Error{constructor(t){super(t.message),this.params=void 0,this.cause=void 0,this.name="GridGetRowsError",this.params=t.params,this.cause=t.cause}}class Ndt extends Error{constructor(t){super(t.message),this.params=void 0,this.cause=void 0,this.name="GridUpdateRowError",this.params=t.params,this.cause=t.cause}}const _dt=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return $e(r,Bn,n)},Pue=sr("div")({position:"absolute",display:"inline-block",zIndex:60,"&:hover":{zIndex:70},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),Ldt=sr(Pue)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),$dt=sr(Pue)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),uY=rn(function(t,n){const r=oc(),o=Ot(),i=m.useRef(!1),a=m.useRef(0),s=m.useRef(null),l=m.useRef(null),c=_dt(o,t.position),u=rt(r,Wr),f=t.position==="vertical"?"height":"width",h=t.position==="vertical"?"scrollTop":"scrollLeft",g=t.position==="vertical"?"top":"left",y=t.position==="vertical"?u.hasScrollX:u.hasScrollY,x=u.minimumSize[f]+(y?u.scrollbarSize:0),C=(t.position==="vertical"?u.viewportInnerSize.height:u.viewportOuterSize.width)*(x/u.viewportOuterSize[f]),E=ft(()=>{const O=s.current,D=t.scrollPosition.current;if(!O||D[g]===a.current)return;if(a.current=D[g],i.current){i.current=!1;return}i.current=!0;const N=D[g]/x;O[h]=N*C}),I=ft(()=>{const O=r.current.virtualScrollerRef.current,D=s.current;if(!D)return;if(i.current){i.current=!1;return}i.current=!0;const N=D[h]/C;O[h]=N*x});gz(()=>{const O=r.current.virtualScrollerRef.current,D=s.current,N={passive:!0};return O.addEventListener("scroll",E,N),D.addEventListener("scroll",I,N),()=>{O.removeEventListener("scroll",E,N),D.removeEventListener("scroll",I,N)}}),m.useEffect(()=>{l.current.style.setProperty(f,`${C}px`)},[C,f]);const M=t.position==="vertical"?Ldt:$dt;return R.jsx(M,{ref:xn(n,s),className:c.root,style:t.position==="vertical"&&o.listView?{height:"100%",top:0}:void 0,tabIndex:-1,"aria-hidden":"true",onFocus:O=>{O.target.blur()},children:R.jsx("div",{ref:l,className:c.content})})}),Fdt=e=>{const{classes:t,hasScrollX:n,hasPinnedRight:r,loadingOverlayVariant:o,overlayType:i}=e;return $e({root:["main",r&&"main--hasPinnedRight",(o==="skeleton"||i==="noColumnsOverlay")&&"main--hiddenContent"],scroller:["virtualScroller",n&&"virtualScroller--hasScrollX"]},Bn,t)},jdt=sr("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScroller,n.hasScrollX&&t["virtualScroller--hasScrollX"]]}})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0}),Bdt=e=>e.current.state.dimensions.rightPinnedWidth>0;function zdt(e){const t=wn(),n=Ot(),r=rt(t,Jst),o=rt(t,Xst),i=rt(t,Bdt),a=rt(t,nlt),{getOverlay:s,overlaysProps:l}=adt(),c=B({classes:n.classes,hasScrollX:o,hasPinnedRight:i},l),u=Fdt(c),f=Yut(),{getContainerProps:h,getScrollerProps:g,getContentProps:y,getRenderZoneProps:x,getScrollbarVerticalProps:S,getScrollbarHorizontalProps:C,getRows:E,getScrollAreaProps:I}=f,M=E();return R.jsxs(ddt,B({className:u.root},h(),{ownerState:c,children:[R.jsx(iY,B({scrollDirection:"left"},I())),R.jsx(iY,B({scrollDirection:"right"},I())),R.jsxs(jdt,B({className:u.scroller},g(),{ownerState:c,children:[R.jsxs(hdt,{children:[!n.listView&&R.jsx(ldt,{}),R.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:f})]}),s(),R.jsx(ydt,B({},y(),{children:R.jsxs(Idt,B({},x(),{children:[M,R.jsx(n.slots.detailPanels,{virtualScroller:f})]}))})),a&&R.jsx(Cdt,{rowsLength:M.length}),R.jsx(n.slots.bottomContainer,{children:R.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:f})})]})),o&&!n.listView&&R.jsx(uY,B({position:"horizontal"},C())),r&&R.jsx(uY,B({position:"vertical"},S())),e.children]}))}function Vdt(){const e=Ot();return e.hideFooter?null:R.jsx(e.slots.footer,B({},e.slotProps?.footer))}let H$;function Hdt(){return H$===void 0&&document.createElement("div").focus({get preventScroll(){return H$=!0,!1}}),H$}function Udt({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=B({},e);return Object.keys(n).forEach(o=>{const i=o;n[i]!==void 0&&(r[i]=n[i])}),r}const Gdt=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},Wdt=e=>e===Wce||Gdt(e)!==null,Iue=(e,t)=>{if(e)if(t){if(e===Wn.LEFT)return"right";if(e===Wn.RIGHT)return"left"}else{if(e===Wn.LEFT)return"left";if(e===Wn.RIGHT)return"right"}};function I2(e,t,n,r){const o=Iue(n,t);return!o||r===void 0||(e[o]=r),e}const qdt=["column","row","rowId","rowNode","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","showRightBorder","showLeftBorder","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],Kdt=["changeReason","unstable_updateValueOnRender"];Wn.LEFT+"",nm.LEFT,Wn.RIGHT+"",nm.RIGHT,Wn.NONE+"",Wn.VIRTUAL+"";const Ydt=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:i,isSelected:a,isSelectionMode:s,classes:l}=e,c={root:["cell",`cell--text${Ae(t)}`,a&&"selected",i&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===Wn.LEFT&&"cell--pinnedLeft",o===Wn.RIGHT&&"cell--pinnedRight",s&&!i&&"cell--selectionMode"]};return $e(c,Bn,l)},Qdt=rn(function(t,n){const{column:r,row:o,rowId:i,rowNode:a,align:s,colIndex:l,width:c,className:u,style:f,colSpan:h,disableDragEvents:g,isNotVisible:y,pinnedOffset:x,pinnedPosition:S,showRightBorder:C,showLeftBorder:E,onClick:I,onDoubleClick:M,onMouseDown:O,onMouseUp:D,onMouseOver:N,onKeyDown:$,onKeyUp:L,onDragEnter:A,onDragOver:F}=t,z=He(t,qdt),H=oc(),Q=Ot(),G=eo(),V=r.field,Y=rt(H,Mdt,{rowId:i,field:V}),te=m2().hooks.useCellAggregationResult(i,V),U=Y?Pr.Edit:Pr.View,K=H.current.getCellParamsForRow(i,V,o,{colDef:r,cellMode:U,rowNode:a,tabIndex:rt(H,()=>{const Je=w5(H);return Je&&Je.field===V&&Je.id===i?0:-1}),hasFocus:rt(H,()=>{const Je=il(H);return Je?.id===i&&Je.field===V})});K.api=H.current,te&&(K.value=te.value,K.formattedValue=r.valueFormatter?r.valueFormatter(K.value,o,r,H):K.value);const ee=rt(H,()=>H.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:i,field:V})),le=rt(H,bue),ce=rt(H,Uut),{hasFocus:se,isEditable:fe=!1,value:we}=K,Oe=r.type==="actions"&&r.getActions?.(H.current.getRowParams(i)).some(Je=>!Je.props.disabled),he=(U==="view"||!fe)&&!Oe?K.tabIndex:-1,{classes:me,getCellClassName:ye}=Q,Se=[rt(H,()=>H.current.unstable_applyPipeProcessors("cellClassName",[],{id:i,field:V}).filter(Boolean).join(" "))];r.cellClassName&&Se.push(typeof r.cellClassName=="function"?r.cellClassName(K):r.cellClassName),r.display==="flex"&&Se.push(re["cell--flex"]),ye&&Se.push(ye(K));const Ie=K.formattedValue??we,Re=m.useRef(null),ke=xn(n,Re),Te=m.useRef(null),Ce=Q.cellSelection??!1,Ze={align:s,showLeftBorder:E,showRightBorder:C,isEditable:fe,classes:Q.classes,pinnedPosition:S,isSelected:ee,isSelectionMode:Ce},Me=Ydt(Ze),_e=m.useCallback(Je=>Mt=>{const Gt=H.current.getCellParams(i,V||"");H.current.publishEvent(Je,Gt,Mt),D&&D(Mt)},[H,V,D,i]),pe=m.useCallback(Je=>Mt=>{const Gt=H.current.getCellParams(i,V||"");H.current.publishEvent(Je,Gt,Mt),O&&O(Mt)},[H,V,O,i]),je=m.useCallback((Je,Mt)=>Gt=>{if(!H.current.getRow(i))return;const ht=H.current.getCellParams(i,V||"");H.current.publishEvent(Je,ht,Gt),Mt&&Mt(Gt)},[H,V,i]),Ke=le[i]?.[V]??!1,et=ce[i]?.[V]??1,nt=m.useMemo(()=>{if(y)return{padding:0,opacity:0,width:0,height:0,border:0};const Je=I2(B({"--width":`${c}px`},f),G,S,x),Mt=S===Wn.LEFT,Gt=S===Wn.RIGHT;return et>1&&(Je.height=`calc(var(--height) * ${et})`,Je.zIndex=10,(Mt||Gt)&&(Je.zIndex=40)),Je},[c,y,f,x,S,G,et]);if(m.useEffect(()=>{if(!se||U===Pr.Edit)return;const Je=yo(H.current.rootElementRef.current);if(Re.current&&!Re.current.contains(Je.activeElement)){const Mt=Re.current.querySelector('[tabindex="0"]'),Gt=Te.current||Mt||Re.current;if(Hdt())Gt.focus({preventScroll:!0});else{const ht=H.current.getScrollPosition();Gt.focus(),H.current.scroll(ht)}}},[se,U,H]),Ke)return R.jsx("div",{"data-colindex":l,role:"presentation",style:B({width:"var(--width)"},nt)});let ot=z.onFocus,it,tt;if(Y===null&&r.renderCell&&(it=r.renderCell(K)),Y!==null&&r.renderEditCell){const Je=H.current.getRowWithUpdatedValues(i,r.field),Mt=He(Y,Kdt),Gt=r.valueFormatter?r.valueFormatter(Y.value,Je,r,H):K.formattedValue,ht=B({},K,{row:Je,formattedValue:Gt},Mt);it=r.renderEditCell(ht),Se.push(re["cell--editing"]),Se.push(me?.["cell--editing"])}if(it===void 0){const Je=Ie?.toString();it=Je,tt=Je}m.isValidElement(it)&&Oe&&(it=m.cloneElement(it,{focusElementRef:Te}));const vt=g?null:{onDragEnter:je("cellDragEnter",A),onDragOver:je("cellDragOver",F)};return R.jsx("div",B({className:ge(Me.root,Se,u),role:"gridcell","data-field":V,"data-colindex":l,"aria-colindex":l+1,"aria-colspan":h,"aria-rowspan":et,style:nt,title:tt,tabIndex:he,onClick:je("cellClick",I),onDoubleClick:je("cellDoubleClick",M),onMouseOver:je("cellMouseOver",N),onMouseDown:pe("cellMouseDown"),onMouseUp:_e("cellMouseUp"),onKeyDown:je("cellKeyDown",$),onKeyUp:je("cellKeyUp",L)},vt,z,{onFocus:ot,ref:ke,children:it}))}),Xdt=Qp(Qdt),Jdt=["label","icon","showInMenu","onClick"],Zdt=["label","icon","showInMenu","onClick","closeMenuOnClick","closeMenu"],hm=rn((e,t)=>{const n=Ot();if(!e.showInMenu){const{label:u,icon:f,onClick:h}=e,g=He(e,Jdt),y=x=>{h?.(x)};return R.jsx(n.slots.baseIconButton,B({size:"small",role:"menuitem","aria-label":u},g,{onClick:y},n.slotProps?.baseIconButton,{ref:t,children:m.cloneElement(f,{fontSize:"small"})}))}const{label:r,icon:o,onClick:i,closeMenuOnClick:a=!0,closeMenu:s}=e,l=He(e,Zdt),c=u=>{i?.(u),a&&s?.()};return R.jsx(n.slots.baseMenuItem,B({ref:t},l,{onClick:c,iconStart:o,children:r}))}),eft=["field","type","align","width","height","empty","style","className"],dY="1.3em",tft="1.2em",fY=[40,80],nft={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},rft=e=>{const{align:t,classes:n,empty:r}=e,o={root:["cell","cellSkeleton",`cell--text${t?Ae(t):"Left"}`,r&&"cellEmpty"]};return $e(o,Bn,n)},oft=Llt(12345);function ift(e){const{field:t,type:n,align:r,width:o,height:i,empty:a=!1,style:s,className:l}=e,c=He(e,eft),u=Ot(),f={classes:u.classes,align:r,empty:a},h=rft(f),g=m.useMemo(()=>{if(n==="boolean"||n==="actions")return{variant:"circular",width:dY,height:dY};const[x,S]=n?nft[n]??fY:fY;return{variant:"text",width:`${Math.round(oft(x,S))}%`,height:tft}},[n]);return R.jsx("div",B({"data-field":t,className:ge(h.root,l),style:B({height:i,maxWidth:o,minWidth:o},s)},c,{children:!a&&R.jsx(u.slots.baseSkeleton,B({},g))}))}const aft=Qp(ift),sft=10,UM=-5,j0=1,pY={width:3,rx:1.5,x:10.5},lft="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",cft=e=>e.current.state.dimensions.hasScrollX&&(!e.current.state.dimensions.hasScrollY||e.current.state.dimensions.scrollbarSize===0),uft=ue("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${re.autoHeight}`]:t.autoHeight},{[`&.${re.autosizing}`]:t.autosizing},{[`&.${re["root--densityStandard"]}`]:t["root--densityStandard"]},{[`&.${re["root--densityComfortable"]}`]:t["root--densityComfortable"]},{[`&.${re["root--densityCompact"]}`]:t["root--densityCompact"]},{[`&.${re["root--disableUserSelection"]}`]:t["root--disableUserSelection"]},{[`&.${re["root--noToolbar"]}`]:t["root--noToolbar"]},{[`&.${re.withVerticalBorder}`]:t.withVerticalBorder},{[`& .${re.actionsCell}`]:t.actionsCell},{[`& .${re.booleanCell}`]:t.booleanCell},{[`& .${re.cell}`]:t.cell},{[`& .${re["cell--editable"]}`]:t["cell--editable"]},{[`& .${re["cell--editing"]}`]:t["cell--editing"]},{[`& .${re["cell--flex"]}`]:t["cell--flex"]},{[`& .${re["cell--pinnedLeft"]}`]:t["cell--pinnedLeft"]},{[`& .${re["cell--pinnedRight"]}`]:t["cell--pinnedRight"]},{[`& .${re["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${re["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${re["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${re["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${re["cell--selectionMode"]}`]:t["cell--selectionMode"]},{[`& .${re["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${re["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${re["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${re["cell--withLeftBorder"]}`]:t["cell--withLeftBorder"]},{[`& .${re["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${re.cellCheckbox}`]:t.cellCheckbox},{[`& .${re.cellEmpty}`]:t.cellEmpty},{[`& .${re.cellOffsetLeft}`]:t.cellOffsetLeft},{[`& .${re.cellSkeleton}`]:t.cellSkeleton},{[`& .${re.checkboxInput}`]:t.checkboxInput},{[`& .${re.columnHeader}`]:t.columnHeader},{[`& .${re["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${re["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${re["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${re["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${re["columnHeader--emptyGroup"]}`]:t["columnHeader--emptyGroup"]},{[`& .${re["columnHeader--filledGroup"]}`]:t["columnHeader--filledGroup"]},{[`& .${re["columnHeader--filtered"]}`]:t["columnHeader--filtered"]},{[`& .${re["columnHeader--last"]}`]:t["columnHeader--last"]},{[`& .${re["columnHeader--lastUnpinned"]}`]:t["columnHeader--lastUnpinned"]},{[`& .${re["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${re["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${re["columnHeader--pinnedLeft"]}`]:t["columnHeader--pinnedLeft"]},{[`& .${re["columnHeader--pinnedRight"]}`]:t["columnHeader--pinnedRight"]},{[`& .${re["columnHeader--siblingFocused"]}`]:t["columnHeader--siblingFocused"]},{[`& .${re["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${re["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${re["columnHeader--withLeftBorder"]}`]:t["columnHeader--withLeftBorder"]},{[`& .${re["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${re.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${re.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${re.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${re.columnHeaderTitleContainerContent}`]:t.columnHeaderTitleContainerContent},{[`& .${re.columnSeparator}`]:t.columnSeparator},{[`& .${re["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${re["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${re["columnSeparator--sideLeft"]}`]:t["columnSeparator--sideLeft"]},{[`& .${re["columnSeparator--sideRight"]}`]:t["columnSeparator--sideRight"]},{[`& .${re["container--bottom"]}`]:t["container--bottom"]},{[`& .${re["container--top"]}`]:t["container--top"]},{[`& .${re.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${re["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},{[`& .${re.editBooleanCell}`]:t.editBooleanCell},{[`& .${re.filterIcon}`]:t.filterIcon},{[`& .${re["filler--borderBottom"]}`]:t["filler--borderBottom"]},{[`& .${re["filler--pinnedLeft"]}`]:t["filler--pinnedLeft"]},{[`& .${re["filler--pinnedRight"]}`]:t["filler--pinnedRight"]},{[`& .${re.groupingCriteriaCell}`]:t.groupingCriteriaCell},{[`& .${re.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${re.groupingCriteriaCellToggle}`]:t.groupingCriteriaCellToggle},{[`& .${re.headerFilterRow}`]:t.headerFilterRow},{[`& .${re.iconSeparator}`]:t.iconSeparator},{[`& .${re.menuIcon}`]:t.menuIcon},{[`& .${re.menuIconButton}`]:t.menuIconButton},{[`& .${re.menuList}`]:t.menuList},{[`& .${re.menuOpen}`]:t.menuOpen},{[`& .${re.overlayWrapperInner}`]:t.overlayWrapperInner},{[`& .${re.pinnedRows}`]:t.pinnedRows},{[`& .${re["pinnedRows--bottom"]}`]:t["pinnedRows--bottom"]},{[`& .${re["pinnedRows--top"]}`]:t["pinnedRows--top"]},{[`& .${re.row}`]:t.row},{[`& .${re["row--borderBottom"]}`]:t["row--borderBottom"]},{[`& .${re["row--detailPanelExpanded"]}`]:t["row--detailPanelExpanded"]},{[`& .${re["row--dragging"]}`]:t["row--dragging"]},{[`& .${re["row--dynamicHeight"]}`]:t["row--dynamicHeight"]},{[`& .${re["row--editable"]}`]:t["row--editable"]},{[`& .${re["row--editing"]}`]:t["row--editing"]},{[`& .${re["row--firstVisible"]}`]:t["row--firstVisible"]},{[`& .${re["row--lastVisible"]}`]:t["row--lastVisible"]},{[`& .${re.rowReorderCell}`]:t.rowReorderCell},{[`& .${re["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${re.rowReorderCellContainer}`]:t.rowReorderCellContainer},{[`& .${re.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${re.rowSkeleton}`]:t.rowSkeleton},{[`& .${re.scrollbar}`]:t.scrollbar},{[`& .${re["scrollbar--horizontal"]}`]:t["scrollbar--horizontal"]},{[`& .${re["scrollbar--vertical"]}`]:t["scrollbar--vertical"]},{[`& .${re.scrollbarFiller}`]:t.scrollbarFiller},{[`& .${re["scrollbarFiller--borderBottom"]}`]:t["scrollbarFiller--borderBottom"]},{[`& .${re["scrollbarFiller--borderTop"]}`]:t["scrollbarFiller--borderTop"]},{[`& .${re["scrollbarFiller--header"]}`]:t["scrollbarFiller--header"]},{[`& .${re["scrollbarFiller--pinnedRight"]}`]:t["scrollbarFiller--pinnedRight"]},{[`& .${re.sortIcon}`]:t.sortIcon},{[`& .${re.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${re.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${re.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${re.withBorderColor}`]:t.withBorderColor}]})(()=>{const e=oc(),t=rt(e,cft),n=Rt.colors.background.base,r=Rt.header.background.base,o=Rt.cell.background.pinned,i=dft(Rt.colors.interactive.hover),a=Rt.colors.interactive.hoverOpacity,s=Rt.colors.interactive.selected,l=Rt.colors.interactive.selectedOpacity,c=s,u=`calc(${l} + ${a})`,f=Yh(n,i,a),h=Yh(n,s,l),g=Yh(n,c,u),y=Yh(o,i,a),x=Yh(o,s,l),S=Yh(o,c,u),C=N=>({[`& .${re["cell--pinnedLeft"]}, & .${re["cell--pinnedRight"]}`]:{backgroundColor:N,"&.Mui-selected":{backgroundColor:Yh(N,h,l),"&:hover":{backgroundColor:Yh(N,g,u)}}}}),E=C(y),I=C(x),M=C(S),O={backgroundColor:h,"&:hover":{backgroundColor:g,"@media (hover: none)":{backgroundColor:h}}};return{"--unstable_DataGrid-radius":Rt.radius.base,"--unstable_DataGrid-headWeight":Rt.typography.fontWeight.medium,"--DataGrid-rowBorderColor":Rt.colors.border.base,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:Rt.colors.border.base,borderRadius:"var(--unstable_DataGrid-radius)",backgroundColor:Rt.colors.background.base,color:Rt.colors.foreground.base,font:Rt.typography.font.body,outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",transform:"translate(0, 0)",[`.${re.main} > *:first-child${lft}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${re.autoHeight}`]:{height:"auto"},[`&.${re.autosizing}`]:{[`& .${re.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${re.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${re.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${re.groupingCriteriaCell}`]:{width:"unset"},[`& .${re.treeDataGroupingCell}`]:{width:"unset"}},[`&.${re.withSidePanel}`]:{flexDirection:"row"},[`& .${re.mainContent}`]:{display:"flex",flexDirection:"column",overflow:"hidden",flex:1},[`& .${re.columnHeader}, & .${re.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${re.columnHeader}:focus-within, & .${re.cell}:focus-within`]:{outline:`solid ${Oue(Rt.colors.interactive.focus,.5)} ${j0}px`,outlineOffset:j0*-1},[`& .${re.columnHeader}:focus, & .${re.cell}:focus`]:{outline:`solid ${Rt.colors.interactive.focus} ${j0}px`,outlineOffset:j0*-1},[`& .${re.columnHeader}:focus,
- & .${re["columnHeader--withLeftBorder"]},
- & .${re["columnHeader--withRightBorder"]},
- & .${re["columnHeader--siblingFocused"]},
- & .${re["virtualScroller--hasScrollX"]} .${re["columnHeader--lastUnpinned"]},
- & .${re["virtualScroller--hasScrollX"]} .${re["columnHeader--last"]}
- `]:{[`& .${re.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${re["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${re["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${re["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${re["root--noToolbar"]} [aria-rowindex="1"] .${re["columnHeader--last"]}`]:{borderTopRightRadius:t?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${re.columnHeaderCheckbox}, & .${re.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${re.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center",backgroundColor:r},[`& .${re["columnHeader--filter"]}`]:{paddingTop:8,paddingBottom:8,paddingRight:5,minHeight:"min-content",overflow:"hidden"},[`& .${re["virtualScroller--hasScrollX"]} .${re["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${re["pivotPanelField--sorted"]} .${re.iconButtonContainer},
- & .${re["columnHeader--sorted"]} .${re.iconButtonContainer},
- & .${re["columnHeader--filtered"]} .${re.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${re.pivotPanelField}:not(.${re["pivotPanelField--sorted"]}) .${re.sortButton},
- & .${re.columnHeader}:not(.${re["columnHeader--sorted"]}) .${re.sortButton}`]:{opacity:0,transition:Rt.transition(["opacity"],{duration:Rt.transitions.duration.short})},[`& .${re.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:Rt.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${re.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${re["columnHeader--filledGroup"]} .${re.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${re.sortIcon}, & .${re.filterIcon}`]:{fontSize:"inherit"},[`& .${re["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${re["columnHeader--alignCenter"]} .${re.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${re["columnHeader--alignRight"]} .${re.columnHeaderDraggableContainer}, & .${re["columnHeader--alignRight"]} .${re.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${re["columnHeader--alignCenter"]} .${re.menuIcon}`]:{marginLeft:"auto"},[`& .${re["columnHeader--alignRight"]} .${re.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${re["columnHeader--moving"]}`]:{backgroundColor:f},[`& .${re["columnHeader--pinnedLeft"]}, & .${re["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:40,background:Rt.header.background.base},[`& .${re.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:30,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:sft,color:Rt.colors.border.base},[`& .${re.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)",backgroundColor:r},"@media (hover: hover)":{[`& .${re.columnHeader}:hover`]:{[`& .${re.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${re.iconButtonContainer}`]:{visibility:"visible",width:"auto"}},[`& .${re.columnHeader}:not(.${re["columnHeader--sorted"]}):hover .${re.sortButton},
- & .${re.pivotPanelField}:not(.${re["pivotPanelField--sorted"]}):hover .${re.sortButton},
- & .${re.pivotPanelField}:not(.${re["pivotPanelField--sorted"]}) .${re.sortButton}:focus-visible`]:{opacity:.5}},"@media (hover: none)":{[`& .${re.columnHeader} .${re.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${re.columnHeader}:focus,
- & .${re["columnHeader--siblingFocused"]}`]:{[`.${re["columnSeparator--resizable"]}`]:{color:Rt.colors.foreground.accent}},[`& .${re.pivotPanelField}:not(.${re["pivotPanelField--sorted"]}) .${re.sortButton}`]:{opacity:.5}},[`& .${re["columnSeparator--sideLeft"]}`]:{left:UM},[`& .${re["columnSeparator--sideRight"]}`]:{right:UM},[`& .${re["columnHeader--withRightBorder"]} .${re["columnSeparator--sideLeft"]}`]:{left:UM-.5},[`& .${re["columnHeader--withRightBorder"]} .${re["columnSeparator--sideRight"]}`]:{right:UM-.5},[`& .${re["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${re["columnSeparator--resizing"]}`]:{color:Rt.colors.foreground.accent},"@media (hover: none)":{[`& .${re.iconSeparator} rect`]:pY},"@media (hover: hover)":{"&:hover":{color:Rt.colors.foreground.accent,[`& .${re.iconSeparator} rect`]:pY}},"& svg":{pointerEvents:"none"}},[`& .${re.iconSeparator}`]:{color:"inherit",transition:Rt.transition(["color","width"],{duration:Rt.transitions.duration.short})},[`& .${re.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${re.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${re.headerFilterRow}`]:{[`& .${re.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${re["row--borderBottom"]} .${re.columnHeader},
- & .${re["row--borderBottom"]} .${re.filler},
- & .${re["row--borderBottom"]} .${re.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${re["row--borderBottom"]} .${re.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${re.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${re["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:f,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${re.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":O},[`& .${re["container--top"]}, & .${re["container--bottom"]}`]:{"[role=row]":{background:Rt.colors.background.base}},[`& .${re.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":O},[`& .${re["virtualScrollerContent--overflowed"]} .${re["row--lastVisible"]} .${re.cell}`]:{borderTopColor:"transparent"},[`& .${re.pinnedRows} .${re.row}, .${re.aggregationRowOverlayWrapper} .${re.row}`]:{backgroundColor:o,"&:hover":{backgroundColor:y}},[`& .${re["pinnedRows--top"]} :first-of-type`]:{[`& .${re.cell}, .${re.scrollbarFiller}`]:{borderTop:"none"}},[`&.${re["root--disableUserSelection"]} .${re.cell}`]:{userSelect:"none"},[`& .${re["row--dynamicHeight"]} > .${re.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${re.cellEmpty}`]:{flex:1,padding:0,height:"unset"},[`& .${re.cell}.${re["cell--selectionMode"]}`]:{cursor:"default"},[`& .${re.cell}.${re["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:Rt.shadows.base,backgroundColor:Rt.colors.background.overlay,"&:focus-within":{outline:`${j0}px solid ${Rt.colors.interactive.focus}`,outlineOffset:j0*-1}},[`& .${re["row--editing"]}`]:{boxShadow:Rt.shadows.base},[`& .${re["row--editing"]} .${re.cell}`]:{boxShadow:"none",backgroundColor:Rt.colors.background.overlay},[`& .${re.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${re.booleanCell}[data-value="true"]`]:{color:Rt.colors.foreground.muted},[`& .${re.booleanCell}[data-value="false"]`]:{color:Rt.colors.foreground.disabled},[`& .${re.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:Rt.spacing(1)},[`& .${re.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:Rt.colors.interactive.disabledOpacity},[`& .${re["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${re.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${re.withBorderColor}`]:{borderColor:Rt.colors.border.base},[`& .${re["cell--withLeftBorder"]}, & .${re["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${re["cell--withRightBorder"]}, & .${re["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${re["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${re["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${re["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${re["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${re["cell--pinnedLeft"]}, & .${re["cell--pinnedRight"]}`]:{position:"sticky",zIndex:30,background:Rt.cell.background.pinned,"&.Mui-selected":{backgroundColor:x}},[`& .${re.row}`]:{"&:hover":E,"&.Mui-selected":I,"&.Mui-selected:hover":M},[`& .${re.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${re.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${re.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${re.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${re["columnHeader--dragging"]}, & .${re["row--dragging"]}`]:{background:Rt.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:Rt.colors.interactive.disabledOpacity},[`& .${re["row--dragging"]}`]:{background:Rt.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:Rt.colors.interactive.disabledOpacity,[`& .${re.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${re.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${re.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:Rt.spacing(2)},[`& .${re.treeDataGroupingCellLoadingContainer}, .${re.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${re.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${re.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:Rt.spacing(2)},[`.${re.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${re["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${re["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${re["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:Rt.cell.background.pinned,position:"sticky",right:0}},[`& .${re.filler}`]:{flex:"1 0 auto"},[`& .${re["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${re["main--hiddenContent"]}`]:{[`& .${re.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${re["scrollbar--vertical"]}, & .${re.pinnedRows}, & .${re.virtualScroller} > .${re.filler}`]:{display:"none"}}}});function Oue(e,t){return`rgba(from ${e} r g b / ${t})`}function dft(e){return Oue(e,1)}function Yh(e,t,n){return`color-mix(in srgb,${e}, ${t} calc(${n} * 100%))`}const fft=()=>()=>{},pft=()=>!1,hft=()=>!0,mft=()=>xce.useSyncExternalStore(fft,pft,hft),Mue=m.createContext(void 0);function O5(){const e=m.useContext(Mue);if(e===void 0)throw new Error("MUI X: Missing context.");return e}function gft({children:e}){const t=m.useRef(null),n=m.useRef(null),r=m.useRef(null),o=m.useMemo(()=>({columnsPanelTriggerRef:t,filterPanelTriggerRef:n,aiAssistantPanelTriggerRef:r}),[]);return R.jsx(Mue.Provider,{value:o,children:e})}function yft(){const e=wn(),t=rt(e,Yu),n=Ot(),r=rt(e,bv),{columnsPanelTriggerRef:o,filterPanelTriggerRef:i,aiAssistantPanelTriggerRef:a}=O5(),s=e.current.unstable_applyPipeProcessors("preferencePanel",null,r.openedPanelValue??Ns.filters);let l=null;switch(r.openedPanelValue){case Ns.filters:l=i.current;break;case Ns.columns:l=o.current;break;case Ns.aiAssistant:l=a.current;break}return R.jsx(n.slots.panel,B({id:r.panelId,open:t.length>0&&r.open,"aria-labelledby":r.labelId,target:l,onClose:()=>e.current.hidePreferences()},n.slotProps?.panel,{children:s}))}function vft(){const e=Ot();return R.jsxs(m.Fragment,{children:[R.jsx(yft,{}),e.showToolbar&&R.jsx(e.slots.toolbar,B({},e.slotProps?.toolbar))]})}const bft=["className","children","sidePanel"],xft=(e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:o}=e,i={root:["root",n&&"autoHeight",`root--density${Ae(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",o&&"withVerticalBorder"]};return $e(i,Bn,r)},wft=rn(function(t,n){const r=Ot(),{className:o,children:i,sidePanel:a}=t,s=He(t,bft),l=oc(),c=rt(l,ex),u=l.current.rootElementRef,f=m.useCallback(C=>{C!==null&&l.current.publishEvent("rootMount",C)},[l]),h=xn(u,n,f),g=r,y=xft(g,c),x=ect();return mft()?null:R.jsxs(uft,B({className:ge(y.root,o,x.className,a&&re.withSidePanel),ownerState:g},s,{ref:h,children:[R.jsxs("div",{className:re.mainContent,role:"presentation",children:[R.jsx(vft,{}),R.jsx(zdt,{children:i}),R.jsx(Vdt,{})]}),a,x.tag]}))}),Sft=Qp(wft),Cft=["className"],Eft=e=>{const{classes:t}=e;return $e({root:["footerContainer","withBorderColor"]},Bn,t)},Tft=sr("div",{name:"MuiDataGrid",slot:"FooterContainer"})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),Pft=rn(function(t,n){const{className:r}=t,o=He(t,Cft),i=Ot(),a=Eft(i);return R.jsx(Tft,B({className:ge(a.root,r),ownerState:i},o,{ref:n}))}),Ift=["className"],Oft=e=>{const{classes:t}=e;return $e({root:["overlay"]},Bn,t)},Mft=sr("div",{name:"MuiDataGrid",slot:"Overlay"})({width:"100%",height:"100%",display:"flex",gap:Rt.spacing(1),flexDirection:"column",alignSelf:"center",alignItems:"center",justifyContent:"center",textAlign:"center",textWrap:"balance",backgroundColor:Rt.colors.background.backdrop}),O2=rn(function(t,n){const{className:r}=t,o=He(t,Ift),i=Ot(),a=Oft(i);return R.jsx(Mft,B({className:ge(a.root,r),ownerState:i},o,{ref:n}))});function Cf(e,t,n,r={}){return typeof t=="function"?t(n,r):t?(t.props.className&&(n.className=ge(t.props.className,n.className)),(t.props.style||n.style)&&(n.style=B({},n.style,t.props.style)),(t.props.sx||n.sx)&&(n.sx=Aft(n.sx,t.props.sx)),m.cloneElement(t,n)):m.createElement(e,n)}function Aft(e,t){return!e||!t?e||t:(Array.isArray(e)?e:[e]).concat(Array.isArray(t)?t:[t])}const Aue=m.createContext(void 0);function Dft(){const e=m.useContext(Aue);if(e===void 0)throw new Error("MUI X: Missing context. Toolbar subcomponents must be placed within a <Toolbar /> component.");return e}const Rft=["render","className"],kft=e=>{const{classes:t}=e;return $e({root:["toolbar"]},Bn,t)},Nft=sr("div",{name:"MuiDataGrid",slot:"Toolbar"})({flex:0,display:"flex",alignItems:"center",justifyContent:"end",gap:Rt.spacing(.25),padding:Rt.spacing(.75),minHeight:52,boxSizing:"border-box",borderBottom:`1px solid ${Rt.colors.border.base}`}),_ft=rn(function(t,n){const{render:r,className:o}=t,i=He(t,Rft),a=Ot(),s=kft(a),[l,c]=m.useState(null),[u,f]=m.useState([]),h=m.useCallback((M,O)=>{f(D=>[...D,{id:M,ref:O}])},[]),g=m.useCallback(M=>{f(O=>O.filter(D=>D.id!==M)),l===M&&c(null)},[l]),y=m.useCallback((M,O,D=!0)=>{let N=M;const $=u.length;for(let L=0;L<$;L+=1){if(N+=O,N>=$){if(!D)return-1;N=0}else if(N<0){if(!D)return-1;N=$-1}if(!u[N].ref.current?.disabled&&u[N].ref.current?.ariaDisabled!=="true")return N}return-1},[u]),x=m.useCallback(M=>{if(!l)return;const O=u.findIndex(N=>N.id===l);let D=-1;if(M.key==="ArrowRight"?(M.preventDefault(),D=y(O,1)):M.key==="ArrowLeft"?(M.preventDefault(),D=y(O,-1)):M.key==="Home"?(M.preventDefault(),D=y(-1,1,!1)):M.key==="End"&&(M.preventDefault(),D=y(u.length,-1,!1)),D>=0&&D<u.length){const N=u[D];c(N.id),N.ref.current?.focus()}},[u,l,y]),S=m.useCallback(M=>{l!==M&&c(M)},[l]),C=m.useCallback(M=>{const O=u.findIndex(N=>N.id===M),D=y(O,1);if(D>=0&&D<u.length){const N=u[D];c(N.id),N.ref.current?.focus()}},[u,y]),E=m.useMemo(()=>({focusableItemId:l,registerItem:h,unregisterItem:g,onItemKeyDown:x,onItemFocus:S,onItemDisabled:C}),[l,h,g,x,S,C]),I=Cf(Nft,r,B({role:"toolbar","aria-orientation":"horizontal","aria-label":a.label||void 0,className:ge(s.root,o)},i,{ref:n}));return m.useEffect(()=>{u.length>0&&c(u[0].id)},[u]),R.jsx(Aue.Provider,{value:E,children:I})}),Lft=["render","onKeyDown","onFocus","disabled","aria-disabled"],SA=rn(function(t,n){const{render:r,onKeyDown:o,onFocus:i,disabled:a,"aria-disabled":s}=t,l=He(t,Lft),c=_n(),u=Ot(),f=m.useRef(null),h=xn(f,n),{focusableItemId:g,registerItem:y,unregisterItem:x,onItemKeyDown:S,onItemFocus:C,onItemDisabled:E}=Dft(),I=$=>{S($),o?.($)},M=$=>{C(c),i?.($)};m.useEffect(()=>(y(c,f),()=>x(c)),[]);const O=m.useRef(a);m.useEffect(()=>{O.current!==a&&a===!0&&E(c,a),O.current=a},[a,c,E]);const D=m.useRef(s);m.useEffect(()=>{D.current!==s&&s===!0&&E(c,!0),D.current=s},[s,c,E]);const N=Cf(u.slots.baseIconButton,r,B({},u.slotProps?.baseIconButton,{tabIndex:g===c?0:-1},l,{disabled:a,"aria-disabled":s,onKeyDown:I,onFocus:M,ref:h}));return R.jsx(m.Fragment,{children:N})}),$ft=e=>{const{classes:t,open:n}=e;return $e({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Bn,t)},Fft=m.memo(e=>{const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,a=wn(),s=Ot(),l=B({},e,{classes:s.classes}),c=$ft(l),u=m.useCallback(h=>{h.preventDefault(),h.stopPropagation(),a.current.toggleColumnMenu(t.field)},[a,t.field]),f=t.headerName??t.field;return R.jsx("div",{className:c.root,children:R.jsx(s.slots.baseTooltip,B({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},s.slotProps?.baseTooltip,{children:R.jsx(s.slots.baseIconButton,B({ref:i,tabIndex:-1,className:c.button,"aria-label":a.current.getLocaleText("columnMenuAriaLabel")(f),size:"small",onClick:u,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:o},s.slotProps?.baseIconButton,{children:R.jsx(s.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function jft({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:a,onExited:s}){const l=wn(),c=l.current.getColumn(o),u=ft(f=>{f&&(f.stopPropagation(),a?.contains(f.target))||l.current.hideColumnMenu()});return!a||!c?null:R.jsx(g2,{position:`bottom-${c.align==="right"?"start":"end"}`,open:i,target:a,onClose:u,onExited:s,children:R.jsx(n,B({colDef:c,hideMenu:u,open:i,id:e,labelledby:t},r))})}function Bft(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function XD(e,t){return e.closest(`.${t}`)}function Zp(e){return e.replace(/["\\]/g,"\\$&")}function zft(e,t){return e.querySelector(`[role="columnheader"][data-field="${Zp(t)}"]`)}function Due(e){return`.${re.row}[data-id="${Zp(String(e))}"]`}function Vft(e,t){return e.querySelector(Due(t))}function Hft(e,{id:t,field:n}){const r=Due(t),o=`.${re.cell}[data-field="${Zp(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function IP(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function Uft(e){return e.getAttribute("data-field")}function Gft(e,t){return e.querySelector(`[data-field="${Zp(t)}"]`)}function Wft(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function qft(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${Zp(t)}-|"]`)??[])}function Kft(e,t){if(!XD(e,re.root))throw new Error("MUI X: The root element is not found.");const r=e.getAttribute("aria-colindex");if(!r)return[];const o=Number(r)-1,i=[];return t.virtualScrollerRef?.current?(Nue(t).forEach(a=>{const s=a.getAttribute("data-id");if(!s)return;let l=o;const c=t.unstable_getCellColSpanInfo(s,o);c&&c.spannedByColSpan&&(l=c.leftVisibleCellIndex);const u=a.querySelector(`[data-colindex="${l}"]`);u&&i.push(u)}),i):[]}function hY(e,t){return e.rootElementRef.current.querySelector(`.${re[t]}`)}const Rue=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const o=[];return Nue(e).forEach(i=>{i.getAttribute("data-id")&&i.querySelectorAll(`.${re[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(s=>{const l=Ww(s);l!==null&&r(l)&&o.push(s)})}),o};function Yft(e,t,n){const r=Ww(t);return Rue({api:e,colIndex:r,position:n?"right":"left",filterFn:o=>n?o<r:o>r})}function Qft(e,t,n){const r=Ww(t);return Rue({api:e,colIndex:r,position:n?"left":"right",filterFn:o=>n?o>r:o<r})}const kue=({api:e,colIndex:t,position:n,filterFn:r})=>{if(!e.columnHeadersContainerRef?.current)return[];if(t===null)return[];const o=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${re[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(i=>{const a=Ww(i);a!==null&&r(a,i)&&o.push(i)}),o};function Xft(e,t,n){const r=Ww(t);return kue({api:e,position:n?"right":"left",colIndex:r,filterFn:o=>n?o<r:o>r})}function Jft(e,t,n){const r=Ww(t);return kue({api:e,position:n?"left":"right",colIndex:r,filterFn:(o,i)=>i.classList.contains(re["columnHeader--last"])?!1:n?o>r:o<r})}function Zft(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${Zp(t)}"][role="columnheader"]`)}function ept(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${Zp(t)}"][role="gridcell"]`))}function Nue(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${re.row}`)}function Ww(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}const tpt=["className","aria-label"],npt=e=>{const{classes:t}=e;return $e({root:["columnHeaderTitle"]},Bn,t)},rpt=sr("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle"})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),opt=rn(function(t,n){const{className:r}=t,o=He(t,tpt),i=Ot(),a=npt(i);return R.jsx(rpt,B({className:ge(a.root,r),ownerState:i},o,{ref:n}))});function ipt(e){const{label:t,description:n}=e,r=Ot(),o=m.useRef(null),[i,a]=m.useState(""),s=m.useCallback(()=>{if(!n&&o?.current){const l=Bft(o.current);a(l?t:"")}},[n,t]);return R.jsx(r.slots.baseTooltip,B({title:n||i},r.slotProps?.baseTooltip,{children:R.jsx(opt,{onMouseOver:s,ref:o,children:t})}))}const apt=["resizable","resizing","height","side"];var M5=function(e){return e.Left="left",e.Right="right",e}(M5||{});const spt=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${Ae(o)}`],icon:["iconSeparator"]};return $e(i,Bn,r)};function lpt(e){const{height:t,side:n=M5.Right}=e,r=He(e,apt),o=Ot(),i=B({},e,{side:n,classes:o.classes}),a=spt(i),s=m.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]);return R.jsx("div",B({className:a.root,style:{minHeight:t}},r,{onClick:s,children:R.jsx(o.slots.columnResizeIcon,{className:a.icon})}))}const cpt=m.memo(lpt),upt=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],_ue=rn(function(t,n){const{classes:r,colIndex:o,height:i,isResizing:a,sortDirection:s,hasFocus:l,tabIndex:c,separatorSide:u,isDraggable:f,headerComponent:h,description:g,width:y,columnMenuIconButton:x=null,columnMenu:S=null,columnTitleIconButtons:C=null,headerClassName:E,label:I,resizable:M,draggableContainerProps:O,columnHeaderSeparatorProps:D,style:N}=t,$=He(t,upt),L=oc(),A=Ot(),F=m.useRef(null),z=xn(F,n);let H="none";return s!=null&&(H=s==="asc"?"ascending":"descending"),m.useLayoutEffect(()=>{const Q=L.current.state.columnMenu;l&&!Q.open&&((F.current.querySelector('[tabindex="0"]')||F.current)?.focus(),L.current.columnHeadersContainerRef?.current&&(L.current.columnHeadersContainerRef.current.scrollLeft=0))},[L,l]),R.jsxs("div",B({className:ge(r.root,E),style:B({},N,{width:y}),role:"columnheader",tabIndex:c,"aria-colindex":o+1,"aria-sort":H},$,{ref:z,children:[R.jsxs("div",B({className:r.draggableContainer,draggable:f,role:"presentation"},O,{children:[R.jsxs("div",{className:r.titleContainer,role:"presentation",children:[R.jsx("div",{className:r.titleContainerContent,children:h!==void 0?h:R.jsx(ipt,{label:I,description:g,columnWidth:y})}),C]}),x]})),R.jsx(cpt,B({resizable:!A.disableColumnResize&&!!M,resizing:a,height:i,side:u},D)),S]}))}),dpt=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,showLeftBorder:a,filterItemsCounter:s,pinnedPosition:l,isLastUnpinned:c,isSiblingFocused:u}=e,f=o!=null,h=s!=null&&s>0,g=t.type==="number",y={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",f&&"columnHeader--sorted",h&&"columnHeader--filtered",g&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder",a&&"columnHeader--withLeftBorder",l===Wn.LEFT&&"columnHeader--pinnedLeft",l===Wn.RIGHT&&"columnHeader--pinnedRight",c&&"columnHeader--lastUnpinned",u&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return $e(y,Bn,n)};function fpt(e){const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:o,isResizing:i,isLast:a,sortDirection:s,sortIndex:l,filterItemsCounter:c,hasFocus:u,tabIndex:f,disableReorder:h,separatorSide:g,showLeftBorder:y,showRightBorder:x,pinnedPosition:S,pinnedOffset:C}=e,E=oc(),I=Ot(),M=eo(),O=m.useRef(null),D=_n(),N=_n(),$=m.useRef(null),[L,A]=m.useState(n),F=m.useMemo(()=>!I.disableColumnReorder&&!h&&!t.disableReorder,[I.disableColumnReorder,h,t.disableReorder]);let z;t.renderHeader&&(z=t.renderHeader(E.current.getColumnHeaderParams(t.field)));const H=B({},e,{classes:I.classes,showRightBorder:x,showLeftBorder:y}),Q=dpt(H),G=m.useCallback(Oe=>he=>{IP(he)||E.current.publishEvent(Oe,E.current.getColumnHeaderParams(t.field),he)},[E,t.field]),V=m.useMemo(()=>({onClick:G("columnHeaderClick"),onContextMenu:G("columnHeaderContextMenu"),onDoubleClick:G("columnHeaderDoubleClick"),onMouseOver:G("columnHeaderOver"),onMouseOut:G("columnHeaderOut"),onMouseEnter:G("columnHeaderEnter"),onMouseLeave:G("columnHeaderLeave"),onKeyDown:G("columnHeaderKeyDown"),onFocus:G("columnHeaderFocus"),onBlur:G("columnHeaderBlur")}),[G]),Y=m.useMemo(()=>F?{onDragStart:G("columnHeaderDragStart"),onDragEnter:G("columnHeaderDragEnter"),onDragOver:G("columnHeaderDragOver"),onDragEnd:G("columnHeaderDragEnd")}:{},[F,G]),X=m.useMemo(()=>({onMouseDown:G("columnSeparatorMouseDown"),onDoubleClick:G("columnSeparatorDoubleClick")}),[G]);m.useEffect(()=>{L||A(n)},[L,n]);const te=m.useCallback(()=>{A(!1)},[]),U=!I.disableColumnMenu&&!t.disableColumnMenu&&R.jsx(Fft,{colDef:t,columnMenuId:D,columnMenuButtonId:N,open:L,iconButtonRef:$}),K=R.jsx(jft,{columnMenuId:D,columnMenuButtonId:N,field:t.field,open:n,target:$.current,ContentComponent:I.slots.columnMenu,contentComponentProps:I.slotProps?.columnMenu,onExited:te}),ee=t.sortingOrder??I.sortingOrder,le=(t.sortable||s!=null)&&!t.hideSortIcons&&!I.disableColumnSorting,ce=R.jsxs(m.Fragment,{children:[!I.disableColumnFilter&&R.jsx(I.slots.columnHeaderFilterIconButton,B({field:t.field,counter:c},I.slotProps?.columnHeaderFilterIconButton)),le&&R.jsx(I.slots.columnHeaderSortIcon,B({field:t.field,direction:s,index:l,sortingOrder:ee,disabled:!t.sortable},I.slotProps?.columnHeaderSortIcon))]});m.useLayoutEffect(()=>{const Oe=E.current.state.columnMenu;u&&!Oe.open&&((O.current.querySelector('[tabindex="0"]')||O.current)?.focus(),E.current.columnHeadersContainerRef?.current&&(E.current.columnHeadersContainerRef.current.scrollLeft=0))},[E,u]);const se=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,fe=t.headerName??t.field,we=m.useMemo(()=>I2(B({},e.style),M,S,C),[S,C,e.style,M]);return R.jsx(_ue,B({ref:O,classes:Q,columnMenuOpen:n,colIndex:r,height:o,isResizing:i,sortDirection:s,hasFocus:u,tabIndex:f,separatorSide:g,isDraggable:F,headerComponent:z,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:U,columnTitleIconButtons:ce,headerClassName:ge(se,a&&re["columnHeader--last"]),label:fe,resizable:!I.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:K,draggableContainerProps:Y,columnHeaderSeparatorProps:X,style:we},V))}const ppt=Qp(fpt),hpt=["className"],mpt=e=>{const{classes:t}=e;return $e({root:["iconButtonContainer"]},Bn,t)},gpt=sr("div",{name:"MuiDataGrid",slot:"IconButtonContainer"})(()=>({display:"flex",visibility:"hidden",width:0})),Lue=rn(function(t,n){const{className:r}=t,o=He(t,hpt),i=Ot(),a=mpt(i);return R.jsx(gpt,B({className:ge(a.root,r),ownerState:i},o,{ref:n}))}),ypt=["sortingOrder"],vpt=m.memo(function(t){const{sortingOrder:n}=t,r=He(t,ypt),o=Ot(),[i]=n,a=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return a?R.jsx(a,B({},r)):null}),bpt=["direction","index","sortingOrder","disabled","className"],xpt=e=>{const{classes:t}=e;return $e({root:["sortButton"],icon:["sortIcon"]},Bn,t)},wpt=sr(Xp,{name:"MuiDataGrid",slot:"SortButton"})({transition:Rt.transition(["opacity"],{duration:Rt.transitions.duration.short,easing:Rt.transitions.easing.easeInOut})});function Spt(e,t,n,r){let o;const i={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=vpt,i.sortingOrder=r),o?R.jsx(o,B({fontSize:"small",className:n},i)):null}function Cpt(e){const{direction:t,index:n,sortingOrder:r,disabled:o,className:i}=e,a=He(e,bpt),s=wn(),l=Ot(),c=B({},e,{classes:l.classes}),u=xpt(c),f=Spt(l.slots,t,u.icon,r);if(!f)return null;const h=R.jsx(wpt,B({as:l.slots.baseIconButton,ownerState:c,"aria-label":s.current.getLocaleText("columnHeaderSortIconLabel"),title:s.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:o,className:ge(u.root,i)},l.slotProps?.baseIconButton,a,{children:f}));return R.jsxs(m.Fragment,{children:[n!=null&&R.jsx(l.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:h}),n==null&&h]})}function Ept(e){return R.jsx(Lue,{children:R.jsx(Cpt,B({},e,{tabIndex:-1}))})}const Tpt=m.memo(Ept),Ppt=e=>{const{classes:t}=e;return $e({icon:["filterIcon"]},Bn,t)};function Ipt(e){return e.counter?R.jsx(Opt,B({},e)):null}function Opt(e){const{counter:t,field:n,onClick:r}=e,o=wn(),i=Ot(),a=B({},e,{classes:i.classes}),s=Ppt(a),l=_n(),c=rt(o,Adt,l),u=_n(),f=m.useCallback(g=>{g.preventDefault(),g.stopPropagation();const{open:y,openedPanelValue:x}=bv(o);y&&x===Ns.filters?o.current.hideFilterPanel():o.current.showFilterPanel(void 0,u,l),r&&r(o.current.getColumnHeaderParams(n),g)},[o,n,r,u,l]);if(!t)return null;const h=R.jsx(i.slots.baseIconButton,B({id:l,onClick:f,"aria-label":o.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":c,"aria-controls":c?u:void 0},i.slotProps?.baseIconButton,{children:R.jsx(i.slots.columnFilteredIcon,{className:s.icon,fontSize:"small"})}));return R.jsx(i.slots.baseTooltip,B({title:o.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},i.slotProps?.baseTooltip,{children:R.jsxs(Lue,{children:[t>1&&R.jsx(i.slots.baseBadge,{badgeContent:t,color:"default",children:h}),t===1&&h]})}))}const co=Lt,mY=co(R.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"})),gY=co(R.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),yY=co(R.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),vY=co(R.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),Mpt=co(R.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),bY=co(R.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"})),Apt=co(R.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}));co(R.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}));co(R.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}));const Dpt=co(R.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"})),Rpt=co(R.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"})),kpt=co(R.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"})),Npt=co(R.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"})),_pt=co(R.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"})),Lpt=co(R.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),xY=co(R.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),wY=co(R.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})),$pt=co(R.jsx("path",{d:"M19 13H5v-2h14v2z"})),Fpt=co(R.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"})),SY=co(R.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),CY=co(R.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),jpt=co(R.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),Bpt=co(R.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"})),zpt=co(R.jsx("g",{children:R.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})})),EY=co(R.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}));co(R.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}));const Vpt=co(R.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"})),Hpt=co(R.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}));function $ue(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const JD=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",Upt=e=>!!e.key,Fue=e=>e==="Tab"||e==="Escape";function jue(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function Gpt(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const Wpt=["hideMenu","colDef","id","labelledby","className","children","open"],qpt=ue(Xp)(()=>({minWidth:248})),Kpt=rn(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:a,children:s,open:l}=t,c=He(t,Wpt),u=Ot(),f=m.useCallback(h=>{h.key==="Tab"&&h.preventDefault(),Fue(h.key)&&r(h)},[r]);return R.jsx(qpt,B({as:u.slots.baseMenuList,id:o,className:ge(re.menuList,a),"aria-labelledby":i,onKeyDown:f,autoFocus:l},c,{ref:n,children:s}))}),Ypt=["displayOrder"],Qpt=e=>{const t=oc(),n=Ot(),{defaultSlots:r,defaultSlotProps:o,slots:i={},slotProps:a={},hideMenu:s,colDef:l,addDividers:c=!0}=e,u=m.useMemo(()=>B({},r,i),[r,i]),f=m.useMemo(()=>{if(!a||Object.keys(a).length===0)return o;const y=B({},a);return Object.entries(o).forEach(([x,S])=>{y[x]=B({},S,a[x]||{})}),y},[o,a]),h=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),g=m.useMemo(()=>{const y=Object.keys(r);return Object.keys(i).filter(x=>!y.includes(x))},[i,r]);return m.useMemo(()=>{const S=Array.from(new Set([...h,...g])).filter(C=>u[C]!=null).sort((C,E)=>{const I=f[C],M=f[E],O=Number.isFinite(I?.displayOrder)?I.displayOrder:100,D=Number.isFinite(M?.displayOrder)?M.displayOrder:100;return O-D});return S.reduce((C,E,I)=>{let M={colDef:l,onClick:s};const O=f[E];if(O){const D=He(O,Ypt);M=B({},M,D)}return c&&I!==S.length-1?[...C,[u[E],M],[n.slots.baseDivider,{}]]:[...C,[u[E],M]]},[])},[c,l,h,s,u,f,g,n.slots.baseDivider])};function Xpt(e){const{colDef:t,onClick:n}=e,r=wn(),o=Ot(),s=Uo(r).filter(c=>c.disableColumnMenu!==!0).length===1,l=m.useCallback(c=>{s||(r.current.setColumnVisibility(t.field,!1),n(c))},[r,t.field,n,s]);return o.disableColumnSelector||t.hideable===!1?null:R.jsx(o.slots.baseMenuItem,{onClick:l,disabled:s,iconStart:R.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"}),children:r.current.getLocaleText("columnMenuHideColumn")})}function Jpt(e){const{onClick:t}=e,n=wn(),r=Ot(),o=m.useCallback(i=>{t(i),n.current.showPreferences(Ns.columns)},[n,t]);return r.disableColumnSelector?null:R.jsx(r.slots.baseMenuItem,{onClick:o,iconStart:R.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"}),children:n.current.getLocaleText("columnMenuManageColumns")})}function Zpt(e){return R.jsxs(m.Fragment,{children:[R.jsx(Xpt,B({},e)),R.jsx(Jpt,B({},e))]})}function eht(e){const{colDef:t,onClick:n}=e,r=wn(),o=Ot(),i=m.useCallback(a=>{n(a),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:R.jsx(o.slots.baseMenuItem,{onClick:i,iconStart:R.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"}),children:r.current.getLocaleText("columnMenuFilter")})}function tht(e){const{colDef:t,onClick:n}=e,r=wn(),o=rt(r,Mc),i=Ot(),a=m.useMemo(()=>t?o.find(f=>f.field===t.field)?.sort:null,[t,o]),s=t.sortingOrder??i.sortingOrder,l=m.useCallback(u=>{n(u);const f=u.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t.field,f===a?null:f)},[r,t,n,a]);if(i.disableColumnSorting||!t||!t.sortable||!s.some(u=>!!u))return null;const c=u=>{const f=r.current.getLocaleText(u);return typeof f=="function"?f(t):f};return R.jsxs(m.Fragment,{children:[s.includes("asc")&&a!=="asc"?R.jsx(i.slots.baseMenuItem,{onClick:l,"data-value":"asc",iconStart:R.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"}),children:c("columnMenuSortAsc")}):null,s.includes("desc")&&a!=="desc"?R.jsx(i.slots.baseMenuItem,{onClick:l,"data-value":"desc",iconStart:R.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"}),children:c("columnMenuSortDesc")}):null,s.includes(null)&&a!=null?R.jsx(i.slots.baseMenuItem,{onClick:l,iconStart:i.slots.columnMenuUnsortIcon?R.jsx(i.slots.columnMenuUnsortIcon,{fontSize:"small"}):R.jsx("span",{}),children:r.current.getLocaleText("columnMenuUnsort")}):null]})}const nht=["defaultSlots","defaultSlotProps","slots","slotProps"],rht={columnMenuSortItem:tht,columnMenuFilterItem:eht,columnMenuColumnsItem:Zpt},oht={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},iht=rn(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}=t,s=He(t,nht),l=Qpt(B({},s,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}));return R.jsx(Kpt,B({},s,{ref:n,children:l.map(([c,u],f)=>R.jsx(c,B({},u),f))}))}),aht=rn(function(t,n){return R.jsx(iht,B({},t,{ref:n,defaultSlots:rht,defaultSlotProps:oht}))}),sht=["className"],lht=e=>{const{classes:t}=e;return $e({root:["panelWrapper"]},Bn,t)},cht=ue("div",{name:"MuiDataGrid",slot:"PanelWrapper"})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Bue=rn(function(t,n){const{className:r}=t,o=He(t,sht),i=Ot(),a=lht(i);return R.jsx(cht,B({tabIndex:-1,className:ge(a.root,r),ownerState:i},o,{ref:n}))});function uht(e){const t=Ot();return R.jsx(Bue,B({},e,{children:R.jsx(t.slots.columnsManagement,B({},t.slotProps?.columnsManagement))}))}const dht=["children","className","classes","onClose"],fht=ct("MuiDataGrid",["panel","paper"]),pht=ue(Xp,{name:"MuiDataGrid",slot:"panel"})({zIndex:Rt.zIndex.panel}),hht=ue("div",{name:"MuiDataGrid",slot:"panelContent"})({backgroundColor:Rt.colors.background.overlay,borderRadius:Rt.radius.base,boxShadow:Rt.shadows.overlay,display:"flex",maxWidth:`calc(100vw - ${Rt.spacing(2)})`,overflow:"auto"}),mht=rn((e,t)=>{const{children:n,className:r,onClose:o}=e,i=He(e,dht),a=wn(),s=Ot(),l=fht,[c,u]=m.useState(!1),f=zce(),h=ft(()=>u(!0)),g=ft(()=>u(!1)),y=ft(()=>{o?.()}),x=ft(E=>{E.key==="Escape"&&o?.()}),[S,C]=m.useState(null);return m.useEffect(()=>{const E=a.current.rootElementRef?.current?.querySelector('[data-id="gridPanelAnchor"]');E&&C(E)},[a]),S?R.jsx(pht,B({as:s.slots.basePopper,ownerState:s,placement:"bottom-end",className:ge(l.panel,r,f),flip:!0,onDidShow:h,onDidHide:g,onClickAway:y,clickAwayMouseEvent:"onPointerUp",clickAwayTouchEvent:!1,focusTrap:!0},i,s.slotProps?.basePopper,{target:e.target??S,ref:t,children:R.jsx(hht,{className:l.paper,ownerState:s,onKeyDown:x,children:c&&n})})):null}),ght=["className"],yht=e=>{const{classes:t}=e;return $e({root:["panelContent"]},Bn,t)},vht=sr("div",{name:"MuiDataGrid",slot:"PanelContent"})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,padding:Rt.spacing(2.5,1.5,2,1),gap:Rt.spacing(2.5)});function bht(e){const{className:t}=e,n=He(e,ght),r=Ot(),o=yht(r);return R.jsx(vht,B({className:ge(o.root,t),ownerState:r},n))}const xht=["className"],wht=e=>{const{classes:t}=e;return $e({root:["panelFooter"]},Bn,t)},Sht=ue("div",{name:"MuiDataGrid",slot:"PanelFooter"})({padding:Rt.spacing(1),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${Rt.colors.border.base}`});function Cht(e){const{className:t}=e,n=He(e,xht),r=Ot(),o=wht(r);return R.jsx(Sht,B({className:ge(o.root,t),ownerState:r},n))}const Eht=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],Tht=["InputComponentProps"],Pht=e=>{const{classes:t}=e;return $e({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Bn,t)},Iht=ue("div",{name:"MuiDataGrid",slot:"FilterForm"})({display:"flex",gap:Rt.spacing(1.5)}),Oht=ue("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon"})({flexShrink:0,display:"flex",justifyContent:"center",alignItems:"center"}),Mht=ue("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput"})({minWidth:75,justifyContent:"end"}),Aht=ue("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput"})({width:150}),Dht=ue("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput"})({width:150}),Rht=ue("div",{name:"MuiDataGrid",slot:"FilterFormValueInput"})({width:190}),kht=e=>{switch(e){case Ds.And:return"filterPanelOperatorAnd";case Ds.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},h1=e=>e.headerName||e.field,TY=new Intl.Collator,PY=rn(function(t,n){const{item:r,hasMultipleFilters:o,deleteFilter:i,applyFilterChanges:a,showMultiFilterOperators:s,disableMultiFilterOperator:l,applyMultiFilterOperatorChanges:c,focusElementRef:u,logicOperators:f=[Ds.And,Ds.Or],columnsSort:h,filterColumns:g,deleteIconProps:y={},logicOperatorInputProps:x={},operatorInputProps:S={},columnInputProps:C={},valueInputProps:E={},readOnly:I}=t,M=He(t,Eht),O=wn(),D=rt(O,Jp),N=rt(O,$ce),$=rt(O,ji),L=_n(),A=_n(),F=_n(),z=_n(),H=Ot(),Q=Pht(H),G=m.useRef(null),V=m.useRef(null),Y=$.logicOperator??Ds.And,X=o&&f.length>0,U=(H.slotProps?.baseSelect||{}).native??!1,K=H.slotProps?.baseSelectOption||{},{InputComponentProps:ee}=E,le=He(E,Tht),ce=rt(O,vv),se=rt(O,Cue),{filteredColumns:fe,selectedField:we}=m.useMemo(()=>{let Re=r.field;const ke=D[r.field].filterable===!1?D[r.field]:null;if(ke)return{filteredColumns:[ke],selectedField:Re};if(ce)return{filteredColumns:N.filter(Ce=>se.get(Ce.field)!==void 0),selectedField:Re};if(g===void 0||typeof g!="function")return{filteredColumns:N,selectedField:Re};const Te=g({field:r.field,columns:N,currentFilters:$?.items||[]});return{filteredColumns:N.filter(Ce=>{const Ze=Te.includes(Ce.field);return Ce.field===r.field&&!Ze&&(Re=void 0),Ze}),selectedField:Re}},[r.field,D,ce,g,N,$?.items,se]),Oe=m.useMemo(()=>{switch(h){case"asc":return fe.sort((Re,ke)=>TY.compare(h1(Re),h1(ke)));case"desc":return fe.sort((Re,ke)=>-TY.compare(h1(Re),h1(ke)));default:return fe}},[fe,h]),he=r.field?O.current.getColumn(r.field):null,me=m.useMemo(()=>!r.operator||!he?null:he.filterOperators?.find(Re=>Re.value===r.operator),[r,he]),ye=m.useCallback(Re=>{const ke=Re.target.value,Te=O.current.getColumn(ke);if(Te.field===he.field)return;const Ce=Te.filterOperators.find(_e=>_e.value===r.operator)||Te.filterOperators[0];let Me=!Ce.InputComponent||Ce.InputComponent!==me?.InputComponent||Te.type!==he.type?void 0:r.value;if(Te.type==="singleSelect"&&Me!==void 0){const _e=Te,pe=yv(_e);Array.isArray(Me)?Me=Me.filter(je=>YD(je,pe,_e?.getOptionValue)!==void 0):YD(r.value,pe,_e?.getOptionValue)===void 0&&(Me=void 0)}a(B({},r,{field:ke,operator:Ce.value,value:Me}))},[O,a,r,he,me]),ae=m.useCallback(Re=>{const ke=Re.target.value,Te=he?.filterOperators.find(Ze=>Ze.value===ke),Ce=!Te?.InputComponent||Te?.InputComponent!==me?.InputComponent;a(B({},r,{operator:ke,value:Ce?void 0:r.value}))},[a,r,he,me]),Se=m.useCallback(Re=>{const ke=Re.target.value===Ds.And.toString()?Ds.And:Ds.Or;c(ke)},[c]),Ie=()=>{i(r)};return m.useImperativeHandle(u,()=>({focus:()=>{me?.InputComponent?G?.current?.focus():V.current.focus()}}),[me]),R.jsxs(Iht,B({className:Q.root,"data-id":r.id,ownerState:H},M,{ref:n,children:[R.jsx(Oht,B({},y,{className:ge(Q.deleteIcon,y.className),ownerState:H,children:R.jsx(H.slots.baseIconButton,B({"aria-label":O.current.getLocaleText("filterPanelDeleteIconLabel"),title:O.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Ie,size:"small",disabled:I},H.slotProps?.baseIconButton,{children:R.jsx(H.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),R.jsx(Mht,B({as:H.slots.baseSelect,sx:[X?{display:"flex"}:{display:"none"},s?{visibility:"visible"}:{visibility:"hidden"},x.sx],className:ge(Q.logicOperatorInput,x.className),ownerState:H},x,{size:"small",slotProps:{htmlInput:{"aria-label":O.current.getLocaleText("filterPanelLogicOperator")}},value:Y??"",onChange:Se,disabled:!!l||f.length===1,native:U},H.slotProps?.baseSelect,{children:f.map(Re=>m.createElement(H.slots.baseSelectOption,B({},K,{native:U,key:Re.toString(),value:Re.toString()}),O.current.getLocaleText(kht(Re))))})),R.jsx(Aht,B({as:H.slots.baseSelect},C,{className:ge(Q.columnInput,C.className),ownerState:H,size:"small",labelId:A,id:L,label:O.current.getLocaleText("filterPanelColumns"),value:we??"",onChange:ye,native:U,disabled:I},H.slotProps?.baseSelect,{children:Oe.map(Re=>m.createElement(H.slots.baseSelectOption,B({},K,{native:U,key:Re.field,value:Re.field}),h1(Re)))})),R.jsx(Dht,B({as:H.slots.baseSelect,size:"small"},S,{className:ge(Q.operatorInput,S.className),ownerState:H,labelId:z,label:O.current.getLocaleText("filterPanelOperator"),id:F,value:r.operator,onChange:ae,native:U,inputRef:V,disabled:I},H.slotProps?.baseSelect,{children:he?.filterOperators?.map(Re=>m.createElement(H.slots.baseSelectOption,B({},K,{native:U,key:Re.value,value:Re.value}),Re.label||O.current.getLocaleText(`filterOperator${Ae(Re.value)}`)))})),R.jsx(Rht,B({},le,{className:ge(Q.valueInput,le.className),ownerState:H,children:me?.InputComponent?R.jsx(me.InputComponent,B({apiRef:O,item:r,applyValue:a,focusElementRef:G,disabled:I,slotProps:{root:{size:"small"}}},me.InputComponentProps,ee),r.field):null}))]}))}),Nht=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],IY=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),_ht=rn(function(t,n){const r=wn(),o=Ot(),i=rt(r,ji),a=rt(r,$ce),s=rt(r,Hlt),l=m.useRef(null),c=m.useRef(null),{logicOperators:u=[Ds.And,Ds.Or],columnsSort:f,filterFormProps:h,getColumnForNewFilter:g,disableAddFilterButton:y=!1,disableRemoveAllButton:x=!1}=t,S=He(t,Nht),C=r.current.upsertFilterItem,E=m.useCallback(z=>{r.current.setFilterLogicOperator(z)},[r]),I=m.useCallback(()=>{let z;if(g&&typeof g=="function"){const H=g({currentFilters:i?.items||[],columns:a});if(H===null)return null;z=a.find(({field:Q})=>Q===H)}else z=a.find(H=>H.filterOperators?.length);return z?IY(z):null},[i?.items,a,g]),M=m.useCallback(()=>{if(g===void 0||typeof g!="function")return I();const z=i.items.length?i.items:[I()].filter(Boolean),H=g({currentFilters:z,columns:a});if(H===null)return null;const Q=a.find(({field:G})=>G===H);return Q?IY(Q):null},[i.items,a,g,I]),O=m.useMemo(()=>i.items.length?i.items:(c.current||(c.current=I()),c.current?[c.current]:[]),[i.items,I]),D=O.length>1,{readOnlyFilters:N,validFilters:$}=m.useMemo(()=>O.reduce((z,H)=>(s[H.field]?z.validFilters.push(H):z.readOnlyFilters.push(H),z),{readOnlyFilters:[],validFilters:[]}),[O,s]),L=m.useCallback(()=>{const z=M();z&&r.current.upsertFilterItems([...O,z])},[r,M,O]),A=m.useCallback(z=>{const H=$.length===1;r.current.deleteFilterItem(z),H&&r.current.hideFilterPanel()},[r,$.length]),F=m.useCallback(()=>$.length===1&&$[0].value===void 0?(r.current.deleteFilterItem($[0]),r.current.hideFilterPanel()):r.current.setFilterModel(B({},i,{items:N}),"removeAllFilterItems"),[r,N,i,$]);return m.useEffect(()=>{u.length>0&&i.logicOperator&&!u.includes(i.logicOperator)&&E(u[0])},[u,E,i.logicOperator]),m.useEffect(()=>{$.length>0&&l.current.focus()},[$.length]),R.jsxs(Bue,B({},S,{ref:n,children:[R.jsxs(bht,{children:[N.map((z,H)=>R.jsx(PY,B({item:z,applyFilterChanges:C,deleteFilter:A,hasMultipleFilters:D,showMultiFilterOperators:H>0,disableMultiFilterOperator:H!==1,applyMultiFilterOperatorChanges:E,focusElementRef:null,readOnly:!0,logicOperators:u,columnsSort:f},h),z.id==null?H:z.id)),$.map((z,H)=>R.jsx(PY,B({item:z,applyFilterChanges:C,deleteFilter:A,hasMultipleFilters:D,showMultiFilterOperators:N.length+H>0,disableMultiFilterOperator:N.length+H!==1,applyMultiFilterOperatorChanges:E,focusElementRef:H===$.length-1?l:null,logicOperators:u,columnsSort:f},h),z.id==null?H+N.length:z.id))]}),!o.disableMultipleColumnsFiltering&&!(y&&x)?R.jsxs(Cht,{children:[y?R.jsx("span",{}):R.jsx(o.slots.baseButton,B({onClick:L,startIcon:R.jsx(o.slots.filterPanelAddIcon,{})},o.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!x&&$.length>0?R.jsx(o.slots.baseButton,B({onClick:F,startIcon:R.jsx(o.slots.filterPanelRemoveAllIcon,{})},o.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),Lht=(e,t)=>{const n=new Set(Object.keys(e).filter(i=>e[i]===!1)),r=new Set(Object.keys(t).filter(i=>t[i]===!1));if(n.size!==r.size)return!1;let o=!0;return n.forEach(i=>{r.has(i)||(o=!1)}),o},$ht=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,Fht=["children"],jht=nu({from:{opacity:0},to:{opacity:1}}),Bht=nu({"from, to":{"--scrollable":'" "'}}),zht=sr("div",{name:"MuiDataGrid",slot:"ShadowScrollArea"})`
- flex: 1;
- display: flex;
- flex-direction: column;
- animation: ${Bht};
- animation-timeline: --scroll-timeline;
- animation-fill-mode: none;
- box-sizing: border-box;
- overflow: auto;
- scrollbar-width: thin;
- scroll-timeline: --scroll-timeline block;
-
- &::before,
- &::after {
- content: '';
- flex-shrink: 0;
- display: block;
- position: sticky;
- left: 0;
- width: 100%;
- height: 4px;
- animation: ${jht} linear both;
- animation-timeline: --scroll-timeline;
-
- // Custom property toggle trick:
- // - Detects if the element is scrollable
- // - https://css-tricks.com/the-css-custom-property-toggle-trick/
- --visibility-scrollable: var(--scrollable) visible;
- --visibility-not-scrollable: hidden;
- visibility: var(--visibility-scrollable, var(--visibility-not-scrollable));
- }
-
- &::before {
- top: 0;
- background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0, transparent 100%);
- animation-range: 0 4px;
- }
-
- &::after {
- bottom: 0;
- background: linear-gradient(to top, rgba(0, 0, 0, 0.05) 0, transparent 100%);
- animation-direction: reverse;
- animation-range: calc(100% - 4px) 100%;
- }
-`,Vht=rn(function(t,n){const{children:r}=t,o=He(t,Fht);return R.jsx(zht,B({},o,{ref:n,children:r}))}),Hht=e=>{const{classes:t}=e;return $e({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},Bn,t)},OY=new Intl.Collator;function Uht(e){const t=wn(),n=m.useRef(null),r=rt(t,Blt),o=rt(t,Hu),i=Ot(),[a,s]=m.useState(""),l=Hht(i),c=rt(t,Yu),u=rt(t,vv),f=rt(t,Cue),h=m.useMemo(()=>u?Array.from(f.values()):c,[u,f,c]),{sort:g,searchPredicate:y=$ht,autoFocusSearchField:x=!0,disableShowHideToggle:S=!1,disableResetButton:C=!1,toggleAllMode:E="all",getTogglableColumns:I,searchInputProps:M}=e,O=m.useMemo(()=>Lht(o,r),[o,r]),D=m.useMemo(()=>{switch(g){case"asc":return[...h].sort((X,te)=>OY.compare(X.headerName||X.field,te.headerName||te.field));case"desc":return[...h].sort((X,te)=>-OY.compare(X.headerName||X.field,te.headerName||te.field));default:return h}},[h,g]),N=X=>{const{name:te}=X.target;t.current.setColumnVisibility(te,o[te]===!1)},$=m.useMemo(()=>{const X=I?I(D):null,te=X?D.filter(({field:U})=>X.includes(U)):D;return a?te.filter(U=>y(U,a.toLowerCase())):te},[D,a,y,I]),L=m.useCallback(X=>{const te=Hu(t),U=B({},te),K=I?I(h):null;return(E==="filteredOnly"?$:h).forEach(ee=>{ee.hideable&&(K==null||K.includes(ee.field))&&(X?delete U[ee.field]:U[ee.field]=!1)}),t.current.setColumnVisibilityModel(U)},[t,h,I,E,$]),A=m.useCallback(X=>{s(X.target.value)},[]),F=m.useMemo(()=>$.filter(X=>X.hideable),[$]),z=m.useMemo(()=>F.every(X=>o[X.field]==null||o[X.field]!==!1),[o,F]),H=m.useMemo(()=>F.every(X=>o[X.field]===!1),[o,F]),Q=m.useRef(null);m.useEffect(()=>{x?n.current?.focus():Q.current&&typeof Q.current.focus=="function"&&Q.current.focus()},[x]);let G=!1;const V=X=>G===!1&&X.hideable!==!1?(G=!0,!0):!1,Y=m.useCallback(()=>{s(""),n.current?.focus()},[]);return R.jsxs(m.Fragment,{children:[R.jsx(qht,{className:l.header,ownerState:i,children:R.jsx(Kht,B({as:i.slots.baseTextField,ownerState:i,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,className:l.searchInput,value:a,onChange:A,size:"small",type:"search",slotProps:{input:{startAdornment:R.jsx(i.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:R.jsx(i.slots.baseIconButton,B({size:"small","aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),style:a?{visibility:"visible"}:{visibility:"hidden"},tabIndex:-1,onClick:Y,edge:"end"},i.slotProps?.baseIconButton,{children:R.jsx(i.slots.quickFilterClearIcon,{fontSize:"small"})}))},htmlInput:{"aria-label":t.current.getLocaleText("columnsManagementSearchTitle")}},autoComplete:"off",fullWidth:!0},i.slotProps?.baseTextField,M))}),R.jsx(Wht,{ownerState:i,children:R.jsxs(Ght,{className:l.root,ownerState:i,children:[$.map(X=>R.jsx(i.slots.baseCheckbox,B({className:l.row,disabled:X.hideable===!1||u,checked:o[X.field]!==!1,onClick:N,name:X.field,inputRef:V(X)?Q:void 0,label:X.headerName||X.field,density:"compact",fullWidth:!0},i.slotProps?.baseCheckbox),X.field)),$.length===0&&R.jsx(Qht,{ownerState:i,children:t.current.getLocaleText("columnsManagementNoColumns")})]})}),!S||!C?R.jsxs(Yht,{ownerState:i,className:l.footer,children:[S?R.jsx("span",{}):R.jsx(i.slots.baseCheckbox,B({disabled:F.length===0||u,checked:z,indeterminate:!z&&!H,onClick:()=>L(!z),name:t.current.getLocaleText("columnsManagementShowHideAllText"),label:t.current.getLocaleText("columnsManagementShowHideAllText"),density:"compact"},i.slotProps?.baseCheckbox)),C?null:R.jsx(i.slots.baseButton,B({onClick:()=>t.current.setColumnVisibilityModel(r),disabled:O||u},i.slotProps?.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}const Ght=ue("div",{name:"MuiDataGrid",slot:"ColumnsManagement"})({display:"flex",flexDirection:"column",padding:Rt.spacing(.5,1.5)}),Wht=ue(Vht,{name:"MuiDataGrid",slot:"ColumnsManagementScrollArea"})({maxHeight:300}),qht=ue("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader"})({padding:Rt.spacing(1.5,2),borderBottom:`1px solid ${Rt.colors.border.base}`}),Kht=ue(Xp,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput"})({[`& .${Da.input}::-webkit-search-decoration,
- & .${Da.input}::-webkit-search-cancel-button,
- & .${Da.input}::-webkit-search-results-button,
- & .${Da.input}::-webkit-search-results-decoration`]:{display:"none"}}),Yht=ue("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter"})({padding:Rt.spacing(1,1,1,1.5),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${Rt.colors.border.base}`}),Qht=ue("div",{name:"MuiDataGrid",slot:"ColumnsManagementEmptyText"})({padding:Rt.spacing(1,0),alignSelf:"center",font:Rt.typography.font.body}),Xht=rn(function(t,n){const{children:r,slotProps:o={}}=t,i=o.button||{},a=o.tooltip||{},s=wn(),l=Ot(),c=_n(),u=_n(),[f,h]=m.useState(!1),g=m.useRef(null),y=xn(n,g),x=E=>{h(I=>!I),i.onClick?.(E)},S=()=>h(!1),C=E=>{E.key==="Tab"&&E.preventDefault(),Fue(E.key)&&S()};return r==null?null:R.jsxs(m.Fragment,{children:[R.jsx(l.slots.baseTooltip,B({title:s.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},l.slotProps?.baseTooltip,a,{children:R.jsx(l.slots.baseButton,B({size:"small",startIcon:R.jsx(l.slots.exportIcon,{}),"aria-expanded":f,"aria-label":s.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":f?u:void 0,id:c},l.slotProps?.baseButton,i,{onClick:x,ref:y,children:s.current.getLocaleText("toolbarExport")}))})),R.jsx(g2,{open:f,target:g.current,onClose:S,position:"bottom-end",children:R.jsx(l.slots.baseMenuList,{id:u,className:re.menuList,"aria-labelledby":c,onKeyDown:C,autoFocusItem:f,children:m.Children.map(r,E=>m.isValidElement(E)?m.cloneElement(E,{hideMenu:S}):E)})})]})}),Jht=["hideMenu","options"],Zht=["hideMenu","options"],emt=["csvOptions","printOptions","excelOptions"];function tmt(e){const t=wn(),n=Ot(),{hideMenu:r,options:o}=e,i=He(e,Jht);return R.jsx(n.slots.baseMenuItem,B({onClick:()=>{t.current.exportDataAsCsv(o),r?.()}},i,{children:t.current.getLocaleText("toolbarExportCSV")}))}function nmt(e){const t=wn(),n=Ot(),{hideMenu:r,options:o}=e,i=He(e,Zht);return R.jsx(n.slots.baseMenuItem,B({onClick:()=>{t.current.exportDataAsPrint(o),r?.()}},i,{children:t.current.getLocaleText("toolbarExportPrint")}))}rn(function(t,n){const r=t,{csvOptions:o={},printOptions:i={},excelOptions:a}=r,s=He(r,emt),c=wn().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:a,csvOptions:o,printOptions:i}).sort((u,f)=>u.componentName>f.componentName?1:-1);return c.length===0?null:R.jsx(Xht,B({},s,{ref:n,children:c.map((u,f)=>m.cloneElement(u.component,{key:f}))}))});function Gc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(!Gc(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;for(let i=0;i<o.length;i+=1){const a=o[i];if(!Gc(a[1],t.get(a[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const i=n[o];if(!Gc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}const zue=m.createContext(void 0);function A5(){const e=m.useContext(zue);if(e===void 0)throw new Error("MUI X: Missing context. Quick Filter subcomponents must be placed within a <QuickFilter /> component.");return e}const rmt=["render","className","parser","formatter","debounceMs","defaultExpanded","expanded","onExpandedChange"],omt=e=>e.split(" ").filter(t=>t!==""),imt=e=>e.join(" ");function amt(e){const t=Ot(),{render:n,className:r,parser:o=omt,formatter:i=imt,debounceMs:a=t.filterDebounceMs,defaultExpanded:s,expanded:l,onExpandedChange:c}=e,u=He(e,rmt),f=wn(),h=m.useRef(null),g=m.useRef(null),y=rt(f,Yce),[x,S]=m.useState(i(y??[])),[C,E]=m.useState(s??x.length>0),I=l??C,M=m.useMemo(()=>({value:x,expanded:I}),[x,I]),O=typeof r=="function"?r(M):r,D=m.useRef(null),N=_n(),$=m.useCallback(Y=>{c&&c(Y),l===void 0&&E(Y)},[c,l]),L=m.useRef(y);m.useEffect(()=>{Gc(L.current,y)||(L.current=y,S(Y=>Gc(o(Y),y)?Y:i(y??[])))},[y,i,o]);const A=m.useRef(!0),F=m.useRef(I);m.useEffect(()=>{if(A.current){A.current=!1;return}F.current!==I&&(I?requestAnimationFrame(()=>{h.current?.focus({preventScroll:!0})}):g.current?.focus({preventScroll:!0}),F.current=I)},[I]);const z=m.useMemo(()=>Sv(Y=>{const X=o(Y);L.current=X,f.current.setQuickFilterValues(X)},a),[f,a,o]);m.useEffect(()=>z.clear,[z]);const H=m.useCallback(Y=>{const X=Y.target.value;S(X),z(X)},[z]),Q=m.useCallback(()=>{S(""),f.current.setQuickFilterValues([]),h.current?.focus()},[f,h]),G=m.useMemo(()=>({controlRef:h,triggerRef:g,state:M,controlId:N,clearValue:Q,onValueChange:H,onExpandedChange:$}),[N,M,H,Q,$]);qn(()=>{D.current&&g.current&&D.current.style.setProperty("--trigger-width",`${g.current?.offsetWidth}px`)},[]);const V=Cf("div",n,B({className:O},u,{ref:D}),M);return R.jsx(zue.Provider,{value:G,children:V})}const smt=["render","className","slotProps","onKeyDown","onChange"],lmt=rn(function(t,n){const{render:r,className:o,slotProps:i,onKeyDown:a,onChange:s}=t,l=He(t,smt),c=Ot(),{state:u,controlId:f,controlRef:h,onValueChange:g,onExpandedChange:y,clearValue:x}=A5(),S=typeof o=="function"?o(u):o,C=xn(h,n),E=D=>{D.key==="Escape"&&(u.value===""?y(!1):x()),a?.(D)},I=D=>{u.value===""&&y(!1),i?.htmlInput?.onBlur?.(D)},M=D=>{u.expanded||y(!0),g(D),s?.(D)},O=Cf(c.slots.baseTextField,r,B({},c.slotProps?.baseTextField,{slotProps:B({htmlInput:B({role:"searchbox",id:f,tabIndex:u.expanded?void 0:-1},i?.htmlInput,{onBlur:I})},i),value:u.value,className:S},l,{onChange:M,onKeyDown:E,ref:C}),u);return R.jsx(m.Fragment,{children:O})}),cmt=["render","className","onClick"],umt=rn(function(t,n){const{render:r,className:o,onClick:i}=t,a=He(t,cmt),s=Ot(),{state:l,clearValue:c}=A5(),u=typeof o=="function"?o(l):o,f=g=>{c(),i?.(g)},h=Cf(s.slots.baseIconButton,r,B({},s.slotProps?.baseIconButton,{className:u,tabIndex:-1},a,{onClick:f,ref:n}),l);return R.jsx(m.Fragment,{children:h})}),dmt=["render","className","onClick"],fmt=rn(function(t,n){const{render:r,className:o,onClick:i}=t,a=He(t,dmt),s=Ot(),{state:l,controlId:c,onExpandedChange:u,triggerRef:f}=A5(),h=typeof o=="function"?o(l):o,g=xn(f,n),y=S=>{u(!l.expanded),i?.(S)},x=Cf(s.slots.baseButton,r,B({},s.slotProps?.baseButton,{className:h,"aria-controls":c,"aria-expanded":l.expanded},a,{onClick:y,ref:g}),l);return R.jsx(m.Fragment,{children:x})}),pmt=["quickFilterParser","quickFilterFormatter","debounceMs","className","slotProps"],hmt=["ref","slotProps"],mmt=e=>{const{classes:t}=e;return $e({root:["toolbarQuickFilter"],trigger:["toolbarQuickFilterTrigger"],control:["toolbarQuickFilterControl"]},Bn,t)},gmt=sr("div",{name:"MuiDataGrid",slot:"ToolbarQuickFilter"})({display:"grid",alignItems:"center"}),ymt=sr(SA,{name:"MuiDataGrid",slot:"ToolbarQuickFilterTrigger"})(({ownerState:e})=>({gridArea:"1 / 1",width:"min-content",height:"min-content",zIndex:1,opacity:e.expanded?0:1,pointerEvents:e.expanded?"none":"auto",transition:Rt.transition(["opacity"])})),vmt=sr(e=>{throw new Error("Failed assertion: should not be rendered")},{name:"MuiDataGrid",slot:"ToolbarQuickFilterControl"})(({ownerState:e})=>({gridArea:"1 / 1",overflowX:"clip",width:e.expanded?260:"var(--trigger-width)",opacity:e.expanded?1:0,transition:Rt.transition(["width","opacity"])}));function bmt(e){const t=wn(),n=Ot(),r={classes:n.classes,expanded:!1},o=mmt(r),{quickFilterParser:i,quickFilterFormatter:a,debounceMs:s,className:l,slotProps:c}=e,u=He(e,pmt);return R.jsx(amt,{parser:i,formatter:a,debounceMs:s,render:(f,h)=>{const g=B({},r,{expanded:h.expanded});return R.jsxs(gmt,B({},f,{className:ge(o.root,l),children:[R.jsx(fmt,{render:y=>R.jsx(n.slots.baseTooltip,{title:t.current.getLocaleText("toolbarQuickFilterLabel"),enterDelay:0,children:R.jsx(ymt,B({className:o.trigger},y,{ownerState:g,color:"default","aria-disabled":h.expanded,children:R.jsx(n.slots.quickFilterIcon,{fontSize:"small"})}))})}),R.jsx(lmt,{render:y=>{let{ref:x,slotProps:S}=y,C=He(y,hmt);return R.jsx(vmt,B({as:n.slots.baseTextField,className:o.control,ownerState:g,inputRef:x,"aria-label":t.current.getLocaleText("toolbarQuickFilterLabel"),placeholder:t.current.getLocaleText("toolbarQuickFilterPlaceholder"),size:"small",slotProps:B({input:B({startAdornment:R.jsx(n.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:C.value?R.jsx(umt,{render:R.jsx(n.slots.baseIconButton,{size:"small",edge:"end","aria-label":t.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),children:R.jsx(n.slots.quickFilterClearIcon,{fontSize:"small"})})}):null},S?.input)},S)},n.slotProps?.baseTextField,C,c?.root,u))}})]}))}})}const xmt=["render","className","onClick","onPointerUp"],wmt=rn(function(t,n){const{render:r,className:o,onClick:i,onPointerUp:a}=t,s=He(t,xmt),l=Ot(),c=_n(),u=_n(),f=wn(),h=rt(f,bv),g=h.open&&h.openedPanelValue===Ns.filters,x=rt(f,b5).length,S={open:g,filterCount:x},C=typeof o=="function"?o(S):o,{filterPanelTriggerRef:E}=O5(),I=xn(n,E),M=N=>{g?f.current.hidePreferences():f.current.showPreferences(Ns.filters,u,c),i?.(N)},O=N=>{g&&N.stopPropagation(),a?.(N)},D=Cf(l.slots.baseButton,r,B({},l.slotProps?.baseButton,{id:c,"aria-haspopup":"true","aria-expanded":g?"true":void 0,"aria-controls":g?u:void 0,onClick:M,onPointerUp:O,className:C},s,{ref:I}),S);return R.jsx(m.Fragment,{children:D})}),Smt=["render","className","onClick","onPointerUp"],Cmt=rn(function(t,n){const{render:r,className:o,onClick:i,onPointerUp:a}=t,s=He(t,Smt),l=Ot(),c=_n(),u=_n(),f=wn(),h=rt(f,bv),g=h.open&&h.openedPanelValue===Ns.columns,y={open:g},x=typeof o=="function"?o(y):o,{columnsPanelTriggerRef:S}=O5(),C=xn(n,S),E=O=>{g?f.current.hidePreferences():f.current.showPreferences(Ns.columns,u,c),i?.(O)},I=O=>{g&&O.stopPropagation(),a?.(O)},M=Cf(l.slots.baseButton,r,B({},l.slotProps?.baseButton,{id:c,"aria-haspopup":"true","aria-expanded":g?"true":void 0,"aria-controls":g?u:void 0,className:x},s,{onPointerUp:I,onClick:E,ref:C}),y);return R.jsx(m.Fragment,{children:M})}),Emt=["render","options","onClick"],Tmt=rn(function(t,n){const{render:r,options:o,onClick:i}=t,a=He(t,Emt),s=Ot(),l=wn(),c=f=>{l.current.exportDataAsCsv(o),i?.(f)},u=Cf(s.slots.baseButton,r,B({},s.slotProps?.baseButton,{onClick:c},a,{ref:n}));return R.jsx(m.Fragment,{children:u})}),Pmt=["render","options","onClick"],Imt=rn(function(t,n){const{render:r,options:o,onClick:i}=t,a=He(t,Pmt),s=Ot(),l=wn(),c=f=>{l.current.exportDataAsPrint(o),i?.(f)},u=Cf(s.slots.baseButton,r,B({},s.slotProps?.baseButton,{onClick:c},a,{ref:n}));return R.jsx(m.Fragment,{children:u})}),Omt=["className"],Mmt=["className"],Vue=e=>{const{classes:t}=e;return $e({divider:["toolbarDivider"],label:["toolbarLabel"]},Bn,t)},Amt=sr(Xp,{name:"MuiDataGrid",slot:"ToolbarDivider"})({height:"50%",margin:Rt.spacing(0,.5)}),Dmt=sr("span",{name:"MuiDataGrid",slot:"ToolbarLabel"})({flex:1,font:Rt.typography.font.large,fontWeight:Rt.typography.fontWeight.medium,margin:Rt.spacing(0,.5),textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"});function MY(e){const t=He(e,Omt),n=Ot(),r=Vue(n);return R.jsx(Amt,B({as:n.slots.baseDivider,orientation:"vertical",className:r.divider},t))}function Rmt(e){const t=He(e,Mmt),n=Ot(),r=Vue(n);return R.jsx(Dmt,B({className:r.label},t))}function kmt(e){const{showQuickFilter:t=!0,quickFilterProps:n,csvOptions:r,printOptions:o,additionalItems:i,additionalExportMenuItems:a}=e,s=wn(),l=Ot(),[c,u]=m.useState(!1),f=m.useRef(null),h=_n(),g=_n(),y=!r?.disableToolbarButton||!o?.disableToolbarButton||a,x=()=>u(!1);return R.jsxs(_ft,{children:[l.label&&R.jsx(Rmt,{children:l.label}),!l.disableColumnSelector&&R.jsx(l.slots.baseTooltip,{title:s.current.getLocaleText("toolbarColumns"),children:R.jsx(Cmt,{render:R.jsx(SA,{}),children:R.jsx(l.slots.columnSelectorIcon,{fontSize:"small"})})}),!l.disableColumnFilter&&R.jsx(l.slots.baseTooltip,{title:s.current.getLocaleText("toolbarFilters"),children:R.jsx(wmt,{render:(S,C)=>R.jsx(SA,B({},S,{color:C.filterCount>0?"primary":"default",children:R.jsx(l.slots.baseBadge,{badgeContent:C.filterCount,color:"primary",variant:"dot",children:R.jsx(l.slots.openFilterButtonIcon,{fontSize:"small"})})}))})}),i,y&&(!l.disableColumnFilter||!l.disableColumnSelector)&&R.jsx(MY,{}),y&&R.jsxs(m.Fragment,{children:[R.jsx(l.slots.baseTooltip,{title:s.current.getLocaleText("toolbarExport"),children:R.jsx(SA,{ref:f,id:g,"aria-controls":h,"aria-haspopup":"true","aria-expanded":c?"true":void 0,onClick:()=>u(!c),children:R.jsx(l.slots.exportIcon,{fontSize:"small"})})}),R.jsx(g2,{target:f.current,open:c,onClose:x,position:"bottom-end",children:R.jsxs(l.slots.baseMenuList,B({id:h,"aria-labelledby":g,autoFocusItem:!0},l.slotProps?.baseMenuList,{children:[!o?.disableToolbarButton&&R.jsx(Imt,{render:R.jsx(l.slots.baseMenuItem,B({},l.slotProps?.baseMenuItem)),options:o,onClick:x,children:s.current.getLocaleText("toolbarExportPrint")}),!r?.disableToolbarButton&&R.jsx(Tmt,{render:R.jsx(l.slots.baseMenuItem,B({},l.slotProps?.baseMenuItem)),options:r,onClick:x,children:s.current.getLocaleText("toolbarExportCSV")}),a?.(x)]}))})]}),t&&R.jsxs(m.Fragment,{children:[R.jsx(MY,{}),R.jsx(bmt,B({},n))]})]})}const Nmt=["className","selectedRowCount"],_mt=e=>{const{classes:t}=e;return $e({root:["selectedRowCount"]},Bn,t)},Lmt=sr("div",{name:"MuiDataGrid",slot:"SelectedRowCount"})({alignItems:"center",display:"flex",margin:Rt.spacing(0,2),visibility:"hidden",width:0,height:0,[Rt.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}),$mt=rn(function(t,n){const{className:r,selectedRowCount:o}=t,i=He(t,Nmt),a=wn(),s=Ot(),l=_mt(s),c=a.current.getLocaleText("footerRowSelected")(o);return R.jsx(Lmt,B({className:ge(l.root,r),ownerState:s},i,{ref:n,children:c}))}),Fmt=rn(function(t,n){const r=wn(),o=Ot(),i=rt(r,xlt),a=rt(r,S2),s=rt(r,v5),l=!o.hideFooterSelectedRowCount&&a>0?R.jsx($mt,{selectedRowCount:a}):R.jsx("div",{}),c=!o.hideFooterRowCount&&!o.pagination?R.jsx(o.slots.footerRowCount,B({},o.slotProps?.footerRowCount,{rowCount:i,visibleRowCount:s})):null,u=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&R.jsx(o.slots.pagination,{});return R.jsxs(Pft,B({},t,{ref:n,children:[l,c,u]}))}),Z1=(e,t,n,r,o,i)=>{let a;switch(e){case Wn.LEFT:a=r[n];break;case Wn.RIGHT:a=o-r[n]-t+i;break;default:a=void 0;break}return a},ZD=(e,t,n,r,o)=>{const i=t===n-1;return e===Wn.LEFT&&i?!0:r?e===Wn.LEFT?!0:e===Wn.RIGHT?!i:!i||o:!1},eR=(e,t)=>e===Wn.RIGHT&&t===0,m1={root:re.scrollbarFiller,header:re["scrollbarFiller--header"],borderTop:re["scrollbarFiller--borderTop"],borderBottom:re["scrollbarFiller--borderBottom"],pinnedRight:re["scrollbarFiller--pinnedRight"]};function D5({header:e,borderTop:t=!0,borderBottom:n,pinnedRight:r}){return R.jsx("div",{role:"presentation",className:ge(m1.root,e&&m1.header,t&&m1.borderTop,n&&m1.borderBottom,r&&m1.pinnedRight)})}const jmt=["skeletonRowsCount","visibleColumns","showFirstRowBorder"],Bmt=sr("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay"})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),zmt=e=>{const{classes:t}=e;return $e({root:["skeletonLoadingOverlay"]},Bn,t)},AY=e=>parseInt(e.getAttribute("data-colindex"),10),Vmt=rn(function(t,n){const r=Ot(),{slots:o}=r,i=eo(),a=zmt({classes:r.classes}),s=m.useRef(null),l=xn(s,n),c=wn(),u=rt(c,Wr),f=rt(c,h2),h=rt(c,Ym),g=m.useMemo(()=>h.filter($=>$<=f).length,[f,h]),{skeletonRowsCount:y,visibleColumns:x,showFirstRowBorder:S}=t,C=He(t,jmt),E=rt(c,Uo),I=m.useMemo(()=>E.slice(0,g),[E,g]),M=rt(c,Vw),O=m.useCallback($=>{if(M.left.findIndex(L=>L.field===$)!==-1)return Wn.LEFT;if(M.right.findIndex(L=>L.field===$)!==-1)return Wn.RIGHT},[M.left,M.right]),D=m.useMemo(()=>{const $=[];for(let L=0;L<y;L+=1){const A=[];for(let F=0;F<I.length;F+=1){const z=I[F],H=O(z.field),Q=H===Wn.LEFT,G=H===Wn.RIGHT,V=Iue(H,i),Y=V?M[V].length:I.length-M.left.length-M.right.length,X=V?M[V].findIndex(ae=>ae.field===z.field):F-M.left.length,te=u.hasScrollY?u.scrollbarSize:0,U=I2({},i,H,Z1(H,z.computedWidth,F,h,u.columnsTotalWidth,te)),K=u.columnsTotalWidth<u.viewportOuterSize.width,ee=ZD(H,X,Y,r.showCellVerticalBorder,K),le=eR(H,X),ce=F===I.length-1,se=G&&X===0,fe=se&&K,we=ce&&!se&&K,Oe=u.viewportOuterSize.width-u.columnsTotalWidth,he=Math.max(0,Oe),me=R.jsx(o.skeletonCell,{width:he,empty:!0},`skeleton-filler-column-${L}`),ye=ce&&te!==0;fe&&A.push(me),A.push(R.jsx(o.skeletonCell,{field:z.field,type:z.type,align:z.align,width:"var(--width)",height:u.rowHeight,"data-colindex":F,empty:x&&!x.has(z.field),className:ge(Q&&re["cell--pinnedLeft"],G&&re["cell--pinnedRight"],ee&&re["cell--withRightBorder"],le&&re["cell--withLeftBorder"]),style:B({"--width":`${z.computedWidth}px`},U)},`skeleton-column-${L}-${z.field}`)),we&&A.push(me),ye&&A.push(R.jsx(D5,{pinnedRight:M.right.length>0},`skeleton-scrollbar-filler-${L}`))}$.push(R.jsx("div",{className:ge(re.row,re.rowSkeleton,L===0&&!S&&re["row--firstVisible"]),children:A},`skeleton-row-${L}`))}return $},[y,I,O,i,M,u.hasScrollY,u.scrollbarSize,u.columnsTotalWidth,u.viewportOuterSize.width,u.rowHeight,h,r.showCellVerticalBorder,o,x,S]);return jt(c,"columnResize",$=>{const{colDef:L,width:A}=$,F=s.current?.querySelectorAll(`[data-field="${Zp(L.field)}"]`);if(!F)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const z=I.findIndex(X=>X.field===L.field),H=O(L.field),Q=H===Wn.LEFT,G=H===Wn.RIGHT,V=getComputedStyle(F[0]).getPropertyValue("--width"),Y=parseInt(V,10)-A;F&&F.forEach(X=>{X.style.setProperty("--width",`${A}px`)}),Q&&s.current?.querySelectorAll(`.${re["cell--pinnedLeft"]}`)?.forEach(te=>{AY(te)>z&&(te.style.left=`${parseInt(getComputedStyle(te).left,10)-Y}px`)}),G&&s.current?.querySelectorAll(`.${re["cell--pinnedRight"]}`)?.forEach(te=>{AY(te)<z&&(te.style.right=`${parseInt(getComputedStyle(te).right,10)+Y}px`)})}),R.jsx(Bmt,B({className:a.root},C,{ref:l,children:D}))}),Hmt=rn(function(t,n){const r=wn(),o=rt(r,Wr),i=o?.viewportInnerSize.height??0,a=Math.ceil(i/o.rowHeight);return R.jsx(Vmt,B({},t,{skeletonRowsCount:a,ref:n}))}),Umt=["variant","noRowsVariant","style"],Gmt={"circular-progress":{component:e=>e.slots.baseCircularProgress,style:{}},"linear-progress":{component:e=>e.slots.baseLinearProgress,style:{display:"block"}},skeleton:{component:()=>Hmt,style:{display:"block"}}},Wmt=rn(function(t,n){const{variant:r="linear-progress",noRowsVariant:o="skeleton",style:i}=t,a=He(t,Umt),s=wn(),l=Ot(),c=rt(s,vP),u=Gmt[c===0?o:r],f=u.component(l);return R.jsx(O2,B({style:B({},u.style,i)},a,{ref:n,children:R.jsx(f,{})}))}),qmt=rn(function(t,n){const o=wn().current.getLocaleText("noRowsLabel");return R.jsx(O2,B({},t,{ref:n,children:o}))}),Kmt=rn(function(t,n){const r=Ot(),o=wn(),i=rt(o,ef),a=()=>{o.current.showPreferences(Ns.columns)},s=!r.disableColumnSelector&&i.length>0;return R.jsxs(O2,B({},t,{ref:n,children:[o.current.getLocaleText("noColumnsOverlayLabel"),s&&R.jsx(r.slots.baseButton,B({size:"small"},r.slotProps?.baseButton,{onClick:a,children:o.current.getLocaleText("noColumnsOverlayManageColumns")}))]}))}),Ymt=ue(Xp)({maxHeight:"calc(100% + 1px)",flexGrow:1});function Qmt(){const e=wn(),t=Ot(),n=rt(e,sa),r=rt(e,tx),o=rt(e,lue),{paginationMode:i,loading:a}=t,s=r===-1&&i==="server"&&a,l=m.useMemo(()=>Math.max(0,o-1),[o]),c=m.useMemo(()=>r===-1||n.page<=l?n.page:l,[l,n.page,r]),u=m.useCallback(y=>{e.current.setPageSize(y)},[e]),f=m.useCallback((y,x)=>{e.current.setPage(x)},[e]),g=(y=>{for(let x=0;x<t.pageSizeOptions.length;x+=1){const S=t.pageSizeOptions[x];if(typeof S=="number"){if(S===y)return!0}else if(S.value===y)return!0}return!1})(n.pageSize)?t.pageSizeOptions:[];return R.jsx(Ymt,{as:t.slots.basePagination,count:r,page:c,rowsPerPageOptions:g,rowsPerPage:n.pageSize,onPageChange:f,onRowsPerPageChange:u,disabled:s})}const Xmt=["className","rowCount","visibleRowCount"],Jmt=e=>{const{classes:t}=e;return $e({root:["rowCount"]},Bn,t)},Zmt=sr("div",{name:"MuiDataGrid",slot:"RowCount"})({alignItems:"center",display:"flex",margin:Rt.spacing(0,2)}),egt=rn(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,a=He(t,Xmt),s=wn(),l=Ot(),c=Jmt(l);if(o===0)return null;const u=i<o?s.current.getLocaleText("footerTotalVisibleRows")(i,o):o.toLocaleString();return R.jsxs(Zmt,B({className:ge(c.root,r),ownerState:l},a,{ref:n,children:[s.current.getLocaleText("footerTotalRows")," ",u]}))});function tgt(e,t){return $e(t,Bn,e)}const ngt=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetLeft","columnsTotalWidth","firstColumnIndex","lastColumnIndex","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","scrollbarWidth","gridHasFiller","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],rgt=Ft(zi,(e,t)=>t?!!x2(e):!1),ogt=rn(function(t,n){const{selected:r,rowId:o,row:i,index:a,style:s,rowHeight:l,className:c,visibleColumns:u,pinnedColumns:f,offsetLeft:h,columnsTotalWidth:g,firstColumnIndex:y,lastColumnIndex:x,focusedColumnIndex:S,isFirstVisible:C,isLastVisible:E,isNotVisible:I,showBottomBorder:M,scrollbarWidth:O,gridHasFiller:D,onClick:N,onDoubleClick:$,onMouseEnter:L,onMouseLeave:A,onMouseOut:F,onMouseOver:z}=t,H=He(t,ngt),Q=oc(),G=m2(),V=m.useRef(null),Y=Ot(),X=T5(Q),te=rt(Q,Mc),U=rt(Q,jw),K=rt(Q,Ym),ee=Y.rowReordering,le=rt(Q,rgt,ee),ce=xn(V,n),se=Yd(Q,o),fe=rt(Q,Tue,{rowId:o,editMode:Y.editMode}),we=Y.editMode===df.Row,Oe=S!==void 0,he=Oe&&S>=f.left.length&&S<y,me=Oe&&S<u.length-f.right.length&&S>=x,ye=tgt(Y.classes,{root:["row",r&&"selected",we&&"row--editable",fe&&"row--editing",C&&"row--firstVisible",E&&"row--lastVisible",M&&"row--borderBottom",l==="auto"&&"row--dynamicHeight"]}),ae=G.hooks.useGridRowAriaAttributes();m.useLayoutEffect(()=>{if(X.range){const it=Q.current.getRowIndexRelativeToVisibleRows(o);it!==void 0&&Q.current.unstable_setLastMeasuredRowIndex(it)}if(V.current&&l==="auto")return Q.current.observeRowHeight(V.current,o)},[Q,X.range,l,o]);const Se=m.useCallback((it,tt)=>vt=>{IP(vt)||Q.current.getRow(o)&&(Q.current.publishEvent(it,Q.current.getRowParams(o),vt),tt&&tt(vt))},[Q,o]),Ie=m.useCallback(it=>{const vt=XD(it.target,re.cell)?.getAttribute("data-field");vt&&(vt===Gw.field||vt===b2||vt==="__reorder__"||Q.current.getCellMode(o,vt)===Pr.Edit||Q.current.getColumn(vt)?.type===y2)||Se("rowClick",N)(it)},[Q,N,Se,o]),{slots:Re,slotProps:ke,disableColumnReorder:Te}=Y,Ce=rt(Q,()=>B({},Q.current.getRowHeightEntry(o)),void 0,l5),Ze=m.useMemo(()=>{if(I)return{opacity:0,width:0,height:0};const it=B({},s,{maxHeight:l==="auto"?"none":l,minHeight:l,"--height":typeof l=="number"?`${l}px`:l});if(Ce.spacingTop){const tt=Y.rowSpacingType==="border"?"borderTopWidth":"marginTop";it[tt]=Ce.spacingTop}if(Ce.spacingBottom){const tt=Y.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let vt=it[tt];typeof vt!="number"&&(vt=parseInt(vt||"0",10)),vt+=Ce.spacingBottom,it[tt]=vt}return it},[I,l,s,Ce,Y.rowSpacingType]),Me=Q.current.unstable_applyPipeProcessors("rowClassName",[],o),_e=ae(se,a);if(typeof Y.getRowClassName=="function"){const it=a-(X.range?.firstRowIndex||0),tt=B({},Q.current.getRowParams(o),{isFirstVisible:it===0,isLastVisible:it===X.rows.length-1,indexRelativeToCurrentPage:it});Me.push(Y.getRowClassName(tt))}const pe=(it,tt,vt,Je,Mt=Wn.NONE)=>{const Gt=Q.current.unstable_getCellColSpanInfo(o,vt);if(Gt?.spannedByColSpan)return null;const ht=Gt?.cellProps.width??it.computedWidth,Qt=Gt?.cellProps.colSpan??1,en=Z1(Mt,it.computedWidth,vt,K,g,O);if(se.type==="skeletonRow")return R.jsx(Re.skeletonCell,{type:it.type,width:ht,height:l,field:it.field,align:it.align},it.field);const qt=it.field==="__reorder__",zn=!(Te||it.disableReorder),lr=le&&!te.length&&U<=1,to=!(zn||qt&&lr),xr=Mt===Wn.VIRTUAL,Yn=eR(Mt,tt),Io=ZD(Mt,tt,Je,Y.showCellVerticalBorder,D);return R.jsx(Re.cell,B({column:it,width:ht,rowId:o,align:it.align||"left",colIndex:vt,colSpan:Qt,disableDragEvents:to,isNotVisible:xr,pinnedOffset:en,pinnedPosition:Mt,showLeftBorder:Yn,showRightBorder:Io,row:i,rowNode:se},ke?.cell),it.field)},je=f.left.map((it,tt)=>pe(it,tt,tt,f.left.length,Wn.LEFT)),Ke=f.right.map((it,tt)=>{const vt=u.length-f.right.length+tt;return pe(it,tt,vt,f.right.length,Wn.RIGHT)}),et=u.length-f.left.length-f.right.length,nt=[];he&&nt.push(pe(u[S],S-f.left.length,S,et,Wn.VIRTUAL));for(let it=y;it<x;it+=1){const tt=u[it],vt=it-f.left.length;tt&&nt.push(pe(tt,vt,it,et))}me&&nt.push(pe(u[S],S-f.left.length,S,et,Wn.VIRTUAL));const ot=i?{onClick:Ie,onDoubleClick:Se("rowDoubleClick",$),onMouseEnter:Se("rowMouseEnter",L),onMouseLeave:Se("rowMouseLeave",A),onMouseOut:Se("rowMouseOut",F),onMouseOver:Se("rowMouseOver",z)}:null;return R.jsxs("div",B({"data-id":o,"data-rowindex":a,role:"row",className:ge(...Me,ye.root,c),style:Ze},_e,ot,H,{ref:ce,children:[je,R.jsx("div",{role:"presentation",className:re.cellOffsetLeft,style:{width:h}}),nt,R.jsx("div",{role:"presentation",className:ge(re.cell,re.cellEmpty)}),Ke,O!==0&&R.jsx(D5,{pinnedRight:f.right.length>0,borderTop:!C})]}))}),igt=Qp(ogt),agt=()=>{const e=oc(),t=Ot(),n=rt(e,Uo),r=rt(e,y5),o=rt(e,CP),i=rt(e,Oce),a=t["aria-label"],s=t["aria-labelledby"];return{role:"grid","aria-label":!a&&!s&&t.label?t.label:a,"aria-labelledby":s,"aria-colcount":n.length,"aria-rowcount":o+1+i+r,"aria-multiselectable":x5(t)}},sgt=()=>{const e=oc(),t=rt(e,CP);return m.useCallback((n,r)=>{const o={},i=r+t+2;return o["aria-rowindex"]=i,e.current.isRowSelectable(n.id)&&(o["aria-selected"]=e.current.isRowSelected(n.id)),o},[e,t])};function lgt({privateApiRef:e,configuration:t,props:n,children:r}){const o=m.useRef(e.current.getPublicApi());return R.jsx(Bce.Provider,{value:t,children:R.jsx(yce.Provider,{value:n,children:R.jsx(gue.Provider,{value:e,children:R.jsx(gce.Provider,{value:o,children:R.jsx(gft,{children:R.jsx(tct,{children:r})})})})})})}const cgt=e=>{const t=m.useRef(null),n=m.useRef(null),r=m.useRef(null),o=m.useRef(null),i=m.useRef(null),a=m.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r,virtualScrollbarVerticalRef:o,virtualScrollbarHorizontalRef:i,columnHeadersContainerRef:a})},ugt=e=>{const t=eo();e.current.state.isRtl===void 0&&(e.current.state.isRtl=t);const n=m.useRef(!0);m.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>B({},r,{isRtl:t}))},[e,t])},dgt=Nlt()&&window.localStorage.getItem("DEBUG")!=null,_1=()=>{},fgt={debug:_1,info:_1,warn:_1,error:_1},DY=["debug","info","warn","error"];function RY(e,t,n=console){const r=DY.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return DY.reduce((i,a,s)=>(s>=r?i[a]=(...l)=>{const[c,...u]=l;n[a](`MUI X: ${e} - ${c}`,...u)}:i[a]=_1,i),{})}const pgt=(e,t)=>{const n=m.useCallback(r=>dgt?RY(r,"debug",t.logger):t.logLevel?RY(r,t.logLevel.toString(),t.logger):fgt,[t.logLevel,t.logger]);Nn(e,{getLogger:n},"private")},hgt=(e,t)=>{const n=m.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})};function KE(e){"@babel/helpers - typeof";return KE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},KE(e)}function mgt(e,t){if(KE(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(KE(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function YE(e){var t=mgt(e,"string");return KE(t)=="symbol"?t:t+""}const ggt=e=>{const t=m.useRef({}),n=m.useRef(!1),r=m.useCallback(u=>{n.current||!u||(n.current=!0,Object.values(u.appliers).forEach(f=>{f()}),n.current=!1)},[]),o=m.useCallback((u,f,h)=>{t.current[u]||(t.current[u]={processors:new Map,processorsAsArray:[],appliers:{}});const g=t.current[u];return g.processors.get(f)!==h&&(g.processors.set(f,h),g.processorsAsArray=Array.from(t.current[u].processors.values()),r(g)),()=>{t.current[u].processors.delete(f),t.current[u].processorsAsArray=Array.from(t.current[u].processors.values())}},[r]),i=m.useCallback((u,f,h)=>(t.current[u]||(t.current[u]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[u].appliers[f]=h,()=>{const g=t.current[u].appliers,y=He(g,[f].map(YE));t.current[u].appliers=y}),[]),a=m.useCallback(u=>{r(t.current[u])},[r]),s=m.useCallback((...u)=>{const[f,h,g]=u;if(!t.current[f])return h;const y=t.current[f].processorsAsArray;let x=h;for(let S=0;S<y.length;S+=1)x=y[S](x,g);return x},[]),l={registerPipeProcessor:o,registerPipeApplier:i,requestPipeProcessorsApplication:a},c={unstable_applyPipeProcessors:s};Nn(e,l,"private"),Nn(e,c,"public")},No=(e,t,n,r=!0)=>{const o=m.useRef(null),i=m.useRef(`mui-${Math.round(Math.random()*1e9)}`),a=m.useCallback(()=>{o.current=e.current.registerPipeProcessor(t,i.current,n)},[e,n,t]);EP(()=>{r&&a()});const s=m.useRef(!0);m.useEffect(()=>(s.current?s.current=!1:r&&a(),()=>{o.current&&(o.current(),o.current=null)}),[a,r])},R5=(e,t,n)=>{const r=m.useRef(null),o=m.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=m.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);EP(()=>{i()});const a=m.useRef(!0);m.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])};let cm=function(e){return e.DataSource="dataSource",e.RowTree="rowTree",e}({});const QE=(e,t,n,r)=>{const o=m.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);EP(()=>{o()});const i=m.useRef(!0);m.useEffect(()=>{i.current?i.current=!1:o()},[o])},xv="none",kY={dataSourceRowsUpdate:cm.DataSource,rowTreeCreation:cm.RowTree,filtering:cm.RowTree,sorting:cm.RowTree,visibleRowsLookupCreation:cm.RowTree},ygt=e=>{const t=m.useRef(new Map),n=m.useRef({}),r=m.useCallback((l,c,u)=>{const f=()=>{const y=n.current[c],x=He(y,[l].map(YE));n.current[c]=x};n.current[c]||(n.current[c]={});const h=n.current[c],g=h[l];return h[l]=u,!g||g===u||l===e.current.getActiveStrategy(kY[c])&&e.current.publishEvent("activeStrategyProcessorChange",c),f},[e]),o=m.useCallback((l,c)=>{const u=e.current.getActiveStrategy(kY[l]);if(u==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const f=n.current[l];if(!f||!f[u])throw new Error(`No processor found for processor "${l}" on strategy "${u}"`);const h=f[u];return h(c)},[e]),i=m.useCallback(l=>Array.from(t.current.entries()).find(([,f])=>f.group!==l?!1:f.isAvailable())?.[0]??xv,[]),a=m.useCallback((l,c,u)=>{t.current.set(c,{group:l,isAvailable:u}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Nn(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:a},"private")},vgt=e=>{const t=m.useRef({}),n=m.useCallback(s=>{t.current[s.stateId]=s},[]),r=m.useCallback((s,l)=>{let c;if(klt(s)?c=s(e.current.state):c=s,e.current.state===c)return!1;const u={current:{state:c}};let f=!1;const h=[];if(Object.keys(t.current).forEach(g=>{const y=t.current[g],x=y.stateSelector(e),S=y.stateSelector(u);S!==x&&(h.push({stateId:y.stateId,hasPropChanged:S!==y.propModel}),y.propModel!==void 0&&S!==y.propModel&&(f=!0))}),h.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${h[0].stateId}, therefore, you're not allowed to update ${h.map(g=>g.stateId).join(", ")} in the same transaction.`);if(f||(e.current.state=c,e.current.publishEvent("stateChange",c),e.current.store.update(c)),h.length===1){const{stateId:g,hasPropChanged:y}=h[0],x=t.current[g],S=x.stateSelector(u);x.propOnChange&&y&&x.propOnChange(S,{reason:l,api:e.current}),f||e.current.publishEvent(x.changeEvent,S,{reason:l})}return!f},[e]),o=m.useCallback((s,l,c)=>e.current.setState(u=>B({},u,{[s]:l(u[s])}),c),[e]),i={setState:r},a={updateControlState:o,registerControlState:n};Nn(e,i,"public"),Nn(e,a,"private")},bgt=(e,t)=>B({},e,{props:{getRowId:t.getRowId}}),xgt=(e,t)=>{m.useEffect(()=>{e.current.setState(n=>B({},n,{props:{getRowId:t.getRowId}}))},[e,t.getRowId])},wgt=(e,t)=>{cgt(e),xgt(e,t),ugt(e),pgt(e,t),vgt(e),ggt(e),ygt(e),hgt(e,t),e.current.register("private",{rootProps:t})},Fi=(e,t,n)=>{const r=m.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function zB(e,t){if(e==null)return"";const n=typeof e=="string"?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const r=n.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@"," ","\r"].includes(r[0])?`"'${r}"`:[t.delimiter,`
-`,"\r",'"'].some(o=>n.includes(o))?`"${r}"`:r}return n}const Hue=(e,t)=>{const{csvOptions:n,ignoreValueFormatter:r}=t;let o;if(r){const i=e.colDef.type;i==="number"?o=String(e.value):i==="date"||i==="dateTime"?o=e.value?.toISOString():typeof e.value?.toString=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return zB(o,n)};class VB{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const Sgt=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const i=new VB({csvOptions:r});return t.forEach(a=>{const s=n(e,a.field);i.addValue(Hue(s,{ignoreValueFormatter:o,csvOptions:r}))}),i.getRowString()};function Cgt(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:i}=e,a=n.reduce((f,h)=>`${f}${Sgt({id:h,columns:t,getCellParams:i.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r
-`,"").trim();if(!r.includeHeaders)return a;const s=t.filter(f=>f.field!==Gw.field),l=[];if(r.includeColumnGroupsHeaders){const f=i.current.getAllGroupDetails();let h=0;const g=s.reduce((y,x)=>{const S=i.current.getColumnGroupPath(x.field);return y[x.field]=S,h=Math.max(h,S.length),y},{});for(let y=0;y<h;y+=1){const x=new VB({csvOptions:r,sanitizeCellValue:zB});l.push(x),s.forEach(S=>{const C=(g[S.field]||[])[y],E=f[C];x.addValue(E?E.headerName||E.groupId:"")})}}const c=new VB({csvOptions:r,sanitizeCellValue:zB});return s.forEach(f=>{c.addValue(f.headerName||f.field)}),l.push(c),`${`${l.map(f=>f.getRowString()).join(`\r
-`)}\r
-`}${a}`.trim()}function NY(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function Egt(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{NY(e)}):NY(e)}function Tgt(e){return!!(window.getSelection()?.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const Pgt=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n?.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=m.useCallback(a=>{if(!Gpt(a)||Tgt(a.target))return;let s="";if(S2(e)>0)s=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const c=il(e);if(c){const u=e.current.getCellParams(c.id,c.field);s=Hue(u,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}s=e.current.unstable_applyPipeProcessors("clipboardCopy",s),s&&(Egt(s),e.current.publishEvent("clipboardCopy",s))},[e,r,o]);yue(e,()=>e.current.rootElementRef.current,"keydown",i),jr(e,"clipboardCopy",t.onClipboardCopy)},Igt=e=>B({},e,{columnMenu:{open:!1}}),Ogt=e=>{const t=Ji(e,"useGridColumnMenu"),n=m.useCallback(a=>{const s=wA(e),l={open:!0,field:a};(l.open!==s.open||l.field!==s.field)&&(e.current.setState(u=>u.columnMenu.open&&u.columnMenu.field===a?u:(t.debug("Opening Column Menu"),B({},u,{columnMenu:{open:!0,field:a}}))),e.current.hidePreferences())},[e,t]),r=m.useCallback(()=>{const a=wA(e);if(a.field){const c=Jp(e),u=Hu(e),f=ef(e);let h=a.field;if(c[h]||(h=f[0]),u[h]===!1){const g=f.filter(x=>x===h?!0:u[x]!==!1),y=g.indexOf(h);h=g[y+1]||g[y-1]}e.current.setColumnHeaderFocus(h)}const s={open:!1,field:void 0};(s.open!==a.open||s.field!==a.field)&&e.current.setState(c=>(t.debug("Hiding Column Menu"),B({},c,{columnMenu:s})))},[e,t]),o=m.useCallback(a=>{t.debug("Toggle Column Menu");const s=wA(e);!s.open||s.field!==a?n(a):r()},[e,t,n,r]);Nn(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),jt(e,"columnResizeStart",r),jt(e,"virtualScrollerWheel",e.current.hideColumnMenu),jt(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},Mgt=(e,t,n)=>{const r=G0({apiRef:n,columnsToUpsert:t.columns,initialState:t.initialState?.columns,columnVisibilityModel:t.columnVisibilityModel??t.initialState?.columns?.columnVisibilityModel??{},keepOnlyColumnsToUpsert:!0});return B({},e,{columns:r,pinnedColumns:e.pinnedColumns??qD})};function Agt(e,t){const n=Ji(e,"useGridColumns"),r=m.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:Hu,changeEvent:"columnVisibilityModelChange"});const o=m.useCallback(A=>{n.debug("Updating columns state."),e.current.setState(_Y(A)),e.current.publishEvent("columnsChange",A.orderedFields)},[n,e]),i=m.useCallback(A=>Jp(e)[A],[e]),a=m.useCallback(()=>Yu(e),[e]),s=m.useCallback(()=>Uo(e),[e]),l=m.useCallback((A,F=!0)=>(F?Uo(e):Yu(e)).findIndex(H=>H.field===A),[e]),c=m.useCallback(A=>{const F=l(A);return Ym(e)[F]},[e,l]),u=m.useCallback(A=>{Hu(e)!==A&&(e.current.setState(z=>B({},z,{columns:G0({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:A,keepOnlyColumnsToUpsert:!1})})),e.current.updateRenderContext?.())},[e]),f=m.useCallback(A=>{if(vv(e)){e.current.updateNonPivotColumns(A);return}const F=G0({apiRef:e,columnsToUpsert:A,initialState:void 0,keepOnlyColumnsToUpsert:!1,updateInitialVisibilityModel:!0});o(F)},[e,o]),h=m.useCallback((A,F)=>{const z=Hu(e),H=z[A]??!0;if(F!==H){const Q=B({},z,{[A]:F});e.current.setColumnVisibilityModel(Q)}},[e]),g=m.useCallback(A=>ef(e).findIndex(z=>z===A),[e]),y=m.useCallback((A,F)=>{const z=ef(e),H=g(A);if(H===F)return;n.debug(`Moving column ${A} to index ${F}`);const Q=[...z],G=Q.splice(H,1)[0];Q.splice(F,0,G),o(B({},Ku(e),{orderedFields:Q}));const V={column:e.current.getColumn(A),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(A),oldIndex:H};e.current.publishEvent("columnIndexChange",V)},[e,n,o,g]),x=m.useCallback((A,F)=>{n.debug(`Updating column ${A} width to ${F}`);const z=Ku(e),H=z.lookup[A],Q=B({},H,{width:F,hasBeenResized:!0});o(FB(B({},z,{lookup:B({},z.lookup,{[A]:Q})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(A),colDef:Q,width:F})},[e,n,o]),S={getColumn:i,getAllColumns:a,getColumnIndex:l,getColumnPosition:c,getVisibleColumns:s,getColumnIndexRelativeToVisibleColumns:g,updateColumns:f,setColumnVisibilityModel:u,setColumnVisibility:h,setColumnWidth:x},C={setColumnIndex:y};Nn(e,S,"public"),Nn(e,C,t.signature===qu.DataGrid?"private":"public");const E=m.useCallback((A,F)=>{const z={},H=Hu(e);(!F.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys(t.initialState?.columns?.columnVisibilityModel??{}).length>0||Object.keys(H).length>0)&&(z.columnVisibilityModel=H),z.orderedFields=ef(e);const G=Yu(e),V={};return G.forEach(Y=>{if(Y.hasBeenResized){const X={};mue.forEach(te=>{let U=Y[te];U===1/0&&(U=-1),X[te]=U}),V[Y.field]=X}}),Object.keys(V).length>0&&(z.dimensions=V),B({},A,{columns:z})},[e,t.columnVisibilityModel,t.initialState?.columns]),I=m.useCallback((A,F)=>{const z=F.stateToRestore.columns?.columnVisibilityModel,H=F.stateToRestore.columns;if(z==null&&H==null)return A;const Q=G0({apiRef:e,columnsToUpsert:[],initialState:H,columnVisibilityModel:z,keepOnlyColumnsToUpsert:!1});return e.current.setState(_Y(Q)),H!=null&&e.current.publishEvent("columnsChange",Q.orderedFields),A},[e]),M=m.useCallback((A,F)=>{if(F===Ns.columns){const z=t.slots.columnsPanel;return R.jsx(z,B({},t.slotProps?.columnsPanel))}return A},[t.slots.columnsPanel,t.slotProps?.columnsPanel]),O=m.useCallback(A=>{const F=vv(e);return t.disableColumnSelector||F?A:[...A,"columnMenuColumnsItem"]},[t.disableColumnSelector,e]);No(e,"columnMenu",O),No(e,"exportState",E),No(e,"restoreState",I),No(e,"preferencePanel",M);const D=m.useRef(null);jt(e,"viewportInnerSizeChange",A=>{if(D.current!==A.width){if(D.current=A.width,!Uo(e).some(z=>z.flex&&z.flex>0))return;o(FB(Ku(e),e.current.getRootDimensions()))}});const $=m.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const A=G0({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});o(A)},[e,n,o]);R5(e,"hydrateColumns",$);const L=m.useRef(!0);m.useEffect(()=>{if(L.current){L.current=!1;return}if(n.info(`GridColumns have changed, new length ${t.columns.length}`),r.current===t.columns)return;const A=G0({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0,updateInitialVisibilityModel:!0});r.current=t.columns,o(A)},[n,e,o,t.columns]),m.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function _Y(e){return t=>B({},t,{columns:e})}const Dgt=(e,t)=>B({},e,{density:t.initialState?.density??t.density??"standard"}),Rgt=(e,t)=>{const n=Ji(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:ex,changeEvent:"densityChange"});const o={setDensity:ft(s=>{ex(e)!==s&&(n.debug(`Set grid density to ${s}`),e.current.setState(c=>B({},c,{density:s})))})};Nn(e,o,"public");const i=m.useCallback((s,l)=>{const c=ex(e);return!l.exportOnlyDirtyModels||t.density!=null||t.initialState?.density!=null?B({},s,{density:c}):s},[e,t.density,t.initialState?.density]),a=m.useCallback((s,l)=>{const c=l.stateToRestore?.density?l.stateToRestore.density:ex(e);return e.current.setState(u=>B({},u,{density:c})),s},[e]);No(e,"exportState",i),No(e,"restoreState",a),m.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function kgt(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI X: exportAs not supported.")}const Uue=({apiRef:e,options:t})=>{const n=Yu(e);return t.fields?t.fields.reduce((o,i)=>{const a=n.find(s=>s.field===i);return a&&o.push(a),o},[]):(t.allColumns?n:Uo(e)).filter(o=>!o.disableExport)},Gue=({apiRef:e})=>{const t=Xce(e),n=ka(e),r=S2(e),o=t.filter(l=>n[l].type!=="footer"),i=Bw(e),a=i?.top?.map(l=>l.id)||[],s=i?.bottom?.map(l=>l.id)||[];if(o.unshift(...a),o.push(...s),r>0){const l=eue(e);return o.filter(c=>l.has(c))}return o},Ngt=(e,t)=>{const n=Ji(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,o=(typeof r=="object"?r?.csvExport:r)||!1,i=m.useCallback((c={})=>{n.debug("Get data as CSV");const u=Uue({apiRef:e,options:c}),h=(c.getRowsToExport??Gue)({apiRef:e});return Cgt({columns:u,rowIds:h,csvOptions:{delimiter:c.delimiter||",",shouldAppendQuotes:c.shouldAppendQuotes??!0,includeHeaders:c.includeHeaders??!0,includeColumnGroupsHeaders:c.includeColumnGroupsHeaders??!0,escapeFormulas:c.escapeFormulas??!0},ignoreValueFormatter:o,apiRef:e})},[n,e,o]),a=m.useCallback(c=>{n.debug("Export data as CSV");const u=i(c),f=new Blob([c?.utf8WithBom?new Uint8Array([239,187,191]):"",u],{type:"text/csv"});kgt(f,"csv",c?.fileName)},[n,i]);Nn(e,{getDataAsCsv:i,exportDataAsCsv:a},"public");const l=m.useCallback((c,u)=>u.csvOptions?.disableToolbarButton?c:[...c,{component:R.jsx(tmt,{options:u.csvOptions}),componentName:"csvExport"}],[]);No(e,"exportMenu",l)};function _gt(e,t){const n=[],r=t.querySelectorAll("style, link[rel='stylesheet']");for(let o=0;o<r.length;o+=1){const i=r[o];if(i.tagName==="STYLE"){const a=e.createElement(i.tagName),s=i.sheet;if(s){let l="";for(let c=0;c<s.cssRules.length;c+=1)typeof s.cssRules[c].cssText=="string"&&(l+=`${s.cssRules[c].cssText}\r
-`);a.appendChild(e.createTextNode(l)),e.head.appendChild(a)}}else if(i.getAttribute("href")){const a=e.createElement(i.tagName);for(let s=0;s<i.attributes.length;s+=1){const l=i.attributes[s];l&&a.setAttribute(l.nodeName,l.nodeValue||"")}n.push(new Promise(s=>{a.addEventListener("load",()=>s())})),e.head.appendChild(a)}}return n}const CA=(e,t,n)=>{let r=e.paginationModel;const o=e.rowCount,i=n?.pageSize??r.pageSize,a=n?.page??r.page,s=rue(o,i,a);n&&(n?.page!==r.page||n?.pageSize!==r.pageSize)&&(r=n);const l=i===-1?0:Hct(r.page,s);return l!==r.page&&(r=B({},r,{page:l})),iue(r.pageSize,t),r},Lgt=(e,t)=>{const n=Ji(e,"useGridPaginationModel"),r=rt(e,Fw),o=m.useRef(ji(e)),i=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:sa,changeEvent:"paginationModelChange"});const a=m.useCallback(E=>{const I=sa(e);E!==I.page&&(n.debug(`Setting page to ${E}`),e.current.setPaginationModel({page:E,pageSize:I.pageSize}))},[e,n]),s=m.useCallback(E=>{const I=sa(e);E!==I.pageSize&&(n.debug(`Setting page size to ${E}`),e.current.setPaginationModel({pageSize:E,page:I.page}))},[e,n]),l=m.useCallback(E=>{const I=sa(e);E!==I&&(n.debug("Setting 'paginationModel' to",E),e.current.setState(M=>B({},M,{pagination:B({},M.pagination,{paginationModel:CA(M.pagination,t.signature,E)})}),"setPaginationModel"))},[e,n,t.signature]);Nn(e,{setPage:a,setPageSize:s,setPaginationModel:l},"public");const u=m.useCallback((E,I)=>{const M=sa(e);return!I.exportOnlyDirtyModels||t.paginationModel!=null||t.initialState?.pagination?.paginationModel!=null||M.page!==0&&M.pageSize!==Vct(t.autoPageSize)?B({},E,{pagination:B({},E.pagination,{paginationModel:M})}):E},[e,t.paginationModel,t.initialState?.pagination?.paginationModel,t.autoPageSize]),f=m.useCallback((E,I)=>{const M=I.stateToRestore.pagination?.paginationModel?B({},oue(t.autoPageSize),I.stateToRestore.pagination?.paginationModel):sa(e);return e.current.setState(O=>B({},O,{pagination:B({},O.pagination,{paginationModel:CA(O.pagination,t.signature,M)})}),"stateRestorePreProcessing"),E},[e,t.autoPageSize,t.signature]);No(e,"exportState",u),No(e,"restoreState",f);const h=()=>{const E=sa(e);e.current.virtualScrollerRef?.current&&e.current.scrollToIndexes({rowIndex:E.page*E.pageSize})},g=m.useCallback(()=>{if(!t.autoPageSize)return;const E=e.current.getRootDimensions(),I=Math.floor(E.viewportInnerSize.height/i);e.current.setPageSize(I)},[e,t.autoPageSize,i]),y=m.useCallback(E=>{if(E==null)return;const I=sa(e);if(I.page===0)return;const M=lue(e);I.page>M-1&&e.current.setPage(Math.max(0,M-1))},[e]),x=m.useCallback(()=>{sa(e).page!==0&&e.current.setPage(0),e.current.getScrollPosition().top!==0&&e.current.scroll({top:0})},[e]),S=m.useCallback(E=>{const I=B({},E,{items:b5(e)});Gc(I,o.current)||(o.current=I,x())},[e,x]);jt(e,"viewportInnerSizeChange",g),jt(e,"paginationModelChange",h),jt(e,"rowCountChange",y),jt(e,"sortModelChange",x),jt(e,"filterModelChange",S);const C=m.useRef(!0);m.useEffect(()=>{if(C.current){C.current=!1;return}t.pagination&&e.current.setState(E=>B({},E,{pagination:B({},E.pagination,{paginationModel:CA(E.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.signature,t.pagination]),m.useEffect(()=>{e.current.setState(E=>{const I=t.pagination===!0;return E.pagination.paginationMode===t.paginationMode||E.pagination.enabled===I?E:B({},E,{pagination:B({},E.pagination,{paginationMode:t.paginationMode,enabled:t.pagination===!0})})})},[e,t.paginationMode,t.pagination]),m.useEffect(g,[g])};function $gt(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function Fgt(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const jgt=(e,t)=>{const n=e.current.rootElementRef.current!==null,r=Ji(e,"useGridPrintExport"),o=m.useRef(null),i=m.useRef(null),a=m.useRef({}),s=m.useRef([]),l=m.useRef(null);m.useEffect(()=>{o.current=yo(e.current.rootElementRef.current)},[e,n]);const c=m.useCallback((S,C,E)=>new Promise(I=>{const M=Uue({apiRef:e,options:{fields:S,allColumns:C}}).map(N=>N.field),O=Yu(e),D={};O.forEach(N=>{D[N.field]=M.includes(N.field)}),E&&(D[Gw.field]=!0),e.current.setColumnVisibilityModel(D),I()}),[e]),u=m.useCallback(S=>{const E=S({apiRef:e}).reduce((I,M)=>{const O=e.current.getRow(M);return O[qx]||I.push(O),I},[]);e.current.setRows(E)},[e]),f=m.useCallback((S,C)=>{const E=B({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},C),I=S.contentDocument;if(!I)return;const M=TP(e),O=e.current.rootElementRef.current,D=O.cloneNode(!0),N=D.querySelector(`.${re.main}`);N.style.overflow="visible",D.style.contain="size";let $=O.querySelector(`.${re.toolbarContainer}`)?.offsetHeight||0,L=O.querySelector(`.${re.footerContainer}`)?.offsetHeight||0;const A=D.querySelector(`.${re.footerContainer}`);E.hideToolbar&&(D.querySelector(`.${re.toolbarContainer}`)?.remove(),$=0),E.hideFooter&&A&&(A.remove(),L=0);const F=M.currentPageTotalHeight+E5(e,t)+$+L;D.style.height=`${F}px`,D.style.boxSizing="content-box",!E.hideFooter&&A&&(A.style.position="absolute",A.style.width="100%",A.style.top=`${F-L}px`);const z=document.createElement("div");z.appendChild(D),I.body.style.marginTop="0px",I.body.innerHTML=z.innerHTML;const H=typeof E.pageStyle=="function"?E.pageStyle():E.pageStyle;if(typeof H=="string"){const G=I.createElement("style");G.appendChild(I.createTextNode(H)),I.head.appendChild(G)}E.bodyClassName&&I.body.classList.add(...E.bodyClassName.split(" "));let Q=[];if(E.copyStyles){const G=O.getRootNode(),V=G.constructor.name==="ShadowRoot"?G:o.current;Q=_gt(I,V)}Promise.all(Q).then(()=>{S.contentWindow.print()})},[e,o,t]),h=m.useCallback(S=>{o.current.body.removeChild(S),e.current.restoreState(i.current||{}),i.current?.columns?.columnVisibilityModel||e.current.setColumnVisibilityModel(a.current),e.current.setState(C=>B({},C,{virtualization:l.current})),e.current.setRows(s.current),i.current=null,a.current={},s.current=[]},[e]),y={exportDataAsPrint:m.useCallback(async S=>{if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(i.current=e.current.exportState(),a.current=Hu(e),s.current=e.current.getSortedRows().filter(E=>!E[qx]),t.pagination){const I={page:0,pageSize:y5(e)};e.current.setState(M=>B({},M,{pagination:B({},M.pagination,{paginationModel:CA(M.pagination,"DataGridPro",I)})}))}l.current=e.current.state.virtualization,e.current.setState(E=>B({},E,{virtualization:B({},E.virtualization,{enabled:!1,enabledForColumns:!1})})),await c(S?.fields,S?.allColumns,S?.includeCheckboxes),u(S?.getRowsToExport??Gue),await $gt();const C=Fgt(S?.fileName);C.onload=()=>{f(C,S),C.contentWindow.matchMedia("print").addEventListener("change",I=>{I.matches===!1&&h(C)})},o.current.body.appendChild(C)},[t,r,e,f,h,c,u])};Nn(e,y,"public");const x=m.useCallback((S,C)=>C.printOptions?.disableToolbarButton?S:[...S,{component:R.jsx(nmt,{options:C.printOptions}),componentName:"printExport"}],[]);No(e,"exportMenu",x)},Bgt=(e,t,n)=>{const r=t.filterModel??t.initialState?.filter?.filterModel??WE();return B({},e,{filter:B({filterModel:p5(r,t.disableMultipleColumnsFiltering,n)},_ce),visibleRowsLookup:{}})},zgt=e=>e.filteredRowsLookup;function LY(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function Vgt(){return Ute(Object.values)}const Hgt=(e,t)=>{const n=Ji(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:ji,changeEvent:"filterModelChange"});const r=m.useCallback(()=>{e.current.setState($=>{const L=ji(e),A=e.current.getFilterState(L),F=B({},$,{filter:B({},$.filter,A)}),z=LY(e,F);return B({},F,{visibleRowsLookup:z})}),e.current.publishEvent("filteredRowsSet")},[e]),o=m.useCallback(($,L)=>L==null||L.filterable===!1||t.disableColumnFilter?$:[...$,"columnMenuFilterItem"],[t.disableColumnFilter]),i=m.useCallback($=>{const L=ji(e),A=[...L.items],F=A.findIndex(z=>z.id===$.id);F===-1?A.push($):A[F]=$,e.current.setFilterModel(B({},L,{items:A}),"upsertFilterItem")},[e]),a=m.useCallback($=>{const L=ji(e),A=[...L.items];$.forEach(F=>{const z=A.findIndex(H=>H.id===F.id);z===-1?A.push(F):A[z]=F}),e.current.setFilterModel(B({},L,{items:A}),"upsertFilterItems")},[e]),s=m.useCallback($=>{const L=ji(e),A=L.items.filter(F=>F.id!==$.id);A.length!==L.items.length&&e.current.setFilterModel(B({},L,{items:A}),"deleteFilterItem")},[e]),l=m.useCallback(($,L,A)=>{if(n.debug("Displaying filter panel"),$){const F=ji(e),z=F.items.filter(V=>{if(V.value!==void 0)return!(Array.isArray(V.value)&&V.value.length===0);const X=e.current.getColumn(V.field).filterOperators?.find(U=>U.value===V.operator);return!(typeof X?.requiresFilterValue>"u"?!0:X?.requiresFilterValue)});let H;const Q=z.find(V=>V.field===$),G=e.current.getColumn($);Q?H=z:t.disableMultipleColumnsFiltering?H=[$B({field:$,operator:G.filterOperators[0].value},e)]:H=[...z,$B({field:$,operator:G.filterOperators[0].value},e)],e.current.setFilterModel(B({},F,{items:H}))}e.current.showPreferences(Ns.filters,L,A)},[e,n,t.disableMultipleColumnsFiltering]),c=m.useCallback(()=>{n.debug("Hiding filter panel"),e.current.hidePreferences()},[e,n]),u=m.useCallback($=>{const L=ji(e);L.logicOperator!==$&&e.current.setFilterModel(B({},L,{logicOperator:$}),"changeLogicOperator")},[e]),f=m.useCallback($=>{const L=ji(e);Gc(L.quickFilterValues,$)||e.current.setFilterModel(B({},L,{quickFilterValues:[...$]}))},[e]),h=m.useCallback(($,L)=>{ji(e)!==$&&(n.debug("Setting filter model"),e.current.updateControlState("filter",qK($,t.disableMultipleColumnsFiltering,e),L),e.current.unstable_applyFilters())},[e,n,t.disableMultipleColumnsFiltering]),g=m.useCallback($=>{const L=p5($,t.disableMultipleColumnsFiltering,e),A=t.filterMode==="client"?Klt(L,e,t.disableEval):null,F=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:A,filterModel:L??WE()});return B({},F,{filterModel:L})},[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),y={setFilterLogicOperator:u,unstable_applyFilters:r,deleteFilterItem:s,upsertFilterItem:i,upsertFilterItems:a,setFilterModel:h,showFilterPanel:l,hideFilterPanel:c,setQuickFilterValues:f,ignoreDiacritics:t.ignoreDiacritics,getFilterState:g};Nn(e,y,"public");const x=m.useCallback(($,L)=>{const A=ji(e);return A.items.forEach(z=>{delete z.fromInput}),!L.exportOnlyDirtyModels||t.filterModel!=null||t.initialState?.filter?.filterModel!=null||!Gc(A,WE())?B({},$,{filter:{filterModel:A}}):$},[e,t.filterModel,t.initialState?.filter?.filterModel]),S=m.useCallback(($,L)=>{const A=L.stateToRestore.filter?.filterModel;return A==null?$:(e.current.updateControlState("filter",qK(A,t.disableMultipleColumnsFiltering,e),"restoreState"),B({},$,{callbacks:[...$.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),C=m.useCallback(($,L)=>{if(L===Ns.filters){const A=t.slots.filterPanel;return R.jsx(A,B({},t.slotProps?.filterPanel))}return $},[t.slots.filterPanel,t.slotProps?.filterPanel]),{getRowId:E}=t,I=nd(Vgt),M=m.useCallback($=>{if(t.filterMode!=="client"||!$.isRowMatchingFilters||!$.filterModel.items.length&&!$.filterModel.quickFilterValues?.length)return _ce;const L=$c(e),A={},{isRowMatchingFilters:F}=$,z={},H={passingFilterItems:null,passingQuickFilterValues:null},Q=I.current(e.current.state.rows.dataRowIdToModelLookup);for(let Y=0;Y<Q.length;Y+=1){const X=Q[Y],te=E?E(X):X.id;F(X,void 0,H);const U=Qlt([H.passingFilterItems],[H.passingQuickFilterValues],$.filterModel,e,z);U||(A[te]=U)}const G="auto-generated-group-footer-root";return L[G]&&(A[G]=!0),{filteredRowsLookup:A,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode,E,I]);No(e,"columnMenu",o),No(e,"exportState",x),No(e,"restoreState",S),No(e,"preferencePanel",C),QE(e,xv,"filtering",M),QE(e,xv,"visibleRowsLookupCreation",zgt);const O=m.useCallback(()=>{n.debug("onColUpdated - GridColumns changed, applying filters");const $=ji(e),L=Jp(e),A=$.items.filter(F=>F.field&&L[F.field]);A.length<$.items.length&&e.current.setFilterModel(B({},$,{items:A}))},[e,n]),D=m.useCallback($=>{$==="filtering"&&e.current.unstable_applyFilters()},[e]),N=m.useCallback(()=>{e.current.setState($=>B({},$,{visibleRowsLookup:LY(e,$)}))},[e]);jt(e,"rowsSet",r),jt(e,"columnsChange",O),jt(e,"activeStrategyProcessorChange",D),jt(e,"rowExpansionChange",N),jt(e,"columnVisibilityModelChange",()=>{const $=ji(e);$.quickFilterValues&&jce($)&&e.current.unstable_applyFilters()}),EP(()=>{e.current.unstable_applyFilters()}),qn(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,n,t.filterModel])},Ugt=e=>B({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),Ggt=(e,t)=>{const n=Ji(e,"useGridFocus"),r=m.useRef(null),o=e.current.rootElementRef.current!==null,i=m.useCallback(($,L)=>{$&&e.current.getRow($.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams($.id,$.field),L)},[e]),a=m.useCallback(($,L)=>{const A=il(e);A?.id===$&&A?.field===L||(e.current.setState(F=>(n.debug(`Focusing on cell with id=${$} and field=${L}`),B({},F,{tabIndex:{cell:{id:$,field:L},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:$,field:L},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.getRow($)&&(A&&i(A,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams($,L))))},[e,n,i]),s=m.useCallback(($,L={})=>{const A=il(e);i(A,L),e.current.setState(F=>(n.debug(`Focusing on column header with colIndex=${$}`),B({},F,{tabIndex:{columnHeader:{field:$},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:$},columnHeaderFilter:null,cell:null,columnGroupHeader:null}})))},[e,n,i]),l=m.useCallback(($,L={})=>{const A=il(e);i(A,L),e.current.setState(F=>(n.debug(`Focusing on column header filter with colIndex=${$}`),B({},F,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:$},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:$},cell:null,columnGroupHeader:null}})))},[e,n,i]),c=m.useCallback(($,L,A={})=>{const F=il(e);F&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(F.id,F.field),A),e.current.setState(z=>B({},z,{tabIndex:{columnGroupHeader:{field:$,depth:L},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:$,depth:L},columnHeader:null,columnHeaderFilter:null,cell:null}}))},[e]),u=m.useCallback(()=>KD(e),[e]),f=m.useCallback(($,L,A)=>{let F=e.current.getColumnIndex(L);const z=Uo(e),H=ym(e,{pagination:t.pagination,paginationMode:t.paginationMode}),Q=Bw(e),G=[].concat(Q.top||[],H.rows,Q.bottom||[]);let V=G.findIndex(U=>U.id===$);A==="right"?F+=1:A==="left"?F-=1:V+=1,F>=z.length?(V+=1,V<G.length&&(F=0)):F<0&&(V-=1,V>=0&&(F=z.length-1)),V=Ul(V,0,G.length-1);const Y=G[V];if(!Y)return;const X=e.current.unstable_getCellColSpanInfo(Y.id,F);X&&X.spannedByColSpan&&(A==="left"||A==="below"?F=X.leftVisibleCellIndex:A==="right"&&(F=X.rightVisibleCellIndex)),F=Ul(F,0,z.length-1);const te=z[F];e.current.setCellFocus(Y.id,te.field)},[e,t.pagination,t.paginationMode]),h=m.useCallback(({id:$,field:L})=>{e.current.setCellFocus($,L)},[e]),g=m.useCallback(($,L)=>{L.key==="Enter"||L.key==="Tab"||L.key==="Shift"||JD(L.key)||e.current.setCellFocus($.id,$.field)},[e]),y=m.useCallback(({field:$},L)=>{L.target===L.currentTarget&&e.current.setColumnHeaderFocus($,L)},[e]),x=m.useCallback(({fields:$,depth:L},A)=>{if(A.target!==A.currentTarget)return;const F=KD(e);F!==null&&F.depth===L&&$.includes(F.field)||e.current.setColumnGroupHeaderFocus($[0],L,A)},[e]),S=m.useCallback(($,L)=>{L.relatedTarget?.getAttribute("class")?.includes(re.columnHeader)||(n.debug("Clearing focus"),e.current.setState(A=>B({},A,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),C=m.useCallback($=>{r.current=$},[]),E=m.useCallback($=>{const L=r.current;r.current=null;const A=il(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:$,cell:L}))return;if(!A){L&&e.current.setCellFocus(L.id,L.field);return}L?.id===A.id&&L?.field===A.field||e.current.getCellElement(A.id,A.field)?.contains($.target)||(L?e.current.setCellFocus(L.id,L.field):(e.current.setState(H=>B({},H,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),i(A,$)))},[e,i]),I=m.useCallback($=>{if($.cellMode==="view")return;const L=il(e);(L?.id!==$.id||L?.field!==$.field)&&e.current.setCellFocus($.id,$.field)},[e]),M=m.useCallback(()=>{const $=il(e);if($&&!e.current.getRow($.id)){const L=$.id;let A=null;if(typeof L<"u"){const F=e.current.getRowElement(L),z=F?.dataset.rowindex?Number(F?.dataset.rowindex):0,H=ym(e,{pagination:t.pagination,paginationMode:t.paginationMode});A=H.rows[Ul(z,0,H.rows.length-1)]?.id??null}e.current.setState(F=>B({},F,{focus:{cell:A===null?null:{id:A,field:$.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),O=ft(()=>{const $=il(e);if(!$)return;const L=ym(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(L.rows.find(z=>z.id===$.id))return;const F=Uo(e);e.current.setState(z=>B({},z,{tabIndex:{cell:{id:L.rows[0].id,field:F[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),D={setCellFocus:a,setColumnHeaderFocus:s,setColumnHeaderFilterFocus:l},N={moveFocusToRelativeCell:f,setColumnGroupHeaderFocus:c,getColumnGroupHeaderFocus:u};Nn(e,D,"public"),Nn(e,N,"private"),m.useEffect(()=>{const $=yo(e.current.rootElementRef.current);return $.addEventListener("mouseup",E),()=>{$.removeEventListener("mouseup",E)}},[e,o,E]),jt(e,"columnHeaderBlur",S),jt(e,"cellDoubleClick",h),jt(e,"cellMouseDown",C),jt(e,"cellKeyDown",g),jt(e,"cellModeChange",I),jt(e,"columnHeaderFocus",y),jt(e,"columnGroupHeaderFocus",x),jt(e,"rowsSet",M),jt(e,"paginationModelChange",O)},U$=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e<n)return e+1}else if(!r&&e>t)return e-1;return null},G$=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e<n)return e+1;return null};function Wgt(e,t,n,r){const o=bue(e);if(!o[t]?.[n])return t;const i=Xce(e);let a=i.indexOf(t)+(r==="down"?1:-1);for(;a>=0&&a<i.length;){const s=i[a];if(!o[s]?.[n])return s;a+=r==="down"?1:-1}return t}const qgt=Cr(wP,Bw,(e,t)=>(t.top||[]).concat(e.rows,t.bottom||[])),Kgt=(e,t)=>{const n=Ji(e,"useGridKeyboardNavigation"),r=eo(),o=t.listView,i=m.useCallback(()=>qgt(e),[e]),a=t.signature!=="DataGrid"&&t.headerFilters,s=m.useCallback((C,E,I="left",M="up")=>{const O=Qm(e),D=e.current.unstable_getCellColSpanInfo(E,C);D&&D.spannedByColSpan&&(I==="left"?C=D.leftVisibleCellIndex:I==="right"&&(C=D.rightVisibleCellIndex));const N=o?Qx(e).field:zw(e)[C],$=Wgt(e,E,N,M),L=O.findIndex(A=>A.id===$);n.debug(`Navigating to cell row ${L}, col ${C}`),e.current.scrollToIndexes({colIndex:C,rowIndex:L}),e.current.setCellFocus($,N)},[e,n,o]),l=m.useCallback((C,E)=>{n.debug(`Navigating to header col ${C}`),e.current.scrollToIndexes({colIndex:C});const I=e.current.getVisibleColumns()[C].field;e.current.setColumnHeaderFocus(I,E)},[e,n]),c=m.useCallback((C,E)=>{n.debug(`Navigating to header filter col ${C}`),e.current.scrollToIndexes({colIndex:C});const I=e.current.getVisibleColumns()[C].field;e.current.setColumnHeaderFilterFocus(I,E)},[e,n]),u=m.useCallback((C,E,I)=>{n.debug(`Navigating to header col ${C}`),e.current.scrollToIndexes({colIndex:C});const{field:M}=e.current.getVisibleColumns()[C];e.current.setColumnGroupHeaderFocus(M,E,I)},[e,n]),f=m.useCallback(C=>i()[C]?.id,[i]),h=m.useCallback((C,E)=>{const I=E.currentTarget.querySelector(`.${re.columnHeaderTitleContainerContent}`);if(!!I&&I.contains(E.target)&&C.field!==Gw.field)return;const O=i(),D=e.current.getViewportPageSize(),N=C.field?e.current.getColumnIndex(C.field):0,$=O.length>0?0:null,L=O.length-1,A=0,F=Uo(e).length-1,z=CP(e);let H=!0;switch(E.key){case"ArrowDown":{a?c(N,E):$!==null&&s(N,f($));break}case"ArrowRight":{const Q=G$({currentColIndex:N,firstColIndex:A,lastColIndex:F,isRtl:r});Q!==null&&l(Q,E);break}case"ArrowLeft":{const Q=U$({currentColIndex:N,firstColIndex:A,lastColIndex:F,isRtl:r});Q!==null&&l(Q,E);break}case"ArrowUp":{z>0&&u(N,z-1,E);break}case"PageDown":{$!==null&&L!==null&&s(N,f(Math.min($+D,L)));break}case"Home":{l(A,E);break}case"End":{l(F,E);break}case"Enter":{(E.ctrlKey||E.metaKey)&&e.current.toggleColumnMenu(C.field);break}case" ":break;default:H=!1}H&&E.preventDefault()},[e,i,a,c,s,f,r,l,u]),g=m.useCallback((C,E)=>{const I=Eut(e)===C.field,M=Tut(e)===C.field;if(I||M||!JD(E.key))return;const O=i(),D=e.current.getViewportPageSize(),N=C.field?e.current.getColumnIndex(C.field):0,$=0,L=O.length-1,A=0,F=Uo(e).length-1;let z=!0;switch(E.key){case"ArrowDown":{const H=f($);H!=null&&s(N,H);break}case"ArrowRight":{const H=G$({currentColIndex:N,firstColIndex:A,lastColIndex:F,isRtl:r});H!==null&&c(H,E);break}case"ArrowLeft":{const H=U$({currentColIndex:N,firstColIndex:A,lastColIndex:F,isRtl:r});H!==null?c(H,E):e.current.setColumnHeaderFilterFocus(C.field,E);break}case"ArrowUp":{l(N,E);break}case"PageDown":{L!==null&&s(N,f(Math.min($+D,L)));break}case"Home":{c(A,E);break}case"End":{c(F,E);break}case" ":break;default:z=!1}z&&E.preventDefault()},[e,i,c,r,l,s,f]),y=m.useCallback((C,E)=>{const I=KD(e);if(I===null)return;const{field:M,depth:O}=I,{fields:D,depth:N,maxDepth:$}=C,L=i(),A=e.current.getViewportPageSize(),F=e.current.getColumnIndex(M),z=M?e.current.getColumnIndex(M):0,H=0,Q=L.length-1,G=0,V=Uo(e).length-1;let Y=!0;switch(E.key){case"ArrowDown":{N===$-1?l(F,E):u(F,O+1,E);break}case"ArrowUp":{N>0&&u(F,O-1,E);break}case"ArrowRight":{const X=D.length-D.indexOf(M)-1;F+X+1<=V&&u(F+X+1,O,E);break}case"ArrowLeft":{const X=D.indexOf(M);F-X-1>=G&&u(F-X-1,O,E);break}case"PageDown":{Q!==null&&s(z,f(Math.min(H+A,Q)));break}case"Home":{u(G,O,E);break}case"End":{u(V,O,E);break}case" ":break;default:Y=!1}Y&&E.preventDefault()},[e,i,l,u,s,f]),x=m.useCallback((C,E)=>{if(IP(E))return;const I=e.current.getCellParams(C.id,C.field);if(I.cellMode===Pr.Edit||!JD(E.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:E,cell:I}))return;const O=i();if(O.length===0)return;const D=e.current.getViewportPageSize(),N=o?()=>0:e.current.getColumnIndex,$=C.field?N(C.field):0,L=O.findIndex(V=>V.id===C.id),A=0,F=O.length-1,z=0,Q=(o?[Qx(e)]:Uo(e)).length-1;let G=!0;switch(E.key){case"ArrowDown":{L<F&&s($,f(L+1),r?"right":"left","down");break}case"ArrowUp":{L>A?s($,f(L-1)):a?c($,E):l($,E);break}case"ArrowRight":{const V=G$({currentColIndex:$,firstColIndex:z,lastColIndex:Q,isRtl:r});V!==null&&s(V,f(L),r?"left":"right");break}case"ArrowLeft":{const V=U$({currentColIndex:$,firstColIndex:z,lastColIndex:Q,isRtl:r});V!==null&&s(V,f(L),r?"right":"left");break}case"Tab":{E.shiftKey&&$>z?s($-1,f(L),"left"):!E.shiftKey&&$<Q&&s($+1,f(L),"right");break}case" ":{if(C.field===b2)break;const Y=C.colDef;if(Y&&(Y.field===hct||Wdt(Y.field)))break;!E.shiftKey&&L<F&&s($,f(Math.min(L+D,F)));break}case"PageDown":{L<F&&s($,f(Math.min(L+D,F)));break}case"PageUp":{const V=Math.max(L-D,A);V!==L&&V>=A?s($,f(V)):l($,E);break}case"Home":{E.ctrlKey||E.metaKey||E.shiftKey?s(z,f(A)):s(z,f(L));break}case"End":{E.ctrlKey||E.metaKey||E.shiftKey?s(Q,f(F)):s(Q,f(L));break}default:G=!1}G&&E.preventDefault()},[e,i,r,s,f,a,c,l,o]),S=m.useCallback((C,{event:E})=>E.key===" "?!1:C,[]);No(e,"canStartEditing",S),jt(e,"columnHeaderKeyDown",h),jt(e,"headerFilterKeyDown",g),jt(e,"columnGroupHeaderKeyDown",y),jt(e,"cellKeyDown",x)},Ygt=(e,t)=>{const n=Ji(e,"useGridRowCount"),r=rt(e,v5),o=rt(e,tx),i=rt(e,N1),a=rt(e,sa),s=nd(()=>sa(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:tx,changeEvent:"rowCountChange"});const c={setRowCount:m.useCallback(y=>{o!==y&&(n.debug("Setting 'rowCount' to",y),e.current.setState(x=>B({},x,{pagination:B({},x.pagination,{rowCount:y})})))},[e,n,o])};Nn(e,c,"public");const u=m.useCallback((y,x)=>{const S=tx(e);return!x.exportOnlyDirtyModels||t.rowCount!=null||t.initialState?.pagination?.rowCount!=null?B({},y,{pagination:B({},y.pagination,{rowCount:S})}):y},[e,t.rowCount,t.initialState?.pagination?.rowCount]),f=m.useCallback((y,x)=>{const S=x.stateToRestore.pagination?.rowCount?x.stateToRestore.pagination.rowCount:tx(e);return e.current.setState(C=>B({},C,{pagination:B({},C.pagination,{rowCount:S})})),y},[e]);No(e,"exportState",u),No(e,"restoreState",f);const h=m.useCallback(y=>{t.paginationMode==="client"||!s.current||y.pageSize!==s.current&&(s.current=y.pageSize,o===-1&&e.current.setPage(0))},[t.paginationMode,s,o,e]);jt(e,"paginationModelChange",h),m.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(r):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,r,t.rowCount]);const g=i.hasNextPage===!1;m.useEffect(()=>{g&&o===-1&&e.current.setRowCount(a.pageSize*a.page+r)},[e,r,g,o,a])},Qgt=(e,t)=>{const n=Ji(e,"useGridPaginationMeta"),r=rt(e,N1);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:N1,changeEvent:"paginationMetaChange"});const i={setPaginationMeta:m.useCallback(l=>{r!==l&&(n.debug("Setting 'paginationMeta' to",l),e.current.setState(c=>B({},c,{pagination:B({},c.pagination,{meta:l})})))},[e,n,r])};Nn(e,i,"public");const a=m.useCallback((l,c)=>{const u=N1(e);return!c.exportOnlyDirtyModels||t.paginationMeta!=null||t.initialState?.pagination?.meta!=null?B({},l,{pagination:B({},l.pagination,{meta:u})}):l},[e,t.paginationMeta,t.initialState?.pagination?.meta]),s=m.useCallback((l,c)=>{const u=c.stateToRestore.pagination?.meta?c.stateToRestore.pagination.meta:N1(e);return e.current.setState(f=>B({},f,{pagination:B({},f.pagination,{meta:u})})),l},[e]);No(e,"exportState",a),No(e,"restoreState",s),m.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},Xgt=(e,t)=>{const n=B({},oue(t.autoPageSize),t.paginationModel??t.initialState?.pagination?.paginationModel);iue(n.pageSize,t.signature);const r=t.rowCount??t.initialState?.pagination?.rowCount??(t.paginationMode==="client"?e.rows?.totalRowCount:void 0),o=t.paginationMeta??t.initialState?.pagination?.meta??{};return B({},e,{pagination:B({},e.pagination,{paginationModel:n,rowCount:r,meta:o,enabled:t.pagination===!0,paginationMode:t.paginationMode})})},Jgt=(e,t)=>{Qgt(e,t),Lgt(e,t),Ygt(e,t)},Zgt=(e,t)=>B({},e,{preferencePanel:t.initialState?.preferencePanel??{open:!1}}),eyt=(e,t)=>{const n=Ji(e,"useGridPreferencesPanel"),r=m.useCallback(()=>{e.current.setState(s=>{if(!s.preferencePanel.open)return s;n.debug("Hiding Preferences Panel");const l=bv(e);return e.current.publishEvent("preferencePanelClose",{openedPanelValue:l.openedPanelValue}),B({},s,{preferencePanel:{open:!1}})})},[e,n]),o=m.useCallback((s,l,c)=>{n.debug("Opening Preferences Panel"),e.current.setState(u=>B({},u,{preferencePanel:B({},u.preferencePanel,{open:!0,openedPanelValue:s,panelId:l,labelId:c})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:s})},[n,e]);Nn(e,{showPreferences:o,hidePreferences:r},"public");const i=m.useCallback((s,l)=>{const c=bv(e);return!l.exportOnlyDirtyModels||t.initialState?.preferencePanel!=null||c.open?B({},s,{preferencePanel:c}):s},[e,t.initialState?.preferencePanel]),a=m.useCallback((s,l)=>{const c=l.stateToRestore.preferencePanel;return c!=null&&e.current.setState(u=>B({},u,{preferencePanel:c})),s},[e]);No(e,"exportState",i),No(e,"restoreState",a)},HB=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;case"string":default:return""}},tyt=["id","field"],nyt=["id","field"],ryt=(e,t)=>{const[n,r]=m.useState({}),o=m.useRef(n),i=m.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:s,cellModesModel:l,onCellModesModelChange:c}=t,u=G=>(...V)=>{t.editMode===df.Cell&&G(...V)},f=m.useCallback((G,V)=>{const Y=e.current.getCellParams(G,V);if(!e.current.isCellEditable(Y))throw new Error(`MUI X: The cell with id=${G} and field=${V} is not editable.`)},[e]),h=m.useCallback((G,V,Y)=>{if(e.current.getCellMode(G,V)!==Y)throw new Error(`MUI X: The cell with id=${G} and field=${V} is not in ${Y} mode.`)},[e]),g=m.useCallback((G,V)=>{if(!G.isEditable||G.cellMode===Pr.Edit)return;const Y=B({},G,{reason:rp.cellDoubleClick});e.current.publishEvent("cellEditStart",Y,V)},[e]),y=m.useCallback((G,V)=>{if(G.cellMode===Pr.View||e.current.getCellMode(G.id,G.field)===Pr.View)return;const Y=B({},G,{reason:ku.cellFocusOut});e.current.publishEvent("cellEditStop",Y,V)},[e]),x=m.useCallback((G,V)=>{if(G.cellMode===Pr.Edit){if(V.which===229)return;let Y;if(V.key==="Escape"?Y=ku.escapeKeyDown:V.key==="Enter"?Y=ku.enterKeyDown:V.key==="Tab"&&(Y=V.shiftKey?ku.shiftTabKeyDown:ku.tabKeyDown,V.preventDefault()),Y){const X=B({},G,{reason:Y});e.current.publishEvent("cellEditStop",X,V)}}else if(G.isEditable){let Y;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:V,cellParams:G,editMode:"cell"}))return;if($ue(V)?Y=rp.printableKeyDown:jue(V)?Y=rp.pasteKeyDown:V.key==="Enter"?Y=rp.enterKeyDown:(V.key==="Backspace"||V.key==="Delete")&&(Y=rp.deleteKeyDown),Y){const te=B({},G,{reason:Y,key:V.key});e.current.publishEvent("cellEditStart",te,V)}}},[e]),S=m.useCallback(G=>{const{id:V,field:Y,reason:X}=G,te={id:V,field:Y};(X===rp.printableKeyDown||X===rp.deleteKeyDown||X===rp.pasteKeyDown)&&(te.deleteValue=!0),e.current.startCellEditMode(te)},[e]),C=m.useCallback(G=>{const{id:V,field:Y,reason:X}=G;e.current.runPendingEditCellValueMutation(V,Y);let te;X===ku.enterKeyDown?te="below":X===ku.tabKeyDown?te="right":X===ku.shiftTabKeyDown&&(te="left");const U=X==="escapeKeyDown";e.current.stopCellEditMode({id:V,field:Y,ignoreModifications:U,cellToFocusAfter:te})},[e]),E=G=>async(...V)=>{if(G){const{id:Y,field:X}=V[0];e.current.state.editRows[Y][X]?.error||G(...V)}};jt(e,"cellDoubleClick",u(g)),jt(e,"cellFocusOut",u(y)),jt(e,"cellKeyDown",u(x)),jt(e,"cellEditStart",u(S)),jt(e,"cellEditStop",u(C)),jr(e,"cellEditStart",t.onCellEditStart),jr(e,"cellEditStop",E(t.onCellEditStop));const I=m.useCallback((G,V)=>{const Y=zi(e);return Y[G]&&Y[G][V]?Pr.Edit:Pr.View},[e]),M=ft(G=>{const V=G!==t.cellModesModel;c&&V&&c(G,{api:e.current}),!(t.cellModesModel&&V)&&(r(G),o.current=G,e.current.publishEvent("cellModesModelChange",G))}),O=m.useCallback((G,V,Y)=>{const X=B({},o.current);if(Y!==null)X[G]=B({},X[G],{[V]:B({},Y)});else{const te=X[G],U=He(te,[V].map(YE));X[G]=U,Object.keys(X[G]).length===0&&delete X[G]}M(X)},[M]),D=m.useCallback((G,V,Y)=>{e.current.setState(X=>{const te=B({},X.editRows);return Y!==null?te[G]=B({},te[G],{[V]:B({},Y)}):(delete te[G][V],Object.keys(te[G]).length===0&&delete te[G]),B({},X,{editRows:te})})},[e]),N=m.useCallback(G=>{const{id:V,field:Y}=G,X=He(G,tyt);f(V,Y),h(V,Y,Pr.View),O(V,Y,B({mode:Pr.Edit},X))},[f,h,O]),$=ft(async G=>{const{id:V,field:Y,deleteValue:X,initialValue:te}=G,U=e.current.getCellValue(V,Y);let K=U;X?K=HB(e.current.getColumn(Y)):te&&(K=te);const ee=e.current.getColumn(Y),le=!!ee.preProcessEditCellProps&&X;let ce={value:K,error:!1,isProcessingProps:le};if(D(V,Y,ce),e.current.setCellFocus(V,Y),le&&(ce=await Promise.resolve(ee.preProcessEditCellProps({id:V,row:e.current.getRow(V),props:ce,hasChanged:K!==U})),e.current.getCellMode(V,Y)===Pr.Edit)){const se=zi(e);D(V,Y,B({},ce,{value:se[V][Y].value,isProcessingProps:!1}))}}),L=m.useCallback(G=>{const{id:V,field:Y}=G,X=He(G,nyt);h(V,Y,Pr.Edit),O(V,Y,B({mode:Pr.View},X))},[h,O]),A=ft(async G=>{const{id:V,field:Y,ignoreModifications:X,cellToFocusAfter:te="none"}=G;h(V,Y,Pr.Edit),e.current.runPendingEditCellValueMutation(V,Y);const U=()=>{D(V,Y,null),O(V,Y,null),te!=="none"&&e.current.moveFocusToRelativeCell(V,Y,te)};if(X){U();return}const K=zi(e),{error:ee,isProcessingProps:le}=K[V][Y],ce=e.current.getRow(V);if(ee||le){i.current[V][Y].mode=Pr.Edit,O(V,Y,{mode:Pr.Edit});return}const se=e.current.getRowWithUpdatedValuesFromCellEditing(V,Y);if(t.dataSource?.updateRow){if(ce[Y]===se[Y]){U();return}const fe=()=>{i.current[V][Y].mode=Pr.Edit,O(V,Y,{mode:Pr.Edit})},we={rowId:V,updatedRow:se,previousRow:ce};try{await e.current.dataSource.editRow(we),U()}catch{fe()}}else if(a){const fe=we=>{i.current[V][Y].mode=Pr.Edit,O(V,Y,{mode:Pr.Edit}),s&&s(we)};try{Promise.resolve(a(se,ce,{rowId:V})).then(we=>{e.current.updateRows([we]),U()}).catch(fe)}catch(we){fe(we)}}else e.current.updateRows([se]),U()}),F=m.useCallback(async G=>{const{id:V,field:Y,value:X,debounceMs:te,unstable_skipValueParser:U}=G;f(V,Y),h(V,Y,Pr.Edit);const K=e.current.getColumn(Y),ee=e.current.getRow(V);let le=X;K.valueParser&&!U&&(le=K.valueParser(X,ee,K,e));let ce=zi(e),se=B({},ce[V][Y],{value:le,changeReason:te?"debouncedSetEditCellValue":"setEditCellValue"});if(K.preProcessEditCellProps){const fe=X!==ce[V][Y].value;se=B({},se,{isProcessingProps:!0}),D(V,Y,se),se=await Promise.resolve(K.preProcessEditCellProps({id:V,row:ee,props:se,hasChanged:fe}))}return e.current.getCellMode(V,Y)===Pr.View?!1:(ce=zi(e),se=B({},se,{isProcessingProps:!1}),se.value=K.preProcessEditCellProps?ce[V][Y].value:le,D(V,Y,se),ce=zi(e),!ce[V]?.[Y]?.error)},[e,f,h,D]),z=m.useCallback((G,V)=>{const Y=e.current.getColumn(V),X=zi(e),te=e.current.getRow(G);if(!X[G]||!X[G][V])return e.current.getRow(G);const{value:U}=X[G][V];return Y.valueSetter?Y.valueSetter(U,te,Y,e):B({},te,{[V]:U})},[e]),H={getCellMode:I,startCellEditMode:N,stopCellEditMode:L},Q={setCellEditingEditCellValue:F,getRowWithUpdatedValuesFromCellEditing:z};Nn(e,H,"public"),Nn(e,Q,"private"),m.useEffect(()=>{l&&M(l)},[l,M]),qn(()=>{const G=$c(e),V=i.current;i.current=Rce(n),Object.entries(n).forEach(([Y,X])=>{Object.entries(X).forEach(([te,U])=>{const K=V[Y]?.[te]?.mode||Pr.View,ee=G[Y]?e.current.getRowId(G[Y]):Y;U.mode===Pr.Edit&&K===Pr.View?$(B({id:ee,field:te},U)):U.mode===Pr.View&&K===Pr.Edit&&A(B({id:ee,field:te},U))})})},[e,n,$,A])},oyt=["id"],iyt=["id"],ayt=(e,t)=>{const[n,r]=m.useState({}),o=m.useRef(n),i=m.useRef({}),a=m.useRef({}),s=m.useRef(void 0),l=m.useRef(null),{processRowUpdate:c,onProcessRowUpdateError:u,rowModesModel:f,onRowModesModelChange:h}=t,g=U=>(...K)=>{t.editMode===df.Row&&U(...K)},y=m.useCallback((U,K)=>{const ee=e.current.getCellParams(U,K);if(!e.current.isCellEditable(ee))throw new Error(`MUI X: The cell with id=${U} and field=${K} is not editable.`)},[e]),x=m.useCallback((U,K)=>{if(e.current.getRowMode(U)!==K)throw new Error(`MUI X: The row with id=${U} is not in ${K} mode.`)},[e]),S=m.useCallback(U=>{const K=zi(e);return Object.values(K[U]).some(ee=>ee.error)},[e]),C=m.useCallback((U,K)=>{if(!U.isEditable||e.current.getRowMode(U.id)===mr.Edit)return;const ee=e.current.getRowParams(U.id),le=B({},ee,{field:U.field,reason:Xh.cellDoubleClick});e.current.publishEvent("rowEditStart",le,K)},[e]),E=m.useCallback(U=>{l.current=U},[]),I=m.useCallback((U,K)=>{U.isEditable&&e.current.getRowMode(U.id)!==mr.View&&(l.current=null,s.current=setTimeout(()=>{if(l.current?.id!==U.id){if(!e.current.getRow(U.id)||e.current.getRowMode(U.id)===mr.View||S(U.id))return;const ee=e.current.getRowParams(U.id),le=B({},ee,{field:U.field,reason:Ic.rowFocusOut});e.current.publishEvent("rowEditStop",le,K)}}))},[e,S]);m.useEffect(()=>()=>{clearTimeout(s.current)},[]);const M=m.useCallback((U,K)=>{if(U.cellMode===mr.Edit){if(K.which===229)return;let ee;if(K.key==="Escape")ee=Ic.escapeKeyDown;else if(K.key==="Enter")ee=Ic.enterKeyDown;else if(K.key==="Tab"){const le=zw(e).filter(ce=>e.current.getColumn(ce).type===y2?!0:e.current.isCellEditable(e.current.getCellParams(U.id,ce)));if(K.shiftKey?U.field===le[0]&&(ee=Ic.shiftTabKeyDown):U.field===le[le.length-1]&&(ee=Ic.tabKeyDown),K.preventDefault(),!ee){const ce=le.findIndex(fe=>fe===U.field),se=le[K.shiftKey?ce-1:ce+1];e.current.setCellFocus(U.id,se)}}if(ee){if(ee!==Ic.escapeKeyDown&&S(U.id))return;const le=B({},e.current.getRowParams(U.id),{reason:ee,field:U.field});e.current.publishEvent("rowEditStop",le,K)}}else if(U.isEditable){let ee;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:K,cellParams:U,editMode:"row"}))return;if($ue(K)||jue(K)?ee=Xh.printableKeyDown:K.key==="Enter"?ee=Xh.enterKeyDown:(K.key==="Backspace"||K.key==="Delete")&&(ee=Xh.deleteKeyDown),ee){const ce=e.current.getRowParams(U.id),se=B({},ce,{field:U.field,reason:ee});e.current.publishEvent("rowEditStart",se,K)}}},[e,S]),O=m.useCallback(U=>{const{id:K,field:ee,reason:le}=U,ce={id:K,fieldToFocus:ee};(le===Xh.printableKeyDown||le===Xh.deleteKeyDown)&&(ce.deleteValue=!!ee),e.current.startRowEditMode(ce)},[e]),D=m.useCallback(U=>{const{id:K,reason:ee,field:le}=U;e.current.runPendingEditCellValueMutation(K);let ce;ee===Ic.enterKeyDown?ce="below":ee===Ic.tabKeyDown?ce="right":ee===Ic.shiftTabKeyDown&&(ce="left");const se=ee==="escapeKeyDown";e.current.stopRowEditMode({id:K,ignoreModifications:se,field:le,cellToFocusAfter:ce})},[e]);jt(e,"cellDoubleClick",g(C)),jt(e,"cellFocusIn",g(E)),jt(e,"cellFocusOut",g(I)),jt(e,"cellKeyDown",g(M)),jt(e,"rowEditStart",g(O)),jt(e,"rowEditStop",g(D)),jr(e,"rowEditStart",t.onRowEditStart),jr(e,"rowEditStop",t.onRowEditStop);const N=m.useCallback(U=>Tue(e,{rowId:U,editMode:t.editMode})?mr.Edit:mr.View,[e,t.editMode]),$=ft(U=>{const K=U!==t.rowModesModel;h&&K&&h(U,{api:e.current}),!(t.rowModesModel&&K)&&(r(U),o.current=U,e.current.publishEvent("rowModesModelChange",U))}),L=m.useCallback((U,K)=>{const ee=B({},o.current);K!==null?ee[U]=B({},K):delete ee[U],$(ee)},[$]),A=m.useCallback((U,K)=>{e.current.setState(ee=>{const le=B({},ee.editRows);return K!==null?le[U]=K:delete le[U],B({},ee,{editRows:le})})},[e]),F=m.useCallback((U,K,ee)=>{e.current.setState(le=>{const ce=B({},le.editRows);return ee!==null?ce[U]=B({},ce[U],{[K]:B({},ee)}):(delete ce[U][K],Object.keys(ce[U]).length===0&&delete ce[U]),B({},le,{editRows:ce})})},[e]),z=m.useCallback(U=>{const{id:K}=U,ee=He(U,oyt);x(K,mr.View),L(K,B({mode:mr.Edit},ee))},[x,L]),H=ft(U=>{const{id:K,fieldToFocus:ee,deleteValue:le,initialValue:ce}=U,se=e.current.getRow(K),fe=ef(e),we=fe.reduce((Oe,he)=>{if(!e.current.getCellParams(K,he).isEditable)return Oe;const ye=e.current.getColumn(he);let ae=e.current.getCellValue(K,he);return ee===he&&(le||ce)&&(le?ae=HB(ye):ce&&(ae=ce)),Oe[he]={value:ae,error:!1,isProcessingProps:!!ye.preProcessEditCellProps&&le},Oe},{});a.current[K]=se,A(K,we),ee&&e.current.setCellFocus(K,ee),fe.filter(Oe=>!!e.current.getColumn(Oe).preProcessEditCellProps&&le).forEach(Oe=>{const he=e.current.getColumn(Oe),me=e.current.getCellValue(K,Oe),ye=le?HB(he):ce??me;Promise.resolve(he.preProcessEditCellProps({id:K,row:se,props:we[Oe],hasChanged:ye!==me})).then(ae=>{if(e.current.getRowMode(K)===mr.Edit){const Se=zi(e);F(K,Oe,B({},ae,{value:Se[K][Oe].value,isProcessingProps:!1}))}})})}),Q=m.useCallback(U=>{const{id:K}=U,ee=He(U,iyt);x(K,mr.Edit),L(K,B({mode:mr.View},ee))},[x,L]),G=ft(async U=>{const{id:K,ignoreModifications:ee,field:le,cellToFocusAfter:ce="none"}=U;e.current.runPendingEditCellValueMutation(K);const se=()=>{ce!=="none"&&le&&e.current.moveFocusToRelativeCell(K,le,ce),A(K,null),L(K,null),delete a.current[K]};if(ee){se();return}const fe=zi(e),we=a.current[K];if(Object.values(fe[K]).some(me=>me.isProcessingProps)){i.current[K].mode=mr.Edit;return}if(S(K)){i.current[K].mode=mr.Edit,L(K,{mode:mr.Edit});return}const he=e.current.getRowWithUpdatedValuesFromRowEditing(K);if(t.dataSource?.updateRow){if(Gc(we,he)){se();return}const me=()=>{i.current[K].mode=mr.Edit,L(K,{mode:mr.Edit})},ye={rowId:K,updatedRow:he,previousRow:we};try{await e.current.dataSource.editRow(ye),se()}catch{me()}}else if(c){const me=ye=>{i.current[K]&&(i.current[K].mode=mr.Edit,L(K,{mode:mr.Edit})),u&&u(ye)};try{Promise.resolve(c(he,we,{rowId:K})).then(ye=>{e.current.updateRows([ye]),se()}).catch(me)}catch(ye){me(ye)}}else e.current.updateRows([he]),se()}),V=m.useCallback(U=>{const{id:K,field:ee,value:le,debounceMs:ce,unstable_skipValueParser:se}=U;y(K,ee);const fe=e.current.getColumn(ee),we=e.current.getRow(K);let Oe=le;fe.valueParser&&!se&&(Oe=fe.valueParser(le,we,fe,e));let he=zi(e),me=B({},he[K][ee],{value:Oe,changeReason:ce?"debouncedSetEditCellValue":"setEditCellValue"});return fe.preProcessEditCellProps||F(K,ee,me),new Promise(ye=>{const ae=[];if(fe.preProcessEditCellProps){const Se=me.value!==he[K][ee].value;me=B({},me,{isProcessingProps:!0}),F(K,ee,me);const Ie=he[K],Re=He(Ie,[ee].map(YE)),ke=Promise.resolve(fe.preProcessEditCellProps({id:K,row:we,props:me,hasChanged:Se,otherFieldsProps:Re})).then(Te=>{if(e.current.getRowMode(K)===mr.View){ye(!1);return}he=zi(e),Te=B({},Te,{isProcessingProps:!1}),Te.value=fe.preProcessEditCellProps?he[K][ee].value:Oe,F(K,ee,Te)});ae.push(ke)}Object.entries(he[K]).forEach(([Se,Ie])=>{if(Se===ee)return;const Re=e.current.getColumn(Se);if(!Re.preProcessEditCellProps)return;Ie=B({},Ie,{isProcessingProps:!0}),F(K,Se,Ie),he=zi(e);const ke=he[K],Te=He(ke,[Se].map(YE)),Ce=Promise.resolve(Re.preProcessEditCellProps({id:K,row:we,props:Ie,hasChanged:!1,otherFieldsProps:Te})).then(Ze=>{if(e.current.getRowMode(K)===mr.View){ye(!1);return}Ze=B({},Ze,{isProcessingProps:!1}),F(K,Se,Ze)});ae.push(Ce)}),Promise.all(ae).then(()=>{e.current.getRowMode(K)===mr.Edit?(he=zi(e),ye(!he[K][ee].error)):ye(!1)})})},[e,y,F]),Y=m.useCallback(U=>{const K=zi(e),ee=e.current.getRow(U);if(!K[U])return e.current.getRow(U);let le=B({},a.current[U],ee);return Object.entries(K[U]).forEach(([ce,se])=>{const fe=e.current.getColumn(ce);fe?.valueSetter?le=fe.valueSetter(se.value,le,fe,e):le[ce]=se.value}),le},[e]),X={getRowMode:N,startRowEditMode:z,stopRowEditMode:Q},te={setRowEditingEditCellValue:V,getRowWithUpdatedValuesFromRowEditing:Y};Nn(e,X,"public"),Nn(e,te,"private"),m.useEffect(()=>{f&&$(f)},[f,$]),qn(()=>{const U=$c(e),K=i.current;i.current=Rce(n);const ee=new Set([...Object.keys(n),...Object.keys(K)]);Array.from(ee).forEach(le=>{const ce=n[le]??{mode:mr.View},se=K[le]?.mode||mr.View,fe=U[le]?e.current.getRowId(U[le]):le;ce.mode===mr.Edit&&se===mr.View?H(B({id:fe},ce)):ce.mode===mr.View&&se===mr.Edit&&G(B({id:fe},ce))})},[e,n,H,G])},syt=e=>B({},e,{editRows:{}}),lyt=(e,t)=>{ryt(e,t),ayt(e,t);const n=m.useRef({}),{isCellEditable:r}=t,o=m.useCallback(h=>Kx(h.rowNode)||!h.colDef.editable||!h.colDef.renderEditCell?!1:r?r(h):!0,[r]),i=(h,g,y,x)=>{if(!y){x();return}if(n.current[h]||(n.current[h]={}),n.current[h][g]){const[E]=n.current[h][g];clearTimeout(E)}const S=()=>{const[E]=n.current[h][g];clearTimeout(E),x(),delete n.current[h][g]},C=setTimeout(()=>{x(),delete n.current[h][g]},y);n.current[h][g]=[C,S]};m.useEffect(()=>{const h=n.current;return()=>{Object.entries(h).forEach(([g,y])=>{Object.keys(y).forEach(x=>{const[S]=h[g][x];clearTimeout(S),delete h[g][x]})})}},[]);const a=m.useCallback((h,g)=>{if(n.current[h]){if(!g)Object.keys(n.current[h]).forEach(y=>{const[,x]=n.current[h][y];x()});else if(n.current[h][g]){const[,y]=n.current[h][g];y()}}},[]),s=m.useCallback(h=>{const{id:g,field:y,debounceMs:x}=h;return new Promise(S=>{i(g,y,x,async()=>{const C=t.editMode===df.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(g,y)===Pr.Edit){const E=await C(h);S(E)}})})},[e,t.editMode]),l=m.useCallback((h,g)=>t.editMode===df.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(h,g):e.current.getRowWithUpdatedValuesFromRowEditing(h),[e,t.editMode]),c=m.useCallback((h,g)=>zi(e)[h]?.[g]??null,[e]),u={isCellEditable:o,setEditCellValue:s,getRowWithUpdatedValues:l,unstable_getEditCellMeta:c},f={runPendingEditCellValueMutation:a};Nn(e,u,"public"),Nn(e,f,"private")},cyt=(e,t,n)=>{const r=!!t.dataSource;return n.current.caches.rows=bA({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),B({},e,{rows:Hce({apiRef:n,rowCountProp:t.rowCount,loadingProp:r?!0:t.loading,previousTree:null,previousTreeDepths:null})})},uyt=(e,t)=>{const n=Ji(e,"useGridRows"),r=m.useRef(Date.now()),o=m.useRef(t.rowCount),i=Ni(),a=m.useCallback(G=>{const V=$c(e)[G];if(V)return V;const Y=Yd(e,G);return Y&&Kx(Y)?{[qx]:G}:null},[e]),s=m.useCallback(G=>SP(e,G),[e]),l=m.useCallback(({cache:G,throttle:V})=>{const Y=()=>{r.current=Date.now(),e.current.setState(te=>B({},te,{rows:Hce({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:ka(e),previousTreeDepths:HK(e),previousGroupsToFetch:wlt(e)})})),e.current.publishEvent("rowsSet")};if(i.clear(),e.current.caches.rows=G,!V){Y();return}const X=t.throttleRowsMs-(Date.now()-r.current);if(X>0){i.start(X,Y);return}Y()},[t.throttleRowsMs,t.rowCount,t.loading,e,i]),c=m.useCallback(G=>{if(n.debug(`Updating all rows, new length ${G.length}`),vv(e)){e.current.updateNonPivotRows(G,!1);return}const V=bA({rows:G,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),Y=e.current.caches.rows;V.rowsBeforePartialUpdates=Y.rowsBeforePartialUpdates,l({cache:V,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,l,e]),u=m.useCallback(G=>{if(t.signature===qu.DataGrid&&G.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
-`));if(vv(e)){e.current.updateNonPivotRows(G);return}const V=eY(e,G,t.getRowId),Y=ZK({updates:V,getRowId:t.getRowId,previousCache:e.current.caches.rows});l({cache:Y,throttle:!0})},[t.signature,t.getRowId,l,e]),f=m.useCallback((G,V)=>{const Y=eY(e,G,t.getRowId),X=ZK({updates:Y,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:V??[]});l({cache:X,throttle:!1})},[t.getRowId,l,e]),h=m.useCallback(G=>{n.debug(`Setting loading to ${G}`),e.current.setState(V=>B({},V,{rows:B({},V.rows,{loading:G})})),e.current.caches.rows.loadingPropBeforePartialUpdates=G},[e,n]),g=m.useCallback(()=>{const G=Ly(e),V=$c(e);return new Map(G.map(Y=>[Y,V[Y]??{}]))},[e]),y=m.useCallback(()=>vP(e),[e]),x=m.useCallback(()=>Ly(e),[e]),S=m.useCallback(G=>{const{rowIdToIndexMap:V}=ym(e);return V.get(G)},[e]),C=m.useCallback((G,V)=>{const Y=Yd(e,G);if(!Y)throw new Error(`MUI X: No row with id #${G} found.`);if(Y.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const X=B({},Y,{childrenExpanded:V});e.current.setState(te=>B({},te,{rows:B({},te.rows,{tree:B({},te.rows.tree,{[G]:X})})})),e.current.publishEvent("rowExpansionChange",X)},[e]),E=m.useCallback(G=>Yd(e,G)??null,[e]),I=m.useCallback(({skipAutoGeneratedRows:G=!0,groupId:V,applySorting:Y,applyFiltering:X})=>{const te=ka(e);let U;if(Y){const K=te[V];if(!K)return[];const ee=Hw(e);U=[];const le=ee.findIndex(ce=>ce===V)+1;for(let ce=le;ce<ee.length&&te[ee[ce]].depth>K.depth;ce+=1){const se=ee[ce];(!G||!Kx(te[se]))&&U.push(se)}}else U=m5(te,V,G);if(X){const K=Uw(e);U=x2(K)?U:U.filter(ee=>K[ee]!==!1)}return U},[e]),M=m.useCallback((G,V)=>{const Y=Yd(e,G);if(!Y)throw new Error(`MUI X: No row with id #${G} found.`);if(Y.parent!==la)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(Y.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(X=>{const te=ka(e)[la],U=te.children,K=U.findIndex(le=>le===G);if(K===-1||K===V)return X;n.debug(`Moving row ${G} to index ${V}`);const ee=[...U];return ee.splice(V,0,ee.splice(K,1)[0]),B({},X,{rows:B({},X.rows,{tree:B({},X.rows.tree,{[la]:B({},te,{children:ee})})})})}),e.current.publishEvent("rowsSet")},[e,n]),O=m.useCallback((G,V)=>{if(t.signature===qu.DataGrid&&V.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
-`));if(V.length===0)return;if(jw(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const X=B({},ka(e)),te=B({},$c(e)),U=X[la],K=[...U.children],ee=new Set;for(let ce=0;ce<V.length;ce+=1){const se=V[ce],fe=v2(se,t.getRowId,"A row was provided without id when calling replaceRows()."),[we]=K.splice(G+ce,1,fe);ee.has(we)||(delete te[we],delete X[we]);const Oe={id:fe,depth:0,parent:la,type:"leaf",groupingKey:null};te[fe]=se,X[fe]=Oe,ee.add(fe)}X[la]=B({},U,{children:K});const le=K.filter(ce=>X[ce]?.type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=te,e.current.setState(ce=>B({},ce,{rows:B({},ce.rows,{loading:t.loading,totalRowCount:Math.max(t.rowCount||0,K.length),dataRowIdToModelLookup:te,dataRowIds:le,tree:X})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId,t.loading,t.rowCount]),D={getRow:a,setLoading:h,getRowId:s,getRowModels:g,getRowsCount:y,getAllRowIds:x,setRows:c,updateRows:u,getRowNode:E,getRowIndexRelativeToVisibleRows:S,unstable_replaceRows:O},N={setRowIndex:M,setRowChildrenExpansion:C,getRowGroupChildren:I},$={updateNestedRows:f},L=m.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let G;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?G=B({},e.current.caches.rows,{updates:{type:"full",rows:Ly(e)}}):G=bA({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),l({cache:G,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,l]),A=nd(()=>t.dataSource),F=m.useCallback(G=>{if(t.dataSource&&t.dataSource!==A.current){A.current=t.dataSource;return}G==="rowTreeCreation"&&L()},[L,A,t.dataSource]),z=m.useCallback(()=>{e.current.getActiveStrategy(cm.RowTree)!==Slt(e)&&L()},[e,L]);jt(e,"activeStrategyProcessorChange",F),jt(e,"strategyAvailabilityChange",z);const H=m.useCallback(()=>{e.current.setState(G=>{const V=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:ka(e),treeDepths:HK(e),dataRowIds:Ly(e),dataRowIdToModelLookup:$c(e)});return B({},G,{rows:B({},G.rows,V,{totalTopLevelRowCount:Vce({tree:V.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet")},[e,t.rowCount]);R5(e,"hydrateRows",H),Nn(e,D,"public"),Nn(e,N,t.signature===qu.DataGrid?"private":"public"),Nn(e,$,"private");const Q=m.useRef(!0);m.useEffect(()=>{if(Q.current){Q.current=!1;return}let G=!1;t.rowCount!==o.current&&(G=!0,o.current=t.rowCount);const V=t.dataSource?Clt(e):t.rows,Y=e.current.caches.rows.rowsBeforePartialUpdates===V,X=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,te=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;Y&&(X||(e.current.setState(U=>B({},U,{rows:B({},U.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading),te||(e.current.setState(U=>B({},U,{rows:B({},U.rows,{totalRowCount:Math.max(t.rowCount||0,U.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,U.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount),!G)||(n.debug(`Updating all rows, new length ${V?.length}`),l({cache:bA({rows:V,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,t.dataSource,n,l,e])},dyt=e=>{const t={[la]:B({},dct(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:la,type:"leaf",groupingKey:null}}return{groupingName:xv,tree:t,treeDepths:{0:e.length},dataRowIds:e}},fyt=({previousTree:e,actions:t})=>{const n=B({},e),r={};for(let a=0;a<t.remove.length;a+=1){const s=t.remove[a];r[s]=!0,delete n[s]}for(let a=0;a<t.insert.length;a+=1){const s=t.insert[a];n[s]={id:s,depth:0,parent:la,type:"leaf",groupingKey:null}}const o=n[la];let i=[...o.children,...t.insert];return Object.values(r).length&&(i=i.filter(a=>!r[a])),n[la]=B({},o,{children:i}),{groupingName:xv,tree:n,treeDepths:{0:i.length},dataRowIds:i}},pyt=e=>e.updates.type==="full"?dyt(e.updates.rows):fyt({previousTree:e.previousTree,actions:e.updates.actions}),hyt=e=>{QE(e,xv,"rowTreeCreation",pyt)};class W$ extends Error{}function myt(e,t){const n=m.useCallback(y=>({field:y,colDef:e.current.getColumn(y)}),[e]),r=m.useCallback(y=>{const x=e.current.getRow(y);if(!x)throw new W$(`No row with id #${y} found`);return{id:y,columns:e.current.getAllColumns(),row:x}},[e]),o=m.useCallback((y,x,S,{cellMode:C,colDef:E,hasFocus:I,rowNode:M,tabIndex:O})=>{const D=S[x],N=E?.valueGetter?E.valueGetter(D,S,E,e):D,$={id:y,field:x,row:S,rowNode:M,colDef:E,cellMode:C,hasFocus:I,tabIndex:O,value:N,formattedValue:N,isEditable:!1,api:e.current};return E&&E.valueFormatter&&($.formattedValue=E.valueFormatter(N,S,E,e)),$.isEditable=E&&e.current.isCellEditable($),$},[e]),i=m.useCallback((y,x)=>{const S=e.current.getRow(y),C=Yd(e,y);if(!S||!C)throw new W$(`No row with id #${y} found`);const E=il(e),I=w5(e),M=e.current.getCellMode(y,x);return e.current.getCellParamsForRow(y,x,S,{colDef:t.listView&&t.listViewColumn?.field===x?Qx(e):e.current.getColumn(x),rowNode:C,hasFocus:E!==null&&E.field===x&&E.id===y,tabIndex:I&&I.field===x&&I.id===y?0:-1,cellMode:M})},[e,t.listView,t.listViewColumn?.field]),a=m.useCallback((y,x)=>{const S=e.current.getColumn(x),C=e.current.getRow(y);if(!C)throw new W$(`No row with id #${y} found`);return!S||!S.valueGetter?C[x]:S.valueGetter(C[S.field],C,S,e)},[e]),s=m.useCallback((y,x)=>pct(y,x,e),[e]),l=m.useCallback((y,x)=>{const S=s(y,x);return!x||!x.valueFormatter?S:x.valueFormatter(S,y,x,e)},[e,s]),c=m.useCallback(y=>e.current.rootElementRef.current?zft(e.current.rootElementRef.current,y):null,[e]),u=m.useCallback(y=>e.current.rootElementRef.current?Vft(e.current.rootElementRef.current,y):null,[e]),f=m.useCallback((y,x)=>e.current.rootElementRef.current?Hft(e.current.rootElementRef.current,{id:y,field:x}):null,[e]),h={getCellValue:a,getCellParams:i,getCellElement:f,getRowValue:s,getRowFormattedValue:l,getRowParams:r,getRowElement:u,getColumnHeaderParams:n,getColumnHeaderElement:c},g={getCellParamsForRow:o};Nn(e,h,"public"),Nn(e,g,"private")}const eE={type:"include",ids:new Set},gyt=(e,t)=>B({},e,{rowSelection:t.rowSelection?t.rowSelectionModel??eE:eE}),yyt=(e,t)=>{const n=Ji(e,"useGridSelection"),r=m.useCallback(U=>(...K)=>{t.rowSelection&&U(...K)},[t.rowSelection]),o=t.signature!==qu.DataGrid&&(t.rowSelectionPropagation?.parents||t.rowSelectionPropagation?.descendants),i=m.useMemo(()=>t.rowSelectionModel,[t.rowSelectionModel]),a=m.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:i,propOnChange:t.onRowSelectionModelChange,stateSelector:_u,changeEvent:"rowSelectionChange"});const{checkboxSelection:s,disableRowSelectionOnClick:l,isRowSelectable:c}=t,u=x5(t),f=rt(e,ka),h=rt(e,jw)>1,g=m.useCallback(U=>{let K=U;const ee=a.current??U,le=e.current.isRowSelected(U);if(le){const ce=vx(e),se=ce.findIndex(we=>we===ee),fe=ce.findIndex(we=>we===K);if(se===fe)return;se>fe?K=ce[fe+1]:K=ce[fe-1]}a.current=U,e.current.selectRowRange({startId:ee,endId:K},!le)},[e]),y=ft(()=>t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?cue(e):vx(e)),x=m.useCallback(U=>{if(t.signature===qu.DataGrid&&!u&&(U.type!=="include"||U.ids.size>1))throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
-`));_u(e)!==U&&(n.debug("Setting selection model"),e.current.setState(ee=>B({},ee,{rowSelection:t.rowSelection?U:eE})))},[e,n,t.rowSelection,t.signature,u]),S=m.useCallback(U=>bP(e).has(U),[e]),C=m.useCallback(U=>{if(t.rowSelection===!1||c&&!c(e.current.getRowParams(U)))return!1;const K=Yd(e,U);return!(K?.type==="footer"||K?.type==="pinnedRow")},[e,t.rowSelection,c]),E=m.useCallback(()=>eue(e),[e]),I=m.useCallback((U,K=!0,ee=!1)=>{if(e.current.isRowSelectable(U))if(a.current=U,ee){n.debug(`Setting selection for row ${U}`);const le={type:"include",ids:new Set},ce=se=>{le.ids.add(se)};K&&(ce(U),o&&p1(e,f,U,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,ce)),e.current.setRowSelectionModel(le)}else{n.debug(`Toggling selection for row ${U}`);const le=_u(e),ce={type:le.type,ids:new Set(le.ids)},se=lm(ce);se.unselect(U);const fe=he=>{se.select(he)},we=he=>{se.unselect(he)};K?(fe(U),o&&p1(e,f,U,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,fe)):o&&tY(e,f,U,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,we),(ce.type==="include"&&ce.ids.size<2||u)&&e.current.setRowSelectionModel(ce)}},[e,n,o,f,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,u]),M=m.useCallback((U,K=!0,ee=!1)=>{if(n.debug("Setting selection for several rows"),t.rowSelection===!1)return;const le=new Set;for(let we=0;we<U.length;we+=1){const Oe=U[we];e.current.isRowSelectable(Oe)&&le.add(Oe)}const ce=_u(e);let se;if(ee){if(se={type:"include",ids:le},K){const we=lm(se);if(o){const Oe=he=>{we.select(he)};for(const he of le)p1(e,f,he,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,Oe)}}else se.ids=new Set;if(ce.type===se.type&&se.ids.size===ce.ids.size&&Array.from(se.ids).every(we=>ce.ids.has(we)))return}else{se={type:ce.type,ids:new Set(ce.ids)};const we=lm(se),Oe=me=>{we.select(me)},he=me=>{we.unselect(me)};for(const me of le)K?(we.select(me),o&&p1(e,f,me,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,Oe)):(he(me),o&&tY(e,f,me,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,he))}(se.type==="include"&&se.ids.size<2||u)&&e.current.setRowSelectionModel(se)},[n,o,u,e,f,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,t.rowSelection]),O=m.useCallback(U=>{if(!h||!o||U.ids.size===0&&U.type==="include")return U;const K={type:U.type,ids:new Set(U.ids)},ee=lm(K),le=ce=>{ee.select(ce)};for(const ce of U.ids)p1(e,f,ce,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,le,ee);return K},[e,f,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,h,o]),D=m.useCallback(({startId:U,endId:K},ee=!0,le=!1)=>{if(!e.current.getRow(U)||!e.current.getRow(K))return;n.debug(`Expanding selection from row ${U} to row ${K}`);const ce=vx(e),se=ce.indexOf(U),fe=ce.indexOf(K),[we,Oe]=se>fe?[fe,se]:[se,fe],he=ce.slice(we,Oe+1);e.current.selectRows(he,ee,le)},[e,n]),N={selectRow:I,setRowSelectionModel:x,getSelectedRows:E,isRowSelected:S,isRowSelectable:C},$={selectRows:M,selectRowRange:D,getPropagatedRowSelectionModel:O};Nn(e,N,"public"),Nn(e,$,t.signature===qu.DataGrid?"private":"public");const L=m.useRef(!0),A=m.useCallback((U=!1)=>{if(L.current)return;const K=_u(e),ee=$c(e),le=Uw(e),ce=he=>t.filterMode==="server"?!ee[he]:!ee[he]||le[he]===!1,se={type:K.type,ids:new Set(K.ids)},fe=lm(se);let we=!1;for(const he of K.ids){if(ce(he)){if(t.keepNonExistentRowsSelected)continue;fe.unselect(he),we=!0;continue}if(!t.rowSelectionPropagation?.parents)continue;const me=f[he];if(me?.type==="group"){if(me.isAutoGenerated){fe.unselect(he),we=!0;continue}me.children.every(ae=>le[ae]===!1)||(fe.unselect(he),we=!0)}}const Oe=h&&t.rowSelectionPropagation?.parents&&(se.ids.size>0||se.type==="exclude");if(we||Oe&&!U)if(Oe)if(se.type==="exclude"){const he=y(),me=[];for(let ye=0;ye<he.length;ye+=1){const ae=he[ye];(t.keepNonExistentRowsSelected||!ce(ae))&&fe.has(ae)&&me.push(ae)}e.current.selectRows(me,!0,!0)}else e.current.selectRows(Array.from(se.ids),!0,!0);else e.current.setRowSelectionModel(se)},[e,h,t.rowSelectionPropagation?.parents,t.keepNonExistentRowsSelected,t.filterMode,f,y]),F=m.useCallback((U,K)=>{const ee=K.metaKey||K.ctrlKey,le=!s&&!ee&&!Upt(K),ce=!u||le,se=e.current.isRowSelected(U),Oe=S2(e)>1&&ce||!se;e.current.selectRow(U,Oe,ce)},[e,u,s]),z=m.useCallback((U,K)=>{if(l)return;const ee=K.target.closest(`.${re.cell}`)?.getAttribute("data-field");ee===Gw.field||ee===b2||ee&&e.current.getColumn(ee)?.type===y2||Yd(e,U.id).type==="pinnedRow"||(K.shiftKey&&u?g(U.id):F(U.id,K))},[l,u,e,g,F]),H=m.useCallback((U,K)=>{u&&K.shiftKey&&window.getSelection()?.removeAllRanges()},[u]),Q=m.useCallback((U,K)=>{u&&K.nativeEvent.shiftKey?g(U.id):e.current.selectRow(U.id,U.value,!u)},[e,g,u]),G=m.useCallback(U=>{const K=ji(e),ee=Yce(e),le=K.items.length>0||(ee?.length||0)>0;!t.isRowSelectable&&!t.checkboxSelectionVisibleOnly&&o&&!le?e.current.setRowSelectionModel({type:U?"exclude":"include",ids:new Set}):e.current.selectRows(y(),U)},[e,o,y,t.checkboxSelectionVisibleOnly,t.isRowSelectable]),V=m.useCallback(U=>{G(U.value)},[G]),Y=m.useCallback((U,K)=>{if(e.current.getCellMode(U.id,U.field)!==Pr.Edit&&!IP(K)){if(JD(K.key)&&K.shiftKey){const ee=il(e);if(ee&&ee.id!==U.id){K.preventDefault();const le=e.current.isRowSelected(ee.id);if(!u){e.current.selectRow(ee.id,!le,!0);return}const ce=e.current.getRowIndexRelativeToVisibleRows(ee.id),se=e.current.getRowIndexRelativeToVisibleRows(U.id);let fe,we;ce>se?le?(fe=se,we=ce-1):(fe=se,we=ce):le?(fe=ce+1,we=se):(fe=ce,we=se);const Oe=ym(e),he=[];for(let me=fe;me<=we;me+=1)he.push(Oe.rows[me].id);e.current.selectRows(he,!le);return}}if(K.key===" "&&K.shiftKey){K.preventDefault(),F(U.id,K);return}String.fromCharCode(K.keyCode)==="A"&&(K.ctrlKey||K.metaKey)&&(K.preventDefault(),G(!0))}},[e,u,F,G]),X=ft(()=>{if(!t.rowSelection){e.current.setRowSelectionModel(eE);return}if(i===void 0)return;if(!o||!h||i.type==="include"&&i.ids.size===0){e.current.setRowSelectionModel(i);return}const U=e.current.getPropagatedRowSelectionModel(i);if(U.type!==i.type||U.ids.size!==i.ids.size||!Array.from(i.ids).every(K=>U.ids.has(K))){e.current.setRowSelectionModel(U);return}e.current.setRowSelectionModel(i)});jt(e,"sortedRowsSet",r(()=>A(!0))),jt(e,"filteredRowsSet",r(()=>A())),jt(e,"rowClick",r(z)),jt(e,"rowSelectionCheckboxChange",r(Q)),jt(e,"headerSelectionCheckboxChange",V),jt(e,"cellMouseDown",r(H)),jt(e,"cellKeyDown",r(Y)),m.useEffect(()=>{X()},[e,i,t.rowSelection,X]);const te=i!=null;m.useEffect(()=>{if(te||!t.rowSelection||typeof C!="function")return;const U=_u(e);if(U.type!=="include")return;const K=new Set;for(const ee of U.ids)C(ee)&&K.add(ee);K.size<U.ids.size&&e.current.setRowSelectionModel({type:U.type,ids:K})},[e,C,te,t.rowSelection]),m.useEffect(()=>{if(!t.rowSelection||te)return;const U=_u(e);!u&&(U.type==="include"&&U.ids.size>1||U.type==="exclude")&&e.current.setRowSelectionModel(eE)},[e,u,s,te,t.rowSelection]),m.useEffect(()=>{r(A)},[A,r]),m.useEffect(()=>{L.current&&(L.current=!1)},[])},vyt=e=>{const{classes:t}=e;return m.useMemo(()=>$e({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Bn,t),[t])},byt=(e,t)=>{const n={classes:t.classes},r=vyt(n),o=m.useCallback(i=>{const a=B({},Gw,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),s=t.checkboxSelection,l=i.lookup[op]!=null;return s&&!l?(i.lookup[op]=a,i.orderedFields=[op,...i.orderedFields]):!s&&l?(delete i.lookup[op],i.orderedFields=i.orderedFields.filter(c=>c!==op)):s&&l&&(i.lookup[op]=B({},a,i.lookup[op])),i},[e,r,t.checkboxSelection]);No(e,"hydrateColumns",o)},xyt=(e,t)=>{const n=t.sortModel??t.initialState?.sorting?.sortModel??[];return B({},e,{sorting:{sortModel:Mce(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},wyt=(e,t)=>{const n=Ji(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Mc,changeEvent:"sortModelChange"});const r=m.useCallback((O,D)=>{const N=Mc(e),$=N.findIndex(A=>A.field===O);let L=[...N];return $>-1?D?.sort==null?L.splice($,1):L.splice($,1,D):L=[...N,D],L},[e]),o=m.useCallback((O,D)=>{const $=Mc(e).find(L=>L.field===O.field);if($){const L=D===void 0?GK(O.sortingOrder??t.sortingOrder,$.sort):D;return L===void 0?void 0:B({},$,{sort:L})}return{field:O.field,sort:D===void 0?GK(O.sortingOrder??t.sortingOrder):D}},[e,t.sortingOrder]),i=m.useCallback((O,D)=>D==null||D.sortable===!1||t.disableColumnSorting?O:(D.sortingOrder||t.sortingOrder).some($=>!!$)?[...O,"columnMenuSortItem"]:O,[t.sortingOrder,t.disableColumnSorting]),a=m.useCallback(()=>{e.current.setState(O=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),B({},O,{sorting:B({},O.sorting,{sortedRows:m5(ka(e),la,!1)})});const D=Mc(e),N=Olt(D,e),$=e.current.applyStrategyProcessor("sorting",{sortRowList:N});return B({},O,{sorting:B({},O.sorting,{sortedRows:$})})}),e.current.publishEvent("sortedRowsSet")},[e,n,t.sortingMode]),s=m.useCallback(O=>{Mc(e)!==O&&(n.debug("Setting sort model"),e.current.setState(UK(O,t.disableMultipleColumnsSorting)),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),l=m.useCallback((O,D,N)=>{const $=e.current.getColumn(O),L=o($,D);let A;!N||t.disableMultipleColumnsSorting?A=L?.sort==null?[]:[L]:A=r($.field,L),e.current.setSortModel(A)},[e,r,o,t.disableMultipleColumnsSorting]),c=m.useCallback(()=>Mc(e),[e]),u=m.useCallback(()=>g5(e).map(D=>D.model),[e]),f=m.useCallback(()=>Hw(e),[e]),h=m.useCallback(O=>e.current.getSortedRowIds()[O],[e]);Nn(e,{getSortModel:c,getSortedRows:u,getSortedRowIds:f,getRowIdFromRowIndex:h,setSortModel:s,sortColumn:l,applySorting:a},"public");const y=m.useCallback((O,D)=>{const N=Mc(e);return!D.exportOnlyDirtyModels||t.sortModel!=null||t.initialState?.sorting?.sortModel!=null||N.length>0?B({},O,{sorting:{sortModel:N}}):O},[e,t.sortModel,t.initialState?.sorting?.sortModel]),x=m.useCallback((O,D)=>{const N=D.stateToRestore.sorting?.sortModel;return N==null?O:(e.current.setState(UK(N,t.disableMultipleColumnsSorting)),B({},O,{callbacks:[...O.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),S=m.useCallback(O=>{const D=ka(e),N=D[la],$=O.sortRowList?O.sortRowList(N.children.map(L=>D[L])):[...N.children];return N.footerId!=null&&$.push(N.footerId),$},[e]);No(e,"exportState",y),No(e,"restoreState",x),QE(e,xv,"sorting",S);const C=m.useCallback(({field:O,colDef:D},N)=>{if(!D.sortable||t.disableColumnSorting)return;const $=N.shiftKey||N.metaKey||N.ctrlKey;l(O,void 0,$)},[l,t.disableColumnSorting]),E=m.useCallback(({field:O,colDef:D},N)=>{!D.sortable||t.disableColumnSorting||N.key==="Enter"&&!N.ctrlKey&&!N.metaKey&&l(O,void 0,N.shiftKey)},[l,t.disableColumnSorting]),I=m.useCallback(()=>{const O=Mc(e),D=Jp(e);if(O.length>0){const N=O.filter($=>D[$.field]);N.length<O.length&&e.current.setSortModel(N)}},[e]),M=m.useCallback(O=>{O==="sorting"&&e.current.applySorting()},[e]);No(e,"columnMenu",i),jt(e,"columnHeaderClick",C),jt(e,"columnHeaderKeyDown",E),jt(e,"rowsSet",e.current.applySorting),jt(e,"columnsChange",I),jt(e,"activeStrategyProcessorChange",M),EP(()=>{e.current.applySorting()}),qn(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function $Y(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o<n)return o}const Syt=(e,t)=>{const n=eo(),r=Ji(e,"useGridScroll"),o=e.current.columnHeadersContainerRef,i=e.current.virtualScrollerRef,a=rt(e,Qm),s=m.useCallback(f=>{const h=Wr(e),g=vP(e),y=t.listView?[Qx(e)]:Uo(e);if(!(f.rowIndex==null)&&g===0||y.length===0)return!1;r.debug(`Scrolling to cell at row ${f.rowIndex}, col: ${f.colIndex} `);let S={};if(f.colIndex!==void 0){const C=Ym(e);let E;if(typeof f.rowIndex<"u"){const I=a[f.rowIndex]?.id,M=e.current.unstable_getCellColSpanInfo(I,f.colIndex);M&&!M.spannedByColSpan&&(E=M.cellProps.width)}typeof E>"u"&&(E=y[f.colIndex].computedWidth),S.left=$Y({containerSize:h.viewportOuterSize.width,scrollPosition:Math.abs(i.current.scrollLeft),elementSize:E,elementOffset:C[f.colIndex]})}if(f.rowIndex!==void 0){const C=TP(e),E=Gct(e),I=sue(e),M=t.pagination?f.rowIndex-E*I:f.rowIndex,O=C.positions[M+1]?C.positions[M+1]-C.positions[M]:C.currentPageTotalHeight-C.positions[M];S.top=$Y({containerSize:h.viewportInnerSize.height,scrollPosition:i.current.scrollTop,elementSize:O,elementOffset:C.positions[M]})}return S=e.current.unstable_applyPipeProcessors("scrollToIndexes",S,f),typeof S.left!==void 0||typeof S.top!==void 0?(e.current.scroll(S),!0):!1},[r,e,i,t.pagination,a,t.listView]),l=m.useCallback(f=>{if(i.current&&f.left!==void 0&&o.current){const h=n?-1:1;o.current.scrollLeft=f.left,i.current.scrollLeft=h*f.left,r.debug(`Scrolling left: ${f.left}`)}i.current&&f.top!==void 0&&(i.current.scrollTop=f.top,r.debug(`Scrolling top: ${f.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n,o,r]),c=m.useCallback(()=>i?.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);Nn(e,{scroll:l,scrollToIndexes:s,getScrollPosition:c},"public")};function Cyt(e,t){jr(e,"columnHeaderClick",t.onColumnHeaderClick),jr(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),jr(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),jr(e,"columnHeaderOver",t.onColumnHeaderOver),jr(e,"columnHeaderOut",t.onColumnHeaderOut),jr(e,"columnHeaderEnter",t.onColumnHeaderEnter),jr(e,"columnHeaderLeave",t.onColumnHeaderLeave),jr(e,"cellClick",t.onCellClick),jr(e,"cellDoubleClick",t.onCellDoubleClick),jr(e,"cellKeyDown",t.onCellKeyDown),jr(e,"preferencePanelClose",t.onPreferencePanelClose),jr(e,"preferencePanelOpen",t.onPreferencePanelOpen),jr(e,"menuOpen",t.onMenuOpen),jr(e,"menuClose",t.onMenuClose),jr(e,"rowDoubleClick",t.onRowDoubleClick),jr(e,"rowClick",t.onRowClick),jr(e,"stateChange",t.onStateChange)}function Eyt(e,t=166){let n,r;const o=()=>{n=void 0,e(...r)};function i(...a){r=a,n===void 0&&(n=setTimeout(o,t))}return i.clear=()=>{clearTimeout(n),n=void 0},i}const UB={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:" ",columnBufferPx:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:df.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:"error",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rows:[],rowSelection:!0,rowSpacingType:"margin",rowSpanning:!1,showCellVerticalBorder:!1,showColumnVerticalBorder:!1,showToolbar:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,virtualizeColumnsWithAutoRowHeight:!1},W0={width:0,height:0},Tyt={isReady:!1,root:W0,viewportOuterSize:W0,viewportInnerSize:W0,contentSize:W0,minimumSize:W0,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,groupHeaderHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},Pyt=(e,t,n)=>{const r=Tyt,o=Fw(n);return B({},e,{dimensions:B({},r,que(t,n,o,Vw(n)))})},Wue=Ft(Uo,Ym,(e,t)=>{const n=e.length;return n===0?0:nx(t[n-1]+e[n-1].computedWidth,1)});function Iyt(e,t){const n=Ji(e,"useResizeContainer"),r=m.useRef(!1),o=m.useRef(W0),i=rt(e,Vw),a=rt(e,Fw),s=rt(e,Wue),l=m.useRef(!0),{rowHeight:c,headerHeight:u,groupHeaderHeight:f,headerFilterHeight:h,headersTotalHeight:g,leftPinnedWidth:y,rightPinnedWidth:x}=que(t,e,a,i),S=m.useCallback(()=>Wr(e),[e]),C=m.useCallback(A=>{e.current.setState(F=>B({},F,{dimensions:A})),e.current.rootElementRef.current&&FY(e.current.rootElementRef.current,Wr(e))},[e]),E=m.useCallback(()=>{const A=Wr(e);if(!A.isReady)return 0;const F=ym(e);if(t.getRowHeight){const H=PP(e),Q=H.lastRowIndex-H.firstRowIndex;return Math.min(Q-1,F.rows.length)}const z=Math.floor(A.viewportInnerSize.height/c);return Math.min(z,F.rows.length)},[e,t.getRowHeight,c]),I=m.useCallback(()=>{if(l.current)return;const A=Oyt(e.current.mainElementRef.current,t.scrollbarSize),F=TP(e),z=g+F.pinnedTopRowsTotalHeight,H=F.pinnedBottomRowsTotalHeight,Q={width:s,height:nx(F.currentPageTotalHeight,1)};let G,V,Y=!1,X=!1;if(t.autoHeight)X=!1,Y=Math.round(s)>Math.round(o.current.width),G={width:o.current.width,height:z+H+Q.height},V={width:Math.max(0,G.width-(X?A:0)),height:Math.max(0,G.height-(Y?A:0))};else{G={width:o.current.width,height:o.current.height},V={width:Math.max(0,G.width),height:Math.max(0,G.height-z-H)};const le=Q,ce=V,se=le.width>ce.width,fe=le.height>ce.height;(se||fe)&&(X=fe,Y=le.width+(X?A:0)>ce.width,Y&&(X=le.height+A>ce.height)),X&&(V.width-=A),Y&&(V.height-=A)}const te=Math.max(G.width,s+(X?A:0)),U={width:s,height:z+Q.height+H},K={isReady:!0,root:o.current,viewportOuterSize:G,viewportInnerSize:V,contentSize:Q,minimumSize:U,hasScrollX:Y,hasScrollY:X,scrollbarSize:A,headerHeight:u,groupHeaderHeight:f,headerFilterHeight:h,rowWidth:te,rowHeight:c,columnsTotalWidth:s,leftPinnedWidth:y,rightPinnedWidth:x,headersTotalHeight:g,topContainerHeight:z,bottomContainerHeight:H},ee=e.current.state.dimensions;Gc(ee,K)||(C(K),Myt(K.viewportInnerSize,ee.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",K.viewportInnerSize),e.current.updateRenderContext?.())},[e,C,t.scrollbarSize,t.autoHeight,c,u,f,h,s,g,y,x]),M=ft(I),O=m.useMemo(()=>t.resizeThrottleMs>0?Eyt(()=>{M(),e.current.publishEvent("debouncedResize",o.current)},t.resizeThrottleMs):void 0,[e,t.resizeThrottleMs,M]);m.useEffect(()=>O?.clear,[O]);const D={getRootDimensions:S},N={updateDimensions:I,getViewportPageSize:E};qn(I,[I]),Nn(e,D,"public"),Nn(e,N,"private");const $=m.useCallback(A=>{FY(A,Wr(e))},[e]),L=m.useCallback(A=>{if(o.current=A,A.height===0&&!r.current&&!t.autoHeight&&!QD&&(n.error(["The parent DOM element of the Data Grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
-`)),r.current=!0),A.width===0&&!r.current&&!QD&&(n.error(["The parent DOM element of the Data Grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
-`)),r.current=!0),l.current||!O){l.current=!1,I();return}O()},[I,t.autoHeight,O,n]);jr(e,"rootMount",$),jr(e,"resize",L),jr(e,"debouncedResize",t.onResize)}function FY(e,t){const n=(r,o)=>e.style.setProperty(r,o);n("--DataGrid-hasScrollX",`${Number(t.hasScrollX)}`),n("--DataGrid-hasScrollY",`${Number(t.hasScrollY)}`),n("--DataGrid-scrollbarSize",`${t.scrollbarSize}px`),n("--DataGrid-rowWidth",`${t.rowWidth}px`),n("--DataGrid-columnsTotalWidth",`${t.columnsTotalWidth}px`),n("--DataGrid-leftPinnedWidth",`${t.leftPinnedWidth}px`),n("--DataGrid-rightPinnedWidth",`${t.rightPinnedWidth}px`),n("--DataGrid-headerHeight",`${t.headerHeight}px`),n("--DataGrid-headersTotalHeight",`${t.headersTotalHeight}px`),n("--DataGrid-topContainerHeight",`${t.topContainerHeight}px`),n("--DataGrid-bottomContainerHeight",`${t.bottomContainerHeight}px`),n("--height",`${t.rowHeight}px`)}function que(e,t,n,r){const o=Gce(e.rowHeight,UB.rowHeight);return{rowHeight:Math.floor(o*n),headerHeight:Math.floor(e.columnHeaderHeight*n),groupHeaderHeight:Math.floor((e.columnGroupHeaderHeight??e.columnHeaderHeight)*n),headerFilterHeight:Math.floor((e.headerFilterHeight??e.columnHeaderHeight)*n),columnsTotalWidth:Wue(t),headersTotalHeight:E5(t,e),leftPinnedWidth:r.left.reduce((i,a)=>i+a.computedWidth,0),rightPinnedWidth:r.right.reduce((i,a)=>i+a.computedWidth,0)}}const jY=new WeakMap;function Oyt(e,t){if(t!==void 0)return t;if(e===null)return 0;const n=jY.get(e);if(n!==void 0)return n;const o=yo(e).createElement("div");o.style.width="99px",o.style.height="99px",o.style.position="absolute",o.style.overflow="scroll",o.className="scrollDiv",e.appendChild(o);const i=o.offsetWidth-o.clientWidth;return e.removeChild(o),jY.set(e,i),i}function Myt(e,t){return e.width===t.width&&e.height===t.height}const Ayt=typeof globalThis.ResizeObserver<"u"?globalThis.ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Dyt=(e,t,n)=>{n.current.caches.rowsMeta={heights:new Map};const r=c5(n),o=vP(n),i=xP(n),a=Math.min(i.enabled?i.paginationModel.pageSize:o,o);return B({},e,{rowsMeta:{currentPageTotalHeight:a*r,positions:Array.from({length:a},(s,l)=>l*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0}})},Ryt=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=e.current.caches.rowsMeta.heights,a=m.useRef(-1),s=m.useRef(!1),l=m.useRef(!1),c=rt(e,Fw),u=T5(e),f=rt(e,Bw),h=rt(e,c5),g=A=>{let F=i.get(A);return F===void 0&&(F={content:h,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},i.set(A,F)),F},y=m.useCallback(A=>{const F=Wr(e).rowHeight,z=e.current.getRowHeightEntry(A.id);if(!n)z.content=F,z.needsFirstMeasurement=!1;else{const H=n(B({},A,{densityFactor:c}));if(H==="auto"){if(z.needsFirstMeasurement){const Q=o?o(B({},A,{densityFactor:c})):F;z.content=Q??F}s.current=!0,z.autoHeight=!0}else z.content=Gce(H,F),z.needsFirstMeasurement=!1,z.autoHeight=!1}if(r){const H=e.current.getRowIndexRelativeToVisibleRows(A.id),Q=r(B({},A,{isFirstVisible:H===0,isLastVisible:H===u.rows.length-1,indexRelativeToCurrentPage:H}));z.spacingTop=Q.top??0,z.spacingBottom=Q.bottom??0}else z.spacingTop=0,z.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",z,A),z},[e,u.rows,n,o,h,r,c]),x=m.useCallback(()=>{s.current=!1;const A=f.top.reduce((V,Y)=>{const X=y(Y);return V+X.content+X.spacingTop+X.spacingBottom+X.detail},0),F=f.bottom.reduce((V,Y)=>{const X=y(Y);return V+X.content+X.spacingTop+X.spacingBottom+X.detail},0),z=[],H=u.rows.reduce((V,Y)=>{z.push(V);const X=y(Y),te=X.content+X.spacingTop+X.spacingBottom+X.detail;return V+te},0);s.current||(a.current=1/0);const Q=A!==e.current.state.rowsMeta.pinnedTopRowsTotalHeight||F!==e.current.state.rowsMeta.pinnedBottomRowsTotalHeight||H!==e.current.state.rowsMeta.currentPageTotalHeight,G={currentPageTotalHeight:H,positions:z,pinnedTopRowsTotalHeight:A,pinnedBottomRowsTotalHeight:F};e.current.setState(V=>B({},V,{rowsMeta:G})),Q&&e.current.updateDimensions(),l.current=!0},[e,f,u.rows,y]),S=A=>i.get(A)?.content??h,C=(A,F)=>{const z=e.current.getRowHeightEntry(A),H=z.content!==F;z.needsFirstMeasurement=!1,z.content=F,l.current&&=!H},E=A=>i.get(A)?.autoHeight??!1,I=()=>a.current,M=A=>{s.current&&A>a.current&&(a.current=A)},O=()=>{i.clear(),x()},D=nd(()=>new Ayt(A=>{for(let F=0;F<A.length;F+=1){const z=A[F],H=z.borderBoxSize&&z.borderBoxSize.length>0?z.borderBoxSize[0].blockSize:z.contentRect.height,Q=z.target.__mui_id;if(xue(e)?.id===Q&&H===0)return;e.current.unstable_storeRowHeightMeasurement(Q,H)}l.current||e.current.requestPipeProcessorsApplication("rowHeight")})).current,N=(A,F)=>(A.__mui_id=F,D.observe(A),()=>D.unobserve(A));R5(e,"rowHeight",x),qn(()=>{x()},[x]);const $={unstable_getRowHeight:S,unstable_setLastMeasuredRowIndex:M,unstable_storeRowHeightMeasurement:C,resetRowHeights:O},L={hydrateRowsMeta:x,observeRowHeight:N,rowHasAutoHeight:E,getRowHeightEntry:g,getLastMeasuredRowIndex:I};Nn(e,$,"public"),Nn(e,L,"private")},kyt=e=>{const t=m.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=m.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(a=>{a()})},[e]);Nn(e,{exportState:t,restoreState:n},"public")},Nyt=e=>{const t=m.useRef({}),n=(s,l)=>t.current[s]?.[l],r=()=>{t.current={}},o=m.useCallback(({rowId:s,minFirstColumn:l,maxLastColumn:c,columns:u})=>{for(let f=l;f<c;f+=1){const h=_yt({apiRef:e,lookup:t.current,columnIndex:f,rowId:s,minFirstColumnIndex:l,maxLastColumnIndex:c,columns:u});h.colSpan>1&&(f+=h.colSpan-1)}},[e]),i={unstable_getCellColSpanInfo:n},a={resetColSpan:r,calculateColSpan:o};Nn(e,i,"public"),Nn(e,a,"private"),jt(e,"columnOrderChange",r)};function _yt(e){const{apiRef:t,lookup:n,columnIndex:r,rowId:o,minFirstColumnIndex:i,maxLastColumnIndex:a,columns:s}=e,l=s.length,c=s[r],u=t.current.getRow(o),f=t.current.getRowValue(u,c),h=typeof c.colSpan=="function"?c.colSpan(f,u,c,t):c.colSpan;if(!h||h===1)return q$(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:c.computedWidth}}),{colSpan:1};let g=c.computedWidth;for(let y=1;y<h;y+=1){const x=r+y;if(x>=i&&x<a){const S=s[x];g+=S.computedWidth,q$(n,o,r+y,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(r+h,l-1),leftVisibleCellIndex:r})}q$(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:h,width:g}})}return{colSpan:h}}function q$(e,t,n,r){e[t]||(e[t]={}),e[t][n]=r}const Kue=(e,t,n)=>{if(Nce(e)){if(n[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
-`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{Kue(i,[...t,r],n)})},GB=e=>{if(!e)return{};const t={};return e.forEach(n=>{Kue(n,[],t)}),t},WB=(e,t,n)=>{const r=l=>t[l]??[],o=[],i=Math.max(...e.map(l=>r(l).length)),a=(l,c,u)=>Gc(r(l).slice(0,u+1),r(c).slice(0,u+1)),s=(l,c)=>!!(n?.left&&n.left.includes(l)&&!n.left.includes(c)||n?.right&&!n.right.includes(l)&&n.right.includes(c));for(let l=0;l<i;l+=1){const c=e.reduce((u,f)=>{const h=r(f)[l]??null;if(u.length===0)return[{columnFields:[f],groupId:h}];const g=u[u.length-1],y=g.columnFields[g.columnFields.length-1];return g.groupId!==h||!a(y,f,l)||s(y,f)?[...u,{columnFields:[f],groupId:h}]:[...u.slice(0,u.length-1),{columnFields:[...g.columnFields,f],groupId:h}]},[]);o.push(c)}return o},Lyt=["groupId","children"],k5=e=>{let t={};return e.forEach(n=>{if(Nce(n))return;const{groupId:r,children:o}=n,i=He(n,Lyt);if(!r)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const a=B({},i,{groupId:r}),s=k5(o);if(s[r]!==void 0||t[r]!==void 0)throw new Error(`MUI X: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=B({},t,s,{[r]:a})}),B({},t)},$yt=(e,t,n)=>{if(!t.columnGroupingModel)return e;const r=ef(n),o=zw(n),i=k5(t.columnGroupingModel??[]),a=GB(t.columnGroupingModel??[]),s=WB(r,a,n.current.state.pinnedColumns??{}),l=o.length===0?0:Math.max(...o.map(c=>a[c]?.length??0));return B({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:a,headerStructure:s,maxDepth:l}})},Fyt=(e,t)=>{const n=m.useCallback(s=>pue(e)[s]??[],[e]),r=m.useCallback(()=>hue(e),[e]);Nn(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const i=m.useCallback(()=>{const s=GB(t.columnGroupingModel??[]);e.current.setState(l=>{const c=l.columns?.orderedFields??[],u=l.pinnedColumns??{},f=WB(c,s,u);return B({},l,{columnGrouping:B({},l.columnGrouping,{headerStructure:f})})})},[e,t.columnGroupingModel]),a=m.useCallback(s=>{const l=e.current.getPinnedColumns?.()??{},c=ef(e),u=zw(e),f=k5(s??[]),h=GB(s??[]),g=WB(c,h,l),y=u.length===0?0:Math.max(...u.map(x=>h[x]?.length??0));e.current.setState(x=>B({},x,{columnGrouping:{lookup:f,unwrappedGroupingModel:h,headerStructure:g,maxDepth:y}}))},[e]);jt(e,"columnIndexChange",i),jt(e,"columnsChange",()=>{a(t.columnGroupingModel)}),jt(e,"columnVisibilityModelChange",()=>{a(t.columnGroupingModel)}),m.useEffect(()=>{a(t.columnGroupingModel)},[a,t.columnGroupingModel])};function jyt(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function BY(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){const r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function zY(e,t,n,r){let o=e;return r==="Right"?o+=t-n.left:o+=n.right-t,o}function Byt(e,t,n){return n==="Left"?e-t.left:t.right-e}function zyt(e){return e==="Right"?"Left":"Right"}function Vyt(e,t){const n=e.classList.contains(re["columnSeparator--sideRight"])?"Right":"Left";return t?zyt(n):n}function VY(e){e.preventDefault(),e.stopImmediatePropagation()}function Hyt(e){const t=m.useRef(void 0),n=()=>vue(e),r=rt(e,n);return m.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=jyt()}return t.current}}function Uyt(e,t){if(e.length<4)return e;const n=e.slice();n.sort((s,l)=>s-l);const r=n[Math.floor(n.length*.25)],o=n[Math.floor(n.length*.75)-1],i=o-r,a=i<5?5:i*t;return n.filter(s=>s>r-a&&s<o+a)}function Gyt(e,t,n){const r={},o=e.current.rootElementRef.current;return o.classList.add(re.autosizing),n.forEach(i=>{const s=ept(e.current,i.field).map(y=>y.getBoundingClientRect().width??0),l=t.includeOutliers?s:Uyt(s,t.outliersFactor);if(t.includeHeaders){const y=Zft(e.current,i.field);if(y){const x=y.querySelector(`.${re.columnHeaderTitle}`),S=y.querySelector(`.${re.columnHeaderTitleContainerContent}`),C=y.querySelector(`.${re.iconButtonContainer}`),E=y.querySelector(`.${re.menuIcon}`),I=x??S,M=window.getComputedStyle(y,null),O=parseInt(M.paddingLeft,10)+parseInt(M.paddingRight,10),N=I.scrollWidth+1+O+(C?.clientWidth??0)+(E?.clientWidth??0);l.push(N)}}const c=i.minWidth!==-1/0&&i.minWidth!==void 0,u=i.maxWidth!==1/0&&i.maxWidth!==void 0,f=c?i.minWidth:0,h=u?i.maxWidth:1/0,g=l.length===0?0:Math.max(...l);r[i.field]=Ul(g,f,h)}),o.classList.remove(re.autosizing),r}const Wyt=e=>B({},e,{columnResize:{resizingColumnField:""}});function qyt(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const Kyt=(e,t)=>{const n=eo(),r=Ji(e,"useGridColumnResize"),o=nd(qyt).current,i=m.useRef(null),a=m.useRef(null),s=Ni(),l=m.useRef(void 0),c=L=>{r.debug(`Updating width to ${L} for col ${o.colDef.field}`);const A=o.columnHeaderElement.offsetWidth,F=L-A,z=L-o.initialColWidth;if(z>0){const G=o.initialTotalWidth+z;e.current.rootElementRef?.current?.style.setProperty("--DataGrid-rowWidth",`${G}px`)}o.colDef.computedWidth=L,o.colDef.width=L,o.colDef.flex=0,o.columnHeaderElement.style.width=`${L}px`;const H=o.headerFilterElement;H&&(H.style.width=`${L}px`),o.groupHeaderElements.forEach(G=>{const V=G;let Y;V.getAttribute("aria-colspan")==="1"?Y=`${L}px`:Y=`${V.offsetWidth+F}px`,V.style.width=Y}),o.cellElements.forEach(G=>{const V=G;let Y;V.getAttribute("aria-colspan")==="1"?Y=`${L}px`:Y=`${V.offsetWidth+F}px`,V.style.setProperty("--width",Y)});const Q=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);Q===nm.LEFT&&(B0(o.fillerLeft,"width",F),o.leftPinnedCellsAfter.forEach(G=>{B0(G,"left",F)}),o.leftPinnedHeadersAfter.forEach(G=>{B0(G,"left",F)})),Q===nm.RIGHT&&(B0(o.fillerRight,"width",F),o.rightPinnedCellsBefore.forEach(G=>{B0(G,"right",F)}),o.rightPinnedHeadersBefore.forEach(G=>{B0(G,"right",F)}))},u=L=>{if(C(),o.previousMouseClickEvent){const A=o.previousMouseClickEvent,F=A.timeStamp,z=A.clientX,H=A.clientY;if(L.timeStamp-F<300&&L.clientX===z&&L.clientY===H){o.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,L);return}}if(o.colDef){e.current.setColumnWidth(o.colDef.field,o.colDef.width),r.debug(`Updating col ${o.colDef.field} with new width: ${o.colDef.width}`);const A=Ku(e);o.groupHeaderElements.forEach(F=>{const z=Wft(F),H=F,G=`${z.reduce((V,Y)=>A.columnVisibilityModel[Y]!==!1?V+A.lookup[Y].computedWidth:V,0)}px`;H.style.width=G})}s.start(0,()=>{e.current.publishEvent("columnResizeStop",null,L)})},f=(L,A,F)=>{const z=e.current.rootElementRef.current;o.initialColWidth=L.computedWidth,o.initialTotalWidth=e.current.getRootDimensions().rowWidth,o.colDef=L,o.columnHeaderElement=Gft(e.current.columnHeadersContainerRef.current,L.field);const H=z.querySelector(`.${re.headerFilterRow} [data-field="${Zp(L.field)}"]`);H&&(o.headerFilterElement=H),o.groupHeaderElements=qft(e.current.columnHeadersContainerRef?.current,L.field),o.cellElements=Kft(o.columnHeaderElement,e.current),o.fillerLeft=hY(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),o.fillerRight=hY(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const Q=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);o.leftPinnedCellsAfter=Q!==nm.LEFT?[]:Yft(e.current,o.columnHeaderElement,n),o.rightPinnedCellsBefore=Q!==nm.RIGHT?[]:Qft(e.current,o.columnHeaderElement,n),o.leftPinnedHeadersAfter=Q!==nm.LEFT?[]:Xft(e.current,o.columnHeaderElement,n),o.rightPinnedHeadersBefore=Q!==nm.RIGHT?[]:Jft(e.current,o.columnHeaderElement,n),a.current=Vyt(A,n),i.current=Byt(F,o.columnHeaderElement.getBoundingClientRect(),a.current)},h=ft(u),g=ft(L=>{if(L.buttons===0){h(L);return}let A=zY(i.current,L.clientX,o.columnHeaderElement.getBoundingClientRect(),a.current);A=Ul(A,o.colDef.minWidth,o.colDef.maxWidth),c(A);const F={element:o.columnHeaderElement,colDef:o.colDef,width:A};e.current.publishEvent("columnResize",F,L)}),y=ft(L=>{BY(L,l.current)&&u(L)}),x=ft(L=>{const A=BY(L,l.current);if(!A)return;if(L.type==="mousemove"&&L.buttons===0){y(L);return}let F=zY(i.current,A.x,o.columnHeaderElement.getBoundingClientRect(),a.current);F=Ul(F,o.colDef.minWidth,o.colDef.maxWidth),c(F);const z={element:o.columnHeaderElement,colDef:o.colDef,width:F};e.current.publishEvent("columnResize",z,L)}),S=ft(L=>{const A=XD(L.target,re["columnSeparator--resizable"]);if(!A)return;const F=L.changedTouches[0];F!=null&&(l.current=F.identifier);const z=XD(L.target,re.columnHeader),H=Uft(z),Q=e.current.getColumn(H);r.debug(`Start Resize on col ${Q.field}`),e.current.publishEvent("columnResizeStart",{field:H},L),f(Q,A,F.clientX);const G=yo(L.currentTarget);G.addEventListener("touchmove",x),G.addEventListener("touchend",y)}),C=m.useCallback(()=>{const L=yo(e.current.rootElementRef.current);L.body.style.removeProperty("cursor"),L.removeEventListener("mousemove",g),L.removeEventListener("mouseup",h),L.removeEventListener("touchmove",x),L.removeEventListener("touchend",y),setTimeout(()=>{L.removeEventListener("click",VY,!0)},100),o.columnHeaderElement&&(o.columnHeaderElement.style.pointerEvents="unset")},[e,o,g,h,x,y]),E=m.useCallback(({field:L})=>{e.current.setState(A=>B({},A,{columnResize:B({},A.columnResize,{resizingColumnField:L})}))},[e]),I=m.useCallback(()=>{e.current.setState(L=>B({},L,{columnResize:B({},L.columnResize,{resizingColumnField:""})}))},[e]),M=ft(({colDef:L},A)=>{if(A.button!==0||!A.currentTarget.classList.contains(re["columnSeparator--resizable"]))return;A.preventDefault(),r.debug(`Start Resize on col ${L.field}`),e.current.publishEvent("columnResizeStart",{field:L.field},A),f(L,A.currentTarget,A.clientX);const F=yo(e.current.rootElementRef.current);F.body.style.cursor="col-resize",o.previousMouseClickEvent=A.nativeEvent,F.addEventListener("mousemove",g),F.addEventListener("mouseup",h),F.addEventListener("click",VY,!0)}),O=ft((L,A)=>{if(t.disableAutosize||A.button!==0)return;const F=e.current.state.columns.lookup[L.field];F.resizable!==!1&&e.current.autosizeColumns(B({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[F.field]}))}),D=Hyt(e),N=m.useRef(!1),$=m.useCallback(async L=>{if(!e.current.rootElementRef?.current||N.current)return;N.current=!0;const F=Ku(e),z=B({},Odt,L,{columns:L?.columns??F.orderedFields});z.columns=z.columns.filter(Q=>F.columnVisibilityModel[Q]!==!1);const H=z.columns.map(Q=>e.current.state.columns.lookup[Q]);try{!t.disableVirtualization&&z.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await D());const Q=Gyt(e,z,H),G=H.map(V=>B({},V,{width:Q[V.field],computedWidth:Q[V.field],flex:0}));if(z.expand){const Y=F.orderedFields.map(K=>F.lookup[K]).filter(K=>F.columnVisibilityModel[K.field]!==!1).reduce((K,ee)=>K+(Q[ee.field]??ee.computedWidth??ee.width),0),U=e.current.getRootDimensions().viewportInnerSize.width-Y;if(U>0){const K=U/(G.length||1);G.forEach(ee=>{ee.width+=K,ee.computedWidth+=K})}}e.current.updateColumns(G),G.forEach((V,Y)=>{if(V.width!==H[Y].width){const X=V.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(V.field),colDef:V,width:X})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),N.current=!1}},[e,D,t.disableVirtualization]);m.useEffect(()=>C,[C]),gz(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),yue(e,()=>e.current.columnHeadersContainerRef?.current,"touchstart",S,{passive:!0}),Nn(e,{autosizeColumns:$},"public"),jt(e,"columnResizeStop",I),jt(e,"columnResizeStart",E),jt(e,"columnSeparatorMouseDown",M),jt(e,"columnSeparatorDoubleClick",O),jr(e,"columnResize",t.onColumnResize),jr(e,"columnWidthChange",t.onColumnWidthChange)};function B0(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}function Yyt(e,t){return e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?null:e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex>t.lastRowIndex?{firstRowIndex:t.lastRowIndex,lastRowIndex:e.lastRowIndex}:e.firstRowIndex<t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?{firstRowIndex:e.firstRowIndex,lastRowIndex:t.firstRowIndex-1}:e}function HY(e){return e.firstRowIndex!==0||e.lastRowIndex!==0}const K$=(e,t,n)=>{if(!e)return null;let r=e[t.field];const o=t.rowSpanValueGetter??t.valueGetter;return o&&(r=o(r,e,t,n)),r},rx={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},tR={firstRowIndex:0,lastRowIndex:0},Qyt=new Set([op,"__reorder__",b2]),UY=20,Yue=(e,t,n,r,o,i,a)=>{const s=i?{}:B({},e.current.state.rowSpanning.spannedCells),l=i?{}:B({},e.current.state.rowSpanning.hiddenCells),c=i?{}:B({},e.current.state.rowSpanning.hiddenCellOriginMap);return i&&(a=tR),t.forEach(u=>{if(!Qyt.has(u.field)){for(let f=o.firstRowIndex;f<o.lastRowIndex;f+=1){const h=n[f];if(l[h.id]?.[u.field])continue;const g=K$(h.model,u,e);if(g==null)continue;let y=h.id,x=f,S=0;const C=[];if(f===o.firstRowIndex){let I=f-1,M=n[I];for(;I>=r.firstRowIndex&&M&&K$(M.model,u,e)===g;){const O=n[I+1];l[O.id]?l[O.id][u.field]=!0:l[O.id]={[u.field]:!0},C.push(f),S+=1,y=M.id,x=I,I-=1,M=n[I]}}C.forEach(I=>{c[I]?c[I][u.field]=x:c[I]={[u.field]:x}});let E=f+1;for(;E<=r.lastRowIndex&&n[E]&&K$(n[E].model,u,e)===g;){const I=n[E];l[I.id]?l[I.id][u.field]=!0:l[I.id]={[u.field]:!0},c[E]?c[E][u.field]=x:c[E]={[u.field]:x},E+=1,S+=1}S>0&&(s[y]?s[y][u.field]=S+1:s[y]={[u.field]:S+1})}a={firstRowIndex:Math.min(a.firstRowIndex,o.firstRowIndex),lastRowIndex:Math.max(a.lastRowIndex,o.lastRowIndex)}}}),{spannedCells:s,hiddenCells:l,hiddenCellOriginMap:c,processedRange:a}},Que=(e,t)=>{const n=Ly(t).length;if(e.pagination){const r=sue(t);let o=UY;return r>0&&(o=r-1),{firstRowIndex:0,lastRowIndex:Math.min(o,n)}}return{firstRowIndex:0,lastRowIndex:Math.min(UY,n)}},Xyt=(e,t,n)=>{if(!t.rowSpanning)return B({},e,{rowSpanning:rx});const r=e.rows.dataRowIds||[],o=e.columns.orderedFields||[],i=e.rows.dataRowIdToModelLookup,a=e.columns.lookup,s=!!e.filter.filterModel.items.length||!!e.filter.filterModel.quickFilterValues?.length;if(!r.length||!o.length||!i||!a||s)return B({},e,{rowSpanning:rx});const l=Que(t,n),c=r.map(y=>({id:y,model:i[y]})),u=o.map(y=>a[y]),{spannedCells:f,hiddenCells:h,hiddenCellOriginMap:g}=Yue(n,u,c,l,l,!0,tR);return B({},e,{rowSpanning:{spannedCells:f,hiddenCells:h,hiddenCellOriginMap:g}})},Jyt=(e,t)=>{const n=nd(()=>e.current.state.rowSpanning!==rx?Que(t,e):tR),r=m.useCallback((i,a=!1)=>{const{range:s,rows:l}=ym(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(s===null||!HY(i))return;a&&(n.current=tR);const c=Yyt({firstRowIndex:i.firstRowIndex,lastRowIndex:Math.min(i.lastRowIndex,s.lastRowIndex+1)},n.current);if(c===null)return;const u=Uo(e),{spannedCells:f,hiddenCells:h,hiddenCellOriginMap:g,processedRange:y}=Yue(e,u,l,s,c,a,n.current);n.current=y;const x=Object.keys(f).length,S=Object.keys(h).length,C=Object.keys(e.current.state.rowSpanning.spannedCells).length,E=Object.keys(e.current.state.rowSpanning.hiddenCells).length;!(a||x!==C||S!==E)||x===0&&C===0||e.current.setState(O=>B({},O,{rowSpanning:{spannedCells:f,hiddenCells:h,hiddenCellOriginMap:g}}))},[e,n,t.pagination,t.paginationMode]),o=m.useCallback(()=>{const i=PP(e);HY(i)&&r(i,!0)},[e,r]);jt(e,"renderedRowsIntervalChange",sm(t.rowSpanning,r)),jt(e,"sortedRowsSet",sm(t.rowSpanning,o)),jt(e,"paginationModelChange",sm(t.rowSpanning,o)),jt(e,"filteredRowsSet",sm(t.rowSpanning,o)),jt(e,"columnsChange",sm(t.rowSpanning,o)),m.useEffect(()=>{t.rowSpanning?e.current.state.rowSpanning===rx&&o():e.current.state.rowSpanning!==rx&&e.current.setState(i=>B({},i,{rowSpanning:rx}))},[e,o,t.rowSpanning])},Zyt=(e,t,n)=>B({},e,{listViewColumn:t.listViewColumn?B({},t.listViewColumn,{computedWidth:qB(n)}):void 0});function evt(e,t){const n=()=>{e.current.setState(i=>i.listViewColumn?B({},i,{listViewColumn:B({},i.listViewColumn,{computedWidth:qB(e)})}):i)},r=m.useRef(null);jt(e,"viewportInnerSizeChange",i=>{r.current!==i.width&&(r.current=i.width,n())}),jt(e,"columnVisibilityModelChange",n),qn(()=>{const i=t.listViewColumn;i&&e.current.setState(a=>B({},a,{listViewColumn:B({},i,{computedWidth:qB(e)})}))},[e,t.listViewColumn]),m.useEffect(()=>{t.listView&&t.listViewColumn},[t.listView,t.listViewColumn])}function qB(e){return Wr(e).viewportInnerSize.width}const tvt=Ft(ji,Mc,sa,(e,t,n)=>({groupKeys:[],paginationModel:n,sortModel:t,filterModel:e,start:n.page*n.pageSize,end:n.page*n.pageSize+n.pageSize-1}));let Y$=function(e){return e.Default="set-new-rows",e.LazyLoading="replace-row-range",e}({});class KB{constructor(t){this.chunkSize=void 0,this.getCacheKeys=n=>{if(this.chunkSize<1||typeof n.start!="number")return[n];const r=[];for(let o=n.start;o<n.end;o+=this.chunkSize){const i=Math.min(o+this.chunkSize-1,n.end);r.push(B({},n,{start:o,end:i}))}return r},this.splitResponse=(n,r)=>{const o=this.getCacheKeys(n),i=new Map;return o.forEach(a=>{const s=a.end===n.end,l=B({},r,{pageInfo:B({},r.pageInfo,{hasNextPage:r.pageInfo?.hasNextPage!==void 0&&!s?!0:r.pageInfo?.hasNextPage,nextCursor:r.pageInfo?.nextCursor!==void 0&&!s?r.rows[a.end+1].id:r.pageInfo?.nextCursor}),rows:typeof a.start!="number"||typeof n.start!="number"?r.rows:r.rows.slice(a.start-n.start,a.end-n.start+1)});i.set(a,l)}),i},this.chunkSize=t}}KB.mergeResponses=e=>e.length===1?e[0]:e.reduce((t,n)=>({rows:[...t.rows,...n.rows],rowCount:n.rowCount,pageInfo:n.pageInfo}),{rows:[],rowCount:0,pageInfo:{}});const nvt={clear:()=>{},get:()=>{},set:()=>{}};function GY(e,t={}){return e===null?nvt:e??new Rdt(t)}const rvt=(e,t,n={})=>{const r=m.useCallback(()=>{e.current.setStrategyAvailability(cm.DataSource,Y$.Default,t.dataSource?()=>!0:()=>!1)},[e,t.dataSource]),[o,i]=m.useState(!1),a=rt(e,sa),s=m.useRef(0),l=t.onDataSourceError,c=nd(()=>{const O=t.pageSizeOptions.map(N=>typeof N=="number"?N:N.value).sort((N,$)=>N-$),D=Math.min(a.pageSize,O[0]);return new KB(D)}).current,[u,f]=m.useState(()=>GY(t.dataSourceCache,n.cacheOptions)),h=m.useCallback(async(O,D)=>{const N=t.dataSource?.getRows;if(!N)return;if(O&&O!==la&&t.signature!=="DataGrid"){n.fetchRowChildren?.([O]);return}n.clearDataSourceState?.();const $=B({},tvt(e),e.current.unstable_applyPipeProcessors("getRowsParams",{}),D),A=c.getCacheKeys($).map(z=>u.get(z));if(A.every(z=>z!==void 0)){e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:KB.mergeResponses(A),fetchParams:$});return}(o||e.current.getRowsCount()===0)&&e.current.setLoading(!0);const F=s.current+1;s.current=F;try{const z=await N($);c.splitResponse($,z).forEach((Q,G)=>u.set(G,Q)),s.current===F&&e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:z,fetchParams:$})}catch(z){s.current===F&&(e.current.applyStrategyProcessor("dataSourceRowsUpdate",{error:z,fetchParams:$}),typeof l=="function"&&l(new kdt({message:z?.message,params:$,cause:z})))}finally{o&&s.current===F&&e.current.setLoading(!1)}},[c,u,e,o,t.dataSource?.getRows,l,n,t.signature]),g=m.useCallback(()=>{i(e.current.getActiveStrategy(cm.DataSource)===Y$.Default)},[e]),y=m.useCallback(O=>{if("error"in O){e.current.setRows([]);return}const{response:D}=O;D.rowCount!==void 0&&e.current.setRowCount(D.rowCount),e.current.setRows(D.rows),e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:O.fetchParams,response:D},!0)},[e]),x=t.dataSource?.updateRow,S=n.handleEditRow,C=m.useCallback(async O=>{if(x)try{const D=await x(O);return typeof S=="function"?(S(O,D),D):(e.current.updateNestedRows([D],[]),D&&!Gc(D,O.previousRow)&&e.current.dataSource.cache.clear(),D)}catch(D){throw typeof l=="function"&&l(new Ndt({message:D?.message,params:O,cause:D})),D}},[e,x,l,S]),E={dataSource:{fetchRows:h,cache:u,editRow:C}},I=m.useMemo(()=>Sv(h,0),[h]),M=m.useRef(!0);return m.useEffect(()=>{if(M.current){M.current=!1;return}if(t.dataSourceCache===void 0)return;const O=GY(t.dataSourceCache,n.cacheOptions);f(D=>D!==O?O:D)},[t.dataSourceCache,n.cacheOptions]),m.useEffect(()=>{t.dataSource&&(e.current.dataSource.cache.clear(),e.current.dataSource.fetchRows())},[e,t.dataSource]),{api:{public:E},debouncedFetchRows:I,strategyProcessor:{strategyName:Y$.Default,group:"dataSourceRowsUpdate",processor:y},setStrategyAvailability:r,cacheChunkManager:c,cache:u,events:{strategyAvailabilityChange:g,sortModelChange:sm(o,()=>I()),filterModelChange:sm(o,()=>I()),paginationModelChange:sm(o,()=>I())}}},ovt=(e,t)=>{const{api:n,strategyProcessor:r,events:o,setStrategyAvailability:i}=rvt(e,t);Nn(e,n.public,"public"),QE(e,r.strategyName,r.group,r.processor),Object.entries(o).forEach(([a,s])=>{jt(e,a,s)}),m.useEffect(()=>{i()},[i])},ivt=(e,t)=>{wgt(e,t),byt(e,t),hyt(e),Fi(bgt,e,t),Fi(gyt,e,t),Fi(Mgt,e,t),Fi(cyt,e,t),Fi(Xgt,e,t),Fi(syt,e,t),Fi(Ugt,e,t),Fi(xyt,e,t),Fi(Zgt,e,t),Fi(Bgt,e,t),Fi(Xyt,e,t),Fi(Dgt,e,t),Fi(Wyt,e,t),Fi(Igt,e,t),Fi($yt,e,t),Fi(Vut,e,t),Fi(Pyt,e,t),Fi(Dyt,e,t),Fi(Zyt,e,t),Kgt(e,t),yyt(e,t),Agt(e,t),uyt(e,t),Jyt(e,t),myt(e,t),Nyt(e),Fyt(e,t),lyt(e,t),Ggt(e,t),eyt(e,t),Hgt(e,t),wyt(e,t),Rgt(e,t),Kyt(e,t),Jgt(e,t),Ryt(e,t),Syt(e,t),Ogt(e),Ngt(e,t),jgt(e,t),Pgt(e,t),Iyt(e,t),Cyt(e,t),kyt(e),Hut(e,t),evt(e,t),ovt(e,t)},avt=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:i,showRightBorder:a,groupId:s,pinnedPosition:l}=e,c={root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",a&&"columnHeader--withRightBorder",i&&"columnHeader--withLeftBorder","withBorderColor",s===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",l===Wn.LEFT&&"columnHeader--pinnedLeft",l===Wn.RIGHT&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return $e(c,Bn,t)};function svt(e){const{groupId:t,width:n,depth:r,maxDepth:o,fields:i,height:a,colIndex:s,hasFocus:l,tabIndex:c,isLastColumn:u,pinnedPosition:f,pinnedOffset:h}=e,g=Ot(),y=eo(),x=m.useRef(null),S=wn(),C=rt(S,hue),E=t?C[t]:{},{headerName:I=t??"",description:M="",headerAlign:O=void 0}=E;let D;const N=t&&C[t]?.renderHeaderGroup,$=m.useMemo(()=>({groupId:t,headerName:I,description:M,depth:r,maxDepth:o,fields:i,colIndex:s,isLastColumn:u}),[t,I,M,r,o,i,s,u]);t&&N&&(D=N($));const L=B({},e,{classes:g.classes,headerAlign:O,depth:r,isDragging:!1}),A=I??t,F=_n(),z=t===null?`empty-group-cell-${F}`:t,H=avt(L);m.useLayoutEffect(()=>{l&&(x.current.querySelector('[tabindex="0"]')||x.current)?.focus()},[S,l]);const Q=m.useCallback(X=>te=>{IP(te)||S.current.publishEvent(X,$,te)},[S,$]),G=m.useMemo(()=>({onKeyDown:Q("columnGroupHeaderKeyDown"),onFocus:Q("columnGroupHeaderFocus"),onBlur:Q("columnGroupHeaderBlur")}),[Q]),V=typeof E.headerClassName=="function"?E.headerClassName($):E.headerClassName,Y=m.useMemo(()=>I2(B({},e.style),y,f,h),[f,h,e.style,y]);return R.jsx(_ue,B({ref:x,classes:H,columnMenuOpen:!1,colIndex:s,height:a,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:D,headerClassName:V,description:M,elementId:z,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:A,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`,style:Y},G))}const WY=ue("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow"})({display:"flex"}),lvt=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:i,columnHeaderFocus:a,columnGroupHeaderFocus:s,headerGroupingMaxDepth:l,columnMenuState:c,columnVisibility:u,columnGroupsHeaderStructure:f,hasOtherElementInTabSequence:h}=e,[g,y]=m.useState(""),[x,S]=m.useState(""),C=oc(),E=Ot(),I=rt(C,pue),M=rt(C,Ym),O=rt(C,zut),D=rt(C,Vw),N=rt(C,Jp),$=wue(M,O,D.left.length),L=rt(C,h2),A=rt(C,Cce),F=rt(C,Zst),z=rt(C,elt),H=rt(C,Ece),Q=m.useCallback(fe=>S(fe.field),[]),G=m.useCallback(()=>S(""),[]),V=m.useCallback(fe=>y(fe.field),[]),Y=m.useCallback(()=>y(""),[]),X=m.useMemo(()=>D.left.length?{firstColumnIndex:0,lastColumnIndex:D.left.length}:null,[D.left.length]),te=m.useMemo(()=>D.right.length?{firstColumnIndex:t.length-D.right.length,lastColumnIndex:t.length}:null,[D.right.length,t.length]);jt(C,"columnResizeStart",Q),jt(C,"columnResizeStop",G),jt(C,"columnHeaderDragStart",V),jt(C,"columnHeaderDragEnd",Y);const U=fe=>{const{renderContext:we=O}=fe||{},Oe=we.firstColumnIndex,he=we.lastColumnIndex;return{renderedColumns:t.slice(Oe,he),firstColumnToRender:Oe,lastColumnToRender:he}},K=(fe,we,Oe,he=!1)=>{const me=fe?.position===Wn.RIGHT,ye=fe?.position===void 0,ae=D.right.length>0&&me||D.right.length===0&&ye,Se=$-Oe;return R.jsxs(m.Fragment,{children:[ye&&R.jsx("div",{role:"presentation",style:{width:Se}}),we,ye&&R.jsx("div",{role:"presentation",className:ge(re.filler,he&&re["filler--borderBottom"])}),ae&&R.jsx(D5,{header:!0,pinnedRight:me,borderBottom:he,borderTop:!1})]})},ee=(fe,we={})=>{const{renderedColumns:Oe,firstColumnToRender:he}=U(fe),me=[];for(let ye=0;ye<Oe.length;ye+=1){const ae=Oe[ye],Se=he+ye,Ie=Se===0,Re=o!==null&&o.field===ae.field||Ie&&!h?0:-1,ke=a!==null&&a.field===ae.field,Te=c.open&&c.field===ae.field,Ce=fe?.position,Ze=Z1(Ce,ae.computedWidth,Se,M,L,H),Me=Ce===Wn.RIGHT?Oe[ye-1]:Oe[ye+1],_e=Me?a!==null&&a.field===Me.field:!1,pe=Se+1===M.length-D.right.length,je=ye,Ke=Oe.length,et=eR(Ce,je),nt=ZD(Ce,je,Ke,E.showColumnVerticalBorder,A);me.push(R.jsx(ppt,B({},n[ae.field],{columnMenuOpen:Te,filterItemsCounter:r[ae.field]&&r[ae.field].length,headerHeight:F,isDragging:ae.field===g,colDef:ae,colIndex:Se,isResizing:x===ae.field,isLast:Se===M.length-1,hasFocus:ke,tabIndex:Re,pinnedPosition:Ce,pinnedOffset:Ze,isLastUnpinned:pe,isSiblingFocused:_e,showLeftBorder:et,showRightBorder:nt},we),ae.field))}return K(fe,me,0)},le=()=>R.jsxs(WY,{role:"row","aria-rowindex":l+1,ownerState:E,className:re["row--borderBottom"],style:{height:F},children:[X&&ee({position:Wn.LEFT,renderContext:X},{disableReorder:!0}),ee({renderContext:O}),te&&ee({position:Wn.RIGHT,renderContext:te},{disableReorder:!0,separatorSide:M5.Left})]}),ce=({depth:fe,params:we})=>{const Oe=U(we);if(Oe.renderedColumns.length===0)return null;const{firstColumnToRender:he,lastColumnToRender:me}=Oe,ye=f[fe],ae=t[he].field,Se=I[ae]?.[fe]??null,Ie=ye.findIndex(({groupId:Ke,columnFields:et})=>Ke===Se&&et.includes(ae)),Re=t[me-1].field,ke=I[Re]?.[fe]??null,Te=ye.findIndex(({groupId:Ke,columnFields:et})=>Ke===ke&&et.includes(Re)),Ce=ye.slice(Ie,Te+1).map(Ke=>B({},Ke,{columnFields:Ke.columnFields.filter(et=>u[et]!==!1)})).filter(Ke=>Ke.columnFields.length>0),Ze=Ce[0].columnFields.indexOf(ae),_e=Ce[0].columnFields.slice(0,Ze).reduce((Ke,et)=>{const nt=N[et];return Ke+(nt.computedWidth??0)},0);let pe=he;const je=Ce.map(({groupId:Ke,columnFields:et},nt)=>{const ot=s!==null&&s.depth===fe&&et.includes(s.field),it=i!==null&&i.depth===fe&&et.includes(i.field)?0:-1,tt={width:et.reduce((Gt,ht)=>Gt+N[ht].computedWidth,0),fields:et,colIndex:pe},vt=we.position,Je=Z1(vt,tt.width,pe,M,L,H);pe+=et.length;let Mt=nt;return vt===Wn.LEFT&&(Mt=pe-1),R.jsx(svt,{groupId:Ke,width:tt.width,fields:tt.fields,colIndex:tt.colIndex,depth:fe,isLastColumn:nt===Ce.length-1,maxDepth:l,height:z,hasFocus:ot,tabIndex:it,pinnedPosition:vt,pinnedOffset:Je,showLeftBorder:eR(vt,Mt),showRightBorder:ZD(vt,Mt,Ce.length,E.showColumnVerticalBorder,A)},nt)});return K(we,je,_e)};return{renderContext:O,leftRenderContext:X,rightRenderContext:te,pinnedColumns:D,visibleColumns:t,columnPositions:M,getFillers:K,getColumnHeadersRow:le,getColumnsToRender:U,getColumnGroupHeadersRows:()=>{if(l===0)return null;const fe=[];for(let we=0;we<l;we+=1)fe.push(R.jsxs(WY,{role:"row","aria-rowindex":we+1,ownerState:E,style:{height:z},children:[X&&ce({depth:we,params:{position:Wn.LEFT,renderContext:X,maxLastColumn:X.lastColumnIndex}}),ce({depth:we,params:{renderContext:O}}),te&&ce({depth:we,params:{position:Wn.RIGHT,renderContext:te,maxLastColumn:te.lastColumnIndex}})]},we));return fe},getPinnedCellOffset:Z1,isDragging:!!g,getInnerProps:()=>({role:"rowgroup"})}},cvt=["className"],uvt=e=>{const{classes:t}=e;return $e({root:["columnHeaders"]},Bn,t)},dvt=sr("div",{name:"MuiDataGrid",slot:"ColumnHeaders"})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),fvt=rn(function(t,n){const{className:r}=t,o=He(t,cvt),i=Ot(),a=uvt(i);return R.jsx(dvt,B({className:ge(a.root,r),ownerState:i},o,{role:"presentation",ref:n}))}),pvt=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],hvt=rn(function(t,n){const{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:f,columnVisibility:h,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:y}=t,x=He(t,pvt),{getInnerProps:S,getColumnHeadersRow:C,getColumnGroupHeadersRows:E}=lvt({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:f,columnVisibility:h,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:y});return R.jsxs(fvt,B({},x,S(),{ref:n,children:[E(),C()]}))}),mvt=Qp(hvt);function gvt(e){return null}function yvt(e){return null}const vvt=rn(function(t,n){const o=wn().current.getLocaleText("noResultsOverlayLabel");return R.jsx(O2,B({},t,{ref:n,children:o}))}),bvt=new TextEncoder;let EA=2*1024,tE=new ArrayBuffer(EA),Q$=new Uint8Array(tE),my=new Int32Array(tE);const xvt=wvt;function wvt(e){const t=e.length*2;t>EA&&(EA=t+(4-t%4),tE=new ArrayBuffer(EA),Q$=new Uint8Array(tE),my=new Int32Array(tE));const n=bvt.encodeInto(e,Q$).written,r=0,o=n|0;let i=0,a=(r+o|0)+374761393|0;if(o<16)for(;(i+3|0)<o;i=i+4|0)a=Math.imul(Du(a+Math.imul(my[i]|0,3266489917)|0,17)|0,668265263);else{let s=r+606290984|0,l=r+2246822519|0,c=r,u=r-2654435761|0;for(;(i+15|0)<o;i=i+16|0)s=Math.imul(Du(s+Math.imul(my[i+0|0]|0,2246822519)|0,13)|0,2654435761),l=Math.imul(Du(l+Math.imul(my[i+4|0]|0,2246822519)|0,13)|0,2654435761),c=Math.imul(Du(c+Math.imul(my[i+8|0]|0,2246822519)|0,13)|0,2654435761),u=Math.imul(Du(u+Math.imul(my[i+12|0]|0,2246822519)|0,13)|0,2654435761);for(a=(((Du(s,1)|0+Du(l,7)|0)+Du(c,12)|0)+Du(u,18)|0)+o|0;(i+3|0)<o;i=i+4|0)a=Math.imul(Du(a+Math.imul(my[i]|0,3266489917)|0,17)|0,668265263)}for(;i<o;i=i+1|0)a=Math.imul(Du(a+Math.imul(Q$[i]|0,374761393)|0,11)|0,2654435761);return a=Math.imul(a^a>>>15,2246822519),a=Math.imul(a^a>>>13,3266489917),((a^a>>>16)>>>0).toString()}function Du(e,t){return e<<t|e>>>32-t}function Svt(e){const t=new WeakSet;return JSON.stringify(e,(n,r)=>{if(r!==null&&typeof r=="object"){if(t.has(r))return null;t.add(r)}return r})}function Cvt(){const e=Po();return m.useMemo(()=>{const t=xvt(Svt(e)),n=Evt(e);return{id:t,variables:n}},[e])}function Evt(e){const t=Pvt(e),n=e.palette.DataGrid,r=n?.bg??(e.vars||e).palette.background.default,o=n?.headerBg??r,i=n?.pinnedBg??r,a=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:Kt(e.palette.background.default,e.palette.action.disabledOpacity),s=e.palette.mode==="dark"?`color-mix(in srgb, ${(e.vars||e).palette.background.paper} 95%, #fff)`:(e.vars||e).palette.background.paper,l=e.vars?`rgb(${e.vars.palette.primary.mainChannel})`:e.palette.primary.main,c=Tvt(e),u=e.vars?.font?.body2??X$(e.typography.body2),f=e.vars?.font?.caption??X$(e.typography.caption),h=e.vars?.font?.body1??X$(e.typography.body1),g=Rt.keys;return{[g.spacingUnit]:e.vars?e.vars.spacing??e.spacing(1):e.spacing(1),[g.colors.border.base]:t,[g.colors.background.base]:r,[g.colors.background.overlay]:s,[g.colors.background.backdrop]:a,[g.colors.foreground.base]:(e.vars||e).palette.text.primary,[g.colors.foreground.muted]:(e.vars||e).palette.text.secondary,[g.colors.foreground.accent]:(e.vars||e).palette.primary.dark,[g.colors.foreground.disabled]:(e.vars||e).palette.text.disabled,[g.colors.foreground.error]:(e.vars||e).palette.error.dark,[g.colors.interactive.hover]:(e.vars||e).palette.action.hover,[g.colors.interactive.hoverOpacity]:(e.vars||e).palette.action.hoverOpacity,[g.colors.interactive.focus]:qY((e.vars||e).palette.primary.main),[g.colors.interactive.focusOpacity]:(e.vars||e).palette.action.focusOpacity,[g.colors.interactive.disabled]:qY((e.vars||e).palette.action.disabled),[g.colors.interactive.disabledOpacity]:(e.vars||e).palette.action.disabledOpacity,[g.colors.interactive.selected]:l,[g.colors.interactive.selectedOpacity]:(e.vars||e).palette.action.selectedOpacity,[g.header.background.base]:o,[g.cell.background.pinned]:i,[g.radius.base]:c,[g.typography.fontFamily.base]:e.typography.fontFamily,[g.typography.fontWeight.light]:e.typography.fontWeightLight,[g.typography.fontWeight.regular]:e.typography.fontWeightRegular,[g.typography.fontWeight.medium]:e.typography.fontWeightMedium,[g.typography.fontWeight.bold]:e.typography.fontWeightBold,[g.typography.font.body]:u,[g.typography.font.small]:f,[g.typography.font.large]:h,[g.transitions.easing.easeIn]:e.transitions.easing.easeIn,[g.transitions.easing.easeOut]:e.transitions.easing.easeOut,[g.transitions.easing.easeInOut]:e.transitions.easing.easeInOut,[g.transitions.duration.short]:`${e.transitions.duration.shorter}ms`,[g.transitions.duration.base]:`${e.transitions.duration.short}ms`,[g.transitions.duration.long]:`${e.transitions.duration.standard}ms`,[g.shadows.base]:(e.vars||e).shadows[2],[g.shadows.overlay]:(e.vars||e).shadows[8],[g.zIndex.panel]:(e.vars||e).zIndex.modal,[g.zIndex.menu]:(e.vars||e).zIndex.modal}}function Tvt(e){return e.vars?e.vars.shape.borderRadius:typeof e.shape.borderRadius=="number"?`${e.shape.borderRadius}px`:e.shape.borderRadius}function Pvt(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?Ep(Kt(e.palette.divider,1),.88):Cp(Kt(e.palette.divider,1),.68)}function Ivt(e,t){return`rgba(from ${e} r g b / ${t})`}function qY(e){return Ivt(e,1)}function X$(e){return`${e.fontWeight} ${e.fontSize} / ${e.lineHeight} ${e.fontFamily}`}const Ovt=["id","label","labelId","material","disabled","slotProps","onChange","onKeyDown","onOpen","onClose","size","style","fullWidth"],Mvt=["onRowsPerPageChange","material","disabled"],Avt=["material"],Dvt=["autoFocus","label","fullWidth","slotProps","className","material"],Rvt=["material"],kvt=["material"],Nvt=["material"],_vt=["material"],Lvt=["material"],$vt=["material"],Fvt=["material"],jvt=["material"],Bvt=["material","label","className"],zvt=["material"],Vvt=["inert","iconStart","iconEnd","children","material"],Hvt=["slotProps","material"],Uvt=["id","multiple","freeSolo","options","getOptionLabel","isOptionEqualToValue","value","onChange","label","placeholder","slotProps","material"],Gvt=["key"],Wvt=["inputProps","InputProps","InputLabelProps"],qvt=["slotProps","material"],Kvt=["ref","open","children","className","clickAwayTouchEvent","clickAwayMouseEvent","flip","focusTrap","onExited","onClickAway","onDidShow","onDidHide","id","target","transition","placement","material"],Yvt=["native"],KY=ue(gi)(({theme:e})=>({[`&.${LF.positionEnd} .${AF.sizeSmall}`]:{marginRight:e.spacing(-.75)}})),Xue=ue(Yl,{shouldForwardProp:e=>e!=="fullWidth"})(({theme:e})=>({gap:e.spacing(.5),margin:0,overflow:"hidden",[`& .${K0.label}`]:{fontSize:e.typography.pxToRem(14),overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),YY=ue(Lwe,{shouldForwardProp:e=>e!=="density"})(({theme:e})=>({variants:[{props:{density:"compact"},style:{padding:e.spacing(.5)}}]})),Qvt=ue(ko)({[`& .${Oy.primary}`]:{overflowX:"clip",textOverflow:"ellipsis",maxWidth:"300px"}}),Xvt=rn(function(t,n){const{id:r,label:o,labelId:i,material:a,disabled:s,slotProps:l,onChange:c,onKeyDown:u,onOpen:f,onClose:h,size:g,style:y,fullWidth:x}=t,S=He(t,Ovt),C={PaperProps:{onKeyDown:u}};return h&&(C.onClose=h),R.jsxs(Tv,{size:g,fullWidth:x,style:y,disabled:s,ref:n,children:[R.jsx(Pv,{id:i,htmlFor:r,shrink:!0,variant:"outlined",children:o}),R.jsx(Fm,B({id:r,labelId:i,label:o,displayEmpty:!0,onChange:c},S,{variant:"outlined",notched:!0,inputProps:l?.htmlInput,onOpen:f,MenuProps:C,size:g},a))]})}),Jvt=ue(BJ)(({theme:e})=>({[`& .${Fy.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Fy.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),Zvt=rn(function(t,n){const{onRowsPerPageChange:r,material:o,disabled:i}=t,a=He(t,Mvt),s=m.useMemo(()=>{if(i)return{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}},[i]),l=wn(),c=Ot(),{estimatedRowCount:u}=c;return R.jsx(Jvt,B({component:"div",onRowsPerPageChange:ft(f=>{r?.(Number(f.target.value))}),labelRowsPerPage:l.current.getLocaleText("paginationRowsPerPage"),labelDisplayedRows:f=>l.current.getLocaleText("paginationDisplayedRows")(B({},f,{estimated:u})),getItemAriaLabel:l.current.getLocaleText("paginationItemAriaLabel")},s,a,o,{ref:n}))}),ebt=rn(function(t,n){const{material:r}=t,o=He(t,Avt);return R.jsx(jxe,B({},o,r,{ref:n}))}),tbt=rn(function(t,n){const{autoFocus:r,label:o,fullWidth:i,slotProps:a,className:s,material:l}=t,c=He(t,Dvt),u=m.useRef(null),f=xn(u,n),h=m.useRef(null);return m.useEffect(()=>{r?u.current?.querySelector("input")?.focus({preventScroll:!0}):r===!1&&h.current&&h.current.stop({})},[r]),o?R.jsx(Xue,{className:s,control:R.jsx(YY,B({},c,l,{inputProps:a?.htmlInput,ref:f,touchRippleRef:h})),label:o,fullWidth:i}):R.jsx(YY,B({},c,l,{className:ge(s,l?.className),inputProps:a?.htmlInput,ref:f,touchRippleRef:h}))}),nbt=rn(function(t,n){const{material:r}=t,o=He(t,Rvt);return R.jsx(pT,B({},o,r,{ref:n}))}),rbt=rn(function(t,n){const{material:r}=t,o=He(t,kvt);return R.jsx($s,B({},o,r,{ref:n}))}),obt=rn(function(t,n){const{material:r}=t,o=He(t,Nvt);return R.jsx(PJ,B({},o,r,{ref:n}))}),ibt=rn(function(t,n){const{material:r}=t,o=He(t,_vt);return R.jsx(St,B({},o,r,{ref:n}))}),abt=rn(function(t,n){const{material:r}=t,o=He(t,Lvt);return R.jsx(Yc,B({},o,r,{ref:n}))}),sbt=rn(function(t,n){const{material:r}=t,o=He(t,$vt);return R.jsx(An,B({},o,r,{ref:n}))}),lbt=rn(function(t,n){const{material:r}=t,o=He(t,Fvt);return R.jsx(Gi,B({},o,r,{ref:n}))}),cbt=rn(function(t,n){const{material:r}=t,o=He(t,jvt);return R.jsx(tA,B({},o,r,{ref:n}))}),ubt=rn(function(t,n){const{material:r,label:o,className:i}=t,a=He(t,Bvt);return o?R.jsx(Xue,{className:i,control:R.jsx(Wi,B({},a,r,{ref:n})),label:o}):R.jsx(Wi,B({},a,r,{className:i,ref:n}))}),dbt=rn(function(t,n){const{material:r}=t,o=He(t,zvt);return R.jsx(LR,B({},o,r,{ref:n}))});function fbt(e){const{inert:t,iconStart:n,iconEnd:r,children:o,material:i}=e,a=He(e,Vvt);return t&&(a.disableRipple=!0),m.createElement(bn,B({},a,i),[n&&R.jsx(Ql,{children:n},"1"),R.jsx(Qvt,{children:o},"2"),r&&R.jsx(Ql,{children:r},"3")])}function pbt(e){const{slotProps:t,material:n}=e,r=He(e,Hvt);return R.jsx(On,B({variant:"outlined"},r,n,{inputProps:t?.htmlInput,InputProps:N5(t?.input),InputLabelProps:B({shrink:!0},t?.inputLabel)}))}function hbt(e){const t=Ot(),{id:n,multiple:r,freeSolo:o,options:i,getOptionLabel:a,isOptionEqualToValue:s,value:l,onChange:c,label:u,placeholder:f,slotProps:h,material:g}=e,y=He(e,Uvt);return R.jsx(rf,B({id:n,multiple:r,freeSolo:o,options:i,getOptionLabel:a,isOptionEqualToValue:s,value:l,onChange:c,renderTags:(x,S)=>x.map((C,E)=>{const I=S({index:E}),{key:M}=I,O=He(I,Gvt);return R.jsx(Yc,B({variant:"outlined",size:"small",label:typeof C=="string"?C:a?.(C)},O),M)}),renderInput:x=>{const{inputProps:S,InputProps:C,InputLabelProps:E}=x,I=He(x,Wvt);return R.jsx(On,B({},I,{label:u,placeholder:f,inputProps:S,InputProps:N5(C,!1),InputLabelProps:B({shrink:!0},E)},h?.textField,t.slotProps?.baseTextField))}},y,g))}function mbt(e){return R.jsx(gT,B({},N5(e)))}function N5(e,t=!0){if(!e)return;const{slotProps:n,material:r}=e,i=He(e,qvt);t&&(i.startAdornment&&(i.startAdornment=R.jsx(KY,{position:"start",children:i.startAdornment})),i.endAdornment&&(i.endAdornment=R.jsx(KY,{position:"end",children:i.endAdornment})));for(const a in r)Object.hasOwn(r,a)&&(i[a]=r[a]);return n?.htmlInput&&(i.inputProps?i.inputProps=B({},i.inputProps,n?.htmlInput):i.inputProps=n?.htmlInput),i}const gbt={"bottom-start":"top left","bottom-end":"top right"};function ybt(e){const{open:t,children:n,className:r,flip:o,onExited:i,onDidShow:a,onDidHide:s,id:l,target:c,transition:u,placement:f,material:h}=e,g=He(e,Kvt),y=m.useMemo(()=>{const S=[{name:"preventOverflow",options:{padding:8}}];return o&&S.push({name:"flip",enabled:!0,options:{rootBoundary:"document"}}),(a||s)&&S.push({name:"isPlaced",enabled:!0,phase:"main",fn:()=>{a?.()},effect:()=>()=>{s?.()}}),S},[o,a,s]);let x;if(!u)x=QY(e,n);else{const S=C=>E=>{C&&C(),i&&i(E)};x=C=>QY(e,R.jsx(ev,B({},C.TransitionProps,{style:{transformOrigin:gbt[C.placement]},onExited:S(C.TransitionProps?.onExited),children:R.jsx(ai,{children:n})})))}return R.jsx(sw,B({id:l,className:r,open:t,anchorEl:c,transition:u,placement:f,modifiers:y},g,h,{children:x}))}function QY(e,t){return bbt(e,vbt(e,t))}function vbt(e,t){return e.onClickAway===void 0?t:R.jsx(bJ,{onClickAway:e.onClickAway,touchEvent:e.clickAwayTouchEvent,mouseEvent:e.clickAwayMouseEvent,children:t})}function bbt(e,t){return e.focusTrap===void 0?t:R.jsx(Vz,{open:!0,disableEnforceFocus:!0,disableAutoFocus:!0,children:R.jsx("div",{tabIndex:-1,children:t})})}function xbt(e){let{native:t}=e,n=He(e,Yvt);return t?R.jsx("option",B({},n)):R.jsx(bn,B({},n))}const wbt={booleanCellTrueIcon:CY,booleanCellFalseIcon:xY,columnMenuIcon:Lpt,openFilterButtonIcon:Mpt,filterPanelDeleteIcon:xY,columnFilteredIcon:bY,columnSelectorIcon:Dpt,columnSortedAscendingIcon:mY,columnSortedDescendingIcon:gY,columnResizeIcon:Rpt,densityCompactIcon:kpt,densityStandardIcon:Npt,densityComfortableIcon:_pt,exportIcon:Hpt,moreActionsIcon:jpt,treeDataCollapseIcon:vY,treeDataExpandIcon:yY,groupingCriteriaCollapseIcon:vY,groupingCriteriaExpandIcon:yY,detailPanelExpandIcon:wY,detailPanelCollapseIcon:$pt,rowReorderIcon:SY,quickFilterIcon:Apt,quickFilterClearIcon:EY,columnMenuHideIcon:Bpt,columnMenuSortAscendingIcon:mY,columnMenuSortDescendingIcon:gY,columnMenuUnsortIcon:null,columnMenuFilterIcon:bY,columnMenuManageColumnsIcon:zpt,columnMenuClearIcon:EY,loadIcon:Fpt,filterPanelAddIcon:wY,filterPanelRemoveAllIcon:Vpt,columnReorderIcon:SY,menuItemCheckIcon:CY},Sbt={baseAutocomplete:hbt,baseBadge:ebt,baseCheckbox:tbt,baseChip:abt,baseCircularProgress:nbt,baseDivider:rbt,baseInput:mbt,baseLinearProgress:obt,baseMenuList:dbt,baseMenuItem:fbt,baseTextField:pbt,baseButton:ibt,baseIconButton:sbt,baseTooltip:lbt,basePagination:Zvt,basePopper:ybt,baseSelect:Xvt,baseSelectOption:xbt,baseSkeleton:cbt,baseSwitch:ubt},Cbt=B({},Sbt,wbt),Ebt=()=>$e({root:["bottomContainer"]},Bn,{}),Tbt=sr("div")({position:"sticky",zIndex:40,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function Pbt(e){const t=Ebt();return R.jsx(Tbt,B({},e,{className:ge(t.root,re["container--bottom"]),role:"presentation"}))}const Ibt=B({},Cbt,{cell:Xdt,skeletonCell:aft,columnHeaderFilterIconButton:Ipt,columnHeaderSortIcon:Tpt,columnMenu:aht,columnHeaders:mvt,detailPanels:gvt,bottomContainer:Pbt,footer:Fmt,footerRowCount:egt,toolbar:kmt,pinnedRows:yvt,loadingOverlay:Wmt,noResultsOverlay:vvt,noRowsOverlay:qmt,noColumnsOverlay:Kmt,pagination:Qmt,filterPanel:_ht,columnsPanel:uht,columnsManagement:Uht,panel:mht,row:igt}),Obt={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",listView:!1},Mbt=e=>B({},Obt,e.dataSource?{filterMode:"server",sortingMode:"server",paginationMode:"server"}:{}),Abt=Ibt,Dbt=e=>{const t=Po(),n=m.useMemo(()=>hz({props:e,theme:t,name:"MuiDataGrid"}),[t,e]),r=m.useMemo(()=>B({},rlt,n.localeText),[n.localeText]),o=m.useMemo(()=>Udt({defaultSlots:Abt,slots:n.slots}),[n.slots]),i=m.useMemo(()=>Object.keys(UB).reduce((a,s)=>(a[s]=n[s]??UB[s],a),{}),[n]);return m.useMemo(()=>B({},n,i,{localeText:r,slots:o},Mbt(n)),[n,r,o,i])};class Rbt{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let a=o.length-1;a>=0;a-=1){const s=o[a];r.highPriority.has(s)&&s.apply(this,n)}for(let a=0;a<i.length;a+=1){const s=i[a];r.regular.has(s)&&s.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...i){r.removeListener(t,o),n.apply(r,i)})}}class _5{static create(t){return new _5(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}const Jue=Symbol("mui.api_private"),kbt=e=>e.isPropagationStopped!==void 0;let XY=0;function Nbt(e){const t=e.current?.[Jue];if(t)return t;const n={},r={state:n,store:_5.create(n),instanceId:{id:XY}};return XY+=1,r.getPublicApi=()=>e.current,r.register=(o,i)=>{Object.keys(i).forEach(a=>{const s=i[a],l=r[a];if(l?.spying===!0?l.target=s:r[a]=s,o==="public"){const c=e.current,u=c[a];u?.spying===!0?u.target=s:c[a]=s}})},r.register("private",{caches:{},eventManager:new Rbt}),r}function _bt(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[Jue]:e.current}}function Lbt(e,t){const n=m.useRef(null),r=m.useRef(null);r.current||(r.current=Nbt(n)),n.current||(n.current=_bt(r));const o=m.useCallback((...a)=>{const[s,l,c={}]=a;if(c.defaultMuiPrevented=!1,kbt(c)&&c.isPropagationStopped())return;const u=t.signature===qu.DataGridPro||t.signature===qu.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(s,l,c,u)},[r,t.signature]),i=m.useCallback((a,s,l)=>{r.current.eventManager.on(a,s,l);const c=r.current;return()=>{c.eventManager.removeListener(a,s)}},[r]);return Nn(r,{subscribeEvent:i,publishEvent:o},"public"),e&&!e.current?.state&&(e.current=n.current),m.useImperativeHandle(e,()=>n.current,[n]),m.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const $bt={hooks:{useCSSVariables:Cvt,useGridAriaAttributes:agt,useGridRowAriaAttributes:sgt,useCellAggregationResult:()=>null}},Zue=rn(function(t,n){const r=Dbt(t),o=Lbt(r.apiRef,r);return ivt(o,r),R.jsx(lgt,{privateApiRef:o,configuration:$bt,props:r,children:R.jsx(Sft,B({className:r.className,style:r.style,sx:r.sx},r.slotProps?.root,{ref:n}))})}),ede=m.memo(Zue);Zue.propTypes={apiRef:W.shape({current:W.object}),"aria-label":W.string,"aria-labelledby":W.string,autoHeight:W.bool,autoPageSize:W.bool,autosizeOnMount:W.bool,autosizeOptions:W.shape({columns:W.arrayOf(W.string),disableColumnVirtualization:W.bool,expand:W.bool,includeHeaders:W.bool,includeOutliers:W.bool,outliersFactor:W.number}),cellModesModel:W.object,checkboxSelection:W.bool,classes:W.object,className:W.string,clipboardCopyCellDelimiter:W.string,columnBufferPx:W.number,columnGroupHeaderHeight:W.number,columnGroupingModel:W.arrayOf(W.object),columnHeaderHeight:W.number,columns:W.arrayOf(W.object).isRequired,columnVisibilityModel:W.object,dataSource:W.shape({getRows:W.func.isRequired,updateRow:W.func}),dataSourceCache:W.shape({clear:W.func.isRequired,get:W.func.isRequired,set:W.func.isRequired}),density:W.oneOf(["comfortable","compact","standard"]),disableAutosize:W.bool,disableColumnFilter:W.bool,disableColumnMenu:W.bool,disableColumnResize:W.bool,disableColumnSelector:W.bool,disableColumnSorting:W.bool,disableDensitySelector:W.bool,disableEval:W.bool,disableMultipleRowSelection:W.bool,disableRowSelectionOnClick:W.bool,disableVirtualization:W.bool,editMode:W.oneOf(["cell","row"]),estimatedRowCount:W.number,experimentalFeatures:W.shape({warnIfFocusStateIsNotSynced:W.bool}),filterDebounceMs:W.number,filterMode:W.oneOf(["client","server"]),filterModel:W.shape({items:W.arrayOf(W.shape({field:W.string.isRequired,id:W.oneOfType([W.number,W.string]),operator:W.string.isRequired,value:W.any})).isRequired,logicOperator:W.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:W.bool,quickFilterLogicOperator:W.oneOf(["and","or"]),quickFilterValues:W.array}),getCellClassName:W.func,getDetailPanelContent:W.func,getEstimatedRowHeight:W.func,getRowClassName:W.func,getRowHeight:W.func,getRowId:W.func,getRowSpacing:W.func,hideFooter:W.bool,hideFooterPagination:W.bool,hideFooterSelectedRowCount:W.bool,ignoreDiacritics:W.bool,ignoreValueFormatterDuringExport:W.oneOfType([W.shape({clipboardExport:W.bool,csvExport:W.bool}),W.bool]),initialState:W.object,isCellEditable:W.func,isRowSelectable:W.func,keepNonExistentRowsSelected:W.bool,label:W.string,loading:W.bool,localeText:W.object,logger:W.shape({debug:W.func.isRequired,error:W.func.isRequired,info:W.func.isRequired,warn:W.func.isRequired}),logLevel:W.oneOf(["debug","error","info","warn",!1]),nonce:W.string,onCellClick:W.func,onCellDoubleClick:W.func,onCellEditStart:W.func,onCellEditStop:W.func,onCellKeyDown:W.func,onCellModesModelChange:W.func,onClipboardCopy:W.func,onColumnHeaderClick:W.func,onColumnHeaderContextMenu:W.func,onColumnHeaderDoubleClick:W.func,onColumnHeaderEnter:W.func,onColumnHeaderLeave:W.func,onColumnHeaderOut:W.func,onColumnHeaderOver:W.func,onColumnOrderChange:W.func,onColumnResize:W.func,onColumnVisibilityModelChange:W.func,onColumnWidthChange:W.func,onDataSourceError:W.func,onDensityChange:W.func,onFilterModelChange:W.func,onMenuClose:W.func,onMenuOpen:W.func,onPaginationMetaChange:W.func,onPaginationModelChange:W.func,onPreferencePanelClose:W.func,onPreferencePanelOpen:W.func,onProcessRowUpdateError:W.func,onResize:W.func,onRowClick:W.func,onRowCountChange:W.func,onRowDoubleClick:W.func,onRowEditStart:W.func,onRowEditStop:W.func,onRowModesModelChange:W.func,onRowSelectionModelChange:W.func,onSortModelChange:W.func,onStateChange:W.func,pageSizeOptions:W.arrayOf(W.oneOfType([W.number,W.shape({label:W.string.isRequired,value:W.number.isRequired})]).isRequired),pagination:W.oneOf([!0]),paginationMeta:W.shape({hasNextPage:W.bool}),paginationMode:W.oneOf(["client","server"]),paginationModel:W.shape({page:W.number.isRequired,pageSize:W.number.isRequired}),processRowUpdate:W.func,resizeThrottleMs:W.number,rowBufferPx:W.number,rowCount:W.number,rowHeight:W.number,rowModesModel:W.object,rows:W.arrayOf(W.object),rowSelection:W.bool,rowSelectionModel:W.shape({ids:W.instanceOf(Set).isRequired,type:W.oneOf(["exclude","include"]).isRequired}),rowSpacingType:W.oneOf(["border","margin"]),rowSpanning:W.bool,scrollbarSize:W.number,showCellVerticalBorder:W.bool,showColumnVerticalBorder:W.bool,showToolbar:W.bool,slotProps:W.object,slots:W.object,sortingMode:W.oneOf(["client","server"]),sortingOrder:W.arrayOf(W.oneOf(["asc","desc"])),sortModel:W.arrayOf(W.shape({field:W.string.isRequired,sort:W.oneOf(["asc","desc"])})),style:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),virtualizeColumnsWithAutoRowHeight:W.bool};const Fbt=e=>e.map(t=>({id:t.id,category:t.category,date:t.date,value:t.value,notes:t.notes})),jbt=e=>{const[t]=We(),n=Fbt(e.category.entries),r=mce(),o=jst(),[i,a]=m.useState(n),[s,l]=m.useState({}),c=(E,I)=>{E.reason===Ic.rowFocusOut&&(I.defaultMuiPrevented=!0)},u=E=>()=>{l({...s,[E]:{mode:mr.Edit}})},f=E=>()=>{l({...s,[E]:{mode:mr.View}})},h=E=>async()=>{console.log("deleting entry",E),o.mutate(parseInt(E.toString())),a(i.filter(I=>I.id!==E))},g=E=>()=>{l({...s,[E]:{mode:mr.View,ignoreModifications:!0}}),i.find(M=>M.id===E)?.id===null&&a(i.filter(M=>M.id!==E))},y=async E=>{r.mutate({id:E.id,categoryId:E.category,date:E.date,value:E.value,notes:E.notes});const I={...E,isNew:!1};return a(i.map(M=>M.id===E.id?I:M)),I},x=E=>{console.log(E)},S=E=>{l(E)},C=[{field:"value",headerName:t("value"),width:80,editable:!0,valueFormatter:E=>E==null?"":E+e.category.unit},{field:"date",headerName:t("date"),type:"date",width:120,editable:!0,valueFormatter:E=>E==null?"":At.fromJSDate(E).toLocaleString(At.DATE_MED)},{field:"notes",headerName:t("notes"),type:"string",flex:1,editable:!0},{field:"actions",type:"actions",headerName:t("actions"),width:100,cellClassName:"actions",getActions:({id:E})=>s[E]?.mode===mr.Edit?[w(hm,{icon:w(jle,{}),label:"Save",onClick:f(E)}),w(hm,{icon:w(wT,{}),label:"Cancel",className:"textPrimary",onClick:g(E),color:"inherit"})]:[w(hm,{icon:w(ZU,{}),label:"Edit",className:"textPrimary",onClick:u(E),color:"inherit"}),w(hm,{icon:w(HE,{}),label:"Delete",onClick:h(E),color:"inherit"})]}];return w(mn,{sx:{width:"100%"},children:w(ede,{editMode:"row",rows:n,columns:C,initialState:{pagination:{paginationModel:{pageSize:aj.pageSize}}},pageSizeOptions:aj.pageSizeOptions,disableRowSelectionOnClick:!0,rowModesModel:s,onRowModesModelChange:S,onRowEditStop:c,processRowUpdate:y,onProcessRowUpdateError:x})})},M2=({title:e,subtitle:t,isOpen:n,message:r,deleteFn:o,closeFn:i})=>{const[a]=We();return w(lw,{open:n,onClose:i,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:J(oi,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",bgcolor:"background.paper",borderWidth:0,boxShadow:24,p:2},children:[w(rd,{title:e,titleTypographyProps:{variant:"h6"},subheader:t,action:w(wT,{onClick:i})}),w(ss,{children:w(wt,{variant:"body1",children:r})}),J(iu,{children:[w(St,{color:"error",variant:"contained",onClick:()=>{o(),i()},children:a("delete")}),w(St,{color:"primary",onClick:i,children:a("close")})]})]})})},tde=({category:e,closeFn:t})=>{const[n]=We(),r=_st(),o=Lst(e?.id),i=qi({name:Hi().required(n("forms.fieldRequired")).max(20,n("forms.maxLength",{chars:"20"})).min(3,n("forms.minLength",{chars:"3"})),unit:Hi().required(n("forms.fieldRequired")).max(5,n("forms.maxLength",{chars:"5"}))});return w($a,{initialValues:{name:e?e.name:"",unit:e?e.unit:""},validationSchema:i,onSubmit:async a=>{e?o.mutate({...a,id:e.id}):r.mutate(a),t&&t()},children:a=>w(ba,{children:J(Jt,{spacing:2,children:[w(On,{fullWidth:!0,id:"name",label:n("name"),error:a.touched.name&&!!a.touched.name,helperText:a.touched.name&&a.errors.name,...a.getFieldProps("name")}),w(On,{fullWidth:!0,id:"unit",label:n("unit"),error:a.touched.unit&&!!a.errors.unit,helperText:a.touched.unit&&a.errors.unit?a.errors.unit:n("measurements.unitFormHelpText"),...a.getFieldProps("unit")}),w(Jt,{direction:"row",justifyContent:"end",sx:{mt:2},children:w(St,{color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:n("submit")})})]})})})},Bbt=e=>{const t=$st(e.category.id),n=Yp(),[r]=We(),[o,i]=qe.useState(null),[a,s]=qe.useState(!1),[l,c]=qe.useState(!1),u=!!o,f=M=>{i(M.currentTarget)},h=()=>{g(),S()},g=()=>{i(null)},y=()=>{E(),i(null)},x=()=>{t.mutate(e.category.id),n(Cn(hn.MEASUREMENT_OVERVIEW))},S=()=>s(!0),C=()=>s(!1),E=()=>c(!0),I=()=>c(!1);return J("div",{children:[w(St,{onClick:f,children:w(e5,{})}),J(ec,{anchorEl:o,open:u,onClose:g,MenuListProps:{"aria-labelledby":"basic-button"},children:[w(bn,{onClick:h,children:r("edit")}),w(bn,{onClick:y,children:r("delete")})]}),w(ga,{title:r("edit"),isOpen:a,closeFn:C,children:w(tde,{category:e.category,closeFn:C})}),w(M2,{title:r("deleteConfirmation",{name:e.category.name}),message:r("measurements.deleteInfo"),isOpen:l,closeFn:I,deleteFn:x})]})};Qo.defaultZone=JMe;const nde=({entry:e,closeFn:t,categoryId:n})=>{const[r,o]=We(),i=Fst(),a=mce(),s=hce(n),[l,c]=qe.useState(e?At.fromJSDate(e.date):At.now()),u=qi({value:ki().required(r("forms.fieldRequired")).min(0,r("forms.minValue",{value:"0"})).max(1e3,r("forms.maxValue",{value:"1000"})),date:Uc().required(r("forms.fieldRequired")),notes:Hi().max(500,r("forms.maxLength",{value:"500"}))});return w($a,{initialValues:{value:e?e.value:0,date:e?e.date:new Date,notes:e?e.notes:""},validationSchema:u,onSubmit:async f=>{e?a.mutate({...f,id:e.id}):i.mutate({...f,categoryId:n}),t&&t()},children:f=>w(ba,{children:J(Jt,{spacing:2,children:[w(On,{fullWidth:!0,id:"value",type:"number",label:r("value"),error:f.touched.value&&!!f.errors.value,helperText:f.touched.value&&f.errors.value,...f.getFieldProps("value")}),s.isLoading?w(lo,{}):w(Vc,{dateAdapter:Wu,adapterLocale:o.language,children:w(Hx,{format:"yyyy-MM-dd",label:r("date"),value:l,disableFuture:!0,onChange:h=>{h&&f.setFieldValue("date",h.toJSDate()),c(h)},shouldDisableDate:h=>e&&Jr(e.date)===Jr(h.toJSDate())?!1:h?s.data.entries.some(g=>Jr(g.date)===Jr(h.toJSDate())):!1})}),w(On,{fullWidth:!0,id:"notes",label:r("notes"),multiline:!0,error:f.touched.notes&&!!f.errors.notes,helperText:f.touched.notes&&f.errors.notes,...f.getFieldProps("notes")}),w(Jt,{direction:"row",justifyContent:"end",sx:{mt:2},children:w(St,{color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:r("submit")})})]})})})},zbt=()=>{const[e]=We(),[t,n]=qe.useState(!1),r=()=>n(!0),o=()=>n(!1);return J("div",{children:[w(jp,{color:"secondary","aria-label":"add",onClick:r,sx:{position:"fixed",bottom:"5rem",right:i=>`max(${i.spacing(2)}, calc((100vw - ${i.breakpoints.values.lg}px) / 2 + ${i.spacing(2)}))`,zIndex:9},children:w(bi,{})}),w(ga,{title:e("add"),isOpen:t,closeFn:o,children:w(tde,{closeFn:o})})]})},Vbt=()=>{const[e]=We(),[t,n]=qe.useState(!1),r=()=>n(!0),o=()=>n(!1),i=gl(),a=parseInt(i.categoryId);return J(_t,{children:[w(jp,{color:"secondary","aria-label":"add",onClick:r,sx:{position:"fixed",bottom:"5rem",right:s=>`max(${s.spacing(2)}, calc((100vw - ${s.breakpoints.values.lg}px) / 2 + ${s.spacing(2)}))`,zIndex:9},children:w(bi,{})}),w(ga,{title:e("add"),isOpen:t,closeFn:o,children:w(nde,{closeFn:o,categoryId:a})})]})},GM=['"Open Sans Bold"',"sans-serif"].join(","),Hbt=['"Open Sans Light"',"sans-serif"].join(","),rde={spacing:8,typography:{h3:{fontFamily:GM},h4:{fontFamily:GM},h5:{fontFamily:GM},h6:{fontFamily:GM},fontFamily:Hbt},palette:{primary:{main:"#2A4C7D"},secondary:{main:"#e63946"},warning:{main:"#cba328"},info:{main:"#457b9d"},success:{main:"#307916"}}},Uv=dT(rde),Ubt=e=>dT({...rde,components:{MuiPopover:{defaultProps:{container:e}},MuiPopper:{defaultProps:{container:e}},MuiModal:{defaultProps:{container:e}}}}),ode=e=>{const{i18n:t}=We(),n=30,r=[...e.category.entries].sort((o,i)=>o.date.getTime()-i.date.getTime()).map(o=>({date:o.date.getTime(),value:o.value,entry:o}));return w(mn,{alignItems:"center",display:"flex",flexDirection:"column",children:w(qp,{width:"90%",height:200,children:J(pU,{data:r,children:[w(Wk,{type:"monotone",dataKey:"value",stroke:Uv.palette.secondary.main,strokeWidth:2,dot:r.length>n?!1:{strokeWidth:1,r:4},activeDot:{stroke:"black",strokeWidth:1,r:6}}),w(Hm,{stroke:"#ccc",strokeDasharray:"5 5"}),w(Um,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:o=>new Date(o).toLocaleDateString(t.language),tickCount:10}),w(Gm,{domain:["auto","auto"],unit:e.category.unit})]})})})},Gbt=()=>{const e=gl(),t=parseInt(e.categoryId??"");if(Number.isNaN(t))return w("p",{children:"Please pass an integer as the category id."});const n=hce(t);return n.isLoading?w(lo,{}):w(rc,{title:n.data.name,optionsMenu:w(Bbt,{category:n.data}),mainContent:J(Jt,{spacing:2,children:[w(ode,{category:n.data}),w(jbt,{category:n.data})]}),fab:w(Vbt,{})})},Wbt=e=>{const[t,n]=We(),[r,o]=qe.useState(!1),i=()=>o(!0),a=()=>o(!1);return J(_t,{children:[J(oi,{children:[w(rd,{title:e.category.name,subheader:e.category.unit}),w(ss,{children:w(ode,{category:e.category})}),J(iu,{disableSpacing:!0,sx:{justifyContent:"space-between"},children:[w(St,{size:"small",children:w(Ri,{to:Cn(hn.MEASUREMENT_DETAIL,n.language,{id:e.category.id}),children:t("seeDetails")})}),w(An,{onClick:i,children:w(bi,{})})]})]}),w(ga,{title:t("add"),isOpen:r,closeFn:a,children:w(nde,{closeFn:a,categoryId:e.category.id})})]})},JY=()=>{const e=pce(),[t]=We();return e.isLoading?w(lo,{}):w(rc,{title:t("measurements.measurements"),mainContent:J(Jt,{spacing:2,children:[e.data.length===0&&w(Iv,{}),e.data.map(n=>w(Wbt,{category:n},n.id))]}),fab:w(zbt,{})})};function yl(){return Zr({queryKey:[xt.QUERY_PROFILE],queryFn:M2e})}const qbt=()=>{const e=Bt();return zt({mutationFn:t=>A2e(t),onSuccess:async()=>{await e.invalidateQueries({queryKey:[xt.QUERY_PROFILE]})}})},TA=[{range:"obese",color:"#FF5733",min:30,max:100},{range:"overweight",color:"#FFC107",min:25,max:30},{range:"normal",color:"#90EE90",min:18.5,max:25},{range:"underweight",color:"#FFC300",min:0,max:18.5}],WM=e=>{const t=TA.find(n=>n.range===e);return t?t.color:"gray"},Kbt=()=>{const[e]=We(),t=mP(),n=yl(),[r,o]=m.useState(),[i,a]=m.useState();m.useEffect(()=>{if(t.data&&t.data.length>0){const u=t.data[0],f=n.data?.useMetric?u.weight:u.weight*.453592;a(f)}},[t.data,n.data]),m.useEffect(()=>{n.data?.height&&o(n.data.height)},[n.data]);const l=(()=>{if(r&&i){const u=r/100;return i/(u*u)}return null})();if(t.isLoading||n.isLoading)return w(lo,{});const c=[];for(let u=140;u<=220;u+=10){const f=u/100,h={height:u};let g=0;TA.forEach((y,x)=>{const S=y.max>100?100:y.max;let C=S*f*f-g;C=Math.min(C,150-g),x===0?h[y.range]=C:h[y.range]=h[TA[x-1].range]+C,g=Math.min(S*f*f,150)}),c.push(h)}return w(rc,{title:e("bmi.calculator"),mainContent:w(_t,{children:J(Jt,{spacing:2,children:[J(xe,{container:!0,spacing:2,children:[w(xe,{size:{xs:12,sm:6},children:w(On,{label:e("height"),fullWidth:!0,slotProps:{input:{endAdornment:w(wt,{children:e("cm")})}},type:"number",value:r??"",onChange:u=>o(parseFloat(u.target.value))})}),w(xe,{size:{xs:12,sm:6},children:w(On,{label:e("weight"),slotProps:{input:{endAdornment:w(wt,{children:e("server.kg")})}},fullWidth:!0,type:"number",value:i??"",onChange:u=>a(parseFloat(u.target.value))})})]}),l!==null&&w(wt,{variant:"h6",children:e("bmi.result",{value:l.toFixed(1)})}),w(qp,{width:"100%",height:400,children:J(M9e,{data:c,children:[w(Um,{dataKey:"height",type:"number",domain:[140,220],unit:"cm"}),w(Gm,{domain:[40,150],tickFormatter:u=>Math.round(u).toString(),unit:"kg"}),w(Hm,{strokeDasharray:"3 3"}),w(JT,{formatter:(u,f)=>[Math.round(u),e("bmi."+f)]}),TA.map(u=>w($ie,{type:"monotone",dataKey:u.range,stroke:"black",fill:u.color,fillOpacity:.8},u.range)),l!==null&&w(nU,{x:r,y:i,r:8,fill:"black",stroke:"none"})]})}),J(Jt,{direction:"row",justifyContent:"center",children:[w(mn,{height:20,width:20,sx:{backgroundColor:WM("obese")}}),e("bmi.obese"),w(mn,{height:20,width:20,sx:{backgroundColor:WM("overweight"),marginLeft:2}}),e("bmi.overweight"),w(mn,{height:20,width:20,sx:{backgroundColor:WM("normal"),marginLeft:2}}),e("bmi.normal"),w(mn,{height:20,width:20,sx:{backgroundColor:WM("underweight"),marginLeft:2}}),e("bmi.underweight")]})]})})})},Ybt=e=>{const[t,n]=We();return J(Pn,{children:[w(Be,{sx:{paddingX:1},children:w(Ju,{alt:e.item.ingredient?.name,src:e.item.ingredient?.image?.url,sx:{width:45,height:45},children:w(Bp,{})})}),J(Be,{sx:{paddingX:1},children:[e.item.amountString," ",e.item.ingredient?.name]}),w(Be,{align:"right",sx:{paddingX:1},children:t("nutrition.valueEnergyKcalKj",{kcal:ts(e.item.nutritionalValues.energy,n.language),kj:ts(e.item.nutritionalValues.energyKj,n.language)})}),w(Be,{align:"right",sx:{paddingX:1},children:ar(e.item.nutritionalValues.protein,n.language)}),w(Be,{align:"right",sx:{paddingX:1},children:ar(e.item.nutritionalValues.carbohydrates,n.language)}),w(Be,{align:"right",sx:{paddingX:1},children:ar(e.item.nutritionalValues.fat,n.language)})]},e.item.id)},YB=e=>{const[t,n]=We();return w(lf,{children:J(af,{children:[w(jm,{children:J(Pn,{children:[w(Be,{}),w(Be,{}),w(Be,{align:"right",sx:{paddingX:1},children:t("nutrition.energy")}),w(Be,{align:"right",sx:{paddingX:1},children:t("nutrition.protein")}),w(Be,{align:"right",sx:{paddingX:1},children:t("nutrition.carbohydrates")}),w(Be,{align:"right",sx:{paddingX:1},children:t("nutrition.fat")})]})}),J(sf,{children:[e.items.map(r=>w(Ybt,{item:r},r.id)),e.showSum&&J(Pn,{children:[w(Be,{sx:{paddingX:1},children:" "}),w(Be,{sx:{paddingX:1},children:t("total")}),w(Be,{align:"right",sx:{paddingX:1},children:t("nutrition.valueEnergyKcalKj",{kcal:ts(e.values.energy,n.language),kj:ts(e.values.energyKj,n.language)})}),w(Be,{align:"right",sx:{paddingX:1},children:ar(e.values.protein,n.language)}),w(Be,{align:"right",sx:{paddingX:1},children:ar(e.values.carbohydrates,n.language)}),w(Be,{align:"right",sx:{paddingX:1},children:ar(e.values.fat,n.language)})]})]})]})})},Qbt=e=>{const[t,n]=We();return w(lf,{children:J(af,{size:"small",children:[w(jm,{children:J(Pn,{children:[w(Be,{children:t("nutrition.macronutrient")}),w(Be,{align:"right",children:t("nutrition.planned")}),w(Be,{align:"right",children:t("nutrition.logged")}),w(Be,{align:"right",children:t("nutrition.difference")})]})}),J(sf,{children:[J(Pn,{children:[w(Be,{children:t("nutrition.energy")}),w(Be,{align:"right",children:t("nutrition.valueEnergyKcalKj",{kcal:ts(e.planned.energy,n.language),kj:ts(e.planned.energyKj,n.language)})}),w(Be,{align:"right",children:t("nutrition.valueEnergyKcalKj",{kcal:ts(e.logged.energy,n.language),kj:ts(e.logged.energyKj,n.language)})}),w(Be,{align:"right",children:t("nutrition.valueEnergyKcalKj",{kcal:ts(e.logged.energy-e.planned.energy,n.language),kj:ts(e.logged.energyKj-e.planned.energyKj,n.language)})})]}),J(Pn,{children:[w(Be,{children:t("nutrition.protein")}),w(Be,{align:"right",children:ar(e.planned.protein,n.language)}),w(Be,{align:"right",children:ar(e.logged.protein,n.language)}),w(Be,{align:"right",children:ar(e.logged.protein-e.planned.protein,n.language)})]}),J(Pn,{children:[w(Be,{children:t("nutrition.carbohydrates")}),w(Be,{align:"right",children:ar(e.planned.carbohydrates,n.language)}),w(Be,{align:"right",children:ar(e.logged.carbohydrates,n.language)}),w(Be,{align:"right",children:ar(e.logged.carbohydrates-e.planned.carbohydrates,n.language)})]}),J(Pn,{children:[w(Be,{sx:{pl:5},children:t("nutrition.ofWhichSugars")}),w(Be,{align:"right",children:ar(e.planned.carbohydratesSugar,n.language)}),w(Be,{align:"right",children:ar(e.logged.carbohydratesSugar,n.language)}),w(Be,{align:"right",children:ar(e.logged.carbohydratesSugar-e.planned.carbohydratesSugar,n.language)})]}),J(Pn,{children:[w(Be,{children:t("nutrition.fat")}),w(Be,{align:"right",children:ar(e.planned.fat,n.language)}),w(Be,{align:"right",children:ar(e.logged.fat,n.language)}),w(Be,{align:"right",children:ar(e.logged.fat-e.planned.fat,n.language)})]}),J(Pn,{children:[w(Be,{sx:{paddingLeft:5},children:t("nutrition.ofWhichSaturated")}),w(Be,{align:"right",children:ar(e.planned.fatSaturated,n.language)}),w(Be,{align:"right",children:ar(e.logged.fatSaturated,n.language)}),w(Be,{align:"right",children:ar(e.logged.fatSaturated-e.planned.fatSaturated,n.language)})]}),J(Pn,{children:[w(Be,{children:t("nutrition.others")}),w(Be,{}),w(Be,{}),w(Be,{})]}),J(Pn,{children:[w(Be,{children:t("nutrition.fibres")}),w(Be,{align:"right",children:ar(e.planned.fiber,n.language)}),w(Be,{align:"right",children:ar(e.logged.fiber,n.language)}),w(Be,{align:"right",children:ar(e.logged.fiber-e.planned.fiber,n.language)})]}),J(Pn,{children:[w(Be,{children:t("nutrition.sodium")}),w(Be,{align:"right",children:ar(e.planned.sodium,n.language)}),w(Be,{align:"right",children:ar(e.logged.sodium,n.language)}),w(Be,{align:"right",children:ar(e.logged.sodium-e.planned.sodium,n.language)})]})]})]})})},ZY=()=>{const[e]=We(),t=gl(),n=parseInt(t.planId);if(Number.isNaN(n))return w("p",{children:"Please pass an integer as the nutritional plan id."});const r=new Date(t.date),o=z2e(n,t.date);return o.isLoading?w(lo,{}):w(rc,{title:e("nutrition.nutritionalDiary"),mainContent:w(_t,{children:J(Jt,{spacing:2,children:[w(wt,{gutterBottom:!0,variant:"h4",children:r.toLocaleDateString()}),w(Qbt,{logged:o.data.loggedNutritionalValuesDate(r),planned:o.data.plannedNutritionalValues}),w(YB,{values:o.data.loggedNutritionalValuesDate(r),items:o.data.loggedEntriesDate(r),showSum:!0})]})})})};function*OP(e){let t;e<=3?t=XMe:e<=5?t=QMe:t=YMe;for(const n of t)yield n}const Xbt=e=>{const[t,n]=We(),r=OP(3),o=[{name:t("nutrition.carbohydrates"),value:e.data.carbohydrates},{name:t("nutrition.protein"),value:e.data.protein},{name:t("nutrition.fat"),value:e.data.fat}],i=Math.PI/180;return w(qp,{width:"100%",height:300,children:J(cae,{children:[w(JH,{data:o,labelLine:!1,label:({cx:s,cy:l,midAngle:c,innerRadius:u,outerRadius:f,payload:h})=>{const g=u+(f-u)*.4,y=s+g*Math.cos(-c*i),x=l+g*Math.sin(-c*i);return w("text",{x:y,y:x,fill:"white",textAnchor:"middle",dominantBaseline:"central",children:ar(h.value,n.language)})},fill:"#8884d8",dataKey:"value",children:o.map((s,l)=>w(_v,{fill:r.next().value},`cell-${l}`))}),w(Mv,{})]})})},Jbt=({showPlanned:e,planned:t,today:n,avg7Days:r})=>{const[o,i]=We(),a=OP(3),s=[{name:o("nutrition.protein"),planned:t.protein,today:n.protein,avg7Days:r.protein},{name:o("nutrition.carbohydrates"),planned:t.carbohydrates,today:n.carbohydrates,avg7Days:r.carbohydrates},{name:o("nutrition.sugar"),planned:t.carbohydratesSugar,today:n.carbohydratesSugar,avg7Days:r.carbohydratesSugar},{name:o("nutrition.fat"),planned:t.fat,today:n.fat,avg7Days:r.fat},{name:o("nutrition.saturatedFat"),planned:t.fatSaturated,today:n.fatSaturated,avg7Days:r.fatSaturated}];return w(qp,{width:"100%",height:300,children:J(lae,{data:s,margin:{top:20,right:30,left:20,bottom:5},children:[w(Hm,{strokeDasharray:"3 4"}),w(Um,{dataKey:"name"}),w(Gm,{type:"number",orientation:"left",unit:o("nutrition.gramShort")}),w(JT,{formatter:l=>ts(l,i.language)}),w(Mv,{}),e&&w(K1,{dataKey:"planned",unit:o("nutrition.gramShort"),name:o("nutrition.planned"),fill:a.next().value}),w(K1,{dataKey:"today",unit:o("nutrition.gramShort"),name:o("nutrition.today"),fill:a.next().value}),w(K1,{dataKey:"avg7Days",unit:o("nutrition.gramShort"),name:o("nutrition.7dayAvg"),fill:a.next().value})]})})},Zbt=e=>{const[t,n]=We();return w(lf,{children:J(af,{size:"small",children:[w(jm,{children:J(Pn,{children:[w(Be,{children:t("date")}),w(Be,{align:"right",children:t("nutrition.logged")}),w(Be,{align:"right",children:t("nutrition.difference")})]})}),w(sf,{children:Array.from(e.logged).map(([r])=>J(Pn,{children:[w(Be,{children:w(Ri,{to:Cn(hn.NUTRITION_DIARY,n.language,{id:e.planId,date:r}),children:new Date(r).toLocaleDateString(n.language)})}),w(Be,{align:"right",children:t("nutrition.valueEnergyKcal",{value:ts(e.logged.get(r)?.nutritionalValues.energy,n.language)})}),w(Be,{align:"right",children:ts(e.logged.get(r)?.nutritionalValues.energy-e.planned.energy,n.language)})]},r))})]})})},e0t=()=>{const[e]=We(),[t,n]=qe.useState(!1),r=()=>n(!0),o=()=>n(!1);return J("div",{children:[w(jp,{color:"secondary","aria-label":"add",onClick:r,sx:{position:"fixed",bottom:"5rem",right:i=>`max(${i.spacing(2)}, calc((100vw - ${i.breakpoints.values.lg}px) / 2 + ${i.spacing(2)}))`,zIndex:9},children:w(bi,{})}),w(ga,{title:e("add"),isOpen:t,closeFn:o,children:w(JU,{closeFn:o})})]})},t0t=e=>{const[t]=We(),[n,r]=qe.useState(!1),o=()=>r(!0),i=()=>r(!1);return J("div",{children:[w(jp,{color:"secondary","aria-label":"add",onClick:o,sx:{position:"fixed",bottom:"5rem",right:a=>`max(${a.spacing(2)}, calc((100vw - ${a.breakpoints.values.lg}px) / 2 + ${a.spacing(2)}))`,zIndex:9},children:w(xT,{})}),w(ga,{title:t("nutrition.addNutritionalDiary"),isOpen:n,closeFn:i,children:w(XU,{closeFn:i,planId:e.plan.id,meals:e.plan.meals})})]})},ide=({meal:e,planId:t,closeFn:n})=>{const[r,o]=We(),i=K2e(t),a=Q2e(t),s=qi({name:Hi().required().max(25,r("forms.maxLength",{chars:"25"})).min(3,r("forms.minLength",{chars:"3"})),time:Uc().required()});return w($a,{initialValues:{name:e?e.name:"",time:e?e.time:new Date},validationSchema:s,onSubmit:async l=>{if(l.time instanceof Date||(l.time=l.time.toJSDate()),e){const c=Ip.clone(e,{name:l.name,time:l.time});a.mutate(c)}else i.mutate(new Ip({planId:t,name:l.name,time:l.time}));n&&n()},children:l=>w(ba,{children:J(Jt,{spacing:2,children:[w(On,{fullWidth:!0,id:"name",label:r("description"),error:l.touched.name&&!!l.errors.name,helperText:l.touched.name&&l.errors.name,...l.getFieldProps("name")}),w(Vc,{dateAdapter:Wu,adapterLocale:o.language,children:w(TB,{label:r("timeOfDay"),value:l.values.time!==null?At.fromJSDate(l.values.time):null,onChange:c=>l.setFieldValue("time",c?c.toJSDate():null)})}),J(Jt,{direction:"row",justifyContent:"end",spacing:2,children:[n!==void 0&&w(St,{color:"primary",variant:"outlined",onClick:()=>n(),children:r("close")}),w(St,{disabled:i.isPending||a.isPending,color:"primary",variant:"contained",type:"submit",children:r("submit")})]})]})})})},n0t=e=>{const[t]=We(),n=OP(3),r=[{name:t("nutrition.energy"),value:e.logged.energy/e.planned.energy*100},{name:t("nutrition.protein"),value:e.logged.protein/e.planned.protein*100},{name:t("nutrition.carbohydrates"),value:e.logged.carbohydrates/e.planned.carbohydrates*100},{name:t("nutrition.fat"),value:e.logged.fat/e.planned.fat*100}];return w(qp,{width:"100%",height:150,children:J(lae,{data:r,layout:"vertical",margin:{left:60},children:[w(Hm,{strokeDasharray:"3 4"}),w(Um,{type:"number",unit:"%"}),w(Gm,{type:"category",dataKey:"name"}),w(K1,{dataKey:"value",unit:"%",fill:n.next().value})]})})},ade=({planId:e,item:t,mealId:n,closeFn:r})=>{const[o]=We(),i=X2e(e),a=J2e(e),s=Z2e(e),l=()=>{t&&s.mutate(t.id),r&&r()},c=qi({amount:ki().required(o("forms.fieldRequired")).max(1e3,o("forms.maxValue",{value:"1000"})).min(1,o("forms.minValue",{value:"1"})),ingredient:ki().required(o("forms.fieldRequired"))});return w($a,{initialValues:{amount:t?t.amount:0,ingredient:t?t.ingredientId:0},validationSchema:c,onSubmit:async u=>{const f=Math.round(u.amount);if(t){const h=Im.clone(t,{amount:f,ingredientId:u.ingredient,weightUnitId:null});a.mutate(h)}else i.mutate(new Im({mealId:n,amount:f,ingredientId:u.ingredient,order:1}));r&&r()},children:u=>w(ba,{children:J(Jt,{spacing:2,children:[w(jU,{callback:f=>u.setFieldValue("ingredient",f?f.id:null),initialIngredient:t?t.ingredient:null}),w(On,{fullWidth:!0,id:"amount",label:"amount",InputProps:{endAdornment:w(gi,{position:"end",children:o("nutrition.gramShort")})},error:u.touched.amount&&!!u.errors.amount,helperText:u.touched.amount&&u.errors.amount,...u.getFieldProps("amount")}),J(Jt,{direction:"row",justifyContent:"end",spacing:2,children:[r!==void 0&&t!==void 0&&w(St,{color:"error",variant:"outlined",onClick:l,children:o("delete")}),r!==void 0&&w(St,{color:"primary",variant:"outlined",onClick:()=>r(),children:o("close")}),w(St,{color:"primary",variant:"contained",type:"submit",children:o("submit")})]})]})})})},r0t=e=>{const t=W2e(e.planId),n=Y2e(e.planId),[r]=We(),[o,i]=qe.useState(!1),[a,s]=m.useState(null),[l,c]=m.useState(!1),[u,f]=m.useState(!1),h=!!a,g=$=>{s($.currentTarget)},y=()=>{x(),E()},x=()=>{s(null)},S=()=>{M(),s(null)},C=()=>{n.mutate(e.meal.id)},E=()=>c(!0),I=()=>c(!1),M=()=>f(!0),O=()=>f(!1),D=($,L)=>{L!=="clickaway"&&i(!1)},N=()=>{const $=e.meal.items.map(L=>L.diaryEntry(e.planId));t.mutate($),i(!0)};return J(_t,{children:[e.meal.isRealMeal&&!e.onlyLogging&&w(Gi,{title:r("nutrition.logThisMeal"),children:w(An,{"aria-label":"settings",onClick:N,children:w(xT,{})})}),e.meal.isRealMeal&&w(An,{"aria-label":"settings",onClick:g,children:w(Fle,{})}),w(An,{"aria-label":"settings",onClick:e.handleExpanded,children:e.isExpanded?w(Lle,{}):w($le,{})}),J(ec,{anchorEl:a,open:h,onClose:x,children:[w(bn,{onClick:y,children:r("edit")}),w(bn,{onClick:S,children:r("delete")})]}),w(ga,{title:r("edit"),isOpen:l,closeFn:I,children:w(ide,{meal:e.meal,closeFn:I,planId:e.planId})}),w(M2,{title:r("deleteConfirmation",{name:e.meal.name}),message:r("nutrition.mealDeleteInfo"),isOpen:u,closeFn:O,deleteFn:C}),w(vT,{open:o,autoHideDuration:IT,onClose:D,children:w(pa,{onClose:D,severity:"success",sx:{width:"100%"},children:r("nutrition.diaryEntrySaved")})})]})},o0t=e=>{const[t,n]=m.useState(!1),r=()=>n(!t);return J(_t,{children:[J(vi,{children:[w(Wz,{onClick:r,sx:{"&:hover":{cursor:"pointer"}},children:w(Ju,{alt:e.mealItem.ingredient?.name,src:e.mealItem.ingredient?.image?.url,sx:{width:45,height:45},children:w(Bp,{})})}),w(ko,{primary:`${e.mealItem.amountString} ${e.mealItem.ingredient?.name}`})]}),w(as,{in:t,timeout:"auto",unmountOnExit:!0,sx:{width:"100%"},children:w(vi,{children:w(ko,{children:w(ade,{planId:e.planId,mealId:e.mealId,item:e.mealItem,closeFn:r})})})})]})},eQ=e=>{const t=Po(),[n]=We(),[r,o]=m.useState(!1),i=()=>o(!r),[a,s]=m.useState(!1),l=()=>{s(!a),u(!1)},[c,u]=m.useState(!1),f=()=>{u(!c),s(!1)};return J(oi,{children:[w(rd,{sx:{bgcolor:t.palette.grey[300]},action:w(r0t,{meal:e.meal,planId:e.planId,onlyLogging:e.onlyLogging,isExpanded:r,handleExpanded:i}),title:e.meal.name,subheader:e.meal.timeHHMMLocale}),J(ss,{sx:{paddingY:0},children:[J(as,{in:r,timeout:"auto",unmountOnExit:!0,children:[!e.onlyLogging&&w(YB,{showSum:e.meal.isRealMeal,items:e.meal.items,values:e.meal.plannedNutritionalValues}),w(wt,{gutterBottom:!0,variant:"h6",sx:{my:2},children:n("nutrition.loggedToday")}),!e.meal.plannedNutritionalValues.isEmpty&&w(n0t,{logged:e.meal.loggedNutritionalValuesToday,planned:e.meal.plannedNutritionalValues}),w(YB,{showSum:e.meal.isRealMeal,items:e.meal.diaryEntriesToday,values:e.meal.loggedNutritionalValuesToday})]}),!r&&w(ca,{children:e.meal.items.map(h=>w(o0t,{mealItem:h,planId:e.planId,mealId:e.meal.id},h.id))})]}),J(iu,{children:[!e.onlyLogging&&w(Gi,{title:n("nutrition.addMealItem"),children:w(An,{onClick:l,children:w(bi,{})})}),w(Gi,{title:n("nutrition.addNutritionalDiary"),children:w(An,{onClick:f,children:w(xT,{})})})]}),w(as,{in:a,timeout:"auto",unmountOnExit:!0,children:J(ss,{sx:{paddingY:0},children:[w("p",{children:w("b",{children:n("nutrition.addMealItem")})}),w(ade,{planId:e.planId,mealId:e.meal.id,closeFn:l})]})}),w(as,{in:c,timeout:"auto",unmountOnExit:!0,children:J(ss,{sx:{paddingY:0},children:[w("p",{children:w("b",{children:n("nutrition.addNutritionalDiary")})}),w(XU,{closeFn:f,planId:e.planId,mealId:e.meal.isRealMeal?e.meal.id:null})]})})]})},tQ=e=>{const[t,n]=We();return w(lf,{children:J(af,{size:"small",children:[w(jm,{children:J(Pn,{children:[w(Be,{children:t("nutrition.macronutrient")}),w(Be,{align:"right",children:t("total")}),w(Be,{align:"right",children:t("nutrition.percentEnergy")})]})}),J(sf,{children:[J(Pn,{children:[w(Be,{children:t("nutrition.energy")}),w(Be,{align:"right",children:t("nutrition.valueEnergyKcalKj",{kcal:ts(e.values.energy,n.language),kj:ts(e.values.energyKj,n.language)})}),w(Be,{align:"right"})]}),J(Pn,{children:[w(Be,{children:t("nutrition.protein")}),w(Be,{align:"right",children:ar(e.values.protein,n.language)}),w(Be,{align:"right",children:D_(e.values.percent.protein,n.language)})]}),J(Pn,{children:[w(Be,{children:t("nutrition.carbohydrates")}),w(Be,{align:"right",children:ar(e.values.carbohydrates,n.language)}),w(Be,{align:"right",children:D_(e.values.percent.carbohydrates,n.language)})]}),J(Pn,{children:[w(Be,{sx:{pl:5},children:t("nutrition.ofWhichSugars")}),w(Be,{align:"right",children:ar(e.values.carbohydratesSugar,n.language)}),w(Be,{align:"right"})]}),J(Pn,{children:[w(Be,{children:t("nutrition.fat")}),w(Be,{align:"right",children:ar(e.values.fat,n.language)}),w(Be,{align:"right",children:D_(e.values.percent.fat,n.language)})]}),J(Pn,{children:[w(Be,{sx:{pl:5},children:t("nutrition.ofWhichSaturated")}),w(Be,{align:"right",children:ar(e.values.fatSaturated,n.language)}),w(Be,{align:"right"})]}),J(Pn,{children:[w(Be,{children:t("nutrition.others")}),w(Be,{children:" "}),w(Be,{align:"right"})]}),J(Pn,{children:[w(Be,{children:t("nutrition.fibres")}),w(Be,{align:"right",children:ar(e.values.fiber,n.language)}),w(Be,{align:"right"})]}),J(Pn,{children:[w(Be,{children:t("nutrition.sodium")}),w(Be,{align:"right",children:ar(e.values.sodium,n.language)}),w(Be,{align:"right"})]})]})]})})},i0t=e=>{const t=H2e(e.plan.id),n=Yp(),[r,o]=We(),[i,a]=qe.useState(null),[s,l]=qe.useState(!1),[c,u]=qe.useState(!1),f=!!i,h=N=>{a(N.currentTarget)},g=()=>{y(),I()},y=()=>{a(null)},x=()=>{O(),a(null)},S=()=>{t.mutate(e.plan.id),n(Cn(hn.NUTRITION_OVERVIEW))},C=()=>window.location.href=Cn(hn.NUTRITION_PLAN_PDF,o.language,{id:e.plan.id}),E=()=>window.location.href=Cn(hn.NUTRITION_PLAN_COPY,o.language,{id:e.plan.id}),I=()=>l(!0),M=()=>l(!1),O=()=>u(!0),D=()=>u(!1);return J(_t,{children:[w(St,{onClick:h,children:w(e5,{})}),J(ec,{anchorEl:i,open:f,onClose:y,children:[w(bn,{onClick:g,children:r("edit")}),w(bn,{onClick:C,children:r("downloadAsPdf")}),w(bn,{onClick:E,children:r("nutrition.copyPlan")}),w(bn,{onClick:x,children:r("delete")})]}),w(ga,{title:r("edit"),isOpen:s,closeFn:M,children:w(JU,{plan:e.plan,closeFn:M})}),w(M2,{title:r("deleteConfirmation",{name:e.plan.description}),message:r("nutrition.planDeleteInfo"),isOpen:c,closeFn:D,deleteFn:S})]})},a0t=e=>{const[t]=We(),n=e.plan.plannedNutritionalValues,r=e.plan.loggedNutritionalValuesToday,o=e.plan.percentageValuesLoggedToday;return w(_t,{children:J(Jt,{direction:"column",spacing:1,children:[w(wt,{gutterBottom:!0,variant:"h6",children:t("nutrition.goalsTitle")}),w(px,{title:t("nutrition.protein"),percentage:o.protein,logged:r.protein,planned:n.protein}),w(px,{title:t("nutrition.carbohydrates"),percentage:o.carbohydrates,logged:r.carbohydrates,planned:n.carbohydrates}),w(px,{title:t("nutrition.fat"),percentage:o.fat,logged:r.fat,planned:n.fat})]})})},s0t=()=>{const[e]=We(),t=gl(),n=parseInt(t.planId??"");if(Number.isNaN(n))return w("p",{children:"Please pass an integer as the nutritional plan id."});const r=B2e(n),[o,i]=m.useState(!1),a=()=>i(!o),s=r.data;return r.isLoading?w(lo,{}):w(rc,{title:s.description,optionsMenu:w(i0t,{plan:s}),mainContent:w(_t,{children:J(Jt,{spacing:2,children:[s.meals.map(l=>w(eQ,{meal:l,planId:s.id,onlyLogging:s.onlyLogging},l.id)),w(eQ,{meal:r.data.pseudoMealOthers(e("nutrition.pseudoMealTitle")),planId:s.id,onlyLogging:!0},-1),!s.onlyLogging&&J(_t,{children:[w(Gi,{title:e("nutrition.addMeal"),children:w(An,{onClick:a,children:w(bi,{})})}),J(as,{in:o,timeout:"auto",unmountOnExit:!0,children:[w("p",{children:w("b",{children:e("nutrition.addMeal")})}),w(ide,{planId:s.id,closeFn:a})]})]}),w(tQ,{values:s.plannedNutritionalValues}),s.hasAnyPlanned&&w(Xbt,{data:s.plannedNutritionalValues}),w(wt,{gutterBottom:!0,variant:"h4",children:e("nutrition.logged")}),w(Jbt,{showPlanned:s.hasAnyPlanned,planned:s.plannedNutritionalValues,today:s.loggedNutritionalValuesToday,avg7Days:s.loggedNutritionalValues7DayAvg}),w(tQ,{values:s.loggedNutritionalValuesToday}),w(Zbt,{planId:s.id,logged:s.groupDiaryEntries,planned:s.plannedNutritionalValues})]})}),sideBar:w(a0t,{plan:s}),fab:w(t0t,{plan:s})})},l0t=()=>{const e=F2e(),[t]=We();return e.isLoading?w(lo,{}):w(rc,{title:t("nutrition.plans"),mainContent:J(Jt,{spacing:2,children:[e.data?.length===0&&w(Iv,{}),w(u0t,{plans:e.data})]}),fab:w(e0t,{})})},c0t=e=>{const[t,n]=We(),r=Cn(hn.NUTRITION_DETAIL,n.language,{id:e.plan.id});return J(_t,{children:[w(vi,{sx:{p:0},children:J(Gu,{component:"a",href:r,children:[w(ko,{primary:e.plan.description!==""?e.plan.description:t("routines.routine"),secondary:e.plan.end?`${e.plan.start.toLocaleDateString()} – ${e.plan.end.toLocaleDateString()}`:`${e.plan.start.toLocaleDateString()}`}),w(Nle,{})]})}),w($s,{component:"li"})]})},u0t=e=>w(ai,{children:w(ca,{sx:{py:0},children:e.plans.map(t=>w(c0t,{plan:t},t.id))},"abc")});function Fp(e){const[t,n]=nc(e.fieldName),r=e.fullwidth??!0;return w(On,{fullWidth:r,id:e.fieldName,label:e.title,variant:"standard",error:n.touched&&!!n.error,helperText:n.touched&&n.error,...t,...e.fieldProps})}const d0t=e=>{const{t}=We(),n=dP(e.routineId),r=[{value:"normal",label:t("routines.set.normalSet")},{value:"dropset",label:t("routines.set.dropSet")},{value:"myo",label:t("routines.set.myo")},{value:"partial",label:t("routines.set.partial")},{value:"forced",label:t("routines.set.forced")},{value:"tut",label:t("routines.set.tut")},{value:"iso",label:t("routines.set.iso")},{value:"jump",label:t("routines.set.jump")}],o=i=>{n.mutate(ff.clone(e.slotEntry,{type:i}))};return w(_t,{children:w(On,{fullWidth:!0,select:!0,label:t("routines.set.type"),variant:"standard",value:e.slotEntry.type,disabled:n.isPending,onChange:i=>o(i.target.value),children:r.map(i=>w(bn,{value:i.value,children:i.label},i.value))})})},f0t=e=>{const{t}=We(),n=dP(e.routineId),r=Vot();if(r.isLoading)return w(tv,{});const o=r.data?.map(a=>({value:a.id,label:a.name})),i=a=>{n.mutate(ff.clone(e.slotEntry,{repetitionUnitId:parseInt(a)}))};return w(_t,{children:w(On,{fullWidth:!0,select:!0,label:t("unit"),variant:"standard",value:e.slotEntry.repetitionUnitId,disabled:n.isPending,onChange:a=>i(a.target.value),children:o.map(a=>w(bn,{value:a.value??"",children:a.label},a.value))})})},p0t=e=>{const{t}=We(),n=dP(e.routineId),r=zot(),o=yl();if(r.isLoading||o.isLoading)return w(tv,{});const i=r.data?.map(s=>({value:s.id,label:s.name})),a=s=>{n.mutate(ff.clone(e.slotEntry,{weightUnitId:parseInt(s)}))};return w(_t,{children:w(On,{fullWidth:!0,select:!0,label:t("unit"),variant:"standard",value:e.slotEntry.weightUnitId,disabled:n.isPending,onChange:s=>a(s.target.value),children:i.map(s=>w(bn,{value:s.value??"",children:s.label},s.value))})})};function h0t(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}}const nR=e=>{const{t}=We(),n=dP(e.routineId),r=qbt(),[o,i]=m.useState(e.initialValue===null?"":e.initialValue),a=m.useCallback(h0t(l=>{const c=isNaN(Number(l))?null:parseFloat(l),u=e.rounding==="weight"?{weightRounding:c}:{repetitionRounding:c};e.editProfile?r.mutate(u):n.mutate(ff.clone(e.slotEntry,u))},FZ),[]),s=l=>{i(l),a(l)};return w(On,{fullWidth:!0,label:e.rounding==="weight"?t("weight"):t("routines.reps"),variant:"standard",value:o,disabled:n.isPending||r.isPending,onChange:l=>s(l.target.value)})},MP=({routine:e,isTemplate:t=!1,isPublicTemplate:n=!1,closeFn:r})=>{const[o,i]=We(),a=oot(),s=Ole(e?.id??-1),l=Yp(),[c,u]=m.useState(e?At.fromJSDate(e.start):At.now()),[f,h]=m.useState(e?At.fromJSDate(e.end):At.now().plus({weeks:ERe})),g=f.diff(c,["weeks","days"]),y=Math.floor(g.weeks),x=Math.floor(g.days),S=qi({name:Hi().required().max(zG,o("forms.maxLength",{chars:zG})).min(BG,o("forms.minLength",{chars:BG})),description:Hi().max(VG,o("forms.maxLength",{chars:VG})),start:Uc().required(),end:Uc().required().min(s2("start"),o("forms.endBeforeStart")).test("hasMinimumDuration",o("routines.minLengthRoutine",{number:HG}),function(C){const E=this.parent.start;if(E&&C){const I=At.fromJSDate(E);return At.fromJSDate(C).diff(I,"weeks").weeks>=HG}return!0}).test("hasMaximumDuration",o("routines.maxLengthRoutine",{number:UG}),function(C){const E=this.parent.start;if(E&&C){const I=At.fromJSDate(E);return At.fromJSDate(C).diff(I,"weeks").weeks<=UG}return!0}),fitInWeek:xp()});return w($a,{initialValues:{name:e?e.name:"",description:e?e.description:"",start:c,end:f,fitInWeek:e?e.fitInWeek:!0},validationSchema:S,onSubmit:async C=>{if(e){const E=Qc.clone(e);E.fitInWeek=C.fitInWeek,E.name=C.name,E.description=C.description,E.start=C.start.toJSDate(),E.end=C.end.toJSDate(),s.mutate(E)}else{const E=await a.mutateAsync(new Qc({id:null,name:C.name,description:C.description,start:C.start.toJSDate(),end:C.end?.toJSDate(),fitInWeek:C.fitInWeek,isTemplate:t,isPublic:n}));l(Cn(hn.ROUTINE_EDIT,i.language,{id:E.id})),r&&r()}},children:C=>w(ba,{children:J(xe,{container:!0,spacing:2,children:[w(xe,{size:{xs:12},children:w(Fp,{fieldName:"name",title:o("name")})}),w(xe,{size:12,children:w(Fp,{fieldName:"description",title:o("description"),fieldProps:{multiline:!0,rows:4}})}),w(xe,{size:{xs:6},children:w(Vc,{dateAdapter:Wu,adapterLocale:i.language,children:w(Hx,{defaultValue:At.now(),label:o("start"),value:c,onChange:E=>{E&&(C.setFieldValue("start",E),u(E))},slotProps:{textField:{variant:"standard",fullWidth:!0,error:C.touched.start&&!!C.errors.start,helperText:C.touched.start&&C.errors.start?String(C.errors.start):""}}})})}),w(xe,{size:{xs:5},children:w(Vc,{dateAdapter:Wu,adapterLocale:i.language,children:w(Hx,{defaultValue:At.now(),label:o("end"),value:f,onChange:E=>{E&&(C.setFieldValue("end",E),h(E))},slotProps:{textField:{variant:"standard",fullWidth:!0,error:C.touched.end&&!!C.errors.end,helperText:C.touched.end&&C.errors.end?String(C.errors.end):""}}})})}),w(xe,{size:{xs:1},sx:{display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center"},children:x===0?o("durationWeeks",{number:y}):o("durationWeeksDays",{nrWeeks:y,nrDays:x})}),J(xe,{size:12,children:[w(Yl,{control:w(Wi,{checked:C.values.fitInWeek,...C.getFieldProps("fitInWeek")}),label:o("routines.fitDaysInWeek")}),w(Gi,{title:o("routines.fitDaysInWeekHelpText"),children:w(An,{size:"small",children:w(UE,{fontSize:"inherit"})})})]}),w(xe,{size:12,children:w(St,{disabled:C.isSubmitting,color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:o("save")})})]})})})},m0t=e=>{const t=yl(),{t:n}=We(),[r,o]=qe.useState(null),i=!!r,a=l=>{o(l.currentTarget)},s=()=>{o(null)};return J(Jt,{direction:"row",children:[w(St,{variant:"text",id:"basic-button","aria-controls":i?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":i?"true":void 0,onClick:a,children:n("routines.defaultRounding")}),J(ec,{id:"basic-menu",anchorEl:r,open:i,onClose:s,MenuListProps:{"aria-labelledby":"basic-button"},children:[w(bn,{children:w(nR,{routineId:e.routineId,rounding:"weight",editProfile:!0,initialValue:t.data.weightRounding})}),w(bn,{children:w(nR,{routineId:e.routineId,rounding:"reps",editProfile:!0,initialValue:t.data.repetitionsRounding})})]}),w(Gi,{title:n("routines.roundingHelp"),children:w(An,{onClick:()=>{},children:w(UE,{fontSize:"small"})})})]})},g0t=()=>w(xe,{container:!0,children:w(xe,{size:6,offset:3,children:w(MP,{})})}),sde=e=>{const{t}=We(),n=Ole(e.routine.id),[r,o]=m.useState(e.routine.isTemplate),[i,a]=m.useState(e.routine.isPublic),s=u=>{const f=u&&i;o(u),a(f),c(u,f)},l=u=>{const f=u&&r;a(f),c(r,f)},c=(u,f)=>{const h=Qc.clone(e.routine);h.isTemplate=u,h.isPublic=f,n.mutate(h)};return J(xe,{container:!0,spacing:2,children:[w(xe,{size:12,children:J(Jt,{children:[w(Yl,{disabled:n.isPending,control:w(Wi,{checked:r,onChange:async()=>s(!r)}),label:t("routines.template")}),w(wt,{variant:"caption",children:t("routines.templatesHelpText")})]})}),w(xe,{size:12,children:J(Jt,{children:[w(Yl,{disabled:n.isPending||!r,control:w(Wi,{checked:i,onChange:async()=>l(!i)}),label:t("routines.publicTemplate")}),w(wt,{variant:"caption",children:t("routines.publicTemplateHelpText")})]})})]})},y0t=e=>{const t=Yp(),n=iot(e.routine.id),[r,o]=We(),[i,a]=m.useState(null),[s,l]=m.useState(0),c=!!i,u=C=>{a(C.currentTarget)},f=()=>{l(1),x()},h=()=>{l(2),x()},g=async()=>{await n.mutateAsync(),t(Cn(hn.ROUTINE_OVERVIEW,o.language))},y=()=>{l(0)},x=()=>{a(null)};return J("div",{children:[w(St,{onClick:u,children:w(e5,{})}),J(ec,{anchorEl:i,open:c,onClose:x,children:[w(bn,{onClick:()=>window.location.href=Cn(hn.ROUTINE_EDIT,o.language,{id:e.routine.id}),children:r("edit")}),w(bn,{component:Ri,to:Cn(hn.ROUTINE_DETAIL_TABLE,o.language,{id:e.routine.id}),children:"Table view"}),e.routine.isNotTemplate&&w(bn,{component:Ri,to:Cn(hn.ROUTINE_LOGS_OVERVIEW,o.language,{id:e.routine.id}),children:r("routines.logsOverview")}),e.routine.isNotTemplate&&w(bn,{component:Ri,to:Cn(hn.ROUTINE_STATS_OVERVIEW,o.language,{id:e.routine.id}),children:r("routines.statsOverview")}),w(bn,{component:"a",href:Cn(hn.ROUTINE_COPY,o.language,{id:e.routine.id}),children:r("routines.duplicate")}),w(bn,{onClick:h,children:r("routines.markAsTemplate")}),w(bn,{component:"a",href:Cn(hn.ROUTINE_PDF_TABLE,o.language,{id:e.routine.id}),download:`Routine-${e.routine.id}-table.pdf`,children:r("routines.downloadPdfTable")}),w(bn,{component:"a",href:Cn(hn.ROUTINE_PDF_LOGS,o.language,{id:e.routine.id}),download:`Routine-${e.routine.id}-logs.pdf`,children:r("routines.downloadPdfLogs")}),w(bn,{component:"a",href:Cn(hn.ROUTINE_ICAL,o.language,{id:e.routine.id}),download:`Routine-${e.routine.id}-calendar.ics`,children:r("routines.downloadIcal")}),w($s,{}),w(bn,{onClick:f,children:r("delete")})]}),J(hE,{open:s===1,onClose:y,children:[w(zA,{id:"alert-dialog-title",children:r("delete")}),w(gE,{children:w(G3,{id:"alert-dialog-description",children:r("deleteConfirmation",{name:e.routine.name})})}),J(mE,{children:[w(St,{onClick:y,children:r("cancel")}),w(St,{onClick:g,color:"error",autoFocus:!0,children:r("delete")})]})]}),J(hE,{open:s===2,onClose:y,children:[w(zA,{children:r("routines.markAsTemplate")}),w(gE,{children:w(G3,{children:w(sde,{routine:e.routine})})}),w(mE,{children:w(St,{onClick:y,children:r("close")})})]})]})},v0t=()=>{const{t:e}=We(),t=gl(),n=parseInt(t.routineId??"");if(Number.isNaN(n))return w("p",{children:"Please pass an integer as the routine id."});const r=bf(n),o=r.data,i=`${o?.start.toLocaleDateString()} - ${o?.end.toLocaleDateString()} (${o?.durationText})`,a=o?.isTemplate?w(Yc,{color:"info",size:"small",label:e("routines.template")}):null;return w(c2,{query:r,child:r.isSuccess&&w(rc,{title:J(_t,{children:[o.name," ",a]}),subTitle:i,optionsMenu:w(y0t,{routine:r.data}),mainContent:J(Jt,{spacing:2,children:[o.description!==""&&w(wt,{variant:"body2",sx:{whiteSpace:"pre-line"},children:o?.description}),o.isTemplate&&w(St,{component:"a",href:Cn(hn.ROUTINE_COPY,jn.language,{id:n}),variant:"contained",children:e("routines.copyAndUseTemplate")}),o.dayDataCurrentIteration.filter(s=>s.day!==null).map((s,l)=>w(s5,{routineId:n,dayData:s,readOnly:o.isTemplate},l))]}),sideBar:J(Jt,{children:[w(mn,{height:40}),J(xe,{container:!0,children:[w(xe,{size:6,children:w(td,{primaryMuscles:o.mainMuscles.filter(s=>s.isFront),secondaryMuscles:o.secondaryMuscles.filter(s=>s.isFront),isFront:!0})}),w(xe,{size:6,children:w(td,{primaryMuscles:o.mainMuscles.filter(s=>!s.isFront),secondaryMuscles:o.secondaryMuscles.filter(s=>!s.isFront),isFront:!1})})]})]})})})},J$="RoutineDetailsTable",sp={stickyColumn:`${J$}-stickyColumn`,stickyHeader:`${J$}-stickyHeader`,whiteBg:`${J$}-whiteBg`},b0t=ue(Pp)({[`& .${sp.stickyColumn}`]:{position:"sticky",left:0,zIndex:1},[`& .${sp.stickyHeader}`]:{position:"sticky",top:0,zIndex:2,background:"white"},[`& .${sp.whiteBg}`]:{backgroundColor:"white"}}),x0t=()=>{const{t:e,i18n:t}=We(),n=gl(),r=n.routineId?parseInt(n.routineId):0,o=bf(r),i=Ile(r),[a,s]=qe.useState(!1);return w(c2,{query:o,child:o.isSuccess&&w(yP,{title:o.data.name,backToUrl:Cn(hn.ROUTINE_DETAIL,t.language,{id:r}),maxWidth:!1,children:J(Jt,{children:[w(Yl,{control:w(Wi,{checked:a,onChange:(l,c)=>s(c)}),label:e("routines.alsoShowLogs")}),w(lde,{routine:o.data,showLogs:a,logData:i.data})]})})})};function w0t(e,t,n){return e==null?null:t!=null&&n!==null&&n!==void 0?e<t?"lower":e>n?"higher":"match":t!=null?e<t?"lower":e>t?"higher":"match":null}const lde=e=>{const{t,i18n:n}=We(),r=Po(),o=xf(),i=e.showLogs??!1,a=e.logData??[];let s;o.isSuccess&&(s=Op(n.language,o.data));const l={};for(const S of a)for(const C of S.logs)C.iteration!==null&&(l[C.iteration]||(l[C.iteration]=[]),l[C.iteration].push(C));const c=Object.keys(e.routine.groupedDayDataByIteration).map(S=>parseInt(S));function u(){return w(Pn,{children:c.map(S=>{const C=S===1?w(Be,{className:sp.stickyColumn}):null;return J(qe.Fragment,{children:[C,w(Be,{align:"center",children:t("routines.sets")}),w(Be,{align:"center",sx:{minWidth:40},children:t("routines.reps")}),w(Be,{align:"center",sx:{minWidth:40},children:t("weight")}),w(Be,{align:"center",sx:{minWidth:60},children:t("routines.restTime")}),w(Be,{align:"center",sx:{minWidth:40},children:t("routines.rir")})]},`header-${S}`)})})}function f(){return w(Pn,{children:c.map(S=>{const C=S===1?w(Be,{className:sp.stickyColumn}):null;return J(qe.Fragment,{children:[C,w(Be,{colSpan:5,children:w(wt,{variant:"h6",children:t("routines.weekNr",{number:S})})})]},`header-iteration-${S}`)})})}function h(S,C){const E={borderBottomWidth:i?0:null,minWidth:40};function I(M,O,D){return J(_t,{children:[M===null||O===null?"-/-":O,M!==null&&D!==null&&J(_t,{children:[" - ",D]})]})}return J(Pn,{children:[w(Be,{className:sp.stickyColumn,sx:{minWidth:150,backgroundColor:"white",borderBottomWidth:i?0:null},children:S.exercise?.getTranslation(s).name}),c.map(M=>{const O=e.routine.getSetConfigData(C.id,M,S.id);return J(qe.Fragment,{children:[w(Be,{align:"center",sx:E,children:I(O,O?.nrOfSets,O?.maxNrOfSets)}),w(Be,{align:"center",sx:E,children:I(O,O?.repetitions,O?.maxRepetitions)}),w(Be,{align:"center",sx:E,children:I(O,O?.weight,O?.maxWeight)}),w(Be,{align:"center",sx:E,children:I(O,O?.restTime,O?.maxRestTime)}),w(Be,{align:"center",sx:E,children:I(O,O?.rir,O?.maxRir)})]},M)})]})}function g(S,C,E,I){const M=w0t(S,C,E);S===105&&console.log(S,C,E,I,M);const O=17;return I=I??!0,M===null?null:M==="lower"?w(Iit,{sx:{fontSize:O},color:I?"error":"success"}):M==="higher"?w(xit,{sx:{fontSize:O},color:I?"success":"error"}):w(hit,{sx:{fontSize:O},color:"success"})}function y(S,C){return J(Pn,{children:[w(Be,{sx:{verticalAlign:"top",backgroundColor:"white"},className:sp.stickyColumn,children:w("small",{children:t("nutrition.logged")})}),c.map(E=>{const I=e.routine.getSetConfigData(C.id,E,S.id),O=(l[E]??[]).filter(D=>D.slotEntryId===S.id);return J(qe.Fragment,{children:[w(Be,{align:"center",sx:{verticalAlign:"top"}}),w(Be,{align:"center",sx:{verticalAlign:"top"},children:O.map((D,N)=>w(Jt,{children:J("span",{children:[D.repetitions??"-/-",g(D.repetitions,I?.repetitions,I?.maxRepetitions)]})},N))}),w(Be,{align:"center",sx:{verticalAlign:"top"},children:O.map((D,N)=>w(Jt,{children:J("span",{children:[D.weight??"-/-",g(D.weight,I?.weight,I?.maxWeight)]})},N))}),w(Be,{align:"center",sx:{verticalAlign:"top"},children:O.map((D,N)=>w(Jt,{children:J("span",{children:[D.restTime??"-/-",g(D.restTime,I?.restTime,I?.maxRestTime)]})},N))}),w(Be,{align:"center",sx:{verticalAlign:"top"},children:O.map((D,N)=>w(Jt,{children:J("span",{children:[D.rir??"-/-",g(D.rir,I?.rir,I?.maxRir,!1)]})},N))})]},E)})]})}function x(){return w(_t,{children:e.routine.days.map(S=>J(qe.Fragment,{children:[J(Pn,{children:[w(Be,{sx:{backgroundColor:r.palette.action.hover},className:sp.stickyColumn,children:w("b",{children:S.getDisplayName()})}),w(Be,{sx:{backgroundColor:r.palette.action.hover},colSpan:5*c.length})]}),S.slots.map((C,E)=>w(qe.Fragment,{children:C.entries.map((I,M)=>J(qe.Fragment,{children:[h(I,S),i&&y(I,S)]},M))},E))]},S.id))})}return w(b0t,{maxWidth:!1,sx:{overflowX:"scroll",display:"flex",height:"80vh"},children:w(lf,{children:J(af,{size:"small",children:[J(jm,{className:sp.stickyHeader,children:[f(),u()]}),w(sf,{children:x()})]})})})};var Uu=function(t){var n=t.top,r=t.right,o=t.bottom,i=t.left,a=r-i,s=o-n,l={top:n,right:r,bottom:o,left:i,width:a,height:s,x:i,y:n,center:{x:(r+i)/2,y:(o+n)/2}};return l},L5=function(t,n){return{top:t.top-n.top,left:t.left-n.left,bottom:t.bottom+n.bottom,right:t.right+n.right}},nQ=function(t,n){return{top:t.top+n.top,left:t.left+n.left,bottom:t.bottom-n.bottom,right:t.right-n.right}},S0t=function(t,n){return{top:t.top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x}},Z$={top:0,right:0,bottom:0,left:0},$5=function(t){var n=t.borderBox,r=t.margin,o=r===void 0?Z$:r,i=t.border,a=i===void 0?Z$:i,s=t.padding,l=s===void 0?Z$:s,c=Uu(L5(n,o)),u=Uu(nQ(n,a)),f=Uu(nQ(u,l));return{marginBox:c,borderBox:Uu(n),paddingBox:u,contentBox:f,margin:o,border:a,padding:l}},Ec=function(t){var n=t.slice(0,-2),r=t.slice(-2);if(r!=="px")return 0;var o=Number(n);return isNaN(o)&&pie(),o},C0t=function(){return{x:window.pageXOffset,y:window.pageYOffset}},rR=function(t,n){var r=t.borderBox,o=t.border,i=t.margin,a=t.padding,s=S0t(r,n);return $5({borderBox:s,border:o,margin:i,padding:a})},oR=function(t,n){return n===void 0&&(n=C0t()),rR(t,n)},cde=function(t,n){var r={top:Ec(n.marginTop),right:Ec(n.marginRight),bottom:Ec(n.marginBottom),left:Ec(n.marginLeft)},o={top:Ec(n.paddingTop),right:Ec(n.paddingRight),bottom:Ec(n.paddingBottom),left:Ec(n.paddingLeft)},i={top:Ec(n.borderTopWidth),right:Ec(n.borderRightWidth),bottom:Ec(n.borderBottomWidth),left:Ec(n.borderLeftWidth)};return $5({borderBox:t,margin:r,padding:o,border:i})},ude=function(t){var n=t.getBoundingClientRect(),r=window.getComputedStyle(t);return cde(n,r)},XE=function(t){var n=[],r=null,o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n=s,!r&&(r=requestAnimationFrame(function(){r=null,t.apply(void 0,n)}))};return o.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},o};function dde(e,t){}dde.bind(null,"warn");dde.bind(null,"error");function vm(){}function E0t(e,t){return{...e,...t}}function Fc(e,t,n){const r=t.map(o=>{const i=E0t(n,o.options);return e.addEventListener(o.eventName,o.fn,i),function(){e.removeEventListener(o.eventName,o.fn,i)}});return function(){r.forEach(i=>{i()})}}const T0t="Invariant failed";class iR extends Error{}iR.prototype.toString=function(){return this.message};function Nt(e,t){throw new iR(T0t)}class P0t extends qe.Component{constructor(...t){super(...t),this.callbacks=null,this.unbind=vm,this.onWindowError=n=>{const r=this.getCallbacks();r.isDragging()&&r.tryAbort(),n.error instanceof iR&&n.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=n=>{this.callbacks=n}}componentDidMount(){this.unbind=Fc(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof iR){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const I0t=`
- Press space bar to start a drag.
- When dragging you can use the arrow keys to move the item around and escape to cancel.
- Some screen readers may require you to be in focus mode or to use your pass through key
-`,aR=e=>e+1,O0t=e=>`
- You have lifted an item in position ${aR(e.source.index)}
-`,fde=(e,t)=>{const n=e.droppableId===t.droppableId,r=aR(e.index),o=aR(t.index);return n?`
- You have moved the item from position ${r}
- to position ${o}
- `:`
- You have moved the item from position ${r}
- in list ${e.droppableId}
- to list ${t.droppableId}
- in position ${o}
- `},pde=(e,t,n)=>t.droppableId===n.droppableId?`
- The item ${e}
- has been combined with ${n.draggableId}`:`
- The item ${e}
- in list ${t.droppableId}
- has been combined with ${n.draggableId}
- in list ${n.droppableId}
- `,M0t=e=>{const t=e.destination;if(t)return fde(e.source,t);const n=e.combine;return n?pde(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},rQ=e=>`
- The item has returned to its starting position
- of ${aR(e.index)}
-`,A0t=e=>{if(e.reason==="CANCEL")return`
- Movement cancelled.
- ${rQ(e.source)}
- `;const t=e.destination,n=e.combine;return t?`
- You have dropped the item.
- ${fde(e.source,t)}
- `:n?`
- You have dropped the item.
- ${pde(e.draggableId,e.source,n)}
- `:`
- The item has been dropped while not over a drop area.
- ${rQ(e.source)}
- `},PA={dragHandleUsageInstructions:I0t,onDragStart:O0t,onDragUpdate:M0t,onDragEnd:A0t};function D0t(e,t){return!!(e===t||Number.isNaN(e)&&Number.isNaN(t))}function hde(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!D0t(e[n],t[n]))return!1;return!0}function Sr(e,t){const n=m.useState(()=>({inputs:t,result:e()}))[0],r=m.useRef(!0),o=m.useRef(n),a=r.current||!!(t&&o.current.inputs&&hde(t,o.current.inputs))?o.current:{inputs:t,result:e()};return m.useEffect(()=>{r.current=!1,o.current=a},[a]),a.result}function un(e,t){return Sr(()=>e,t)}const ha={x:0,y:0},Na=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),jl=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),bm=(e,t)=>e.x===t.x&&e.y===t.y,qw=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),wv=(e,t,n=0)=>e==="x"?{x:t,y:n}:{x:n,y:t},JE=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),oQ=(e,t)=>Math.min(...t.map(n=>JE(e,n))),mde=e=>t=>({x:e(t.x),y:e(t.y)});var R0t=(e,t)=>{const n=Uu({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n};const AP=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),iQ=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],k0t={top:0,right:0,bottom:0,left:0},N0t=(e,t)=>t?AP(e,t.scroll.diff.displacement):e,_0t=(e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e,L0t=(e,t)=>t&&t.shouldClipSubject?R0t(t.pageMarginBox,e):Uu(e);var Xx=({page:e,withPlaceholder:t,axis:n,frame:r})=>{const o=N0t(e.marginBox,r),i=_0t(o,n,t),a=L0t(i,r);return{page:e,withPlaceholder:t,active:a}},F5=(e,t)=>{e.frame||Nt();const n=e.frame,r=jl(t,n.scroll.initial),o=qw(r),i={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}},a=Xx({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:a}};function fa(e,t=hde){let n=null;function r(...o){if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;const i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return r.clear=function(){n=null},r}const gde=fa(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),yde=fa(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),A2=fa(e=>Object.values(e)),$0t=fa(e=>Object.values(e));var Kw=fa((e,t)=>$0t(t).filter(r=>e===r.descriptor.droppableId).sort((r,o)=>r.descriptor.index-o.descriptor.index));function j5(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function D2(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var R2=fa((e,t)=>t.filter(n=>n.descriptor.id!==e.descriptor.id)),F0t=({isMovingForward:e,draggable:t,destination:n,insideDestination:r,previousImpact:o})=>{if(!n.isCombineEnabled||!j5(o))return null;function a(g){const y={type:"COMBINE",combine:{draggableId:g,droppableId:n.descriptor.id}};return{...o,at:y}}const s=o.displaced.all,l=s.length?s[0]:null;if(e)return l?a(l):null;const c=R2(t,r);if(!l){if(!c.length)return null;const g=c[c.length-1];return a(g.descriptor.id)}const u=c.findIndex(g=>g.descriptor.id===l);u===-1&&Nt();const f=u-1;if(f<0)return null;const h=c[f];return a(h.descriptor.id)},Yw=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const vde={point:ha,value:0},ZE={invisible:{},visible:{},all:[]},j0t={displaced:ZE,displacedBy:vde,at:null};var Wc=(e,t)=>n=>e<=n&&n<=t,bde=e=>{const t=Wc(e.top,e.bottom),n=Wc(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const i=t(r.top)||t(r.bottom),a=n(r.left)||n(r.right);if(i&&a)return!0;const l=r.top<e.top&&r.bottom>e.bottom,c=r.left<e.left&&r.right>e.right;return l&&c?!0:l&&a||c&&i}},B0t=e=>{const t=Wc(e.top,e.bottom),n=Wc(e.left,e.right);return r=>t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right)};const B5={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},xde={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var z0t=e=>t=>{const n=Wc(t.top,t.bottom),r=Wc(t.left,t.right);return o=>e===B5?n(o.top)&&n(o.bottom):r(o.left)&&r(o.right)};const V0t=(e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:ha;return AP(e,n)},H0t=(e,t,n)=>t.subject.active?n(t.subject.active)(e):!1,U0t=(e,t,n)=>n(t)(e),z5=({target:e,destination:t,viewport:n,withDroppableDisplacement:r,isVisibleThroughFrameFn:o})=>{const i=r?V0t(e,t):e;return H0t(i,t,o)&&U0t(i,n,o)},G0t=e=>z5({...e,isVisibleThroughFrameFn:bde}),wde=e=>z5({...e,isVisibleThroughFrameFn:B0t}),W0t=e=>z5({...e,isVisibleThroughFrameFn:z0t(e.destination.axis)}),q0t=(e,t,n)=>{if(typeof n=="boolean")return n;if(!t)return!0;const{invisible:r,visible:o}=t;if(r[e])return!1;const i=o[e];return i?i.shouldAnimate:!0};function K0t(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return Uu(L5(n,r))}function eT({afterDragging:e,destination:t,displacedBy:n,viewport:r,forceShouldAnimate:o,last:i}){return e.reduce(function(s,l){const c=K0t(l,n),u=l.descriptor.id;if(s.all.push(u),!G0t({target:c,destination:t,viewport:r,withDroppableDisplacement:!0}))return s.invisible[l.descriptor.id]=!0,s;const h=q0t(u,i,o),g={draggableId:u,shouldAnimate:h};return s.visible[u]=g,s},{all:[],visible:{},invisible:{}})}function Y0t(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function aQ({insideDestination:e,inHomeList:t,displacedBy:n,destination:r}){const o=Y0t(e,{inHomeList:t});return{displaced:ZE,displacedBy:n,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:o}}}}function sR({draggable:e,insideDestination:t,destination:n,viewport:r,displacedBy:o,last:i,index:a,forceShouldAnimate:s}){const l=Yw(e,n);if(a==null)return aQ({insideDestination:t,inHomeList:l,displacedBy:o,destination:n});const c=t.find(y=>y.descriptor.index===a);if(!c)return aQ({insideDestination:t,inHomeList:l,displacedBy:o,destination:n});const u=R2(e,t),f=t.indexOf(c),h=u.slice(f);return{displaced:eT({afterDragging:h,destination:n,displacedBy:o,last:i,viewport:r.frame,forceShouldAnimate:s}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:a}}}}function km(e,t){return!!t.effected[e]}var Q0t=({isMovingForward:e,destination:t,draggables:n,combine:r,afterCritical:o})=>{if(!t.isCombineEnabled)return null;const i=r.draggableId,s=n[i].descriptor.index;return km(i,o)?e?s:s-1:e?s+1:s},X0t=({isMovingForward:e,isInHomeList:t,insideDestination:n,location:r})=>{if(!n.length)return null;const o=r.index,i=e?o+1:o-1,a=n[0].descriptor.index,s=n[n.length-1].descriptor.index,l=t?s:s+1;return i<a||i>l?null:i},J0t=({isMovingForward:e,isInHomeList:t,draggable:n,draggables:r,destination:o,insideDestination:i,previousImpact:a,viewport:s,afterCritical:l})=>{const c=a.at;if(c||Nt(),c.type==="REORDER"){const f=X0t({isMovingForward:e,isInHomeList:t,location:c.destination,insideDestination:i});return f==null?null:sR({draggable:n,insideDestination:i,destination:o,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:f})}const u=Q0t({isMovingForward:e,destination:o,displaced:a.displaced,draggables:r,combine:c.combine,afterCritical:l});return u==null?null:sR({draggable:n,insideDestination:i,destination:o,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:u})},Z0t=({displaced:e,afterCritical:t,combineWith:n,displacedBy:r})=>{const o=!!(e.visible[n]||e.invisible[n]);return km(n,t)?o?ha:qw(r.point):o?r.point:ha},ext=({afterCritical:e,impact:t,draggables:n})=>{const r=D2(t);r||Nt();const o=r.draggableId,i=n[o].page.borderBox.center,a=Z0t({displaced:t.displaced,afterCritical:e,combineWith:o,displacedBy:t.displacedBy});return Na(i,a)};const Sde=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,txt=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,V5=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,sQ=({axis:e,moveRelativeTo:t,isMoving:n})=>wv(e.line,t.marginBox[e.end]+Sde(e,n),V5(e,t.marginBox,n)),lQ=({axis:e,moveRelativeTo:t,isMoving:n})=>wv(e.line,t.marginBox[e.start]-txt(e,n),V5(e,t.marginBox,n)),nxt=({axis:e,moveInto:t,isMoving:n})=>wv(e.line,t.contentBox[e.start]+Sde(e,n),V5(e,t.contentBox,n));var rxt=({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:o})=>{const i=Kw(r.descriptor.id,n),a=t.page,s=r.axis;if(!i.length)return nxt({axis:s,moveInto:r.page,isMoving:a});const{displaced:l,displacedBy:c}=e,u=l.all[0];if(u){const h=n[u];if(km(u,o))return lQ({axis:s,moveRelativeTo:h.page,isMoving:a});const g=rR(h.page,c.point);return lQ({axis:s,moveRelativeTo:g,isMoving:a})}const f=i[i.length-1];if(f.descriptor.id===t.descriptor.id)return a.borderBox.center;if(km(f.descriptor.id,o)){const h=rR(f.page,qw(o.displacedBy.point));return sQ({axis:s,moveRelativeTo:h,isMoving:a})}return sQ({axis:s,moveRelativeTo:f.page,isMoving:a})},QB=(e,t)=>{const n=e.frame;return n?Na(t,n.scroll.diff.displacement):t};const oxt=({impact:e,draggable:t,droppable:n,draggables:r,afterCritical:o})=>{const i=t.page.borderBox.center,a=e.at;return!n||!a?i:a.type==="REORDER"?rxt({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:o}):ext({impact:e,draggables:r,afterCritical:o})};var k2=e=>{const t=oxt(e),n=e.droppable;return n?QB(n,t):t},Cde=(e,t)=>{const n=jl(t,e.scroll.initial),r=qw(n);return{frame:Uu({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function cQ(e,t){return e.map(n=>t[n])}function ixt(e,t){for(let n=0;n<t.length;n++){const r=t[n].visible[e];if(r)return r}return null}var axt=({impact:e,viewport:t,destination:n,draggables:r,maxScrollChange:o})=>{const i=Cde(t,Na(t.scroll.current,o)),a=n.frame?F5(n,Na(n.frame.scroll.current,o)):n,s=e.displaced,l=eT({afterDragging:cQ(s.all,r),destination:n,displacedBy:e.displacedBy,viewport:i.frame,last:s,forceShouldAnimate:!1}),c=eT({afterDragging:cQ(s.all,r),destination:a,displacedBy:e.displacedBy,viewport:t.frame,last:s,forceShouldAnimate:!1}),u={},f={},h=[s,l,c];return s.all.forEach(y=>{const x=ixt(y,h);if(x){f[y]=x;return}u[y]=!0}),{...e,displaced:{all:s.all,invisible:u,visible:f}}},sxt=(e,t)=>Na(e.scroll.diff.displacement,t),H5=({pageBorderBoxCenter:e,draggable:t,viewport:n})=>{const r=sxt(n,e),o=jl(r,t.page.borderBox.center);return Na(t.client.borderBox.center,o)},Ede=({draggable:e,destination:t,newPageBorderBoxCenter:n,viewport:r,withDroppableDisplacement:o,onlyOnMainAxis:i=!1})=>{const a=jl(n,e.page.borderBox.center),l={target:AP(e.page.borderBox,a),destination:t,withDroppableDisplacement:o,viewport:r};return i?W0t(l):wde(l)},lxt=({isMovingForward:e,draggable:t,destination:n,draggables:r,previousImpact:o,viewport:i,previousPageBorderBoxCenter:a,previousClientSelection:s,afterCritical:l})=>{if(!n.isEnabled)return null;const c=Kw(n.descriptor.id,r),u=Yw(t,n),f=F0t({isMovingForward:e,draggable:t,destination:n,insideDestination:c,previousImpact:o})||J0t({isMovingForward:e,isInHomeList:u,draggable:t,draggables:r,destination:n,insideDestination:c,previousImpact:o,viewport:i,afterCritical:l});if(!f)return null;const h=k2({impact:f,draggable:t,droppable:n,draggables:r,afterCritical:l});if(Ede({draggable:t,destination:n,newPageBorderBoxCenter:h,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:H5({pageBorderBoxCenter:h,draggable:t,viewport:i}),impact:f,scrollJumpRequest:null};const y=jl(h,a),x=axt({impact:f,viewport:i,destination:n,draggables:r,maxScrollChange:y});return{clientSelection:s,impact:x,scrollJumpRequest:y}};const Ts=e=>{const t=e.subject.active;return t||Nt(),t};var cxt=({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:r,viewport:o})=>{const i=n.subject.active;if(!i)return null;const a=n.axis,s=Wc(i[a.start],i[a.end]),l=A2(r).filter(u=>u!==n).filter(u=>u.isEnabled).filter(u=>!!u.subject.active).filter(u=>bde(o.frame)(Ts(u))).filter(u=>{const f=Ts(u);return e?i[a.crossAxisEnd]<f[a.crossAxisEnd]:f[a.crossAxisStart]<i[a.crossAxisStart]}).filter(u=>{const f=Ts(u),h=Wc(f[a.start],f[a.end]);return s(f[a.start])||s(f[a.end])||h(i[a.start])||h(i[a.end])}).sort((u,f)=>{const h=Ts(u)[a.crossAxisStart],g=Ts(f)[a.crossAxisStart];return e?h-g:g-h}).filter((u,f,h)=>Ts(u)[a.crossAxisStart]===Ts(h[0])[a.crossAxisStart]);if(!l.length)return null;if(l.length===1)return l[0];const c=l.filter(u=>Wc(Ts(u)[a.start],Ts(u)[a.end])(t[a.line]));return c.length===1?c[0]:c.length>1?c.sort((u,f)=>Ts(u)[a.start]-Ts(f)[a.start])[0]:l.sort((u,f)=>{const h=oQ(t,iQ(Ts(u))),g=oQ(t,iQ(Ts(f)));return h!==g?h-g:Ts(u)[a.start]-Ts(f)[a.start]})[0]};const uQ=(e,t)=>{const n=e.page.borderBox.center;return km(e.descriptor.id,t)?jl(n,t.displacedBy.point):n},uxt=(e,t)=>{const n=e.page.borderBox;return km(e.descriptor.id,t)?AP(n,qw(t.displacedBy.point)):n};var dxt=({pageBorderBoxCenter:e,viewport:t,destination:n,insideDestination:r,afterCritical:o})=>r.filter(a=>wde({target:uxt(a,o),destination:n,viewport:t.frame,withDroppableDisplacement:!0})).sort((a,s)=>{const l=JE(e,QB(n,uQ(a,o))),c=JE(e,QB(n,uQ(s,o)));return l<c?-1:c<l?1:a.descriptor.index-s.descriptor.index})[0]||null,DP=fa(function(t,n){const r=n[t.line];return{value:r,point:wv(t.line,r)}});const fxt=(e,t,n)=>{const r=e.axis;if(e.descriptor.mode==="virtual")return wv(r.line,t[r.line]);const o=e.subject.page.contentBox[r.size],l=Kw(e.descriptor.id,n).reduce((c,u)=>c+u.client.marginBox[r.size],0)+t[r.line]-o;return l<=0?null:wv(r.line,l)},Tde=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),Pde=(e,t,n)=>{const r=e.frame;Yw(t,e)&&Nt(),e.subject.withPlaceholder&&Nt();const o=DP(e.axis,t.displaceBy).point,i=fxt(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const u=Xx({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:u}}const s=i?Na(r.scroll.max,i):r.scroll.max,l=Tde(r,s),c=Xx({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l});return{...e,subject:c,frame:l}},pxt=e=>{const t=e.subject.withPlaceholder;t||Nt();const n=e.frame;if(!n){const a=Xx({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:a}}const r=t.oldFrameMaxScroll;r||Nt();const o=Tde(n,r),i=Xx({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return{...e,subject:i,frame:o}};var hxt=({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:n,draggable:r,draggables:o,destination:i,viewport:a,afterCritical:s})=>{if(!t){if(n.length)return null;const f={displaced:ZE,displacedBy:vde,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},h=k2({impact:f,draggable:r,droppable:i,draggables:o,afterCritical:s}),g=Yw(r,i)?i:Pde(i,r,o);return Ede({draggable:r,destination:g,newPageBorderBoxCenter:h,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?f:null}const l=e[i.axis.line]<=t.page.borderBox.center[i.axis.line],c=(()=>{const f=t.descriptor.index;return t.descriptor.id===r.descriptor.id||l?f:f+1})(),u=DP(i.axis,r.displaceBy);return sR({draggable:r,insideDestination:n,destination:i,viewport:a,displacedBy:u,last:ZE,index:c})},mxt=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:n,isOver:r,draggables:o,droppables:i,viewport:a,afterCritical:s})=>{const l=cxt({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:i,viewport:a});if(!l)return null;const c=Kw(l.descriptor.id,o),u=dxt({pageBorderBoxCenter:t,viewport:a,destination:l,insideDestination:c,afterCritical:s}),f=hxt({previousPageBorderBoxCenter:t,destination:l,draggable:n,draggables:o,moveRelativeTo:u,insideDestination:c,viewport:a,afterCritical:s});if(!f)return null;const h=k2({impact:f,draggable:n,droppable:l,draggables:o,afterCritical:s});return{clientSelection:H5({pageBorderBoxCenter:h,draggable:n,viewport:a}),impact:f,scrollJumpRequest:null}},Gl=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const gxt=(e,t)=>{const n=Gl(e);return n?t[n]:null};var yxt=({state:e,type:t})=>{const n=gxt(e.impact,e.dimensions.droppables),r=!!n,o=e.dimensions.droppables[e.critical.droppable.id],i=n||o,a=i.axis.direction,s=a==="vertical"&&(t==="MOVE_UP"||t==="MOVE_DOWN")||a==="horizontal"&&(t==="MOVE_LEFT"||t==="MOVE_RIGHT");if(s&&!r)return null;const l=t==="MOVE_DOWN"||t==="MOVE_RIGHT",c=e.dimensions.draggables[e.critical.draggable.id],u=e.current.page.borderBoxCenter,{draggables:f,droppables:h}=e.dimensions;return s?lxt({isMovingForward:l,previousPageBorderBoxCenter:u,draggable:c,destination:i,draggables:f,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):mxt({isMovingForward:l,previousPageBorderBoxCenter:u,draggable:c,isOver:i,draggables:f,droppables:h,viewport:e.viewport,afterCritical:e.afterCritical})};function Ey(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function Ide(e){const t=Wc(e.top,e.bottom),n=Wc(e.left,e.right);return function(o){return t(o.y)&&n(o.x)}}function vxt(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function bxt({pageBorderBox:e,draggable:t,candidates:n}){const r=t.page.borderBox.center,o=n.map(i=>{const a=i.axis,s=wv(i.axis.line,e.center[a.line],i.page.borderBox.center[a.crossAxisLine]);return{id:i.descriptor.id,distance:JE(r,s)}}).sort((i,a)=>a.distance-i.distance);return o[0]?o[0].id:null}function xxt({pageBorderBox:e,draggable:t,droppables:n}){const r=A2(n).filter(o=>{if(!o.isEnabled)return!1;const i=o.subject.active;if(!i||!vxt(e,i))return!1;if(Ide(i)(e.center))return!0;const a=o.axis,s=i.center[a.crossAxisLine],l=e[a.crossAxisStart],c=e[a.crossAxisEnd],u=Wc(i[a.crossAxisStart],i[a.crossAxisEnd]),f=u(l),h=u(c);return!f&&!h?!0:f?l<s:c>s});return r.length?r.length===1?r[0].descriptor.id:bxt({pageBorderBox:e,draggable:t,candidates:r}):null}const Ode=(e,t)=>Uu(AP(e,t));var wxt=(e,t)=>{const n=e.frame;return n?Ode(t,n.scroll.diff.value):t};function Mde({displaced:e,id:t}){return!!(e.visible[t]||e.invisible[t])}function Sxt({draggable:e,closest:t,inHomeList:n}){return t?n&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}var Cxt=({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:n,insideDestination:r,last:o,viewport:i,afterCritical:a})=>{const s=n.axis,l=DP(n.axis,t.displaceBy),c=l.value,u=e[s.start],f=e[s.end],g=R2(t,r).find(x=>{const S=x.descriptor.id,C=x.page.borderBox.center[s.line],E=km(S,a),I=Mde({displaced:o,id:S});return E?I?f<=C:u<C-c:I?f<=C+c:u<C})||null,y=Sxt({draggable:t,closest:g,inHomeList:Yw(t,n)});return sR({draggable:t,insideDestination:r,destination:n,viewport:i,last:o,displacedBy:l,index:y})};const Ext=4;var Txt=({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:n,destination:r,insideDestination:o,afterCritical:i})=>{if(!r.isCombineEnabled)return null;const a=r.axis,s=DP(r.axis,e.displaceBy),l=s.value,c=t[a.start],u=t[a.end],h=R2(e,o).find(y=>{const x=y.descriptor.id,S=y.page.borderBox,E=S[a.size]/Ext,I=km(x,i),M=Mde({displaced:n.displaced,id:x});return I?M?u>S[a.start]+E&&u<S[a.end]-E:c>S[a.start]-l+E&&c<S[a.end]-l-E:M?u>S[a.start]+l+E&&u<S[a.end]+l-E:c>S[a.start]+E&&c<S[a.end]-E});return h?{displacedBy:s,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:h.descriptor.id,droppableId:r.descriptor.id}}}:null},Ade=({pageOffset:e,draggable:t,draggables:n,droppables:r,previousImpact:o,viewport:i,afterCritical:a})=>{const s=Ode(t.page.borderBox,e),l=xxt({pageBorderBox:s,draggable:t,droppables:r});if(!l)return j0t;const c=r[l],u=Kw(c.descriptor.id,n),f=wxt(c,s);return Txt({pageBorderBoxWithDroppableScroll:f,draggable:t,previousImpact:o,destination:c,insideDestination:u,afterCritical:a})||Cxt({pageBorderBoxWithDroppableScroll:f,draggable:t,destination:c,insideDestination:u,last:o.displaced,viewport:i,afterCritical:a})},U5=(e,t)=>({...e,[t.descriptor.id]:t});const Pxt=({previousImpact:e,impact:t,droppables:n})=>{const r=Gl(e),o=Gl(t);if(!r||r===o)return n;const i=n[r];if(!i.subject.withPlaceholder)return n;const a=pxt(i);return U5(n,a)};var Ixt=({draggable:e,draggables:t,droppables:n,previousImpact:r,impact:o})=>{const i=Pxt({previousImpact:r,impact:o,droppables:n}),a=Gl(o);if(!a)return i;const s=n[a];if(Yw(e,s)||s.subject.withPlaceholder)return i;const l=Pde(s,e,t);return U5(i,l)},nE=({state:e,clientSelection:t,dimensions:n,viewport:r,impact:o,scrollJumpRequest:i})=>{const a=r||e.viewport,s=n||e.dimensions,l=t||e.current.client.selection,c=jl(l,e.initial.client.selection),u={offset:c,selection:l,borderBoxCenter:Na(e.initial.client.borderBoxCenter,c)},f={selection:Na(u.selection,a.scroll.current),borderBoxCenter:Na(u.borderBoxCenter,a.scroll.current),offset:Na(u.offset,a.scroll.diff.value)},h={client:u,page:f};if(e.phase==="COLLECTING")return{...e,dimensions:s,viewport:a,current:h};const g=s.draggables[e.critical.draggable.id],y=o||Ade({pageOffset:f.offset,draggable:g,draggables:s.draggables,droppables:s.droppables,previousImpact:e.impact,viewport:a,afterCritical:e.afterCritical}),x=Ixt({draggable:g,impact:y,previousImpact:e.impact,draggables:s.draggables,droppables:s.droppables});return{...e,current:h,dimensions:{draggables:s.draggables,droppables:x},impact:y,viewport:a,scrollJumpRequest:i||null,forceShouldAnimate:i?!1:null}};function Oxt(e,t){return e.map(n=>t[n])}var Dde=({impact:e,viewport:t,draggables:n,destination:r,forceShouldAnimate:o})=>{const i=e.displaced,a=Oxt(i.all,n),s=eT({afterDragging:a,destination:r,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:o,last:i});return{...e,displaced:s}},Rde=({impact:e,draggable:t,droppable:n,draggables:r,viewport:o,afterCritical:i})=>{const a=k2({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:i});return H5({pageBorderBoxCenter:a,draggable:t,viewport:o})},kde=({state:e,dimensions:t,viewport:n})=>{e.movementMode!=="SNAP"&&Nt();const r=e.impact,o=n||e.viewport,i=t||e.dimensions,{draggables:a,droppables:s}=i,l=a[e.critical.draggable.id],c=Gl(r);c||Nt();const u=s[c],f=Dde({impact:r,viewport:o,destination:u,draggables:a}),h=Rde({impact:f,draggable:l,droppable:u,draggables:a,viewport:o,afterCritical:e.afterCritical});return nE({impact:f,clientSelection:h,state:e,dimensions:i,viewport:o})},Mxt=e=>({index:e.index,droppableId:e.droppableId}),Nde=({draggable:e,home:t,draggables:n,viewport:r})=>{const o=DP(t.axis,e.displaceBy),i=Kw(t.descriptor.id,n),a=i.indexOf(e);a===-1&&Nt();const s=i.slice(a+1),l=s.reduce((h,g)=>(h[g.descriptor.id]=!0,h),{}),c={inVirtualList:t.descriptor.mode==="virtual",displacedBy:o,effected:l};return{impact:{displaced:eT({afterDragging:s,destination:t,displacedBy:o,last:null,viewport:r.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:Mxt(e.descriptor)}},afterCritical:c}},Axt=(e,t)=>({draggables:e.draggables,droppables:U5(e.droppables,t)}),Dxt=({draggable:e,offset:t,initialWindowScroll:n})=>{const r=rR(e.client,t),o=oR(r,n);return{...e,placeholder:{...e.placeholder,client:r},client:r,page:o}},Rxt=e=>{const t=e.frame;return t||Nt(),t},kxt=({additions:e,updatedDroppables:t,viewport:n})=>{const r=n.scroll.diff.value;return e.map(o=>{const i=o.descriptor.droppableId,a=t[i],l=Rxt(a).scroll.diff.value,c=Na(r,l);return Dxt({draggable:o,offset:c,initialWindowScroll:n.scroll.initial})})},Nxt=({state:e,published:t})=>{const n=t.modified.map(C=>{const E=e.dimensions.droppables[C.droppableId];return F5(E,C.scroll)}),r={...e.dimensions.droppables,...gde(n)},o=yde(kxt({additions:t.additions,updatedDroppables:r,viewport:e.viewport})),i={...e.dimensions.draggables,...o};t.removals.forEach(C=>{delete i[C]});const a={droppables:r,draggables:i},s=Gl(e.impact),l=s?a.droppables[s]:null,c=a.draggables[e.critical.draggable.id],u=a.droppables[e.critical.droppable.id],{impact:f,afterCritical:h}=Nde({draggable:c,home:u,draggables:i,viewport:e.viewport}),g=l&&l.isCombineEnabled?e.impact:f,y=Ade({pageOffset:e.current.page.offset,draggable:a.draggables[e.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:g,viewport:e.viewport,afterCritical:h}),x={...e,phase:"DRAGGING",impact:y,onLiftImpact:f,dimensions:a,afterCritical:h,forceShouldAnimate:!1};return e.phase==="COLLECTING"?x:{...x,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}};const XB=e=>e.movementMode==="SNAP",eF=(e,t,n)=>{const r=Axt(e.dimensions,t);return!XB(e)||n?nE({state:e,dimensions:r}):kde({state:e,dimensions:r})};function tF(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const dQ={phase:"IDLE",completed:null,shouldFlush:!1};var _xt=(e=dQ,t)=>{if(t.type==="FLUSH")return{...dQ,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&Nt();const{critical:n,clientSelection:r,viewport:o,dimensions:i,movementMode:a}=t.payload,s=i.draggables[n.draggable.id],l=i.droppables[n.droppable.id],c={selection:r,borderBoxCenter:s.client.borderBox.center,offset:ha},u={client:c,page:{selection:Na(c.selection,o.scroll.initial),borderBoxCenter:Na(c.selection,o.scroll.initial),offset:Na(c.selection,o.scroll.diff.value)}},f=A2(i.droppables).every(x=>!x.isFixedOnPage),{impact:h,afterCritical:g}=Nde({draggable:s,home:l,draggables:i.draggables,viewport:o});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:a,dimensions:i,initial:u,current:u,isWindowScrollAllowed:f,impact:h,afterCritical:g,onLiftImpact:h,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&Nt(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||Nt(),Nxt({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Ey(e)||Nt();const{client:n}=t.payload;return bm(n,e.current.client.selection)?e:nE({state:e,clientSelection:n,impact:XB(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return tF(e);Ey(e)||Nt();const{id:n,newScroll:r}=t.payload,o=e.dimensions.droppables[n];if(!o)return e;const i=F5(o,r);return eF(e,i,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ey(e)||Nt();const{id:n,isEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||Nt(),o.isEnabled===r&&Nt();const i={...o,isEnabled:r};return eF(e,i,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ey(e)||Nt();const{id:n,isCombineEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||Nt(),o.isCombineEnabled===r&&Nt();const i={...o,isCombineEnabled:r};return eF(e,i,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Ey(e)||Nt(),e.isWindowScrollAllowed||Nt();const n=t.payload.newScroll;if(bm(e.viewport.scroll.current,n))return tF(e);const r=Cde(e.viewport,n);return XB(e)?kde({state:e,viewport:r}):nE({state:e,viewport:r})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Ey(e))return e;const n=t.payload.maxScroll;if(bm(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&Nt();const n=yxt({state:e,type:t.type});return n?nE({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const n=t.payload.reason;return e.phase!=="COLLECTING"&&Nt(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if(t.type==="DROP_ANIMATE"){const{completed:n,dropDuration:r,newHomeClientOffset:o}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||Nt(),{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:o,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:n}=t.payload;return{phase:"IDLE",completed:n,shouldFlush:!1}}return e};function qr(e,t){return e instanceof Object&&"type"in e&&e.type===t}const Lxt=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),$xt=e=>({type:"LIFT",payload:e}),Fxt=e=>({type:"INITIAL_PUBLISH",payload:e}),jxt=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),Bxt=()=>({type:"COLLECTION_STARTING",payload:null}),zxt=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),Vxt=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),Hxt=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),_de=e=>({type:"MOVE",payload:e}),Uxt=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),Gxt=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),Wxt=()=>({type:"MOVE_UP",payload:null}),qxt=()=>({type:"MOVE_DOWN",payload:null}),Kxt=()=>({type:"MOVE_RIGHT",payload:null}),Yxt=()=>({type:"MOVE_LEFT",payload:null}),G5=()=>({type:"FLUSH",payload:null}),Qxt=e=>({type:"DROP_ANIMATE",payload:e}),W5=e=>({type:"DROP_COMPLETE",payload:e}),Lde=e=>({type:"DROP",payload:e}),Xxt=e=>({type:"DROP_PENDING",payload:e}),$de=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var Jxt=e=>({getState:t,dispatch:n})=>r=>o=>{if(!qr(o,"LIFT")){r(o);return}const{id:i,clientSelection:a,movementMode:s}=o.payload,l=t();l.phase==="DROP_ANIMATING"&&n(W5({completed:l.completed})),t().phase!=="IDLE"&&Nt(),n(G5()),n(Lxt({draggableId:i,movementMode:s}));const u={draggableId:i,scrollOptions:{shouldPublishImmediately:s==="SNAP"}},{critical:f,dimensions:h,viewport:g}=e.startPublishing(u);n(Fxt({critical:f,dimensions:h,clientSelection:a,movementMode:s,viewport:g}))},Zxt=e=>()=>t=>n=>{qr(n,"INITIAL_PUBLISH")&&e.dragging(),qr(n,"DROP_ANIMATE")&&e.dropping(n.payload.completed.result.reason),(qr(n,"FLUSH")||qr(n,"DROP_COMPLETE"))&&e.resting(),t(n)};const q5={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},tT={opacity:{drop:0,combining:.7},scale:{drop:.75}},Fde={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},gy=`${Fde.outOfTheWay}s ${q5.outOfTheWay}`,rE={fluid:`opacity ${gy}`,snap:`transform ${gy}, opacity ${gy}`,drop:e=>{const t=`${e}s ${q5.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${gy}`,placeholder:`height ${gy}, width ${gy}, margin ${gy}`},fQ=e=>bm(e,ha)?void 0:`translate(${e.x}px, ${e.y}px)`,JB={moveTo:fQ,drop:(e,t)=>{const n=fQ(e);if(n)return t?`${n} scale(${tT.scale.drop})`:n}},{minDropTime:ZB,maxDropTime:jde}=Fde,ewt=jde-ZB,pQ=1500,twt=.6;var nwt=({current:e,destination:t,reason:n})=>{const r=JE(e,t);if(r<=0)return ZB;if(r>=pQ)return jde;const o=r/pQ,i=ZB+ewt*o,a=n==="CANCEL"?i*twt:i;return Number(a.toFixed(2))},rwt=({impact:e,draggable:t,dimensions:n,viewport:r,afterCritical:o})=>{const{draggables:i,droppables:a}=n,s=Gl(e),l=s?a[s]:null,c=a[t.descriptor.droppableId],u=Rde({impact:e,draggable:t,draggables:i,afterCritical:o,droppable:l||c,viewport:r});return jl(u,t.client.borderBox.center)},owt=({draggables:e,reason:t,lastImpact:n,home:r,viewport:o,onLiftImpact:i})=>!n.at||t!=="DROP"?{impact:Dde({draggables:e,impact:i,destination:r,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:n.at.type==="REORDER"?{impact:n,didDropInsideDroppable:!0}:{impact:{...n,displaced:ZE},didDropInsideDroppable:!0};const iwt=({getState:e,dispatch:t})=>n=>r=>{if(!qr(r,"DROP")){n(r);return}const o=e(),i=r.payload.reason;if(o.phase==="COLLECTING"){t(Xxt({reason:i}));return}if(o.phase==="IDLE")return;o.phase==="DROP_PENDING"&&o.isWaiting&&Nt(),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||Nt();const s=o.critical,l=o.dimensions,c=l.draggables[o.critical.draggable.id],{impact:u,didDropInsideDroppable:f}=owt({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),h=f?j5(u):null,g=f?D2(u):null,y={index:s.draggable.index,droppableId:s.droppable.id},x={draggableId:c.descriptor.id,type:c.descriptor.type,source:y,reason:i,mode:o.movementMode,destination:h,combine:g},S=rwt({impact:u,draggable:c,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),C={critical:o.critical,afterCritical:o.afterCritical,result:x,impact:u};if(!(!bm(o.current.client.offset,S)||!!x.combine)){t(W5({completed:C}));return}const I=nwt({current:o.current.client.offset,destination:S,reason:i});t(Qxt({newHomeClientOffset:S,dropDuration:I,completed:C}))};var Bde=()=>({x:window.pageXOffset,y:window.pageYOffset});function awt(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function swt({onWindowScroll:e}){function t(){e(Bde())}const n=XE(t),r=awt(n);let o=vm;function i(){return o!==vm}function a(){i()&&Nt(),o=Fc(window,[r])}function s(){i()||Nt(),n.cancel(),o(),o=vm}return{start:a,stop:s,isActive:i}}const lwt=e=>qr(e,"DROP_COMPLETE")||qr(e,"DROP_ANIMATE")||qr(e,"FLUSH"),cwt=e=>{const t=swt({onWindowScroll:n=>{e.dispatch(Uxt({newScroll:n}))}});return n=>r=>{!t.isActive()&&qr(r,"INITIAL_PUBLISH")&&t.start(),t.isActive()&&lwt(r)&&t.stop(),n(r)}};var uwt=e=>{let t=!1,n=!1;const r=setTimeout(()=>{n=!0}),o=i=>{t||n||(t=!0,e(i),clearTimeout(r))};return o.wasCalled=()=>t,o},dwt=()=>{const e=[],t=o=>{const i=e.findIndex(s=>s.timerId===o);i===-1&&Nt();const[a]=e.splice(i,1);a.callback()};return{add:o=>{const i=setTimeout(()=>t(i)),a={timerId:i,callback:o};e.push(a)},flush:()=>{if(!e.length)return;const o=[...e];e.length=0,o.forEach(i=>{clearTimeout(i.timerId),i.callback()})}}};const fwt=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,pwt=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,hwt=(e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r},g1=(e,t)=>{t()},qM=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function nF(e,t,n,r){if(!e){n(r(t));return}const o=uwt(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}var mwt=(e,t)=>{const n=dwt();let r=null;const o=(f,h)=>{r&&Nt(),g1("onBeforeCapture",()=>{const g=e().onBeforeCapture;g&&g({draggableId:f,mode:h})})},i=(f,h)=>{r&&Nt(),g1("onBeforeDragStart",()=>{const g=e().onBeforeDragStart;g&&g(qM(f,h))})},a=(f,h)=>{r&&Nt();const g=qM(f,h);r={mode:h,lastCritical:f,lastLocation:g.source,lastCombine:null},n.add(()=>{g1("onDragStart",()=>nF(e().onDragStart,g,t,PA.onDragStart))})},s=(f,h)=>{const g=j5(h),y=D2(h);r||Nt();const x=!hwt(f,r.lastCritical);x&&(r.lastCritical=f);const S=!fwt(r.lastLocation,g);S&&(r.lastLocation=g);const C=!pwt(r.lastCombine,y);if(C&&(r.lastCombine=y),!x&&!S&&!C)return;const E={...qM(f,r.mode),combine:y,destination:g};n.add(()=>{g1("onDragUpdate",()=>nF(e().onDragUpdate,E,t,PA.onDragUpdate))})},l=()=>{r||Nt(),n.flush()},c=f=>{r||Nt(),r=null,g1("onDragEnd",()=>nF(e().onDragEnd,f,t,PA.onDragEnd))};return{beforeCapture:o,beforeStart:i,start:a,update:s,flush:l,drop:c,abort:()=>{if(!r)return;const f={...qM(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};c(f)}}},gwt=(e,t)=>{const n=mwt(e,t);return r=>o=>i=>{if(qr(i,"BEFORE_INITIAL_CAPTURE")){n.beforeCapture(i.payload.draggableId,i.payload.movementMode);return}if(qr(i,"INITIAL_PUBLISH")){const s=i.payload.critical;n.beforeStart(s,i.payload.movementMode),o(i),n.start(s,i.payload.movementMode);return}if(qr(i,"DROP_COMPLETE")){const s=i.payload.completed.result;n.flush(),o(i),n.drop(s);return}if(o(i),qr(i,"FLUSH")){n.abort();return}const a=r.getState();a.phase==="DRAGGING"&&n.update(a.critical,a.impact)}};const ywt=e=>t=>n=>{if(!qr(n,"DROP_ANIMATION_FINISHED")){t(n);return}const r=e.getState();r.phase!=="DROP_ANIMATING"&&Nt(),e.dispatch(W5({completed:r.completed}))},vwt=e=>{let t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return o=>i=>{if((qr(i,"FLUSH")||qr(i,"DROP_COMPLETE")||qr(i,"DROP_ANIMATION_FINISHED"))&&r(),o(i),!qr(i,"DROP_ANIMATE"))return;const a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch($de())}};n=requestAnimationFrame(()=>{n=null,t=Fc(window,[a])})}};var bwt=e=>()=>t=>n=>{(qr(n,"DROP_COMPLETE")||qr(n,"FLUSH")||qr(n,"DROP_ANIMATE"))&&e.stopPublishing(),t(n)},xwt=e=>{let t=!1;return()=>n=>r=>{if(qr(r,"INITIAL_PUBLISH")){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),!!t){if(qr(r,"FLUSH")){t=!1,e.tryRestoreFocusRecorded();return}if(qr(r,"DROP_COMPLETE")){t=!1;const o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const wwt=e=>qr(e,"DROP_COMPLETE")||qr(e,"DROP_ANIMATE")||qr(e,"FLUSH");var Swt=e=>t=>n=>r=>{if(wwt(r)){e.stop(),n(r);return}if(qr(r,"INITIAL_PUBLISH")){n(r);const o=t.getState();o.phase!=="DRAGGING"&&Nt(),e.start(o);return}n(r),e.scroll(t.getState())};const Cwt=e=>t=>n=>{if(t(n),!qr(n,"PUBLISH_WHILE_DRAGGING"))return;const r=e.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||e.dispatch(Lde({reason:r.reason})))},Ewt=EE;var Twt=({dimensionMarshal:e,focusMarshal:t,styleMarshal:n,getResponders:r,announce:o,autoScroller:i})=>DV(_xt,Ewt(Jte(Zxt(n),bwt(e),Jxt(e),iwt,ywt,vwt,Cwt,Swt(i),cwt,xwt(t),gwt(r,o))));const rF=()=>({additions:{},removals:{},modified:{}});function Pwt({registry:e,callbacks:t}){let n=rF(),r=null;const o=()=>{r||(t.collectionStarting(),r=requestAnimationFrame(()=>{r=null;const{additions:l,removals:c,modified:u}=n,f=Object.keys(l).map(y=>e.draggable.getById(y).getDimension(ha)).sort((y,x)=>y.descriptor.index-x.descriptor.index),h=Object.keys(u).map(y=>{const S=e.droppable.getById(y).callbacks.getScrollWhileDragging();return{droppableId:y,scroll:S}}),g={additions:f,removals:Object.keys(c),modified:h};n=rF(),t.publish(g)}))};return{add:l=>{const c=l.descriptor.id;n.additions[c]=l,n.modified[l.descriptor.droppableId]=!0,n.removals[c]&&delete n.removals[c],o()},remove:l=>{const c=l.descriptor;n.removals[c.id]=!0,n.modified[c.droppableId]=!0,n.additions[c.id]&&delete n.additions[c.id],o()},stop:()=>{r&&(cancelAnimationFrame(r),r=null,n=rF())}}}var zde=({scrollHeight:e,scrollWidth:t,height:n,width:r})=>{const o=jl({x:t,y:e},{x:r,y:n});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},Vde=()=>{const e=document.documentElement;return e||Nt(),e},Hde=()=>{const e=Vde();return zde({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Iwt=()=>{const e=Bde(),t=Hde(),n=e.y,r=e.x,o=Vde(),i=o.clientWidth,a=o.clientHeight,s=r+i,l=n+a;return{frame:Uu({top:n,left:r,right:s,bottom:l}),scroll:{initial:e,current:e,max:t,diff:{value:ha,displacement:ha}}}},Owt=({critical:e,scrollOptions:t,registry:n})=>{const r=Iwt(),o=r.scroll.current,i=e.droppable,a=n.droppable.getAllByType(i.type).map(u=>u.callbacks.getDimensionAndWatchScroll(o,t)),s=n.draggable.getAllByType(e.draggable.type).map(u=>u.getDimension(o));return{dimensions:{draggables:yde(s),droppables:gde(a)},critical:e,viewport:r}};function hQ(e,t,n){return!(n.descriptor.id===t.id||n.descriptor.type!==t.type||e.droppable.getById(n.descriptor.droppableId).descriptor.mode!=="virtual")}var Mwt=(e,t)=>{let n=null;const r=Pwt({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=(h,g)=>{e.droppable.exists(h)||Nt(),n&&t.updateDroppableIsEnabled({id:h,isEnabled:g})},i=(h,g)=>{n&&(e.droppable.exists(h)||Nt(),t.updateDroppableIsCombineEnabled({id:h,isCombineEnabled:g}))},a=(h,g)=>{n&&(e.droppable.exists(h)||Nt(),t.updateDroppableScroll({id:h,newScroll:g}))},s=(h,g)=>{n&&e.droppable.getById(h).callbacks.scroll(g)},l=()=>{if(!n)return;r.stop();const h=n.critical.droppable;e.droppable.getAllByType(h.type).forEach(g=>g.callbacks.dragStopped()),n.unsubscribe(),n=null},c=h=>{n||Nt();const g=n.critical.draggable;h.type==="ADDITION"&&hQ(e,g,h.value)&&r.add(h.value),h.type==="REMOVAL"&&hQ(e,g,h.value)&&r.remove(h.value)};return{updateDroppableIsEnabled:o,updateDroppableIsCombineEnabled:i,scrollDroppable:s,updateDroppableScroll:a,startPublishing:h=>{n&&Nt();const g=e.draggable.getById(h.draggableId),y=e.droppable.getById(g.descriptor.droppableId),x={draggable:g.descriptor,droppable:y.descriptor},S=e.subscribe(c);return n={critical:x,unsubscribe:S},Owt({critical:x,registry:e,scrollOptions:h.scrollOptions})},stopPublishing:l}},Ude=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",Awt=e=>{window.scrollBy(e.x,e.y)};const Dwt=fa(e=>A2(e).filter(t=>!(!t.isEnabled||!t.frame))),Rwt=(e,t)=>Dwt(t).find(r=>(r.frame||Nt(),Ide(r.frame.pageMarginBox)(e)))||null;var kwt=({center:e,destination:t,droppables:n})=>{if(t){const o=n[t];return o.frame?o:null}return Rwt(e,n)};const nT={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var Nwt=(e,t,n=()=>nT)=>{const r=n(),o=e[t.size]*r.startFromPercentage,i=e[t.size]*r.maxScrollAtPercentage;return{startScrollingFrom:o,maxScrollValueAt:i}},Gde=({startOfRange:e,endOfRange:t,current:n})=>{const r=t-e;return r===0?0:(n-e)/r},K5=1,_wt=(e,t,n=()=>nT)=>{const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return K5;const i=1-Gde({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),a=r.maxPixelScroll*r.ease(i);return Math.ceil(a)},Lwt=(e,t,n)=>{const r=n(),o=r.durationDampening.accelerateAt,i=r.durationDampening.stopDampeningAt,a=t,s=i,c=Date.now()-a;if(c>=i)return e;if(c<o)return K5;const u=Gde({startOfRange:o,endOfRange:s,current:c}),f=e*r.ease(u);return Math.ceil(f)},mQ=({distanceToEdge:e,thresholds:t,dragStartTime:n,shouldUseTimeDampening:r,getAutoScrollerOptions:o})=>{const i=_wt(e,t,o);return i===0?0:r?Math.max(Lwt(i,n,o),K5):i},gQ=({container:e,distanceToEdges:t,dragStartTime:n,axis:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=Nwt(e,r,i);return t[r.end]<t[r.start]?mQ({distanceToEdge:t[r.end],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i}):-1*mQ({distanceToEdge:t[r.start],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i})},$wt=({container:e,subject:t,proposedScroll:n})=>{const r=t.height>e.height,o=t.width>e.width;return!o&&!r?n:o&&r?null:{x:o?0:n.x,y:r?0:n.y}};const Fwt=mde(e=>e===0?0:e);var Wde=({dragStartTime:e,container:t,subject:n,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a={top:r.y-t.top,right:t.right-r.x,bottom:t.bottom-r.y,left:r.x-t.left},s=gQ({container:t,distanceToEdges:a,dragStartTime:e,axis:B5,shouldUseTimeDampening:o,getAutoScrollerOptions:i}),l=gQ({container:t,distanceToEdges:a,dragStartTime:e,axis:xde,shouldUseTimeDampening:o,getAutoScrollerOptions:i}),c=Fwt({x:l,y:s});if(bm(c,ha))return null;const u=$wt({container:t,subject:n,proposedScroll:c});return u?bm(u,ha)?null:u:null};const jwt=mde(e=>e===0?0:e>0?1:-1),Y5=(()=>{const e=(t,n)=>t<0?t:t>n?t-n:0;return({current:t,max:n,change:r})=>{const o=Na(t,r),i={x:e(o.x,n.x),y:e(o.y,n.y)};return bm(i,ha)?null:i}})(),qde=({max:e,current:t,change:n})=>{const r={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},o=jwt(n),i=Y5({max:r,current:t,change:o});return!i||o.x!==0&&i.x===0||o.y!==0&&i.y===0},Q5=(e,t)=>qde({current:e.scroll.current,max:e.scroll.max,change:t}),Bwt=(e,t)=>{if(!Q5(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return Y5({current:r,max:n,change:t})},X5=(e,t)=>{const n=e.frame;return n?qde({current:n.scroll.current,max:n.scroll.max,change:t}):!1},zwt=(e,t)=>{const n=e.frame;return!n||!X5(e,t)?null:Y5({current:n.scroll.current,max:n.scroll.max,change:t})};var Vwt=({viewport:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=Wde({dragStartTime:r,container:e.frame,subject:t,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i});return a&&Q5(e,a)?a:null},Hwt=({droppable:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=e.frame;if(!a)return null;const s=Wde({dragStartTime:r,container:a.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i});return s&&X5(e,s)?s:null},yQ=({state:e,dragStartTime:t,shouldUseTimeDampening:n,scrollWindow:r,scrollDroppable:o,getAutoScrollerOptions:i})=>{const a=e.current.page.borderBoxCenter,l=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const f=e.viewport,h=Vwt({dragStartTime:t,viewport:f,subject:l,center:a,shouldUseTimeDampening:n,getAutoScrollerOptions:i});if(h){r(h);return}}const c=kwt({center:a,destination:Gl(e.impact),droppables:e.dimensions.droppables});if(!c)return;const u=Hwt({dragStartTime:t,droppable:c,subject:l,center:a,shouldUseTimeDampening:n,getAutoScrollerOptions:i});u&&o(c.descriptor.id,u)},Uwt=({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:n=()=>nT})=>{const r=XE(e),o=XE(t);let i=null;const a=c=>{i||Nt();const{shouldUseTimeDampening:u,dragStartTime:f}=i;yQ({state:c,scrollWindow:r,scrollDroppable:o,dragStartTime:f,shouldUseTimeDampening:u,getAutoScrollerOptions:n})};return{start:c=>{i&&Nt();const u=Date.now();let f=!1;const h=()=>{f=!0};yQ({state:c,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:h,scrollDroppable:h,getAutoScrollerOptions:n}),i={dragStartTime:u,shouldUseTimeDampening:f},f&&a(c)},stop:()=>{i&&(r.cancel(),o.cancel(),i=null)},scroll:a}},Gwt=({move:e,scrollDroppable:t,scrollWindow:n})=>{const r=(s,l)=>{const c=Na(s.current.client.selection,l);e({client:c})},o=(s,l)=>{if(!X5(s,l))return l;const c=zwt(s,l);if(!c)return t(s.descriptor.id,l),null;const u=jl(l,c);return t(s.descriptor.id,u),jl(l,u)},i=(s,l,c)=>{if(!s||!Q5(l,c))return c;const u=Bwt(l,c);if(!u)return n(c),null;const f=jl(c,u);return n(f),jl(c,f)};return s=>{const l=s.scrollJumpRequest;if(!l)return;const c=Gl(s.impact);c||Nt();const u=o(s.dimensions.droppables[c],l);if(!u)return;const f=s.viewport,h=i(s.isWindowScrollAllowed,f,u);h&&r(s,h)}},Wwt=({scrollDroppable:e,scrollWindow:t,move:n,getAutoScrollerOptions:r})=>{const o=Uwt({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:r}),i=Gwt({move:n,scrollWindow:t,scrollDroppable:e});return{scroll:l=>{if(!(r().disabled||l.phase!=="DRAGGING")){if(l.movementMode==="FLUID"){o.scroll(l);return}l.scrollJumpRequest&&i(l)}},start:o.start,stop:o.stop}};const Jx="data-rfd",Zx=(()=>{const e=`${Jx}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),ez=(()=>{const e=`${Jx}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),qwt=(()=>{const e=`${Jx}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),vQ={contextId:`${Jx}-scroll-container-context-id`},Kwt=e=>t=>`[${t}="${e}"]`,y1=(e,t)=>e.map(n=>{const r=n.styles[t];return r?`${n.selector} { ${r} }`:""}).join(" "),Ywt="pointer-events: none;";var Qwt=e=>{const t=Kwt(e),n=(()=>{const s=`
- cursor: -webkit-grab;
- cursor: grab;
- `;return{selector:t(Zx.contextId),styles:{always:`
- -webkit-touch-callout: none;
- -webkit-tap-highlight-color: rgba(0,0,0,0);
- touch-action: manipulation;
- `,resting:s,dragging:Ywt,dropAnimating:s}}})(),r=(()=>{const s=`
- transition: ${rE.outOfTheWay};
- `;return{selector:t(ez.contextId),styles:{dragging:s,dropAnimating:s,userCancel:s}}})(),o={selector:t(qwt.contextId),styles:{always:"overflow-anchor: none;"}},a=[r,n,o,{selector:"body",styles:{dragging:`
- cursor: grabbing;
- cursor: -webkit-grabbing;
- user-select: none;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- overflow-anchor: none;
- `}}];return{always:y1(a,"always"),resting:y1(a,"resting"),dragging:y1(a,"dragging"),dropAnimating:y1(a,"dropAnimating"),userCancel:y1(a,"userCancel")}};const Wl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect,oF=()=>{const e=document.querySelector("head");return e||Nt(),e},bQ=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Xwt(e,t){const n=Sr(()=>Qwt(e),[e]),r=m.useRef(null),o=m.useRef(null),i=un(fa(f=>{const h=o.current;h||Nt(),h.textContent=f}),[]),a=un(f=>{const h=r.current;h||Nt(),h.textContent=f},[]);Wl(()=>{!r.current&&!o.current||Nt();const f=bQ(t),h=bQ(t);return r.current=f,o.current=h,f.setAttribute(`${Jx}-always`,e),h.setAttribute(`${Jx}-dynamic`,e),oF().appendChild(f),oF().appendChild(h),a(n.always),i(n.resting),()=>{const g=y=>{const x=y.current;x||Nt(),oF().removeChild(x),y.current=null};g(r),g(o)}},[t,a,i,n.always,n.resting,e]);const s=un(()=>i(n.dragging),[i,n.dragging]),l=un(f=>{if(f==="DROP"){i(n.dropAnimating);return}i(n.userCancel)},[i,n.dropAnimating,n.userCancel]),c=un(()=>{o.current&&i(n.resting)},[i,n.resting]);return Sr(()=>({dragging:s,dropping:l,resting:c}),[s,l,c])}function Kde(e,t){return Array.from(e.querySelectorAll(t))}var Yde=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function N2(e){return e instanceof Yde(e).HTMLElement}function Jwt(e,t){const n=`[${Zx.contextId}="${e}"]`,r=Kde(document,n);if(!r.length)return null;const o=r.find(i=>i.getAttribute(Zx.draggableId)===t);return!o||!N2(o)?null:o}function Zwt(e){const t=m.useRef({}),n=m.useRef(null),r=m.useRef(null),o=m.useRef(!1),i=un(function(h,g){const y={id:h,focus:g};return t.current[h]=y,function(){const S=t.current;S[h]!==y&&delete S[h]}},[]),a=un(function(h){const g=Jwt(e,h);g&&g!==document.activeElement&&g.focus()},[e]),s=un(function(h,g){n.current===h&&(n.current=g)},[]),l=un(function(){r.current||o.current&&(r.current=requestAnimationFrame(()=>{r.current=null;const h=n.current;h&&a(h)}))},[a]),c=un(function(h){n.current=null;const g=document.activeElement;g&&g.getAttribute(Zx.draggableId)===h&&(n.current=h)},[]);return Wl(()=>(o.current=!0,function(){o.current=!1;const h=r.current;h&&cancelAnimationFrame(h)}),[]),Sr(()=>({register:i,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:s}),[i,c,l,s])}function eSt(){const e={draggables:{},droppables:{}},t=[];function n(f){return t.push(f),function(){const g=t.indexOf(f);g!==-1&&t.splice(g,1)}}function r(f){t.length&&t.forEach(h=>h(f))}function o(f){return e.draggables[f]||null}function i(f){const h=o(f);return h||Nt(),h}const a={register:f=>{e.draggables[f.descriptor.id]=f,r({type:"ADDITION",value:f})},update:(f,h)=>{const g=e.draggables[h.descriptor.id];g&&g.uniqueId===f.uniqueId&&(delete e.draggables[h.descriptor.id],e.draggables[f.descriptor.id]=f)},unregister:f=>{const h=f.descriptor.id,g=o(h);g&&f.uniqueId===g.uniqueId&&(delete e.draggables[h],e.droppables[f.descriptor.droppableId]&&r({type:"REMOVAL",value:f}))},getById:i,findById:o,exists:f=>!!o(f),getAllByType:f=>Object.values(e.draggables).filter(h=>h.descriptor.type===f)};function s(f){return e.droppables[f]||null}function l(f){const h=s(f);return h||Nt(),h}const c={register:f=>{e.droppables[f.descriptor.id]=f},unregister:f=>{const h=s(f.descriptor.id);h&&f.uniqueId===h.uniqueId&&delete e.droppables[f.descriptor.id]},getById:l,findById:s,exists:f=>!!s(f),getAllByType:f=>Object.values(e.droppables).filter(h=>h.descriptor.type===f)};function u(){e.draggables={},e.droppables={},t.length=0}return{draggable:a,droppable:c,subscribe:n,clean:u}}function tSt(){const e=Sr(eSt,[]);return m.useEffect(()=>function(){e.clean()},[e]),e}var J5=qe.createContext(null),lR=()=>{const e=document.body;return e||Nt(),e};const nSt={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},rSt=e=>`rfd-announcement-${e}`;function oSt(e){const t=Sr(()=>rSt(e),[e]),n=m.useRef(null);return m.useEffect(function(){const i=document.createElement("div");return n.current=i,i.id=t,i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true"),B(i.style,nSt),lR().appendChild(i),function(){setTimeout(function(){const l=lR();l.contains(i)&&l.removeChild(i),i===n.current&&(n.current=null)})}},[t]),un(o=>{const i=n.current;if(i){i.textContent=o;return}},[])}const iSt={separator:"::"};function Z5(e,t=iSt){const n=qe.useId();return Sr(()=>`${e}${t.separator}${n}`,[t.separator,e,n])}function aSt({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}function sSt({contextId:e,text:t}){const n=Z5("hidden-text",{separator:"-"}),r=Sr(()=>aSt({contextId:e,uniqueId:n}),[n,e]);return m.useEffect(function(){const i=document.createElement("div");return i.id=r,i.textContent=t,i.style.display="none",lR().appendChild(i),function(){const s=lR();s.contains(i)&&s.removeChild(i)}},[r,t]),r}var _2=qe.createContext(null);function Qde(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),t}function lSt(){let e=null;function t(){return!!e}function n(a){return a===e}function r(a){e&&Nt();const s={abandon:a};return e=s,s}function o(){e||Nt(),e=null}function i(){e&&(e.abandon(),o())}return{isClaimed:t,isActive:n,claim:r,release:o,tryAbandon:i}}function rT(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const cSt=9,uSt=13,e4=27,Xde=32,dSt=33,fSt=34,pSt=35,hSt=36,mSt=37,gSt=38,ySt=39,vSt=40,bSt={[uSt]:!0,[cSt]:!0};var Jde=e=>{bSt[e.keyCode]&&e.preventDefault()};const L2=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(r=>`on${r}`in document)||e})(),Zde=0,xQ=5;function xSt(e,t){return Math.abs(t.x-e.x)>=xQ||Math.abs(t.y-e.y)>=xQ}const wQ={type:"IDLE"};function wSt({cancel:e,completed:t,getPhase:n,setPhase:r}){return[{eventName:"mousemove",fn:o=>{const{button:i,clientX:a,clientY:s}=o;if(i!==Zde)return;const l={x:a,y:s},c=n();if(c.type==="DRAGGING"){o.preventDefault(),c.actions.move(l);return}c.type!=="PENDING"&&Nt();const u=c.point;if(!xSt(u,l))return;o.preventDefault();const f=c.actions.fluidLift(l);r({type:"DRAGGING",actions:f})}},{eventName:"mouseup",fn:o=>{const i=n();if(i.type!=="DRAGGING"){e();return}o.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"mousedown",fn:o=>{n().type==="DRAGGING"&&o.preventDefault(),e()}},{eventName:"keydown",fn:o=>{if(n().type==="PENDING"){e();return}if(o.keyCode===e4){o.preventDefault(),e();return}Jde(o)}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{n().type==="PENDING"&&e()}},{eventName:"webkitmouseforcedown",fn:o=>{const i=n();if(i.type==="IDLE"&&Nt(),i.actions.shouldRespectForcePress()){e();return}o.preventDefault()}},{eventName:L2,fn:e}]}function SSt(e){const t=m.useRef(wQ),n=m.useRef(vm),r=Sr(()=>({eventName:"mousedown",fn:function(f){if(f.defaultPrevented||f.button!==Zde||f.ctrlKey||f.metaKey||f.shiftKey||f.altKey)return;const h=e.findClosestDraggableId(f);if(!h)return;const g=e.tryGetLock(h,a,{sourceEvent:f});if(!g)return;f.preventDefault();const y={x:f.clientX,y:f.clientY};n.current(),c(g,y)}}),[e]),o=Sr(()=>({eventName:"webkitmouseforcewillbegin",fn:u=>{if(u.defaultPrevented)return;const f=e.findClosestDraggableId(u);if(!f)return;const h=e.findOptionsForDraggable(f);h&&(h.shouldRespectForcePress||e.canGetLock(f)&&u.preventDefault())}}),[e]),i=un(function(){const f={passive:!1,capture:!0};n.current=Fc(window,[o,r],f)},[o,r]),a=un(()=>{t.current.type!=="IDLE"&&(t.current=wQ,n.current(),i())},[i]),s=un(()=>{const u=t.current;a(),u.type==="DRAGGING"&&u.actions.cancel({shouldBlockNextClick:!0}),u.type==="PENDING"&&u.actions.abort()},[a]),l=un(function(){const f={capture:!0,passive:!1},h=wSt({cancel:s,completed:a,getPhase:()=>t.current,setPhase:g=>{t.current=g}});n.current=Fc(window,h,f)},[s,a]),c=un(function(f,h){t.current.type!=="IDLE"&&Nt(),t.current={type:"PENDING",point:h,actions:f},l()},[l]);Wl(function(){return i(),function(){n.current()}},[i])}function CSt(){}const ESt={[fSt]:!0,[dSt]:!0,[hSt]:!0,[pSt]:!0};function TSt(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:o=>{if(o.keyCode===e4){o.preventDefault(),n();return}if(o.keyCode===Xde){o.preventDefault(),r();return}if(o.keyCode===vSt){o.preventDefault(),e.moveDown();return}if(o.keyCode===gSt){o.preventDefault(),e.moveUp();return}if(o.keyCode===ySt){o.preventDefault(),e.moveRight();return}if(o.keyCode===mSt){o.preventDefault(),e.moveLeft();return}if(ESt[o.keyCode]){o.preventDefault();return}Jde(o)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:L2,fn:n}]}function PSt(e){const t=m.useRef(CSt),n=Sr(()=>({eventName:"keydown",fn:function(i){if(i.defaultPrevented||i.keyCode!==Xde)return;const a=e.findClosestDraggableId(i);if(!a)return;const s=e.tryGetLock(a,u,{sourceEvent:i});if(!s)return;i.preventDefault();let l=!0;const c=s.snapLift();t.current();function u(){l||Nt(),l=!1,t.current(),r()}t.current=Fc(window,TSt(c,u),{capture:!0,passive:!1})}}),[e]),r=un(function(){const i={passive:!1,capture:!0};t.current=Fc(window,[n],i)},[n]);Wl(function(){return r(),function(){t.current()}},[r])}const iF={type:"IDLE"},ISt=120,OSt=.15;function MSt({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:n=>{n.preventDefault()}},{eventName:"keydown",fn:n=>{if(t().type!=="DRAGGING"){e();return}n.keyCode===e4&&n.preventDefault(),e()}},{eventName:L2,fn:e}]}function ASt({cancel:e,completed:t,getPhase:n}){return[{eventName:"touchmove",options:{capture:!1},fn:r=>{const o=n();if(o.type!=="DRAGGING"){e();return}o.hasMoved=!0;const{clientX:i,clientY:a}=r.touches[0],s={x:i,y:a};r.preventDefault(),o.actions.move(s)}},{eventName:"touchend",fn:r=>{const o=n();if(o.type!=="DRAGGING"){e();return}r.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"touchcancel",fn:r=>{if(n().type!=="DRAGGING"){e();return}r.preventDefault(),e()}},{eventName:"touchforcechange",fn:r=>{const o=n();o.type==="IDLE"&&Nt();const i=r.touches[0];if(!i||!(i.force>=OSt))return;const s=o.actions.shouldRespectForcePress();if(o.type==="PENDING"){s&&e();return}if(s){if(o.hasMoved){r.preventDefault();return}e();return}r.preventDefault()}},{eventName:L2,fn:e}]}function DSt(e){const t=m.useRef(iF),n=m.useRef(vm),r=un(function(){return t.current},[]),o=un(function(g){t.current=g},[]),i=Sr(()=>({eventName:"touchstart",fn:function(g){if(g.defaultPrevented)return;const y=e.findClosestDraggableId(g);if(!y)return;const x=e.tryGetLock(y,s,{sourceEvent:g});if(!x)return;const S=g.touches[0],{clientX:C,clientY:E}=S,I={x:C,y:E};n.current(),f(x,I)}}),[e]),a=un(function(){const g={capture:!0,passive:!1};n.current=Fc(window,[i],g)},[i]),s=un(()=>{const h=t.current;h.type!=="IDLE"&&(h.type==="PENDING"&&clearTimeout(h.longPressTimerId),o(iF),n.current(),a())},[a,o]),l=un(()=>{const h=t.current;s(),h.type==="DRAGGING"&&h.actions.cancel({shouldBlockNextClick:!0}),h.type==="PENDING"&&h.actions.abort()},[s]),c=un(function(){const g={capture:!0,passive:!1},y={cancel:l,completed:s,getPhase:r},x=Fc(window,ASt(y),g),S=Fc(window,MSt(y),g);n.current=function(){x(),S()}},[l,r,s]),u=un(function(){const g=r();g.type!=="PENDING"&&Nt();const y=g.actions.fluidLift(g.point);o({type:"DRAGGING",actions:y,hasMoved:!1})},[r,o]),f=un(function(g,y){r().type!=="IDLE"&&Nt();const x=setTimeout(u,ISt);o({type:"PENDING",point:y,actions:g,longPressTimerId:x}),c()},[c,r,o,u]);Wl(function(){return a(),function(){n.current();const y=r();y.type==="PENDING"&&(clearTimeout(y.longPressTimerId),o(iF))}},[r,a,o]),Wl(function(){return Fc(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const RSt=["input","button","textarea","select","option","optgroup","video","audio"];function efe(e,t){if(t==null)return!1;if(RSt.includes(t.tagName.toLowerCase()))return!0;const r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:efe(e,t.parentElement)}function kSt(e,t){const n=t.target;return N2(n)?efe(e,n):!1}var NSt=e=>Uu(e.getBoundingClientRect()).center;function _St(e){return e instanceof Yde(e).Element}const LSt=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(r=>r in Element.prototype)||e})();function tfe(e,t){return e==null?null:e[LSt](t)?e:tfe(e.parentElement,t)}function $St(e,t){return e.closest?e.closest(t):tfe(e,t)}function FSt(e){return`[${Zx.contextId}="${e}"]`}function jSt(e,t){const n=t.target;if(!_St(n))return null;const r=FSt(e),o=$St(n,r);return!o||!N2(o)?null:o}function BSt(e,t){const n=jSt(e,t);return n?n.getAttribute(Zx.draggableId):null}function zSt(e,t){const n=`[${ez.contextId}="${e}"]`,o=Kde(document,n).find(i=>i.getAttribute(ez.id)===t);return!o||!N2(o)?null:o}function VSt(e){e.preventDefault()}function KM({expected:e,phase:t,isLockActive:n,shouldWarn:r}){return!(!n()||e!==t)}function nfe({lockAPI:e,store:t,registry:n,draggableId:r}){if(e.isClaimed())return!1;const o=n.draggable.findById(r);return!(!o||!o.options.isEnabled||!Ude(t.getState(),r))}function HSt({lockAPI:e,contextId:t,store:n,registry:r,draggableId:o,forceSensorStop:i,sourceEvent:a}){if(!nfe({lockAPI:e,store:n,registry:r,draggableId:o}))return null;const l=r.draggable.getById(o),c=zSt(t,l.descriptor.id);if(!c||a&&!l.options.canDragInteractiveElements&&kSt(c,a))return null;const u=e.claim(i||vm);let f="PRE_DRAG";function h(){return l.options.shouldRespectForcePress}function g(){return e.isActive(u)}function y(O,D){KM({expected:O,phase:f,isLockActive:g,shouldWarn:!0})&&n.dispatch(D())}const x=y.bind(null,"DRAGGING");function S(O){function D(){e.release(),f="COMPLETED"}f!=="PRE_DRAG"&&(D(),Nt()),n.dispatch($xt(O.liftActionArgs)),f="DRAGGING";function N($,L={shouldBlockNextClick:!1}){if(O.cleanup(),L.shouldBlockNextClick){const A=Fc(window,[{eventName:"click",fn:VSt,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(A)}D(),n.dispatch(Lde({reason:$}))}return{isActive:()=>KM({expected:"DRAGGING",phase:f,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:h,drop:$=>N("DROP",$),cancel:$=>N("CANCEL",$),...O.actions}}function C(O){const D=XE($=>{x(()=>_de({client:$}))});return{...S({liftActionArgs:{id:o,clientSelection:O,movementMode:"FLUID"},cleanup:()=>D.cancel(),actions:{move:D}}),move:D}}function E(){const O={moveUp:()=>x(Wxt),moveRight:()=>x(Kxt),moveDown:()=>x(qxt),moveLeft:()=>x(Yxt)};return S({liftActionArgs:{id:o,clientSelection:NSt(c),movementMode:"SNAP"},cleanup:vm,actions:O})}function I(){KM({expected:"PRE_DRAG",phase:f,isLockActive:g,shouldWarn:!0})&&e.release()}return{isActive:()=>KM({expected:"PRE_DRAG",phase:f,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:h,fluidLift:C,snapLift:E,abort:I}}const USt=[SSt,PSt,DSt];function GSt({contextId:e,store:t,registry:n,customSensors:r,enableDefaultSensors:o}){const i=[...o?USt:[],...r||[]],a=m.useState(()=>lSt())[0],s=un(function(S,C){rT(S)&&!rT(C)&&a.tryAbandon()},[a]);Wl(function(){let S=t.getState();return t.subscribe(()=>{const E=t.getState();s(S,E),S=E})},[a,t,s]),Wl(()=>a.tryAbandon,[a.tryAbandon]);const l=un(x=>nfe({lockAPI:a,registry:n,store:t,draggableId:x}),[a,n,t]),c=un((x,S,C)=>HSt({lockAPI:a,registry:n,contextId:e,store:t,draggableId:x,forceSensorStop:S||null,sourceEvent:C&&C.sourceEvent?C.sourceEvent:null}),[e,a,n,t]),u=un(x=>BSt(e,x),[e]),f=un(x=>{const S=n.draggable.findById(x);return S?S.options:null},[n.draggable]),h=un(function(){a.isClaimed()&&(a.tryAbandon(),t.getState().phase!=="IDLE"&&t.dispatch(G5()))},[a,t]),g=un(()=>a.isClaimed(),[a]),y=Sr(()=>({canGetLock:l,tryGetLock:c,findClosestDraggableId:u,findOptionsForDraggable:f,tryReleaseLock:h,isLockClaimed:g}),[l,c,u,f,h,g]);for(let x=0;x<i.length;x++)i[x](y)}const WSt=e=>({onBeforeCapture:t=>{const n=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};Ev.flushSync(n)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),qSt=e=>({...nT,...e.autoScrollerOptions,durationDampening:{...nT.durationDampening,...e.autoScrollerOptions}});function v1(e){return e.current||Nt(),e.current}function KSt(e){const{contextId:t,setCallbacks:n,sensors:r,nonce:o,dragHandleUsageInstructions:i}=e,a=m.useRef(null),s=Qde(e),l=un(()=>WSt(s.current),[s]),c=un(()=>qSt(s.current),[s]),u=oSt(t),f=sSt({contextId:t,text:i}),h=Xwt(t,o),g=un(A=>{v1(a).dispatch(A)},[]),y=Sr(()=>a8({publishWhileDragging:jxt,updateDroppableScroll:zxt,updateDroppableIsEnabled:Vxt,updateDroppableIsCombineEnabled:Hxt,collectionStarting:Bxt},g),[g]),x=tSt(),S=Sr(()=>Mwt(x,y),[x,y]),C=Sr(()=>Wwt({scrollWindow:Awt,scrollDroppable:S.scrollDroppable,getAutoScrollerOptions:c,...a8({move:_de},g)}),[S.scrollDroppable,g,c]),E=Zwt(t),I=Sr(()=>Twt({announce:u,autoScroller:C,dimensionMarshal:S,focusMarshal:E,getResponders:l,styleMarshal:h}),[u,C,S,E,l,h]);a.current=I;const M=un(()=>{const A=v1(a);A.getState().phase!=="IDLE"&&A.dispatch(G5())},[]),O=un(()=>{const A=v1(a).getState();return A.phase==="DROP_ANIMATING"?!0:A.phase==="IDLE"?!1:A.isDragging},[]),D=Sr(()=>({isDragging:O,tryAbort:M}),[O,M]);n(D);const N=un(A=>Ude(v1(a).getState(),A),[]),$=un(()=>Ey(v1(a).getState()),[]),L=Sr(()=>({marshal:S,focus:E,contextId:t,canLift:N,isMovementAllowed:$,dragHandleUsageInstructionsId:f,registry:x}),[t,S,f,E,N,$,x]);return GSt({contextId:t,store:I,registry:x,customSensors:r||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),m.useEffect(()=>M,[M]),qe.createElement(_2.Provider,{value:L},qe.createElement(qie,{context:J5,store:I},e.children))}function YSt(){return qe.useId()}function rfe(e){const t=YSt(),n=e.dragHandleUsageInstructions||PA.dragHandleUsageInstructions;return qe.createElement(P0t,null,r=>qe.createElement(KSt,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const SQ={dragging:5e3,dropAnimating:4500},QSt=(e,t)=>t?rE.drop(t.duration):e?rE.snap:rE.fluid,XSt=(e,t)=>{if(e)return t?tT.opacity.drop:tT.opacity.combining},JSt=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function ZSt(e){const n=e.dimension.client,{offset:r,combineWith:o,dropping:i}=e,a=!!o,s=JSt(e),l=!!i,c=l?JB.drop(r,a):JB.moveTo(r);return{position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:QSt(s,i),transform:c,opacity:XSt(a,l),zIndex:l?SQ.dropAnimating:SQ.dragging,pointerEvents:"none"}}function eCt(e){return{transform:JB.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function tCt(e){return e.type==="DRAGGING"?ZSt(e):eCt(e)}function nCt(e,t,n=ha){const r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=cde(o,r),a=oR(i,n),s={client:i,tagName:t.tagName.toLowerCase(),display:r.display},l={x:i.marginBox.width,y:i.marginBox.height};return{descriptor:e,placeholder:s,displaceBy:l,client:i,page:a}}function rCt(e){const t=Z5("draggable"),{descriptor:n,registry:r,getDraggableRef:o,canDragInteractiveElements:i,shouldRespectForcePress:a,isEnabled:s}=e,l=Sr(()=>({canDragInteractiveElements:i,shouldRespectForcePress:a,isEnabled:s}),[i,s,a]),c=un(g=>{const y=o();return y||Nt(),nCt(n,y,g)},[n,o]),u=Sr(()=>({uniqueId:t,descriptor:n,options:l,getDimension:c}),[n,c,l,t]),f=m.useRef(u),h=m.useRef(!0);Wl(()=>(r.draggable.register(f.current),()=>r.draggable.unregister(f.current)),[r.draggable]),Wl(()=>{if(h.current){h.current=!1;return}const g=f.current;f.current=u,r.draggable.update(u,g)},[u,r.draggable])}var t4=qe.createContext(null);function cR(e){const t=m.useContext(e);return t||Nt(),t}function oCt(e){e.preventDefault()}const iCt=e=>{const t=m.useRef(null),n=un((D=null)=>{t.current=D},[]),r=un(()=>t.current,[]),{contextId:o,dragHandleUsageInstructionsId:i,registry:a}=cR(_2),{type:s,droppableId:l}=cR(t4),c=Sr(()=>({id:e.draggableId,index:e.index,type:s,droppableId:l}),[e.draggableId,e.index,s,l]),{children:u,draggableId:f,isEnabled:h,shouldRespectForcePress:g,canDragInteractiveElements:y,isClone:x,mapped:S,dropAnimationFinished:C}=e;if(!x){const D=Sr(()=>({descriptor:c,registry:a,getDraggableRef:r,canDragInteractiveElements:y,shouldRespectForcePress:g,isEnabled:h}),[c,a,r,y,g,h]);rCt(D)}const E=Sr(()=>h?{tabIndex:0,role:"button","aria-describedby":i,"data-rfd-drag-handle-draggable-id":f,"data-rfd-drag-handle-context-id":o,draggable:!1,onDragStart:oCt}:null,[o,i,f,h]),I=un(D=>{S.type==="DRAGGING"&&S.dropping&&D.propertyName==="transform"&&Ev.flushSync(C)},[C,S]),M=Sr(()=>{const D=tCt(S),N=S.type==="DRAGGING"&&S.dropping?I:void 0;return{innerRef:n,draggableProps:{"data-rfd-draggable-context-id":o,"data-rfd-draggable-id":f,style:D,onTransitionEnd:N},dragHandleProps:E}},[o,E,f,S,I,n]),O=Sr(()=>({draggableId:c.id,type:c.type,source:{index:c.index,droppableId:c.droppableId}}),[c.droppableId,c.id,c.index,c.type]);return qe.createElement(qe.Fragment,null,u(M,S.snapshot,O))};var ofe=(e,t)=>e===t,ife=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};const aCt=e=>e.combine?e.combine.draggableId:null,sCt=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function lCt(){const e=fa((o,i)=>({x:o,y:i})),t=fa((o,i,a=null,s=null,l=null)=>({isDragging:!0,isClone:i,isDropAnimating:!!l,dropAnimation:l,mode:o,draggingOver:a,combineWith:s,combineTargetFor:null})),n=fa((o,i,a,s,l=null,c=null,u=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:c,mode:i,offset:o,dimension:a,forceShouldAnimate:u,snapshot:t(i,s,l,c,null)}}));return(o,i)=>{if(rT(o)){if(o.critical.draggable.id!==i.draggableId)return null;const a=o.current.client.offset,s=o.dimensions.draggables[i.draggableId],l=Gl(o.impact),c=sCt(o.impact),u=o.forceShouldAnimate;return n(e(a.x,a.y),o.movementMode,s,i.isClone,l,c,u)}if(o.phase==="DROP_ANIMATING"){const a=o.completed;if(a.result.draggableId!==i.draggableId)return null;const s=i.isClone,l=o.dimensions.draggables[i.draggableId],c=a.result,u=c.mode,f=ife(c),h=aCt(c),y={duration:o.dropDuration,curve:q5.drop,moveTo:o.newHomeClientOffset,opacity:h?tT.opacity.drop:null,scale:h?tT.scale.drop:null};return{mapped:{type:"DRAGGING",offset:o.newHomeClientOffset,dimension:l,dropping:y,draggingOver:f,combineWith:h,mode:u,forceShouldAnimate:null,snapshot:t(u,s,f,h,y)}}}return null}}function afe(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const cCt={mapped:{type:"SECONDARY",offset:ha,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:afe(null)}};function uCt(){const e=fa((a,s)=>({x:a,y:s})),t=fa(afe),n=fa((a,s=null,l)=>({mapped:{type:"SECONDARY",offset:a,combineTargetFor:s,shouldAnimateDisplacement:l,snapshot:t(s)}})),r=a=>a?n(ha,a,!0):null,o=(a,s,l,c)=>{const u=l.displaced.visible[a],f=!!(c.inVirtualList&&c.effected[a]),h=D2(l),g=h&&h.draggableId===a?s:null;if(!u){if(!f)return r(g);if(l.displaced.invisible[a])return null;const S=qw(c.displacedBy.point),C=e(S.x,S.y);return n(C,g,!0)}if(f)return r(g);const y=l.displacedBy.point,x=e(y.x,y.y);return n(x,g,u.shouldAnimate)};return(a,s)=>{if(rT(a))return a.critical.draggable.id===s.draggableId?null:o(s.draggableId,a.critical.draggable.id,a.impact,a.afterCritical);if(a.phase==="DROP_ANIMATING"){const l=a.completed;return l.result.draggableId===s.draggableId?null:o(s.draggableId,l.result.draggableId,l.impact,l.afterCritical)}return null}}const dCt=()=>{const e=lCt(),t=uCt();return(r,o)=>e(r,o)||t(r,o)||cCt},fCt={dropAnimationFinished:$de},pCt=Wie(dCt,fCt,null,{context:J5,areStatePropsEqual:ofe})(iCt);function sfe(e){return cR(t4).isUsingCloneFor===e.draggableId&&!e.isClone?null:qe.createElement(pCt,e)}function lfe(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,r=!!e.shouldRespectForcePress;return qe.createElement(sfe,B({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}const cfe=e=>t=>e===t,hCt=cfe("scroll"),mCt=cfe("auto"),CQ=(e,t)=>t(e.overflowX)||t(e.overflowY),gCt=e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return CQ(n,hCt)||CQ(n,mCt)},yCt=()=>!1,ufe=e=>e==null?null:e===document.body?yCt()?e:null:e===document.documentElement?null:gCt(e)?e:ufe(e.parentElement);var tz=e=>({x:e.scrollLeft,y:e.scrollTop});const dfe=e=>e?window.getComputedStyle(e).position==="fixed"?!0:dfe(e.parentElement):!1;var vCt=e=>{const t=ufe(e),n=dfe(e);return{closestScrollable:t,isFixedOnPage:n}},bCt=({descriptor:e,isEnabled:t,isCombineEnabled:n,isFixedOnPage:r,direction:o,client:i,page:a,closest:s})=>{const l=(()=>{if(!s)return null;const{scrollSize:h,client:g}=s,y=zde({scrollHeight:h.scrollHeight,scrollWidth:h.scrollWidth,height:g.paddingBox.height,width:g.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:g,scrollSize:h,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:y,diff:{value:ha,displacement:ha}}}})(),c=o==="vertical"?B5:xde,u=Xx({page:a,withPlaceholder:null,axis:c,frame:l});return{descriptor:e,isCombineEnabled:n,isFixedOnPage:r,axis:c,isEnabled:t,client:i,page:a,frame:l,subject:u}};const xCt=(e,t)=>{const n=ude(e);if(!t||e!==t)return n;const r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,l=L5({top:r,right:a,bottom:i,left:o},n.border);return $5({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})};var wCt=({ref:e,descriptor:t,env:n,windowScroll:r,direction:o,isDropDisabled:i,isCombineEnabled:a,shouldClipSubject:s})=>{const l=n.closestScrollable,c=xCt(e,l),u=oR(c,r),f=(()=>{if(!l)return null;const g=ude(l),y={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth};return{client:g,page:oR(g,r),scroll:tz(l),scrollSize:y,shouldClipSubject:s}})();return bCt({descriptor:t,isEnabled:!i,isCombineEnabled:a,isFixedOnPage:n.isFixedOnPage,direction:o,client:c,page:u,closest:f})};const SCt={passive:!1},CCt={passive:!0};var EQ=e=>e.shouldPublishImmediately?SCt:CCt;const YM=e=>e&&e.env.closestScrollable||null;function ECt(e){const t=m.useRef(null),n=cR(_2),r=Z5("droppable"),{registry:o,marshal:i}=n,a=Qde(e),s=Sr(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),l=m.useRef(s),c=Sr(()=>fa((M,O)=>{t.current||Nt();const D={x:M,y:O};i.updateDroppableScroll(s.id,D)}),[s.id,i]),u=un(()=>{const M=t.current;return!M||!M.env.closestScrollable?ha:tz(M.env.closestScrollable)},[]),f=un(()=>{const M=u();c(M.x,M.y)},[u,c]),h=Sr(()=>XE(f),[f]),g=un(()=>{const M=t.current,O=YM(M);if(M&&O||Nt(),M.scrollOptions.shouldPublishImmediately){f();return}h()},[h,f]),y=un((M,O)=>{t.current&&Nt();const D=a.current,N=D.getDroppableRef();N||Nt();const $=vCt(N),L={ref:N,descriptor:s,env:$,scrollOptions:O};t.current=L;const A=wCt({ref:N,descriptor:s,env:$,windowScroll:M,direction:D.direction,isDropDisabled:D.isDropDisabled,isCombineEnabled:D.isCombineEnabled,shouldClipSubject:!D.ignoreContainerClipping}),F=$.closestScrollable;return F&&(F.setAttribute(vQ.contextId,n.contextId),F.addEventListener("scroll",g,EQ(L.scrollOptions))),A},[n.contextId,s,g,a]),x=un(()=>{const M=t.current,O=YM(M);return M&&O||Nt(),tz(O)},[]),S=un(()=>{const M=t.current;M||Nt();const O=YM(M);t.current=null,O&&(h.cancel(),O.removeAttribute(vQ.contextId),O.removeEventListener("scroll",g,EQ(M.scrollOptions)))},[g,h]),C=un(M=>{const O=t.current;O||Nt();const D=YM(O);D||Nt(),D.scrollTop+=M.y,D.scrollLeft+=M.x},[]),E=Sr(()=>({getDimensionAndWatchScroll:y,getScrollWhileDragging:x,dragStopped:S,scroll:C}),[S,y,x,C]),I=Sr(()=>({uniqueId:r,descriptor:s,callbacks:E}),[E,s,r]);Wl(()=>(l.current=I.descriptor,o.droppable.register(I),()=>{t.current&&S(),o.droppable.unregister(I)}),[E,s,S,I,i,o.droppable]),Wl(()=>{t.current&&i.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,i]),Wl(()=>{t.current&&i.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,i])}function aF(){}const TQ={width:0,height:0,margin:k0t},TCt=({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>e||n==="close"?TQ:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin},PCt=({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>{const r=TCt({isAnimatingOpenOnMount:e,placeholder:t,animate:n});return{display:t.display,boxSizing:"border-box",width:r.width,height:r.height,marginTop:r.margin.top,marginRight:r.margin.right,marginBottom:r.margin.bottom,marginLeft:r.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:n!=="none"?rE.placeholder:null}},ICt=e=>{const t=m.useRef(null),n=un(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:r,onTransitionEnd:o,onClose:i,contextId:a}=e,[s,l]=m.useState(e.animate==="open");m.useEffect(()=>s?r!=="open"?(n(),l(!1),aF):t.current?aF:(t.current=setTimeout(()=>{t.current=null,l(!1)}),n):aF,[r,s,n]);const c=un(f=>{f.propertyName==="height"&&(o(),r==="close"&&i())},[r,i,o]),u=PCt({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return qe.createElement(e.placeholder.tagName,{style:u,"data-rfd-placeholder-context-id":a,onTransitionEnd:c,ref:e.innerRef})};var OCt=qe.memo(ICt);class MCt extends qe.PureComponent{constructor(...t){super(...t),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,n){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:n.isVisible?{isVisible:!0,data:n.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const ACt=e=>{const t=m.useContext(_2);t||Nt();const{contextId:n,isMovementAllowed:r}=t,o=m.useRef(null),i=m.useRef(null),{children:a,droppableId:s,type:l,mode:c,direction:u,ignoreContainerClipping:f,isDropDisabled:h,isCombineEnabled:g,snapshot:y,useClone:x,updateViewportMaxScroll:S,getContainerForClone:C}=e,E=un(()=>o.current,[]),I=un((F=null)=>{o.current=F},[]);un(()=>i.current,[]);const M=un((F=null)=>{i.current=F},[]),O=un(()=>{r()&&S({maxScroll:Hde()})},[r,S]);ECt({droppableId:s,type:l,mode:c,direction:u,isDropDisabled:h,isCombineEnabled:g,ignoreContainerClipping:f,getDroppableRef:E});const D=Sr(()=>qe.createElement(MCt,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:F,data:z,animate:H})=>qe.createElement(OCt,{placeholder:z,onClose:F,innerRef:M,animate:H,contextId:n,onTransitionEnd:O})),[n,O,e.placeholder,e.shouldAnimatePlaceholder,M]),N=Sr(()=>({innerRef:I,placeholder:D,droppableProps:{"data-rfd-droppable-id":s,"data-rfd-droppable-context-id":n}}),[n,s,D,I]),$=x?x.dragging.draggableId:null,L=Sr(()=>({droppableId:s,type:l,isUsingCloneFor:$}),[s,$,l]);function A(){if(!x)return null;const{dragging:F,render:z}=x,H=qe.createElement(sfe,{draggableId:F.draggableId,index:F.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(Q,G)=>z(Q,G,F));return C1.createPortal(H,C())}return qe.createElement(t4.Provider,{value:L},a(N,y),A())};function DCt(){return document.body||Nt(),document.body}const PQ={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:DCt},ffe=e=>{let t={...e},n;for(n in PQ)e[n]===void 0&&(t={...t,[n]:PQ[n]});return t},sF=(e,t)=>e===t.droppable.type,IQ=(e,t)=>t.draggables[e.draggable.id],RCt=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=fa(i=>({draggableId:i.id,type:i.type,source:{index:i.index,droppableId:i.droppableId}})),r=fa((i,a,s,l,c,u)=>{const f=c.descriptor.id;if(c.descriptor.droppableId===i){const y=u?{render:u,dragging:n(c.descriptor)}:null,x={isDraggingOver:s,draggingOverWith:s?f:null,draggingFromThisWith:f,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!1,snapshot:x,useClone:y}}if(!a)return t;if(!l)return e;const g={isDraggingOver:s,draggingOverWith:f,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!0,snapshot:g,useClone:null}});return(i,a)=>{const s=ffe(a),l=s.droppableId,c=s.type,u=!s.isDropDisabled,f=s.renderClone;if(rT(i)){const h=i.critical;if(!sF(c,h))return t;const g=IQ(h,i.dimensions),y=Gl(i.impact)===l;return r(l,u,y,y,g,f)}if(i.phase==="DROP_ANIMATING"){const h=i.completed;if(!sF(c,h.critical))return t;const g=IQ(h.critical,i.dimensions);return r(l,u,ife(h.result)===l,Gl(h.impact)===l,g,f)}if(i.phase==="IDLE"&&i.completed&&!i.shouldFlush){const h=i.completed;if(!sF(c,h.critical))return t;const g=Gl(h.impact)===l,y=!!(h.impact.at&&h.impact.at.type==="COMBINE"),x=h.critical.droppable.id===l;return g?y?e:t:x?e:t}return t}},kCt={updateViewportMaxScroll:Gxt},pfe=Wie(RCt,kCt,(e,t,n)=>({...ffe(n),...e,...t}),{context:J5,areStatePropsEqual:ofe})(ACt);let OQ=!1;const NCt=()=>{OQ||(console.warn(["MUI: The LoadingButton component functionality is now part of the Button component from Material UI.","","You should use `import Button from '@mui/material/Button'`","or `import { Button } from '@mui/material'`"].join(`
-`)),OQ=!0)},_Ct=m.forwardRef(function(t,n){return NCt(),R.jsx(St,{ref:n,...t})}),LCt=e=>{const{t}=We(),n=Rot(e.routineId),r=_ot(e.routineId),[o,i]=m.useState(!1),[a,s]=m.useState(!1),[l,c]=m.useState(e.day.isRest),u=()=>{l?(c(!1),M({isRest:!1})):s(!0)},f=()=>s(!1),h=()=>{M({isRest:!l}),c(!l),s(!1)},g=()=>i(!0),y=()=>{e.setSelectedDayIndex(null),r.mutate(e.day.id),i(!1)},x=()=>i(!1),S=3,C=20,E=1e3,I=qi().shape({name:Hi().max(C,t("forms.maxLength",{chars:C})).min(S,t("forms.minLength",{chars:S})).required("Name is required"),description:Hi().max(E,t("forms.maxLength",{chars:E})),isRest:xp(),needsLogsToAdvance:xp()}),M=O=>n.mutate(Zu.clone(e.day,{...O.name!==void 0&&{name:O.name},...O.description!==void 0&&{description:O.description},...O.isRest!==void 0&&{isRest:l},...O.needsLogsToAdvance!==void 0&&{needLogsToAdvance:O.needsLogsToAdvance}}));return w(_t,{children:w($a,{initialValues:{name:e.day.name,description:e.day.description,isRest:e.day.isRest,needsLogsToAdvance:e.day.needLogsToAdvance},validationSchema:I,onSubmit:(O,{setSubmitting:D})=>{M(O),D(!1)},initialTouched:{name:!0,description:!0,isRest:!0,needsLogsToAdvance:!0},children:O=>J(ba,{children:[J(xe,{container:!0,spacing:2,children:[w(xe,{size:{xs:12,sm:6},children:w(Fp,{fieldName:"name",title:"Name",fieldProps:{disabled:l}})}),w(xe,{size:{xs:6,sm:2},children:w(Yl,{control:w(Wi,{checked:l,onChange:u}),label:t("routines.restDay")})}),J(xe,{size:{xs:6,sm:4},children:[w(Yl,{disabled:l,control:w(Wi,{checked:O.values.needsLogsToAdvance,...O.getFieldProps("needsLogsToAdvance")}),label:t("routines.needsLogsToAdvance")}),w(Gi,{title:t("routines.needsLogsToAdvanceHelpText"),children:w(An,{onClick:()=>{},children:w(UE,{fontSize:"small"})})})]}),w(xe,{size:12,children:w(Fp,{fieldName:"description",title:"Description",fieldProps:{multiline:!0,rows:4,disabled:l}})}),J(xe,{size:8,children:[n.isPending?w(_Ct,{loading:!0,variant:"contained",color:"primary",children:t("save")}):w(St,{variant:"contained",color:"primary",type:"submit",disabled:l,children:t("save")})," ",w(St,{variant:"outlined",startIcon:w(l2,{}),onClick:g,disabled:n.isPending,children:t("delete")})]}),w(xe,{size:4,sx:{display:"flex",justifyContent:"flex-end"},children:w(m0t,{routineId:e.routineId})})]}),J(hE,{open:a,onClose:f,children:[w(zA,{children:t("routines.confirmRestDay")}),w(gE,{children:t("routines.confirmRestDayHelpText")}),J(mE,{children:[w(St,{onClick:f,children:t("cancel")}),w(St,{onClick:h,children:t("continue")})]})]}),w(M2,{title:t("deleteConfirmation",{name:e.day.getDisplayName()}),message:t("routines.deleteDayConfirmation"),isOpen:o,closeFn:x,deleteFn:y})]})})})},$Ct=e=>{const{t}=We(),n=Uot(e.routineId),[r,o]=m.useState(e.slot.comment),[i,a]=m.useState(!1),s=c=>{a(!0),o(c)},l=()=>{i&&(n.mutate(Mp.clone(e.slot,{comment:r})),a(!1))};return w(_t,{children:w(On,{label:t("comment"),variant:"standard",fullWidth:!0,size:"small",value:r,disabled:n.isPending,onChange:c=>s(c.target.value),onBlur:l,InputProps:{endAdornment:n.isPending&&w(tv,{})}})})};function $2(e,t){const n=[];if(!e)return n;for(const r in e)if(Object.hasOwn(e,r)){const o=e[r],i=t?`${t}.${r}`:r;if(Array.isArray(o))if(o.length>0&&typeof o[0]=="object"&&o[0]!==null)for(const a of o)typeof a=="object"&&a!==null?n.push(...$2(a,i)):n.push(`${i}: ${a}`);else n.push(...o.map(a=>`${i}: ${a}`));else typeof o=="string"&&n.push(`${i}: ${o}`)}return n}function lF(e){const t=$2(e);return t.length>0?t.join(" | "):""}const FCt={weight:{edit:sot,add:lot,delete:cot},"max-weight":{edit:uot,add:dot,delete:fot},reps:{edit:pot,add:hot,delete:mot},"max-reps":{edit:got,add:PK,delete:yot},sets:{edit:vot,add:bot,delete:xot},"max-sets":{edit:wot,add:Sot,delete:PK},rest:{edit:Pot,add:Iot,delete:Oot},"max-rest":{edit:Mot,add:Aot,delete:Dot},rir:{edit:Mle,add:Ale,delete:Dle},"max-rir":{edit:Cot,add:Eot,delete:Tot}},MQ=e=>{const{t}=We(),{edit:n,add:r,delete:o}=FCt[e.type],i=n(e.routineId),a=r(e.routineId),s=o(e.routineId),[l,c]=m.useState(e.config?.value||""),[u,f]=m.useState(null),[h,g]=m.useState(null),y=["sets","max-sets","rest","max-rest"].includes(e.type),x=y?parseInt:parseFloat;let S="";switch(e.type){case"weight":S=t("weight");break;case"max-weight":S="max "+t("weight");break;case"reps":S=t("server.repetitions");break;case"max-reps":S=t("server.max_reps");break;case"sets":S=t("routines.sets");break;case"max-sets":S="max "+t("routines.sets");break;case"rest":S=t("routines.restTime");break;case"max-rest":S="max "+t("routines.restTime");break;case"rir":S=t("routines.rir");break;case"max-rir":S="max "+t("routines.rir");break}const C=D=>{const N={slot_entry:e.slotEntryId,value:x(D)};D===""&&e.config?s.mutate(e.config.id):e.config?i.mutate({id:e.config.id,...N}):a.mutate({iteration:1,operation:Os,step:"abs",requirements:null,...N})},E=D=>{if(c(D),D!==""&&Number.isNaN(x(D))){f(t(y?"forms.enterInteger":"forms.enterNumber"));return}else f(null);h&&clearTimeout(h),g(setTimeout(()=>C(D),FZ))},I=i.isPending||a.isPending||s.isPending,M=i.isError||a.isError||s.isError,O=lF(i.error?.response?.data)||lF(a.error?.response?.data)||lF(s.error?.response?.data);return w(On,{slotProps:{input:{endAdornment:I&&w(tv,{})}},inputProps:{"data-testid":`${e.type}-field`},label:S,value:l,fullWidth:!0,variant:"standard",disabled:I,onChange:D=>E(D.target.value),error:!!u||M,helperText:u||O})},jCt=e=>{const{setFieldValue:t}=QU(),{t:n}=We(),r=e.disabled??!1,[o,i]=m.useState(e.values),[a,s]=qe.useState(null),l=u=>{o.includes(u)?i(o.filter(f=>f!==u)):i([...o,u])},c=async()=>{await t(e.fieldName,o),s(null)};return J(_t,{children:[w(An,{disabled:r,onClick:u=>s(u.currentTarget),children:a?w(Zot,{fontSize:"small"}):w(Pit,{fontSize:"small"})}),J(ec,{anchorEl:a,open:!!a,onClose:()=>s(null),children:[...sj.map((u,f)=>J(bn,{onClick:()=>l(u),children:[w(Ql,{children:o.includes(u)?w(iit,{fontSize:"small"}):w(ait,{fontSize:"small"})}),w(ko,{children:u})]},f)),w($s,{}),w(bn,{children:w(St,{color:"primary",variant:"contained",type:"submit",size:"small",onClick:c,children:n("save")})})]})]})},BCt=e=>{const t=Mle(e.routineId),n=Dle(e.routineId),r=Ale(e.routineId),o=i=>{const a={value:parseFloat(i)};i===""&&e.config?n.mutate(e.config.id):e.config!==void 0?t.mutate({id:e.config.id,...a}):r.mutate({slot_entry:e.slotEntryId,iteration:1,operation:Os,...a})};return w(On,{fullWidth:!0,select:!0,label:"RiR",variant:"standard",defaultValue:"",value:e.config?.value,disabled:t.isPending,onChange:i=>o(i.target.value),children:qZ.map(i=>w(bn,{value:i.value,children:i.label},i.value))})};function zCt(e){let t="";for(;e>0;)e--,t=String.fromCharCode(97+e%26)+t,e=Math.floor(e/26);return t}const Ru=(e,t,n,r)=>t.length>0?w(MQ,{config:t[0],type:e,routineId:n}):w(MQ,{type:e,routineId:n,slotEntryId:r}),VCt=e=>{const{t}=We();return J(_t,{children:[e.slot.entries.length===0&&J(pa,{severity:"warning",children:[w(Cm,{children:t("routines.setHasNoExercises")}),t("nothingHereYetAction")]}),e.slot.entries.map((n,r)=>w(HCt,{slotEntry:n,routineId:e.routineId,simpleMode:e.simpleMode,index:r,total:e.slot.entries.length},n.id))]})},HCt=e=>{const{t,i18n:n}=We(),[r,o]=m.useState(!1),i=()=>o(!r),a=xf(),s=dP(e.routineId),l=Bot(e.routineId),c=s.isPending||l.isPending,u=y=>{y!==null&&(s.mutate({id:e.slotEntry.id,exercise:y.data.base_id}),o(!1))};let f;a.isSuccess&&(f=Op(n.language,a.data));const h=()=>e.simpleMode?J(qe.Fragment,{children:[w(xe,{size:{xs:12,sm:2},children:Ru("sets",e.slotEntry.nrOfSetsConfigs,e.routineId,e.slotEntry.id)},`sets-config-${e.slotEntry.id}`),w(xe,{size:{xs:12,sm:3},children:Ru("weight",e.slotEntry.weightConfigs,e.routineId,e.slotEntry.id)},`weight-config-${e.slotEntry.id}`),w(xe,{size:{xs:12,sm:3},children:Ru("reps",e.slotEntry.repetitionsConfigs,e.routineId,e.slotEntry.id)},`reps-config-${e.slotEntry.id}`)]}):J(qe.Fragment,{children:[w(xe,{size:{xs:6,sm:1},children:Ru("sets",e.slotEntry.nrOfSetsConfigs,e.routineId,e.slotEntry.id)}),w(xe,{size:{xs:6,sm:1},children:Ru("max-sets",e.slotEntry.maxNrOfSetsConfigs,e.routineId,e.slotEntry.id)}),w(xe,{size:{xs:6,sm:2},children:w(d0t,{routineId:e.routineId,slotEntry:e.slotEntry})}),w(xe,{size:{xs:12,sm:2},children:w(BCt,{routineId:e.routineId,config:e.slotEntry.rirConfigs.length>0?e.slotEntry.rirConfigs[0]:void 0,slotEntryId:e.slotEntry.id})}),w(xe,{size:{xs:6,sm:1},children:Ru("rest",e.slotEntry.restTimeConfigs,e.routineId,e.slotEntry.id)}),w(xe,{size:{xs:6,sm:1},children:Ru("max-rest",e.slotEntry.maxRestTimeConfigs,e.routineId,e.slotEntry.id)}),w(xe,{size:{xs:6,sm:2},offset:{sm:4},children:Ru("weight",e.slotEntry.weightConfigs,e.routineId,e.slotEntry.id)}),w(xe,{size:{xs:6,sm:2},children:Ru("max-weight",e.slotEntry.maxWeightConfigs,e.routineId,e.slotEntry.id)}),w(xe,{size:{xs:12,sm:4},children:w(p0t,{slotEntry:e.slotEntry,routineId:e.routineId})}),w(xe,{size:{xs:6,sm:2},offset:{sm:4},children:Ru("reps",e.slotEntry.repetitionsConfigs,e.routineId,e.slotEntry.id)}),w(xe,{size:{xs:6,sm:2},children:Ru("max-reps",e.slotEntry.maxRepetitionsConfigs,e.routineId,e.slotEntry.id)}),w(xe,{size:{xs:12,sm:4},children:w(f0t,{slotEntry:e.slotEntry,routineId:e.routineId})})]}),g=e.total>1?zCt(e.index+1)+") ":"";return w(qe.Fragment,{children:J(xe,{container:!0,paddingTop:1,spacing:1,children:[J(xe,{size:{xs:3,sm:1},alignContent:"center",children:[w(An,{size:"small",onClick:i,disabled:c,children:r?w(fit,{}):w(ZU,{})}),w(An,{size:"small",onClick:()=>l.mutate(e.slotEntry.id),disabled:c,children:w(HE,{})})]}),w(xe,{size:{xs:9,sm:3},alignContent:"center",children:J(wt,{variant:"body1",children:[g," ",e.slotEntry.exercise?.getTranslation(f).name]})}),r&&J(qe.Fragment,{children:[w(xe,{size:{xs:12,sm:8},children:w(Wx,{callback:u})}),w(xe,{size:{xs:12,sm:4}})]}),e.slotEntry.hasProgressionRules?w(xe,{size:8,children:w(pa,{severity:"info",variant:"standard",sx:{mt:2},children:t("routines.exerciseHasProgression")})}):h()]})})},UCt=e=>{const{t}=We(),n=bf(e.routineId),r=kot(e.routineId),o=Not(e.routineId),i=u=>({background:u?"lightblue":void 0}),a=(u,f)=>({backgroundColor:"white",margin:4,...f,opacity:1}),s=()=>{e.setSelectedDayIndex(null)},l=u=>{if(!u.destination)return;const f=Array.from(n.data.days),[h]=f.splice(u.source.index,1);f.splice(u.destination.index,0,h),e.setSelectedDayIndex(u.destination.index),n.data.days=f,r.mutate(f.map((g,y)=>Zu.clone(g,{order:y+1})))},c=async()=>{const u=new Zu({routineId:e.routineId,name:`${t("routines.newDay")} ${n.data.days.length+1}`,order:n.data.days.length+1});await o.mutateAsync(u),e.setSelectedDayIndex(n.data.days.length)};return n.isLoading?w(lo,{}):J(xe,{container:!0,direction:"row",spacing:1,children:[w(xe,{size:12,children:w(Jt,{direction:"row",children:J(rfe,{onDragEnd:l,onDragStart:s,children:[w(pfe,{droppableId:"dayDroppable",direction:"horizontal",children:(u,f)=>J(zJ,{ref:u.innerRef,...u.droppableProps,value:e.selectedDayIndex,variant:"scrollable",scrollButtons:"auto",style:i(f.isDraggingOver),children:[n.data.days.map((h,g)=>w(lfe,{draggableId:h.id.toString(),index:g,children:(y,x)=>w(HF,{ref:y.innerRef,...y.draggableProps,...y.dragHandleProps,style:a(x.isDragging,y.draggableProps.style??{}),label:h.getDisplayName(),value:h.id,icon:w(_le,{}),iconPosition:"start",onClick:()=>e.setSelectedDayIndex(g)})},h.id)),u.placeholder]})}),w(St,{startIcon:o.isPending?w(tv,{}):w(bi,{}),onClick:c,disabled:o.isPending,children:t("routines.addDay")})]})})}),n.data.days.length===0&&w(xe,{size:12,children:J(pa,{severity:"info",children:[w(Cm,{children:t("routines.routineHasNoDays")}),t("nothingHereYetAction")]})})]})},GCt=e=>{const[t,n]=We(),r=Wot(e.routineId),o=jot(e.routineId),i=Hot(e.routineId),a=Got(e.routineId),s=yl(),l=Po(),[c,u]=m.useState(!1),[f,h]=m.useState(null),[g,y]=m.useState(null),[x,S]=m.useState(!0),C=(L,A)=>{g!==null&&(A==="timeout"?(r.mutate(g.id),y(null)):A!=="clickaway"&&(e.day.slots=[...e.day.slots,g].sort((F,z)=>F.order-z.order),y(null))),u(!1)},E=L=>{const A=e.day.slots.findIndex(F=>F.id===L);if(A!==-1){const F=[...e.day.slots],[z]=F.splice(A,1);e.day.slots=F,y(z),u(!0)}},I=L=>{if(e.day.slots.find(F=>F.id===L)===void 0){console.info(`Could not find slot with id ${L} to add config`);return}h(f===L?null:L)},M=()=>i.mutate(new Mp({dayId:e.day.id,order:e.day.slots.length+1})),O=8,D=L=>{if(!L.destination)return;const A=Array.from(e.day.slots),[F]=A.splice(L.source.index,1);A.splice(L.destination.index,0,F),a.mutate(A.map((z,H)=>Mp.clone(z,{order:H+1}))),e.day.slots=A},N=L=>({background:L?"lightblue":void 0}),$=(L,A)=>({border:L?`1px solid ${l.palette.grey[900]}`:`1px solid ${l.palette.grey[300]}`,backgroundColor:"white",marginBottom:O,...A});return J(_t,{children:[w(LCt,{routineId:e.routineId,day:e.day,setSelectedDayIndex:e.setSelectedDayIndex},`day-form-${e.day.id}`),!e.day.isRest&&e.day.slots.length>0&&J(_t,{children:[w(mn,{height:40}),w(Yl,{control:w(Wi,{checked:x,onChange:()=>S(!x)}),label:t("routines.simpleMode")})]}),w(mn,{height:20}),w(rfe,{onDragEnd:D,children:w(pfe,{droppableId:"setDroppable",direction:"vertical",children:(L,A)=>J("div",{...L.droppableProps,ref:L.innerRef,style:N(A.isDraggingOver),children:[e.day.slots.map((F,z)=>w(qe.Fragment,{children:w(lfe,{draggableId:F.id.toString(),index:z,children:(H,Q)=>J(xe,{container:!0,padding:1,ref:H.innerRef,...H.draggableProps,style:$(Q.isDragging,H.draggableProps.style??{}),children:[w(xe,{sx:{backgroundColor:l.palette.common.white},size:12,children:J(xe,{container:!0,justifyContent:"space-between",alignItems:"center",children:[w(xe,{children:J(wt,{variant:"h6",children:[w(An,{...H.dragHandleProps,children:w(_le,{})}),w(An,{onClick:()=>E(F.id),children:w(l2,{})}),F.entries.length>1?t("routines.supersetNr",{number:z+1}):t("routines.exerciseNr",{number:z+1})]})}),w(xe,{children:F.entries.length>0&&J(zz,{variant:"outlined",children:[w(St,{onClick:()=>I(F.id),size:"small",disabled:o.isPending,startIcon:o.isPending?w(tv,{}):w(bi,{}),children:t("routines.addSuperset")}),F.entries.length>0&&w(St,{startIcon:w(Oit,{}),component:Ri,size:"small",to:Cn(hn.ROUTINE_EDIT_PROGRESSION,n.language,{id:e.routineId,id2:F.id}),children:t("routines.editProgression")})]})})]})}),!x&&J(xe,{size:12,children:[w($Ct,{routineId:e.routineId,slot:F},`slot-form-${F.id}`),w(mn,{height:10})]}),w(xe,{size:12,children:w(VCt,{slot:F,routineId:e.routineId,simpleMode:x})}),(f===F.id||F.entries.length===0)&&J(xe,{size:12,children:[w(mn,{height:20}),w(Wx,{callback:G=>{G!==null&&(o.mutate({slot:F.id,exercise:G.data.base_id,type:"normal",order:F.entries.length+1,weight_unit:s.data.useMetric?HMe:UMe}),h(null))}})]})]})},F.id)},`slot-${F.id}-${z}`)),L.placeholder]})})}),w(vT,{open:c,autoHideDuration:IT,onClose:C,children:w(pa,{severity:"success",variant:"filled",sx:{width:"100%"},action:w(St,{color:"warning",variant:"contained",size:"small",onClick:C,children:t("undo")}),children:"Set successfully deleted"})}),!e.day.isRest&&w(St,{variant:"contained",color:"primary",startIcon:i.isPending?w(tv,{}):w(bi,{}),onClick:M,children:t("routines.addExercise")})]})},WCt=()=>{const{t:e,i18n:t}=We(),n=Po(),r=yl(),o=gl(),i=o.routineId?parseInt(o.routineId):0,a=bf(i),[s,l]=m.useState(null);if(a.isLoading||r.isLoading)return w(lo,{});if(a.isError)return J("p",{children:["Error: ",a.error.message]});const c=a.data;return s===null&&c.days.length>0&&l(0),J(yP,{title:e("editName",{name:c.name}),backToUrl:Cn(hn.ROUTINE_DETAIL,t.language,{id:i}),children:[J(xe,{container:!0,spacing:2,children:[w(xe,{size:c.isTemplate?8:12,children:w(MP,{routine:c})}),c.isTemplate&&J(xe,{size:4,children:[w(mn,{height:20}),w(sde,{routine:c})]}),J(xe,{size:12,children:[w(mn,{height:20}),w(UCt,{routineId:i,selectedDayIndex:s,setSelectedDayIndex:l})]}),s!==null&&w(_t,{children:w(xe,{size:12,sx:{backgroundColor:n.palette.grey[100],padding:1},children:w(mn,{children:w(GCt,{day:c.days[s],routineId:i,setSelectedDayIndex:l})})})})]}),a.data.days.length>0&&J(Jt,{spacing:2,sx:{mt:2},children:[w(mn,{height:40}),w(wt,{variant:"h4",children:e("routines.resultingRoutine")}),w($s,{}),J(mn,{children:[w(ost,{}),w(mn,{height:20}),w(lde,{routine:a.data})]})]})]})},qCt=({initialSession:e,dayId:t,routineId:n,selectedDate:r,setSelectedDate:o})=>{let i;const[a,s]=We(),[l,c]=qe.useState(e),u=Kot(),f=Qot(l?.id),h=qot(n,{routine:n,date:Jr(r.toJSDate()),day:t}),g=u.isPending||f.isPending||h.isLoading,y=qi({notes:Hi().max(WG,a("forms.maxLength",{chars:WG})),date:Uc().required(),start:Uc().nullable(),end:Uc().nullable().min(s2("start"),a("forms.endBeforeStart")),fitInWeek:xp()});return m.useEffect(()=>{h.data?(i.setValues({notes:h.data.notes||"",impression:h.data.impression||H0,date:h.data.date,start:h.data.timeStart?At.fromJSDate(h.data.timeStart):null,end:h.data.timeEnd?At.fromJSDate(h.data.timeEnd):null}),c(h.data)):h.isSuccess&&!h.data&&(i.setValues({notes:"",impression:H0,date:e?.date||At.now().toJSDate(),start:e?.timeStart?At.fromJSDate(e.timeStart):null,end:e?.timeEnd?At.fromJSDate(e.timeEnd):null}),c(void 0))},[h.data,h.isSuccess,e,r]),w($a,{enableReinitialize:!0,initialValues:{notes:l!==void 0?l.notes:"",date:l!==void 0?l.date:new Date,start:l!==void 0&&l.timeStart!==null?At.fromJSDate(l.timeStart):null,end:l!==void 0&&l.timeEnd!==null?At.fromJSDate(l.timeEnd):null,impression:l!==void 0?l.impression:H0},innerRef:x=>i=x,validationSchema:y,onSubmit:async x=>{const S={day:t,routine:n,date:Jr(r.toJSDate()),notes:x.notes,impression:x.impression,time_start:x.start?xE(x.start.toJSDate()):null,time_end:x.end?xE(x.end.toJSDate()):null};l!==void 0?await f.mutateAsync({...S,id:l.id}):await u.mutateAsync(S)},children:x=>w(ba,{children:J(xe,{container:!0,spacing:2,children:[w(xe,{size:{xs:12,sm:6},children:w(Vc,{dateAdapter:Wu,adapterLocale:s.language,children:w(Hx,{value:r,defaultValue:At.now(),label:a("date"),onChange:S=>{S&&(x.setFieldValue("date",S),o(S))},disableFuture:!0,slotProps:{textField:{variant:"standard",fullWidth:!0,error:x.touched.date&&!!x.errors.date}}})})}),w(xe,{size:{xs:6,sm:3},children:w(Vc,{dateAdapter:Wu,adapterLocale:s.language,children:w(TB,{label:a("start"),...x.getFieldProps("start"),onChange:S=>{S&&x.setFieldValue("start",S)},slotProps:{textField:{variant:"standard",fullWidth:!0,error:x.touched.start&&!!x.errors.start,helperText:x.touched.start&&x.errors.start}}})})}),w(xe,{size:{xs:6,sm:3},children:w(Vc,{dateAdapter:Wu,adapterLocale:s.language,children:w(TB,{label:a("end"),...x.getFieldProps("end"),onChange:S=>{S&&x.setFieldValue("end",S)},slotProps:{textField:{variant:"standard",fullWidth:!0,error:x.touched.end&&!!x.errors.end,helperText:x.touched.end&&x.errors.end}}})})}),w(xe,{size:12,children:w(Fp,{fieldName:"notes",title:a("notes"),fieldProps:{multiline:!0,rows:4}})}),J(xe,{size:12,children:[w(wt,{variant:"caption",children:a("routines.impression")}),J(zz,{fullWidth:!0,color:"primary",children:[J(St,{size:"small",color:"info",variant:x.values.impression===bj?"contained":"outlined",onClick:()=>x.setFieldValue("impression",bj),children:[w(Tit,{}),a("routines.impressionBad")]}),J(St,{size:"small",color:"info",variant:x.values.impression===H0?"contained":"outlined",onClick:()=>x.setFieldValue("impression",H0),children:[w(Cit,{}),a("routines.impressionNeutral")]}),J(St,{size:"small",color:"info",variant:x.values.impression===xj?"contained":"outlined",onClick:()=>x.setFieldValue("impression",xj),children:[w(Eit,{}),a("routines.impressionGood")]})]})]}),w(xe,{size:12,display:"flex",justifyContent:"end",children:w(St,{disabled:g,color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:a("submit")})})]})})})},KCt=({dayId:e,routineId:t,selectedDate:n})=>{const{t:r,i18n:o}=We(),[i,a]=m.useState(!1),s=bf(t),l=Fot(t),c=xf(),u=()=>a(!1),[f,h]=m.useState(null);let g;if(c.isSuccess&&(g=Op(o.language,c.data)),s.isLoading)return w(lo,{});const y=s.data,x=y?.getDayData(e,n.toJSDate())??[],S=x.length===0,C=qi({logs:qy().of(qi().shape({rir:ki().nullable(),repetitions:ki().typeError(r("forms.enterNumber")).nullable(),weight:ki().typeError(r("forms.enterNumber")).nullable()}))}),E=async D=>{const N=S?null:x[0].iteration,$=D.logs.filter(L=>L.rir!==""||L.repetitions!==""||L.weight!=="").map(L=>({date:n.toISO(),iteration:N,exercise:L.exercise?.id,day:e,routine:t,slot_entry:L.slotEntry,rir:L.rir!==""?L.rir:null,rir_target:L.rirTarget!==""?L.rirTarget:null,repetitions_unit:L.repetitionsUnit?.id,repetitions:L.repetitions!==""?L.repetitions:null,repetitions_target:L.repetitionsTarget!==""?L.repetitionsTarget:null,weight_unit:L.weightUnit?.id,weight:L.weight!==""?L.weight:null,weight_target:L.weightTarget!==""?L.weightTarget:null}));await l.mutateAsync($),a(!0)},I=async(D,N)=>{if(D===null)return;const $=N.values.logs.map(L=>f===L.exercise.id?{...L,weight:"",weightTarget:"",repetitions:"",repetitionsTarget:"",rir:"",rirTarget:"",exercise:D.exercise}:L);await N.setValues({...N.values,logs:$}),h(null)},M={logs:[]},O=S?y.dayDataCurrentIteration.filter(D=>D.day?.id===e):x;for(const D of O)for(const N of D.slots)for(const $ of N.setConfigs)for(let L=0;L<$.nrOfSets;L++)M.logs.push({exercise:$.exercise,repetitionsUnit:$.repetitionsUnit,weightUnit:$.weightUnit,slotEntry:$.slotEntryId,rir:!S&&$.rir!==null?$.rir:"",rirTarget:!S&&$.rir!==null?$.rir:"",repetitions:!S&&$.repetitions!==null?$.repetitions:"",repetitionsTarget:!S&&$.repetitions!==null?$.repetitions:"",weight:!S&&$.weight!==null?$.weight:"",weightTarget:!S&&$.weight!==null?$.weight:""});return J(_t,{children:[S&&w(pa,{severity:"info",sx:{marginTop:2},children:r("routines.weightLogNotPlanned")}),w($a,{enableReinitialize:!0,initialValues:M,validationSchema:C,onSubmit:E,children:D=>J(ba,{children:[w(cle,{name:"logs",children:({insert:N,remove:$})=>w(_t,{children:D.values.logs.map((L,A)=>J(xe,{container:!0,spacing:1,sx:{mt:2},children:[(A===0||A>0&&D.values.logs[A-1].exercise.id!=D.values.logs[A].exercise.id)&&J(_t,{children:[J(xe,{size:12,children:[f!==D.values.logs[A].exercise.id&&w(wt,{variant:"h6",children:D.values.logs[A].exercise?.getTranslation(g).name}),f===D.values.logs[A].exercise.id&&w(Wx,{loadExercise:!0,callback:F=>I(F,D)})]}),J(xe,{size:12,children:[J(St,{type:"button",size:"small",onClick:()=>N(A,{exercise:D.values.logs[A].exercise,repetitions:D.values.logs[A].repetitions,weight:D.values.logs[A].weight}),children:[w(bi,{}),r("routines.addAdditionalLog")]}),J(St,{type:"button",size:"small",onClick:()=>{f===D.values.logs[A].exercise.id?h(null):h(D.values.logs[A].exercise.id)},children:[w(Mit,{}),r("exercises.swapExercise")]}),J(St,{type:"button",size:"small",onClick:async()=>await D.setValues({...D.values,logs:D.values.logs.filter(F=>F.exercise.id!==D.values.logs[A].exercise.id)}),children:[w(HE,{}),r("delete")]})]})]}),w(xe,{size:4,children:w(Fp,{fieldName:`logs.${A}.repetitions`,title:r("server.repetitions"),fieldProps:{slotProps:{input:{endAdornment:w(gi,{position:"end",children:D.values.logs[A].repetitionsUnit?.id!==VMe?w(wt,{variant:"caption",children:D.values.logs[A].repetitionsUnit?.name}):null})}}}})}),w(xe,{size:4,children:w(Fp,{fieldName:`logs.${A}.weight`,title:r("weight"),fieldProps:{slotProps:{input:{endAdornment:w(gi,{position:"end",children:w(wt,{variant:"caption",children:D.values.logs[A].weightUnit?.name})})}}}})}),w(xe,{size:3,children:w(On,{fullWidth:!0,select:!0,label:r("routines.rir"),variant:"standard",...D.getFieldProps(`logs.${A}.rir`),children:qZ.map(F=>w(bn,{value:F.value,children:F.label},F.value))})}),w(xe,{size:1,children:w(An,{size:"small",onClick:()=>$(A),children:w(HE,{})})})]},A))})}),w(xe,{container:!0,spacing:2,children:w(xe,{size:12,display:"flex",justifyContent:"end",children:w(St,{color:"primary",disabled:!D.isValid||D.isSubmitting||l.isPending,variant:"contained",type:"submit",sx:{mt:2},children:r("submit")})})})]})}),w(vT,{open:i,autoHideDuration:IT,onClose:u,children:w(pa,{onClose:u,severity:"success",sx:{width:"100%"},children:r("success")})})]})},YCt=()=>{const e=gl(),{t,i18n:n}=We(),[r,o]=m.useState(At.now()),i=parseInt(e.routineId??"");if(Number.isNaN(i))return w("p",{children:"Please pass an integer as the routine id."});const a=parseInt(e.dayId??"");return Number.isNaN(a)?w("p",{children:"Please pass an integer as the day id."}):w(rc,{title:t("routines.addWeightLog"),backToUrl:Cn(hn.ROUTINE_DETAIL,n.language,{id:i}),mainContent:J(Jt,{children:[w(qCt,{routineId:i,dayId:a,selectedDate:r,setSelectedDate:o}),w(wt,{variant:"h5",children:t("exercises.exercises")}),w(wt,{variant:"body2",children:t("routines.impressionHelpText")}),w(KCt,{routineId:i,dayId:a,selectedDate:r})]})})},n4=e=>{const[t,n]=m.useState(!0);return e.mutationQuery?.isError?w(_t,{children:w(mn,{sx:{width:"100%"},children:w(as,{in:t,children:J(pa,{severity:"error",sx:{mb:1},children:[w(Cm,{children:e.mutationQuery.error?.message}),w("ul",{children:$2(e.mutationQuery.error.response?.data).map((r,o)=>w("li",{children:r},o))})]})})})}):null},QCt=e=>{const[t,n]=m.useState(!0);return e.mutationQuery?.isError?w(_t,{children:w(vT,{open:t,autoHideDuration:IT,children:J(pa,{severity:"error",sx:{width:"100%"},children:[w(Cm,{children:e.mutationQuery.error?.message}),w("ul",{children:$2(e.mutationQuery.error.response?.data).map((r,o)=>w("li",{children:r},o))})]})})}):null},b1=e=>{const{t}=We(),[n,r]=m.useState(!0),[o,i]=m.useState([]),a=aot(e.routineId),s=e.forceInteger??!1;let l,c,u="";switch(e.type){case"weight":l=kt.WEIGHT_CONFIG,c=kt.MAX_WEIGHT_CONFIG,u=t("weight");break;case"reps":l=kt.REPETITIONS_CONFIG,c=kt.MAX_REPS_CONFIG,u=t("server.repetitions");break;case"sets":l=kt.NR_OF_SETS_CONFIG,c=kt.MAX_NR_OF_SETS_CONFIG,u=t("routines.sets");break;case"rest":l=kt.REST_CONFIG,c=kt.MAX_REST_CONFIG,u=t("routines.restTime");break;case"rir":l=kt.RIR_CONFIG,c=kt.MAX_RIR_CONFIG,u=t("routines.rir");break}const f=qi({entries:qy().of(qi().shape({edited:xp(),iteration:ki().required(),value:ki().when("forceInteger",{is:!0,then:x=>x.integer(t("forms.enterInteger")).typeError(t("forms.enterNumber")),otherwise:x=>x.typeError(t("forms.enterNumber")).nullable().notRequired()}),valueMax:ki().typeError(t("forms.enterNumber")).nullable().when("forceInteger",{is:!0,then:x=>x.integer(t("forms.enterInteger")).typeError(t("forms.enterNumber")),otherwise:x=>x.typeError(t("forms.enterNumber")).nullable().notRequired()}).when("operation",{is:Os,then:x=>x.min(s2("value"),t("forms.maxLessThanMin")),otherwise:x=>x}),operation:Hi().required(),operationMax:Hi().required(),requirements:qy().of(Hi().oneOf(sj)),requirementsMax:qy().of(Hi().oneOf(sj)),repeat:xp(),repeatMax:xp()})).test("inter-entry-validation","Your error message here",function(x){const{createError:S}=this,C=x;for(let E=0;E<C.length;E++){const I=C[E];if(I.iteration>1&&I.operation!==Os){let M=!1,O=!1;for(let D=0;D<E;D++)C[D].operation===Os&&C[D].value!==""&&C[D].edited&&(M=!0),C[D].operation===Os&&C[D].valueMax!==""&&C[D].edited&&(O=!0);if(!M)return S({path:`entries[${E}].value`,message:t("routines.progressionNeedsReplace")});if(!O)return S({path:`entries[${E}].valueMax`,message:t("routines.progressionNeedsReplace")})}}return!0})}),h=(x,S)=>({forceInteger:s,edited:S,iteration:x,id:null,idMax:null,value:"",valueMax:"",operation:Os,operationMax:Os,step:"abs",stepMax:"abs",requirements:[],requirementsMax:[],repeat:!1,repeatMax:!1}),g={entries:[]};for(const x of e.iterations){const S=e.configs.find(E=>E.iteration===x),C=e.configsMax.find(E=>E.iteration===x);S===void 0?g.entries.push(h(x,!1)):g.entries.push({forceInteger:s,edited:!0,id:S.id,idMax:C===void 0?null:C.id,iteration:x,value:String(S.value),valueMax:C===void 0?"":String(C.value),operation:S.operation,operationMax:C===void 0?Os:S.operation,step:S.step,stepMax:C===void 0?"abs":C.step,requirements:S.requirements?.rules??[],requirementsMax:C===void 0?[]:C.requirements?.rules??[],repeat:S.repeat,repeatMax:C===void 0?!1:S.repeat})}const y=x=>{const S=x.entries.filter(N=>N.edited),C=S.filter(N=>N.id!==null).map(N=>({id:N.id,slot_entry:e.slotEntryId,value:N.value,iteration:N.iteration,operation:N.operation,step:N.step,repeat:N.repeat,requirements:{rules:N.requirements??[]}})),E=S.filter(N=>N.id===null&&N.value!=="").map(N=>({slot_entry:e.slotEntryId,value:N.value,iteration:N.iteration,operation:N.operation,step:N.step,repeat:N.repeat,requirements:{rules:N.requirements??[]}})),I=e.configs.filter(N=>o.includes(N.iteration)).map(N=>N.id);S.forEach(N=>{N.value===""&&N.id!==null&&!I.includes(N.id)&&I.push(N.id)});const M=S.filter(N=>N.idMax!==null&&N.valueMax!=="").map(N=>({id:N.idMax,slot_entry:e.slotEntryId,value:N.valueMax,iteration:N.iteration,operation:N.operation,step:N.step,repeat:N.repeat,requirements:{rules:N.requirements??[]}})),O=S.filter(N=>N.idMax===null&&N.valueMax!=="").map(N=>({iteration:N.iteration,slot_entry:e.slotEntryId,value:N.valueMax,operation:N.operation,step:N.stepMax,repeat:N.repeat,requirements:{rules:N.requirements??[]}})),D=e.configsMax.filter(N=>o.includes(N.iteration)).map(N=>N.id);S.forEach(N=>{N.valueMax===""&&N.idMax!==null&&!I.includes(N.idMax)&&D.push(N.idMax)}),a.mutate({values:{toAdd:E,toDelete:I,toEdit:C,apiPath:l},maxValues:{toAdd:O,toDelete:D,toEdit:M,apiPath:c}})};return w(_t,{children:J(Jt,{sx:{width:"100%"},children:[w(wt,{variant:"h6",children:u}),w($a,{enableReinitialize:!0,initialValues:g,validationSchema:f,onSubmit:(x,{setSubmitting:S})=>{y(x),S(!1)},children:x=>w(ba,{children:J(xe,{container:!0,spacing:1,children:[w(xe,{size:4,offset:2,textAlign:"center",children:t("value")}),w(xe,{size:6,children:J(xe,{container:!0,spacing:1,children:[w(xe,{size:3,children:t("routines.operation")}),w(xe,{size:3,children:t("routines.step")}),J(xe,{size:3,textAlign:"center",children:[t("routines.requirements"),w("br",{}),w(Gi,{title:t("routines.requirementsHelpText"),children:w(An,{onClick:()=>{},children:w(UE,{fontSize:"small"})})})]}),J(xe,{size:3,textAlign:"center",children:[t("routines.repeat"),w("br",{}),w(Gi,{title:t("routines.repeatHelpText"),children:w(An,{onClick:()=>{},children:w(UE,{fontSize:"small"})})})]})]})}),w(xe,{size:12,children:w($s,{})}),w(cle,{name:"entries",validateOnChange:!0,children:({insert:S,remove:C})=>w(_t,{children:x.values.entries.map((E,I)=>J(qe.Fragment,{children:[J(xe,{size:2,display:"flex",justifyContent:"space-around",alignItems:"center",children:[e.cycleLength===7?t("routines.weekNr",{number:E.iteration}):t("routines.workoutNr",{number:E.iteration}),E.edited?w(An,{disabled:E.iteration===1&&x.values.entries.filter(M=>M.edited&&M.iteration!==1).length>0,size:"small",onClick:()=>{E.id!==null&&i([...o,E.iteration]),C(I),S(I,h(E.iteration,!1))},children:w(l2,{})}):w(An,{size:"small",onClick:()=>{C(I),S(I,h(E.iteration,!0))},children:w(bi,{})})]}),w(xe,{size:2,children:E.edited&&w(Fp,{fieldName:`entries.${I}.value`,title:t("min"),fullwidth:!0})}),w(xe,{size:2,children:E.edited&&w(Fp,{fieldName:`entries.${I}.valueMax`,title:t("max"),fullwidth:!0})}),w(xe,{size:6,children:J(xe,{container:!0,spacing:1,children:[w(xe,{size:3,children:E.edited&&w(On,{disabled:E.iteration===1,fullWidth:!0,select:!0,label:t("routines.operation"),variant:"standard",...x.getFieldProps(`entries.${I}.operation`),onChange:async M=>{x.handleChange(M),M.target.value===Os&&(await x.setFieldValue(`entries.${I}.requirements`,[]),await x.setFieldValue(`entries.${I}.repeat`,!1))},children:bAe.map(M=>w(bn,{value:M.value,children:M.label},M.value))})}),w(xe,{size:3,children:E.edited&&J(On,{disabled:E.iteration===1||E.operation===Os,fullWidth:!0,select:!0,label:t("routines.step"),variant:"standard",...x.getFieldProps(`entries.${I}.step`),children:[vAe.map(M=>w(bn,{value:M.value,children:M.label},M.value)),(E.iteration===1||E.operation===Os)&&w(bn,{value:"na",children:"n/a"},"na")]})}),J(xe,{size:3,textAlign:"center",children:[E.edited&&w(jCt,{disabled:E.iteration===1||E.operation===Os,values:E.requirements,fieldName:`entries.${I}.requirements`}),E.requirements.length>=0&&w("br",{}),E.requirements.length>=0&&E.requirements.map((M,O)=>J(wt,{variant:"caption",children:[M,"  "]},O))]}),w(xe,{size:3,textAlign:"center",children:E.edited&&w(Wi,{checked:x.values.entries[I].repeat,...x.getFieldProps(`entries.${I}.repeat`),disabled:E.iteration===1||E.operation===Os})})]})})]},I))})}),a.isError&&w(xe,{size:12,children:w(n4,{mutationQuery:a})}),w(xe,{size:12,display:"flex",justifyContent:"end",children:w(St,{color:"primary",disabled:!x.isValid||x.isSubmitting||!x.dirty,variant:"contained",type:"submit",sx:{mt:2},children:t("save")})}),w(xe,{size:12,children:w(mn,{height:20})})]})})})]})})},XCt=()=>{const{t:e,i18n:t}=We(),n=gl(),r=n.routineId?parseInt(n.routineId):-1,o=n.slotId?parseInt(n.slotId):-1,i=bf(r),a=xf();if(i.isLoading)return w(lo,{});const s=i.data;let l;a.isSuccess&&(l=Op(t.language,a.data));let c=null;for(const f of s.days){const h=f.slots.find(g=>g.id===o);if(h){c=h;break}}if(c===null)return w("p",{children:"Slot not found!"});const u=Object.keys(s.groupedDayDataByIteration).map(Number);return w(_t,{children:w(yP,{title:e("routines.editProgression"),backToUrl:Cn(hn.ROUTINE_EDIT,t.language,{id:r}),children:c.entries.map(f=>J(qe.Fragment,{children:[w(wt,{variant:"h5",gutterBottom:!0,children:f.exercise?.getTranslation(l).name}),J(xe,{container:!0,spacing:1,children:[w(xe,{size:2,display:"flex",alignItems:"end",children:w(wt,{variant:"body2",children:e("routines.rounding")})}),w(xe,{size:5,children:w(nR,{routineId:r,slotEntry:f,initialValue:f.weightRounding,rounding:"weight",editProfile:!1})}),w(xe,{size:5,children:w(nR,{routineId:r,slotEntry:f,initialValue:f.repetitionRounding,rounding:"reps",editProfile:!1})}),w(b1,{type:"sets",configs:f.nrOfSetsConfigs,configsMax:f.maxNrOfSetsConfigs,slotEntryId:f.id,routineId:r,iterations:u,forceInteger:!0,cycleLength:s.cycleLength}),w(b1,{type:"weight",configs:f.weightConfigs,configsMax:f.maxWeightConfigs,slotEntryId:f.id,routineId:r,iterations:u,cycleLength:s.cycleLength}),w(b1,{type:"reps",configs:f.repetitionsConfigs,configsMax:f.maxRepetitionsConfigs,slotEntryId:f.id,routineId:r,iterations:u,cycleLength:s.cycleLength}),w(b1,{type:"rir",configs:f.rirConfigs,configsMax:f.maxRirConfigs,slotEntryId:f.id,routineId:r,iterations:u,cycleLength:s.cycleLength}),w(b1,{type:"rest",configs:f.restTimeConfigs,configsMax:f.maxRestTimeConfigs,slotEntryId:f.id,routineId:r,iterations:u,cycleLength:s.cycleLength})]})]},f.id))})})},JCt=()=>{const{t:e,i18n:t}=We(),n=gl(),r=parseInt(n.routineId??"");if(Number.isNaN(r))return w("p",{children:"Please pass an integer as the routine id."});const o=bf(r),i=o.data;return w(c2,{query:o,child:o.isSuccess&&w(rc,{title:i?.isPublic?e("routines.publicTemplate"):e("routines.template"),subTitle:i.name,mainContent:J(Jt,{spacing:2,children:[J(wt,{variant:"subtitle1",children:[i.start.toLocaleDateString()," - ",i.end.toLocaleDateString()," (",i.durationText,")"]}),i.description!==""&&w(wt,{variant:"body2",sx:{whiteSpace:"pre-line"},children:i?.description}),w(St,{component:"a",href:Cn(hn.ROUTINE_COPY,t.language,{id:r}),variant:"contained",children:e("routines.copyAndUseTemplate")}),i.dayDataCurrentIteration.filter(a=>a.day!==null).map((a,s)=>w(s5,{dayData:a,routineId:r,readOnly:!0},`dayDetails-${s}`))]}),sideBar:J(Jt,{children:[w(mn,{height:40}),J(xe,{container:!0,children:[w(xe,{size:6,children:w(td,{primaryMuscles:i.mainMuscles.filter(a=>a.isFront),secondaryMuscles:i.secondaryMuscles.filter(a=>a.isFront),isFront:!0})}),w(xe,{size:6,children:w(td,{primaryMuscles:i.mainMuscles.filter(a=>!a.isFront),secondaryMuscles:i.secondaryMuscles.filter(a=>!a.isFront),isFront:!1})})]})]})})})},ZCt=e=>{const{t}=We(),n=e.logEntries??[],r=Lot(e.routineId),o=$ot(e.routineId),i=n.map(I=>({id:I.id,date:I.date,repetitions:I.repetitions,weight:I.weight,rir:I.rir,entry:I})),[a,s]=qe.useState(i),[l,c]=qe.useState({}),u=(I,M)=>{I.reason===Ic.rowFocusOut&&(M.defaultMuiPrevented=!0)},f=I=>()=>{c({...l,[I]:{mode:mr.Edit}})},h=I=>()=>{c({...l,[I]:{mode:mr.View}})},g=I=>()=>{r.mutate(I),s(a.filter(M=>M.id!==I))},y=I=>()=>{c({...l,[I]:{mode:mr.View,ignoreModifications:!0}}),a.find(O=>O.id===I).isNew&&s(a.filter(O=>O.id!==I))},x=I=>{const M=I.entry;M!==void 0&&(M.date=I.date,M.repetitions=I.repetitions,M.weight=I.weight,M.rir=I.rir,o.mutate(M));const O={...I,isNew:!1};return s(a.map(D=>D.id===I.id?O:D)),O},S=I=>{c(I)},C=[{field:"date",type:"dateTime",flex:1,editable:!0,disableColumnMenu:!0,headerName:t("date"),valueFormatter:I=>I==null?"":`${I.toLocaleDateString()}`},{field:"repetitions",type:"number",disableColumnMenu:!0,editable:!0,headerName:t("routines.reps")},{field:"weight",type:"number",disableColumnMenu:!0,editable:!0,headerName:t("weight")},{field:"rir",type:"singleSelect",disableColumnMenu:!0,editable:!0,headerName:t("routines.rir"),getOptionValue:I=>I.value,getOptionLabel:I=>I.label,valueOptions:WZ},{field:"actions",type:"actions",headerName:"Actions",width:100,cellClassName:"actions",getActions:({id:I})=>l[I]?.mode===mr.Edit?[w(hm,{icon:w(jle,{}),sx:{color:"primary.main"},label:t("save"),onClick:h(I)}),w(hm,{icon:w(oit,{}),label:t("cancel"),className:"textPrimary",onClick:y(I),color:"inherit"})]:[w(hm,{icon:w(ZU,{}),label:t("edit"),className:"textPrimary",onClick:f(I),color:"inherit"}),w(hm,{icon:w(HE,{}),label:t("delete"),onClick:g(I),color:"inherit"})]}],E={pagination:{paginationModel:{pageSize:5}}};return J(_t,{children:[w(wt,{variant:"h6",sx:{mt:4},children:e.exercise.getTranslation().name}),J(xe,{container:!0,spacing:2,children:[J(xe,{size:{xs:12,md:6},children:[w(n4,{mutationQuery:o}),w(ede,{initialState:E,pageSizeOptions:aj.pageSizeOptions,disableRowSelectionOnClick:!0,rows:a,columns:C,editMode:"row",rowModesModel:l,onRowModesModelChange:S,onRowEditStop:u,processRowUpdate:x})]}),w(xe,{size:{xs:12,md:6},children:w(n1t,{data:n},e.exercise.id)})]})]})},e1t=e=>e.map(t=>({id:t.id,value:t.weight,time:t.date.getTime(),entry:t})),t1t=({active:e,payload:t,label:n})=>{if(e){let r="";return t?.[1].payload?.entry.rir&&(r=`, ${t?.[1].payload?.entry.rir} RiR`),w(oi,{children:J(ss,{children:[w(wt,{variant:"body1",children:At.fromMillis(t?.[0].value).toLocaleString(At.DATE_MED)}),J(wt,{variant:"body2",children:[t?.[1].payload?.entry.repetitions," × ",t?.[1].value,t?.[1].unit,r]})]})})}return null},n1t=e=>{const t=e.data.reduce(function(r,o){return r.set(o.repetitions,r.get(o.repetitions)||[]),r.get(o.repetitions).push(o),r},new Map),n=OP(t.size);return w(mn,{children:w(qp,{width:"100%",height:250,children:J(I9e,{children:[w(Um,{dataKey:"time",domain:["auto","auto"],name:"Time",tickFormatter:r=>At.fromMillis(r).toLocaleString(At.DATE_MED),type:"number"}),w(Gm,{domain:["auto","auto"],dataKey:"value",name:"Value",unit:"kg"}),Array.from(t).map(([r,o])=>{const i=n.next().value,a=e1t(o);return w(Bie,{data:a,fill:i,line:{stroke:i},lineType:"joint",lineJointType:"monotoneX",name:r?.toString()},r)}),w(JT,{content:w(t1t,{})}),w(Hm,{strokeDasharray:"3 3"}),w(Mv,{})]})})})},r1t=()=>{const e=gl(),t=e.routineId?parseInt(e.routineId):0,[n,r]=We(),o=Ile(t),i=bf(t);if(o.isLoading||i.isLoading)return w(lo,{});let a=new Map;return a=o.data.reduce((s,l)=>(l.logs.forEach(c=>{const u=c.exerciseId;s.set(u,s.get(u)||[]),s.get(u).push(c)}),s),a),J(yP,{title:n("routines.logsHeader"),backToUrl:Cn(hn.ROUTINE_DETAIL,r.language,{id:t}),optionsMenu:w(Gi,{title:n("routines.statsOverview"),children:w(An,{component:"a",href:Cn(hn.ROUTINE_STATS_OVERVIEW,r.language,{id:t}),children:w(kle,{})})}),children:[w(wt,{variant:"body1",children:n("routines.logsFilterNote")}),i.data.dayDataCurrentIteration.filter(s=>s.day!==null&&!s.day.isRest).map((s,l)=>J(qe.Fragment,{children:[J(Jt,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:"center",sx:{mt:4},children:[w(wt,{variant:"h4",children:s.day.name}),w(St,{component:Ri,to:Cn(hn.ROUTINE_ADD_LOG,r.language,{id:t,id2:s.day.id}),variant:"contained",children:n("routines.addLogToDay")})]}),s.slots.map(c=>c.exercises.map(u=>w(ZCt,{routineId:t,exercise:u,logEntries:a.get(u.id)},u.id)))]},l))]})};var Ty=(e=>(e.Volume="volume",e.Sets="sets",e.Intensity="intensity",e))(Ty||{}),Py=(e=>(e.Mesocycle="mesocycle",e.Weekly="weekly",e.Iteration="iteration",e.Daily="daily",e))(Py||{}),L1=(e=>(e.Exercises="exercises",e.Muscles="muscles",e.Total="total",e))(L1||{});const cF=({label:e,options:t,value:n,onChange:r})=>J(Tv,{fullWidth:!0,children:[w(Pv,{id:`${e}-label`,children:e}),w(Fm,{labelId:`${e}-label`,id:`${e}-select`,value:n,label:e,onChange:r,children:t.map(o=>w(bn,{value:o.value,children:o.label},o.value))})]});function o1t(e,t,n,r,o){switch(r){case"exercises":{const i=Object.keys(o.exercises).map(s=>e.find(l=>l.id===parseInt(s))?.getTranslation(t)?.name),a=Object.keys(o.exercises).map(Number);return{headers:i,data:a.map(s=>o.exercises[s])}}case"muscles":{const i=Object.keys(o.muscle).map(s=>n.find(l=>l.id===parseInt(s))?.translatedName??""),a=Object.keys(o.muscle).map(Number);return{headers:i,data:a.map(s=>o.muscle[s])}}case"total":return{headers:[jn.t("total")],data:[o.total]};default:return{headers:[],data:[]}}}const i1t=(e,t,n,r,o,i,a,s)=>{const l={},c=e[t];let u=[],f=[];const h=(x,S)=>o1t(o,a,i,x,S);f=(x=>{let S=[];switch(n){case"mesocycle":S=h(r,c.mesocycle).headers;break;case"iteration":for(const C in x.iteration)S=S.concat(h(r,x.iteration[C]).headers);break;case"weekly":for(const C in x.weekly)S=S.concat(h(r,x.weekly[C]).headers);break;case"daily":for(const C in x.daily)S=S.concat(h(r,x.daily[C]).headers);break}return[...new Set(S)]})(c),f.forEach(x=>{l[x]=0});function y(x,S){f.map(E=>x[h(r,S).headers.indexOf(E)]).forEach((E,I)=>{E!==void 0&&(l[f[I]]+=E)})}switch(n){case"mesocycle":{const{data:x}=h(r,c.mesocycle);u=[{key:jn.t("total"),values:f.map(S=>x[f.indexOf(S)])}];break}case"iteration":{u=Object.entries(c.iteration).map(([x,S])=>{const{data:C}=h(r,S);return y(C,S),{key:`iteration ${x}`,values:f.map(E=>C[h(r,S).headers.indexOf(E)])}});break}case"weekly":{u=Object.entries(c.weekly).map(([x,S])=>{const{data:C}=h(r,S);return y(C,S),{key:`week ${x}`,values:f.map(E=>C[h(r,S).headers.indexOf(E)])}});break}case"daily":{u=Object.entries(c.daily).map(([x,S])=>{const{data:C}=h(r,S);return y(C,S),{key:new Date(x).toLocaleDateString(s),values:f.map(E=>C[h(r,S).headers.indexOf(E)])}});break}}return{headers:f,data:u,totals:l}};function a1t(e){const t=[];return e.headers.forEach(n=>{t.push({name:n,data:[]})}),e.data.forEach(n=>{n.values.forEach((r,o)=>{const i=e.headers[o];i&&t.find(a=>a.name===i)?.data.push({category:n.key.toString(),value:r})})}),t}const s1t=()=>{const e=Po(),[t,n]=We(),r=gl(),[o,i]=m.useState(Ty.Volume),[a,s]=m.useState(Py.Daily),[l,c]=m.useState(L1.Exercises),u=parseInt(r.routineId??"");if(Number.isNaN(u))return w("p",{children:"Please pass an integer as the routine id."});const f=bf(u),h=Zrt(u),g=Nw(),y=xf();if(h.isLoading||f.isLoading||g.isLoading||y.isLoading)return w(lo,{});const x=Op(n.language,y.data),S=f.data,C=[{value:Ty.Volume,label:t("routines.volume")},{value:Ty.Sets,label:t("routines.sets")},{value:Ty.Intensity,label:t("routines.intensity")}],E=[{value:Py.Mesocycle,label:t("routines.currentRoutine")},{value:Py.Weekly,label:t("routines.weekly")},{value:Py.Iteration,label:t("routines.iteration")},{value:Py.Daily,label:t("routines.daily")}],I=[{value:L1.Exercises,label:t("exercises.exercises")},{value:L1.Muscles,label:t("exercises.muscles")},{value:L1.Total,label:t("total")}],M=F=>{i(F.target.value)},O=F=>{s(F.target.value)},D=F=>{c(F.target.value)},N=i1t(h.data,o,a,l,S.exercises,g.data,x,n.language),$=a1t(N),L=()=>w(lf,{children:J(af,{size:"small",children:[w(jm,{children:J(Pn,{children:[w(Be,{}),N.headers.map(F=>w(Be,{sx:{textAlign:"right"},children:F},F))]})}),J(sf,{children:[N.data.map(F=>J(Pn,{children:[w(Be,{children:F.key}),F.values.map((z,H)=>w(Be,{sx:{textAlign:"right"},children:z?.toFixed(o===Ty.Intensity?2:0)||""},H))]},F.key)),a!==Py.Mesocycle&&J(Pn,{children:[w(Be,{sx:{fontWeight:"bold",backgroundColor:e.palette.grey.A200},children:t("total")}),N.headers.map(F=>w(Be,{sx:{fontWeight:"bold",backgroundColor:e.palette.grey.A200,textAlign:"right"},children:N.totals[F?.toString()]?.toFixed(o===Ty.Intensity?2:0)},F))]})]})]})}),A=OP($.length);return w(yP,{title:`${t("routines.statsOverview")} - ${S.name}`,backToUrl:Cn(hn.ROUTINE_DETAIL,n.language,{id:u}),optionsMenu:w(Gi,{title:t("routines.logsOverview"),children:w(An,{component:"a",href:Cn(hn.ROUTINE_LOGS_OVERVIEW,n.language,{id:u}),children:w(kle,{})})}),children:J(xe,{container:!0,spacing:1,children:[w(xe,{size:2,offset:3,children:w(cF,{label:"type",options:C,value:o,onChange:M})}),w(xe,{size:2,children:w(cF,{label:"sub type",options:E,value:a,onChange:O})}),w(xe,{size:2,children:w(cF,{label:"group by",options:I,value:l,onChange:D})}),w(xe,{size:12,children:w(mn,{width:"100%",height:400,children:w(qp,{width:"100%",height:"100%",children:J(pU,{width:500,height:300,children:[w(Hm,{strokeDasharray:"3 3"}),w(Um,{dataKey:"category",type:"category",allowDuplicatedCategory:!1}),w(Gm,{dataKey:"value"}),w(JT,{formatter:F=>Number.isInteger(F)?F.toFixed(0):F.toFixed(2)}),w(Mv,{layout:"vertical",verticalAlign:"middle",align:"right",wrapperStyle:{paddingLeft:"20px"}}),$.map(F=>w(Wk,{dataKey:"value",data:F.data,name:F.name,stroke:A.next().value},F.name))]})})})}),J(xe,{size:12,children:[w(mn,{height:20}),L()]})]})})},l1t=()=>{const[e]=We(),[t,n]=qe.useState(!1),r=()=>n(!0),o=()=>n(!1);return J("div",{children:[w(jp,{color:"secondary","aria-label":"add",onClick:r,sx:{position:"fixed",bottom:"5rem",right:i=>`max(${i.spacing(2)}, calc((100vw - ${i.breakpoints.values.lg}px) / 2 + ${i.spacing(2)}))`,zIndex:9},children:w(bi,{})}),w(ga,{title:e("add"),isOpen:t,closeFn:o,children:w(MP,{closeFn:o})})]})},c1t=()=>{const[e]=We(),[t,n]=qe.useState(!1),r=()=>n(!0),o=()=>n(!1);return J("div",{children:[w(jp,{color:"secondary","aria-label":"add",onClick:r,sx:{position:"fixed",bottom:"5rem",right:i=>`max(${i.spacing(2)}, calc((100vw - ${i.breakpoints.values.lg}px) / 2 + ${i.spacing(2)}))`,zIndex:9},children:w(bi,{})}),w(ga,{title:e("add"),isOpen:t,closeFn:o,children:w(MP,{closeFn:o,isTemplate:!0,isPublicTemplate:!0})})]})},u1t=()=>{const[e]=We(),[t,n]=qe.useState(!1),r=()=>n(!0),o=()=>n(!1);return J("div",{children:[w(jp,{color:"secondary","aria-label":"add",onClick:r,sx:{position:"fixed",bottom:"5rem",right:i=>`max(${i.spacing(2)}, calc((100vw - ${i.breakpoints.values.lg}px) / 2 + ${i.spacing(2)}))`,zIndex:9},children:w(bi,{})}),w(ga,{title:e("add"),isOpen:t,closeFn:o,children:w(MP,{closeFn:o,isTemplate:!0,isPublicTemplate:!1})})]})},r4=e=>{const[t,n]=We(),r=e.showTemplateChip??!0,o=e.showTemplateVisibility??!1,i=e.linkDestination??hn.ROUTINE_DETAIL,a=Cn(i,n.language,{id:e.routine.id}),s=e.routine.name!==""?e.routine.name:t("routines.routine"),l=e.routine.isTemplate&&r?w(Yc,{color:"info",size:"small",label:t("routines.template")}):null,c=e.routine.isTemplate&&o?w(Yc,{color:"info",size:"small",label:t(e.routine.isPublic?"public":"private")}):null;return J(_t,{children:[w(vi,{sx:{p:0},children:J(Gu,{component:"a",href:a,children:[w(ko,{primary:J(_t,{children:[s," ",l," ",c]}),secondary:`${e.routine.durationText} (${e.routine.start.toLocaleDateString()} - ${e.routine.end.toLocaleDateString()})`}),w(Nle,{})]})}),w($s,{component:"li"})]})},AQ=()=>{const e=eot(),[t]=We();return e.isLoading?w(lo,{}):w(rc,{title:t("routines.routines"),mainContent:w(_t,{children:e.data.length===0?w(Iv,{}):w(ai,{children:w(ca,{sx:{py:0},children:e.data.map(n=>w(r4,{routine:n},n.id))},"abc")})}),fab:w(l1t,{})})},d1t=()=>{const e=tot(),[t]=We();return e.isLoading?w(lo,{}):w(rc,{title:t("routines.templates"),mainContent:w(_t,{children:e.data.length===0?w(Iv,{}):w(ai,{children:w(ca,{sx:{py:0},children:e.data.map(n=>w(r4,{routine:n,showTemplateChip:!1,showTemplateVisibility:!0,linkDestination:hn.ROUTINE_DETAIL},n.id))},"abc")})}),fab:w(u1t,{})})},f1t=()=>{const e=not(),[t]=We();return e.isLoading?w(lo,{}):w(rc,{title:t("routines.publicTemplates"),mainContent:w(_t,{children:e.data.length===0?w(Iv,{}):w(ai,{children:w(ca,{sx:{py:0},children:e.data.map(n=>w(r4,{routine:n,linkDestination:hn.TEMPLATE_DETAIL,showTemplateChip:!1},n.id))},"abc")})}),fab:w(c1t,{})})},p1t=()=>w("div",{children:"About Page"});function o4(e){const[t]=We(),[n,r,o]=nc(e.fieldName);return w(rf,{multiple:!0,freeSolo:!0,id:e.fieldName,value:n.value,options:n.value,onChange:(i,a)=>{o.setValue(a)},renderValue:(i,a)=>i.map((s,l)=>lE(Yc,{label:s,...a({index:l}),key:l})),onBlur:n.onBlur,renderInput:i=>w(On,{...i,id:"exerciseAliases",variant:"standard",label:t("exercises.alternativeNames"),error:r.touched&&!!r.error,helperText:r.touched&&r.error,value:n.value})})}function h1t(e){const[t]=We(),[n,r,o]=nc(e.fieldName);return w(rf,{multiple:!0,id:e.fieldName,options:e.options.map(i=>i.id),getOptionLabel:i=>e.options.find(a=>a.id===i).translatedName,...n,onChange:(i,a)=>{o.setValue(a)},renderInput:i=>w(On,{variant:"standard",label:t("exercises.equipment"),value:n.value,...i})})}function i4(e){const[t]=We(),[n,r]=nc(e.fieldName);return w(On,{fullWidth:!0,id:e.fieldName,label:t("name"),variant:"standard",error:r.touched&&!!r.error,helperText:r.touched&&r.error,...n})}function m1t(e){const[t]=We(),[n,r]=nc(e.fieldName);return J(Tv,{fullWidth:!0,children:[w(Pv,{id:"label-category",children:t("category")}),w(Fm,{labelId:"label-category",id:"category",label:t("category"),error:r.touched&&!!r.error,...n,children:e.options}),r.touched&&!!r.error&&w(yT,{error:!0,children:r.error})]})}const uR=5,dR=40,DQ=40,RQ=15,a4=()=>Hi().min(uR,jn.t("forms.minLength",{chars:uR})).max(dR,jn.t("forms.maxLength",{chars:dR})).required(jn.t("forms.fieldRequired")),s4=()=>qy().ensure().compact().of(Hi().min(uR,jn.t("forms.minLength",{chars:uR})).max(dR,jn.t("forms.maxLength",{chars:dR}))),l4=()=>Hi().min(DQ,jn.t("forms.minLength",{chars:DQ})).required(jn.t("forms.fieldRequired")),hfe=()=>qy().ensure().compact().of(Hi().min(RQ,jn.t("forms.minLength",{chars:RQ}))),g1t=()=>ki().required(jn.t("forms.fieldRequired"));var mfe=(e=>(e[e.SET_NOTIFICATION=0]="SET_NOTIFICATION",e))(mfe||{}),wr=(e=>(e[e.RESET=0]="RESET",e[e.SET_NAME_EN=1]="SET_NAME_EN",e[e.SET_ALIASES_EN=2]="SET_ALIASES_EN",e[e.SET_DESCRIPTION_EN=3]="SET_DESCRIPTION_EN",e[e.SET_NOTES_EN=4]="SET_NOTES_EN",e[e.SET_CATEGORY=5]="SET_CATEGORY",e[e.SET_EQUIPMENT=6]="SET_EQUIPMENT",e[e.SET_PRIMARY_MUSCLES=7]="SET_PRIMARY_MUSCLES",e[e.SET_MUSCLES_SECONDARY=8]="SET_MUSCLES_SECONDARY",e[e.SET_VARIATION_ID=9]="SET_VARIATION_ID",e[e.SET_NEW_VARIATION_BASE_ID=10]="SET_NEW_VARIATION_BASE_ID",e[e.SET_LANGUAGE=11]="SET_LANGUAGE",e[e.SET_NAME_I18N=12]="SET_NAME_I18N",e[e.SET_ALIASES_I18N=13]="SET_ALIASES_I18N",e[e.SET_DESCRIPTION_I18N=14]="SET_DESCRIPTION_I18N",e[e.SET_NOTES_I18N=15]="SET_NOTES_I18N",e[e.SET_IMAGES=16]="SET_IMAGES",e))(wr||{});const kQ=e=>({type:mfe.SET_NOTIFICATION,payload:e}),NQ={notification:{notify:!1,message:"",severity:void 0,title:"",type:void 0}},y1t=m.createContext([NQ,()=>NQ]),v1t=()=>m.useContext(y1t),b1t=e=>({type:wr.SET_NAME_EN,payload:e}),x1t=e=>({type:wr.SET_DESCRIPTION_EN,payload:e}),w1t=e=>({type:wr.SET_NOTES_EN,payload:e}),S1t=e=>({type:wr.SET_ALIASES_EN,payload:e}),C1t=e=>({type:wr.SET_NAME_I18N,payload:e}),E1t=e=>({type:wr.SET_DESCRIPTION_I18N,payload:e}),T1t=e=>({type:wr.SET_NOTES_I18N,payload:e}),P1t=e=>({type:wr.SET_ALIASES_I18N,payload:e}),I1t=e=>({type:wr.SET_CATEGORY,payload:e}),O1t=e=>({type:wr.SET_EQUIPMENT,payload:e}),M1t=e=>({type:wr.SET_PRIMARY_MUSCLES,payload:e}),A1t=e=>({type:wr.SET_MUSCLES_SECONDARY,payload:e}),D1t=e=>({type:wr.SET_VARIATION_ID,payload:e}),R1t=e=>({type:wr.SET_NEW_VARIATION_BASE_ID,payload:e}),k1t=e=>({type:wr.SET_LANGUAGE,payload:e}),N1t=e=>({type:wr.SET_IMAGES,payload:e}),_1t=(e,t)=>{if(t===void 0)return e;switch(t.type){case wr.RESET:return fR;case wr.SET_NAME_EN:return{...e,nameEn:t.payload};case wr.SET_DESCRIPTION_EN:return{...e,descriptionEn:t.payload};case wr.SET_NOTES_EN:return{...e,notesEn:t.payload};case wr.SET_ALIASES_EN:return{...e,alternativeNamesEn:t.payload};case wr.SET_CATEGORY:return{...e,category:t.payload};case wr.SET_EQUIPMENT:return{...e,equipment:t.payload};case wr.SET_PRIMARY_MUSCLES:return{...e,muscles:t.payload};case wr.SET_MUSCLES_SECONDARY:return{...e,musclesSecondary:t.payload};case wr.SET_VARIATION_ID:return{...e,variationId:t.payload};case wr.SET_NEW_VARIATION_BASE_ID:return{...e,newVariationExerciseId:t.payload};case wr.SET_LANGUAGE:return{...e,languageId:t.payload};case wr.SET_NAME_I18N:return{...e,nameI18n:t.payload};case wr.SET_DESCRIPTION_I18N:return{...e,descriptionI18n:t.payload};case wr.SET_NOTES_I18N:return{...e,notesI18n:t.payload};case wr.SET_ALIASES_I18N:return{...e,alternativeNamesI18n:t.payload};case wr.SET_IMAGES:return{...e,images:t.payload};default:return e}},fR={category:null,muscles:[],musclesSecondary:[],variationId:null,newVariationExerciseId:null,languageId:null,equipment:[],nameEn:"",descriptionEn:"",alternativeNamesEn:[],notesEn:[],nameI18n:"",alternativeNamesI18n:[],descriptionI18n:"",notesI18n:[],images:[]},gfe=m.createContext([fR,()=>fR]),L1t=({children:e})=>{const[t,n]=m.useReducer(_1t,fR);return w(gfe.Provider,{value:[t,n],children:e})},Gv=()=>m.useContext(gfe),$1t=({onContinue:e})=>{const[t]=We(),[n,r]=Gv(),[o,i]=m.useState(n.muscles),[a,s]=m.useState(n.musclesSecondary);m.useEffect(()=>{r(M1t(o))},[r,o]),m.useEffect(()=>{r(A1t(a))},[r,a]);const l=u2(),c=Nw(),u=d2(),f=qi({nameEn:a4(),newAlternativeNameEn:s4(),category:g1t()});return w($a,{initialValues:{nameEn:n.nameEn,newAlternativeNameEn:n.alternativeNamesEn,category:n.category!==null?n.category:"",muscles:n.muscles,equipment:n.equipment,musclesSecondary:n.musclesSecondary},validationSchema:f,onSubmit:h=>{r(b1t(h.nameEn)),r(I1t(h.category)),r(S1t(h.newAlternativeNameEn)),r(O1t(h.equipment)),e()},children:h=>J(ba,{children:[J(Jt,{spacing:2,children:[w(i4,{fieldName:"nameEn"}),w(o4,{fieldName:"newAlternativeNameEn"}),l.isLoading?J(mn,{children:[" ",w(zl,{})," "]}):w(m1t,{fieldName:"category",options:l.data.map(g=>w(bn,{value:g.id,children:g.translatedName},g.id))}),u.isLoading?J(mn,{children:[" ",w(zl,{})," "]}):w(h1t,{fieldName:"equipment",options:u.data}),c.isLoading?J(mn,{children:[" ",w(zl,{})," "]}):J(_t,{children:[w(rf,{multiple:!0,id:"muscles",options:c.data.map(g=>g.id),getOptionDisabled:g=>a.includes(g),getOptionLabel:g=>c.data.find(y=>y.id===g).getName(),value:o,onChange:(g,y)=>{i(y)},renderInput:g=>w(On,{...g,variant:"standard",label:t("exercises.muscles"),value:h.getFieldProps("muscles").value,onChange:y=>{h.setFieldValue(h.getFieldProps("muscles").name,y.target.value)}})}),w(rf,{multiple:!0,id:"secondary-muscles",options:c.data.map(g=>g.id),getOptionDisabled:g=>o.includes(g),getOptionLabel:g=>c.data.find(y=>y.id===g).getName(),value:a,onChange:(g,y)=>{s(y)},renderInput:g=>w(On,{...g,variant:"standard",label:t("exercises.secondaryMuscles"),value:h.getFieldProps("muscles").value})})]}),J(xe,{container:!0,children:[w(xe,{display:"flex",justifyContent:"center",size:6,children:w(td,{primaryMuscles:o.map(g=>c.data.find(y=>y.id===g)),secondaryMuscles:a.map(g=>c.data.find(y=>y.id===g)),isFront:!0})}),w(xe,{display:"flex",justifyContent:"center",size:6,children:w(td,{primaryMuscles:o.map(g=>c.data.find(y=>y.id===g)),secondaryMuscles:a.map(g=>c.data.find(y=>y.id===g)),isFront:!1})})]})]}),w(xe,{container:!0,children:w(xe,{display:"flex",justifyContent:"end",size:12,children:w(mn,{sx:{mb:2},children:w("div",{children:w(St,{variant:"contained",type:"submit",sx:{mt:1,mr:1},children:t("continue")})})})})})]})})};function F1t(e,t){const n=new Map;return e.forEach(r=>{const o=t(r),i=n.get(o);i?i.push(r):n.set(o,[r])}),n}const _Q=({exercises:e})=>{const r=e[0].variationId,o=e[0].id,[i,a]=Gv(),[s,l]=m.useState(!1),[c,u]=m.useState(i.variationId),[f,h]=m.useState(i.newVariationExerciseId);m.useEffect(()=>{a(D1t(c))},[a,c]),m.useEffect(()=>{a(R1t(f))},[a,f]);const g=(x,S)=>()=>{x!==null?(S=null,x===i.variationId&&(x=null)):(x=null,S===i.newVariationExerciseId&&(S=null)),u(x),h(S)};let y;return r===null?y=i.newVariationExerciseId===o:y=r===i.variationId,w(vi,{disableGutters:!0,children:J(Gu,{onClick:g(r,o),children:[w(Ql,{children:w(Mxe,{max:4,spacing:"small",children:e.map(x=>x.mainImage?w(Ju,{src:x.mainImage.url},x.id):w(Ju,{children:w(Bp,{})},x.id))})}),w(ko,{primary:e.slice(0,s?e.length:5).map(x=>w("p",{style:{margin:0},children:x.getTranslation().name},x.id))}),w(Wi,{edge:"start",checked:y,tabIndex:-1,disableRipple:!0},`variation-${r}`),!s&&e.length>5?w(hp,{onMouseEnter:()=>l(!0)}):null]})})},j1t=({onContinue:e,onBack:t})=>{const[n]=We(),r=Ble(),[o,i]=Gv(),[a,s]=m.useState("");let l=[],c=new Map;return r.isSuccess&&(l=r.data,a!==""&&(l=l.filter(u=>u.getTranslation().name.toLowerCase().includes(a.toLowerCase())))),c=F1t(l.filter(u=>u.variationId!==null),u=>u.variationId),J(_t,{children:[J(xe,{container:!0,children:[w(xe,{size:{xs:12,sm:6},children:w(wt,{children:n("exercises.whatVariationsExist")})}),w(xe,{display:"flex",justifyContent:"end",size:{xs:12,sm:6},children:w(On,{label:n("name"),helperText:n("exercises.filterVariations"),variant:"standard",onChange:u=>s(u.target.value),slotProps:{input:{startAdornment:w(gi,{position:"start",children:w(FU,{})})}}})})]}),r.isLoading?w(lo,{}):w(ai,{elevation:2,sx:{mt:2},children:J(ca,{style:{height:"400px",overflowY:"scroll"},children:[l.filter(u=>u.variationId===null).map(u=>w(_Q,{exercises:[u]},"exercise-"+u.id)),[...c.keys()].map(u=>w(_Q,{exercises:c.get(u)},"variation-"+u))]})}),J(pa,{severity:"info",variant:"filled",sx:{mt:2},children:[w(Cm,{children:n("exercises.identicalExercise")}),n("exercises.identicalExercisePleaseDiscard")]}),w(xe,{container:!0,children:w(xe,{display:"flex",justifyContent:"end",size:12,children:w(mn,{sx:{mb:2},children:J("div",{children:[w(St,{disabled:!1,onClick:t,sx:{mt:1,mr:1},children:n("goBack")}),w(St,{variant:"contained",onClick:e,sx:{mt:1,mr:1},children:n("continue")})]})})})})]})};function yfe(){return zt({mutationFn:async e=>{try{return{success:!0,data:await R2e(e)}}catch(t){if(bt.isAxiosError(t)){const n=t;if(n.response?.status===400)return n.response.data}throw t}}})}function B1t(e){const{t}=We(),[n,r]=qe.useState(e.initial.toString()),o=u2(),i=yl(),a=async s=>{r(s.target.value),await oV(e.exerciseId,{category:parseInt(s.target.value),license_author:i.data.username})};return o.isSuccess?J(Tv,{fullWidth:!0,children:[w(Pv,{id:"label-category",children:t("category")}),w(Fm,{labelId:"label-category",id:"category",label:t("category"),value:n,onChange:a,children:o.data.map(s=>w(bn,{value:s.id,children:s.translatedName},s.id))})]}):null}function z1t(e){const{t}=We(),[n,r]=qe.useState(e.initial),o=d2(),i=yl(),a=async s=>{r(s),await oV(e.exerciseId,{equipment:s,license_author:i.data.username})};return o.isSuccess?w(rf,{multiple:!0,value:n,options:o.data.map(s=>s.id),getOptionLabel:s=>o.data.find(l=>l.id===s).translatedName,onChange:(s,l)=>a(l),renderInput:s=>w(On,{variant:"standard",label:t("exercises.equipment"),value:n,...s})}):null}var Ui=function(){return Ui=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ui.apply(this,arguments)};function F2(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function LQ(e){if(e){var t=e.textContent,n=/[\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]/;e.style.direction=t&&n.test(t[0])?"rtl":"ltr"}}function vfe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}function V1t(){if(document.selection)return document.selection.createRange().parentElement();var e=window.getSelection();if(e&&e.rangeCount>0)return e.getRangeAt(0).startContainer.parentNode||void 0}function $Q(e){return typeof e=="string"?e.replace(/&nbsp;|\u202F|\u00A0/g," ").replace(/<br \/>/g,"<br>"):String(e)}function H1t(e){var t=document.createTextNode("");e.appendChild(t);var n=document.activeElement===e;if(t!==null&&t.nodeValue!==null&&n){var r=window.getSelection();if(r!==null){var o=document.createRange();o.setStart(t,t.nodeValue.length),o.collapse(!0),r.removeAllRanges(),r.addRange(o)}e instanceof HTMLElement&&e.focus()}}function bfe(e,t){typeof t=="function"?t(e):typeof t=="object"&&t&&(t.current=e)}var U1t=qe.memo(qe.forwardRef(function(t,n){var r=t.className,o=t.disabled,i=t.tagName,a=t.value,s=a===void 0?"":a,l=t.placeholder,c=F2(t,["className","disabled","tagName","value","placeholder"]),u=qe.useRef(null),f=qe.useRef(s),h=qe.useRef(c);return qe.useEffect(function(){h.current=c;var g=u.current;g&&$Q(f.current)!==$Q(s)&&(f.current=s,g.innerHTML=s,H1t(g))}),qe.useMemo(function(){function g(S){u.current=S,LQ(S),bfe(S,n)}function y(S){var C,E,I=u.current;if(I){var M=I.innerHTML;M!==f.current&&((E=(C=h.current).onChange)===null||E===void 0||E.call(C,Ui(Ui({},S),{target:{value:M,name:c.name}}))),LQ(I),f.current=M}}var x=vfe("rsw-ce",r);return qe.createElement(i||"div",Ui(Ui({},c),{className:x,contentEditable:!o,dangerouslySetInnerHTML:{__html:s},onBlur:function(S){return(h.current.onBlur||y)(S)},onInput:y,onKeyDown:function(S){return(h.current.onKeyDown||y)(S)},onKeyUp:function(S){return(h.current.onKeyUp||y)(S)},placeholder:l,ref:g}))},[r,o,l,i])})),xfe=qe.createContext(void 0);function wfe(e){var t=e.children,n=qe.useState({htmlMode:!1,update:i}),r=n[0],o=n[1];function i(a){o(function(s){return Ui(Ui({},s),a)})}return qe.createElement(xfe.Provider,{value:r},t)}function RP(){var e=qe.useContext(xfe);if(!e)throw new Error("You should wrap your component by EditorProvider");return e}var FQ=[],x1=[];function G1t(e,t){if(e&&typeof document<"u"){var n,r=t.prepend===!0?"prepend":"append",o=t.singleTag===!0,i=typeof t.container=="string"?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(o){var a=FQ.indexOf(i);a===-1&&(a=FQ.push(i)-1,x1[a]={}),n=x1[a]&&x1[a][r]?x1[a][r]:x1[a][r]=s()}else n=s();e.charCodeAt(0)===65279&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function s(){var l=document.createElement("style");if(l.setAttribute("type","text/css"),t.attributes)for(var c=Object.keys(t.attributes),u=0;u<c.length;u++)l.setAttribute(c[u],t.attributes[c[u]]);var f=r==="prepend"?"afterbegin":"beforeend";return i.insertAdjacentElement(f,l),l}}var W1t=".rsw-editor{border:1px solid #ddd;border-radius:.375rem;display:flex;flex-direction:column;min-height:100px;overflow:hidden}.rsw-ce{flex:1 1 auto;overflow:auto;padding:.5rem}.rsw-ce:focus{outline:1px solid #668}.rsw-ce[contentEditable=true]:empty:not(:focus):before{color:grey;content:attr(placeholder);pointer-events:none}.rsw-html{background:transparent;border:none;font-family:monospace,Courier New}.rsw-separator{align-self:stretch;border-right:1px solid #ddd;display:flex;margin:0 3px}.rsw-dd{box-sizing:border-box;outline:none}.rsw-btn{background:transparent;border:0;color:#222;cursor:pointer;font-size:1em;height:2em;outline:none;padding:0;width:2em}.rsw-btn:hover{background:#eaeaea}.rsw-btn[data-active=true]{background:#e0e0e0}.rsw-toolbar{align-items:center;background-color:#f5f5f5;border-bottom:1px solid #ddd;display:flex}";G1t(W1t,{});var Sfe=qe.forwardRef(function(t,n){var r=t.autoFocus,o=t.children,i=t.containerProps,a=t.onSelect,s=F2(t,["autoFocus","children","containerProps","onSelect"]),l=RP();qe.useEffect(function(){return document.addEventListener("click",c),function(){return document.removeEventListener("click",c)}});function c(g){var y;g.target!==l.$el&&(!((y=l.$el)===null||y===void 0)&&y.contains(g.target)||l.update({$selection:void 0}))}function u(g){a?.(g),l.update({$selection:V1t()})}function f(g){l.update({$el:g}),bfe(g,n),r&&g&&l.$el===void 0&&g.focus()}var h=vfe("rsw-editor",i?.className);return l.htmlMode?qe.createElement("div",Ui({},i,{className:h}),o,qe.createElement("textarea",Ui({},s,{className:"rsw-ce rsw-html"}))):qe.createElement("div",Ui({},i,{className:h}),o,qe.createElement(U1t,Ui({},s,{ref:f,onSelect:u})))});function q1t(){return qe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",style:{verticalAlign:"text-top"}},qe.createElement("path",{fill:"currentColor",d:"M6.99938 12.998v-2H20.9994v2H6.99938zm0 6.0001v-2H20.9994v2H6.99938zm0-12.00001v-2H20.9994v2H6.99938zm-4 1v-3h-1v-1h2v4h-1zm-1 9.00001v-1h3v4h-3v-1h2v-.5h-1v-1h1v-.5h-2zM4.25 10c.41421 0 .75.3358.75.75 0 .2024-.08017.3861-.2105.521L3.11983 13H5v1H2v-.9218L4 11H2v-1h2.25z"}))}function K1t(){return qe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",style:{verticalAlign:"text-top"}},qe.createElement("path",{fill:"currentColor",d:"M7 5h14v2H7V5zm0 8v-2h14v2H7zM4 4.50001c.83 0 1.5.66992 1.5 1.5 0 .83007-.67 1.5-1.5 1.5s-1.5-.66993-1.5-1.5c0-.83008.67-1.5 1.5-1.5zM4 10.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zM7 19v-2h14v2H7zm-3-2.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z"}))}var Cfe=Ef("Bold","𝐁","bold"),Efe=Ef("Bullet list",qe.createElement(K1t,null),"insertUnorderedList"),Y1t=Ef("Clear formatting","T̲ₓ","removeFormat"),Tfe=Ef("Italic","𝑰","italic"),Q1t=Ef("Strike through",qe.createElement("s",null,"ab"),"strikeThrough"),X1t=Ef("Link","🔗",function(e){var t=e.$selection;t?.nodeName==="A"?document.execCommand("unlink"):document.execCommand("createLink",!1,prompt("URL","")||void 0)}),Pfe=Ef("Numbered list",qe.createElement(q1t,null),"insertOrderedList"),Ife=Ef("Redo","↷","redo"),Ofe=Ef("Underline",qe.createElement("span",{style:{textDecoration:"underline"}},"𝐔"),"underline"),Mfe=Ef("Undo","↶","undo");function Ef(e,t,n){return r.displayName=e.replace(/\s/g,""),r;function r(o){var i=RP(),a=i.$el,s=function(){return!!a?.contains(document.activeElement)},l=!1;typeof n=="string"&&(l=s()&&document.queryCommandState(n));function c(u){u.preventDefault(),s()||a?.focus(),typeof n=="function"?n(i):document.execCommand(n)}return i.htmlMode?null:qe.createElement("button",Ui({className:"rsw-btn","data-active":l,onMouseDown:c,tabIndex:-1,title:e,type:"button"},o),t)}}var J1t=Z1t("Styles",[["Normal","formatBlock","DIV"],["𝗛𝗲𝗮𝗱𝗲𝗿 𝟭","formatBlock","H1"],["Header 2","formatBlock","H2"],["𝙲𝚘𝚍𝚎","formatBlock","PRE"]]);function Z1t(e,t){return n.displayName=e,n;function n(r){var o=RP(),i=o.$el,a=o.$selection,s=o.htmlMode;if(s)return null;var l=t.findIndex(function(u){return u[1]==="formatBlock"&&a?.nodeName===u[2]});return qe.createElement(eEt,Ui({},r,{items:t,onChange:c,selected:l,tabIndex:-1,title:e}));function c(u){var f=u.target,h=f.value,g=parseInt(h,10),y=t[g]||[],x=y[1],S=y[2];u.preventDefault(),document.activeElement!==i&&i?.focus(),typeof x=="function"?x(o):x&&document.execCommand(x,!1,S),setTimeout(function(){return f.value=h},10)}}}function eEt(e){var t=e.items,n=e.selected,r=F2(e,["items","selected"]);return qe.createElement("select",Ui({className:"rsw-dd"},r,{value:n}),qe.createElement("option",{hidden:!0},r.title),t.map(function(o,i){return qe.createElement("option",{key:o[2],value:i},o[0])}))}function tEt(e){var t=F2(e,[]),n=RP();function r(){n.update({htmlMode:!n.htmlMode})}return qe.createElement("button",Ui({className:"rsw-btn","data-active":n.htmlMode,onClick:r,tabIndex:-1,title:"HTML mode",type:"button"},t),"</>")}function ox(e){var t=RP();return t.htmlMode?null:qe.createElement("div",Ui({className:"rsw-separator"},e))}function Afe(e){return qe.createElement("div",Ui({className:"rsw-toolbar"},e))}qe.forwardRef(function(t,n){return qe.createElement(wfe,null,qe.createElement(Sfe,Ui({},t,{ref:n}),t.children||qe.createElement(Afe,null,qe.createElement(Mfe,null),qe.createElement(Ife,null),qe.createElement(ox,null),qe.createElement(Cfe,null),qe.createElement(Tfe,null),qe.createElement(Ofe,null),qe.createElement(Q1t,null),qe.createElement(ox,null),qe.createElement(Pfe,null),qe.createElement(Efe,null),qe.createElement(ox,null),qe.createElement(X1t,null),qe.createElement(Y1t,null),qe.createElement(tEt,null),qe.createElement(ox,null),qe.createElement(J1t,null))))});function nEt(e){return w(wfe,{children:w(Sfe,{...e,children:J(Afe,{children:[w(Cfe,{}),w(Tfe,{}),w(Ofe,{}),w(ox,{}),w(Efe,{}),w(Pfe,{}),w(ox,{}),w(Mfe,{}),w(Ife,{})]})})})}function c4(e){const[t,n,r]=nc(e.fieldName);return J(_t,{children:[w("div",{"data-testid":"jodit-editor",children:w(nEt,{value:t.value,onChange:o=>r.setValue(o.target.value)})}),n.touched&&!!n.error&&w(yT,{error:!0,children:n.error})]})}const rEt=({exerciseId:e,image:t,canDelete:n})=>{const[r]=We(),o=_it(e);return J(oi,{children:[w(of,{component:"img",image:t.url,sx:{height:120},alt:""}),w(iu,{children:n&&w(St,{color:"primary",onClick:()=>o.mutate(t.id),children:r("delete")})})]})},oEt=({exerciseId:e})=>{const[t]=We(),n=yl(),r=Lit(e),o=async i=>{if(!i.target.files?.length)return;const[a]=i.target.files;n.isSuccess&&r.mutate({exerciseId:e,image:a,imageData:{url:"",file:a,author:"",authorUrl:"",title:"",objectUrl:"",derivativeSourceUrl:"",style:""}})};return J(_t,{children:[J(oi,{children:[w(of,{children:w(mn,{sx:{backgroundColor:"lightgray",height:120},display:"flex",alignItems:"center",justifyContent:"center",children:w(Rle,{sx:{fontSize:80,color:"gray"}})})}),w(iu,{children:J(St,{component:"label",children:[t("add"),w("input",{style:{display:"none"},id:"camera-input",type:"file",accept:"image/*",capture:"environment",onChange:o})]})})]}),r.isError&&w(QCt,{mutationQuery:r})]})};function jQ(e){const{t}=We(),n=Nw(),r=async o=>{e.setValue(o),await oV(e.exerciseId,e.isMain?{muscles:o}:{muscles_secondary:o})};return n.isSuccess?w(rf,{multiple:!0,options:n.data.map(o=>o.id),getOptionDisabled:o=>e.blocked.includes(o),getOptionLabel:o=>n.data.find(i=>i.id===o).getName(),value:e.value,onChange:(o,i)=>r(i),renderInput:o=>w(On,{...o,variant:"standard",label:t(e.isMain?"exercises.muscles":"exercises.secondaryMuscles"),value:e.value})}):null}const iEt=({video:e,canDelete:t})=>{const[n]=We();return J(oi,{children:[w(of,{component:"video",src:e.url,sx:{height:120},controls:!0,preload:"metadata"}),w(iu,{children:t&&w(St,{color:"primary",onClick:()=>mAe(e.id),children:n("delete")})})]})},aEt=({exerciseId:e})=>{const[t]=We(),n=yl(),r=async o=>{if(!o.target.files?.length)return;const[i]=o.target.files;n.isSuccess&&await hAe(e,n.data.username,i)};return J(oi,{children:[w(of,{children:w(mn,{sx:{backgroundColor:"lightgray",height:120},display:"flex",alignItems:"center",justifyContent:"center",children:w(Rle,{sx:{fontSize:80,color:"gray"}})})}),w(iu,{children:J(St,{component:"label",children:[t("add"),w("input",{style:{display:"none"},id:"camera-input",type:"file",accept:"video/*",capture:"environment",onChange:r})]})})]})},sEt="check-permission",lEt=async e=>{const t=Pt(sEt,{query:{permission:e}}),n=await bt.get(t,{headers:It()});return n.status===400?!1:n.data.result};function um(e){return Zr({queryKey:[qMe,e],queryFn:()=>lEt(e.valueOf())})}var up=(e=>(e.EDIT_EXERCISE="exercises.change_exercise",e.DELETE_EXERCISE="exercises.delete_exercise",e.ADD_IMAGE="exercises.add_exerciseimage",e.EDIT_IMAGE="exercises.change_exerciseimage",e.DELETE_IMAGE="exercises.delete_exerciseimage",e.ADD_VIDEO="exercises.add_exercisevideo",e.EDIT_VIDEO="exercises.change_exercisevideo",e.DELETE_VIDEO="exercises.delete_exercisevideo",e))(up||{});const cEt=({exerciseId:e,language:t})=>{const[n]=We(),[r,o]=m.useState(!1),[i,a]=m.useState([]),[s,l]=m.useState([]),c=Dit(e),u=kit(e),f=Nit(e),h=um(up.ADD_IMAGE),g=um(up.DELETE_IMAGE),y=um(up.ADD_VIDEO),x=um(up.DELETE_VIDEO),S=um(up.EDIT_EXERCISE),C=Nw(),E=yl(),I=c.data;if(m.useEffect(()=>{c.data!==void 0&&(a(I.muscles.map(L=>L.id)),l(I.musclesSecondary.map(L=>L.id)))},[c.data]),c.isLoading||C.isLoading||c.isLoading||E.isLoading||h.isLoading||g.isLoading||y.isLoading||x.isLoading||S.isLoading)return w(zl,{});const M=I.getTranslation(t),D=t.id!==M?.language?new _Z(null,null,"","",t.id):M,N=I.getTranslation(),$=qi({name:a4(),alternativeNames:s4(),description:l4()});return J(_t,{children:[w($a,{initialValues:{name:D.name,alternativeNames:D.aliases.map(L=>L.alias),description:D.description},enableReinitialize:!0,validationSchema:$,onSubmit:async L=>{const A=D.id?await f.mutateAsync({id:D.id,exerciseId:I.id,languageId:t.id,name:L.name,description:L.description,author:""}):await u.mutateAsync({exerciseId:I.id,languageId:t.id,name:L.name,description:L.description,author:E.data.username}),F=D.aliases.map(G=>G.alias),z=L.alternativeNames,H=z.filter(G=>!F.includes(G)),Q=F.filter(G=>!z.includes(G));H.forEach(G=>{fAe(A.id,G)}),Q.forEach(G=>{pAe(D.aliases.find(V=>V.alias===G).id)}),o(!0)},children:w(ba,{children:J(xe,{container:!0,spacing:1,children:[r&&J(xe,{size:12,children:[w(pa,{severity:"success",action:w(An,{"aria-label":"close",size:"small",color:"inherit",onClick:()=>{o(!1)},children:w(wT,{fontSize:"inherit"})}),children:n("exercises.successfullyUpdated")}),w(Ma,{})]}),w(xe,{size:6,children:w(wt,{variant:"h5",children:n("English")})}),w(xe,{size:6,children:J(wt,{variant:"h5",children:[t.nameLong," (",t.nameShort,")"]})}),J(xe,{size:12,children:[w(Ma,{}),w(wt,{variant:"h6",children:n("name")})]}),J(xe,{size:6,children:[N.name,w("ul",{children:N.aliases.map(L=>w("li",{children:L.alias},L.id))})]}),J(xe,{size:6,children:[w(mn,{mb:2,children:w(i4,{fieldName:"name"})}),w(o4,{fieldName:"alternativeNames"})]}),w(xe,{size:12,children:w(Ma,{})}),w(xe,{size:12,children:w(wt,{variant:"h6",children:n("exercises.description")})}),w(xe,{size:{xs:12,md:6},children:w("div",{dangerouslySetInnerHTML:{__html:N.description}})}),w(xe,{size:{xs:12,md:6},children:w(c4,{fieldName:"description"})}),S.data&&J(_t,{children:[w(xe,{size:12,children:w(Ma,{})}),w(xe,{size:{xs:12,md:6},children:w(B1t,{exerciseId:I.id,initial:I.category.id})}),w(xe,{size:{xs:12,md:6},children:w(z1t,{exerciseId:I.id,initial:I.equipment.map(L=>L.id)})})]}),J(xe,{size:12,children:[w(Ma,{}),w(St,{variant:"contained",type:"submit",sx:{mt:1,mr:1},disabled:c.isLoading||u.isPending||f.isPending,children:n("save")})]})]})})}),w(Ma,{}),w(wt,{variant:"h6",children:n("images")}),J(xe,{container:!0,spacing:2,mt:2,children:[h.data&&w(xe,{size:{md:3},children:w(oEt,{exerciseId:I.id})},"add"),I.images.map(L=>w(xe,{size:{md:3},children:w(rEt,{exerciseId:I.id,image:L,canDelete:g.data})},L.id))]}),w(Ma,{}),w(wt,{variant:"h6",children:n("videos")}),J(xe,{container:!0,spacing:2,mt:2,children:[y.data&&w(xe,{size:{md:3},children:w(aEt,{exerciseId:I.id})},"add"),I.videos.map(L=>w(xe,{size:{md:3},children:w(iEt,{video:L,canDelete:x.data})},L.id))]}),S.data&&J(_t,{children:[w(Ma,{}),w(wt,{variant:"h6",children:n("exercises.muscles")}),J(xe,{container:!0,spacing:1,mt:2,children:[w(xe,{size:{xs:12,md:6},children:w(jQ,{exerciseId:I.id,value:i,setValue:a,blocked:s,isMain:!0})}),w(xe,{size:{xs:12,md:6},children:w(jQ,{exerciseId:I.id,value:s,setValue:l,blocked:i,isMain:!1})}),w(xe,{size:{sm:6},offset:{md:3},children:J(xe,{container:!0,children:[w(xe,{display:"flex",justifyContent:"center",size:6,children:w(td,{primaryMuscles:i.map(L=>C.data.find(A=>A.id===L)),secondaryMuscles:s.map(L=>C.data.find(A=>A.id===L)),isFront:!0})}),w(xe,{display:"flex",justifyContent:"center",size:6,children:w(td,{primaryMuscles:i.map(L=>C.data.find(A=>A.id===L)),secondaryMuscles:s.map(L=>C.data.find(A=>A.id===L)),isFront:!1})})]})})]})]})]})},uEt=({mainImage:e,sideImages:t})=>J(xe,{container:!0,spacing:1,children:[e&&w(xe,{size:12,children:w(oi,{children:w(of,{component:"img",image:e.url,alt:""})})}),t.map(n=>w(xe,{size:6,children:w(oi,{children:w(of,{component:"img",image:n.url,sx:{height:120},alt:""})})},n.id))]}),dEt=({videos:e})=>w(xe,{container:!0,spacing:1,children:e.map(t=>w(xe,{size:6,children:w(oi,{children:w(of,{component:"video",src:t.url,sx:{height:120},controls:!0,muted:!0,preload:"metadata"})})},t.id))});function u4(){const e=yl(),t=um(up.EDIT_EXERCISE),n={canContribute:!1,anonymous:!0,emailVerified:!1,admin:!1};if(e.isSuccess&&t.isSuccess){if(e.data===null)return n;n.anonymous=!1,e.data?.emailVerified&&(n.emailVerified=!0),t.data&&(n.admin=!0),(n.admin||e.data?.isTrustworthy)&&(n.canContribute=!0)}return n}const fEt=({setEditMode:e})=>{const[t]=We();return J(mn,{mb:2,paddingY:2,sx:{width:"100%",backgroundColor:"#ebebeb",textAlign:"center"},children:[w(wt,{variant:"h5",children:t("exercises.exerciseNotTranslated")}),w(wt,{gutterBottom:!0,variant:"body1",component:"div",children:t("exercises.exerciseNotTranslatedBody")}),w(St,{variant:"contained",onClick:()=>e(!0),children:t("exercises.translateExerciseNow")})]})},pEt=({exercise:e,variations:t,language:n,setEditMode:r})=>{const[o]=We(),i=u4(),a=e.getTranslation(n),s=n&&n.id!==a.language;return J(xe,{container:!0,children:[s&&i.canContribute&&w(xe,{order:{xs:2,sm:1},size:{xs:12,sm:7,md:12},children:w(fEt,{setEditMode:r})}),J(xe,{order:{xs:2,sm:1},size:{xs:12,sm:7,md:8},children:[a?.aliases.length>0&&J(_t,{children:[J("p",{children:[o("exercises.alsoKnownAs"),"  ",a?.aliases?.map(l=>l.alias).join(", ")]}),w(Ma,{})]}),w(wt,{variant:"h5",children:o("exercises.description")}),w("div",{dangerouslySetInnerHTML:{__html:a?.description}}),w(Ma,{}),a?.notes.length>0&&w(wt,{variant:"h5",children:o("exercises.notes")}),w("ul",{children:a?.notes.map(l=>w("li",{children:l.note},l.id))}),w(Ma,{}),w(wt,{variant:"h5",children:o("exercises.muscles")}),J(xe,{container:!0,children:[w(xe,{order:{xs:1},size:{xs:6,md:3},children:w(td,{primaryMuscles:e.muscles,secondaryMuscles:e.musclesSecondary,isFront:!0})}),J(xe,{order:{xs:2,md:3},size:{xs:6,md:3},children:[w("h3",{children:o("exercises.primaryMuscles")}),w("ul",{children:e.muscles.map(l=>w("li",{children:l.getName()},l.id))})]}),w(xe,{order:{xs:3,md:2},size:{xs:6,md:3},children:w(td,{primaryMuscles:e.muscles,secondaryMuscles:e.musclesSecondary,isFront:!1})}),J(xe,{order:{xs:4},size:{xs:6,md:3},children:[w("h3",{children:o("exercises.secondaryMuscles")}),w("ul",{children:e.musclesSecondary.map(l=>w("li",{children:l.getName()},l.id))})]})]}),w(Ma,{})]}),J(xe,{order:{xs:1,sm:2},size:{xs:12,sm:5,md:4},children:[w(uEt,{mainImage:e.mainImage,sideImages:e.sideImages}),w(Ma,{}),w(dEt,{videos:e.videos})]}),J(xe,{order:{xs:3},size:12,children:[w($s,{}),w(Ma,{}),t.length>0&&w(wt,{variant:"h5",children:o("exercises.variations")}),w(xe,{container:!0,spacing:2,children:t.map(l=>w(xe,{size:{xs:6,md:2},children:w(dce,{exercise:l,language:n},l.id)},l.id))})]}),w(xe,{order:{xs:4},size:12,children:J(wt,{variant:"caption",display:"block",mt:2,children:["The text on this page is available under the ",w("a",{href:"https://creativecommons.org/licenses/by-sa/4.0/deed",children:"CC BY-SA 4 License"}),"."]})})]})};function hEt(e){const[t,n]=qe.useState(null),[r,o]=qe.useState(null),[i]=We(),a=Yp(),s=()=>{o(null),n(null)},l=async()=>{await lAe(e.currentExercise.getTranslation(e.currentLanguage)?.id),e.onClose(),e.onChangeLanguage()},c=async(f=!1)=>{f?await aG(e.currentExercise.id,r?.uuid):await aG(e.currentExercise.id),e.onClose(),a("../overview")},u=async f=>{const h=f!==void 0?f:t;if(h!==null)try{const g=await pw(h);o(g)}catch{o(null)}};return J(_t,{children:[w(zA,{id:"alert-dialog-title",children:i("delete")}),J(gE,{children:[w("p",{children:i("exercises.deleteExerciseBody",{name:e.currentExercise.getTranslation(e.currentLanguage)?.name,language:e.currentLanguage?.nameLong})}),w("p",{children:i("cannotBeUndone")}),w("p",{children:w("b",{children:i("exercises.replacements")})}),w("p",{children:i("exercises.replacementsInfoText")}),w("p",{children:i("exercises.replacementsSearch")}),w(Wx,{callback:f=>{f!==null&&(n(f.data.base_id),u(f.data.base_id))}}),w(On,{"data-testid":"exercise-id-field",id:"foo",label:"Exercise ID",onBlur:()=>u(),onChange:async f=>{n(f.target.value!==""?parseInt(f.target.value):null)},value:t??"",InputProps:{endAdornment:w(gi,{position:"start",children:w(An,{onClick:()=>u(),children:w(tit,{})})})},fullWidth:!0,variant:"standard"}),r===null&&w(_t,{children:w("p",{children:w("i",{children:i("exercises.noReplacementSelected")})})}),r!==null&&J(_t,{children:[J("p",{children:["Selected exercise for replacement:",w(Gi,{title:i("copyToClipboard"),children:w(An,{onClick:()=>navigator.clipboard.writeText(r.id.toString()),children:w(uit,{})})})]}),J(vi,{disablePadding:!0,children:[w(Wz,{children:w(Ju,{children:r.mainImage?w(Ju,{alt:"",src:`${SZ}${r.mainImage.url}`,variant:"rounded"}):w(Bp,{})})}),w(ko,{primary:r.getTranslation().name,secondary:`${r.id} (${r.uuid})`}),w(An,{onClick:s,children:w(lit,{})})]})]})]}),J(mE,{children:[w(St,{onClick:()=>e.onClose(),children:i("cancel")}),w(St,{"data-testid":"button-delete-translation",size:"small",onClick:l,variant:"contained",children:i("exercises.deleteTranslation")}),w(St,{"data-testid":"button-delete-all",size:"small",onClick:()=>c(),variant:"contained",children:i("exercises.deleteExerciseFull")}),w(St,{"data-testid":"button-delete-and-replace",size:"small",disabled:r===null,onClick:()=>c(!0),variant:"contained",children:i("exercises.deleteExerciseReplace")})]})]})}const mEt="_root_l288f_1",gEt="_detail_language_l288f_4",yEt="_detail_l288f_4",vEt="_languages_l288f_28",bEt="_language_l288f_28",xEt="_header_l288f_52",wEt="_toolbar_l288f_55",yy={root:mEt,detail_language:gEt,detail:yEt,languages:vEt,language:bEt,header:xEt,toolbar:wEt},SEt=({exercise:e,languages:t,changeLanguage:n,language:r,setEditMode:o,editMode:i})=>{const[a,s]=m.useState(null),[l,c]=qe.useState(!1),u=!!a,[f]=We(),h=um(up.DELETE_EXERCISE),g=um(up.EDIT_EXERCISE),y=yl(),x=y.isSuccess&&y.data===null;let S=!1;y.isSuccess&&g.isSuccess&&(S=g.data||y.data!==null&&y.data.isTrustworthy);const C=O=>{s(O.currentTarget)},E=()=>{s(null)},I=O=>{n(O),E()},M=t.map(O=>J(bn,{onClick:()=>I(O),selected:r?.id===O.id,children:[w(ko,{children:O.nameLong}),w(Ql,{children:e.availableLanguages.includes(O.id)?w(Sit,{}):w(bi,{})})]},O.nameShort));return w(xe,{container:!0,children:w(xe,{size:12,children:J("div",{className:yy.root,children:[w(hE,{open:l,onClose:()=>c(!1),children:w(hEt,{onClose:()=>c(!1),onChangeLanguage:()=>n(t[0]),currentExercise:e,currentLanguage:r})}),J("div",{className:yy.detail_language,children:[J("div",{className:yy.detail,children:[w(Ri,{to:"../overview",children:f("exercises.exercises")})," > ",e.getTranslation(r)?.name]}),w("div",{className:yy.languages,children:J("div",{className:yy.language,children:[w(St,{size:"small",id:"basic-button",onClick:C,startIcon:w(Fle,{}),children:r?.nameLong}),J(ec,{id:"basic-menu",anchorEl:a,open:u,onClose:E,MenuListProps:{"aria-labelledby":"basic-button"},sx:{padding:20},children:[w(bn,{disabled:!0,children:f("exercises.changeExerciseLanguage")}),w($s,{}),M]})]})})]}),J("div",{className:yy.header,children:[w(wt,{gutterBottom:!0,variant:"h2",margin:0,sx:{mt:2},children:e.getTranslation(r)?.name}),!x&&J("nav",{className:yy.toolbar,children:[h.isSuccess&&h.data&&r?.id===e.getTranslation(r)?.language&&w(St,{onClick:()=>c(!0),children:f("delete")}),S&&w(St,{onClick:()=>o(!0),disabled:i,children:"EDIT"}),w(St,{onClick:()=>o(!1),disabled:!i,children:"VIEW"})]})]}),J(Jt,{direction:"row",spacing:1,mt:2,children:[w(Yc,{label:e.category.translatedName,size:"small"}),e.equipment.map(O=>w(Yc,{label:O.translatedName,variant:"outlined",size:"small"},O.id))]})]})})})},Ma=()=>w(mn,{sx:{height:20}}),CEt=()=>{const[e,t]=m.useState(BMe),[n,r]=m.useState(!1),{i18n:o}=We(),i=Yp(),a=xf(),s=gl(),l=parseInt(s.exerciseId??"");if(Number.isNaN(l))return w("p",{children:"Please pass an integer as the exercise id."});const c=Zr({queryKey:[WMe,l],queryFn:()=>pw(l),enabled:a.isSuccess}),u=Zr({queryKey:[GMe,c.data?.variationId],queryFn:()=>nAe(c.data?.variationId),enabled:c.isSuccess});if(qe.useEffect(()=>{if(a.data===void 0)return;const y=Op(o.language,a.data);t(y)},[a.data]),c.isError||a.isError||u.isError)return i("/not-found"),null;const f=y=>{const x=Op(y.nameShort,a.data);x!==void 0&&t(x)},h=u.isSuccess?u.data.filter(y=>y.id!==l):[];let g;return c.isSuccess&&a.isSuccess&&(g=n?w(cEt,{exerciseId:c.data.id,language:e}):w(pEt,{exercise:c.data,language:e,variations:h,setEditMode:r})),J(_t,{children:[c.isSuccess&&a.isSuccess&&w(Pp,{children:w(SEt,{exercise:c.data,languages:a.data,changeLanguage:f,language:e,setEditMode:r,editMode:n})}),w(Ma,{}),J(Pp,{maxWidth:"lg",children:[c.isLoading&&a.isLoading&&w(zl,{}),g]})]})};function Dfe(e){const[t]=We(),[n,r,o]=nc(e.fieldName),[i,a]=m.useState(""),s=u=>{o.setValue(n.value.filter((f,h)=>h!==u))},l=(u,f)=>{n.value[u]=f,o.setValue(n.value)},c=()=>{n.value.push(i),o.setValue(n.value),a("")};return J(_t,{children:[w(xe,{size:12,children:w(On,{fullWidth:!0,label:t("exercises.newNote"),sx:{mb:3},variant:"standard",value:i,onChange:u=>a(u.target.value),error:r.touched&&!!r.error,helperText:r.touched&&r.error?r.error:t("exercises.notesHelpText"),InputProps:{endAdornment:w(gi,{position:"end",children:w(An,{onClick:c,children:w(bi,{})})})}})}),n.value.map((u,f)=>w(On,{fullWidth:!0,value:u,onChange:h=>l(f,h.target.value),sx:{mt:2},variant:"standard",error:r.touched&&!!r.error,InputProps:{endAdornment:w(gi,{position:"end",children:w(An,{onClick:()=>s(f),children:w(l2,{})})})}},f))]})}const EEt=({onContinue:e,onBack:t})=>{const[n]=We(),[r,o]=Gv(),i=yfe(),a=qi({description:l4(),notes:hfe()});return w($a,{initialValues:{description:r.descriptionEn,notes:r.notesEn},validationSchema:a,onSubmit:async(s,{setFieldError:l})=>{let c=!1;const u=await i.mutateAsync({input:s.description,languageId:Pm});"success"in u?c=!0:(c=!1,l("description",u.check.message)),o(x1t(s.description)),o(w1t(s.notes)),c&&e()},children:w(ba,{children:J(Jt,{children:[w(c4,{fieldName:"description"}),w(Ma,{}),w(Dfe,{fieldName:"notes"}),w(xe,{container:!0,children:w(xe,{display:"flex",justifyContent:"end",size:12,children:w(mn,{sx:{mb:2},children:J("div",{children:[w(St,{onClick:t,sx:{mt:1,mr:1},children:n("goBack")}),w(St,{variant:"contained",type:"submit",disabled:i.isPending,sx:{mt:1,mr:1},children:n("continue")})]})})})})]})})})},TEt=({onContinue:e,onBack:t})=>{const[n]=We(),r=xf(),o=yfe(),[i,a]=Gv(),[s,l]=m.useState(i.languageId!==null),c=qi(s?{description:l4(),name:a4(),alternativeNames:s4(),notes:hfe(),language:ki().required()}:{});return w($a,{initialValues:{name:i.nameI18n,alternativeNames:i.alternativeNamesI18n,description:i.descriptionI18n,language:i.languageId===null?"":i.languageId,notes:i.notesI18n},validationSchema:c,onSubmit:async(u,{setFieldError:f})=>{let h=!0;if(u.description!==""){const g=await o.mutateAsync({input:u.description,languageId:u.language});"success"in g?h=!0:(h=!1,f("description",g.check.message))}a(C1t(u.name)),a(E1t(u.description)),a(P1t(u.alternativeNames)),a(k1t(u.language===""?null:u.language)),a(T1t(u.notes)),h&&e()},children:u=>J(ba,{children:[J(Jt,{spacing:2,children:[w(yE,{children:w(Yl,{checked:s,onClick:()=>l(!s),control:w(Wi,{}),label:n("exercises.translateExerciseNow")})}),s&&J(_t,{children:[r.isLoading?w(mn,{children:w(zl,{})}):J(Tv,{fullWidth:!0,children:[w(Pv,{id:"label-language",children:n("language")}),w(Fm,{labelId:"label-language",id:"language",value:u.getFieldProps("language").value,onChange:f=>{u.setFieldValue(u.getFieldProps("language").name,f.target.value)},label:n("language"),error:!!(u.touched.language&&u.errors.language),children:r.data.filter(f=>f.id!==Pm).map(f=>J(bn,{value:f.id,children:[f.nameShort," - ",f.nameLong]},f.id))})]}),w(i4,{fieldName:"name"}),w(o4,{fieldName:"alternativeNames"}),w(c4,{fieldName:"description"}),w(Ma,{}),w(Dfe,{fieldName:"notes"})]})]}),w(xe,{container:!0,children:w(xe,{display:"flex",justifyContent:"end",size:12,children:w(mn,{sx:{mb:2},children:J("div",{children:[w(St,{onClick:t,sx:{mt:1,mr:1},children:n("goBack")}),w(St,{variant:"contained",type:"submit",sx:{mt:1,mr:1},children:n("continue")})]})})})})]})})};function PEt(e){const[t]=We(),[n,r]=nc(e.fieldName);return w(On,{fullWidth:!0,id:e.fieldName,label:t("licenses.authors"),variant:"standard",error:r.touched&&!!r.error,helperText:r.touched&&r.error,...n})}function IEt(e){const[t]=We(),[n,r]=nc(e.fieldName);return w(On,{fullWidth:!0,id:e.fieldName,label:t("licenses.authorProfile"),variant:"standard",placeholder:"https://",error:r.touched&&!!r.error,helperText:r.touched&&r.error,...n})}function OEt(e){const[t]=We(),[n,r]=nc(e.fieldName);return w(On,{fullWidth:!0,id:e.fieldName,label:t("licenses.derivativeSourceUrl"),variant:"standard",placeholder:"https://",error:r.touched&&!!r.error,helperText:t("licenses.derivativeSourceUrlHelper")||r.touched&&r.error,...n})}function MEt(e){const[t]=We(),[n,r]=nc(e.fieldName);return w(On,{fullWidth:!0,id:e.fieldName,label:t("licenses.originalObjectUrl"),variant:"standard",placeholder:"https://",error:r.touched&&!!r.error,helperText:r.touched&&r.error,...n})}function AEt(e){const[t]=We(),[n,r]=nc(e.fieldName);return w(On,{fullWidth:!0,id:e.fieldName,label:t("licenses.originalTitle"),variant:"standard",error:r.touched&&!!r.error,helperText:r.touched&&r.error,...n})}function DEt(e){const[t]=We(),[n,r]=m.useState(ip.PHOTO),[o,i,a]=nc(e.fieldName);return J(SPe,{value:n,exclusive:!0,fullWidth:!0,onChange:(l,c)=>{r(c),a.setValue(c)},"aria-label":"text alignment",children:[w(qC,{value:ip.PHOTO,children:J(Jt,{justifyContent:"center",alignItems:"center",children:[w(wit,{}),w(wt,{variant:"caption",children:t("exercises.imageStylePhoto")})]})}),w(qC,{value:ip.THREE_D,children:J(Jt,{justifyContent:"center",alignItems:"center",children:[w(mit,{}),w(wt,{variant:"caption",children:t("exercises.imageStyle3D")})]})}),w(qC,{value:ip.LINE_ART,children:J(Jt,{justifyContent:"center",alignItems:"center",children:[w(git,{}),w(wt,{variant:"caption",children:t("exercises.imageStyleLine")})]})}),w(qC,{value:ip.LOW_POLY,children:J(Jt,{justifyContent:"center",alignItems:"center",children:[w(yit,{}),w(wt,{variant:"caption",children:t("exercises.imageStyleLowPoly")})]})}),w(qC,{value:ip.OTHER,children:J(Jt,{justifyContent:"center",alignItems:"center",children:[w(vit,{}),w(wt,{variant:"caption",children:t("exercises.imageStyleOther")})]})})]})}const REt=({onContinue:e,onBack:t})=>{const[n]=We(),r=yl(),[o,i]=Gv(),[a,s]=m.useState(o.images),[l,c]=m.useState(void 0),[u,f]=qe.useState(!1),h=()=>f(!1);m.useEffect(()=>{i(N1t(a))},[i,a]);const g=E=>{if(!E.target.files?.length)return;const[I]=E.target.files,M=URL.createObjectURL(I);f(!0),c({url:M,file:I,author:"",authorUrl:"",title:"",derivativeSourceUrl:"",objectUrl:"",style:ip.PHOTO.toString()})},y=E=>{s(a.concat({url:l?.url,file:l?.file,author:E.author,authorUrl:E.authorUrl,title:E.title,derivativeSourceUrl:E.derivativeSourceUrl,objectUrl:E.objectUrl,style:E.imageStyle.toString()})),h()},x=E=>{const I=a.filter(M=>M.url!==E);s(I)},S=()=>{e()};return J("div",{children:[w(lw,{open:u,onClose:h,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:J(mn,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:600,bgcolor:"background.paper",boxShadow:24,p:4},children:[w(wt,{id:"modal-modal-title",variant:"h6",component:"h2",children:n("exercises.imageDetails")}),J(xe,{container:!0,spacing:2,children:[w(xe,{size:4,children:l&&w("img",{style:{width:"100%"},src:l.url,alt:"",loading:"lazy"})}),w(xe,{size:8,children:w($a,{initialValues:{title:"",objectUrl:"",author:r.isSuccess?r.data.username:"",authorUrl:"",derivativeSourceUrl:"",imageStyle:ip.PHOTO},onSubmit:E=>{console.log(E),y(E)},children:E=>J(ba,{children:[J(Jt,{spacing:2,children:[w(AEt,{fieldName:"title"}),w(MEt,{fieldName:"objectUrl"}),w(PEt,{fieldName:"author"}),w(IEt,{fieldName:"authorUrl"}),w(OEt,{fieldName:"derivativeSourceUrl"}),w(DEt,{fieldName:"imageStyle"}),J(pa,{icon:w(Lle,{fontSize:"inherit"}),severity:"info",children:["By submitting this image, you agree to release it under the ",w("a",{href:"https://creativecommons.org/licenses/by-sa/4.0/",target:"_blank",rel:"noreferrer",children:"CC BY-SA 4.0"})," license. The image must be either your own work or the author must have released in under a license compatible with CC BY-SA 4.0."]})]}),w(Jt,{direction:"row",justifyContent:"end",sx:{mt:2},children:w(St,{color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:n("add")})})]})})})]})]})}),w(wt,{children:n("exercises.compatibleImagesCC")}),J(Jt,{direction:"row",justifyContent:"center",children:[J("div",{children:[w("label",{htmlFor:"camera-input",children:w(rit,{fontSize:"large",sx:{m:2}})}),w("input",{style:{display:"none"},id:"camera-input",type:"file",accept:"image/*",capture:"environment",onChange:g})]}),J("div",{children:[w("label",{htmlFor:"image-input",children:w(cit,{fontSize:"large",sx:{m:2}})}),w("input",{type:"file",accept:"image/*",name:"image-file",id:"image-input",style:{display:"none"},onChange:g})]})]}),w(EJ,{cols:3,style:{maxHeight:"400px"},children:a.map(E=>J(TJ,{children:[w("img",{style:{maxHeight:"400px",maxWidth:"400px"},src:E.url,alt:"",loading:"lazy"}),w(xCe,{title:E.title,subtitle:E.author,actionIcon:w(An,{onClick:()=>x(E.url),sx:{color:"white"},children:w(dit,{})})})]},E.url))}),w(wt,{children:n("forms.supportedImageFormats")}),w(xe,{container:!0,children:w(xe,{display:"flex",justifyContent:"end",size:12,children:w(mn,{sx:{mb:2},children:J(_t,{children:[w(St,{onClick:t,sx:{mt:1,mr:1},children:n("goBack")}),w(St,{variant:"contained",onClick:S,sx:{mt:1,mr:1},children:n("continue")})]})})})})]})},kEt=({onBack:e})=>{const[t,n]=We(),[r]=Gv(),o=Yp(),i=u2(),a=xf(),s=Nw(),l=d2(),c=yl(),u=Rit(),f=async()=>{const g=await u.mutateAsync({exercise:{categoryId:r.category,equipmentIds:r.equipment,muscleIds:r.muscles,secondaryMuscleIds:r.musclesSecondary},author:c.data.username,variations:r.variationId,variationsConnectTo:r.newVariationExerciseId,translations:[{language:Pm,name:r.nameEn,description:r.descriptionEn,aliases:[...r.alternativeNamesEn.map(y=>({alias:y}))],comments:[...r.notesEn.map(y=>({comment:y}))]},...r.languageId!==null?[{language:r.languageId,name:r.nameI18n,description:r.descriptionI18n,aliases:[...r.alternativeNamesI18n.map(y=>({alias:y}))],comments:[...r.notesI18n.map(y=>({comment:y}))]}]:[]]});for(const y of r.images)await HZ({exerciseId:g,image:y.file,imageData:y})},h=r.variationId!==null?`Using variation ID ${r.variationId}`:r.newVariationExerciseId!==null?`Connecting to exercise ${r.newVariationExerciseId}`:"";return l.isLoading||a.isLoading||s.isLoading||i.isLoading?w(lo,{}):J(_t,{children:[w(wt,{variant:"h6",children:t("exercises.step1HeaderBasics")}),w(lf,{children:w(af,{children:J(sf,{children:[J(Pn,{children:[w(Be,{children:t("name")}),w(Be,{children:r.nameEn})]}),J(Pn,{children:[w(Be,{children:t("exercises.alternativeNames")}),w(Be,{children:r.alternativeNamesEn.join(", ")})]}),J(Pn,{children:[w(Be,{children:t("description")}),w(Be,{children:r.descriptionEn})]}),J(Pn,{children:[w(Be,{children:t("exercises.notes")}),w(Be,{children:r.notesEn.map(g=>J(_t,{children:[g,w("br",{})]}))})]}),J(Pn,{children:[w(Be,{children:t("category")}),w(Be,{children:i.data.find(g=>g.id===r.category).translatedName})]}),J(Pn,{children:[w(Be,{children:t("exercises.equipment")}),w(Be,{children:r.equipment.map(g=>l.data.find(y=>y.id===g).translatedName).join(", ")})]}),J(Pn,{children:[w(Be,{children:t("exercises.muscles")}),w(Be,{children:r.muscles.map(g=>s.data.find(y=>y.id===g).getName()).join(", ")})]}),J(Pn,{children:[w(Be,{children:t("exercises.secondaryMuscles")}),w(Be,{children:r.musclesSecondary.map(g=>s.data.find(y=>y.id===g).getName()).join(", ")})]}),J(Pn,{children:[w(Be,{children:t("exercises.variations")}),w(Be,{children:h})]})]})})}),r.images.length>0&&w(EJ,{cols:3,style:{maxHeight:"200px"},children:r.images.map(g=>w(TJ,{children:w("img",{style:{maxHeight:"200px",maxWidth:"200px"},src:g.url,alt:"",loading:"lazy"})},g.url))}),r.languageId!==null&&J(_t,{children:[w(wt,{variant:"h6",sx:{mt:3},children:a.data.find(g=>g.id===r.languageId).nameLong}),w(lf,{children:w(af,{children:J(sf,{children:[J(Pn,{children:[w(Be,{children:t("name")}),w(Be,{children:r.nameI18n})]}),J(Pn,{children:[w(Be,{children:t("exercises.alternativeNames")}),w(Be,{children:r.alternativeNamesI18n.join(", ")})]}),J(Pn,{children:[w(Be,{children:t("description")}),w(Be,{children:r.descriptionI18n})]}),J(Pn,{children:[w(Be,{children:t("exercises.notes")}),w(Be,{children:r.notesI18n.map(g=>J(_t,{children:[g,w("br",{})]}))})]})]})})})]}),J(mn,{sx:{mt:2},children:[u.isIdle&&w(pa,{severity:"info",children:t("exercises.checkInformationBeforeSubmitting")}),u.isSuccess&&J(pa,{severity:"success",children:[w(Cm,{children:t("success")}),t("exercises.cacheWarning")]}),w(n4,{mutationQuery:u})]}),w(xe,{container:!0,children:w(xe,{display:"flex",justifyContent:"end",size:12,children:w(mn,{sx:{mb:2},children:J("div",{children:[!u.isSuccess&&w(St,{onClick:e,sx:{mt:1,mr:1},children:t("goBack")}),!u.isSuccess&&w(St,{variant:"contained",disabled:u.isError||u.isPending,onClick:f,sx:{mt:1,mr:1},color:"info",children:t("exercises.submitExercise")}),u.isSuccess&&J(St,{variant:"contained",onClick:()=>o(Cn(hn.EXERCISE_DETAIL,n.language,{id:u.data})),sx:{mt:1,mr:1},color:"success",children:[t("seeDetails"),w(bit,{})]})]})})})})]})},NEt=()=>{const[e]=We(),[t,n]=qe.useState(0),r=()=>{n(i=>i+1)},o=()=>{n(i=>i-1)};return w(L1t,{children:J(Pp,{maxWidth:"md",children:[w(Jt,{direction:"row",children:w(wt,{gutterBottom:!0,variant:"h3",component:"div",children:e("exercises.contributeExercise")})}),w(mn,{children:J(rTe,{activeStep:t,orientation:"vertical",children:[J(T0,{children:[w(xy,{children:e("exercises.step1HeaderBasics")}),w(P0,{children:w($1t,{onContinue:r,onBack:o})})]},1),J(T0,{children:[w(xy,{children:e("exercises.variations")}),w(P0,{children:w(j1t,{onContinue:r,onBack:o})})]},2),J(T0,{children:[w(xy,{children:e("description")}),w(P0,{children:w(EEt,{onContinue:r,onBack:o})})]},3),J(T0,{children:[w(xy,{children:e("translation")}),w(P0,{children:w(TEt,{onContinue:r,onBack:o})})]},4),J(T0,{children:[w(xy,{children:e("images")}),w(P0,{children:w(REt,{onContinue:r,onBack:o})})]},5),J(T0,{children:[w(xy,{children:e("overview")}),w(P0,{children:w(kEt,{onBack:o})})]},6)]})})]})})},_Et=()=>{const[e]=We(),t=u4();return J(Pp,{maxWidth:"md",children:[w(wt,{variant:"h3",children:e("exercises.notEnoughRightsHeader")}),J(mn,{marginTop:4,padding:4,sx:{width:"100%",backgroundColor:"#ebebeb",textAlign:"center"},children:[w(wt,{mb:2,children:e("exercises.notEnoughRights",{days:zMe})}),!t.anonymous&&!t.emailVerified&&w(St,{variant:"contained",href:"/user/preferences",endIcon:w(eit,{}),children:e("preferences")})]})]})},LEt=()=>{const e=u4();return w(_t,{children:e.canContribute?w(NEt,{}):w(_Et,{})})},$Et=()=>w("div",{children:"Add Weight Page"}),FEt=({day:e,currentMonth:t,currentDate:n,selectedDay:r,onClick:o})=>{const i=Po(),a=Em(i.breakpoints.down("sm")),s=Em(i.breakpoints.down("md")),l=al(e.date,r.date),c=al(e.date,n),u=e.date.getTime()<=n.getTime(),f=e.date.getDay()===6||e.date.getDay()===0,h=()=>l||c?"white":u?f?"#E53945":"black":"gray",g=()=>a?35:s?40:50,y=()=>a?8:s?9:10,x=()=>e.measurements.length>0||e.weightEntry!==void 0||e.workoutSession!==void 0,S=()=>{u&&o(e)},C=g(),E=y();return J("div",{style:{position:"relative",width:`${C}px`,height:`${C+E/2}px`,display:"flex",flexDirection:"column",alignItems:"center"},children:[w("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:`${C}px`,height:`${C}px`,fontSize:a?"0.8rem":s?"0.9rem":"1rem",color:l||c?"white":h(),backgroundColor:l?"#E53945":c?"#FEC107":"transparent",borderRadius:"50%",fontWeight:"bold",cursor:u?"pointer":"default",opacity:e.date.getMonth()!==t?.25:1},"data-testid":`day-${Jr(e.date)}`,onClick:S,children:e.date.getDate()}),x()&&w("div",{style:{width:`${E}px`,height:`${E}px`,backgroundColor:"black",borderRadius:"50%",position:"absolute",bottom:0,left:"50%",transform:"translateX(-50%)",zIndex:2}})]})},jEt=({days:e,currentMonth:t,currentDate:n,selectedDay:r,onDayClick:o})=>{const{i18n:i}=We(),a=Array.from({length:7},(s,l)=>new Date(1970,0,l+5).toLocaleString(i.language,{weekday:"short"}));return J(xe,{container:!0,spacing:1,rowSpacing:2,children:[a.map((s,l)=>w(xe,{size:12/7,children:w(wt,{variant:"body1",sx:{fontWeight:"bold",textAlign:"center"},children:s})},`weekday-${l}`)),e.map((s,l)=>w(xe,{size:12/7,sx:{display:"flex",justifyContent:"center"},children:w(FEt,{day:s,currentMonth:t,currentDate:n,selectedDay:r,onClick:o})},`day-${l}`))]})},BEt=({currentMonth:e,currentYear:t,onPrevMonth:n,onNextMonth:r})=>{const{i18n:o}=We(),i=Array.from({length:12},(a,s)=>new Date(2024,s,1).toLocaleString(o.language,{month:"long"}));return J("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",paddingBottom:"3%"},children:[w(St,{variant:"outlined",onClick:n,children:"<"}),J(wt,{variant:"h5",children:[i[e]," ",t]}),w(St,{variant:"outlined",onClick:r,children:">"})]})};class zEt{constructor(t,n,r,o){this.name=t,this.unit=n,this.value=r,this.date=o}}const VEt=({selectedDay:e})=>{const[t]=We(),[n,r]=qe.useState(!1),[o,i]=qe.useState(!1),[a,s]=qe.useState(!1);return J(oi,{sx:{width:{xs:"auto",md:"45%"},height:{xs:"60%",md:"100%"},m:{xs:0,sm:1,md:2},p:{xs:1,sm:1.5,md:2}},children:[w(rd,{title:J(wt,{variant:"h5",component:"div",sx:{fontWeight:"bold"},children:[t("entries")," - ",e.date.toLocaleDateString()]})}),w(ss,{sx:{flex:1,height:"100%",overflow:"auto",display:"flex",flexDirection:"column",gap:2},children:J(ca,{children:[e.weightEntry&&w(vi,{children:w(ko,{primary:t("weight"),secondary:e.weightEntry.weight.toFixed(1),sx:{pl:2}})}),e.measurements.length===1&&w(vi,{children:w(ko,{primary:t("measurements.measurements"),secondary:`${e.measurements[0].name}: ${e.measurements[0].value} ${e.measurements[0].unit}`,sx:{pl:2}})}),e.measurements.length>1&&J(_t,{children:[w(vi,{children:J(Gu,{onClick:()=>r(!n),selected:n,children:[w(ko,{primary:t("measurements.measurements")}),n?w(H1,{}):w(hp,{})]})}),w(as,{in:n,timeout:"auto",unmountOnExit:!0,children:w(ca,{sx:{pl:4,pt:0},children:e.measurements.map((l,c)=>w(vi,{dense:!0,children:w(ko,{primary:l.name,secondary:`${l.value} ${l.unit}`})},c))})})]}),e.workoutSession&&J(_t,{children:[w(vi,{children:J(Gu,{onClick:()=>i(!o),selected:o,children:[w(ko,{primary:t("routines.workoutSession"),secondary:e.workoutSession.textRepresentation,sx:{"& .MuiListItemText-secondary":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}}),o?w(H1,{}):w(hp,{})]})}),w(as,{in:o,timeout:"auto",unmountOnExit:!0,children:w(ca,{sx:{pl:4,pt:0},children:e.workoutSession.logs.map((l,c)=>w(vi,{dense:!0,children:w(ko,{primary:l.exerciseObj?.getTranslation().name,secondary:`${l.repetitions} × ${l.weight} `})},c))})})]}),e.nutritionLogs.length>0&&J(_t,{children:[w(vi,{children:J(Gu,{onClick:()=>s(!a),selected:a,children:[w(ko,{primary:t("nutrition.nutritionalDiary")}),a?w(H1,{}):w(hp,{})]})}),w(as,{in:a,timeout:"auto",unmountOnExit:!0,children:w(ca,{sx:{pl:4,pt:0},children:e.nutritionLogs.map((l,c)=>w(vi,{dense:!0,children:w(ko,{primary:l.ingredient?.name,secondary:`${l.amount} ${t("nutrition.gramShort")}`})},c))})})]})]})})]})},HEt=()=>{const[e]=We(),t=new Date,[n,r]=m.useState(t.getMonth()),[o,i]=m.useState(t.getFullYear()),a=new Date(o,n,1),s=new Date(o,n+1,0),l=mP(),c=Yot({filtersetQuerySessions:{date__gte:Jr(a),date__lte:Jr(s)},filtersetQueryLogs:{date__gte:Jr(a),date__lte:Jr(s)}}),u=pce({filtersetQueryEntries:{date__gte:Jr(a),date__lte:Jr(s)}}),f=G2e({filtersetQuery:{datetime__gte:Jr(a),datetime__lte:Jr(s)}}),h=l.isLoading||c.isLoading||u.isLoading||f.isLoading,g=l.isSuccess&&c.isSuccess&&u.isSuccess&&f.isSuccess,x=u.data?.flatMap(A=>A.entries.map(F=>new zEt(A.name,A.unit,F.value,F.date)))??[],S=(A,F)=>{const z=new Date(A,F,1),H=[];let G=new Date(A,F,1).getDay();G=G===0?6:G-1;for(let X=0;X<G;X++)H.push({date:new Date(A,F,-G+X+1),weightEntry:void 0,measurements:[],nutritionLogs:[],workoutSession:void 0});for(;z.getMonth()===F;)H.push({date:new Date(z),weightEntry:l.data?.find(X=>al(X.date,z)),measurements:x.filter(X=>al(X.date,z))||[],workoutSession:c.data?.find(X=>al(X.date,z))||void 0,nutritionLogs:f.data?.filter(X=>al(X.datetime,z))||[]}),z.setDate(z.getDate()+1);G=new Date(A,F+1,0).getDay();const Y=G===0?0:7-G;for(let X=1;X<=Y;X++)H.push({date:new Date(A,F+1,X),weightEntry:void 0,workoutSession:void 0,measurements:[],nutritionLogs:[]});return H},C={date:t,weightEntry:void 0,workoutSession:void 0,measurements:[],nutritionLogs:[]},E=m.useMemo(()=>S(o,n),[o,n,l.data,c.data,u.data,f.data]),[I,M]=m.useState(E.find(A=>al(A.date,t))||C),O=Po(),D=Em(O.breakpoints.down("sm"));m.useEffect(()=>{if(g){const A=E.find(F=>al(F.date,t));A&&M(A)}},[g]),m.useEffect(()=>{r(I.date.getMonth()),i(I.date.getFullYear())},[I]);const N=A=>{M(A)},$=()=>{n===0?(r(11),i(o-1)):r(n-1)},L=()=>{(n<t.getMonth()||o<t.getFullYear())&&(n===11?(r(0),i(o+1)):r(n+1))};return J(mn,{sx:{display:"flex",gap:2,flexDirection:{xs:"column",md:"row"},height:{xs:"auto",md:"calc(100vh - 130px)"},width:"100%"},children:[J(oi,{sx:{width:{xs:"auto",md:"65%"},height:{xs:"auto",md:"100%"},m:{xs:0,sm:1,md:2},p:{xs:1,sm:1.5,md:2},display:"flex",flexDirection:"column"},children:[w(rd,{sx:{"& .MuiCardHeader-content":{width:"100%"}},title:w("div",{style:{display:"flex",flexDirection:"column",width:"100%"},children:J("div",{style:{display:"flex",alignItems:"center",marginBottom:"16px"},children:[w(nit,{style:{width:D?"28px":"32px",height:D?"28px":"32px",marginRight:"12px"}}),w("span",{style:{fontSize:D?"1.5rem":"1.8rem",fontWeight:"bold"},children:e("calendar")})]})})}),J(ss,{sx:{overflow:"auto",flex:1,"&:last-child":{paddingBottom:2}},children:[w(BEt,{currentMonth:n,currentYear:o,onPrevMonth:$,onNextMonth:L}),w(jEt,{days:E,currentMonth:n,currentDate:t,selectedDay:I,onDayClick:N})]})]}),h&&w(oi,{sx:{width:{xs:"auto",md:"65%"},height:{xs:"60%",md:"100%"},m:{xs:0,sm:1,md:2},p:{xs:1,sm:1.5,md:2}},children:w(lo,{})}),g&&w(VEt,{selectedDay:I})]})},UEt=()=>w("div",{children:w(HEt,{})}),GEt=()=>w("div",{children:"Calories Calculator Page"}),WEt=()=>w("div",{children:"Equipments Page"}),qEt=()=>w("div",{children:"Ingredients Page"}),KEt=()=>w("div",{children:"Login Page"}),YEt=()=>w("div",{children:"Preferences Page"}),QEt=()=>w("div",{children:"RestApi Page"}),XEt=({weight:e})=>{const t=lst(),[n]=We(),[r,o]=qe.useState(null),[i,a]=qe.useState(!1),s=!!r,l=y=>{o(y.currentTarget)},c=()=>{u(),h()},u=()=>{o(null)},f=()=>{t.mutate(e.id),o(null)},h=()=>a(!0),g=()=>a(!1);return J("div",{children:[w(St,{onClick:l,children:w(Jot,{})}),J(ec,{anchorEl:r,open:s,onClose:u,MenuListProps:{"aria-labelledby":"basic-button"},children:[w(bn,{onClick:c,children:n("edit")}),w(bn,{onClick:f,children:n("delete")})]}),w(ga,{title:n("edit"),isOpen:i,closeFn:g,children:w($w,{weightEntry:e,closeFn:g})})]})},JEt=()=>{const[e]=We(),[t,n]=qe.useState(!1),r=()=>n(!0),o=()=>n(!1);return J("div",{children:[w(jp,{color:"primary","aria-label":"add",onClick:r,sx:{position:"fixed",bottom:"5rem",right:i=>`max(${i.spacing(2)}, calc((100vw - ${i.breakpoints.values.lg}px) / 2 + ${i.spacing(2)}))`,zIndex:9},children:w(bi,{})}),w(ga,{title:e("add"),isOpen:t,closeFn:o,children:w($w,{closeFn:o})})]})},ZEt=e=>e.map((t,n)=>n===0?{entry:t,change:0,days:Math.abs(t.date.getTime()-t.date.getTime())/(1e3*60*60*24)}:{entry:t,change:e[n].weight-e[n-1].weight,days:Math.abs(t.date.getTime()-e[n-1].date.getTime())/(1e3*60*60*24)}),eTt="WeightTable",Rfe={table:`${eTt}-table`},tTt=ue("div")(({theme:e})=>({[`&.${Rfe.table}`]:{"& .MuiPaper-root":{border:"1px solid #bababa"}}})),nTt=({weights:e})=>{const t=[10,50,100],{t:n}=We(),r=ZEt(e),[o,i]=m.useState(t[0]),[a,s]=m.useState(0),l=(u,f)=>{s(f)},c=u=>{i(parseInt(u.target.value,10)),s(0)};return J(tTt,{className:Rfe.table,children:[J(lf,{children:[J(af,{sx:{minWidth:650},"aria-label":"simple table",children:[w(jm,{children:J(Pn,{children:[w(Be,{align:"center",children:n("date")}),w(Be,{align:"center",children:n("weight")}),w(Be,{align:"center",children:n("difference")}),w(Be,{align:"center",children:n("days")}),w(Be,{align:"center"})]})}),w(sf,{children:r.slice(a*o,a*o+o).map(u=>J(Pn,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[w(Be,{component:"th",scope:"row",align:"center",children:xZ(u.entry.date)}),w(Be,{align:"center",children:u.entry.weight}),w(Be,{align:"center",children:+u.change.toFixed(2)}),w(Be,{align:"center",children:u.days.toFixed(1)}),w(Be,{align:"center",children:w(XEt,{weight:u.entry})})]},u.entry.date.toISOString()))})]}),w(BJ,{rowsPerPageOptions:t,component:"div",count:r.length,rowsPerPage:o,page:a,onPageChange:l,onRowsPerPageChange:c})]}),w(JEt,{})]})},rTt=()=>{const[e]=We(),[t,n]=m.useState(!1),r=()=>n(!0),o=()=>n(!1);return J("div",{children:[w(jp,{color:"secondary","aria-label":"add",onClick:r,sx:{position:"fixed",bottom:"5rem",right:i=>`max(${i.spacing(2)}, calc((100vw - ${i.breakpoints.values.lg}px) / 2 + ${i.spacing(2)}))`,zIndex:9},children:w(bi,{})}),w(ga,{title:e("add"),isOpen:t,closeFn:o,children:w($w,{closeFn:o})})]})},oTt=({currentFilter:e,onFilterChange:t})=>{const[n]=We(),r=Po(),o=i=>{e!==i&&t(i)};return J(zz,{variant:"outlined",sx:{mb:2},children:[w(St,{onClick:()=>o(""),color:e===""?"primary":"inherit",variant:e===""?"contained":"outlined",sx:{fontFamily:r.typography.fontFamily},children:n("all")}),w(St,{onClick:()=>o("lastYear"),color:e==="lastYear"?"primary":"inherit",variant:e==="lastYear"?"contained":"outlined",sx:{fontFamily:r.typography.fontFamily},children:n("lastYear")}),w(St,{onClick:()=>o("lastHalfYear"),color:e==="lastHalfYear"?"primary":"inherit",variant:e==="lastHalfYear"?"contained":"outlined",sx:{fontFamily:r.typography.fontFamily},children:n("lastHalfYear")}),w(St,{onClick:()=>o("lastMonth"),color:e==="lastMonth"?"primary":"inherit",variant:e==="lastMonth"?"contained":"outlined",sx:{fontFamily:r.typography.fontFamily},children:n("lastMonth")}),w(St,{onClick:()=>o("lastWeek"),color:e==="lastWeek"?"primary":"inherit",variant:e==="lastWeek"?"contained":"outlined",sx:{fontFamily:r.typography.fontFamily},children:n("lastWeek")})]})},iTt=()=>{const[e]=We(),[t,n]=m.useState("lastYear"),r=mP(t),o=i=>{n(i)};return r.isLoading?w(lo,{}):w(rc,{title:e("weight"),mainContent:J(Jt,{spacing:2,children:[w(oTt,{currentFilter:t,onFilterChange:o}),r.data.length===0&&w(Iv,{}),r.data.length!==0&&J(_t,{children:[w(ace,{weights:r.data}),w(mn,{sx:{mt:4}}),w(nTt,{weights:r.data})]})]}),fab:w(rTt,{})})},aTt=()=>{const{i18n:e}=We(),[t,n]=qe.useState(null);return J(_t,{children:[w(St,{color:"inherit",onClick:r=>n(r.currentTarget),children:"Weight"}),w(ec,{anchorEl:t,open:!!t,onClose:()=>n(null),children:w(bn,{component:Ri,to:Cn(hn.WEIGHT_OVERVIEW,e.language),children:"Weight overview"})})]})},sTt=()=>{const{i18n:e}=We(),[t,n]=qe.useState(null);return J(_t,{children:[w(St,{color:"inherit",onClick:r=>n(r.currentTarget),children:"Measurements"}),w(ec,{anchorEl:t,open:!!t,onClose:()=>n(null),children:w(bn,{component:Ri,to:Cn(hn.MEASUREMENT_OVERVIEW,e.language),children:"Overview"})})]})},lTt=()=>{const{i18n:e}=We(),[t,n]=qe.useState(null);return J(_t,{children:[w(St,{color:"inherit",onClick:r=>n(r.currentTarget),children:"Nutrition"}),w(ec,{anchorEl:t,open:!!t,onClose:()=>n(null),children:w(bn,{component:Ri,to:Cn(hn.NUTRITION_OVERVIEW,e.language),children:"Overview"})})]})},cTt=()=>{const{i18n:e}=We(),[t,n]=qe.useState(null);return J(_t,{children:[w(St,{color:"inherit",onClick:r=>n(r.currentTarget),children:"Routines"}),J(ec,{anchorEl:t,open:!!t,onClose:()=>n(null),children:[w(bn,{component:Ri,to:Cn(hn.ROUTINE_OVERVIEW,e.language),children:"Routine overview"}),w(bn,{component:Ri,to:Cn(hn.PRIVATE_TEMPLATE_OVERVIEW,e.language),children:"Private template overview"}),w(bn,{component:Ri,to:Cn(hn.PUBLIC_TEMPLATE_OVERVIEW,e.language),children:"Public template overview"}),w(bn,{component:Ri,to:Cn(hn.EXERCISE_OVERVIEW,e.language),children:"Exercise overview"}),w(bn,{component:Ri,to:Cn(hn.EXERCISE_CONTRIBUTE,e.language),children:"Contribute exercise"}),w(bn,{component:Ri,to:Cn(hn.CALENDAR,e.language),children:"Calendar"})]})]})},uTt=()=>w(xbe,{position:"static",children:J($J,{children:[w(wt,{variant:"h6",component:"div",mr:3,children:"wger"}),w(cTt,{}),w(aTt,{}),w(sTt,{}),w(lTt,{})]})}),dTt=()=>w(iTt,{}),uF=()=>w(CEt,{}),d4=()=>J(Pat,{children:[J(cn,{path:"/:lang",children:[J(cn,{path:"routine",children:[w(cn,{index:!0,element:w(AQ,{})}),w(cn,{path:"overview",element:w(AQ,{})}),w(cn,{path:"calendar",element:w(UEt,{})}),w(cn,{path:"add",element:w(g0t,{})}),J(cn,{path:":routineId",children:[w(cn,{path:"day/:dayId",children:w(cn,{path:"add-logs",element:w(YCt,{})})}),J(cn,{path:"edit",children:[w(cn,{index:!0,element:w(WCt,{})}),w(cn,{path:"progression/:slotId",element:w(XCt,{})})]}),w(cn,{path:"view",element:w(v0t,{})}),w(cn,{path:"table",element:w(x0t,{})}),w(cn,{path:"logs",element:w(r1t,{})}),w(cn,{path:"statistics",element:w(s1t,{})})]}),J(cn,{path:"templates",children:[w(cn,{path:":routineId",children:w(cn,{path:"view",element:w(JCt,{})})}),J(cn,{path:"overview",children:[w(cn,{path:"private",element:w(d1t,{})}),w(cn,{path:"public",element:w(f1t,{})})]})]})]}),J(cn,{path:"measurement",children:[w(cn,{index:!0,element:w(JY,{})}),w(cn,{path:"overview",element:w(JY,{})}),w(cn,{path:"category/:categoryId",element:w(Gbt,{})})]}),J(cn,{path:"exercise",children:[w(cn,{index:!0,element:w(LK,{})}),w(cn,{path:"overview",element:w(LK,{})}),w(cn,{path:":exerciseId",element:w(uF,{}),children:w(cn,{path:"view",element:w(uF,{}),children:w(cn,{path:":slug",element:w(uF,{})})})}),w(cn,{path:"contribute",element:w(LEt,{})})]}),J(cn,{path:"weight",children:[w(cn,{path:"overview",element:w(dTt,{})}),w(cn,{path:"add",element:w($Et,{})})]}),J(cn,{path:"nutrition",children:[w(cn,{path:"overview",element:w(l0t,{})}),J(cn,{path:":planId",children:[w(cn,{path:"view",element:w(s0t,{})}),w(cn,{path:":date",element:w(ZY,{})}),w(cn,{path:"diary",element:w(ZY,{})})]}),J(cn,{path:"calculator",children:[w(cn,{path:"bmi",element:w(Kbt,{})}),w(cn,{path:"calories",element:w(GEt,{})})]}),w(cn,{path:"ingredient",children:w(cn,{path:"overview",element:w(qEt,{})})})]}),J(cn,{path:"software",children:[w(cn,{path:"about-us",element:w(p1t,{})}),w(cn,{path:"api",element:w(QEt,{})}),w(cn,{path:"equipment",element:w(WEt,{})})]}),w(cn,{path:"login",element:w(KEt,{})}),w(cn,{path:"user",children:w(cn,{path:"preferences",element:w(YEt,{})})})]}),w(cn,{path:"/",element:w(wst,{})}),w(cn,{path:"*",element:w("main",{style:{padding:"1rem"},children:w("p",{children:"404, Page NOT FOUND"})})})]}),fTt="_notification_bbb61_1",BQ={notification:fTt},pTt=()=>{const[e,t]=v1t(),n=()=>{t(kQ({notify:!1,message:"",severity:void 0,title:"",type:void 0}))},r=()=>{t(kQ({notify:!1,message:"",severity:void 0,title:"",type:void 0,undo:!0}))};return e.notification.notify?e.notification.type==="delete"?J(pa,{className:BQ.notification,severity:e.notification.severity,action:w(St,{color:"inherit",size:"small",onClick:r,children:"UNDO"}),variant:"filled",children:[w(Cm,{children:e.notification.title}),w("strong",{children:e.notification.message})]}):J(pa,{className:BQ.notification,severity:e.notification.severity,onClose:()=>n(),variant:"filled",children:[w(Cm,{children:e.notification.title}),w("strong",{children:e.notification.message})]}):null};function hTt(){return J(xe,{container:!0,children:[w(xe,{size:12,children:w(uTt,{})}),w(xe,{size:12,children:w(pTt,{})}),w(xe,{size:12,children:w(d4,{})})]})}const Qw=new Sye({defaultOptions:{queries:{retry:3,staleTime:1e3*60*5,refetchOnMount:!0,refetchOnWindowFocus:!0,refetchOnReconnect:"always"}}}),mTt=e=>{const t=document.getElementById(e);if(t===null)return;const n=t.attachShadow({mode:"open"}),r=document.createElement("div"),o=document.createElement("style"),i=document.getElementById("react-css");if(i){const l=document.createElement("link");l.setAttribute("rel","stylesheet"),l.setAttribute("href",i.href),n.appendChild(i)}n.appendChild(r),n.appendChild(o);const a=tX({key:"css",prepend:!0,container:o});Hv.createRoot(r).render(w(Gpe,{value:a,children:w(m.Suspense,{fallback:w(zl,{}),children:w(a5,{children:w(Cv,{theme:Ubt(r),children:w(aw,{client:Qw,children:w(d4,{})})})})})}))},zQ=document.getElementById("root");zQ&&Hv.createRoot(zQ).render(w(qe.StrictMode,{children:w(m.Suspense,{fallback:w(zl,{}),children:w(a5,{children:w(Cv,{theme:Uv,children:J(aw,{client:Qw,children:[w(hTt,{}),w(zye,{})]})})})})}));const VQ=document.getElementById("react-page-no-shadow-dom");VQ&&Hv.createRoot(VQ).render(w(m.Suspense,{fallback:w(zl,{}),children:w(a5,{children:w(Cv,{theme:Uv,children:w(aw,{client:Qw,children:w(d4,{})})})})}));mTt("react-page");const HQ=document.getElementById("react-weight-dashboard");HQ&&Hv.createRoot(HQ).render(w(m.Suspense,{fallback:w(zl,{}),children:w(Cv,{theme:Uv,children:w(aw,{client:Qw,children:w(sce,{})})})}));const UQ=document.getElementById("react-nutrition-dashboard");UQ&&Hv.createRoot(UQ).render(w(m.Suspense,{fallback:w(zl,{}),children:w(Cv,{theme:Uv,children:w(aw,{client:Qw,children:w(Tle,{})})})}));const GQ=document.getElementById("react-routine-dashboard");GQ&&Hv.createRoot(GQ).render(w(m.Suspense,{fallback:w(zl,{}),children:w(Cv,{theme:Uv,children:w(aw,{client:Qw,children:w(oce,{})})})}));const WQ=document.getElementById("react-ingredient-search");WQ&&Hv.createRoot(WQ).render(w(m.Suspense,{fallback:w(zl,{}),children:w(Cv,{theme:Uv,children:w(gst,{})})}));export{dm as c,cs as g};
-//# sourceMappingURL=main.js.map
diff --git a/wger/core/static/react/main.js.map b/wger/core/static/react/main.js.map
deleted file mode 100644
index 92972df02..000000000
--- a/wger/core/static/react/main.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"mappings":";;;;;;;;8CAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU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,EACM,MAAMQ,IAAYzF,GAAM,CAC7B,KAAM,WACR,CAAC,EACcgD,GAAQkC,IAAOC,GAAUE,IAAUC,IAAQC,IAAWC,IAAWC,GAAS,ECzDzF,MAAMC,GAAkB,CAEtB,OAAQ,CACN,SAAU,UACV,UAAWxC,EACf,EACE,UAAW,CACT,SAAU,UACV,UAAWA,EACf,EACE,YAAa,CACX,SAAU,UACV,UAAWA,EACf,EACE,aAAc,CACZ,SAAU,UACV,UAAWA,EACf,EACE,WAAY,CACV,SAAU,UACV,UAAWA,EACf,EACE,YAAa,CACX,SAAU,SACd,EACE,eAAgB,CACd,SAAU,SACd,EACE,iBAAkB,CAChB,SAAU,SACd,EACE,kBAAmB,CACjB,SAAU,SACd,EACE,gBAAiB,CACf,SAAU,SACd,EACE,QAAS,CACP,SAAU,UACV,UAAWA,EACf,EACE,aAAc,CACZ,SAAU,SACd,EACE,aAAc,CACZ,SAAU,qBACV,MAAOc,EACX,EAEE,MAAO,CACL,SAAU,UACV,UAAWa,EACf,EACE,QAAS,CACP,SAAU,UACV,YAAa,kBACb,UAAWA,EACf,EACE,gBAAiB,CACf,SAAU,UACV,UAAWA,EACf,EAEE,EAAG,CACD,MAAOnC,EACX,EACE,GAAI,CACF,MAAOA,EACX,EACE,GAAI,CACF,MAAOA,EACX,EACE,GAAI,CACF,MAAOA,EACX,EACE,GAAI,CACF,MAAOA,EACX,EACE,GAAI,CACF,MAAOA,EACX,EACE,GAAI,CACF,MAAOA,EACX,EACE,QAAS,CACP,MAAOA,EACX,EACE,WAAY,CACV,MAAOA,EACX,EACE,aAAc,CACZ,MAAOA,EACX,EACE,cAAe,CACb,MAAOA,EACX,EACE,YAAa,CACX,MAAOA,EACX,EACE,SAAU,CACR,MAAOA,EACX,EACE,SAAU,CACR,MAAOA,EACX,EACE,cAAe,CACb,MAAOA,EACX,EACE,mBAAoB,CAClB,MAAOA,EACX,EACE,iBAAkB,CAChB,MAAOA,EACX,EACE,aAAc,CACZ,MAAOA,EACX,EACE,kBAAmB,CACjB,MAAOA,EACX,EACE,gBAAiB,CACf,MAAOA,EACX,EACE,EAAG,CACD,MAAOD,EACX,EACE,GAAI,CACF,MAAOA,EACX,EACE,GAAI,CACF,MAAOA,EACX,EACE,GAAI,CACF,MAAOA,EACX,EACE,GAAI,CACF,MAAOA,EACX,EACE,GAAI,CACF,MAAOA,EACX,EACE,GAAI,CACF,MAAOA,EACX,EACE,OAAQ,CACN,MAAOA,EACX,EACE,UAAW,CACT,MAAOA,EACX,EACE,YAAa,CACX,MAAOA,EACX,EACE,aAAc,CACZ,MAAOA,EACX,EACE,WAAY,CACV,MAAOA,EACX,EACE,QAAS,CACP,MAAOA,EACX,EACE,QAAS,CACP,MAAOA,EACX,EACE,aAAc,CACZ,MAAOA,EACX,EACE,kBAAmB,CACjB,MAAOA,EACX,EACE,gBAAiB,CACf,MAAOA,EACX,EACE,YAAa,CACX,MAAOA,EACX,EACE,iBAAkB,CAChB,MAAOA,EACX,EACE,eAAgB,CACd,MAAOA,EACX,EAEE,aAAc,CACZ,YAAa,GACb,UAAWzb,IAAU,CACnB,eAAgB,CACd,QAASA,CACjB,CACA,EACA,EACE,QAAS,GACT,SAAU,GACV,aAAc,GACd,WAAY,GACZ,WAAY,GAEZ,UAAW,GACX,cAAe,GACf,SAAU,GACV,eAAgB,GAChB,WAAY,GACZ,aAAc,GACd,MAAO,GACP,KAAM,GACN,SAAU,GACV,WAAY,GACZ,UAAW,GACX,aAAc,GACd,YAAa,GAEb,IAAK,CACH,MAAOid,EACX,EACE,OAAQ,CACN,MAAOE,EACX,EACE,UAAW,CACT,MAAOD,EACX,EACE,WAAY,GACZ,QAAS,GACT,aAAc,GACd,gBAAiB,GACjB,aAAc,GACd,oBAAqB,GACrB,iBAAkB,GAClB,kBAAmB,GACnB,SAAU,GAEV,SAAU,GACV,OAAQ,CACN,SAAU,QACd,EACE,IAAK,GACL,MAAO,GACP,OAAQ,GACR,KAAM,GAEN,UAAW,CACT,SAAU,SACd,EAEE,M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EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,IACH,IAAG,KAEH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IAEH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IAEH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,KACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,GACH,EAAG,IACH,EAAG,KACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,KACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,GACH,EAAG,IACH,EAAG,KACH,EAAG,KAEH,EAAG,KACH,EAAG,IACH,EAAG,KACH,EAAG,IACH,EAAG,KACH,EAAG,IACH,EAAG,KACH,EAAG,IAEH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IAEH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IAEH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IAEH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IAEH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,IACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,KACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,IAEH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,IACH,EAAG,KACH,EAAG,IACH,EAAG,IAEH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IAEH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IAEH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IAEH,EAAG,KACH,EAAG,KACH,EAAG,KACH,EAAG,KACH,EAAG,KACH,EAAG,KACH,EAAG,KACH,EAAG,KACH,EAAG,KACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,KAEH,EAAG,KACH,EAAG,IACH,EAAG,KACH,EAAG,KACH,EAAG,IACH,EAAG,KACH,EAAG,KACH,EAAG,IACH,EAAG,KACH,EAAG,KACH,EAAG,IACH,EAAG,KACH,EAAG,KACH,EAAG,KACH,EAAG,KACH,EAAG,KAEH,EAAG,IACH,EAAG,KACH,EAAG,IACH,EAAG,KACH,EAAG,KACH,EAAG,KACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,KACH,EAAG,MACH,EAAG,KACH,EAAG,KACH,EAAG,IACH,EAAG,IACH,EAAG,MACH,EAAG,KACH,EAAG,OACH,EAAG,KACH,EAAG,MACH,EAAG,KACH,EAAG,KACH,EAA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AG,EAClC,MACF,IAAK,QACL,IAAK,kBACL,IAAK,QACL,IAAK,WACL,IAAK,WACL,IAAK,UACL,IAAK,QACL,IAAK,WACL,IAAK,0BACL,IAAK,wBACL,IAAK,iBACL,IAAK,SACL,IAAK,OACL,IAAK,WACL,IAAK,aACL,IAAK,OACL,IAAK,cACL,IAAK,WACL,IAAK,WACL,IAAK,WACL,IAAK,SACL,IAAK,WACL,IAAK,YACHgG,GAAwB,OAAOA,GAAtB,YAA4C,OAAOA,GAApB,SACpC63U,EAAW,aAAa79U,EAAK,EAAE,EAC/B69U,EAAW,gBAAgB79U,CAAG,EAClC,MACF,IAAK,UACL,IAAK,WACIgG,IAAP,GACI63U,EAAW,aAAa79U,EAAK,EAAE,EACxBgG,IAAP,IACUA,GAAR,MACe,OAAOA,GAAtB,YACa,OAAOA,GAApB,SACA63U,EAAW,aAAa79U,EAAKgG,CAAK,EAClC63U,EAAW,gBAAgB79U,CAAG,EACpC,MACF,IAAK,OACL,IAAK,OACL,IAAK,OACL,IAAK,OACKgG,GAAR,MACe,OAAOA,GAAtB,YACa,OAAOA,GAApB,UACA,CAAC,MAAMA,CAAK,GACZ,GAAKA,EACD63U,EAAW,aAAa79U,EAAKgG,CAAK,EAClC63U,EAAW,gBAAgB79U,CAAG,EAClC,MACF,IAAK,UACL,IAAK,QACKgG,GAAR,MACe,OAAOA,GAAtB,YACa,OAAOA,GAApB,UACA,MAAMA,CAAK,EACP63U,EAAW,gBAAgB79U,CAAG,EAC9B69U,EAAW,aAAa79U,EAAKgG,CAAK,EACtC,MACF,IAAK,UACHqyY,GAA0B,eAAgBx6D,CAAU,EACpDw6D,GAA0B,SAAUx6D,CAAU,EAC9C4rD,GAAqB5rD,EAAY,UAAW73U,CAAK,EACjD,MACF,IAAK,eACH4jY,GACE/rD,EACA,+BACA,gBACA73U,GAEF,MACF,IAAK,eACH4jY,GACE/rD,EACA,+BACA,gBACA73U,GAEF,MACF,IAAK,YACH4jY,GACE/rD,EACA,+BACA,aAC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,cACzB,KACNgH,EAAa,IACrB,MAAahH,IAAmBgH,IAAeA,EAAa,KAC5D,CACA,CACE,OAAAkiC,GAAoBliC,EACb,IACT,CACA,SAASf,GAAiB8J,EAAc,CACtC,OAAQA,EAAY,CAClB,IAAK,eACL,IAAK,SACL,IAAK,QACL,IAAK,QACL,IAAK,cACL,IAAK,OACL,IAAK,MACL,IAAK,WACL,IAAK,WACL,IAAK,UACL,IAAK,YACL,IAAK,OACL,IAAK,UACL,IAAK,WACL,IAAK,QACL,IAAK,UACL,IAAK,UACL,IAAK,WACL,IAAK,QACL,IAAK,YACL,IAAK,UACL,IAAK,QACL,IAAK,QACL,IAAK,OACL,IAAK,gBACL,IAAK,cACL,IAAK,YACL,IAAK,aACL,IAAK,QACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,cACL,IAAK,WACL,IAAK,aACL,IAAK,eACL,IAAK,SACL,IAAK,kBACL,IAAK,YACL,IAAK,mBACL,IAAK,iBACL,IAAK,oBACL,IAAK,aACL,IAAK,YACL,IAAK,cACL,IAAK,OACL,IAAK,mBACL,IAAK,QACL,IAAK,aACL,IAAK,WACL,IAAK,SACL,IAAK,cACH,MAAO,GACT,IAAK,OACL,IAAK,YACL,IAAK,WACL,IAAK,YACL,IAAK,WACL,IAAK,YACL,IAAK,WACL,IAAK,YACL,IAAK,cACL,IAAK,aACL,IAAK,cACL,IAAK,SACL,IAAK,YACL,IAAK,QACL,IAAK,aACL,IAAK,aACL,IAAK,eACL,IAAK,eACH,MAAO,GACT,IAAK,UACH,OAAQ1N,GAAuB,EAAE,CAC/B,KAAKC,GACH,MAAO,GACT,KAAKC,GACH,MAAO,GACT,KAAKC,GACL,KAAKC,GACH,MAAO,IACT,KAAKC,GACH,MAAO,WACT,QACE,MAAO,GACjB,CACI,QACE,MAAO,GACb,CACA,CACA,IAAI6mC,GAA4B,GAC9BC,GAAc,KACdC,GAAa,KACbC,GAAc,KACdC,GAAiB,IAAI,IACrBC,GAAwB,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SAAA50G,EAACwe,GAAA,CAAc,MAAA/X,GACX,SAAAzG,EAACqoX,IAAA,EAAgB,EACrB,EACJ,CACJ","names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","jsxRuntimeModule","require$$0","REACT_PORTAL_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_CONSUMER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","MAYBE_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","ReactNoopUpdateQueue","assign","emptyObject","Component","props","context","updater","partialState","callback","ComponentDummy","PureComponent","pureComponentPrototype","isArrayImpl","ReactSharedInternals","hasOwnProperty","ReactElement","self","source","owner","cloneAndReplaceKey","oldElement","newKey","isValidElement","object","escape","escaperLookup","match","userProvidedKeyEscapeRegex","getElementKey","element","index","noop$1","resolveThenable","thenable","fulfilledValue","error","mapIntoArray","children","array","escapedPrefix","nameSoFar","invokeCallback","c","nextNamePrefix","i","mapChildren","func","result","count","child","lazyInitializer","payload","ctor","moduleObject","reportGlobalError","event","noop","react_production","forEachFunc","forEachContext","n","size","fn","childArray","defaultValue","childrenLength","render","compare","scope","prevTransition","currentTransition","returnValue","onStartTransitionFinish","usable","action","initialState","permalink","deps","Context","value","initialValue","create","createDeps","update","dispatcher","ref","passthrough","reducer","initialArg","init","subscribe","getSnapshot","getServerSnapshot","reactModule","sheetForTag","tag","createStyleElement","options","StyleSheet","_this","before","_proto","nodes","rule","sheet","_tag$parentNode","MS","MOZ","WEBKIT","COMMENT","RULESET","DECLARATION","IMPORT","KEYFRAMES","LAYER","abs","from","hash","length","charat","trim","pattern","replace","replacement","indexof","search","substr","begin","end","strlen","sizeof","append","combine","line","column","position","character","characters","node","root","parent","copy","char","prev","next","peek","caret","slice","token","alloc","dealloc","delimit","delimiter","whitespace","escaping","commenter","identifier","compile","parse","rules","rulesets","pseudo","points","declarations","offset","atrule","property","previous","variable","scanning","ampersand","reference","comment","declaration","ruleset","post","j","k","x","y","z","serialize","output","stringify","middleware","collection","rulesheet","memoize","cache","arg","identifierWithPointTracking","toRules","parsed","getRules","fixedElements","compat","isImplicitRule","parentRules","removeLabel","prefix","prefixer","defaultStylisPlugins","createCache","ssrStyles","dataEmotionAttribute","stylisPlugins","inserted","container","nodesToHydrate","attrib","_insert","omnipresentPlugins","currentSheet","finalizingPlugins","serializer","stylis","styles","selector","serialized","shouldCache","_extends","e","t","b","d","f","g","h","m","p","q","r","v","w","a","u","A","reactIs_production_min","reactIsModule","reactIs","REACT_STATICS","KNOWN_STATICS","FORWARD_REF_STATICS","MEMO_STATICS","TYPE_STATICS","getStatics","component","defineProperty","getOwnPropertyNames","getOwnPropertySymbols","getOwnPropertyDescriptor","getPrototypeOf","objectPrototype","hoistNonReactStatics","targetComponent","sourceComponent","blacklist","inheritedComponent","keys","targetStatics","sourceStatics","descriptor","hoistNonReactStatics_cjs","isBrowser","getRegisteredStyles","registered","registeredStyles","classNames","rawClassName","className","registerStyles","isStringTag","insertStyles","current","murmur2","str","len","unitlessKeys","hyphenateRegex","animationRegex","isCustomProperty","isProcessableValue","processStyleName","styleName","processStyleValue","p1","p2","cursor","unitless","handleInterpolation","mergedProps","interpolation","componentSelector","keyframes","serializedStyles","createStringFromObject","previousCursor","asString","cached","obj","string","_i","interpolated","labelPattern","serializeStyles","args","stringMode","strings","asTemplateStringsArr","templateStringsArr","identifierName","name","hashString","syncFallback","useInsertionEffect","React","useInsertionEffectAlwaysWithSyncFallback","useInsertionEffectWithLayoutFallback","React.useLayoutEffect","EmotionCacheContext","React.createContext","CacheProvider","withEmotionCache","forwardRef","useContext","ThemeContext","hasOwn","typePropName","createEmotionProps","newProps","_key","Insertion","_ref","Emotion","cssProp","WrappedComponent","React.useContext","_key2","React.createElement","React.Fragment","Emotion$1","Fragment","ReactJSXRuntime.Fragment","jsx","ReactJSXRuntime.jsx","jsxs","ReactJSXRuntime.jsxs","argsLength","createElementArgArray","_jsx","JSX","Global","sheetRef","React.useRef","rehydrating","sheetRefCurrent","css","_len","insertable","formatMuiErrorMessage","code","url","THEME_ID","reactPropsRegex","isPropValid","prop","testOmitPropsOnStringTag","testOmitPropsOnComponent","getDefaultShouldForwardProp","composeShouldForwardProps","isReal","shouldForwardProp","optionsShouldForwardProp","createStyled","baseTag","targetClassName","defaultShouldForwardProp","shouldUseAs","Styled","FinalTag","classInterpolations","finalShouldForwardProp","nextTag","nextOptions","newStyled","tags","tagName","ReactPropTypesSecret","ReactPropTypesSecret_1","emptyFunction","emptyFunctionWithReset","factoryWithThrowingShims","shim","componentName","location","propFullName","secret","err","getShim","ReactPropTypes","propTypesModule","isEmpty","GlobalStyles","defaultTheme","globalStyles","themeInput","styled","emStyled","internal_mutateStyles","processor","wrapper","internal_serializeStyles","emSerializeStyles","REACT_SUSPENSE_LIST_TYPE","REACT_VIEW_TRANSITION_TYPE","REACT_CLIENT_REFERENCE","typeOf","$$typeof","reactIs_production","isPlainObject","item","prototype","deepClone","React.isValidElement","isValidElementType","deepmerge","target","sortBreakpointsValues","values","breakpointsAsArray","breakpoint1","breakpoint2","acc","createBreakpoints","breakpoints","unit","step","other","sortedValues","up","down","between","start","endIndex","only","not","keyIndex","sortContainerQueries","theme","sorted","regex","isCqShorthand","breakpointKeys","getContainerQuery","shorthand","matches","containerQuery","containerName","cssContainerQueries","toContainerQuery","mediaQuery","attachCq","containerQueries","shape","merge","defaultBreakpoints","defaultContainerQueries","handleBreakpoints","propValue","styleFromPropValue","themeBreakpoints","breakpoint","containerKey","mediaKey","cssKey","createEmptyBreakpointObject","breakpointsInput","breakpointStyleKey","removeUnusedBreakpoints","style","breakpointOutput","mergeBreakpointsInOrder","emptyBreakpoints","mergedOutput","computeBreakpointsBase","breakpointValues","base","breakpointsKeys","resolveBreakpointValues","customBase","capitalize","_formatErrorMessage","getPath","path","checkVars","val","getStyleValue","themeMapping","transform","propValueFinal","userValue","cssProperty","themeKey","properties","directions","aliases","getCssProperties","direction","dir","marginKeys","paddingKeys","createUnaryUnit","themeSpacing","transformed","createUnarySpacing","getValue","transformer","getStyleFromPropValue","cssProperties","resolveCssProperty","margin","padding","createSpacing","spacingInput","spacing","argsInput","argument","compose","handlers","borderTransform","createBorderStyle","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outline","outlineColor","borderRadius","gap","columnGap","rowGap","gridColumn","gridRow","gridAutoFlow","gridAutoColumns","gridAutoRows","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea","paletteTransform","color","bgcolor","backgroundColor","sizingTransform","width","maxWidth","breakpointsValues","minWidth","height","maxHeight","minHeight","boxSizing","defaultSxConfig","objectsHaveSameKeys","objects","allKeys","union","callIfFn","maybeFn","unstable_createStyleFunctionSx","getThemeValue","styleFunctionSx","sx","traverse","sxInput","sxObject","styleKey","applyStyles","createTheme","paletteInput","shapeInput","muiTheme","isObjectEmpty","useTheme","contextTheme","systemDefaultTheme","useThemeWithoutDefault","themeId","upperTheme","MuiGlobalStyles","splitProps","extendSxProp","inSx","systemProps","otherProps","finalSx","defaultGenerator","createClassNameGenerator","generate","generator","ClassNameGenerator","clsx","createBox","defaultClassName","generateClassName","BoxRoot","React.forwardRef","inProps","globalStateClasses","generateUtilityClass","slot","globalStatePrefix","globalStateClass","generateUtilityClasses","slots","preprocessStyles","input","variants","variant","defaultOverridesResolver","_props","attachTheme","processStyle","resolvedStyle","subStyle","rootStyle","otherStyles","processStyleVariants","results","mergedState","variantLoop","rootShouldForwardProp","slotShouldForwardProp","styleAttachTheme","inputOptions","mutateStyles","componentSlot","inputSkipVariantsResolver","inputSkipSx","overridesResolver","lowercaseFirstLetter","skipVariantsResolver","skipSx","shouldForwardPropOption","defaultStyledResolver","styledEngineStyled","generateStyledLabel","transformStyle","muiStyledResolver","expressionsInput","expressionsHead","expressionsBody","expressionsTail","styleOverrides","resolvedStyleOverrides","slotKey","themeVariants","inputStrings","placeholdersHead","placeholdersTail","outputStrings","expressions","_","resolveProps","defaultProps","defaultSlotProps","slotProps","slotPropName","getThemeProps","params","useThemeProps","useEnhancedEffect","React.useEffect","useMediaQueryOld","query","defaultMatches","matchMedia","ssrMatchMedia","noSsr","setMatch","React.useState","queryList","updateMatch","safeReact","maybeReactUseSyncExternalStore","useMediaQueryNew","getDefaultSnapshot","React.useCallback","React.useMemo","mediaQueryList","notify","unstable_createUseMediaQuery","queryInput","supportMatchMedia","clamp","min","max","clampWrapper","hexToRgb","re","colors","decomposeColor","marker","colorSpace","colorChannel","decomposedColor","idx","private_safeColorChannel","warning","recomposeColor","hslToRgb","s","l","rgb","getLuminance","getContrastRatio","foreground","background","lumA","lumB","alpha","private_safeAlpha","darken","coefficient","private_safeDarken","lighten","private_safeLighten","emphasize","private_safeEmphasize","refType","PropTypes","createChainedFunction","funcs","debounce","wait","timeout","debounced","later","isMuiElement","muiNames","ownerDocument","ownerWindow","setRef","globalId","useGlobalId","idOverride","defaultId","setDefaultId","id","maybeReactUseId","useId","reactId","useControlled","controlled","defaultProp","state","isControlled","valueState","setValue","setValueIfUncontrolled","newValue","useEventCallback","useForkRef","refs","cleanupRef","refEffect","instance","cleanups","refCallback","refCleanup","UNINITIALIZED","useLazyRef","initArg","EMPTY","useOnMount","Timeout","delay","useTimeout","isFocusVisible","getScrollbarSize","win","documentWidth","usePreviousProps","getValidReactChildren","React.Children","visuallyHidden","composeClasses","getUtilityClass","classes","slotName","buffer","isHostComponent","appendOwnerState","elementType","ownerState","extractEventHandlers","excludeKeys","omitEventHandlers","mergeSlotProps","parameters","getSlotProps","additionalProps","externalSlotProps","externalForwardedProps","joinedClasses","mergedStyle","eventHandlers","componentsPropsWithoutEventHandlers","otherPropsWithoutEventHandlers","internalSlotProps","resolveComponentProps","componentProps","slotState","useSlotProps","skipResolvingSlotProps","resolvedComponentsProps","internalRef","getReactElementRef","React.version","hasSymbol","nested","mergeOuterLocalTheme","outerTheme","localTheme","ThemeProvider","RtlContext","RtlProvider","useRtl","PropsContext","DefaultPropsProvider","useDefaultProps","ctx","EMPTY_THEME","useThemeScoping","isPrivate","resolvedTheme","mergedTheme","upperPrivateTheme","usePrivateTheme","engineTheme","privateTheme","rtlValue","MuiThemeProvider","StyledEngineThemeContext","unstable_memoTheme","styleFn","lastValue","lastTheme","DEFAULT_MODE_STORAGE_KEY","DEFAULT_COLOR_SCHEME_STORAGE_KEY","DEFAULT_ATTRIBUTE","InitColorSchemeScript","defaultMode","defaultLightColorScheme","defaultDarkColorScheme","modeStorageKey","colorSchemeStorageKey","initialAttribute","colorSchemeNode","nonce","setter","attribute","attr","localStorageManager","storageWindow","handler","listener","getSystemMode","mode","processState","getColorScheme","useCurrentColorScheme","supportedColorSchemes","storageManager","joinedColorSchemes","isMultiSchemes","modeStorage","lightStorage","darkStorage","setState","initialMode","lightColorScheme","darkColorScheme","isClient","setIsClient","colorScheme","setMode","currentState","newMode","setColorScheme","newState","newLightColorScheme","newDarkColorScheme","handleMediaQuery","systemMode","mediaListener","media","unsubscribeMode","unsubscribeLight","unsubscribeDark","DISABLE_CSS_TRANSITION","createCssVarsProvider","defaultModeStorageKey","defaultColorSchemeStorageKey","designSystemTransitionOnChange","defaultColorScheme","resolveTheme","defaultContext","ColorSchemeContext","useColorScheme","defaultColorSchemes","defaultComponents","CssVarsProvider","themeProp","disableTransitionOnChange","documentNode","disableNestedContext","disableStyleSheetGeneration","forceThemeRerender","hasMounted","muiUseTheme","initialTheme","scopedTheme","restThemeProp","colorSchemes","components","cssVarPrefix","allColorSchemes","stateMode","stateColorScheme","calculatedColorScheme","memoTheme","themeVars","scheme","schemeKey","colorSchemeSelector","timer","contextValue","shouldGenerateStyleSheet","_jsxs","createGetCssVar","appendVar","vars","field","fallbacks","assignNestedKeys","arrayKeys","temp","walkObjectDeep","shouldSkipPaths","recurse","parentKeys","getCssValue","cssVarsParser","shouldSkipGeneratingVar","varsWithDefaults","cssVar","resolvedValue","prepareCssVars","parserConfig","getSelector","defaultGetSelector","disableCssColorScheme","otherTheme","rootVars","rootCss","rootVarsWithDefaults","colorSchemesMap","defaultScheme","otherColorSchemes","cssObject","schemeVars","stylesheets","insertStyleSheet","defaultSchemeVal","cssColorSheme","finalCss","createGetColorSchemeSelector","defaultCreateStyledComponent","systemStyled","useThemePropsDefault","useThemePropsSystem","useUtilityClasses","getContainerUtilityClass","fixed","disableGutters","createContainer","createStyledComponent","ContainerRoot","breakpointValueKey","classesProp","filterBreakpointKeys","responsiveKeys","traverseBreakpoints","responsive","iterator","smallestBreakpoint","breakpointValue","responsiveStyles","getSelfSpacingVar","axis","getParentSpacingVar","selfColumnsVar","parentColumnsVar","generateGridSizeStyles","appendStyle","generateGridOffsetStyles","generateGridColumnsStyles","columns","generateGridRowSpacingStyles","generateGridColumnSpacingStyles","generateGridDirectionStyles","generateGridStyles","generateSizeClassNames","generateSpacingClassNames","isValidSpacing","generateDirectionClasses","deleteLegacyGridProps","createGrid","useThemeSystem","wrap","parseResponsiveProp","shouldUseValue","parsedProp","GridRoot","Grid","themeProps","columnsProp","sizeProp","offsetProp","spacingProp","rowSpacingProp","columnSpacingProp","level","rowSpacing","columnSpacing","React.cloneElement","joinChildren","separator","childrenArray","getSideFromDirection","directionValues","spacingValues","previousDirectionValue","createStack","StackRoot","divider","useFlexGap","common","grey","purple","red","orange","blue","lightBlue","green","getLight","light","getDark","dark","addLightOrDark","intent","shade","tonalOffset","tonalOffsetLight","tonalOffsetDark","getDefaultPrimary","getDefaultSecondary","getDefaultError","getDefaultInfo","getDefaultSuccess","getDefaultWarning","createPalette","palette","contrastThreshold","primary","secondary","info","success","getContrastText","augmentColor","mainShade","lightShade","darkShade","modeHydrated","prepareTypographyVars","typography","entry","createMixins","mixins","round","caseAllCaps","defaultFontFamily","createTypography","fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem2","coef","pxToRem","buildVariant","fontWeight","lineHeight","letterSpacing","casing","shadowKeyUmbraOpacity","shadowKeyPenumbraOpacity","shadowAmbientShadowOpacity","createShadow","px","shadows","easing","duration","formatMs","milliseconds","getAutoHeightDuration","constant","createTransitions","inputTransitions","mergedEasing","mergedDuration","durationOption","easingOption","animatedProp","zIndex","isSerializable","stringifyTheme","baseTheme","serializableTheme","serializeTheme","createThemeNoVars","mixinsInput","transitionsInput","typographyInput","systemTheme","systemCreateTheme","getOverlayAlpha","elevation","alphaValue","defaultDarkOverlays","overlay","getOpacity","getOverlays","createColorScheme","opacity","overlays","rest","excludeVariablesFromRoot","excludedVariables","assignNode","setColor","toRgb","setColorChannel","safeColorChannel","getSpacingVal","silent","systemCreateGetCssVar","attachColorScheme","restTheme","createThemeWithVars","colorSchemesInput","defaultColorSchemeInput","defaultShouldSkipGeneratingVar","rootSelector","firstColorScheme","getCssVar","defaultSchemeInput","builtInLight","builtInDark","customColorSchemes","setCssVarColor","tokens","colorToken","safeDarken","safeLighten","snackbarContentBackground","safeEmphasize","safeAlpha","generateThemeVars","generateStyleSheets","cssVariables","initialColorSchemes","initialDefaultColorScheme","paletteOptions","getUnit","toUnitless","systemUseThemeProps","ThemeProviderNoVars","SystemThemeProvider","defaultConfig","InternalCssVarsProvider","newTheme","Subscribable","isServer","functionalUpdate","isValidTimeout","timeUntilStale","updatedAt","staleTime","resolveStaleTime","resolveEnabled","enabled","matchQuery","filters","exact","fetchStatus","predicate","queryKey","stale","hashQueryKeyByOptions","partialMatchKey","isActive","matchMutation","mutation","status","mutationKey","hashKey","replaceEqualDeep","isPlainArray","aItems","aSize","bItems","bSize","equalItems","shallowEqualObjects","o","hasObjectPrototype","prot","sleep","resolve","replaceData","prevData","data","addToEnd","items","newItems","addToStart","skipToken","ensureQueryFn","fetchOptions","FocusManager","#focused","#cleanup","#setup","onFocus","setup","focused","isFocused","focusManager","OnlineManager","#online","onOnline","onlineListener","offlineListener","online","onlineManager","pendingThenable","reject","_resolve","_reject","finalize","reason","defaultRetryDelay","failureCount","canFetch","networkMode","CancelledError","isCancelledError","createRetryer","isRetryCancelled","isResolved","continueFn","cancel","cancelOptions","cancelRetry","continueRetry","canContinue","canStart","pause","continueResolve","run","promiseOrValue","initialPromise","retry","retryDelay","shouldRetry","defaultScheduler","cb","createNotifyManager","queue","transactions","notifyFn","batchNotifyFn","scheduleFn","schedule","flush","originalQueue","notifyManager","Removable","#gcTimeout","newGcTime","Query","#initialState","#revertState","#cache","#client","#retryer","#defaultOptions","#abortSignalConsumed","getDefaultState","newData","#dispatch","setStateOptions","promise","observer","abortController","addSignalProperty","fetchFn","queryFn","queryFnContext","onError","fetchState","hasData","initialDataUpdatedAt","QueryCache","#queries","client","queryHash","queryInMap","defaultedFilters","queries","Mutation","#observers","#mutationCache","variables","restored","isPaused","MutationCache","#mutations","#scopes","#mutationId","scopeFor","scopedMutations","firstPendingMutation","pausedMutations","infiniteQueryBehavior","pages","oldPages","oldPageParams","currentPage","cancelled","fetchPage","param","page","maxPages","addTo","pageParamFn","getPreviousPageParam","getNextPageParam","oldData","remainingPages","pageParams","lastIndex","QueryClient","#queryCache","#queryDefaults","#mutationDefaults","#mountCount","#unsubscribeFocus","#unsubscribeOnline","defaultedOptions","cachedData","queryCache","defaultedCancelOptions","promises","defaults","queryDefault","QueryObserver","#selectError","#currentThenable","#currentQuery","#currentQueryInitialState","#currentResult","#currentResultState","#currentResultOptions","#selectFn","#selectResult","#lastQueryWithDefinedData","#staleTimeoutId","#refetchIntervalId","#currentRefetchInterval","#trackedProps","shouldFetchOnMount","#executeFetch","#updateTimers","shouldFetchOn","#clearStaleTimeout","#clearRefetchInterval","prevOptions","prevQuery","#updateQuery","mounted","shouldFetchOptionally","#updateStaleTimeout","nextRefetchInterval","#computeRefetchInterval","#updateRefetchInterval","shouldAssignObserverCurrentProperties","onPropTracked","trackedResult","nextInterval","prevResult","prevResultState","prevResultOptions","queryInitialState","isPlaceholderData","fetchOnMount","fetchOptionally","errorUpdatedAt","selectError","placeholderData","isFetching","isPending","isError","isLoading","nextResult","isStale","finalizeThenableIfPossible","recreateThenable","pending","prevThenable","shouldNotifyListeners","notifyOnChangeProps","notifyOnChangePropsValue","includedProps","typedKey","#notify","notifyOptions","shouldLoadOnMount","optimisticResult","MutationObserver","#currentMutation","#mutateOptions","#updateResult","QueryClientContext","useQueryClient","queryClient","QueryClientProvider","IsRestoringContext","useIsRestoring","createValue","isReset","QueryErrorResetBoundaryContext","useQueryErrorResetBoundary","shouldThrowError","throwError","ensurePreventErrorBoundaryRetry","errorResetBoundary","useClearResetErrorBoundary","getHasError","throwOnError","suspense","ensureSuspenseTimers","originalStaleTime","willFetch","isRestoring","shouldSuspend","fetchOptimistic","useBaseQuery","Observer","isNewCacheEntry","shouldSubscribe","React.useSyncExternalStore","onStoreChange","unsubscribe","useQuery","useMutation","mutate","mutateOptions","ReactQueryDevtools2","SystemGlobalStyles","globalCss","internal_createExtendSxProp","useSystemDefaultProps","getSvgIconUtilityClass","SvgIconRoot","SvgIcon","htmlColor","inheritViewBox","titleAccess","viewBox","hasSvgAsChild","more","createSvgIcon","displayName","React.memo","isEventHandler","thirdCharCode","extractHandlers","externalSlotPropsValue","defaultSlotPropsValue","typedDefaultSlotProps","_objectWithoutPropertiesLoose","_setPrototypeOf","_inheritsLoose","setPrototypeOf","hasClass","addClass","replaceClassName","origClass","classToRemove","removeClass","formatProdErrorMessage","Internals","createPortal$1","containerInfo","implementation","getCrossOriginStringAs","as","reactDom_production","previousTransition","previousUpdatePriority","href","crossOrigin","integrity","fetchPriority","form","checkDCE","reactDomModule","config$1","TransitionGroupContext","forceReflow","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","Transition","_React$Component","parentGroup","appear","initialStatus","prevState","nextIn","prevProps","nextStatus","exit","enter","mounting","ReactDOM","_this2","appearing","_ref2","maybeNode","maybeAppearing","timeouts","enterTimeout","_this3","nextState","_this4","active","doesNotHaveTimeoutOrListener","_ref3","maybeNextCallback","_this$props","childProps","_addClass","addOneClass","removeOneClass","CSSTransition","_this$resolveArgument","_this$resolveArgument2","_this$resolveArgument3","_this$resolveArgument4","_this$resolveArgument5","_this$resolveArgument6","isStringClassNames","baseClassName","activeClassName","doneClassName","phase","_this$getClassNames","_this$appliedClasses$","_assertThisInitialized","getChildMapping","mapFn","mapper","Children","mergeChildMappings","getValueForKey","nextKeysPending","pendingKeys","prevKey","childMapping","nextKey","pendingNextKey","getProp","getInitialChildMapping","onExited","cloneElement","getNextChildMapping","nextProps","prevChildMapping","nextChildMapping","hasPrev","hasNext","prevChild","isLeaving","TransitionGroup","handleExited","firstRender","currentChildMapping","childFactory","reflow","getTransitionProps","getCollapseUtilityClass","orientation","CollapseRoot","CollapseWrapper","CollapseWrapperInner","Collapse","addEndListener","collapsedSizeProp","inProp","onEnter","onEntered","onEntering","onExit","onExiting","TransitionComponent","wrapperRef","autoTransitionDuration","collapsedSize","isHorizontal","nodeRef","handleRef","normalizedTransitionCallback","maybeIsAppearing","getWrapperSize","handleEnter","isAppearing","handleEntering","wrapperSize","transitionDuration","transitionTimingFunction","duration2","handleEntered","handleExit","handleExiting","handleAddEndListener","incomingOwnerState","restChildProps","getPaperUtilityClass","square","PaperRoot","Paper","AccordionContext","useSlot","initialElementType","internalForwardedProps","shouldForwardComponentProp","useSlotPropsParams","rootComponent","slotComponent","LeafComponent","getAccordionUtilityClass","accordionClasses","expanded","disabled","AccordionRoot","transition","AccordionHeading","Accordion","childrenProp","defaultExpanded","expandedProp","onChange","TransitionComponentProp","TransitionPropsProp","setExpandedState","handleChange","summary","backwardCompatibleSlots","backwardCompatibleSlotProps","RootSlot","rootProps","AccordionHeadingSlot","accordionProps","TransitionSlot","transitionProps","getAccordionDetailsUtilityClass","AccordionDetailsRoot","AccordionDetails","LazyRipple","ripple","shouldMount","setShouldMount","createControlledPromise","useLazyRipple","resolveFn","rejectFn","Ripple","pulsate","rippleX","rippleY","rippleSize","leaving","setLeaving","rippleClassName","rippleStyles","childClassName","timeoutId","touchRippleClasses","DURATION","DELAY_RIPPLE","enterKeyframe","exitKeyframe","pulsateKeyframe","TouchRippleRoot","TouchRippleRipple","TouchRipple","centerProp","ripples","setRipples","rippleCallback","ignoringMouseDown","startTimer","startTimerCommit","startCommit","oldRipples","center","fakeElement","rect","clientX","clientY","sizeX","sizeY","stop","React.useImperativeHandle","getButtonBaseUtilityClass","buttonBaseClasses","focusVisible","focusVisibleClassName","composedClasses","ButtonBaseRoot","ButtonBase","centerRipple","disableRipple","disableTouchRipple","focusRipple","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","buttonRef","handleRippleRef","setFocusVisible","enableTouchRipple","handleMouseDown","useRippleHandler","handleContextMenu","handleDragLeave","handleMouseUp","handleMouseLeave","handleTouchStart","handleTouchEnd","handleTouchMove","handleBlur","handleFocus","isNonNativeButton","button","handleKeyDown","handleKeyUp","ComponentProp","buttonProps","rippleAction","eventCallback","skipRippleAction","getAccordionSummaryUtilityClass","accordionSummaryClasses","AccordionSummaryRoot","AccordionSummaryContent","AccordionSummaryExpandIconWrapper","AccordionSummary","expandIcon","toggle","rootSlotProps","ContentSlot","contentSlotProps","ExpandIconWrapperSlot","expandIconWrapperSlotProps","hasCorrectMainProperty","checkSimplePaletteColorValues","additionalPropertiesToCheck","createSimplePaletteValueFilter","getAlertUtilityClass","alertClasses","getCircularProgressUtilityClass","SIZE","circularRotateKeyframe","circularDashKeyframe","rotateAnimation","dashAnimation","disableShrink","CircularProgressRoot","CircularProgressSVG","CircularProgressCircle","CircularProgress","thickness","circleStyle","circumference","getIconButtonUtilityClass","iconButtonClasses","edge","loading","IconButtonRoot","IconButtonLoadingIndicator","IconButton","disableFocusRipple","idProp","loadingIndicatorProp","loadingId","loadingIndicator","SuccessOutlinedIcon","ReportProblemOutlinedIcon","ErrorOutlineIcon","InfoOutlinedIcon$1","ClearIcon$2","severity","AlertRoot","getColor","getBackgroundColor","AlertIcon","AlertMessage","AlertAction","defaultIconMapping","InfoOutlinedIcon","Alert","closeText","componentsProps","icon","iconMapping","onClose","role","IconSlot","iconSlotProps","MessageSlot","messageSlotProps","ActionSlot","actionSlotProps","CloseButtonSlot","closeButtonProps","CloseIconSlot","closeIconProps","CloseIcon","getTypographyUtilityClass","typographyClasses","v6Colors","align","gutterBottom","noWrap","paragraph","TypographyRoot","defaultVariantMapping","Typography","isSxColor","variantMapping","getAlertTitleUtilityClass","AlertTitleRoot","AlertTitle","getAppBarUtilityClass","joinVars","var1","var2","AppBarRoot","AppBar","enableColorOnDark","stripDiacritics","createFilterOptions","ignoreAccents","ignoreCase","limit","matchFrom","inputValue","getOptionLabel","filteredOptions","option","candidate","defaultFilterOptions","pageSize","defaultIsActiveElementInListbox","listboxRef","MULTIPLE_DEFAULT_VALUE","getInputValue","multiple","renderValue","optionLabel","useAutocomplete","unstable_isActiveElementInListbox","unstable_classNamePrefix","autoComplete","autoHighlight","autoSelect","blurOnSelect","clearOnBlur","clearOnEscape","disableClearable","disableCloseOnSelect","disabledProp","disabledItemsFocusable","disableListWrap","filterOptions","filterSelectedOptions","freeSolo","getOptionDisabled","getOptionKey","getOptionLabelProp","groupBy","handleHomeEndKeys","includeInputInList","inputValueProp","isOptionEqualToValue","onHighlightChange","onInputChange","onOpen","openProp","openOnFocus","readOnly","selectOnFocus","valueProp","ignoreFocus","firstFocus","inputRef","anchorEl","setAnchorEl","focusedItem","setFocusedItem","defaultHighlighted","highlightedIndexRef","initialInputValue","setValueState","setInputValueState","setFocused","resetInputValue","newInputValue","open","setOpenState","inputPristine","setInputPristine","inputValueIsSelectedValue","popupOpen","value2","previousProps","valueChange","listboxAvailable","focusItem","itemToFocus","indexType","validOptionIndex","nextFocus","nextFocusDisabled","setHighlightedIndex","listboxNode","scrollBottom","elementBottom","changeHighlightedIndex","diff","nextIndex","maxIndex","newIndex","getPreviousHighlightedOptionIndex","isSameValue","value1","label1","label2","previousHighlightedOption","syncHighlightedIndex","previousHighlightedOptionIndex","valueItem","currentOption","itemIndex","optionItem","handleListboxRef","handleOpen","handleClose","handleValue","details","isTouch","selectNewValue","reasonProp","origin","validItemIndex","handleFocusItem","nextItem","handleClear","handleInputChange","handleOptionMouseMove","handleOptionTouchStart","handleOptionClick","handleItemDelete","handleSingleItemDelete","handlePopupIndicator","handleClick","handleInputMouseDown","dirty","groupedOptions","group","selected","top","bottom","right","left","auto","basePlacements","clippingParents","viewport","popper","variationPlacements","placement","placements","beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite","modifierPhases","getNodeName","getWindow","isElement","OwnElement","isHTMLElement","isShadowRoot","attributes","effect","initialStyles","styleProperties","applyStyles$1","getBasePlacement","getUAString","uaData","isLayoutViewport","getBoundingClientRect","includeScale","isFixedStrategy","clientRect","scaleX","scaleY","visualViewport","addVisualOffsets","getLayoutRect","contains","rootNode","getComputedStyle","isTableElement","getDocumentElement","getParentNode","getTrueOffsetParent","getContainingBlock","isFirefox","isIE","elementCss","currentNode","getOffsetParent","window","offsetParent","getMainAxisFromPlacement","within","mathMax","mathMin","withinMaxClamp","getFreshSideObject","mergePaddingObject","paddingObject","expandToHashMap","hashMap","toPaddingObject","arrow","_state$modifiersData$","arrowElement","popperOffsets","basePlacement","isVertical","arrowRect","minProp","maxProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","axisProp","_options$element","arrow$1","getVariation","unsetSides","roundOffsetsByDPR","dpr","mapToStyles","_Object$assign2","popperRect","variation","offsets","gpuAcceleration","adaptive","roundOffsets","isFixed","_offsets$x","_offsets$y","hasX","hasY","sideX","sideY","heightProp","widthProp","offsetY","offsetX","commonStyles","_ref4","_Object$assign","computeStyles","_ref5","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","computeStyles$1","passive","_options$scroll","scroll","_options$resize","resize","scrollParents","scrollParent","eventListeners","getOppositePlacement","matched","getOppositeVariationPlacement","getWindowScroll","scrollLeft","scrollTop","getWindowScrollBarX","getViewportRect","strategy","html","layoutViewport","getDocumentRect","_element$ownerDocumen","winScroll","body","isScrollParent","_getComputedStyle","overflow","overflowX","overflowY","getScrollParent","listScrollParents","list","isBody","updatedList","rectToClientRect","getInnerBoundingClientRect","getClientRectFromMixedType","clippingParent","getClippingParents","canEscapeClipping","clipperElement","getClippingRect","boundary","rootBoundary","mainClippingParents","firstClippingParent","clippingRect","accRect","computeOffsets","commonX","commonY","mainAxis","detectOverflow","_options","_options$placement","_options$strategy","_options$boundary","_options$rootBoundary","_options$elementConte","elementContext","_options$altBoundary","altBoundary","_options$padding","altContext","clippingClientRect","referenceClientRect","popperClientRect","elementClientRect","overflowOffsets","offsetData","multiply","computeAutoPlacement","flipVariations","_options$allowedAutoP","allowedAutoPlacements","allPlacements","allowedPlacements","overflows","getExpandedFallbackPlacements","oppositePlacement","flip","_options$mainAxis","checkMainAxis","_options$altAxis","checkAltAxis","specifiedFallbackPlacements","_options$flipVariatio","preferredPlacement","isBasePlacement","fallbackPlacements","referenceRect","checksMap","makeFallbackChecks","firstFittingPlacement","_basePlacement","isStartVariation","mainVariationSide","altVariationSide","checks","check","numberOfChecks","_loop","fittingPlacement","_ret","flip$1","getSideOffsets","preventedOffsets","isAnySideFullyClipped","side","hide","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","hide$1","distanceAndSkiddingToXY","rects","invertDistance","skidding","distance","_options$offset","_data$state$placement","offset$3","popperOffsets$1","getAltAxis","preventOverflow","_options$tether","tether","_options$tetherOffset","tetherOffset","altAxis","tetherOffsetValue","normalizedTetherOffsetValue","offsetModifierState","_offsetModifierState$","mainSide","altSide","additive","minLen","maxLen","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","clientOffset","offsetModifierValue","tetherMin","tetherMax","preventedOffset","_offsetModifierState$2","_mainSide","_altSide","_offset","_min","_max","isOriginSide","_offsetModifierValue","_tetherMin","_tetherMax","_preventedOffset","preventOverflow$1","getHTMLElementScroll","getNodeScroll","isElementScaled","getCompositeRect","elementOrVirtualElement","isOffsetParentAnElement","offsetParentIsScaled","documentElement","order","modifiers","map","visited","modifier","sort","requires","dep","depModifier","orderModifiers","orderedModifiers","mergeByName","merged","existing","DEFAULT_OPTIONS","areValidElements","popperGenerator","generatorOptions","_generatorOptions","_generatorOptions$def","defaultModifiers","_generatorOptions$def2","defaultOptions","effectCleanupFns","isDestroyed","setOptionsAction","cleanupModifierEffects","runModifierEffects","_state$elements","_state$orderedModifie","_state$orderedModifie2","_ref$options","cleanupFn","noopFn","createPopper","getContainer","Portal","forwardedRef","disablePortal","mountNode","setMountNode","ReactDOM.createPortal","getPopperUtilityClass","flipPlacement","resolveAnchorEl","defaultPopperOptions","PopperTooltip","initialPlacement","popperOptions","popperRefProp","TransitionProps","ownerStateProp","tooltipRef","ownRef","popperRef","handlePopperRef","handlePopperRefRef","rtlPlacement","setPlacement","resolvedAnchorElement","setResolvedAnchorElement","handlePopperUpdate","popperModifiers","Root","Popper","containerProp","keepMounted","exited","setExited","resolvedAnchorEl","display","PopperRoot","BasePopper","isRtl","RootComponent","getListSubheaderUtilityClass","inset","disableSticky","ListSubheaderRoot","ListSubheader","CancelIcon$1","getChipUtilityClass","chipClasses","iconColor","onDelete","clickable","ChipRoot","textColor","ChipLabel","isDeleteKeyboardEvent","keyboardEvent","Chip","avatarProp","clickableProp","deleteIconProp","iconProp","label","skipFocusWhenDisabled","chipRef","handleDeleteIconClick","moreProps","deleteIcon","CancelIcon","avatar","TextareaAutosize","maxRows","minRows","textareaRef","heightRef","hiddenTextareaRef","calculateTextareaStyles","textarea","hiddenTextarea","computedStyle","innerHeight","singleRowHeight","outerHeight","outerHeightStyle","overflowing","didHeightChange","textareaStyles","syncHeight","frameRef","debouncedHandleResize","containerWindow","resizeObserver","formControlState","states","muiFormControl","FormControlContext","useFormControl","hasValue","isFilled","SSR","isAdornedStart","getInputBaseUtilityClass","inputBaseClasses","_InputGlobalStyles","rootOverridesResolver","inputOverridesResolver","endAdornment","formControl","fullWidth","hiddenLabel","multiline","startAdornment","InputBaseRoot","InputBaseInput","placeholder","placeholderHidden","placeholderVisible","InputGlobalStyles","InputBase","ariaDescribedby","autoFocus","disableInjectingGlobalStyles","inputComponent","inputPropsProp","inputRefProp","renderSuffix","rows","handleInputRefWarning","handleInputRef","fcs","onFilled","onEmpty","checkDirty","InputComponent","inputProps","handleAutoFill","Input","getInputUtilityClass","inputClasses","getOutlinedInputUtilityClass","outlinedInputClasses","getFilledInputUtilityClass","filledInputClasses","ArrowDropDownIcon$2","getAutocompleteUtilityClass","autocompleteClasses","_ClearIcon","_ArrowDropDownIcon","hasClearIcon","hasPopupIcon","inputFocused","AutocompleteRoot","AutocompleteEndAdornment","AutocompleteClearIndicator","AutocompletePopupIndicator","AutocompletePopper","AutocompletePaper","AutocompleteLoading","AutocompleteNoOptions","AutocompleteListbox","AutocompleteGroupLabel","AutocompleteGroupUl","Autocomplete","ChipPropsProp","clearIcon","ClearIcon","clearText","forcePopupIcon","getLimitTagsText","limitTags","ListboxComponentProp","ListboxPropsProp","loadingText","noOptionsText","openText","PaperComponentProp","PopperComponentProp","popupIcon","ArrowDropDownIcon","renderGroupProp","renderInput","renderOptionProp","renderTags","getRootProps","getInputProps","getInputLabelProps","getPopupIndicatorProps","getClearProps","getItemProps","getListboxProps","getOptionProps","otherListboxProps","ListboxSlot","listboxProps","PaperSlot","paperProps","PopperSlot","popperProps","getCustomizedItemProps","customItemProps","renderGroup","renderOption","props2","renderListOption","optionProps","clearIndicatorSlotProps","popupIndicatorSlotProps","option2","index2","Person","getAvatarUtilityClass","avatarClasses","colorDefault","AvatarRoot","AvatarImg","AvatarFallback","useLoaded","referrerPolicy","src","srcSet","loaded","setLoaded","image","Avatar","alt","imgProps","sizes","hasImg","hasImgNotFailing","ImgSlot","imgSlotProps","getAvatarGroupUtilityClass","avatarGroupClasses","SPACINGS","AvatarGroupRoot","AvatarGroup","renderSurplus","total","clampedMax","totalAvatars","maxAvatars","extraAvatars","extraAvatarsElement","marginValue","SurplusSlot","surplusProps","Fade","defaultTimeout","getBackdropUtilityClass","invisible","BackdropRoot","Backdrop","useBadge","badgeContentProp","invisibleProp","showZero","badgeContent","displayValue","getBadgeUtilityClass","badgeClasses","RADIUS_STANDARD","RADIUS_DOT","anchorOrigin","overlap","BadgeRoot","BadgeBadge","getAnchorOrigin","Badge","anchorOriginProp","overlapProp","colorProp","variantProp","invisibleFromHook","displayValueFromHook","anchorOriginPropProp","BadgeSlot","badgeSlotProps","badgeProps","boxClasses","Box","getButtonUtilityClass","buttonClasses","ButtonGroupContext","ButtonGroupButtonContext","disableElevation","loadingPosition","commonIconStyles","ButtonRoot","inheritContainedBackgroundColor","inheritContainedHoverBackgroundColor","ButtonStartIcon","ButtonEndIcon","ButtonLoadingIndicator","ButtonLoadingIconPlaceholder","Button","contextProps","buttonGroupButtonContextPositionClassName","resolvedProps","endIconProp","startIconProp","startIcon","endIcon","positionClassName","loader","getButtonGroupUtilityClass","buttonGroupClasses","ButtonGroupRoot","ButtonGroup","validChildren","childrenCount","getButtonPositionClassName","isFirstButton","isLastButton","getCardUtilityClass","CardRoot","Card","raised","getCardActionAreaUtilityClass","cardActionAreaClasses","CardActionAreaRoot","CardActionAreaFocusHighlight","CardActionArea","getCardActionsUtilityClass","disableSpacing","CardActionsRoot","CardActions","getCardContentUtilityClass","CardContentRoot","CardContent","getCardHeaderUtilityClass","cardHeaderClasses","CardHeaderRoot","CardHeaderAvatar","CardHeaderAction","CardHeaderContent","CardHeader","disableTypography","subheaderProp","subheaderTypographyProps","titleProp","titleTypographyProps","title","TitleSlot","titleSlotProps","subheader","SubheaderSlot","subheaderSlotProps","AvatarSlot","avatarSlotProps","getCardMediaUtilityClass","isMediaComponent","isImageComponent","CardMediaRoot","MEDIA_COMPONENTS","IMAGE_COMPONENTS","CardMedia","composedStyle","getSwitchBaseUtilityClass","checked","SwitchBaseRoot","SwitchBaseInput","SwitchBase","checkedProp","checkedIcon","defaultChecked","required","setCheckedState","newChecked","hasLabelFor","InputSlot","inputSlotProps","CheckBoxOutlineBlankIcon","CheckBoxIcon$1","IndeterminateCheckBoxIcon","getCheckboxUtilityClass","checkboxClasses","indeterminate","CheckboxRoot","defaultCheckedIcon","CheckBoxIcon","defaultIcon","defaultIndeterminateIcon","Checkbox","indeterminateIconProp","indeterminateIcon","externalInputProps","mapEventPropToEvent","eventProp","clickedRootScrollbar","doc","ClickAwayListener","disableReactTree","mouseEvent","onClickAway","touchEvent","movedRef","activatedRef","syntheticEventRef","handleClickAway","insideReactTree","insideDOM","createHandleSynthetic","childrenPropsHandler","handlerName","childrenProps","mappedTouchEvent","mappedMouseEvent","Container","isOverflowing","ariaHidden","getPaddingRight","isAriaHiddenForbiddenOnElement","isForbiddenTagName","isInputHidden","ariaHiddenSiblings","mountElement","currentElement","elementsToExclude","isNotExcludedElement","isNotForbiddenElement","findIndexOf","handleContainer","restoreStyle","scrollbarSize","scrollContainer","el","getHiddenSiblings","hiddenSiblings","ModalManager","modal","modalIndex","containerIndex","ariaHiddenState","nextTop","candidatesSelector","getTabIndex","tabindexAttr","isNonTabbableRadio","getRadio","roving","isNodeMatchingSelectorFocusable","defaultGetTabbable","regularTabNodes","orderedTabNodes","nodeTabIndex","defaultIsEnabled","FocusTrap","disableAutoFocus","disableEnforceFocus","disableRestoreFocus","getTabbable","isEnabled","ignoreNextEnforceFocus","sentinelStart","sentinelEnd","nodeToRestore","reactFocusEventTarget","activated","rootRef","lastKeydown","loopFocus","nativeEvent","contain","rootElement","tabbable","isShiftTab","focusNext","focusPrevious","interval","handleFocusSentinel","getHasTransition","manager","useModal","disableEscapeKeyDown","disableScrollLock","closeAfterTransition","onTransitionEnter","onTransitionExited","mountNodeRef","modalRef","hasTransition","ariaHiddenProp","getDoc","getModal","handleMounted","resolvedContainer","isTopModal","handlePortalRef","createHandleKeyDown","otherHandlers","createHandleBackdropClick","propsEventHandlers","externalEventHandlers","getModalUtilityClass","ModalRoot","ModalBackdrop","Modal","BackdropComponent","BackdropProps","hideBackdrop","propsWithDefaults","getBackdropProps","portalRef","BackdropSlot","backdropProps","getDialogUtilityClass","dialogClasses","DialogContext","DialogBackdrop","fullScreen","DialogRoot","DialogContainer","DialogPaper","Dialog","defaultTransitionDuration","ariaLabelledbyProp","ariaModal","PaperComponent","PaperProps","backdropClick","handleBackdropClick","ariaLabelledby","dialogContextValue","backdropSlotProps","paperSlotProps","ContainerSlot","containerSlotProps","transitionSlotProps","getDialogActionsUtilityClass","DialogActionsRoot","DialogActions","getDialogContentUtilityClass","getDialogTitleUtilityClass","dialogTitleClasses","dividers","DialogContentRoot","DialogContent","getDialogContentTextUtilityClass","DialogContentTextRoot","DialogContentText","DialogTitleRoot","DialogTitle","titleId","getDividerUtilityClass","dividerClasses","absolute","flexItem","textAlign","DividerRoot","DividerWrapper","Divider","getTranslateValue","containerRect","transformValues","resolveContainer","containerPropProp","setTranslateValue","Slide","defaultEasing","easingProp","childrenRef","updatePosition","handleResize","getDrawerUtilityClass","anchor","DrawerRoot","DrawerDockedRoot","DrawerPaper","oppositeDirection","getAnchor","Drawer","anchorProp","BackdropPropsProp","ModalProps","SlideProps","anchorInvariant","DockedSlot","dockedSlotProps","drawer","slidingDrawer","getFabUtilityClass","fabClasses","FabRoot","Fab","disableUnderline","FilledInputRoot","inputBaseRootOverridesResolver","bottomLineColor","hoverBackground","disabledBackground","FilledInputInput","inputBaseInputOverridesResolver","FilledInput","componentsPropsProp","filledInputComponentsProps","getFormControlUtilityClasses","FormControlRoot","FormControl","visuallyFocused","adornedStart","setAdornedStart","initialAdornedStart","filled","setFilled","initialFilled","focusedState","registerEffect","childContext","getFormControlLabelUtilityClasses","formControlLabelClasses","labelPlacement","FormControlLabelRoot","AsteriskComponent","FormControlLabel","control","labelProp","requiredProp","controlProps","TypographySlot","typographySlotProps","getFormGroupUtilityClass","row","FormGroupRoot","FormGroup","getFormHelperTextUtilityClasses","formHelperTextClasses","_span","contained","FormHelperTextRoot","FormHelperText","getFormLabelUtilityClasses","formLabelClasses","FormLabelRoot","FormLabel","getScale","isWebKit154","Grow","autoTimeout","getImageListUtilityClass","ImageListContext","ImageListRoot","ImageList","cols","rowHeight","styleProp","getImageListItemUtilityClass","imageListItemClasses","ImageListItemRoot","ImageListItem","getImageListItemBarUtilityClass","actionIcon","actionPosition","ImageListItemBarRoot","ImageListItemBarTitleWrap","ImageListItemBarTitle","ImageListItemBarSubtitle","ImageListItemBarActionIcon","ImageListItemBar","subtitle","InputRoot","InputInput","inputComponentsProps","getInputAdornmentUtilityClass","inputAdornmentClasses","disablePointerEvents","InputAdornmentRoot","InputAdornment","getInputLabelUtilityClasses","shrink","disableAnimation","InputLabelRoot","InputLabel","shrinkProp","getLinearProgressUtilityClass","TRANSITION_DURATION","indeterminate1Keyframe","indeterminate1Animation","indeterminate2Keyframe","indeterminate2Animation","bufferKeyframe","bufferAnimation","getColorShade","LinearProgressRoot","LinearProgressDashed","LinearProgressBar1","LinearProgressBar2","LinearProgress","valueBuffer","inlineStyles","ListContext","getListUtilityClass","disablePadding","dense","ListRoot","List","getListItemUtilityClass","getListItemButtonUtilityClass","listItemButtonClasses","alignItems","ListItemButtonRoot","ListItemButton","listItemRef","getListItemSecondaryActionClassesUtilityClass","ListItemSecondaryActionRoot","ListItemSecondaryAction","hasSecondaryAction","ListItemRoot","ListItemContainer","ListItem","componentProp","ContainerComponent","ContainerClassName","ContainerProps","secondaryAction","getListItemAvatarUtilityClass","ListItemAvatarRoot","ListItemAvatar","getListItemIconUtilityClass","listItemIconClasses","ListItemIconRoot","ListItemIcon","getListItemTextUtilityClass","listItemTextClasses","ListItemTextRoot","ListItemText","primaryProp","primaryTypographyProps","secondaryProp","secondaryTypographyProps","PrimarySlot","primarySlotProps","SecondarySlot","secondarySlotProps","previousItem","textCriteriaMatches","textCriteria","text","moveFocus","currentFocus","traversalFunction","wrappedOnce","MenuList","actions","autoFocusItem","listRef","textCriteriaRef","containerElement","noExplicitWidth","criteria","lowerKey","currTime","keepFocusOnCurrent","activeItemIndex","newChildProps","getPopoverUtilityClass","getOffsetTop","vertical","getOffsetLeft","horizontal","getTransformOriginValue","transformOrigin","PopoverRoot","PopoverPaper","PaperBase","Popover","anchorPosition","anchorReference","marginThreshold","PaperPropsProp","transitionDurationProp","paperRef","getAnchorOffset","anchorRect","getTransformOrigin","elemRect","getPositioningStyle","elemTransformOrigin","anchorOffset","heightThreshold","widthThreshold","isPositioned","setIsPositioned","setPositioningStyles","positioning","rootSlotsProp","rootSlotPropsProp","getMenuUtilityClass","RTL_ORIGIN","LTR_ORIGIN","MenuRoot","MenuPaper","MenuMenuList","Menu","disableAutoFocusItem","MenuListProps","PopoverClasses","menuListActionsRef","handleListKeyDown","ListSlot","listSlotProps","resolvedTransitionProps","getMenuItemUtilityClass","menuItemClasses","MenuItemRoot","MenuItem","tabIndexProp","menuItemRef","getNativeSelectUtilityClasses","nativeSelectClasses","StyledSelectSelect","NativeSelectSelect","StyledSelectIcon","NativeSelectIcon","NativeSelectInput","IconComponent","NotchedOutlineRoot","NotchedOutlineLegend","NotchedOutline","notched","withLabel","OutlinedInputRoot","OutlinedInputInput","OutlinedInput","_React$Fragment","getPaginationUtilityClass","usePagination","boundaryCount","defaultPage","hideNextButton","hidePrevButton","pageProp","showFirstButton","showLastButton","siblingCount","setPageState","range","startPages","endPages","siblingsStart","siblingsEnd","itemList","buttonPage","getPaginationItemUtilityClass","paginationItemClasses","FirstPageIconDefault","LastPageIconDefault","NavigateBeforeIcon","NavigateNextIcon$1","PaginationItemEllipsis","PaginationItemPage","PaginationItemPageIcon","PaginationItem","PreviousSlot","previousSlotProps","NextSlot","nextSlotProps","NavigateNextIcon","FirstSlot","firstSlotProps","FirstPageIcon","LastSlot","lastSlotProps","LastPageIcon","rtlAwareType","PaginationRoot","PaginationUl","defaultGetAriaLabel","Pagination","getItemAriaLabel","renderItem","getSelectUtilityClasses","selectClasses","SelectSelect","SelectIcon","SelectNativeInput","areEqualValues","SelectInput","ariaLabel","autoWidth","defaultOpen","displayEmpty","labelId","MenuProps","SelectDisplayProps","openState","displayRef","displayNode","setDisplayNode","isOpenControlled","menuMinWidthState","setMenuMinWidthState","handleDisplayRef","anchorElement","childItem","handleItemClick","clonedEvent","displaySingle","displayMultiple","computeDisplay","menuMinWidth","buttonId","listboxId","styledRootConfig","StyledInput","StyledOutlinedInput","StyledFilledInput","Select","native","restOfClasses","inputComponentRef","getSkeletonUtilityClass","animation","hasChildren","pulseKeyframe","waveKeyframe","pulseAnimation","waveAnimation","SkeletonRoot","radiusUnit","radiusValue","Skeleton","useSnackbar","autoHideDuration","disableWindowBlurListener","resumeHideDuration","timerAutoHide","setAutoHideTimer","autoHideDurationParam","handlePause","handleResume","createHandleBlur","onBlurCallback","createHandleFocus","onFocusCallback","createMouseEnter","onMouseEnterCallback","createMouseLeave","onMouseLeaveCallback","externalProps","getSnackbarContentUtilityClass","SnackbarContentRoot","emphasis","SnackbarContentMessage","SnackbarContentAction","SnackbarContent","message","getSnackbarUtilityClass","SnackbarRoot","Snackbar","ClickAwayListenerPropsProp","ContentPropsProp","onMouseEnter","ClickAwaySlot","clickAwayOwnerStateProp","clickAwayListenerProps","getTooltipUtilityClass","tooltipClasses","disableInteractive","touch","TooltipPopper","TooltipTooltip","TooltipArrow","hystersisOpen","hystersisTimer","cursorPosition","composeEventHandler","eventHandler","Tooltip","describeChild","disableFocusListener","disableHoverListener","disableInteractiveProp","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","leaveDelay","leaveTouchDelay","PopperProps","childNode","setChildNode","arrowRef","setArrowRef","ignoreNonTouchEvents","closeTimer","enterTimer","leaveTimer","touchTimer","prevUserSelect","stopTouchInteraction","handleMouseOver","setChildIsFocusVisible","detectTouchStart","handleMouseMove","nameOrDescProps","titleIsString","interactiveWrapperListeners","resolvedPopperProps","tooltipModifiers","popperSlotProps","TooltipSlot","tooltipSlotProps","ArrowSlot","arrowSlotProps","TransitionPropsInner","Stack","StepperContext","StepContext","getStepUtilityClass","alternativeLabel","completed","StepRoot","Step","activeProp","completedProp","last","activeStep","connector","nonLinear","newChildren","CheckCircle","Warning","getStepIconUtilityClass","stepIconClasses","_circle","StepIconRoot","StepIconText","StepIcon","classNameProp","getStepLabelUtilityClass","stepLabelClasses","StepLabelRoot","StepLabelLabel","StepLabelIconContainer","StepLabelLabelContainer","StepLabel","optional","StepIconComponentProp","StepIconProps","iconContext","StepIconComponent","LabelSlot","labelProps","StepIconSlot","stepIconProps","getStepConnectorUtilityClass","StepConnectorRoot","StepConnectorLine","StepConnector","getStepContentUtilityClass","StepContentRoot","StepContentTransition","StepContent","getStepperUtilityClass","StepperRoot","defaultConnector","Stepper","steps","getSwitchUtilityClass","switchClasses","SwitchRoot","SwitchSwitchBase","SwitchTrack","SwitchThumb","Switch","ThumbSlot","thumbSlotProps","TrackSlot","trackSlotProps","getTabUtilityClass","tabClasses","wrapped","TabRoot","iconPosition","Tab","indicator","selectionFollowsFocus","TableContext","getTableUtilityClass","stickyHeader","TableRoot","defaultComponent","Table","table","Tablelvl2Context","getTableBodyUtilityClass","TableBodyRoot","tablelvl2","TableBody","getTableCellUtilityClass","tableCellClasses","TableCellRoot","TableCell","paddingProp","scopeProp","sortDirection","isHeadCell","ariaSort","getTableContainerUtilityClass","TableContainerRoot","TableContainer","getTableHeadUtilityClass","TableHeadRoot","TableHead","getToolbarUtilityClass","ToolbarRoot","Toolbar","KeyboardArrowLeft","KeyboardArrowRight","TablePaginationActions","backIconButtonProps","nextIconButtonProps","onPageChange","rowsPerPage","handleFirstPageButtonClick","handleBackButtonClick","handleNextButtonClick","handleLastPageButtonClick","FirstButton","LastButton","NextButton","PreviousButton","FirstButtonIcon","LastButtonIcon","NextButtonIcon","PreviousButtonIcon","FirstButtonSlot","PreviousButtonSlot","NextButtonSlot","LastButtonSlot","firstButtonSlotProps","previousButtonSlotProps","nextButtonSlotProps","lastButtonSlotProps","getTablePaginationUtilityClass","tablePaginationClasses","_InputBase","TablePaginationRoot","TablePaginationToolbar","TablePaginationSpacer","TablePaginationSelectLabel","TablePaginationSelect","TablePaginationMenuItem","TablePaginationDisplayedRows","defaultLabelDisplayedRows","to","TablePagination","ActionsComponent","colSpanProp","labelDisplayedRows","labelRowsPerPage","onRowsPerPageChange","rowsPerPageOptions","SelectProps","selectProps","MenuItemComponent","colSpan","selectId","getLabelDisplayedRowsTo","ToolbarSlot","toolbarSlotProps","SpacerSlot","spacerSlotProps","SelectLabelSlot","selectLabelSlotProps","SelectSlot","selectSlotProps","MenuItemSlot","menuItemSlotProps","DisplayedRows","displayedRowsProps","rowsPerPageOption","getTableRowUtilityClass","tableRowClasses","hover","head","footer","TableRowRoot","TableRow","easeInOutSin","time","animate","ease","timestamp","ScrollbarSize","scrollbarHeight","setMeasurements","prevHeight","getTabScrollButtonUtilityClass","tabScrollButtonClasses","TabScrollButtonRoot","TabScrollButton","StartButtonIcon","EndButtonIcon","startButtonIconProps","endButtonIconProps","getTabsUtilityClass","tabsClasses","hideScrollbar","scrollableX","scrollableY","centered","scrollButtonsHideMobile","TabsRoot","TabsScroller","TabsIndicator","TabsScrollbarSize","defaultIndicatorStyle","Tabs","ariaLabelledBy","allowScrollButtonsMobile","indicatorColor","ScrollButtonComponent","scrollButtons","TabIndicatorProps","TabScrollButtonProps","visibleScrollbar","scrollable","scrollStart","startScrollButtonIconProps","endScrollButtonIconProps","setMounted","indicatorStyle","setIndicatorStyle","displayStartScroll","setDisplayStartScroll","displayEndScroll","setDisplayEndScroll","updateScrollObserver","setUpdateScrollObserver","scrollerStyle","setScrollerStyle","valueToIndex","tabsRef","tabListRef","getTabsMeta","tabsNode","tabsMeta","tabMeta","tab","updateIndicatorState","startValue","startIndicator","newIndicatorStyle","dStart","dSize","scrollValue","moveTabsScroll","delta","getScrollSize","containerSize","totalSize","handleStartScrollClick","handleEndScrollClick","ScrollbarSlot","scrollbarOnChange","scrollbarSlotProps","handleScrollbarSizeChange","scrollbarWidth","ScrollButtonsSlot","scrollButtonSlotProps","getConditionalElements","conditionalElements","showScrollButtons","scrollSelectedIntoView","nextScrollStart","updateScrollButtonState","handleMutation","records","record","mutationObserver","tabListChildren","firstTab","lastTab","observerOptions","handleScrollButtonStart","entries","firstObserver","handleScrollButtonEnd","lastObserver","IndicatorSlot","indicatorSlotProps","childIndex","childValue","previousItemKey","nextItemKey","ScrollerSlot","scrollerSlotProps","getTextFieldUtilityClass","variantComponent","TextFieldRoot","TextField","FormHelperTextPropsProp","helperText","InputLabelPropsProp","InputPropsProp","select","SelectPropsProp","helperTextId","inputLabelId","inputAdditionalProps","inputLabelSlotProps","InputLabelSlot","inputLabelProps","HtmlInputSlot","htmlInputProps","FormHelperTextSlot","formHelperTextProps","InputElement","getToggleButtonUtilityClass","toggleButtonClasses","ToggleButtonGroupContext","ToggleButtonGroupButtonContext","isValueSelected","ToggleButtonRoot","ToggleButton","toggleButtonGroupButtonContextPositionClassName","getToggleButtonGroupUtilityClass","toggleButtonGroupClasses","ToggleButtonGroupRoot","ToggleButtonGroup","exclusive","buttonValue","handleExclusiveChange","useMediaQuery","warn","i18n","msg","isString","alreadyWarned","warnOnce","loadedClb","initialized","loadNamespaces","ns","loadLanguages","lng","hasLoadedNamespace","i18nInstance","loadNotPending","isObject","matchHtmlEntity","htmlEntities","unescapeHtmlEntity","unescape","setDefaults","getDefaults","setI18n","getI18n","initReactI18next","I18nContext","createContext","ReportNamespaces","namespaces","usePrevious","ignore","useRef","useEffect","alwaysNewT","language","namespace","keyPrefix","useMemoizedT","useCallback","useTranslation","i18nFromProps","i18nFromContext","defaultNSFromContext","notReadyT","optsOrDefaultValue","retNotReady","i18nOptions","useSuspense","ready","memoGetT","getT","getNewT","setT","useState","joinedNS","previousJoinedNS","isMounted","bindI18n","bindI18nStore","boundReset","ret","LoadingWidget","LoadingPlaceholder","mt","LoadingProgressIcon","ExpandLess","ExpandMore","HistoryEduIcon","PhotoIcon","WgerModal","isOpen","closeFn","OverviewEmpty","flexDirection","justifyContent","EmptyCard","openModal","setOpenModal","handleOpenModal","handleCloseModal","link","undefined","paddingBottom","paddingTop","modalContent","bind","thisArg","toString","toStringTag","kindOf","thing","kindOfTest","typeOfTest","isArray","isUndefined","isBuffer","isFunction","isArrayBuffer","isArrayBufferView","isNumber","isBoolean","isEmptyObject","isDate","isFile","isBlob","isFileList","isStream","isFormData","kind","isURLSearchParams","isReadableStream","isRequest","isResponse","isHeaders","forEach","allOwnKeys","findKey","_global","isContextDefined","caseless","skipUndefined","assignValue","targetKey","extend","stripBOM","content","inherits","constructor","superConstructor","descriptors","toFlatObject","sourceObj","destObj","filter","propFilter","endsWith","searchString","toArray","arr","isTypedArray","TypedArray","forEachEntry","_iterator","pair","matchAll","regExp","isHTMLForm","toCamelCase","isRegExp","reduceDescriptors","reducedDescriptors","freezeMethods","toObjectSet","arrayOrString","define","toFiniteNumber","isSpecCompliantForm","toJSONObject","stack","visit","reducedValue","isAsyncFn","isThenable","_setImmediate","setImmediateSupported","postMessageSupported","callbacks","asap","isIterable","utils$1","AxiosError","request","response","utils","customProps","axiosError","errCode","httpAdapter","isVisitable","removeBrackets","renderKey","dots","isFlatArray","predicates","toFormData","formData","metaTokens","visitor","defaultVisitor","indexes","useBlob","convertValue","exposedHelpers","build","encode","charMap","AxiosURLSearchParams","encoder","_encode","buildURL","serializeFn","serializedParams","hashmarkIndex","InterceptorManager","fulfilled","rejected","transitionalDefaults","URLSearchParams$1","FormData$1","Blob$1","platform$1","URLSearchParams","FormData","Blob","hasBrowserEnv","_navigator","hasStandardBrowserEnv","hasStandardBrowserWebWorkerEnv","platform","toURLEncodedForm","helpers","parsePropPath","arrayToObject","formDataToJSON","buildPath","isNumericKey","isLast","stringifySafely","rawValue","parser","headers","contentType","hasJSONContentType","isObjectPayload","_FormData","transitional","forcedJSONParsing","JSONRequested","strictJSONParsing","method","ignoreDuplicateOf","parseHeaders","rawHeaders","$internals","normalizeHeader","header","normalizeValue","parseTokens","tokensRE","isValidHeaderName","matchHeaderValue","isHeaderNameFilter","formatHeader","buildAccessors","accessorName","methodName","arg1","arg2","arg3","AxiosHeaders$1","valueOrRewrite","rewrite","setHeader","_value","_header","_rewrite","lHeader","setHeaders","dest","matcher","deleted","deleteHeader","format","normalized","targets","asStrings","first","computed","accessors","defineAccessor","AxiosHeaders","mapped","headerValue","transformData","fns","isCancel","CanceledError","settle","validateStatus","parseProtocol","speedometer","samplesCount","bytes","timestamps","tail","firstSampleTS","chunkLength","now","startedAt","bytesCount","passed","throttle","freq","threshold","lastArgs","invoke","progressEventReducer","isDownloadStream","bytesNotified","_speedometer","progressBytes","rate","inRange","progressEventDecorator","throttled","lengthComputable","asyncDecorator","isURLSameOrigin","isMSIE","cookies","expires","domain","secure","cookie","isAbsoluteURL","combineURLs","baseURL","relativeURL","buildFullPath","requestedURL","allowAbsoluteUrls","isRelativeUrl","headersToObject","mergeConfig","config1","config2","getMergedValue","mergeDeepProperties","valueFromConfig2","defaultToConfig2","mergeDirectKeys","mergeMap","configValue","resolveConfig","newConfig","withXSRFToken","xsrfHeaderName","xsrfCookieName","auth","formHeaders","allowedHeaders","xsrfValue","isXHRAdapterSupported","xhrAdapter","_config","requestData","requestHeaders","responseType","onUploadProgress","onDownloadProgress","onCanceled","uploadThrottled","downloadThrottled","flushUpload","flushDownload","done","onloadend","responseHeaders","timeoutErrorMessage","protocol","composeSignals","signals","controller","aborted","onabort","signal","streamChunk","chunk","chunkSize","pos","readBytes","iterable","readStream","stream","reader","trackStream","onProgress","onFinish","_onFinish","loadedBytes","DEFAULT_CHUNK_SIZE","globalFetchAPI","Request","Response","ReadableStream","TextEncoder","test","factory","env","envFetch","isFetchSupported","isRequestSupported","isResponseSupported","isReadableStreamSupported","encodeText","supportsRequestStream","duplexAccessed","hasContentType","supportsResponseStream","resolvers","res","getBodyLength","resolveBodyLength","cancelToken","withCredentials","_fetch","composedSignal","requestContentLength","_request","contentTypeHeader","isCredentialsSupported","resolvedOptions","isStreamResponse","responseContentLength","responseData","seedCache","getFetch","fetch","seeds","seed","knownAdapters","fetchAdapter.getFetch","renderReason","isResolvedHandle","adapter","adapters","nameOrAdapter","rejectedReasons","reasons","throwIfCancellationRequested","dispatchRequest","VERSION","validators","deprecatedWarnings","validator","version","formatMessage","opt","desc","opts","correctSpelling","assertOptions","schema","allowUnknown","Axios$1","instanceConfig","configOrUrl","dummy","paramsSerializer","contextHeaders","requestInterceptorChain","synchronousRequestInterceptors","interceptor","responseInterceptorChain","chain","onFulfilled","onRejected","fullPath","Axios","generateHTTPMethod","isForm","CancelToken$1","CancelToken","executor","resolvePromise","onfulfilled","abort","spread","isAxiosError","HttpStatusCode","createInstance","axios","all","Cancel","formToJSON","getAdapter","ENERGY_FACTOR","protein","carbohydrates","fat","NutritionalValues","bodyWeight","energy","carbohydratesSugar","fatSaturated","fiber","sodium","energyKj","percent","perBodyKg","fromIngredient","ingredient","amount","weightUnit","out","weight","grams","add","equals","defer","rej","makeString","lastOfPathSeparatorRegExp","cleanKey","canNotTraverseDeeper","getLastOfPath","Empty","stackIndex","setPath","pushPath","concat","getPathWithDefaults","defaultData","deepExtend","overwrite","regexEscape","_entityMap","RegExpCache","capacity","regExpFromCache","regExpNew","chars","looksLikeObjectPathRegExpCache","looksLikeObjectPath","nsSeparator","keySeparator","possibleChars","ki","deepFind","nextPath","getCleanedCode","consoleLogger","Logger","concreteLogger","lvl","debugOnly","moduleName","baseLogger","EventEmitter$1","events","numListeners","numTimesAdded","ResourceStore","EventEmitter","ignoreJSONStructure","resources","deep","pack","postProcessor","module","processors","translator","PATH_KEY","createProxy","proxy","keysFromSelector","checkedLoadedFor","shouldHandleAsObject","Translator","services","wouldCheckForNsInKey","seemsNaturalLanguage","parts","lastKey","returnDetails","appendNamespaceToCIMode","resolved","resUsedKey","resExactUsedKey","noObject","joinArrays","handleAsObjectInI18nFormat","needsPluralHandling","hasDefaultValue","defaultValueSuffix","defaultValueSuffixOrdinalFallback","needsZeroSuffixLookup","resForObjHndl","handleAsObject","resType","resTypeIsArray","newKeyToUse","deepKey","usedDefault","usedKey","resForMissing","updateMissing","fk","lngs","fallbackLngs","send","specificDefaultValue","defaultForMissing","suffixes","suffix","skipOnVariables","nestBef","nb","na","nestAft","postProcess","postProcessorNames","found","exactUsedKey","usedLng","usedNS","extracted","needsContextHandling","codes","finalKeys","pluralSuffix","zeroSuffix","ordinalPrefix","contextKey","possibleKey","optionsKeys","useOptionsReplaceForData","LanguageUtil","formattedCode","cleanedLng","lngScOnly","lngOnly","supportedLng","fallbackCode","fallbackCodes","addCode","fc","suffixesOrder","dummyRule","PluralResolver","languageUtils","cleanedCode","cacheKey","lngPart","pluralCategory1","pluralCategory2","pluralCategory","deepFindWithDefaults","regexSafe","Interpolator","escape$1","escapeValue","useRawValueToEscape","prefixEscaped","suffixEscaped","formatSeparator","unescapeSuffix","unescapePrefix","nestingPrefix","nestingPrefixEscaped","nestingSuffix","nestingSuffixEscaped","nestingOptionsSeparator","maxReplaces","alwaysFormat","getOrResetRegExp","existingRegExp","replaces","handleFormat","missingInterpolationHandler","todo","matchedVar","safeValue","clonedOptions","handleHasOptions","inheritedOptions","sep","optionsString","matchedSingleQuotes","matchedDoubleQuotes","formatters","keyEndIndex","elem","parseFormatStr","formatStr","formatName","formatOptions","optStr","trimmedKey","createCachedFormatter","optForCache","frm","createNonCachedFormatter","Formatter$1","cf","formatter","formats","mem","formatted","valOptions","removePending","Connector","backend","store","languages","toLoad","toLoadLanguages","toLoadNamespaces","hasAllNamespaces","loadedKeys","fcName","tried","resolver","fallbackValue","isUpdate","clb","get","transformOptions","bindMemberFunctions","inst","I18n","defOpts","createClassOnDemand","ClassOrObject","Formatter","lu","deferred","load","finish","usedCallback","li","lngInLngs","setLngProps","setLng","fl","fixedT","resultKey","fallbackLng","lastLng","loadState","preResult","preloaded","newLngs","ti","rtlLngs","forkResourceStore","mergedOptions","clone","clonedData","isSameDay","date1","date2","getFullYear","getMonth","getDate","dateToYYYYMMDD","date","toISOString","split","dateTimeToLocaleHHMM","dateTime","locale","toLocaleTimeString","hour","minute","dateTimeToLocale","toLocaleString","year","month","day","dateTimeToHHMM","toTimeString","HHMMToDateTime","Date","setHours","parseInt","setMinutes","calculatePastDate","currentDate","applyFilter","lastWeek","setDate","lastMonth","setMonth","lastHalfYear","lastYear","setFullYear","Meal","planId","diaryEntries","isRealMeal","PSEUDO_MEAL_ID","timeHHMMLocale","diaryEntriesToday","datetime","plannedNutritionalValues","nutritionalValues","loggedNutritionalValuesToday","overrides","fromJson","json","toJson","MealAdapter","plan","NutritionalPlan","creationDate","description","onlyLogging","goalEnergy","goalProtein","goalCarbohydrates","goalFiber","goalSodium","goalFat","goalFatsSaturated","meals","hasAnyGoals","hasAnyAdvancedGoals","hasAnyPlanned","loggedNutritionalValues7DayAvg","today","sevenDaysAgo","getTime","relevantEntries","getAverageNutritionalValuesFromDiaryEntries","getNutritionalValuesFromDiaryEntries","groupDiaryEntries","reduce","dateKey","entriesForDay","push","set","Map","percentageValuesLoggedToday","pseudoMealOthers","mealId","loggedNutritionalValuesDate","loggedEntriesDate","nrOfEntries","NutritionalPlanAdapter","creation_date","only_logging","goal_energy","goal_protein","goal_carbohydrates","goal_fiber","goal_fat","goal_sodium","goal_fats_saturated","nutritionalPlanAdapter","WeightEntry","WeightAdapter","parseFloat","PUBLIC_URL","SERVER_URL","VITE_API_SERVER","import","VITE_API_KEY","base64","getWholeCharAndI","block","charCode","slug","slugify","charAndI","locales","defaultLocale","localeMap","lengths","disallowedChars","matchedMultichar","initialMulticharmap","initialCharmap","customMap","multi","single","this","makeUrl","paths","server","objectMethod","Object","encodeURIComponent","pop","join","WgerLink","DASHBOARD","ROUTINE_OVERVIEW","ROUTINE_DETAIL","ROUTINE_EDIT","ROUTINE_DETAIL_TABLE","ROUTINE_EDIT_PROGRESSION","ROUTINE_ADD","ROUTINE_LOGS_OVERVIEW","ROUTINE_STATS_OVERVIEW","ROUTINE_PDF_TABLE","ROUTINE_PDF_LOGS","ROUTINE_ICAL","ROUTINE_COPY","ROUTINE_ADD_LOG","TEMPLATE_DETAIL","PRIVATE_TEMPLATE_OVERVIEW","PUBLIC_TEMPLATE_OVERVIEW","EXERCISE_DETAIL","EXERCISE_OVERVIEW","EXERCISE_CONTRIBUTE","WEIGHT_OVERVIEW","WEIGHT_ADD","MEASUREMENT_OVERVIEW","MEASUREMENT_DETAIL","NUTRITION_OVERVIEW","NUTRITION_DETAIL","NUTRITION_PLAN_PDF","NUTRITION_PLAN_COPY","NUTRITION_DIARY","INGREDIENT_DETAIL","CALENDAR","makeLink","langShort","id2","getCookie","cookieValue","document","substring","decodeURIComponent","makeHeader","DJANGO_CSRF_COOKIE","csrfCookie","WEIGHT_PATH","getWeights","date__gte","ordering","receivedWeights","deleteWeight","delete","updateWeight","patch","createWeight","MAX_LENGTH","truncateLongNames","maxLength","makeServerKey","toLowerCase","getTranslationKey","console","Muscle","nameEn","isFront","translatedName","getName","MuscleAdapter","name_en","is_front","MUSCLES_PATH","getMuscles","receivedMuscles","hasXSS","fieldContentRegExp","serializeCookie","maxAge","minutes","cookieOptions","nameEQ","ca","cookie$1","lookupCookie","cookieMinutes","cookieDomain","querystring","lookupQuerystring","lookupHash","lookupFromHashIndex","hasLocalStorageSupport","localStorageAvailable","testKey","localStorage","lookupLocalStorage","hasSessionStorageSupport","sessionStorageAvailable","sessionStorage","lookupSessionStorage","navigator$1","userLanguage","htmlTag","internalHtmlTag","lookupFromPathIndex","subdomain","lookupFromSubdomainIndex","internalLookupFromSubdomainIndex","canCookies","Browser","detector","detectionOrder","detected","detectorName","lookup","caches","cacheName","_typeof","hasXMLHttpRequest","isPromise","maybePromise","makePromise","ownKeys","_objectSpread","_defineProperty","_toPropertyKey","_toPrimitive","fetchApi","XmlHttpRequestApi","ActiveXObjectApi","__vitePreload","mod","addQueryString","queryString","paramName","fetchIt","altFetch","altResponse","omitFetchOptions","requestWithFetch","reqOptions","requestWithXmlHttpRequest","_classCallCheck","_defineProperties","_createClass","Backend","allOptions","loadUrlLanguages","loadUrlNamespaces","loadPath","resolvedLoadPath","errorMessage","isNetworkError","term","parseErr","finished","dataArray","resArray","addPath","_this5","_this$services","backendConnector","logger","currentLanguage","use","LanguageDetector","detection","Equipment","EquipmentAdapter","EQUIPMENT_PATH","getEquipment","receivedEquipment","Category","CategoryAdapter","CATEGORY_PATH","getCategories","receivedCategories","ImageStyle","LINE_ART","THREE_D","LOW_POLY","PHOTO","OTHER","ExerciseImage","uuid","isMain","ExerciseImageAdapter","is_main","Alias","alias","AliasAdapter","Note","exercise","note","NoteAdapter","Translation","notes","authors","nameLong","nameSlug","TranslationAdapter","author_history","ExerciseVideo","ExerciseVideoAdapter","video","Language","nameShort","LanguageAdapter","short_name","full_name","ENGLISH_LANGUAGE_ID","ENGLISH_LANGUAGE_CODE","ENGLISH_LANGUAGE_OBJ","MIN_ACCOUNT_AGE","REP_UNIT_REPETITIONS","WEIGHT_UNIT_KG","WEIGHT_UNIT_LB","QUERY_EXERCISE_VARIATIONS","QUERY_EXERCISE_DETAIL","QUERY_PERMISSION","QUERY_MEASUREMENTS","QUERY_MEASUREMENTS_CATEGORIES","QueryKey","SESSION_SEARCH","SESSIONS_FULL","ROUTINE_LOGS","ROUTINE_LOG_DATA","ROUTINE_STATS","ROUTINES_ACTIVE","ROUTINES_SHALLOW","PRIVATE_TEMPLATES","PUBLIC_TEMPLATES","NUTRITIONAL_PLANS","NUTRITIONAL_PLAN","NUTRITIONAL_PLAN_DIARY","NUTRITIONAL_PLAN_LAST","INGREDIENT","BODY_WEIGHT","ROUTINE_WEIGHT_UNITS","ROUTINE_REP_UNITS","QUERY_PROFILE","EXERCISES","EXERCISE_VARIATIONS","LANGUAGES","CATEGORIES","EQUIPMENT","MUSCLES","QUERY_NOTES","ApiPath","MEAL","MEAL_ITEM","NUTRITIONAL_DIARY","INGREDIENTINFO_PATH","INGREDIENT_SEARCH_PATH","INGREDIENT_WEIGHT_UNIT","ROUTINE","WEIGHT_CONFIG","MAX_WEIGHT_CONFIG","REPETITIONS_CONFIG","MAX_REPS_CONFIG","RIR_CONFIG","MAX_RIR_CONFIG","NR_OF_SETS_CONFIG","MAX_NR_OF_SETS_CONFIG","REST_CONFIG","MAX_REST_CONFIG","DAY","SLOT","SLOT_ENTRY","SESSION","WORKOUT_LOG","PRIVATE_TEMPLATE","PUBLIC_TEMPLATE","API_PROFILE_PATH","API_MAX_PAGE_SIZE","API_RESULTS_PAGE_SIZE","LIST_OF_COLORS8","LIST_OF_COLORS5","LIST_OF_COLORS3","PAGINATION_OPTIONS","pageSizeOptions","TIMEZONE","LANGUAGE_SHORT_ENGLISH","SNACKBAR_AUTO_HIDE_DURATION","DEBOUNCE_ROUTINE_FORMS","Exercise","category","equipment","muscles","musclesSecondary","images","variationId","translations","videos","availableLanguages","mainImage","find","sideImages","getTranslation","languageId","translation","ExerciseAdapter","categoryAdapter","equipmentAdapter","muscleAdapter","imageAdapter","translationAdapter","videoAdapter","muscles_secondary","variations","some","Error","EXERCISE_INFO_PATH","EXERCISE_PATH","EXERCISE_SUBMISSION_PATH","processExerciseApiData","baseData","getExercises","getExercise","getExercisesForVariation","addFullExercise","categoryId","equipmentIds","muscleIds","secondaryMuscleIds","license_author","author","variations_connect_to","variationsConnectTo","comments","editExercise","deleteExercise","replacementUUID","replaced_by","EXERCISE_TRANSLATION_PATH","EXERCISE_SEARCH_PATH","searchExerciseTranslations","languageCode","searchEnglish","suggestions","addTranslation","exerciseId","editTranslation","deleteExerciseTranslation","API_LANGUAGE_PATH","getLanguages","receivedLanguages","getLanguageByShortName","shortName","IMAGE_PATH","postExerciseImage","license_title","imageData","license_object_url","objectUrl","license_author_url","authorUrl","license_derivative_source_url","derivativeSourceUrl","deleteExerciseImage","imageId","ALIAS_PATH","postAlias","translationId","deleteAlias","aliasId","VIDEO_PATH","postExerciseVideo","deleteExerciseVideo","videoId","OPERATION_REPLACE","OPERATION_ADD","OPERATION_SUBSTRACT","REQUIREMENTS_VALUES","STEP_VALUES_SELECT","OPERATION_VALUES_SELECT","RIR_VALUES_SELECT_LIST","RIR_VALUES_SELECT","BaseConfig","slotEntryId","iteration","operation","repeat","requirements","BaseConfigAdapter","slot_entry","SlotEntry","slotId","repetitionUnitId","repetitionRounding","weightUnitId","weightRounding","weightConfigs","maxWeightConfigs","repetitionsConfigs","maxRepetitionsConfigs","restTimeConfigs","maxRestTimeConfigs","nrOfSetsConfigs","maxNrOfSetsConfigs","rirConfigs","maxRirConfigs","repetitionUnit","configs","hasProgressionRules","SlotEntryAdapter","baseConfigAdapter","weight_configs","max_weight_configs","repetitions_configs","max_repetitions_configs","set_nr_configs","max_set_nr_configs","rest_configs","max_rest_configs","rir_configs","max_rir_configs","repetition_unit","repetition_rounding","weight_unit","weight_rounding","Slot","dayId","SlotAdapter","Day","routineId","isRest","needLogsToAdvance","isSpecialType","getDisplayName","getDayName","DayAdapter","routine","is_rest","need_logs_to_advance","LogData","exercises","muscle","upper_body","lower_body","GroupedLogData","mesocycle","weekly","daily","RoutineStatsData","volume","intensity","sets","RoutineStatsDataAdapter","convertLogDataToClass","logData","muscleId","convertGroupedLogDataToClass","groupedLogData","LuxonError","InvalidDateTimeError","InvalidIntervalError","InvalidDurationError","ConflictingSpecificationError","InvalidUnitError","InvalidArgumentError","ZoneIsAbstractError","DATE_SHORT","DATE_MED","DATE_MED_WITH_WEEKDAY","DATE_FULL","DATE_HUGE","TIME_SIMPLE","TIME_WITH_SECONDS","TIME_WITH_SHORT_OFFSET","TIME_WITH_LONG_OFFSET","TIME_24_SIMPLE","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","ts","otherZone","singleton$1","SystemZone","parseZoneInfo","formatOffset","dtfCache","makeDTF","zoneName","dtf","typeToPos","hackyOffset","fMonth","fDay","fYear","fadOrBc","fHour","fMinute","fSecond","partsOffset","ianaZoneCache","IANAZone","zone","adOrBc","second","asUTC","objToLocalTS","asTS","over","intlLFCache","getCachedLF","locString","intlDTCache","getCachedDTF","intlNumCache","getCachedINF","inf","intlRelCache","getCachedRTF","cacheKeyOpts","sysLocaleCache","systemLocale","intlResolvedOptionsCache","getCachedIntResolvedOptions","weekInfoCache","getCachedWeekInfo","fallbackWeekSettings","parseLocaleString","localeStr","xIndex","uIndex","selectedStr","smaller","numberingSystem","calendar","intlConfigString","outputCalendar","mapMonths","ms","dt","DateTime","mapWeekdays","listStuff","loc","englishFn","intlFn","supportsFastNumbers","PolyNumberFormatter","intl","forceSimple","padTo","floor","otherOpts","intlOpts","roundTo","padStart","PolyDateFormatter","gmtOffset","offsetZ","part","offsetName","PolyRelFormatter","isEnglish","hasRelative","formatRelativeTime","Locale","weekSettings","defaultToEN","specifiedLocale","Settings","localeR","numberingSystemR","outputCalendarR","weekSettingsR","validateWeekSettings","numbering","parsedLocale","parsedNumberingSystem","parsedOutputCalendar","isActuallyEn","hasNoWeirdness","alts","months","monthSpecialCase","weekdays","meridiems","eras","df","matching","hasLocaleWeekInfo","singleton","FixedOffsetZone","signedOffset","InvalidZone","normalizeZone","defaultZone","lowered","numberingSystems","numberingSystemsUTF16","hanidecChars","parseDigits","digitRegexCache","resetDigitRegexCache","digitRegex","appendCache","defaultNumberingSystem","defaultOutputCalendar","twoDigitCutoffYear","throwOnInvalid","defaultWeekSettings","cutoffYear","Invalid","explanation","nonLeapLadder","leapLadder","unitOutOfRange","dayOfWeek","js","computeOrdinal","isLeapYear","uncomputeOrdinal","ordinal","month0","isoWeekdayToLocal","isoWeekday","startOfWeek","gregorianToWeek","gregObj","minDaysInFirstWeek","weekday","weekNumber","weekYear","weeksInWeekYear","timeObject","weekToGregorian","weekData","weekdayOfJan4","yearInDays","daysInYear","gregorianToOrdinal","gregData","ordinalToGregorian","ordinalData","usesLocalWeekValues","hasInvalidWeekData","validYear","isInteger","validWeek","integerBetween","validWeekday","hasInvalidOrdinalData","validOrdinal","hasInvalidGregorianData","validMonth","validDay","daysInMonth","hasInvalidTimeData","millisecond","validHour","validMinute","validSecond","validMillisecond","maybeArray","bestBy","by","best","pick","settings","floorMod","isNeg","padded","parseInteger","parseFloating","parseMillis","fraction","number","digits","rounding","factor","modMonth","modYear","firstWeekOffset","weekOffset","weekOffsetNext","untruncateYear","offsetFormat","timeZone","modified","offHourStr","offMinuteStr","offHour","offMin","offMinSigned","asNumber","numericValue","normalizeObject","normalizer","hours","sign","monthsLong","monthsShort","monthsNarrow","weekdaysLong","weekdaysShort","weekdaysNarrow","erasLong","erasShort","erasNarrow","meridiemForDateTime","weekdayForDateTime","monthForDateTime","eraForDateTime","numeric","narrow","units","lastable","isDay","isInPast","fmtValue","singular","lilUnits","fmtUnit","stringifyTokens","splits","tokenToString","macroTokenToFormatOpts","fmt","currentFull","bracketed","formatOpts","signDisplay","knownEnglish","useDateTimeFormatter","extract","meridiem","standalone","maybeMacro","era","dur","invertLargest","tokenToField","lildur","inversionFactor","realTokens","literal","collapsed","durationInfo","ianaRegex","combineRegexes","regexes","full","combineExtractors","extractors","mergedVals","mergedZone","ex","patterns","extractor","simpleParse","offsetRegex","isoExtendedZone","isoTimeBaseRegex","isoTimeRegex","isoTimeExtensionRegex","isoYmdRegex","isoWeekRegex","isoOrdinalRegex","extractISOWeekData","extractISOOrdinalData","sqlYmdRegex","sqlTimeRegex","sqlTimeExtensionRegex","int","fallback","extractISOYmd","extractISOTime","extractISOOffset","local","fullOffset","extractIANAZone","isoTimeOnly","isoDuration","extractISODuration","yearStr","monthStr","weekStr","dayStr","hourStr","minuteStr","secondStr","millisecondsStr","hasNegativePrefix","negativeSeconds","maybeNegate","num","force","obsOffsets","fromStrings","weekdayStr","rfc2822","extractRFC2822","obsOffset","milOffset","preprocessRFC2822","rfc1123","rfc850","ascii","extractRFC1123Or850","extractASCII","isoYmdWithTimeExtensionRegex","isoWeekWithTimeExtensionRegex","isoOrdinalWithTimeExtensionRegex","isoTimeCombinedRegex","extractISOYmdTimeAndOffset","extractISOWeekTimeAndOffset","extractISOOrdinalDateAndTime","extractISOTimeAndOffset","parseISODate","parseRFC2822Date","parseHTTPDate","parseISODuration","extractISOTimeOnly","parseISOTimeOnly","sqlYmdWithTimeExtensionRegex","sqlTimeCombinedRegex","extractISOTimeOffsetAndIANAZone","parseSQL","INVALID$2","lowOrderMatrix","casualMatrix","daysInYearAccurate","daysInMonthAccurate","accurateMatrix","orderedUnits$1","reverseUnits","clone$1","clear","conf","Duration","durationToMillis","matrix","vals","sum","normalizeValues","previousVal","conv","rollUp","removeZeroes","newVals","accurate","durationLike","invalid","fmtOpts","showZeros","millis","mixed","conversionAccuracy","built","accumulated","lastUnit","own","ak","negated","eq","v1","v2","INVALID$1","validateStartEnd","Interval","builtStart","friendlyDateTime","builtEnd","validateError","startIsValid","endIsValid","dateTimes","added","numberOfParts","intervals","final","sofar","currentCount","ends","flattened","dateFormat","Info","proto","locObj","dayDiff","earlier","utcDayStart","highOrderDiffs","differs","days","lowestOrder","highWater","differ","remainingMillis","lowerOrderUnits","MISSING_FTP","intUnit","NBSP","spaceOrNBSP","spaceOrNBSPRegExp","fixListRegex","stripInsensitivities","oneOf","startIndex","groups","simple","escapeToken","unitForToken","one","two","three","four","six","oneOrTwo","oneToThree","oneToSix","oneToNine","twoToFour","fourToSix","partTypeStyleToTokenVal","tokenForPart","resolvedOpts","isSpace","actualType","buildRegex","matchIndex","dateTimeFromMatches","toField","specificOffset","dummyDateTimeCache","getDummyDateTime","maybeExpandMacroToken","formatOptsToTokens","expandMacroTokens","TokenParser","regexString","rawMatches","explainFromTokens","parseFromTokens","invalidReason","INVALID","MAX_DATE","unsupportedZone","possiblyCachedWeekData","possiblyCachedLocalWeekData","fixOffset","localTS","tz","utcGuess","o2","o3","tsToObj","objToTS","adjustTime","oPre","millisToAdd","parseDataToDateTime","parsedZone","setZone","interpretationZone","toTechFormat","allowZ","toISODate","extended","precision","longFormat","toISOTime","suppressSeconds","suppressMilliseconds","includeOffset","extendedZone","showSeconds","defaultUnitValues","defaultWeekUnitValues","defaultOrdinalUnitValues","orderedUnits","orderedWeekUnits","orderedOrdinalUnits","normalizeUnit","normalizeUnitWithLocalWeeks","guessOffsetForZone","zoneOffsetTs","offsetGuess","zoneOffsetGuessCache","quickDT","offsetProvis","diffRelative","lastOpts","argList","ot","zoneToUse","seconds","tsNow","containsOrdinal","containsGregorYear","containsGregorMD","containsGregor","definiteWeekDef","useWeekData","defaultValues","objNow","foundFirst","higherOrderInvalid","gregorian","tsFinal","offsetFinal","localeToUse","localeOpts","tokenList","dayMs","minuteMs","oEarlier","oLater","o1","ts1","ts2","c1","c2","keepLocalTime","keepCalendarTime","newTS","asObj","settingWeekStuff","useLocaleWeeks","normalizedUnit","ext","includePrefix","includeZone","includeOffsetSpace","otherDateTime","durOpts","otherIsLater","diffed","inputMs","adjustedToZone","formatParser","dateTimeish","NAME_MIN_LENGTH","NAME_MAX_LENGTH","DESCRIPTION_MAX_LENGTH","MIN_WORKOUT_DURATION","MAX_WORKOUT_DURATION","DEFAULT_WORKOUT_DURATION","Routine","created","fitInWeek","isTemplate","isPublic","dayData","isNotTemplate","flatMap","dayDataCurrentIteration","getIteration","groupedDayDataByIteration","groupedDayData","fromJSDate","durationWeeks","Math","weeks","durationDays","durationText","nrWeeks","nrDays","mainMuscles","findIndex","secondaryMuscles","cycleLength","routineAdapter","dateToCheck","currentDayData","getSetConfigData","slotData","setConfigs","setConfig","getDayData","RoutineAdapter","fit_in_week","is_template","is_public","SetConfigData","repetitionsUnit","nrOfSets","maxNrOfSets","maxWeight","repetitions","maxRepetitions","repetitionsUnitId","repetitionsRounding","rir","maxRir","rpe","restTime","maxRestTime","textRepr","SetConfigDataAdapter","slot_entry_id","max_sets","max_weight","max_repetitions","repetitions_unit","repetitions_rounding","max_rir","max_rest","text_repr","SlotData","isSuperset","exerciseIds","SlotDataAdapter","is_superset","RoutineDayData","RoutineDayDataAdapter","WorkoutLog","sessionId","repetitionUnitObj","repetitionsTarget","weightUnitObj","weightTarget","rirTarget","restTimeTarget","exerciseObj","rirString","WorkoutLogAdapter","session","Number","repetitions_target","weight_target","rir_target","rest_target","NOTES_MAX_LENGTH","IMPRESSION_BAD","IMPRESSION_NEUTRAL","IMPRESSION_GOOD","WorkoutSession","impression","timeStart","timeEnd","dayObj","logs","impressionString","textRepresentation","WorkoutSessionAdapter","time_start","time_end","RoutineLogData","RoutineLogDataAdapter","log","RepetitionUnit","RepetitionUnitAdapter","WeightUnit","WeightUnitAdapter","API_SETTING_REP_UNIT_PATH","API_SETTING_WEIGHT_UNIT_PATH","getRoutineRepUnits","receivedUnits","getRoutineWeightUnits","ROUTINE_API_STRUCTURE_PATH","ROUTINE_API_LOGS_PATH","ROUTINE_API_STATS_PATH","ROUTINE_API_ALL_ITERATION_DISPLAY","exerciseMap","processRoutine","responses","Promise","getRoutineDayDataAllIterations","getRoutineStructure","repsUnits","weightUnits","dayDataAllIterations","dayStructure","Set","setData","exercisePromises","Array","slotEntry","getActiveRoutine","getRoutine","getRoutinesShallow","routineData","getPrivateTemplatesShallow","getPublicTemplatesShallow","addRoutine","editRoutine","deleteRoutine","getRoutineLogData","getRoutineStatisticsData","MeasurementCategory","MeasurementCategoryAdapter","MeasurementEntry","MeasurementEntryAdapter","fetchPaginated","API_MEASUREMENTS_CATEGORY_PATH","API_MEASUREMENTS_ENTRY_PATH","getMeasurementCategories","filtersetQueryCategories","filtersetQueryEntries","entryAdapter","categories","catData","entryResponses","settingsResponses","findLast","getMeasurementCategory","measurements","addMeasurementCategory","editMeasurementCategory","deleteMeasurementCategory","deleteMeasurementEntry","editMeasurementEntry","addMeasurementEntry","IngredientImage","lastUpdate","IngredientImageAdapter","last_update","IngredientImageThumbnails","small","smallCropped","medium","mediumCropped","large","largeCropped","IngredientImageThumbnailsAdapter","small_cropped","medium_cropped","large_cropped","Ingredient","thumbnails","IngredientAdapter","carbohydrates_sugar","fat_saturated","LARGE_ARRAY_SIZE","CORE_ERROR_TEXT","FUNC_ERROR_TEXT","INVALID_TEMPL_VAR_ERROR_TEXT","HASH_UNDEFINED","MAX_MEMOIZE_SIZE","PLACEHOLDER","CLONE_DEEP_FLAG","CLONE_FLAT_FLAG","CLONE_SYMBOLS_FLAG","COMPARE_PARTIAL_FLAG","COMPARE_UNORDERED_FLAG","WRAP_BIND_FLAG","WRAP_BIND_KEY_FLAG","WRAP_CURRY_BOUND_FLAG","WRAP_CURRY_FLAG","WRAP_CURRY_RIGHT_FLAG","WRAP_PARTIAL_FLAG","WRAP_PARTIAL_RIGHT_FLAG","WRAP_ARY_FLAG","WRAP_REARG_FLAG","WRAP_FLIP_FLAG","DEFAULT_TRUNC_LENGTH","DEFAULT_TRUNC_OMISSION","HOT_COUNT","HOT_SPAN","LAZY_FILTER_FLAG","LAZY_MAP_FLAG","LAZY_WHILE_FLAG","INFINITY","MAX_SAFE_INTEGER","MAX_INTEGER","NAN","MAX_ARRAY_LENGTH","MAX_ARRAY_INDEX","HALF_MAX_ARRAY_LENGTH","wrapFlags","argsTag","arrayTag","asyncTag","boolTag","dateTag","domExcTag","errorTag","funcTag","genTag","mapTag","numberTag","nullTag","objectTag","promiseTag","proxyTag","regexpTag","setTag","stringTag","symbolTag","undefinedTag","weakMapTag","weakSetTag","arrayBufferTag","dataViewTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","reEmptyStringLeading","reEmptyStringMiddle","reEmptyStringTrailing","reEscapedHtml","reUnescapedHtml","reHasEscapedHtml","reHasUnescapedHtml","reEscape","reEvaluate","reInterpolate","reIsDeepProp","reIsPlainProp","rePropName","reRegExpChar","reHasRegExpChar","reTrimStart","reWhitespace","reWrapComment","reWrapDetails","reSplitDetails","reAsciiWord","reForbiddenIdentifierChars","reEscapeChar","reEsTemplate","reFlags","reIsBadHex","reIsBinary","reIsHostCtor","reIsOctal","reIsUint","reLatin","reNoMatch","reUnescapedString","rsAstralRange","rsComboMarksRange","reComboHalfMarksRange","rsComboSymbolsRange","rsComboRange","rsDingbatRange","rsLowerRange","rsMathOpRange","rsNonCharRange","rsPunctuationRange","rsSpaceRange","rsUpperRange","rsVarRange","rsBreakRange","rsApos","rsAstral","rsBreak","rsCombo","rsDigits","rsDingbat","rsLower","rsMisc","rsFitz","rsModifier","rsNonAstral","rsRegional","rsSurrPair","rsUpper","rsZWJ","rsMiscLower","rsMiscUpper","rsOptContrLower","rsOptContrUpper","reOptMod","rsOptVar","rsOptJoin","rsOrdLower","rsOrdUpper","rsSeq","rsEmoji","rsSymbol","reApos","reComboMark","reUnicode","reUnicodeWord","reHasUnicode","reHasUnicodeWord","templateCounter","typedArrayTags","cloneableTags","deburredLetters","htmlEscapes","htmlUnescapes","stringEscapes","freeParseFloat","freeParseInt","freeGlobal","global","freeSelf","freeExports","exports","freeModule","moduleExports","freeProcess","nodeUtil","types","nodeIsArrayBuffer","nodeIsDate","nodeIsMap","nodeIsRegExp","nodeIsSet","nodeIsTypedArray","apply","arrayAggregator","iteratee","accumulator","arrayEach","arrayEachRight","arrayEvery","arrayFilter","resIndex","arrayIncludes","baseIndexOf","arrayIncludesWith","comparator","arrayMap","arrayPush","arrayReduce","initAccum","arrayReduceRight","arraySome","asciiSize","baseProperty","asciiToArray","asciiWords","baseFindKey","eachFunc","baseFindIndex","fromIndex","fromRight","strictIndexOf","baseIsNaN","baseIndexOfWith","baseMean","baseSum","basePropertyOf","baseReduce","baseSortBy","comparer","baseTimes","baseToPairs","baseTrim","trimmedEndIndex","baseUnary","baseValues","cacheHas","charsStartIndex","strSymbols","chrSymbols","charsEndIndex","countHolders","deburrLetter","escapeHtmlChar","escapeStringChar","chr","hasUnicode","hasUnicodeWord","iteratorToArray","mapToArray","overArg","replaceHolders","setToArray","setToPairs","strictLastIndexOf","stringSize","unicodeSize","stringToArray","unicodeToArray","unescapeHtmlChar","unicodeWords","runInContext","Function","RegExp","String","TypeError","arrayProto","funcProto","objectProto","coreJsData","funcToString","idCounter","maskSrcKey","uid","nativeObjectToString","objectCtorString","oldDash","reIsNative","Buffer","Symbol","Uint8Array","allocUnsafe","getPrototype","objectCreate","propertyIsEnumerable","splice","spreadableSymbol","symIterator","symToStringTag","getNative","ctxClearTimeout","ctxNow","ctxSetTimeout","nativeCeil","nativeFloor","nativeGetSymbols","nativeIsBuffer","nativeIsFinite","nativeJoin","nativeKeys","nativeMax","nativeMin","nativeNow","nativeParseInt","nativeRandom","nativeReverse","DataView","WeakMap","nativeCreate","metaMap","realNames","dataViewCtorString","toSource","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","symbolProto","symbolValueOf","symbolToString","lodash","isObjectLike","LazyWrapper","LodashWrapper","wrapperClone","baseCreate","baseLodash","chainAll","lazyClone","copyArray","lazyReverse","lazyValue","isArr","isRight","arrLength","view","getView","iteratees","iterLength","takeCount","baseWrapperValue","outer","iterIndex","Hash","hashClear","hashDelete","hashGet","hashHas","hashSet","ListCache","listCacheClear","listCacheDelete","assocIndexOf","listCacheGet","listCacheHas","listCacheSet","MapCache","mapCacheClear","mapCacheDelete","getMapData","mapCacheGet","mapCacheHas","mapCacheSet","SetCache","setCacheAdd","setCacheHas","stackClear","stackDelete","stackGet","stackHas","stackSet","pairs","arrayLikeKeys","inherited","isArg","isArguments","isBuff","isType","skipIndexes","isIndex","arraySample","baseRandom","arraySampleSize","shuffleSelf","baseClamp","arrayShuffle","assignMergeValue","baseAssignValue","objValue","baseAggregator","baseEach","baseAssign","copyObject","baseAssignIn","keysIn","baseAt","skip","lower","upper","baseClone","bitmask","customizer","isDeep","isFlat","isFull","initCloneArray","getTag","isFunc","cloneBuffer","initCloneObject","copySymbolsIn","copySymbols","initCloneByTag","stacked","isSet","subValue","isMap","keysFunc","getAllKeysIn","getAllKeys","baseConforms","baseConformsTo","baseDelay","setTimeout","baseDifference","includes","isCommon","valuesLength","valuesIndex","createBaseEach","baseForOwn","baseEachRight","baseForOwnRight","baseEvery","baseExtremum","isSymbol","baseFill","toInteger","toLength","baseFilter","baseFlatten","depth","isStrict","isFlattenable","baseFor","createBaseFor","baseForRight","baseFunctions","baseGet","castPath","toKey","baseGetAllKeys","symbolsFunc","baseGetTag","getRawTag","objectToString","baseGt","baseHas","baseHasIn","baseInRange","baseIntersection","arrays","othLength","othIndex","seen","baseInverter","baseInvoke","baseIsArguments","baseIsArrayBuffer","baseIsDate","baseIsEqual","baseIsEqualDeep","equalFunc","objIsArr","othIsArr","objTag","othTag","objIsObj","othIsObj","isSameTag","equalArrays","equalByTag","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","equalObjects","baseIsMap","baseIsMatch","matchData","noCustomizer","srcValue","baseIsNative","isMasked","baseIsRegExp","baseIsSet","baseIsTypedArray","isLength","baseIteratee","identity","baseMatchesProperty","baseMatches","baseKeys","isPrototype","baseKeysIn","nativeKeysIn","isProto","baseLt","baseMap","isArrayLike","getMatchData","matchesStrictComparable","isKey","isStrictComparable","hasIn","baseMerge","srcIndex","baseMergeDeep","safeGet","mergeFunc","isTyped","isArrayLikeObject","cloneTypedArray","toPlainObject","baseNth","baseOrderBy","orders","getIteratee","compareMultiple","basePick","basePickBy","baseSet","basePropertyDeep","basePullAll","indexOf","basePullAt","baseUnset","baseRange","baseRepeat","baseRest","setToString","overRest","baseSample","baseSampleSize","baseSetData","baseSetToString","baseShuffle","baseSlice","baseSome","baseSortedIndex","retHighest","low","high","mid","baseSortedIndexBy","valIsNaN","valIsNull","valIsSymbol","valIsUndefined","othIsDefined","othIsNull","othIsReflexive","othIsSymbol","setLow","baseSortedUniq","baseToNumber","baseToString","baseUniq","createSet","seenIndex","baseUpdate","baseWhile","isDrop","baseXor","baseZipObject","assignFunc","valsLength","castArrayLikeObject","castFunction","stringToPath","castRest","castSlice","clearTimeout","cloneArrayBuffer","arrayBuffer","cloneDataView","dataView","cloneRegExp","regexp","cloneSymbol","symbol","typedArray","compareAscending","valIsDefined","valIsReflexive","objCriteria","othCriteria","ordersLength","composeArgs","partials","holders","isCurried","argsIndex","holdersLength","leftIndex","leftLength","rangeLength","isUncurried","composeArgsRight","holdersIndex","rightIndex","rightLength","isNew","getSymbols","getSymbolsIn","createAggregator","initializer","createAssigner","assigner","sources","guard","isIterateeCall","createBind","isBind","Ctor","createCtor","createCaseFirst","trailing","createCompounder","words","deburr","thisBinding","createCurry","arity","getHolder","createRecurry","createHybrid","createFind","findIndexFunc","createFlow","flatRest","prereq","getFuncName","funcName","getData","isLaziable","partialsRight","holdersRight","argPos","ary","isAry","isBindKey","isFlip","holdersCount","newHolders","reorder","createInverter","toIteratee","createMathOperation","operator","createOver","arrayFunc","createPadding","charsLength","createPartial","createRange","toFinite","createRelationalOperation","toNumber","wrapFunc","isCurry","newHoldersRight","newPartials","newPartialsRight","setWrapToString","createRound","createToPairs","createWrap","mergeData","customDefaultsAssignIn","customDefaultsMerge","customOmitClone","isPartial","arrStacked","othStacked","arrValue","othValue","compared","convert","objProps","objLength","othProps","objStacked","skipCtor","objCtor","othCtor","flatten","otherFunc","isKeyable","isOwn","unmasked","stubArray","ctorString","transforms","getWrapDetails","hasPath","hasFunc","insertWrapDetails","isMaskable","stubFalse","memoizeCapped","srcBitmask","newBitmask","isCombo","otherArgs","oldArray","shortOut","updateWrapDetails","lastCalled","stamp","remaining","rand","quote","subString","compact","difference","differenceBy","differenceWith","drop","dropRight","dropRightWhile","dropWhile","fill","findLastIndex","flattenDeep","flattenDepth","fromPairs","initial","intersection","intersectionBy","intersectionWith","lastIndexOf","nth","pull","pullAll","pullAllBy","pullAllWith","pullAt","remove","reverse","sortedIndex","sortedIndexBy","sortedIndexOf","sortedLastIndex","sortedLastIndexBy","sortedLastIndexOf","sortedUniq","sortedUniqBy","take","takeRight","takeRightWhile","takeWhile","unionBy","unionWith","uniq","uniqBy","uniqWith","unzip","unzipWith","without","xor","xorBy","xorWith","zip","zipObject","zipObjectDeep","zipWith","tap","thru","wrapperAt","wrapperChain","wrapperCommit","wrapperNext","wrapperToIterator","wrapperPlant","wrapperReverse","wrapperValue","countBy","every","flatMapDeep","flatMapDepth","forEachRight","invokeMap","keyBy","orderBy","partition","reduceRight","negate","sample","sampleSize","shuffle","sortBy","after","bindKey","curry","curryRight","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","invokeFunc","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","isInvoking","memoized","once","overArgs","funcsLength","partial","partialRight","rearg","unary","castArray","cloneWith","cloneDeep","cloneDeepWith","conformsTo","gt","gte","isEqual","isEqualWith","isFinite","isMatch","isMatchWith","isNaN","isNative","isNull","isNil","isSafeInteger","isWeakMap","isWeakSet","lt","lte","remainder","isBinary","toSafeInteger","assignIn","assignInWith","assignWith","at","propsIndex","propsLength","defaultsDeep","mergeWith","findLastKey","forIn","forInRight","forOwn","forOwnRight","functions","functionsIn","has","invert","invertBy","mapKeys","mapValues","omit","omitBy","pickBy","setWith","toPairs","toPairsIn","isArrLike","unset","updateWith","valuesIn","random","floating","camelCase","word","upperFirst","escapeRegExp","kebabCase","lowerCase","lowerFirst","pad","strLength","padEnd","radix","snakeCase","startCase","startsWith","template","imports","importsKeys","importsValues","isEscaping","isEvaluating","interpolate","reDelimiters","sourceURL","interpolateValue","esTemplateValue","evaluateValue","attempt","toLower","toUpper","trimEnd","trimStart","truncate","omission","newEnd","upperCase","bindAll","methodNames","cond","conforms","defaultTo","flow","flowRight","matchesProperty","methodOf","mixin","noConflict","nthArg","overEvery","overSome","propertyOf","rangeRight","stubObject","stubString","stubTrue","times","toPath","uniqueId","augend","addend","ceil","divide","dividend","divisor","maxBy","mean","meanBy","minBy","multiplier","multiplicand","subtract","minuend","subtrahend","sumBy","isFilter","takeName","dropName","checkIteratee","isTaker","lodashFunc","retUnwrapped","isLazy","useLazy","isHybrid","isUnwrapped","onlyLazy","chainName","getIngredient","receivedIngredient","getIngredients","ids","id__in","searchIngredient","DiaryEntry","ingredientId","amountString","toFixed","DiaryEntryAdapter","meal","MealItem","diaryEntry","MealItemAdapter","addMealItem","editMealItem","mealItem","deleteMealItem","NutritionWeightUnit","NutritionWeightUnitAdapter","gram","getWeightUnit","unitId","receivedUnit","addMeal","editMeal","deleteMeal","getMealsForPlan","ingredientIds","receivedMeals","receivedMealItems","ingredients","deleteLog","editLog","addLogs","editSlotEntry","deleteSlotEntry","addSlotEntry","editDay","addDay","deleteDay","addSlot","editSlot","deleteSlot","processBaseConfigs","maxValues","processEntries","toAdd","toEdit","toDelete","apiPath","addBaseConfig","editBaseConfig","deleteBaseConfig","editWeightConfig","addWeightConfig","deleteWeightConfig","editMaxWeightConfig","addMaxWeightConfig","deleteMaxWeightConfig","editRepetitionsConfig","addRepetitionsConfig","deleteRepetitionsConfig","editMaxRepetitionsConfig","addMaxRepetitionsConfig","deleteMaxRepetitionsConfig","editNrOfSetsConfig","addNrOfSetsConfig","deleteNrOfSetsConfig","editMaxNrOfSetsConfig","addMaxNrOfSetsConfig","editRirConfig","addRirConfig","deleteRirConfig","editMaxRirConfig","addMaxRirConfig","deleteMaxRirConfig","editRestConfig","addRestConfig","deleteRestConfig","editMaxRestConfig","addMaxRestConfig","deleteMaxRestConfig","searchSession","queryParams","getSessions","filtersetQuerySessions","filtersetQueryLogs","sessionAdapter","logAdapter","logPage","sessionPage","sessionData","addSession","editSession","getNutritionalDiaryEntries","filtersetQuery","loadUnit","loadIngredient","addNutritionalDiaryEntry","editNutritionalDiaryEntry","Profile","username","email","emailVerified","dateJoined","isTrustworthy","useMetric","ProfileAdapter","email_verified","date_joined","is_trustworthy","getProfile","editProfile","LANGUAGE_DETECTION","checkLanguage","API_NUTRITIONAL_PLAN_PATH","getNutritionalPlansSparse","receivedPlans","getLastNutritionalPlan","receivedPlan","getNutritionalPlanFull","addNutritionalPlan","editNutritionalPlan","deleteNutritionalPlan","useFetchNutritionalPlansQuery","useFetchLastNutritionalPlanQuery","useFetchNutritionalPlanQuery","useFetchNutritionalPlanDateQuery","dateStr","useAddNutritionalPlanQuery","mutationFn","onSuccess","invalidateQueries","useDeleteNutritionalPlanQuery","useEditNutritionalPlanQuery","useNutritionDiaryQuery","JSON","useAddDiaryEntryQuery","useAddDiaryEntriesQuery","useEditDiaryEntryQuery","useAddMealQuery","useDeleteMealQuery","useEditMealQuery","useAddMealItemQuery","useEditMealItemQuery","useDeleteMealItemQuery","numberLocale","maximumFractionDigits","numberUnitLocale","valueOf","numberGramLocale","LocaleUnit","numberPercentLocale","LinearPlannedLoggedChart","hasPlanned","planned","percentage","logged","isUnsafeProperty","isDeepKey","quoteChar","bracket","require$$1","require$$2","require$$3","getWithPath","mathSign","isNan","isPercent","isNumOrStr","getPercentValue","totalValue","validate","hasDuplicate","interpolateNumber","numberA","numberB","findEntryInArray","specifiedKey","specifiedValue","getLinearRegression","xsum","ysum","xysum","xxsum","xmin","xmax","xcurrent","ycurrent","isNullish","EventKeys","isEventKey","allowedEventKeys","SVGContainerPropKeys","PolyElementKeys","FilteredElementKeyMap","adaptEventHandlers","newHandler","getEventHandlerOfChild","originalHandler","adaptEventsOfChild","SVGElementPropKeys","isSvgElementPropKey","allowedSvgKeys","svgPropertiesNoEvents","filteredEntries","Comp","lastChildren","lastResult","isFragment","findAllByType","childType","isClipDot","dot","isValidSpreadableProp","includeEvents","svgElementType","matchingElementTypeKeys","isDataAttribute","isSpecificSvgAttribute","isEventAttribute","filterProps","_inputProps","_excluded","_objectWithoutProperties","Surface","others","svgView","layerClass","Layer","LegendPortalContext","useLegendPortal","constant$1","cos","sin","sqrt","pi","tau","epsilon","tauEpsilon","appendRound","Path","x1","y1","x2","y2","x0","y0","x21","y21","x01","y01","l01_2","x20","y20","l21_2","l20_2","l21","l01","t01","t21","a0","a1","ccw","dx","dy","cw","da","withPath","array$1","Linear","curveLinear","shapeLine","defined","curve","pointX","pointY","defined0","shapeArea","area","x0z","y0z","arealine","Bump","bumpX","bumpY","symbolCircle","symbolCross","tan30","tan30_2","symbolDiamond","symbolSquare","ka","kr","kx","ky","symbolStar","sqrt3","symbolTriangle","symbolWye","circle","noop$b","point","that","Basis","curveBasis","BasisClosed","curveBasisClosed","BasisOpen","curveBasisOpen","LinearClosed","curveLinearClosed","slope3","h0","h1","s0","s1","slope2","t0","t1","MonotoneX","MonotoneY","ReflectContext","monotoneX","monotoneY","Natural","controlPoints","py","i0","i1","curveNatural","curveStep","stepBefore","stepAfter","stackOffsetNone","series","stackOrderNone","stackValue","stackSeries","shapeStack","orderNone","offsetNone","sz","oz","stackOffsetExpand","none","stackOffsetSilhouette","stackOffsetWiggle","s2","si","sij0","sij1","s3","sk","skj0","skj1","symbolFactories","RADIAN","getSymbolFactory","calculateAreaSize","sizeType","angle","registerSymbol","Symbols","realType","symbolFactory","shapeSymbol","cx","cy","filteredProps","DefaultLegendContent","iconType","inactiveColor","halfSize","sixthSize","thirdSize","preferredIcon","iconProps","iconSize","layout","itemStyle","svgStyle","finalFormatter","finalValue","finalStyle","isPrimitive","isMatchWithInternal","doesMatch","isObjectMatch","isArrayMatch","isMapMatch","isSetMatch","sourceValue","targetValue","countedIndex","sourceItem","targetItem","booleanTag","argumentsTag","functionTag","uint8ArrayTag","uint8ClampedArrayTag","uint16ArrayTag","uint32ArrayTag","bigUint64ArrayTag","int8ArrayTag","int16ArrayTag","int32ArrayTag","bigInt64ArrayTag","float32ArrayTag","float64ArrayTag","require$$4","cloneValue","cloneDeepWithImpl","valueToClone","keyToClone","objectToClone","cloned","copyProperties","isCloneableObject","cloneDeepWith$1","IS_UNSIGNED_INTEGER","resolvedPath","uniqBy$1","iteratee$1","getUniqPayload","defaultUniqBy","is","objectIs","useLayoutEffect","useDebugValue","useSyncExternalStore$2","_useState","forceUpdate","checkIfSnapshotChanged","latestGetSnapshot","nextValue","useSyncExternalStore$1","useSyncExternalStoreShim_production","shimModule","useSyncExternalStore","useMemo","withSelector_production","instRef","memoizedSelector","nextSnapshot","hasMemo","memoizedSnapshot","currentSelection","memoizedSelection","nextSelection","maybeGetServerSnapshot","withSelectorModule","RechartsReduxContext","noopDispatch","useAppDispatch","addNestedSubNoop","refEquality","useAppSelector","useSyncExternalStoreWithSelector","NOT_FOUND","assertIsFunction","assertIsObject","assertIsArrayOfFunctions","itemTypes","ensureIsArray","getDependencies","createSelectorArgs","dependencies","collectInputSelectorResults","inputSelectorArgs","inputSelectorResults","createSingletonCache","createLruCache","maxSize","cacheIndex","put","getEntries","referenceEqualityCheck","createCacheKeyComparator","equalityCheck","lruMemoize","equalityCheckOrOptions","providedOptions","resultEqualityCheck","resultsCount","matchingEntry","StrongRef","Ref","UNTERMINATED","TERMINATED","createCacheNode","weakMapMemoize","fnNode","cacheNode","objectCache","objectNode","primitiveCache","primitiveNode","terminatedNode","lastResultValue","createSelectorCreator","memoizeOrOptions","memoizeOptionsFromArgs","createSelectorCreatorOptions","createSelector2","recomputations","dependencyRecomputations","directlyPassedOptions","resultFunc","combinedOptions","memoizeOptions","argsMemoize","argsMemoizeOptions","finalMemoizeOptions","finalArgsMemoizeOptions","memoizedResultFunc","createSelector","createStructuredSelector","inputSelectorsObject","selectorCreator","inputSelectorKeys","composition","getPriority","compareValues","aPriority","bPriority","regexIsDeepProp","regexIsPlainProp","getValueByNestedPath","getValueByCriterion","criterion","preparedCriteria","comparedResult","flooredDepth","recursive","currentDepth","selectLegendSettings","selectLegendSize","selectAllLegendPayload2DArray","selectLegendPayload","payloads","itemSorter","flat","useLegendPayload","EPS","useElementOffset","extraDependencies","lastBoundingBox","setLastBoundingBox","updateBoundingBox","box","$$observable","symbol_observable_default","randomString","ActionTypes","actionTypes_default","createStore","preloadedState","enhancer","currentReducer","currentListeners","nextListeners","listenerIdCounter","isDispatching","ensureCanMutateNextListeners","getState","isSubscribed","listenerId","dispatch","replaceReducer","nextReducer","observable","outerSubscribe","observeState","observerAsObserver","assertReducerShape","reducers","combineReducers","reducerKeys","finalReducers","finalReducerKeys","shapeAssertionError","hasChanged","previousStateForKey","nextStateForKey","bindActionCreator","actionCreator","bindActionCreators","actionCreators","boundActionCreators","applyMiddleware","middlewares","createStore2","middlewareAPI","isAction","NOTHING","DRAFTABLE","DRAFT_STATE","die","isDraft","isDraftable","each","iter","getArchtype","propOrOldValue","latest","shallowCopy","strict","isPlain","freeze","isFrozen","dontMutateFrozenCollections","plugins","getPlugin","pluginKey","plugin","currentScope","getCurrentScope","createScope","parent_","immer_","usePatchesInScope","patchListener","revokeScope","leaveScope","revokeDraft","enterScope","immer2","draft","processResult","baseDraft","maybeFreeze","rootScope","finalizeProperty","resultEach","isSet2","parentState","targetObject","rootPath","targetIsSet","createProxyProxy","traps","objectTraps","arrayTraps","revoke","readPropFromProto","prepareCopy","getDescriptorFromProto","current2","markChanged","Immer2","recipe","defaultBase","base2","hasError","ip","patches","inversePatches","applyPatchesImpl","currentImpl","immer","produce","createThunkMiddleware","extraArgument","thunk","withExtraArgument","composeWithDevTools","createAction","prepareAction","prepared","Tuple","_Tuple","freezeDraftable","createNextState","getOrInsertComputed","compute","buildGetDefaultMiddleware","immutableCheck","serializableCheck","actionCreatorCheck","middlewareArray","thunkMiddleware","SHOULD_AUTOBATCH","createQueueWithTimer","autoBatchEnhancer","notifying","shouldNotifyAtEndOfTick","notificationQueued","listeners","queueCallback","notifyListeners","listener2","wrappedListener","buildGetDefaultEnhancers","middlewareEnhancer","autoBatch","enhancerArray","configureStore","getDefaultMiddleware","devTools","enhancers","rootReducer","isPlainObject2","finalMiddleware","finalCompose","compose2","getDefaultEnhancers","storeEnhancers","composedEnhancer","executeReducerBuilderCallback","builderCallback","actionsMap","actionMatchers","defaultCaseReducer","builder","typeOrActionCreator","asyncThunk","isStateFunction","createReducer","mapOrBuilderCallback","finalActionMatchers","finalDefaultCaseReducer","getInitialState","frozenInitialState","caseReducers","reducer2","cr","previousState","caseReducer","isDraft2","isDraftable2","createNextState2","urlAlphabet","nanoid","asyncThunkSymbol","getType","actionKey","buildCreateSlice","creators","cAT","reducerPath","buildReducerCreators","reducerNames","contextMethods","name2","reducerName","reducerDefinition","reducerDetails","isAsyncThunkSliceReducerDefinition","handleThunkCaseReducerDefinition","handleNormalReducerDefinition","buildReducer","extraReducers","finalCaseReducers","sM","selectSelf","injectedSelectorCache","injectedStateCache","_reducer","makeSelectorProps","reducerPath2","injected","selectSlice","sliceState","getSelectors","selectState","selectorCache","wrapSelector","injectable","pathOpt","newReducerPath","rootState","createSlice","payloadCreator","prepare","createNotation","maybeReducerWithPrepare","prepareCallback","isCaseReducerWithPrepareDefinition","settled","task","taskCancelled","taskCompleted","listenerCancelled","listenerCompleted","TaskAbortError","assertFunction","expected","noop2","catchRejection","addAbortSignalListener","abortSignal","abortControllerWithReason","validateActive","raceWithSignal","cleanup","notifyRejection","runTask","task2","cleanUp","createPause","createDelay","timeoutMs","INTERNAL_NIL_TOKEN","alm","createFork","parentAbortSignal","parentBlockingPromises","linkControllers","taskExecutor","childAbortController","result2","createTakePattern","startListening","stopListening","listenerApi","getListenerEntryPropsFrom","createListenerEntry","findListenerEntry","listenerMap","cancelActiveListeners","createClearListenerMiddleware","safelyNotifyError","errorHandler","errorToNotify","errorInfo","errorHandlerError","addListener","clearAllListeners","removeListener","defaultErrorHandler","createListenerMiddleware","middlewareOptions","extra","insertEntry","notifyListener","api","getOriginalState","internalTaskController","autoJoinPromises","listenerError","clearListenerMiddleware","isAction3","originalState","listenerEntries","runListener","predicateError","chartLayoutSlice","_action$payload$top","_action$payload$right","_action$payload$botto","_action$payload$left","setMargin","setLayout","setChartSize","setScale","chartLayoutReducer","radianToDegree","angleInRadian","polarToCartesian","radius","getMaxRadius","distanceBetweenPoints","anotherPoint","getAngleOfPoint","formatAngleOfSector","startAngle","endAngle","startCnt","endCnt","reverseFormatAngleOfSector","inRangeOfSector","innerRadius","outerRadius","formatAngle","getSliced","getValueByDataKey","dataKey","calculateActiveTickIndex","coordinate","ticks","unsortedTicks","axisType","_ticks$length","cur","sameDirectionCoord","diffInterval","curInRange","afterInRange","sameInterval","minValue","maxValue","appendOffsetOfLegend","legendSettings","legendSize","boxWidth","boxHeight","verticalAlign","isCategoricalAxis","getCoordinatesOfGrid","syncWithTicks","hasMin","hasMax","getTicksOfAxis","isGrid","isAll","duplicateDomain","scale","realScaleType","isCategorical","categoricalDomain","tickCount","niceTicks","offsetForBand","scaleContent","checkDomainOfScale","truncateByDomain","offsetSign","positive","negative","offsetPositive","STACK_OFFSET_MAP","getStackedData","dataKeys","offsetType","offsetAccessor","getNormalizedStackId","publicStackId","getCateCoordinateOfLine","bandSize","matchedTick","getCateCoordinateOfBar","getBaseValueOfBar","numericAxis","getDomainOfSingle","makeDomainFinite","getDomainOfStackGroups","stackGroups","stackId","stackedData","sliced","MIN_VALUE_REG","MAX_VALUE_REG","getBandSizeOfAxis","isBar","bandWidth","orderedTicks","getTooltipEntry","tooltipEntrySettings","getTooltipNameProp","nameFromItem","polarViewBox","isInRange","getActiveCoordinate","tooltipTicks","activeIndex","rangeObj","tick","_angle","_radius","calculateTooltipPos","selectChartWidth","selectChartHeight","selectContainerScale","selectMargin","selectAllXAxes","xAxisMap","selectAllYAxes","yAxisMap","DATA_ITEM_INDEX_ATTRIBUTE_NAME","DATA_ITEM_DATAKEY_ATTRIBUTE_NAME","DEFAULT_Y_AXIS_WIDTH","selectBrushHeight","selectLeftAxesOffset","yAxes","selectRightAxesOffset","selectTopAxesOffset","xAxes","selectBottomAxesOffset","selectChartOffsetInternal","chartWidth","chartHeight","brushHeight","leftAxesOffset","rightAxesOffset","topAxesOffset","bottomAxesOffset","offsetH","offsetV","brushBottom","offsetWidth","offsetHeight","selectChartViewBox","selectAxisViewBox","PanoramaContext","useIsPanorama","selectBrushSettings","selectBrushDimensions","brushSettings","useViewBox","_useAppSelector","panorama","rootViewBox","brushDimensions","brushPadding","manyComponentsThrowErrorsIfOffsetIsUndefined","useOffsetInternal","_useAppSelector2","useChartWidth","useChartHeight","useMargin","selectChartLayout","useChartLayout","legendSlice","setLegendSize","setLegendSettings","addLegendPayload","removeLegendPayload","legendReducer","LegendContent","contextPayload","finalPayload","contentProps","getDefaultPosition","hPos","vPos","LegendSettingsDispatcher","LegendSizeDispatcher","LegendWrapper","legendPortalFromContext","widthFromProps","heightFromProps","wrapperStyle","portalFromProps","widthOrHeight","Legend","outerStyle","legendPortal","legendElement","createPortal","defaultFormatter","DefaultTooltipContent","contentStyle","labelStyle","wrapperClassName","labelClassName","labelFormatter","accessibilityLayer","renderContent","listStyle","finalName","finalItemStyle","finalLabelStyle","hasLabel","finalLabel","wrapperCN","labelCN","accessibilityAttributes","CSS_CLASS_PREFIX","TOOLTIP_HIDDEN","getTooltipCSSClassName","translateX","translateY","getTooltipTranslateXY","allowEscapeViewBox","offsetTopLeft","reverseDirection","tooltipDimension","viewBoxDimension","viewBoxKey","_tooltipBoundary","_viewBoxBoundary","tooltipBoundary","viewBoxBoundary","getTransformStyle","useTranslate3d","getTooltipTranslate","tooltipBox","TooltipBoundingBox","_this$props$coordinat","_this$props$coordinat2","_this$props$coordinat3","_this$props$coordinat4","_this$props$coordinat5","_this$props$coordinat6","animationDuration","animationEasing","hasPayload","isAnimationActive","innerRef","hasPortalFromProps","cssClasses","positionStyles","parseIsSsrByDefault","useAccessibilityLayer","isWellBehavedNumber","isPositiveNumber","CURVE_FACTORIES","curveBumpX","curveBumpY","curveMonotoneX","curveMonotoneY","curveStepAfter","curveStepBefore","getX","getY","getCurveFactory","baseLine","connectNulls","curveFactory","formatPoints","lineFunction","formatBaseLine","areaPoints","Curve","pathRef","realPath","Cross","getCursorRectangle","activeCoordinate","tooltipAxisBandSize","resolveDefaultProps","realProps","dp","withDefaults","getDashCase","getTransitionVal","getIntersectionKeys","preObj","nextObj","mapObject","needContinue","calStepperVals","preVals","nextStepVals","newX","newV","createStepperUpdate","interKeys","timeoutController","preTime","stepperStyle","getCurrStyle","shouldStopAnimation","stopAnimation","stepperUpdate","deltaTime","createTimingUpdate","timingStyle","beginTime","timingUpdate","currStyle","configUpdate","ACCURACY","cubicBezierFactor","evaluatePolynomial","pre","curr","cubicBezier","derivativeCubicBezier","newParams","configBezier","curveX","curveY","derCurveX","rangeValue","bezier","_t","evalT","derVal","configSpring","stiff","damping","stepper","currX","destX","currV","FSpring","FDamping","configEasing","createAnimateManager","shouldStop","cancelTimeout","setStyle","_style","restStyles","_handleChange","RequestAnimationFrameTimeoutController","startTime","requestId","executeCallback","createDefaultAnimationManager","AnimationManagerContext","useAnimationManager","animationId","animationManagerFromProps","contextAnimationManager","defaultJavascriptAnimateProps","JavascriptAnimate","outsideProps","canBegin","onAnimationEnd","onAnimationStart","animationManager","stopJSAnimation","startAnimation","onAnimationActive","useAnimationId","getRectanglePath","maxRadius","ySign","xSign","clockWise","newRadius","_newRadius","Rectangle","rectangleProps","totalLength","setTotalLength","pathTotalLength","animationBegin","isUpdateAnimationActive","prevWidthRef","prevHeightRef","prevXRef","prevYRef","animationIdInput","prevWidth","prevX","prevY","currWidth","currHeight","currY","animationStyle","getRadialCursorPoints","startPoint","endPoint","getDeltaAngle","deltaAngle","getTangentCircle","isExternal","cornerRadius","cornerIsExternal","centerRadius","theta","centerAngle","circleTangency","lineTangencyAngle","lineTangency","getSectorPath","tempEndAngle","outerStartPoint","outerEndPoint","innerStartPoint","innerEndPoint","getSectorWithCorner","forceCornerRadius","soct","solt","sot","eoct","eolt","eot","outerArcAngle","sict","silt","sit","eict","eilt","eit","innerArcAngle","Sector","sectorProps","deltaRadius","getCursorPoints","innerPoint","outerPoint","ascending","descending","bisector","compare1","compare2","zero","lo","hi","numbers","valueof","ascendingBisect","bisectRight","InternMap","keyof","intern_get","intern_set","intern_delete","_intern","compareDefined","ascendingDefined","e10","e5","e2","tickSpec","power","i2","inc","tickIncrement","tickStep","quickselect","sd","newLeft","newRight","swap","quantile","value0","quantileSorted","initRange","initInterpolator","interpolator","implicit","unknown","band","ordinalRange","r0","r1","bandwidth","paddingInner","paddingOuter","rescale","sequence","pointish","definition","Color","darker","brighter","reI","reN","reP","reHex","reRgbInteger","reRgbPercent","reRgbaInteger","reRgbaPercent","reHslPercent","reHslaPercent","named","channels","color_formatHex","color_formatHex8","color_formatHsl","color_formatRgb","hslConvert","rgbn","Rgb","rgba","hsla","rgbConvert","clampi","clampa","rgb_formatHex","rgb_formatHex8","rgb_formatRgb","hex","Hsl","hsl","m2","m1","hsl2rgb","clamph","clampt","linear","exponential","gamma","nogamma","rgbGamma","colorRgb","numberArray","isNumberArray","genericArray","date$2","object$1","reA","reB","string$1","bi","am","bm","bs","interpolateRound","piecewise","I","constants","normalize","clamper","bimap","d0","d1","polymap","bisect","untransform","continuous","formatDecimal","formatDecimalParts","exponent","formatGroup","grouping","thousands","formatNumerals","numerals","formatSpecifier","specifier","FormatSpecifier","formatTrim","prefixExponent","formatPrefixAuto","formatRounded","formatTypes","identity$2","prefixes","formatLocale$1","currencyPrefix","currencySuffix","decimal","minus","nan","newFormat","comma","formatType","maybeSuffix","valuePrefix","valueSuffix","valueNegative","formatPrefix","formatLocale","precisionFixed","precisionPrefix","precisionRound","tickFormat","linearish","prestep","maxIter","nice","transformLog","transformExp","transformLogn","transformExpn","pow10","powp","logp","reflect","loggish","pows","transformSymlog","transformSymexp","symlogish","symlog","transformPow","transformSqrt","transformSquare","powish","pow","unsquare","radial","squared","thresholds","quantize","timeInterval","floori","offseti","durationSecond","durationMinute","durationHour","durationDay","durationWeek","durationMonth","durationYear","timeMinute","utcMinute","timeHour","utcHour","timeDay","utcDay","unixDay","timeWeekday","timeSunday","timeMonday","timeTuesday","timeWednesday","timeThursday","timeFriday","timeSaturday","utcWeekday","utcSunday","utcMonday","utcTuesday","utcWednesday","utcThursday","utcFriday","utcSaturday","timeMonth","utcMonth","timeYear","utcYear","ticker","week","tickIntervals","tickInterval","utcTicks","utcTickInterval","timeTicks","timeTickInterval","localDate","utcDate","newDate","locale_dateTime","locale_date","locale_time","locale_periods","locale_weekdays","locale_shortWeekdays","locale_months","locale_shortMonths","periodRe","formatRe","periodLookup","formatLookup","weekdayRe","weekdayLookup","shortWeekdayRe","shortWeekdayLookup","monthRe","monthLookup","shortMonthRe","shortMonthLookup","formatShortWeekday","formatWeekday","formatShortMonth","formatMonth","formatDayOfMonth","formatMicroseconds","formatYearISO","formatFullYearISO","formatHour24","formatHour12","formatDayOfYear","formatMilliseconds","formatMonthNumber","formatMinutes","formatPeriod","formatQuarter","formatUnixTimestamp","formatUnixTimestampSeconds","formatSeconds","formatWeekdayNumberMonday","formatWeekNumberSunday","formatWeekNumberISO","formatWeekdayNumberSunday","formatWeekNumberMonday","formatYear","formatFullYear","formatZone","formatLiteralPercent","utcFormats","formatUTCShortWeekday","formatUTCWeekday","formatUTCShortMonth","formatUTCMonth","formatUTCDayOfMonth","formatUTCMicroseconds","formatUTCYearISO","formatUTCFullYearISO","formatUTCHour24","formatUTCHour12","formatUTCDayOfYear","formatUTCMilliseconds","formatUTCMonthNumber","formatUTCMinutes","formatUTCPeriod","formatUTCQuarter","formatUTCSeconds","formatUTCWeekdayNumberMonday","formatUTCWeekNumberSunday","formatUTCWeekNumberISO","formatUTCWeekdayNumberSunday","formatUTCWeekNumberMonday","formatUTCYear","formatUTCFullYear","formatUTCZone","parses","parseShortWeekday","parseWeekday","parseShortMonth","parseMonth","parseLocaleDateTime","parseDayOfMonth","parseMicroseconds","parseYear","parseFullYear","parseHour24","parseDayOfYear","parseMilliseconds","parseMonthNumber","parseMinutes","parsePeriod","parseQuarter","parseUnixTimestamp","parseUnixTimestampSeconds","parseSeconds","parseWeekdayNumberMonday","parseWeekNumberSunday","parseWeekNumberISO","parseWeekdayNumberSunday","parseWeekNumberMonday","parseLocaleDate","parseLocaleTime","parseZone","parseLiteralPercent","pads","newParse","Z","parseSpecifier","numberRe","percentRe","requoteRe","requote","names","dISO","dow","UTCdISO","timeFormat","utcFormat","formatMillisecond","formatSecond","formatMinute","formatHour","formatDay","formatWeek","timeWeek","timeSecond","utcTime","utcWeek","utcSecond","k10","sequential","sequentialLog","sequentialSymlog","sequentialPow","sequentialSqrt","sequentialQuantile","t2","k21","r2","diverging","divergingLog","divergingSymlog","divergingPow","divergingSqrt","selectChartDataWithIndexes","selectChartDataAndAlwaysIgnoreIndexes","dataState","dataEndIndex","selectChartDataWithIndexesIfNotInPanorama","_unused1","_unused2","isPanorama","isWellFormedNumberDomain","extendDomain","providedDomain","boundaryDomain","allowDataOverflow","numericalDomainSpecifiedWithoutRequiringData","userDomain","providedMin","providedMax","finalMin","finalMax","parseNumericalUserDomain","dataDomain","_match","MAX_DIGITS","Decimal","external","decimalError","invalidArgument","exponentOutOfRange","mathfloor","mathpow","isDecimal","ONE","BASE","LOG_BASE","MAX_E","P","xdL","ydL","getBase10Exponent","pr","wpr","ln","exp","digitsToString","carry","rL","xd","yd","rm","checkInt32","yIsInt","yn","ws","indexOfLastWord","getZeroString","multiplyInteger","aL","bL","cmp","prod","prodL","qd","rem","remL","rem0","xi","xL","yd0","yL","yz","denominator","getLn10","zs","c0","numerator","parseDecimal","rd","doRound","xdi","xe","xLTy","isExp","ps","Decimal$1","PLACE_HOLDER","isPlaceHolder","curry0","_curried","curryN","_len2","restArgs","newArgs","_len3","_key3","firstFn","tailsFn","_len4","_key4","_lastArgs","getDigitCount","rangeStep","newA","newB","getValidInterval","validMin","validMax","getFormatStep","roughStep","allowDecimals","correctionFactor","digitCount","digitCountValue","stepRatio","stepRatioScale","amendStepRatio","formatStep","getTickOfSingleValue","middle","absVal","middleIndex","_calculateStep","belowCount","upCount","scaleCount","getNiceTickValuesFn","cormin","cormax","_values","tickMin","tickMax","getTickValuesFixedDomainFn","getNiceTickValues","getTickValuesFixedDomain","selectRootMaxBarSize","selectBarGap","selectBarCategoryGap","selectRootBarSize","selectStackOffsetType","selectChartName","selectSyncId","selectSyncMethod","selectEventEmitter","defaultPolarAngleAxisProps","defaultPolarRadiusAxisProps","combineAxisRangeWithReverse","axisSettings","axisRange","implicitAngleAxis","implicitRadiusAxis","implicitRadialBarAngleAxis","implicitRadialBarRadiusAxis","selectAngleAxis","angleAxisId","selectRadiusAxis","radiusAxisId","selectPolarOptions","selectMaxRadius","selectInnerRadius","polarChartOptions","selectOuterRadius","combineAngleAxisRange","polarOptions","selectAngleAxisRange","selectRadiusAxisRange","selectPolarViewBox","pickAxisType","_state","pickAxisId","_axisType","axisId","getStackSeriesIdentifier","graphicalItem","selectTooltipAxisType","selectTooltipAxisId","selectTooltipAxis","selectAxisSettings","selectTooltipAxisDataKey","combineDisplayedStackedData","stackedGraphicalItems","tooltipAxisSettings","chartData","allowDuplicatedCategory","tooltipDataKey","knownItemsByDataKey","_item$data","resolvedData","stackIdentifier","tooltipValue","isStacked","defaultNumericDomain","implicitXAxis","selectXAxisSettingsNoDefaults","selectXAxisSettings","implicitYAxis","selectYAxisSettingsNoDefaults","selectYAxisSettings","implicitZAxis","selectZAxisSettings","selectBaseAxis","selectCartesianAxisSettings","selectHasBar","itemAxisPredicate","selectUnfilteredCartesianItems","selectAxisPredicate","combineGraphicalItemsSettings","graphicalItems","axisPredicate","selectCartesianItemsSettings","selectStackedCartesianItemsSettings","cartesianItems","filterGraphicalNotStackedItems","selectCartesianItemsSettingsExceptStacked","combineGraphicalItemsData","selectCartesianGraphicalItemsData","combineDisplayedData","graphicalItemsData","dataStartIndex","selectDisplayedData","combineAppliedValues","selectAllAppliedValues","isErrorBarRelevantForAxisType","errorBar","onlyAllowNumbers","getErrorDomainByDataKey","appliedValue","relevantErrorBars","eb","errorValue","lowBound","highBound","selectDisplayedStackedData","combineStackGroups","displayedData","stackOffsetType","initialItemsGroups","itemsGroup","selectStackGroups","combineDomainOfStackGroups","domainOfStackGroups","selectDomainOfStackGroups","combineAppliedNumericalValuesIncludingErrorValues","errorBars","_errorBars$item$id","_axisSettings$dataKey","valueByDataKey","selectAllErrorBarSettings","combineRelevantErrorBarSettings","cartesianItemsSettings","allErrorBarSettings","selectAllAppliedNumericalValuesIncludingErrorValues","onlyAllowNumbersAndStringsAndDates","computeNumericalDomain","dataWithErrorDomains","allDataSquished","onlyNumbers","computeDomainOfTypeCategory","getDomainDefinition","_axisSettings$domain","allValues","mergeDomains","domains","allDomains","selectReferenceDots","filterReferenceElements","elements","selectReferenceDotsByAxis","selectReferenceAreas","selectReferenceAreasByAxis","selectReferenceLines","selectReferenceLinesByAxis","combineDotsDomain","allCoords","selectReferenceDotsDomain","combineAreasDomain","areas","selectReferenceAreasDomain","combineLinesDomain","lines","selectReferenceLinesDomain","selectReferenceElementsDomain","dotsDomain","linesDomain","areasDomain","selectDomainDefinition","combineNumericalDomain","domainDefinition","allDataWithErrorDomains","referenceElementsDomain","domainFromUserPreference","shouldIncludeDomainOfStackGroups","mergedDomains","selectNumericalDomain","expandDomain","combineAxisDomain","allAppliedValues","numericalDomain","selectAxisDomain","combineRealScaleType","axisConfig","hasBar","chartType","d3Scales","selectRealScaleType","getD3ScaleFromType","combineScaleFunction","axisDomain","d3ScaleFunction","combineNiceTicks","selectNiceTicks","combineAxisDomainWithNiceTicks","minFromDomain","minFromTicks","maxFromDomain","maxFromTicks","selectAxisDomainIncludingNiceTicks","selectSmallestDistanceBetweenValues","smallestDistanceBetweenValues","selectCalculatedPadding","_1","_2","_3","smallestDistanceInPercent","barCategoryGap","rangeWidth","halfBand","selectCalculatedXAxisPadding","xAxisSettings","selectCalculatedYAxisPadding","yAxisSettings","selectXAxisPadding","calculated","_padding$left","_padding$right","selectYAxisPadding","_padding$top","_padding$bottom","combineXAxisRange","_axisId","combineYAxisRange","selectAxisRange","_selectZAxisSettings","selectAxisRangeWithReverse","selectAxisScale","compareIds","pickAxisOrientation","pickMirror","_orientation","mirror","selectAllXAxesWithOffsetType","allAxes","selectAllYAxesWithOffsetType","getXAxisSize","getYAxisSize","selectXAxisSize","combineXAxisPositionStartingPoint","combineYAxisPositionStartingPoint","selectAllXAxesOffsetSteps","allAxesWithSameOffsetType","axisSize","needSpace","selectAllYAxesOffsetSteps","selectXAxisOffsetSteps","selectXAxisPosition","allSteps","stepOfThisAxis","selectYAxisOffsetSteps","selectYAxisPosition","selectYAxisSize","selectCartesianAxisSize","combineDuplicateDomain","chartLayout","appliedValues","allData","av","selectDuplicateDomain","combineCategoricalDomain","selectCategoricalDomain","selectAxisPropsNeededForCartesianGridTicksGenerator","combineAxisTicks","ticksOrNiceTicks","selectTicksOfAxis","combineGraphicalItemTicks","selectTicksOfGraphicalItem","selectAxisWithScale","selectZAxisScale","selectZAxisWithScale","selectChartDirection","allXAxes","allYAxes","selectDefaultTooltipEventType","selectValidateTooltipEventTypes","combineTooltipEventType","shared","defaultTooltipEventType","validateTooltipEventTypes","eventType","selectTooltipEventType","useTooltipEventType","combineActiveLabel","_tooltipTicks$n","selectTooltipSettings","noInteraction","tooltipSlice","addTooltipEntrySettings","removeTooltipEntrySettings","setTooltipSettingsState","setActiveMouseOverItemIndex","mouseLeaveItem","mouseLeaveChart","setActiveClickItemIndex","setMouseOverAxisIndex","setMouseClickAxisIndex","setSyncInteraction","setKeyboardInteraction","tooltipReducer","chooseAppropriateMouseInteraction","tooltipState","tooltipEventType","trigger","hasBeenActivePreviously","tooltipInteractionState","combineTooltipInteractionState","defaultIndex","appropriateMouseInteraction","activeFromProps","combineActiveTooltipIndex","tooltipInteraction","desiredIndex","indexAsNumber","lowerLimit","upperLimit","combineCoordinateForDefaultIndex","tooltipConfigurations","tooltipPayloadSearcher","firstConfiguration","maybePosition","combineTooltipPayloadConfigurations","filterByDataKey","tpc","_tpc$settings","selectTooltipPayloadSearcher","selectTooltipState","selectFinalData","dataDefinedOnItem","dataDefinedOnChart","combineTooltipPayload","tooltipPayloadConfigurations","chartDataState","tooltipAxisDataKey","activeLabel","computedData","agg","_settings$dataKey","finalData","finalDataKey","finalNameKey","tooltipPayload","newSettings","_getValueByDataKey","selectTooltipAxisRealScaleType","selectAllUnfilteredGraphicalItems","polarItems","selectTooltipAxisPredicate","selectAllGraphicalItemsSettings","selectAllStackedGraphicalItemsSettings","selectTooltipGraphicalItemsData","selectTooltipDisplayedData","selectTooltipStackedData","selectAllTooltipAppliedValues","selectTooltipAxisDomainDefinition","selectAllStackedGraphicalItems","selectTooltipStackGroups","selectTooltipDomainOfStackGroups","selectTooltipItemsSettingsExceptStacked","selectTooltipAllAppliedNumericalValuesIncludingErrorValues","selectReferenceDotsByTooltipAxis","selectTooltipReferenceDotsDomain","selectReferenceAreasByTooltipAxis","selectTooltipReferenceAreasDomain","selectReferenceLinesByTooltipAxis","selectTooltipReferenceLinesDomain","selectTooltipReferenceElementsDomain","selectTooltipNumericalDomain","selectTooltipAxisDomain","selectTooltipNiceTicks","selectTooltipAxisDomainIncludingNiceTicks","selectTooltipAxisRange","selectTooltipAxisRangeWithReverse","selectTooltipAxisScale","selectTooltipDuplicateDomain","selectTooltipCategoricalDomain","combineTicksOfTooltipAxis","selectTooltipAxisTicks","validateTooltipEventType","selectTooltipTrigger","selectDefaultIndex","selectTooltipInteractionState","selectActiveTooltipIndex","selectActiveLabel","selectActiveTooltipDataKey","selectTooltipPayloadConfigurations","selectTooltipCoordinateForDefaultIndex","selectActiveTooltipCoordinate","defaultIndexCoordinate","selectIsTooltipActive","selectActiveTooltipPayload","selectActiveTooltipDataPoints","dataPoints","useTooltipAxis","useTooltipAxisBandSize","tooltipAxis","tooltipAxisScale","useChartName","pickTooltipEventType","pickTrigger","_tooltipEventType","pickDefaultIndex","_trigger","selectOrderedTooltipTicks","selectActiveIndex","selectTooltipDataKey","selectCoordinateForDefaultIndex","selectActiveCoordinate","_tooltipInteractionSt","selectTooltipPayload","combineActiveProps","chartEvent","tooltipAxisType","tooltipAxisRange","orderedTooltipTicks","CursorInternal","chartName","activePayload","activeTooltipIndex","restProps","cursorComp","extraClassName","cursorProps","createElement","Cursor","TooltipPortalContext","useTooltipPortal","Events","EE","emitter","evt","clearEvent","ee","a2","a3","a4","a5","eventCenter","TOOLTIP_SYNC_EVENT","BRUSH_SYNC_EVENT","arrayTooltipSearcher","strIndex","numIndex","optionsSlice","optionsReducer","createEventEmitter","selectSynchronisedTooltipState","initialChartDataState","chartDataSlice","setChartData","setDataStartEndIndexes","setComputedData","chartDataReducer","useTooltipSyncEventsListener","mySyncId","myEventEmitter","syncMethod","incomingSyncId","_action$payload","_action$payload$coord","_x","_y","otherCoordinateProps","boundedCoordinate","boundedAction","activeTick","syncMethodParam","validateChartX","validateChartY","syncAction","useBrushSyncEventsListener","useSynchronisedEventsFromOtherCharts","useTooltipChartSynchronisation","isTooltipActive","activeDataKey","eventEmitterSymbol","syncId","isReceivingSynchronisation","emptyPayload","defaultTooltipProps","filterNull","payloadUniqBy","defaultIndexAsString","payloadFromRedux","labelFromRedux","tooltipPortalFromContext","finalIsActive","tooltipPortal","tooltipElement","debounceMs","edges","pendingThis","pendingArgs","onTimerEnd","cancelTimer","isFirstCall","debounce$1","pendingAt","_debounced","throttleMs","condition","ResponsiveContainer","aspect","initialDimension","onResize","containerRef","onResizeRef","useImperativeHandle","setSizes","setContainerSize","newWidth","newHeight","roundedWidth","roundedHeight","_onResizeRef$current","containerWidth","containerHeight","chartContent","calculatedWidth","calculatedHeight","Cell","LRUCache","firstKey","currentConfig","stringCache","SPAN_STYLE","MEASUREMENT_SPAN_ID","createCacheKey","fontStyle","textTransform","measureTextWithDOM","measurementSpan","getStringSize","cachedResult","MULTIPLY_OR_DIVIDE_REGEX","ADD_OR_SUBTRACT_REGEX","CSS_LENGTH_UNIT_REGEX","NUM_SPLIT_REGEX","CONVERSION_RATES","FIXED_CSS_LENGTH_UNITS","STR_NAN","convertToPx","DecimalCSS","_NUM_SPLIT_REGEX$exec","numStr","calculateArithmetic","expr","newExpr","_MULTIPLY_OR_DIVIDE_R","leftOperand","rightOperand","lTs","rTs","_ADD_OR_SUBTRACT_REGE","_leftOperand","_operator","_rightOperand","_lTs","_rTs","_result","PARENTHESES_REGEX","calculateParentheses","parentheticalExpression","evaluateExpression","expression","safeEvaluateExpression","reduceCSSCalc","_excluded2","BREAKING_SPACES","calculateWordWidths","breakAll","wordsWithComputedWidth","spaceWidth","calculateWordsByLines","initialWordsWithComputedWith","lineWidth","scaleToFit","maxLines","shouldLimitLines","calculate","currentLine","newLine","originalResult","findLongestLine","checkOverflow","tempText","doesOverflow","iterations","trimmedResult","doesPrevOverflow","doesMiddleOverflow","getWordsWithoutCalculate","getWordsByLines","wordWidths","wcw","sw","DEFAULT_FILL","Text","propsX","propsY","capHeight","textAnchor","verticalAnchor","wordsByLines","textProps","startDy","CartesianLabelContext","CartesianLabelContextProvider","useCartesianLabelContext","labelChildContext","chartContext","PolarLabelContext","usePolarLabelContext","getLabel","isLabelContentAFunction","renderRadialLabel","attrs","labelAngle","getAttrsOfPolarLabel","midAngle","isPolar","getAttrsOfCartesianLabel","parentViewBoxFromProps","parentViewBox","verticalSign","verticalOffset","verticalEnd","verticalStart","horizontalSign","horizontalOffset","horizontalEnd","horizontalStart","_attrs","_attrs2","_attrs3","sizeAttrs","defaultLabelProps","Label","outerProps","viewBoxFromProps","textBreakAll","labelRef","cartesianViewBox","resolvedViewBox","propsWithViewBox","propsWithoutLabelRef","isPolarLabel","positionAttrs","parseLabel","commonProps","CartesianLabelFromLabelProp","last$1","defaultAccessor","CartesianLabelListContext","CartesianLabelListContextProvider","PolarLabelListContext","PolarLabelListContextProvider","useCartesianLabelListContext","usePolarLabelListContext","LabelList","valueAccessor","cartesianData","polarData","_restProps$fill","idProps","LabelListFromLabelProp","Dot","selectUnfilteredPolarItems","selectPolarItemsSettings","selectPolarGraphicalItemsData","selectPolarDisplayedData","selectPolarAppliedValues","selectAllPolarAppliedNumericalValues","unsupportedInPolarChart","selectPolarNumericalDomain","selectPolarAxisDomain","selectPolarNiceTicks","polarAxisSlice","addRadiusAxis","removeRadiusAxis","addAngleAxis","removeAngleAxis","polarAxisReducer","pickId","selectSynchronisedPieSettings","emptyArray","pickCells","_id","cells","pieSettings","cell","selectPieLegend","_cells$i","selectPieSectors","computePieSectors","getTrapezoidPath","upperWidth","lowerWidth","widthGap","Trapezoid","trapezoidProps","prevUpperWidthRef","prevLowerWidthRef","prevUpperWidth","prevLowerWidth","currUpperWidth","currLowerWidth","defaultPropTransformer","isSymbolsProps","shapeType","_elementProps","ShapeSelector","elementProps","getPropsFromShapeOption","Shape","propTransformer","useMouseEnterItemDispatch","onMouseEnterFromProps","useMouseLeaveItemDispatch","onMouseLeaveFromProps","useMouseClickItemDispatch","onMouseClickFromProps","SetTooltipEntrySettings","SetLegendPayload","legendPayload","SetPolarLegendPayload","useIdFallback","useUniqueId","customId","generatedId","GraphicalItemIdContext","RegisterGraphicalItemId","resolvedId","graphicalItemsSlice","addCartesianGraphicalItem","replaceCartesianGraphicalItem","removeCartesianGraphicalItem","addPolarGraphicalItem","removePolarGraphicalItem","graphicalItemsReducer","SetCartesianGraphicalItem","prevPropsRef","SetPolarGraphicalItem","_excluded3","SetPiePayloadLegend","getTooltipEntrySettings","nameKey","sectors","stroke","strokeWidth","tooltipType","getTextAnchor","getOuterRadius","dataPoint","maxPieRadius","parseCoordinateOfPie","parseDeltaAngle","getClassNamePropertyIfExists","renderLabelLineItem","renderLabelItem","PieLabels","showLabels","labelLine","pieProps","customLabelProps","customLabelLineProps","offsetRadius","labels","lineProps","PieLabelList","PieSectors","activeShape","inactiveShapeProp","allOtherPieProps","onItemClickFromProps","restOfAllOtherProps","onMouseEnterFromContext","onMouseLeaveFromContext","onClickFromContext","isSectorActive","inactiveShape","sectorOptions","_pieSettings$paddingA","minAngle","absDeltaAngle","paddingAngle","notZeroItemCount","totalPaddingAngle","realTotalAngle","tempStartAngle","entryWithCellInfo","middleRadius","tooltipPosition","PieLabelListProvider","labelListEntries","SectorsWithAnimation","previousSectorsRef","prevSectors","isAnimating","setIsAnimating","handleAnimationEnd","handleAnimationStart","stepData","curAngle","_latest","defaultPieProps","PieImpl","propsWithoutId","rootTabIndex","Pie","externalId","presentationProps","cartesianAxisSlice","addXAxis","removeXAxis","addYAxis","removeYAxis","addZAxis","removeZAxis","updateYAxisWidth","cartesianAxisReducer","selectChartOffset","offsetInternal","selectPlotArea","usePlotArea","useActiveTooltipDataPoints","renderActivePoint","mainColor","activeDot","dotProps","ActivePoints","itemDataKey","activeDataPoints","activePoint","invariant","typeguardBarRectangleProps","xProp","yProp","xValue","yValue","heightValue","widthValue","BarRectangle","minPointSizeCallback","minPointSize","isValueNumberOrNil","errorBarSlice","itemId","addErrorBar","replaceErrorBar","removeErrorBar","errorBarReducer","initialContextState","ErrorBarContext","SetErrorBarContext","useNeedsClip","xAxisId","yAxisId","_xAxis$allowDataOverf","_yAxis$allowDataOverf","xAxis","yAxis","needClipX","needClipY","needClip","GraphicalItemClipPath","clipPathId","plotArea","_excluded4","computeLegendPayloadFromBarData","legendType","BarBackground","backgroundFromProps","allOtherBarProps","backgroundProps","backgroundFromDataEntry","barRectangleProps","BarLabelListProvider","BarRectangleWithActiveState","activeBar","baseProps","BarRectangleNeverActive","BarRectangles","_svgPropertiesNoEvent","RectanglesWithAnimation","previousRectanglesRef","RenderRectangles","defaultMinPointSize","errorBarDataPointFormatter","BarWithState","defaultBarProps","BarImpl","selectBarRectangles","errorBarOffset","firstDataPoint","computeBarRectangles","minPointSizeProp","xAxisTicks","yAxisTicks","stackedDomain","baseValue","baseValueScale","currentValueScale","computedHeight","_baseValueScale","_currentValueScale","_delta","barRectangleItem","BarFn","Bar","pickXAxisId","pickYAxisId","_xAxisId","pickIsPanorama","_yAxisId","pickBarId","_isPanorama","selectSynchronisedBarSettings","selectMaxBarSize","barSettings","getBarSize","globalSize","selfSize","barSize","selectAllVisibleBars","allItems","selectBarStackGroups","selectBarCartesianAxisSize","combineBarSizeList","allBars","stackedBars","unstackedBars","groupByStack","bar","stackedSizeList","bars","unstackedSizeList","dk","selectBarSizeList","selectBarBandSize","_getBandSizeOfAxis","globalMaxBarSize","childMaxBarSize","maxBarSize","selectAxisBandSize","getBarPositions","barGap","sizeList","realBarGap","useFull","fullBarSize","_entry$barSize","newPosition","newRes","originalSize","combineAllBarPositions","barBandSize","allBarPositions","selectAllBarPositions","selectXAxisWithScale","selectYAxisWithScale","selectXAxisTicks","selectYAxisTicks","selectBarPosition","combineStackedData","stackSeriesIdentifier","stackGroup","selectStackedDataOfItem","axisViewBox","ChartDataContextProvider","brushSlice","setBrushSettings","brushReducer","ScaleHelper","bandAware","_offset2","createLabeledScales","scales","coord","normalizeAngle","getAngledRectangleWidth","normalizedAngle","angleRadians","angleThreshold","angledWidth","referenceElementsSlice","addDot","removeDot","addArea","removeArea","addLine","removeLine","referenceElementsReducer","ClipPathIdContext","ClipPathProvider","useClipPathId","useCoordinate","ifOverflow","isX","isY","xAxisScale","yAxisScale","ReportReferenceDot","renderDot","ReferenceDotImpl","clipPath","ReferenceDotSettingsDispatcher","ReferenceDot","shallowEqual","getEveryNthWithCondition","isValid","getAngledTickWidth","contentSize","unitSize","getTickBoundaries","sizeKey","isWidth","isVisible","tickPosition","getSize","getNumberIntervalTicks","getEquidistantTicks","boundaries","getTickSize","minTickGap","initialStart","stepsize","tickCoord","isShow","getTicksEnd","getTicksStart","preserveEnd","tailSize","tailGap","isTailShow","_loop2","getTicks","tickFormatter","_getNumberIntervalTic","candidates","getCalculatedYAxisWidth","labelGapWithTick","tickSize","tickMargin","maxTickWidth","tickNode","bbox","labelWidth","tickWidth","updatedYAxisWidth","defaultCartesianAxisProps","AxisLine","axisLineProps","axisLine","otherSvgProps","needHeight","needWidth","getTickLineCoord","tx","ty","finalTickSize","getTickTextAnchor","getTickVerticalAnchor","TickItem","tickProps","tickItem","combinedClassName","Ticks","tickLine","tickTextProps","getTicksConfig","finalTicks","axisProps","customTickProps","tickLineProps","lineCoord","CartesianAxisComponent","setFontSize","setLetterSpacing","tickRefs","_props$labelRef","layerRef","tickNodes","calculatedFontSize","calculatedLetterSpacing","MemoCartesianAxis","prevViewBox","prevRestProps","nextViewBox","nextRestProps","CartesianAxis","Background","fillOpacity","ry","renderLineItem","lineItem","__","restOfFilteredProps","HorizontalGridLines","horizontalPoints","otherLineItemProps","lineItemProps","VerticalGridLines","verticalPoints","HorizontalStripes","horizontalFill","roundedSortedHorizontalPoints","lastStripe","colorIndex","VerticalStripes","verticalFill","roundedSortedVerticalPoints","defaultVerticalCoordinatesGenerator","defaultHorizontalCoordinatesGenerator","CartesianGrid","propsIncludingDefaults","horizontalValues","verticalValues","verticalCoordinatesGenerator","horizontalCoordinatesGenerator","isHorizontalValues","generatorResult","isVerticalValues","_generatorResult","selectBandSize","pickLineId","isLineSettings","selectSynchronisedLineSettings","selectLinePoints","lineSettings","computeLinePoints","computeLegendPayloadFromAreaData","generateSimpleStrokeDasharray","linesUnit","getStrokeDasharray","lineLength","remainLength","restLength","remainLines","emptyLines","renderDotItem","dotItem","shouldRenderDots","Dots","clipDot","customDotProps","dotsProps","LineLabelListProvider","StaticCurve","strokeDasharray","curveProps","getTotalLength","mainCurve","CurveWithAnimation","previousPointsRef","longestAnimatedLengthRef","animateNewValues","prevPoints","startingPoint","lengthInterpolated","curLength","currentStrokeDasharray","prevPointsDiffFactor","prevPointIndex","RenderCurve","LineWithState","_filterProps","dotSize","defaultLineProps","LineImpl","_resolveDefaultProps","everythingElse","_ref6","LineFn","Line","pickAreaId","selectSynchronisedAreaSettings","selectGraphicalItemStackedData","_stackGroups$stackId","areaSettings","isXAxisCategorical","selectArea","chartBaseValue","computeArea","getLegendItemColor","areaProps","AreaLabelListProvider","StaticArea","isRange","allOtherProps","VerticalRect","startY","endY","maxX","HorizontalRect","startX","endX","maxY","ClipRect","AreaWithAnimation","_ref7","previousBaselineRef","prevBaseLine","stepPoints","stepBaseLine","RenderArea","_ref8","AreaWithState","defaultAreaProps","AreaImpl","getBaseValue","itemBaseValue","domainMax","domainMin","_ref9","hasStack","isHorizontalLayout","isBreakPoint","AreaFn","Area","SetZAxisSettings","ZAxis","ScatterSymbol","_zAxisId","_cells","selectZAxis","zAxisId","pickScatterId","scatterChartDataSelector","selectSynchronisedScatterSettings","selectScatterPoints","zAxis","scatterSettings","computeScatterPoints","computeLegendPayloadFromScatterProps","ScatterLine","lineType","lineJointType","scatterProps","customLineProps","linePoints","linearExp","ScatterLabelListProvider","chartViewBox","ScatterSymbols","allOtherScatterProps","allOtherPropsWithoutId","symbolProps","SymbolsWithAnimation","interpolatorCx","interpolatorCy","interpolatorSize","xAxisDataKey","yAxisDataKey","zAxisDataKey","defaultRangeZ","defaultZ","xBandSize","yBandSize","ScatterWithId","defaultScatterProps","ScatterImpl","ScatterFn","Scatter","SetXAxisSettings","XAxisImpl","cartesianTickItems","synchronizedSettings","dangerouslySetInnerHTML","restSynchronizedSettings","xAxisDefaultProps","XAxisSettingsDispatcher","_props$interval","_props$includeHidden","_props$angle","_props$minTickGap","_props$tick","XAxisMemoComparator","prevDomain","prevRest","nextDomain","nextRest","XAxis","SetYAxisSettings","YAxisImpl","cartesianAxisRef","axisComponent","yAxisDefaultProps","YAxisSettingsDispatcher","YAxisMemoComparator","YAxis","useSyncExternalStoreWithSelector_production","IS_REACT_19","ForwardRef","Memo","isMemo","pureFinalPropsSelectorFactory","mapStateToProps","mapDispatchToProps","mergeProps","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","hasRunAtLeastOnce","ownProps","stateProps","dispatchProps","handleFirstCall","firstState","firstOwnProps","handleNewPropsAndNewState","handleNewProps","handleNewState","nextStateProps","statePropsChanged","handleSubsequentCalls","nextOwnProps","propsChanged","stateChanged","finalPropsSelectorFactory","initMapStateToProps","initMapDispatchToProps","initMergeProps","wrapMapToPropsConstant","getConstant","constantSelector","getDependsOnOwnProps","mapToProps","wrapMapToPropsFunc","stateOrDispatch","createInvalidArgFactory","mapDispatchToPropsFactory","mapStateToPropsFactory","defaultMergeProps","wrapMergePropsFunc","areMergedPropsEqual","hasRunOnce","nextMergedProps","mergePropsFactory","defaultNoopBatch","createListenerCollection","nullListeners","createSubscription","parentSub","subscriptionsAmount","selfSubscribed","addNestedSub","trySubscribe","cleanupListener","removed","tryUnsubscribe","notifyNestedSubs","handleChangeWrapper","subscription","trySubscribeSelf","tryUnsubscribeSelf","canUseDOM","isDOM","isRunningInReactNative","isReactNative","getUseIsomorphicLayoutEffect","useIsomorphicLayoutEffect","objA","objB","keysA","keysB","ContextKey","gT","getContext","contextMap","realContext","ReactReduxContext","NO_SUBSCRIPTION_ARRAY","useIsomorphicLayoutEffectWithArgs","effectFunc","effectArgs","captureWrapperProps","lastWrapperProps","lastChildProps","renderIsScheduled","wrapperProps","childPropsFromStoreUpdate","subscribeUpdates","shouldHandleStateChanges","childPropsSelector","additionalSubscribeListener","didUnsubscribe","lastThrownError","checkForUpdates","latestStoreState","strictEqual","connect","pure","wrappedComponentName","selectorFactoryOptions","ConnectFunction","propsContext","reactReduxForwardedRef","reactReduxForwardedRef2","wrapperProps2","ContextToUse","ResultContext","didStoreComeFromProps","didStoreComeFromContext","getServerState","subscription2","notifyNestedSubs2","overriddenContextValue","latestSubscriptionCallbackError","actualChildPropsSelector","subscribeForReact","reactListener","actualChildProps","renderedWrappedComponent","Connect","forwarded","connect_default","Provider","providerProps","serverState","Provider_default","pickChartPointer","chartPointer","selectActivePropsFromChartPointer","getChartPointer","mouseClickAction","mouseClickMiddleware","mousePointer","activeProps","mouseMoveAction","mouseMoveMiddleware","rootPropsSlice","_action$payload$barGa","rootPropsReducer","updateOptions","polarOptionsSlice","updatePolarOptions","polarOptionsReducer","keyDownAction","focusAction","keyboardEventsMiddleware","accessibilityLayerIsActive","keyboardInteraction","currentIndex","_coordinate","directionMultiplier","movement","_action","externalEventAction","externalEventsMiddleware","selectAllTooltipPayloadConfiguration","selectTooltipCoordinate","tooltipIndex","_dataKey","_tooltipIndex","allTooltipConfigurations","mostRelevantTooltipConfiguration","tooltipConfiguration","positions","touchEventAction","touchEventMiddleware","_target$getAttribute","createRechartsStore","RechartsStoreProvider","reduxStoreName","storeRef","nonNullContext","ReportMainChartProps","ReportChartProps","FULL_WIDTH_AND_HEIGHT","MainChartSurface","hasAccessibilityLayer","otherAttributes","BrushPanoramaSurface","RootSurface","useReportScale","newScale","RechartsWrapper","onDoubleClick","onMouseMove","setTooltipPortal","setLegendPortal","setScaleRef","myOnClick","myOnMouseEnter","myOnMouseLeave","myOnMouseMove","myOnContextMenu","myOnDoubleClick","myOnMouseDown","myOnMouseUp","myOnTouchStart","myOnTouchMove","myOnTouchEnd","CategoricalChart","defaultMargin","CartesianChart","_categoricalChartProp","rootChartProps","otherCategoricalProps","categoricalChartProps","allowedTooltipTypes","LineChart","BarChart","ReportPolarOptions","PolarChart","_polarChartProps$id","polarChartProps","PieChart","ScatterChart","AreaChart","NutritionalValuesDashboardChart","energyPercentage","energyDiff","COLORS","MuiPickersAdapterContext","LocalizationProvider","inLocaleText","otherInProps","parentUtils","parentLocaleText","DateAdapter","dateFormats","dateLibInstance","adapterLocale","themeLocaleText","localeText","defaultDates","getPickersLocalization","pickersTranslations","enUSPickers","formattedTime","formattedDate","formattedRange","DEFAULT_LOCALE","useLocalizationContext","localization","useUtils","useDefaultDates","useNow","timezone","usePickerTranslations","ArrowLeftIcon","ArrowRightIcon","CalendarIcon","ClockIcon","DateRangeIcon","TimeIcon","getPickersArrowSwitcherUtilityClass","IsValidValueContext","useIsValidValue","PickerFieldPrivateContext","useNullableFieldPrivateContext","PickerContext","usePickerContext","PickerActionsContext","PickerPrivateContext","PickerProvider","actionsContextValue","privateContextValue","fieldPrivateContextValue","isValidContextValue","usePickerPrivateContext","PickersArrowSwitcherRoot","PickersArrowSwitcherSpacer","PickersArrowSwitcherButton","PickersArrowSwitcher","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","PreviousIconButton","previousIconButtonProps","NextIconButton","LeftArrowIcon","_useSlotProps","leftArrowIconProps","RightArrowIcon","_useSlotProps2","rightArrowIconProps","areViewsEqual","views","expectedViews","expectedView","applyDefaultViewProps","openTo","defaultOpenTo","defaultViews","viewsWithDefault","openToWithDefault","EXPORTED_TIME_VIEWS","TIME_VIEWS","isTimeView","isInternalTimeView","getMeridiem","convertValueToMeridiem","ampm","convertToMeridiem","newHoursAmount","getSecondsInDay","createIsAfterIgnoreDatePart","disableIgnoringDatePartForTimeValidation","dateLeft","dateRight","resolveTimeFormat","DEFAULT_STEP_NAVIGATION","createStepNavigation","isViewMatchingStep","onStepChange","parametersBis","currentStepIndex","nextStep","viewA","viewB","stepA","stepB","useViews","onViewChange","inView","inFocusedView","onFocusedViewChange","getStepNavigation","previousOpenTo","previousViews","defaultView","setView","defaultFocusedView","focusedView","setFocusedView","stepNavigation","previousView","viewIndex","nextView","handleFocusedViewChange","viewToFocus","hasFocus","prevFocusedView","handleChangeView","newView","goToNextView","setValueAndGoToNextView","currentViewSelectionState","selectedView","isSelectionFinishedOnCurrentView","hasMoreViews","currentView","viewToNavigateTo","useNextMonthDisabled","disableFuture","maxDate","lastEnabledMonth","usePreviousMonthDisabled","disablePast","minDate","firstEnabledMonth","useMeridiemMode","selectionState","cleanDate","meridiemMode","handleMeridiemChange","timeWithMeridiem","DAY_SIZE","DAY_MARGIN","DIALOG_WIDTH","MAX_CALENDAR_HEIGHT","VIEW_HEIGHT","DIGITAL_CLOCK_VIEW_HEIGHT","MULTI_SECTION_CLOCK_SECTION_WIDTH","PickerViewRoot","getTimeClockUtilityClass","CLOCK_WIDTH","CLOCK_HOUR_WIDTH","clockCenter","baseClockPoint","rad2deg","rad","getAngleValue","atan","deg","getMinutes","angleStep","getHours","getClockPointerUtilityClass","ClockPointerRoot","ClockPointerThumb","ClockPointer","isBetweenTwoClockValues","isInner","viewValue","previousType","pickerOwnerState","getAngleStyle","getClockUtilityClass","mergeDateAndTime","dateParam","timeParam","mergedDate","findClosestEnabledDate","isDateDisabled","forward","backward","replaceInvalidDateByNull","applyDefaultDate","areDatesEqual","getMonthsInYear","prevMonth","getTodayDate","valueType","formatMeridiem","DATE_VIEWS","isDatePickerView","resolveDateFormat","isInToolbar","getWeekdays","ClockRoot","ClockClock","ClockWrapper","ClockSquareMask","ClockPin","meridiemButtonCommonStyles","clockMeridiemMode","ClockAmButton","ClockPmButton","ClockMeridiemText","Clock","ampmInClock","isTimeDisabled","minutesStep","selectedId","minViewValue","maxViewValue","isMoving","isSelectedTimeDisabled","isPointerInner","handleValueChange","isFinish","setTime","newSelectedValue","handleTouchSelection","isPointerBetweenTwoClockValues","keyboardControlStep","clampValue","circleValue","getClockNumberUtilityClass","clockNumberClasses","ClockNumberRoot","ClockNumber","inner","getHourNumbers","getClockNumberText","isDisabled","currentHours","hourNumbers","startHour","endHour","isSelected","getMinutesNumbers","numberValue","useControlledValue","timezoneProp","referenceDate","onChangeProp","valueManager","valueWithInputTimezone","inputTimezone","setInputTimezone","timezoneToRender","valueWithTimezoneToRender","otherParams","newValueWithInputTimezone","SECTION_TYPE_GRANULARITY","getSectionTypeGranularity","sections","section","roundDate","granularity","roundedDate","getDefaultReferenceDate","inGetTodayDate","isAfter","getDateSectionConfigFromFormatToken","formatToken","getDaysInWeekStr","startDate","endDate","weekDay","getLetterEditingOptions","sectionType","FORMAT_SECONDS_NO_LEADING_ZEROS","NON_LOCALIZED_DIGITS","getLocalizedDigits","removeLocalizedDigits","valueStr","localizedDigits","currentFormattedDigit","matchingDigitIndex","applyLocalizedDigits","isStringNumber","nonLocalizedValueStr","cleanLeadingZeros","cleanDigitSectionValue","sectionBoundaries","getSectionVisibleValue","hasLeadingZeros","changeSectionValueFormat","currentFormat","isFourDigitYearFormat","doesSectionFormatHaveLeadingZeros","getDateFromDateSections","shouldSkipWeekDays","sectionFormats","sectionValues","formatWithoutSeparator","dateWithoutSeparatorStr","createDateStrForV7HiddenInputFromSections","createDateStrForV6InputFromSections","dateValue","getSectionsBoundaries","endOfYear","endOfDay","maxDaysInMonth","longestMonth","daysInWeek","lastHourInDay","transferDateSectionValue","dateToTransferFrom","dateToTransferTo","dayInWeekStrOfActiveDate","formattedDaysInWeek","dayInWeekOfActiveDate","isAM","mergedDateHours","reliableSectionModificationOrder","mergeDateIntoReferenceDate","shouldLimitToEditedSections","isAndroid","getSectionOrder","shouldApplyRTL","neighbors","rtl2ltr","ltr2rtl","groupedSectionsStart","groupedSectionsEnd","RTLIndex","rtlIndex","parseSelectedSections","selectedSections","singleItemValueManager","singleItemFieldValueManager","prevReferenceValue","getSectionsFromDate","referenceValue","parseDate","activeSection","activeDate","useClockReferenceDate","referenceDateProp","TimeClockRoot","TimeClockArrowSwitcher","TIME_CLOCK_DEFAULT_VIEWS","TimeClock","maxTime","minTime","shouldDisableTime","showViewSwitcher","valueOrReferenceDate","viewType","shouldCheckPastEnd","containsValidTime","isValidValue","timeValue","valueWithMeridiem","dateWithNewHours","dateWithNewMinutes","dateWithNewSeconds","viewProps","handleHoursChange","hourValue","viewRange","minutesValue","minuteValue","secondsValue","secondValue","getDigitalClockUtilityClass","digitalClockClasses","itemOrItems","executeInTheNextEventLoopTick","getActiveElement","activeEl","getFocusedListItemIndex","listElement","DEFAULT_DESKTOP_MODE_MEDIA_QUERY","mergeSx","sxProps","sxProp","DigitalClockRoot","DigitalClockList","DigitalClockItem","DigitalClock","timeStep","skipDisabled","handleRawValueChange","ClockItem","clockItemProps","handleItemSelect","activeItem","offsetTop","valueToCheck","timeOptions","nextTimeStepOption","focusedOptionIndex","newFocusedIndex","childToFocus","optionDisabled","formattedValue","getMultiSectionDigitalClockUtilityClass","multiSectionDigitalClockClasses","getMultiSectionDigitalClockSectionUtilityClass","multiSectionDigitalClockSectionClasses","MultiSectionDigitalClockSectionRoot","MultiSectionDigitalClockSectionItem","MultiSectionDigitalClockSection","previousActive","DigitalClockSectionItem","isItemDisabled","getHourSectionOptions","resolveAriaLabel","overriddenCurrentHours","resolvedCurrentHours","getTimeSectionOptions","resolveLabel","MultiSectionDigitalClockRoot","MultiSectionDigitalClock","inTimeSteps","inViews","timeSteps","handleMeridiemValueChange","buildViewProps","viewToBuild","amLabel","pmLabel","viewsToRender","digitViews","viewTimeOptions","timeView","getPickersDayUtilityClass","pickersDayClasses","usePickerDayOwnerState","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth","isDaySelected","isDayDisabled","isDayCurrent","isDayOutsideMonth","isHiddenDaySpacingFiller","styleArg","PickersDayRoot","PickersDayFiller","PickersDayRaw","onDaySelect","PickersDay","DATE_VALIDATION_PROP_NAMES","TIME_VALIDATION_PROP_NAMES","DATE_TIME_VALIDATION_PROP_NAMES","VALIDATION_PROP_NAMES","extractValidationProps","extractedProps","SHARED_FIELD_INTERNAL_PROP_NAMES","useSplitFieldProps","forwardedProps","internalProps","extractProp","expandFormat","formatExpansionOverflow","prevFormat","nextFormat","getEscapedPartsFromFormat","expandedFormat","escapedParts","startChar","endChar","getSectionPlaceholder","sectionConfig","sectionFormat","createSection","shouldRespectLeadingZeros","startSeparator","hasLeadingZerosInFormat","hasLeadingZerosInInput","isValidDate","sectionValue","buildSections","validTokens","regExpFirstWordInFormat","regExpWordOnlyComposedOfTokens","regExpFirstTokenInWord","getEscapedPartOfCurrentChar","escapeIndex","escapedPartOfCurrentChar","isEscapedChar","firstWordInFormat","firstWord","postProcessSections","formatDensity","cleanSeparator","cleanedSeparator","buildSectionsFromFormat","useNullablePickerContext","usePickerActionsContext","isQueryResponseWithoutValue","useFieldCharacterEditing","sectionsValueBoundaries","setCharacterQuery","setTempAndroidValueStr","updateSectionValue","applyQuery","keyPressed","sectionIndex","getFirstSectionValueMatchingWithQuery","isValidQueryValue","cleanKeyPressed","concatenatedQueryValue","queryResponse","applyLetterEditing","findMatchingOptions","queryValue","matchingValues","testQueryOnFormatAndFallbackFormat","fallbackFormat","formatFallbackValue","getOptions","fallbackOptions","applyNumericEditing","getNewSectionValue","cleanQueryValue","queryValueNumber","shouldGoToNextSection","validateDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear","validateTime","validateDateTime","dateValidationResult","useValidation","previousValidationErrorRef","validationError","hasValidationError","getValidationErrorForNewValue","QUERY_LIFE_DURATION_MS","useFieldState","fieldValueManager","internalPropsWithDefaults","selectedSectionsProp","onSelectedSectionsChange","enableAccessibleFieldDOMStructure","errorProp","valueRef","getSectionsFromValue","valueToAnalyze","stateWithoutReferenceDate","innerSetSelectedSections","setSelectedSections","newSelectedSections","parsedSelectedSections","activeSectionIndex","sectionOrder","areAllSectionsEmpty","publishValue","setSectionValue","newSectionValue","newSections","sectionToUpdateOnNextInvalidDateRef","updateSectionValueOnNextInvalidDateTimeout","setSectionUpdateToApplyOnNextInvalidDate","clearValue","clearActiveSection","updateValueFromValueStr","parseDateStr","cleanActiveDateSectionsIfValueNullTimeout","newActiveDateSections","newActiveDate","sectionBis","tempValueStrAndroid","newCharacterQuery","cleanCharacterQueryTimeout","useFieldInternalPropsWithDefaults","useApplyDefaultValuesToFieldInternalProps","skipContextFieldRefAssignment","pickerContext","fieldPrivateContext","handleFieldRef","handleChangeFromPicker","internalPropsWithDefaultsFromContext","syncSelectionToDOM","domGetters","selection","useFieldRootHandleKeyDown","nextSectionIndex","adjustSectionValue","getDeltaFromKeyCode","keyCode","stepsAttributes","isStart","isEnd","shouldSetAbsolute","adjustDigitSection","getCleanValue","newSectionValueNumber","adjustLetterSection","clampedIndex","useFieldRootProps","stateResponse","applyCharacterEditing","containerClickTimeout","cursorOnStartOfSection","handleInput","handlePaste","pastedValue","activeElement","useFieldHiddenInputProps","useFieldSectionContainerProps","createHandleClick","useFieldSectionContentProps","isContainerEditable","isEditable","revertDOMSectionChange","inputType","lettersOnly","digitsOnly","digitsAndLetterOnly","handleDragOver","createFocusHandler","getSectionValueNow","getSectionValueText","parsedDate","useFieldV7TextField","useOpenPickerButtonAriaLabel","sectionListRefProp","onInput","onPaste","onClear","clearable","focusedProp","unstableFieldRef","sectionListRef","handleSectionListRef","openPickerAriaLabel","focusField","getActiveSectionIndex","newParsedSelectedSections","hiddenInputProps","createSectionContainerProps","createSectionContentProps","handleRootKeyDown","handleRootBlur","handleRootFocus","handleRootClick","handleRootPaste","handleRootInput","isFieldFocused","domElement","cleanString","dirtyString","addPositionPropertiesToSections","positionInInput","renderedValue","sectionStr","sectionLength","sectionLengthInInput","cleanedValue","startInInput","endInInput","useFieldV6TextField","focusTimeout","selectionSyncTimeout","inPlaceholder","syncSelectionFromDOM","browserStartIndex","newSelectedSection","handleInputFocus","handleInputClick","handleInputPaste","handleContainerBlur","eventData","shouldUseEventData","cleanValueStr","prevValueStr","startOfDiffIndex","endOfDiffIndex","activeSectionEndRelativeToNewValue","handleContainerKeyDown","wrappedHandleContainerKeyDown","currentScrollTop","selectedSection","selectionStart","selectionEnd","inputMode","shouldShowPlaceholder","browserEndIndex","useField","useDateManager","useApplyDefaultValuesToDateFieldInternalProps","validationProps","useApplyDefaultValuesToDateValidationProps","useTimeManager","useApplyDefaultValuesToTimeFieldInternalProps","createUseOpenPickerButtonAriaLabel","formatKey","useApplyDefaultValuesToTimeValidationProps","useDateTimeManager","useApplyDefaultValuesToDateTimeFieldInternalProps","useApplyDefaultValuesToDateTimeValidationProps","useDateField","useFieldOwnerState","getPickersTextFieldUtilityClass","getPickersInputBaseUtilityClass","pickersInputBaseClasses","getPickersSectionListUtilityClass","pickersSectionListClasses","PickersSectionListRoot","PickersSectionListSection","PickersSectionListSectionSeparator","PickersSectionListSectionContent","PickersSection","Section","sectionProps","SectionContent","sectionContentProps","SectionSeparator","sectionSeparatorBeforeProps","sectionSeparatorAfterProps","PickersSectionList","handleRootRef","getRoot","sectionContainer","elementIndex","PickerTextFieldOwnerStateContext","usePickerTextFieldOwnerState","PickersInputBaseRoot","PickersInputBaseSectionsContainer","PickersInputBaseSection","PickersInputBaseSectionContent","PickersInputBaseSectionSeparator","PickersInputBaseInput","PickersInputBaseActiveBar","isFieldDisabled","isFieldReadOnly","hasFieldError","inputSize","isInputInFullWidth","inputColor","hasStartAdornment","hasEndAdornment","resolveSectionElementWidth","sectionElement","dateRangePosition","activeSectionElements","currentActiveBarWidth","resolveSectionWidthAndOffsets","activeBarWidth","PickersInputBase","contentEditable","ownerStateContext","activeBarRef","sectionOffsetsRef","handleHiddenInputFocus","closestForm","submitTrigger","handleInputBlur","inputRootProps","InputSectionsContainer","isSingleInputRange","sectionOffsets","separatorPosition","getPickersOutlinedInputUtilityClass","pickersOutlinedInputClasses","OutlineRoot","OutlineLabel","OutlineLegend","Outline","PickersOutlinedInputRoot","PickersOutlinedInputSectionsContainer","PickersOutlinedInput","getPickersFilledInputUtilityClass","pickersFilledInputClasses","PickersFilledInputRoot","PickersFilledSectionsContainer","inputHasUnderline","PickersFilledInput","pickerTextFieldOwnerState","getPickersInputUtilityClass","pickersInputClasses","PickersInputRoot","PickersInput","VARIANT_COMPONENT","PickersTextFieldRoot","isFieldRequired","PickersTextField","InputProps","FormHelperTextProps","InputLabelProps","dataActiveRangePosition","fieldOwnerState","PickersInputComponent","_excluded5","_excluded6","_excluded7","_excluded8","cleanFieldResponse","fieldResponse","clearButtonPosition","openPickerButtonPosition","PickerFieldUIContext","PickerFieldUI","defaultOpenPickerIcon","pickerFieldUIContext","textFieldProps","clearButtonPositionProp","openPickerButtonPositionProp","handleClickOpeningButton","triggerStatus","MuiTextField","MuiInputAdornment","startInputAdornmentProps","endInputAdornmentProps","OpenPickerButton","MuiIconButton","_useSlotProps3","openPickerButtonProps","OpenPickerIcon","openPickerIconProps","ClearButton","_useSlotProps4","clearButtonProps","MuiClearIcon","clearIconProps","slotPropsA","slotPropsB","useFieldTextFieldProps","otherExternalForwardedProps","PickerFieldUIContextProvider","DateField","inRef","useTimeField","TimeField","useDateTimeField","DateTimeField","useIsDateDisabled","createCalendarStateReducer","reduceAnimations","newTimezone","newCurrentMonth","useCalendarState","onMonthChange","onYearChange","getCurrentMonthFromVisibleDate","reducerFn","calendarState","React.useReducer","setVisibleDate","skipAnimation","focusedDay","startOfMonth","endOfMonth","hasChangedMonth","hasChangedYear","onMonthSwitchingAnimationEnd","getPickersFadeTransitionGroupUtilityClass","PickersFadeTransitionGroupRoot","PickersFadeTransitionGroup","transKey","getPickersSlideTransitionUtilityClass","pickersSlideTransitionClasses","slideDirection","PickersSlideTransitionRoot","slideTransition","PickersSlideTransition","transitionClasses","getDayCalendarUtilityClass","weeksContainerHeight","PickersCalendarDayRoot","PickersCalendarDayHeader","PickersCalendarWeekDayLabel","PickersCalendarWeekNumberLabel","PickersCalendarWeekNumber","PickersCalendarLoadingContainer","PickersCalendarSlideTransition","PickersCalendarWeekContainer","PickersCalendarWeek","WrappedDay","parentProps","selectedDays","currentMonthNumber","isViewFocused","isMonthSwitchingAnimating","isFocusableDay","isFocusedDay","selectedDay","isToday","isOutsideCurrentMonth","dayProps","isFirstVisibleCell","isLastVisibleCell","DayCalendar","onFocusedDayChange","currentMonth","onSelectedDaysChange","renderLoading","dayOfWeekFormatter","gridLabelId","displayWeekNumber","fixedWeekNumber","handleDaySelect","focusDay","newFocusedDayDefault","nextAvailableMonth","closestDayToFocus","currentYearNumber","validSelectedDays","transitionKey","slideNodeRef","React.createRef","weeksToDisplay","toDisplay","nextMonth","additionalWeeks","hasCommonWeek","dayIndex","getMonthCalendarUtilityClass","monthCalendarClasses","DefaultMonthButton","MonthCalendarButton","MonthButton","monthButtonProps","useMonthCalendarDefaultizedProps","MonthCalendarRoot","MonthCalendar","onMonthFocus","monthsPerRow","todayMonth","selectedMonth","focusedMonth","setFocusedMonth","internalHasFocus","setInternalHasFocus","changeHasFocus","newHasFocus","isMonthDisabled","dateToValidate","monthToValidate","handleMonthSelection","focusMonth","prevFocusedMonth","handleMonthFocus","handleMonthBlur","monthNumber","monthText","monthLabel","getYearCalendarUtilityClass","yearCalendarClasses","DefaultYearButton","YearCalendarButton","YearButton","yearButtonProps","useYearCalendarDefaultizedProps","YearCalendarRoot","YearCalendarButtonFiller","YearCalendar","onYearFocus","yearsOrder","yearsPerRow","todayYear","selectedYear","focusedYear","setFocusedYear","isYearDisabled","yearToValidate","handleYearSelection","focusYear","prevFocusedYear","verticalDirection","horizontalDirection","handleYearFocus","handleYearBlur","scrollerRef","tabbableButton","clientHeight","yearRange","fillerAmount","yearNumber","getPickersCalendarHeaderUtilityClass","pickersCalendarHeaderClasses","PickersCalendarHeaderRoot","PickersCalendarHeaderLabelContainer","PickersCalendarHeaderLabel","PickersCalendarHeaderSwitchViewButton","PickersCalendarHeaderSwitchViewIcon","PickersCalendarHeader","SwitchViewButton","switchViewButtonProps","SwitchViewIcon","switchViewIconProps","selectNextMonth","selectPreviousMonth","isNextMonthDisabled","isPreviousMonthDisabled","handleToggleView","nextIndexToOpen","PREFERS_REDUCED_MOTION","mobileVersionMatches","androidVersion","iOSVersion","slowAnimationDevices","useReduceAnimations","customReduceAnimations","prefersReduced","getDateCalendarUtilityClass","useDateCalendarDefaultizedProps","DateCalendarRoot","DateCalendarViewTransitionContainer","DateCalendar","focusedViewProp","visibleDate","minDateWithDisabled","maxDateWithDisabled","CalendarHeader","calendarHeaderProps","handleDateMonthChange","closestEnabledDate","handleDateYearChange","startOfYear","handleSelectedDayChange","baseDateValidationProps","commonViewProps","prevOpenViewRef","focusedDate","getPickersToolbarUtilityClass","pickersToolbarClasses","useToolbarOwnerState","PickersToolbarRoot","PickersToolbarContent","PickersToolbar","toolbarTitle","hidden","landscapeDirection","getDatePickerToolbarUtilityClass","DatePickerToolbarRoot","DatePickerToolbarTitle","DatePickerToolbar","toolbarFormat","toolbarPlaceholder","dateText","formatFromViews","useDatePickerDefaultizedProps","getPickerPopperUtilityClass","PickerPopperRoot","MuiPopper","PickerPopperPaper","MuiPaper","popperPlacement","useClickAwayListener","armClickAwayListener","handleSynthetic","PickerPopperPaperWrapper","paperClasses","onPaperClick","onPaperTouchStart","PickerPopper","popupRef","dismissViews","getCurrentViewMode","onPopperExited","triggerElement","viewContainerRole","lastFocusedElementRef","rootRefObject","clickAwayRef","handlePaperRef","BaseFocusTrap","getOrientation","useOrientation","customOrientation","setOrientation","useValueAndOpenStates","defaultValueProp","onAccept","closeOnSelect","isValueControlled","setOpen","newOpen","changeImportance","skipPublicationIfPristine","shortcut","shouldClose","shouldFireOnChange","shouldFireOnAccept","cachedContext","setValueFromView","usePicker","autoFocusView","RendererInterceptor","viewProp","viewRenderers","reduceAnimationsProp","orientationProp","disableOpenPicker","propsToForwardToView","initialView","triggerRef","fieldRef","goToNextStep","hasNextStep","hasSeveralSteps","setValueToToday","acceptValueChanges","cancelValueChanges","hasUIView","viewModeLookup","timeViewsCount","viewForReduce","viewMode","currentViewMode","popperView","setPopperView","wrappedGoToNextStep","defaultActionBarActions","testedValue","renderer","rendererProps","getPickersLayoutUtilityClass","pickersLayoutClasses","PickersActionBarRoot","PickersActionBarComponent","buttons","actionType","PickersActionBar","PickersShortcutsRoot","PickersShortcuts","resolvedItems","toolbarHasView","toolbarProps","pickerOrientation","usePickerLayout","ActionBar","actionBarProps","actionBar","toolbar","tabs","Shortcuts","shortcutsProps","shortcuts","PickersLayoutRoot","PickersLayoutContentWrapper","PickersLayout","createNonRangePickerStepNavigation","targetView","viewBis","useDesktopPicker","pickerParams","innerSlotProps","renderCurrentView","isToolbarHidden","Field","fieldProps","Layout","labelledById","renderDateViewCalendar","DesktopDatePicker","defaultizedProps","renderPicker","PickersModalDialogRoot","MuiDialog","PickersModalDialogContent","PickersModalDialog","useMobilePicker","MobileDatePicker","DatePicker","desktopModeMediaQuery","getPickersToolbarTextUtilityClass","pickersToolbarTextClasses","PickersToolbarTextRoot","PickersToolbarText","PickersToolbarButtonRoot","PickersToolbarButton","typographyClassName","getTimePickerToolbarUtilityClass","timePickerToolbarClasses","toolbarDirection","TimePickerToolbarRoot","TimePickerToolbarSeparator","TimePickerToolbarHourMinuteLabel","TimePickerToolbarAmPmSelection","TimePickerToolbar","showAmPmControl","formatSection","useTimePickerDefaultizedProps","renderTimeViewClock","renderDigitalClockTimeView","renderMultiSectionDigitalClockTimeView","resolveDateTimeFormat","ignoreDateResolving","dateViews","timeViews","resolveViews","shouldUseSingleColumn","resolveShouldRenderTimeInASingleColumn","resolveTimeViewsResponse","inThreshold","thresholdToRenderTimeInASingleColumn","shouldRenderTimeInASingleColumn","DesktopTimePicker","resolvedViews","renderTimeView","MobileTimePicker","TimePicker","getDateTimePickerTabsUtilityClass","viewToTab","tabToView","DateTimePickerTabsRoot","DateTimePickerTabs","dateIcon","timeIcon","getDateTimePickerToolbarUtilityClass","dateTimePickerToolbarClasses","DateTimePickerToolbarRoot","DateTimePickerToolbarDateContainer","DateTimePickerToolbarTimeContainer","toolbarVariant","DateTimePickerToolbarTimeDigitsContainer","DateTimePickerToolbarSeparator","DateTimePickerToolbarAmPmSelection","DateTimePickerToolbarOverrideContext","DateTimePickerToolbar","inToolbarTitle","valueContext","setValueContext","viewContext","setViewContext","isDesktop","useDateTimePickerDefaultizedProps","DesktopDateTimePickerLayout","isActionBarVisible","rendererInterceptor","finalProps","isTimeViewActive","dateView","DesktopDateTimePicker","STEPS","MobileDateTimePicker","DateTimePicker","formatTokenMap","defaultFormats","AdapterLuxon","expectedLocale","formatString","catchEscapedSectionsRegexp","isWordComposedOfTokens","catchWordsRegexp","g1","g2","numberToFormat","comparing","comparingInValueTimezone","firstDay","lastDay","years","SearchIcon","isObject_1","_freeGlobal","_root","now_1","_trimmedEndIndex","_baseTrim","_Symbol","_getRawTag","_objectToString","_baseGetTag","isObjectLike_1","isSymbol_1","toNumber_1","debounce_1","IngredientAutocompleter","initialIngredient","initialData","setSearchEnglish","setInputValue","setOptions","fetchName","then","whiteSpace","textOverflow","isMergeableObject","isNonNullObject","isSpecial","stringValue","isReactElement","canUseSymbol","emptyTarget","cloneUnlessOtherwiseSpecified","defaultArrayMerge","mergeObject","destination","sourceIsArray","targetIsArray","sourceAndTargetTypesMatch","deepmerge_1","keyList","hasProp","hasElementType","equal","arrA","arrB","dateA","dateB","regexpA","regexpB","reactFastCompare","subClass","superClass","excluded","sourceKeys","FormikContext","FormikProvider","FormikConsumer","useFormikContext","formik","isEmptyArray","isEmptyChildren","getIn","def","setIn","resVal","pathArray","currentPath","currentObj","setNestedObjectValues","_Object$keys","formikReducer","emptyErrors","emptyTouched","useFormik","_ref$validateOnChange","validateOnChange","_ref$validateOnBlur","validateOnBlur","_ref$validateOnMount","validateOnMount","isInitialValid","_ref$enableReinitiali","enableReinitialize","onSubmit","initialValues","initialErrors","initialTouched","fieldRegistry","_React$useState","setIteration","stateRef","runValidateHandler","maybePromisedErrors","errors","actualException","runValidationSchema","validationSchema","validateYupSchema","yupToFormErrors","runSingleFieldLevelValidation","runFieldLevelValidations","fieldKeysWithValidation","fieldValidations","fieldErrorsList","runAllValidations","fieldErrors","schemaErrors","validateErrors","combinedErrors","arrayMerge","validateFormWithHighPriority","resetForm","touched","dispatchFn","maybePromisedOnReset","imperativeMethods","validateField","registerField","unregisterField","setTouched","shouldValidate","willValidate","setErrors","setValues","resolvedValues","setFieldError","setFieldValue","executeChange","eventOrTextValue","maybePath","getValueForCheckbox","getSelectedValues","eventOrPath","setFieldTouched","executeBlur","_e$target","eventOrString","setFormikState","stateOrCb","setStatus","setSubmitting","isSubmitting","submitForm","isInstanceOfError","isActuallyValid","promiseOrUndefined","executeSubmit","_errors","handleSubmit","handleReset","getFieldMeta","getFieldHelpers","getFieldProps","nameOrOptions","isAnObject","Formik","formikbag","yupError","_isArray","sync","normalizedValues","prepareDataForValidation","cloneRequested","shouldClone","currentValue","currentArrayOfValues","isValueInArray","propsOrFieldName","fieldName","validateFn","fieldHelpers","Form","_useFormikContext","C","componentDisplayName","move","copyArrayLike","arrayLike","indexA","indexB","insert","createAlterationHandler","alteration","defaultFunction","FieldArrayInner","alterTouched","alterErrors","updateErrors","updateTouched","fieldError","fieldTouched","tmp","arrayHelpers","_this$props2","_this$props2$formik","restOfFormik","FieldArray","Cache","SPLIT_REGEX","DIGIT_REGEX","LEAD_DIGIT_REGEX","SPEC_CHAR_REGEX","CLEAN_QUOTES_REGEX","MAX_CACHE_SIZE","pathCache","setCache","getCache","propertyExpr","normalizePath","safe","segments","isQuoted","isBracket","shouldBeQuoted","hasLeadingNumber","hasSpecialChars","reWords","tinyCase","toposortModule","toposort","uniqueNodes","outgoingEdges","makeOutgoingEdges","nodesHash","makeNodesHash","predecessors","nodeRep","outgoing","errorToString","regExpToString","SYMBOL_REGEXP","printNumber","printSimpleValue","quoteStrings","printValue","_Symbol$toStringTag","_Symbol$hasInstance","_Symbol$toStringTag2","strReg","ValidationErrorNoStack","errorOrErrors","ValidationError","innerErrors","disableStack","errorNoStack","originalValue","castMsg","boolean","tuple","spec","typeLen","isSchema","Condition","otherwise","_branch","branch","create$9","Reference","getter","isAbsent","createValidation","panic","skipAbsent","abortEarly","disableStackTrace","resolveOptions","createError","nextParams","resolveParams","resolveMaybeRef","handleResult","validOrError","handleError","lastPart","lastPartDebug","_part","isTuple","ReferenceSet","removeItems","createStandardPath","currentSegment","inBrackets","inQuotes","createStandardIssues","parentPath","issuesFromValidationError","_error$inner","Schema","combined","mergedSpec","conditions","prevSchema","_options$strict","_options$abortEarly","_options$recursive","_options$disableStack","resolvedSchema","allowOptionality","formattedResult","prevValue","initialTests","runOptions","fired","tests","panicOnce","nextOnce","nestedErrors","originalParent","testOptions","_options$disableStack2","validated","_options$disableStack3","nullable","isExclusive","enums","valids","invalids","strip","meta","create$7","BooleanSchema","_raw","isoReg","parseIsoDate","struct","parseDateStruct","totalMinutesOffset","_regexResult$7$length","_regexResult$","regexResult","rEmail","rUrl","rUUID","yearMonthDay","hourMinuteSecond","zOrOffset","rIsoDateTime","isTrimmed","objStringTag","create$6","StringSchema","strValue","excludeEmptyString","allowOffset","isNaN$1","create$5","NumberSchema","less","_method","avail","invalidDate","create$4","DateSchema","cast","sortFields","fields","excludedEdges","excludes","addNode","depPath","ii","_err$path","sortByKeyOrder","parseJson","deepPartial","fieldSchema","nextArray","deepHas","known","defaultSort","create$3","ObjectSchema","_options$stripUnknown","intermediateValue","innerOptions","isChanged","exists","fieldValue","fieldSpec","objectErrors","nextFields","schemaOrRef","dft","_innerOptions","additions","picked","fromGetter","newObj","unknownKeys","noAllow","allow","_innerOptions2","create$2","ArraySchema","_opts","castElement","innerType","arrayErrors","_options$originalValu2","_options$originalValu","innerTypeErrors","original","rejector","NutritionDiaryEntryForm","mealObjs","addDiaryQuery","editDiaryQuery","setDateValue","selectedMeal","setSelectedMeal","yup","newAmount","newDiaryEntry","Boolean","toJSDate","PlanForm","addPlanQuery","editPlanQuery","useGoals","setUseGoals","startDateValue","setStartDateValue","endDateValue","setEndDateValue","notRequired","newPlan","textField","NutritionCard","planQuery","NutritionCardContent","openLogModal","setOpenLogModal","handleOpenLogModal","handleCloseLogModal","MealListItem","addDiaryEntryQuery","expandView","setExpandView","openSnackbar","setOpenSnackbar","handleToggleExpand","handleCloseSnackbar","handleAddDiaryEntry","primaryHeader","secondaryHeader","ExpandLessIcon","ExpandMoreIcon","TodayIcon","useRoutineDetailQuery","useRoutineStatsQuery","useRoutineLogData","useRoutinesShallowQuery","usePrivateRoutinesShallowQuery","usePublicRoutinesShallowQuery","useActiveRoutineQuery","useAddRoutineQuery","useEditRoutineQuery","useDeleteRoutineQuery","useProcessConfigsQuery","useEditWeightConfigQuery","useAddWeightConfigQuery","useDeleteWeightConfigQuery","useEditMaxWeightConfigQuery","useAddMaxWeightConfigQuery","useDeleteMaxWeightConfigQuery","useEditRepsConfigQuery","useAddRepsConfigQuery","useDeleteRepsConfigQuery","useEditMaxRepsConfigQuery","useAddMaxRepsConfigQuery","useDeleteMaxRepsConfigQuery","useEditNrOfSetsConfigQuery","useAddNrOfSetsConfigQuery","useDeleteNrOfSetsConfigQuery","useEditMaxNrOfSetsConfigQuery","useAddMaxNrOfSetsConfigQuery","useEditRiRConfigQuery","useAddRiRConfigQuery","useDeleteRiRConfigQuery","useEditMaxRiRConfigQuery","useAddMaxRiRConfigQuery","useDeleteMaxRiRConfigQuery","useEditRestConfigQuery","useAddRestConfigQuery","useDeleteRestConfigQuery","useEditMaxRestConfigQuery","useAddMaxRestConfigQuery","useDeleteMaxRestConfigQuery","useEditDayQuery","useEditDayOrderQuery","useAddDayQuery","useDeleteDayQuery","useDeleteRoutineLogQuery","logId","useEditRoutineLogQuery","useAddRoutineLogsQuery","useEditSlotEntryQuery","useAddSlotEntryQuery","useDeleteSlotEntryQuery","useFetchRoutineWeighUnitsQuery","useFetchRoutineRepUnitsQuery","useAddSlotQuery","useEditSlotQuery","useEditSlotsQuery","useDeleteSlotQuery","useFindSessionQuery","useAddSessionQuery","useSessionsQuery","useEditSessionQuery","AddIcon","AddCircleIcon","Addchart","ArrowDropUpIcon","ArrowForwardIosIcon","BarChartIcon","CachedIcon","CalendarMonthIcon","CameraAltIcon","CheckBoxOutlineBlank","ChevronLeftIcon","ChevronRightIcon","CollectionsIcon","ContentCopy","DeleteIcon$1","DeleteOutlineIcon","DeleteIcon","DragIndicatorIcon","EditIcon","EditOffIcon","FilterAltIcon","FlagCircleIcon","HelpOutlineIcon","InfoIcon","LandscapeIcon","LandscapeOutlinedIcon","LandscapeTwoToneIcon","MenuIcon","MoreHorizIcon","MoreVertIcon","NorthEastIcon","PhotoCameraIcon","RedoIcon","SaveIcon","SentimentNeutral","SentimentSatisfiedAlt","SentimentVeryDissatisfied","SettingsIcon","SouthEastIcon","SsidChart","SwapHoriz","RenderLoadingQuery","isSuccess","ExerciseImageAvatar","avatarSize","flexShrink","useExercisesQuery","useExerciseQuery","useAddExerciseFullQuery","useAddTranslationQuery","useEditTranslationQuery","useDeleteExerciseImageQuery","useAddExerciseImageQuery","useCategoriesQuery","useMusclesQuery","useEquipmentQuery","useLanguageQuery","PopStateEventType","createBrowserHistory","createBrowserLocation","window2","globalHistory","pathname","createLocation","createBrowserHref","createPath","getUrlBasedHistory","createKey","getHistoryState","parsePath","parsedPath","hashIndex","searchIndex","getLocation","createHref2","validateLocation","v5Compat","getIndex","handlePop","history","historyState","replace2","createURL","createBrowserURLImpl","isAbsolute","matchRoutes","routes","locationArg","basename","matchRoutesImpl","allowPartial","stripBasename","branches","flattenRoutes","rankRouteBranches","decoded","decodePath","matchRouteBranch","parentsMeta","_hasParentOptionalSegments","flattenRoute","route","hasParentOptionalSegments","relativePath","joinPaths","routesMeta","computeScore","exploded","explodeOptionalSegments","isOptional","restExploded","subpath","compareIndexes","paramRe","dynamicSegmentValue","indexRouteValue","emptySegmentValue","staticSegmentValue","splatPenalty","isSplat","initialScore","score","segment","matchedParams","matchedPathname","remainingPathname","matchPath","normalizePathname","compiledParams","compilePath","pathnameBase","captureGroups","memo2","splatValue","caseSensitive","regexpSource","nextChar","resolvePath","fromPathname","toPathname","resolvePathname","normalizeSearch","normalizeHash","getInvalidPathError","getPathContributingMatches","getResolveToMatches","pathMatches","resolveTo","toArg","routePathnames","locationPathname","isPathRelative","isEmptyPath","routePathnameIndex","toSegments","hasExplicitTrailingSlash","hasCurrentTrailingSlash","isRouteErrorResponse","validMutationMethodsArr","validRequestMethodsArr","DataRouterContext","DataRouterStateContext","ViewTransitionContext","FetchersContext","AwaitContext","NavigationContext","LocationContext","RouteContext","RouteErrorContext","useHref","relative","useInRouterContext","navigator","React2.useContext","useResolvedPath","joinedPathname","useLocation","navigateEffectWarning","React2.useLayoutEffect","useNavigate","isDataRoute","useNavigateStable","useNavigateUnstable","dataRouterContext","routePathnamesJson","activeRef","React2.useRef","React2.useCallback","React2.createContext","useParams","routeMatch","React2.useMemo","useRoutes","useRoutesImpl","dataRouterState","unstable_onError","future","parentMatches","parentParams","parentPathname","parentPathnameBase","parentRoute","warningOnce","locationFromContext","parsedLocationArg","parentSegments","renderedMatches","_renderMatches","React2.createElement","DefaultErrorComponent","useRouteError","lightgrey","preStyles","codeStyles","devInfo","React2.Fragment","defaultErrorElement","RenderErrorBoundary","React2.Component","RenderedRoute","routeContext","errorIndex","renderFallback","fallbackIndex","loaderData","errors2","needsToRunLoader","outlet","shouldRenderHydrateFallback","errorElement","hydrateFallbackElement","matches2","getChildren","getDataRouterConsoleError","hookName","useDataRouterContext","useDataRouterState","useRouteContext","useCurrentRouteId","thisRoute","useRouteId","routeId","router","React3.memo","DataRoutes","Route","Router","basenameProp","locationProp","navigationType","staticProp","navigationContext","React3.useMemo","locationContext","trailingPathname","React3.createElement","Routes","createRoutesFromChildren","React3.Children","React3.isValidElement","treePath","React3.Fragment","defaultMethod","defaultEncType","isHtmlElement","isButtonElement","isFormElement","isInputElement","isModifiedEvent","shouldProcessLinkClick","_formDataSupportsSubmitter","isFormDataSubmitterSupported","supportedFormEncTypes","getFormEncType","encType","getFormSubmissionInfo","invariant2","singleFetchUrl","reqUrl","extension","loadRouteModule","routeModulesCache","routeModule","isHtmlLinkDescriptor","getKeyedPrefetchLinks","manifest","routeModules","links","dedupeLinkDescriptors","getNewMatchesForLinks","nextMatches","currentMatches","matchPathChanged","manifestRoute","routeChoice","getModuleLinkHrefs","includeHydrateFallback","dedupeHrefs","hrefs","sortKeys","preloads","deduped","useDataRouterContext2","React8.useContext","useDataRouterStateContext","FrameworkContext","React8.createContext","useFrameworkContext","usePrefetchBehavior","prefetch","theirElementProps","frameworkContext","maybePrefetch","setMaybePrefetch","React8.useState","shouldPrefetch","setShouldPrefetch","React8.useRef","React8.useEffect","setIntent","cancelIntent","composeEventHandlers","theirHandler","ourHandler","PrefetchPageLinks","linkProps","React8.useMemo","React8.createElement","PrefetchPageLinksImpl","useKeyedPrefetchLinks","keyedPrefetchLinks","setKeyedPrefetchLinks","interrupted","newMatchesForData","newMatchesForAssets","dataHrefs","routesParams","foundOptOutRoute","moduleHrefs","React8.Fragment","mergeRefs","BrowserRouter","historyRef","React10.useRef","setStateImpl","React10.useState","React10.useCallback","React10.startTransition","React10.useLayoutEffect","React10.createElement","ABSOLUTE_URL_REGEX2","Link","React10.forwardRef","discover","reloadDocument","preventScrollReset","viewTransition","React10.useContext","absoluteHref","currentUrl","targetUrl","prefetchRef","prefetchHandlers","internalOnClick","useLinkClickHandler","React10.Fragment","NavLink","ariaCurrentProp","routerState","isTransitioning","useViewTransitionState","nextLocationPathname","endSlashPosition","renderProps","ariaCurrent","fetcherKey","navigate","submit","useSubmit","formAction","useFormAction","formMethod","submitHandler","submitter","submitMethod","getDataRouterConsoleError2","useDataRouterContext3","replaceProp","fetcherId","getUniqueFetcherId","currentRouteId","indexValues","qs","vtContext","RoutineDetailsCard","routineQuery","DayDetailsCard","SetConfigDataDetails","languageQuery","marginBottom","showExercise","setConfigData","marginLeft","SlotDataList","flex","A200","RoutineCard","RoutineCardContent","DayListItem","useBodyWeightQuery","useDeleteWeightEntryQuery","useAddWeightEntryQuery","weightEntry","useEditWeightEntryQuery","WeightForm","weightEntriesQuery","addWeightQuery","editWeightQuery","PREFIX","Theme","WeightTableDashboard","weights","filteredWeight","CustomTooltip","toLocaleDateString","WeightChart","isModalOpen","setIsModalOpen","currentEntry","setCurrentEntry","weightData","NR_OF_WEIGHTS_CHART_DOT","timeStr","WeightCard","weightyQuery","WeightCardContent","IngredientSearch","navigateToIngredient","heap","parentIndex","halfLength","localPerformance","initialTime","taskQueue","timerQueue","taskIdCounter","currentTask","currentPriorityLevel","isPerformingWork","isHostCallbackScheduled","isHostTimeoutScheduled","needsPaint","localSetTimeout","localClearTimeout","localSetImmediate","advanceTimers","currentTime","handleTimeout","isMessageLoopRunning","schedulePerformWorkUntilDeadline","firstTimer","requestHostTimeout","taskTimeoutID","frameInterval","shouldYieldToHost","performWorkUntilDeadline","hasMoreWork","previousPriorityLevel","continuationCallback","channel","port","fps","priorityLevel","parentPriorityLevel","schedulerModule","Scheduler","isValidContainer","getNearestMountedFiber","nearestMounted","getSuspenseInstanceFromFiber","suspenseState","assertIsMounted","findCurrentFiberUsingSlowPath","alternate","parentA","parentB","didFindChild","child$0","findCurrentHostFiberImpl","REACT_LEGACY_ELEMENT_TYPE","REACT_PROVIDER_TYPE","REACT_ACTIVITY_TYPE","REACT_MEMO_CACHE_SENTINEL","getComponentNameFromType","ReactDOMSharedInternals","sharedNotPendingObject","valueStack","createCursor","contextStackCursor","contextFiberStackCursor","rootInstanceStackCursor","hostTransitionProviderCursor","pushHostContainer","nextRootInstance","getOwnHostContext","getChildHostContextProd","popHostContainer","pushHostContext","JSCompiler_inline_result","popHostContext","HostTransitionContext","scheduleCallback$3","cancelCallback$1","shouldYield","requestPaint","getCurrentPriorityLevel","ImmediatePriority","UserBlockingPriority","NormalPriority$1","LowPriority","IdlePriority","log$1","unstable_setDisableYieldValue","rendererID","injectedHook","setIsStrictModeForDevtools","newIsStrictMode","clz32","clz32Fallback","LN2","nextTransitionLane","nextRetryLane","getHighestPriorityLanes","lanes","pendingSyncLanes","getNextLanes","wipLanes","rootHasPendingCommit","pendingLanes","nextLanes","suspendedLanes","pingedLanes","nonIdlePendingLanes","checkIfRootIsPrerendering","renderLanes","computeExpirationTime","lane","claimNextTransitionLane","claimNextRetryLane","createLaneMap","laneMap","markRootUpdated$1","updateLane","markRootFinished","finishedLanes","remainingLanes","spawnedLane","updatedLanes","suspendedRetryLanes","previouslyPendingLanes","entanglements","expirationTimes","hiddenUpdates","index$5","hiddenUpdatesForLane","markSpawnedDeferredLane","entangledLanes","spawnedLaneIndex","markRootEntangled","rootEntangledLanes","index$6","getBumpedLaneForHydrationByLane","lanesToEventPriority","resolveUpdatePriority","updatePriority","getEventPriority","runWithPriority","priority","previousPriority","randomKey","internalInstanceKey","internalPropsKey","internalContainerInstanceKey","internalEventHandlersKey","internalEventHandlerListenersKey","internalEventHandlesSetKey","internalRootNodeResourcesKey","internalHoistableMarker","detachDeletedInstance","getClosestInstanceFromNode","targetNode","targetInst","parentNode","getParentSuspenseInstance","getInstanceFromNode","getNodeFromInstance","getResourcesFromRoot","markNodeAsHoistable","allNativeEvents","registrationNameDependencies","registerTwoPhaseEvent","registrationName","registerDirectEvent","VALID_ATTRIBUTE_NAME_REGEX","illegalAttributeNameCache","validatedAttributeNameCache","isAttributeNameSafe","attributeName","setValueForAttribute","prefix$8","setValueForKnownAttribute","setValueForNamespacedAttribute","describeBuiltInComponentFrame","reentry","describeNativeComponentFrame","construct","previousPrepareStackTrace","RunInRootFrame","Fake","x$9","x$10","namePropDescriptor","_RunInRootFrame$Deter","sampleStack","controlStack","sampleLines","controlLines","frame","describeFiber","getStackByFiberInDevAndProd","workInProgress","getToStringValue","isCheckable","trackValueOnNode","valueField","track","updateValueIfChanged","tracker","escapeSelectorAttributeValueInsideDoubleQuotesRegex","escapeSelectorAttributeValueInsideDoubleQuotes","ch","updateInput","lastDefaultValue","setDefaultValue","initInput","isHydrating","setDefaultSelected","updateTextarea","initTextarea","setTextContent","firstChild","unitlessNumbers","setValueForStyle","setValueForStyles","prevStyles","styleName$16","styleName$17","isCustomElement","isJavaScriptProtocol","sanitizeURL","currentReplayingEvent","getEventTarget","restoreTarget","restoreQueue","restoreStateOfTarget","internalInstance","otherNode","isInsideEventHandler","batchedUpdates$1","flushSyncWork$1","getListener","stateNode","passiveBrowserEventsSupported","startText","fallbackText","startLength","endValue","endLength","minEnd","getEventCharCode","functionThatReturnsTrue","functionThatReturnsFalse","createSyntheticEvent","Interface","SyntheticBaseEvent","reactName","reactEventType","nativeEventTarget","EventInterface","SyntheticEvent","UIEventInterface","SyntheticUIEvent","lastMovementX","lastMovementY","lastMouseEvent","MouseEventInterface","getEventModifierState","SyntheticMouseEvent","DragEventInterface","SyntheticDragEvent","FocusEventInterface","SyntheticFocusEvent","AnimationEventInterface","SyntheticAnimationEvent","ClipboardEventInterface","SyntheticClipboardEvent","CompositionEventInterface","SyntheticCompositionEvent","normalizeKey","translateToKey","modifierKeyToProp","modifierStateGetter","keyArg","KeyboardEventInterface","SyntheticKeyboardEvent","PointerEventInterface","SyntheticPointerEvent","TouchEventInterface","SyntheticTouchEvent","TransitionEventInterface","SyntheticTransitionEvent","WheelEventInterface","SyntheticWheelEvent","ToggleEventInterface","SyntheticToggleEvent","END_KEYCODES","canUseCompositionEvent","documentMode","canUseTextInputEvent","useFallbackCompositionData","SPACEBAR_CHAR","hasSpaceKeypress","isFallbackCompositionEnd","domEventName","getDataFromCustomEvent","isComposing","getNativeBeforeInputChars","getFallbackBeforeInputChars","supportedInputTypes","isTextInputElement","nodeName","createAndAccumulateChangeEvent","dispatchQueue","accumulateTwoPhaseListeners","activeElement$1","activeElementInst$1","runEventInBatch","processDispatchQueue","getInstIfValueChanged","getTargetInstForChangeEvent","isInputEventSupported","JSCompiler_inline_result$jscomp$282","isSupported$jscomp$inline_417","element$jscomp$inline_418","stopWatchingForValueChange","handlePropertyChange","handleEventsForInputEventPolyfill","getTargetInstForInputEventPolyfill","getTargetInstForClickEvent","getTargetInstForInputOrChangeEvent","currentKey","getLeafNode","getNodeForCharacterOffset","nodeEnd","containsNode","outerNode","innerNode","getActiveElementDeep","hasSelectionCapabilities","skipSelectionChangeEvent","activeElementInst","lastSelection","mouseDown","constructSelectEvent","makePrefixMap","eventName","vendorPrefixes","prefixedEventNames","getVendorPrefixedEventName","prefixMap","ANIMATION_END","ANIMATION_ITERATION","ANIMATION_START","TRANSITION_RUN","TRANSITION_START","TRANSITION_CANCEL","TRANSITION_END","topLevelEventsToReactNames","simpleEventPluginEvents","registerSimpleEvent","CapturedStacks","createCapturedValueAtFiber","concurrentQueues","concurrentQueuesIndex","concurrentlyUpdatedLanes","finishQueueingConcurrentUpdates","markUpdateLaneFromFiberToRoot","enqueueUpdate$1","enqueueConcurrentHookUpdate","getRootForUpdatedFiber","enqueueConcurrentRenderForLane","sourceFiber","isHidden","nestedUpdateCount","rootWithNestedUpdates","emptyContextObject","FiberNode","pendingProps","createFiberImplClass","shouldConstruct","createWorkInProgress","resetWorkInProgress","createFiberFromTypeAndProps","fiberTag","isHostHoistableType","createFiberFromFragment","createFiberFromText","createFiberFromPortal","portal","forkStack","forkStackIndex","treeForkProvider","treeForkCount","idStack","idStackIndex","treeContextProvider","treeContextId","treeContextOverflow","pushTreeFork","totalChildren","pushTreeId","baseIdWithLeadingBit","baseLength","numberOfOverflowBits","pushMaterializedTreeId","popTreeContext","hydrationParentFiber","nextHydratableInstance","hydrationErrors","rootOrSingletonContext","HydrationMismatchException","throwOnHydrationMismatch","queueHydrationError","prepareToHydrateHostInstance","listenToNonDelegatedEvent","mediaEventTypes","checkForUnmatchedText","popToNextHostParent","popHydrationState","JSCompiler_temp","shouldSetTextContent","getNextHydratable","isSingletonScope","previousHydratableOnEnteringScopedSingleton","resetHydrationState","upgradeHydrationErrorsToRecoverable","queuedErrors","workInProgressRootRecoverableErrors","valueCursor","currentlyRenderingFiber$1","lastContextDependency","pushProvider","providerFiber","popProvider","scheduleContextWorkOnParentPath","propagationRoot","propagateContextChanges","contexts","forcePropagateEntireTree","nextFiber","dependency","propagateParentContextChanges","isInsidePropagationBailout","currentParent","checkIfContextChanged","currentDependencies","prepareToReadContext","readContext","readContextForConsumer","readContextDuringReconciliation","consumer","AbortControllerLocal","scheduleCallback$2","NormalPriority","CacheContext","releaseCache","currentEntangledListeners","currentEntangledPendingCount","currentEntangledLane","currentEntangledActionThenable","entangleAsyncAction","entangledListeners","requestTransitionLane","pingEngtangledActionScope","chainThenableValue","thenableWithOverride","prevOnStartTransitionFinish","resumedCache","peekCacheFromPool","cacheResumedFromPreviousRender","workInProgressRoot","pushTransition","offscreenWorkInProgress","prevCachePool","getSuspendedCache","cacheFromPool","SuspenseException","SuspenseyCommitException","SuspenseActionException","noopSuspenseyCommitThenable","isThenableResolved","noop$3","trackUsedThenable","thenableState","checkIfUseWrappedInAsyncCatch","fulfilledThenable","rejectedThenable","suspendedThenable","getSuspendedThenable","rejectedReason","hasForceUpdate","initializeUpdateQueue","cloneUpdateQueue","createUpdate","enqueueUpdate","updateQueue","executionContext","entangleTransitions","queueLanes","enqueueCapturedUpdate","capturedUpdate","newFirst","newLast","didReadFromEntangledAsyncAction","suspendIfUpdateReadFromEntangledAsyncAction","entangledActionThenable","processUpdateQueue","workInProgress$jscomp$0","instance$jscomp$0","firstBaseUpdate","lastBaseUpdate","pendingQueue","lastPendingUpdate","firstPendingUpdate","isHiddenUpdate","workInProgressRootRenderLanes","workInProgressRootSkippedLanes","callCallback","commitCallbacks","currentTreeHiddenStackCursor","prevEntangledRenderLanesCursor","pushHiddenContext","entangledRenderLanes","reuseHiddenContextOnStack","popHiddenContext","currentlyRenderingFiber","currentHook","workInProgressHook","didScheduleRenderPhaseUpdate","didScheduleRenderPhaseUpdateDuringThisPass","shouldDoubleInvokeUserFnsInHooksDEV","localIdCounter","thenableIndexCounter$1","thenableState$1","globalClientIdCounter","throwInvalidHookError","areHookInputsEqual","nextDeps","prevDeps","renderWithHooks","secondArg","nextRenderLanes","HooksDispatcherOnMount","HooksDispatcherOnUpdate","renderWithHooksAgain","finishRenderingHooks","ContextOnlyDispatcher","didRenderTooFewHooks","didReceiveUpdate","numberOfReRenders","HooksDispatcherOnRerender","TransitionAwareHostComponent","maybeThenable","useThenable","checkDidRenderIdHook","didRenderIdHook","bailoutHooks","resetHooksOnUnwind","mountWorkInProgressHook","hook","updateWorkInProgressHook","nextCurrentHook","nextWorkInProgressHook","createFunctionComponentUpdateQueue","useMemoCache","memoCache","basicStateReducer","updateReducer","updateReducerImpl","baseQueue","baseFirst","newBaseQueueFirst","newBaseQueueLast","didReadFromEntangledAsyncAction$32","revertLane","rerenderReducer","lastRenderPhaseUpdate","updateSyncExternalStore","isHydrating$jscomp$0","snapshotChanged","subscribeToStore","updateEffectImpl","pushSimpleEffect","createEffectInstance","updateStoreInstance","pushStoreConsistencyCheck","renderedSnapshot","forceStoreRerender","scheduleUpdateOnFiber","mountStateImpl","initialStateInitializer","updateOptimisticImpl","dispatchActionState","actionQueue","setPendingState","isRenderPhaseUpdate","actionNode","runActionStateAction","handleActionReturnValue","onActionError","error$38","onActionSuccess","notifyActionListeners","actionStateReducer","oldState","mountActionState","initialStateProp","ssrFormState","JSCompiler_inline_result$jscomp$0","inRootOrSingleton","dispatchSetState","dispatchOptimisticSetState","updateActionState","stateHook","updateActionStateImpl","currentStateHook","actionStateActionEffect","rerenderActionState","updateRef","mountEffectImpl","fiberFlags","hookFlags","mountEffect","updateEffect","updateInsertionEffect","updateLayoutEffect","imperativeHandleEffect","updateImperativeHandle","mountDebugValue","updateCallback","updateMemo","nextCreate","mountDeferredValueImpl","requestDeferredLane","updateDeferredValueImpl","startTransition","pendingState","finishedState","thenableForFinishedState","dispatchSetStateInternal","requestUpdateLane","noop$2","startHostTransition","formFiber","ensureFormComponentIsStateful","requestFormReset$1","existingStateHook","initialResetState","resetStateQueue","useHostTransitionStatus","updateId","updateRefresh","refreshCache","provider","root$41","dispatchReducerAction","enqueueRenderPhaseUpdate","entangleTransitionUpdate","eagerState","throwIfDuringRender","identifierPrefix","idWithLeadingBit","booleanOrThenable","thenableIndexCounter","unwrapThenable","coerceRef","throwOnInvalidObjectType","returnFiber","newChild","resolveLazy","lazyType","createChildReconciler","shouldTrackSideEffects","deleteChild","childToDelete","deletions","deleteRemainingChildren","currentFirstChild","mapRemainingChildren","existingChildren","useFiber","placeChild","newFiber","lastPlacedIndex","placeSingleChild","updateTextNode","textContent","updateElement","updateFragment","updatePortal","fragment","createChild","updateSlot","oldFiber","updateFromMap","newIdx","reconcileChildrenArray","resultingFirstChild","previousNewFiber","nextOldFiber","reconcileChildrenIterator","reconcileChildFibersImpl","firstChildFiber","reconcileChildFibers","mountChildFibers","suspenseHandlerStackCursor","shellBoundary","pushPrimaryTreeSuspenseHandler","suspenseStackCursor","pushOffscreenSuspenseHandler","reuseSuspenseHandlerOnStack","popSuspenseHandler","findFirstSuspended","isSuspenseInstanceFallback","applyDerivedStateFromProps","getDerivedStateFromProps","classComponentUpdater","checkShouldComponentUpdate","oldProps","nextContext","callComponentWillReceiveProps","resolveClassComponentProps","propName$73","defaultOnUncaughtError","defaultOnCaughtError","defaultOnRecoverableError","logUncaughtError","onUncaughtError","e$74","logCaughtError","onCaughtError","e$75","createRootErrorUpdate","createClassErrorUpdate","initializeClassErrorUpdate","getDerivedStateFromError","legacyErrorBoundariesThatAlreadyFailed","throwException","rootRenderLanes","renderDidSuspendDelayIfPossible","workInProgressRootExitStatus","attachPingListener","wrapperError","workInProgressRootConcurrentErrors","SelectiveHydrationException","reconcileChildren","nextChildren","updateForwardRef","propsWithoutRef","bailoutOnAlreadyFinishedWork","updateMemoComponent","updateSimpleMemoComponent","checkScheduledUpdateOrContext","updateFunctionComponent","updateOffscreenComponent","deferHiddenOffscreenComponent","nextBaseLanes","markRef","replayFunctionComponent","updateClassComponent","contextType","unresolvedOldProps","oldContext","contextType$jscomp$0","mountHostRootWithoutHydrating","SUSPENDED_MARKER","mountSuspenseOffscreenState","getRemainingWorkInPrimaryTree","primaryTreeDidDefer","workInProgressDeferredLane","updateSuspenseComponent","showFallback","didSuspend","nextInstance","JSCompiler_temp$jscomp$0","mountWorkInProgressOffscreenFiber","mountSuspensePrimaryChildren","retrySuspenseComponentWithoutHydrating","digest","primaryChildren","offscreenProps","scheduleSuspenseWorkOnFiber","initSuspenseListRenderState","isBackwards","lastContentRow","tailMode","renderState","updateSuspenseListComponent","revealOrder","attemptEarlyBailoutIfNoScheduledUpdate","didSuspendBefore","beginWork","lazyComponent","getResource","getOwnerDocumentFromRootContainer","setInitialProperties","resolveSingletonInstance","canHydrateInstance","canHydrateTextInstance","markUpdate","preloadResourceAndSuspendIfNeeded","resource","preloadResource","scheduleRetryEffect","retryQueue","workInProgressSuspendedRetryLanes","cutOffTailIfNeeded","hasRenderedATailFallback","lastTailNode","lastTailNode$113","bubbleProperties","completedWork","didBailout","newChildLanes","subtreeFlags","child$114","completeWork","cache$127","listenToAllSupportedEvents","workInProgressRootRenderTargetTime","unwindWork","unwindInterruptedWork","interruptedWork","commitHookEffectListMount","flags","finishedWork","lastEffect","firstEffect","captureCommitPhaseError","commitHookEffectListUnmount","nearestMountedAncestor$jscomp$0","destroy","nearestMountedAncestor","destroy_","commitClassCallbacks","safelyCallComponentWillUnmount","safelyAttachRef","instanceToUse","safelyDetachRef","error$143","commitHostMount","commitHostUpdate","updateProperties","isHostParent","getHostSibling","insertOrAppendPlacementNodeIntoContainer","insertOrAppendPlacementNode","commitHostSingletonAcquisition","offscreenSubtreeIsHidden","offscreenSubtreeWasHidden","needsFormReset","PossiblyWeakSet","nextEffect","commitBeforeMutationEffects","eventsEnabled","_enabled","focusNode","indexWithinAnchor","indexWithinFocus","selectionInformation","resolvedPrevProps","clearContainerSparingly","commitLayoutEffectOnFiber","finishedRoot","recursivelyTraverseLayoutEffects","error$142","commitSuspenseHydrationCallbacks","retryDehydratedSuspenseBoundary","registerSuspenseInstanceRetry","prevOffscreenSubtreeWasHidden","recursivelyTraverseReappearLayoutEffects","detachFiberAfterEffects","hostParent","hostParentIsContainer","recursivelyTraverseDeletionEffects","commitDeletionEffectsOnFiber","deletedFiber","prevHostParent","prevHostParentIsContainer","releaseSingletonInstance","clearSuspenseBoundary","retryIfBlockedOn","getRetryCache","retryCache","attachSuspenseRetryListeners","wakeables","wakeable","resolveRetryWakeable","recursivelyTraverseMutationEffects","root$jscomp$0","parentFiber","commitMutationEffectsOnFiber","currentHoistableRoot","commitReconciliationEffects","hoistableRoot","currentResource","maybeNodes","getHydratableHoistableCache","mountHoistable","acquireResource","tagCaches","getHoistableRoot","recursivelyResetForms","globalMostRecentFallbackTime","wasHidden","prevOffscreenSubtreeIsHidden","recursivelyTraverseDisappearLayoutEffects","hostParentFiber","parent$144","before$145","parent$146","before$147","finishedRoot$jscomp$0","includeWorkInProgressEffects","hiddenCallbacks","commitOffscreenPassiveMountEffects","previousCache","commitCachePassiveMountEffect","recursivelyTraversePassiveMountEffects","committedLanes","committedTransitions","commitPassiveMountOnFiber","_finishedWork$memoize2","onPostCommit","recursivelyTraverseAtomicPassiveEffects","recursivelyTraverseReconnectPassiveEffects","committedLanes$jscomp$0","committedTransitions$jscomp$0","suspenseyCommitFlag","recursivelyAccumulateSuspenseyCommit","accumulateSuspenseyCommitOnFiber","suspendResource","previousHoistableRoot","detachAlternateSiblings","previousFiber","recursivelyTraversePassiveUnmountEffects","commitPassiveUnmountEffectsInsideOfDeletedTree_begin","commitPassiveUnmountOnFiber","recursivelyTraverseDisconnectPassiveEffects","deletedSubtreeRoot","sibling","DefaultAsyncDispatcher","resourceType","cacheForType","PossiblyWeakMap","workInProgressSuspendedReason","workInProgressThrownValue","workInProgressRootDidSkipSuspendedSiblings","workInProgressRootIsPrerendering","workInProgressRootDidAttachPingListener","workInProgressRootInterleavedUpdatedLanes","workInProgressRootPingedLanes","workInProgressRootDidIncludeRecursiveRenderUpdate","workInProgressTransitions","pendingEffectsStatus","pendingEffectsRoot","pendingFinishedWork","pendingEffectsLanes","pendingEffectsRemainingLanes","pendingPassiveTransitions","pendingRecoverableErrors","actionScopeLane","suspenseHandler","prepareFreshStack","markRootSuspended","ensureRootIsScheduled","performWorkOnRoot","forceSync","shouldTimeSlice","exitStatus","renderRootConcurrent","renderRootSync","renderWasConcurrent","isRenderConsistentWithExternalStores","wasRootDehydrated","scheduleTimeout","commitRootWhenReady","recoverableErrors","transitions","didIncludeRenderPhaseUpdate","didSkipSuspendedSiblings","suspendedCommitReason","completedRenderStartTime","completedRenderEndTime","suspendedState","waitForCommitToBeReady","commitRoot","didAttemptEntireTree","index$4","flushSyncWorkAcrossRoots_impl","resetWorkInProgressStack","timeoutHandle","allEntangledLanes","index$2","handleThrow","thrownValue","pushDispatcher","prevDispatcher","pushAsyncDispatcher","prevAsyncDispatcher","shouldYieldForPrerendering","prevExecutionContext","unitOfWork","throwAndUnwindWorkLoop","workLoopSync","thrownValue$167","performUnitOfWork","replaySuspendedUnitOfWork","hostFiber","completeUnitOfWork","workLoopConcurrentByScheduler","thrownValue$169","suspendedReason","unwindUnitOfWork","skipSiblings","flushPendingEffects","scheduleCallback$1","flushPassiveEffects","flushMutationEffects","flushLayoutEffects","flushSpawnedWork","rootMutationHasEffect","priorSelectionInformation","curFocusedElem","priorFocusedElem","priorSelectionRange","start$jscomp$0","end$jscomp$0","startMarker","endMarker","rootHasLayoutEffect","releaseRootPooledCache","onRecoverableError","recoverableError","wasDelayedCommit","renderPriority","captureCommitPhaseErrorOnRoot","rootFiber","pingCache","threadIDs","pingSuspendedRoot","retryTimedOutBoundary","boundaryFiber","retryLane","firstScheduledRoot","lastScheduledRoot","didScheduleMicrotask","mightHavePendingSyncWork","isFlushingWork","currentEventTransitionLane","scheduleImmediateRootScheduleTask","syncTransitionLanes","onlyLegacy","didPerformSomeWork","root$174","performSyncWorkOnRoot","processRootScheduleInImmediateTask","processRootScheduleInMicrotask","shouldAttemptEagerTransition","scheduleTaskForRootDuringMicrotask","index$3","expirationTime","performWorkOnRootViaSchedulerTask","didTimeout","originalCallbackNode","workInProgressRootRenderLanes$jscomp$0","scheduleMicrotask","coerceFormActionProp","actionProp","createFormDataWithSubmitter","extractEvents$1","maybeTargetInst","i$jscomp$inline_1528","eventName$jscomp$inline_1529","domEventName$jscomp$inline_1530","capitalizedEvent$jscomp$inline_1531","nonDelegatedEvents","eventSystemFlags","_dispatchQueue$i","previousInstance","i$jscomp$0","_dispatchListeners$i","currentTarget","targetElement","listenerSetKey","addTrappedEventListener","listenToNativeEvent","isCapturePhaseListener","listeningMarker","rootContainerElement","targetContainer","listenerWrapper","dispatchDiscreteEvent","dispatchContinuousEvent","dispatchEvent","dispatchEventForPluginEventSystem","targetInst$jscomp$0","ancestorInst","nodeTag","grandTag","SyntheticEventCtor","inCapturePhase","accumulateTargetOnly","reactEventName","lastHostComponent","_instance","createDispatchListener","getParent","accumulateEnterLeaveListenersForEvent","getTargetInstFunc","handleEventFunc","fallbackData","targetFiber","captureName","_instance2","_instance3","NORMALIZE_NEWLINES_REGEX","NORMALIZE_NULL_AND_REPLACEMENT_REGEX","normalizeMarkupForTextOrAttribute","markup","serverText","clientText","setProp","setPropOnCustomElement","hasSrc","hasSrcSet","propKey","propValue$188","lastProps","lastProp","propKey$205","propKey$221","propKey$226","propKey$231","propKey$236","namespaceURI","parentNamespace","currentPopstateTransitionEvent","localPromise","handleErrorInNextTick","parentInstance","suspenseInstance","possiblePreambleContribution","nextNode","nextNode$jscomp$0","anyProps","nodeType","targetInstance","rootContainerInstance","preloadPropsMap","preconnectsSet","previousDispatcher","flushSyncWork","requestFormReset","prefetchDNS","preconnect","preload","preloadModule","preinitScript","preinitStyle","preinitModuleScript","previousWasRendering","wasRendering","formInst","globalDocument","preconnectAs","rel","limitedEscapedHref","preloadSelector","getStyleKey","getScriptKey","getStylesheetSelectorFromKey","getScriptSelectorFromKey","precedence","adoptPreloadPropsForStylesheet","insertStylesheet","scripts","adoptPreloadPropsForScript","currentProps","styles$244","resource$245","preloadStylesheet","stylesheetPropsFromRawProps","rawProps","preloadProps","styleProps","instance$250","linkInstance","prior","stylesheetProps","scriptProps","keyAttribute","nodeKey","hostContext","onUnsuspend","insertSuspendedStylesheets","commit","stylesheetTimer","unsuspend","precedencesByRoot","insertStylesheetIntoRoot","precedences","FiberRootNode","hydrate","formState","createFiberRoot","initialChildren","hydrationCallbacks","isStrictMode","transitionCallbacks","getContextForSubtree","parentComponent","updateContainerImpl","markRetryLaneImpl","markRetryLaneIfNotHydrated","attemptContinuousHydration","blockedOn","findInstanceBlockingEvent","return_targetInst","clearIfContinuousEvent","queueIfContinuousEvent","discreteReplayableEvents","findInstanceBlockingTarget","hasScheduledReplayAttempt","queuedFocus","queuedDrag","queuedMouse","queuedPointers","queuedPointerCaptures","queuedExplicitHydrationTargets","accumulateOrCreateContinuousQueuedReplayableEvent","existingQueuedEvent","pointerId","attemptExplicitHydrationTarget","queuedTarget","attemptReplayContinuousQueuedEvent","queuedEvent","targetContainers","nextBlockedOn","nativeEventClone","attemptReplayContinuousQueuedEventInMap","replayUnblockedEvents","scheduleCallbackIfUnblocked","unblocked","lastScheduledReplayQueue","scheduleReplayQueueIfNeeded","formReplayingQueue","submitterOrAction","unblock","formProps","ReactDOMRoot","internalRoot","ReactDOMHydrationRoot","isomorphicReactPackageVersion$jscomp$inline_1785","componentOrElement","internals$jscomp$inline_2256","hook$jscomp$inline_2257","reactDomClient_production","clientModule","Dashboard","xs","sm","ExerciseFiltersContext","CategoryFilterList","selectedCategories","setSelectedCategories","handleToggle","CategoryFilterDropdown","CategoryFilter","EquipmentFilterList","selectedEquipment","setSelectedEquipment","EquipmentFilterDropdown","EquipmentFilter","LightTooltip","tooltip","boxShadow","MuscleOverview","primaryMuscles","backgroundStyle","backgroundUrl","backgroundImage","backgroundRepeat","MuscleFilterList","selectedMuscles","setSelectedMuscles","MuscleFilterDropdown","MuscleFilter","NameAutocompleter","loadExercise","base_id","ExerciseImagePlaceholder","OverviewCard","ExerciseGrid","currentUserLanguage","md","ExerciseGridSkeleton","skeletonBase","pt","FilterDrawer","toggleDrawer","ContributeExerciseBanner","ExerciseOverviewList","basesQuery","isMobile","setPage","handlePageChange","scrollTo","behavior","filteredExercises","selectedMuscle","ITEMS_PER_PAGE","pageCount","paginatedExercises","exerciseAdded","exerciseResponse","ExerciseOverview","BackButton","backToTitle","WgerContainerRightSidebar","backTo","backToUrl","mb","subTitle","optionsMenu","mainContent","sideBar","fab","WgerContainerFullWidth","useMeasurementsCategoryQuery","useAddMeasurementCategoryQuery","useEditMeasurementCategoryQuery","useDeleteMeasurementCategoryQuery","useMeasurementsQuery","useAddMeasurementEntryQuery","useEditMeasurementEntryQuery","useDeleteMeasurementsQuery","GridApiContext","useGridApiContext","apiRef","GridRootPropsContext","useGridRootProps","reactMajor","fastObjectShallowCompare","aLength","bLength","defaultCompare","objectShallowCompare","arrayShallowCompare","argsEqual","createRefs","emptyGetSnapshot","useGridSelector","didInit","prevArgs","getWeakRef","maybeDeref","reselectCreateSelector","customWeakMapMemoize","va","vb","vc","vd","ve","createRootSelector","createSelectorMemoized","selectorArgs","cacheArgsInit","cacheArgs","cacheFn","reselectArgs","gridDimensionsSelector","gridColumnsTotalWidthSelector","dimensions","gridRowHeightSelector","gridContentHeightSelector","gridHasScrollXSelector","gridHasScrollYSelector","gridHasFillerSelector","gridHeaderHeightSelector","gridGroupHeaderHeightSelector","gridHorizontalScrollbarHeightSelector","gridVerticalScrollbarWidthSelector","gridHasBottomFillerSelector","needsLastRowBorder","fastMemo","GRID_DEFAULT_LOCALE_TEXT","columnName","visibleCount","totalCount","estimated","estimatedLabel","aggregation","getDataGridUtilityClass","gridClasses","GridSignature","CLEANUP_TIMER_LOOP_MILLIS","TimerBasedCleanupTracking","unregisterToken","FinalizationRegistryBasedCleanupTracking","ObjectToBeRetainedByReact","registryContainer","createRegistry","cleanupTokensCounter","useGridEvent","objectRetainedByReact","handlerRef","cleanupTokenRef","enhancedHandler","OPTIONS_IS_FIRST","useGridEventPriority","COMPACT_DENSITY_FACTOR","COMFORTABLE_DENSITY_FACTOR","DENSITY_FACTORS","gridDensitySelector","gridDensityFactorSelector","density","NotRendered","spacingString","GridEditInputCellRoot","GridEditInputCell","colDef","isProcessingProps","onValueChange","parsedValue","renderEditInputCell","gridRowsStateSelector","gridRowCountSelector","gridRowsLoadingSelector","gridTopLevelRowCountSelector","gridRowsLookupSelector","gridRowTreeSelector","gridRowNodeSelector","rowTree","rowId","gridRowGroupsToFetchSelector","gridRowGroupingNameSelector","gridRowTreeDepthsSelector","gridRowMaximumTreeDepthSelector","nodeCount","gridDataRowIdsSelector","gridDataRowsSelector","dataRowIds","rowsLookup","gridAdditionalRowGroupsSelector","gridPinnedRowsSelector","additionalRowGroups","rawPinnedRows","rowEntry","gridPinnedRowsCountSelector","pinnedRows","sanitizeSortModel","model","disableMultipleColumnsSorting","mergeStateWithSortModel","sortModel","isDesc","parseSortItem","sortItem","compareRows","parsedSortItems","row1","row2","sortCellParams1","sortCellParams2","buildAggregatedSortingApplier","comparatorList","rowList","getNextGridSortDirection","sortingOrder","currentIdx","gridNillComparator","collator","gridStringOrNumberComparator","nillResult","gridNumberComparator","gridDateComparator","GridFilterInputValue","applyValue","focusElementRef","clearButton","headerFilterMenu","filterTimeout","filterValueState","setFilterValueState","sanitizeFilterItemValue","applying","setIsApplying","onFilterChange","newItem","mulberry32","createRandomNumberGenerator","runIf","GridFilterInputMultipleValue","itemValue","filterItemValue","BaseAutocomplete","GridEditModes","GridCellModes","GridRowModes","GridLogicOperator","IncludeManager","ExcludeManager","createRowSelectionManager","GridCellEditStartReasons","GridCellEditStopReasons","GridRowEditStartReasons","GridRowEditStopReasons","isLeaf","defaultGridFilterLookup","getDefaultGridFilterModel","getPublicApiRef","GridPinnedColumnPosition","EMPTY_PINNED_COLUMN_FIELDS","gridIsRtlSelector","gridColumnsStateSelector","gridColumnFieldsSelector","columnsState","gridColumnLookupSelector","gridColumnDefinitionsSelector","allFields","gridColumnVisibilityModelSelector","gridInitialColumnVisibilityModelSelector","gridVisibleColumnDefinitionsSelector","columnVisibilityModel","gridVisibleColumnFieldsSelector","visibleColumns","gridPinnedColumnsSelector","gridVisiblePinnedColumnDefinitionsSelector","visibleColumnFields","visiblePinnedFields","filterVisibleColumns","pinnedColumns","newPinnedColumns","remainingColumns","leftPinnedColumns","columnsWithoutLeftPinnedColumns","rightPinnedColumns","gridColumnPositionsSelector","currentPosition","gridFilterableColumnDefinitionsSelector","col","gridFilterableColumnLookupSelector","gridHasColSpanSelector","hasEval","getHasEval","cleanFilterItem","cleanItem","sanitizeFilterModel","disableMultipleColumnsFiltering","hasSeveralItems","hasItemsWithoutIds","mergeStateWithFilterModel","filterModel","filteringState","removeDiacritics","getFilterCallbackFromItem","filterItem","ignoreDiacritics","newFilterItem","filterOperators","filterOperator","publicApiRef","applyFilterOnRow","filterItemsApplierId","buildAggregatedFilterItemsApplier","disableEval","appliers","shouldApplyFilter","resultPerItemId","applier","filterItemCore","shouldApplyItem","shouldQuickFilterExcludeHiddenColumns","buildAggregatedQuickFilterApplier","quickFilterValues","columnFields","appliersPerField","getApplyQuickFilterFn","quickFilterValue","filterValue","buildAggregatedFilterApplier","isRowMatchingFilterItems","isRowMatchingQuickFilter","isNotNull","filterModelItems","passFilterLogic","allFilterItemResults","allQuickFilterResults","cleanedFilterItems","cleanedFilterItemResults","cleanedQuickFilterResults","filterItemPredicate","filterItemResult","quickFilterValuePredicate","quickFilterValueResult","getGridStringQuickFilterFn","filterRegex","columnValue","createContainsFilterFn","disableTrim","trimmedValue","createEqualityFilterFn","createEmptyFilterFn","getGridStringOperators","GRID_STRING_COL_DEF","GridConfigurationContext","useGridConfiguration","configuration","CLASSNAME_PREFIX","CSSVariablesContext","useCSSVariablesClass","useCSSVariablesContext","GridCSSVariablesContext","cssString","variablesToString","GridMenuRoot","GridMenu","variablesClass","savedFocusRef","hasActions","GridActionsCell","focusedButtonIndex","setFocusedButtonIndex","ignoreCallToFocus","touchRippleRefs","menuId","iconButtons","menuButtons","numberOfButtons","focusableButtonIndex","showMenu","hideMenu","toggleMenu","handleTouchRippleRef","handleButtonClick","getNewIndex","indexMod","renderActionsCell","GRID_ACTIONS_COLUMN_TYPE","GRID_ACTIONS_COL_DEF","GRID_ROOT_GROUP_ID","GRID_ID_AUTOGENERATED","buildRootGroup","checkGridRowIdIsValid","detailErrorMessage","getRowIdFromRowModel","rowModel","getRowId","getRowValue","createRowsInternalCache","rowCount","updates","dataRowIdToModelLookup","getTopLevelRowCount","tree","rowCountProp","rootGroupNode","getRowsStateFromCache","loadingProp","previousTree","previousTreeDepths","previousGroupsToFetch","unProcessedTree","unProcessedTreeDepths","unProcessedDataRowIds","groupingName","groupsToFetch","groupingParamsWithHydrateRows","isAutogeneratedRowNode","rowNode","getTreeNodeDescendants","parentId","skipAutoGeneratedRows","validDescendants","childDescendants","updateCacheWithNewRows","groupKeys","uniqueUpdates","partialUpdates","alreadyAppliedActionsToRemove","partialRow","actionAlreadyAppliedToRow","oldRow","actionTypeWithActionsToRemove","idsToRemove","minimalContentHeight","computeRowsUpdates","nonPinnedRowsUpdates","pinnedRowsCache","prevModel","getValidRowHeight","rowHeightProp","defaultRowHeight","warningMessage","GRID_TREE_DATA_GROUPING_FIELD","GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD","GRID_DETAIL_PANEL_TOGGLE_FIELD","PinnedColumnPosition","GridBooleanCellRaw","isServerSideRowGroupingRow","Icon","GridBooleanCell","renderBooleanCell","GridEditBooleanCell","renderEditBooleanCell","GridFilterInputBoolean","baseSelectProps","isSelectNative","baseSelectOptionProps","getGridBooleanOperators","sanitizedValue","gridBooleanFormatter","stringToBoolean","GRID_BOOLEAN_COL_DEF","gridSortingStateSelector","gridSortedRowIdsSelector","sortingState","gridSortedRowEntriesSelector","sortedIds","idRowsLookup","gridSortModelSelector","sorting","gridSortColumnLookupSelector","gridFilterStateSelector","gridFilterModelSelector","filterState","gridQuickFilterValuesSelector","gridVisibleRowsLookupSelector","gridFilteredRowsLookupSelector","gridExpandedSortedRowEntriesSelector","visibleRowsLookup","sortedRows","gridExpandedSortedRowIdsSelector","visibleSortedRowEntries","gridFilteredSortedRowEntriesSelector","filteredRowsLookup","gridFilteredSortedRowIdsSelector","filteredSortedRowEntries","visibleSortedRowIds","depthPositionCounter","lastDepth","gridFilteredSortedTopLevelRowEntriesSelector","visibleSortedRows","rowTreeDepth","gridExpandedRowCountSelector","gridFilteredTopLevelRowCountSelector","visibleSortedTopLevelRows","gridFilteredRowCountSelector","totalRowCount","topLevelRowCount","gridFilterActiveItemsSelector","columnLookup","gridFilterActiveItemsLookupSelector","activeFilters","gridRowSelectionStateSelector","gridRowSelectionManagerSelector","gridRowSelectionCountSelector","filteredRowCount","gridRowSelectionIdsSelector","selectionModel","rowIds","getGridRowGroupSelectableDescendants","groupId","sortedRowIds","groupNode","descendants","getCheckboxPropsSelector","autoSelectParents","rowSelectionManager","selectableDescendantsCount","selectedDescendantsCount","isMultipleRowSelectionEnabled","getRowNodeParents","parents","getFilteredRowNodeSiblings","filteredRows","childId","findRowsToSelect","selectedRow","autoSelectDescendants","addRow","selectedDescendants","checkAllDescendantsSelected","traverseParents","siblings","findRowsToDeselect","deselectedRow","removeRow","descendant","GridCellCheckboxForwardRef","isSelectable","checkboxPropsSelector","isIndeterminate","isChecked","GridCellCheckboxRenderer","gridFocusStateSelector","gridFocusCellSelector","focusState","gridFocusColumnHeaderSelector","gridFocusColumnGroupHeaderSelector","gridTabIndexStateSelector","gridTabIndexCellSelector","gridTabIndexColumnHeaderSelector","gridTabIndexColumnGroupHeaderSelector","MAX_PAGE_SIZE","defaultPageSize","autoPageSize","getPageCount","getDefaultGridPaginationModel","getValidPage","throwIfPageSizeExceedsTheLimit","signatureProp","ALL_RESULTS_PAGE_VALUE","gridPaginationSelector","gridPaginationEnabledClientSideSelector","pagination","gridPaginationModelSelector","gridPaginationRowCountSelector","gridPaginationMetaSelector","gridPageSelector","paginationModel","gridPageSizeSelector","gridPageCountSelector","gridPaginationRowRangeSelector","clientSidePaginationEnabled","visibleSortedTopLevelRowEntries","visibleTopLevelRowCount","topLevelFirstRowIndex","topLevelLastRowIndex","topLevelFirstRow","topLevelRowsInCurrentPageCount","firstRowIndex","lastRowIndex","topLevelRowAdded","gridPaginatedVisibleSortedGridRowEntriesSelector","paginationRange","gridPaginatedVisibleSortedGridRowIdsSelector","gridVisibleRowsSelector","clientPaginationEnabled","paginationRowRange","paginationRows","expandedSortedRowEntries","GridHeaderCheckbox","tabIndexState","visibleRowIds","paginatedVisibleRowIds","filteredSelection","isRowSelectable","selectionCandidates","currentSelectionSize","selectionManager","handleSelectionChange","gridRowIdSelector","GRID_CHECKBOX_SELECTION_FIELD","GRID_CHECKBOX_SELECTION_COL_DEF","convertFilterItemValueToInputValue","dateCopy","GridFilterInputDate","buildApplyFilterFn","compareFn","showTime","keepHours","getGridDateOperators","StyledInputBase","GridEditDateCell","isDateTime","valueTransformed","parseValueToDate","newFormattedDate","newParsedDate","renderEditDateCell","throwIfNotDateObject","columnType","gridDateFormatter","gridDateTimeFormatter","GRID_DATE_COL_DEF","GRID_DATETIME_COL_DEF","parseNumericValue","getGridNumericQuickFilterFn","getGridNumericOperators","GRID_NUMERIC_COL_DEF","isSingleSelectColDef","getValueOptions","additionalParams","getValueFromValueOptions","valueOptions","getOptionValue","optionValue","isKeyboardEvent","GridEditSingleSelectCell","initialOpen","formattedTargetValue","valueOption","_createElement","renderEditSingleSelectCell","renderSingleSelectOptions","OptionComponent","GridFilterInputSingleSelect","resolvedColumn","currentValueOptions","GridFilterInputMultipleSingleSelect","resolvedValueOptions","filteredValues","parseObjectValue","getGridSingleSelectOperators","filterItemValues","isArrayOfObjects","defaultGetOptionValue","defaultGetOptionLabel","GRID_SINGLE_SELECT_COL_DEF","DEFAULT_GRID_COL_TYPE_KEY","getGridDefaultColumnTypes","gridHeaderFilteringStateSelector","gridHeaderFilteringEnabledSelector","headerFilteringState","gridHeaderFilteringEditFieldSelector","gridHeaderFilteringMenuSelector","gridColumnGroupingSelector","gridColumnGroupsUnwrappedModelSelector","columnGrouping","gridColumnGroupsLookupSelector","gridColumnGroupsHeaderStructureSelector","gridColumnGroupsHeaderMaxDepthSelector","COLUMNS_DIMENSION_PROPERTIES","COLUMN_TYPES","computeFlexColumnsWidth","initialFreeSpace","totalFlexUnits","flexColumns","uniqueFlexColumns","flexColumnsLookup","loopOverFlexItems","violationsLookup","remainingFreeSpace","flexUnits","totalViolation","computedWidth","hydrateColumnsWidth","rawState","columnsLookup","widthAllocatedBeforeFlex","columnField","isFlex","availableWidth","computedColumnWidths","applyInitialState","orderedFields","columnsWithUpdatedDimensions","orderedFieldsLookup","cleanOrderedFields","newOrderedFields","newColumnLookup","newColDef","getDefaultColTypeDef","createColumnsState","columnsToUpsert","keepOnlyColumnsToUpsert","updateInitialVisibilityModel","isInsideStateInitializer","columnsToKeep","newColumn","existingState","hasBeenResized","columnsStateWithPreProcessing","columnsStateWithPortableColumns","getFirstNonSpannedColumnToRender","firstColumnToRender","firstRowToRender","lastRowToRender","visibleRows","firstNonSpannedColumnToRender","cellColSpanInfo","getTotalHeaderHeight","densityFactor","maxDepth","isHeaderFilteringEnabled","columnHeadersHeight","columnGroupHeadersHeight","filterHeadersHeight","CLIFF","SLOP","scrollDirection","GridScrollAreaRawRoot","offsetSelector","GridScrollAreaWrapper","dragging","setDragging","GridScrollAreaContent","scrollPosition","columnsTotalWidth","sideOffset","getCanScrollMore","maxScrollLeft","canScrollMore","setCanScrollMore","totalHeaderHeight","headerHeight","handleScrolling","GridScrollArea","GridPrivateApiContext","useGridPrivateApiContext","privateApiRef","useRunOnce","didRun","useGridApiMethod","apiMethods","visibility","isFirstRender","useGridLogger","newLogger","useGridNativeEventListener","useFirstRender","getVisibleRows","useGridVisibleRows","userAgent","gridRowsMetaSelector","gridVirtualizationSelector","gridVirtualizationColumnEnabledSelector","gridVirtualizationRowEnabledSelector","gridRenderContextSelector","gridRenderContextColumnsSelector","firstColumnIndex","lastColumnIndex","EMPTY_RENDER_CONTEXT","virtualizationStateInitializer","disableVirtualization","autoHeight","useGridVirtualization","setVirtualization","gridRowSpanningStateSelector","gridRowSpanningHiddenCellsSelector","rowSpanning","gridRowSpanningSpannedCellsSelector","gridRowSpanningHiddenCellsOriginMapSelector","gridListColumnSelector","gridIsFocusedCellOutOfContext","focusedCell","renderContext","rowIndex","columnIndex","gridFocusedVirtualCellSelector","isFocusedCellOutOfRenderContext","roundToDecimalPlaces","decimals","isJSDOM","MINIMUM_COLUMN_WIDTH","ScrollDirection","EMPTY_SCROLL_POSITION","EMPTY_DETAIL_PANELS","createScrollCache","rowBufferPx","columnBufferPx","verticalBuffer","horizontalBuffer","bufferForDirection","useGridVirtualScroller","listView","enabledForRows","enabledForColumns","pinnedColumnDefinitions","hasBottomPinnedRows","panels","setPanels","mainRef","scrollbarVerticalRef","scrollbarHorizontalRef","hasColSpan","isRenderContextReady","contentHeight","needsHorizontalScrollbar","needsHorizontalScrollbarSelector","verticalScrollbarWidth","gridHasFiller","previousSize","mainRefCallback","initialRect","lastSize","newSize","ignoreNextScrollEvent","previousContextScrollPosition","previousRowContext","focusedVirtualCell","scrollTimeout","frozenContext","scrollCache","updateRenderContext","nextRenderContext","areRenderContextsEqual","didRowsIntervalChange","triggerUpdateRenderContext","scroller","maxScrollTop","newScroll","isScrolling","directionForDelta","rowScroll","columnScroll","didCrossThreshold","didChangeDirection","inputs","inputsSelector","computeRenderContext","ReactDOM.flushSync","forceUpdateRenderContext","handleScroll","handleWheel","getRows","baseRenderContext","isLastSection","isPinnedSection","rowIndexOffset","rowModels","rowIndexes","virtualRowIndex","rowProps","columnPositions","rowIndexInPage","minFirstColumn","maxLastColumn","baseRowHeight","isFirstVisible","isLastVisible","isLastVisibleInSection","currentRenderContext","isVirtualFocusRow","isVirtualFocusColumn","offsetLeft","computeOffsetLeft","showBottomBorder","panel","onContentSizeApplied","isScrollRestored","unsubscribeContentSizeChange","platform.isFirefox","hiddenCellsOriginMap","lastRowId","lastColumn","realLeft","getNearestIndexToRender","rowSpanHiddenCellOrigin","minSpannedRowIndex","hasRowWithAutoHeight","getIndexesToRender","binarySearch","deriveRenderContext","lastMeasuredIndexRelativeToAllRows","allRowsMeasured","lastMeasuredIndexRelativeToCurrentPage","exponentialSearch","initialFirstColumnToRender","lastColumnToRender","sliceStart","sliceEnd","pivot","isBefore","firstIndex","bufferBefore","bufferAfter","minFirstIndex","maxLastIndex","firstPosition","lastPosition","firstIndexPadded","lastIndexPadded","context1","context2","pinnedLeftLength","GridOverlayWrapperRoot","overlayType","loadingOverlayVariant","GridOverlayWrapperInner","GridOverlayWrapper","gridPivotingStateSelector","gridPivotActiveSelector","pivoting","emptyColumns","gridPivotInitialColumnsSelector","useGridOverlays","visibleRowCount","pinnedRowsCount","noRows","pivotActive","showNoRowsOverlay","showNoResultsOverlay","showNoColumnsOverlay","showEmptyPivotOverlay","overlaysProps","Overlay","overlayProps","gridColumnMenuSelector","GridHeaders","filterColumnLookup","sortColumnLookup","columnHeaderTabIndexState","hasNoCellTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence","columnsContainerRef","MemoizedGridHeaders","GridPanelAnchor","Element","hideContent","GridMainContainer","ariaAttributes","GridTopContainer","overflowedContent","VirtualScrollerContentRoot","GridVirtualScrollerContent","Filler","Pinned","PinnedLeft","PinnedRight","Main","GridVirtualScrollerFiller","rowsLength","viewportOuterSize","minimumSize","hasScrollX","hasScrollY","leftPinnedWidth","rightPinnedWidth","Memoized","VirtualScrollerRenderZoneRoot","GridVirtualScrollerRenderZone","DEFAULT_GRID_AUTOSIZE_OPTIONS","gridEditRowsStateSelector","gridRowIsEditingSelector","editRows","editMode","gridEditCellStateSelector","gridPreferencePanelStateSelector","gridPreferencePanelSelectorWithLabel","GridPreferencePanelsValue","getKeyDefault","GridDataSourceCacheDefault","ttl","getKey","keyString","expiry","GridGetRowsError","GridUpdateRowError","Scrollbar","ScrollbarVertical","ScrollbarHorizontal","GridVirtualScrollbar","isLocked","scrollbarRef","contentRef","propertyDimension","propertyScroll","propertyScrollPosition","hasScroll","scrollbarInnerSize","onScrollerScroll","scrollbar","onScrollbarScroll","hasPinnedRight","Scroller","hasPinnedRightSelector","GridVirtualScroller","hasBottomFiller","getOverlay","virtualScroller","getContainerProps","getScrollerProps","getContentProps","getRenderZoneProps","getScrollbarVerticalProps","getScrollbarHorizontalProps","getScrollAreaProps","TopContainer","Content","RenderZone","SpaceFiller","GridFooterPlaceholder","cachedSupportsPreventScroll","doesSupportPreventScroll","computeSlots","defaultSlots","getRowGroupingCriteriaFromGroupingField","groupingColDefField","isGroupingColumn","rtlFlipSide","attachPinnedStyle","pinnedPosition","pinnedOffset","showLeftBorder","showRightBorder","isSelectionMode","GridCell","colIndex","disableDragEvents","isNotVisible","onMouseOver","onDragEnter","onDragOver","editCellState","cellAggregationResult","cellMode","cellParams","cellTabIndex","focus","hiddenCells","spannedCells","canManageOwnFocus","rootClasses","getCellClassName","valueToRender","cellRef","publishMouseUp","publishMouseDown","publish","propHandler","isCellRowSpanned","rowSpan","cellStyle","isLeftPinned","isRightPinned","focusableElement","elementToFocus","updatedRow","editCellStateRest","valueString","draggableEventHandlers","MemoizedGridCell","GridActionsCellItem","closeMenuOnClick","closeMenu","CIRCULAR_CONTENT_SIZE","CONTENT_HEIGHT","DEFAULT_CONTENT_WIDTH_RANGE","CONTENT_WIDTH_RANGE_BY_TYPE","empty","randomNumberGenerator","GridSkeletonCell","skeletonProps","columnSeparatorTargetSize","columnSeparatorOffset","focusOutlineWidth","separatorIconDragStyles","ignoreSsrWarning","shouldShowBorderTopRightRadiusSelector","GridRootStyles","shouldShowBorderTopRightRadius","baseBackground","headerBackground","pinnedBackground","hoverColor","removeOpacity","hoverOpacity","selectedColor","selectedOpacity","selectedHoverColor","selectedHoverOpacity","mix","selectedBackground","selectedHoverBackground","pinnedHoverBackground","pinnedSelectedBackground","pinnedSelectedHoverBackground","getPinnedBackgroundStyles","pinnedHoverStyles","pinnedSelectedStyles","pinnedSelectedHoverStyles","selectedStyles","setOpacity","emptySubscribe","clientSnapshot","serverSnapshot","useIsSSR","GridPanelContext","useGridPanelContext","GridPanelContextProvider","columnsPanelTriggerRef","filterPanelTriggerRef","aiAssistantPanelTriggerRef","GridPreferencesPanel","preferencePanelState","panelContent","GridHeader","showCellVerticalBorder","sidePanel","rootElementRef","rootMountCallback","GridBody","MemoizedGridRoot","GridFooterContainerRoot","GridFooterContainer","GridOverlayRoot","GridOverlay","useGridComponentRenderer","defaultElement","sx1","sx2","ToolbarContext","useToolbarContext","focusableItemId","setFocusableItemId","setItems","registerItem","itemRef","prevItems","unregisterItem","findEnabledItem","itemCount","onItemKeyDown","onItemFocus","onItemDisabled","ToolbarButton","ariaDisabled","previousDisabled","previousAriaDisabled","ColumnHeaderMenuIcon","columnMenuId","columnMenuButtonId","iconButtonRef","handleMenuIconClick","GridColumnHeaderMenu","ContentComponent","contentComponentProps","isOverflown","findParentElementFromClassName","escapeOperandAttributeSelector","operand","getGridColumnHeaderElement","getGridRowElementSelector","getGridRowElement","getGridCellElement","rowSelector","cellSelector","isEventTargetInPortal","getFieldFromHeaderElem","colCellEl","findHeaderElementFromField","getFieldsFromGroupHeaderElem","findGroupHeaderElementsFromField","findGridCellElementsFromCol","ariaColIndex","queryRows","rowElement","findGridElement","klass","findPinnedCells","filterFn","currentColIndex","parseCellColIndex","findLeftPinnedCellsAfterCol","findRightPinnedCellsBeforeCol","findPinnedHeaders","findLeftPinnedHeadersAfterCol","findRightPinnedHeadersBeforeCol","findGridHeader","findGridCells","GridColumnHeaderTitleRoot","ColumnHeaderInnerTitle","GridColumnHeaderTitle","titleRef","setTooltip","isOver","GridColumnHeaderSeparatorSides","resizable","resizing","GridColumnHeaderSeparatorRaw","stopClick","GridColumnHeaderSeparator","GridGenericColumnHeaderItem","isResizing","separatorSide","isDraggable","headerComponent","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","draggableContainerProps","columnHeaderSeparatorProps","headerCellRef","isDragging","filterItemsCounter","isLastUnpinned","isSiblingFocused","isColumnSorted","isColumnFiltered","isColumnNumeric","GridColumnHeaderItem","columnMenuOpen","sortIndex","disableReorder","showColumnMenuIcon","setShowColumnMenuIcon","mouseEventsHandlers","showSortIcon","GridIconButtonContainerRoot","GridIconButtonContainer","GridColumnUnsortedIcon","nextSortDirection","GridColumnSortButtonRoot","getIcon","icons","GridColumnSortButton","iconElement","iconButton","GridColumnHeaderSortIconRaw","GridColumnHeaderSortIcon","GridColumnHeaderFilterIconButtonWrapped","GridColumnHeaderFilterIconButton","counter","panelId","toggleFilter","openedPanelValue","createSvgIconMaterial","GridArrowUpwardIcon","GridArrowDownwardIcon","GridKeyboardArrowRight","GridExpandMoreIcon","GridFilterListIcon","GridFilterAltIcon","GridSearchIcon","GridColumnIcon","GridSeparatorIcon","GridViewHeadlineIcon","GridTableRowsIcon","GridViewStreamIcon","GridTripleDotsVerticalIcon","GridCloseIcon","GridAddIcon","GridRemoveIcon","GridLoadIcon","GridDragIcon","GridCheckIcon","GridMoreVertIcon","GridVisibilityOffIcon","GridViewColumnIcon","GridClearIcon","GridDeleteForeverIcon","GridDownloadIcon","isPrintableKey","isNavigationKey","isHideMenuKey","isPasteShortcut","isCopyShortcut","StyledMenuList","GridColumnMenuContainer","labelledby","useGridColumnMenuSlots","addDividers","processedComponents","processedSlotProps","currentSlotProps","defaultItems","userItems","defaultComponentKeys","leftItemProps","rightItemProps","leftDisplayOrder","rightDisplayOrder","itemProps","processedComponentProps","GridColumnMenuHideItem","toggleColumn","GridColumnMenuManageItem","showColumns","GridColumnMenuColumnsItem","GridColumnMenuFilterItem","showFilter","GridColumnMenuSortItem","onSortMenuItemClick","GRID_COLUMN_MENU_SLOTS","GRID_COLUMN_MENU_SLOT_PROPS","GridGenericColumnMenu","orderedSlots","GridColumnMenu","GridPanelWrapperRoot","GridPanelWrapper","GridColumnsPanel","gridPanelClasses","GridPanelRoot","GridPanelContent","GridPanel","isPlaced","setIsPlaced","onDidShow","onDidHide","fallbackTarget","setFallbackTarget","panelAnchor","GridPanelContentRoot","GridPanelFooterRoot","GridPanelFooter","GridFilterFormRoot","FilterFormDeleteIcon","FilterFormLogicOperatorInput","FilterFormColumnInput","FilterFormOperatorInput","FilterFormValueInput","getLogicOperatorLocaleKey","logicOperator","getColumnLabel","GridFilterForm","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","filterableColumns","columnSelectId","columnSelectLabelId","operatorSelectId","operatorSelectLabelId","filterSelectorRef","multiFilterOperator","hasLogicOperatorColumn","isBaseSelectNative","InputComponentProps","valueInputPropsOther","initialColumns","filteredColumns","selectedField","itemField","selectedNonFilterableColumn","filteredFields","isFieldIncluded","sortedFilteredColumns","currentColumn","currentOperator","changeColumn","newOperator","changeOperator","op","eraseItemValue","changeLogicOperator","handleDeleteFilter","getGridFilter","GridFilterPanel","filterableColumnsLookup","lastFilterRef","placeholderFilter","filterFormProps","getColumnForNewFilter","disableAddFilterButton","disableRemoveAllButton","applyFilterLogicOperator","getDefaultFilter","nextColumnWithOperator","nextFieldName","getNewFilter","currentFilters","nextColumnFieldName","readOnlyFilters","validFilters","addNewFilter","newFilter","shouldCloseFilterPanel","handleRemoveAll","checkColumnVisibilityModelsSame","aFalseValues","bFalseValues","defaultSearchPredicate","searchValue","reveal","detectScroll","ShadowScrollArea","GridShadowScrollArea","GridColumnsManagement","searchInputRef","initialColumnVisibilityModel","setSearchValue","columnDefinitions","pivotInitialColumns","searchPredicate","autoFocusSearchField","disableShowHideToggle","disableResetButton","toggleAllMode","getTogglableColumns","searchInputProps","isResetDisabled","sortedColumns","currentColumns","togglableColumns","togglableSortedColumns","toggleAllColumns","currentModel","newModel","handleSearchValueChange","hideableColumns","allHideableColumnsVisible","allHideableColumnsHidden","firstSwitchRef","firstHideableColumnFound","isFirstHideableColumn","handleSearchReset","GridColumnsManagementHeader","SearchInput","GridColumnsManagementScrollArea","GridColumnsManagementBody","GridColumnsManagementEmptyText","GridColumnsManagementFooter","GridToolbarExportContainer","tooltipProps","exportButtonId","exportMenuId","handleMenuOpen","prevOpen","handleMenuClose","GridCsvExportMenuItem","GridPrintExportMenuItem","csvOptions","printOptions","excelOptions","preProcessedButtons","isDeepEqual","entriesA","entryA","QuickFilterContext","useQuickFilterContext","DEFAULT_PARSER","searchText","DEFAULT_FORMATTER","QuickFilter","onExpandedChange","controlRef","internalExpanded","setInternalExpanded","expandedValue","resolvedClassName","controlId","handleExpandedChange","newExpanded","prevQuickFilterValuesRef","prevSearchValue","previousExpandedValue","setQuickFilterValueDebounced","newQuickFilterValues","handleClearValue","QuickFilterControl","QuickFilterClear","QuickFilterTrigger","GridQuickFilterRoot","GridQuickFilterTrigger","GridQuickFilterTextField","GridToolbarQuickFilter","quickFilterParser","quickFilterFormatter","quickFilterProps","currentOwnerState","triggerProps","controlSlotProps","FilterPanelTrigger","onPointerUp","panelState","filterCount","handlePointerUp","ColumnsPanelTrigger","ExportCsv","ExportPrint","GridToolbarDivider","GridToolbarLabel","GridToolbar","showQuickFilter","additionalItems","additionalExportMenuItems","exportMenuOpen","setExportMenuOpen","exportMenuTriggerRef","exportMenuTriggerId","showExportMenu","closeExportMenu","GridSelectedRowCountRoot","GridSelectedRowCount","selectedRowCount","rowSelectedText","GridFooter","totalTopLevelRowCount","selectedRowCountElement","rowCountElement","paginationElement","getPinnedCellOffset","shouldCellShowRightBorder","indexInSection","showCellVerticalBorderRootProp","isSectionLastCell","shouldCellShowLeftBorder","GridScrollbarFillerCell","pinnedRight","SkeletonOverlay","getColIndex","GridSkeletonLoadingOverlayInner","totalWidth","inViewportCount","skeletonRowsCount","showFirstRowBorder","allVisibleColumns","getPinnedPosition","rowCells","isPinnedLeft","isPinnedRight","pinnedSide","pinnedStyle","isLastColumn","isFirstPinnedRight","hasFillerBefore","hasFillerAfter","expandedWidth","emptyCellWidth","emptyCell","hasScrollbarFiller","resizedColIndex","currentWidth","GridSkeletonLoadingOverlay","viewportHeight","LOADING_VARIANTS","GridLoadingOverlay","noRowsVariant","rowsCount","activeVariant","GridNoRowsOverlay","noRowsLabel","GridNoColumnsOverlay","handleOpenManageColumns","showManageColumnsButton","GridPaginationRoot","GridPagination","paginationMode","lastPage","computedPage","handlePageSizeChange","GridRowCountRoot","GridRowCount","composeGridClasses","isRowReorderingEnabledSelector","rowReordering","GridRow","refProp","focusedColumnIndex","onMouseOut","treeDepth","isRowReorderingEnabled","editing","editable","hasFocusCell","hasVirtualFocusCellLeft","hasVirtualFocusCellRight","getRowAriaAttributes","publishClick","disableColumnReorder","heightEntry","rowStyle","propertyValue","rowClassNames","indexRelativeToCurrentPage","rowParams","getCell","indexRelativeToAllColumns","isReorderCell","canReorderColumn","canReorderRow","cellIsNotVisible","leftCells","rightCells","middleColumnsLength","ScrollbarFiller","MemoizedGridRow","useGridAriaAttributes","accessibleRowCount","useGridRowAriaAttributes","ariaRowIndex","GridContextProvider","useGridRefs","mainElementRef","virtualScrollerRef","virtualScrollbarVerticalRef","virtualScrollbarHorizontalRef","columnHeadersContainerRef","useGridIsRtl","isFirstEffect","forceDebug","noopLogger","LOG_LEVELS","getAppender","logLevel","appender","minLogLevelIdx","loggerObj","useGridLoggerFactory","getLogger","useGridLocaleText","getLocaleText","toPrimitive","toPropertyKey","useGridPipeProcessing","isRunning","runAppliers","groupCache","registerPipeProcessor","registerPipeApplier","_appliers","otherAppliers","requestPipeProcessorsApplication","applyPipeProcessors","preProcessingPrivateApi","preProcessingPublicApi","useGridRegisterPipeProcessor","registerPreProcessor","useGridRegisterPipeApplier","GridStrategyGroup","useGridRegisterStrategyProcessor","strategyName","GRID_DEFAULT_STRATEGY","GRID_STRATEGIES_PROCESSORS","useGridStrategyProcessing","availableStrategies","strategiesCache","registerStrategyProcessor","processorName","otherProcessors","groupPreProcessors","previousProcessor","applyStrategyProcessor","activeStrategy","getActiveStrategy","strategyGroup","setStrategyAvailability","isAvailable","useGridStateInitialization","controlStateMapRef","registerControlState","controlStateItem","apiRefWithNewState","ignoreSetState","updatedControlStateIds","stateId","controlState","oldSubState","newSubState","hasPropChanged","updateControlState","publicStateApi","privateStateApi","propsStateInitializer","useGridProps","useGridInitialization","useGridInitializeState","isInitialized","sanitizeCellValue","escapedValue","serializeCellValue","ignoreValueFormatter","CSVRow","serializeRow","getCellParams","buildCSV","CSVBody","headerRows","columnGroupLookup","maxColumnGroupsDepth","columnGroupPathsLookup","columnGroupPath","headerGroupRow","columnGroupId","columnGroup","mainHeaderRow","writeToClipboardPolyfill","span","copyToClipboard","hasNativeSelection","useGridClipboard","ignoreValueFormatterProp","clipboardCopyCellDelimiter","handleCopy","textToCopy","columnMenuStateInitializer","useGridColumnMenu","showColumnMenu","hideColumnMenu","fieldToFocus","visibleOrderedFields","fieldIndex","toggleColumnMenu","columnsStateInitializer","useGridColumns","previousColumnsProp","setGridColumnsState","mergeColumnsState","getColumn","getAllColumns","getVisibleColumns","getColumnIndex","useVisibleColumns","getColumnPosition","setColumnVisibilityModel","updateColumns","setColumnVisibility","isCurrentlyVisible","getColumnIndexRelativeToVisibleColumns","setColumnIndex","targetIndexPosition","allColumns","oldIndexPosition","updatedColumns","fieldRemoved","setColumnWidth","columnApi","columnReorderApi","stateExportPreProcessing","columnsStateToExport","columnVisibilityModelToExport","colDefDimensions","propertyName","stateRestorePreProcessing","columnVisibilityModelToImport","preferencePanelPreProcessing","ColumnsPanel","addColumnMenuItems","columnMenuItems","isPivotActive","prevInnerWidth","hydrateColumns","densityStateInitializer","useGridDensity","densityApi","newDensity","exportedDensity","restoredDensity","exportAs","blob","filename","fullName","getColumnsToExport","defaultGetRowsToExport","filteredSortedRowIds","selectedRowsCount","bodyRows","topPinnedRowsIds","bottomPinnedRowsIds","selectedRows","useGridCsvExport","getDataAsCsv","exportedColumns","exportedRowIds","exportDataAsCsv","csv","addExportMenuButtons","loadStyleSheets","stylesheetLoadPromises","headStyleElements","newHeadStyleElements","styleCSS","getDerivedPaginationModel","paginationState","signature","paginationModelProp","validPage","useGridPaginationModel","previousFilterModel","setPageSize","setPaginationModel","handlePaginationModelChange","handleUpdateAutoPageSize","maximumPageSizeWithoutScrollBar","handleRowCountChange","newRowCount","navigateToStart","handleFilterModelChange","currentActiveFilters","raf","buildPrintWindow","iframeEl","useGridPrintExport","hasRootReference","previousGridState","previousColumnVisibility","previousRows","previousVirtualizationState","updateGridColumnsForPrint","includeCheckboxes","exportedColumnFields","newColumnVisibilityModel","updateGridRowsForPrint","getRowsToExport","newRows","handlePrintWindowLoad","printWindow","normalizeOptions","printDoc","rowsMeta","gridRootElement","gridClone","gridMain","gridToolbarElementHeight","gridFooterElementHeight","gridFooterElement","computedTotalHeight","defaultPageStyle","styleElement","rootCandidate","handlePrintWindowAfterPrint","printExportApi","mql","filterStateInitializer","getVisibleRowsLookup","getVisibleRowsLookupState","createMemoizedValues","useGridFilter","updateFilteredRows","visibleRowsLookupState","addColumnMenuItem","upsertFilterItem","upsertFilterItems","existingItems","deleteFilterItem","itemToDelete","showFilterPanel","targetColumnField","filterItemsWithValue","newFilterItems","filterItemOnTarget","targetColumn","hideFilterPanel","setFilterLogicOperator","setQuickFilterValues","setFilterModel","getFilterState","inputFilterModel","isRowMatchingFilters","filterResult","filterApi","filterModelToExport","FilterPanel","getRowsRef","flatFilteringMethod","filterCache","isRowPassing","footerId","handleColumnsChange","handleStrategyProcessorChange","updateVisibleRowsLookupState","focusStateInitializer","useGridFocus","lastClickedCell","publishCellFocusOut","setCellFocus","setColumnHeaderFocus","setColumnHeaderFilterFocus","setColumnGroupHeaderFocus","getColumnGroupHeaderFocus","moveFocusToRelativeCell","columnIndexToFocus","currentPageRows","rowIndexToFocus","rowToFocus","colSpanInfo","columnToFocus","handleCellDoubleClick","handleCellKeyDown","handleColumnHeaderFocus","handleColumnGroupHeaderFocus","focusedColumnGroup","handleCellMouseDown","handleDocumentClick","handleCellModeChange","handleRowSet","lastFocusedRowId","nextRowId","rowEl","lastFocusedRowIndex","currentFocusedCell","focusApi","focusPrivateApi","getLeftColumnIndex","firstColIndex","lastColIndex","getRightColumnIndex","findNonRowSpannedCell","rowSpanScanDirection","rowSpanHiddenCells","nextRowIndex","gridVisibleRowsWithPinnedRowsSelector","useGridKeyboardNavigation","getCurrentPageRows","headerFilteringEnabled","goToCell","closestColumnToUse","nextCellColSpanInfo","nonRowSpannedRowId","rowIndexRelativeToAllRows","goToHeader","goToHeaderFilter","goToGroupHeader","getRowIdFromIndex","handleColumnHeaderKeyDown","headerTitleNode","viewportPageSize","colIndexBefore","firstRowIndexInPage","lastRowIndexInPage","columnGroupMaxDepth","shouldPreventDefault","rightColIndex","leftColIndex","handleHeaderFilterKeyDown","isEditing","isHeaderMenuOpen","handleColumnGroupHeaderKeyDown","currentField","remainingRightColumns","remainingLeftColumns","getColumnIndexFn","rowIndexBefore","checkIfCanStartEditing","useGridRowCount","rowCountState","paginationMeta","previousPageSize","paginationRowCountApi","exportedRowCount","restoredRowCount","isLastPage","useGridPaginationMeta","paginationMetaApi","newPaginationMeta","exportedPaginationMeta","restoredPaginationMeta","paginationStateInitializer","useGridPagination","preferencePanelStateInitializer","useGridPreferencesPanel","hidePreferences","showPreferences","preferencePanelToExport","preferencePanel","getDefaultCellValue","useGridCellEditing","cellModesModel","setCellModesModel","cellModesModelRef","prevCellModesModel","processRowUpdate","onProcessRowUpdateError","cellModesModelProp","onCellModesModelChange","runIfEditModeIsCell","throwIfNotEditable","throwIfNotInMode","handleCellFocusOut","handleCellEditStart","startCellEditModeParams","handleCellEditStop","cellToFocusAfter","ignoreModifications","runIfNoFieldErrors","getCellMode","editingState","updateCellModesModel","isNewModelDifferentFromProp","updateFieldInCellModesModel","_newModel$id","otherFields","updateOrDeleteFieldState","newEditingState","startCellEditMode","updateStateToStartCellEditMode","deleteValue","shouldProcessEditCellProps","stopCellEditMode","updateStateToStopCellEditMode","finishCellEditMode","rowUpdate","updateRowParams","errorThrown","finalRowUpdate","setCellEditingEditCellValue","skipValueParser","getRowWithUpdatedValuesFromCellEditing","editingApi","editingPrivateApi","copyOfPrevCellModes","prevMode","originalId","useGridRowEditing","rowModesModel","setRowModesModel","rowModesModelRef","prevRowModesModel","prevRowValuesLookup","nextFocusedCell","rowModesModelProp","onRowModesModelChange","runIfEditModeIsRow","hasFieldsWithErrors","handleCellFocusIn","nextFieldToFocus","handleRowEditStart","startRowEditModeParams","handleRowEditStop","getRowMode","updateRowModesModel","updateRowInRowModesModel","updateOrDeleteRowState","startRowEditMode","updateStateToStartRowEditMode","processedProps","stopRowEditMode","updateStateToStopRowEditMode","focusedField","finishRowEditMode","setRowEditingEditCellValue","_editingState$id","otherFieldsProps","thisField","fieldColumn","_editingState$id2","getRowWithUpdatedValuesFromRowEditing","copyOfPrevRowModesModel","editingStateInitializer","useGridEditing","debounceMap","isCellEditableProp","isCellEditable","maybeDebounce","runImmediately","debounces","runPendingEditCellValueMutation","debouncedField","runCallback","setEditCellValue","setEditCellValueToCall","getRowWithUpdatedValues","getEditCellMeta","editingSharedApi","editingSharedPrivateApi","rowsStateInitializer","isDataSourceAvailable","useGridRows","lastUpdateMs","lastRowCount","getRow","throttledRowsChange","throttleRemainingTimeMs","setRows","prevCache","updateRows","updateNestedRows","setLoading","getRowModels","dataRows","getRowsCount","getAllRowIds","getRowIndexRelativeToVisibleRows","rowIdToIndexMap","setRowChildrenExpansion","isExpanded","newNode","getRowNode","getRowGroupChildren","applySorting","applyFiltering","setRowIndex","targetIndex","allRows","oldIndex","updatedRows","replaceRows","rootGroup","rootGroupChildren","seenIds","removedRowId","rowTreeNodeConfig","rowApi","rowProApi","rowProPrivateApi","groupRows","previousDataSource","handleStrategyActivityChange","applyHydrateRowsProcessor","isRowCountPropUpdated","currentRows","areNewRowsAlreadyInState","isNewLoadingAlreadyInState","isNewRowCountAlreadyInState","createFlatRowTree","updateFlatRowTree","idsToRemoveFromRootGroup","idToDelete","idToInsert","flatRowTreeCreationMethod","useGridRowsPreProcessors","MissingRowIdError","useGridParamsApi","getColumnHeaderParams","getRowParams","getCellParamsForRow","cellFocus","getCellValue","getRowValueFn","getRowFormattedValue","getColumnHeaderElement","getRowElement","getCellElement","paramsApi","paramsPrivateApi","emptyModel","rowSelectionStateInitializer","useGridRowSelection","runIfRowSelectionIsEnabled","applyAutoSelection","propRowSelectionModel","lastRowToggled","checkboxSelection","disableRowSelectionOnClick","propIsRowSelectable","canHaveMultipleSelection","isNestedData","expandMouseRowRangeSelection","endId","startId","getRowsToBeSelected","setRowSelectionModel","isRowSelected","getSelectedRows","selectRow","resetSelection","newSelectionModel","selectRows","selectableIds","currentSelectionModel","getPropagatedRowSelectionModel","inputSelectionModel","propagatedSelectionModel","selectRowRange","allPagesRowIds","rowsBetweenStartAndEnd","selectionPublicApi","selectionPrivateApi","removeOutdatedSelection","sortModelUpdated","isNonExistent","shouldReapplyPropagation","unfilteredSelectedRowIds","selectedRowIds","handleSingleRowSelection","hasCtrlKey","isMultipleSelectionDisabled","newSelectionState","handleRowClick","preventSelectionOnShift","handleRowSelectionCheckboxChange","toggleAllRows","quickFilterModel","hasFilters","handleHeaderSelectionCheckboxChange","focusCell","isNextRowSelected","newRowIndex","previousRowIndex","syncControlledState","isStateControlled","useGridRowSelectionPreProcessors","updateSelectionColumn","selectionColumn","shouldHaveSelectionColumn","haveSelectionColumn","sortingStateInitializer","useGridSorting","upsertSortModel","existingIdx","newSortModel","createSortItem","directionOverride","nextSort","sortRowList","setSortModel","sortColumn","allowMultipleSorting","getSortModel","getSortedRows","getSortedRowIds","getRowIdFromRowIndex","sortModelToExport","flatSortingMethod","sortedChildren","handleColumnHeaderClick","latestColumns","scrollIntoView","elementSize","elementOffset","elementEnd","useGridScroll","colRef","scrollToIndexes","scrollCoordinates","cellWidth","targetOffsetHeight","getScrollPosition","useGridEvents","DATA_GRID_PROPS_DEFAULT_VALUES","EMPTY_SIZE","EMPTY_DIMENSIONS","dimensionsStateInitializer","getStaticDimensions","columnsTotalWidthSelector","colCount","useGridDimensions","errorShown","rootDimensionsRef","isFirstSizing","groupHeaderHeight","headerFilterHeight","headersTotalHeight","getRootDimensions","setDimensions","setCSSVariables","getViewportPageSize","updateDimensions","measureScrollbarSize","topContainerHeight","bottomContainerHeight","viewportInnerSize","hasScrollXIfNoYScrollBar","hasScrollYIfNoXScrollBar","rowWidth","newDimensions","prevDimensions","areElementSizesEqual","updateDimensionCallback","debouncedUpdateDimensions","apiPublic","apiPrivate","handleRootMount","pinnedColumnns","validRowHeight","scrollbarSizeCache","cachedSize","scrollDiv","ResizeObserver","rowsMetaStateInitializer","dataRowCount","useGridRowsMeta","getRowHeightProp","getRowSpacing","getEstimatedRowHeight","heightCache","lastMeasuredRowIndex","isHeightMetaValid","getRowHeightEntry","processHeightEntry","rowHeightFromUser","estimatedRowHeight","hydrateRowsMeta","pinnedTopRowsTotalHeight","pinnedBottomRowsTotalHeight","currentPageTotalHeight","didHeightsChange","getRowHeight","storeRowHeightMeasurement","didChange","rowHasAutoHeight","getLastMeasuredRowIndex","setLastMeasuredRowIndex","resetRowHeights","observeRowHeight","rowsMetaApi","rowsMetaPrivateApi","useGridStatePersistence","exportState","restoreState","stateToRestore","useGridColumnSpanning","getCellColSpanInfo","resetColSpan","calculateColSpan","cellProps","calculateCellColSpan","columnSpanningPublicApi","columnSpanningPrivateApi","minFirstColumnIndex","maxLastColumnIndex","columnsLength","setCellColSpanInfo","nextColumnIndex","nextColumn","recurrentUnwrapGroupingColumnModel","columnGroupNode","unwrappedGroupingModelToComplete","unwrapGroupingColumnModel","columnGroupingModel","unwrappedSubTree","getColumnGroupsHeaderStructure","orderedColumns","unwrappedGroupingModel","pinnedFields","getParents","groupingHeaderStructure","haveSameParents","field1","field2","haveDifferentContainers","depthStructure","structure","newField","lastGroup","prevField","createGroupLookup","groupLookup","groupParam","subTreeLookup","columnGroupsStateInitializer","useGridColumnGrouping","getColumnGroupPath","getAllGroupDetails","handleColumnIndexChange","updateColumnGroupingState","createControllablePromise","trackFinger","currentTouchId","computeNewWidth","initialOffsetToSeparator","clickX","columnBounds","resizeDirection","computeOffsetToSeparator","flipResizeDirection","getResizeDirection","preventClick","useColumnVirtualizationDisabled","excludeOutliers","inputValues","q1","q3","iqr","deviation","extractColumnWidths","widthByField","widths","filteredWidths","iconContainer","menuContainer","paddingWidth","hasColumnMin","hasColumnMax","maxContent","columnResizeStateInitializer","createResizeRefs","useGridColumnResize","stopResizeEventTimeout","touchId","updateWidth","widthDiff","columnWidthDiff","newTotalWidth","headerFilterElement","div","finalWidth","updateProperty","finishResize","prevEvent","prevTimeStamp","prevClientX","prevClientY","storeReferences","xStart","handleResizeMouseUp","handleResizeMouseMove","finger","cellSeparator","columnHeaderElement","handleResizeStart","handleResizeStop","handleColumnResizeMouseDown","handleColumnSeparatorDoubleClick","columnVirtualizationDisabled","isAutosizingRef","autosizeColumns","userOptions","newColumns","remainingWidth","widthPerColumn","getUnprocessedRange","testRange","processedRange","isRowContextInitialized","cellValue","valueGetter","EMPTY_STATE","EMPTY_RANGE","skippedFields","DEFAULT_ROWS_TO_PROCESS","computeRowSpanningState","colDefs","rangeToProcess","resetState","hiddenCellOriginMap","spannedRowId","spannedRowIndex","backwardsHiddenCells","prevIndex","prevRowEntry","currentRow","hiddenCellIndex","relativeIndex","getInitialRangeToProcess","paginationLastRowIndex","rowSpanningStateInitializer","isFilteringPending","useGridRowSpanning","updateRowSpanningState","newProcessedRange","newSpannedCellsCount","newHiddenCellsCount","currentSpannedCellsCount","currentHiddenCellsCount","resetRowSpanningState","listViewStateInitializer","getListColumnWidth","useGridListView","updateListColumnWidth","listColumn","gridGetRowsParamsSelector","DataSourceRowsUpdateStrategy","CacheChunkManager","chunkedKeys","cacheKeys","chunkKey","isLastChunk","responseSlice","noopCache","cacheProp","useGridDataSourceBase","defaultRowsUpdateStrategyActive","setDefaultRowsUpdateStrategyActive","lastRequestId","onDataSourceErrorProp","cacheChunkManager","sortedPageSizeOptions","cacheChunkSize","fetchRows","fetchParams","getRowsResponse","originalError","handleDataUpdate","dataSourceUpdateRow","handleEditRowOption","editRow","dataSourceApi","debouncedFetchRows","newCache","useGridDataSource","strategyProcessor","addEventHandler","useDataGridComponent","headerAlign","GridColumnGroupHeader","columnGroupsLookup","headerName","renderParams","elementId","GridColumnHeaderRow","useGridColumnHeaders","dragCol","setDragCol","resizeCol","setResizeCol","columnGroupsModel","handleColumnResizeStart","handleColumnResizeStop","handleColumnReorderStart","handleColumnReorderStop","leftRenderContext","rightRenderContext","getColumnsToRender","currentContext","getFillers","leftOverflow","isNotPinned","leftOffsetWidth","getColumnHeaders","renderedColumns","isFirstColumn","siblingWithBorderingSeparator","getColumnHeadersRow","getColumnGroupHeaders","columnsToRender","rowStructure","firstColumnFieldToRender","firstGroupToRender","firstGroupIndex","lastColumnFieldToRender","lastGroupToRender","lastGroupIndex","visibleColumnGroupHeader","groupStructure","firstVisibleColumnIndex","headerInfo","GridColumnHeadersRoot","GridBaseColumnHeaders","GridColumnHeaders","getInnerProps","getColumnGroupHeadersRows","MemoizedGridColumnHeaders","GridDetailPanels","GridPinnedRows","GridNoResultsOverlay","noResultsOverlayLabel","bufferLength","uint8View","int32View","xxh","requiredLength","length8","rotl32","v0","v3","useMaterialCSSVariables","transformTheme","getBorderColor","dataGridPalette","backgroundBase","backgroundHeader","backgroundPinned","backgroundBackdrop","backgroundOverlay","getRadius","fontBody","formatFont","fontSmall","fontLarge","font","_excluded9","_excluded10","_excluded11","_excluded12","_excluded13","_excluded14","_excluded15","_excluded16","_excluded17","_excluded18","_excluded19","_excluded20","_excluded21","_excluded22","MUIInputAdornment","MUIFormControlLabel","MUICheckbox","MUIListItemText","BaseSelect","material","menuProps","MUIFormControl","MUIInputLabel","MUISelect","StyledPagination","MUIPagination","BasePagination","computedProps","estimatedRowCount","BaseBadge","MUIBadge","BaseCheckbox","elementRef","rippleRef","BaseCircularProgress","MUICircularProgress","BaseDivider","MUIDivider","BaseLinearProgress","MUILinearProgress","BaseButton","MUIButton","BaseChip","MUIChip","BaseIconButton","MUIIconButton","BaseTooltip","MUITooltip","BaseSkeleton","MUISkeleton","BaseSwitch","MUISwitch","BaseMenuList","MUIMenuList","BaseMenuItem","inert","iconStart","iconEnd","MUIMenuItem","MUIListItemIcon","BaseTextField","MUITextField","transformInputProps","MUIAutocomplete","getTagProps","_getTagProps","tagProps","inputRest","BaseInput","MUIInputBase","wrapAdornments","wrappers","popperOnExited","MUIGrow","MUIPaper","MUIPopper","focusTrapWrapper","clickAwayWrapper","MUIFocusTrap","BaseSelectOption","iconSlots","baseSlots","materialSlots","GridBottomContainer","DATA_GRID_DEFAULT_SLOTS_COMPONENTS","DATA_GRID_FORCED_PROPS","getDataGridForcedProps","themedProps","useDataGridProps","injectDefaultProps","EventManager","highPriorityListeners","regularListeners","oneTimeListener","Store","SYMBOL_API_PRIVATE","isSyntheticEvent","createPrivateAPI","existingPrivateApi","privateApi","methods","currentPrivateMethod","publicApi","currentPublicMethod","createPublicAPI","useGridApiInitialization","inputApiRef","publishEvent","subscribeEvent","DataGridRaw","DataGrid","convertEntriesToObj","CategoryDetailDataGrid","updateEntryQuery","deleteEntryQuery","rowFocusOut","defaultMuiPrevented","handleEditClick","Edit","handleSaveClick","View","handleDeleteClick","handleCancelClick","newRow","handleRowModesModelChange","newRowModesModel","valueFormatter","cellClassName","getActions","DeleteConfirmationModal","deleteFn","borderWidth","handleDelete","CategoryForm","useAddCategoryQuery","useEditCategoryQuery","CategoryDetailDropdown","deleteCategoryQuery","openEditModal","setOpenEditModal","openDeleteModal","setOpenDeleteModal","handleEdit","handleOpenEditModal","handleOpenDeleteModal","performDelete","handleCloseEditModal","handleCloseDeleteModal","EntryForm","useAddEntryQuery","useEditEntryQuery","categoryQuery","AddMeasurementCategoryFab","lg","AddMeasurementEntryFab","fontFamilyBold","fontFamilyLight","themeOptions","h3","h4","h5","h6","makeTheme","MuiPopover","MuiModal","MeasurementChart","NR_OF_ENTRIES_CHART_DOT","entryData","MeasurementCategoryDetail","CategoryList","MeasurementCategoryOverview","useProfileQuery","useEditProfileQuery","bmiRanges","getRangeColor","bmiRange","BmiCalculator","weightQuery","profileQuery","setHeight","setWeight","lastWeightEntry","weightInKg","bmi","calculateBMI","heightInMeters","cumulativeWeight","bmiValue","weightForRange","IngredientTableRow","paddingX","kcal","kj","IngredientDetailTable","showSum","LoggedPlannedNutritionalValuesTable","pl","paddingLeft","NutritionDiaryOverview","generateChartColors","nrOfItems","MacrosPieChart","colorGenerator","PI","renderCustomizedLabel","NutritionDiaryChart","showPlanned","avg7Days","DiaryOverview","AddNutritionalPlanFab","AddNutritionDiaryEntryFab","MealForm","addMealQuery","editMealQuery","newMeal","NutritionalValuesPlannedLoggedChart","MealItemForm","addMealItemQuery","editMealItemQuery","deleteMealItemQuery","newMealItem","MealDetailDropdown","addDiaryEntriesQuery","deleteMealQuery","handleExpanded","MealItemListItem","expandForm","setExpandForm","handleToggleForm","MealDetail","expandViewStats","setExpandViewStats","handleToggleExpandStats","expandItemForm","setExpandItemForm","handleToggleExpandItemForm","setExpandDiaryForm","expandDiaryForm","handleToggleExpandDiaryForm","paddingY","my","Add","NutritionalValuesTable","PlanDetailDropdown","deletePlanQuery","navigateToPdfDownload","navigateToCopyPlan","PlanSidebar","loggedToday","percentages","PlanDetail","expandedForm","setExpandedForm","handleToggleExpandedForm","PlansOverview","plansQuery","PlanList","PlanListItem","detailUrl","plans","WgerTextField","fullwidth","SlotEntryTypeField","editQuery","handleOnChange","SlotEntryRepetitionUnitField","editSlotEntryQuery","repUnitsQuery","SlotEntryWeightUnitField","weightUnitsQuery","userProfileQuery","SlotEntryRoundingField","editProfileQuery","debouncedSave","RoutineForm","isPublicTemplate","addRoutineQuery","editRoutineQuery","setStartDate","setEndDate","plus","startDateTime","newRoutine","mutateAsync","DefaultRoundingMenu","RoutineAdd","RoutineTemplateForm","setIsTemplate","setIsPublic","handleSetTemplate","newIsPublic","handleSave","handleSetPublic","RoutineDetailDropdown","useDeleteQuery","deleteConfirmationOpen","setConfirmationOpen","DialogToOpen","handleTemplate","handleConfirmDelete","handleCloseDialogs","navigateEdit","RoutineDetail","chip","stickyColumn","whiteBg","StyledContainer","RoutineDetailsTable","routineLogDataQuery","showLogs","setShowLogs","RoutineTable","compareValue","routineLogData","groupedLogs","getTableRowHeader","getTableRowWeekTitle","getTableRowPlanned","borderBottomWidth","formatContent","getComparisonIcon","loggedValue","plannedValue","maxPlannedValue","higherIsBetter","comparison","getTableRowLogged","getTableContent","slotIndex","configIndex","getRect","expand","expandBy","shrinkBy","shift","shiftBy","noSpacing","borderBox","_ref2$margin","_ref2$border","_ref2$padding","marginBox","paddingBox","contentBox","raw","change","shifted","withScroll","calculateBox","getBox","rafSchd","frameId","wrapperFn","fromBinding","bindEvents","bindings","sharedOptions","unbindings","binding","unbind","prefix$1","RbdInvariant","ErrorBoundary","dragHandleUsageInstructions","onDragStart","withLocation","isInHomeList","startPosition","endPosition","withCombine","onDragUpdate","returnedToStart","onDragEnd","preset","isEqual$2","areInputsEqual","newInputs","lastInputs","getResult","isFirstRun","committed","point1","point2","isEqual$1","otherValue","closest$1","executeClip","subject","offsetByPosition","getCorners","scroll$1","increase","withPlaceholder","clip","getSubject","scrolled","increased","clipped","scrollDroppable","droppable","scrollDiff","scrollDisplacement","memoizeOne","resultFn","toDroppableMap","droppables","toDraggableMap","draggables","toDroppableList","toDraggableList","getDraggablesInsideDroppable","droppableId","draggable","tryGetDestination","impact","tryGetCombine","removeDraggableFromList","moveToNextCombine","isMovingForward","insideDestination","previousImpact","getImpact","closestId","withoutDraggable","indexOfClosest","proposedIndex","isHomeOf","noDisplacedBy","emptyGroups","noImpact","isWithin","lowerBound","upperBound","isPartiallyVisibleThroughFrame","isWithinVertical","isWithinHorizontal","isPartiallyVisibleVertically","isPartiallyVisibleHorizontally","isBiggerVertically","isBiggerHorizontally","isTotallyVisibleThroughFrame","isTotallyVisibleThroughFrameOnAxis","getDroppableDisplaced","displacement","isVisibleInDroppable","isVisibleThroughFrameFn","isVisibleInViewport","isVisible$1","toBeDisplaced","withDroppableDisplacement","displacedTarget","isPartiallyVisible","isTotallyVisible","isTotallyVisibleOnAxis","getShouldAnimate","forceShouldAnimate","visible","getTarget","displacedBy","getDisplacementGroups","afterDragging","shouldAnimate","getIndexOfLastItem","indexOfLastItem","goAtEnd","inHomeList","calculateReorderImpact","withoutDragging","sliceFrom","impacted","didStartAfterCritical","draggableId","afterCritical","fromCombine","combineId","combineWithIndex","fromReorder","moveToNextIndex","wasAt","getCombinedItemDisplacement","displaced","combineWith","isDisplaced","whenCombining","displaceBy","distanceFromStartToBorderBoxCenter","distanceFromEndToBorderBoxCenter","getCrossAxisBorderBoxCenter","goAfter","moveRelativeTo","goBefore","goIntoStart","moveInto","whenReordering","draggablePage","closestAfter","closest","withDisplacement","getResultWithoutDroppableDisplacement","getPageBorderBoxCenterFromImpact","withoutDisplacement","scrollViewport","getDraggables$1","tryGetVisible","speculativelyIncrease","maxScrollChange","scrolledViewport","scrolledDroppable","withViewportScroll","withDroppableScroll","withViewportDisplacement","getClientFromPageBorderBoxCenter","pageBorderBoxCenter","withoutPageScrollChange","isTotallyVisibleInNewLocation","newPageBorderBoxCenter","onlyOnMainAxis","changeNeeded","moveToNextPlace","previousPageBorderBoxCenter","previousClientSelection","cautious","getKnownActive","getBestCrossAxisDroppable","isBetweenSourceClipped","activeOfTarget","isBetweenDestinationClipped","getCurrentPageBorderBoxCenter","getCurrentPageBorderBox","getClosestDraggable","distanceToA","distanceToB","getDisplacedBy","getRequiredGrowthForPlaceholder","placeholderSize","availableSpace","needsToGrowBy","dimension","withMaxScroll","addPlaceholder","requiredGrowth","maxScroll","newFrame","removePlaceholder","oldMaxScroll","moveToNewDroppable","proposed","proposedPageBorderBoxCenter","isGoingBeforeTarget","relativeTo","moveCrossAxis","whatIsDraggedOver","getDroppableOver$1","moveInDirection","isActuallyOver","isMainAxisMovementAllowed","home","isMovingOnMainAxis","isMovementAllowed","isPositionInFrame","getHasOverlap","getFurthestAway","pageBorderBox","startCenter","getDroppableOver","childCenter","crossAxisStart","crossAxisEnd","isContained","isStartContained","isEndContained","offsetRectByPosition","getIsDisplaced","atIndex","getReorderImpact","targetRect","targetStart","targetEnd","didStartAfterCritical$1","combineThresholdDivisor","getCombineImpact","childRect","getDragImpact","pageOffset","destinationId","pageBorderBoxWithDroppableScroll","patchDroppableMap","updated","clearUnusedPlaceholder","lastDroppable","recomputePlaceholders","cleaned","patched","forcedClientSelection","forcedDimensions","forcedViewport","forcedImpact","scrollJumpRequest","clientSelection","newImpact","withUpdatedPlaceholders","getDraggables","recompute","getClientBorderBoxCenter","refreshSnap","needsVisibilityCheck","getHomeLocation","getLiftEffect","insideHome","rawIndex","effected","patchDimensionMap","offsetDraggable","offset$1","initialWindowScroll","getFrame","adjustAdditionsForScrollChanges","updatedDroppables","windowScrollChange","droppableScrollChange","totalChange","publishWhileDraggingInVirtual","published","withScrollChange","updatedAdditions","wasOverId","wasOver","onLiftImpact","draggingState","isSnapping","postDroppableChange","isEnabledChanging","removeScrollJumpRequest","idle$2","critical","movementMode","isWindowScrollAllowed","isCombineEnabled","dropDuration","newHomeClientOffset","beforeInitialCapture","lift$1","initialPublish","publishWhileDragging","collectionStarting","updateDroppableScroll","updateDroppableIsEnabled","updateDroppableIsCombineEnabled","moveByWindowScroll","updateViewportMaxScroll","moveUp","moveDown","moveRight","moveLeft","animateDrop","completeDrop","dropPending","dropAnimationFinished","lift","marshal","curves","timings","outOfTheWayTiming","timing","moveTo","isCombining","translate","minDropTime","maxDropTime","dropTimeRange","maxDropTimeAtDistance","cancelDropModifier","getDropDuration","distance$1","withDuration","getNewHomeClientOffset","newClientCenter","getDropImpact","lastImpact","dropMiddleware","didDropInsideDroppable","getWindowScrollBinding","getScrollListener","onWindowScroll","updateScroll","scheduled","shouldStop$1","scrollListener","getExpiringAnnounce","announce","wasCalled","isExpired","getAsyncMarshal","execute","shallow","areLocationsEqual","isCombineEqual","isCriticalEqual","isDraggableEqual","isDroppableEqual","withTimings","getDragStart","responder","getDefaultMessage","willExpire","getPublisher","getResponders","asyncMarshal","beforeCapture","beforeStart","hasCriticalChanged","hasLocationChanged","hasGroupingChanged","responders","publisher","dropAnimationFinishMiddleware","dropAnimationFlushOnScrollMiddleware","dimensionMarshalStopper","isWatching","autoScroll","autoScroller","pendingDrop","postActionState","composeEnhancers","dimensionMarshal","focusMarshal","styleMarshal","createStore$1","clean$1","createPublisher","registry","staging","collect","removals","getMaxScroll","scrollHeight","scrollWidth","getMaxWindowScroll","getViewport","getInitialPublish","scrollOptions","windowScroll","shouldPublishUpdate","createDimensionMarshal","stopPublishing","subscriber","canStartDrag","scrollWindow","getScrollableDroppables","getScrollableDroppableOver","getBestScrollableDroppable","defaultAutoScrollerOptions","getDistanceThresholds","getAutoScrollerOptions","autoScrollerOptions","startScrollingFrom","maxScrollValueAt","getPercentage","startOfRange","endOfRange","minScroll","getValueFromDistance","distanceToEdge","percentageFromStartScrollingFrom","dampenValueByTime","proposedScroll","dragStartTime","accelerateAt","stopAt","runTime","betweenAccelerateAtAndStopAtPercentage","shouldUseTimeDampening","getScrollOnAxis","distanceToEdges","adjustForSizeLimits","isTooBigVertically","isTooBigHorizontally","clean","getScroll$1","limited","smallestSigned","getOverlap","getRemainder","targetScroll","canPartiallyScroll","rawMax","smallestChange","canScrollWindow","getWindowOverlap","canScrollDroppable","getDroppableOverlap","getWindowScrollChange","getDroppableScrollChange","createFluidScroller","scheduleWindowScroll","scheduleDroppableScroll","tryScroll","wasScrollNeeded","fakeScrollCallback","createJumpScroller","moveByOffset","scrollDroppableAsMuchAsItCan","whatTheDroppableCanScroll","scrollWindowAsMuchAsItCan","whatTheWindowCanScroll","droppableRemainder","windowRemainder","createAutoScroller","fluidScroller","jumpScroll","dragHandle","makeGetSelector","getStyles","noPointerEvents","getStyles$1","contextId","dragHandle$1","grabCursor","draggable$1","droppable$1","getHead","createStyleEl","useStyleMarshal","alwaysRef","dynamicRef","setDynamicStyle","setAlwaysStyle","always","dynamic","dropping","resting","querySelectorAll","getWindowFromEl","findDragHandle","possible","handle","useFocusMarshal","entriesRef","recordRef","restoreFocusFrameRef","isMountedRef","register","tryGiveFocus","tryGiveFocusTo","tryShiftRecord","redirectTo","tryRestoreFocusRecorded","tryRecordFocus","subscribers","findDraggableById","getDraggableById","draggableAPI","findDroppableById","getDroppableById","droppableAPI","useRegistry","StoreContext","getBodyElement","getId","useAnnouncer","getElementId","useHiddenTextElement","AppContext","lock","isClaimed","claim","abandon","newLock","release","tryAbandon","space","pageUp","pageDown","arrowLeft","arrowUp","arrowRight","arrowDown","preventedKeys","preventStandardKeyEvents","supportedEventName","primaryButton","sloppyClickThreshold","isSloppyClickThresholdExceeded","idle$1","getCaptureBindings","getPhase","setPhase","useMouseSensor","phaseRef","unbindEventsRef","startCaptureBinding","startPendingDrag","preventForcePressBinding","listenForCapture","bindCapturingEvents","scrollJumpKeys","getDraggingBindings","useKeyboardSensor","preDrag","isCapturing","idle","timeForLongPress","forcePressThreshold","getWindowBindings","getHandleBindings","shouldRespect","useTouchSensor","unbindTarget","unbindWindow","startDragging","longPressTimerId","interactiveTagNames","isAnInteractiveElement","isEventInInteractiveElement","getBorderBoxCenterPosition","supportedMatchesName","closestPonyfill","findClosestDragHandleFromEvent","tryGetClosestDraggableIdFromEvent","findDraggable","preventDefault","isLockActive","shouldWarn","lockAPI","tryStart","forceSensorStop","sourceEvent","getShouldRespectForcePress","tryDispatch","getAction","tryDispatchWhenDragging","fluidLift","move$1","snapLift","abortPreDrag","defaultSensors","useSensorMarshal","customSensors","enableDefaultSensors","useSensors","tryAbandonLock","canGetLock","tryGetLock","forceStop","findClosestDraggableId","findOptionsForDraggable","tryReleaseLock","isLockClaimed","createResponders","onBeforeCapureCallback","flushSync","createAutoScrollerOptions","getStore","lazyRef","App","setCallbacks","sensors","lazyStoreRef","lastPropsRef","dragHandleUsageInstructionsId","lazyDispatch","marshalCallbacks","tryResetStore","appCallbacks","getCanLift","getIsMovementAllowed","appContext","useUniqueContextId","DragDropContext","zIndexOptions","getDraggingTransition","shouldAnimateDragMovement","getDraggingOpacity","isDropAnimating","getShouldDraggingAnimate","getDraggingStyle","getSecondaryStyle","getStyle$1","getDimension$1","computedStyles","useDraggablePublisher","getDraggableRef","canDragInteractiveElements","shouldRespectForcePress","getDimension","publishedRef","isFirstPublishRef","DroppableContext","useRequiredContext","preventHtml5Dnd","Draggable","getRef","isClone","dropAnimationFinishedAction","forPublisher","dragHandleProps","onMoveEnd","provided","onTransitionEnd","rubric","isStrictEqual","whatIsDraggedOverFromResult","getCombineWithFromResult","getCombineWithFromImpact","getDraggableSelector","memoizedOffset","getMemoizedSnapshot","draggingOver","getMemoizedProps","getSecondarySnapshot","combineTargetFor","atRest","getSecondarySelector","shouldAnimateDisplacement","getFallback","getProps","ownId","draggingId","visualDisplacement","isAfterCriticalInVirtualList","makeMapStateToProps$1","draggingSelector","secondarySelector","mapDispatchToProps$1","ConnectedDraggable","PrivateDraggable","PublicDraggable","isScroll","isAuto","isEither","isElementScrollable","isBodyScrollable","getClosestScrollable","getScroll","getIsFixed","getEnv","closestScrollable","isFixedOnPage","getDroppableDimension","scrollSize","frameClient","getClient","targetRef","isDropDisabled","shouldClipSubject","immediate","delayed","getListenerOptions","getClosestScrollableFromDrag","useDroppablePublisher","whileDraggingRef","previousRef","publishedDescriptorRef","memoizedUpdateScroll","getClosestScroll","scheduleScrollUpdate","onClosestScroll","getDimensionAndWatchScroll","getScrollWhileDragging","dragStopped","isAnimatingOpenOnMount","getStyle","Placeholder","animateOpenTimerRef","tryClearAnimateOpenTimer","setIsAnimatingOpenOnMount","onSizeChangeEnd","Placeholder$1","AnimateInOut","Droppable","droppableRef","placeholderRef","ignoreContainerClipping","snapshot","useClone","getContainerForClone","getDroppableRef","setDroppableRef","setPlaceholderRef","onPlaceholderTransitionEnd","isUsingCloneFor","droppableContext","getClone","draggableProvided","draggableSnapshot","getBody","attachDefaultPropsToOwnProps","defaultPropKey","isMatchingType","getDraggable","makeMapStateToProps","idleWithAnimation","idleWithoutAnimation","getDraggableRubric","getMapProps","isDraggingOverForConsumer","isDraggingOverForImpact","renderClone","ownPropsWithDefaultProps","isDraggingOver","wasCombining","isHome","ConnectedDroppable","warnedOnce","LoadingButton","DayForm","editDayQuery","deleteDayQuery","openDeleteDialog","setOpenDeleteDialog","openDialog","setOpenDialog","setIsRest","handleRestChange","handleDialogClose","handleConfirmRestChange","handleDeleteDay","handleConfirmDeleteDay","setSelectedDayIndex","handleCancelDeleteDay","nameMinLength","nameMaxLength","descriptionMaxLength","Yup","needsLogsToAdvance","SlotForm","editSlotQuery","slotComment","setSlotComment","setIsEditing","collectValidationErrors","parentKey","allErrors","sub","errorsToString","QUERY_MAP","edit","SlotBaseConfigValueField","addQuery","deleteQuery","editQueryHook","addQueryHook","deleteQueryHook","manualValidationError","setManualValidationError","setTimer","isInt","parseFunction","handleData","ConfigDetailsRequirementsField","disable","selectedElements","setSelectedElements","handleSelection","ConfigDetailsRiRField","editRiRQuery","deleteRiRQuery","addRiRQuery","toAlphabetic","fromCharCode","getConfigComponent","SlotDetails","SlotEntryDetails","simpleMode","setEditExercise","toggleEditExercise","deleteSlotEntryQuery","handleExerciseChange","searchResponse","getForm","DayDragAndDropGrid","editDayOrderQuery","addDayQuery","getListStyle","getItemStyle","draggableStyle","updatedDays","movedDay","handleAddDay","newDay","droppableProps","selectedDayIndex","draggableProps","DayDetails","deleteSlotQuery","addSlotEntryQuery","addSlotQuery","editSlotOrderQuery","showAutocompleterForSlot","setShowAutocompleterForSlot","slotToDelete","setSlotToDelete","setSimpleMode","handleDeleteSlot","updatedSlots","deletedSlot","handleAddSlotEntry","handleAddSlot","grid","movedSlot","white","RoutineEdit","SessionForm","initialSession","selectedDate","setSelectedDate","setSession","addSessionQuery","editSessionQuery","findSessionQuery","SessionLogsForm","snackbarOpen","setSnackbarOpen","addLogsQuery","handleSnackbarClose","exerciseIdToSwap","setExerciseIdToSwap","iterationDayData","hasNoIterationData","of","typeError","toISO","handleCallback","updatedLogs","dayDataList","marginTop","SessionAdd","FormQueryErrors","openAlert","setOpenAlert","mutationQuery","FormQueryErrorsSnackbar","ProgressionForm","linkMinMax","setLinkMinMax","iterationsToDelete","setIterationsToDelete","processEntriesQuery","forceInteger","apiPathMax","edited","when","integer","valueMax","operationMax","requirementsMax","repeatMax","hasValuePreviousReplace","hasMaxValuePreviousReplace","getEmptyConfig","idMax","stepMax","configMax","configsMax","editList","addList","deleteList","editListMax","addListMax","deleteListMax","requirement","SlotProgressionEdit","foundSlot","TemplateDetail","ExerciseLog","logEntries","deleteLogQuery","editLogQuery","initialRows","logEntry","disableColumnMenu","TimeSeriesChart","formatData","ExerciseLogTooltip","fromMillis","unixTime","formattedData","WorkoutLogs","groupedWorkoutLogs","MuiTooltip","StatType","Volume","Sets","Intensity","StatSubType","Mesocycle","Weekly","Iteration","Daily","StatGroupBy","Exercises","Muscles","Total","StatsOptionDropdown","getHumanReadableHeaders","exerciseList","muscleList","exercisesIds","musclesIds","getFullStatsData","stats","selectedValueType","selectedValueSubType","selectedValueGroupBy","columnTotals","statsData","dataToDisplay","allHeaders","calculateStatsData","calculateLoopSum","totals","formatStatsData","fullStatsData","WorkoutStats","setSelectedValueType","setSelectedValueSubType","setSelectedValueGroupBy","routineStatsQuery","musclesQuery","dropdownOptionsType","dropdownOptionsSubType","dropdownOptionsGroupBy","handleChangeType","handleChangeSubType","handleChangeGroupBy","renderStatistics","AddRoutineFab","AddPublicTemplateFab","AddPrivateTemplateFab","RoutineList","showTemplateChip","showTemplateVisibility","linkDestination","primaryText","chipTemplate","chipVisibility","RoutineOverview","PrivateTemplateOverview","PublicTemplateOverview","About","ExerciseAliases","ExerciseEquipmentSelect","ExerciseName","ExerciseSelect","MIN_CHAR_NAME","MAX_CHAR_NAME","MIN_DESC_LENGTH","MIN_NOTE_LENGTH","nameValidator","alternativeNameValidator","ensure","descriptionValidator","noteValidator","categoryValidator","SetNotificationState","SET_NOTIFICATION","SetExerciseSubmissionState","RESET","SET_NAME_EN","SET_ALIASES_EN","SET_DESCRIPTION_EN","SET_NOTES_EN","SET_CATEGORY","SET_EQUIPMENT","SET_PRIMARY_MUSCLES","SET_MUSCLES_SECONDARY","SET_VARIATION_ID","SET_NEW_VARIATION_BASE_ID","SET_LANGUAGE","SET_NAME_I18N","SET_ALIASES_I18N","SET_DESCRIPTION_I18N","SET_NOTES_I18N","SET_IMAGES","setNotification","notification","WeightStateContext","useWeightStateValue","setNameEn","setDescriptionEn","setNotesEn","setAlternativeNamesEn","setNameI18n","setDescriptionI18n","setNotesI18n","setAlternativeNamesI18n","setCategory","setEquipment","setPrimaryMuscles","setSecondaryMuscles","setVariationId","setNewBaseVariationId","setLanguageId","setImages","exerciseSubmissionReducer","exerciseSubmissionInitialState","descriptionEn","notesEn","alternativeNamesEn","newVariationExerciseId","nameI18n","descriptionI18n","notesI18n","alternativeNamesI18n","ExerciseSubmissionStateContext","ExerciseSubmissionStateProvider","useReducer","useExerciseSubmissionStateValue","Step1Basics","onContinue","exerciseReducer","equipmentQuery","newAlternativeNameEn","mq","mr","keyGetter","ExerciseInfoListItem","showMore","setShowMore","stateVariationId","setStateVariationId","stateNewVariationId","setStateNewVariationId","newVariationId","MAX_EXERCISE_IMAGES","MAX_EXERCISE_NAMES","Step2Variations","onBack","exercisesQuery","searchTerm","setSearchTerms","groupedExercises","useLanguageCheckQuery","EditExerciseCategory","EditExerciseEquipment","__assign","__rest","autoconfigureTextDirection","rtlPattern","cls","getSelectedNode","normalizeHtml","replaceCaret","isTargetFocused","sel","setForwardRef","ContentEditable","_a","_b","elRef","htmlRef","restRef","onSetRef","$el","elementHtml","cssClass","EditorContext","EditorProvider","useEditorState","Editor","containerProps","onSelect","editorState","onClickOutside","onTextSelect","setContentEditableRef","OrderedListIcon","UnorderedListIcon","BtnBold","createButton","BtnBulletList","BtnClearFormatting","BtnItalic","BtnStrikeThrough","BtnLink","$selection","BtnNumberedList","BtnRedo","BtnUnderline","BtnUndo","command","ButtonFactory","isElFocused","onAction","BtnStyles","createDropdown","DropdownFactory","htmlMode","Dropdown","selectedValue","selectedIndex","commandArgument","HtmlButton","Separator","ExerciseEditor","ExerciseDescription","ImageEditCard","canDelete","deleteImageQuery","AddImageCard","addImageQuery","handleFileInputChange","files","uploadedFile","file","EditExerciseMuscle","blocked","VideoEditCard","AddVideoCard","PERMISSION_PATH","checkPermission","permission","usePermissionQuery","WgerPermissions","EDIT_EXERCISE","DELETE_EXERCISE","ADD_IMAGE","EDIT_IMAGE","DELETE_IMAGE","ADD_VIDEO","EDIT_VIDEO","DELETE_VIDEO","ExerciseDetailEdit","alertIsVisible","setAlertIsVisible","setMainMuscles","exerciseQuery","addTranslationQuery","editTranslationQuery","addImagePermissionQuery","deleteImagePermissionQuery","addVideoPermissionQuery","deleteVideoPermissionQuery","editExercisePermissionQuery","translationFromBase","exerciseTranslation","exerciseEnglish","alternativeNames","aliasOrig","aliasNew","aliasToCreate","aliasToDelete","PaddingBox","__html","img","SideGallery","SideVideoGallery","useCanContributeExercises","permissionQuery","canContribute","anonymous","admin","TranslateExerciseBanner","setEditMode","ExerciseDetailView","contributeQuery","currentTranslation","isNewTranslation","ExerciseDeleteDialog","replacementId","setReplacementId","replacementExercise","setReplacementExercise","resetReplacement","handleDeleteTranslation","currentExercise","onChangeLanguage","handleDeleteBase","handleReplacement","loadCurrentReplacement","clipboard","writeText","Head","changeLanguage","anchorMenuEl","setAnchorMenuEl","openLanguageMenu","deletePermissionQuery","editPermissionQuery","userIsAnonymous","canUserContribute","handleLanguageButtonClick","handleLanguageClick","lang","languagesList","detail_language","detail","ExerciseDetails","setLanguage","variationsQuery","changeUserLanguage","ExerciseNotes","newNoteValue","setNewNoteValue","deleteAtIndex","setNoteValueIndex","addEntry","Step3Description","languageCheckQuery","validationResult","Step4Translations","translateExercise","setTranslateExercise","LicenseAuthor","LicenseAuthorUrl","LicenseDerivativeSourceUrl","LicenseObjectUrl","LicenseTitle","ImageStyleToggle","handleAlignment","newStyle","Step5Images","localImages","setLocalImages","popupImage","setPopupImage","objectURL","URL","createObjectURL","handleAddFullImage","imageStyle","handleDeleteImage","imageURL","updatedImagesURLS","handleContinue","imageEntry","Step6Overview","addExerciseSubmissionMutation","submitExercise","variationText","isIdle","AddExerciseStepper","setActiveStep","handleNext","prevActiveStep","handleBack","exerciseState.ExerciseSubmissionStateProvider","NotEnoughRights","AddExercise","AddWeight","CalendarDay","isTablet","isClickable","isWeekend","getDay","getDayColor","getDaySize","getDotSize","hasDayEntry","workoutSession","daySize","CalendarDayGrid","onDayClick","weekDays","currentYear","onPrevMonth","onNextMonth","CalendarMeasurement","Entries","openMeasurements","setOpenMeasurements","openSession","setOpenSession","openNutritionDiary","setOpenNutritionDiary","measurement","nutritionLogs","CalendarComponent","setCurrentMonth","setCurrentYear","weightsQuery","sessionQuery","measurementQuery","nutritionDiaryQuery","getDaysInMonth","remainingDays","defaultDay","setSelectedDay","todayWithData","handleDayClick","handlePrevMonth","handleNextMonth","marginRight","Calendar","CaloriesCalculator","Equipments","Ingredients","Login","Preferences","ApiPage","ActionButton","deleteWeightEntryQuery","WeightEntryFab","processWeight","WeightTable","availableResultsPerPage","processedWeights","setRowsPerPage","handleChangePage","newPage","handleChangeRowsPerPage","AddBodyWeightEntryFab","FilterButtons","currentFilter","handleFilterChange","BodyWeight","setFilter","BodyWeightSubMenu","anchorElWeight","setAnchorElWeight","MeasurementsSubMenu","anchorElMeasurements","setAnchorElMeasurements","NutritionSubMenu","TrainingSubMenu","anchorElRoutine","setAnchorElRoutine","Header","WeightOverview","ExerciseDetailPage","WgerRoutes","Notifications","closeNotification","undoDelete","undo","refetchOnMount","refetchOnWindowFocus","refetchOnReconnect","renderComponentShadowDom","divId","getElementById","shadow","attachShadow","shadowRoot","djangoReactStyle","djangoStyleElement","setAttribute","appendChild","prepend","createRoot","Suspense","ReactQueryDevtools","rootNoShadowDom","weightDashboard","nutritionDashboard","routineDashboard","ingredientSearchBox"],"ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,529,530,531,532,533,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,588,594,600,601,602,603,628,647,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1330,1331,1332,1336,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1396,1405,1406,1407,1408,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1750,1751,1752,1753,1792],"sources":["../node_modules/react/cjs/react-jsx-runtime.production.js","../node_modules/react/jsx-runtime.js","../node_modules/react/cjs/react.production.js","../node_modules/react/index.js","../node_modules/@emotion/sheet/dist/emotion-sheet.esm.js","../node_modules/stylis/src/Enum.js","../node_modules/stylis/src/Utility.js","../node_modules/stylis/src/Tokenizer.js","../node_modules/stylis/src/Parser.js","../node_modules/stylis/src/Serializer.js","../node_modules/stylis/src/Middleware.js","../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js","../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js","../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js","../node_modules/@emotion/hash/dist/emotion-hash.esm.js","../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js","../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js","../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js","../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js","../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js","../node_modules/@emotion/react/dist/emotion-react.browser.esm.js","../node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js","../node_modules/@mui/material/esm/styles/identifier.js","../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js","../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js","../node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js","../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js","../node_modules/@mui/styled-engine/esm/GlobalStyles/GlobalStyles.js","../node_modules/@mui/styled-engine/esm/index.js","../node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.js","../node_modules/@mui/utils/node_modules/react-is/index.js","../node_modules/@mui/utils/esm/deepmerge/deepmerge.js","../node_modules/@mui/system/esm/createBreakpoints/createBreakpoints.js","../node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js","../node_modules/@mui/system/esm/createTheme/shape.js","../node_modules/@mui/system/esm/merge/merge.js","../node_modules/@mui/system/esm/breakpoints/breakpoints.js","../node_modules/@mui/utils/esm/capitalize/capitalize.js","../node_modules/@mui/system/esm/style/style.js","../node_modules/@mui/system/esm/memoize/memoize.js","../node_modules/@mui/system/esm/spacing/spacing.js","../node_modules/@mui/system/esm/createTheme/createSpacing.js","../node_modules/@mui/system/esm/compose/compose.js","../node_modules/@mui/system/esm/borders/borders.js","../node_modules/@mui/system/esm/cssGrid/cssGrid.js","../node_modules/@mui/system/esm/palette/palette.js","../node_modules/@mui/system/esm/sizing/sizing.js","../node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js","../node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js","../node_modules/@mui/system/esm/createTheme/applyStyles.js","../node_modules/@mui/system/esm/createTheme/createTheme.js","../node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js","../node_modules/@mui/system/esm/useTheme/useTheme.js","../node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js","../node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js","../node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js","../node_modules/clsx/dist/clsx.mjs","../node_modules/@mui/system/esm/createBox/createBox.js","../node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js","../node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js","../node_modules/@mui/system/esm/preprocessStyles.js","../node_modules/@mui/system/esm/createStyled/createStyled.js","../node_modules/@mui/system/esm/styled/styled.js","../node_modules/@mui/utils/esm/resolveProps/resolveProps.js","../node_modules/@mui/system/esm/useThemeProps/getThemeProps.js","../node_modules/@mui/system/esm/useThemeProps/useThemeProps.js","../node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js","../node_modules/@mui/system/esm/useMediaQuery/useMediaQuery.js","../node_modules/@mui/utils/esm/clamp/clamp.js","../node_modules/@mui/system/esm/colorManipulator/colorManipulator.js","../node_modules/@mui/utils/esm/refType/refType.js","../node_modules/@mui/utils/esm/createChainedFunction/createChainedFunction.js","../node_modules/@mui/utils/esm/debounce/debounce.js","../node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js","../node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js","../node_modules/@mui/utils/esm/ownerWindow/ownerWindow.js","../node_modules/@mui/utils/esm/setRef/setRef.js","../node_modules/@mui/utils/esm/useId/useId.js","../node_modules/@mui/utils/esm/useControlled/useControlled.js","../node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js","../node_modules/@mui/utils/esm/useForkRef/useForkRef.js","../node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js","../node_modules/@mui/utils/esm/useOnMount/useOnMount.js","../node_modules/@mui/utils/esm/useTimeout/useTimeout.js","../node_modules/@mui/utils/esm/isFocusVisible/isFocusVisible.js","../node_modules/@mui/utils/esm/getScrollbarSize/getScrollbarSize.js","../node_modules/@mui/utils/esm/usePreviousProps/usePreviousProps.js","../node_modules/@mui/utils/esm/getValidReactChildren/getValidReactChildren.js","../node_modules/@mui/utils/esm/visuallyHidden/visuallyHidden.js","../node_modules/@mui/utils/esm/composeClasses/composeClasses.js","../node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js","../node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js","../node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js","../node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js","../node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js","../node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js","../node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js","../node_modules/@mui/utils/esm/getReactElementRef/getReactElementRef.js","../node_modules/@mui/private-theming/esm/useTheme/ThemeContext.js","../node_modules/@mui/private-theming/esm/useTheme/useTheme.js","../node_modules/@mui/private-theming/esm/ThemeProvider/nested.js","../node_modules/@mui/private-theming/esm/ThemeProvider/ThemeProvider.js","../node_modules/@mui/system/esm/RtlProvider/index.js","../node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js","../node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js","../node_modules/@mui/system/esm/memoTheme.js","../node_modules/@mui/system/esm/InitColorSchemeScript/InitColorSchemeScript.js","../node_modules/@mui/system/esm/cssVars/localStorageManager.js","../node_modules/@mui/system/esm/cssVars/useCurrentColorScheme.js","../node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js","../node_modules/@mui/system/esm/cssVars/createGetCssVar.js","../node_modules/@mui/system/esm/cssVars/cssVarsParser.js","../node_modules/@mui/system/esm/cssVars/prepareCssVars.js","../node_modules/@mui/system/esm/cssVars/getColorSchemeSelector.js","../node_modules/@mui/system/esm/Container/createContainer.js","../node_modules/@mui/system/esm/Grid/traverseBreakpoints.js","../node_modules/@mui/system/esm/Grid/gridGenerator.js","../node_modules/@mui/system/esm/Grid/deleteLegacyGridProps.js","../node_modules/@mui/system/esm/Grid/createGrid.js","../node_modules/@mui/system/esm/Stack/createStack.js","../node_modules/@mui/material/esm/colors/common.js","../node_modules/@mui/material/esm/colors/grey.js","../node_modules/@mui/material/esm/colors/purple.js","../node_modules/@mui/material/esm/colors/red.js","../node_modules/@mui/material/esm/colors/orange.js","../node_modules/@mui/material/esm/colors/blue.js","../node_modules/@mui/material/esm/colors/lightBlue.js","../node_modules/@mui/material/esm/colors/green.js","../node_modules/@mui/material/esm/styles/createPalette.js","../node_modules/@mui/system/esm/cssVars/prepareTypographyVars.js","../node_modules/@mui/material/esm/styles/createMixins.js","../node_modules/@mui/material/esm/styles/createTypography.js","../node_modules/@mui/material/esm/styles/shadows.js","../node_modules/@mui/material/esm/styles/createTransitions.js","../node_modules/@mui/material/esm/styles/zIndex.js","../node_modules/@mui/material/esm/styles/stringifyTheme.js","../node_modules/@mui/material/esm/styles/createThemeNoVars.js","../node_modules/@mui/material/esm/styles/getOverlayAlpha.js","../node_modules/@mui/material/esm/styles/createColorScheme.js","../node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.js","../node_modules/@mui/material/esm/styles/excludeVariablesFromRoot.js","../node_modules/@mui/material/esm/styles/createGetSelector.js","../node_modules/@mui/material/esm/styles/createThemeWithVars.js","../node_modules/@mui/material/esm/styles/createTheme.js","../node_modules/@mui/material/esm/styles/cssUtils.js","../node_modules/@mui/material/esm/styles/defaultTheme.js","../node_modules/@mui/material/esm/styles/useTheme.js","../node_modules/@mui/material/esm/styles/useThemeProps.js","../node_modules/@mui/material/esm/styles/slotShouldForwardProp.js","../node_modules/@mui/material/esm/styles/rootShouldForwardProp.js","../node_modules/@mui/material/esm/styles/styled.js","../node_modules/@mui/material/esm/styles/ThemeProviderNoVars.js","../node_modules/@mui/material/esm/InitColorSchemeScript/InitColorSchemeScript.js","../node_modules/@mui/material/esm/styles/ThemeProviderWithVars.js","../node_modules/@mui/material/esm/styles/ThemeProvider.js","../node_modules/@tanstack/query-core/build/modern/subscribable.js","../node_modules/@tanstack/query-core/build/modern/utils.js","../node_modules/@tanstack/query-core/build/modern/focusManager.js","../node_modules/@tanstack/query-core/build/modern/onlineManager.js","../node_modules/@tanstack/query-core/build/modern/thenable.js","../node_modules/@tanstack/query-core/build/modern/retryer.js","../node_modules/@tanstack/query-core/build/modern/notifyManager.js","../node_modules/@tanstack/query-core/build/modern/removable.js","../node_modules/@tanstack/query-core/build/modern/query.js","../node_modules/@tanstack/query-core/build/modern/queryCache.js","../node_modules/@tanstack/query-core/build/modern/mutation.js","../node_modules/@tanstack/query-core/build/modern/mutationCache.js","../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js","../node_modules/@tanstack/query-core/build/modern/queryClient.js","../node_modules/@tanstack/query-core/build/modern/queryObserver.js","../node_modules/@tanstack/query-core/build/modern/mutationObserver.js","../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js","../node_modules/@tanstack/react-query/build/modern/isRestoring.js","../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js","../node_modules/@tanstack/react-query/build/modern/utils.js","../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js","../node_modules/@tanstack/react-query/build/modern/suspense.js","../node_modules/@tanstack/react-query/build/modern/useBaseQuery.js","../node_modules/@tanstack/react-query/build/modern/useQuery.js","../node_modules/@tanstack/react-query/build/modern/useMutation.js","../node_modules/@tanstack/react-query-devtools/build/modern/index.js","../node_modules/@mui/material/esm/GlobalStyles/GlobalStyles.js","../node_modules/@mui/material/esm/zero-styled/index.js","../node_modules/@mui/material/esm/utils/memoTheme.js","../node_modules/@mui/material/esm/DefaultPropsProvider/DefaultPropsProvider.js","../node_modules/@mui/material/esm/SvgIcon/svgIconClasses.js","../node_modules/@mui/material/esm/SvgIcon/SvgIcon.js","../node_modules/@mui/material/esm/utils/createSvgIcon.js","../node_modules/@mui/material/esm/utils/mergeSlotProps.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../node_modules/dom-helpers/esm/hasClass.js","../node_modules/dom-helpers/esm/addClass.js","../node_modules/dom-helpers/esm/removeClass.js","../node_modules/react-dom/cjs/react-dom.production.js","../node_modules/react-dom/index.js","../node_modules/react-transition-group/esm/config.js","../node_modules/react-transition-group/esm/TransitionGroupContext.js","../node_modules/react-transition-group/esm/utils/reflow.js","../node_modules/react-transition-group/esm/Transition.js","../node_modules/react-transition-group/esm/CSSTransition.js","../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","../node_modules/react-transition-group/esm/utils/ChildMapping.js","../node_modules/react-transition-group/esm/TransitionGroup.js","../node_modules/@mui/material/esm/transitions/utils.js","../node_modules/@mui/material/esm/Collapse/collapseClasses.js","../node_modules/@mui/material/esm/Collapse/Collapse.js","../node_modules/@mui/material/esm/Paper/paperClasses.js","../node_modules/@mui/material/esm/Paper/Paper.js","../node_modules/@mui/material/esm/Accordion/AccordionContext.js","../node_modules/@mui/material/esm/utils/useSlot.js","../node_modules/@mui/material/esm/Accordion/accordionClasses.js","../node_modules/@mui/material/esm/Accordion/Accordion.js","../node_modules/@mui/material/esm/AccordionDetails/accordionDetailsClasses.js","../node_modules/@mui/material/esm/AccordionDetails/AccordionDetails.js","../node_modules/@mui/material/esm/useLazyRipple/useLazyRipple.js","../node_modules/@mui/material/esm/ButtonBase/Ripple.js","../node_modules/@mui/material/esm/ButtonBase/touchRippleClasses.js","../node_modules/@mui/material/esm/ButtonBase/TouchRipple.js","../node_modules/@mui/material/esm/ButtonBase/buttonBaseClasses.js","../node_modules/@mui/material/esm/ButtonBase/ButtonBase.js","../node_modules/@mui/material/esm/AccordionSummary/accordionSummaryClasses.js","../node_modules/@mui/material/esm/AccordionSummary/AccordionSummary.js","../node_modules/@mui/material/esm/utils/createSimplePaletteValueFilter.js","../node_modules/@mui/material/esm/Alert/alertClasses.js","../node_modules/@mui/material/esm/CircularProgress/circularProgressClasses.js","../node_modules/@mui/material/esm/CircularProgress/CircularProgress.js","../node_modules/@mui/material/esm/IconButton/iconButtonClasses.js","../node_modules/@mui/material/esm/IconButton/IconButton.js","../node_modules/@mui/material/esm/internal/svg-icons/SuccessOutlined.js","../node_modules/@mui/material/esm/internal/svg-icons/ReportProblemOutlined.js","../node_modules/@mui/material/esm/internal/svg-icons/ErrorOutline.js","../node_modules/@mui/material/esm/internal/svg-icons/InfoOutlined.js","../node_modules/@mui/material/esm/internal/svg-icons/Close.js","../node_modules/@mui/material/esm/Alert/Alert.js","../node_modules/@mui/material/esm/Typography/typographyClasses.js","../node_modules/@mui/material/esm/Typography/Typography.js","../node_modules/@mui/material/esm/AlertTitle/alertTitleClasses.js","../node_modules/@mui/material/esm/AlertTitle/AlertTitle.js","../node_modules/@mui/material/esm/AppBar/appBarClasses.js","../node_modules/@mui/material/esm/AppBar/AppBar.js","../node_modules/@mui/material/esm/useAutocomplete/useAutocomplete.js","../node_modules/@popperjs/core/lib/enums.js","../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../node_modules/@popperjs/core/lib/utils/math.js","../node_modules/@popperjs/core/lib/utils/userAgent.js","../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../node_modules/@popperjs/core/lib/dom-utils/contains.js","../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../node_modules/@popperjs/core/lib/utils/within.js","../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../node_modules/@popperjs/core/lib/modifiers/arrow.js","../node_modules/@popperjs/core/lib/utils/getVariation.js","../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../node_modules/@popperjs/core/lib/utils/computeOffsets.js","../node_modules/@popperjs/core/lib/utils/detectOverflow.js","../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../node_modules/@popperjs/core/lib/modifiers/flip.js","../node_modules/@popperjs/core/lib/modifiers/hide.js","../node_modules/@popperjs/core/lib/modifiers/offset.js","../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../node_modules/@popperjs/core/lib/utils/getAltAxis.js","../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../node_modules/@popperjs/core/lib/utils/orderModifiers.js","../node_modules/@popperjs/core/lib/utils/debounce.js","../node_modules/@popperjs/core/lib/utils/mergeByName.js","../node_modules/@popperjs/core/lib/createPopper.js","../node_modules/@popperjs/core/lib/popper.js","../node_modules/@mui/material/esm/Portal/Portal.js","../node_modules/@mui/material/esm/Popper/popperClasses.js","../node_modules/@mui/material/esm/Popper/BasePopper.js","../node_modules/@mui/material/esm/Popper/Popper.js","../node_modules/@mui/material/esm/ListSubheader/listSubheaderClasses.js","../node_modules/@mui/material/esm/ListSubheader/ListSubheader.js","../node_modules/@mui/material/esm/internal/svg-icons/Cancel.js","../node_modules/@mui/material/esm/Chip/chipClasses.js","../node_modules/@mui/material/esm/Chip/Chip.js","../node_modules/@mui/material/esm/TextareaAutosize/TextareaAutosize.js","../node_modules/@mui/material/esm/utils/isHostComponent.js","../node_modules/@mui/material/esm/FormControl/formControlState.js","../node_modules/@mui/material/esm/FormControl/FormControlContext.js","../node_modules/@mui/material/esm/FormControl/useFormControl.js","../node_modules/@mui/material/esm/InputBase/utils.js","../node_modules/@mui/material/esm/InputBase/inputBaseClasses.js","../node_modules/@mui/material/esm/InputBase/InputBase.js","../node_modules/@mui/material/esm/Input/inputClasses.js","../node_modules/@mui/material/esm/OutlinedInput/outlinedInputClasses.js","../node_modules/@mui/material/esm/FilledInput/filledInputClasses.js","../node_modules/@mui/material/esm/internal/svg-icons/ArrowDropDown.js","../node_modules/@mui/material/esm/Autocomplete/autocompleteClasses.js","../node_modules/@mui/material/esm/Autocomplete/Autocomplete.js","../node_modules/@mui/material/esm/internal/svg-icons/Person.js","../node_modules/@mui/material/esm/Avatar/avatarClasses.js","../node_modules/@mui/material/esm/Avatar/Avatar.js","../node_modules/@mui/material/esm/AvatarGroup/avatarGroupClasses.js","../node_modules/@mui/material/esm/AvatarGroup/AvatarGroup.js","../node_modules/@mui/material/esm/Fade/Fade.js","../node_modules/@mui/material/esm/Backdrop/backdropClasses.js","../node_modules/@mui/material/esm/Backdrop/Backdrop.js","../node_modules/@mui/material/esm/Badge/useBadge.js","../node_modules/@mui/material/esm/Badge/badgeClasses.js","../node_modules/@mui/material/esm/Badge/Badge.js","../node_modules/@mui/material/esm/Box/boxClasses.js","../node_modules/@mui/material/esm/Box/Box.js","../node_modules/@mui/material/esm/Button/buttonClasses.js","../node_modules/@mui/material/esm/ButtonGroup/ButtonGroupContext.js","../node_modules/@mui/material/esm/ButtonGroup/ButtonGroupButtonContext.js","../node_modules/@mui/material/esm/Button/Button.js","../node_modules/@mui/material/esm/ButtonGroup/buttonGroupClasses.js","../node_modules/@mui/material/esm/ButtonGroup/ButtonGroup.js","../node_modules/@mui/material/esm/Card/cardClasses.js","../node_modules/@mui/material/esm/Card/Card.js","../node_modules/@mui/material/esm/CardActionArea/cardActionAreaClasses.js","../node_modules/@mui/material/esm/CardActionArea/CardActionArea.js","../node_modules/@mui/material/esm/CardActions/cardActionsClasses.js","../node_modules/@mui/material/esm/CardActions/CardActions.js","../node_modules/@mui/material/esm/CardContent/cardContentClasses.js","../node_modules/@mui/material/esm/CardContent/CardContent.js","../node_modules/@mui/material/esm/CardHeader/cardHeaderClasses.js","../node_modules/@mui/material/esm/CardHeader/CardHeader.js","../node_modules/@mui/material/esm/CardMedia/cardMediaClasses.js","../node_modules/@mui/material/esm/CardMedia/CardMedia.js","../node_modules/@mui/material/esm/internal/switchBaseClasses.js","../node_modules/@mui/material/esm/internal/SwitchBase.js","../node_modules/@mui/material/esm/internal/svg-icons/CheckBoxOutlineBlank.js","../node_modules/@mui/material/esm/internal/svg-icons/CheckBox.js","../node_modules/@mui/material/esm/internal/svg-icons/IndeterminateCheckBox.js","../node_modules/@mui/material/esm/Checkbox/checkboxClasses.js","../node_modules/@mui/material/esm/Checkbox/Checkbox.js","../node_modules/@mui/material/esm/ClickAwayListener/ClickAwayListener.js","../node_modules/@mui/material/esm/Container/Container.js","../node_modules/@mui/material/esm/Modal/ModalManager.js","../node_modules/@mui/material/esm/Unstable_TrapFocus/FocusTrap.js","../node_modules/@mui/material/esm/Modal/useModal.js","../node_modules/@mui/material/esm/Modal/modalClasses.js","../node_modules/@mui/material/esm/Modal/Modal.js","../node_modules/@mui/material/esm/Dialog/dialogClasses.js","../node_modules/@mui/material/esm/Dialog/DialogContext.js","../node_modules/@mui/material/esm/Dialog/Dialog.js","../node_modules/@mui/material/esm/DialogActions/dialogActionsClasses.js","../node_modules/@mui/material/esm/DialogActions/DialogActions.js","../node_modules/@mui/material/esm/DialogContent/dialogContentClasses.js","../node_modules/@mui/material/esm/DialogTitle/dialogTitleClasses.js","../node_modules/@mui/material/esm/DialogContent/DialogContent.js","../node_modules/@mui/material/esm/DialogContentText/dialogContentTextClasses.js","../node_modules/@mui/material/esm/DialogContentText/DialogContentText.js","../node_modules/@mui/material/esm/DialogTitle/DialogTitle.js","../node_modules/@mui/material/esm/Divider/dividerClasses.js","../node_modules/@mui/material/esm/Divider/Divider.js","../node_modules/@mui/material/esm/Slide/Slide.js","../node_modules/@mui/material/esm/Drawer/drawerClasses.js","../node_modules/@mui/material/esm/Drawer/Drawer.js","../node_modules/@mui/material/esm/Fab/fabClasses.js","../node_modules/@mui/material/esm/Fab/Fab.js","../node_modules/@mui/material/esm/FilledInput/FilledInput.js","../node_modules/@mui/material/esm/FormControl/formControlClasses.js","../node_modules/@mui/material/esm/FormControl/FormControl.js","../node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js","../node_modules/@mui/material/esm/FormControlLabel/FormControlLabel.js","../node_modules/@mui/material/esm/FormGroup/formGroupClasses.js","../node_modules/@mui/material/esm/FormGroup/FormGroup.js","../node_modules/@mui/material/esm/FormHelperText/formHelperTextClasses.js","../node_modules/@mui/material/esm/FormHelperText/FormHelperText.js","../node_modules/@mui/material/esm/FormLabel/formLabelClasses.js","../node_modules/@mui/material/esm/FormLabel/FormLabel.js","../node_modules/@mui/material/esm/Grid/Grid.js","../node_modules/@mui/material/esm/Grow/Grow.js","../node_modules/@mui/material/esm/ImageList/imageListClasses.js","../node_modules/@mui/material/esm/ImageList/ImageListContext.js","../node_modules/@mui/material/esm/ImageList/ImageList.js","../node_modules/@mui/material/esm/ImageListItem/imageListItemClasses.js","../node_modules/@mui/material/esm/ImageListItem/ImageListItem.js","../node_modules/@mui/material/esm/ImageListItemBar/imageListItemBarClasses.js","../node_modules/@mui/material/esm/ImageListItemBar/ImageListItemBar.js","../node_modules/@mui/material/esm/Input/Input.js","../node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js","../node_modules/@mui/material/esm/InputAdornment/InputAdornment.js","../node_modules/@mui/material/esm/InputLabel/inputLabelClasses.js","../node_modules/@mui/material/esm/InputLabel/InputLabel.js","../node_modules/@mui/material/esm/LinearProgress/linearProgressClasses.js","../node_modules/@mui/material/esm/LinearProgress/LinearProgress.js","../node_modules/@mui/material/esm/List/ListContext.js","../node_modules/@mui/material/esm/List/listClasses.js","../node_modules/@mui/material/esm/List/List.js","../node_modules/@mui/material/esm/ListItem/listItemClasses.js","../node_modules/@mui/material/esm/ListItemButton/listItemButtonClasses.js","../node_modules/@mui/material/esm/ListItemButton/ListItemButton.js","../node_modules/@mui/material/esm/ListItemSecondaryAction/listItemSecondaryActionClasses.js","../node_modules/@mui/material/esm/ListItemSecondaryAction/ListItemSecondaryAction.js","../node_modules/@mui/material/esm/ListItem/ListItem.js","../node_modules/@mui/material/esm/ListItemAvatar/listItemAvatarClasses.js","../node_modules/@mui/material/esm/ListItemAvatar/ListItemAvatar.js","../node_modules/@mui/material/esm/ListItemIcon/listItemIconClasses.js","../node_modules/@mui/material/esm/ListItemIcon/ListItemIcon.js","../node_modules/@mui/material/esm/ListItemText/listItemTextClasses.js","../node_modules/@mui/material/esm/ListItemText/ListItemText.js","../node_modules/@mui/material/esm/MenuList/MenuList.js","../node_modules/@mui/material/esm/Popover/popoverClasses.js","../node_modules/@mui/material/esm/Popover/Popover.js","../node_modules/@mui/material/esm/Menu/menuClasses.js","../node_modules/@mui/material/esm/Menu/Menu.js","../node_modules/@mui/material/esm/MenuItem/menuItemClasses.js","../node_modules/@mui/material/esm/MenuItem/MenuItem.js","../node_modules/@mui/material/esm/NativeSelect/nativeSelectClasses.js","../node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.js","../node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.js","../node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.js","../node_modules/@mui/material/esm/Pagination/paginationClasses.js","../node_modules/@mui/material/esm/usePagination/usePagination.js","../node_modules/@mui/material/esm/PaginationItem/paginationItemClasses.js","../node_modules/@mui/material/esm/internal/svg-icons/FirstPage.js","../node_modules/@mui/material/esm/internal/svg-icons/LastPage.js","../node_modules/@mui/material/esm/internal/svg-icons/NavigateBefore.js","../node_modules/@mui/material/esm/internal/svg-icons/NavigateNext.js","../node_modules/@mui/material/esm/PaginationItem/PaginationItem.js","../node_modules/@mui/material/esm/Pagination/Pagination.js","../node_modules/@mui/material/esm/Select/selectClasses.js","../node_modules/@mui/material/esm/Select/SelectInput.js","../node_modules/@mui/material/esm/Select/Select.js","../node_modules/@mui/material/esm/Skeleton/skeletonClasses.js","../node_modules/@mui/material/esm/Skeleton/Skeleton.js","../node_modules/@mui/material/esm/Snackbar/useSnackbar.js","../node_modules/@mui/material/esm/SnackbarContent/snackbarContentClasses.js","../node_modules/@mui/material/esm/SnackbarContent/SnackbarContent.js","../node_modules/@mui/material/esm/Snackbar/snackbarClasses.js","../node_modules/@mui/material/esm/Snackbar/Snackbar.js","../node_modules/@mui/material/esm/Tooltip/tooltipClasses.js","../node_modules/@mui/material/esm/Tooltip/Tooltip.js","../node_modules/@mui/material/esm/Stack/Stack.js","../node_modules/@mui/material/esm/Stepper/StepperContext.js","../node_modules/@mui/material/esm/Step/StepContext.js","../node_modules/@mui/material/esm/Step/stepClasses.js","../node_modules/@mui/material/esm/Step/Step.js","../node_modules/@mui/material/esm/internal/svg-icons/CheckCircle.js","../node_modules/@mui/material/esm/internal/svg-icons/Warning.js","../node_modules/@mui/material/esm/StepIcon/stepIconClasses.js","../node_modules/@mui/material/esm/StepIcon/StepIcon.js","../node_modules/@mui/material/esm/StepLabel/stepLabelClasses.js","../node_modules/@mui/material/esm/StepLabel/StepLabel.js","../node_modules/@mui/material/esm/StepConnector/stepConnectorClasses.js","../node_modules/@mui/material/esm/StepConnector/StepConnector.js","../node_modules/@mui/material/esm/StepContent/stepContentClasses.js","../node_modules/@mui/material/esm/StepContent/StepContent.js","../node_modules/@mui/material/esm/Stepper/stepperClasses.js","../node_modules/@mui/material/esm/Stepper/Stepper.js","../node_modules/@mui/material/esm/Switch/switchClasses.js","../node_modules/@mui/material/esm/Switch/Switch.js","../node_modules/@mui/material/esm/Tab/tabClasses.js","../node_modules/@mui/material/esm/Tab/Tab.js","../node_modules/@mui/material/esm/Table/TableContext.js","../node_modules/@mui/material/esm/Table/tableClasses.js","../node_modules/@mui/material/esm/Table/Table.js","../node_modules/@mui/material/esm/Table/Tablelvl2Context.js","../node_modules/@mui/material/esm/TableBody/tableBodyClasses.js","../node_modules/@mui/material/esm/TableBody/TableBody.js","../node_modules/@mui/material/esm/TableCell/tableCellClasses.js","../node_modules/@mui/material/esm/TableCell/TableCell.js","../node_modules/@mui/material/esm/TableContainer/tableContainerClasses.js","../node_modules/@mui/material/esm/TableContainer/TableContainer.js","../node_modules/@mui/material/esm/TableHead/tableHeadClasses.js","../node_modules/@mui/material/esm/TableHead/TableHead.js","../node_modules/@mui/material/esm/Toolbar/toolbarClasses.js","../node_modules/@mui/material/esm/Toolbar/Toolbar.js","../node_modules/@mui/material/esm/internal/svg-icons/KeyboardArrowLeft.js","../node_modules/@mui/material/esm/internal/svg-icons/KeyboardArrowRight.js","../node_modules/@mui/material/esm/TablePagination/TablePaginationActions.js","../node_modules/@mui/material/esm/TablePagination/tablePaginationClasses.js","../node_modules/@mui/material/esm/TablePagination/TablePagination.js","../node_modules/@mui/material/esm/TableRow/tableRowClasses.js","../node_modules/@mui/material/esm/TableRow/TableRow.js","../node_modules/@mui/material/esm/internal/animate.js","../node_modules/@mui/material/esm/Tabs/ScrollbarSize.js","../node_modules/@mui/material/esm/TabScrollButton/tabScrollButtonClasses.js","../node_modules/@mui/material/esm/TabScrollButton/TabScrollButton.js","../node_modules/@mui/material/esm/Tabs/tabsClasses.js","../node_modules/@mui/material/esm/Tabs/Tabs.js","../node_modules/@mui/material/esm/TextField/textFieldClasses.js","../node_modules/@mui/material/esm/TextField/TextField.js","../node_modules/@mui/material/esm/ToggleButton/toggleButtonClasses.js","../node_modules/@mui/material/esm/ToggleButtonGroup/ToggleButtonGroupContext.js","../node_modules/@mui/material/esm/ToggleButtonGroup/ToggleButtonGroupButtonContext.js","../node_modules/@mui/material/esm/ToggleButtonGroup/isValueSelected.js","../node_modules/@mui/material/esm/ToggleButton/ToggleButton.js","../node_modules/@mui/material/esm/ToggleButtonGroup/toggleButtonGroupClasses.js","../node_modules/@mui/material/esm/ToggleButtonGroup/ToggleButtonGroup.js","../node_modules/@mui/material/esm/useMediaQuery/index.js","../node_modules/react-i18next/dist/es/utils.js","../node_modules/react-i18next/dist/es/unescape.js","../node_modules/react-i18next/dist/es/defaults.js","../node_modules/react-i18next/dist/es/i18nInstance.js","../node_modules/react-i18next/dist/es/initReactI18next.js","../node_modules/react-i18next/dist/es/context.js","../node_modules/react-i18next/dist/es/useTranslation.js","../src/components/Core/LoadingWidget/LoadingWidget.tsx","../node_modules/@mui/icons-material/esm/ExpandLess.js","../node_modules/@mui/icons-material/esm/ExpandMore.js","../node_modules/@mui/icons-material/esm/HistoryEdu.js","../node_modules/@mui/icons-material/esm/Photo.js","../node_modules/@mui/icons-material/esm/Close.js","../src/components/Core/Modals/WgerModal.tsx","../src/components/Core/Widgets/OverviewEmpty.tsx","../src/components/Dashboard/EmptyCard.tsx","../node_modules/axios/lib/helpers/bind.js","../node_modules/axios/lib/utils.js","../node_modules/axios/lib/core/AxiosError.js","../node_modules/axios/lib/helpers/null.js","../node_modules/axios/lib/helpers/toFormData.js","../node_modules/axios/lib/helpers/AxiosURLSearchParams.js","../node_modules/axios/lib/helpers/buildURL.js","../node_modules/axios/lib/core/InterceptorManager.js","../node_modules/axios/lib/defaults/transitional.js","../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","../node_modules/axios/lib/platform/browser/classes/FormData.js","../node_modules/axios/lib/platform/browser/classes/Blob.js","../node_modules/axios/lib/platform/browser/index.js","../node_modules/axios/lib/platform/common/utils.js","../node_modules/axios/lib/platform/index.js","../node_modules/axios/lib/helpers/toURLEncodedForm.js","../node_modules/axios/lib/helpers/formDataToJSON.js","../node_modules/axios/lib/defaults/index.js","../node_modules/axios/lib/helpers/parseHeaders.js","../node_modules/axios/lib/core/AxiosHeaders.js","../node_modules/axios/lib/core/transformData.js","../node_modules/axios/lib/cancel/isCancel.js","../node_modules/axios/lib/cancel/CanceledError.js","../node_modules/axios/lib/core/settle.js","../node_modules/axios/lib/helpers/parseProtocol.js","../node_modules/axios/lib/helpers/speedometer.js","../node_modules/axios/lib/helpers/throttle.js","../node_modules/axios/lib/helpers/progressEventReducer.js","../node_modules/axios/lib/helpers/isURLSameOrigin.js","../node_modules/axios/lib/helpers/cookies.js","../node_modules/axios/lib/helpers/isAbsoluteURL.js","../node_modules/axios/lib/helpers/combineURLs.js","../node_modules/axios/lib/core/buildFullPath.js","../node_modules/axios/lib/core/mergeConfig.js","../node_modules/axios/lib/helpers/resolveConfig.js","../node_modules/axios/lib/adapters/xhr.js","../node_modules/axios/lib/helpers/composeSignals.js","../node_modules/axios/lib/helpers/trackStream.js","../node_modules/axios/lib/adapters/fetch.js","../node_modules/axios/lib/adapters/adapters.js","../node_modules/axios/lib/core/dispatchRequest.js","../node_modules/axios/lib/env/data.js","../node_modules/axios/lib/helpers/validator.js","../node_modules/axios/lib/core/Axios.js","../node_modules/axios/lib/cancel/CancelToken.js","../node_modules/axios/lib/helpers/spread.js","../node_modules/axios/lib/helpers/isAxiosError.js","../node_modules/axios/lib/helpers/HttpStatusCode.js","../node_modules/axios/lib/axios.js","../node_modules/axios/index.js","../src/components/Nutrition/helpers/nutritionalValues.ts","../node_modules/i18next/dist/esm/i18next.js","../src/utils/date.ts","../src/components/Nutrition/models/meal.ts","../src/components/Nutrition/models/nutritionalPlan.ts","../src/components/BodyWeight/model.ts","../src/config.ts","../node_modules/slug/slug.js","../src/utils/url.ts","../src/services/weight.ts","../src/utils/strings.ts","../src/components/Exercises/models/muscle.ts","../src/services/muscles.ts","../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js","../node_modules/i18next-http-backend/esm/utils.js","../node_modules/i18next-http-backend/esm/request.js","../node_modules/i18next-http-backend/esm/index.js","../src/i18n.ts","../src/components/Exercises/models/equipment.ts","../src/services/equipment.ts","../src/components/Exercises/models/category.ts","../src/services/category.ts","../src/components/Exercises/models/image.ts","../src/components/Exercises/models/alias.ts","../src/components/Exercises/models/note.ts","../src/components/Exercises/models/translation.ts","../src/components/Exercises/models/video.ts","../src/components/Exercises/models/language.ts","../src/utils/consts.ts","../src/components/Exercises/models/exercise.ts","../src/services/exercise.ts","../src/services/exerciseTranslation.ts","../src/services/language.ts","../src/services/image.ts","../src/services/alias.ts","../src/services/video.ts","../src/components/WorkoutRoutines/models/BaseConfig.ts","../src/components/WorkoutRoutines/models/SlotEntry.ts","../src/components/WorkoutRoutines/models/Slot.ts","../src/components/WorkoutRoutines/models/Day.ts","../src/components/WorkoutRoutines/models/LogStats.ts","../node_modules/luxon/build/es6/luxon.mjs","../src/components/WorkoutRoutines/models/Routine.ts","../src/components/WorkoutRoutines/models/SetConfigData.ts","../src/components/WorkoutRoutines/models/SlotData.ts","../src/components/WorkoutRoutines/models/RoutineDayData.ts","../src/components/WorkoutRoutines/models/WorkoutLog.ts","../src/components/WorkoutRoutines/models/WorkoutSession.ts","../src/components/WorkoutRoutines/models/RoutineLogData.ts","../src/components/WorkoutRoutines/models/RepetitionUnit.ts","../src/components/WorkoutRoutines/models/WeightUnit.ts","../src/services/workoutUnits.ts","../src/services/routine.ts","../src/components/Measurements/models/Category.ts","../src/components/Measurements/models/Entry.ts","../src/utils/requests.ts","../src/services/measurements.ts","../src/components/Nutrition/models/IngredientImage.ts","../src/components/Nutrition/models/IngredientImageThumbnails.ts","../src/components/Nutrition/models/Ingredient.ts","../node_modules/lodash/lodash.js","../src/services/ingredient.ts","../src/components/Nutrition/models/diaryEntry.ts","../src/components/Nutrition/models/mealItem.ts","../src/services/mealItem.ts","../src/components/Nutrition/models/weightUnit.ts","../src/services/ingredientweightunit.ts","../src/services/meal.ts","../src/services/workoutLogs.ts","../src/services/slot_entry.ts","../src/services/day.ts","../src/services/slot.ts","../src/services/base_config.ts","../src/services/config.ts","../src/services/session.ts","../src/services/nutritionalDiary.ts","../src/components/User/models/profile.ts","../src/services/profile.ts","../src/services/languageCheck.ts","../src/services/nutritionalPlan.ts","../src/components/Nutrition/queries/plan.ts","../src/components/Nutrition/queries/diary.ts","../src/components/Nutrition/queries/meal.ts","../src/components/Nutrition/queries/mealItem.ts","../src/utils/numbers.ts","../src/components/Nutrition/widgets/charts/LinearPlannedLoggedChart.tsx","../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js","../node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js","../node_modules/es-toolkit/dist/compat/_internal/toKey.js","../node_modules/es-toolkit/dist/compat/util/toPath.js","../node_modules/es-toolkit/dist/compat/object/get.js","../node_modules/es-toolkit/compat/get.js","../node_modules/react-is/cjs/react-is.production.js","../node_modules/react-is/index.js","../node_modules/recharts/es6/util/DataUtils.js","../node_modules/recharts/es6/util/excludeEventProps.js","../node_modules/recharts/es6/util/types.js","../node_modules/recharts/es6/util/svgPropertiesNoEvents.js","../node_modules/recharts/es6/util/ReactUtils.js","../node_modules/recharts/es6/container/Surface.js","../node_modules/recharts/es6/container/Layer.js","../node_modules/recharts/es6/context/legendPortalContext.js","../node_modules/d3-shape/src/constant.js","../node_modules/d3-shape/src/math.js","../node_modules/d3-path/src/path.js","../node_modules/d3-shape/src/path.js","../node_modules/d3-shape/src/array.js","../node_modules/d3-shape/src/curve/linear.js","../node_modules/d3-shape/src/point.js","../node_modules/d3-shape/src/line.js","../node_modules/d3-shape/src/area.js","../node_modules/d3-shape/src/curve/bump.js","../node_modules/d3-shape/src/symbol/circle.js","../node_modules/d3-shape/src/symbol/cross.js","../node_modules/d3-shape/src/symbol/diamond.js","../node_modules/d3-shape/src/symbol/square.js","../node_modules/d3-shape/src/symbol/star.js","../node_modules/d3-shape/src/symbol/triangle.js","../node_modules/d3-shape/src/symbol/wye.js","../node_modules/d3-shape/src/symbol.js","../node_modules/d3-shape/src/noop.js","../node_modules/d3-shape/src/curve/basis.js","../node_modules/d3-shape/src/curve/basisClosed.js","../node_modules/d3-shape/src/curve/basisOpen.js","../node_modules/d3-shape/src/curve/linearClosed.js","../node_modules/d3-shape/src/curve/monotone.js","../node_modules/d3-shape/src/curve/natural.js","../node_modules/d3-shape/src/curve/step.js","../node_modules/d3-shape/src/offset/none.js","../node_modules/d3-shape/src/order/none.js","../node_modules/d3-shape/src/stack.js","../node_modules/d3-shape/src/offset/expand.js","../node_modules/d3-shape/src/offset/silhouette.js","../node_modules/d3-shape/src/offset/wiggle.js","../node_modules/recharts/es6/shape/Symbols.js","../node_modules/recharts/es6/component/DefaultLegendContent.js","../node_modules/es-toolkit/dist/array/uniqBy.js","../node_modules/es-toolkit/dist/function/identity.js","../node_modules/es-toolkit/dist/predicate/isLength.js","../node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js","../node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js","../node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js","../node_modules/es-toolkit/dist/compat/object/property.js","../node_modules/es-toolkit/dist/compat/predicate/isObject.js","../node_modules/es-toolkit/dist/predicate/isPrimitive.js","../node_modules/es-toolkit/dist/compat/util/eq.js","../node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js","../node_modules/es-toolkit/dist/compat/predicate/isMatch.js","../node_modules/es-toolkit/dist/compat/_internal/getSymbols.js","../node_modules/es-toolkit/dist/compat/_internal/getTag.js","../node_modules/es-toolkit/dist/compat/_internal/tags.js","../node_modules/es-toolkit/dist/predicate/isTypedArray.js","../node_modules/es-toolkit/dist/object/cloneDeepWith.js","../node_modules/es-toolkit/dist/object/cloneDeep.js","../node_modules/es-toolkit/dist/compat/predicate/matches.js","../node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js","../node_modules/es-toolkit/dist/compat/object/cloneDeep.js","../node_modules/es-toolkit/dist/compat/_internal/isIndex.js","../node_modules/es-toolkit/dist/compat/predicate/isArguments.js","../node_modules/es-toolkit/dist/compat/object/has.js","../node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js","../node_modules/es-toolkit/dist/compat/util/iteratee.js","../node_modules/es-toolkit/dist/compat/array/uniqBy.js","../node_modules/es-toolkit/compat/uniqBy.js","../node_modules/recharts/es6/util/payload/getUniqPayload.js","../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../node_modules/use-sync-external-store/shim/index.js","../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js","../node_modules/use-sync-external-store/shim/with-selector.js","../node_modules/recharts/es6/state/RechartsReduxContext.js","../node_modules/recharts/es6/state/hooks.js","../node_modules/reselect/dist/reselect.mjs","../node_modules/es-toolkit/dist/compat/_internal/compareValues.js","../node_modules/es-toolkit/dist/compat/predicate/isSymbol.js","../node_modules/es-toolkit/dist/compat/_internal/isKey.js","../node_modules/es-toolkit/dist/compat/array/orderBy.js","../node_modules/es-toolkit/dist/array/flatten.js","../node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js","../node_modules/es-toolkit/dist/compat/array/sortBy.js","../node_modules/es-toolkit/compat/sortBy.js","../node_modules/recharts/es6/state/selectors/legendSelectors.js","../node_modules/recharts/es6/context/legendPayloadContext.js","../node_modules/recharts/es6/util/useElementOffset.js","../node_modules/redux/dist/redux.mjs","../node_modules/immer/dist/immer.mjs","../node_modules/redux-thunk/dist/redux-thunk.mjs","../node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.mjs","../node_modules/recharts/es6/state/layoutSlice.js","../node_modules/recharts/es6/util/PolarUtils.js","../node_modules/recharts/es6/util/getSliced.js","../node_modules/recharts/es6/util/ChartUtils.js","../node_modules/recharts/es6/state/selectors/containerSelectors.js","../node_modules/recharts/es6/state/selectors/selectAllAxes.js","../node_modules/recharts/es6/util/Constants.js","../node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js","../node_modules/recharts/es6/context/PanoramaContext.js","../node_modules/recharts/es6/state/selectors/brushSelectors.js","../node_modules/recharts/es6/context/chartLayoutContext.js","../node_modules/recharts/es6/state/legendSlice.js","../node_modules/recharts/es6/component/Legend.js","../node_modules/recharts/es6/component/DefaultTooltipContent.js","../node_modules/recharts/es6/util/tooltip/translate.js","../node_modules/recharts/es6/component/TooltipBoundingBox.js","../node_modules/recharts/es6/util/Global.js","../node_modules/recharts/es6/context/accessibilityContext.js","../node_modules/recharts/es6/util/isWellBehavedNumber.js","../node_modules/recharts/es6/shape/Curve.js","../node_modules/recharts/es6/shape/Cross.js","../node_modules/recharts/es6/util/cursor/getCursorRectangle.js","../node_modules/recharts/es6/util/resolveDefaultProps.js","../node_modules/es-toolkit/dist/function/noop.mjs","../node_modules/recharts/es6/animation/util.js","../node_modules/recharts/es6/animation/configUpdate.js","../node_modules/recharts/es6/animation/easing.js","../node_modules/recharts/es6/animation/AnimationManager.js","../node_modules/recharts/es6/animation/timeoutController.js","../node_modules/recharts/es6/animation/createDefaultAnimationManager.js","../node_modules/recharts/es6/animation/useAnimationManager.js","../node_modules/recharts/es6/animation/JavascriptAnimate.js","../node_modules/recharts/es6/util/useAnimationId.js","../node_modules/recharts/es6/shape/Rectangle.js","../node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js","../node_modules/recharts/es6/shape/Sector.js","../node_modules/recharts/es6/util/cursor/getCursorPoints.js","../node_modules/es-toolkit/dist/compat/util/toNumber.js","../node_modules/es-toolkit/dist/compat/util/toFinite.js","../node_modules/es-toolkit/dist/compat/math/range.js","../node_modules/es-toolkit/compat/range.js","../node_modules/d3-array/src/ascending.js","../node_modules/d3-array/src/descending.js","../node_modules/d3-array/src/bisector.js","../node_modules/d3-array/src/number.js","../node_modules/d3-array/src/bisect.js","../node_modules/internmap/src/index.js","../node_modules/d3-array/src/sort.js","../node_modules/d3-array/src/ticks.js","../node_modules/d3-array/src/max.js","../node_modules/d3-array/src/min.js","../node_modules/d3-array/src/quickselect.js","../node_modules/d3-array/src/quantile.js","../node_modules/d3-array/src/range.js","../node_modules/d3-scale/src/init.js","../node_modules/d3-scale/src/ordinal.js","../node_modules/d3-scale/src/band.js","../node_modules/d3-color/src/define.js","../node_modules/d3-color/src/color.js","../node_modules/d3-interpolate/src/constant.js","../node_modules/d3-interpolate/src/color.js","../node_modules/d3-interpolate/src/rgb.js","../node_modules/d3-interpolate/src/numberArray.js","../node_modules/d3-interpolate/src/array.js","../node_modules/d3-interpolate/src/date.js","../node_modules/d3-interpolate/src/number.js","../node_modules/d3-interpolate/src/object.js","../node_modules/d3-interpolate/src/string.js","../node_modules/d3-interpolate/src/value.js","../node_modules/d3-interpolate/src/round.js","../node_modules/d3-interpolate/src/piecewise.js","../node_modules/d3-scale/src/constant.js","../node_modules/d3-scale/src/number.js","../node_modules/d3-scale/src/continuous.js","../node_modules/d3-format/src/formatDecimal.js","../node_modules/d3-format/src/exponent.js","../node_modules/d3-format/src/formatGroup.js","../node_modules/d3-format/src/formatNumerals.js","../node_modules/d3-format/src/formatSpecifier.js","../node_modules/d3-format/src/formatTrim.js","../node_modules/d3-format/src/formatPrefixAuto.js","../node_modules/d3-format/src/formatRounded.js","../node_modules/d3-format/src/formatTypes.js","../node_modules/d3-format/src/identity.js","../node_modules/d3-format/src/locale.js","../node_modules/d3-format/src/defaultLocale.js","../node_modules/d3-format/src/precisionFixed.js","../node_modules/d3-format/src/precisionPrefix.js","../node_modules/d3-format/src/precisionRound.js","../node_modules/d3-scale/src/tickFormat.js","../node_modules/d3-scale/src/linear.js","../node_modules/d3-scale/src/identity.js","../node_modules/d3-scale/src/nice.js","../node_modules/d3-scale/src/log.js","../node_modules/d3-scale/src/symlog.js","../node_modules/d3-scale/src/pow.js","../node_modules/d3-scale/src/radial.js","../node_modules/d3-scale/src/quantile.js","../node_modules/d3-scale/src/quantize.js","../node_modules/d3-scale/src/threshold.js","../node_modules/d3-time/src/interval.js","../node_modules/d3-time/src/millisecond.js","../node_modules/d3-time/src/duration.js","../node_modules/d3-time/src/second.js","../node_modules/d3-time/src/minute.js","../node_modules/d3-time/src/hour.js","../node_modules/d3-time/src/day.js","../node_modules/d3-time/src/week.js","../node_modules/d3-time/src/month.js","../node_modules/d3-time/src/year.js","../node_modules/d3-time/src/ticks.js","../node_modules/d3-time-format/src/locale.js","../node_modules/d3-time-format/src/defaultLocale.js","../node_modules/d3-scale/src/time.js","../node_modules/d3-scale/src/utcTime.js","../node_modules/d3-scale/src/sequential.js","../node_modules/d3-scale/src/sequentialQuantile.js","../node_modules/d3-scale/src/diverging.js","../node_modules/recharts/es6/state/selectors/dataSelectors.js","../node_modules/recharts/es6/util/isDomainSpecifiedByUser.js","../node_modules/decimal.js-light/decimal.mjs","../node_modules/recharts/es6/util/scale/util/utils.js","../node_modules/recharts/es6/util/scale/util/arithmetic.js","../node_modules/recharts/es6/util/scale/getNiceTickValues.js","../node_modules/recharts/es6/state/selectors/rootPropsSelectors.js","../node_modules/recharts/es6/polar/defaultPolarAngleAxisProps.js","../node_modules/recharts/es6/polar/defaultPolarRadiusAxisProps.js","../node_modules/recharts/es6/state/selectors/combiners/combineAxisRangeWithReverse.js","../node_modules/recharts/es6/state/selectors/polarAxisSelectors.js","../node_modules/recharts/es6/state/selectors/pickAxisType.js","../node_modules/recharts/es6/state/selectors/pickAxisId.js","../node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js","../node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js","../node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js","../node_modules/recharts/es6/state/selectors/selectTooltipAxis.js","../node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js","../node_modules/recharts/es6/state/types/StackedGraphicalItem.js","../node_modules/recharts/es6/state/selectors/axisSelectors.js","../node_modules/recharts/es6/state/selectors/selectTooltipEventType.js","../node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js","../node_modules/recharts/es6/state/selectors/selectTooltipSettings.js","../node_modules/recharts/es6/state/tooltipSlice.js","../node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js","../node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js","../node_modules/recharts/es6/state/selectors/combiners/combineCoordinateForDefaultIndex.js","../node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayloadConfigurations.js","../node_modules/recharts/es6/state/selectors/selectTooltipPayloadSearcher.js","../node_modules/recharts/es6/state/selectors/selectTooltipState.js","../node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js","../node_modules/recharts/es6/state/selectors/tooltipSelectors.js","../node_modules/recharts/es6/context/useTooltipAxis.js","../node_modules/recharts/es6/state/selectors/selectors.js","../node_modules/recharts/es6/component/Cursor.js","../node_modules/recharts/es6/context/tooltipPortalContext.js","../node_modules/eventemitter3/index.js","../node_modules/recharts/es6/util/Events.js","../node_modules/recharts/es6/state/optionsSlice.js","../node_modules/recharts/es6/synchronisation/syncSelectors.js","../node_modules/recharts/es6/state/chartDataSlice.js","../node_modules/recharts/es6/synchronisation/useChartSynchronisation.js","../node_modules/recharts/es6/component/Tooltip.js","../node_modules/es-toolkit/dist/function/debounce.js","../node_modules/es-toolkit/dist/compat/function/debounce.js","../node_modules/es-toolkit/dist/compat/function/throttle.js","../node_modules/es-toolkit/compat/throttle.js","../node_modules/recharts/es6/util/LogUtils.js","../node_modules/recharts/es6/component/ResponsiveContainer.js","../node_modules/recharts/es6/component/Cell.js","../node_modules/recharts/es6/util/LRUCache.js","../node_modules/recharts/es6/util/DOMUtils.js","../node_modules/recharts/es6/util/ReduceCSSCalc.js","../node_modules/recharts/es6/component/Text.js","../node_modules/recharts/es6/component/Label.js","../node_modules/es-toolkit/dist/array/last.js","../node_modules/es-toolkit/dist/compat/_internal/toArray.js","../node_modules/es-toolkit/dist/compat/array/last.js","../node_modules/es-toolkit/compat/last.js","../node_modules/recharts/es6/component/LabelList.js","../node_modules/recharts/es6/shape/Dot.js","../node_modules/recharts/es6/state/selectors/polarSelectors.js","../node_modules/recharts/es6/state/polarAxisSlice.js","../node_modules/recharts/es6/state/selectors/pieSelectors.js","../node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js","../node_modules/es-toolkit/compat/isPlainObject.js","../node_modules/recharts/es6/shape/Trapezoid.js","../node_modules/recharts/es6/util/ActiveShapeUtils.js","../node_modules/recharts/es6/context/tooltipContext.js","../node_modules/recharts/es6/state/SetTooltipEntrySettings.js","../node_modules/recharts/es6/state/SetLegendPayload.js","../node_modules/recharts/es6/util/useId.js","../node_modules/recharts/es6/util/useUniqueId.js","../node_modules/recharts/es6/context/RegisterGraphicalItemId.js","../node_modules/recharts/es6/state/graphicalItemsSlice.js","../node_modules/recharts/es6/state/SetGraphicalItem.js","../node_modules/recharts/es6/polar/Pie.js","../node_modules/recharts/es6/state/cartesianAxisSlice.js","../node_modules/recharts/es6/state/selectors/selectChartOffset.js","../node_modules/recharts/es6/state/selectors/selectPlotArea.js","../node_modules/recharts/es6/hooks.js","../node_modules/recharts/es6/component/ActivePoints.js","../node_modules/tiny-invariant/dist/esm/tiny-invariant.js","../node_modules/recharts/es6/util/BarUtils.js","../node_modules/recharts/es6/state/errorBarSlice.js","../node_modules/recharts/es6/context/ErrorBarContext.js","../node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js","../node_modules/recharts/es6/cartesian/Bar.js","../node_modules/recharts/es6/state/selectors/barSelectors.js","../node_modules/recharts/es6/context/chartDataContext.js","../node_modules/recharts/es6/state/brushSlice.js","../node_modules/recharts/es6/util/CartesianUtils.js","../node_modules/recharts/es6/state/referenceElementsSlice.js","../node_modules/recharts/es6/container/ClipPathProvider.js","../node_modules/recharts/es6/cartesian/ReferenceDot.js","../node_modules/recharts/es6/util/ShallowEqual.js","../node_modules/recharts/es6/util/getEveryNthWithCondition.js","../node_modules/recharts/es6/util/TickUtils.js","../node_modules/recharts/es6/cartesian/getEquidistantTicks.js","../node_modules/recharts/es6/cartesian/getTicks.js","../node_modules/recharts/es6/util/YAxisUtils.js","../node_modules/recharts/es6/cartesian/CartesianAxis.js","../node_modules/recharts/es6/cartesian/CartesianGrid.js","../node_modules/recharts/es6/state/selectors/lineSelectors.js","../node_modules/recharts/es6/cartesian/Line.js","../node_modules/recharts/es6/state/selectors/areaSelectors.js","../node_modules/recharts/es6/cartesian/Area.js","../node_modules/recharts/es6/cartesian/ZAxis.js","../node_modules/recharts/es6/util/ScatterUtils.js","../node_modules/recharts/es6/state/selectors/scatterSelectors.js","../node_modules/recharts/es6/cartesian/Scatter.js","../node_modules/recharts/es6/cartesian/XAxis.js","../node_modules/recharts/es6/cartesian/YAxis.js","../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js","../node_modules/use-sync-external-store/with-selector.js","../node_modules/react-redux/dist/react-redux.mjs","../node_modules/recharts/es6/state/selectors/selectActivePropsFromChartPointer.js","../node_modules/recharts/es6/util/getChartPointer.js","../node_modules/recharts/es6/state/mouseEventsMiddleware.js","../node_modules/recharts/es6/state/rootPropsSlice.js","../node_modules/recharts/es6/state/polarOptionsSlice.js","../node_modules/recharts/es6/state/keyboardEventsMiddleware.js","../node_modules/recharts/es6/state/externalEventsMiddleware.js","../node_modules/recharts/es6/state/selectors/touchSelectors.js","../node_modules/recharts/es6/state/touchEventsMiddleware.js","../node_modules/recharts/es6/state/store.js","../node_modules/recharts/es6/state/RechartsStoreProvider.js","../node_modules/recharts/es6/state/ReportMainChartProps.js","../node_modules/recharts/es6/state/ReportChartProps.js","../node_modules/recharts/es6/container/RootSurface.js","../node_modules/recharts/es6/util/useReportScale.js","../node_modules/recharts/es6/chart/RechartsWrapper.js","../node_modules/recharts/es6/chart/CategoricalChart.js","../node_modules/recharts/es6/chart/CartesianChart.js","../node_modules/recharts/es6/chart/LineChart.js","../node_modules/recharts/es6/chart/BarChart.js","../node_modules/recharts/es6/state/ReportPolarOptions.js","../node_modules/recharts/es6/chart/PolarChart.js","../node_modules/recharts/es6/chart/PieChart.js","../node_modules/recharts/es6/chart/ScatterChart.js","../node_modules/recharts/es6/chart/AreaChart.js","../src/components/Nutrition/widgets/charts/NutritionalValuesDashboardChart.tsx","../node_modules/@mui/x-date-pickers/esm/LocalizationProvider/LocalizationProvider.js","../node_modules/@mui/x-date-pickers/esm/locales/utils/getPickersLocalization.js","../node_modules/@mui/x-date-pickers/esm/locales/enUS.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useUtils.js","../node_modules/@mui/x-date-pickers/esm/hooks/usePickerTranslations.js","../node_modules/@mui/x-date-pickers/esm/icons/index.js","../node_modules/@mui/x-date-pickers/esm/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.js","../node_modules/@mui/x-date-pickers/esm/hooks/useIsValidValue.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useNullableFieldPrivateContext.js","../node_modules/@mui/x-date-pickers/esm/hooks/usePickerContext.js","../node_modules/@mui/x-date-pickers/esm/internals/components/PickerProvider.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/usePickerPrivateContext.js","../node_modules/@mui/x-date-pickers/esm/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js","../node_modules/@mui/x-date-pickers/esm/internals/utils/views.js","../node_modules/@mui/x-date-pickers/esm/internals/utils/time-utils.js","../node_modules/@mui/x-date-pickers/esm/internals/utils/createStepNavigation.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useViews.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/date-helpers-hooks.js","../node_modules/@mui/x-date-pickers/esm/internals/constants/dimensions.js","../node_modules/@mui/x-date-pickers/esm/internals/components/PickerViewRoot/PickerViewRoot.js","../node_modules/@mui/x-date-pickers/esm/TimeClock/timeClockClasses.js","../node_modules/@mui/x-date-pickers/esm/TimeClock/shared.js","../node_modules/@mui/x-date-pickers/esm/TimeClock/clockPointerClasses.js","../node_modules/@mui/x-date-pickers/esm/TimeClock/ClockPointer.js","../node_modules/@mui/x-date-pickers/esm/TimeClock/clockClasses.js","../node_modules/@mui/x-date-pickers/esm/internals/utils/date-utils.js","../node_modules/@mui/x-date-pickers/esm/TimeClock/Clock.js","../node_modules/@mui/x-date-pickers/esm/TimeClock/clockNumberClasses.js","../node_modules/@mui/x-date-pickers/esm/TimeClock/ClockNumber.js","../node_modules/@mui/x-date-pickers/esm/TimeClock/ClockNumbers.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useControlledValue.js","../node_modules/@mui/x-date-pickers/esm/internals/utils/getDefaultReferenceDate.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useField/useField.utils.js","../node_modules/@mui/x-date-pickers/esm/internals/utils/valueManagers.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useClockReferenceDate.js","../node_modules/@mui/x-date-pickers/esm/TimeClock/TimeClock.js","../node_modules/@mui/x-date-pickers/esm/DigitalClock/digitalClockClasses.js","../node_modules/@mui/x-date-pickers/esm/internals/utils/utils.js","../node_modules/@mui/x-date-pickers/esm/DigitalClock/DigitalClock.js","../node_modules/@mui/x-date-pickers/esm/MultiSectionDigitalClock/multiSectionDigitalClockClasses.js","../node_modules/@mui/x-date-pickers/esm/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js","../node_modules/@mui/x-date-pickers/esm/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js","../node_modules/@mui/x-date-pickers/esm/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js","../node_modules/@mui/x-date-pickers/esm/MultiSectionDigitalClock/MultiSectionDigitalClock.js","../node_modules/@mui/x-date-pickers/esm/PickersDay/pickersDayClasses.js","../node_modules/@mui/x-date-pickers/esm/PickersDay/usePickerDayOwnerState.js","../node_modules/@mui/x-date-pickers/esm/PickersDay/PickersDay.js","../node_modules/@mui/x-date-pickers/esm/validation/extractValidationProps.js","../node_modules/@mui/x-date-pickers/esm/hooks/useSplitFieldProps.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useField/buildSectionsFromFormat.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useNullablePickerContext.js","../node_modules/@mui/x-date-pickers/esm/hooks/usePickerActionsContext.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useField/useFieldCharacterEditing.js","../node_modules/@mui/x-date-pickers/esm/validation/validateDate.js","../node_modules/@mui/x-date-pickers/esm/validation/validateTime.js","../node_modules/@mui/x-date-pickers/esm/validation/validateDateTime.js","../node_modules/@mui/x-date-pickers/esm/validation/useValidation.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useField/useFieldState.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useField/useFieldInternalPropsWithDefaults.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useField/syncSelectionToDOM.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useField/useFieldRootHandleKeyDown.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useField/useFieldRootProps.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useField/useFieldHiddenInputProps.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useField/useFieldSectionContainerProps.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useField/useFieldSectionContentProps.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useField/useFieldV7TextField.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useField/useFieldV6TextField.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useField/useField.js","../node_modules/@mui/x-date-pickers/esm/managers/useDateManager.js","../node_modules/@mui/x-date-pickers/esm/managers/useTimeManager.js","../node_modules/@mui/x-date-pickers/esm/managers/useDateTimeManager.js","../node_modules/@mui/x-date-pickers/esm/DateField/useDateField.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useFieldOwnerState.js","../node_modules/@mui/x-date-pickers/esm/PickersTextField/pickersTextFieldClasses.js","../node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersInputBase/pickersInputBaseClasses.js","../node_modules/@mui/x-date-pickers/esm/PickersSectionList/pickersSectionListClasses.js","../node_modules/@mui/x-date-pickers/esm/PickersSectionList/PickersSectionList.js","../node_modules/@mui/x-date-pickers/esm/PickersTextField/usePickerTextFieldOwnerState.js","../node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersInputBase/PickersInputBase.js","../node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js","../node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/Outline.js","../node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js","../node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js","../node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersFilledInput/PickersFilledInput.js","../node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersInput/pickersInputClasses.js","../node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersInput/PickersInput.js","../node_modules/@mui/x-date-pickers/esm/PickersTextField/PickersTextField.js","../node_modules/@mui/x-date-pickers/esm/internals/components/PickerFieldUI.js","../node_modules/@mui/x-date-pickers/esm/DateField/DateField.js","../node_modules/@mui/x-date-pickers/esm/TimeField/useTimeField.js","../node_modules/@mui/x-date-pickers/esm/TimeField/TimeField.js","../node_modules/@mui/x-date-pickers/esm/DateTimeField/useDateTimeField.js","../node_modules/@mui/x-date-pickers/esm/DateTimeField/DateTimeField.js","../node_modules/@mui/x-date-pickers/esm/DateCalendar/useIsDateDisabled.js","../node_modules/@mui/x-date-pickers/esm/DateCalendar/useCalendarState.js","../node_modules/@mui/x-date-pickers/esm/DateCalendar/pickersFadeTransitionGroupClasses.js","../node_modules/@mui/x-date-pickers/esm/DateCalendar/PickersFadeTransitionGroup.js","../node_modules/@mui/x-date-pickers/esm/DateCalendar/pickersSlideTransitionClasses.js","../node_modules/@mui/x-date-pickers/esm/DateCalendar/PickersSlideTransition.js","../node_modules/@mui/x-date-pickers/esm/DateCalendar/dayCalendarClasses.js","../node_modules/@mui/x-date-pickers/esm/DateCalendar/DayCalendar.js","../node_modules/@mui/x-date-pickers/esm/MonthCalendar/monthCalendarClasses.js","../node_modules/@mui/x-date-pickers/esm/MonthCalendar/MonthCalendarButton.js","../node_modules/@mui/x-date-pickers/esm/MonthCalendar/MonthCalendar.js","../node_modules/@mui/x-date-pickers/esm/YearCalendar/yearCalendarClasses.js","../node_modules/@mui/x-date-pickers/esm/YearCalendar/YearCalendarButton.js","../node_modules/@mui/x-date-pickers/esm/YearCalendar/YearCalendar.js","../node_modules/@mui/x-date-pickers/esm/PickersCalendarHeader/pickersCalendarHeaderClasses.js","../node_modules/@mui/x-date-pickers/esm/PickersCalendarHeader/PickersCalendarHeader.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useReduceAnimations.js","../node_modules/@mui/x-date-pickers/esm/DateCalendar/dateCalendarClasses.js","../node_modules/@mui/x-date-pickers/esm/DateCalendar/DateCalendar.js","../node_modules/@mui/x-date-pickers/esm/internals/components/pickersToolbarClasses.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useToolbarOwnerState.js","../node_modules/@mui/x-date-pickers/esm/internals/components/PickersToolbar.js","../node_modules/@mui/x-date-pickers/esm/DatePicker/datePickerToolbarClasses.js","../node_modules/@mui/x-date-pickers/esm/DatePicker/DatePickerToolbar.js","../node_modules/@mui/x-date-pickers/esm/DatePicker/shared.js","../node_modules/@mui/x-date-pickers/esm/internals/components/PickerPopper/pickerPopperClasses.js","../node_modules/@mui/x-date-pickers/esm/internals/components/PickerPopper/PickerPopper.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/usePicker/hooks/useOrientation.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/usePicker/hooks/useValueAndOpenStates.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/usePicker/usePicker.js","../node_modules/@mui/x-date-pickers/esm/PickersLayout/pickersLayoutClasses.js","../node_modules/@mui/x-date-pickers/esm/PickersActionBar/PickersActionBar.js","../node_modules/@mui/x-date-pickers/esm/PickersShortcuts/PickersShortcuts.js","../node_modules/@mui/x-date-pickers/esm/PickersLayout/usePickerLayout.js","../node_modules/@mui/x-date-pickers/esm/PickersLayout/PickersLayout.js","../node_modules/@mui/x-date-pickers/esm/internals/utils/createNonRangePickerStepNavigation.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useDesktopPicker/useDesktopPicker.js","../node_modules/@mui/x-date-pickers/esm/dateViewRenderers/dateViewRenderers.js","../node_modules/@mui/x-date-pickers/esm/DesktopDatePicker/DesktopDatePicker.js","../node_modules/@mui/x-date-pickers/esm/internals/components/PickersModalDialog.js","../node_modules/@mui/x-date-pickers/esm/internals/hooks/useMobilePicker/useMobilePicker.js","../node_modules/@mui/x-date-pickers/esm/MobileDatePicker/MobileDatePicker.js","../node_modules/@mui/x-date-pickers/esm/DatePicker/DatePicker.js","../node_modules/@mui/x-date-pickers/esm/internals/components/pickersToolbarTextClasses.js","../node_modules/@mui/x-date-pickers/esm/internals/components/PickersToolbarText.js","../node_modules/@mui/x-date-pickers/esm/internals/components/PickersToolbarButton.js","../node_modules/@mui/x-date-pickers/esm/TimePicker/timePickerToolbarClasses.js","../node_modules/@mui/x-date-pickers/esm/TimePicker/TimePickerToolbar.js","../node_modules/@mui/x-date-pickers/esm/TimePicker/shared.js","../node_modules/@mui/x-date-pickers/esm/timeViewRenderers/timeViewRenderers.js","../node_modules/@mui/x-date-pickers/esm/internals/utils/date-time-utils.js","../node_modules/@mui/x-date-pickers/esm/DesktopTimePicker/DesktopTimePicker.js","../node_modules/@mui/x-date-pickers/esm/MobileTimePicker/MobileTimePicker.js","../node_modules/@mui/x-date-pickers/esm/TimePicker/TimePicker.js","../node_modules/@mui/x-date-pickers/esm/DateTimePicker/dateTimePickerTabsClasses.js","../node_modules/@mui/x-date-pickers/esm/DateTimePicker/DateTimePickerTabs.js","../node_modules/@mui/x-date-pickers/esm/DateTimePicker/dateTimePickerToolbarClasses.js","../node_modules/@mui/x-date-pickers/esm/DateTimePicker/DateTimePickerToolbar.js","../node_modules/@mui/x-date-pickers/esm/DateTimePicker/shared.js","../node_modules/@mui/x-date-pickers/esm/DesktopDateTimePicker/DesktopDateTimePickerLayout.js","../node_modules/@mui/x-date-pickers/esm/DesktopDateTimePicker/DesktopDateTimePicker.js","../node_modules/@mui/x-date-pickers/esm/MobileDateTimePicker/MobileDateTimePicker.js","../node_modules/@mui/x-date-pickers/esm/DateTimePicker/DateTimePicker.js","../node_modules/@mui/x-date-pickers/esm/AdapterLuxon/AdapterLuxon.js","../node_modules/@mui/icons-material/esm/Search.js","../node_modules/lodash/isObject.js","../node_modules/lodash/_freeGlobal.js","../node_modules/lodash/_root.js","../node_modules/lodash/now.js","../node_modules/lodash/_trimmedEndIndex.js","../node_modules/lodash/_baseTrim.js","../node_modules/lodash/_Symbol.js","../node_modules/lodash/_getRawTag.js","../node_modules/lodash/_objectToString.js","../node_modules/lodash/_baseGetTag.js","../node_modules/lodash/isObjectLike.js","../node_modules/lodash/isSymbol.js","../node_modules/lodash/toNumber.js","../node_modules/lodash/debounce.js","../src/components/Nutrition/widgets/IngredientAutcompleter.tsx","../node_modules/deepmerge/dist/es.js","../node_modules/lodash-es/_freeGlobal.js","../node_modules/lodash-es/_root.js","../node_modules/lodash-es/_Symbol.js","../node_modules/lodash-es/_getRawTag.js","../node_modules/lodash-es/_objectToString.js","../node_modules/lodash-es/_baseGetTag.js","../node_modules/lodash-es/_overArg.js","../node_modules/lodash-es/_getPrototype.js","../node_modules/lodash-es/isObjectLike.js","../node_modules/lodash-es/isPlainObject.js","../node_modules/lodash-es/_listCacheClear.js","../node_modules/lodash-es/eq.js","../node_modules/lodash-es/_assocIndexOf.js","../node_modules/lodash-es/_listCacheDelete.js","../node_modules/lodash-es/_listCacheGet.js","../node_modules/lodash-es/_listCacheHas.js","../node_modules/lodash-es/_listCacheSet.js","../node_modules/lodash-es/_ListCache.js","../node_modules/lodash-es/_stackClear.js","../node_modules/lodash-es/_stackDelete.js","../node_modules/lodash-es/_stackGet.js","../node_modules/lodash-es/_stackHas.js","../node_modules/lodash-es/isObject.js","../node_modules/lodash-es/isFunction.js","../node_modules/lodash-es/_coreJsData.js","../node_modules/lodash-es/_isMasked.js","../node_modules/lodash-es/_toSource.js","../node_modules/lodash-es/_baseIsNative.js","../node_modules/lodash-es/_getValue.js","../node_modules/lodash-es/_getNative.js","../node_modules/lodash-es/_Map.js","../node_modules/lodash-es/_nativeCreate.js","../node_modules/lodash-es/_hashClear.js","../node_modules/lodash-es/_hashDelete.js","../node_modules/lodash-es/_hashGet.js","../node_modules/lodash-es/_hashHas.js","../node_modules/lodash-es/_hashSet.js","../node_modules/lodash-es/_Hash.js","../node_modules/lodash-es/_mapCacheClear.js","../node_modules/lodash-es/_isKeyable.js","../node_modules/lodash-es/_getMapData.js","../node_modules/lodash-es/_mapCacheDelete.js","../node_modules/lodash-es/_mapCacheGet.js","../node_modules/lodash-es/_mapCacheHas.js","../node_modules/lodash-es/_mapCacheSet.js","../node_modules/lodash-es/_MapCache.js","../node_modules/lodash-es/_stackSet.js","../node_modules/lodash-es/_Stack.js","../node_modules/lodash-es/_arrayEach.js","../node_modules/lodash-es/_defineProperty.js","../node_modules/lodash-es/_baseAssignValue.js","../node_modules/lodash-es/_assignValue.js","../node_modules/lodash-es/_copyObject.js","../node_modules/lodash-es/_baseTimes.js","../node_modules/lodash-es/_baseIsArguments.js","../node_modules/lodash-es/isArguments.js","../node_modules/lodash-es/isArray.js","../node_modules/lodash-es/stubFalse.js","../node_modules/lodash-es/isBuffer.js","../node_modules/lodash-es/_isIndex.js","../node_modules/lodash-es/isLength.js","../node_modules/lodash-es/_baseIsTypedArray.js","../node_modules/lodash-es/_baseUnary.js","../node_modules/lodash-es/_nodeUtil.js","../node_modules/lodash-es/isTypedArray.js","../node_modules/lodash-es/_arrayLikeKeys.js","../node_modules/lodash-es/_isPrototype.js","../node_modules/lodash-es/_nativeKeys.js","../node_modules/lodash-es/_baseKeys.js","../node_modules/lodash-es/isArrayLike.js","../node_modules/lodash-es/keys.js","../node_modules/lodash-es/_baseAssign.js","../node_modules/lodash-es/_nativeKeysIn.js","../node_modules/lodash-es/_baseKeysIn.js","../node_modules/lodash-es/keysIn.js","../node_modules/lodash-es/_baseAssignIn.js","../node_modules/lodash-es/_cloneBuffer.js","../node_modules/lodash-es/_copyArray.js","../node_modules/lodash-es/_arrayFilter.js","../node_modules/lodash-es/stubArray.js","../node_modules/lodash-es/_getSymbols.js","../node_modules/lodash-es/_copySymbols.js","../node_modules/lodash-es/_arrayPush.js","../node_modules/lodash-es/_getSymbolsIn.js","../node_modules/lodash-es/_copySymbolsIn.js","../node_modules/lodash-es/_baseGetAllKeys.js","../node_modules/lodash-es/_getAllKeys.js","../node_modules/lodash-es/_getAllKeysIn.js","../node_modules/lodash-es/_DataView.js","../node_modules/lodash-es/_Promise.js","../node_modules/lodash-es/_Set.js","../node_modules/lodash-es/_WeakMap.js","../node_modules/lodash-es/_getTag.js","../node_modules/lodash-es/_initCloneArray.js","../node_modules/lodash-es/_Uint8Array.js","../node_modules/lodash-es/_cloneArrayBuffer.js","../node_modules/lodash-es/_cloneDataView.js","../node_modules/lodash-es/_cloneRegExp.js","../node_modules/lodash-es/_cloneSymbol.js","../node_modules/lodash-es/_cloneTypedArray.js","../node_modules/lodash-es/_initCloneByTag.js","../node_modules/lodash-es/_baseCreate.js","../node_modules/lodash-es/_initCloneObject.js","../node_modules/lodash-es/_baseIsMap.js","../node_modules/lodash-es/isMap.js","../node_modules/lodash-es/_baseIsSet.js","../node_modules/lodash-es/isSet.js","../node_modules/lodash-es/_baseClone.js","../node_modules/lodash-es/cloneDeep.js","../node_modules/react-fast-compare/index.js","../node_modules/lodash-es/clone.js","../node_modules/lodash-es/_arrayMap.js","../node_modules/lodash-es/isSymbol.js","../node_modules/lodash-es/memoize.js","../node_modules/lodash-es/_memoizeCapped.js","../node_modules/lodash-es/_stringToPath.js","../node_modules/lodash-es/_toKey.js","../node_modules/lodash-es/_baseToString.js","../node_modules/lodash-es/toString.js","../node_modules/lodash-es/toPath.js","../node_modules/formik/dist/formik.esm.js","../node_modules/property-expr/index.js","../node_modules/tiny-case/index.js","../node_modules/toposort/index.js","../node_modules/yup/index.esm.js","../src/components/Nutrition/widgets/forms/NutritionDiaryEntryForm.tsx","../src/components/Nutrition/widgets/forms/PlanForm.tsx","../src/components/Dashboard/NutritionCard.tsx","../node_modules/@mui/icons-material/esm/Today.js","../src/components/WorkoutRoutines/queries/routines.ts","../src/components/WorkoutRoutines/queries/configs.ts","../src/components/WorkoutRoutines/queries/days.ts","../src/components/WorkoutRoutines/queries/logs.ts","../src/components/WorkoutRoutines/queries/slot_entries.ts","../src/components/WorkoutRoutines/queries/units.ts","../src/components/WorkoutRoutines/queries/slots.ts","../src/components/WorkoutRoutines/queries/sessions.ts","../node_modules/@mui/icons-material/esm/Add.js","../node_modules/@mui/icons-material/esm/AddCircle.js","../node_modules/@mui/icons-material/esm/Addchart.js","../node_modules/@mui/icons-material/esm/ArrowDropDown.js","../node_modules/@mui/icons-material/esm/ArrowDropUp.js","../node_modules/@mui/icons-material/esm/ArrowForwardIos.js","../node_modules/@mui/icons-material/esm/BarChart.js","../node_modules/@mui/icons-material/esm/Cached.js","../node_modules/@mui/icons-material/esm/CalendarMonth.js","../node_modules/@mui/icons-material/esm/CameraAlt.js","../node_modules/@mui/icons-material/esm/Cancel.js","../node_modules/@mui/icons-material/esm/CheckBox.js","../node_modules/@mui/icons-material/esm/CheckBoxOutlineBlank.js","../node_modules/@mui/icons-material/esm/ChevronLeft.js","../node_modules/@mui/icons-material/esm/ChevronRight.js","../node_modules/@mui/icons-material/esm/Clear.js","../node_modules/@mui/icons-material/esm/Collections.js","../node_modules/@mui/icons-material/esm/ContentCopy.js","../node_modules/@mui/icons-material/esm/Delete.js","../node_modules/@mui/icons-material/esm/DeleteOutline.js","../node_modules/@mui/icons-material/esm/DeleteOutlined.js","../node_modules/@mui/icons-material/esm/DragIndicator.js","../node_modules/@mui/icons-material/esm/Edit.js","../node_modules/@mui/icons-material/esm/EditOff.js","../node_modules/@mui/icons-material/esm/FilterAlt.js","../node_modules/@mui/icons-material/esm/FlagCircle.js","../node_modules/@mui/icons-material/esm/HelpOutline.js","../node_modules/@mui/icons-material/esm/Info.js","../node_modules/@mui/icons-material/esm/InfoOutlined.js","../node_modules/@mui/icons-material/esm/Landscape.js","../node_modules/@mui/icons-material/esm/LandscapeOutlined.js","../node_modules/@mui/icons-material/esm/LandscapeTwoTone.js","../node_modules/@mui/icons-material/esm/Menu.js","../node_modules/@mui/icons-material/esm/MoreHoriz.js","../node_modules/@mui/icons-material/esm/MoreVert.js","../node_modules/@mui/icons-material/esm/NavigateNext.js","../node_modules/@mui/icons-material/esm/NorthEast.js","../node_modules/@mui/icons-material/esm/PhotoCamera.js","../node_modules/@mui/icons-material/esm/Redo.js","../node_modules/@mui/icons-material/esm/Save.js","../node_modules/@mui/icons-material/esm/SentimentNeutral.js","../node_modules/@mui/icons-material/esm/SentimentSatisfiedAlt.js","../node_modules/@mui/icons-material/esm/SentimentVeryDissatisfied.js","../node_modules/@mui/icons-material/esm/Settings.js","../node_modules/@mui/icons-material/esm/SouthEast.js","../node_modules/@mui/icons-material/esm/SsidChart.js","../node_modules/@mui/icons-material/esm/SwapHoriz.js","../src/components/Core/Widgets/RenderLoadingQuery.tsx","../src/components/Exercises/Detail/ExerciseImageAvatar.tsx","../src/components/Exercises/queries/exercises.ts","../src/components/Exercises/queries/index.ts","../node_modules/react-router/dist/development/chunk-B7RQU5TL.mjs","../src/components/WorkoutRoutines/widgets/RoutineDetailsCard.tsx","../src/components/Dashboard/RoutineCard.tsx","../src/components/BodyWeight/queries/index.ts","../src/components/BodyWeight/Form/WeightForm.tsx","../src/components/BodyWeight/TableDashboard/TableDashboard.tsx","../src/components/BodyWeight/WeightChart/index.tsx","../src/components/Dashboard/WeightCard.tsx","../src/components/Nutrition/components/IngredientSearch.tsx","../node_modules/scheduler/cjs/scheduler.production.js","../node_modules/scheduler/index.js","../node_modules/react-dom/cjs/react-dom-client.production.js","../node_modules/react-dom/client.js","../src/components/Dashboard/Dashboard.tsx","../src/components/Exercises/Filter/ExerciseFiltersContext.tsx","../src/components/Exercises/Filter/CategoryFilter.tsx","../src/components/Exercises/Filter/EquipmentFilter.tsx","../src/components/Core/Tooltips/LightToolTip.tsx","../src/components/Muscles/MuscleOverview.tsx","../src/components/Exercises/Filter/MuscleFilter.tsx","../src/components/Exercises/Filter/NameAutcompleter.tsx","../src/components/Exercises/Detail/ExerciseImagePlaceholder.tsx","../src/components/Exercises/Detail/OverviewCard.tsx","../src/components/Exercises/Overview/ExerciseGrid.tsx","../src/components/Exercises/Overview/ExerciseGridLoadingSkeleton.tsx","../src/components/Exercises/Filter/FilterDrawer.tsx","../src/components/Exercises/ExerciseOverview.tsx","../src/components/Core/Widgets/Container.tsx","../src/components/Measurements/queries/index.ts","../node_modules/@mui/x-data-grid/esm/components/GridApiContext.js","../node_modules/@mui/x-data-grid/esm/hooks/utils/useGridApiContext.js","../node_modules/@mui/x-data-grid/esm/context/GridRootPropsContext.js","../node_modules/@mui/x-data-grid/esm/hooks/utils/useGridRootProps.js","../node_modules/@mui/x-internals/esm/reactMajor/index.js","../node_modules/@mui/x-internals/esm/forwardRef/forwardRef.js","../node_modules/@mui/x-internals/esm/fastObjectShallowCompare/fastObjectShallowCompare.js","../node_modules/@mui/x-data-grid/esm/hooks/utils/useGridSelector.js","../node_modules/@mui/x-data-grid/esm/utils/weakMapMemoize.js","../node_modules/@mui/x-data-grid/esm/utils/createSelector.js","../node_modules/@mui/x-data-grid/esm/hooks/features/dimensions/gridDimensionsSelectors.js","../node_modules/@mui/x-internals/esm/fastMemo/fastMemo.js","../node_modules/@mui/x-data-grid/esm/constants/localeTextConstants.js","../node_modules/@mui/x-data-grid/esm/constants/gridClasses.js","../node_modules/@mui/x-data-grid/esm/constants/signature.js","../node_modules/@mui/x-data-grid/esm/utils/cleanupTracking/TimerBasedCleanupTracking.js","../node_modules/@mui/x-data-grid/esm/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js","../node_modules/@mui/x-data-grid/esm/hooks/utils/useGridEvent.js","../node_modules/@mui/x-data-grid/esm/hooks/features/density/densitySelector.js","../node_modules/@mui/x-data-grid/esm/utils/assert.js","../node_modules/@mui/x-data-grid/esm/constants/cssVariables.js","../node_modules/@mui/x-data-grid/esm/components/cell/GridEditInputCell.js","../node_modules/@mui/x-data-grid/esm/hooks/features/rows/gridRowsSelector.js","../node_modules/@mui/x-data-grid/esm/hooks/features/sorting/gridSortingUtils.js","../node_modules/@mui/x-data-grid/esm/components/panel/filterPanel/GridFilterInputValue.js","../node_modules/@mui/x-data-grid/esm/utils/utils.js","../node_modules/@mui/x-data-grid/esm/components/panel/filterPanel/GridFilterInputMultipleValue.js","../node_modules/@mui/x-data-grid/esm/models/gridEditRowModel.js","../node_modules/@mui/x-data-grid/esm/models/gridFilterItem.js","../node_modules/@mui/x-data-grid/esm/models/gridRowSelectionManager.js","../node_modules/@mui/x-data-grid/esm/models/params/gridEditCellParams.js","../node_modules/@mui/x-data-grid/esm/models/params/gridRowParams.js","../node_modules/@mui/x-data-grid/esm/models/gridColumnGrouping.js","../node_modules/@mui/x-data-grid/esm/hooks/features/filter/gridFilterState.js","../node_modules/@mui/x-data-grid/esm/utils/getPublicApiRef.js","../node_modules/@mui/x-data-grid/esm/hooks/features/columns/gridColumnsInterfaces.js","../node_modules/@mui/x-data-grid/esm/hooks/core/gridCoreSelector.js","../node_modules/@mui/x-data-grid/esm/hooks/features/columns/gridColumnsSelector.js","../node_modules/@mui/x-data-grid/esm/hooks/features/filter/gridFilterUtils.js","../node_modules/@mui/x-data-grid/esm/colDef/gridStringOperators.js","../node_modules/@mui/x-data-grid/esm/colDef/gridStringColDef.js","../node_modules/@mui/x-data-grid/esm/components/GridConfigurationContext.js","../node_modules/@mui/x-data-grid/esm/hooks/utils/useGridConfiguration.js","../node_modules/@mui/x-data-grid/esm/utils/css/context.js","../node_modules/@mui/x-data-grid/esm/components/menu/GridMenu.js","../node_modules/@mui/x-data-grid/esm/components/cell/GridActionsCell.js","../node_modules/@mui/x-data-grid/esm/colDef/gridActionsColDef.js","../node_modules/@mui/x-data-grid/esm/hooks/features/rows/gridRowsUtils.js","../node_modules/@mui/x-data-grid/esm/internals/constants.js","../node_modules/@mui/x-data-grid/esm/components/cell/GridBooleanCell.js","../node_modules/@mui/x-data-grid/esm/components/cell/GridEditBooleanCell.js","../node_modules/@mui/x-data-grid/esm/components/panel/filterPanel/GridFilterInputBoolean.js","../node_modules/@mui/x-data-grid/esm/colDef/gridBooleanOperators.js","../node_modules/@mui/x-data-grid/esm/colDef/gridBooleanColDef.js","../node_modules/@mui/x-internals/esm/isObjectEmpty/isObjectEmpty.js","../node_modules/@mui/x-data-grid/esm/hooks/features/sorting/gridSortingSelector.js","../node_modules/@mui/x-data-grid/esm/hooks/features/filter/gridFilterSelector.js","../node_modules/@mui/x-data-grid/esm/hooks/features/rowSelection/gridRowSelectionSelector.js","../node_modules/@mui/x-data-grid/esm/hooks/features/rowSelection/utils.js","../node_modules/@mui/x-data-grid/esm/components/columnSelection/GridCellCheckboxRenderer.js","../node_modules/@mui/x-data-grid/esm/hooks/features/focus/gridFocusStateSelector.js","../node_modules/@mui/x-data-grid/esm/hooks/features/pagination/gridPaginationUtils.js","../node_modules/@mui/x-data-grid/esm/hooks/features/pagination/gridPaginationSelector.js","../node_modules/@mui/x-data-grid/esm/components/columnSelection/GridHeaderCheckbox.js","../node_modules/@mui/x-data-grid/esm/hooks/core/gridPropsSelectors.js","../node_modules/@mui/x-data-grid/esm/colDef/gridCheckboxSelectionColDef.js","../node_modules/@mui/x-data-grid/esm/components/panel/filterPanel/GridFilterInputDate.js","../node_modules/@mui/x-data-grid/esm/colDef/gridDateOperators.js","../node_modules/@mui/x-data-grid/esm/components/cell/GridEditDateCell.js","../node_modules/@mui/x-data-grid/esm/colDef/gridDateColDef.js","../node_modules/@mui/x-data-grid/esm/colDef/gridNumericOperators.js","../node_modules/@mui/x-data-grid/esm/colDef/gridNumericColDef.js","../node_modules/@mui/x-data-grid/esm/components/panel/filterPanel/filterPanelUtils.js","../node_modules/@mui/x-data-grid/esm/components/cell/GridEditSingleSelectCell.js","../node_modules/@mui/x-data-grid/esm/components/panel/filterPanel/GridFilterInputSingleSelect.js","../node_modules/@mui/x-data-grid/esm/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js","../node_modules/@mui/x-data-grid/esm/colDef/gridSingleSelectOperators.js","../node_modules/@mui/x-data-grid/esm/colDef/gridSingleSelectColDef.js","../node_modules/@mui/x-data-grid/esm/colDef/gridDefaultColumnTypes.js","../node_modules/@mui/x-data-grid/esm/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js","../node_modules/@mui/x-data-grid/esm/hooks/features/columnGrouping/gridColumnGroupsSelector.js","../node_modules/@mui/x-data-grid/esm/hooks/features/columns/gridColumnsUtils.js","../node_modules/@mui/x-data-grid/esm/components/GridScrollArea.js","../node_modules/@mui/x-data-grid/esm/hooks/utils/useGridPrivateApiContext.js","../node_modules/@mui/x-data-grid/esm/hooks/utils/useRunOnce.js","../node_modules/@mui/x-data-grid/esm/hooks/utils/useGridApiMethod.js","../node_modules/@mui/x-data-grid/esm/hooks/utils/useGridLogger.js","../node_modules/@mui/x-data-grid/esm/hooks/utils/useGridNativeEventListener.js","../node_modules/@mui/x-data-grid/esm/hooks/utils/useFirstRender.js","../node_modules/@mui/x-data-grid/esm/hooks/utils/useGridVisibleRows.js","../node_modules/@mui/x-data-grid/esm/utils/platform.js","../node_modules/@mui/x-data-grid/esm/hooks/features/rows/gridRowsMetaSelector.js","../node_modules/@mui/x-data-grid/esm/hooks/features/virtualization/gridVirtualizationSelectors.js","../node_modules/@mui/x-data-grid/esm/hooks/features/virtualization/useGridVirtualization.js","../node_modules/@mui/x-data-grid/esm/hooks/features/rows/gridRowSpanningSelectors.js","../node_modules/@mui/x-data-grid/esm/hooks/features/listView/gridListViewSelectors.js","../node_modules/@mui/x-data-grid/esm/hooks/features/virtualization/gridFocusedVirtualCellSelector.js","../node_modules/@mui/x-data-grid/esm/utils/roundToDecimalPlaces.js","../node_modules/@mui/x-data-grid/esm/utils/isJSDOM.js","../node_modules/@mui/x-data-grid/esm/hooks/features/virtualization/useGridVirtualScroller.js","../node_modules/@mui/x-data-grid/esm/components/base/GridOverlays.js","../node_modules/@mui/x-data-grid/esm/hooks/features/pivoting/gridPivotingSelectors.js","../node_modules/@mui/x-data-grid/esm/hooks/features/overlays/useGridOverlays.js","../node_modules/@mui/x-data-grid/esm/hooks/features/columnMenu/columnMenuSelector.js","../node_modules/@mui/x-data-grid/esm/components/GridHeaders.js","../node_modules/@mui/x-data-grid/esm/components/virtualization/GridMainContainer.js","../node_modules/@mui/x-data-grid/esm/components/virtualization/GridTopContainer.js","../node_modules/@mui/x-data-grid/esm/components/virtualization/GridVirtualScrollerContent.js","../node_modules/@mui/x-data-grid/esm/components/virtualization/GridVirtualScrollerFiller.js","../node_modules/@mui/x-data-grid/esm/components/virtualization/GridVirtualScrollerRenderZone.js","../node_modules/@mui/x-data-grid/esm/hooks/features/columnResize/gridColumnResizeApi.js","../node_modules/@mui/x-data-grid/esm/hooks/features/editing/gridEditingSelectors.js","../node_modules/@mui/x-data-grid/esm/hooks/features/preferencesPanel/gridPreferencePanelSelector.js","../node_modules/@mui/x-data-grid/esm/hooks/features/preferencesPanel/gridPreferencePanelsValue.js","../node_modules/@mui/x-data-grid/esm/hooks/features/dataSource/cache.js","../node_modules/@mui/x-data-grid/esm/hooks/features/dataSource/gridDataSourceError.js","../node_modules/@mui/x-data-grid/esm/components/virtualization/GridVirtualScrollbar.js","../node_modules/@mui/x-data-grid/esm/components/virtualization/GridVirtualScroller.js","../node_modules/@mui/x-data-grid/esm/components/base/GridFooterPlaceholder.js","../node_modules/@mui/x-data-grid/esm/utils/doesSupportPreventScroll.js","../node_modules/@mui/x-data-grid/esm/internals/utils/computeSlots.js","../node_modules/@mui/x-data-grid/esm/internals/utils/gridRowGroupingUtils.js","../node_modules/@mui/x-data-grid/esm/utils/rtlFlipSide.js","../node_modules/@mui/x-data-grid/esm/internals/utils/attachPinnedStyle.js","../node_modules/@mui/x-data-grid/esm/components/cell/GridCell.js","../node_modules/@mui/x-data-grid/esm/components/cell/GridActionsCellItem.js","../node_modules/@mui/x-data-grid/esm/components/cell/GridSkeletonCell.js","../node_modules/@mui/x-data-grid/esm/components/containers/GridRootStyles.js","../node_modules/@mui/x-data-grid/esm/hooks/utils/useIsSSR.js","../node_modules/@mui/x-data-grid/esm/components/panel/GridPanelContext.js","../node_modules/@mui/x-data-grid/esm/components/panel/GridPreferencesPanel.js","../node_modules/@mui/x-data-grid/esm/components/GridHeader.js","../node_modules/@mui/x-data-grid/esm/components/containers/GridRoot.js","../node_modules/@mui/x-data-grid/esm/components/containers/GridFooterContainer.js","../node_modules/@mui/x-data-grid/esm/components/containers/GridOverlay.js","../node_modules/@mui/x-data-grid/esm/hooks/utils/useGridComponentRenderer.js","../node_modules/@mui/x-data-grid/esm/components/toolbarV8/ToolbarContext.js","../node_modules/@mui/x-data-grid/esm/components/toolbarV8/Toolbar.js","../node_modules/@mui/x-data-grid/esm/components/toolbarV8/ToolbarButton.js","../node_modules/@mui/x-data-grid/esm/components/columnHeaders/ColumnHeaderMenuIcon.js","../node_modules/@mui/x-data-grid/esm/components/menu/columnMenu/GridColumnHeaderMenu.js","../node_modules/@mui/x-data-grid/esm/utils/domUtils.js","../node_modules/@mui/x-data-grid/esm/components/columnHeaders/GridColumnHeaderTitle.js","../node_modules/@mui/x-data-grid/esm/components/columnHeaders/GridColumnHeaderSeparator.js","../node_modules/@mui/x-data-grid/esm/components/columnHeaders/GridGenericColumnHeaderItem.js","../node_modules/@mui/x-data-grid/esm/components/columnHeaders/GridColumnHeaderItem.js","../node_modules/@mui/x-data-grid/esm/components/columnHeaders/GridIconButtonContainer.js","../node_modules/@mui/x-data-grid/esm/components/GridColumnUnsortedIcon.js","../node_modules/@mui/x-data-grid/esm/components/GridColumnSortButton.js","../node_modules/@mui/x-data-grid/esm/components/columnHeaders/GridColumnHeaderSortIcon.js","../node_modules/@mui/x-data-grid/esm/components/columnHeaders/GridColumnHeaderFilterIconButton.js","../node_modules/@mui/x-data-grid/esm/material/icons/createSvgIcon.js","../node_modules/@mui/x-data-grid/esm/material/icons/index.js","../node_modules/@mui/x-data-grid/esm/utils/keyboardUtils.js","../node_modules/@mui/x-data-grid/esm/components/menu/columnMenu/GridColumnMenuContainer.js","../node_modules/@mui/x-data-grid/esm/hooks/features/columnMenu/useGridColumnMenuSlots.js","../node_modules/@mui/x-data-grid/esm/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js","../node_modules/@mui/x-data-grid/esm/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js","../node_modules/@mui/x-data-grid/esm/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js","../node_modules/@mui/x-data-grid/esm/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js","../node_modules/@mui/x-data-grid/esm/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js","../node_modules/@mui/x-data-grid/esm/components/menu/columnMenu/GridColumnMenu.js","../node_modules/@mui/x-data-grid/esm/components/panel/GridPanelWrapper.js","../node_modules/@mui/x-data-grid/esm/components/panel/GridColumnsPanel.js","../node_modules/@mui/x-data-grid/esm/components/panel/GridPanel.js","../node_modules/@mui/x-data-grid/esm/components/panel/GridPanelContent.js","../node_modules/@mui/x-data-grid/esm/components/panel/GridPanelFooter.js","../node_modules/@mui/x-data-grid/esm/components/panel/filterPanel/GridFilterForm.js","../node_modules/@mui/x-data-grid/esm/components/panel/filterPanel/GridFilterPanel.js","../node_modules/@mui/x-data-grid/esm/components/columnsManagement/utils.js","../node_modules/@mui/x-data-grid/esm/components/GridShadowScrollArea.js","../node_modules/@mui/x-data-grid/esm/components/columnsManagement/GridColumnsManagement.js","../node_modules/@mui/x-data-grid/esm/components/toolbar/GridToolbarExportContainer.js","../node_modules/@mui/x-data-grid/esm/components/toolbar/GridToolbarExport.js","../node_modules/@mui/x-internals/esm/isDeepEqual/isDeepEqual.js","../node_modules/@mui/x-data-grid/esm/components/quickFilter/QuickFilterContext.js","../node_modules/@mui/x-data-grid/esm/components/quickFilter/QuickFilter.js","../node_modules/@mui/x-data-grid/esm/components/quickFilter/QuickFilterControl.js","../node_modules/@mui/x-data-grid/esm/components/quickFilter/QuickFilterClear.js","../node_modules/@mui/x-data-grid/esm/components/quickFilter/QuickFilterTrigger.js","../node_modules/@mui/x-data-grid/esm/components/toolbar/GridToolbarQuickFilter.js","../node_modules/@mui/x-data-grid/esm/components/filterPanel/FilterPanelTrigger.js","../node_modules/@mui/x-data-grid/esm/components/columnsPanel/ColumnsPanelTrigger.js","../node_modules/@mui/x-data-grid/esm/components/export/ExportCsv.js","../node_modules/@mui/x-data-grid/esm/components/export/ExportPrint.js","../node_modules/@mui/x-data-grid/esm/components/toolbarV8/GridToolbar.js","../node_modules/@mui/x-data-grid/esm/components/GridSelectedRowCount.js","../node_modules/@mui/x-data-grid/esm/components/GridFooter.js","../node_modules/@mui/x-data-grid/esm/internals/utils/getPinnedCellOffset.js","../node_modules/@mui/x-data-grid/esm/utils/cellBorderUtils.js","../node_modules/@mui/x-data-grid/esm/components/GridScrollbarFillerCell.js","../node_modules/@mui/x-data-grid/esm/components/GridSkeletonLoadingOverlay.js","../node_modules/@mui/x-data-grid/esm/components/GridLoadingOverlay.js","../node_modules/@mui/x-data-grid/esm/components/GridNoRowsOverlay.js","../node_modules/@mui/x-data-grid/esm/components/GridNoColumnsOverlay.js","../node_modules/@mui/x-data-grid/esm/components/GridPagination.js","../node_modules/@mui/x-data-grid/esm/components/GridRowCount.js","../node_modules/@mui/x-data-grid/esm/utils/composeGridClasses.js","../node_modules/@mui/x-data-grid/esm/components/GridRow.js","../node_modules/@mui/x-data-grid/esm/hooks/utils/useGridAriaAttributes.js","../node_modules/@mui/x-data-grid/esm/hooks/features/rows/useGridRowAriaAttributes.js","../node_modules/@mui/x-data-grid/esm/context/GridContextProvider.js","../node_modules/@mui/x-data-grid/esm/hooks/core/useGridRefs.js","../node_modules/@mui/x-data-grid/esm/hooks/core/useGridIsRtl.js","../node_modules/@mui/x-data-grid/esm/hooks/core/useGridLoggerFactory.js","../node_modules/@mui/x-data-grid/esm/hooks/core/useGridLocaleText.js","../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@mui/x-data-grid/esm/hooks/core/pipeProcessing/useGridPipeProcessing.js","../node_modules/@mui/x-data-grid/esm/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js","../node_modules/@mui/x-data-grid/esm/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js","../node_modules/@mui/x-data-grid/esm/hooks/core/strategyProcessing/gridStrategyProcessingApi.js","../node_modules/@mui/x-data-grid/esm/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js","../node_modules/@mui/x-data-grid/esm/hooks/core/strategyProcessing/useGridStrategyProcessing.js","../node_modules/@mui/x-data-grid/esm/hooks/core/useGridStateInitialization.js","../node_modules/@mui/x-data-grid/esm/hooks/core/useGridProps.js","../node_modules/@mui/x-data-grid/esm/hooks/core/useGridInitialization.js","../node_modules/@mui/x-data-grid/esm/hooks/utils/useGridInitializeState.js","../node_modules/@mui/x-data-grid/esm/hooks/features/export/serializers/csvSerializer.js","../node_modules/@mui/x-data-grid/esm/hooks/features/clipboard/useGridClipboard.js","../node_modules/@mui/x-data-grid/esm/hooks/features/columnMenu/useGridColumnMenu.js","../node_modules/@mui/x-data-grid/esm/hooks/features/columns/useGridColumns.js","../node_modules/@mui/x-data-grid/esm/hooks/features/density/useGridDensity.js","../node_modules/@mui/x-data-grid/esm/utils/exportAs.js","../node_modules/@mui/x-data-grid/esm/hooks/features/export/utils.js","../node_modules/@mui/x-data-grid/esm/hooks/features/export/useGridCsvExport.js","../node_modules/@mui/x-internals/esm/export/loadStyleSheets.js","../node_modules/@mui/x-data-grid/esm/hooks/features/pagination/useGridPaginationModel.js","../node_modules/@mui/x-data-grid/esm/hooks/features/export/useGridPrintExport.js","../node_modules/@mui/x-data-grid/esm/hooks/features/filter/useGridFilter.js","../node_modules/@mui/x-data-grid/esm/hooks/features/focus/useGridFocus.js","../node_modules/@mui/x-data-grid/esm/hooks/features/keyboardNavigation/utils.js","../node_modules/@mui/x-data-grid/esm/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js","../node_modules/@mui/x-data-grid/esm/hooks/features/pagination/useGridRowCount.js","../node_modules/@mui/x-data-grid/esm/hooks/features/pagination/useGridPaginationMeta.js","../node_modules/@mui/x-data-grid/esm/hooks/features/pagination/useGridPagination.js","../node_modules/@mui/x-data-grid/esm/hooks/features/preferencesPanel/useGridPreferencesPanel.js","../node_modules/@mui/x-data-grid/esm/hooks/features/editing/utils.js","../node_modules/@mui/x-data-grid/esm/hooks/features/editing/useGridCellEditing.js","../node_modules/@mui/x-data-grid/esm/hooks/features/editing/useGridRowEditing.js","../node_modules/@mui/x-data-grid/esm/hooks/features/editing/useGridEditing.js","../node_modules/@mui/x-data-grid/esm/hooks/features/rows/useGridRows.js","../node_modules/@mui/x-data-grid/esm/hooks/features/rows/useGridRowsPreProcessors.js","../node_modules/@mui/x-data-grid/esm/hooks/features/rows/useGridParamsApi.js","../node_modules/@mui/x-data-grid/esm/hooks/features/rowSelection/useGridRowSelection.js","../node_modules/@mui/x-data-grid/esm/hooks/features/rowSelection/useGridRowSelectionPreProcessors.js","../node_modules/@mui/x-data-grid/esm/hooks/features/sorting/useGridSorting.js","../node_modules/@mui/x-data-grid/esm/hooks/features/scroll/useGridScroll.js","../node_modules/@mui/x-data-grid/esm/hooks/features/events/useGridEvents.js","../node_modules/@mui/x-internals/esm/throttle/throttle.js","../node_modules/@mui/x-data-grid/esm/constants/dataGridPropsDefaultValues.js","../node_modules/@mui/x-data-grid/esm/hooks/features/dimensions/useGridDimensions.js","../node_modules/@mui/x-data-grid/esm/utils/ResizeObserver.js","../node_modules/@mui/x-data-grid/esm/hooks/features/rows/useGridRowsMeta.js","../node_modules/@mui/x-data-grid/esm/hooks/features/statePersistence/useGridStatePersistence.js","../node_modules/@mui/x-data-grid/esm/hooks/features/columns/useGridColumnSpanning.js","../node_modules/@mui/x-data-grid/esm/hooks/features/columnGrouping/gridColumnGroupsUtils.js","../node_modules/@mui/x-data-grid/esm/hooks/features/columnGrouping/useGridColumnGrouping.js","../node_modules/@mui/x-data-grid/esm/utils/createControllablePromise.js","../node_modules/@mui/x-data-grid/esm/hooks/features/columnResize/useGridColumnResize.js","../node_modules/@mui/x-data-grid/esm/hooks/features/rows/gridRowSpanningUtils.js","../node_modules/@mui/x-data-grid/esm/hooks/features/rows/useGridRowSpanning.js","../node_modules/@mui/x-data-grid/esm/hooks/features/listView/useGridListView.js","../node_modules/@mui/x-data-grid/esm/hooks/features/dataSource/gridDataSourceSelector.js","../node_modules/@mui/x-data-grid/esm/hooks/features/dataSource/utils.js","../node_modules/@mui/x-data-grid/esm/hooks/features/dataSource/useGridDataSourceBase.js","../node_modules/@mui/x-data-grid/esm/hooks/features/dataSource/useGridDataSource.js","../node_modules/@mui/x-data-grid/esm/DataGrid/useDataGridComponent.js","../node_modules/@mui/x-data-grid/esm/components/columnHeaders/GridColumnGroupHeader.js","../node_modules/@mui/x-data-grid/esm/hooks/features/columnHeaders/useGridColumnHeaders.js","../node_modules/@mui/x-data-grid/esm/components/columnHeaders/GridBaseColumnHeaders.js","../node_modules/@mui/x-data-grid/esm/components/GridColumnHeaders.js","../node_modules/@mui/x-data-grid/esm/components/GridDetailPanels.js","../node_modules/@mui/x-data-grid/esm/components/GridPinnedRows.js","../node_modules/@mui/x-data-grid/esm/components/GridNoResultsOverlay.js","../node_modules/@mui/x-internals/esm/hash/hash.js","../node_modules/@mui/x-internals/esm/hash/stringify.js","../node_modules/@mui/x-data-grid/esm/material/variables.js","../node_modules/@mui/x-data-grid/esm/material/index.js","../node_modules/@mui/x-data-grid/esm/components/virtualization/GridBottomContainer.js","../node_modules/@mui/x-data-grid/esm/constants/defaultGridSlotsComponents.js","../node_modules/@mui/x-data-grid/esm/DataGrid/useDataGridProps.js","../node_modules/@mui/x-internals/esm/EventManager/EventManager.js","../node_modules/@mui/x-data-grid/esm/utils/Store.js","../node_modules/@mui/x-data-grid/esm/hooks/core/useGridApiInitialization.js","../node_modules/@mui/x-data-grid/esm/DataGrid/DataGrid.js","../src/components/Measurements/widgets/CategoryDetailDataGrid.tsx","../src/components/Core/Modals/DeleteConfirmationModal.tsx","../src/components/Measurements/widgets/CategoryForm.tsx","../src/components/Measurements/widgets/CategoryDetailDropdown.tsx","../src/components/Measurements/widgets/EntryForm.tsx","../src/components/Measurements/widgets/fab.tsx","../src/theme.ts","../src/components/Measurements/widgets/MeasurementChart.tsx","../src/components/Measurements/Screens/MeasurementCategoryDetail.tsx","../src/components/Measurements/Screens/MeasurementCategoryOverview.tsx","../src/components/User/queries/profile.ts","../src/components/Nutrition/components/BmiCalculator.tsx","../src/components/Nutrition/widgets/IngredientDetailTable.tsx","../src/components/Nutrition/widgets/LoggedPlannedNutritionalValuesTable.tsx","../src/components/Nutrition/components/NutritionDiaryOverview.tsx","../src/utils/colors.ts","../src/components/Nutrition/widgets/charts/MacrosPieChart.tsx","../src/components/Nutrition/widgets/charts/NutritionDiaryChart.tsx","../src/components/Nutrition/widgets/DiaryOverview.tsx","../src/components/Nutrition/widgets/Fab.tsx","../src/components/Nutrition/widgets/forms/MealForm.tsx","../src/components/Nutrition/widgets/charts/NutritionalValuesPlannedLoggedChart.tsx","../src/components/Nutrition/widgets/forms/MealItemForm.tsx","../src/components/Nutrition/widgets/MealDetailDropdown.tsx","../src/components/Nutrition/widgets/MealDetail.tsx","../src/components/Nutrition/widgets/NutritionalValuesTable.tsx","../src/components/Nutrition/widgets/PlanDetailDropdown.tsx","../src/components/Nutrition/widgets/PlanSidebar.tsx","../src/components/Nutrition/components/PlanDetail.tsx","../src/components/Nutrition/components/PlansOverview.tsx","../src/components/Common/forms/WgerTextField.tsx","../src/components/WorkoutRoutines/widgets/forms/SlotEntryForm.tsx","../src/components/WorkoutRoutines/widgets/forms/RoutineForm.tsx","../src/components/WorkoutRoutines/Detail/RoutineAdd.tsx","../src/components/WorkoutRoutines/widgets/forms/RoutineTemplateForm.tsx","../src/components/WorkoutRoutines/widgets/RoutineDetailDropdown.tsx","../src/components/WorkoutRoutines/Detail/RoutineDetail.tsx","../src/components/WorkoutRoutines/Detail/RoutineDetailsTable.tsx","../node_modules/css-box-model/dist/css-box-model.esm.js","../node_modules/raf-schd/dist/raf-schd.esm.js","../node_modules/@hello-pangea/dnd/dist/dnd.esm.js","../node_modules/@mui/lab/esm/LoadingButton/LoadingButton.js","../src/components/WorkoutRoutines/widgets/forms/DayForm.tsx","../src/components/WorkoutRoutines/widgets/forms/SlotForm.tsx","../src/utils/forms.ts","../src/components/WorkoutRoutines/widgets/forms/BaseConfigForm.tsx","../src/components/WorkoutRoutines/widgets/SlotDetails.tsx","../src/components/WorkoutRoutines/widgets/DayDetails.tsx","../src/components/WorkoutRoutines/Detail/RoutineEdit.tsx","../src/components/WorkoutRoutines/widgets/forms/SessionForm.tsx","../src/components/WorkoutRoutines/widgets/forms/SessionLogsForm.tsx","../src/components/WorkoutRoutines/Detail/SessionAdd.tsx","../src/components/Core/Widgets/FormError.tsx","../src/components/WorkoutRoutines/widgets/forms/ProgressionForm.tsx","../src/components/WorkoutRoutines/Detail/SlotProgressionEdit.tsx","../src/components/WorkoutRoutines/Detail/TemplateDetail.tsx","../src/components/WorkoutRoutines/widgets/LogWidgets.tsx","../src/components/WorkoutRoutines/Detail/WorkoutLogs.tsx","../src/components/WorkoutRoutines/widgets/RoutineStatistics.tsx","../src/components/WorkoutRoutines/Detail/WorkoutStats.tsx","../src/components/WorkoutRoutines/Overview/Fab.tsx","../src/components/WorkoutRoutines/Overview/RoutineOverview.tsx","../src/components/WorkoutRoutines/Overview/PrivateTemplateOverview.tsx","../src/components/WorkoutRoutines/Overview/PublicTemplateOverview.tsx","../src/pages/About/index.tsx","../src/components/Exercises/forms/ExerciseAliases.tsx","../src/components/Exercises/forms/ExerciseEquipmentSelect.tsx","../src/components/Exercises/forms/ExerciseName.tsx","../src/components/Exercises/forms/ExerciseSelect.tsx","../src/components/Exercises/forms/yupValidators.ts","../src/state/stateTypes.ts","../src/state/notificationReducer.ts","../src/state/notificationState.tsx","../src/state/exerciseSubmissionReducer.ts","../src/state/exerciseSubmissionState.tsx","../src/components/Exercises/Add/Step1Basics.tsx","../src/components/Exercises/Add/Step2Variations.tsx","../src/components/Core/queries/languageCheck.ts","../src/components/Exercises/forms/Category.tsx","../src/components/Exercises/forms/Equipment.tsx","../node_modules/react-simple-wysiwyg/lib/index.es.mjs","../src/components/Exercises/forms/ExerciseDescription.tsx","../src/components/Exercises/forms/ImageCard.tsx","../src/components/Exercises/forms/Muscle.tsx","../src/components/Exercises/forms/VideoCard.tsx","../src/services/permission.ts","../src/components/User/queries/permission.ts","../src/permissions/index.ts","../src/components/Exercises/Detail/ExerciseDetailEdit.tsx","../src/components/Exercises/Detail/SideGallery/index.tsx","../src/components/User/queries/contribute.ts","../src/components/Exercises/Detail/ExerciseDetailView.tsx","../src/components/Exercises/Detail/Head/ExerciseDeleteDialog.tsx","../src/components/Exercises/Detail/Head/index.tsx","../src/components/Exercises/Detail/ExerciseDetails.tsx","../src/components/Exercises/forms/ExerciseNotes.tsx","../src/components/Exercises/Add/Step3Description.tsx","../src/components/Exercises/Add/Step4Translations.tsx","../src/components/Common/forms/LicenseAuthor.tsx","../src/components/Common/forms/LicenseAuthorUrl.tsx","../src/components/Common/forms/LicenseDerivativeSourceUrl.tsx","../src/components/Common/forms/LicenseObjectUrl.tsx","../src/components/Common/forms/LicenseTitle.tsx","../src/components/Exercises/forms/ImageStyle.tsx","../src/components/Exercises/Add/Step5Images.tsx","../src/components/Exercises/Add/Step6Overview.tsx","../src/components/Exercises/Add/AddExerciseStepper.tsx","../src/components/Exercises/Add/NotEnoughRights.tsx","../src/pages/AddExercise/index.tsx","../src/pages/AddWeight/index.tsx","../src/components/Calendar/Components/CalendarDay.tsx","../src/components/Calendar/Components/CalendarDayGrid.tsx","../src/components/Calendar/Components/CalendarHeader.tsx","../src/components/Calendar/Helpers/CalendarMeasurement.tsx","../src/components/Calendar/Components/Entries.tsx","../src/components/Calendar/Components/CalendarComponent.tsx","../src/pages/Calendar/index.tsx","../src/pages/CaloriesCalculator/index.tsx","../src/pages/Equipments/index.tsx","../src/pages/Ingrdedients/index.tsx","../src/pages/Login/index.tsx","../src/pages/Preferences/index.tsx","../src/pages/ApiPage/index.tsx","../src/components/BodyWeight/Table/ActionButton/ActionButton.tsx","../src/components/BodyWeight/Table/Fab/Fab.tsx","../src/components/BodyWeight/utils.ts","../src/components/BodyWeight/Table/index.tsx","../src/components/BodyWeight/widgets/fab.tsx","../src/components/BodyWeight/widgets/FilterButtons.tsx","../src/components/BodyWeight/index.tsx","../src/components/Header/SubMenus/BodyWeightSubMenu.tsx","../src/components/Header/SubMenus/MeasurementsSubMenu.tsx","../src/components/Header/SubMenus/NutritionSubMenu.tsx","../src/components/Header/SubMenus/TrainingSubMenu.tsx","../src/components/Header/index.tsx","../src/pages/WeightOverview/index.tsx","../src/pages/ExerciseDetails/index.tsx","../src/routes.tsx","../src/components/Core/Notifications/index.tsx","../src/App.tsx","../src/index.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\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\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","/**\n * @license React\n * react.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\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\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nfunction getIteratorFn(maybeIterable) {\n if (null === maybeIterable || \"object\" !== typeof maybeIterable) return null;\n maybeIterable =\n (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n maybeIterable[\"@@iterator\"];\n return \"function\" === typeof maybeIterable ? maybeIterable : null;\n}\nvar ReactNoopUpdateQueue = {\n isMounted: function () {\n return !1;\n },\n enqueueForceUpdate: function () {},\n enqueueReplaceState: function () {},\n enqueueSetState: function () {}\n },\n assign = Object.assign,\n emptyObject = {};\nfunction Component(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n}\nComponent.prototype.isReactComponent = {};\nComponent.prototype.setState = function (partialState, callback) {\n if (\n \"object\" !== typeof partialState &&\n \"function\" !== typeof partialState &&\n null != partialState\n )\n throw Error(\n \"takes an object of state variables to update or a function which returns an object of state variables.\"\n );\n this.updater.enqueueSetState(this, partialState, callback, \"setState\");\n};\nComponent.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, \"forceUpdate\");\n};\nfunction ComponentDummy() {}\nComponentDummy.prototype = Component.prototype;\nfunction PureComponent(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n}\nvar pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());\npureComponentPrototype.constructor = PureComponent;\nassign(pureComponentPrototype, Component.prototype);\npureComponentPrototype.isPureReactComponent = !0;\nvar isArrayImpl = Array.isArray,\n ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null },\n hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction ReactElement(type, key, self, source, owner, props) {\n self = props.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== self ? self : null,\n props: props\n };\n}\nfunction cloneAndReplaceKey(oldElement, newKey) {\n return ReactElement(\n oldElement.type,\n newKey,\n void 0,\n void 0,\n void 0,\n oldElement.props\n );\n}\nfunction isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n}\nfunction escape(key) {\n var escaperLookup = { \"=\": \"=0\", \":\": \"=2\" };\n return (\n \"$\" +\n key.replace(/[=:]/g, function (match) {\n return escaperLookup[match];\n })\n );\n}\nvar userProvidedKeyEscapeRegex = /\\/+/g;\nfunction getElementKey(element, index) {\n return \"object\" === typeof element && null !== element && null != element.key\n ? escape(\"\" + element.key)\n : index.toString(36);\n}\nfunction noop$1() {}\nfunction resolveThenable(thenable) {\n switch (thenable.status) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw thenable.reason;\n default:\n switch (\n (\"string\" === typeof thenable.status\n ? thenable.then(noop$1, noop$1)\n : ((thenable.status = \"pending\"),\n thenable.then(\n function (fulfilledValue) {\n \"pending\" === thenable.status &&\n ((thenable.status = \"fulfilled\"),\n (thenable.value = fulfilledValue));\n },\n function (error) {\n \"pending\" === thenable.status &&\n ((thenable.status = \"rejected\"), (thenable.reason = error));\n }\n )),\n thenable.status)\n ) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw thenable.reason;\n }\n }\n throw thenable;\n}\nfunction mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n var type = typeof children;\n if (\"undefined\" === type || \"boolean\" === type) children = null;\n var invokeCallback = !1;\n if (null === children) invokeCallback = !0;\n else\n switch (type) {\n case \"bigint\":\n case \"string\":\n case \"number\":\n invokeCallback = !0;\n break;\n case \"object\":\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = !0;\n break;\n case REACT_LAZY_TYPE:\n return (\n (invokeCallback = children._init),\n mapIntoArray(\n invokeCallback(children._payload),\n array,\n escapedPrefix,\n nameSoFar,\n callback\n )\n );\n }\n }\n if (invokeCallback)\n return (\n (callback = callback(children)),\n (invokeCallback =\n \"\" === nameSoFar ? \".\" + getElementKey(children, 0) : nameSoFar),\n isArrayImpl(callback)\n ? ((escapedPrefix = \"\"),\n null != invokeCallback &&\n (escapedPrefix =\n invokeCallback.replace(userProvidedKeyEscapeRegex, \"$&/\") + \"/\"),\n mapIntoArray(callback, array, escapedPrefix, \"\", function (c) {\n return c;\n }))\n : null != callback &&\n (isValidElement(callback) &&\n (callback = cloneAndReplaceKey(\n callback,\n escapedPrefix +\n (null == callback.key ||\n (children && children.key === callback.key)\n ? \"\"\n : (\"\" + callback.key).replace(\n userProvidedKeyEscapeRegex,\n \"$&/\"\n ) + \"/\") +\n invokeCallback\n )),\n array.push(callback)),\n 1\n );\n invokeCallback = 0;\n var nextNamePrefix = \"\" === nameSoFar ? \".\" : nameSoFar + \":\";\n if (isArrayImpl(children))\n for (var i = 0; i < children.length; i++)\n (nameSoFar = children[i]),\n (type = nextNamePrefix + getElementKey(nameSoFar, i)),\n (invokeCallback += mapIntoArray(\n nameSoFar,\n array,\n escapedPrefix,\n type,\n callback\n ));\n else if (((i = getIteratorFn(children)), \"function\" === typeof i))\n for (\n children = i.call(children), i = 0;\n !(nameSoFar = children.next()).done;\n\n )\n (nameSoFar = nameSoFar.value),\n (type = nextNamePrefix + getElementKey(nameSoFar, i++)),\n (invokeCallback += mapIntoArray(\n nameSoFar,\n array,\n escapedPrefix,\n type,\n callback\n ));\n else if (\"object\" === type) {\n if (\"function\" === typeof children.then)\n return mapIntoArray(\n resolveThenable(children),\n array,\n escapedPrefix,\n nameSoFar,\n callback\n );\n array = String(children);\n throw Error(\n \"Objects are not valid as a React child (found: \" +\n (\"[object Object]\" === array\n ? \"object with keys {\" + Object.keys(children).join(\", \") + \"}\"\n : array) +\n \"). If you meant to render a collection of children, use an array instead.\"\n );\n }\n return invokeCallback;\n}\nfunction mapChildren(children, func, context) {\n if (null == children) return children;\n var result = [],\n count = 0;\n mapIntoArray(children, result, \"\", \"\", function (child) {\n return func.call(context, child, count++);\n });\n return result;\n}\nfunction lazyInitializer(payload) {\n if (-1 === payload._status) {\n var ctor = payload._result;\n ctor = ctor();\n ctor.then(\n function (moduleObject) {\n if (0 === payload._status || -1 === payload._status)\n (payload._status = 1), (payload._result = moduleObject);\n },\n function (error) {\n if (0 === payload._status || -1 === payload._status)\n (payload._status = 2), (payload._result = error);\n }\n );\n -1 === payload._status && ((payload._status = 0), (payload._result = ctor));\n }\n if (1 === payload._status) return payload._result.default;\n throw payload._result;\n}\nvar reportGlobalError =\n \"function\" === typeof reportError\n ? reportError\n : function (error) {\n if (\n \"object\" === typeof window &&\n \"function\" === typeof window.ErrorEvent\n ) {\n var event = new window.ErrorEvent(\"error\", {\n bubbles: !0,\n cancelable: !0,\n message:\n \"object\" === typeof error &&\n null !== error &&\n \"string\" === typeof error.message\n ? String(error.message)\n : String(error),\n error: error\n });\n if (!window.dispatchEvent(event)) return;\n } else if (\n \"object\" === typeof process &&\n \"function\" === typeof process.emit\n ) {\n process.emit(\"uncaughtException\", error);\n return;\n }\n console.error(error);\n };\nfunction noop() {}\nexports.Children = {\n map: mapChildren,\n forEach: function (children, forEachFunc, forEachContext) {\n mapChildren(\n children,\n function () {\n forEachFunc.apply(this, arguments);\n },\n forEachContext\n );\n },\n count: function (children) {\n var n = 0;\n mapChildren(children, function () {\n n++;\n });\n return n;\n },\n toArray: function (children) {\n return (\n mapChildren(children, function (child) {\n return child;\n }) || []\n );\n },\n only: function (children) {\n if (!isValidElement(children))\n throw Error(\n \"React.Children.only expected to receive a single React element child.\"\n );\n return children;\n }\n};\nexports.Component = Component;\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.Profiler = REACT_PROFILER_TYPE;\nexports.PureComponent = PureComponent;\nexports.StrictMode = REACT_STRICT_MODE_TYPE;\nexports.Suspense = REACT_SUSPENSE_TYPE;\nexports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n ReactSharedInternals;\nexports.__COMPILER_RUNTIME = {\n __proto__: null,\n c: function (size) {\n return ReactSharedInternals.H.useMemoCache(size);\n }\n};\nexports.cache = function (fn) {\n return function () {\n return fn.apply(null, arguments);\n };\n};\nexports.cloneElement = function (element, config, children) {\n if (null === element || void 0 === element)\n throw Error(\n \"The argument must be a React element, but you passed \" + element + \".\"\n );\n var props = assign({}, element.props),\n key = element.key,\n owner = void 0;\n if (null != config)\n for (propName in (void 0 !== config.ref && (owner = void 0),\n void 0 !== config.key && (key = \"\" + config.key),\n config))\n !hasOwnProperty.call(config, propName) ||\n \"key\" === propName ||\n \"__self\" === propName ||\n \"__source\" === propName ||\n (\"ref\" === propName && void 0 === config.ref) ||\n (props[propName] = config[propName]);\n var propName = arguments.length - 2;\n if (1 === propName) props.children = children;\n else if (1 < propName) {\n for (var childArray = Array(propName), i = 0; i < propName; i++)\n childArray[i] = arguments[i + 2];\n props.children = childArray;\n }\n return ReactElement(element.type, key, void 0, void 0, owner, props);\n};\nexports.createContext = function (defaultValue) {\n defaultValue = {\n $$typeof: REACT_CONTEXT_TYPE,\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n _threadCount: 0,\n Provider: null,\n Consumer: null\n };\n defaultValue.Provider = defaultValue;\n defaultValue.Consumer = {\n $$typeof: REACT_CONSUMER_TYPE,\n _context: defaultValue\n };\n return defaultValue;\n};\nexports.createElement = function (type, config, children) {\n var propName,\n props = {},\n key = null;\n if (null != config)\n for (propName in (void 0 !== config.key && (key = \"\" + config.key), config))\n hasOwnProperty.call(config, propName) &&\n \"key\" !== propName &&\n \"__self\" !== propName &&\n \"__source\" !== propName &&\n (props[propName] = config[propName]);\n var childrenLength = arguments.length - 2;\n if (1 === childrenLength) props.children = children;\n else if (1 < childrenLength) {\n for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)\n childArray[i] = arguments[i + 2];\n props.children = childArray;\n }\n if (type && type.defaultProps)\n for (propName in ((childrenLength = type.defaultProps), childrenLength))\n void 0 === props[propName] &&\n (props[propName] = childrenLength[propName]);\n return ReactElement(type, key, void 0, void 0, null, props);\n};\nexports.createRef = function () {\n return { current: null };\n};\nexports.forwardRef = function (render) {\n return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };\n};\nexports.isValidElement = isValidElement;\nexports.lazy = function (ctor) {\n return {\n $$typeof: REACT_LAZY_TYPE,\n _payload: { _status: -1, _result: ctor },\n _init: lazyInitializer\n };\n};\nexports.memo = function (type, compare) {\n return {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: void 0 === compare ? null : compare\n };\n};\nexports.startTransition = function (scope) {\n var prevTransition = ReactSharedInternals.T,\n currentTransition = {};\n ReactSharedInternals.T = currentTransition;\n try {\n var returnValue = scope(),\n onStartTransitionFinish = ReactSharedInternals.S;\n null !== onStartTransitionFinish &&\n onStartTransitionFinish(currentTransition, returnValue);\n \"object\" === typeof returnValue &&\n null !== returnValue &&\n \"function\" === typeof returnValue.then &&\n returnValue.then(noop, reportGlobalError);\n } catch (error) {\n reportGlobalError(error);\n } finally {\n ReactSharedInternals.T = prevTransition;\n }\n};\nexports.unstable_useCacheRefresh = function () {\n return ReactSharedInternals.H.useCacheRefresh();\n};\nexports.use = function (usable) {\n return ReactSharedInternals.H.use(usable);\n};\nexports.useActionState = function (action, initialState, permalink) {\n return ReactSharedInternals.H.useActionState(action, initialState, permalink);\n};\nexports.useCallback = function (callback, deps) {\n return ReactSharedInternals.H.useCallback(callback, deps);\n};\nexports.useContext = function (Context) {\n return ReactSharedInternals.H.useContext(Context);\n};\nexports.useDebugValue = function () {};\nexports.useDeferredValue = function (value, initialValue) {\n return ReactSharedInternals.H.useDeferredValue(value, initialValue);\n};\nexports.useEffect = function (create, createDeps, update) {\n var dispatcher = ReactSharedInternals.H;\n if (\"function\" === typeof update)\n throw Error(\n \"useEffect CRUD overload is not enabled in this build of React.\"\n );\n return dispatcher.useEffect(create, createDeps);\n};\nexports.useId = function () {\n return ReactSharedInternals.H.useId();\n};\nexports.useImperativeHandle = function (ref, create, deps) {\n return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);\n};\nexports.useInsertionEffect = function (create, deps) {\n return ReactSharedInternals.H.useInsertionEffect(create, deps);\n};\nexports.useLayoutEffect = function (create, deps) {\n return ReactSharedInternals.H.useLayoutEffect(create, deps);\n};\nexports.useMemo = function (create, deps) {\n return ReactSharedInternals.H.useMemo(create, deps);\n};\nexports.useOptimistic = function (passthrough, reducer) {\n return ReactSharedInternals.H.useOptimistic(passthrough, reducer);\n};\nexports.useReducer = function (reducer, initialArg, init) {\n return ReactSharedInternals.H.useReducer(reducer, initialArg, init);\n};\nexports.useRef = function (initialValue) {\n return ReactSharedInternals.H.useRef(initialValue);\n};\nexports.useState = function (initialState) {\n return ReactSharedInternals.H.useState(initialState);\n};\nexports.useSyncExternalStore = function (\n subscribe,\n getSnapshot,\n getServerSnapshot\n) {\n return ReactSharedInternals.H.useSyncExternalStore(\n subscribe,\n getSnapshot,\n getServerSnapshot\n );\n};\nexports.useTransition = function () {\n return ReactSharedInternals.H.useTransition();\n};\nexports.version = \"19.1.1\";\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","var isDevelopment = false;\n\n/*\n\nBased off glamor's StyleSheet, thanks Sunil ❤️\n\nhigh performance StyleSheet for css-in-js systems\n\n- uses multiple style tags behind the scenes for millions of rules\n- uses `insertRule` for appending in production for *much* faster performance\n\n// usage\n\nimport { StyleSheet } from '@emotion/sheet'\n\nlet styleSheet = new StyleSheet({ key: '', container: document.head })\n\nstyleSheet.insert('#box { border: 1px solid red; }')\n- appends a css rule into the stylesheet\n\nstyleSheet.flush()\n- empties the stylesheet of all its contents\n\n*/\n\nfunction sheetForTag(tag) {\n if (tag.sheet) {\n return tag.sheet;\n } // this weirdness brought to you by firefox\n\n /* istanbul ignore next */\n\n\n for (var i = 0; i < document.styleSheets.length; i++) {\n if (document.styleSheets[i].ownerNode === tag) {\n return document.styleSheets[i];\n }\n } // this function should always return with a value\n // TS can't understand it though so we make it stop complaining here\n\n\n return undefined;\n}\n\nfunction createStyleElement(options) {\n var tag = document.createElement('style');\n tag.setAttribute('data-emotion', options.key);\n\n if (options.nonce !== undefined) {\n tag.setAttribute('nonce', options.nonce);\n }\n\n tag.appendChild(document.createTextNode(''));\n tag.setAttribute('data-s', '');\n return tag;\n}\n\nvar StyleSheet = /*#__PURE__*/function () {\n // Using Node instead of HTMLElement since container may be a ShadowRoot\n function StyleSheet(options) {\n var _this = this;\n\n this._insertTag = function (tag) {\n var before;\n\n if (_this.tags.length === 0) {\n if (_this.insertionPoint) {\n before = _this.insertionPoint.nextSibling;\n } else if (_this.prepend) {\n before = _this.container.firstChild;\n } else {\n before = _this.before;\n }\n } else {\n before = _this.tags[_this.tags.length - 1].nextSibling;\n }\n\n _this.container.insertBefore(tag, before);\n\n _this.tags.push(tag);\n };\n\n this.isSpeedy = options.speedy === undefined ? !isDevelopment : options.speedy;\n this.tags = [];\n this.ctr = 0;\n this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets\n\n this.key = options.key;\n this.container = options.container;\n this.prepend = options.prepend;\n this.insertionPoint = options.insertionPoint;\n this.before = null;\n }\n\n var _proto = StyleSheet.prototype;\n\n _proto.hydrate = function hydrate(nodes) {\n nodes.forEach(this._insertTag);\n };\n\n _proto.insert = function insert(rule) {\n // the max length is how many rules we have per style tag, it's 65000 in speedy mode\n // it's 1 in dev because we insert source maps that map a single rule to a location\n // and you can only have one source map per style tag\n if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {\n this._insertTag(createStyleElement(this));\n }\n\n var tag = this.tags[this.tags.length - 1];\n\n if (this.isSpeedy) {\n var sheet = sheetForTag(tag);\n\n try {\n // this is the ultrafast version, works across browsers\n // the big drawback is that the css won't be editable in devtools\n sheet.insertRule(rule, sheet.cssRules.length);\n } catch (e) {\n }\n } else {\n tag.appendChild(document.createTextNode(rule));\n }\n\n this.ctr++;\n };\n\n _proto.flush = function flush() {\n this.tags.forEach(function (tag) {\n var _tag$parentNode;\n\n return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);\n });\n this.tags = [];\n this.ctr = 0;\n };\n\n return StyleSheet;\n}();\n\nexport { StyleSheet };\n","export var MS = '-ms-'\nexport var MOZ = '-moz-'\nexport var WEBKIT = '-webkit-'\n\nexport var COMMENT = 'comm'\nexport var RULESET = 'rule'\nexport var DECLARATION = 'decl'\n\nexport var PAGE = '@page'\nexport var MEDIA = '@media'\nexport var IMPORT = '@import'\nexport var CHARSET = '@charset'\nexport var VIEWPORT = '@viewport'\nexport var SUPPORTS = '@supports'\nexport var DOCUMENT = '@document'\nexport var NAMESPACE = '@namespace'\nexport var KEYFRAMES = '@keyframes'\nexport var FONT_FACE = '@font-face'\nexport var COUNTER_STYLE = '@counter-style'\nexport var FONT_FEATURE_VALUES = '@font-feature-values'\nexport var LAYER = '@layer'\n","/**\n * @param {number}\n * @return {number}\n */\nexport var abs = Math.abs\n\n/**\n * @param {number}\n * @return {string}\n */\nexport var from = String.fromCharCode\n\n/**\n * @param {object}\n * @return {object}\n */\nexport var assign = Object.assign\n\n/**\n * @param {string} value\n * @param {number} length\n * @return {number}\n */\nexport function hash (value, length) {\n\treturn charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0\n}\n\n/**\n * @param {string} value\n * @return {string}\n */\nexport function trim (value) {\n\treturn value.trim()\n}\n\n/**\n * @param {string} value\n * @param {RegExp} pattern\n * @return {string?}\n */\nexport function match (value, pattern) {\n\treturn (value = pattern.exec(value)) ? value[0] : value\n}\n\n/**\n * @param {string} value\n * @param {(string|RegExp)} pattern\n * @param {string} replacement\n * @return {string}\n */\nexport function replace (value, pattern, replacement) {\n\treturn value.replace(pattern, replacement)\n}\n\n/**\n * @param {string} value\n * @param {string} search\n * @return {number}\n */\nexport function indexof (value, search) {\n\treturn value.indexOf(search)\n}\n\n/**\n * @param {string} value\n * @param {number} index\n * @return {number}\n */\nexport function charat (value, index) {\n\treturn value.charCodeAt(index) | 0\n}\n\n/**\n * @param {string} value\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function substr (value, begin, end) {\n\treturn value.slice(begin, end)\n}\n\n/**\n * @param {string} value\n * @return {number}\n */\nexport function strlen (value) {\n\treturn value.length\n}\n\n/**\n * @param {any[]} value\n * @return {number}\n */\nexport function sizeof (value) {\n\treturn value.length\n}\n\n/**\n * @param {any} value\n * @param {any[]} array\n * @return {any}\n */\nexport function append (value, array) {\n\treturn array.push(value), value\n}\n\n/**\n * @param {string[]} array\n * @param {function} callback\n * @return {string}\n */\nexport function combine (array, callback) {\n\treturn array.map(callback).join('')\n}\n","import {from, trim, charat, strlen, substr, append, assign} from './Utility.js'\n\nexport var line = 1\nexport var column = 1\nexport var length = 0\nexport var position = 0\nexport var character = 0\nexport var characters = ''\n\n/**\n * @param {string} value\n * @param {object | null} root\n * @param {object | null} parent\n * @param {string} type\n * @param {string[] | string} props\n * @param {object[] | string} children\n * @param {number} length\n */\nexport function node (value, root, parent, type, props, children, length) {\n\treturn {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: ''}\n}\n\n/**\n * @param {object} root\n * @param {object} props\n * @return {object}\n */\nexport function copy (root, props) {\n\treturn assign(node('', null, null, '', null, null, 0), root, {length: -root.length}, props)\n}\n\n/**\n * @return {number}\n */\nexport function char () {\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function prev () {\n\tcharacter = position > 0 ? charat(characters, --position) : 0\n\n\tif (column--, character === 10)\n\t\tcolumn = 1, line--\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function next () {\n\tcharacter = position < length ? charat(characters, position++) : 0\n\n\tif (column++, character === 10)\n\t\tcolumn = 1, line++\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function peek () {\n\treturn charat(characters, position)\n}\n\n/**\n * @return {number}\n */\nexport function caret () {\n\treturn position\n}\n\n/**\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function slice (begin, end) {\n\treturn substr(characters, begin, end)\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function token (type) {\n\tswitch (type) {\n\t\t// \\0 \\t \\n \\r \\s whitespace token\n\t\tcase 0: case 9: case 10: case 13: case 32:\n\t\t\treturn 5\n\t\t// ! + , / > @ ~ isolate token\n\t\tcase 33: case 43: case 44: case 47: case 62: case 64: case 126:\n\t\t// ; { } breakpoint token\n\t\tcase 59: case 123: case 125:\n\t\t\treturn 4\n\t\t// : accompanied token\n\t\tcase 58:\n\t\t\treturn 3\n\t\t// \" ' ( [ opening delimit token\n\t\tcase 34: case 39: case 40: case 91:\n\t\t\treturn 2\n\t\t// ) ] closing delimit token\n\t\tcase 41: case 93:\n\t\t\treturn 1\n\t}\n\n\treturn 0\n}\n\n/**\n * @param {string} value\n * @return {any[]}\n */\nexport function alloc (value) {\n\treturn line = column = 1, length = strlen(characters = value), position = 0, []\n}\n\n/**\n * @param {any} value\n * @return {any}\n */\nexport function dealloc (value) {\n\treturn characters = '', value\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function delimit (type) {\n\treturn trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))\n}\n\n/**\n * @param {string} value\n * @return {string[]}\n */\nexport function tokenize (value) {\n\treturn dealloc(tokenizer(alloc(value)))\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function whitespace (type) {\n\twhile (character = peek())\n\t\tif (character < 33)\n\t\t\tnext()\n\t\telse\n\t\t\tbreak\n\n\treturn token(type) > 2 || token(character) > 3 ? '' : ' '\n}\n\n/**\n * @param {string[]} children\n * @return {string[]}\n */\nexport function tokenizer (children) {\n\twhile (next())\n\t\tswitch (token(character)) {\n\t\t\tcase 0: append(identifier(position - 1), children)\n\t\t\t\tbreak\n\t\t\tcase 2: append(delimit(character), children)\n\t\t\t\tbreak\n\t\t\tdefault: append(from(character), children)\n\t\t}\n\n\treturn children\n}\n\n/**\n * @param {number} index\n * @param {number} count\n * @return {string}\n */\nexport function escaping (index, count) {\n\twhile (--count && next())\n\t\t// not 0-9 A-F a-f\n\t\tif (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))\n\t\t\tbreak\n\n\treturn slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function delimiter (type) {\n\twhile (next())\n\t\tswitch (character) {\n\t\t\t// ] ) \" '\n\t\t\tcase type:\n\t\t\t\treturn position\n\t\t\t// \" '\n\t\t\tcase 34: case 39:\n\t\t\t\tif (type !== 34 && type !== 39)\n\t\t\t\t\tdelimiter(character)\n\t\t\t\tbreak\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (type === 41)\n\t\t\t\t\tdelimiter(type)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tnext()\n\t\t\t\tbreak\n\t\t}\n\n\treturn position\n}\n\n/**\n * @param {number} type\n * @param {number} index\n * @return {number}\n */\nexport function commenter (type, index) {\n\twhile (next())\n\t\t// //\n\t\tif (type + character === 47 + 10)\n\t\t\tbreak\n\t\t// /*\n\t\telse if (type + character === 42 + 42 && peek() === 47)\n\t\t\tbreak\n\n\treturn '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())\n}\n\n/**\n * @param {number} index\n * @return {string}\n */\nexport function identifier (index) {\n\twhile (!token(peek()))\n\t\tnext()\n\n\treturn slice(index, position)\n}\n","import {COMMENT, RULESET, DECLARATION} from './Enum.js'\nimport {abs, charat, trim, from, sizeof, strlen, substr, append, replace, indexof} from './Utility.js'\nimport {node, char, prev, next, peek, caret, alloc, dealloc, delimit, whitespace, escaping, identifier, commenter} from './Tokenizer.js'\n\n/**\n * @param {string} value\n * @return {object[]}\n */\nexport function compile (value) {\n\treturn dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {string[]} rule\n * @param {string[]} rules\n * @param {string[]} rulesets\n * @param {number[]} pseudo\n * @param {number[]} points\n * @param {string[]} declarations\n * @return {object}\n */\nexport function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {\n\tvar index = 0\n\tvar offset = 0\n\tvar length = pseudo\n\tvar atrule = 0\n\tvar property = 0\n\tvar previous = 0\n\tvar variable = 1\n\tvar scanning = 1\n\tvar ampersand = 1\n\tvar character = 0\n\tvar type = ''\n\tvar props = rules\n\tvar children = rulesets\n\tvar reference = rule\n\tvar characters = type\n\n\twhile (scanning)\n\t\tswitch (previous = character, character = next()) {\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (previous != 108 && charat(characters, length - 1) == 58) {\n\t\t\t\t\tif (indexof(characters += replace(delimit(character), '&', '&\\f'), '&\\f') != -1)\n\t\t\t\t\t\tampersand = -1\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t// \" ' [\n\t\t\tcase 34: case 39: case 91:\n\t\t\t\tcharacters += delimit(character)\n\t\t\t\tbreak\n\t\t\t// \\t \\n \\r \\s\n\t\t\tcase 9: case 10: case 13: case 32:\n\t\t\t\tcharacters += whitespace(previous)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tcharacters += escaping(caret() - 1, 7)\n\t\t\t\tcontinue\n\t\t\t// /\n\t\t\tcase 47:\n\t\t\t\tswitch (peek()) {\n\t\t\t\t\tcase 42: case 47:\n\t\t\t\t\t\tappend(comment(commenter(next(), caret()), root, parent), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tcharacters += '/'\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t// {\n\t\t\tcase 123 * variable:\n\t\t\t\tpoints[index++] = strlen(characters) * ampersand\n\t\t\t// } ; \\0\n\t\t\tcase 125 * variable: case 59: case 0:\n\t\t\t\tswitch (character) {\n\t\t\t\t\t// \\0 }\n\t\t\t\t\tcase 0: case 125: scanning = 0\n\t\t\t\t\t// ;\n\t\t\t\t\tcase 59 + offset: if (ampersand == -1) characters = replace(characters, /\\f/g, '')\n\t\t\t\t\t\tif (property > 0 && (strlen(characters) - length))\n\t\t\t\t\t\t\tappend(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @ ;\n\t\t\t\t\tcase 59: characters += ';'\n\t\t\t\t\t// { rule/at-rule\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tappend(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length), rulesets)\n\n\t\t\t\t\t\tif (character === 123)\n\t\t\t\t\t\t\tif (offset === 0)\n\t\t\t\t\t\t\t\tparse(characters, root, reference, reference, props, rulesets, length, points, children)\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tswitch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {\n\t\t\t\t\t\t\t\t\t// d l m s\n\t\t\t\t\t\t\t\t\tcase 100: case 108: case 109: case 115:\n\t\t\t\t\t\t\t\t\t\tparse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children)\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tparse(characters, reference, reference, reference, [''], children, 0, points, children)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tindex = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo\n\t\t\t\tbreak\n\t\t\t// :\n\t\t\tcase 58:\n\t\t\t\tlength = 1 + strlen(characters), property = previous\n\t\t\tdefault:\n\t\t\t\tif (variable < 1)\n\t\t\t\t\tif (character == 123)\n\t\t\t\t\t\t--variable\n\t\t\t\t\telse if (character == 125 && variable++ == 0 && prev() == 125)\n\t\t\t\t\t\tcontinue\n\n\t\t\t\tswitch (characters += from(character), character * variable) {\n\t\t\t\t\t// &\n\t\t\t\t\tcase 38:\n\t\t\t\t\t\tampersand = offset > 0 ? 1 : (characters += '\\f', -1)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// ,\n\t\t\t\t\tcase 44:\n\t\t\t\t\t\tpoints[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @\n\t\t\t\t\tcase 64:\n\t\t\t\t\t\t// -\n\t\t\t\t\t\tif (peek() === 45)\n\t\t\t\t\t\t\tcharacters += delimit(next())\n\n\t\t\t\t\t\tatrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// -\n\t\t\t\t\tcase 45:\n\t\t\t\t\t\tif (previous === 45 && strlen(characters) == 2)\n\t\t\t\t\t\t\tvariable = 0\n\t\t\t\t}\n\t\t}\n\n\treturn rulesets\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} index\n * @param {number} offset\n * @param {string[]} rules\n * @param {number[]} points\n * @param {string} type\n * @param {string[]} props\n * @param {string[]} children\n * @param {number} length\n * @return {object}\n */\nexport function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length) {\n\tvar post = offset - 1\n\tvar rule = offset === 0 ? rules : ['']\n\tvar size = sizeof(rule)\n\n\tfor (var i = 0, j = 0, k = 0; i < index; ++i)\n\t\tfor (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)\n\t\t\tif (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\\f/g, rule[x])))\n\t\t\t\tprops[k++] = z\n\n\treturn node(value, root, parent, offset === 0 ? RULESET : type, props, children, length)\n}\n\n/**\n * @param {number} value\n * @param {object} root\n * @param {object?} parent\n * @return {object}\n */\nexport function comment (value, root, parent) {\n\treturn node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0)\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} length\n * @return {object}\n */\nexport function declaration (value, root, parent, length) {\n\treturn node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length)\n}\n","import {IMPORT, LAYER, COMMENT, RULESET, DECLARATION, KEYFRAMES} from './Enum.js'\nimport {strlen, sizeof} from './Utility.js'\n\n/**\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function serialize (children, callback) {\n\tvar output = ''\n\tvar length = sizeof(children)\n\n\tfor (var i = 0; i < length; i++)\n\t\toutput += callback(children[i], i, children, callback) || ''\n\n\treturn output\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function stringify (element, index, children, callback) {\n\tswitch (element.type) {\n\t\tcase LAYER: if (element.children.length) break\n\t\tcase IMPORT: case DECLARATION: return element.return = element.return || element.value\n\t\tcase COMMENT: return ''\n\t\tcase KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'\n\t\tcase RULESET: element.value = element.props.join(',')\n\t}\n\n\treturn strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''\n}\n","import {MS, MOZ, WEBKIT, RULESET, KEYFRAMES, DECLARATION} from './Enum.js'\nimport {match, charat, substr, strlen, sizeof, replace, combine} from './Utility.js'\nimport {copy, tokenize} from './Tokenizer.js'\nimport {serialize} from './Serializer.js'\nimport {prefix} from './Prefixer.js'\n\n/**\n * @param {function[]} collection\n * @return {function}\n */\nexport function middleware (collection) {\n\tvar length = sizeof(collection)\n\n\treturn function (element, index, children, callback) {\n\t\tvar output = ''\n\n\t\tfor (var i = 0; i < length; i++)\n\t\t\toutput += collection[i](element, index, children, callback) || ''\n\n\t\treturn output\n\t}\n}\n\n/**\n * @param {function} callback\n * @return {function}\n */\nexport function rulesheet (callback) {\n\treturn function (element) {\n\t\tif (!element.root)\n\t\t\tif (element = element.return)\n\t\t\t\tcallback(element)\n\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n */\nexport function prefixer (element, index, children, callback) {\n\tif (element.length > -1)\n\t\tif (!element.return)\n\t\t\tswitch (element.type) {\n\t\t\t\tcase DECLARATION: element.return = prefix(element.value, element.length, children)\n\t\t\t\t\treturn\n\t\t\t\tcase KEYFRAMES:\n\t\t\t\t\treturn serialize([copy(element, {value: replace(element.value, '@', '@' + WEBKIT)})], callback)\n\t\t\t\tcase RULESET:\n\t\t\t\t\tif (element.length)\n\t\t\t\t\t\treturn combine(element.props, function (value) {\n\t\t\t\t\t\t\tswitch (match(value, /(::plac\\w+|:read-\\w+)/)) {\n\t\t\t\t\t\t\t\t// :read-(only|write)\n\t\t\t\t\t\t\t\tcase ':read-only': case ':read-write':\n\t\t\t\t\t\t\t\t\treturn serialize([copy(element, {props: [replace(value, /:(read-\\w+)/, ':' + MOZ + '$1')]})], callback)\n\t\t\t\t\t\t\t\t// :placeholder\n\t\t\t\t\t\t\t\tcase '::placeholder':\n\t\t\t\t\t\t\t\t\treturn serialize([\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, ':' + WEBKIT + 'input-$1')]}),\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, ':' + MOZ + '$1')]}),\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, MS + 'input-$1')]})\n\t\t\t\t\t\t\t\t\t], callback)\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn ''\n\t\t\t\t\t\t})\n\t\t\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n */\nexport function namespace (element) {\n\tswitch (element.type) {\n\t\tcase RULESET:\n\t\t\telement.props = element.props.map(function (value) {\n\t\t\t\treturn combine(tokenize(value), function (value, index, children) {\n\t\t\t\t\tswitch (charat(value, 0)) {\n\t\t\t\t\t\t// \\f\n\t\t\t\t\t\tcase 12:\n\t\t\t\t\t\t\treturn substr(value, 1, strlen(value))\n\t\t\t\t\t\t// \\0 ( + > ~\n\t\t\t\t\t\tcase 0: case 40: case 43: case 62: case 126:\n\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t// :\n\t\t\t\t\t\tcase 58:\n\t\t\t\t\t\t\tif (children[++index] === 'global')\n\t\t\t\t\t\t\t\tchildren[index] = '', children[++index] = '\\f' + substr(children[index], index = 1, -1)\n\t\t\t\t\t\t// \\s\n\t\t\t\t\t\tcase 32:\n\t\t\t\t\t\t\treturn index === 1 ? '' : value\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tswitch (index) {\n\t\t\t\t\t\t\t\tcase 0: element = value\n\t\t\t\t\t\t\t\t\treturn sizeof(children) > 1 ? '' : value\n\t\t\t\t\t\t\t\tcase index = sizeof(children) - 1: case 2:\n\t\t\t\t\t\t\t\t\treturn index === 2 ? value + element + element : value + element\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t}\n}\n","function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n","import { StyleSheet } from '@emotion/sheet';\nimport { dealloc, alloc, next, token, from, peek, delimit, slice, position, RULESET, combine, match, serialize, copy, replace, WEBKIT, MOZ, MS, KEYFRAMES, DECLARATION, hash, charat, strlen, indexof, stringify, rulesheet, middleware, compile } from 'stylis';\nimport '@emotion/weak-memoize';\nimport '@emotion/memoize';\n\nvar identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {\n var previous = 0;\n var character = 0;\n\n while (true) {\n previous = character;\n character = peek(); // &\\f\n\n if (previous === 38 && character === 12) {\n points[index] = 1;\n }\n\n if (token(character)) {\n break;\n }\n\n next();\n }\n\n return slice(begin, position);\n};\n\nvar toRules = function toRules(parsed, points) {\n // pretend we've started with a comma\n var index = -1;\n var character = 44;\n\n do {\n switch (token(character)) {\n case 0:\n // &\\f\n if (character === 38 && peek() === 12) {\n // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings\n // stylis inserts \\f after & to know when & where it should replace this sequence with the context selector\n // and when it should just concatenate the outer and inner selectors\n // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here\n points[index] = 1;\n }\n\n parsed[index] += identifierWithPointTracking(position - 1, points, index);\n break;\n\n case 2:\n parsed[index] += delimit(character);\n break;\n\n case 4:\n // comma\n if (character === 44) {\n // colon\n parsed[++index] = peek() === 58 ? '&\\f' : '';\n points[index] = parsed[index].length;\n break;\n }\n\n // fallthrough\n\n default:\n parsed[index] += from(character);\n }\n } while (character = next());\n\n return parsed;\n};\n\nvar getRules = function getRules(value, points) {\n return dealloc(toRules(alloc(value), points));\n}; // WeakSet would be more appropriate, but only WeakMap is supported in IE11\n\n\nvar fixedElements = /* #__PURE__ */new WeakMap();\nvar compat = function compat(element) {\n if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo\n // negative .length indicates that this rule has been already prefixed\n element.length < 1) {\n return;\n }\n\n var value = element.value;\n var parent = element.parent;\n var isImplicitRule = element.column === parent.column && element.line === parent.line;\n\n while (parent.type !== 'rule') {\n parent = parent.parent;\n if (!parent) return;\n } // short-circuit for the simplest case\n\n\n if (element.props.length === 1 && value.charCodeAt(0) !== 58\n /* colon */\n && !fixedElements.get(parent)) {\n return;\n } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)\n // then the props has already been manipulated beforehand as they that array is shared between it and its \"rule parent\"\n\n\n if (isImplicitRule) {\n return;\n }\n\n fixedElements.set(element, true);\n var points = [];\n var rules = getRules(value, points);\n var parentRules = parent.props;\n\n for (var i = 0, k = 0; i < rules.length; i++) {\n for (var j = 0; j < parentRules.length; j++, k++) {\n element.props[k] = points[i] ? rules[i].replace(/&\\f/g, parentRules[j]) : parentRules[j] + \" \" + rules[i];\n }\n }\n};\nvar removeLabel = function removeLabel(element) {\n if (element.type === 'decl') {\n var value = element.value;\n\n if ( // charcode for l\n value.charCodeAt(0) === 108 && // charcode for b\n value.charCodeAt(2) === 98) {\n // this ignores label\n element[\"return\"] = '';\n element.value = '';\n }\n }\n};\n\n/* eslint-disable no-fallthrough */\n\nfunction prefix(value, length) {\n switch (hash(value, length)) {\n // color-adjust\n case 5103:\n return WEBKIT + 'print-' + value + value;\n // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)\n\n case 5737:\n case 4201:\n case 3177:\n case 3433:\n case 1641:\n case 4457:\n case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break\n\n case 5572:\n case 6356:\n case 5844:\n case 3191:\n case 6645:\n case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,\n\n case 6391:\n case 5879:\n case 5623:\n case 6135:\n case 4599:\n case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)\n\n case 4215:\n case 6389:\n case 5109:\n case 5365:\n case 5621:\n case 3829:\n return WEBKIT + value + value;\n // appearance, user-select, transform, hyphens, text-size-adjust\n\n case 5349:\n case 4246:\n case 4810:\n case 6968:\n case 2756:\n return WEBKIT + value + MOZ + value + MS + value + value;\n // flex, flex-direction\n\n case 6828:\n case 4268:\n return WEBKIT + value + MS + value + value;\n // order\n\n case 6165:\n return WEBKIT + value + MS + 'flex-' + value + value;\n // align-items\n\n case 5187:\n return WEBKIT + value + replace(value, /(\\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;\n // align-self\n\n case 5443:\n return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;\n // align-content\n\n case 4675:\n return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;\n // flex-shrink\n\n case 5548:\n return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;\n // flex-basis\n\n case 5292:\n return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;\n // flex-grow\n\n case 6060:\n return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;\n // transition\n\n case 4554:\n return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;\n // cursor\n\n case 6187:\n return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;\n // background, background-image\n\n case 5495:\n case 3959:\n return replace(value, /(image-set\\([^]*)/, WEBKIT + '$1' + '$`$1');\n // justify-content\n\n case 4968:\n return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;\n // (margin|padding)-inline-(start|end)\n\n case 4095:\n case 3583:\n case 4068:\n case 2532:\n return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;\n // (min|max)?(width|height|inline-size|block-size)\n\n case 8116:\n case 7059:\n case 5753:\n case 5535:\n case 5445:\n case 5701:\n case 4933:\n case 4677:\n case 5533:\n case 5789:\n case 5021:\n case 4765:\n // stretch, max-content, min-content, fill-available\n if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {\n // (m)ax-content, (m)in-content\n case 109:\n // -\n if (charat(value, length + 4) !== 45) break;\n // (f)ill-available, (f)it-content\n\n case 102:\n return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;\n // (s)tretch\n\n case 115:\n return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;\n }\n break;\n // position: sticky\n\n case 4949:\n // (s)ticky?\n if (charat(value, length + 1) !== 115) break;\n // display: (flex|inline-flex)\n\n case 6444:\n switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {\n // stic(k)y\n case 107:\n return replace(value, ':', ':' + WEBKIT) + value;\n // (inline-)?fl(e)x\n\n case 101:\n return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;\n }\n\n break;\n // writing-mode\n\n case 5936:\n switch (charat(value, length + 11)) {\n // vertical-l(r)\n case 114:\n return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb') + value;\n // vertical-r(l)\n\n case 108:\n return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb-rl') + value;\n // horizontal(-)tb\n\n case 45:\n return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'lr') + value;\n }\n\n return WEBKIT + value + MS + value + value;\n }\n\n return value;\n}\n\nvar prefixer = function prefixer(element, index, children, callback) {\n if (element.length > -1) if (!element[\"return\"]) switch (element.type) {\n case DECLARATION:\n element[\"return\"] = prefix(element.value, element.length);\n break;\n\n case KEYFRAMES:\n return serialize([copy(element, {\n value: replace(element.value, '@', '@' + WEBKIT)\n })], callback);\n\n case RULESET:\n if (element.length) return combine(element.props, function (value) {\n switch (match(value, /(::plac\\w+|:read-\\w+)/)) {\n // :read-(only|write)\n case ':read-only':\n case ':read-write':\n return serialize([copy(element, {\n props: [replace(value, /:(read-\\w+)/, ':' + MOZ + '$1')]\n })], callback);\n // :placeholder\n\n case '::placeholder':\n return serialize([copy(element, {\n props: [replace(value, /:(plac\\w+)/, ':' + WEBKIT + 'input-$1')]\n }), copy(element, {\n props: [replace(value, /:(plac\\w+)/, ':' + MOZ + '$1')]\n }), copy(element, {\n props: [replace(value, /:(plac\\w+)/, MS + 'input-$1')]\n })], callback);\n }\n\n return '';\n });\n }\n};\n\nvar defaultStylisPlugins = [prefixer];\n\nvar createCache = function createCache(options) {\n var key = options.key;\n\n if (key === 'css') {\n var ssrStyles = document.querySelectorAll(\"style[data-emotion]:not([data-s])\"); // get SSRed styles out of the way of React's hydration\n // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)\n // note this very very intentionally targets all style elements regardless of the key to ensure\n // that creating a cache works inside of render of a React component\n\n Array.prototype.forEach.call(ssrStyles, function (node) {\n // we want to only move elements which have a space in the data-emotion attribute value\n // because that indicates that it is an Emotion 11 server-side rendered style elements\n // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector\n // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)\n // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles\n // will not result in the Emotion 10 styles being destroyed\n var dataEmotionAttribute = node.getAttribute('data-emotion');\n\n if (dataEmotionAttribute.indexOf(' ') === -1) {\n return;\n }\n\n document.head.appendChild(node);\n node.setAttribute('data-s', '');\n });\n }\n\n var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;\n\n var inserted = {};\n var container;\n var nodesToHydrate = [];\n\n {\n container = options.container || document.head;\n Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which\n // means that the style elements we're looking at are only Emotion 11 server-rendered style elements\n document.querySelectorAll(\"style[data-emotion^=\\\"\" + key + \" \\\"]\"), function (node) {\n var attrib = node.getAttribute(\"data-emotion\").split(' ');\n\n for (var i = 1; i < attrib.length; i++) {\n inserted[attrib[i]] = true;\n }\n\n nodesToHydrate.push(node);\n });\n }\n\n var _insert;\n\n var omnipresentPlugins = [compat, removeLabel];\n\n {\n var currentSheet;\n var finalizingPlugins = [stringify, rulesheet(function (rule) {\n currentSheet.insert(rule);\n })];\n var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));\n\n var stylis = function stylis(styles) {\n return serialize(compile(styles), serializer);\n };\n\n _insert = function insert(selector, serialized, sheet, shouldCache) {\n currentSheet = sheet;\n\n stylis(selector ? selector + \"{\" + serialized.styles + \"}\" : serialized.styles);\n\n if (shouldCache) {\n cache.inserted[serialized.name] = true;\n }\n };\n }\n\n var cache = {\n key: key,\n sheet: new StyleSheet({\n key: key,\n container: container,\n nonce: options.nonce,\n speedy: options.speedy,\n prepend: options.prepend,\n insertionPoint: options.insertionPoint\n }),\n nonce: options.nonce,\n inserted: inserted,\n registered: {},\n insert: _insert\n };\n cache.sheet.hydrate(nodesToHydrate);\n return cache;\n};\n\nexport { createCache as default };\n","function _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, _extends.apply(null, arguments);\n}\nexport { _extends as default };","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\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\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","var isBrowser = true;\n\nfunction getRegisteredStyles(registered, registeredStyles, classNames) {\n var rawClassName = '';\n classNames.split(' ').forEach(function (className) {\n if (registered[className] !== undefined) {\n registeredStyles.push(registered[className] + \";\");\n } else if (className) {\n rawClassName += className + \" \";\n }\n });\n return rawClassName;\n}\nvar registerStyles = function registerStyles(cache, serialized, isStringTag) {\n var className = cache.key + \"-\" + serialized.name;\n\n if ( // we only need to add the styles to the registered cache if the\n // class name could be used further down\n // the tree but if it's a string tag, we know it won't\n // so we don't have to add it to registered cache.\n // this improves memory usage since we can avoid storing the whole style string\n (isStringTag === false || // we need to always store it if we're in compat mode and\n // in node since emotion-server relies on whether a style is in\n // the registered cache to know whether a style is global or not\n // also, note that this check will be dead code eliminated in the browser\n isBrowser === false ) && cache.registered[className] === undefined) {\n cache.registered[className] = serialized.styles;\n }\n};\nvar insertStyles = function insertStyles(cache, serialized, isStringTag) {\n registerStyles(cache, serialized, isStringTag);\n var className = cache.key + \"-\" + serialized.name;\n\n if (cache.inserted[serialized.name] === undefined) {\n var current = serialized;\n\n do {\n cache.insert(serialized === current ? \".\" + className : '', current, cache.sheet, true);\n\n current = current.next;\n } while (current !== undefined);\n }\n};\n\nexport { getRegisteredStyles, insertStyles, registerStyles };\n","/* eslint-disable */\n// Inspired by https://github.com/garycourt/murmurhash-js\n// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86\nfunction murmur2(str) {\n // 'm' and 'r' are mixing constants generated offline.\n // They're not really 'magic', they just happen to work well.\n // const m = 0x5bd1e995;\n // const r = 24;\n // Initialize the hash\n var h = 0; // Mix 4 bytes at a time into the hash\n\n var k,\n i = 0,\n len = str.length;\n\n for (; len >= 4; ++i, len -= 4) {\n k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n k =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);\n k ^=\n /* k >>> r: */\n k >>> 24;\n h =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Handle the last few bytes of the input array\n\n\n switch (len) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n\n case 2:\n h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n\n case 1:\n h ^= str.charCodeAt(i) & 0xff;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Do a few final mixes of the hash to ensure the last few\n // bytes are well-incorporated.\n\n\n h ^= h >>> 13;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n return ((h ^ h >>> 15) >>> 0).toString(36);\n}\n\nexport { murmur2 as default };\n","var unitlessKeys = {\n animationIterationCount: 1,\n aspectRatio: 1,\n borderImageOutset: 1,\n borderImageSlice: 1,\n borderImageWidth: 1,\n boxFlex: 1,\n boxFlexGroup: 1,\n boxOrdinalGroup: 1,\n columnCount: 1,\n columns: 1,\n flex: 1,\n flexGrow: 1,\n flexPositive: 1,\n flexShrink: 1,\n flexNegative: 1,\n flexOrder: 1,\n gridRow: 1,\n gridRowEnd: 1,\n gridRowSpan: 1,\n gridRowStart: 1,\n gridColumn: 1,\n gridColumnEnd: 1,\n gridColumnSpan: 1,\n gridColumnStart: 1,\n msGridRow: 1,\n msGridRowSpan: 1,\n msGridColumn: 1,\n msGridColumnSpan: 1,\n fontWeight: 1,\n lineHeight: 1,\n opacity: 1,\n order: 1,\n orphans: 1,\n scale: 1,\n tabSize: 1,\n widows: 1,\n zIndex: 1,\n zoom: 1,\n WebkitLineClamp: 1,\n // SVG-related properties\n fillOpacity: 1,\n floodOpacity: 1,\n stopOpacity: 1,\n strokeDasharray: 1,\n strokeDashoffset: 1,\n strokeMiterlimit: 1,\n strokeOpacity: 1,\n strokeWidth: 1\n};\n\nexport { unitlessKeys as default };\n","import hashString from '@emotion/hash';\nimport unitless from '@emotion/unitless';\nimport memoize from '@emotion/memoize';\n\nvar isDevelopment = false;\n\nvar hyphenateRegex = /[A-Z]|^ms/g;\nvar animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;\n\nvar isCustomProperty = function isCustomProperty(property) {\n return property.charCodeAt(1) === 45;\n};\n\nvar isProcessableValue = function isProcessableValue(value) {\n return value != null && typeof value !== 'boolean';\n};\n\nvar processStyleName = /* #__PURE__ */memoize(function (styleName) {\n return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();\n});\n\nvar processStyleValue = function processStyleValue(key, value) {\n switch (key) {\n case 'animation':\n case 'animationName':\n {\n if (typeof value === 'string') {\n return value.replace(animationRegex, function (match, p1, p2) {\n cursor = {\n name: p1,\n styles: p2,\n next: cursor\n };\n return p1;\n });\n }\n }\n }\n\n if (unitless[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {\n return value + 'px';\n }\n\n return value;\n};\n\nvar noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';\n\nfunction handleInterpolation(mergedProps, registered, interpolation) {\n if (interpolation == null) {\n return '';\n }\n\n var componentSelector = interpolation;\n\n if (componentSelector.__emotion_styles !== undefined) {\n\n return componentSelector;\n }\n\n switch (typeof interpolation) {\n case 'boolean':\n {\n return '';\n }\n\n case 'object':\n {\n var keyframes = interpolation;\n\n if (keyframes.anim === 1) {\n cursor = {\n name: keyframes.name,\n styles: keyframes.styles,\n next: cursor\n };\n return keyframes.name;\n }\n\n var serializedStyles = interpolation;\n\n if (serializedStyles.styles !== undefined) {\n var next = serializedStyles.next;\n\n if (next !== undefined) {\n // not the most efficient thing ever but this is a pretty rare case\n // and there will be very few iterations of this generally\n while (next !== undefined) {\n cursor = {\n name: next.name,\n styles: next.styles,\n next: cursor\n };\n next = next.next;\n }\n }\n\n var styles = serializedStyles.styles + \";\";\n return styles;\n }\n\n return createStringFromObject(mergedProps, registered, interpolation);\n }\n\n case 'function':\n {\n if (mergedProps !== undefined) {\n var previousCursor = cursor;\n var result = interpolation(mergedProps);\n cursor = previousCursor;\n return handleInterpolation(mergedProps, registered, result);\n }\n\n break;\n }\n } // finalize string values (regular strings and functions interpolated into css calls)\n\n\n var asString = interpolation;\n\n if (registered == null) {\n return asString;\n }\n\n var cached = registered[asString];\n return cached !== undefined ? cached : asString;\n}\n\nfunction createStringFromObject(mergedProps, registered, obj) {\n var string = '';\n\n if (Array.isArray(obj)) {\n for (var i = 0; i < obj.length; i++) {\n string += handleInterpolation(mergedProps, registered, obj[i]) + \";\";\n }\n } else {\n for (var key in obj) {\n var value = obj[key];\n\n if (typeof value !== 'object') {\n var asString = value;\n\n if (registered != null && registered[asString] !== undefined) {\n string += key + \"{\" + registered[asString] + \"}\";\n } else if (isProcessableValue(asString)) {\n string += processStyleName(key) + \":\" + processStyleValue(key, asString) + \";\";\n }\n } else {\n if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment) {\n throw new Error(noComponentSelectorMessage);\n }\n\n if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {\n for (var _i = 0; _i < value.length; _i++) {\n if (isProcessableValue(value[_i])) {\n string += processStyleName(key) + \":\" + processStyleValue(key, value[_i]) + \";\";\n }\n }\n } else {\n var interpolated = handleInterpolation(mergedProps, registered, value);\n\n switch (key) {\n case 'animation':\n case 'animationName':\n {\n string += processStyleName(key) + \":\" + interpolated + \";\";\n break;\n }\n\n default:\n {\n\n string += key + \"{\" + interpolated + \"}\";\n }\n }\n }\n }\n }\n }\n\n return string;\n}\n\nvar labelPattern = /label:\\s*([^\\s;{]+)\\s*(;|$)/g; // this is the cursor for keyframes\n// keyframes are stored on the SerializedStyles object as a linked list\n\nvar cursor;\nfunction serializeStyles(args, registered, mergedProps) {\n if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {\n return args[0];\n }\n\n var stringMode = true;\n var styles = '';\n cursor = undefined;\n var strings = args[0];\n\n if (strings == null || strings.raw === undefined) {\n stringMode = false;\n styles += handleInterpolation(mergedProps, registered, strings);\n } else {\n var asTemplateStringsArr = strings;\n\n styles += asTemplateStringsArr[0];\n } // we start at 1 since we've already handled the first arg\n\n\n for (var i = 1; i < args.length; i++) {\n styles += handleInterpolation(mergedProps, registered, args[i]);\n\n if (stringMode) {\n var templateStringsArr = strings;\n\n styles += templateStringsArr[i];\n }\n } // using a global regex with .exec is stateful so lastIndex has to be reset each time\n\n\n labelPattern.lastIndex = 0;\n var identifierName = '';\n var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5\n\n while ((match = labelPattern.exec(styles)) !== null) {\n identifierName += '-' + match[1];\n }\n\n var name = hashString(styles) + identifierName;\n\n return {\n name: name,\n styles: styles,\n next: cursor\n };\n}\n\nexport { serializeStyles };\n","import * as React from 'react';\n\nvar syncFallback = function syncFallback(create) {\n return create();\n};\n\nvar useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;\nvar useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;\nvar useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect;\n\nexport { useInsertionEffectAlwaysWithSyncFallback, useInsertionEffectWithLayoutFallback };\n","import * as React from 'react';\nimport { useContext, forwardRef } from 'react';\nimport createCache from '@emotion/cache';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport weakMemoize from '@emotion/weak-memoize';\nimport hoistNonReactStatics from '../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js';\nimport { getRegisteredStyles, registerStyles, insertStyles } from '@emotion/utils';\nimport { serializeStyles } from '@emotion/serialize';\nimport { useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\n\nvar isDevelopment = false;\n\nvar EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case\n// because this module is primarily intended for the browser and node\n// but it's also required in react native and similar environments sometimes\n// and we could have a special build just for that\n// but this is much easier and the native packages\n// might use a different theme context in the future anyway\ntypeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({\n key: 'css'\n}) : null);\n\nvar CacheProvider = EmotionCacheContext.Provider;\nvar __unsafe_useEmotionCache = function useEmotionCache() {\n return useContext(EmotionCacheContext);\n};\n\nvar withEmotionCache = function withEmotionCache(func) {\n return /*#__PURE__*/forwardRef(function (props, ref) {\n // the cache will never be null in the browser\n var cache = useContext(EmotionCacheContext);\n return func(props, cache, ref);\n });\n};\n\nvar ThemeContext = /* #__PURE__ */React.createContext({});\n\nvar useTheme = function useTheme() {\n return React.useContext(ThemeContext);\n};\n\nvar getTheme = function getTheme(outerTheme, theme) {\n if (typeof theme === 'function') {\n var mergedTheme = theme(outerTheme);\n\n return mergedTheme;\n }\n\n return _extends({}, outerTheme, theme);\n};\n\nvar createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {\n return weakMemoize(function (theme) {\n return getTheme(outerTheme, theme);\n });\n});\nvar ThemeProvider = function ThemeProvider(props) {\n var theme = React.useContext(ThemeContext);\n\n if (props.theme !== theme) {\n theme = createCacheWithTheme(theme)(props.theme);\n }\n\n return /*#__PURE__*/React.createElement(ThemeContext.Provider, {\n value: theme\n }, props.children);\n};\nfunction withTheme(Component) {\n var componentName = Component.displayName || Component.name || 'Component';\n var WithTheme = /*#__PURE__*/React.forwardRef(function render(props, ref) {\n var theme = React.useContext(ThemeContext);\n return /*#__PURE__*/React.createElement(Component, _extends({\n theme: theme,\n ref: ref\n }, props));\n });\n WithTheme.displayName = \"WithTheme(\" + componentName + \")\";\n return hoistNonReactStatics(WithTheme, Component);\n}\n\nvar hasOwn = {}.hasOwnProperty;\n\nvar typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';\nvar createEmotionProps = function createEmotionProps(type, props) {\n\n var newProps = {};\n\n for (var _key in props) {\n if (hasOwn.call(props, _key)) {\n newProps[_key] = props[_key];\n }\n }\n\n newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:\n\n return newProps;\n};\n\nvar Insertion = function Insertion(_ref) {\n var cache = _ref.cache,\n serialized = _ref.serialized,\n isStringTag = _ref.isStringTag;\n registerStyles(cache, serialized, isStringTag);\n useInsertionEffectAlwaysWithSyncFallback(function () {\n return insertStyles(cache, serialized, isStringTag);\n });\n\n return null;\n};\n\nvar Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {\n var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works\n // not passing the registered cache to serializeStyles because it would\n // make certain babel optimisations not possible\n\n if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {\n cssProp = cache.registered[cssProp];\n }\n\n var WrappedComponent = props[typePropName];\n var registeredStyles = [cssProp];\n var className = '';\n\n if (typeof props.className === 'string') {\n className = getRegisteredStyles(cache.registered, registeredStyles, props.className);\n } else if (props.className != null) {\n className = props.className + \" \";\n }\n\n var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));\n\n className += cache.key + \"-\" + serialized.name;\n var newProps = {};\n\n for (var _key2 in props) {\n if (hasOwn.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && (!isDevelopment )) {\n newProps[_key2] = props[_key2];\n }\n }\n\n newProps.className = className;\n\n if (ref) {\n newProps.ref = ref;\n }\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n cache: cache,\n serialized: serialized,\n isStringTag: typeof WrappedComponent === 'string'\n }), /*#__PURE__*/React.createElement(WrappedComponent, newProps));\n});\n\nvar Emotion$1 = Emotion;\n\nexport { CacheProvider as C, Emotion$1 as E, ThemeContext as T, __unsafe_useEmotionCache as _, ThemeProvider as a, withTheme as b, createEmotionProps as c, hasOwn as h, isDevelopment as i, useTheme as u, withEmotionCache as w };\n","import * as ReactJSXRuntime from 'react/jsx-runtime';\nimport { h as hasOwn, E as Emotion, c as createEmotionProps } from '../../dist/emotion-element-f0de968e.browser.esm.js';\nimport 'react';\nimport '@emotion/cache';\nimport '@babel/runtime/helpers/extends';\nimport '@emotion/weak-memoize';\nimport '../../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js';\nimport 'hoist-non-react-statics';\nimport '@emotion/utils';\nimport '@emotion/serialize';\nimport '@emotion/use-insertion-effect-with-fallbacks';\n\nvar Fragment = ReactJSXRuntime.Fragment;\nvar jsx = function jsx(type, props, key) {\n if (!hasOwn.call(props, 'css')) {\n return ReactJSXRuntime.jsx(type, props, key);\n }\n\n return ReactJSXRuntime.jsx(Emotion, createEmotionProps(type, props), key);\n};\nvar jsxs = function jsxs(type, props, key) {\n if (!hasOwn.call(props, 'css')) {\n return ReactJSXRuntime.jsxs(type, props, key);\n }\n\n return ReactJSXRuntime.jsxs(Emotion, createEmotionProps(type, props), key);\n};\n\nexport { Fragment, jsx, jsxs };\n","import { h as hasOwn, E as Emotion, c as createEmotionProps, w as withEmotionCache, T as ThemeContext, i as isDevelopment } from './emotion-element-f0de968e.browser.esm.js';\nexport { C as CacheProvider, T as ThemeContext, a as ThemeProvider, _ as __unsafe_useEmotionCache, u as useTheme, w as withEmotionCache, b as withTheme } from './emotion-element-f0de968e.browser.esm.js';\nimport * as React from 'react';\nimport { insertStyles, registerStyles, getRegisteredStyles } from '@emotion/utils';\nimport { useInsertionEffectWithLayoutFallback, useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\nimport { serializeStyles } from '@emotion/serialize';\nimport '@emotion/cache';\nimport '@babel/runtime/helpers/extends';\nimport '@emotion/weak-memoize';\nimport '../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js';\nimport 'hoist-non-react-statics';\n\nvar jsx = function jsx(type, props) {\n // eslint-disable-next-line prefer-rest-params\n var args = arguments;\n\n if (props == null || !hasOwn.call(props, 'css')) {\n return React.createElement.apply(undefined, args);\n }\n\n var argsLength = args.length;\n var createElementArgArray = new Array(argsLength);\n createElementArgArray[0] = Emotion;\n createElementArgArray[1] = createEmotionProps(type, props);\n\n for (var i = 2; i < argsLength; i++) {\n createElementArgArray[i] = args[i];\n }\n\n return React.createElement.apply(null, createElementArgArray);\n};\n\n(function (_jsx) {\n var JSX;\n\n (function (_JSX) {})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));\n})(jsx || (jsx = {}));\n\n// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild\n// initial client-side render from SSR, use place of hydrating tag\n\nvar Global = /* #__PURE__ */withEmotionCache(function (props, cache) {\n\n var styles = props.styles;\n var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext));\n // but it is based on a constant that will never change at runtime\n // it's effectively like having two implementations and switching them out\n // so it's not actually breaking anything\n\n\n var sheetRef = React.useRef();\n useInsertionEffectWithLayoutFallback(function () {\n var key = cache.key + \"-global\"; // use case of https://github.com/emotion-js/emotion/issues/2675\n\n var sheet = new cache.sheet.constructor({\n key: key,\n nonce: cache.sheet.nonce,\n container: cache.sheet.container,\n speedy: cache.sheet.isSpeedy\n });\n var rehydrating = false;\n var node = document.querySelector(\"style[data-emotion=\\\"\" + key + \" \" + serialized.name + \"\\\"]\");\n\n if (cache.sheet.tags.length) {\n sheet.before = cache.sheet.tags[0];\n }\n\n if (node !== null) {\n rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other <Global/>s\n\n node.setAttribute('data-emotion', key);\n sheet.hydrate([node]);\n }\n\n sheetRef.current = [sheet, rehydrating];\n return function () {\n sheet.flush();\n };\n }, [cache]);\n useInsertionEffectWithLayoutFallback(function () {\n var sheetRefCurrent = sheetRef.current;\n var sheet = sheetRefCurrent[0],\n rehydrating = sheetRefCurrent[1];\n\n if (rehydrating) {\n sheetRefCurrent[1] = false;\n return;\n }\n\n if (serialized.next !== undefined) {\n // insert keyframes\n insertStyles(cache, serialized.next, true);\n }\n\n if (sheet.tags.length) {\n // if this doesn't exist then it will be null so the style element will be appended\n var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;\n sheet.before = element;\n sheet.flush();\n }\n\n cache.insert(\"\", serialized, sheet, false);\n }, [cache, serialized.name]);\n return null;\n});\n\nfunction css() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return serializeStyles(args);\n}\n\nfunction keyframes() {\n var insertable = css.apply(void 0, arguments);\n var name = \"animation-\" + insertable.name;\n return {\n name: name,\n styles: \"@keyframes \" + name + \"{\" + insertable.styles + \"}\",\n anim: 1,\n toString: function toString() {\n return \"_EMO_\" + this.name + \"_\" + this.styles + \"_EMO_\";\n }\n };\n}\n\nvar classnames = function classnames(args) {\n var len = args.length;\n var i = 0;\n var cls = '';\n\n for (; i < len; i++) {\n var arg = args[i];\n if (arg == null) continue;\n var toAdd = void 0;\n\n switch (typeof arg) {\n case 'boolean':\n break;\n\n case 'object':\n {\n if (Array.isArray(arg)) {\n toAdd = classnames(arg);\n } else {\n\n toAdd = '';\n\n for (var k in arg) {\n if (arg[k] && k) {\n toAdd && (toAdd += ' ');\n toAdd += k;\n }\n }\n }\n\n break;\n }\n\n default:\n {\n toAdd = arg;\n }\n }\n\n if (toAdd) {\n cls && (cls += ' ');\n cls += toAdd;\n }\n }\n\n return cls;\n};\n\nfunction merge(registered, css, className) {\n var registeredStyles = [];\n var rawClassName = getRegisteredStyles(registered, registeredStyles, className);\n\n if (registeredStyles.length < 2) {\n return className;\n }\n\n return rawClassName + css(registeredStyles);\n}\n\nvar Insertion = function Insertion(_ref) {\n var cache = _ref.cache,\n serializedArr = _ref.serializedArr;\n useInsertionEffectAlwaysWithSyncFallback(function () {\n\n for (var i = 0; i < serializedArr.length; i++) {\n insertStyles(cache, serializedArr[i], false);\n }\n });\n\n return null;\n};\n\nvar ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {\n var hasRendered = false;\n var serializedArr = [];\n\n var css = function css() {\n if (hasRendered && isDevelopment) {\n throw new Error('css can only be used during render');\n }\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var serialized = serializeStyles(args, cache.registered);\n serializedArr.push(serialized); // registration has to happen here as the result of this might get consumed by `cx`\n\n registerStyles(cache, serialized, false);\n return cache.key + \"-\" + serialized.name;\n };\n\n var cx = function cx() {\n if (hasRendered && isDevelopment) {\n throw new Error('cx can only be used during render');\n }\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return merge(cache.registered, css, classnames(args));\n };\n\n var content = {\n css: css,\n cx: cx,\n theme: React.useContext(ThemeContext)\n };\n var ele = props.children(content);\n hasRendered = true;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n cache: cache,\n serializedArr: serializedArr\n }), ele);\n});\n\nexport { ClassNames, Global, jsx as createElement, css, jsx, keyframes };\n","/**\n * WARNING: Don't import this directly. It's imported by the code generated by\n * `@mui/interal-babel-plugin-minify-errors`. Make sure to always use string literals in `Error`\n * constructors to ensure the plugin works as expected. Supported patterns include:\n * throw new Error('My message');\n * throw new Error(`My message: ${foo}`);\n * throw new Error(`My message: ${foo}` + 'another string');\n * ...\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code, ...args) {\n const url = new URL(`https://mui.com/production-error/?code=${code}`);\n args.forEach(arg => url.searchParams.append('args[]', arg));\n return `Minified MUI error #${code}; visit ${url} for the full message.`;\n}","export default '$$material';","import memoize from '@emotion/memoize';\n\n// eslint-disable-next-line no-undef\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar isPropValid = /* #__PURE__ */memoize(function (prop) {\n return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n /* o */\n && prop.charCodeAt(1) === 110\n /* n */\n && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport { isPropValid as default };\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport { withEmotionCache, ThemeContext } from '@emotion/react';\nimport { serializeStyles } from '@emotion/serialize';\nimport { useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\nimport { getRegisteredStyles, registerStyles, insertStyles } from '@emotion/utils';\nimport * as React from 'react';\nimport isPropValid from '@emotion/is-prop-valid';\n\nvar isDevelopment = false;\n\nvar testOmitPropsOnStringTag = isPropValid;\n\nvar testOmitPropsOnComponent = function testOmitPropsOnComponent(key) {\n return key !== 'theme';\n};\n\nvar getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag) {\n return typeof tag === 'string' && // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;\n};\nvar composeShouldForwardProps = function composeShouldForwardProps(tag, options, isReal) {\n var shouldForwardProp;\n\n if (options) {\n var optionsShouldForwardProp = options.shouldForwardProp;\n shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function (propName) {\n return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);\n } : optionsShouldForwardProp;\n }\n\n if (typeof shouldForwardProp !== 'function' && isReal) {\n shouldForwardProp = tag.__emotion_forwardProp;\n }\n\n return shouldForwardProp;\n};\n\nvar Insertion = function Insertion(_ref) {\n var cache = _ref.cache,\n serialized = _ref.serialized,\n isStringTag = _ref.isStringTag;\n registerStyles(cache, serialized, isStringTag);\n useInsertionEffectAlwaysWithSyncFallback(function () {\n return insertStyles(cache, serialized, isStringTag);\n });\n\n return null;\n};\n\nvar createStyled = function createStyled(tag, options) {\n\n var isReal = tag.__emotion_real === tag;\n var baseTag = isReal && tag.__emotion_base || tag;\n var identifierName;\n var targetClassName;\n\n if (options !== undefined) {\n identifierName = options.label;\n targetClassName = options.target;\n }\n\n var shouldForwardProp = composeShouldForwardProps(tag, options, isReal);\n var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag);\n var shouldUseAs = !defaultShouldForwardProp('as');\n return function () {\n // eslint-disable-next-line prefer-rest-params\n var args = arguments;\n var styles = isReal && tag.__emotion_styles !== undefined ? tag.__emotion_styles.slice(0) : [];\n\n if (identifierName !== undefined) {\n styles.push(\"label:\" + identifierName + \";\");\n }\n\n if (args[0] == null || args[0].raw === undefined) {\n // eslint-disable-next-line prefer-spread\n styles.push.apply(styles, args);\n } else {\n var templateStringsArr = args[0];\n\n styles.push(templateStringsArr[0]);\n var len = args.length;\n var i = 1;\n\n for (; i < len; i++) {\n\n styles.push(args[i], templateStringsArr[i]);\n }\n }\n\n var Styled = withEmotionCache(function (props, cache, ref) {\n var FinalTag = shouldUseAs && props.as || baseTag;\n var className = '';\n var classInterpolations = [];\n var mergedProps = props;\n\n if (props.theme == null) {\n mergedProps = {};\n\n for (var key in props) {\n mergedProps[key] = props[key];\n }\n\n mergedProps.theme = React.useContext(ThemeContext);\n }\n\n if (typeof props.className === 'string') {\n className = getRegisteredStyles(cache.registered, classInterpolations, props.className);\n } else if (props.className != null) {\n className = props.className + \" \";\n }\n\n var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);\n className += cache.key + \"-\" + serialized.name;\n\n if (targetClassName !== undefined) {\n className += \" \" + targetClassName;\n }\n\n var finalShouldForwardProp = shouldUseAs && shouldForwardProp === undefined ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;\n var newProps = {};\n\n for (var _key in props) {\n if (shouldUseAs && _key === 'as') continue;\n\n if (finalShouldForwardProp(_key)) {\n newProps[_key] = props[_key];\n }\n }\n\n newProps.className = className;\n\n if (ref) {\n newProps.ref = ref;\n }\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n cache: cache,\n serialized: serialized,\n isStringTag: typeof FinalTag === 'string'\n }), /*#__PURE__*/React.createElement(FinalTag, newProps));\n });\n Styled.displayName = identifierName !== undefined ? identifierName : \"Styled(\" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + \")\";\n Styled.defaultProps = tag.defaultProps;\n Styled.__emotion_real = Styled;\n Styled.__emotion_base = baseTag;\n Styled.__emotion_styles = styles;\n Styled.__emotion_forwardProp = shouldForwardProp;\n Object.defineProperty(Styled, 'toString', {\n value: function value() {\n if (targetClassName === undefined && isDevelopment) {\n return 'NO_COMPONENT_SELECTOR';\n }\n\n return \".\" + targetClassName;\n }\n });\n\n Styled.withComponent = function (nextTag, nextOptions) {\n var newStyled = createStyled(nextTag, _extends({}, options, nextOptions, {\n shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)\n }));\n return newStyled.apply(void 0, styles);\n };\n\n return Styled;\n };\n};\n\nexport { createStyled as default };\n","import createStyled from '../base/dist/emotion-styled-base.browser.esm.js';\nimport '@babel/runtime/helpers/extends';\nimport '@emotion/react';\nimport '@emotion/serialize';\nimport '@emotion/use-insertion-effect-with-fallbacks';\nimport '@emotion/utils';\nimport 'react';\nimport '@emotion/is-prop-valid';\n\nvar tags = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr', // SVG\n'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];\n\n// bind it to avoid mutating the original function\nvar newStyled = createStyled.bind(null);\ntags.forEach(function (tagName) {\n newStyled[tagName] = newStyled(tagName);\n});\n\nexport { newStyled as default };\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\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\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\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\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\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { Global } from '@emotion/react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction isEmpty(obj) {\n return obj === undefined || obj === null || Object.keys(obj).length === 0;\n}\nexport default function GlobalStyles(props) {\n const {\n styles,\n defaultTheme = {}\n } = props;\n const globalStyles = typeof styles === 'function' ? themeInput => styles(isEmpty(themeInput) ? defaultTheme : themeInput) : styles;\n return /*#__PURE__*/_jsx(Global, {\n styles: globalStyles\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GlobalStyles.propTypes = {\n defaultTheme: PropTypes.object,\n styles: PropTypes.oneOfType([PropTypes.array, PropTypes.string, PropTypes.object, PropTypes.func])\n} : void 0;","/**\n * @mui/styled-engine v7.0.2\n *\n * @license MIT\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'use client';\n\n/* eslint-disable no-underscore-dangle */\nimport emStyled from '@emotion/styled';\nimport { serializeStyles as emSerializeStyles } from '@emotion/serialize';\nexport default function styled(tag, options) {\n const stylesFactory = emStyled(tag, options);\n if (process.env.NODE_ENV !== 'production') {\n return (...styles) => {\n const component = typeof tag === 'string' ? `\"${tag}\"` : 'component';\n if (styles.length === 0) {\n console.error([`MUI: Seems like you called \\`styled(${component})()\\` without a \\`style\\` argument.`, 'You must provide a `styles` argument: `styled(\"div\")(styleYouForgotToPass)`.'].join('\\n'));\n } else if (styles.some(style => style === undefined)) {\n console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);\n }\n return stylesFactory(...styles);\n };\n }\n return stylesFactory;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function internal_mutateStyles(tag, processor) {\n // Emotion attaches all the styles as `__emotion_styles`.\n // Ref: https://github.com/emotion-js/emotion/blob/16d971d0da229596d6bcc39d282ba9753c9ee7cf/packages/styled/src/base.js#L186\n if (Array.isArray(tag.__emotion_styles)) {\n tag.__emotion_styles = processor(tag.__emotion_styles);\n }\n}\n\n// Emotion only accepts an array, but we want to avoid allocations\nconst wrapper = [];\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function internal_serializeStyles(styles) {\n wrapper[0] = styles;\n return emSerializeStyles(wrapper);\n}\nexport { ThemeContext, keyframes, css } from '@emotion/react';\nexport { default as StyledEngineProvider } from \"./StyledEngineProvider/index.js\";\nexport { default as GlobalStyles } from \"./GlobalStyles/index.js\";","/**\n * @license React\n * react-is.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\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\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\nSymbol.for(\"react.provider\");\nvar REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\nfunction typeOf(object) {\n if (\"object\" === typeof object && null !== object) {\n var $$typeof = object.$$typeof;\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n switch (((object = object.type), object)) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n case REACT_VIEW_TRANSITION_TYPE:\n return object;\n default:\n switch (((object = object && object.$$typeof), object)) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n return object;\n case REACT_CONSUMER_TYPE:\n return object;\n default:\n return $$typeof;\n }\n }\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n}\nexports.ContextConsumer = REACT_CONSUMER_TYPE;\nexports.ContextProvider = REACT_CONTEXT_TYPE;\nexports.Element = REACT_ELEMENT_TYPE;\nexports.ForwardRef = REACT_FORWARD_REF_TYPE;\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.Lazy = REACT_LAZY_TYPE;\nexports.Memo = REACT_MEMO_TYPE;\nexports.Portal = REACT_PORTAL_TYPE;\nexports.Profiler = REACT_PROFILER_TYPE;\nexports.StrictMode = REACT_STRICT_MODE_TYPE;\nexports.Suspense = REACT_SUSPENSE_TYPE;\nexports.SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nexports.isContextConsumer = function (object) {\n return typeOf(object) === REACT_CONSUMER_TYPE;\n};\nexports.isContextProvider = function (object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n};\nexports.isElement = function (object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n};\nexports.isForwardRef = function (object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n};\nexports.isFragment = function (object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n};\nexports.isLazy = function (object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n};\nexports.isMemo = function (object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n};\nexports.isPortal = function (object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n};\nexports.isProfiler = function (object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n};\nexports.isStrictMode = function (object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n};\nexports.isSuspense = function (object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n};\nexports.isSuspenseList = function (object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n};\nexports.isValidElementType = function (type) {\n return \"string\" === typeof type ||\n \"function\" === typeof type ||\n type === REACT_FRAGMENT_TYPE ||\n type === REACT_PROFILER_TYPE ||\n type === REACT_STRICT_MODE_TYPE ||\n type === REACT_SUSPENSE_TYPE ||\n type === REACT_SUSPENSE_LIST_TYPE ||\n (\"object\" === typeof type &&\n null !== type &&\n (type.$$typeof === REACT_LAZY_TYPE ||\n type.$$typeof === REACT_MEMO_TYPE ||\n type.$$typeof === REACT_CONTEXT_TYPE ||\n type.$$typeof === REACT_CONSUMER_TYPE ||\n type.$$typeof === REACT_FORWARD_REF_TYPE ||\n type.$$typeof === REACT_CLIENT_REFERENCE ||\n void 0 !== type.getModuleId))\n ? !0\n : !1;\n};\nexports.typeOf = typeOf;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","import * as React from 'react';\nimport { isValidElementType } from 'react-is';\n\n// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js\nexport function isPlainObject(item) {\n if (typeof item !== 'object' || item === null) {\n return false;\n }\n const prototype = Object.getPrototypeOf(item);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);\n}\nfunction deepClone(source) {\n if (/*#__PURE__*/React.isValidElement(source) || isValidElementType(source) || !isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\n\n/**\n * Merge objects deeply.\n * It will shallow copy React elements.\n *\n * If `options.clone` is set to `false` the source object will be merged directly into the target object.\n *\n * @example\n * ```ts\n * deepmerge({ a: { b: 1 }, d: 2 }, { a: { c: 2 }, d: 4 });\n * // => { a: { b: 1, c: 2 }, d: 4 }\n * ````\n *\n * @param target The target object.\n * @param source The source object.\n * @param options The merge options.\n * @param options.clone Set to `false` to merge the source object directly into the target object.\n * @returns The merged object.\n */\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? {\n ...target\n } : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n if (/*#__PURE__*/React.isValidElement(source[key]) || isValidElementType(source[key])) {\n output[key] = source[key];\n } else if (isPlainObject(source[key]) &&\n // Avoid prototype pollution\n Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}","// Sorted ASC by size. That's important.\n// It can't be configured as it's used statically for propTypes.\nexport const breakpointKeys = ['xs', 'sm', 'md', 'lg', 'xl'];\nconst sortBreakpointsValues = values => {\n const breakpointsAsArray = Object.keys(values).map(key => ({\n key,\n val: values[key]\n })) || [];\n // Sort in ascending order\n breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);\n return breakpointsAsArray.reduce((acc, obj) => {\n return {\n ...acc,\n [obj.key]: obj.val\n };\n }, {});\n};\n\n// Keep in mind that @media is inclusive by the CSS specification.\nexport default function createBreakpoints(breakpoints) {\n const {\n // The breakpoint **start** at this value.\n // For instance with the first breakpoint xs: [xs, sm).\n values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n },\n unit = 'px',\n step = 5,\n ...other\n } = breakpoints;\n const sortedValues = sortBreakpointsValues(values);\n const keys = Object.keys(sortedValues);\n function up(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (min-width:${value}${unit})`;\n }\n function down(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (max-width:${value - step / 100}${unit})`;\n }\n function between(start, end) {\n const endIndex = keys.indexOf(end);\n return `@media (min-width:${typeof values[start] === 'number' ? values[start] : start}${unit}) and ` + `(max-width:${(endIndex !== -1 && typeof values[keys[endIndex]] === 'number' ? values[keys[endIndex]] : end) - step / 100}${unit})`;\n }\n function only(key) {\n if (keys.indexOf(key) + 1 < keys.length) {\n return between(key, keys[keys.indexOf(key) + 1]);\n }\n return up(key);\n }\n function not(key) {\n // handle first and last key separately, for better readability\n const keyIndex = keys.indexOf(key);\n if (keyIndex === 0) {\n return up(keys[1]);\n }\n if (keyIndex === keys.length - 1) {\n return down(keys[keyIndex]);\n }\n return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');\n }\n return {\n keys,\n values: sortedValues,\n up,\n down,\n between,\n only,\n not,\n unit,\n ...other\n };\n}","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/**\n * For using in `sx` prop to sort the breakpoint from low to high.\n * Note: this function does not work and will not support multiple units.\n * e.g. input: { '@container (min-width:300px)': '1rem', '@container (min-width:40rem)': '2rem' }\n * output: { '@container (min-width:40rem)': '2rem', '@container (min-width:300px)': '1rem' } // since 40 < 300 eventhough 40rem > 300px\n */\nexport function sortContainerQueries(theme, css) {\n if (!theme.containerQueries) {\n return css;\n }\n const sorted = Object.keys(css).filter(key => key.startsWith('@container')).sort((a, b) => {\n const regex = /min-width:\\s*([0-9.]+)/;\n return +(a.match(regex)?.[1] || 0) - +(b.match(regex)?.[1] || 0);\n });\n if (!sorted.length) {\n return css;\n }\n return sorted.reduce((acc, key) => {\n const value = css[key];\n delete acc[key];\n acc[key] = value;\n return acc;\n }, {\n ...css\n });\n}\nexport function isCqShorthand(breakpointKeys, value) {\n return value === '@' || value.startsWith('@') && (breakpointKeys.some(key => value.startsWith(`@${key}`)) || !!value.match(/^@\\d/));\n}\nexport function getContainerQuery(theme, shorthand) {\n const matches = shorthand.match(/^@([^/]+)?\\/?(.+)?$/);\n if (!matches) {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The provided shorthand ${`(${shorthand})`} is invalid. The format should be \\`@<breakpoint | number>\\` or \\`@<breakpoint | number>/<container>\\`.\\n` + 'For example, `@sm` or `@600` or `@40rem/sidebar`.' : _formatErrorMessage(18, `(${shorthand})`));\n }\n return null;\n }\n const [, containerQuery, containerName] = matches;\n const value = Number.isNaN(+containerQuery) ? containerQuery || 0 : +containerQuery;\n return theme.containerQueries(containerName).up(value);\n}\nexport default function cssContainerQueries(themeInput) {\n const toContainerQuery = (mediaQuery, name) => mediaQuery.replace('@media', name ? `@container ${name}` : '@container');\n function attachCq(node, name) {\n node.up = (...args) => toContainerQuery(themeInput.breakpoints.up(...args), name);\n node.down = (...args) => toContainerQuery(themeInput.breakpoints.down(...args), name);\n node.between = (...args) => toContainerQuery(themeInput.breakpoints.between(...args), name);\n node.only = (...args) => toContainerQuery(themeInput.breakpoints.only(...args), name);\n node.not = (...args) => {\n const result = toContainerQuery(themeInput.breakpoints.not(...args), name);\n if (result.includes('not all and')) {\n // `@container` does not work with `not all and`, so need to invert the logic\n return result.replace('not all and ', '').replace('min-width:', 'width<').replace('max-width:', 'width>').replace('and', 'or');\n }\n return result;\n };\n }\n const node = {};\n const containerQueries = name => {\n attachCq(node, name);\n return node;\n };\n attachCq(containerQueries);\n return {\n ...themeInput,\n containerQueries\n };\n}","const shape = {\n borderRadius: 4\n};\nexport default shape;","import deepmerge from '@mui/utils/deepmerge';\nfunction merge(acc, item) {\n if (!item) {\n return acc;\n }\n return deepmerge(acc, item, {\n clone: false // No need to clone deep, it's way faster.\n });\n}\nexport default merge;","import PropTypes from 'prop-types';\nimport deepmerge from '@mui/utils/deepmerge';\nimport merge from \"../merge/index.js\";\nimport { isCqShorthand, getContainerQuery } from \"../cssContainerQueries/index.js\";\n\n// The breakpoint **start** at this value.\n// For instance with the first breakpoint xs: [xs, sm[.\nexport const values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n};\nconst defaultBreakpoints = {\n // Sorted ASC by size. That's important.\n // It can't be configured as it's used statically for propTypes.\n keys: ['xs', 'sm', 'md', 'lg', 'xl'],\n up: key => `@media (min-width:${values[key]}px)`\n};\nconst defaultContainerQueries = {\n containerQueries: containerName => ({\n up: key => {\n let result = typeof key === 'number' ? key : values[key] || key;\n if (typeof result === 'number') {\n result = `${result}px`;\n }\n return containerName ? `@container ${containerName} (min-width:${result})` : `@container (min-width:${result})`;\n }\n })\n};\nexport function handleBreakpoints(props, propValue, styleFromPropValue) {\n const theme = props.theme || {};\n if (Array.isArray(propValue)) {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return propValue.reduce((acc, item, index) => {\n acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);\n return acc;\n }, {});\n }\n if (typeof propValue === 'object') {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return Object.keys(propValue).reduce((acc, breakpoint) => {\n if (isCqShorthand(themeBreakpoints.keys, breakpoint)) {\n const containerKey = getContainerQuery(theme.containerQueries ? theme : defaultContainerQueries, breakpoint);\n if (containerKey) {\n acc[containerKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n }\n }\n // key is breakpoint\n else if (Object.keys(themeBreakpoints.values || values).includes(breakpoint)) {\n const mediaKey = themeBreakpoints.up(breakpoint);\n acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n } else {\n const cssKey = breakpoint;\n acc[cssKey] = propValue[cssKey];\n }\n return acc;\n }, {});\n }\n const output = styleFromPropValue(propValue);\n return output;\n}\nfunction breakpoints(styleFunction) {\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const newStyleFunction = props => {\n const theme = props.theme || {};\n const base = styleFunction(props);\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n const extended = themeBreakpoints.keys.reduce((acc, key) => {\n if (props[key]) {\n acc = acc || {};\n acc[themeBreakpoints.up(key)] = styleFunction({\n theme,\n ...props[key]\n });\n }\n return acc;\n }, null);\n return merge(base, extended);\n };\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? {\n ...styleFunction.propTypes,\n xs: PropTypes.object,\n sm: PropTypes.object,\n md: PropTypes.object,\n lg: PropTypes.object,\n xl: PropTypes.object\n } : {};\n newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl', ...styleFunction.filterProps];\n return newStyleFunction;\n}\nexport function createEmptyBreakpointObject(breakpointsInput = {}) {\n const breakpointsInOrder = breakpointsInput.keys?.reduce((acc, key) => {\n const breakpointStyleKey = breakpointsInput.up(key);\n acc[breakpointStyleKey] = {};\n return acc;\n }, {});\n return breakpointsInOrder || {};\n}\nexport function removeUnusedBreakpoints(breakpointKeys, style) {\n return breakpointKeys.reduce((acc, key) => {\n const breakpointOutput = acc[key];\n const isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0;\n if (isBreakpointUnused) {\n delete acc[key];\n }\n return acc;\n }, style);\n}\nexport function mergeBreakpointsInOrder(breakpointsInput, ...styles) {\n const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);\n const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});\n return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);\n}\n\n// compute base for responsive values; e.g.,\n// [1,2,3] => {xs: true, sm: true, md: true}\n// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}\nexport function computeBreakpointsBase(breakpointValues, themeBreakpoints) {\n // fixed value\n if (typeof breakpointValues !== 'object') {\n return {};\n }\n const base = {};\n const breakpointsKeys = Object.keys(themeBreakpoints);\n if (Array.isArray(breakpointValues)) {\n breakpointsKeys.forEach((breakpoint, i) => {\n if (i < breakpointValues.length) {\n base[breakpoint] = true;\n }\n });\n } else {\n breakpointsKeys.forEach(breakpoint => {\n if (breakpointValues[breakpoint] != null) {\n base[breakpoint] = true;\n }\n });\n }\n return base;\n}\nexport function resolveBreakpointValues({\n values: breakpointValues,\n breakpoints: themeBreakpoints,\n base: customBase\n}) {\n const base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints);\n const keys = Object.keys(base);\n if (keys.length === 0) {\n return breakpointValues;\n }\n let previous;\n return keys.reduce((acc, breakpoint, i) => {\n if (Array.isArray(breakpointValues)) {\n acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];\n previous = i;\n } else if (typeof breakpointValues === 'object') {\n acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous];\n previous = breakpoint;\n } else {\n acc[breakpoint] = breakpointValues;\n }\n return acc;\n }, {});\n}\nexport default breakpoints;","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI: `capitalize(string)` expects a string argument.' : _formatErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","import capitalize from '@mui/utils/capitalize';\nimport responsivePropType from \"../responsivePropType/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nexport function getPath(obj, path, checkVars = true) {\n if (!path || typeof path !== 'string') {\n return null;\n }\n\n // Check if CSS variables are used\n if (obj && obj.vars && checkVars) {\n const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);\n if (val != null) {\n return val;\n }\n }\n return path.split('.').reduce((acc, item) => {\n if (acc && acc[item] != null) {\n return acc[item];\n }\n return null;\n }, obj);\n}\nexport function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {\n let value;\n if (typeof themeMapping === 'function') {\n value = themeMapping(propValueFinal);\n } else if (Array.isArray(themeMapping)) {\n value = themeMapping[propValueFinal] || userValue;\n } else {\n value = getPath(themeMapping, propValueFinal) || userValue;\n }\n if (transform) {\n value = transform(value, userValue, themeMapping);\n }\n return value;\n}\nfunction style(options) {\n const {\n prop,\n cssProperty = options.prop,\n themeKey,\n transform\n } = options;\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n if (props[prop] == null) {\n return null;\n }\n const propValue = props[prop];\n const theme = props.theme;\n const themeMapping = getPath(theme, themeKey) || {};\n const styleFromPropValue = propValueFinal => {\n let value = getStyleValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, propValue, styleFromPropValue);\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? {\n [prop]: responsivePropType\n } : {};\n fn.filterProps = [prop];\n return fn;\n}\nexport default style;","export default function memoize(fn) {\n const cache = {};\n return arg => {\n if (cache[arg] === undefined) {\n cache[arg] = fn(arg);\n }\n return cache[arg];\n };\n}","import responsivePropType from \"../responsivePropType/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nimport { getPath } from \"../style/index.js\";\nimport merge from \"../merge/index.js\";\nimport memoize from \"../memoize/index.js\";\nconst properties = {\n m: 'margin',\n p: 'padding'\n};\nconst directions = {\n t: 'Top',\n r: 'Right',\n b: 'Bottom',\n l: 'Left',\n x: ['Left', 'Right'],\n y: ['Top', 'Bottom']\n};\nconst aliases = {\n marginX: 'mx',\n marginY: 'my',\n paddingX: 'px',\n paddingY: 'py'\n};\n\n// memoize() impact:\n// From 300,000 ops/sec\n// To 350,000 ops/sec\nconst getCssProperties = memoize(prop => {\n // It's not a shorthand notation.\n if (prop.length > 2) {\n if (aliases[prop]) {\n prop = aliases[prop];\n } else {\n return [prop];\n }\n }\n const [a, b] = prop.split('');\n const property = properties[a];\n const direction = directions[b] || '';\n return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];\n});\nexport const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];\nexport const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];\nconst spacingKeys = [...marginKeys, ...paddingKeys];\nexport function createUnaryUnit(theme, themeKey, defaultValue, propName) {\n const themeSpacing = getPath(theme, themeKey, true) ?? defaultValue;\n if (typeof themeSpacing === 'number' || typeof themeSpacing === 'string') {\n return val => {\n if (typeof val === 'string') {\n return val;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (typeof val !== 'number') {\n console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${val}.`);\n }\n }\n if (typeof themeSpacing === 'string') {\n if (themeSpacing.startsWith('var(') && val === 0) {\n return 0;\n }\n if (themeSpacing.startsWith('var(') && val === 1) {\n return themeSpacing;\n }\n return `calc(${val} * ${themeSpacing})`;\n }\n return themeSpacing * val;\n };\n }\n if (Array.isArray(themeSpacing)) {\n return val => {\n if (typeof val === 'string') {\n return val;\n }\n const abs = Math.abs(val);\n if (process.env.NODE_ENV !== 'production') {\n if (!Number.isInteger(abs)) {\n console.error([`MUI: The \\`theme.${themeKey}\\` array type cannot be combined with non integer values.` + `You should either use an integer value that can be used as index, or define the \\`theme.${themeKey}\\` as a number.`].join('\\n'));\n } else if (abs > themeSpacing.length - 1) {\n console.error([`MUI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join('\\n'));\n }\n }\n const transformed = themeSpacing[abs];\n if (val >= 0) {\n return transformed;\n }\n if (typeof transformed === 'number') {\n return -transformed;\n }\n if (typeof transformed === 'string' && transformed.startsWith('var(')) {\n return `calc(-1 * ${transformed})`;\n }\n return `-${transformed}`;\n };\n }\n if (typeof themeSpacing === 'function') {\n return themeSpacing;\n }\n if (process.env.NODE_ENV !== 'production') {\n console.error([`MUI: The \\`theme.${themeKey}\\` value (${themeSpacing}) is invalid.`, 'It should be a number, an array or a function.'].join('\\n'));\n }\n return () => undefined;\n}\nexport function createUnarySpacing(theme) {\n return createUnaryUnit(theme, 'spacing', 8, 'spacing');\n}\nexport function getValue(transformer, propValue) {\n if (typeof propValue === 'string' || propValue == null) {\n return propValue;\n }\n return transformer(propValue);\n}\nexport function getStyleFromPropValue(cssProperties, transformer) {\n return propValue => cssProperties.reduce((acc, cssProperty) => {\n acc[cssProperty] = getValue(transformer, propValue);\n return acc;\n }, {});\n}\nfunction resolveCssProperty(props, keys, prop, transformer) {\n // Using a hash computation over an array iteration could be faster, but with only 28 items,\n // it's doesn't worth the bundle size.\n if (!keys.includes(prop)) {\n return null;\n }\n const cssProperties = getCssProperties(prop);\n const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);\n const propValue = props[prop];\n return handleBreakpoints(props, propValue, styleFromPropValue);\n}\nfunction style(props, keys) {\n const transformer = createUnarySpacing(props.theme);\n return Object.keys(props).map(prop => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {});\n}\nexport function margin(props) {\n return style(props, marginKeys);\n}\nmargin.propTypes = process.env.NODE_ENV !== 'production' ? marginKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nmargin.filterProps = marginKeys;\nexport function padding(props) {\n return style(props, paddingKeys);\n}\npadding.propTypes = process.env.NODE_ENV !== 'production' ? paddingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\npadding.filterProps = paddingKeys;\nfunction spacing(props) {\n return style(props, spacingKeys);\n}\nspacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nspacing.filterProps = spacingKeys;\nexport default spacing;","import { createUnarySpacing } from \"../spacing/index.js\";\n\n// The different signatures imply different meaning for their arguments that can't be expressed structurally.\n// We express the difference with variable names.\n\nexport default function createSpacing(spacingInput = 8,\n// Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout.\n// Smaller components, such as icons, can align to a 4dp grid.\n// https://m2.material.io/design/layout/understanding-layout.html\ntransform = createUnarySpacing({\n spacing: spacingInput\n})) {\n // Already transformed.\n if (spacingInput.mui) {\n return spacingInput;\n }\n const spacing = (...argsInput) => {\n if (process.env.NODE_ENV !== 'production') {\n if (!(argsInput.length <= 4)) {\n console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${argsInput.length}`);\n }\n }\n const args = argsInput.length === 0 ? [1] : argsInput;\n return args.map(argument => {\n const output = transform(argument);\n return typeof output === 'number' ? `${output}px` : output;\n }).join(' ');\n };\n spacing.mui = true;\n return spacing;\n}","import merge from \"../merge/index.js\";\nfunction compose(...styles) {\n const handlers = styles.reduce((acc, style) => {\n style.filterProps.forEach(prop => {\n acc[prop] = style;\n });\n return acc;\n }, {});\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n return Object.keys(props).reduce((acc, prop) => {\n if (handlers[prop]) {\n return merge(acc, handlers[prop](props));\n }\n return acc;\n }, {});\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce((acc, style) => Object.assign(acc, style.propTypes), {}) : {};\n fn.filterProps = styles.reduce((acc, style) => acc.concat(style.filterProps), []);\n return fn;\n}\nexport default compose;","import responsivePropType from \"../responsivePropType/index.js\";\nimport style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nimport { createUnaryUnit, getValue } from \"../spacing/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nexport function borderTransform(value) {\n if (typeof value !== 'number') {\n return value;\n }\n return `${value}px solid`;\n}\nfunction createBorderStyle(prop, transform) {\n return style({\n prop,\n themeKey: 'borders',\n transform\n });\n}\nexport const border = createBorderStyle('border', borderTransform);\nexport const borderTop = createBorderStyle('borderTop', borderTransform);\nexport const borderRight = createBorderStyle('borderRight', borderTransform);\nexport const borderBottom = createBorderStyle('borderBottom', borderTransform);\nexport const borderLeft = createBorderStyle('borderLeft', borderTransform);\nexport const borderColor = createBorderStyle('borderColor');\nexport const borderTopColor = createBorderStyle('borderTopColor');\nexport const borderRightColor = createBorderStyle('borderRightColor');\nexport const borderBottomColor = createBorderStyle('borderBottomColor');\nexport const borderLeftColor = createBorderStyle('borderLeftColor');\nexport const outline = createBorderStyle('outline', borderTransform);\nexport const outlineColor = createBorderStyle('outlineColor');\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const borderRadius = props => {\n if (props.borderRadius !== undefined && props.borderRadius !== null) {\n const transformer = createUnaryUnit(props.theme, 'shape.borderRadius', 4, 'borderRadius');\n const styleFromPropValue = propValue => ({\n borderRadius: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.borderRadius, styleFromPropValue);\n }\n return null;\n};\nborderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {\n borderRadius: responsivePropType\n} : {};\nborderRadius.filterProps = ['borderRadius'];\nconst borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);\nexport default borders;","import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nimport { createUnaryUnit, getValue } from \"../spacing/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nimport responsivePropType from \"../responsivePropType/index.js\";\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const gap = props => {\n if (props.gap !== undefined && props.gap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'gap');\n const styleFromPropValue = propValue => ({\n gap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.gap, styleFromPropValue);\n }\n return null;\n};\ngap.propTypes = process.env.NODE_ENV !== 'production' ? {\n gap: responsivePropType\n} : {};\ngap.filterProps = ['gap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const columnGap = props => {\n if (props.columnGap !== undefined && props.columnGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'columnGap');\n const styleFromPropValue = propValue => ({\n columnGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.columnGap, styleFromPropValue);\n }\n return null;\n};\ncolumnGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n columnGap: responsivePropType\n} : {};\ncolumnGap.filterProps = ['columnGap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const rowGap = props => {\n if (props.rowGap !== undefined && props.rowGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'rowGap');\n const styleFromPropValue = propValue => ({\n rowGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.rowGap, styleFromPropValue);\n }\n return null;\n};\nrowGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n rowGap: responsivePropType\n} : {};\nrowGap.filterProps = ['rowGap'];\nexport const gridColumn = style({\n prop: 'gridColumn'\n});\nexport const gridRow = style({\n prop: 'gridRow'\n});\nexport const gridAutoFlow = style({\n prop: 'gridAutoFlow'\n});\nexport const gridAutoColumns = style({\n prop: 'gridAutoColumns'\n});\nexport const gridAutoRows = style({\n prop: 'gridAutoRows'\n});\nexport const gridTemplateColumns = style({\n prop: 'gridTemplateColumns'\n});\nexport const gridTemplateRows = style({\n prop: 'gridTemplateRows'\n});\nexport const gridTemplateAreas = style({\n prop: 'gridTemplateAreas'\n});\nexport const gridArea = style({\n prop: 'gridArea'\n});\nconst grid = compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);\nexport default grid;","import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nexport function paletteTransform(value, userValue) {\n if (userValue === 'grey') {\n return userValue;\n }\n return value;\n}\nexport const color = style({\n prop: 'color',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const bgcolor = style({\n prop: 'bgcolor',\n cssProperty: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const backgroundColor = style({\n prop: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nconst palette = compose(color, bgcolor, backgroundColor);\nexport default palette;","import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nimport { handleBreakpoints, values as breakpointsValues } from \"../breakpoints/index.js\";\nexport function sizingTransform(value) {\n return value <= 1 && value !== 0 ? `${value * 100}%` : value;\n}\nexport const width = style({\n prop: 'width',\n transform: sizingTransform\n});\nexport const maxWidth = props => {\n if (props.maxWidth !== undefined && props.maxWidth !== null) {\n const styleFromPropValue = propValue => {\n const breakpoint = props.theme?.breakpoints?.values?.[propValue] || breakpointsValues[propValue];\n if (!breakpoint) {\n return {\n maxWidth: sizingTransform(propValue)\n };\n }\n if (props.theme?.breakpoints?.unit !== 'px') {\n return {\n maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`\n };\n }\n return {\n maxWidth: breakpoint\n };\n };\n return handleBreakpoints(props, props.maxWidth, styleFromPropValue);\n }\n return null;\n};\nmaxWidth.filterProps = ['maxWidth'];\nexport const minWidth = style({\n prop: 'minWidth',\n transform: sizingTransform\n});\nexport const height = style({\n prop: 'height',\n transform: sizingTransform\n});\nexport const maxHeight = style({\n prop: 'maxHeight',\n transform: sizingTransform\n});\nexport const minHeight = style({\n prop: 'minHeight',\n transform: sizingTransform\n});\nexport const sizeWidth = style({\n prop: 'size',\n cssProperty: 'width',\n transform: sizingTransform\n});\nexport const sizeHeight = style({\n prop: 'size',\n cssProperty: 'height',\n transform: sizingTransform\n});\nexport const boxSizing = style({\n prop: 'boxSizing'\n});\nconst sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);\nexport default sizing;","import { padding, margin } from \"../spacing/index.js\";\nimport { borderRadius, borderTransform } from \"../borders/index.js\";\nimport { gap, rowGap, columnGap } from \"../cssGrid/index.js\";\nimport { paletteTransform } from \"../palette/index.js\";\nimport { maxWidth, sizingTransform } from \"../sizing/index.js\";\nconst defaultSxConfig = {\n // borders\n border: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderTop: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderRight: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderBottom: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderLeft: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderColor: {\n themeKey: 'palette'\n },\n borderTopColor: {\n themeKey: 'palette'\n },\n borderRightColor: {\n themeKey: 'palette'\n },\n borderBottomColor: {\n themeKey: 'palette'\n },\n borderLeftColor: {\n themeKey: 'palette'\n },\n outline: {\n themeKey: 'borders',\n transform: borderTransform\n },\n outlineColor: {\n themeKey: 'palette'\n },\n borderRadius: {\n themeKey: 'shape.borderRadius',\n style: borderRadius\n },\n // palette\n color: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n bgcolor: {\n themeKey: 'palette',\n cssProperty: 'backgroundColor',\n transform: paletteTransform\n },\n backgroundColor: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n // spacing\n p: {\n style: padding\n },\n pt: {\n style: padding\n },\n pr: {\n style: padding\n },\n pb: {\n style: padding\n },\n pl: {\n style: padding\n },\n px: {\n style: padding\n },\n py: {\n style: padding\n },\n padding: {\n style: padding\n },\n paddingTop: {\n style: padding\n },\n paddingRight: {\n style: padding\n },\n paddingBottom: {\n style: padding\n },\n paddingLeft: {\n style: padding\n },\n paddingX: {\n style: padding\n },\n paddingY: {\n style: padding\n },\n paddingInline: {\n style: padding\n },\n paddingInlineStart: {\n style: padding\n },\n paddingInlineEnd: {\n style: padding\n },\n paddingBlock: {\n style: padding\n },\n paddingBlockStart: {\n style: padding\n },\n paddingBlockEnd: {\n style: padding\n },\n m: {\n style: margin\n },\n mt: {\n style: margin\n },\n mr: {\n style: margin\n },\n mb: {\n style: margin\n },\n ml: {\n style: margin\n },\n mx: {\n style: margin\n },\n my: {\n style: margin\n },\n margin: {\n style: margin\n },\n marginTop: {\n style: margin\n },\n marginRight: {\n style: margin\n },\n marginBottom: {\n style: margin\n },\n marginLeft: {\n style: margin\n },\n marginX: {\n style: margin\n },\n marginY: {\n style: margin\n },\n marginInline: {\n style: margin\n },\n marginInlineStart: {\n style: margin\n },\n marginInlineEnd: {\n style: margin\n },\n marginBlock: {\n style: margin\n },\n marginBlockStart: {\n style: margin\n },\n marginBlockEnd: {\n style: margin\n },\n // display\n displayPrint: {\n cssProperty: false,\n transform: value => ({\n '@media print': {\n display: value\n }\n })\n },\n display: {},\n overflow: {},\n textOverflow: {},\n visibility: {},\n whiteSpace: {},\n // flexbox\n flexBasis: {},\n flexDirection: {},\n flexWrap: {},\n justifyContent: {},\n alignItems: {},\n alignContent: {},\n order: {},\n flex: {},\n flexGrow: {},\n flexShrink: {},\n alignSelf: {},\n justifyItems: {},\n justifySelf: {},\n // grid\n gap: {\n style: gap\n },\n rowGap: {\n style: rowGap\n },\n columnGap: {\n style: columnGap\n },\n gridColumn: {},\n gridRow: {},\n gridAutoFlow: {},\n gridAutoColumns: {},\n gridAutoRows: {},\n gridTemplateColumns: {},\n gridTemplateRows: {},\n gridTemplateAreas: {},\n gridArea: {},\n // positions\n position: {},\n zIndex: {\n themeKey: 'zIndex'\n },\n top: {},\n right: {},\n bottom: {},\n left: {},\n // shadows\n boxShadow: {\n themeKey: 'shadows'\n },\n // sizing\n width: {\n transform: sizingTransform\n },\n maxWidth: {\n style: maxWidth\n },\n minWidth: {\n transform: sizingTransform\n },\n height: {\n transform: sizingTransform\n },\n maxHeight: {\n transform: sizingTransform\n },\n minHeight: {\n transform: sizingTransform\n },\n boxSizing: {},\n // typography\n font: {\n themeKey: 'font'\n },\n fontFamily: {\n themeKey: 'typography'\n },\n fontSize: {\n themeKey: 'typography'\n },\n fontStyle: {\n themeKey: 'typography'\n },\n fontWeight: {\n themeKey: 'typography'\n },\n letterSpacing: {},\n textTransform: {},\n lineHeight: {},\n textAlign: {},\n typography: {\n cssProperty: false,\n themeKey: 'typography'\n }\n};\nexport default defaultSxConfig;","import capitalize from '@mui/utils/capitalize';\nimport merge from \"../merge/index.js\";\nimport { getPath, getStyleValue as getValue } from \"../style/index.js\";\nimport { handleBreakpoints, createEmptyBreakpointObject, removeUnusedBreakpoints } from \"../breakpoints/index.js\";\nimport { sortContainerQueries } from \"../cssContainerQueries/index.js\";\nimport defaultSxConfig from \"./defaultSxConfig.js\";\nfunction objectsHaveSameKeys(...objects) {\n const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);\n const union = new Set(allKeys);\n return objects.every(object => union.size === Object.keys(object).length);\n}\nfunction callIfFn(maybeFn, arg) {\n return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function unstable_createStyleFunctionSx() {\n function getThemeValue(prop, val, theme, config) {\n const props = {\n [prop]: val,\n theme\n };\n const options = config[prop];\n if (!options) {\n return {\n [prop]: val\n };\n }\n const {\n cssProperty = prop,\n themeKey,\n transform,\n style\n } = options;\n if (val == null) {\n return null;\n }\n\n // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123\n if (themeKey === 'typography' && val === 'inherit') {\n return {\n [prop]: val\n };\n }\n const themeMapping = getPath(theme, themeKey) || {};\n if (style) {\n return style(props);\n }\n const styleFromPropValue = propValueFinal => {\n let value = getValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, val, styleFromPropValue);\n }\n function styleFunctionSx(props) {\n const {\n sx,\n theme = {}\n } = props || {};\n if (!sx) {\n return null; // Emotion & styled-components will neglect null\n }\n const config = theme.unstable_sxConfig ?? defaultSxConfig;\n\n /*\n * Receive `sxInput` as object or callback\n * and then recursively check keys & values to create media query object styles.\n * (the result will be used in `styled`)\n */\n function traverse(sxInput) {\n let sxObject = sxInput;\n if (typeof sxInput === 'function') {\n sxObject = sxInput(theme);\n } else if (typeof sxInput !== 'object') {\n // value\n return sxInput;\n }\n if (!sxObject) {\n return null;\n }\n const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);\n const breakpointsKeys = Object.keys(emptyBreakpoints);\n let css = emptyBreakpoints;\n Object.keys(sxObject).forEach(styleKey => {\n const value = callIfFn(sxObject[styleKey], theme);\n if (value !== null && value !== undefined) {\n if (typeof value === 'object') {\n if (config[styleKey]) {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n } else {\n const breakpointsValues = handleBreakpoints({\n theme\n }, value, x => ({\n [styleKey]: x\n }));\n if (objectsHaveSameKeys(breakpointsValues, value)) {\n css[styleKey] = styleFunctionSx({\n sx: value,\n theme\n });\n } else {\n css = merge(css, breakpointsValues);\n }\n }\n } else {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n }\n }\n });\n return sortContainerQueries(theme, removeUnusedBreakpoints(breakpointsKeys, css));\n }\n return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);\n }\n return styleFunctionSx;\n}\nconst styleFunctionSx = unstable_createStyleFunctionSx();\nstyleFunctionSx.filterProps = ['sx'];\nexport default styleFunctionSx;","/**\n * A universal utility to style components with multiple color modes. Always use it from the theme object.\n * It works with:\n * - [Basic theme](https://mui.com/material-ui/customization/dark-mode/)\n * - [CSS theme variables](https://mui.com/material-ui/customization/css-theme-variables/overview/)\n * - Zero-runtime engine\n *\n * Tips: Use an array over object spread and place `theme.applyStyles()` last.\n *\n * With the styled function:\n * ✅ [{ background: '#e5e5e5' }, theme.applyStyles('dark', { background: '#1c1c1c' })]\n * 🚫 { background: '#e5e5e5', ...theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * With the sx prop:\n * ✅ [{ background: '#e5e5e5' }, theme => theme.applyStyles('dark', { background: '#1c1c1c' })]\n * 🚫 { background: '#e5e5e5', ...theme => theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * @example\n * 1. using with `styled`:\n * ```jsx\n * const Component = styled('div')(({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]);\n * ```\n *\n * @example\n * 2. using with `sx` prop:\n * ```jsx\n * <Box sx={[\n * { background: '#e5e5e5' },\n * theme => theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]}\n * />\n * ```\n *\n * @example\n * 3. theming a component:\n * ```jsx\n * extendTheme({\n * components: {\n * MuiButton: {\n * styleOverrides: {\n * root: ({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ],\n * },\n * }\n * }\n * })\n *```\n */\nexport default function applyStyles(key, styles) {\n // @ts-expect-error this is 'any' type\n const theme = this;\n if (theme.vars) {\n if (!theme.colorSchemes?.[key] || typeof theme.getColorSchemeSelector !== 'function') {\n return {};\n }\n // If CssVarsProvider is used as a provider, returns '*:where({selector}) &'\n let selector = theme.getColorSchemeSelector(key);\n if (selector === '&') {\n return styles;\n }\n if (selector.includes('data-') || selector.includes('.')) {\n // '*' is required as a workaround for Emotion issue (https://github.com/emotion-js/emotion/issues/2836)\n selector = `*:where(${selector.replace(/\\s*&$/, '')}) &`;\n }\n return {\n [selector]: styles\n };\n }\n if (theme.palette.mode === key) {\n return styles;\n }\n return {};\n}","import deepmerge from '@mui/utils/deepmerge';\nimport createBreakpoints from \"../createBreakpoints/createBreakpoints.js\";\nimport cssContainerQueries from \"../cssContainerQueries/index.js\";\nimport shape from \"./shape.js\";\nimport createSpacing from \"./createSpacing.js\";\nimport styleFunctionSx from \"../styleFunctionSx/styleFunctionSx.js\";\nimport defaultSxConfig from \"../styleFunctionSx/defaultSxConfig.js\";\nimport applyStyles from \"./applyStyles.js\";\nfunction createTheme(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput = {},\n palette: paletteInput = {},\n spacing: spacingInput,\n shape: shapeInput = {},\n ...other\n } = options;\n const breakpoints = createBreakpoints(breakpointsInput);\n const spacing = createSpacing(spacingInput);\n let muiTheme = deepmerge({\n breakpoints,\n direction: 'ltr',\n components: {},\n // Inject component definitions.\n palette: {\n mode: 'light',\n ...paletteInput\n },\n spacing,\n shape: {\n ...shape,\n ...shapeInput\n }\n }, other);\n muiTheme = cssContainerQueries(muiTheme);\n muiTheme.applyStyles = applyStyles;\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n muiTheme.unstable_sxConfig = {\n ...defaultSxConfig,\n ...other?.unstable_sxConfig\n };\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nexport default createTheme;","'use client';\n\nimport * as React from 'react';\nimport { ThemeContext } from '@mui/styled-engine';\nfunction isObjectEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction useTheme(defaultTheme = null) {\n const contextTheme = React.useContext(ThemeContext);\n return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;\n}\nexport default useTheme;","'use client';\n\nimport createTheme from \"../createTheme/index.js\";\nimport useThemeWithoutDefault from \"../useThemeWithoutDefault/index.js\";\nexport const systemDefaultTheme = createTheme();\nfunction useTheme(defaultTheme = systemDefaultTheme) {\n return useThemeWithoutDefault(defaultTheme);\n}\nexport default useTheme;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GlobalStyles as MuiGlobalStyles } from '@mui/styled-engine';\nimport useTheme from \"../useTheme/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GlobalStyles({\n styles,\n themeId,\n defaultTheme = {}\n}) {\n const upperTheme = useTheme(defaultTheme);\n const globalStyles = typeof styles === 'function' ? styles(themeId ? upperTheme[themeId] || upperTheme : upperTheme) : styles;\n return /*#__PURE__*/_jsx(MuiGlobalStyles, {\n styles: globalStyles\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GlobalStyles.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n defaultTheme: PropTypes.object,\n /**\n * @ignore\n */\n styles: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.array, PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.string, PropTypes.bool]),\n /**\n * @ignore\n */\n themeId: PropTypes.string\n} : void 0;\nexport default GlobalStyles;","import { isPlainObject } from '@mui/utils/deepmerge';\nimport defaultSxConfig from \"./defaultSxConfig.js\";\nconst splitProps = props => {\n const result = {\n systemProps: {},\n otherProps: {}\n };\n const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;\n Object.keys(props).forEach(prop => {\n if (config[prop]) {\n result.systemProps[prop] = props[prop];\n } else {\n result.otherProps[prop] = props[prop];\n }\n });\n return result;\n};\nexport default function extendSxProp(props) {\n const {\n sx: inSx,\n ...other\n } = props;\n const {\n systemProps,\n otherProps\n } = splitProps(other);\n let finalSx;\n if (Array.isArray(inSx)) {\n finalSx = [systemProps, ...inSx];\n } else if (typeof inSx === 'function') {\n finalSx = (...args) => {\n const result = inSx(...args);\n if (!isPlainObject(result)) {\n return systemProps;\n }\n return {\n ...systemProps,\n ...result\n };\n };\n } else {\n finalSx = {\n ...systemProps,\n ...inSx\n };\n }\n return {\n ...otherProps,\n sx: finalSx\n };\n}","const defaultGenerator = componentName => componentName;\nconst createClassNameGenerator = () => {\n let generate = defaultGenerator;\n return {\n configure(generator) {\n generate = generator;\n },\n generate(componentName) {\n return generate(componentName);\n },\n reset() {\n generate = defaultGenerator;\n }\n };\n};\nconst ClassNameGenerator = createClassNameGenerator();\nexport default ClassNameGenerator;","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)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","'use client';\n\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport styled from '@mui/styled-engine';\nimport styleFunctionSx, { extendSxProp } from \"../styleFunctionSx/index.js\";\nimport useTheme from \"../useTheme/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createBox(options = {}) {\n const {\n themeId,\n defaultTheme,\n defaultClassName = 'MuiBox-root',\n generateClassName\n } = options;\n const BoxRoot = styled('div', {\n shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'\n })(styleFunctionSx);\n const Box = /*#__PURE__*/React.forwardRef(function Box(inProps, ref) {\n const theme = useTheme(defaultTheme);\n const {\n className,\n component = 'div',\n ...other\n } = extendSxProp(inProps);\n return /*#__PURE__*/_jsx(BoxRoot, {\n as: component,\n ref: ref,\n className: clsx(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName),\n theme: themeId ? theme[themeId] || theme : theme,\n ...other\n });\n });\n return Box;\n}","import ClassNameGenerator from \"../ClassNameGenerator/index.js\";\nexport const globalStateClasses = {\n active: 'active',\n checked: 'checked',\n completed: 'completed',\n disabled: 'disabled',\n error: 'error',\n expanded: 'expanded',\n focused: 'focused',\n focusVisible: 'focusVisible',\n open: 'open',\n readOnly: 'readOnly',\n required: 'required',\n selected: 'selected'\n};\nexport default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import generateUtilityClass from \"../generateUtilityClass/index.js\";\nexport default function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);\n });\n return result;\n}","import { internal_serializeStyles } from '@mui/styled-engine';\nexport default function preprocessStyles(input) {\n const {\n variants,\n ...style\n } = input;\n const result = {\n variants,\n style: internal_serializeStyles(style),\n isProcessed: true\n };\n\n // Not supported on styled-components\n if (result.style === style) {\n return result;\n }\n if (variants) {\n variants.forEach(variant => {\n if (typeof variant.style !== 'function') {\n variant.style = internal_serializeStyles(variant.style);\n }\n });\n }\n return result;\n}","import styledEngineStyled, { internal_mutateStyles as mutateStyles } from '@mui/styled-engine';\nimport { isPlainObject } from '@mui/utils/deepmerge';\nimport capitalize from '@mui/utils/capitalize';\nimport getDisplayName from '@mui/utils/getDisplayName';\nimport createTheme from \"../createTheme/index.js\";\nimport styleFunctionSx from \"../styleFunctionSx/index.js\";\nimport preprocessStyles from \"../preprocessStyles.js\";\n\n/* eslint-disable no-underscore-dangle */\n/* eslint-disable no-labels */\n/* eslint-disable no-lone-blocks */\n\nexport const systemDefaultTheme = createTheme();\n\n// Update /system/styled/#api in case if this changes\nexport function shouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nfunction defaultOverridesResolver(slot) {\n if (!slot) {\n return null;\n }\n return (_props, styles) => styles[slot];\n}\nfunction attachTheme(props, themeId, defaultTheme) {\n props.theme = isObjectEmpty(props.theme) ? defaultTheme : props.theme[themeId] || props.theme;\n}\nfunction processStyle(props, style) {\n /*\n * Style types:\n * - null/undefined\n * - string\n * - CSS style object: { [cssKey]: [cssValue], variants }\n * - Processed style object: { style, variants, isProcessed: true }\n * - Array of any of the above\n */\n\n const resolvedStyle = typeof style === 'function' ? style(props) : style;\n if (Array.isArray(resolvedStyle)) {\n return resolvedStyle.flatMap(subStyle => processStyle(props, subStyle));\n }\n if (Array.isArray(resolvedStyle?.variants)) {\n let rootStyle;\n if (resolvedStyle.isProcessed) {\n rootStyle = resolvedStyle.style;\n } else {\n const {\n variants,\n ...otherStyles\n } = resolvedStyle;\n rootStyle = otherStyles;\n }\n return processStyleVariants(props, resolvedStyle.variants, [rootStyle]);\n }\n if (resolvedStyle?.isProcessed) {\n return resolvedStyle.style;\n }\n return resolvedStyle;\n}\nfunction processStyleVariants(props, variants, results = []) {\n let mergedState; // We might not need it, initialized lazily\n\n variantLoop: for (let i = 0; i < variants.length; i += 1) {\n const variant = variants[i];\n if (typeof variant.props === 'function') {\n mergedState ??= {\n ...props,\n ...props.ownerState,\n ownerState: props.ownerState\n };\n if (!variant.props(mergedState)) {\n continue;\n }\n } else {\n for (const key in variant.props) {\n if (props[key] !== variant.props[key] && props.ownerState?.[key] !== variant.props[key]) {\n continue variantLoop;\n }\n }\n }\n if (typeof variant.style === 'function') {\n mergedState ??= {\n ...props,\n ...props.ownerState,\n ownerState: props.ownerState\n };\n results.push(variant.style(mergedState));\n } else {\n results.push(variant.style);\n }\n }\n return results;\n}\nexport default function createStyled(input = {}) {\n const {\n themeId,\n defaultTheme = systemDefaultTheme,\n rootShouldForwardProp = shouldForwardProp,\n slotShouldForwardProp = shouldForwardProp\n } = input;\n function styleAttachTheme(props) {\n attachTheme(props, themeId, defaultTheme);\n }\n const styled = (tag, inputOptions = {}) => {\n // If `tag` is already a styled component, filter out the `sx` style function\n // to prevent unnecessary styles generated by the composite components.\n mutateStyles(tag, styles => styles.filter(style => style !== styleFunctionSx));\n const {\n name: componentName,\n slot: componentSlot,\n skipVariantsResolver: inputSkipVariantsResolver,\n skipSx: inputSkipSx,\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot)),\n ...options\n } = inputOptions;\n\n // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n const skipSx = inputSkipSx || false;\n let shouldForwardPropOption = shouldForwardProp;\n\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n if (componentSlot === 'Root' || componentSlot === 'root') {\n shouldForwardPropOption = rootShouldForwardProp;\n } else if (componentSlot) {\n // any other slot specified\n shouldForwardPropOption = slotShouldForwardProp;\n } else if (isStringTag(tag)) {\n // for string (html) tag, preserve the behavior in emotion & styled-components.\n shouldForwardPropOption = undefined;\n }\n const defaultStyledResolver = styledEngineStyled(tag, {\n shouldForwardProp: shouldForwardPropOption,\n label: generateStyledLabel(componentName, componentSlot),\n ...options\n });\n const transformStyle = style => {\n // On the server Emotion doesn't use React.forwardRef for creating components, so the created\n // component stays as a function. This condition makes sure that we do not interpolate functions\n // which are basically components used as a selectors.\n if (typeof style === 'function' && style.__emotion_real !== style) {\n return function styleFunctionProcessor(props) {\n return processStyle(props, style);\n };\n }\n if (isPlainObject(style)) {\n const serialized = preprocessStyles(style);\n if (!serialized.variants) {\n return serialized.style;\n }\n return function styleObjectProcessor(props) {\n return processStyle(props, serialized);\n };\n }\n return style;\n };\n const muiStyledResolver = (...expressionsInput) => {\n const expressionsHead = [];\n const expressionsBody = expressionsInput.map(transformStyle);\n const expressionsTail = [];\n\n // Preprocess `props` to set the scoped theme value.\n // This must run before any other expression.\n expressionsHead.push(styleAttachTheme);\n if (componentName && overridesResolver) {\n expressionsTail.push(function styleThemeOverrides(props) {\n const theme = props.theme;\n const styleOverrides = theme.components?.[componentName]?.styleOverrides;\n if (!styleOverrides) {\n return null;\n }\n const resolvedStyleOverrides = {};\n\n // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n // eslint-disable-next-line guard-for-in\n for (const slotKey in styleOverrides) {\n resolvedStyleOverrides[slotKey] = processStyle(props, styleOverrides[slotKey]);\n }\n return overridesResolver(props, resolvedStyleOverrides);\n });\n }\n if (componentName && !skipVariantsResolver) {\n expressionsTail.push(function styleThemeVariants(props) {\n const theme = props.theme;\n const themeVariants = theme?.components?.[componentName]?.variants;\n if (!themeVariants) {\n return null;\n }\n return processStyleVariants(props, themeVariants);\n });\n }\n if (!skipSx) {\n expressionsTail.push(styleFunctionSx);\n }\n\n // This function can be called as a tagged template, so the first argument would contain\n // CSS `string[]` values.\n if (Array.isArray(expressionsBody[0])) {\n const inputStrings = expressionsBody.shift();\n\n // We need to add placeholders in the tagged template for the custom functions we have\n // possibly added (attachTheme, overrides, variants, and sx).\n const placeholdersHead = new Array(expressionsHead.length).fill('');\n const placeholdersTail = new Array(expressionsTail.length).fill('');\n let outputStrings;\n // prettier-ignore\n {\n outputStrings = [...placeholdersHead, ...inputStrings, ...placeholdersTail];\n outputStrings.raw = [...placeholdersHead, ...inputStrings.raw, ...placeholdersTail];\n }\n\n // The only case where we put something before `attachTheme`\n expressionsHead.unshift(outputStrings);\n }\n const expressions = [...expressionsHead, ...expressionsBody, ...expressionsTail];\n const Component = defaultStyledResolver(...expressions);\n if (tag.muiName) {\n Component.muiName = tag.muiName;\n }\n if (process.env.NODE_ENV !== 'production') {\n Component.displayName = generateDisplayName(componentName, componentSlot, tag);\n }\n return Component;\n };\n if (defaultStyledResolver.withConfig) {\n muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n }\n return muiStyledResolver;\n };\n return styled;\n}\nfunction generateDisplayName(componentName, componentSlot, tag) {\n if (componentName) {\n return `${componentName}${capitalize(componentSlot || '')}`;\n }\n return `Styled(${getDisplayName(tag)})`;\n}\nfunction generateStyledLabel(componentName, componentSlot) {\n let label;\n if (process.env.NODE_ENV !== 'production') {\n if (componentName) {\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n }\n }\n return label;\n}\nfunction isObjectEmpty(object) {\n // eslint-disable-next-line\n for (const _ in object) {\n return false;\n }\n return true;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n return typeof tag === 'string' &&\n // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96;\n}\nfunction lowercaseFirstLetter(string) {\n if (!string) {\n return string;\n }\n return string.charAt(0).toLowerCase() + string.slice(1);\n}","import createStyled from \"../createStyled/index.js\";\nconst styled = createStyled();\nexport default styled;","/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param defaultProps\n * @param props\n * @returns resolved props\n */\nexport default function resolveProps(defaultProps, props) {\n const output = {\n ...props\n };\n for (const key in defaultProps) {\n if (Object.prototype.hasOwnProperty.call(defaultProps, key)) {\n const propName = key;\n if (propName === 'components' || propName === 'slots') {\n output[propName] = {\n ...defaultProps[propName],\n ...output[propName]\n };\n } else if (propName === 'componentsProps' || propName === 'slotProps') {\n const defaultSlotProps = defaultProps[propName];\n const slotProps = props[propName];\n if (!slotProps) {\n output[propName] = defaultSlotProps || {};\n } else if (!defaultSlotProps) {\n output[propName] = slotProps;\n } else {\n output[propName] = {\n ...slotProps\n };\n for (const slotKey in defaultSlotProps) {\n if (Object.prototype.hasOwnProperty.call(defaultSlotProps, slotKey)) {\n const slotPropName = slotKey;\n output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);\n }\n }\n }\n } else if (output[propName] === undefined) {\n output[propName] = defaultProps[propName];\n }\n }\n }\n return output;\n}","import resolveProps from '@mui/utils/resolveProps';\nexport default function getThemeProps(params) {\n const {\n theme,\n name,\n props\n } = params;\n if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) {\n return props;\n }\n return resolveProps(theme.components[name].defaultProps, props);\n}","'use client';\n\nimport getThemeProps from \"./getThemeProps.js\";\nimport useTheme from \"../useTheme/index.js\";\nexport default function useThemeProps({\n props,\n name,\n defaultTheme,\n themeId\n}) {\n let theme = useTheme(defaultTheme);\n if (themeId) {\n theme = theme[themeId] || theme;\n }\n return getThemeProps({\n theme,\n name,\n props\n });\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.\n * This is useful for effects that are only needed for client-side rendering but not for SSR.\n *\n * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n * and confirm it doesn't apply to your use-case.\n */\nconst useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nexport default useEnhancedEffect;","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport { getThemeProps } from \"../useThemeProps/index.js\";\nimport useTheme from \"../useThemeWithoutDefault/index.js\";\n// TODO React 17: Remove `useMediaQueryOld` once React 17 support is removed\nfunction useMediaQueryOld(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr) {\n const [match, setMatch] = React.useState(() => {\n if (noSsr && matchMedia) {\n return matchMedia(query).matches;\n }\n if (ssrMatchMedia) {\n return ssrMatchMedia(query).matches;\n }\n\n // Once the component is mounted, we rely on the\n // event listeners to return the correct matches value.\n return defaultMatches;\n });\n useEnhancedEffect(() => {\n if (!matchMedia) {\n return undefined;\n }\n const queryList = matchMedia(query);\n const updateMatch = () => {\n setMatch(queryList.matches);\n };\n updateMatch();\n queryList.addEventListener('change', updateMatch);\n return () => {\n queryList.removeEventListener('change', updateMatch);\n };\n }, [query, matchMedia]);\n return match;\n}\n\n// See https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379 for why\nconst safeReact = {\n ...React\n};\nconst maybeReactUseSyncExternalStore = safeReact.useSyncExternalStore;\nfunction useMediaQueryNew(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr) {\n const getDefaultSnapshot = React.useCallback(() => defaultMatches, [defaultMatches]);\n const getServerSnapshot = React.useMemo(() => {\n if (noSsr && matchMedia) {\n return () => matchMedia(query).matches;\n }\n if (ssrMatchMedia !== null) {\n const {\n matches\n } = ssrMatchMedia(query);\n return () => matches;\n }\n return getDefaultSnapshot;\n }, [getDefaultSnapshot, query, ssrMatchMedia, noSsr, matchMedia]);\n const [getSnapshot, subscribe] = React.useMemo(() => {\n if (matchMedia === null) {\n return [getDefaultSnapshot, () => () => {}];\n }\n const mediaQueryList = matchMedia(query);\n return [() => mediaQueryList.matches, notify => {\n mediaQueryList.addEventListener('change', notify);\n return () => {\n mediaQueryList.removeEventListener('change', notify);\n };\n }];\n }, [getDefaultSnapshot, matchMedia, query]);\n const match = maybeReactUseSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n return match;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function unstable_createUseMediaQuery(params = {}) {\n const {\n themeId\n } = params;\n return function useMediaQuery(queryInput, options = {}) {\n let theme = useTheme();\n if (theme && themeId) {\n theme = theme[themeId] || theme;\n }\n // Wait for jsdom to support the match media feature.\n // All the browsers MUI support have this built-in.\n // This defensive check is here for simplicity.\n // Most of the time, the match media logic isn't central to people tests.\n const supportMatchMedia = typeof window !== 'undefined' && typeof window.matchMedia !== 'undefined';\n const {\n defaultMatches = false,\n matchMedia = supportMatchMedia ? window.matchMedia : null,\n ssrMatchMedia = null,\n noSsr = false\n } = getThemeProps({\n name: 'MuiUseMediaQuery',\n props: options,\n theme\n });\n if (process.env.NODE_ENV !== 'production') {\n if (typeof queryInput === 'function' && theme === null) {\n console.error(['MUI: The `query` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\\n'));\n }\n }\n let query = typeof queryInput === 'function' ? queryInput(theme) : queryInput;\n query = query.replace(/^@media( ?)/m, '');\n const useMediaQueryImplementation = maybeReactUseSyncExternalStore !== undefined ? useMediaQueryNew : useMediaQueryOld;\n const match = useMediaQueryImplementation(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr);\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue({\n query,\n match\n });\n }\n return match;\n };\n}\nconst useMediaQuery = unstable_createUseMediaQuery();\nexport default useMediaQuery;","function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}\nexport default clamp;","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/* eslint-disable @typescript-eslint/naming-convention */\nimport clamp from '@mui/utils/clamp';\n\n/**\n * Returns a number whose value is limited to the given range.\n * @param {number} value The value to be clamped\n * @param {number} min The lower boundary of the output range\n * @param {number} max The upper boundary of the output range\n * @returns {number} A number in the range [min, max]\n */\nfunction clampWrapper(value, min = 0, max = 1) {\n if (process.env.NODE_ENV !== 'production') {\n if (value < min || value > max) {\n console.error(`MUI: The value provided ${value} is out of range [${min}, ${max}].`);\n }\n }\n return clamp(value, min, max);\n}\n\n/**\n * Converts a color from CSS hex format to CSS rgb format.\n * @param {string} color - Hex color, i.e. #nnn or #nnnnnn\n * @returns {string} A CSS rgb color string\n */\nexport function hexToRgb(color) {\n color = color.slice(1);\n const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, 'g');\n let colors = color.match(re);\n if (colors && colors[0].length === 1) {\n colors = colors.map(n => n + n);\n }\n if (process.env.NODE_ENV !== 'production') {\n if (color.length !== color.trim().length) {\n console.error(`MUI: The color: \"${color}\" is invalid. Make sure the color input doesn't contain leading/trailing space.`);\n }\n }\n return colors ? `rgb${colors.length === 4 ? 'a' : ''}(${colors.map((n, index) => {\n return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;\n }).join(', ')})` : '';\n}\nfunction intToHex(int) {\n const hex = int.toString(16);\n return hex.length === 1 ? `0${hex}` : hex;\n}\n\n/**\n * Returns an object with the type and values of a color.\n *\n * Note: Does not support rgb % values.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {object} - A MUI color object: {type: string, values: number[]}\n */\nexport function decomposeColor(color) {\n // Idempotent\n if (color.type) {\n return color;\n }\n if (color.charAt(0) === '#') {\n return decomposeColor(hexToRgb(color));\n }\n const marker = color.indexOf('(');\n const type = color.substring(0, marker);\n if (!['rgb', 'rgba', 'hsl', 'hsla', 'color'].includes(type)) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: Unsupported \\`${color}\\` color.\\n` + 'The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().' : _formatErrorMessage(9, color));\n }\n let values = color.substring(marker + 1, color.length - 1);\n let colorSpace;\n if (type === 'color') {\n values = values.split(' ');\n colorSpace = values.shift();\n if (values.length === 4 && values[3].charAt(0) === '/') {\n values[3] = values[3].slice(1);\n }\n if (!['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].includes(colorSpace)) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: unsupported \\`${colorSpace}\\` color space.\\n` + 'The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.' : _formatErrorMessage(10, colorSpace));\n }\n } else {\n values = values.split(',');\n }\n values = values.map(value => parseFloat(value));\n return {\n type,\n values,\n colorSpace\n };\n}\n\n/**\n * Returns a channel created from the input color.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {string} - The channel for the color, that can be used in rgba or hsla colors\n */\nexport const colorChannel = color => {\n const decomposedColor = decomposeColor(color);\n return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.includes('hsl') && idx !== 0 ? `${val}%` : val).join(' ');\n};\nexport const private_safeColorChannel = (color, warning) => {\n try {\n return colorChannel(color);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n};\n\n/**\n * Converts a color object with type and values to a string.\n * @param {object} color - Decomposed color\n * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'\n * @param {array} color.values - [n,n,n] or [n,n,n,n]\n * @returns {string} A CSS color string\n */\nexport function recomposeColor(color) {\n const {\n type,\n colorSpace\n } = color;\n let {\n values\n } = color;\n if (type.includes('rgb')) {\n // Only convert the first 3 values to int (i.e. not alpha)\n values = values.map((n, i) => i < 3 ? parseInt(n, 10) : n);\n } else if (type.includes('hsl')) {\n values[1] = `${values[1]}%`;\n values[2] = `${values[2]}%`;\n }\n if (type.includes('color')) {\n values = `${colorSpace} ${values.join(' ')}`;\n } else {\n values = `${values.join(', ')}`;\n }\n return `${type}(${values})`;\n}\n\n/**\n * Converts a color from CSS rgb format to CSS hex format.\n * @param {string} color - RGB color, i.e. rgb(n, n, n)\n * @returns {string} A CSS rgb color string, i.e. #nnnnnn\n */\nexport function rgbToHex(color) {\n // Idempotent\n if (color.startsWith('#')) {\n return color;\n }\n const {\n values\n } = decomposeColor(color);\n return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;\n}\n\n/**\n * Converts a color from hsl format to rgb format.\n * @param {string} color - HSL color values\n * @returns {string} rgb color values\n */\nexport function hslToRgb(color) {\n color = decomposeColor(color);\n const {\n values\n } = color;\n const h = values[0];\n const s = values[1] / 100;\n const l = values[2] / 100;\n const a = s * Math.min(l, 1 - l);\n const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n let type = 'rgb';\n const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];\n if (color.type === 'hsla') {\n type += 'a';\n rgb.push(values[3]);\n }\n return recomposeColor({\n type,\n values: rgb\n });\n}\n/**\n * The relative brightness of any point in a color space,\n * normalized to 0 for darkest black and 1 for lightest white.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {number} The relative brightness of the color in the range 0 - 1\n */\nexport function getLuminance(color) {\n color = decomposeColor(color);\n let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values;\n rgb = rgb.map(val => {\n if (color.type !== 'color') {\n val /= 255; // normalized\n }\n return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;\n });\n\n // Truncate at 3 digits\n return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));\n}\n\n/**\n * Calculates the contrast ratio between two colors.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {number} A contrast ratio value in the range 0 - 21.\n */\nexport function getContrastRatio(foreground, background) {\n const lumA = getLuminance(foreground);\n const lumB = getLuminance(background);\n return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);\n}\n\n/**\n * Sets the absolute transparency of a color.\n * Any existing alpha values are overwritten.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} value - value to set the alpha channel to in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function alpha(color, value) {\n color = decomposeColor(color);\n value = clampWrapper(value);\n if (color.type === 'rgb' || color.type === 'hsl') {\n color.type += 'a';\n }\n if (color.type === 'color') {\n color.values[3] = `/${value}`;\n } else {\n color.values[3] = value;\n }\n return recomposeColor(color);\n}\nexport function private_safeAlpha(color, value, warning) {\n try {\n return alpha(color, value);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darkens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function darken(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.includes('hsl')) {\n color.values[2] *= 1 - coefficient;\n } else if (color.type.includes('rgb') || color.type.includes('color')) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] *= 1 - coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeDarken(color, coefficient, warning) {\n try {\n return darken(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Lightens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function lighten(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.includes('hsl')) {\n color.values[2] += (100 - color.values[2]) * coefficient;\n } else if (color.type.includes('rgb')) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (255 - color.values[i]) * coefficient;\n }\n } else if (color.type.includes('color')) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (1 - color.values[i]) * coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeLighten(color, coefficient, warning) {\n try {\n return lighten(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darken or lighten a color, depending on its luminance.\n * Light colors are darkened, dark colors are lightened.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient=0.15 - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function emphasize(color, coefficient = 0.15) {\n return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\nexport function private_safeEmphasize(color, coefficient, warning) {\n try {\n return emphasize(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Blend a transparent overlay color with a background color, resulting in a single\n * RGB color.\n * @param {string} background - CSS color\n * @param {string} overlay - CSS color\n * @param {number} opacity - Opacity multiplier in the range 0 - 1\n * @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.\n */\nexport function blend(background, overlay, opacity, gamma = 1.0) {\n const blendChannel = (b, o) => Math.round((b ** (1 / gamma) * (1 - opacity) + o ** (1 / gamma) * opacity) ** gamma);\n const backgroundColor = decomposeColor(background);\n const overlayColor = decomposeColor(overlay);\n const rgb = [blendChannel(backgroundColor.values[0], overlayColor.values[0]), blendChannel(backgroundColor.values[1], overlayColor.values[1]), blendChannel(backgroundColor.values[2], overlayColor.values[2])];\n return recomposeColor({\n type: 'rgb',\n values: rgb\n });\n}","import PropTypes from 'prop-types';\nconst refType = PropTypes.oneOfType([PropTypes.func, PropTypes.object]);\nexport default refType;","/**\n * Safe chained function.\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n */\nexport default function createChainedFunction(...funcs) {\n return funcs.reduce((acc, func) => {\n if (func == null) {\n return acc;\n }\n return function chainedFunction(...args) {\n acc.apply(this, args);\n func.apply(this, args);\n };\n }, () => {});\n}","// Corresponds to 10 frames at 60 Hz.\n// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.\nexport default function debounce(func, wait = 166) {\n let timeout;\n function debounced(...args) {\n const later = () => {\n // @ts-ignore\n func.apply(this, args);\n };\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n }\n debounced.clear = () => {\n clearTimeout(timeout);\n };\n return debounced;\n}","import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf(\n // For server components `muiName` is avaialble in element.type._payload.value.muiName\n // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45\n // eslint-disable-next-line no-underscore-dangle\n element.type.muiName ?? element.type?._payload?.value?.muiName) !== -1;\n}","export default function ownerDocument(node) {\n return node && node.ownerDocument || document;\n}","import ownerDocument from \"../ownerDocument/index.js\";\nexport default function ownerWindow(node) {\n const doc = ownerDocument(node);\n return doc.defaultView || window;\n}","/**\n * TODO v5: consider making it private\n *\n * passes {value} to {ref}\n *\n * WARNING: Be sure to only call this inside a callback that is passed as a ref.\n * Otherwise, make sure to cleanup the previous {ref} if it changes. See\n * https://github.com/mui/material-ui/issues/13539\n *\n * Useful if you want to expose the ref of an inner component to the public API\n * while still using it inside the component.\n * @param ref A ref callback or ref object. If anything falsy, this is a no-op.\n */\nexport default function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}","'use client';\n\nimport * as React from 'react';\nlet globalId = 0;\n\n// TODO React 17: Remove `useGlobalId` once React 17 support is removed\nfunction useGlobalId(idOverride) {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`mui-${globalId}`);\n }\n }, [defaultId]);\n return id;\n}\n\n// See https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379 for why\nconst safeReact = {\n ...React\n};\nconst maybeReactUseId = safeReact.useId;\n\n/**\n *\n * @example <div id={useId()} />\n * @param idOverride\n * @returns {string}\n */\nexport default function useId(idOverride) {\n // React.useId() is only available from React 17.0.0.\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride ?? reactId;\n }\n\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride);\n}","'use client';\n\n// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes, dependency arrays are intentionally ignored\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nexport default function useControlled({\n controlled,\n default: defaultProp,\n name,\n state = 'value'\n}) {\n // isControlled is ignored in the hook dependency lists as it should never change.\n const {\n current: isControlled\n } = React.useRef(controlled !== undefined);\n const [valueState, setValue] = React.useState(defaultProp);\n const value = isControlled ? controlled : valueState;\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (controlled !== undefined)) {\n console.error([`MUI: A component is changing the ${isControlled ? '' : 'un'}controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${name} ` + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [state, name, controlled]);\n const {\n current: defaultValue\n } = React.useRef(defaultProp);\n React.useEffect(() => {\n // Object.is() is not equivalent to the === operator.\n // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is for more details.\n if (!isControlled && !Object.is(defaultValue, defaultProp)) {\n console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\\n'));\n }\n }, [JSON.stringify(defaultProp)]);\n }\n const setValueIfUncontrolled = React.useCallback(newValue => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from \"../useEnhancedEffect/index.js\";\n\n/**\n * Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892\n * See RFC in https://github.com/reactjs/rfcs/pull/220\n */\n\nfunction useEventCallback(fn) {\n const ref = React.useRef(fn);\n useEnhancedEffect(() => {\n ref.current = fn;\n });\n return React.useRef((...args) =>\n // @ts-expect-error hide `this`\n (0, ref.current)(...args)).current;\n}\nexport default useEventCallback;","'use client';\n\nimport * as React from 'react';\n\n/**\n * Merges refs into a single memoized callback ref or `null`.\n *\n * ```tsx\n * const rootRef = React.useRef<Instance>(null);\n * const refFork = useForkRef(rootRef, props.ref);\n *\n * return (\n * <Root {...props} ref={refFork} />\n * );\n * ```\n *\n * @param {Array<React.Ref<Instance> | undefined>} refs The ref array.\n * @returns {React.RefCallback<Instance> | null} The new ref callback.\n */\nexport default function useForkRef(...refs) {\n const cleanupRef = React.useRef(undefined);\n const refEffect = React.useCallback(instance => {\n const cleanups = refs.map(ref => {\n if (ref == null) {\n return null;\n }\n if (typeof ref === 'function') {\n const refCallback = ref;\n const refCleanup = refCallback(instance);\n return typeof refCleanup === 'function' ? refCleanup : () => {\n refCallback(null);\n };\n }\n ref.current = instance;\n return () => {\n ref.current = null;\n };\n });\n return () => {\n cleanups.forEach(refCleanup => refCleanup?.());\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n return React.useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null;\n }\n return value => {\n if (cleanupRef.current) {\n cleanupRef.current();\n cleanupRef.current = undefined;\n }\n if (value != null) {\n cleanupRef.current = refEffect(value);\n }\n };\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- intentionally ignoring that the dependency array must be an array literal\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n}","'use client';\n\nimport * as React from 'react';\nconst UNINITIALIZED = {};\n\n/**\n * A React.useRef() that is initialized lazily with a function. Note that it accepts an optional\n * initialization argument, so the initialization function doesn't need to be an inline closure.\n *\n * @usage\n * const ref = useLazyRef(sortColumns, columns)\n */\nexport default function useLazyRef(init, initArg) {\n const ref = React.useRef(UNINITIALIZED);\n if (ref.current === UNINITIALIZED) {\n ref.current = init(initArg);\n }\n return ref;\n}","'use client';\n\nimport * as React from 'react';\nconst EMPTY = [];\n\n/**\n * A React.useEffect equivalent that runs once, when the component is mounted.\n */\nexport default function useOnMount(fn) {\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- no need to put `fn` in the dependency array\n /* eslint-disable react-hooks/exhaustive-deps */\n React.useEffect(fn, EMPTY);\n /* eslint-enable react-hooks/exhaustive-deps */\n}","'use client';\n\nimport useLazyRef from \"../useLazyRef/useLazyRef.js\";\nimport useOnMount from \"../useOnMount/useOnMount.js\";\nexport class Timeout {\n static create() {\n return new Timeout();\n }\n currentId = null;\n\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n start(delay, fn) {\n this.clear();\n this.currentId = setTimeout(() => {\n this.currentId = null;\n fn();\n }, delay);\n }\n clear = () => {\n if (this.currentId !== null) {\n clearTimeout(this.currentId);\n this.currentId = null;\n }\n };\n disposeEffect = () => {\n return this.clear;\n };\n}\nexport default function useTimeout() {\n const timeout = useLazyRef(Timeout.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}","/**\n * Returns a boolean indicating if the event's target has :focus-visible\n */\nexport default function isFocusVisible(element) {\n try {\n return element.matches(':focus-visible');\n } catch (error) {\n // Do not warn on jsdom tests, otherwise all tests that rely on focus have to be skipped\n // Tests that rely on `:focus-visible` will still have to be skipped in jsdom\n if (process.env.NODE_ENV !== 'production' && !/jsdom/.test(window.navigator.userAgent)) {\n console.warn(['MUI: The `:focus-visible` pseudo class is not supported in this browser.', 'Some components rely on this feature to work properly.'].join('\\n'));\n }\n }\n return false;\n}","// A change of the browser zoom change the scrollbar size.\n// Credit https://github.com/twbs/bootstrap/blob/488fd8afc535ca3a6ad4dc581f5e89217b6a36ac/js/src/util/scrollbar.js#L14-L18\nexport default function getScrollbarSize(win = window) {\n // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes\n const documentWidth = win.document.documentElement.clientWidth;\n return win.innerWidth - documentWidth;\n}","'use client';\n\nimport * as React from 'react';\nconst usePreviousProps = value => {\n const ref = React.useRef({});\n React.useEffect(() => {\n ref.current = value;\n });\n return ref.current;\n};\nexport default usePreviousProps;","import * as React from 'react';\n\n/**\n * Gets only the valid children of a component,\n * and ignores any nullish or falsy child.\n *\n * @param children the children\n */\nexport default function getValidReactChildren(children) {\n return React.Children.toArray(children).filter(child => /*#__PURE__*/React.isValidElement(child));\n}","const visuallyHidden = {\n border: 0,\n clip: 'rect(0 0 0 0)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n};\nexport default visuallyHidden;","/* eslint no-restricted-syntax: 0, prefer-template: 0, guard-for-in: 0\n ---\n These rules are preventing the performance optimizations below.\n */\n\n/**\n * Compose classes from multiple sources.\n *\n * @example\n * ```tsx\n * const slots = {\n * root: ['root', 'primary'],\n * label: ['label'],\n * };\n *\n * const getUtilityClass = (slot) => `MuiButton-${slot}`;\n *\n * const classes = {\n * root: 'my-root-class',\n * };\n *\n * const output = composeClasses(slots, getUtilityClass, classes);\n * // {\n * // root: 'MuiButton-root MuiButton-primary my-root-class',\n * // label: 'MuiButton-label',\n * // }\n * ```\n *\n * @param slots a list of classes for each possible slot\n * @param getUtilityClass a function to resolve the class based on the slot name\n * @param classes the input classes from props\n * @returns the resolved classes for all slots\n */\nexport default function composeClasses(slots, getUtilityClass, classes = undefined) {\n const output = {};\n for (const slotName in slots) {\n const slot = slots[slotName];\n let buffer = '';\n let start = true;\n for (let i = 0; i < slot.length; i += 1) {\n const value = slot[i];\n if (value) {\n buffer += (start === true ? '' : ' ') + getUtilityClass(value);\n start = false;\n if (classes && classes[value]) {\n buffer += ' ' + classes[value];\n }\n }\n }\n output[slotName] = buffer;\n }\n return output;\n}","/**\n * Determines if a given element is a DOM element name (i.e. not a React component).\n */\nfunction isHostComponent(element) {\n return typeof element === 'string';\n}\nexport default isHostComponent;","import isHostComponent from \"../isHostComponent/index.js\";\n\n/**\n * Type of the ownerState based on the type of an element it applies to.\n * This resolves to the provided OwnerState for React components and `undefined` for host components.\n * Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.\n */\n\n/**\n * Appends the ownerState object to the props, merging with the existing one if necessary.\n *\n * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.\n * @param otherProps Props of the element.\n * @param ownerState\n */\nfunction appendOwnerState(elementType, otherProps, ownerState) {\n if (elementType === undefined || isHostComponent(elementType)) {\n return otherProps;\n }\n return {\n ...otherProps,\n ownerState: {\n ...otherProps.ownerState,\n ...ownerState\n }\n };\n}\nexport default appendOwnerState;","/**\n * Extracts event handlers from a given object.\n * A prop is considered an event handler if it is a function and its name starts with `on`.\n *\n * @param object An object to extract event handlers from.\n * @param excludeKeys An array of keys to exclude from the returned object.\n */\nfunction extractEventHandlers(object, excludeKeys = []) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}\nexport default extractEventHandlers;","/**\n * Removes event handlers from the given object.\n * A field is considered an event handler if it is a function with a name beginning with `on`.\n *\n * @param object Object to remove event handlers from.\n * @returns Object with event handlers removed.\n */\nfunction omitEventHandlers(object) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => !(prop.match(/^on[A-Z]/) && typeof object[prop] === 'function')).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}\nexport default omitEventHandlers;","import clsx from 'clsx';\nimport extractEventHandlers from \"../extractEventHandlers/index.js\";\nimport omitEventHandlers from \"../omitEventHandlers/index.js\";\n/**\n * Merges the slot component internal props (usually coming from a hook)\n * with the externally provided ones.\n *\n * The merge order is (the latter overrides the former):\n * 1. The internal props (specified as a getter function to work with get*Props hook result)\n * 2. Additional props (specified internally on a Base UI component)\n * 3. External props specified on the owner component. These should only be used on a root slot.\n * 4. External props specified in the `slotProps.*` prop.\n * 5. The `className` prop - combined from all the above.\n * @param parameters\n * @returns\n */\nfunction mergeSlotProps(parameters) {\n const {\n getSlotProps,\n additionalProps,\n externalSlotProps,\n externalForwardedProps,\n className\n } = parameters;\n if (!getSlotProps) {\n // The simpler case - getSlotProps is not defined, so no internal event handlers are defined,\n // so we can simply merge all the props without having to worry about extracting event handlers.\n const joinedClasses = clsx(additionalProps?.className, className, externalForwardedProps?.className, externalSlotProps?.className);\n const mergedStyle = {\n ...additionalProps?.style,\n ...externalForwardedProps?.style,\n ...externalSlotProps?.style\n };\n const props = {\n ...additionalProps,\n ...externalForwardedProps,\n ...externalSlotProps\n };\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: undefined\n };\n }\n\n // In this case, getSlotProps is responsible for calling the external event handlers.\n // We don't need to include them in the merged props because of this.\n\n const eventHandlers = extractEventHandlers({\n ...externalForwardedProps,\n ...externalSlotProps\n });\n const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);\n const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);\n const internalSlotProps = getSlotProps(eventHandlers);\n\n // The order of classes is important here.\n // Emotion (that we use in libraries consuming Base UI) depends on this order\n // to properly override style. It requires the most important classes to be last\n // (see https://github.com/mui/material-ui/pull/33205) for the related discussion.\n const joinedClasses = clsx(internalSlotProps?.className, additionalProps?.className, className, externalForwardedProps?.className, externalSlotProps?.className);\n const mergedStyle = {\n ...internalSlotProps?.style,\n ...additionalProps?.style,\n ...externalForwardedProps?.style,\n ...externalSlotProps?.style\n };\n const props = {\n ...internalSlotProps,\n ...additionalProps,\n ...otherPropsWithoutEventHandlers,\n ...componentsPropsWithoutEventHandlers\n };\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: internalSlotProps.ref\n };\n}\nexport default mergeSlotProps;","/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nfunction resolveComponentProps(componentProps, ownerState, slotState) {\n if (typeof componentProps === 'function') {\n return componentProps(ownerState, slotState);\n }\n return componentProps;\n}\nexport default resolveComponentProps;","'use client';\n\nimport useForkRef from \"../useForkRef/index.js\";\nimport appendOwnerState from \"../appendOwnerState/index.js\";\nimport mergeSlotProps from \"../mergeSlotProps/index.js\";\nimport resolveComponentProps from \"../resolveComponentProps/index.js\";\n/**\n * @ignore - do not document.\n * Builds the props to be passed into the slot of an unstyled component.\n * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.\n * If the slot component is not a host component, it also merges in the `ownerState`.\n *\n * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.\n */\nfunction useSlotProps(parameters) {\n const {\n elementType,\n externalSlotProps,\n ownerState,\n skipResolvingSlotProps = false,\n ...other\n } = parameters;\n const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);\n const {\n props: mergedProps,\n internalRef\n } = mergeSlotProps({\n ...other,\n externalSlotProps: resolvedComponentsProps\n });\n const ref = useForkRef(internalRef, resolvedComponentsProps?.ref, parameters.additionalProps?.ref);\n const props = appendOwnerState(elementType, {\n ...mergedProps,\n ref\n }, ownerState);\n return props;\n}\nexport default useSlotProps;","import * as React from 'react';\n\n/**\n * Returns the ref of a React element handling differences between React 19 and older versions.\n * It will throw runtime error if the element is not a valid React element.\n *\n * @param element React.ReactElement\n * @returns React.Ref<any> | null\n */\nexport default function getReactElementRef(element) {\n // 'ref' is passed as prop in React 19, whereas 'ref' is directly attached to children in older versions\n if (parseInt(React.version, 10) >= 19) {\n return element?.props?.ref || null;\n }\n // @ts-expect-error element.ref is not included in the ReactElement type\n // https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/70189\n return element?.ref || null;\n}","'use client';\n\nimport * as React from 'react';\nconst ThemeContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== 'production') {\n ThemeContext.displayName = 'ThemeContext';\n}\nexport default ThemeContext;","import * as React from 'react';\nimport ThemeContext from \"./ThemeContext.js\";\nexport default function useTheme() {\n const theme = React.useContext(ThemeContext);\n if (process.env.NODE_ENV !== 'production') {\n // TODO: uncomment once we enable eslint-plugin-react-compiler eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks -- It's not required to run React.useDebugValue in production\n React.useDebugValue(theme);\n }\n return theme;\n}","const hasSymbol = typeof Symbol === 'function' && Symbol.for;\nexport default hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__';","import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { exactProp } from '@mui/utils';\nimport ThemeContext from \"../useTheme/ThemeContext.js\";\nimport useTheme from \"../useTheme/index.js\";\nimport nested from \"./nested.js\";\n\n// To support composition of theme.\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction mergeOuterLocalTheme(outerTheme, localTheme) {\n if (typeof localTheme === 'function') {\n const mergedTheme = localTheme(outerTheme);\n if (process.env.NODE_ENV !== 'production') {\n if (!mergedTheme) {\n console.error(['MUI: You should return an object from your theme function, i.e.', '<ThemeProvider theme={() => ({})} />'].join('\\n'));\n }\n }\n return mergedTheme;\n }\n return {\n ...outerTheme,\n ...localTheme\n };\n}\n\n/**\n * This component takes a `theme` prop.\n * It makes the `theme` available down the React tree thanks to React context.\n * This component should preferably be used at **the root of your component tree**.\n */\nfunction ThemeProvider(props) {\n const {\n children,\n theme: localTheme\n } = props;\n const outerTheme = useTheme();\n if (process.env.NODE_ENV !== 'production') {\n if (outerTheme === null && typeof localTheme === 'function') {\n console.error(['MUI: You are providing a theme function prop to the ThemeProvider component:', '<ThemeProvider theme={outerTheme => outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\\n'));\n }\n }\n const theme = React.useMemo(() => {\n const output = outerTheme === null ? {\n ...localTheme\n } : mergeOuterLocalTheme(outerTheme, localTheme);\n if (output != null) {\n output[nested] = outerTheme !== null;\n }\n return output;\n }, [localTheme, outerTheme]);\n return /*#__PURE__*/_jsx(ThemeContext.Provider, {\n value: theme,\n children: children\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? ThemeProvider.propTypes = {\n /**\n * Your component tree.\n */\n children: PropTypes.node,\n /**\n * A theme object. You can provide a function to extend the outer theme.\n */\n theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? ThemeProvider.propTypes = exactProp(ThemeProvider.propTypes) : void 0;\n}\nexport default ThemeProvider;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst RtlContext = /*#__PURE__*/React.createContext();\nfunction RtlProvider({\n value,\n ...props\n}) {\n return /*#__PURE__*/_jsx(RtlContext.Provider, {\n value: value ?? true,\n ...props\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? RtlProvider.propTypes = {\n children: PropTypes.node,\n value: PropTypes.bool\n} : void 0;\nexport const useRtl = () => {\n const value = React.useContext(RtlContext);\n return value ?? false;\n};\nexport default RtlProvider;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport resolveProps from '@mui/utils/resolveProps';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PropsContext = /*#__PURE__*/React.createContext(undefined);\nfunction DefaultPropsProvider({\n value,\n children\n}) {\n return /*#__PURE__*/_jsx(PropsContext.Provider, {\n value: value,\n children: children\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? DefaultPropsProvider.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * @ignore\n */\n value: PropTypes.object\n} : void 0;\nfunction getThemeProps(params) {\n const {\n theme,\n name,\n props\n } = params;\n if (!theme || !theme.components || !theme.components[name]) {\n return props;\n }\n const config = theme.components[name];\n if (config.defaultProps) {\n // compatible with v5 signature\n return resolveProps(config.defaultProps, props);\n }\n if (!config.styleOverrides && !config.variants) {\n // v6 signature, no property 'defaultProps'\n return resolveProps(config, props);\n }\n return props;\n}\nexport function useDefaultProps({\n props,\n name\n}) {\n const ctx = React.useContext(PropsContext);\n return getThemeProps({\n props,\n name,\n theme: {\n components: ctx\n }\n });\n}\nexport default DefaultPropsProvider;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { ThemeProvider as MuiThemeProvider, useTheme as usePrivateTheme } from '@mui/private-theming';\nimport exactProp from '@mui/utils/exactProp';\nimport { ThemeContext as StyledEngineThemeContext } from '@mui/styled-engine';\nimport useThemeWithoutDefault from \"../useThemeWithoutDefault/index.js\";\nimport RtlProvider from \"../RtlProvider/index.js\";\nimport DefaultPropsProvider from \"../DefaultPropsProvider/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst EMPTY_THEME = {};\nfunction useThemeScoping(themeId, upperTheme, localTheme, isPrivate = false) {\n return React.useMemo(() => {\n const resolvedTheme = themeId ? upperTheme[themeId] || upperTheme : upperTheme;\n if (typeof localTheme === 'function') {\n const mergedTheme = localTheme(resolvedTheme);\n const result = themeId ? {\n ...upperTheme,\n [themeId]: mergedTheme\n } : mergedTheme;\n // must return a function for the private theme to NOT merge with the upper theme.\n // see the test case \"use provided theme from a callback\" in ThemeProvider.test.js\n if (isPrivate) {\n return () => result;\n }\n return result;\n }\n return themeId ? {\n ...upperTheme,\n [themeId]: localTheme\n } : {\n ...upperTheme,\n ...localTheme\n };\n }, [themeId, upperTheme, localTheme, isPrivate]);\n}\n\n/**\n * This component makes the `theme` available down the React tree.\n * It should preferably be used at **the root of your component tree**.\n *\n * <ThemeProvider theme={theme}> // existing use case\n * <ThemeProvider theme={{ id: theme }}> // theme scoping\n */\nfunction ThemeProvider(props) {\n const {\n children,\n theme: localTheme,\n themeId\n } = props;\n const upperTheme = useThemeWithoutDefault(EMPTY_THEME);\n const upperPrivateTheme = usePrivateTheme() || EMPTY_THEME;\n if (process.env.NODE_ENV !== 'production') {\n if (upperTheme === null && typeof localTheme === 'function' || themeId && upperTheme && !upperTheme[themeId] && typeof localTheme === 'function') {\n console.error(['MUI: You are providing a theme function prop to the ThemeProvider component:', '<ThemeProvider theme={outerTheme => outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\\n'));\n }\n }\n const engineTheme = useThemeScoping(themeId, upperTheme, localTheme);\n const privateTheme = useThemeScoping(themeId, upperPrivateTheme, localTheme, true);\n const rtlValue = (themeId ? engineTheme[themeId] : engineTheme).direction === 'rtl';\n return /*#__PURE__*/_jsx(MuiThemeProvider, {\n theme: privateTheme,\n children: /*#__PURE__*/_jsx(StyledEngineThemeContext.Provider, {\n value: engineTheme,\n children: /*#__PURE__*/_jsx(RtlProvider, {\n value: rtlValue,\n children: /*#__PURE__*/_jsx(DefaultPropsProvider, {\n value: themeId ? engineTheme[themeId].components : engineTheme.components,\n children: children\n })\n })\n })\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? ThemeProvider.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Your component tree.\n */\n children: PropTypes.node,\n /**\n * A theme object. You can provide a function to extend the outer theme.\n */\n theme: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,\n /**\n * The design system's unique id for getting the corresponded theme when there are multiple design systems.\n */\n themeId: PropTypes.string\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? ThemeProvider.propTypes = exactProp(ThemeProvider.propTypes) : void 0;\n}\nexport default ThemeProvider;","import preprocessStyles from \"./preprocessStyles.js\";\n\n/* eslint-disable @typescript-eslint/naming-convention */\n\n// We need to pass an argument as `{ theme }` for PigmentCSS, but we don't want to\n// allocate more objects.\nconst arg = {\n theme: undefined\n};\n\n/**\n * Memoize style function on theme.\n * Intended to be used in styled() calls that only need access to the theme.\n */\nexport default function unstable_memoTheme(styleFn) {\n let lastValue;\n let lastTheme;\n return function styleMemoized(props) {\n let value = lastValue;\n if (value === undefined || props.theme !== lastTheme) {\n arg.theme = props.theme;\n value = preprocessStyles(styleFn(arg));\n lastValue = value;\n lastTheme = props.theme;\n }\n return value;\n };\n}","/**\n * Split this component for RSC import\n */\nimport * as React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const DEFAULT_MODE_STORAGE_KEY = 'mode';\nexport const DEFAULT_COLOR_SCHEME_STORAGE_KEY = 'color-scheme';\nexport const DEFAULT_ATTRIBUTE = 'data-color-scheme';\nexport default function InitColorSchemeScript(options) {\n const {\n defaultMode = 'system',\n defaultLightColorScheme = 'light',\n defaultDarkColorScheme = 'dark',\n modeStorageKey = DEFAULT_MODE_STORAGE_KEY,\n colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,\n attribute: initialAttribute = DEFAULT_ATTRIBUTE,\n colorSchemeNode = 'document.documentElement',\n nonce\n } = options || {};\n let setter = '';\n let attribute = initialAttribute;\n if (initialAttribute === 'class') {\n attribute = '.%s';\n }\n if (initialAttribute === 'data') {\n attribute = '[data-%s]';\n }\n if (attribute.startsWith('.')) {\n const selector = attribute.substring(1);\n setter += `${colorSchemeNode}.classList.remove('${selector}'.replace('%s', light), '${selector}'.replace('%s', dark));\n ${colorSchemeNode}.classList.add('${selector}'.replace('%s', colorScheme));`;\n }\n const matches = attribute.match(/\\[([^\\]]+)\\]/); // case [data-color-scheme=%s] or [data-color-scheme]\n if (matches) {\n const [attr, value] = matches[1].split('=');\n if (!value) {\n setter += `${colorSchemeNode}.removeAttribute('${attr}'.replace('%s', light));\n ${colorSchemeNode}.removeAttribute('${attr}'.replace('%s', dark));`;\n }\n setter += `\n ${colorSchemeNode}.setAttribute('${attr}'.replace('%s', colorScheme), ${value ? `${value}.replace('%s', colorScheme)` : '\"\"'});`;\n } else {\n setter += `${colorSchemeNode}.setAttribute('${attribute}', colorScheme);`;\n }\n return /*#__PURE__*/_jsx(\"script\", {\n suppressHydrationWarning: true,\n nonce: typeof window === 'undefined' ? nonce : ''\n // eslint-disable-next-line react/no-danger\n ,\n dangerouslySetInnerHTML: {\n __html: `(function() {\ntry {\n let colorScheme = '';\n const mode = localStorage.getItem('${modeStorageKey}') || '${defaultMode}';\n const dark = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';\n const light = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';\n if (mode === 'system') {\n // handle system mode\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = dark\n } else {\n colorScheme = light\n }\n }\n if (mode === 'light') {\n colorScheme = light;\n }\n if (mode === 'dark') {\n colorScheme = dark;\n }\n if (colorScheme) {\n ${setter}\n }\n} catch(e){}})();`\n }\n }, \"mui-color-scheme-init\");\n}","function noop() {}\nconst localStorageManager = ({\n key,\n storageWindow\n}) => {\n if (!storageWindow && typeof window !== 'undefined') {\n storageWindow = window;\n }\n return {\n get(defaultValue) {\n if (typeof window === 'undefined') {\n return undefined;\n }\n if (!storageWindow) {\n return defaultValue;\n }\n let value;\n try {\n value = storageWindow.localStorage.getItem(key);\n } catch {\n // Unsupported\n }\n return value || defaultValue;\n },\n set: value => {\n if (storageWindow) {\n try {\n storageWindow.localStorage.setItem(key, value);\n } catch {\n // Unsupported\n }\n }\n },\n subscribe: handler => {\n if (!storageWindow) {\n return noop;\n }\n const listener = event => {\n const value = event.newValue;\n if (event.key === key) {\n handler(value);\n }\n };\n storageWindow.addEventListener('storage', listener);\n return () => {\n storageWindow.removeEventListener('storage', listener);\n };\n }\n };\n};\nexport default localStorageManager;","'use client';\n\nimport * as React from 'react';\nimport { DEFAULT_MODE_STORAGE_KEY, DEFAULT_COLOR_SCHEME_STORAGE_KEY } from \"../InitColorSchemeScript/InitColorSchemeScript.js\";\nimport localStorageManager from \"./localStorageManager.js\";\nfunction noop() {}\nexport function getSystemMode(mode) {\n if (typeof window !== 'undefined' && typeof window.matchMedia === 'function' && mode === 'system') {\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n return 'dark';\n }\n return 'light';\n }\n return undefined;\n}\nfunction processState(state, callback) {\n if (state.mode === 'light' || state.mode === 'system' && state.systemMode === 'light') {\n return callback('light');\n }\n if (state.mode === 'dark' || state.mode === 'system' && state.systemMode === 'dark') {\n return callback('dark');\n }\n return undefined;\n}\nexport function getColorScheme(state) {\n return processState(state, mode => {\n if (mode === 'light') {\n return state.lightColorScheme;\n }\n if (mode === 'dark') {\n return state.darkColorScheme;\n }\n return undefined;\n });\n}\nexport default function useCurrentColorScheme(options) {\n const {\n defaultMode = 'light',\n defaultLightColorScheme,\n defaultDarkColorScheme,\n supportedColorSchemes = [],\n modeStorageKey = DEFAULT_MODE_STORAGE_KEY,\n colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,\n storageWindow = typeof window === 'undefined' ? undefined : window,\n storageManager = localStorageManager,\n noSsr = false\n } = options;\n const joinedColorSchemes = supportedColorSchemes.join(',');\n const isMultiSchemes = supportedColorSchemes.length > 1;\n const modeStorage = React.useMemo(() => storageManager?.({\n key: modeStorageKey,\n storageWindow\n }), [storageManager, modeStorageKey, storageWindow]);\n const lightStorage = React.useMemo(() => storageManager?.({\n key: `${colorSchemeStorageKey}-light`,\n storageWindow\n }), [storageManager, colorSchemeStorageKey, storageWindow]);\n const darkStorage = React.useMemo(() => storageManager?.({\n key: `${colorSchemeStorageKey}-dark`,\n storageWindow\n }), [storageManager, colorSchemeStorageKey, storageWindow]);\n const [state, setState] = React.useState(() => {\n const initialMode = modeStorage?.get(defaultMode) || defaultMode;\n const lightColorScheme = lightStorage?.get(defaultLightColorScheme) || defaultLightColorScheme;\n const darkColorScheme = darkStorage?.get(defaultDarkColorScheme) || defaultDarkColorScheme;\n return {\n mode: initialMode,\n systemMode: getSystemMode(initialMode),\n lightColorScheme,\n darkColorScheme\n };\n });\n const [isClient, setIsClient] = React.useState(noSsr || !isMultiSchemes);\n React.useEffect(() => {\n setIsClient(true); // to rerender the component after hydration\n }, []);\n const colorScheme = getColorScheme(state);\n const setMode = React.useCallback(mode => {\n setState(currentState => {\n if (mode === currentState.mode) {\n // do nothing if mode does not change\n return currentState;\n }\n const newMode = mode ?? defaultMode;\n modeStorage?.set(newMode);\n return {\n ...currentState,\n mode: newMode,\n systemMode: getSystemMode(newMode)\n };\n });\n }, [modeStorage, defaultMode]);\n const setColorScheme = React.useCallback(value => {\n if (!value) {\n setState(currentState => {\n lightStorage?.set(defaultLightColorScheme);\n darkStorage?.set(defaultDarkColorScheme);\n return {\n ...currentState,\n lightColorScheme: defaultLightColorScheme,\n darkColorScheme: defaultDarkColorScheme\n };\n });\n } else if (typeof value === 'string') {\n if (value && !joinedColorSchemes.includes(value)) {\n console.error(`\\`${value}\\` does not exist in \\`theme.colorSchemes\\`.`);\n } else {\n setState(currentState => {\n const newState = {\n ...currentState\n };\n processState(currentState, mode => {\n if (mode === 'light') {\n lightStorage?.set(value);\n newState.lightColorScheme = value;\n }\n if (mode === 'dark') {\n darkStorage?.set(value);\n newState.darkColorScheme = value;\n }\n });\n return newState;\n });\n }\n } else {\n setState(currentState => {\n const newState = {\n ...currentState\n };\n const newLightColorScheme = value.light === null ? defaultLightColorScheme : value.light;\n const newDarkColorScheme = value.dark === null ? defaultDarkColorScheme : value.dark;\n if (newLightColorScheme) {\n if (!joinedColorSchemes.includes(newLightColorScheme)) {\n console.error(`\\`${newLightColorScheme}\\` does not exist in \\`theme.colorSchemes\\`.`);\n } else {\n newState.lightColorScheme = newLightColorScheme;\n lightStorage?.set(newLightColorScheme);\n }\n }\n if (newDarkColorScheme) {\n if (!joinedColorSchemes.includes(newDarkColorScheme)) {\n console.error(`\\`${newDarkColorScheme}\\` does not exist in \\`theme.colorSchemes\\`.`);\n } else {\n newState.darkColorScheme = newDarkColorScheme;\n darkStorage?.set(newDarkColorScheme);\n }\n }\n return newState;\n });\n }\n }, [joinedColorSchemes, lightStorage, darkStorage, defaultLightColorScheme, defaultDarkColorScheme]);\n const handleMediaQuery = React.useCallback(event => {\n if (state.mode === 'system') {\n setState(currentState => {\n const systemMode = event?.matches ? 'dark' : 'light';\n\n // Early exit, nothing changed.\n if (currentState.systemMode === systemMode) {\n return currentState;\n }\n return {\n ...currentState,\n systemMode\n };\n });\n }\n }, [state.mode]);\n\n // Ref hack to avoid adding handleMediaQuery as a dep\n const mediaListener = React.useRef(handleMediaQuery);\n mediaListener.current = handleMediaQuery;\n React.useEffect(() => {\n if (typeof window.matchMedia !== 'function' || !isMultiSchemes) {\n return undefined;\n }\n const handler = (...args) => mediaListener.current(...args);\n\n // Always listen to System preference\n const media = window.matchMedia('(prefers-color-scheme: dark)');\n\n // Intentionally use deprecated listener methods to support iOS & old browsers\n media.addListener(handler);\n handler(media);\n return () => {\n media.removeListener(handler);\n };\n }, [isMultiSchemes]);\n\n // Handle when localStorage has changed\n React.useEffect(() => {\n if (isMultiSchemes) {\n const unsubscribeMode = modeStorage?.subscribe(value => {\n if (!value || ['light', 'dark', 'system'].includes(value)) {\n setMode(value || defaultMode);\n }\n }) || noop;\n const unsubscribeLight = lightStorage?.subscribe(value => {\n if (!value || joinedColorSchemes.match(value)) {\n setColorScheme({\n light: value\n });\n }\n }) || noop;\n const unsubscribeDark = darkStorage?.subscribe(value => {\n if (!value || joinedColorSchemes.match(value)) {\n setColorScheme({\n dark: value\n });\n }\n }) || noop;\n return () => {\n unsubscribeMode();\n unsubscribeLight();\n unsubscribeDark();\n };\n }\n return undefined;\n }, [setColorScheme, setMode, joinedColorSchemes, defaultMode, storageWindow, isMultiSchemes, modeStorage, lightStorage, darkStorage]);\n return {\n ...state,\n mode: isClient ? state.mode : undefined,\n systemMode: isClient ? state.systemMode : undefined,\n colorScheme: isClient ? colorScheme : undefined,\n setMode,\n setColorScheme\n };\n}","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GlobalStyles } from '@mui/styled-engine';\nimport { useTheme as muiUseTheme } from '@mui/private-theming';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport ThemeProvider from \"../ThemeProvider/index.js\";\nimport InitColorSchemeScript, { DEFAULT_COLOR_SCHEME_STORAGE_KEY, DEFAULT_MODE_STORAGE_KEY } from \"../InitColorSchemeScript/InitColorSchemeScript.js\";\nimport useCurrentColorScheme from \"./useCurrentColorScheme.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';\nexport default function createCssVarsProvider(options) {\n const {\n themeId,\n /**\n * This `theme` object needs to follow a certain structure to\n * be used correctly by the finel `CssVarsProvider`. It should have a\n * `colorSchemes` key with the light and dark (and any other) palette.\n * It should also ideally have a vars object created using `prepareCssVars`.\n */\n theme: defaultTheme = {},\n modeStorageKey: defaultModeStorageKey = DEFAULT_MODE_STORAGE_KEY,\n colorSchemeStorageKey: defaultColorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,\n disableTransitionOnChange: designSystemTransitionOnChange = false,\n defaultColorScheme,\n resolveTheme\n } = options;\n const defaultContext = {\n allColorSchemes: [],\n colorScheme: undefined,\n darkColorScheme: undefined,\n lightColorScheme: undefined,\n mode: undefined,\n setColorScheme: () => {},\n setMode: () => {},\n systemMode: undefined\n };\n const ColorSchemeContext = /*#__PURE__*/React.createContext(undefined);\n if (process.env.NODE_ENV !== 'production') {\n ColorSchemeContext.displayName = 'ColorSchemeContext';\n }\n const useColorScheme = () => React.useContext(ColorSchemeContext) || defaultContext;\n const defaultColorSchemes = {};\n const defaultComponents = {};\n function CssVarsProvider(props) {\n const {\n children,\n theme: themeProp,\n modeStorageKey = defaultModeStorageKey,\n colorSchemeStorageKey = defaultColorSchemeStorageKey,\n disableTransitionOnChange = designSystemTransitionOnChange,\n storageManager,\n storageWindow = typeof window === 'undefined' ? undefined : window,\n documentNode = typeof document === 'undefined' ? undefined : document,\n colorSchemeNode = typeof document === 'undefined' ? undefined : document.documentElement,\n disableNestedContext = false,\n disableStyleSheetGeneration = false,\n defaultMode: initialMode = 'system',\n forceThemeRerender = false,\n noSsr\n } = props;\n const hasMounted = React.useRef(false);\n const upperTheme = muiUseTheme();\n const ctx = React.useContext(ColorSchemeContext);\n const nested = !!ctx && !disableNestedContext;\n const initialTheme = React.useMemo(() => {\n if (themeProp) {\n return themeProp;\n }\n return typeof defaultTheme === 'function' ? defaultTheme() : defaultTheme;\n }, [themeProp]);\n const scopedTheme = initialTheme[themeId];\n const restThemeProp = scopedTheme || initialTheme;\n const {\n colorSchemes = defaultColorSchemes,\n components = defaultComponents,\n cssVarPrefix\n } = restThemeProp;\n const joinedColorSchemes = Object.keys(colorSchemes).filter(k => !!colorSchemes[k]).join(',');\n const allColorSchemes = React.useMemo(() => joinedColorSchemes.split(','), [joinedColorSchemes]);\n const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;\n const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;\n const defaultMode = colorSchemes[defaultLightColorScheme] && colorSchemes[defaultDarkColorScheme] ? initialMode : colorSchemes[restThemeProp.defaultColorScheme]?.palette?.mode || restThemeProp.palette?.mode;\n\n // 1. Get the data about the `mode`, `colorScheme`, and setter functions.\n const {\n mode: stateMode,\n setMode,\n systemMode,\n lightColorScheme,\n darkColorScheme,\n colorScheme: stateColorScheme,\n setColorScheme\n } = useCurrentColorScheme({\n supportedColorSchemes: allColorSchemes,\n defaultLightColorScheme,\n defaultDarkColorScheme,\n modeStorageKey,\n colorSchemeStorageKey,\n defaultMode,\n storageManager,\n storageWindow,\n noSsr\n });\n let mode = stateMode;\n let colorScheme = stateColorScheme;\n if (nested) {\n mode = ctx.mode;\n colorScheme = ctx.colorScheme;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (forceThemeRerender && !restThemeProp.vars) {\n console.warn(['MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.', 'Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution.'].join('\\n'));\n }\n }\n\n // `colorScheme` is undefined on the server and hydration phase\n let calculatedColorScheme = colorScheme || restThemeProp.defaultColorScheme;\n if (restThemeProp.vars && !forceThemeRerender) {\n calculatedColorScheme = restThemeProp.defaultColorScheme;\n }\n const memoTheme = React.useMemo(() => {\n // 2. get the `vars` object that refers to the CSS custom properties\n const themeVars = restThemeProp.generateThemeVars?.() || restThemeProp.vars;\n\n // 3. Start composing the theme object\n const theme = {\n ...restThemeProp,\n components,\n colorSchemes,\n cssVarPrefix,\n vars: themeVars\n };\n if (typeof theme.generateSpacing === 'function') {\n theme.spacing = theme.generateSpacing();\n }\n\n // 4. Resolve the color scheme and merge it to the theme\n if (calculatedColorScheme) {\n const scheme = colorSchemes[calculatedColorScheme];\n if (scheme && typeof scheme === 'object') {\n // 4.1 Merge the selected color scheme to the theme\n Object.keys(scheme).forEach(schemeKey => {\n if (scheme[schemeKey] && typeof scheme[schemeKey] === 'object') {\n // shallow merge the 1st level structure of the theme.\n theme[schemeKey] = {\n ...theme[schemeKey],\n ...scheme[schemeKey]\n };\n } else {\n theme[schemeKey] = scheme[schemeKey];\n }\n });\n }\n }\n return resolveTheme ? resolveTheme(theme) : theme;\n }, [restThemeProp, calculatedColorScheme, components, colorSchemes, cssVarPrefix]);\n\n // 5. Declaring effects\n // 5.1 Updates the selector value to use the current color scheme which tells CSS to use the proper stylesheet.\n const colorSchemeSelector = restThemeProp.colorSchemeSelector;\n useEnhancedEffect(() => {\n if (colorScheme && colorSchemeNode && colorSchemeSelector && colorSchemeSelector !== 'media') {\n const selector = colorSchemeSelector;\n let rule = colorSchemeSelector;\n if (selector === 'class') {\n rule = `.%s`;\n }\n if (selector === 'data') {\n rule = `[data-%s]`;\n }\n if (selector?.startsWith('data-') && !selector.includes('%s')) {\n // 'data-mui-color-scheme' -> '[data-mui-color-scheme=\"%s\"]'\n rule = `[${selector}=\"%s\"]`;\n }\n if (rule.startsWith('.')) {\n colorSchemeNode.classList.remove(...allColorSchemes.map(scheme => rule.substring(1).replace('%s', scheme)));\n colorSchemeNode.classList.add(rule.substring(1).replace('%s', colorScheme));\n } else {\n const matches = rule.replace('%s', colorScheme).match(/\\[([^\\]]+)\\]/);\n if (matches) {\n const [attr, value] = matches[1].split('=');\n if (!value) {\n // for attributes like `data-theme-dark`, `data-theme-light`\n // remove all the existing data attributes before setting the new one\n allColorSchemes.forEach(scheme => {\n colorSchemeNode.removeAttribute(attr.replace(colorScheme, scheme));\n });\n }\n colorSchemeNode.setAttribute(attr, value ? value.replace(/\"|'/g, '') : '');\n } else {\n colorSchemeNode.setAttribute(rule, colorScheme);\n }\n }\n }\n }, [colorScheme, colorSchemeSelector, colorSchemeNode, allColorSchemes]);\n\n // 5.2 Remove the CSS transition when color scheme changes to create instant experience.\n // credit: https://github.com/pacocoursey/next-themes/blob/b5c2bad50de2d61ad7b52a9c5cdc801a78507d7a/index.tsx#L313\n React.useEffect(() => {\n let timer;\n if (disableTransitionOnChange && hasMounted.current && documentNode) {\n const css = documentNode.createElement('style');\n css.appendChild(documentNode.createTextNode(DISABLE_CSS_TRANSITION));\n documentNode.head.appendChild(css);\n\n // Force browser repaint\n (() => window.getComputedStyle(documentNode.body))();\n timer = setTimeout(() => {\n documentNode.head.removeChild(css);\n }, 1);\n }\n return () => {\n clearTimeout(timer);\n };\n }, [colorScheme, disableTransitionOnChange, documentNode]);\n React.useEffect(() => {\n hasMounted.current = true;\n return () => {\n hasMounted.current = false;\n };\n }, []);\n const contextValue = React.useMemo(() => ({\n allColorSchemes,\n colorScheme,\n darkColorScheme,\n lightColorScheme,\n mode,\n setColorScheme,\n setMode: process.env.NODE_ENV === 'production' ? setMode : newMode => {\n if (memoTheme.colorSchemeSelector === 'media') {\n console.error(['MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).', 'To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.', 'To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually'].join('\\n'));\n }\n setMode(newMode);\n },\n systemMode\n }), [allColorSchemes, colorScheme, darkColorScheme, lightColorScheme, mode, setColorScheme, setMode, systemMode, memoTheme.colorSchemeSelector]);\n let shouldGenerateStyleSheet = true;\n if (disableStyleSheetGeneration || restThemeProp.cssVariables === false || nested && upperTheme?.cssVarPrefix === cssVarPrefix) {\n shouldGenerateStyleSheet = false;\n }\n const element = /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(ThemeProvider, {\n themeId: scopedTheme ? themeId : undefined,\n theme: memoTheme,\n children: children\n }), shouldGenerateStyleSheet && /*#__PURE__*/_jsx(GlobalStyles, {\n styles: memoTheme.generateStyleSheets?.() || []\n })]\n });\n if (nested) {\n return element;\n }\n return /*#__PURE__*/_jsx(ColorSchemeContext.Provider, {\n value: contextValue,\n children: element\n });\n }\n process.env.NODE_ENV !== \"production\" ? CssVarsProvider.propTypes = {\n /**\n * The component tree.\n */\n children: PropTypes.node,\n /**\n * The node used to attach the color-scheme attribute\n */\n colorSchemeNode: PropTypes.any,\n /**\n * localStorage key used to store `colorScheme`\n */\n colorSchemeStorageKey: PropTypes.string,\n /**\n * The default mode when the storage is empty,\n * require the theme to have `colorSchemes` with light and dark.\n */\n defaultMode: PropTypes.string,\n /**\n * If `true`, the provider creates its own context and generate stylesheet as if it is a root `CssVarsProvider`.\n */\n disableNestedContext: PropTypes.bool,\n /**\n * If `true`, the style sheet won't be generated.\n *\n * This is useful for controlling nested CssVarsProvider behavior.\n */\n disableStyleSheetGeneration: PropTypes.bool,\n /**\n * Disable CSS transitions when switching between modes or color schemes.\n */\n disableTransitionOnChange: PropTypes.bool,\n /**\n * The document to attach the attribute to.\n */\n documentNode: PropTypes.any,\n /**\n * If `true`, theme values are recalculated when the mode changes.\n */\n forceThemeRerender: PropTypes.bool,\n /**\n * The key in the local storage used to store current color scheme.\n */\n modeStorageKey: PropTypes.string,\n /**\n * If `true`, the mode will be the same value as the storage without an extra rerendering after the hydration.\n * You should use this option in conjuction with `InitColorSchemeScript` component.\n */\n noSsr: PropTypes.bool,\n /**\n * The storage manager to be used for storing the mode and color scheme\n * @default using `window.localStorage`\n */\n storageManager: PropTypes.func,\n /**\n * The window that attaches the 'storage' event listener.\n * @default window\n */\n storageWindow: PropTypes.any,\n /**\n * The calculated theme object that will be passed through context.\n */\n theme: PropTypes.object\n } : void 0;\n const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;\n const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;\n const getInitColorSchemeScript = params => InitColorSchemeScript({\n colorSchemeStorageKey: defaultColorSchemeStorageKey,\n defaultLightColorScheme,\n defaultDarkColorScheme,\n modeStorageKey: defaultModeStorageKey,\n ...params\n });\n return {\n CssVarsProvider,\n useColorScheme,\n getInitColorSchemeScript\n };\n}","/**\n * The benefit of this function is to help developers get CSS var from theme without specifying the whole variable\n * and they does not need to remember the prefix (defined once).\n */\nexport default function createGetCssVar(prefix = '') {\n function appendVar(...vars) {\n if (!vars.length) {\n return '';\n }\n const value = vars[0];\n if (typeof value === 'string' && !value.match(/(#|\\(|\\)|(-?(\\d*\\.)?\\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\\d*\\.)?\\d+)$|(\\d+ \\d+ \\d+)/)) {\n return `, var(--${prefix ? `${prefix}-` : ''}${value}${appendVar(...vars.slice(1))})`;\n }\n return `, ${value}`;\n }\n\n // AdditionalVars makes `getCssVar` less strict, so it can be use like this `getCssVar('non-mui-variable')` without type error.\n const getCssVar = (field, ...fallbacks) => {\n return `var(--${prefix ? `${prefix}-` : ''}${field}${appendVar(...fallbacks)})`;\n };\n return getCssVar;\n}","/**\n * This function create an object from keys, value and then assign to target\n *\n * @param {Object} obj : the target object to be assigned\n * @param {string[]} keys\n * @param {string | number} value\n *\n * @example\n * const source = {}\n * assignNestedKeys(source, ['palette', 'primary'], 'var(--palette-primary)')\n * console.log(source) // { palette: { primary: 'var(--palette-primary)' } }\n *\n * @example\n * const source = { palette: { primary: 'var(--palette-primary)' } }\n * assignNestedKeys(source, ['palette', 'secondary'], 'var(--palette-secondary)')\n * console.log(source) // { palette: { primary: 'var(--palette-primary)', secondary: 'var(--palette-secondary)' } }\n */\nexport const assignNestedKeys = (obj, keys, value, arrayKeys = []) => {\n let temp = obj;\n keys.forEach((k, index) => {\n if (index === keys.length - 1) {\n if (Array.isArray(temp)) {\n temp[Number(k)] = value;\n } else if (temp && typeof temp === 'object') {\n temp[k] = value;\n }\n } else if (temp && typeof temp === 'object') {\n if (!temp[k]) {\n temp[k] = arrayKeys.includes(k) ? [] : {};\n }\n temp = temp[k];\n }\n });\n};\n\n/**\n *\n * @param {Object} obj : source object\n * @param {Function} callback : a function that will be called when\n * - the deepest key in source object is reached\n * - the value of the deepest key is NOT `undefined` | `null`\n *\n * @example\n * walkObjectDeep({ palette: { primary: { main: '#000000' } } }, console.log)\n * // ['palette', 'primary', 'main'] '#000000'\n */\nexport const walkObjectDeep = (obj, callback, shouldSkipPaths) => {\n function recurse(object, parentKeys = [], arrayKeys = []) {\n Object.entries(object).forEach(([key, value]) => {\n if (!shouldSkipPaths || shouldSkipPaths && !shouldSkipPaths([...parentKeys, key])) {\n if (value !== undefined && value !== null) {\n if (typeof value === 'object' && Object.keys(value).length > 0) {\n recurse(value, [...parentKeys, key], Array.isArray(value) ? [...arrayKeys, key] : arrayKeys);\n } else {\n callback([...parentKeys, key], value, arrayKeys);\n }\n }\n }\n });\n }\n recurse(obj);\n};\nconst getCssValue = (keys, value) => {\n if (typeof value === 'number') {\n if (['lineHeight', 'fontWeight', 'opacity', 'zIndex'].some(prop => keys.includes(prop))) {\n // CSS property that are unitless\n return value;\n }\n const lastKey = keys[keys.length - 1];\n if (lastKey.toLowerCase().includes('opacity')) {\n // opacity values are unitless\n return value;\n }\n return `${value}px`;\n }\n return value;\n};\n\n/**\n * a function that parse theme and return { css, vars }\n *\n * @param {Object} theme\n * @param {{\n * prefix?: string,\n * shouldSkipGeneratingVar?: (objectPathKeys: Array<string>, value: string | number) => boolean\n * }} options.\n * `prefix`: The prefix of the generated CSS variables. This function does not change the value.\n *\n * @returns {{ css: Object, vars: Object }} `css` is the stylesheet, `vars` is an object to get css variable (same structure as theme).\n *\n * @example\n * const { css, vars } = parser({\n * fontSize: 12,\n * lineHeight: 1.2,\n * palette: { primary: { 500: 'var(--color)' } }\n * }, { prefix: 'foo' })\n *\n * console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--color)' }\n * console.log(vars) // { fontSize: 'var(--foo-fontSize)', lineHeight: 'var(--foo-lineHeight)', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }\n */\nexport default function cssVarsParser(theme, options) {\n const {\n prefix,\n shouldSkipGeneratingVar\n } = options || {};\n const css = {};\n const vars = {};\n const varsWithDefaults = {};\n walkObjectDeep(theme, (keys, value, arrayKeys) => {\n if (typeof value === 'string' || typeof value === 'number') {\n if (!shouldSkipGeneratingVar || !shouldSkipGeneratingVar(keys, value)) {\n // only create css & var if `shouldSkipGeneratingVar` return false\n const cssVar = `--${prefix ? `${prefix}-` : ''}${keys.join('-')}`;\n const resolvedValue = getCssValue(keys, value);\n Object.assign(css, {\n [cssVar]: resolvedValue\n });\n assignNestedKeys(vars, keys, `var(${cssVar})`, arrayKeys);\n assignNestedKeys(varsWithDefaults, keys, `var(${cssVar}, ${resolvedValue})`, arrayKeys);\n }\n }\n }, keys => keys[0] === 'vars' // skip 'vars/*' paths\n );\n return {\n css,\n vars,\n varsWithDefaults\n };\n}","import deepmerge from '@mui/utils/deepmerge';\nimport cssVarsParser from \"./cssVarsParser.js\";\nfunction prepareCssVars(theme, parserConfig = {}) {\n const {\n getSelector = defaultGetSelector,\n disableCssColorScheme,\n colorSchemeSelector: selector\n } = parserConfig;\n // @ts-ignore - ignore components do not exist\n const {\n colorSchemes = {},\n components,\n defaultColorScheme = 'light',\n ...otherTheme\n } = theme;\n const {\n vars: rootVars,\n css: rootCss,\n varsWithDefaults: rootVarsWithDefaults\n } = cssVarsParser(otherTheme, parserConfig);\n let themeVars = rootVarsWithDefaults;\n const colorSchemesMap = {};\n const {\n [defaultColorScheme]: defaultScheme,\n ...otherColorSchemes\n } = colorSchemes;\n Object.entries(otherColorSchemes || {}).forEach(([key, scheme]) => {\n const {\n vars,\n css,\n varsWithDefaults\n } = cssVarsParser(scheme, parserConfig);\n themeVars = deepmerge(themeVars, varsWithDefaults);\n colorSchemesMap[key] = {\n css,\n vars\n };\n });\n if (defaultScheme) {\n // default color scheme vars should be merged last to set as default\n const {\n css,\n vars,\n varsWithDefaults\n } = cssVarsParser(defaultScheme, parserConfig);\n themeVars = deepmerge(themeVars, varsWithDefaults);\n colorSchemesMap[defaultColorScheme] = {\n css,\n vars\n };\n }\n function defaultGetSelector(colorScheme, cssObject) {\n let rule = selector;\n if (selector === 'class') {\n rule = '.%s';\n }\n if (selector === 'data') {\n rule = '[data-%s]';\n }\n if (selector?.startsWith('data-') && !selector.includes('%s')) {\n // 'data-joy-color-scheme' -> '[data-joy-color-scheme=\"%s\"]'\n rule = `[${selector}=\"%s\"]`;\n }\n if (colorScheme) {\n if (rule === 'media') {\n if (theme.defaultColorScheme === colorScheme) {\n return ':root';\n }\n const mode = colorSchemes[colorScheme]?.palette?.mode || colorScheme;\n return {\n [`@media (prefers-color-scheme: ${mode})`]: {\n ':root': cssObject\n }\n };\n }\n if (rule) {\n if (theme.defaultColorScheme === colorScheme) {\n return `:root, ${rule.replace('%s', String(colorScheme))}`;\n }\n return rule.replace('%s', String(colorScheme));\n }\n }\n return ':root';\n }\n const generateThemeVars = () => {\n let vars = {\n ...rootVars\n };\n Object.entries(colorSchemesMap).forEach(([, {\n vars: schemeVars\n }]) => {\n vars = deepmerge(vars, schemeVars);\n });\n return vars;\n };\n const generateStyleSheets = () => {\n const stylesheets = [];\n const colorScheme = theme.defaultColorScheme || 'light';\n function insertStyleSheet(key, css) {\n if (Object.keys(css).length) {\n stylesheets.push(typeof key === 'string' ? {\n [key]: {\n ...css\n }\n } : key);\n }\n }\n insertStyleSheet(getSelector(undefined, {\n ...rootCss\n }), rootCss);\n const {\n [colorScheme]: defaultSchemeVal,\n ...other\n } = colorSchemesMap;\n if (defaultSchemeVal) {\n // default color scheme has to come before other color schemes\n const {\n css\n } = defaultSchemeVal;\n const cssColorSheme = colorSchemes[colorScheme]?.palette?.mode;\n const finalCss = !disableCssColorScheme && cssColorSheme ? {\n colorScheme: cssColorSheme,\n ...css\n } : {\n ...css\n };\n insertStyleSheet(getSelector(colorScheme, {\n ...finalCss\n }), finalCss);\n }\n Object.entries(other).forEach(([key, {\n css\n }]) => {\n const cssColorSheme = colorSchemes[key]?.palette?.mode;\n const finalCss = !disableCssColorScheme && cssColorSheme ? {\n colorScheme: cssColorSheme,\n ...css\n } : {\n ...css\n };\n insertStyleSheet(getSelector(key, {\n ...finalCss\n }), finalCss);\n });\n return stylesheets;\n };\n return {\n vars: themeVars,\n generateThemeVars,\n generateStyleSheets\n };\n}\nexport default prepareCssVars;","/* eslint-disable import/prefer-default-export */\nexport function createGetColorSchemeSelector(selector) {\n return function getColorSchemeSelector(colorScheme) {\n if (selector === 'media') {\n if (process.env.NODE_ENV !== 'production') {\n if (colorScheme !== 'light' && colorScheme !== 'dark') {\n console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${colorScheme}'.`);\n }\n }\n return `@media (prefers-color-scheme: ${colorScheme})`;\n }\n if (selector) {\n if (selector.startsWith('data-') && !selector.includes('%s')) {\n return `[${selector}=\"${colorScheme}\"] &`;\n }\n if (selector === 'class') {\n return `.${colorScheme} &`;\n }\n if (selector === 'data') {\n return `[data-${colorScheme}] &`;\n }\n return `${selector.replace('%s', colorScheme)} &`;\n }\n return '&';\n };\n}","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from '@mui/utils/capitalize';\nimport useThemePropsSystem from \"../useThemeProps/index.js\";\nimport systemStyled from \"../styled/index.js\";\nimport createTheme from \"../createTheme/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultTheme = createTheme();\nconst defaultCreateStyledComponent = systemStyled('div', {\n name: 'MuiContainer',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`maxWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];\n }\n});\nconst useThemePropsDefault = inProps => useThemePropsSystem({\n props: inProps,\n name: 'MuiContainer',\n defaultTheme\n});\nconst useUtilityClasses = (ownerState, componentName) => {\n const getContainerUtilityClass = slot => {\n return generateUtilityClass(componentName, slot);\n };\n const {\n classes,\n fixed,\n disableGutters,\n maxWidth\n } = ownerState;\n const slots = {\n root: ['root', maxWidth && `maxWidth${capitalize(String(maxWidth))}`, fixed && 'fixed', disableGutters && 'disableGutters']\n };\n return composeClasses(slots, getContainerUtilityClass, classes);\n};\nexport default function createContainer(options = {}) {\n const {\n // This will allow adding custom styled fn (for example for custom sx style function)\n createStyledComponent = defaultCreateStyledComponent,\n useThemeProps = useThemePropsDefault,\n componentName = 'MuiContainer'\n } = options;\n const ContainerRoot = createStyledComponent(({\n theme,\n ownerState\n }) => ({\n width: '100%',\n marginLeft: 'auto',\n boxSizing: 'border-box',\n marginRight: 'auto',\n ...(!ownerState.disableGutters && {\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n // @ts-ignore module augmentation fails if custom breakpoints are used\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3)\n }\n })\n }), ({\n theme,\n ownerState\n }) => ownerState.fixed && Object.keys(theme.breakpoints.values).reduce((acc, breakpointValueKey) => {\n const breakpoint = breakpointValueKey;\n const value = theme.breakpoints.values[breakpoint];\n if (value !== 0) {\n // @ts-ignore\n acc[theme.breakpoints.up(breakpoint)] = {\n maxWidth: `${value}${theme.breakpoints.unit}`\n };\n }\n return acc;\n }, {}), ({\n theme,\n ownerState\n }) => ({\n // @ts-ignore module augmentation fails if custom breakpoints are used\n ...(ownerState.maxWidth === 'xs' && {\n // @ts-ignore module augmentation fails if custom breakpoints are used\n [theme.breakpoints.up('xs')]: {\n // @ts-ignore module augmentation fails if custom breakpoints are used\n maxWidth: Math.max(theme.breakpoints.values.xs, 444)\n }\n }),\n ...(ownerState.maxWidth &&\n // @ts-ignore module augmentation fails if custom breakpoints are used\n ownerState.maxWidth !== 'xs' && {\n // @ts-ignore module augmentation fails if custom breakpoints are used\n [theme.breakpoints.up(ownerState.maxWidth)]: {\n // @ts-ignore module augmentation fails if custom breakpoints are used\n maxWidth: `${theme.breakpoints.values[ownerState.maxWidth]}${theme.breakpoints.unit}`\n }\n })\n }));\n const Container = /*#__PURE__*/React.forwardRef(function Container(inProps, ref) {\n const props = useThemeProps(inProps);\n const {\n className,\n component = 'div',\n disableGutters = false,\n fixed = false,\n maxWidth = 'lg',\n classes: classesProp,\n ...other\n } = props;\n const ownerState = {\n ...props,\n component,\n disableGutters,\n fixed,\n maxWidth\n };\n\n // @ts-ignore module augmentation fails if custom breakpoints are used\n const classes = useUtilityClasses(ownerState, componentName);\n return (\n /*#__PURE__*/\n // @ts-ignore theme is injected by the styled util\n _jsx(ContainerRoot, {\n as: component\n // @ts-ignore module augmentation fails if custom breakpoints are used\n ,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ref: ref,\n ...other\n })\n );\n });\n process.env.NODE_ENV !== \"production\" ? Container.propTypes /* remove-proptypes */ = {\n children: PropTypes.node,\n classes: PropTypes.object,\n className: PropTypes.string,\n component: PropTypes.elementType,\n disableGutters: PropTypes.bool,\n fixed: PropTypes.bool,\n maxWidth: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl', false]), PropTypes.string]),\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n } : void 0;\n return Container;\n}","export const filterBreakpointKeys = (breakpointsKeys, responsiveKeys) => breakpointsKeys.filter(key => responsiveKeys.includes(key));\nexport const traverseBreakpoints = (breakpoints, responsive, iterator) => {\n const smallestBreakpoint = breakpoints.keys[0]; // the keys is sorted from smallest to largest by `createBreakpoints`.\n\n if (Array.isArray(responsive)) {\n responsive.forEach((breakpointValue, index) => {\n iterator((responsiveStyles, style) => {\n if (index <= breakpoints.keys.length - 1) {\n if (index === 0) {\n Object.assign(responsiveStyles, style);\n } else {\n responsiveStyles[breakpoints.up(breakpoints.keys[index])] = style;\n }\n }\n }, breakpointValue);\n });\n } else if (responsive && typeof responsive === 'object') {\n // prevent null\n // responsive could be a very big object, pick the smallest responsive values\n\n const keys = Object.keys(responsive).length > breakpoints.keys.length ? breakpoints.keys : filterBreakpointKeys(breakpoints.keys, Object.keys(responsive));\n keys.forEach(key => {\n if (breakpoints.keys.includes(key)) {\n // @ts-ignore already checked that responsive is an object\n const breakpointValue = responsive[key];\n if (breakpointValue !== undefined) {\n iterator((responsiveStyles, style) => {\n if (smallestBreakpoint === key) {\n Object.assign(responsiveStyles, style);\n } else {\n responsiveStyles[breakpoints.up(key)] = style;\n }\n }, breakpointValue);\n }\n }\n });\n } else if (typeof responsive === 'number' || typeof responsive === 'string') {\n iterator((responsiveStyles, style) => {\n Object.assign(responsiveStyles, style);\n }, responsive);\n }\n};","import { traverseBreakpoints } from \"./traverseBreakpoints.js\";\nfunction getSelfSpacingVar(axis) {\n return `--Grid-${axis}Spacing`;\n}\nfunction getParentSpacingVar(axis) {\n return `--Grid-parent-${axis}Spacing`;\n}\nconst selfColumnsVar = '--Grid-columns';\nconst parentColumnsVar = '--Grid-parent-columns';\nexport const generateGridSizeStyles = ({\n theme,\n ownerState\n}) => {\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.size, (appendStyle, value) => {\n let style = {};\n if (value === 'grow') {\n style = {\n flexBasis: 0,\n flexGrow: 1,\n maxWidth: '100%'\n };\n }\n if (value === 'auto') {\n style = {\n flexBasis: 'auto',\n flexGrow: 0,\n flexShrink: 0,\n maxWidth: 'none',\n width: 'auto'\n };\n }\n if (typeof value === 'number') {\n style = {\n flexGrow: 0,\n flexBasis: 'auto',\n width: `calc(100% * ${value} / var(${parentColumnsVar}) - (var(${parentColumnsVar}) - ${value}) * (var(${getParentSpacingVar('column')}) / var(${parentColumnsVar})))`\n };\n }\n appendStyle(styles, style);\n });\n return styles;\n};\nexport const generateGridOffsetStyles = ({\n theme,\n ownerState\n}) => {\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.offset, (appendStyle, value) => {\n let style = {};\n if (value === 'auto') {\n style = {\n marginLeft: 'auto'\n };\n }\n if (typeof value === 'number') {\n style = {\n marginLeft: value === 0 ? '0px' : `calc(100% * ${value} / var(${parentColumnsVar}) + var(${getParentSpacingVar('column')}) * ${value} / var(${parentColumnsVar}))`\n };\n }\n appendStyle(styles, style);\n });\n return styles;\n};\nexport const generateGridColumnsStyles = ({\n theme,\n ownerState\n}) => {\n if (!ownerState.container) {\n return {};\n }\n const styles = {\n [selfColumnsVar]: 12\n };\n traverseBreakpoints(theme.breakpoints, ownerState.columns, (appendStyle, value) => {\n const columns = value ?? 12;\n appendStyle(styles, {\n [selfColumnsVar]: columns,\n '> *': {\n [parentColumnsVar]: columns\n }\n });\n });\n return styles;\n};\nexport const generateGridRowSpacingStyles = ({\n theme,\n ownerState\n}) => {\n if (!ownerState.container) {\n return {};\n }\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.rowSpacing, (appendStyle, value) => {\n const spacing = typeof value === 'string' ? value : theme.spacing?.(value);\n appendStyle(styles, {\n [getSelfSpacingVar('row')]: spacing,\n '> *': {\n [getParentSpacingVar('row')]: spacing\n }\n });\n });\n return styles;\n};\nexport const generateGridColumnSpacingStyles = ({\n theme,\n ownerState\n}) => {\n if (!ownerState.container) {\n return {};\n }\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.columnSpacing, (appendStyle, value) => {\n const spacing = typeof value === 'string' ? value : theme.spacing?.(value);\n appendStyle(styles, {\n [getSelfSpacingVar('column')]: spacing,\n '> *': {\n [getParentSpacingVar('column')]: spacing\n }\n });\n });\n return styles;\n};\nexport const generateGridDirectionStyles = ({\n theme,\n ownerState\n}) => {\n if (!ownerState.container) {\n return {};\n }\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.direction, (appendStyle, value) => {\n appendStyle(styles, {\n flexDirection: value\n });\n });\n return styles;\n};\nexport const generateGridStyles = ({\n ownerState\n}) => {\n return {\n minWidth: 0,\n boxSizing: 'border-box',\n ...(ownerState.container && {\n display: 'flex',\n flexWrap: 'wrap',\n ...(ownerState.wrap && ownerState.wrap !== 'wrap' && {\n flexWrap: ownerState.wrap\n }),\n gap: `var(${getSelfSpacingVar('row')}) var(${getSelfSpacingVar('column')})`\n })\n };\n};\nexport const generateSizeClassNames = size => {\n const classNames = [];\n Object.entries(size).forEach(([key, value]) => {\n if (value !== false && value !== undefined) {\n classNames.push(`grid-${key}-${String(value)}`);\n }\n });\n return classNames;\n};\nexport const generateSpacingClassNames = (spacing, smallestBreakpoint = 'xs') => {\n function isValidSpacing(val) {\n if (val === undefined) {\n return false;\n }\n return typeof val === 'string' && !Number.isNaN(Number(val)) || typeof val === 'number' && val > 0;\n }\n if (isValidSpacing(spacing)) {\n return [`spacing-${smallestBreakpoint}-${String(spacing)}`];\n }\n if (typeof spacing === 'object' && !Array.isArray(spacing)) {\n const classNames = [];\n Object.entries(spacing).forEach(([key, value]) => {\n if (isValidSpacing(value)) {\n classNames.push(`spacing-${key}-${String(value)}`);\n }\n });\n return classNames;\n }\n return [];\n};\nexport const generateDirectionClasses = direction => {\n if (direction === undefined) {\n return [];\n }\n if (typeof direction === 'object') {\n return Object.entries(direction).map(([key, value]) => `direction-${key}-${value}`);\n }\n return [`direction-xs-${String(direction)}`];\n};","const getLegacyGridWarning = propName => {\n if (['item', 'zeroMinWidth'].includes(propName)) {\n return `The \\`${propName}\\` prop has been removed and is no longer necessary. You can safely remove it.`;\n }\n\n // #host-reference\n return `The \\`${propName}\\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`;\n};\nconst warnedAboutProps = [];\n\n/**\n * Deletes the legacy Grid component props from the `props` object and warns once about them if found.\n *\n * @param {object} props The props object to remove the legacy Grid props from.\n * @param {Breakpoints} breakpoints The breakpoints object.\n */\nexport default function deleteLegacyGridProps(props, breakpoints) {\n const propsToWarn = [];\n if (props.item !== undefined) {\n delete props.item;\n propsToWarn.push('item');\n }\n if (props.zeroMinWidth !== undefined) {\n delete props.zeroMinWidth;\n propsToWarn.push('zeroMinWidth');\n }\n breakpoints.keys.forEach(breakpoint => {\n if (props[breakpoint] !== undefined) {\n propsToWarn.push(breakpoint);\n delete props[breakpoint];\n }\n });\n if (process.env.NODE_ENV !== 'production') {\n propsToWarn.forEach(prop => {\n if (!warnedAboutProps.includes(prop)) {\n warnedAboutProps.push(prop);\n console.warn(`MUI Grid: ${getLegacyGridWarning(prop)}\\n`);\n }\n });\n }\n}","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport isMuiElement from '@mui/utils/isMuiElement';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport composeClasses from '@mui/utils/composeClasses';\nimport systemStyled from \"../styled/index.js\";\nimport useThemePropsSystem from \"../useThemeProps/index.js\";\nimport useThemeSystem from \"../useTheme/index.js\";\nimport { extendSxProp } from \"../styleFunctionSx/index.js\";\nimport createTheme from \"../createTheme/index.js\";\nimport { generateGridStyles, generateGridSizeStyles, generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridDirectionStyles, generateGridOffsetStyles, generateSizeClassNames, generateSpacingClassNames, generateDirectionClasses } from \"./gridGenerator.js\";\nimport deleteLegacyGridProps from \"./deleteLegacyGridProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultTheme = createTheme();\n\n// widening Theme to any so that the consumer can own the theme structure.\nconst defaultCreateStyledComponent = systemStyled('div', {\n name: 'MuiGrid',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n});\nfunction useThemePropsDefault(props) {\n return useThemePropsSystem({\n props,\n name: 'MuiGrid',\n defaultTheme\n });\n}\nexport default function createGrid(options = {}) {\n const {\n // This will allow adding custom styled fn (for example for custom sx style function)\n createStyledComponent = defaultCreateStyledComponent,\n useThemeProps = useThemePropsDefault,\n useTheme = useThemeSystem,\n componentName = 'MuiGrid'\n } = options;\n const useUtilityClasses = (ownerState, theme) => {\n const {\n container,\n direction,\n spacing,\n wrap,\n size\n } = ownerState;\n const slots = {\n root: ['root', container && 'container', wrap !== 'wrap' && `wrap-xs-${String(wrap)}`, ...generateDirectionClasses(direction), ...generateSizeClassNames(size), ...(container ? generateSpacingClassNames(spacing, theme.breakpoints.keys[0]) : [])]\n };\n return composeClasses(slots, slot => generateUtilityClass(componentName, slot), {});\n };\n function parseResponsiveProp(propValue, breakpoints, shouldUseValue = () => true) {\n const parsedProp = {};\n if (propValue === null) {\n return parsedProp;\n }\n if (Array.isArray(propValue)) {\n propValue.forEach((value, index) => {\n if (value !== null && shouldUseValue(value) && breakpoints.keys[index]) {\n parsedProp[breakpoints.keys[index]] = value;\n }\n });\n } else if (typeof propValue === 'object') {\n Object.keys(propValue).forEach(key => {\n const value = propValue[key];\n if (value !== null && value !== undefined && shouldUseValue(value)) {\n parsedProp[key] = value;\n }\n });\n } else {\n parsedProp[breakpoints.keys[0]] = propValue;\n }\n return parsedProp;\n }\n const GridRoot = createStyledComponent(generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridSizeStyles, generateGridDirectionStyles, generateGridStyles, generateGridOffsetStyles);\n const Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {\n const theme = useTheme();\n const themeProps = useThemeProps(inProps);\n const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.\n\n // TODO v8: Remove when removing the legacy Grid component\n deleteLegacyGridProps(props, theme.breakpoints);\n const {\n className,\n children,\n columns: columnsProp = 12,\n container = false,\n component = 'div',\n direction = 'row',\n wrap = 'wrap',\n size: sizeProp = {},\n offset: offsetProp = {},\n spacing: spacingProp = 0,\n rowSpacing: rowSpacingProp = spacingProp,\n columnSpacing: columnSpacingProp = spacingProp,\n unstable_level: level = 0,\n ...other\n } = props;\n const size = parseResponsiveProp(sizeProp, theme.breakpoints, val => val !== false);\n const offset = parseResponsiveProp(offsetProp, theme.breakpoints);\n const columns = inProps.columns ?? (level ? undefined : columnsProp);\n const spacing = inProps.spacing ?? (level ? undefined : spacingProp);\n const rowSpacing = inProps.rowSpacing ?? inProps.spacing ?? (level ? undefined : rowSpacingProp);\n const columnSpacing = inProps.columnSpacing ?? inProps.spacing ?? (level ? undefined : columnSpacingProp);\n const ownerState = {\n ...props,\n level,\n columns,\n container,\n direction,\n wrap,\n spacing,\n rowSpacing,\n columnSpacing,\n size,\n offset\n };\n const classes = useUtilityClasses(ownerState, theme);\n return /*#__PURE__*/_jsx(GridRoot, {\n ref: ref,\n as: component,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ...other,\n children: React.Children.map(children, child => {\n if (/*#__PURE__*/React.isValidElement(child) && isMuiElement(child, ['Grid']) && container && child.props.container) {\n return /*#__PURE__*/React.cloneElement(child, {\n unstable_level: child.props?.unstable_level ?? level + 1\n });\n }\n return child;\n })\n });\n });\n process.env.NODE_ENV !== \"production\" ? Grid.propTypes /* remove-proptypes */ = {\n children: PropTypes.node,\n className: PropTypes.string,\n columns: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),\n columnSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n component: PropTypes.elementType,\n container: PropTypes.bool,\n direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n offset: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])), PropTypes.object]),\n rowSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n size: PropTypes.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number])), PropTypes.object]),\n spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap'])\n } : void 0;\n\n // @ts-ignore internal logic for nested grid\n Grid.muiName = 'Grid';\n return Grid;\n}","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport deepmerge from '@mui/utils/deepmerge';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport composeClasses from '@mui/utils/composeClasses';\nimport systemStyled from \"../styled/index.js\";\nimport useThemePropsSystem from \"../useThemeProps/index.js\";\nimport { extendSxProp } from \"../styleFunctionSx/index.js\";\nimport createTheme from \"../createTheme/index.js\";\nimport { handleBreakpoints, mergeBreakpointsInOrder, resolveBreakpointValues } from \"../breakpoints/index.js\";\nimport { createUnarySpacing, getValue } from \"../spacing/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultTheme = createTheme();\n// widening Theme to any so that the consumer can own the theme structure.\nconst defaultCreateStyledComponent = systemStyled('div', {\n name: 'MuiStack',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n});\nfunction useThemePropsDefault(props) {\n return useThemePropsSystem({\n props,\n name: 'MuiStack',\n defaultTheme\n });\n}\n\n/**\n * Return an array with the separator React element interspersed between\n * each React node of the input children.\n *\n * > joinChildren([1,2,3], 0)\n * [1,0,2,0,3]\n */\nfunction joinChildren(children, separator) {\n const childrenArray = React.Children.toArray(children).filter(Boolean);\n return childrenArray.reduce((output, child, index) => {\n output.push(child);\n if (index < childrenArray.length - 1) {\n output.push(/*#__PURE__*/React.cloneElement(separator, {\n key: `separator-${index}`\n }));\n }\n return output;\n }, []);\n}\nconst getSideFromDirection = direction => {\n return {\n row: 'Left',\n 'row-reverse': 'Right',\n column: 'Top',\n 'column-reverse': 'Bottom'\n }[direction];\n};\nexport const style = ({\n ownerState,\n theme\n}) => {\n let styles = {\n display: 'flex',\n flexDirection: 'column',\n ...handleBreakpoints({\n theme\n }, resolveBreakpointValues({\n values: ownerState.direction,\n breakpoints: theme.breakpoints.values\n }), propValue => ({\n flexDirection: propValue\n }))\n };\n if (ownerState.spacing) {\n const transformer = createUnarySpacing(theme);\n const base = Object.keys(theme.breakpoints.values).reduce((acc, breakpoint) => {\n if (typeof ownerState.spacing === 'object' && ownerState.spacing[breakpoint] != null || typeof ownerState.direction === 'object' && ownerState.direction[breakpoint] != null) {\n acc[breakpoint] = true;\n }\n return acc;\n }, {});\n const directionValues = resolveBreakpointValues({\n values: ownerState.direction,\n base\n });\n const spacingValues = resolveBreakpointValues({\n values: ownerState.spacing,\n base\n });\n if (typeof directionValues === 'object') {\n Object.keys(directionValues).forEach((breakpoint, index, breakpoints) => {\n const directionValue = directionValues[breakpoint];\n if (!directionValue) {\n const previousDirectionValue = index > 0 ? directionValues[breakpoints[index - 1]] : 'column';\n directionValues[breakpoint] = previousDirectionValue;\n }\n });\n }\n const styleFromPropValue = (propValue, breakpoint) => {\n if (ownerState.useFlexGap) {\n return {\n gap: getValue(transformer, propValue)\n };\n }\n return {\n // The useFlexGap={false} implement relies on each child to give up control of the margin.\n // We need to reset the margin to avoid double spacing.\n '& > :not(style):not(style)': {\n margin: 0\n },\n '& > :not(style) ~ :not(style)': {\n [`margin${getSideFromDirection(breakpoint ? directionValues[breakpoint] : ownerState.direction)}`]: getValue(transformer, propValue)\n }\n };\n };\n styles = deepmerge(styles, handleBreakpoints({\n theme\n }, spacingValues, styleFromPropValue));\n }\n styles = mergeBreakpointsInOrder(theme.breakpoints, styles);\n return styles;\n};\nexport default function createStack(options = {}) {\n const {\n // This will allow adding custom styled fn (for example for custom sx style function)\n createStyledComponent = defaultCreateStyledComponent,\n useThemeProps = useThemePropsDefault,\n componentName = 'MuiStack'\n } = options;\n const useUtilityClasses = () => {\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, slot => generateUtilityClass(componentName, slot), {});\n };\n const StackRoot = createStyledComponent(style);\n const Stack = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {\n const themeProps = useThemeProps(inProps);\n const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.\n const {\n component = 'div',\n direction = 'column',\n spacing = 0,\n divider,\n children,\n className,\n useFlexGap = false,\n ...other\n } = props;\n const ownerState = {\n direction,\n spacing,\n useFlexGap\n };\n const classes = useUtilityClasses();\n return /*#__PURE__*/_jsx(StackRoot, {\n as: component,\n ownerState: ownerState,\n ref: ref,\n className: clsx(classes.root, className),\n ...other,\n children: divider ? joinChildren(children, divider) : children\n });\n });\n process.env.NODE_ENV !== \"production\" ? Stack.propTypes /* remove-proptypes */ = {\n children: PropTypes.node,\n direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n divider: PropTypes.node,\n spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n } : void 0;\n return Stack;\n}","const common = {\n black: '#000',\n white: '#fff'\n};\nexport default common;","const grey = {\n 50: '#fafafa',\n 100: '#f5f5f5',\n 200: '#eeeeee',\n 300: '#e0e0e0',\n 400: '#bdbdbd',\n 500: '#9e9e9e',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n A100: '#f5f5f5',\n A200: '#eeeeee',\n A400: '#bdbdbd',\n A700: '#616161'\n};\nexport default grey;","const purple = {\n 50: '#f3e5f5',\n 100: '#e1bee7',\n 200: '#ce93d8',\n 300: '#ba68c8',\n 400: '#ab47bc',\n 500: '#9c27b0',\n 600: '#8e24aa',\n 700: '#7b1fa2',\n 800: '#6a1b9a',\n 900: '#4a148c',\n A100: '#ea80fc',\n A200: '#e040fb',\n A400: '#d500f9',\n A700: '#aa00ff'\n};\nexport default purple;","const red = {\n 50: '#ffebee',\n 100: '#ffcdd2',\n 200: '#ef9a9a',\n 300: '#e57373',\n 400: '#ef5350',\n 500: '#f44336',\n 600: '#e53935',\n 700: '#d32f2f',\n 800: '#c62828',\n 900: '#b71c1c',\n A100: '#ff8a80',\n A200: '#ff5252',\n A400: '#ff1744',\n A700: '#d50000'\n};\nexport default red;","const orange = {\n 50: '#fff3e0',\n 100: '#ffe0b2',\n 200: '#ffcc80',\n 300: '#ffb74d',\n 400: '#ffa726',\n 500: '#ff9800',\n 600: '#fb8c00',\n 700: '#f57c00',\n 800: '#ef6c00',\n 900: '#e65100',\n A100: '#ffd180',\n A200: '#ffab40',\n A400: '#ff9100',\n A700: '#ff6d00'\n};\nexport default orange;","const blue = {\n 50: '#e3f2fd',\n 100: '#bbdefb',\n 200: '#90caf9',\n 300: '#64b5f6',\n 400: '#42a5f5',\n 500: '#2196f3',\n 600: '#1e88e5',\n 700: '#1976d2',\n 800: '#1565c0',\n 900: '#0d47a1',\n A100: '#82b1ff',\n A200: '#448aff',\n A400: '#2979ff',\n A700: '#2962ff'\n};\nexport default blue;","const lightBlue = {\n 50: '#e1f5fe',\n 100: '#b3e5fc',\n 200: '#81d4fa',\n 300: '#4fc3f7',\n 400: '#29b6f6',\n 500: '#03a9f4',\n 600: '#039be5',\n 700: '#0288d1',\n 800: '#0277bd',\n 900: '#01579b',\n A100: '#80d8ff',\n A200: '#40c4ff',\n A400: '#00b0ff',\n A700: '#0091ea'\n};\nexport default lightBlue;","const green = {\n 50: '#e8f5e9',\n 100: '#c8e6c9',\n 200: '#a5d6a7',\n 300: '#81c784',\n 400: '#66bb6a',\n 500: '#4caf50',\n 600: '#43a047',\n 700: '#388e3c',\n 800: '#2e7d32',\n 900: '#1b5e20',\n A100: '#b9f6ca',\n A200: '#69f0ae',\n A400: '#00e676',\n A700: '#00c853'\n};\nexport default green;","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport deepmerge from '@mui/utils/deepmerge';\nimport { darken, getContrastRatio, lighten } from '@mui/system/colorManipulator';\nimport common from \"../colors/common.js\";\nimport grey from \"../colors/grey.js\";\nimport purple from \"../colors/purple.js\";\nimport red from \"../colors/red.js\";\nimport orange from \"../colors/orange.js\";\nimport blue from \"../colors/blue.js\";\nimport lightBlue from \"../colors/lightBlue.js\";\nimport green from \"../colors/green.js\";\nfunction getLight() {\n return {\n // The colors used to style the text.\n text: {\n // The most important text.\n primary: 'rgba(0, 0, 0, 0.87)',\n // Secondary text.\n secondary: 'rgba(0, 0, 0, 0.6)',\n // Disabled text have even lower visual prominence.\n disabled: 'rgba(0, 0, 0, 0.38)'\n },\n // The color used to divide different elements.\n divider: 'rgba(0, 0, 0, 0.12)',\n // The background colors used to style the surfaces.\n // Consistency between these values is important.\n background: {\n paper: common.white,\n default: common.white\n },\n // The colors used to style the action elements.\n action: {\n // The color of an active action like an icon button.\n active: 'rgba(0, 0, 0, 0.54)',\n // The color of an hovered action.\n hover: 'rgba(0, 0, 0, 0.04)',\n hoverOpacity: 0.04,\n // The color of a selected action.\n selected: 'rgba(0, 0, 0, 0.08)',\n selectedOpacity: 0.08,\n // The color of a disabled action.\n disabled: 'rgba(0, 0, 0, 0.26)',\n // The background color of a disabled action.\n disabledBackground: 'rgba(0, 0, 0, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(0, 0, 0, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.12\n }\n };\n}\nexport const light = getLight();\nfunction getDark() {\n return {\n text: {\n primary: common.white,\n secondary: 'rgba(255, 255, 255, 0.7)',\n disabled: 'rgba(255, 255, 255, 0.5)',\n icon: 'rgba(255, 255, 255, 0.5)'\n },\n divider: 'rgba(255, 255, 255, 0.12)',\n background: {\n paper: '#121212',\n default: '#121212'\n },\n action: {\n active: common.white,\n hover: 'rgba(255, 255, 255, 0.08)',\n hoverOpacity: 0.08,\n selected: 'rgba(255, 255, 255, 0.16)',\n selectedOpacity: 0.16,\n disabled: 'rgba(255, 255, 255, 0.3)',\n disabledBackground: 'rgba(255, 255, 255, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(255, 255, 255, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.24\n }\n };\n}\nexport const dark = getDark();\nfunction addLightOrDark(intent, direction, shade, tonalOffset) {\n const tonalOffsetLight = tonalOffset.light || tonalOffset;\n const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = lighten(intent.main, tonalOffsetLight);\n } else if (direction === 'dark') {\n intent.dark = darken(intent.main, tonalOffsetDark);\n }\n }\n}\nfunction getDefaultPrimary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: blue[200],\n light: blue[50],\n dark: blue[400]\n };\n }\n return {\n main: blue[700],\n light: blue[400],\n dark: blue[800]\n };\n}\nfunction getDefaultSecondary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: purple[200],\n light: purple[50],\n dark: purple[400]\n };\n }\n return {\n main: purple[500],\n light: purple[300],\n dark: purple[700]\n };\n}\nfunction getDefaultError(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: red[500],\n light: red[300],\n dark: red[700]\n };\n }\n return {\n main: red[700],\n light: red[400],\n dark: red[800]\n };\n}\nfunction getDefaultInfo(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: lightBlue[400],\n light: lightBlue[300],\n dark: lightBlue[700]\n };\n }\n return {\n main: lightBlue[700],\n light: lightBlue[500],\n dark: lightBlue[900]\n };\n}\nfunction getDefaultSuccess(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: green[400],\n light: green[300],\n dark: green[700]\n };\n }\n return {\n main: green[800],\n light: green[500],\n dark: green[900]\n };\n}\nfunction getDefaultWarning(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: orange[400],\n light: orange[300],\n dark: orange[700]\n };\n }\n return {\n main: '#ed6c02',\n // closest to orange[800] that pass 3:1.\n light: orange[500],\n dark: orange[900]\n };\n}\nexport default function createPalette(palette) {\n const {\n mode = 'light',\n contrastThreshold = 3,\n tonalOffset = 0.2,\n ...other\n } = palette;\n const primary = palette.primary || getDefaultPrimary(mode);\n const secondary = palette.secondary || getDefaultSecondary(mode);\n const error = palette.error || getDefaultError(mode);\n const info = palette.info || getDefaultInfo(mode);\n const success = palette.success || getDefaultSuccess(mode);\n const warning = palette.warning || getDefaultWarning(mode);\n\n // Use the same logic as\n // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59\n // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54\n function getContrastText(background) {\n const contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;\n if (process.env.NODE_ENV !== 'production') {\n const contrast = getContrastRatio(background, contrastText);\n if (contrast < 3) {\n console.error([`MUI: The contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\\n'));\n }\n }\n return contrastText;\n }\n const augmentColor = ({\n color,\n name,\n mainShade = 500,\n lightShade = 300,\n darkShade = 700\n }) => {\n color = {\n ...color\n };\n if (!color.main && color[mainShade]) {\n color.main = color[mainShade];\n }\n if (!color.hasOwnProperty('main')) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\\n` + `The color object needs to have a \\`main\\` property or a \\`${mainShade}\\` property.` : _formatErrorMessage(11, name ? ` (${name})` : '', mainShade));\n }\n if (typeof color.main !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\\n` + `\\`color.main\\` should be a string, but \\`${JSON.stringify(color.main)}\\` was provided instead.\\n` + '\\n' + 'Did you intend to use one of the following approaches?\\n' + '\\n' + 'import { green } from \"@mui/material/colors\";\\n' + '\\n' + 'const theme1 = createTheme({ palette: {\\n' + ' primary: green,\\n' + '} });\\n' + '\\n' + 'const theme2 = createTheme({ palette: {\\n' + ' primary: { main: green[500] },\\n' + '} });' : _formatErrorMessage(12, name ? ` (${name})` : '', JSON.stringify(color.main)));\n }\n addLightOrDark(color, 'light', lightShade, tonalOffset);\n addLightOrDark(color, 'dark', darkShade, tonalOffset);\n if (!color.contrastText) {\n color.contrastText = getContrastText(color.main);\n }\n return color;\n };\n let modeHydrated;\n if (mode === 'light') {\n modeHydrated = getLight();\n } else if (mode === 'dark') {\n modeHydrated = getDark();\n }\n if (process.env.NODE_ENV !== 'production') {\n if (!modeHydrated) {\n console.error(`MUI: The palette mode \\`${mode}\\` is not supported.`);\n }\n }\n const paletteOutput = deepmerge({\n // A collection of common colors.\n common: {\n ...common\n },\n // prevent mutable object.\n // The palette mode, can be light or dark.\n mode,\n // The colors used to represent primary interface elements for a user.\n primary: augmentColor({\n color: primary,\n name: 'primary'\n }),\n // The colors used to represent secondary interface elements for a user.\n secondary: augmentColor({\n color: secondary,\n name: 'secondary',\n mainShade: 'A400',\n lightShade: 'A200',\n darkShade: 'A700'\n }),\n // The colors used to represent interface elements that the user should be made aware of.\n error: augmentColor({\n color: error,\n name: 'error'\n }),\n // The colors used to represent potentially dangerous actions or important messages.\n warning: augmentColor({\n color: warning,\n name: 'warning'\n }),\n // The colors used to present information to the user that is neutral and not necessarily important.\n info: augmentColor({\n color: info,\n name: 'info'\n }),\n // The colors used to indicate the successful completion of an action that user triggered.\n success: augmentColor({\n color: success,\n name: 'success'\n }),\n // The grey colors.\n grey,\n // Used by `getContrastText()` to maximize the contrast between\n // the background and the text.\n contrastThreshold,\n // Takes a background color and returns the text color that maximizes the contrast.\n getContrastText,\n // Generate a rich color object.\n augmentColor,\n // Used by the functions below to shift a color's luminance by approximately\n // two indexes within its tonal palette.\n // E.g., shift from Red 500 to Red 300 or Red 700.\n tonalOffset,\n // The light and dark mode object.\n ...modeHydrated\n }, other);\n return paletteOutput;\n}","export default function prepareTypographyVars(typography) {\n const vars = {};\n const entries = Object.entries(typography);\n entries.forEach(entry => {\n const [key, value] = entry;\n if (typeof value === 'object') {\n vars[key] = `${value.fontStyle ? `${value.fontStyle} ` : ''}${value.fontVariant ? `${value.fontVariant} ` : ''}${value.fontWeight ? `${value.fontWeight} ` : ''}${value.fontStretch ? `${value.fontStretch} ` : ''}${value.fontSize || ''}${value.lineHeight ? `/${value.lineHeight} ` : ''}${value.fontFamily || ''}`;\n }\n });\n return vars;\n}","export default function createMixins(breakpoints, mixins) {\n return {\n toolbar: {\n minHeight: 56,\n [breakpoints.up('xs')]: {\n '@media (orientation: landscape)': {\n minHeight: 48\n }\n },\n [breakpoints.up('sm')]: {\n minHeight: 64\n }\n },\n ...mixins\n };\n}","import deepmerge from '@mui/utils/deepmerge';\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\nconst caseAllCaps = {\n textTransform: 'uppercase'\n};\nconst defaultFontFamily = '\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';\n\n/**\n * @see @link{https://m2.material.io/design/typography/the-type-system.html}\n * @see @link{https://m2.material.io/design/typography/understanding-typography.html}\n */\nexport default function createTypography(palette, typography) {\n const {\n fontFamily = defaultFontFamily,\n // The default font size of the Material Specification.\n fontSize = 14,\n // px\n fontWeightLight = 300,\n fontWeightRegular = 400,\n fontWeightMedium = 500,\n fontWeightBold = 700,\n // Tell MUI what's the font-size on the html element.\n // 16px is the default font-size used by browsers.\n htmlFontSize = 16,\n // Apply the CSS properties to all the variants.\n allVariants,\n pxToRem: pxToRem2,\n ...other\n } = typeof typography === 'function' ? typography(palette) : typography;\n if (process.env.NODE_ENV !== 'production') {\n if (typeof fontSize !== 'number') {\n console.error('MUI: `fontSize` is required to be a number.');\n }\n if (typeof htmlFontSize !== 'number') {\n console.error('MUI: `htmlFontSize` is required to be a number.');\n }\n }\n const coef = fontSize / 14;\n const pxToRem = pxToRem2 || (size => `${size / htmlFontSize * coef}rem`);\n const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => ({\n fontFamily,\n fontWeight,\n fontSize: pxToRem(size),\n // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/\n lineHeight,\n // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing\n // across font-families can cause issues with the kerning.\n ...(fontFamily === defaultFontFamily ? {\n letterSpacing: `${round(letterSpacing / size)}em`\n } : {}),\n ...casing,\n ...allVariants\n });\n const variants = {\n h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),\n h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),\n h3: buildVariant(fontWeightRegular, 48, 1.167, 0),\n h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),\n h5: buildVariant(fontWeightRegular, 24, 1.334, 0),\n h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),\n subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),\n subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),\n body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),\n body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),\n button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),\n caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),\n overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps),\n // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.\n inherit: {\n fontFamily: 'inherit',\n fontWeight: 'inherit',\n fontSize: 'inherit',\n lineHeight: 'inherit',\n letterSpacing: 'inherit'\n }\n };\n return deepmerge({\n htmlFontSize,\n pxToRem,\n fontFamily,\n fontSize,\n fontWeightLight,\n fontWeightRegular,\n fontWeightMedium,\n fontWeightBold,\n ...variants\n }, other, {\n clone: false // No need to clone deep\n });\n}","const shadowKeyUmbraOpacity = 0.2;\nconst shadowKeyPenumbraOpacity = 0.14;\nconst shadowAmbientShadowOpacity = 0.12;\nfunction createShadow(...px) {\n return [`${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`, `${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`, `${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(',');\n}\n\n// Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss\nconst shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];\nexport default shadows;","// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves\n// to learn the context in which each easing should be used.\nexport const easing = {\n // This is the most common easing curve.\n easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\n // Objects enter the screen at full velocity from off-screen and\n // slowly decelerate to a resting point.\n easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',\n // Objects leave the screen at full velocity. They do not decelerate when off-screen.\n easeIn: 'cubic-bezier(0.4, 0, 1, 1)',\n // The sharp curve is used by objects that may return to the screen at any time.\n sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'\n};\n\n// Follow https://m2.material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations\n// to learn when use what timing\nexport const duration = {\n shortest: 150,\n shorter: 200,\n short: 250,\n // most basic recommended timing\n standard: 300,\n // this is to be used in complex animations\n complex: 375,\n // recommended when something is entering screen\n enteringScreen: 225,\n // recommended when something is leaving screen\n leavingScreen: 195\n};\nfunction formatMs(milliseconds) {\n return `${Math.round(milliseconds)}ms`;\n}\nfunction getAutoHeightDuration(height) {\n if (!height) {\n return 0;\n }\n const constant = height / 36;\n\n // https://www.desmos.com/calculator/vbrp3ggqet\n return Math.min(Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10), 3000);\n}\nexport default function createTransitions(inputTransitions) {\n const mergedEasing = {\n ...easing,\n ...inputTransitions.easing\n };\n const mergedDuration = {\n ...duration,\n ...inputTransitions.duration\n };\n const create = (props = ['all'], options = {}) => {\n const {\n duration: durationOption = mergedDuration.standard,\n easing: easingOption = mergedEasing.easeInOut,\n delay = 0,\n ...other\n } = options;\n if (process.env.NODE_ENV !== 'production') {\n const isString = value => typeof value === 'string';\n const isNumber = value => !Number.isNaN(parseFloat(value));\n if (!isString(props) && !Array.isArray(props)) {\n console.error('MUI: Argument \"props\" must be a string or Array.');\n }\n if (!isNumber(durationOption) && !isString(durationOption)) {\n console.error(`MUI: Argument \"duration\" must be a number or a string but found ${durationOption}.`);\n }\n if (!isString(easingOption)) {\n console.error('MUI: Argument \"easing\" must be a string.');\n }\n if (!isNumber(delay) && !isString(delay)) {\n console.error('MUI: Argument \"delay\" must be a number or a string.');\n }\n if (typeof options !== 'object') {\n console.error(['MUI: Secong argument of transition.create must be an object.', \"Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`\"].join('\\n'));\n }\n if (Object.keys(other).length !== 0) {\n console.error(`MUI: Unrecognized argument(s) [${Object.keys(other).join(',')}].`);\n }\n }\n return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');\n };\n return {\n getAutoHeightDuration,\n create,\n ...inputTransitions,\n easing: mergedEasing,\n duration: mergedDuration\n };\n}","// We need to centralize the zIndex definitions as they work\n// like global values in the browser.\nconst zIndex = {\n mobileStepper: 1000,\n fab: 1050,\n speedDial: 1050,\n appBar: 1100,\n drawer: 1200,\n modal: 1300,\n snackbar: 1400,\n tooltip: 1500\n};\nexport default zIndex;","/* eslint-disable import/prefer-default-export */\nimport { isPlainObject } from '@mui/utils/deepmerge';\nfunction isSerializable(val) {\n return isPlainObject(val) || typeof val === 'undefined' || typeof val === 'string' || typeof val === 'boolean' || typeof val === 'number' || Array.isArray(val);\n}\n\n/**\n * `baseTheme` usually comes from `createTheme()` or `extendTheme()`.\n *\n * This function is intended to be used with zero-runtime CSS-in-JS like Pigment CSS\n * For example, in a Next.js project:\n *\n * ```js\n * // next.config.js\n * const { extendTheme } = require('@mui/material/styles');\n *\n * const theme = extendTheme();\n * // `.toRuntimeSource` is Pigment CSS specific to create a theme that is available at runtime.\n * theme.toRuntimeSource = stringifyTheme;\n *\n * module.exports = withPigment({\n * theme,\n * });\n * ```\n */\nexport function stringifyTheme(baseTheme = {}) {\n const serializableTheme = {\n ...baseTheme\n };\n function serializeTheme(object) {\n const array = Object.entries(object);\n // eslint-disable-next-line no-plusplus\n for (let index = 0; index < array.length; index++) {\n const [key, value] = array[index];\n if (!isSerializable(value) || key.startsWith('unstable_')) {\n delete object[key];\n } else if (isPlainObject(value)) {\n object[key] = {\n ...value\n };\n serializeTheme(object[key]);\n }\n }\n }\n serializeTheme(serializableTheme);\n return `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(serializableTheme, null, 2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`;\n}","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport deepmerge from '@mui/utils/deepmerge';\nimport styleFunctionSx, { unstable_defaultSxConfig as defaultSxConfig } from '@mui/system/styleFunctionSx';\nimport systemCreateTheme from '@mui/system/createTheme';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport createMixins from \"./createMixins.js\";\nimport createPalette from \"./createPalette.js\";\nimport createTypography from \"./createTypography.js\";\nimport shadows from \"./shadows.js\";\nimport createTransitions from \"./createTransitions.js\";\nimport zIndex from \"./zIndex.js\";\nimport { stringifyTheme } from \"./stringifyTheme.js\";\nfunction createThemeNoVars(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput,\n mixins: mixinsInput = {},\n spacing: spacingInput,\n palette: paletteInput = {},\n transitions: transitionsInput = {},\n typography: typographyInput = {},\n shape: shapeInput,\n ...other\n } = options;\n if (options.vars &&\n // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.\n // `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.\n options.generateThemeVars === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI: `vars` is a private field used for CSS variables support.\\n' +\n // #host-reference\n 'Please use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.' : _formatErrorMessage(20));\n }\n const palette = createPalette(paletteInput);\n const systemTheme = systemCreateTheme(options);\n let muiTheme = deepmerge(systemTheme, {\n mixins: createMixins(systemTheme.breakpoints, mixinsInput),\n palette,\n // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.\n shadows: shadows.slice(),\n typography: createTypography(palette, typographyInput),\n transitions: createTransitions(transitionsInput),\n zIndex: {\n ...zIndex\n }\n });\n muiTheme = deepmerge(muiTheme, other);\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n if (process.env.NODE_ENV !== 'production') {\n // TODO v6: Refactor to use globalStateClassesMapping from @mui/utils once `readOnly` state class is used in Rating component.\n const stateClasses = ['active', 'checked', 'completed', 'disabled', 'error', 'expanded', 'focused', 'focusVisible', 'required', 'selected'];\n const traverse = (node, component) => {\n let key;\n\n // eslint-disable-next-line guard-for-in\n for (key in node) {\n const child = node[key];\n if (stateClasses.includes(key) && Object.keys(child).length > 0) {\n if (process.env.NODE_ENV !== 'production') {\n const stateClass = generateUtilityClass('', key);\n console.error([`MUI: The \\`${component}\\` component increases ` + `the CSS specificity of the \\`${key}\\` internal state.`, 'You can not override it like this: ', JSON.stringify(node, null, 2), '', `Instead, you need to use the '&.${stateClass}' syntax:`, JSON.stringify({\n root: {\n [`&.${stateClass}`]: child\n }\n }, null, 2), '', 'https://mui.com/r/state-classes-guide'].join('\\n'));\n }\n // Remove the style to prevent global conflicts.\n node[key] = {};\n }\n }\n };\n Object.keys(muiTheme.components).forEach(component => {\n const styleOverrides = muiTheme.components[component].styleOverrides;\n if (styleOverrides && component.startsWith('Mui')) {\n traverse(styleOverrides, component);\n }\n });\n }\n muiTheme.unstable_sxConfig = {\n ...defaultSxConfig,\n ...other?.unstable_sxConfig\n };\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n muiTheme.toRuntimeSource = stringifyTheme; // for Pigment CSS integration\n\n return muiTheme;\n}\nexport default createThemeNoVars;","// Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61\nexport default function getOverlayAlpha(elevation) {\n let alphaValue;\n if (elevation < 1) {\n alphaValue = 5.11916 * elevation ** 2;\n } else {\n alphaValue = 4.5 * Math.log(elevation + 1) + 2;\n }\n return Math.round(alphaValue * 10) / 1000;\n}","import createPalette from \"./createPalette.js\";\nimport getOverlayAlpha from \"./getOverlayAlpha.js\";\nconst defaultDarkOverlays = [...Array(25)].map((_, index) => {\n if (index === 0) {\n return 'none';\n }\n const overlay = getOverlayAlpha(index);\n return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;\n});\nexport function getOpacity(mode) {\n return {\n inputPlaceholder: mode === 'dark' ? 0.5 : 0.42,\n inputUnderline: mode === 'dark' ? 0.7 : 0.42,\n switchTrackDisabled: mode === 'dark' ? 0.2 : 0.12,\n switchTrack: mode === 'dark' ? 0.3 : 0.38\n };\n}\nexport function getOverlays(mode) {\n return mode === 'dark' ? defaultDarkOverlays : [];\n}\nexport default function createColorScheme(options) {\n const {\n palette: paletteInput = {\n mode: 'light'\n },\n // need to cast to avoid module augmentation test\n opacity,\n overlays,\n ...rest\n } = options;\n const palette = createPalette(paletteInput);\n return {\n palette,\n opacity: {\n ...getOpacity(palette.mode),\n ...opacity\n },\n overlays: overlays || getOverlays(palette.mode),\n ...rest\n };\n}","export default function shouldSkipGeneratingVar(keys) {\n return !!keys[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||\n // ends with sxConfig\n keys[0] === 'palette' && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/);\n}","/**\n * @internal These variables should not appear in the :root stylesheet when the `defaultColorScheme=\"dark\"`\n */\nconst excludeVariablesFromRoot = cssVarPrefix => [...[...Array(25)].map((_, index) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}overlays-${index}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkColor`];\nexport default excludeVariablesFromRoot;","import excludeVariablesFromRoot from \"./excludeVariablesFromRoot.js\";\nexport default theme => (colorScheme, css) => {\n const root = theme.rootSelector || ':root';\n const selector = theme.colorSchemeSelector;\n let rule = selector;\n if (selector === 'class') {\n rule = '.%s';\n }\n if (selector === 'data') {\n rule = '[data-%s]';\n }\n if (selector?.startsWith('data-') && !selector.includes('%s')) {\n // 'data-mui-color-scheme' -> '[data-mui-color-scheme=\"%s\"]'\n rule = `[${selector}=\"%s\"]`;\n }\n if (theme.defaultColorScheme === colorScheme) {\n if (colorScheme === 'dark') {\n const excludedVariables = {};\n excludeVariablesFromRoot(theme.cssVarPrefix).forEach(cssVar => {\n excludedVariables[cssVar] = css[cssVar];\n delete css[cssVar];\n });\n if (rule === 'media') {\n return {\n [root]: css,\n [`@media (prefers-color-scheme: dark)`]: {\n [root]: excludedVariables\n }\n };\n }\n if (rule) {\n return {\n [rule.replace('%s', colorScheme)]: excludedVariables,\n [`${root}, ${rule.replace('%s', colorScheme)}`]: css\n };\n }\n return {\n [root]: {\n ...css,\n ...excludedVariables\n }\n };\n }\n if (rule && rule !== 'media') {\n return `${root}, ${rule.replace('%s', String(colorScheme))}`;\n }\n } else if (colorScheme) {\n if (rule === 'media') {\n return {\n [`@media (prefers-color-scheme: ${String(colorScheme)})`]: {\n [root]: css\n }\n };\n }\n if (rule) {\n return rule.replace('%s', String(colorScheme));\n }\n }\n return root;\n};","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport deepmerge from '@mui/utils/deepmerge';\nimport { unstable_createGetCssVar as systemCreateGetCssVar, createSpacing } from '@mui/system';\nimport { createUnarySpacing } from '@mui/system/spacing';\nimport { prepareCssVars, prepareTypographyVars, createGetColorSchemeSelector } from '@mui/system/cssVars';\nimport styleFunctionSx, { unstable_defaultSxConfig as defaultSxConfig } from '@mui/system/styleFunctionSx';\nimport { private_safeColorChannel as safeColorChannel, private_safeAlpha as safeAlpha, private_safeDarken as safeDarken, private_safeLighten as safeLighten, private_safeEmphasize as safeEmphasize, hslToRgb } from '@mui/system/colorManipulator';\nimport createThemeNoVars from \"./createThemeNoVars.js\";\nimport createColorScheme, { getOpacity, getOverlays } from \"./createColorScheme.js\";\nimport defaultShouldSkipGeneratingVar from \"./shouldSkipGeneratingVar.js\";\nimport defaultGetSelector from \"./createGetSelector.js\";\nimport { stringifyTheme } from \"./stringifyTheme.js\";\nfunction assignNode(obj, keys) {\n keys.forEach(k => {\n if (!obj[k]) {\n obj[k] = {};\n }\n });\n}\nfunction setColor(obj, key, defaultValue) {\n if (!obj[key] && defaultValue) {\n obj[key] = defaultValue;\n }\n}\nfunction toRgb(color) {\n if (typeof color !== 'string' || !color.startsWith('hsl')) {\n return color;\n }\n return hslToRgb(color);\n}\nfunction setColorChannel(obj, key) {\n if (!(`${key}Channel` in obj)) {\n // custom channel token is not provided, generate one.\n // if channel token can't be generated, show a warning.\n obj[`${key}Channel`] = safeColorChannel(toRgb(obj[key]), `MUI: Can't create \\`palette.${key}Channel\\` because \\`palette.${key}\\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` + '\\n' + `To suppress this warning, you need to explicitly provide the \\`palette.${key}Channel\\` as a string (in rgb format, for example \"12 12 12\") or undefined if you want to remove the channel token.`);\n }\n}\nfunction getSpacingVal(spacingInput) {\n if (typeof spacingInput === 'number') {\n return `${spacingInput}px`;\n }\n if (typeof spacingInput === 'string' || typeof spacingInput === 'function' || Array.isArray(spacingInput)) {\n return spacingInput;\n }\n return '8px';\n}\nconst silent = fn => {\n try {\n return fn();\n } catch (error) {\n // ignore error\n }\n return undefined;\n};\nexport const createGetCssVar = (cssVarPrefix = 'mui') => systemCreateGetCssVar(cssVarPrefix);\nfunction attachColorScheme(colorSchemes, scheme, restTheme, colorScheme) {\n if (!scheme) {\n return undefined;\n }\n scheme = scheme === true ? {} : scheme;\n const mode = colorScheme === 'dark' ? 'dark' : 'light';\n if (!restTheme) {\n colorSchemes[colorScheme] = createColorScheme({\n ...scheme,\n palette: {\n mode,\n ...scheme?.palette\n }\n });\n return undefined;\n }\n const {\n palette,\n ...muiTheme\n } = createThemeNoVars({\n ...restTheme,\n palette: {\n mode,\n ...scheme?.palette\n }\n });\n colorSchemes[colorScheme] = {\n ...scheme,\n palette,\n opacity: {\n ...getOpacity(mode),\n ...scheme?.opacity\n },\n overlays: scheme?.overlays || getOverlays(mode)\n };\n return muiTheme;\n}\n\n/**\n * A default `createThemeWithVars` comes with a single color scheme, either `light` or `dark` based on the `defaultColorScheme`.\n * This is better suited for apps that only need a single color scheme.\n *\n * To enable built-in `light` and `dark` color schemes, either:\n * 1. provide a `colorSchemeSelector` to define how the color schemes will change.\n * 2. provide `colorSchemes.dark` will set `colorSchemeSelector: 'media'` by default.\n */\nexport default function createThemeWithVars(options = {}, ...args) {\n const {\n colorSchemes: colorSchemesInput = {\n light: true\n },\n defaultColorScheme: defaultColorSchemeInput,\n disableCssColorScheme = false,\n cssVarPrefix = 'mui',\n shouldSkipGeneratingVar = defaultShouldSkipGeneratingVar,\n colorSchemeSelector: selector = colorSchemesInput.light && colorSchemesInput.dark ? 'media' : undefined,\n rootSelector = ':root',\n ...input\n } = options;\n const firstColorScheme = Object.keys(colorSchemesInput)[0];\n const defaultColorScheme = defaultColorSchemeInput || (colorSchemesInput.light && firstColorScheme !== 'light' ? 'light' : firstColorScheme);\n const getCssVar = createGetCssVar(cssVarPrefix);\n const {\n [defaultColorScheme]: defaultSchemeInput,\n light: builtInLight,\n dark: builtInDark,\n ...customColorSchemes\n } = colorSchemesInput;\n const colorSchemes = {\n ...customColorSchemes\n };\n let defaultScheme = defaultSchemeInput;\n\n // For built-in light and dark color schemes, ensure that the value is valid if they are the default color scheme.\n if (defaultColorScheme === 'dark' && !('dark' in colorSchemesInput) || defaultColorScheme === 'light' && !('light' in colorSchemesInput)) {\n defaultScheme = true;\n }\n if (!defaultScheme) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The \\`colorSchemes.${defaultColorScheme}\\` option is either missing or invalid.` : _formatErrorMessage(21, defaultColorScheme));\n }\n\n // Create the palette for the default color scheme, either `light`, `dark`, or custom color scheme.\n const muiTheme = attachColorScheme(colorSchemes, defaultScheme, input, defaultColorScheme);\n if (builtInLight && !colorSchemes.light) {\n attachColorScheme(colorSchemes, builtInLight, undefined, 'light');\n }\n if (builtInDark && !colorSchemes.dark) {\n attachColorScheme(colorSchemes, builtInDark, undefined, 'dark');\n }\n let theme = {\n defaultColorScheme,\n ...muiTheme,\n cssVarPrefix,\n colorSchemeSelector: selector,\n rootSelector,\n getCssVar,\n colorSchemes,\n font: {\n ...prepareTypographyVars(muiTheme.typography),\n ...muiTheme.font\n },\n spacing: getSpacingVal(input.spacing)\n };\n Object.keys(theme.colorSchemes).forEach(key => {\n const palette = theme.colorSchemes[key].palette;\n const setCssVarColor = cssVar => {\n const tokens = cssVar.split('-');\n const color = tokens[1];\n const colorToken = tokens[2];\n return getCssVar(cssVar, palette[color][colorToken]);\n };\n\n // attach black & white channels to common node\n if (palette.mode === 'light') {\n setColor(palette.common, 'background', '#fff');\n setColor(palette.common, 'onBackground', '#000');\n }\n if (palette.mode === 'dark') {\n setColor(palette.common, 'background', '#000');\n setColor(palette.common, 'onBackground', '#fff');\n }\n\n // assign component variables\n assignNode(palette, ['Alert', 'AppBar', 'Avatar', 'Button', 'Chip', 'FilledInput', 'LinearProgress', 'Skeleton', 'Slider', 'SnackbarContent', 'SpeedDialAction', 'StepConnector', 'StepContent', 'Switch', 'TableCell', 'Tooltip']);\n if (palette.mode === 'light') {\n setColor(palette.Alert, 'errorColor', safeDarken(palette.error.light, 0.6));\n setColor(palette.Alert, 'infoColor', safeDarken(palette.info.light, 0.6));\n setColor(palette.Alert, 'successColor', safeDarken(palette.success.light, 0.6));\n setColor(palette.Alert, 'warningColor', safeDarken(palette.warning.light, 0.6));\n setColor(palette.Alert, 'errorFilledBg', setCssVarColor('palette-error-main'));\n setColor(palette.Alert, 'infoFilledBg', setCssVarColor('palette-info-main'));\n setColor(palette.Alert, 'successFilledBg', setCssVarColor('palette-success-main'));\n setColor(palette.Alert, 'warningFilledBg', setCssVarColor('palette-warning-main'));\n setColor(palette.Alert, 'errorFilledColor', silent(() => palette.getContrastText(palette.error.main)));\n setColor(palette.Alert, 'infoFilledColor', silent(() => palette.getContrastText(palette.info.main)));\n setColor(palette.Alert, 'successFilledColor', silent(() => palette.getContrastText(palette.success.main)));\n setColor(palette.Alert, 'warningFilledColor', silent(() => palette.getContrastText(palette.warning.main)));\n setColor(palette.Alert, 'errorStandardBg', safeLighten(palette.error.light, 0.9));\n setColor(palette.Alert, 'infoStandardBg', safeLighten(palette.info.light, 0.9));\n setColor(palette.Alert, 'successStandardBg', safeLighten(palette.success.light, 0.9));\n setColor(palette.Alert, 'warningStandardBg', safeLighten(palette.warning.light, 0.9));\n setColor(palette.Alert, 'errorIconColor', setCssVarColor('palette-error-main'));\n setColor(palette.Alert, 'infoIconColor', setCssVarColor('palette-info-main'));\n setColor(palette.Alert, 'successIconColor', setCssVarColor('palette-success-main'));\n setColor(palette.Alert, 'warningIconColor', setCssVarColor('palette-warning-main'));\n setColor(palette.AppBar, 'defaultBg', setCssVarColor('palette-grey-100'));\n setColor(palette.Avatar, 'defaultBg', setCssVarColor('palette-grey-400'));\n setColor(palette.Button, 'inheritContainedBg', setCssVarColor('palette-grey-300'));\n setColor(palette.Button, 'inheritContainedHoverBg', setCssVarColor('palette-grey-A100'));\n setColor(palette.Chip, 'defaultBorder', setCssVarColor('palette-grey-400'));\n setColor(palette.Chip, 'defaultAvatarColor', setCssVarColor('palette-grey-700'));\n setColor(palette.Chip, 'defaultIconColor', setCssVarColor('palette-grey-700'));\n setColor(palette.FilledInput, 'bg', 'rgba(0, 0, 0, 0.06)');\n setColor(palette.FilledInput, 'hoverBg', 'rgba(0, 0, 0, 0.09)');\n setColor(palette.FilledInput, 'disabledBg', 'rgba(0, 0, 0, 0.12)');\n setColor(palette.LinearProgress, 'primaryBg', safeLighten(palette.primary.main, 0.62));\n setColor(palette.LinearProgress, 'secondaryBg', safeLighten(palette.secondary.main, 0.62));\n setColor(palette.LinearProgress, 'errorBg', safeLighten(palette.error.main, 0.62));\n setColor(palette.LinearProgress, 'infoBg', safeLighten(palette.info.main, 0.62));\n setColor(palette.LinearProgress, 'successBg', safeLighten(palette.success.main, 0.62));\n setColor(palette.LinearProgress, 'warningBg', safeLighten(palette.warning.main, 0.62));\n setColor(palette.Skeleton, 'bg', `rgba(${setCssVarColor('palette-text-primaryChannel')} / 0.11)`);\n setColor(palette.Slider, 'primaryTrack', safeLighten(palette.primary.main, 0.62));\n setColor(palette.Slider, 'secondaryTrack', safeLighten(palette.secondary.main, 0.62));\n setColor(palette.Slider, 'errorTrack', safeLighten(palette.error.main, 0.62));\n setColor(palette.Slider, 'infoTrack', safeLighten(palette.info.main, 0.62));\n setColor(palette.Slider, 'successTrack', safeLighten(palette.success.main, 0.62));\n setColor(palette.Slider, 'warningTrack', safeLighten(palette.warning.main, 0.62));\n const snackbarContentBackground = safeEmphasize(palette.background.default, 0.8);\n setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);\n setColor(palette.SnackbarContent, 'color', silent(() => palette.getContrastText(snackbarContentBackground)));\n setColor(palette.SpeedDialAction, 'fabHoverBg', safeEmphasize(palette.background.paper, 0.15));\n setColor(palette.StepConnector, 'border', setCssVarColor('palette-grey-400'));\n setColor(palette.StepContent, 'border', setCssVarColor('palette-grey-400'));\n setColor(palette.Switch, 'defaultColor', setCssVarColor('palette-common-white'));\n setColor(palette.Switch, 'defaultDisabledColor', setCssVarColor('palette-grey-100'));\n setColor(palette.Switch, 'primaryDisabledColor', safeLighten(palette.primary.main, 0.62));\n setColor(palette.Switch, 'secondaryDisabledColor', safeLighten(palette.secondary.main, 0.62));\n setColor(palette.Switch, 'errorDisabledColor', safeLighten(palette.error.main, 0.62));\n setColor(palette.Switch, 'infoDisabledColor', safeLighten(palette.info.main, 0.62));\n setColor(palette.Switch, 'successDisabledColor', safeLighten(palette.success.main, 0.62));\n setColor(palette.Switch, 'warningDisabledColor', safeLighten(palette.warning.main, 0.62));\n setColor(palette.TableCell, 'border', safeLighten(safeAlpha(palette.divider, 1), 0.88));\n setColor(palette.Tooltip, 'bg', safeAlpha(palette.grey[700], 0.92));\n }\n if (palette.mode === 'dark') {\n setColor(palette.Alert, 'errorColor', safeLighten(palette.error.light, 0.6));\n setColor(palette.Alert, 'infoColor', safeLighten(palette.info.light, 0.6));\n setColor(palette.Alert, 'successColor', safeLighten(palette.success.light, 0.6));\n setColor(palette.Alert, 'warningColor', safeLighten(palette.warning.light, 0.6));\n setColor(palette.Alert, 'errorFilledBg', setCssVarColor('palette-error-dark'));\n setColor(palette.Alert, 'infoFilledBg', setCssVarColor('palette-info-dark'));\n setColor(palette.Alert, 'successFilledBg', setCssVarColor('palette-success-dark'));\n setColor(palette.Alert, 'warningFilledBg', setCssVarColor('palette-warning-dark'));\n setColor(palette.Alert, 'errorFilledColor', silent(() => palette.getContrastText(palette.error.dark)));\n setColor(palette.Alert, 'infoFilledColor', silent(() => palette.getContrastText(palette.info.dark)));\n setColor(palette.Alert, 'successFilledColor', silent(() => palette.getContrastText(palette.success.dark)));\n setColor(palette.Alert, 'warningFilledColor', silent(() => palette.getContrastText(palette.warning.dark)));\n setColor(palette.Alert, 'errorStandardBg', safeDarken(palette.error.light, 0.9));\n setColor(palette.Alert, 'infoStandardBg', safeDarken(palette.info.light, 0.9));\n setColor(palette.Alert, 'successStandardBg', safeDarken(palette.success.light, 0.9));\n setColor(palette.Alert, 'warningStandardBg', safeDarken(palette.warning.light, 0.9));\n setColor(palette.Alert, 'errorIconColor', setCssVarColor('palette-error-main'));\n setColor(palette.Alert, 'infoIconColor', setCssVarColor('palette-info-main'));\n setColor(palette.Alert, 'successIconColor', setCssVarColor('palette-success-main'));\n setColor(palette.Alert, 'warningIconColor', setCssVarColor('palette-warning-main'));\n setColor(palette.AppBar, 'defaultBg', setCssVarColor('palette-grey-900'));\n setColor(palette.AppBar, 'darkBg', setCssVarColor('palette-background-paper')); // specific for dark mode\n setColor(palette.AppBar, 'darkColor', setCssVarColor('palette-text-primary')); // specific for dark mode\n setColor(palette.Avatar, 'defaultBg', setCssVarColor('palette-grey-600'));\n setColor(palette.Button, 'inheritContainedBg', setCssVarColor('palette-grey-800'));\n setColor(palette.Button, 'inheritContainedHoverBg', setCssVarColor('palette-grey-700'));\n setColor(palette.Chip, 'defaultBorder', setCssVarColor('palette-grey-700'));\n setColor(palette.Chip, 'defaultAvatarColor', setCssVarColor('palette-grey-300'));\n setColor(palette.Chip, 'defaultIconColor', setCssVarColor('palette-grey-300'));\n setColor(palette.FilledInput, 'bg', 'rgba(255, 255, 255, 0.09)');\n setColor(palette.FilledInput, 'hoverBg', 'rgba(255, 255, 255, 0.13)');\n setColor(palette.FilledInput, 'disabledBg', 'rgba(255, 255, 255, 0.12)');\n setColor(palette.LinearProgress, 'primaryBg', safeDarken(palette.primary.main, 0.5));\n setColor(palette.LinearProgress, 'secondaryBg', safeDarken(palette.secondary.main, 0.5));\n setColor(palette.LinearProgress, 'errorBg', safeDarken(palette.error.main, 0.5));\n setColor(palette.LinearProgress, 'infoBg', safeDarken(palette.info.main, 0.5));\n setColor(palette.LinearProgress, 'successBg', safeDarken(palette.success.main, 0.5));\n setColor(palette.LinearProgress, 'warningBg', safeDarken(palette.warning.main, 0.5));\n setColor(palette.Skeleton, 'bg', `rgba(${setCssVarColor('palette-text-primaryChannel')} / 0.13)`);\n setColor(palette.Slider, 'primaryTrack', safeDarken(palette.primary.main, 0.5));\n setColor(palette.Slider, 'secondaryTrack', safeDarken(palette.secondary.main, 0.5));\n setColor(palette.Slider, 'errorTrack', safeDarken(palette.error.main, 0.5));\n setColor(palette.Slider, 'infoTrack', safeDarken(palette.info.main, 0.5));\n setColor(palette.Slider, 'successTrack', safeDarken(palette.success.main, 0.5));\n setColor(palette.Slider, 'warningTrack', safeDarken(palette.warning.main, 0.5));\n const snackbarContentBackground = safeEmphasize(palette.background.default, 0.98);\n setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);\n setColor(palette.SnackbarContent, 'color', silent(() => palette.getContrastText(snackbarContentBackground)));\n setColor(palette.SpeedDialAction, 'fabHoverBg', safeEmphasize(palette.background.paper, 0.15));\n setColor(palette.StepConnector, 'border', setCssVarColor('palette-grey-600'));\n setColor(palette.StepContent, 'border', setCssVarColor('palette-grey-600'));\n setColor(palette.Switch, 'defaultColor', setCssVarColor('palette-grey-300'));\n setColor(palette.Switch, 'defaultDisabledColor', setCssVarColor('palette-grey-600'));\n setColor(palette.Switch, 'primaryDisabledColor', safeDarken(palette.primary.main, 0.55));\n setColor(palette.Switch, 'secondaryDisabledColor', safeDarken(palette.secondary.main, 0.55));\n setColor(palette.Switch, 'errorDisabledColor', safeDarken(palette.error.main, 0.55));\n setColor(palette.Switch, 'infoDisabledColor', safeDarken(palette.info.main, 0.55));\n setColor(palette.Switch, 'successDisabledColor', safeDarken(palette.success.main, 0.55));\n setColor(palette.Switch, 'warningDisabledColor', safeDarken(palette.warning.main, 0.55));\n setColor(palette.TableCell, 'border', safeDarken(safeAlpha(palette.divider, 1), 0.68));\n setColor(palette.Tooltip, 'bg', safeAlpha(palette.grey[700], 0.92));\n }\n\n // MUI X - DataGrid needs this token.\n setColorChannel(palette.background, 'default');\n\n // added for consistency with the `background.default` token\n setColorChannel(palette.background, 'paper');\n setColorChannel(palette.common, 'background');\n setColorChannel(palette.common, 'onBackground');\n setColorChannel(palette, 'divider');\n Object.keys(palette).forEach(color => {\n const colors = palette[color];\n\n // The default palettes (primary, secondary, error, info, success, and warning) errors are handled by the above `createTheme(...)`.\n\n if (color !== 'tonalOffset' && colors && typeof colors === 'object') {\n // Silent the error for custom palettes.\n if (colors.main) {\n setColor(palette[color], 'mainChannel', safeColorChannel(toRgb(colors.main)));\n }\n if (colors.light) {\n setColor(palette[color], 'lightChannel', safeColorChannel(toRgb(colors.light)));\n }\n if (colors.dark) {\n setColor(palette[color], 'darkChannel', safeColorChannel(toRgb(colors.dark)));\n }\n if (colors.contrastText) {\n setColor(palette[color], 'contrastTextChannel', safeColorChannel(toRgb(colors.contrastText)));\n }\n if (color === 'text') {\n // Text colors: text.primary, text.secondary\n setColorChannel(palette[color], 'primary');\n setColorChannel(palette[color], 'secondary');\n }\n if (color === 'action') {\n // Action colors: action.active, action.selected\n if (colors.active) {\n setColorChannel(palette[color], 'active');\n }\n if (colors.selected) {\n setColorChannel(palette[color], 'selected');\n }\n }\n }\n });\n });\n theme = args.reduce((acc, argument) => deepmerge(acc, argument), theme);\n const parserConfig = {\n prefix: cssVarPrefix,\n disableCssColorScheme,\n shouldSkipGeneratingVar,\n getSelector: defaultGetSelector(theme)\n };\n const {\n vars,\n generateThemeVars,\n generateStyleSheets\n } = prepareCssVars(theme, parserConfig);\n theme.vars = vars;\n Object.entries(theme.colorSchemes[theme.defaultColorScheme]).forEach(([key, value]) => {\n theme[key] = value;\n });\n theme.generateThemeVars = generateThemeVars;\n theme.generateStyleSheets = generateStyleSheets;\n theme.generateSpacing = function generateSpacing() {\n return createSpacing(input.spacing, createUnarySpacing(this));\n };\n theme.getColorSchemeSelector = createGetColorSchemeSelector(selector);\n theme.spacing = theme.generateSpacing();\n theme.shouldSkipGeneratingVar = shouldSkipGeneratingVar;\n theme.unstable_sxConfig = {\n ...defaultSxConfig,\n ...input?.unstable_sxConfig\n };\n theme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n theme.toRuntimeSource = stringifyTheme; // for Pigment CSS integration\n\n return theme;\n}","import createPalette from \"./createPalette.js\";\nimport createThemeWithVars from \"./createThemeWithVars.js\";\nimport createThemeNoVars from \"./createThemeNoVars.js\";\n// eslint-disable-next-line consistent-return\nfunction attachColorScheme(theme, scheme, colorScheme) {\n if (!theme.colorSchemes) {\n return undefined;\n }\n if (colorScheme) {\n theme.colorSchemes[scheme] = {\n ...(colorScheme !== true && colorScheme),\n palette: createPalette({\n ...(colorScheme === true ? {} : colorScheme.palette),\n mode: scheme\n }) // cast type to skip module augmentation test\n };\n }\n}\n\n/**\n * Generate a theme base on the options received.\n * @param options Takes an incomplete theme object and adds the missing parts.\n * @param args Deep merge the arguments with the about to be returned theme.\n * @returns A complete, ready-to-use theme object.\n */\nexport default function createTheme(options = {},\n// cast type to skip module augmentation test\n...args) {\n const {\n palette,\n cssVariables = false,\n colorSchemes: initialColorSchemes = !palette ? {\n light: true\n } : undefined,\n defaultColorScheme: initialDefaultColorScheme = palette?.mode,\n ...rest\n } = options;\n const defaultColorSchemeInput = initialDefaultColorScheme || 'light';\n const defaultScheme = initialColorSchemes?.[defaultColorSchemeInput];\n const colorSchemesInput = {\n ...initialColorSchemes,\n ...(palette ? {\n [defaultColorSchemeInput]: {\n ...(typeof defaultScheme !== 'boolean' && defaultScheme),\n palette\n }\n } : undefined)\n };\n if (cssVariables === false) {\n if (!('colorSchemes' in options)) {\n // Behaves exactly as v5\n return createThemeNoVars(options, ...args);\n }\n let paletteOptions = palette;\n if (!('palette' in options)) {\n if (colorSchemesInput[defaultColorSchemeInput]) {\n if (colorSchemesInput[defaultColorSchemeInput] !== true) {\n paletteOptions = colorSchemesInput[defaultColorSchemeInput].palette;\n } else if (defaultColorSchemeInput === 'dark') {\n // @ts-ignore to prevent the module augmentation test from failing\n paletteOptions = {\n mode: 'dark'\n };\n }\n }\n }\n const theme = createThemeNoVars({\n ...options,\n palette: paletteOptions\n }, ...args);\n theme.defaultColorScheme = defaultColorSchemeInput;\n theme.colorSchemes = colorSchemesInput;\n if (theme.palette.mode === 'light') {\n theme.colorSchemes.light = {\n ...(colorSchemesInput.light !== true && colorSchemesInput.light),\n palette: theme.palette\n };\n attachColorScheme(theme, 'dark', colorSchemesInput.dark);\n }\n if (theme.palette.mode === 'dark') {\n theme.colorSchemes.dark = {\n ...(colorSchemesInput.dark !== true && colorSchemesInput.dark),\n palette: theme.palette\n };\n attachColorScheme(theme, 'light', colorSchemesInput.light);\n }\n return theme;\n }\n if (!palette && !('light' in colorSchemesInput) && defaultColorSchemeInput === 'light') {\n colorSchemesInput.light = true;\n }\n return createThemeWithVars({\n ...rest,\n colorSchemes: colorSchemesInput,\n defaultColorScheme: defaultColorSchemeInput,\n ...(typeof cssVariables !== 'boolean' && cssVariables)\n }, ...args);\n}","export function isUnitless(value) {\n return String(parseFloat(value)).length === String(value).length;\n}\n\n// Ported from Compass\n// https://github.com/Compass/compass/blob/master/core/stylesheets/compass/typography/_units.scss\n// Emulate the sass function \"unit\"\nexport function getUnit(input) {\n return String(input).match(/[\\d.\\-+]*\\s*(.*)/)[1] || '';\n}\n\n// Emulate the sass function \"unitless\"\nexport function toUnitless(length) {\n return parseFloat(length);\n}\n\n// Convert any CSS <length> or <percentage> value to any another.\n// From https://github.com/KyleAMathews/convert-css-length\nexport function convertLength(baseFontSize) {\n return (length, toUnit) => {\n const fromUnit = getUnit(length);\n\n // Optimize for cases where `from` and `to` units are accidentally the same.\n if (fromUnit === toUnit) {\n return length;\n }\n\n // Convert input length to pixels.\n let pxLength = toUnitless(length);\n if (fromUnit !== 'px') {\n if (fromUnit === 'em') {\n pxLength = toUnitless(length) * toUnitless(baseFontSize);\n } else if (fromUnit === 'rem') {\n pxLength = toUnitless(length) * toUnitless(baseFontSize);\n }\n }\n\n // Convert length in pixels to the output unit\n let outputLength = pxLength;\n if (toUnit !== 'px') {\n if (toUnit === 'em') {\n outputLength = pxLength / toUnitless(baseFontSize);\n } else if (toUnit === 'rem') {\n outputLength = pxLength / toUnitless(baseFontSize);\n } else {\n return length;\n }\n }\n return parseFloat(outputLength.toFixed(5)) + toUnit;\n };\n}\nexport function alignProperty({\n size,\n grid\n}) {\n const sizeBelow = size - size % grid;\n const sizeAbove = sizeBelow + grid;\n return size - sizeBelow < sizeAbove - size ? sizeBelow : sizeAbove;\n}\n\n// fontGrid finds a minimal grid (in rem) for the fontSize values so that the\n// lineHeight falls under a x pixels grid, 4px in the case of Material Design,\n// without changing the relative line height\nexport function fontGrid({\n lineHeight,\n pixels,\n htmlFontSize\n}) {\n return pixels / (lineHeight * htmlFontSize);\n}\n\n/**\n * generate a responsive version of a given CSS property\n * @example\n * responsiveProperty({\n * cssProperty: 'fontSize',\n * min: 15,\n * max: 20,\n * unit: 'px',\n * breakpoints: [300, 600],\n * })\n *\n * // this returns\n *\n * {\n * fontSize: '15px',\n * '@media (min-width:300px)': {\n * fontSize: '17.5px',\n * },\n * '@media (min-width:600px)': {\n * fontSize: '20px',\n * },\n * }\n * @param {Object} params\n * @param {string} params.cssProperty - The CSS property to be made responsive\n * @param {number} params.min - The smallest value of the CSS property\n * @param {number} params.max - The largest value of the CSS property\n * @param {string} [params.unit] - The unit to be used for the CSS property\n * @param {Array.number} [params.breakpoints] - An array of breakpoints\n * @param {number} [params.alignStep] - Round scaled value to fall under this grid\n * @returns {Object} responsive styles for {params.cssProperty}\n */\nexport function responsiveProperty({\n cssProperty,\n min,\n max,\n unit = 'rem',\n breakpoints = [600, 900, 1200],\n transform = null\n}) {\n const output = {\n [cssProperty]: `${min}${unit}`\n };\n const factor = (max - min) / breakpoints[breakpoints.length - 1];\n breakpoints.forEach(breakpoint => {\n let value = min + factor * breakpoint;\n if (transform !== null) {\n value = transform(value);\n }\n output[`@media (min-width:${breakpoint}px)`] = {\n [cssProperty]: `${Math.round(value * 10000) / 10000}${unit}`\n };\n });\n return output;\n}","'use client';\n\nimport createTheme from \"./createTheme.js\";\nconst defaultTheme = createTheme();\nexport default defaultTheme;","'use client';\n\nimport * as React from 'react';\nimport { useTheme as useThemeSystem } from '@mui/system';\nimport defaultTheme from \"./defaultTheme.js\";\nimport THEME_ID from \"./identifier.js\";\nexport default function useTheme() {\n const theme = useThemeSystem(defaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(theme);\n }\n return theme[THEME_ID] || theme;\n}","'use client';\n\nimport systemUseThemeProps from '@mui/system/useThemeProps';\nimport defaultTheme from \"./defaultTheme.js\";\nimport THEME_ID from \"./identifier.js\";\nexport default function useThemeProps({\n props,\n name\n}) {\n return systemUseThemeProps({\n props,\n name,\n defaultTheme,\n themeId: THEME_ID\n });\n}","// copied from @mui/system/createStyled\nfunction slotShouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nexport default slotShouldForwardProp;","import slotShouldForwardProp from \"./slotShouldForwardProp.js\";\nconst rootShouldForwardProp = prop => slotShouldForwardProp(prop) && prop !== 'classes';\nexport default rootShouldForwardProp;","'use client';\n\nimport createStyled from '@mui/system/createStyled';\nimport defaultTheme from \"./defaultTheme.js\";\nimport THEME_ID from \"./identifier.js\";\nimport rootShouldForwardProp from \"./rootShouldForwardProp.js\";\nexport { default as slotShouldForwardProp } from \"./slotShouldForwardProp.js\";\nexport { default as rootShouldForwardProp } from \"./rootShouldForwardProp.js\";\nconst styled = createStyled({\n themeId: THEME_ID,\n defaultTheme,\n rootShouldForwardProp\n});\nexport default styled;","'use client';\n\nimport * as React from 'react';\nimport { ThemeProvider as SystemThemeProvider } from '@mui/system';\nimport THEME_ID from \"./identifier.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function ThemeProviderNoVars({\n theme: themeInput,\n ...props\n}) {\n const scopedTheme = THEME_ID in themeInput ? themeInput[THEME_ID] : undefined;\n return /*#__PURE__*/_jsx(SystemThemeProvider, {\n ...props,\n themeId: scopedTheme ? THEME_ID : undefined,\n theme: scopedTheme || themeInput\n });\n}","import * as React from 'react';\nimport SystemInitColorSchemeScript from '@mui/system/InitColorSchemeScript';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const defaultConfig = {\n attribute: 'data-mui-color-scheme',\n colorSchemeStorageKey: 'mui-color-scheme',\n defaultLightColorScheme: 'light',\n defaultDarkColorScheme: 'dark',\n modeStorageKey: 'mui-mode'\n};\nexport default (function InitColorSchemeScript(props) {\n return /*#__PURE__*/_jsx(SystemInitColorSchemeScript, {\n ...defaultConfig,\n ...props\n });\n});","'use client';\n\nimport * as React from 'react';\nimport styleFunctionSx from '@mui/system/styleFunctionSx';\nimport { unstable_createCssVarsProvider as createCssVarsProvider } from '@mui/system';\nimport createTheme from \"./createTheme.js\";\nimport createTypography from \"./createTypography.js\";\nimport THEME_ID from \"./identifier.js\";\nimport { defaultConfig } from \"../InitColorSchemeScript/InitColorSchemeScript.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst {\n CssVarsProvider: InternalCssVarsProvider,\n useColorScheme,\n getInitColorSchemeScript: deprecatedGetInitColorSchemeScript\n} = createCssVarsProvider({\n themeId: THEME_ID,\n // @ts-ignore ignore module augmentation tests\n theme: () => createTheme({\n cssVariables: true\n }),\n colorSchemeStorageKey: defaultConfig.colorSchemeStorageKey,\n modeStorageKey: defaultConfig.modeStorageKey,\n defaultColorScheme: {\n light: defaultConfig.defaultLightColorScheme,\n dark: defaultConfig.defaultDarkColorScheme\n },\n resolveTheme: theme => {\n const newTheme = {\n ...theme,\n typography: createTypography(theme.palette, theme.typography)\n };\n newTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return newTheme;\n }\n});\nlet warnedOnce = false;\n\n// TODO: remove in v7\n// eslint-disable-next-line @typescript-eslint/naming-convention\nfunction Experimental_CssVarsProvider(props) {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnce) {\n console.warn(['MUI: The Experimental_CssVarsProvider component has been ported into ThemeProvider.', '', \"You should use `import { ThemeProvider } from '@mui/material/styles'` instead.\", 'For more details, check out https://mui.com/material-ui/customization/css-theme-variables/usage/'].join('\\n'));\n warnedOnce = true;\n }\n }\n return /*#__PURE__*/_jsx(InternalCssVarsProvider, {\n ...props\n });\n}\nlet warnedInitScriptOnce = false;\n\n// TODO: remove in v7\nconst getInitColorSchemeScript = params => {\n if (!warnedInitScriptOnce) {\n console.warn(['MUI: The getInitColorSchemeScript function has been deprecated.', '', \"You should use `import InitColorSchemeScript from '@mui/material/InitColorSchemeScript'`\", 'and replace the function call with `<InitColorSchemeScript />` instead.'].join('\\n'));\n warnedInitScriptOnce = true;\n }\n return deprecatedGetInitColorSchemeScript(params);\n};\n\n/**\n * TODO: remove this export in v7\n * @deprecated\n * The `CssVarsProvider` component has been deprecated and ported into `ThemeProvider`.\n *\n * You should use `ThemeProvider` and `createTheme()` instead:\n *\n * ```diff\n * - import { CssVarsProvider, extendTheme } from '@mui/material/styles';\n * + import { ThemeProvider, createTheme } from '@mui/material/styles';\n *\n * - const theme = extendTheme();\n * + const theme = createTheme({\n * + cssVariables: true,\n * + colorSchemes: { light: true, dark: true },\n * + });\n *\n * - <CssVarsProvider theme={theme}>\n * + <ThemeProvider theme={theme}>\n * ```\n *\n * To see the full documentation, check out https://mui.com/material-ui/customization/css-theme-variables/usage/.\n */\nexport const CssVarsProvider = InternalCssVarsProvider;\nexport { useColorScheme, getInitColorSchemeScript, Experimental_CssVarsProvider };","'use client';\n\nimport * as React from 'react';\nimport ThemeProviderNoVars from \"./ThemeProviderNoVars.js\";\nimport { CssVarsProvider } from \"./ThemeProviderWithVars.js\";\nimport THEME_ID from \"./identifier.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function ThemeProvider({\n theme,\n ...props\n}) {\n if (typeof theme === 'function') {\n return /*#__PURE__*/_jsx(ThemeProviderNoVars, {\n theme: theme,\n ...props\n });\n }\n const muiTheme = THEME_ID in theme ? theme[THEME_ID] : theme;\n if (!('colorSchemes' in muiTheme)) {\n if (!('vars' in muiTheme)) {\n // For non-CSS variables themes, set `vars` to null to prevent theme inheritance from the upper theme.\n // The example use case is the docs demo that uses ThemeProvider to customize the theme while the upper theme is using CSS variables.\n return /*#__PURE__*/_jsx(ThemeProviderNoVars, {\n theme: {\n ...theme,\n vars: null\n },\n ...props\n });\n }\n return /*#__PURE__*/_jsx(ThemeProviderNoVars, {\n theme: theme,\n ...props\n });\n }\n return /*#__PURE__*/_jsx(CssVarsProvider, {\n theme: theme,\n ...props\n });\n}","// src/subscribable.ts\nvar Subscribable = class {\n constructor() {\n this.listeners = /* @__PURE__ */ new Set();\n this.subscribe = this.subscribe.bind(this);\n }\n subscribe(listener) {\n this.listeners.add(listener);\n this.onSubscribe();\n return () => {\n this.listeners.delete(listener);\n this.onUnsubscribe();\n };\n }\n hasListeners() {\n return this.listeners.size > 0;\n }\n onSubscribe() {\n }\n onUnsubscribe() {\n }\n};\nexport {\n Subscribable\n};\n//# sourceMappingURL=subscribable.js.map","// src/utils.ts\nvar isServer = typeof window === \"undefined\" || \"Deno\" in globalThis;\nfunction noop() {\n}\nfunction functionalUpdate(updater, input) {\n return typeof updater === \"function\" ? updater(input) : updater;\n}\nfunction isValidTimeout(value) {\n return typeof value === \"number\" && value >= 0 && value !== Infinity;\n}\nfunction timeUntilStale(updatedAt, staleTime) {\n return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0);\n}\nfunction resolveStaleTime(staleTime, query) {\n return typeof staleTime === \"function\" ? staleTime(query) : staleTime;\n}\nfunction resolveEnabled(enabled, query) {\n return typeof enabled === \"function\" ? enabled(query) : enabled;\n}\nfunction matchQuery(filters, query) {\n const {\n type = \"all\",\n exact,\n fetchStatus,\n predicate,\n queryKey,\n stale\n } = filters;\n if (queryKey) {\n if (exact) {\n if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) {\n return false;\n }\n } else if (!partialMatchKey(query.queryKey, queryKey)) {\n return false;\n }\n }\n if (type !== \"all\") {\n const isActive = query.isActive();\n if (type === \"active\" && !isActive) {\n return false;\n }\n if (type === \"inactive\" && isActive) {\n return false;\n }\n }\n if (typeof stale === \"boolean\" && query.isStale() !== stale) {\n return false;\n }\n if (fetchStatus && fetchStatus !== query.state.fetchStatus) {\n return false;\n }\n if (predicate && !predicate(query)) {\n return false;\n }\n return true;\n}\nfunction matchMutation(filters, mutation) {\n const { exact, status, predicate, mutationKey } = filters;\n if (mutationKey) {\n if (!mutation.options.mutationKey) {\n return false;\n }\n if (exact) {\n if (hashKey(mutation.options.mutationKey) !== hashKey(mutationKey)) {\n return false;\n }\n } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) {\n return false;\n }\n }\n if (status && mutation.state.status !== status) {\n return false;\n }\n if (predicate && !predicate(mutation)) {\n return false;\n }\n return true;\n}\nfunction hashQueryKeyByOptions(queryKey, options) {\n const hashFn = options?.queryKeyHashFn || hashKey;\n return hashFn(queryKey);\n}\nfunction hashKey(queryKey) {\n return JSON.stringify(\n queryKey,\n (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => {\n result[key] = val[key];\n return result;\n }, {}) : val\n );\n}\nfunction partialMatchKey(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (a && b && typeof a === \"object\" && typeof b === \"object\") {\n return !Object.keys(b).some((key) => !partialMatchKey(a[key], b[key]));\n }\n return false;\n}\nfunction replaceEqualDeep(a, b) {\n if (a === b) {\n return a;\n }\n const array = isPlainArray(a) && isPlainArray(b);\n if (array || isPlainObject(a) && isPlainObject(b)) {\n const aItems = array ? a : Object.keys(a);\n const aSize = aItems.length;\n const bItems = array ? b : Object.keys(b);\n const bSize = bItems.length;\n const copy = array ? [] : {};\n let equalItems = 0;\n for (let i = 0; i < bSize; i++) {\n const key = array ? i : bItems[i];\n if ((!array && aItems.includes(key) || array) && a[key] === void 0 && b[key] === void 0) {\n copy[key] = void 0;\n equalItems++;\n } else {\n copy[key] = replaceEqualDeep(a[key], b[key]);\n if (copy[key] === a[key] && a[key] !== void 0) {\n equalItems++;\n }\n }\n }\n return aSize === bSize && equalItems === aSize ? a : copy;\n }\n return b;\n}\nfunction shallowEqualObjects(a, b) {\n if (!b || Object.keys(a).length !== Object.keys(b).length) {\n return false;\n }\n for (const key in a) {\n if (a[key] !== b[key]) {\n return false;\n }\n }\n return true;\n}\nfunction isPlainArray(value) {\n return Array.isArray(value) && value.length === Object.keys(value).length;\n}\nfunction isPlainObject(o) {\n if (!hasObjectPrototype(o)) {\n return false;\n }\n const ctor = o.constructor;\n if (ctor === void 0) {\n return true;\n }\n const prot = ctor.prototype;\n if (!hasObjectPrototype(prot)) {\n return false;\n }\n if (!prot.hasOwnProperty(\"isPrototypeOf\")) {\n return false;\n }\n if (Object.getPrototypeOf(o) !== Object.prototype) {\n return false;\n }\n return true;\n}\nfunction hasObjectPrototype(o) {\n return Object.prototype.toString.call(o) === \"[object Object]\";\n}\nfunction sleep(timeout) {\n return new Promise((resolve) => {\n setTimeout(resolve, timeout);\n });\n}\nfunction replaceData(prevData, data, options) {\n if (typeof options.structuralSharing === \"function\") {\n return options.structuralSharing(prevData, data);\n } else if (options.structuralSharing !== false) {\n if (process.env.NODE_ENV !== \"production\") {\n try {\n return replaceEqualDeep(prevData, data);\n } catch (error) {\n console.error(\n `Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${options.queryHash}]: ${error}`\n );\n throw error;\n }\n }\n return replaceEqualDeep(prevData, data);\n }\n return data;\n}\nfunction keepPreviousData(previousData) {\n return previousData;\n}\nfunction addToEnd(items, item, max = 0) {\n const newItems = [...items, item];\n return max && newItems.length > max ? newItems.slice(1) : newItems;\n}\nfunction addToStart(items, item, max = 0) {\n const newItems = [item, ...items];\n return max && newItems.length > max ? newItems.slice(0, -1) : newItems;\n}\nvar skipToken = Symbol();\nfunction ensureQueryFn(options, fetchOptions) {\n if (process.env.NODE_ENV !== \"production\") {\n if (options.queryFn === skipToken) {\n console.error(\n `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${options.queryHash}'`\n );\n }\n }\n if (!options.queryFn && fetchOptions?.initialPromise) {\n return () => fetchOptions.initialPromise;\n }\n if (!options.queryFn || options.queryFn === skipToken) {\n return () => Promise.reject(new Error(`Missing queryFn: '${options.queryHash}'`));\n }\n return options.queryFn;\n}\nexport {\n addToEnd,\n addToStart,\n ensureQueryFn,\n functionalUpdate,\n hashKey,\n hashQueryKeyByOptions,\n isPlainArray,\n isPlainObject,\n isServer,\n isValidTimeout,\n keepPreviousData,\n matchMutation,\n matchQuery,\n noop,\n partialMatchKey,\n replaceData,\n replaceEqualDeep,\n resolveEnabled,\n resolveStaleTime,\n shallowEqualObjects,\n skipToken,\n sleep,\n timeUntilStale\n};\n//# sourceMappingURL=utils.js.map","// src/focusManager.ts\nimport { Subscribable } from \"./subscribable.js\";\nimport { isServer } from \"./utils.js\";\nvar FocusManager = class extends Subscribable {\n #focused;\n #cleanup;\n #setup;\n constructor() {\n super();\n this.#setup = (onFocus) => {\n if (!isServer && window.addEventListener) {\n const listener = () => onFocus();\n window.addEventListener(\"visibilitychange\", listener, false);\n return () => {\n window.removeEventListener(\"visibilitychange\", listener);\n };\n }\n return;\n };\n }\n onSubscribe() {\n if (!this.#cleanup) {\n this.setEventListener(this.#setup);\n }\n }\n onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#cleanup?.();\n this.#cleanup = void 0;\n }\n }\n setEventListener(setup) {\n this.#setup = setup;\n this.#cleanup?.();\n this.#cleanup = setup((focused) => {\n if (typeof focused === \"boolean\") {\n this.setFocused(focused);\n } else {\n this.onFocus();\n }\n });\n }\n setFocused(focused) {\n const changed = this.#focused !== focused;\n if (changed) {\n this.#focused = focused;\n this.onFocus();\n }\n }\n onFocus() {\n const isFocused = this.isFocused();\n this.listeners.forEach((listener) => {\n listener(isFocused);\n });\n }\n isFocused() {\n if (typeof this.#focused === \"boolean\") {\n return this.#focused;\n }\n return globalThis.document?.visibilityState !== \"hidden\";\n }\n};\nvar focusManager = new FocusManager();\nexport {\n FocusManager,\n focusManager\n};\n//# sourceMappingURL=focusManager.js.map","// src/onlineManager.ts\nimport { Subscribable } from \"./subscribable.js\";\nimport { isServer } from \"./utils.js\";\nvar OnlineManager = class extends Subscribable {\n #online = true;\n #cleanup;\n #setup;\n constructor() {\n super();\n this.#setup = (onOnline) => {\n if (!isServer && window.addEventListener) {\n const onlineListener = () => onOnline(true);\n const offlineListener = () => onOnline(false);\n window.addEventListener(\"online\", onlineListener, false);\n window.addEventListener(\"offline\", offlineListener, false);\n return () => {\n window.removeEventListener(\"online\", onlineListener);\n window.removeEventListener(\"offline\", offlineListener);\n };\n }\n return;\n };\n }\n onSubscribe() {\n if (!this.#cleanup) {\n this.setEventListener(this.#setup);\n }\n }\n onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#cleanup?.();\n this.#cleanup = void 0;\n }\n }\n setEventListener(setup) {\n this.#setup = setup;\n this.#cleanup?.();\n this.#cleanup = setup(this.setOnline.bind(this));\n }\n setOnline(online) {\n const changed = this.#online !== online;\n if (changed) {\n this.#online = online;\n this.listeners.forEach((listener) => {\n listener(online);\n });\n }\n }\n isOnline() {\n return this.#online;\n }\n};\nvar onlineManager = new OnlineManager();\nexport {\n OnlineManager,\n onlineManager\n};\n//# sourceMappingURL=onlineManager.js.map","// src/thenable.ts\nfunction pendingThenable() {\n let resolve;\n let reject;\n const thenable = new Promise((_resolve, _reject) => {\n resolve = _resolve;\n reject = _reject;\n });\n thenable.status = \"pending\";\n thenable.catch(() => {\n });\n function finalize(data) {\n Object.assign(thenable, data);\n delete thenable.resolve;\n delete thenable.reject;\n }\n thenable.resolve = (value) => {\n finalize({\n status: \"fulfilled\",\n value\n });\n resolve(value);\n };\n thenable.reject = (reason) => {\n finalize({\n status: \"rejected\",\n reason\n });\n reject(reason);\n };\n return thenable;\n}\nexport {\n pendingThenable\n};\n//# sourceMappingURL=thenable.js.map","// src/retryer.ts\nimport { focusManager } from \"./focusManager.js\";\nimport { onlineManager } from \"./onlineManager.js\";\nimport { pendingThenable } from \"./thenable.js\";\nimport { isServer, sleep } from \"./utils.js\";\nfunction defaultRetryDelay(failureCount) {\n return Math.min(1e3 * 2 ** failureCount, 3e4);\n}\nfunction canFetch(networkMode) {\n return (networkMode ?? \"online\") === \"online\" ? onlineManager.isOnline() : true;\n}\nvar CancelledError = class extends Error {\n constructor(options) {\n super(\"CancelledError\");\n this.revert = options?.revert;\n this.silent = options?.silent;\n }\n};\nfunction isCancelledError(value) {\n return value instanceof CancelledError;\n}\nfunction createRetryer(config) {\n let isRetryCancelled = false;\n let failureCount = 0;\n let isResolved = false;\n let continueFn;\n const thenable = pendingThenable();\n const cancel = (cancelOptions) => {\n if (!isResolved) {\n reject(new CancelledError(cancelOptions));\n config.abort?.();\n }\n };\n const cancelRetry = () => {\n isRetryCancelled = true;\n };\n const continueRetry = () => {\n isRetryCancelled = false;\n };\n const canContinue = () => focusManager.isFocused() && (config.networkMode === \"always\" || onlineManager.isOnline()) && config.canRun();\n const canStart = () => canFetch(config.networkMode) && config.canRun();\n const resolve = (value) => {\n if (!isResolved) {\n isResolved = true;\n config.onSuccess?.(value);\n continueFn?.();\n thenable.resolve(value);\n }\n };\n const reject = (value) => {\n if (!isResolved) {\n isResolved = true;\n config.onError?.(value);\n continueFn?.();\n thenable.reject(value);\n }\n };\n const pause = () => {\n return new Promise((continueResolve) => {\n continueFn = (value) => {\n if (isResolved || canContinue()) {\n continueResolve(value);\n }\n };\n config.onPause?.();\n }).then(() => {\n continueFn = void 0;\n if (!isResolved) {\n config.onContinue?.();\n }\n });\n };\n const run = () => {\n if (isResolved) {\n return;\n }\n let promiseOrValue;\n const initialPromise = failureCount === 0 ? config.initialPromise : void 0;\n try {\n promiseOrValue = initialPromise ?? config.fn();\n } catch (error) {\n promiseOrValue = Promise.reject(error);\n }\n Promise.resolve(promiseOrValue).then(resolve).catch((error) => {\n if (isResolved) {\n return;\n }\n const retry = config.retry ?? (isServer ? 0 : 3);\n const retryDelay = config.retryDelay ?? defaultRetryDelay;\n const delay = typeof retryDelay === \"function\" ? retryDelay(failureCount, error) : retryDelay;\n const shouldRetry = retry === true || typeof retry === \"number\" && failureCount < retry || typeof retry === \"function\" && retry(failureCount, error);\n if (isRetryCancelled || !shouldRetry) {\n reject(error);\n return;\n }\n failureCount++;\n config.onFail?.(failureCount, error);\n sleep(delay).then(() => {\n return canContinue() ? void 0 : pause();\n }).then(() => {\n if (isRetryCancelled) {\n reject(error);\n } else {\n run();\n }\n });\n });\n };\n return {\n promise: thenable,\n cancel,\n continue: () => {\n continueFn?.();\n return thenable;\n },\n cancelRetry,\n continueRetry,\n canStart,\n start: () => {\n if (canStart()) {\n run();\n } else {\n pause().then(run);\n }\n return thenable;\n }\n };\n}\nexport {\n CancelledError,\n canFetch,\n createRetryer,\n isCancelledError\n};\n//# sourceMappingURL=retryer.js.map","// src/notifyManager.ts\nvar defaultScheduler = (cb) => setTimeout(cb, 0);\nfunction createNotifyManager() {\n let queue = [];\n let transactions = 0;\n let notifyFn = (callback) => {\n callback();\n };\n let batchNotifyFn = (callback) => {\n callback();\n };\n let scheduleFn = defaultScheduler;\n const schedule = (callback) => {\n if (transactions) {\n queue.push(callback);\n } else {\n scheduleFn(() => {\n notifyFn(callback);\n });\n }\n };\n const flush = () => {\n const originalQueue = queue;\n queue = [];\n if (originalQueue.length) {\n scheduleFn(() => {\n batchNotifyFn(() => {\n originalQueue.forEach((callback) => {\n notifyFn(callback);\n });\n });\n });\n }\n };\n return {\n batch: (callback) => {\n let result;\n transactions++;\n try {\n result = callback();\n } finally {\n transactions--;\n if (!transactions) {\n flush();\n }\n }\n return result;\n },\n /**\n * All calls to the wrapped function will be batched.\n */\n batchCalls: (callback) => {\n return (...args) => {\n schedule(() => {\n callback(...args);\n });\n };\n },\n schedule,\n /**\n * Use this method to set a custom notify function.\n * This can be used to for example wrap notifications with `React.act` while running tests.\n */\n setNotifyFunction: (fn) => {\n notifyFn = fn;\n },\n /**\n * Use this method to set a custom function to batch notifications together into a single tick.\n * By default React Query will use the batch function provided by ReactDOM or React Native.\n */\n setBatchNotifyFunction: (fn) => {\n batchNotifyFn = fn;\n },\n setScheduler: (fn) => {\n scheduleFn = fn;\n }\n };\n}\nvar notifyManager = createNotifyManager();\nexport {\n createNotifyManager,\n defaultScheduler,\n notifyManager\n};\n//# sourceMappingURL=notifyManager.js.map","// src/removable.ts\nimport { isServer, isValidTimeout } from \"./utils.js\";\nvar Removable = class {\n #gcTimeout;\n destroy() {\n this.clearGcTimeout();\n }\n scheduleGc() {\n this.clearGcTimeout();\n if (isValidTimeout(this.gcTime)) {\n this.#gcTimeout = setTimeout(() => {\n this.optionalRemove();\n }, this.gcTime);\n }\n }\n updateGcTime(newGcTime) {\n this.gcTime = Math.max(\n this.gcTime || 0,\n newGcTime ?? (isServer ? Infinity : 5 * 60 * 1e3)\n );\n }\n clearGcTimeout() {\n if (this.#gcTimeout) {\n clearTimeout(this.#gcTimeout);\n this.#gcTimeout = void 0;\n }\n }\n};\nexport {\n Removable\n};\n//# sourceMappingURL=removable.js.map","// src/query.ts\nimport {\n ensureQueryFn,\n noop,\n replaceData,\n resolveEnabled,\n skipToken,\n timeUntilStale\n} from \"./utils.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { canFetch, createRetryer, isCancelledError } from \"./retryer.js\";\nimport { Removable } from \"./removable.js\";\nvar Query = class extends Removable {\n #initialState;\n #revertState;\n #cache;\n #client;\n #retryer;\n #defaultOptions;\n #abortSignalConsumed;\n constructor(config) {\n super();\n this.#abortSignalConsumed = false;\n this.#defaultOptions = config.defaultOptions;\n this.setOptions(config.options);\n this.observers = [];\n this.#client = config.client;\n this.#cache = this.#client.getQueryCache();\n this.queryKey = config.queryKey;\n this.queryHash = config.queryHash;\n this.#initialState = getDefaultState(this.options);\n this.state = config.state ?? this.#initialState;\n this.scheduleGc();\n }\n get meta() {\n return this.options.meta;\n }\n get promise() {\n return this.#retryer?.promise;\n }\n setOptions(options) {\n this.options = { ...this.#defaultOptions, ...options };\n this.updateGcTime(this.options.gcTime);\n }\n optionalRemove() {\n if (!this.observers.length && this.state.fetchStatus === \"idle\") {\n this.#cache.remove(this);\n }\n }\n setData(newData, options) {\n const data = replaceData(this.state.data, newData, this.options);\n this.#dispatch({\n data,\n type: \"success\",\n dataUpdatedAt: options?.updatedAt,\n manual: options?.manual\n });\n return data;\n }\n setState(state, setStateOptions) {\n this.#dispatch({ type: \"setState\", state, setStateOptions });\n }\n cancel(options) {\n const promise = this.#retryer?.promise;\n this.#retryer?.cancel(options);\n return promise ? promise.then(noop).catch(noop) : Promise.resolve();\n }\n destroy() {\n super.destroy();\n this.cancel({ silent: true });\n }\n reset() {\n this.destroy();\n this.setState(this.#initialState);\n }\n isActive() {\n return this.observers.some(\n (observer) => resolveEnabled(observer.options.enabled, this) !== false\n );\n }\n isDisabled() {\n if (this.getObserversCount() > 0) {\n return !this.isActive();\n }\n return this.options.queryFn === skipToken || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;\n }\n isStale() {\n if (this.state.isInvalidated) {\n return true;\n }\n if (this.getObserversCount() > 0) {\n return this.observers.some(\n (observer) => observer.getCurrentResult().isStale\n );\n }\n return this.state.data === void 0;\n }\n isStaleByTime(staleTime = 0) {\n return this.state.isInvalidated || this.state.data === void 0 || !timeUntilStale(this.state.dataUpdatedAt, staleTime);\n }\n onFocus() {\n const observer = this.observers.find((x) => x.shouldFetchOnWindowFocus());\n observer?.refetch({ cancelRefetch: false });\n this.#retryer?.continue();\n }\n onOnline() {\n const observer = this.observers.find((x) => x.shouldFetchOnReconnect());\n observer?.refetch({ cancelRefetch: false });\n this.#retryer?.continue();\n }\n addObserver(observer) {\n if (!this.observers.includes(observer)) {\n this.observers.push(observer);\n this.clearGcTimeout();\n this.#cache.notify({ type: \"observerAdded\", query: this, observer });\n }\n }\n removeObserver(observer) {\n if (this.observers.includes(observer)) {\n this.observers = this.observers.filter((x) => x !== observer);\n if (!this.observers.length) {\n if (this.#retryer) {\n if (this.#abortSignalConsumed) {\n this.#retryer.cancel({ revert: true });\n } else {\n this.#retryer.cancelRetry();\n }\n }\n this.scheduleGc();\n }\n this.#cache.notify({ type: \"observerRemoved\", query: this, observer });\n }\n }\n getObserversCount() {\n return this.observers.length;\n }\n invalidate() {\n if (!this.state.isInvalidated) {\n this.#dispatch({ type: \"invalidate\" });\n }\n }\n fetch(options, fetchOptions) {\n if (this.state.fetchStatus !== \"idle\") {\n if (this.state.data !== void 0 && fetchOptions?.cancelRefetch) {\n this.cancel({ silent: true });\n } else if (this.#retryer) {\n this.#retryer.continueRetry();\n return this.#retryer.promise;\n }\n }\n if (options) {\n this.setOptions(options);\n }\n if (!this.options.queryFn) {\n const observer = this.observers.find((x) => x.options.queryFn);\n if (observer) {\n this.setOptions(observer.options);\n }\n }\n if (process.env.NODE_ENV !== \"production\") {\n if (!Array.isArray(this.options.queryKey)) {\n console.error(\n `As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']`\n );\n }\n }\n const abortController = new AbortController();\n const addSignalProperty = (object) => {\n Object.defineProperty(object, \"signal\", {\n enumerable: true,\n get: () => {\n this.#abortSignalConsumed = true;\n return abortController.signal;\n }\n });\n };\n const fetchFn = () => {\n const queryFn = ensureQueryFn(this.options, fetchOptions);\n const queryFnContext = {\n client: this.#client,\n queryKey: this.queryKey,\n meta: this.meta\n };\n addSignalProperty(queryFnContext);\n this.#abortSignalConsumed = false;\n if (this.options.persister) {\n return this.options.persister(\n queryFn,\n queryFnContext,\n this\n );\n }\n return queryFn(queryFnContext);\n };\n const context = {\n fetchOptions,\n options: this.options,\n queryKey: this.queryKey,\n client: this.#client,\n state: this.state,\n fetchFn\n };\n addSignalProperty(context);\n this.options.behavior?.onFetch(\n context,\n this\n );\n this.#revertState = this.state;\n if (this.state.fetchStatus === \"idle\" || this.state.fetchMeta !== context.fetchOptions?.meta) {\n this.#dispatch({ type: \"fetch\", meta: context.fetchOptions?.meta });\n }\n const onError = (error) => {\n if (!(isCancelledError(error) && error.silent)) {\n this.#dispatch({\n type: \"error\",\n error\n });\n }\n if (!isCancelledError(error)) {\n this.#cache.config.onError?.(\n error,\n this\n );\n this.#cache.config.onSettled?.(\n this.state.data,\n error,\n this\n );\n }\n this.scheduleGc();\n };\n this.#retryer = createRetryer({\n initialPromise: fetchOptions?.initialPromise,\n fn: context.fetchFn,\n abort: abortController.abort.bind(abortController),\n onSuccess: (data) => {\n if (data === void 0) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(\n `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`\n );\n }\n onError(new Error(`${this.queryHash} data is undefined`));\n return;\n }\n try {\n this.setData(data);\n } catch (error) {\n onError(error);\n return;\n }\n this.#cache.config.onSuccess?.(data, this);\n this.#cache.config.onSettled?.(\n data,\n this.state.error,\n this\n );\n this.scheduleGc();\n },\n onError,\n onFail: (failureCount, error) => {\n this.#dispatch({ type: \"failed\", failureCount, error });\n },\n onPause: () => {\n this.#dispatch({ type: \"pause\" });\n },\n onContinue: () => {\n this.#dispatch({ type: \"continue\" });\n },\n retry: context.options.retry,\n retryDelay: context.options.retryDelay,\n networkMode: context.options.networkMode,\n canRun: () => true\n });\n return this.#retryer.start();\n }\n #dispatch(action) {\n const reducer = (state) => {\n switch (action.type) {\n case \"failed\":\n return {\n ...state,\n fetchFailureCount: action.failureCount,\n fetchFailureReason: action.error\n };\n case \"pause\":\n return {\n ...state,\n fetchStatus: \"paused\"\n };\n case \"continue\":\n return {\n ...state,\n fetchStatus: \"fetching\"\n };\n case \"fetch\":\n return {\n ...state,\n ...fetchState(state.data, this.options),\n fetchMeta: action.meta ?? null\n };\n case \"success\":\n return {\n ...state,\n data: action.data,\n dataUpdateCount: state.dataUpdateCount + 1,\n dataUpdatedAt: action.dataUpdatedAt ?? Date.now(),\n error: null,\n isInvalidated: false,\n status: \"success\",\n ...!action.manual && {\n fetchStatus: \"idle\",\n fetchFailureCount: 0,\n fetchFailureReason: null\n }\n };\n case \"error\":\n const error = action.error;\n if (isCancelledError(error) && error.revert && this.#revertState) {\n return { ...this.#revertState, fetchStatus: \"idle\" };\n }\n return {\n ...state,\n error,\n errorUpdateCount: state.errorUpdateCount + 1,\n errorUpdatedAt: Date.now(),\n fetchFailureCount: state.fetchFailureCount + 1,\n fetchFailureReason: error,\n fetchStatus: \"idle\",\n status: \"error\"\n };\n case \"invalidate\":\n return {\n ...state,\n isInvalidated: true\n };\n case \"setState\":\n return {\n ...state,\n ...action.state\n };\n }\n };\n this.state = reducer(this.state);\n notifyManager.batch(() => {\n this.observers.forEach((observer) => {\n observer.onQueryUpdate();\n });\n this.#cache.notify({ query: this, type: \"updated\", action });\n });\n }\n};\nfunction fetchState(data, options) {\n return {\n fetchFailureCount: 0,\n fetchFailureReason: null,\n fetchStatus: canFetch(options.networkMode) ? \"fetching\" : \"paused\",\n ...data === void 0 && {\n error: null,\n status: \"pending\"\n }\n };\n}\nfunction getDefaultState(options) {\n const data = typeof options.initialData === \"function\" ? options.initialData() : options.initialData;\n const hasData = data !== void 0;\n const initialDataUpdatedAt = hasData ? typeof options.initialDataUpdatedAt === \"function\" ? options.initialDataUpdatedAt() : options.initialDataUpdatedAt : 0;\n return {\n data,\n dataUpdateCount: 0,\n dataUpdatedAt: hasData ? initialDataUpdatedAt ?? Date.now() : 0,\n error: null,\n errorUpdateCount: 0,\n errorUpdatedAt: 0,\n fetchFailureCount: 0,\n fetchFailureReason: null,\n fetchMeta: null,\n isInvalidated: false,\n status: hasData ? \"success\" : \"pending\",\n fetchStatus: \"idle\"\n };\n}\nexport {\n Query,\n fetchState\n};\n//# sourceMappingURL=query.js.map","// src/queryCache.ts\nimport { hashQueryKeyByOptions, matchQuery } from \"./utils.js\";\nimport { Query } from \"./query.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Subscribable } from \"./subscribable.js\";\nvar QueryCache = class extends Subscribable {\n constructor(config = {}) {\n super();\n this.config = config;\n this.#queries = /* @__PURE__ */ new Map();\n }\n #queries;\n build(client, options, state) {\n const queryKey = options.queryKey;\n const queryHash = options.queryHash ?? hashQueryKeyByOptions(queryKey, options);\n let query = this.get(queryHash);\n if (!query) {\n query = new Query({\n client,\n queryKey,\n queryHash,\n options: client.defaultQueryOptions(options),\n state,\n defaultOptions: client.getQueryDefaults(queryKey)\n });\n this.add(query);\n }\n return query;\n }\n add(query) {\n if (!this.#queries.has(query.queryHash)) {\n this.#queries.set(query.queryHash, query);\n this.notify({\n type: \"added\",\n query\n });\n }\n }\n remove(query) {\n const queryInMap = this.#queries.get(query.queryHash);\n if (queryInMap) {\n query.destroy();\n if (queryInMap === query) {\n this.#queries.delete(query.queryHash);\n }\n this.notify({ type: \"removed\", query });\n }\n }\n clear() {\n notifyManager.batch(() => {\n this.getAll().forEach((query) => {\n this.remove(query);\n });\n });\n }\n get(queryHash) {\n return this.#queries.get(queryHash);\n }\n getAll() {\n return [...this.#queries.values()];\n }\n find(filters) {\n const defaultedFilters = { exact: true, ...filters };\n return this.getAll().find(\n (query) => matchQuery(defaultedFilters, query)\n );\n }\n findAll(filters = {}) {\n const queries = this.getAll();\n return Object.keys(filters).length > 0 ? queries.filter((query) => matchQuery(filters, query)) : queries;\n }\n notify(event) {\n notifyManager.batch(() => {\n this.listeners.forEach((listener) => {\n listener(event);\n });\n });\n }\n onFocus() {\n notifyManager.batch(() => {\n this.getAll().forEach((query) => {\n query.onFocus();\n });\n });\n }\n onOnline() {\n notifyManager.batch(() => {\n this.getAll().forEach((query) => {\n query.onOnline();\n });\n });\n }\n};\nexport {\n QueryCache\n};\n//# sourceMappingURL=queryCache.js.map","// src/mutation.ts\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Removable } from \"./removable.js\";\nimport { createRetryer } from \"./retryer.js\";\nvar Mutation = class extends Removable {\n #observers;\n #mutationCache;\n #retryer;\n constructor(config) {\n super();\n this.mutationId = config.mutationId;\n this.#mutationCache = config.mutationCache;\n this.#observers = [];\n this.state = config.state || getDefaultState();\n this.setOptions(config.options);\n this.scheduleGc();\n }\n setOptions(options) {\n this.options = options;\n this.updateGcTime(this.options.gcTime);\n }\n get meta() {\n return this.options.meta;\n }\n addObserver(observer) {\n if (!this.#observers.includes(observer)) {\n this.#observers.push(observer);\n this.clearGcTimeout();\n this.#mutationCache.notify({\n type: \"observerAdded\",\n mutation: this,\n observer\n });\n }\n }\n removeObserver(observer) {\n this.#observers = this.#observers.filter((x) => x !== observer);\n this.scheduleGc();\n this.#mutationCache.notify({\n type: \"observerRemoved\",\n mutation: this,\n observer\n });\n }\n optionalRemove() {\n if (!this.#observers.length) {\n if (this.state.status === \"pending\") {\n this.scheduleGc();\n } else {\n this.#mutationCache.remove(this);\n }\n }\n }\n continue() {\n return this.#retryer?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before\n this.execute(this.state.variables);\n }\n async execute(variables) {\n this.#retryer = createRetryer({\n fn: () => {\n if (!this.options.mutationFn) {\n return Promise.reject(new Error(\"No mutationFn found\"));\n }\n return this.options.mutationFn(variables);\n },\n onFail: (failureCount, error) => {\n this.#dispatch({ type: \"failed\", failureCount, error });\n },\n onPause: () => {\n this.#dispatch({ type: \"pause\" });\n },\n onContinue: () => {\n this.#dispatch({ type: \"continue\" });\n },\n retry: this.options.retry ?? 0,\n retryDelay: this.options.retryDelay,\n networkMode: this.options.networkMode,\n canRun: () => this.#mutationCache.canRun(this)\n });\n const restored = this.state.status === \"pending\";\n const isPaused = !this.#retryer.canStart();\n try {\n if (!restored) {\n this.#dispatch({ type: \"pending\", variables, isPaused });\n await this.#mutationCache.config.onMutate?.(\n variables,\n this\n );\n const context = await this.options.onMutate?.(variables);\n if (context !== this.state.context) {\n this.#dispatch({\n type: \"pending\",\n context,\n variables,\n isPaused\n });\n }\n }\n const data = await this.#retryer.start();\n await this.#mutationCache.config.onSuccess?.(\n data,\n variables,\n this.state.context,\n this\n );\n await this.options.onSuccess?.(data, variables, this.state.context);\n await this.#mutationCache.config.onSettled?.(\n data,\n null,\n this.state.variables,\n this.state.context,\n this\n );\n await this.options.onSettled?.(data, null, variables, this.state.context);\n this.#dispatch({ type: \"success\", data });\n return data;\n } catch (error) {\n try {\n await this.#mutationCache.config.onError?.(\n error,\n variables,\n this.state.context,\n this\n );\n await this.options.onError?.(\n error,\n variables,\n this.state.context\n );\n await this.#mutationCache.config.onSettled?.(\n void 0,\n error,\n this.state.variables,\n this.state.context,\n this\n );\n await this.options.onSettled?.(\n void 0,\n error,\n variables,\n this.state.context\n );\n throw error;\n } finally {\n this.#dispatch({ type: \"error\", error });\n }\n } finally {\n this.#mutationCache.runNext(this);\n }\n }\n #dispatch(action) {\n const reducer = (state) => {\n switch (action.type) {\n case \"failed\":\n return {\n ...state,\n failureCount: action.failureCount,\n failureReason: action.error\n };\n case \"pause\":\n return {\n ...state,\n isPaused: true\n };\n case \"continue\":\n return {\n ...state,\n isPaused: false\n };\n case \"pending\":\n return {\n ...state,\n context: action.context,\n data: void 0,\n failureCount: 0,\n failureReason: null,\n error: null,\n isPaused: action.isPaused,\n status: \"pending\",\n variables: action.variables,\n submittedAt: Date.now()\n };\n case \"success\":\n return {\n ...state,\n data: action.data,\n failureCount: 0,\n failureReason: null,\n error: null,\n status: \"success\",\n isPaused: false\n };\n case \"error\":\n return {\n ...state,\n data: void 0,\n error: action.error,\n failureCount: state.failureCount + 1,\n failureReason: action.error,\n isPaused: false,\n status: \"error\"\n };\n }\n };\n this.state = reducer(this.state);\n notifyManager.batch(() => {\n this.#observers.forEach((observer) => {\n observer.onMutationUpdate(action);\n });\n this.#mutationCache.notify({\n mutation: this,\n type: \"updated\",\n action\n });\n });\n }\n};\nfunction getDefaultState() {\n return {\n context: void 0,\n data: void 0,\n error: null,\n failureCount: 0,\n failureReason: null,\n isPaused: false,\n status: \"idle\",\n variables: void 0,\n submittedAt: 0\n };\n}\nexport {\n Mutation,\n getDefaultState\n};\n//# sourceMappingURL=mutation.js.map","// src/mutationCache.ts\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Mutation } from \"./mutation.js\";\nimport { matchMutation, noop } from \"./utils.js\";\nimport { Subscribable } from \"./subscribable.js\";\nvar MutationCache = class extends Subscribable {\n constructor(config = {}) {\n super();\n this.config = config;\n this.#mutations = /* @__PURE__ */ new Set();\n this.#scopes = /* @__PURE__ */ new Map();\n this.#mutationId = 0;\n }\n #mutations;\n #scopes;\n #mutationId;\n build(client, options, state) {\n const mutation = new Mutation({\n mutationCache: this,\n mutationId: ++this.#mutationId,\n options: client.defaultMutationOptions(options),\n state\n });\n this.add(mutation);\n return mutation;\n }\n add(mutation) {\n this.#mutations.add(mutation);\n const scope = scopeFor(mutation);\n if (typeof scope === \"string\") {\n const scopedMutations = this.#scopes.get(scope);\n if (scopedMutations) {\n scopedMutations.push(mutation);\n } else {\n this.#scopes.set(scope, [mutation]);\n }\n }\n this.notify({ type: \"added\", mutation });\n }\n remove(mutation) {\n if (this.#mutations.delete(mutation)) {\n const scope = scopeFor(mutation);\n if (typeof scope === \"string\") {\n const scopedMutations = this.#scopes.get(scope);\n if (scopedMutations) {\n if (scopedMutations.length > 1) {\n const index = scopedMutations.indexOf(mutation);\n if (index !== -1) {\n scopedMutations.splice(index, 1);\n }\n } else if (scopedMutations[0] === mutation) {\n this.#scopes.delete(scope);\n }\n }\n }\n }\n this.notify({ type: \"removed\", mutation });\n }\n canRun(mutation) {\n const scope = scopeFor(mutation);\n if (typeof scope === \"string\") {\n const mutationsWithSameScope = this.#scopes.get(scope);\n const firstPendingMutation = mutationsWithSameScope?.find(\n (m) => m.state.status === \"pending\"\n );\n return !firstPendingMutation || firstPendingMutation === mutation;\n } else {\n return true;\n }\n }\n runNext(mutation) {\n const scope = scopeFor(mutation);\n if (typeof scope === \"string\") {\n const foundMutation = this.#scopes.get(scope)?.find((m) => m !== mutation && m.state.isPaused);\n return foundMutation?.continue() ?? Promise.resolve();\n } else {\n return Promise.resolve();\n }\n }\n clear() {\n notifyManager.batch(() => {\n this.#mutations.forEach((mutation) => {\n this.notify({ type: \"removed\", mutation });\n });\n this.#mutations.clear();\n this.#scopes.clear();\n });\n }\n getAll() {\n return Array.from(this.#mutations);\n }\n find(filters) {\n const defaultedFilters = { exact: true, ...filters };\n return this.getAll().find(\n (mutation) => matchMutation(defaultedFilters, mutation)\n );\n }\n findAll(filters = {}) {\n return this.getAll().filter((mutation) => matchMutation(filters, mutation));\n }\n notify(event) {\n notifyManager.batch(() => {\n this.listeners.forEach((listener) => {\n listener(event);\n });\n });\n }\n resumePausedMutations() {\n const pausedMutations = this.getAll().filter((x) => x.state.isPaused);\n return notifyManager.batch(\n () => Promise.all(\n pausedMutations.map((mutation) => mutation.continue().catch(noop))\n )\n );\n }\n};\nfunction scopeFor(mutation) {\n return mutation.options.scope?.id;\n}\nexport {\n MutationCache\n};\n//# sourceMappingURL=mutationCache.js.map","// src/infiniteQueryBehavior.ts\nimport { addToEnd, addToStart, ensureQueryFn } from \"./utils.js\";\nfunction infiniteQueryBehavior(pages) {\n return {\n onFetch: (context, query) => {\n const options = context.options;\n const direction = context.fetchOptions?.meta?.fetchMore?.direction;\n const oldPages = context.state.data?.pages || [];\n const oldPageParams = context.state.data?.pageParams || [];\n let result = { pages: [], pageParams: [] };\n let currentPage = 0;\n const fetchFn = async () => {\n let cancelled = false;\n const addSignalProperty = (object) => {\n Object.defineProperty(object, \"signal\", {\n enumerable: true,\n get: () => {\n if (context.signal.aborted) {\n cancelled = true;\n } else {\n context.signal.addEventListener(\"abort\", () => {\n cancelled = true;\n });\n }\n return context.signal;\n }\n });\n };\n const queryFn = ensureQueryFn(context.options, context.fetchOptions);\n const fetchPage = async (data, param, previous) => {\n if (cancelled) {\n return Promise.reject();\n }\n if (param == null && data.pages.length) {\n return Promise.resolve(data);\n }\n const queryFnContext = {\n client: context.client,\n queryKey: context.queryKey,\n pageParam: param,\n direction: previous ? \"backward\" : \"forward\",\n meta: context.options.meta\n };\n addSignalProperty(queryFnContext);\n const page = await queryFn(\n queryFnContext\n );\n const { maxPages } = context.options;\n const addTo = previous ? addToStart : addToEnd;\n return {\n pages: addTo(data.pages, page, maxPages),\n pageParams: addTo(data.pageParams, param, maxPages)\n };\n };\n if (direction && oldPages.length) {\n const previous = direction === \"backward\";\n const pageParamFn = previous ? getPreviousPageParam : getNextPageParam;\n const oldData = {\n pages: oldPages,\n pageParams: oldPageParams\n };\n const param = pageParamFn(options, oldData);\n result = await fetchPage(oldData, param, previous);\n } else {\n const remainingPages = pages ?? oldPages.length;\n do {\n const param = currentPage === 0 ? oldPageParams[0] ?? options.initialPageParam : getNextPageParam(options, result);\n if (currentPage > 0 && param == null) {\n break;\n }\n result = await fetchPage(result, param);\n currentPage++;\n } while (currentPage < remainingPages);\n }\n return result;\n };\n if (context.options.persister) {\n context.fetchFn = () => {\n return context.options.persister?.(\n fetchFn,\n {\n client: context.client,\n queryKey: context.queryKey,\n meta: context.options.meta,\n signal: context.signal\n },\n query\n );\n };\n } else {\n context.fetchFn = fetchFn;\n }\n }\n };\n}\nfunction getNextPageParam(options, { pages, pageParams }) {\n const lastIndex = pages.length - 1;\n return pages.length > 0 ? options.getNextPageParam(\n pages[lastIndex],\n pages,\n pageParams[lastIndex],\n pageParams\n ) : void 0;\n}\nfunction getPreviousPageParam(options, { pages, pageParams }) {\n return pages.length > 0 ? options.getPreviousPageParam?.(pages[0], pages, pageParams[0], pageParams) : void 0;\n}\nfunction hasNextPage(options, data) {\n if (!data) return false;\n return getNextPageParam(options, data) != null;\n}\nfunction hasPreviousPage(options, data) {\n if (!data || !options.getPreviousPageParam) return false;\n return getPreviousPageParam(options, data) != null;\n}\nexport {\n hasNextPage,\n hasPreviousPage,\n infiniteQueryBehavior\n};\n//# sourceMappingURL=infiniteQueryBehavior.js.map","// src/queryClient.ts\nimport {\n functionalUpdate,\n hashKey,\n hashQueryKeyByOptions,\n noop,\n partialMatchKey,\n resolveStaleTime,\n skipToken\n} from \"./utils.js\";\nimport { QueryCache } from \"./queryCache.js\";\nimport { MutationCache } from \"./mutationCache.js\";\nimport { focusManager } from \"./focusManager.js\";\nimport { onlineManager } from \"./onlineManager.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { infiniteQueryBehavior } from \"./infiniteQueryBehavior.js\";\nvar QueryClient = class {\n #queryCache;\n #mutationCache;\n #defaultOptions;\n #queryDefaults;\n #mutationDefaults;\n #mountCount;\n #unsubscribeFocus;\n #unsubscribeOnline;\n constructor(config = {}) {\n this.#queryCache = config.queryCache || new QueryCache();\n this.#mutationCache = config.mutationCache || new MutationCache();\n this.#defaultOptions = config.defaultOptions || {};\n this.#queryDefaults = /* @__PURE__ */ new Map();\n this.#mutationDefaults = /* @__PURE__ */ new Map();\n this.#mountCount = 0;\n }\n mount() {\n this.#mountCount++;\n if (this.#mountCount !== 1) return;\n this.#unsubscribeFocus = focusManager.subscribe(async (focused) => {\n if (focused) {\n await this.resumePausedMutations();\n this.#queryCache.onFocus();\n }\n });\n this.#unsubscribeOnline = onlineManager.subscribe(async (online) => {\n if (online) {\n await this.resumePausedMutations();\n this.#queryCache.onOnline();\n }\n });\n }\n unmount() {\n this.#mountCount--;\n if (this.#mountCount !== 0) return;\n this.#unsubscribeFocus?.();\n this.#unsubscribeFocus = void 0;\n this.#unsubscribeOnline?.();\n this.#unsubscribeOnline = void 0;\n }\n isFetching(filters) {\n return this.#queryCache.findAll({ ...filters, fetchStatus: \"fetching\" }).length;\n }\n isMutating(filters) {\n return this.#mutationCache.findAll({ ...filters, status: \"pending\" }).length;\n }\n /**\n * Imperative (non-reactive) way to retrieve data for a QueryKey.\n * Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.\n *\n * Hint: Do not use this function inside a component, because it won't receive updates.\n * Use `useQuery` to create a `QueryObserver` that subscribes to changes.\n */\n getQueryData(queryKey) {\n const options = this.defaultQueryOptions({ queryKey });\n return this.#queryCache.get(options.queryHash)?.state.data;\n }\n ensureQueryData(options) {\n const defaultedOptions = this.defaultQueryOptions(options);\n const query = this.#queryCache.build(this, defaultedOptions);\n const cachedData = query.state.data;\n if (cachedData === void 0) {\n return this.fetchQuery(options);\n }\n if (options.revalidateIfStale && query.isStaleByTime(resolveStaleTime(defaultedOptions.staleTime, query))) {\n void this.prefetchQuery(defaultedOptions);\n }\n return Promise.resolve(cachedData);\n }\n getQueriesData(filters) {\n return this.#queryCache.findAll(filters).map(({ queryKey, state }) => {\n const data = state.data;\n return [queryKey, data];\n });\n }\n setQueryData(queryKey, updater, options) {\n const defaultedOptions = this.defaultQueryOptions({ queryKey });\n const query = this.#queryCache.get(\n defaultedOptions.queryHash\n );\n const prevData = query?.state.data;\n const data = functionalUpdate(updater, prevData);\n if (data === void 0) {\n return void 0;\n }\n return this.#queryCache.build(this, defaultedOptions).setData(data, { ...options, manual: true });\n }\n setQueriesData(filters, updater, options) {\n return notifyManager.batch(\n () => this.#queryCache.findAll(filters).map(({ queryKey }) => [\n queryKey,\n this.setQueryData(queryKey, updater, options)\n ])\n );\n }\n getQueryState(queryKey) {\n const options = this.defaultQueryOptions({ queryKey });\n return this.#queryCache.get(\n options.queryHash\n )?.state;\n }\n removeQueries(filters) {\n const queryCache = this.#queryCache;\n notifyManager.batch(() => {\n queryCache.findAll(filters).forEach((query) => {\n queryCache.remove(query);\n });\n });\n }\n resetQueries(filters, options) {\n const queryCache = this.#queryCache;\n return notifyManager.batch(() => {\n queryCache.findAll(filters).forEach((query) => {\n query.reset();\n });\n return this.refetchQueries(\n {\n type: \"active\",\n ...filters\n },\n options\n );\n });\n }\n cancelQueries(filters, cancelOptions = {}) {\n const defaultedCancelOptions = { revert: true, ...cancelOptions };\n const promises = notifyManager.batch(\n () => this.#queryCache.findAll(filters).map((query) => query.cancel(defaultedCancelOptions))\n );\n return Promise.all(promises).then(noop).catch(noop);\n }\n invalidateQueries(filters, options = {}) {\n return notifyManager.batch(() => {\n this.#queryCache.findAll(filters).forEach((query) => {\n query.invalidate();\n });\n if (filters?.refetchType === \"none\") {\n return Promise.resolve();\n }\n return this.refetchQueries(\n {\n ...filters,\n type: filters?.refetchType ?? filters?.type ?? \"active\"\n },\n options\n );\n });\n }\n refetchQueries(filters, options = {}) {\n const fetchOptions = {\n ...options,\n cancelRefetch: options.cancelRefetch ?? true\n };\n const promises = notifyManager.batch(\n () => this.#queryCache.findAll(filters).filter((query) => !query.isDisabled()).map((query) => {\n let promise = query.fetch(void 0, fetchOptions);\n if (!fetchOptions.throwOnError) {\n promise = promise.catch(noop);\n }\n return query.state.fetchStatus === \"paused\" ? Promise.resolve() : promise;\n })\n );\n return Promise.all(promises).then(noop);\n }\n fetchQuery(options) {\n const defaultedOptions = this.defaultQueryOptions(options);\n if (defaultedOptions.retry === void 0) {\n defaultedOptions.retry = false;\n }\n const query = this.#queryCache.build(this, defaultedOptions);\n return query.isStaleByTime(\n resolveStaleTime(defaultedOptions.staleTime, query)\n ) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);\n }\n prefetchQuery(options) {\n return this.fetchQuery(options).then(noop).catch(noop);\n }\n fetchInfiniteQuery(options) {\n options.behavior = infiniteQueryBehavior(options.pages);\n return this.fetchQuery(options);\n }\n prefetchInfiniteQuery(options) {\n return this.fetchInfiniteQuery(options).then(noop).catch(noop);\n }\n ensureInfiniteQueryData(options) {\n options.behavior = infiniteQueryBehavior(options.pages);\n return this.ensureQueryData(options);\n }\n resumePausedMutations() {\n if (onlineManager.isOnline()) {\n return this.#mutationCache.resumePausedMutations();\n }\n return Promise.resolve();\n }\n getQueryCache() {\n return this.#queryCache;\n }\n getMutationCache() {\n return this.#mutationCache;\n }\n getDefaultOptions() {\n return this.#defaultOptions;\n }\n setDefaultOptions(options) {\n this.#defaultOptions = options;\n }\n setQueryDefaults(queryKey, options) {\n this.#queryDefaults.set(hashKey(queryKey), {\n queryKey,\n defaultOptions: options\n });\n }\n getQueryDefaults(queryKey) {\n const defaults = [...this.#queryDefaults.values()];\n const result = {};\n defaults.forEach((queryDefault) => {\n if (partialMatchKey(queryKey, queryDefault.queryKey)) {\n Object.assign(result, queryDefault.defaultOptions);\n }\n });\n return result;\n }\n setMutationDefaults(mutationKey, options) {\n this.#mutationDefaults.set(hashKey(mutationKey), {\n mutationKey,\n defaultOptions: options\n });\n }\n getMutationDefaults(mutationKey) {\n const defaults = [...this.#mutationDefaults.values()];\n const result = {};\n defaults.forEach((queryDefault) => {\n if (partialMatchKey(mutationKey, queryDefault.mutationKey)) {\n Object.assign(result, queryDefault.defaultOptions);\n }\n });\n return result;\n }\n defaultQueryOptions(options) {\n if (options._defaulted) {\n return options;\n }\n const defaultedOptions = {\n ...this.#defaultOptions.queries,\n ...this.getQueryDefaults(options.queryKey),\n ...options,\n _defaulted: true\n };\n if (!defaultedOptions.queryHash) {\n defaultedOptions.queryHash = hashQueryKeyByOptions(\n defaultedOptions.queryKey,\n defaultedOptions\n );\n }\n if (defaultedOptions.refetchOnReconnect === void 0) {\n defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== \"always\";\n }\n if (defaultedOptions.throwOnError === void 0) {\n defaultedOptions.throwOnError = !!defaultedOptions.suspense;\n }\n if (!defaultedOptions.networkMode && defaultedOptions.persister) {\n defaultedOptions.networkMode = \"offlineFirst\";\n }\n if (defaultedOptions.queryFn === skipToken) {\n defaultedOptions.enabled = false;\n }\n return defaultedOptions;\n }\n defaultMutationOptions(options) {\n if (options?._defaulted) {\n return options;\n }\n return {\n ...this.#defaultOptions.mutations,\n ...options?.mutationKey && this.getMutationDefaults(options.mutationKey),\n ...options,\n _defaulted: true\n };\n }\n clear() {\n this.#queryCache.clear();\n this.#mutationCache.clear();\n }\n};\nexport {\n QueryClient\n};\n//# sourceMappingURL=queryClient.js.map","// src/queryObserver.ts\nimport { focusManager } from \"./focusManager.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { fetchState } from \"./query.js\";\nimport { Subscribable } from \"./subscribable.js\";\nimport { pendingThenable } from \"./thenable.js\";\nimport {\n isServer,\n isValidTimeout,\n noop,\n replaceData,\n resolveEnabled,\n resolveStaleTime,\n shallowEqualObjects,\n timeUntilStale\n} from \"./utils.js\";\nvar QueryObserver = class extends Subscribable {\n constructor(client, options) {\n super();\n this.options = options;\n this.#client = client;\n this.#selectError = null;\n this.#currentThenable = pendingThenable();\n if (!this.options.experimental_prefetchInRender) {\n this.#currentThenable.reject(\n new Error(\"experimental_prefetchInRender feature flag is not enabled\")\n );\n }\n this.bindMethods();\n this.setOptions(options);\n }\n #client;\n #currentQuery = void 0;\n #currentQueryInitialState = void 0;\n #currentResult = void 0;\n #currentResultState;\n #currentResultOptions;\n #currentThenable;\n #selectError;\n #selectFn;\n #selectResult;\n // This property keeps track of the last query with defined data.\n // It will be used to pass the previous data and query to the placeholder function between renders.\n #lastQueryWithDefinedData;\n #staleTimeoutId;\n #refetchIntervalId;\n #currentRefetchInterval;\n #trackedProps = /* @__PURE__ */ new Set();\n bindMethods() {\n this.refetch = this.refetch.bind(this);\n }\n onSubscribe() {\n if (this.listeners.size === 1) {\n this.#currentQuery.addObserver(this);\n if (shouldFetchOnMount(this.#currentQuery, this.options)) {\n this.#executeFetch();\n } else {\n this.updateResult();\n }\n this.#updateTimers();\n }\n }\n onUnsubscribe() {\n if (!this.hasListeners()) {\n this.destroy();\n }\n }\n shouldFetchOnReconnect() {\n return shouldFetchOn(\n this.#currentQuery,\n this.options,\n this.options.refetchOnReconnect\n );\n }\n shouldFetchOnWindowFocus() {\n return shouldFetchOn(\n this.#currentQuery,\n this.options,\n this.options.refetchOnWindowFocus\n );\n }\n destroy() {\n this.listeners = /* @__PURE__ */ new Set();\n this.#clearStaleTimeout();\n this.#clearRefetchInterval();\n this.#currentQuery.removeObserver(this);\n }\n setOptions(options) {\n const prevOptions = this.options;\n const prevQuery = this.#currentQuery;\n this.options = this.#client.defaultQueryOptions(options);\n if (this.options.enabled !== void 0 && typeof this.options.enabled !== \"boolean\" && typeof this.options.enabled !== \"function\" && typeof resolveEnabled(this.options.enabled, this.#currentQuery) !== \"boolean\") {\n throw new Error(\n \"Expected enabled to be a boolean or a callback that returns a boolean\"\n );\n }\n this.#updateQuery();\n this.#currentQuery.setOptions(this.options);\n if (prevOptions._defaulted && !shallowEqualObjects(this.options, prevOptions)) {\n this.#client.getQueryCache().notify({\n type: \"observerOptionsUpdated\",\n query: this.#currentQuery,\n observer: this\n });\n }\n const mounted = this.hasListeners();\n if (mounted && shouldFetchOptionally(\n this.#currentQuery,\n prevQuery,\n this.options,\n prevOptions\n )) {\n this.#executeFetch();\n }\n this.updateResult();\n if (mounted && (this.#currentQuery !== prevQuery || resolveEnabled(this.options.enabled, this.#currentQuery) !== resolveEnabled(prevOptions.enabled, this.#currentQuery) || resolveStaleTime(this.options.staleTime, this.#currentQuery) !== resolveStaleTime(prevOptions.staleTime, this.#currentQuery))) {\n this.#updateStaleTimeout();\n }\n const nextRefetchInterval = this.#computeRefetchInterval();\n if (mounted && (this.#currentQuery !== prevQuery || resolveEnabled(this.options.enabled, this.#currentQuery) !== resolveEnabled(prevOptions.enabled, this.#currentQuery) || nextRefetchInterval !== this.#currentRefetchInterval)) {\n this.#updateRefetchInterval(nextRefetchInterval);\n }\n }\n getOptimisticResult(options) {\n const query = this.#client.getQueryCache().build(this.#client, options);\n const result = this.createResult(query, options);\n if (shouldAssignObserverCurrentProperties(this, result)) {\n this.#currentResult = result;\n this.#currentResultOptions = this.options;\n this.#currentResultState = this.#currentQuery.state;\n }\n return result;\n }\n getCurrentResult() {\n return this.#currentResult;\n }\n trackResult(result, onPropTracked) {\n const trackedResult = {};\n Object.keys(result).forEach((key) => {\n Object.defineProperty(trackedResult, key, {\n configurable: false,\n enumerable: true,\n get: () => {\n this.trackProp(key);\n onPropTracked?.(key);\n return result[key];\n }\n });\n });\n return trackedResult;\n }\n trackProp(key) {\n this.#trackedProps.add(key);\n }\n getCurrentQuery() {\n return this.#currentQuery;\n }\n refetch({ ...options } = {}) {\n return this.fetch({\n ...options\n });\n }\n fetchOptimistic(options) {\n const defaultedOptions = this.#client.defaultQueryOptions(options);\n const query = this.#client.getQueryCache().build(this.#client, defaultedOptions);\n return query.fetch().then(() => this.createResult(query, defaultedOptions));\n }\n fetch(fetchOptions) {\n return this.#executeFetch({\n ...fetchOptions,\n cancelRefetch: fetchOptions.cancelRefetch ?? true\n }).then(() => {\n this.updateResult();\n return this.#currentResult;\n });\n }\n #executeFetch(fetchOptions) {\n this.#updateQuery();\n let promise = this.#currentQuery.fetch(\n this.options,\n fetchOptions\n );\n if (!fetchOptions?.throwOnError) {\n promise = promise.catch(noop);\n }\n return promise;\n }\n #updateStaleTimeout() {\n this.#clearStaleTimeout();\n const staleTime = resolveStaleTime(\n this.options.staleTime,\n this.#currentQuery\n );\n if (isServer || this.#currentResult.isStale || !isValidTimeout(staleTime)) {\n return;\n }\n const time = timeUntilStale(this.#currentResult.dataUpdatedAt, staleTime);\n const timeout = time + 1;\n this.#staleTimeoutId = setTimeout(() => {\n if (!this.#currentResult.isStale) {\n this.updateResult();\n }\n }, timeout);\n }\n #computeRefetchInterval() {\n return (typeof this.options.refetchInterval === \"function\" ? this.options.refetchInterval(this.#currentQuery) : this.options.refetchInterval) ?? false;\n }\n #updateRefetchInterval(nextInterval) {\n this.#clearRefetchInterval();\n this.#currentRefetchInterval = nextInterval;\n if (isServer || resolveEnabled(this.options.enabled, this.#currentQuery) === false || !isValidTimeout(this.#currentRefetchInterval) || this.#currentRefetchInterval === 0) {\n return;\n }\n this.#refetchIntervalId = setInterval(() => {\n if (this.options.refetchIntervalInBackground || focusManager.isFocused()) {\n this.#executeFetch();\n }\n }, this.#currentRefetchInterval);\n }\n #updateTimers() {\n this.#updateStaleTimeout();\n this.#updateRefetchInterval(this.#computeRefetchInterval());\n }\n #clearStaleTimeout() {\n if (this.#staleTimeoutId) {\n clearTimeout(this.#staleTimeoutId);\n this.#staleTimeoutId = void 0;\n }\n }\n #clearRefetchInterval() {\n if (this.#refetchIntervalId) {\n clearInterval(this.#refetchIntervalId);\n this.#refetchIntervalId = void 0;\n }\n }\n createResult(query, options) {\n const prevQuery = this.#currentQuery;\n const prevOptions = this.options;\n const prevResult = this.#currentResult;\n const prevResultState = this.#currentResultState;\n const prevResultOptions = this.#currentResultOptions;\n const queryChange = query !== prevQuery;\n const queryInitialState = queryChange ? query.state : this.#currentQueryInitialState;\n const { state } = query;\n let newState = { ...state };\n let isPlaceholderData = false;\n let data;\n if (options._optimisticResults) {\n const mounted = this.hasListeners();\n const fetchOnMount = !mounted && shouldFetchOnMount(query, options);\n const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);\n if (fetchOnMount || fetchOptionally) {\n newState = {\n ...newState,\n ...fetchState(state.data, query.options)\n };\n }\n if (options._optimisticResults === \"isRestoring\") {\n newState.fetchStatus = \"idle\";\n }\n }\n let { error, errorUpdatedAt, status } = newState;\n if (options.select && newState.data !== void 0) {\n if (prevResult && newState.data === prevResultState?.data && options.select === this.#selectFn) {\n data = this.#selectResult;\n } else {\n try {\n this.#selectFn = options.select;\n data = options.select(newState.data);\n data = replaceData(prevResult?.data, data, options);\n this.#selectResult = data;\n this.#selectError = null;\n } catch (selectError) {\n this.#selectError = selectError;\n }\n }\n } else {\n data = newState.data;\n }\n if (options.placeholderData !== void 0 && data === void 0 && status === \"pending\") {\n let placeholderData;\n if (prevResult?.isPlaceholderData && options.placeholderData === prevResultOptions?.placeholderData) {\n placeholderData = prevResult.data;\n } else {\n placeholderData = typeof options.placeholderData === \"function\" ? options.placeholderData(\n this.#lastQueryWithDefinedData?.state.data,\n this.#lastQueryWithDefinedData\n ) : options.placeholderData;\n if (options.select && placeholderData !== void 0) {\n try {\n placeholderData = options.select(placeholderData);\n this.#selectError = null;\n } catch (selectError) {\n this.#selectError = selectError;\n }\n }\n }\n if (placeholderData !== void 0) {\n status = \"success\";\n data = replaceData(\n prevResult?.data,\n placeholderData,\n options\n );\n isPlaceholderData = true;\n }\n }\n if (this.#selectError) {\n error = this.#selectError;\n data = this.#selectResult;\n errorUpdatedAt = Date.now();\n status = \"error\";\n }\n const isFetching = newState.fetchStatus === \"fetching\";\n const isPending = status === \"pending\";\n const isError = status === \"error\";\n const isLoading = isPending && isFetching;\n const hasData = data !== void 0;\n const result = {\n status,\n fetchStatus: newState.fetchStatus,\n isPending,\n isSuccess: status === \"success\",\n isError,\n isInitialLoading: isLoading,\n isLoading,\n data,\n dataUpdatedAt: newState.dataUpdatedAt,\n error,\n errorUpdatedAt,\n failureCount: newState.fetchFailureCount,\n failureReason: newState.fetchFailureReason,\n errorUpdateCount: newState.errorUpdateCount,\n isFetched: newState.dataUpdateCount > 0 || newState.errorUpdateCount > 0,\n isFetchedAfterMount: newState.dataUpdateCount > queryInitialState.dataUpdateCount || newState.errorUpdateCount > queryInitialState.errorUpdateCount,\n isFetching,\n isRefetching: isFetching && !isPending,\n isLoadingError: isError && !hasData,\n isPaused: newState.fetchStatus === \"paused\",\n isPlaceholderData,\n isRefetchError: isError && hasData,\n isStale: isStale(query, options),\n refetch: this.refetch,\n promise: this.#currentThenable\n };\n const nextResult = result;\n if (this.options.experimental_prefetchInRender) {\n const finalizeThenableIfPossible = (thenable) => {\n if (nextResult.status === \"error\") {\n thenable.reject(nextResult.error);\n } else if (nextResult.data !== void 0) {\n thenable.resolve(nextResult.data);\n }\n };\n const recreateThenable = () => {\n const pending = this.#currentThenable = nextResult.promise = pendingThenable();\n finalizeThenableIfPossible(pending);\n };\n const prevThenable = this.#currentThenable;\n switch (prevThenable.status) {\n case \"pending\":\n if (query.queryHash === prevQuery.queryHash) {\n finalizeThenableIfPossible(prevThenable);\n }\n break;\n case \"fulfilled\":\n if (nextResult.status === \"error\" || nextResult.data !== prevThenable.value) {\n recreateThenable();\n }\n break;\n case \"rejected\":\n if (nextResult.status !== \"error\" || nextResult.error !== prevThenable.reason) {\n recreateThenable();\n }\n break;\n }\n }\n return nextResult;\n }\n updateResult() {\n const prevResult = this.#currentResult;\n const nextResult = this.createResult(this.#currentQuery, this.options);\n this.#currentResultState = this.#currentQuery.state;\n this.#currentResultOptions = this.options;\n if (this.#currentResultState.data !== void 0) {\n this.#lastQueryWithDefinedData = this.#currentQuery;\n }\n if (shallowEqualObjects(nextResult, prevResult)) {\n return;\n }\n this.#currentResult = nextResult;\n const shouldNotifyListeners = () => {\n if (!prevResult) {\n return true;\n }\n const { notifyOnChangeProps } = this.options;\n const notifyOnChangePropsValue = typeof notifyOnChangeProps === \"function\" ? notifyOnChangeProps() : notifyOnChangeProps;\n if (notifyOnChangePropsValue === \"all\" || !notifyOnChangePropsValue && !this.#trackedProps.size) {\n return true;\n }\n const includedProps = new Set(\n notifyOnChangePropsValue ?? this.#trackedProps\n );\n if (this.options.throwOnError) {\n includedProps.add(\"error\");\n }\n return Object.keys(this.#currentResult).some((key) => {\n const typedKey = key;\n const changed = this.#currentResult[typedKey] !== prevResult[typedKey];\n return changed && includedProps.has(typedKey);\n });\n };\n this.#notify({ listeners: shouldNotifyListeners() });\n }\n #updateQuery() {\n const query = this.#client.getQueryCache().build(this.#client, this.options);\n if (query === this.#currentQuery) {\n return;\n }\n const prevQuery = this.#currentQuery;\n this.#currentQuery = query;\n this.#currentQueryInitialState = query.state;\n if (this.hasListeners()) {\n prevQuery?.removeObserver(this);\n query.addObserver(this);\n }\n }\n onQueryUpdate() {\n this.updateResult();\n if (this.hasListeners()) {\n this.#updateTimers();\n }\n }\n #notify(notifyOptions) {\n notifyManager.batch(() => {\n if (notifyOptions.listeners) {\n this.listeners.forEach((listener) => {\n listener(this.#currentResult);\n });\n }\n this.#client.getQueryCache().notify({\n query: this.#currentQuery,\n type: \"observerResultsUpdated\"\n });\n });\n }\n};\nfunction shouldLoadOnMount(query, options) {\n return resolveEnabled(options.enabled, query) !== false && query.state.data === void 0 && !(query.state.status === \"error\" && options.retryOnMount === false);\n}\nfunction shouldFetchOnMount(query, options) {\n return shouldLoadOnMount(query, options) || query.state.data !== void 0 && shouldFetchOn(query, options, options.refetchOnMount);\n}\nfunction shouldFetchOn(query, options, field) {\n if (resolveEnabled(options.enabled, query) !== false) {\n const value = typeof field === \"function\" ? field(query) : field;\n return value === \"always\" || value !== false && isStale(query, options);\n }\n return false;\n}\nfunction shouldFetchOptionally(query, prevQuery, options, prevOptions) {\n return (query !== prevQuery || resolveEnabled(prevOptions.enabled, query) === false) && (!options.suspense || query.state.status !== \"error\") && isStale(query, options);\n}\nfunction isStale(query, options) {\n return resolveEnabled(options.enabled, query) !== false && query.isStaleByTime(resolveStaleTime(options.staleTime, query));\n}\nfunction shouldAssignObserverCurrentProperties(observer, optimisticResult) {\n if (!shallowEqualObjects(observer.getCurrentResult(), optimisticResult)) {\n return true;\n }\n return false;\n}\nexport {\n QueryObserver\n};\n//# sourceMappingURL=queryObserver.js.map","// src/mutationObserver.ts\nimport { getDefaultState } from \"./mutation.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Subscribable } from \"./subscribable.js\";\nimport { hashKey, shallowEqualObjects } from \"./utils.js\";\nvar MutationObserver = class extends Subscribable {\n #client;\n #currentResult = void 0;\n #currentMutation;\n #mutateOptions;\n constructor(client, options) {\n super();\n this.#client = client;\n this.setOptions(options);\n this.bindMethods();\n this.#updateResult();\n }\n bindMethods() {\n this.mutate = this.mutate.bind(this);\n this.reset = this.reset.bind(this);\n }\n setOptions(options) {\n const prevOptions = this.options;\n this.options = this.#client.defaultMutationOptions(options);\n if (!shallowEqualObjects(this.options, prevOptions)) {\n this.#client.getMutationCache().notify({\n type: \"observerOptionsUpdated\",\n mutation: this.#currentMutation,\n observer: this\n });\n }\n if (prevOptions?.mutationKey && this.options.mutationKey && hashKey(prevOptions.mutationKey) !== hashKey(this.options.mutationKey)) {\n this.reset();\n } else if (this.#currentMutation?.state.status === \"pending\") {\n this.#currentMutation.setOptions(this.options);\n }\n }\n onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#currentMutation?.removeObserver(this);\n }\n }\n onMutationUpdate(action) {\n this.#updateResult();\n this.#notify(action);\n }\n getCurrentResult() {\n return this.#currentResult;\n }\n reset() {\n this.#currentMutation?.removeObserver(this);\n this.#currentMutation = void 0;\n this.#updateResult();\n this.#notify();\n }\n mutate(variables, options) {\n this.#mutateOptions = options;\n this.#currentMutation?.removeObserver(this);\n this.#currentMutation = this.#client.getMutationCache().build(this.#client, this.options);\n this.#currentMutation.addObserver(this);\n return this.#currentMutation.execute(variables);\n }\n #updateResult() {\n const state = this.#currentMutation?.state ?? getDefaultState();\n this.#currentResult = {\n ...state,\n isPending: state.status === \"pending\",\n isSuccess: state.status === \"success\",\n isError: state.status === \"error\",\n isIdle: state.status === \"idle\",\n mutate: this.mutate,\n reset: this.reset\n };\n }\n #notify(action) {\n notifyManager.batch(() => {\n if (this.#mutateOptions && this.hasListeners()) {\n const variables = this.#currentResult.variables;\n const context = this.#currentResult.context;\n if (action?.type === \"success\") {\n this.#mutateOptions.onSuccess?.(action.data, variables, context);\n this.#mutateOptions.onSettled?.(action.data, null, variables, context);\n } else if (action?.type === \"error\") {\n this.#mutateOptions.onError?.(action.error, variables, context);\n this.#mutateOptions.onSettled?.(\n void 0,\n action.error,\n variables,\n context\n );\n }\n }\n this.listeners.forEach((listener) => {\n listener(this.#currentResult);\n });\n });\n }\n};\nexport {\n MutationObserver\n};\n//# sourceMappingURL=mutationObserver.js.map","\"use client\";\n\n// src/QueryClientProvider.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nvar QueryClientContext = React.createContext(\n void 0\n);\nvar useQueryClient = (queryClient) => {\n const client = React.useContext(QueryClientContext);\n if (queryClient) {\n return queryClient;\n }\n if (!client) {\n throw new Error(\"No QueryClient set, use QueryClientProvider to set one\");\n }\n return client;\n};\nvar QueryClientProvider = ({\n client,\n children\n}) => {\n React.useEffect(() => {\n client.mount();\n return () => {\n client.unmount();\n };\n }, [client]);\n return /* @__PURE__ */ jsx(QueryClientContext.Provider, { value: client, children });\n};\nexport {\n QueryClientContext,\n QueryClientProvider,\n useQueryClient\n};\n//# sourceMappingURL=QueryClientProvider.js.map","\"use client\";\n\n// src/isRestoring.ts\nimport * as React from \"react\";\nvar IsRestoringContext = React.createContext(false);\nvar useIsRestoring = () => React.useContext(IsRestoringContext);\nvar IsRestoringProvider = IsRestoringContext.Provider;\nexport {\n IsRestoringProvider,\n useIsRestoring\n};\n//# sourceMappingURL=isRestoring.js.map","\"use client\";\n\n// src/QueryErrorResetBoundary.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createValue() {\n let isReset = false;\n return {\n clearReset: () => {\n isReset = false;\n },\n reset: () => {\n isReset = true;\n },\n isReset: () => {\n return isReset;\n }\n };\n}\nvar QueryErrorResetBoundaryContext = React.createContext(createValue());\nvar useQueryErrorResetBoundary = () => React.useContext(QueryErrorResetBoundaryContext);\nvar QueryErrorResetBoundary = ({\n children\n}) => {\n const [value] = React.useState(() => createValue());\n return /* @__PURE__ */ jsx(QueryErrorResetBoundaryContext.Provider, { value, children: typeof children === \"function\" ? children(value) : children });\n};\nexport {\n QueryErrorResetBoundary,\n useQueryErrorResetBoundary\n};\n//# sourceMappingURL=QueryErrorResetBoundary.js.map","// src/utils.ts\nfunction shouldThrowError(throwError, params) {\n if (typeof throwError === \"function\") {\n return throwError(...params);\n }\n return !!throwError;\n}\nfunction noop() {\n}\nexport {\n noop,\n shouldThrowError\n};\n//# sourceMappingURL=utils.js.map","\"use client\";\n\n// src/errorBoundaryUtils.ts\nimport * as React from \"react\";\nimport { shouldThrowError } from \"./utils.js\";\nvar ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {\n if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {\n if (!errorResetBoundary.isReset()) {\n options.retryOnMount = false;\n }\n }\n};\nvar useClearResetErrorBoundary = (errorResetBoundary) => {\n React.useEffect(() => {\n errorResetBoundary.clearReset();\n }, [errorResetBoundary]);\n};\nvar getHasError = ({\n result,\n errorResetBoundary,\n throwOnError,\n query,\n suspense\n}) => {\n return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));\n};\nexport {\n ensurePreventErrorBoundaryRetry,\n getHasError,\n useClearResetErrorBoundary\n};\n//# sourceMappingURL=errorBoundaryUtils.js.map","// src/suspense.ts\nvar defaultThrowOnError = (_error, query) => query.state.data === void 0;\nvar ensureSuspenseTimers = (defaultedOptions) => {\n const originalStaleTime = defaultedOptions.staleTime;\n if (defaultedOptions.suspense) {\n defaultedOptions.staleTime = typeof originalStaleTime === \"function\" ? (...args) => Math.max(originalStaleTime(...args), 1e3) : Math.max(originalStaleTime ?? 1e3, 1e3);\n if (typeof defaultedOptions.gcTime === \"number\") {\n defaultedOptions.gcTime = Math.max(defaultedOptions.gcTime, 1e3);\n }\n }\n};\nvar willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring;\nvar shouldSuspend = (defaultedOptions, result) => defaultedOptions?.suspense && result.isPending;\nvar fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {\n errorResetBoundary.clearReset();\n});\nexport {\n defaultThrowOnError,\n ensureSuspenseTimers,\n fetchOptimistic,\n shouldSuspend,\n willFetch\n};\n//# sourceMappingURL=suspense.js.map","\"use client\";\n\n// src/useBaseQuery.ts\nimport * as React from \"react\";\nimport { isServer, notifyManager } from \"@tanstack/query-core\";\nimport { useQueryClient } from \"./QueryClientProvider.js\";\nimport { useQueryErrorResetBoundary } from \"./QueryErrorResetBoundary.js\";\nimport {\n ensurePreventErrorBoundaryRetry,\n getHasError,\n useClearResetErrorBoundary\n} from \"./errorBoundaryUtils.js\";\nimport { useIsRestoring } from \"./isRestoring.js\";\nimport {\n ensureSuspenseTimers,\n fetchOptimistic,\n shouldSuspend,\n willFetch\n} from \"./suspense.js\";\nimport { noop } from \"./utils.js\";\nfunction useBaseQuery(options, Observer, queryClient) {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof options !== \"object\" || Array.isArray(options)) {\n throw new Error(\n 'Bad argument type. Starting with v5, only the \"Object\" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'\n );\n }\n }\n const client = useQueryClient(queryClient);\n const isRestoring = useIsRestoring();\n const errorResetBoundary = useQueryErrorResetBoundary();\n const defaultedOptions = client.defaultQueryOptions(options);\n client.getDefaultOptions().queries?._experimental_beforeQuery?.(\n defaultedOptions\n );\n if (process.env.NODE_ENV !== \"production\") {\n if (!defaultedOptions.queryFn) {\n console.error(\n `[${defaultedOptions.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`\n );\n }\n }\n defaultedOptions._optimisticResults = isRestoring ? \"isRestoring\" : \"optimistic\";\n ensureSuspenseTimers(defaultedOptions);\n ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary);\n useClearResetErrorBoundary(errorResetBoundary);\n const isNewCacheEntry = !client.getQueryCache().get(defaultedOptions.queryHash);\n const [observer] = React.useState(\n () => new Observer(\n client,\n defaultedOptions\n )\n );\n const result = observer.getOptimisticResult(defaultedOptions);\n const shouldSubscribe = !isRestoring && options.subscribed !== false;\n React.useSyncExternalStore(\n React.useCallback(\n (onStoreChange) => {\n const unsubscribe = shouldSubscribe ? observer.subscribe(notifyManager.batchCalls(onStoreChange)) : noop;\n observer.updateResult();\n return unsubscribe;\n },\n [observer, shouldSubscribe]\n ),\n () => observer.getCurrentResult(),\n () => observer.getCurrentResult()\n );\n React.useEffect(() => {\n observer.setOptions(defaultedOptions);\n }, [defaultedOptions, observer]);\n if (shouldSuspend(defaultedOptions, result)) {\n throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary);\n }\n if (getHasError({\n result,\n errorResetBoundary,\n throwOnError: defaultedOptions.throwOnError,\n query: client.getQueryCache().get(defaultedOptions.queryHash),\n suspense: defaultedOptions.suspense\n })) {\n throw result.error;\n }\n ;\n client.getDefaultOptions().queries?._experimental_afterQuery?.(\n defaultedOptions,\n result\n );\n if (defaultedOptions.experimental_prefetchInRender && !isServer && willFetch(result, isRestoring)) {\n const promise = isNewCacheEntry ? (\n // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted\n fetchOptimistic(defaultedOptions, observer, errorResetBoundary)\n ) : (\n // subscribe to the \"cache promise\" so that we can finalize the currentThenable once data comes in\n client.getQueryCache().get(defaultedOptions.queryHash)?.promise\n );\n promise?.catch(noop).finally(() => {\n observer.updateResult();\n });\n }\n return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;\n}\nexport {\n useBaseQuery\n};\n//# sourceMappingURL=useBaseQuery.js.map","\"use client\";\n\n// src/useQuery.ts\nimport { QueryObserver } from \"@tanstack/query-core\";\nimport { useBaseQuery } from \"./useBaseQuery.js\";\nfunction useQuery(options, queryClient) {\n return useBaseQuery(options, QueryObserver, queryClient);\n}\nexport {\n useQuery\n};\n//# sourceMappingURL=useQuery.js.map","\"use client\";\n\n// src/useMutation.ts\nimport * as React from \"react\";\nimport { MutationObserver, notifyManager } from \"@tanstack/query-core\";\nimport { useQueryClient } from \"./QueryClientProvider.js\";\nimport { noop, shouldThrowError } from \"./utils.js\";\nfunction useMutation(options, queryClient) {\n const client = useQueryClient(queryClient);\n const [observer] = React.useState(\n () => new MutationObserver(\n client,\n options\n )\n );\n React.useEffect(() => {\n observer.setOptions(options);\n }, [observer, options]);\n const result = React.useSyncExternalStore(\n React.useCallback(\n (onStoreChange) => observer.subscribe(notifyManager.batchCalls(onStoreChange)),\n [observer]\n ),\n () => observer.getCurrentResult(),\n () => observer.getCurrentResult()\n );\n const mutate = React.useCallback(\n (variables, mutateOptions) => {\n observer.mutate(variables, mutateOptions).catch(noop);\n },\n [observer]\n );\n if (result.error && shouldThrowError(observer.options.throwOnError, [result.error])) {\n throw result.error;\n }\n return { ...result, mutate, mutateAsync: result.mutate };\n}\nexport {\n useMutation\n};\n//# sourceMappingURL=useMutation.js.map","\"use client\";\n\n// src/index.ts\nimport * as Devtools from \"./ReactQueryDevtools.js\";\nimport * as DevtoolsPanel from \"./ReactQueryDevtoolsPanel.js\";\nvar ReactQueryDevtools2 = process.env.NODE_ENV !== \"development\" ? function() {\n return null;\n} : Devtools.ReactQueryDevtools;\nvar ReactQueryDevtoolsPanel2 = process.env.NODE_ENV !== \"development\" ? function() {\n return null;\n} : DevtoolsPanel.ReactQueryDevtoolsPanel;\nexport {\n ReactQueryDevtools2 as ReactQueryDevtools,\n ReactQueryDevtoolsPanel2 as ReactQueryDevtoolsPanel\n};\n//# sourceMappingURL=index.js.map","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GlobalStyles as SystemGlobalStyles } from '@mui/system';\nimport defaultTheme from \"../styles/defaultTheme.js\";\nimport THEME_ID from \"../styles/identifier.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GlobalStyles(props) {\n return /*#__PURE__*/_jsx(SystemGlobalStyles, {\n ...props,\n defaultTheme: defaultTheme,\n themeId: THEME_ID\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GlobalStyles.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The styles you want to apply globally.\n */\n styles: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.array, PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.string, PropTypes.bool])\n} : void 0;\nexport default GlobalStyles;","import * as React from 'react';\nimport { extendSxProp } from '@mui/system/styleFunctionSx';\nimport useTheme from \"../styles/useTheme.js\";\nimport GlobalStyles from \"../GlobalStyles/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport { css, keyframes } from '@mui/system';\nexport { default as styled } from \"../styles/styled.js\";\nexport function globalCss(styles) {\n return function GlobalStylesWrapper(props) {\n return (\n /*#__PURE__*/\n // Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value.\n _jsx(GlobalStyles, {\n styles: typeof styles === 'function' ? theme => styles({\n theme,\n ...props\n }) : styles\n })\n );\n };\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function internal_createExtendSxProp() {\n return extendSxProp;\n}\nexport { useTheme };","import { unstable_memoTheme } from '@mui/system';\nconst memoTheme = unstable_memoTheme;\nexport default memoTheme;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport SystemDefaultPropsProvider, { useDefaultProps as useSystemDefaultProps } from '@mui/system/DefaultPropsProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction DefaultPropsProvider(props) {\n return /*#__PURE__*/_jsx(SystemDefaultPropsProvider, {\n ...props\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? DefaultPropsProvider.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * @ignore\n */\n value: PropTypes.object.isRequired\n} : void 0;\nexport default DefaultPropsProvider;\nexport function useDefaultProps(params) {\n return useSystemDefaultProps(params);\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSvgIconUtilityClass(slot) {\n return generateUtilityClass('MuiSvgIcon', slot);\n}\nconst svgIconClasses = generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);\nexport default svgIconClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from \"../utils/capitalize.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getSvgIconUtilityClass } from \"./svgIconClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n color,\n fontSize,\n classes\n } = ownerState;\n const slots = {\n root: ['root', color !== 'inherit' && `color${capitalize(color)}`, `fontSize${capitalize(fontSize)}`]\n };\n return composeClasses(slots, getSvgIconUtilityClass, classes);\n};\nconst SvgIconRoot = styled('svg', {\n name: 'MuiSvgIcon',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.color !== 'inherit' && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n userSelect: 'none',\n width: '1em',\n height: '1em',\n display: 'inline-block',\n flexShrink: 0,\n transition: theme.transitions?.create?.('fill', {\n duration: (theme.vars ?? theme).transitions?.duration?.shorter\n }),\n variants: [{\n props: props => !props.hasSvgAsChild,\n style: {\n // the <svg> will define the property that has `currentColor`\n // for example heroicons uses fill=\"none\" and stroke=\"currentColor\"\n fill: 'currentColor'\n }\n }, {\n props: {\n fontSize: 'inherit'\n },\n style: {\n fontSize: 'inherit'\n }\n }, {\n props: {\n fontSize: 'small'\n },\n style: {\n fontSize: theme.typography?.pxToRem?.(20) || '1.25rem'\n }\n }, {\n props: {\n fontSize: 'medium'\n },\n style: {\n fontSize: theme.typography?.pxToRem?.(24) || '1.5rem'\n }\n }, {\n props: {\n fontSize: 'large'\n },\n style: {\n fontSize: theme.typography?.pxToRem?.(35) || '2.1875rem'\n }\n },\n // TODO v5 deprecate color prop, v6 remove for sx\n ...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color]) => ({\n props: {\n color\n },\n style: {\n color: (theme.vars ?? theme).palette?.[color]?.main\n }\n })), {\n props: {\n color: 'action'\n },\n style: {\n color: (theme.vars ?? theme).palette?.action?.active\n }\n }, {\n props: {\n color: 'disabled'\n },\n style: {\n color: (theme.vars ?? theme).palette?.action?.disabled\n }\n }, {\n props: {\n color: 'inherit'\n },\n style: {\n color: undefined\n }\n }]\n})));\nconst SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiSvgIcon'\n });\n const {\n children,\n className,\n color = 'inherit',\n component = 'svg',\n fontSize = 'medium',\n htmlColor,\n inheritViewBox = false,\n titleAccess,\n viewBox = '0 0 24 24',\n ...other\n } = props;\n const hasSvgAsChild = /*#__PURE__*/React.isValidElement(children) && children.type === 'svg';\n const ownerState = {\n ...props,\n color,\n component,\n fontSize,\n instanceFontSize: inProps.fontSize,\n inheritViewBox,\n viewBox,\n hasSvgAsChild\n };\n const more = {};\n if (!inheritViewBox) {\n more.viewBox = viewBox;\n }\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(SvgIconRoot, {\n as: component,\n className: clsx(classes.root, className),\n focusable: \"false\",\n color: htmlColor,\n \"aria-hidden\": titleAccess ? undefined : true,\n role: titleAccess ? 'img' : undefined,\n ref: ref,\n ...more,\n ...other,\n ...(hasSvgAsChild && children.props),\n ownerState: ownerState,\n children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /*#__PURE__*/_jsx(\"title\", {\n children: titleAccess\n }) : null]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? SvgIcon.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Node passed into the SVG element.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * You can use the `htmlColor` prop to apply a color attribute to the SVG element.\n * @default 'inherit'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'action', 'disabled', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.\n * @default 'medium'\n */\n fontSize: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'large', 'medium', 'small']), PropTypes.string]),\n /**\n * Applies a color attribute to the SVG element.\n */\n htmlColor: PropTypes.string,\n /**\n * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`\n * prop will be ignored.\n * Useful when you want to reference a custom `component` and have `SvgIcon` pass that\n * `component`'s viewBox to the root node.\n * @default false\n */\n inheritViewBox: PropTypes.bool,\n /**\n * The shape-rendering attribute. The behavior of the different options is described on the\n * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering).\n * If you are having issues with blurry icons you should investigate this prop.\n */\n shapeRendering: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Provides a human-readable title for the element that contains it.\n * https://www.w3.org/TR/SVG-access/#Equivalent\n */\n titleAccess: PropTypes.string,\n /**\n * Allows you to redefine what the coordinates without units mean inside an SVG element.\n * For example, if the SVG element is 500 (width) by 200 (height),\n * and you pass viewBox=\"0 0 50 20\",\n * this means that the coordinates inside the SVG will go from the top left corner (0,0)\n * to bottom right (50,20) and each unit will be worth 10px.\n * @default '0 0 24 24'\n */\n viewBox: PropTypes.string\n} : void 0;\nSvgIcon.muiName = 'SvgIcon';\nexport default SvgIcon;","'use client';\n\nimport * as React from 'react';\nimport SvgIcon from \"../SvgIcon/index.js\";\n\n/**\n * Private module reserved for @mui packages.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createSvgIcon(path, displayName) {\n function Component(props, ref) {\n return /*#__PURE__*/_jsx(SvgIcon, {\n \"data-testid\": process.env.NODE_ENV !== 'production' ? `${displayName}Icon` : undefined,\n ref: ref,\n ...props,\n children: path\n });\n }\n if (process.env.NODE_ENV !== 'production') {\n // Need to set `displayName` on the inner component for React.memo.\n // React prior to 16.14 ignores `displayName` on the wrapper.\n Component.displayName = `${displayName}Icon`;\n }\n Component.muiName = SvgIcon.muiName;\n return /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(Component));\n}","import clsx from 'clsx';\n\n// Brought from [Base UI](https://github.com/mui/base-ui/blob/master/packages/react/src/merge-props/mergeProps.ts#L119)\n// Use it directly from Base UI once it's a package dependency.\nfunction isEventHandler(key, value) {\n // This approach is more efficient than using a regex.\n const thirdCharCode = key.charCodeAt(2);\n return key[0] === 'o' && key[1] === 'n' && thirdCharCode >= 65 /* A */ && thirdCharCode <= 90 /* Z */ && typeof value === 'function';\n}\nexport default function mergeSlotProps(externalSlotProps, defaultSlotProps) {\n if (!externalSlotProps) {\n return defaultSlotProps;\n }\n function extractHandlers(externalSlotPropsValue, defaultSlotPropsValue) {\n const handlers = {};\n Object.keys(defaultSlotPropsValue).forEach(key => {\n if (isEventHandler(key, defaultSlotPropsValue[key]) && typeof externalSlotPropsValue[key] === 'function') {\n // only compose the handlers if both default and external slot props match the event handler\n handlers[key] = (...args) => {\n externalSlotPropsValue[key](...args);\n defaultSlotPropsValue[key](...args);\n };\n }\n });\n return handlers;\n }\n if (typeof externalSlotProps === 'function' || typeof defaultSlotProps === 'function') {\n return ownerState => {\n const defaultSlotPropsValue = typeof defaultSlotProps === 'function' ? defaultSlotProps(ownerState) : defaultSlotProps;\n const externalSlotPropsValue = typeof externalSlotProps === 'function' ? externalSlotProps({\n ...ownerState,\n ...defaultSlotPropsValue\n }) : externalSlotProps;\n const className = clsx(ownerState?.className, defaultSlotPropsValue?.className, externalSlotPropsValue?.className);\n const handlers = extractHandlers(externalSlotPropsValue, defaultSlotPropsValue);\n return {\n ...defaultSlotPropsValue,\n ...externalSlotPropsValue,\n ...handlers,\n ...(!!className && {\n className\n }),\n ...(defaultSlotPropsValue?.style && externalSlotPropsValue?.style && {\n style: {\n ...defaultSlotPropsValue.style,\n ...externalSlotPropsValue.style\n }\n }),\n ...(defaultSlotPropsValue?.sx && externalSlotPropsValue?.sx && {\n sx: [...(Array.isArray(defaultSlotPropsValue.sx) ? defaultSlotPropsValue.sx : [defaultSlotPropsValue.sx]), ...(Array.isArray(externalSlotPropsValue.sx) ? externalSlotPropsValue.sx : [externalSlotPropsValue.sx])]\n })\n };\n };\n }\n const typedDefaultSlotProps = defaultSlotProps;\n const handlers = extractHandlers(externalSlotProps, typedDefaultSlotProps);\n const className = clsx(typedDefaultSlotProps?.className, externalSlotProps?.className);\n return {\n ...defaultSlotProps,\n ...externalSlotProps,\n ...handlers,\n ...(!!className && {\n className\n }),\n ...(typedDefaultSlotProps?.style && externalSlotProps?.style && {\n style: {\n ...typedDefaultSlotProps.style,\n ...externalSlotProps.style\n }\n }),\n ...(typedDefaultSlotProps?.sx && externalSlotProps?.sx && {\n sx: [...(Array.isArray(typedDefaultSlotProps.sx) ? typedDefaultSlotProps.sx : [typedDefaultSlotProps.sx]), ...(Array.isArray(externalSlotProps.sx) ? externalSlotProps.sx : [externalSlotProps.sx])]\n })\n };\n}","function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (-1 !== e.indexOf(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nexport { _objectWithoutPropertiesLoose as default };","function _setPrototypeOf(t, e) {\n return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n }, _setPrototypeOf(t, e);\n}\nexport { _setPrototypeOf as default };","import setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _inheritsLoose(t, o) {\n t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o);\n}\nexport { _inheritsLoose as default };","/**\n * Checks if a given element has a CSS class.\n * \n * @param element the element\n * @param className the CSS class name\n */\nexport default function hasClass(element, className) {\n if (element.classList) return !!className && element.classList.contains(className);\n return (\" \" + (element.className.baseVal || element.className) + \" \").indexOf(\" \" + className + \" \") !== -1;\n}","import hasClass from './hasClass';\n/**\n * Adds a CSS class to a given element.\n * \n * @param element the element\n * @param className the CSS class name\n */\n\nexport default function addClass(element, className) {\n if (element.classList) element.classList.add(className);else if (!hasClass(element, className)) if (typeof element.className === 'string') element.className = element.className + \" \" + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + \" \" + className);\n}","function replaceClassName(origClass, classToRemove) {\n return origClass.replace(new RegExp(\"(^|\\\\s)\" + classToRemove + \"(?:\\\\s|$)\", 'g'), '$1').replace(/\\s+/g, ' ').replace(/^\\s*|\\s*$/g, '');\n}\n/**\n * Removes a CSS class from a given element.\n * \n * @param element the element\n * @param className the CSS class name\n */\n\n\nexport default function removeClass(element, className) {\n if (element.classList) {\n element.classList.remove(className);\n } else if (typeof element.className === 'string') {\n element.className = replaceClassName(element.className, className);\n } else {\n element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));\n }\n}","/**\n * @license React\n * react-dom.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\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\n\"use strict\";\nvar React = require(\"react\");\nfunction formatProdErrorMessage(code) {\n var url = \"https://react.dev/errors/\" + code;\n if (1 < arguments.length) {\n url += \"?args[]=\" + encodeURIComponent(arguments[1]);\n for (var i = 2; i < arguments.length; i++)\n url += \"&args[]=\" + encodeURIComponent(arguments[i]);\n }\n return (\n \"Minified React error #\" +\n code +\n \"; visit \" +\n url +\n \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"\n );\n}\nfunction noop() {}\nvar Internals = {\n d: {\n f: noop,\n r: function () {\n throw Error(formatProdErrorMessage(522));\n },\n D: noop,\n C: noop,\n L: noop,\n m: noop,\n X: noop,\n S: noop,\n M: noop\n },\n p: 0,\n findDOMNode: null\n },\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\");\nfunction createPortal$1(children, containerInfo, implementation) {\n var key =\n 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;\n return {\n $$typeof: REACT_PORTAL_TYPE,\n key: null == key ? null : \"\" + key,\n children: children,\n containerInfo: containerInfo,\n implementation: implementation\n };\n}\nvar ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nfunction getCrossOriginStringAs(as, input) {\n if (\"font\" === as) return \"\";\n if (\"string\" === typeof input)\n return \"use-credentials\" === input ? input : \"\";\n}\nexports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n Internals;\nexports.createPortal = function (children, container) {\n var key =\n 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;\n if (\n !container ||\n (1 !== container.nodeType &&\n 9 !== container.nodeType &&\n 11 !== container.nodeType)\n )\n throw Error(formatProdErrorMessage(299));\n return createPortal$1(children, container, null, key);\n};\nexports.flushSync = function (fn) {\n var previousTransition = ReactSharedInternals.T,\n previousUpdatePriority = Internals.p;\n try {\n if (((ReactSharedInternals.T = null), (Internals.p = 2), fn)) return fn();\n } finally {\n (ReactSharedInternals.T = previousTransition),\n (Internals.p = previousUpdatePriority),\n Internals.d.f();\n }\n};\nexports.preconnect = function (href, options) {\n \"string\" === typeof href &&\n (options\n ? ((options = options.crossOrigin),\n (options =\n \"string\" === typeof options\n ? \"use-credentials\" === options\n ? options\n : \"\"\n : void 0))\n : (options = null),\n Internals.d.C(href, options));\n};\nexports.prefetchDNS = function (href) {\n \"string\" === typeof href && Internals.d.D(href);\n};\nexports.preinit = function (href, options) {\n if (\"string\" === typeof href && options && \"string\" === typeof options.as) {\n var as = options.as,\n crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),\n integrity =\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n fetchPriority =\n \"string\" === typeof options.fetchPriority\n ? options.fetchPriority\n : void 0;\n \"style\" === as\n ? Internals.d.S(\n href,\n \"string\" === typeof options.precedence ? options.precedence : void 0,\n {\n crossOrigin: crossOrigin,\n integrity: integrity,\n fetchPriority: fetchPriority\n }\n )\n : \"script\" === as &&\n Internals.d.X(href, {\n crossOrigin: crossOrigin,\n integrity: integrity,\n fetchPriority: fetchPriority,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0\n });\n }\n};\nexports.preinitModule = function (href, options) {\n if (\"string\" === typeof href)\n if (\"object\" === typeof options && null !== options) {\n if (null == options.as || \"script\" === options.as) {\n var crossOrigin = getCrossOriginStringAs(\n options.as,\n options.crossOrigin\n );\n Internals.d.M(href, {\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0\n });\n }\n } else null == options && Internals.d.M(href);\n};\nexports.preload = function (href, options) {\n if (\n \"string\" === typeof href &&\n \"object\" === typeof options &&\n null !== options &&\n \"string\" === typeof options.as\n ) {\n var as = options.as,\n crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);\n Internals.d.L(href, as, {\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0,\n type: \"string\" === typeof options.type ? options.type : void 0,\n fetchPriority:\n \"string\" === typeof options.fetchPriority\n ? options.fetchPriority\n : void 0,\n referrerPolicy:\n \"string\" === typeof options.referrerPolicy\n ? options.referrerPolicy\n : void 0,\n imageSrcSet:\n \"string\" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,\n imageSizes:\n \"string\" === typeof options.imageSizes ? options.imageSizes : void 0,\n media: \"string\" === typeof options.media ? options.media : void 0\n });\n }\n};\nexports.preloadModule = function (href, options) {\n if (\"string\" === typeof href)\n if (options) {\n var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);\n Internals.d.m(href, {\n as:\n \"string\" === typeof options.as && \"script\" !== options.as\n ? options.as\n : void 0,\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0\n });\n } else Internals.d.m(href);\n};\nexports.requestFormReset = function (form) {\n Internals.d.r(form);\n};\nexports.unstable_batchedUpdates = function (fn, a) {\n return fn(a);\n};\nexports.useFormState = function (action, initialState, permalink) {\n return ReactSharedInternals.H.useFormState(action, initialState, permalink);\n};\nexports.useFormStatus = function () {\n return ReactSharedInternals.H.useHostTransitionStatus();\n};\nexports.version = \"19.1.1\";\n","'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}\n","export default {\n disabled: false\n};","import React from 'react';\nexport default React.createContext(null);","export var forceReflow = function forceReflow(node) {\n return node.scrollTop;\n};","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport config from './config';\nimport { timeoutsShape } from './utils/PropTypes';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { forceReflow } from './utils/reflow';\nexport var UNMOUNTED = 'unmounted';\nexport var EXITED = 'exited';\nexport var ENTERING = 'entering';\nexport var ENTERED = 'entered';\nexport var EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 1 },\n * entered: { opacity: 1 },\n * exiting: { opacity: 0 },\n * exited: { opacity: 0 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * <Transition in={inProp} timeout={duration}>\n * {state => (\n * <div style={{\n * ...defaultStyle,\n * ...transitionStyles[state]\n * }}>\n * I'm a fade Transition!\n * </div>\n * )}\n * </Transition>\n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n * <div>\n * <Transition in={inProp} timeout={500}>\n * {state => (\n * // ...\n * )}\n * </Transition>\n * <button onClick={() => setInProp(true)}>\n * Click to Enter\n * </button>\n * </div>\n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nvar Transition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n\n function Transition(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n\n return null;\n } // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n ;\n\n var _proto = Transition.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n\n if (prevProps !== this.props) {\n var status = this.state.status;\n\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n\n this.updateStatus(false, nextStatus);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter; // TODO: remove fallback for next major\n\n appear = timeout.appear !== undefined ? timeout.appear : enter;\n }\n\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n\n if (nextStatus === ENTERING) {\n if (this.props.unmountOnExit || this.props.mountOnEnter) {\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749\n // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.\n // To make the animation happen, we have to separate each rendering and avoid being processed as batched.\n\n if (node) forceReflow(node);\n }\n\n this.performEnter(mounting);\n } else {\n this.performExit();\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n\n _proto.performEnter = function performEnter(mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n var appearing = this.context ? this.context.isMounting : mounting;\n\n var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],\n maybeNode = _ref2[0],\n maybeAppearing = _ref2[1];\n\n var timeouts = this.getTimeouts();\n var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter || config.disabled) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode);\n });\n return;\n }\n\n this.props.onEnter(maybeNode, maybeAppearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(maybeNode, maybeAppearing);\n\n _this2.onTransitionEnd(enterTimeout, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode, maybeAppearing);\n });\n });\n });\n };\n\n _proto.performExit = function performExit() {\n var _this3 = this;\n\n var exit = this.props.exit;\n var timeouts = this.getTimeouts();\n var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED\n\n if (!exit || config.disabled) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n return;\n }\n\n this.props.onExit(maybeNode);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(maybeNode);\n\n _this3.onTransitionEnd(timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n });\n });\n };\n\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {\n this.setNextCallback(handler);\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);\n var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n if (!node || doesNotHaveTimeoutOrListener) {\n setTimeout(this.nextCallback, 0);\n return;\n }\n\n if (this.props.addEndListener) {\n var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],\n maybeNode = _ref3[0],\n maybeNextCallback = _ref3[1];\n\n this.props.addEndListener(maybeNode, maybeNextCallback);\n }\n\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n };\n\n _proto.render = function render() {\n var status = this.state.status;\n\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _this$props = this.props,\n children = _this$props.children,\n _in = _this$props.in,\n _mountOnEnter = _this$props.mountOnEnter,\n _unmountOnExit = _this$props.unmountOnExit,\n _appear = _this$props.appear,\n _enter = _this$props.enter,\n _exit = _this$props.exit,\n _timeout = _this$props.timeout,\n _addEndListener = _this$props.addEndListener,\n _onEnter = _this$props.onEnter,\n _onEntering = _this$props.onEntering,\n _onEntered = _this$props.onEntered,\n _onExit = _this$props.onExit,\n _onExiting = _this$props.onExiting,\n _onExited = _this$props.onExited,\n _nodeRef = _this$props.nodeRef,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\", \"mountOnEnter\", \"unmountOnExit\", \"appear\", \"enter\", \"exit\", \"timeout\", \"addEndListener\", \"onEnter\", \"onEntering\", \"onEntered\", \"onExit\", \"onExiting\", \"onExited\", \"nodeRef\"]);\n\n return (\n /*#__PURE__*/\n // allows for nested Transitions\n React.createElement(TransitionGroupContext.Provider, {\n value: null\n }, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))\n );\n };\n\n return Transition;\n}(React.Component);\n\nTransition.contextType = TransitionGroupContext;\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A React reference to DOM element that need to transition:\n * https://stackoverflow.com/a/51127130/4671932\n *\n * - When `nodeRef` prop is used, `node` is not passed to callback functions\n * (e.g. `onEnter`) because user already has direct access to the node.\n * - When changing `key` prop of `Transition` in a `TransitionGroup` a new\n * `nodeRef` need to be provided to `Transition` with changed `key` prop\n * (see\n * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).\n */\n nodeRef: PropTypes.shape({\n current: typeof Element === 'undefined' ? PropTypes.any : function (propValue, key, componentName, location, propFullName, secret) {\n var value = propValue[key];\n return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);\n }\n }),\n\n /**\n * A `function` child can be used instead of a React element. This function is\n * called with the current transition status (`'entering'`, `'entered'`,\n * `'exiting'`, `'exited'`), which can be used to apply context\n * specific props to a component.\n *\n * ```jsx\n * <Transition in={this.state.in} timeout={150}>\n * {state => (\n * <MyComponent className={`fade fade-${state}`} />\n * )}\n * </Transition>\n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * By default the child component does not perform the enter transition when\n * it first mounts, regardless of the value of `in`. If you want this\n * behavior, set both `appear` and `in` to `true`.\n *\n * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop\n * > only adds an additional enter transition. However, in the\n * > `<CSSTransition>` component that first enter transition does result in\n * > additional `.appear-*` classes, that way you can choose to style it\n * > differently.\n */\n appear: PropTypes.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided.\n *\n * You may specify a single timeout for all transitions:\n *\n * ```jsx\n * timeout={500}\n * ```\n *\n * or individually:\n *\n * ```jsx\n * timeout={{\n * appear: 500,\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * - `appear` defaults to the value of `enter`\n * - `enter` defaults to `0`\n * - `exit` defaults to `0`\n *\n * @type {number | { enter?: number, exit?: number, appear?: number }}\n */\n timeout: function timeout(props) {\n var pt = timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return pt.apply(void 0, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. Timeouts are still used as a fallback if provided.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func\n} : {}; // Name the function so it is clearer in the documentation\n\nfunction noop() {}\n\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = UNMOUNTED;\nTransition.EXITED = EXITED;\nTransition.ENTERING = ENTERING;\nTransition.ENTERED = ENTERED;\nTransition.EXITING = EXITING;\nexport default Transition;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport addOneClass from 'dom-helpers/addClass';\nimport removeOneClass from 'dom-helpers/removeClass';\nimport React from 'react';\nimport Transition from './Transition';\nimport { classNamesShape } from './utils/PropTypes';\nimport { forceReflow } from './utils/reflow';\n\nvar _addClass = function addClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return addOneClass(node, c);\n });\n};\n\nvar removeClass = function removeClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return removeOneClass(node, c);\n });\n};\n/**\n * A transition component inspired by the excellent\n * [ng-animate](https://docs.angularjs.org/api/ngAnimate) library, you should\n * use it if you're using CSS transitions or animations. It's built upon the\n * [`Transition`](https://reactcommunity.org/react-transition-group/transition)\n * component, so it inherits all of its props.\n *\n * `CSSTransition` applies a pair of class names during the `appear`, `enter`,\n * and `exit` states of the transition. The first class is applied and then a\n * second `*-active` class in order to activate the CSS transition. After the\n * transition, matching `*-done` class names are applied to persist the\n * transition state.\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n * <div>\n * <CSSTransition in={inProp} timeout={200} classNames=\"my-node\">\n * <div>\n * {\"I'll receive my-node-* classes\"}\n * </div>\n * </CSSTransition>\n * <button type=\"button\" onClick={() => setInProp(true)}>\n * Click to Enter\n * </button>\n * </div>\n * );\n * }\n * ```\n *\n * When the `in` prop is set to `true`, the child component will first receive\n * the class `example-enter`, then the `example-enter-active` will be added in\n * the next tick. `CSSTransition` [forces a\n * reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)\n * between before adding the `example-enter-active`. This is an important trick\n * because it allows us to transition between `example-enter` and\n * `example-enter-active` even though they were added immediately one after\n * another. Most notably, this is what makes it possible for us to animate\n * _appearance_.\n *\n * ```css\n * .my-node-enter {\n * opacity: 0;\n * }\n * .my-node-enter-active {\n * opacity: 1;\n * transition: opacity 200ms;\n * }\n * .my-node-exit {\n * opacity: 1;\n * }\n * .my-node-exit-active {\n * opacity: 0;\n * transition: opacity 200ms;\n * }\n * ```\n *\n * `*-active` classes represent which styles you want to animate **to**, so it's\n * important to add `transition` declaration only to them, otherwise transitions\n * might not behave as intended! This might not be obvious when the transitions\n * are symmetrical, i.e. when `*-enter-active` is the same as `*-exit`, like in\n * the example above (minus `transition`), but it becomes apparent in more\n * complex transitions.\n *\n * **Note**: If you're using the\n * [`appear`](http://reactcommunity.org/react-transition-group/transition#Transition-prop-appear)\n * prop, make sure to define styles for `.appear-*` classes as well.\n */\n\n\nvar CSSTransition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(CSSTransition, _React$Component);\n\n function CSSTransition() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.appliedClasses = {\n appear: {},\n enter: {},\n exit: {}\n };\n\n _this.onEnter = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument[0],\n appearing = _this$resolveArgument[1];\n\n _this.removeClasses(node, 'exit');\n\n _this.addClass(node, appearing ? 'appear' : 'enter', 'base');\n\n if (_this.props.onEnter) {\n _this.props.onEnter(maybeNode, maybeAppearing);\n }\n };\n\n _this.onEntering = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument2 = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument2[0],\n appearing = _this$resolveArgument2[1];\n\n var type = appearing ? 'appear' : 'enter';\n\n _this.addClass(node, type, 'active');\n\n if (_this.props.onEntering) {\n _this.props.onEntering(maybeNode, maybeAppearing);\n }\n };\n\n _this.onEntered = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument3 = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument3[0],\n appearing = _this$resolveArgument3[1];\n\n var type = appearing ? 'appear' : 'enter';\n\n _this.removeClasses(node, type);\n\n _this.addClass(node, type, 'done');\n\n if (_this.props.onEntered) {\n _this.props.onEntered(maybeNode, maybeAppearing);\n }\n };\n\n _this.onExit = function (maybeNode) {\n var _this$resolveArgument4 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument4[0];\n\n _this.removeClasses(node, 'appear');\n\n _this.removeClasses(node, 'enter');\n\n _this.addClass(node, 'exit', 'base');\n\n if (_this.props.onExit) {\n _this.props.onExit(maybeNode);\n }\n };\n\n _this.onExiting = function (maybeNode) {\n var _this$resolveArgument5 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument5[0];\n\n _this.addClass(node, 'exit', 'active');\n\n if (_this.props.onExiting) {\n _this.props.onExiting(maybeNode);\n }\n };\n\n _this.onExited = function (maybeNode) {\n var _this$resolveArgument6 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument6[0];\n\n _this.removeClasses(node, 'exit');\n\n _this.addClass(node, 'exit', 'done');\n\n if (_this.props.onExited) {\n _this.props.onExited(maybeNode);\n }\n };\n\n _this.resolveArguments = function (maybeNode, maybeAppearing) {\n return _this.props.nodeRef ? [_this.props.nodeRef.current, maybeNode] // here `maybeNode` is actually `appearing`\n : [maybeNode, maybeAppearing];\n };\n\n _this.getClassNames = function (type) {\n var classNames = _this.props.classNames;\n var isStringClassNames = typeof classNames === 'string';\n var prefix = isStringClassNames && classNames ? classNames + \"-\" : '';\n var baseClassName = isStringClassNames ? \"\" + prefix + type : classNames[type];\n var activeClassName = isStringClassNames ? baseClassName + \"-active\" : classNames[type + \"Active\"];\n var doneClassName = isStringClassNames ? baseClassName + \"-done\" : classNames[type + \"Done\"];\n return {\n baseClassName: baseClassName,\n activeClassName: activeClassName,\n doneClassName: doneClassName\n };\n };\n\n return _this;\n }\n\n var _proto = CSSTransition.prototype;\n\n _proto.addClass = function addClass(node, type, phase) {\n var className = this.getClassNames(type)[phase + \"ClassName\"];\n\n var _this$getClassNames = this.getClassNames('enter'),\n doneClassName = _this$getClassNames.doneClassName;\n\n if (type === 'appear' && phase === 'done' && doneClassName) {\n className += \" \" + doneClassName;\n } // This is to force a repaint,\n // which is necessary in order to transition styles when adding a class name.\n\n\n if (phase === 'active') {\n if (node) forceReflow(node);\n }\n\n if (className) {\n this.appliedClasses[type][phase] = className;\n\n _addClass(node, className);\n }\n };\n\n _proto.removeClasses = function removeClasses(node, type) {\n var _this$appliedClasses$ = this.appliedClasses[type],\n baseClassName = _this$appliedClasses$.base,\n activeClassName = _this$appliedClasses$.active,\n doneClassName = _this$appliedClasses$.done;\n this.appliedClasses[type] = {};\n\n if (baseClassName) {\n removeClass(node, baseClassName);\n }\n\n if (activeClassName) {\n removeClass(node, activeClassName);\n }\n\n if (doneClassName) {\n removeClass(node, doneClassName);\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n _ = _this$props.classNames,\n props = _objectWithoutPropertiesLoose(_this$props, [\"classNames\"]);\n\n return /*#__PURE__*/React.createElement(Transition, _extends({}, props, {\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onEntering: this.onEntering,\n onExit: this.onExit,\n onExiting: this.onExiting,\n onExited: this.onExited\n }));\n };\n\n return CSSTransition;\n}(React.Component);\n\nCSSTransition.defaultProps = {\n classNames: ''\n};\nCSSTransition.propTypes = process.env.NODE_ENV !== \"production\" ? _extends({}, Transition.propTypes, {\n /**\n * The animation classNames applied to the component as it appears, enters,\n * exits or has finished the transition. A single name can be provided, which\n * will be suffixed for each stage, e.g. `classNames=\"fade\"` applies:\n *\n * - `fade-appear`, `fade-appear-active`, `fade-appear-done`\n * - `fade-enter`, `fade-enter-active`, `fade-enter-done`\n * - `fade-exit`, `fade-exit-active`, `fade-exit-done`\n *\n * A few details to note about how these classes are applied:\n *\n * 1. They are _joined_ with the ones that are already defined on the child\n * component, so if you want to add some base styles, you can use\n * `className` without worrying that it will be overridden.\n *\n * 2. If the transition component mounts with `in={false}`, no classes are\n * applied yet. You might be expecting `*-exit-done`, but if you think\n * about it, a component cannot finish exiting if it hasn't entered yet.\n *\n * 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This\n * allows you to define different behavior for when appearing is done and\n * when regular entering is done, using selectors like\n * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply\n * an epic entrance animation when element first appears in the DOM using\n * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can\n * simply use `fade-enter-done` for defining both cases.\n *\n * Each individual classNames can also be specified independently like:\n *\n * ```js\n * classNames={{\n * appear: 'my-appear',\n * appearActive: 'my-active-appear',\n * appearDone: 'my-done-appear',\n * enter: 'my-enter',\n * enterActive: 'my-active-enter',\n * enterDone: 'my-done-enter',\n * exit: 'my-exit',\n * exitActive: 'my-active-exit',\n * exitDone: 'my-done-exit',\n * }}\n * ```\n *\n * If you want to set these classes using CSS Modules:\n *\n * ```js\n * import styles from './styles.css';\n * ```\n *\n * you might want to use camelCase in your CSS file, that way could simply\n * spread them instead of listing them one by one:\n *\n * ```js\n * classNames={{ ...styles }}\n * ```\n *\n * @type {string | {\n * appear?: string,\n * appearActive?: string,\n * appearDone?: string,\n * enter?: string,\n * enterActive?: string,\n * enterDone?: string,\n * exit?: string,\n * exitActive?: string,\n * exitDone?: string,\n * }}\n */\n classNames: classNamesShape,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is\n * applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEnter: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter-active' or\n * 'appear-active' class is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter' or\n * 'appear' classes are **removed** and the `done` class is added to the DOM node.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntered: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit' class is\n * applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExit: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit-active' is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExiting: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit' classes\n * are **removed** and the `exit-done` class is added to the DOM node.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExited: PropTypes.func\n}) : {};\nexport default CSSTransition;","function _assertThisInitialized(e) {\n if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return e;\n}\nexport { _assertThisInitialized as default };","import { Children, cloneElement, isValidElement } from 'react';\n/**\n * Given `this.props.children`, return an object mapping key to child.\n *\n * @param {*} children `this.props.children`\n * @return {object} Mapping of key to child\n */\n\nexport function getChildMapping(children, mapFn) {\n var mapper = function mapper(child) {\n return mapFn && isValidElement(child) ? mapFn(child) : child;\n };\n\n var result = Object.create(null);\n if (children) Children.map(children, function (c) {\n return c;\n }).forEach(function (child) {\n // run the map function here instead so that the key is the computed one\n result[child.key] = mapper(child);\n });\n return result;\n}\n/**\n * When you're adding or removing children some may be added or removed in the\n * same render pass. We want to show *both* since we want to simultaneously\n * animate elements in and out. This function takes a previous set of keys\n * and a new set of keys and merges them with its best guess of the correct\n * ordering. In the future we may expose some of the utilities in\n * ReactMultiChild to make this easy, but for now React itself does not\n * directly have this concept of the union of prevChildren and nextChildren\n * so we implement it here.\n *\n * @param {object} prev prev children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @param {object} next next children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @return {object} a key set that contains all keys in `prev` and all keys\n * in `next` in a reasonable order.\n */\n\nexport function mergeChildMappings(prev, next) {\n prev = prev || {};\n next = next || {};\n\n function getValueForKey(key) {\n return key in next ? next[key] : prev[key];\n } // For each key of `next`, the list of keys to insert before that key in\n // the combined list\n\n\n var nextKeysPending = Object.create(null);\n var pendingKeys = [];\n\n for (var prevKey in prev) {\n if (prevKey in next) {\n if (pendingKeys.length) {\n nextKeysPending[prevKey] = pendingKeys;\n pendingKeys = [];\n }\n } else {\n pendingKeys.push(prevKey);\n }\n }\n\n var i;\n var childMapping = {};\n\n for (var nextKey in next) {\n if (nextKeysPending[nextKey]) {\n for (i = 0; i < nextKeysPending[nextKey].length; i++) {\n var pendingNextKey = nextKeysPending[nextKey][i];\n childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);\n }\n }\n\n childMapping[nextKey] = getValueForKey(nextKey);\n } // Finally, add the keys which didn't appear before any key in `next`\n\n\n for (i = 0; i < pendingKeys.length; i++) {\n childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);\n }\n\n return childMapping;\n}\n\nfunction getProp(child, prop, props) {\n return props[prop] != null ? props[prop] : child.props[prop];\n}\n\nexport function getInitialChildMapping(props, onExited) {\n return getChildMapping(props.children, function (child) {\n return cloneElement(child, {\n onExited: onExited.bind(null, child),\n in: true,\n appear: getProp(child, 'appear', props),\n enter: getProp(child, 'enter', props),\n exit: getProp(child, 'exit', props)\n });\n });\n}\nexport function getNextChildMapping(nextProps, prevChildMapping, onExited) {\n var nextChildMapping = getChildMapping(nextProps.children);\n var children = mergeChildMappings(prevChildMapping, nextChildMapping);\n Object.keys(children).forEach(function (key) {\n var child = children[key];\n if (!isValidElement(child)) return;\n var hasPrev = (key in prevChildMapping);\n var hasNext = (key in nextChildMapping);\n var prevChild = prevChildMapping[key];\n var isLeaving = isValidElement(prevChild) && !prevChild.props.in; // item is new (entering)\n\n if (hasNext && (!hasPrev || isLeaving)) {\n // console.log('entering', key)\n children[key] = cloneElement(child, {\n onExited: onExited.bind(null, child),\n in: true,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n } else if (!hasNext && hasPrev && !isLeaving) {\n // item is old (exiting)\n // console.log('leaving', key)\n children[key] = cloneElement(child, {\n in: false\n });\n } else if (hasNext && hasPrev && isValidElement(prevChild)) {\n // item hasn't changed transition states\n // copy over the last transition props;\n // console.log('unchanged', key)\n children[key] = cloneElement(child, {\n onExited: onExited.bind(null, child),\n in: prevChild.props.in,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n }\n });\n return children;\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { getChildMapping, getInitialChildMapping, getNextChildMapping } from './utils/ChildMapping';\n\nvar values = Object.values || function (obj) {\n return Object.keys(obj).map(function (k) {\n return obj[k];\n });\n};\n\nvar defaultProps = {\n component: 'div',\n childFactory: function childFactory(child) {\n return child;\n }\n};\n/**\n * The `<TransitionGroup>` component manages a set of transition components\n * (`<Transition>` and `<CSSTransition>`) in a list. Like with the transition\n * components, `<TransitionGroup>` is a state machine for managing the mounting\n * and unmounting of components over time.\n *\n * Consider the example below. As items are removed or added to the TodoList the\n * `in` prop is toggled automatically by the `<TransitionGroup>`.\n *\n * Note that `<TransitionGroup>` does not define any animation behavior!\n * Exactly _how_ a list item animates is up to the individual transition\n * component. This means you can mix and match animations across different list\n * items.\n */\n\nvar TransitionGroup = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(TransitionGroup, _React$Component);\n\n function TransitionGroup(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n\n var handleExited = _this.handleExited.bind(_assertThisInitialized(_this)); // Initial children should all be entering, dependent on appear\n\n\n _this.state = {\n contextValue: {\n isMounting: true\n },\n handleExited: handleExited,\n firstRender: true\n };\n return _this;\n }\n\n var _proto = TransitionGroup.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.mounted = true;\n this.setState({\n contextValue: {\n isMounting: false\n }\n });\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.mounted = false;\n };\n\n TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {\n var prevChildMapping = _ref.children,\n handleExited = _ref.handleExited,\n firstRender = _ref.firstRender;\n return {\n children: firstRender ? getInitialChildMapping(nextProps, handleExited) : getNextChildMapping(nextProps, prevChildMapping, handleExited),\n firstRender: false\n };\n } // node is `undefined` when user provided `nodeRef` prop\n ;\n\n _proto.handleExited = function handleExited(child, node) {\n var currentChildMapping = getChildMapping(this.props.children);\n if (child.key in currentChildMapping) return;\n\n if (child.props.onExited) {\n child.props.onExited(node);\n }\n\n if (this.mounted) {\n this.setState(function (state) {\n var children = _extends({}, state.children);\n\n delete children[child.key];\n return {\n children: children\n };\n });\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n Component = _this$props.component,\n childFactory = _this$props.childFactory,\n props = _objectWithoutPropertiesLoose(_this$props, [\"component\", \"childFactory\"]);\n\n var contextValue = this.state.contextValue;\n var children = values(this.state.children).map(childFactory);\n delete props.appear;\n delete props.enter;\n delete props.exit;\n\n if (Component === null) {\n return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n value: contextValue\n }, children);\n }\n\n return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n value: contextValue\n }, /*#__PURE__*/React.createElement(Component, props, children));\n };\n\n return TransitionGroup;\n}(React.Component);\n\nTransitionGroup.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * `<TransitionGroup>` renders a `<div>` by default. You can change this\n * behavior by providing a `component` prop.\n * If you use React v16+ and would like to avoid a wrapping `<div>` element\n * you can pass in `component={null}`. This is useful if the wrapping div\n * borks your css styles.\n */\n component: PropTypes.any,\n\n /**\n * A set of `<Transition>` components, that are toggled `in` and out as they\n * leave. the `<TransitionGroup>` will inject specific transition props, so\n * remember to spread them through if you are wrapping the `<Transition>` as\n * with our `<Fade>` example.\n *\n * While this component is meant for multiple `Transition` or `CSSTransition`\n * children, sometimes you may want to have a single transition child with\n * content that you want to be transitioned out and in when you change it\n * (e.g. routes, images etc.) In that case you can change the `key` prop of\n * the transition child as you change its content, this will cause\n * `TransitionGroup` to transition the child out and back in.\n */\n children: PropTypes.node,\n\n /**\n * A convenience prop that enables or disables appear animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n appear: PropTypes.bool,\n\n /**\n * A convenience prop that enables or disables enter animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * A convenience prop that enables or disables exit animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * You may need to apply reactive updates to a child as it is exiting.\n * This is generally done by using `cloneElement` however in the case of an exiting\n * child the element has already been removed and not accessible to the consumer.\n *\n * If you do need to update a child as it leaves you can provide a `childFactory`\n * to wrap every child, even the ones that are leaving.\n *\n * @type Function(child: ReactElement) -> ReactElement\n */\n childFactory: PropTypes.func\n} : {};\nTransitionGroup.defaultProps = defaultProps;\nexport default TransitionGroup;","export const reflow = node => node.scrollTop;\nexport function getTransitionProps(props, options) {\n const {\n timeout,\n easing,\n style = {}\n } = props;\n return {\n duration: style.transitionDuration ?? (typeof timeout === 'number' ? timeout : timeout[options.mode] || 0),\n easing: style.transitionTimingFunction ?? (typeof easing === 'object' ? easing[options.mode] : easing),\n delay: style.transitionDelay\n };\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCollapseUtilityClass(slot) {\n return generateUtilityClass('MuiCollapse', slot);\n}\nconst collapseClasses = generateUtilityClasses('MuiCollapse', ['root', 'horizontal', 'vertical', 'entered', 'hidden', 'wrapper', 'wrapperInner']);\nexport default collapseClasses;","'use client';\n\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport { Transition } from 'react-transition-group';\nimport useTimeout from '@mui/utils/useTimeout';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled, useTheme } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { duration } from \"../styles/createTransitions.js\";\nimport { getTransitionProps } from \"../transitions/utils.js\";\nimport { useForkRef } from \"../utils/index.js\";\nimport { getCollapseUtilityClass } from \"./collapseClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n orientation,\n classes\n } = ownerState;\n const slots = {\n root: ['root', `${orientation}`],\n entered: ['entered'],\n hidden: ['hidden'],\n wrapper: ['wrapper', `${orientation}`],\n wrapperInner: ['wrapperInner', `${orientation}`]\n };\n return composeClasses(slots, getCollapseUtilityClass, classes);\n};\nconst CollapseRoot = styled('div', {\n name: 'MuiCollapse',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.orientation], ownerState.state === 'entered' && styles.entered, ownerState.state === 'exited' && !ownerState.in && ownerState.collapsedSize === '0px' && styles.hidden];\n }\n})(memoTheme(({\n theme\n}) => ({\n height: 0,\n overflow: 'hidden',\n transition: theme.transitions.create('height'),\n variants: [{\n props: {\n orientation: 'horizontal'\n },\n style: {\n height: 'auto',\n width: 0,\n transition: theme.transitions.create('width')\n }\n }, {\n props: {\n state: 'entered'\n },\n style: {\n height: 'auto',\n overflow: 'visible'\n }\n }, {\n props: {\n state: 'entered',\n orientation: 'horizontal'\n },\n style: {\n width: 'auto'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.state === 'exited' && !ownerState.in && ownerState.collapsedSize === '0px',\n style: {\n visibility: 'hidden'\n }\n }]\n})));\nconst CollapseWrapper = styled('div', {\n name: 'MuiCollapse',\n slot: 'Wrapper',\n overridesResolver: (props, styles) => styles.wrapper\n})({\n // Hack to get children with a negative margin to not falsify the height computation.\n display: 'flex',\n width: '100%',\n variants: [{\n props: {\n orientation: 'horizontal'\n },\n style: {\n width: 'auto',\n height: '100%'\n }\n }]\n});\nconst CollapseWrapperInner = styled('div', {\n name: 'MuiCollapse',\n slot: 'WrapperInner',\n overridesResolver: (props, styles) => styles.wrapperInner\n})({\n width: '100%',\n variants: [{\n props: {\n orientation: 'horizontal'\n },\n style: {\n width: 'auto',\n height: '100%'\n }\n }]\n});\n\n/**\n * The Collapse transition is used by the\n * [Vertical Stepper](/material-ui/react-stepper/#vertical-stepper) StepContent component.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\nconst Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiCollapse'\n });\n const {\n addEndListener,\n children,\n className,\n collapsedSize: collapsedSizeProp = '0px',\n component,\n easing,\n in: inProp,\n onEnter,\n onEntered,\n onEntering,\n onExit,\n onExited,\n onExiting,\n orientation = 'vertical',\n style,\n timeout = duration.standard,\n // eslint-disable-next-line react/prop-types\n TransitionComponent = Transition,\n ...other\n } = props;\n const ownerState = {\n ...props,\n orientation,\n collapsedSize: collapsedSizeProp\n };\n const classes = useUtilityClasses(ownerState);\n const theme = useTheme();\n const timer = useTimeout();\n const wrapperRef = React.useRef(null);\n const autoTransitionDuration = React.useRef();\n const collapsedSize = typeof collapsedSizeProp === 'number' ? `${collapsedSizeProp}px` : collapsedSizeProp;\n const isHorizontal = orientation === 'horizontal';\n const size = isHorizontal ? 'width' : 'height';\n const nodeRef = React.useRef(null);\n const handleRef = useForkRef(ref, nodeRef);\n const normalizedTransitionCallback = callback => maybeIsAppearing => {\n if (callback) {\n const node = nodeRef.current;\n\n // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n if (maybeIsAppearing === undefined) {\n callback(node);\n } else {\n callback(node, maybeIsAppearing);\n }\n }\n };\n const getWrapperSize = () => wrapperRef.current ? wrapperRef.current[isHorizontal ? 'clientWidth' : 'clientHeight'] : 0;\n const handleEnter = normalizedTransitionCallback((node, isAppearing) => {\n if (wrapperRef.current && isHorizontal) {\n // Set absolute position to get the size of collapsed content\n wrapperRef.current.style.position = 'absolute';\n }\n node.style[size] = collapsedSize;\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n const handleEntering = normalizedTransitionCallback((node, isAppearing) => {\n const wrapperSize = getWrapperSize();\n if (wrapperRef.current && isHorizontal) {\n // After the size is read reset the position back to default\n wrapperRef.current.style.position = '';\n }\n const {\n duration: transitionDuration,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'enter'\n });\n if (timeout === 'auto') {\n const duration2 = theme.transitions.getAutoHeightDuration(wrapperSize);\n node.style.transitionDuration = `${duration2}ms`;\n autoTransitionDuration.current = duration2;\n } else {\n node.style.transitionDuration = typeof transitionDuration === 'string' ? transitionDuration : `${transitionDuration}ms`;\n }\n node.style[size] = `${wrapperSize}px`;\n node.style.transitionTimingFunction = transitionTimingFunction;\n if (onEntering) {\n onEntering(node, isAppearing);\n }\n });\n const handleEntered = normalizedTransitionCallback((node, isAppearing) => {\n node.style[size] = 'auto';\n if (onEntered) {\n onEntered(node, isAppearing);\n }\n });\n const handleExit = normalizedTransitionCallback(node => {\n node.style[size] = `${getWrapperSize()}px`;\n if (onExit) {\n onExit(node);\n }\n });\n const handleExited = normalizedTransitionCallback(onExited);\n const handleExiting = normalizedTransitionCallback(node => {\n const wrapperSize = getWrapperSize();\n const {\n duration: transitionDuration,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'exit'\n });\n if (timeout === 'auto') {\n // TODO: rename getAutoHeightDuration to something more generic (width support)\n // Actually it just calculates animation duration based on size\n const duration2 = theme.transitions.getAutoHeightDuration(wrapperSize);\n node.style.transitionDuration = `${duration2}ms`;\n autoTransitionDuration.current = duration2;\n } else {\n node.style.transitionDuration = typeof transitionDuration === 'string' ? transitionDuration : `${transitionDuration}ms`;\n }\n node.style[size] = collapsedSize;\n node.style.transitionTimingFunction = transitionTimingFunction;\n if (onExiting) {\n onExiting(node);\n }\n });\n const handleAddEndListener = next => {\n if (timeout === 'auto') {\n timer.start(autoTransitionDuration.current || 0, next);\n }\n if (addEndListener) {\n // Old call signature before `react-transition-group` implemented `nodeRef`\n addEndListener(nodeRef.current, next);\n }\n };\n return /*#__PURE__*/_jsx(TransitionComponent, {\n in: inProp,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n addEndListener: handleAddEndListener,\n nodeRef: nodeRef,\n timeout: timeout === 'auto' ? null : timeout,\n ...other,\n children: (state, {\n ownerState: incomingOwnerState,\n ...restChildProps\n }) => /*#__PURE__*/_jsx(CollapseRoot, {\n as: component,\n className: clsx(classes.root, className, {\n 'entered': classes.entered,\n 'exited': !inProp && collapsedSize === '0px' && classes.hidden\n }[state]),\n style: {\n [isHorizontal ? 'minWidth' : 'minHeight']: collapsedSize,\n ...style\n },\n ref: handleRef,\n ownerState: {\n ...ownerState,\n state\n },\n ...restChildProps,\n children: /*#__PURE__*/_jsx(CollapseWrapper, {\n ownerState: {\n ...ownerState,\n state\n },\n className: classes.wrapper,\n ref: wrapperRef,\n children: /*#__PURE__*/_jsx(CollapseWrapperInner, {\n ownerState: {\n ...ownerState,\n state\n },\n className: classes.wrapperInner,\n children: children\n })\n })\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Collapse.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Add a custom transition end trigger. Called with the transitioning DOM\n * node and a done callback. Allows for more fine grained transition end\n * logic. Note: Timeouts are still used as a fallback if provided.\n */\n addEndListener: PropTypes.func,\n /**\n * The content node to be collapsed.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The width (horizontal) or height (vertical) of the container when collapsed.\n * @default '0px'\n */\n collapsedSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: elementTypeAcceptingRef,\n /**\n * The transition timing function.\n * You may specify a single easing or a object containing enter and exit values.\n */\n easing: PropTypes.oneOfType([PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string\n }), PropTypes.string]),\n /**\n * If `true`, the component will transition in.\n */\n in: PropTypes.bool,\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n /**\n * The transition orientation.\n * @default 'vertical'\n */\n orientation: PropTypes.oneOf(['horizontal', 'vertical']),\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n *\n * Set to 'auto' to automatically calculate transition time based on height.\n * @default duration.standard\n */\n timeout: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nif (Collapse) {\n Collapse.muiSupportAuto = true;\n}\nexport default Collapse;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getPaperUtilityClass(slot) {\n return generateUtilityClass('MuiPaper', slot);\n}\nconst paperClasses = generateUtilityClasses('MuiPaper', ['root', 'rounded', 'outlined', 'elevation', 'elevation0', 'elevation1', 'elevation2', 'elevation3', 'elevation4', 'elevation5', 'elevation6', 'elevation7', 'elevation8', 'elevation9', 'elevation10', 'elevation11', 'elevation12', 'elevation13', 'elevation14', 'elevation15', 'elevation16', 'elevation17', 'elevation18', 'elevation19', 'elevation20', 'elevation21', 'elevation22', 'elevation23', 'elevation24']);\nexport default paperClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport integerPropType from '@mui/utils/integerPropType';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport { styled, useTheme } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport getOverlayAlpha from \"../styles/getOverlayAlpha.js\";\nimport { getPaperUtilityClass } from \"./paperClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n square,\n elevation,\n variant,\n classes\n } = ownerState;\n const slots = {\n root: ['root', variant, !square && 'rounded', variant === 'elevation' && `elevation${elevation}`]\n };\n return composeClasses(slots, getPaperUtilityClass, classes);\n};\nconst PaperRoot = styled('div', {\n name: 'MuiPaper',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant], !ownerState.square && styles.rounded, ownerState.variant === 'elevation' && styles[`elevation${ownerState.elevation}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n backgroundColor: (theme.vars || theme).palette.background.paper,\n color: (theme.vars || theme).palette.text.primary,\n transition: theme.transitions.create('box-shadow'),\n variants: [{\n props: ({\n ownerState\n }) => !ownerState.square,\n style: {\n borderRadius: theme.shape.borderRadius\n }\n }, {\n props: {\n variant: 'outlined'\n },\n style: {\n border: `1px solid ${(theme.vars || theme).palette.divider}`\n }\n }, {\n props: {\n variant: 'elevation'\n },\n style: {\n boxShadow: 'var(--Paper-shadow)',\n backgroundImage: 'var(--Paper-overlay)'\n }\n }]\n})));\nconst Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiPaper'\n });\n const theme = useTheme();\n const {\n className,\n component = 'div',\n elevation = 1,\n square = false,\n variant = 'elevation',\n ...other\n } = props;\n const ownerState = {\n ...props,\n component,\n elevation,\n square,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n if (process.env.NODE_ENV !== 'production') {\n if (theme.shadows[elevation] === undefined) {\n console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \\`theme.shadows[${elevation}]\\` is defined.`].join('\\n'));\n }\n }\n return /*#__PURE__*/_jsx(PaperRoot, {\n as: component,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ref: ref,\n ...other,\n style: {\n ...(variant === 'elevation' && {\n '--Paper-shadow': (theme.vars || theme).shadows[elevation],\n ...(theme.vars && {\n '--Paper-overlay': theme.vars.overlays?.[elevation]\n }),\n ...(!theme.vars && theme.palette.mode === 'dark' && {\n '--Paper-overlay': `linear-gradient(${alpha('#fff', getOverlayAlpha(elevation))}, ${alpha('#fff', getOverlayAlpha(elevation))})`\n })\n }),\n ...other.style\n }\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Paper.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * Shadow depth, corresponds to `dp` in the spec.\n * It accepts values between 0 and 24 inclusive.\n * @default 1\n */\n elevation: chainPropTypes(integerPropType, props => {\n const {\n elevation,\n variant\n } = props;\n if (elevation > 0 && variant === 'outlined') {\n return new Error(`MUI: Combining \\`elevation={${elevation}}\\` with \\`variant=\"${variant}\"\\` has no effect. Either use \\`elevation={0}\\` or use a different \\`variant\\`.`);\n }\n return null;\n }),\n /**\n * If `true`, rounded corners are disabled.\n * @default false\n */\n square: PropTypes.bool,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The variant to use.\n * @default 'elevation'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['elevation', 'outlined']), PropTypes.string])\n} : void 0;\nexport default Paper;","'use client';\n\nimport * as React from 'react';\n\n/**\n * @ignore - internal component.\n * @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}\n */\nconst AccordionContext = /*#__PURE__*/React.createContext({});\nif (process.env.NODE_ENV !== 'production') {\n AccordionContext.displayName = 'AccordionContext';\n}\nexport default AccordionContext;","'use client';\n\nimport useForkRef from '@mui/utils/useForkRef';\nimport appendOwnerState from '@mui/utils/appendOwnerState';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport mergeSlotProps from '@mui/utils/mergeSlotProps';\n/**\n * An internal function to create a Material UI slot.\n *\n * This is an advanced version of Base UI `useSlotProps` because Material UI allows leaf component to be customized via `component` prop\n * while Base UI does not need to support leaf component customization.\n *\n * @param {string} name: name of the slot\n * @param {object} parameters\n * @returns {[Slot, slotProps]} The slot's React component and the slot's props\n *\n * Note: the returned slot's props\n * - will never contain `component` prop.\n * - might contain `as` prop.\n */\nexport default function useSlot(\n/**\n * The slot's name. All Material UI components should have `root` slot.\n *\n * If the name is `root`, the logic behaves differently from other slots,\n * e.g. the `externalForwardedProps` are spread to `root` slot but not other slots.\n */\nname, parameters) {\n const {\n className,\n elementType: initialElementType,\n ownerState,\n externalForwardedProps,\n internalForwardedProps,\n shouldForwardComponentProp = false,\n ...useSlotPropsParams\n } = parameters;\n const {\n component: rootComponent,\n slots = {\n [name]: undefined\n },\n slotProps = {\n [name]: undefined\n },\n ...other\n } = externalForwardedProps;\n const elementType = slots[name] || initialElementType;\n\n // `slotProps[name]` can be a callback that receives the component's ownerState.\n // `resolvedComponentsProps` is always a plain object.\n const resolvedComponentsProps = resolveComponentProps(slotProps[name], ownerState);\n const {\n props: {\n component: slotComponent,\n ...mergedProps\n },\n internalRef\n } = mergeSlotProps({\n className,\n ...useSlotPropsParams,\n externalForwardedProps: name === 'root' ? other : undefined,\n externalSlotProps: resolvedComponentsProps\n });\n const ref = useForkRef(internalRef, resolvedComponentsProps?.ref, parameters.ref);\n const LeafComponent = name === 'root' ? slotComponent || rootComponent : slotComponent;\n const props = appendOwnerState(elementType, {\n ...(name === 'root' && !rootComponent && !slots[name] && internalForwardedProps),\n ...(name !== 'root' && !slots[name] && internalForwardedProps),\n ...mergedProps,\n ...(LeafComponent && !shouldForwardComponentProp && {\n as: LeafComponent\n }),\n ...(LeafComponent && shouldForwardComponentProp && {\n component: LeafComponent\n }),\n ref\n }, ownerState);\n return [elementType, props];\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getAccordionUtilityClass(slot) {\n return generateUtilityClass('MuiAccordion', slot);\n}\nconst accordionClasses = generateUtilityClasses('MuiAccordion', ['root', 'heading', 'rounded', 'expanded', 'disabled', 'gutters', 'region']);\nexport default accordionClasses;","'use client';\n\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Collapse from \"../Collapse/index.js\";\nimport Paper from \"../Paper/index.js\";\nimport AccordionContext from \"./AccordionContext.js\";\nimport useControlled from \"../utils/useControlled.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport accordionClasses, { getAccordionUtilityClass } from \"./accordionClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n square,\n expanded,\n disabled,\n disableGutters\n } = ownerState;\n const slots = {\n root: ['root', !square && 'rounded', expanded && 'expanded', disabled && 'disabled', !disableGutters && 'gutters'],\n heading: ['heading'],\n region: ['region']\n };\n return composeClasses(slots, getAccordionUtilityClass, classes);\n};\nconst AccordionRoot = styled(Paper, {\n name: 'MuiAccordion',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [{\n [`& .${accordionClasses.region}`]: styles.region\n }, styles.root, !ownerState.square && styles.rounded, !ownerState.disableGutters && styles.gutters];\n }\n})(memoTheme(({\n theme\n}) => {\n const transition = {\n duration: theme.transitions.duration.shortest\n };\n return {\n position: 'relative',\n transition: theme.transitions.create(['margin'], transition),\n overflowAnchor: 'none',\n // Keep the same scrolling position\n '&::before': {\n position: 'absolute',\n left: 0,\n top: -1,\n right: 0,\n height: 1,\n content: '\"\"',\n opacity: 1,\n backgroundColor: (theme.vars || theme).palette.divider,\n transition: theme.transitions.create(['opacity', 'background-color'], transition)\n },\n '&:first-of-type': {\n '&::before': {\n display: 'none'\n }\n },\n [`&.${accordionClasses.expanded}`]: {\n '&::before': {\n opacity: 0\n },\n '&:first-of-type': {\n marginTop: 0\n },\n '&:last-of-type': {\n marginBottom: 0\n },\n '& + &': {\n '&::before': {\n display: 'none'\n }\n }\n },\n [`&.${accordionClasses.disabled}`]: {\n backgroundColor: (theme.vars || theme).palette.action.disabledBackground\n }\n };\n}), memoTheme(({\n theme\n}) => ({\n variants: [{\n props: props => !props.square,\n style: {\n borderRadius: 0,\n '&:first-of-type': {\n borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,\n borderTopRightRadius: (theme.vars || theme).shape.borderRadius\n },\n '&:last-of-type': {\n borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,\n borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,\n // Fix a rendering issue on Edge\n '@supports (-ms-ime-align: auto)': {\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 0\n }\n }\n }\n }, {\n props: props => !props.disableGutters,\n style: {\n [`&.${accordionClasses.expanded}`]: {\n margin: '16px 0'\n }\n }\n }]\n})));\nconst AccordionHeading = styled('h3', {\n name: 'MuiAccordion',\n slot: 'Heading',\n overridesResolver: (props, styles) => styles.heading\n})({\n all: 'unset'\n});\nconst Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiAccordion'\n });\n const {\n children: childrenProp,\n className,\n defaultExpanded = false,\n disabled = false,\n disableGutters = false,\n expanded: expandedProp,\n onChange,\n square = false,\n slots = {},\n slotProps = {},\n TransitionComponent: TransitionComponentProp,\n TransitionProps: TransitionPropsProp,\n ...other\n } = props;\n const [expanded, setExpandedState] = useControlled({\n controlled: expandedProp,\n default: defaultExpanded,\n name: 'Accordion',\n state: 'expanded'\n });\n const handleChange = React.useCallback(event => {\n setExpandedState(!expanded);\n if (onChange) {\n onChange(event, !expanded);\n }\n }, [expanded, onChange, setExpandedState]);\n const [summary, ...children] = React.Children.toArray(childrenProp);\n const contextValue = React.useMemo(() => ({\n expanded,\n disabled,\n disableGutters,\n toggle: handleChange\n }), [expanded, disabled, disableGutters, handleChange]);\n const ownerState = {\n ...props,\n square,\n disabled,\n disableGutters,\n expanded\n };\n const classes = useUtilityClasses(ownerState);\n const backwardCompatibleSlots = {\n transition: TransitionComponentProp,\n ...slots\n };\n const backwardCompatibleSlotProps = {\n transition: TransitionPropsProp,\n ...slotProps\n };\n const externalForwardedProps = {\n slots: backwardCompatibleSlots,\n slotProps: backwardCompatibleSlotProps\n };\n const [RootSlot, rootProps] = useSlot('root', {\n elementType: AccordionRoot,\n externalForwardedProps: {\n ...externalForwardedProps,\n ...other\n },\n className: clsx(classes.root, className),\n shouldForwardComponentProp: true,\n ownerState,\n ref,\n additionalProps: {\n square\n }\n });\n const [AccordionHeadingSlot, accordionProps] = useSlot('heading', {\n elementType: AccordionHeading,\n externalForwardedProps,\n className: classes.heading,\n ownerState\n });\n const [TransitionSlot, transitionProps] = useSlot('transition', {\n elementType: Collapse,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsxs(RootSlot, {\n ...rootProps,\n children: [/*#__PURE__*/_jsx(AccordionHeadingSlot, {\n ...accordionProps,\n children: /*#__PURE__*/_jsx(AccordionContext.Provider, {\n value: contextValue,\n children: summary\n })\n }), /*#__PURE__*/_jsx(TransitionSlot, {\n in: expanded,\n timeout: \"auto\",\n ...transitionProps,\n children: /*#__PURE__*/_jsx(\"div\", {\n \"aria-labelledby\": summary.props.id,\n id: summary.props['aria-controls'],\n role: \"region\",\n className: classes.region,\n children: children\n })\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Accordion.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: chainPropTypes(PropTypes.node.isRequired, props => {\n const summary = React.Children.toArray(props.children)[0];\n if (isFragment(summary)) {\n return new Error(\"MUI: The Accordion doesn't accept a Fragment as a child. \" + 'Consider providing an array instead.');\n }\n if (! /*#__PURE__*/React.isValidElement(summary)) {\n return new Error('MUI: Expected the first child of Accordion to be a valid element.');\n }\n return null;\n }),\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * If `true`, expands the accordion by default.\n * @default false\n */\n defaultExpanded: PropTypes.bool,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, it removes the margin between two expanded accordion items and the increase of height.\n * @default false\n */\n disableGutters: PropTypes.bool,\n /**\n * If `true`, expands the accordion, otherwise collapse it.\n * Setting this prop enables control over the accordion.\n */\n expanded: PropTypes.bool,\n /**\n * Callback fired when the expand/collapse state is changed.\n *\n * @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.\n * @param {boolean} expanded The `expanded` state of the accordion.\n */\n onChange: PropTypes.func,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n heading: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n heading: PropTypes.elementType,\n root: PropTypes.elementType,\n transition: PropTypes.elementType\n }),\n /**\n * If `true`, rounded corners are disabled.\n * @default false\n */\n square: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The component used for the transition.\n * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n * @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n TransitionComponent: PropTypes.elementType,\n /**\n * Props applied to the transition element.\n * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.\n * @deprecated Use `slotProps.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default Accordion;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getAccordionDetailsUtilityClass(slot) {\n return generateUtilityClass('MuiAccordionDetails', slot);\n}\nconst accordionDetailsClasses = generateUtilityClasses('MuiAccordionDetails', ['root']);\nexport default accordionDetailsClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getAccordionDetailsUtilityClass } from \"./accordionDetailsClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getAccordionDetailsUtilityClass, classes);\n};\nconst AccordionDetailsRoot = styled('div', {\n name: 'MuiAccordionDetails',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})(memoTheme(({\n theme\n}) => ({\n padding: theme.spacing(1, 2, 2)\n})));\nconst AccordionDetails = /*#__PURE__*/React.forwardRef(function AccordionDetails(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiAccordionDetails'\n });\n const {\n className,\n ...other\n } = props;\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(AccordionDetailsRoot, {\n className: clsx(classes.root, className),\n ref: ref,\n ownerState: ownerState,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? AccordionDetails.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default AccordionDetails;","'use client';\n\nimport * as React from 'react';\nimport useLazyRef from '@mui/utils/useLazyRef';\n/**\n * Lazy initialization container for the Ripple instance. This improves\n * performance by delaying mounting the ripple until it's needed.\n */\nexport class LazyRipple {\n /** React ref to the ripple instance */\n\n /** If the ripple component should be mounted */\n\n /** Promise that resolves when the ripple component is mounted */\n\n /** If the ripple component has been mounted */\n\n /** React state hook setter */\n\n static create() {\n return new LazyRipple();\n }\n static use() {\n /* eslint-disable */\n const ripple = useLazyRef(LazyRipple.create).current;\n const [shouldMount, setShouldMount] = React.useState(false);\n ripple.shouldMount = shouldMount;\n ripple.setShouldMount = setShouldMount;\n React.useEffect(ripple.mountEffect, [shouldMount]);\n /* eslint-enable */\n\n return ripple;\n }\n constructor() {\n this.ref = {\n current: null\n };\n this.mounted = null;\n this.didMount = false;\n this.shouldMount = false;\n this.setShouldMount = null;\n }\n mount() {\n if (!this.mounted) {\n this.mounted = createControlledPromise();\n this.shouldMount = true;\n this.setShouldMount(this.shouldMount);\n }\n return this.mounted;\n }\n mountEffect = () => {\n if (this.shouldMount && !this.didMount) {\n if (this.ref.current !== null) {\n this.didMount = true;\n this.mounted.resolve();\n }\n }\n };\n\n /* Ripple API */\n\n start(...args) {\n this.mount().then(() => this.ref.current?.start(...args));\n }\n stop(...args) {\n this.mount().then(() => this.ref.current?.stop(...args));\n }\n pulsate(...args) {\n this.mount().then(() => this.ref.current?.pulsate(...args));\n }\n}\nexport default function useLazyRipple() {\n return LazyRipple.use();\n}\nfunction createControlledPromise() {\n let resolve;\n let reject;\n const p = new Promise((resolveFn, rejectFn) => {\n resolve = resolveFn;\n reject = rejectFn;\n });\n p.resolve = resolve;\n p.reject = reject;\n return p;\n}","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction Ripple(props) {\n const {\n className,\n classes,\n pulsate = false,\n rippleX,\n rippleY,\n rippleSize,\n in: inProp,\n onExited,\n timeout\n } = props;\n const [leaving, setLeaving] = React.useState(false);\n const rippleClassName = clsx(className, classes.ripple, classes.rippleVisible, pulsate && classes.ripplePulsate);\n const rippleStyles = {\n width: rippleSize,\n height: rippleSize,\n top: -(rippleSize / 2) + rippleY,\n left: -(rippleSize / 2) + rippleX\n };\n const childClassName = clsx(classes.child, leaving && classes.childLeaving, pulsate && classes.childPulsate);\n if (!inProp && !leaving) {\n setLeaving(true);\n }\n React.useEffect(() => {\n if (!inProp && onExited != null) {\n // react-transition-group#onExited\n const timeoutId = setTimeout(onExited, timeout);\n return () => {\n clearTimeout(timeoutId);\n };\n }\n return undefined;\n }, [onExited, inProp, timeout]);\n return /*#__PURE__*/_jsx(\"span\", {\n className: rippleClassName,\n style: rippleStyles,\n children: /*#__PURE__*/_jsx(\"span\", {\n className: childClassName\n })\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? Ripple.propTypes /* remove-proptypes */ = {\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object.isRequired,\n className: PropTypes.string,\n /**\n * @ignore - injected from TransitionGroup\n */\n in: PropTypes.bool,\n /**\n * @ignore - injected from TransitionGroup\n */\n onExited: PropTypes.func,\n /**\n * If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.\n */\n pulsate: PropTypes.bool,\n /**\n * Diameter of the ripple.\n */\n rippleSize: PropTypes.number,\n /**\n * Horizontal position of the ripple center.\n */\n rippleX: PropTypes.number,\n /**\n * Vertical position of the ripple center.\n */\n rippleY: PropTypes.number,\n /**\n * exit delay\n */\n timeout: PropTypes.number.isRequired\n} : void 0;\nexport default Ripple;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTouchRippleUtilityClass(slot) {\n return generateUtilityClass('MuiTouchRipple', slot);\n}\nconst touchRippleClasses = generateUtilityClasses('MuiTouchRipple', ['root', 'ripple', 'rippleVisible', 'ripplePulsate', 'child', 'childLeaving', 'childPulsate']);\nexport default touchRippleClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { TransitionGroup } from 'react-transition-group';\nimport clsx from 'clsx';\nimport useTimeout from '@mui/utils/useTimeout';\nimport { keyframes, styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Ripple from \"./Ripple.js\";\nimport touchRippleClasses from \"./touchRippleClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DURATION = 550;\nexport const DELAY_RIPPLE = 80;\nconst enterKeyframe = keyframes`\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n`;\nconst exitKeyframe = keyframes`\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n`;\nconst pulsateKeyframe = keyframes`\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n`;\nexport const TouchRippleRoot = styled('span', {\n name: 'MuiTouchRipple',\n slot: 'Root'\n})({\n overflow: 'hidden',\n pointerEvents: 'none',\n position: 'absolute',\n zIndex: 0,\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: 'inherit'\n});\n\n// This `styled()` function invokes keyframes. `styled-components` only supports keyframes\n// in string templates. Do not convert these styles in JS object as it will break.\nexport const TouchRippleRipple = styled(Ripple, {\n name: 'MuiTouchRipple',\n slot: 'Ripple'\n})`\n opacity: 0;\n position: absolute;\n\n &.${touchRippleClasses.rippleVisible} {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ${enterKeyframe};\n animation-duration: ${DURATION}ms;\n animation-timing-function: ${({\n theme\n}) => theme.transitions.easing.easeInOut};\n }\n\n &.${touchRippleClasses.ripplePulsate} {\n animation-duration: ${({\n theme\n}) => theme.transitions.duration.shorter}ms;\n }\n\n & .${touchRippleClasses.child} {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & .${touchRippleClasses.childLeaving} {\n opacity: 0;\n animation-name: ${exitKeyframe};\n animation-duration: ${DURATION}ms;\n animation-timing-function: ${({\n theme\n}) => theme.transitions.easing.easeInOut};\n }\n\n & .${touchRippleClasses.childPulsate} {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ${pulsateKeyframe};\n animation-duration: 2500ms;\n animation-timing-function: ${({\n theme\n}) => theme.transitions.easing.easeInOut};\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n`;\n\n/**\n * @ignore - internal component.\n *\n * TODO v5: Make private\n */\nconst TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTouchRipple'\n });\n const {\n center: centerProp = false,\n classes = {},\n className,\n ...other\n } = props;\n const [ripples, setRipples] = React.useState([]);\n const nextKey = React.useRef(0);\n const rippleCallback = React.useRef(null);\n React.useEffect(() => {\n if (rippleCallback.current) {\n rippleCallback.current();\n rippleCallback.current = null;\n }\n }, [ripples]);\n\n // Used to filter out mouse emulated events on mobile.\n const ignoringMouseDown = React.useRef(false);\n // We use a timer in order to only show the ripples for touch \"click\" like events.\n // We don't want to display the ripple for touch scroll events.\n const startTimer = useTimeout();\n\n // This is the hook called once the previous timeout is ready.\n const startTimerCommit = React.useRef(null);\n const container = React.useRef(null);\n const startCommit = React.useCallback(params => {\n const {\n pulsate,\n rippleX,\n rippleY,\n rippleSize,\n cb\n } = params;\n setRipples(oldRipples => [...oldRipples, /*#__PURE__*/_jsx(TouchRippleRipple, {\n classes: {\n ripple: clsx(classes.ripple, touchRippleClasses.ripple),\n rippleVisible: clsx(classes.rippleVisible, touchRippleClasses.rippleVisible),\n ripplePulsate: clsx(classes.ripplePulsate, touchRippleClasses.ripplePulsate),\n child: clsx(classes.child, touchRippleClasses.child),\n childLeaving: clsx(classes.childLeaving, touchRippleClasses.childLeaving),\n childPulsate: clsx(classes.childPulsate, touchRippleClasses.childPulsate)\n },\n timeout: DURATION,\n pulsate: pulsate,\n rippleX: rippleX,\n rippleY: rippleY,\n rippleSize: rippleSize\n }, nextKey.current)]);\n nextKey.current += 1;\n rippleCallback.current = cb;\n }, [classes]);\n const start = React.useCallback((event = {}, options = {}, cb = () => {}) => {\n const {\n pulsate = false,\n center = centerProp || options.pulsate,\n fakeElement = false // For test purposes\n } = options;\n if (event?.type === 'mousedown' && ignoringMouseDown.current) {\n ignoringMouseDown.current = false;\n return;\n }\n if (event?.type === 'touchstart') {\n ignoringMouseDown.current = true;\n }\n const element = fakeElement ? null : container.current;\n const rect = element ? element.getBoundingClientRect() : {\n width: 0,\n height: 0,\n left: 0,\n top: 0\n };\n\n // Get the size of the ripple\n let rippleX;\n let rippleY;\n let rippleSize;\n if (center || event === undefined || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {\n rippleX = Math.round(rect.width / 2);\n rippleY = Math.round(rect.height / 2);\n } else {\n const {\n clientX,\n clientY\n } = event.touches && event.touches.length > 0 ? event.touches[0] : event;\n rippleX = Math.round(clientX - rect.left);\n rippleY = Math.round(clientY - rect.top);\n }\n if (center) {\n rippleSize = Math.sqrt((2 * rect.width ** 2 + rect.height ** 2) / 3);\n\n // For some reason the animation is broken on Mobile Chrome if the size is even.\n if (rippleSize % 2 === 0) {\n rippleSize += 1;\n }\n } else {\n const sizeX = Math.max(Math.abs((element ? element.clientWidth : 0) - rippleX), rippleX) * 2 + 2;\n const sizeY = Math.max(Math.abs((element ? element.clientHeight : 0) - rippleY), rippleY) * 2 + 2;\n rippleSize = Math.sqrt(sizeX ** 2 + sizeY ** 2);\n }\n\n // Touche devices\n if (event?.touches) {\n // check that this isn't another touchstart due to multitouch\n // otherwise we will only clear a single timer when unmounting while two\n // are running\n if (startTimerCommit.current === null) {\n // Prepare the ripple effect.\n startTimerCommit.current = () => {\n startCommit({\n pulsate,\n rippleX,\n rippleY,\n rippleSize,\n cb\n });\n };\n // Delay the execution of the ripple effect.\n // We have to make a tradeoff with this delay value.\n startTimer.start(DELAY_RIPPLE, () => {\n if (startTimerCommit.current) {\n startTimerCommit.current();\n startTimerCommit.current = null;\n }\n });\n }\n } else {\n startCommit({\n pulsate,\n rippleX,\n rippleY,\n rippleSize,\n cb\n });\n }\n }, [centerProp, startCommit, startTimer]);\n const pulsate = React.useCallback(() => {\n start({}, {\n pulsate: true\n });\n }, [start]);\n const stop = React.useCallback((event, cb) => {\n startTimer.clear();\n\n // The touch interaction occurs too quickly.\n // We still want to show ripple effect.\n if (event?.type === 'touchend' && startTimerCommit.current) {\n startTimerCommit.current();\n startTimerCommit.current = null;\n startTimer.start(0, () => {\n stop(event, cb);\n });\n return;\n }\n startTimerCommit.current = null;\n setRipples(oldRipples => {\n if (oldRipples.length > 0) {\n return oldRipples.slice(1);\n }\n return oldRipples;\n });\n rippleCallback.current = cb;\n }, [startTimer]);\n React.useImperativeHandle(ref, () => ({\n pulsate,\n start,\n stop\n }), [pulsate, start, stop]);\n return /*#__PURE__*/_jsx(TouchRippleRoot, {\n className: clsx(touchRippleClasses.root, classes.root, className),\n ref: container,\n ...other,\n children: /*#__PURE__*/_jsx(TransitionGroup, {\n component: null,\n exit: true,\n children: ripples\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? TouchRipple.propTypes /* remove-proptypes */ = {\n /**\n * If `true`, the ripple starts at the center of the component\n * rather than at the point of interaction.\n */\n center: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string\n} : void 0;\nexport default TouchRipple;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getButtonBaseUtilityClass(slot) {\n return generateUtilityClass('MuiButtonBase', slot);\n}\nconst buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);\nexport default buttonBaseClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport composeClasses from '@mui/utils/composeClasses';\nimport isFocusVisible from '@mui/utils/isFocusVisible';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport useEventCallback from \"../utils/useEventCallback.js\";\nimport useLazyRipple from \"../useLazyRipple/index.js\";\nimport TouchRipple from \"./TouchRipple.js\";\nimport buttonBaseClasses, { getButtonBaseUtilityClass } from \"./buttonBaseClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n disabled,\n focusVisible,\n focusVisibleClassName,\n classes\n } = ownerState;\n const slots = {\n root: ['root', disabled && 'disabled', focusVisible && 'focusVisible']\n };\n const composedClasses = composeClasses(slots, getButtonBaseUtilityClass, classes);\n if (focusVisible && focusVisibleClassName) {\n composedClasses.root += ` ${focusVisibleClassName}`;\n }\n return composedClasses;\n};\nexport const ButtonBaseRoot = styled('button', {\n name: 'MuiButtonBase',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n position: 'relative',\n boxSizing: 'border-box',\n WebkitTapHighlightColor: 'transparent',\n backgroundColor: 'transparent',\n // Reset default value\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0,\n border: 0,\n margin: 0,\n // Remove the margin in Safari\n borderRadius: 0,\n padding: 0,\n // Remove the padding in Firefox\n cursor: 'pointer',\n userSelect: 'none',\n verticalAlign: 'middle',\n MozAppearance: 'none',\n // Reset\n WebkitAppearance: 'none',\n // Reset\n textDecoration: 'none',\n // So we take precedent over the style of a native <a /> element.\n color: 'inherit',\n '&::-moz-focus-inner': {\n borderStyle: 'none' // Remove Firefox dotted outline.\n },\n [`&.${buttonBaseClasses.disabled}`]: {\n pointerEvents: 'none',\n // Disable link interactions\n cursor: 'default'\n },\n '@media print': {\n colorAdjust: 'exact'\n }\n});\n\n/**\n * `ButtonBase` contains as few styles as possible.\n * It aims to be a simple building block for creating a button.\n * It contains a load of style reset and some focus/ripple logic.\n */\nconst ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiButtonBase'\n });\n const {\n action,\n centerRipple = false,\n children,\n className,\n component = 'button',\n disabled = false,\n disableRipple = false,\n disableTouchRipple = false,\n focusRipple = false,\n focusVisibleClassName,\n LinkComponent = 'a',\n onBlur,\n onClick,\n onContextMenu,\n onDragLeave,\n onFocus,\n onFocusVisible,\n onKeyDown,\n onKeyUp,\n onMouseDown,\n onMouseLeave,\n onMouseUp,\n onTouchEnd,\n onTouchMove,\n onTouchStart,\n tabIndex = 0,\n TouchRippleProps,\n touchRippleRef,\n type,\n ...other\n } = props;\n const buttonRef = React.useRef(null);\n const ripple = useLazyRipple();\n const handleRippleRef = useForkRef(ripple.ref, touchRippleRef);\n const [focusVisible, setFocusVisible] = React.useState(false);\n if (disabled && focusVisible) {\n setFocusVisible(false);\n }\n React.useImperativeHandle(action, () => ({\n focusVisible: () => {\n setFocusVisible(true);\n buttonRef.current.focus();\n }\n }), []);\n const enableTouchRipple = ripple.shouldMount && !disableRipple && !disabled;\n React.useEffect(() => {\n if (focusVisible && focusRipple && !disableRipple) {\n ripple.pulsate();\n }\n }, [disableRipple, focusRipple, focusVisible, ripple]);\n const handleMouseDown = useRippleHandler(ripple, 'start', onMouseDown, disableTouchRipple);\n const handleContextMenu = useRippleHandler(ripple, 'stop', onContextMenu, disableTouchRipple);\n const handleDragLeave = useRippleHandler(ripple, 'stop', onDragLeave, disableTouchRipple);\n const handleMouseUp = useRippleHandler(ripple, 'stop', onMouseUp, disableTouchRipple);\n const handleMouseLeave = useRippleHandler(ripple, 'stop', event => {\n if (focusVisible) {\n event.preventDefault();\n }\n if (onMouseLeave) {\n onMouseLeave(event);\n }\n }, disableTouchRipple);\n const handleTouchStart = useRippleHandler(ripple, 'start', onTouchStart, disableTouchRipple);\n const handleTouchEnd = useRippleHandler(ripple, 'stop', onTouchEnd, disableTouchRipple);\n const handleTouchMove = useRippleHandler(ripple, 'stop', onTouchMove, disableTouchRipple);\n const handleBlur = useRippleHandler(ripple, 'stop', event => {\n if (!isFocusVisible(event.target)) {\n setFocusVisible(false);\n }\n if (onBlur) {\n onBlur(event);\n }\n }, false);\n const handleFocus = useEventCallback(event => {\n // Fix for https://github.com/facebook/react/issues/7769\n if (!buttonRef.current) {\n buttonRef.current = event.currentTarget;\n }\n if (isFocusVisible(event.target)) {\n setFocusVisible(true);\n if (onFocusVisible) {\n onFocusVisible(event);\n }\n }\n if (onFocus) {\n onFocus(event);\n }\n });\n const isNonNativeButton = () => {\n const button = buttonRef.current;\n return component && component !== 'button' && !(button.tagName === 'A' && button.href);\n };\n const handleKeyDown = useEventCallback(event => {\n // Check if key is already down to avoid repeats being counted as multiple activations\n if (focusRipple && !event.repeat && focusVisible && event.key === ' ') {\n ripple.stop(event, () => {\n ripple.start(event);\n });\n }\n if (event.target === event.currentTarget && isNonNativeButton() && event.key === ' ') {\n event.preventDefault();\n }\n if (onKeyDown) {\n onKeyDown(event);\n }\n\n // Keyboard accessibility for non interactive elements\n if (event.target === event.currentTarget && isNonNativeButton() && event.key === 'Enter' && !disabled) {\n event.preventDefault();\n if (onClick) {\n onClick(event);\n }\n }\n });\n const handleKeyUp = useEventCallback(event => {\n // calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed\n // https://codesandbox.io/p/sandbox/button-keyup-preventdefault-dn7f0\n if (focusRipple && event.key === ' ' && focusVisible && !event.defaultPrevented) {\n ripple.stop(event, () => {\n ripple.pulsate(event);\n });\n }\n if (onKeyUp) {\n onKeyUp(event);\n }\n\n // Keyboard accessibility for non interactive elements\n if (onClick && event.target === event.currentTarget && isNonNativeButton() && event.key === ' ' && !event.defaultPrevented) {\n onClick(event);\n }\n });\n let ComponentProp = component;\n if (ComponentProp === 'button' && (other.href || other.to)) {\n ComponentProp = LinkComponent;\n }\n const buttonProps = {};\n if (ComponentProp === 'button') {\n buttonProps.type = type === undefined ? 'button' : type;\n buttonProps.disabled = disabled;\n } else {\n if (!other.href && !other.to) {\n buttonProps.role = 'button';\n }\n if (disabled) {\n buttonProps['aria-disabled'] = disabled;\n }\n }\n const handleRef = useForkRef(ref, buttonRef);\n const ownerState = {\n ...props,\n centerRipple,\n component,\n disabled,\n disableRipple,\n disableTouchRipple,\n focusRipple,\n tabIndex,\n focusVisible\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(ButtonBaseRoot, {\n as: ComponentProp,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n onBlur: handleBlur,\n onClick: onClick,\n onContextMenu: handleContextMenu,\n onFocus: handleFocus,\n onKeyDown: handleKeyDown,\n onKeyUp: handleKeyUp,\n onMouseDown: handleMouseDown,\n onMouseLeave: handleMouseLeave,\n onMouseUp: handleMouseUp,\n onDragLeave: handleDragLeave,\n onTouchEnd: handleTouchEnd,\n onTouchMove: handleTouchMove,\n onTouchStart: handleTouchStart,\n ref: handleRef,\n tabIndex: disabled ? -1 : tabIndex,\n type: type,\n ...buttonProps,\n ...other,\n children: [children, enableTouchRipple ? /*#__PURE__*/_jsx(TouchRipple, {\n ref: handleRippleRef,\n center: centerRipple,\n ...TouchRippleProps\n }) : null]\n });\n});\nfunction useRippleHandler(ripple, rippleAction, eventCallback, skipRippleAction = false) {\n return useEventCallback(event => {\n if (eventCallback) {\n eventCallback(event);\n }\n if (!skipRippleAction) {\n ripple[rippleAction](event);\n }\n return true;\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? ButtonBase.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * A ref for imperative actions.\n * It currently only supports `focusVisible()` action.\n */\n action: refType,\n /**\n * If `true`, the ripples are centered.\n * They won't start at the cursor interaction position.\n * @default false\n */\n centerRipple: PropTypes.bool,\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: elementTypeAcceptingRef,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * If `true`, the touch ripple effect is disabled.\n * @default false\n */\n disableTouchRipple: PropTypes.bool,\n /**\n * If `true`, the base button will have a keyboard focus ripple.\n * @default false\n */\n focusRipple: PropTypes.bool,\n /**\n * This prop can help identify which element has keyboard focus.\n * The class name will be applied when the element gains the focus through keyboard interaction.\n * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).\n * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).\n * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components\n * if needed.\n */\n focusVisibleClassName: PropTypes.string,\n /**\n * @ignore\n */\n href: PropTypes /* @typescript-to-proptypes-ignore */.any,\n /**\n * The component used to render a link when the `href` prop is provided.\n * @default 'a'\n */\n LinkComponent: PropTypes.elementType,\n /**\n * @ignore\n */\n onBlur: PropTypes.func,\n /**\n * @ignore\n */\n onClick: PropTypes.func,\n /**\n * @ignore\n */\n onContextMenu: PropTypes.func,\n /**\n * @ignore\n */\n onDragLeave: PropTypes.func,\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n /**\n * Callback fired when the component is focused with a keyboard.\n * We trigger a `onFocus` callback too.\n */\n onFocusVisible: PropTypes.func,\n /**\n * @ignore\n */\n onKeyDown: PropTypes.func,\n /**\n * @ignore\n */\n onKeyUp: PropTypes.func,\n /**\n * @ignore\n */\n onMouseDown: PropTypes.func,\n /**\n * @ignore\n */\n onMouseLeave: PropTypes.func,\n /**\n * @ignore\n */\n onMouseUp: PropTypes.func,\n /**\n * @ignore\n */\n onTouchEnd: PropTypes.func,\n /**\n * @ignore\n */\n onTouchMove: PropTypes.func,\n /**\n * @ignore\n */\n onTouchStart: PropTypes.func,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * @default 0\n */\n tabIndex: PropTypes.number,\n /**\n * Props applied to the `TouchRipple` element.\n */\n TouchRippleProps: PropTypes.object,\n /**\n * A ref that points to the `TouchRipple` element.\n */\n touchRippleRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n pulsate: PropTypes.func.isRequired,\n start: PropTypes.func.isRequired,\n stop: PropTypes.func.isRequired\n })\n })]),\n /**\n * @ignore\n */\n type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'reset', 'submit']), PropTypes.string])\n} : void 0;\nexport default ButtonBase;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getAccordionSummaryUtilityClass(slot) {\n return generateUtilityClass('MuiAccordionSummary', slot);\n}\nconst accordionSummaryClasses = generateUtilityClasses('MuiAccordionSummary', ['root', 'expanded', 'focusVisible', 'disabled', 'gutters', 'contentGutters', 'content', 'expandIconWrapper']);\nexport default accordionSummaryClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport AccordionContext from \"../Accordion/AccordionContext.js\";\nimport accordionSummaryClasses, { getAccordionSummaryUtilityClass } from \"./accordionSummaryClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n expanded,\n disabled,\n disableGutters\n } = ownerState;\n const slots = {\n root: ['root', expanded && 'expanded', disabled && 'disabled', !disableGutters && 'gutters'],\n focusVisible: ['focusVisible'],\n content: ['content', expanded && 'expanded', !disableGutters && 'contentGutters'],\n expandIconWrapper: ['expandIconWrapper', expanded && 'expanded']\n };\n return composeClasses(slots, getAccordionSummaryUtilityClass, classes);\n};\nconst AccordionSummaryRoot = styled(ButtonBase, {\n name: 'MuiAccordionSummary',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})(memoTheme(({\n theme\n}) => {\n const transition = {\n duration: theme.transitions.duration.shortest\n };\n return {\n display: 'flex',\n width: '100%',\n minHeight: 48,\n padding: theme.spacing(0, 2),\n transition: theme.transitions.create(['min-height', 'background-color'], transition),\n [`&.${accordionSummaryClasses.focusVisible}`]: {\n backgroundColor: (theme.vars || theme).palette.action.focus\n },\n [`&.${accordionSummaryClasses.disabled}`]: {\n opacity: (theme.vars || theme).palette.action.disabledOpacity\n },\n [`&:hover:not(.${accordionSummaryClasses.disabled})`]: {\n cursor: 'pointer'\n },\n variants: [{\n props: props => !props.disableGutters,\n style: {\n [`&.${accordionSummaryClasses.expanded}`]: {\n minHeight: 64\n }\n }\n }]\n };\n}));\nconst AccordionSummaryContent = styled('span', {\n name: 'MuiAccordionSummary',\n slot: 'Content',\n overridesResolver: (props, styles) => styles.content\n})(memoTheme(({\n theme\n}) => ({\n display: 'flex',\n textAlign: 'start',\n flexGrow: 1,\n margin: '12px 0',\n variants: [{\n props: props => !props.disableGutters,\n style: {\n transition: theme.transitions.create(['margin'], {\n duration: theme.transitions.duration.shortest\n }),\n [`&.${accordionSummaryClasses.expanded}`]: {\n margin: '20px 0'\n }\n }\n }]\n})));\nconst AccordionSummaryExpandIconWrapper = styled('span', {\n name: 'MuiAccordionSummary',\n slot: 'ExpandIconWrapper',\n overridesResolver: (props, styles) => styles.expandIconWrapper\n})(memoTheme(({\n theme\n}) => ({\n display: 'flex',\n color: (theme.vars || theme).palette.action.active,\n transform: 'rotate(0deg)',\n transition: theme.transitions.create('transform', {\n duration: theme.transitions.duration.shortest\n }),\n [`&.${accordionSummaryClasses.expanded}`]: {\n transform: 'rotate(180deg)'\n }\n})));\nconst AccordionSummary = /*#__PURE__*/React.forwardRef(function AccordionSummary(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiAccordionSummary'\n });\n const {\n children,\n className,\n expandIcon,\n focusVisibleClassName,\n onClick,\n slots,\n slotProps,\n ...other\n } = props;\n const {\n disabled = false,\n disableGutters,\n expanded,\n toggle\n } = React.useContext(AccordionContext);\n const handleChange = event => {\n if (toggle) {\n toggle(event);\n }\n if (onClick) {\n onClick(event);\n }\n };\n const ownerState = {\n ...props,\n expanded,\n disabled,\n disableGutters\n };\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots,\n slotProps\n };\n const [RootSlot, rootSlotProps] = useSlot('root', {\n ref,\n shouldForwardComponentProp: true,\n className: clsx(classes.root, className),\n elementType: AccordionSummaryRoot,\n externalForwardedProps: {\n ...externalForwardedProps,\n ...other\n },\n ownerState,\n additionalProps: {\n focusRipple: false,\n disableRipple: true,\n disabled,\n 'aria-expanded': expanded,\n focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName)\n },\n getSlotProps: handlers => ({\n ...handlers,\n onClick: event => {\n handlers.onClick?.(event);\n handleChange(event);\n }\n })\n });\n const [ContentSlot, contentSlotProps] = useSlot('content', {\n className: classes.content,\n elementType: AccordionSummaryContent,\n externalForwardedProps,\n ownerState\n });\n const [ExpandIconWrapperSlot, expandIconWrapperSlotProps] = useSlot('expandIconWrapper', {\n className: classes.expandIconWrapper,\n elementType: AccordionSummaryExpandIconWrapper,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsxs(RootSlot, {\n ...rootSlotProps,\n children: [/*#__PURE__*/_jsx(ContentSlot, {\n ...contentSlotProps,\n children: children\n }), expandIcon && /*#__PURE__*/_jsx(ExpandIconWrapperSlot, {\n ...expandIconWrapperSlotProps,\n children: expandIcon\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? AccordionSummary.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The icon to display as the expand indicator.\n */\n expandIcon: PropTypes.node,\n /**\n * This prop can help identify which element has keyboard focus.\n * The class name will be applied when the element gains the focus through keyboard interaction.\n * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).\n * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).\n * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components\n * if needed.\n */\n focusVisibleClassName: PropTypes.string,\n /**\n * @ignore\n */\n onClick: PropTypes.func,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n content: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n expandIconWrapper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n content: PropTypes.elementType,\n expandIconWrapper: PropTypes.elementType,\n root: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default AccordionSummary;","/**\n * Type guard to check if the object has a \"main\" property of type string.\n *\n * @param obj - the object to check\n * @returns boolean\n */\nfunction hasCorrectMainProperty(obj) {\n return typeof obj.main === 'string';\n}\n/**\n * Checks if the object conforms to the SimplePaletteColorOptions type.\n * The minimum requirement is that the object has a \"main\" property of type string, this is always checked.\n * Optionally, you can pass additional properties to check.\n *\n * @param obj - The object to check\n * @param additionalPropertiesToCheck - Array containing \"light\", \"dark\", and/or \"contrastText\"\n * @returns boolean\n */\nfunction checkSimplePaletteColorValues(obj, additionalPropertiesToCheck = []) {\n if (!hasCorrectMainProperty(obj)) {\n return false;\n }\n for (const value of additionalPropertiesToCheck) {\n if (!obj.hasOwnProperty(value) || typeof obj[value] !== 'string') {\n return false;\n }\n }\n return true;\n}\n\n/**\n * Creates a filter function used to filter simple palette color options.\n * The minimum requirement is that the object has a \"main\" property of type string, this is always checked.\n * Optionally, you can pass additional properties to check.\n *\n * @param additionalPropertiesToCheck - Array containing \"light\", \"dark\", and/or \"contrastText\"\n * @returns ([, value]: [any, PaletteColorOptions]) => boolean\n */\nexport default function createSimplePaletteValueFilter(additionalPropertiesToCheck = []) {\n return ([, value]) => value && checkSimplePaletteColorValues(value, additionalPropertiesToCheck);\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getAlertUtilityClass(slot) {\n return generateUtilityClass('MuiAlert', slot);\n}\nconst alertClasses = generateUtilityClasses('MuiAlert', ['root', 'action', 'icon', 'message', 'filled', 'colorSuccess', 'colorInfo', 'colorWarning', 'colorError', 'filledSuccess', 'filledInfo', 'filledWarning', 'filledError', 'outlined', 'outlinedSuccess', 'outlinedInfo', 'outlinedWarning', 'outlinedError', 'standard', 'standardSuccess', 'standardInfo', 'standardWarning', 'standardError']);\nexport default alertClasses;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCircularProgressUtilityClass(slot) {\n return generateUtilityClass('MuiCircularProgress', slot);\n}\nconst circularProgressClasses = generateUtilityClasses('MuiCircularProgress', ['root', 'determinate', 'indeterminate', 'colorPrimary', 'colorSecondary', 'svg', 'circle', 'circleDeterminate', 'circleIndeterminate', 'circleDisableShrink']);\nexport default circularProgressClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { keyframes, css, styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { getCircularProgressUtilityClass } from \"./circularProgressClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst SIZE = 44;\nconst circularRotateKeyframe = keyframes`\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n`;\nconst circularDashKeyframe = keyframes`\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: -126px;\n }\n`;\n\n// This implementation is for supporting both Styled-components v4+ and Pigment CSS.\n// A global animation has to be created here for Styled-components v4+ (https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#12).\n// which can be done by checking typeof indeterminate1Keyframe !== 'string' (at runtime, Pigment CSS transform keyframes`` to a string).\nconst rotateAnimation = typeof circularRotateKeyframe !== 'string' ? css`\n animation: ${circularRotateKeyframe} 1.4s linear infinite;\n ` : null;\nconst dashAnimation = typeof circularDashKeyframe !== 'string' ? css`\n animation: ${circularDashKeyframe} 1.4s ease-in-out infinite;\n ` : null;\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n variant,\n color,\n disableShrink\n } = ownerState;\n const slots = {\n root: ['root', variant, `color${capitalize(color)}`],\n svg: ['svg'],\n circle: ['circle', `circle${capitalize(variant)}`, disableShrink && 'circleDisableShrink']\n };\n return composeClasses(slots, getCircularProgressUtilityClass, classes);\n};\nconst CircularProgressRoot = styled('span', {\n name: 'MuiCircularProgress',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant], styles[`color${capitalize(ownerState.color)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n display: 'inline-block',\n variants: [{\n props: {\n variant: 'determinate'\n },\n style: {\n transition: theme.transitions.create('transform')\n }\n }, {\n props: {\n variant: 'indeterminate'\n },\n style: rotateAnimation || {\n animation: `${circularRotateKeyframe} 1.4s linear infinite`\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n color: (theme.vars || theme).palette[color].main\n }\n }))]\n})));\nconst CircularProgressSVG = styled('svg', {\n name: 'MuiCircularProgress',\n slot: 'Svg',\n overridesResolver: (props, styles) => styles.svg\n})({\n display: 'block' // Keeps the progress centered\n});\nconst CircularProgressCircle = styled('circle', {\n name: 'MuiCircularProgress',\n slot: 'Circle',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.circle, styles[`circle${capitalize(ownerState.variant)}`], ownerState.disableShrink && styles.circleDisableShrink];\n }\n})(memoTheme(({\n theme\n}) => ({\n stroke: 'currentColor',\n variants: [{\n props: {\n variant: 'determinate'\n },\n style: {\n transition: theme.transitions.create('stroke-dashoffset')\n }\n }, {\n props: {\n variant: 'indeterminate'\n },\n style: {\n // Some default value that looks fine waiting for the animation to kicks in.\n strokeDasharray: '80px, 200px',\n strokeDashoffset: 0 // Add the unit to fix a Edge 16 and below bug.\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.variant === 'indeterminate' && !ownerState.disableShrink,\n style: dashAnimation || {\n // At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.\n animation: `${circularDashKeyframe} 1.4s ease-in-out infinite`\n }\n }]\n})));\n\n/**\n * ## ARIA\n *\n * If the progress bar is describing the loading progress of a particular region of a page,\n * you should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\n * attribute to `true` on that region until it has finished loading.\n */\nconst CircularProgress = /*#__PURE__*/React.forwardRef(function CircularProgress(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiCircularProgress'\n });\n const {\n className,\n color = 'primary',\n disableShrink = false,\n size = 40,\n style,\n thickness = 3.6,\n value = 0,\n variant = 'indeterminate',\n ...other\n } = props;\n const ownerState = {\n ...props,\n color,\n disableShrink,\n size,\n thickness,\n value,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n const circleStyle = {};\n const rootStyle = {};\n const rootProps = {};\n if (variant === 'determinate') {\n const circumference = 2 * Math.PI * ((SIZE - thickness) / 2);\n circleStyle.strokeDasharray = circumference.toFixed(3);\n rootProps['aria-valuenow'] = Math.round(value);\n circleStyle.strokeDashoffset = `${((100 - value) / 100 * circumference).toFixed(3)}px`;\n rootStyle.transform = 'rotate(-90deg)';\n }\n return /*#__PURE__*/_jsx(CircularProgressRoot, {\n className: clsx(classes.root, className),\n style: {\n width: size,\n height: size,\n ...rootStyle,\n ...style\n },\n ownerState: ownerState,\n ref: ref,\n role: \"progressbar\",\n ...rootProps,\n ...other,\n children: /*#__PURE__*/_jsx(CircularProgressSVG, {\n className: classes.svg,\n ownerState: ownerState,\n viewBox: `${SIZE / 2} ${SIZE / 2} ${SIZE} ${SIZE}`,\n children: /*#__PURE__*/_jsx(CircularProgressCircle, {\n className: classes.circle,\n style: circleStyle,\n ownerState: ownerState,\n cx: SIZE,\n cy: SIZE,\n r: (SIZE - thickness) / 2,\n fill: \"none\",\n strokeWidth: thickness\n })\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? CircularProgress.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * If `true`, the shrink animation is disabled.\n * This only works if variant is `indeterminate`.\n * @default false\n */\n disableShrink: chainPropTypes(PropTypes.bool, props => {\n if (props.disableShrink && props.variant && props.variant !== 'indeterminate') {\n return new Error('MUI: You have provided the `disableShrink` prop ' + 'with a variant other than `indeterminate`. This will have no effect.');\n }\n return null;\n }),\n /**\n * The size of the component.\n * If using a number, the pixel unit is assumed.\n * If using a string, you need to provide the CSS unit, for example '3rem'.\n * @default 40\n */\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The thickness of the circle.\n * @default 3.6\n */\n thickness: PropTypes.number,\n /**\n * The value of the progress indicator for the determinate variant.\n * Value between 0 and 100.\n * @default 0\n */\n value: PropTypes.number,\n /**\n * The variant to use.\n * Use indeterminate when there is no progress value.\n * @default 'indeterminate'\n */\n variant: PropTypes.oneOf(['determinate', 'indeterminate'])\n} : void 0;\nexport default CircularProgress;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getIconButtonUtilityClass(slot) {\n return generateUtilityClass('MuiIconButton', slot);\n}\nconst iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge', 'loading', 'loadingIndicator', 'loadingWrapper']);\nexport default iconButtonClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport { unstable_useId as useId } from \"../utils/index.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport CircularProgress from \"../CircularProgress/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport iconButtonClasses, { getIconButtonUtilityClass } from \"./iconButtonClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disabled,\n color,\n edge,\n size,\n loading\n } = ownerState;\n const slots = {\n root: ['root', loading && 'loading', disabled && 'disabled', color !== 'default' && `color${capitalize(color)}`, edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`],\n loadingIndicator: ['loadingIndicator'],\n loadingWrapper: ['loadingWrapper']\n };\n return composeClasses(slots, getIconButtonUtilityClass, classes);\n};\nconst IconButtonRoot = styled(ButtonBase, {\n name: 'MuiIconButton',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.loading && styles.loading, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`], ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n textAlign: 'center',\n flex: '0 0 auto',\n fontSize: theme.typography.pxToRem(24),\n padding: 8,\n borderRadius: '50%',\n color: (theme.vars || theme).palette.action.active,\n transition: theme.transitions.create('background-color', {\n duration: theme.transitions.duration.shortest\n }),\n variants: [{\n props: props => !props.disableRipple,\n style: {\n '--IconButton-hoverBg': theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),\n '&:hover': {\n backgroundColor: 'var(--IconButton-hoverBg)',\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n }\n }, {\n props: {\n edge: 'start'\n },\n style: {\n marginLeft: -12\n }\n }, {\n props: {\n edge: 'start',\n size: 'small'\n },\n style: {\n marginLeft: -3\n }\n }, {\n props: {\n edge: 'end'\n },\n style: {\n marginRight: -12\n }\n }, {\n props: {\n edge: 'end',\n size: 'small'\n },\n style: {\n marginRight: -3\n }\n }]\n})), memoTheme(({\n theme\n}) => ({\n variants: [{\n props: {\n color: 'inherit'\n },\n style: {\n color: 'inherit'\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()) // check all the used fields in the style below\n .map(([color]) => ({\n props: {\n color\n },\n style: {\n color: (theme.vars || theme).palette[color].main\n }\n })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()) // check all the used fields in the style below\n .map(([color]) => ({\n props: {\n color\n },\n style: {\n '--IconButton-hoverBg': theme.vars ? `rgba(${(theme.vars || theme).palette[color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha((theme.vars || theme).palette[color].main, theme.palette.action.hoverOpacity)\n }\n })), {\n props: {\n size: 'small'\n },\n style: {\n padding: 5,\n fontSize: theme.typography.pxToRem(18)\n }\n }, {\n props: {\n size: 'large'\n },\n style: {\n padding: 12,\n fontSize: theme.typography.pxToRem(28)\n }\n }],\n [`&.${iconButtonClasses.disabled}`]: {\n backgroundColor: 'transparent',\n color: (theme.vars || theme).palette.action.disabled\n },\n [`&.${iconButtonClasses.loading}`]: {\n color: 'transparent'\n }\n})));\nconst IconButtonLoadingIndicator = styled('span', {\n name: 'MuiIconButton',\n slot: 'LoadingIndicator',\n overridesResolver: (props, styles) => styles.loadingIndicator\n})(({\n theme\n}) => ({\n display: 'none',\n position: 'absolute',\n visibility: 'visible',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)',\n color: (theme.vars || theme).palette.action.disabled,\n variants: [{\n props: {\n loading: true\n },\n style: {\n display: 'flex'\n }\n }]\n}));\n\n/**\n * Refer to the [Icons](/material-ui/icons/) section of the documentation\n * regarding the available icon options.\n */\nconst IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiIconButton'\n });\n const {\n edge = false,\n children,\n className,\n color = 'default',\n disabled = false,\n disableFocusRipple = false,\n size = 'medium',\n id: idProp,\n loading = null,\n loadingIndicator: loadingIndicatorProp,\n ...other\n } = props;\n const loadingId = useId(idProp);\n const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/_jsx(CircularProgress, {\n \"aria-labelledby\": loadingId,\n color: \"inherit\",\n size: 16\n });\n const ownerState = {\n ...props,\n edge,\n color,\n disabled,\n disableFocusRipple,\n loading,\n loadingIndicator,\n size\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(IconButtonRoot, {\n id: loading ? loadingId : idProp,\n className: clsx(classes.root, className),\n centerRipple: true,\n focusRipple: !disableFocusRipple,\n disabled: disabled || loading,\n ref: ref,\n ...other,\n ownerState: ownerState,\n children: [typeof loading === 'boolean' &&\n /*#__PURE__*/\n // use plain HTML span to minimize the runtime overhead\n _jsx(\"span\", {\n className: classes.loadingWrapper,\n style: {\n display: 'contents'\n },\n children: /*#__PURE__*/_jsx(IconButtonLoadingIndicator, {\n className: classes.loadingIndicator,\n ownerState: ownerState,\n children: loading && loadingIndicator\n })\n }), children]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? IconButton.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The icon to display.\n */\n children: chainPropTypes(PropTypes.node, props => {\n const found = React.Children.toArray(props.children).some(child => /*#__PURE__*/React.isValidElement(child) && child.props.onClick);\n if (found) {\n return new Error(['MUI: You are providing an onClick event listener to a child of a button element.', 'Prefer applying it to the IconButton directly.', 'This guarantees that the whole <button> will be responsive to click events.'].join('\\n'));\n }\n return null;\n }),\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'default'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the keyboard focus ripple is disabled.\n * @default false\n */\n disableFocusRipple: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * If given, uses a negative margin to counteract the padding on one\n * side (this is often helpful for aligning the left or right\n * side of the icon with content above or below, without ruining the border\n * size and shape).\n * @default false\n */\n edge: PropTypes.oneOf(['end', 'start', false]),\n /**\n * @ignore\n */\n id: PropTypes.string,\n /**\n * If `true`, the loading indicator is visible and the button is disabled.\n * If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).\n * @default null\n */\n loading: PropTypes.bool,\n /**\n * Element placed before the children if the button is in loading state.\n * The node should contain an element with `role=\"progressbar\"` with an accessible name.\n * By default, it renders a `CircularProgress` that is labeled by the button itself.\n * @default <CircularProgress color=\"inherit\" size={16} />\n */\n loadingIndicator: PropTypes.node,\n /**\n * The size of the component.\n * `small` is equivalent to the dense button styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default IconButton;","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z\"\n}), 'SuccessOutlined');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z\"\n}), 'ReportProblemOutlined');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z\"\n}), 'ErrorOutline');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z\"\n}), 'InfoOutlined');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n *\n * Alias to `Clear`.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n}), 'Close');","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { darken, lighten } from '@mui/system/colorManipulator';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport Paper from \"../Paper/index.js\";\nimport alertClasses, { getAlertUtilityClass } from \"./alertClasses.js\";\nimport IconButton from \"../IconButton/index.js\";\nimport SuccessOutlinedIcon from \"../internal/svg-icons/SuccessOutlined.js\";\nimport ReportProblemOutlinedIcon from \"../internal/svg-icons/ReportProblemOutlined.js\";\nimport ErrorOutlineIcon from \"../internal/svg-icons/ErrorOutline.js\";\nimport InfoOutlinedIcon from \"../internal/svg-icons/InfoOutlined.js\";\nimport CloseIcon from \"../internal/svg-icons/Close.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n variant,\n color,\n severity,\n classes\n } = ownerState;\n const slots = {\n root: ['root', `color${capitalize(color || severity)}`, `${variant}${capitalize(color || severity)}`, `${variant}`],\n icon: ['icon'],\n message: ['message'],\n action: ['action']\n };\n return composeClasses(slots, getAlertUtilityClass, classes);\n};\nconst AlertRoot = styled(Paper, {\n name: 'MuiAlert',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color || ownerState.severity)}`]];\n }\n})(memoTheme(({\n theme\n}) => {\n const getColor = theme.palette.mode === 'light' ? darken : lighten;\n const getBackgroundColor = theme.palette.mode === 'light' ? lighten : darken;\n return {\n ...theme.typography.body2,\n backgroundColor: 'transparent',\n display: 'flex',\n padding: '6px 16px',\n variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['light'])).map(([color]) => ({\n props: {\n colorSeverity: color,\n variant: 'standard'\n },\n style: {\n color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),\n backgroundColor: theme.vars ? theme.vars.palette.Alert[`${color}StandardBg`] : getBackgroundColor(theme.palette[color].light, 0.9),\n [`& .${alertClasses.icon}`]: theme.vars ? {\n color: theme.vars.palette.Alert[`${color}IconColor`]\n } : {\n color: theme.palette[color].main\n }\n }\n })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['light'])).map(([color]) => ({\n props: {\n colorSeverity: color,\n variant: 'outlined'\n },\n style: {\n color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),\n border: `1px solid ${(theme.vars || theme).palette[color].light}`,\n [`& .${alertClasses.icon}`]: theme.vars ? {\n color: theme.vars.palette.Alert[`${color}IconColor`]\n } : {\n color: theme.palette[color].main\n }\n }\n })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['dark'])).map(([color]) => ({\n props: {\n colorSeverity: color,\n variant: 'filled'\n },\n style: {\n fontWeight: theme.typography.fontWeightMedium,\n ...(theme.vars ? {\n color: theme.vars.palette.Alert[`${color}FilledColor`],\n backgroundColor: theme.vars.palette.Alert[`${color}FilledBg`]\n } : {\n backgroundColor: theme.palette.mode === 'dark' ? theme.palette[color].dark : theme.palette[color].main,\n color: theme.palette.getContrastText(theme.palette[color].main)\n })\n }\n }))]\n };\n}));\nconst AlertIcon = styled('div', {\n name: 'MuiAlert',\n slot: 'Icon',\n overridesResolver: (props, styles) => styles.icon\n})({\n marginRight: 12,\n padding: '7px 0',\n display: 'flex',\n fontSize: 22,\n opacity: 0.9\n});\nconst AlertMessage = styled('div', {\n name: 'MuiAlert',\n slot: 'Message',\n overridesResolver: (props, styles) => styles.message\n})({\n padding: '8px 0',\n minWidth: 0,\n overflow: 'auto'\n});\nconst AlertAction = styled('div', {\n name: 'MuiAlert',\n slot: 'Action',\n overridesResolver: (props, styles) => styles.action\n})({\n display: 'flex',\n alignItems: 'flex-start',\n padding: '4px 0 0 16px',\n marginLeft: 'auto',\n marginRight: -8\n});\nconst defaultIconMapping = {\n success: /*#__PURE__*/_jsx(SuccessOutlinedIcon, {\n fontSize: \"inherit\"\n }),\n warning: /*#__PURE__*/_jsx(ReportProblemOutlinedIcon, {\n fontSize: \"inherit\"\n }),\n error: /*#__PURE__*/_jsx(ErrorOutlineIcon, {\n fontSize: \"inherit\"\n }),\n info: /*#__PURE__*/_jsx(InfoOutlinedIcon, {\n fontSize: \"inherit\"\n })\n};\nconst Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiAlert'\n });\n const {\n action,\n children,\n className,\n closeText = 'Close',\n color,\n components = {},\n componentsProps = {},\n icon,\n iconMapping = defaultIconMapping,\n onClose,\n role = 'alert',\n severity = 'success',\n slotProps = {},\n slots = {},\n variant = 'standard',\n ...other\n } = props;\n const ownerState = {\n ...props,\n color,\n severity,\n variant,\n colorSeverity: color || severity\n };\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots: {\n closeButton: components.CloseButton,\n closeIcon: components.CloseIcon,\n ...slots\n },\n slotProps: {\n ...componentsProps,\n ...slotProps\n }\n };\n const [RootSlot, rootSlotProps] = useSlot('root', {\n ref,\n shouldForwardComponentProp: true,\n className: clsx(classes.root, className),\n elementType: AlertRoot,\n externalForwardedProps: {\n ...externalForwardedProps,\n ...other\n },\n ownerState,\n additionalProps: {\n role,\n elevation: 0\n }\n });\n const [IconSlot, iconSlotProps] = useSlot('icon', {\n className: classes.icon,\n elementType: AlertIcon,\n externalForwardedProps,\n ownerState\n });\n const [MessageSlot, messageSlotProps] = useSlot('message', {\n className: classes.message,\n elementType: AlertMessage,\n externalForwardedProps,\n ownerState\n });\n const [ActionSlot, actionSlotProps] = useSlot('action', {\n className: classes.action,\n elementType: AlertAction,\n externalForwardedProps,\n ownerState\n });\n const [CloseButtonSlot, closeButtonProps] = useSlot('closeButton', {\n elementType: IconButton,\n externalForwardedProps,\n ownerState\n });\n const [CloseIconSlot, closeIconProps] = useSlot('closeIcon', {\n elementType: CloseIcon,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsxs(RootSlot, {\n ...rootSlotProps,\n children: [icon !== false ? /*#__PURE__*/_jsx(IconSlot, {\n ...iconSlotProps,\n children: icon || iconMapping[severity] || defaultIconMapping[severity]\n }) : null, /*#__PURE__*/_jsx(MessageSlot, {\n ...messageSlotProps,\n children: children\n }), action != null ? /*#__PURE__*/_jsx(ActionSlot, {\n ...actionSlotProps,\n children: action\n }) : null, action == null && onClose ? /*#__PURE__*/_jsx(ActionSlot, {\n ...actionSlotProps,\n children: /*#__PURE__*/_jsx(CloseButtonSlot, {\n size: \"small\",\n \"aria-label\": closeText,\n title: closeText,\n color: \"inherit\",\n onClick: onClose,\n ...closeButtonProps,\n children: /*#__PURE__*/_jsx(CloseIconSlot, {\n fontSize: \"small\",\n ...closeIconProps\n })\n })\n }) : null]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Alert.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The action to display. It renders after the message, at the end of the alert.\n */\n action: PropTypes.node,\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * Override the default label for the *close popup* icon button.\n *\n * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).\n * @default 'Close'\n */\n closeText: PropTypes.string,\n /**\n * The color of the component. Unless provided, the value is taken from the `severity` prop.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The components used for each slot inside.\n *\n * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n components: PropTypes.shape({\n CloseButton: PropTypes.elementType,\n CloseIcon: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n closeButton: PropTypes.object,\n closeIcon: PropTypes.object\n }),\n /**\n * Override the icon displayed before the children.\n * Unless provided, the icon is mapped to the value of the `severity` prop.\n * Set to `false` to remove the `icon`.\n */\n icon: PropTypes.node,\n /**\n * The component maps the `severity` prop to a range of different icons,\n * for instance success to `<SuccessOutlined>`.\n * If you wish to change this mapping, you can provide your own.\n * Alternatively, you can use the `icon` prop to override the icon displayed.\n */\n iconMapping: PropTypes.shape({\n error: PropTypes.node,\n info: PropTypes.node,\n success: PropTypes.node,\n warning: PropTypes.node\n }),\n /**\n * Callback fired when the component requests to be closed.\n * When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onClose: PropTypes.func,\n /**\n * The ARIA role attribute of the element.\n * @default 'alert'\n */\n role: PropTypes.string,\n /**\n * The severity of the alert. This defines the color and icon used.\n * @default 'success'\n */\n severity: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n action: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n closeButton: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n closeIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n icon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n message: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n action: PropTypes.elementType,\n closeButton: PropTypes.elementType,\n closeIcon: PropTypes.elementType,\n icon: PropTypes.elementType,\n message: PropTypes.elementType,\n root: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The variant to use.\n * @default 'standard'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['filled', 'outlined', 'standard']), PropTypes.string])\n} : void 0;\nexport default Alert;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTypographyUtilityClass(slot) {\n return generateUtilityClass('MuiTypography', slot);\n}\nconst typographyClasses = generateUtilityClasses('MuiTypography', ['root', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'inherit', 'button', 'caption', 'overline', 'alignLeft', 'alignRight', 'alignCenter', 'alignJustify', 'noWrap', 'gutterBottom', 'paragraph']);\nexport default typographyClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled, internal_createExtendSxProp } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { getTypographyUtilityClass } from \"./typographyClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst v6Colors = {\n primary: true,\n secondary: true,\n error: true,\n info: true,\n success: true,\n warning: true,\n textPrimary: true,\n textSecondary: true,\n textDisabled: true\n};\nconst extendSxProp = internal_createExtendSxProp();\nconst useUtilityClasses = ownerState => {\n const {\n align,\n gutterBottom,\n noWrap,\n paragraph,\n variant,\n classes\n } = ownerState;\n const slots = {\n root: ['root', variant, ownerState.align !== 'inherit' && `align${capitalize(align)}`, gutterBottom && 'gutterBottom', noWrap && 'noWrap', paragraph && 'paragraph']\n };\n return composeClasses(slots, getTypographyUtilityClass, classes);\n};\nexport const TypographyRoot = styled('span', {\n name: 'MuiTypography',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.variant && styles[ownerState.variant], ownerState.align !== 'inherit' && styles[`align${capitalize(ownerState.align)}`], ownerState.noWrap && styles.noWrap, ownerState.gutterBottom && styles.gutterBottom, ownerState.paragraph && styles.paragraph];\n }\n})(memoTheme(({\n theme\n}) => ({\n margin: 0,\n variants: [{\n props: {\n variant: 'inherit'\n },\n style: {\n // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.\n font: 'inherit',\n lineHeight: 'inherit',\n letterSpacing: 'inherit'\n }\n }, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== 'inherit' && value && typeof value === 'object').map(([variant, value]) => ({\n props: {\n variant\n },\n style: value\n })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n color: (theme.vars || theme).palette[color].main\n }\n })), ...Object.entries(theme.palette?.text || {}).filter(([, value]) => typeof value === 'string').map(([color]) => ({\n props: {\n color: `text${capitalize(color)}`\n },\n style: {\n color: (theme.vars || theme).palette.text[color]\n }\n })), {\n props: ({\n ownerState\n }) => ownerState.align !== 'inherit',\n style: {\n textAlign: 'var(--Typography-textAlign)'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.noWrap,\n style: {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.gutterBottom,\n style: {\n marginBottom: '0.35em'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.paragraph,\n style: {\n marginBottom: 16\n }\n }]\n})));\nconst defaultVariantMapping = {\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n h5: 'h5',\n h6: 'h6',\n subtitle1: 'h6',\n subtitle2: 'h6',\n body1: 'p',\n body2: 'p',\n inherit: 'p'\n};\nconst Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, ref) {\n const {\n color,\n ...themeProps\n } = useDefaultProps({\n props: inProps,\n name: 'MuiTypography'\n });\n const isSxColor = !v6Colors[color];\n // TODO: Remove `extendSxProp` in v7\n const props = extendSxProp({\n ...themeProps,\n ...(isSxColor && {\n color\n })\n });\n const {\n align = 'inherit',\n className,\n component,\n gutterBottom = false,\n noWrap = false,\n paragraph = false,\n variant = 'body1',\n variantMapping = defaultVariantMapping,\n ...other\n } = props;\n const ownerState = {\n ...props,\n align,\n color,\n className,\n component,\n gutterBottom,\n noWrap,\n paragraph,\n variant,\n variantMapping\n };\n const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(TypographyRoot, {\n as: Component,\n ref: ref,\n className: clsx(classes.root, className),\n ...other,\n ownerState: ownerState,\n style: {\n ...(align !== 'inherit' && {\n '--Typography-textAlign': align\n }),\n ...other.style\n }\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Typography.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Set the text-align on the component.\n * @default 'inherit'\n */\n align: PropTypes.oneOf(['center', 'inherit', 'justify', 'left', 'right']),\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'success', 'error', 'info', 'warning', 'textPrimary', 'textSecondary', 'textDisabled']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, the text will have a bottom margin.\n * @default false\n */\n gutterBottom: PropTypes.bool,\n /**\n * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.\n *\n * Note that text overflow can only happen with block or inline-block level elements\n * (the element needs to have a width in order to overflow).\n * @default false\n */\n noWrap: PropTypes.bool,\n /**\n * If `true`, the element will be a paragraph element.\n * @default false\n * @deprecated Use the `component` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n paragraph: PropTypes.bool,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Applies the theme typography styles.\n * @default 'body1'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['body1', 'body2', 'button', 'caption', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'inherit', 'overline', 'subtitle1', 'subtitle2']), PropTypes.string]),\n /**\n * The component maps the variant prop to a range of different HTML element types.\n * For instance, subtitle1 to `<h6>`.\n * If you wish to change that mapping, you can provide your own.\n * Alternatively, you can use the `component` prop.\n * @default {\n * h1: 'h1',\n * h2: 'h2',\n * h3: 'h3',\n * h4: 'h4',\n * h5: 'h5',\n * h6: 'h6',\n * subtitle1: 'h6',\n * subtitle2: 'h6',\n * body1: 'p',\n * body2: 'p',\n * inherit: 'p',\n * }\n */\n variantMapping: PropTypes /* @typescript-to-proptypes-ignore */.object\n} : void 0;\nexport default Typography;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getAlertTitleUtilityClass(slot) {\n return generateUtilityClass('MuiAlertTitle', slot);\n}\nconst alertTitleClasses = generateUtilityClasses('MuiAlertTitle', ['root']);\nexport default alertTitleClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Typography from \"../Typography/index.js\";\nimport { getAlertTitleUtilityClass } from \"./alertTitleClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getAlertTitleUtilityClass, classes);\n};\nconst AlertTitleRoot = styled(Typography, {\n name: 'MuiAlertTitle',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})(memoTheme(({\n theme\n}) => {\n return {\n fontWeight: theme.typography.fontWeightMedium,\n marginTop: -2\n };\n}));\nconst AlertTitle = /*#__PURE__*/React.forwardRef(function AlertTitle(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiAlertTitle'\n });\n const {\n className,\n ...other\n } = props;\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(AlertTitleRoot, {\n gutterBottom: true,\n component: \"div\",\n ownerState: ownerState,\n ref: ref,\n className: clsx(classes.root, className),\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? AlertTitle.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default AlertTitle;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getAppBarUtilityClass(slot) {\n return generateUtilityClass('MuiAppBar', slot);\n}\nconst appBarClasses = generateUtilityClasses('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning']);\nexport default appBarClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport Paper from \"../Paper/index.js\";\nimport { getAppBarUtilityClass } from \"./appBarClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n color,\n position,\n classes\n } = ownerState;\n const slots = {\n root: ['root', `color${capitalize(color)}`, `position${capitalize(position)}`]\n };\n return composeClasses(slots, getAppBarUtilityClass, classes);\n};\n\n// var2 is the fallback.\n// Ex. var1: 'var(--a)', var2: 'var(--b)'; return: 'var(--a, var(--b))'\nconst joinVars = (var1, var2) => var1 ? `${var1?.replace(')', '')}, ${var2})` : var2;\nconst AppBarRoot = styled(Paper, {\n name: 'MuiAppBar',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`position${capitalize(ownerState.position)}`], styles[`color${capitalize(ownerState.color)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n boxSizing: 'border-box',\n // Prevent padding issue with the Modal and fixed positioned AppBar.\n flexShrink: 0,\n variants: [{\n props: {\n position: 'fixed'\n },\n style: {\n position: 'fixed',\n zIndex: (theme.vars || theme).zIndex.appBar,\n top: 0,\n left: 'auto',\n right: 0,\n '@media print': {\n // Prevent the app bar to be visible on each printed page.\n position: 'absolute'\n }\n }\n }, {\n props: {\n position: 'absolute'\n },\n style: {\n position: 'absolute',\n zIndex: (theme.vars || theme).zIndex.appBar,\n top: 0,\n left: 'auto',\n right: 0\n }\n }, {\n props: {\n position: 'sticky'\n },\n style: {\n position: 'sticky',\n zIndex: (theme.vars || theme).zIndex.appBar,\n top: 0,\n left: 'auto',\n right: 0\n }\n }, {\n props: {\n position: 'static'\n },\n style: {\n position: 'static'\n }\n }, {\n props: {\n position: 'relative'\n },\n style: {\n position: 'relative'\n }\n }, {\n props: {\n color: 'inherit'\n },\n style: {\n '--AppBar-color': 'inherit'\n }\n }, {\n props: {\n color: 'default'\n },\n style: {\n '--AppBar-background': theme.vars ? theme.vars.palette.AppBar.defaultBg : theme.palette.grey[100],\n '--AppBar-color': theme.vars ? theme.vars.palette.text.primary : theme.palette.getContrastText(theme.palette.grey[100]),\n ...theme.applyStyles('dark', {\n '--AppBar-background': theme.vars ? theme.vars.palette.AppBar.defaultBg : theme.palette.grey[900],\n '--AppBar-color': theme.vars ? theme.vars.palette.text.primary : theme.palette.getContrastText(theme.palette.grey[900])\n })\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['contrastText'])).map(([color]) => ({\n props: {\n color\n },\n style: {\n '--AppBar-background': (theme.vars ?? theme).palette[color].main,\n '--AppBar-color': (theme.vars ?? theme).palette[color].contrastText\n }\n })), {\n props: props => props.enableColorOnDark === true && !['inherit', 'transparent'].includes(props.color),\n style: {\n backgroundColor: 'var(--AppBar-background)',\n color: 'var(--AppBar-color)'\n }\n }, {\n props: props => props.enableColorOnDark === false && !['inherit', 'transparent'].includes(props.color),\n style: {\n backgroundColor: 'var(--AppBar-background)',\n color: 'var(--AppBar-color)',\n ...theme.applyStyles('dark', {\n backgroundColor: theme.vars ? joinVars(theme.vars.palette.AppBar.darkBg, 'var(--AppBar-background)') : null,\n color: theme.vars ? joinVars(theme.vars.palette.AppBar.darkColor, 'var(--AppBar-color)') : null\n })\n }\n }, {\n props: {\n color: 'transparent'\n },\n style: {\n '--AppBar-background': 'transparent',\n '--AppBar-color': 'inherit',\n backgroundColor: 'var(--AppBar-background)',\n color: 'var(--AppBar-color)',\n ...theme.applyStyles('dark', {\n backgroundImage: 'none'\n })\n }\n }]\n})));\nconst AppBar = /*#__PURE__*/React.forwardRef(function AppBar(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiAppBar'\n });\n const {\n className,\n color = 'primary',\n enableColorOnDark = false,\n position = 'fixed',\n ...other\n } = props;\n const ownerState = {\n ...props,\n color,\n position,\n enableColorOnDark\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(AppBarRoot, {\n square: true,\n component: \"header\",\n ownerState: ownerState,\n elevation: 4,\n className: clsx(classes.root, className, position === 'fixed' && 'mui-fixed'),\n ref: ref,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? AppBar.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * If true, the `color` prop is applied in dark mode.\n * @default false\n */\n enableColorOnDark: PropTypes.bool,\n /**\n * The positioning type. The behavior of the different options is described\n * [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Web/CSS/position).\n * Note: `sticky` is not universally supported and will fall back to `static` when unavailable.\n * @default 'fixed'\n */\n position: PropTypes.oneOf(['absolute', 'fixed', 'relative', 'static', 'sticky']),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default AppBar;","'use client';\n\n/* eslint-disable no-constant-condition */\nimport * as React from 'react';\nimport { unstable_setRef as setRef, unstable_useEventCallback as useEventCallback, unstable_useControlled as useControlled, unstable_useId as useId, usePreviousProps } from '@mui/utils';\n\n// https://stackoverflow.com/questions/990904/remove-accents-diacritics-in-a-string-in-javascript\nfunction stripDiacritics(string) {\n return string.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '');\n}\nexport function createFilterOptions(config = {}) {\n const {\n ignoreAccents = true,\n ignoreCase = true,\n limit,\n matchFrom = 'any',\n stringify,\n trim = false\n } = config;\n return (options, {\n inputValue,\n getOptionLabel\n }) => {\n let input = trim ? inputValue.trim() : inputValue;\n if (ignoreCase) {\n input = input.toLowerCase();\n }\n if (ignoreAccents) {\n input = stripDiacritics(input);\n }\n const filteredOptions = !input ? options : options.filter(option => {\n let candidate = (stringify || getOptionLabel)(option);\n if (ignoreCase) {\n candidate = candidate.toLowerCase();\n }\n if (ignoreAccents) {\n candidate = stripDiacritics(candidate);\n }\n return matchFrom === 'start' ? candidate.startsWith(input) : candidate.includes(input);\n });\n return typeof limit === 'number' ? filteredOptions.slice(0, limit) : filteredOptions;\n };\n}\nconst defaultFilterOptions = createFilterOptions();\n\n// Number of options to jump in list box when `Page Up` and `Page Down` keys are used.\nconst pageSize = 5;\nconst defaultIsActiveElementInListbox = listboxRef => listboxRef.current !== null && listboxRef.current.parentElement?.contains(document.activeElement);\nconst MULTIPLE_DEFAULT_VALUE = [];\nfunction getInputValue(value, multiple, getOptionLabel, renderValue) {\n if (multiple || value == null || renderValue) {\n return '';\n }\n const optionLabel = getOptionLabel(value);\n return typeof optionLabel === 'string' ? optionLabel : '';\n}\nfunction useAutocomplete(props) {\n const {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n unstable_isActiveElementInListbox = defaultIsActiveElementInListbox,\n // eslint-disable-next-line @typescript-eslint/naming-convention\n unstable_classNamePrefix = 'Mui',\n autoComplete = false,\n autoHighlight = false,\n autoSelect = false,\n blurOnSelect = false,\n clearOnBlur = !props.freeSolo,\n clearOnEscape = false,\n componentName = 'useAutocomplete',\n defaultValue = props.multiple ? MULTIPLE_DEFAULT_VALUE : null,\n disableClearable = false,\n disableCloseOnSelect = false,\n disabled: disabledProp,\n disabledItemsFocusable = false,\n disableListWrap = false,\n filterOptions = defaultFilterOptions,\n filterSelectedOptions = false,\n freeSolo = false,\n getOptionDisabled,\n getOptionKey,\n getOptionLabel: getOptionLabelProp = option => option.label ?? option,\n groupBy,\n handleHomeEndKeys = !props.freeSolo,\n id: idProp,\n includeInputInList = false,\n inputValue: inputValueProp,\n isOptionEqualToValue = (option, value) => option === value,\n multiple = false,\n onChange,\n onClose,\n onHighlightChange,\n onInputChange,\n onOpen,\n open: openProp,\n openOnFocus = false,\n options,\n readOnly = false,\n renderValue,\n selectOnFocus = !props.freeSolo,\n value: valueProp\n } = props;\n const id = useId(idProp);\n let getOptionLabel = getOptionLabelProp;\n getOptionLabel = option => {\n const optionLabel = getOptionLabelProp(option);\n if (typeof optionLabel !== 'string') {\n if (process.env.NODE_ENV !== 'production') {\n const erroneousReturn = optionLabel === undefined ? 'undefined' : `${typeof optionLabel} (${optionLabel})`;\n console.error(`MUI: The \\`getOptionLabel\\` method of ${componentName} returned ${erroneousReturn} instead of a string for ${JSON.stringify(option)}.`);\n }\n return String(optionLabel);\n }\n return optionLabel;\n };\n const ignoreFocus = React.useRef(false);\n const firstFocus = React.useRef(true);\n const inputRef = React.useRef(null);\n const listboxRef = React.useRef(null);\n const [anchorEl, setAnchorEl] = React.useState(null);\n const [focusedItem, setFocusedItem] = React.useState(-1);\n const defaultHighlighted = autoHighlight ? 0 : -1;\n const highlightedIndexRef = React.useRef(defaultHighlighted);\n\n // Calculate the initial inputValue on mount only.\n // useRef ensures it doesn't update dynamically with defaultValue or value props.\n const initialInputValue = React.useRef(getInputValue(defaultValue ?? valueProp, multiple, getOptionLabel)).current;\n const [value, setValueState] = useControlled({\n controlled: valueProp,\n default: defaultValue,\n name: componentName\n });\n const [inputValue, setInputValueState] = useControlled({\n controlled: inputValueProp,\n default: initialInputValue,\n name: componentName,\n state: 'inputValue'\n });\n const [focused, setFocused] = React.useState(false);\n const resetInputValue = React.useCallback((event, newValue, reason) => {\n // retain current `inputValue` if new option isn't selected and `clearOnBlur` is false\n // When `multiple` is enabled, `newValue` is an array of all selected items including the newly selected item\n const isOptionSelected = multiple ? value.length < newValue.length : newValue !== null;\n if (!isOptionSelected && !clearOnBlur) {\n return;\n }\n const newInputValue = getInputValue(newValue, multiple, getOptionLabel, renderValue);\n if (inputValue === newInputValue) {\n return;\n }\n setInputValueState(newInputValue);\n if (onInputChange) {\n onInputChange(event, newInputValue, reason);\n }\n }, [getOptionLabel, inputValue, multiple, onInputChange, setInputValueState, clearOnBlur, value, renderValue]);\n const [open, setOpenState] = useControlled({\n controlled: openProp,\n default: false,\n name: componentName,\n state: 'open'\n });\n const [inputPristine, setInputPristine] = React.useState(true);\n const inputValueIsSelectedValue = !multiple && value != null && inputValue === getOptionLabel(value);\n const popupOpen = open && !readOnly;\n const filteredOptions = popupOpen ? filterOptions(options.filter(option => {\n if (filterSelectedOptions && (multiple ? value : [value]).some(value2 => value2 !== null && isOptionEqualToValue(option, value2))) {\n return false;\n }\n return true;\n }),\n // we use the empty string to manipulate `filterOptions` to not filter any options\n // i.e. the filter predicate always returns true\n {\n inputValue: inputValueIsSelectedValue && inputPristine ? '' : inputValue,\n getOptionLabel\n }) : [];\n const previousProps = usePreviousProps({\n filteredOptions,\n value,\n inputValue\n });\n React.useEffect(() => {\n const valueChange = value !== previousProps.value;\n if (focused && !valueChange) {\n return;\n }\n\n // Only reset the input's value when freeSolo if the component's value changes.\n if (freeSolo && !valueChange) {\n return;\n }\n resetInputValue(null, value, 'reset');\n }, [value, resetInputValue, focused, previousProps.value, freeSolo]);\n const listboxAvailable = open && filteredOptions.length > 0 && !readOnly;\n const focusItem = useEventCallback(itemToFocus => {\n if (itemToFocus === -1) {\n inputRef.current.focus();\n } else {\n // Using `data-tag-index` for deprecated `renderTags`. Remove when `renderTags` is gone.\n const indexType = renderValue ? 'data-item-index' : 'data-tag-index';\n anchorEl.querySelector(`[${indexType}=\"${itemToFocus}\"]`).focus();\n }\n });\n\n // Ensure the focusedItem is never inconsistent\n React.useEffect(() => {\n if (multiple && focusedItem > value.length - 1) {\n setFocusedItem(-1);\n focusItem(-1);\n }\n }, [value, multiple, focusedItem, focusItem]);\n function validOptionIndex(index, direction) {\n if (!listboxRef.current || index < 0 || index >= filteredOptions.length) {\n return -1;\n }\n let nextFocus = index;\n while (true) {\n const option = listboxRef.current.querySelector(`[data-option-index=\"${nextFocus}\"]`);\n\n // Same logic as MenuList.js\n const nextFocusDisabled = disabledItemsFocusable ? false : !option || option.disabled || option.getAttribute('aria-disabled') === 'true';\n if (option && option.hasAttribute('tabindex') && !nextFocusDisabled) {\n // The next option is available\n return nextFocus;\n }\n\n // The next option is disabled, move to the next element.\n // with looped index\n if (direction === 'next') {\n nextFocus = (nextFocus + 1) % filteredOptions.length;\n } else {\n nextFocus = (nextFocus - 1 + filteredOptions.length) % filteredOptions.length;\n }\n\n // We end up with initial index, that means we don't have available options.\n // All of them are disabled\n if (nextFocus === index) {\n return -1;\n }\n }\n }\n const setHighlightedIndex = useEventCallback(({\n event,\n index,\n reason\n }) => {\n highlightedIndexRef.current = index;\n\n // does the index exist?\n if (index === -1) {\n inputRef.current.removeAttribute('aria-activedescendant');\n } else {\n inputRef.current.setAttribute('aria-activedescendant', `${id}-option-${index}`);\n }\n if (onHighlightChange && ['mouse', 'keyboard', 'touch'].includes(reason)) {\n onHighlightChange(event, index === -1 ? null : filteredOptions[index], reason);\n }\n if (!listboxRef.current) {\n return;\n }\n const prev = listboxRef.current.querySelector(`[role=\"option\"].${unstable_classNamePrefix}-focused`);\n if (prev) {\n prev.classList.remove(`${unstable_classNamePrefix}-focused`);\n prev.classList.remove(`${unstable_classNamePrefix}-focusVisible`);\n }\n let listboxNode = listboxRef.current;\n if (listboxRef.current.getAttribute('role') !== 'listbox') {\n listboxNode = listboxRef.current.parentElement.querySelector('[role=\"listbox\"]');\n }\n\n // \"No results\"\n if (!listboxNode) {\n return;\n }\n if (index === -1) {\n listboxNode.scrollTop = 0;\n return;\n }\n const option = listboxRef.current.querySelector(`[data-option-index=\"${index}\"]`);\n if (!option) {\n return;\n }\n option.classList.add(`${unstable_classNamePrefix}-focused`);\n if (reason === 'keyboard') {\n option.classList.add(`${unstable_classNamePrefix}-focusVisible`);\n }\n\n // Scroll active descendant into view.\n // Logic copied from https://www.w3.org/WAI/content-assets/wai-aria-practices/patterns/combobox/examples/js/select-only.js\n // In case of mouse clicks and touch (in mobile devices) we avoid scrolling the element and keep both behaviors same.\n // Consider this API instead once it has a better browser support:\n // .scrollIntoView({ scrollMode: 'if-needed', block: 'nearest' });\n if (listboxNode.scrollHeight > listboxNode.clientHeight && reason !== 'mouse' && reason !== 'touch') {\n const element = option;\n const scrollBottom = listboxNode.clientHeight + listboxNode.scrollTop;\n const elementBottom = element.offsetTop + element.offsetHeight;\n if (elementBottom > scrollBottom) {\n listboxNode.scrollTop = elementBottom - listboxNode.clientHeight;\n } else if (element.offsetTop - element.offsetHeight * (groupBy ? 1.3 : 0) < listboxNode.scrollTop) {\n listboxNode.scrollTop = element.offsetTop - element.offsetHeight * (groupBy ? 1.3 : 0);\n }\n }\n });\n const changeHighlightedIndex = useEventCallback(({\n event,\n diff,\n direction = 'next',\n reason\n }) => {\n if (!popupOpen) {\n return;\n }\n const getNextIndex = () => {\n const maxIndex = filteredOptions.length - 1;\n if (diff === 'reset') {\n return defaultHighlighted;\n }\n if (diff === 'start') {\n return 0;\n }\n if (diff === 'end') {\n return maxIndex;\n }\n const newIndex = highlightedIndexRef.current + diff;\n if (newIndex < 0) {\n if (newIndex === -1 && includeInputInList) {\n return -1;\n }\n if (disableListWrap && highlightedIndexRef.current !== -1 || Math.abs(diff) > 1) {\n return 0;\n }\n return maxIndex;\n }\n if (newIndex > maxIndex) {\n if (newIndex === maxIndex + 1 && includeInputInList) {\n return -1;\n }\n if (disableListWrap || Math.abs(diff) > 1) {\n return maxIndex;\n }\n return 0;\n }\n return newIndex;\n };\n const nextIndex = validOptionIndex(getNextIndex(), direction);\n setHighlightedIndex({\n index: nextIndex,\n reason,\n event\n });\n\n // Sync the content of the input with the highlighted option.\n if (autoComplete && diff !== 'reset') {\n if (nextIndex === -1) {\n inputRef.current.value = inputValue;\n } else {\n const option = getOptionLabel(filteredOptions[nextIndex]);\n inputRef.current.value = option;\n\n // The portion of the selected suggestion that has not been typed by the user,\n // a completion string, appears inline after the input cursor in the textbox.\n const index = option.toLowerCase().indexOf(inputValue.toLowerCase());\n if (index === 0 && inputValue.length > 0) {\n inputRef.current.setSelectionRange(inputValue.length, option.length);\n }\n }\n }\n });\n const getPreviousHighlightedOptionIndex = () => {\n const isSameValue = (value1, value2) => {\n const label1 = value1 ? getOptionLabel(value1) : '';\n const label2 = value2 ? getOptionLabel(value2) : '';\n return label1 === label2;\n };\n if (highlightedIndexRef.current !== -1 && previousProps.filteredOptions && previousProps.filteredOptions.length !== filteredOptions.length && previousProps.inputValue === inputValue && (multiple ? value.length === previousProps.value.length && previousProps.value.every((val, i) => getOptionLabel(value[i]) === getOptionLabel(val)) : isSameValue(previousProps.value, value))) {\n const previousHighlightedOption = previousProps.filteredOptions[highlightedIndexRef.current];\n if (previousHighlightedOption) {\n return filteredOptions.findIndex(option => {\n return getOptionLabel(option) === getOptionLabel(previousHighlightedOption);\n });\n }\n }\n return -1;\n };\n const syncHighlightedIndex = React.useCallback(() => {\n if (!popupOpen) {\n return;\n }\n\n // Check if the previously highlighted option still exists in the updated filtered options list and if the value and inputValue haven't changed\n // If it exists and the value and the inputValue haven't changed, just update its index, otherwise continue execution\n const previousHighlightedOptionIndex = getPreviousHighlightedOptionIndex();\n if (previousHighlightedOptionIndex !== -1) {\n highlightedIndexRef.current = previousHighlightedOptionIndex;\n return;\n }\n const valueItem = multiple ? value[0] : value;\n\n // The popup is empty, reset\n if (filteredOptions.length === 0 || valueItem == null) {\n changeHighlightedIndex({\n diff: 'reset'\n });\n return;\n }\n if (!listboxRef.current) {\n return;\n }\n\n // Synchronize the value with the highlighted index\n if (valueItem != null) {\n const currentOption = filteredOptions[highlightedIndexRef.current];\n\n // Keep the current highlighted index if possible\n if (multiple && currentOption && value.findIndex(val => isOptionEqualToValue(currentOption, val)) !== -1) {\n return;\n }\n const itemIndex = filteredOptions.findIndex(optionItem => isOptionEqualToValue(optionItem, valueItem));\n if (itemIndex === -1) {\n changeHighlightedIndex({\n diff: 'reset'\n });\n } else {\n setHighlightedIndex({\n index: itemIndex\n });\n }\n return;\n }\n\n // Prevent the highlighted index to leak outside the boundaries.\n if (highlightedIndexRef.current >= filteredOptions.length - 1) {\n setHighlightedIndex({\n index: filteredOptions.length - 1\n });\n return;\n }\n\n // Restore the focus to the previous index.\n setHighlightedIndex({\n index: highlightedIndexRef.current\n });\n // Ignore filteredOptions (and options, isOptionEqualToValue, getOptionLabel) not to break the scroll position\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n // Only sync the highlighted index when the option switch between empty and not\n filteredOptions.length,\n // Don't sync the highlighted index with the value when multiple\n // eslint-disable-next-line react-hooks/exhaustive-deps\n multiple ? false : value, filterSelectedOptions, changeHighlightedIndex, setHighlightedIndex, popupOpen, inputValue, multiple]);\n const handleListboxRef = useEventCallback(node => {\n setRef(listboxRef, node);\n if (!node) {\n return;\n }\n syncHighlightedIndex();\n });\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (!inputRef.current || inputRef.current.nodeName !== 'INPUT') {\n if (inputRef.current && inputRef.current.nodeName === 'TEXTAREA') {\n console.warn([`A textarea element was provided to ${componentName} where input was expected.`, `This is not a supported scenario but it may work under certain conditions.`, `A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).`, `Make sure to test keyboard navigation and add custom event handlers if necessary.`].join('\\n'));\n } else {\n console.error([`MUI: Unable to find the input element. It was resolved to ${inputRef.current} while an HTMLInputElement was expected.`, `Instead, ${componentName} expects an input element.`, '', componentName === 'useAutocomplete' ? 'Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.' : 'Make sure you have customized the input component correctly.'].join('\\n'));\n }\n }\n }, [componentName]);\n }\n React.useEffect(() => {\n syncHighlightedIndex();\n }, [syncHighlightedIndex]);\n const handleOpen = event => {\n if (open) {\n return;\n }\n setOpenState(true);\n setInputPristine(true);\n if (onOpen) {\n onOpen(event);\n }\n };\n const handleClose = (event, reason) => {\n if (!open) {\n return;\n }\n setOpenState(false);\n if (onClose) {\n onClose(event, reason);\n }\n };\n const handleValue = (event, newValue, reason, details) => {\n if (multiple) {\n if (value.length === newValue.length && value.every((val, i) => val === newValue[i])) {\n return;\n }\n } else if (value === newValue) {\n return;\n }\n if (onChange) {\n onChange(event, newValue, reason, details);\n }\n setValueState(newValue);\n };\n const isTouch = React.useRef(false);\n const selectNewValue = (event, option, reasonProp = 'selectOption', origin = 'options') => {\n let reason = reasonProp;\n let newValue = option;\n if (multiple) {\n newValue = Array.isArray(value) ? value.slice() : [];\n if (process.env.NODE_ENV !== 'production') {\n const matches = newValue.filter(val => isOptionEqualToValue(option, val));\n if (matches.length > 1) {\n console.error([`MUI: The \\`isOptionEqualToValue\\` method of ${componentName} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${matches.length} matches.`].join('\\n'));\n }\n }\n const itemIndex = newValue.findIndex(valueItem => isOptionEqualToValue(option, valueItem));\n if (itemIndex === -1) {\n newValue.push(option);\n } else if (origin !== 'freeSolo') {\n newValue.splice(itemIndex, 1);\n reason = 'removeOption';\n }\n }\n resetInputValue(event, newValue, reason);\n handleValue(event, newValue, reason, {\n option\n });\n if (!disableCloseOnSelect && (!event || !event.ctrlKey && !event.metaKey)) {\n handleClose(event, reason);\n }\n if (blurOnSelect === true || blurOnSelect === 'touch' && isTouch.current || blurOnSelect === 'mouse' && !isTouch.current) {\n inputRef.current.blur();\n }\n };\n function validItemIndex(index, direction) {\n if (index === -1) {\n return -1;\n }\n let nextFocus = index;\n while (true) {\n // Out of range\n if (direction === 'next' && nextFocus === value.length || direction === 'previous' && nextFocus === -1) {\n return -1;\n }\n\n // Using `data-tag-index` for deprecated `renderTags`. Remove when `renderTags` is removed.\n const indexType = renderValue ? 'data-item-index' : 'data-tag-index';\n const option = anchorEl.querySelector(`[${indexType}=\"${nextFocus}\"]`);\n\n // Same logic as MenuList.js\n if (!option || !option.hasAttribute('tabindex') || option.disabled || option.getAttribute('aria-disabled') === 'true') {\n nextFocus += direction === 'next' ? 1 : -1;\n } else {\n return nextFocus;\n }\n }\n }\n const handleFocusItem = (event, direction) => {\n if (!multiple) {\n return;\n }\n if (inputValue === '') {\n handleClose(event, 'toggleInput');\n }\n let nextItem = focusedItem;\n if (focusedItem === -1) {\n if (inputValue === '' && direction === 'previous') {\n nextItem = value.length - 1;\n }\n } else {\n nextItem += direction === 'next' ? 1 : -1;\n if (nextItem < 0) {\n nextItem = 0;\n }\n if (nextItem === value.length) {\n nextItem = -1;\n }\n }\n nextItem = validItemIndex(nextItem, direction);\n setFocusedItem(nextItem);\n focusItem(nextItem);\n };\n const handleClear = event => {\n ignoreFocus.current = true;\n setInputValueState('');\n if (onInputChange) {\n onInputChange(event, '', 'clear');\n }\n handleValue(event, multiple ? [] : null, 'clear');\n };\n const handleKeyDown = other => event => {\n if (other.onKeyDown) {\n other.onKeyDown(event);\n }\n if (event.defaultMuiPrevented) {\n return;\n }\n if (focusedItem !== -1 && !['ArrowLeft', 'ArrowRight'].includes(event.key)) {\n setFocusedItem(-1);\n focusItem(-1);\n }\n\n // Wait until IME is settled.\n if (event.which !== 229) {\n switch (event.key) {\n case 'Home':\n if (popupOpen && handleHomeEndKeys) {\n // Prevent scroll of the page\n event.preventDefault();\n changeHighlightedIndex({\n diff: 'start',\n direction: 'next',\n reason: 'keyboard',\n event\n });\n }\n break;\n case 'End':\n if (popupOpen && handleHomeEndKeys) {\n // Prevent scroll of the page\n event.preventDefault();\n changeHighlightedIndex({\n diff: 'end',\n direction: 'previous',\n reason: 'keyboard',\n event\n });\n }\n break;\n case 'PageUp':\n // Prevent scroll of the page\n event.preventDefault();\n changeHighlightedIndex({\n diff: -pageSize,\n direction: 'previous',\n reason: 'keyboard',\n event\n });\n handleOpen(event);\n break;\n case 'PageDown':\n // Prevent scroll of the page\n event.preventDefault();\n changeHighlightedIndex({\n diff: pageSize,\n direction: 'next',\n reason: 'keyboard',\n event\n });\n handleOpen(event);\n break;\n case 'ArrowDown':\n // Prevent cursor move\n event.preventDefault();\n changeHighlightedIndex({\n diff: 1,\n direction: 'next',\n reason: 'keyboard',\n event\n });\n handleOpen(event);\n break;\n case 'ArrowUp':\n // Prevent cursor move\n event.preventDefault();\n changeHighlightedIndex({\n diff: -1,\n direction: 'previous',\n reason: 'keyboard',\n event\n });\n handleOpen(event);\n break;\n case 'ArrowLeft':\n if (!multiple && renderValue) {\n focusItem(0);\n } else {\n handleFocusItem(event, 'previous');\n }\n break;\n case 'ArrowRight':\n if (!multiple && renderValue) {\n focusItem(-1);\n } else {\n handleFocusItem(event, 'next');\n }\n break;\n case 'Enter':\n if (highlightedIndexRef.current !== -1 && popupOpen) {\n const option = filteredOptions[highlightedIndexRef.current];\n const disabled = getOptionDisabled ? getOptionDisabled(option) : false;\n\n // Avoid early form validation, let the end-users continue filling the form.\n event.preventDefault();\n if (disabled) {\n return;\n }\n selectNewValue(event, option, 'selectOption');\n\n // Move the selection to the end.\n if (autoComplete) {\n inputRef.current.setSelectionRange(inputRef.current.value.length, inputRef.current.value.length);\n }\n } else if (freeSolo && inputValue !== '' && inputValueIsSelectedValue === false) {\n if (multiple) {\n // Allow people to add new values before they submit the form.\n event.preventDefault();\n }\n selectNewValue(event, inputValue, 'createOption', 'freeSolo');\n }\n break;\n case 'Escape':\n if (popupOpen) {\n // Avoid Opera to exit fullscreen mode.\n event.preventDefault();\n // Avoid the Modal to handle the event.\n event.stopPropagation();\n handleClose(event, 'escape');\n } else if (clearOnEscape && (inputValue !== '' || multiple && value.length > 0 || renderValue)) {\n // Avoid Opera to exit fullscreen mode.\n event.preventDefault();\n // Avoid the Modal to handle the event.\n event.stopPropagation();\n handleClear(event);\n }\n break;\n case 'Backspace':\n // Remove the value on the left of the \"cursor\"\n if (multiple && !readOnly && inputValue === '' && value.length > 0) {\n const index = focusedItem === -1 ? value.length - 1 : focusedItem;\n const newValue = value.slice();\n newValue.splice(index, 1);\n handleValue(event, newValue, 'removeOption', {\n option: value[index]\n });\n }\n if (!multiple && renderValue && !readOnly) {\n setValueState(null);\n focusItem(-1);\n }\n break;\n case 'Delete':\n // Remove the value on the right of the \"cursor\"\n if (multiple && !readOnly && inputValue === '' && value.length > 0 && focusedItem !== -1) {\n const index = focusedItem;\n const newValue = value.slice();\n newValue.splice(index, 1);\n handleValue(event, newValue, 'removeOption', {\n option: value[index]\n });\n }\n if (!multiple && renderValue && !readOnly) {\n setValueState(null);\n focusItem(-1);\n }\n break;\n default:\n }\n }\n };\n const handleFocus = event => {\n setFocused(true);\n if (openOnFocus && !ignoreFocus.current) {\n handleOpen(event);\n }\n };\n const handleBlur = event => {\n // Ignore the event when using the scrollbar with IE11\n if (unstable_isActiveElementInListbox(listboxRef)) {\n inputRef.current.focus();\n return;\n }\n setFocused(false);\n firstFocus.current = true;\n ignoreFocus.current = false;\n if (autoSelect && highlightedIndexRef.current !== -1 && popupOpen) {\n selectNewValue(event, filteredOptions[highlightedIndexRef.current], 'blur');\n } else if (autoSelect && freeSolo && inputValue !== '') {\n selectNewValue(event, inputValue, 'blur', 'freeSolo');\n } else if (clearOnBlur) {\n resetInputValue(event, value, 'blur');\n }\n handleClose(event, 'blur');\n };\n const handleInputChange = event => {\n const newValue = event.target.value;\n if (inputValue !== newValue) {\n setInputValueState(newValue);\n setInputPristine(false);\n if (onInputChange) {\n onInputChange(event, newValue, 'input');\n }\n }\n if (newValue === '') {\n if (!disableClearable && !multiple) {\n handleValue(event, null, 'clear');\n }\n } else {\n handleOpen(event);\n }\n };\n const handleOptionMouseMove = event => {\n const index = Number(event.currentTarget.getAttribute('data-option-index'));\n if (highlightedIndexRef.current !== index) {\n setHighlightedIndex({\n event,\n index,\n reason: 'mouse'\n });\n }\n };\n const handleOptionTouchStart = event => {\n setHighlightedIndex({\n event,\n index: Number(event.currentTarget.getAttribute('data-option-index')),\n reason: 'touch'\n });\n isTouch.current = true;\n };\n const handleOptionClick = event => {\n const index = Number(event.currentTarget.getAttribute('data-option-index'));\n selectNewValue(event, filteredOptions[index], 'selectOption');\n isTouch.current = false;\n };\n const handleItemDelete = index => event => {\n const newValue = value.slice();\n newValue.splice(index, 1);\n handleValue(event, newValue, 'removeOption', {\n option: value[index]\n });\n };\n const handleSingleItemDelete = event => {\n handleValue(event, null, 'removeOption', {\n option: value\n });\n };\n const handlePopupIndicator = event => {\n if (open) {\n handleClose(event, 'toggleInput');\n } else {\n handleOpen(event);\n }\n };\n\n // Prevent input blur when interacting with the combobox\n const handleMouseDown = event => {\n // Prevent focusing the input if click is anywhere outside the Autocomplete\n if (!event.currentTarget.contains(event.target)) {\n return;\n }\n if (event.target.getAttribute('id') !== id) {\n event.preventDefault();\n }\n };\n\n // Focus the input when interacting with the combobox\n const handleClick = event => {\n // Prevent focusing the input if click is anywhere outside the Autocomplete\n if (!event.currentTarget.contains(event.target)) {\n return;\n }\n inputRef.current.focus();\n if (selectOnFocus && firstFocus.current && inputRef.current.selectionEnd - inputRef.current.selectionStart === 0) {\n inputRef.current.select();\n }\n firstFocus.current = false;\n };\n const handleInputMouseDown = event => {\n if (!disabledProp && (inputValue === '' || !open)) {\n handlePopupIndicator(event);\n }\n };\n let dirty = freeSolo && inputValue.length > 0;\n dirty = dirty || (multiple ? value.length > 0 : value !== null);\n let groupedOptions = filteredOptions;\n if (groupBy) {\n // used to keep track of key and indexes in the result array\n const indexBy = new Map();\n let warn = false;\n groupedOptions = filteredOptions.reduce((acc, option, index) => {\n const group = groupBy(option);\n if (acc.length > 0 && acc[acc.length - 1].group === group) {\n acc[acc.length - 1].options.push(option);\n } else {\n if (process.env.NODE_ENV !== 'production') {\n if (indexBy.get(group) && !warn) {\n console.warn(`MUI: The options provided combined with the \\`groupBy\\` method of ${componentName} returns duplicated headers.`, 'You can solve the issue by sorting the options with the output of `groupBy`.');\n warn = true;\n }\n indexBy.set(group, true);\n }\n acc.push({\n key: index,\n index,\n group,\n options: [option]\n });\n }\n return acc;\n }, []);\n }\n if (disabledProp && focused) {\n handleBlur();\n }\n return {\n getRootProps: (other = {}) => ({\n ...other,\n onKeyDown: handleKeyDown(other),\n onMouseDown: handleMouseDown,\n onClick: handleClick\n }),\n getInputLabelProps: () => ({\n id: `${id}-label`,\n htmlFor: id\n }),\n getInputProps: () => ({\n id,\n value: inputValue,\n onBlur: handleBlur,\n onFocus: handleFocus,\n onChange: handleInputChange,\n onMouseDown: handleInputMouseDown,\n // if open then this is handled imperatively so don't let react override\n // only have an opinion about this when closed\n 'aria-activedescendant': popupOpen ? '' : null,\n 'aria-autocomplete': autoComplete ? 'both' : 'list',\n 'aria-controls': listboxAvailable ? `${id}-listbox` : undefined,\n 'aria-expanded': listboxAvailable,\n // Disable browser's suggestion that might overlap with the popup.\n // Handle autocomplete but not autofill.\n autoComplete: 'off',\n ref: inputRef,\n autoCapitalize: 'none',\n spellCheck: 'false',\n role: 'combobox',\n disabled: disabledProp\n }),\n getClearProps: () => ({\n tabIndex: -1,\n type: 'button',\n onClick: handleClear\n }),\n getItemProps: ({\n index = 0\n } = {}) => ({\n ...(multiple && {\n key: index\n }),\n ...(renderValue ? {\n 'data-item-index': index\n } : {\n 'data-tag-index': index\n }),\n tabIndex: -1,\n ...(!readOnly && {\n onDelete: multiple ? handleItemDelete(index) : handleSingleItemDelete\n })\n }),\n getPopupIndicatorProps: () => ({\n tabIndex: -1,\n type: 'button',\n onClick: handlePopupIndicator\n }),\n // deprecated\n getTagProps: ({\n index\n }) => ({\n key: index,\n 'data-tag-index': index,\n tabIndex: -1,\n ...(!readOnly && {\n onDelete: handleItemDelete(index)\n })\n }),\n getListboxProps: () => ({\n role: 'listbox',\n id: `${id}-listbox`,\n 'aria-labelledby': `${id}-label`,\n ref: handleListboxRef,\n onMouseDown: event => {\n // Prevent blur\n event.preventDefault();\n }\n }),\n getOptionProps: ({\n index,\n option\n }) => {\n const selected = (multiple ? value : [value]).some(value2 => value2 != null && isOptionEqualToValue(option, value2));\n const disabled = getOptionDisabled ? getOptionDisabled(option) : false;\n return {\n key: getOptionKey?.(option) ?? getOptionLabel(option),\n tabIndex: -1,\n role: 'option',\n id: `${id}-option-${index}`,\n onMouseMove: handleOptionMouseMove,\n onClick: handleOptionClick,\n onTouchStart: handleOptionTouchStart,\n 'data-option-index': index,\n 'aria-disabled': disabled,\n 'aria-selected': selected\n };\n },\n id,\n inputValue,\n value,\n dirty,\n expanded: popupOpen && anchorEl,\n popupOpen,\n focused: focused || focusedItem !== -1,\n anchorEl,\n setAnchorEl,\n focusedItem,\n // deprecated\n focusedTag: focusedItem,\n groupedOptions\n };\n}\nexport default useAutocomplete;","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n};","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function getUAString() {\n var uaData = navigator.userAgentData;\n\n if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {\n return uaData.brands.map(function (item) {\n return item.brand + \"/\" + item.version;\n }).join(' ');\n }\n\n return navigator.userAgent;\n}","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n var _ref = isElement(element) ? getWindow(element) : window,\n visualViewport = _ref.visualViewport;\n\n var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref, win) {\n var x = _ref.x,\n y = _ref.y;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }, getWindow(popper)) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If <html> has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on <html>\n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n });\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref) {\n var name = _ref.name,\n _ref$options = _ref.options,\n options = _ref$options === void 0 ? {} : _ref$options,\n effect = _ref.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport { exactProp, HTMLElementType, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useForkRef as useForkRef, unstable_setRef as setRef, unstable_getReactElementRef as getReactElementRef } from '@mui/utils';\nfunction getContainer(container) {\n return typeof container === 'function' ? container() : container;\n}\n\n/**\n * Portals provide a first-class way to render children into a DOM node\n * that exists outside the DOM hierarchy of the parent component.\n *\n * Demos:\n *\n * - [Portal](https://mui.com/material-ui/react-portal/)\n *\n * API:\n *\n * - [Portal API](https://mui.com/material-ui/api/portal/)\n */\nconst Portal = /*#__PURE__*/React.forwardRef(function Portal(props, forwardedRef) {\n const {\n children,\n container,\n disablePortal = false\n } = props;\n const [mountNode, setMountNode] = React.useState(null);\n const handleRef = useForkRef(/*#__PURE__*/React.isValidElement(children) ? getReactElementRef(children) : null, forwardedRef);\n useEnhancedEffect(() => {\n if (!disablePortal) {\n setMountNode(getContainer(container) || document.body);\n }\n }, [container, disablePortal]);\n useEnhancedEffect(() => {\n if (mountNode && !disablePortal) {\n setRef(forwardedRef, mountNode);\n return () => {\n setRef(forwardedRef, null);\n };\n }\n return undefined;\n }, [forwardedRef, mountNode, disablePortal]);\n if (disablePortal) {\n if (/*#__PURE__*/React.isValidElement(children)) {\n const newProps = {\n ref: handleRef\n };\n return /*#__PURE__*/React.cloneElement(children, newProps);\n }\n return children;\n }\n return mountNode ? /*#__PURE__*/ReactDOM.createPortal(children, mountNode) : mountNode;\n});\nprocess.env.NODE_ENV !== \"production\" ? Portal.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The children to render into the `container`.\n */\n children: PropTypes.node,\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * You can also provide a callback, which is called in a React layout effect.\n * This lets you set the container from a ref, and also makes server-side rendering possible.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n Portal['propTypes' + ''] = exactProp(Portal.propTypes);\n}\nexport default Portal;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getPopperUtilityClass(slot) {\n return generateUtilityClass('MuiPopper', slot);\n}\nconst popperClasses = generateUtilityClasses('MuiPopper', ['root']);\nexport default popperClasses;","'use client';\n\nimport * as React from 'react';\nimport { chainPropTypes, HTMLElementType, refType, unstable_ownerDocument as ownerDocument, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { createPopper } from '@popperjs/core';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport Portal from \"../Portal/index.js\";\nimport { getPopperUtilityClass } from \"./popperClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction flipPlacement(placement, direction) {\n if (direction === 'ltr') {\n return placement;\n }\n switch (placement) {\n case 'bottom-end':\n return 'bottom-start';\n case 'bottom-start':\n return 'bottom-end';\n case 'top-end':\n return 'top-start';\n case 'top-start':\n return 'top-end';\n default:\n return placement;\n }\n}\nfunction resolveAnchorEl(anchorEl) {\n return typeof anchorEl === 'function' ? anchorEl() : anchorEl;\n}\nfunction isHTMLElement(element) {\n return element.nodeType !== undefined;\n}\nfunction isVirtualElement(element) {\n return !isHTMLElement(element);\n}\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getPopperUtilityClass, classes);\n};\nconst defaultPopperOptions = {};\nconst PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props, forwardedRef) {\n const {\n anchorEl,\n children,\n direction,\n disablePortal,\n modifiers,\n open,\n placement: initialPlacement,\n popperOptions,\n popperRef: popperRefProp,\n slotProps = {},\n slots = {},\n TransitionProps,\n // @ts-ignore internal logic\n ownerState: ownerStateProp,\n // prevent from spreading to DOM, it can come from the parent component e.g. Select.\n ...other\n } = props;\n const tooltipRef = React.useRef(null);\n const ownRef = useForkRef(tooltipRef, forwardedRef);\n const popperRef = React.useRef(null);\n const handlePopperRef = useForkRef(popperRef, popperRefProp);\n const handlePopperRefRef = React.useRef(handlePopperRef);\n useEnhancedEffect(() => {\n handlePopperRefRef.current = handlePopperRef;\n }, [handlePopperRef]);\n React.useImperativeHandle(popperRefProp, () => popperRef.current, []);\n const rtlPlacement = flipPlacement(initialPlacement, direction);\n /**\n * placement initialized from prop but can change during lifetime if modifiers.flip.\n * modifiers.flip is essentially a flip for controlled/uncontrolled behavior\n */\n const [placement, setPlacement] = React.useState(rtlPlacement);\n const [resolvedAnchorElement, setResolvedAnchorElement] = React.useState(resolveAnchorEl(anchorEl));\n React.useEffect(() => {\n if (popperRef.current) {\n popperRef.current.forceUpdate();\n }\n });\n React.useEffect(() => {\n if (anchorEl) {\n setResolvedAnchorElement(resolveAnchorEl(anchorEl));\n }\n }, [anchorEl]);\n useEnhancedEffect(() => {\n if (!resolvedAnchorElement || !open) {\n return undefined;\n }\n const handlePopperUpdate = data => {\n setPlacement(data.placement);\n };\n if (process.env.NODE_ENV !== 'production') {\n if (resolvedAnchorElement && isHTMLElement(resolvedAnchorElement) && resolvedAnchorElement.nodeType === 1) {\n const box = resolvedAnchorElement.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n console.warn(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n }\n }\n let popperModifiers = [{\n name: 'preventOverflow',\n options: {\n altBoundary: disablePortal\n }\n }, {\n name: 'flip',\n options: {\n altBoundary: disablePortal\n }\n }, {\n name: 'onUpdate',\n enabled: true,\n phase: 'afterWrite',\n fn: ({\n state\n }) => {\n handlePopperUpdate(state);\n }\n }];\n if (modifiers != null) {\n popperModifiers = popperModifiers.concat(modifiers);\n }\n if (popperOptions && popperOptions.modifiers != null) {\n popperModifiers = popperModifiers.concat(popperOptions.modifiers);\n }\n const popper = createPopper(resolvedAnchorElement, tooltipRef.current, {\n placement: rtlPlacement,\n ...popperOptions,\n modifiers: popperModifiers\n });\n handlePopperRefRef.current(popper);\n return () => {\n popper.destroy();\n handlePopperRefRef.current(null);\n };\n }, [resolvedAnchorElement, disablePortal, modifiers, open, popperOptions, rtlPlacement]);\n const childProps = {\n placement: placement\n };\n if (TransitionProps !== null) {\n childProps.TransitionProps = TransitionProps;\n }\n const classes = useUtilityClasses(props);\n const Root = slots.root ?? 'div';\n const rootProps = useSlotProps({\n elementType: Root,\n externalSlotProps: slotProps.root,\n externalForwardedProps: other,\n additionalProps: {\n role: 'tooltip',\n ref: ownRef\n },\n ownerState: props,\n className: classes.root\n });\n return /*#__PURE__*/_jsx(Root, {\n ...rootProps,\n children: typeof children === 'function' ? children(childProps) : children\n });\n});\n\n/**\n * @ignore - internal component.\n */\nconst Popper = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedRef) {\n const {\n anchorEl,\n children,\n container: containerProp,\n direction = 'ltr',\n disablePortal = false,\n keepMounted = false,\n modifiers,\n open,\n placement = 'bottom',\n popperOptions = defaultPopperOptions,\n popperRef,\n style,\n transition = false,\n slotProps = {},\n slots = {},\n ...other\n } = props;\n const [exited, setExited] = React.useState(true);\n const handleEnter = () => {\n setExited(false);\n };\n const handleExited = () => {\n setExited(true);\n };\n if (!keepMounted && !open && (!transition || exited)) {\n return null;\n }\n\n // If the container prop is provided, use that\n // If the anchorEl prop is provided, use its parent body element as the container\n // If neither are provided let the Modal take care of choosing the container\n let container;\n if (containerProp) {\n container = containerProp;\n } else if (anchorEl) {\n const resolvedAnchorEl = resolveAnchorEl(anchorEl);\n container = resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) ? ownerDocument(resolvedAnchorEl).body : ownerDocument(null).body;\n }\n const display = !open && keepMounted && (!transition || exited) ? 'none' : undefined;\n const transitionProps = transition ? {\n in: open,\n onEnter: handleEnter,\n onExited: handleExited\n } : undefined;\n return /*#__PURE__*/_jsx(Portal, {\n disablePortal: disablePortal,\n container: container,\n children: /*#__PURE__*/_jsx(PopperTooltip, {\n anchorEl: anchorEl,\n direction: direction,\n disablePortal: disablePortal,\n modifiers: modifiers,\n ref: forwardedRef,\n open: transition ? !exited : open,\n placement: placement,\n popperOptions: popperOptions,\n popperRef: popperRef,\n slotProps: slotProps,\n slots: slots,\n ...other,\n style: {\n // Prevents scroll issue, waiting for Popper.js to add this style once initiated.\n position: 'fixed',\n // Fix Popper.js display issue\n top: 0,\n left: 0,\n display,\n ...style\n },\n TransitionProps: transitionProps,\n children: children\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Popper.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n * or a function that returns either.\n * It's used to set the position of the popper.\n * The return value will passed as the reference object of the Popper instance.\n */\n anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]), props => {\n if (props.open) {\n const resolvedAnchorEl = resolveAnchorEl(props.anchorEl);\n if (resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) && resolvedAnchorEl.nodeType === 1) {\n const box = resolvedAnchorEl.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n } else if (!resolvedAnchorEl || typeof resolvedAnchorEl.getBoundingClientRect !== 'function' || isVirtualElement(resolvedAnchorEl) && resolvedAnchorEl.contextElement != null && resolvedAnchorEl.contextElement.nodeType !== 1) {\n return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'It should be an HTML element instance or a virtualElement ', '(https://popper.js.org/docs/v2/virtual-elements/).'].join('\\n'));\n }\n }\n return null;\n }),\n /**\n * Popper render function or node.\n */\n children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * You can also provide a callback, which is called in a React layout effect.\n * This lets you set the container from a ref, and also makes server-side rendering possible.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * Direction of the text.\n * @default 'ltr'\n */\n direction: PropTypes.oneOf(['ltr', 'rtl']),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool,\n /**\n * Always keep the children in the DOM.\n * This prop can be useful in SEO situation or\n * when you want to maximize the responsiveness of the Popper.\n * @default false\n */\n keepMounted: PropTypes.bool,\n /**\n * Popper.js is based on a \"plugin-like\" architecture,\n * most of its features are fully encapsulated \"modifiers\".\n *\n * A modifier is a function that is called each time Popper.js needs to\n * compute the position of the popper.\n * For this reason, modifiers should be very performant to avoid bottlenecks.\n * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).\n */\n modifiers: PropTypes.arrayOf(PropTypes.shape({\n data: PropTypes.object,\n effect: PropTypes.func,\n enabled: PropTypes.bool,\n fn: PropTypes.func,\n name: PropTypes.any,\n options: PropTypes.object,\n phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),\n requires: PropTypes.arrayOf(PropTypes.string),\n requiresIfExists: PropTypes.arrayOf(PropTypes.string)\n })),\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Popper placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.\n * @default {}\n */\n popperOptions: PropTypes.shape({\n modifiers: PropTypes.array,\n onFirstUpdate: PropTypes.func,\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n strategy: PropTypes.oneOf(['absolute', 'fixed'])\n }),\n /**\n * A ref that points to the used popper instance.\n */\n popperRef: refType,\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType\n }),\n /**\n * Help supporting a react-transition-group/Transition component.\n * @default false\n */\n transition: PropTypes.bool\n} : void 0;\nexport default Popper;","'use client';\n\nimport { useRtl } from '@mui/system/RtlProvider';\nimport refType from '@mui/utils/refType';\nimport HTMLElementType from '@mui/utils/HTMLElementType';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport BasePopper from \"./BasePopper.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PopperRoot = styled(BasePopper, {\n name: 'MuiPopper',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({});\n\n/**\n *\n * Demos:\n *\n * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)\n * - [Menu](https://mui.com/material-ui/react-menu/)\n * - [Popper](https://mui.com/material-ui/react-popper/)\n *\n * API:\n *\n * - [Popper API](https://mui.com/material-ui/api/popper/)\n */\nconst Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {\n const isRtl = useRtl();\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiPopper'\n });\n const {\n anchorEl,\n component,\n components,\n componentsProps,\n container,\n disablePortal,\n keepMounted,\n modifiers,\n open,\n placement,\n popperOptions,\n popperRef,\n transition,\n slots,\n slotProps,\n ...other\n } = props;\n const RootComponent = slots?.root ?? components?.Root;\n const otherProps = {\n anchorEl,\n container,\n disablePortal,\n keepMounted,\n modifiers,\n open,\n placement,\n popperOptions,\n popperRef,\n transition,\n ...other\n };\n return /*#__PURE__*/_jsx(PopperRoot, {\n as: component,\n direction: isRtl ? 'rtl' : 'ltr',\n slots: {\n root: RootComponent\n },\n slotProps: slotProps ?? componentsProps,\n ...otherProps,\n ref: ref\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Popper.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n * or a function that returns either.\n * It's used to set the position of the popper.\n * The return value will passed as the reference object of the Popper instance.\n */\n anchorEl: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]),\n /**\n * Popper render function or node.\n */\n children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n *\n * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).\n * @default {}\n */\n components: PropTypes.shape({\n Root: PropTypes.elementType\n }),\n /**\n * The props used for each slot inside the Popper.\n *\n * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).\n * @default {}\n */\n componentsProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * You can also provide a callback, which is called in a React layout effect.\n * This lets you set the container from a ref, and also makes server-side rendering possible.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool,\n /**\n * Always keep the children in the DOM.\n * This prop can be useful in SEO situation or\n * when you want to maximize the responsiveness of the Popper.\n * @default false\n */\n keepMounted: PropTypes.bool,\n /**\n * Popper.js is based on a \"plugin-like\" architecture,\n * most of its features are fully encapsulated \"modifiers\".\n *\n * A modifier is a function that is called each time Popper.js needs to\n * compute the position of the popper.\n * For this reason, modifiers should be very performant to avoid bottlenecks.\n * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).\n */\n modifiers: PropTypes.arrayOf(PropTypes.shape({\n data: PropTypes.object,\n effect: PropTypes.func,\n enabled: PropTypes.bool,\n fn: PropTypes.func,\n name: PropTypes.any,\n options: PropTypes.object,\n phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),\n requires: PropTypes.arrayOf(PropTypes.string),\n requiresIfExists: PropTypes.arrayOf(PropTypes.string)\n })),\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Popper placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.\n * @default {}\n */\n popperOptions: PropTypes.shape({\n modifiers: PropTypes.array,\n onFirstUpdate: PropTypes.func,\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n strategy: PropTypes.oneOf(['absolute', 'fixed'])\n }),\n /**\n * A ref that points to the used popper instance.\n */\n popperRef: refType,\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Help supporting a react-transition-group/Transition component.\n * @default false\n */\n transition: PropTypes.bool\n} : void 0;\nexport default Popper;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getListSubheaderUtilityClass(slot) {\n return generateUtilityClass('MuiListSubheader', slot);\n}\nconst listSubheaderClasses = generateUtilityClasses('MuiListSubheader', ['root', 'colorPrimary', 'colorInherit', 'gutters', 'inset', 'sticky']);\nexport default listSubheaderClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport { getListSubheaderUtilityClass } from \"./listSubheaderClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n color,\n disableGutters,\n inset,\n disableSticky\n } = ownerState;\n const slots = {\n root: ['root', color !== 'default' && `color${capitalize(color)}`, !disableGutters && 'gutters', inset && 'inset', !disableSticky && 'sticky']\n };\n return composeClasses(slots, getListSubheaderUtilityClass, classes);\n};\nconst ListSubheaderRoot = styled('li', {\n name: 'MuiListSubheader',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`], !ownerState.disableGutters && styles.gutters, ownerState.inset && styles.inset, !ownerState.disableSticky && styles.sticky];\n }\n})(memoTheme(({\n theme\n}) => ({\n boxSizing: 'border-box',\n lineHeight: '48px',\n listStyle: 'none',\n color: (theme.vars || theme).palette.text.secondary,\n fontFamily: theme.typography.fontFamily,\n fontWeight: theme.typography.fontWeightMedium,\n fontSize: theme.typography.pxToRem(14),\n variants: [{\n props: {\n color: 'primary'\n },\n style: {\n color: (theme.vars || theme).palette.primary.main\n }\n }, {\n props: {\n color: 'inherit'\n },\n style: {\n color: 'inherit'\n }\n }, {\n props: ({\n ownerState\n }) => !ownerState.disableGutters,\n style: {\n paddingLeft: 16,\n paddingRight: 16\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.inset,\n style: {\n paddingLeft: 72\n }\n }, {\n props: ({\n ownerState\n }) => !ownerState.disableSticky,\n style: {\n position: 'sticky',\n top: 0,\n zIndex: 1,\n backgroundColor: (theme.vars || theme).palette.background.paper\n }\n }]\n})));\nconst ListSubheader = /*#__PURE__*/React.forwardRef(function ListSubheader(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiListSubheader'\n });\n const {\n className,\n color = 'default',\n component = 'li',\n disableGutters = false,\n disableSticky = false,\n inset = false,\n ...other\n } = props;\n const ownerState = {\n ...props,\n color,\n component,\n disableGutters,\n disableSticky,\n inset\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(ListSubheaderRoot, {\n as: component,\n className: clsx(classes.root, className),\n ref: ref,\n ownerState: ownerState,\n ...other\n });\n});\nif (ListSubheader) {\n ListSubheader.muiSkipListHighlight = true;\n}\nprocess.env.NODE_ENV !== \"production\" ? ListSubheader.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n * @default 'default'\n */\n color: PropTypes.oneOf(['default', 'inherit', 'primary']),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, the List Subheader will not have gutters.\n * @default false\n */\n disableGutters: PropTypes.bool,\n /**\n * If `true`, the List Subheader will not stick to the top during scroll.\n * @default false\n */\n disableSticky: PropTypes.bool,\n /**\n * If `true`, the List Subheader is indented.\n * @default false\n */\n inset: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default ListSubheader;","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z\"\n}), 'Cancel');","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getChipUtilityClass(slot) {\n return generateUtilityClass('MuiChip', slot);\n}\nconst chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorDefault', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'filledPrimary', 'filledSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'deleteIconFilledColorPrimary', 'deleteIconFilledColorSecondary', 'focusVisible']);\nexport default chipClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport CancelIcon from \"../internal/svg-icons/Cancel.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport unsupportedProp from \"../utils/unsupportedProp.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport chipClasses, { getChipUtilityClass } from \"./chipClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disabled,\n size,\n color,\n iconColor,\n onDelete,\n clickable,\n variant\n } = ownerState;\n const slots = {\n root: ['root', variant, disabled && 'disabled', `size${capitalize(size)}`, `color${capitalize(color)}`, clickable && 'clickable', clickable && `clickableColor${capitalize(color)}`, onDelete && 'deletable', onDelete && `deletableColor${capitalize(color)}`, `${variant}${capitalize(color)}`],\n label: ['label', `label${capitalize(size)}`],\n avatar: ['avatar', `avatar${capitalize(size)}`, `avatarColor${capitalize(color)}`],\n icon: ['icon', `icon${capitalize(size)}`, `iconColor${capitalize(iconColor)}`],\n deleteIcon: ['deleteIcon', `deleteIcon${capitalize(size)}`, `deleteIconColor${capitalize(color)}`, `deleteIcon${capitalize(variant)}Color${capitalize(color)}`]\n };\n return composeClasses(slots, getChipUtilityClass, classes);\n};\nconst ChipRoot = styled('div', {\n name: 'MuiChip',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n const {\n color,\n iconColor,\n clickable,\n onDelete,\n size,\n variant\n } = ownerState;\n return [{\n [`& .${chipClasses.avatar}`]: styles.avatar\n }, {\n [`& .${chipClasses.avatar}`]: styles[`avatar${capitalize(size)}`]\n }, {\n [`& .${chipClasses.avatar}`]: styles[`avatarColor${capitalize(color)}`]\n }, {\n [`& .${chipClasses.icon}`]: styles.icon\n }, {\n [`& .${chipClasses.icon}`]: styles[`icon${capitalize(size)}`]\n }, {\n [`& .${chipClasses.icon}`]: styles[`iconColor${capitalize(iconColor)}`]\n }, {\n [`& .${chipClasses.deleteIcon}`]: styles.deleteIcon\n }, {\n [`& .${chipClasses.deleteIcon}`]: styles[`deleteIcon${capitalize(size)}`]\n }, {\n [`& .${chipClasses.deleteIcon}`]: styles[`deleteIconColor${capitalize(color)}`]\n }, {\n [`& .${chipClasses.deleteIcon}`]: styles[`deleteIcon${capitalize(variant)}Color${capitalize(color)}`]\n }, styles.root, styles[`size${capitalize(size)}`], styles[`color${capitalize(color)}`], clickable && styles.clickable, clickable && color !== 'default' && styles[`clickableColor${capitalize(color)})`], onDelete && styles.deletable, onDelete && color !== 'default' && styles[`deletableColor${capitalize(color)}`], styles[variant], styles[`${variant}${capitalize(color)}`]];\n }\n})(memoTheme(({\n theme\n}) => {\n const textColor = theme.palette.mode === 'light' ? theme.palette.grey[700] : theme.palette.grey[300];\n return {\n maxWidth: '100%',\n fontFamily: theme.typography.fontFamily,\n fontSize: theme.typography.pxToRem(13),\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n height: 32,\n color: (theme.vars || theme).palette.text.primary,\n backgroundColor: (theme.vars || theme).palette.action.selected,\n borderRadius: 32 / 2,\n whiteSpace: 'nowrap',\n transition: theme.transitions.create(['background-color', 'box-shadow']),\n // reset cursor explicitly in case ButtonBase is used\n cursor: 'unset',\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0,\n textDecoration: 'none',\n border: 0,\n // Remove `button` border\n padding: 0,\n // Remove `button` padding\n verticalAlign: 'middle',\n boxSizing: 'border-box',\n [`&.${chipClasses.disabled}`]: {\n opacity: (theme.vars || theme).palette.action.disabledOpacity,\n pointerEvents: 'none'\n },\n [`& .${chipClasses.avatar}`]: {\n marginLeft: 5,\n marginRight: -6,\n width: 24,\n height: 24,\n color: theme.vars ? theme.vars.palette.Chip.defaultAvatarColor : textColor,\n fontSize: theme.typography.pxToRem(12)\n },\n [`& .${chipClasses.avatarColorPrimary}`]: {\n color: (theme.vars || theme).palette.primary.contrastText,\n backgroundColor: (theme.vars || theme).palette.primary.dark\n },\n [`& .${chipClasses.avatarColorSecondary}`]: {\n color: (theme.vars || theme).palette.secondary.contrastText,\n backgroundColor: (theme.vars || theme).palette.secondary.dark\n },\n [`& .${chipClasses.avatarSmall}`]: {\n marginLeft: 4,\n marginRight: -4,\n width: 18,\n height: 18,\n fontSize: theme.typography.pxToRem(10)\n },\n [`& .${chipClasses.icon}`]: {\n marginLeft: 5,\n marginRight: -6\n },\n [`& .${chipClasses.deleteIcon}`]: {\n WebkitTapHighlightColor: 'transparent',\n color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.26)` : alpha(theme.palette.text.primary, 0.26),\n fontSize: 22,\n cursor: 'pointer',\n margin: '0 5px 0 -6px',\n '&:hover': {\n color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.4)` : alpha(theme.palette.text.primary, 0.4)\n }\n },\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n height: 24,\n [`& .${chipClasses.icon}`]: {\n fontSize: 18,\n marginLeft: 4,\n marginRight: -4\n },\n [`& .${chipClasses.deleteIcon}`]: {\n fontSize: 16,\n marginRight: 4,\n marginLeft: -4\n }\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['contrastText'])).map(([color]) => {\n return {\n props: {\n color\n },\n style: {\n backgroundColor: (theme.vars || theme).palette[color].main,\n color: (theme.vars || theme).palette[color].contrastText,\n [`& .${chipClasses.deleteIcon}`]: {\n color: theme.vars ? `rgba(${theme.vars.palette[color].contrastTextChannel} / 0.7)` : alpha(theme.palette[color].contrastText, 0.7),\n '&:hover, &:active': {\n color: (theme.vars || theme).palette[color].contrastText\n }\n }\n }\n };\n }), {\n props: props => props.iconColor === props.color,\n style: {\n [`& .${chipClasses.icon}`]: {\n color: theme.vars ? theme.vars.palette.Chip.defaultIconColor : textColor\n }\n }\n }, {\n props: props => props.iconColor === props.color && props.color !== 'default',\n style: {\n [`& .${chipClasses.icon}`]: {\n color: 'inherit'\n }\n }\n }, {\n props: {\n onDelete: true\n },\n style: {\n [`&.${chipClasses.focusVisible}`]: {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)\n }\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['dark'])).map(([color]) => {\n return {\n props: {\n color,\n onDelete: true\n },\n style: {\n [`&.${chipClasses.focusVisible}`]: {\n background: (theme.vars || theme).palette[color].dark\n }\n }\n };\n }), {\n props: {\n clickable: true\n },\n style: {\n userSelect: 'none',\n WebkitTapHighlightColor: 'transparent',\n cursor: 'pointer',\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)\n },\n [`&.${chipClasses.focusVisible}`]: {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)\n },\n '&:active': {\n boxShadow: (theme.vars || theme).shadows[1]\n }\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['dark'])).map(([color]) => ({\n props: {\n color,\n clickable: true\n },\n style: {\n [`&:hover, &.${chipClasses.focusVisible}`]: {\n backgroundColor: (theme.vars || theme).palette[color].dark\n }\n }\n })), {\n props: {\n variant: 'outlined'\n },\n style: {\n backgroundColor: 'transparent',\n border: theme.vars ? `1px solid ${theme.vars.palette.Chip.defaultBorder}` : `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[700]}`,\n [`&.${chipClasses.clickable}:hover`]: {\n backgroundColor: (theme.vars || theme).palette.action.hover\n },\n [`&.${chipClasses.focusVisible}`]: {\n backgroundColor: (theme.vars || theme).palette.action.focus\n },\n [`& .${chipClasses.avatar}`]: {\n marginLeft: 4\n },\n [`& .${chipClasses.avatarSmall}`]: {\n marginLeft: 2\n },\n [`& .${chipClasses.icon}`]: {\n marginLeft: 4\n },\n [`& .${chipClasses.iconSmall}`]: {\n marginLeft: 2\n },\n [`& .${chipClasses.deleteIcon}`]: {\n marginRight: 5\n },\n [`& .${chipClasses.deleteIconSmall}`]: {\n marginRight: 3\n }\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()) // no need to check for mainChannel as it's calculated from main\n .map(([color]) => ({\n props: {\n variant: 'outlined',\n color\n },\n style: {\n color: (theme.vars || theme).palette[color].main,\n border: `1px solid ${theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / 0.7)` : alpha(theme.palette[color].main, 0.7)}`,\n [`&.${chipClasses.clickable}:hover`]: {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity)\n },\n [`&.${chipClasses.focusVisible}`]: {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.focusOpacity})` : alpha(theme.palette[color].main, theme.palette.action.focusOpacity)\n },\n [`& .${chipClasses.deleteIcon}`]: {\n color: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / 0.7)` : alpha(theme.palette[color].main, 0.7),\n '&:hover, &:active': {\n color: (theme.vars || theme).palette[color].main\n }\n }\n }\n }))]\n };\n}));\nconst ChipLabel = styled('span', {\n name: 'MuiChip',\n slot: 'Label',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n const {\n size\n } = ownerState;\n return [styles.label, styles[`label${capitalize(size)}`]];\n }\n})({\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n paddingLeft: 12,\n paddingRight: 12,\n whiteSpace: 'nowrap',\n variants: [{\n props: {\n variant: 'outlined'\n },\n style: {\n paddingLeft: 11,\n paddingRight: 11\n }\n }, {\n props: {\n size: 'small'\n },\n style: {\n paddingLeft: 8,\n paddingRight: 8\n }\n }, {\n props: {\n size: 'small',\n variant: 'outlined'\n },\n style: {\n paddingLeft: 7,\n paddingRight: 7\n }\n }]\n});\nfunction isDeleteKeyboardEvent(keyboardEvent) {\n return keyboardEvent.key === 'Backspace' || keyboardEvent.key === 'Delete';\n}\n\n/**\n * Chips represent complex entities in small blocks, such as a contact.\n */\nconst Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiChip'\n });\n const {\n avatar: avatarProp,\n className,\n clickable: clickableProp,\n color = 'default',\n component: ComponentProp,\n deleteIcon: deleteIconProp,\n disabled = false,\n icon: iconProp,\n label,\n onClick,\n onDelete,\n onKeyDown,\n onKeyUp,\n size = 'medium',\n variant = 'filled',\n tabIndex,\n skipFocusWhenDisabled = false,\n // TODO v6: Rename to `focusableWhenDisabled`.\n ...other\n } = props;\n const chipRef = React.useRef(null);\n const handleRef = useForkRef(chipRef, ref);\n const handleDeleteIconClick = event => {\n // Stop the event from bubbling up to the `Chip`\n event.stopPropagation();\n if (onDelete) {\n onDelete(event);\n }\n };\n const handleKeyDown = event => {\n // Ignore events from children of `Chip`.\n if (event.currentTarget === event.target && isDeleteKeyboardEvent(event)) {\n // Will be handled in keyUp, otherwise some browsers\n // might init navigation\n event.preventDefault();\n }\n if (onKeyDown) {\n onKeyDown(event);\n }\n };\n const handleKeyUp = event => {\n // Ignore events from children of `Chip`.\n if (event.currentTarget === event.target) {\n if (onDelete && isDeleteKeyboardEvent(event)) {\n onDelete(event);\n }\n }\n if (onKeyUp) {\n onKeyUp(event);\n }\n };\n const clickable = clickableProp !== false && onClick ? true : clickableProp;\n const component = clickable || onDelete ? ButtonBase : ComponentProp || 'div';\n const ownerState = {\n ...props,\n component,\n disabled,\n size,\n color,\n iconColor: /*#__PURE__*/React.isValidElement(iconProp) ? iconProp.props.color || color : color,\n onDelete: !!onDelete,\n clickable,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n const moreProps = component === ButtonBase ? {\n component: ComponentProp || 'div',\n focusVisibleClassName: classes.focusVisible,\n ...(onDelete && {\n disableRipple: true\n })\n } : {};\n let deleteIcon = null;\n if (onDelete) {\n deleteIcon = deleteIconProp && /*#__PURE__*/React.isValidElement(deleteIconProp) ? (/*#__PURE__*/React.cloneElement(deleteIconProp, {\n className: clsx(deleteIconProp.props.className, classes.deleteIcon),\n onClick: handleDeleteIconClick\n })) : /*#__PURE__*/_jsx(CancelIcon, {\n className: clsx(classes.deleteIcon),\n onClick: handleDeleteIconClick\n });\n }\n let avatar = null;\n if (avatarProp && /*#__PURE__*/React.isValidElement(avatarProp)) {\n avatar = /*#__PURE__*/React.cloneElement(avatarProp, {\n className: clsx(classes.avatar, avatarProp.props.className)\n });\n }\n let icon = null;\n if (iconProp && /*#__PURE__*/React.isValidElement(iconProp)) {\n icon = /*#__PURE__*/React.cloneElement(iconProp, {\n className: clsx(classes.icon, iconProp.props.className)\n });\n }\n if (process.env.NODE_ENV !== 'production') {\n if (avatar && icon) {\n console.error('MUI: The Chip component can not handle the avatar ' + 'and the icon prop at the same time. Pick one.');\n }\n }\n return /*#__PURE__*/_jsxs(ChipRoot, {\n as: component,\n className: clsx(classes.root, className),\n disabled: clickable && disabled ? true : undefined,\n onClick: onClick,\n onKeyDown: handleKeyDown,\n onKeyUp: handleKeyUp,\n ref: handleRef,\n tabIndex: skipFocusWhenDisabled && disabled ? -1 : tabIndex,\n ownerState: ownerState,\n ...moreProps,\n ...other,\n children: [avatar || icon, /*#__PURE__*/_jsx(ChipLabel, {\n className: clsx(classes.label),\n ownerState: ownerState,\n children: label\n }), deleteIcon]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Chip.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The Avatar element to display.\n */\n avatar: PropTypes.element,\n /**\n * This prop isn't supported.\n * Use the `component` prop if you need to change the children structure.\n */\n children: unsupportedProp,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * If `true`, the chip will appear clickable, and will raise when pressed,\n * even if the onClick prop is not defined.\n * If `false`, the chip will not appear clickable, even if onClick prop is defined.\n * This can be used, for example,\n * along with the component prop to indicate an anchor Chip is clickable.\n * Note: this controls the UI and does not affect the onClick event.\n */\n clickable: PropTypes.bool,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'default'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * Override the default delete icon element. Shown only if `onDelete` is set.\n */\n deleteIcon: PropTypes.element,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * Icon element.\n */\n icon: PropTypes.element,\n /**\n * The content of the component.\n */\n label: PropTypes.node,\n /**\n * @ignore\n */\n onClick: PropTypes.func,\n /**\n * Callback fired when the delete icon is clicked.\n * If set, the delete icon will be shown.\n */\n onDelete: PropTypes.func,\n /**\n * @ignore\n */\n onKeyDown: PropTypes.func,\n /**\n * @ignore\n */\n onKeyUp: PropTypes.func,\n /**\n * The size of the component.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * If `true`, allows the disabled chip to escape focus.\n * If `false`, allows the disabled chip to receive focus.\n * @default false\n */\n skipFocusWhenDisabled: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * @ignore\n */\n tabIndex: PropTypes.number,\n /**\n * The variant to use.\n * @default 'filled'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['filled', 'outlined']), PropTypes.string])\n} : void 0;\nexport default Chip;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_debounce as debounce, unstable_useForkRef as useForkRef, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useEventCallback as useEventCallback, unstable_ownerWindow as ownerWindow } from '@mui/utils';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction getStyleValue(value) {\n return parseInt(value, 10) || 0;\n}\nconst styles = {\n shadow: {\n // Visibility needed to hide the extra text area on iPads\n visibility: 'hidden',\n // Remove from the content flow\n position: 'absolute',\n // Ignore the scrollbar width\n overflow: 'hidden',\n height: 0,\n top: 0,\n left: 0,\n // Create a new layer, increase the isolation of the computed values\n transform: 'translateZ(0)'\n }\n};\nfunction isObjectEmpty(object) {\n // eslint-disable-next-line\n for (const _ in object) {\n return false;\n }\n return true;\n}\nfunction isEmpty(obj) {\n return isObjectEmpty(obj) || obj.outerHeightStyle === 0 && !obj.overflowing;\n}\n\n/**\n *\n * Demos:\n *\n * - [Textarea Autosize](https://mui.com/material-ui/react-textarea-autosize/)\n *\n * API:\n *\n * - [TextareaAutosize API](https://mui.com/material-ui/api/textarea-autosize/)\n */\nconst TextareaAutosize = /*#__PURE__*/React.forwardRef(function TextareaAutosize(props, forwardedRef) {\n const {\n onChange,\n maxRows,\n minRows = 1,\n style,\n value,\n ...other\n } = props;\n const {\n current: isControlled\n } = React.useRef(value != null);\n const textareaRef = React.useRef(null);\n const handleRef = useForkRef(forwardedRef, textareaRef);\n const heightRef = React.useRef(null);\n const hiddenTextareaRef = React.useRef(null);\n const calculateTextareaStyles = React.useCallback(() => {\n const textarea = textareaRef.current;\n const hiddenTextarea = hiddenTextareaRef.current;\n if (!textarea || !hiddenTextarea) {\n return undefined;\n }\n const containerWindow = ownerWindow(textarea);\n const computedStyle = containerWindow.getComputedStyle(textarea);\n\n // If input's width is shrunk and it's not visible, don't sync height.\n if (computedStyle.width === '0px') {\n return {\n outerHeightStyle: 0,\n overflowing: false\n };\n }\n hiddenTextarea.style.width = computedStyle.width;\n hiddenTextarea.value = textarea.value || props.placeholder || 'x';\n if (hiddenTextarea.value.slice(-1) === '\\n') {\n // Certain fonts which overflow the line height will cause the textarea\n // to report a different scrollHeight depending on whether the last line\n // is empty. Make it non-empty to avoid this issue.\n hiddenTextarea.value += ' ';\n }\n const boxSizing = computedStyle.boxSizing;\n const padding = getStyleValue(computedStyle.paddingBottom) + getStyleValue(computedStyle.paddingTop);\n const border = getStyleValue(computedStyle.borderBottomWidth) + getStyleValue(computedStyle.borderTopWidth);\n\n // The height of the inner content\n const innerHeight = hiddenTextarea.scrollHeight;\n\n // Measure height of a textarea with a single row\n hiddenTextarea.value = 'x';\n const singleRowHeight = hiddenTextarea.scrollHeight;\n\n // The height of the outer content\n let outerHeight = innerHeight;\n if (minRows) {\n outerHeight = Math.max(Number(minRows) * singleRowHeight, outerHeight);\n }\n if (maxRows) {\n outerHeight = Math.min(Number(maxRows) * singleRowHeight, outerHeight);\n }\n outerHeight = Math.max(outerHeight, singleRowHeight);\n\n // Take the box sizing into account for applying this value as a style.\n const outerHeightStyle = outerHeight + (boxSizing === 'border-box' ? padding + border : 0);\n const overflowing = Math.abs(outerHeight - innerHeight) <= 1;\n return {\n outerHeightStyle,\n overflowing\n };\n }, [maxRows, minRows, props.placeholder]);\n const didHeightChange = useEventCallback(() => {\n const textarea = textareaRef.current;\n const textareaStyles = calculateTextareaStyles();\n if (!textarea || !textareaStyles || isEmpty(textareaStyles)) {\n return false;\n }\n const outerHeightStyle = textareaStyles.outerHeightStyle;\n return heightRef.current != null && heightRef.current !== outerHeightStyle;\n });\n const syncHeight = React.useCallback(() => {\n const textarea = textareaRef.current;\n const textareaStyles = calculateTextareaStyles();\n if (!textarea || !textareaStyles || isEmpty(textareaStyles)) {\n return;\n }\n const outerHeightStyle = textareaStyles.outerHeightStyle;\n if (heightRef.current !== outerHeightStyle) {\n heightRef.current = outerHeightStyle;\n textarea.style.height = `${outerHeightStyle}px`;\n }\n textarea.style.overflow = textareaStyles.overflowing ? 'hidden' : '';\n }, [calculateTextareaStyles]);\n const frameRef = React.useRef(-1);\n useEnhancedEffect(() => {\n const debouncedHandleResize = debounce(syncHeight);\n const textarea = textareaRef?.current;\n if (!textarea) {\n return undefined;\n }\n const containerWindow = ownerWindow(textarea);\n containerWindow.addEventListener('resize', debouncedHandleResize);\n let resizeObserver;\n if (typeof ResizeObserver !== 'undefined') {\n resizeObserver = new ResizeObserver(() => {\n if (didHeightChange()) {\n // avoid \"ResizeObserver loop completed with undelivered notifications\" error\n // by temporarily unobserving the textarea element while manipulating the height\n // and reobserving one frame later\n resizeObserver.unobserve(textarea);\n cancelAnimationFrame(frameRef.current);\n syncHeight();\n frameRef.current = requestAnimationFrame(() => {\n resizeObserver.observe(textarea);\n });\n }\n });\n resizeObserver.observe(textarea);\n }\n return () => {\n debouncedHandleResize.clear();\n cancelAnimationFrame(frameRef.current);\n containerWindow.removeEventListener('resize', debouncedHandleResize);\n if (resizeObserver) {\n resizeObserver.disconnect();\n }\n };\n }, [calculateTextareaStyles, syncHeight, didHeightChange]);\n useEnhancedEffect(() => {\n syncHeight();\n });\n const handleChange = event => {\n if (!isControlled) {\n syncHeight();\n }\n if (onChange) {\n onChange(event);\n }\n };\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(\"textarea\", {\n value: value,\n onChange: handleChange,\n ref: handleRef\n // Apply the rows prop to get a \"correct\" first SSR paint\n ,\n rows: minRows,\n style: style,\n ...other\n }), /*#__PURE__*/_jsx(\"textarea\", {\n \"aria-hidden\": true,\n className: props.className,\n readOnly: true,\n ref: hiddenTextareaRef,\n tabIndex: -1,\n style: {\n ...styles.shadow,\n ...style,\n paddingTop: 0,\n paddingBottom: 0\n }\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? TextareaAutosize.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * Maximum number of rows to display.\n */\n maxRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * Minimum number of rows to display.\n * @default 1\n */\n minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * @ignore\n */\n onChange: PropTypes.func,\n /**\n * @ignore\n */\n placeholder: PropTypes.string,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * @ignore\n */\n value: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.number, PropTypes.string])\n} : void 0;\nexport default TextareaAutosize;","/**\n * Determines if a given element is a DOM element name (i.e. not a React component).\n */\nfunction isHostComponent(element) {\n return typeof element === 'string';\n}\nexport default isHostComponent;","export default function formControlState({\n props,\n states,\n muiFormControl\n}) {\n return states.reduce((acc, state) => {\n acc[state] = props[state];\n if (muiFormControl) {\n if (typeof props[state] === 'undefined') {\n acc[state] = muiFormControl[state];\n }\n }\n return acc;\n }, {});\n}","'use client';\n\nimport * as React from 'react';\n/**\n * @ignore - internal component.\n */\nconst FormControlContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== 'production') {\n FormControlContext.displayName = 'FormControlContext';\n}\nexport default FormControlContext;","'use client';\n\nimport * as React from 'react';\nimport FormControlContext from \"./FormControlContext.js\";\nexport default function useFormControl() {\n return React.useContext(FormControlContext);\n}","// Supports determination of isControlled().\n// Controlled input accepts its current value as a prop.\n//\n// @see https://facebook.github.io/react/docs/forms.html#controlled-components\n// @param value\n// @returns {boolean} true if string (including '') or number (including zero)\nexport function hasValue(value) {\n return value != null && !(Array.isArray(value) && value.length === 0);\n}\n\n// Determine if field is empty or filled.\n// Response determines if label is presented above field or as placeholder.\n//\n// @param obj\n// @param SSR\n// @returns {boolean} False when not present or empty string.\n// True when any number or string with length.\nexport function isFilled(obj, SSR = false) {\n return obj && (hasValue(obj.value) && obj.value !== '' || SSR && hasValue(obj.defaultValue) && obj.defaultValue !== '');\n}\n\n// Determine if an Input is adorned on start.\n// It's corresponding to the left with LTR.\n//\n// @param obj\n// @returns {boolean} False when no adornments.\n// True when adorned at the start.\nexport function isAdornedStart(obj) {\n return obj.startAdornment;\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getInputBaseUtilityClass(slot) {\n return generateUtilityClass('MuiInputBase', slot);\n}\nconst inputBaseClasses = generateUtilityClasses('MuiInputBase', ['root', 'formControl', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'colorSecondary', 'fullWidth', 'hiddenLabel', 'readOnly', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch', 'inputAdornedStart', 'inputAdornedEnd', 'inputHiddenLabel']);\nexport default inputBaseClasses;","'use client';\n\nimport _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nvar _InputGlobalStyles;\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport TextareaAutosize from \"../TextareaAutosize/index.js\";\nimport isHostComponent from \"../utils/isHostComponent.js\";\nimport formControlState from \"../FormControl/formControlState.js\";\nimport FormControlContext from \"../FormControl/FormControlContext.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport { styled, globalCss } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport useEnhancedEffect from \"../utils/useEnhancedEffect.js\";\nimport { isFilled } from \"./utils.js\";\nimport inputBaseClasses, { getInputBaseUtilityClass } from \"./inputBaseClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const rootOverridesResolver = (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.formControl && styles.formControl, ownerState.startAdornment && styles.adornedStart, ownerState.endAdornment && styles.adornedEnd, ownerState.error && styles.error, ownerState.size === 'small' && styles.sizeSmall, ownerState.multiline && styles.multiline, ownerState.color && styles[`color${capitalize(ownerState.color)}`], ownerState.fullWidth && styles.fullWidth, ownerState.hiddenLabel && styles.hiddenLabel];\n};\nexport const inputOverridesResolver = (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.input, ownerState.size === 'small' && styles.inputSizeSmall, ownerState.multiline && styles.inputMultiline, ownerState.type === 'search' && styles.inputTypeSearch, ownerState.startAdornment && styles.inputAdornedStart, ownerState.endAdornment && styles.inputAdornedEnd, ownerState.hiddenLabel && styles.inputHiddenLabel];\n};\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n color,\n disabled,\n error,\n endAdornment,\n focused,\n formControl,\n fullWidth,\n hiddenLabel,\n multiline,\n readOnly,\n size,\n startAdornment,\n type\n } = ownerState;\n const slots = {\n root: ['root', `color${capitalize(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size && size !== 'medium' && `size${capitalize(size)}`, multiline && 'multiline', startAdornment && 'adornedStart', endAdornment && 'adornedEnd', hiddenLabel && 'hiddenLabel', readOnly && 'readOnly'],\n input: ['input', disabled && 'disabled', type === 'search' && 'inputTypeSearch', multiline && 'inputMultiline', size === 'small' && 'inputSizeSmall', hiddenLabel && 'inputHiddenLabel', startAdornment && 'inputAdornedStart', endAdornment && 'inputAdornedEnd', readOnly && 'readOnly']\n };\n return composeClasses(slots, getInputBaseUtilityClass, classes);\n};\nexport const InputBaseRoot = styled('div', {\n name: 'MuiInputBase',\n slot: 'Root',\n overridesResolver: rootOverridesResolver\n})(memoTheme(({\n theme\n}) => ({\n ...theme.typography.body1,\n color: (theme.vars || theme).palette.text.primary,\n lineHeight: '1.4375em',\n // 23px\n boxSizing: 'border-box',\n // Prevent padding issue with fullWidth.\n position: 'relative',\n cursor: 'text',\n display: 'inline-flex',\n alignItems: 'center',\n [`&.${inputBaseClasses.disabled}`]: {\n color: (theme.vars || theme).palette.text.disabled,\n cursor: 'default'\n },\n variants: [{\n props: ({\n ownerState\n }) => ownerState.multiline,\n style: {\n padding: '4px 0 5px'\n }\n }, {\n props: ({\n ownerState,\n size\n }) => ownerState.multiline && size === 'small',\n style: {\n paddingTop: 1\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.fullWidth,\n style: {\n width: '100%'\n }\n }]\n})));\nexport const InputBaseInput = styled('input', {\n name: 'MuiInputBase',\n slot: 'Input',\n overridesResolver: inputOverridesResolver\n})(memoTheme(({\n theme\n}) => {\n const light = theme.palette.mode === 'light';\n const placeholder = {\n color: 'currentColor',\n ...(theme.vars ? {\n opacity: theme.vars.opacity.inputPlaceholder\n } : {\n opacity: light ? 0.42 : 0.5\n }),\n transition: theme.transitions.create('opacity', {\n duration: theme.transitions.duration.shorter\n })\n };\n const placeholderHidden = {\n opacity: '0 !important'\n };\n const placeholderVisible = theme.vars ? {\n opacity: theme.vars.opacity.inputPlaceholder\n } : {\n opacity: light ? 0.42 : 0.5\n };\n return {\n font: 'inherit',\n letterSpacing: 'inherit',\n color: 'currentColor',\n padding: '4px 0 5px',\n border: 0,\n boxSizing: 'content-box',\n background: 'none',\n height: '1.4375em',\n // Reset 23pxthe native input line-height\n margin: 0,\n // Reset for Safari\n WebkitTapHighlightColor: 'transparent',\n display: 'block',\n // Make the flex item shrink with Firefox\n minWidth: 0,\n width: '100%',\n '&::-webkit-input-placeholder': placeholder,\n '&::-moz-placeholder': placeholder,\n // Firefox 19+\n '&::-ms-input-placeholder': placeholder,\n // Edge\n '&:focus': {\n outline: 0\n },\n // Reset Firefox invalid required input style\n '&:invalid': {\n boxShadow: 'none'\n },\n '&::-webkit-search-decoration': {\n // Remove the padding when type=search.\n WebkitAppearance: 'none'\n },\n // Show and hide the placeholder logic\n [`label[data-shrink=false] + .${inputBaseClasses.formControl} &`]: {\n '&::-webkit-input-placeholder': placeholderHidden,\n '&::-moz-placeholder': placeholderHidden,\n // Firefox 19+\n '&::-ms-input-placeholder': placeholderHidden,\n // Edge\n '&:focus::-webkit-input-placeholder': placeholderVisible,\n '&:focus::-moz-placeholder': placeholderVisible,\n // Firefox 19+\n '&:focus::-ms-input-placeholder': placeholderVisible // Edge\n },\n [`&.${inputBaseClasses.disabled}`]: {\n opacity: 1,\n // Reset iOS opacity\n WebkitTextFillColor: (theme.vars || theme).palette.text.disabled // Fix opacity Safari bug\n },\n variants: [{\n props: ({\n ownerState\n }) => !ownerState.disableInjectingGlobalStyles,\n style: {\n animationName: 'mui-auto-fill-cancel',\n animationDuration: '10ms',\n '&:-webkit-autofill': {\n animationDuration: '5000s',\n animationName: 'mui-auto-fill'\n }\n }\n }, {\n props: {\n size: 'small'\n },\n style: {\n paddingTop: 1\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.multiline,\n style: {\n height: 'auto',\n resize: 'none',\n padding: 0,\n paddingTop: 0\n }\n }, {\n props: {\n type: 'search'\n },\n style: {\n MozAppearance: 'textfield' // Improve type search style.\n }\n }]\n };\n}));\nconst InputGlobalStyles = globalCss({\n '@keyframes mui-auto-fill': {\n from: {\n display: 'block'\n }\n },\n '@keyframes mui-auto-fill-cancel': {\n from: {\n display: 'block'\n }\n }\n});\n\n/**\n * `InputBase` contains as few styles as possible.\n * It aims to be a simple building block for creating an input.\n * It contains a load of style reset and some state logic.\n */\nconst InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiInputBase'\n });\n const {\n 'aria-describedby': ariaDescribedby,\n autoComplete,\n autoFocus,\n className,\n color,\n components = {},\n componentsProps = {},\n defaultValue,\n disabled,\n disableInjectingGlobalStyles,\n endAdornment,\n error,\n fullWidth = false,\n id,\n inputComponent = 'input',\n inputProps: inputPropsProp = {},\n inputRef: inputRefProp,\n margin,\n maxRows,\n minRows,\n multiline = false,\n name,\n onBlur,\n onChange,\n onClick,\n onFocus,\n onKeyDown,\n onKeyUp,\n placeholder,\n readOnly,\n renderSuffix,\n rows,\n size,\n slotProps = {},\n slots = {},\n startAdornment,\n type = 'text',\n value: valueProp,\n ...other\n } = props;\n const value = inputPropsProp.value != null ? inputPropsProp.value : valueProp;\n const {\n current: isControlled\n } = React.useRef(value != null);\n const inputRef = React.useRef();\n const handleInputRefWarning = React.useCallback(instance => {\n if (process.env.NODE_ENV !== 'production') {\n if (instance && instance.nodeName !== 'INPUT' && !instance.focus) {\n console.error(['MUI: You have provided a `inputComponent` to the input component', 'that does not correctly handle the `ref` prop.', 'Make sure the `ref` prop is called with a HTMLInputElement.'].join('\\n'));\n }\n }\n }, []);\n const handleInputRef = useForkRef(inputRef, inputRefProp, inputPropsProp.ref, handleInputRefWarning);\n const [focused, setFocused] = React.useState(false);\n const muiFormControl = useFormControl();\n if (process.env.NODE_ENV !== 'production') {\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (muiFormControl) {\n return muiFormControl.registerEffect();\n }\n return undefined;\n }, [muiFormControl]);\n }\n const fcs = formControlState({\n props,\n muiFormControl,\n states: ['color', 'disabled', 'error', 'hiddenLabel', 'size', 'required', 'filled']\n });\n fcs.focused = muiFormControl ? muiFormControl.focused : focused;\n\n // The blur won't fire when the disabled state is set on a focused input.\n // We need to book keep the focused state manually.\n React.useEffect(() => {\n if (!muiFormControl && disabled && focused) {\n setFocused(false);\n if (onBlur) {\n onBlur();\n }\n }\n }, [muiFormControl, disabled, focused, onBlur]);\n const onFilled = muiFormControl && muiFormControl.onFilled;\n const onEmpty = muiFormControl && muiFormControl.onEmpty;\n const checkDirty = React.useCallback(obj => {\n if (isFilled(obj)) {\n if (onFilled) {\n onFilled();\n }\n } else if (onEmpty) {\n onEmpty();\n }\n }, [onFilled, onEmpty]);\n useEnhancedEffect(() => {\n if (isControlled) {\n checkDirty({\n value\n });\n }\n }, [value, checkDirty, isControlled]);\n const handleFocus = event => {\n if (onFocus) {\n onFocus(event);\n }\n if (inputPropsProp.onFocus) {\n inputPropsProp.onFocus(event);\n }\n if (muiFormControl && muiFormControl.onFocus) {\n muiFormControl.onFocus(event);\n } else {\n setFocused(true);\n }\n };\n const handleBlur = event => {\n if (onBlur) {\n onBlur(event);\n }\n if (inputPropsProp.onBlur) {\n inputPropsProp.onBlur(event);\n }\n if (muiFormControl && muiFormControl.onBlur) {\n muiFormControl.onBlur(event);\n } else {\n setFocused(false);\n }\n };\n const handleChange = (event, ...args) => {\n if (!isControlled) {\n const element = event.target || inputRef.current;\n if (element == null) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI: Expected valid input target. ' + 'Did you use a custom `inputComponent` and forget to forward refs? ' + 'See https://mui.com/r/input-component-ref-interface for more info.' : _formatErrorMessage(1));\n }\n checkDirty({\n value: element.value\n });\n }\n if (inputPropsProp.onChange) {\n inputPropsProp.onChange(event, ...args);\n }\n\n // Perform in the willUpdate\n if (onChange) {\n onChange(event, ...args);\n }\n };\n\n // Check the input state on mount, in case it was filled by the user\n // or auto filled by the browser before the hydration (for SSR).\n React.useEffect(() => {\n checkDirty(inputRef.current);\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n const handleClick = event => {\n if (inputRef.current && event.currentTarget === event.target) {\n inputRef.current.focus();\n }\n if (onClick) {\n onClick(event);\n }\n };\n let InputComponent = inputComponent;\n let inputProps = inputPropsProp;\n if (multiline && InputComponent === 'input') {\n if (rows) {\n if (process.env.NODE_ENV !== 'production') {\n if (minRows || maxRows) {\n console.warn('MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set.');\n }\n }\n inputProps = {\n type: undefined,\n minRows: rows,\n maxRows: rows,\n ...inputProps\n };\n } else {\n inputProps = {\n type: undefined,\n maxRows,\n minRows,\n ...inputProps\n };\n }\n InputComponent = TextareaAutosize;\n }\n const handleAutoFill = event => {\n // Provide a fake value as Chrome might not let you access it for security reasons.\n checkDirty(event.animationName === 'mui-auto-fill-cancel' ? inputRef.current : {\n value: 'x'\n });\n };\n React.useEffect(() => {\n if (muiFormControl) {\n muiFormControl.setAdornedStart(Boolean(startAdornment));\n }\n }, [muiFormControl, startAdornment]);\n const ownerState = {\n ...props,\n color: fcs.color || 'primary',\n disabled: fcs.disabled,\n endAdornment,\n error: fcs.error,\n focused: fcs.focused,\n formControl: muiFormControl,\n fullWidth,\n hiddenLabel: fcs.hiddenLabel,\n multiline,\n size: fcs.size,\n startAdornment,\n type\n };\n const classes = useUtilityClasses(ownerState);\n const Root = slots.root || components.Root || InputBaseRoot;\n const rootProps = slotProps.root || componentsProps.root || {};\n const Input = slots.input || components.Input || InputBaseInput;\n inputProps = {\n ...inputProps,\n ...(slotProps.input ?? componentsProps.input)\n };\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [!disableInjectingGlobalStyles && typeof InputGlobalStyles === 'function' && (// For Emotion/Styled-components, InputGlobalStyles will be a function\n // For Pigment CSS, this has no effect because the InputGlobalStyles will be null.\n _InputGlobalStyles || (_InputGlobalStyles = /*#__PURE__*/_jsx(InputGlobalStyles, {}))), /*#__PURE__*/_jsxs(Root, {\n ...rootProps,\n ref: ref,\n onClick: handleClick,\n ...other,\n ...(!isHostComponent(Root) && {\n ownerState: {\n ...ownerState,\n ...rootProps.ownerState\n }\n }),\n className: clsx(classes.root, rootProps.className, className, readOnly && 'MuiInputBase-readOnly'),\n children: [startAdornment, /*#__PURE__*/_jsx(FormControlContext.Provider, {\n value: null,\n children: /*#__PURE__*/_jsx(Input, {\n \"aria-invalid\": fcs.error,\n \"aria-describedby\": ariaDescribedby,\n autoComplete: autoComplete,\n autoFocus: autoFocus,\n defaultValue: defaultValue,\n disabled: fcs.disabled,\n id: id,\n onAnimationStart: handleAutoFill,\n name: name,\n placeholder: placeholder,\n readOnly: readOnly,\n required: fcs.required,\n rows: rows,\n value: value,\n onKeyDown: onKeyDown,\n onKeyUp: onKeyUp,\n type: type,\n ...inputProps,\n ...(!isHostComponent(Input) && {\n as: InputComponent,\n ownerState: {\n ...ownerState,\n ...inputProps.ownerState\n }\n }),\n ref: handleInputRef,\n className: clsx(classes.input, inputProps.className, readOnly && 'MuiInputBase-readOnly'),\n onBlur: handleBlur,\n onChange: handleChange,\n onFocus: handleFocus\n })\n }), endAdornment, renderSuffix ? renderSuffix({\n ...fcs,\n startAdornment\n }) : null]\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? InputBase.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n 'aria-describedby': PropTypes.string,\n /**\n * This prop helps users to fill forms faster, especially on mobile devices.\n * The name can be confusing, as it's more like an autofill.\n * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).\n */\n autoComplete: PropTypes.string,\n /**\n * If `true`, the `input` element is focused during the first mount.\n */\n autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The components used for each slot inside.\n *\n * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n components: PropTypes.shape({\n Input: PropTypes.elementType,\n Root: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n input: PropTypes.object,\n root: PropTypes.object\n }),\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.any,\n /**\n * If `true`, the component is disabled.\n * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, GlobalStyles for the auto-fill keyframes will not be injected/removed on mount/unmount. Make sure to inject them at the top of your application.\n * This option is intended to help with boosting the initial rendering performance if you are loading a big amount of Input components at once.\n * @default false\n */\n disableInjectingGlobalStyles: PropTypes.bool,\n /**\n * End `InputAdornment` for this component.\n */\n endAdornment: PropTypes.node,\n /**\n * If `true`, the `input` will indicate an error.\n * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n */\n error: PropTypes.bool,\n /**\n * If `true`, the `input` will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n /**\n * The component used for the `input` element.\n * Either a string to use a HTML element or a component.\n * @default 'input'\n */\n inputComponent: elementTypeAcceptingRef,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n * @default {}\n */\n inputProps: PropTypes.object,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * If `dense`, will adjust vertical spacing. This is normally obtained via context from\n * FormControl.\n * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.\n */\n margin: PropTypes.oneOf(['dense', 'none']),\n /**\n * Maximum number of rows to display when multiline option is set to true.\n */\n maxRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * Minimum number of rows to display when multiline option is set to true.\n */\n minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * If `true`, a [TextareaAutosize](https://mui.com/material-ui/react-textarea-autosize/) element is rendered.\n * @default false\n */\n multiline: PropTypes.bool,\n /**\n * Name attribute of the `input` element.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the `input` is blurred.\n *\n * Notice that the first argument (event) might be undefined.\n */\n onBlur: PropTypes.func,\n /**\n * Callback fired when the value is changed.\n *\n * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (string).\n */\n onChange: PropTypes.func,\n /**\n * @ignore\n */\n onClick: PropTypes.func,\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n /**\n * Callback fired when the `input` doesn't satisfy its constraints.\n */\n onInvalid: PropTypes.func,\n /**\n * @ignore\n */\n onKeyDown: PropTypes.func,\n /**\n * @ignore\n */\n onKeyUp: PropTypes.func,\n /**\n * The short hint displayed in the `input` before the user enters a value.\n */\n placeholder: PropTypes.string,\n /**\n * It prevents the user from changing the value of the field\n * (not from interacting with the field).\n */\n readOnly: PropTypes.bool,\n /**\n * @ignore\n */\n renderSuffix: PropTypes.func,\n /**\n * If `true`, the `input` element is required.\n * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n */\n required: PropTypes.bool,\n /**\n * Number of rows to display when multiline option is set to true.\n */\n rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * The size of the component.\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slotProps: PropTypes.shape({\n input: PropTypes.object,\n root: PropTypes.object\n }),\n /**\n * The components used for each slot inside.\n *\n * This prop is an alias for the `components` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slots: PropTypes.shape({\n input: PropTypes.elementType,\n root: PropTypes.elementType\n }),\n /**\n * Start `InputAdornment` for this component.\n */\n startAdornment: PropTypes.node,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).\n * @default 'text'\n */\n type: PropTypes.string,\n /**\n * The value of the `input` element, required for a controlled component.\n */\n value: PropTypes.any\n} : void 0;\nexport default InputBase;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport { inputBaseClasses } from \"../InputBase/index.js\";\nexport function getInputUtilityClass(slot) {\n return generateUtilityClass('MuiInput', slot);\n}\nconst inputClasses = {\n ...inputBaseClasses,\n ...generateUtilityClasses('MuiInput', ['root', 'underline', 'input'])\n};\nexport default inputClasses;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport { inputBaseClasses } from \"../InputBase/index.js\";\nexport function getOutlinedInputUtilityClass(slot) {\n return generateUtilityClass('MuiOutlinedInput', slot);\n}\nconst outlinedInputClasses = {\n ...inputBaseClasses,\n ...generateUtilityClasses('MuiOutlinedInput', ['root', 'notchedOutline', 'input'])\n};\nexport default outlinedInputClasses;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport { inputBaseClasses } from \"../InputBase/index.js\";\nexport function getFilledInputUtilityClass(slot) {\n return generateUtilityClass('MuiFilledInput', slot);\n}\nconst filledInputClasses = {\n ...inputBaseClasses,\n ...generateUtilityClasses('MuiFilledInput', ['root', 'underline', 'input', 'adornedStart', 'adornedEnd', 'sizeSmall', 'multiline', 'hiddenLabel'])\n};\nexport default filledInputClasses;","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M7 10l5 5 5-5z\"\n}), 'ArrowDropDown');","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getAutocompleteUtilityClass(slot) {\n return generateUtilityClass('MuiAutocomplete', slot);\n}\nconst autocompleteClasses = generateUtilityClasses('MuiAutocomplete', ['root', 'expanded', 'fullWidth', 'focused', 'focusVisible', 'tag', 'tagSizeSmall', 'tagSizeMedium', 'hasPopupIcon', 'hasClearIcon', 'inputRoot', 'input', 'inputFocused', 'endAdornment', 'clearIndicator', 'popupIndicator', 'popupIndicatorOpen', 'popper', 'popperDisablePortal', 'paper', 'listbox', 'loading', 'noOptions', 'option', 'groupLabel', 'groupUl']);\nexport default autocompleteClasses;","'use client';\n\nvar _ClearIcon, _ArrowDropDownIcon;\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport integerPropType from '@mui/utils/integerPropType';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport useAutocomplete, { createFilterOptions } from \"../useAutocomplete/index.js\";\nimport Popper from \"../Popper/index.js\";\nimport ListSubheader from \"../ListSubheader/index.js\";\nimport Paper from \"../Paper/index.js\";\nimport IconButton from \"../IconButton/index.js\";\nimport Chip from \"../Chip/index.js\";\nimport inputClasses from \"../Input/inputClasses.js\";\nimport inputBaseClasses from \"../InputBase/inputBaseClasses.js\";\nimport outlinedInputClasses from \"../OutlinedInput/outlinedInputClasses.js\";\nimport filledInputClasses from \"../FilledInput/filledInputClasses.js\";\nimport ClearIcon from \"../internal/svg-icons/Close.js\";\nimport ArrowDropDownIcon from \"../internal/svg-icons/ArrowDropDown.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport autocompleteClasses, { getAutocompleteUtilityClass } from \"./autocompleteClasses.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disablePortal,\n expanded,\n focused,\n fullWidth,\n hasClearIcon,\n hasPopupIcon,\n inputFocused,\n popupOpen,\n size\n } = ownerState;\n const slots = {\n root: ['root', expanded && 'expanded', focused && 'focused', fullWidth && 'fullWidth', hasClearIcon && 'hasClearIcon', hasPopupIcon && 'hasPopupIcon'],\n inputRoot: ['inputRoot'],\n input: ['input', inputFocused && 'inputFocused'],\n tag: ['tag', `tagSize${capitalize(size)}`],\n endAdornment: ['endAdornment'],\n clearIndicator: ['clearIndicator'],\n popupIndicator: ['popupIndicator', popupOpen && 'popupIndicatorOpen'],\n popper: ['popper', disablePortal && 'popperDisablePortal'],\n paper: ['paper'],\n listbox: ['listbox'],\n loading: ['loading'],\n noOptions: ['noOptions'],\n option: ['option'],\n groupLabel: ['groupLabel'],\n groupUl: ['groupUl']\n };\n return composeClasses(slots, getAutocompleteUtilityClass, classes);\n};\nconst AutocompleteRoot = styled('div', {\n name: 'MuiAutocomplete',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n const {\n fullWidth,\n hasClearIcon,\n hasPopupIcon,\n inputFocused,\n size\n } = ownerState;\n return [{\n [`& .${autocompleteClasses.tag}`]: styles.tag\n }, {\n [`& .${autocompleteClasses.tag}`]: styles[`tagSize${capitalize(size)}`]\n }, {\n [`& .${autocompleteClasses.inputRoot}`]: styles.inputRoot\n }, {\n [`& .${autocompleteClasses.input}`]: styles.input\n }, {\n [`& .${autocompleteClasses.input}`]: inputFocused && styles.inputFocused\n }, styles.root, fullWidth && styles.fullWidth, hasPopupIcon && styles.hasPopupIcon, hasClearIcon && styles.hasClearIcon];\n }\n})({\n [`&.${autocompleteClasses.focused} .${autocompleteClasses.clearIndicator}`]: {\n visibility: 'visible'\n },\n /* Avoid double tap issue on iOS */\n '@media (pointer: fine)': {\n [`&:hover .${autocompleteClasses.clearIndicator}`]: {\n visibility: 'visible'\n }\n },\n [`& .${autocompleteClasses.tag}`]: {\n margin: 3,\n maxWidth: 'calc(100% - 6px)'\n },\n [`& .${autocompleteClasses.inputRoot}`]: {\n [`.${autocompleteClasses.hasPopupIcon}&, .${autocompleteClasses.hasClearIcon}&`]: {\n paddingRight: 26 + 4\n },\n [`.${autocompleteClasses.hasPopupIcon}.${autocompleteClasses.hasClearIcon}&`]: {\n paddingRight: 52 + 4\n },\n [`& .${autocompleteClasses.input}`]: {\n width: 0,\n minWidth: 30\n }\n },\n [`& .${inputClasses.root}`]: {\n paddingBottom: 1,\n '& .MuiInput-input': {\n padding: '4px 4px 4px 0px'\n }\n },\n [`& .${inputClasses.root}.${inputBaseClasses.sizeSmall}`]: {\n [`& .${inputClasses.input}`]: {\n padding: '2px 4px 3px 0'\n }\n },\n [`& .${outlinedInputClasses.root}`]: {\n padding: 9,\n [`.${autocompleteClasses.hasPopupIcon}&, .${autocompleteClasses.hasClearIcon}&`]: {\n paddingRight: 26 + 4 + 9\n },\n [`.${autocompleteClasses.hasPopupIcon}.${autocompleteClasses.hasClearIcon}&`]: {\n paddingRight: 52 + 4 + 9\n },\n [`& .${autocompleteClasses.input}`]: {\n padding: '7.5px 4px 7.5px 5px'\n },\n [`& .${autocompleteClasses.endAdornment}`]: {\n right: 9\n }\n },\n [`& .${outlinedInputClasses.root}.${inputBaseClasses.sizeSmall}`]: {\n // Don't specify paddingRight, as it overrides the default value set when there is only\n // one of the popup or clear icon as the specificity is equal so the latter one wins\n paddingTop: 6,\n paddingBottom: 6,\n paddingLeft: 6,\n [`& .${autocompleteClasses.input}`]: {\n padding: '2.5px 4px 2.5px 8px'\n }\n },\n [`& .${filledInputClasses.root}`]: {\n paddingTop: 19,\n paddingLeft: 8,\n [`.${autocompleteClasses.hasPopupIcon}&, .${autocompleteClasses.hasClearIcon}&`]: {\n paddingRight: 26 + 4 + 9\n },\n [`.${autocompleteClasses.hasPopupIcon}.${autocompleteClasses.hasClearIcon}&`]: {\n paddingRight: 52 + 4 + 9\n },\n [`& .${filledInputClasses.input}`]: {\n padding: '7px 4px'\n },\n [`& .${autocompleteClasses.endAdornment}`]: {\n right: 9\n }\n },\n [`& .${filledInputClasses.root}.${inputBaseClasses.sizeSmall}`]: {\n paddingBottom: 1,\n [`& .${filledInputClasses.input}`]: {\n padding: '2.5px 4px'\n }\n },\n [`& .${inputBaseClasses.hiddenLabel}`]: {\n paddingTop: 8\n },\n [`& .${filledInputClasses.root}.${inputBaseClasses.hiddenLabel}`]: {\n paddingTop: 0,\n paddingBottom: 0,\n [`& .${autocompleteClasses.input}`]: {\n paddingTop: 16,\n paddingBottom: 17\n }\n },\n [`& .${filledInputClasses.root}.${inputBaseClasses.hiddenLabel}.${inputBaseClasses.sizeSmall}`]: {\n [`& .${autocompleteClasses.input}`]: {\n paddingTop: 8,\n paddingBottom: 9\n }\n },\n [`& .${autocompleteClasses.input}`]: {\n flexGrow: 1,\n textOverflow: 'ellipsis',\n opacity: 0\n },\n variants: [{\n props: {\n fullWidth: true\n },\n style: {\n width: '100%'\n }\n }, {\n props: {\n size: 'small'\n },\n style: {\n [`& .${autocompleteClasses.tag}`]: {\n margin: 2,\n maxWidth: 'calc(100% - 4px)'\n }\n }\n }, {\n props: {\n inputFocused: true\n },\n style: {\n [`& .${autocompleteClasses.input}`]: {\n opacity: 1\n }\n }\n }, {\n props: {\n multiple: true\n },\n style: {\n [`& .${autocompleteClasses.inputRoot}`]: {\n flexWrap: 'wrap'\n }\n }\n }]\n});\nconst AutocompleteEndAdornment = styled('div', {\n name: 'MuiAutocomplete',\n slot: 'EndAdornment',\n overridesResolver: (props, styles) => styles.endAdornment\n})({\n // We use a position absolute to support wrapping tags.\n position: 'absolute',\n right: 0,\n top: '50%',\n transform: 'translate(0, -50%)'\n});\nconst AutocompleteClearIndicator = styled(IconButton, {\n name: 'MuiAutocomplete',\n slot: 'ClearIndicator',\n overridesResolver: (props, styles) => styles.clearIndicator\n})({\n marginRight: -2,\n padding: 4,\n visibility: 'hidden'\n});\nconst AutocompletePopupIndicator = styled(IconButton, {\n name: 'MuiAutocomplete',\n slot: 'PopupIndicator',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.popupIndicator, ownerState.popupOpen && styles.popupIndicatorOpen];\n }\n})({\n padding: 2,\n marginRight: -2,\n variants: [{\n props: {\n popupOpen: true\n },\n style: {\n transform: 'rotate(180deg)'\n }\n }]\n});\nconst AutocompletePopper = styled(Popper, {\n name: 'MuiAutocomplete',\n slot: 'Popper',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [{\n [`& .${autocompleteClasses.option}`]: styles.option\n }, styles.popper, ownerState.disablePortal && styles.popperDisablePortal];\n }\n})(memoTheme(({\n theme\n}) => ({\n zIndex: (theme.vars || theme).zIndex.modal,\n variants: [{\n props: {\n disablePortal: true\n },\n style: {\n position: 'absolute'\n }\n }]\n})));\nconst AutocompletePaper = styled(Paper, {\n name: 'MuiAutocomplete',\n slot: 'Paper',\n overridesResolver: (props, styles) => styles.paper\n})(memoTheme(({\n theme\n}) => ({\n ...theme.typography.body1,\n overflow: 'auto'\n})));\nconst AutocompleteLoading = styled('div', {\n name: 'MuiAutocomplete',\n slot: 'Loading',\n overridesResolver: (props, styles) => styles.loading\n})(memoTheme(({\n theme\n}) => ({\n color: (theme.vars || theme).palette.text.secondary,\n padding: '14px 16px'\n})));\nconst AutocompleteNoOptions = styled('div', {\n name: 'MuiAutocomplete',\n slot: 'NoOptions',\n overridesResolver: (props, styles) => styles.noOptions\n})(memoTheme(({\n theme\n}) => ({\n color: (theme.vars || theme).palette.text.secondary,\n padding: '14px 16px'\n})));\nconst AutocompleteListbox = styled('ul', {\n name: 'MuiAutocomplete',\n slot: 'Listbox',\n overridesResolver: (props, styles) => styles.listbox\n})(memoTheme(({\n theme\n}) => ({\n listStyle: 'none',\n margin: 0,\n padding: '8px 0',\n maxHeight: '40vh',\n overflow: 'auto',\n position: 'relative',\n [`& .${autocompleteClasses.option}`]: {\n minHeight: 48,\n display: 'flex',\n overflow: 'hidden',\n justifyContent: 'flex-start',\n alignItems: 'center',\n cursor: 'pointer',\n paddingTop: 6,\n boxSizing: 'border-box',\n outline: '0',\n WebkitTapHighlightColor: 'transparent',\n paddingBottom: 6,\n paddingLeft: 16,\n paddingRight: 16,\n [theme.breakpoints.up('sm')]: {\n minHeight: 'auto'\n },\n [`&.${autocompleteClasses.focused}`]: {\n backgroundColor: (theme.vars || theme).palette.action.hover,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n '&[aria-disabled=\"true\"]': {\n opacity: (theme.vars || theme).palette.action.disabledOpacity,\n pointerEvents: 'none'\n },\n [`&.${autocompleteClasses.focusVisible}`]: {\n backgroundColor: (theme.vars || theme).palette.action.focus\n },\n '&[aria-selected=\"true\"]': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),\n [`&.${autocompleteClasses.focused}`]: {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: (theme.vars || theme).palette.action.selected\n }\n },\n [`&.${autocompleteClasses.focusVisible}`]: {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)\n }\n }\n }\n})));\nconst AutocompleteGroupLabel = styled(ListSubheader, {\n name: 'MuiAutocomplete',\n slot: 'GroupLabel',\n overridesResolver: (props, styles) => styles.groupLabel\n})(memoTheme(({\n theme\n}) => ({\n backgroundColor: (theme.vars || theme).palette.background.paper,\n top: -8\n})));\nconst AutocompleteGroupUl = styled('ul', {\n name: 'MuiAutocomplete',\n slot: 'GroupUl',\n overridesResolver: (props, styles) => styles.groupUl\n})({\n padding: 0,\n [`& .${autocompleteClasses.option}`]: {\n paddingLeft: 24\n }\n});\nexport { createFilterOptions };\nconst Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiAutocomplete'\n });\n\n /* eslint-disable @typescript-eslint/no-unused-vars */\n const {\n autoComplete = false,\n autoHighlight = false,\n autoSelect = false,\n blurOnSelect = false,\n ChipProps: ChipPropsProp,\n className,\n clearIcon = _ClearIcon || (_ClearIcon = /*#__PURE__*/_jsx(ClearIcon, {\n fontSize: \"small\"\n })),\n clearOnBlur = !props.freeSolo,\n clearOnEscape = false,\n clearText = 'Clear',\n closeText = 'Close',\n componentsProps,\n defaultValue = props.multiple ? [] : null,\n disableClearable = false,\n disableCloseOnSelect = false,\n disabled = false,\n disabledItemsFocusable = false,\n disableListWrap = false,\n disablePortal = false,\n filterOptions,\n filterSelectedOptions = false,\n forcePopupIcon = 'auto',\n freeSolo = false,\n fullWidth = false,\n getLimitTagsText = more => `+${more}`,\n getOptionDisabled,\n getOptionKey,\n getOptionLabel: getOptionLabelProp,\n isOptionEqualToValue,\n groupBy,\n handleHomeEndKeys = !props.freeSolo,\n id: idProp,\n includeInputInList = false,\n inputValue: inputValueProp,\n limitTags = -1,\n ListboxComponent: ListboxComponentProp,\n ListboxProps: ListboxPropsProp,\n loading = false,\n loadingText = 'Loading…',\n multiple = false,\n noOptionsText = 'No options',\n onChange,\n onClose,\n onHighlightChange,\n onInputChange,\n onOpen,\n open,\n openOnFocus = false,\n openText = 'Open',\n options,\n PaperComponent: PaperComponentProp,\n PopperComponent: PopperComponentProp,\n popupIcon = _ArrowDropDownIcon || (_ArrowDropDownIcon = /*#__PURE__*/_jsx(ArrowDropDownIcon, {})),\n readOnly = false,\n renderGroup: renderGroupProp,\n renderInput,\n renderOption: renderOptionProp,\n renderTags,\n renderValue,\n selectOnFocus = !props.freeSolo,\n size = 'medium',\n slots = {},\n slotProps = {},\n value: valueProp,\n ...other\n } = props;\n /* eslint-enable @typescript-eslint/no-unused-vars */\n\n const {\n getRootProps,\n getInputProps,\n getInputLabelProps,\n getPopupIndicatorProps,\n getClearProps,\n getItemProps,\n getListboxProps,\n getOptionProps,\n value,\n dirty,\n expanded,\n id,\n popupOpen,\n focused,\n focusedItem,\n anchorEl,\n setAnchorEl,\n inputValue,\n groupedOptions\n } = useAutocomplete({\n ...props,\n componentName: 'Autocomplete'\n });\n const hasClearIcon = !disableClearable && !disabled && dirty && !readOnly;\n const hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;\n const {\n onMouseDown: handleInputMouseDown\n } = getInputProps();\n const {\n ref: listboxRef,\n ...otherListboxProps\n } = getListboxProps();\n const defaultGetOptionLabel = option => option.label ?? option;\n const getOptionLabel = getOptionLabelProp || defaultGetOptionLabel;\n\n // If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.\n const ownerState = {\n ...props,\n disablePortal,\n expanded,\n focused,\n fullWidth,\n getOptionLabel,\n hasClearIcon,\n hasPopupIcon,\n inputFocused: focusedItem === -1,\n popupOpen,\n size\n };\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots: {\n paper: PaperComponentProp,\n popper: PopperComponentProp,\n ...slots\n },\n slotProps: {\n chip: ChipPropsProp,\n listbox: ListboxPropsProp,\n ...componentsProps,\n ...slotProps\n }\n };\n const [ListboxSlot, listboxProps] = useSlot('listbox', {\n elementType: AutocompleteListbox,\n externalForwardedProps,\n ownerState,\n className: classes.listbox,\n additionalProps: otherListboxProps,\n ref: listboxRef\n });\n const [PaperSlot, paperProps] = useSlot('paper', {\n elementType: Paper,\n externalForwardedProps,\n ownerState,\n className: classes.paper\n });\n const [PopperSlot, popperProps] = useSlot('popper', {\n elementType: Popper,\n externalForwardedProps,\n ownerState,\n className: classes.popper,\n additionalProps: {\n disablePortal,\n style: {\n width: anchorEl ? anchorEl.clientWidth : null\n },\n role: 'presentation',\n anchorEl,\n open: popupOpen\n }\n });\n let startAdornment;\n const getCustomizedItemProps = params => ({\n className: classes.tag,\n disabled,\n ...getItemProps(params)\n });\n if (renderTags && multiple && value.length > 0) {\n startAdornment = renderTags(value, getCustomizedItemProps, ownerState);\n } else if (renderValue && value) {\n startAdornment = renderValue(value, getCustomizedItemProps, ownerState);\n } else if (multiple && value.length > 0) {\n startAdornment = value.map((option, index) => {\n const {\n key,\n ...customItemProps\n } = getCustomizedItemProps({\n index\n });\n return /*#__PURE__*/_jsx(Chip, {\n label: getOptionLabel(option),\n size: size,\n ...customItemProps,\n ...externalForwardedProps.slotProps.chip\n }, key);\n });\n }\n if (limitTags > -1 && Array.isArray(startAdornment)) {\n const more = startAdornment.length - limitTags;\n if (!focused && more > 0) {\n startAdornment = startAdornment.splice(0, limitTags);\n startAdornment.push(/*#__PURE__*/_jsx(\"span\", {\n className: classes.tag,\n children: getLimitTagsText(more)\n }, startAdornment.length));\n }\n }\n const defaultRenderGroup = params => /*#__PURE__*/_jsxs(\"li\", {\n children: [/*#__PURE__*/_jsx(AutocompleteGroupLabel, {\n className: classes.groupLabel,\n ownerState: ownerState,\n component: \"div\",\n children: params.group\n }), /*#__PURE__*/_jsx(AutocompleteGroupUl, {\n className: classes.groupUl,\n ownerState: ownerState,\n children: params.children\n })]\n }, params.key);\n const renderGroup = renderGroupProp || defaultRenderGroup;\n const defaultRenderOption = (props2, option) => {\n // Need to clearly apply key because of https://github.com/vercel/next.js/issues/55642\n const {\n key,\n ...otherProps\n } = props2;\n return /*#__PURE__*/_jsx(\"li\", {\n ...otherProps,\n children: getOptionLabel(option)\n }, key);\n };\n const renderOption = renderOptionProp || defaultRenderOption;\n const renderListOption = (option, index) => {\n const optionProps = getOptionProps({\n option,\n index\n });\n return renderOption({\n ...optionProps,\n className: classes.option\n }, option, {\n selected: optionProps['aria-selected'],\n index,\n inputValue\n }, ownerState);\n };\n const clearIndicatorSlotProps = externalForwardedProps.slotProps.clearIndicator;\n const popupIndicatorSlotProps = externalForwardedProps.slotProps.popupIndicator;\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(AutocompleteRoot, {\n ref: ref,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ...getRootProps(other),\n children: renderInput({\n id,\n disabled,\n fullWidth: true,\n size: size === 'small' ? 'small' : undefined,\n InputLabelProps: getInputLabelProps(),\n InputProps: {\n ref: setAnchorEl,\n className: classes.inputRoot,\n startAdornment,\n onMouseDown: event => {\n if (event.target === event.currentTarget) {\n handleInputMouseDown(event);\n }\n },\n ...((hasClearIcon || hasPopupIcon) && {\n endAdornment: /*#__PURE__*/_jsxs(AutocompleteEndAdornment, {\n className: classes.endAdornment,\n ownerState: ownerState,\n children: [hasClearIcon ? /*#__PURE__*/_jsx(AutocompleteClearIndicator, {\n ...getClearProps(),\n \"aria-label\": clearText,\n title: clearText,\n ownerState: ownerState,\n ...clearIndicatorSlotProps,\n className: clsx(classes.clearIndicator, clearIndicatorSlotProps?.className),\n children: clearIcon\n }) : null, hasPopupIcon ? /*#__PURE__*/_jsx(AutocompletePopupIndicator, {\n ...getPopupIndicatorProps(),\n disabled: disabled,\n \"aria-label\": popupOpen ? closeText : openText,\n title: popupOpen ? closeText : openText,\n ownerState: ownerState,\n ...popupIndicatorSlotProps,\n className: clsx(classes.popupIndicator, popupIndicatorSlotProps?.className),\n children: popupIcon\n }) : null]\n })\n })\n },\n inputProps: {\n className: classes.input,\n disabled,\n readOnly,\n ...getInputProps()\n }\n })\n }), anchorEl ? /*#__PURE__*/_jsx(AutocompletePopper, {\n as: PopperSlot,\n ...popperProps,\n children: /*#__PURE__*/_jsxs(AutocompletePaper, {\n as: PaperSlot,\n ...paperProps,\n children: [loading && groupedOptions.length === 0 ? /*#__PURE__*/_jsx(AutocompleteLoading, {\n className: classes.loading,\n ownerState: ownerState,\n children: loadingText\n }) : null, groupedOptions.length === 0 && !freeSolo && !loading ? /*#__PURE__*/_jsx(AutocompleteNoOptions, {\n className: classes.noOptions,\n ownerState: ownerState,\n role: \"presentation\",\n onMouseDown: event => {\n // Prevent input blur when interacting with the \"no options\" content\n event.preventDefault();\n },\n children: noOptionsText\n }) : null, groupedOptions.length > 0 ? /*#__PURE__*/_jsx(ListboxSlot, {\n as: ListboxComponentProp,\n ...listboxProps,\n children: groupedOptions.map((option, index) => {\n if (groupBy) {\n return renderGroup({\n key: option.key,\n group: option.group,\n children: option.options.map((option2, index2) => renderListOption(option2, option.index + index2))\n });\n }\n return renderListOption(option, index);\n })\n }) : null]\n })\n }) : null]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Autocomplete.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If `true`, the portion of the selected suggestion that the user hasn't typed,\n * known as the completion string, appears inline after the input cursor in the textbox.\n * The inline completion string is visually highlighted and has a selected state.\n * @default false\n */\n autoComplete: PropTypes.bool,\n /**\n * If `true`, the first option is automatically highlighted.\n * @default false\n */\n autoHighlight: PropTypes.bool,\n /**\n * If `true`, the selected option becomes the value of the input\n * when the Autocomplete loses focus unless the user chooses\n * a different option or changes the character string in the input.\n *\n * When using the `freeSolo` mode, the typed value will be the input value\n * if the Autocomplete loses focus without highlighting an option.\n * @default false\n */\n autoSelect: PropTypes.bool,\n /**\n * Control if the input should be blurred when an option is selected:\n *\n * - `false` the input is not blurred.\n * - `true` the input is always blurred.\n * - `touch` the input is blurred after a touch event.\n * - `mouse` the input is blurred after a mouse event.\n * @default false\n */\n blurOnSelect: PropTypes.oneOfType([PropTypes.oneOf(['mouse', 'touch']), PropTypes.bool]),\n /**\n * Props applied to the [`Chip`](https://mui.com/material-ui/api/chip/) element.\n * @deprecated Use `slotProps.chip` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n ChipProps: PropTypes.object,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The icon to display in place of the default clear icon.\n * @default <ClearIcon fontSize=\"small\" />\n */\n clearIcon: PropTypes.node,\n /**\n * If `true`, the input's text is cleared on blur if no value is selected.\n *\n * Set it to `true` if you want to help the user enter a new value.\n * Set it to `false` if you want to help the user resume their search.\n * @default !props.freeSolo\n */\n clearOnBlur: PropTypes.bool,\n /**\n * If `true`, clear all values when the user presses escape and the popup is closed.\n * @default false\n */\n clearOnEscape: PropTypes.bool,\n /**\n * Override the default text for the *clear* icon button.\n *\n * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).\n * @default 'Clear'\n */\n clearText: PropTypes.string,\n /**\n * Override the default text for the *close popup* icon button.\n *\n * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).\n * @default 'Close'\n */\n closeText: PropTypes.string,\n /**\n * The props used for each slot inside.\n * @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n componentsProps: PropTypes.shape({\n clearIndicator: PropTypes.object,\n paper: PropTypes.object,\n popper: PropTypes.object,\n popupIndicator: PropTypes.object\n }),\n /**\n * The default value. Use when the component is not controlled.\n * @default props.multiple ? [] : null\n */\n defaultValue: chainPropTypes(PropTypes.any, props => {\n if (props.multiple && props.defaultValue !== undefined && !Array.isArray(props.defaultValue)) {\n return new Error(['MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.', `However, ${props.defaultValue} was provided.`].join('\\n'));\n }\n return null;\n }),\n /**\n * If `true`, the input can't be cleared.\n * @default false\n */\n disableClearable: PropTypes.bool,\n /**\n * If `true`, the popup won't close when a value is selected.\n * @default false\n */\n disableCloseOnSelect: PropTypes.bool,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, will allow focus on disabled items.\n * @default false\n */\n disabledItemsFocusable: PropTypes.bool,\n /**\n * If `true`, the list box in the popup will not wrap focus.\n * @default false\n */\n disableListWrap: PropTypes.bool,\n /**\n * If `true`, the `Popper` content will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool,\n /**\n * A function that determines the filtered options to be rendered on search.\n *\n * @default createFilterOptions()\n * @param {Value[]} options The options to render.\n * @param {object} state The state of the component.\n * @returns {Value[]}\n */\n filterOptions: PropTypes.func,\n /**\n * If `true`, hide the selected options from the list box.\n * @default false\n */\n filterSelectedOptions: PropTypes.bool,\n /**\n * Force the visibility display of the popup icon.\n * @default 'auto'\n */\n forcePopupIcon: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.bool]),\n /**\n * If `true`, the Autocomplete is free solo, meaning that the user input is not bound to provided options.\n * @default false\n */\n freeSolo: PropTypes.bool,\n /**\n * If `true`, the input will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * The label to display when the tags are truncated (`limitTags`).\n *\n * @param {number} more The number of truncated tags.\n * @returns {ReactNode}\n * @default (more) => `+${more}`\n */\n getLimitTagsText: PropTypes.func,\n /**\n * Used to determine the disabled state for a given option.\n *\n * @param {Value} option The option to test.\n * @returns {boolean}\n */\n getOptionDisabled: PropTypes.func,\n /**\n * Used to determine the key for a given option.\n * This can be useful when the labels of options are not unique (since labels are used as keys by default).\n *\n * @param {Value} option The option to get the key for.\n * @returns {string | number}\n */\n getOptionKey: PropTypes.func,\n /**\n * Used to determine the string value for a given option.\n * It's used to fill the input (and the list box options if `renderOption` is not provided).\n *\n * If used in free solo mode, it must accept both the type of the options and a string.\n *\n * @param {Value} option\n * @returns {string}\n * @default (option) => option.label ?? option\n */\n getOptionLabel: PropTypes.func,\n /**\n * If provided, the options will be grouped under the returned string.\n * The groupBy value is also used as the text for group headings when `renderGroup` is not provided.\n *\n * @param {Value} option The Autocomplete option.\n * @returns {string}\n */\n groupBy: PropTypes.func,\n /**\n * If `true`, the component handles the \"Home\" and \"End\" keys when the popup is open.\n * It should move focus to the first option and last option, respectively.\n * @default !props.freeSolo\n */\n handleHomeEndKeys: PropTypes.bool,\n /**\n * This prop is used to help implement the accessibility logic.\n * If you don't provide an id it will fall back to a randomly generated one.\n */\n id: PropTypes.string,\n /**\n * If `true`, the highlight can move to the input.\n * @default false\n */\n includeInputInList: PropTypes.bool,\n /**\n * The input value.\n */\n inputValue: PropTypes.string,\n /**\n * Used to determine if the option represents the given value.\n * Uses strict equality by default.\n * ⚠️ Both arguments need to be handled, an option can only match with one value.\n *\n * @param {Value} option The option to test.\n * @param {Value} value The value to test against.\n * @returns {boolean}\n */\n isOptionEqualToValue: PropTypes.func,\n /**\n * The maximum number of tags that will be visible when not focused.\n * Set `-1` to disable the limit.\n * @default -1\n */\n limitTags: integerPropType,\n /**\n * The component used to render the listbox.\n * @default 'ul'\n * @deprecated Use `slotProps.listbox.component` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n ListboxComponent: PropTypes.elementType,\n /**\n * Props applied to the Listbox element.\n * @deprecated Use `slotProps.listbox` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n ListboxProps: PropTypes.object,\n /**\n * If `true`, the component is in a loading state.\n * This shows the `loadingText` in place of suggestions (only if there are no suggestions to show, for example `options` are empty).\n * @default false\n */\n loading: PropTypes.bool,\n /**\n * Text to display when in a loading state.\n *\n * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).\n * @default 'Loading…'\n */\n loadingText: PropTypes.node,\n /**\n * If `true`, `value` must be an array and the menu will support multiple selections.\n * @default false\n */\n multiple: PropTypes.bool,\n /**\n * Text to display when there are no options.\n *\n * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).\n * @default 'No options'\n */\n noOptionsText: PropTypes.node,\n /**\n * Callback fired when the value changes.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n * @param {Value|Value[]} value The new value of the component.\n * @param {string} reason One of \"createOption\", \"selectOption\", \"removeOption\", \"blur\" or \"clear\".\n * @param {string} [details]\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see open).\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n * @param {string} reason Can be: `\"toggleInput\"`, `\"escape\"`, `\"selectOption\"`, `\"removeOption\"`, `\"blur\"`.\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the highlight option changes.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n * @param {Value} option The highlighted option.\n * @param {string} reason Can be: `\"keyboard\"`, `\"mouse\"`, `\"touch\"`.\n */\n onHighlightChange: PropTypes.func,\n /**\n * Callback fired when the input value changes.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n * @param {string} value The new value of the text input.\n * @param {string} reason Can be: `\"input\"` (user input), `\"reset\"` (programmatic change), `\"clear\"`, `\"blur\"`, `\"selectOption\"`, `\"removeOption\"`\n */\n onInputChange: PropTypes.func,\n /**\n * @ignore\n */\n onKeyDown: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see open).\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onOpen: PropTypes.func,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool,\n /**\n * If `true`, the popup will open on input focus.\n * @default false\n */\n openOnFocus: PropTypes.bool,\n /**\n * Override the default text for the *open popup* icon button.\n *\n * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).\n * @default 'Open'\n */\n openText: PropTypes.string,\n /**\n * A list of options that will be shown in the Autocomplete.\n */\n options: PropTypes.array.isRequired,\n /**\n * The component used to render the body of the popup.\n * @default Paper\n * @deprecated Use `slots.paper` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n PaperComponent: PropTypes.elementType,\n /**\n * The component used to position the popup.\n * @default Popper\n * @deprecated Use `slots.popper` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n PopperComponent: PropTypes.elementType,\n /**\n * The icon to display in place of the default popup icon.\n * @default <ArrowDropDownIcon />\n */\n popupIcon: PropTypes.node,\n /**\n * If `true`, the component becomes readonly. It is also supported for multiple tags where the tag cannot be deleted.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * Render the group.\n *\n * @param {AutocompleteRenderGroupParams} params The group to render.\n * @returns {ReactNode}\n */\n renderGroup: PropTypes.func,\n /**\n * Render the input.\n *\n * @param {object} params\n * @returns {ReactNode}\n */\n renderInput: PropTypes.func.isRequired,\n /**\n * Render the option, use `getOptionLabel` by default.\n *\n * @param {object} props The props to apply on the li element.\n * @param {Value} option The option to render.\n * @param {object} state The state of each option.\n * @param {object} ownerState The state of the Autocomplete component.\n * @returns {ReactNode}\n */\n renderOption: PropTypes.func,\n /**\n * Render the selected value when doing multiple selections.\n *\n * @deprecated Use `renderValue` prop instead\n *\n * @param {Value[]} value The `value` provided to the component.\n * @param {function} getTagProps A tag props getter.\n * @param {object} ownerState The state of the Autocomplete component.\n * @returns {ReactNode}\n */\n renderTags: PropTypes.func,\n /**\n * Renders the selected value(s) as rich content in the input for both single and multiple selections.\n *\n * @param {AutocompleteRenderValue<Value, Multiple, FreeSolo>} value The `value` provided to the component.\n * @param {function} getItemProps The value item props.\n * @param {object} ownerState The state of the Autocomplete component.\n * @returns {ReactNode}\n */\n renderValue: PropTypes.func,\n /**\n * If `true`, the input's text is selected on focus.\n * It helps the user clear the selected value.\n * @default !props.freeSolo\n */\n selectOnFocus: PropTypes.bool,\n /**\n * The size of the component.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium']), PropTypes.string]),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({\n chip: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n clearIndicator: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n listbox: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n paper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n popper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n popupIndicator: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n listbox: PropTypes.elementType,\n paper: PropTypes.elementType,\n popper: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The value of the autocomplete.\n *\n * The value must have reference equality with the option in order to be selected.\n * You can customize the equality behavior with the `isOptionEqualToValue` prop.\n */\n value: chainPropTypes(PropTypes.any, props => {\n if (props.multiple && props.value !== undefined && !Array.isArray(props.value)) {\n return new Error(['MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.', `However, ${props.value} was provided.`].join('\\n'));\n }\n return null;\n })\n} : void 0;\nexport default Autocomplete;","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z\"\n}), 'Person');","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getAvatarUtilityClass(slot) {\n return generateUtilityClass('MuiAvatar', slot);\n}\nconst avatarClasses = generateUtilityClasses('MuiAvatar', ['root', 'colorDefault', 'circular', 'rounded', 'square', 'img', 'fallback']);\nexport default avatarClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Person from \"../internal/svg-icons/Person.js\";\nimport { getAvatarUtilityClass } from \"./avatarClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n variant,\n colorDefault\n } = ownerState;\n const slots = {\n root: ['root', variant, colorDefault && 'colorDefault'],\n img: ['img'],\n fallback: ['fallback']\n };\n return composeClasses(slots, getAvatarUtilityClass, classes);\n};\nconst AvatarRoot = styled('div', {\n name: 'MuiAvatar',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant], ownerState.colorDefault && styles.colorDefault];\n }\n})(memoTheme(({\n theme\n}) => ({\n position: 'relative',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n width: 40,\n height: 40,\n fontFamily: theme.typography.fontFamily,\n fontSize: theme.typography.pxToRem(20),\n lineHeight: 1,\n borderRadius: '50%',\n overflow: 'hidden',\n userSelect: 'none',\n variants: [{\n props: {\n variant: 'rounded'\n },\n style: {\n borderRadius: (theme.vars || theme).shape.borderRadius\n }\n }, {\n props: {\n variant: 'square'\n },\n style: {\n borderRadius: 0\n }\n }, {\n props: {\n colorDefault: true\n },\n style: {\n color: (theme.vars || theme).palette.background.default,\n ...(theme.vars ? {\n backgroundColor: theme.vars.palette.Avatar.defaultBg\n } : {\n backgroundColor: theme.palette.grey[400],\n ...theme.applyStyles('dark', {\n backgroundColor: theme.palette.grey[600]\n })\n })\n }\n }]\n})));\nconst AvatarImg = styled('img', {\n name: 'MuiAvatar',\n slot: 'Img',\n overridesResolver: (props, styles) => styles.img\n})({\n width: '100%',\n height: '100%',\n textAlign: 'center',\n // Handle non-square image.\n objectFit: 'cover',\n // Hide alt text.\n color: 'transparent',\n // Hide the image broken icon, only works on Chrome.\n textIndent: 10000\n});\nconst AvatarFallback = styled(Person, {\n name: 'MuiAvatar',\n slot: 'Fallback',\n overridesResolver: (props, styles) => styles.fallback\n})({\n width: '75%',\n height: '75%'\n});\nfunction useLoaded({\n crossOrigin,\n referrerPolicy,\n src,\n srcSet\n}) {\n const [loaded, setLoaded] = React.useState(false);\n React.useEffect(() => {\n if (!src && !srcSet) {\n return undefined;\n }\n setLoaded(false);\n let active = true;\n const image = new Image();\n image.onload = () => {\n if (!active) {\n return;\n }\n setLoaded('loaded');\n };\n image.onerror = () => {\n if (!active) {\n return;\n }\n setLoaded('error');\n };\n image.crossOrigin = crossOrigin;\n image.referrerPolicy = referrerPolicy;\n image.src = src;\n if (srcSet) {\n image.srcset = srcSet;\n }\n return () => {\n active = false;\n };\n }, [crossOrigin, referrerPolicy, src, srcSet]);\n return loaded;\n}\nconst Avatar = /*#__PURE__*/React.forwardRef(function Avatar(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiAvatar'\n });\n const {\n alt,\n children: childrenProp,\n className,\n component = 'div',\n slots = {},\n slotProps = {},\n imgProps,\n sizes,\n src,\n srcSet,\n variant = 'circular',\n ...other\n } = props;\n let children = null;\n const ownerState = {\n ...props,\n component,\n variant\n };\n\n // Use a hook instead of onError on the img element to support server-side rendering.\n const loaded = useLoaded({\n ...imgProps,\n ...(typeof slotProps.img === 'function' ? slotProps.img(ownerState) : slotProps.img),\n src,\n srcSet\n });\n const hasImg = src || srcSet;\n const hasImgNotFailing = hasImg && loaded !== 'error';\n ownerState.colorDefault = !hasImgNotFailing;\n // This issue explains why this is required: https://github.com/mui/material-ui/issues/42184\n delete ownerState.ownerState;\n const classes = useUtilityClasses(ownerState);\n const [ImgSlot, imgSlotProps] = useSlot('img', {\n className: classes.img,\n elementType: AvatarImg,\n externalForwardedProps: {\n slots,\n slotProps: {\n img: {\n ...imgProps,\n ...slotProps.img\n }\n }\n },\n additionalProps: {\n alt,\n src,\n srcSet,\n sizes\n },\n ownerState\n });\n if (hasImgNotFailing) {\n children = /*#__PURE__*/_jsx(ImgSlot, {\n ...imgSlotProps\n });\n // We only render valid children, non valid children are rendered with a fallback\n // We consider that invalid children are all falsy values, except 0, which is valid.\n } else if (!!childrenProp || childrenProp === 0) {\n children = childrenProp;\n } else if (hasImg && alt) {\n children = alt[0];\n } else {\n children = /*#__PURE__*/_jsx(AvatarFallback, {\n ownerState: ownerState,\n className: classes.fallback\n });\n }\n return /*#__PURE__*/_jsx(AvatarRoot, {\n as: component,\n className: clsx(classes.root, className),\n ref: ref,\n ...other,\n ownerState: ownerState,\n children: children\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Avatar.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Used in combination with `src` or `srcSet` to\n * provide an alt attribute for the rendered `img` element.\n */\n alt: PropTypes.string,\n /**\n * Used to render icon or text elements inside the Avatar if `src` is not set.\n * This can be an element, or just a string.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes) applied to the `img` element if the component is used to display an image.\n * It can be used to listen for the loading error event.\n * @deprecated Use `slotProps.img` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n imgProps: PropTypes.object,\n /**\n * The `sizes` attribute for the `img` element.\n */\n sizes: PropTypes.string,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n img: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n img: PropTypes.elementType\n }),\n /**\n * The `src` attribute for the `img` element.\n */\n src: PropTypes.string,\n /**\n * The `srcSet` attribute for the `img` element.\n * Use this attribute for responsive image display.\n */\n srcSet: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The shape of the avatar.\n * @default 'circular'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['circular', 'rounded', 'square']), PropTypes.string])\n} : void 0;\nexport default Avatar;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getAvatarGroupUtilityClass(slot) {\n return generateUtilityClass('MuiAvatarGroup', slot);\n}\nconst avatarGroupClasses = generateUtilityClasses('MuiAvatarGroup', ['root', 'avatar']);\nexport default avatarGroupClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { isFragment } from 'react-is';\nimport clsx from 'clsx';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Avatar, { avatarClasses } from \"../Avatar/index.js\";\nimport avatarGroupClasses, { getAvatarGroupUtilityClass } from \"./avatarGroupClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SPACINGS = {\n small: -16,\n medium: -8\n};\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n avatar: ['avatar']\n };\n return composeClasses(slots, getAvatarGroupUtilityClass, classes);\n};\nconst AvatarGroupRoot = styled('div', {\n name: 'MuiAvatarGroup',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n return [{\n [`& .${avatarGroupClasses.avatar}`]: styles.avatar\n }, styles.root];\n }\n})(memoTheme(({\n theme\n}) => ({\n display: 'flex',\n flexDirection: 'row-reverse',\n [`& .${avatarClasses.root}`]: {\n border: `2px solid ${(theme.vars || theme).palette.background.default}`,\n boxSizing: 'content-box',\n marginLeft: 'var(--AvatarGroup-spacing, -8px)',\n '&:last-child': {\n marginLeft: 0\n }\n }\n})));\nconst AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiAvatarGroup'\n });\n const {\n children: childrenProp,\n className,\n component = 'div',\n componentsProps,\n max = 5,\n renderSurplus,\n slotProps = {},\n slots = {},\n spacing = 'medium',\n total,\n variant = 'circular',\n ...other\n } = props;\n let clampedMax = max < 2 ? 2 : max;\n const ownerState = {\n ...props,\n max,\n spacing,\n component,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n const children = React.Children.toArray(childrenProp).filter(child => {\n if (process.env.NODE_ENV !== 'production') {\n if (isFragment(child)) {\n console.error([\"MUI: The AvatarGroup component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n }\n }\n return /*#__PURE__*/React.isValidElement(child);\n });\n const totalAvatars = total || children.length;\n if (totalAvatars === clampedMax) {\n clampedMax += 1;\n }\n clampedMax = Math.min(totalAvatars + 1, clampedMax);\n const maxAvatars = Math.min(children.length, clampedMax - 1);\n const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);\n const extraAvatarsElement = renderSurplus ? renderSurplus(extraAvatars) : `+${extraAvatars}`;\n let marginValue;\n if (ownerState.spacing && SPACINGS[ownerState.spacing] !== undefined) {\n marginValue = SPACINGS[ownerState.spacing];\n } else if (ownerState.spacing === 0) {\n marginValue = 0;\n } else {\n marginValue = -ownerState.spacing || SPACINGS.medium;\n }\n const externalForwardedProps = {\n slots,\n slotProps: {\n surplus: slotProps.additionalAvatar ?? componentsProps?.additionalAvatar,\n ...componentsProps,\n ...slotProps\n }\n };\n const [SurplusSlot, surplusProps] = useSlot('surplus', {\n elementType: Avatar,\n externalForwardedProps,\n className: classes.avatar,\n ownerState,\n additionalProps: {\n variant\n }\n });\n return /*#__PURE__*/_jsxs(AvatarGroupRoot, {\n as: component,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ref: ref,\n ...other,\n style: {\n '--AvatarGroup-spacing': `${marginValue}px`,\n // marginValue is always defined\n ...other.style\n },\n children: [extraAvatars ? /*#__PURE__*/_jsx(SurplusSlot, {\n ...surplusProps,\n children: extraAvatarsElement\n }) : null, children.slice(0, maxAvatars).reverse().map(child => {\n return /*#__PURE__*/React.cloneElement(child, {\n className: clsx(child.props.className, classes.avatar),\n variant: child.props.variant || variant\n });\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? AvatarGroup.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The avatars to stack.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * This prop is an alias for the `slotProps` prop.\n *\n * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n componentsProps: PropTypes.shape({\n additionalAvatar: PropTypes.object\n }),\n /**\n * Max avatars to show before +x.\n * @default 5\n */\n max: chainPropTypes(PropTypes.number, props => {\n if (props.max < 2) {\n return new Error(['MUI: The prop `max` should be equal to 2 or above.', 'A value below is clamped to 2.'].join('\\n'));\n }\n return null;\n }),\n /**\n * custom renderer of extraAvatars\n * @param {number} surplus number of extra avatars\n * @returns {React.ReactNode} custom element to display\n */\n renderSurplus: PropTypes.func,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n additionalAvatar: PropTypes.object,\n surplus: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n surplus: PropTypes.elementType\n }),\n /**\n * Spacing between avatars.\n * @default 'medium'\n */\n spacing: PropTypes.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.number]),\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The total number of avatars. Used for calculating the number of extra avatars.\n * @default children.length\n */\n total: PropTypes.number,\n /**\n * The variant to use.\n * @default 'circular'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['circular', 'rounded', 'square']), PropTypes.string])\n} : void 0;\nexport default AvatarGroup;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { Transition } from 'react-transition-group';\nimport elementAcceptingRef from '@mui/utils/elementAcceptingRef';\nimport getReactElementRef from '@mui/utils/getReactElementRef';\nimport { useTheme } from \"../zero-styled/index.js\";\nimport { reflow, getTransitionProps } from \"../transitions/utils.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst styles = {\n entering: {\n opacity: 1\n },\n entered: {\n opacity: 1\n }\n};\n\n/**\n * The Fade transition is used by the [Modal](/material-ui/react-modal/) component.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\nconst Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {\n const theme = useTheme();\n const defaultTimeout = {\n enter: theme.transitions.duration.enteringScreen,\n exit: theme.transitions.duration.leavingScreen\n };\n const {\n addEndListener,\n appear = true,\n children,\n easing,\n in: inProp,\n onEnter,\n onEntered,\n onEntering,\n onExit,\n onExited,\n onExiting,\n style,\n timeout = defaultTimeout,\n // eslint-disable-next-line react/prop-types\n TransitionComponent = Transition,\n ...other\n } = props;\n const enableStrictModeCompat = true;\n const nodeRef = React.useRef(null);\n const handleRef = useForkRef(nodeRef, getReactElementRef(children), ref);\n const normalizedTransitionCallback = callback => maybeIsAppearing => {\n if (callback) {\n const node = nodeRef.current;\n\n // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n if (maybeIsAppearing === undefined) {\n callback(node);\n } else {\n callback(node, maybeIsAppearing);\n }\n }\n };\n const handleEntering = normalizedTransitionCallback(onEntering);\n const handleEnter = normalizedTransitionCallback((node, isAppearing) => {\n reflow(node); // So the animation always start from the start.\n\n const transitionProps = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'enter'\n });\n node.style.webkitTransition = theme.transitions.create('opacity', transitionProps);\n node.style.transition = theme.transitions.create('opacity', transitionProps);\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n const handleEntered = normalizedTransitionCallback(onEntered);\n const handleExiting = normalizedTransitionCallback(onExiting);\n const handleExit = normalizedTransitionCallback(node => {\n const transitionProps = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'exit'\n });\n node.style.webkitTransition = theme.transitions.create('opacity', transitionProps);\n node.style.transition = theme.transitions.create('opacity', transitionProps);\n if (onExit) {\n onExit(node);\n }\n });\n const handleExited = normalizedTransitionCallback(onExited);\n const handleAddEndListener = next => {\n if (addEndListener) {\n // Old call signature before `react-transition-group` implemented `nodeRef`\n addEndListener(nodeRef.current, next);\n }\n };\n return /*#__PURE__*/_jsx(TransitionComponent, {\n appear: appear,\n in: inProp,\n nodeRef: enableStrictModeCompat ? nodeRef : undefined,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n addEndListener: handleAddEndListener,\n timeout: timeout,\n ...other,\n children: (state, {\n ownerState,\n ...restChildProps\n }) => {\n return /*#__PURE__*/React.cloneElement(children, {\n style: {\n opacity: 0,\n visibility: state === 'exited' && !inProp ? 'hidden' : undefined,\n ...styles[state],\n ...style,\n ...children.props.style\n },\n ref: handleRef,\n ...restChildProps\n });\n }\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Fade.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Add a custom transition end trigger. Called with the transitioning DOM\n * node and a done callback. Allows for more fine grained transition end\n * logic. Note: Timeouts are still used as a fallback if provided.\n */\n addEndListener: PropTypes.func,\n /**\n * Perform the enter transition when it first mounts if `in` is also `true`.\n * Set this to `false` to disable this behavior.\n * @default true\n */\n appear: PropTypes.bool,\n /**\n * A single child content element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * The transition timing function.\n * You may specify a single easing or a object containing enter and exit values.\n */\n easing: PropTypes.oneOfType([PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string\n }), PropTypes.string]),\n /**\n * If `true`, the component will transition in.\n */\n in: PropTypes.bool,\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n * @default {\n * enter: theme.transitions.duration.enteringScreen,\n * exit: theme.transitions.duration.leavingScreen,\n * }\n */\n timeout: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nexport default Fade;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getBackdropUtilityClass(slot) {\n return generateUtilityClass('MuiBackdrop', slot);\n}\nconst backdropClasses = generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);\nexport default backdropClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport Fade from \"../Fade/index.js\";\nimport { getBackdropUtilityClass } from \"./backdropClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n invisible\n } = ownerState;\n const slots = {\n root: ['root', invisible && 'invisible']\n };\n return composeClasses(slots, getBackdropUtilityClass, classes);\n};\nconst BackdropRoot = styled('div', {\n name: 'MuiBackdrop',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.invisible && styles.invisible];\n }\n})({\n position: 'fixed',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n right: 0,\n bottom: 0,\n top: 0,\n left: 0,\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n WebkitTapHighlightColor: 'transparent',\n variants: [{\n props: {\n invisible: true\n },\n style: {\n backgroundColor: 'transparent'\n }\n }]\n});\nconst Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiBackdrop'\n });\n const {\n children,\n className,\n component = 'div',\n invisible = false,\n open,\n components = {},\n componentsProps = {},\n slotProps = {},\n slots = {},\n TransitionComponent: TransitionComponentProp,\n transitionDuration,\n ...other\n } = props;\n const ownerState = {\n ...props,\n component,\n invisible\n };\n const classes = useUtilityClasses(ownerState);\n const backwardCompatibleSlots = {\n transition: TransitionComponentProp,\n root: components.Root,\n ...slots\n };\n const backwardCompatibleSlotProps = {\n ...componentsProps,\n ...slotProps\n };\n const externalForwardedProps = {\n slots: backwardCompatibleSlots,\n slotProps: backwardCompatibleSlotProps\n };\n const [RootSlot, rootProps] = useSlot('root', {\n elementType: BackdropRoot,\n externalForwardedProps,\n className: clsx(classes.root, className),\n ownerState\n });\n const [TransitionSlot, transitionProps] = useSlot('transition', {\n elementType: Fade,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsx(TransitionSlot, {\n in: open,\n timeout: transitionDuration,\n ...other,\n ...transitionProps,\n children: /*#__PURE__*/_jsx(RootSlot, {\n \"aria-hidden\": true,\n ...rootProps,\n classes: classes,\n ref: ref,\n children: children\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Backdrop.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The components used for each slot inside.\n *\n * @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n components: PropTypes.shape({\n Root: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n root: PropTypes.object\n }),\n /**\n * If `true`, the backdrop is invisible.\n * It can be used when rendering a popover or a custom select component.\n * @default false\n */\n invisible: PropTypes.bool,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType,\n transition: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The component used for the transition.\n * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n * @default Fade\n * @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n TransitionComponent: PropTypes.elementType,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nexport default Backdrop;","'use client';\n\nimport { usePreviousProps } from '@mui/utils';\n/**\n *\n * Demos:\n *\n * - [Badge](https://mui.com/base-ui/react-badge/#hook)\n *\n * API:\n *\n * - [useBadge API](https://mui.com/base-ui/react-badge/hooks-api/#use-badge)\n */\nfunction useBadge(parameters) {\n const {\n badgeContent: badgeContentProp,\n invisible: invisibleProp = false,\n max: maxProp = 99,\n showZero = false\n } = parameters;\n const prevProps = usePreviousProps({\n badgeContent: badgeContentProp,\n max: maxProp\n });\n let invisible = invisibleProp;\n if (invisibleProp === false && badgeContentProp === 0 && !showZero) {\n invisible = true;\n }\n const {\n badgeContent,\n max = maxProp\n } = invisible ? prevProps : parameters;\n const displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;\n return {\n badgeContent,\n invisible,\n max,\n displayValue\n };\n}\nexport default useBadge;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getBadgeUtilityClass(slot) {\n return generateUtilityClass('MuiBadge', slot);\n}\nconst badgeClasses = generateUtilityClasses('MuiBadge', ['root', 'badge', 'dot', 'standard', 'anchorOriginTopRight', 'anchorOriginBottomRight', 'anchorOriginTopLeft', 'anchorOriginBottomLeft', 'invisible', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'overlapRectangular', 'overlapCircular',\n// TODO: v6 remove the overlap value from these class keys\n'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']);\nexport default badgeClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport usePreviousProps from '@mui/utils/usePreviousProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport useBadge from \"./useBadge.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport badgeClasses, { getBadgeUtilityClass } from \"./badgeClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst RADIUS_STANDARD = 10;\nconst RADIUS_DOT = 4;\nconst useUtilityClasses = ownerState => {\n const {\n color,\n anchorOrigin,\n invisible,\n overlap,\n variant,\n classes = {}\n } = ownerState;\n const slots = {\n root: ['root'],\n badge: ['badge', variant, invisible && 'invisible', `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}`, `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}${capitalize(overlap)}`, `overlap${capitalize(overlap)}`, color !== 'default' && `color${capitalize(color)}`]\n };\n return composeClasses(slots, getBadgeUtilityClass, classes);\n};\nconst BadgeRoot = styled('span', {\n name: 'MuiBadge',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n position: 'relative',\n display: 'inline-flex',\n // For correct alignment with the text.\n verticalAlign: 'middle',\n flexShrink: 0\n});\nconst BadgeBadge = styled('span', {\n name: 'MuiBadge',\n slot: 'Badge',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.badge, styles[ownerState.variant], styles[`anchorOrigin${capitalize(ownerState.anchorOrigin.vertical)}${capitalize(ownerState.anchorOrigin.horizontal)}${capitalize(ownerState.overlap)}`], ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`], ownerState.invisible && styles.invisible];\n }\n})(memoTheme(({\n theme\n}) => ({\n display: 'flex',\n flexDirection: 'row',\n flexWrap: 'wrap',\n justifyContent: 'center',\n alignContent: 'center',\n alignItems: 'center',\n position: 'absolute',\n boxSizing: 'border-box',\n fontFamily: theme.typography.fontFamily,\n fontWeight: theme.typography.fontWeightMedium,\n fontSize: theme.typography.pxToRem(12),\n minWidth: RADIUS_STANDARD * 2,\n lineHeight: 1,\n padding: '0 6px',\n height: RADIUS_STANDARD * 2,\n borderRadius: RADIUS_STANDARD,\n zIndex: 1,\n // Render the badge on top of potential ripples.\n transition: theme.transitions.create('transform', {\n easing: theme.transitions.easing.easeInOut,\n duration: theme.transitions.duration.enteringScreen\n }),\n variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['contrastText'])).map(([color]) => ({\n props: {\n color\n },\n style: {\n backgroundColor: (theme.vars || theme).palette[color].main,\n color: (theme.vars || theme).palette[color].contrastText\n }\n })), {\n props: {\n variant: 'dot'\n },\n style: {\n borderRadius: RADIUS_DOT,\n height: RADIUS_DOT * 2,\n minWidth: RADIUS_DOT * 2,\n padding: 0\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'rectangular',\n style: {\n top: 0,\n right: 0,\n transform: 'scale(1) translate(50%, -50%)',\n transformOrigin: '100% 0%',\n [`&.${badgeClasses.invisible}`]: {\n transform: 'scale(0) translate(50%, -50%)'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'rectangular',\n style: {\n bottom: 0,\n right: 0,\n transform: 'scale(1) translate(50%, 50%)',\n transformOrigin: '100% 100%',\n [`&.${badgeClasses.invisible}`]: {\n transform: 'scale(0) translate(50%, 50%)'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'rectangular',\n style: {\n top: 0,\n left: 0,\n transform: 'scale(1) translate(-50%, -50%)',\n transformOrigin: '0% 0%',\n [`&.${badgeClasses.invisible}`]: {\n transform: 'scale(0) translate(-50%, -50%)'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'rectangular',\n style: {\n bottom: 0,\n left: 0,\n transform: 'scale(1) translate(-50%, 50%)',\n transformOrigin: '0% 100%',\n [`&.${badgeClasses.invisible}`]: {\n transform: 'scale(0) translate(-50%, 50%)'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'circular',\n style: {\n top: '14%',\n right: '14%',\n transform: 'scale(1) translate(50%, -50%)',\n transformOrigin: '100% 0%',\n [`&.${badgeClasses.invisible}`]: {\n transform: 'scale(0) translate(50%, -50%)'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'circular',\n style: {\n bottom: '14%',\n right: '14%',\n transform: 'scale(1) translate(50%, 50%)',\n transformOrigin: '100% 100%',\n [`&.${badgeClasses.invisible}`]: {\n transform: 'scale(0) translate(50%, 50%)'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'circular',\n style: {\n top: '14%',\n left: '14%',\n transform: 'scale(1) translate(-50%, -50%)',\n transformOrigin: '0% 0%',\n [`&.${badgeClasses.invisible}`]: {\n transform: 'scale(0) translate(-50%, -50%)'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'circular',\n style: {\n bottom: '14%',\n left: '14%',\n transform: 'scale(1) translate(-50%, 50%)',\n transformOrigin: '0% 100%',\n [`&.${badgeClasses.invisible}`]: {\n transform: 'scale(0) translate(-50%, 50%)'\n }\n }\n }, {\n props: {\n invisible: true\n },\n style: {\n transition: theme.transitions.create('transform', {\n easing: theme.transitions.easing.easeInOut,\n duration: theme.transitions.duration.leavingScreen\n })\n }\n }]\n})));\nfunction getAnchorOrigin(anchorOrigin) {\n return {\n vertical: anchorOrigin?.vertical ?? 'top',\n horizontal: anchorOrigin?.horizontal ?? 'right'\n };\n}\nconst Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiBadge'\n });\n const {\n anchorOrigin: anchorOriginProp,\n className,\n classes: classesProp,\n component,\n components = {},\n componentsProps = {},\n children,\n overlap: overlapProp = 'rectangular',\n color: colorProp = 'default',\n invisible: invisibleProp = false,\n max: maxProp = 99,\n badgeContent: badgeContentProp,\n slots,\n slotProps,\n showZero = false,\n variant: variantProp = 'standard',\n ...other\n } = props;\n const {\n badgeContent,\n invisible: invisibleFromHook,\n max,\n displayValue: displayValueFromHook\n } = useBadge({\n max: maxProp,\n invisible: invisibleProp,\n badgeContent: badgeContentProp,\n showZero\n });\n const prevProps = usePreviousProps({\n anchorOrigin: getAnchorOrigin(anchorOriginProp),\n color: colorProp,\n overlap: overlapProp,\n variant: variantProp,\n badgeContent: badgeContentProp\n });\n const invisible = invisibleFromHook || badgeContent == null && variantProp !== 'dot';\n const {\n color = colorProp,\n overlap = overlapProp,\n anchorOrigin: anchorOriginPropProp,\n variant = variantProp\n } = invisible ? prevProps : props;\n const anchorOrigin = getAnchorOrigin(anchorOriginPropProp);\n const displayValue = variant !== 'dot' ? displayValueFromHook : undefined;\n const ownerState = {\n ...props,\n badgeContent,\n invisible,\n max,\n displayValue,\n showZero,\n anchorOrigin,\n color,\n overlap,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n\n // support both `slots` and `components` for backward compatibility\n const RootSlot = slots?.root ?? components.Root ?? BadgeRoot;\n const BadgeSlot = slots?.badge ?? components.Badge ?? BadgeBadge;\n const rootSlotProps = slotProps?.root ?? componentsProps.root;\n const badgeSlotProps = slotProps?.badge ?? componentsProps.badge;\n const rootProps = useSlotProps({\n elementType: RootSlot,\n externalSlotProps: rootSlotProps,\n externalForwardedProps: other,\n additionalProps: {\n ref,\n as: component\n },\n ownerState,\n className: clsx(rootSlotProps?.className, classes.root, className)\n });\n const badgeProps = useSlotProps({\n elementType: BadgeSlot,\n externalSlotProps: badgeSlotProps,\n ownerState,\n className: clsx(classes.badge, badgeSlotProps?.className)\n });\n return /*#__PURE__*/_jsxs(RootSlot, {\n ...rootProps,\n children: [children, /*#__PURE__*/_jsx(BadgeSlot, {\n ...badgeProps,\n children: displayValue\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Badge.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The anchor of the badge.\n * @default {\n * vertical: 'top',\n * horizontal: 'right',\n * }\n */\n anchorOrigin: PropTypes.shape({\n horizontal: PropTypes.oneOf(['left', 'right']),\n vertical: PropTypes.oneOf(['bottom', 'top'])\n }),\n /**\n * The content rendered within the badge.\n */\n badgeContent: PropTypes.node,\n /**\n * The badge will be added relative to this node.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'default'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The components used for each slot inside.\n *\n * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n components: PropTypes.shape({\n Badge: PropTypes.elementType,\n Root: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n badge: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * If `true`, the badge is invisible.\n * @default false\n */\n invisible: PropTypes.bool,\n /**\n * Max count to show.\n * @default 99\n */\n max: PropTypes.number,\n /**\n * Wrapped shape the badge should overlap.\n * @default 'rectangular'\n */\n overlap: PropTypes.oneOf(['circular', 'rectangular']),\n /**\n * Controls whether the badge is hidden when `badgeContent` is zero.\n * @default false\n */\n showZero: PropTypes.bool,\n /**\n * The props used for each slot inside the Badge.\n * @default {}\n */\n slotProps: PropTypes.shape({\n badge: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside the Badge.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n slots: PropTypes.shape({\n badge: PropTypes.elementType,\n root: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The variant to use.\n * @default 'standard'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['dot', 'standard']), PropTypes.string])\n} : void 0;\nexport default Badge;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nconst boxClasses = generateUtilityClasses('MuiBox', ['root']);\nexport default boxClasses;","'use client';\n\nimport { createBox } from '@mui/system';\nimport PropTypes from 'prop-types';\nimport { unstable_ClassNameGenerator as ClassNameGenerator } from \"../className/index.js\";\nimport { createTheme } from \"../styles/index.js\";\nimport THEME_ID from \"../styles/identifier.js\";\nimport boxClasses from \"./boxClasses.js\";\nconst defaultTheme = createTheme();\nconst Box = createBox({\n themeId: THEME_ID,\n defaultTheme,\n defaultClassName: boxClasses.root,\n generateClassName: ClassNameGenerator.generate\n});\nprocess.env.NODE_ENV !== \"production\" ? Box.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Box;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getButtonUtilityClass(slot) {\n return generateUtilityClass('MuiButton', slot);\n}\nconst buttonClasses = generateUtilityClasses('MuiButton', ['root', 'text', 'textInherit', 'textPrimary', 'textSecondary', 'textSuccess', 'textError', 'textInfo', 'textWarning', 'outlined', 'outlinedInherit', 'outlinedPrimary', 'outlinedSecondary', 'outlinedSuccess', 'outlinedError', 'outlinedInfo', 'outlinedWarning', 'contained', 'containedInherit', 'containedPrimary', 'containedSecondary', 'containedSuccess', 'containedError', 'containedInfo', 'containedWarning', 'disableElevation', 'focusVisible', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorError', 'colorInfo', 'colorWarning', 'textSizeSmall', 'textSizeMedium', 'textSizeLarge', 'outlinedSizeSmall', 'outlinedSizeMedium', 'outlinedSizeLarge', 'containedSizeSmall', 'containedSizeMedium', 'containedSizeLarge', 'sizeMedium', 'sizeSmall', 'sizeLarge', 'fullWidth', 'startIcon', 'endIcon', 'icon', 'iconSizeSmall', 'iconSizeMedium', 'iconSizeLarge', 'loading', 'loadingWrapper', 'loadingIconPlaceholder', 'loadingIndicator', 'loadingPositionCenter', 'loadingPositionStart', 'loadingPositionEnd']);\nexport default buttonClasses;","'use client';\n\nimport * as React from 'react';\n/**\n * @ignore - internal component.\n */\nconst ButtonGroupContext = /*#__PURE__*/React.createContext({});\nif (process.env.NODE_ENV !== 'production') {\n ButtonGroupContext.displayName = 'ButtonGroupContext';\n}\nexport default ButtonGroupContext;","'use client';\n\nimport * as React from 'react';\n/**\n * @ignore - internal component.\n */\nconst ButtonGroupButtonContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== 'production') {\n ButtonGroupButtonContext.displayName = 'ButtonGroupButtonContext';\n}\nexport default ButtonGroupButtonContext;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport resolveProps from '@mui/utils/resolveProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport { unstable_useId as useId } from \"../utils/index.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport CircularProgress from \"../CircularProgress/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport buttonClasses, { getButtonUtilityClass } from \"./buttonClasses.js\";\nimport ButtonGroupContext from \"../ButtonGroup/ButtonGroupContext.js\";\nimport ButtonGroupButtonContext from \"../ButtonGroup/ButtonGroupButtonContext.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n color,\n disableElevation,\n fullWidth,\n size,\n variant,\n loading,\n loadingPosition,\n classes\n } = ownerState;\n const slots = {\n root: ['root', loading && 'loading', variant, `${variant}${capitalize(color)}`, `size${capitalize(size)}`, `${variant}Size${capitalize(size)}`, `color${capitalize(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth', loading && `loadingPosition${capitalize(loadingPosition)}`],\n startIcon: ['icon', 'startIcon', `iconSize${capitalize(size)}`],\n endIcon: ['icon', 'endIcon', `iconSize${capitalize(size)}`],\n loadingIndicator: ['loadingIndicator'],\n loadingWrapper: ['loadingWrapper']\n };\n const composedClasses = composeClasses(slots, getButtonUtilityClass, classes);\n return {\n ...classes,\n // forward the focused, disabled, etc. classes to the ButtonBase\n ...composedClasses\n };\n};\nconst commonIconStyles = [{\n props: {\n size: 'small'\n },\n style: {\n '& > *:nth-of-type(1)': {\n fontSize: 18\n }\n }\n}, {\n props: {\n size: 'medium'\n },\n style: {\n '& > *:nth-of-type(1)': {\n fontSize: 20\n }\n }\n}, {\n props: {\n size: 'large'\n },\n style: {\n '& > *:nth-of-type(1)': {\n fontSize: 22\n }\n }\n}];\nconst ButtonRoot = styled(ButtonBase, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiButton',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color)}`], styles[`size${capitalize(ownerState.size)}`], styles[`${ownerState.variant}Size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.loading && styles.loading];\n }\n})(memoTheme(({\n theme\n}) => {\n const inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];\n const inheritContainedHoverBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey.A100 : theme.palette.grey[700];\n return {\n ...theme.typography.button,\n minWidth: 64,\n padding: '6px 16px',\n border: 0,\n borderRadius: (theme.vars || theme).shape.borderRadius,\n transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {\n duration: theme.transitions.duration.short\n }),\n '&:hover': {\n textDecoration: 'none'\n },\n [`&.${buttonClasses.disabled}`]: {\n color: (theme.vars || theme).palette.action.disabled\n },\n variants: [{\n props: {\n variant: 'contained'\n },\n style: {\n color: `var(--variant-containedColor)`,\n backgroundColor: `var(--variant-containedBg)`,\n boxShadow: (theme.vars || theme).shadows[2],\n '&:hover': {\n boxShadow: (theme.vars || theme).shadows[4],\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n boxShadow: (theme.vars || theme).shadows[2]\n }\n },\n '&:active': {\n boxShadow: (theme.vars || theme).shadows[8]\n },\n [`&.${buttonClasses.focusVisible}`]: {\n boxShadow: (theme.vars || theme).shadows[6]\n },\n [`&.${buttonClasses.disabled}`]: {\n color: (theme.vars || theme).palette.action.disabled,\n boxShadow: (theme.vars || theme).shadows[0],\n backgroundColor: (theme.vars || theme).palette.action.disabledBackground\n }\n }\n }, {\n props: {\n variant: 'outlined'\n },\n style: {\n padding: '5px 15px',\n border: '1px solid currentColor',\n borderColor: `var(--variant-outlinedBorder, currentColor)`,\n backgroundColor: `var(--variant-outlinedBg)`,\n color: `var(--variant-outlinedColor)`,\n [`&.${buttonClasses.disabled}`]: {\n border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`\n }\n }\n }, {\n props: {\n variant: 'text'\n },\n style: {\n padding: '6px 8px',\n color: `var(--variant-textColor)`,\n backgroundColor: `var(--variant-textBg)`\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n '--variant-textColor': (theme.vars || theme).palette[color].main,\n '--variant-outlinedColor': (theme.vars || theme).palette[color].main,\n '--variant-outlinedBorder': theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / 0.5)` : alpha(theme.palette[color].main, 0.5),\n '--variant-containedColor': (theme.vars || theme).palette[color].contrastText,\n '--variant-containedBg': (theme.vars || theme).palette[color].main,\n '@media (hover: hover)': {\n '&:hover': {\n '--variant-containedBg': (theme.vars || theme).palette[color].dark,\n '--variant-textBg': theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity),\n '--variant-outlinedBorder': (theme.vars || theme).palette[color].main,\n '--variant-outlinedBg': theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity)\n }\n }\n }\n })), {\n props: {\n color: 'inherit'\n },\n style: {\n color: 'inherit',\n borderColor: 'currentColor',\n '--variant-containedBg': theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,\n '@media (hover: hover)': {\n '&:hover': {\n '--variant-containedBg': theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,\n '--variant-textBg': theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),\n '--variant-outlinedBg': theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity)\n }\n }\n }\n }, {\n props: {\n size: 'small',\n variant: 'text'\n },\n style: {\n padding: '4px 5px',\n fontSize: theme.typography.pxToRem(13)\n }\n }, {\n props: {\n size: 'large',\n variant: 'text'\n },\n style: {\n padding: '8px 11px',\n fontSize: theme.typography.pxToRem(15)\n }\n }, {\n props: {\n size: 'small',\n variant: 'outlined'\n },\n style: {\n padding: '3px 9px',\n fontSize: theme.typography.pxToRem(13)\n }\n }, {\n props: {\n size: 'large',\n variant: 'outlined'\n },\n style: {\n padding: '7px 21px',\n fontSize: theme.typography.pxToRem(15)\n }\n }, {\n props: {\n size: 'small',\n variant: 'contained'\n },\n style: {\n padding: '4px 10px',\n fontSize: theme.typography.pxToRem(13)\n }\n }, {\n props: {\n size: 'large',\n variant: 'contained'\n },\n style: {\n padding: '8px 22px',\n fontSize: theme.typography.pxToRem(15)\n }\n }, {\n props: {\n disableElevation: true\n },\n style: {\n boxShadow: 'none',\n '&:hover': {\n boxShadow: 'none'\n },\n [`&.${buttonClasses.focusVisible}`]: {\n boxShadow: 'none'\n },\n '&:active': {\n boxShadow: 'none'\n },\n [`&.${buttonClasses.disabled}`]: {\n boxShadow: 'none'\n }\n }\n }, {\n props: {\n fullWidth: true\n },\n style: {\n width: '100%'\n }\n }, {\n props: {\n loadingPosition: 'center'\n },\n style: {\n transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {\n duration: theme.transitions.duration.short\n }),\n [`&.${buttonClasses.loading}`]: {\n color: 'transparent'\n }\n }\n }]\n };\n}));\nconst ButtonStartIcon = styled('span', {\n name: 'MuiButton',\n slot: 'StartIcon',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.startIcon, ownerState.loading && styles.startIconLoadingStart, styles[`iconSize${capitalize(ownerState.size)}`]];\n }\n})(({\n theme\n}) => ({\n display: 'inherit',\n marginRight: 8,\n marginLeft: -4,\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n marginLeft: -2\n }\n }, {\n props: {\n loadingPosition: 'start',\n loading: true\n },\n style: {\n transition: theme.transitions.create(['opacity'], {\n duration: theme.transitions.duration.short\n }),\n opacity: 0\n }\n }, {\n props: {\n loadingPosition: 'start',\n loading: true,\n fullWidth: true\n },\n style: {\n marginRight: -8\n }\n }, ...commonIconStyles]\n}));\nconst ButtonEndIcon = styled('span', {\n name: 'MuiButton',\n slot: 'EndIcon',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.endIcon, ownerState.loading && styles.endIconLoadingEnd, styles[`iconSize${capitalize(ownerState.size)}`]];\n }\n})(({\n theme\n}) => ({\n display: 'inherit',\n marginRight: -4,\n marginLeft: 8,\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n marginRight: -2\n }\n }, {\n props: {\n loadingPosition: 'end',\n loading: true\n },\n style: {\n transition: theme.transitions.create(['opacity'], {\n duration: theme.transitions.duration.short\n }),\n opacity: 0\n }\n }, {\n props: {\n loadingPosition: 'end',\n loading: true,\n fullWidth: true\n },\n style: {\n marginLeft: -8\n }\n }, ...commonIconStyles]\n}));\nconst ButtonLoadingIndicator = styled('span', {\n name: 'MuiButton',\n slot: 'LoadingIndicator',\n overridesResolver: (props, styles) => styles.loadingIndicator\n})(({\n theme\n}) => ({\n display: 'none',\n position: 'absolute',\n visibility: 'visible',\n variants: [{\n props: {\n loading: true\n },\n style: {\n display: 'flex'\n }\n }, {\n props: {\n loadingPosition: 'start'\n },\n style: {\n left: 14\n }\n }, {\n props: {\n loadingPosition: 'start',\n size: 'small'\n },\n style: {\n left: 10\n }\n }, {\n props: {\n variant: 'text',\n loadingPosition: 'start'\n },\n style: {\n left: 6\n }\n }, {\n props: {\n loadingPosition: 'center'\n },\n style: {\n left: '50%',\n transform: 'translate(-50%)',\n color: (theme.vars || theme).palette.action.disabled\n }\n }, {\n props: {\n loadingPosition: 'end'\n },\n style: {\n right: 14\n }\n }, {\n props: {\n loadingPosition: 'end',\n size: 'small'\n },\n style: {\n right: 10\n }\n }, {\n props: {\n variant: 'text',\n loadingPosition: 'end'\n },\n style: {\n right: 6\n }\n }, {\n props: {\n loadingPosition: 'start',\n fullWidth: true\n },\n style: {\n position: 'relative',\n left: -10\n }\n }, {\n props: {\n loadingPosition: 'end',\n fullWidth: true\n },\n style: {\n position: 'relative',\n right: -10\n }\n }]\n}));\nconst ButtonLoadingIconPlaceholder = styled('span', {\n name: 'MuiButton',\n slot: 'LoadingIconPlaceholder',\n overridesResolver: (props, styles) => styles.loadingIconPlaceholder\n})({\n display: 'inline-block',\n width: '1em',\n height: '1em'\n});\nconst Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {\n // props priority: `inProps` > `contextProps` > `themeDefaultProps`\n const contextProps = React.useContext(ButtonGroupContext);\n const buttonGroupButtonContextPositionClassName = React.useContext(ButtonGroupButtonContext);\n const resolvedProps = resolveProps(contextProps, inProps);\n const props = useDefaultProps({\n props: resolvedProps,\n name: 'MuiButton'\n });\n const {\n children,\n color = 'primary',\n component = 'button',\n className,\n disabled = false,\n disableElevation = false,\n disableFocusRipple = false,\n endIcon: endIconProp,\n focusVisibleClassName,\n fullWidth = false,\n id: idProp,\n loading = null,\n loadingIndicator: loadingIndicatorProp,\n loadingPosition = 'center',\n size = 'medium',\n startIcon: startIconProp,\n type,\n variant = 'text',\n ...other\n } = props;\n const loadingId = useId(idProp);\n const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/_jsx(CircularProgress, {\n \"aria-labelledby\": loadingId,\n color: \"inherit\",\n size: 16\n });\n const ownerState = {\n ...props,\n color,\n component,\n disabled,\n disableElevation,\n disableFocusRipple,\n fullWidth,\n loading,\n loadingIndicator,\n loadingPosition,\n size,\n type,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n const startIcon = (startIconProp || loading && loadingPosition === 'start') && /*#__PURE__*/_jsx(ButtonStartIcon, {\n className: classes.startIcon,\n ownerState: ownerState,\n children: startIconProp || /*#__PURE__*/_jsx(ButtonLoadingIconPlaceholder, {\n className: classes.loadingIconPlaceholder,\n ownerState: ownerState\n })\n });\n const endIcon = (endIconProp || loading && loadingPosition === 'end') && /*#__PURE__*/_jsx(ButtonEndIcon, {\n className: classes.endIcon,\n ownerState: ownerState,\n children: endIconProp || /*#__PURE__*/_jsx(ButtonLoadingIconPlaceholder, {\n className: classes.loadingIconPlaceholder,\n ownerState: ownerState\n })\n });\n const positionClassName = buttonGroupButtonContextPositionClassName || '';\n const loader = typeof loading === 'boolean' ?\n /*#__PURE__*/\n // use plain HTML span to minimize the runtime overhead\n _jsx(\"span\", {\n className: classes.loadingWrapper,\n style: {\n display: 'contents'\n },\n children: loading && /*#__PURE__*/_jsx(ButtonLoadingIndicator, {\n className: classes.loadingIndicator,\n ownerState: ownerState,\n children: loadingIndicator\n })\n }) : null;\n return /*#__PURE__*/_jsxs(ButtonRoot, {\n ownerState: ownerState,\n className: clsx(contextProps.className, classes.root, className, positionClassName),\n component: component,\n disabled: disabled || loading,\n focusRipple: !disableFocusRipple,\n focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),\n ref: ref,\n type: type,\n id: loading ? loadingId : idProp,\n ...other,\n classes: classes,\n children: [startIcon, loadingPosition !== 'end' && loader, children, loadingPosition === 'end' && loader, endIcon]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Button.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'success', 'error', 'info', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, no elevation is used.\n * @default false\n */\n disableElevation: PropTypes.bool,\n /**\n * If `true`, the keyboard focus ripple is disabled.\n * @default false\n */\n disableFocusRipple: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * Element placed after the children.\n */\n endIcon: PropTypes.node,\n /**\n * @ignore\n */\n focusVisibleClassName: PropTypes.string,\n /**\n * If `true`, the button will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * The URL to link to when the button is clicked.\n * If defined, an `a` element will be used as the root node.\n */\n href: PropTypes.string,\n /**\n * @ignore\n */\n id: PropTypes.string,\n /**\n * If `true`, the loading indicator is visible and the button is disabled.\n * If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).\n * @default null\n */\n loading: PropTypes.bool,\n /**\n * Element placed before the children if the button is in loading state.\n * The node should contain an element with `role=\"progressbar\"` with an accessible name.\n * By default, it renders a `CircularProgress` that is labeled by the button itself.\n * @default <CircularProgress color=\"inherit\" size={16} />\n */\n loadingIndicator: PropTypes.node,\n /**\n * The loading indicator can be positioned on the start, end, or the center of the button.\n * @default 'center'\n */\n loadingPosition: PropTypes.oneOf(['center', 'end', 'start']),\n /**\n * The size of the component.\n * `small` is equivalent to the dense button styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),\n /**\n * Element placed before the children.\n */\n startIcon: PropTypes.node,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * @ignore\n */\n type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'reset', 'submit']), PropTypes.string]),\n /**\n * The variant to use.\n * @default 'text'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])\n} : void 0;\nexport default Button;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getButtonGroupUtilityClass(slot) {\n return generateUtilityClass('MuiButtonGroup', slot);\n}\nconst buttonGroupClasses = generateUtilityClasses('MuiButtonGroup', ['root', 'contained', 'outlined', 'text', 'disableElevation', 'disabled', 'firstButton', 'fullWidth', 'horizontal', 'vertical', 'colorPrimary', 'colorSecondary', 'grouped', 'groupedHorizontal', 'groupedVertical', 'groupedText', 'groupedTextHorizontal', 'groupedTextVertical', 'groupedTextPrimary', 'groupedTextSecondary', 'groupedOutlined', 'groupedOutlinedHorizontal', 'groupedOutlinedVertical', 'groupedOutlinedPrimary', 'groupedOutlinedSecondary', 'groupedContained', 'groupedContainedHorizontal', 'groupedContainedVertical', 'groupedContainedPrimary', 'groupedContainedSecondary', 'lastButton', 'middleButton']);\nexport default buttonGroupClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport getValidReactChildren from '@mui/utils/getValidReactChildren';\nimport capitalize from \"../utils/capitalize.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport buttonGroupClasses, { getButtonGroupUtilityClass } from \"./buttonGroupClasses.js\";\nimport ButtonGroupContext from \"./ButtonGroupContext.js\";\nimport ButtonGroupButtonContext from \"./ButtonGroupButtonContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst overridesResolver = (props, styles) => {\n const {\n ownerState\n } = props;\n return [{\n [`& .${buttonGroupClasses.grouped}`]: styles.grouped\n }, {\n [`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.orientation)}`]\n }, {\n [`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.variant)}`]\n }, {\n [`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.variant)}${capitalize(ownerState.orientation)}`]\n }, {\n [`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.variant)}${capitalize(ownerState.color)}`]\n }, {\n [`& .${buttonGroupClasses.firstButton}`]: styles.firstButton\n }, {\n [`& .${buttonGroupClasses.lastButton}`]: styles.lastButton\n }, {\n [`& .${buttonGroupClasses.middleButton}`]: styles.middleButton\n }, styles.root, styles[ownerState.variant], ownerState.disableElevation === true && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.orientation === 'vertical' && styles.vertical];\n};\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n color,\n disabled,\n disableElevation,\n fullWidth,\n orientation,\n variant\n } = ownerState;\n const slots = {\n root: ['root', variant, orientation, fullWidth && 'fullWidth', disableElevation && 'disableElevation', `color${capitalize(color)}`],\n grouped: ['grouped', `grouped${capitalize(orientation)}`, `grouped${capitalize(variant)}`, `grouped${capitalize(variant)}${capitalize(orientation)}`, `grouped${capitalize(variant)}${capitalize(color)}`, disabled && 'disabled'],\n firstButton: ['firstButton'],\n lastButton: ['lastButton'],\n middleButton: ['middleButton']\n };\n return composeClasses(slots, getButtonGroupUtilityClass, classes);\n};\nconst ButtonGroupRoot = styled('div', {\n name: 'MuiButtonGroup',\n slot: 'Root',\n overridesResolver\n})(memoTheme(({\n theme\n}) => ({\n display: 'inline-flex',\n borderRadius: (theme.vars || theme).shape.borderRadius,\n variants: [{\n props: {\n variant: 'contained'\n },\n style: {\n boxShadow: (theme.vars || theme).shadows[2]\n }\n }, {\n props: {\n disableElevation: true\n },\n style: {\n boxShadow: 'none'\n }\n }, {\n props: {\n fullWidth: true\n },\n style: {\n width: '100%'\n }\n }, {\n props: {\n orientation: 'vertical'\n },\n style: {\n flexDirection: 'column',\n [`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {\n borderTopRightRadius: 0,\n borderTopLeftRadius: 0\n },\n [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n borderBottomRightRadius: 0,\n borderBottomLeftRadius: 0\n }\n }\n }, {\n props: {\n orientation: 'horizontal'\n },\n style: {\n [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n borderTopRightRadius: 0,\n borderBottomRightRadius: 0\n },\n [`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {\n borderTopLeftRadius: 0,\n borderBottomLeftRadius: 0\n }\n }\n }, {\n props: {\n variant: 'text',\n orientation: 'horizontal'\n },\n style: {\n [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,\n [`&.${buttonGroupClasses.disabled}`]: {\n borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`\n }\n }\n }\n }, {\n props: {\n variant: 'text',\n orientation: 'vertical'\n },\n style: {\n [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,\n [`&.${buttonGroupClasses.disabled}`]: {\n borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`\n }\n }\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).flatMap(([color]) => [{\n props: {\n variant: 'text',\n color\n },\n style: {\n [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n borderColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / 0.5)` : alpha(theme.palette[color].main, 0.5)\n }\n }\n }]), {\n props: {\n variant: 'outlined',\n orientation: 'horizontal'\n },\n style: {\n [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n borderRightColor: 'transparent',\n '&:hover': {\n borderRightColor: 'currentColor'\n }\n },\n [`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {\n marginLeft: -1\n }\n }\n }, {\n props: {\n variant: 'outlined',\n orientation: 'vertical'\n },\n style: {\n [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n borderBottomColor: 'transparent',\n '&:hover': {\n borderBottomColor: 'currentColor'\n }\n },\n [`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {\n marginTop: -1\n }\n }\n }, {\n props: {\n variant: 'contained',\n orientation: 'horizontal'\n },\n style: {\n [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n borderRight: `1px solid ${(theme.vars || theme).palette.grey[400]}`,\n [`&.${buttonGroupClasses.disabled}`]: {\n borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`\n }\n }\n }\n }, {\n props: {\n variant: 'contained',\n orientation: 'vertical'\n },\n style: {\n [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n borderBottom: `1px solid ${(theme.vars || theme).palette.grey[400]}`,\n [`&.${buttonGroupClasses.disabled}`]: {\n borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`\n }\n }\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['dark'])).map(([color]) => ({\n props: {\n variant: 'contained',\n color\n },\n style: {\n [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {\n borderColor: (theme.vars || theme).palette[color].dark\n }\n }\n }))],\n [`& .${buttonGroupClasses.grouped}`]: {\n minWidth: 40,\n boxShadow: 'none',\n props: {\n variant: 'contained'\n },\n style: {\n '&:hover': {\n boxShadow: 'none'\n }\n }\n }\n})));\nconst ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiButtonGroup'\n });\n const {\n children,\n className,\n color = 'primary',\n component = 'div',\n disabled = false,\n disableElevation = false,\n disableFocusRipple = false,\n disableRipple = false,\n fullWidth = false,\n orientation = 'horizontal',\n size = 'medium',\n variant = 'outlined',\n ...other\n } = props;\n const ownerState = {\n ...props,\n color,\n component,\n disabled,\n disableElevation,\n disableFocusRipple,\n disableRipple,\n fullWidth,\n orientation,\n size,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n const context = React.useMemo(() => ({\n className: classes.grouped,\n color,\n disabled,\n disableElevation,\n disableFocusRipple,\n disableRipple,\n fullWidth,\n size,\n variant\n }), [color, disabled, disableElevation, disableFocusRipple, disableRipple, fullWidth, size, variant, classes.grouped]);\n const validChildren = getValidReactChildren(children);\n const childrenCount = validChildren.length;\n const getButtonPositionClassName = index => {\n const isFirstButton = index === 0;\n const isLastButton = index === childrenCount - 1;\n if (isFirstButton && isLastButton) {\n return '';\n }\n if (isFirstButton) {\n return classes.firstButton;\n }\n if (isLastButton) {\n return classes.lastButton;\n }\n return classes.middleButton;\n };\n return /*#__PURE__*/_jsx(ButtonGroupRoot, {\n as: component,\n role: \"group\",\n className: clsx(classes.root, className),\n ref: ref,\n ownerState: ownerState,\n ...other,\n children: /*#__PURE__*/_jsx(ButtonGroupContext.Provider, {\n value: context,\n children: validChildren.map((child, index) => {\n return /*#__PURE__*/_jsx(ButtonGroupButtonContext.Provider, {\n value: getButtonPositionClassName(index),\n children: child\n }, index);\n })\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? ButtonGroup.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, no elevation is used.\n * @default false\n */\n disableElevation: PropTypes.bool,\n /**\n * If `true`, the button keyboard focus ripple is disabled.\n * @default false\n */\n disableFocusRipple: PropTypes.bool,\n /**\n * If `true`, the button ripple effect is disabled.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * If `true`, the buttons will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * The component orientation (layout flow direction).\n * @default 'horizontal'\n */\n orientation: PropTypes.oneOf(['horizontal', 'vertical']),\n /**\n * The size of the component.\n * `small` is equivalent to the dense button styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The variant to use.\n * @default 'outlined'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])\n} : void 0;\nexport default ButtonGroup;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCardUtilityClass(slot) {\n return generateUtilityClass('MuiCard', slot);\n}\nconst cardClasses = generateUtilityClasses('MuiCard', ['root']);\nexport default cardClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Paper from \"../Paper/index.js\";\nimport { getCardUtilityClass } from \"./cardClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getCardUtilityClass, classes);\n};\nconst CardRoot = styled(Paper, {\n name: 'MuiCard',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n overflow: 'hidden'\n});\nconst Card = /*#__PURE__*/React.forwardRef(function Card(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiCard'\n });\n const {\n className,\n raised = false,\n ...other\n } = props;\n const ownerState = {\n ...props,\n raised\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(CardRoot, {\n className: clsx(classes.root, className),\n elevation: raised ? 8 : undefined,\n ref: ref,\n ownerState: ownerState,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Card.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * If `true`, the card will use raised styling.\n * @default false\n */\n raised: chainPropTypes(PropTypes.bool, props => {\n if (props.raised && props.variant === 'outlined') {\n return new Error('MUI: Combining `raised={true}` with `variant=\"outlined\"` has no effect.');\n }\n return null;\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Card;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCardActionAreaUtilityClass(slot) {\n return generateUtilityClass('MuiCardActionArea', slot);\n}\nconst cardActionAreaClasses = generateUtilityClasses('MuiCardActionArea', ['root', 'focusVisible', 'focusHighlight']);\nexport default cardActionAreaClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport cardActionAreaClasses, { getCardActionAreaUtilityClass } from \"./cardActionAreaClasses.js\";\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n focusHighlight: ['focusHighlight']\n };\n return composeClasses(slots, getCardActionAreaUtilityClass, classes);\n};\nconst CardActionAreaRoot = styled(ButtonBase, {\n name: 'MuiCardActionArea',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})(memoTheme(({\n theme\n}) => ({\n display: 'block',\n textAlign: 'inherit',\n borderRadius: 'inherit',\n // for Safari to work https://github.com/mui/material-ui/issues/36285.\n width: '100%',\n [`&:hover .${cardActionAreaClasses.focusHighlight}`]: {\n opacity: (theme.vars || theme).palette.action.hoverOpacity,\n '@media (hover: none)': {\n opacity: 0\n }\n },\n [`&.${cardActionAreaClasses.focusVisible} .${cardActionAreaClasses.focusHighlight}`]: {\n opacity: (theme.vars || theme).palette.action.focusOpacity\n }\n})));\nconst CardActionAreaFocusHighlight = styled('span', {\n name: 'MuiCardActionArea',\n slot: 'FocusHighlight',\n overridesResolver: (props, styles) => styles.focusHighlight\n})(memoTheme(({\n theme\n}) => ({\n overflow: 'hidden',\n pointerEvents: 'none',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: 'inherit',\n opacity: 0,\n backgroundColor: 'currentcolor',\n transition: theme.transitions.create('opacity', {\n duration: theme.transitions.duration.short\n })\n})));\nconst CardActionArea = /*#__PURE__*/React.forwardRef(function CardActionArea(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiCardActionArea'\n });\n const {\n children,\n className,\n focusVisibleClassName,\n ...other\n } = props;\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(CardActionAreaRoot, {\n className: clsx(classes.root, className),\n focusVisibleClassName: clsx(focusVisibleClassName, classes.focusVisible),\n ref: ref,\n ownerState: ownerState,\n ...other,\n children: [children, /*#__PURE__*/_jsx(CardActionAreaFocusHighlight, {\n className: classes.focusHighlight,\n ownerState: ownerState\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? CardActionArea.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * @ignore\n */\n focusVisibleClassName: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default CardActionArea;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCardActionsUtilityClass(slot) {\n return generateUtilityClass('MuiCardActions', slot);\n}\nconst cardActionsClasses = generateUtilityClasses('MuiCardActions', ['root', 'spacing']);\nexport default cardActionsClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getCardActionsUtilityClass } from \"./cardActionsClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disableSpacing\n } = ownerState;\n const slots = {\n root: ['root', !disableSpacing && 'spacing']\n };\n return composeClasses(slots, getCardActionsUtilityClass, classes);\n};\nconst CardActionsRoot = styled('div', {\n name: 'MuiCardActions',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, !ownerState.disableSpacing && styles.spacing];\n }\n})({\n display: 'flex',\n alignItems: 'center',\n padding: 8,\n variants: [{\n props: {\n disableSpacing: false\n },\n style: {\n '& > :not(style) ~ :not(style)': {\n marginLeft: 8\n }\n }\n }]\n});\nconst CardActions = /*#__PURE__*/React.forwardRef(function CardActions(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiCardActions'\n });\n const {\n disableSpacing = false,\n className,\n ...other\n } = props;\n const ownerState = {\n ...props,\n disableSpacing\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(CardActionsRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? CardActions.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * If `true`, the actions do not have additional margin.\n * @default false\n */\n disableSpacing: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default CardActions;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCardContentUtilityClass(slot) {\n return generateUtilityClass('MuiCardContent', slot);\n}\nconst cardContentClasses = generateUtilityClasses('MuiCardContent', ['root']);\nexport default cardContentClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getCardContentUtilityClass } from \"./cardContentClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getCardContentUtilityClass, classes);\n};\nconst CardContentRoot = styled('div', {\n name: 'MuiCardContent',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n padding: 16,\n '&:last-child': {\n paddingBottom: 24\n }\n});\nconst CardContent = /*#__PURE__*/React.forwardRef(function CardContent(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiCardContent'\n });\n const {\n className,\n component = 'div',\n ...other\n } = props;\n const ownerState = {\n ...props,\n component\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(CardContentRoot, {\n as: component,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? CardContent.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default CardContent;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCardHeaderUtilityClass(slot) {\n return generateUtilityClass('MuiCardHeader', slot);\n}\nconst cardHeaderClasses = generateUtilityClasses('MuiCardHeader', ['root', 'avatar', 'action', 'content', 'title', 'subheader']);\nexport default cardHeaderClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport Typography, { typographyClasses } from \"../Typography/index.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport cardHeaderClasses, { getCardHeaderUtilityClass } from \"./cardHeaderClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n avatar: ['avatar'],\n action: ['action'],\n content: ['content'],\n title: ['title'],\n subheader: ['subheader']\n };\n return composeClasses(slots, getCardHeaderUtilityClass, classes);\n};\nconst CardHeaderRoot = styled('div', {\n name: 'MuiCardHeader',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n return [{\n [`& .${cardHeaderClasses.title}`]: styles.title\n }, {\n [`& .${cardHeaderClasses.subheader}`]: styles.subheader\n }, styles.root];\n }\n})({\n display: 'flex',\n alignItems: 'center',\n padding: 16\n});\nconst CardHeaderAvatar = styled('div', {\n name: 'MuiCardHeader',\n slot: 'Avatar',\n overridesResolver: (props, styles) => styles.avatar\n})({\n display: 'flex',\n flex: '0 0 auto',\n marginRight: 16\n});\nconst CardHeaderAction = styled('div', {\n name: 'MuiCardHeader',\n slot: 'Action',\n overridesResolver: (props, styles) => styles.action\n})({\n flex: '0 0 auto',\n alignSelf: 'flex-start',\n marginTop: -4,\n marginRight: -8,\n marginBottom: -4\n});\nconst CardHeaderContent = styled('div', {\n name: 'MuiCardHeader',\n slot: 'Content',\n overridesResolver: (props, styles) => styles.content\n})({\n flex: '1 1 auto',\n [`.${typographyClasses.root}:where(& .${cardHeaderClasses.title})`]: {\n display: 'block'\n },\n [`.${typographyClasses.root}:where(& .${cardHeaderClasses.subheader})`]: {\n display: 'block'\n }\n});\nconst CardHeader = /*#__PURE__*/React.forwardRef(function CardHeader(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiCardHeader'\n });\n const {\n action,\n avatar,\n component = 'div',\n disableTypography = false,\n subheader: subheaderProp,\n subheaderTypographyProps,\n title: titleProp,\n titleTypographyProps,\n slots = {},\n slotProps = {},\n ...other\n } = props;\n const ownerState = {\n ...props,\n component,\n disableTypography\n };\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots,\n slotProps: {\n title: titleTypographyProps,\n subheader: subheaderTypographyProps,\n ...slotProps\n }\n };\n let title = titleProp;\n const [TitleSlot, titleSlotProps] = useSlot('title', {\n className: classes.title,\n elementType: Typography,\n externalForwardedProps,\n ownerState,\n additionalProps: {\n variant: avatar ? 'body2' : 'h5',\n component: 'span'\n }\n });\n if (title != null && title.type !== Typography && !disableTypography) {\n title = /*#__PURE__*/_jsx(TitleSlot, {\n ...titleSlotProps,\n children: title\n });\n }\n let subheader = subheaderProp;\n const [SubheaderSlot, subheaderSlotProps] = useSlot('subheader', {\n className: classes.subheader,\n elementType: Typography,\n externalForwardedProps,\n ownerState,\n additionalProps: {\n variant: avatar ? 'body2' : 'body1',\n color: 'textSecondary',\n component: 'span'\n }\n });\n if (subheader != null && subheader.type !== Typography && !disableTypography) {\n subheader = /*#__PURE__*/_jsx(SubheaderSlot, {\n ...subheaderSlotProps,\n children: subheader\n });\n }\n const [RootSlot, rootSlotProps] = useSlot('root', {\n ref,\n className: classes.root,\n elementType: CardHeaderRoot,\n externalForwardedProps: {\n ...externalForwardedProps,\n ...other,\n component\n },\n ownerState\n });\n const [AvatarSlot, avatarSlotProps] = useSlot('avatar', {\n className: classes.avatar,\n elementType: CardHeaderAvatar,\n externalForwardedProps,\n ownerState\n });\n const [ContentSlot, contentSlotProps] = useSlot('content', {\n className: classes.content,\n elementType: CardHeaderContent,\n externalForwardedProps,\n ownerState\n });\n const [ActionSlot, actionSlotProps] = useSlot('action', {\n className: classes.action,\n elementType: CardHeaderAction,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsxs(RootSlot, {\n ...rootSlotProps,\n children: [avatar && /*#__PURE__*/_jsx(AvatarSlot, {\n ...avatarSlotProps,\n children: avatar\n }), /*#__PURE__*/_jsxs(ContentSlot, {\n ...contentSlotProps,\n children: [title, subheader]\n }), action && /*#__PURE__*/_jsx(ActionSlot, {\n ...actionSlotProps,\n children: action\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? CardHeader.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The action to display in the card header.\n */\n action: PropTypes.node,\n /**\n * The Avatar element to display.\n */\n avatar: PropTypes.node,\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, `subheader` and `title` won't be wrapped by a Typography component.\n * This can be useful to render an alternative Typography variant by wrapping\n * the `title` text, and optional `subheader` text\n * with the Typography component.\n * @default false\n */\n disableTypography: PropTypes.bool,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n action: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n avatar: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n content: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n subheader: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n title: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n action: PropTypes.elementType,\n avatar: PropTypes.elementType,\n content: PropTypes.elementType,\n root: PropTypes.elementType,\n subheader: PropTypes.elementType,\n title: PropTypes.elementType\n }),\n /**\n * The content of the component.\n */\n subheader: PropTypes.node,\n /**\n * These props will be forwarded to the subheader\n * (as long as disableTypography is not `true`).\n * @deprecated Use `slotProps.subheader` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n subheaderTypographyProps: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The content of the component.\n */\n title: PropTypes.node,\n /**\n * These props will be forwarded to the title\n * (as long as disableTypography is not `true`).\n * @deprecated Use `slotProps.title` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n titleTypographyProps: PropTypes.object\n} : void 0;\nexport default CardHeader;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCardMediaUtilityClass(slot) {\n return generateUtilityClass('MuiCardMedia', slot);\n}\nconst cardMediaClasses = generateUtilityClasses('MuiCardMedia', ['root', 'media', 'img']);\nexport default cardMediaClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getCardMediaUtilityClass } from \"./cardMediaClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n isMediaComponent,\n isImageComponent\n } = ownerState;\n const slots = {\n root: ['root', isMediaComponent && 'media', isImageComponent && 'img']\n };\n return composeClasses(slots, getCardMediaUtilityClass, classes);\n};\nconst CardMediaRoot = styled('div', {\n name: 'MuiCardMedia',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n const {\n isMediaComponent,\n isImageComponent\n } = ownerState;\n return [styles.root, isMediaComponent && styles.media, isImageComponent && styles.img];\n }\n})({\n display: 'block',\n backgroundSize: 'cover',\n backgroundRepeat: 'no-repeat',\n backgroundPosition: 'center',\n variants: [{\n props: {\n isMediaComponent: true\n },\n style: {\n width: '100%'\n }\n }, {\n props: {\n isImageComponent: true\n },\n style: {\n objectFit: 'cover'\n }\n }]\n});\nconst MEDIA_COMPONENTS = ['video', 'audio', 'picture', 'iframe', 'img'];\nconst IMAGE_COMPONENTS = ['picture', 'img'];\nconst CardMedia = /*#__PURE__*/React.forwardRef(function CardMedia(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiCardMedia'\n });\n const {\n children,\n className,\n component = 'div',\n image,\n src,\n style,\n ...other\n } = props;\n const isMediaComponent = MEDIA_COMPONENTS.includes(component);\n const composedStyle = !isMediaComponent && image ? {\n backgroundImage: `url(\"${image}\")`,\n ...style\n } : style;\n const ownerState = {\n ...props,\n component,\n isMediaComponent,\n isImageComponent: IMAGE_COMPONENTS.includes(component)\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(CardMediaRoot, {\n className: clsx(classes.root, className),\n as: component,\n role: !isMediaComponent && image ? 'img' : undefined,\n ref: ref,\n style: composedStyle,\n ownerState: ownerState,\n src: isMediaComponent ? image || src : undefined,\n ...other,\n children: children\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? CardMedia.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: chainPropTypes(PropTypes.node, props => {\n if (!props.children && !props.image && !props.src && !props.component) {\n return new Error('MUI: Either `children`, `image`, `src` or `component` prop must be specified.');\n }\n return null;\n }),\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * Image to be displayed as a background image.\n * Either `image` or `src` prop must be specified.\n * Note that caller must specify height otherwise the image will not be visible.\n */\n image: PropTypes.string,\n /**\n * An alias for `image` property.\n * Available only with media components.\n * Media components: `video`, `audio`, `picture`, `iframe`, `img`.\n */\n src: PropTypes.string,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default CardMedia;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSwitchBaseUtilityClass(slot) {\n return generateUtilityClass('PrivateSwitchBase', slot);\n}\nconst switchBaseClasses = generateUtilityClasses('PrivateSwitchBase', ['root', 'checked', 'disabled', 'input', 'edgeStart', 'edgeEnd']);\nexport default switchBaseClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from \"../utils/capitalize.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport useControlled from \"../utils/useControlled.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport { getSwitchBaseUtilityClass } from \"./switchBaseClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n checked,\n disabled,\n edge\n } = ownerState;\n const slots = {\n root: ['root', checked && 'checked', disabled && 'disabled', edge && `edge${capitalize(edge)}`],\n input: ['input']\n };\n return composeClasses(slots, getSwitchBaseUtilityClass, classes);\n};\nconst SwitchBaseRoot = styled(ButtonBase)({\n padding: 9,\n borderRadius: '50%',\n variants: [{\n props: {\n edge: 'start',\n size: 'small'\n },\n style: {\n marginLeft: -3\n }\n }, {\n props: ({\n edge,\n ownerState\n }) => edge === 'start' && ownerState.size !== 'small',\n style: {\n marginLeft: -12\n }\n }, {\n props: {\n edge: 'end',\n size: 'small'\n },\n style: {\n marginRight: -3\n }\n }, {\n props: ({\n edge,\n ownerState\n }) => edge === 'end' && ownerState.size !== 'small',\n style: {\n marginRight: -12\n }\n }]\n});\nconst SwitchBaseInput = styled('input', {\n shouldForwardProp: rootShouldForwardProp\n})({\n cursor: 'inherit',\n position: 'absolute',\n opacity: 0,\n width: '100%',\n height: '100%',\n top: 0,\n left: 0,\n margin: 0,\n padding: 0,\n zIndex: 1\n});\n\n/**\n * @ignore - internal component.\n */\nconst SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref) {\n const {\n autoFocus,\n checked: checkedProp,\n checkedIcon,\n defaultChecked,\n disabled: disabledProp,\n disableFocusRipple = false,\n edge = false,\n icon,\n id,\n inputProps,\n inputRef,\n name,\n onBlur,\n onChange,\n onFocus,\n readOnly,\n required = false,\n tabIndex,\n type,\n value,\n slots = {},\n slotProps = {},\n ...other\n } = props;\n const [checked, setCheckedState] = useControlled({\n controlled: checkedProp,\n default: Boolean(defaultChecked),\n name: 'SwitchBase',\n state: 'checked'\n });\n const muiFormControl = useFormControl();\n const handleFocus = event => {\n if (onFocus) {\n onFocus(event);\n }\n if (muiFormControl && muiFormControl.onFocus) {\n muiFormControl.onFocus(event);\n }\n };\n const handleBlur = event => {\n if (onBlur) {\n onBlur(event);\n }\n if (muiFormControl && muiFormControl.onBlur) {\n muiFormControl.onBlur(event);\n }\n };\n const handleInputChange = event => {\n // Workaround for https://github.com/facebook/react/issues/9023\n if (event.nativeEvent.defaultPrevented) {\n return;\n }\n const newChecked = event.target.checked;\n setCheckedState(newChecked);\n if (onChange) {\n // TODO v6: remove the second argument.\n onChange(event, newChecked);\n }\n };\n let disabled = disabledProp;\n if (muiFormControl) {\n if (typeof disabled === 'undefined') {\n disabled = muiFormControl.disabled;\n }\n }\n const hasLabelFor = type === 'checkbox' || type === 'radio';\n const ownerState = {\n ...props,\n checked,\n disabled,\n disableFocusRipple,\n edge\n };\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots,\n slotProps: {\n input: inputProps,\n ...slotProps\n }\n };\n const [RootSlot, rootSlotProps] = useSlot('root', {\n ref,\n elementType: SwitchBaseRoot,\n className: classes.root,\n shouldForwardComponentProp: true,\n externalForwardedProps: {\n ...externalForwardedProps,\n component: 'span',\n ...other\n },\n getSlotProps: handlers => ({\n ...handlers,\n onFocus: event => {\n handlers.onFocus?.(event);\n handleFocus(event);\n },\n onBlur: event => {\n handlers.onBlur?.(event);\n handleBlur(event);\n }\n }),\n ownerState,\n additionalProps: {\n centerRipple: true,\n focusRipple: !disableFocusRipple,\n disabled,\n role: undefined,\n tabIndex: null\n }\n });\n const [InputSlot, inputSlotProps] = useSlot('input', {\n ref: inputRef,\n elementType: SwitchBaseInput,\n className: classes.input,\n externalForwardedProps,\n getSlotProps: handlers => ({\n ...handlers,\n onChange: event => {\n handlers.onChange?.(event);\n handleInputChange(event);\n }\n }),\n ownerState,\n additionalProps: {\n autoFocus,\n checked: checkedProp,\n defaultChecked,\n disabled,\n id: hasLabelFor ? id : undefined,\n name,\n readOnly,\n required,\n tabIndex,\n type,\n ...(type === 'checkbox' && value === undefined ? {} : {\n value\n })\n }\n });\n return /*#__PURE__*/_jsxs(RootSlot, {\n ...rootSlotProps,\n children: [/*#__PURE__*/_jsx(InputSlot, {\n ...inputSlotProps\n }), checked ? checkedIcon : icon]\n });\n});\n\n// NB: If changed, please update Checkbox, Switch and Radio\n// so that the API documentation is updated.\nprocess.env.NODE_ENV !== \"production\" ? SwitchBase.propTypes = {\n /**\n * If `true`, the `input` element is focused during the first mount.\n */\n autoFocus: PropTypes.bool,\n /**\n * If `true`, the component is checked.\n */\n checked: PropTypes.bool,\n /**\n * The icon to display when the component is checked.\n */\n checkedIcon: PropTypes.node.isRequired,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * @ignore\n */\n defaultChecked: PropTypes.bool,\n /**\n * If `true`, the component is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the keyboard focus ripple is disabled.\n * @default false\n */\n disableFocusRipple: PropTypes.bool,\n /**\n * If given, uses a negative margin to counteract the padding on one\n * side (this is often helpful for aligning the left or right\n * side of the icon with content above or below, without ruining the border\n * size and shape).\n * @default false\n */\n edge: PropTypes.oneOf(['end', 'start', false]),\n /**\n * The icon to display when the component is unchecked.\n */\n icon: PropTypes.node.isRequired,\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n */\n inputProps: PropTypes.object,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /*\n * @ignore\n */\n name: PropTypes.string,\n /**\n * @ignore\n */\n onBlur: PropTypes.func,\n /**\n * Callback fired when the state is changed.\n *\n * @param {object} event The event source of the callback.\n * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n */\n onChange: PropTypes.func,\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n /**\n * It prevents the user from changing the value of the field\n * (not from interacting with the field).\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, the `input` element is required.\n */\n required: PropTypes.bool,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n input: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n input: PropTypes.elementType,\n root: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.object,\n /**\n * @ignore\n */\n tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * The input component prop `type`.\n */\n type: PropTypes.string.isRequired,\n /**\n * The value of the component.\n */\n value: PropTypes.any\n} : void 0;\nexport default SwitchBase;","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\"\n}), 'CheckBoxOutlineBlank');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z\"\n}), 'CheckBox');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z\"\n}), 'IndeterminateCheckBox');","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCheckboxUtilityClass(slot) {\n return generateUtilityClass('MuiCheckbox', slot);\n}\nconst checkboxClasses = generateUtilityClasses('MuiCheckbox', ['root', 'checked', 'disabled', 'indeterminate', 'colorPrimary', 'colorSecondary', 'sizeSmall', 'sizeMedium']);\nexport default checkboxClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport SwitchBase from \"../internal/SwitchBase.js\";\nimport CheckBoxOutlineBlankIcon from \"../internal/svg-icons/CheckBoxOutlineBlank.js\";\nimport CheckBoxIcon from \"../internal/svg-icons/CheckBox.js\";\nimport IndeterminateCheckBoxIcon from \"../internal/svg-icons/IndeterminateCheckBox.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport checkboxClasses, { getCheckboxUtilityClass } from \"./checkboxClasses.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { mergeSlotProps } from \"../utils/index.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n indeterminate,\n color,\n size\n } = ownerState;\n const slots = {\n root: ['root', indeterminate && 'indeterminate', `color${capitalize(color)}`, `size${capitalize(size)}`]\n };\n const composedClasses = composeClasses(slots, getCheckboxUtilityClass, classes);\n return {\n ...classes,\n // forward the disabled and checked classes to the SwitchBase\n ...composedClasses\n };\n};\nconst CheckboxRoot = styled(SwitchBase, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiCheckbox',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.indeterminate && styles.indeterminate, styles[`size${capitalize(ownerState.size)}`], ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n color: (theme.vars || theme).palette.text.secondary,\n variants: [{\n props: {\n color: 'default',\n disableRipple: false\n },\n style: {\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity)\n }\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color,\n disableRipple: false\n },\n style: {\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity)\n }\n }\n })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n [`&.${checkboxClasses.checked}, &.${checkboxClasses.indeterminate}`]: {\n color: (theme.vars || theme).palette[color].main\n },\n [`&.${checkboxClasses.disabled}`]: {\n color: (theme.vars || theme).palette.action.disabled\n }\n }\n })), {\n // Should be last to override other colors\n props: {\n disableRipple: false\n },\n style: {\n // Reset on touch devices, it doesn't add specificity\n '&:hover': {\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n }\n }]\n})));\nconst defaultCheckedIcon = /*#__PURE__*/_jsx(CheckBoxIcon, {});\nconst defaultIcon = /*#__PURE__*/_jsx(CheckBoxOutlineBlankIcon, {});\nconst defaultIndeterminateIcon = /*#__PURE__*/_jsx(IndeterminateCheckBoxIcon, {});\nconst Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiCheckbox'\n });\n const {\n checkedIcon = defaultCheckedIcon,\n color = 'primary',\n icon: iconProp = defaultIcon,\n indeterminate = false,\n indeterminateIcon: indeterminateIconProp = defaultIndeterminateIcon,\n inputProps,\n size = 'medium',\n disableRipple = false,\n className,\n slots = {},\n slotProps = {},\n ...other\n } = props;\n const icon = indeterminate ? indeterminateIconProp : iconProp;\n const indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;\n const ownerState = {\n ...props,\n disableRipple,\n color,\n indeterminate,\n size\n };\n const classes = useUtilityClasses(ownerState);\n const externalInputProps = slotProps.input ?? inputProps;\n const [RootSlot, rootSlotProps] = useSlot('root', {\n ref,\n elementType: CheckboxRoot,\n className: clsx(classes.root, className),\n shouldForwardComponentProp: true,\n externalForwardedProps: {\n slots,\n slotProps,\n ...other\n },\n ownerState,\n additionalProps: {\n type: 'checkbox',\n icon: /*#__PURE__*/React.cloneElement(icon, {\n fontSize: icon.props.fontSize ?? size\n }),\n checkedIcon: /*#__PURE__*/React.cloneElement(indeterminateIcon, {\n fontSize: indeterminateIcon.props.fontSize ?? size\n }),\n disableRipple,\n slots,\n slotProps: {\n input: mergeSlotProps(typeof externalInputProps === 'function' ? externalInputProps(ownerState) : externalInputProps, {\n 'data-indeterminate': indeterminate\n })\n }\n }\n });\n return /*#__PURE__*/_jsx(RootSlot, {\n ...rootSlotProps,\n classes: classes\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Checkbox.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If `true`, the component is checked.\n */\n checked: PropTypes.bool,\n /**\n * The icon to display when the component is checked.\n * @default <CheckBoxIcon />\n */\n checkedIcon: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The default checked state. Use when the component is not controlled.\n */\n defaultChecked: PropTypes.bool,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * The icon to display when the component is unchecked.\n * @default <CheckBoxOutlineBlankIcon />\n */\n icon: PropTypes.node,\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n /**\n * If `true`, the component appears indeterminate.\n * This does not set the native input element to indeterminate due\n * to inconsistent behavior across browsers.\n * However, we set a `data-indeterminate` attribute on the `input`.\n * @default false\n */\n indeterminate: PropTypes.bool,\n /**\n * The icon to display when the component is indeterminate.\n * @default <IndeterminateCheckBoxIcon />\n */\n indeterminateIcon: PropTypes.node,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n * @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n inputProps: PropTypes.object,\n /**\n * Callback fired when the state is changed.\n *\n * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.\n * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n */\n onChange: PropTypes.func,\n /**\n * If `true`, the `input` element is required.\n * @default false\n */\n required: PropTypes.bool,\n /**\n * The size of the component.\n * `small` is equivalent to the dense checkbox styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n input: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n input: PropTypes.elementType,\n root: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n */\n value: PropTypes.any\n} : void 0;\nexport default Checkbox;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { elementAcceptingRef, exactProp, unstable_ownerDocument as ownerDocument, unstable_useForkRef as useForkRef, unstable_useEventCallback as useEventCallback } from '@mui/utils';\nimport getReactElementRef from '@mui/utils/getReactElementRef';\n\n// TODO: return `EventHandlerName extends `on${infer EventName}` ? Lowercase<EventName> : never` once generatePropTypes runs with TS 4.1\nfunction mapEventPropToEvent(eventProp) {\n return eventProp.substring(2).toLowerCase();\n}\nfunction clickedRootScrollbar(event, doc) {\n return doc.documentElement.clientWidth < event.clientX || doc.documentElement.clientHeight < event.clientY;\n}\n/**\n * Listen for click events that occur somewhere in the document, outside of the element itself.\n * For instance, if you need to hide a menu when people click anywhere else on your page.\n *\n * Demos:\n *\n * - [Click-Away Listener](https://mui.com/material-ui/react-click-away-listener/)\n * - [Menu](https://mui.com/material-ui/react-menu/)\n *\n * API:\n *\n * - [ClickAwayListener API](https://mui.com/material-ui/api/click-away-listener/)\n */\nfunction ClickAwayListener(props) {\n const {\n children,\n disableReactTree = false,\n mouseEvent = 'onClick',\n onClickAway,\n touchEvent = 'onTouchEnd'\n } = props;\n const movedRef = React.useRef(false);\n const nodeRef = React.useRef(null);\n const activatedRef = React.useRef(false);\n const syntheticEventRef = React.useRef(false);\n React.useEffect(() => {\n // Ensure that this component is not \"activated\" synchronously.\n // https://github.com/facebook/react/issues/20074\n setTimeout(() => {\n activatedRef.current = true;\n }, 0);\n return () => {\n activatedRef.current = false;\n };\n }, []);\n const handleRef = useForkRef(getReactElementRef(children), nodeRef);\n\n // The handler doesn't take event.defaultPrevented into account:\n //\n // event.preventDefault() is meant to stop default behaviors like\n // clicking a checkbox to check it, hitting a button to submit a form,\n // and hitting left arrow to move the cursor in a text input etc.\n // Only special HTML elements have these default behaviors.\n const handleClickAway = useEventCallback(event => {\n // Given developers can stop the propagation of the synthetic event,\n // we can only be confident with a positive value.\n const insideReactTree = syntheticEventRef.current;\n syntheticEventRef.current = false;\n const doc = ownerDocument(nodeRef.current);\n\n // 1. IE11 support, which trigger the handleClickAway even after the unbind\n // 2. The child might render null.\n // 3. Behave like a blur listener.\n if (!activatedRef.current || !nodeRef.current || 'clientX' in event && clickedRootScrollbar(event, doc)) {\n return;\n }\n\n // Do not act if user performed touchmove\n if (movedRef.current) {\n movedRef.current = false;\n return;\n }\n let insideDOM;\n\n // If not enough, can use https://github.com/DieterHolvoet/event-propagation-path/blob/master/propagationPath.js\n if (event.composedPath) {\n insideDOM = event.composedPath().includes(nodeRef.current);\n } else {\n insideDOM = !doc.documentElement.contains(\n // @ts-expect-error returns `false` as intended when not dispatched from a Node\n event.target) || nodeRef.current.contains(\n // @ts-expect-error returns `false` as intended when not dispatched from a Node\n event.target);\n }\n if (!insideDOM && (disableReactTree || !insideReactTree)) {\n onClickAway(event);\n }\n });\n\n // Keep track of mouse/touch events that bubbled up through the portal.\n const createHandleSynthetic = handlerName => event => {\n syntheticEventRef.current = true;\n const childrenPropsHandler = children.props[handlerName];\n if (childrenPropsHandler) {\n childrenPropsHandler(event);\n }\n };\n const childrenProps = {\n ref: handleRef\n };\n if (touchEvent !== false) {\n childrenProps[touchEvent] = createHandleSynthetic(touchEvent);\n }\n React.useEffect(() => {\n if (touchEvent !== false) {\n const mappedTouchEvent = mapEventPropToEvent(touchEvent);\n const doc = ownerDocument(nodeRef.current);\n const handleTouchMove = () => {\n movedRef.current = true;\n };\n doc.addEventListener(mappedTouchEvent, handleClickAway);\n doc.addEventListener('touchmove', handleTouchMove);\n return () => {\n doc.removeEventListener(mappedTouchEvent, handleClickAway);\n doc.removeEventListener('touchmove', handleTouchMove);\n };\n }\n return undefined;\n }, [handleClickAway, touchEvent]);\n if (mouseEvent !== false) {\n childrenProps[mouseEvent] = createHandleSynthetic(mouseEvent);\n }\n React.useEffect(() => {\n if (mouseEvent !== false) {\n const mappedMouseEvent = mapEventPropToEvent(mouseEvent);\n const doc = ownerDocument(nodeRef.current);\n doc.addEventListener(mappedMouseEvent, handleClickAway);\n return () => {\n doc.removeEventListener(mappedMouseEvent, handleClickAway);\n };\n }\n return undefined;\n }, [handleClickAway, mouseEvent]);\n return /*#__PURE__*/React.cloneElement(children, childrenProps);\n}\nprocess.env.NODE_ENV !== \"production\" ? ClickAwayListener.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The wrapped element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * If `true`, the React tree is ignored and only the DOM tree is considered.\n * This prop changes how portaled elements are handled.\n * @default false\n */\n disableReactTree: PropTypes.bool,\n /**\n * The mouse event to listen to. You can disable the listener by providing `false`.\n * @default 'onClick'\n */\n mouseEvent: PropTypes.oneOf(['onClick', 'onMouseDown', 'onMouseUp', 'onPointerDown', 'onPointerUp', false]),\n /**\n * Callback fired when a \"click away\" event is detected.\n */\n onClickAway: PropTypes.func.isRequired,\n /**\n * The touch event to listen to. You can disable the listener by providing `false`.\n * @default 'onTouchEnd'\n */\n touchEvent: PropTypes.oneOf(['onTouchEnd', 'onTouchStart', false])\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n ClickAwayListener['propTypes' + ''] = exactProp(ClickAwayListener.propTypes);\n}\nexport { ClickAwayListener };","'use client';\n\nimport PropTypes from 'prop-types';\nimport { createContainer } from '@mui/system';\nimport capitalize from \"../utils/capitalize.js\";\nimport styled from \"../styles/styled.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nconst Container = createContainer({\n createStyledComponent: styled('div', {\n name: 'MuiContainer',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`maxWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];\n }\n }),\n useThemeProps: inProps => useDefaultProps({\n props: inProps,\n name: 'MuiContainer'\n })\n});\nprocess.env.NODE_ENV !== \"production\" ? Container.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, the left and right padding is removed.\n * @default false\n */\n disableGutters: PropTypes.bool,\n /**\n * Set the max-width to match the min-width of the current breakpoint.\n * This is useful if you'd prefer to design for a fixed set of sizes\n * instead of trying to accommodate a fully fluid viewport.\n * It's fluid by default.\n * @default false\n */\n fixed: PropTypes.bool,\n /**\n * Determine the max-width of the container.\n * The container width grows with the size of the screen.\n * Set to `false` to disable `maxWidth`.\n * @default 'lg'\n */\n maxWidth: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl', false]), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Container;","import { unstable_ownerWindow as ownerWindow, unstable_ownerDocument as ownerDocument, unstable_getScrollbarSize as getScrollbarSize } from '@mui/utils';\n// Is a vertical scrollbar displayed?\nfunction isOverflowing(container) {\n const doc = ownerDocument(container);\n if (doc.body === container) {\n return ownerWindow(container).innerWidth > doc.documentElement.clientWidth;\n }\n return container.scrollHeight > container.clientHeight;\n}\nexport function ariaHidden(element, hide) {\n if (hide) {\n element.setAttribute('aria-hidden', 'true');\n } else {\n element.removeAttribute('aria-hidden');\n }\n}\nfunction getPaddingRight(element) {\n return parseInt(ownerWindow(element).getComputedStyle(element).paddingRight, 10) || 0;\n}\nfunction isAriaHiddenForbiddenOnElement(element) {\n // The forbidden HTML tags are the ones from ARIA specification that\n // can be children of body and can't have aria-hidden attribute.\n // cf. https://www.w3.org/TR/html-aria/#docconformance\n const forbiddenTagNames = ['TEMPLATE', 'SCRIPT', 'STYLE', 'LINK', 'MAP', 'META', 'NOSCRIPT', 'PICTURE', 'COL', 'COLGROUP', 'PARAM', 'SLOT', 'SOURCE', 'TRACK'];\n const isForbiddenTagName = forbiddenTagNames.includes(element.tagName);\n const isInputHidden = element.tagName === 'INPUT' && element.getAttribute('type') === 'hidden';\n return isForbiddenTagName || isInputHidden;\n}\nfunction ariaHiddenSiblings(container, mountElement, currentElement, elementsToExclude, hide) {\n const blacklist = [mountElement, currentElement, ...elementsToExclude];\n [].forEach.call(container.children, element => {\n const isNotExcludedElement = !blacklist.includes(element);\n const isNotForbiddenElement = !isAriaHiddenForbiddenOnElement(element);\n if (isNotExcludedElement && isNotForbiddenElement) {\n ariaHidden(element, hide);\n }\n });\n}\nfunction findIndexOf(items, callback) {\n let idx = -1;\n items.some((item, index) => {\n if (callback(item)) {\n idx = index;\n return true;\n }\n return false;\n });\n return idx;\n}\nfunction handleContainer(containerInfo, props) {\n const restoreStyle = [];\n const container = containerInfo.container;\n if (!props.disableScrollLock) {\n if (isOverflowing(container)) {\n // Compute the size before applying overflow hidden to avoid any scroll jumps.\n const scrollbarSize = getScrollbarSize(ownerWindow(container));\n restoreStyle.push({\n value: container.style.paddingRight,\n property: 'padding-right',\n el: container\n });\n // Use computed style, here to get the real padding to add our scrollbar width.\n container.style.paddingRight = `${getPaddingRight(container) + scrollbarSize}px`;\n\n // .mui-fixed is a global helper.\n const fixedElements = ownerDocument(container).querySelectorAll('.mui-fixed');\n [].forEach.call(fixedElements, element => {\n restoreStyle.push({\n value: element.style.paddingRight,\n property: 'padding-right',\n el: element\n });\n element.style.paddingRight = `${getPaddingRight(element) + scrollbarSize}px`;\n });\n }\n let scrollContainer;\n if (container.parentNode instanceof DocumentFragment) {\n scrollContainer = ownerDocument(container).body;\n } else {\n // Support html overflow-y: auto for scroll stability between pages\n // https://css-tricks.com/snippets/css/force-vertical-scrollbar/\n const parent = container.parentElement;\n const containerWindow = ownerWindow(container);\n scrollContainer = parent?.nodeName === 'HTML' && containerWindow.getComputedStyle(parent).overflowY === 'scroll' ? parent : container;\n }\n\n // Block the scroll even if no scrollbar is visible to account for mobile keyboard\n // screensize shrink.\n restoreStyle.push({\n value: scrollContainer.style.overflow,\n property: 'overflow',\n el: scrollContainer\n }, {\n value: scrollContainer.style.overflowX,\n property: 'overflow-x',\n el: scrollContainer\n }, {\n value: scrollContainer.style.overflowY,\n property: 'overflow-y',\n el: scrollContainer\n });\n scrollContainer.style.overflow = 'hidden';\n }\n const restore = () => {\n restoreStyle.forEach(({\n value,\n el,\n property\n }) => {\n if (value) {\n el.style.setProperty(property, value);\n } else {\n el.style.removeProperty(property);\n }\n });\n };\n return restore;\n}\nfunction getHiddenSiblings(container) {\n const hiddenSiblings = [];\n [].forEach.call(container.children, element => {\n if (element.getAttribute('aria-hidden') === 'true') {\n hiddenSiblings.push(element);\n }\n });\n return hiddenSiblings;\n}\n/**\n * @ignore - do not document.\n *\n * Proper state management for containers and the modals in those containers.\n * Simplified, but inspired by react-overlay's ModalManager class.\n * Used by the Modal to ensure proper styling of containers.\n */\nexport class ModalManager {\n constructor() {\n this.modals = [];\n this.containers = [];\n }\n add(modal, container) {\n let modalIndex = this.modals.indexOf(modal);\n if (modalIndex !== -1) {\n return modalIndex;\n }\n modalIndex = this.modals.length;\n this.modals.push(modal);\n\n // If the modal we are adding is already in the DOM.\n if (modal.modalRef) {\n ariaHidden(modal.modalRef, false);\n }\n const hiddenSiblings = getHiddenSiblings(container);\n ariaHiddenSiblings(container, modal.mount, modal.modalRef, hiddenSiblings, true);\n const containerIndex = findIndexOf(this.containers, item => item.container === container);\n if (containerIndex !== -1) {\n this.containers[containerIndex].modals.push(modal);\n return modalIndex;\n }\n this.containers.push({\n modals: [modal],\n container,\n restore: null,\n hiddenSiblings\n });\n return modalIndex;\n }\n mount(modal, props) {\n const containerIndex = findIndexOf(this.containers, item => item.modals.includes(modal));\n const containerInfo = this.containers[containerIndex];\n if (!containerInfo.restore) {\n containerInfo.restore = handleContainer(containerInfo, props);\n }\n }\n remove(modal, ariaHiddenState = true) {\n const modalIndex = this.modals.indexOf(modal);\n if (modalIndex === -1) {\n return modalIndex;\n }\n const containerIndex = findIndexOf(this.containers, item => item.modals.includes(modal));\n const containerInfo = this.containers[containerIndex];\n containerInfo.modals.splice(containerInfo.modals.indexOf(modal), 1);\n this.modals.splice(modalIndex, 1);\n\n // If that was the last modal in a container, clean up the container.\n if (containerInfo.modals.length === 0) {\n // The modal might be closed before it had the chance to be mounted in the DOM.\n if (containerInfo.restore) {\n containerInfo.restore();\n }\n if (modal.modalRef) {\n // In case the modal wasn't in the DOM yet.\n ariaHidden(modal.modalRef, ariaHiddenState);\n }\n ariaHiddenSiblings(containerInfo.container, modal.mount, modal.modalRef, containerInfo.hiddenSiblings, false);\n this.containers.splice(containerIndex, 1);\n } else {\n // Otherwise make sure the next top modal is visible to a screen reader.\n const nextTop = containerInfo.modals[containerInfo.modals.length - 1];\n // as soon as a modal is adding its modalRef is undefined. it can't set\n // aria-hidden because the dom element doesn't exist either\n // when modal was unmounted before modalRef gets null\n if (nextTop.modalRef) {\n ariaHidden(nextTop.modalRef, false);\n }\n }\n return modalIndex;\n }\n isTopModal(modal) {\n return this.modals.length > 0 && this.modals[this.modals.length - 1] === modal;\n }\n}","'use client';\n\n/* eslint-disable consistent-return, jsx-a11y/no-noninteractive-tabindex */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { exactProp, elementAcceptingRef, unstable_useForkRef as useForkRef, unstable_ownerDocument as ownerDocument, unstable_getReactElementRef as getReactElementRef } from '@mui/utils';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Inspired by https://github.com/focus-trap/tabbable\nconst candidatesSelector = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable=\"false\"])'].join(',');\nfunction getTabIndex(node) {\n const tabindexAttr = parseInt(node.getAttribute('tabindex') || '', 10);\n if (!Number.isNaN(tabindexAttr)) {\n return tabindexAttr;\n }\n\n // Browsers do not return `tabIndex` correctly for contentEditable nodes;\n // https://issues.chromium.org/issues/41283952\n // so if they don't have a tabindex attribute specifically set, assume it's 0.\n // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default\n // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,\n // yet they are still part of the regular tab order; in FF, they get a default\n // `tabIndex` of 0; since Chrome still puts those elements in the regular tab\n // order, consider their tab index to be 0.\n if (node.contentEditable === 'true' || (node.nodeName === 'AUDIO' || node.nodeName === 'VIDEO' || node.nodeName === 'DETAILS') && node.getAttribute('tabindex') === null) {\n return 0;\n }\n return node.tabIndex;\n}\nfunction isNonTabbableRadio(node) {\n if (node.tagName !== 'INPUT' || node.type !== 'radio') {\n return false;\n }\n if (!node.name) {\n return false;\n }\n const getRadio = selector => node.ownerDocument.querySelector(`input[type=\"radio\"]${selector}`);\n let roving = getRadio(`[name=\"${node.name}\"]:checked`);\n if (!roving) {\n roving = getRadio(`[name=\"${node.name}\"]`);\n }\n return roving !== node;\n}\nfunction isNodeMatchingSelectorFocusable(node) {\n if (node.disabled || node.tagName === 'INPUT' && node.type === 'hidden' || isNonTabbableRadio(node)) {\n return false;\n }\n return true;\n}\nfunction defaultGetTabbable(root) {\n const regularTabNodes = [];\n const orderedTabNodes = [];\n Array.from(root.querySelectorAll(candidatesSelector)).forEach((node, i) => {\n const nodeTabIndex = getTabIndex(node);\n if (nodeTabIndex === -1 || !isNodeMatchingSelectorFocusable(node)) {\n return;\n }\n if (nodeTabIndex === 0) {\n regularTabNodes.push(node);\n } else {\n orderedTabNodes.push({\n documentOrder: i,\n tabIndex: nodeTabIndex,\n node: node\n });\n }\n });\n return orderedTabNodes.sort((a, b) => a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex).map(a => a.node).concat(regularTabNodes);\n}\nfunction defaultIsEnabled() {\n return true;\n}\n\n/**\n * @ignore - internal component.\n */\nfunction FocusTrap(props) {\n const {\n children,\n disableAutoFocus = false,\n disableEnforceFocus = false,\n disableRestoreFocus = false,\n getTabbable = defaultGetTabbable,\n isEnabled = defaultIsEnabled,\n open\n } = props;\n const ignoreNextEnforceFocus = React.useRef(false);\n const sentinelStart = React.useRef(null);\n const sentinelEnd = React.useRef(null);\n const nodeToRestore = React.useRef(null);\n const reactFocusEventTarget = React.useRef(null);\n // This variable is useful when disableAutoFocus is true.\n // It waits for the active element to move into the component to activate.\n const activated = React.useRef(false);\n const rootRef = React.useRef(null);\n const handleRef = useForkRef(getReactElementRef(children), rootRef);\n const lastKeydown = React.useRef(null);\n React.useEffect(() => {\n // We might render an empty child.\n if (!open || !rootRef.current) {\n return;\n }\n activated.current = !disableAutoFocus;\n }, [disableAutoFocus, open]);\n React.useEffect(() => {\n // We might render an empty child.\n if (!open || !rootRef.current) {\n return;\n }\n const doc = ownerDocument(rootRef.current);\n if (!rootRef.current.contains(doc.activeElement)) {\n if (!rootRef.current.hasAttribute('tabIndex')) {\n if (process.env.NODE_ENV !== 'production') {\n console.error(['MUI: The modal content node does not accept focus.', 'For the benefit of assistive technologies, ' + 'the tabIndex of the node is being set to \"-1\".'].join('\\n'));\n }\n rootRef.current.setAttribute('tabIndex', '-1');\n }\n if (activated.current) {\n rootRef.current.focus();\n }\n }\n return () => {\n // restoreLastFocus()\n if (!disableRestoreFocus) {\n // In IE11 it is possible for document.activeElement to be null resulting\n // in nodeToRestore.current being null.\n // Not all elements in IE11 have a focus method.\n // Once IE11 support is dropped the focus() call can be unconditional.\n if (nodeToRestore.current && nodeToRestore.current.focus) {\n ignoreNextEnforceFocus.current = true;\n nodeToRestore.current.focus();\n }\n nodeToRestore.current = null;\n }\n };\n // Missing `disableRestoreFocus` which is fine.\n // We don't support changing that prop on an open FocusTrap\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [open]);\n React.useEffect(() => {\n // We might render an empty child.\n if (!open || !rootRef.current) {\n return;\n }\n const doc = ownerDocument(rootRef.current);\n const loopFocus = nativeEvent => {\n lastKeydown.current = nativeEvent;\n if (disableEnforceFocus || !isEnabled() || nativeEvent.key !== 'Tab') {\n return;\n }\n\n // Make sure the next tab starts from the right place.\n // doc.activeElement refers to the origin.\n if (doc.activeElement === rootRef.current && nativeEvent.shiftKey) {\n // We need to ignore the next contain as\n // it will try to move the focus back to the rootRef element.\n ignoreNextEnforceFocus.current = true;\n if (sentinelEnd.current) {\n sentinelEnd.current.focus();\n }\n }\n };\n const contain = () => {\n const rootElement = rootRef.current;\n\n // Cleanup functions are executed lazily in React 17.\n // Contain can be called between the component being unmounted and its cleanup function being run.\n if (rootElement === null) {\n return;\n }\n if (!doc.hasFocus() || !isEnabled() || ignoreNextEnforceFocus.current) {\n ignoreNextEnforceFocus.current = false;\n return;\n }\n\n // The focus is already inside\n if (rootElement.contains(doc.activeElement)) {\n return;\n }\n\n // The disableEnforceFocus is set and the focus is outside of the focus trap (and sentinel nodes)\n if (disableEnforceFocus && doc.activeElement !== sentinelStart.current && doc.activeElement !== sentinelEnd.current) {\n return;\n }\n\n // if the focus event is not coming from inside the children's react tree, reset the refs\n if (doc.activeElement !== reactFocusEventTarget.current) {\n reactFocusEventTarget.current = null;\n } else if (reactFocusEventTarget.current !== null) {\n return;\n }\n if (!activated.current) {\n return;\n }\n let tabbable = [];\n if (doc.activeElement === sentinelStart.current || doc.activeElement === sentinelEnd.current) {\n tabbable = getTabbable(rootRef.current);\n }\n\n // one of the sentinel nodes was focused, so move the focus\n // to the first/last tabbable element inside the focus trap\n if (tabbable.length > 0) {\n const isShiftTab = Boolean(lastKeydown.current?.shiftKey && lastKeydown.current?.key === 'Tab');\n const focusNext = tabbable[0];\n const focusPrevious = tabbable[tabbable.length - 1];\n if (typeof focusNext !== 'string' && typeof focusPrevious !== 'string') {\n if (isShiftTab) {\n focusPrevious.focus();\n } else {\n focusNext.focus();\n }\n }\n // no tabbable elements in the trap focus or the focus was outside of the focus trap\n } else {\n rootElement.focus();\n }\n };\n doc.addEventListener('focusin', contain);\n doc.addEventListener('keydown', loopFocus, true);\n\n // With Edge, Safari and Firefox, no focus related events are fired when the focused area stops being a focused area.\n // for example https://bugzilla.mozilla.org/show_bug.cgi?id=559561.\n // Instead, we can look if the active element was restored on the BODY element.\n //\n // The whatwg spec defines how the browser should behave but does not explicitly mention any events:\n // https://html.spec.whatwg.org/multipage/interaction.html#focus-fixup-rule.\n const interval = setInterval(() => {\n if (doc.activeElement && doc.activeElement.tagName === 'BODY') {\n contain();\n }\n }, 50);\n return () => {\n clearInterval(interval);\n doc.removeEventListener('focusin', contain);\n doc.removeEventListener('keydown', loopFocus, true);\n };\n }, [disableAutoFocus, disableEnforceFocus, disableRestoreFocus, isEnabled, open, getTabbable]);\n const onFocus = event => {\n if (nodeToRestore.current === null) {\n nodeToRestore.current = event.relatedTarget;\n }\n activated.current = true;\n reactFocusEventTarget.current = event.target;\n const childrenPropsHandler = children.props.onFocus;\n if (childrenPropsHandler) {\n childrenPropsHandler(event);\n }\n };\n const handleFocusSentinel = event => {\n if (nodeToRestore.current === null) {\n nodeToRestore.current = event.relatedTarget;\n }\n activated.current = true;\n };\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(\"div\", {\n tabIndex: open ? 0 : -1,\n onFocus: handleFocusSentinel,\n ref: sentinelStart,\n \"data-testid\": \"sentinelStart\"\n }), /*#__PURE__*/React.cloneElement(children, {\n ref: handleRef,\n onFocus\n }), /*#__PURE__*/_jsx(\"div\", {\n tabIndex: open ? 0 : -1,\n onFocus: handleFocusSentinel,\n ref: sentinelEnd,\n \"data-testid\": \"sentinelEnd\"\n })]\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? FocusTrap.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * A single child content element.\n */\n children: elementAcceptingRef,\n /**\n * If `true`, the focus trap will not automatically shift focus to itself when it opens, and\n * replace it to the last focused element when it closes.\n * This also works correctly with any focus trap children that have the `disableAutoFocus` prop.\n *\n * Generally this should never be set to `true` as it makes the focus trap less\n * accessible to assistive technologies, like screen readers.\n * @default false\n */\n disableAutoFocus: PropTypes.bool,\n /**\n * If `true`, the focus trap will not prevent focus from leaving the focus trap while open.\n *\n * Generally this should never be set to `true` as it makes the focus trap less\n * accessible to assistive technologies, like screen readers.\n * @default false\n */\n disableEnforceFocus: PropTypes.bool,\n /**\n * If `true`, the focus trap will not restore focus to previously focused element once\n * focus trap is hidden or unmounted.\n * @default false\n */\n disableRestoreFocus: PropTypes.bool,\n /**\n * Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.\n * For instance, you can provide the \"tabbable\" npm dependency.\n * @param {HTMLElement} root\n */\n getTabbable: PropTypes.func,\n /**\n * This prop extends the `open` prop.\n * It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.\n * This prop should be memoized.\n * It can be used to support multiple focus trap mounted at the same time.\n * @default function defaultIsEnabled(): boolean {\n * return true;\n * }\n */\n isEnabled: PropTypes.func,\n /**\n * If `true`, focus is locked.\n */\n open: PropTypes.bool.isRequired\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n FocusTrap['propTypes' + ''] = exactProp(FocusTrap.propTypes);\n}\nexport default FocusTrap;","'use client';\n\nimport * as React from 'react';\nimport { unstable_ownerDocument as ownerDocument, unstable_useForkRef as useForkRef, unstable_useEventCallback as useEventCallback, unstable_createChainedFunction as createChainedFunction } from '@mui/utils';\nimport extractEventHandlers from '@mui/utils/extractEventHandlers';\nimport { ModalManager, ariaHidden } from \"./ModalManager.js\";\nfunction getContainer(container) {\n return typeof container === 'function' ? container() : container;\n}\nfunction getHasTransition(children) {\n return children ? children.props.hasOwnProperty('in') : false;\n}\nconst noop = () => {};\n\n// A modal manager used to track and manage the state of open Modals.\n// Modals don't open on the server so this won't conflict with concurrent requests.\nconst manager = new ModalManager();\n/**\n *\n * Demos:\n *\n * - [Modal](https://mui.com/base-ui/react-modal/#hook)\n *\n * API:\n *\n * - [useModal API](https://mui.com/base-ui/react-modal/hooks-api/#use-modal)\n */\nfunction useModal(parameters) {\n const {\n container,\n disableEscapeKeyDown = false,\n disableScrollLock = false,\n closeAfterTransition = false,\n onTransitionEnter,\n onTransitionExited,\n children,\n onClose,\n open,\n rootRef\n } = parameters;\n\n // @ts-ignore internal logic\n const modal = React.useRef({});\n const mountNodeRef = React.useRef(null);\n const modalRef = React.useRef(null);\n const handleRef = useForkRef(modalRef, rootRef);\n const [exited, setExited] = React.useState(!open);\n const hasTransition = getHasTransition(children);\n let ariaHiddenProp = true;\n if (parameters['aria-hidden'] === 'false' || parameters['aria-hidden'] === false) {\n ariaHiddenProp = false;\n }\n const getDoc = () => ownerDocument(mountNodeRef.current);\n const getModal = () => {\n modal.current.modalRef = modalRef.current;\n modal.current.mount = mountNodeRef.current;\n return modal.current;\n };\n const handleMounted = () => {\n manager.mount(getModal(), {\n disableScrollLock\n });\n\n // Fix a bug on Chrome where the scroll isn't initially 0.\n if (modalRef.current) {\n modalRef.current.scrollTop = 0;\n }\n };\n const handleOpen = useEventCallback(() => {\n const resolvedContainer = getContainer(container) || getDoc().body;\n manager.add(getModal(), resolvedContainer);\n\n // The element was already mounted.\n if (modalRef.current) {\n handleMounted();\n }\n });\n const isTopModal = () => manager.isTopModal(getModal());\n const handlePortalRef = useEventCallback(node => {\n mountNodeRef.current = node;\n if (!node) {\n return;\n }\n if (open && isTopModal()) {\n handleMounted();\n } else if (modalRef.current) {\n ariaHidden(modalRef.current, ariaHiddenProp);\n }\n });\n const handleClose = React.useCallback(() => {\n manager.remove(getModal(), ariaHiddenProp);\n }, [ariaHiddenProp]);\n React.useEffect(() => {\n return () => {\n handleClose();\n };\n }, [handleClose]);\n React.useEffect(() => {\n if (open) {\n handleOpen();\n } else if (!hasTransition || !closeAfterTransition) {\n handleClose();\n }\n }, [open, handleClose, hasTransition, closeAfterTransition, handleOpen]);\n const createHandleKeyDown = otherHandlers => event => {\n otherHandlers.onKeyDown?.(event);\n\n // The handler doesn't take event.defaultPrevented into account:\n //\n // event.preventDefault() is meant to stop default behaviors like\n // clicking a checkbox to check it, hitting a button to submit a form,\n // and hitting left arrow to move the cursor in a text input etc.\n // Only special HTML elements have these default behaviors.\n if (event.key !== 'Escape' || event.which === 229 ||\n // Wait until IME is settled.\n !isTopModal()) {\n return;\n }\n if (!disableEscapeKeyDown) {\n // Swallow the event, in case someone is listening for the escape key on the body.\n event.stopPropagation();\n if (onClose) {\n onClose(event, 'escapeKeyDown');\n }\n }\n };\n const createHandleBackdropClick = otherHandlers => event => {\n otherHandlers.onClick?.(event);\n if (event.target !== event.currentTarget) {\n return;\n }\n if (onClose) {\n onClose(event, 'backdropClick');\n }\n };\n const getRootProps = (otherHandlers = {}) => {\n const propsEventHandlers = extractEventHandlers(parameters);\n\n // The custom event handlers shouldn't be spread on the root element\n delete propsEventHandlers.onTransitionEnter;\n delete propsEventHandlers.onTransitionExited;\n const externalEventHandlers = {\n ...propsEventHandlers,\n ...otherHandlers\n };\n return {\n /*\n * Marking an element with the role presentation indicates to assistive technology\n * that this element should be ignored; it exists to support the web application and\n * is not meant for humans to interact with directly.\n * https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md\n */\n role: 'presentation',\n ...externalEventHandlers,\n onKeyDown: createHandleKeyDown(externalEventHandlers),\n ref: handleRef\n };\n };\n const getBackdropProps = (otherHandlers = {}) => {\n const externalEventHandlers = otherHandlers;\n return {\n 'aria-hidden': true,\n ...externalEventHandlers,\n onClick: createHandleBackdropClick(externalEventHandlers),\n open\n };\n };\n const getTransitionProps = () => {\n const handleEnter = () => {\n setExited(false);\n if (onTransitionEnter) {\n onTransitionEnter();\n }\n };\n const handleExited = () => {\n setExited(true);\n if (onTransitionExited) {\n onTransitionExited();\n }\n if (closeAfterTransition) {\n handleClose();\n }\n };\n return {\n onEnter: createChainedFunction(handleEnter, children?.props.onEnter ?? noop),\n onExited: createChainedFunction(handleExited, children?.props.onExited ?? noop)\n };\n };\n return {\n getRootProps,\n getBackdropProps,\n getTransitionProps,\n rootRef: handleRef,\n portalRef: handlePortalRef,\n isTopModal,\n exited,\n hasTransition\n };\n}\nexport default useModal;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getModalUtilityClass(slot) {\n return generateUtilityClass('MuiModal', slot);\n}\nconst modalClasses = generateUtilityClasses('MuiModal', ['root', 'hidden', 'backdrop']);\nexport default modalClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport HTMLElementType from '@mui/utils/HTMLElementType';\nimport elementAcceptingRef from '@mui/utils/elementAcceptingRef';\nimport composeClasses from '@mui/utils/composeClasses';\nimport FocusTrap from \"../Unstable_TrapFocus/index.js\";\nimport Portal from \"../Portal/index.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Backdrop from \"../Backdrop/index.js\";\nimport useModal from \"./useModal.js\";\nimport { getModalUtilityClass } from \"./modalClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n open,\n exited,\n classes\n } = ownerState;\n const slots = {\n root: ['root', !open && exited && 'hidden'],\n backdrop: ['backdrop']\n };\n return composeClasses(slots, getModalUtilityClass, classes);\n};\nconst ModalRoot = styled('div', {\n name: 'MuiModal',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, !ownerState.open && ownerState.exited && styles.hidden];\n }\n})(memoTheme(({\n theme\n}) => ({\n position: 'fixed',\n zIndex: (theme.vars || theme).zIndex.modal,\n right: 0,\n bottom: 0,\n top: 0,\n left: 0,\n variants: [{\n props: ({\n ownerState\n }) => !ownerState.open && ownerState.exited,\n style: {\n visibility: 'hidden'\n }\n }]\n})));\nconst ModalBackdrop = styled(Backdrop, {\n name: 'MuiModal',\n slot: 'Backdrop',\n overridesResolver: (props, styles) => {\n return styles.backdrop;\n }\n})({\n zIndex: -1\n});\n\n/**\n * Modal is a lower-level construct that is leveraged by the following components:\n *\n * - [Dialog](/material-ui/api/dialog/)\n * - [Drawer](/material-ui/api/drawer/)\n * - [Menu](/material-ui/api/menu/)\n * - [Popover](/material-ui/api/popover/)\n *\n * If you are creating a modal dialog, you probably want to use the [Dialog](/material-ui/api/dialog/) component\n * rather than directly using Modal.\n *\n * This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).\n */\nconst Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {\n const props = useDefaultProps({\n name: 'MuiModal',\n props: inProps\n });\n const {\n BackdropComponent = ModalBackdrop,\n BackdropProps,\n classes: classesProp,\n className,\n closeAfterTransition = false,\n children,\n container,\n component,\n components = {},\n componentsProps = {},\n disableAutoFocus = false,\n disableEnforceFocus = false,\n disableEscapeKeyDown = false,\n disablePortal = false,\n disableRestoreFocus = false,\n disableScrollLock = false,\n hideBackdrop = false,\n keepMounted = false,\n onClose,\n onTransitionEnter,\n onTransitionExited,\n open,\n slotProps = {},\n slots = {},\n // eslint-disable-next-line react/prop-types\n theme,\n ...other\n } = props;\n const propsWithDefaults = {\n ...props,\n closeAfterTransition,\n disableAutoFocus,\n disableEnforceFocus,\n disableEscapeKeyDown,\n disablePortal,\n disableRestoreFocus,\n disableScrollLock,\n hideBackdrop,\n keepMounted\n };\n const {\n getRootProps,\n getBackdropProps,\n getTransitionProps,\n portalRef,\n isTopModal,\n exited,\n hasTransition\n } = useModal({\n ...propsWithDefaults,\n rootRef: ref\n });\n const ownerState = {\n ...propsWithDefaults,\n exited\n };\n const classes = useUtilityClasses(ownerState);\n const childProps = {};\n if (children.props.tabIndex === undefined) {\n childProps.tabIndex = '-1';\n }\n\n // It's a Transition like component\n if (hasTransition) {\n const {\n onEnter,\n onExited\n } = getTransitionProps();\n childProps.onEnter = onEnter;\n childProps.onExited = onExited;\n }\n const externalForwardedProps = {\n slots: {\n root: components.Root,\n backdrop: components.Backdrop,\n ...slots\n },\n slotProps: {\n ...componentsProps,\n ...slotProps\n }\n };\n const [RootSlot, rootProps] = useSlot('root', {\n ref,\n elementType: ModalRoot,\n externalForwardedProps: {\n ...externalForwardedProps,\n ...other,\n component\n },\n getSlotProps: getRootProps,\n ownerState,\n className: clsx(className, classes?.root, !ownerState.open && ownerState.exited && classes?.hidden)\n });\n const [BackdropSlot, backdropProps] = useSlot('backdrop', {\n ref: BackdropProps?.ref,\n elementType: BackdropComponent,\n externalForwardedProps,\n shouldForwardComponentProp: true,\n additionalProps: BackdropProps,\n getSlotProps: otherHandlers => {\n return getBackdropProps({\n ...otherHandlers,\n onClick: event => {\n if (otherHandlers?.onClick) {\n otherHandlers.onClick(event);\n }\n }\n });\n },\n className: clsx(BackdropProps?.className, classes?.backdrop),\n ownerState\n });\n if (!keepMounted && !open && (!hasTransition || exited)) {\n return null;\n }\n return /*#__PURE__*/_jsx(Portal, {\n ref: portalRef,\n container: container,\n disablePortal: disablePortal,\n children: /*#__PURE__*/_jsxs(RootSlot, {\n ...rootProps,\n children: [!hideBackdrop && BackdropComponent ? /*#__PURE__*/_jsx(BackdropSlot, {\n ...backdropProps\n }) : null, /*#__PURE__*/_jsx(FocusTrap, {\n disableEnforceFocus: disableEnforceFocus,\n disableAutoFocus: disableAutoFocus,\n disableRestoreFocus: disableRestoreFocus,\n isEnabled: isTopModal,\n open: open,\n children: /*#__PURE__*/React.cloneElement(children, childProps)\n })]\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Modal.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * A backdrop component. This prop enables custom backdrop rendering.\n * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.\n * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.\n * @default styled(Backdrop, {\n * name: 'MuiModal',\n * slot: 'Backdrop',\n * overridesResolver: (props, styles) => {\n * return styles.backdrop;\n * },\n * })({\n * zIndex: -1,\n * })\n */\n BackdropComponent: PropTypes.elementType,\n /**\n * Props applied to the [`Backdrop`](https://mui.com/material-ui/api/backdrop/) element.\n * @deprecated Use `slotProps.backdrop` instead.\n */\n BackdropProps: PropTypes.object,\n /**\n * A single child content element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * When set to true the Modal waits until a nested Transition is completed before closing.\n * @default false\n */\n closeAfterTransition: PropTypes.bool,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The components used for each slot inside.\n *\n * @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n components: PropTypes.shape({\n Backdrop: PropTypes.elementType,\n Root: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * You can also provide a callback, which is called in a React layout effect.\n * This lets you set the container from a ref, and also makes server-side rendering possible.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * If `true`, the modal will not automatically shift focus to itself when it opens, and\n * replace it to the last focused element when it closes.\n * This also works correctly with any modal children that have the `disableAutoFocus` prop.\n *\n * Generally this should never be set to `true` as it makes the modal less\n * accessible to assistive technologies, like screen readers.\n * @default false\n */\n disableAutoFocus: PropTypes.bool,\n /**\n * If `true`, the modal will not prevent focus from leaving the modal while open.\n *\n * Generally this should never be set to `true` as it makes the modal less\n * accessible to assistive technologies, like screen readers.\n * @default false\n */\n disableEnforceFocus: PropTypes.bool,\n /**\n * If `true`, hitting escape will not fire the `onClose` callback.\n * @default false\n */\n disableEscapeKeyDown: PropTypes.bool,\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool,\n /**\n * If `true`, the modal will not restore focus to previously focused element once\n * modal is hidden or unmounted.\n * @default false\n */\n disableRestoreFocus: PropTypes.bool,\n /**\n * Disable the scroll lock behavior.\n * @default false\n */\n disableScrollLock: PropTypes.bool,\n /**\n * If `true`, the backdrop is not rendered.\n * @default false\n */\n hideBackdrop: PropTypes.bool,\n /**\n * Always keep the children in the DOM.\n * This prop can be useful in SEO situation or\n * when you want to maximize the responsiveness of the Modal.\n * @default false\n */\n keepMounted: PropTypes.bool,\n /**\n * Callback fired when the component requests to be closed.\n * The `reason` parameter can optionally be used to control the response to `onClose`.\n *\n * @param {object} event The event source of the callback.\n * @param {string} reason Can be: `\"escapeKeyDown\"`, `\"backdropClick\"`.\n */\n onClose: PropTypes.func,\n /**\n * A function called when a transition enters.\n */\n onTransitionEnter: PropTypes.func,\n /**\n * A function called when a transition has exited.\n */\n onTransitionExited: PropTypes.func,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * The props used for each slot inside the Modal.\n * @default {}\n */\n slotProps: PropTypes.shape({\n backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside the Modal.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n slots: PropTypes.shape({\n backdrop: PropTypes.elementType,\n root: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Modal;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getDialogUtilityClass(slot) {\n return generateUtilityClass('MuiDialog', slot);\n}\nconst dialogClasses = generateUtilityClasses('MuiDialog', ['root', 'scrollPaper', 'scrollBody', 'container', 'paper', 'paperScrollPaper', 'paperScrollBody', 'paperWidthFalse', 'paperWidthXs', 'paperWidthSm', 'paperWidthMd', 'paperWidthLg', 'paperWidthXl', 'paperFullWidth', 'paperFullScreen']);\nexport default dialogClasses;","'use client';\n\nimport * as React from 'react';\nconst DialogContext = /*#__PURE__*/React.createContext({});\nif (process.env.NODE_ENV !== 'production') {\n DialogContext.displayName = 'DialogContext';\n}\nexport default DialogContext;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useId from '@mui/utils/useId';\nimport capitalize from \"../utils/capitalize.js\";\nimport Modal from \"../Modal/index.js\";\nimport Fade from \"../Fade/index.js\";\nimport Paper from \"../Paper/index.js\";\nimport dialogClasses, { getDialogUtilityClass } from \"./dialogClasses.js\";\nimport DialogContext from \"./DialogContext.js\";\nimport Backdrop from \"../Backdrop/index.js\";\nimport { styled, useTheme } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DialogBackdrop = styled(Backdrop, {\n name: 'MuiDialog',\n slot: 'Backdrop',\n overrides: (props, styles) => styles.backdrop\n})({\n // Improve scrollable dialog support.\n zIndex: -1\n});\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n scroll,\n maxWidth,\n fullWidth,\n fullScreen\n } = ownerState;\n const slots = {\n root: ['root'],\n container: ['container', `scroll${capitalize(scroll)}`],\n paper: ['paper', `paperScroll${capitalize(scroll)}`, `paperWidth${capitalize(String(maxWidth))}`, fullWidth && 'paperFullWidth', fullScreen && 'paperFullScreen']\n };\n return composeClasses(slots, getDialogUtilityClass, classes);\n};\nconst DialogRoot = styled(Modal, {\n name: 'MuiDialog',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n '@media print': {\n // Use !important to override the Modal inline-style.\n position: 'absolute !important'\n }\n});\nconst DialogContainer = styled('div', {\n name: 'MuiDialog',\n slot: 'Container',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.container, styles[`scroll${capitalize(ownerState.scroll)}`]];\n }\n})({\n height: '100%',\n '@media print': {\n height: 'auto'\n },\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0,\n variants: [{\n props: {\n scroll: 'paper'\n },\n style: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n }\n }, {\n props: {\n scroll: 'body'\n },\n style: {\n overflowY: 'auto',\n overflowX: 'hidden',\n textAlign: 'center',\n '&::after': {\n content: '\"\"',\n display: 'inline-block',\n verticalAlign: 'middle',\n height: '100%',\n width: '0'\n }\n }\n }]\n});\nconst DialogPaper = styled(Paper, {\n name: 'MuiDialog',\n slot: 'Paper',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.paper, styles[`scrollPaper${capitalize(ownerState.scroll)}`], styles[`paperWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fullWidth && styles.paperFullWidth, ownerState.fullScreen && styles.paperFullScreen];\n }\n})(memoTheme(({\n theme\n}) => ({\n margin: 32,\n position: 'relative',\n overflowY: 'auto',\n '@media print': {\n overflowY: 'visible',\n boxShadow: 'none'\n },\n variants: [{\n props: {\n scroll: 'paper'\n },\n style: {\n display: 'flex',\n flexDirection: 'column',\n maxHeight: 'calc(100% - 64px)'\n }\n }, {\n props: {\n scroll: 'body'\n },\n style: {\n display: 'inline-block',\n verticalAlign: 'middle',\n textAlign: 'initial'\n }\n }, {\n props: ({\n ownerState\n }) => !ownerState.maxWidth,\n style: {\n maxWidth: 'calc(100% - 64px)'\n }\n }, {\n props: {\n maxWidth: 'xs'\n },\n style: {\n maxWidth: theme.breakpoints.unit === 'px' ? Math.max(theme.breakpoints.values.xs, 444) : `max(${theme.breakpoints.values.xs}${theme.breakpoints.unit}, 444px)`,\n [`&.${dialogClasses.paperScrollBody}`]: {\n [theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 444) + 32 * 2)]: {\n maxWidth: 'calc(100% - 64px)'\n }\n }\n }\n }, ...Object.keys(theme.breakpoints.values).filter(maxWidth => maxWidth !== 'xs').map(maxWidth => ({\n props: {\n maxWidth\n },\n style: {\n maxWidth: `${theme.breakpoints.values[maxWidth]}${theme.breakpoints.unit}`,\n [`&.${dialogClasses.paperScrollBody}`]: {\n [theme.breakpoints.down(theme.breakpoints.values[maxWidth] + 32 * 2)]: {\n maxWidth: 'calc(100% - 64px)'\n }\n }\n }\n })), {\n props: ({\n ownerState\n }) => ownerState.fullWidth,\n style: {\n width: 'calc(100% - 64px)'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.fullScreen,\n style: {\n margin: 0,\n width: '100%',\n maxWidth: '100%',\n height: '100%',\n maxHeight: 'none',\n borderRadius: 0,\n [`&.${dialogClasses.paperScrollBody}`]: {\n margin: 0,\n maxWidth: '100%'\n }\n }\n }]\n})));\n\n/**\n * Dialogs are overlaid modal paper based components with a backdrop.\n */\nconst Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiDialog'\n });\n const theme = useTheme();\n const defaultTransitionDuration = {\n enter: theme.transitions.duration.enteringScreen,\n exit: theme.transitions.duration.leavingScreen\n };\n const {\n 'aria-describedby': ariaDescribedby,\n 'aria-labelledby': ariaLabelledbyProp,\n 'aria-modal': ariaModal = true,\n BackdropComponent,\n BackdropProps,\n children,\n className,\n disableEscapeKeyDown = false,\n fullScreen = false,\n fullWidth = false,\n maxWidth = 'sm',\n onClick,\n onClose,\n open,\n PaperComponent = Paper,\n PaperProps = {},\n scroll = 'paper',\n slots = {},\n slotProps = {},\n TransitionComponent = Fade,\n transitionDuration = defaultTransitionDuration,\n TransitionProps,\n ...other\n } = props;\n const ownerState = {\n ...props,\n disableEscapeKeyDown,\n fullScreen,\n fullWidth,\n maxWidth,\n scroll\n };\n const classes = useUtilityClasses(ownerState);\n const backdropClick = React.useRef();\n const handleMouseDown = event => {\n // We don't want to close the dialog when clicking the dialog content.\n // Make sure the event starts and ends on the same DOM element.\n backdropClick.current = event.target === event.currentTarget;\n };\n const handleBackdropClick = event => {\n if (onClick) {\n onClick(event);\n }\n\n // Ignore the events not coming from the \"backdrop\".\n if (!backdropClick.current) {\n return;\n }\n backdropClick.current = null;\n if (onClose) {\n onClose(event, 'backdropClick');\n }\n };\n const ariaLabelledby = useId(ariaLabelledbyProp);\n const dialogContextValue = React.useMemo(() => {\n return {\n titleId: ariaLabelledby\n };\n }, [ariaLabelledby]);\n const backwardCompatibleSlots = {\n transition: TransitionComponent,\n ...slots\n };\n const backwardCompatibleSlotProps = {\n transition: TransitionProps,\n paper: PaperProps,\n backdrop: BackdropProps,\n ...slotProps\n };\n const externalForwardedProps = {\n slots: backwardCompatibleSlots,\n slotProps: backwardCompatibleSlotProps\n };\n const [RootSlot, rootSlotProps] = useSlot('root', {\n elementType: DialogRoot,\n shouldForwardComponentProp: true,\n externalForwardedProps,\n ownerState,\n className: clsx(classes.root, className),\n ref\n });\n const [BackdropSlot, backdropSlotProps] = useSlot('backdrop', {\n elementType: DialogBackdrop,\n shouldForwardComponentProp: true,\n externalForwardedProps,\n ownerState\n });\n const [PaperSlot, paperSlotProps] = useSlot('paper', {\n elementType: DialogPaper,\n shouldForwardComponentProp: true,\n externalForwardedProps,\n ownerState,\n className: clsx(classes.paper, PaperProps.className)\n });\n const [ContainerSlot, containerSlotProps] = useSlot('container', {\n elementType: DialogContainer,\n externalForwardedProps,\n ownerState,\n className: clsx(classes.container)\n });\n const [TransitionSlot, transitionSlotProps] = useSlot('transition', {\n elementType: Fade,\n externalForwardedProps,\n ownerState,\n additionalProps: {\n appear: true,\n in: open,\n timeout: transitionDuration,\n role: 'presentation'\n }\n });\n return /*#__PURE__*/_jsx(RootSlot, {\n closeAfterTransition: true,\n slots: {\n backdrop: BackdropSlot\n },\n slotProps: {\n backdrop: {\n transitionDuration,\n as: BackdropComponent,\n ...backdropSlotProps\n }\n },\n disableEscapeKeyDown: disableEscapeKeyDown,\n onClose: onClose,\n open: open,\n onClick: handleBackdropClick,\n ...rootSlotProps,\n ...other,\n children: /*#__PURE__*/_jsx(TransitionSlot, {\n ...transitionSlotProps,\n children: /*#__PURE__*/_jsx(ContainerSlot, {\n onMouseDown: handleMouseDown,\n ...containerSlotProps,\n children: /*#__PURE__*/_jsx(PaperSlot, {\n as: PaperComponent,\n elevation: 24,\n role: \"dialog\",\n \"aria-describedby\": ariaDescribedby,\n \"aria-labelledby\": ariaLabelledby,\n \"aria-modal\": ariaModal,\n ...paperSlotProps,\n children: /*#__PURE__*/_jsx(DialogContext.Provider, {\n value: dialogContextValue,\n children: children\n })\n })\n })\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Dialog.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The id(s) of the element(s) that describe the dialog.\n */\n 'aria-describedby': PropTypes.string,\n /**\n * The id(s) of the element(s) that label the dialog.\n */\n 'aria-labelledby': PropTypes.string,\n /**\n * Informs assistive technologies that the element is modal.\n * It's added on the element with role=\"dialog\".\n * @default true\n */\n 'aria-modal': PropTypes.oneOfType([PropTypes.oneOf(['false', 'true']), PropTypes.bool]),\n /**\n * A backdrop component. This prop enables custom backdrop rendering.\n * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.\n * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.\n * @default styled(Backdrop, {\n * name: 'MuiModal',\n * slot: 'Backdrop',\n * overridesResolver: (props, styles) => {\n * return styles.backdrop;\n * },\n * })({\n * zIndex: -1,\n * })\n */\n BackdropComponent: PropTypes.elementType,\n /**\n * @ignore\n */\n BackdropProps: PropTypes.object,\n /**\n * Dialog children, usually the included sub-components.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * If `true`, hitting escape will not fire the `onClose` callback.\n * @default false\n */\n disableEscapeKeyDown: PropTypes.bool,\n /**\n * If `true`, the dialog is full-screen.\n * @default false\n */\n fullScreen: PropTypes.bool,\n /**\n * If `true`, the dialog stretches to `maxWidth`.\n *\n * Notice that the dialog width grow is limited by the default margin.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * Determine the max-width of the dialog.\n * The dialog width grows with the size of the screen.\n * Set to `false` to disable `maxWidth`.\n * @default 'sm'\n */\n maxWidth: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl', false]), PropTypes.string]),\n /**\n * @ignore\n */\n onClick: PropTypes.func,\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {object} event The event source of the callback.\n * @param {string} reason Can be: `\"escapeKeyDown\"`, `\"backdropClick\"`.\n */\n onClose: PropTypes.func,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * The component used to render the body of the dialog.\n * @default Paper\n */\n PaperComponent: PropTypes.elementType,\n /**\n * Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.\n * @default {}\n * @deprecated Use `slotProps.paper` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n PaperProps: PropTypes.object,\n /**\n * Determine the container for scrolling the dialog.\n * @default 'paper'\n */\n scroll: PropTypes.oneOf(['body', 'paper']),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n container: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n paper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n backdrop: PropTypes.elementType,\n container: PropTypes.elementType,\n paper: PropTypes.elementType,\n root: PropTypes.elementType,\n transition: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The component used for the transition.\n * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n * @default Fade\n * @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n TransitionComponent: PropTypes.elementType,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n * @default {\n * enter: theme.transitions.duration.enteringScreen,\n * exit: theme.transitions.duration.leavingScreen,\n * }\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n /**\n * Props applied to the transition element.\n * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.\n * @deprecated Use `slotProps.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default Dialog;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getDialogActionsUtilityClass(slot) {\n return generateUtilityClass('MuiDialogActions', slot);\n}\nconst dialogActionsClasses = generateUtilityClasses('MuiDialogActions', ['root', 'spacing']);\nexport default dialogActionsClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getDialogActionsUtilityClass } from \"./dialogActionsClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disableSpacing\n } = ownerState;\n const slots = {\n root: ['root', !disableSpacing && 'spacing']\n };\n return composeClasses(slots, getDialogActionsUtilityClass, classes);\n};\nconst DialogActionsRoot = styled('div', {\n name: 'MuiDialogActions',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, !ownerState.disableSpacing && styles.spacing];\n }\n})({\n display: 'flex',\n alignItems: 'center',\n padding: 8,\n justifyContent: 'flex-end',\n flex: '0 0 auto',\n variants: [{\n props: ({\n ownerState\n }) => !ownerState.disableSpacing,\n style: {\n '& > :not(style) ~ :not(style)': {\n marginLeft: 8\n }\n }\n }]\n});\nconst DialogActions = /*#__PURE__*/React.forwardRef(function DialogActions(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiDialogActions'\n });\n const {\n className,\n disableSpacing = false,\n ...other\n } = props;\n const ownerState = {\n ...props,\n disableSpacing\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(DialogActionsRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? DialogActions.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * If `true`, the actions do not have additional margin.\n * @default false\n */\n disableSpacing: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default DialogActions;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getDialogContentUtilityClass(slot) {\n return generateUtilityClass('MuiDialogContent', slot);\n}\nconst dialogContentClasses = generateUtilityClasses('MuiDialogContent', ['root', 'dividers']);\nexport default dialogContentClasses;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getDialogTitleUtilityClass(slot) {\n return generateUtilityClass('MuiDialogTitle', slot);\n}\nconst dialogTitleClasses = generateUtilityClasses('MuiDialogTitle', ['root']);\nexport default dialogTitleClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getDialogContentUtilityClass } from \"./dialogContentClasses.js\";\nimport dialogTitleClasses from \"../DialogTitle/dialogTitleClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n dividers\n } = ownerState;\n const slots = {\n root: ['root', dividers && 'dividers']\n };\n return composeClasses(slots, getDialogContentUtilityClass, classes);\n};\nconst DialogContentRoot = styled('div', {\n name: 'MuiDialogContent',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.dividers && styles.dividers];\n }\n})(memoTheme(({\n theme\n}) => ({\n flex: '1 1 auto',\n // Add iOS momentum scrolling for iOS < 13.0\n WebkitOverflowScrolling: 'touch',\n overflowY: 'auto',\n padding: '20px 24px',\n variants: [{\n props: ({\n ownerState\n }) => ownerState.dividers,\n style: {\n padding: '16px 24px',\n borderTop: `1px solid ${(theme.vars || theme).palette.divider}`,\n borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`\n }\n }, {\n props: ({\n ownerState\n }) => !ownerState.dividers,\n style: {\n [`.${dialogTitleClasses.root} + &`]: {\n paddingTop: 0\n }\n }\n }]\n})));\nconst DialogContent = /*#__PURE__*/React.forwardRef(function DialogContent(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiDialogContent'\n });\n const {\n className,\n dividers = false,\n ...other\n } = props;\n const ownerState = {\n ...props,\n dividers\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(DialogContentRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? DialogContent.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * Display the top and bottom dividers.\n * @default false\n */\n dividers: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default DialogContent;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getDialogContentTextUtilityClass(slot) {\n return generateUtilityClass('MuiDialogContentText', slot);\n}\nconst dialogContentTextClasses = generateUtilityClasses('MuiDialogContentText', ['root']);\nexport default dialogContentTextClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Typography from \"../Typography/index.js\";\nimport { getDialogContentTextUtilityClass } from \"./dialogContentTextClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n const composedClasses = composeClasses(slots, getDialogContentTextUtilityClass, classes);\n return {\n ...classes,\n // forward classes to the Typography\n ...composedClasses\n };\n};\nconst DialogContentTextRoot = styled(Typography, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiDialogContentText',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({});\nconst DialogContentText = /*#__PURE__*/React.forwardRef(function DialogContentText(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiDialogContentText'\n });\n const {\n children,\n className,\n ...ownerState\n } = props;\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(DialogContentTextRoot, {\n component: \"p\",\n variant: \"body1\",\n color: \"textSecondary\",\n ref: ref,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ...props,\n classes: classes\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? DialogContentText.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default DialogContentText;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport Typography from \"../Typography/index.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getDialogTitleUtilityClass } from \"./dialogTitleClasses.js\";\nimport DialogContext from \"../Dialog/DialogContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getDialogTitleUtilityClass, classes);\n};\nconst DialogTitleRoot = styled(Typography, {\n name: 'MuiDialogTitle',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n padding: '16px 24px',\n flex: '0 0 auto'\n});\nconst DialogTitle = /*#__PURE__*/React.forwardRef(function DialogTitle(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiDialogTitle'\n });\n const {\n className,\n id: idProp,\n ...other\n } = props;\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n const {\n titleId = idProp\n } = React.useContext(DialogContext);\n return /*#__PURE__*/_jsx(DialogTitleRoot, {\n component: \"h2\",\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n variant: \"h6\",\n id: idProp ?? titleId,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? DialogTitle.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * @ignore\n */\n id: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default DialogTitle;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getDividerUtilityClass(slot) {\n return generateUtilityClass('MuiDivider', slot);\n}\nconst dividerClasses = generateUtilityClasses('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', 'light', 'vertical', 'withChildren', 'withChildrenVertical', 'textAlignRight', 'textAlignLeft', 'wrapper', 'wrapperVertical']);\nexport default dividerClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getDividerUtilityClass } from \"./dividerClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n absolute,\n children,\n classes,\n flexItem,\n light,\n orientation,\n textAlign,\n variant\n } = ownerState;\n const slots = {\n root: ['root', absolute && 'absolute', variant, light && 'light', orientation === 'vertical' && 'vertical', flexItem && 'flexItem', children && 'withChildren', children && orientation === 'vertical' && 'withChildrenVertical', textAlign === 'right' && orientation !== 'vertical' && 'textAlignRight', textAlign === 'left' && orientation !== 'vertical' && 'textAlignLeft'],\n wrapper: ['wrapper', orientation === 'vertical' && 'wrapperVertical']\n };\n return composeClasses(slots, getDividerUtilityClass, classes);\n};\nconst DividerRoot = styled('div', {\n name: 'MuiDivider',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.absolute && styles.absolute, styles[ownerState.variant], ownerState.light && styles.light, ownerState.orientation === 'vertical' && styles.vertical, ownerState.flexItem && styles.flexItem, ownerState.children && styles.withChildren, ownerState.children && ownerState.orientation === 'vertical' && styles.withChildrenVertical, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && styles.textAlignRight, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && styles.textAlignLeft];\n }\n})(memoTheme(({\n theme\n}) => ({\n margin: 0,\n // Reset browser default style.\n flexShrink: 0,\n borderWidth: 0,\n borderStyle: 'solid',\n borderColor: (theme.vars || theme).palette.divider,\n borderBottomWidth: 'thin',\n variants: [{\n props: {\n absolute: true\n },\n style: {\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%'\n }\n }, {\n props: {\n light: true\n },\n style: {\n borderColor: theme.vars ? `rgba(${theme.vars.palette.dividerChannel} / 0.08)` : alpha(theme.palette.divider, 0.08)\n }\n }, {\n props: {\n variant: 'inset'\n },\n style: {\n marginLeft: 72\n }\n }, {\n props: {\n variant: 'middle',\n orientation: 'horizontal'\n },\n style: {\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2)\n }\n }, {\n props: {\n variant: 'middle',\n orientation: 'vertical'\n },\n style: {\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n }\n }, {\n props: {\n orientation: 'vertical'\n },\n style: {\n height: '100%',\n borderBottomWidth: 0,\n borderRightWidth: 'thin'\n }\n }, {\n props: {\n flexItem: true\n },\n style: {\n alignSelf: 'stretch',\n height: 'auto'\n }\n }, {\n props: ({\n ownerState\n }) => !!ownerState.children,\n style: {\n display: 'flex',\n textAlign: 'center',\n border: 0,\n borderTopStyle: 'solid',\n borderLeftStyle: 'solid',\n '&::before, &::after': {\n content: '\"\"',\n alignSelf: 'center'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.children && ownerState.orientation !== 'vertical',\n style: {\n '&::before, &::after': {\n width: '100%',\n borderTop: `thin solid ${(theme.vars || theme).palette.divider}`,\n borderTopStyle: 'inherit'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.orientation === 'vertical' && ownerState.children,\n style: {\n flexDirection: 'column',\n '&::before, &::after': {\n height: '100%',\n borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`,\n borderLeftStyle: 'inherit'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical',\n style: {\n '&::before': {\n width: '90%'\n },\n '&::after': {\n width: '10%'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical',\n style: {\n '&::before': {\n width: '10%'\n },\n '&::after': {\n width: '90%'\n }\n }\n }]\n})));\nconst DividerWrapper = styled('span', {\n name: 'MuiDivider',\n slot: 'Wrapper',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.wrapper, ownerState.orientation === 'vertical' && styles.wrapperVertical];\n }\n})(memoTheme(({\n theme\n}) => ({\n display: 'inline-block',\n paddingLeft: `calc(${theme.spacing(1)} * 1.2)`,\n paddingRight: `calc(${theme.spacing(1)} * 1.2)`,\n whiteSpace: 'nowrap',\n variants: [{\n props: {\n orientation: 'vertical'\n },\n style: {\n paddingTop: `calc(${theme.spacing(1)} * 1.2)`,\n paddingBottom: `calc(${theme.spacing(1)} * 1.2)`\n }\n }]\n})));\nconst Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiDivider'\n });\n const {\n absolute = false,\n children,\n className,\n orientation = 'horizontal',\n component = children || orientation === 'vertical' ? 'div' : 'hr',\n flexItem = false,\n light = false,\n role = component !== 'hr' ? 'separator' : undefined,\n textAlign = 'center',\n variant = 'fullWidth',\n ...other\n } = props;\n const ownerState = {\n ...props,\n absolute,\n component,\n flexItem,\n light,\n orientation,\n role,\n textAlign,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(DividerRoot, {\n as: component,\n className: clsx(classes.root, className),\n role: role,\n ref: ref,\n ownerState: ownerState,\n \"aria-orientation\": role === 'separator' && (component !== 'hr' || orientation === 'vertical') ? orientation : undefined,\n ...other,\n children: children ? /*#__PURE__*/_jsx(DividerWrapper, {\n className: classes.wrapper,\n ownerState: ownerState,\n children: children\n }) : null\n });\n});\n\n/**\n * The following flag is used to ensure that this component isn't tabbable i.e.\n * does not get highlight/focus inside of MUI List.\n */\nif (Divider) {\n Divider.muiSkipListHighlight = true;\n}\nprocess.env.NODE_ENV !== \"production\" ? Divider.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Absolutely position the element.\n * @default false\n */\n absolute: PropTypes.bool,\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, a vertical divider will have the correct height when used in flex container.\n * (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.)\n * @default false\n */\n flexItem: PropTypes.bool,\n /**\n * If `true`, the divider will have a lighter color.\n * @default false\n * @deprecated Use <Divider sx={{ opacity: 0.6 }} /> (or any opacity or color) instead. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n light: PropTypes.bool,\n /**\n * The component orientation.\n * @default 'horizontal'\n */\n orientation: PropTypes.oneOf(['horizontal', 'vertical']),\n /**\n * @ignore\n */\n role: PropTypes /* @typescript-to-proptypes-ignore */.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The text alignment.\n * @default 'center'\n */\n textAlign: PropTypes.oneOf(['center', 'left', 'right']),\n /**\n * The variant to use.\n * @default 'fullWidth'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['fullWidth', 'inset', 'middle']), PropTypes.string])\n} : void 0;\nexport default Divider;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { Transition } from 'react-transition-group';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport HTMLElementType from '@mui/utils/HTMLElementType';\nimport elementAcceptingRef from '@mui/utils/elementAcceptingRef';\nimport getReactElementRef from '@mui/utils/getReactElementRef';\nimport debounce from \"../utils/debounce.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport { useTheme } from \"../zero-styled/index.js\";\nimport { reflow, getTransitionProps } from \"../transitions/utils.js\";\nimport { ownerWindow } from \"../utils/index.js\";\n\n// Translate the node so it can't be seen on the screen.\n// Later, we're going to translate the node back to its original location with `none`.\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getTranslateValue(direction, node, resolvedContainer) {\n const rect = node.getBoundingClientRect();\n const containerRect = resolvedContainer && resolvedContainer.getBoundingClientRect();\n const containerWindow = ownerWindow(node);\n let transform;\n if (node.fakeTransform) {\n transform = node.fakeTransform;\n } else {\n const computedStyle = containerWindow.getComputedStyle(node);\n transform = computedStyle.getPropertyValue('-webkit-transform') || computedStyle.getPropertyValue('transform');\n }\n let offsetX = 0;\n let offsetY = 0;\n if (transform && transform !== 'none' && typeof transform === 'string') {\n const transformValues = transform.split('(')[1].split(')')[0].split(',');\n offsetX = parseInt(transformValues[4], 10);\n offsetY = parseInt(transformValues[5], 10);\n }\n if (direction === 'left') {\n if (containerRect) {\n return `translateX(${containerRect.right + offsetX - rect.left}px)`;\n }\n return `translateX(${containerWindow.innerWidth + offsetX - rect.left}px)`;\n }\n if (direction === 'right') {\n if (containerRect) {\n return `translateX(-${rect.right - containerRect.left - offsetX}px)`;\n }\n return `translateX(-${rect.left + rect.width - offsetX}px)`;\n }\n if (direction === 'up') {\n if (containerRect) {\n return `translateY(${containerRect.bottom + offsetY - rect.top}px)`;\n }\n return `translateY(${containerWindow.innerHeight + offsetY - rect.top}px)`;\n }\n\n // direction === 'down'\n if (containerRect) {\n return `translateY(-${rect.top - containerRect.top + rect.height - offsetY}px)`;\n }\n return `translateY(-${rect.top + rect.height - offsetY}px)`;\n}\nfunction resolveContainer(containerPropProp) {\n return typeof containerPropProp === 'function' ? containerPropProp() : containerPropProp;\n}\nexport function setTranslateValue(direction, node, containerProp) {\n const resolvedContainer = resolveContainer(containerProp);\n const transform = getTranslateValue(direction, node, resolvedContainer);\n if (transform) {\n node.style.webkitTransform = transform;\n node.style.transform = transform;\n }\n}\n\n/**\n * The Slide transition is used by the [Drawer](/material-ui/react-drawer/) component.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\nconst Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {\n const theme = useTheme();\n const defaultEasing = {\n enter: theme.transitions.easing.easeOut,\n exit: theme.transitions.easing.sharp\n };\n const defaultTimeout = {\n enter: theme.transitions.duration.enteringScreen,\n exit: theme.transitions.duration.leavingScreen\n };\n const {\n addEndListener,\n appear = true,\n children,\n container: containerProp,\n direction = 'down',\n easing: easingProp = defaultEasing,\n in: inProp,\n onEnter,\n onEntered,\n onEntering,\n onExit,\n onExited,\n onExiting,\n style,\n timeout = defaultTimeout,\n // eslint-disable-next-line react/prop-types\n TransitionComponent = Transition,\n ...other\n } = props;\n const childrenRef = React.useRef(null);\n const handleRef = useForkRef(getReactElementRef(children), childrenRef, ref);\n const normalizedTransitionCallback = callback => isAppearing => {\n if (callback) {\n // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n if (isAppearing === undefined) {\n callback(childrenRef.current);\n } else {\n callback(childrenRef.current, isAppearing);\n }\n }\n };\n const handleEnter = normalizedTransitionCallback((node, isAppearing) => {\n setTranslateValue(direction, node, containerProp);\n reflow(node);\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n const handleEntering = normalizedTransitionCallback((node, isAppearing) => {\n const transitionProps = getTransitionProps({\n timeout,\n style,\n easing: easingProp\n }, {\n mode: 'enter'\n });\n node.style.webkitTransition = theme.transitions.create('-webkit-transform', {\n ...transitionProps\n });\n node.style.transition = theme.transitions.create('transform', {\n ...transitionProps\n });\n node.style.webkitTransform = 'none';\n node.style.transform = 'none';\n if (onEntering) {\n onEntering(node, isAppearing);\n }\n });\n const handleEntered = normalizedTransitionCallback(onEntered);\n const handleExiting = normalizedTransitionCallback(onExiting);\n const handleExit = normalizedTransitionCallback(node => {\n const transitionProps = getTransitionProps({\n timeout,\n style,\n easing: easingProp\n }, {\n mode: 'exit'\n });\n node.style.webkitTransition = theme.transitions.create('-webkit-transform', transitionProps);\n node.style.transition = theme.transitions.create('transform', transitionProps);\n setTranslateValue(direction, node, containerProp);\n if (onExit) {\n onExit(node);\n }\n });\n const handleExited = normalizedTransitionCallback(node => {\n // No need for transitions when the component is hidden\n node.style.webkitTransition = '';\n node.style.transition = '';\n if (onExited) {\n onExited(node);\n }\n });\n const handleAddEndListener = next => {\n if (addEndListener) {\n // Old call signature before `react-transition-group` implemented `nodeRef`\n addEndListener(childrenRef.current, next);\n }\n };\n const updatePosition = React.useCallback(() => {\n if (childrenRef.current) {\n setTranslateValue(direction, childrenRef.current, containerProp);\n }\n }, [direction, containerProp]);\n React.useEffect(() => {\n // Skip configuration where the position is screen size invariant.\n if (inProp || direction === 'down' || direction === 'right') {\n return undefined;\n }\n const handleResize = debounce(() => {\n if (childrenRef.current) {\n setTranslateValue(direction, childrenRef.current, containerProp);\n }\n });\n const containerWindow = ownerWindow(childrenRef.current);\n containerWindow.addEventListener('resize', handleResize);\n return () => {\n handleResize.clear();\n containerWindow.removeEventListener('resize', handleResize);\n };\n }, [direction, inProp, containerProp]);\n React.useEffect(() => {\n if (!inProp) {\n // We need to update the position of the drawer when the direction change and\n // when it's hidden.\n updatePosition();\n }\n }, [inProp, updatePosition]);\n return /*#__PURE__*/_jsx(TransitionComponent, {\n nodeRef: childrenRef,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n addEndListener: handleAddEndListener,\n appear: appear,\n in: inProp,\n timeout: timeout,\n ...other,\n children: (state, {\n ownerState,\n ...restChildProps\n }) => {\n return /*#__PURE__*/React.cloneElement(children, {\n ref: handleRef,\n style: {\n visibility: state === 'exited' && !inProp ? 'hidden' : undefined,\n ...style,\n ...children.props.style\n },\n ...restChildProps\n });\n }\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Slide.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Add a custom transition end trigger. Called with the transitioning DOM\n * node and a done callback. Allows for more fine grained transition end\n * logic. Note: Timeouts are still used as a fallback if provided.\n */\n addEndListener: PropTypes.func,\n /**\n * Perform the enter transition when it first mounts if `in` is also `true`.\n * Set this to `false` to disable this behavior.\n * @default true\n */\n appear: PropTypes.bool,\n /**\n * A single child content element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * An HTML element, or a function that returns one.\n * It's used to set the container the Slide is transitioning from.\n */\n container: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.func]), props => {\n if (props.open) {\n const resolvedContainer = resolveContainer(props.container);\n if (resolvedContainer && resolvedContainer.nodeType === 1) {\n const box = resolvedContainer.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n return new Error(['MUI: The `container` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n } else if (!resolvedContainer || typeof resolvedContainer.getBoundingClientRect !== 'function' || resolvedContainer.contextElement != null && resolvedContainer.contextElement.nodeType !== 1) {\n return new Error(['MUI: The `container` prop provided to the component is invalid.', 'It should be an HTML element instance.'].join('\\n'));\n }\n }\n return null;\n }),\n /**\n * Direction the child node will enter from.\n * @default 'down'\n */\n direction: PropTypes.oneOf(['down', 'left', 'right', 'up']),\n /**\n * The transition timing function.\n * You may specify a single easing or a object containing enter and exit values.\n * @default {\n * enter: theme.transitions.easing.easeOut,\n * exit: theme.transitions.easing.sharp,\n * }\n */\n easing: PropTypes.oneOfType([PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string\n }), PropTypes.string]),\n /**\n * If `true`, the component will transition in.\n */\n in: PropTypes.bool,\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n * @default {\n * enter: theme.transitions.duration.enteringScreen,\n * exit: theme.transitions.duration.leavingScreen,\n * }\n */\n timeout: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nexport default Slide;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getDrawerUtilityClass(slot) {\n return generateUtilityClass('MuiDrawer', slot);\n}\nconst drawerClasses = generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'anchorLeft', 'anchorRight', 'anchorTop', 'anchorBottom', 'paperAnchorLeft', 'paperAnchorRight', 'paperAnchorTop', 'paperAnchorBottom', 'paperAnchorDockedLeft', 'paperAnchorDockedRight', 'paperAnchorDockedTop', 'paperAnchorDockedBottom', 'modal']);\nexport default drawerClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport integerPropType from '@mui/utils/integerPropType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport Modal from \"../Modal/index.js\";\nimport Slide from \"../Slide/index.js\";\nimport Paper from \"../Paper/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled, useTheme } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getDrawerUtilityClass } from \"./drawerClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { mergeSlotProps } from \"../utils/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst overridesResolver = (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, (ownerState.variant === 'permanent' || ownerState.variant === 'persistent') && styles.docked, styles.modal];\n};\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n anchor,\n variant\n } = ownerState;\n const slots = {\n root: ['root', `anchor${capitalize(anchor)}`],\n docked: [(variant === 'permanent' || variant === 'persistent') && 'docked'],\n modal: ['modal'],\n paper: ['paper', `paperAnchor${capitalize(anchor)}`, variant !== 'temporary' && `paperAnchorDocked${capitalize(anchor)}`]\n };\n return composeClasses(slots, getDrawerUtilityClass, classes);\n};\nconst DrawerRoot = styled(Modal, {\n name: 'MuiDrawer',\n slot: 'Root',\n overridesResolver\n})(memoTheme(({\n theme\n}) => ({\n zIndex: (theme.vars || theme).zIndex.drawer\n})));\nconst DrawerDockedRoot = styled('div', {\n shouldForwardProp: rootShouldForwardProp,\n name: 'MuiDrawer',\n slot: 'Docked',\n skipVariantsResolver: false,\n overridesResolver\n})({\n flex: '0 0 auto'\n});\nconst DrawerPaper = styled(Paper, {\n name: 'MuiDrawer',\n slot: 'Paper',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.paper, styles[`paperAnchor${capitalize(ownerState.anchor)}`], ownerState.variant !== 'temporary' && styles[`paperAnchorDocked${capitalize(ownerState.anchor)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n overflowY: 'auto',\n display: 'flex',\n flexDirection: 'column',\n height: '100%',\n flex: '1 0 auto',\n zIndex: (theme.vars || theme).zIndex.drawer,\n // Add iOS momentum scrolling for iOS < 13.0\n WebkitOverflowScrolling: 'touch',\n // temporary style\n position: 'fixed',\n top: 0,\n // We disable the focus ring for mouse, touch and keyboard users.\n // At some point, it would be better to keep it for keyboard users.\n // :focus-ring CSS pseudo-class will help.\n outline: 0,\n variants: [{\n props: {\n anchor: 'left'\n },\n style: {\n left: 0\n }\n }, {\n props: {\n anchor: 'top'\n },\n style: {\n top: 0,\n left: 0,\n right: 0,\n height: 'auto',\n maxHeight: '100%'\n }\n }, {\n props: {\n anchor: 'right'\n },\n style: {\n right: 0\n }\n }, {\n props: {\n anchor: 'bottom'\n },\n style: {\n top: 'auto',\n left: 0,\n bottom: 0,\n right: 0,\n height: 'auto',\n maxHeight: '100%'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.anchor === 'left' && ownerState.variant !== 'temporary',\n style: {\n borderRight: `1px solid ${(theme.vars || theme).palette.divider}`\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.anchor === 'top' && ownerState.variant !== 'temporary',\n style: {\n borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.anchor === 'right' && ownerState.variant !== 'temporary',\n style: {\n borderLeft: `1px solid ${(theme.vars || theme).palette.divider}`\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.anchor === 'bottom' && ownerState.variant !== 'temporary',\n style: {\n borderTop: `1px solid ${(theme.vars || theme).palette.divider}`\n }\n }]\n})));\nconst oppositeDirection = {\n left: 'right',\n right: 'left',\n top: 'down',\n bottom: 'up'\n};\nexport function isHorizontal(anchor) {\n return ['left', 'right'].includes(anchor);\n}\nexport function getAnchor({\n direction\n}, anchor) {\n return direction === 'rtl' && isHorizontal(anchor) ? oppositeDirection[anchor] : anchor;\n}\n\n/**\n * The props of the [Modal](/material-ui/api/modal/) component are available\n * when `variant=\"temporary\"` is set.\n */\nconst Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiDrawer'\n });\n const theme = useTheme();\n const isRtl = useRtl();\n const defaultTransitionDuration = {\n enter: theme.transitions.duration.enteringScreen,\n exit: theme.transitions.duration.leavingScreen\n };\n const {\n anchor: anchorProp = 'left',\n BackdropProps,\n children,\n className,\n elevation = 16,\n hideBackdrop = false,\n ModalProps: {\n BackdropProps: BackdropPropsProp,\n ...ModalProps\n } = {},\n onClose,\n open = false,\n PaperProps = {},\n SlideProps,\n // eslint-disable-next-line react/prop-types\n TransitionComponent,\n transitionDuration = defaultTransitionDuration,\n variant = 'temporary',\n slots = {},\n slotProps = {},\n ...other\n } = props;\n\n // Let's assume that the Drawer will always be rendered on user space.\n // We use this state is order to skip the appear transition during the\n // initial mount of the component.\n const mounted = React.useRef(false);\n React.useEffect(() => {\n mounted.current = true;\n }, []);\n const anchorInvariant = getAnchor({\n direction: isRtl ? 'rtl' : 'ltr'\n }, anchorProp);\n const anchor = anchorProp;\n const ownerState = {\n ...props,\n anchor,\n elevation,\n open,\n variant,\n ...other\n };\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots: {\n transition: TransitionComponent,\n ...slots\n },\n slotProps: {\n paper: PaperProps,\n transition: SlideProps,\n ...slotProps,\n backdrop: mergeSlotProps(slotProps.backdrop || {\n ...BackdropProps,\n ...BackdropPropsProp\n }, {\n transitionDuration\n })\n }\n };\n const [RootSlot, rootSlotProps] = useSlot('root', {\n ref,\n elementType: DrawerRoot,\n className: clsx(classes.root, classes.modal, className),\n shouldForwardComponentProp: true,\n ownerState,\n externalForwardedProps: {\n ...externalForwardedProps,\n ...other,\n ...ModalProps\n },\n additionalProps: {\n open,\n onClose,\n hideBackdrop,\n slots: {\n backdrop: externalForwardedProps.slots.backdrop\n },\n slotProps: {\n backdrop: externalForwardedProps.slotProps.backdrop\n }\n }\n });\n const [PaperSlot, paperSlotProps] = useSlot('paper', {\n elementType: DrawerPaper,\n shouldForwardComponentProp: true,\n className: clsx(classes.paper, PaperProps.className),\n ownerState,\n externalForwardedProps,\n additionalProps: {\n elevation: variant === 'temporary' ? elevation : 0,\n square: true\n }\n });\n const [DockedSlot, dockedSlotProps] = useSlot('docked', {\n elementType: DrawerDockedRoot,\n ref,\n className: clsx(classes.root, classes.docked, className),\n ownerState,\n externalForwardedProps,\n additionalProps: other // pass `other` here because `DockedSlot` is also a root slot for some variants\n });\n const [TransitionSlot, transitionSlotProps] = useSlot('transition', {\n elementType: Slide,\n ownerState,\n externalForwardedProps,\n additionalProps: {\n in: open,\n direction: oppositeDirection[anchorInvariant],\n timeout: transitionDuration,\n appear: mounted.current\n }\n });\n const drawer = /*#__PURE__*/_jsx(PaperSlot, {\n ...paperSlotProps,\n children: children\n });\n if (variant === 'permanent') {\n return /*#__PURE__*/_jsx(DockedSlot, {\n ...dockedSlotProps,\n children: drawer\n });\n }\n const slidingDrawer = /*#__PURE__*/_jsx(TransitionSlot, {\n ...transitionSlotProps,\n children: drawer\n });\n if (variant === 'persistent') {\n return /*#__PURE__*/_jsx(DockedSlot, {\n ...dockedSlotProps,\n children: slidingDrawer\n });\n }\n\n // variant === temporary\n return /*#__PURE__*/_jsx(RootSlot, {\n ...rootSlotProps,\n children: slidingDrawer\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Drawer.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Side from which the drawer will appear.\n * @default 'left'\n */\n anchor: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),\n /**\n * @ignore\n */\n BackdropProps: PropTypes.object,\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The elevation of the drawer.\n * @default 16\n */\n elevation: integerPropType,\n /**\n * If `true`, the backdrop is not rendered.\n * @default false\n */\n hideBackdrop: PropTypes.bool,\n /**\n * Props applied to the [`Modal`](https://mui.com/material-ui/api/modal/) element.\n * @default {}\n */\n ModalProps: PropTypes.object,\n /**\n * Callback fired when the component requests to be closed.\n * The `reason` parameter can optionally be used to control the response to `onClose`.\n *\n * @param {object} event The event source of the callback.\n * @param {string} reason Can be: `\"escapeKeyDown\"`, `\"backdropClick\"`.\n */\n onClose: PropTypes.func,\n /**\n * If `true`, the component is shown.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.\n * @deprecated use the `slotProps.paper` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n * @default {}\n */\n PaperProps: PropTypes.object,\n /**\n * Props applied to the [`Slide`](https://mui.com/material-ui/api/slide/) element.\n * @deprecated use the `slotProps.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n SlideProps: PropTypes.object,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n docked: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n paper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n backdrop: PropTypes.elementType,\n docked: PropTypes.elementType,\n paper: PropTypes.elementType,\n root: PropTypes.elementType,\n transition: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n * @default {\n * enter: theme.transitions.duration.enteringScreen,\n * exit: theme.transitions.duration.leavingScreen,\n * }\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n /**\n * The variant to use.\n * @default 'temporary'\n */\n variant: PropTypes.oneOf(['permanent', 'persistent', 'temporary'])\n} : void 0;\nexport default Drawer;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getFabUtilityClass(slot) {\n return generateUtilityClass('MuiFab', slot);\n}\nconst fabClasses = generateUtilityClasses('MuiFab', ['root', 'primary', 'secondary', 'extended', 'circular', 'focusVisible', 'disabled', 'colorInherit', 'sizeSmall', 'sizeMedium', 'sizeLarge', 'info', 'error', 'warning', 'success']);\nexport default fabClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport fabClasses, { getFabUtilityClass } from \"./fabClasses.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n color,\n variant,\n classes,\n size\n } = ownerState;\n const slots = {\n root: ['root', variant, `size${capitalize(size)}`, color === 'inherit' ? 'colorInherit' : color]\n };\n const composedClasses = composeClasses(slots, getFabUtilityClass, classes);\n return {\n ...classes,\n // forward the focused, disabled, etc. classes to the ButtonBase\n ...composedClasses\n };\n};\nconst FabRoot = styled(ButtonBase, {\n name: 'MuiFab',\n slot: 'Root',\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant], styles[`size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, styles[capitalize(ownerState.size)], styles[ownerState.color]];\n }\n})(memoTheme(({\n theme\n}) => ({\n ...theme.typography.button,\n minHeight: 36,\n transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {\n duration: theme.transitions.duration.short\n }),\n borderRadius: '50%',\n padding: 0,\n minWidth: 0,\n width: 56,\n height: 56,\n zIndex: (theme.vars || theme).zIndex.fab,\n boxShadow: (theme.vars || theme).shadows[6],\n '&:active': {\n boxShadow: (theme.vars || theme).shadows[12]\n },\n color: theme.vars ? theme.vars.palette.grey[900] : theme.palette.getContrastText?.(theme.palette.grey[300]),\n backgroundColor: (theme.vars || theme).palette.grey[300],\n '&:hover': {\n backgroundColor: (theme.vars || theme).palette.grey.A100,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: (theme.vars || theme).palette.grey[300]\n },\n textDecoration: 'none'\n },\n [`&.${fabClasses.focusVisible}`]: {\n boxShadow: (theme.vars || theme).shadows[6]\n },\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n width: 40,\n height: 40\n }\n }, {\n props: {\n size: 'medium'\n },\n style: {\n width: 48,\n height: 48\n }\n }, {\n props: {\n variant: 'extended'\n },\n style: {\n borderRadius: 48 / 2,\n padding: '0 16px',\n width: 'auto',\n minHeight: 'auto',\n minWidth: 48,\n height: 48\n }\n }, {\n props: {\n variant: 'extended',\n size: 'small'\n },\n style: {\n width: 'auto',\n padding: '0 8px',\n borderRadius: 34 / 2,\n minWidth: 34,\n height: 34\n }\n }, {\n props: {\n variant: 'extended',\n size: 'medium'\n },\n style: {\n width: 'auto',\n padding: '0 16px',\n borderRadius: 40 / 2,\n minWidth: 40,\n height: 40\n }\n }, {\n props: {\n color: 'inherit'\n },\n style: {\n color: 'inherit'\n }\n }]\n})), memoTheme(({\n theme\n}) => ({\n variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['dark', 'contrastText'])) // check all the used fields in the style below\n .map(([color]) => ({\n props: {\n color\n },\n style: {\n color: (theme.vars || theme).palette[color].contrastText,\n backgroundColor: (theme.vars || theme).palette[color].main,\n '&:hover': {\n backgroundColor: (theme.vars || theme).palette[color].dark,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: (theme.vars || theme).palette[color].main\n }\n }\n }\n }))]\n})), memoTheme(({\n theme\n}) => ({\n [`&.${fabClasses.disabled}`]: {\n color: (theme.vars || theme).palette.action.disabled,\n boxShadow: (theme.vars || theme).shadows[0],\n backgroundColor: (theme.vars || theme).palette.action.disabledBackground\n }\n})));\nconst Fab = /*#__PURE__*/React.forwardRef(function Fab(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiFab'\n });\n const {\n children,\n className,\n color = 'default',\n component = 'button',\n disabled = false,\n disableFocusRipple = false,\n focusVisibleClassName,\n size = 'large',\n variant = 'circular',\n ...other\n } = props;\n const ownerState = {\n ...props,\n color,\n component,\n disabled,\n disableFocusRipple,\n size,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(FabRoot, {\n className: clsx(classes.root, className),\n component: component,\n disabled: disabled,\n focusRipple: !disableFocusRipple,\n focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),\n ownerState: ownerState,\n ref: ref,\n ...other,\n classes: classes,\n children: children\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Fab.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'default'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the keyboard focus ripple is disabled.\n * @default false\n */\n disableFocusRipple: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n */\n disableRipple: PropTypes.bool,\n /**\n * @ignore\n */\n focusVisibleClassName: PropTypes.string,\n /**\n * The URL to link to when the button is clicked.\n * If defined, an `a` element will be used as the root node.\n */\n href: PropTypes.string,\n /**\n * The size of the component.\n * `small` is equivalent to the dense button styling.\n * @default 'large'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The variant to use.\n * @default 'circular'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['circular', 'extended']), PropTypes.string])\n} : void 0;\nexport default Fab;","'use client';\n\nimport * as React from 'react';\nimport deepmerge from '@mui/utils/deepmerge';\nimport refType from '@mui/utils/refType';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport InputBase from \"../InputBase/index.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport filledInputClasses, { getFilledInputUtilityClass } from \"./filledInputClasses.js\";\nimport { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot, InputBaseInput } from \"../InputBase/InputBase.js\";\nimport { capitalize } from \"../utils/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disableUnderline,\n startAdornment,\n endAdornment,\n size,\n hiddenLabel,\n multiline\n } = ownerState;\n const slots = {\n root: ['root', !disableUnderline && 'underline', startAdornment && 'adornedStart', endAdornment && 'adornedEnd', size === 'small' && `size${capitalize(size)}`, hiddenLabel && 'hiddenLabel', multiline && 'multiline'],\n input: ['input']\n };\n const composedClasses = composeClasses(slots, getFilledInputUtilityClass, classes);\n return {\n ...classes,\n // forward classes to the InputBase\n ...composedClasses\n };\n};\nconst FilledInputRoot = styled(InputBaseRoot, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiFilledInput',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [...inputBaseRootOverridesResolver(props, styles), !ownerState.disableUnderline && styles.underline];\n }\n})(memoTheme(({\n theme\n}) => {\n const light = theme.palette.mode === 'light';\n const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';\n const backgroundColor = light ? 'rgba(0, 0, 0, 0.06)' : 'rgba(255, 255, 255, 0.09)';\n const hoverBackground = light ? 'rgba(0, 0, 0, 0.09)' : 'rgba(255, 255, 255, 0.13)';\n const disabledBackground = light ? 'rgba(0, 0, 0, 0.12)' : 'rgba(255, 255, 255, 0.12)';\n return {\n position: 'relative',\n backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor,\n borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,\n borderTopRightRadius: (theme.vars || theme).shape.borderRadius,\n transition: theme.transitions.create('background-color', {\n duration: theme.transitions.duration.shorter,\n easing: theme.transitions.easing.easeOut\n }),\n '&:hover': {\n backgroundColor: theme.vars ? theme.vars.palette.FilledInput.hoverBg : hoverBackground,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor\n }\n },\n [`&.${filledInputClasses.focused}`]: {\n backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor\n },\n [`&.${filledInputClasses.disabled}`]: {\n backgroundColor: theme.vars ? theme.vars.palette.FilledInput.disabledBg : disabledBackground\n },\n variants: [{\n props: ({\n ownerState\n }) => !ownerState.disableUnderline,\n style: {\n '&::after': {\n left: 0,\n bottom: 0,\n content: '\"\"',\n position: 'absolute',\n right: 0,\n transform: 'scaleX(0)',\n transition: theme.transitions.create('transform', {\n duration: theme.transitions.duration.shorter,\n easing: theme.transitions.easing.easeOut\n }),\n pointerEvents: 'none' // Transparent to the hover style.\n },\n [`&.${filledInputClasses.focused}:after`]: {\n // translateX(0) is a workaround for Safari transform scale bug\n // See https://github.com/mui/material-ui/issues/31766\n transform: 'scaleX(1) translateX(0)'\n },\n [`&.${filledInputClasses.error}`]: {\n '&::before, &::after': {\n borderBottomColor: (theme.vars || theme).palette.error.main\n }\n },\n '&::before': {\n borderBottom: `1px solid ${theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})` : bottomLineColor}`,\n left: 0,\n bottom: 0,\n content: '\"\\\\00a0\"',\n position: 'absolute',\n right: 0,\n transition: theme.transitions.create('border-bottom-color', {\n duration: theme.transitions.duration.shorter\n }),\n pointerEvents: 'none' // Transparent to the hover style.\n },\n [`&:hover:not(.${filledInputClasses.disabled}, .${filledInputClasses.error}):before`]: {\n borderBottom: `1px solid ${(theme.vars || theme).palette.text.primary}`\n },\n [`&.${filledInputClasses.disabled}:before`]: {\n borderBottomStyle: 'dotted'\n }\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()) // check all the used fields in the style below\n .map(([color]) => ({\n props: {\n disableUnderline: false,\n color\n },\n style: {\n '&::after': {\n borderBottom: `2px solid ${(theme.vars || theme).palette[color]?.main}`\n }\n }\n })), {\n props: ({\n ownerState\n }) => ownerState.startAdornment,\n style: {\n paddingLeft: 12\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.endAdornment,\n style: {\n paddingRight: 12\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.multiline,\n style: {\n padding: '25px 12px 8px'\n }\n }, {\n props: ({\n ownerState,\n size\n }) => ownerState.multiline && size === 'small',\n style: {\n paddingTop: 21,\n paddingBottom: 4\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.multiline && ownerState.hiddenLabel,\n style: {\n paddingTop: 16,\n paddingBottom: 17\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.multiline && ownerState.hiddenLabel && ownerState.size === 'small',\n style: {\n paddingTop: 8,\n paddingBottom: 9\n }\n }]\n };\n}));\nconst FilledInputInput = styled(InputBaseInput, {\n name: 'MuiFilledInput',\n slot: 'Input',\n overridesResolver: inputBaseInputOverridesResolver\n})(memoTheme(({\n theme\n}) => ({\n paddingTop: 25,\n paddingRight: 12,\n paddingBottom: 8,\n paddingLeft: 12,\n ...(!theme.vars && {\n '&:-webkit-autofill': {\n WebkitBoxShadow: theme.palette.mode === 'light' ? null : '0 0 0 100px #266798 inset',\n WebkitTextFillColor: theme.palette.mode === 'light' ? null : '#fff',\n caretColor: theme.palette.mode === 'light' ? null : '#fff',\n borderTopLeftRadius: 'inherit',\n borderTopRightRadius: 'inherit'\n }\n }),\n ...(theme.vars && {\n '&:-webkit-autofill': {\n borderTopLeftRadius: 'inherit',\n borderTopRightRadius: 'inherit'\n },\n [theme.getColorSchemeSelector('dark')]: {\n '&:-webkit-autofill': {\n WebkitBoxShadow: '0 0 0 100px #266798 inset',\n WebkitTextFillColor: '#fff',\n caretColor: '#fff'\n }\n }\n }),\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n paddingTop: 21,\n paddingBottom: 4\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.hiddenLabel,\n style: {\n paddingTop: 16,\n paddingBottom: 17\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.startAdornment,\n style: {\n paddingLeft: 0\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.endAdornment,\n style: {\n paddingRight: 0\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.hiddenLabel && ownerState.size === 'small',\n style: {\n paddingTop: 8,\n paddingBottom: 9\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.multiline,\n style: {\n paddingTop: 0,\n paddingBottom: 0,\n paddingLeft: 0,\n paddingRight: 0\n }\n }]\n})));\nconst FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiFilledInput'\n });\n const {\n disableUnderline = false,\n components = {},\n componentsProps: componentsPropsProp,\n fullWidth = false,\n hiddenLabel,\n // declare here to prevent spreading to DOM\n inputComponent = 'input',\n multiline = false,\n slotProps,\n slots = {},\n type = 'text',\n ...other\n } = props;\n const ownerState = {\n ...props,\n disableUnderline,\n fullWidth,\n inputComponent,\n multiline,\n type\n };\n const classes = useUtilityClasses(props);\n const filledInputComponentsProps = {\n root: {\n ownerState\n },\n input: {\n ownerState\n }\n };\n const componentsProps = slotProps ?? componentsPropsProp ? deepmerge(filledInputComponentsProps, slotProps ?? componentsPropsProp) : filledInputComponentsProps;\n const RootSlot = slots.root ?? components.Root ?? FilledInputRoot;\n const InputSlot = slots.input ?? components.Input ?? FilledInputInput;\n return /*#__PURE__*/_jsx(InputBase, {\n slots: {\n root: RootSlot,\n input: InputSlot\n },\n slotProps: componentsProps,\n fullWidth: fullWidth,\n inputComponent: inputComponent,\n multiline: multiline,\n ref: ref,\n type: type,\n ...other,\n classes: classes\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? FilledInput.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * This prop helps users to fill forms faster, especially on mobile devices.\n * The name can be confusing, as it's more like an autofill.\n * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).\n */\n autoComplete: PropTypes.string,\n /**\n * If `true`, the `input` element is focused during the first mount.\n */\n autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),\n /**\n * The components used for each slot inside.\n *\n * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n components: PropTypes.shape({\n Input: PropTypes.elementType,\n Root: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n input: PropTypes.object,\n root: PropTypes.object\n }),\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.any,\n /**\n * If `true`, the component is disabled.\n * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the input will not have an underline.\n * @default false\n */\n disableUnderline: PropTypes.bool,\n /**\n * End `InputAdornment` for this component.\n */\n endAdornment: PropTypes.node,\n /**\n * If `true`, the `input` will indicate an error.\n * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n */\n error: PropTypes.bool,\n /**\n * If `true`, the `input` will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * If `true`, the label is hidden.\n * This is used to increase density for a `FilledInput`.\n * Be sure to add `aria-label` to the `input` element.\n * @default false\n */\n hiddenLabel: PropTypes.bool,\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n /**\n * The component used for the `input` element.\n * Either a string to use a HTML element or a component.\n * @default 'input'\n */\n inputComponent: PropTypes.elementType,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n * @default {}\n */\n inputProps: PropTypes.object,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * If `dense`, will adjust vertical spacing. This is normally obtained via context from\n * FormControl.\n * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.\n */\n margin: PropTypes.oneOf(['dense', 'none']),\n /**\n * Maximum number of rows to display when multiline option is set to true.\n */\n maxRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * Minimum number of rows to display when multiline option is set to true.\n */\n minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * If `true`, a [TextareaAutosize](https://mui.com/material-ui/react-textarea-autosize/) element is rendered.\n * @default false\n */\n multiline: PropTypes.bool,\n /**\n * Name attribute of the `input` element.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is changed.\n *\n * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (string).\n */\n onChange: PropTypes.func,\n /**\n * The short hint displayed in the `input` before the user enters a value.\n */\n placeholder: PropTypes.string,\n /**\n * It prevents the user from changing the value of the field\n * (not from interacting with the field).\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, the `input` element is required.\n * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n */\n required: PropTypes.bool,\n /**\n * Number of rows to display when multiline option is set to true.\n */\n rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slotProps: PropTypes.shape({\n input: PropTypes.object,\n root: PropTypes.object\n }),\n /**\n * The components used for each slot inside.\n *\n * This prop is an alias for the `components` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slots: PropTypes.shape({\n input: PropTypes.elementType,\n root: PropTypes.elementType\n }),\n /**\n * Start `InputAdornment` for this component.\n */\n startAdornment: PropTypes.node,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).\n * @default 'text'\n */\n type: PropTypes.string,\n /**\n * The value of the `input` element, required for a controlled component.\n */\n value: PropTypes.any\n} : void 0;\nFilledInput.muiName = 'Input';\nexport default FilledInput;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getFormControlUtilityClasses(slot) {\n return generateUtilityClass('MuiFormControl', slot);\n}\nconst formControlClasses = generateUtilityClasses('MuiFormControl', ['root', 'marginNone', 'marginNormal', 'marginDense', 'fullWidth', 'disabled']);\nexport default formControlClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { isFilled, isAdornedStart } from \"../InputBase/utils.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport isMuiElement from \"../utils/isMuiElement.js\";\nimport FormControlContext from \"./FormControlContext.js\";\nimport { getFormControlUtilityClasses } from \"./formControlClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n margin,\n fullWidth\n } = ownerState;\n const slots = {\n root: ['root', margin !== 'none' && `margin${capitalize(margin)}`, fullWidth && 'fullWidth']\n };\n return composeClasses(slots, getFormControlUtilityClasses, classes);\n};\nconst FormControlRoot = styled('div', {\n name: 'MuiFormControl',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`margin${capitalize(ownerState.margin)}`], ownerState.fullWidth && styles.fullWidth];\n }\n})({\n display: 'inline-flex',\n flexDirection: 'column',\n position: 'relative',\n // Reset fieldset default style.\n minWidth: 0,\n padding: 0,\n margin: 0,\n border: 0,\n verticalAlign: 'top',\n // Fix alignment issue on Safari.\n variants: [{\n props: {\n margin: 'normal'\n },\n style: {\n marginTop: 16,\n marginBottom: 8\n }\n }, {\n props: {\n margin: 'dense'\n },\n style: {\n marginTop: 8,\n marginBottom: 4\n }\n }, {\n props: {\n fullWidth: true\n },\n style: {\n width: '100%'\n }\n }]\n});\n\n/**\n * Provides context such as filled/focused/error/required for form inputs.\n * Relying on the context provides high flexibility and ensures that the state always stays\n * consistent across the children of the `FormControl`.\n * This context is used by the following components:\n *\n * - FormLabel\n * - FormHelperText\n * - Input\n * - InputLabel\n *\n * You can find one composition example below and more going to [the demos](/material-ui/react-text-field/#components).\n *\n * ```jsx\n * <FormControl>\n * <InputLabel htmlFor=\"my-input\">Email address</InputLabel>\n * <Input id=\"my-input\" aria-describedby=\"my-helper-text\" />\n * <FormHelperText id=\"my-helper-text\">We'll never share your email.</FormHelperText>\n * </FormControl>\n * ```\n *\n * ⚠️ Only one `InputBase` can be used within a FormControl because it creates visual inconsistencies.\n * For instance, only one input can be focused at the same time, the state shouldn't be shared.\n */\nconst FormControl = /*#__PURE__*/React.forwardRef(function FormControl(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiFormControl'\n });\n const {\n children,\n className,\n color = 'primary',\n component = 'div',\n disabled = false,\n error = false,\n focused: visuallyFocused,\n fullWidth = false,\n hiddenLabel = false,\n margin = 'none',\n required = false,\n size = 'medium',\n variant = 'outlined',\n ...other\n } = props;\n const ownerState = {\n ...props,\n color,\n component,\n disabled,\n error,\n fullWidth,\n hiddenLabel,\n margin,\n required,\n size,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n const [adornedStart, setAdornedStart] = React.useState(() => {\n // We need to iterate through the children and find the Input in order\n // to fully support server-side rendering.\n let initialAdornedStart = false;\n if (children) {\n React.Children.forEach(children, child => {\n if (!isMuiElement(child, ['Input', 'Select'])) {\n return;\n }\n const input = isMuiElement(child, ['Select']) ? child.props.input : child;\n if (input && isAdornedStart(input.props)) {\n initialAdornedStart = true;\n }\n });\n }\n return initialAdornedStart;\n });\n const [filled, setFilled] = React.useState(() => {\n // We need to iterate through the children and find the Input in order\n // to fully support server-side rendering.\n let initialFilled = false;\n if (children) {\n React.Children.forEach(children, child => {\n if (!isMuiElement(child, ['Input', 'Select'])) {\n return;\n }\n if (isFilled(child.props, true) || isFilled(child.props.inputProps, true)) {\n initialFilled = true;\n }\n });\n }\n return initialFilled;\n });\n const [focusedState, setFocused] = React.useState(false);\n if (disabled && focusedState) {\n setFocused(false);\n }\n const focused = visuallyFocused !== undefined && !disabled ? visuallyFocused : focusedState;\n let registerEffect;\n const registeredInput = React.useRef(false);\n if (process.env.NODE_ENV !== 'production') {\n registerEffect = () => {\n if (registeredInput.current) {\n console.error(['MUI: There are multiple `InputBase` components inside a FormControl.', 'This creates visual inconsistencies, only use one `InputBase`.'].join('\\n'));\n }\n registeredInput.current = true;\n return () => {\n registeredInput.current = false;\n };\n };\n }\n const onFilled = React.useCallback(() => {\n setFilled(true);\n }, []);\n const onEmpty = React.useCallback(() => {\n setFilled(false);\n }, []);\n const childContext = React.useMemo(() => {\n return {\n adornedStart,\n setAdornedStart,\n color,\n disabled,\n error,\n filled,\n focused,\n fullWidth,\n hiddenLabel,\n size,\n onBlur: () => {\n setFocused(false);\n },\n onFocus: () => {\n setFocused(true);\n },\n onEmpty,\n onFilled,\n registerEffect,\n required,\n variant\n };\n }, [adornedStart, color, disabled, error, filled, focused, fullWidth, hiddenLabel, registerEffect, onEmpty, onFilled, required, size, variant]);\n return /*#__PURE__*/_jsx(FormControlContext.Provider, {\n value: childContext,\n children: /*#__PURE__*/_jsx(FormControlRoot, {\n as: component,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ref: ref,\n ...other,\n children: children\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? FormControl.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, the label, input and helper text should be displayed in a disabled state.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the label is displayed in an error state.\n * @default false\n */\n error: PropTypes.bool,\n /**\n * If `true`, the component is displayed in focused state.\n */\n focused: PropTypes.bool,\n /**\n * If `true`, the component will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * If `true`, the label is hidden.\n * This is used to increase density for a `FilledInput`.\n * Be sure to add `aria-label` to the `input` element.\n * @default false\n */\n hiddenLabel: PropTypes.bool,\n /**\n * If `dense` or `normal`, will adjust vertical spacing of this and contained components.\n * @default 'none'\n */\n margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n /**\n * If `true`, the label will indicate that the `input` is required.\n * @default false\n */\n required: PropTypes.bool,\n /**\n * The size of the component.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The variant to use.\n * @default 'outlined'\n */\n variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport default FormControl;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getFormControlLabelUtilityClasses(slot) {\n return generateUtilityClass('MuiFormControlLabel', slot);\n}\nconst formControlLabelClasses = generateUtilityClasses('MuiFormControlLabel', ['root', 'labelPlacementStart', 'labelPlacementTop', 'labelPlacementBottom', 'disabled', 'label', 'error', 'required', 'asterisk']);\nexport default formControlLabelClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useFormControl } from \"../FormControl/index.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Typography from \"../Typography/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport formControlLabelClasses, { getFormControlLabelUtilityClasses } from \"./formControlLabelClasses.js\";\nimport formControlState from \"../FormControl/formControlState.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disabled,\n labelPlacement,\n error,\n required\n } = ownerState;\n const slots = {\n root: ['root', disabled && 'disabled', `labelPlacement${capitalize(labelPlacement)}`, error && 'error', required && 'required'],\n label: ['label', disabled && 'disabled'],\n asterisk: ['asterisk', error && 'error']\n };\n return composeClasses(slots, getFormControlLabelUtilityClasses, classes);\n};\nexport const FormControlLabelRoot = styled('label', {\n name: 'MuiFormControlLabel',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [{\n [`& .${formControlLabelClasses.label}`]: styles.label\n }, styles.root, styles[`labelPlacement${capitalize(ownerState.labelPlacement)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n display: 'inline-flex',\n alignItems: 'center',\n cursor: 'pointer',\n // For correct alignment with the text.\n verticalAlign: 'middle',\n WebkitTapHighlightColor: 'transparent',\n marginLeft: -11,\n marginRight: 16,\n // used for row presentation of radio/checkbox\n [`&.${formControlLabelClasses.disabled}`]: {\n cursor: 'default'\n },\n [`& .${formControlLabelClasses.label}`]: {\n [`&.${formControlLabelClasses.disabled}`]: {\n color: (theme.vars || theme).palette.text.disabled\n }\n },\n variants: [{\n props: {\n labelPlacement: 'start'\n },\n style: {\n flexDirection: 'row-reverse',\n marginRight: -11\n }\n }, {\n props: {\n labelPlacement: 'top'\n },\n style: {\n flexDirection: 'column-reverse'\n }\n }, {\n props: {\n labelPlacement: 'bottom'\n },\n style: {\n flexDirection: 'column'\n }\n }, {\n props: ({\n labelPlacement\n }) => labelPlacement === 'start' || labelPlacement === 'top' || labelPlacement === 'bottom',\n style: {\n marginLeft: 16 // used for row presentation of radio/checkbox\n }\n }]\n})));\nconst AsteriskComponent = styled('span', {\n name: 'MuiFormControlLabel',\n slot: 'Asterisk',\n overridesResolver: (props, styles) => styles.asterisk\n})(memoTheme(({\n theme\n}) => ({\n [`&.${formControlLabelClasses.error}`]: {\n color: (theme.vars || theme).palette.error.main\n }\n})));\n\n/**\n * Drop-in replacement of the `Radio`, `Switch` and `Checkbox` component.\n * Use this component if you want to display an extra label.\n */\nconst FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiFormControlLabel'\n });\n const {\n checked,\n className,\n componentsProps = {},\n control,\n disabled: disabledProp,\n disableTypography,\n inputRef,\n label: labelProp,\n labelPlacement = 'end',\n name,\n onChange,\n required: requiredProp,\n slots = {},\n slotProps = {},\n value,\n ...other\n } = props;\n const muiFormControl = useFormControl();\n const disabled = disabledProp ?? control.props.disabled ?? muiFormControl?.disabled;\n const required = requiredProp ?? control.props.required;\n const controlProps = {\n disabled,\n required\n };\n ['checked', 'name', 'onChange', 'value', 'inputRef'].forEach(key => {\n if (typeof control.props[key] === 'undefined' && typeof props[key] !== 'undefined') {\n controlProps[key] = props[key];\n }\n });\n const fcs = formControlState({\n props,\n muiFormControl,\n states: ['error']\n });\n const ownerState = {\n ...props,\n disabled,\n labelPlacement,\n required,\n error: fcs.error\n };\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots,\n slotProps: {\n ...componentsProps,\n ...slotProps\n }\n };\n const [TypographySlot, typographySlotProps] = useSlot('typography', {\n elementType: Typography,\n externalForwardedProps,\n ownerState\n });\n let label = labelProp;\n if (label != null && label.type !== Typography && !disableTypography) {\n label = /*#__PURE__*/_jsx(TypographySlot, {\n component: \"span\",\n ...typographySlotProps,\n className: clsx(classes.label, typographySlotProps?.className),\n children: label\n });\n }\n return /*#__PURE__*/_jsxs(FormControlLabelRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n ...other,\n children: [/*#__PURE__*/React.cloneElement(control, controlProps), required ? /*#__PURE__*/_jsxs(\"div\", {\n children: [label, /*#__PURE__*/_jsxs(AsteriskComponent, {\n ownerState: ownerState,\n \"aria-hidden\": true,\n className: classes.asterisk,\n children: [\"\\u2009\", '*']\n })]\n }) : label]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? FormControlLabel.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If `true`, the component appears selected.\n */\n checked: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The props used for each slot inside.\n * @default {}\n * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n componentsProps: PropTypes.shape({\n typography: PropTypes.object\n }),\n /**\n * A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.\n */\n control: PropTypes.element.isRequired,\n /**\n * If `true`, the control is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the label is rendered as it is passed without an additional typography node.\n */\n disableTypography: PropTypes.bool,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * A text or an element to be used in an enclosing label element.\n */\n label: PropTypes.node,\n /**\n * The position of the label.\n * @default 'end'\n */\n labelPlacement: PropTypes.oneOf(['bottom', 'end', 'start', 'top']),\n /**\n * @ignore\n */\n name: PropTypes.string,\n /**\n * Callback fired when the state is changed.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n */\n onChange: PropTypes.func,\n /**\n * If `true`, the label will indicate that the `input` is required.\n */\n required: PropTypes.bool,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n typography: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n typography: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The value of the component.\n */\n value: PropTypes.any\n} : void 0;\nexport default FormControlLabel;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getFormGroupUtilityClass(slot) {\n return generateUtilityClass('MuiFormGroup', slot);\n}\nconst formGroupClasses = generateUtilityClasses('MuiFormGroup', ['root', 'row', 'error']);\nexport default formGroupClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getFormGroupUtilityClass } from \"./formGroupClasses.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport formControlState from \"../FormControl/formControlState.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n row,\n error\n } = ownerState;\n const slots = {\n root: ['root', row && 'row', error && 'error']\n };\n return composeClasses(slots, getFormGroupUtilityClass, classes);\n};\nconst FormGroupRoot = styled('div', {\n name: 'MuiFormGroup',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.row && styles.row];\n }\n})({\n display: 'flex',\n flexDirection: 'column',\n flexWrap: 'wrap',\n variants: [{\n props: {\n row: true\n },\n style: {\n flexDirection: 'row'\n }\n }]\n});\n\n/**\n * `FormGroup` wraps controls such as `Checkbox` and `Switch`.\n * It provides compact row layout.\n * For the `Radio`, you should be using the `RadioGroup` component instead of this one.\n */\nconst FormGroup = /*#__PURE__*/React.forwardRef(function FormGroup(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiFormGroup'\n });\n const {\n className,\n row = false,\n ...other\n } = props;\n const muiFormControl = useFormControl();\n const fcs = formControlState({\n props,\n muiFormControl,\n states: ['error']\n });\n const ownerState = {\n ...props,\n row,\n error: fcs.error\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(FormGroupRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? FormGroup.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * Display group of elements in a compact row.\n * @default false\n */\n row: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default FormGroup;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getFormHelperTextUtilityClasses(slot) {\n return generateUtilityClass('MuiFormHelperText', slot);\n}\nconst formHelperTextClasses = generateUtilityClasses('MuiFormHelperText', ['root', 'error', 'disabled', 'sizeSmall', 'sizeMedium', 'contained', 'focused', 'filled', 'required']);\nexport default formHelperTextClasses;","'use client';\n\nvar _span;\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport formControlState from \"../FormControl/formControlState.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport formHelperTextClasses, { getFormHelperTextUtilityClasses } from \"./formHelperTextClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n contained,\n size,\n disabled,\n error,\n filled,\n focused,\n required\n } = ownerState;\n const slots = {\n root: ['root', disabled && 'disabled', error && 'error', size && `size${capitalize(size)}`, contained && 'contained', focused && 'focused', filled && 'filled', required && 'required']\n };\n return composeClasses(slots, getFormHelperTextUtilityClasses, classes);\n};\nconst FormHelperTextRoot = styled('p', {\n name: 'MuiFormHelperText',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.size && styles[`size${capitalize(ownerState.size)}`], ownerState.contained && styles.contained, ownerState.filled && styles.filled];\n }\n})(memoTheme(({\n theme\n}) => ({\n color: (theme.vars || theme).palette.text.secondary,\n ...theme.typography.caption,\n textAlign: 'left',\n marginTop: 3,\n marginRight: 0,\n marginBottom: 0,\n marginLeft: 0,\n [`&.${formHelperTextClasses.disabled}`]: {\n color: (theme.vars || theme).palette.text.disabled\n },\n [`&.${formHelperTextClasses.error}`]: {\n color: (theme.vars || theme).palette.error.main\n },\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n marginTop: 4\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.contained,\n style: {\n marginLeft: 14,\n marginRight: 14\n }\n }]\n})));\nconst FormHelperText = /*#__PURE__*/React.forwardRef(function FormHelperText(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiFormHelperText'\n });\n const {\n children,\n className,\n component = 'p',\n disabled,\n error,\n filled,\n focused,\n margin,\n required,\n variant,\n ...other\n } = props;\n const muiFormControl = useFormControl();\n const fcs = formControlState({\n props,\n muiFormControl,\n states: ['variant', 'size', 'disabled', 'error', 'filled', 'focused', 'required']\n });\n const ownerState = {\n ...props,\n component,\n contained: fcs.variant === 'filled' || fcs.variant === 'outlined',\n variant: fcs.variant,\n size: fcs.size,\n disabled: fcs.disabled,\n error: fcs.error,\n filled: fcs.filled,\n focused: fcs.focused,\n required: fcs.required\n };\n\n // This issue explains why this is required: https://github.com/mui/material-ui/issues/42184\n delete ownerState.ownerState;\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(FormHelperTextRoot, {\n as: component,\n className: clsx(classes.root, className),\n ref: ref,\n ...other,\n ownerState: ownerState,\n children: children === ' ' ? // notranslate needed while Google Translate will not fix zero-width space issue\n _span || (_span = /*#__PURE__*/_jsx(\"span\", {\n className: \"notranslate\",\n \"aria-hidden\": true,\n children: \"\\u200B\"\n })) : children\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? FormHelperText.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n *\n * If `' '` is provided, the component reserves one line height for displaying a future message.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, the helper text should be displayed in a disabled state.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, helper text should be displayed in an error state.\n */\n error: PropTypes.bool,\n /**\n * If `true`, the helper text should use filled classes key.\n */\n filled: PropTypes.bool,\n /**\n * If `true`, the helper text should use focused classes key.\n */\n focused: PropTypes.bool,\n /**\n * If `dense`, will adjust vertical spacing. This is normally obtained via context from\n * FormControl.\n */\n margin: PropTypes.oneOf(['dense']),\n /**\n * If `true`, the helper text should use required classes key.\n */\n required: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The variant to use.\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['filled', 'outlined', 'standard']), PropTypes.string])\n} : void 0;\nexport default FormHelperText;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getFormLabelUtilityClasses(slot) {\n return generateUtilityClass('MuiFormLabel', slot);\n}\nconst formLabelClasses = generateUtilityClasses('MuiFormLabel', ['root', 'colorSecondary', 'focused', 'disabled', 'error', 'filled', 'required', 'asterisk']);\nexport default formLabelClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport formControlState from \"../FormControl/formControlState.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport formLabelClasses, { getFormLabelUtilityClasses } from \"./formLabelClasses.js\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n color,\n focused,\n disabled,\n error,\n filled,\n required\n } = ownerState;\n const slots = {\n root: ['root', `color${capitalize(color)}`, disabled && 'disabled', error && 'error', filled && 'filled', focused && 'focused', required && 'required'],\n asterisk: ['asterisk', error && 'error']\n };\n return composeClasses(slots, getFormLabelUtilityClasses, classes);\n};\nexport const FormLabelRoot = styled('label', {\n name: 'MuiFormLabel',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.color === 'secondary' && styles.colorSecondary, ownerState.filled && styles.filled];\n }\n})(memoTheme(({\n theme\n}) => ({\n color: (theme.vars || theme).palette.text.secondary,\n ...theme.typography.body1,\n lineHeight: '1.4375em',\n padding: 0,\n position: 'relative',\n variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n [`&.${formLabelClasses.focused}`]: {\n color: (theme.vars || theme).palette[color].main\n }\n }\n })), {\n props: {},\n style: {\n [`&.${formLabelClasses.disabled}`]: {\n color: (theme.vars || theme).palette.text.disabled\n },\n [`&.${formLabelClasses.error}`]: {\n color: (theme.vars || theme).palette.error.main\n }\n }\n }]\n})));\nconst AsteriskComponent = styled('span', {\n name: 'MuiFormLabel',\n slot: 'Asterisk',\n overridesResolver: (props, styles) => styles.asterisk\n})(memoTheme(({\n theme\n}) => ({\n [`&.${formLabelClasses.error}`]: {\n color: (theme.vars || theme).palette.error.main\n }\n})));\nconst FormLabel = /*#__PURE__*/React.forwardRef(function FormLabel(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiFormLabel'\n });\n const {\n children,\n className,\n color,\n component = 'label',\n disabled,\n error,\n filled,\n focused,\n required,\n ...other\n } = props;\n const muiFormControl = useFormControl();\n const fcs = formControlState({\n props,\n muiFormControl,\n states: ['color', 'required', 'focused', 'disabled', 'error', 'filled']\n });\n const ownerState = {\n ...props,\n color: fcs.color || 'primary',\n component,\n disabled: fcs.disabled,\n error: fcs.error,\n filled: fcs.filled,\n focused: fcs.focused,\n required: fcs.required\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(FormLabelRoot, {\n as: component,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ref: ref,\n ...other,\n children: [children, fcs.required && /*#__PURE__*/_jsxs(AsteriskComponent, {\n ownerState: ownerState,\n \"aria-hidden\": true,\n className: classes.asterisk,\n children: [\"\\u2009\", '*']\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? FormLabel.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, the label should be displayed in a disabled state.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the label is displayed in an error state.\n */\n error: PropTypes.bool,\n /**\n * If `true`, the label should use filled classes key.\n */\n filled: PropTypes.bool,\n /**\n * If `true`, the input of this label is focused (used by `FormGroup` components).\n */\n focused: PropTypes.bool,\n /**\n * If `true`, the label will indicate that the `input` is required.\n */\n required: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default FormLabel;","'use client';\n\nimport PropTypes from 'prop-types';\nimport { createGrid } from '@mui/system/Grid';\nimport requirePropFactory from \"../utils/requirePropFactory.js\";\nimport { styled } from \"../styles/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport useTheme from \"../styles/useTheme.js\";\n/**\n *\n * Demos:\n *\n * - [Grid](https://mui.com/material-ui/react-grid/)\n *\n * API:\n *\n * - [Grid API](https://mui.com/material-ui/api/grid/)\n */\nconst Grid = createGrid({\n createStyledComponent: styled('div', {\n name: 'MuiGrid',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.container && styles.container];\n }\n }),\n componentName: 'MuiGrid',\n useThemeProps: inProps => useDefaultProps({\n props: inProps,\n name: 'MuiGrid'\n }),\n useTheme\n});\nprocess.env.NODE_ENV !== \"production\" ? Grid.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * The number of columns.\n * @default 12\n */\n columns: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),\n /**\n * Defines the horizontal space between the type `item` components.\n * It overrides the value of the `spacing` prop.\n */\n columnSpacing: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n /**\n * If `true`, the component will have the flex *container* behavior.\n * You should be wrapping *items* with a *container*.\n * @default false\n */\n container: PropTypes.bool,\n /**\n * Defines the `flex-direction` style property.\n * It is applied for all screen sizes.\n * @default 'row'\n */\n direction: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n /**\n * Defines the offset value for the type `item` components.\n */\n offset: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.string, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])), PropTypes.object]),\n /**\n * Defines the vertical space between the type `item` components.\n * It overrides the value of the `spacing` prop.\n */\n rowSpacing: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n /**\n * Defines the size of the the type `item` components.\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number])), PropTypes.object]),\n /**\n * Defines the space between the type `item` components.\n * It can only be used on a type `container` component.\n * @default 0\n */\n spacing: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n /**\n * @ignore\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * @internal\n * The level of the grid starts from `0` and increases when the grid nests\n * inside another grid. Nesting is defined as a container Grid being a direct\n * child of a container Grid.\n *\n * ```js\n * <Grid container> // level 0\n * <Grid container> // level 1\n * <Grid container> // level 2\n * ```\n *\n * Only consecutive grid is considered nesting. A grid container will start at\n * `0` if there are non-Grid container element above it.\n *\n * ```js\n * <Grid container> // level 0\n * <div>\n * <Grid container> // level 0\n * ```\n *\n * ```js\n * <Grid container> // level 0\n * <Grid>\n * <Grid container> // level 0\n * ```\n */\n unstable_level: PropTypes.number,\n /**\n * Defines the `flex-wrap` style property.\n * It's applied for all screen sizes.\n * @default 'wrap'\n */\n wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap'])\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n const Component = Grid;\n const requireProp = requirePropFactory('Grid', Component);\n // eslint-disable-next-line no-useless-concat\n Component['propTypes' + ''] = {\n // eslint-disable-next-line react/forbid-foreign-prop-types\n ...Component.propTypes,\n direction: requireProp('container'),\n spacing: requireProp('container'),\n wrap: requireProp('container')\n };\n}\nexport default Grid;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useTimeout from '@mui/utils/useTimeout';\nimport elementAcceptingRef from '@mui/utils/elementAcceptingRef';\nimport getReactElementRef from '@mui/utils/getReactElementRef';\nimport { Transition } from 'react-transition-group';\nimport { useTheme } from \"../zero-styled/index.js\";\nimport { getTransitionProps, reflow } from \"../transitions/utils.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getScale(value) {\n return `scale(${value}, ${value ** 2})`;\n}\nconst styles = {\n entering: {\n opacity: 1,\n transform: getScale(1)\n },\n entered: {\n opacity: 1,\n transform: 'none'\n }\n};\n\n/*\n TODO v6: remove\n Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.\n */\nconst isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\\/)15(.|_)4/i.test(navigator.userAgent);\n\n/**\n * The Grow transition is used by the [Tooltip](/material-ui/react-tooltip/) and\n * [Popover](/material-ui/react-popover/) components.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\nconst Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {\n const {\n addEndListener,\n appear = true,\n children,\n easing,\n in: inProp,\n onEnter,\n onEntered,\n onEntering,\n onExit,\n onExited,\n onExiting,\n style,\n timeout = 'auto',\n // eslint-disable-next-line react/prop-types\n TransitionComponent = Transition,\n ...other\n } = props;\n const timer = useTimeout();\n const autoTimeout = React.useRef();\n const theme = useTheme();\n const nodeRef = React.useRef(null);\n const handleRef = useForkRef(nodeRef, getReactElementRef(children), ref);\n const normalizedTransitionCallback = callback => maybeIsAppearing => {\n if (callback) {\n const node = nodeRef.current;\n\n // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n if (maybeIsAppearing === undefined) {\n callback(node);\n } else {\n callback(node, maybeIsAppearing);\n }\n }\n };\n const handleEntering = normalizedTransitionCallback(onEntering);\n const handleEnter = normalizedTransitionCallback((node, isAppearing) => {\n reflow(node); // So the animation always start from the start.\n\n const {\n duration: transitionDuration,\n delay,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'enter'\n });\n let duration;\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n node.style.transition = [theme.transitions.create('opacity', {\n duration,\n delay\n }), theme.transitions.create('transform', {\n duration: isWebKit154 ? duration : duration * 0.666,\n delay,\n easing: transitionTimingFunction\n })].join(',');\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n const handleEntered = normalizedTransitionCallback(onEntered);\n const handleExiting = normalizedTransitionCallback(onExiting);\n const handleExit = normalizedTransitionCallback(node => {\n const {\n duration: transitionDuration,\n delay,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'exit'\n });\n let duration;\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n node.style.transition = [theme.transitions.create('opacity', {\n duration,\n delay\n }), theme.transitions.create('transform', {\n duration: isWebKit154 ? duration : duration * 0.666,\n delay: isWebKit154 ? delay : delay || duration * 0.333,\n easing: transitionTimingFunction\n })].join(',');\n node.style.opacity = 0;\n node.style.transform = getScale(0.75);\n if (onExit) {\n onExit(node);\n }\n });\n const handleExited = normalizedTransitionCallback(onExited);\n const handleAddEndListener = next => {\n if (timeout === 'auto') {\n timer.start(autoTimeout.current || 0, next);\n }\n if (addEndListener) {\n // Old call signature before `react-transition-group` implemented `nodeRef`\n addEndListener(nodeRef.current, next);\n }\n };\n return /*#__PURE__*/_jsx(TransitionComponent, {\n appear: appear,\n in: inProp,\n nodeRef: nodeRef,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n addEndListener: handleAddEndListener,\n timeout: timeout === 'auto' ? null : timeout,\n ...other,\n children: (state, {\n ownerState,\n ...restChildProps\n }) => {\n return /*#__PURE__*/React.cloneElement(children, {\n style: {\n opacity: 0,\n transform: getScale(0.75),\n visibility: state === 'exited' && !inProp ? 'hidden' : undefined,\n ...styles[state],\n ...style,\n ...children.props.style\n },\n ref: handleRef,\n ...restChildProps\n });\n }\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Grow.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Add a custom transition end trigger. Called with the transitioning DOM\n * node and a done callback. Allows for more fine grained transition end\n * logic. Note: Timeouts are still used as a fallback if provided.\n */\n addEndListener: PropTypes.func,\n /**\n * Perform the enter transition when it first mounts if `in` is also `true`.\n * Set this to `false` to disable this behavior.\n * @default true\n */\n appear: PropTypes.bool,\n /**\n * A single child content element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * The transition timing function.\n * You may specify a single easing or a object containing enter and exit values.\n */\n easing: PropTypes.oneOfType([PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string\n }), PropTypes.string]),\n /**\n * If `true`, the component will transition in.\n */\n in: PropTypes.bool,\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n *\n * Set to 'auto' to automatically calculate transition time based on height.\n * @default 'auto'\n */\n timeout: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nif (Grow) {\n Grow.muiSupportAuto = true;\n}\nexport default Grow;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getImageListUtilityClass(slot) {\n return generateUtilityClass('MuiImageList', slot);\n}\nconst imageListClasses = generateUtilityClasses('MuiImageList', ['root', 'masonry', 'quilted', 'standard', 'woven']);\nexport default imageListClasses;","'use client';\n\nimport * as React from 'react';\n\n/**\n * @ignore - internal component.\n * @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}\n */\nconst ImageListContext = /*#__PURE__*/React.createContext({});\nif (process.env.NODE_ENV !== 'production') {\n ImageListContext.displayName = 'ImageListContext';\n}\nexport default ImageListContext;","'use client';\n\nimport composeClasses from '@mui/utils/composeClasses';\nimport integerPropType from '@mui/utils/integerPropType';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getImageListUtilityClass } from \"./imageListClasses.js\";\nimport ImageListContext from \"./ImageListContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n variant\n } = ownerState;\n const slots = {\n root: ['root', variant]\n };\n return composeClasses(slots, getImageListUtilityClass, classes);\n};\nconst ImageListRoot = styled('ul', {\n name: 'MuiImageList',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant]];\n }\n})({\n display: 'grid',\n overflowY: 'auto',\n listStyle: 'none',\n padding: 0,\n // Add iOS momentum scrolling for iOS < 13.0\n WebkitOverflowScrolling: 'touch',\n variants: [{\n props: {\n variant: 'masonry'\n },\n style: {\n display: 'block'\n }\n }]\n});\nconst ImageList = /*#__PURE__*/React.forwardRef(function ImageList(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiImageList'\n });\n const {\n children,\n className,\n cols = 2,\n component = 'ul',\n rowHeight = 'auto',\n gap = 4,\n style: styleProp,\n variant = 'standard',\n ...other\n } = props;\n const contextValue = React.useMemo(() => ({\n rowHeight,\n gap,\n variant\n }), [rowHeight, gap, variant]);\n const style = variant === 'masonry' ? {\n columnCount: cols,\n columnGap: gap,\n ...styleProp\n } : {\n gridTemplateColumns: `repeat(${cols}, 1fr)`,\n gap,\n ...styleProp\n };\n const ownerState = {\n ...props,\n component,\n gap,\n rowHeight,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(ImageListRoot, {\n as: component,\n className: clsx(classes.root, classes[variant], className),\n ref: ref,\n style: style,\n ownerState: ownerState,\n ...other,\n children: /*#__PURE__*/_jsx(ImageListContext.Provider, {\n value: contextValue,\n children: children\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? ImageList.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component, normally `ImageListItem`s.\n */\n children: PropTypes /* @typescript-to-proptypes-ignore */.node.isRequired,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * Number of columns.\n * @default 2\n */\n cols: integerPropType,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The gap between items in px.\n * @default 4\n */\n gap: PropTypes.number,\n /**\n * The height of one row in px.\n * @default 'auto'\n */\n rowHeight: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The variant to use.\n * @default 'standard'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['masonry', 'quilted', 'standard', 'woven']), PropTypes.string])\n} : void 0;\nexport default ImageList;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getImageListItemUtilityClass(slot) {\n return generateUtilityClass('MuiImageListItem', slot);\n}\nconst imageListItemClasses = generateUtilityClasses('MuiImageListItem', ['root', 'img', 'standard', 'woven', 'masonry', 'quilted']);\nexport default imageListItemClasses;","'use client';\n\nimport composeClasses from '@mui/utils/composeClasses';\nimport integerPropType from '@mui/utils/integerPropType';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport ImageListContext from \"../ImageList/ImageListContext.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport isMuiElement from \"../utils/isMuiElement.js\";\nimport imageListItemClasses, { getImageListItemUtilityClass } from \"./imageListItemClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n variant\n } = ownerState;\n const slots = {\n root: ['root', variant],\n img: ['img']\n };\n return composeClasses(slots, getImageListItemUtilityClass, classes);\n};\nconst ImageListItemRoot = styled('li', {\n name: 'MuiImageListItem',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [{\n [`& .${imageListItemClasses.img}`]: styles.img\n }, styles.root, styles[ownerState.variant]];\n }\n})({\n display: 'block',\n position: 'relative',\n [`& .${imageListItemClasses.img}`]: {\n objectFit: 'cover',\n width: '100%',\n height: '100%',\n display: 'block'\n },\n variants: [{\n props: {\n variant: 'standard'\n },\n style: {\n // For titlebar under list item\n display: 'flex',\n flexDirection: 'column'\n }\n }, {\n props: {\n variant: 'woven'\n },\n style: {\n height: '100%',\n alignSelf: 'center',\n '&:nth-of-type(even)': {\n height: '70%'\n }\n }\n }, {\n props: {\n variant: 'standard'\n },\n style: {\n [`& .${imageListItemClasses.img}`]: {\n height: 'auto',\n flexGrow: 1\n }\n }\n }]\n});\nconst ImageListItem = /*#__PURE__*/React.forwardRef(function ImageListItem(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiImageListItem'\n });\n\n // TODO: - Use jsdoc @default?: \"cols rows default values are for docs only\"\n const {\n children,\n className,\n cols = 1,\n component = 'li',\n rows = 1,\n style,\n ...other\n } = props;\n const {\n rowHeight = 'auto',\n gap,\n variant\n } = React.useContext(ImageListContext);\n let height = 'auto';\n if (variant === 'woven') {\n height = undefined;\n } else if (rowHeight !== 'auto') {\n height = rowHeight * rows + gap * (rows - 1);\n }\n const ownerState = {\n ...props,\n cols,\n component,\n gap,\n rowHeight,\n rows,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(ImageListItemRoot, {\n as: component,\n className: clsx(classes.root, classes[variant], className),\n ref: ref,\n style: {\n height,\n gridColumnEnd: variant !== 'masonry' ? `span ${cols}` : undefined,\n gridRowEnd: variant !== 'masonry' ? `span ${rows}` : undefined,\n marginBottom: variant === 'masonry' ? gap : undefined,\n breakInside: variant === 'masonry' ? 'avoid' : undefined,\n ...style\n },\n ownerState: ownerState,\n ...other,\n children: React.Children.map(children, child => {\n if (! /*#__PURE__*/React.isValidElement(child)) {\n return null;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (isFragment(child)) {\n console.error([\"MUI: The ImageListItem component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n }\n }\n if (child.type === 'img' || isMuiElement(child, ['Image'])) {\n return /*#__PURE__*/React.cloneElement(child, {\n className: clsx(classes.img, child.props.className)\n });\n }\n return child;\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? ImageListItem.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component, normally an `<img>`.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * Width of the item in number of grid columns.\n * @default 1\n */\n cols: integerPropType,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * Height of the item in number of grid rows.\n * @default 1\n */\n rows: integerPropType,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default ImageListItem;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getImageListItemBarUtilityClass(slot) {\n return generateUtilityClass('MuiImageListItemBar', slot);\n}\nconst imageListItemBarClasses = generateUtilityClasses('MuiImageListItemBar', ['root', 'positionBottom', 'positionTop', 'positionBelow', 'actionPositionLeft', 'actionPositionRight', 'titleWrap', 'titleWrapBottom', 'titleWrapTop', 'titleWrapBelow', 'titleWrapActionPosLeft', 'titleWrapActionPosRight', 'title', 'subtitle', 'actionIcon', 'actionIconActionPosLeft', 'actionIconActionPosRight']);\nexport default imageListItemBarClasses;","'use client';\n\nimport composeClasses from '@mui/utils/composeClasses';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport { getImageListItemBarUtilityClass } from \"./imageListItemBarClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n position,\n actionIcon,\n actionPosition\n } = ownerState;\n const slots = {\n root: ['root', `position${capitalize(position)}`, `actionPosition${capitalize(actionPosition)}`],\n titleWrap: ['titleWrap', `titleWrap${capitalize(position)}`, actionIcon && `titleWrapActionPos${capitalize(actionPosition)}`],\n title: ['title'],\n subtitle: ['subtitle'],\n actionIcon: ['actionIcon', `actionIconActionPos${capitalize(actionPosition)}`]\n };\n return composeClasses(slots, getImageListItemBarUtilityClass, classes);\n};\nconst ImageListItemBarRoot = styled('div', {\n name: 'MuiImageListItemBar',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`position${capitalize(ownerState.position)}`]];\n }\n})(memoTheme(({\n theme\n}) => {\n return {\n position: 'absolute',\n left: 0,\n right: 0,\n background: 'rgba(0, 0, 0, 0.5)',\n display: 'flex',\n alignItems: 'center',\n fontFamily: theme.typography.fontFamily,\n variants: [{\n props: {\n position: 'bottom'\n },\n style: {\n bottom: 0\n }\n }, {\n props: {\n position: 'top'\n },\n style: {\n top: 0\n }\n }, {\n props: {\n position: 'below'\n },\n style: {\n position: 'relative',\n background: 'transparent',\n alignItems: 'normal'\n }\n }]\n };\n}));\nconst ImageListItemBarTitleWrap = styled('div', {\n name: 'MuiImageListItemBar',\n slot: 'TitleWrap',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.titleWrap, styles[`titleWrap${capitalize(ownerState.position)}`], ownerState.actionIcon && styles[`titleWrapActionPos${capitalize(ownerState.actionPosition)}`]];\n }\n})(memoTheme(({\n theme\n}) => {\n return {\n flexGrow: 1,\n padding: '12px 16px',\n color: (theme.vars || theme).palette.common.white,\n overflow: 'hidden',\n variants: [{\n props: {\n position: 'below'\n },\n style: {\n padding: '6px 0 12px',\n color: 'inherit'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.actionIcon && ownerState.actionPosition === 'left',\n style: {\n paddingLeft: 0\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.actionIcon && ownerState.actionPosition === 'right',\n style: {\n paddingRight: 0\n }\n }]\n };\n}));\nconst ImageListItemBarTitle = styled('div', {\n name: 'MuiImageListItemBar',\n slot: 'Title',\n overridesResolver: (props, styles) => styles.title\n})(memoTheme(({\n theme\n}) => {\n return {\n fontSize: theme.typography.pxToRem(16),\n lineHeight: '24px',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n whiteSpace: 'nowrap'\n };\n}));\nconst ImageListItemBarSubtitle = styled('div', {\n name: 'MuiImageListItemBar',\n slot: 'Subtitle',\n overridesResolver: (props, styles) => styles.subtitle\n})(memoTheme(({\n theme\n}) => {\n return {\n fontSize: theme.typography.pxToRem(12),\n lineHeight: 1,\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n whiteSpace: 'nowrap'\n };\n}));\nconst ImageListItemBarActionIcon = styled('div', {\n name: 'MuiImageListItemBar',\n slot: 'ActionIcon',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.actionIcon, styles[`actionIconActionPos${capitalize(ownerState.actionPosition)}`]];\n }\n})({\n variants: [{\n props: {\n actionPosition: 'left'\n },\n style: {\n order: -1\n }\n }]\n});\nconst ImageListItemBar = /*#__PURE__*/React.forwardRef(function ImageListItemBar(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiImageListItemBar'\n });\n const {\n actionIcon,\n actionPosition = 'right',\n className,\n subtitle,\n title,\n position = 'bottom',\n ...other\n } = props;\n const ownerState = {\n ...props,\n position,\n actionPosition\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(ImageListItemBarRoot, {\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ref: ref,\n ...other,\n children: [/*#__PURE__*/_jsxs(ImageListItemBarTitleWrap, {\n ownerState: ownerState,\n className: classes.titleWrap,\n children: [/*#__PURE__*/_jsx(ImageListItemBarTitle, {\n className: classes.title,\n children: title\n }), subtitle ? /*#__PURE__*/_jsx(ImageListItemBarSubtitle, {\n className: classes.subtitle,\n children: subtitle\n }) : null]\n }), actionIcon ? /*#__PURE__*/_jsx(ImageListItemBarActionIcon, {\n ownerState: ownerState,\n className: classes.actionIcon,\n children: actionIcon\n }) : null]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? ImageListItemBar.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * An IconButton element to be used as secondary action target\n * (primary action target is the item itself).\n */\n actionIcon: PropTypes.node,\n /**\n * Position of secondary action IconButton.\n * @default 'right'\n */\n actionPosition: PropTypes.oneOf(['left', 'right']),\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * Position of the title bar.\n * @default 'bottom'\n */\n position: PropTypes.oneOf(['below', 'bottom', 'top']),\n /**\n * String or element serving as subtitle (support text).\n */\n subtitle: PropTypes.node,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Title to be displayed.\n */\n title: PropTypes.node\n} : void 0;\nexport default ImageListItemBar;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport deepmerge from '@mui/utils/deepmerge';\nimport refType from '@mui/utils/refType';\nimport InputBase from \"../InputBase/index.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport inputClasses, { getInputUtilityClass } from \"./inputClasses.js\";\nimport { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot, InputBaseInput } from \"../InputBase/InputBase.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disableUnderline\n } = ownerState;\n const slots = {\n root: ['root', !disableUnderline && 'underline'],\n input: ['input']\n };\n const composedClasses = composeClasses(slots, getInputUtilityClass, classes);\n return {\n ...classes,\n // forward classes to the InputBase\n ...composedClasses\n };\n};\nconst InputRoot = styled(InputBaseRoot, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiInput',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [...inputBaseRootOverridesResolver(props, styles), !ownerState.disableUnderline && styles.underline];\n }\n})(memoTheme(({\n theme\n}) => {\n const light = theme.palette.mode === 'light';\n let bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';\n if (theme.vars) {\n bottomLineColor = `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})`;\n }\n return {\n position: 'relative',\n variants: [{\n props: ({\n ownerState\n }) => ownerState.formControl,\n style: {\n 'label + &': {\n marginTop: 16\n }\n }\n }, {\n props: ({\n ownerState\n }) => !ownerState.disableUnderline,\n style: {\n '&::after': {\n left: 0,\n bottom: 0,\n content: '\"\"',\n position: 'absolute',\n right: 0,\n transform: 'scaleX(0)',\n transition: theme.transitions.create('transform', {\n duration: theme.transitions.duration.shorter,\n easing: theme.transitions.easing.easeOut\n }),\n pointerEvents: 'none' // Transparent to the hover style.\n },\n [`&.${inputClasses.focused}:after`]: {\n // translateX(0) is a workaround for Safari transform scale bug\n // See https://github.com/mui/material-ui/issues/31766\n transform: 'scaleX(1) translateX(0)'\n },\n [`&.${inputClasses.error}`]: {\n '&::before, &::after': {\n borderBottomColor: (theme.vars || theme).palette.error.main\n }\n },\n '&::before': {\n borderBottom: `1px solid ${bottomLineColor}`,\n left: 0,\n bottom: 0,\n content: '\"\\\\00a0\"',\n position: 'absolute',\n right: 0,\n transition: theme.transitions.create('border-bottom-color', {\n duration: theme.transitions.duration.shorter\n }),\n pointerEvents: 'none' // Transparent to the hover style.\n },\n [`&:hover:not(.${inputClasses.disabled}, .${inputClasses.error}):before`]: {\n borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n borderBottom: `1px solid ${bottomLineColor}`\n }\n },\n [`&.${inputClasses.disabled}:before`]: {\n borderBottomStyle: 'dotted'\n }\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color,\n disableUnderline: false\n },\n style: {\n '&::after': {\n borderBottom: `2px solid ${(theme.vars || theme).palette[color].main}`\n }\n }\n }))]\n };\n}));\nconst InputInput = styled(InputBaseInput, {\n name: 'MuiInput',\n slot: 'Input',\n overridesResolver: inputBaseInputOverridesResolver\n})({});\nconst Input = /*#__PURE__*/React.forwardRef(function Input(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiInput'\n });\n const {\n disableUnderline = false,\n components = {},\n componentsProps: componentsPropsProp,\n fullWidth = false,\n inputComponent = 'input',\n multiline = false,\n slotProps,\n slots = {},\n type = 'text',\n ...other\n } = props;\n const classes = useUtilityClasses(props);\n const ownerState = {\n disableUnderline\n };\n const inputComponentsProps = {\n root: {\n ownerState\n }\n };\n const componentsProps = slotProps ?? componentsPropsProp ? deepmerge(slotProps ?? componentsPropsProp, inputComponentsProps) : inputComponentsProps;\n const RootSlot = slots.root ?? components.Root ?? InputRoot;\n const InputSlot = slots.input ?? components.Input ?? InputInput;\n return /*#__PURE__*/_jsx(InputBase, {\n slots: {\n root: RootSlot,\n input: InputSlot\n },\n slotProps: componentsProps,\n fullWidth: fullWidth,\n inputComponent: inputComponent,\n multiline: multiline,\n ref: ref,\n type: type,\n ...other,\n classes: classes\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Input.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * This prop helps users to fill forms faster, especially on mobile devices.\n * The name can be confusing, as it's more like an autofill.\n * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).\n */\n autoComplete: PropTypes.string,\n /**\n * If `true`, the `input` element is focused during the first mount.\n */\n autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),\n /**\n * The components used for each slot inside.\n *\n * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n components: PropTypes.shape({\n Input: PropTypes.elementType,\n Root: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n input: PropTypes.object,\n root: PropTypes.object\n }),\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.any,\n /**\n * If `true`, the component is disabled.\n * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the `input` will not have an underline.\n * @default false\n */\n disableUnderline: PropTypes.bool,\n /**\n * End `InputAdornment` for this component.\n */\n endAdornment: PropTypes.node,\n /**\n * If `true`, the `input` will indicate an error.\n * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n */\n error: PropTypes.bool,\n /**\n * If `true`, the `input` will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n /**\n * The component used for the `input` element.\n * Either a string to use a HTML element or a component.\n * @default 'input'\n */\n inputComponent: PropTypes.elementType,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n * @default {}\n */\n inputProps: PropTypes.object,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * If `dense`, will adjust vertical spacing. This is normally obtained via context from\n * FormControl.\n * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.\n */\n margin: PropTypes.oneOf(['dense', 'none']),\n /**\n * Maximum number of rows to display when multiline option is set to true.\n */\n maxRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * Minimum number of rows to display when multiline option is set to true.\n */\n minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * If `true`, a [TextareaAutosize](https://mui.com/material-ui/react-textarea-autosize/) element is rendered.\n * @default false\n */\n multiline: PropTypes.bool,\n /**\n * Name attribute of the `input` element.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is changed.\n *\n * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (string).\n */\n onChange: PropTypes.func,\n /**\n * The short hint displayed in the `input` before the user enters a value.\n */\n placeholder: PropTypes.string,\n /**\n * It prevents the user from changing the value of the field\n * (not from interacting with the field).\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, the `input` element is required.\n * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n */\n required: PropTypes.bool,\n /**\n * Number of rows to display when multiline option is set to true.\n */\n rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slotProps: PropTypes.shape({\n input: PropTypes.object,\n root: PropTypes.object\n }),\n /**\n * The components used for each slot inside.\n *\n * This prop is an alias for the `components` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slots: PropTypes.shape({\n input: PropTypes.elementType,\n root: PropTypes.elementType\n }),\n /**\n * Start `InputAdornment` for this component.\n */\n startAdornment: PropTypes.node,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).\n * @default 'text'\n */\n type: PropTypes.string,\n /**\n * The value of the `input` element, required for a controlled component.\n */\n value: PropTypes.any\n} : void 0;\nInput.muiName = 'Input';\nexport default Input;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getInputAdornmentUtilityClass(slot) {\n return generateUtilityClass('MuiInputAdornment', slot);\n}\nconst inputAdornmentClasses = generateUtilityClasses('MuiInputAdornment', ['root', 'filled', 'standard', 'outlined', 'positionStart', 'positionEnd', 'disablePointerEvents', 'hiddenLabel', 'sizeSmall']);\nexport default inputAdornmentClasses;","'use client';\n\nvar _span;\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from \"../utils/capitalize.js\";\nimport Typography from \"../Typography/index.js\";\nimport FormControlContext from \"../FormControl/FormControlContext.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport inputAdornmentClasses, { getInputAdornmentUtilityClass } from \"./inputAdornmentClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst overridesResolver = (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`position${capitalize(ownerState.position)}`], ownerState.disablePointerEvents === true && styles.disablePointerEvents, styles[ownerState.variant]];\n};\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disablePointerEvents,\n hiddenLabel,\n position,\n size,\n variant\n } = ownerState;\n const slots = {\n root: ['root', disablePointerEvents && 'disablePointerEvents', position && `position${capitalize(position)}`, variant, hiddenLabel && 'hiddenLabel', size && `size${capitalize(size)}`]\n };\n return composeClasses(slots, getInputAdornmentUtilityClass, classes);\n};\nconst InputAdornmentRoot = styled('div', {\n name: 'MuiInputAdornment',\n slot: 'Root',\n overridesResolver\n})(memoTheme(({\n theme\n}) => ({\n display: 'flex',\n maxHeight: '2em',\n alignItems: 'center',\n whiteSpace: 'nowrap',\n color: (theme.vars || theme).palette.action.active,\n variants: [{\n props: {\n variant: 'filled'\n },\n style: {\n [`&.${inputAdornmentClasses.positionStart}&:not(.${inputAdornmentClasses.hiddenLabel})`]: {\n marginTop: 16\n }\n }\n }, {\n props: {\n position: 'start'\n },\n style: {\n marginRight: 8\n }\n }, {\n props: {\n position: 'end'\n },\n style: {\n marginLeft: 8\n }\n }, {\n props: {\n disablePointerEvents: true\n },\n style: {\n pointerEvents: 'none'\n }\n }]\n})));\nconst InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiInputAdornment'\n });\n const {\n children,\n className,\n component = 'div',\n disablePointerEvents = false,\n disableTypography = false,\n position,\n variant: variantProp,\n ...other\n } = props;\n const muiFormControl = useFormControl() || {};\n let variant = variantProp;\n if (variantProp && muiFormControl.variant) {\n if (process.env.NODE_ENV !== 'production') {\n if (variantProp === muiFormControl.variant) {\n console.error('MUI: The `InputAdornment` variant infers the variant prop ' + 'you do not have to provide one.');\n }\n }\n }\n if (muiFormControl && !variant) {\n variant = muiFormControl.variant;\n }\n const ownerState = {\n ...props,\n hiddenLabel: muiFormControl.hiddenLabel,\n size: muiFormControl.size,\n disablePointerEvents,\n position,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(FormControlContext.Provider, {\n value: null,\n children: /*#__PURE__*/_jsx(InputAdornmentRoot, {\n as: component,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ref: ref,\n ...other,\n children: typeof children === 'string' && !disableTypography ? /*#__PURE__*/_jsx(Typography, {\n color: \"textSecondary\",\n children: children\n }) : /*#__PURE__*/_jsxs(React.Fragment, {\n children: [position === 'start' ? (/* notranslate needed while Google Translate will not fix zero-width space issue */_span || (_span = /*#__PURE__*/_jsx(\"span\", {\n className: \"notranslate\",\n \"aria-hidden\": true,\n children: \"\\u200B\"\n }))) : null, children]\n })\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? InputAdornment.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component, normally an `IconButton` or string.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * Disable pointer events on the root.\n * This allows for the content of the adornment to focus the `input` on click.\n * @default false\n */\n disablePointerEvents: PropTypes.bool,\n /**\n * If children is a string then disable wrapping in a Typography component.\n * @default false\n */\n disableTypography: PropTypes.bool,\n /**\n * The position this adornment should appear relative to the `Input`.\n */\n position: PropTypes.oneOf(['end', 'start']).isRequired,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The variant to use.\n * Note: If you are using the `TextField` component or the `FormControl` component\n * you do not have to set this manually.\n */\n variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport default InputAdornment;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getInputLabelUtilityClasses(slot) {\n return generateUtilityClass('MuiInputLabel', slot);\n}\nconst inputLabelClasses = generateUtilityClasses('MuiInputLabel', ['root', 'focused', 'disabled', 'error', 'required', 'asterisk', 'formControl', 'sizeSmall', 'shrink', 'animated', 'standard', 'filled', 'outlined']);\nexport default inputLabelClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport clsx from 'clsx';\nimport formControlState from \"../FormControl/formControlState.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport FormLabel, { formLabelClasses } from \"../FormLabel/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getInputLabelUtilityClasses } from \"./inputLabelClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n formControl,\n size,\n shrink,\n disableAnimation,\n variant,\n required\n } = ownerState;\n const slots = {\n root: ['root', formControl && 'formControl', !disableAnimation && 'animated', shrink && 'shrink', size && size !== 'medium' && `size${capitalize(size)}`, variant],\n asterisk: [required && 'asterisk']\n };\n const composedClasses = composeClasses(slots, getInputLabelUtilityClasses, classes);\n return {\n ...classes,\n // forward the focused, disabled, etc. classes to the FormLabel\n ...composedClasses\n };\n};\nconst InputLabelRoot = styled(FormLabel, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiInputLabel',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [{\n [`& .${formLabelClasses.asterisk}`]: styles.asterisk\n }, styles.root, ownerState.formControl && styles.formControl, ownerState.size === 'small' && styles.sizeSmall, ownerState.shrink && styles.shrink, !ownerState.disableAnimation && styles.animated, ownerState.focused && styles.focused, styles[ownerState.variant]];\n }\n})(memoTheme(({\n theme\n}) => ({\n display: 'block',\n transformOrigin: 'top left',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n maxWidth: '100%',\n variants: [{\n props: ({\n ownerState\n }) => ownerState.formControl,\n style: {\n position: 'absolute',\n left: 0,\n top: 0,\n // slight alteration to spec spacing to match visual spec result\n transform: 'translate(0, 20px) scale(1)'\n }\n }, {\n props: {\n size: 'small'\n },\n style: {\n // Compensation for the `Input.inputSizeSmall` style.\n transform: 'translate(0, 17px) scale(1)'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.shrink,\n style: {\n transform: 'translate(0, -1.5px) scale(0.75)',\n transformOrigin: 'top left',\n maxWidth: '133%'\n }\n }, {\n props: ({\n ownerState\n }) => !ownerState.disableAnimation,\n style: {\n transition: theme.transitions.create(['color', 'transform', 'max-width'], {\n duration: theme.transitions.duration.shorter,\n easing: theme.transitions.easing.easeOut\n })\n }\n }, {\n props: {\n variant: 'filled'\n },\n style: {\n // Chrome's autofill feature gives the input field a yellow background.\n // Since the input field is behind the label in the HTML tree,\n // the input field is drawn last and hides the label with an opaque background color.\n // zIndex: 1 will raise the label above opaque background-colors of input.\n zIndex: 1,\n pointerEvents: 'none',\n transform: 'translate(12px, 16px) scale(1)',\n maxWidth: 'calc(100% - 24px)'\n }\n }, {\n props: {\n variant: 'filled',\n size: 'small'\n },\n style: {\n transform: 'translate(12px, 13px) scale(1)'\n }\n }, {\n props: ({\n variant,\n ownerState\n }) => variant === 'filled' && ownerState.shrink,\n style: {\n userSelect: 'none',\n pointerEvents: 'auto',\n transform: 'translate(12px, 7px) scale(0.75)',\n maxWidth: 'calc(133% - 24px)'\n }\n }, {\n props: ({\n variant,\n ownerState,\n size\n }) => variant === 'filled' && ownerState.shrink && size === 'small',\n style: {\n transform: 'translate(12px, 4px) scale(0.75)'\n }\n }, {\n props: {\n variant: 'outlined'\n },\n style: {\n // see comment above on filled.zIndex\n zIndex: 1,\n pointerEvents: 'none',\n transform: 'translate(14px, 16px) scale(1)',\n maxWidth: 'calc(100% - 24px)'\n }\n }, {\n props: {\n variant: 'outlined',\n size: 'small'\n },\n style: {\n transform: 'translate(14px, 9px) scale(1)'\n }\n }, {\n props: ({\n variant,\n ownerState\n }) => variant === 'outlined' && ownerState.shrink,\n style: {\n userSelect: 'none',\n pointerEvents: 'auto',\n // Theoretically, we should have (8+5)*2/0.75 = 34px\n // but it feels a better when it bleeds a bit on the left, so 32px.\n maxWidth: 'calc(133% - 32px)',\n transform: 'translate(14px, -9px) scale(0.75)'\n }\n }]\n})));\nconst InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(inProps, ref) {\n const props = useDefaultProps({\n name: 'MuiInputLabel',\n props: inProps\n });\n const {\n disableAnimation = false,\n margin,\n shrink: shrinkProp,\n variant,\n className,\n ...other\n } = props;\n const muiFormControl = useFormControl();\n let shrink = shrinkProp;\n if (typeof shrink === 'undefined' && muiFormControl) {\n shrink = muiFormControl.filled || muiFormControl.focused || muiFormControl.adornedStart;\n }\n const fcs = formControlState({\n props,\n muiFormControl,\n states: ['size', 'variant', 'required', 'focused']\n });\n const ownerState = {\n ...props,\n disableAnimation,\n formControl: muiFormControl,\n shrink,\n size: fcs.size,\n variant: fcs.variant,\n required: fcs.required,\n focused: fcs.focused\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(InputLabelRoot, {\n \"data-shrink\": shrink,\n ref: ref,\n className: clsx(classes.root, className),\n ...other,\n ownerState: ownerState,\n classes: classes\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? InputLabel.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),\n /**\n * If `true`, the transition animation is disabled.\n * @default false\n */\n disableAnimation: PropTypes.bool,\n /**\n * If `true`, the component is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the label is displayed in an error state.\n */\n error: PropTypes.bool,\n /**\n * If `true`, the `input` of this label is focused.\n */\n focused: PropTypes.bool,\n /**\n * If `dense`, will adjust vertical spacing. This is normally obtained via context from\n * FormControl.\n */\n margin: PropTypes.oneOf(['dense']),\n /**\n * if `true`, the label will indicate that the `input` is required.\n */\n required: PropTypes.bool,\n /**\n * If `true`, the label is shrunk.\n */\n shrink: PropTypes.bool,\n /**\n * The size of the component.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The variant to use.\n */\n variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport default InputLabel;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getLinearProgressUtilityClass(slot) {\n return generateUtilityClass('MuiLinearProgress', slot);\n}\nconst linearProgressClasses = generateUtilityClasses('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'dashedColorPrimary', 'dashedColorSecondary', 'bar', 'bar1', 'bar2', 'barColorPrimary', 'barColorSecondary', 'bar1Indeterminate', 'bar1Determinate', 'bar1Buffer', 'bar2Indeterminate', 'bar2Buffer']);\nexport default linearProgressClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { darken, lighten } from '@mui/system/colorManipulator';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { keyframes, css, styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport { getLinearProgressUtilityClass } from \"./linearProgressClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst TRANSITION_DURATION = 4; // seconds\nconst indeterminate1Keyframe = keyframes`\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n`;\n\n// This implementation is for supporting both Styled-components v4+ and Pigment CSS.\n// A global animation has to be created here for Styled-components v4+ (https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#12).\n// which can be done by checking typeof indeterminate1Keyframe !== 'string' (at runtime, Pigment CSS transform keyframes`` to a string).\nconst indeterminate1Animation = typeof indeterminate1Keyframe !== 'string' ? css`\n animation: ${indeterminate1Keyframe} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n ` : null;\nconst indeterminate2Keyframe = keyframes`\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n`;\nconst indeterminate2Animation = typeof indeterminate2Keyframe !== 'string' ? css`\n animation: ${indeterminate2Keyframe} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n ` : null;\nconst bufferKeyframe = keyframes`\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n`;\nconst bufferAnimation = typeof bufferKeyframe !== 'string' ? css`\n animation: ${bufferKeyframe} 3s infinite linear;\n ` : null;\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n variant,\n color\n } = ownerState;\n const slots = {\n root: ['root', `color${capitalize(color)}`, variant],\n dashed: ['dashed', `dashedColor${capitalize(color)}`],\n bar1: ['bar', 'bar1', `barColor${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar1Indeterminate', variant === 'determinate' && 'bar1Determinate', variant === 'buffer' && 'bar1Buffer'],\n bar2: ['bar', 'bar2', variant !== 'buffer' && `barColor${capitalize(color)}`, variant === 'buffer' && `color${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar2Indeterminate', variant === 'buffer' && 'bar2Buffer']\n };\n return composeClasses(slots, getLinearProgressUtilityClass, classes);\n};\nconst getColorShade = (theme, color) => {\n if (theme.vars) {\n return theme.vars.palette.LinearProgress[`${color}Bg`];\n }\n return theme.palette.mode === 'light' ? lighten(theme.palette[color].main, 0.62) : darken(theme.palette[color].main, 0.5);\n};\nconst LinearProgressRoot = styled('span', {\n name: 'MuiLinearProgress',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`color${capitalize(ownerState.color)}`], styles[ownerState.variant]];\n }\n})(memoTheme(({\n theme\n}) => ({\n position: 'relative',\n overflow: 'hidden',\n display: 'block',\n height: 4,\n // Fix Safari's bug during composition of different paint.\n zIndex: 0,\n '@media print': {\n colorAdjust: 'exact'\n },\n variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n backgroundColor: getColorShade(theme, color)\n }\n })), {\n props: ({\n ownerState\n }) => ownerState.color === 'inherit' && ownerState.variant !== 'buffer',\n style: {\n '&::before': {\n content: '\"\"',\n position: 'absolute',\n left: 0,\n top: 0,\n right: 0,\n bottom: 0,\n backgroundColor: 'currentColor',\n opacity: 0.3\n }\n }\n }, {\n props: {\n variant: 'buffer'\n },\n style: {\n backgroundColor: 'transparent'\n }\n }, {\n props: {\n variant: 'query'\n },\n style: {\n transform: 'rotate(180deg)'\n }\n }]\n})));\nconst LinearProgressDashed = styled('span', {\n name: 'MuiLinearProgress',\n slot: 'Dashed',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.dashed, styles[`dashedColor${capitalize(ownerState.color)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n position: 'absolute',\n marginTop: 0,\n height: '100%',\n width: '100%',\n backgroundSize: '10px 10px',\n backgroundPosition: '0 -23px',\n variants: [{\n props: {\n color: 'inherit'\n },\n style: {\n opacity: 0.3,\n backgroundImage: `radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)`\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => {\n const backgroundColor = getColorShade(theme, color);\n return {\n props: {\n color\n },\n style: {\n backgroundImage: `radial-gradient(${backgroundColor} 0%, ${backgroundColor} 16%, transparent 42%)`\n }\n };\n })]\n})), bufferAnimation || {\n // At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.\n animation: `${bufferKeyframe} 3s infinite linear`\n});\nconst LinearProgressBar1 = styled('span', {\n name: 'MuiLinearProgress',\n slot: 'Bar1',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.bar, styles.bar1, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar1Indeterminate, ownerState.variant === 'determinate' && styles.bar1Determinate, ownerState.variant === 'buffer' && styles.bar1Buffer];\n }\n})(memoTheme(({\n theme\n}) => ({\n width: '100%',\n position: 'absolute',\n left: 0,\n bottom: 0,\n top: 0,\n transition: 'transform 0.2s linear',\n transformOrigin: 'left',\n variants: [{\n props: {\n color: 'inherit'\n },\n style: {\n backgroundColor: 'currentColor'\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n backgroundColor: (theme.vars || theme).palette[color].main\n }\n })), {\n props: {\n variant: 'determinate'\n },\n style: {\n transition: `transform .${TRANSITION_DURATION}s linear`\n }\n }, {\n props: {\n variant: 'buffer'\n },\n style: {\n zIndex: 1,\n transition: `transform .${TRANSITION_DURATION}s linear`\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.variant === 'indeterminate' || ownerState.variant === 'query',\n style: {\n width: 'auto'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.variant === 'indeterminate' || ownerState.variant === 'query',\n style: indeterminate1Animation || {\n animation: `${indeterminate1Keyframe} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`\n }\n }]\n})));\nconst LinearProgressBar2 = styled('span', {\n name: 'MuiLinearProgress',\n slot: 'Bar2',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.bar, styles.bar2, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar2Indeterminate, ownerState.variant === 'buffer' && styles.bar2Buffer];\n }\n})(memoTheme(({\n theme\n}) => ({\n width: '100%',\n position: 'absolute',\n left: 0,\n bottom: 0,\n top: 0,\n transition: 'transform 0.2s linear',\n transformOrigin: 'left',\n variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n '--LinearProgressBar2-barColor': (theme.vars || theme).palette[color].main\n }\n })), {\n props: ({\n ownerState\n }) => ownerState.variant !== 'buffer' && ownerState.color !== 'inherit',\n style: {\n backgroundColor: 'var(--LinearProgressBar2-barColor, currentColor)'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.variant !== 'buffer' && ownerState.color === 'inherit',\n style: {\n backgroundColor: 'currentColor'\n }\n }, {\n props: {\n color: 'inherit'\n },\n style: {\n opacity: 0.3\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color,\n variant: 'buffer'\n },\n style: {\n backgroundColor: getColorShade(theme, color),\n transition: `transform .${TRANSITION_DURATION}s linear`\n }\n })), {\n props: ({\n ownerState\n }) => ownerState.variant === 'indeterminate' || ownerState.variant === 'query',\n style: {\n width: 'auto'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.variant === 'indeterminate' || ownerState.variant === 'query',\n style: indeterminate2Animation || {\n animation: `${indeterminate2Keyframe} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`\n }\n }]\n})));\n\n/**\n * ## ARIA\n *\n * If the progress bar is describing the loading progress of a particular region of a page,\n * you should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\n * attribute to `true` on that region until it has finished loading.\n */\nconst LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiLinearProgress'\n });\n const {\n className,\n color = 'primary',\n value,\n valueBuffer,\n variant = 'indeterminate',\n ...other\n } = props;\n const ownerState = {\n ...props,\n color,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n const isRtl = useRtl();\n const rootProps = {};\n const inlineStyles = {\n bar1: {},\n bar2: {}\n };\n if (variant === 'determinate' || variant === 'buffer') {\n if (value !== undefined) {\n rootProps['aria-valuenow'] = Math.round(value);\n rootProps['aria-valuemin'] = 0;\n rootProps['aria-valuemax'] = 100;\n let transform = value - 100;\n if (isRtl) {\n transform = -transform;\n }\n inlineStyles.bar1.transform = `translateX(${transform}%)`;\n } else if (process.env.NODE_ENV !== 'production') {\n console.error('MUI: You need to provide a value prop ' + 'when using the determinate or buffer variant of LinearProgress .');\n }\n }\n if (variant === 'buffer') {\n if (valueBuffer !== undefined) {\n let transform = (valueBuffer || 0) - 100;\n if (isRtl) {\n transform = -transform;\n }\n inlineStyles.bar2.transform = `translateX(${transform}%)`;\n } else if (process.env.NODE_ENV !== 'production') {\n console.error('MUI: You need to provide a valueBuffer prop ' + 'when using the buffer variant of LinearProgress.');\n }\n }\n return /*#__PURE__*/_jsxs(LinearProgressRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n role: \"progressbar\",\n ...rootProps,\n ref: ref,\n ...other,\n children: [variant === 'buffer' ? /*#__PURE__*/_jsx(LinearProgressDashed, {\n className: classes.dashed,\n ownerState: ownerState\n }) : null, /*#__PURE__*/_jsx(LinearProgressBar1, {\n className: classes.bar1,\n ownerState: ownerState,\n style: inlineStyles.bar1\n }), variant === 'determinate' ? null : /*#__PURE__*/_jsx(LinearProgressBar2, {\n className: classes.bar2,\n ownerState: ownerState,\n style: inlineStyles.bar2\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? LinearProgress.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary']), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The value of the progress indicator for the determinate and buffer variants.\n * Value between 0 and 100.\n */\n value: PropTypes.number,\n /**\n * The value for the buffer variant.\n * Value between 0 and 100.\n */\n valueBuffer: PropTypes.number,\n /**\n * The variant to use.\n * Use indeterminate or query when there is no progress value.\n * @default 'indeterminate'\n */\n variant: PropTypes.oneOf(['buffer', 'determinate', 'indeterminate', 'query'])\n} : void 0;\nexport default LinearProgress;","'use client';\n\nimport * as React from 'react';\n\n/**\n * @ignore - internal component.\n */\nconst ListContext = /*#__PURE__*/React.createContext({});\nif (process.env.NODE_ENV !== 'production') {\n ListContext.displayName = 'ListContext';\n}\nexport default ListContext;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getListUtilityClass(slot) {\n return generateUtilityClass('MuiList', slot);\n}\nconst listClasses = generateUtilityClasses('MuiList', ['root', 'padding', 'dense', 'subheader']);\nexport default listClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport ListContext from \"./ListContext.js\";\nimport { getListUtilityClass } from \"./listClasses.js\";\nimport { jsxs as _jsxs, jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disablePadding,\n dense,\n subheader\n } = ownerState;\n const slots = {\n root: ['root', !disablePadding && 'padding', dense && 'dense', subheader && 'subheader']\n };\n return composeClasses(slots, getListUtilityClass, classes);\n};\nconst ListRoot = styled('ul', {\n name: 'MuiList',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, !ownerState.disablePadding && styles.padding, ownerState.dense && styles.dense, ownerState.subheader && styles.subheader];\n }\n})({\n listStyle: 'none',\n margin: 0,\n padding: 0,\n position: 'relative',\n variants: [{\n props: ({\n ownerState\n }) => !ownerState.disablePadding,\n style: {\n paddingTop: 8,\n paddingBottom: 8\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.subheader,\n style: {\n paddingTop: 0\n }\n }]\n});\nconst List = /*#__PURE__*/React.forwardRef(function List(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiList'\n });\n const {\n children,\n className,\n component = 'ul',\n dense = false,\n disablePadding = false,\n subheader,\n ...other\n } = props;\n const context = React.useMemo(() => ({\n dense\n }), [dense]);\n const ownerState = {\n ...props,\n component,\n dense,\n disablePadding\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(ListContext.Provider, {\n value: context,\n children: /*#__PURE__*/_jsxs(ListRoot, {\n as: component,\n className: clsx(classes.root, className),\n ref: ref,\n ownerState: ownerState,\n ...other,\n children: [subheader, children]\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? List.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, compact vertical padding designed for keyboard and mouse input is used for\n * the list and list items.\n * The prop is available to descendant components as the `dense` context.\n * @default false\n */\n dense: PropTypes.bool,\n /**\n * If `true`, vertical padding is removed from the list.\n * @default false\n */\n disablePadding: PropTypes.bool,\n /**\n * The content of the subheader, normally `ListSubheader`.\n */\n subheader: PropTypes.node,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default List;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getListItemUtilityClass(slot) {\n return generateUtilityClass('MuiListItem', slot);\n}\nconst listItemClasses = generateUtilityClasses('MuiListItem', ['root', 'container', 'dense', 'alignItemsFlexStart', 'divider', 'gutters', 'padding', 'secondaryAction']);\nexport default listItemClasses;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getListItemButtonUtilityClass(slot) {\n return generateUtilityClass('MuiListItemButton', slot);\n}\nconst listItemButtonClasses = generateUtilityClasses('MuiListItemButton', ['root', 'focusVisible', 'dense', 'alignItemsFlexStart', 'disabled', 'divider', 'gutters', 'selected']);\nexport default listItemButtonClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport useEnhancedEffect from \"../utils/useEnhancedEffect.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport ListContext from \"../List/ListContext.js\";\nimport listItemButtonClasses, { getListItemButtonUtilityClass } from \"./listItemButtonClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const overridesResolver = (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.dense && styles.dense, ownerState.alignItems === 'flex-start' && styles.alignItemsFlexStart, ownerState.divider && styles.divider, !ownerState.disableGutters && styles.gutters];\n};\nconst useUtilityClasses = ownerState => {\n const {\n alignItems,\n classes,\n dense,\n disabled,\n disableGutters,\n divider,\n selected\n } = ownerState;\n const slots = {\n root: ['root', dense && 'dense', !disableGutters && 'gutters', divider && 'divider', disabled && 'disabled', alignItems === 'flex-start' && 'alignItemsFlexStart', selected && 'selected']\n };\n const composedClasses = composeClasses(slots, getListItemButtonUtilityClass, classes);\n return {\n ...classes,\n ...composedClasses\n };\n};\nconst ListItemButtonRoot = styled(ButtonBase, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiListItemButton',\n slot: 'Root',\n overridesResolver\n})(memoTheme(({\n theme\n}) => ({\n display: 'flex',\n flexGrow: 1,\n justifyContent: 'flex-start',\n alignItems: 'center',\n position: 'relative',\n textDecoration: 'none',\n minWidth: 0,\n boxSizing: 'border-box',\n textAlign: 'left',\n paddingTop: 8,\n paddingBottom: 8,\n transition: theme.transitions.create('background-color', {\n duration: theme.transitions.duration.shortest\n }),\n '&:hover': {\n textDecoration: 'none',\n backgroundColor: (theme.vars || theme).palette.action.hover,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n [`&.${listItemButtonClasses.selected}`]: {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),\n [`&.${listItemButtonClasses.focusVisible}`]: {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)\n }\n },\n [`&.${listItemButtonClasses.selected}:hover`]: {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)\n }\n },\n [`&.${listItemButtonClasses.focusVisible}`]: {\n backgroundColor: (theme.vars || theme).palette.action.focus\n },\n [`&.${listItemButtonClasses.disabled}`]: {\n opacity: (theme.vars || theme).palette.action.disabledOpacity\n },\n variants: [{\n props: ({\n ownerState\n }) => ownerState.divider,\n style: {\n borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,\n backgroundClip: 'padding-box'\n }\n }, {\n props: {\n alignItems: 'flex-start'\n },\n style: {\n alignItems: 'flex-start'\n }\n }, {\n props: ({\n ownerState\n }) => !ownerState.disableGutters,\n style: {\n paddingLeft: 16,\n paddingRight: 16\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.dense,\n style: {\n paddingTop: 4,\n paddingBottom: 4\n }\n }]\n})));\nconst ListItemButton = /*#__PURE__*/React.forwardRef(function ListItemButton(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiListItemButton'\n });\n const {\n alignItems = 'center',\n autoFocus = false,\n component = 'div',\n children,\n dense = false,\n disableGutters = false,\n divider = false,\n focusVisibleClassName,\n selected = false,\n className,\n ...other\n } = props;\n const context = React.useContext(ListContext);\n const childContext = React.useMemo(() => ({\n dense: dense || context.dense || false,\n alignItems,\n disableGutters\n }), [alignItems, context.dense, dense, disableGutters]);\n const listItemRef = React.useRef(null);\n useEnhancedEffect(() => {\n if (autoFocus) {\n if (listItemRef.current) {\n listItemRef.current.focus();\n } else if (process.env.NODE_ENV !== 'production') {\n console.error('MUI: Unable to set focus to a ListItemButton whose component has not been rendered.');\n }\n }\n }, [autoFocus]);\n const ownerState = {\n ...props,\n alignItems,\n dense: childContext.dense,\n disableGutters,\n divider,\n selected\n };\n const classes = useUtilityClasses(ownerState);\n const handleRef = useForkRef(listItemRef, ref);\n return /*#__PURE__*/_jsx(ListContext.Provider, {\n value: childContext,\n children: /*#__PURE__*/_jsx(ListItemButtonRoot, {\n ref: handleRef,\n href: other.href || other.to\n // `ButtonBase` processes `href` or `to` if `component` is set to 'button'\n ,\n component: (other.href || other.to) && component === 'div' ? 'button' : component,\n focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ...other,\n classes: classes,\n children: children\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? ListItemButton.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Defines the `align-items` style property.\n * @default 'center'\n */\n alignItems: PropTypes.oneOf(['center', 'flex-start']),\n /**\n * If `true`, the list item is focused during the first mount.\n * Focus will also be triggered if the value changes from false to true.\n * @default false\n */\n autoFocus: PropTypes.bool,\n /**\n * The content of the component if a `ListItemSecondaryAction` is used it must\n * be the last child.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, compact vertical padding designed for keyboard and mouse input is used.\n * The prop defaults to the value inherited from the parent List component.\n * @default false\n */\n dense: PropTypes.bool,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the left and right padding is removed.\n * @default false\n */\n disableGutters: PropTypes.bool,\n /**\n * If `true`, a 1px light border is added to the bottom of the list item.\n * @default false\n */\n divider: PropTypes.bool,\n /**\n * This prop can help identify which element has keyboard focus.\n * The class name will be applied when the element gains the focus through keyboard interaction.\n * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).\n * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).\n * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components\n * if needed.\n */\n focusVisibleClassName: PropTypes.string,\n /**\n * @ignore\n */\n href: PropTypes.string,\n /**\n * Use to apply selected styling.\n * @default false\n */\n selected: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default ListItemButton;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getListItemSecondaryActionClassesUtilityClass(slot) {\n return generateUtilityClass('MuiListItemSecondaryAction', slot);\n}\nconst listItemSecondaryActionClasses = generateUtilityClasses('MuiListItemSecondaryAction', ['root', 'disableGutters']);\nexport default listItemSecondaryActionClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport ListContext from \"../List/ListContext.js\";\nimport { getListItemSecondaryActionClassesUtilityClass } from \"./listItemSecondaryActionClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n disableGutters,\n classes\n } = ownerState;\n const slots = {\n root: ['root', disableGutters && 'disableGutters']\n };\n return composeClasses(slots, getListItemSecondaryActionClassesUtilityClass, classes);\n};\nconst ListItemSecondaryActionRoot = styled('div', {\n name: 'MuiListItemSecondaryAction',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.disableGutters && styles.disableGutters];\n }\n})({\n position: 'absolute',\n right: 16,\n top: '50%',\n transform: 'translateY(-50%)',\n variants: [{\n props: ({\n ownerState\n }) => ownerState.disableGutters,\n style: {\n right: 0\n }\n }]\n});\n\n/**\n * Must be used as the last child of ListItem to function properly.\n *\n * @deprecated Use the `secondaryAction` prop in the `ListItem` component instead. This component will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\nconst ListItemSecondaryAction = /*#__PURE__*/React.forwardRef(function ListItemSecondaryAction(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiListItemSecondaryAction'\n });\n const {\n className,\n ...other\n } = props;\n const context = React.useContext(ListContext);\n const ownerState = {\n ...props,\n disableGutters: context.disableGutters\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(ListItemSecondaryActionRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? ListItemSecondaryAction.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component, normally an `IconButton` or selection control.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nListItemSecondaryAction.muiName = 'ListItemSecondaryAction';\nexport default ListItemSecondaryAction;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport isHostComponent from \"../utils/isHostComponent.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport isMuiElement from \"../utils/isMuiElement.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport ListContext from \"../List/ListContext.js\";\nimport { getListItemUtilityClass } from \"./listItemClasses.js\";\nimport { listItemButtonClasses } from \"../ListItemButton/index.js\";\nimport ListItemSecondaryAction from \"../ListItemSecondaryAction/index.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const overridesResolver = (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.dense && styles.dense, ownerState.alignItems === 'flex-start' && styles.alignItemsFlexStart, ownerState.divider && styles.divider, !ownerState.disableGutters && styles.gutters, !ownerState.disablePadding && styles.padding, ownerState.hasSecondaryAction && styles.secondaryAction];\n};\nconst useUtilityClasses = ownerState => {\n const {\n alignItems,\n classes,\n dense,\n disableGutters,\n disablePadding,\n divider,\n hasSecondaryAction\n } = ownerState;\n const slots = {\n root: ['root', dense && 'dense', !disableGutters && 'gutters', !disablePadding && 'padding', divider && 'divider', alignItems === 'flex-start' && 'alignItemsFlexStart', hasSecondaryAction && 'secondaryAction'],\n container: ['container']\n };\n return composeClasses(slots, getListItemUtilityClass, classes);\n};\nexport const ListItemRoot = styled('div', {\n name: 'MuiListItem',\n slot: 'Root',\n overridesResolver\n})(memoTheme(({\n theme\n}) => ({\n display: 'flex',\n justifyContent: 'flex-start',\n alignItems: 'center',\n position: 'relative',\n textDecoration: 'none',\n width: '100%',\n boxSizing: 'border-box',\n textAlign: 'left',\n variants: [{\n props: ({\n ownerState\n }) => !ownerState.disablePadding,\n style: {\n paddingTop: 8,\n paddingBottom: 8\n }\n }, {\n props: ({\n ownerState\n }) => !ownerState.disablePadding && ownerState.dense,\n style: {\n paddingTop: 4,\n paddingBottom: 4\n }\n }, {\n props: ({\n ownerState\n }) => !ownerState.disablePadding && !ownerState.disableGutters,\n style: {\n paddingLeft: 16,\n paddingRight: 16\n }\n }, {\n props: ({\n ownerState\n }) => !ownerState.disablePadding && !!ownerState.secondaryAction,\n style: {\n // Add some space to avoid collision as `ListItemSecondaryAction`\n // is absolutely positioned.\n paddingRight: 48\n }\n }, {\n props: ({\n ownerState\n }) => !!ownerState.secondaryAction,\n style: {\n [`& > .${listItemButtonClasses.root}`]: {\n paddingRight: 48\n }\n }\n }, {\n props: {\n alignItems: 'flex-start'\n },\n style: {\n alignItems: 'flex-start'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.divider,\n style: {\n borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,\n backgroundClip: 'padding-box'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.button,\n style: {\n transition: theme.transitions.create('background-color', {\n duration: theme.transitions.duration.shortest\n }),\n '&:hover': {\n textDecoration: 'none',\n backgroundColor: (theme.vars || theme).palette.action.hover,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.hasSecondaryAction,\n style: {\n // Add some space to avoid collision as `ListItemSecondaryAction`\n // is absolutely positioned.\n paddingRight: 48\n }\n }]\n})));\nconst ListItemContainer = styled('li', {\n name: 'MuiListItem',\n slot: 'Container',\n overridesResolver: (props, styles) => styles.container\n})({\n position: 'relative'\n});\n\n/**\n * Uses an additional container component if `ListItemSecondaryAction` is the last child.\n */\nconst ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiListItem'\n });\n const {\n alignItems = 'center',\n children: childrenProp,\n className,\n component: componentProp,\n components = {},\n componentsProps = {},\n ContainerComponent = 'li',\n ContainerProps: {\n className: ContainerClassName,\n ...ContainerProps\n } = {},\n dense = false,\n disableGutters = false,\n disablePadding = false,\n divider = false,\n secondaryAction,\n slotProps = {},\n slots = {},\n ...other\n } = props;\n const context = React.useContext(ListContext);\n const childContext = React.useMemo(() => ({\n dense: dense || context.dense || false,\n alignItems,\n disableGutters\n }), [alignItems, context.dense, dense, disableGutters]);\n const listItemRef = React.useRef(null);\n const children = React.Children.toArray(childrenProp);\n\n // v4 implementation, deprecated in v6, will be removed in a future major release\n const hasSecondaryAction = children.length && isMuiElement(children[children.length - 1], ['ListItemSecondaryAction']);\n const ownerState = {\n ...props,\n alignItems,\n dense: childContext.dense,\n disableGutters,\n disablePadding,\n divider,\n hasSecondaryAction\n };\n const classes = useUtilityClasses(ownerState);\n const handleRef = useForkRef(listItemRef, ref);\n const Root = slots.root || components.Root || ListItemRoot;\n const rootProps = slotProps.root || componentsProps.root || {};\n const componentProps = {\n className: clsx(classes.root, rootProps.className, className),\n ...other\n };\n let Component = componentProp || 'li';\n\n // v4 implementation, deprecated in v6, will be removed in a future major release\n if (hasSecondaryAction) {\n // Use div by default.\n Component = !componentProps.component && !componentProp ? 'div' : Component;\n\n // Avoid nesting of li > li.\n if (ContainerComponent === 'li') {\n if (Component === 'li') {\n Component = 'div';\n } else if (componentProps.component === 'li') {\n componentProps.component = 'div';\n }\n }\n return /*#__PURE__*/_jsx(ListContext.Provider, {\n value: childContext,\n children: /*#__PURE__*/_jsxs(ListItemContainer, {\n as: ContainerComponent,\n className: clsx(classes.container, ContainerClassName),\n ref: handleRef,\n ownerState: ownerState,\n ...ContainerProps,\n children: [/*#__PURE__*/_jsx(Root, {\n ...rootProps,\n ...(!isHostComponent(Root) && {\n as: Component,\n ownerState: {\n ...ownerState,\n ...rootProps.ownerState\n }\n }),\n ...componentProps,\n children: children\n }), children.pop()]\n })\n });\n }\n return /*#__PURE__*/_jsx(ListContext.Provider, {\n value: childContext,\n children: /*#__PURE__*/_jsxs(Root, {\n ...rootProps,\n as: Component,\n ref: handleRef,\n ...(!isHostComponent(Root) && {\n ownerState: {\n ...ownerState,\n ...rootProps.ownerState\n }\n }),\n ...componentProps,\n children: [children, secondaryAction && /*#__PURE__*/_jsx(ListItemSecondaryAction, {\n children: secondaryAction\n })]\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? ListItem.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Defines the `align-items` style property.\n * @default 'center'\n */\n alignItems: PropTypes.oneOf(['center', 'flex-start']),\n /**\n * The content of the component if a `ListItemSecondaryAction` is used it must\n * be the last child.\n */\n children: chainPropTypes(PropTypes.node, props => {\n const children = React.Children.toArray(props.children);\n\n // React.Children.toArray(props.children).findLastIndex(isListItemSecondaryAction)\n let secondaryActionIndex = -1;\n for (let i = children.length - 1; i >= 0; i -= 1) {\n const child = children[i];\n if (isMuiElement(child, ['ListItemSecondaryAction'])) {\n secondaryActionIndex = i;\n break;\n }\n }\n\n // is ListItemSecondaryAction the last child of ListItem\n if (secondaryActionIndex !== -1 && secondaryActionIndex !== children.length - 1) {\n return new Error('MUI: You used an element after ListItemSecondaryAction. ' + 'For ListItem to detect that it has a secondary action ' + 'you must pass it as the last child to ListItem.');\n }\n return null;\n }),\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The components used for each slot inside.\n *\n * @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n * @default {}\n */\n components: PropTypes.shape({\n Root: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n * @default {}\n */\n componentsProps: PropTypes.shape({\n root: PropTypes.object\n }),\n /**\n * The container component used when a `ListItemSecondaryAction` is the last child.\n * @default 'li'\n * @deprecated Use the `component` or `slots.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n ContainerComponent: elementTypeAcceptingRef,\n /**\n * Props applied to the container component if used.\n * @default {}\n * @deprecated Use the `slotProps.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n ContainerProps: PropTypes.object,\n /**\n * If `true`, compact vertical padding designed for keyboard and mouse input is used.\n * The prop defaults to the value inherited from the parent List component.\n * @default false\n */\n dense: PropTypes.bool,\n /**\n * If `true`, the left and right padding is removed.\n * @default false\n */\n disableGutters: PropTypes.bool,\n /**\n * If `true`, all padding is removed.\n * @default false\n */\n disablePadding: PropTypes.bool,\n /**\n * If `true`, a 1px light border is added to the bottom of the list item.\n * @default false\n */\n divider: PropTypes.bool,\n /**\n * The element to display at the end of ListItem.\n */\n secondaryAction: PropTypes.node,\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.object\n }),\n /**\n * The components used for each slot inside.\n *\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default ListItem;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getListItemAvatarUtilityClass(slot) {\n return generateUtilityClass('MuiListItemAvatar', slot);\n}\nconst listItemAvatarClasses = generateUtilityClasses('MuiListItemAvatar', ['root', 'alignItemsFlexStart']);\nexport default listItemAvatarClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport ListContext from \"../List/ListContext.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getListItemAvatarUtilityClass } from \"./listItemAvatarClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n alignItems,\n classes\n } = ownerState;\n const slots = {\n root: ['root', alignItems === 'flex-start' && 'alignItemsFlexStart']\n };\n return composeClasses(slots, getListItemAvatarUtilityClass, classes);\n};\nconst ListItemAvatarRoot = styled('div', {\n name: 'MuiListItemAvatar',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.alignItems === 'flex-start' && styles.alignItemsFlexStart];\n }\n})({\n minWidth: 56,\n flexShrink: 0,\n variants: [{\n props: {\n alignItems: 'flex-start'\n },\n style: {\n marginTop: 8\n }\n }]\n});\n\n/**\n * A simple wrapper to apply `List` styles to an `Avatar`.\n */\nconst ListItemAvatar = /*#__PURE__*/React.forwardRef(function ListItemAvatar(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiListItemAvatar'\n });\n const {\n className,\n ...other\n } = props;\n const context = React.useContext(ListContext);\n const ownerState = {\n ...props,\n alignItems: context.alignItems\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(ListItemAvatarRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? ListItemAvatar.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component, normally an `Avatar`.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default ListItemAvatar;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getListItemIconUtilityClass(slot) {\n return generateUtilityClass('MuiListItemIcon', slot);\n}\nconst listItemIconClasses = generateUtilityClasses('MuiListItemIcon', ['root', 'alignItemsFlexStart']);\nexport default listItemIconClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getListItemIconUtilityClass } from \"./listItemIconClasses.js\";\nimport ListContext from \"../List/ListContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n alignItems,\n classes\n } = ownerState;\n const slots = {\n root: ['root', alignItems === 'flex-start' && 'alignItemsFlexStart']\n };\n return composeClasses(slots, getListItemIconUtilityClass, classes);\n};\nconst ListItemIconRoot = styled('div', {\n name: 'MuiListItemIcon',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.alignItems === 'flex-start' && styles.alignItemsFlexStart];\n }\n})(memoTheme(({\n theme\n}) => ({\n minWidth: 56,\n color: (theme.vars || theme).palette.action.active,\n flexShrink: 0,\n display: 'inline-flex',\n variants: [{\n props: {\n alignItems: 'flex-start'\n },\n style: {\n marginTop: 8\n }\n }]\n})));\n\n/**\n * A simple wrapper to apply `List` styles to an `Icon` or `SvgIcon`.\n */\nconst ListItemIcon = /*#__PURE__*/React.forwardRef(function ListItemIcon(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiListItemIcon'\n });\n const {\n className,\n ...other\n } = props;\n const context = React.useContext(ListContext);\n const ownerState = {\n ...props,\n alignItems: context.alignItems\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(ListItemIconRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? ListItemIcon.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component, normally `Icon`, `SvgIcon`,\n * or a `@mui/icons-material` SVG icon element.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default ListItemIcon;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getListItemTextUtilityClass(slot) {\n return generateUtilityClass('MuiListItemText', slot);\n}\nconst listItemTextClasses = generateUtilityClasses('MuiListItemText', ['root', 'multiline', 'dense', 'inset', 'primary', 'secondary']);\nexport default listItemTextClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport Typography, { typographyClasses } from \"../Typography/index.js\";\nimport ListContext from \"../List/ListContext.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport listItemTextClasses, { getListItemTextUtilityClass } from \"./listItemTextClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n inset,\n primary,\n secondary,\n dense\n } = ownerState;\n const slots = {\n root: ['root', inset && 'inset', dense && 'dense', primary && secondary && 'multiline'],\n primary: ['primary'],\n secondary: ['secondary']\n };\n return composeClasses(slots, getListItemTextUtilityClass, classes);\n};\nconst ListItemTextRoot = styled('div', {\n name: 'MuiListItemText',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [{\n [`& .${listItemTextClasses.primary}`]: styles.primary\n }, {\n [`& .${listItemTextClasses.secondary}`]: styles.secondary\n }, styles.root, ownerState.inset && styles.inset, ownerState.primary && ownerState.secondary && styles.multiline, ownerState.dense && styles.dense];\n }\n})({\n flex: '1 1 auto',\n minWidth: 0,\n marginTop: 4,\n marginBottom: 4,\n [`.${typographyClasses.root}:where(& .${listItemTextClasses.primary})`]: {\n display: 'block'\n },\n [`.${typographyClasses.root}:where(& .${listItemTextClasses.secondary})`]: {\n display: 'block'\n },\n variants: [{\n props: ({\n ownerState\n }) => ownerState.primary && ownerState.secondary,\n style: {\n marginTop: 6,\n marginBottom: 6\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.inset,\n style: {\n paddingLeft: 56\n }\n }]\n});\nconst ListItemText = /*#__PURE__*/React.forwardRef(function ListItemText(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiListItemText'\n });\n const {\n children,\n className,\n disableTypography = false,\n inset = false,\n primary: primaryProp,\n primaryTypographyProps,\n secondary: secondaryProp,\n secondaryTypographyProps,\n slots = {},\n slotProps = {},\n ...other\n } = props;\n const {\n dense\n } = React.useContext(ListContext);\n let primary = primaryProp != null ? primaryProp : children;\n let secondary = secondaryProp;\n const ownerState = {\n ...props,\n disableTypography,\n inset,\n primary: !!primary,\n secondary: !!secondary,\n dense\n };\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots,\n slotProps: {\n primary: primaryTypographyProps,\n secondary: secondaryTypographyProps,\n ...slotProps\n }\n };\n const [RootSlot, rootSlotProps] = useSlot('root', {\n className: clsx(classes.root, className),\n elementType: ListItemTextRoot,\n externalForwardedProps: {\n ...externalForwardedProps,\n ...other\n },\n ownerState,\n ref\n });\n const [PrimarySlot, primarySlotProps] = useSlot('primary', {\n className: classes.primary,\n elementType: Typography,\n externalForwardedProps,\n ownerState\n });\n const [SecondarySlot, secondarySlotProps] = useSlot('secondary', {\n className: classes.secondary,\n elementType: Typography,\n externalForwardedProps,\n ownerState\n });\n if (primary != null && primary.type !== Typography && !disableTypography) {\n primary = /*#__PURE__*/_jsx(PrimarySlot, {\n variant: dense ? 'body2' : 'body1',\n component: primarySlotProps?.variant ? undefined : 'span',\n ...primarySlotProps,\n children: primary\n });\n }\n if (secondary != null && secondary.type !== Typography && !disableTypography) {\n secondary = /*#__PURE__*/_jsx(SecondarySlot, {\n variant: \"body2\",\n color: \"textSecondary\",\n ...secondarySlotProps,\n children: secondary\n });\n }\n return /*#__PURE__*/_jsxs(RootSlot, {\n ...rootSlotProps,\n children: [primary, secondary]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? ListItemText.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Alias for the `primary` prop.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * If `true`, the children won't be wrapped by a Typography component.\n * This can be useful to render an alternative Typography variant by wrapping\n * the `children` (or `primary`) text, and optional `secondary` text\n * with the Typography component.\n * @default false\n */\n disableTypography: PropTypes.bool,\n /**\n * If `true`, the children are indented.\n * This should be used if there is no left avatar or left icon.\n * @default false\n */\n inset: PropTypes.bool,\n /**\n * The main content element.\n */\n primary: PropTypes.node,\n /**\n * These props will be forwarded to the primary typography component\n * (as long as disableTypography is not `true`).\n * @deprecated Use `slotProps.primary` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n primaryTypographyProps: PropTypes.object,\n /**\n * The secondary content element.\n */\n secondary: PropTypes.node,\n /**\n * These props will be forwarded to the secondary typography component\n * (as long as disableTypography is not `true`).\n * @deprecated Use `slotProps.secondary` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n secondaryTypographyProps: PropTypes.object,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n primary: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n secondary: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n primary: PropTypes.elementType,\n root: PropTypes.elementType,\n secondary: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default ListItemText;","'use client';\n\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport ownerDocument from \"../utils/ownerDocument.js\";\nimport List from \"../List/index.js\";\nimport getScrollbarSize from \"../utils/getScrollbarSize.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport useEnhancedEffect from \"../utils/useEnhancedEffect.js\";\nimport { ownerWindow } from \"../utils/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction nextItem(list, item, disableListWrap) {\n if (list === item) {\n return list.firstChild;\n }\n if (item && item.nextElementSibling) {\n return item.nextElementSibling;\n }\n return disableListWrap ? null : list.firstChild;\n}\nfunction previousItem(list, item, disableListWrap) {\n if (list === item) {\n return disableListWrap ? list.firstChild : list.lastChild;\n }\n if (item && item.previousElementSibling) {\n return item.previousElementSibling;\n }\n return disableListWrap ? null : list.lastChild;\n}\nfunction textCriteriaMatches(nextFocus, textCriteria) {\n if (textCriteria === undefined) {\n return true;\n }\n let text = nextFocus.innerText;\n if (text === undefined) {\n // jsdom doesn't support innerText\n text = nextFocus.textContent;\n }\n text = text.trim().toLowerCase();\n if (text.length === 0) {\n return false;\n }\n if (textCriteria.repeating) {\n return text[0] === textCriteria.keys[0];\n }\n return text.startsWith(textCriteria.keys.join(''));\n}\nfunction moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable, traversalFunction, textCriteria) {\n let wrappedOnce = false;\n let nextFocus = traversalFunction(list, currentFocus, currentFocus ? disableListWrap : false);\n while (nextFocus) {\n // Prevent infinite loop.\n if (nextFocus === list.firstChild) {\n if (wrappedOnce) {\n return false;\n }\n wrappedOnce = true;\n }\n\n // Same logic as useAutocomplete.js\n const nextFocusDisabled = disabledItemsFocusable ? false : nextFocus.disabled || nextFocus.getAttribute('aria-disabled') === 'true';\n if (!nextFocus.hasAttribute('tabindex') || !textCriteriaMatches(nextFocus, textCriteria) || nextFocusDisabled) {\n // Move to the next element.\n nextFocus = traversalFunction(list, nextFocus, disableListWrap);\n } else {\n nextFocus.focus();\n return true;\n }\n }\n return false;\n}\n\n/**\n * A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/.\n * It's exposed to help customization of the [`Menu`](/material-ui/api/menu/) component if you\n * use it separately you need to move focus into the component manually. Once\n * the focus is placed inside the component it is fully keyboard accessible.\n */\nconst MenuList = /*#__PURE__*/React.forwardRef(function MenuList(props, ref) {\n const {\n // private\n // eslint-disable-next-line react/prop-types\n actions,\n autoFocus = false,\n autoFocusItem = false,\n children,\n className,\n disabledItemsFocusable = false,\n disableListWrap = false,\n onKeyDown,\n variant = 'selectedMenu',\n ...other\n } = props;\n const listRef = React.useRef(null);\n const textCriteriaRef = React.useRef({\n keys: [],\n repeating: true,\n previousKeyMatched: true,\n lastTime: null\n });\n useEnhancedEffect(() => {\n if (autoFocus) {\n listRef.current.focus();\n }\n }, [autoFocus]);\n React.useImperativeHandle(actions, () => ({\n adjustStyleForScrollbar: (containerElement, {\n direction\n }) => {\n // Let's ignore that piece of logic if users are already overriding the width\n // of the menu.\n const noExplicitWidth = !listRef.current.style.width;\n if (containerElement.clientHeight < listRef.current.clientHeight && noExplicitWidth) {\n const scrollbarSize = `${getScrollbarSize(ownerWindow(containerElement))}px`;\n listRef.current.style[direction === 'rtl' ? 'paddingLeft' : 'paddingRight'] = scrollbarSize;\n listRef.current.style.width = `calc(100% + ${scrollbarSize})`;\n }\n return listRef.current;\n }\n }), []);\n const handleKeyDown = event => {\n const list = listRef.current;\n const key = event.key;\n const isModifierKeyPressed = event.ctrlKey || event.metaKey || event.altKey;\n if (isModifierKeyPressed) {\n if (onKeyDown) {\n onKeyDown(event);\n }\n return;\n }\n\n /**\n * @type {Element} - will always be defined since we are in a keydown handler\n * attached to an element. A keydown event is either dispatched to the activeElement\n * or document.body or document.documentElement. Only the first case will\n * trigger this specific handler.\n */\n const currentFocus = ownerDocument(list).activeElement;\n if (key === 'ArrowDown') {\n // Prevent scroll of the page\n event.preventDefault();\n moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable, nextItem);\n } else if (key === 'ArrowUp') {\n event.preventDefault();\n moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable, previousItem);\n } else if (key === 'Home') {\n event.preventDefault();\n moveFocus(list, null, disableListWrap, disabledItemsFocusable, nextItem);\n } else if (key === 'End') {\n event.preventDefault();\n moveFocus(list, null, disableListWrap, disabledItemsFocusable, previousItem);\n } else if (key.length === 1) {\n const criteria = textCriteriaRef.current;\n const lowerKey = key.toLowerCase();\n const currTime = performance.now();\n if (criteria.keys.length > 0) {\n // Reset\n if (currTime - criteria.lastTime > 500) {\n criteria.keys = [];\n criteria.repeating = true;\n criteria.previousKeyMatched = true;\n } else if (criteria.repeating && lowerKey !== criteria.keys[0]) {\n criteria.repeating = false;\n }\n }\n criteria.lastTime = currTime;\n criteria.keys.push(lowerKey);\n const keepFocusOnCurrent = currentFocus && !criteria.repeating && textCriteriaMatches(currentFocus, criteria);\n if (criteria.previousKeyMatched && (keepFocusOnCurrent || moveFocus(list, currentFocus, false, disabledItemsFocusable, nextItem, criteria))) {\n event.preventDefault();\n } else {\n criteria.previousKeyMatched = false;\n }\n }\n if (onKeyDown) {\n onKeyDown(event);\n }\n };\n const handleRef = useForkRef(listRef, ref);\n\n /**\n * the index of the item should receive focus\n * in a `variant=\"selectedMenu\"` it's the first `selected` item\n * otherwise it's the very first item.\n */\n let activeItemIndex = -1;\n // since we inject focus related props into children we have to do a lookahead\n // to check if there is a `selected` item. We're looking for the last `selected`\n // item and use the first valid item as a fallback\n React.Children.forEach(children, (child, index) => {\n if (! /*#__PURE__*/React.isValidElement(child)) {\n if (activeItemIndex === index) {\n activeItemIndex += 1;\n if (activeItemIndex >= children.length) {\n // there are no focusable items within the list.\n activeItemIndex = -1;\n }\n }\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (isFragment(child)) {\n console.error([\"MUI: The Menu component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n }\n }\n if (!child.props.disabled) {\n if (variant === 'selectedMenu' && child.props.selected) {\n activeItemIndex = index;\n } else if (activeItemIndex === -1) {\n activeItemIndex = index;\n }\n }\n if (activeItemIndex === index && (child.props.disabled || child.props.muiSkipListHighlight || child.type.muiSkipListHighlight)) {\n activeItemIndex += 1;\n if (activeItemIndex >= children.length) {\n // there are no focusable items within the list.\n activeItemIndex = -1;\n }\n }\n });\n const items = React.Children.map(children, (child, index) => {\n if (index === activeItemIndex) {\n const newChildProps = {};\n if (autoFocusItem) {\n newChildProps.autoFocus = true;\n }\n if (child.props.tabIndex === undefined && variant === 'selectedMenu') {\n newChildProps.tabIndex = 0;\n }\n return /*#__PURE__*/React.cloneElement(child, newChildProps);\n }\n return child;\n });\n return /*#__PURE__*/_jsx(List, {\n role: \"menu\",\n ref: handleRef,\n className: className,\n onKeyDown: handleKeyDown,\n tabIndex: autoFocus ? 0 : -1,\n ...other,\n children: items\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? MenuList.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If `true`, will focus the `[role=\"menu\"]` container and move into tab order.\n * @default false\n */\n autoFocus: PropTypes.bool,\n /**\n * If `true`, will focus the first menuitem if `variant=\"menu\"` or selected item\n * if `variant=\"selectedMenu\"`.\n * @default false\n */\n autoFocusItem: PropTypes.bool,\n /**\n * MenuList contents, normally `MenuItem`s.\n */\n children: PropTypes.node,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * If `true`, will allow focus on disabled items.\n * @default false\n */\n disabledItemsFocusable: PropTypes.bool,\n /**\n * If `true`, the menu items will not wrap focus.\n * @default false\n */\n disableListWrap: PropTypes.bool,\n /**\n * @ignore\n */\n onKeyDown: PropTypes.func,\n /**\n * The variant to use. Use `menu` to prevent selected items from impacting the initial focus\n * and the vertical alignment relative to the anchor element.\n * @default 'selectedMenu'\n */\n variant: PropTypes.oneOf(['menu', 'selectedMenu'])\n} : void 0;\nexport default MenuList;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getPopoverUtilityClass(slot) {\n return generateUtilityClass('MuiPopover', slot);\n}\nconst popoverClasses = generateUtilityClasses('MuiPopover', ['root', 'paper']);\nexport default popoverClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport HTMLElementType from '@mui/utils/HTMLElementType';\nimport refType from '@mui/utils/refType';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport integerPropType from '@mui/utils/integerPropType';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport isHostComponent from \"../utils/isHostComponent.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport debounce from \"../utils/debounce.js\";\nimport ownerDocument from \"../utils/ownerDocument.js\";\nimport ownerWindow from \"../utils/ownerWindow.js\";\nimport Grow from \"../Grow/index.js\";\nimport Modal from \"../Modal/index.js\";\nimport PaperBase from \"../Paper/index.js\";\nimport { getPopoverUtilityClass } from \"./popoverClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { mergeSlotProps } from \"../utils/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function getOffsetTop(rect, vertical) {\n let offset = 0;\n if (typeof vertical === 'number') {\n offset = vertical;\n } else if (vertical === 'center') {\n offset = rect.height / 2;\n } else if (vertical === 'bottom') {\n offset = rect.height;\n }\n return offset;\n}\nexport function getOffsetLeft(rect, horizontal) {\n let offset = 0;\n if (typeof horizontal === 'number') {\n offset = horizontal;\n } else if (horizontal === 'center') {\n offset = rect.width / 2;\n } else if (horizontal === 'right') {\n offset = rect.width;\n }\n return offset;\n}\nfunction getTransformOriginValue(transformOrigin) {\n return [transformOrigin.horizontal, transformOrigin.vertical].map(n => typeof n === 'number' ? `${n}px` : n).join(' ');\n}\nfunction resolveAnchorEl(anchorEl) {\n return typeof anchorEl === 'function' ? anchorEl() : anchorEl;\n}\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n paper: ['paper']\n };\n return composeClasses(slots, getPopoverUtilityClass, classes);\n};\nexport const PopoverRoot = styled(Modal, {\n name: 'MuiPopover',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({});\nexport const PopoverPaper = styled(PaperBase, {\n name: 'MuiPopover',\n slot: 'Paper',\n overridesResolver: (props, styles) => styles.paper\n})({\n position: 'absolute',\n overflowY: 'auto',\n overflowX: 'hidden',\n // So we see the popover when it's empty.\n // It's most likely on issue on userland.\n minWidth: 16,\n minHeight: 16,\n maxWidth: 'calc(100% - 32px)',\n maxHeight: 'calc(100% - 32px)',\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0\n});\nconst Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiPopover'\n });\n const {\n action,\n anchorEl,\n anchorOrigin = {\n vertical: 'top',\n horizontal: 'left'\n },\n anchorPosition,\n anchorReference = 'anchorEl',\n children,\n className,\n container: containerProp,\n elevation = 8,\n marginThreshold = 16,\n open,\n PaperProps: PaperPropsProp = {},\n // TODO: remove in v7\n slots = {},\n slotProps = {},\n transformOrigin = {\n vertical: 'top',\n horizontal: 'left'\n },\n TransitionComponent,\n // TODO: remove in v7\n transitionDuration: transitionDurationProp = 'auto',\n TransitionProps = {},\n // TODO: remove in v7\n disableScrollLock = false,\n ...other\n } = props;\n const paperRef = React.useRef();\n const ownerState = {\n ...props,\n anchorOrigin,\n anchorReference,\n elevation,\n marginThreshold,\n transformOrigin,\n TransitionComponent,\n transitionDuration: transitionDurationProp,\n TransitionProps\n };\n const classes = useUtilityClasses(ownerState);\n\n // Returns the top/left offset of the position\n // to attach to on the anchor element (or body if none is provided)\n const getAnchorOffset = React.useCallback(() => {\n if (anchorReference === 'anchorPosition') {\n if (process.env.NODE_ENV !== 'production') {\n if (!anchorPosition) {\n console.error('MUI: You need to provide a `anchorPosition` prop when using ' + '<Popover anchorReference=\"anchorPosition\" />.');\n }\n }\n return anchorPosition;\n }\n const resolvedAnchorEl = resolveAnchorEl(anchorEl);\n\n // If an anchor element wasn't provided, just use the parent body element of this Popover\n const anchorElement = resolvedAnchorEl && resolvedAnchorEl.nodeType === 1 ? resolvedAnchorEl : ownerDocument(paperRef.current).body;\n const anchorRect = anchorElement.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'production') {\n const box = anchorElement.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n console.warn(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n }\n return {\n top: anchorRect.top + getOffsetTop(anchorRect, anchorOrigin.vertical),\n left: anchorRect.left + getOffsetLeft(anchorRect, anchorOrigin.horizontal)\n };\n }, [anchorEl, anchorOrigin.horizontal, anchorOrigin.vertical, anchorPosition, anchorReference]);\n\n // Returns the base transform origin using the element\n const getTransformOrigin = React.useCallback(elemRect => {\n return {\n vertical: getOffsetTop(elemRect, transformOrigin.vertical),\n horizontal: getOffsetLeft(elemRect, transformOrigin.horizontal)\n };\n }, [transformOrigin.horizontal, transformOrigin.vertical]);\n const getPositioningStyle = React.useCallback(element => {\n const elemRect = {\n width: element.offsetWidth,\n height: element.offsetHeight\n };\n\n // Get the transform origin point on the element itself\n const elemTransformOrigin = getTransformOrigin(elemRect);\n if (anchorReference === 'none') {\n return {\n top: null,\n left: null,\n transformOrigin: getTransformOriginValue(elemTransformOrigin)\n };\n }\n\n // Get the offset of the anchoring element\n const anchorOffset = getAnchorOffset();\n\n // Calculate element positioning\n let top = anchorOffset.top - elemTransformOrigin.vertical;\n let left = anchorOffset.left - elemTransformOrigin.horizontal;\n const bottom = top + elemRect.height;\n const right = left + elemRect.width;\n\n // Use the parent window of the anchorEl if provided\n const containerWindow = ownerWindow(resolveAnchorEl(anchorEl));\n\n // Window thresholds taking required margin into account\n const heightThreshold = containerWindow.innerHeight - marginThreshold;\n const widthThreshold = containerWindow.innerWidth - marginThreshold;\n\n // Check if the vertical axis needs shifting\n if (marginThreshold !== null && top < marginThreshold) {\n const diff = top - marginThreshold;\n top -= diff;\n elemTransformOrigin.vertical += diff;\n } else if (marginThreshold !== null && bottom > heightThreshold) {\n const diff = bottom - heightThreshold;\n top -= diff;\n elemTransformOrigin.vertical += diff;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (elemRect.height > heightThreshold && elemRect.height && heightThreshold) {\n console.error(['MUI: The popover component is too tall.', `Some part of it can not be seen on the screen (${elemRect.height - heightThreshold}px).`, 'Please consider adding a `max-height` to improve the user-experience.'].join('\\n'));\n }\n }\n\n // Check if the horizontal axis needs shifting\n if (marginThreshold !== null && left < marginThreshold) {\n const diff = left - marginThreshold;\n left -= diff;\n elemTransformOrigin.horizontal += diff;\n } else if (right > widthThreshold) {\n const diff = right - widthThreshold;\n left -= diff;\n elemTransformOrigin.horizontal += diff;\n }\n return {\n top: `${Math.round(top)}px`,\n left: `${Math.round(left)}px`,\n transformOrigin: getTransformOriginValue(elemTransformOrigin)\n };\n }, [anchorEl, anchorReference, getAnchorOffset, getTransformOrigin, marginThreshold]);\n const [isPositioned, setIsPositioned] = React.useState(open);\n const setPositioningStyles = React.useCallback(() => {\n const element = paperRef.current;\n if (!element) {\n return;\n }\n const positioning = getPositioningStyle(element);\n if (positioning.top !== null) {\n element.style.setProperty('top', positioning.top);\n }\n if (positioning.left !== null) {\n element.style.left = positioning.left;\n }\n element.style.transformOrigin = positioning.transformOrigin;\n setIsPositioned(true);\n }, [getPositioningStyle]);\n React.useEffect(() => {\n if (disableScrollLock) {\n window.addEventListener('scroll', setPositioningStyles);\n }\n return () => window.removeEventListener('scroll', setPositioningStyles);\n }, [anchorEl, disableScrollLock, setPositioningStyles]);\n const handleEntering = () => {\n setPositioningStyles();\n };\n const handleExited = () => {\n setIsPositioned(false);\n };\n React.useEffect(() => {\n if (open) {\n setPositioningStyles();\n }\n });\n React.useImperativeHandle(action, () => open ? {\n updatePosition: () => {\n setPositioningStyles();\n }\n } : null, [open, setPositioningStyles]);\n React.useEffect(() => {\n if (!open) {\n return undefined;\n }\n const handleResize = debounce(() => {\n setPositioningStyles();\n });\n const containerWindow = ownerWindow(resolveAnchorEl(anchorEl));\n containerWindow.addEventListener('resize', handleResize);\n return () => {\n handleResize.clear();\n containerWindow.removeEventListener('resize', handleResize);\n };\n }, [anchorEl, open, setPositioningStyles]);\n let transitionDuration = transitionDurationProp;\n const externalForwardedProps = {\n slots: {\n transition: TransitionComponent,\n ...slots\n },\n slotProps: {\n transition: TransitionProps,\n paper: PaperPropsProp,\n ...slotProps\n }\n };\n const [TransitionSlot, transitionSlotProps] = useSlot('transition', {\n elementType: Grow,\n externalForwardedProps,\n ownerState,\n getSlotProps: handlers => ({\n ...handlers,\n onEntering: (element, isAppearing) => {\n handlers.onEntering?.(element, isAppearing);\n handleEntering();\n },\n onExited: element => {\n handlers.onExited?.(element);\n handleExited();\n }\n }),\n additionalProps: {\n appear: true,\n in: open\n }\n });\n if (transitionDurationProp === 'auto' && !TransitionSlot.muiSupportAuto) {\n transitionDuration = undefined;\n }\n\n // If the container prop is provided, use that\n // If the anchorEl prop is provided, use its parent body element as the container\n // If neither are provided let the Modal take care of choosing the container\n const container = containerProp || (anchorEl ? ownerDocument(resolveAnchorEl(anchorEl)).body : undefined);\n const [RootSlot, {\n slots: rootSlotsProp,\n slotProps: rootSlotPropsProp,\n ...rootProps\n }] = useSlot('root', {\n ref,\n elementType: PopoverRoot,\n externalForwardedProps: {\n ...externalForwardedProps,\n ...other\n },\n shouldForwardComponentProp: true,\n additionalProps: {\n slots: {\n backdrop: slots.backdrop\n },\n slotProps: {\n backdrop: mergeSlotProps(typeof slotProps.backdrop === 'function' ? slotProps.backdrop(ownerState) : slotProps.backdrop, {\n invisible: true\n })\n },\n container,\n open\n },\n ownerState,\n className: clsx(classes.root, className)\n });\n const [PaperSlot, paperProps] = useSlot('paper', {\n ref: paperRef,\n className: classes.paper,\n elementType: PopoverPaper,\n externalForwardedProps,\n shouldForwardComponentProp: true,\n additionalProps: {\n elevation,\n style: isPositioned ? undefined : {\n opacity: 0\n }\n },\n ownerState\n });\n return /*#__PURE__*/_jsx(RootSlot, {\n ...rootProps,\n ...(!isHostComponent(RootSlot) && {\n slots: rootSlotsProp,\n slotProps: rootSlotPropsProp,\n disableScrollLock\n }),\n children: /*#__PURE__*/_jsx(TransitionSlot, {\n ...transitionSlotProps,\n timeout: transitionDuration,\n children: /*#__PURE__*/_jsx(PaperSlot, {\n ...paperProps,\n children: children\n })\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Popover.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * A ref for imperative actions.\n * It currently only supports updatePosition() action.\n */\n action: refType,\n /**\n * An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),\n * or a function that returns either.\n * It's used to set the position of the popover.\n */\n anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.func]), props => {\n if (props.open && (!props.anchorReference || props.anchorReference === 'anchorEl')) {\n const resolvedAnchorEl = resolveAnchorEl(props.anchorEl);\n if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {\n const box = resolvedAnchorEl.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n } else {\n return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', `It should be an Element or PopoverVirtualElement instance but it's \\`${resolvedAnchorEl}\\` instead.`].join('\\n'));\n }\n }\n return null;\n }),\n /**\n * This is the point on the anchor where the popover's\n * `anchorEl` will attach to. This is not used when the\n * anchorReference is 'anchorPosition'.\n *\n * Options:\n * vertical: [top, center, bottom];\n * horizontal: [left, center, right].\n * @default {\n * vertical: 'top',\n * horizontal: 'left',\n * }\n */\n anchorOrigin: PropTypes.shape({\n horizontal: PropTypes.oneOfType([PropTypes.oneOf(['center', 'left', 'right']), PropTypes.number]).isRequired,\n vertical: PropTypes.oneOfType([PropTypes.oneOf(['bottom', 'center', 'top']), PropTypes.number]).isRequired\n }),\n /**\n * This is the position that may be used to set the position of the popover.\n * The coordinates are relative to the application's client area.\n */\n anchorPosition: PropTypes.shape({\n left: PropTypes.number.isRequired,\n top: PropTypes.number.isRequired\n }),\n /**\n * This determines which anchor prop to refer to when setting\n * the position of the popover.\n * @default 'anchorEl'\n */\n anchorReference: PropTypes.oneOf(['anchorEl', 'anchorPosition', 'none']),\n /**\n * A backdrop component. This prop enables custom backdrop rendering.\n * @deprecated Use `slots.backdrop` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n * @default styled(Backdrop, {\n * name: 'MuiModal',\n * slot: 'Backdrop',\n * overridesResolver: (props, styles) => {\n * return styles.backdrop;\n * },\n * })({\n * zIndex: -1,\n * })\n */\n BackdropComponent: PropTypes.elementType,\n /**\n * Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.\n * @deprecated Use `slotProps.backdrop` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n BackdropProps: PropTypes.object,\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * An HTML element, component instance, or function that returns either.\n * The `container` will passed to the Modal component.\n *\n * By default, it uses the body of the anchorEl's top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * Disable the scroll lock behavior.\n * @default false\n */\n disableScrollLock: PropTypes.bool,\n /**\n * The elevation of the popover.\n * @default 8\n */\n elevation: integerPropType,\n /**\n * Specifies how close to the edge of the window the popover can appear.\n * If null, the popover will not be constrained by the window.\n * @default 16\n */\n marginThreshold: PropTypes.number,\n /**\n * Callback fired when the component requests to be closed.\n * The `reason` parameter can optionally be used to control the response to `onClose`.\n */\n onClose: PropTypes.func,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.\n *\n * This prop is an alias for `slotProps.paper` and will be overriden by it if both are used.\n * @deprecated Use `slotProps.paper` instead.\n *\n * @default {}\n */\n PaperProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({\n component: elementTypeAcceptingRef\n }),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n paper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n backdrop: PropTypes.elementType,\n paper: PropTypes.elementType,\n root: PropTypes.elementType,\n transition: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * This is the point on the popover which\n * will attach to the anchor's origin.\n *\n * Options:\n * vertical: [top, center, bottom, x(px)];\n * horizontal: [left, center, right, x(px)].\n * @default {\n * vertical: 'top',\n * horizontal: 'left',\n * }\n */\n transformOrigin: PropTypes.shape({\n horizontal: PropTypes.oneOfType([PropTypes.oneOf(['center', 'left', 'right']), PropTypes.number]).isRequired,\n vertical: PropTypes.oneOfType([PropTypes.oneOf(['bottom', 'center', 'top']), PropTypes.number]).isRequired\n }),\n /**\n * The component used for the transition.\n * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n * @deprecated use the `slots.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n * @default Grow\n */\n TransitionComponent: PropTypes.elementType,\n /**\n * Set to 'auto' to automatically calculate transition time based on height.\n * @default 'auto'\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n /**\n * Props applied to the transition element.\n * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.\n * @deprecated use the `slotProps.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n * @default {}\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default Popover;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getMenuUtilityClass(slot) {\n return generateUtilityClass('MuiMenu', slot);\n}\nconst menuClasses = generateUtilityClasses('MuiMenu', ['root', 'paper', 'list']);\nexport default menuClasses;","'use client';\n\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport HTMLElementType from '@mui/utils/HTMLElementType';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport MenuList from \"../MenuList/index.js\";\nimport Popover, { PopoverPaper } from \"../Popover/index.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getMenuUtilityClass } from \"./menuClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst RTL_ORIGIN = {\n vertical: 'top',\n horizontal: 'right'\n};\nconst LTR_ORIGIN = {\n vertical: 'top',\n horizontal: 'left'\n};\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n paper: ['paper'],\n list: ['list']\n };\n return composeClasses(slots, getMenuUtilityClass, classes);\n};\nconst MenuRoot = styled(Popover, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiMenu',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({});\nexport const MenuPaper = styled(PopoverPaper, {\n name: 'MuiMenu',\n slot: 'Paper',\n overridesResolver: (props, styles) => styles.paper\n})({\n // specZ: The maximum height of a simple menu should be one or more rows less than the view\n // height. This ensures a tappable area outside of the simple menu with which to dismiss\n // the menu.\n maxHeight: 'calc(100% - 96px)',\n // Add iOS momentum scrolling for iOS < 13.0\n WebkitOverflowScrolling: 'touch'\n});\nconst MenuMenuList = styled(MenuList, {\n name: 'MuiMenu',\n slot: 'List',\n overridesResolver: (props, styles) => styles.list\n})({\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0\n});\nconst Menu = /*#__PURE__*/React.forwardRef(function Menu(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiMenu'\n });\n const {\n autoFocus = true,\n children,\n className,\n disableAutoFocusItem = false,\n MenuListProps = {},\n onClose,\n open,\n PaperProps = {},\n PopoverClasses,\n transitionDuration = 'auto',\n TransitionProps: {\n onEntering,\n ...TransitionProps\n } = {},\n variant = 'selectedMenu',\n slots = {},\n slotProps = {},\n ...other\n } = props;\n const isRtl = useRtl();\n const ownerState = {\n ...props,\n autoFocus,\n disableAutoFocusItem,\n MenuListProps,\n onEntering,\n PaperProps,\n transitionDuration,\n TransitionProps,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n const autoFocusItem = autoFocus && !disableAutoFocusItem && open;\n const menuListActionsRef = React.useRef(null);\n const handleEntering = (element, isAppearing) => {\n if (menuListActionsRef.current) {\n menuListActionsRef.current.adjustStyleForScrollbar(element, {\n direction: isRtl ? 'rtl' : 'ltr'\n });\n }\n if (onEntering) {\n onEntering(element, isAppearing);\n }\n };\n const handleListKeyDown = event => {\n if (event.key === 'Tab') {\n event.preventDefault();\n if (onClose) {\n onClose(event, 'tabKeyDown');\n }\n }\n };\n\n /**\n * the index of the item should receive focus\n * in a `variant=\"selectedMenu\"` it's the first `selected` item\n * otherwise it's the very first item.\n */\n let activeItemIndex = -1;\n // since we inject focus related props into children we have to do a lookahead\n // to check if there is a `selected` item. We're looking for the last `selected`\n // item and use the first valid item as a fallback\n React.Children.map(children, (child, index) => {\n if (! /*#__PURE__*/React.isValidElement(child)) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (isFragment(child)) {\n console.error([\"MUI: The Menu component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n }\n }\n if (!child.props.disabled) {\n if (variant === 'selectedMenu' && child.props.selected) {\n activeItemIndex = index;\n } else if (activeItemIndex === -1) {\n activeItemIndex = index;\n }\n }\n });\n const externalForwardedProps = {\n slots,\n slotProps: {\n list: MenuListProps,\n transition: TransitionProps,\n paper: PaperProps,\n ...slotProps\n }\n };\n const rootSlotProps = useSlotProps({\n elementType: slots.root,\n externalSlotProps: slotProps.root,\n ownerState,\n className: [classes.root, className]\n });\n const [PaperSlot, paperSlotProps] = useSlot('paper', {\n className: classes.paper,\n elementType: MenuPaper,\n externalForwardedProps,\n shouldForwardComponentProp: true,\n ownerState\n });\n const [ListSlot, listSlotProps] = useSlot('list', {\n className: clsx(classes.list, MenuListProps.className),\n elementType: MenuMenuList,\n shouldForwardComponentProp: true,\n externalForwardedProps,\n getSlotProps: handlers => ({\n ...handlers,\n onKeyDown: event => {\n handleListKeyDown(event);\n handlers.onKeyDown?.(event);\n }\n }),\n ownerState\n });\n const resolvedTransitionProps = typeof externalForwardedProps.slotProps.transition === 'function' ? externalForwardedProps.slotProps.transition(ownerState) : externalForwardedProps.slotProps.transition;\n return /*#__PURE__*/_jsx(MenuRoot, {\n onClose: onClose,\n anchorOrigin: {\n vertical: 'bottom',\n horizontal: isRtl ? 'right' : 'left'\n },\n transformOrigin: isRtl ? RTL_ORIGIN : LTR_ORIGIN,\n slots: {\n root: slots.root,\n paper: PaperSlot,\n backdrop: slots.backdrop,\n ...(slots.transition && {\n // TODO: pass `slots.transition` directly once `TransitionComponent` is removed from Popover\n transition: slots.transition\n })\n },\n slotProps: {\n root: rootSlotProps,\n paper: paperSlotProps,\n backdrop: typeof slotProps.backdrop === 'function' ? slotProps.backdrop(ownerState) : slotProps.backdrop,\n transition: {\n ...resolvedTransitionProps,\n onEntering: (...args) => {\n handleEntering(...args);\n resolvedTransitionProps?.onEntering?.(...args);\n }\n }\n },\n open: open,\n ref: ref,\n transitionDuration: transitionDuration,\n ownerState: ownerState,\n ...other,\n classes: PopoverClasses,\n children: /*#__PURE__*/_jsx(ListSlot, {\n actions: menuListActionsRef,\n autoFocus: autoFocus && (activeItemIndex === -1 || disableAutoFocusItem),\n autoFocusItem: autoFocusItem,\n variant: variant,\n ...listSlotProps,\n children: children\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Menu.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * An HTML element, or a function that returns one.\n * It's used to set the position of the menu.\n */\n anchorEl: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * If `true` (Default) will focus the `[role=\"menu\"]` if no focusable child is found. Disabled\n * children are not focusable. If you set this prop to `false` focus will be placed\n * on the parent modal container. This has severe accessibility implications\n * and should only be considered if you manage focus otherwise.\n * @default true\n */\n autoFocus: PropTypes.bool,\n /**\n * Menu contents, normally `MenuItem`s.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * When opening the menu will not focus the active item but the `[role=\"menu\"]`\n * unless `autoFocus` is also set to `false`. Not using the default means not\n * following WAI-ARIA authoring practices. Please be considerate about possible\n * accessibility implications.\n * @default false\n */\n disableAutoFocusItem: PropTypes.bool,\n /**\n * Props applied to the [`MenuList`](https://mui.com/material-ui/api/menu-list/) element.\n * @deprecated use the `slotProps.list` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n * @default {}\n */\n MenuListProps: PropTypes.object,\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {object} event The event source of the callback.\n * @param {string} reason Can be: `\"escapeKeyDown\"`, `\"backdropClick\"`, `\"tabKeyDown\"`.\n */\n onClose: PropTypes.func,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * @ignore\n */\n PaperProps: PropTypes.object,\n /**\n * `classes` prop applied to the [`Popover`](https://mui.com/material-ui/api/popover/) element.\n */\n PopoverClasses: PropTypes.object,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n list: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n paper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n backdrop: PropTypes.elementType,\n list: PropTypes.elementType,\n paper: PropTypes.elementType,\n root: PropTypes.elementType,\n transition: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The length of the transition in `ms`, or 'auto'\n * @default 'auto'\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n /**\n * Props applied to the transition element.\n * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.\n * @deprecated use the `slotProps.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n * @default {}\n */\n TransitionProps: PropTypes.object,\n /**\n * The variant to use. Use `menu` to prevent selected items from impacting the initial focus.\n * @default 'selectedMenu'\n */\n variant: PropTypes.oneOf(['menu', 'selectedMenu'])\n} : void 0;\nexport default Menu;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getMenuItemUtilityClass(slot) {\n return generateUtilityClass('MuiMenuItem', slot);\n}\nconst menuItemClasses = generateUtilityClasses('MuiMenuItem', ['root', 'focusVisible', 'dense', 'disabled', 'divider', 'gutters', 'selected']);\nexport default menuItemClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport ListContext from \"../List/ListContext.js\";\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport useEnhancedEffect from \"../utils/useEnhancedEffect.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport { dividerClasses } from \"../Divider/index.js\";\nimport { listItemIconClasses } from \"../ListItemIcon/index.js\";\nimport { listItemTextClasses } from \"../ListItemText/index.js\";\nimport menuItemClasses, { getMenuItemUtilityClass } from \"./menuItemClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const overridesResolver = (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.dense && styles.dense, ownerState.divider && styles.divider, !ownerState.disableGutters && styles.gutters];\n};\nconst useUtilityClasses = ownerState => {\n const {\n disabled,\n dense,\n divider,\n disableGutters,\n selected,\n classes\n } = ownerState;\n const slots = {\n root: ['root', dense && 'dense', disabled && 'disabled', !disableGutters && 'gutters', divider && 'divider', selected && 'selected']\n };\n const composedClasses = composeClasses(slots, getMenuItemUtilityClass, classes);\n return {\n ...classes,\n ...composedClasses\n };\n};\nconst MenuItemRoot = styled(ButtonBase, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiMenuItem',\n slot: 'Root',\n overridesResolver\n})(memoTheme(({\n theme\n}) => ({\n ...theme.typography.body1,\n display: 'flex',\n justifyContent: 'flex-start',\n alignItems: 'center',\n position: 'relative',\n textDecoration: 'none',\n minHeight: 48,\n paddingTop: 6,\n paddingBottom: 6,\n boxSizing: 'border-box',\n whiteSpace: 'nowrap',\n '&:hover': {\n textDecoration: 'none',\n backgroundColor: (theme.vars || theme).palette.action.hover,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n [`&.${menuItemClasses.selected}`]: {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),\n [`&.${menuItemClasses.focusVisible}`]: {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)\n }\n },\n [`&.${menuItemClasses.selected}:hover`]: {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)\n }\n },\n [`&.${menuItemClasses.focusVisible}`]: {\n backgroundColor: (theme.vars || theme).palette.action.focus\n },\n [`&.${menuItemClasses.disabled}`]: {\n opacity: (theme.vars || theme).palette.action.disabledOpacity\n },\n [`& + .${dividerClasses.root}`]: {\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n },\n [`& + .${dividerClasses.inset}`]: {\n marginLeft: 52\n },\n [`& .${listItemTextClasses.root}`]: {\n marginTop: 0,\n marginBottom: 0\n },\n [`& .${listItemTextClasses.inset}`]: {\n paddingLeft: 36\n },\n [`& .${listItemIconClasses.root}`]: {\n minWidth: 36\n },\n variants: [{\n props: ({\n ownerState\n }) => !ownerState.disableGutters,\n style: {\n paddingLeft: 16,\n paddingRight: 16\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.divider,\n style: {\n borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,\n backgroundClip: 'padding-box'\n }\n }, {\n props: ({\n ownerState\n }) => !ownerState.dense,\n style: {\n [theme.breakpoints.up('sm')]: {\n minHeight: 'auto'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.dense,\n style: {\n minHeight: 32,\n // https://m2.material.io/components/menus#specs > Dense\n paddingTop: 4,\n paddingBottom: 4,\n ...theme.typography.body2,\n [`& .${listItemIconClasses.root} svg`]: {\n fontSize: '1.25rem'\n }\n }\n }]\n})));\nconst MenuItem = /*#__PURE__*/React.forwardRef(function MenuItem(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiMenuItem'\n });\n const {\n autoFocus = false,\n component = 'li',\n dense = false,\n divider = false,\n disableGutters = false,\n focusVisibleClassName,\n role = 'menuitem',\n tabIndex: tabIndexProp,\n className,\n ...other\n } = props;\n const context = React.useContext(ListContext);\n const childContext = React.useMemo(() => ({\n dense: dense || context.dense || false,\n disableGutters\n }), [context.dense, dense, disableGutters]);\n const menuItemRef = React.useRef(null);\n useEnhancedEffect(() => {\n if (autoFocus) {\n if (menuItemRef.current) {\n menuItemRef.current.focus();\n } else if (process.env.NODE_ENV !== 'production') {\n console.error('MUI: Unable to set focus to a MenuItem whose component has not been rendered.');\n }\n }\n }, [autoFocus]);\n const ownerState = {\n ...props,\n dense: childContext.dense,\n divider,\n disableGutters\n };\n const classes = useUtilityClasses(props);\n const handleRef = useForkRef(menuItemRef, ref);\n let tabIndex;\n if (!props.disabled) {\n tabIndex = tabIndexProp !== undefined ? tabIndexProp : -1;\n }\n return /*#__PURE__*/_jsx(ListContext.Provider, {\n value: childContext,\n children: /*#__PURE__*/_jsx(MenuItemRoot, {\n ref: handleRef,\n role: role,\n tabIndex: tabIndex,\n component: component,\n focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),\n className: clsx(classes.root, className),\n ...other,\n ownerState: ownerState,\n classes: classes\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? MenuItem.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If `true`, the list item is focused during the first mount.\n * Focus will also be triggered if the value changes from false to true.\n * @default false\n */\n autoFocus: PropTypes.bool,\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, compact vertical padding designed for keyboard and mouse input is used.\n * The prop defaults to the value inherited from the parent Menu component.\n * @default false\n */\n dense: PropTypes.bool,\n /**\n * @ignore\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the left and right padding is removed.\n * @default false\n */\n disableGutters: PropTypes.bool,\n /**\n * If `true`, a 1px light border is added to the bottom of the menu item.\n * @default false\n */\n divider: PropTypes.bool,\n /**\n * This prop can help identify which element has keyboard focus.\n * The class name will be applied when the element gains the focus through keyboard interaction.\n * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).\n * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).\n * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components\n * if needed.\n */\n focusVisibleClassName: PropTypes.string,\n /**\n * @ignore\n */\n role: PropTypes /* @typescript-to-proptypes-ignore */.string,\n /**\n * If `true`, the component is selected.\n * @default false\n */\n selected: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * @default 0\n */\n tabIndex: PropTypes.number\n} : void 0;\nexport default MenuItem;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getNativeSelectUtilityClasses(slot) {\n return generateUtilityClass('MuiNativeSelect', slot);\n}\nconst nativeSelectClasses = generateUtilityClasses('MuiNativeSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput', 'error']);\nexport default nativeSelectClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from \"../utils/capitalize.js\";\nimport nativeSelectClasses, { getNativeSelectUtilityClasses } from \"./nativeSelectClasses.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n variant,\n disabled,\n multiple,\n open,\n error\n } = ownerState;\n const slots = {\n select: ['select', variant, disabled && 'disabled', multiple && 'multiple', error && 'error'],\n icon: ['icon', `icon${capitalize(variant)}`, open && 'iconOpen', disabled && 'disabled']\n };\n return composeClasses(slots, getNativeSelectUtilityClasses, classes);\n};\nexport const StyledSelectSelect = styled('select')(({\n theme\n}) => ({\n // Reset\n MozAppearance: 'none',\n // Reset\n WebkitAppearance: 'none',\n // When interacting quickly, the text can end up selected.\n // Native select can't be selected either.\n userSelect: 'none',\n // Reset\n borderRadius: 0,\n cursor: 'pointer',\n '&:focus': {\n // Reset Chrome style\n borderRadius: 0\n },\n [`&.${nativeSelectClasses.disabled}`]: {\n cursor: 'default'\n },\n '&[multiple]': {\n height: 'auto'\n },\n '&:not([multiple]) option, &:not([multiple]) optgroup': {\n backgroundColor: (theme.vars || theme).palette.background.paper\n },\n variants: [{\n props: ({\n ownerState\n }) => ownerState.variant !== 'filled' && ownerState.variant !== 'outlined',\n style: {\n // Bump specificity to allow extending custom inputs\n '&&&': {\n paddingRight: 24,\n minWidth: 16 // So it doesn't collapse.\n }\n }\n }, {\n props: {\n variant: 'filled'\n },\n style: {\n '&&&': {\n paddingRight: 32\n }\n }\n }, {\n props: {\n variant: 'outlined'\n },\n style: {\n borderRadius: (theme.vars || theme).shape.borderRadius,\n '&:focus': {\n borderRadius: (theme.vars || theme).shape.borderRadius // Reset the reset for Chrome style\n },\n '&&&': {\n paddingRight: 32\n }\n }\n }]\n}));\nconst NativeSelectSelect = styled(StyledSelectSelect, {\n name: 'MuiNativeSelect',\n slot: 'Select',\n shouldForwardProp: rootShouldForwardProp,\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.select, styles[ownerState.variant], ownerState.error && styles.error, {\n [`&.${nativeSelectClasses.multiple}`]: styles.multiple\n }];\n }\n})({});\nexport const StyledSelectIcon = styled('svg')(({\n theme\n}) => ({\n // We use a position absolute over a flexbox in order to forward the pointer events\n // to the input and to support wrapping tags..\n position: 'absolute',\n right: 0,\n // Center vertically, height is 1em\n top: 'calc(50% - .5em)',\n // Don't block pointer events on the select under the icon.\n pointerEvents: 'none',\n color: (theme.vars || theme).palette.action.active,\n [`&.${nativeSelectClasses.disabled}`]: {\n color: (theme.vars || theme).palette.action.disabled\n },\n variants: [{\n props: ({\n ownerState\n }) => ownerState.open,\n style: {\n transform: 'rotate(180deg)'\n }\n }, {\n props: {\n variant: 'filled'\n },\n style: {\n right: 7\n }\n }, {\n props: {\n variant: 'outlined'\n },\n style: {\n right: 7\n }\n }]\n}));\nconst NativeSelectIcon = styled(StyledSelectIcon, {\n name: 'MuiNativeSelect',\n slot: 'Icon',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.icon, ownerState.variant && styles[`icon${capitalize(ownerState.variant)}`], ownerState.open && styles.iconOpen];\n }\n})({});\n\n/**\n * @ignore - internal component.\n */\nconst NativeSelectInput = /*#__PURE__*/React.forwardRef(function NativeSelectInput(props, ref) {\n const {\n className,\n disabled,\n error,\n IconComponent,\n inputRef,\n variant = 'standard',\n ...other\n } = props;\n const ownerState = {\n ...props,\n disabled,\n variant,\n error\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(NativeSelectSelect, {\n ownerState: ownerState,\n className: clsx(classes.select, className),\n disabled: disabled,\n ref: inputRef || ref,\n ...other\n }), props.multiple ? null : /*#__PURE__*/_jsx(NativeSelectIcon, {\n as: IconComponent,\n ownerState: ownerState,\n className: classes.icon\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? NativeSelectInput.propTypes = {\n /**\n * The option elements to populate the select with.\n * Can be some `<option>` elements.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * The CSS class name of the select element.\n */\n className: PropTypes.string,\n /**\n * If `true`, the select is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the `select input` will indicate an error.\n */\n error: PropTypes.bool,\n /**\n * The icon that displays the arrow.\n */\n IconComponent: PropTypes.elementType.isRequired,\n /**\n * Use that prop to pass a ref to the native select element.\n * @deprecated\n */\n inputRef: refType,\n /**\n * @ignore\n */\n multiple: PropTypes.bool,\n /**\n * Name attribute of the `select` or hidden `input` element.\n */\n name: PropTypes.string,\n /**\n * Callback fired when a menu item is selected.\n *\n * @param {object} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (string).\n */\n onChange: PropTypes.func,\n /**\n * The input value.\n */\n value: PropTypes.any,\n /**\n * The variant to use.\n */\n variant: PropTypes.oneOf(['standard', 'outlined', 'filled'])\n} : void 0;\nexport default NativeSelectInput;","'use client';\n\nvar _span;\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst NotchedOutlineRoot = styled('fieldset', {\n shouldForwardProp: rootShouldForwardProp\n})({\n textAlign: 'left',\n position: 'absolute',\n bottom: 0,\n right: 0,\n top: -5,\n left: 0,\n margin: 0,\n padding: '0 8px',\n pointerEvents: 'none',\n borderRadius: 'inherit',\n borderStyle: 'solid',\n borderWidth: 1,\n overflow: 'hidden',\n minWidth: '0%'\n});\nconst NotchedOutlineLegend = styled('legend', {\n shouldForwardProp: rootShouldForwardProp\n})(memoTheme(({\n theme\n}) => ({\n float: 'unset',\n // Fix conflict with bootstrap\n width: 'auto',\n // Fix conflict with bootstrap\n overflow: 'hidden',\n // Fix Horizontal scroll when label too long\n variants: [{\n props: ({\n ownerState\n }) => !ownerState.withLabel,\n style: {\n padding: 0,\n lineHeight: '11px',\n // sync with `height` in `legend` styles\n transition: theme.transitions.create('width', {\n duration: 150,\n easing: theme.transitions.easing.easeOut\n })\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.withLabel,\n style: {\n display: 'block',\n // Fix conflict with normalize.css and sanitize.css\n padding: 0,\n height: 11,\n // sync with `lineHeight` in `legend` styles\n fontSize: '0.75em',\n visibility: 'hidden',\n maxWidth: 0.01,\n transition: theme.transitions.create('max-width', {\n duration: 50,\n easing: theme.transitions.easing.easeOut\n }),\n whiteSpace: 'nowrap',\n '& > span': {\n paddingLeft: 5,\n paddingRight: 5,\n display: 'inline-block',\n opacity: 0,\n visibility: 'visible'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.withLabel && ownerState.notched,\n style: {\n maxWidth: '100%',\n transition: theme.transitions.create('max-width', {\n duration: 100,\n easing: theme.transitions.easing.easeOut,\n delay: 50\n })\n }\n }]\n})));\n\n/**\n * @ignore - internal component.\n */\nexport default function NotchedOutline(props) {\n const {\n children,\n classes,\n className,\n label,\n notched,\n ...other\n } = props;\n const withLabel = label != null && label !== '';\n const ownerState = {\n ...props,\n notched,\n withLabel\n };\n return /*#__PURE__*/_jsx(NotchedOutlineRoot, {\n \"aria-hidden\": true,\n className: className,\n ownerState: ownerState,\n ...other,\n children: /*#__PURE__*/_jsx(NotchedOutlineLegend, {\n ownerState: ownerState,\n children: withLabel ? /*#__PURE__*/_jsx(\"span\", {\n children: label\n }) : // notranslate needed while Google Translate will not fix zero-width space issue\n _span || (_span = /*#__PURE__*/_jsx(\"span\", {\n className: \"notranslate\",\n \"aria-hidden\": true,\n children: \"\\u200B\"\n }))\n })\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? NotchedOutline.propTypes /* remove-proptypes */ = {\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The label.\n */\n label: PropTypes.node,\n /**\n * If `true`, the outline is notched to accommodate the label.\n */\n notched: PropTypes.bool.isRequired,\n /**\n * @ignore\n */\n style: PropTypes.object\n} : void 0;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport NotchedOutline from \"./NotchedOutline.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport formControlState from \"../FormControl/formControlState.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport outlinedInputClasses, { getOutlinedInputUtilityClass } from \"./outlinedInputClasses.js\";\nimport InputBase, { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot, InputBaseInput } from \"../InputBase/InputBase.js\";\nimport { jsxs as _jsxs, jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n notchedOutline: ['notchedOutline'],\n input: ['input']\n };\n const composedClasses = composeClasses(slots, getOutlinedInputUtilityClass, classes);\n return {\n ...classes,\n // forward classes to the InputBase\n ...composedClasses\n };\n};\nconst OutlinedInputRoot = styled(InputBaseRoot, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiOutlinedInput',\n slot: 'Root',\n overridesResolver: inputBaseRootOverridesResolver\n})(memoTheme(({\n theme\n}) => {\n const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';\n return {\n position: 'relative',\n borderRadius: (theme.vars || theme).shape.borderRadius,\n [`&:hover .${outlinedInputClasses.notchedOutline}`]: {\n borderColor: (theme.vars || theme).palette.text.primary\n },\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n [`&:hover .${outlinedInputClasses.notchedOutline}`]: {\n borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor\n }\n },\n [`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {\n borderWidth: 2\n },\n variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n [`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {\n borderColor: (theme.vars || theme).palette[color].main\n }\n }\n })), {\n props: {},\n // to overide the above style\n style: {\n [`&.${outlinedInputClasses.error} .${outlinedInputClasses.notchedOutline}`]: {\n borderColor: (theme.vars || theme).palette.error.main\n },\n [`&.${outlinedInputClasses.disabled} .${outlinedInputClasses.notchedOutline}`]: {\n borderColor: (theme.vars || theme).palette.action.disabled\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.startAdornment,\n style: {\n paddingLeft: 14\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.endAdornment,\n style: {\n paddingRight: 14\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.multiline,\n style: {\n padding: '16.5px 14px'\n }\n }, {\n props: ({\n ownerState,\n size\n }) => ownerState.multiline && size === 'small',\n style: {\n padding: '8.5px 14px'\n }\n }]\n };\n}));\nconst NotchedOutlineRoot = styled(NotchedOutline, {\n name: 'MuiOutlinedInput',\n slot: 'NotchedOutline',\n overridesResolver: (props, styles) => styles.notchedOutline\n})(memoTheme(({\n theme\n}) => {\n const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';\n return {\n borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor\n };\n}));\nconst OutlinedInputInput = styled(InputBaseInput, {\n name: 'MuiOutlinedInput',\n slot: 'Input',\n overridesResolver: inputBaseInputOverridesResolver\n})(memoTheme(({\n theme\n}) => ({\n padding: '16.5px 14px',\n ...(!theme.vars && {\n '&:-webkit-autofill': {\n WebkitBoxShadow: theme.palette.mode === 'light' ? null : '0 0 0 100px #266798 inset',\n WebkitTextFillColor: theme.palette.mode === 'light' ? null : '#fff',\n caretColor: theme.palette.mode === 'light' ? null : '#fff',\n borderRadius: 'inherit'\n }\n }),\n ...(theme.vars && {\n '&:-webkit-autofill': {\n borderRadius: 'inherit'\n },\n [theme.getColorSchemeSelector('dark')]: {\n '&:-webkit-autofill': {\n WebkitBoxShadow: '0 0 0 100px #266798 inset',\n WebkitTextFillColor: '#fff',\n caretColor: '#fff'\n }\n }\n }),\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n padding: '8.5px 14px'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.multiline,\n style: {\n padding: 0\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.startAdornment,\n style: {\n paddingLeft: 0\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.endAdornment,\n style: {\n paddingRight: 0\n }\n }]\n})));\nconst OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inProps, ref) {\n var _React$Fragment;\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiOutlinedInput'\n });\n const {\n components = {},\n fullWidth = false,\n inputComponent = 'input',\n label,\n multiline = false,\n notched,\n slots = {},\n type = 'text',\n ...other\n } = props;\n const classes = useUtilityClasses(props);\n const muiFormControl = useFormControl();\n const fcs = formControlState({\n props,\n muiFormControl,\n states: ['color', 'disabled', 'error', 'focused', 'hiddenLabel', 'size', 'required']\n });\n const ownerState = {\n ...props,\n color: fcs.color || 'primary',\n disabled: fcs.disabled,\n error: fcs.error,\n focused: fcs.focused,\n formControl: muiFormControl,\n fullWidth,\n hiddenLabel: fcs.hiddenLabel,\n multiline,\n size: fcs.size,\n type\n };\n const RootSlot = slots.root ?? components.Root ?? OutlinedInputRoot;\n const InputSlot = slots.input ?? components.Input ?? OutlinedInputInput;\n return /*#__PURE__*/_jsx(InputBase, {\n slots: {\n root: RootSlot,\n input: InputSlot\n },\n renderSuffix: state => /*#__PURE__*/_jsx(NotchedOutlineRoot, {\n ownerState: ownerState,\n className: classes.notchedOutline,\n label: label != null && label !== '' && fcs.required ? _React$Fragment || (_React$Fragment = /*#__PURE__*/_jsxs(React.Fragment, {\n children: [label, \"\\u2009\", '*']\n })) : label,\n notched: typeof notched !== 'undefined' ? notched : Boolean(state.startAdornment || state.filled || state.focused)\n }),\n fullWidth: fullWidth,\n inputComponent: inputComponent,\n multiline: multiline,\n ref: ref,\n type: type,\n ...other,\n classes: {\n ...classes,\n notchedOutline: null\n }\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? OutlinedInput.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * This prop helps users to fill forms faster, especially on mobile devices.\n * The name can be confusing, as it's more like an autofill.\n * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).\n */\n autoComplete: PropTypes.string,\n /**\n * If `true`, the `input` element is focused during the first mount.\n */\n autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),\n /**\n * The components used for each slot inside.\n *\n * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n components: PropTypes.shape({\n Input: PropTypes.elementType,\n Root: PropTypes.elementType\n }),\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.any,\n /**\n * If `true`, the component is disabled.\n * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n */\n disabled: PropTypes.bool,\n /**\n * End `InputAdornment` for this component.\n */\n endAdornment: PropTypes.node,\n /**\n * If `true`, the `input` will indicate an error.\n * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n */\n error: PropTypes.bool,\n /**\n * If `true`, the `input` will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n /**\n * The component used for the `input` element.\n * Either a string to use a HTML element or a component.\n * @default 'input'\n */\n inputComponent: PropTypes.elementType,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n * @default {}\n */\n inputProps: PropTypes.object,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label of the `input`. It is only used for layout. The actual labelling\n * is handled by `InputLabel`.\n */\n label: PropTypes.node,\n /**\n * If `dense`, will adjust vertical spacing. This is normally obtained via context from\n * FormControl.\n * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.\n */\n margin: PropTypes.oneOf(['dense', 'none']),\n /**\n * Maximum number of rows to display when multiline option is set to true.\n */\n maxRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * Minimum number of rows to display when multiline option is set to true.\n */\n minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * If `true`, a [TextareaAutosize](https://mui.com/material-ui/react-textarea-autosize/) element is rendered.\n * @default false\n */\n multiline: PropTypes.bool,\n /**\n * Name attribute of the `input` element.\n */\n name: PropTypes.string,\n /**\n * If `true`, the outline is notched to accommodate the label.\n */\n notched: PropTypes.bool,\n /**\n * Callback fired when the value is changed.\n *\n * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (string).\n */\n onChange: PropTypes.func,\n /**\n * The short hint displayed in the `input` before the user enters a value.\n */\n placeholder: PropTypes.string,\n /**\n * It prevents the user from changing the value of the field\n * (not from interacting with the field).\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, the `input` element is required.\n * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n */\n required: PropTypes.bool,\n /**\n * Number of rows to display when multiline option is set to true.\n */\n rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * The components used for each slot inside.\n *\n * This prop is an alias for the `components` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slots: PropTypes.shape({\n input: PropTypes.elementType,\n root: PropTypes.elementType\n }),\n /**\n * Start `InputAdornment` for this component.\n */\n startAdornment: PropTypes.node,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).\n * @default 'text'\n */\n type: PropTypes.string,\n /**\n * The value of the `input` element, required for a controlled component.\n */\n value: PropTypes.any\n} : void 0;\nOutlinedInput.muiName = 'Input';\nexport default OutlinedInput;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getPaginationUtilityClass(slot) {\n return generateUtilityClass('MuiPagination', slot);\n}\nconst paginationClasses = generateUtilityClasses('MuiPagination', ['root', 'ul', 'outlined', 'text']);\nexport default paginationClasses;","'use client';\n\nimport useControlled from '@mui/utils/useControlled';\nexport default function usePagination(props = {}) {\n // keep default values in sync with @default tags in Pagination.propTypes\n const {\n boundaryCount = 1,\n componentName = 'usePagination',\n count = 1,\n defaultPage = 1,\n disabled = false,\n hideNextButton = false,\n hidePrevButton = false,\n onChange: handleChange,\n page: pageProp,\n showFirstButton = false,\n showLastButton = false,\n siblingCount = 1,\n ...other\n } = props;\n const [page, setPageState] = useControlled({\n controlled: pageProp,\n default: defaultPage,\n name: componentName,\n state: 'page'\n });\n const handleClick = (event, value) => {\n if (!pageProp) {\n setPageState(value);\n }\n if (handleChange) {\n handleChange(event, value);\n }\n };\n\n // https://dev.to/namirsab/comment/2050\n const range = (start, end) => {\n const length = end - start + 1;\n return Array.from({\n length\n }, (_, i) => start + i);\n };\n const startPages = range(1, Math.min(boundaryCount, count));\n const endPages = range(Math.max(count - boundaryCount + 1, boundaryCount + 1), count);\n const siblingsStart = Math.max(Math.min(\n // Natural start\n page - siblingCount,\n // Lower boundary when page is high\n count - boundaryCount - siblingCount * 2 - 1),\n // Greater than startPages\n boundaryCount + 2);\n const siblingsEnd = Math.min(Math.max(\n // Natural end\n page + siblingCount,\n // Upper boundary when page is low\n boundaryCount + siblingCount * 2 + 2),\n // Less than endPages\n count - boundaryCount - 1);\n\n // Basic list of items to render\n // for example itemList = ['first', 'previous', 1, 'ellipsis', 4, 5, 6, 'ellipsis', 10, 'next', 'last']\n const itemList = [...(showFirstButton ? ['first'] : []), ...(hidePrevButton ? [] : ['previous']), ...startPages,\n // Start ellipsis\n // eslint-disable-next-line no-nested-ternary\n ...(siblingsStart > boundaryCount + 2 ? ['start-ellipsis'] : boundaryCount + 1 < count - boundaryCount ? [boundaryCount + 1] : []),\n // Sibling pages\n ...range(siblingsStart, siblingsEnd),\n // End ellipsis\n // eslint-disable-next-line no-nested-ternary\n ...(siblingsEnd < count - boundaryCount - 1 ? ['end-ellipsis'] : count - boundaryCount > boundaryCount ? [count - boundaryCount] : []), ...endPages, ...(hideNextButton ? [] : ['next']), ...(showLastButton ? ['last'] : [])];\n\n // Map the button type to its page number\n const buttonPage = type => {\n switch (type) {\n case 'first':\n return 1;\n case 'previous':\n return page - 1;\n case 'next':\n return page + 1;\n case 'last':\n return count;\n default:\n return null;\n }\n };\n\n // Convert the basic item list to PaginationItem props objects\n const items = itemList.map(item => {\n return typeof item === 'number' ? {\n onClick: event => {\n handleClick(event, item);\n },\n type: 'page',\n page: item,\n selected: item === page,\n disabled,\n 'aria-current': item === page ? 'page' : undefined\n } : {\n onClick: event => {\n handleClick(event, buttonPage(item));\n },\n type: item,\n page: buttonPage(item),\n selected: false,\n disabled: disabled || !item.includes('ellipsis') && (item === 'next' || item === 'last' ? page >= count : page <= 1)\n };\n });\n return {\n items,\n ...other\n };\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getPaginationItemUtilityClass(slot) {\n return generateUtilityClass('MuiPaginationItem', slot);\n}\nconst paginationItemClasses = generateUtilityClasses('MuiPaginationItem', ['root', 'page', 'sizeSmall', 'sizeLarge', 'text', 'textPrimary', 'textSecondary', 'outlined', 'outlinedPrimary', 'outlinedSecondary', 'rounded', 'ellipsis', 'firstLast', 'previousNext', 'focusVisible', 'disabled', 'selected', 'icon', 'colorPrimary', 'colorSecondary']);\nexport default paginationItemClasses;","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z\"\n}), 'FirstPage');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z\"\n}), 'LastPage');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z\"\n}), 'NavigateBefore');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"\n}), 'NavigateNext');","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport paginationItemClasses, { getPaginationItemUtilityClass } from \"./paginationItemClasses.js\";\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport FirstPageIcon from \"../internal/svg-icons/FirstPage.js\";\nimport LastPageIcon from \"../internal/svg-icons/LastPage.js\";\nimport NavigateBeforeIcon from \"../internal/svg-icons/NavigateBefore.js\";\nimport NavigateNextIcon from \"../internal/svg-icons/NavigateNext.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst overridesResolver = (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant], styles[`size${capitalize(ownerState.size)}`], ownerState.variant === 'text' && styles[`text${capitalize(ownerState.color)}`], ownerState.variant === 'outlined' && styles[`outlined${capitalize(ownerState.color)}`], ownerState.shape === 'rounded' && styles.rounded, ownerState.type === 'page' && styles.page, (ownerState.type === 'start-ellipsis' || ownerState.type === 'end-ellipsis') && styles.ellipsis, (ownerState.type === 'previous' || ownerState.type === 'next') && styles.previousNext, (ownerState.type === 'first' || ownerState.type === 'last') && styles.firstLast];\n};\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n color,\n disabled,\n selected,\n size,\n shape,\n type,\n variant\n } = ownerState;\n const slots = {\n root: ['root', `size${capitalize(size)}`, variant, shape, color !== 'standard' && `color${capitalize(color)}`, color !== 'standard' && `${variant}${capitalize(color)}`, disabled && 'disabled', selected && 'selected', {\n page: 'page',\n first: 'firstLast',\n last: 'firstLast',\n 'start-ellipsis': 'ellipsis',\n 'end-ellipsis': 'ellipsis',\n previous: 'previousNext',\n next: 'previousNext'\n }[type]],\n icon: ['icon']\n };\n return composeClasses(slots, getPaginationItemUtilityClass, classes);\n};\nconst PaginationItemEllipsis = styled('div', {\n name: 'MuiPaginationItem',\n slot: 'Root',\n overridesResolver\n})(memoTheme(({\n theme\n}) => ({\n ...theme.typography.body2,\n borderRadius: 32 / 2,\n textAlign: 'center',\n boxSizing: 'border-box',\n minWidth: 32,\n padding: '0 6px',\n margin: '0 3px',\n color: (theme.vars || theme).palette.text.primary,\n height: 'auto',\n [`&.${paginationItemClasses.disabled}`]: {\n opacity: (theme.vars || theme).palette.action.disabledOpacity\n },\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n minWidth: 26,\n borderRadius: 26 / 2,\n margin: '0 1px',\n padding: '0 4px'\n }\n }, {\n props: {\n size: 'large'\n },\n style: {\n minWidth: 40,\n borderRadius: 40 / 2,\n padding: '0 10px',\n fontSize: theme.typography.pxToRem(15)\n }\n }]\n})));\nconst PaginationItemPage = styled(ButtonBase, {\n name: 'MuiPaginationItem',\n slot: 'Root',\n overridesResolver\n})(memoTheme(({\n theme\n}) => ({\n ...theme.typography.body2,\n borderRadius: 32 / 2,\n textAlign: 'center',\n boxSizing: 'border-box',\n minWidth: 32,\n height: 32,\n padding: '0 6px',\n margin: '0 3px',\n color: (theme.vars || theme).palette.text.primary,\n [`&.${paginationItemClasses.focusVisible}`]: {\n backgroundColor: (theme.vars || theme).palette.action.focus\n },\n [`&.${paginationItemClasses.disabled}`]: {\n opacity: (theme.vars || theme).palette.action.disabledOpacity\n },\n transition: theme.transitions.create(['color', 'background-color'], {\n duration: theme.transitions.duration.short\n }),\n '&:hover': {\n backgroundColor: (theme.vars || theme).palette.action.hover,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n [`&.${paginationItemClasses.selected}`]: {\n backgroundColor: (theme.vars || theme).palette.action.selected,\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: (theme.vars || theme).palette.action.selected\n }\n },\n [`&.${paginationItemClasses.focusVisible}`]: {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)\n },\n [`&.${paginationItemClasses.disabled}`]: {\n opacity: 1,\n color: (theme.vars || theme).palette.action.disabled,\n backgroundColor: (theme.vars || theme).palette.action.selected\n }\n },\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n minWidth: 26,\n height: 26,\n borderRadius: 26 / 2,\n margin: '0 1px',\n padding: '0 4px'\n }\n }, {\n props: {\n size: 'large'\n },\n style: {\n minWidth: 40,\n height: 40,\n borderRadius: 40 / 2,\n padding: '0 10px',\n fontSize: theme.typography.pxToRem(15)\n }\n }, {\n props: {\n shape: 'rounded'\n },\n style: {\n borderRadius: (theme.vars || theme).shape.borderRadius\n }\n }, {\n props: {\n variant: 'outlined'\n },\n style: {\n border: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,\n [`&.${paginationItemClasses.selected}`]: {\n [`&.${paginationItemClasses.disabled}`]: {\n borderColor: (theme.vars || theme).palette.action.disabledBackground,\n color: (theme.vars || theme).palette.action.disabled\n }\n }\n }\n }, {\n props: {\n variant: 'text'\n },\n style: {\n [`&.${paginationItemClasses.selected}`]: {\n [`&.${paginationItemClasses.disabled}`]: {\n color: (theme.vars || theme).palette.action.disabled\n }\n }\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['dark', 'contrastText'])).map(([color]) => ({\n props: {\n variant: 'text',\n color\n },\n style: {\n [`&.${paginationItemClasses.selected}`]: {\n color: (theme.vars || theme).palette[color].contrastText,\n backgroundColor: (theme.vars || theme).palette[color].main,\n '&:hover': {\n backgroundColor: (theme.vars || theme).palette[color].dark,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: (theme.vars || theme).palette[color].main\n }\n },\n [`&.${paginationItemClasses.focusVisible}`]: {\n backgroundColor: (theme.vars || theme).palette[color].dark\n },\n [`&.${paginationItemClasses.disabled}`]: {\n color: (theme.vars || theme).palette.action.disabled\n }\n }\n }\n })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['light'])).map(([color]) => ({\n props: {\n variant: 'outlined',\n color\n },\n style: {\n [`&.${paginationItemClasses.selected}`]: {\n color: (theme.vars || theme).palette[color].main,\n border: `1px solid ${theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / 0.5)` : alpha(theme.palette[color].main, 0.5)}`,\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.activatedOpacity})` : alpha(theme.palette[color].main, theme.palette.action.activatedOpacity),\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette[color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n [`&.${paginationItemClasses.focusVisible}`]: {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette[color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)\n }\n }\n }\n }))]\n})));\nconst PaginationItemPageIcon = styled('div', {\n name: 'MuiPaginationItem',\n slot: 'Icon',\n overridesResolver: (props, styles) => styles.icon\n})(memoTheme(({\n theme\n}) => ({\n fontSize: theme.typography.pxToRem(20),\n margin: '0 -8px',\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n fontSize: theme.typography.pxToRem(18)\n }\n }, {\n props: {\n size: 'large'\n },\n style: {\n fontSize: theme.typography.pxToRem(22)\n }\n }]\n})));\nconst PaginationItem = /*#__PURE__*/React.forwardRef(function PaginationItem(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiPaginationItem'\n });\n const {\n className,\n color = 'standard',\n component,\n components = {},\n disabled = false,\n page,\n selected = false,\n shape = 'circular',\n size = 'medium',\n slots = {},\n slotProps = {},\n type = 'page',\n variant = 'text',\n ...other\n } = props;\n const ownerState = {\n ...props,\n color,\n disabled,\n selected,\n shape,\n size,\n type,\n variant\n };\n const isRtl = useRtl();\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots: {\n previous: slots.previous ?? components.previous,\n next: slots.next ?? components.next,\n first: slots.first ?? components.first,\n last: slots.last ?? components.last\n },\n slotProps\n };\n const [PreviousSlot, previousSlotProps] = useSlot('previous', {\n elementType: NavigateBeforeIcon,\n externalForwardedProps,\n ownerState\n });\n const [NextSlot, nextSlotProps] = useSlot('next', {\n elementType: NavigateNextIcon,\n externalForwardedProps,\n ownerState\n });\n const [FirstSlot, firstSlotProps] = useSlot('first', {\n elementType: FirstPageIcon,\n externalForwardedProps,\n ownerState\n });\n const [LastSlot, lastSlotProps] = useSlot('last', {\n elementType: LastPageIcon,\n externalForwardedProps,\n ownerState\n });\n const rtlAwareType = isRtl ? {\n previous: 'next',\n next: 'previous',\n first: 'last',\n last: 'first'\n }[type] : type;\n const IconSlot = {\n previous: PreviousSlot,\n next: NextSlot,\n first: FirstSlot,\n last: LastSlot\n }[rtlAwareType];\n const iconSlotProps = {\n previous: previousSlotProps,\n next: nextSlotProps,\n first: firstSlotProps,\n last: lastSlotProps\n }[rtlAwareType];\n return type === 'start-ellipsis' || type === 'end-ellipsis' ? /*#__PURE__*/_jsx(PaginationItemEllipsis, {\n ref: ref,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n children: \"\\u2026\"\n }) : /*#__PURE__*/_jsxs(PaginationItemPage, {\n ref: ref,\n ownerState: ownerState,\n component: component,\n disabled: disabled,\n className: clsx(classes.root, className),\n ...other,\n children: [type === 'page' && page, IconSlot ? /*#__PURE__*/_jsx(PaginationItemPageIcon, {\n ...iconSlotProps,\n className: classes.icon,\n as: IconSlot\n }) : null]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? PaginationItem.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The active color.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'standard'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'standard']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The components used for each slot inside.\n *\n * This prop is an alias for the `slots` prop.\n * It's recommended to use the `slots` prop instead.\n *\n * @default {}\n * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n components: PropTypes.shape({\n first: PropTypes.elementType,\n last: PropTypes.elementType,\n next: PropTypes.elementType,\n previous: PropTypes.elementType\n }),\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * The current page number.\n */\n page: PropTypes.node,\n /**\n * If `true` the pagination item is selected.\n * @default false\n */\n selected: PropTypes.bool,\n /**\n * The shape of the pagination item.\n * @default 'circular'\n */\n shape: PropTypes.oneOf(['circular', 'rounded']),\n /**\n * The size of the component.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n first: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n last: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n next: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n previous: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n first: PropTypes.elementType,\n last: PropTypes.elementType,\n next: PropTypes.elementType,\n previous: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The type of pagination item.\n * @default 'page'\n */\n type: PropTypes.oneOf(['end-ellipsis', 'first', 'last', 'next', 'page', 'previous', 'start-ellipsis']),\n /**\n * The variant to use.\n * @default 'text'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['outlined', 'text']), PropTypes.string])\n} : void 0;\nexport default PaginationItem;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport integerPropType from '@mui/utils/integerPropType';\nimport { getPaginationUtilityClass } from \"./paginationClasses.js\";\nimport usePagination from \"../usePagination/index.js\";\nimport PaginationItem from \"../PaginationItem/index.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n variant\n } = ownerState;\n const slots = {\n root: ['root', variant],\n ul: ['ul']\n };\n return composeClasses(slots, getPaginationUtilityClass, classes);\n};\nconst PaginationRoot = styled('nav', {\n name: 'MuiPagination',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant]];\n }\n})({});\nconst PaginationUl = styled('ul', {\n name: 'MuiPagination',\n slot: 'Ul',\n overridesResolver: (props, styles) => styles.ul\n})({\n display: 'flex',\n flexWrap: 'wrap',\n alignItems: 'center',\n padding: 0,\n margin: 0,\n listStyle: 'none'\n});\nfunction defaultGetAriaLabel(type, page, selected) {\n if (type === 'page') {\n return `${selected ? '' : 'Go to '}page ${page}`;\n }\n return `Go to ${type} page`;\n}\nconst Pagination = /*#__PURE__*/React.forwardRef(function Pagination(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiPagination'\n });\n const {\n boundaryCount = 1,\n className,\n color = 'standard',\n count = 1,\n defaultPage = 1,\n disabled = false,\n getItemAriaLabel = defaultGetAriaLabel,\n hideNextButton = false,\n hidePrevButton = false,\n onChange,\n page,\n renderItem = item => /*#__PURE__*/_jsx(PaginationItem, {\n ...item\n }),\n shape = 'circular',\n showFirstButton = false,\n showLastButton = false,\n siblingCount = 1,\n size = 'medium',\n variant = 'text',\n ...other\n } = props;\n const {\n items\n } = usePagination({\n ...props,\n componentName: 'Pagination'\n });\n const ownerState = {\n ...props,\n boundaryCount,\n color,\n count,\n defaultPage,\n disabled,\n getItemAriaLabel,\n hideNextButton,\n hidePrevButton,\n renderItem,\n shape,\n showFirstButton,\n showLastButton,\n siblingCount,\n size,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(PaginationRoot, {\n \"aria-label\": \"pagination navigation\",\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n ...other,\n children: /*#__PURE__*/_jsx(PaginationUl, {\n className: classes.ul,\n ownerState: ownerState,\n children: items.map((item, index) => /*#__PURE__*/_jsx(\"li\", {\n children: renderItem({\n ...item,\n color,\n 'aria-label': getItemAriaLabel(item.type, item.page, item.selected),\n shape,\n size,\n variant\n })\n }, index))\n })\n });\n});\n\n// @default tags synced with default values from usePagination\n\nprocess.env.NODE_ENV !== \"production\" ? Pagination.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Number of always visible pages at the beginning and end.\n * @default 1\n */\n boundaryCount: integerPropType,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The active color.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'standard'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'standard']), PropTypes.string]),\n /**\n * The total number of pages.\n * @default 1\n */\n count: integerPropType,\n /**\n * The page selected by default when the component is uncontrolled.\n * @default 1\n */\n defaultPage: integerPropType,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * Accepts a function which returns a string value that provides a user-friendly name for the current page.\n * This is important for screen reader users.\n *\n * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).\n * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous' | 'start-ellipsis' | 'end-ellipsis'). Defaults to 'page'.\n * @param {number | null} page The page number to format.\n * @param {boolean} selected If true, the current page is selected.\n * @returns {string}\n */\n getItemAriaLabel: PropTypes.func,\n /**\n * If `true`, hide the next-page button.\n * @default false\n */\n hideNextButton: PropTypes.bool,\n /**\n * If `true`, hide the previous-page button.\n * @default false\n */\n hidePrevButton: PropTypes.bool,\n /**\n * Callback fired when the page is changed.\n *\n * @param {React.ChangeEvent<unknown>} event The event source of the callback.\n * @param {number} page The page selected.\n */\n onChange: PropTypes.func,\n /**\n * The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.\n */\n page: integerPropType,\n /**\n * Render the item.\n * @param {PaginationRenderItemParams} params The props to spread on a PaginationItem.\n * @returns {ReactNode}\n * @default (item) => <PaginationItem {...item} />\n */\n renderItem: PropTypes.func,\n /**\n * The shape of the pagination items.\n * @default 'circular'\n */\n shape: PropTypes.oneOf(['circular', 'rounded']),\n /**\n * If `true`, show the first-page button.\n * @default false\n */\n showFirstButton: PropTypes.bool,\n /**\n * If `true`, show the last-page button.\n * @default false\n */\n showLastButton: PropTypes.bool,\n /**\n * Number of always visible pages before and after the current page.\n * @default 1\n */\n siblingCount: integerPropType,\n /**\n * The size of the component.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The variant to use.\n * @default 'text'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['outlined', 'text']), PropTypes.string])\n} : void 0;\nexport default Pagination;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSelectUtilityClasses(slot) {\n return generateUtilityClass('MuiSelect', slot);\n}\nconst selectClasses = generateUtilityClasses('MuiSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'focused', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput', 'error']);\nexport default selectClasses;","'use client';\n\nimport _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nvar _span;\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useId from '@mui/utils/useId';\nimport refType from '@mui/utils/refType';\nimport ownerDocument from \"../utils/ownerDocument.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport Menu from \"../Menu/Menu.js\";\nimport { StyledSelectSelect, StyledSelectIcon } from \"../NativeSelect/NativeSelectInput.js\";\nimport { isFilled } from \"../InputBase/utils.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport slotShouldForwardProp from \"../styles/slotShouldForwardProp.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport useControlled from \"../utils/useControlled.js\";\nimport selectClasses, { getSelectUtilityClasses } from \"./selectClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SelectSelect = styled(StyledSelectSelect, {\n name: 'MuiSelect',\n slot: 'Select',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [\n // Win specificity over the input base\n {\n [`&.${selectClasses.select}`]: styles.select\n }, {\n [`&.${selectClasses.select}`]: styles[ownerState.variant]\n }, {\n [`&.${selectClasses.error}`]: styles.error\n }, {\n [`&.${selectClasses.multiple}`]: styles.multiple\n }];\n }\n})({\n // Win specificity over the input base\n [`&.${selectClasses.select}`]: {\n height: 'auto',\n // Resets for multiple select with chips\n minHeight: '1.4375em',\n // Required for select\\text-field height consistency\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n overflow: 'hidden'\n }\n});\nconst SelectIcon = styled(StyledSelectIcon, {\n name: 'MuiSelect',\n slot: 'Icon',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.icon, ownerState.variant && styles[`icon${capitalize(ownerState.variant)}`], ownerState.open && styles.iconOpen];\n }\n})({});\nconst SelectNativeInput = styled('input', {\n shouldForwardProp: prop => slotShouldForwardProp(prop) && prop !== 'classes',\n name: 'MuiSelect',\n slot: 'NativeInput',\n overridesResolver: (props, styles) => styles.nativeInput\n})({\n bottom: 0,\n left: 0,\n position: 'absolute',\n opacity: 0,\n pointerEvents: 'none',\n width: '100%',\n boxSizing: 'border-box'\n});\nfunction areEqualValues(a, b) {\n if (typeof b === 'object' && b !== null) {\n return a === b;\n }\n\n // The value could be a number, the DOM will stringify it anyway.\n return String(a) === String(b);\n}\nfunction isEmpty(display) {\n return display == null || typeof display === 'string' && !display.trim();\n}\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n variant,\n disabled,\n multiple,\n open,\n error\n } = ownerState;\n const slots = {\n select: ['select', variant, disabled && 'disabled', multiple && 'multiple', error && 'error'],\n icon: ['icon', `icon${capitalize(variant)}`, open && 'iconOpen', disabled && 'disabled'],\n nativeInput: ['nativeInput']\n };\n return composeClasses(slots, getSelectUtilityClasses, classes);\n};\n\n/**\n * @ignore - internal component.\n */\nconst SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref) {\n const {\n 'aria-describedby': ariaDescribedby,\n 'aria-label': ariaLabel,\n autoFocus,\n autoWidth,\n children,\n className,\n defaultOpen,\n defaultValue,\n disabled,\n displayEmpty,\n error = false,\n IconComponent,\n inputRef: inputRefProp,\n labelId,\n MenuProps = {},\n multiple,\n name,\n onBlur,\n onChange,\n onClose,\n onFocus,\n onOpen,\n open: openProp,\n readOnly,\n renderValue,\n required,\n SelectDisplayProps = {},\n tabIndex: tabIndexProp,\n // catching `type` from Input which makes no sense for SelectInput\n type,\n value: valueProp,\n variant = 'standard',\n ...other\n } = props;\n const [value, setValueState] = useControlled({\n controlled: valueProp,\n default: defaultValue,\n name: 'Select'\n });\n const [openState, setOpenState] = useControlled({\n controlled: openProp,\n default: defaultOpen,\n name: 'Select'\n });\n const inputRef = React.useRef(null);\n const displayRef = React.useRef(null);\n const [displayNode, setDisplayNode] = React.useState(null);\n const {\n current: isOpenControlled\n } = React.useRef(openProp != null);\n const [menuMinWidthState, setMenuMinWidthState] = React.useState();\n const handleRef = useForkRef(ref, inputRefProp);\n const handleDisplayRef = React.useCallback(node => {\n displayRef.current = node;\n if (node) {\n setDisplayNode(node);\n }\n }, []);\n const anchorElement = displayNode?.parentNode;\n React.useImperativeHandle(handleRef, () => ({\n focus: () => {\n displayRef.current.focus();\n },\n node: inputRef.current,\n value\n }), [value]);\n\n // Resize menu on `defaultOpen` automatic toggle.\n React.useEffect(() => {\n if (defaultOpen && openState && displayNode && !isOpenControlled) {\n setMenuMinWidthState(autoWidth ? null : anchorElement.clientWidth);\n displayRef.current.focus();\n }\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [displayNode, autoWidth]);\n // `isOpenControlled` is ignored because the component should never switch between controlled and uncontrolled modes.\n // `defaultOpen` and `openState` are ignored to avoid unnecessary callbacks.\n React.useEffect(() => {\n if (autoFocus) {\n displayRef.current.focus();\n }\n }, [autoFocus]);\n React.useEffect(() => {\n if (!labelId) {\n return undefined;\n }\n const label = ownerDocument(displayRef.current).getElementById(labelId);\n if (label) {\n const handler = () => {\n if (getSelection().isCollapsed) {\n displayRef.current.focus();\n }\n };\n label.addEventListener('click', handler);\n return () => {\n label.removeEventListener('click', handler);\n };\n }\n return undefined;\n }, [labelId]);\n const update = (open, event) => {\n if (open) {\n if (onOpen) {\n onOpen(event);\n }\n } else if (onClose) {\n onClose(event);\n }\n if (!isOpenControlled) {\n setMenuMinWidthState(autoWidth ? null : anchorElement.clientWidth);\n setOpenState(open);\n }\n };\n const handleMouseDown = event => {\n // Ignore everything but left-click\n if (event.button !== 0) {\n return;\n }\n // Hijack the default focus behavior.\n event.preventDefault();\n displayRef.current.focus();\n update(true, event);\n };\n const handleClose = event => {\n update(false, event);\n };\n const childrenArray = React.Children.toArray(children);\n\n // Support autofill.\n const handleChange = event => {\n const child = childrenArray.find(childItem => childItem.props.value === event.target.value);\n if (child === undefined) {\n return;\n }\n setValueState(child.props.value);\n if (onChange) {\n onChange(event, child);\n }\n };\n const handleItemClick = child => event => {\n let newValue;\n\n // We use the tabindex attribute to signal the available options.\n if (!event.currentTarget.hasAttribute('tabindex')) {\n return;\n }\n if (multiple) {\n newValue = Array.isArray(value) ? value.slice() : [];\n const itemIndex = value.indexOf(child.props.value);\n if (itemIndex === -1) {\n newValue.push(child.props.value);\n } else {\n newValue.splice(itemIndex, 1);\n }\n } else {\n newValue = child.props.value;\n }\n if (child.props.onClick) {\n child.props.onClick(event);\n }\n if (value !== newValue) {\n setValueState(newValue);\n if (onChange) {\n // Redefine target to allow name and value to be read.\n // This allows seamless integration with the most popular form libraries.\n // https://github.com/mui/material-ui/issues/13485#issuecomment-676048492\n // Clone the event to not override `target` of the original event.\n const nativeEvent = event.nativeEvent || event;\n const clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);\n Object.defineProperty(clonedEvent, 'target', {\n writable: true,\n value: {\n value: newValue,\n name\n }\n });\n onChange(clonedEvent, child);\n }\n }\n if (!multiple) {\n update(false, event);\n }\n };\n const handleKeyDown = event => {\n if (!readOnly) {\n const validKeys = [' ', 'ArrowUp', 'ArrowDown',\n // The native select doesn't respond to enter on macOS, but it's recommended by\n // https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/\n 'Enter'];\n if (validKeys.includes(event.key)) {\n event.preventDefault();\n update(true, event);\n }\n }\n };\n const open = displayNode !== null && openState;\n const handleBlur = event => {\n // if open event.stopImmediatePropagation\n if (!open && onBlur) {\n // Preact support, target is read only property on a native event.\n Object.defineProperty(event, 'target', {\n writable: true,\n value: {\n value,\n name\n }\n });\n onBlur(event);\n }\n };\n delete other['aria-invalid'];\n let display;\n let displaySingle;\n const displayMultiple = [];\n let computeDisplay = false;\n let foundMatch = false;\n\n // No need to display any value if the field is empty.\n if (isFilled({\n value\n }) || displayEmpty) {\n if (renderValue) {\n display = renderValue(value);\n } else {\n computeDisplay = true;\n }\n }\n const items = childrenArray.map(child => {\n if (! /*#__PURE__*/React.isValidElement(child)) {\n return null;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (isFragment(child)) {\n console.error([\"MUI: The Select component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n }\n }\n let selected;\n if (multiple) {\n if (!Array.isArray(value)) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI: The `value` prop must be an array ' + 'when using the `Select` component with `multiple`.' : _formatErrorMessage(2));\n }\n selected = value.some(v => areEqualValues(v, child.props.value));\n if (selected && computeDisplay) {\n displayMultiple.push(child.props.children);\n }\n } else {\n selected = areEqualValues(value, child.props.value);\n if (selected && computeDisplay) {\n displaySingle = child.props.children;\n }\n }\n if (selected) {\n foundMatch = true;\n }\n return /*#__PURE__*/React.cloneElement(child, {\n 'aria-selected': selected ? 'true' : 'false',\n onClick: handleItemClick(child),\n onKeyUp: event => {\n if (event.key === ' ') {\n // otherwise our MenuItems dispatches a click event\n // it's not behavior of the native <option> and causes\n // the select to close immediately since we open on space keydown\n event.preventDefault();\n }\n if (child.props.onKeyUp) {\n child.props.onKeyUp(event);\n }\n },\n role: 'option',\n selected,\n value: undefined,\n // The value is most likely not a valid HTML attribute.\n 'data-value': child.props.value // Instead, we provide it as a data attribute.\n });\n });\n if (process.env.NODE_ENV !== 'production') {\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (!foundMatch && !multiple && value !== '') {\n const values = childrenArray.map(child => child.props.value);\n console.warn([`MUI: You have provided an out-of-range value \\`${value}\\` for the select ${name ? `(name=\"${name}\") ` : ''}component.`, \"Consider providing a value that matches one of the available options or ''.\", `The available values are ${values.filter(x => x != null).map(x => `\\`${x}\\``).join(', ') || '\"\"'}.`].join('\\n'));\n }\n }, [foundMatch, childrenArray, multiple, name, value]);\n }\n if (computeDisplay) {\n if (multiple) {\n if (displayMultiple.length === 0) {\n display = null;\n } else {\n display = displayMultiple.reduce((output, child, index) => {\n output.push(child);\n if (index < displayMultiple.length - 1) {\n output.push(', ');\n }\n return output;\n }, []);\n }\n } else {\n display = displaySingle;\n }\n }\n\n // Avoid performing a layout computation in the render method.\n let menuMinWidth = menuMinWidthState;\n if (!autoWidth && isOpenControlled && displayNode) {\n menuMinWidth = anchorElement.clientWidth;\n }\n let tabIndex;\n if (typeof tabIndexProp !== 'undefined') {\n tabIndex = tabIndexProp;\n } else {\n tabIndex = disabled ? null : 0;\n }\n const buttonId = SelectDisplayProps.id || (name ? `mui-component-select-${name}` : undefined);\n const ownerState = {\n ...props,\n variant,\n value,\n open,\n error\n };\n const classes = useUtilityClasses(ownerState);\n const paperProps = {\n ...MenuProps.PaperProps,\n ...MenuProps.slotProps?.paper\n };\n const listboxId = useId();\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(SelectSelect, {\n as: \"div\",\n ref: handleDisplayRef,\n tabIndex: tabIndex,\n role: \"combobox\",\n \"aria-controls\": open ? listboxId : undefined,\n \"aria-disabled\": disabled ? 'true' : undefined,\n \"aria-expanded\": open ? 'true' : 'false',\n \"aria-haspopup\": \"listbox\",\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": [labelId, buttonId].filter(Boolean).join(' ') || undefined,\n \"aria-describedby\": ariaDescribedby,\n \"aria-required\": required ? 'true' : undefined,\n \"aria-invalid\": error ? 'true' : undefined,\n onKeyDown: handleKeyDown,\n onMouseDown: disabled || readOnly ? null : handleMouseDown,\n onBlur: handleBlur,\n onFocus: onFocus,\n ...SelectDisplayProps,\n ownerState: ownerState,\n className: clsx(SelectDisplayProps.className, classes.select, className)\n // The id is required for proper a11y\n ,\n id: buttonId,\n children: isEmpty(display) ? // notranslate needed while Google Translate will not fix zero-width space issue\n _span || (_span = /*#__PURE__*/_jsx(\"span\", {\n className: \"notranslate\",\n \"aria-hidden\": true,\n children: \"\\u200B\"\n })) : display\n }), /*#__PURE__*/_jsx(SelectNativeInput, {\n \"aria-invalid\": error,\n value: Array.isArray(value) ? value.join(',') : value,\n name: name,\n ref: inputRef,\n \"aria-hidden\": true,\n onChange: handleChange,\n tabIndex: -1,\n disabled: disabled,\n className: classes.nativeInput,\n autoFocus: autoFocus,\n required: required,\n ...other,\n ownerState: ownerState\n }), /*#__PURE__*/_jsx(SelectIcon, {\n as: IconComponent,\n className: classes.icon,\n ownerState: ownerState\n }), /*#__PURE__*/_jsx(Menu, {\n id: `menu-${name || ''}`,\n anchorEl: anchorElement,\n open: open,\n onClose: handleClose,\n anchorOrigin: {\n vertical: 'bottom',\n horizontal: 'center'\n },\n transformOrigin: {\n vertical: 'top',\n horizontal: 'center'\n },\n ...MenuProps,\n slotProps: {\n ...MenuProps.slotProps,\n list: {\n 'aria-labelledby': labelId,\n role: 'listbox',\n 'aria-multiselectable': multiple ? 'true' : undefined,\n disableListWrap: true,\n id: listboxId,\n ...MenuProps.MenuListProps\n },\n paper: {\n ...paperProps,\n style: {\n minWidth: menuMinWidth,\n ...(paperProps != null ? paperProps.style : null)\n }\n }\n },\n children: items\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? SelectInput.propTypes = {\n /**\n * @ignore\n */\n 'aria-describedby': PropTypes.string,\n /**\n * @ignore\n */\n 'aria-label': PropTypes.string,\n /**\n * @ignore\n */\n autoFocus: PropTypes.bool,\n /**\n * If `true`, the width of the popover will automatically be set according to the items inside the\n * menu, otherwise it will be at least the width of the select input.\n */\n autoWidth: PropTypes.bool,\n /**\n * The option elements to populate the select with.\n * Can be some `<MenuItem>` elements.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * The CSS class name of the select element.\n */\n className: PropTypes.string,\n /**\n * If `true`, the component is toggled on mount. Use when the component open state is not controlled.\n * You can only use it when the `native` prop is `false` (default).\n */\n defaultOpen: PropTypes.bool,\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.any,\n /**\n * If `true`, the select is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the selected item is displayed even if its value is empty.\n */\n displayEmpty: PropTypes.bool,\n /**\n * If `true`, the `select input` will indicate an error.\n */\n error: PropTypes.bool,\n /**\n * The icon that displays the arrow.\n */\n IconComponent: PropTypes.elementType.isRequired,\n /**\n * Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`\n * Equivalent to `ref`\n */\n inputRef: refType,\n /**\n * The ID of an element that acts as an additional label. The Select will\n * be labelled by the additional label and the selected value.\n */\n labelId: PropTypes.string,\n /**\n * Props applied to the [`Menu`](/material-ui/api/menu/) element.\n */\n MenuProps: PropTypes.object,\n /**\n * If `true`, `value` must be an array and the menu will support multiple selections.\n */\n multiple: PropTypes.bool,\n /**\n * Name attribute of the `select` or hidden `input` element.\n */\n name: PropTypes.string,\n /**\n * @ignore\n */\n onBlur: PropTypes.func,\n /**\n * Callback fired when a menu item is selected.\n *\n * @param {object} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (any).\n * @param {object} [child] The react element that was selected.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the component requests to be closed.\n * Use in controlled mode (see open).\n *\n * @param {object} event The event source of the callback.\n */\n onClose: PropTypes.func,\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n /**\n * Callback fired when the component requests to be opened.\n * Use in controlled mode (see open).\n *\n * @param {object} event The event source of the callback.\n */\n onOpen: PropTypes.func,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool,\n /**\n * @ignore\n */\n readOnly: PropTypes.bool,\n /**\n * Render the selected value.\n *\n * @param {any} value The `value` provided to the component.\n * @returns {ReactNode}\n */\n renderValue: PropTypes.func,\n /**\n * If `true`, the component is required.\n */\n required: PropTypes.bool,\n /**\n * Props applied to the clickable div element.\n */\n SelectDisplayProps: PropTypes.object,\n /**\n * @ignore\n */\n tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * @ignore\n */\n type: PropTypes.any,\n /**\n * The input value.\n */\n value: PropTypes.any,\n /**\n * The variant to use.\n */\n variant: PropTypes.oneOf(['standard', 'outlined', 'filled'])\n} : void 0;\nexport default SelectInput;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport deepmerge from '@mui/utils/deepmerge';\nimport composeClasses from '@mui/utils/composeClasses';\nimport getReactElementRef from '@mui/utils/getReactElementRef';\nimport SelectInput from \"./SelectInput.js\";\nimport formControlState from \"../FormControl/formControlState.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport ArrowDropDownIcon from \"../internal/svg-icons/ArrowDropDown.js\";\nimport Input from \"../Input/index.js\";\nimport NativeSelectInput from \"../NativeSelect/NativeSelectInput.js\";\nimport FilledInput from \"../FilledInput/index.js\";\nimport OutlinedInput from \"../OutlinedInput/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { getSelectUtilityClasses } from \"./selectClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n const composedClasses = composeClasses(slots, getSelectUtilityClasses, classes);\n return {\n ...classes,\n ...composedClasses\n };\n};\nconst styledRootConfig = {\n name: 'MuiSelect',\n overridesResolver: (props, styles) => styles.root,\n shouldForwardProp: prop => rootShouldForwardProp(prop) && prop !== 'variant',\n slot: 'Root'\n};\nconst StyledInput = styled(Input, styledRootConfig)('');\nconst StyledOutlinedInput = styled(OutlinedInput, styledRootConfig)('');\nconst StyledFilledInput = styled(FilledInput, styledRootConfig)('');\nconst Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {\n const props = useDefaultProps({\n name: 'MuiSelect',\n props: inProps\n });\n const {\n autoWidth = false,\n children,\n classes: classesProp = {},\n className,\n defaultOpen = false,\n displayEmpty = false,\n IconComponent = ArrowDropDownIcon,\n id,\n input,\n inputProps,\n label,\n labelId,\n MenuProps,\n multiple = false,\n native = false,\n onClose,\n onOpen,\n open,\n renderValue,\n SelectDisplayProps,\n variant: variantProp = 'outlined',\n ...other\n } = props;\n const inputComponent = native ? NativeSelectInput : SelectInput;\n const muiFormControl = useFormControl();\n const fcs = formControlState({\n props,\n muiFormControl,\n states: ['variant', 'error']\n });\n const variant = fcs.variant || variantProp;\n const ownerState = {\n ...props,\n variant,\n classes: classesProp\n };\n const classes = useUtilityClasses(ownerState);\n const {\n root,\n ...restOfClasses\n } = classes;\n const InputComponent = input || {\n standard: /*#__PURE__*/_jsx(StyledInput, {\n ownerState: ownerState\n }),\n outlined: /*#__PURE__*/_jsx(StyledOutlinedInput, {\n label: label,\n ownerState: ownerState\n }),\n filled: /*#__PURE__*/_jsx(StyledFilledInput, {\n ownerState: ownerState\n })\n }[variant];\n const inputComponentRef = useForkRef(ref, getReactElementRef(InputComponent));\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: /*#__PURE__*/React.cloneElement(InputComponent, {\n // Most of the logic is implemented in `SelectInput`.\n // The `Select` component is a simple API wrapper to expose something better to play with.\n inputComponent,\n inputProps: {\n children,\n error: fcs.error,\n IconComponent,\n variant,\n type: undefined,\n // We render a select. We can ignore the type provided by the `Input`.\n multiple,\n ...(native ? {\n id\n } : {\n autoWidth,\n defaultOpen,\n displayEmpty,\n labelId,\n MenuProps,\n onClose,\n onOpen,\n open,\n renderValue,\n SelectDisplayProps: {\n id,\n ...SelectDisplayProps\n }\n }),\n ...inputProps,\n classes: inputProps ? deepmerge(restOfClasses, inputProps.classes) : restOfClasses,\n ...(input ? input.props.inputProps : {})\n },\n ...((multiple && native || displayEmpty) && variant === 'outlined' ? {\n notched: true\n } : {}),\n ref: inputComponentRef,\n className: clsx(InputComponent.props.className, className, classes.root),\n // If a custom input is provided via 'input' prop, do not allow 'variant' to be propagated to it's root element. See https://github.com/mui/material-ui/issues/33894.\n ...(!input && {\n variant\n }),\n ...other\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Select.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If `true`, the width of the popover will automatically be set according to the items inside the\n * menu, otherwise it will be at least the width of the select input.\n * @default false\n */\n autoWidth: PropTypes.bool,\n /**\n * The option elements to populate the select with.\n * Can be some `MenuItem` when `native` is false and `option` when `native` is true.\n *\n * ⚠️The `MenuItem` elements **must** be direct descendants when `native` is false.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n * @default {}\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * If `true`, the component is initially open. Use when the component open state is not controlled (i.e. the `open` prop is not defined).\n * You can only use it when the `native` prop is `false` (default).\n * @default false\n */\n defaultOpen: PropTypes.bool,\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.any,\n /**\n * If `true`, a value is displayed even if no items are selected.\n *\n * In order to display a meaningful value, a function can be passed to the `renderValue` prop which\n * returns the value to be displayed when no items are selected.\n *\n * ⚠️ When using this prop, make sure the label doesn't overlap with the empty displayed value.\n * The label should either be hidden or forced to a shrunk state.\n * @default false\n */\n displayEmpty: PropTypes.bool,\n /**\n * The icon that displays the arrow.\n * @default ArrowDropDownIcon\n */\n IconComponent: PropTypes.elementType,\n /**\n * The `id` of the wrapper element or the `select` element when `native`.\n */\n id: PropTypes.string,\n /**\n * An `Input` element; does not have to be a material-ui specific `Input`.\n */\n input: PropTypes.element,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n * When `native` is `true`, the attributes are applied on the `select` element.\n */\n inputProps: PropTypes.object,\n /**\n * See [OutlinedInput#label](https://mui.com/material-ui/api/outlined-input/#props)\n */\n label: PropTypes.node,\n /**\n * The ID of an element that acts as an additional label. The Select will\n * be labelled by the additional label and the selected value.\n */\n labelId: PropTypes.string,\n /**\n * Props applied to the [`Menu`](https://mui.com/material-ui/api/menu/) element.\n */\n MenuProps: PropTypes.object,\n /**\n * If `true`, `value` must be an array and the menu will support multiple selections.\n * @default false\n */\n multiple: PropTypes.bool,\n /**\n * If `true`, the component uses a native `select` element.\n * @default false\n */\n native: PropTypes.bool,\n /**\n * Callback fired when a menu item is selected.\n *\n * @param {SelectChangeEvent<Value>} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (any).\n * **Warning**: This is a generic event, not a change event, unless the change event is caused by browser autofill.\n * @param {object} [child] The react element that was selected when `native` is `false` (default).\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the component requests to be closed.\n * Use it in either controlled (see the `open` prop), or uncontrolled mode (to detect when the Select collapses).\n *\n * @param {object} event The event source of the callback.\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the component requests to be opened.\n * Use it in either controlled (see the `open` prop), or uncontrolled mode (to detect when the Select expands).\n *\n * @param {object} event The event source of the callback.\n */\n onOpen: PropTypes.func,\n /**\n * If `true`, the component is shown.\n * You can only use it when the `native` prop is `false` (default).\n */\n open: PropTypes.bool,\n /**\n * Render the selected value.\n * You can only use it when the `native` prop is `false` (default).\n *\n * @param {any} value The `value` provided to the component.\n * @returns {ReactNode}\n */\n renderValue: PropTypes.func,\n /**\n * Props applied to the clickable div element.\n */\n SelectDisplayProps: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The `input` value. Providing an empty string will select no options.\n * Set to an empty string `''` if you don't want any of the available options to be selected.\n *\n * If the value is an object it must have reference equality with the option in order to be selected.\n * If the value is not an object, the string representation must match with the string representation of the option in order to be selected.\n */\n value: PropTypes.oneOfType([PropTypes.oneOf(['']), PropTypes.any]),\n /**\n * The variant to use.\n * @default 'outlined'\n */\n variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nSelect.muiName = 'Select';\nexport default Select;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSkeletonUtilityClass(slot) {\n return generateUtilityClass('MuiSkeleton', slot);\n}\nconst skeletonClasses = generateUtilityClasses('MuiSkeleton', ['root', 'text', 'rectangular', 'rounded', 'circular', 'pulse', 'wave', 'withChildren', 'fitContent', 'heightAuto']);\nexport default skeletonClasses;","'use client';\n\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha, unstable_getUnit as getUnit, unstable_toUnitless as toUnitless } from \"../styles/index.js\";\nimport { keyframes, css, styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getSkeletonUtilityClass } from \"./skeletonClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n variant,\n animation,\n hasChildren,\n width,\n height\n } = ownerState;\n const slots = {\n root: ['root', variant, animation, hasChildren && 'withChildren', hasChildren && !width && 'fitContent', hasChildren && !height && 'heightAuto']\n };\n return composeClasses(slots, getSkeletonUtilityClass, classes);\n};\nconst pulseKeyframe = keyframes`\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n`;\nconst waveKeyframe = keyframes`\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n`;\n\n// This implementation is for supporting both Styled-components v4+ and Pigment CSS.\n// A global animation has to be created here for Styled-components v4+ (https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#12).\n// which can be done by checking typeof indeterminate1Keyframe !== 'string' (at runtime, Pigment CSS transform keyframes`` to a string).\nconst pulseAnimation = typeof pulseKeyframe !== 'string' ? css`\n animation: ${pulseKeyframe} 2s ease-in-out 0.5s infinite;\n ` : null;\nconst waveAnimation = typeof waveKeyframe !== 'string' ? css`\n &::after {\n animation: ${waveKeyframe} 2s linear 0.5s infinite;\n }\n ` : null;\nconst SkeletonRoot = styled('span', {\n name: 'MuiSkeleton',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant], ownerState.animation !== false && styles[ownerState.animation], ownerState.hasChildren && styles.withChildren, ownerState.hasChildren && !ownerState.width && styles.fitContent, ownerState.hasChildren && !ownerState.height && styles.heightAuto];\n }\n})(memoTheme(({\n theme\n}) => {\n const radiusUnit = getUnit(theme.shape.borderRadius) || 'px';\n const radiusValue = toUnitless(theme.shape.borderRadius);\n return {\n display: 'block',\n // Create a \"on paper\" color with sufficient contrast retaining the color\n backgroundColor: theme.vars ? theme.vars.palette.Skeleton.bg : alpha(theme.palette.text.primary, theme.palette.mode === 'light' ? 0.11 : 0.13),\n height: '1.2em',\n variants: [{\n props: {\n variant: 'text'\n },\n style: {\n marginTop: 0,\n marginBottom: 0,\n height: 'auto',\n transformOrigin: '0 55%',\n transform: 'scale(1, 0.60)',\n borderRadius: `${radiusValue}${radiusUnit}/${Math.round(radiusValue / 0.6 * 10) / 10}${radiusUnit}`,\n '&:empty:before': {\n content: '\"\\\\00a0\"'\n }\n }\n }, {\n props: {\n variant: 'circular'\n },\n style: {\n borderRadius: '50%'\n }\n }, {\n props: {\n variant: 'rounded'\n },\n style: {\n borderRadius: (theme.vars || theme).shape.borderRadius\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.hasChildren,\n style: {\n '& > *': {\n visibility: 'hidden'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.hasChildren && !ownerState.width,\n style: {\n maxWidth: 'fit-content'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.hasChildren && !ownerState.height,\n style: {\n height: 'auto'\n }\n }, {\n props: {\n animation: 'pulse'\n },\n style: pulseAnimation || {\n animation: `${pulseKeyframe} 2s ease-in-out 0.5s infinite`\n }\n }, {\n props: {\n animation: 'wave'\n },\n style: {\n position: 'relative',\n overflow: 'hidden',\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n WebkitMaskImage: '-webkit-radial-gradient(white, black)',\n '&::after': {\n background: `linear-gradient(\n 90deg,\n transparent,\n ${(theme.vars || theme).palette.action.hover},\n transparent\n )`,\n content: '\"\"',\n position: 'absolute',\n transform: 'translateX(-100%)' /* Avoid flash during server-side hydration */,\n bottom: 0,\n left: 0,\n right: 0,\n top: 0\n }\n }\n }, {\n props: {\n animation: 'wave'\n },\n style: waveAnimation || {\n '&::after': {\n animation: `${waveKeyframe} 2s linear 0.5s infinite`\n }\n }\n }]\n };\n}));\nconst Skeleton = /*#__PURE__*/React.forwardRef(function Skeleton(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiSkeleton'\n });\n const {\n animation = 'pulse',\n className,\n component = 'span',\n height,\n style,\n variant = 'text',\n width,\n ...other\n } = props;\n const ownerState = {\n ...props,\n animation,\n component,\n variant,\n hasChildren: Boolean(other.children)\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(SkeletonRoot, {\n as: component,\n ref: ref,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ...other,\n style: {\n width,\n height,\n ...style\n }\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Skeleton.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The animation.\n * If `false` the animation effect is disabled.\n * @default 'pulse'\n */\n animation: PropTypes.oneOf(['pulse', 'wave', false]),\n /**\n * Optional children to infer width and height from.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * Height of the skeleton.\n * Useful when you don't want to adapt the skeleton to a text element but for instance a card.\n */\n height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The type of content that will be rendered.\n * @default 'text'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['circular', 'rectangular', 'rounded', 'text']), PropTypes.string]),\n /**\n * Width of the skeleton.\n * Useful when the skeleton is inside an inline element with no width of its own.\n */\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string])\n} : void 0;\nexport default Skeleton;","'use client';\n\nimport * as React from 'react';\nimport { unstable_useEventCallback as useEventCallback, unstable_useTimeout as useTimeout } from '@mui/utils';\nimport extractEventHandlers from '@mui/utils/extractEventHandlers';\n/**\n * The basic building block for creating custom snackbar.\n *\n * Demos:\n *\n * - [Snackbar](https://mui.com/base-ui/react-snackbar/#hook)\n *\n * API:\n *\n * - [useSnackbar API](https://mui.com/base-ui/react-snackbar/hooks-api/#use-snackbar)\n */\nfunction useSnackbar(parameters = {}) {\n const {\n autoHideDuration = null,\n disableWindowBlurListener = false,\n onClose,\n open,\n resumeHideDuration\n } = parameters;\n const timerAutoHide = useTimeout();\n React.useEffect(() => {\n if (!open) {\n return undefined;\n }\n\n /**\n * @param {KeyboardEvent} nativeEvent\n */\n function handleKeyDown(nativeEvent) {\n if (!nativeEvent.defaultPrevented) {\n if (nativeEvent.key === 'Escape') {\n // not calling `preventDefault` since we don't know if people may ignore this event e.g. a permanently open snackbar\n onClose?.(nativeEvent, 'escapeKeyDown');\n }\n }\n }\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n }, [open, onClose]);\n const handleClose = useEventCallback((event, reason) => {\n onClose?.(event, reason);\n });\n const setAutoHideTimer = useEventCallback(autoHideDurationParam => {\n if (!onClose || autoHideDurationParam == null) {\n return;\n }\n timerAutoHide.start(autoHideDurationParam, () => {\n handleClose(null, 'timeout');\n });\n });\n React.useEffect(() => {\n if (open) {\n setAutoHideTimer(autoHideDuration);\n }\n return timerAutoHide.clear;\n }, [open, autoHideDuration, setAutoHideTimer, timerAutoHide]);\n const handleClickAway = event => {\n onClose?.(event, 'clickaway');\n };\n\n // Pause the timer when the user is interacting with the Snackbar\n // or when the user hide the window.\n const handlePause = timerAutoHide.clear;\n\n // Restart the timer when the user is no longer interacting with the Snackbar\n // or when the window is shown back.\n const handleResume = React.useCallback(() => {\n if (autoHideDuration != null) {\n setAutoHideTimer(resumeHideDuration != null ? resumeHideDuration : autoHideDuration * 0.5);\n }\n }, [autoHideDuration, resumeHideDuration, setAutoHideTimer]);\n const createHandleBlur = otherHandlers => event => {\n const onBlurCallback = otherHandlers.onBlur;\n onBlurCallback?.(event);\n handleResume();\n };\n const createHandleFocus = otherHandlers => event => {\n const onFocusCallback = otherHandlers.onFocus;\n onFocusCallback?.(event);\n handlePause();\n };\n const createMouseEnter = otherHandlers => event => {\n const onMouseEnterCallback = otherHandlers.onMouseEnter;\n onMouseEnterCallback?.(event);\n handlePause();\n };\n const createMouseLeave = otherHandlers => event => {\n const onMouseLeaveCallback = otherHandlers.onMouseLeave;\n onMouseLeaveCallback?.(event);\n handleResume();\n };\n React.useEffect(() => {\n // TODO: window global should be refactored here\n if (!disableWindowBlurListener && open) {\n window.addEventListener('focus', handleResume);\n window.addEventListener('blur', handlePause);\n return () => {\n window.removeEventListener('focus', handleResume);\n window.removeEventListener('blur', handlePause);\n };\n }\n return undefined;\n }, [disableWindowBlurListener, open, handleResume, handlePause]);\n const getRootProps = (externalProps = {}) => {\n const externalEventHandlers = {\n ...extractEventHandlers(parameters),\n ...extractEventHandlers(externalProps)\n };\n return {\n // ClickAwayListener adds an `onClick` prop which results in the alert not being announced.\n // See https://github.com/mui/material-ui/issues/29080\n role: 'presentation',\n ...externalProps,\n ...externalEventHandlers,\n onBlur: createHandleBlur(externalEventHandlers),\n onFocus: createHandleFocus(externalEventHandlers),\n onMouseEnter: createMouseEnter(externalEventHandlers),\n onMouseLeave: createMouseLeave(externalEventHandlers)\n };\n };\n return {\n getRootProps,\n onClickAway: handleClickAway\n };\n}\nexport default useSnackbar;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSnackbarContentUtilityClass(slot) {\n return generateUtilityClass('MuiSnackbarContent', slot);\n}\nconst snackbarContentClasses = generateUtilityClasses('MuiSnackbarContent', ['root', 'message', 'action']);\nexport default snackbarContentClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { emphasize } from '@mui/system/colorManipulator';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Paper from \"../Paper/index.js\";\nimport { getSnackbarContentUtilityClass } from \"./snackbarContentClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n action: ['action'],\n message: ['message']\n };\n return composeClasses(slots, getSnackbarContentUtilityClass, classes);\n};\nconst SnackbarContentRoot = styled(Paper, {\n name: 'MuiSnackbarContent',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})(memoTheme(({\n theme\n}) => {\n const emphasis = theme.palette.mode === 'light' ? 0.8 : 0.98;\n const backgroundColor = emphasize(theme.palette.background.default, emphasis);\n return {\n ...theme.typography.body2,\n color: theme.vars ? theme.vars.palette.SnackbarContent.color : theme.palette.getContrastText(backgroundColor),\n backgroundColor: theme.vars ? theme.vars.palette.SnackbarContent.bg : backgroundColor,\n display: 'flex',\n alignItems: 'center',\n flexWrap: 'wrap',\n padding: '6px 16px',\n borderRadius: (theme.vars || theme).shape.borderRadius,\n flexGrow: 1,\n [theme.breakpoints.up('sm')]: {\n flexGrow: 'initial',\n minWidth: 288\n }\n };\n}));\nconst SnackbarContentMessage = styled('div', {\n name: 'MuiSnackbarContent',\n slot: 'Message',\n overridesResolver: (props, styles) => styles.message\n})({\n padding: '8px 0'\n});\nconst SnackbarContentAction = styled('div', {\n name: 'MuiSnackbarContent',\n slot: 'Action',\n overridesResolver: (props, styles) => styles.action\n})({\n display: 'flex',\n alignItems: 'center',\n marginLeft: 'auto',\n paddingLeft: 16,\n marginRight: -8\n});\nconst SnackbarContent = /*#__PURE__*/React.forwardRef(function SnackbarContent(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiSnackbarContent'\n });\n const {\n action,\n className,\n message,\n role = 'alert',\n ...other\n } = props;\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(SnackbarContentRoot, {\n role: role,\n square: true,\n elevation: 6,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n ...other,\n children: [/*#__PURE__*/_jsx(SnackbarContentMessage, {\n className: classes.message,\n ownerState: ownerState,\n children: message\n }), action ? /*#__PURE__*/_jsx(SnackbarContentAction, {\n className: classes.action,\n ownerState: ownerState,\n children: action\n }) : null]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? SnackbarContent.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The action to display. It renders after the message, at the end of the snackbar.\n */\n action: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The message to display.\n */\n message: PropTypes.node,\n /**\n * The ARIA role attribute of the element.\n * @default 'alert'\n */\n role: PropTypes /* @typescript-to-proptypes-ignore */.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default SnackbarContent;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSnackbarUtilityClass(slot) {\n return generateUtilityClass('MuiSnackbar', slot);\n}\nconst snackbarClasses = generateUtilityClasses('MuiSnackbar', ['root', 'anchorOriginTopCenter', 'anchorOriginBottomCenter', 'anchorOriginTopRight', 'anchorOriginBottomRight', 'anchorOriginTopLeft', 'anchorOriginBottomLeft']);\nexport default snackbarClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useSnackbar from \"./useSnackbar.js\";\nimport ClickAwayListener from \"../ClickAwayListener/index.js\";\nimport { styled, useTheme } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport Grow from \"../Grow/index.js\";\nimport SnackbarContent from \"../SnackbarContent/index.js\";\nimport { getSnackbarUtilityClass } from \"./snackbarClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n anchorOrigin\n } = ownerState;\n const slots = {\n root: ['root', `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}`]\n };\n return composeClasses(slots, getSnackbarUtilityClass, classes);\n};\nconst SnackbarRoot = styled('div', {\n name: 'MuiSnackbar',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`anchorOrigin${capitalize(ownerState.anchorOrigin.vertical)}${capitalize(ownerState.anchorOrigin.horizontal)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n zIndex: (theme.vars || theme).zIndex.snackbar,\n position: 'fixed',\n display: 'flex',\n left: 8,\n right: 8,\n justifyContent: 'center',\n alignItems: 'center',\n variants: [{\n props: ({\n ownerState\n }) => ownerState.anchorOrigin.vertical === 'top',\n style: {\n top: 8,\n [theme.breakpoints.up('sm')]: {\n top: 24\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.anchorOrigin.vertical !== 'top',\n style: {\n bottom: 8,\n [theme.breakpoints.up('sm')]: {\n bottom: 24\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.anchorOrigin.horizontal === 'left',\n style: {\n justifyContent: 'flex-start',\n [theme.breakpoints.up('sm')]: {\n left: 24,\n right: 'auto'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.anchorOrigin.horizontal === 'right',\n style: {\n justifyContent: 'flex-end',\n [theme.breakpoints.up('sm')]: {\n right: 24,\n left: 'auto'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.anchorOrigin.horizontal === 'center',\n style: {\n [theme.breakpoints.up('sm')]: {\n left: '50%',\n right: 'auto',\n transform: 'translateX(-50%)'\n }\n }\n }]\n})));\nconst Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiSnackbar'\n });\n const theme = useTheme();\n const defaultTransitionDuration = {\n enter: theme.transitions.duration.enteringScreen,\n exit: theme.transitions.duration.leavingScreen\n };\n const {\n action,\n anchorOrigin: {\n vertical,\n horizontal\n } = {\n vertical: 'bottom',\n horizontal: 'left'\n },\n autoHideDuration = null,\n children,\n className,\n ClickAwayListenerProps: ClickAwayListenerPropsProp,\n ContentProps: ContentPropsProp,\n disableWindowBlurListener = false,\n message,\n onBlur,\n onClose,\n onFocus,\n onMouseEnter,\n onMouseLeave,\n open,\n resumeHideDuration,\n slots = {},\n slotProps = {},\n TransitionComponent: TransitionComponentProp,\n transitionDuration = defaultTransitionDuration,\n TransitionProps: {\n onEnter,\n onExited,\n ...TransitionPropsProp\n } = {},\n ...other\n } = props;\n const ownerState = {\n ...props,\n anchorOrigin: {\n vertical,\n horizontal\n },\n autoHideDuration,\n disableWindowBlurListener,\n TransitionComponent: TransitionComponentProp,\n transitionDuration\n };\n const classes = useUtilityClasses(ownerState);\n const {\n getRootProps,\n onClickAway\n } = useSnackbar({\n ...ownerState\n });\n const [exited, setExited] = React.useState(true);\n const handleExited = node => {\n setExited(true);\n if (onExited) {\n onExited(node);\n }\n };\n const handleEnter = (node, isAppearing) => {\n setExited(false);\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n };\n const externalForwardedProps = {\n slots: {\n transition: TransitionComponentProp,\n ...slots\n },\n slotProps: {\n content: ContentPropsProp,\n clickAwayListener: ClickAwayListenerPropsProp,\n transition: TransitionPropsProp,\n ...slotProps\n }\n };\n const [Root, rootProps] = useSlot('root', {\n ref,\n className: [classes.root, className],\n elementType: SnackbarRoot,\n getSlotProps: getRootProps,\n externalForwardedProps: {\n ...externalForwardedProps,\n ...other\n },\n ownerState\n });\n const [ClickAwaySlot, {\n ownerState: clickAwayOwnerStateProp,\n ...clickAwayListenerProps\n }] = useSlot('clickAwayListener', {\n elementType: ClickAwayListener,\n externalForwardedProps,\n getSlotProps: handlers => ({\n onClickAway: (...params) => {\n handlers.onClickAway?.(...params);\n onClickAway(...params);\n }\n }),\n ownerState\n });\n const [ContentSlot, contentSlotProps] = useSlot('content', {\n elementType: SnackbarContent,\n shouldForwardComponentProp: true,\n externalForwardedProps,\n additionalProps: {\n message,\n action\n },\n ownerState\n });\n const [TransitionSlot, transitionProps] = useSlot('transition', {\n elementType: Grow,\n externalForwardedProps,\n getSlotProps: handlers => ({\n onEnter: (...params) => {\n handlers.onEnter?.(...params);\n handleEnter(...params);\n },\n onExited: (...params) => {\n handlers.onExited?.(...params);\n handleExited(...params);\n }\n }),\n additionalProps: {\n appear: true,\n in: open,\n timeout: transitionDuration,\n direction: vertical === 'top' ? 'down' : 'up'\n },\n ownerState\n });\n\n // So we only render active snackbars.\n if (!open && exited) {\n return null;\n }\n return /*#__PURE__*/_jsx(ClickAwaySlot, {\n ...clickAwayListenerProps,\n ...(slots.clickAwayListener && {\n ownerState: clickAwayOwnerStateProp\n }),\n children: /*#__PURE__*/_jsx(Root, {\n ...rootProps,\n children: /*#__PURE__*/_jsx(TransitionSlot, {\n ...transitionProps,\n children: children || /*#__PURE__*/_jsx(ContentSlot, {\n ...contentSlotProps\n })\n })\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Snackbar.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The action to display. It renders after the message, at the end of the snackbar.\n */\n action: PropTypes.node,\n /**\n * The anchor of the `Snackbar`.\n * On smaller screens, the component grows to occupy all the available width,\n * the horizontal alignment is ignored.\n * @default { vertical: 'bottom', horizontal: 'left' }\n */\n anchorOrigin: PropTypes.shape({\n horizontal: PropTypes.oneOf(['center', 'left', 'right']).isRequired,\n vertical: PropTypes.oneOf(['bottom', 'top']).isRequired\n }),\n /**\n * The number of milliseconds to wait before automatically calling the\n * `onClose` function. `onClose` should then set the state of the `open`\n * prop to hide the Snackbar. This behavior is disabled by default with\n * the `null` value.\n * @default null\n */\n autoHideDuration: PropTypes.number,\n /**\n * Replace the `SnackbarContent` component.\n */\n children: PropTypes.element,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * Props applied to the `ClickAwayListener` element.\n * @deprecated Use `slotProps.clickAwayListener` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n ClickAwayListenerProps: PropTypes.object,\n /**\n * Props applied to the [`SnackbarContent`](https://mui.com/material-ui/api/snackbar-content/) element.\n * @deprecated Use `slotProps.content` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n ContentProps: PropTypes.object,\n /**\n * If `true`, the `autoHideDuration` timer will expire even if the window is not focused.\n * @default false\n */\n disableWindowBlurListener: PropTypes.bool,\n /**\n * When displaying multiple consecutive snackbars using a single parent-rendered\n * `<Snackbar/>`, add the `key` prop to ensure independent treatment of each message.\n * For instance, use `<Snackbar key={message} />`. Otherwise, messages might update\n * in place, and features like `autoHideDuration` could be affected.\n */\n key: () => null,\n /**\n * The message to display.\n */\n message: PropTypes.node,\n /**\n * @ignore\n */\n onBlur: PropTypes.func,\n /**\n * Callback fired when the component requests to be closed.\n * Typically `onClose` is used to set state in the parent component,\n * which is used to control the `Snackbar` `open` prop.\n * The `reason` parameter can optionally be used to control the response to `onClose`,\n * for example ignoring `clickaway`.\n *\n * @param {React.SyntheticEvent<any> | Event} event The event source of the callback.\n * @param {string} reason Can be: `\"timeout\"` (`autoHideDuration` expired), `\"clickaway\"`, or `\"escapeKeyDown\"`.\n */\n onClose: PropTypes.func,\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n /**\n * @ignore\n */\n onMouseEnter: PropTypes.func,\n /**\n * @ignore\n */\n onMouseLeave: PropTypes.func,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool,\n /**\n * The number of milliseconds to wait before dismissing after user interaction.\n * If `autoHideDuration` prop isn't specified, it does nothing.\n * If `autoHideDuration` prop is specified but `resumeHideDuration` isn't,\n * we default to `autoHideDuration / 2` ms.\n */\n resumeHideDuration: PropTypes.number,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n clickAwayListener: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n children: PropTypes.element.isRequired,\n disableReactTree: PropTypes.bool,\n mouseEvent: PropTypes.oneOf(['onClick', 'onMouseDown', 'onMouseUp', 'onPointerDown', 'onPointerUp', false]),\n onClickAway: PropTypes.func,\n touchEvent: PropTypes.oneOf(['onTouchEnd', 'onTouchStart', false])\n })]),\n content: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n clickAwayListener: PropTypes.elementType,\n content: PropTypes.elementType,\n root: PropTypes.elementType,\n transition: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The component used for the transition.\n * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n * @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n * @default Grow\n */\n TransitionComponent: PropTypes.elementType,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n * @default {\n * enter: theme.transitions.duration.enteringScreen,\n * exit: theme.transitions.duration.leavingScreen,\n * }\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n /**\n * Props applied to the transition element.\n * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.\n * @deprecated Use `slotProps.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n * @default {}\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default Snackbar;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTooltipUtilityClass(slot) {\n return generateUtilityClass('MuiTooltip', slot);\n}\nconst tooltipClasses = generateUtilityClasses('MuiTooltip', ['popper', 'popperInteractive', 'popperArrow', 'popperClose', 'tooltip', 'tooltipArrow', 'touch', 'tooltipPlacementLeft', 'tooltipPlacementRight', 'tooltipPlacementTop', 'tooltipPlacementBottom', 'arrow']);\nexport default tooltipClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport useTimeout, { Timeout } from '@mui/utils/useTimeout';\nimport elementAcceptingRef from '@mui/utils/elementAcceptingRef';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport isFocusVisible from '@mui/utils/isFocusVisible';\nimport getReactElementRef from '@mui/utils/getReactElementRef';\nimport { styled, useTheme } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport Grow from \"../Grow/index.js\";\nimport Popper from \"../Popper/index.js\";\nimport useEventCallback from \"../utils/useEventCallback.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport useId from \"../utils/useId.js\";\nimport useControlled from \"../utils/useControlled.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport tooltipClasses, { getTooltipUtilityClass } from \"./tooltipClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disableInteractive,\n arrow,\n touch,\n placement\n } = ownerState;\n const slots = {\n popper: ['popper', !disableInteractive && 'popperInteractive', arrow && 'popperArrow'],\n tooltip: ['tooltip', arrow && 'tooltipArrow', touch && 'touch', `tooltipPlacement${capitalize(placement.split('-')[0])}`],\n arrow: ['arrow']\n };\n return composeClasses(slots, getTooltipUtilityClass, classes);\n};\nconst TooltipPopper = styled(Popper, {\n name: 'MuiTooltip',\n slot: 'Popper',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.popper, !ownerState.disableInteractive && styles.popperInteractive, ownerState.arrow && styles.popperArrow, !ownerState.open && styles.popperClose];\n }\n})(memoTheme(({\n theme\n}) => ({\n zIndex: (theme.vars || theme).zIndex.tooltip,\n pointerEvents: 'none',\n variants: [{\n props: ({\n ownerState\n }) => !ownerState.disableInteractive,\n style: {\n pointerEvents: 'auto'\n }\n }, {\n props: ({\n open\n }) => !open,\n style: {\n pointerEvents: 'none'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.arrow,\n style: {\n [`&[data-popper-placement*=\"bottom\"] .${tooltipClasses.arrow}`]: {\n top: 0,\n marginTop: '-0.71em',\n '&::before': {\n transformOrigin: '0 100%'\n }\n },\n [`&[data-popper-placement*=\"top\"] .${tooltipClasses.arrow}`]: {\n bottom: 0,\n marginBottom: '-0.71em',\n '&::before': {\n transformOrigin: '100% 0'\n }\n },\n [`&[data-popper-placement*=\"right\"] .${tooltipClasses.arrow}`]: {\n height: '1em',\n width: '0.71em',\n '&::before': {\n transformOrigin: '100% 100%'\n }\n },\n [`&[data-popper-placement*=\"left\"] .${tooltipClasses.arrow}`]: {\n height: '1em',\n width: '0.71em',\n '&::before': {\n transformOrigin: '0 0'\n }\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.arrow && !ownerState.isRtl,\n style: {\n [`&[data-popper-placement*=\"right\"] .${tooltipClasses.arrow}`]: {\n left: 0,\n marginLeft: '-0.71em'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.arrow && !!ownerState.isRtl,\n style: {\n [`&[data-popper-placement*=\"right\"] .${tooltipClasses.arrow}`]: {\n right: 0,\n marginRight: '-0.71em'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.arrow && !ownerState.isRtl,\n style: {\n [`&[data-popper-placement*=\"left\"] .${tooltipClasses.arrow}`]: {\n right: 0,\n marginRight: '-0.71em'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.arrow && !!ownerState.isRtl,\n style: {\n [`&[data-popper-placement*=\"left\"] .${tooltipClasses.arrow}`]: {\n left: 0,\n marginLeft: '-0.71em'\n }\n }\n }]\n})));\nconst TooltipTooltip = styled('div', {\n name: 'MuiTooltip',\n slot: 'Tooltip',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.tooltip, ownerState.touch && styles.touch, ownerState.arrow && styles.tooltipArrow, styles[`tooltipPlacement${capitalize(ownerState.placement.split('-')[0])}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n backgroundColor: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.92),\n borderRadius: (theme.vars || theme).shape.borderRadius,\n color: (theme.vars || theme).palette.common.white,\n fontFamily: theme.typography.fontFamily,\n padding: '4px 8px',\n fontSize: theme.typography.pxToRem(11),\n maxWidth: 300,\n margin: 2,\n wordWrap: 'break-word',\n fontWeight: theme.typography.fontWeightMedium,\n [`.${tooltipClasses.popper}[data-popper-placement*=\"left\"] &`]: {\n transformOrigin: 'right center'\n },\n [`.${tooltipClasses.popper}[data-popper-placement*=\"right\"] &`]: {\n transformOrigin: 'left center'\n },\n [`.${tooltipClasses.popper}[data-popper-placement*=\"top\"] &`]: {\n transformOrigin: 'center bottom',\n marginBottom: '14px'\n },\n [`.${tooltipClasses.popper}[data-popper-placement*=\"bottom\"] &`]: {\n transformOrigin: 'center top',\n marginTop: '14px'\n },\n variants: [{\n props: ({\n ownerState\n }) => ownerState.arrow,\n style: {\n position: 'relative',\n margin: 0\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.touch,\n style: {\n padding: '8px 16px',\n fontSize: theme.typography.pxToRem(14),\n lineHeight: `${round(16 / 14)}em`,\n fontWeight: theme.typography.fontWeightRegular\n }\n }, {\n props: ({\n ownerState\n }) => !ownerState.isRtl,\n style: {\n [`.${tooltipClasses.popper}[data-popper-placement*=\"left\"] &`]: {\n marginRight: '14px'\n },\n [`.${tooltipClasses.popper}[data-popper-placement*=\"right\"] &`]: {\n marginLeft: '14px'\n }\n }\n }, {\n props: ({\n ownerState\n }) => !ownerState.isRtl && ownerState.touch,\n style: {\n [`.${tooltipClasses.popper}[data-popper-placement*=\"left\"] &`]: {\n marginRight: '24px'\n },\n [`.${tooltipClasses.popper}[data-popper-placement*=\"right\"] &`]: {\n marginLeft: '24px'\n }\n }\n }, {\n props: ({\n ownerState\n }) => !!ownerState.isRtl,\n style: {\n [`.${tooltipClasses.popper}[data-popper-placement*=\"left\"] &`]: {\n marginLeft: '14px'\n },\n [`.${tooltipClasses.popper}[data-popper-placement*=\"right\"] &`]: {\n marginRight: '14px'\n }\n }\n }, {\n props: ({\n ownerState\n }) => !!ownerState.isRtl && ownerState.touch,\n style: {\n [`.${tooltipClasses.popper}[data-popper-placement*=\"left\"] &`]: {\n marginLeft: '24px'\n },\n [`.${tooltipClasses.popper}[data-popper-placement*=\"right\"] &`]: {\n marginRight: '24px'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.touch,\n style: {\n [`.${tooltipClasses.popper}[data-popper-placement*=\"top\"] &`]: {\n marginBottom: '24px'\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.touch,\n style: {\n [`.${tooltipClasses.popper}[data-popper-placement*=\"bottom\"] &`]: {\n marginTop: '24px'\n }\n }\n }]\n})));\nconst TooltipArrow = styled('span', {\n name: 'MuiTooltip',\n slot: 'Arrow',\n overridesResolver: (props, styles) => styles.arrow\n})(memoTheme(({\n theme\n}) => ({\n overflow: 'hidden',\n position: 'absolute',\n width: '1em',\n height: '0.71em' /* = width / sqrt(2) = (length of the hypotenuse) */,\n boxSizing: 'border-box',\n color: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.9),\n '&::before': {\n content: '\"\"',\n margin: 'auto',\n display: 'block',\n width: '100%',\n height: '100%',\n backgroundColor: 'currentColor',\n transform: 'rotate(45deg)'\n }\n})));\nlet hystersisOpen = false;\nconst hystersisTimer = new Timeout();\nlet cursorPosition = {\n x: 0,\n y: 0\n};\nexport function testReset() {\n hystersisOpen = false;\n hystersisTimer.clear();\n}\nfunction composeEventHandler(handler, eventHandler) {\n return (event, ...params) => {\n if (eventHandler) {\n eventHandler(event, ...params);\n }\n handler(event, ...params);\n };\n}\n\n// TODO v6: Remove PopperComponent, PopperProps, TransitionComponent and TransitionProps.\nconst Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTooltip'\n });\n const {\n arrow = false,\n children: childrenProp,\n classes: classesProp,\n components = {},\n componentsProps = {},\n describeChild = false,\n disableFocusListener = false,\n disableHoverListener = false,\n disableInteractive: disableInteractiveProp = false,\n disableTouchListener = false,\n enterDelay = 100,\n enterNextDelay = 0,\n enterTouchDelay = 700,\n followCursor = false,\n id: idProp,\n leaveDelay = 0,\n leaveTouchDelay = 1500,\n onClose,\n onOpen,\n open: openProp,\n placement = 'bottom',\n PopperComponent: PopperComponentProp,\n PopperProps = {},\n slotProps = {},\n slots = {},\n title,\n TransitionComponent: TransitionComponentProp,\n TransitionProps,\n ...other\n } = props;\n\n // to prevent runtime errors, developers will need to provide a child as a React element anyway.\n const children = /*#__PURE__*/React.isValidElement(childrenProp) ? childrenProp : /*#__PURE__*/_jsx(\"span\", {\n children: childrenProp\n });\n const theme = useTheme();\n const isRtl = useRtl();\n const [childNode, setChildNode] = React.useState();\n const [arrowRef, setArrowRef] = React.useState(null);\n const ignoreNonTouchEvents = React.useRef(false);\n const disableInteractive = disableInteractiveProp || followCursor;\n const closeTimer = useTimeout();\n const enterTimer = useTimeout();\n const leaveTimer = useTimeout();\n const touchTimer = useTimeout();\n const [openState, setOpenState] = useControlled({\n controlled: openProp,\n default: false,\n name: 'Tooltip',\n state: 'open'\n });\n let open = openState;\n if (process.env.NODE_ENV !== 'production') {\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks -- process.env never changes\n const {\n current: isControlled\n } = React.useRef(openProp !== undefined);\n\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks -- process.env never changes\n React.useEffect(() => {\n if (childNode && childNode.disabled && !isControlled && title !== '' && childNode.tagName.toLowerCase() === 'button') {\n console.warn(['MUI: You are providing a disabled `button` child to the Tooltip component.', 'A disabled element does not fire events.', \"Tooltip needs to listen to the child element's events to display the title.\", '', 'Add a simple wrapper element, such as a `span`.'].join('\\n'));\n }\n }, [title, childNode, isControlled]);\n }\n const id = useId(idProp);\n const prevUserSelect = React.useRef();\n const stopTouchInteraction = useEventCallback(() => {\n if (prevUserSelect.current !== undefined) {\n document.body.style.WebkitUserSelect = prevUserSelect.current;\n prevUserSelect.current = undefined;\n }\n touchTimer.clear();\n });\n React.useEffect(() => stopTouchInteraction, [stopTouchInteraction]);\n const handleOpen = event => {\n hystersisTimer.clear();\n hystersisOpen = true;\n\n // The mouseover event will trigger for every nested element in the tooltip.\n // We can skip rerendering when the tooltip is already open.\n // We are using the mouseover event instead of the mouseenter event to fix a hide/show issue.\n setOpenState(true);\n if (onOpen && !open) {\n onOpen(event);\n }\n };\n const handleClose = useEventCallback(\n /**\n * @param {React.SyntheticEvent | Event} event\n */\n event => {\n hystersisTimer.start(800 + leaveDelay, () => {\n hystersisOpen = false;\n });\n setOpenState(false);\n if (onClose && open) {\n onClose(event);\n }\n closeTimer.start(theme.transitions.duration.shortest, () => {\n ignoreNonTouchEvents.current = false;\n });\n });\n const handleMouseOver = event => {\n if (ignoreNonTouchEvents.current && event.type !== 'touchstart') {\n return;\n }\n\n // Remove the title ahead of time.\n // We don't want to wait for the next render commit.\n // We would risk displaying two tooltips at the same time (native + this one).\n if (childNode) {\n childNode.removeAttribute('title');\n }\n enterTimer.clear();\n leaveTimer.clear();\n if (enterDelay || hystersisOpen && enterNextDelay) {\n enterTimer.start(hystersisOpen ? enterNextDelay : enterDelay, () => {\n handleOpen(event);\n });\n } else {\n handleOpen(event);\n }\n };\n const handleMouseLeave = event => {\n enterTimer.clear();\n leaveTimer.start(leaveDelay, () => {\n handleClose(event);\n });\n };\n const [, setChildIsFocusVisible] = React.useState(false);\n const handleBlur = event => {\n if (!isFocusVisible(event.target)) {\n setChildIsFocusVisible(false);\n handleMouseLeave(event);\n }\n };\n const handleFocus = event => {\n // Workaround for https://github.com/facebook/react/issues/7769\n // The autoFocus of React might trigger the event before the componentDidMount.\n // We need to account for this eventuality.\n if (!childNode) {\n setChildNode(event.currentTarget);\n }\n if (isFocusVisible(event.target)) {\n setChildIsFocusVisible(true);\n handleMouseOver(event);\n }\n };\n const detectTouchStart = event => {\n ignoreNonTouchEvents.current = true;\n const childrenProps = children.props;\n if (childrenProps.onTouchStart) {\n childrenProps.onTouchStart(event);\n }\n };\n const handleTouchStart = event => {\n detectTouchStart(event);\n leaveTimer.clear();\n closeTimer.clear();\n stopTouchInteraction();\n prevUserSelect.current = document.body.style.WebkitUserSelect;\n // Prevent iOS text selection on long-tap.\n document.body.style.WebkitUserSelect = 'none';\n touchTimer.start(enterTouchDelay, () => {\n document.body.style.WebkitUserSelect = prevUserSelect.current;\n handleMouseOver(event);\n });\n };\n const handleTouchEnd = event => {\n if (children.props.onTouchEnd) {\n children.props.onTouchEnd(event);\n }\n stopTouchInteraction();\n leaveTimer.start(leaveTouchDelay, () => {\n handleClose(event);\n });\n };\n React.useEffect(() => {\n if (!open) {\n return undefined;\n }\n\n /**\n * @param {KeyboardEvent} nativeEvent\n */\n function handleKeyDown(nativeEvent) {\n if (nativeEvent.key === 'Escape') {\n handleClose(nativeEvent);\n }\n }\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n }, [handleClose, open]);\n const handleRef = useForkRef(getReactElementRef(children), setChildNode, ref);\n\n // There is no point in displaying an empty tooltip.\n // So we exclude all falsy values, except 0, which is valid.\n if (!title && title !== 0) {\n open = false;\n }\n const popperRef = React.useRef();\n const handleMouseMove = event => {\n const childrenProps = children.props;\n if (childrenProps.onMouseMove) {\n childrenProps.onMouseMove(event);\n }\n cursorPosition = {\n x: event.clientX,\n y: event.clientY\n };\n if (popperRef.current) {\n popperRef.current.update();\n }\n };\n const nameOrDescProps = {};\n const titleIsString = typeof title === 'string';\n if (describeChild) {\n nameOrDescProps.title = !open && titleIsString && !disableHoverListener ? title : null;\n nameOrDescProps['aria-describedby'] = open ? id : null;\n } else {\n nameOrDescProps['aria-label'] = titleIsString ? title : null;\n nameOrDescProps['aria-labelledby'] = open && !titleIsString ? id : null;\n }\n const childrenProps = {\n ...nameOrDescProps,\n ...other,\n ...children.props,\n className: clsx(other.className, children.props.className),\n onTouchStart: detectTouchStart,\n ref: handleRef,\n ...(followCursor ? {\n onMouseMove: handleMouseMove\n } : {})\n };\n if (process.env.NODE_ENV !== 'production') {\n childrenProps['data-mui-internal-clone-element'] = true;\n\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks -- process.env never changes\n React.useEffect(() => {\n if (childNode && !childNode.getAttribute('data-mui-internal-clone-element')) {\n console.error(['MUI: The `children` component of the Tooltip is not forwarding its props correctly.', 'Please make sure that props are spread on the same element that the ref is applied to.'].join('\\n'));\n }\n }, [childNode]);\n }\n const interactiveWrapperListeners = {};\n if (!disableTouchListener) {\n childrenProps.onTouchStart = handleTouchStart;\n childrenProps.onTouchEnd = handleTouchEnd;\n }\n if (!disableHoverListener) {\n childrenProps.onMouseOver = composeEventHandler(handleMouseOver, childrenProps.onMouseOver);\n childrenProps.onMouseLeave = composeEventHandler(handleMouseLeave, childrenProps.onMouseLeave);\n if (!disableInteractive) {\n interactiveWrapperListeners.onMouseOver = handleMouseOver;\n interactiveWrapperListeners.onMouseLeave = handleMouseLeave;\n }\n }\n if (!disableFocusListener) {\n childrenProps.onFocus = composeEventHandler(handleFocus, childrenProps.onFocus);\n childrenProps.onBlur = composeEventHandler(handleBlur, childrenProps.onBlur);\n if (!disableInteractive) {\n interactiveWrapperListeners.onFocus = handleFocus;\n interactiveWrapperListeners.onBlur = handleBlur;\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n if (children.props.title) {\n console.error(['MUI: You have provided a `title` prop to the child of <Tooltip />.', `Remove this title prop \\`${children.props.title}\\` or the Tooltip component.`].join('\\n'));\n }\n }\n const ownerState = {\n ...props,\n isRtl,\n arrow,\n disableInteractive,\n placement,\n PopperComponentProp,\n touch: ignoreNonTouchEvents.current\n };\n const resolvedPopperProps = typeof slotProps.popper === 'function' ? slotProps.popper(ownerState) : slotProps.popper;\n const popperOptions = React.useMemo(() => {\n let tooltipModifiers = [{\n name: 'arrow',\n enabled: Boolean(arrowRef),\n options: {\n element: arrowRef,\n padding: 4\n }\n }];\n if (PopperProps.popperOptions?.modifiers) {\n tooltipModifiers = tooltipModifiers.concat(PopperProps.popperOptions.modifiers);\n }\n if (resolvedPopperProps?.popperOptions?.modifiers) {\n tooltipModifiers = tooltipModifiers.concat(resolvedPopperProps.popperOptions.modifiers);\n }\n return {\n ...PopperProps.popperOptions,\n ...resolvedPopperProps?.popperOptions,\n modifiers: tooltipModifiers\n };\n }, [arrowRef, PopperProps.popperOptions, resolvedPopperProps?.popperOptions]);\n const classes = useUtilityClasses(ownerState);\n const resolvedTransitionProps = typeof slotProps.transition === 'function' ? slotProps.transition(ownerState) : slotProps.transition;\n const externalForwardedProps = {\n slots: {\n popper: components.Popper,\n transition: components.Transition ?? TransitionComponentProp,\n tooltip: components.Tooltip,\n arrow: components.Arrow,\n ...slots\n },\n slotProps: {\n arrow: slotProps.arrow ?? componentsProps.arrow,\n popper: {\n ...PopperProps,\n ...(resolvedPopperProps ?? componentsProps.popper)\n },\n // resolvedPopperProps can be spread because it's already an object\n tooltip: slotProps.tooltip ?? componentsProps.tooltip,\n transition: {\n ...TransitionProps,\n ...(resolvedTransitionProps ?? componentsProps.transition)\n }\n }\n };\n const [PopperSlot, popperSlotProps] = useSlot('popper', {\n elementType: TooltipPopper,\n externalForwardedProps,\n ownerState,\n className: clsx(classes.popper, PopperProps?.className)\n });\n const [TransitionSlot, transitionSlotProps] = useSlot('transition', {\n elementType: Grow,\n externalForwardedProps,\n ownerState\n });\n const [TooltipSlot, tooltipSlotProps] = useSlot('tooltip', {\n elementType: TooltipTooltip,\n className: classes.tooltip,\n externalForwardedProps,\n ownerState\n });\n const [ArrowSlot, arrowSlotProps] = useSlot('arrow', {\n elementType: TooltipArrow,\n className: classes.arrow,\n externalForwardedProps,\n ownerState,\n ref: setArrowRef\n });\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/React.cloneElement(children, childrenProps), /*#__PURE__*/_jsx(PopperSlot, {\n as: PopperComponentProp ?? Popper,\n placement: placement,\n anchorEl: followCursor ? {\n getBoundingClientRect: () => ({\n top: cursorPosition.y,\n left: cursorPosition.x,\n right: cursorPosition.x,\n bottom: cursorPosition.y,\n width: 0,\n height: 0\n })\n } : childNode,\n popperRef: popperRef,\n open: childNode ? open : false,\n id: id,\n transition: true,\n ...interactiveWrapperListeners,\n ...popperSlotProps,\n popperOptions: popperOptions,\n children: ({\n TransitionProps: TransitionPropsInner\n }) => /*#__PURE__*/_jsx(TransitionSlot, {\n timeout: theme.transitions.duration.shorter,\n ...TransitionPropsInner,\n ...transitionSlotProps,\n children: /*#__PURE__*/_jsxs(TooltipSlot, {\n ...tooltipSlotProps,\n children: [title, arrow ? /*#__PURE__*/_jsx(ArrowSlot, {\n ...arrowSlotProps\n }) : null]\n })\n })\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Tooltip.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If `true`, adds an arrow to the tooltip.\n * @default false\n */\n arrow: PropTypes.bool,\n /**\n * Tooltip reference element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The components used for each slot inside.\n *\n * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n components: PropTypes.shape({\n Arrow: PropTypes.elementType,\n Popper: PropTypes.elementType,\n Tooltip: PropTypes.elementType,\n Transition: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n arrow: PropTypes.object,\n popper: PropTypes.object,\n tooltip: PropTypes.object,\n transition: PropTypes.object\n }),\n /**\n * Set to `true` if the `title` acts as an accessible description.\n * By default the `title` acts as an accessible label for the child.\n * @default false\n */\n describeChild: PropTypes.bool,\n /**\n * Do not respond to focus-visible events.\n * @default false\n */\n disableFocusListener: PropTypes.bool,\n /**\n * Do not respond to hover events.\n * @default false\n */\n disableHoverListener: PropTypes.bool,\n /**\n * Makes a tooltip not interactive, i.e. it will close when the user\n * hovers over the tooltip before the `leaveDelay` is expired.\n * @default false\n */\n disableInteractive: PropTypes.bool,\n /**\n * Do not respond to long press touch events.\n * @default false\n */\n disableTouchListener: PropTypes.bool,\n /**\n * The number of milliseconds to wait before showing the tooltip.\n * This prop won't impact the enter touch delay (`enterTouchDelay`).\n * @default 100\n */\n enterDelay: PropTypes.number,\n /**\n * The number of milliseconds to wait before showing the tooltip when one was already recently opened.\n * @default 0\n */\n enterNextDelay: PropTypes.number,\n /**\n * The number of milliseconds a user must touch the element before showing the tooltip.\n * @default 700\n */\n enterTouchDelay: PropTypes.number,\n /**\n * If `true`, the tooltip follow the cursor over the wrapped element.\n * @default false\n */\n followCursor: PropTypes.bool,\n /**\n * This prop is used to help implement the accessibility logic.\n * If you don't provide this prop. It falls back to a randomly generated id.\n */\n id: PropTypes.string,\n /**\n * The number of milliseconds to wait before hiding the tooltip.\n * This prop won't impact the leave touch delay (`leaveTouchDelay`).\n * @default 0\n */\n leaveDelay: PropTypes.number,\n /**\n * The number of milliseconds after the user stops touching an element before hiding the tooltip.\n * @default 1500\n */\n leaveTouchDelay: PropTypes.number,\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the component requests to be open.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onOpen: PropTypes.func,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool,\n /**\n * Tooltip placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * The component used for the popper.\n * @deprecated use the `slots.popper` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n PopperComponent: PropTypes.elementType,\n /**\n * Props applied to the [`Popper`](https://mui.com/material-ui/api/popper/) element.\n * @deprecated use the `slotProps.popper` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n * @default {}\n */\n PopperProps: PropTypes.object,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n arrow: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n popper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n tooltip: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n arrow: PropTypes.elementType,\n popper: PropTypes.elementType,\n tooltip: PropTypes.elementType,\n transition: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.\n */\n title: PropTypes.node,\n /**\n * The component used for the transition.\n * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n * @deprecated use the `slots.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n TransitionComponent: PropTypes.elementType,\n /**\n * Props applied to the transition element.\n * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.\n * @deprecated use the `slotProps.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n * @default {}\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default Tooltip;","'use client';\n\nimport PropTypes from 'prop-types';\nimport { createStack } from '@mui/system';\nimport styled from \"../styles/styled.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nconst Stack = createStack({\n createStyledComponent: styled('div', {\n name: 'MuiStack',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n }),\n useThemeProps: inProps => useDefaultProps({\n props: inProps,\n name: 'MuiStack'\n })\n});\nprocess.env.NODE_ENV !== \"production\" ? Stack.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * Defines the `flex-direction` style property.\n * It is applied for all screen sizes.\n * @default 'column'\n */\n direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n /**\n * Add an element between each child.\n */\n divider: PropTypes.node,\n /**\n * Defines the space between immediate children.\n * @default 0\n */\n spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n /**\n * The system prop, which allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.\n *\n * While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),\n * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.\n *\n * To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.\n * @default false\n */\n useFlexGap: PropTypes.bool\n} : void 0;\nexport default Stack;","'use client';\n\nimport * as React from 'react';\n/**\n * Provides information about the current step in Stepper.\n */\nconst StepperContext = /*#__PURE__*/React.createContext({});\nif (process.env.NODE_ENV !== 'production') {\n StepperContext.displayName = 'StepperContext';\n}\n\n/**\n * Returns the current StepperContext or an empty object if no StepperContext\n * has been defined in the component tree.\n */\nexport function useStepperContext() {\n return React.useContext(StepperContext);\n}\nexport default StepperContext;","'use client';\n\nimport * as React from 'react';\n/**\n * Provides information about the current step in Stepper.\n */\nconst StepContext = /*#__PURE__*/React.createContext({});\nif (process.env.NODE_ENV !== 'production') {\n StepContext.displayName = 'StepContext';\n}\n\n/**\n * Returns the current StepContext or an empty object if no StepContext\n * has been defined in the component tree.\n */\nexport function useStepContext() {\n return React.useContext(StepContext);\n}\nexport default StepContext;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getStepUtilityClass(slot) {\n return generateUtilityClass('MuiStep', slot);\n}\nconst stepClasses = generateUtilityClasses('MuiStep', ['root', 'horizontal', 'vertical', 'alternativeLabel', 'completed']);\nexport default stepClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport integerPropType from '@mui/utils/integerPropType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport StepperContext from \"../Stepper/StepperContext.js\";\nimport StepContext from \"./StepContext.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getStepUtilityClass } from \"./stepClasses.js\";\nimport { jsxs as _jsxs, jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n orientation,\n alternativeLabel,\n completed\n } = ownerState;\n const slots = {\n root: ['root', orientation, alternativeLabel && 'alternativeLabel', completed && 'completed']\n };\n return composeClasses(slots, getStepUtilityClass, classes);\n};\nconst StepRoot = styled('div', {\n name: 'MuiStep',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel, ownerState.completed && styles.completed];\n }\n})({\n variants: [{\n props: {\n orientation: 'horizontal'\n },\n style: {\n paddingLeft: 8,\n paddingRight: 8\n }\n }, {\n props: {\n alternativeLabel: true\n },\n style: {\n flex: 1,\n position: 'relative'\n }\n }]\n});\nconst Step = /*#__PURE__*/React.forwardRef(function Step(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiStep'\n });\n const {\n active: activeProp,\n children,\n className,\n component = 'div',\n completed: completedProp,\n disabled: disabledProp,\n expanded = false,\n index,\n last,\n ...other\n } = props;\n const {\n activeStep,\n connector,\n alternativeLabel,\n orientation,\n nonLinear\n } = React.useContext(StepperContext);\n let [active = false, completed = false, disabled = false] = [activeProp, completedProp, disabledProp];\n if (activeStep === index) {\n active = activeProp !== undefined ? activeProp : true;\n } else if (!nonLinear && activeStep > index) {\n completed = completedProp !== undefined ? completedProp : true;\n } else if (!nonLinear && activeStep < index) {\n disabled = disabledProp !== undefined ? disabledProp : true;\n }\n const contextValue = React.useMemo(() => ({\n index,\n last,\n expanded,\n icon: index + 1,\n active,\n completed,\n disabled\n }), [index, last, expanded, active, completed, disabled]);\n const ownerState = {\n ...props,\n active,\n orientation,\n alternativeLabel,\n completed,\n disabled,\n expanded,\n component\n };\n const classes = useUtilityClasses(ownerState);\n const newChildren = /*#__PURE__*/_jsxs(StepRoot, {\n as: component,\n className: clsx(classes.root, className),\n ref: ref,\n ownerState: ownerState,\n ...other,\n children: [connector && alternativeLabel && index !== 0 ? connector : null, children]\n });\n return /*#__PURE__*/_jsx(StepContext.Provider, {\n value: contextValue,\n children: connector && !alternativeLabel && index !== 0 ? /*#__PURE__*/_jsxs(React.Fragment, {\n children: [connector, newChildren]\n }) : newChildren\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Step.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Sets the step as active. Is passed to child components.\n */\n active: PropTypes.bool,\n /**\n * Should be `Step` sub-components such as `StepLabel`, `StepContent`.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * Mark the step as completed. Is passed to child components.\n */\n completed: PropTypes.bool,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, the step is disabled, will also disable the button if\n * `StepButton` is a child of `Step`. Is passed to child components.\n */\n disabled: PropTypes.bool,\n /**\n * Expand the step.\n * @default false\n */\n expanded: PropTypes.bool,\n /**\n * The position of the step.\n * The prop defaults to the value inherited from the parent Stepper component.\n */\n index: integerPropType,\n /**\n * If `true`, the Step is displayed as rendered last.\n * The prop defaults to the value inherited from the parent Stepper component.\n */\n last: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Step;","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z\"\n}), 'CheckCircle');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z\"\n}), 'Warning');","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getStepIconUtilityClass(slot) {\n return generateUtilityClass('MuiStepIcon', slot);\n}\nconst stepIconClasses = generateUtilityClasses('MuiStepIcon', ['root', 'active', 'completed', 'error', 'text']);\nexport default stepIconClasses;","'use client';\n\nvar _circle;\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport CheckCircle from \"../internal/svg-icons/CheckCircle.js\";\nimport Warning from \"../internal/svg-icons/Warning.js\";\nimport SvgIcon from \"../SvgIcon/index.js\";\nimport stepIconClasses, { getStepIconUtilityClass } from \"./stepIconClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n active,\n completed,\n error\n } = ownerState;\n const slots = {\n root: ['root', active && 'active', completed && 'completed', error && 'error'],\n text: ['text']\n };\n return composeClasses(slots, getStepIconUtilityClass, classes);\n};\nconst StepIconRoot = styled(SvgIcon, {\n name: 'MuiStepIcon',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})(memoTheme(({\n theme\n}) => ({\n display: 'block',\n transition: theme.transitions.create('color', {\n duration: theme.transitions.duration.shortest\n }),\n color: (theme.vars || theme).palette.text.disabled,\n [`&.${stepIconClasses.completed}`]: {\n color: (theme.vars || theme).palette.primary.main\n },\n [`&.${stepIconClasses.active}`]: {\n color: (theme.vars || theme).palette.primary.main\n },\n [`&.${stepIconClasses.error}`]: {\n color: (theme.vars || theme).palette.error.main\n }\n})));\nconst StepIconText = styled('text', {\n name: 'MuiStepIcon',\n slot: 'Text',\n overridesResolver: (props, styles) => styles.text\n})(memoTheme(({\n theme\n}) => ({\n fill: (theme.vars || theme).palette.primary.contrastText,\n fontSize: theme.typography.caption.fontSize,\n fontFamily: theme.typography.fontFamily\n})));\nconst StepIcon = /*#__PURE__*/React.forwardRef(function StepIcon(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiStepIcon'\n });\n const {\n active = false,\n className: classNameProp,\n completed = false,\n error = false,\n icon,\n ...other\n } = props;\n const ownerState = {\n ...props,\n active,\n completed,\n error\n };\n const classes = useUtilityClasses(ownerState);\n if (typeof icon === 'number' || typeof icon === 'string') {\n const className = clsx(classNameProp, classes.root);\n if (error) {\n return /*#__PURE__*/_jsx(StepIconRoot, {\n as: Warning,\n className: className,\n ref: ref,\n ownerState: ownerState,\n ...other\n });\n }\n if (completed) {\n return /*#__PURE__*/_jsx(StepIconRoot, {\n as: CheckCircle,\n className: className,\n ref: ref,\n ownerState: ownerState,\n ...other\n });\n }\n return /*#__PURE__*/_jsxs(StepIconRoot, {\n className: className,\n ref: ref,\n ownerState: ownerState,\n ...other,\n children: [_circle || (_circle = /*#__PURE__*/_jsx(\"circle\", {\n cx: \"12\",\n cy: \"12\",\n r: \"12\"\n })), /*#__PURE__*/_jsx(StepIconText, {\n className: classes.text,\n x: \"12\",\n y: \"12\",\n textAnchor: \"middle\",\n dominantBaseline: \"central\",\n ownerState: ownerState,\n children: icon\n })]\n });\n }\n return icon;\n});\nprocess.env.NODE_ENV !== \"production\" ? StepIcon.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Whether this step is active.\n * @default false\n */\n active: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * Mark the step as completed. Is passed to child components.\n * @default false\n */\n completed: PropTypes.bool,\n /**\n * If `true`, the step is marked as failed.\n * @default false\n */\n error: PropTypes.bool,\n /**\n * The label displayed in the step icon.\n */\n icon: PropTypes.node,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default StepIcon;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getStepLabelUtilityClass(slot) {\n return generateUtilityClass('MuiStepLabel', slot);\n}\nconst stepLabelClasses = generateUtilityClasses('MuiStepLabel', ['root', 'horizontal', 'vertical', 'label', 'active', 'completed', 'error', 'disabled', 'iconContainer', 'alternativeLabel', 'labelContainer']);\nexport default stepLabelClasses;","'use client';\n\nimport composeClasses from '@mui/utils/composeClasses';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport StepContext from \"../Step/StepContext.js\";\nimport StepIcon from \"../StepIcon/index.js\";\nimport StepperContext from \"../Stepper/StepperContext.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport stepLabelClasses, { getStepLabelUtilityClass } from \"./stepLabelClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n orientation,\n active,\n completed,\n error,\n disabled,\n alternativeLabel\n } = ownerState;\n const slots = {\n root: ['root', orientation, error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],\n label: ['label', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],\n iconContainer: ['iconContainer', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],\n labelContainer: ['labelContainer', alternativeLabel && 'alternativeLabel']\n };\n return composeClasses(slots, getStepLabelUtilityClass, classes);\n};\nconst StepLabelRoot = styled('span', {\n name: 'MuiStepLabel',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.orientation]];\n }\n})({\n display: 'flex',\n alignItems: 'center',\n [`&.${stepLabelClasses.alternativeLabel}`]: {\n flexDirection: 'column'\n },\n [`&.${stepLabelClasses.disabled}`]: {\n cursor: 'default'\n },\n variants: [{\n props: {\n orientation: 'vertical'\n },\n style: {\n textAlign: 'left',\n padding: '8px 0'\n }\n }]\n});\nconst StepLabelLabel = styled('span', {\n name: 'MuiStepLabel',\n slot: 'Label',\n overridesResolver: (props, styles) => styles.label\n})(memoTheme(({\n theme\n}) => ({\n ...theme.typography.body2,\n display: 'block',\n transition: theme.transitions.create('color', {\n duration: theme.transitions.duration.shortest\n }),\n [`&.${stepLabelClasses.active}`]: {\n color: (theme.vars || theme).palette.text.primary,\n fontWeight: 500\n },\n [`&.${stepLabelClasses.completed}`]: {\n color: (theme.vars || theme).palette.text.primary,\n fontWeight: 500\n },\n [`&.${stepLabelClasses.alternativeLabel}`]: {\n marginTop: 16\n },\n [`&.${stepLabelClasses.error}`]: {\n color: (theme.vars || theme).palette.error.main\n }\n})));\nconst StepLabelIconContainer = styled('span', {\n name: 'MuiStepLabel',\n slot: 'IconContainer',\n overridesResolver: (props, styles) => styles.iconContainer\n})({\n flexShrink: 0,\n display: 'flex',\n paddingRight: 8,\n [`&.${stepLabelClasses.alternativeLabel}`]: {\n paddingRight: 0\n }\n});\nconst StepLabelLabelContainer = styled('span', {\n name: 'MuiStepLabel',\n slot: 'LabelContainer',\n overridesResolver: (props, styles) => styles.labelContainer\n})(memoTheme(({\n theme\n}) => ({\n width: '100%',\n color: (theme.vars || theme).palette.text.secondary,\n [`&.${stepLabelClasses.alternativeLabel}`]: {\n textAlign: 'center'\n }\n})));\nconst StepLabel = /*#__PURE__*/React.forwardRef(function StepLabel(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiStepLabel'\n });\n const {\n children,\n className,\n componentsProps = {},\n error = false,\n icon: iconProp,\n optional,\n slots = {},\n slotProps = {},\n StepIconComponent: StepIconComponentProp,\n StepIconProps,\n ...other\n } = props;\n const {\n alternativeLabel,\n orientation\n } = React.useContext(StepperContext);\n const {\n active,\n disabled,\n completed,\n icon: iconContext\n } = React.useContext(StepContext);\n const icon = iconProp || iconContext;\n let StepIconComponent = StepIconComponentProp;\n if (icon && !StepIconComponent) {\n StepIconComponent = StepIcon;\n }\n const ownerState = {\n ...props,\n active,\n alternativeLabel,\n completed,\n disabled,\n error,\n orientation\n };\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots,\n slotProps: {\n stepIcon: StepIconProps,\n ...componentsProps,\n ...slotProps\n }\n };\n const [RootSlot, rootProps] = useSlot('root', {\n elementType: StepLabelRoot,\n externalForwardedProps: {\n ...externalForwardedProps,\n ...other\n },\n ownerState,\n ref,\n className: clsx(classes.root, className)\n });\n const [LabelSlot, labelProps] = useSlot('label', {\n elementType: StepLabelLabel,\n externalForwardedProps,\n ownerState\n });\n const [StepIconSlot, stepIconProps] = useSlot('stepIcon', {\n elementType: StepIconComponent,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsxs(RootSlot, {\n ...rootProps,\n children: [icon || StepIconSlot ? /*#__PURE__*/_jsx(StepLabelIconContainer, {\n className: classes.iconContainer,\n ownerState: ownerState,\n children: /*#__PURE__*/_jsx(StepIconSlot, {\n completed: completed,\n active: active,\n error: error,\n icon: icon,\n ...stepIconProps\n })\n }) : null, /*#__PURE__*/_jsxs(StepLabelLabelContainer, {\n className: classes.labelContainer,\n ownerState: ownerState,\n children: [children ? /*#__PURE__*/_jsx(LabelSlot, {\n ...labelProps,\n className: clsx(classes.label, labelProps?.className),\n children: children\n }) : null, optional]\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? StepLabel.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * In most cases will simply be a string containing a title for the label.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The props used for each slot inside.\n * @default {}\n * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n componentsProps: PropTypes.shape({\n label: PropTypes.object\n }),\n /**\n * If `true`, the step is marked as failed.\n * @default false\n */\n error: PropTypes.bool,\n /**\n * Override the default label of the step icon.\n */\n icon: PropTypes.node,\n /**\n * The optional node to display.\n */\n optional: PropTypes.node,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n label: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n stepIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n label: PropTypes.elementType,\n root: PropTypes.elementType,\n stepIcon: PropTypes.elementType\n }),\n /**\n * The component to render in place of the [`StepIcon`](https://mui.com/material-ui/api/step-icon/).\n * @deprecated Use `slots.stepIcon` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n StepIconComponent: PropTypes.elementType,\n /**\n * Props applied to the [`StepIcon`](https://mui.com/material-ui/api/step-icon/) element.\n * @deprecated Use `slotProps.stepIcon` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n StepIconProps: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nStepLabel.muiName = 'StepLabel';\nexport default StepLabel;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getStepConnectorUtilityClass(slot) {\n return generateUtilityClass('MuiStepConnector', slot);\n}\nconst stepConnectorClasses = generateUtilityClasses('MuiStepConnector', ['root', 'horizontal', 'vertical', 'alternativeLabel', 'active', 'completed', 'disabled', 'line', 'lineHorizontal', 'lineVertical']);\nexport default stepConnectorClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from \"../utils/capitalize.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport StepperContext from \"../Stepper/StepperContext.js\";\nimport StepContext from \"../Step/StepContext.js\";\nimport { getStepConnectorUtilityClass } from \"./stepConnectorClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n orientation,\n alternativeLabel,\n active,\n completed,\n disabled\n } = ownerState;\n const slots = {\n root: ['root', orientation, alternativeLabel && 'alternativeLabel', active && 'active', completed && 'completed', disabled && 'disabled'],\n line: ['line', `line${capitalize(orientation)}`]\n };\n return composeClasses(slots, getStepConnectorUtilityClass, classes);\n};\nconst StepConnectorRoot = styled('div', {\n name: 'MuiStepConnector',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel, ownerState.completed && styles.completed];\n }\n})({\n flex: '1 1 auto',\n variants: [{\n props: {\n orientation: 'vertical'\n },\n style: {\n marginLeft: 12 // half icon\n }\n }, {\n props: {\n alternativeLabel: true\n },\n style: {\n position: 'absolute',\n top: 8 + 4,\n left: 'calc(-50% + 20px)',\n right: 'calc(50% + 20px)'\n }\n }]\n});\nconst StepConnectorLine = styled('span', {\n name: 'MuiStepConnector',\n slot: 'Line',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.line, styles[`line${capitalize(ownerState.orientation)}`]];\n }\n})(memoTheme(({\n theme\n}) => {\n const borderColor = theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600];\n return {\n display: 'block',\n borderColor: theme.vars ? theme.vars.palette.StepConnector.border : borderColor,\n variants: [{\n props: {\n orientation: 'horizontal'\n },\n style: {\n borderTopStyle: 'solid',\n borderTopWidth: 1\n }\n }, {\n props: {\n orientation: 'vertical'\n },\n style: {\n borderLeftStyle: 'solid',\n borderLeftWidth: 1,\n minHeight: 24\n }\n }]\n };\n}));\nconst StepConnector = /*#__PURE__*/React.forwardRef(function StepConnector(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiStepConnector'\n });\n const {\n className,\n ...other\n } = props;\n const {\n alternativeLabel,\n orientation = 'horizontal'\n } = React.useContext(StepperContext);\n const {\n active,\n disabled,\n completed\n } = React.useContext(StepContext);\n const ownerState = {\n ...props,\n alternativeLabel,\n orientation,\n active,\n completed,\n disabled\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(StepConnectorRoot, {\n className: clsx(classes.root, className),\n ref: ref,\n ownerState: ownerState,\n ...other,\n children: /*#__PURE__*/_jsx(StepConnectorLine, {\n className: classes.line,\n ownerState: ownerState\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? StepConnector.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default StepConnector;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getStepContentUtilityClass(slot) {\n return generateUtilityClass('MuiStepContent', slot);\n}\nconst stepContentClasses = generateUtilityClasses('MuiStepContent', ['root', 'last', 'transition']);\nexport default stepContentClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Collapse from \"../Collapse/index.js\";\nimport StepperContext from \"../Stepper/StepperContext.js\";\nimport StepContext from \"../Step/StepContext.js\";\nimport { getStepContentUtilityClass } from \"./stepContentClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n last\n } = ownerState;\n const slots = {\n root: ['root', last && 'last'],\n transition: ['transition']\n };\n return composeClasses(slots, getStepContentUtilityClass, classes);\n};\nconst StepContentRoot = styled('div', {\n name: 'MuiStepContent',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.last && styles.last];\n }\n})(memoTheme(({\n theme\n}) => ({\n marginLeft: 12,\n // half icon\n paddingLeft: 8 + 12,\n // margin + half icon\n paddingRight: 8,\n borderLeft: theme.vars ? `1px solid ${theme.vars.palette.StepContent.border}` : `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]}`,\n variants: [{\n props: {\n last: true\n },\n style: {\n borderLeft: 'none'\n }\n }]\n})));\nconst StepContentTransition = styled(Collapse, {\n name: 'MuiStepContent',\n slot: 'Transition',\n overridesResolver: (props, styles) => styles.transition\n})({});\nconst StepContent = /*#__PURE__*/React.forwardRef(function StepContent(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiStepContent'\n });\n const {\n children,\n className,\n TransitionComponent = Collapse,\n transitionDuration: transitionDurationProp = 'auto',\n TransitionProps,\n slots = {},\n slotProps = {},\n ...other\n } = props;\n const {\n orientation\n } = React.useContext(StepperContext);\n const {\n active,\n last,\n expanded\n } = React.useContext(StepContext);\n const ownerState = {\n ...props,\n last\n };\n const classes = useUtilityClasses(ownerState);\n if (process.env.NODE_ENV !== 'production') {\n if (orientation !== 'vertical') {\n console.error('MUI: <StepContent /> is only designed for use with the vertical stepper.');\n }\n }\n let transitionDuration = transitionDurationProp;\n if (transitionDurationProp === 'auto' && !TransitionComponent.muiSupportAuto) {\n transitionDuration = undefined;\n }\n const externalForwardedProps = {\n slots,\n slotProps: {\n transition: TransitionProps,\n ...slotProps\n }\n };\n const [TransitionSlot, transitionProps] = useSlot('transition', {\n elementType: StepContentTransition,\n externalForwardedProps,\n ownerState,\n className: classes.transition,\n additionalProps: {\n in: active || expanded,\n timeout: transitionDuration,\n unmountOnExit: true\n }\n });\n return /*#__PURE__*/_jsx(StepContentRoot, {\n className: clsx(classes.root, className),\n ref: ref,\n ownerState: ownerState,\n ...other,\n children: /*#__PURE__*/_jsx(TransitionSlot, {\n as: TransitionComponent,\n ...transitionProps,\n children: children\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? StepContent.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n transition: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The component used for the transition.\n * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n * @default Collapse\n * @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).\n */\n TransitionComponent: PropTypes.elementType,\n /**\n * Adjust the duration of the content expand transition.\n * Passed as a prop to the transition component.\n *\n * Set to 'auto' to automatically calculate transition time based on height.\n * @default 'auto'\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n /**\n * Props applied to the transition element.\n * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.\n * @deprecated Use `slotProps.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default StepContent;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getStepperUtilityClass(slot) {\n return generateUtilityClass('MuiStepper', slot);\n}\nconst stepperClasses = generateUtilityClasses('MuiStepper', ['root', 'horizontal', 'vertical', 'nonLinear', 'alternativeLabel']);\nexport default stepperClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport integerPropType from '@mui/utils/integerPropType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getStepperUtilityClass } from \"./stepperClasses.js\";\nimport StepConnector from \"../StepConnector/index.js\";\nimport StepperContext from \"./StepperContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n orientation,\n nonLinear,\n alternativeLabel,\n classes\n } = ownerState;\n const slots = {\n root: ['root', orientation, nonLinear && 'nonLinear', alternativeLabel && 'alternativeLabel']\n };\n return composeClasses(slots, getStepperUtilityClass, classes);\n};\nconst StepperRoot = styled('div', {\n name: 'MuiStepper',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel, ownerState.nonLinear && styles.nonLinear];\n }\n})({\n display: 'flex',\n variants: [{\n props: {\n orientation: 'horizontal'\n },\n style: {\n flexDirection: 'row',\n alignItems: 'center'\n }\n }, {\n props: {\n orientation: 'vertical'\n },\n style: {\n flexDirection: 'column'\n }\n }, {\n props: {\n alternativeLabel: true\n },\n style: {\n alignItems: 'flex-start'\n }\n }]\n});\nconst defaultConnector = /*#__PURE__*/_jsx(StepConnector, {});\nconst Stepper = /*#__PURE__*/React.forwardRef(function Stepper(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiStepper'\n });\n const {\n activeStep = 0,\n alternativeLabel = false,\n children,\n className,\n component = 'div',\n connector = defaultConnector,\n nonLinear = false,\n orientation = 'horizontal',\n ...other\n } = props;\n const ownerState = {\n ...props,\n nonLinear,\n alternativeLabel,\n orientation,\n component\n };\n const classes = useUtilityClasses(ownerState);\n const childrenArray = React.Children.toArray(children).filter(Boolean);\n const steps = childrenArray.map((step, index) => {\n return /*#__PURE__*/React.cloneElement(step, {\n index,\n last: index + 1 === childrenArray.length,\n ...step.props\n });\n });\n const contextValue = React.useMemo(() => ({\n activeStep,\n alternativeLabel,\n connector,\n nonLinear,\n orientation\n }), [activeStep, alternativeLabel, connector, nonLinear, orientation]);\n return /*#__PURE__*/_jsx(StepperContext.Provider, {\n value: contextValue,\n children: /*#__PURE__*/_jsx(StepperRoot, {\n as: component,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ref: ref,\n ...other,\n children: steps\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Stepper.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Set the active step (zero based index).\n * Set to -1 to disable all the steps.\n * @default 0\n */\n activeStep: integerPropType,\n /**\n * If set to 'true' and orientation is horizontal,\n * then the step label will be positioned under the icon.\n * @default false\n */\n alternativeLabel: PropTypes.bool,\n /**\n * Two or more `<Step />` components.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * An element to be placed between each step.\n * @default <StepConnector />\n */\n connector: PropTypes.element,\n /**\n * If set the `Stepper` will not assist in controlling steps for linear flow.\n * @default false\n */\n nonLinear: PropTypes.bool,\n /**\n * The component orientation (layout flow direction).\n * @default 'horizontal'\n */\n orientation: PropTypes.oneOf(['horizontal', 'vertical']),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Stepper;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSwitchUtilityClass(slot) {\n return generateUtilityClass('MuiSwitch', slot);\n}\nconst switchClasses = generateUtilityClasses('MuiSwitch', ['root', 'edgeStart', 'edgeEnd', 'switchBase', 'colorPrimary', 'colorSecondary', 'sizeSmall', 'sizeMedium', 'checked', 'disabled', 'input', 'thumb', 'track']);\nexport default switchClasses;","'use client';\n\n// @inheritedComponent IconButton\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha, darken, lighten } from '@mui/system/colorManipulator';\nimport capitalize from \"../utils/capitalize.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport SwitchBase from \"../internal/SwitchBase.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport switchClasses, { getSwitchUtilityClass } from \"./switchClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n edge,\n size,\n color,\n checked,\n disabled\n } = ownerState;\n const slots = {\n root: ['root', edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`],\n switchBase: ['switchBase', `color${capitalize(color)}`, checked && 'checked', disabled && 'disabled'],\n thumb: ['thumb'],\n track: ['track'],\n input: ['input']\n };\n const composedClasses = composeClasses(slots, getSwitchUtilityClass, classes);\n return {\n ...classes,\n // forward the disabled and checked classes to the SwitchBase\n ...composedClasses\n };\n};\nconst SwitchRoot = styled('span', {\n name: 'MuiSwitch',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];\n }\n})({\n display: 'inline-flex',\n width: 34 + 12 * 2,\n height: 14 + 12 * 2,\n overflow: 'hidden',\n padding: 12,\n boxSizing: 'border-box',\n position: 'relative',\n flexShrink: 0,\n zIndex: 0,\n // Reset the stacking context.\n verticalAlign: 'middle',\n // For correct alignment with the text.\n '@media print': {\n colorAdjust: 'exact'\n },\n variants: [{\n props: {\n edge: 'start'\n },\n style: {\n marginLeft: -8\n }\n }, {\n props: {\n edge: 'end'\n },\n style: {\n marginRight: -8\n }\n }, {\n props: {\n size: 'small'\n },\n style: {\n width: 40,\n height: 24,\n padding: 7,\n [`& .${switchClasses.thumb}`]: {\n width: 16,\n height: 16\n },\n [`& .${switchClasses.switchBase}`]: {\n padding: 4,\n [`&.${switchClasses.checked}`]: {\n transform: 'translateX(16px)'\n }\n }\n }\n }]\n});\nconst SwitchSwitchBase = styled(SwitchBase, {\n name: 'MuiSwitch',\n slot: 'SwitchBase',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.switchBase, {\n [`& .${switchClasses.input}`]: styles.input\n }, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n position: 'absolute',\n top: 0,\n left: 0,\n zIndex: 1,\n // Render above the focus ripple.\n color: theme.vars ? theme.vars.palette.Switch.defaultColor : `${theme.palette.mode === 'light' ? theme.palette.common.white : theme.palette.grey[300]}`,\n transition: theme.transitions.create(['left', 'transform'], {\n duration: theme.transitions.duration.shortest\n }),\n [`&.${switchClasses.checked}`]: {\n transform: 'translateX(20px)'\n },\n [`&.${switchClasses.disabled}`]: {\n color: theme.vars ? theme.vars.palette.Switch.defaultDisabledColor : `${theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[600]}`\n },\n [`&.${switchClasses.checked} + .${switchClasses.track}`]: {\n opacity: 0.5\n },\n [`&.${switchClasses.disabled} + .${switchClasses.track}`]: {\n opacity: theme.vars ? theme.vars.opacity.switchTrackDisabled : `${theme.palette.mode === 'light' ? 0.12 : 0.2}`\n },\n [`& .${switchClasses.input}`]: {\n left: '-100%',\n width: '300%'\n }\n})), memoTheme(({\n theme\n}) => ({\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['light'])) // check all the used fields in the style below\n .map(([color]) => ({\n props: {\n color\n },\n style: {\n [`&.${switchClasses.checked}`]: {\n color: (theme.vars || theme).palette[color].main,\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity),\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n [`&.${switchClasses.disabled}`]: {\n color: theme.vars ? theme.vars.palette.Switch[`${color}DisabledColor`] : `${theme.palette.mode === 'light' ? lighten(theme.palette[color].main, 0.62) : darken(theme.palette[color].main, 0.55)}`\n }\n },\n [`&.${switchClasses.checked} + .${switchClasses.track}`]: {\n backgroundColor: (theme.vars || theme).palette[color].main\n }\n }\n }))]\n})));\nconst SwitchTrack = styled('span', {\n name: 'MuiSwitch',\n slot: 'Track',\n overridesResolver: (props, styles) => styles.track\n})(memoTheme(({\n theme\n}) => ({\n height: '100%',\n width: '100%',\n borderRadius: 14 / 2,\n zIndex: -1,\n transition: theme.transitions.create(['opacity', 'background-color'], {\n duration: theme.transitions.duration.shortest\n }),\n backgroundColor: theme.vars ? theme.vars.palette.common.onBackground : `${theme.palette.mode === 'light' ? theme.palette.common.black : theme.palette.common.white}`,\n opacity: theme.vars ? theme.vars.opacity.switchTrack : `${theme.palette.mode === 'light' ? 0.38 : 0.3}`\n})));\nconst SwitchThumb = styled('span', {\n name: 'MuiSwitch',\n slot: 'Thumb',\n overridesResolver: (props, styles) => styles.thumb\n})(memoTheme(({\n theme\n}) => ({\n boxShadow: (theme.vars || theme).shadows[1],\n backgroundColor: 'currentColor',\n width: 20,\n height: 20,\n borderRadius: '50%'\n})));\nconst Switch = /*#__PURE__*/React.forwardRef(function Switch(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiSwitch'\n });\n const {\n className,\n color = 'primary',\n edge = false,\n size = 'medium',\n sx,\n slots = {},\n slotProps = {},\n ...other\n } = props;\n const ownerState = {\n ...props,\n color,\n edge,\n size\n };\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots,\n slotProps\n };\n const [RootSlot, rootSlotProps] = useSlot('root', {\n className: clsx(classes.root, className),\n elementType: SwitchRoot,\n externalForwardedProps,\n ownerState,\n additionalProps: {\n sx\n }\n });\n const [ThumbSlot, thumbSlotProps] = useSlot('thumb', {\n className: classes.thumb,\n elementType: SwitchThumb,\n externalForwardedProps,\n ownerState\n });\n const icon = /*#__PURE__*/_jsx(ThumbSlot, {\n ...thumbSlotProps\n });\n const [TrackSlot, trackSlotProps] = useSlot('track', {\n className: classes.track,\n elementType: SwitchTrack,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsxs(RootSlot, {\n ...rootSlotProps,\n children: [/*#__PURE__*/_jsx(SwitchSwitchBase, {\n type: \"checkbox\",\n icon: icon,\n checkedIcon: icon,\n ref: ref,\n ownerState: ownerState,\n ...other,\n classes: {\n ...classes,\n root: classes.switchBase\n },\n slots: {\n ...(slots.switchBase && {\n root: slots.switchBase\n }),\n ...(slots.input && {\n input: slots.input\n })\n },\n slotProps: {\n ...(slotProps.switchBase && {\n root: typeof slotProps.switchBase === 'function' ? slotProps.switchBase(ownerState) : slotProps.switchBase\n }),\n ...(slotProps.input && {\n input: typeof slotProps.input === 'function' ? slotProps.input(ownerState) : slotProps.input\n })\n }\n }), /*#__PURE__*/_jsx(TrackSlot, {\n ...trackSlotProps\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Switch.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If `true`, the component is checked.\n */\n checked: PropTypes.bool,\n /**\n * The icon to display when the component is checked.\n */\n checkedIcon: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The default checked state. Use when the component is not controlled.\n */\n defaultChecked: PropTypes.bool,\n /**\n * If `true`, the component is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * If given, uses a negative margin to counteract the padding on one\n * side (this is often helpful for aligning the left or right\n * side of the icon with content above or below, without ruining the border\n * size and shape).\n * @default false\n */\n edge: PropTypes.oneOf(['end', 'start', false]),\n /**\n * The icon to display when the component is unchecked.\n */\n icon: PropTypes.node,\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n * @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n inputProps: PropTypes.object,\n /**\n * Pass a ref to the `input` element.\n * @deprecated Use `slotProps.input.ref` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n inputRef: refType,\n /**\n * Callback fired when the state is changed.\n *\n * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (string).\n * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n */\n onChange: PropTypes.func,\n /**\n * If `true`, the `input` element is required.\n * @default false\n */\n required: PropTypes.bool,\n /**\n * The size of the component.\n * `small` is equivalent to the dense switch styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n input: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n switchBase: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n thumb: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n track: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n input: PropTypes.elementType,\n root: PropTypes.elementType,\n switchBase: PropTypes.elementType,\n thumb: PropTypes.elementType,\n track: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n */\n value: PropTypes.any\n} : void 0;\nexport default Switch;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTabUtilityClass(slot) {\n return generateUtilityClass('MuiTab', slot);\n}\nconst tabClasses = generateUtilityClasses('MuiTab', ['root', 'labelIcon', 'textColorInherit', 'textColorPrimary', 'textColorSecondary', 'selected', 'disabled', 'fullWidth', 'wrapped', 'iconWrapper', 'icon']);\nexport default tabClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport unsupportedProp from \"../utils/unsupportedProp.js\";\nimport tabClasses, { getTabUtilityClass } from \"./tabClasses.js\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n textColor,\n fullWidth,\n wrapped,\n icon,\n label,\n selected,\n disabled\n } = ownerState;\n const slots = {\n root: ['root', icon && label && 'labelIcon', `textColor${capitalize(textColor)}`, fullWidth && 'fullWidth', wrapped && 'wrapped', selected && 'selected', disabled && 'disabled'],\n icon: ['iconWrapper', 'icon']\n };\n return composeClasses(slots, getTabUtilityClass, classes);\n};\nconst TabRoot = styled(ButtonBase, {\n name: 'MuiTab',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.label && ownerState.icon && styles.labelIcon, styles[`textColor${capitalize(ownerState.textColor)}`], ownerState.fullWidth && styles.fullWidth, ownerState.wrapped && styles.wrapped, {\n [`& .${tabClasses.iconWrapper}`]: styles.iconWrapper\n }, {\n [`& .${tabClasses.icon}`]: styles.icon\n }];\n }\n})(memoTheme(({\n theme\n}) => ({\n ...theme.typography.button,\n maxWidth: 360,\n minWidth: 90,\n position: 'relative',\n minHeight: 48,\n flexShrink: 0,\n padding: '12px 16px',\n overflow: 'hidden',\n whiteSpace: 'normal',\n textAlign: 'center',\n lineHeight: 1.25,\n variants: [{\n props: ({\n ownerState\n }) => ownerState.label && (ownerState.iconPosition === 'top' || ownerState.iconPosition === 'bottom'),\n style: {\n flexDirection: 'column'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.label && ownerState.iconPosition !== 'top' && ownerState.iconPosition !== 'bottom',\n style: {\n flexDirection: 'row'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.icon && ownerState.label,\n style: {\n minHeight: 72,\n paddingTop: 9,\n paddingBottom: 9\n }\n }, {\n props: ({\n ownerState,\n iconPosition\n }) => ownerState.icon && ownerState.label && iconPosition === 'top',\n style: {\n [`& > .${tabClasses.icon}`]: {\n marginBottom: 6\n }\n }\n }, {\n props: ({\n ownerState,\n iconPosition\n }) => ownerState.icon && ownerState.label && iconPosition === 'bottom',\n style: {\n [`& > .${tabClasses.icon}`]: {\n marginTop: 6\n }\n }\n }, {\n props: ({\n ownerState,\n iconPosition\n }) => ownerState.icon && ownerState.label && iconPosition === 'start',\n style: {\n [`& > .${tabClasses.icon}`]: {\n marginRight: theme.spacing(1)\n }\n }\n }, {\n props: ({\n ownerState,\n iconPosition\n }) => ownerState.icon && ownerState.label && iconPosition === 'end',\n style: {\n [`& > .${tabClasses.icon}`]: {\n marginLeft: theme.spacing(1)\n }\n }\n }, {\n props: {\n textColor: 'inherit'\n },\n style: {\n color: 'inherit',\n opacity: 0.6,\n // same opacity as theme.palette.text.secondary\n [`&.${tabClasses.selected}`]: {\n opacity: 1\n },\n [`&.${tabClasses.disabled}`]: {\n opacity: (theme.vars || theme).palette.action.disabledOpacity\n }\n }\n }, {\n props: {\n textColor: 'primary'\n },\n style: {\n color: (theme.vars || theme).palette.text.secondary,\n [`&.${tabClasses.selected}`]: {\n color: (theme.vars || theme).palette.primary.main\n },\n [`&.${tabClasses.disabled}`]: {\n color: (theme.vars || theme).palette.text.disabled\n }\n }\n }, {\n props: {\n textColor: 'secondary'\n },\n style: {\n color: (theme.vars || theme).palette.text.secondary,\n [`&.${tabClasses.selected}`]: {\n color: (theme.vars || theme).palette.secondary.main\n },\n [`&.${tabClasses.disabled}`]: {\n color: (theme.vars || theme).palette.text.disabled\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.fullWidth,\n style: {\n flexShrink: 1,\n flexGrow: 1,\n flexBasis: 0,\n maxWidth: 'none'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.wrapped,\n style: {\n fontSize: theme.typography.pxToRem(12)\n }\n }]\n})));\nconst Tab = /*#__PURE__*/React.forwardRef(function Tab(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTab'\n });\n const {\n className,\n disabled = false,\n disableFocusRipple = false,\n // eslint-disable-next-line react/prop-types\n fullWidth,\n icon: iconProp,\n iconPosition = 'top',\n // eslint-disable-next-line react/prop-types\n indicator,\n label,\n onChange,\n onClick,\n onFocus,\n // eslint-disable-next-line react/prop-types\n selected,\n // eslint-disable-next-line react/prop-types\n selectionFollowsFocus,\n // eslint-disable-next-line react/prop-types\n textColor = 'inherit',\n value,\n wrapped = false,\n ...other\n } = props;\n const ownerState = {\n ...props,\n disabled,\n disableFocusRipple,\n selected,\n icon: !!iconProp,\n iconPosition,\n label: !!label,\n fullWidth,\n textColor,\n wrapped\n };\n const classes = useUtilityClasses(ownerState);\n const icon = iconProp && label && /*#__PURE__*/React.isValidElement(iconProp) ? /*#__PURE__*/React.cloneElement(iconProp, {\n className: clsx(classes.icon, iconProp.props.className)\n }) : iconProp;\n const handleClick = event => {\n if (!selected && onChange) {\n onChange(event, value);\n }\n if (onClick) {\n onClick(event);\n }\n };\n const handleFocus = event => {\n if (selectionFollowsFocus && !selected && onChange) {\n onChange(event, value);\n }\n if (onFocus) {\n onFocus(event);\n }\n };\n return /*#__PURE__*/_jsxs(TabRoot, {\n focusRipple: !disableFocusRipple,\n className: clsx(classes.root, className),\n ref: ref,\n role: \"tab\",\n \"aria-selected\": selected,\n disabled: disabled,\n onClick: handleClick,\n onFocus: handleFocus,\n ownerState: ownerState,\n tabIndex: selected ? 0 : -1,\n ...other,\n children: [iconPosition === 'top' || iconPosition === 'start' ? /*#__PURE__*/_jsxs(React.Fragment, {\n children: [icon, label]\n }) : /*#__PURE__*/_jsxs(React.Fragment, {\n children: [label, icon]\n }), indicator]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Tab.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * This prop isn't supported.\n * Use the `component` prop if you need to change the children structure.\n */\n children: unsupportedProp,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the keyboard focus ripple is disabled.\n * @default false\n */\n disableFocusRipple: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * The icon to display.\n */\n icon: PropTypes.oneOfType([PropTypes.element, PropTypes.string]),\n /**\n * The position of the icon relative to the label.\n * @default 'top'\n */\n iconPosition: PropTypes.oneOf(['bottom', 'end', 'start', 'top']),\n /**\n * The label element.\n */\n label: PropTypes.node,\n /**\n * @ignore\n */\n onChange: PropTypes.func,\n /**\n * @ignore\n */\n onClick: PropTypes.func,\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * You can provide your own value. Otherwise, we fallback to the child position index.\n */\n value: PropTypes.any,\n /**\n * Tab labels appear in a single row.\n * They can use a second line if needed.\n * @default false\n */\n wrapped: PropTypes.bool\n} : void 0;\nexport default Tab;","'use client';\n\nimport * as React from 'react';\n\n/**\n * @ignore - internal component.\n */\nconst TableContext = /*#__PURE__*/React.createContext();\nif (process.env.NODE_ENV !== 'production') {\n TableContext.displayName = 'TableContext';\n}\nexport default TableContext;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTableUtilityClass(slot) {\n return generateUtilityClass('MuiTable', slot);\n}\nconst tableClasses = generateUtilityClasses('MuiTable', ['root', 'stickyHeader']);\nexport default tableClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport TableContext from \"./TableContext.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getTableUtilityClass } from \"./tableClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n stickyHeader\n } = ownerState;\n const slots = {\n root: ['root', stickyHeader && 'stickyHeader']\n };\n return composeClasses(slots, getTableUtilityClass, classes);\n};\nconst TableRoot = styled('table', {\n name: 'MuiTable',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.stickyHeader && styles.stickyHeader];\n }\n})(memoTheme(({\n theme\n}) => ({\n display: 'table',\n width: '100%',\n borderCollapse: 'collapse',\n borderSpacing: 0,\n '& caption': {\n ...theme.typography.body2,\n padding: theme.spacing(2),\n color: (theme.vars || theme).palette.text.secondary,\n textAlign: 'left',\n captionSide: 'bottom'\n },\n variants: [{\n props: ({\n ownerState\n }) => ownerState.stickyHeader,\n style: {\n borderCollapse: 'separate'\n }\n }]\n})));\nconst defaultComponent = 'table';\nconst Table = /*#__PURE__*/React.forwardRef(function Table(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTable'\n });\n const {\n className,\n component = defaultComponent,\n padding = 'normal',\n size = 'medium',\n stickyHeader = false,\n ...other\n } = props;\n const ownerState = {\n ...props,\n component,\n padding,\n size,\n stickyHeader\n };\n const classes = useUtilityClasses(ownerState);\n const table = React.useMemo(() => ({\n padding,\n size,\n stickyHeader\n }), [padding, size, stickyHeader]);\n return /*#__PURE__*/_jsx(TableContext.Provider, {\n value: table,\n children: /*#__PURE__*/_jsx(TableRoot, {\n as: component,\n role: component === defaultComponent ? null : 'table',\n ref: ref,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ...other\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Table.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the table, normally `TableHead` and `TableBody`.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * Allows TableCells to inherit padding of the Table.\n * @default 'normal'\n */\n padding: PropTypes.oneOf(['checkbox', 'none', 'normal']),\n /**\n * Allows TableCells to inherit size of the Table.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * Set the header sticky.\n * @default false\n */\n stickyHeader: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Table;","'use client';\n\nimport * as React from 'react';\n\n/**\n * @ignore - internal component.\n */\nconst Tablelvl2Context = /*#__PURE__*/React.createContext();\nif (process.env.NODE_ENV !== 'production') {\n Tablelvl2Context.displayName = 'Tablelvl2Context';\n}\nexport default Tablelvl2Context;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTableBodyUtilityClass(slot) {\n return generateUtilityClass('MuiTableBody', slot);\n}\nconst tableBodyClasses = generateUtilityClasses('MuiTableBody', ['root']);\nexport default tableBodyClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport Tablelvl2Context from \"../Table/Tablelvl2Context.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getTableBodyUtilityClass } from \"./tableBodyClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getTableBodyUtilityClass, classes);\n};\nconst TableBodyRoot = styled('tbody', {\n name: 'MuiTableBody',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n display: 'table-row-group'\n});\nconst tablelvl2 = {\n variant: 'body'\n};\nconst defaultComponent = 'tbody';\nconst TableBody = /*#__PURE__*/React.forwardRef(function TableBody(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTableBody'\n });\n const {\n className,\n component = defaultComponent,\n ...other\n } = props;\n const ownerState = {\n ...props,\n component\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(Tablelvl2Context.Provider, {\n value: tablelvl2,\n children: /*#__PURE__*/_jsx(TableBodyRoot, {\n className: clsx(classes.root, className),\n as: component,\n ref: ref,\n role: component === defaultComponent ? null : 'rowgroup',\n ownerState: ownerState,\n ...other\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? TableBody.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component, normally `TableRow`.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default TableBody;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTableCellUtilityClass(slot) {\n return generateUtilityClass('MuiTableCell', slot);\n}\nconst tableCellClasses = generateUtilityClasses('MuiTableCell', ['root', 'head', 'body', 'footer', 'sizeSmall', 'sizeMedium', 'paddingCheckbox', 'paddingNone', 'alignLeft', 'alignCenter', 'alignRight', 'alignJustify', 'stickyHeader']);\nexport default tableCellClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { darken, alpha, lighten } from '@mui/system/colorManipulator';\nimport capitalize from \"../utils/capitalize.js\";\nimport TableContext from \"../Table/TableContext.js\";\nimport Tablelvl2Context from \"../Table/Tablelvl2Context.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport tableCellClasses, { getTableCellUtilityClass } from \"./tableCellClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n variant,\n align,\n padding,\n size,\n stickyHeader\n } = ownerState;\n const slots = {\n root: ['root', variant, stickyHeader && 'stickyHeader', align !== 'inherit' && `align${capitalize(align)}`, padding !== 'normal' && `padding${capitalize(padding)}`, `size${capitalize(size)}`]\n };\n return composeClasses(slots, getTableCellUtilityClass, classes);\n};\nconst TableCellRoot = styled('td', {\n name: 'MuiTableCell',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant], styles[`size${capitalize(ownerState.size)}`], ownerState.padding !== 'normal' && styles[`padding${capitalize(ownerState.padding)}`], ownerState.align !== 'inherit' && styles[`align${capitalize(ownerState.align)}`], ownerState.stickyHeader && styles.stickyHeader];\n }\n})(memoTheme(({\n theme\n}) => ({\n ...theme.typography.body2,\n display: 'table-cell',\n verticalAlign: 'inherit',\n // Workaround for a rendering bug with spanned columns in Chrome 62.0.\n // Removes the alpha (sets it to 1), and lightens or darkens the theme color.\n borderBottom: theme.vars ? `1px solid ${theme.vars.palette.TableCell.border}` : `1px solid\n ${theme.palette.mode === 'light' ? lighten(alpha(theme.palette.divider, 1), 0.88) : darken(alpha(theme.palette.divider, 1), 0.68)}`,\n textAlign: 'left',\n padding: 16,\n variants: [{\n props: {\n variant: 'head'\n },\n style: {\n color: (theme.vars || theme).palette.text.primary,\n lineHeight: theme.typography.pxToRem(24),\n fontWeight: theme.typography.fontWeightMedium\n }\n }, {\n props: {\n variant: 'body'\n },\n style: {\n color: (theme.vars || theme).palette.text.primary\n }\n }, {\n props: {\n variant: 'footer'\n },\n style: {\n color: (theme.vars || theme).palette.text.secondary,\n lineHeight: theme.typography.pxToRem(21),\n fontSize: theme.typography.pxToRem(12)\n }\n }, {\n props: {\n size: 'small'\n },\n style: {\n padding: '6px 16px',\n [`&.${tableCellClasses.paddingCheckbox}`]: {\n width: 24,\n // prevent the checkbox column from growing\n padding: '0 12px 0 16px',\n '& > *': {\n padding: 0\n }\n }\n }\n }, {\n props: {\n padding: 'checkbox'\n },\n style: {\n width: 48,\n // prevent the checkbox column from growing\n padding: '0 0 0 4px'\n }\n }, {\n props: {\n padding: 'none'\n },\n style: {\n padding: 0\n }\n }, {\n props: {\n align: 'left'\n },\n style: {\n textAlign: 'left'\n }\n }, {\n props: {\n align: 'center'\n },\n style: {\n textAlign: 'center'\n }\n }, {\n props: {\n align: 'right'\n },\n style: {\n textAlign: 'right',\n flexDirection: 'row-reverse'\n }\n }, {\n props: {\n align: 'justify'\n },\n style: {\n textAlign: 'justify'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.stickyHeader,\n style: {\n position: 'sticky',\n top: 0,\n zIndex: 2,\n backgroundColor: (theme.vars || theme).palette.background.default\n }\n }]\n})));\n\n/**\n * The component renders a `<th>` element when the parent context is a header\n * or otherwise a `<td>` element.\n */\nconst TableCell = /*#__PURE__*/React.forwardRef(function TableCell(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTableCell'\n });\n const {\n align = 'inherit',\n className,\n component: componentProp,\n padding: paddingProp,\n scope: scopeProp,\n size: sizeProp,\n sortDirection,\n variant: variantProp,\n ...other\n } = props;\n const table = React.useContext(TableContext);\n const tablelvl2 = React.useContext(Tablelvl2Context);\n const isHeadCell = tablelvl2 && tablelvl2.variant === 'head';\n let component;\n if (componentProp) {\n component = componentProp;\n } else {\n component = isHeadCell ? 'th' : 'td';\n }\n let scope = scopeProp;\n // scope is not a valid attribute for <td/> elements.\n // source: https://html.spec.whatwg.org/multipage/tables.html#the-td-element\n if (component === 'td') {\n scope = undefined;\n } else if (!scope && isHeadCell) {\n scope = 'col';\n }\n const variant = variantProp || tablelvl2 && tablelvl2.variant;\n const ownerState = {\n ...props,\n align,\n component,\n padding: paddingProp || (table && table.padding ? table.padding : 'normal'),\n size: sizeProp || (table && table.size ? table.size : 'medium'),\n sortDirection,\n stickyHeader: variant === 'head' && table && table.stickyHeader,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n let ariaSort = null;\n if (sortDirection) {\n ariaSort = sortDirection === 'asc' ? 'ascending' : 'descending';\n }\n return /*#__PURE__*/_jsx(TableCellRoot, {\n as: component,\n ref: ref,\n className: clsx(classes.root, className),\n \"aria-sort\": ariaSort,\n scope: scope,\n ownerState: ownerState,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? TableCell.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Set the text-align on the table cell content.\n *\n * Monetary or generally number fields **should be right aligned** as that allows\n * you to add them up quickly in your head without having to worry about decimals.\n * @default 'inherit'\n */\n align: PropTypes.oneOf(['center', 'inherit', 'justify', 'left', 'right']),\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * Sets the padding applied to the cell.\n * The prop defaults to the value (`'default'`) inherited from the parent Table component.\n */\n padding: PropTypes.oneOf(['checkbox', 'none', 'normal']),\n /**\n * Set scope attribute.\n */\n scope: PropTypes.string,\n /**\n * Specify the size of the cell.\n * The prop defaults to the value (`'medium'`) inherited from the parent Table component.\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * Set aria-sort direction.\n */\n sortDirection: PropTypes.oneOf(['asc', 'desc', false]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Specify the cell type.\n * The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components.\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['body', 'footer', 'head']), PropTypes.string])\n} : void 0;\nexport default TableCell;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTableContainerUtilityClass(slot) {\n return generateUtilityClass('MuiTableContainer', slot);\n}\nconst tableContainerClasses = generateUtilityClasses('MuiTableContainer', ['root']);\nexport default tableContainerClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getTableContainerUtilityClass } from \"./tableContainerClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getTableContainerUtilityClass, classes);\n};\nconst TableContainerRoot = styled('div', {\n name: 'MuiTableContainer',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n width: '100%',\n overflowX: 'auto'\n});\nconst TableContainer = /*#__PURE__*/React.forwardRef(function TableContainer(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTableContainer'\n });\n const {\n className,\n component = 'div',\n ...other\n } = props;\n const ownerState = {\n ...props,\n component\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(TableContainerRoot, {\n ref: ref,\n as: component,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? TableContainer.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component, normally `Table`.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default TableContainer;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTableHeadUtilityClass(slot) {\n return generateUtilityClass('MuiTableHead', slot);\n}\nconst tableHeadClasses = generateUtilityClasses('MuiTableHead', ['root']);\nexport default tableHeadClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport Tablelvl2Context from \"../Table/Tablelvl2Context.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getTableHeadUtilityClass } from \"./tableHeadClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getTableHeadUtilityClass, classes);\n};\nconst TableHeadRoot = styled('thead', {\n name: 'MuiTableHead',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n display: 'table-header-group'\n});\nconst tablelvl2 = {\n variant: 'head'\n};\nconst defaultComponent = 'thead';\nconst TableHead = /*#__PURE__*/React.forwardRef(function TableHead(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTableHead'\n });\n const {\n className,\n component = defaultComponent,\n ...other\n } = props;\n const ownerState = {\n ...props,\n component\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(Tablelvl2Context.Provider, {\n value: tablelvl2,\n children: /*#__PURE__*/_jsx(TableHeadRoot, {\n as: component,\n className: clsx(classes.root, className),\n ref: ref,\n role: component === defaultComponent ? null : 'rowgroup',\n ownerState: ownerState,\n ...other\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? TableHead.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component, normally `TableRow`.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default TableHead;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getToolbarUtilityClass(slot) {\n return generateUtilityClass('MuiToolbar', slot);\n}\nconst toolbarClasses = generateUtilityClasses('MuiToolbar', ['root', 'gutters', 'regular', 'dense']);\nexport default toolbarClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getToolbarUtilityClass } from \"./toolbarClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disableGutters,\n variant\n } = ownerState;\n const slots = {\n root: ['root', !disableGutters && 'gutters', variant]\n };\n return composeClasses(slots, getToolbarUtilityClass, classes);\n};\nconst ToolbarRoot = styled('div', {\n name: 'MuiToolbar',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, !ownerState.disableGutters && styles.gutters, styles[ownerState.variant]];\n }\n})(memoTheme(({\n theme\n}) => ({\n position: 'relative',\n display: 'flex',\n alignItems: 'center',\n variants: [{\n props: ({\n ownerState\n }) => !ownerState.disableGutters,\n style: {\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3)\n }\n }\n }, {\n props: {\n variant: 'dense'\n },\n style: {\n minHeight: 48\n }\n }, {\n props: {\n variant: 'regular'\n },\n style: theme.mixins.toolbar\n }]\n})));\nconst Toolbar = /*#__PURE__*/React.forwardRef(function Toolbar(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiToolbar'\n });\n const {\n className,\n component = 'div',\n disableGutters = false,\n variant = 'regular',\n ...other\n } = props;\n const ownerState = {\n ...props,\n component,\n disableGutters,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(ToolbarRoot, {\n as: component,\n className: clsx(classes.root, className),\n ref: ref,\n ownerState: ownerState,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Toolbar.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The Toolbar children, usually a mixture of `IconButton`, `Button` and `Typography`.\n * The Toolbar is a flex container, allowing flex item properties to be used to lay out the children.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, disables gutter padding.\n * @default false\n */\n disableGutters: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The variant to use.\n * @default 'regular'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['dense', 'regular']), PropTypes.string])\n} : void 0;\nexport default Toolbar;","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z\"\n}), 'KeyboardArrowLeft');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z\"\n}), 'KeyboardArrowRight');","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport KeyboardArrowLeft from \"../internal/svg-icons/KeyboardArrowLeft.js\";\nimport KeyboardArrowRight from \"../internal/svg-icons/KeyboardArrowRight.js\";\nimport IconButton from \"../IconButton/index.js\";\nimport LastPageIconDefault from \"../internal/svg-icons/LastPage.js\";\nimport FirstPageIconDefault from \"../internal/svg-icons/FirstPage.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst TablePaginationActions = /*#__PURE__*/React.forwardRef(function TablePaginationActions(props, ref) {\n const {\n backIconButtonProps,\n count,\n disabled = false,\n getItemAriaLabel,\n nextIconButtonProps,\n onPageChange,\n page,\n rowsPerPage,\n showFirstButton,\n showLastButton,\n slots = {},\n slotProps = {},\n ...other\n } = props;\n const isRtl = useRtl();\n const handleFirstPageButtonClick = event => {\n onPageChange(event, 0);\n };\n const handleBackButtonClick = event => {\n onPageChange(event, page - 1);\n };\n const handleNextButtonClick = event => {\n onPageChange(event, page + 1);\n };\n const handleLastPageButtonClick = event => {\n onPageChange(event, Math.max(0, Math.ceil(count / rowsPerPage) - 1));\n };\n const FirstButton = slots.firstButton ?? IconButton;\n const LastButton = slots.lastButton ?? IconButton;\n const NextButton = slots.nextButton ?? IconButton;\n const PreviousButton = slots.previousButton ?? IconButton;\n const FirstButtonIcon = slots.firstButtonIcon ?? FirstPageIconDefault;\n const LastButtonIcon = slots.lastButtonIcon ?? LastPageIconDefault;\n const NextButtonIcon = slots.nextButtonIcon ?? KeyboardArrowRight;\n const PreviousButtonIcon = slots.previousButtonIcon ?? KeyboardArrowLeft;\n const FirstButtonSlot = isRtl ? LastButton : FirstButton;\n const PreviousButtonSlot = isRtl ? NextButton : PreviousButton;\n const NextButtonSlot = isRtl ? PreviousButton : NextButton;\n const LastButtonSlot = isRtl ? FirstButton : LastButton;\n const firstButtonSlotProps = isRtl ? slotProps.lastButton : slotProps.firstButton;\n const previousButtonSlotProps = isRtl ? slotProps.nextButton : slotProps.previousButton;\n const nextButtonSlotProps = isRtl ? slotProps.previousButton : slotProps.nextButton;\n const lastButtonSlotProps = isRtl ? slotProps.firstButton : slotProps.lastButton;\n return /*#__PURE__*/_jsxs(\"div\", {\n ref: ref,\n ...other,\n children: [showFirstButton && /*#__PURE__*/_jsx(FirstButtonSlot, {\n onClick: handleFirstPageButtonClick,\n disabled: disabled || page === 0,\n \"aria-label\": getItemAriaLabel('first', page),\n title: getItemAriaLabel('first', page),\n ...firstButtonSlotProps,\n children: isRtl ? /*#__PURE__*/_jsx(LastButtonIcon, {\n ...slotProps.lastButtonIcon\n }) : /*#__PURE__*/_jsx(FirstButtonIcon, {\n ...slotProps.firstButtonIcon\n })\n }), /*#__PURE__*/_jsx(PreviousButtonSlot, {\n onClick: handleBackButtonClick,\n disabled: disabled || page === 0,\n color: \"inherit\",\n \"aria-label\": getItemAriaLabel('previous', page),\n title: getItemAriaLabel('previous', page),\n ...(previousButtonSlotProps ?? backIconButtonProps),\n children: isRtl ? /*#__PURE__*/_jsx(NextButtonIcon, {\n ...slotProps.nextButtonIcon\n }) : /*#__PURE__*/_jsx(PreviousButtonIcon, {\n ...slotProps.previousButtonIcon\n })\n }), /*#__PURE__*/_jsx(NextButtonSlot, {\n onClick: handleNextButtonClick,\n disabled: disabled || (count !== -1 ? page >= Math.ceil(count / rowsPerPage) - 1 : false),\n color: \"inherit\",\n \"aria-label\": getItemAriaLabel('next', page),\n title: getItemAriaLabel('next', page),\n ...(nextButtonSlotProps ?? nextIconButtonProps),\n children: isRtl ? /*#__PURE__*/_jsx(PreviousButtonIcon, {\n ...slotProps.previousButtonIcon\n }) : /*#__PURE__*/_jsx(NextButtonIcon, {\n ...slotProps.nextButtonIcon\n })\n }), showLastButton && /*#__PURE__*/_jsx(LastButtonSlot, {\n onClick: handleLastPageButtonClick,\n disabled: disabled || page >= Math.ceil(count / rowsPerPage) - 1,\n \"aria-label\": getItemAriaLabel('last', page),\n title: getItemAriaLabel('last', page),\n ...lastButtonSlotProps,\n children: isRtl ? /*#__PURE__*/_jsx(FirstButtonIcon, {\n ...slotProps.firstButtonIcon\n }) : /*#__PURE__*/_jsx(LastButtonIcon, {\n ...slotProps.lastButtonIcon\n })\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? TablePaginationActions.propTypes = {\n /**\n * Props applied to the back arrow [`IconButton`](/material-ui/api/icon-button/) element.\n */\n backIconButtonProps: PropTypes.object,\n /**\n * The total number of rows.\n */\n count: PropTypes.number.isRequired,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * Accepts a function which returns a string value that provides a user-friendly name for the current page.\n *\n * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).\n *\n * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'.\n * @param {number} page The page number to format.\n * @returns {string}\n */\n getItemAriaLabel: PropTypes.func.isRequired,\n /**\n * Props applied to the next arrow [`IconButton`](/material-ui/api/icon-button/) element.\n */\n nextIconButtonProps: PropTypes.object,\n /**\n * Callback fired when the page is changed.\n *\n * @param {object} event The event source of the callback.\n * @param {number} page The page selected.\n */\n onPageChange: PropTypes.func.isRequired,\n /**\n * The zero-based index of the current page.\n */\n page: PropTypes.number.isRequired,\n /**\n * The number of rows per page.\n */\n rowsPerPage: PropTypes.number.isRequired,\n /**\n * If `true`, show the first-page button.\n */\n showFirstButton: PropTypes.bool.isRequired,\n /**\n * If `true`, show the last-page button.\n */\n showLastButton: PropTypes.bool.isRequired,\n /**\n * The props used for each slot inside the TablePaginationActions.\n * @default {}\n */\n slotProps: PropTypes.shape({\n firstButton: PropTypes.object,\n firstButtonIcon: PropTypes.object,\n lastButton: PropTypes.object,\n lastButtonIcon: PropTypes.object,\n nextButton: PropTypes.object,\n nextButtonIcon: PropTypes.object,\n previousButton: PropTypes.object,\n previousButtonIcon: PropTypes.object\n }),\n /**\n * The components used for each slot inside the TablePaginationActions.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n slots: PropTypes.shape({\n firstButton: PropTypes.elementType,\n firstButtonIcon: PropTypes.elementType,\n lastButton: PropTypes.elementType,\n lastButtonIcon: PropTypes.elementType,\n nextButton: PropTypes.elementType,\n nextButtonIcon: PropTypes.elementType,\n previousButton: PropTypes.elementType,\n previousButtonIcon: PropTypes.elementType\n })\n} : void 0;\nexport default TablePaginationActions;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTablePaginationUtilityClass(slot) {\n return generateUtilityClass('MuiTablePagination', slot);\n}\nconst tablePaginationClasses = generateUtilityClasses('MuiTablePagination', ['root', 'toolbar', 'spacer', 'selectLabel', 'selectRoot', 'select', 'selectIcon', 'input', 'menuItem', 'displayedRows', 'actions']);\nexport default tablePaginationClasses;","'use client';\n\nvar _InputBase;\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport integerPropType from '@mui/utils/integerPropType';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport InputBase from \"../InputBase/index.js\";\nimport MenuItem from \"../MenuItem/index.js\";\nimport Select from \"../Select/index.js\";\nimport TableCell from \"../TableCell/index.js\";\nimport Toolbar from \"../Toolbar/index.js\";\nimport TablePaginationActions from \"./TablePaginationActions.js\";\nimport useId from \"../utils/useId.js\";\nimport tablePaginationClasses, { getTablePaginationUtilityClass } from \"./tablePaginationClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { createElement as _createElement } from \"react\";\nconst TablePaginationRoot = styled(TableCell, {\n name: 'MuiTablePagination',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})(memoTheme(({\n theme\n}) => ({\n overflow: 'auto',\n color: (theme.vars || theme).palette.text.primary,\n fontSize: theme.typography.pxToRem(14),\n // Increase the specificity to override TableCell.\n '&:last-child': {\n padding: 0\n }\n})));\nconst TablePaginationToolbar = styled(Toolbar, {\n name: 'MuiTablePagination',\n slot: 'Toolbar',\n overridesResolver: (props, styles) => ({\n [`& .${tablePaginationClasses.actions}`]: styles.actions,\n ...styles.toolbar\n })\n})(memoTheme(({\n theme\n}) => ({\n minHeight: 52,\n paddingRight: 2,\n [`${theme.breakpoints.up('xs')} and (orientation: landscape)`]: {\n minHeight: 52\n },\n [theme.breakpoints.up('sm')]: {\n minHeight: 52,\n paddingRight: 2\n },\n [`& .${tablePaginationClasses.actions}`]: {\n flexShrink: 0,\n marginLeft: 20\n }\n})));\nconst TablePaginationSpacer = styled('div', {\n name: 'MuiTablePagination',\n slot: 'Spacer',\n overridesResolver: (props, styles) => styles.spacer\n})({\n flex: '1 1 100%'\n});\nconst TablePaginationSelectLabel = styled('p', {\n name: 'MuiTablePagination',\n slot: 'SelectLabel',\n overridesResolver: (props, styles) => styles.selectLabel\n})(memoTheme(({\n theme\n}) => ({\n ...theme.typography.body2,\n flexShrink: 0\n})));\nconst TablePaginationSelect = styled(Select, {\n name: 'MuiTablePagination',\n slot: 'Select',\n overridesResolver: (props, styles) => ({\n [`& .${tablePaginationClasses.selectIcon}`]: styles.selectIcon,\n [`& .${tablePaginationClasses.select}`]: styles.select,\n ...styles.input,\n ...styles.selectRoot\n })\n})({\n color: 'inherit',\n fontSize: 'inherit',\n flexShrink: 0,\n marginRight: 32,\n marginLeft: 8,\n [`& .${tablePaginationClasses.select}`]: {\n paddingLeft: 8,\n paddingRight: 24,\n textAlign: 'right',\n textAlignLast: 'right' // Align <select> on Chrome.\n }\n});\nconst TablePaginationMenuItem = styled(MenuItem, {\n name: 'MuiTablePagination',\n slot: 'MenuItem',\n overridesResolver: (props, styles) => styles.menuItem\n})({});\nconst TablePaginationDisplayedRows = styled('p', {\n name: 'MuiTablePagination',\n slot: 'DisplayedRows',\n overridesResolver: (props, styles) => styles.displayedRows\n})(memoTheme(({\n theme\n}) => ({\n ...theme.typography.body2,\n flexShrink: 0\n})));\nfunction defaultLabelDisplayedRows({\n from,\n to,\n count\n}) {\n return `${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`;\n}\nfunction defaultGetAriaLabel(type) {\n return `Go to ${type} page`;\n}\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n toolbar: ['toolbar'],\n spacer: ['spacer'],\n selectLabel: ['selectLabel'],\n select: ['select'],\n input: ['input'],\n selectIcon: ['selectIcon'],\n menuItem: ['menuItem'],\n displayedRows: ['displayedRows'],\n actions: ['actions']\n };\n return composeClasses(slots, getTablePaginationUtilityClass, classes);\n};\n\n/**\n * A `TableCell` based component for placing inside `TableFooter` for pagination.\n */\nconst TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTablePagination'\n });\n const {\n ActionsComponent = TablePaginationActions,\n backIconButtonProps,\n colSpan: colSpanProp,\n component = TableCell,\n count,\n disabled = false,\n getItemAriaLabel = defaultGetAriaLabel,\n labelDisplayedRows = defaultLabelDisplayedRows,\n labelRowsPerPage = 'Rows per page:',\n nextIconButtonProps,\n onPageChange,\n onRowsPerPageChange,\n page,\n rowsPerPage,\n rowsPerPageOptions = [10, 25, 50, 100],\n SelectProps = {},\n showFirstButton = false,\n showLastButton = false,\n slotProps = {},\n slots = {},\n ...other\n } = props;\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n const selectProps = slotProps?.select ?? SelectProps;\n const MenuItemComponent = selectProps.native ? 'option' : TablePaginationMenuItem;\n let colSpan;\n if (component === TableCell || component === 'td') {\n colSpan = colSpanProp || 1000; // col-span over everything\n }\n const selectId = useId(selectProps.id);\n const labelId = useId(selectProps.labelId);\n const getLabelDisplayedRowsTo = () => {\n if (count === -1) {\n return (page + 1) * rowsPerPage;\n }\n return rowsPerPage === -1 ? count : Math.min(count, (page + 1) * rowsPerPage);\n };\n const externalForwardedProps = {\n slots,\n slotProps\n };\n const [RootSlot, rootSlotProps] = useSlot('root', {\n ref,\n className: classes.root,\n elementType: TablePaginationRoot,\n externalForwardedProps: {\n ...externalForwardedProps,\n component,\n ...other\n },\n ownerState,\n additionalProps: {\n colSpan\n }\n });\n const [ToolbarSlot, toolbarSlotProps] = useSlot('toolbar', {\n className: classes.toolbar,\n elementType: TablePaginationToolbar,\n externalForwardedProps,\n ownerState\n });\n const [SpacerSlot, spacerSlotProps] = useSlot('spacer', {\n className: classes.spacer,\n elementType: TablePaginationSpacer,\n externalForwardedProps,\n ownerState\n });\n const [SelectLabelSlot, selectLabelSlotProps] = useSlot('selectLabel', {\n className: classes.selectLabel,\n elementType: TablePaginationSelectLabel,\n externalForwardedProps,\n ownerState,\n additionalProps: {\n id: labelId\n }\n });\n const [SelectSlot, selectSlotProps] = useSlot('select', {\n className: classes.select,\n elementType: TablePaginationSelect,\n externalForwardedProps,\n ownerState\n });\n const [MenuItemSlot, menuItemSlotProps] = useSlot('menuItem', {\n className: classes.menuItem,\n elementType: MenuItemComponent,\n externalForwardedProps,\n ownerState\n });\n const [DisplayedRows, displayedRowsProps] = useSlot('displayedRows', {\n className: classes.displayedRows,\n elementType: TablePaginationDisplayedRows,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsx(RootSlot, {\n ...rootSlotProps,\n children: /*#__PURE__*/_jsxs(ToolbarSlot, {\n ...toolbarSlotProps,\n children: [/*#__PURE__*/_jsx(SpacerSlot, {\n ...spacerSlotProps\n }), rowsPerPageOptions.length > 1 && /*#__PURE__*/_jsx(SelectLabelSlot, {\n ...selectLabelSlotProps,\n children: labelRowsPerPage\n }), rowsPerPageOptions.length > 1 && /*#__PURE__*/_jsx(SelectSlot, {\n variant: \"standard\",\n ...(!selectProps.variant && {\n input: _InputBase || (_InputBase = /*#__PURE__*/_jsx(InputBase, {}))\n }),\n value: rowsPerPage,\n onChange: onRowsPerPageChange,\n id: selectId,\n labelId: labelId,\n ...selectProps,\n classes: {\n ...selectProps.classes,\n // TODO v5 remove `classes.input`\n root: clsx(classes.input, classes.selectRoot, (selectProps.classes || {}).root),\n select: clsx(classes.select, (selectProps.classes || {}).select),\n // TODO v5 remove `selectIcon`\n icon: clsx(classes.selectIcon, (selectProps.classes || {}).icon)\n },\n disabled: disabled,\n ...selectSlotProps,\n children: rowsPerPageOptions.map(rowsPerPageOption => /*#__PURE__*/_createElement(MenuItemSlot, {\n ...menuItemSlotProps,\n key: rowsPerPageOption.label ? rowsPerPageOption.label : rowsPerPageOption,\n value: rowsPerPageOption.value ? rowsPerPageOption.value : rowsPerPageOption\n }, rowsPerPageOption.label ? rowsPerPageOption.label : rowsPerPageOption))\n }), /*#__PURE__*/_jsx(DisplayedRows, {\n ...displayedRowsProps,\n children: labelDisplayedRows({\n from: count === 0 ? 0 : page * rowsPerPage + 1,\n to: getLabelDisplayedRowsTo(),\n count: count === -1 ? -1 : count,\n page\n })\n }), /*#__PURE__*/_jsx(ActionsComponent, {\n className: classes.actions,\n backIconButtonProps: backIconButtonProps,\n count: count,\n nextIconButtonProps: nextIconButtonProps,\n onPageChange: onPageChange,\n page: page,\n rowsPerPage: rowsPerPage,\n showFirstButton: showFirstButton,\n showLastButton: showLastButton,\n slotProps: slotProps.actions,\n slots: slots.actions,\n getItemAriaLabel: getItemAriaLabel,\n disabled: disabled\n })]\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? TablePagination.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The component used for displaying the actions.\n * Either a string to use a HTML element or a component.\n * @default TablePaginationActions\n */\n ActionsComponent: PropTypes.elementType,\n /**\n * Props applied to the back arrow [`IconButton`](https://mui.com/material-ui/api/icon-button/) component.\n *\n * This prop is an alias for `slotProps.actions.previousButton` and will be overriden by it if both are used.\n * @deprecated Use `slotProps.actions.previousButton` instead.\n */\n backIconButtonProps: PropTypes.object,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n colSpan: PropTypes.number,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The total number of rows.\n *\n * To enable server side pagination for an unknown number of items, provide -1.\n */\n count: integerPropType.isRequired,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * Accepts a function which returns a string value that provides a user-friendly name for the current page.\n * This is important for screen reader users.\n *\n * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).\n * @param {string} type The link or button type to format ('first' | 'last' | 'next' | 'previous').\n * @returns {string}\n * @default function defaultGetAriaLabel(type) {\n * return `Go to ${type} page`;\n * }\n */\n getItemAriaLabel: PropTypes.func,\n /**\n * Customize the displayed rows label. Invoked with a `{ from, to, count, page }`\n * object.\n *\n * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).\n * @default function defaultLabelDisplayedRows({ from, to, count }) {\n * return `${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`;\n * }\n */\n labelDisplayedRows: PropTypes.func,\n /**\n * Customize the rows per page label.\n *\n * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).\n * @default 'Rows per page:'\n */\n labelRowsPerPage: PropTypes.node,\n /**\n * Props applied to the next arrow [`IconButton`](https://mui.com/material-ui/api/icon-button/) element.\n *\n * This prop is an alias for `slotProps.actions.nextButton` and will be overriden by it if both are used.\n * @deprecated Use `slotProps.actions.nextButton` instead.\n */\n nextIconButtonProps: PropTypes.object,\n /**\n * Callback fired when the page is changed.\n *\n * @param {React.MouseEvent<HTMLButtonElement> | null} event The event source of the callback.\n * @param {number} page The page selected.\n */\n onPageChange: PropTypes.func.isRequired,\n /**\n * Callback fired when the number of rows per page is changed.\n *\n * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.\n */\n onRowsPerPageChange: PropTypes.func,\n /**\n * The zero-based index of the current page.\n */\n page: chainPropTypes(integerPropType.isRequired, props => {\n const {\n count,\n page,\n rowsPerPage\n } = props;\n if (count === -1) {\n return null;\n }\n const newLastPage = Math.max(0, Math.ceil(count / rowsPerPage) - 1);\n if (page < 0 || page > newLastPage) {\n return new Error('MUI: The page prop of a TablePagination is out of range ' + `(0 to ${newLastPage}, but page is ${page}).`);\n }\n return null;\n }),\n /**\n * The number of rows per page.\n *\n * Set -1 to display all the rows.\n */\n rowsPerPage: integerPropType.isRequired,\n /**\n * Customizes the options of the rows per page select field. If less than two options are\n * available, no select field will be displayed.\n * Use -1 for the value with a custom label to show all the rows.\n * @default [10, 25, 50, 100]\n */\n rowsPerPageOptions: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n label: PropTypes.string.isRequired,\n value: PropTypes.number.isRequired\n })]).isRequired),\n /**\n * Props applied to the rows per page [`Select`](https://mui.com/material-ui/api/select/) element.\n *\n * This prop is an alias for `slotProps.select` and will be overriden by it if both are used.\n * @deprecated Use `slotProps.select` instead.\n *\n * @default {}\n */\n SelectProps: PropTypes.object,\n /**\n * If `true`, show the first-page button.\n * @default false\n */\n showFirstButton: PropTypes.bool,\n /**\n * If `true`, show the last-page button.\n * @default false\n */\n showLastButton: PropTypes.bool,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n actions: PropTypes.shape({\n firstButton: PropTypes.object,\n firstButtonIcon: PropTypes.object,\n lastButton: PropTypes.object,\n lastButtonIcon: PropTypes.object,\n nextButton: PropTypes.object,\n nextButtonIcon: PropTypes.object,\n previousButton: PropTypes.object,\n previousButtonIcon: PropTypes.object\n }),\n displayedRows: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n menuItem: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n select: PropTypes.object,\n selectLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n spacer: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n toolbar: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n actions: PropTypes.shape({\n firstButton: PropTypes.elementType,\n firstButtonIcon: PropTypes.elementType,\n lastButton: PropTypes.elementType,\n lastButtonIcon: PropTypes.elementType,\n nextButton: PropTypes.elementType,\n nextButtonIcon: PropTypes.elementType,\n previousButton: PropTypes.elementType,\n previousButtonIcon: PropTypes.elementType\n }),\n displayedRows: PropTypes.elementType,\n menuItem: PropTypes.elementType,\n root: PropTypes.elementType,\n select: PropTypes.elementType,\n selectLabel: PropTypes.elementType,\n spacer: PropTypes.elementType,\n toolbar: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default TablePagination;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTableRowUtilityClass(slot) {\n return generateUtilityClass('MuiTableRow', slot);\n}\nconst tableRowClasses = generateUtilityClasses('MuiTableRow', ['root', 'selected', 'hover', 'head', 'footer']);\nexport default tableRowClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport Tablelvl2Context from \"../Table/Tablelvl2Context.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport tableRowClasses, { getTableRowUtilityClass } from \"./tableRowClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n selected,\n hover,\n head,\n footer\n } = ownerState;\n const slots = {\n root: ['root', selected && 'selected', hover && 'hover', head && 'head', footer && 'footer']\n };\n return composeClasses(slots, getTableRowUtilityClass, classes);\n};\nconst TableRowRoot = styled('tr', {\n name: 'MuiTableRow',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.head && styles.head, ownerState.footer && styles.footer];\n }\n})(memoTheme(({\n theme\n}) => ({\n color: 'inherit',\n display: 'table-row',\n verticalAlign: 'middle',\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0,\n [`&.${tableRowClasses.hover}:hover`]: {\n backgroundColor: (theme.vars || theme).palette.action.hover\n },\n [`&.${tableRowClasses.selected}`]: {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)\n }\n }\n})));\nconst defaultComponent = 'tr';\n/**\n * Will automatically set dynamic row height\n * based on the material table element parent (head, body, etc).\n */\nconst TableRow = /*#__PURE__*/React.forwardRef(function TableRow(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTableRow'\n });\n const {\n className,\n component = defaultComponent,\n hover = false,\n selected = false,\n ...other\n } = props;\n const tablelvl2 = React.useContext(Tablelvl2Context);\n const ownerState = {\n ...props,\n component,\n hover,\n selected,\n head: tablelvl2 && tablelvl2.variant === 'head',\n footer: tablelvl2 && tablelvl2.variant === 'footer'\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(TableRowRoot, {\n as: component,\n ref: ref,\n className: clsx(classes.root, className),\n role: component === defaultComponent ? null : 'row',\n ownerState: ownerState,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? TableRow.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Should be valid `<tr>` children such as `TableCell`.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, the table row will shade on hover.\n * @default false\n */\n hover: PropTypes.bool,\n /**\n * If `true`, the table row will have the selected shading.\n * @default false\n */\n selected: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default TableRow;","function easeInOutSin(time) {\n return (1 + Math.sin(Math.PI * time - Math.PI / 2)) / 2;\n}\nexport default function animate(property, element, to, options = {}, cb = () => {}) {\n const {\n ease = easeInOutSin,\n duration = 300 // standard\n } = options;\n let start = null;\n const from = element[property];\n let cancelled = false;\n const cancel = () => {\n cancelled = true;\n };\n const step = timestamp => {\n if (cancelled) {\n cb(new Error('Animation cancelled'));\n return;\n }\n if (start === null) {\n start = timestamp;\n }\n const time = Math.min(1, (timestamp - start) / duration);\n element[property] = ease(time) * (to - from) + from;\n if (time >= 1) {\n requestAnimationFrame(() => {\n cb(null);\n });\n return;\n }\n requestAnimationFrame(step);\n };\n if (from === to) {\n cb(new Error('Element already at target position'));\n return cancel;\n }\n requestAnimationFrame(step);\n return cancel;\n}","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport debounce from \"../utils/debounce.js\";\nimport { ownerWindow, unstable_useEnhancedEffect as useEnhancedEffect } from \"../utils/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst styles = {\n width: 99,\n height: 99,\n position: 'absolute',\n top: -9999,\n overflow: 'scroll'\n};\n\n/**\n * @ignore - internal component.\n * The component originates from https://github.com/STORIS/react-scrollbar-size.\n * It has been moved into the core in order to minimize the bundle size.\n */\nexport default function ScrollbarSize(props) {\n const {\n onChange,\n ...other\n } = props;\n const scrollbarHeight = React.useRef();\n const nodeRef = React.useRef(null);\n const setMeasurements = () => {\n scrollbarHeight.current = nodeRef.current.offsetHeight - nodeRef.current.clientHeight;\n };\n useEnhancedEffect(() => {\n const handleResize = debounce(() => {\n const prevHeight = scrollbarHeight.current;\n setMeasurements();\n if (prevHeight !== scrollbarHeight.current) {\n onChange(scrollbarHeight.current);\n }\n });\n const containerWindow = ownerWindow(nodeRef.current);\n containerWindow.addEventListener('resize', handleResize);\n return () => {\n handleResize.clear();\n containerWindow.removeEventListener('resize', handleResize);\n };\n }, [onChange]);\n React.useEffect(() => {\n setMeasurements();\n onChange(scrollbarHeight.current);\n }, [onChange]);\n return /*#__PURE__*/_jsx(\"div\", {\n style: styles,\n ...other,\n ref: nodeRef\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? ScrollbarSize.propTypes = {\n onChange: PropTypes.func.isRequired\n} : void 0;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTabScrollButtonUtilityClass(slot) {\n return generateUtilityClass('MuiTabScrollButton', slot);\n}\nconst tabScrollButtonClasses = generateUtilityClasses('MuiTabScrollButton', ['root', 'vertical', 'horizontal', 'disabled']);\nexport default tabScrollButtonClasses;","'use client';\n\n/* eslint-disable jsx-a11y/aria-role */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport KeyboardArrowLeft from \"../internal/svg-icons/KeyboardArrowLeft.js\";\nimport KeyboardArrowRight from \"../internal/svg-icons/KeyboardArrowRight.js\";\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport tabScrollButtonClasses, { getTabScrollButtonUtilityClass } from \"./tabScrollButtonClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n orientation,\n disabled\n } = ownerState;\n const slots = {\n root: ['root', orientation, disabled && 'disabled']\n };\n return composeClasses(slots, getTabScrollButtonUtilityClass, classes);\n};\nconst TabScrollButtonRoot = styled(ButtonBase, {\n name: 'MuiTabScrollButton',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.orientation && styles[ownerState.orientation]];\n }\n})({\n width: 40,\n flexShrink: 0,\n opacity: 0.8,\n [`&.${tabScrollButtonClasses.disabled}`]: {\n opacity: 0\n },\n variants: [{\n props: {\n orientation: 'vertical'\n },\n style: {\n width: '100%',\n height: 40,\n '& svg': {\n transform: 'var(--TabScrollButton-svgRotate)'\n }\n }\n }]\n});\nconst TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTabScrollButton'\n });\n const {\n className,\n slots = {},\n slotProps = {},\n direction,\n orientation,\n disabled,\n ...other\n } = props;\n const isRtl = useRtl();\n const ownerState = {\n isRtl,\n ...props\n };\n const classes = useUtilityClasses(ownerState);\n const StartButtonIcon = slots.StartScrollButtonIcon ?? KeyboardArrowLeft;\n const EndButtonIcon = slots.EndScrollButtonIcon ?? KeyboardArrowRight;\n const startButtonIconProps = useSlotProps({\n elementType: StartButtonIcon,\n externalSlotProps: slotProps.startScrollButtonIcon,\n additionalProps: {\n fontSize: 'small'\n },\n ownerState\n });\n const endButtonIconProps = useSlotProps({\n elementType: EndButtonIcon,\n externalSlotProps: slotProps.endScrollButtonIcon,\n additionalProps: {\n fontSize: 'small'\n },\n ownerState\n });\n return /*#__PURE__*/_jsx(TabScrollButtonRoot, {\n component: \"div\",\n className: clsx(classes.root, className),\n ref: ref,\n role: null,\n ownerState: ownerState,\n tabIndex: null,\n ...other,\n style: {\n ...other.style,\n ...(orientation === 'vertical' && {\n '--TabScrollButton-svgRotate': `rotate(${isRtl ? -90 : 90}deg)`\n })\n },\n children: direction === 'left' ? /*#__PURE__*/_jsx(StartButtonIcon, {\n ...startButtonIconProps\n }) : /*#__PURE__*/_jsx(EndButtonIcon, {\n ...endButtonIconProps\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? TabScrollButton.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The direction the button should indicate.\n */\n direction: PropTypes.oneOf(['left', 'right']).isRequired,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * The component orientation (layout flow direction).\n */\n orientation: PropTypes.oneOf(['horizontal', 'vertical']).isRequired,\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n * @default {}\n */\n slotProps: PropTypes.shape({\n endScrollButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n startScrollButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n EndScrollButtonIcon: PropTypes.elementType,\n StartScrollButtonIcon: PropTypes.elementType\n }),\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default TabScrollButton;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTabsUtilityClass(slot) {\n return generateUtilityClass('MuiTabs', slot);\n}\nconst tabsClasses = generateUtilityClasses('MuiTabs', ['root', 'vertical', 'list', 'flexContainer', 'flexContainerVertical', 'centered', 'scroller', 'fixed', 'scrollableX', 'scrollableY', 'hideScrollbar', 'scrollButtons', 'scrollButtonsHideMobile', 'indicator']);\nexport default tabsClasses;","'use client';\n\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport { styled, useTheme } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport debounce from \"../utils/debounce.js\";\nimport animate from \"../internal/animate.js\";\nimport ScrollbarSize from \"./ScrollbarSize.js\";\nimport TabScrollButton from \"../TabScrollButton/index.js\";\nimport useEventCallback from \"../utils/useEventCallback.js\";\nimport tabsClasses, { getTabsUtilityClass } from \"./tabsClasses.js\";\nimport ownerDocument from \"../utils/ownerDocument.js\";\nimport ownerWindow from \"../utils/ownerWindow.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst nextItem = (list, item) => {\n if (list === item) {\n return list.firstChild;\n }\n if (item && item.nextElementSibling) {\n return item.nextElementSibling;\n }\n return list.firstChild;\n};\nconst previousItem = (list, item) => {\n if (list === item) {\n return list.lastChild;\n }\n if (item && item.previousElementSibling) {\n return item.previousElementSibling;\n }\n return list.lastChild;\n};\nconst moveFocus = (list, currentFocus, traversalFunction) => {\n let wrappedOnce = false;\n let nextFocus = traversalFunction(list, currentFocus);\n while (nextFocus) {\n // Prevent infinite loop.\n if (nextFocus === list.firstChild) {\n if (wrappedOnce) {\n return;\n }\n wrappedOnce = true;\n }\n\n // Same logic as useAutocomplete.js\n const nextFocusDisabled = nextFocus.disabled || nextFocus.getAttribute('aria-disabled') === 'true';\n if (!nextFocus.hasAttribute('tabindex') || nextFocusDisabled) {\n // Move to the next element.\n nextFocus = traversalFunction(list, nextFocus);\n } else {\n nextFocus.focus();\n return;\n }\n }\n};\nconst useUtilityClasses = ownerState => {\n const {\n vertical,\n fixed,\n hideScrollbar,\n scrollableX,\n scrollableY,\n centered,\n scrollButtonsHideMobile,\n classes\n } = ownerState;\n const slots = {\n root: ['root', vertical && 'vertical'],\n scroller: ['scroller', fixed && 'fixed', hideScrollbar && 'hideScrollbar', scrollableX && 'scrollableX', scrollableY && 'scrollableY'],\n list: ['list', 'flexContainer', vertical && 'flexContainerVertical', vertical && 'vertical', centered && 'centered'],\n indicator: ['indicator'],\n scrollButtons: ['scrollButtons', scrollButtonsHideMobile && 'scrollButtonsHideMobile'],\n scrollableX: [scrollableX && 'scrollableX'],\n hideScrollbar: [hideScrollbar && 'hideScrollbar']\n };\n return composeClasses(slots, getTabsUtilityClass, classes);\n};\nconst TabsRoot = styled('div', {\n name: 'MuiTabs',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [{\n [`& .${tabsClasses.scrollButtons}`]: styles.scrollButtons\n }, {\n [`& .${tabsClasses.scrollButtons}`]: ownerState.scrollButtonsHideMobile && styles.scrollButtonsHideMobile\n }, styles.root, ownerState.vertical && styles.vertical];\n }\n})(memoTheme(({\n theme\n}) => ({\n overflow: 'hidden',\n minHeight: 48,\n // Add iOS momentum scrolling for iOS < 13.0\n WebkitOverflowScrolling: 'touch',\n display: 'flex',\n variants: [{\n props: ({\n ownerState\n }) => ownerState.vertical,\n style: {\n flexDirection: 'column'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.scrollButtonsHideMobile,\n style: {\n [`& .${tabsClasses.scrollButtons}`]: {\n [theme.breakpoints.down('sm')]: {\n display: 'none'\n }\n }\n }\n }]\n})));\nconst TabsScroller = styled('div', {\n name: 'MuiTabs',\n slot: 'Scroller',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.scroller, ownerState.fixed && styles.fixed, ownerState.hideScrollbar && styles.hideScrollbar, ownerState.scrollableX && styles.scrollableX, ownerState.scrollableY && styles.scrollableY];\n }\n})({\n position: 'relative',\n display: 'inline-block',\n flex: '1 1 auto',\n whiteSpace: 'nowrap',\n variants: [{\n props: ({\n ownerState\n }) => ownerState.fixed,\n style: {\n overflowX: 'hidden',\n width: '100%'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.hideScrollbar,\n style: {\n // Hide dimensionless scrollbar on macOS\n scrollbarWidth: 'none',\n // Firefox\n '&::-webkit-scrollbar': {\n display: 'none' // Safari + Chrome\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.scrollableX,\n style: {\n overflowX: 'auto',\n overflowY: 'hidden'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.scrollableY,\n style: {\n overflowY: 'auto',\n overflowX: 'hidden'\n }\n }]\n});\nconst List = styled('div', {\n name: 'MuiTabs',\n slot: 'List',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.list, styles.flexContainer, ownerState.vertical && styles.flexContainerVertical, ownerState.centered && styles.centered];\n }\n})({\n display: 'flex',\n variants: [{\n props: ({\n ownerState\n }) => ownerState.vertical,\n style: {\n flexDirection: 'column'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.centered,\n style: {\n justifyContent: 'center'\n }\n }]\n});\nconst TabsIndicator = styled('span', {\n name: 'MuiTabs',\n slot: 'Indicator',\n overridesResolver: (props, styles) => styles.indicator\n})(memoTheme(({\n theme\n}) => ({\n position: 'absolute',\n height: 2,\n bottom: 0,\n width: '100%',\n transition: theme.transitions.create(),\n variants: [{\n props: {\n indicatorColor: 'primary'\n },\n style: {\n backgroundColor: (theme.vars || theme).palette.primary.main\n }\n }, {\n props: {\n indicatorColor: 'secondary'\n },\n style: {\n backgroundColor: (theme.vars || theme).palette.secondary.main\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.vertical,\n style: {\n height: '100%',\n width: 2,\n right: 0\n }\n }]\n})));\nconst TabsScrollbarSize = styled(ScrollbarSize)({\n overflowX: 'auto',\n overflowY: 'hidden',\n // Hide dimensionless scrollbar on macOS\n scrollbarWidth: 'none',\n // Firefox\n '&::-webkit-scrollbar': {\n display: 'none' // Safari + Chrome\n }\n});\nconst defaultIndicatorStyle = {};\nlet warnedOnceTabPresent = false;\nconst Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTabs'\n });\n const theme = useTheme();\n const isRtl = useRtl();\n const {\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n action,\n centered = false,\n children: childrenProp,\n className,\n component = 'div',\n allowScrollButtonsMobile = false,\n indicatorColor = 'primary',\n onChange,\n orientation = 'horizontal',\n ScrollButtonComponent,\n // TODO: remove in v7 (deprecated in v6)\n scrollButtons = 'auto',\n selectionFollowsFocus,\n slots = {},\n slotProps = {},\n TabIndicatorProps = {},\n // TODO: remove in v7 (deprecated in v6)\n TabScrollButtonProps = {},\n // TODO: remove in v7 (deprecated in v6)\n textColor = 'primary',\n value,\n variant = 'standard',\n visibleScrollbar = false,\n ...other\n } = props;\n const scrollable = variant === 'scrollable';\n const vertical = orientation === 'vertical';\n const scrollStart = vertical ? 'scrollTop' : 'scrollLeft';\n const start = vertical ? 'top' : 'left';\n const end = vertical ? 'bottom' : 'right';\n const clientSize = vertical ? 'clientHeight' : 'clientWidth';\n const size = vertical ? 'height' : 'width';\n const ownerState = {\n ...props,\n component,\n allowScrollButtonsMobile,\n indicatorColor,\n orientation,\n vertical,\n scrollButtons,\n textColor,\n variant,\n visibleScrollbar,\n fixed: !scrollable,\n hideScrollbar: scrollable && !visibleScrollbar,\n scrollableX: scrollable && !vertical,\n scrollableY: scrollable && vertical,\n centered: centered && !scrollable,\n scrollButtonsHideMobile: !allowScrollButtonsMobile\n };\n const classes = useUtilityClasses(ownerState);\n const startScrollButtonIconProps = useSlotProps({\n elementType: slots.StartScrollButtonIcon,\n externalSlotProps: slotProps.startScrollButtonIcon,\n ownerState\n });\n const endScrollButtonIconProps = useSlotProps({\n elementType: slots.EndScrollButtonIcon,\n externalSlotProps: slotProps.endScrollButtonIcon,\n ownerState\n });\n if (process.env.NODE_ENV !== 'production') {\n if (centered && scrollable) {\n console.error('MUI: You can not use the `centered={true}` and `variant=\"scrollable\"` properties ' + 'at the same time on a `Tabs` component.');\n }\n }\n const [mounted, setMounted] = React.useState(false);\n const [indicatorStyle, setIndicatorStyle] = React.useState(defaultIndicatorStyle);\n const [displayStartScroll, setDisplayStartScroll] = React.useState(false);\n const [displayEndScroll, setDisplayEndScroll] = React.useState(false);\n const [updateScrollObserver, setUpdateScrollObserver] = React.useState(false);\n const [scrollerStyle, setScrollerStyle] = React.useState({\n overflow: 'hidden',\n scrollbarWidth: 0\n });\n const valueToIndex = new Map();\n const tabsRef = React.useRef(null);\n const tabListRef = React.useRef(null);\n const externalForwardedProps = {\n slots,\n slotProps: {\n indicator: TabIndicatorProps,\n scrollButton: TabScrollButtonProps,\n ...slotProps\n }\n };\n const getTabsMeta = () => {\n const tabsNode = tabsRef.current;\n let tabsMeta;\n if (tabsNode) {\n const rect = tabsNode.getBoundingClientRect();\n // create a new object with ClientRect class props + scrollLeft\n tabsMeta = {\n clientWidth: tabsNode.clientWidth,\n scrollLeft: tabsNode.scrollLeft,\n scrollTop: tabsNode.scrollTop,\n scrollWidth: tabsNode.scrollWidth,\n top: rect.top,\n bottom: rect.bottom,\n left: rect.left,\n right: rect.right\n };\n }\n let tabMeta;\n if (tabsNode && value !== false) {\n const children = tabListRef.current.children;\n if (children.length > 0) {\n const tab = children[valueToIndex.get(value)];\n if (process.env.NODE_ENV !== 'production') {\n if (!tab) {\n console.error([`MUI: The \\`value\\` provided to the Tabs component is invalid.`, `None of the Tabs' children match with \"${value}\".`, valueToIndex.keys ? `You can provide one of the following values: ${Array.from(valueToIndex.keys()).join(', ')}.` : null].join('\\n'));\n }\n }\n tabMeta = tab ? tab.getBoundingClientRect() : null;\n if (process.env.NODE_ENV !== 'production') {\n if (process.env.NODE_ENV !== 'test' && !warnedOnceTabPresent && tabMeta && tabMeta.width === 0 && tabMeta.height === 0 &&\n // if the whole Tabs component is hidden, don't warn\n tabsMeta.clientWidth !== 0) {\n tabsMeta = null;\n console.error(['MUI: The `value` provided to the Tabs component is invalid.', `The Tab with this \\`value\\` (\"${value}\") is not part of the document layout.`, \"Make sure the tab item is present in the document or that it's not `display: none`.\"].join('\\n'));\n warnedOnceTabPresent = true;\n }\n }\n }\n }\n return {\n tabsMeta,\n tabMeta\n };\n };\n const updateIndicatorState = useEventCallback(() => {\n const {\n tabsMeta,\n tabMeta\n } = getTabsMeta();\n let startValue = 0;\n let startIndicator;\n if (vertical) {\n startIndicator = 'top';\n if (tabMeta && tabsMeta) {\n startValue = tabMeta.top - tabsMeta.top + tabsMeta.scrollTop;\n }\n } else {\n startIndicator = isRtl ? 'right' : 'left';\n if (tabMeta && tabsMeta) {\n startValue = (isRtl ? -1 : 1) * (tabMeta[startIndicator] - tabsMeta[startIndicator] + tabsMeta.scrollLeft);\n }\n }\n const newIndicatorStyle = {\n [startIndicator]: startValue,\n // May be wrong until the font is loaded.\n [size]: tabMeta ? tabMeta[size] : 0\n };\n if (typeof indicatorStyle[startIndicator] !== 'number' || typeof indicatorStyle[size] !== 'number') {\n setIndicatorStyle(newIndicatorStyle);\n } else {\n const dStart = Math.abs(indicatorStyle[startIndicator] - newIndicatorStyle[startIndicator]);\n const dSize = Math.abs(indicatorStyle[size] - newIndicatorStyle[size]);\n if (dStart >= 1 || dSize >= 1) {\n setIndicatorStyle(newIndicatorStyle);\n }\n }\n });\n const scroll = (scrollValue, {\n animation = true\n } = {}) => {\n if (animation) {\n animate(scrollStart, tabsRef.current, scrollValue, {\n duration: theme.transitions.duration.standard\n });\n } else {\n tabsRef.current[scrollStart] = scrollValue;\n }\n };\n const moveTabsScroll = delta => {\n let scrollValue = tabsRef.current[scrollStart];\n if (vertical) {\n scrollValue += delta;\n } else {\n scrollValue += delta * (isRtl ? -1 : 1);\n }\n scroll(scrollValue);\n };\n const getScrollSize = () => {\n const containerSize = tabsRef.current[clientSize];\n let totalSize = 0;\n const children = Array.from(tabListRef.current.children);\n for (let i = 0; i < children.length; i += 1) {\n const tab = children[i];\n if (totalSize + tab[clientSize] > containerSize) {\n // If the first item is longer than the container size, then only scroll\n // by the container size.\n if (i === 0) {\n totalSize = containerSize;\n }\n break;\n }\n totalSize += tab[clientSize];\n }\n return totalSize;\n };\n const handleStartScrollClick = () => {\n moveTabsScroll(-1 * getScrollSize());\n };\n const handleEndScrollClick = () => {\n moveTabsScroll(getScrollSize());\n };\n const [ScrollbarSlot, {\n onChange: scrollbarOnChange,\n ...scrollbarSlotProps\n }] = useSlot('scrollbar', {\n className: clsx(classes.scrollableX, classes.hideScrollbar),\n elementType: TabsScrollbarSize,\n shouldForwardComponentProp: true,\n externalForwardedProps,\n ownerState\n });\n\n // TODO Remove <ScrollbarSize /> as browser support for hiding the scrollbar\n // with CSS improves.\n const handleScrollbarSizeChange = React.useCallback(scrollbarWidth => {\n scrollbarOnChange?.(scrollbarWidth);\n setScrollerStyle({\n overflow: null,\n scrollbarWidth\n });\n }, [scrollbarOnChange]);\n const [ScrollButtonsSlot, scrollButtonSlotProps] = useSlot('scrollButtons', {\n className: clsx(classes.scrollButtons, TabScrollButtonProps.className),\n elementType: TabScrollButton,\n externalForwardedProps,\n ownerState,\n additionalProps: {\n orientation,\n slots: {\n StartScrollButtonIcon: slots.startScrollButtonIcon || slots.StartScrollButtonIcon,\n EndScrollButtonIcon: slots.endScrollButtonIcon || slots.EndScrollButtonIcon\n },\n slotProps: {\n startScrollButtonIcon: startScrollButtonIconProps,\n endScrollButtonIcon: endScrollButtonIconProps\n }\n }\n });\n const getConditionalElements = () => {\n const conditionalElements = {};\n conditionalElements.scrollbarSizeListener = scrollable ? /*#__PURE__*/_jsx(ScrollbarSlot, {\n ...scrollbarSlotProps,\n onChange: handleScrollbarSizeChange\n }) : null;\n const scrollButtonsActive = displayStartScroll || displayEndScroll;\n const showScrollButtons = scrollable && (scrollButtons === 'auto' && scrollButtonsActive || scrollButtons === true);\n conditionalElements.scrollButtonStart = showScrollButtons ? /*#__PURE__*/_jsx(ScrollButtonsSlot, {\n direction: isRtl ? 'right' : 'left',\n onClick: handleStartScrollClick,\n disabled: !displayStartScroll,\n ...scrollButtonSlotProps\n }) : null;\n conditionalElements.scrollButtonEnd = showScrollButtons ? /*#__PURE__*/_jsx(ScrollButtonsSlot, {\n direction: isRtl ? 'left' : 'right',\n onClick: handleEndScrollClick,\n disabled: !displayEndScroll,\n ...scrollButtonSlotProps\n }) : null;\n return conditionalElements;\n };\n const scrollSelectedIntoView = useEventCallback(animation => {\n const {\n tabsMeta,\n tabMeta\n } = getTabsMeta();\n if (!tabMeta || !tabsMeta) {\n return;\n }\n if (tabMeta[start] < tabsMeta[start]) {\n // left side of button is out of view\n const nextScrollStart = tabsMeta[scrollStart] + (tabMeta[start] - tabsMeta[start]);\n scroll(nextScrollStart, {\n animation\n });\n } else if (tabMeta[end] > tabsMeta[end]) {\n // right side of button is out of view\n const nextScrollStart = tabsMeta[scrollStart] + (tabMeta[end] - tabsMeta[end]);\n scroll(nextScrollStart, {\n animation\n });\n }\n });\n const updateScrollButtonState = useEventCallback(() => {\n if (scrollable && scrollButtons !== false) {\n setUpdateScrollObserver(!updateScrollObserver);\n }\n });\n React.useEffect(() => {\n const handleResize = debounce(() => {\n // If the Tabs component is replaced by Suspense with a fallback, the last\n // ResizeObserver's handler that runs because of the change in the layout is trying to\n // access a dom node that is no longer there (as the fallback component is being shown instead).\n // See https://github.com/mui/material-ui/issues/33276\n // TODO: Add tests that will ensure the component is not failing when\n // replaced by Suspense with a fallback, once React is updated to version 18\n if (tabsRef.current) {\n updateIndicatorState();\n }\n });\n let resizeObserver;\n\n /**\n * @type {MutationCallback}\n */\n const handleMutation = records => {\n records.forEach(record => {\n record.removedNodes.forEach(item => {\n resizeObserver?.unobserve(item);\n });\n record.addedNodes.forEach(item => {\n resizeObserver?.observe(item);\n });\n });\n handleResize();\n updateScrollButtonState();\n };\n const win = ownerWindow(tabsRef.current);\n win.addEventListener('resize', handleResize);\n let mutationObserver;\n if (typeof ResizeObserver !== 'undefined') {\n resizeObserver = new ResizeObserver(handleResize);\n Array.from(tabListRef.current.children).forEach(child => {\n resizeObserver.observe(child);\n });\n }\n if (typeof MutationObserver !== 'undefined') {\n mutationObserver = new MutationObserver(handleMutation);\n mutationObserver.observe(tabListRef.current, {\n childList: true\n });\n }\n return () => {\n handleResize.clear();\n win.removeEventListener('resize', handleResize);\n mutationObserver?.disconnect();\n resizeObserver?.disconnect();\n };\n }, [updateIndicatorState, updateScrollButtonState]);\n\n /**\n * Toggle visibility of start and end scroll buttons\n * Using IntersectionObserver on first and last Tabs.\n */\n React.useEffect(() => {\n const tabListChildren = Array.from(tabListRef.current.children);\n const length = tabListChildren.length;\n if (typeof IntersectionObserver !== 'undefined' && length > 0 && scrollable && scrollButtons !== false) {\n const firstTab = tabListChildren[0];\n const lastTab = tabListChildren[length - 1];\n const observerOptions = {\n root: tabsRef.current,\n threshold: 0.99\n };\n const handleScrollButtonStart = entries => {\n setDisplayStartScroll(!entries[0].isIntersecting);\n };\n const firstObserver = new IntersectionObserver(handleScrollButtonStart, observerOptions);\n firstObserver.observe(firstTab);\n const handleScrollButtonEnd = entries => {\n setDisplayEndScroll(!entries[0].isIntersecting);\n };\n const lastObserver = new IntersectionObserver(handleScrollButtonEnd, observerOptions);\n lastObserver.observe(lastTab);\n return () => {\n firstObserver.disconnect();\n lastObserver.disconnect();\n };\n }\n return undefined;\n }, [scrollable, scrollButtons, updateScrollObserver, childrenProp?.length]);\n React.useEffect(() => {\n setMounted(true);\n }, []);\n React.useEffect(() => {\n updateIndicatorState();\n });\n React.useEffect(() => {\n // Don't animate on the first render.\n scrollSelectedIntoView(defaultIndicatorStyle !== indicatorStyle);\n }, [scrollSelectedIntoView, indicatorStyle]);\n React.useImperativeHandle(action, () => ({\n updateIndicator: updateIndicatorState,\n updateScrollButtons: updateScrollButtonState\n }), [updateIndicatorState, updateScrollButtonState]);\n const [IndicatorSlot, indicatorSlotProps] = useSlot('indicator', {\n className: clsx(classes.indicator, TabIndicatorProps.className),\n elementType: TabsIndicator,\n externalForwardedProps,\n ownerState,\n additionalProps: {\n style: indicatorStyle\n }\n });\n const indicator = /*#__PURE__*/_jsx(IndicatorSlot, {\n ...indicatorSlotProps\n });\n let childIndex = 0;\n const children = React.Children.map(childrenProp, child => {\n if (! /*#__PURE__*/React.isValidElement(child)) {\n return null;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (isFragment(child)) {\n console.error([\"MUI: The Tabs component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n }\n }\n const childValue = child.props.value === undefined ? childIndex : child.props.value;\n valueToIndex.set(childValue, childIndex);\n const selected = childValue === value;\n childIndex += 1;\n return /*#__PURE__*/React.cloneElement(child, {\n fullWidth: variant === 'fullWidth',\n indicator: selected && !mounted && indicator,\n selected,\n selectionFollowsFocus,\n onChange,\n textColor,\n value: childValue,\n ...(childIndex === 1 && value === false && !child.props.tabIndex ? {\n tabIndex: 0\n } : {})\n });\n });\n const handleKeyDown = event => {\n // Check if a modifier key (Alt, Shift, Ctrl, Meta) is pressed\n if (event.altKey || event.shiftKey || event.ctrlKey || event.metaKey) {\n return;\n }\n const list = tabListRef.current;\n const currentFocus = ownerDocument(list).activeElement;\n // Keyboard navigation assumes that [role=\"tab\"] are siblings\n // though we might warn in the future about nested, interactive elements\n // as a a11y violation\n const role = currentFocus.getAttribute('role');\n if (role !== 'tab') {\n return;\n }\n let previousItemKey = orientation === 'horizontal' ? 'ArrowLeft' : 'ArrowUp';\n let nextItemKey = orientation === 'horizontal' ? 'ArrowRight' : 'ArrowDown';\n if (orientation === 'horizontal' && isRtl) {\n // swap previousItemKey with nextItemKey\n previousItemKey = 'ArrowRight';\n nextItemKey = 'ArrowLeft';\n }\n switch (event.key) {\n case previousItemKey:\n event.preventDefault();\n moveFocus(list, currentFocus, previousItem);\n break;\n case nextItemKey:\n event.preventDefault();\n moveFocus(list, currentFocus, nextItem);\n break;\n case 'Home':\n event.preventDefault();\n moveFocus(list, null, nextItem);\n break;\n case 'End':\n event.preventDefault();\n moveFocus(list, null, previousItem);\n break;\n default:\n break;\n }\n };\n const conditionalElements = getConditionalElements();\n const [RootSlot, rootSlotProps] = useSlot('root', {\n ref,\n className: clsx(classes.root, className),\n elementType: TabsRoot,\n externalForwardedProps: {\n ...externalForwardedProps,\n ...other,\n component\n },\n ownerState\n });\n const [ScrollerSlot, scrollerSlotProps] = useSlot('scroller', {\n ref: tabsRef,\n className: classes.scroller,\n elementType: TabsScroller,\n externalForwardedProps,\n ownerState,\n additionalProps: {\n style: {\n overflow: scrollerStyle.overflow,\n [vertical ? `margin${isRtl ? 'Left' : 'Right'}` : 'marginBottom']: visibleScrollbar ? undefined : -scrollerStyle.scrollbarWidth\n }\n }\n });\n const [ListSlot, listSlotProps] = useSlot('list', {\n ref: tabListRef,\n className: clsx(classes.list, classes.flexContainer),\n elementType: List,\n externalForwardedProps,\n ownerState,\n getSlotProps: handlers => ({\n ...handlers,\n onKeyDown: event => {\n handleKeyDown(event);\n handlers.onKeyDown?.(event);\n }\n })\n });\n return /*#__PURE__*/_jsxs(RootSlot, {\n ...rootSlotProps,\n children: [conditionalElements.scrollButtonStart, conditionalElements.scrollbarSizeListener, /*#__PURE__*/_jsxs(ScrollerSlot, {\n ...scrollerSlotProps,\n children: [/*#__PURE__*/_jsx(ListSlot, {\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n \"aria-orientation\": orientation === 'vertical' ? 'vertical' : null,\n role: \"tablist\",\n ...listSlotProps,\n children: children\n }), mounted && indicator]\n }), conditionalElements.scrollButtonEnd]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Tabs.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Callback fired when the component mounts.\n * This is useful when you want to trigger an action programmatically.\n * It supports two actions: `updateIndicator()` and `updateScrollButtons()`\n *\n * @param {object} actions This object contains all possible actions\n * that can be triggered programmatically.\n */\n action: refType,\n /**\n * If `true`, the scroll buttons aren't forced hidden on mobile.\n * By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.\n * @default false\n */\n allowScrollButtonsMobile: PropTypes.bool,\n /**\n * The label for the Tabs as a string.\n */\n 'aria-label': PropTypes.string,\n /**\n * An id or list of ids separated by a space that label the Tabs.\n */\n 'aria-labelledby': PropTypes.string,\n /**\n * If `true`, the tabs are centered.\n * This prop is intended for large views.\n * @default false\n */\n centered: PropTypes.bool,\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * Determines the color of the indicator.\n * @default 'primary'\n */\n indicatorColor: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),\n /**\n * Callback fired when the value changes.\n *\n * @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.\n * @param {any} value We default to the index of the child (number)\n */\n onChange: PropTypes.func,\n /**\n * The component orientation (layout flow direction).\n * @default 'horizontal'\n */\n orientation: PropTypes.oneOf(['horizontal', 'vertical']),\n /**\n * The component used to render the scroll buttons.\n * @deprecated use the `slots.scrollButtons` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n * @default TabScrollButton\n */\n ScrollButtonComponent: PropTypes.elementType,\n /**\n * Determine behavior of scroll buttons when tabs are set to scroll:\n *\n * - `auto` will only present them when not all the items are visible.\n * - `true` will always present them.\n * - `false` will never present them.\n *\n * By default the scroll buttons are hidden on mobile.\n * This behavior can be disabled with `allowScrollButtonsMobile`.\n * @default 'auto'\n */\n scrollButtons: PropTypes /* @typescript-to-proptypes-ignore */.oneOf(['auto', false, true]),\n /**\n * If `true` the selected tab changes on focus. Otherwise it only\n * changes on activation.\n */\n selectionFollowsFocus: PropTypes.bool,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n endScrollButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n indicator: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n list: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n scrollbar: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n scrollButtons: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n scroller: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n startScrollButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n endScrollButtonIcon: PropTypes.elementType,\n EndScrollButtonIcon: PropTypes.elementType,\n indicator: PropTypes.elementType,\n list: PropTypes.elementType,\n root: PropTypes.elementType,\n scrollbar: PropTypes.elementType,\n scrollButtons: PropTypes.elementType,\n scroller: PropTypes.elementType,\n startScrollButtonIcon: PropTypes.elementType,\n StartScrollButtonIcon: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Props applied to the tab indicator element.\n * @deprecated use the `slotProps.indicator` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n * @default {}\n */\n TabIndicatorProps: PropTypes.object,\n /**\n * Props applied to the [`TabScrollButton`](https://mui.com/material-ui/api/tab-scroll-button/) element.\n * @deprecated use the `slotProps.scrollButtons` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n * @default {}\n */\n TabScrollButtonProps: PropTypes.object,\n /**\n * Determines the color of the `Tab`.\n * @default 'primary'\n */\n textColor: PropTypes.oneOf(['inherit', 'primary', 'secondary']),\n /**\n * The value of the currently selected `Tab`.\n * If you don't want any selected `Tab`, you can set this prop to `false`.\n */\n value: PropTypes.any,\n /**\n * Determines additional display behavior of the tabs:\n *\n * - `scrollable` will invoke scrolling properties and allow for horizontally\n * scrolling (or swiping) of the tab bar.\n * - `fullWidth` will make the tabs grow to use all the available space,\n * which should be used for small views, like on mobile.\n * - `standard` will render the default state.\n * @default 'standard'\n */\n variant: PropTypes.oneOf(['fullWidth', 'scrollable', 'standard']),\n /**\n * If `true`, the scrollbar is visible. It can be useful when displaying\n * a long vertical list of tabs.\n * @default false\n */\n visibleScrollbar: PropTypes.bool\n} : void 0;\nexport default Tabs;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTextFieldUtilityClass(slot) {\n return generateUtilityClass('MuiTextField', slot);\n}\nconst textFieldClasses = generateUtilityClasses('MuiTextField', ['root']);\nexport default textFieldClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useId from '@mui/utils/useId';\nimport refType from '@mui/utils/refType';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Input from \"../Input/index.js\";\nimport FilledInput from \"../FilledInput/index.js\";\nimport OutlinedInput from \"../OutlinedInput/index.js\";\nimport InputLabel from \"../InputLabel/index.js\";\nimport FormControl from \"../FormControl/index.js\";\nimport FormHelperText from \"../FormHelperText/index.js\";\nimport Select from \"../Select/index.js\";\nimport { getTextFieldUtilityClass } from \"./textFieldClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst variantComponent = {\n standard: Input,\n filled: FilledInput,\n outlined: OutlinedInput\n};\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getTextFieldUtilityClass, classes);\n};\nconst TextFieldRoot = styled(FormControl, {\n name: 'MuiTextField',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({});\n\n/**\n * The `TextField` is a convenience wrapper for the most common cases (80%).\n * It cannot be all things to all people, otherwise the API would grow out of control.\n *\n * ## Advanced Configuration\n *\n * It's important to understand that the text field is a simple abstraction\n * on top of the following components:\n *\n * - [FormControl](/material-ui/api/form-control/)\n * - [InputLabel](/material-ui/api/input-label/)\n * - [FilledInput](/material-ui/api/filled-input/)\n * - [OutlinedInput](/material-ui/api/outlined-input/)\n * - [Input](/material-ui/api/input/)\n * - [FormHelperText](/material-ui/api/form-helper-text/)\n *\n * If you wish to alter the props applied to the `input` element, you can do so as follows:\n *\n * ```jsx\n * const inputProps = {\n * step: 300,\n * };\n *\n * return <TextField id=\"time\" type=\"time\" inputProps={inputProps} />;\n * ```\n *\n * For advanced cases, please look at the source of TextField by clicking on the\n * \"Edit this page\" button above. Consider either:\n *\n * - using the upper case props for passing values directly to the components\n * - using the underlying components directly as shown in the demos\n */\nconst TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTextField'\n });\n const {\n autoComplete,\n autoFocus = false,\n children,\n className,\n color = 'primary',\n defaultValue,\n disabled = false,\n error = false,\n FormHelperTextProps: FormHelperTextPropsProp,\n fullWidth = false,\n helperText,\n id: idOverride,\n InputLabelProps: InputLabelPropsProp,\n inputProps: inputPropsProp,\n InputProps: InputPropsProp,\n inputRef,\n label,\n maxRows,\n minRows,\n multiline = false,\n name,\n onBlur,\n onChange,\n onFocus,\n placeholder,\n required = false,\n rows,\n select = false,\n SelectProps: SelectPropsProp,\n slots = {},\n slotProps = {},\n type,\n value,\n variant = 'outlined',\n ...other\n } = props;\n const ownerState = {\n ...props,\n autoFocus,\n color,\n disabled,\n error,\n fullWidth,\n multiline,\n required,\n select,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n if (process.env.NODE_ENV !== 'production') {\n if (select && !children) {\n console.error('MUI: `children` must be passed when using the `TextField` component with `select`.');\n }\n }\n const id = useId(idOverride);\n const helperTextId = helperText && id ? `${id}-helper-text` : undefined;\n const inputLabelId = label && id ? `${id}-label` : undefined;\n const InputComponent = variantComponent[variant];\n const externalForwardedProps = {\n slots,\n slotProps: {\n input: InputPropsProp,\n inputLabel: InputLabelPropsProp,\n htmlInput: inputPropsProp,\n formHelperText: FormHelperTextPropsProp,\n select: SelectPropsProp,\n ...slotProps\n }\n };\n const inputAdditionalProps = {};\n const inputLabelSlotProps = externalForwardedProps.slotProps.inputLabel;\n if (variant === 'outlined') {\n if (inputLabelSlotProps && typeof inputLabelSlotProps.shrink !== 'undefined') {\n inputAdditionalProps.notched = inputLabelSlotProps.shrink;\n }\n inputAdditionalProps.label = label;\n }\n if (select) {\n // unset defaults from textbox inputs\n if (!SelectPropsProp || !SelectPropsProp.native) {\n inputAdditionalProps.id = undefined;\n }\n inputAdditionalProps['aria-describedby'] = undefined;\n }\n const [RootSlot, rootProps] = useSlot('root', {\n elementType: TextFieldRoot,\n shouldForwardComponentProp: true,\n externalForwardedProps: {\n ...externalForwardedProps,\n ...other\n },\n ownerState,\n className: clsx(classes.root, className),\n ref,\n additionalProps: {\n disabled,\n error,\n fullWidth,\n required,\n color,\n variant\n }\n });\n const [InputSlot, inputProps] = useSlot('input', {\n elementType: InputComponent,\n externalForwardedProps,\n additionalProps: inputAdditionalProps,\n ownerState\n });\n const [InputLabelSlot, inputLabelProps] = useSlot('inputLabel', {\n elementType: InputLabel,\n externalForwardedProps,\n ownerState\n });\n const [HtmlInputSlot, htmlInputProps] = useSlot('htmlInput', {\n elementType: 'input',\n externalForwardedProps,\n ownerState\n });\n const [FormHelperTextSlot, formHelperTextProps] = useSlot('formHelperText', {\n elementType: FormHelperText,\n externalForwardedProps,\n ownerState\n });\n const [SelectSlot, selectProps] = useSlot('select', {\n elementType: Select,\n externalForwardedProps,\n ownerState\n });\n const InputElement = /*#__PURE__*/_jsx(InputSlot, {\n \"aria-describedby\": helperTextId,\n autoComplete: autoComplete,\n autoFocus: autoFocus,\n defaultValue: defaultValue,\n fullWidth: fullWidth,\n multiline: multiline,\n name: name,\n rows: rows,\n maxRows: maxRows,\n minRows: minRows,\n type: type,\n value: value,\n id: id,\n inputRef: inputRef,\n onBlur: onBlur,\n onChange: onChange,\n onFocus: onFocus,\n placeholder: placeholder,\n inputProps: htmlInputProps,\n slots: {\n input: slots.htmlInput ? HtmlInputSlot : undefined\n },\n ...inputProps\n });\n return /*#__PURE__*/_jsxs(RootSlot, {\n ...rootProps,\n children: [label != null && label !== '' && /*#__PURE__*/_jsx(InputLabelSlot, {\n htmlFor: id,\n id: inputLabelId,\n ...inputLabelProps,\n children: label\n }), select ? /*#__PURE__*/_jsx(SelectSlot, {\n \"aria-describedby\": helperTextId,\n id: id,\n labelId: inputLabelId,\n value: value,\n input: InputElement,\n ...selectProps,\n children: children\n }) : InputElement, helperText && /*#__PURE__*/_jsx(FormHelperTextSlot, {\n id: helperTextId,\n ...formHelperTextProps,\n children: helperText\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? TextField.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * This prop helps users to fill forms faster, especially on mobile devices.\n * The name can be confusing, as it's more like an autofill.\n * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).\n */\n autoComplete: PropTypes.string,\n /**\n * If `true`, the `input` element is focused during the first mount.\n * @default false\n */\n autoFocus: PropTypes.bool,\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.any,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the label is displayed in an error state.\n * @default false\n */\n error: PropTypes.bool,\n /**\n * Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.\n * @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n FormHelperTextProps: PropTypes.object,\n /**\n * If `true`, the input will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * The helper text content.\n */\n helperText: PropTypes.node,\n /**\n * The id of the `input` element.\n * Use this prop to make `label` and `helperText` accessible for screen readers.\n */\n id: PropTypes.string,\n /**\n * Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.\n * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.\n * @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n InputLabelProps: PropTypes.object,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n * @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n inputProps: PropTypes.object,\n /**\n * Props applied to the Input element.\n * It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),\n * [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)\n * component depending on the `variant` prop value.\n * @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n InputProps: PropTypes.object,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * If `dense` or `normal`, will adjust vertical spacing of this and contained components.\n * @default 'none'\n */\n margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n /**\n * Maximum number of rows to display when multiline option is set to true.\n */\n maxRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * Minimum number of rows to display when multiline option is set to true.\n */\n minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * If `true`, a `textarea` element is rendered instead of an input.\n * @default false\n */\n multiline: PropTypes.bool,\n /**\n * Name attribute of the `input` element.\n */\n name: PropTypes.string,\n /**\n * @ignore\n */\n onBlur: PropTypes.func,\n /**\n * Callback fired when the value is changed.\n *\n * @param {object} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (string).\n */\n onChange: PropTypes.func,\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n /**\n * The short hint displayed in the `input` before the user enters a value.\n */\n placeholder: PropTypes.string,\n /**\n * If `true`, the label is displayed as required and the `input` element is required.\n * @default false\n */\n required: PropTypes.bool,\n /**\n * Number of rows to display when multiline option is set to true.\n */\n rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * Render a [`Select`](https://mui.com/material-ui/api/select/) element while passing the Input element to `Select` as `input` parameter.\n * If this option is set you must pass the options of the select as children.\n * @default false\n */\n select: PropTypes.bool,\n /**\n * Props applied to the [`Select`](https://mui.com/material-ui/api/select/) element.\n * @deprecated Use `slotProps.select` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n SelectProps: PropTypes.object,\n /**\n * The size of the component.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({\n formHelperText: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n htmlInput: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n input: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n inputLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n select: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n formHelperText: PropTypes.elementType,\n htmlInput: PropTypes.elementType,\n input: PropTypes.elementType,\n inputLabel: PropTypes.elementType,\n root: PropTypes.elementType,\n select: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).\n */\n type: PropTypes /* @typescript-to-proptypes-ignore */.string,\n /**\n * The value of the `input` element, required for a controlled component.\n */\n value: PropTypes.any,\n /**\n * The variant to use.\n * @default 'outlined'\n */\n variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport default TextField;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getToggleButtonUtilityClass(slot) {\n return generateUtilityClass('MuiToggleButton', slot);\n}\nconst toggleButtonClasses = generateUtilityClasses('MuiToggleButton', ['root', 'disabled', 'selected', 'standard', 'primary', 'secondary', 'sizeSmall', 'sizeMedium', 'sizeLarge', 'fullWidth']);\nexport default toggleButtonClasses;","'use client';\n\nimport * as React from 'react';\n/**\n * @ignore - internal component.\n */\nconst ToggleButtonGroupContext = /*#__PURE__*/React.createContext({});\nif (process.env.NODE_ENV !== 'production') {\n ToggleButtonGroupContext.displayName = 'ToggleButtonGroupContext';\n}\nexport default ToggleButtonGroupContext;","'use client';\n\nimport * as React from 'react';\n/**\n * @ignore - internal component.\n */\nconst ToggleButtonGroupButtonContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== 'production') {\n ToggleButtonGroupButtonContext.displayName = 'ToggleButtonGroupButtonContext';\n}\nexport default ToggleButtonGroupButtonContext;","// Determine if the toggle button value matches, or is contained in, the\n// candidate group value.\nexport default function isValueSelected(value, candidate) {\n if (candidate === undefined || value === undefined) {\n return false;\n }\n if (Array.isArray(candidate)) {\n return candidate.includes(value);\n }\n return value === candidate;\n}","'use client';\n\n// @inheritedComponent ButtonBase\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport resolveProps from '@mui/utils/resolveProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport toggleButtonClasses, { getToggleButtonUtilityClass } from \"./toggleButtonClasses.js\";\nimport ToggleButtonGroupContext from \"../ToggleButtonGroup/ToggleButtonGroupContext.js\";\nimport ToggleButtonGroupButtonContext from \"../ToggleButtonGroup/ToggleButtonGroupButtonContext.js\";\nimport isValueSelected from \"../ToggleButtonGroup/isValueSelected.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n fullWidth,\n selected,\n disabled,\n size,\n color\n } = ownerState;\n const slots = {\n root: ['root', selected && 'selected', disabled && 'disabled', fullWidth && 'fullWidth', `size${capitalize(size)}`, color]\n };\n return composeClasses(slots, getToggleButtonUtilityClass, classes);\n};\nconst ToggleButtonRoot = styled(ButtonBase, {\n name: 'MuiToggleButton',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`size${capitalize(ownerState.size)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n ...theme.typography.button,\n borderRadius: (theme.vars || theme).shape.borderRadius,\n padding: 11,\n border: `1px solid ${(theme.vars || theme).palette.divider}`,\n color: (theme.vars || theme).palette.action.active,\n [`&.${toggleButtonClasses.disabled}`]: {\n color: (theme.vars || theme).palette.action.disabled,\n border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`\n },\n '&:hover': {\n textDecoration: 'none',\n // Reset on mouse devices\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n variants: [{\n props: {\n color: 'standard'\n },\n style: {\n [`&.${toggleButtonClasses.selected}`]: {\n color: (theme.vars || theme).palette.text.primary,\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.selectedOpacity),\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.text.primary, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.selectedOpacity)\n }\n }\n }\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n [`&.${toggleButtonClasses.selected}`]: {\n color: (theme.vars || theme).palette[color].main,\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette[color].main, theme.palette.action.selectedOpacity),\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette[color].main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette[color].main, theme.palette.action.selectedOpacity)\n }\n }\n }\n }\n })), {\n props: {\n fullWidth: true\n },\n style: {\n width: '100%'\n }\n }, {\n props: {\n size: 'small'\n },\n style: {\n padding: 7,\n fontSize: theme.typography.pxToRem(13)\n }\n }, {\n props: {\n size: 'large'\n },\n style: {\n padding: 15,\n fontSize: theme.typography.pxToRem(15)\n }\n }]\n})));\nconst ToggleButton = /*#__PURE__*/React.forwardRef(function ToggleButton(inProps, ref) {\n // props priority: `inProps` > `contextProps` > `themeDefaultProps`\n const {\n value: contextValue,\n ...contextProps\n } = React.useContext(ToggleButtonGroupContext);\n const toggleButtonGroupButtonContextPositionClassName = React.useContext(ToggleButtonGroupButtonContext);\n const resolvedProps = resolveProps({\n ...contextProps,\n selected: isValueSelected(inProps.value, contextValue)\n }, inProps);\n const props = useDefaultProps({\n props: resolvedProps,\n name: 'MuiToggleButton'\n });\n const {\n children,\n className,\n color = 'standard',\n disabled = false,\n disableFocusRipple = false,\n fullWidth = false,\n onChange,\n onClick,\n selected,\n size = 'medium',\n value,\n ...other\n } = props;\n const ownerState = {\n ...props,\n color,\n disabled,\n disableFocusRipple,\n fullWidth,\n size\n };\n const classes = useUtilityClasses(ownerState);\n const handleChange = event => {\n if (onClick) {\n onClick(event, value);\n if (event.defaultPrevented) {\n return;\n }\n }\n if (onChange) {\n onChange(event, value);\n }\n };\n const positionClassName = toggleButtonGroupButtonContextPositionClassName || '';\n return /*#__PURE__*/_jsx(ToggleButtonRoot, {\n className: clsx(contextProps.className, classes.root, className, positionClassName),\n disabled: disabled,\n focusRipple: !disableFocusRipple,\n ref: ref,\n onClick: handleChange,\n onChange: onChange,\n value: value,\n ownerState: ownerState,\n \"aria-pressed\": selected,\n ...other,\n children: children\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? ToggleButton.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the button when it is in an active state.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'standard'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['standard', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the keyboard focus ripple is disabled.\n * @default false\n */\n disableFocusRipple: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * If `true`, the button will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * Callback fired when the state changes.\n *\n * @param {React.MouseEvent<HTMLElement>} event The event source of the callback.\n * @param {any} value of the selected button.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the button is clicked.\n *\n * @param {React.MouseEvent<HTMLElement>} event The event source of the callback.\n * @param {any} value of the selected button.\n */\n onClick: PropTypes.func,\n /**\n * If `true`, the button is rendered in an active state.\n */\n selected: PropTypes.bool,\n /**\n * The size of the component.\n * The prop defaults to the value inherited from the parent ToggleButtonGroup component.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The value to associate with the button when selected in a\n * ToggleButtonGroup.\n */\n value: PropTypes /* @typescript-to-proptypes-ignore */.any.isRequired\n} : void 0;\nexport default ToggleButton;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getToggleButtonGroupUtilityClass(slot) {\n return generateUtilityClass('MuiToggleButtonGroup', slot);\n}\nconst toggleButtonGroupClasses = generateUtilityClasses('MuiToggleButtonGroup', ['root', 'selected', 'horizontal', 'vertical', 'disabled', 'grouped', 'groupedHorizontal', 'groupedVertical', 'fullWidth', 'firstButton', 'lastButton', 'middleButton']);\nexport default toggleButtonGroupClasses;","'use client';\n\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport getValidReactChildren from '@mui/utils/getValidReactChildren';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport toggleButtonGroupClasses, { getToggleButtonGroupUtilityClass } from \"./toggleButtonGroupClasses.js\";\nimport ToggleButtonGroupContext from \"./ToggleButtonGroupContext.js\";\nimport ToggleButtonGroupButtonContext from \"./ToggleButtonGroupButtonContext.js\";\nimport toggleButtonClasses from \"../ToggleButton/toggleButtonClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n orientation,\n fullWidth,\n disabled\n } = ownerState;\n const slots = {\n root: ['root', orientation, fullWidth && 'fullWidth'],\n grouped: ['grouped', `grouped${capitalize(orientation)}`, disabled && 'disabled'],\n firstButton: ['firstButton'],\n lastButton: ['lastButton'],\n middleButton: ['middleButton']\n };\n return composeClasses(slots, getToggleButtonGroupUtilityClass, classes);\n};\nconst ToggleButtonGroupRoot = styled('div', {\n name: 'MuiToggleButtonGroup',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [{\n [`& .${toggleButtonGroupClasses.grouped}`]: styles.grouped\n }, {\n [`& .${toggleButtonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.orientation)}`]\n }, {\n [`& .${toggleButtonGroupClasses.firstButton}`]: styles.firstButton\n }, {\n [`& .${toggleButtonGroupClasses.lastButton}`]: styles.lastButton\n }, {\n [`& .${toggleButtonGroupClasses.middleButton}`]: styles.middleButton\n }, styles.root, ownerState.orientation === 'vertical' && styles.vertical, ownerState.fullWidth && styles.fullWidth];\n }\n})(memoTheme(({\n theme\n}) => ({\n display: 'inline-flex',\n borderRadius: (theme.vars || theme).shape.borderRadius,\n variants: [{\n props: {\n orientation: 'vertical'\n },\n style: {\n flexDirection: 'column',\n [`& .${toggleButtonGroupClasses.grouped}`]: {\n [`&.${toggleButtonGroupClasses.selected} + .${toggleButtonGroupClasses.grouped}.${toggleButtonGroupClasses.selected}`]: {\n borderTop: 0,\n marginTop: 0\n }\n },\n [`& .${toggleButtonGroupClasses.firstButton},& .${toggleButtonGroupClasses.middleButton}`]: {\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 0\n },\n [`& .${toggleButtonGroupClasses.lastButton},& .${toggleButtonGroupClasses.middleButton}`]: {\n marginTop: -1,\n borderTop: '1px solid transparent',\n borderTopLeftRadius: 0,\n borderTopRightRadius: 0\n },\n [`& .${toggleButtonGroupClasses.lastButton}.${toggleButtonClasses.disabled},& .${toggleButtonGroupClasses.middleButton}.${toggleButtonClasses.disabled}`]: {\n borderTop: '1px solid transparent'\n }\n }\n }, {\n props: {\n fullWidth: true\n },\n style: {\n width: '100%'\n }\n }, {\n props: {\n orientation: 'horizontal'\n },\n style: {\n [`& .${toggleButtonGroupClasses.grouped}`]: {\n [`&.${toggleButtonGroupClasses.selected} + .${toggleButtonGroupClasses.grouped}.${toggleButtonGroupClasses.selected}`]: {\n borderLeft: 0,\n marginLeft: 0\n }\n },\n [`& .${toggleButtonGroupClasses.firstButton},& .${toggleButtonGroupClasses.middleButton}`]: {\n borderTopRightRadius: 0,\n borderBottomRightRadius: 0\n },\n [`& .${toggleButtonGroupClasses.lastButton},& .${toggleButtonGroupClasses.middleButton}`]: {\n marginLeft: -1,\n borderLeft: '1px solid transparent',\n borderTopLeftRadius: 0,\n borderBottomLeftRadius: 0\n },\n [`& .${toggleButtonGroupClasses.lastButton}.${toggleButtonClasses.disabled},& .${toggleButtonGroupClasses.middleButton}.${toggleButtonClasses.disabled}`]: {\n borderLeft: '1px solid transparent'\n }\n }\n }]\n})));\nconst ToggleButtonGroup = /*#__PURE__*/React.forwardRef(function ToggleButtonGroup(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiToggleButtonGroup'\n });\n const {\n children,\n className,\n color = 'standard',\n disabled = false,\n exclusive = false,\n fullWidth = false,\n onChange,\n orientation = 'horizontal',\n size = 'medium',\n value,\n ...other\n } = props;\n const ownerState = {\n ...props,\n disabled,\n fullWidth,\n orientation,\n size\n };\n const classes = useUtilityClasses(ownerState);\n const handleChange = React.useCallback((event, buttonValue) => {\n if (!onChange) {\n return;\n }\n const index = value && value.indexOf(buttonValue);\n let newValue;\n if (value && index >= 0) {\n newValue = value.slice();\n newValue.splice(index, 1);\n } else {\n newValue = value ? value.concat(buttonValue) : [buttonValue];\n }\n onChange(event, newValue);\n }, [onChange, value]);\n const handleExclusiveChange = React.useCallback((event, buttonValue) => {\n if (!onChange) {\n return;\n }\n onChange(event, value === buttonValue ? null : buttonValue);\n }, [onChange, value]);\n const context = React.useMemo(() => ({\n className: classes.grouped,\n onChange: exclusive ? handleExclusiveChange : handleChange,\n value,\n size,\n fullWidth,\n color,\n disabled\n }), [classes.grouped, exclusive, handleExclusiveChange, handleChange, value, size, fullWidth, color, disabled]);\n const validChildren = getValidReactChildren(children);\n const childrenCount = validChildren.length;\n const getButtonPositionClassName = index => {\n const isFirstButton = index === 0;\n const isLastButton = index === childrenCount - 1;\n if (isFirstButton && isLastButton) {\n return '';\n }\n if (isFirstButton) {\n return classes.firstButton;\n }\n if (isLastButton) {\n return classes.lastButton;\n }\n return classes.middleButton;\n };\n return /*#__PURE__*/_jsx(ToggleButtonGroupRoot, {\n role: \"group\",\n className: clsx(classes.root, className),\n ref: ref,\n ownerState: ownerState,\n ...other,\n children: /*#__PURE__*/_jsx(ToggleButtonGroupContext.Provider, {\n value: context,\n children: validChildren.map((child, index) => {\n if (process.env.NODE_ENV !== 'production') {\n if (isFragment(child)) {\n console.error([\"MUI: The ToggleButtonGroup component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n }\n }\n return /*#__PURE__*/_jsx(ToggleButtonGroupButtonContext.Provider, {\n value: getButtonPositionClassName(index),\n children: child\n }, index);\n })\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? ToggleButtonGroup.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the button when it is selected.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'standard'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['standard', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * If `true`, the component is disabled. This implies that all ToggleButton children will be disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, only allow one of the child ToggleButton values to be selected.\n * @default false\n */\n exclusive: PropTypes.bool,\n /**\n * If `true`, the button group will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * Callback fired when the value changes.\n *\n * @param {React.MouseEvent<HTMLElement>} event The event source of the callback.\n * @param {any} value of the selected buttons. When `exclusive` is true\n * this is a single value; when false an array of selected values. If no value\n * is selected and `exclusive` is true the value is null; when false an empty array.\n */\n onChange: PropTypes.func,\n /**\n * The component orientation (layout flow direction).\n * @default 'horizontal'\n */\n orientation: PropTypes.oneOf(['horizontal', 'vertical']),\n /**\n * The size of the component.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The currently selected value within the group or an array of selected\n * values when `exclusive` is false.\n *\n * The value must have reference equality with the option in order to be selected.\n */\n value: PropTypes.any\n} : void 0;\nexport default ToggleButtonGroup;","import { unstable_createUseMediaQuery } from '@mui/system/useMediaQuery';\nimport THEME_ID from \"../styles/identifier.js\";\nconst useMediaQuery = unstable_createUseMediaQuery({\n themeId: THEME_ID\n});\nexport default useMediaQuery;","export const warn = (i18n, code, msg, rest) => {\n const args = [msg, {\n code,\n ...(rest || {})\n }];\n if (i18n?.services?.logger?.forward) {\n return i18n.services.logger.forward(args, 'warn', 'react-i18next::', true);\n }\n if (isString(args[0])) args[0] = `react-i18next:: ${args[0]}`;\n if (i18n?.services?.logger?.warn) {\n i18n.services.logger.warn(...args);\n } else if (console?.warn) {\n console.warn(...args);\n }\n};\nconst alreadyWarned = {};\nexport const warnOnce = (i18n, code, msg, rest) => {\n if (isString(msg) && alreadyWarned[msg]) return;\n if (isString(msg)) alreadyWarned[msg] = new Date();\n warn(i18n, code, msg, rest);\n};\nconst loadedClb = (i18n, cb) => () => {\n if (i18n.isInitialized) {\n cb();\n } else {\n const initialized = () => {\n setTimeout(() => {\n i18n.off('initialized', initialized);\n }, 0);\n cb();\n };\n i18n.on('initialized', initialized);\n }\n};\nexport const loadNamespaces = (i18n, ns, cb) => {\n i18n.loadNamespaces(ns, loadedClb(i18n, cb));\n};\nexport const loadLanguages = (i18n, lng, ns, cb) => {\n if (isString(ns)) ns = [ns];\n if (i18n.options.preload && i18n.options.preload.indexOf(lng) > -1) return loadNamespaces(i18n, ns, cb);\n ns.forEach(n => {\n if (i18n.options.ns.indexOf(n) < 0) i18n.options.ns.push(n);\n });\n i18n.loadLanguages(lng, loadedClb(i18n, cb));\n};\nexport const hasLoadedNamespace = (ns, i18n, options = {}) => {\n if (!i18n.languages || !i18n.languages.length) {\n warnOnce(i18n, 'NO_LANGUAGES', 'i18n.languages were undefined or empty', {\n languages: i18n.languages\n });\n return true;\n }\n return i18n.hasLoadedNamespace(ns, {\n lng: options.lng,\n precheck: (i18nInstance, loadNotPending) => {\n if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18nInstance.services.backendConnector.backend && i18nInstance.isLanguageChangingTo && !loadNotPending(i18nInstance.isLanguageChangingTo, ns)) return false;\n }\n });\n};\nexport const getDisplayName = Component => Component.displayName || Component.name || (isString(Component) && Component.length > 0 ? Component : 'Unknown');\nexport const isString = obj => typeof obj === 'string';\nexport const isObject = obj => typeof obj === 'object' && obj !== null;","const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;\nconst htmlEntities = {\n '&amp;': '&',\n '&#38;': '&',\n '&lt;': '<',\n '&#60;': '<',\n '&gt;': '>',\n '&#62;': '>',\n '&apos;': \"'\",\n '&#39;': \"'\",\n '&quot;': '\"',\n '&#34;': '\"',\n '&nbsp;': ' ',\n '&#160;': ' ',\n '&copy;': '©',\n '&#169;': '©',\n '&reg;': '®',\n '&#174;': '®',\n '&hellip;': '…',\n '&#8230;': '…',\n '&#x2F;': '/',\n '&#47;': '/'\n};\nconst unescapeHtmlEntity = m => htmlEntities[m];\nexport const unescape = text => text.replace(matchHtmlEntity, unescapeHtmlEntity);","import { unescape } from './unescape.js';\nlet defaultOptions = {\n bindI18n: 'languageChanged',\n bindI18nStore: '',\n transEmptyNodeValue: '',\n transSupportBasicHtmlNodes: true,\n transWrapTextNodes: '',\n transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'],\n useSuspense: true,\n unescape\n};\nexport const setDefaults = (options = {}) => {\n defaultOptions = {\n ...defaultOptions,\n ...options\n };\n};\nexport const getDefaults = () => defaultOptions;","let i18nInstance;\nexport const setI18n = instance => {\n i18nInstance = instance;\n};\nexport const getI18n = () => i18nInstance;","import { setDefaults } from './defaults.js';\nimport { setI18n } from './i18nInstance.js';\nexport const initReactI18next = {\n type: '3rdParty',\n init(instance) {\n setDefaults(instance.options.react);\n setI18n(instance);\n }\n};","import { createContext } from 'react';\nimport { getDefaults, setDefaults } from './defaults.js';\nimport { getI18n, setI18n } from './i18nInstance.js';\nimport { initReactI18next } from './initReactI18next.js';\nexport { getDefaults, setDefaults, getI18n, setI18n, initReactI18next };\nexport const I18nContext = createContext();\nexport class ReportNamespaces {\n constructor() {\n this.usedNamespaces = {};\n }\n addUsedNamespaces(namespaces) {\n namespaces.forEach(ns => {\n if (!this.usedNamespaces[ns]) this.usedNamespaces[ns] = true;\n });\n }\n getUsedNamespaces() {\n return Object.keys(this.usedNamespaces);\n }\n}\nexport const composeInitialProps = ForComponent => async ctx => {\n const componentsInitialProps = (await ForComponent.getInitialProps?.(ctx)) ?? {};\n const i18nInitialProps = getInitialProps();\n return {\n ...componentsInitialProps,\n ...i18nInitialProps\n };\n};\nexport const getInitialProps = () => {\n const i18n = getI18n();\n const namespaces = i18n.reportNamespaces?.getUsedNamespaces() ?? [];\n const ret = {};\n const initialI18nStore = {};\n i18n.languages.forEach(l => {\n initialI18nStore[l] = {};\n namespaces.forEach(ns => {\n initialI18nStore[l][ns] = i18n.getResourceBundle(l, ns) || {};\n });\n });\n ret.initialI18nStore = initialI18nStore;\n ret.initialLanguage = i18n.language;\n return ret;\n};","import { useState, useEffect, useContext, useRef, useCallback } from 'react';\nimport { getI18n, getDefaults, ReportNamespaces, I18nContext } from './context.js';\nimport { warnOnce, loadNamespaces, loadLanguages, hasLoadedNamespace, isString, isObject } from './utils.js';\nconst usePrevious = (value, ignore) => {\n const ref = useRef();\n useEffect(() => {\n ref.current = ignore ? ref.current : value;\n }, [value, ignore]);\n return ref.current;\n};\nconst alwaysNewT = (i18n, language, namespace, keyPrefix) => i18n.getFixedT(language, namespace, keyPrefix);\nconst useMemoizedT = (i18n, language, namespace, keyPrefix) => useCallback(alwaysNewT(i18n, language, namespace, keyPrefix), [i18n, language, namespace, keyPrefix]);\nexport const useTranslation = (ns, props = {}) => {\n const {\n i18n: i18nFromProps\n } = props;\n const {\n i18n: i18nFromContext,\n defaultNS: defaultNSFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();\n if (!i18n) {\n warnOnce(i18n, 'NO_I18NEXT_INSTANCE', 'useTranslation: You will need to pass in an i18next instance by using initReactI18next');\n const notReadyT = (k, optsOrDefaultValue) => {\n if (isString(optsOrDefaultValue)) return optsOrDefaultValue;\n if (isObject(optsOrDefaultValue) && isString(optsOrDefaultValue.defaultValue)) return optsOrDefaultValue.defaultValue;\n return Array.isArray(k) ? k[k.length - 1] : k;\n };\n const retNotReady = [notReadyT, {}, false];\n retNotReady.t = notReadyT;\n retNotReady.i18n = {};\n retNotReady.ready = false;\n return retNotReady;\n }\n if (i18n.options.react?.wait) warnOnce(i18n, 'DEPRECATED_OPTION', 'useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.');\n const i18nOptions = {\n ...getDefaults(),\n ...i18n.options.react,\n ...props\n };\n const {\n useSuspense,\n keyPrefix\n } = i18nOptions;\n let namespaces = ns || defaultNSFromContext || i18n.options?.defaultNS;\n namespaces = isString(namespaces) ? [namespaces] : namespaces || ['translation'];\n i18n.reportNamespaces.addUsedNamespaces?.(namespaces);\n const ready = (i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every(n => hasLoadedNamespace(n, i18n, i18nOptions));\n const memoGetT = useMemoizedT(i18n, props.lng || null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);\n const getT = () => memoGetT;\n const getNewT = () => alwaysNewT(i18n, props.lng || null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);\n const [t, setT] = useState(getT);\n let joinedNS = namespaces.join();\n if (props.lng) joinedNS = `${props.lng}${joinedNS}`;\n const previousJoinedNS = usePrevious(joinedNS);\n const isMounted = useRef(true);\n useEffect(() => {\n const {\n bindI18n,\n bindI18nStore\n } = i18nOptions;\n isMounted.current = true;\n if (!ready && !useSuspense) {\n if (props.lng) {\n loadLanguages(i18n, props.lng, namespaces, () => {\n if (isMounted.current) setT(getNewT);\n });\n } else {\n loadNamespaces(i18n, namespaces, () => {\n if (isMounted.current) setT(getNewT);\n });\n }\n }\n if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {\n setT(getNewT);\n }\n const boundReset = () => {\n if (isMounted.current) setT(getNewT);\n };\n if (bindI18n) i18n?.on(bindI18n, boundReset);\n if (bindI18nStore) i18n?.store.on(bindI18nStore, boundReset);\n return () => {\n isMounted.current = false;\n if (i18n && bindI18n) bindI18n?.split(' ').forEach(e => i18n.off(e, boundReset));\n if (bindI18nStore && i18n) bindI18nStore.split(' ').forEach(e => i18n.store.off(e, boundReset));\n };\n }, [i18n, joinedNS]);\n useEffect(() => {\n if (isMounted.current && ready) {\n setT(getT);\n }\n }, [i18n, keyPrefix, ready]);\n const ret = [t, i18n, ready];\n ret.t = t;\n ret.i18n = i18n;\n ret.ready = ready;\n if (ready) return ret;\n if (!ready && !useSuspense) return ret;\n throw new Promise(resolve => {\n if (props.lng) {\n loadLanguages(i18n, props.lng, namespaces, () => resolve());\n } else {\n loadNamespaces(i18n, namespaces, () => resolve());\n }\n });\n};","import { Box, CircularProgress, Stack } from \"@mui/material\";\nimport React from 'react';\nimport { useTranslation } from \"react-i18next\";\n\nexport const LoadingWidget = () => {\n const [t] = useTranslation();\n\n return (\n <Box sx={{ textAlign: \"center\" }}>{t('loading')}</Box>\n );\n};\n\nexport const LoadingPlaceholder = () => <Box\n sx={{ height: 200, alignItems: \"center\", mt: 2 }}\n component={Stack}\n direction=\"column\"\n justifyContent=\"center\">\n <CircularProgress />\n</Box>;\n\n\nexport const LoadingProgressIcon = () => <CircularProgress size={20} />;","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z\"\n}), 'ExpandLess');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z\"\n}), 'ExpandMore');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M9 4v1.38c-.83-.33-1.72-.5-2.61-.5-1.79 0-3.58.68-4.95 2.05l3.33 3.33h1.11v1.11c.86.86 1.98 1.31 3.11 1.36V15H6v3c0 1.1.9 2 2 2h10c1.66 0 3-1.34 3-3V4zm-1.11 6.41V8.26H5.61L4.57 7.22a5.07 5.07 0 0 1 1.82-.34c1.34 0 2.59.52 3.54 1.46l1.41 1.41-.2.2c-.51.51-1.19.8-1.92.8-.47 0-.93-.12-1.33-.34M19 17c0 .55-.45 1-1 1s-1-.45-1-1v-2h-6v-2.59c.57-.23 1.1-.57 1.56-1.03l.2-.2L15.59 14H17v-1.41l-6-5.97V6h8z\"\n}), 'HistoryEdu');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z\"\n}), 'Photo');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n}), 'Close');","import CloseIcon from '@mui/icons-material/Close';\nimport { Card, CardActions, CardContent, CardHeader, Modal } from \"@mui/material\";\nimport React, { FunctionComponent } from 'react';\n\nexport interface WgerModalProps {\n title: string,\n subtitle?: string,\n isOpen: boolean,\n closeFn: any,\n children: any\n}\n\nexport const WgerModal: FunctionComponent<WgerModalProps> = ({ title, subtitle, isOpen, closeFn, children }) => {\n\n const style = {\n position: 'absolute' as const,\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)',\n p: 2,\n minWidth: '400px'\n };\n\n return (\n <Modal\n open={isOpen}\n onClose={closeFn}\n aria-labelledby=\"modal-modal-title\"\n aria-describedby=\"modal-modal-description\"\n >\n <Card sx={style}>\n <CardHeader\n title={title}\n subheader={subtitle}\n action={<CloseIcon onClick={closeFn} />}\n />\n <CardContent>\n {children}\n </CardContent>\n <CardActions>\n </CardActions>\n </Card>\n </Modal>\n\n );\n};\n","import { Box, Typography } from \"@mui/material\";\nimport { useTranslation } from \"react-i18next\";\n\nexport const OverviewEmpty = (props: { height?: string }) => {\n const [t] = useTranslation();\n\n const height = props.height ? props.height : \"50vh\";\n\n return <>\n <Box sx={{\n height: height,\n display: \"flex\",\n\n alignItems: \"center\",\n flexDirection: \"column\",\n justifyContent: \"center\",\n }}>\n <Typography variant=\"h6\" mr={3}>\n {t('nothingHereYet')}\n </Typography>\n <Typography mr={3}>\n {t('nothingHereYetAction')}\n </Typography>\n </Box>\n </>;\n};","import { Button, Card, CardActions, CardContent, CardHeader } from \"@mui/material\";\nimport { WgerModal } from \"components/Core/Modals/WgerModal\";\nimport { OverviewEmpty } from \"components/Core/Widgets/OverviewEmpty\";\nimport React, { ReactElement } from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\nexport const EmptyCard = (props: {\n title: string,\n link?: string,\n modalTitle?: string,\n modalContent?: ReactElement\n}) => {\n\n const [t] = useTranslation();\n\n const [openModal, setOpenModal] = React.useState(false);\n const handleOpenModal = () => setOpenModal(true);\n const handleCloseModal = () => setOpenModal(false);\n\n\n const button = props.link !== undefined\n ? <Button size=\"small\"\n variant=\"contained\"\n href={props.link}>\n {t('add')}\n </Button>\n : <Button\n size=\"small\"\n variant=\"contained\"\n onClick={handleOpenModal}>\n {t('add')}\n </Button>;\n\n return (<>\n <Card>\n <CardHeader\n title={props.title}\n subheader={'.'}\n sx={{ paddingBottom: 0 }} />\n\n <CardContent sx={{ paddingTop: 0, height: \"500px\", }}>\n <OverviewEmpty />\n </CardContent>\n\n <CardActions>\n {button}\n </CardActions>\n </Card>\n <WgerModal\n title={t('add')}\n isOpen={openModal}\n closeFn={handleCloseModal}>\n {props.modalContent!}\n </WgerModal>\n </>);\n};","'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\nconst {iterator, toStringTag} = Symbol;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);\n}\n\n/**\n * Determine if a value is an empty object (safely handles Buffers)\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an empty object, otherwise false\n */\nconst isEmptyObject = (val) => {\n // Early return for non-objects or Buffers to prevent RangeError\n if (!isObject(val) || isBuffer(val)) {\n return false;\n }\n\n try {\n return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;\n } catch (e) {\n // Fallback for any other objects that might cause RangeError with Object.keys()\n return false;\n }\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\nconst [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Buffer check\n if (isBuffer(obj)) {\n return;\n }\n\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n if (isBuffer(obj)){\n return null;\n }\n\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless, skipUndefined} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else if (!skipUndefined || !isUndefined(val)) {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object<any, any>} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[iterator];\n\n const _iterator = generator.call(obj);\n\n let result;\n\n while ((result = _iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array<boolean>}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n return value != null && Number.isFinite(value = +value) ? value : defaultValue;\n}\n\n\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n //Buffer check\n if (isBuffer(source)) {\n return source;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\n// original code\n// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34\n\nconst _setImmediate = ((setImmediateSupported, postMessageSupported) => {\n if (setImmediateSupported) {\n return setImmediate;\n }\n\n return postMessageSupported ? ((token, callbacks) => {\n _global.addEventListener(\"message\", ({source, data}) => {\n if (source === _global && data === token) {\n callbacks.length && callbacks.shift()();\n }\n }, false);\n\n return (cb) => {\n callbacks.push(cb);\n _global.postMessage(token, \"*\");\n }\n })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);\n})(\n typeof setImmediate === 'function',\n isFunction(_global.postMessage)\n);\n\nconst asap = typeof queueMicrotask !== 'undefined' ?\n queueMicrotask.bind(_global) : ( typeof process !== 'undefined' && process.nextTick || _setImmediate);\n\n// *********************\n\n\nconst isIterable = (thing) => thing != null && isFunction(thing[iterator]);\n\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isEmptyObject,\n isReadableStream,\n isRequest,\n isResponse,\n isHeaders,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable,\n setImmediate: _setImmediate,\n asap,\n isIterable\n};\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n if (response) {\n this.response = response;\n this.status = response.status ? response.status : null;\n }\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.status\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n const msg = error && error.message ? error.message : 'Error';\n\n // Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)\n const errCode = code == null && error ? error.code : code;\n AxiosError.call(axiosError, msg, errCode, config, request, response);\n\n // Chain the original error on the standard field; non-enumerable to avoid JSON noise\n if (error && axiosError.cause == null) {\n Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });\n }\n\n axiosError.name = (error && error.name) || 'Error';\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n","// eslint-disable-next-line strict\nexport default null;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array<any>} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object<any, any>} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object<string, any>} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (utils.isBoolean(value)) {\n return value.toString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array<String|Number>} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object<string, any>} params - The parameters to be converted to a FormData object.\n * @param {Object<string, any>} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?(object|Function)} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n if (utils.isFunction(options)) {\n options = {\n serialize: options\n };\n } \n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n","'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n","import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n","const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\nconst _navigator = typeof navigator === 'object' && navigator || undefined;\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = hasBrowserEnv &&\n (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nconst origin = hasBrowserEnv && window.location.href || 'http://localhost';\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv,\n _navigator as navigator,\n origin\n}\n","import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), {\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n },\n ...options\n });\n}\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array<any>} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object<string, any> | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http', 'fetch'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data) ||\n utils.isReadableStream(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (utils.isResponse(data) || utils.isReadableStream(data)) {\n return data;\n }\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data, this.parseReviver);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else if (utils.isObject(header) && utils.isIterable(header)) {\n let obj = {}, dest, key;\n for (const entry of header) {\n if (!utils.isArray(entry)) {\n throw TypeError('Object iterator must return a key-value pair');\n }\n\n obj[key = entry[0]] = (dest = obj[key]) ?\n (utils.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]]) : entry[1];\n }\n\n setHeaders(obj, valueOrRewrite)\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n getSetCookie() {\n return this.get(\"set-cookie\") || [];\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n","'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n","/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n let timestamp = 0;\n let threshold = 1000 / freq;\n let lastArgs;\n let timer;\n\n const invoke = (args, now = Date.now()) => {\n timestamp = now;\n lastArgs = null;\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n fn(...args);\n }\n\n const throttled = (...args) => {\n const now = Date.now();\n const passed = now - timestamp;\n if ( passed >= threshold) {\n invoke(args, now);\n } else {\n lastArgs = args;\n if (!timer) {\n timer = setTimeout(() => {\n timer = null;\n invoke(lastArgs)\n }, threshold - passed);\n }\n }\n }\n\n const flush = () => lastArgs && invoke(lastArgs);\n\n return [throttled, flush];\n}\n\nexport default throttle;\n","import speedometer from \"./speedometer.js\";\nimport throttle from \"./throttle.js\";\nimport utils from \"../utils.js\";\n\nexport const progressEventReducer = (listener, isDownloadStream, freq = 3) => {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return throttle(e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e,\n lengthComputable: total != null,\n [isDownloadStream ? 'download' : 'upload']: true\n };\n\n listener(data);\n }, freq);\n}\n\nexport const progressEventDecorator = (total, throttled) => {\n const lengthComputable = total != null;\n\n return [(loaded) => throttled[0]({\n lengthComputable,\n total,\n loaded\n }), throttled[1]];\n}\n\nexport const asyncDecorator = (fn) => (...args) => utils.asap(() => fn(...args));\n","import platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {\n url = new URL(url, platform.origin);\n\n return (\n origin.protocol === url.protocol &&\n origin.host === url.host &&\n (isMSIE || origin.port === url.port)\n );\n})(\n new URL(platform.origin),\n platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)\n) : () => true;\n","import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n utils.isString(path) && cookie.push('path=' + path);\n\n utils.isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {\n let isRelativeUrl = !isAbsoluteURL(requestedURL);\n if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, prop, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, prop , caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, prop , caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, prop , caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)\n };\n\n utils.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n","import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport isURLSameOrigin from \"./isURLSameOrigin.js\";\nimport cookies from \"./cookies.js\";\nimport buildFullPath from \"../core/buildFullPath.js\";\nimport mergeConfig from \"../core/mergeConfig.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport buildURL from \"./buildURL.js\";\n\nexport default (config) => {\n const newConfig = mergeConfig({}, config);\n\n let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;\n\n newConfig.headers = headers = AxiosHeaders.from(headers);\n\n newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);\n\n // HTTP basic authentication\n if (auth) {\n headers.set('Authorization', 'Basic ' +\n btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))\n );\n }\n\n if (utils.isFormData(data)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n headers.setContentType(undefined); // browser handles it\n } else if (utils.isFunction(data.getHeaders)) {\n // Node.js FormData (like form-data package)\n const formHeaders = data.getHeaders();\n // Only set safe headers to avoid overwriting security headers\n const allowedHeaders = ['content-type', 'content-length'];\n Object.entries(formHeaders).forEach(([key, val]) => {\n if (allowedHeaders.includes(key.toLowerCase())) {\n headers.set(key, val);\n }\n });\n }\n } \n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n\n if (platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) {\n // Add xsrf header\n const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);\n\n if (xsrfValue) {\n headers.set(xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n return newConfig;\n}\n\n","import utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport {progressEventReducer} from '../helpers/progressEventReducer.js';\nimport resolveConfig from \"../helpers/resolveConfig.js\";\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n const _config = resolveConfig(config);\n let requestData = _config.data;\n const requestHeaders = AxiosHeaders.from(_config.headers).normalize();\n let {responseType, onUploadProgress, onDownloadProgress} = _config;\n let onCanceled;\n let uploadThrottled, downloadThrottled;\n let flushUpload, flushDownload;\n\n function done() {\n flushUpload && flushUpload(); // flush events\n flushDownload && flushDownload(); // flush events\n\n _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);\n\n _config.signal && _config.signal.removeEventListener('abort', onCanceled);\n }\n\n let request = new XMLHttpRequest();\n\n request.open(_config.method.toUpperCase(), _config.url, true);\n\n // Set the request timeout in MS\n request.timeout = _config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError(event) {\n // Browsers deliver a ProgressEvent in XHR onerror\n // (message may be empty; when present, surface it)\n // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event\n const msg = event && event.message ? event.message : 'Network Error';\n const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);\n // attach the underlying event for consumers who want details\n err.event = event || null;\n reject(err);\n request = null;\n };\n \n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = _config.transitional || transitionalDefaults;\n if (_config.timeoutErrorMessage) {\n timeoutErrorMessage = _config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(_config.withCredentials)) {\n request.withCredentials = !!_config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = _config.responseType;\n }\n\n // Handle progress if needed\n if (onDownloadProgress) {\n ([downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true));\n request.addEventListener('progress', downloadThrottled);\n }\n\n // Not all browsers support upload events\n if (onUploadProgress && request.upload) {\n ([uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress));\n\n request.upload.addEventListener('progress', uploadThrottled);\n\n request.upload.addEventListener('loadend', flushUpload);\n }\n\n if (_config.cancelToken || _config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n _config.cancelToken && _config.cancelToken.subscribe(onCanceled);\n if (_config.signal) {\n _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(_config.url);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n","import CanceledError from \"../cancel/CanceledError.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport utils from '../utils.js';\n\nconst composeSignals = (signals, timeout) => {\n const {length} = (signals = signals ? signals.filter(Boolean) : []);\n\n if (timeout || length) {\n let controller = new AbortController();\n\n let aborted;\n\n const onabort = function (reason) {\n if (!aborted) {\n aborted = true;\n unsubscribe();\n const err = reason instanceof Error ? reason : this.reason;\n controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));\n }\n }\n\n let timer = timeout && setTimeout(() => {\n timer = null;\n onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT))\n }, timeout)\n\n const unsubscribe = () => {\n if (signals) {\n timer && clearTimeout(timer);\n timer = null;\n signals.forEach(signal => {\n signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);\n });\n signals = null;\n }\n }\n\n signals.forEach((signal) => signal.addEventListener('abort', onabort));\n\n const {signal} = controller;\n\n signal.unsubscribe = () => utils.asap(unsubscribe);\n\n return signal;\n }\n}\n\nexport default composeSignals;\n","\nexport const streamChunk = function* (chunk, chunkSize) {\n let len = chunk.byteLength;\n\n if (!chunkSize || len < chunkSize) {\n yield chunk;\n return;\n }\n\n let pos = 0;\n let end;\n\n while (pos < len) {\n end = pos + chunkSize;\n yield chunk.slice(pos, end);\n pos = end;\n }\n}\n\nexport const readBytes = async function* (iterable, chunkSize) {\n for await (const chunk of readStream(iterable)) {\n yield* streamChunk(chunk, chunkSize);\n }\n}\n\nconst readStream = async function* (stream) {\n if (stream[Symbol.asyncIterator]) {\n yield* stream;\n return;\n }\n\n const reader = stream.getReader();\n try {\n for (;;) {\n const {done, value} = await reader.read();\n if (done) {\n break;\n }\n yield value;\n }\n } finally {\n await reader.cancel();\n }\n}\n\nexport const trackStream = (stream, chunkSize, onProgress, onFinish) => {\n const iterator = readBytes(stream, chunkSize);\n\n let bytes = 0;\n let done;\n let _onFinish = (e) => {\n if (!done) {\n done = true;\n onFinish && onFinish(e);\n }\n }\n\n return new ReadableStream({\n async pull(controller) {\n try {\n const {done, value} = await iterator.next();\n\n if (done) {\n _onFinish();\n controller.close();\n return;\n }\n\n let len = value.byteLength;\n if (onProgress) {\n let loadedBytes = bytes += len;\n onProgress(loadedBytes);\n }\n controller.enqueue(new Uint8Array(value));\n } catch (err) {\n _onFinish(err);\n throw err;\n }\n },\n cancel(reason) {\n _onFinish(reason);\n return iterator.return();\n }\n }, {\n highWaterMark: 2\n })\n}\n","import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport composeSignals from \"../helpers/composeSignals.js\";\nimport {trackStream} from \"../helpers/trackStream.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport {progressEventReducer, progressEventDecorator, asyncDecorator} from \"../helpers/progressEventReducer.js\";\nimport resolveConfig from \"../helpers/resolveConfig.js\";\nimport settle from \"../core/settle.js\";\n\nconst DEFAULT_CHUNK_SIZE = 64 * 1024;\n\nconst {isFunction} = utils;\n\nconst globalFetchAPI = (({Request, Response}) => ({\n Request, Response\n}))(utils.global);\n\nconst {\n ReadableStream, TextEncoder\n} = utils.global;\n\n\nconst test = (fn, ...args) => {\n try {\n return !!fn(...args);\n } catch (e) {\n return false\n }\n}\n\nconst factory = (env) => {\n env = utils.merge.call({\n skipUndefined: true\n }, globalFetchAPI, env);\n\n const {fetch: envFetch, Request, Response} = env;\n const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';\n const isRequestSupported = isFunction(Request);\n const isResponseSupported = isFunction(Response);\n\n if (!isFetchSupported) {\n return false;\n }\n\n const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream);\n\n const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?\n ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :\n async (str) => new Uint8Array(await new Request(str).arrayBuffer())\n );\n\n const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {\n let duplexAccessed = false;\n\n const hasContentType = new Request(platform.origin, {\n body: new ReadableStream(),\n method: 'POST',\n get duplex() {\n duplexAccessed = true;\n return 'half';\n },\n }).headers.has('Content-Type');\n\n return duplexAccessed && !hasContentType;\n });\n\n const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&\n test(() => utils.isReadableStream(new Response('').body));\n\n const resolvers = {\n stream: supportsResponseStream && ((res) => res.body)\n };\n\n isFetchSupported && ((() => {\n ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {\n !resolvers[type] && (resolvers[type] = (res, config) => {\n let method = res && res[type];\n\n if (method) {\n return method.call(res);\n }\n\n throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);\n })\n });\n })());\n\n const getBodyLength = async (body) => {\n if (body == null) {\n return 0;\n }\n\n if (utils.isBlob(body)) {\n return body.size;\n }\n\n if (utils.isSpecCompliantForm(body)) {\n const _request = new Request(platform.origin, {\n method: 'POST',\n body,\n });\n return (await _request.arrayBuffer()).byteLength;\n }\n\n if (utils.isArrayBufferView(body) || utils.isArrayBuffer(body)) {\n return body.byteLength;\n }\n\n if (utils.isURLSearchParams(body)) {\n body = body + '';\n }\n\n if (utils.isString(body)) {\n return (await encodeText(body)).byteLength;\n }\n }\n\n const resolveBodyLength = async (headers, body) => {\n const length = utils.toFiniteNumber(headers.getContentLength());\n\n return length == null ? getBodyLength(body) : length;\n }\n\n return async (config) => {\n let {\n url,\n method,\n data,\n signal,\n cancelToken,\n timeout,\n onDownloadProgress,\n onUploadProgress,\n responseType,\n headers,\n withCredentials = 'same-origin',\n fetchOptions\n } = resolveConfig(config);\n\n let _fetch = envFetch || fetch;\n\n responseType = responseType ? (responseType + '').toLowerCase() : 'text';\n\n let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);\n\n let request = null;\n\n const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {\n composedSignal.unsubscribe();\n });\n\n let requestContentLength;\n\n try {\n if (\n onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&\n (requestContentLength = await resolveBodyLength(headers, data)) !== 0\n ) {\n let _request = new Request(url, {\n method: 'POST',\n body: data,\n duplex: \"half\"\n });\n\n let contentTypeHeader;\n\n if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {\n headers.setContentType(contentTypeHeader)\n }\n\n if (_request.body) {\n const [onProgress, flush] = progressEventDecorator(\n requestContentLength,\n progressEventReducer(asyncDecorator(onUploadProgress))\n );\n\n data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);\n }\n }\n\n if (!utils.isString(withCredentials)) {\n withCredentials = withCredentials ? 'include' : 'omit';\n }\n\n // Cloudflare Workers throws when credentials are defined\n // see https://github.com/cloudflare/workerd/issues/902\n const isCredentialsSupported = isRequestSupported && \"credentials\" in Request.prototype;\n\n const resolvedOptions = {\n ...fetchOptions,\n signal: composedSignal,\n method: method.toUpperCase(),\n headers: headers.normalize().toJSON(),\n body: data,\n duplex: \"half\",\n credentials: isCredentialsSupported ? withCredentials : undefined\n };\n\n request = isRequestSupported && new Request(url, resolvedOptions);\n\n let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));\n\n const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');\n\n if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {\n const options = {};\n\n ['status', 'statusText', 'headers'].forEach(prop => {\n options[prop] = response[prop];\n });\n\n const responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));\n\n const [onProgress, flush] = onDownloadProgress && progressEventDecorator(\n responseContentLength,\n progressEventReducer(asyncDecorator(onDownloadProgress), true)\n ) || [];\n\n response = new Response(\n trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {\n flush && flush();\n unsubscribe && unsubscribe();\n }),\n options\n );\n }\n\n responseType = responseType || 'text';\n\n let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);\n\n !isStreamResponse && unsubscribe && unsubscribe();\n\n return await new Promise((resolve, reject) => {\n settle(resolve, reject, {\n data: responseData,\n headers: AxiosHeaders.from(response.headers),\n status: response.status,\n statusText: response.statusText,\n config,\n request\n })\n })\n } catch (err) {\n unsubscribe && unsubscribe();\n\n if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {\n throw Object.assign(\n new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),\n {\n cause: err.cause || err\n }\n )\n }\n\n throw AxiosError.from(err, err && err.code, config, request);\n }\n }\n}\n\nconst seedCache = new Map();\n\nexport const getFetch = (config) => {\n let env = config ? config.env : {};\n const {fetch, Request, Response} = env;\n const seeds = [\n Request, Response, fetch\n ];\n\n let len = seeds.length, i = len,\n seed, target, map = seedCache;\n\n while (i--) {\n seed = seeds[i];\n target = map.get(seed);\n\n target === undefined && map.set(seed, target = (i ? new Map() : factory(env)))\n\n map = target;\n }\n\n return target;\n};\n\nconst adapter = getFetch();\n\nexport default adapter;\n","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport * as fetchAdapter from './fetch.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter,\n fetch: {\n get: fetchAdapter.getFetch,\n }\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters, config) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter && (utils.isFunction(adapter) || (adapter = adapter.get(config)))) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter, config);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n","export const VERSION = \"1.12.2\";","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\nvalidators.spelling = function spelling(correctSpelling) {\n return (value, opt) => {\n // eslint-disable-next-line no-console\n console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);\n return true;\n }\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig || {};\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy = {};\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n try {\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n } catch (e) {\n // ignore the case where \"stack\" is an un-writable property\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.allowAbsoluteUrls\n if (config.allowAbsoluteUrls !== undefined) {\n // do nothing\n } else if (this.defaults.allowAbsoluteUrls !== undefined) {\n config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;\n } else {\n config.allowAbsoluteUrls = true;\n }\n\n validator.assertOptions(config, {\n baseUrl: validators.spelling('baseURL'),\n withXsrfToken: validators.spelling('withXSRFToken')\n }, true);\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift(...requestInterceptorChain);\n chain.push(...responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n toAbortSignal() {\n const controller = new AbortController();\n\n const abort = (err) => {\n controller.abort(err);\n };\n\n this.subscribe(abort);\n\n controller.signal.unsubscribe = () => this.unsubscribe(abort);\n\n return controller.signal;\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n","const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n","import axios from './lib/axios.js';\n\n// This module is intended to unwrap Axios default export as named.\n// Keep top-level export same with static properties\n// so that it can keep same with es module or cjs\nconst {\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n getAdapter,\n mergeConfig\n} = axios;\n\nexport {\n axios as default,\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n getAdapter,\n mergeConfig\n}\n","import { Ingredient } from \"components/Nutrition/models/Ingredient\";\nimport { NutritionWeightUnit } from \"components/Nutrition/models/weightUnit\";\n\ntype NutritionalValuesConstructor = {\n energy?: number;\n protein?: number;\n carbohydrates?: number;\n carbohydratesSugar?: number;\n fat?: number;\n fatSaturated?: number;\n fiber?: number;\n sodium?: number;\n bodyWeight?: number;\n}\n\n// in kcal per g\nexport const ENERGY_FACTOR = {\n protein: 4,\n carbohydrates: 4,\n fat: 9\n};\n\nexport class NutritionalValues {\n bodyWeight: number = 0;\n\n energy: number = 0;\n protein: number = 0;\n carbohydrates: number = 0;\n carbohydratesSugar: number = 0;\n fat: number = 0;\n fatSaturated: number = 0;\n fiber: number = 0;\n sodium: number = 0;\n\n get energyKj(): number {\n return this.energy * 4.184;\n }\n\n get isEmpty(): boolean {\n return this.energy === 0 && this.protein === 0 && this.carbohydrates === 0 && this.fat === 0;\n }\n\n get percent() {\n return {\n protein: this.protein > 0 ? this.protein * ENERGY_FACTOR.protein / this.energy * 100 : 0,\n carbohydrates: this.carbohydrates > 0 ? this.carbohydrates * ENERGY_FACTOR.carbohydrates / this.energy * 100 : 0,\n fat: this.fat > 0 ? this.fat * ENERGY_FACTOR.fat / this.energy * 100 : 0\n };\n }\n\n get perBodyKg() {\n return {\n protein: this.bodyWeight > 0 ? this.protein / this.bodyWeight : 0,\n carbohydrates: this.bodyWeight > 0 ? this.carbohydrates / this.bodyWeight : 0,\n fat: this.bodyWeight > 0 ? this.fat / this.bodyWeight : 0,\n };\n };\n\n\n constructor(values?: NutritionalValuesConstructor) {\n this.energy = values?.energy ?? 0;\n this.protein = values?.protein ?? 0;\n this.carbohydrates = values?.carbohydrates ?? 0;\n this.carbohydratesSugar = values?.carbohydratesSugar ?? 0;\n this.fat = values?.fat ?? 0;\n this.fatSaturated = values?.fatSaturated ?? 0;\n this.fiber = values?.fiber ?? 0;\n this.sodium = values?.sodium ?? 0;\n this.bodyWeight = values?.bodyWeight ?? 0;\n }\n\n static fromIngredient(ingredient: Ingredient, amount: number, weightUnit: NutritionWeightUnit | null) {\n const out = new NutritionalValues();\n\n const weight = weightUnit === null\n ? amount\n : amount * weightUnit.amount * weightUnit.grams;\n\n // divide by 100 because nutrition values are per 100g\n out.energy = ingredient.energy * weight / 100;\n out.protein = ingredient.protein * weight / 100;\n out.carbohydrates = ingredient.carbohydrates * weight / 100;\n out.carbohydratesSugar = ingredient.carbohydratesSugar ? ingredient.carbohydratesSugar * weight / 100 : 0;\n out.fat = ingredient.fat * weight / 100;\n out.fatSaturated = ingredient.fatSaturated ? ingredient.fatSaturated * weight / 100 : 0;\n out.fiber = ingredient.fiber ? ingredient.fiber * weight / 100 : 0;\n out.sodium = ingredient.sodium ? ingredient.sodium * weight / 100 : 0;\n\n return out;\n }\n\n\n add(other: NutritionalValues) {\n this.energy += other.energy;\n this.protein += other.protein;\n this.carbohydrates += other.carbohydrates;\n this.carbohydratesSugar += other.carbohydratesSugar;\n this.fat += other.fat;\n this.fatSaturated += other.fatSaturated;\n this.fiber += other.fiber;\n this.sodium += other.sodium;\n\n return this;\n }\n\n toString(): string {\n return `e: ${this.energy}, p: ${this.protein}, c: ${this.carbohydrates}, cS: ${this.carbohydratesSugar}, f: ${this.fat}, fS: ${this.fatSaturated}, fi: ${this.fiber}, s: ${this.sodium}`;\n }\n\n equals(other: NutritionalValues): boolean {\n return (\n this.energy === other.energy &&\n this.protein === other.protein &&\n this.carbohydrates === other.carbohydrates &&\n this.carbohydratesSugar === other.carbohydratesSugar &&\n this.fat === other.fat &&\n this.fatSaturated === other.fatSaturated &&\n this.fiber === other.fiber &&\n this.sodium === other.sodium\n );\n }\n}\n\nexport type BaseNutritionalValues = {\n protein: number;\n carbohydrates: number;\n fat: number;\n}\n","const isString = obj => typeof obj === 'string';\nconst defer = () => {\n let res;\n let rej;\n const promise = new Promise((resolve, reject) => {\n res = resolve;\n rej = reject;\n });\n promise.resolve = res;\n promise.reject = rej;\n return promise;\n};\nconst makeString = object => {\n if (object == null) return '';\n return '' + object;\n};\nconst copy = (a, s, t) => {\n a.forEach(m => {\n if (s[m]) t[m] = s[m];\n });\n};\nconst lastOfPathSeparatorRegExp = /###/g;\nconst cleanKey = key => key && key.indexOf('###') > -1 ? key.replace(lastOfPathSeparatorRegExp, '.') : key;\nconst canNotTraverseDeeper = object => !object || isString(object);\nconst getLastOfPath = (object, path, Empty) => {\n const stack = !isString(path) ? path : path.split('.');\n let stackIndex = 0;\n while (stackIndex < stack.length - 1) {\n if (canNotTraverseDeeper(object)) return {};\n const key = cleanKey(stack[stackIndex]);\n if (!object[key] && Empty) object[key] = new Empty();\n if (Object.prototype.hasOwnProperty.call(object, key)) {\n object = object[key];\n } else {\n object = {};\n }\n ++stackIndex;\n }\n if (canNotTraverseDeeper(object)) return {};\n return {\n obj: object,\n k: cleanKey(stack[stackIndex])\n };\n};\nconst setPath = (object, path, newValue) => {\n const {\n obj,\n k\n } = getLastOfPath(object, path, Object);\n if (obj !== undefined || path.length === 1) {\n obj[k] = newValue;\n return;\n }\n let e = path[path.length - 1];\n let p = path.slice(0, path.length - 1);\n let last = getLastOfPath(object, p, Object);\n while (last.obj === undefined && p.length) {\n e = `${p[p.length - 1]}.${e}`;\n p = p.slice(0, p.length - 1);\n last = getLastOfPath(object, p, Object);\n if (last?.obj && typeof last.obj[`${last.k}.${e}`] !== 'undefined') {\n last.obj = undefined;\n }\n }\n last.obj[`${last.k}.${e}`] = newValue;\n};\nconst pushPath = (object, path, newValue, concat) => {\n const {\n obj,\n k\n } = getLastOfPath(object, path, Object);\n obj[k] = obj[k] || [];\n obj[k].push(newValue);\n};\nconst getPath = (object, path) => {\n const {\n obj,\n k\n } = getLastOfPath(object, path);\n if (!obj) return undefined;\n if (!Object.prototype.hasOwnProperty.call(obj, k)) return undefined;\n return obj[k];\n};\nconst getPathWithDefaults = (data, defaultData, key) => {\n const value = getPath(data, key);\n if (value !== undefined) {\n return value;\n }\n return getPath(defaultData, key);\n};\nconst deepExtend = (target, source, overwrite) => {\n for (const prop in source) {\n if (prop !== '__proto__' && prop !== 'constructor') {\n if (prop in target) {\n if (isString(target[prop]) || target[prop] instanceof String || isString(source[prop]) || source[prop] instanceof String) {\n if (overwrite) target[prop] = source[prop];\n } else {\n deepExtend(target[prop], source[prop], overwrite);\n }\n } else {\n target[prop] = source[prop];\n }\n }\n }\n return target;\n};\nconst regexEscape = str => str.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, '\\\\$&');\nvar _entityMap = {\n '&': '&amp;',\n '<': '&lt;',\n '>': '&gt;',\n '\"': '&quot;',\n \"'\": '&#39;',\n '/': '&#x2F;'\n};\nconst escape = data => {\n if (isString(data)) {\n return data.replace(/[&<>\"'\\/]/g, s => _entityMap[s]);\n }\n return data;\n};\nclass RegExpCache {\n constructor(capacity) {\n this.capacity = capacity;\n this.regExpMap = new Map();\n this.regExpQueue = [];\n }\n getRegExp(pattern) {\n const regExpFromCache = this.regExpMap.get(pattern);\n if (regExpFromCache !== undefined) {\n return regExpFromCache;\n }\n const regExpNew = new RegExp(pattern);\n if (this.regExpQueue.length === this.capacity) {\n this.regExpMap.delete(this.regExpQueue.shift());\n }\n this.regExpMap.set(pattern, regExpNew);\n this.regExpQueue.push(pattern);\n return regExpNew;\n }\n}\nconst chars = [' ', ',', '?', '!', ';'];\nconst looksLikeObjectPathRegExpCache = new RegExpCache(20);\nconst looksLikeObjectPath = (key, nsSeparator, keySeparator) => {\n nsSeparator = nsSeparator || '';\n keySeparator = keySeparator || '';\n const possibleChars = chars.filter(c => nsSeparator.indexOf(c) < 0 && keySeparator.indexOf(c) < 0);\n if (possibleChars.length === 0) return true;\n const r = looksLikeObjectPathRegExpCache.getRegExp(`(${possibleChars.map(c => c === '?' ? '\\\\?' : c).join('|')})`);\n let matched = !r.test(key);\n if (!matched) {\n const ki = key.indexOf(keySeparator);\n if (ki > 0 && !r.test(key.substring(0, ki))) {\n matched = true;\n }\n }\n return matched;\n};\nconst deepFind = (obj, path, keySeparator = '.') => {\n if (!obj) return undefined;\n if (obj[path]) {\n if (!Object.prototype.hasOwnProperty.call(obj, path)) return undefined;\n return obj[path];\n }\n const tokens = path.split(keySeparator);\n let current = obj;\n for (let i = 0; i < tokens.length;) {\n if (!current || typeof current !== 'object') {\n return undefined;\n }\n let next;\n let nextPath = '';\n for (let j = i; j < tokens.length; ++j) {\n if (j !== i) {\n nextPath += keySeparator;\n }\n nextPath += tokens[j];\n next = current[nextPath];\n if (next !== undefined) {\n if (['string', 'number', 'boolean'].indexOf(typeof next) > -1 && j < tokens.length - 1) {\n continue;\n }\n i += j - i + 1;\n break;\n }\n }\n current = next;\n }\n return current;\n};\nconst getCleanedCode = code => code?.replace('_', '-');\n\nconst consoleLogger = {\n type: 'logger',\n log(args) {\n this.output('log', args);\n },\n warn(args) {\n this.output('warn', args);\n },\n error(args) {\n this.output('error', args);\n },\n output(type, args) {\n console?.[type]?.apply?.(console, args);\n }\n};\nclass Logger {\n constructor(concreteLogger, options = {}) {\n this.init(concreteLogger, options);\n }\n init(concreteLogger, options = {}) {\n this.prefix = options.prefix || 'i18next:';\n this.logger = concreteLogger || consoleLogger;\n this.options = options;\n this.debug = options.debug;\n }\n log(...args) {\n return this.forward(args, 'log', '', true);\n }\n warn(...args) {\n return this.forward(args, 'warn', '', true);\n }\n error(...args) {\n return this.forward(args, 'error', '');\n }\n deprecate(...args) {\n return this.forward(args, 'warn', 'WARNING DEPRECATED: ', true);\n }\n forward(args, lvl, prefix, debugOnly) {\n if (debugOnly && !this.debug) return null;\n if (isString(args[0])) args[0] = `${prefix}${this.prefix} ${args[0]}`;\n return this.logger[lvl](args);\n }\n create(moduleName) {\n return new Logger(this.logger, {\n ...{\n prefix: `${this.prefix}:${moduleName}:`\n },\n ...this.options\n });\n }\n clone(options) {\n options = options || this.options;\n options.prefix = options.prefix || this.prefix;\n return new Logger(this.logger, options);\n }\n}\nvar baseLogger = new Logger();\n\nclass EventEmitter {\n constructor() {\n this.observers = {};\n }\n on(events, listener) {\n events.split(' ').forEach(event => {\n if (!this.observers[event]) this.observers[event] = new Map();\n const numListeners = this.observers[event].get(listener) || 0;\n this.observers[event].set(listener, numListeners + 1);\n });\n return this;\n }\n off(event, listener) {\n if (!this.observers[event]) return;\n if (!listener) {\n delete this.observers[event];\n return;\n }\n this.observers[event].delete(listener);\n }\n emit(event, ...args) {\n if (this.observers[event]) {\n const cloned = Array.from(this.observers[event].entries());\n cloned.forEach(([observer, numTimesAdded]) => {\n for (let i = 0; i < numTimesAdded; i++) {\n observer(...args);\n }\n });\n }\n if (this.observers['*']) {\n const cloned = Array.from(this.observers['*'].entries());\n cloned.forEach(([observer, numTimesAdded]) => {\n for (let i = 0; i < numTimesAdded; i++) {\n observer.apply(observer, [event, ...args]);\n }\n });\n }\n }\n}\n\nclass ResourceStore extends EventEmitter {\n constructor(data, options = {\n ns: ['translation'],\n defaultNS: 'translation'\n }) {\n super();\n this.data = data || {};\n this.options = options;\n if (this.options.keySeparator === undefined) {\n this.options.keySeparator = '.';\n }\n if (this.options.ignoreJSONStructure === undefined) {\n this.options.ignoreJSONStructure = true;\n }\n }\n addNamespaces(ns) {\n if (this.options.ns.indexOf(ns) < 0) {\n this.options.ns.push(ns);\n }\n }\n removeNamespaces(ns) {\n const index = this.options.ns.indexOf(ns);\n if (index > -1) {\n this.options.ns.splice(index, 1);\n }\n }\n getResource(lng, ns, key, options = {}) {\n const keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;\n const ignoreJSONStructure = options.ignoreJSONStructure !== undefined ? options.ignoreJSONStructure : this.options.ignoreJSONStructure;\n let path;\n if (lng.indexOf('.') > -1) {\n path = lng.split('.');\n } else {\n path = [lng, ns];\n if (key) {\n if (Array.isArray(key)) {\n path.push(...key);\n } else if (isString(key) && keySeparator) {\n path.push(...key.split(keySeparator));\n } else {\n path.push(key);\n }\n }\n }\n const result = getPath(this.data, path);\n if (!result && !ns && !key && lng.indexOf('.') > -1) {\n lng = path[0];\n ns = path[1];\n key = path.slice(2).join('.');\n }\n if (result || !ignoreJSONStructure || !isString(key)) return result;\n return deepFind(this.data?.[lng]?.[ns], key, keySeparator);\n }\n addResource(lng, ns, key, value, options = {\n silent: false\n }) {\n const keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;\n let path = [lng, ns];\n if (key) path = path.concat(keySeparator ? key.split(keySeparator) : key);\n if (lng.indexOf('.') > -1) {\n path = lng.split('.');\n value = ns;\n ns = path[1];\n }\n this.addNamespaces(ns);\n setPath(this.data, path, value);\n if (!options.silent) this.emit('added', lng, ns, key, value);\n }\n addResources(lng, ns, resources, options = {\n silent: false\n }) {\n for (const m in resources) {\n if (isString(resources[m]) || Array.isArray(resources[m])) this.addResource(lng, ns, m, resources[m], {\n silent: true\n });\n }\n if (!options.silent) this.emit('added', lng, ns, resources);\n }\n addResourceBundle(lng, ns, resources, deep, overwrite, options = {\n silent: false,\n skipCopy: false\n }) {\n let path = [lng, ns];\n if (lng.indexOf('.') > -1) {\n path = lng.split('.');\n deep = resources;\n resources = ns;\n ns = path[1];\n }\n this.addNamespaces(ns);\n let pack = getPath(this.data, path) || {};\n if (!options.skipCopy) resources = JSON.parse(JSON.stringify(resources));\n if (deep) {\n deepExtend(pack, resources, overwrite);\n } else {\n pack = {\n ...pack,\n ...resources\n };\n }\n setPath(this.data, path, pack);\n if (!options.silent) this.emit('added', lng, ns, resources);\n }\n removeResourceBundle(lng, ns) {\n if (this.hasResourceBundle(lng, ns)) {\n delete this.data[lng][ns];\n }\n this.removeNamespaces(ns);\n this.emit('removed', lng, ns);\n }\n hasResourceBundle(lng, ns) {\n return this.getResource(lng, ns) !== undefined;\n }\n getResourceBundle(lng, ns) {\n if (!ns) ns = this.options.defaultNS;\n return this.getResource(lng, ns);\n }\n getDataByLanguage(lng) {\n return this.data[lng];\n }\n hasLanguageSomeTranslations(lng) {\n const data = this.getDataByLanguage(lng);\n const n = data && Object.keys(data) || [];\n return !!n.find(v => data[v] && Object.keys(data[v]).length > 0);\n }\n toJSON() {\n return this.data;\n }\n}\n\nvar postProcessor = {\n processors: {},\n addPostProcessor(module) {\n this.processors[module.name] = module;\n },\n handle(processors, value, key, options, translator) {\n processors.forEach(processor => {\n value = this.processors[processor]?.process(value, key, options, translator) ?? value;\n });\n return value;\n }\n};\n\nconst PATH_KEY = Symbol('i18next/PATH_KEY');\nfunction createProxy() {\n const state = [];\n const handler = Object.create(null);\n let proxy;\n handler.get = (target, key) => {\n proxy?.revoke?.();\n if (key === PATH_KEY) return state;\n state.push(key);\n proxy = Proxy.revocable(target, handler);\n return proxy.proxy;\n };\n return Proxy.revocable(Object.create(null), handler).proxy;\n}\nfunction keysFromSelector(selector, opts) {\n const {\n [PATH_KEY]: path\n } = selector(createProxy());\n return path.join(opts?.keySeparator ?? '.');\n}\n\nconst checkedLoadedFor = {};\nconst shouldHandleAsObject = res => !isString(res) && typeof res !== 'boolean' && typeof res !== 'number';\nclass Translator extends EventEmitter {\n constructor(services, options = {}) {\n super();\n copy(['resourceStore', 'languageUtils', 'pluralResolver', 'interpolator', 'backendConnector', 'i18nFormat', 'utils'], services, this);\n this.options = options;\n if (this.options.keySeparator === undefined) {\n this.options.keySeparator = '.';\n }\n this.logger = baseLogger.create('translator');\n }\n changeLanguage(lng) {\n if (lng) this.language = lng;\n }\n exists(key, o = {\n interpolation: {}\n }) {\n const opt = {\n ...o\n };\n if (key == null) return false;\n const resolved = this.resolve(key, opt);\n return resolved?.res !== undefined;\n }\n extractFromKey(key, opt) {\n let nsSeparator = opt.nsSeparator !== undefined ? opt.nsSeparator : this.options.nsSeparator;\n if (nsSeparator === undefined) nsSeparator = ':';\n const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;\n let namespaces = opt.ns || this.options.defaultNS || [];\n const wouldCheckForNsInKey = nsSeparator && key.indexOf(nsSeparator) > -1;\n const seemsNaturalLanguage = !this.options.userDefinedKeySeparator && !opt.keySeparator && !this.options.userDefinedNsSeparator && !opt.nsSeparator && !looksLikeObjectPath(key, nsSeparator, keySeparator);\n if (wouldCheckForNsInKey && !seemsNaturalLanguage) {\n const m = key.match(this.interpolator.nestingRegexp);\n if (m && m.length > 0) {\n return {\n key,\n namespaces: isString(namespaces) ? [namespaces] : namespaces\n };\n }\n const parts = key.split(nsSeparator);\n if (nsSeparator !== keySeparator || nsSeparator === keySeparator && this.options.ns.indexOf(parts[0]) > -1) namespaces = parts.shift();\n key = parts.join(keySeparator);\n }\n return {\n key,\n namespaces: isString(namespaces) ? [namespaces] : namespaces\n };\n }\n translate(keys, o, lastKey) {\n let opt = typeof o === 'object' ? {\n ...o\n } : o;\n if (typeof opt !== 'object' && this.options.overloadTranslationOptionHandler) {\n opt = this.options.overloadTranslationOptionHandler(arguments);\n }\n if (typeof opt === 'object') opt = {\n ...opt\n };\n if (!opt) opt = {};\n if (keys == null) return '';\n if (typeof keys === 'function') keys = keysFromSelector(keys, {\n ...this.options,\n ...opt\n });\n if (!Array.isArray(keys)) keys = [String(keys)];\n const returnDetails = opt.returnDetails !== undefined ? opt.returnDetails : this.options.returnDetails;\n const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;\n const {\n key,\n namespaces\n } = this.extractFromKey(keys[keys.length - 1], opt);\n const namespace = namespaces[namespaces.length - 1];\n let nsSeparator = opt.nsSeparator !== undefined ? opt.nsSeparator : this.options.nsSeparator;\n if (nsSeparator === undefined) nsSeparator = ':';\n const lng = opt.lng || this.language;\n const appendNamespaceToCIMode = opt.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;\n if (lng?.toLowerCase() === 'cimode') {\n if (appendNamespaceToCIMode) {\n if (returnDetails) {\n return {\n res: `${namespace}${nsSeparator}${key}`,\n usedKey: key,\n exactUsedKey: key,\n usedLng: lng,\n usedNS: namespace,\n usedParams: this.getUsedParamsDetails(opt)\n };\n }\n return `${namespace}${nsSeparator}${key}`;\n }\n if (returnDetails) {\n return {\n res: key,\n usedKey: key,\n exactUsedKey: key,\n usedLng: lng,\n usedNS: namespace,\n usedParams: this.getUsedParamsDetails(opt)\n };\n }\n return key;\n }\n const resolved = this.resolve(keys, opt);\n let res = resolved?.res;\n const resUsedKey = resolved?.usedKey || key;\n const resExactUsedKey = resolved?.exactUsedKey || key;\n const noObject = ['[object Number]', '[object Function]', '[object RegExp]'];\n const joinArrays = opt.joinArrays !== undefined ? opt.joinArrays : this.options.joinArrays;\n const handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject;\n const needsPluralHandling = opt.count !== undefined && !isString(opt.count);\n const hasDefaultValue = Translator.hasDefaultValue(opt);\n const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, opt.count, opt) : '';\n const defaultValueSuffixOrdinalFallback = opt.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, opt.count, {\n ordinal: false\n }) : '';\n const needsZeroSuffixLookup = needsPluralHandling && !opt.ordinal && opt.count === 0;\n const defaultValue = needsZeroSuffixLookup && opt[`defaultValue${this.options.pluralSeparator}zero`] || opt[`defaultValue${defaultValueSuffix}`] || opt[`defaultValue${defaultValueSuffixOrdinalFallback}`] || opt.defaultValue;\n let resForObjHndl = res;\n if (handleAsObjectInI18nFormat && !res && hasDefaultValue) {\n resForObjHndl = defaultValue;\n }\n const handleAsObject = shouldHandleAsObject(resForObjHndl);\n const resType = Object.prototype.toString.apply(resForObjHndl);\n if (handleAsObjectInI18nFormat && resForObjHndl && handleAsObject && noObject.indexOf(resType) < 0 && !(isString(joinArrays) && Array.isArray(resForObjHndl))) {\n if (!opt.returnObjects && !this.options.returnObjects) {\n if (!this.options.returnedObjectHandler) {\n this.logger.warn('accessing an object - but returnObjects options is not enabled!');\n }\n const r = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, resForObjHndl, {\n ...opt,\n ns: namespaces\n }) : `key '${key} (${this.language})' returned an object instead of string.`;\n if (returnDetails) {\n resolved.res = r;\n resolved.usedParams = this.getUsedParamsDetails(opt);\n return resolved;\n }\n return r;\n }\n if (keySeparator) {\n const resTypeIsArray = Array.isArray(resForObjHndl);\n const copy = resTypeIsArray ? [] : {};\n const newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey;\n for (const m in resForObjHndl) {\n if (Object.prototype.hasOwnProperty.call(resForObjHndl, m)) {\n const deepKey = `${newKeyToUse}${keySeparator}${m}`;\n if (hasDefaultValue && !res) {\n copy[m] = this.translate(deepKey, {\n ...opt,\n defaultValue: shouldHandleAsObject(defaultValue) ? defaultValue[m] : undefined,\n ...{\n joinArrays: false,\n ns: namespaces\n }\n });\n } else {\n copy[m] = this.translate(deepKey, {\n ...opt,\n ...{\n joinArrays: false,\n ns: namespaces\n }\n });\n }\n if (copy[m] === deepKey) copy[m] = resForObjHndl[m];\n }\n }\n res = copy;\n }\n } else if (handleAsObjectInI18nFormat && isString(joinArrays) && Array.isArray(res)) {\n res = res.join(joinArrays);\n if (res) res = this.extendTranslation(res, keys, opt, lastKey);\n } else {\n let usedDefault = false;\n let usedKey = false;\n if (!this.isValidLookup(res) && hasDefaultValue) {\n usedDefault = true;\n res = defaultValue;\n }\n if (!this.isValidLookup(res)) {\n usedKey = true;\n res = key;\n }\n const missingKeyNoValueFallbackToKey = opt.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey;\n const resForMissing = missingKeyNoValueFallbackToKey && usedKey ? undefined : res;\n const updateMissing = hasDefaultValue && defaultValue !== res && this.options.updateMissing;\n if (usedKey || usedDefault || updateMissing) {\n this.logger.log(updateMissing ? 'updateKey' : 'missingKey', lng, namespace, key, updateMissing ? defaultValue : res);\n if (keySeparator) {\n const fk = this.resolve(key, {\n ...opt,\n keySeparator: false\n });\n if (fk && fk.res) this.logger.warn('Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.');\n }\n let lngs = [];\n const fallbackLngs = this.languageUtils.getFallbackCodes(this.options.fallbackLng, opt.lng || this.language);\n if (this.options.saveMissingTo === 'fallback' && fallbackLngs && fallbackLngs[0]) {\n for (let i = 0; i < fallbackLngs.length; i++) {\n lngs.push(fallbackLngs[i]);\n }\n } else if (this.options.saveMissingTo === 'all') {\n lngs = this.languageUtils.toResolveHierarchy(opt.lng || this.language);\n } else {\n lngs.push(opt.lng || this.language);\n }\n const send = (l, k, specificDefaultValue) => {\n const defaultForMissing = hasDefaultValue && specificDefaultValue !== res ? specificDefaultValue : resForMissing;\n if (this.options.missingKeyHandler) {\n this.options.missingKeyHandler(l, namespace, k, defaultForMissing, updateMissing, opt);\n } else if (this.backendConnector?.saveMissing) {\n this.backendConnector.saveMissing(l, namespace, k, defaultForMissing, updateMissing, opt);\n }\n this.emit('missingKey', l, namespace, k, res);\n };\n if (this.options.saveMissing) {\n if (this.options.saveMissingPlurals && needsPluralHandling) {\n lngs.forEach(language => {\n const suffixes = this.pluralResolver.getSuffixes(language, opt);\n if (needsZeroSuffixLookup && opt[`defaultValue${this.options.pluralSeparator}zero`] && suffixes.indexOf(`${this.options.pluralSeparator}zero`) < 0) {\n suffixes.push(`${this.options.pluralSeparator}zero`);\n }\n suffixes.forEach(suffix => {\n send([language], key + suffix, opt[`defaultValue${suffix}`] || defaultValue);\n });\n });\n } else {\n send(lngs, key, defaultValue);\n }\n }\n }\n res = this.extendTranslation(res, keys, opt, resolved, lastKey);\n if (usedKey && res === key && this.options.appendNamespaceToMissingKey) {\n res = `${namespace}${nsSeparator}${key}`;\n }\n if ((usedKey || usedDefault) && this.options.parseMissingKeyHandler) {\n res = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${namespace}${nsSeparator}${key}` : key, usedDefault ? res : undefined, opt);\n }\n }\n if (returnDetails) {\n resolved.res = res;\n resolved.usedParams = this.getUsedParamsDetails(opt);\n return resolved;\n }\n return res;\n }\n extendTranslation(res, key, opt, resolved, lastKey) {\n if (this.i18nFormat?.parse) {\n res = this.i18nFormat.parse(res, {\n ...this.options.interpolation.defaultVariables,\n ...opt\n }, opt.lng || this.language || resolved.usedLng, resolved.usedNS, resolved.usedKey, {\n resolved\n });\n } else if (!opt.skipInterpolation) {\n if (opt.interpolation) this.interpolator.init({\n ...opt,\n ...{\n interpolation: {\n ...this.options.interpolation,\n ...opt.interpolation\n }\n }\n });\n const skipOnVariables = isString(res) && (opt?.interpolation?.skipOnVariables !== undefined ? opt.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);\n let nestBef;\n if (skipOnVariables) {\n const nb = res.match(this.interpolator.nestingRegexp);\n nestBef = nb && nb.length;\n }\n let data = opt.replace && !isString(opt.replace) ? opt.replace : opt;\n if (this.options.interpolation.defaultVariables) data = {\n ...this.options.interpolation.defaultVariables,\n ...data\n };\n res = this.interpolator.interpolate(res, data, opt.lng || this.language || resolved.usedLng, opt);\n if (skipOnVariables) {\n const na = res.match(this.interpolator.nestingRegexp);\n const nestAft = na && na.length;\n if (nestBef < nestAft) opt.nest = false;\n }\n if (!opt.lng && resolved && resolved.res) opt.lng = this.language || resolved.usedLng;\n if (opt.nest !== false) res = this.interpolator.nest(res, (...args) => {\n if (lastKey?.[0] === args[0] && !opt.context) {\n this.logger.warn(`It seems you are nesting recursively key: ${args[0]} in key: ${key[0]}`);\n return null;\n }\n return this.translate(...args, key);\n }, opt);\n if (opt.interpolation) this.interpolator.reset();\n }\n const postProcess = opt.postProcess || this.options.postProcess;\n const postProcessorNames = isString(postProcess) ? [postProcess] : postProcess;\n if (res != null && postProcessorNames?.length && opt.applyPostProcessor !== false) {\n res = postProcessor.handle(postProcessorNames, res, key, this.options && this.options.postProcessPassResolved ? {\n i18nResolved: {\n ...resolved,\n usedParams: this.getUsedParamsDetails(opt)\n },\n ...opt\n } : opt, this);\n }\n return res;\n }\n resolve(keys, opt = {}) {\n let found;\n let usedKey;\n let exactUsedKey;\n let usedLng;\n let usedNS;\n if (isString(keys)) keys = [keys];\n keys.forEach(k => {\n if (this.isValidLookup(found)) return;\n const extracted = this.extractFromKey(k, opt);\n const key = extracted.key;\n usedKey = key;\n let namespaces = extracted.namespaces;\n if (this.options.fallbackNS) namespaces = namespaces.concat(this.options.fallbackNS);\n const needsPluralHandling = opt.count !== undefined && !isString(opt.count);\n const needsZeroSuffixLookup = needsPluralHandling && !opt.ordinal && opt.count === 0;\n const needsContextHandling = opt.context !== undefined && (isString(opt.context) || typeof opt.context === 'number') && opt.context !== '';\n const codes = opt.lngs ? opt.lngs : this.languageUtils.toResolveHierarchy(opt.lng || this.language, opt.fallbackLng);\n namespaces.forEach(ns => {\n if (this.isValidLookup(found)) return;\n usedNS = ns;\n if (!checkedLoadedFor[`${codes[0]}-${ns}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(usedNS)) {\n checkedLoadedFor[`${codes[0]}-${ns}`] = true;\n this.logger.warn(`key \"${usedKey}\" for languages \"${codes.join(', ')}\" won't get resolved as namespace \"${usedNS}\" was not yet loaded`, 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!');\n }\n codes.forEach(code => {\n if (this.isValidLookup(found)) return;\n usedLng = code;\n const finalKeys = [key];\n if (this.i18nFormat?.addLookupKeys) {\n this.i18nFormat.addLookupKeys(finalKeys, key, code, ns, opt);\n } else {\n let pluralSuffix;\n if (needsPluralHandling) pluralSuffix = this.pluralResolver.getSuffix(code, opt.count, opt);\n const zeroSuffix = `${this.options.pluralSeparator}zero`;\n const ordinalPrefix = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;\n if (needsPluralHandling) {\n if (opt.ordinal && pluralSuffix.indexOf(ordinalPrefix) === 0) {\n finalKeys.push(key + pluralSuffix.replace(ordinalPrefix, this.options.pluralSeparator));\n }\n finalKeys.push(key + pluralSuffix);\n if (needsZeroSuffixLookup) {\n finalKeys.push(key + zeroSuffix);\n }\n }\n if (needsContextHandling) {\n const contextKey = `${key}${this.options.contextSeparator || '_'}${opt.context}`;\n finalKeys.push(contextKey);\n if (needsPluralHandling) {\n if (opt.ordinal && pluralSuffix.indexOf(ordinalPrefix) === 0) {\n finalKeys.push(contextKey + pluralSuffix.replace(ordinalPrefix, this.options.pluralSeparator));\n }\n finalKeys.push(contextKey + pluralSuffix);\n if (needsZeroSuffixLookup) {\n finalKeys.push(contextKey + zeroSuffix);\n }\n }\n }\n }\n let possibleKey;\n while (possibleKey = finalKeys.pop()) {\n if (!this.isValidLookup(found)) {\n exactUsedKey = possibleKey;\n found = this.getResource(code, ns, possibleKey, opt);\n }\n }\n });\n });\n });\n return {\n res: found,\n usedKey,\n exactUsedKey,\n usedLng,\n usedNS\n };\n }\n isValidLookup(res) {\n return res !== undefined && !(!this.options.returnNull && res === null) && !(!this.options.returnEmptyString && res === '');\n }\n getResource(code, ns, key, options = {}) {\n if (this.i18nFormat?.getResource) return this.i18nFormat.getResource(code, ns, key, options);\n return this.resourceStore.getResource(code, ns, key, options);\n }\n getUsedParamsDetails(options = {}) {\n const optionsKeys = ['defaultValue', 'ordinal', 'context', 'replace', 'lng', 'lngs', 'fallbackLng', 'ns', 'keySeparator', 'nsSeparator', 'returnObjects', 'returnDetails', 'joinArrays', 'postProcess', 'interpolation'];\n const useOptionsReplaceForData = options.replace && !isString(options.replace);\n let data = useOptionsReplaceForData ? options.replace : options;\n if (useOptionsReplaceForData && typeof options.count !== 'undefined') {\n data.count = options.count;\n }\n if (this.options.interpolation.defaultVariables) {\n data = {\n ...this.options.interpolation.defaultVariables,\n ...data\n };\n }\n if (!useOptionsReplaceForData) {\n data = {\n ...data\n };\n for (const key of optionsKeys) {\n delete data[key];\n }\n }\n return data;\n }\n static hasDefaultValue(options) {\n const prefix = 'defaultValue';\n for (const option in options) {\n if (Object.prototype.hasOwnProperty.call(options, option) && prefix === option.substring(0, prefix.length) && undefined !== options[option]) {\n return true;\n }\n }\n return false;\n }\n}\n\nclass LanguageUtil {\n constructor(options) {\n this.options = options;\n this.supportedLngs = this.options.supportedLngs || false;\n this.logger = baseLogger.create('languageUtils');\n }\n getScriptPartFromCode(code) {\n code = getCleanedCode(code);\n if (!code || code.indexOf('-') < 0) return null;\n const p = code.split('-');\n if (p.length === 2) return null;\n p.pop();\n if (p[p.length - 1].toLowerCase() === 'x') return null;\n return this.formatLanguageCode(p.join('-'));\n }\n getLanguagePartFromCode(code) {\n code = getCleanedCode(code);\n if (!code || code.indexOf('-') < 0) return code;\n const p = code.split('-');\n return this.formatLanguageCode(p[0]);\n }\n formatLanguageCode(code) {\n if (isString(code) && code.indexOf('-') > -1) {\n let formattedCode;\n try {\n formattedCode = Intl.getCanonicalLocales(code)[0];\n } catch (e) {}\n if (formattedCode && this.options.lowerCaseLng) {\n formattedCode = formattedCode.toLowerCase();\n }\n if (formattedCode) return formattedCode;\n if (this.options.lowerCaseLng) {\n return code.toLowerCase();\n }\n return code;\n }\n return this.options.cleanCode || this.options.lowerCaseLng ? code.toLowerCase() : code;\n }\n isSupportedCode(code) {\n if (this.options.load === 'languageOnly' || this.options.nonExplicitSupportedLngs) {\n code = this.getLanguagePartFromCode(code);\n }\n return !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(code) > -1;\n }\n getBestMatchFromCodes(codes) {\n if (!codes) return null;\n let found;\n codes.forEach(code => {\n if (found) return;\n const cleanedLng = this.formatLanguageCode(code);\n if (!this.options.supportedLngs || this.isSupportedCode(cleanedLng)) found = cleanedLng;\n });\n if (!found && this.options.supportedLngs) {\n codes.forEach(code => {\n if (found) return;\n const lngScOnly = this.getScriptPartFromCode(code);\n if (this.isSupportedCode(lngScOnly)) return found = lngScOnly;\n const lngOnly = this.getLanguagePartFromCode(code);\n if (this.isSupportedCode(lngOnly)) return found = lngOnly;\n found = this.options.supportedLngs.find(supportedLng => {\n if (supportedLng === lngOnly) return supportedLng;\n if (supportedLng.indexOf('-') < 0 && lngOnly.indexOf('-') < 0) return;\n if (supportedLng.indexOf('-') > 0 && lngOnly.indexOf('-') < 0 && supportedLng.substring(0, supportedLng.indexOf('-')) === lngOnly) return supportedLng;\n if (supportedLng.indexOf(lngOnly) === 0 && lngOnly.length > 1) return supportedLng;\n });\n });\n }\n if (!found) found = this.getFallbackCodes(this.options.fallbackLng)[0];\n return found;\n }\n getFallbackCodes(fallbacks, code) {\n if (!fallbacks) return [];\n if (typeof fallbacks === 'function') fallbacks = fallbacks(code);\n if (isString(fallbacks)) fallbacks = [fallbacks];\n if (Array.isArray(fallbacks)) return fallbacks;\n if (!code) return fallbacks.default || [];\n let found = fallbacks[code];\n if (!found) found = fallbacks[this.getScriptPartFromCode(code)];\n if (!found) found = fallbacks[this.formatLanguageCode(code)];\n if (!found) found = fallbacks[this.getLanguagePartFromCode(code)];\n if (!found) found = fallbacks.default;\n return found || [];\n }\n toResolveHierarchy(code, fallbackCode) {\n const fallbackCodes = this.getFallbackCodes((fallbackCode === false ? [] : fallbackCode) || this.options.fallbackLng || [], code);\n const codes = [];\n const addCode = c => {\n if (!c) return;\n if (this.isSupportedCode(c)) {\n codes.push(c);\n } else {\n this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`);\n }\n };\n if (isString(code) && (code.indexOf('-') > -1 || code.indexOf('_') > -1)) {\n if (this.options.load !== 'languageOnly') addCode(this.formatLanguageCode(code));\n if (this.options.load !== 'languageOnly' && this.options.load !== 'currentOnly') addCode(this.getScriptPartFromCode(code));\n if (this.options.load !== 'currentOnly') addCode(this.getLanguagePartFromCode(code));\n } else if (isString(code)) {\n addCode(this.formatLanguageCode(code));\n }\n fallbackCodes.forEach(fc => {\n if (codes.indexOf(fc) < 0) addCode(this.formatLanguageCode(fc));\n });\n return codes;\n }\n}\n\nconst suffixesOrder = {\n zero: 0,\n one: 1,\n two: 2,\n few: 3,\n many: 4,\n other: 5\n};\nconst dummyRule = {\n select: count => count === 1 ? 'one' : 'other',\n resolvedOptions: () => ({\n pluralCategories: ['one', 'other']\n })\n};\nclass PluralResolver {\n constructor(languageUtils, options = {}) {\n this.languageUtils = languageUtils;\n this.options = options;\n this.logger = baseLogger.create('pluralResolver');\n this.pluralRulesCache = {};\n }\n addRule(lng, obj) {\n this.rules[lng] = obj;\n }\n clearCache() {\n this.pluralRulesCache = {};\n }\n getRule(code, options = {}) {\n const cleanedCode = getCleanedCode(code === 'dev' ? 'en' : code);\n const type = options.ordinal ? 'ordinal' : 'cardinal';\n const cacheKey = JSON.stringify({\n cleanedCode,\n type\n });\n if (cacheKey in this.pluralRulesCache) {\n return this.pluralRulesCache[cacheKey];\n }\n let rule;\n try {\n rule = new Intl.PluralRules(cleanedCode, {\n type\n });\n } catch (err) {\n if (!Intl) {\n this.logger.error('No Intl support, please use an Intl polyfill!');\n return dummyRule;\n }\n if (!code.match(/-|_/)) return dummyRule;\n const lngPart = this.languageUtils.getLanguagePartFromCode(code);\n rule = this.getRule(lngPart, options);\n }\n this.pluralRulesCache[cacheKey] = rule;\n return rule;\n }\n needsPlural(code, options = {}) {\n let rule = this.getRule(code, options);\n if (!rule) rule = this.getRule('dev', options);\n return rule?.resolvedOptions().pluralCategories.length > 1;\n }\n getPluralFormsOfKey(code, key, options = {}) {\n return this.getSuffixes(code, options).map(suffix => `${key}${suffix}`);\n }\n getSuffixes(code, options = {}) {\n let rule = this.getRule(code, options);\n if (!rule) rule = this.getRule('dev', options);\n if (!rule) return [];\n return rule.resolvedOptions().pluralCategories.sort((pluralCategory1, pluralCategory2) => suffixesOrder[pluralCategory1] - suffixesOrder[pluralCategory2]).map(pluralCategory => `${this.options.prepend}${options.ordinal ? `ordinal${this.options.prepend}` : ''}${pluralCategory}`);\n }\n getSuffix(code, count, options = {}) {\n const rule = this.getRule(code, options);\n if (rule) {\n return `${this.options.prepend}${options.ordinal ? `ordinal${this.options.prepend}` : ''}${rule.select(count)}`;\n }\n this.logger.warn(`no plural rule found for: ${code}`);\n return this.getSuffix('dev', count, options);\n }\n}\n\nconst deepFindWithDefaults = (data, defaultData, key, keySeparator = '.', ignoreJSONStructure = true) => {\n let path = getPathWithDefaults(data, defaultData, key);\n if (!path && ignoreJSONStructure && isString(key)) {\n path = deepFind(data, key, keySeparator);\n if (path === undefined) path = deepFind(defaultData, key, keySeparator);\n }\n return path;\n};\nconst regexSafe = val => val.replace(/\\$/g, '$$$$');\nclass Interpolator {\n constructor(options = {}) {\n this.logger = baseLogger.create('interpolator');\n this.options = options;\n this.format = options?.interpolation?.format || (value => value);\n this.init(options);\n }\n init(options = {}) {\n if (!options.interpolation) options.interpolation = {\n escapeValue: true\n };\n const {\n escape: escape$1,\n escapeValue,\n useRawValueToEscape,\n prefix,\n prefixEscaped,\n suffix,\n suffixEscaped,\n formatSeparator,\n unescapeSuffix,\n unescapePrefix,\n nestingPrefix,\n nestingPrefixEscaped,\n nestingSuffix,\n nestingSuffixEscaped,\n nestingOptionsSeparator,\n maxReplaces,\n alwaysFormat\n } = options.interpolation;\n this.escape = escape$1 !== undefined ? escape$1 : escape;\n this.escapeValue = escapeValue !== undefined ? escapeValue : true;\n this.useRawValueToEscape = useRawValueToEscape !== undefined ? useRawValueToEscape : false;\n this.prefix = prefix ? regexEscape(prefix) : prefixEscaped || '{{';\n this.suffix = suffix ? regexEscape(suffix) : suffixEscaped || '}}';\n this.formatSeparator = formatSeparator || ',';\n this.unescapePrefix = unescapeSuffix ? '' : unescapePrefix || '-';\n this.unescapeSuffix = this.unescapePrefix ? '' : unescapeSuffix || '';\n this.nestingPrefix = nestingPrefix ? regexEscape(nestingPrefix) : nestingPrefixEscaped || regexEscape('$t(');\n this.nestingSuffix = nestingSuffix ? regexEscape(nestingSuffix) : nestingSuffixEscaped || regexEscape(')');\n this.nestingOptionsSeparator = nestingOptionsSeparator || ',';\n this.maxReplaces = maxReplaces || 1000;\n this.alwaysFormat = alwaysFormat !== undefined ? alwaysFormat : false;\n this.resetRegExp();\n }\n reset() {\n if (this.options) this.init(this.options);\n }\n resetRegExp() {\n const getOrResetRegExp = (existingRegExp, pattern) => {\n if (existingRegExp?.source === pattern) {\n existingRegExp.lastIndex = 0;\n return existingRegExp;\n }\n return new RegExp(pattern, 'g');\n };\n this.regexp = getOrResetRegExp(this.regexp, `${this.prefix}(.+?)${this.suffix}`);\n this.regexpUnescape = getOrResetRegExp(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`);\n this.nestingRegexp = getOrResetRegExp(this.nestingRegexp, `${this.nestingPrefix}((?:[^()\"']+|\"[^\"]*\"|'[^']*'|\\\\((?:[^()]|\"[^\"]*\"|'[^']*')*\\\\))*?)${this.nestingSuffix}`);\n }\n interpolate(str, data, lng, options) {\n let match;\n let value;\n let replaces;\n const defaultData = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};\n const handleFormat = key => {\n if (key.indexOf(this.formatSeparator) < 0) {\n const path = deepFindWithDefaults(data, defaultData, key, this.options.keySeparator, this.options.ignoreJSONStructure);\n return this.alwaysFormat ? this.format(path, undefined, lng, {\n ...options,\n ...data,\n interpolationkey: key\n }) : path;\n }\n const p = key.split(this.formatSeparator);\n const k = p.shift().trim();\n const f = p.join(this.formatSeparator).trim();\n return this.format(deepFindWithDefaults(data, defaultData, k, this.options.keySeparator, this.options.ignoreJSONStructure), f, lng, {\n ...options,\n ...data,\n interpolationkey: k\n });\n };\n this.resetRegExp();\n const missingInterpolationHandler = options?.missingInterpolationHandler || this.options.missingInterpolationHandler;\n const skipOnVariables = options?.interpolation?.skipOnVariables !== undefined ? options.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;\n const todos = [{\n regex: this.regexpUnescape,\n safeValue: val => regexSafe(val)\n }, {\n regex: this.regexp,\n safeValue: val => this.escapeValue ? regexSafe(this.escape(val)) : regexSafe(val)\n }];\n todos.forEach(todo => {\n replaces = 0;\n while (match = todo.regex.exec(str)) {\n const matchedVar = match[1].trim();\n value = handleFormat(matchedVar);\n if (value === undefined) {\n if (typeof missingInterpolationHandler === 'function') {\n const temp = missingInterpolationHandler(str, match, options);\n value = isString(temp) ? temp : '';\n } else if (options && Object.prototype.hasOwnProperty.call(options, matchedVar)) {\n value = '';\n } else if (skipOnVariables) {\n value = match[0];\n continue;\n } else {\n this.logger.warn(`missed to pass in variable ${matchedVar} for interpolating ${str}`);\n value = '';\n }\n } else if (!isString(value) && !this.useRawValueToEscape) {\n value = makeString(value);\n }\n const safeValue = todo.safeValue(value);\n str = str.replace(match[0], safeValue);\n if (skipOnVariables) {\n todo.regex.lastIndex += value.length;\n todo.regex.lastIndex -= match[0].length;\n } else {\n todo.regex.lastIndex = 0;\n }\n replaces++;\n if (replaces >= this.maxReplaces) {\n break;\n }\n }\n });\n return str;\n }\n nest(str, fc, options = {}) {\n let match;\n let value;\n let clonedOptions;\n const handleHasOptions = (key, inheritedOptions) => {\n const sep = this.nestingOptionsSeparator;\n if (key.indexOf(sep) < 0) return key;\n const c = key.split(new RegExp(`${sep}[ ]*{`));\n let optionsString = `{${c[1]}`;\n key = c[0];\n optionsString = this.interpolate(optionsString, clonedOptions);\n const matchedSingleQuotes = optionsString.match(/'/g);\n const matchedDoubleQuotes = optionsString.match(/\"/g);\n if ((matchedSingleQuotes?.length ?? 0) % 2 === 0 && !matchedDoubleQuotes || matchedDoubleQuotes.length % 2 !== 0) {\n optionsString = optionsString.replace(/'/g, '\"');\n }\n try {\n clonedOptions = JSON.parse(optionsString);\n if (inheritedOptions) clonedOptions = {\n ...inheritedOptions,\n ...clonedOptions\n };\n } catch (e) {\n this.logger.warn(`failed parsing options string in nesting for key ${key}`, e);\n return `${key}${sep}${optionsString}`;\n }\n if (clonedOptions.defaultValue && clonedOptions.defaultValue.indexOf(this.prefix) > -1) delete clonedOptions.defaultValue;\n return key;\n };\n while (match = this.nestingRegexp.exec(str)) {\n let formatters = [];\n clonedOptions = {\n ...options\n };\n clonedOptions = clonedOptions.replace && !isString(clonedOptions.replace) ? clonedOptions.replace : clonedOptions;\n clonedOptions.applyPostProcessor = false;\n delete clonedOptions.defaultValue;\n const keyEndIndex = /{.*}/.test(match[1]) ? match[1].lastIndexOf('}') + 1 : match[1].indexOf(this.formatSeparator);\n if (keyEndIndex !== -1) {\n formatters = match[1].slice(keyEndIndex).split(this.formatSeparator).map(elem => elem.trim()).filter(Boolean);\n match[1] = match[1].slice(0, keyEndIndex);\n }\n value = fc(handleHasOptions.call(this, match[1].trim(), clonedOptions), clonedOptions);\n if (value && match[0] === str && !isString(value)) return value;\n if (!isString(value)) value = makeString(value);\n if (!value) {\n this.logger.warn(`missed to resolve ${match[1]} for nesting ${str}`);\n value = '';\n }\n if (formatters.length) {\n value = formatters.reduce((v, f) => this.format(v, f, options.lng, {\n ...options,\n interpolationkey: match[1].trim()\n }), value.trim());\n }\n str = str.replace(match[0], value);\n this.regexp.lastIndex = 0;\n }\n return str;\n }\n}\n\nconst parseFormatStr = formatStr => {\n let formatName = formatStr.toLowerCase().trim();\n const formatOptions = {};\n if (formatStr.indexOf('(') > -1) {\n const p = formatStr.split('(');\n formatName = p[0].toLowerCase().trim();\n const optStr = p[1].substring(0, p[1].length - 1);\n if (formatName === 'currency' && optStr.indexOf(':') < 0) {\n if (!formatOptions.currency) formatOptions.currency = optStr.trim();\n } else if (formatName === 'relativetime' && optStr.indexOf(':') < 0) {\n if (!formatOptions.range) formatOptions.range = optStr.trim();\n } else {\n const opts = optStr.split(';');\n opts.forEach(opt => {\n if (opt) {\n const [key, ...rest] = opt.split(':');\n const val = rest.join(':').trim().replace(/^'+|'+$/g, '');\n const trimmedKey = key.trim();\n if (!formatOptions[trimmedKey]) formatOptions[trimmedKey] = val;\n if (val === 'false') formatOptions[trimmedKey] = false;\n if (val === 'true') formatOptions[trimmedKey] = true;\n if (!isNaN(val)) formatOptions[trimmedKey] = parseInt(val, 10);\n }\n });\n }\n }\n return {\n formatName,\n formatOptions\n };\n};\nconst createCachedFormatter = fn => {\n const cache = {};\n return (v, l, o) => {\n let optForCache = o;\n if (o && o.interpolationkey && o.formatParams && o.formatParams[o.interpolationkey] && o[o.interpolationkey]) {\n optForCache = {\n ...optForCache,\n [o.interpolationkey]: undefined\n };\n }\n const key = l + JSON.stringify(optForCache);\n let frm = cache[key];\n if (!frm) {\n frm = fn(getCleanedCode(l), o);\n cache[key] = frm;\n }\n return frm(v);\n };\n};\nconst createNonCachedFormatter = fn => (v, l, o) => fn(getCleanedCode(l), o)(v);\nclass Formatter {\n constructor(options = {}) {\n this.logger = baseLogger.create('formatter');\n this.options = options;\n this.init(options);\n }\n init(services, options = {\n interpolation: {}\n }) {\n this.formatSeparator = options.interpolation.formatSeparator || ',';\n const cf = options.cacheInBuiltFormats ? createCachedFormatter : createNonCachedFormatter;\n this.formats = {\n number: cf((lng, opt) => {\n const formatter = new Intl.NumberFormat(lng, {\n ...opt\n });\n return val => formatter.format(val);\n }),\n currency: cf((lng, opt) => {\n const formatter = new Intl.NumberFormat(lng, {\n ...opt,\n style: 'currency'\n });\n return val => formatter.format(val);\n }),\n datetime: cf((lng, opt) => {\n const formatter = new Intl.DateTimeFormat(lng, {\n ...opt\n });\n return val => formatter.format(val);\n }),\n relativetime: cf((lng, opt) => {\n const formatter = new Intl.RelativeTimeFormat(lng, {\n ...opt\n });\n return val => formatter.format(val, opt.range || 'day');\n }),\n list: cf((lng, opt) => {\n const formatter = new Intl.ListFormat(lng, {\n ...opt\n });\n return val => formatter.format(val);\n })\n };\n }\n add(name, fc) {\n this.formats[name.toLowerCase().trim()] = fc;\n }\n addCached(name, fc) {\n this.formats[name.toLowerCase().trim()] = createCachedFormatter(fc);\n }\n format(value, format, lng, options = {}) {\n const formats = format.split(this.formatSeparator);\n if (formats.length > 1 && formats[0].indexOf('(') > 1 && formats[0].indexOf(')') < 0 && formats.find(f => f.indexOf(')') > -1)) {\n const lastIndex = formats.findIndex(f => f.indexOf(')') > -1);\n formats[0] = [formats[0], ...formats.splice(1, lastIndex)].join(this.formatSeparator);\n }\n const result = formats.reduce((mem, f) => {\n const {\n formatName,\n formatOptions\n } = parseFormatStr(f);\n if (this.formats[formatName]) {\n let formatted = mem;\n try {\n const valOptions = options?.formatParams?.[options.interpolationkey] || {};\n const l = valOptions.locale || valOptions.lng || options.locale || options.lng || lng;\n formatted = this.formats[formatName](mem, l, {\n ...formatOptions,\n ...options,\n ...valOptions\n });\n } catch (error) {\n this.logger.warn(error);\n }\n return formatted;\n } else {\n this.logger.warn(`there was no format function for ${formatName}`);\n }\n return mem;\n }, value);\n return result;\n }\n}\n\nconst removePending = (q, name) => {\n if (q.pending[name] !== undefined) {\n delete q.pending[name];\n q.pendingCount--;\n }\n};\nclass Connector extends EventEmitter {\n constructor(backend, store, services, options = {}) {\n super();\n this.backend = backend;\n this.store = store;\n this.services = services;\n this.languageUtils = services.languageUtils;\n this.options = options;\n this.logger = baseLogger.create('backendConnector');\n this.waitingReads = [];\n this.maxParallelReads = options.maxParallelReads || 10;\n this.readingCalls = 0;\n this.maxRetries = options.maxRetries >= 0 ? options.maxRetries : 5;\n this.retryTimeout = options.retryTimeout >= 1 ? options.retryTimeout : 350;\n this.state = {};\n this.queue = [];\n this.backend?.init?.(services, options.backend, options);\n }\n queueLoad(languages, namespaces, options, callback) {\n const toLoad = {};\n const pending = {};\n const toLoadLanguages = {};\n const toLoadNamespaces = {};\n languages.forEach(lng => {\n let hasAllNamespaces = true;\n namespaces.forEach(ns => {\n const name = `${lng}|${ns}`;\n if (!options.reload && this.store.hasResourceBundle(lng, ns)) {\n this.state[name] = 2;\n } else if (this.state[name] < 0) ; else if (this.state[name] === 1) {\n if (pending[name] === undefined) pending[name] = true;\n } else {\n this.state[name] = 1;\n hasAllNamespaces = false;\n if (pending[name] === undefined) pending[name] = true;\n if (toLoad[name] === undefined) toLoad[name] = true;\n if (toLoadNamespaces[ns] === undefined) toLoadNamespaces[ns] = true;\n }\n });\n if (!hasAllNamespaces) toLoadLanguages[lng] = true;\n });\n if (Object.keys(toLoad).length || Object.keys(pending).length) {\n this.queue.push({\n pending,\n pendingCount: Object.keys(pending).length,\n loaded: {},\n errors: [],\n callback\n });\n }\n return {\n toLoad: Object.keys(toLoad),\n pending: Object.keys(pending),\n toLoadLanguages: Object.keys(toLoadLanguages),\n toLoadNamespaces: Object.keys(toLoadNamespaces)\n };\n }\n loaded(name, err, data) {\n const s = name.split('|');\n const lng = s[0];\n const ns = s[1];\n if (err) this.emit('failedLoading', lng, ns, err);\n if (!err && data) {\n this.store.addResourceBundle(lng, ns, data, undefined, undefined, {\n skipCopy: true\n });\n }\n this.state[name] = err ? -1 : 2;\n if (err && data) this.state[name] = 0;\n const loaded = {};\n this.queue.forEach(q => {\n pushPath(q.loaded, [lng], ns);\n removePending(q, name);\n if (err) q.errors.push(err);\n if (q.pendingCount === 0 && !q.done) {\n Object.keys(q.loaded).forEach(l => {\n if (!loaded[l]) loaded[l] = {};\n const loadedKeys = q.loaded[l];\n if (loadedKeys.length) {\n loadedKeys.forEach(n => {\n if (loaded[l][n] === undefined) loaded[l][n] = true;\n });\n }\n });\n q.done = true;\n if (q.errors.length) {\n q.callback(q.errors);\n } else {\n q.callback();\n }\n }\n });\n this.emit('loaded', loaded);\n this.queue = this.queue.filter(q => !q.done);\n }\n read(lng, ns, fcName, tried = 0, wait = this.retryTimeout, callback) {\n if (!lng.length) return callback(null, {});\n if (this.readingCalls >= this.maxParallelReads) {\n this.waitingReads.push({\n lng,\n ns,\n fcName,\n tried,\n wait,\n callback\n });\n return;\n }\n this.readingCalls++;\n const resolver = (err, data) => {\n this.readingCalls--;\n if (this.waitingReads.length > 0) {\n const next = this.waitingReads.shift();\n this.read(next.lng, next.ns, next.fcName, next.tried, next.wait, next.callback);\n }\n if (err && data && tried < this.maxRetries) {\n setTimeout(() => {\n this.read.call(this, lng, ns, fcName, tried + 1, wait * 2, callback);\n }, wait);\n return;\n }\n callback(err, data);\n };\n const fc = this.backend[fcName].bind(this.backend);\n if (fc.length === 2) {\n try {\n const r = fc(lng, ns);\n if (r && typeof r.then === 'function') {\n r.then(data => resolver(null, data)).catch(resolver);\n } else {\n resolver(null, r);\n }\n } catch (err) {\n resolver(err);\n }\n return;\n }\n return fc(lng, ns, resolver);\n }\n prepareLoading(languages, namespaces, options = {}, callback) {\n if (!this.backend) {\n this.logger.warn('No backend was added via i18next.use. Will not load resources.');\n return callback && callback();\n }\n if (isString(languages)) languages = this.languageUtils.toResolveHierarchy(languages);\n if (isString(namespaces)) namespaces = [namespaces];\n const toLoad = this.queueLoad(languages, namespaces, options, callback);\n if (!toLoad.toLoad.length) {\n if (!toLoad.pending.length) callback();\n return null;\n }\n toLoad.toLoad.forEach(name => {\n this.loadOne(name);\n });\n }\n load(languages, namespaces, callback) {\n this.prepareLoading(languages, namespaces, {}, callback);\n }\n reload(languages, namespaces, callback) {\n this.prepareLoading(languages, namespaces, {\n reload: true\n }, callback);\n }\n loadOne(name, prefix = '') {\n const s = name.split('|');\n const lng = s[0];\n const ns = s[1];\n this.read(lng, ns, 'read', undefined, undefined, (err, data) => {\n if (err) this.logger.warn(`${prefix}loading namespace ${ns} for language ${lng} failed`, err);\n if (!err && data) this.logger.log(`${prefix}loaded namespace ${ns} for language ${lng}`, data);\n this.loaded(name, err, data);\n });\n }\n saveMissing(languages, namespace, key, fallbackValue, isUpdate, options = {}, clb = () => {}) {\n if (this.services?.utils?.hasLoadedNamespace && !this.services?.utils?.hasLoadedNamespace(namespace)) {\n this.logger.warn(`did not save key \"${key}\" as the namespace \"${namespace}\" was not yet loaded`, 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!');\n return;\n }\n if (key === undefined || key === null || key === '') return;\n if (this.backend?.create) {\n const opts = {\n ...options,\n isUpdate\n };\n const fc = this.backend.create.bind(this.backend);\n if (fc.length < 6) {\n try {\n let r;\n if (fc.length === 5) {\n r = fc(languages, namespace, key, fallbackValue, opts);\n } else {\n r = fc(languages, namespace, key, fallbackValue);\n }\n if (r && typeof r.then === 'function') {\n r.then(data => clb(null, data)).catch(clb);\n } else {\n clb(null, r);\n }\n } catch (err) {\n clb(err);\n }\n } else {\n fc(languages, namespace, key, fallbackValue, clb, opts);\n }\n }\n if (!languages || !languages[0]) return;\n this.store.addResource(languages[0], namespace, key, fallbackValue);\n }\n}\n\nconst get = () => ({\n debug: false,\n initAsync: true,\n ns: ['translation'],\n defaultNS: ['translation'],\n fallbackLng: ['dev'],\n fallbackNS: false,\n supportedLngs: false,\n nonExplicitSupportedLngs: false,\n load: 'all',\n preload: false,\n simplifyPluralSuffix: true,\n keySeparator: '.',\n nsSeparator: ':',\n pluralSeparator: '_',\n contextSeparator: '_',\n partialBundledLanguages: false,\n saveMissing: false,\n updateMissing: false,\n saveMissingTo: 'fallback',\n saveMissingPlurals: true,\n missingKeyHandler: false,\n missingInterpolationHandler: false,\n postProcess: false,\n postProcessPassResolved: false,\n returnNull: false,\n returnEmptyString: true,\n returnObjects: false,\n joinArrays: false,\n returnedObjectHandler: false,\n parseMissingKeyHandler: false,\n appendNamespaceToMissingKey: false,\n appendNamespaceToCIMode: false,\n overloadTranslationOptionHandler: args => {\n let ret = {};\n if (typeof args[1] === 'object') ret = args[1];\n if (isString(args[1])) ret.defaultValue = args[1];\n if (isString(args[2])) ret.tDescription = args[2];\n if (typeof args[2] === 'object' || typeof args[3] === 'object') {\n const options = args[3] || args[2];\n Object.keys(options).forEach(key => {\n ret[key] = options[key];\n });\n }\n return ret;\n },\n interpolation: {\n escapeValue: true,\n format: value => value,\n prefix: '{{',\n suffix: '}}',\n formatSeparator: ',',\n unescapePrefix: '-',\n nestingPrefix: '$t(',\n nestingSuffix: ')',\n nestingOptionsSeparator: ',',\n maxReplaces: 1000,\n skipOnVariables: true\n },\n cacheInBuiltFormats: true\n});\nconst transformOptions = options => {\n if (isString(options.ns)) options.ns = [options.ns];\n if (isString(options.fallbackLng)) options.fallbackLng = [options.fallbackLng];\n if (isString(options.fallbackNS)) options.fallbackNS = [options.fallbackNS];\n if (options.supportedLngs?.indexOf?.('cimode') < 0) {\n options.supportedLngs = options.supportedLngs.concat(['cimode']);\n }\n if (typeof options.initImmediate === 'boolean') options.initAsync = options.initImmediate;\n return options;\n};\n\nconst noop = () => {};\nconst bindMemberFunctions = inst => {\n const mems = Object.getOwnPropertyNames(Object.getPrototypeOf(inst));\n mems.forEach(mem => {\n if (typeof inst[mem] === 'function') {\n inst[mem] = inst[mem].bind(inst);\n }\n });\n};\nclass I18n extends EventEmitter {\n constructor(options = {}, callback) {\n super();\n this.options = transformOptions(options);\n this.services = {};\n this.logger = baseLogger;\n this.modules = {\n external: []\n };\n bindMemberFunctions(this);\n if (callback && !this.isInitialized && !options.isClone) {\n if (!this.options.initAsync) {\n this.init(options, callback);\n return this;\n }\n setTimeout(() => {\n this.init(options, callback);\n }, 0);\n }\n }\n init(options = {}, callback) {\n this.isInitializing = true;\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n if (options.defaultNS == null && options.ns) {\n if (isString(options.ns)) {\n options.defaultNS = options.ns;\n } else if (options.ns.indexOf('translation') < 0) {\n options.defaultNS = options.ns[0];\n }\n }\n const defOpts = get();\n this.options = {\n ...defOpts,\n ...this.options,\n ...transformOptions(options)\n };\n this.options.interpolation = {\n ...defOpts.interpolation,\n ...this.options.interpolation\n };\n if (options.keySeparator !== undefined) {\n this.options.userDefinedKeySeparator = options.keySeparator;\n }\n if (options.nsSeparator !== undefined) {\n this.options.userDefinedNsSeparator = options.nsSeparator;\n }\n const createClassOnDemand = ClassOrObject => {\n if (!ClassOrObject) return null;\n if (typeof ClassOrObject === 'function') return new ClassOrObject();\n return ClassOrObject;\n };\n if (!this.options.isClone) {\n if (this.modules.logger) {\n baseLogger.init(createClassOnDemand(this.modules.logger), this.options);\n } else {\n baseLogger.init(null, this.options);\n }\n let formatter;\n if (this.modules.formatter) {\n formatter = this.modules.formatter;\n } else {\n formatter = Formatter;\n }\n const lu = new LanguageUtil(this.options);\n this.store = new ResourceStore(this.options.resources, this.options);\n const s = this.services;\n s.logger = baseLogger;\n s.resourceStore = this.store;\n s.languageUtils = lu;\n s.pluralResolver = new PluralResolver(lu, {\n prepend: this.options.pluralSeparator,\n simplifyPluralSuffix: this.options.simplifyPluralSuffix\n });\n const usingLegacyFormatFunction = this.options.interpolation.format && this.options.interpolation.format !== defOpts.interpolation.format;\n if (usingLegacyFormatFunction) {\n this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`);\n }\n if (formatter && (!this.options.interpolation.format || this.options.interpolation.format === defOpts.interpolation.format)) {\n s.formatter = createClassOnDemand(formatter);\n if (s.formatter.init) s.formatter.init(s, this.options);\n this.options.interpolation.format = s.formatter.format.bind(s.formatter);\n }\n s.interpolator = new Interpolator(this.options);\n s.utils = {\n hasLoadedNamespace: this.hasLoadedNamespace.bind(this)\n };\n s.backendConnector = new Connector(createClassOnDemand(this.modules.backend), s.resourceStore, s, this.options);\n s.backendConnector.on('*', (event, ...args) => {\n this.emit(event, ...args);\n });\n if (this.modules.languageDetector) {\n s.languageDetector = createClassOnDemand(this.modules.languageDetector);\n if (s.languageDetector.init) s.languageDetector.init(s, this.options.detection, this.options);\n }\n if (this.modules.i18nFormat) {\n s.i18nFormat = createClassOnDemand(this.modules.i18nFormat);\n if (s.i18nFormat.init) s.i18nFormat.init(this);\n }\n this.translator = new Translator(this.services, this.options);\n this.translator.on('*', (event, ...args) => {\n this.emit(event, ...args);\n });\n this.modules.external.forEach(m => {\n if (m.init) m.init(this);\n });\n }\n this.format = this.options.interpolation.format;\n if (!callback) callback = noop;\n if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {\n const codes = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);\n if (codes.length > 0 && codes[0] !== 'dev') this.options.lng = codes[0];\n }\n if (!this.services.languageDetector && !this.options.lng) {\n this.logger.warn('init: no languageDetector is used and no lng is defined');\n }\n const storeApi = ['getResource', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage'];\n storeApi.forEach(fcName => {\n this[fcName] = (...args) => this.store[fcName](...args);\n });\n const storeApiChained = ['addResource', 'addResources', 'addResourceBundle', 'removeResourceBundle'];\n storeApiChained.forEach(fcName => {\n this[fcName] = (...args) => {\n this.store[fcName](...args);\n return this;\n };\n });\n const deferred = defer();\n const load = () => {\n const finish = (err, t) => {\n this.isInitializing = false;\n if (this.isInitialized && !this.initializedStoreOnce) this.logger.warn('init: i18next is already initialized. You should call init just once!');\n this.isInitialized = true;\n if (!this.options.isClone) this.logger.log('initialized', this.options);\n this.emit('initialized', this.options);\n deferred.resolve(t);\n callback(err, t);\n };\n if (this.languages && !this.isInitialized) return finish(null, this.t.bind(this));\n this.changeLanguage(this.options.lng, finish);\n };\n if (this.options.resources || !this.options.initAsync) {\n load();\n } else {\n setTimeout(load, 0);\n }\n return deferred;\n }\n loadResources(language, callback = noop) {\n let usedCallback = callback;\n const usedLng = isString(language) ? language : this.language;\n if (typeof language === 'function') usedCallback = language;\n if (!this.options.resources || this.options.partialBundledLanguages) {\n if (usedLng?.toLowerCase() === 'cimode' && (!this.options.preload || this.options.preload.length === 0)) return usedCallback();\n const toLoad = [];\n const append = lng => {\n if (!lng) return;\n if (lng === 'cimode') return;\n const lngs = this.services.languageUtils.toResolveHierarchy(lng);\n lngs.forEach(l => {\n if (l === 'cimode') return;\n if (toLoad.indexOf(l) < 0) toLoad.push(l);\n });\n };\n if (!usedLng) {\n const fallbacks = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);\n fallbacks.forEach(l => append(l));\n } else {\n append(usedLng);\n }\n this.options.preload?.forEach?.(l => append(l));\n this.services.backendConnector.load(toLoad, this.options.ns, e => {\n if (!e && !this.resolvedLanguage && this.language) this.setResolvedLanguage(this.language);\n usedCallback(e);\n });\n } else {\n usedCallback(null);\n }\n }\n reloadResources(lngs, ns, callback) {\n const deferred = defer();\n if (typeof lngs === 'function') {\n callback = lngs;\n lngs = undefined;\n }\n if (typeof ns === 'function') {\n callback = ns;\n ns = undefined;\n }\n if (!lngs) lngs = this.languages;\n if (!ns) ns = this.options.ns;\n if (!callback) callback = noop;\n this.services.backendConnector.reload(lngs, ns, err => {\n deferred.resolve();\n callback(err);\n });\n return deferred;\n }\n use(module) {\n if (!module) throw new Error('You are passing an undefined module! Please check the object you are passing to i18next.use()');\n if (!module.type) throw new Error('You are passing a wrong module! Please check the object you are passing to i18next.use()');\n if (module.type === 'backend') {\n this.modules.backend = module;\n }\n if (module.type === 'logger' || module.log && module.warn && module.error) {\n this.modules.logger = module;\n }\n if (module.type === 'languageDetector') {\n this.modules.languageDetector = module;\n }\n if (module.type === 'i18nFormat') {\n this.modules.i18nFormat = module;\n }\n if (module.type === 'postProcessor') {\n postProcessor.addPostProcessor(module);\n }\n if (module.type === 'formatter') {\n this.modules.formatter = module;\n }\n if (module.type === '3rdParty') {\n this.modules.external.push(module);\n }\n return this;\n }\n setResolvedLanguage(l) {\n if (!l || !this.languages) return;\n if (['cimode', 'dev'].indexOf(l) > -1) return;\n for (let li = 0; li < this.languages.length; li++) {\n const lngInLngs = this.languages[li];\n if (['cimode', 'dev'].indexOf(lngInLngs) > -1) continue;\n if (this.store.hasLanguageSomeTranslations(lngInLngs)) {\n this.resolvedLanguage = lngInLngs;\n break;\n }\n }\n if (!this.resolvedLanguage && this.languages.indexOf(l) < 0 && this.store.hasLanguageSomeTranslations(l)) {\n this.resolvedLanguage = l;\n this.languages.unshift(l);\n }\n }\n changeLanguage(lng, callback) {\n this.isLanguageChangingTo = lng;\n const deferred = defer();\n this.emit('languageChanging', lng);\n const setLngProps = l => {\n this.language = l;\n this.languages = this.services.languageUtils.toResolveHierarchy(l);\n this.resolvedLanguage = undefined;\n this.setResolvedLanguage(l);\n };\n const done = (err, l) => {\n if (l) {\n if (this.isLanguageChangingTo === lng) {\n setLngProps(l);\n this.translator.changeLanguage(l);\n this.isLanguageChangingTo = undefined;\n this.emit('languageChanged', l);\n this.logger.log('languageChanged', l);\n }\n } else {\n this.isLanguageChangingTo = undefined;\n }\n deferred.resolve((...args) => this.t(...args));\n if (callback) callback(err, (...args) => this.t(...args));\n };\n const setLng = lngs => {\n if (!lng && !lngs && this.services.languageDetector) lngs = [];\n const fl = isString(lngs) ? lngs : lngs && lngs[0];\n const l = this.store.hasLanguageSomeTranslations(fl) ? fl : this.services.languageUtils.getBestMatchFromCodes(isString(lngs) ? [lngs] : lngs);\n if (l) {\n if (!this.language) {\n setLngProps(l);\n }\n if (!this.translator.language) this.translator.changeLanguage(l);\n this.services.languageDetector?.cacheUserLanguage?.(l);\n }\n this.loadResources(l, err => {\n done(err, l);\n });\n };\n if (!lng && this.services.languageDetector && !this.services.languageDetector.async) {\n setLng(this.services.languageDetector.detect());\n } else if (!lng && this.services.languageDetector && this.services.languageDetector.async) {\n if (this.services.languageDetector.detect.length === 0) {\n this.services.languageDetector.detect().then(setLng);\n } else {\n this.services.languageDetector.detect(setLng);\n }\n } else {\n setLng(lng);\n }\n return deferred;\n }\n getFixedT(lng, ns, keyPrefix) {\n const fixedT = (key, opts, ...rest) => {\n let o;\n if (typeof opts !== 'object') {\n o = this.options.overloadTranslationOptionHandler([key, opts].concat(rest));\n } else {\n o = {\n ...opts\n };\n }\n o.lng = o.lng || fixedT.lng;\n o.lngs = o.lngs || fixedT.lngs;\n o.ns = o.ns || fixedT.ns;\n if (o.keyPrefix !== '') o.keyPrefix = o.keyPrefix || keyPrefix || fixedT.keyPrefix;\n const keySeparator = this.options.keySeparator || '.';\n let resultKey;\n if (o.keyPrefix && Array.isArray(key)) {\n resultKey = key.map(k => {\n if (typeof k === 'function') k = keysFromSelector(k, {\n ...this.options,\n ...opts\n });\n return `${o.keyPrefix}${keySeparator}${k}`;\n });\n } else {\n if (typeof key === 'function') key = keysFromSelector(key, {\n ...this.options,\n ...opts\n });\n resultKey = o.keyPrefix ? `${o.keyPrefix}${keySeparator}${key}` : key;\n }\n return this.t(resultKey, o);\n };\n if (isString(lng)) {\n fixedT.lng = lng;\n } else {\n fixedT.lngs = lng;\n }\n fixedT.ns = ns;\n fixedT.keyPrefix = keyPrefix;\n return fixedT;\n }\n t(...args) {\n return this.translator?.translate(...args);\n }\n exists(...args) {\n return this.translator?.exists(...args);\n }\n setDefaultNamespace(ns) {\n this.options.defaultNS = ns;\n }\n hasLoadedNamespace(ns, options = {}) {\n if (!this.isInitialized) {\n this.logger.warn('hasLoadedNamespace: i18next was not initialized', this.languages);\n return false;\n }\n if (!this.languages || !this.languages.length) {\n this.logger.warn('hasLoadedNamespace: i18n.languages were undefined or empty', this.languages);\n return false;\n }\n const lng = options.lng || this.resolvedLanguage || this.languages[0];\n const fallbackLng = this.options ? this.options.fallbackLng : false;\n const lastLng = this.languages[this.languages.length - 1];\n if (lng.toLowerCase() === 'cimode') return true;\n const loadNotPending = (l, n) => {\n const loadState = this.services.backendConnector.state[`${l}|${n}`];\n return loadState === -1 || loadState === 0 || loadState === 2;\n };\n if (options.precheck) {\n const preResult = options.precheck(this, loadNotPending);\n if (preResult !== undefined) return preResult;\n }\n if (this.hasResourceBundle(lng, ns)) return true;\n if (!this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages) return true;\n if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;\n return false;\n }\n loadNamespaces(ns, callback) {\n const deferred = defer();\n if (!this.options.ns) {\n if (callback) callback();\n return Promise.resolve();\n }\n if (isString(ns)) ns = [ns];\n ns.forEach(n => {\n if (this.options.ns.indexOf(n) < 0) this.options.ns.push(n);\n });\n this.loadResources(err => {\n deferred.resolve();\n if (callback) callback(err);\n });\n return deferred;\n }\n loadLanguages(lngs, callback) {\n const deferred = defer();\n if (isString(lngs)) lngs = [lngs];\n const preloaded = this.options.preload || [];\n const newLngs = lngs.filter(lng => preloaded.indexOf(lng) < 0 && this.services.languageUtils.isSupportedCode(lng));\n if (!newLngs.length) {\n if (callback) callback();\n return Promise.resolve();\n }\n this.options.preload = preloaded.concat(newLngs);\n this.loadResources(err => {\n deferred.resolve();\n if (callback) callback(err);\n });\n return deferred;\n }\n dir(lng) {\n if (!lng) lng = this.resolvedLanguage || (this.languages?.length > 0 ? this.languages[0] : this.language);\n if (!lng) return 'rtl';\n try {\n const l = new Intl.Locale(lng);\n if (l && l.getTextInfo) {\n const ti = l.getTextInfo();\n if (ti && ti.direction) return ti.direction;\n }\n } catch (e) {}\n const rtlLngs = ['ar', 'shu', 'sqr', 'ssh', 'xaa', 'yhd', 'yud', 'aao', 'abh', 'abv', 'acm', 'acq', 'acw', 'acx', 'acy', 'adf', 'ads', 'aeb', 'aec', 'afb', 'ajp', 'apc', 'apd', 'arb', 'arq', 'ars', 'ary', 'arz', 'auz', 'avl', 'ayh', 'ayl', 'ayn', 'ayp', 'bbz', 'pga', 'he', 'iw', 'ps', 'pbt', 'pbu', 'pst', 'prp', 'prd', 'ug', 'ur', 'ydd', 'yds', 'yih', 'ji', 'yi', 'hbo', 'men', 'xmn', 'fa', 'jpr', 'peo', 'pes', 'prs', 'dv', 'sam', 'ckb'];\n const languageUtils = this.services?.languageUtils || new LanguageUtil(get());\n if (lng.toLowerCase().indexOf('-latn') > 1) return 'ltr';\n return rtlLngs.indexOf(languageUtils.getLanguagePartFromCode(lng)) > -1 || lng.toLowerCase().indexOf('-arab') > 1 ? 'rtl' : 'ltr';\n }\n static createInstance(options = {}, callback) {\n return new I18n(options, callback);\n }\n cloneInstance(options = {}, callback = noop) {\n const forkResourceStore = options.forkResourceStore;\n if (forkResourceStore) delete options.forkResourceStore;\n const mergedOptions = {\n ...this.options,\n ...options,\n ...{\n isClone: true\n }\n };\n const clone = new I18n(mergedOptions);\n if (options.debug !== undefined || options.prefix !== undefined) {\n clone.logger = clone.logger.clone(options);\n }\n const membersToCopy = ['store', 'services', 'language'];\n membersToCopy.forEach(m => {\n clone[m] = this[m];\n });\n clone.services = {\n ...this.services\n };\n clone.services.utils = {\n hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)\n };\n if (forkResourceStore) {\n const clonedData = Object.keys(this.store.data).reduce((prev, l) => {\n prev[l] = {\n ...this.store.data[l]\n };\n prev[l] = Object.keys(prev[l]).reduce((acc, n) => {\n acc[n] = {\n ...prev[l][n]\n };\n return acc;\n }, prev[l]);\n return prev;\n }, {});\n clone.store = new ResourceStore(clonedData, mergedOptions);\n clone.services.resourceStore = clone.store;\n }\n clone.translator = new Translator(clone.services, mergedOptions);\n clone.translator.on('*', (event, ...args) => {\n clone.emit(event, ...args);\n });\n clone.init(mergedOptions, callback);\n clone.translator.options = mergedOptions;\n clone.translator.backendConnector.services.utils = {\n hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)\n };\n return clone;\n }\n toJSON() {\n return {\n options: this.options,\n store: this.store,\n language: this.language,\n languages: this.languages,\n resolvedLanguage: this.resolvedLanguage\n };\n }\n}\nconst instance = I18n.createInstance();\ninstance.createInstance = I18n.createInstance;\n\nconst createInstance = instance.createInstance;\nconst dir = instance.dir;\nconst init = instance.init;\nconst loadResources = instance.loadResources;\nconst reloadResources = instance.reloadResources;\nconst use = instance.use;\nconst changeLanguage = instance.changeLanguage;\nconst getFixedT = instance.getFixedT;\nconst t = instance.t;\nconst exists = instance.exists;\nconst setDefaultNamespace = instance.setDefaultNamespace;\nconst hasLoadedNamespace = instance.hasLoadedNamespace;\nconst loadNamespaces = instance.loadNamespaces;\nconst loadLanguages = instance.loadLanguages;\n\nexport { changeLanguage, createInstance, instance as default, dir, exists, getFixedT, hasLoadedNamespace, init, keysFromSelector as keyFromSelector, loadLanguages, loadNamespaces, loadResources, reloadResources, setDefaultNamespace, t, use };\n","import { FilterType } from \"components/BodyWeight/widgets/FilterButtons\";\nimport i18n from 'i18next';\n\n\nexport function isSameDay(date1: Date, date2: Date): boolean {\n return (\n date1.getFullYear() === date2.getFullYear() &&\n date1.getMonth() === date2.getMonth() &&\n date1.getDate() === date2.getDate()\n );\n}\n\n/*\n * Util function that converts a date to a YYYY-MM-DD string\n */\nexport function dateToYYYYMMDD(date: Date): string {\n return date.toISOString().split('T')[0];\n}\n\n\n/*\n * Returns the localized time from a date object\n */\nexport function dateTimeToLocaleHHMM(dateTime: Date | null, locale?: string) {\n if (dateTime == null) {\n return null;\n }\n locale = locale ?? i18n.language;\n\n return dateTime.toLocaleTimeString(\n locale ? [locale] : [],\n { hour: '2-digit', minute: '2-digit' }\n );\n}\n\nexport function dateTimeToLocale(dateTime: Date | null, locale?: string) {\n if (dateTime == null) {\n return null;\n }\n\n locale = locale ?? i18n.language;\n\n\n return dateTime.toLocaleString(locale ? [locale] : [], {\n year: '2-digit',\n month: '2-digit',\n day: '2-digit',\n hour: '2-digit',\n minute: '2-digit'\n });\n}\n\n/*\n * Converts a date object to a non localized string in the format HH:MM\n */\nexport function dateTimeToHHMM(date: Date | null) {\n if (date == null) {\n return null;\n }\n const [hour, minute] = date.toTimeString().split(':');\n return `${hour}:${minute}`;\n}\n\n/*\n * Converts HH:MM to a date object\n *\n * Note that this is only used when converting times from the api, so we don't\n * have to consider that there could be annoying AMs and PMs in the string\n */\nexport function HHMMToDateTime(time: string | null) {\n\n if (time == null) {\n return null;\n }\n\n const [hour, minute] = time.split(':', 2);\n const dateTime = new Date();\n dateTime.setHours(parseInt(hour));\n dateTime.setMinutes(parseInt(minute));\n\n return dateTime;\n}\n\n/*\n * Util function that calculates a date in the past based on a string filter\n * and returns it as a YYYY-MM-DD string for API queries.\n *\n * @param filter - A string representing the desired time period (e.g., 'lastWeek', 'lastMonth')\n * @param currentDate - (Optional) The current date to base calculations on. Defaults to `new Date()`.\n * This parameter allows for testing or custom date bases.\n * @returns - Date string in the format YYYY-MM-DD or undefined for no filtering\n */\nexport function calculatePastDate(filter: FilterType, currentDate: Date = new Date()): string | undefined {\n\n // Dictionary for filters\n const filterMap: Record<FilterType, (() => void) | undefined> = {\n lastWeek: () => currentDate.setDate(currentDate.getDate() - 7),\n lastMonth: () => currentDate.setMonth(currentDate.getMonth() - 1),\n lastHalfYear: () => currentDate.setMonth(currentDate.getMonth() - 6),\n lastYear: () => currentDate.setFullYear(currentDate.getFullYear() - 1),\n '': undefined\n };\n\n // Execute the corresponding function for the filter\n const applyFilter = filterMap[filter];\n if (applyFilter) {\n applyFilter();\n } else {\n return undefined;\n }\n\n return dateToYYYYMMDD(currentDate);\n}","import { NutritionalValues } from \"components/Nutrition/helpers/nutritionalValues\";\nimport { DiaryEntry } from \"components/Nutrition/models/diaryEntry\";\nimport { MealItem } from \"components/Nutrition/models/mealItem\";\nimport { PSEUDO_MEAL_ID } from \"components/Nutrition/models/nutritionalPlan\";\nimport { Adapter } from \"utils/Adapter\";\nimport { dateTimeToHHMM, dateTimeToLocaleHHMM, HHMMToDateTime, isSameDay } from \"utils/date\";\n\nexport interface ApiMealType {\n id: number,\n plan: number,\n order: number,\n time: string | null,\n name: string\n}\n\n\nexport type MealConstructorParams = {\n id?: number | null;\n planId?: number | null;\n order?: number;\n time?: Date | null;\n name: string;\n items?: MealItem[];\n diaryEntries?: DiaryEntry[];\n};\n\nexport class Meal {\n\n public id: number | null = null;\n public planId: number | null = null;\n public order: number;\n public time: Date | null = null;\n public name: string;\n public items: MealItem[];\n public diaryEntries: DiaryEntry[];\n\n constructor(params: MealConstructorParams) {\n this.id = params.id || null;\n this.planId = params.planId || null;\n this.order = params.order || 1;\n this.time = params.time || null;\n this.name = params.name;\n this.items = params.items || [];\n this.diaryEntries = params.diaryEntries || [];\n }\n\n get isRealMeal() {\n return this.id !== PSEUDO_MEAL_ID;\n }\n\n get timeHHMMLocale() {\n return dateTimeToLocaleHHMM(this.time);\n }\n\n get displayName() {\n return this.name ? this.name : this.timeHHMMLocale;\n }\n\n /*\n * Returns the diary entries for the current day.\n */\n get diaryEntriesToday(): DiaryEntry[] {\n return this.diaryEntries.filter(entry => isSameDay(entry.datetime, new Date()));\n }\n\n get plannedNutritionalValues(): NutritionalValues {\n const out = new NutritionalValues();\n for (const item of this.items) {\n out.add(item.nutritionalValues);\n }\n return out;\n }\n\n get loggedNutritionalValuesToday(): NutritionalValues {\n const out = new NutritionalValues();\n for (const entry of this.diaryEntriesToday) {\n out.add(entry.nutritionalValues);\n }\n return out;\n }\n\n static clone(other: Meal, overrides?: Partial<MealConstructorParams>): Meal {\n return new Meal({\n id: overrides?.id ?? other.id,\n planId: overrides?.planId ?? other.planId,\n order: overrides?.order ?? other.order,\n time: overrides?.time ?? other.time,\n name: overrides?.name ?? other.name,\n items: overrides?.items ?? other.items,\n diaryEntries: overrides?.diaryEntries ?? other.diaryEntries,\n });\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static fromJson(json: any): Meal {\n return adapter.fromJson(json);\n }\n\n\n toJson() {\n return adapter.toJson(this);\n }\n}\n\n\nclass MealAdapter implements Adapter<Meal> {\n fromJson(item: ApiMealType) {\n return new Meal({\n id: item.id,\n planId: item.plan,\n order: item.order,\n time: HHMMToDateTime(item.time),\n name: item.name,\n });\n }\n\n toJson(item: Meal) {\n return {\n ...(item.id != null ? { id: item.id } : {}),\n plan: item.planId,\n name: item.name,\n order: item.order,\n time: dateTimeToHHMM(item.time)\n };\n }\n}\n\nconst adapter = new MealAdapter();","import { NutritionalValues } from \"components/Nutrition/helpers/nutritionalValues\";\nimport { DiaryEntry } from \"components/Nutrition/models/diaryEntry\";\nimport { Meal } from \"components/Nutrition/models/meal\";\nimport { ApiNutritionalPlanType } from \"types\";\nimport { Adapter } from \"utils/Adapter\";\nimport { dateToYYYYMMDD, isSameDay } from \"utils/date\";\n\n/* eslint-disable camelcase */\n\nexport type GroupedDiaryEntries = {\n entries: DiaryEntry[];\n nutritionalValues: NutritionalValues;\n}\n\nexport const PSEUDO_MEAL_ID = -1;\n\n\ntype NutritionalPlanConstructorParams = {\n id?: number | null,\n creationDate?: Date,\n start?: Date,\n end?: Date | null,\n description?: string,\n onlyLogging?: boolean,\n goalEnergy?: number | null,\n goalProtein?: number | null,\n goalCarbohydrates?: number | null,\n goalFiber?: number | null,\n goalSodium?: number | null,\n goalFat?: number | null,\n goalFatsSaturated?: number | null,\n};\n\n\nexport class NutritionalPlan {\n id: number | null;\n creationDate: Date;\n start: Date;\n end: Date | null;\n description: string;\n onlyLogging: boolean;\n goalEnergy: number | null;\n goalProtein: number | null;\n goalCarbohydrates: number | null;\n goalFiber: number | null;\n goalSodium: number | null;\n goalFat: number | null;\n goalFatsSaturated: number | null;\n\n meals: Meal[] = [];\n diaryEntries: DiaryEntry[] = [];\n\n constructor(data: NutritionalPlanConstructorParams) {\n this.id = data.id ?? null;\n this.creationDate = data.creationDate ?? new Date();\n this.start = data.start ?? this.creationDate;\n this.end = data.end ?? null;\n this.description = data.description ?? '';\n this.onlyLogging = data.onlyLogging ?? false;\n this.goalEnergy = data.goalEnergy ?? null;\n this.goalProtein = data.goalProtein ?? null;\n this.goalCarbohydrates = data.goalCarbohydrates ?? null;\n this.goalFiber = data.goalFiber ?? null;\n this.goalSodium = data.goalSodium ?? null;\n this.goalFat = data.goalFat ?? null;\n this.goalFatsSaturated = data.goalFatsSaturated ?? null;\n }\n\n\n get hasAnyGoals() {\n return this.goalEnergy !== null\n || this.goalProtein !== null\n || this.goalCarbohydrates !== null\n || this.goalFat !== null;\n }\n\n get hasAnyAdvancedGoals() {\n return this.goalFiber !== null\n || this.goalSodium !== null\n || this.goalFatsSaturated !== null;\n }\n\n get hasAnyPlanned() {\n return this.hasAnyGoals || this.plannedNutritionalValues.energy > 0;\n }\n\n /*\n * Returns the nutritional values for the planned meals\n */\n get plannedNutritionalValues() {\n if (this.hasAnyGoals) {\n return new NutritionalValues({\n energy: this.goalEnergy!,\n carbohydrates: this.goalCarbohydrates!,\n protein: this.goalProtein!,\n fat: this.goalFat!\n });\n }\n\n const out = new NutritionalValues();\n for (const item of this.meals) {\n out.add(item.plannedNutritionalValues);\n }\n\n return out;\n }\n\n /*\n * Returns the average nutritional values of the last 7 days.\n *\n * If no entries are available, the function returns an empty NutritionalValues object.\n */\n get loggedNutritionalValues7DayAvg(): NutritionalValues {\n const today = new Date();\n const sevenDaysAgo = new Date(today.getTime() - 7 * 24 * 60 * 60 * 1000);\n const relevantEntries = this.diaryEntries.filter(entry => entry.datetime >= sevenDaysAgo);\n\n return this.getAverageNutritionalValuesFromDiaryEntries(relevantEntries);\n }\n\n /*\n * Returns the nutritional values for the logged meals for today\n */\n get loggedNutritionalValuesToday() {\n const relevantEntries = this.diaryEntries.filter(entry => isSameDay(entry.datetime, new Date()));\n // console.log(relevantEntries);\n // console.log(this.getNutritionalValuesFromDiaryEntries(relevantEntries));\n return this.getNutritionalValuesFromDiaryEntries(relevantEntries);\n }\n\n /*\n * Returns a map of diary entries grouped by day\n */\n get groupDiaryEntries(): Map<string, GroupedDiaryEntries> {\n\n return this.diaryEntries.reduce((map, entry) => {\n const dateKey = entry.datetime.toISOString().split('T')[0]; // Use ISO string format as the key\n const entriesForDay = map.get(dateKey) || { entries: [], nutritionalValues: new NutritionalValues() };\n entriesForDay.entries.push(entry);\n entriesForDay.nutritionalValues.add(entry.nutritionalValues);\n map.set(dateKey, entriesForDay);\n\n return map;\n }, new Map<string, GroupedDiaryEntries>());\n }\n\n get percentageValuesLoggedToday() {\n return new NutritionalValues({\n protein: this.loggedNutritionalValuesToday.protein / this.plannedNutritionalValues.protein * 100,\n carbohydrates: this.loggedNutritionalValuesToday.carbohydrates / this.plannedNutritionalValues.carbohydrates * 100,\n fat: this.loggedNutritionalValuesToday.fat / this.plannedNutritionalValues.fat * 100,\n });\n }\n\n clone(values: Partial<NutritionalPlan>): NutritionalPlan {\n return new NutritionalPlan({\n id: values.id !== undefined ? values.id : this.id,\n creationDate: values.creationDate !== undefined ? values.creationDate : this.creationDate,\n start: values.start !== undefined ? values.start : this.start,\n end: values.end !== undefined ? values.end : this.end,\n description: values.description !== undefined ? values.description : this.description,\n onlyLogging: values.onlyLogging !== undefined ? values.onlyLogging : this.onlyLogging,\n goalEnergy: values.goalEnergy !== undefined ? values.goalEnergy : this.goalEnergy,\n goalProtein: values.goalProtein !== undefined ? values.goalProtein : this.goalProtein,\n goalCarbohydrates: values.goalCarbohydrates !== undefined ? values.goalCarbohydrates : this.goalCarbohydrates,\n goalFiber: values.goalFiber !== undefined ? values.goalFiber : this.goalFiber,\n goalSodium: values.goalSodium !== undefined ? values.goalSodium : this.goalSodium,\n goalFat: values.goalFat !== undefined ? values.goalFat : this.goalFat,\n goalFatsSaturated: values.goalFatsSaturated !== undefined ? values.goalFatsSaturated : this.goalFatsSaturated,\n });\n }\n\n /*\n * Returns a synthetic meal object for the pseudo meal 'Others'\n *\n * This contains all logs not logged to any of the other meals\n */\n pseudoMealOthers(name: string): Meal {\n const out = new Meal({\n id: PSEUDO_MEAL_ID,\n order: -1,\n name: name\n });\n out.diaryEntries = this.diaryEntries.filter((entry) => entry.mealId === null);\n\n return out;\n }\n\n /*\n * Returns the nutritional values for the logged meals for a given date\n */\n loggedNutritionalValuesDate(date: Date) {\n return this.getNutritionalValuesFromDiaryEntries(this.loggedEntriesDate(date));\n }\n\n /*\n * Returns the diary entries for a given date\n */\n loggedEntriesDate(date: Date) {\n return this.diaryEntries.filter(entry => isSameDay(entry.datetime, date));\n }\n\n getAverageNutritionalValuesFromDiaryEntries(entries: DiaryEntry[]) {\n const nrOfEntries = entries.length;\n const out = this.getNutritionalValuesFromDiaryEntries(entries);\n\n if (nrOfEntries === 0) {\n return out;\n }\n\n out.energy = out.energy / nrOfEntries;\n out.protein = out.protein / nrOfEntries;\n out.carbohydrates = out.carbohydrates / nrOfEntries;\n out.carbohydratesSugar = out.carbohydratesSugar / nrOfEntries;\n out.fat = out.fat / nrOfEntries;\n out.fatSaturated = out.fatSaturated / nrOfEntries;\n out.fiber = out.fiber / nrOfEntries;\n out.sodium = out.sodium / nrOfEntries;\n return out;\n }\n\n getNutritionalValuesFromDiaryEntries(entries: DiaryEntry[]) {\n return entries.reduce(\n (acc, entry) => acc.add(entry.nutritionalValues), new NutritionalValues()\n );\n }\n}\n\n\nexport class NutritionalPlanAdapter implements Adapter<NutritionalPlan> {\n fromJson(item: ApiNutritionalPlanType) {\n return new NutritionalPlan({\n id: item.id,\n creationDate: new Date(item.creation_date),\n start: new Date(item.start),\n end: item.end !== null ? new Date(item.end) : null,\n description: item.description,\n onlyLogging: item.only_logging,\n goalEnergy: item.goal_energy,\n goalProtein: item.goal_protein,\n goalCarbohydrates: item.goal_carbohydrates,\n goalFiber: item.goal_fiber,\n goalSodium: null,\n goalFat: item.goal_fat,\n goalFatsSaturated: null,\n });\n }\n\n toJson(item: NutritionalPlan) {\n return {\n ...(item.id != null ? { id: item.id } : {}),\n\n start: dateToYYYYMMDD(item.start),\n end: item.end ? dateToYYYYMMDD(item.end) : null,\n description: item.description,\n only_logging: item.onlyLogging,\n goal_energy: item.goalEnergy,\n goal_protein: item.goalProtein,\n goal_carbohydrates: item.goalCarbohydrates,\n goal_fiber: item.goalFiber,\n goal_sodium: item.goalSodium,\n goal_fat: item.goalFat,\n goal_fats_saturated: item.goalFatsSaturated,\n };\n }\n}\n\nexport const nutritionalPlanAdapter = new NutritionalPlanAdapter();","import { Adapter } from \"utils/Adapter\";\n\nexport class WeightEntry {\n\n constructor(\n public date: Date,\n public weight: number,\n public id?: number,\n ) {\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static fromJson(json: any) {\n return adapter.fromJson(json);\n }\n\n toJson() {\n return adapter.toJson(this);\n }\n}\n\nclass WeightAdapter implements Adapter<WeightEntry> {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n fromJson(item: any): WeightEntry {\n return new WeightEntry(\n new Date(item.date),\n parseFloat(item.weight),\n item.id,\n );\n }\n\n toJson(item: WeightEntry) {\n return {\n date: item.date.toISOString(),\n weight: item.weight,\n };\n }\n}\n\nconst adapter = new WeightAdapter();","/*\n * Collect all constants that access import.meta.env so it's easier to mock them\n */\n\nexport const IS_PROD = import.meta.env.PROD;\nexport const PUBLIC_URL = IS_PROD ? \"/static/react\" : import.meta.env.VITE_PUBLIC_URL;\nexport const SERVER_URL = IS_PROD ? \"\" : import.meta.env.VITE_API_SERVER;\nexport const TIME_ZONE = import.meta.env.TIME_ZONE;\nexport const MIN_ACCOUNT_AGE_TO_TRUST = import.meta.env.MIN_ACCOUNT_AGE_TO_TRUST;\n\nexport const VITE_API_SERVER = import.meta.env.VITE_API_SERVER;\nexport const VITE_API_KEY = import.meta.env.VITE_API_KEY;","/* global btoa */\n(function (root) {\n let base64\n\n // This function's sole purpose is to help us ignore lone surrogates so that\n // malformed strings don't throw in the browser while being processed\n // permissively in Node.js. If we didn't care about parity, we could get rid\n // of it.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charAt\n function getWholeCharAndI (str, i) {\n const code = str.charCodeAt(i)\n\n // This is a coherence check. `code` should never be `NaN`.\n /* istanbul ignore if */\n if (isNaN(code)) {\n throw new RangeError('Index ' + i + ' out of range for string \"' + str + '\"; please open an issue at https://github.com/Trott/slug/issues/new')\n }\n if (code < 0xD800 || code > 0xDFFF) {\n return [str.charAt(i), i] // Non-surrogate character, keeping 'i' the same\n }\n\n // High surrogate\n if (code >= 0xD800 && code <= 0xDBFF) {\n if (str.length <= (i + 1)) {\n // High surrogate without following low surrogate\n return [' ', i]\n }\n const next = str.charCodeAt(i + 1)\n if (next < 0xDC00 || next > 0xDFFF) {\n // High surrogate without following low surrogate\n return [' ', i]\n }\n return [str.charAt(i) + str.charAt(i + 1), i + 1]\n }\n\n // Low surrogate (0xDC00 <= code && code <= 0xDFFF)\n if (i === 0) {\n // Low surrogate without preceding high surrogate\n return [' ', i]\n }\n\n const prev = str.charCodeAt(i - 1)\n\n /* istanbul ignore else */\n if (prev < 0xD800 || prev > 0xDBFF) {\n // Low surrogate without preceding high surrogate\n return [' ', i]\n }\n\n /* istanbul ignore next */\n throw new Error('String \"' + str + '\" reaches code believed to be unreachable; please open an issue at https://github.com/Trott/slug/issues/new')\n }\n\n if (typeof window !== 'undefined') {\n if (window.btoa) {\n base64 = function (input) {\n return btoa(unescape(encodeURIComponent(input)))\n }\n } else {\n // Polyfill for environments that don't have btoa or Buffer class (notably, React Native).\n // Based on https://github.com/davidchambers/Base64.js/blob/a121f75bb10c8dd5d557886c4b1069b31258d230/base64.js\n base64 = function (input) {\n const str = unescape(encodeURIComponent(input + ''))\n let output = ''\n for (\n let block, charCode, idx = 0, map = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n str.charAt(idx | 0) || (map = '=', idx % 1);\n output += map.charAt(63 & block >> 8 - idx % 1 * 8)\n ) {\n charCode = str.charCodeAt(idx += 3 / 4)\n // This is a coherence check. The result of unescape(encodeURIComponent()) should always be\n // characters with code points that fit into two bytes.\n /* istanbul ignore next */\n if (charCode > 0xFF) {\n throw new Error(\"'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.\")\n }\n block = block << 8 | charCode\n }\n return output\n }\n }\n } else {\n base64 = function (input) {\n return Buffer.from(input).toString('base64')\n }\n }\n\n function slug (string, opts) {\n let result = slugify(string, opts)\n const fallback = opts && opts.fallback !== undefined ? opts.fallback : slug.defaults.fallback\n // If output is an empty string, try slug for base64 of string.\n if (fallback === true && result === '') {\n // Get rid of lone surrogates.\n let input = ''\n for (let i = 0; i < string.length; i++) {\n const charAndI = getWholeCharAndI(string, i)\n i = charAndI[1]\n input += charAndI[0]\n }\n result = slugify(base64(input), opts)\n }\n return result\n }\n\n const locales = {\n // http://www.eki.ee/wgrs/rom1_bg.pdf\n bg: { Й: 'Y', й: 'y', X: 'H', x: 'h', Ц: 'Ts', ц: 'ts', Щ: 'Sht', щ: 'sht', Ъ: 'A', ъ: 'a', Ь: 'Y', ь: 'y' },\n // Need a reference URL for German, although this is pretty well-known.\n de: { Ä: 'AE', ä: 'ae', Ö: 'OE', ö: 'oe', Ü: 'UE', ü: 'ue' },\n // Need a reference URL for Serbian.\n sr: { đ: 'dj', Đ: 'DJ' },\n // https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/864314/ROMANIZATION_OF_UKRAINIAN.pdf\n uk: { И: 'Y', и: 'y', Й: 'Y', й: 'y', Ц: 'Ts', ц: 'ts', Х: 'Kh', х: 'kh', Щ: 'Shch', щ: 'shch', Г: 'H', г: 'h' }\n }\n\n let defaultLocale = {}\n\n function slugify (string, opts) {\n if (typeof string !== 'string') {\n throw new Error('slug() requires a string argument, received ' + typeof string)\n }\n if (typeof opts === 'string') { opts = { replacement: opts } }\n opts = opts ? Object.assign({}, opts) : {}\n opts.mode = opts.mode || slug.defaults.mode\n const defaults = slug.defaults.modes[opts.mode]\n const keys = ['replacement', 'multicharmap', 'charmap', 'remove', 'lower', 'trim']\n for (let key, i = 0, l = keys.length; i < l; i++) {\n key = keys[i]\n opts[key] = (key in opts) ? opts[key] : defaults[key]\n }\n const localeMap = locales[opts.locale] || defaultLocale\n\n let lengths = []\n for (const key in opts.multicharmap) {\n if (!Object.prototype.hasOwnProperty.call(opts.multicharmap, key)) { continue }\n\n const len = key.length\n if (lengths.indexOf(len) === -1) { lengths.push(len) }\n }\n\n // We want to match the longest string if there are multiple matches, so\n // sort lengths in descending order.\n lengths = lengths.sort(function (a, b) { return b - a })\n\n const disallowedChars = opts.mode === 'rfc3986' ? /[^\\w\\s\\-.~]/ : /[^A-Za-z0-9\\s]/\n\n let result = ''\n for (let char, i = 0, l = string.length; i < l; i++) {\n char = string[i]\n let matchedMultichar = false\n for (let j = 0; j < lengths.length; j++) {\n const len = lengths[j]\n const str = string.substr(i, len)\n if (opts.multicharmap[str]) {\n i += len - 1\n char = opts.multicharmap[str]\n matchedMultichar = true\n break\n }\n }\n if (!matchedMultichar) {\n if (localeMap[char]) {\n char = localeMap[char]\n } else if (opts.charmap[char]) {\n char = opts.charmap[char].replace(opts.replacement, ' ')\n } else if (char.includes(opts.replacement)) {\n // preserve the replacement character in case it is excluded by disallowedChars\n char = char.replace(opts.replacement, ' ')\n } else {\n char = char.replace(disallowedChars, '')\n }\n }\n result += char\n }\n\n if (opts.remove) {\n result = result.replace(opts.remove, '')\n }\n if (opts.trim) {\n result = result.trim()\n }\n result = result.replace(/\\s+/g, opts.replacement) // convert spaces\n if (opts.lower) {\n result = result.toLowerCase()\n }\n return result\n }\n\n const initialMulticharmap = {\n // multibyte devanagari characters (hindi, sanskrit, etc.)\n फ़: 'Fi',\n ग़: 'Ghi',\n ख़: 'Khi',\n क़: 'Qi',\n ड़: 'ugDha',\n ढ़: 'ugDhha',\n य़: 'Yi',\n ज़: 'Za',\n // hebrew\n // Refs: http://www.eki.ee/wgrs/rom1_he.pdf\n // Refs: https://en.wikipedia.org/wiki/Niqqud\n בִי: 'i',\n בֵ: 'e',\n בֵי: 'e',\n בֶ: 'e',\n בַ: 'a',\n בָ: 'a',\n בֹ: 'o',\n וֹ: 'o',\n בֻ: 'u',\n וּ: 'u',\n בּ: 'b',\n כּ: 'k',\n ךּ: 'k',\n פּ: 'p',\n שׁ: 'sh',\n שׂ: 's',\n בְ: 'e',\n חֱ: 'e',\n חֲ: 'a',\n חֳ: 'o',\n בִ: 'i'\n }\n\n // https://github.com/django/django/blob/master/django/contrib/admin/static/admin/js/urlify.js\n const initialCharmap = {\n // latin\n À: 'A',\n Á: 'A',\n Â: 'A',\n Ã: 'A',\n Ä: 'A',\n Å: 'A',\n Æ: 'AE',\n Ç: 'C',\n È: 'E',\n É: 'E',\n Ê: 'E',\n Ë: 'E',\n Ì: 'I',\n Í: 'I',\n Î: 'I',\n Ï: 'I',\n Ð: 'D',\n Ñ: 'N',\n Ò: 'O',\n Ó: 'O',\n Ô: 'O',\n Õ: 'O',\n Ö: 'O',\n Ő: 'O',\n Ø: 'O',\n Ō: 'O',\n Ù: 'U',\n Ú: 'U',\n Û: 'U',\n Ü: 'U',\n Ű: 'U',\n Ý: 'Y',\n Þ: 'TH',\n ß: 'ss',\n à: 'a',\n á: 'a',\n â: 'a',\n ã: 'a',\n ä: 'a',\n å: 'a',\n æ: 'ae',\n ç: 'c',\n è: 'e',\n é: 'e',\n ê: 'e',\n ë: 'e',\n ì: 'i',\n í: 'i',\n î: 'i',\n ï: 'i',\n ð: 'd',\n ñ: 'n',\n ò: 'o',\n ó: 'o',\n ô: 'o',\n õ: 'o',\n ö: 'o',\n ő: 'o',\n ø: 'o',\n ō: 'o',\n Œ: 'OE',\n œ: 'oe',\n ù: 'u',\n ú: 'u',\n û: 'u',\n ü: 'u',\n ű: 'u',\n ý: 'y',\n þ: 'th',\n ÿ: 'y',\n ẞ: 'SS',\n // greek\n α: 'a',\n β: 'b',\n γ: 'g',\n δ: 'd',\n ε: 'e',\n ζ: 'z',\n η: 'h',\n θ: 'th',\n ι: 'i',\n κ: 'k',\n λ: 'l',\n μ: 'm',\n ν: 'n',\n ξ: '3',\n ο: 'o',\n π: 'p',\n ρ: 'r',\n σ: 's',\n τ: 't',\n υ: 'y',\n φ: 'f',\n χ: 'x',\n ψ: 'ps',\n ω: 'w',\n ά: 'a',\n έ: 'e',\n ί: 'i',\n ό: 'o',\n ύ: 'y',\n ή: 'h',\n ώ: 'w',\n ς: 's',\n ϊ: 'i',\n ΰ: 'y',\n ϋ: 'y',\n ΐ: 'i',\n Α: 'A',\n Β: 'B',\n Γ: 'G',\n Δ: 'D',\n Ε: 'E',\n Ζ: 'Z',\n Η: 'H',\n Θ: 'Th',\n Ι: 'I',\n Κ: 'K',\n Λ: 'L',\n Μ: 'M',\n Ν: 'N',\n Ξ: '3',\n Ο: 'O',\n Π: 'P',\n Ρ: 'R',\n Σ: 'S',\n Τ: 'T',\n Υ: 'Y',\n Φ: 'F',\n Χ: 'X',\n Ψ: 'PS',\n Ω: 'W',\n Ά: 'A',\n Έ: 'E',\n Ί: 'I',\n Ό: 'O',\n Ύ: 'Y',\n Ή: 'H',\n Ώ: 'W',\n Ϊ: 'I',\n Ϋ: 'Y',\n // turkish\n ş: 's',\n Ş: 'S',\n ı: 'i',\n İ: 'I',\n ğ: 'g',\n Ğ: 'G',\n // russian\n а: 'a',\n б: 'b',\n в: 'v',\n г: 'g',\n д: 'd',\n е: 'e',\n ё: 'yo',\n ж: 'zh',\n з: 'z',\n и: 'i',\n й: 'j',\n к: 'k',\n л: 'l',\n м: 'm',\n н: 'n',\n о: 'o',\n п: 'p',\n р: 'r',\n с: 's',\n т: 't',\n у: 'u',\n ф: 'f',\n х: 'h',\n ц: 'c',\n ч: 'ch',\n ш: 'sh',\n щ: 'sh',\n ъ: 'u',\n ы: 'y',\n ь: '',\n э: 'e',\n ю: 'yu',\n я: 'ya',\n А: 'A',\n Б: 'B',\n В: 'V',\n Г: 'G',\n Д: 'D',\n Е: 'E',\n Ё: 'Yo',\n Ж: 'Zh',\n З: 'Z',\n И: 'I',\n Й: 'J',\n К: 'K',\n Л: 'L',\n М: 'M',\n Н: 'N',\n О: 'O',\n П: 'P',\n Р: 'R',\n С: 'S',\n Т: 'T',\n У: 'U',\n Ф: 'F',\n Х: 'H',\n Ц: 'C',\n Ч: 'Ch',\n Ш: 'Sh',\n Щ: 'Sh',\n Ъ: 'U',\n Ы: 'Y',\n Ь: '',\n Э: 'E',\n Ю: 'Yu',\n Я: 'Ya',\n // ukranian\n Є: 'Ye',\n І: 'I',\n Ї: 'Yi',\n Ґ: 'G',\n є: 'ye',\n і: 'i',\n ї: 'yi',\n ґ: 'g',\n // czech\n č: 'c',\n ď: 'd',\n ě: 'e',\n ň: 'n',\n ř: 'r',\n š: 's',\n ť: 't',\n ů: 'u',\n ž: 'z',\n Č: 'C',\n Ď: 'D',\n Ě: 'E',\n Ň: 'N',\n Ř: 'R',\n Š: 'S',\n Ť: 'T',\n Ů: 'U',\n Ž: 'Z',\n // slovak\n ľ: 'l',\n ĺ: 'l',\n ŕ: 'r',\n Ľ: 'L',\n Ĺ: 'L',\n Ŕ: 'R',\n // polish\n ą: 'a',\n ć: 'c',\n ę: 'e',\n ł: 'l',\n ń: 'n',\n ś: 's',\n ź: 'z',\n ż: 'z',\n Ą: 'A',\n Ć: 'C',\n Ę: 'E',\n Ł: 'L',\n Ń: 'N',\n Ś: 'S',\n Ź: 'Z',\n Ż: 'Z',\n // latvian\n ā: 'a',\n ē: 'e',\n ģ: 'g',\n ī: 'i',\n ķ: 'k',\n ļ: 'l',\n ņ: 'n',\n ū: 'u',\n Ā: 'A',\n Ē: 'E',\n Ģ: 'G',\n Ī: 'I',\n Ķ: 'K',\n Ļ: 'L',\n Ņ: 'N',\n Ū: 'U',\n // arabic\n أ: 'a',\n إ: 'i',\n ب: 'b',\n ت: 't',\n ث: 'th',\n ج: 'g',\n ح: 'h',\n خ: 'kh',\n د: 'd',\n ذ: 'th',\n ر: 'r',\n ز: 'z',\n س: 's',\n ش: 'sh',\n ص: 's',\n ض: 'd',\n ط: 't',\n ظ: 'th',\n ع: 'aa',\n غ: 'gh',\n ف: 'f',\n ق: 'k',\n ك: 'k',\n ل: 'l',\n م: 'm',\n ن: 'n',\n ه: 'h',\n و: 'o',\n ي: 'y',\n ء: 'aa',\n ة: 'a',\n // farsi\n آ: 'a',\n ا: 'a',\n پ: 'p',\n ژ: 'zh',\n گ: 'g',\n چ: 'ch',\n ک: 'k',\n ی: 'i',\n // lithuanian\n ė: 'e',\n į: 'i',\n ų: 'u',\n Ė: 'E',\n Į: 'I',\n Ų: 'U',\n // romanian\n ț: 't',\n Ț: 'T',\n ţ: 't',\n Ţ: 'T',\n ș: 's',\n Ș: 'S',\n ă: 'a',\n Ă: 'A',\n // vietnamese\n Ạ: 'A',\n Ả: 'A',\n Ầ: 'A',\n Ấ: 'A',\n Ậ: 'A',\n Ẩ: 'A',\n Ẫ: 'A',\n Ằ: 'A',\n Ắ: 'A',\n Ặ: 'A',\n Ẳ: 'A',\n Ẵ: 'A',\n Ẹ: 'E',\n Ẻ: 'E',\n Ẽ: 'E',\n Ề: 'E',\n Ế: 'E',\n Ệ: 'E',\n Ể: 'E',\n Ễ: 'E',\n Ị: 'I',\n Ỉ: 'I',\n Ĩ: 'I',\n Ọ: 'O',\n Ỏ: 'O',\n Ồ: 'O',\n Ố: 'O',\n Ộ: 'O',\n Ổ: 'O',\n Ỗ: 'O',\n Ơ: 'O',\n Ờ: 'O',\n Ớ: 'O',\n Ợ: 'O',\n Ở: 'O',\n Ỡ: 'O',\n Ụ: 'U',\n Ủ: 'U',\n Ũ: 'U',\n Ư: 'U',\n Ừ: 'U',\n Ứ: 'U',\n Ự: 'U',\n Ử: 'U',\n Ữ: 'U',\n Ỳ: 'Y',\n Ỵ: 'Y',\n Ỷ: 'Y',\n Ỹ: 'Y',\n Đ: 'D',\n ạ: 'a',\n ả: 'a',\n ầ: 'a',\n ấ: 'a',\n ậ: 'a',\n ẩ: 'a',\n ẫ: 'a',\n ằ: 'a',\n ắ: 'a',\n ặ: 'a',\n ẳ: 'a',\n ẵ: 'a',\n ẹ: 'e',\n ẻ: 'e',\n ẽ: 'e',\n ề: 'e',\n ế: 'e',\n ệ: 'e',\n ể: 'e',\n ễ: 'e',\n ị: 'i',\n ỉ: 'i',\n ĩ: 'i',\n ọ: 'o',\n ỏ: 'o',\n ồ: 'o',\n ố: 'o',\n ộ: 'o',\n ổ: 'o',\n ỗ: 'o',\n ơ: 'o',\n ờ: 'o',\n ớ: 'o',\n ợ: 'o',\n ở: 'o',\n ỡ: 'o',\n ụ: 'u',\n ủ: 'u',\n ũ: 'u',\n ư: 'u',\n ừ: 'u',\n ứ: 'u',\n ự: 'u',\n ử: 'u',\n ữ: 'u',\n ỳ: 'y',\n ỵ: 'y',\n ỷ: 'y',\n ỹ: 'y',\n đ: 'd',\n // kazakh\n Ә: 'AE',\n ә: 'ae',\n Ғ: 'GH',\n ғ: 'gh',\n Қ: 'KH',\n қ: 'kh',\n Ң: 'NG',\n ң: 'ng',\n Ү: 'UE',\n ү: 'ue',\n Ұ: 'U',\n ұ: 'u',\n Һ: 'H',\n һ: 'h',\n Ө: 'OE',\n ө: 'oe',\n // serbian\n ђ: 'dj',\n ј: 'j',\n љ: 'lj',\n њ: 'nj',\n ћ: 'c',\n џ: 'dz',\n Ђ: 'Dj',\n Ј: 'j',\n Љ: 'Lj',\n Њ: 'Nj',\n Ћ: 'C',\n Џ: 'Dz',\n nj: 'nj',\n lj: 'lj',\n Nj: 'NJ',\n Lj: 'LJ',\n // hindi\n अ: 'a',\n आ: 'aa',\n ए: 'e',\n ई: 'ii',\n ऍ: 'ei',\n ऎ: 'ae',\n ऐ: 'ai',\n इ: 'i',\n ओ: 'o',\n ऑ: 'oi',\n ऒ: 'oii',\n ऊ: 'uu',\n औ: 'ou',\n उ: 'u',\n ब: 'B',\n भ: 'Bha',\n च: 'Ca',\n छ: 'Chha',\n ड: 'Da',\n ढ: 'Dha',\n फ: 'Fa',\n ग: 'Ga',\n घ: 'Gha',\n ग़: 'Ghi',\n ह: 'Ha',\n ज: 'Ja',\n झ: 'Jha',\n क: 'Ka',\n ख: 'Kha',\n ख़: 'Khi',\n ल: 'L',\n ळ: 'Li',\n ऌ: 'Li',\n ऴ: 'Lii',\n ॡ: 'Lii',\n म: 'Ma',\n न: 'Na',\n ङ: 'Na',\n ञ: 'Nia',\n ण: 'Nae',\n ऩ: 'Ni',\n ॐ: 'oms',\n प: 'Pa',\n क़: 'Qi',\n र: 'Ra',\n ऋ: 'Ri',\n ॠ: 'Ri',\n ऱ: 'Ri',\n स: 'Sa',\n श: 'Sha',\n ष: 'Shha',\n ट: 'Ta',\n त: 'Ta',\n ठ: 'Tha',\n द: 'Tha',\n थ: 'Tha',\n ध: 'Thha',\n ड़: 'ugDha',\n ढ़: 'ugDhha',\n व: 'Va',\n य: 'Ya',\n य़: 'Yi',\n ज़: 'Za',\n // azerbaijani\n ə: 'e',\n Ə: 'E',\n // georgian\n ა: 'a',\n ბ: 'b',\n გ: 'g',\n დ: 'd',\n ე: 'e',\n ვ: 'v',\n ზ: 'z',\n თ: 't',\n ი: 'i',\n კ: 'k',\n ლ: 'l',\n მ: 'm',\n ნ: 'n',\n ო: 'o',\n პ: 'p',\n ჟ: 'zh',\n რ: 'r',\n ს: 's',\n ტ: 't',\n უ: 'u',\n ფ: 'p',\n ქ: 'k',\n ღ: 'gh',\n ყ: 'q',\n შ: 'sh',\n ჩ: 'ch',\n ც: 'ts',\n ძ: 'dz',\n წ: 'ts',\n ჭ: 'ch',\n ხ: 'kh',\n ჯ: 'j',\n ჰ: 'h',\n // hebrew\n ב: 'v',\n גּ: 'g',\n ג: 'g',\n ד: 'd',\n דּ: 'd',\n ה: 'h',\n ו: 'v',\n ז: 'z',\n ח: 'h',\n ט: 't',\n י: 'y',\n כ: 'kh',\n ך: 'kh',\n ל: 'l',\n מ: 'm',\n ם: 'm',\n נ: 'n',\n ן: 'n',\n ס: 's',\n פ: 'f',\n ף: 'f',\n ץ: 'ts',\n צ: 'ts',\n ק: 'k',\n ר: 'r',\n תּ: 't',\n ת: 't'\n }\n\n slug.charmap = Object.assign({}, initialCharmap)\n slug.multicharmap = Object.assign({}, initialMulticharmap)\n slug.defaults = {\n charmap: slug.charmap,\n mode: 'pretty',\n modes: {\n rfc3986: {\n replacement: '-',\n remove: null,\n lower: true,\n charmap: slug.charmap,\n multicharmap: slug.multicharmap,\n trim: true\n },\n pretty: {\n replacement: '-',\n remove: null,\n lower: true,\n charmap: slug.charmap,\n multicharmap: slug.multicharmap,\n trim: true\n }\n },\n multicharmap: slug.multicharmap,\n fallback: true\n }\n\n slug.reset = function () {\n slug.defaults.modes.rfc3986.charmap = slug.defaults.modes.pretty.charmap = slug.charmap = slug.defaults.charmap = Object.assign({}, initialCharmap)\n slug.defaults.modes.rfc3986.multicharmap = slug.defaults.modes.pretty.multicharmap = slug.multicharmap = slug.defaults.multicharmap = Object.assign({}, initialMulticharmap)\n defaultLocale = ''\n }\n\n slug.extend = function (customMap) {\n const keys = Object.keys(customMap)\n const multi = {}\n const single = {}\n for (let i = 0; i < keys.length; i++) {\n if (keys[i].length > 1) {\n multi[keys[i]] = customMap[keys[i]]\n } else {\n single[keys[i]] = customMap[keys[i]]\n }\n }\n Object.assign(slug.charmap, single)\n Object.assign(slug.multicharmap, multi)\n }\n\n slug.setLocale = function (locale) {\n defaultLocale = locales[locale] || {}\n }\n\n if (typeof module !== 'undefined' && module.exports) { // CommonJS\n module.exports = slug\n } else { // Script tag\n root.slug = slug\n }\n}(this))\n","import { AxiosRequestConfig } from \"axios\";\nimport { IS_PROD, VITE_API_KEY, VITE_API_SERVER } from \"config\";\nimport slug from \"slug\";\n\ninterface makeUrlInterface {\n id?: number,\n server?: string,\n objectMethod?: string,\n query?: object,\n}\n\n\n/*\n * util function that generates a url string from a base url and a query object\n */\nexport function makeUrl(path: string, params?: makeUrlInterface) {\n params = params || {};\n\n // Base data\n const serverUrl = params.server || VITE_API_SERVER;\n const paths = [serverUrl, 'api', 'v2', path];\n\n // Detail view\n if (params.id) {\n paths.push(params.id.toString());\n }\n\n // append object method to the path\n if (params.objectMethod) {\n paths.push(params.objectMethod);\n }\n\n paths.push('');\n\n // Query parameters\n if (params.query) {\n const queryList = [];\n for (const key in params.query) {\n if (Object.hasOwn(params.query, key)) {\n // @ts-ignore\n queryList.push(`${encodeURIComponent(key)}=${encodeURIComponent(params.query[key])}`);\n }\n }\n paths.pop();\n paths.push(`?${queryList.join('&')}`);\n }\n\n return paths.join('/');\n}\n\n\nexport enum WgerLink {\n DASHBOARD,\n\n ROUTINE_OVERVIEW,\n ROUTINE_DETAIL,\n ROUTINE_EDIT,\n ROUTINE_DETAIL_TABLE,\n ROUTINE_EDIT_PROGRESSION,\n ROUTINE_ADD,\n ROUTINE_LOGS_OVERVIEW,\n ROUTINE_STATS_OVERVIEW,\n ROUTINE_PDF_TABLE,\n ROUTINE_PDF_LOGS,\n ROUTINE_ICAL,\n ROUTINE_COPY,\n ROUTINE_ADD_LOG,\n\n TEMPLATE_DETAIL,\n PRIVATE_TEMPLATE_OVERVIEW,\n PUBLIC_TEMPLATE_OVERVIEW,\n\n EXERCISE_DETAIL,\n EXERCISE_OVERVIEW,\n EXERCISE_CONTRIBUTE,\n\n WEIGHT_OVERVIEW,\n WEIGHT_ADD,\n\n MEASUREMENT_OVERVIEW,\n MEASUREMENT_DETAIL,\n\n NUTRITION_OVERVIEW,\n NUTRITION_DETAIL,\n NUTRITION_PLAN_PDF,\n NUTRITION_PLAN_COPY,\n NUTRITION_DIARY,\n\n INGREDIENT_DETAIL,\n\n CALENDAR\n}\n\ntype UrlParams = { id: number, id2?: number, slug?: string, date?: string };\n\n\n/*\n * Util function that generates a clickable url\n *\n * These URLs need to be kept in sync with the ones used in django\n */\nexport function makeLink(link: WgerLink, language?: string, params?: UrlParams): string {\n\n language = language || 'en-us';\n\n // If the name is in the form of \"en-US\", remove the country code since\n // our django app can't work with that at the moment.\n const langShort = language.split('-')[0];\n\n switch (link) {\n // Workout routines\n case WgerLink.ROUTINE_OVERVIEW:\n return `/${langShort}/routine/overview`;\n case WgerLink.ROUTINE_DETAIL:\n return `/${langShort}/routine/${params!.id}/view`;\n case WgerLink.ROUTINE_DETAIL_TABLE:\n return `/${langShort}/routine/${params!.id}/table`;\n case WgerLink.ROUTINE_EDIT:\n return `/${langShort}/routine/${params!.id}/edit`;\n case WgerLink.ROUTINE_EDIT_PROGRESSION:\n return `/${langShort}/routine/${params!.id}/edit/progression/${params!.id2}`;\n case WgerLink.ROUTINE_ADD:\n return `/${langShort}/routine/add`;\n case WgerLink.ROUTINE_COPY:\n return `/${langShort}/routine/${params!.id}/copy`;\n case WgerLink.ROUTINE_PDF_TABLE:\n return `/${langShort}/routine/${params!.id}/pdf/table`;\n case WgerLink.ROUTINE_PDF_LOGS:\n return `/${langShort}/routine/${params!.id}/pdf/log`;\n case WgerLink.ROUTINE_ICAL:\n return `/${langShort}/routine/${params!.id}/ical`;\n case WgerLink.ROUTINE_LOGS_OVERVIEW:\n return `/${langShort}/routine/${params!.id}/logs`;\n case WgerLink.ROUTINE_STATS_OVERVIEW:\n return `/${langShort}/routine/${params!.id}/statistics`;\n case WgerLink.ROUTINE_ADD_LOG:\n return `/${langShort}/routine/${params!.id}/day/${params!.id2}/add-logs`;\n case WgerLink.CALENDAR:\n return `/${langShort}/routine/calendar`;\n // Templates\n case WgerLink.TEMPLATE_DETAIL:\n return `/${langShort}/routine/templates/${params!.id}/view`;\n case WgerLink.PRIVATE_TEMPLATE_OVERVIEW:\n return `/${langShort}/routine/templates/overview/private`;\n case WgerLink.PUBLIC_TEMPLATE_OVERVIEW:\n return `/${langShort}/routine/templates/overview/public`;\n\n // Exercises\n case WgerLink.EXERCISE_CONTRIBUTE:\n return `/${langShort}/exercise/contribute`;\n\n case WgerLink.EXERCISE_DETAIL:\n if (params!.slug) {\n return `/${langShort}/exercise/${params!.id}/view/${slug(params!.slug)}`;\n } else {\n return `/${langShort}/exercise/${params!.id}/view`;\n }\n\n case WgerLink.EXERCISE_OVERVIEW:\n return `/${langShort}/exercise/overview`;\n\n // Weight\n case WgerLink.WEIGHT_OVERVIEW:\n return `/${langShort}/weight/overview`;\n case WgerLink.WEIGHT_ADD:\n return `/${langShort}/weight/add`;\n\n // Measurements\n case WgerLink.MEASUREMENT_OVERVIEW:\n return `/${langShort}/measurement/overview`;\n case WgerLink.MEASUREMENT_DETAIL:\n return `/${langShort}/measurement/category/${params!.id}`;\n\n // Nutrition\n case WgerLink.NUTRITION_OVERVIEW:\n return `/${langShort}/nutrition/overview`;\n case WgerLink.NUTRITION_DETAIL:\n return `/${langShort}/nutrition/${params!.id}/view`;\n case WgerLink.NUTRITION_DIARY:\n return `/${langShort}/nutrition/${params!.id}/${params!.date}`;\n case WgerLink.NUTRITION_PLAN_PDF:\n return `/${langShort}/nutrition/${params!.id}/pdf`;\n case WgerLink.NUTRITION_PLAN_COPY:\n return `/${langShort}/nutrition/${params!.id}/copy`;\n\n case WgerLink.INGREDIENT_DETAIL:\n return `/${langShort}/nutrition/ingredient/${params!.id}/view`;\n\n // Dashboard\n case WgerLink.DASHBOARD:\n default:\n return \"/\";\n }\n}\n\n/*\n * Read cookie from browser\n *\n * from https://docs.djangoproject.com/en/3.2/ref/csrf/#ajax\n */\nfunction getCookie(name: string) {\n let cookieValue = null;\n if (document.cookie && document.cookie !== '') {\n const cookies = document.cookie.split(';');\n for (let i = 0; i < cookies.length; i++) {\n const cookie = cookies[i].trim();\n // Does this cookie string begin with the name we want?\n if (cookie.substring(0, name.length + 1) === (name + '=')) {\n cookieValue = decodeURIComponent(cookie.substring(name.length + 1));\n break;\n }\n }\n }\n return cookieValue;\n}\n\n/*\n * util function that generates the necessary headers\n *\n * Only during production when the script is embedded in the django application\n * do we need to add the CSRF token to the headers\n */\nexport function makeHeader(token?: string) {\n token = token || VITE_API_KEY;\n const DJANGO_CSRF_COOKIE = 'csrftoken';\n\n const out: AxiosRequestConfig['headers'] = {};\n out['Content-Type'] = 'application/json';\n\n if (token) {\n out['Authorization'] = `Token ${token}`;\n }\n\n const csrfCookie = getCookie(DJANGO_CSRF_COOKIE);\n if (IS_PROD && csrfCookie != undefined) {\n out['X-CSRFToken'] = csrfCookie;\n }\n\n return out;\n}\n\n","import axios from 'axios';\nimport { WeightEntry } from \"components/BodyWeight/model\";\nimport { ApiBodyWeightType } from 'types';\nimport { makeHeader, makeUrl } from \"utils/url\";\nimport { FilterType } from '../components/BodyWeight/widgets/FilterButtons';\nimport { calculatePastDate } from '../utils/date';\nimport { ResponseType } from \"./responseType\";\n\nexport const WEIGHT_PATH = 'weightentry';\n\n/*\n * Fetch weight entries based on filter value\n */\nexport const getWeights = async (filter: FilterType = ''): Promise<WeightEntry[]> => {\n\n // eslint-disable-next-line camelcase\n const date__gte = calculatePastDate(filter);\n\n // eslint-disable-next-line camelcase\n const url = makeUrl(WEIGHT_PATH, { query: { ordering: '-date', limit: 900, ...(date__gte && { date__gte }) } });\n const { data: receivedWeights } = await axios.get<ResponseType<ApiBodyWeightType>>(url, {\n headers: makeHeader(),\n });\n return receivedWeights.results.map(weight => WeightEntry.fromJson(weight));\n};\n\n/*\n * Delete a weight entry\n */\nexport const deleteWeight = async (id: number): Promise<number> => {\n const response = await axios.delete<number>(makeUrl(WEIGHT_PATH, { id: id }), {\n headers: makeHeader(),\n });\n\n return response.status;\n};\n\n/*\n * Update a weight entry\n */\nexport const updateWeight = async (entry: WeightEntry): Promise<WeightEntry> => {\n const response = await axios.patch(makeUrl(WEIGHT_PATH, { id: entry.id }), entry.toJson(), {\n headers: makeHeader(),\n });\n\n return WeightEntry.fromJson(response);\n};\n\n/*\n * Add a new weight entry\n */\nexport const createWeight = async (entry: WeightEntry): Promise<WeightEntry> => {\n const response = await axios.post(makeUrl(WEIGHT_PATH,), entry.toJson(), {\n headers: makeHeader(),\n });\n\n return WeightEntry.fromJson(response.data);\n};\n","const MAX_LENGTH = 22;\n\nexport function truncateLongNames(name: string, maxLength = MAX_LENGTH): string {\n return name.length > maxLength ? name.slice(0, maxLength) + '…' : name;\n}\n\n// Replace whitespace and parenthesis with underscores and make lowercase\n//\n// Note this function is used to generate the translation keys for the exercise categories\n// etc. so they can be used as keys in the translation files. Don't change the implementation\n// of this function without updating its counterpart in extract-i18n.py\nexport function makeServerKey(name: string): string {\n return name.toLowerCase()\n .replace(/\\s/g, '_')\n .replace('(', '_')\n .replace(')', '_')\n .replace('-', '_');\n}\n\n// Returns the key used for the translation of the given exercise data\nexport function getTranslationKey(name: string | undefined): string {\n if (name === undefined) {\n console.warn(\"called getTranslationKey with undefined name\");\n return '';\n }\n\n return `server.${makeServerKey(name)}`;\n}","import i18n from 'i18next';\nimport { Adapter } from \"utils/Adapter\";\nimport { getTranslationKey } from \"utils/strings\";\n\nexport class Muscle {\n constructor(\n public id: number,\n public name: string,\n public nameEn: string,\n public isFront: boolean\n ) {\n }\n\n public get translatedName(): string {\n return i18n.t(getTranslationKey(this.nameEn), { defaultValue: this.nameEn });\n }\n\n // Return the name and English name of the muscle, if available.\n public getName(): string {\n if (this.nameEn) {\n return `${this.name} (${this.translatedName})`;\n } else {\n return this.name;\n }\n }\n\n}\n\nexport class MuscleAdapter implements Adapter<Muscle> {\n fromJson(item: any): Muscle {\n return new Muscle(\n item.id,\n item.name,\n item.name_en,\n item.is_front\n );\n }\n\n toJson(item: Muscle) {\n return {};\n }\n}","import axios from 'axios';\nimport { Muscle, MuscleAdapter } from \"components/Exercises/models/muscle\";\nimport { ApiMuscleType } from 'types';\nimport { makeHeader, makeUrl } from \"utils/url\";\nimport { ResponseType } from \"./responseType\";\n\nexport const MUSCLES_PATH = 'muscle';\n\n/*\n * Fetch all muscles\n */\nexport const getMuscles = async (): Promise<Muscle[]> => {\n const url = makeUrl(MUSCLES_PATH);\n const { data: receivedMuscles } = await axios.get<ResponseType<ApiMuscleType>>(url, {\n headers: makeHeader(),\n });\n const adapter = new MuscleAdapter();\n return receivedMuscles.results.map(m => adapter.fromJson(m));\n};\n\n","const {\n slice,\n forEach\n} = [];\nfunction defaults(obj) {\n forEach.call(slice.call(arguments, 1), source => {\n if (source) {\n for (const prop in source) {\n if (obj[prop] === undefined) obj[prop] = source[prop];\n }\n }\n });\n return obj;\n}\nfunction hasXSS(input) {\n if (typeof input !== 'string') return false;\n\n // Common XSS attack patterns\n const xssPatterns = [/<\\s*script.*?>/i, /<\\s*\\/\\s*script\\s*>/i, /<\\s*img.*?on\\w+\\s*=/i, /<\\s*\\w+\\s*on\\w+\\s*=.*?>/i, /javascript\\s*:/i, /vbscript\\s*:/i, /expression\\s*\\(/i, /eval\\s*\\(/i, /alert\\s*\\(/i, /document\\.cookie/i, /document\\.write\\s*\\(/i, /window\\.location/i, /innerHTML/i];\n return xssPatterns.some(pattern => pattern.test(input));\n}\n\n// eslint-disable-next-line no-control-regex\nconst fieldContentRegExp = /^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/;\nconst serializeCookie = function (name, val) {\n let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {\n path: '/'\n };\n const opt = options;\n const value = encodeURIComponent(val);\n let str = `${name}=${value}`;\n if (opt.maxAge > 0) {\n const maxAge = opt.maxAge - 0;\n if (Number.isNaN(maxAge)) throw new Error('maxAge should be a Number');\n str += `; Max-Age=${Math.floor(maxAge)}`;\n }\n if (opt.domain) {\n if (!fieldContentRegExp.test(opt.domain)) {\n throw new TypeError('option domain is invalid');\n }\n str += `; Domain=${opt.domain}`;\n }\n if (opt.path) {\n if (!fieldContentRegExp.test(opt.path)) {\n throw new TypeError('option path is invalid');\n }\n str += `; Path=${opt.path}`;\n }\n if (opt.expires) {\n if (typeof opt.expires.toUTCString !== 'function') {\n throw new TypeError('option expires is invalid');\n }\n str += `; Expires=${opt.expires.toUTCString()}`;\n }\n if (opt.httpOnly) str += '; HttpOnly';\n if (opt.secure) str += '; Secure';\n if (opt.sameSite) {\n const sameSite = typeof opt.sameSite === 'string' ? opt.sameSite.toLowerCase() : opt.sameSite;\n switch (sameSite) {\n case true:\n str += '; SameSite=Strict';\n break;\n case 'lax':\n str += '; SameSite=Lax';\n break;\n case 'strict':\n str += '; SameSite=Strict';\n break;\n case 'none':\n str += '; SameSite=None';\n break;\n default:\n throw new TypeError('option sameSite is invalid');\n }\n }\n if (opt.partitioned) str += '; Partitioned';\n return str;\n};\nconst cookie = {\n create(name, value, minutes, domain) {\n let cookieOptions = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {\n path: '/',\n sameSite: 'strict'\n };\n if (minutes) {\n cookieOptions.expires = new Date();\n cookieOptions.expires.setTime(cookieOptions.expires.getTime() + minutes * 60 * 1000);\n }\n if (domain) cookieOptions.domain = domain;\n document.cookie = serializeCookie(name, value, cookieOptions);\n },\n read(name) {\n const nameEQ = `${name}=`;\n const ca = document.cookie.split(';');\n for (let i = 0; i < ca.length; i++) {\n let c = ca[i];\n while (c.charAt(0) === ' ') c = c.substring(1, c.length);\n if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\n }\n return null;\n },\n remove(name, domain) {\n this.create(name, '', -1, domain);\n }\n};\nvar cookie$1 = {\n name: 'cookie',\n // Deconstruct the options object and extract the lookupCookie property\n lookup(_ref) {\n let {\n lookupCookie\n } = _ref;\n if (lookupCookie && typeof document !== 'undefined') {\n return cookie.read(lookupCookie) || undefined;\n }\n return undefined;\n },\n // Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties\n cacheUserLanguage(lng, _ref2) {\n let {\n lookupCookie,\n cookieMinutes,\n cookieDomain,\n cookieOptions\n } = _ref2;\n if (lookupCookie && typeof document !== 'undefined') {\n cookie.create(lookupCookie, lng, cookieMinutes, cookieDomain, cookieOptions);\n }\n }\n};\n\nvar querystring = {\n name: 'querystring',\n // Deconstruct the options object and extract the lookupQuerystring property\n lookup(_ref) {\n let {\n lookupQuerystring\n } = _ref;\n let found;\n if (typeof window !== 'undefined') {\n let {\n search\n } = window.location;\n if (!window.location.search && window.location.hash?.indexOf('?') > -1) {\n search = window.location.hash.substring(window.location.hash.indexOf('?'));\n }\n const query = search.substring(1);\n const params = query.split('&');\n for (let i = 0; i < params.length; i++) {\n const pos = params[i].indexOf('=');\n if (pos > 0) {\n const key = params[i].substring(0, pos);\n if (key === lookupQuerystring) {\n found = params[i].substring(pos + 1);\n }\n }\n }\n }\n return found;\n }\n};\n\nvar hash = {\n name: 'hash',\n // Deconstruct the options object and extract the lookupHash property and the lookupFromHashIndex property\n lookup(_ref) {\n let {\n lookupHash,\n lookupFromHashIndex\n } = _ref;\n let found;\n if (typeof window !== 'undefined') {\n const {\n hash\n } = window.location;\n if (hash && hash.length > 2) {\n const query = hash.substring(1);\n if (lookupHash) {\n const params = query.split('&');\n for (let i = 0; i < params.length; i++) {\n const pos = params[i].indexOf('=');\n if (pos > 0) {\n const key = params[i].substring(0, pos);\n if (key === lookupHash) {\n found = params[i].substring(pos + 1);\n }\n }\n }\n }\n if (found) return found;\n if (!found && lookupFromHashIndex > -1) {\n const language = hash.match(/\\/([a-zA-Z-]*)/g);\n if (!Array.isArray(language)) return undefined;\n const index = typeof lookupFromHashIndex === 'number' ? lookupFromHashIndex : 0;\n return language[index]?.replace('/', '');\n }\n }\n }\n return found;\n }\n};\n\nlet hasLocalStorageSupport = null;\nconst localStorageAvailable = () => {\n if (hasLocalStorageSupport !== null) return hasLocalStorageSupport;\n try {\n hasLocalStorageSupport = typeof window !== 'undefined' && window.localStorage !== null;\n if (!hasLocalStorageSupport) {\n return false;\n }\n const testKey = 'i18next.translate.boo';\n window.localStorage.setItem(testKey, 'foo');\n window.localStorage.removeItem(testKey);\n } catch (e) {\n hasLocalStorageSupport = false;\n }\n return hasLocalStorageSupport;\n};\nvar localStorage = {\n name: 'localStorage',\n // Deconstruct the options object and extract the lookupLocalStorage property\n lookup(_ref) {\n let {\n lookupLocalStorage\n } = _ref;\n if (lookupLocalStorage && localStorageAvailable()) {\n return window.localStorage.getItem(lookupLocalStorage) || undefined; // Undefined ensures type consistency with the previous version of this function\n }\n return undefined;\n },\n // Deconstruct the options object and extract the lookupLocalStorage property\n cacheUserLanguage(lng, _ref2) {\n let {\n lookupLocalStorage\n } = _ref2;\n if (lookupLocalStorage && localStorageAvailable()) {\n window.localStorage.setItem(lookupLocalStorage, lng);\n }\n }\n};\n\nlet hasSessionStorageSupport = null;\nconst sessionStorageAvailable = () => {\n if (hasSessionStorageSupport !== null) return hasSessionStorageSupport;\n try {\n hasSessionStorageSupport = typeof window !== 'undefined' && window.sessionStorage !== null;\n if (!hasSessionStorageSupport) {\n return false;\n }\n const testKey = 'i18next.translate.boo';\n window.sessionStorage.setItem(testKey, 'foo');\n window.sessionStorage.removeItem(testKey);\n } catch (e) {\n hasSessionStorageSupport = false;\n }\n return hasSessionStorageSupport;\n};\nvar sessionStorage = {\n name: 'sessionStorage',\n lookup(_ref) {\n let {\n lookupSessionStorage\n } = _ref;\n if (lookupSessionStorage && sessionStorageAvailable()) {\n return window.sessionStorage.getItem(lookupSessionStorage) || undefined;\n }\n return undefined;\n },\n cacheUserLanguage(lng, _ref2) {\n let {\n lookupSessionStorage\n } = _ref2;\n if (lookupSessionStorage && sessionStorageAvailable()) {\n window.sessionStorage.setItem(lookupSessionStorage, lng);\n }\n }\n};\n\nvar navigator$1 = {\n name: 'navigator',\n lookup(options) {\n const found = [];\n if (typeof navigator !== 'undefined') {\n const {\n languages,\n userLanguage,\n language\n } = navigator;\n if (languages) {\n // chrome only; not an array, so can't use .push.apply instead of iterating\n for (let i = 0; i < languages.length; i++) {\n found.push(languages[i]);\n }\n }\n if (userLanguage) {\n found.push(userLanguage);\n }\n if (language) {\n found.push(language);\n }\n }\n return found.length > 0 ? found : undefined;\n }\n};\n\nvar htmlTag = {\n name: 'htmlTag',\n // Deconstruct the options object and extract the htmlTag property\n lookup(_ref) {\n let {\n htmlTag\n } = _ref;\n let found;\n const internalHtmlTag = htmlTag || (typeof document !== 'undefined' ? document.documentElement : null);\n if (internalHtmlTag && typeof internalHtmlTag.getAttribute === 'function') {\n found = internalHtmlTag.getAttribute('lang');\n }\n return found;\n }\n};\n\nvar path = {\n name: 'path',\n // Deconstruct the options object and extract the lookupFromPathIndex property\n lookup(_ref) {\n let {\n lookupFromPathIndex\n } = _ref;\n if (typeof window === 'undefined') return undefined;\n const language = window.location.pathname.match(/\\/([a-zA-Z-]*)/g);\n if (!Array.isArray(language)) return undefined;\n const index = typeof lookupFromPathIndex === 'number' ? lookupFromPathIndex : 0;\n return language[index]?.replace('/', '');\n }\n};\n\nvar subdomain = {\n name: 'subdomain',\n lookup(_ref) {\n let {\n lookupFromSubdomainIndex\n } = _ref;\n // If given get the subdomain index else 1\n const internalLookupFromSubdomainIndex = typeof lookupFromSubdomainIndex === 'number' ? lookupFromSubdomainIndex + 1 : 1;\n // get all matches if window.location. is existing\n // first item of match is the match itself and the second is the first group match which should be the first subdomain match\n // is the hostname no public domain get the or option of localhost\n const language = typeof window !== 'undefined' && window.location?.hostname?.match(/^(\\w{2,5})\\.(([a-z0-9-]{1,63}\\.[a-z]{2,6})|localhost)/i);\n\n // if there is no match (null) return undefined\n if (!language) return undefined;\n // return the given group match\n return language[internalLookupFromSubdomainIndex];\n }\n};\n\n// some environments, throws when accessing document.cookie\nlet canCookies = false;\ntry {\n // eslint-disable-next-line no-unused-expressions\n document.cookie;\n canCookies = true;\n // eslint-disable-next-line no-empty\n} catch (e) {}\nconst order = ['querystring', 'cookie', 'localStorage', 'sessionStorage', 'navigator', 'htmlTag'];\nif (!canCookies) order.splice(1, 1);\nconst getDefaults = () => ({\n order,\n lookupQuerystring: 'lng',\n lookupCookie: 'i18next',\n lookupLocalStorage: 'i18nextLng',\n lookupSessionStorage: 'i18nextLng',\n // cache user language\n caches: ['localStorage'],\n excludeCacheFor: ['cimode'],\n // cookieMinutes: 10,\n // cookieDomain: 'myDomain'\n\n convertDetectedLanguage: l => l\n});\nclass Browser {\n constructor(services) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n this.type = 'languageDetector';\n this.detectors = {};\n this.init(services, options);\n }\n init() {\n let services = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n languageUtils: {}\n };\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let i18nOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n this.services = services;\n this.options = defaults(options, this.options || {}, getDefaults());\n if (typeof this.options.convertDetectedLanguage === 'string' && this.options.convertDetectedLanguage.indexOf('15897') > -1) {\n this.options.convertDetectedLanguage = l => l.replace('-', '_');\n }\n\n // backwards compatibility\n if (this.options.lookupFromUrlIndex) this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex;\n this.i18nOptions = i18nOptions;\n this.addDetector(cookie$1);\n this.addDetector(querystring);\n this.addDetector(localStorage);\n this.addDetector(sessionStorage);\n this.addDetector(navigator$1);\n this.addDetector(htmlTag);\n this.addDetector(path);\n this.addDetector(subdomain);\n this.addDetector(hash);\n }\n addDetector(detector) {\n this.detectors[detector.name] = detector;\n return this;\n }\n detect() {\n let detectionOrder = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.options.order;\n let detected = [];\n detectionOrder.forEach(detectorName => {\n if (this.detectors[detectorName]) {\n let lookup = this.detectors[detectorName].lookup(this.options);\n if (lookup && typeof lookup === 'string') lookup = [lookup];\n if (lookup) detected = detected.concat(lookup);\n }\n });\n detected = detected.filter(d => d !== undefined && d !== null && !hasXSS(d)).map(d => this.options.convertDetectedLanguage(d));\n if (this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes) return detected; // new i18next v19.5.0\n return detected.length > 0 ? detected[0] : null; // a little backward compatibility\n }\n cacheUserLanguage(lng) {\n let caches = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.options.caches;\n if (!caches) return;\n if (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(lng) > -1) return;\n caches.forEach(cacheName => {\n if (this.detectors[cacheName]) this.detectors[cacheName].cacheUserLanguage(lng, this.options);\n });\n }\n}\nBrowser.type = 'languageDetector';\n\nexport { Browser as default };\n","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nvar arr = [];\nvar each = arr.forEach;\nvar slice = arr.slice;\nexport function defaults(obj) {\n each.call(slice.call(arguments, 1), function (source) {\n if (source) {\n for (var prop in source) {\n if (obj[prop] === undefined) obj[prop] = source[prop];\n }\n }\n });\n return obj;\n}\nexport function hasXMLHttpRequest() {\n return typeof XMLHttpRequest === 'function' || (typeof XMLHttpRequest === \"undefined\" ? \"undefined\" : _typeof(XMLHttpRequest)) === 'object';\n}\nfunction isPromise(maybePromise) {\n return !!maybePromise && typeof maybePromise.then === 'function';\n}\nexport function makePromise(maybePromise) {\n if (isPromise(maybePromise)) {\n return maybePromise;\n }\n return Promise.resolve(maybePromise);\n}","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nimport { hasXMLHttpRequest } from './utils.js';\nvar fetchApi = typeof fetch === 'function' ? fetch : undefined;\nif (typeof global !== 'undefined' && global.fetch) {\n fetchApi = global.fetch;\n} else if (typeof window !== 'undefined' && window.fetch) {\n fetchApi = window.fetch;\n}\nvar XmlHttpRequestApi;\nif (hasXMLHttpRequest()) {\n if (typeof global !== 'undefined' && global.XMLHttpRequest) {\n XmlHttpRequestApi = global.XMLHttpRequest;\n } else if (typeof window !== 'undefined' && window.XMLHttpRequest) {\n XmlHttpRequestApi = window.XMLHttpRequest;\n }\n}\nvar ActiveXObjectApi;\nif (typeof ActiveXObject === 'function') {\n if (typeof global !== 'undefined' && global.ActiveXObject) {\n ActiveXObjectApi = global.ActiveXObject;\n } else if (typeof window !== 'undefined' && window.ActiveXObject) {\n ActiveXObjectApi = window.ActiveXObject;\n }\n}\nif (typeof fetchApi !== 'function') fetchApi = undefined;\nif (!fetchApi && !XmlHttpRequestApi && !ActiveXObjectApi) {\n try {\n import('cross-fetch').then(function (mod) {\n fetchApi = mod.default;\n }).catch(function () {});\n } catch (e) {}\n}\nvar addQueryString = function addQueryString(url, params) {\n if (params && _typeof(params) === 'object') {\n var queryString = '';\n for (var paramName in params) {\n queryString += '&' + encodeURIComponent(paramName) + '=' + encodeURIComponent(params[paramName]);\n }\n if (!queryString) return url;\n url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);\n }\n return url;\n};\nvar fetchIt = function fetchIt(url, fetchOptions, callback, altFetch) {\n var resolver = function resolver(response) {\n if (!response.ok) return callback(response.statusText || 'Error', {\n status: response.status\n });\n response.text().then(function (data) {\n callback(null, {\n status: response.status,\n data: data\n });\n }).catch(callback);\n };\n if (altFetch) {\n var altResponse = altFetch(url, fetchOptions);\n if (altResponse instanceof Promise) {\n altResponse.then(resolver).catch(callback);\n return;\n }\n }\n if (typeof fetch === 'function') {\n fetch(url, fetchOptions).then(resolver).catch(callback);\n } else {\n fetchApi(url, fetchOptions).then(resolver).catch(callback);\n }\n};\nvar omitFetchOptions = false;\nvar requestWithFetch = function requestWithFetch(options, url, payload, callback) {\n if (options.queryStringParams) {\n url = addQueryString(url, options.queryStringParams);\n }\n var headers = _objectSpread({}, typeof options.customHeaders === 'function' ? options.customHeaders() : options.customHeaders);\n if (typeof window === 'undefined' && typeof global !== 'undefined' && typeof global.process !== 'undefined' && global.process.versions && global.process.versions.node) {\n headers['User-Agent'] = \"i18next-http-backend (node/\".concat(global.process.version, \"; \").concat(global.process.platform, \" \").concat(global.process.arch, \")\");\n }\n if (payload) headers['Content-Type'] = 'application/json';\n var reqOptions = typeof options.requestOptions === 'function' ? options.requestOptions(payload) : options.requestOptions;\n var fetchOptions = _objectSpread({\n method: payload ? 'POST' : 'GET',\n body: payload ? options.stringify(payload) : undefined,\n headers: headers\n }, omitFetchOptions ? {} : reqOptions);\n var altFetch = typeof options.alternateFetch === 'function' && options.alternateFetch.length >= 1 ? options.alternateFetch : undefined;\n try {\n fetchIt(url, fetchOptions, callback, altFetch);\n } catch (e) {\n if (!reqOptions || Object.keys(reqOptions).length === 0 || !e.message || e.message.indexOf('not implemented') < 0) {\n return callback(e);\n }\n try {\n Object.keys(reqOptions).forEach(function (opt) {\n delete fetchOptions[opt];\n });\n fetchIt(url, fetchOptions, callback, altFetch);\n omitFetchOptions = true;\n } catch (err) {\n callback(err);\n }\n }\n};\nvar requestWithXmlHttpRequest = function requestWithXmlHttpRequest(options, url, payload, callback) {\n if (payload && _typeof(payload) === 'object') {\n payload = addQueryString('', payload).slice(1);\n }\n if (options.queryStringParams) {\n url = addQueryString(url, options.queryStringParams);\n }\n try {\n var x = XmlHttpRequestApi ? new XmlHttpRequestApi() : new ActiveXObjectApi('MSXML2.XMLHTTP.3.0');\n x.open(payload ? 'POST' : 'GET', url, 1);\n if (!options.crossDomain) {\n x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n }\n x.withCredentials = !!options.withCredentials;\n if (payload) {\n x.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');\n }\n if (x.overrideMimeType) {\n x.overrideMimeType('application/json');\n }\n var h = options.customHeaders;\n h = typeof h === 'function' ? h() : h;\n if (h) {\n for (var i in h) {\n x.setRequestHeader(i, h[i]);\n }\n }\n x.onreadystatechange = function () {\n x.readyState > 3 && callback(x.status >= 400 ? x.statusText : null, {\n status: x.status,\n data: x.responseText\n });\n };\n x.send(payload);\n } catch (e) {\n console && console.log(e);\n }\n};\nvar request = function request(options, url, payload, callback) {\n if (typeof payload === 'function') {\n callback = payload;\n payload = undefined;\n }\n callback = callback || function () {};\n if (fetchApi && url.indexOf('file:') !== 0) {\n return requestWithFetch(options, url, payload, callback);\n }\n if (hasXMLHttpRequest() || typeof ActiveXObject === 'function') {\n return requestWithXmlHttpRequest(options, url, payload, callback);\n }\n callback(new Error('No fetch and no xhr implementation found!'));\n};\nexport default request;","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport { makePromise } from './utils.js';\nimport request from './request.js';\nvar getDefaults = function getDefaults() {\n return {\n loadPath: '/locales/{{lng}}/{{ns}}.json',\n addPath: '/locales/add/{{lng}}/{{ns}}',\n parse: function parse(data) {\n return JSON.parse(data);\n },\n stringify: JSON.stringify,\n parsePayload: function parsePayload(namespace, key, fallbackValue) {\n return _defineProperty({}, key, fallbackValue || '');\n },\n parseLoadPayload: function parseLoadPayload(languages, namespaces) {\n return undefined;\n },\n request: request,\n reloadInterval: typeof window !== 'undefined' ? false : 60 * 60 * 1000,\n customHeaders: {},\n queryStringParams: {},\n crossDomain: false,\n withCredentials: false,\n overrideMimeType: false,\n requestOptions: {\n mode: 'cors',\n credentials: 'same-origin',\n cache: 'default'\n }\n };\n};\nvar Backend = function () {\n function Backend(services) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n _classCallCheck(this, Backend);\n this.services = services;\n this.options = options;\n this.allOptions = allOptions;\n this.type = 'backend';\n this.init(services, options, allOptions);\n }\n return _createClass(Backend, [{\n key: \"init\",\n value: function init(services) {\n var _this = this;\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n this.services = services;\n this.options = _objectSpread(_objectSpread(_objectSpread({}, getDefaults()), this.options || {}), options);\n this.allOptions = allOptions;\n if (this.services && this.options.reloadInterval) {\n var timer = setInterval(function () {\n return _this.reload();\n }, this.options.reloadInterval);\n if (_typeof(timer) === 'object' && typeof timer.unref === 'function') timer.unref();\n }\n }\n }, {\n key: \"readMulti\",\n value: function readMulti(languages, namespaces, callback) {\n this._readAny(languages, languages, namespaces, namespaces, callback);\n }\n }, {\n key: \"read\",\n value: function read(language, namespace, callback) {\n this._readAny([language], language, [namespace], namespace, callback);\n }\n }, {\n key: \"_readAny\",\n value: function _readAny(languages, loadUrlLanguages, namespaces, loadUrlNamespaces, callback) {\n var _this2 = this;\n var loadPath = this.options.loadPath;\n if (typeof this.options.loadPath === 'function') {\n loadPath = this.options.loadPath(languages, namespaces);\n }\n loadPath = makePromise(loadPath);\n loadPath.then(function (resolvedLoadPath) {\n if (!resolvedLoadPath) return callback(null, {});\n var url = _this2.services.interpolator.interpolate(resolvedLoadPath, {\n lng: languages.join('+'),\n ns: namespaces.join('+')\n });\n _this2.loadUrl(url, callback, loadUrlLanguages, loadUrlNamespaces);\n });\n }\n }, {\n key: \"loadUrl\",\n value: function loadUrl(url, callback, languages, namespaces) {\n var _this3 = this;\n var lng = typeof languages === 'string' ? [languages] : languages;\n var ns = typeof namespaces === 'string' ? [namespaces] : namespaces;\n var payload = this.options.parseLoadPayload(lng, ns);\n this.options.request(this.options, url, payload, function (err, res) {\n if (res && (res.status >= 500 && res.status < 600 || !res.status)) return callback('failed loading ' + url + '; status code: ' + res.status, true);\n if (res && res.status >= 400 && res.status < 500) return callback('failed loading ' + url + '; status code: ' + res.status, false);\n if (!res && err && err.message) {\n var errorMessage = err.message.toLowerCase();\n var isNetworkError = ['failed', 'fetch', 'network', 'load'].find(function (term) {\n return errorMessage.indexOf(term) > -1;\n });\n if (isNetworkError) {\n return callback('failed loading ' + url + ': ' + err.message, true);\n }\n }\n if (err) return callback(err, false);\n var ret, parseErr;\n try {\n if (typeof res.data === 'string') {\n ret = _this3.options.parse(res.data, languages, namespaces);\n } else {\n ret = res.data;\n }\n } catch (e) {\n parseErr = 'failed parsing ' + url + ' to json';\n }\n if (parseErr) return callback(parseErr, false);\n callback(null, ret);\n });\n }\n }, {\n key: \"create\",\n value: function create(languages, namespace, key, fallbackValue, callback) {\n var _this4 = this;\n if (!this.options.addPath) return;\n if (typeof languages === 'string') languages = [languages];\n var payload = this.options.parsePayload(namespace, key, fallbackValue);\n var finished = 0;\n var dataArray = [];\n var resArray = [];\n languages.forEach(function (lng) {\n var addPath = _this4.options.addPath;\n if (typeof _this4.options.addPath === 'function') {\n addPath = _this4.options.addPath(lng, namespace);\n }\n var url = _this4.services.interpolator.interpolate(addPath, {\n lng: lng,\n ns: namespace\n });\n _this4.options.request(_this4.options, url, payload, function (data, res) {\n finished += 1;\n dataArray.push(data);\n resArray.push(res);\n if (finished === languages.length) {\n if (typeof callback === 'function') callback(dataArray, resArray);\n }\n });\n });\n }\n }, {\n key: \"reload\",\n value: function reload() {\n var _this5 = this;\n var _this$services = this.services,\n backendConnector = _this$services.backendConnector,\n languageUtils = _this$services.languageUtils,\n logger = _this$services.logger;\n var currentLanguage = backendConnector.language;\n if (currentLanguage && currentLanguage.toLowerCase() === 'cimode') return;\n var toLoad = [];\n var append = function append(lng) {\n var lngs = languageUtils.toResolveHierarchy(lng);\n lngs.forEach(function (l) {\n if (toLoad.indexOf(l) < 0) toLoad.push(l);\n });\n };\n append(currentLanguage);\n if (this.allOptions.preload) this.allOptions.preload.forEach(function (l) {\n return append(l);\n });\n toLoad.forEach(function (lng) {\n _this5.allOptions.ns.forEach(function (ns) {\n backendConnector.read(lng, ns, 'read', null, null, function (err, data) {\n if (err) logger.warn(\"loading namespace \".concat(ns, \" for language \").concat(lng, \" failed\"), err);\n if (!err && data) logger.log(\"loaded namespace \".concat(ns, \" for language \").concat(lng), data);\n backendConnector.loaded(\"\".concat(lng, \"|\").concat(ns), err, data);\n });\n });\n });\n }\n }]);\n}();\nBackend.type = 'backend';\nexport default Backend;","import { IS_PROD } from \"config\";\nimport i18n from \"i18next\";\nimport LanguageDetector from 'i18next-browser-languagedetector';\nimport Backend from 'i18next-http-backend';\nimport common from \"locales/en/translation.json\";\nimport { initReactI18next } from \"react-i18next\";\n\nexport const resources = {\n en: {\n common,\n },\n} as const;\n\ni18n\n .use(Backend)\n .use(LanguageDetector)\n .use(initReactI18next) // passes i18n down to react-i18next\n .init({\n\n load: 'languageOnly',\n\n // Options for the language detection\n // https://github.com/i18next/i18next-browser-languageDetector\n detection: {\n // order and from where user language should be detected\n order: ['path', 'navigator', 'htmlTag'],\n\n },\n\n fallbackLng: 'en',\n\n //lng: \"de\",\n // language to use, more information here: https://www.i18next.com/overview/configuration-options#languages-namespaces-resources\n // you can use the i18n.changeLanguage function to change the language manually: https://www.i18next.com/overview/api#changelanguage\n // if you're using a language detector, do not define the lng option\n\n interpolation: {\n escapeValue: false // not needed for react as it escapes by default\n },\n\n // During development the translation files are served from\n // locales/<lang>/<ns>.json but when copied over to the django site\n // (i.e.) production, the path is /static/react/locales/<lang>/<ns>.json\n backend: {\n loadPath:\n IS_PROD\n ? `/static/react/locales/{{lng}}/{{ns}}.json`\n : `/locales/{{lng}}/{{ns}}.json`\n },\n\n // TOOD: https://github.com/wger-project/react/issues/630\n //ns: [\"common\",],\n //defaultNS: 'common',\n //resources\n });\n\nexport default i18n;","import i18n from \"i18n\";\nimport { Adapter } from \"utils/Adapter\";\nimport { getTranslationKey } from \"utils/strings\";\n\nexport class Equipment {\n\n constructor(\n public id: number,\n public name: string\n ) {\n }\n\n public get translatedName(): string {\n return i18n.t(getTranslationKey(this.name), { defaultValue: this.name });\n }\n}\n\nexport class EquipmentAdapter implements Adapter<Equipment> {\n fromJson(item: any): Equipment {\n return new Equipment(\n item.id,\n item.name,\n );\n }\n\n toJson(item: Equipment) {\n return {\n id: item.id,\n name: item.name,\n };\n }\n}","import axios from 'axios';\nimport { Equipment, EquipmentAdapter } from \"components/Exercises/models/equipment\";\nimport { ApiEquipmentType } from 'types';\nimport { makeHeader, makeUrl } from \"utils/url\";\nimport { ResponseType } from \"./responseType\";\n\nexport const EQUIPMENT_PATH = 'equipment';\n\n\n/*\n * Fetch all equipment\n */\nexport const getEquipment = async (): Promise<Equipment[]> => {\n const url = makeUrl(EQUIPMENT_PATH);\n const { data: receivedEquipment } = await axios.get<ResponseType<ApiEquipmentType>>(url, {\n headers: makeHeader(),\n });\n const adapter = new EquipmentAdapter();\n return receivedEquipment.results.map(e => adapter.fromJson(e));\n};\n","import i18n from \"i18n\";\nimport { Adapter } from \"utils/Adapter\";\nimport { getTranslationKey } from \"utils/strings\";\n\n\nexport class Category {\n\n constructor(\n public id: number,\n public name: string\n ) {\n }\n\n public get translatedName(): string {\n return i18n.t(getTranslationKey(this.name), { defaultValue: this.name });\n }\n}\n\n\nexport class CategoryAdapter implements Adapter<Category> {\n fromJson(item: any): Category {\n return new Category(\n item.id,\n item.name\n );\n }\n\n toJson(item: Category) {\n return {\n id: item.id,\n name: item.name,\n };\n }\n}","import axios from 'axios';\nimport { Category, CategoryAdapter } from \"components/Exercises/models/category\";\nimport { ApiCategoryType } from 'types';\nimport { makeHeader, makeUrl } from \"utils/url\";\nimport { ResponseType } from \"./responseType\";\n\nexport const CATEGORY_PATH = 'exercisecategory';\n\n\n/*\n * Fetch all categories\n */\nexport const getCategories = async (): Promise<Category[]> => {\n const url = makeUrl(CATEGORY_PATH);\n const { data: receivedCategories } = await axios.get<ResponseType<ApiCategoryType>>(url, {\n headers: makeHeader(),\n });\n const adapter = new CategoryAdapter();\n return receivedCategories.results.map(c => adapter.fromJson(c));\n};\n\n","import { Adapter } from \"utils/Adapter\";\n\nexport enum ImageStyle {\n LINE_ART = 1,\n THREE_D,\n LOW_POLY,\n PHOTO,\n OTHER,\n}\n\nexport class ExerciseImage {\n\n constructor(\n public id: number,\n public uuid: string,\n public url: string,\n public isMain: boolean) {\n }\n}\n\nexport class ExerciseImageAdapter implements Adapter<ExerciseImage> {\n fromJson(item: any): ExerciseImage {\n return new ExerciseImage(\n item.id,\n item.uuid,\n item.image,\n item.is_main\n );\n }\n\n // TODO: when uploading an image we have to send the file\n toJson(item: ExerciseImage) {\n return {\n id: item.id,\n image: item.url,\n // eslint-disable-next-line camelcase\n is_front: item.isMain\n };\n }\n}","import { ApiAliasType } from \"types\";\nimport { Adapter } from \"utils/Adapter\";\n\nexport class Alias {\n constructor(\n public id: number,\n public uuid: string,\n public alias: string,\n ) {\n }\n\n}\n\nexport class AliasAdapter implements Adapter<Alias> {\n fromJson(item: ApiAliasType): Alias {\n return new Alias(\n item.id,\n item.uuid,\n item.alias,\n );\n }\n\n toJson(item: Alias) {\n return {\n id: item.id,\n name: item.alias,\n };\n }\n}","import { Adapter } from \"utils/Adapter\";\n\nexport class Note {\n constructor(\n public id: number | null,\n public exercise: number,\n public note: string,\n ) {\n }\n}\n\nexport class NoteAdapter implements Adapter<Note> {\n fromJson(item: any): Note {\n return new Note(\n item.id,\n item.exercise,\n item.comment,\n );\n }\n\n toJson(item: Note) {\n return {\n id: item.id,\n comment: item.note,\n exercise: item.exercise\n };\n }\n}","import { Alias, AliasAdapter } from \"components/Exercises/models/alias\";\nimport { Note, NoteAdapter } from \"components/Exercises/models/note\";\nimport slug from \"slug\";\nimport { Adapter } from \"utils/Adapter\";\nimport { truncateLongNames } from \"utils/strings\";\n\n\nexport class Translation {\n\n notes: Note[] = [];\n aliases: Alias[] = [];\n authors: string[] = [];\n\n constructor(public id: number | null,\n public uuid: string | null,\n public name: string,\n public description: string,\n public language: number,\n notes?: Note[],\n aliases?: Alias[],\n authors?: string[]\n ) {\n if (notes) {\n this.notes = notes;\n }\n\n if (aliases) {\n this.aliases = aliases;\n }\n\n if (authors) {\n this.authors = authors;\n }\n }\n\n /**\n * Returns the first characters of an exercise name\n *\n * This is used in places where we need to display the exercise name in a\n * list or similar\n */\n get nameLong(): string {\n return truncateLongNames(this.name);\n }\n\n get nameSlug(): string {\n return slug(this.name);\n }\n}\n\n\nexport class TranslationAdapter implements Adapter<Translation> {\n fromJson(item: any): Translation {\n return new Translation(\n item.id,\n item.uuid,\n item.name,\n item.description,\n item.language,\n item.notes?.map((e: any) => (new NoteAdapter().fromJson(e))),\n item.aliases?.map((e: any) => (new AliasAdapter().fromJson(e))),\n item.author_history\n );\n }\n\n /**\n * Don't return all properties, since not all items can be updated (they would\n * be ignored by the server, but it's better to not send too much anyway)\n */\n toJson(item: Translation) {\n\n return {\n id: item.id,\n uuid: item.uuid,\n name: item.name,\n description: item.description,\n language: item.language,\n };\n }\n}","import { Adapter } from \"utils/Adapter\";\n\nexport class ExerciseVideo {\n\n constructor(\n public id: number,\n public uuid: string,\n public url: string,\n public isMain: boolean) {\n }\n}\n\nexport class ExerciseVideoAdapter implements Adapter<ExerciseVideo> {\n fromJson(item: any): ExerciseVideo {\n return new ExerciseVideo(\n item.id,\n item.uuid,\n item.video,\n item.is_main\n );\n }\n\n toJson(item: ExerciseVideo) {\n return {\n id: item.id,\n video: item.url,\n };\n }\n}","import { Adapter } from \"utils/Adapter\";\n\nexport class Language {\n\n constructor(\n public id: number,\n public nameShort: string,\n public nameLong: string\n ) {\n }\n}\n\n\nexport class LanguageAdapter implements Adapter<Language> {\n fromJson(item: any): Language {\n return new Language(\n item.id,\n item.short_name,\n item.full_name\n );\n }\n\n toJson(item: Language) {\n return {};\n }\n}","import { Language } from \"components/Exercises/models/language\";\nimport { MIN_ACCOUNT_AGE_TO_TRUST, TIME_ZONE } from \"config\";\n\nexport const ENGLISH_LANGUAGE_ID = 2;\nexport const ENGLISH_LANGUAGE_CODE = 'en';\nexport const ENGLISH_LANGUAGE_OBJ = new Language(ENGLISH_LANGUAGE_ID, ENGLISH_LANGUAGE_CODE, 'English');\n\nexport const MIN_ACCOUNT_AGE = MIN_ACCOUNT_AGE_TO_TRUST || 21;\n\n\nexport const REP_UNIT_REPETITIONS = 1;\nexport const REP_UNIT_TILL_FAILURE = 2;\n\nexport const WEIGHT_UNIT_KG = 1;\nexport const WEIGHT_UNIT_LB = 2;\n\n\nexport const QUERY_EXERCISES = 'exercises';\nexport const QUERY_EXERCISE_VARIATIONS = 'variations';\nexport const QUERY_EXERCISE_DETAIL = 'detail';\nexport const QUERY_LANGUAGES = 'languages';\nexport const QUERY_CATEGORIES = 'categories';\nexport const QUERY_EQUIPMENT = 'equipment';\nexport const QUERY_MUSCLES = 'muscles';\nexport const QUERY_NOTES = 'notes';\n\nexport const QUERY_PERMISSION = 'permission';\n\nexport const QUERY_MEASUREMENTS = 'measurements';\nexport const QUERY_MEASUREMENTS_CATEGORIES = 'measurements-categories';\n\n/*\n * Keys used for the queries\n *\n * These don't have any meaning, they just need to be globally unique\n */\nexport enum QueryKey {\n ROUTINE_OVERVIEW = 'routine-overview',\n ROUTINE_DETAIL = 'routine-detail',\n SESSION_SEARCH = 'session-search',\n SESSIONS_FULL = 'sessions-full',\n ROUTINE_LOGS = 'routine-logs',\n ROUTINE_LOG_DATA = 'routine-log-data',\n ROUTINE_STATS = 'routine-stats',\n ROUTINES_ACTIVE = 'routines-active',\n ROUTINES_SHALLOW = 'routines-shallow',\n PRIVATE_TEMPLATES = 'private-templates',\n PUBLIC_TEMPLATES = 'public-templates',\n\n NUTRITIONAL_PLANS = 'nutritional-plans',\n NUTRITIONAL_PLAN = 'nutritional-plan',\n NUTRITIONAL_PLAN_DIARY = 'nutritional-plan-diary',\n NUTRITIONAL_PLAN_LAST = 'nutritional-plan-last',\n INGREDIENT = 'ingredient',\n\n BODY_WEIGHT = 'body-weight',\n\n ROUTINE_WEIGHT_UNITS = 'weight-units',\n ROUTINE_REP_UNITS = 'rep-units',\n\n QUERY_PROFILE = 'profile',\n\n EXERCISES = 'exercises',\n EXERCISE_VARIATIONS = 'variations',\n EXERCISE_DETAIL = 'detail',\n LANGUAGES = 'languages',\n CATEGORIES = 'categories',\n EQUIPMENT = 'equipment',\n MUSCLES = 'muscles',\n QUERY_NOTES = 'notes',\n}\n\n/*\n * List of API endpoints\n */\nexport enum ApiPath {\n\n // Nutrition\n MEAL = 'meal',\n MEAL_ITEM = 'mealitem',\n NUTRITIONAL_DIARY = 'nutritiondiary',\n INGREDIENTINFO_PATH = 'ingredientinfo',\n INGREDIENT_SEARCH_PATH = 'ingredient/search',\n INGREDIENT_WEIGHT_UNIT = 'ingredientweightunit',\n\n // Routines\n ROUTINE = 'routine',\n WEIGHT_CONFIG = 'weight-config',\n MAX_WEIGHT_CONFIG = 'max-weight-config',\n REPETITIONS_CONFIG = 'repetitions-config',\n MAX_REPS_CONFIG = 'max-repetitions-config',\n RIR_CONFIG = 'rir-config',\n MAX_RIR_CONFIG = 'max-rir-config',\n NR_OF_SETS_CONFIG = 'sets-config',\n MAX_NR_OF_SETS_CONFIG = 'max-sets-config',\n REST_CONFIG = 'rest-config',\n MAX_REST_CONFIG = 'max-rest-config',\n DAY = 'day',\n SLOT = 'slot',\n SLOT_ENTRY = 'slot-entry',\n SESSION = 'workoutsession',\n\n WORKOUT_LOG = 'workoutlog',\n PRIVATE_TEMPLATE = 'templates',\n PUBLIC_TEMPLATE = 'public-templates',\n\n // Profile\n API_PROFILE_PATH = 'userprofile',\n}\n\n\nexport const API_MAX_PAGE_SIZE = '999';\n\nexport const API_RESULTS_PAGE_SIZE = '100';\n\n/*\n * List of colors to use in charts\n *\n * Use e.g. like LIST_OF_COLORS[key % LIST_OF_COLORS.length] so that there\n * are no errors when there are more categories than colors\n *\n * https://www.learnui.design/tools/data-color-picker.html#palette\n */\nexport const LIST_OF_COLORS8 = [\n \"#2a4c7d\",\n \"#5b5291\",\n \"#8e5298\",\n \"#bf5092\",\n \"#e7537e\",\n \"#ff6461\",\n \"#ff813d\",\n \"#ffa600\",\n];\nexport const LIST_OF_COLORS5 = [\n \"#2a4c7d\",\n \"#825298\",\n \"#d45089\",\n \"#ff6a59\",\n \"#ffa600\",\n];\nexport const LIST_OF_COLORS3 = [\n \"#2a4c7d\",\n \"#d45089\",\n \"#ffa600\",\n];\n\n\nexport const PAGINATION_OPTIONS = {\n pageSizeOptions: [5, 10, 25, 50, 100],\n pageSize: 10,\n};\n\n\nexport const TIMEZONE = TIME_ZONE || 'Europe/Berlin';\n\nexport const LANGUAGE_SHORT_ENGLISH = 'en';\n\nexport const SNACKBAR_AUTO_HIDE_DURATION = 3000;\n\nexport const DEBOUNCE_ROUTINE_FORMS = 500;","import { Category, CategoryAdapter, } from \"components/Exercises/models/category\";\nimport { Equipment, EquipmentAdapter, } from \"components/Exercises/models/equipment\";\nimport { ExerciseImage, ExerciseImageAdapter, } from \"components/Exercises/models/image\";\nimport { Language } from \"components/Exercises/models/language\";\nimport { Muscle, MuscleAdapter } from \"components/Exercises/models/muscle\";\nimport { Translation, TranslationAdapter } from \"components/Exercises/models/translation\";\nimport { ExerciseVideo, ExerciseVideoAdapter } from \"components/Exercises/models/video\";\nimport { Adapter } from \"utils/Adapter\";\nimport { ENGLISH_LANGUAGE_ID } from \"utils/consts\";\n\nexport class Exercise {\n translations: Translation[] = [];\n videos: ExerciseVideo[] = [];\n authors: string[] = [];\n\n constructor(\n public id: number | null,\n public uuid: string | null,\n public category: Category,\n public equipment: Equipment[],\n public muscles: Muscle[],\n public musclesSecondary: Muscle[],\n public images: ExerciseImage[],\n public variationId: number | null,\n translations?: Translation[],\n videos?: ExerciseVideo[],\n authors?: string[]\n /*\n license: number,\n licenseAuthorS: string[],\n */\n ) {\n if (translations) {\n this.translations = translations;\n }\n\n if (videos) {\n this.videos = videos;\n }\n\n if (authors) {\n this.authors = authors;\n }\n }\n\n // Returns the users translation or english as a fallback\n //\n // Note that we still check for the case that no english translation can be\n // found. While this can't happen for the \"regular\" wger server, other local\n // instances might have deleted the english translation or added new exercises\n\n /**\n * Returns a list with the available languages for this exercise\n */\n get availableLanguages(): number[] {\n return this.translations.map(t => t.language);\n }\n\n get mainImage(): ExerciseImage | undefined {\n return this.images.find(i => i.isMain);\n }\n\n get sideImages(): ExerciseImage[] {\n return this.images.filter(i => !i.isMain);\n }\n\n // without an English translation.\n getTranslation(userLanguage?: Language): Translation {\n const languageId = userLanguage != null ? userLanguage.id : ENGLISH_LANGUAGE_ID;\n\n let translation = this.translations.find(t => t.language === languageId);\n if (!translation) {\n translation = this.translations.find(t => t.language === ENGLISH_LANGUAGE_ID);\n }\n\n if (!translation) {\n //console.warn(`No translation found for exercise base ${this.uuid} (${this.id}) for language ${language}`);\n return this.translations[0];\n }\n return translation!;\n }\n\n}\n\n\nexport class ExerciseAdapter implements Adapter<Exercise> {\n /*\n * needs the items from exerciseinfo\n */\n fromJson(item: any): Exercise {\n const categoryAdapter = new CategoryAdapter();\n const equipmentAdapter = new EquipmentAdapter();\n const muscleAdapter = new MuscleAdapter();\n const imageAdapter = new ExerciseImageAdapter();\n const translationAdapter = new TranslationAdapter();\n const videoAdapter = new ExerciseVideoAdapter();\n\n const exercise = new Exercise(\n item.id,\n item.uuid,\n categoryAdapter.fromJson(item.category),\n item.equipment.map((e: any) => (equipmentAdapter.fromJson(e))),\n item.muscles.map((m: any) => (muscleAdapter.fromJson(m))),\n item.muscles_secondary.map((m: any) => (muscleAdapter.fromJson(m))),\n item.images.map((i: any) => (imageAdapter.fromJson(i))),\n item.variations,\n item.translations.map((t: any) => translationAdapter.fromJson(t)),\n item.videos.map((t: any) => videoAdapter.fromJson(t)),\n item.author_history\n );\n\n if (!exercise.translations.some(t => t.language === ENGLISH_LANGUAGE_ID)) {\n console.info(`No english translation found for exercise base ${exercise.uuid}!`);\n }\n\n if (exercise.translations.length === 0) {\n throw new Error(`No translations found for exercise base ${exercise.uuid}!`);\n }\n\n return exercise;\n }\n\n /**\n * Don't return all properties, since not all items can be updated (they would\n * be ignored by the server, but it's better to not send too much anyway)\n */\n toJson(item: Exercise) {\n return {\n id: item.id,\n uuid: item.uuid,\n category: item.category.id,\n equipment: item.equipment.map(e => e.id),\n muscles: item.muscles.map(m => m.id),\n // eslint-disable-next-line camelcase\n muscles_secondary: item.musclesSecondary.map(m => m.id),\n images: item.images.map(i => new ExerciseImageAdapter().toJson(i)),\n };\n }\n}\n\nexport type ImageFormData = {\n url: string;\n file: File;\n author: string;\n authorUrl: string;\n title: string,\n objectUrl: string,\n derivativeSourceUrl: string;\n style: string;\n};\n\n","import axios from 'axios';\nimport { Exercise, ExerciseAdapter } from \"components/Exercises/models/exercise\";\nimport { makeHeader, makeUrl } from \"utils/url\";\nimport { ResponseType } from \"./responseType\";\n\nexport const EXERCISE_INFO_PATH = 'exerciseinfo';\nexport const EXERCISE_PATH = 'exercise';\nexport const EXERCISE_SUBMISSION_PATH = 'exercise-submission';\n\n/*\n * Process the response from the server and return the exercise bases\n */\nexport function processExerciseApiData(data: any): Exercise[] {\n const adapter = new ExerciseAdapter();\n\n const out: Exercise[] = [];\n for (const baseData of data.results) {\n try {\n out.push(adapter.fromJson(baseData));\n } catch (e) {\n console.error('An error happened, skipping base:', e);\n }\n }\n return out;\n}\n\n\n/*\n * Fetch all exercise bases\n */\nexport const getExercises = async (): Promise<Exercise[]> => {\n const url = makeUrl(EXERCISE_INFO_PATH, { query: { limit: 900 } });\n const response = await axios.get<ResponseType<any>>(url, {\n headers: makeHeader(),\n });\n\n return processExerciseApiData(response.data);\n};\n\n\n/*\n * Fetch exercise with a particular ID\n */\nexport const getExercise = async (id: number): Promise<Exercise> => {\n const adapter = new ExerciseAdapter();\n const url = makeUrl(EXERCISE_INFO_PATH, { id: id });\n const response = await axios.get<ResponseType<any>>(url, {\n headers: makeHeader(),\n });\n\n return adapter.fromJson(response.data);\n};\n\n\n/*\n * Fetch exercise bases with a given variation ID\n */\nexport const getExercisesForVariation = async (id: number | null | undefined): Promise<Exercise[]> => {\n if (!id) {\n return [];\n }\n\n const url = makeUrl(EXERCISE_INFO_PATH, { query: { variations: id } });\n const response = await axios.get<ResponseType<any>>(url, {\n headers: makeHeader(),\n });\n\n return processExerciseApiData(response.data);\n};\n\n/*\n * Create a new exercise with all its sub-entities\n */\ntype ExerciseSubmissionProps = {\n categoryId: number,\n equipmentIds: number[],\n muscleIds: number[],\n secondaryMuscleIds: number[],\n}\ntype AliasSubmissionProps = {\n alias: string\n}\ntype NotesSubmissionProps = {\n comment: string\n}\ntype TranslationSubmissionProps = {\n name: string,\n description: string,\n language: number,\n aliases?: AliasSubmissionProps[],\n comments?: NotesSubmissionProps[]\n}\n\nexport type AddExerciseFullProps = {\n author?: string,\n exercise: ExerciseSubmissionProps,\n variations?: number | null,\n variationsConnectTo?: number | null,\n translations: TranslationSubmissionProps[],\n}\n\nexport const addFullExercise = async (data: AddExerciseFullProps): Promise<number> => {\n\n const url = makeUrl(EXERCISE_SUBMISSION_PATH);\n const payload = {\n category: data.exercise.categoryId,\n equipment: data.exercise.equipmentIds,\n muscles: data.exercise.muscleIds,\n // eslint-disable-next-line camelcase\n muscles_secondary: data.exercise.secondaryMuscleIds,\n // eslint-disable-next-line camelcase\n license_author: data.author ?? '',\n variations: data.variations ?? null,\n //eslint-disable-next-line camelcase\n variations_connect_to: data.variationsConnectTo ?? null,\n translations: [\n ...data.translations.map(t => ({\n name: t.name,\n description: t.description,\n language: t.language,\n //eslint-disable-next-line camelcase\n license_author: data.author ?? '',\n aliases: t.aliases ?? [],\n comments: t.comments ?? []\n })\n )\n ],\n };\n\n const result = await axios.post(\n url,\n payload,\n { headers: makeHeader() }\n );\n return result.data.id;\n};\n\n/*\n * Update an existing exercise\n */\ntype EditExerciseProps = {\n category?: number,\n equipment?: number[],\n muscles?: number[],\n muscles_secondary?: number[],\n variations?: number | null,\n license_author?: string | null\n}\nexport const editExercise = async (id: number, data: EditExerciseProps): Promise<number> => {\n\n const url = makeUrl(EXERCISE_PATH, { id: id });\n const response = await axios.patch(\n url,\n data,\n { headers: makeHeader() }\n );\n\n return response.status;\n};\n\n/*\n * Delete an existing exercise base\n */\nexport const deleteExercise = async (id: number, replacementUUID?: string): Promise<number> => {\n const params = replacementUUID === undefined\n ? { id: id }\n // eslint-disable-next-line camelcase\n : { id: id, query: { replaced_by: replacementUUID } };\n\n const url = makeUrl(EXERCISE_PATH, params);\n const response = await axios.delete(\n url,\n { headers: makeHeader() }\n );\n\n return response.status;\n};","import axios from 'axios';\nimport { Translation, TranslationAdapter } from \"components/Exercises/models/translation\";\nimport { ENGLISH_LANGUAGE_CODE, LANGUAGE_SHORT_ENGLISH } from \"utils/consts\";\nimport { makeHeader, makeUrl } from \"utils/url\";\nimport { ExerciseSearchResponse, ExerciseSearchType, ResponseType } from \"./responseType\";\n\nexport const EXERCISE_PATH = 'exercise';\nexport const EXERCISE_TRANSLATION_PATH = 'exercise-translation';\nexport const EXERCISE_SEARCH_PATH = 'exercise/search';\n\n\n/*\n * Fetch all exercise translations for a given exercise base\n */\nexport const getExerciseTranslations = async (id: number): Promise<Translation[]> => {\n const url = makeUrl(EXERCISE_PATH, { query: { exercise: id } });\n const { data } = await axios.get<ResponseType<any>>(url, {\n headers: makeHeader(),\n });\n const adapter = new TranslationAdapter();\n return data.results.map(e => adapter.fromJson(e));\n};\n\n\n/*\n * Fetch all exercise translations for a given exercise base\n */\nexport const searchExerciseTranslations = async (name: string, languageCode: string = ENGLISH_LANGUAGE_CODE, searchEnglish: boolean = true,): Promise<ExerciseSearchResponse[]> => {\n const languages = [languageCode];\n if (languageCode !== LANGUAGE_SHORT_ENGLISH && searchEnglish) {\n languages.push(LANGUAGE_SHORT_ENGLISH);\n }\n\n\n const url = makeUrl(EXERCISE_SEARCH_PATH, { query: { term: name, language: languages.join(',') } });\n\n const { data } = await axios.get<ExerciseSearchType>(url);\n return data.suggestions;\n};\n\n\n/*\n * Create a new exercise translation\n */\nexport interface AddTranslationParams {\n exerciseId: number;\n languageId: number;\n name: string;\n description: string;\n author: string;\n}\n\nexport const addTranslation = async (params: AddTranslationParams): Promise<Translation> => {\n const { exerciseId, languageId, name, description, author } = params;\n\n const url = makeUrl(EXERCISE_TRANSLATION_PATH);\n const baseData = {\n exercise: exerciseId,\n language: languageId,\n name: name,\n description: description,\n // eslint-disable-next-line camelcase\n license_author: author\n };\n const response = await axios.post(url, baseData, {\n headers: makeHeader(),\n });\n\n const adapter = new TranslationAdapter();\n return adapter.fromJson(response.data);\n};\n\n/*\n * Edit an existing exercise translation\n */\nexport interface EditTranslationParams extends AddTranslationParams {\n id: number;\n}\n\nexport const editTranslation = async (data: EditTranslationParams): Promise<Translation> => {\n const { id, exerciseId, languageId, name, description } = data;\n\n const url = makeUrl(EXERCISE_TRANSLATION_PATH, { id: id });\n const baseData = {\n exercise: exerciseId,\n language: languageId,\n name: name,\n description: description,\n };\n const response = await axios.patch(\n url,\n baseData,\n { headers: makeHeader() }\n );\n\n const adapter = new TranslationAdapter();\n return adapter.fromJson(response.data);\n};\n\n/*\n * Delete an existing exercise translation\n */\nexport const deleteExerciseTranslation = async (id: number): Promise<number> => {\n const url = makeUrl(EXERCISE_TRANSLATION_PATH, { id: id });\n const response = await axios.delete(\n url,\n { headers: makeHeader() }\n );\n\n return response.status;\n};","import axios from 'axios';\nimport { Language, LanguageAdapter } from \"components/Exercises/models/language\";\nimport { ApiLanguageType } from 'types';\nimport { makeHeader, makeUrl } from \"utils/url\";\nimport { ResponseType } from \"./responseType\";\n\nexport const API_LANGUAGE_PATH = 'language';\n\n\n/*\n * Fetch all languages\n */\nexport const getLanguages = async (): Promise<Language[]> => {\n const url = makeUrl(API_LANGUAGE_PATH);\n const { data: receivedLanguages } = await axios.get<ResponseType<ApiLanguageType>>(url, {\n headers: makeHeader(),\n });\n const adapter = new LanguageAdapter();\n return receivedLanguages.results.map(l => adapter.fromJson(l));\n};\n\n/*\n * Searches for the language with the given short name\n */\nexport const getLanguageByShortName = (name: string, availableLanguages: Language[]): Language | undefined => {\n\n // If the name is in the form of \"en-US\", remove the country code\n const shortName = name.split('-')[0];\n\n const language = availableLanguages.find(l => l.nameShort === shortName);\n if (language) {\n return language;\n }\n return undefined;\n};","import axios from 'axios';\nimport { ImageFormData } from \"components/Exercises/models/exercise\";\nimport { ExerciseImage, ExerciseImageAdapter } from \"components/Exercises/models/image\";\nimport { makeHeader, makeUrl } from \"utils/url\";\n\nexport const IMAGE_PATH = 'exerciseimage';\n\n\n/*\n * Post a new exercise image\n */\nexport type PostExerciseImageParams = {\n exerciseId: number;\n image: File;\n imageData: ImageFormData;\n};\n\nexport const postExerciseImage = async (data: PostExerciseImageParams): Promise<ExerciseImage> => {\n const url = makeUrl(IMAGE_PATH);\n const headers = makeHeader();\n headers['Content-Type'] = 'multipart/form-data';\n\n const response = await axios.post(\n url,\n {\n exercise: data.exerciseId,\n image: data.image,\n // eslint-disable-next-line camelcase\n license_title: data.imageData.title,\n // eslint-disable-next-line camelcase\n license_object_url: data.imageData.objectUrl,\n // eslint-disable-next-line camelcase\n license_author: data.imageData.author,\n // eslint-disable-next-line camelcase\n license_author_url: data.imageData.authorUrl,\n // eslint-disable-next-line camelcase\n license_derivative_source_url: data.imageData.derivativeSourceUrl,\n style: data.imageData.style,\n },\n { headers: headers }\n );\n return new ExerciseImageAdapter().fromJson(response.data);\n};\n\n/*\n * Delete an exercise image\n */\nexport const deleteExerciseImage = async (imageId: number): Promise<number> => {\n const url = makeUrl(IMAGE_PATH, { id: imageId });\n const headers = makeHeader();\n const response = await axios.delete(url, { headers: headers });\n\n return response.status;\n};\n","import axios from 'axios';\nimport { Alias, AliasAdapter } from \"components/Exercises/models/alias\";\nimport { makeHeader, makeUrl } from \"utils/url\";\n\nexport const ALIAS_PATH = 'exercisealias';\n\n\n/*\n * Create a new alias\n */\nexport const postAlias = async (translationId: number, alias: string): Promise<Alias> => {\n const url = makeUrl(ALIAS_PATH);\n const response = await axios.post(\n url,\n { translation: translationId, alias: alias },\n { headers: makeHeader() }\n );\n const adapter = new AliasAdapter();\n return adapter.fromJson(response.data);\n};\n\n/*\n * Delete a given alias\n */\nexport const deleteAlias = async (aliasId: number): Promise<number> => {\n const response = await axios.delete(\n makeUrl(ALIAS_PATH, { id: aliasId }),\n { headers: makeHeader() }\n );\n\n return response.status;\n};\n\n\n","import axios from 'axios';\nimport { ExerciseVideo, ExerciseVideoAdapter } from \"components/Exercises/models/video\";\nimport { makeHeader, makeUrl } from \"utils/url\";\n\nexport const VIDEO_PATH = 'video';\n\n\n/*\n * Post a new exercise video\n */\nexport const postExerciseVideo = async (exerciseId: number, author: string, video: File): Promise<ExerciseVideo> => {\n const url = makeUrl(VIDEO_PATH);\n const headers = makeHeader();\n headers['Content-Type'] = 'multipart/form-data';\n\n const response = await axios.post(\n url,\n // eslint-disable-next-line camelcase\n { exercise: exerciseId, license_author: author, video: video },\n { headers: headers }\n );\n return new ExerciseVideoAdapter().fromJson(response.data);\n};\n\n/*\n * Delete an exercise video\n */\nexport const deleteExerciseVideo = async (videoId: number): Promise<number> => {\n const url = makeUrl(VIDEO_PATH, { id: videoId });\n const headers = makeHeader();\n const response = await axios.delete(url, { headers: headers });\n\n return response.status;\n};\n","/* eslint-disable camelcase */\n\nimport { Adapter } from \"utils/Adapter\";\n\nexport interface BaseConfigEntryForm {\n // This value is only used to change the conditional validation.\n // This is kinda ugly but seems to be the cleanest way to do it\n forceInteger: boolean;\n\n edited: boolean;\n iteration: number;\n id: number | null;\n idMax: number | null;\n value: number | string;\n valueMax: number | string;\n operation: OperationType;\n operationMax: OperationType;\n step: StepType;\n stepMax: StepType;\n requirements: RequirementsType[];\n requirementsMax: RequirementsType[];\n repeat: boolean;\n repeatMax: boolean;\n}\n\nexport const OPERATION_REPLACE = 'r';\nexport const OPERATION_ADD = '+';\nexport const OPERATION_SUBSTRACT = '-';\n\nexport const REQUIREMENTS_VALUES = [\"weight\", \"repetitions\", \"rir\", \"rest\"] as const;\n\nexport type OperationType = \"+\" | \"-\" | \"r\";\nexport type StepType = \"abs\" | \"percent\";\nexport type RequirementsType = typeof REQUIREMENTS_VALUES;\n\n\nexport const STEP_VALUES_SELECT = [\n { value: 'abs', 'label': 'Absolute' },\n { value: 'percent', 'label': 'Percent' },\n];\n\nexport const OPERATION_VALUES_SELECT = [\n { value: OPERATION_ADD, label: 'Add' },\n { value: OPERATION_SUBSTRACT, label: 'Subtract' },\n { value: OPERATION_REPLACE, label: 'Replace' },\n];\n\nexport const RIR_VALUES_SELECT_LIST = [\n { value: '', label: '-/-' },\n ...[0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4].map(value => ({ value: value, label: value.toString() })),\n { value: 4.5, label: '4+' }\n];\n\nexport const RIR_VALUES_SELECT = [...RIR_VALUES_SELECT_LIST] as const;\n\nexport interface RuleRequirements {\n rules: RequirementsType[];\n}\n\nexport class BaseConfig {\n id: number;\n slotEntryId: number;\n iteration: number;\n value: number;\n operation: OperationType;\n step: StepType;\n repeat: boolean;\n requirements: RuleRequirements | null;\n\n\n constructor(data: {\n id: number;\n slotEntryId: number;\n iteration: number;\n value: number;\n operation?: OperationType;\n step?: StepType;\n repeat?: boolean;\n requirements?: RuleRequirements | null;\n }) {\n this.id = data.id;\n this.slotEntryId = data.slotEntryId;\n this.iteration = data.iteration;\n this.value = data.value;\n this.operation = data.operation ?? 'r';\n this.step = data.step ?? 'abs';\n this.repeat = data.repeat ?? false;\n this.requirements = data.requirements ?? null;\n }\n\n get replace() {\n return this.operation === \"r\";\n }\n}\n\nexport class BaseConfigAdapter implements Adapter<BaseConfig> {\n fromJson = (item: any) => new BaseConfig({\n id: item.id,\n slotEntryId: item.slot_entry,\n iteration: item.iteration,\n value: parseFloat(item.value),\n operation: item.operation,\n step: item.step,\n repeat: item.repeat,\n requirements: item.requirements\n });\n\n toJson = (item: BaseConfig) => ({\n slot_entry: item.slotEntryId,\n iteration: item.iteration,\n value: item.value,\n operation: item.operation,\n step: item.step,\n repeat: item.repeat,\n requirements: item.requirements,\n });\n}\n","/* eslint-disable camelcase */\n\nimport { Exercise } from \"components/Exercises/models/exercise\";\nimport { BaseConfig, BaseConfigAdapter } from \"components/WorkoutRoutines/models/BaseConfig\";\nimport { RepetitionUnit } from \"components/WorkoutRoutines/models/RepetitionUnit\";\nimport { WeightUnit } from \"components/WorkoutRoutines/models/WeightUnit\";\nimport { Adapter } from \"utils/Adapter\";\n\nexport type SlotEntryType = 'normal' | 'dropset' | 'myo' | 'partial' | 'forced' | 'tut' | 'iso' | 'jump';\n\ntype ConstructorParamsType = {\n id?: number | null,\n slotId: number,\n exerciseId: number,\n exercise?: Exercise,\n repetitionUnitId: number,\n repetitionUnit?: RepetitionUnit,\n repetitionRounding?: number | null,\n weightUnitId: number,\n weightRounding?: number | null,\n weightUnit?: WeightUnit,\n order: number,\n comment: string,\n type: SlotEntryType,\n config: any | null,\n configs?: {\n weightConfigs?: BaseConfig[],\n maxWeightConfigs?: BaseConfig[],\n repetitionsConfigs?: BaseConfig[],\n maxRepetitionsConfigs?: BaseConfig[],\n restTimeConfigs?: BaseConfig[],\n maxRestTimeConfigs?: BaseConfig[],\n nrOfSetsConfigs?: BaseConfig[],\n maxNrOfSetsConfigs?: BaseConfig[],\n rirConfigs?: BaseConfig[],\n maxRirConfigs?: BaseConfig[],\n }\n};\n\n\nexport class SlotEntry {\n\n id: number | null = null;\n slotId: number;\n exerciseId: number;\n repetitionUnitId: number;\n repetitionRounding: number | null;\n weightUnitId: number;\n weightRounding: number | null;\n order: number;\n comment: string;\n type: SlotEntryType;\n config: any | null;\n\n weightConfigs: BaseConfig[] = [];\n maxWeightConfigs: BaseConfig[] = [];\n repetitionsConfigs: BaseConfig[] = [];\n maxRepetitionsConfigs: BaseConfig[] = [];\n restTimeConfigs: BaseConfig[] = [];\n maxRestTimeConfigs: BaseConfig[] = [];\n nrOfSetsConfigs: BaseConfig[] = [];\n maxNrOfSetsConfigs: BaseConfig[] = [];\n rirConfigs: BaseConfig[] = [];\n maxRirConfigs: BaseConfig[] = [];\n\n exercise?: Exercise;\n repetitionUnit: RepetitionUnit | null = null;\n weightUnit: WeightUnit | null = null;\n\n\n constructor(data: ConstructorParamsType) {\n this.id = data.id ?? null;\n this.slotId = data.slotId;\n this.exerciseId = data.exerciseId;\n this.exercise = data.exercise;\n this.repetitionUnitId = data.repetitionUnitId;\n this.repetitionRounding = data.repetitionRounding ?? null;\n this.weightUnitId = data.weightUnitId;\n this.weightRounding = data.weightRounding ?? null;\n this.order = data.order;\n this.comment = data.comment;\n this.type = data.type;\n this.config = data.config;\n\n if (data.configs !== undefined) {\n this.weightConfigs = data.configs.weightConfigs ?? [];\n this.maxWeightConfigs = data.configs.maxWeightConfigs ?? [];\n this.repetitionsConfigs = data.configs.repetitionsConfigs ?? [];\n this.maxRepetitionsConfigs = data.configs.maxRepetitionsConfigs ?? [];\n this.restTimeConfigs = data.configs.restTimeConfigs ?? [];\n this.maxRestTimeConfigs = data.configs.maxRestTimeConfigs ?? [];\n this.nrOfSetsConfigs = data.configs.nrOfSetsConfigs ?? [];\n this.maxNrOfSetsConfigs = data.configs.maxNrOfSetsConfigs ?? [];\n this.rirConfigs = data.configs.rirConfigs ?? [];\n this.maxRirConfigs = data.configs.maxRirConfigs ?? [];\n }\n\n if (data.weightUnit !== undefined) {\n this.weightUnit = data.weightUnit;\n this.weightUnitId = data.weightUnit.id;\n }\n\n if (data.repetitionUnit !== undefined) {\n this.repetitionUnit = data.repetitionUnit;\n this.repetitionUnitId = data.repetitionUnit.id;\n }\n }\n\n get hasProgressionRules(): boolean {\n return this.weightConfigs.length > 1\n || this.maxWeightConfigs.length > 1\n || this.repetitionsConfigs.length > 1\n || this.maxRepetitionsConfigs.length > 1\n || this.restTimeConfigs.length > 1\n || this.maxRestTimeConfigs.length > 1\n || this.nrOfSetsConfigs.length > 1\n || this.maxNrOfSetsConfigs.length > 1\n || this.rirConfigs.length > 1\n || this.maxRirConfigs.length > 1;\n }\n\n static clone(other: SlotEntry, overrides?: Partial<ConstructorParamsType>): SlotEntry {\n return new SlotEntry({\n id: overrides?.id ?? other?.id,\n exerciseId: overrides?.exerciseId ?? other.exerciseId,\n exercise: overrides?.exercise ?? other.exercise,\n slotId: overrides?.slotId ?? other.slotId,\n config: overrides?.config ?? other.config,\n type: overrides?.type ?? other.type,\n order: overrides?.order ?? other.order,\n comment: overrides?.comment ?? other.comment,\n\n repetitionUnit: overrides?.repetitionUnit ?? (other.repetitionUnit ?? undefined),\n repetitionUnitId: overrides?.repetitionUnitId ?? other.repetitionUnitId,\n repetitionRounding: overrides?.repetitionRounding ?? other.repetitionRounding,\n\n weightUnit: overrides?.weightUnit ?? (other.weightUnit ?? undefined),\n weightUnitId: overrides?.weightUnitId ?? other.weightUnitId,\n weightRounding: overrides?.weightRounding ?? other.weightRounding,\n });\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static fromJson(json: any) {\n return adapter.fromJson(json);\n }\n\n toJson() {\n return adapter.toJson(this);\n }\n}\n\n\nclass SlotEntryAdapter implements Adapter<SlotEntry> {\n fromJson = (item: any) => {\n const baseConfigAdapter = new BaseConfigAdapter();\n\n const configs = {\n weightConfigs: [],\n maxWeightConfigs: [],\n repetitionsConfigs: [],\n maxRepetitionsConfigs: [],\n restTimeConfigs: [],\n maxRestTimeConfigs: [],\n nrOfSetsConfigs: [],\n maxNrOfSetsConfigs: [],\n rirConfigs: [],\n maxRirConfigs: [],\n };\n if (Object.hasOwn(item, 'weight_configs')) {\n configs.weightConfigs = item.weight_configs.map((config: any) => baseConfigAdapter.fromJson(config));\n }\n if (Object.hasOwn(item, 'max_weight_configs')) {\n configs.maxWeightConfigs = item.max_weight_configs.map((config: any) => baseConfigAdapter.fromJson(config));\n }\n if (Object.hasOwn(item, 'repetitions_configs')) {\n configs.repetitionsConfigs = item.repetitions_configs.map((config: any) => baseConfigAdapter.fromJson(config));\n }\n if (Object.hasOwn(item, 'max_repetitions_configs')) {\n configs.maxRepetitionsConfigs = item.max_repetitions_configs.map((config: any) => baseConfigAdapter.fromJson(config));\n }\n if (Object.hasOwn(item, 'set_nr_configs')) {\n configs.nrOfSetsConfigs = item.set_nr_configs.map((config: any) => baseConfigAdapter.fromJson(config));\n }\n if (Object.hasOwn(item, 'max_set_nr_configs')) {\n configs.maxNrOfSetsConfigs = item.max_set_nr_configs.map((config: any) => baseConfigAdapter.fromJson(config));\n }\n if (Object.hasOwn(item, 'rest_configs')) {\n configs.restTimeConfigs = item.rest_configs.map((config: any) => baseConfigAdapter.fromJson(config));\n }\n if (Object.hasOwn(item, 'max_rest_configs')) {\n configs.maxRestTimeConfigs = item.max_rest_configs.map((config: any) => baseConfigAdapter.fromJson(config));\n }\n if (Object.hasOwn(item, 'rir_configs')) {\n configs.rirConfigs = item.rir_configs.map((config: any) => baseConfigAdapter.fromJson(config));\n }\n if (Object.hasOwn(item, 'max_rir_configs')) {\n configs.maxRirConfigs = item.max_rir_configs.map((config: any) => baseConfigAdapter.fromJson(config));\n }\n\n return new SlotEntry({\n id: item.id,\n slotId: item.slot,\n exerciseId: item.exercise,\n repetitionUnitId: item.repetition_unit,\n repetitionRounding: item.repetition_rounding,\n weightUnitId: item.weight_unit,\n weightRounding: item.weight_rounding,\n order: item.order,\n comment: item.comment,\n type: item.type,\n config: item.config,\n configs: configs\n });\n };\n\n toJson = (item: SlotEntry) => ({\n slot: item.slotId,\n exercise: item.exerciseId,\n repetition_unit: item.repetitionUnitId,\n repetition_rounding: item.repetitionRounding,\n weight_unit: item.weightUnitId,\n weight_rounding: item.weightRounding,\n order: item.order,\n comment: item.comment,\n type: item.type,\n config: item.config,\n });\n}\n\nconst adapter = new SlotEntryAdapter();","import { SlotEntry } from \"components/WorkoutRoutines/models/SlotEntry\";\nimport { Adapter } from \"utils/Adapter\";\n\nexport type SlotApiData = {\n id: number,\n day: number,\n order: number,\n comment: string\n config: any\n entries?: any[]\n}\n\ntype SlotConstructorParams = {\n id?: number;\n dayId: number;\n order: number;\n comment?: string;\n config?: object | null;\n entries?: SlotEntry[];\n};\n\nexport class Slot {\n\n id: number | null = null;\n dayId: number;\n order: number;\n comment: string;\n config: object | null;\n\n entries: SlotEntry[] = [];\n\n constructor(data: SlotConstructorParams) {\n this.id = data.id ?? null;\n this.dayId = data.dayId;\n this.order = data.order;\n this.comment = data.comment ?? '';\n this.config = data.config ?? null;\n this.entries = data.entries ?? [];\n }\n\n static clone(other: Slot, overrides?: Partial<SlotConstructorParams>): Slot {\n return new Slot({\n id: overrides?.id ?? other.id ?? undefined,\n dayId: overrides?.dayId ?? other.dayId,\n order: overrides?.order ?? other.order,\n comment: overrides?.comment ?? other.comment,\n config: overrides?.config ?? other.config,\n // entries: overrides?.entries ?? other.entries.map(entry => SlotEntry.clone(entry))\n });\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static fromJson(json: any): Slot {\n return adapter.fromJson(json);\n }\n\n toJson() {\n return adapter.toJson(this);\n }\n}\n\n\nclass SlotAdapter implements Adapter<Slot> {\n fromJson = (item: SlotApiData) => new Slot({\n id: item.id,\n dayId: item.day,\n order: item.order,\n comment: item.comment,\n config: item.config,\n entries: Object.hasOwn(item, 'entries') ? item.entries!.map((entry: any) => SlotEntry.fromJson(entry)) : []\n });\n\n toJson(item: Slot) {\n return {\n id: item.id,\n day: item.dayId,\n order: item.order,\n comment: item.comment,\n config: item.config\n };\n }\n}\n\nconst adapter = new SlotAdapter();","/* eslint-disable camelcase */\n\nimport { Slot } from \"components/WorkoutRoutines/models/Slot\";\nimport i18n from 'i18next';\nimport { Adapter } from \"utils/Adapter\";\n\ninterface DayConstructorParams {\n id?: number;\n routineId: number | null;\n order: number;\n name: string;\n description?: string;\n isRest?: boolean;\n needLogsToAdvance?: boolean;\n type?: 'custom' | 'enom' | 'amrap' | 'hiit' | 'tabata' | 'edt' | 'rft' | 'afap';\n config?: any | null;\n slots?: Slot[];\n}\n\nexport class Day {\n\n id: number | null = null;\n // Note that this can only be null when loading the data from dayData. Perhaps we should include\n // it there as well? Otherwise we just have to be a bit careful when editing regular day\n // objects in forms or so\n routineId: number | null = null;\n order: number;\n name: string;\n description: string;\n isRest: boolean;\n needLogsToAdvance: boolean;\n type: 'custom' | 'enom' | 'amrap' | 'hiit' | 'tabata' | 'edt' | 'rft' | 'afap';\n config: any | null;\n\n slots: Slot[] = [];\n\n constructor(data: DayConstructorParams) {\n this.id = data.id ?? null;\n this.routineId = data.routineId ?? null;\n this.order = data.order;\n this.name = data.name;\n this.description = data.description ?? '';\n this.isRest = data.isRest ?? false;\n this.needLogsToAdvance = data.needLogsToAdvance ?? false;\n this.type = data.type ?? 'custom';\n this.config = data.config ?? null;\n this.slots = data.slots ?? [];\n }\n\n public get isSpecialType(): boolean {\n return this.type !== 'custom';\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static fromJson(json: any): Day {\n return adapter.fromJson(json);\n }\n\n static clone(other: Day, overrides?: Partial<DayConstructorParams>): Day {\n return new Day({\n id: overrides?.id ?? (other.id ?? undefined),\n routineId: overrides?.routineId ?? other.routineId,\n order: overrides?.order ?? other.order,\n name: overrides?.name ?? other.name,\n description: overrides?.description ?? other.description,\n isRest: overrides?.isRest ?? other.isRest,\n needLogsToAdvance: overrides?.needLogsToAdvance ?? other.needLogsToAdvance,\n type: overrides?.type ?? other.type,\n config: overrides?.config ?? other.config,\n slots: overrides?.slots ?? other.slots,\n });\n }\n\n public getDisplayName(): string {\n return this.isRest ? i18n.t('routines.restDay') : this.name;\n }\n\n toJson() {\n return adapter.toJson(this);\n }\n\n}\n\nexport const getDayName = (day: Day | null): string => day === null || day.isRest ? i18n.t('routines.restDay') : day.getDisplayName();\n\n\nclass DayAdapter implements Adapter<Day> {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n fromJson = (item: any): Day => new Day({\n id: item.id,\n routineId: item.routine,\n order: item.order,\n name: item.name,\n description: item.description,\n isRest: item.is_rest,\n needLogsToAdvance: item.need_logs_to_advance,\n type: item.type,\n config: item.config,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n slots: Object.hasOwn(item, 'slots') ? item.slots.map((slot: any) => Slot.fromJson(slot)) : [],\n });\n\n toJson = (item: Day) => ({\n routine: item.routineId,\n name: item.name,\n order: item.order,\n description: item.description,\n is_rest: item.isRest,\n need_logs_to_advance: item.needLogsToAdvance,\n type: item.type,\n config: item.config,\n });\n}\n\nconst adapter = new DayAdapter();","import { Adapter } from \"utils/Adapter\";\n\nexport class LogData {\n exercises: { [exerciseId: number]: number } = {};\n muscle: { [muscleId: number]: number } = {};\n // eslint-disable-next-line camelcase\n upper_body: number = 0;\n // eslint-disable-next-line camelcase\n lower_body: number = 0;\n total: number = 0;\n\n constructor(data?: Partial<LogData>) {\n Object.assign(this, data);\n\n // if (data) {\n // this.exercises = data.exercises || {};\n // this.muscle = data.muscle || {};\n // this.upperBody = parseFloat(data.upper_body);\n // this.lowerBody = parseFloat(data.lower_body);\n // this.total = parseFloat(data.total);\n // }\n }\n}\n\nexport class GroupedLogData {\n mesocycle: LogData = new LogData();\n iteration: { [iteration: number]: LogData } = {};\n weekly: { [week: number]: LogData } = {};\n daily: { [date: string]: LogData } = {};\n\n constructor(data?: Partial<GroupedLogData>) {\n Object.assign(this, data);\n }\n}\n\nexport class RoutineStatsData {\n volume: GroupedLogData = new GroupedLogData();\n intensity: GroupedLogData = new GroupedLogData();\n sets: GroupedLogData = new GroupedLogData();\n\n\n constructor(data?: Partial<RoutineStatsData>) {\n Object.assign(this, data);\n }\n}\n\n\nexport class RoutineStatsDataAdapter implements Adapter<RoutineStatsData> {\n\n fromJson(item: any): RoutineStatsData {\n\n const convertLogDataToClass = (logData: any): LogData => {\n\n const exercises: { [exerciseId: number]: number } = {};\n for (const exerciseId in logData.exercises) {\n exercises[parseInt(exerciseId)] = parseFloat(logData.exercises[exerciseId]);\n }\n\n const muscle: { [muscleId: number]: number } = {};\n for (const muscleId in logData.muscle) {\n muscle[parseInt(muscleId)] = parseFloat(logData.muscle[muscleId]);\n }\n\n return new LogData({\n exercises: exercises,\n muscle: muscle,\n // eslint-disable-next-line camelcase\n upper_body: parseFloat(logData.upper_body),\n // eslint-disable-next-line camelcase\n lower_body: parseFloat(logData.lower_body),\n total: parseFloat(logData.total),\n });\n };\n\n const convertGroupedLogDataToClass = (groupedLogData: GroupedLogData): GroupedLogData => {\n\n const iteration: { [key: number]: LogData } = {};\n for (const key in groupedLogData.iteration) {\n iteration[key] = convertLogDataToClass(groupedLogData.iteration[key]);\n }\n\n const weekly: { [key: number]: LogData } = {};\n for (const key in groupedLogData.weekly) {\n weekly[key] = convertLogDataToClass(groupedLogData.weekly[key]);\n }\n\n\n const daily: { [key: string]: LogData } = {};\n for (const key in groupedLogData.daily) {\n daily[key] = convertLogDataToClass(groupedLogData.daily[key]);\n }\n\n return new GroupedLogData({\n mesocycle: convertLogDataToClass(groupedLogData.mesocycle),\n iteration: iteration,\n weekly: weekly,\n daily: daily\n });\n };\n\n\n return new RoutineStatsData({\n volume: convertGroupedLogDataToClass(item.volume),\n intensity: convertGroupedLogDataToClass(item.intensity),\n sets: convertGroupedLogDataToClass(item.sets)\n });\n }\n\n}","// 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 */\nclass InvalidDateTimeError extends LuxonError {\n constructor(reason) {\n super(`Invalid DateTime: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nclass InvalidIntervalError extends LuxonError {\n constructor(reason) {\n super(`Invalid Interval: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nclass InvalidDurationError extends LuxonError {\n constructor(reason) {\n super(`Invalid Duration: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nclass ConflictingSpecificationError extends LuxonError {}\n\n/**\n * @private\n */\nclass InvalidUnitError extends LuxonError {\n constructor(unit) {\n super(`Invalid unit ${unit}`);\n }\n}\n\n/**\n * @private\n */\nclass InvalidArgumentError extends LuxonError {}\n\n/**\n * @private\n */\nclass ZoneIsAbstractError extends LuxonError {\n constructor() {\n super(\"Zone is an abstract class\");\n }\n}\n\n/**\n * @private\n */\n\nconst n = \"numeric\",\n s = \"short\",\n l = \"long\";\n\nconst DATE_SHORT = {\n year: n,\n month: n,\n day: n,\n};\n\nconst DATE_MED = {\n year: n,\n month: s,\n day: n,\n};\n\nconst DATE_MED_WITH_WEEKDAY = {\n year: n,\n month: s,\n day: n,\n weekday: s,\n};\n\nconst DATE_FULL = {\n year: n,\n month: l,\n day: n,\n};\n\nconst DATE_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n};\n\nconst TIME_SIMPLE = {\n hour: n,\n minute: n,\n};\n\nconst TIME_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n,\n};\n\nconst TIME_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s,\n};\n\nconst TIME_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l,\n};\n\nconst TIME_24_SIMPLE = {\n hour: n,\n minute: n,\n hourCycle: \"h23\",\n};\n\nconst TIME_24_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n};\n\nconst TIME_24_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n timeZoneName: s,\n};\n\nconst TIME_24_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n timeZoneName: l,\n};\n\nconst DATETIME_SHORT = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n,\n};\n\nconst DATETIME_SHORT_WITH_SECONDS = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n,\n second: n,\n};\n\nconst DATETIME_MED = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n,\n};\n\nconst DATETIME_MED_WITH_SECONDS = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n,\n second: n,\n};\n\nconst DATETIME_MED_WITH_WEEKDAY = {\n year: n,\n month: s,\n day: n,\n weekday: s,\n hour: n,\n minute: n,\n};\n\nconst DATETIME_FULL = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n timeZoneName: s,\n};\n\nconst 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\nconst 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\nconst 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\n/**\n * @interface\n */\nclass 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 /**\n * The IANA name of this zone.\n * Defaults to `name` if not overwritten by a subclass.\n * @abstract\n * @type {string}\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\nlet singleton$1 = null;\n\n/**\n * Represents the local zone for this JavaScript environment.\n * @implements {Zone}\n */\nclass SystemZone extends Zone {\n /**\n * Get a singleton instance of the local zone\n * @return {SystemZone}\n */\n static get instance() {\n if (singleton$1 === null) {\n singleton$1 = new SystemZone();\n }\n return singleton$1;\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\nconst dtfCache = new Map();\nfunction makeDTF(zoneName) {\n let dtf = dtfCache.get(zoneName);\n if (dtf === undefined) {\n dtf = new Intl.DateTimeFormat(\"en-US\", {\n hour12: false,\n timeZone: zoneName,\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 dtfCache.set(zoneName, dtf);\n }\n return dtf;\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\nconst ianaZoneCache = new Map();\n/**\n * A zone identified by an IANA identifier, like America/New_York\n * @implements {Zone}\n */\nclass IANAZone extends Zone {\n /**\n * @param {string} name - Zone name\n * @return {IANAZone}\n */\n static create(name) {\n let zone = ianaZoneCache.get(name);\n if (zone === undefined) {\n ianaZoneCache.set(name, (zone = new IANAZone(name)));\n }\n return zone;\n }\n\n /**\n * Reset local caches. Should only be necessary in testing scenarios.\n * @return {void}\n */\n static resetCache() {\n ianaZoneCache.clear();\n dtfCache.clear();\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 For backward compatibility, this forwards to isValidZone, better use `isValidZone()` directly 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 /**\n * The type of zone. `iana` for all instances of `IANAZone`.\n * @override\n * @type {string}\n */\n get type() {\n return \"iana\";\n }\n\n /**\n * The name of this zone (i.e. the IANA zone name).\n * @override\n * @type {string}\n */\n get name() {\n return this.zoneName;\n }\n\n /**\n * Returns whether the offset is known to be fixed for the whole year:\n * Always returns false for all IANA zones.\n * @override\n * @type {boolean}\n */\n get isUniversal() {\n return false;\n }\n\n /**\n * Returns the offset's common name (such as EST) at the specified timestamp\n * @override\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, { format, locale }) {\n return parseZoneInfo(ts, format, locale, this.name);\n }\n\n /**\n * Returns the offset's value as a string\n * @override\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 return formatOffset(this.offset(ts), format);\n }\n\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n * @override\n * @param {number} ts - Epoch milliseconds for which to compute the offset\n * @return {number}\n */\n offset(ts) {\n if (!this.valid) return NaN;\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 /**\n * Return whether this Zone is equal to another zone\n * @override\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */\n equals(otherZone) {\n return otherZone.type === \"iana\" && otherZone.name === this.name;\n }\n\n /**\n * Return whether this Zone is valid.\n * @override\n * @type {boolean}\n */\n get isValid() {\n return this.valid;\n }\n}\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\nconst intlDTCache = new Map();\nfunction getCachedDTF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let dtf = intlDTCache.get(key);\n if (dtf === undefined) {\n dtf = new Intl.DateTimeFormat(locString, opts);\n intlDTCache.set(key, dtf);\n }\n return dtf;\n}\n\nconst intlNumCache = new Map();\nfunction getCachedINF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let inf = intlNumCache.get(key);\n if (inf === undefined) {\n inf = new Intl.NumberFormat(locString, opts);\n intlNumCache.set(key, inf);\n }\n return inf;\n}\n\nconst intlRelCache = new Map();\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.get(key);\n if (inf === undefined) {\n inf = new Intl.RelativeTimeFormat(locString, opts);\n intlRelCache.set(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\nconst intlResolvedOptionsCache = new Map();\nfunction getCachedIntResolvedOptions(locString) {\n let opts = intlResolvedOptionsCache.get(locString);\n if (opts === undefined) {\n opts = new Intl.DateTimeFormat(locString).resolvedOptions();\n intlResolvedOptionsCache.set(locString, opts);\n }\n return opts;\n}\n\nconst weekInfoCache = new Map();\nfunction getCachedWeekInfo(locString) {\n let data = weekInfoCache.get(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 // minimalDays was removed from WeekInfo: https://github.com/tc39/proposal-intl-locale-info/issues/86\n if (!(\"minimalDays\" in data)) {\n data = { ...fallbackWeekSettings, ...data };\n }\n weekInfoCache.set(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 getCachedIntResolvedOptions(loc.locale).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 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 */\nclass 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.clear();\n intlNumCache.clear();\n intlRelCache.clear();\n intlResolvedOptionsCache.clear();\n weekInfoCache.clear();\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, months, () => {\n // Workaround for \"ja\" locale: formatToParts does not label all parts of the month\n // as \"month\" and for this locale there is no difference between \"format\" and \"non-format\".\n // As such, just use format() instead of formatToParts() and take the whole string\n const monthSpecialCase = this.intl === \"ja\" || this.intl.startsWith(\"ja-\");\n format &= !monthSpecialCase;\n const intl = format ? { month: length, day: \"numeric\" } : { month: length },\n formatStr = format ? \"format\" : \"standalone\";\n if (!this.monthsCache[formatStr][length]) {\n const mapper = !monthSpecialCase\n ? (dt) => this.extract(dt, intl, \"month\")\n : (dt) => this.dtFormatter(dt, intl).format();\n this.monthsCache[formatStr][length] = mapMonths(mapper);\n }\n return this.monthsCache[formatStr][length];\n });\n }\n\n weekdays(length, format = false) {\n return listStuff(this, length, 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 () => 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, 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 getCachedIntResolvedOptions(this.intl).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 toString() {\n return `Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`;\n }\n}\n\nlet singleton = null;\n\n/**\n * A zone with a fixed offset (meaning no DST)\n * @implements {Zone}\n */\nclass 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 /**\n * The type of zone. `fixed` for all instances of `FixedOffsetZone`.\n * @override\n * @type {string}\n */\n get type() {\n return \"fixed\";\n }\n\n /**\n * The name of this zone.\n * All fixed zones' names always start with \"UTC\" (plus optional offset)\n * @override\n * @type {string}\n */\n get name() {\n return this.fixed === 0 ? \"UTC\" : `UTC${formatOffset(this.fixed, \"narrow\")}`;\n }\n\n /**\n * The IANA name of this zone, i.e. `Etc/UTC` or `Etc/GMT+/-nn`\n *\n * @override\n * @type {string}\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 /**\n * Returns the offset's common name at the specified timestamp.\n *\n * For fixed offset zones this equals to the zone name.\n * @override\n */\n offsetName() {\n return this.name;\n }\n\n /**\n * Returns the offset's value as a string\n * @override\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 return formatOffset(this.fixed, format);\n }\n\n /**\n * Returns whether the offset is known to be fixed for the whole year:\n * Always returns true for all fixed offset zones.\n * @override\n * @type {boolean}\n */\n get isUniversal() {\n return true;\n }\n\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n *\n * For fixed offset zones, this is constant and does not depend on a timestamp.\n * @override\n * @return {number}\n */\n offset() {\n return this.fixed;\n }\n\n /**\n * Return whether this Zone is equal to another zone (i.e. also fixed and same offset)\n * @override\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */\n equals(otherZone) {\n return otherZone.type === \"fixed\" && otherZone.fixed === this.fixed;\n }\n\n /**\n * Return whether this Zone is valid:\n * All fixed offset zones are valid.\n * @override\n * @type {boolean}\n */\n get isValid() {\n return true;\n }\n}\n\n/**\n * A zone that failed to parse. You should never need to instantiate this.\n * @implements {Zone}\n */\nclass 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/**\n * @private\n */\n\nfunction normalizeZone(input, defaultZone) {\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\nconst 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\nfunction 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\n// cache of {numberingSystem: {append: regex}}\nconst digitRegexCache = new Map();\nfunction resetDigitRegexCache() {\n digitRegexCache.clear();\n}\n\nfunction digitRegex({ numberingSystem }, append = \"\") {\n const ns = numberingSystem || \"latn\";\n\n let appendCache = digitRegexCache.get(ns);\n if (appendCache === undefined) {\n appendCache = new Map();\n digitRegexCache.set(ns, appendCache);\n }\n let regex = appendCache.get(append);\n if (regex === undefined) {\n regex = new RegExp(`${numberingSystems[ns]}${append}`);\n appendCache.set(append, regex);\n }\n\n return regex;\n}\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 */\nclass 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 for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.\n * @type {number}\n */\n static get twoDigitCutoffYear() {\n return twoDigitCutoffYear;\n }\n\n /**\n * Set the cutoff year for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.\n * @type {number}\n * @example Settings.twoDigitCutoffYear = 0 // all 'yy' are interpreted as 20th century\n * @example Settings.twoDigitCutoffYear = 99 // all 'yy' are interpreted as 21st century\n * @example Settings.twoDigitCutoffYear = 50 // '49' -> 2049; '50' -> 1950\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 DateTime.resetCache();\n resetDigitRegexCache();\n }\n}\n\nclass 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\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\nfunction 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\nfunction isoWeekdayToLocal(isoWeekday, startOfWeek) {\n return ((isoWeekday - startOfWeek + 7) % 7) + 1;\n}\n\n/**\n * @private\n */\n\nfunction 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\nfunction 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\nfunction gregorianToOrdinal(gregData) {\n const { year, month, day } = gregData;\n const ordinal = computeOrdinal(year, month, day);\n return { year, ordinal, ...timeObject(gregData) };\n}\n\nfunction 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 */\nfunction 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\nfunction 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\nfunction 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\nfunction 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\nfunction 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\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\n/**\n * @private\n */\n\n// TYPES\n\nfunction isUndefined(o) {\n return typeof o === \"undefined\";\n}\n\nfunction isNumber(o) {\n return typeof o === \"number\";\n}\n\nfunction isInteger(o) {\n return typeof o === \"number\" && o % 1 === 0;\n}\n\nfunction isString(o) {\n return typeof o === \"string\";\n}\n\nfunction isDate(o) {\n return Object.prototype.toString.call(o) === \"[object Date]\";\n}\n\n// CAPABILITIES\n\nfunction hasRelative() {\n try {\n return typeof Intl !== \"undefined\" && !!Intl.RelativeTimeFormat;\n } catch (e) {\n return false;\n }\n}\n\nfunction 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\nfunction maybeArray(thing) {\n return Array.isArray(thing) ? thing : [thing];\n}\n\nfunction 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\nfunction pick(obj, keys) {\n return keys.reduce((a, k) => {\n a[k] = obj[k];\n return a;\n }, {});\n}\n\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nfunction 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\nfunction 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\nfunction floorMod(x, n) {\n return x - n * Math.floor(x / n);\n}\n\nfunction 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\nfunction parseInteger(string) {\n if (isUndefined(string) || string === null || string === \"\") {\n return undefined;\n } else {\n return parseInt(string, 10);\n }\n}\n\nfunction parseFloating(string) {\n if (isUndefined(string) || string === null || string === \"\") {\n return undefined;\n } else {\n return parseFloat(string);\n }\n}\n\nfunction 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\nfunction roundTo(number, digits, rounding = \"round\") {\n const factor = 10 ** digits;\n switch (rounding) {\n case \"expand\":\n return number > 0\n ? Math.ceil(number * factor) / factor\n : Math.floor(number * factor) / factor;\n case \"trunc\":\n return Math.trunc(number * factor) / factor;\n case \"round\":\n return Math.round(number * factor) / factor;\n case \"floor\":\n return Math.floor(number * factor) / factor;\n case \"ceil\":\n return Math.ceil(number * factor) / factor;\n default:\n throw new RangeError(`Value rounding ${rounding} is out of range`);\n }\n}\n\n// DATE BASICS\n\nfunction isLeapYear(year) {\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\n\nfunction daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n}\n\nfunction 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)\nfunction 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\nfunction 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\nfunction untruncateYear(year) {\n if (year > 99) {\n return year;\n } else return year > Settings.twoDigitCutoffYear ? 1900 + year : 2000 + year;\n}\n\n// PARSING\n\nfunction 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\nfunction 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\nfunction asNumber(value) {\n const numericValue = Number(value);\n if (typeof value === \"boolean\" || value === \"\" || !Number.isFinite(numericValue))\n throw new InvalidArgumentError(`Invalid unit value ${value}`);\n return numericValue;\n}\n\nfunction 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\n/**\n * Returns the offset's value as a string\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 */\nfunction 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\nfunction timeObject(obj) {\n return pick(obj, [\"hour\", \"minute\", \"second\", \"millisecond\"]);\n}\n\n/**\n * @private\n */\n\nconst 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\nconst 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\nconst monthsNarrow = [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"];\n\nfunction 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\nconst weekdaysLong = [\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n \"Sunday\",\n];\n\nconst weekdaysShort = [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\n\nconst weekdaysNarrow = [\"M\", \"T\", \"W\", \"T\", \"F\", \"S\", \"S\"];\n\nfunction 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\nconst meridiems = [\"AM\", \"PM\"];\n\nconst erasLong = [\"Before Christ\", \"Anno Domini\"];\n\nconst erasShort = [\"BC\", \"AD\"];\n\nconst erasNarrow = [\"B\", \"A\"];\n\nfunction 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\nfunction meridiemForDateTime(dt) {\n return meridiems[dt.hour < 12 ? 0 : 1];\n}\n\nfunction weekdayForDateTime(dt, length) {\n return weekdays(length)[dt.weekday - 1];\n}\n\nfunction monthForDateTime(dt, length) {\n return months(length)[dt.month - 1];\n}\n\nfunction eraForDateTime(dt, length) {\n return eras(length)[dt.year < 0 ? 0 : 1];\n}\n\nfunction 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 }\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\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: DATE_SHORT,\n DD: DATE_MED,\n DDD: DATE_FULL,\n DDDD: DATE_HUGE,\n t: TIME_SIMPLE,\n tt: TIME_WITH_SECONDS,\n ttt: TIME_WITH_SHORT_OFFSET,\n tttt: TIME_WITH_LONG_OFFSET,\n T: TIME_24_SIMPLE,\n TT: TIME_24_WITH_SECONDS,\n TTT: TIME_24_WITH_SHORT_OFFSET,\n TTTT: TIME_24_WITH_LONG_OFFSET,\n f: DATETIME_SHORT,\n ff: DATETIME_MED,\n fff: DATETIME_FULL,\n ffff: DATETIME_HUGE,\n F: DATETIME_SHORT_WITH_SECONDS,\n FF: DATETIME_MED_WITH_SECONDS,\n FFF: DATETIME_FULL_WITH_SECONDS,\n FFFF: DATETIME_HUGE_WITH_SECONDS,\n};\n\n/**\n * @private\n */\n\nclass 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 // turn '' into a literal signal quote instead of just skipping the empty literal\n if (currentFull.length > 0 || bracketed) {\n splits.push({\n literal: bracketed || /^\\s+$/.test(currentFull),\n val: currentFull === \"\" ? \"'\" : currentFull,\n });\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, signDisplay = undefined) {\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 if (signDisplay) {\n opts.signDisplay = signDisplay;\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 ? meridiemForDateTime(dt)\n : string({ hour: \"numeric\", hourCycle: \"h12\" }, \"dayperiod\"),\n month = (length, standalone) =>\n knownEnglish\n ? monthForDateTime(dt, length)\n : string(standalone ? { month: length } : { month: length, day: \"numeric\" }, \"month\"),\n weekday = (length, standalone) =>\n knownEnglish\n ? 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 ? 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 invertLargest = this.opts.signMode === \"negativeLargestOnly\" ? -1 : 1;\n const tokenToField = (token) => {\n switch (token[0]) {\n case \"S\":\n return \"milliseconds\";\n case \"s\":\n return \"seconds\";\n case \"m\":\n return \"minutes\";\n case \"h\":\n return \"hours\";\n case \"d\":\n return \"days\";\n case \"w\":\n return \"weeks\";\n case \"M\":\n return \"months\";\n case \"y\":\n return \"years\";\n default:\n return null;\n }\n },\n tokenToString = (lildur, info) => (token) => {\n const mapped = tokenToField(token);\n if (mapped) {\n const inversionFactor =\n info.isNegativeDuration && mapped !== info.largestUnit ? invertLargest : 1;\n let signDisplay;\n if (this.opts.signMode === \"negativeLargestOnly\" && mapped !== info.largestUnit) {\n signDisplay = \"never\";\n } else if (this.opts.signMode === \"all\") {\n signDisplay = \"always\";\n } else {\n // \"auto\" and \"negative\" are the same, but \"auto\" has better support\n signDisplay = \"auto\";\n }\n return this.num(lildur.get(mapped) * inversionFactor, token.length, signDisplay);\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 durationInfo = {\n isNegativeDuration: collapsed < 0,\n // this relies on \"collapsed\" being based on \"shiftTo\", which builds up the object\n // in order\n largestUnit: Object.keys(collapsed.values)[0],\n };\n return stringifyTokens(tokens, tokenToString(collapsed, durationInfo));\n }\n}\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 = /(?:([Zz])|([+-]\\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(`(?:[Tt]${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: 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 ? weekdaysLong.indexOf(weekdayStr) + 1\n : 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\nfunction parseISODate(s) {\n return parse(\n s,\n [isoYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset],\n [isoWeekWithTimeExtensionRegex, extractISOWeekTimeAndOffset],\n [isoOrdinalWithTimeExtensionRegex, extractISOOrdinalDateAndTime],\n [isoTimeCombinedRegex, extractISOTimeAndOffset]\n );\n}\n\nfunction parseRFC2822Date(s) {\n return parse(preprocessRFC2822(s), [rfc2822, extractRFC2822]);\n}\n\nfunction parseHTTPDate(s) {\n return parse(\n s,\n [rfc1123, extractRFC1123Or850],\n [rfc850, extractRFC1123Or850],\n [ascii, extractASCII]\n );\n}\n\nfunction parseISODuration(s) {\n return parse(s, [isoDuration, extractISODuration]);\n}\n\nconst extractISOTimeOnly = combineExtractors(extractISOTime);\n\nfunction 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\nfunction parseSQL(s) {\n return parse(\n s,\n [sqlYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset],\n [sqlTimeCombinedRegex, extractISOTimeOffsetAndIANAZone]\n );\n}\n\nconst INVALID$2 = \"Invalid Duration\";\n\n// unit conversion constants\nconst 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$1 = [\n \"years\",\n \"quarters\",\n \"months\",\n \"weeks\",\n \"days\",\n \"hours\",\n \"minutes\",\n \"seconds\",\n \"milliseconds\",\n];\n\nconst reverseUnits = orderedUnits$1.slice(0).reverse();\n\n// clone really means \"create another instance just like this one, but with these changes\"\nfunction clone$1(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$1.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$1.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 */\nclass 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 * @param {'negative'|'all'|'negativeLargestOnly'} [opts.signMode=negative] - How to handle signs\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 * @example Duration.fromObject({ days: 6, seconds: 2 }).toFormat(\"d s\", { signMode: \"all\" }) //=> \"+6 +2\"\n * @example Duration.fromObject({ days: -6, seconds: -2 }).toFormat(\"d s\", { signMode: \"all\" }) //=> \"-6 -2\"\n * @example Duration.fromObject({ days: -6, seconds: -2 }).toFormat(\"d s\", { signMode: \"negativeLargestOnly\" }) //=> \"-6 2\"\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$2;\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 * @param {boolean} [opts.showZeros=true] - Show all units previously used by the duration even if they are zero\n * @example\n * ```js\n * var dur = Duration.fromObject({ months: 1, weeks: 0, hours: 5, minutes: 6 })\n * dur.toHuman() //=> '1 month, 0 weeks, 5 hours, 6 minutes'\n * dur.toHuman({ listStyle: \"long\" }) //=> '1 month, 0 weeks, 5 hours, and 6 minutes'\n * dur.toHuman({ unitDisplay: \"short\" }) //=> '1 mth, 0 wks, 5 hr, 6 min'\n * dur.toHuman({ showZeros: false }) //=> '1 month, 5 hours, 6 minutes'\n * ```\n */\n toHuman(opts = {}) {\n if (!this.isValid) return INVALID$2;\n\n const showZeros = opts.showZeros !== false;\n\n const l = orderedUnits$1\n .map((unit) => {\n const val = this.values[unit];\n if (isUndefined(val) || (val === 0 && !showZeros)) {\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$1) {\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$1(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$1(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$1(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$1(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$1(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$1(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$1) {\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$1(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$1(this, { values: negated }, true);\n }\n\n /**\n * Removes all units with values equal to 0 from this Duration.\n * @example Duration.fromObject({ years: 2, days: 0, hours: 0, minutes: 0 }).removeZeros().toObject() //=> { years: 2 }\n * @return {Duration}\n */\n removeZeros() {\n if (!this.isValid) return this;\n const vals = removeZeroes(this.values);\n return clone$1(this, { values: vals }, 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$1) {\n if (!eq(this.values[u], other.values[u])) {\n return false;\n }\n }\n return true;\n }\n}\n\nconst INVALID$1 = \"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 */\nclass 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 `<start>/<end>`, `<start>/<duration>`, and `<duration>/<end>` 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. This is the first instant which is not part of the interval\n * (Interval is half-open).\n * @type {DateTime}\n */\n get end() {\n return this.isValid ? this.e : null;\n }\n\n /**\n * Returns the last DateTime included in the interval (since end is not part of the interval)\n * @type {DateTime}\n */\n get lastDateTime() {\n return this.isValid ? (this.e ? this.e.minus(1) : null) : 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 * Returns true if this Interval fully contains the specified Interval, specifically if the intersect (of this Interval and the other Interval) is equal to the other Interval; false otherwise.\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 an equivalent minimal set of Intervals.\n * Combines overlapping and adjacent Intervals.\n * The resulting array will contain the Intervals in ascending order, that is, starting with the earliest Interval\n * and ending with the latest.\n *\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$1;\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 = DATE_SHORT, opts = {}) {\n return this.isValid\n ? Formatter.create(this.s.loc.clone(opts), formatOpts).formatInterval(this)\n : INVALID$1;\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$1;\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$1;\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$1;\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$1;\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\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 */\nclass 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\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\nfunction diff (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\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\nfunction expandMacroTokens(tokens, locale) {\n return Array.prototype.concat(...tokens.map((t) => maybeExpandMacroToken(t, locale)));\n}\n\n/**\n * @private\n */\n\nclass TokenParser {\n constructor(locale, format) {\n this.locale = locale;\n this.format = format;\n this.tokens = expandMacroTokens(Formatter.parseFormat(format), locale);\n this.units = this.tokens.map((t) => unitForToken(t, locale));\n this.disqualifyingUnit = this.units.find((t) => t.invalidReason);\n\n if (!this.disqualifyingUnit) {\n const [regexString, handlers] = buildRegex(this.units);\n this.regex = RegExp(regexString, \"i\");\n this.handlers = handlers;\n }\n }\n\n explainFromTokens(input) {\n if (!this.isValid) {\n return { input, tokens: this.tokens, invalidReason: this.invalidReason };\n } else {\n const [rawMatches, matches] = match(input, this.regex, this.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 {\n input,\n tokens: this.tokens,\n regex: this.regex,\n rawMatches,\n matches,\n result,\n zone,\n specificOffset,\n };\n }\n }\n\n get isValid() {\n return !this.disqualifyingUnit;\n }\n\n get invalidReason() {\n return this.disqualifyingUnit ? this.disqualifyingUnit.invalidReason : null;\n }\n}\n\nfunction explainFromTokens(locale, input, format) {\n const parser = new TokenParser(locale, format);\n return parser.explainFromTokens(input);\n}\n\nfunction parseFromTokens(locale, input, format) {\n const { result, zone, specificOffset, invalidReason } = explainFromTokens(locale, input, format);\n return [result, zone, specificOffset, invalidReason];\n}\n\nfunction 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\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, precision) {\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 if (precision === \"year\") return c;\n if (extended) {\n c += \"-\";\n c += padStart(o.c.month);\n if (precision === \"month\") return c;\n c += \"-\";\n } else {\n c += padStart(o.c.month);\n if (precision === \"month\") return c;\n }\n c += padStart(o.c.day);\n return c;\n}\n\nfunction toISOTime(\n o,\n extended,\n suppressSeconds,\n suppressMilliseconds,\n includeOffset,\n extendedZone,\n precision\n) {\n let showSeconds = !suppressSeconds || o.c.millisecond !== 0 || o.c.second !== 0,\n c = \"\";\n switch (precision) {\n case \"day\":\n case \"month\":\n case \"year\":\n break;\n default:\n c += padStart(o.c.hour);\n if (precision === \"hour\") break;\n if (extended) {\n c += \":\";\n c += padStart(o.c.minute);\n if (precision === \"minute\") break;\n if (showSeconds) {\n c += \":\";\n c += padStart(o.c.second);\n }\n } else {\n c += padStart(o.c.minute);\n if (precision === \"minute\") break;\n if (showSeconds) {\n c += padStart(o.c.second);\n }\n }\n if (precision === \"second\") break;\n if (showSeconds && (!suppressMilliseconds || o.c.millisecond !== 0)) {\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// cache offsets for zones based on the current timestamp when this function is\n// first called. When we are handling a datetime from components like (year,\n// month, day, hour) in a time zone, we need a guess about what the timezone\n// offset is so that we can convert into a UTC timestamp. One way is to find the\n// offset of now in the zone. The actual date may have a different offset (for\n// example, if we handle a date in June while we're in December in a zone that\n// observes DST), but we can check and adjust that.\n//\n// When handling many dates, calculating the offset for now every time is\n// expensive. It's just a guess, so we can cache the offset to use even if we\n// are right on a time change boundary (we'll just correct in the other\n// direction). Using a timestamp from first read is a slight optimization for\n// handling dates close to the current date, since those dates will usually be\n// in the same offset (we could set the timestamp statically, instead). We use a\n// single timestamp for all zones to make things a bit more predictable.\n//\n// This is safe for quickDT (used by local() and utc()) because we don't fill in\n// higher-order units from tsNow (as we do in fromObject, this requires that\n// offset is calculated from tsNow).\n/**\n * @param {Zone} zone\n * @return {number}\n */\nfunction guessOffsetForZone(zone) {\n if (zoneOffsetTs === undefined) {\n zoneOffsetTs = Settings.now();\n }\n\n // Do not cache anything but IANA zones, because it is not safe to do so.\n // Guessing an offset which is not present in the zone can cause wrong results from fixOffset\n if (zone.type !== \"iana\") {\n return zone.offset(zoneOffsetTs);\n }\n const zoneName = zone.name;\n let offsetGuess = zoneOffsetGuessCache.get(zoneName);\n if (offsetGuess === undefined) {\n offsetGuess = zone.offset(zoneOffsetTs);\n zoneOffsetGuessCache.set(zoneName, offsetGuess);\n }\n return offsetGuess;\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 if (!zone.isValid) {\n return DateTime.invalid(unsupportedZone(zone));\n }\n\n const loc = Locale.fromObject(opts);\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 = guessOffsetForZone(zone);\n [ts, o] = objToTS(obj, offsetProvis, zone);\n } else {\n ts = Settings.now();\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 rounding = isUndefined(opts.rounding) ? \"trunc\" : opts.rounding,\n format = (c, unit) => {\n c = roundTo(c, round || opts.calendary ? 0 : 2, opts.calendary ? \"round\" : rounding);\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 * Timestamp to use for cached zone offset guesses (exposed for test)\n */\nlet zoneOffsetTs;\n/**\n * Cache for zone offset guesses (exposed for test).\n *\n * This optimizes quickDT via guessOffsetForZone to avoid repeated calls of\n * zone.offset().\n */\nconst zoneOffsetGuessCache = new Map();\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 */\nclass 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 // If an offset has been passed and we have not been called from\n // clone(), we can trust it and avoid the offset calculation.\n const ot = isNumber(config.o) && !config.old ? config.o : 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 * @param {string} [options.weekSettings] - the week settings 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 * @param {string} options.weekSettings - the week settings 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 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 * @param {string} options.weekSettings - the week settings 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 * @param {string} opts.weekSettings - the week settings 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 if (!inst.isValid) {\n return DateTime.invalid(inst.invalid);\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 * @param {string} [opts.weekSettings] - the week settings 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 * @param {string} opts.weekSettings - the week settings 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 * @param {string} opts.weekSettings - the week settings 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.weekSettings - the week settings to set on the resulting DateTime instance\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.weekSettings - the week settings to set on the resulting DateTime instance\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 static resetCache() {\n zoneOffsetTs = undefined;\n zoneOffsetGuessCache.clear();\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 // 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 = 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 * @param {string} [opts.precision='milliseconds'] - truncate output to desired presicion: 'years', 'months', 'days', 'hours', 'minutes', 'seconds' or 'milliseconds'. When precision and suppressSeconds or suppressMilliseconds are used together, precision sets the maximum unit shown in the output, however seconds or milliseconds will still be suppressed if they are 0.\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 * @example DateTime.now().toISO({ precision: 'day' }) //=> '2017-04-22Z'\n * @example DateTime.now().toISO({ precision: 'minute' }) //=> '2017-04-22T20:47Z'\n * @return {string|null}\n */\n toISO({\n format = \"extended\",\n suppressSeconds = false,\n suppressMilliseconds = false,\n includeOffset = true,\n extendedZone = false,\n precision = \"milliseconds\",\n } = {}) {\n if (!this.isValid) {\n return null;\n }\n\n precision = normalizeUnit(precision);\n const ext = format === \"extended\";\n\n let c = toISODate(this, ext, precision);\n if (orderedUnits.indexOf(precision) >= 3) c += \"T\";\n c += toISOTime(\n this,\n ext,\n suppressSeconds,\n suppressMilliseconds,\n includeOffset,\n extendedZone,\n precision\n );\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 * @param {string} [opts.precision='day'] - truncate output to desired precision: 'years', 'months', or 'days'.\n * @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25'\n * @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525'\n * @example DateTime.utc(1982, 5, 25).toISODate({ precision: 'month' }) //=> '1982-05'\n * @return {string|null}\n */\n toISODate({ format = \"extended\", precision = \"day\" } = {}) {\n if (!this.isValid) {\n return null;\n }\n return toISODate(this, format === \"extended\", normalizeUnit(precision));\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 * @param {string} [opts.precision='milliseconds'] - truncate output to desired presicion: 'hours', 'minutes', 'seconds' or 'milliseconds'. When precision and suppressSeconds or suppressMilliseconds are used together, precision sets the maximum unit shown in the output, however seconds or milliseconds will still be suppressed if they are 0.\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 * @example DateTime.utc().set({ hour: 7, minute: 34, second: 56 }).toISOTime({ precision: 'minute' }) //=> '07:34Z'\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 precision = \"milliseconds\",\n } = {}) {\n if (!this.isValid) {\n return null;\n }\n\n precision = normalizeUnit(precision);\n let c = includePrefix && orderedUnits.indexOf(precision) >= 3 ? \"T\" : \"\";\n return (\n c +\n toISOTime(\n this,\n format === \"extended\",\n suppressSeconds,\n suppressMilliseconds,\n includeOffset,\n extendedZone,\n precision\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|null}\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 (including milliseconds in the fractional part) 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|DateTime}\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 towards zero 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 {string} [options.rounding=\"trunc\"] - rounding method to use when rounding the numbers in the output. Can be \"trunc\" (toward zero), \"expand\" (away from zero), \"round\", \"floor\", or \"ceil\".\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 /**\n * Build a parser for `fmt` using the given locale. This parser can be passed\n * to {@link DateTime.fromFormatParser} to a parse a date in this format. This\n * can be used to optimize cases where many dates need to be parsed in a\n * specific format.\n *\n * @param {String} fmt - the format the string is expected to be in (see\n * description)\n * @param {Object} options - options used to set locale and numberingSystem\n * for parser\n * @returns {TokenParser} - opaque object to be used\n */\n static buildFormatParser(fmt, options = {}) {\n const { locale = null, numberingSystem = null } = options,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true,\n });\n return new TokenParser(localeToUse, fmt);\n }\n\n /**\n * Create a DateTime from an input string and format parser.\n *\n * The format parser must have been created with the same locale as this call.\n *\n * @param {String} text - the string to parse\n * @param {TokenParser} formatParser - parser from {@link DateTime.buildFormatParser}\n * @param {Object} opts - options taken by fromFormat()\n * @returns {DateTime}\n */\n static fromFormatParser(text, formatParser, opts = {}) {\n if (isUndefined(text) || isUndefined(formatParser)) {\n throw new InvalidArgumentError(\n \"fromFormatParser requires an input string and a format parser\"\n );\n }\n const { locale = null, numberingSystem = null } = opts,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true,\n });\n\n if (!localeToUse.equals(formatParser.locale)) {\n throw new InvalidArgumentError(\n `fromFormatParser called with a locale of ${localeToUse}, ` +\n `but the format parser was created for ${formatParser.locale}`\n );\n }\n\n const { result, zone, specificOffset, invalidReason } = formatParser.explainFromTokens(text);\n\n if (invalidReason) {\n return DateTime.invalid(invalidReason);\n } else {\n return parseDataToDateTime(\n result,\n zone,\n opts,\n `format ${formatParser.format}`,\n text,\n specificOffset\n );\n }\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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 DATETIME_HUGE_WITH_SECONDS;\n }\n}\n\n/**\n * @private\n */\nfunction 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\nconst VERSION = \"3.7.2\";\n\nexport { DateTime, Duration, FixedOffsetZone, IANAZone, Info, Interval, InvalidZone, Settings, SystemZone, VERSION, Zone };\n//# sourceMappingURL=luxon.mjs.map\n","import { Day } from \"components/WorkoutRoutines/models/Day\";\nimport { RoutineDayData } from \"components/WorkoutRoutines/models/RoutineDayData\";\nimport i18n from 'i18next';\nimport { DateTime } from \"luxon\";\nimport { Adapter } from \"utils/Adapter\";\nimport { dateToYYYYMMDD, isSameDay } from \"utils/date\";\n\nexport const NAME_MIN_LENGTH = 3;\nexport const NAME_MAX_LENGTH = 25;\nexport const DESCRIPTION_MAX_LENGTH = 1000;\n\n// Durations in weeks\nexport const MIN_WORKOUT_DURATION = 1;\nexport const MAX_WORKOUT_DURATION = 16;\nexport const DEFAULT_WORKOUT_DURATION = 12;\n\n\ntype RoutineConstructorParams = {\n id?: number | null;\n name: string;\n description: string;\n created?: Date;\n start?: Date;\n end: Date;\n fitInWeek?: boolean;\n isTemplate?: boolean;\n isPublic?: boolean;\n\n days?: Day[];\n dayData?: RoutineDayData[];\n};\n\nexport class Routine {\n id: number | null = null;\n name: string;\n description: string;\n created: Date = new Date();\n start: Date = new Date();\n end: Date;\n fitInWeek: boolean = false;\n isTemplate: boolean = false;\n isPublic: boolean = false;\n\n days: Day[] = [];\n dayData: RoutineDayData[] = [];\n\n constructor(params: RoutineConstructorParams) {\n this.name = params.name;\n this.description = params.description;\n this.end = params.end;\n\n Object.assign(this, params);\n }\n\n get isNotTemplate() {\n return !this.isTemplate;\n }\n\n get exercises() {\n return this.days.flatMap(day => day.slots.flatMap(slot => slot.entries.flatMap(config => config.exercise!)));\n }\n\n get dayDataCurrentIteration() {\n const iteration = this.getIteration() ?? 1;\n\n return this.dayData.filter(dayData => dayData.iteration === iteration);\n }\n\n get groupedDayDataByIteration() {\n const groupedDayData: { [key: number]: RoutineDayData[] } = {};\n for (const dayData of this.dayData) {\n if (!groupedDayData[dayData.iteration]) {\n groupedDayData[dayData.iteration] = [];\n }\n groupedDayData[dayData.iteration].push(dayData);\n }\n return groupedDayData;\n }\n\n get duration() {\n const duration = DateTime.fromJSDate(this.end).diff(DateTime.fromJSDate(this.start), ['weeks', 'days']);\n const durationWeeks = Math.floor(duration.weeks);\n const durationDays = Math.floor(duration.days);\n\n return { weeks: durationWeeks, days: durationDays };\n }\n\n get durationText() {\n const durationDays = this.duration.days;\n const durationWeeks = this.duration.weeks;\n\n return durationDays === 0 ? i18n.t('durationWeeks', { number: durationWeeks }) : i18n.t('durationWeeksDays', {\n nrWeeks: durationWeeks,\n nrDays: durationDays\n });\n }\n\n get mainMuscles() {\n const muscles = this.days.flatMap(day => day.slots.flatMap(slot => slot.entries.flatMap(config => config.exercise?.muscles || [])));\n return muscles.filter((muscle, index, self) =>\n index === self.findIndex((m) => m.id === muscle.id)\n );\n }\n\n get secondaryMuscles() {\n const muscles = this.days.flatMap(day => day.slots.flatMap(slot => slot.entries.flatMap(config => config.exercise?.musclesSecondary || [])));\n return muscles.filter((muscle, index, self) =>\n index === self.findIndex((m) => m.id === muscle.id)\n );\n }\n\n /*\n * Returns the length of the cycle in days\n */\n get cycleLength() {\n return this.dayDataCurrentIteration.length;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static fromJson(json: any): Routine {\n return routineAdapter.fromJson(json);\n }\n\n static clone(routine: Routine, overrides?: Partial<RoutineConstructorParams>): Routine {\n return new Routine({\n id: overrides?.id ?? routine.id,\n name: overrides?.name ?? routine.name,\n description: overrides?.description ?? routine.description,\n created: overrides?.created ?? new Date(),\n start: overrides?.start ?? routine.start,\n end: overrides?.end ?? routine.end ?? undefined,\n fitInWeek: overrides?.fitInWeek ?? routine.fitInWeek,\n isTemplate: overrides?.isTemplate ?? routine.isTemplate,\n isPublic: overrides?.isPublic ?? routine.isPublic,\n days: overrides?.days ?? routine.days,\n dayData: overrides?.dayData ?? routine.dayData,\n });\n }\n\n toJson() {\n return routineAdapter.toJson(this);\n }\n\n getIteration(date?: Date | undefined) {\n const dateToCheck = date ?? new Date();\n\n const currentDayData = this.dayData.find(dayData => isSameDay(dayData.date, dateToCheck));\n return currentDayData ? currentDayData.iteration : null;\n }\n\n /*\n * Returns the SetConfigData for the given dayId, iteration and slotId\n */\n getSetConfigData(dayId: number, iteration: number, slotEntryId: number) {\n const dayData = this.dayData.find(dayData =>\n dayData.day?.id === dayId && dayData.iteration === iteration\n );\n\n if (!dayData) {\n return null;\n }\n\n const slotData = dayData.slots.find(slotData =>\n slotData.setConfigs.some(setConfig => setConfig.slotEntryId === slotEntryId)\n );\n\n return slotData?.setConfigs.find(setConfig => setConfig.slotEntryId === slotEntryId) || null;\n }\n\n /*\n * Returns the DayData for the given dayId and, optionally, iteration\n */\n getDayData(dayId: number, date: Date) {\n return this.dayData.filter(dayData => dayData.day?.id === dayId\n && dayData.date.getDate() === date.getDate()\n && dayData.date.getMonth() === date.getMonth()\n && dayData.date.getFullYear() === date.getFullYear(),\n );\n }\n}\n\n\nclass RoutineAdapter implements Adapter<Routine> {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n fromJson(item: any) {\n return new Routine({\n id: item.id,\n name: item.name,\n description: item.description,\n created: new Date(item.created),\n start: new Date(item.start),\n end: new Date(item.end),\n fitInWeek: item.fit_in_week,\n isTemplate: item.is_template,\n isPublic: item.is_public,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n days: item.days ? item.days.map((day: any) => Day.fromJson(day)) : []\n });\n }\n\n toJson(item: Routine) {\n return {\n ...(item.id != null ? { id: item.id } : {}),\n\n name: item.name,\n description: item.description,\n start: dateToYYYYMMDD(item.start),\n end: dateToYYYYMMDD(item.end),\n \"fit_in_week\": item.fitInWeek,\n \"is_template\": item.isTemplate,\n \"is_public\": item.isPublic\n };\n }\n}\n\nconst routineAdapter = new RoutineAdapter();","import { Exercise } from \"components/Exercises/models/exercise\";\nimport { RepetitionUnit } from \"components/WorkoutRoutines/models/RepetitionUnit\";\nimport { WeightUnit } from \"components/WorkoutRoutines/models/WeightUnit\";\nimport { Adapter } from \"utils/Adapter\";\n\nexport type SetType = \"normal\" | \"dropset\" | \"myo\" | \"partial\" | \"forced\" | \"tut\" | \"iso\" | \"jump\";\n\nexport class SetConfigData {\n\n exercise?: Exercise;\n weightUnit: WeightUnit | null = null;\n repetitionsUnit: RepetitionUnit | null = null;\n\n public exerciseId: number;\n public slotEntryId: number;\n public type: SetType;\n public nrOfSets: number;\n public maxNrOfSets: number | null;\n public weight: number | null;\n public maxWeight: number | null;\n public weightUnitId: number | null = null;\n public weightRounding: number | null = null;\n public repetitions: number | null;\n public maxRepetitions: number | null;\n public repetitionsUnitId: number | null = null;\n public repetitionsRounding: number | null = null;\n public rir: number | null;\n public maxRir: number | null;\n public rpe: number | null;\n public restTime: number | null;\n public maxRestTime: number | null;\n public textRepr: string;\n public comment: string;\n\n constructor(data: {\n exercise?: Exercise,\n exerciseId: number,\n slotEntryId: number,\n type: SetType,\n nrOfSets: number,\n maxNrOfSets?: number | null,\n\n weight?: number | null,\n maxWeight?: number | null,\n weightUnitId: number | null,\n weightUnit?: WeightUnit,\n weightRounding: number | null,\n\n repetitions?: number | null,\n maxRepetitions?: number | null,\n repetitionsUnitId: number | null,\n repetitionsUnit?: RepetitionUnit,\n repetitionsRounding: number | null,\n\n rir?: number | null,\n maxRir?: number | null,\n rpe?: number | null,\n restTime?: number | null,\n maxRestTime?: number | null,\n textRepr: string,\n comment: string,\n }) {\n this.exerciseId = data.exerciseId;\n this.exercise = data.exercise;\n this.slotEntryId = data.slotEntryId;\n this.type = data.type;\n this.nrOfSets = data.nrOfSets;\n this.maxNrOfSets = data.maxNrOfSets ?? null;\n\n this.weight = data.weight ?? null;\n this.maxWeight = data.maxWeight ?? null;\n this.weightUnitId = data.weightUnitId;\n this.weightUnit = data.weightUnit ?? null;\n this.weightRounding = data.weightRounding;\n\n this.repetitions = data.repetitions ?? null;\n this.maxRepetitions = data.maxRepetitions ?? null;\n this.repetitionsUnitId = data.repetitionsUnitId;\n this.repetitionsUnit = data.repetitionsUnit ?? null;\n this.repetitionsRounding = data.repetitionsRounding;\n\n this.rir = data.rir ?? null;\n this.maxRir = data.maxRir ?? null;\n this.rpe = data.rpe ?? null;\n this.restTime = data.restTime ?? null;\n this.maxRestTime = data.maxRestTime ?? null;\n this.textRepr = data.textRepr;\n this.comment = data.comment;\n }\n\n public get isSpecialType(): boolean {\n return this.type !== 'normal';\n }\n}\n\n\nexport class SetConfigDataAdapter implements Adapter<SetConfigData> {\n fromJson = (item: any) => new SetConfigData({\n exerciseId: item.exercise,\n slotEntryId: item.slot_entry_id,\n type: item.type,\n nrOfSets: item.sets,\n maxNrOfSets: item.max_sets !== null ? parseInt(item.max_sets) : null,\n weight: item.weight !== null ? parseFloat(item.weight) : null,\n maxWeight: item.max_weight !== null ? parseFloat(item.max_weight) : null,\n weightUnitId: item.weight_unit,\n weightRounding: item.weight_rounding !== null ? parseFloat(item.weight_rounding) : null,\n repetitions: item.repetitions !== null ? parseFloat(item.repetitions) : null,\n maxRepetitions: item.max_repetitions !== null ? parseFloat(item.max_repetitions) : null,\n repetitionsUnitId: item.repetitions_unit,\n repetitionsRounding: item.repetitions_rounding !== null ? parseFloat(item.repetitions_rounding) : null,\n rir: item.rir !== null ? parseFloat(item.rir) : null,\n maxRir: item.max_rir !== null ? parseFloat(item.max_rir) : null,\n rpe: item.rpe !== null ? parseFloat(item.rpe) : null,\n restTime: item.rest !== null ? parseInt(item.rest) : null,\n maxRestTime: item.max_rest !== null ? parseInt(item.max_rest) : null,\n textRepr: item.text_repr,\n comment: item.comment,\n });\n}","import { Exercise } from \"components/Exercises/models/exercise\";\nimport { SetConfigData, SetConfigDataAdapter } from \"components/WorkoutRoutines/models/SetConfigData\";\nimport { Adapter } from \"utils/Adapter\";\n\nexport class SlotData {\n\n exercises: Exercise[] = [];\n\n constructor(\n public comment: string,\n public isSuperset: boolean,\n public exerciseIds: number[],\n public setConfigs: SetConfigData[],\n exercises?: Exercise[],\n ) {\n this.exercises = exercises ?? [];\n }\n}\n\n\nexport class SlotDataAdapter implements Adapter<SlotData> {\n fromJson = (item: any) => new SlotData(\n item.comment,\n item.is_superset,\n item.exercises,\n item.sets.map((item: any) => new SetConfigDataAdapter().fromJson(item))\n );\n}","import { Day } from \"components/WorkoutRoutines/models/Day\";\nimport { SlotData, SlotDataAdapter } from \"components/WorkoutRoutines/models/SlotData\";\nimport { Adapter } from \"utils/Adapter\";\n\nexport class RoutineDayData {\n\n slots: SlotData[] = [];\n\n constructor(\n public iteration: number,\n public date: Date,\n public label: string,\n public day: Day | null,\n slots?: SlotData[],\n ) {\n this.slots = slots ?? [];\n }\n}\n\n\nexport class RoutineDayDataAdapter implements Adapter<RoutineDayData> {\n fromJson = (item: any) => new RoutineDayData(\n item.iteration,\n new Date(item.date),\n item.label,\n item.day != null ? Day.fromJson(item.day) : null,\n item.slots.map((slot: any) => new SlotDataAdapter().fromJson(slot))\n );\n}","/* eslint-disable camelcase */\n\nimport { Exercise } from \"components/Exercises/models/exercise\";\nimport { RepetitionUnit } from \"components/WorkoutRoutines/models/RepetitionUnit\";\nimport { WeightUnit } from \"components/WorkoutRoutines/models/WeightUnit\";\nimport { Adapter } from \"utils/Adapter\";\n\nexport interface LogEntryForm {\n exercise: Exercise | null;\n repetitionsUnit: RepetitionUnit | null;\n weightUnit: WeightUnit | null;\n slotEntry: number | null;\n rir: number | string;\n rirTarget: number | string | null;\n repetitions: number | string;\n repetitionsTarget: number | string | null;\n weight: number | string;\n weightTarget: number | string | null;\n}\n\n\nexport class WorkoutLog {\n public id: number;\n public date: Date;\n public iteration: number | null;\n public exerciseId: number;\n public slotEntryId: number | null;\n public sessionId: number | null;\n public routineId: number | null;\n\n public repetitionUnitObj: RepetitionUnit | null;\n public repetitionUnitId: number | null;\n public repetitions: number | null;\n public repetitionsTarget: number | null;\n\n public weightUnitObj: WeightUnit | null;\n public weightUnitId: number | null;\n public weight: number | null;\n public weightTarget: number | null;\n\n public rir: number | null;\n public rirTarget: number | null;\n\n public restTime: number | null;\n public restTimeTarget: number | null;\n\n\n public exerciseObj?: Exercise;\n\n constructor(data: {\n id: number;\n date: Date | string;\n iteration: number | null;\n slotEntryId: number | null;\n sessionId?: number | null;\n routineId?: number | null;\n\n exercise?: Exercise;\n exerciseId: number;\n\n repetitionsUnit?: RepetitionUnit;\n repetitionsUnitId?: number | null;\n repetitions: number | null;\n repetitionsTarget?: number | null;\n\n weightUnit?: WeightUnit;\n weightUnitId?: number | null;\n weight: number | null;\n weightTarget?: number | null;\n\n rir: number | null;\n rirTarget?: number | null;\n\n restTime?: number | null;\n restTimeTarget?: number | null\n }) {\n this.id = data.id;\n this.date = typeof data.date === 'string' ? new Date(data.date) : data.date;\n this.iteration = data.iteration;\n this.slotEntryId = data.slotEntryId;\n this.sessionId = data.sessionId || null;\n this.routineId = data.routineId || null;\n\n this.exerciseObj = data.exercise;\n this.exerciseId = data.exerciseId;\n\n this.repetitionUnitObj = data.repetitionsUnit || null;\n this.repetitionUnitId = data.repetitionsUnitId || null;\n this.repetitions = data.repetitions;\n this.repetitionsTarget = data.repetitionsTarget || null;\n\n this.weightUnitObj = data.weightUnit || null;\n this.weightUnitId = data.weightUnitId || null;\n this.weight = data.weight;\n this.weightTarget = data.weightTarget || null;\n\n this.rir = data.rir;\n this.rirTarget = data.rirTarget || null;\n\n this.restTime = data.restTime || null;\n this.restTimeTarget = data.restTimeTarget || null;\n }\n\n get rirString(): string {\n return this.rir === null ? \"-/-\" : this.rir.toString();\n }\n}\n\n\nexport class WorkoutLogAdapter implements Adapter<WorkoutLog> {\n fromJson = (item: any) =>\n new WorkoutLog({\n id: item.id,\n date: item.date, // Pass the date string directly\n iteration: item.iteration,\n exerciseId: item.exercise,\n slotEntryId: item.slot_entry,\n sessionId: item.session,\n routineId: item.routine,\n\n repetitionsUnitId: item.repetitions_unit,\n repetitions: item.repetitions === null ? null : Number.parseFloat(item.repetitions),\n repetitionsTarget: item.repetitions_target === null ? null : Number.parseFloat(item.repetitions_target),\n\n weightUnitId: item.weight_unit,\n weight: item.weight === null ? null : Number.parseFloat(item.weight),\n weightTarget: item.weight_target === null ? null : Number.parseFloat(item.weight_target),\n\n rir: item.rir === null ? null : Number.parseFloat(item.rir),\n rirTarget: item.rir_target === null ? null : Number.parseFloat(item.rir_target),\n\n restTime: item.rest,\n restTimeTarget: item.rest_target\n });\n\n toJson = (item: WorkoutLog) => ({\n id: item.id,\n iteration: item.iteration,\n date: item.date.toISOString(),\n slot_entry: item.slotEntryId,\n exercise: item.exerciseId,\n routine: item.routineId,\n\n repetitions_unit: item.repetitionUnitId,\n repetitions: item.repetitions,\n repetitions_target: item.repetitionsTarget,\n\n weight_unit: item.weightUnitId,\n weight: item.weight,\n weight_target: item.weightTarget,\n\n rir: item.rir,\n rir_target: item.rirTarget,\n\n rest: item.restTime,\n rest_target: item.restTimeTarget\n });\n}","import { Day } from \"components/WorkoutRoutines/models/Day\";\nimport { WorkoutLog } from \"components/WorkoutRoutines/models/WorkoutLog\";\nimport i18n from 'i18next';\nimport { Adapter } from \"utils/Adapter\";\nimport { dateTimeToHHMM, dateToYYYYMMDD, HHMMToDateTime } from \"utils/date\";\n\nexport const NOTES_MAX_LENGTH = 1000 as const;\n\nexport const IMPRESSION_BAD = '1' as const;\nexport const IMPRESSION_NEUTRAL = '2' as const;\nexport const IMPRESSION_GOOD = '3' as const;\n\nexport interface AddSessionParams {\n day: number;\n routine: number;\n date: string;\n notes?: string;\n impression?: string;\n timeStart?: string;\n timeEnd?: string;\n}\n\nexport interface EditSessionParams extends Partial<AddSessionParams> {\n id: number,\n}\n\ninterface WorkoutSessionParams {\n id: number;\n dayId: number;\n routineId: number;\n date: Date;\n notes: string | null;\n impression: string;\n timeStart: Date | null;\n timeEnd: Date | null;\n dayObj?: Day;\n logs?: WorkoutLog[];\n}\n\nexport class WorkoutSession {\n\n id: number;\n dayId: number;\n routineId: number;\n date: Date;\n notes: string | null;\n impression: string;\n timeStart: Date | null;\n timeEnd: Date | null;\n dayObj?: Day;\n logs: WorkoutLog[] = [];\n\n constructor(params: WorkoutSessionParams) {\n this.id = params.id;\n this.dayId = params.dayId;\n this.routineId = params.routineId;\n this.date = params.date;\n this.notes = params.notes;\n this.impression = params.impression;\n this.timeStart = params.timeStart;\n this.timeEnd = params.timeEnd;\n if (params.dayObj) {\n this.dayObj = params.dayObj;\n }\n this.logs = params.logs ?? [];\n }\n\n // get the impression as a translated string\n get impressionString(): string {\n switch (this.impression) {\n case IMPRESSION_BAD:\n return i18n.t('routines.impressionBad');\n case IMPRESSION_NEUTRAL:\n return i18n.t('routines.impressionNeutral');\n case IMPRESSION_GOOD:\n return i18n.t('routines.impressionGood');\n default:\n return \"\";\n }\n }\n\n get textRepresentation(): string {\n const time = this.timeStart && this.timeEnd ? `${this.timeStart.toLocaleTimeString([], {\n hour: '2-digit',\n minute: '2-digit'\n })} - ${this.timeEnd.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })} /` : \"\";\n\n const notes = this.notes ?? \"\";\n\n\n return `${this.impressionString} ${time} ${notes}`;\n }\n}\n\n\nexport class WorkoutSessionAdapter implements Adapter<WorkoutSession> {\n fromJson = (item: any) => new WorkoutSession({\n id: item.id,\n dayId: item.day!,\n routineId: item.routine!,\n date: new Date(item.date!),\n notes: item.notes !== undefined ? item.notes : null,\n impression: item.impression!,\n timeStart: item.time_start !== undefined ? HHMMToDateTime(item.time_start) : null,\n timeEnd: item.time_end !== undefined ? HHMMToDateTime(item.time_end) : null,\n dayObj: item.dayObj,\n logs: item.logs\n });\n\n\n toJson = (item: WorkoutSession) => ({\n id: item.id,\n day: item.dayId,\n date: dateToYYYYMMDD(item.date),\n routine: item.routineId,\n notes: item.notes,\n impression: item.impression,\n // eslint-disable-next-line camelcase\n time_start: dateTimeToHHMM(item.timeStart),\n // eslint-disable-next-line camelcase\n time_end: dateTimeToHHMM(item.timeEnd),\n });\n}","import { WorkoutLog, WorkoutLogAdapter } from \"components/WorkoutRoutines/models/WorkoutLog\";\nimport { WorkoutSession, WorkoutSessionAdapter } from \"components/WorkoutRoutines/models/WorkoutSession\";\nimport { Adapter } from \"utils/Adapter\";\n\nexport class RoutineLogData {\n\n constructor(\n public session: WorkoutSession,\n public logs: WorkoutLog[],\n ) {\n }\n}\n\n\nexport class RoutineLogDataAdapter implements Adapter<RoutineLogData> {\n fromJson = (item: any) => new RoutineLogData(\n new WorkoutSessionAdapter().fromJson(item.session),\n item.logs.map((log: any) => new WorkoutLogAdapter().fromJson(log)),\n );\n}","import { Adapter } from \"utils/Adapter\";\n\nexport class RepetitionUnit {\n id: number;\n name: string;\n\n constructor(id: number, description: string) {\n this.id = id;\n this.name = description;\n }\n}\n\n\nexport class RepetitionUnitAdapter implements Adapter<RepetitionUnit> {\n fromJson(item: any): RepetitionUnit {\n return new RepetitionUnit(\n item.id,\n item.name,\n );\n }\n\n toJson(item: RepetitionUnit) {\n return {};\n }\n}","import { Adapter } from \"utils/Adapter\";\n\nexport class WeightUnit {\n id: number;\n name: string;\n\n constructor(id: number, description: string) {\n this.id = id;\n this.name = description;\n }\n}\n\n\nexport class WeightUnitAdapter implements Adapter<WeightUnit> {\n fromJson(item: any): WeightUnit {\n return new WeightUnit(\n item.id,\n item.name,\n );\n }\n\n toJson(item: WeightUnit) {\n return {};\n }\n}","import axios from 'axios';\nimport { RepetitionUnit, RepetitionUnitAdapter } from \"components/WorkoutRoutines/models/RepetitionUnit\";\nimport { WeightUnit, WeightUnitAdapter } from \"components/WorkoutRoutines/models/WeightUnit\";\nimport { ApiSettingRepUnitType, ApiSettingWeightUnitType } from 'types';\nimport { makeHeader, makeUrl } from \"utils/url\";\nimport { ResponseType } from \"./responseType\";\n\nexport const API_SETTING_REP_UNIT_PATH = 'setting-repetitionunit';\nexport const API_SETTING_WEIGHT_UNIT_PATH = 'setting-weightunit';\n\n\nexport const getRoutineRepUnits = async (): Promise<RepetitionUnit[]> => {\n const url = makeUrl(API_SETTING_REP_UNIT_PATH);\n const { data: receivedUnits } = await axios.get<ResponseType<ApiSettingRepUnitType>>(url, {\n headers: makeHeader(),\n });\n const adapter = new RepetitionUnitAdapter();\n return receivedUnits.results.map(l => adapter.fromJson(l));\n};\n\nexport const getRoutineWeightUnits = async (): Promise<WeightUnit[]> => {\n const url = makeUrl(API_SETTING_WEIGHT_UNIT_PATH);\n const { data: receivedUnits } = await axios.get<ResponseType<ApiSettingWeightUnitType>>(url, {\n headers: makeHeader(),\n });\n const adapter = new WeightUnitAdapter();\n return receivedUnits.results.map(l => adapter.fromJson(l));\n};\n\n","import axios from 'axios';\nimport { Exercise } from \"components/Exercises/models/exercise\";\nimport { Day } from \"components/WorkoutRoutines/models/Day\";\nimport { RoutineStatsData, RoutineStatsDataAdapter } from \"components/WorkoutRoutines/models/LogStats\";\nimport { Routine } from \"components/WorkoutRoutines/models/Routine\";\nimport { RoutineDayData, RoutineDayDataAdapter } from \"components/WorkoutRoutines/models/RoutineDayData\";\nimport { RoutineLogData, RoutineLogDataAdapter } from \"components/WorkoutRoutines/models/RoutineLogData\";\nimport { getExercise } from \"services/exercise\";\nimport { getRoutineRepUnits, getRoutineWeightUnits } from \"services/workoutUnits\";\nimport { ApiPath } from \"utils/consts\";\nimport { makeHeader, makeUrl } from \"utils/url\";\nimport { ResponseType } from \"./responseType\";\n\nexport const ROUTINE_API_STRUCTURE_PATH = 'structure';\nexport const ROUTINE_API_LOGS_PATH = 'logs';\nexport const ROUTINE_API_STATS_PATH = 'stats';\nexport const ROUTINE_API_ALL_ITERATION_DISPLAY = 'date-sequence-display';\n\n\n/*\n * Processes a routine with all sub-objects\n */\nconst exerciseMap: { [id: number]: Exercise } = {};\n\nexport const processRoutine = async (id: number): Promise<Routine> => {\n\n const response = await axios.get(\n makeUrl(ApiPath.ROUTINE, { id: id }),\n { headers: makeHeader() }\n );\n const routine = Routine.fromJson(response.data);\n\n const responses = await Promise.all([\n getRoutineRepUnits(),\n getRoutineWeightUnits(),\n getRoutineDayDataAllIterations(id),\n getRoutineStructure(id),\n\n ]);\n const repsUnits = responses[0];\n const weightUnits = responses[1];\n const dayDataAllIterations = responses[2];\n const dayStructure = responses[3];\n\n\n // Collect all unique exercise IDs and load the data in bulk\n const exerciseIds = new Set<number>();\n for (const dayData of dayDataAllIterations.filter(d => d.day !== null && d.iteration === 1)) {\n for (const slotData of dayData.slots) {\n for (const setData of slotData.setConfigs) {\n exerciseIds.add(setData.exerciseId);\n }\n }\n }\n const exercisePromises = Array.from(exerciseIds).map(id => getExercise(id));\n const exercises = await Promise.all(exercisePromises);\n exercises.forEach(exercise => {\n exerciseMap[exercise.id!] = exercise;\n });\n\n // Collect and load all exercises for the workout\n for (const dayData of dayDataAllIterations) {\n for (const slotData of dayData.slots) {\n for (const setData of slotData.setConfigs) {\n setData.exercise = exerciseMap[setData.exerciseId];\n if (setData.repetitionsUnitId !== null) {\n setData.repetitionsUnit = repsUnits.find(r => r.id === setData.repetitionsUnitId) ?? null;\n }\n\n if (setData.weightUnitId !== null) {\n setData.weightUnit = weightUnits.find(w => w.id === setData.weightUnitId) ?? null;\n }\n }\n\n for (const exerciseId of slotData.exerciseIds) {\n slotData.exercises?.push(exerciseMap[exerciseId]);\n }\n }\n }\n\n for (const day of dayStructure) {\n for (const slot of day.slots) {\n for (const slotEntry of slot.entries) {\n slotEntry.exercise = exerciseMap[slotEntry.exerciseId];\n\n if (slotEntry.repetitionUnitId !== null) {\n slotEntry.repetitionUnit = repsUnits.find(r => r.id === slotEntry.repetitionUnitId) ?? null;\n }\n\n if (slotEntry.weightUnitId !== null) {\n slotEntry.weightUnit = weightUnits.find(w => w.id === slotEntry.weightUnitId) ?? null;\n }\n }\n }\n }\n\n routine.dayData = dayDataAllIterations;\n routine.days = dayStructure;\n\n return routine;\n};\n\n\n/*\n * Retrieves all routines\n *\n * Note: this returns all the data, including all sub-objects\n */\nexport const getRoutines = async (): Promise<Routine[]> => {\n const url = makeUrl(ApiPath.ROUTINE, { query: { 'is_public': false } });\n const response = await axios.get<ResponseType<Routine>>(\n url,\n { headers: makeHeader() }\n );\n\n const out: Routine[] = [];\n for (const routineData of response.data.results) {\n out.push(await processRoutine(routineData.id!));\n }\n return out;\n};\n\n/*\n * Returns the current active routine\n *\n * Note that at the moment this is simply the newest one\n */\nexport const getActiveRoutine = async (): Promise<null | Routine> => {\n const url = makeUrl(ApiPath.ROUTINE, { query: { 'limit': '1', 'is_template': false } });\n\n const response = await axios.get<ResponseType<Routine>>(\n url,\n { headers: makeHeader() }\n );\n\n if (response.data.count === 0) {\n return null;\n }\n\n return await processRoutine(response.data.results[0].id!);\n};\n\nexport const getRoutine = async (id: number): Promise<Routine> => {\n return await processRoutine(id);\n};\n\n/*\n * Retrieves all routines\n *\n * Note: strictly only the routine data, no days or any other sub-objects\n */\nexport const getRoutinesShallow = async (): Promise<Routine[]> => {\n const url = makeUrl(ApiPath.ROUTINE, { query: { 'is_public': false } });\n const response = await axios.get<ResponseType<Routine>>(\n url,\n { headers: makeHeader() }\n );\n\n return response.data.results.map(routineData => Routine.fromJson(routineData)).filter(routine => routine.isNotTemplate);\n};\n\nexport const getPrivateTemplatesShallow = async (): Promise<Routine[]> => {\n const url = makeUrl(ApiPath.PRIVATE_TEMPLATE);\n const response = await axios.get<ResponseType<Routine>>(\n url,\n { headers: makeHeader() }\n );\n\n return response.data.results.map(routineData => Routine.fromJson(routineData));\n};\n\nexport const getPublicTemplatesShallow = async (): Promise<Routine[]> => {\n const url = makeUrl(ApiPath.PUBLIC_TEMPLATE);\n const response = await axios.get<ResponseType<Routine>>(\n url,\n { headers: makeHeader() }\n );\n\n return response.data.results.map(routineData => Routine.fromJson(routineData));\n};\n\nexport const addRoutine = async (routine: Routine): Promise<Routine> => {\n const response = await axios.post(\n makeUrl(ApiPath.ROUTINE,),\n routine.toJson(),\n { headers: makeHeader() }\n );\n\n return Routine.fromJson(response.data);\n};\n\nexport const editRoutine = async (routine: Routine): Promise<Routine> => {\n const response = await axios.patch(\n makeUrl(ApiPath.ROUTINE, { id: routine.id! }),\n routine.toJson(),\n { headers: makeHeader() }\n );\n\n return Routine.fromJson(response.data);\n};\n\nexport const deleteRoutine = async (id: number): Promise<number> => {\n const response = await axios.delete(\n makeUrl(ApiPath.ROUTINE, { id: id }),\n { headers: makeHeader() }\n );\n\n return response.status;\n};\n\n\nexport const getRoutineDayDataAllIterations = async (routineId: number): Promise<RoutineDayData[]> => {\n const response = await axios.get(\n makeUrl(ApiPath.ROUTINE, { id: routineId, objectMethod: ROUTINE_API_ALL_ITERATION_DISPLAY }),\n { headers: makeHeader() }\n );\n\n const adapter = new RoutineDayDataAdapter();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return response.data.map((data: any) => adapter.fromJson(data));\n};\n\nexport const getRoutineStructure = async (routineId: number): Promise<Day[]> => {\n const response = await axios.get(\n makeUrl(ApiPath.ROUTINE, { id: routineId, objectMethod: ROUTINE_API_STRUCTURE_PATH }),\n { headers: makeHeader() }\n );\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return response.data.days.map((data: any) => Day.fromJson(data));\n};\n\nexport const getRoutineLogData = async (routineId: number): Promise<RoutineLogData[]> => {\n const response = await axios.get(\n makeUrl(ApiPath.ROUTINE, { id: routineId, objectMethod: ROUTINE_API_LOGS_PATH }),\n { headers: makeHeader() }\n );\n\n const adapter = new RoutineLogDataAdapter();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return response.data.map((data: any) => adapter.fromJson(data));\n};\n\nexport const getRoutineStatisticsData = async (routineId: number): Promise<RoutineStatsData> => {\n const response = await axios.get(\n makeUrl(ApiPath.ROUTINE, { id: routineId, objectMethod: ROUTINE_API_STATS_PATH }),\n { headers: makeHeader() }\n );\n\n return new RoutineStatsDataAdapter().fromJson(response.data);\n};\n","import { Adapter } from \"utils/Adapter\";\nimport { MeasurementEntry } from \"components/Measurements/models/Entry\";\n\nexport class MeasurementCategory {\n\n entries: MeasurementEntry[] = [];\n\n constructor(\n public id: number,\n public name: string,\n public unit: string,\n entries?: MeasurementEntry[]\n ) {\n if (entries) {\n this.entries = entries;\n }\n }\n}\n\n\nexport class MeasurementCategoryAdapter implements Adapter<MeasurementCategory> {\n fromJson(item: any) {\n return new MeasurementCategory(\n item.id,\n item.name,\n item.unit\n );\n }\n\n toJson(item: MeasurementCategory) {\n return {\n id: item.id,\n name: item.name,\n unit: item.unit,\n };\n }\n}","import { Adapter } from \"utils/Adapter\";\n\nexport class MeasurementEntry {\n\n constructor(\n public id: number | null,\n public category: number,\n public date: Date,\n public value: number,\n public notes: string\n ) {\n }\n}\n\n\nexport class MeasurementEntryAdapter implements Adapter<MeasurementEntry> {\n fromJson(item: any) {\n return new MeasurementEntry(\n item.id,\n item.category,\n new Date(item.date),\n item.value,\n item.notes\n );\n }\n\n toJson(item: MeasurementEntry) {\n return {\n id: item.id,\n category: item.category,\n date: item.date,\n value: item.value,\n notes: item.notes\n };\n }\n}","import axios, { AxiosRequestConfig } from 'axios';\nimport { makeHeader } from \"utils/url\";\n\nexport async function* fetchPaginated(url: string, headers?: AxiosRequestConfig['headers']): AsyncGenerator<any[], void> {\n\n if (headers == null) {\n headers = makeHeader();\n }\n\n while (true) {\n const response = await axios.get(url, { headers: headers });\n const data = response.data;\n yield data.results;\n\n url = data.next;\n if (!url) {\n break;\n }\n }\n}\n\n","import axios from 'axios';\nimport { MeasurementCategory, MeasurementCategoryAdapter } from \"components/Measurements/models/Category\";\nimport { MeasurementEntry, MeasurementEntryAdapter } from \"components/Measurements/models/Entry\";\nimport { ApiMeasurementCategoryType } from 'types';\nimport { dateToYYYYMMDD } from \"utils/date\";\nimport { fetchPaginated } from 'utils/requests';\nimport { makeHeader, makeUrl } from \"utils/url\";\n\nexport const API_MEASUREMENTS_CATEGORY_PATH = 'measurement-category';\nexport const API_MEASUREMENTS_ENTRY_PATH = 'measurement';\n\nexport type MeasurementQueryOptions = {\n filtersetQueryCategories?: object,\n filtersetQueryEntries?: object,\n}\n\nexport const getMeasurementCategories = async (options?: MeasurementQueryOptions): Promise<MeasurementCategory[]> => {\n const { filtersetQueryCategories = {}, filtersetQueryEntries = {} } = options || {};\n\n const adapter = new MeasurementCategoryAdapter();\n const entryAdapter = new MeasurementEntryAdapter();\n const categories: MeasurementCategory[] = [];\n\n for await (const page of fetchPaginated(makeUrl(API_MEASUREMENTS_CATEGORY_PATH, { query: { ...filtersetQueryCategories } }), makeHeader())) {\n for (const catData of page) {\n categories.push(adapter.fromJson(catData));\n }\n }\n\n // Load entries for each category\n const entryResponses = categories.map(async (category) => {\n const out: MeasurementEntry[] = [];\n const url = makeUrl(API_MEASUREMENTS_ENTRY_PATH, { query: { category: category.id, ...filtersetQueryEntries } });\n\n // Collect all pages of entries\n for await (const page of fetchPaginated(url, makeHeader())) {\n for (const entries of page) {\n out.push(entryAdapter.fromJson(entries));\n }\n }\n return out;\n });\n const settingsResponses = await Promise.all(entryResponses);\n\n // Save entries to each category\n let categoryId: number;\n settingsResponses.forEach((entries) => {\n if (entries.length > 0) {\n categoryId = entries[0].category;\n categories.findLast(c => c.id === categoryId)!.entries = entries;\n }\n });\n\n return categories;\n};\n\nexport const getMeasurementCategory = async (id: number): Promise<MeasurementCategory> => {\n const { data: receivedCategories } = await axios.get<ApiMeasurementCategoryType>(\n makeUrl(API_MEASUREMENTS_CATEGORY_PATH, { id: id }),\n { headers: makeHeader() },\n );\n\n const category = new MeasurementCategoryAdapter().fromJson(receivedCategories);\n const adapter = new MeasurementEntryAdapter();\n const measurements: MeasurementEntry[] = [];\n const url = makeUrl(API_MEASUREMENTS_ENTRY_PATH, { query: { category: category.id } });\n\n // Collect all pages of entries\n for await (const page of fetchPaginated(url, makeHeader())) {\n for (const entries of page) {\n measurements.push(adapter.fromJson(entries));\n }\n }\n\n category.entries = measurements;\n\n return category;\n};\n\nexport interface AddMeasurementCategoryParams {\n name: string;\n unit: string;\n}\n\nexport const addMeasurementCategory = async (data: AddMeasurementCategoryParams): Promise<MeasurementCategory> => {\n const response = await axios.post(\n makeUrl(API_MEASUREMENTS_CATEGORY_PATH,),\n {\n name: data.name,\n unit: data.unit\n },\n { headers: makeHeader() }\n );\n\n const adapter = new MeasurementCategoryAdapter();\n return adapter.fromJson(response.data);\n};\n\nexport interface editMeasurementCategoryParams {\n id: number,\n name: string;\n unit: string;\n}\n\nexport const editMeasurementCategory = async (data: editMeasurementCategoryParams): Promise<MeasurementCategory> => {\n const response = await axios.patch(\n makeUrl(API_MEASUREMENTS_CATEGORY_PATH, { id: data.id }),\n {\n name: data.name,\n unit: data.unit\n },\n { headers: makeHeader() }\n );\n\n const adapter = new MeasurementCategoryAdapter();\n return adapter.fromJson(response.data);\n};\n\nexport const deleteMeasurementCategory = async (id: number): Promise<void> => {\n await axios.delete(makeUrl(API_MEASUREMENTS_CATEGORY_PATH, { id: id }), { headers: makeHeader() });\n};\n\n\nexport const deleteMeasurementEntry = async (id: number): Promise<void> => {\n await axios.delete(makeUrl(API_MEASUREMENTS_ENTRY_PATH, { id: id }), { headers: makeHeader() });\n};\n\nexport interface editMeasurementParams {\n id: number,\n categoryId?: number,\n date: Date;\n value: number;\n notes: string;\n}\n\nexport const editMeasurementEntry = async (data: editMeasurementParams): Promise<MeasurementEntry> => {\n const response = await axios.patch(\n makeUrl(API_MEASUREMENTS_ENTRY_PATH, { id: data.id }),\n {\n date: dateToYYYYMMDD(data.date),\n value: data.value,\n notes: data.notes\n },\n { headers: makeHeader() }\n );\n\n const adapter = new MeasurementEntryAdapter();\n return adapter.fromJson(response.data);\n};\n\nexport interface AddMeasurementParams {\n categoryId: number;\n date: Date;\n value: number;\n notes: string;\n}\n\nexport const addMeasurementEntry = async (data: AddMeasurementParams): Promise<MeasurementEntry> => {\n\n const response = await axios.post(\n makeUrl(API_MEASUREMENTS_ENTRY_PATH),\n {\n category: data.categoryId,\n date: dateToYYYYMMDD(data.date),\n value: data.value,\n notes: data.notes\n },\n { headers: makeHeader() }\n );\n\n const adapter = new MeasurementEntryAdapter();\n return adapter.fromJson(response.data);\n};","import { ApiIngredientImageType } from \"types\";\nimport { Adapter } from \"utils/Adapter\";\n\n\nexport type IngredientImageConstructorParams = {\n id: number;\n uuid: string;\n url: string;\n created: Date;\n lastUpdate: Date;\n size: number;\n width: number;\n height: number;\n};\n\nexport class IngredientImage {\n public id: number;\n public uuid: string;\n public url: string;\n public created: Date;\n public lastUpdate: Date;\n public size: number;\n public width: number;\n public height: number;\n\n constructor(params: IngredientImageConstructorParams) {\n this.id = params.id;\n this.uuid = params.uuid;\n this.url = params.url;\n this.created = params.created;\n this.lastUpdate = params.lastUpdate;\n this.size = params.size;\n this.width = params.width;\n this.height = params.height;\n }\n\n static fromJson(json: ApiIngredientImageType): IngredientImage {\n return adapter.fromJson(json);\n }\n}\n\nclass IngredientImageAdapter implements Adapter<IngredientImage> {\n fromJson(item: ApiIngredientImageType) {\n return new IngredientImage({\n id: item.id,\n uuid: item.uuid,\n url: item.image,\n created: new Date(item.created),\n lastUpdate: new Date(item.last_update),\n size: item.size,\n width: item.width,\n height: item.height,\n });\n }\n}\n\nconst adapter = new IngredientImageAdapter();","import { Adapter } from \"utils/Adapter\";\n\nexport type ApiIngredientThumbnailType = {\n small: string,\n small_cropped: string,\n medium: string,\n medium_cropped: string,\n large: string,\n large_cropped: string\n}\n\nexport type IngredientImageThumbnailsConstructorParams = {\n small: string;\n smallCropped: string;\n medium: string;\n mediumCropped: string;\n large: string;\n largeCropped: string;\n};\n\n/**\n * Note: all the strings are URLs to the images\n */\nexport class IngredientImageThumbnails {\n public small: string;\n public smallCropped: string;\n public medium: string;\n public mediumCropped: string;\n public large: string;\n public largeCropped: string;\n\n constructor(params: IngredientImageThumbnailsConstructorParams) {\n this.small = params.small;\n this.smallCropped = params.smallCropped;\n this.medium = params.medium;\n this.mediumCropped = params.mediumCropped;\n this.large = params.large;\n this.largeCropped = params.largeCropped;\n }\n\n static fromJson(json: ApiIngredientThumbnailType): IngredientImageThumbnails {\n return adapter.fromJson(json);\n }\n}\n\nclass IngredientImageThumbnailsAdapter implements Adapter<IngredientImageThumbnails> {\n fromJson(item: ApiIngredientThumbnailType): IngredientImageThumbnails {\n return new IngredientImageThumbnails({\n small: item.small,\n smallCropped: item.small_cropped,\n medium: item.medium,\n mediumCropped: item.medium_cropped,\n large: item.large,\n largeCropped: item.large_cropped,\n });\n }\n}\n\nconst adapter = new IngredientImageThumbnailsAdapter();","import { IngredientImage } from \"components/Nutrition/models/IngredientImage\";\nimport { IngredientImageThumbnails } from \"components/Nutrition/models/IngredientImageThumbnails\";\nimport { ApiIngredientType } from \"types\";\nimport { Adapter } from \"utils/Adapter\";\n\nexport type IngredientConstructorParams = {\n id: number;\n uuid: string;\n code: string;\n name: string;\n energy: number;\n protein: number;\n carbohydrates: number;\n carbohydratesSugar: number | null;\n fat: number;\n fatSaturated: number | null;\n fiber: number | null;\n sodium: number | null;\n image?: IngredientImage | null;\n thumbnails?: IngredientImageThumbnails | null;\n};\n\nexport class Ingredient {\n\n public id: number;\n public uuid: string;\n public code: string;\n public name: string;\n public energy: number;\n public protein: number;\n public carbohydrates: number;\n public carbohydratesSugar: number | null;\n public fat: number;\n public fatSaturated: number | null;\n public fiber: number | null;\n public sodium: number | null;\n public image: IngredientImage | null;\n public thumbnails: IngredientImageThumbnails | null;\n\n constructor(params: IngredientConstructorParams) {\n this.id = params.id;\n this.uuid = params.uuid;\n this.code = params.code;\n this.name = params.name;\n this.energy = params.energy;\n this.protein = params.protein;\n this.carbohydrates = params.carbohydrates;\n this.carbohydratesSugar = params.carbohydratesSugar;\n this.fat = params.fat;\n this.fatSaturated = params.fatSaturated;\n this.fiber = params.fiber;\n this.sodium = params.sodium;\n this.image = params.image ?? null;\n this.thumbnails = params.thumbnails ?? null;\n }\n\n static fromJson(json: ApiIngredientType): Ingredient {\n return adapter.fromJson(json);\n }\n}\n\n\nclass IngredientAdapter implements Adapter<Ingredient> {\n fromJson(item: ApiIngredientType) {\n return new Ingredient({\n id: item.id,\n uuid: item.uuid,\n code: item.code,\n name: item.name,\n energy: item.energy,\n protein: parseFloat(item.protein),\n carbohydrates: parseFloat(item.carbohydrates),\n carbohydratesSugar: item.carbohydrates_sugar === null ? null : parseFloat(item.carbohydrates_sugar),\n fat: parseFloat(item.fat),\n fatSaturated: item.fat_saturated === null ? null : parseFloat(item.fat_saturated),\n fiber: item.fiber === null ? null : parseFloat(item.fiber),\n sodium: item.sodium === null ? null : parseFloat(item.sodium),\n image: item.image === null ? null : IngredientImage.fromJson(item.image),\n thumbnails: item.thumbnails === null ? null : IngredientImageThumbnails.fromJson(item.thumbnails),\n });\n }\n}\n\nconst adapter = new IngredientAdapter();","/**\n * @license\n * Lodash <https://lodash.com/>\n * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n;(function() {\n\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\n var undefined;\n\n /** Used as the semantic version number. */\n var VERSION = '4.17.21';\n\n /** Used as the size to enable large array optimizations. */\n var LARGE_ARRAY_SIZE = 200;\n\n /** Error message constants. */\n var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',\n FUNC_ERROR_TEXT = 'Expected a function',\n INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`';\n\n /** Used to stand-in for `undefined` hash values. */\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n /** Used as the maximum memoize cache size. */\n var MAX_MEMOIZE_SIZE = 500;\n\n /** Used as the internal argument placeholder. */\n var PLACEHOLDER = '__lodash_placeholder__';\n\n /** Used to compose bitmasks for cloning. */\n var CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n /** Used to compose bitmasks for value comparisons. */\n var COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n /** Used to compose bitmasks for function metadata. */\n var WRAP_BIND_FLAG = 1,\n WRAP_BIND_KEY_FLAG = 2,\n WRAP_CURRY_BOUND_FLAG = 4,\n WRAP_CURRY_FLAG = 8,\n WRAP_CURRY_RIGHT_FLAG = 16,\n WRAP_PARTIAL_FLAG = 32,\n WRAP_PARTIAL_RIGHT_FLAG = 64,\n WRAP_ARY_FLAG = 128,\n WRAP_REARG_FLAG = 256,\n WRAP_FLIP_FLAG = 512;\n\n /** Used as default options for `_.truncate`. */\n var DEFAULT_TRUNC_LENGTH = 30,\n DEFAULT_TRUNC_OMISSION = '...';\n\n /** Used to detect hot functions by number of calls within a span of milliseconds. */\n var HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n /** Used to indicate the type of lazy iteratees. */\n var LAZY_FILTER_FLAG = 1,\n LAZY_MAP_FLAG = 2,\n LAZY_WHILE_FLAG = 3;\n\n /** Used as references for various `Number` constants. */\n var INFINITY = 1 / 0,\n MAX_SAFE_INTEGER = 9007199254740991,\n MAX_INTEGER = 1.7976931348623157e+308,\n NAN = 0 / 0;\n\n /** Used as references for the maximum length and index of an array. */\n var MAX_ARRAY_LENGTH = 4294967295,\n MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,\n HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\n\n /** Used to associate wrap methods with their bit flags. */\n var wrapFlags = [\n ['ary', WRAP_ARY_FLAG],\n ['bind', WRAP_BIND_FLAG],\n ['bindKey', WRAP_BIND_KEY_FLAG],\n ['curry', WRAP_CURRY_FLAG],\n ['curryRight', WRAP_CURRY_RIGHT_FLAG],\n ['flip', WRAP_FLIP_FLAG],\n ['partial', WRAP_PARTIAL_FLAG],\n ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\n ['rearg', WRAP_REARG_FLAG]\n ];\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n domExcTag = '[object DOMException]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]',\n weakSetTag = '[object WeakSet]';\n\n var arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /** Used to match empty string literals in compiled template source. */\n var reEmptyStringLeading = /\\b__p \\+= '';/g,\n reEmptyStringMiddle = /\\b(__p \\+=) '' \\+/g,\n reEmptyStringTrailing = /(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;\n\n /** Used to match HTML entities and HTML characters. */\n var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,\n reUnescapedHtml = /[&<>\"']/g,\n reHasEscapedHtml = RegExp(reEscapedHtml.source),\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n /** Used to match template delimiters. */\n var reEscape = /<%-([\\s\\S]+?)%>/g,\n reEvaluate = /<%([\\s\\S]+?)%>/g,\n reInterpolate = /<%=([\\s\\S]+?)%>/g;\n\n /** Used to match property names within property paths. */\n var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n /**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n /** Used to match leading whitespace. */\n var reTrimStart = /^\\s+/;\n\n /** Used to match a single whitespace character. */\n var reWhitespace = /\\s/;\n\n /** Used to match wrap detail comments. */\n var reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,\n reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n reSplitDetails = /,? & /;\n\n /** Used to match words composed of alphanumeric characters. */\n var reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n /**\n * Used to validate the `validate` option in `_.template` variable.\n *\n * Forbids characters which could potentially change the meaning of the function argument definition:\n * - \"(),\" (modification of function parameters)\n * - \"=\" (default value)\n * - \"[]{}\" (destructuring of function parameters)\n * - \"/\" (beginning of a comment)\n * - whitespace\n */\n var reForbiddenIdentifierChars = /[()=,{}\\[\\]\\/\\s]/;\n\n /** Used to match backslashes in property paths. */\n var reEscapeChar = /\\\\(\\\\)?/g;\n\n /**\n * Used to match\n * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).\n */\n var reEsTemplate = /\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;\n\n /** Used to match `RegExp` flags from their coerced string values. */\n var reFlags = /\\w*$/;\n\n /** Used to detect bad signed hexadecimal string values. */\n var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n /** Used to detect binary string values. */\n var reIsBinary = /^0b[01]+$/i;\n\n /** Used to detect host constructors (Safari). */\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to detect octal string values. */\n var reIsOctal = /^0o[0-7]+$/i;\n\n /** Used to detect unsigned integer values. */\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n /** Used to match Latin Unicode letters (excluding mathematical operators). */\n var reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n /** Used to ensure capturing order of template delimiters. */\n var reNoMatch = /($^)/;\n\n /** Used to match unescaped characters in compiled string literals. */\n var reUnescapedString = /['\\n\\r\\u2028\\u2029\\\\]/g;\n\n /** Used to compose unicode character classes. */\n var rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n /** Used to compose unicode capture groups. */\n var rsApos = \"['\\u2019]\",\n rsAstral = '[' + rsAstralRange + ']',\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n /** Used to compose unicode regexes. */\n var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n /** Used to match apostrophes. */\n var reApos = RegExp(rsApos, 'g');\n\n /**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\n var reComboMark = RegExp(rsCombo, 'g');\n\n /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\n var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n /** Used to match complex or compound words. */\n var reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n rsUpper + '+' + rsOptContrUpper,\n rsOrdUpper,\n rsOrdLower,\n rsDigits,\n rsEmoji\n ].join('|'), 'g');\n\n /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\n var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n /** Used to detect strings that need a more robust regexp to match words. */\n var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n /** Used to assign default `context` object properties. */\n var contextProps = [\n 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',\n 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',\n 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',\n 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',\n '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'\n ];\n\n /** Used to make template sourceURLs easier to identify. */\n var templateCounter = -1;\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\n typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\n typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\n typedArrayTags[errorTag] = typedArrayTags[funcTag] =\n typedArrayTags[mapTag] = typedArrayTags[numberTag] =\n typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\n typedArrayTags[setTag] = typedArrayTags[stringTag] =\n typedArrayTags[weakMapTag] = false;\n\n /** Used to identify `toStringTag` values supported by `_.clone`. */\n var cloneableTags = {};\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n cloneableTags[boolTag] = cloneableTags[dateTag] =\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[setTag] =\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\n cloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[weakMapTag] = false;\n\n /** Used to map Latin Unicode letters to basic Latin letters. */\n var deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 's'\n };\n\n /** Used to map characters to HTML entities. */\n var htmlEscapes = {\n '&': '&amp;',\n '<': '&lt;',\n '>': '&gt;',\n '\"': '&quot;',\n \"'\": '&#39;'\n };\n\n /** Used to map HTML entities to characters. */\n var htmlUnescapes = {\n '&amp;': '&',\n '&lt;': '<',\n '&gt;': '>',\n '&quot;': '\"',\n '&#39;': \"'\"\n };\n\n /** Used to escape characters for inclusion in compiled string literals. */\n var stringEscapes = {\n '\\\\': '\\\\',\n \"'\": \"'\",\n '\\n': 'n',\n '\\r': 'r',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n };\n\n /** Built-in method references without a dependency on `root`. */\n var freeParseFloat = parseFloat,\n freeParseInt = parseInt;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n\n /** Detect free variable `exports`. */\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports;\n\n /** Detect free variable `process` from Node.js. */\n var freeProcess = moduleExports && freeGlobal.process;\n\n /** Used to access faster Node.js helpers. */\n var nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n }());\n\n /* Node.js helper references. */\n var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,\n nodeIsDate = nodeUtil && nodeUtil.isDate,\n nodeIsMap = nodeUtil && nodeUtil.isMap,\n nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\n nodeIsSet = nodeUtil && nodeUtil.isSet,\n nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\n function apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n }\n\n /**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.forEachRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEachRight(array, iteratee) {\n var length = array == null ? 0 : array.length;\n\n while (length--) {\n if (iteratee(array[length], length, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.every` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n */\n function arrayEvery(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (!predicate(array[index], index, array)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n }\n\n /**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n }\n\n /**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n function arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.reduceRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the last element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduceRight(array, iteratee, accumulator, initAccum) {\n var length = array == null ? 0 : array.length;\n if (initAccum && length) {\n accumulator = array[--length];\n }\n while (length--) {\n accumulator = iteratee(accumulator, array[length], length, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n var asciiSize = baseProperty('length');\n\n /**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function asciiToArray(string) {\n return string.split('');\n }\n\n /**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function asciiWords(string) {\n return string.match(reAsciiWord) || [];\n }\n\n /**\n * The base implementation of methods like `_.findKey` and `_.findLastKey`,\n * without support for iteratee shorthands, which iterates over `collection`\n * using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the found element or its key, else `undefined`.\n */\n function baseFindKey(collection, predicate, eachFunc) {\n var result;\n eachFunc(collection, function(value, key, collection) {\n if (predicate(value, key, collection)) {\n result = key;\n return false;\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n }\n\n /**\n * This function is like `baseIndexOf` except that it accepts a comparator.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOfWith(array, value, fromIndex, comparator) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (comparator(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\n function baseIsNaN(value) {\n return value !== value;\n }\n\n /**\n * The base implementation of `_.mean` and `_.meanBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the mean.\n */\n function baseMean(array, iteratee) {\n var length = array == null ? 0 : array.length;\n return length ? (baseSum(array, iteratee) / length) : NAN;\n }\n\n /**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\n function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\n function baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\n function baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined) {\n result = result === undefined ? current : (result + current);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n function baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array\n * of key-value pairs for `object` corresponding to the property names of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the key-value pairs.\n */\n function baseToPairs(object, props) {\n return arrayMap(props, function(key) {\n return [key, object[key]];\n });\n }\n\n /**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\n function baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n }\n\n /**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n function baseUnary(func) {\n return function(value) {\n return func(value);\n };\n }\n\n /**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\n function baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n }\n\n /**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function cacheHas(cache, key) {\n return cache.has(key);\n }\n\n /**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\n function charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\n function charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Gets the number of `placeholder` occurrences in `array`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} placeholder The placeholder to search for.\n * @returns {number} Returns the placeholder count.\n */\n function countHolders(array, placeholder) {\n var length = array.length,\n result = 0;\n\n while (length--) {\n if (array[length] === placeholder) {\n ++result;\n }\n }\n return result;\n }\n\n /**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\n var deburrLetter = basePropertyOf(deburredLetters);\n\n /**\n * Used by `_.escape` to convert characters to HTML entities.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n var escapeHtmlChar = basePropertyOf(htmlEscapes);\n\n /**\n * Used by `_.template` to escape characters for inclusion in compiled string literals.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n function escapeStringChar(chr) {\n return '\\\\' + stringEscapes[chr];\n }\n\n /**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function getValue(object, key) {\n return object == null ? undefined : object[key];\n }\n\n /**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\n function hasUnicode(string) {\n return reHasUnicode.test(string);\n }\n\n /**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\n function hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n }\n\n /**\n * Converts `iterator` to an array.\n *\n * @private\n * @param {Object} iterator The iterator to convert.\n * @returns {Array} Returns the converted array.\n */\n function iteratorToArray(iterator) {\n var data,\n result = [];\n\n while (!(data = iterator.next()).done) {\n result.push(data.value);\n }\n return result;\n }\n\n /**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\n function mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n }\n\n /**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n function overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n }\n\n /**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\n function replaceHolders(array, placeholder) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value === placeholder || value === PLACEHOLDER) {\n array[index] = PLACEHOLDER;\n result[resIndex++] = index;\n }\n }\n return result;\n }\n\n /**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\n function setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n }\n\n /**\n * Converts `set` to its value-value pairs.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the value-value pairs.\n */\n function setToPairs(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = [value, value];\n });\n return result;\n }\n\n /**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * A specialized version of `_.lastIndexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictLastIndexOf(array, value, fromIndex) {\n var index = fromIndex + 1;\n while (index--) {\n if (array[index] === value) {\n return index;\n }\n }\n return index;\n }\n\n /**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\n function stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n }\n\n /**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\n function trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n }\n\n /**\n * Used by `_.unescape` to convert HTML entities to characters.\n *\n * @private\n * @param {string} chr The matched character to unescape.\n * @returns {string} Returns the unescaped character.\n */\n var unescapeHtmlChar = basePropertyOf(htmlUnescapes);\n\n /**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n function unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n }\n\n /**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function unicodeToArray(string) {\n return string.match(reUnicode) || [];\n }\n\n /**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n }\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * Create a new pristine `lodash` function using the `context` object.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Util\n * @param {Object} [context=root] The context object.\n * @returns {Function} Returns a new `lodash` function.\n * @example\n *\n * _.mixin({ 'foo': _.constant('foo') });\n *\n * var lodash = _.runInContext();\n * lodash.mixin({ 'bar': lodash.constant('bar') });\n *\n * _.isFunction(_.foo);\n * // => true\n * _.isFunction(_.bar);\n * // => false\n *\n * lodash.isFunction(lodash.foo);\n * // => false\n * lodash.isFunction(lodash.bar);\n * // => true\n *\n * // Create a suped-up `defer` in Node.js.\n * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n */\n var runInContext = (function runInContext(context) {\n context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));\n\n /** Built-in constructor references. */\n var Array = context.Array,\n Date = context.Date,\n Error = context.Error,\n Function = context.Function,\n Math = context.Math,\n Object = context.Object,\n RegExp = context.RegExp,\n String = context.String,\n TypeError = context.TypeError;\n\n /** Used for built-in method references. */\n var arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect overreaching core-js shims. */\n var coreJsData = context['__core-js_shared__'];\n\n /** Used to resolve the decompiled source of functions. */\n var funcToString = funcProto.toString;\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to generate unique IDs. */\n var idCounter = 0;\n\n /** Used to detect methods masquerading as native. */\n var maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n }());\n\n /**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n var nativeObjectToString = objectProto.toString;\n\n /** Used to infer the `Object` constructor. */\n var objectCtorString = funcToString.call(Object);\n\n /** Used to restore the original `_` reference in `_.noConflict`. */\n var oldDash = root._;\n\n /** Used to detect if a method is native. */\n var reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n );\n\n /** Built-in value references. */\n var Buffer = moduleExports ? context.Buffer : undefined,\n Symbol = context.Symbol,\n Uint8Array = context.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,\n symIterator = Symbol ? Symbol.iterator : undefined,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n var defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n }());\n\n /** Mocked built-ins. */\n var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,\n ctxNow = Date && Date.now !== root.Date.now && Date.now,\n ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;\n\n /* Built-in method references for those with the same name as other `lodash` methods. */\n var nativeCeil = Math.ceil,\n nativeFloor = Math.floor,\n nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeIsFinite = context.isFinite,\n nativeJoin = arrayProto.join,\n nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max,\n nativeMin = Math.min,\n nativeNow = Date.now,\n nativeParseInt = context.parseInt,\n nativeRandom = Math.random,\n nativeReverse = arrayProto.reverse;\n\n /* Built-in method references that are verified to be native. */\n var DataView = getNative(context, 'DataView'),\n Map = getNative(context, 'Map'),\n Promise = getNative(context, 'Promise'),\n Set = getNative(context, 'Set'),\n WeakMap = getNative(context, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n /** Used to store function metadata. */\n var metaMap = WeakMap && new WeakMap;\n\n /** Used to lookup unminified function names. */\n var realNames = {};\n\n /** Used to detect maps, sets, and weakmaps. */\n var dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n /** Used to convert symbols to primitives and strings. */\n var symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` object which wraps `value` to enable implicit method\n * chain sequences. Methods that operate on and return arrays, collections,\n * and functions can be chained together. Methods that retrieve a single value\n * or may return a primitive value will automatically end the chain sequence\n * and return the unwrapped value. Otherwise, the value must be unwrapped\n * with `_#value`.\n *\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n * enabled using `_.chain`.\n *\n * The execution of chained methods is lazy, that is, it's deferred until\n * `_#value` is implicitly or explicitly called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion.\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n * the creation of intermediate arrays and can greatly reduce the number of\n * iteratee executions. Sections of a chain sequence qualify for shortcut\n * fusion if the section is applied to an array and iteratees accept only\n * one argument. The heuristic for whether a section qualifies for shortcut\n * fusion is subject to change.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\n *\n * The wrapper `Array` methods are:\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n *\n * The wrapper `String` methods are:\n * `replace` and `split`\n *\n * The wrapper methods that support shortcut fusion are:\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n * `zipObject`, `zipObjectDeep`, and `zipWith`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n * `upperFirst`, `value`, and `words`\n *\n * @name _\n * @constructor\n * @category Seq\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // Returns an unwrapped value.\n * wrapped.reduce(_.add);\n * // => 6\n *\n * // Returns a wrapped value.\n * var squares = wrapped.map(square);\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\n function lodash(value) {\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n if (value instanceof LodashWrapper) {\n return value;\n }\n if (hasOwnProperty.call(value, '__wrapped__')) {\n return wrapperClone(value);\n }\n }\n return new LodashWrapper(value);\n }\n\n /**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n var baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n }());\n\n /**\n * The function whose prototype chain sequence wrappers inherit from.\n *\n * @private\n */\n function baseLodash() {\n // No operation performed.\n }\n\n /**\n * The base constructor for creating `lodash` wrapper objects.\n *\n * @private\n * @param {*} value The value to wrap.\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\n */\n function LodashWrapper(value, chainAll) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__chain__ = !!chainAll;\n this.__index__ = 0;\n this.__values__ = undefined;\n }\n\n /**\n * By default, the template delimiters used by lodash are like those in\n * embedded Ruby (ERB) as well as ES2015 template strings. Change the\n * following template settings to use alternative delimiters.\n *\n * @static\n * @memberOf _\n * @type {Object}\n */\n lodash.templateSettings = {\n\n /**\n * Used to detect `data` property values to be HTML-escaped.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'escape': reEscape,\n\n /**\n * Used to detect code to be evaluated.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'evaluate': reEvaluate,\n\n /**\n * Used to detect `data` property values to inject.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'interpolate': reInterpolate,\n\n /**\n * Used to reference the data object in the template text.\n *\n * @memberOf _.templateSettings\n * @type {string}\n */\n 'variable': '',\n\n /**\n * Used to import variables into the compiled template.\n *\n * @memberOf _.templateSettings\n * @type {Object}\n */\n 'imports': {\n\n /**\n * A reference to the `lodash` function.\n *\n * @memberOf _.templateSettings.imports\n * @type {Function}\n */\n '_': lodash\n }\n };\n\n // Ensure wrappers are instances of `baseLodash`.\n lodash.prototype = baseLodash.prototype;\n lodash.prototype.constructor = lodash;\n\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\n LodashWrapper.prototype.constructor = LodashWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n *\n * @private\n * @constructor\n * @param {*} value The value to wrap.\n */\n function LazyWrapper(value) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__dir__ = 1;\n this.__filtered__ = false;\n this.__iteratees__ = [];\n this.__takeCount__ = MAX_ARRAY_LENGTH;\n this.__views__ = [];\n }\n\n /**\n * Creates a clone of the lazy wrapper object.\n *\n * @private\n * @name clone\n * @memberOf LazyWrapper\n * @returns {Object} Returns the cloned `LazyWrapper` object.\n */\n function lazyClone() {\n var result = new LazyWrapper(this.__wrapped__);\n result.__actions__ = copyArray(this.__actions__);\n result.__dir__ = this.__dir__;\n result.__filtered__ = this.__filtered__;\n result.__iteratees__ = copyArray(this.__iteratees__);\n result.__takeCount__ = this.__takeCount__;\n result.__views__ = copyArray(this.__views__);\n return result;\n }\n\n /**\n * Reverses the direction of lazy iteration.\n *\n * @private\n * @name reverse\n * @memberOf LazyWrapper\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\n */\n function lazyReverse() {\n if (this.__filtered__) {\n var result = new LazyWrapper(this);\n result.__dir__ = -1;\n result.__filtered__ = true;\n } else {\n result = this.clone();\n result.__dir__ *= -1;\n }\n return result;\n }\n\n /**\n * Extracts the unwrapped value from its lazy wrapper.\n *\n * @private\n * @name value\n * @memberOf LazyWrapper\n * @returns {*} Returns the unwrapped value.\n */\n function lazyValue() {\n var array = this.__wrapped__.value(),\n dir = this.__dir__,\n isArr = isArray(array),\n isRight = dir < 0,\n arrLength = isArr ? array.length : 0,\n view = getView(0, arrLength, this.__views__),\n start = view.start,\n end = view.end,\n length = end - start,\n index = isRight ? end : (start - 1),\n iteratees = this.__iteratees__,\n iterLength = iteratees.length,\n resIndex = 0,\n takeCount = nativeMin(length, this.__takeCount__);\n\n if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\n return baseWrapperValue(array, this.__actions__);\n }\n var result = [];\n\n outer:\n while (length-- && resIndex < takeCount) {\n index += dir;\n\n var iterIndex = -1,\n value = array[index];\n\n while (++iterIndex < iterLength) {\n var data = iteratees[iterIndex],\n iteratee = data.iteratee,\n type = data.type,\n computed = iteratee(value);\n\n if (type == LAZY_MAP_FLAG) {\n value = computed;\n } else if (!computed) {\n if (type == LAZY_FILTER_FLAG) {\n continue outer;\n } else {\n break outer;\n }\n }\n }\n result[resIndex++] = value;\n }\n return result;\n }\n\n // Ensure `LazyWrapper` is an instance of `baseLodash`.\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\n LazyWrapper.prototype.constructor = LazyWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n }\n\n /**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n }\n\n /**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n }\n\n // Add methods to `Hash`.\n Hash.prototype.clear = hashClear;\n Hash.prototype['delete'] = hashDelete;\n Hash.prototype.get = hashGet;\n Hash.prototype.has = hashHas;\n Hash.prototype.set = hashSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n }\n\n /**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n }\n\n /**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n }\n\n /**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n function listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n }\n\n // Add methods to `ListCache`.\n ListCache.prototype.clear = listCacheClear;\n ListCache.prototype['delete'] = listCacheDelete;\n ListCache.prototype.get = listCacheGet;\n ListCache.prototype.has = listCacheHas;\n ListCache.prototype.set = listCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n }\n\n /**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n }\n\n /**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n }\n\n /**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n function mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n }\n\n // Add methods to `MapCache`.\n MapCache.prototype.clear = mapCacheClear;\n MapCache.prototype['delete'] = mapCacheDelete;\n MapCache.prototype.get = mapCacheGet;\n MapCache.prototype.has = mapCacheHas;\n MapCache.prototype.set = mapCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n }\n\n /**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n }\n\n /**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n function setCacheHas(value) {\n return this.__data__.has(value);\n }\n\n // Add methods to `SetCache`.\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n SetCache.prototype.has = setCacheHas;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n }\n\n /**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n function stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n }\n\n /**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function stackGet(key) {\n return this.__data__.get(key);\n }\n\n /**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function stackHas(key) {\n return this.__data__.has(key);\n }\n\n /**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n }\n\n // Add methods to `Stack`.\n Stack.prototype.clear = stackClear;\n Stack.prototype['delete'] = stackDelete;\n Stack.prototype.get = stackGet;\n Stack.prototype.has = stackHas;\n Stack.prototype.set = stackSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.sample` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @returns {*} Returns the random element.\n */\n function arraySample(array) {\n var length = array.length;\n return length ? array[baseRandom(0, length - 1)] : undefined;\n }\n\n /**\n * A specialized version of `_.sampleSize` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function arraySampleSize(array, n) {\n return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));\n }\n\n /**\n * A specialized version of `_.shuffle` for arrays.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function arrayShuffle(array) {\n return shuffleSelf(copyArray(array));\n }\n\n /**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n }\n\n /**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n }\n\n /**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n }\n\n /**\n * The base implementation of `_.at` without support for individual paths.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {string[]} paths The property paths to pick.\n * @returns {Array} Returns the picked elements.\n */\n function baseAt(object, paths) {\n var index = -1,\n length = paths.length,\n result = Array(length),\n skip = object == null;\n\n while (++index < length) {\n result[index] = skip ? undefined : get(object, paths[index]);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\n function baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n }\n\n /**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\n function baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n }\n\n /**\n * The base implementation of `_.conforms` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n */\n function baseConforms(source) {\n var props = keys(source);\n return function(object) {\n return baseConformsTo(object, source, props);\n };\n }\n\n /**\n * The base implementation of `_.conformsTo` which accepts `props` to check.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n */\n function baseConformsTo(object, source, props) {\n var length = props.length;\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (length--) {\n var key = props[length],\n predicate = source[key],\n value = object[key];\n\n if ((value === undefined && !(key in object)) || !predicate(value)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\n * to provide to `func`.\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {Array} args The arguments to provide to `func`.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n function baseDelay(func, wait, args) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return setTimeout(function() { func.apply(undefined, args); }, wait);\n }\n\n /**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\n function baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEach = createBaseEach(baseForOwn);\n\n /**\n * The base implementation of `_.forEachRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEachRight = createBaseEach(baseForOwnRight, true);\n\n /**\n * The base implementation of `_.every` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`\n */\n function baseEvery(collection, predicate) {\n var result = true;\n baseEach(collection, function(value, index, collection) {\n result = !!predicate(value, index, collection);\n return result;\n });\n return result;\n }\n\n /**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\n function baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.fill` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n */\n function baseFill(array, value, start, end) {\n var length = array.length;\n\n start = toInteger(start);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (end === undefined || end > length) ? length : toInteger(end);\n if (end < 0) {\n end += length;\n }\n end = start > end ? 0 : toLength(end);\n while (start < end) {\n array[start++] = value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\n function baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseFor = createBaseFor();\n\n /**\n * This function is like `baseFor` except that it iterates over properties\n * in the opposite order.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseForRight = createBaseFor(true);\n\n /**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwnRight(object, iteratee) {\n return object && baseForRight(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from `props`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the function names.\n */\n function baseFunctions(object, props) {\n return arrayFilter(props, function(key) {\n return isFunction(object[key]);\n });\n }\n\n /**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\n function baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n }\n\n /**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n }\n\n /**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n function baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n }\n\n /**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\n function baseGt(value, other) {\n return value > other;\n }\n\n /**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n }\n\n /**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHasIn(object, key) {\n return object != null && key in Object(object);\n }\n\n /**\n * The base implementation of `_.inRange` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to check.\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n */\n function baseInRange(number, start, end) {\n return number >= nativeMin(start, end) && number < nativeMax(start, end);\n }\n\n /**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\n function baseIntersection(arrays, iteratee, comparator) {\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\n length = arrays[0].length,\n othLength = arrays.length,\n othIndex = othLength,\n caches = Array(othLength),\n maxLength = Infinity,\n result = [];\n\n while (othIndex--) {\n var array = arrays[othIndex];\n if (othIndex && iteratee) {\n array = arrayMap(array, baseUnary(iteratee));\n }\n maxLength = nativeMin(array.length, maxLength);\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n ? new SetCache(othIndex && array)\n : undefined;\n }\n array = arrays[0];\n\n var index = -1,\n seen = caches[0];\n\n outer:\n while (++index < length && result.length < maxLength) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (!(seen\n ? cacheHas(seen, computed)\n : includes(result, computed, comparator)\n )) {\n othIndex = othLength;\n while (--othIndex) {\n var cache = caches[othIndex];\n if (!(cache\n ? cacheHas(cache, computed)\n : includes(arrays[othIndex], computed, comparator))\n ) {\n continue outer;\n }\n }\n if (seen) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.invert` and `_.invertBy` which inverts\n * `object` with values transformed by `iteratee` and set by `setter`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform values.\n * @param {Object} accumulator The initial inverted object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseInverter(object, setter, iteratee, accumulator) {\n baseForOwn(object, function(value, key, object) {\n setter(accumulator, iteratee(value), key, object);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.invoke` without support for individual\n * method arguments.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {Array} args The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n */\n function baseInvoke(object, path, args) {\n path = castPath(path, object);\n object = parent(object, path);\n var func = object == null ? object : object[toKey(last(path))];\n return func == null ? undefined : apply(func, object, args);\n }\n\n /**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n }\n\n /**\n * The base implementation of `_.isArrayBuffer` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n */\n function baseIsArrayBuffer(value) {\n return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;\n }\n\n /**\n * The base implementation of `_.isDate` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n */\n function baseIsDate(value) {\n return isObjectLike(value) && baseGetTag(value) == dateTag;\n }\n\n /**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n }\n\n /**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\n function baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n }\n\n /**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\n function baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n\n /**\n * The base implementation of `_.isRegExp` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n */\n function baseIsRegExp(value) {\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\n }\n\n /**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\n function baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n }\n\n /**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n function baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n }\n\n /**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\n function baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n }\n\n /**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\n function baseLt(value, other) {\n return value < other;\n }\n\n /**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n }\n\n /**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n }\n\n /**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n }\n\n /**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n }\n\n /**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n }\n\n /**\n * The base implementation of `_.nth` which doesn't coerce arguments.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {number} n The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n */\n function baseNth(array, n) {\n var length = array.length;\n if (!length) {\n return;\n }\n n += n < 0 ? length : 0;\n return isIndex(n, length) ? array[n] : undefined;\n }\n\n /**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\n function baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n }\n\n /**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\n function basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n }\n\n /**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\n function basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n }\n\n /**\n * The base implementation of `_.pullAllBy` without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n */\n function basePullAll(array, values, iteratee, comparator) {\n var indexOf = comparator ? baseIndexOfWith : baseIndexOf,\n index = -1,\n length = values.length,\n seen = array;\n\n if (array === values) {\n values = copyArray(values);\n }\n if (iteratee) {\n seen = arrayMap(array, baseUnary(iteratee));\n }\n while (++index < length) {\n var fromIndex = 0,\n value = values[index],\n computed = iteratee ? iteratee(value) : value;\n\n while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {\n if (seen !== array) {\n splice.call(seen, fromIndex, 1);\n }\n splice.call(array, fromIndex, 1);\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.pullAt` without support for individual\n * indexes or capturing the removed elements.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {number[]} indexes The indexes of elements to remove.\n * @returns {Array} Returns `array`.\n */\n function basePullAt(array, indexes) {\n var length = array ? indexes.length : 0,\n lastIndex = length - 1;\n\n while (length--) {\n var index = indexes[length];\n if (length == lastIndex || index !== previous) {\n var previous = index;\n if (isIndex(index)) {\n splice.call(array, index, 1);\n } else {\n baseUnset(array, index);\n }\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.random` without support for returning\n * floating-point numbers.\n *\n * @private\n * @param {number} lower The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the random number.\n */\n function baseRandom(lower, upper) {\n return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\n }\n\n /**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\n function baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n }\n\n /**\n * The base implementation of `_.repeat` which doesn't coerce arguments.\n *\n * @private\n * @param {string} string The string to repeat.\n * @param {number} n The number of times to repeat the string.\n * @returns {string} Returns the repeated string.\n */\n function baseRepeat(string, n) {\n var result = '';\n if (!string || n < 1 || n > MAX_SAFE_INTEGER) {\n return result;\n }\n // Leverage the exponentiation by squaring algorithm for a faster repeat.\n // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\n do {\n if (n % 2) {\n result += string;\n }\n n = nativeFloor(n / 2);\n if (n) {\n string += string;\n }\n } while (n);\n\n return result;\n }\n\n /**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\n function baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n }\n\n /**\n * The base implementation of `_.sample`.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n */\n function baseSample(collection) {\n return arraySample(values(collection));\n }\n\n /**\n * The base implementation of `_.sampleSize` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function baseSampleSize(collection, n) {\n var array = values(collection);\n return shuffleSelf(array, baseClamp(n, 0, array.length));\n }\n\n /**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n }\n\n /**\n * The base implementation of `setData` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var baseSetData = !metaMap ? identity : function(func, data) {\n metaMap.set(func, data);\n return func;\n };\n\n /**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n };\n\n /**\n * The base implementation of `_.shuffle`.\n *\n * @private\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function baseShuffle(collection) {\n return shuffleSelf(values(collection));\n }\n\n /**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n }\n\n /**\n * The base implementation of `_.some` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function baseSome(collection, predicate) {\n var result;\n\n baseEach(collection, function(value, index, collection) {\n result = predicate(value, index, collection);\n return !result;\n });\n return !!result;\n }\n\n /**\n * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which\n * performs a binary search of `array` to determine the index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndex(array, value, retHighest) {\n var low = 0,\n high = array == null ? low : array.length;\n\n if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\n while (low < high) {\n var mid = (low + high) >>> 1,\n computed = array[mid];\n\n if (computed !== null && !isSymbol(computed) &&\n (retHighest ? (computed <= value) : (computed < value))) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return high;\n }\n return baseSortedIndexBy(array, value, identity, retHighest);\n }\n\n /**\n * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`\n * which invokes `iteratee` for `value` and each element of `array` to compute\n * their sort ranking. The iteratee is invoked with one argument; (value).\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} iteratee The iteratee invoked per element.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndexBy(array, value, iteratee, retHighest) {\n var low = 0,\n high = array == null ? 0 : array.length;\n if (high === 0) {\n return 0;\n }\n\n value = iteratee(value);\n var valIsNaN = value !== value,\n valIsNull = value === null,\n valIsSymbol = isSymbol(value),\n valIsUndefined = value === undefined;\n\n while (low < high) {\n var mid = nativeFloor((low + high) / 2),\n computed = iteratee(array[mid]),\n othIsDefined = computed !== undefined,\n othIsNull = computed === null,\n othIsReflexive = computed === computed,\n othIsSymbol = isSymbol(computed);\n\n if (valIsNaN) {\n var setLow = retHighest || othIsReflexive;\n } else if (valIsUndefined) {\n setLow = othIsReflexive && (retHighest || othIsDefined);\n } else if (valIsNull) {\n setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);\n } else if (valIsSymbol) {\n setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);\n } else if (othIsNull || othIsSymbol) {\n setLow = false;\n } else {\n setLow = retHighest ? (computed <= value) : (computed < value);\n }\n if (setLow) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return nativeMin(high, MAX_ARRAY_INDEX);\n }\n\n /**\n * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseSortedUniq(array, iteratee) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n if (!index || !eq(computed, seen)) {\n var seen = computed;\n result[resIndex++] = value === 0 ? 0 : value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toNumber` which doesn't ensure correct\n * conversions of binary, hexadecimal, or octal string values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n */\n function baseToNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n return +value;\n }\n\n /**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n function baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\n function baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n }\n\n /**\n * The base implementation of `_.update`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to update.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseUpdate(object, path, updater, customizer) {\n return baseSet(object, path, updater(baseGet(object, path)), customizer);\n }\n\n /**\n * The base implementation of methods like `_.dropWhile` and `_.takeWhile`\n * without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {Function} predicate The function invoked per iteration.\n * @param {boolean} [isDrop] Specify dropping elements instead of taking them.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseWhile(array, predicate, isDrop, fromRight) {\n var length = array.length,\n index = fromRight ? length : -1;\n\n while ((fromRight ? index-- : ++index < length) &&\n predicate(array[index], index, array)) {}\n\n return isDrop\n ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))\n : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));\n }\n\n /**\n * The base implementation of `wrapperValue` which returns the result of\n * performing a sequence of actions on the unwrapped `value`, where each\n * successive action is supplied the return value of the previous.\n *\n * @private\n * @param {*} value The unwrapped value.\n * @param {Array} actions Actions to perform to resolve the unwrapped value.\n * @returns {*} Returns the resolved value.\n */\n function baseWrapperValue(value, actions) {\n var result = value;\n if (result instanceof LazyWrapper) {\n result = result.value();\n }\n return arrayReduce(actions, function(result, action) {\n return action.func.apply(action.thisArg, arrayPush([result], action.args));\n }, result);\n }\n\n /**\n * The base implementation of methods like `_.xor`, without support for\n * iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of values.\n */\n function baseXor(arrays, iteratee, comparator) {\n var length = arrays.length;\n if (length < 2) {\n return length ? baseUniq(arrays[0]) : [];\n }\n var index = -1,\n result = Array(length);\n\n while (++index < length) {\n var array = arrays[index],\n othIndex = -1;\n\n while (++othIndex < length) {\n if (othIndex != index) {\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n }\n }\n }\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n }\n\n /**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\n function baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n }\n\n /**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\n function castArrayLikeObject(value) {\n return isArrayLikeObject(value) ? value : [];\n }\n\n /**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\n function castFunction(value) {\n return typeof value == 'function' ? value : identity;\n }\n\n /**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\n function castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n }\n\n /**\n * A `baseRest` alias which can be replaced with `identity` by module\n * replacement plugins.\n *\n * @private\n * @type {Function}\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n var castRest = baseRest;\n\n /**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\n function castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n }\n\n /**\n * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).\n *\n * @private\n * @param {number|Object} id The timer id or timeout object of the timer to clear.\n */\n var clearTimeout = ctxClearTimeout || function(id) {\n return root.clearTimeout(id);\n };\n\n /**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\n function cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n }\n\n /**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n function cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n }\n\n /**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\n function cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n }\n\n /**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\n function cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n }\n\n /**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\n function cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n }\n\n /**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n function cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n }\n\n /**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\n function compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n }\n\n /**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\n function compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n }\n\n /**\n * Creates an array that is the composition of partially applied arguments,\n * placeholders, and provided arguments into a single array of arguments.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to prepend to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgs(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersLength = holders.length,\n leftIndex = -1,\n leftLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(leftLength + rangeLength),\n isUncurried = !isCurried;\n\n while (++leftIndex < leftLength) {\n result[leftIndex] = partials[leftIndex];\n }\n while (++argsIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[holders[argsIndex]] = args[argsIndex];\n }\n }\n while (rangeLength--) {\n result[leftIndex++] = args[argsIndex++];\n }\n return result;\n }\n\n /**\n * This function is like `composeArgs` except that the arguments composition\n * is tailored for `_.partialRight`.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to append to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgsRight(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersIndex = -1,\n holdersLength = holders.length,\n rightIndex = -1,\n rightLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(rangeLength + rightLength),\n isUncurried = !isCurried;\n\n while (++argsIndex < rangeLength) {\n result[argsIndex] = args[argsIndex];\n }\n var offset = argsIndex;\n while (++rightIndex < rightLength) {\n result[offset + rightIndex] = partials[rightIndex];\n }\n while (++holdersIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[offset + holders[holdersIndex]] = args[argsIndex++];\n }\n }\n return result;\n }\n\n /**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\n function copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n }\n\n /**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n function copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n }\n\n /**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n }\n\n /**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n }\n\n /**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\n function createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, getIteratee(iteratee, 2), accumulator);\n };\n }\n\n /**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\n function createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n }\n\n /**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n }\n\n /**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the optional `this`\n * binding of `thisArg`.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createBind(func, bitmask, thisArg) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return fn.apply(isBind ? thisArg : this, arguments);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\n function createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n }\n\n /**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\n function createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n }\n\n /**\n * Creates a function that produces an instance of `Ctor` regardless of\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n *\n * @private\n * @param {Function} Ctor The constructor to wrap.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCtor(Ctor) {\n return function() {\n // Use a `switch` statement to work with class constructors. See\n // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\n // for more details.\n var args = arguments;\n switch (args.length) {\n case 0: return new Ctor;\n case 1: return new Ctor(args[0]);\n case 2: return new Ctor(args[0], args[1]);\n case 3: return new Ctor(args[0], args[1], args[2]);\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n }\n var thisBinding = baseCreate(Ctor.prototype),\n result = Ctor.apply(thisBinding, args);\n\n // Mimic the constructor's `return` behavior.\n // See https://es5.github.io/#x13.2.2 for more details.\n return isObject(result) ? result : thisBinding;\n };\n }\n\n /**\n * Creates a function that wraps `func` to enable currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {number} arity The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCurry(func, bitmask, arity) {\n var Ctor = createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length,\n placeholder = getHolder(wrapper);\n\n while (index--) {\n args[index] = arguments[index];\n }\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n ? []\n : replaceHolders(args, placeholder);\n\n length -= holders.length;\n if (length < arity) {\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, undefined,\n args, holders, undefined, undefined, arity - length);\n }\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return apply(fn, this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\n function createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = getIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n }\n\n /**\n * Creates a `_.flow` or `_.flowRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new flow function.\n */\n function createFlow(fromRight) {\n return flatRest(function(funcs) {\n var length = funcs.length,\n index = length,\n prereq = LodashWrapper.prototype.thru;\n\n if (fromRight) {\n funcs.reverse();\n }\n while (index--) {\n var func = funcs[index];\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (prereq && !wrapper && getFuncName(func) == 'wrapper') {\n var wrapper = new LodashWrapper([], true);\n }\n }\n index = wrapper ? index : length;\n while (++index < length) {\n func = funcs[index];\n\n var funcName = getFuncName(func),\n data = funcName == 'wrapper' ? getData(func) : undefined;\n\n if (data && isLaziable(data[0]) &&\n data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&\n !data[4].length && data[9] == 1\n ) {\n wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);\n } else {\n wrapper = (func.length == 1 && isLaziable(func))\n ? wrapper[funcName]()\n : wrapper.thru(func);\n }\n }\n return function() {\n var args = arguments,\n value = args[0];\n\n if (wrapper && args.length == 1 && isArray(value)) {\n return wrapper.plant(value).value();\n }\n var index = 0,\n result = length ? funcs[index].apply(this, args) : value;\n\n while (++index < length) {\n result = funcs[index].call(this, result);\n }\n return result;\n };\n });\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with optional `this`\n * binding of `thisArg`, partial application, and currying.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [partialsRight] The arguments to append to those provided\n * to the new function.\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n var isAry = bitmask & WRAP_ARY_FLAG,\n isBind = bitmask & WRAP_BIND_FLAG,\n isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\n isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\n isFlip = bitmask & WRAP_FLIP_FLAG,\n Ctor = isBindKey ? undefined : createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length;\n\n while (index--) {\n args[index] = arguments[index];\n }\n if (isCurried) {\n var placeholder = getHolder(wrapper),\n holdersCount = countHolders(args, placeholder);\n }\n if (partials) {\n args = composeArgs(args, partials, holders, isCurried);\n }\n if (partialsRight) {\n args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\n }\n length -= holdersCount;\n if (isCurried && length < arity) {\n var newHolders = replaceHolders(args, placeholder);\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, thisArg,\n args, newHolders, argPos, ary, arity - length\n );\n }\n var thisBinding = isBind ? thisArg : this,\n fn = isBindKey ? thisBinding[func] : func;\n\n length = args.length;\n if (argPos) {\n args = reorder(args, argPos);\n } else if (isFlip && length > 1) {\n args.reverse();\n }\n if (isAry && ary < length) {\n args.length = ary;\n }\n if (this && this !== root && this instanceof wrapper) {\n fn = Ctor || createCtor(fn);\n }\n return fn.apply(thisBinding, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.invertBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} toIteratee The function to resolve iteratees.\n * @returns {Function} Returns the new inverter function.\n */\n function createInverter(setter, toIteratee) {\n return function(object, iteratee) {\n return baseInverter(object, setter, toIteratee(iteratee), {});\n };\n }\n\n /**\n * Creates a function that performs a mathematical operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @param {number} [defaultValue] The value used for `undefined` arguments.\n * @returns {Function} Returns the new mathematical operation function.\n */\n function createMathOperation(operator, defaultValue) {\n return function(value, other) {\n var result;\n if (value === undefined && other === undefined) {\n return defaultValue;\n }\n if (value !== undefined) {\n result = value;\n }\n if (other !== undefined) {\n if (result === undefined) {\n return other;\n }\n if (typeof value == 'string' || typeof other == 'string') {\n value = baseToString(value);\n other = baseToString(other);\n } else {\n value = baseToNumber(value);\n other = baseToNumber(other);\n }\n result = operator(value, other);\n }\n return result;\n };\n }\n\n /**\n * Creates a function like `_.over`.\n *\n * @private\n * @param {Function} arrayFunc The function to iterate over iteratees.\n * @returns {Function} Returns the new over function.\n */\n function createOver(arrayFunc) {\n return flatRest(function(iteratees) {\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n return baseRest(function(args) {\n var thisArg = this;\n return arrayFunc(iteratees, function(iteratee) {\n return apply(iteratee, thisArg, args);\n });\n });\n });\n }\n\n /**\n * Creates the padding for `string` based on `length`. The `chars` string\n * is truncated if the number of characters exceeds `length`.\n *\n * @private\n * @param {number} length The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padding for `string`.\n */\n function createPadding(length, chars) {\n chars = chars === undefined ? ' ' : baseToString(chars);\n\n var charsLength = chars.length;\n if (charsLength < 2) {\n return charsLength ? baseRepeat(chars, length) : chars;\n }\n var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));\n return hasUnicode(chars)\n ? castSlice(stringToArray(result), 0, length).join('')\n : result.slice(0, length);\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the `this` binding\n * of `thisArg` and `partials` prepended to the arguments it receives.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} partials The arguments to prepend to those provided to\n * the new function.\n * @returns {Function} Returns the new wrapped function.\n */\n function createPartial(func, bitmask, thisArg, partials) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var argsIndex = -1,\n argsLength = arguments.length,\n leftIndex = -1,\n leftLength = partials.length,\n args = Array(leftLength + argsLength),\n fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n\n while (++leftIndex < leftLength) {\n args[leftIndex] = partials[leftIndex];\n }\n while (argsLength--) {\n args[leftIndex++] = arguments[++argsIndex];\n }\n return apply(fn, isBind ? thisArg : this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\n function createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n }\n\n /**\n * Creates a function that performs a relational operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @returns {Function} Returns the new relational operation function.\n */\n function createRelationalOperation(operator) {\n return function(value, other) {\n if (!(typeof value == 'string' && typeof other == 'string')) {\n value = toNumber(value);\n other = toNumber(other);\n }\n return operator(value, other);\n };\n }\n\n /**\n * Creates a function that wraps `func` to continue currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {Function} wrapFunc The function to create the `func` wrapper.\n * @param {*} placeholder The placeholder value.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\n var isCurry = bitmask & WRAP_CURRY_FLAG,\n newHolders = isCurry ? holders : undefined,\n newHoldersRight = isCurry ? undefined : holders,\n newPartials = isCurry ? partials : undefined,\n newPartialsRight = isCurry ? undefined : partials;\n\n bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\n bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\n\n if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\n bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\n }\n var newData = [\n func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\n newHoldersRight, argPos, ary, arity\n ];\n\n var result = wrapFunc.apply(undefined, newData);\n if (isLaziable(func)) {\n setData(result, newData);\n }\n result.placeholder = placeholder;\n return setWrapToString(result, func, bitmask);\n }\n\n /**\n * Creates a function like `_.round`.\n *\n * @private\n * @param {string} methodName The name of the `Math` method to use when rounding.\n * @returns {Function} Returns the new round function.\n */\n function createRound(methodName) {\n var func = Math[methodName];\n return function(number, precision) {\n number = toNumber(number);\n precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);\n if (precision && nativeIsFinite(number)) {\n // Shift with exponential notation to avoid floating-point issues.\n // See [MDN](https://mdn.io/round#Examples) for more details.\n var pair = (toString(number) + 'e').split('e'),\n value = func(pair[0] + 'e' + (+pair[1] + precision));\n\n pair = (toString(value) + 'e').split('e');\n return +(pair[0] + 'e' + (+pair[1] - precision));\n }\n return func(number);\n };\n }\n\n /**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\n var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n };\n\n /**\n * Creates a `_.toPairs` or `_.toPairsIn` function.\n *\n * @private\n * @param {Function} keysFunc The function to get the keys of a given object.\n * @returns {Function} Returns the new pairs function.\n */\n function createToPairs(keysFunc) {\n return function(object) {\n var tag = getTag(object);\n if (tag == mapTag) {\n return mapToArray(object);\n }\n if (tag == setTag) {\n return setToPairs(object);\n }\n return baseToPairs(object, keysFunc(object));\n };\n }\n\n /**\n * Creates a function that either curries or invokes `func` with optional\n * `this` binding and partially applied arguments.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags.\n * 1 - `_.bind`\n * 2 - `_.bindKey`\n * 4 - `_.curry` or `_.curryRight` of a bound function\n * 8 - `_.curry`\n * 16 - `_.curryRight`\n * 32 - `_.partial`\n * 64 - `_.partialRight`\n * 128 - `_.rearg`\n * 256 - `_.ary`\n * 512 - `_.flip`\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to be partially applied.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\n if (!isBindKey && typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var length = partials ? partials.length : 0;\n if (!length) {\n bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\n partials = holders = undefined;\n }\n ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);\n arity = arity === undefined ? arity : toInteger(arity);\n length -= holders ? holders.length : 0;\n\n if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\n var partialsRight = partials,\n holdersRight = holders;\n\n partials = holders = undefined;\n }\n var data = isBindKey ? undefined : getData(func);\n\n var newData = [\n func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\n argPos, ary, arity\n ];\n\n if (data) {\n mergeData(newData, data);\n }\n func = newData[0];\n bitmask = newData[1];\n thisArg = newData[2];\n partials = newData[3];\n holders = newData[4];\n arity = newData[9] = newData[9] === undefined\n ? (isBindKey ? 0 : func.length)\n : nativeMax(newData[9] - length, 0);\n\n if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\n bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\n }\n if (!bitmask || bitmask == WRAP_BIND_FLAG) {\n var result = createBind(func, bitmask, thisArg);\n } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\n result = createCurry(func, bitmask, arity);\n } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\n result = createPartial(func, bitmask, thisArg, partials);\n } else {\n result = createHybrid.apply(undefined, newData);\n }\n var setter = data ? baseSetData : setData;\n return setWrapToString(setter(result, newData), func, bitmask);\n }\n\n /**\n * Used by `_.defaults` to customize its `_.assignIn` use to assign properties\n * of source objects to the destination object for all destination properties\n * that resolve to `undefined`.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to assign.\n * @param {Object} object The parent object of `objValue`.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsAssignIn(objValue, srcValue, key, object) {\n if (objValue === undefined ||\n (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n return srcValue;\n }\n return objValue;\n }\n\n /**\n * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\n * objects into destination objects that are passed thru.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to merge.\n * @param {Object} object The parent object of `objValue`.\n * @param {Object} source The parent object of `srcValue`.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\n if (isObject(objValue) && isObject(srcValue)) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, objValue);\n baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);\n stack['delete'](srcValue);\n }\n return objValue;\n }\n\n /**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\n function customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n function flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n }\n\n /**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n }\n\n /**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n }\n\n /**\n * Gets metadata for `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {*} Returns the metadata for `func`.\n */\n var getData = !metaMap ? noop : function(func) {\n return metaMap.get(func);\n };\n\n /**\n * Gets the name of `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {string} Returns the function name.\n */\n function getFuncName(func) {\n var result = (func.name + ''),\n array = realNames[result],\n length = hasOwnProperty.call(realNames, result) ? array.length : 0;\n\n while (length--) {\n var data = array[length],\n otherFunc = data.func;\n if (otherFunc == null || otherFunc == func) {\n return data.name;\n }\n }\n return result;\n }\n\n /**\n * Gets the argument placeholder value for `func`.\n *\n * @private\n * @param {Function} func The function to inspect.\n * @returns {*} Returns the placeholder value.\n */\n function getHolder(func) {\n var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\n return object.placeholder;\n }\n\n /**\n * Gets the appropriate \"iteratee\" function. If `_.iteratee` is customized,\n * this function returns the custom method, otherwise it returns `baseIteratee`.\n * If arguments are provided, the chosen function is invoked with them and\n * its result is returned.\n *\n * @private\n * @param {*} [value] The value to convert to an iteratee.\n * @param {number} [arity] The arity of the created iteratee.\n * @returns {Function} Returns the chosen function or its result.\n */\n function getIteratee() {\n var result = lodash.iteratee || iteratee;\n result = result === iteratee ? baseIteratee : result;\n return arguments.length ? result(arguments[0], arguments[1]) : result;\n }\n\n /**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n }\n\n /**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\n function getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n }\n\n /**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n }\n\n /**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n };\n\n /**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n };\n\n /**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n var getTag = baseGetTag;\n\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n }\n\n /**\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\n *\n * @private\n * @param {number} start The start of the view.\n * @param {number} end The end of the view.\n * @param {Array} transforms The transformations to apply to the view.\n * @returns {Object} Returns an object containing the `start` and `end`\n * positions of the view.\n */\n function getView(start, end, transforms) {\n var index = -1,\n length = transforms.length;\n\n while (++index < length) {\n var data = transforms[index],\n size = data.size;\n\n switch (data.type) {\n case 'drop': start += size; break;\n case 'dropRight': end -= size; break;\n case 'take': end = nativeMin(end, start + size); break;\n case 'takeRight': start = nativeMax(start, end - size); break;\n }\n }\n return { 'start': start, 'end': end };\n }\n\n /**\n * Extracts wrapper details from the `source` body comment.\n *\n * @private\n * @param {string} source The source to inspect.\n * @returns {Array} Returns the wrapper details.\n */\n function getWrapDetails(source) {\n var match = source.match(reWrapDetails);\n return match ? match[1].split(reSplitDetails) : [];\n }\n\n /**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\n function hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n }\n\n /**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n function initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n }\n\n /**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n }\n\n /**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n }\n\n /**\n * Inserts wrapper `details` in a comment at the top of the `source` body.\n *\n * @private\n * @param {string} source The source to modify.\n * @returns {Array} details The details to insert.\n * @returns {string} Returns the modified source.\n */\n function insertWrapDetails(source, details) {\n var length = details.length;\n if (!length) {\n return source;\n }\n var lastIndex = length - 1;\n details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\n details = details.join(length > 2 ? ', ' : ' ');\n return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\n }\n\n /**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\n function isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n }\n\n /**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\n function isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n }\n\n /**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\n function isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n }\n\n /**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n function isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n }\n\n /**\n * Checks if `func` has a lazy counterpart.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\n * else `false`.\n */\n function isLaziable(func) {\n var funcName = getFuncName(func),\n other = lodash[funcName];\n\n if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\n return false;\n }\n if (func === other) {\n return true;\n }\n var data = getData(other);\n return !!data && func === data[0];\n }\n\n /**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n function isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n }\n\n /**\n * Checks if `func` is capable of being masked.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `func` is maskable, else `false`.\n */\n var isMaskable = coreJsData ? isFunction : stubFalse;\n\n /**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n function isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n }\n\n /**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\n function isStrictComparable(value) {\n return value === value && !isObject(value);\n }\n\n /**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n }\n\n /**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\n function memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n }\n\n /**\n * Merges the function metadata of `source` into `data`.\n *\n * Merging metadata reduces the number of wrappers used to invoke a function.\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n * may be applied regardless of execution order. Methods like `_.ary` and\n * `_.rearg` modify function arguments, making the order in which they are\n * executed important, preventing the merging of metadata. However, we make\n * an exception for a safe combined case where curried functions have `_.ary`\n * and or `_.rearg` applied.\n *\n * @private\n * @param {Array} data The destination metadata.\n * @param {Array} source The source metadata.\n * @returns {Array} Returns `data`.\n */\n function mergeData(data, source) {\n var bitmask = data[1],\n srcBitmask = source[1],\n newBitmask = bitmask | srcBitmask,\n isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\n\n var isCombo =\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\n ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\n\n // Exit early if metadata can't be merged.\n if (!(isCommon || isCombo)) {\n return data;\n }\n // Use source `thisArg` if available.\n if (srcBitmask & WRAP_BIND_FLAG) {\n data[2] = source[2];\n // Set when currying a bound function.\n newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\n }\n // Compose partial arguments.\n var value = source[3];\n if (value) {\n var partials = data[3];\n data[3] = partials ? composeArgs(partials, value, source[4]) : value;\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\n }\n // Compose partial right arguments.\n value = source[5];\n if (value) {\n partials = data[5];\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\n }\n // Use source `argPos` if available.\n value = source[7];\n if (value) {\n data[7] = value;\n }\n // Use source `ary` if it's smaller.\n if (srcBitmask & WRAP_ARY_FLAG) {\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n }\n // Use source `arity` if one is not provided.\n if (data[9] == null) {\n data[9] = source[9];\n }\n // Use source `func` and merge bitmasks.\n data[0] = source[0];\n data[1] = newBitmask;\n\n return data;\n }\n\n /**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n function objectToString(value) {\n return nativeObjectToString.call(value);\n }\n\n /**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\n function overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n }\n\n /**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\n function parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n }\n\n /**\n * Reorder `array` according to the specified indexes where the element at\n * the first index is assigned as the first element, the element at\n * the second index is assigned as the second element, and so on.\n *\n * @private\n * @param {Array} array The array to reorder.\n * @param {Array} indexes The arranged array indexes.\n * @returns {Array} Returns `array`.\n */\n function reorder(array, indexes) {\n var arrLength = array.length,\n length = nativeMin(indexes.length, arrLength),\n oldArray = copyArray(array);\n\n while (length--) {\n var index = indexes[length];\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\n }\n return array;\n }\n\n /**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n }\n\n /**\n * Sets metadata for `func`.\n *\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n * period of time, it will trip its breaker and transition to an identity\n * function to avoid garbage collection pauses in V8. See\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\n * for more details.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var setData = shortOut(baseSetData);\n\n /**\n * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n var setTimeout = ctxSetTimeout || function(func, wait) {\n return root.setTimeout(func, wait);\n };\n\n /**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var setToString = shortOut(baseSetToString);\n\n /**\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n * with wrapper details in a comment at the top of the source body.\n *\n * @private\n * @param {Function} wrapper The function to modify.\n * @param {Function} reference The reference function.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Function} Returns `wrapper`.\n */\n function setWrapToString(wrapper, reference, bitmask) {\n var source = (reference + '');\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n }\n\n /**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\n function shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n }\n\n /**\n * A specialized version of `_.shuffle` which mutates and sets the size of `array`.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @param {number} [size=array.length] The size of `array`.\n * @returns {Array} Returns `array`.\n */\n function shuffleSelf(array, size) {\n var index = -1,\n length = array.length,\n lastIndex = length - 1;\n\n size = size === undefined ? length : size;\n while (++index < size) {\n var rand = baseRandom(index, lastIndex),\n value = array[rand];\n\n array[rand] = array[index];\n array[index] = value;\n }\n array.length = size;\n return array;\n }\n\n /**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\n var stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n });\n\n /**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\n function toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n }\n\n /**\n * Updates wrapper `details` based on `bitmask` flags.\n *\n * @private\n * @returns {Array} details The details to modify.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Array} Returns `details`.\n */\n function updateWrapDetails(details, bitmask) {\n arrayEach(wrapFlags, function(pair) {\n var value = '_.' + pair[0];\n if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\n details.push(value);\n }\n });\n return details.sort();\n }\n\n /**\n * Creates a clone of `wrapper`.\n *\n * @private\n * @param {Object} wrapper The wrapper to clone.\n * @returns {Object} Returns the cloned wrapper.\n */\n function wrapperClone(wrapper) {\n if (wrapper instanceof LazyWrapper) {\n return wrapper.clone();\n }\n var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\n result.__actions__ = copyArray(wrapper.__actions__);\n result.__index__ = wrapper.__index__;\n result.__values__ = wrapper.__values__;\n return result;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of elements split into groups the length of `size`.\n * If `array` can't be split evenly, the final chunk will be the remaining\n * elements.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to process.\n * @param {number} [size=1] The length of each chunk\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the new array of chunks.\n * @example\n *\n * _.chunk(['a', 'b', 'c', 'd'], 2);\n * // => [['a', 'b'], ['c', 'd']]\n *\n * _.chunk(['a', 'b', 'c', 'd'], 3);\n * // => [['a', 'b', 'c'], ['d']]\n */\n function chunk(array, size, guard) {\n if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {\n size = 1;\n } else {\n size = nativeMax(toInteger(size), 0);\n }\n var length = array == null ? 0 : array.length;\n if (!length || size < 1) {\n return [];\n }\n var index = 0,\n resIndex = 0,\n result = Array(nativeCeil(length / size));\n\n while (index < length) {\n result[resIndex++] = baseSlice(array, index, (index += size));\n }\n return result;\n }\n\n /**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\n function compact(array) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * Creates a new array concatenating `array` with any additional arrays\n * and/or values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to concatenate.\n * @param {...*} [values] The values to concatenate.\n * @returns {Array} Returns the new concatenated array.\n * @example\n *\n * var array = [1];\n * var other = _.concat(array, 2, [3], [[4]]);\n *\n * console.log(other);\n * // => [1, 2, 3, [4]]\n *\n * console.log(array);\n * // => [1]\n */\n function concat() {\n var length = arguments.length;\n if (!length) {\n return [];\n }\n var args = Array(length - 1),\n array = arguments[0],\n index = length;\n\n while (index--) {\n args[index - 1] = arguments[index];\n }\n return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\n }\n\n /**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\n var difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `iteratee` which\n * is invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * **Note:** Unlike `_.pullAllBy`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var differenceBy = baseRest(function(array, values) {\n var iteratee = last(values);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `comparator`\n * which is invoked to compare elements of `array` to `values`. The order and\n * references of result values are determined by the first array. The comparator\n * is invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.pullAllWith`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n *\n * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }]\n */\n var differenceWith = baseRest(function(array, values) {\n var comparator = last(values);\n if (isArrayLikeObject(comparator)) {\n comparator = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)\n : [];\n });\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.drop([1, 2, 3]);\n * // => [2, 3]\n *\n * _.drop([1, 2, 3], 2);\n * // => [3]\n *\n * _.drop([1, 2, 3], 5);\n * // => []\n *\n * _.drop([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function drop(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropRight([1, 2, 3]);\n * // => [1, 2]\n *\n * _.dropRight([1, 2, 3], 2);\n * // => [1]\n *\n * _.dropRight([1, 2, 3], 5);\n * // => []\n *\n * _.dropRight([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function dropRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the end.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.dropRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropRightWhile(users, ['active', false]);\n * // => objects for ['barney']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropRightWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the beginning.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.dropWhile(users, function(o) { return !o.active; });\n * // => objects for ['pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropWhile(users, ['active', false]);\n * // => objects for ['pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true)\n : [];\n }\n\n /**\n * Fills elements of `array` with `value` from `start` up to, but not\n * including, `end`.\n *\n * **Note:** This method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Array\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.fill(array, 'a');\n * console.log(array);\n * // => ['a', 'a', 'a']\n *\n * _.fill(Array(3), 2);\n * // => [2, 2, 2]\n *\n * _.fill([4, 6, 8, 10], '*', 1, 3);\n * // => [4, '*', '*', 10]\n */\n function fill(array, value, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {\n start = 0;\n end = length;\n }\n return baseFill(array, value, start, end);\n }\n\n /**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\n function findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index);\n }\n\n /**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\n function findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index, true);\n }\n\n /**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\n function flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n }\n\n /**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\n function flattenDeep(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, INFINITY) : [];\n }\n\n /**\n * Recursively flatten `array` up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * var array = [1, [2, [3, [4]], 5]];\n *\n * _.flattenDepth(array, 1);\n * // => [1, 2, [3, [4]], 5]\n *\n * _.flattenDepth(array, 2);\n * // => [1, 2, 3, [4], 5]\n */\n function flattenDepth(array, depth) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(array, depth);\n }\n\n /**\n * The inverse of `_.toPairs`; this method returns an object composed\n * from key-value `pairs`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} pairs The key-value pairs.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.fromPairs([['a', 1], ['b', 2]]);\n * // => { 'a': 1, 'b': 2 }\n */\n function fromPairs(pairs) {\n var index = -1,\n length = pairs == null ? 0 : pairs.length,\n result = {};\n\n while (++index < length) {\n var pair = pairs[index];\n result[pair[0]] = pair[1];\n }\n return result;\n }\n\n /**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\n function head(array) {\n return (array && array.length) ? array[0] : undefined;\n }\n\n /**\n * Gets the index at which the first occurrence of `value` is found in `array`\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. If `fromIndex` is negative, it's used as the\n * offset from the end of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.indexOf([1, 2, 1, 2], 2);\n * // => 1\n *\n * // Search from the `fromIndex`.\n * _.indexOf([1, 2, 1, 2], 2, 2);\n * // => 3\n */\n function indexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseIndexOf(array, value, index);\n }\n\n /**\n * Gets all but the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.initial([1, 2, 3]);\n * // => [1, 2]\n */\n function initial(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 0, -1) : [];\n }\n\n /**\n * Creates an array of unique values that are included in all given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersection([2, 1], [2, 3]);\n * // => [2]\n */\n var intersection = baseRest(function(arrays) {\n var mapped = arrayMap(arrays, castArrayLikeObject);\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped)\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `iteratee`\n * which is invoked for each element of each `arrays` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [2.1]\n *\n * // The `_.property` iteratee shorthand.\n * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }]\n */\n var intersectionBy = baseRest(function(arrays) {\n var iteratee = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n if (iteratee === last(mapped)) {\n iteratee = undefined;\n } else {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `comparator`\n * which is invoked to compare elements of `arrays`. The order and references\n * of result values are determined by the first array. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.intersectionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }]\n */\n var intersectionWith = baseRest(function(arrays) {\n var comparator = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n comparator = typeof comparator == 'function' ? comparator : undefined;\n if (comparator) {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, undefined, comparator)\n : [];\n });\n\n /**\n * Converts all elements in `array` into a string separated by `separator`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to convert.\n * @param {string} [separator=','] The element separator.\n * @returns {string} Returns the joined string.\n * @example\n *\n * _.join(['a', 'b', 'c'], '~');\n * // => 'a~b~c'\n */\n function join(array, separator) {\n return array == null ? '' : nativeJoin.call(array, separator);\n }\n\n /**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\n function last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n }\n\n /**\n * This method is like `_.indexOf` except that it iterates over elements of\n * `array` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.lastIndexOf([1, 2, 1, 2], 2);\n * // => 3\n *\n * // Search from the `fromIndex`.\n * _.lastIndexOf([1, 2, 1, 2], 2, 2);\n * // => 1\n */\n function lastIndexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);\n }\n return value === value\n ? strictLastIndexOf(array, value, index)\n : baseFindIndex(array, baseIsNaN, index, true);\n }\n\n /**\n * Gets the element at index `n` of `array`. If `n` is negative, the nth\n * element from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.11.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=0] The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n *\n * _.nth(array, 1);\n * // => 'b'\n *\n * _.nth(array, -2);\n * // => 'c';\n */\n function nth(array, n) {\n return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;\n }\n\n /**\n * Removes all given values from `array` using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`\n * to remove elements from an array by predicate.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...*} [values] The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pull(array, 'a', 'c');\n * console.log(array);\n * // => ['b', 'b']\n */\n var pull = baseRest(pullAll);\n\n /**\n * This method is like `_.pull` except that it accepts an array of values to remove.\n *\n * **Note:** Unlike `_.difference`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pullAll(array, ['a', 'c']);\n * console.log(array);\n * // => ['b', 'b']\n */\n function pullAll(array, values) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values)\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `iteratee` which is\n * invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The iteratee is invoked with one argument: (value).\n *\n * **Note:** Unlike `_.differenceBy`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];\n *\n * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');\n * console.log(array);\n * // => [{ 'x': 2 }]\n */\n function pullAllBy(array, values, iteratee) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, getIteratee(iteratee, 2))\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `comparator` which\n * is invoked to compare elements of `array` to `values`. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.differenceWith`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];\n *\n * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);\n * console.log(array);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]\n */\n function pullAllWith(array, values, comparator) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, undefined, comparator)\n : array;\n }\n\n /**\n * Removes elements from `array` corresponding to `indexes` and returns an\n * array of removed elements.\n *\n * **Note:** Unlike `_.at`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...(number|number[])} [indexes] The indexes of elements to remove.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n * var pulled = _.pullAt(array, [1, 3]);\n *\n * console.log(array);\n * // => ['a', 'c']\n *\n * console.log(pulled);\n * // => ['b', 'd']\n */\n var pullAt = flatRest(function(array, indexes) {\n var length = array == null ? 0 : array.length,\n result = baseAt(array, indexes);\n\n basePullAt(array, arrayMap(indexes, function(index) {\n return isIndex(index, length) ? +index : index;\n }).sort(compareAscending));\n\n return result;\n });\n\n /**\n * Removes all elements from `array` that `predicate` returns truthy for\n * and returns an array of the removed elements. The predicate is invoked\n * with three arguments: (value, index, array).\n *\n * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\n * to pull elements from an array by value.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [1, 2, 3, 4];\n * var evens = _.remove(array, function(n) {\n * return n % 2 == 0;\n * });\n *\n * console.log(array);\n * // => [1, 3]\n *\n * console.log(evens);\n * // => [2, 4]\n */\n function remove(array, predicate) {\n var result = [];\n if (!(array && array.length)) {\n return result;\n }\n var index = -1,\n indexes = [],\n length = array.length;\n\n predicate = getIteratee(predicate, 3);\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result.push(value);\n indexes.push(index);\n }\n }\n basePullAt(array, indexes);\n return result;\n }\n\n /**\n * Reverses `array` so that the first element becomes the last, the second\n * element becomes the second to last, and so on.\n *\n * **Note:** This method mutates `array` and is based on\n * [`Array#reverse`](https://mdn.io/Array/reverse).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.reverse(array);\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function reverse(array) {\n return array == null ? array : nativeReverse.call(array);\n }\n\n /**\n * Creates a slice of `array` from `start` up to, but not including, `end`.\n *\n * **Note:** This method is used instead of\n * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\n * returned.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function slice(array, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\n start = 0;\n end = length;\n }\n else {\n start = start == null ? 0 : toInteger(start);\n end = end === undefined ? length : toInteger(end);\n }\n return baseSlice(array, start, end);\n }\n\n /**\n * Uses a binary search to determine the lowest index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedIndex([30, 50], 40);\n * // => 1\n */\n function sortedIndex(array, value) {\n return baseSortedIndex(array, value);\n }\n\n /**\n * This method is like `_.sortedIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedIndexBy(objects, { 'x': 4 }, 'x');\n * // => 0\n */\n function sortedIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));\n }\n\n /**\n * This method is like `_.indexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedIndexOf([4, 5, 5, 5, 6], 5);\n * // => 1\n */\n function sortedIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value);\n if (index < length && eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.sortedIndex` except that it returns the highest\n * index at which `value` should be inserted into `array` in order to\n * maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedLastIndex([4, 5, 5, 5, 6], 5);\n * // => 4\n */\n function sortedLastIndex(array, value) {\n return baseSortedIndex(array, value, true);\n }\n\n /**\n * This method is like `_.sortedLastIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 1\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');\n * // => 1\n */\n function sortedLastIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);\n }\n\n /**\n * This method is like `_.lastIndexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);\n * // => 3\n */\n function sortedLastIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value, true) - 1;\n if (eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.uniq` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniq([1, 1, 2]);\n * // => [1, 2]\n */\n function sortedUniq(array) {\n return (array && array.length)\n ? baseSortedUniq(array)\n : [];\n }\n\n /**\n * This method is like `_.uniqBy` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);\n * // => [1.1, 2.3]\n */\n function sortedUniqBy(array, iteratee) {\n return (array && array.length)\n ? baseSortedUniq(array, getIteratee(iteratee, 2))\n : [];\n }\n\n /**\n * Gets all but the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.tail([1, 2, 3]);\n * // => [2, 3]\n */\n function tail(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 1, length) : [];\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.take([1, 2, 3]);\n * // => [1]\n *\n * _.take([1, 2, 3], 2);\n * // => [1, 2]\n *\n * _.take([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.take([1, 2, 3], 0);\n * // => []\n */\n function take(array, n, guard) {\n if (!(array && array.length)) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeRight([1, 2, 3]);\n * // => [3]\n *\n * _.takeRight([1, 2, 3], 2);\n * // => [2, 3]\n *\n * _.takeRight([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.takeRight([1, 2, 3], 0);\n * // => []\n */\n function takeRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with elements taken from the end. Elements are\n * taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.takeRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeRightWhile(users, ['active', false]);\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeRightWhile(users, 'active');\n * // => []\n */\n function takeRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), false, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` with elements taken from the beginning. Elements\n * are taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.takeWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeWhile(users, ['active', false]);\n * // => objects for ['barney', 'fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeWhile(users, 'active');\n * // => []\n */\n function takeWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3))\n : [];\n }\n\n /**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\n var union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n });\n\n /**\n * This method is like `_.union` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which uniqueness is computed. Result values are chosen from the first\n * array in which the value occurs. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.unionBy([2.1], [1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n var unionBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.union` except that it accepts `comparator` which\n * is invoked to compare elements of `arrays`. Result values are chosen from\n * the first array in which the value occurs. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.unionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var unionWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);\n });\n\n /**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\n function uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n function uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `comparator` which\n * is invoked to compare elements of `array`. The order of result values is\n * determined by the order they occur in the array.The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.uniqWith(objects, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]\n */\n function uniqWith(array, comparator) {\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return (array && array.length) ? baseUniq(array, undefined, comparator) : [];\n }\n\n /**\n * This method is like `_.zip` except that it accepts an array of grouped\n * elements and creates an array regrouping the elements to their pre-zip\n * configuration.\n *\n * @static\n * @memberOf _\n * @since 1.2.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n *\n * _.unzip(zipped);\n * // => [['a', 'b'], [1, 2], [true, false]]\n */\n function unzip(array) {\n if (!(array && array.length)) {\n return [];\n }\n var length = 0;\n array = arrayFilter(array, function(group) {\n if (isArrayLikeObject(group)) {\n length = nativeMax(group.length, length);\n return true;\n }\n });\n return baseTimes(length, function(index) {\n return arrayMap(array, baseProperty(index));\n });\n }\n\n /**\n * This method is like `_.unzip` except that it accepts `iteratee` to specify\n * how regrouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * regrouped values.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip([1, 2], [10, 20], [100, 200]);\n * // => [[1, 10, 100], [2, 20, 200]]\n *\n * _.unzipWith(zipped, _.add);\n * // => [3, 30, 300]\n */\n function unzipWith(array, iteratee) {\n if (!(array && array.length)) {\n return [];\n }\n var result = unzip(array);\n if (iteratee == null) {\n return result;\n }\n return arrayMap(result, function(group) {\n return apply(iteratee, undefined, group);\n });\n }\n\n /**\n * Creates an array excluding all given values using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.pull`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...*} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.xor\n * @example\n *\n * _.without([2, 1, 2, 3], 1, 2);\n * // => [3]\n */\n var without = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, values)\n : [];\n });\n\n /**\n * Creates an array of unique values that is the\n * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)\n * of the given arrays. The order of result values is determined by the order\n * they occur in the arrays.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.without\n * @example\n *\n * _.xor([2, 1], [2, 3]);\n * // => [1, 3]\n */\n var xor = baseRest(function(arrays) {\n return baseXor(arrayFilter(arrays, isArrayLikeObject));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which by which they're compared. The order of result values is determined\n * by the order they occur in the arrays. The iteratee is invoked with one\n * argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2, 3.4]\n *\n * // The `_.property` iteratee shorthand.\n * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var xorBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `comparator` which is\n * invoked to compare elements of `arrays`. The order of result values is\n * determined by the order they occur in the arrays. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.xorWith(objects, others, _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var xorWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);\n });\n\n /**\n * Creates an array of grouped elements, the first of which contains the\n * first elements of the given arrays, the second of which contains the\n * second elements of the given arrays, and so on.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n */\n var zip = baseRest(unzip);\n\n /**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\n function zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n }\n\n /**\n * This method is like `_.zipObject` except that it supports property paths.\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);\n * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }\n */\n function zipObjectDeep(props, values) {\n return baseZipObject(props || [], values || [], baseSet);\n }\n\n /**\n * This method is like `_.zip` except that it accepts `iteratee` to specify\n * how grouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * grouped values.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {\n * return a + b + c;\n * });\n * // => [111, 222]\n */\n var zipWith = baseRest(function(arrays) {\n var length = arrays.length,\n iteratee = length > 1 ? arrays[length - 1] : undefined;\n\n iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;\n return unzipWith(arrays, iteratee);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` wrapper instance that wraps `value` with explicit method\n * chain sequences enabled. The result of such sequences must be unwrapped\n * with `_#value`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Seq\n * @param {*} value The value to wrap.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'pebbles', 'age': 1 }\n * ];\n *\n * var youngest = _\n * .chain(users)\n * .sortBy('age')\n * .map(function(o) {\n * return o.user + ' is ' + o.age;\n * })\n * .head()\n * .value();\n * // => 'pebbles is 1'\n */\n function chain(value) {\n var result = lodash(value);\n result.__chain__ = true;\n return result;\n }\n\n /**\n * This method invokes `interceptor` and returns `value`. The interceptor\n * is invoked with one argument; (value). The purpose of this method is to\n * \"tap into\" a method chain sequence in order to modify intermediate results.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns `value`.\n * @example\n *\n * _([1, 2, 3])\n * .tap(function(array) {\n * // Mutate input array.\n * array.pop();\n * })\n * .reverse()\n * .value();\n * // => [2, 1]\n */\n function tap(value, interceptor) {\n interceptor(value);\n return value;\n }\n\n /**\n * This method is like `_.tap` except that it returns the result of `interceptor`.\n * The purpose of this method is to \"pass thru\" values replacing intermediate\n * results in a method chain sequence.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns the result of `interceptor`.\n * @example\n *\n * _(' abc ')\n * .chain()\n * .trim()\n * .thru(function(value) {\n * return [value];\n * })\n * .value();\n * // => ['abc']\n */\n function thru(value, interceptor) {\n return interceptor(value);\n }\n\n /**\n * This method is the wrapper version of `_.at`.\n *\n * @name at\n * @memberOf _\n * @since 1.0.0\n * @category Seq\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _(object).at(['a[0].b.c', 'a[1]']).value();\n * // => [3, 4]\n */\n var wrapperAt = flatRest(function(paths) {\n var length = paths.length,\n start = length ? paths[0] : 0,\n value = this.__wrapped__,\n interceptor = function(object) { return baseAt(object, paths); };\n\n if (length > 1 || this.__actions__.length ||\n !(value instanceof LazyWrapper) || !isIndex(start)) {\n return this.thru(interceptor);\n }\n value = value.slice(start, +start + (length ? 1 : 0));\n value.__actions__.push({\n 'func': thru,\n 'args': [interceptor],\n 'thisArg': undefined\n });\n return new LodashWrapper(value, this.__chain__).thru(function(array) {\n if (length && !array.length) {\n array.push(undefined);\n }\n return array;\n });\n });\n\n /**\n * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\n *\n * @name chain\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * // A sequence without explicit chaining.\n * _(users).head();\n * // => { 'user': 'barney', 'age': 36 }\n *\n * // A sequence with explicit chaining.\n * _(users)\n * .chain()\n * .head()\n * .pick('user')\n * .value();\n * // => { 'user': 'barney' }\n */\n function wrapperChain() {\n return chain(this);\n }\n\n /**\n * Executes the chain sequence and returns the wrapped result.\n *\n * @name commit\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2];\n * var wrapped = _(array).push(3);\n *\n * console.log(array);\n * // => [1, 2]\n *\n * wrapped = wrapped.commit();\n * console.log(array);\n * // => [1, 2, 3]\n *\n * wrapped.last();\n * // => 3\n *\n * console.log(array);\n * // => [1, 2, 3]\n */\n function wrapperCommit() {\n return new LodashWrapper(this.value(), this.__chain__);\n }\n\n /**\n * Gets the next value on a wrapped object following the\n * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\n *\n * @name next\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the next iterator value.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 1 }\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 2 }\n *\n * wrapped.next();\n * // => { 'done': true, 'value': undefined }\n */\n function wrapperNext() {\n if (this.__values__ === undefined) {\n this.__values__ = toArray(this.value());\n }\n var done = this.__index__ >= this.__values__.length,\n value = done ? undefined : this.__values__[this.__index__++];\n\n return { 'done': done, 'value': value };\n }\n\n /**\n * Enables the wrapper to be iterable.\n *\n * @name Symbol.iterator\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the wrapper object.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped[Symbol.iterator]() === wrapped;\n * // => true\n *\n * Array.from(wrapped);\n * // => [1, 2]\n */\n function wrapperToIterator() {\n return this;\n }\n\n /**\n * Creates a clone of the chain sequence planting `value` as the wrapped value.\n *\n * @name plant\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @param {*} value The value to plant.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2]).map(square);\n * var other = wrapped.plant([3, 4]);\n *\n * other.value();\n * // => [9, 16]\n *\n * wrapped.value();\n * // => [1, 4]\n */\n function wrapperPlant(value) {\n var result,\n parent = this;\n\n while (parent instanceof baseLodash) {\n var clone = wrapperClone(parent);\n clone.__index__ = 0;\n clone.__values__ = undefined;\n if (result) {\n previous.__wrapped__ = clone;\n } else {\n result = clone;\n }\n var previous = clone;\n parent = parent.__wrapped__;\n }\n previous.__wrapped__ = value;\n return result;\n }\n\n /**\n * This method is the wrapper version of `_.reverse`.\n *\n * **Note:** This method mutates the wrapped array.\n *\n * @name reverse\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _(array).reverse().value()\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function wrapperReverse() {\n var value = this.__wrapped__;\n if (value instanceof LazyWrapper) {\n var wrapped = value;\n if (this.__actions__.length) {\n wrapped = new LazyWrapper(this);\n }\n wrapped = wrapped.reverse();\n wrapped.__actions__.push({\n 'func': thru,\n 'args': [reverse],\n 'thisArg': undefined\n });\n return new LodashWrapper(wrapped, this.__chain__);\n }\n return this.thru(reverse);\n }\n\n /**\n * Executes the chain sequence to resolve the unwrapped value.\n *\n * @name value\n * @memberOf _\n * @since 0.1.0\n * @alias toJSON, valueOf\n * @category Seq\n * @returns {*} Returns the resolved unwrapped value.\n * @example\n *\n * _([1, 2, 3]).value();\n * // => [1, 2, 3]\n */\n function wrapperValue() {\n return baseWrapperValue(this.__wrapped__, this.__actions__);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the number of times the key was returned by `iteratee`. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.countBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': 1, '6': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.countBy(['one', 'two', 'three'], 'length');\n * // => { '3': 2, '5': 1 }\n */\n var countBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n ++result[key];\n } else {\n baseAssignValue(result, key, 1);\n }\n });\n\n /**\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\n * Iteration is stopped once `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * **Note:** This method returns `true` for\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\n * elements of empty collections.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n * @example\n *\n * _.every([true, 1, null, 'yes'], Boolean);\n * // => false\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.every(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.every(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.every(users, 'active');\n * // => false\n */\n function every(collection, predicate, guard) {\n var func = isArray(collection) ? arrayEvery : baseEvery;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n *\n * // Combining several predicates using `_.overEvery` or `_.overSome`.\n * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));\n * // => objects for ['fred', 'barney']\n */\n function filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\n var find = createFind(findIndex);\n\n /**\n * This method is like `_.find` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=collection.length-1] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * _.findLast([1, 2, 3, 4], function(n) {\n * return n % 2 == 1;\n * });\n * // => 3\n */\n var findLast = createFind(findLastIndex);\n\n /**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMap(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), 1);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDeep([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMapDeep(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), INFINITY);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDepth([1, 2], duplicate, 2);\n * // => [[1, 1], [2, 2]]\n */\n function flatMapDepth(collection, iteratee, depth) {\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(map(collection, iteratee), depth);\n }\n\n /**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forEach` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @alias eachRight\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEach\n * @example\n *\n * _.forEachRight([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `2` then `1`.\n */\n function forEachRight(collection, iteratee) {\n var func = isArray(collection) ? arrayEachRight : baseEachRight;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\n var groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n });\n\n /**\n * Checks if `value` is in `collection`. If `collection` is a string, it's\n * checked for a substring of `value`, otherwise\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\n * the offset from the end of `collection`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'a': 1, 'b': 2 }, 1);\n * // => true\n *\n * _.includes('abcd', 'bc');\n * // => true\n */\n function includes(collection, value, fromIndex, guard) {\n collection = isArrayLike(collection) ? collection : values(collection);\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n var length = collection.length;\n if (fromIndex < 0) {\n fromIndex = nativeMax(length + fromIndex, 0);\n }\n return isString(collection)\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n }\n\n /**\n * Invokes the method at `path` of each element in `collection`, returning\n * an array of the results of each invoked method. Any additional arguments\n * are provided to each invoked method. If `path` is a function, it's invoked\n * for, and `this` bound to, each element in `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array|Function|string} path The path of the method to invoke or\n * the function invoked per iteration.\n * @param {...*} [args] The arguments to invoke each method with.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');\n * // => [[1, 5, 7], [1, 2, 3]]\n *\n * _.invokeMap([123, 456], String.prototype.split, '');\n * // => [['1', '2', '3'], ['4', '5', '6']]\n */\n var invokeMap = baseRest(function(collection, path, args) {\n var index = -1,\n isFunc = typeof path == 'function',\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value) {\n result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);\n });\n return result;\n });\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the last element responsible for generating the key. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * var array = [\n * { 'dir': 'left', 'code': 97 },\n * { 'dir': 'right', 'code': 100 }\n * ];\n *\n * _.keyBy(array, function(o) {\n * return String.fromCharCode(o.code);\n * });\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n *\n * _.keyBy(array, 'dir');\n * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\n */\n var keyBy = createAggregator(function(result, value, key) {\n baseAssignValue(result, key, value);\n });\n\n /**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\n function map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\n function orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n }\n\n /**\n * Creates an array of elements split into two groups, the first of which\n * contains elements `predicate` returns truthy for, the second of which\n * contains elements `predicate` returns falsey for. The predicate is\n * invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of grouped elements.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true },\n * { 'user': 'pebbles', 'age': 1, 'active': false }\n * ];\n *\n * _.partition(users, function(o) { return o.active; });\n * // => objects for [['fred'], ['barney', 'pebbles']]\n *\n * // The `_.matches` iteratee shorthand.\n * _.partition(users, { 'age': 1, 'active': false });\n * // => objects for [['pebbles'], ['barney', 'fred']]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.partition(users, ['active', false]);\n * // => objects for [['barney', 'pebbles'], ['fred']]\n *\n * // The `_.property` iteratee shorthand.\n * _.partition(users, 'active');\n * // => objects for [['fred'], ['barney', 'pebbles']]\n */\n var partition = createAggregator(function(result, value, key) {\n result[key ? 0 : 1].push(value);\n }, function() { return [[], []]; });\n\n /**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\n function reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n }\n\n /**\n * This method is like `_.reduce` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduce\n * @example\n *\n * var array = [[0, 1], [2, 3], [4, 5]];\n *\n * _.reduceRight(array, function(flattened, other) {\n * return flattened.concat(other);\n * }, []);\n * // => [4, 5, 2, 3, 0, 1]\n */\n function reduceRight(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduceRight : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);\n }\n\n /**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\n function reject(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, negate(getIteratee(predicate, 3)));\n }\n\n /**\n * Gets a random element from `collection`.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n * @example\n *\n * _.sample([1, 2, 3, 4]);\n * // => 2\n */\n function sample(collection) {\n var func = isArray(collection) ? arraySample : baseSample;\n return func(collection);\n }\n\n /**\n * Gets `n` random elements at unique keys from `collection` up to the\n * size of `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @param {number} [n=1] The number of elements to sample.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the random elements.\n * @example\n *\n * _.sampleSize([1, 2, 3], 2);\n * // => [3, 1]\n *\n * _.sampleSize([1, 2, 3], 4);\n * // => [2, 3, 1]\n */\n function sampleSize(collection, n, guard) {\n if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n var func = isArray(collection) ? arraySampleSize : baseSampleSize;\n return func(collection, n);\n }\n\n /**\n * Creates an array of shuffled values, using a version of the\n * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n * @example\n *\n * _.shuffle([1, 2, 3, 4]);\n * // => [4, 1, 3, 2]\n */\n function shuffle(collection) {\n var func = isArray(collection) ? arrayShuffle : baseShuffle;\n return func(collection);\n }\n\n /**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\n function size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n }\n\n /**\n * Checks if `predicate` returns truthy for **any** element of `collection`.\n * Iteration is stopped once `predicate` returns truthy. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n * @example\n *\n * _.some([null, 0, 'yes', false], Boolean);\n * // => true\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.some(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.some(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.some(users, 'active');\n * // => true\n */\n function some(collection, predicate, guard) {\n var func = isArray(collection) ? arraySome : baseSome;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 30 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\n var sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\n var now = ctxNow || function() {\n return root.Date.now();\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The opposite of `_.before`; this method creates a function that invokes\n * `func` once it's called `n` or more times.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {number} n The number of calls before `func` is invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var saves = ['profile', 'settings'];\n *\n * var done = _.after(saves.length, function() {\n * console.log('done saving!');\n * });\n *\n * _.forEach(saves, function(type) {\n * asyncSave({ 'type': type, 'complete': done });\n * });\n * // => Logs 'done saving!' after the two async saves have completed.\n */\n function after(n, func) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n < 1) {\n return func.apply(this, arguments);\n }\n };\n }\n\n /**\n * Creates a function that invokes `func`, with up to `n` arguments,\n * ignoring any additional arguments.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @param {number} [n=func.length] The arity cap.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.ary(parseInt, 1));\n * // => [6, 8, 10]\n */\n function ary(func, n, guard) {\n n = guard ? undefined : n;\n n = (func && n == null) ? func.length : n;\n return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);\n }\n\n /**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\n function before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\n * and `partials` prepended to the arguments it receives.\n *\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for partially applied arguments.\n *\n * **Note:** Unlike native `Function#bind`, this method doesn't set the \"length\"\n * property of bound functions.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * function greet(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n *\n * var object = { 'user': 'fred' };\n *\n * var bound = _.bind(greet, object, 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bind(greet, object, _, '!');\n * bound('hi');\n * // => 'hi fred!'\n */\n var bind = baseRest(function(func, thisArg, partials) {\n var bitmask = WRAP_BIND_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bind));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(func, bitmask, thisArg, partials, holders);\n });\n\n /**\n * Creates a function that invokes the method at `object[key]` with `partials`\n * prepended to the arguments it receives.\n *\n * This method differs from `_.bind` by allowing bound functions to reference\n * methods that may be redefined or don't yet exist. See\n * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)\n * for more details.\n *\n * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Function\n * @param {Object} object The object to invoke the method on.\n * @param {string} key The key of the method.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * var object = {\n * 'user': 'fred',\n * 'greet': function(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n * };\n *\n * var bound = _.bindKey(object, 'greet', 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * object.greet = function(greeting, punctuation) {\n * return greeting + 'ya ' + this.user + punctuation;\n * };\n *\n * bound('!');\n * // => 'hiya fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bindKey(object, 'greet', _, '!');\n * bound('hi');\n * // => 'hiya fred!'\n */\n var bindKey = baseRest(function(object, key, partials) {\n var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bindKey));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(key, bitmask, object, partials, holders);\n });\n\n /**\n * Creates a function that accepts arguments of `func` and either invokes\n * `func` returning its result, if at least `arity` number of arguments have\n * been provided, or returns a function that accepts the remaining `func`\n * arguments, and so on. The arity of `func` may be specified if `func.length`\n * is not sufficient.\n *\n * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curry(abc);\n *\n * curried(1)(2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(1)(_, 3)(2);\n * // => [1, 2, 3]\n */\n function curry(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curry.placeholder;\n return result;\n }\n\n /**\n * This method is like `_.curry` except that arguments are applied to `func`\n * in the manner of `_.partialRight` instead of `_.partial`.\n *\n * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curryRight(abc);\n *\n * curried(3)(2)(1);\n * // => [1, 2, 3]\n *\n * curried(2, 3)(1);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(3)(1, _)(2);\n * // => [1, 2, 3]\n */\n function curryRight(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curryRight.placeholder;\n return result;\n }\n\n /**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\n function debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n }\n\n /**\n * Defers invoking the `func` until the current call stack has cleared. Any\n * additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to defer.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.defer(function(text) {\n * console.log(text);\n * }, 'deferred');\n * // => Logs 'deferred' after one millisecond.\n */\n var defer = baseRest(function(func, args) {\n return baseDelay(func, 1, args);\n });\n\n /**\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\n * provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.delay(function(text) {\n * console.log(text);\n * }, 1000, 'later');\n * // => Logs 'later' after one second.\n */\n var delay = baseRest(function(func, wait, args) {\n return baseDelay(func, toNumber(wait) || 0, args);\n });\n\n /**\n * Creates a function that invokes `func` with arguments reversed.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to flip arguments for.\n * @returns {Function} Returns the new flipped function.\n * @example\n *\n * var flipped = _.flip(function() {\n * return _.toArray(arguments);\n * });\n *\n * flipped('a', 'b', 'c', 'd');\n * // => ['d', 'c', 'b', 'a']\n */\n function flip(func) {\n return createWrap(func, WRAP_FLIP_FLAG);\n }\n\n /**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\n function memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n }\n\n // Expose `MapCache`.\n memoize.Cache = MapCache;\n\n /**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\n function negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n }\n\n /**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\n function once(func) {\n return before(2, func);\n }\n\n /**\n * Creates a function that invokes `func` with its arguments transformed.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Function\n * @param {Function} func The function to wrap.\n * @param {...(Function|Function[])} [transforms=[_.identity]]\n * The argument transforms.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function doubled(n) {\n * return n * 2;\n * }\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var func = _.overArgs(function(x, y) {\n * return [x, y];\n * }, [square, doubled]);\n *\n * func(9, 3);\n * // => [81, 6]\n *\n * func(10, 5);\n * // => [100, 10]\n */\n var overArgs = castRest(function(func, transforms) {\n transforms = (transforms.length == 1 && isArray(transforms[0]))\n ? arrayMap(transforms[0], baseUnary(getIteratee()))\n : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));\n\n var funcsLength = transforms.length;\n return baseRest(function(args) {\n var index = -1,\n length = nativeMin(args.length, funcsLength);\n\n while (++index < length) {\n args[index] = transforms[index].call(this, args[index]);\n }\n return apply(func, this, args);\n });\n });\n\n /**\n * Creates a function that invokes `func` with `partials` prepended to the\n * arguments it receives. This method is like `_.bind` except it does **not**\n * alter the `this` binding.\n *\n * The `_.partial.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 0.2.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var sayHelloTo = _.partial(greet, 'hello');\n * sayHelloTo('fred');\n * // => 'hello fred'\n *\n * // Partially applied with placeholders.\n * var greetFred = _.partial(greet, _, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n */\n var partial = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partial));\n return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);\n });\n\n /**\n * This method is like `_.partial` except that partially applied arguments\n * are appended to the arguments it receives.\n *\n * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var greetFred = _.partialRight(greet, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n *\n * // Partially applied with placeholders.\n * var sayHelloTo = _.partialRight(greet, 'hello', _);\n * sayHelloTo('fred');\n * // => 'hello fred'\n */\n var partialRight = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partialRight));\n return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);\n });\n\n /**\n * Creates a function that invokes `func` with arguments arranged according\n * to the specified `indexes` where the argument value at the first index is\n * provided as the first argument, the argument value at the second index is\n * provided as the second argument, and so on.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to rearrange arguments for.\n * @param {...(number|number[])} indexes The arranged argument indexes.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var rearged = _.rearg(function(a, b, c) {\n * return [a, b, c];\n * }, [2, 0, 1]);\n *\n * rearged('b', 'c', 'a')\n * // => ['a', 'b', 'c']\n */\n var rearg = flatRest(function(func, indexes) {\n return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);\n });\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * created function and arguments from `start` and beyond provided as\n * an array.\n *\n * **Note:** This method is based on the\n * [rest parameter](https://mdn.io/rest_parameters).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.rest(function(what, names) {\n * return what + ' ' + _.initial(names).join(', ') +\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\n * });\n *\n * say('hello', 'fred', 'barney', 'pebbles');\n * // => 'hello fred, barney, & pebbles'\n */\n function rest(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start === undefined ? start : toInteger(start);\n return baseRest(func, start);\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * create function and an array of arguments much like\n * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).\n *\n * **Note:** This method is based on the\n * [spread operator](https://mdn.io/spread_operator).\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Function\n * @param {Function} func The function to spread arguments over.\n * @param {number} [start=0] The start position of the spread.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.spread(function(who, what) {\n * return who + ' says ' + what;\n * });\n *\n * say(['fred', 'hello']);\n * // => 'fred says hello'\n *\n * var numbers = Promise.all([\n * Promise.resolve(40),\n * Promise.resolve(36)\n * ]);\n *\n * numbers.then(_.spread(function(x, y) {\n * return x + y;\n * }));\n * // => a Promise of 76\n */\n function spread(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start == null ? 0 : nativeMax(toInteger(start), 0);\n return baseRest(function(args) {\n var array = args[start],\n otherArgs = castSlice(args, 0, start);\n\n if (array) {\n arrayPush(otherArgs, array);\n }\n return apply(func, this, otherArgs);\n });\n }\n\n /**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\n function throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n }\n\n /**\n * Creates a function that accepts up to one argument, ignoring any\n * additional arguments.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.unary(parseInt));\n * // => [6, 8, 10]\n */\n function unary(func) {\n return ary(func, 1);\n }\n\n /**\n * Creates a function that provides `value` to `wrapper` as its first\n * argument. Any additional arguments provided to the function are appended\n * to those provided to the `wrapper`. The wrapper is invoked with the `this`\n * binding of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {*} value The value to wrap.\n * @param {Function} [wrapper=identity] The wrapper function.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var p = _.wrap(_.escape, function(func, text) {\n * return '<p>' + func(text) + '</p>';\n * });\n *\n * p('fred, barney, & pebbles');\n * // => '<p>fred, barney, &amp; pebbles</p>'\n */\n function wrap(value, wrapper) {\n return partial(castFunction(wrapper), value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Casts `value` as an array if it's not one.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Lang\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast array.\n * @example\n *\n * _.castArray(1);\n * // => [1]\n *\n * _.castArray({ 'a': 1 });\n * // => [{ 'a': 1 }]\n *\n * _.castArray('abc');\n * // => ['abc']\n *\n * _.castArray(null);\n * // => [null]\n *\n * _.castArray(undefined);\n * // => [undefined]\n *\n * _.castArray();\n * // => []\n *\n * var array = [1, 2, 3];\n * console.log(_.castArray(array) === array);\n * // => true\n */\n function castArray() {\n if (!arguments.length) {\n return [];\n }\n var value = arguments[0];\n return isArray(value) ? value : [value];\n }\n\n /**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\n function clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.clone` except that it accepts `customizer` which\n * is invoked to produce the cloned value. If `customizer` returns `undefined`,\n * cloning is handled by the method instead. The `customizer` is invoked with\n * up to four arguments; (value [, index|key, object, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeepWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(false);\n * }\n * }\n *\n * var el = _.cloneWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 0\n */\n function cloneWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\n function cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.cloneWith` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the deep cloned value.\n * @see _.cloneWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(true);\n * }\n * }\n *\n * var el = _.cloneDeepWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 20\n */\n function cloneDeepWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * Checks if `object` conforms to `source` by invoking the predicate\n * properties of `source` with the corresponding property values of `object`.\n *\n * **Note:** This method is equivalent to `_.conforms` when `source` is\n * partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 1; } });\n * // => true\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 2; } });\n * // => false\n */\n function conformsTo(object, source) {\n return source == null || baseConformsTo(object, source, keys(source));\n }\n\n /**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n function eq(value, other) {\n return value === other || (value !== value && other !== other);\n }\n\n /**\n * Checks if `value` is greater than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n * @see _.lt\n * @example\n *\n * _.gt(3, 1);\n * // => true\n *\n * _.gt(3, 3);\n * // => false\n *\n * _.gt(1, 3);\n * // => false\n */\n var gt = createRelationalOperation(baseGt);\n\n /**\n * Checks if `value` is greater than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than or equal to\n * `other`, else `false`.\n * @see _.lte\n * @example\n *\n * _.gte(3, 1);\n * // => true\n *\n * _.gte(3, 3);\n * // => true\n *\n * _.gte(1, 3);\n * // => false\n */\n var gte = createRelationalOperation(function(value, other) {\n return value >= other;\n });\n\n /**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n };\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n var isArray = Array.isArray;\n\n /**\n * Checks if `value` is classified as an `ArrayBuffer` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n * @example\n *\n * _.isArrayBuffer(new ArrayBuffer(2));\n * // => true\n *\n * _.isArrayBuffer(new Array(2));\n * // => false\n */\n var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;\n\n /**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n }\n\n /**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n function isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n }\n\n /**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\n function isBoolean(value) {\n return value === true || value === false ||\n (isObjectLike(value) && baseGetTag(value) == boolTag);\n }\n\n /**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n var isBuffer = nativeIsBuffer || stubFalse;\n\n /**\n * Checks if `value` is classified as a `Date` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n * @example\n *\n * _.isDate(new Date);\n * // => true\n *\n * _.isDate('Mon April 23 2012');\n * // => false\n */\n var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\n\n /**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('<body>');\n * // => false\n */\n function isElement(value) {\n return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\n }\n\n /**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\n function isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\n function isEqual(value, other) {\n return baseIsEqual(value, other);\n }\n\n /**\n * This method is like `_.isEqual` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with up to\n * six arguments: (objValue, othValue [, index|key, object, other, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, othValue) {\n * if (isGreeting(objValue) && isGreeting(othValue)) {\n * return true;\n * }\n * }\n *\n * var array = ['hello', 'goodbye'];\n * var other = ['hi', 'goodbye'];\n *\n * _.isEqualWith(array, other, customizer);\n * // => true\n */\n function isEqualWith(value, other, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n var result = customizer ? customizer(value, other) : undefined;\n return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;\n }\n\n /**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\n * @example\n *\n * _.isError(new Error);\n * // => true\n *\n * _.isError(Error);\n * // => false\n */\n function isError(value) {\n if (!isObjectLike(value)) {\n return false;\n }\n var tag = baseGetTag(value);\n return tag == errorTag || tag == domExcTag ||\n (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));\n }\n\n /**\n * Checks if `value` is a finite primitive number.\n *\n * **Note:** This method is based on\n * [`Number.isFinite`](https://mdn.io/Number/isFinite).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\n * @example\n *\n * _.isFinite(3);\n * // => true\n *\n * _.isFinite(Number.MIN_VALUE);\n * // => true\n *\n * _.isFinite(Infinity);\n * // => false\n *\n * _.isFinite('3');\n * // => false\n */\n function isFinite(value) {\n return typeof value == 'number' && nativeIsFinite(value);\n }\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n }\n\n /**\n * Checks if `value` is an integer.\n *\n * **Note:** This method is based on\n * [`Number.isInteger`](https://mdn.io/Number/isInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an integer, else `false`.\n * @example\n *\n * _.isInteger(3);\n * // => true\n *\n * _.isInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isInteger(Infinity);\n * // => false\n *\n * _.isInteger('3');\n * // => false\n */\n function isInteger(value) {\n return typeof value == 'number' && value == toInteger(value);\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n function isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n function isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n }\n\n /**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n function isObjectLike(value) {\n return value != null && typeof value == 'object';\n }\n\n /**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\n var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\n /**\n * Performs a partial deep comparison between `object` and `source` to\n * determine if `object` contains equivalent property values.\n *\n * **Note:** This method is equivalent to `_.matches` when `source` is\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.isMatch(object, { 'b': 2 });\n * // => true\n *\n * _.isMatch(object, { 'b': 1 });\n * // => false\n */\n function isMatch(object, source) {\n return object === source || baseIsMatch(object, source, getMatchData(source));\n }\n\n /**\n * This method is like `_.isMatch` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with five\n * arguments: (objValue, srcValue, index|key, object, source).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, srcValue) {\n * if (isGreeting(objValue) && isGreeting(srcValue)) {\n * return true;\n * }\n * }\n *\n * var object = { 'greeting': 'hello' };\n * var source = { 'greeting': 'hi' };\n *\n * _.isMatchWith(object, source, customizer);\n * // => true\n */\n function isMatchWith(object, source, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseIsMatch(object, source, getMatchData(source), customizer);\n }\n\n /**\n * Checks if `value` is `NaN`.\n *\n * **Note:** This method is based on\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\n * `undefined` and other non-number values.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n * @example\n *\n * _.isNaN(NaN);\n * // => true\n *\n * _.isNaN(new Number(NaN));\n * // => true\n *\n * isNaN(undefined);\n * // => true\n *\n * _.isNaN(undefined);\n * // => false\n */\n function isNaN(value) {\n // An `NaN` primitive is the only value that is not equal to itself.\n // Perform the `toStringTag` check first to avoid errors with some\n // ActiveX objects in IE.\n return isNumber(value) && value != +value;\n }\n\n /**\n * Checks if `value` is a pristine native function.\n *\n * **Note:** This method can't reliably detect native functions in the presence\n * of the core-js package because core-js circumvents this kind of detection.\n * Despite multiple requests, the core-js maintainer has made it clear: any\n * attempt to fix the detection will be obstructed. As a result, we're left\n * with little choice but to throw an error. Unfortunately, this also affects\n * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),\n * which rely on core-js.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n function isNative(value) {\n if (isMaskable(value)) {\n throw new Error(CORE_ERROR_TEXT);\n }\n return baseIsNative(value);\n }\n\n /**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\n function isNull(value) {\n return value === null;\n }\n\n /**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\n function isNil(value) {\n return value == null;\n }\n\n /**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\n function isNumber(value) {\n return typeof value == 'number' ||\n (isObjectLike(value) && baseGetTag(value) == numberTag);\n }\n\n /**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\n function isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n }\n\n /**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\n var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\n\n /**\n * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754\n * double precision number which isn't the result of a rounded unsafe integer.\n *\n * **Note:** This method is based on\n * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.\n * @example\n *\n * _.isSafeInteger(3);\n * // => true\n *\n * _.isSafeInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isSafeInteger(Infinity);\n * // => false\n *\n * _.isSafeInteger('3');\n * // => false\n */\n function isSafeInteger(value) {\n return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\n var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\n /**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\n function isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n }\n\n /**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n function isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n /**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\n function isUndefined(value) {\n return value === undefined;\n }\n\n /**\n * Checks if `value` is classified as a `WeakMap` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.\n * @example\n *\n * _.isWeakMap(new WeakMap);\n * // => true\n *\n * _.isWeakMap(new Map);\n * // => false\n */\n function isWeakMap(value) {\n return isObjectLike(value) && getTag(value) == weakMapTag;\n }\n\n /**\n * Checks if `value` is classified as a `WeakSet` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.\n * @example\n *\n * _.isWeakSet(new WeakSet);\n * // => true\n *\n * _.isWeakSet(new Set);\n * // => false\n */\n function isWeakSet(value) {\n return isObjectLike(value) && baseGetTag(value) == weakSetTag;\n }\n\n /**\n * Checks if `value` is less than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n * @see _.gt\n * @example\n *\n * _.lt(1, 3);\n * // => true\n *\n * _.lt(3, 3);\n * // => false\n *\n * _.lt(3, 1);\n * // => false\n */\n var lt = createRelationalOperation(baseLt);\n\n /**\n * Checks if `value` is less than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than or equal to\n * `other`, else `false`.\n * @see _.gte\n * @example\n *\n * _.lte(1, 3);\n * // => true\n *\n * _.lte(3, 3);\n * // => true\n *\n * _.lte(3, 1);\n * // => false\n */\n var lte = createRelationalOperation(function(value, other) {\n return value <= other;\n });\n\n /**\n * Converts `value` to an array.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Array} Returns the converted array.\n * @example\n *\n * _.toArray({ 'a': 1, 'b': 2 });\n * // => [1, 2]\n *\n * _.toArray('abc');\n * // => ['a', 'b', 'c']\n *\n * _.toArray(1);\n * // => []\n *\n * _.toArray(null);\n * // => []\n */\n function toArray(value) {\n if (!value) {\n return [];\n }\n if (isArrayLike(value)) {\n return isString(value) ? stringToArray(value) : copyArray(value);\n }\n if (symIterator && value[symIterator]) {\n return iteratorToArray(value[symIterator]());\n }\n var tag = getTag(value),\n func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\n\n return func(value);\n }\n\n /**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\n function toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n }\n\n /**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\n function toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n }\n\n /**\n * Converts `value` to an integer suitable for use as the length of an\n * array-like object.\n *\n * **Note:** This method is based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toLength(3.2);\n * // => 3\n *\n * _.toLength(Number.MIN_VALUE);\n * // => 0\n *\n * _.toLength(Infinity);\n * // => 4294967295\n *\n * _.toLength('3.2');\n * // => 3\n */\n function toLength(value) {\n return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;\n }\n\n /**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\n function toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n }\n\n /**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\n function toPlainObject(value) {\n return copyObject(value, keysIn(value));\n }\n\n /**\n * Converts `value` to a safe integer. A safe integer can be compared and\n * represented correctly.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toSafeInteger(3.2);\n * // => 3\n *\n * _.toSafeInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toSafeInteger(Infinity);\n * // => 9007199254740991\n *\n * _.toSafeInteger('3.2');\n * // => 3\n */\n function toSafeInteger(value) {\n return value\n ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)\n : (value === 0 ? value : 0);\n }\n\n /**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\n function toString(value) {\n return value == null ? '' : baseToString(value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\n var assign = createAssigner(function(object, source) {\n if (isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n });\n\n /**\n * This method is like `_.assign` except that it iterates over own and\n * inherited source properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extend\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assign\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\n */\n var assignIn = createAssigner(function(object, source) {\n copyObject(source, keysIn(source), object);\n });\n\n /**\n * This method is like `_.assignIn` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extendWith\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignInWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keysIn(source), object, customizer);\n });\n\n /**\n * This method is like `_.assign` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignInWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keys(source), object, customizer);\n });\n\n /**\n * Creates an array of values corresponding to `paths` of `object`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Array} Returns the picked values.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _.at(object, ['a[0].b.c', 'a[1]']);\n * // => [3, 4]\n */\n var at = flatRest(baseAt);\n\n /**\n * Creates an object that inherits from the `prototype` object. If a\n * `properties` object is given, its own enumerable string keyed properties\n * are assigned to the created object.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Object\n * @param {Object} prototype The object to inherit from.\n * @param {Object} [properties] The properties to assign to the object.\n * @returns {Object} Returns the new object.\n * @example\n *\n * function Shape() {\n * this.x = 0;\n * this.y = 0;\n * }\n *\n * function Circle() {\n * Shape.call(this);\n * }\n *\n * Circle.prototype = _.create(Shape.prototype, {\n * 'constructor': Circle\n * });\n *\n * var circle = new Circle;\n * circle instanceof Circle;\n * // => true\n *\n * circle instanceof Shape;\n * // => true\n */\n function create(prototype, properties) {\n var result = baseCreate(prototype);\n return properties == null ? result : baseAssign(result, properties);\n }\n\n /**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n });\n\n /**\n * This method is like `_.defaults` except that it recursively assigns\n * default properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaults\n * @example\n *\n * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\n * // => { 'a': { 'b': 2, 'c': 3 } }\n */\n var defaultsDeep = baseRest(function(args) {\n args.push(undefined, customDefaultsMerge);\n return apply(mergeWith, undefined, args);\n });\n\n /**\n * This method is like `_.find` except that it returns the key of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findKey(users, function(o) { return o.age < 40; });\n * // => 'barney' (iteration order is not guaranteed)\n *\n * // The `_.matches` iteratee shorthand.\n * _.findKey(users, { 'age': 1, 'active': true });\n * // => 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findKey(users, 'active');\n * // => 'barney'\n */\n function findKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);\n }\n\n /**\n * This method is like `_.findKey` except that it iterates over elements of\n * a collection in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findLastKey(users, function(o) { return o.age < 40; });\n * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastKey(users, { 'age': 36, 'active': true });\n * // => 'barney'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastKey(users, 'active');\n * // => 'pebbles'\n */\n function findLastKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);\n }\n\n /**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\n function forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * This method is like `_.forIn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forInRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.\n */\n function forInRight(object, iteratee) {\n return object == null\n ? object\n : baseForRight(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * Iterates over own enumerable string keyed properties of an object and\n * invokes `iteratee` for each property. The iteratee is invoked with three\n * arguments: (value, key, object). Iteratee functions may exit iteration\n * early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwnRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forOwn(object, iteratee) {\n return object && baseForOwn(object, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forOwn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwnRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.\n */\n function forOwnRight(object, iteratee) {\n return object && baseForOwnRight(object, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an array of function property names from own enumerable properties\n * of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functionsIn\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functions(new Foo);\n * // => ['a', 'b']\n */\n function functions(object) {\n return object == null ? [] : baseFunctions(object, keys(object));\n }\n\n /**\n * Creates an array of function property names from own and inherited\n * enumerable properties of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functions\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functionsIn(new Foo);\n * // => ['a', 'b', 'c']\n */\n function functionsIn(object) {\n return object == null ? [] : baseFunctions(object, keysIn(object));\n }\n\n /**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\n function get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n }\n\n /**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\n function has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n }\n\n /**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\n function hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n }\n\n /**\n * Creates an object composed of the inverted keys and values of `object`.\n * If `object` contains duplicate values, subsequent values overwrite\n * property assignments of previous values.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Object\n * @param {Object} object The object to invert.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invert(object);\n * // => { '1': 'c', '2': 'b' }\n */\n var invert = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n result[value] = key;\n }, constant(identity));\n\n /**\n * This method is like `_.invert` except that the inverted object is generated\n * from the results of running each element of `object` thru `iteratee`. The\n * corresponding inverted value of each inverted key is an array of keys\n * responsible for generating the inverted value. The iteratee is invoked\n * with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Object\n * @param {Object} object The object to invert.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invertBy(object);\n * // => { '1': ['a', 'c'], '2': ['b'] }\n *\n * _.invertBy(object, function(value) {\n * return 'group' + value;\n * });\n * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\n */\n var invertBy = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n if (hasOwnProperty.call(result, value)) {\n result[value].push(key);\n } else {\n result[value] = [key];\n }\n }, getIteratee);\n\n /**\n * Invokes the method at `path` of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };\n *\n * _.invoke(object, 'a[0].b.c.slice', 1, 3);\n * // => [2, 3]\n */\n var invoke = baseRest(baseInvoke);\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n }\n\n /**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n function keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n }\n\n /**\n * The opposite of `_.mapValues`; this method creates an object with the\n * same values as `object` and keys generated by running each own enumerable\n * string keyed property of `object` thru `iteratee`. The iteratee is invoked\n * with three arguments: (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapValues\n * @example\n *\n * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\n * return key + value;\n * });\n * // => { 'a1': 1, 'b2': 2 }\n */\n function mapKeys(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, iteratee(value, key, object), value);\n });\n return result;\n }\n\n /**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\n function mapValues(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n }\n\n /**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\n var merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n });\n\n /**\n * This method is like `_.merge` except that it accepts `customizer` which\n * is invoked to produce the merged values of the destination and source\n * properties. If `customizer` returns `undefined`, merging is handled by the\n * method instead. The `customizer` is invoked with six arguments:\n * (objValue, srcValue, key, object, source, stack).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} customizer The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function customizer(objValue, srcValue) {\n * if (_.isArray(objValue)) {\n * return objValue.concat(srcValue);\n * }\n * }\n *\n * var object = { 'a': [1], 'b': [2] };\n * var other = { 'a': [3], 'b': [4] };\n *\n * _.mergeWith(object, other, customizer);\n * // => { 'a': [1, 3], 'b': [2, 4] }\n */\n var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n });\n\n /**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\n var omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n });\n\n /**\n * The opposite of `_.pickBy`; this method creates an object composed of\n * the own and inherited enumerable string keyed properties of `object` that\n * `predicate` doesn't return truthy for. The predicate is invoked with two\n * arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omitBy(object, _.isNumber);\n * // => { 'b': '2' }\n */\n function omitBy(object, predicate) {\n return pickBy(object, negate(getIteratee(predicate)));\n }\n\n /**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\n var pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n });\n\n /**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\n function pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = getIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n }\n\n /**\n * This method is like `_.get` except that if the resolved value is a\n * function it's invoked with the `this` binding of its parent object and\n * its result is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to resolve.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\n *\n * _.result(object, 'a[0].b.c1');\n * // => 3\n *\n * _.result(object, 'a[0].b.c2');\n * // => 4\n *\n * _.result(object, 'a[0].b.c3', 'default');\n * // => 'default'\n *\n * _.result(object, 'a[0].b.c3', _.constant('default'));\n * // => 'default'\n */\n function result(object, path, defaultValue) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length;\n\n // Ensure the loop is entered when path is empty.\n if (!length) {\n length = 1;\n object = undefined;\n }\n while (++index < length) {\n var value = object == null ? undefined : object[toKey(path[index])];\n if (value === undefined) {\n index = length;\n value = defaultValue;\n }\n object = isFunction(value) ? value.call(object) : value;\n }\n return object;\n }\n\n /**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\n function set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n }\n\n /**\n * This method is like `_.set` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.setWith(object, '[0][1]', 'a', Object);\n * // => { '0': { '1': 'a' } }\n */\n function setWith(object, path, value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseSet(object, path, value, customizer);\n }\n\n /**\n * Creates an array of own enumerable string keyed-value pairs for `object`\n * which can be consumed by `_.fromPairs`. If `object` is a map or set, its\n * entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entries\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairs(new Foo);\n * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)\n */\n var toPairs = createToPairs(keys);\n\n /**\n * Creates an array of own and inherited enumerable string keyed-value pairs\n * for `object` which can be consumed by `_.fromPairs`. If `object` is a map\n * or set, its entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entriesIn\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairsIn(new Foo);\n * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)\n */\n var toPairsIn = createToPairs(keysIn);\n\n /**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\n function transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = getIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n }\n\n /**\n * Removes the property at `path` of `object`.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 7 } }] };\n * _.unset(object, 'a[0].b.c');\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n *\n * _.unset(object, ['a', '0', 'b', 'c']);\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n */\n function unset(object, path) {\n return object == null ? true : baseUnset(object, path);\n }\n\n /**\n * This method is like `_.set` except that accepts `updater` to produce the\n * value to set. Use `_.updateWith` to customize `path` creation. The `updater`\n * is invoked with one argument: (value).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.update(object, 'a[0].b.c', function(n) { return n * n; });\n * console.log(object.a[0].b.c);\n * // => 9\n *\n * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });\n * console.log(object.x[0].y.z);\n * // => 0\n */\n function update(object, path, updater) {\n return object == null ? object : baseUpdate(object, path, castFunction(updater));\n }\n\n /**\n * This method is like `_.update` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.updateWith(object, '[0][1]', _.constant('a'), Object);\n * // => { '0': { '1': 'a' } }\n */\n function updateWith(object, path, updater, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);\n }\n\n /**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\n function values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n }\n\n /**\n * Creates an array of the own and inherited enumerable string keyed property\n * values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.valuesIn(new Foo);\n * // => [1, 2, 3] (iteration order is not guaranteed)\n */\n function valuesIn(object) {\n return object == null ? [] : baseValues(object, keysIn(object));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Number\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n * @example\n *\n * _.clamp(-10, -5, 5);\n * // => -5\n *\n * _.clamp(10, -5, 5);\n * // => 5\n */\n function clamp(number, lower, upper) {\n if (upper === undefined) {\n upper = lower;\n lower = undefined;\n }\n if (upper !== undefined) {\n upper = toNumber(upper);\n upper = upper === upper ? upper : 0;\n }\n if (lower !== undefined) {\n lower = toNumber(lower);\n lower = lower === lower ? lower : 0;\n }\n return baseClamp(toNumber(number), lower, upper);\n }\n\n /**\n * Checks if `n` is between `start` and up to, but not including, `end`. If\n * `end` is not specified, it's set to `start` with `start` then set to `0`.\n * If `start` is greater than `end` the params are swapped to support\n * negative ranges.\n *\n * @static\n * @memberOf _\n * @since 3.3.0\n * @category Number\n * @param {number} number The number to check.\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n * @see _.range, _.rangeRight\n * @example\n *\n * _.inRange(3, 2, 4);\n * // => true\n *\n * _.inRange(4, 8);\n * // => true\n *\n * _.inRange(4, 2);\n * // => false\n *\n * _.inRange(2, 2);\n * // => false\n *\n * _.inRange(1.2, 2);\n * // => true\n *\n * _.inRange(5.2, 4);\n * // => false\n *\n * _.inRange(-3, -2, -6);\n * // => true\n */\n function inRange(number, start, end) {\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n number = toNumber(number);\n return baseInRange(number, start, end);\n }\n\n /**\n * Produces a random number between the inclusive `lower` and `upper` bounds.\n * If only one argument is provided a number between `0` and the given number\n * is returned. If `floating` is `true`, or either `lower` or `upper` are\n * floats, a floating-point number is returned instead of an integer.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Number\n * @param {number} [lower=0] The lower bound.\n * @param {number} [upper=1] The upper bound.\n * @param {boolean} [floating] Specify returning a floating-point number.\n * @returns {number} Returns the random number.\n * @example\n *\n * _.random(0, 5);\n * // => an integer between 0 and 5\n *\n * _.random(5);\n * // => also an integer between 0 and 5\n *\n * _.random(5, true);\n * // => a floating-point number between 0 and 5\n *\n * _.random(1.2, 5.2);\n * // => a floating-point number between 1.2 and 5.2\n */\n function random(lower, upper, floating) {\n if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\n upper = floating = undefined;\n }\n if (floating === undefined) {\n if (typeof upper == 'boolean') {\n floating = upper;\n upper = undefined;\n }\n else if (typeof lower == 'boolean') {\n floating = lower;\n lower = undefined;\n }\n }\n if (lower === undefined && upper === undefined) {\n lower = 0;\n upper = 1;\n }\n else {\n lower = toFinite(lower);\n if (upper === undefined) {\n upper = lower;\n lower = 0;\n } else {\n upper = toFinite(upper);\n }\n }\n if (lower > upper) {\n var temp = lower;\n lower = upper;\n upper = temp;\n }\n if (floating || lower % 1 || upper % 1) {\n var rand = nativeRandom();\n return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\n }\n return baseRandom(lower, upper);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\n var camelCase = createCompounder(function(result, word, index) {\n word = word.toLowerCase();\n return result + (index ? capitalize(word) : word);\n });\n\n /**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\n function capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n }\n\n /**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\n function deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n }\n\n /**\n * Checks if `string` ends with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=string.length] The position to search up to.\n * @returns {boolean} Returns `true` if `string` ends with `target`,\n * else `false`.\n * @example\n *\n * _.endsWith('abc', 'c');\n * // => true\n *\n * _.endsWith('abc', 'b');\n * // => false\n *\n * _.endsWith('abc', 'b', 2);\n * // => true\n */\n function endsWith(string, target, position) {\n string = toString(string);\n target = baseToString(target);\n\n var length = string.length;\n position = position === undefined\n ? length\n : baseClamp(toInteger(position), 0, length);\n\n var end = position;\n position -= target.length;\n return position >= 0 && string.slice(position, end) == target;\n }\n\n /**\n * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\n * corresponding HTML entities.\n *\n * **Note:** No other characters are escaped. To escape additional\n * characters use a third-party library like [_he_](https://mths.be/he).\n *\n * Though the \">\" character is escaped for symmetry, characters like\n * \">\" and \"/\" don't need escaping in HTML and have no special meaning\n * unless they're part of a tag or unquoted attribute value. See\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n * (under \"semi-related fun fact\") for more details.\n *\n * When working with HTML you should always\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\n * XSS vectors.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escape('fred, barney, & pebbles');\n * // => 'fred, barney, &amp; pebbles'\n */\n function escape(string) {\n string = toString(string);\n return (string && reHasUnescapedHtml.test(string))\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\n : string;\n }\n\n /**\n * Escapes the `RegExp` special characters \"^\", \"$\", \"\\\", \".\", \"*\", \"+\",\n * \"?\", \"(\", \")\", \"[\", \"]\", \"{\", \"}\", and \"|\" in `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escapeRegExp('[lodash](https://lodash.com/)');\n * // => '\\[lodash\\]\\(https://lodash\\.com/\\)'\n */\n function escapeRegExp(string) {\n string = toString(string);\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n }\n\n /**\n * Converts `string` to\n * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the kebab cased string.\n * @example\n *\n * _.kebabCase('Foo Bar');\n * // => 'foo-bar'\n *\n * _.kebabCase('fooBar');\n * // => 'foo-bar'\n *\n * _.kebabCase('__FOO_BAR__');\n * // => 'foo-bar'\n */\n var kebabCase = createCompounder(function(result, word, index) {\n return result + (index ? '-' : '') + word.toLowerCase();\n });\n\n /**\n * Converts `string`, as space separated words, to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.lowerCase('--Foo-Bar--');\n * // => 'foo bar'\n *\n * _.lowerCase('fooBar');\n * // => 'foo bar'\n *\n * _.lowerCase('__FOO_BAR__');\n * // => 'foo bar'\n */\n var lowerCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toLowerCase();\n });\n\n /**\n * Converts the first character of `string` to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.lowerFirst('Fred');\n * // => 'fred'\n *\n * _.lowerFirst('FRED');\n * // => 'fRED'\n */\n var lowerFirst = createCaseFirst('toLowerCase');\n\n /**\n * Pads `string` on the left and right sides if it's shorter than `length`.\n * Padding characters are truncated if they can't be evenly divided by `length`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.pad('abc', 8);\n * // => ' abc '\n *\n * _.pad('abc', 8, '_-');\n * // => '_-abc_-_'\n *\n * _.pad('abc', 3);\n * // => 'abc'\n */\n function pad(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n if (!length || strLength >= length) {\n return string;\n }\n var mid = (length - strLength) / 2;\n return (\n createPadding(nativeFloor(mid), chars) +\n string +\n createPadding(nativeCeil(mid), chars)\n );\n }\n\n /**\n * Pads `string` on the right side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padEnd('abc', 6);\n * // => 'abc '\n *\n * _.padEnd('abc', 6, '_-');\n * // => 'abc_-_'\n *\n * _.padEnd('abc', 3);\n * // => 'abc'\n */\n function padEnd(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (string + createPadding(length - strLength, chars))\n : string;\n }\n\n /**\n * Pads `string` on the left side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padStart('abc', 6);\n * // => ' abc'\n *\n * _.padStart('abc', 6, '_-');\n * // => '_-_abc'\n *\n * _.padStart('abc', 3);\n * // => 'abc'\n */\n function padStart(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (createPadding(length - strLength, chars) + string)\n : string;\n }\n\n /**\n * Converts `string` to an integer of the specified radix. If `radix` is\n * `undefined` or `0`, a `radix` of `10` is used unless `value` is a\n * hexadecimal, in which case a `radix` of `16` is used.\n *\n * **Note:** This method aligns with the\n * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category String\n * @param {string} string The string to convert.\n * @param {number} [radix=10] The radix to interpret `value` by.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.parseInt('08');\n * // => 8\n *\n * _.map(['6', '08', '10'], _.parseInt);\n * // => [6, 8, 10]\n */\n function parseInt(string, radix, guard) {\n if (guard || radix == null) {\n radix = 0;\n } else if (radix) {\n radix = +radix;\n }\n return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);\n }\n\n /**\n * Repeats the given string `n` times.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to repeat.\n * @param {number} [n=1] The number of times to repeat the string.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the repeated string.\n * @example\n *\n * _.repeat('*', 3);\n * // => '***'\n *\n * _.repeat('abc', 2);\n * // => 'abcabc'\n *\n * _.repeat('abc', 0);\n * // => ''\n */\n function repeat(string, n, guard) {\n if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n return baseRepeat(toString(string), n);\n }\n\n /**\n * Replaces matches for `pattern` in `string` with `replacement`.\n *\n * **Note:** This method is based on\n * [`String#replace`](https://mdn.io/String/replace).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to modify.\n * @param {RegExp|string} pattern The pattern to replace.\n * @param {Function|string} replacement The match replacement.\n * @returns {string} Returns the modified string.\n * @example\n *\n * _.replace('Hi Fred', 'Fred', 'Barney');\n * // => 'Hi Barney'\n */\n function replace() {\n var args = arguments,\n string = toString(args[0]);\n\n return args.length < 3 ? string : string.replace(args[1], args[2]);\n }\n\n /**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\n var snakeCase = createCompounder(function(result, word, index) {\n return result + (index ? '_' : '') + word.toLowerCase();\n });\n\n /**\n * Splits `string` by `separator`.\n *\n * **Note:** This method is based on\n * [`String#split`](https://mdn.io/String/split).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to split.\n * @param {RegExp|string} separator The separator pattern to split by.\n * @param {number} [limit] The length to truncate results to.\n * @returns {Array} Returns the string segments.\n * @example\n *\n * _.split('a-b-c', '-', 2);\n * // => ['a', 'b']\n */\n function split(string, separator, limit) {\n if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {\n separator = limit = undefined;\n }\n limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;\n if (!limit) {\n return [];\n }\n string = toString(string);\n if (string && (\n typeof separator == 'string' ||\n (separator != null && !isRegExp(separator))\n )) {\n separator = baseToString(separator);\n if (!separator && hasUnicode(string)) {\n return castSlice(stringToArray(string), 0, limit);\n }\n }\n return string.split(separator, limit);\n }\n\n /**\n * Converts `string` to\n * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n *\n * @static\n * @memberOf _\n * @since 3.1.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the start cased string.\n * @example\n *\n * _.startCase('--foo-bar--');\n * // => 'Foo Bar'\n *\n * _.startCase('fooBar');\n * // => 'Foo Bar'\n *\n * _.startCase('__FOO_BAR__');\n * // => 'FOO BAR'\n */\n var startCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + upperFirst(word);\n });\n\n /**\n * Checks if `string` starts with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=0] The position to search from.\n * @returns {boolean} Returns `true` if `string` starts with `target`,\n * else `false`.\n * @example\n *\n * _.startsWith('abc', 'a');\n * // => true\n *\n * _.startsWith('abc', 'b');\n * // => false\n *\n * _.startsWith('abc', 'b', 1);\n * // => true\n */\n function startsWith(string, target, position) {\n string = toString(string);\n position = position == null\n ? 0\n : baseClamp(toInteger(position), 0, string.length);\n\n target = baseToString(target);\n return string.slice(position, position + target.length) == target;\n }\n\n /**\n * Creates a compiled template function that can interpolate data properties\n * in \"interpolate\" delimiters, HTML-escape interpolated data properties in\n * \"escape\" delimiters, and execute JavaScript in \"evaluate\" delimiters. Data\n * properties may be accessed as free variables in the template. If a setting\n * object is given, it takes precedence over `_.templateSettings` values.\n *\n * **Note:** In the development build `_.template` utilizes\n * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\n * for easier debugging.\n *\n * For more information on precompiling templates see\n * [lodash's custom builds documentation](https://lodash.com/custom-builds).\n *\n * For more information on Chrome extension sandboxes see\n * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The template string.\n * @param {Object} [options={}] The options object.\n * @param {RegExp} [options.escape=_.templateSettings.escape]\n * The HTML \"escape\" delimiter.\n * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]\n * The \"evaluate\" delimiter.\n * @param {Object} [options.imports=_.templateSettings.imports]\n * An object to import into the template as free variables.\n * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]\n * The \"interpolate\" delimiter.\n * @param {string} [options.sourceURL='lodash.templateSources[n]']\n * The sourceURL of the compiled template.\n * @param {string} [options.variable='obj']\n * The data object variable name.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the compiled template function.\n * @example\n *\n * // Use the \"interpolate\" delimiter to create a compiled template.\n * var compiled = _.template('hello <%= user %>!');\n * compiled({ 'user': 'fred' });\n * // => 'hello fred!'\n *\n * // Use the HTML \"escape\" delimiter to escape data property values.\n * var compiled = _.template('<b><%- value %></b>');\n * compiled({ 'value': '<script>' });\n * // => '<b>&lt;script&gt;</b>'\n *\n * // Use the \"evaluate\" delimiter to execute JavaScript and generate HTML.\n * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');\n * compiled({ 'users': ['fred', 'barney'] });\n * // => '<li>fred</li><li>barney</li>'\n *\n * // Use the internal `print` function in \"evaluate\" delimiters.\n * var compiled = _.template('<% print(\"hello \" + user); %>!');\n * compiled({ 'user': 'barney' });\n * // => 'hello barney!'\n *\n * // Use the ES template literal delimiter as an \"interpolate\" delimiter.\n * // Disable support by replacing the \"interpolate\" delimiter.\n * var compiled = _.template('hello ${ user }!');\n * compiled({ 'user': 'pebbles' });\n * // => 'hello pebbles!'\n *\n * // Use backslashes to treat delimiters as plain text.\n * var compiled = _.template('<%= \"\\\\<%- value %\\\\>\" %>');\n * compiled({ 'value': 'ignored' });\n * // => '<%- value %>'\n *\n * // Use the `imports` option to import `jQuery` as `jq`.\n * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';\n * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });\n * compiled({ 'users': ['fred', 'barney'] });\n * // => '<li>fred</li><li>barney</li>'\n *\n * // Use the `sourceURL` option to specify a custom sourceURL for the template.\n * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });\n * compiled(data);\n * // => Find the source of \"greeting.jst\" under the Sources tab or Resources panel of the web inspector.\n *\n * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.\n * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });\n * compiled.source;\n * // => function(data) {\n * // var __t, __p = '';\n * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';\n * // return __p;\n * // }\n *\n * // Use custom template delimiters.\n * _.templateSettings.interpolate = /{{([\\s\\S]+?)}}/g;\n * var compiled = _.template('hello {{ user }}!');\n * compiled({ 'user': 'mustache' });\n * // => 'hello mustache!'\n *\n * // Use the `source` property to inline compiled templates for meaningful\n * // line numbers in error messages and stack traces.\n * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\\\n * var JST = {\\\n * \"main\": ' + _.template(mainText).source + '\\\n * };\\\n * ');\n */\n function template(string, options, guard) {\n // Based on John Resig's `tmpl` implementation\n // (http://ejohn.org/blog/javascript-micro-templating/)\n // and Laura Doktorova's doT.js (https://github.com/olado/doT).\n var settings = lodash.templateSettings;\n\n if (guard && isIterateeCall(string, options, guard)) {\n options = undefined;\n }\n string = toString(string);\n options = assignInWith({}, options, settings, customDefaultsAssignIn);\n\n var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),\n importsKeys = keys(imports),\n importsValues = baseValues(imports, importsKeys);\n\n var isEscaping,\n isEvaluating,\n index = 0,\n interpolate = options.interpolate || reNoMatch,\n source = \"__p += '\";\n\n // Compile the regexp to match each delimiter.\n var reDelimiters = RegExp(\n (options.escape || reNoMatch).source + '|' +\n interpolate.source + '|' +\n (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +\n (options.evaluate || reNoMatch).source + '|$'\n , 'g');\n\n // Use a sourceURL for easier debugging.\n // The sourceURL gets injected into the source that's eval-ed, so be careful\n // to normalize all kinds of whitespace, so e.g. newlines (and unicode versions of it) can't sneak in\n // and escape the comment, thus injecting code that gets evaled.\n var sourceURL = '//# sourceURL=' +\n (hasOwnProperty.call(options, 'sourceURL')\n ? (options.sourceURL + '').replace(/\\s/g, ' ')\n : ('lodash.templateSources[' + (++templateCounter) + ']')\n ) + '\\n';\n\n string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {\n interpolateValue || (interpolateValue = esTemplateValue);\n\n // Escape characters that can't be included in string literals.\n source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);\n\n // Replace delimiters with snippets.\n if (escapeValue) {\n isEscaping = true;\n source += \"' +\\n__e(\" + escapeValue + \") +\\n'\";\n }\n if (evaluateValue) {\n isEvaluating = true;\n source += \"';\\n\" + evaluateValue + \";\\n__p += '\";\n }\n if (interpolateValue) {\n source += \"' +\\n((__t = (\" + interpolateValue + \")) == null ? '' : __t) +\\n'\";\n }\n index = offset + match.length;\n\n // The JS engine embedded in Adobe products needs `match` returned in\n // order to produce the correct `offset` value.\n return match;\n });\n\n source += \"';\\n\";\n\n // If `variable` is not specified wrap a with-statement around the generated\n // code to add the data object to the top of the scope chain.\n var variable = hasOwnProperty.call(options, 'variable') && options.variable;\n if (!variable) {\n source = 'with (obj) {\\n' + source + '\\n}\\n';\n }\n // Throw an error if a forbidden character was found in `variable`, to prevent\n // potential command injection attacks.\n else if (reForbiddenIdentifierChars.test(variable)) {\n throw new Error(INVALID_TEMPL_VAR_ERROR_TEXT);\n }\n\n // Cleanup code by stripping empty strings.\n source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)\n .replace(reEmptyStringMiddle, '$1')\n .replace(reEmptyStringTrailing, '$1;');\n\n // Frame code as the function body.\n source = 'function(' + (variable || 'obj') + ') {\\n' +\n (variable\n ? ''\n : 'obj || (obj = {});\\n'\n ) +\n \"var __t, __p = ''\" +\n (isEscaping\n ? ', __e = _.escape'\n : ''\n ) +\n (isEvaluating\n ? ', __j = Array.prototype.join;\\n' +\n \"function print() { __p += __j.call(arguments, '') }\\n\"\n : ';\\n'\n ) +\n source +\n 'return __p\\n}';\n\n var result = attempt(function() {\n return Function(importsKeys, sourceURL + 'return ' + source)\n .apply(undefined, importsValues);\n });\n\n // Provide the compiled function's source by its `toString` method or\n // the `source` property as a convenience for inlining compiled templates.\n result.source = source;\n if (isError(result)) {\n throw result;\n }\n return result;\n }\n\n /**\n * Converts `string`, as a whole, to lower case just like\n * [String#toLowerCase](https://mdn.io/toLowerCase).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.toLower('--Foo-Bar--');\n * // => '--foo-bar--'\n *\n * _.toLower('fooBar');\n * // => 'foobar'\n *\n * _.toLower('__FOO_BAR__');\n * // => '__foo_bar__'\n */\n function toLower(value) {\n return toString(value).toLowerCase();\n }\n\n /**\n * Converts `string`, as a whole, to upper case just like\n * [String#toUpperCase](https://mdn.io/toUpperCase).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the upper cased string.\n * @example\n *\n * _.toUpper('--foo-bar--');\n * // => '--FOO-BAR--'\n *\n * _.toUpper('fooBar');\n * // => 'FOOBAR'\n *\n * _.toUpper('__foo_bar__');\n * // => '__FOO_BAR__'\n */\n function toUpper(value) {\n return toString(value).toUpperCase();\n }\n\n /**\n * Removes leading and trailing whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trim(' abc ');\n * // => 'abc'\n *\n * _.trim('-_-abc-_-', '_-');\n * // => 'abc'\n *\n * _.map([' foo ', ' bar '], _.trim);\n * // => ['foo', 'bar']\n */\n function trim(string, chars, guard) {\n string = toString(string);\n if (string && (guard || chars === undefined)) {\n return baseTrim(string);\n }\n if (!string || !(chars = baseToString(chars))) {\n return string;\n }\n var strSymbols = stringToArray(string),\n chrSymbols = stringToArray(chars),\n start = charsStartIndex(strSymbols, chrSymbols),\n end = charsEndIndex(strSymbols, chrSymbols) + 1;\n\n return castSlice(strSymbols, start, end).join('');\n }\n\n /**\n * Removes trailing whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trimEnd(' abc ');\n * // => ' abc'\n *\n * _.trimEnd('-_-abc-_-', '_-');\n * // => '-_-abc'\n */\n function trimEnd(string, chars, guard) {\n string = toString(string);\n if (string && (guard || chars === undefined)) {\n return string.slice(0, trimmedEndIndex(string) + 1);\n }\n if (!string || !(chars = baseToString(chars))) {\n return string;\n }\n var strSymbols = stringToArray(string),\n end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;\n\n return castSlice(strSymbols, 0, end).join('');\n }\n\n /**\n * Removes leading whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trimStart(' abc ');\n * // => 'abc '\n *\n * _.trimStart('-_-abc-_-', '_-');\n * // => 'abc-_-'\n */\n function trimStart(string, chars, guard) {\n string = toString(string);\n if (string && (guard || chars === undefined)) {\n return string.replace(reTrimStart, '');\n }\n if (!string || !(chars = baseToString(chars))) {\n return string;\n }\n var strSymbols = stringToArray(string),\n start = charsStartIndex(strSymbols, stringToArray(chars));\n\n return castSlice(strSymbols, start).join('');\n }\n\n /**\n * Truncates `string` if it's longer than the given maximum string length.\n * The last characters of the truncated string are replaced with the omission\n * string which defaults to \"...\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to truncate.\n * @param {Object} [options={}] The options object.\n * @param {number} [options.length=30] The maximum string length.\n * @param {string} [options.omission='...'] The string to indicate text is omitted.\n * @param {RegExp|string} [options.separator] The separator pattern to truncate to.\n * @returns {string} Returns the truncated string.\n * @example\n *\n * _.truncate('hi-diddly-ho there, neighborino');\n * // => 'hi-diddly-ho there, neighbo...'\n *\n * _.truncate('hi-diddly-ho there, neighborino', {\n * 'length': 24,\n * 'separator': ' '\n * });\n * // => 'hi-diddly-ho there,...'\n *\n * _.truncate('hi-diddly-ho there, neighborino', {\n * 'length': 24,\n * 'separator': /,? +/\n * });\n * // => 'hi-diddly-ho there...'\n *\n * _.truncate('hi-diddly-ho there, neighborino', {\n * 'omission': ' [...]'\n * });\n * // => 'hi-diddly-ho there, neig [...]'\n */\n function truncate(string, options) {\n var length = DEFAULT_TRUNC_LENGTH,\n omission = DEFAULT_TRUNC_OMISSION;\n\n if (isObject(options)) {\n var separator = 'separator' in options ? options.separator : separator;\n length = 'length' in options ? toInteger(options.length) : length;\n omission = 'omission' in options ? baseToString(options.omission) : omission;\n }\n string = toString(string);\n\n var strLength = string.length;\n if (hasUnicode(string)) {\n var strSymbols = stringToArray(string);\n strLength = strSymbols.length;\n }\n if (length >= strLength) {\n return string;\n }\n var end = length - stringSize(omission);\n if (end < 1) {\n return omission;\n }\n var result = strSymbols\n ? castSlice(strSymbols, 0, end).join('')\n : string.slice(0, end);\n\n if (separator === undefined) {\n return result + omission;\n }\n if (strSymbols) {\n end += (result.length - end);\n }\n if (isRegExp(separator)) {\n if (string.slice(end).search(separator)) {\n var match,\n substring = result;\n\n if (!separator.global) {\n separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');\n }\n separator.lastIndex = 0;\n while ((match = separator.exec(substring))) {\n var newEnd = match.index;\n }\n result = result.slice(0, newEnd === undefined ? end : newEnd);\n }\n } else if (string.indexOf(baseToString(separator), end) != end) {\n var index = result.lastIndexOf(separator);\n if (index > -1) {\n result = result.slice(0, index);\n }\n }\n return result + omission;\n }\n\n /**\n * The inverse of `_.escape`; this method converts the HTML entities\n * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to\n * their corresponding characters.\n *\n * **Note:** No other HTML entities are unescaped. To unescape additional\n * HTML entities use a third-party library like [_he_](https://mths.be/he).\n *\n * @static\n * @memberOf _\n * @since 0.6.0\n * @category String\n * @param {string} [string=''] The string to unescape.\n * @returns {string} Returns the unescaped string.\n * @example\n *\n * _.unescape('fred, barney, &amp; pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function unescape(string) {\n string = toString(string);\n return (string && reHasEscapedHtml.test(string))\n ? string.replace(reEscapedHtml, unescapeHtmlChar)\n : string;\n }\n\n /**\n * Converts `string`, as space separated words, to upper case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the upper cased string.\n * @example\n *\n * _.upperCase('--foo-bar');\n * // => 'FOO BAR'\n *\n * _.upperCase('fooBar');\n * // => 'FOO BAR'\n *\n * _.upperCase('__foo_bar__');\n * // => 'FOO BAR'\n */\n var upperCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toUpperCase();\n });\n\n /**\n * Converts the first character of `string` to upper case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.upperFirst('fred');\n * // => 'Fred'\n *\n * _.upperFirst('FRED');\n * // => 'FRED'\n */\n var upperFirst = createCaseFirst('toUpperCase');\n\n /**\n * Splits `string` into an array of its words.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {RegExp|string} [pattern] The pattern to match words.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the words of `string`.\n * @example\n *\n * _.words('fred, barney, & pebbles');\n * // => ['fred', 'barney', 'pebbles']\n *\n * _.words('fred, barney, & pebbles', /[^, ]+/g);\n * // => ['fred', 'barney', '&', 'pebbles']\n */\n function words(string, pattern, guard) {\n string = toString(string);\n pattern = guard ? undefined : pattern;\n\n if (pattern === undefined) {\n return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);\n }\n return string.match(pattern) || [];\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Attempts to invoke `func`, returning either the result or the caught error\n * object. Any additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Util\n * @param {Function} func The function to attempt.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {*} Returns the `func` result or error object.\n * @example\n *\n * // Avoid throwing errors for invalid selectors.\n * var elements = _.attempt(function(selector) {\n * return document.querySelectorAll(selector);\n * }, '>_>');\n *\n * if (_.isError(elements)) {\n * elements = [];\n * }\n */\n var attempt = baseRest(function(func, args) {\n try {\n return apply(func, undefined, args);\n } catch (e) {\n return isError(e) ? e : new Error(e);\n }\n });\n\n /**\n * Binds methods of an object to the object itself, overwriting the existing\n * method.\n *\n * **Note:** This method doesn't set the \"length\" property of bound functions.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {Object} object The object to bind and assign the bound methods to.\n * @param {...(string|string[])} methodNames The object method names to bind.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var view = {\n * 'label': 'docs',\n * 'click': function() {\n * console.log('clicked ' + this.label);\n * }\n * };\n *\n * _.bindAll(view, ['click']);\n * jQuery(element).on('click', view.click);\n * // => Logs 'clicked docs' when clicked.\n */\n var bindAll = flatRest(function(object, methodNames) {\n arrayEach(methodNames, function(key) {\n key = toKey(key);\n baseAssignValue(object, key, bind(object[key], object));\n });\n return object;\n });\n\n /**\n * Creates a function that iterates over `pairs` and invokes the corresponding\n * function of the first predicate to return truthy. The predicate-function\n * pairs are invoked with the `this` binding and arguments of the created\n * function.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {Array} pairs The predicate-function pairs.\n * @returns {Function} Returns the new composite function.\n * @example\n *\n * var func = _.cond([\n * [_.matches({ 'a': 1 }), _.constant('matches A')],\n * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],\n * [_.stubTrue, _.constant('no match')]\n * ]);\n *\n * func({ 'a': 1, 'b': 2 });\n * // => 'matches A'\n *\n * func({ 'a': 0, 'b': 1 });\n * // => 'matches B'\n *\n * func({ 'a': '1', 'b': '2' });\n * // => 'no match'\n */\n function cond(pairs) {\n var length = pairs == null ? 0 : pairs.length,\n toIteratee = getIteratee();\n\n pairs = !length ? [] : arrayMap(pairs, function(pair) {\n if (typeof pair[1] != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return [toIteratee(pair[0]), pair[1]];\n });\n\n return baseRest(function(args) {\n var index = -1;\n while (++index < length) {\n var pair = pairs[index];\n if (apply(pair[0], this, args)) {\n return apply(pair[1], this, args);\n }\n }\n });\n }\n\n /**\n * Creates a function that invokes the predicate properties of `source` with\n * the corresponding property values of a given object, returning `true` if\n * all predicates return truthy, else `false`.\n *\n * **Note:** The created function is equivalent to `_.conformsTo` with\n * `source` partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n * @example\n *\n * var objects = [\n * { 'a': 2, 'b': 1 },\n * { 'a': 1, 'b': 2 }\n * ];\n *\n * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));\n * // => [{ 'a': 1, 'b': 2 }]\n */\n function conforms(source) {\n return baseConforms(baseClone(source, CLONE_DEEP_FLAG));\n }\n\n /**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\n function constant(value) {\n return function() {\n return value;\n };\n }\n\n /**\n * Checks `value` to determine whether a default value should be returned in\n * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,\n * or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Util\n * @param {*} value The value to check.\n * @param {*} defaultValue The default value.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * _.defaultTo(1, 10);\n * // => 1\n *\n * _.defaultTo(undefined, 10);\n * // => 10\n */\n function defaultTo(value, defaultValue) {\n return (value == null || value !== value) ? defaultValue : value;\n }\n\n /**\n * Creates a function that returns the result of invoking the given functions\n * with the `this` binding of the created function, where each successive\n * invocation is supplied the return value of the previous.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Util\n * @param {...(Function|Function[])} [funcs] The functions to invoke.\n * @returns {Function} Returns the new composite function.\n * @see _.flowRight\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var addSquare = _.flow([_.add, square]);\n * addSquare(1, 2);\n * // => 9\n */\n var flow = createFlow();\n\n /**\n * This method is like `_.flow` except that it creates a function that\n * invokes the given functions from right to left.\n *\n * @static\n * @since 3.0.0\n * @memberOf _\n * @category Util\n * @param {...(Function|Function[])} [funcs] The functions to invoke.\n * @returns {Function} Returns the new composite function.\n * @see _.flow\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var addSquare = _.flowRight([square, _.add]);\n * addSquare(1, 2);\n * // => 9\n */\n var flowRight = createFlow(true);\n\n /**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\n function identity(value) {\n return value;\n }\n\n /**\n * Creates a function that invokes `func` with the arguments of the created\n * function. If `func` is a property name, the created function returns the\n * property value for a given element. If `func` is an array or object, the\n * created function returns `true` for elements that contain the equivalent\n * source properties, otherwise it returns `false`.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Util\n * @param {*} [func=_.identity] The value to convert to a callback.\n * @returns {Function} Returns the callback.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));\n * // => [{ 'user': 'barney', 'age': 36, 'active': true }]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, _.iteratee(['user', 'fred']));\n * // => [{ 'user': 'fred', 'age': 40 }]\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, _.iteratee('user'));\n * // => ['barney', 'fred']\n *\n * // Create custom iteratee shorthands.\n * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {\n * return !_.isRegExp(func) ? iteratee(func) : function(string) {\n * return func.test(string);\n * };\n * });\n *\n * _.filter(['abc', 'def'], /ef/);\n * // => ['def']\n */\n function iteratee(func) {\n return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));\n }\n\n /**\n * Creates a function that performs a partial deep comparison between a given\n * object and `source`, returning `true` if the given object has equivalent\n * property values, else `false`.\n *\n * **Note:** The created function is equivalent to `_.isMatch` with `source`\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * **Note:** Multiple values can be checked by combining several matchers\n * using `_.overSome`\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Util\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n * @example\n *\n * var objects = [\n * { 'a': 1, 'b': 2, 'c': 3 },\n * { 'a': 4, 'b': 5, 'c': 6 }\n * ];\n *\n * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));\n * // => [{ 'a': 4, 'b': 5, 'c': 6 }]\n *\n * // Checking for several possible values\n * _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));\n * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]\n */\n function matches(source) {\n return baseMatches(baseClone(source, CLONE_DEEP_FLAG));\n }\n\n /**\n * Creates a function that performs a partial deep comparison between the\n * value at `path` of a given object to `srcValue`, returning `true` if the\n * object value is equivalent, else `false`.\n *\n * **Note:** Partial comparisons will match empty array and empty object\n * `srcValue` values against any array or object value, respectively. See\n * `_.isEqual` for a list of supported value comparisons.\n *\n * **Note:** Multiple values can be checked by combining several matchers\n * using `_.overSome`\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n * @example\n *\n * var objects = [\n * { 'a': 1, 'b': 2, 'c': 3 },\n * { 'a': 4, 'b': 5, 'c': 6 }\n * ];\n *\n * _.find(objects, _.matchesProperty('a', 4));\n * // => { 'a': 4, 'b': 5, 'c': 6 }\n *\n * // Checking for several possible values\n * _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));\n * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]\n */\n function matchesProperty(path, srcValue) {\n return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));\n }\n\n /**\n * Creates a function that invokes the method at `path` of a given object.\n * Any additional arguments are provided to the invoked method.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Util\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {Function} Returns the new invoker function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': _.constant(2) } },\n * { 'a': { 'b': _.constant(1) } }\n * ];\n *\n * _.map(objects, _.method('a.b'));\n * // => [2, 1]\n *\n * _.map(objects, _.method(['a', 'b']));\n * // => [2, 1]\n */\n var method = baseRest(function(path, args) {\n return function(object) {\n return baseInvoke(object, path, args);\n };\n });\n\n /**\n * The opposite of `_.method`; this method creates a function that invokes\n * the method at a given path of `object`. Any additional arguments are\n * provided to the invoked method.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Util\n * @param {Object} object The object to query.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {Function} Returns the new invoker function.\n * @example\n *\n * var array = _.times(3, _.constant),\n * object = { 'a': array, 'b': array, 'c': array };\n *\n * _.map(['a[2]', 'c[0]'], _.methodOf(object));\n * // => [2, 0]\n *\n * _.map([['a', '2'], ['c', '0']], _.methodOf(object));\n * // => [2, 0]\n */\n var methodOf = baseRest(function(object, args) {\n return function(path) {\n return baseInvoke(object, path, args);\n };\n });\n\n /**\n * Adds all own enumerable string keyed function properties of a source\n * object to the destination object. If `object` is a function, then methods\n * are added to its prototype as well.\n *\n * **Note:** Use `_.runInContext` to create a pristine `lodash` function to\n * avoid conflicts caused by modifying the original.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {Function|Object} [object=lodash] The destination object.\n * @param {Object} source The object of functions to add.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.chain=true] Specify whether mixins are chainable.\n * @returns {Function|Object} Returns `object`.\n * @example\n *\n * function vowels(string) {\n * return _.filter(string, function(v) {\n * return /[aeiou]/i.test(v);\n * });\n * }\n *\n * _.mixin({ 'vowels': vowels });\n * _.vowels('fred');\n * // => ['e']\n *\n * _('fred').vowels().value();\n * // => ['e']\n *\n * _.mixin({ 'vowels': vowels }, { 'chain': false });\n * _('fred').vowels();\n * // => ['e']\n */\n function mixin(object, source, options) {\n var props = keys(source),\n methodNames = baseFunctions(source, props);\n\n if (options == null &&\n !(isObject(source) && (methodNames.length || !props.length))) {\n options = source;\n source = object;\n object = this;\n methodNames = baseFunctions(source, keys(source));\n }\n var chain = !(isObject(options) && 'chain' in options) || !!options.chain,\n isFunc = isFunction(object);\n\n arrayEach(methodNames, function(methodName) {\n var func = source[methodName];\n object[methodName] = func;\n if (isFunc) {\n object.prototype[methodName] = function() {\n var chainAll = this.__chain__;\n if (chain || chainAll) {\n var result = object(this.__wrapped__),\n actions = result.__actions__ = copyArray(this.__actions__);\n\n actions.push({ 'func': func, 'args': arguments, 'thisArg': object });\n result.__chain__ = chainAll;\n return result;\n }\n return func.apply(object, arrayPush([this.value()], arguments));\n };\n }\n });\n\n return object;\n }\n\n /**\n * Reverts the `_` variable to its previous value and returns a reference to\n * the `lodash` function.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @returns {Function} Returns the `lodash` function.\n * @example\n *\n * var lodash = _.noConflict();\n */\n function noConflict() {\n if (root._ === this) {\n root._ = oldDash;\n }\n return this;\n }\n\n /**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\n function noop() {\n // No operation performed.\n }\n\n /**\n * Creates a function that gets the argument at index `n`. If `n` is negative,\n * the nth argument from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {number} [n=0] The index of the argument to return.\n * @returns {Function} Returns the new pass-thru function.\n * @example\n *\n * var func = _.nthArg(1);\n * func('a', 'b', 'c', 'd');\n * // => 'b'\n *\n * var func = _.nthArg(-2);\n * func('a', 'b', 'c', 'd');\n * // => 'c'\n */\n function nthArg(n) {\n n = toInteger(n);\n return baseRest(function(args) {\n return baseNth(args, n);\n });\n }\n\n /**\n * Creates a function that invokes `iteratees` with the arguments it receives\n * and returns their results.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to invoke.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var func = _.over([Math.max, Math.min]);\n *\n * func(1, 2, 3, 4);\n * // => [4, 1]\n */\n var over = createOver(arrayMap);\n\n /**\n * Creates a function that checks if **all** of the `predicates` return\n * truthy when invoked with the arguments it receives.\n *\n * Following shorthands are possible for providing predicates.\n * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.\n * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {...(Function|Function[])} [predicates=[_.identity]]\n * The predicates to check.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var func = _.overEvery([Boolean, isFinite]);\n *\n * func('1');\n * // => true\n *\n * func(null);\n * // => false\n *\n * func(NaN);\n * // => false\n */\n var overEvery = createOver(arrayEvery);\n\n /**\n * Creates a function that checks if **any** of the `predicates` return\n * truthy when invoked with the arguments it receives.\n *\n * Following shorthands are possible for providing predicates.\n * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.\n * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {...(Function|Function[])} [predicates=[_.identity]]\n * The predicates to check.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var func = _.overSome([Boolean, isFinite]);\n *\n * func('1');\n * // => true\n *\n * func(null);\n * // => true\n *\n * func(NaN);\n * // => false\n *\n * var matchesFunc = _.overSome([{ 'a': 1 }, { 'a': 2 }])\n * var matchesPropertyFunc = _.overSome([['a', 1], ['a', 2]])\n */\n var overSome = createOver(arraySome);\n\n /**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\n function property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n }\n\n /**\n * The opposite of `_.property`; this method creates a function that returns\n * the value at a given path of `object`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Util\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var array = [0, 1, 2],\n * object = { 'a': array, 'b': array, 'c': array };\n *\n * _.map(['a[2]', 'c[0]'], _.propertyOf(object));\n * // => [2, 0]\n *\n * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));\n * // => [2, 0]\n */\n function propertyOf(object) {\n return function(path) {\n return object == null ? undefined : baseGet(object, path);\n };\n }\n\n /**\n * Creates an array of numbers (positive and/or negative) progressing from\n * `start` up to, but not including, `end`. A step of `-1` is used if a negative\n * `start` is specified without an `end` or `step`. If `end` is not specified,\n * it's set to `start` with `start` then set to `0`.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the range of numbers.\n * @see _.inRange, _.rangeRight\n * @example\n *\n * _.range(4);\n * // => [0, 1, 2, 3]\n *\n * _.range(-4);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 5);\n * // => [1, 2, 3, 4]\n *\n * _.range(0, 20, 5);\n * // => [0, 5, 10, 15]\n *\n * _.range(0, -4, -1);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.range(0);\n * // => []\n */\n var range = createRange();\n\n /**\n * This method is like `_.range` except that it populates values in\n * descending order.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the range of numbers.\n * @see _.inRange, _.range\n * @example\n *\n * _.rangeRight(4);\n * // => [3, 2, 1, 0]\n *\n * _.rangeRight(-4);\n * // => [-3, -2, -1, 0]\n *\n * _.rangeRight(1, 5);\n * // => [4, 3, 2, 1]\n *\n * _.rangeRight(0, 20, 5);\n * // => [15, 10, 5, 0]\n *\n * _.rangeRight(0, -4, -1);\n * // => [-3, -2, -1, 0]\n *\n * _.rangeRight(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.rangeRight(0);\n * // => []\n */\n var rangeRight = createRange(true);\n\n /**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\n function stubArray() {\n return [];\n }\n\n /**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\n function stubFalse() {\n return false;\n }\n\n /**\n * This method returns a new empty object.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Object} Returns the new empty object.\n * @example\n *\n * var objects = _.times(2, _.stubObject);\n *\n * console.log(objects);\n * // => [{}, {}]\n *\n * console.log(objects[0] === objects[1]);\n * // => false\n */\n function stubObject() {\n return {};\n }\n\n /**\n * This method returns an empty string.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {string} Returns the empty string.\n * @example\n *\n * _.times(2, _.stubString);\n * // => ['', '']\n */\n function stubString() {\n return '';\n }\n\n /**\n * This method returns `true`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `true`.\n * @example\n *\n * _.times(2, _.stubTrue);\n * // => [true, true]\n */\n function stubTrue() {\n return true;\n }\n\n /**\n * Invokes the iteratee `n` times, returning an array of the results of\n * each invocation. The iteratee is invoked with one argument; (index).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.times(3, String);\n * // => ['0', '1', '2']\n *\n * _.times(4, _.constant(0));\n * // => [0, 0, 0, 0]\n */\n function times(n, iteratee) {\n n = toInteger(n);\n if (n < 1 || n > MAX_SAFE_INTEGER) {\n return [];\n }\n var index = MAX_ARRAY_LENGTH,\n length = nativeMin(n, MAX_ARRAY_LENGTH);\n\n iteratee = getIteratee(iteratee);\n n -= MAX_ARRAY_LENGTH;\n\n var result = baseTimes(length, iteratee);\n while (++index < n) {\n iteratee(index);\n }\n return result;\n }\n\n /**\n * Converts `value` to a property path array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {*} value The value to convert.\n * @returns {Array} Returns the new property path array.\n * @example\n *\n * _.toPath('a.b.c');\n * // => ['a', 'b', 'c']\n *\n * _.toPath('a[0].b.c');\n * // => ['a', '0', 'b', 'c']\n */\n function toPath(value) {\n if (isArray(value)) {\n return arrayMap(value, toKey);\n }\n return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));\n }\n\n /**\n * Generates a unique ID. If `prefix` is given, the ID is appended to it.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {string} [prefix=''] The value to prefix the ID with.\n * @returns {string} Returns the unique ID.\n * @example\n *\n * _.uniqueId('contact_');\n * // => 'contact_104'\n *\n * _.uniqueId();\n * // => '105'\n */\n function uniqueId(prefix) {\n var id = ++idCounter;\n return toString(prefix) + id;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Adds two numbers.\n *\n * @static\n * @memberOf _\n * @since 3.4.0\n * @category Math\n * @param {number} augend The first number in an addition.\n * @param {number} addend The second number in an addition.\n * @returns {number} Returns the total.\n * @example\n *\n * _.add(6, 4);\n * // => 10\n */\n var add = createMathOperation(function(augend, addend) {\n return augend + addend;\n }, 0);\n\n /**\n * Computes `number` rounded up to `precision`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Math\n * @param {number} number The number to round up.\n * @param {number} [precision=0] The precision to round up to.\n * @returns {number} Returns the rounded up number.\n * @example\n *\n * _.ceil(4.006);\n * // => 5\n *\n * _.ceil(6.004, 2);\n * // => 6.01\n *\n * _.ceil(6040, -2);\n * // => 6100\n */\n var ceil = createRound('ceil');\n\n /**\n * Divide two numbers.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Math\n * @param {number} dividend The first number in a division.\n * @param {number} divisor The second number in a division.\n * @returns {number} Returns the quotient.\n * @example\n *\n * _.divide(6, 4);\n * // => 1.5\n */\n var divide = createMathOperation(function(dividend, divisor) {\n return dividend / divisor;\n }, 1);\n\n /**\n * Computes `number` rounded down to `precision`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Math\n * @param {number} number The number to round down.\n * @param {number} [precision=0] The precision to round down to.\n * @returns {number} Returns the rounded down number.\n * @example\n *\n * _.floor(4.006);\n * // => 4\n *\n * _.floor(0.046, 2);\n * // => 0.04\n *\n * _.floor(4060, -2);\n * // => 4000\n */\n var floor = createRound('floor');\n\n /**\n * Computes the maximum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * _.max([4, 2, 8, 6]);\n * // => 8\n *\n * _.max([]);\n * // => undefined\n */\n function max(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseGt)\n : undefined;\n }\n\n /**\n * This method is like `_.max` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * the value is ranked. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * var objects = [{ 'n': 1 }, { 'n': 2 }];\n *\n * _.maxBy(objects, function(o) { return o.n; });\n * // => { 'n': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.maxBy(objects, 'n');\n * // => { 'n': 2 }\n */\n function maxBy(array, iteratee) {\n return (array && array.length)\n ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)\n : undefined;\n }\n\n /**\n * Computes the mean of the values in `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {number} Returns the mean.\n * @example\n *\n * _.mean([4, 2, 8, 6]);\n * // => 5\n */\n function mean(array) {\n return baseMean(array, identity);\n }\n\n /**\n * This method is like `_.mean` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the value to be averaged.\n * The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the mean.\n * @example\n *\n * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];\n *\n * _.meanBy(objects, function(o) { return o.n; });\n * // => 5\n *\n * // The `_.property` iteratee shorthand.\n * _.meanBy(objects, 'n');\n * // => 5\n */\n function meanBy(array, iteratee) {\n return baseMean(array, getIteratee(iteratee, 2));\n }\n\n /**\n * Computes the minimum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * _.min([4, 2, 8, 6]);\n * // => 2\n *\n * _.min([]);\n * // => undefined\n */\n function min(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseLt)\n : undefined;\n }\n\n /**\n * This method is like `_.min` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * the value is ranked. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * var objects = [{ 'n': 1 }, { 'n': 2 }];\n *\n * _.minBy(objects, function(o) { return o.n; });\n * // => { 'n': 1 }\n *\n * // The `_.property` iteratee shorthand.\n * _.minBy(objects, 'n');\n * // => { 'n': 1 }\n */\n function minBy(array, iteratee) {\n return (array && array.length)\n ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)\n : undefined;\n }\n\n /**\n * Multiply two numbers.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Math\n * @param {number} multiplier The first number in a multiplication.\n * @param {number} multiplicand The second number in a multiplication.\n * @returns {number} Returns the product.\n * @example\n *\n * _.multiply(6, 4);\n * // => 24\n */\n var multiply = createMathOperation(function(multiplier, multiplicand) {\n return multiplier * multiplicand;\n }, 1);\n\n /**\n * Computes `number` rounded to `precision`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Math\n * @param {number} number The number to round.\n * @param {number} [precision=0] The precision to round to.\n * @returns {number} Returns the rounded number.\n * @example\n *\n * _.round(4.006);\n * // => 4\n *\n * _.round(4.006, 2);\n * // => 4.01\n *\n * _.round(4060, -2);\n * // => 4100\n */\n var round = createRound('round');\n\n /**\n * Subtract two numbers.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {number} minuend The first number in a subtraction.\n * @param {number} subtrahend The second number in a subtraction.\n * @returns {number} Returns the difference.\n * @example\n *\n * _.subtract(6, 4);\n * // => 2\n */\n var subtract = createMathOperation(function(minuend, subtrahend) {\n return minuend - subtrahend;\n }, 0);\n\n /**\n * Computes the sum of the values in `array`.\n *\n * @static\n * @memberOf _\n * @since 3.4.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {number} Returns the sum.\n * @example\n *\n * _.sum([4, 2, 8, 6]);\n * // => 20\n */\n function sum(array) {\n return (array && array.length)\n ? baseSum(array, identity)\n : 0;\n }\n\n /**\n * This method is like `_.sum` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the value to be summed.\n * The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the sum.\n * @example\n *\n * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];\n *\n * _.sumBy(objects, function(o) { return o.n; });\n * // => 20\n *\n * // The `_.property` iteratee shorthand.\n * _.sumBy(objects, 'n');\n * // => 20\n */\n function sumBy(array, iteratee) {\n return (array && array.length)\n ? baseSum(array, getIteratee(iteratee, 2))\n : 0;\n }\n\n /*------------------------------------------------------------------------*/\n\n // Add methods that return wrapped values in chain sequences.\n lodash.after = after;\n lodash.ary = ary;\n lodash.assign = assign;\n lodash.assignIn = assignIn;\n lodash.assignInWith = assignInWith;\n lodash.assignWith = assignWith;\n lodash.at = at;\n lodash.before = before;\n lodash.bind = bind;\n lodash.bindAll = bindAll;\n lodash.bindKey = bindKey;\n lodash.castArray = castArray;\n lodash.chain = chain;\n lodash.chunk = chunk;\n lodash.compact = compact;\n lodash.concat = concat;\n lodash.cond = cond;\n lodash.conforms = conforms;\n lodash.constant = constant;\n lodash.countBy = countBy;\n lodash.create = create;\n lodash.curry = curry;\n lodash.curryRight = curryRight;\n lodash.debounce = debounce;\n lodash.defaults = defaults;\n lodash.defaultsDeep = defaultsDeep;\n lodash.defer = defer;\n lodash.delay = delay;\n lodash.difference = difference;\n lodash.differenceBy = differenceBy;\n lodash.differenceWith = differenceWith;\n lodash.drop = drop;\n lodash.dropRight = dropRight;\n lodash.dropRightWhile = dropRightWhile;\n lodash.dropWhile = dropWhile;\n lodash.fill = fill;\n lodash.filter = filter;\n lodash.flatMap = flatMap;\n lodash.flatMapDeep = flatMapDeep;\n lodash.flatMapDepth = flatMapDepth;\n lodash.flatten = flatten;\n lodash.flattenDeep = flattenDeep;\n lodash.flattenDepth = flattenDepth;\n lodash.flip = flip;\n lodash.flow = flow;\n lodash.flowRight = flowRight;\n lodash.fromPairs = fromPairs;\n lodash.functions = functions;\n lodash.functionsIn = functionsIn;\n lodash.groupBy = groupBy;\n lodash.initial = initial;\n lodash.intersection = intersection;\n lodash.intersectionBy = intersectionBy;\n lodash.intersectionWith = intersectionWith;\n lodash.invert = invert;\n lodash.invertBy = invertBy;\n lodash.invokeMap = invokeMap;\n lodash.iteratee = iteratee;\n lodash.keyBy = keyBy;\n lodash.keys = keys;\n lodash.keysIn = keysIn;\n lodash.map = map;\n lodash.mapKeys = mapKeys;\n lodash.mapValues = mapValues;\n lodash.matches = matches;\n lodash.matchesProperty = matchesProperty;\n lodash.memoize = memoize;\n lodash.merge = merge;\n lodash.mergeWith = mergeWith;\n lodash.method = method;\n lodash.methodOf = methodOf;\n lodash.mixin = mixin;\n lodash.negate = negate;\n lodash.nthArg = nthArg;\n lodash.omit = omit;\n lodash.omitBy = omitBy;\n lodash.once = once;\n lodash.orderBy = orderBy;\n lodash.over = over;\n lodash.overArgs = overArgs;\n lodash.overEvery = overEvery;\n lodash.overSome = overSome;\n lodash.partial = partial;\n lodash.partialRight = partialRight;\n lodash.partition = partition;\n lodash.pick = pick;\n lodash.pickBy = pickBy;\n lodash.property = property;\n lodash.propertyOf = propertyOf;\n lodash.pull = pull;\n lodash.pullAll = pullAll;\n lodash.pullAllBy = pullAllBy;\n lodash.pullAllWith = pullAllWith;\n lodash.pullAt = pullAt;\n lodash.range = range;\n lodash.rangeRight = rangeRight;\n lodash.rearg = rearg;\n lodash.reject = reject;\n lodash.remove = remove;\n lodash.rest = rest;\n lodash.reverse = reverse;\n lodash.sampleSize = sampleSize;\n lodash.set = set;\n lodash.setWith = setWith;\n lodash.shuffle = shuffle;\n lodash.slice = slice;\n lodash.sortBy = sortBy;\n lodash.sortedUniq = sortedUniq;\n lodash.sortedUniqBy = sortedUniqBy;\n lodash.split = split;\n lodash.spread = spread;\n lodash.tail = tail;\n lodash.take = take;\n lodash.takeRight = takeRight;\n lodash.takeRightWhile = takeRightWhile;\n lodash.takeWhile = takeWhile;\n lodash.tap = tap;\n lodash.throttle = throttle;\n lodash.thru = thru;\n lodash.toArray = toArray;\n lodash.toPairs = toPairs;\n lodash.toPairsIn = toPairsIn;\n lodash.toPath = toPath;\n lodash.toPlainObject = toPlainObject;\n lodash.transform = transform;\n lodash.unary = unary;\n lodash.union = union;\n lodash.unionBy = unionBy;\n lodash.unionWith = unionWith;\n lodash.uniq = uniq;\n lodash.uniqBy = uniqBy;\n lodash.uniqWith = uniqWith;\n lodash.unset = unset;\n lodash.unzip = unzip;\n lodash.unzipWith = unzipWith;\n lodash.update = update;\n lodash.updateWith = updateWith;\n lodash.values = values;\n lodash.valuesIn = valuesIn;\n lodash.without = without;\n lodash.words = words;\n lodash.wrap = wrap;\n lodash.xor = xor;\n lodash.xorBy = xorBy;\n lodash.xorWith = xorWith;\n lodash.zip = zip;\n lodash.zipObject = zipObject;\n lodash.zipObjectDeep = zipObjectDeep;\n lodash.zipWith = zipWith;\n\n // Add aliases.\n lodash.entries = toPairs;\n lodash.entriesIn = toPairsIn;\n lodash.extend = assignIn;\n lodash.extendWith = assignInWith;\n\n // Add methods to `lodash.prototype`.\n mixin(lodash, lodash);\n\n /*------------------------------------------------------------------------*/\n\n // Add methods that return unwrapped values in chain sequences.\n lodash.add = add;\n lodash.attempt = attempt;\n lodash.camelCase = camelCase;\n lodash.capitalize = capitalize;\n lodash.ceil = ceil;\n lodash.clamp = clamp;\n lodash.clone = clone;\n lodash.cloneDeep = cloneDeep;\n lodash.cloneDeepWith = cloneDeepWith;\n lodash.cloneWith = cloneWith;\n lodash.conformsTo = conformsTo;\n lodash.deburr = deburr;\n lodash.defaultTo = defaultTo;\n lodash.divide = divide;\n lodash.endsWith = endsWith;\n lodash.eq = eq;\n lodash.escape = escape;\n lodash.escapeRegExp = escapeRegExp;\n lodash.every = every;\n lodash.find = find;\n lodash.findIndex = findIndex;\n lodash.findKey = findKey;\n lodash.findLast = findLast;\n lodash.findLastIndex = findLastIndex;\n lodash.findLastKey = findLastKey;\n lodash.floor = floor;\n lodash.forEach = forEach;\n lodash.forEachRight = forEachRight;\n lodash.forIn = forIn;\n lodash.forInRight = forInRight;\n lodash.forOwn = forOwn;\n lodash.forOwnRight = forOwnRight;\n lodash.get = get;\n lodash.gt = gt;\n lodash.gte = gte;\n lodash.has = has;\n lodash.hasIn = hasIn;\n lodash.head = head;\n lodash.identity = identity;\n lodash.includes = includes;\n lodash.indexOf = indexOf;\n lodash.inRange = inRange;\n lodash.invoke = invoke;\n lodash.isArguments = isArguments;\n lodash.isArray = isArray;\n lodash.isArrayBuffer = isArrayBuffer;\n lodash.isArrayLike = isArrayLike;\n lodash.isArrayLikeObject = isArrayLikeObject;\n lodash.isBoolean = isBoolean;\n lodash.isBuffer = isBuffer;\n lodash.isDate = isDate;\n lodash.isElement = isElement;\n lodash.isEmpty = isEmpty;\n lodash.isEqual = isEqual;\n lodash.isEqualWith = isEqualWith;\n lodash.isError = isError;\n lodash.isFinite = isFinite;\n lodash.isFunction = isFunction;\n lodash.isInteger = isInteger;\n lodash.isLength = isLength;\n lodash.isMap = isMap;\n lodash.isMatch = isMatch;\n lodash.isMatchWith = isMatchWith;\n lodash.isNaN = isNaN;\n lodash.isNative = isNative;\n lodash.isNil = isNil;\n lodash.isNull = isNull;\n lodash.isNumber = isNumber;\n lodash.isObject = isObject;\n lodash.isObjectLike = isObjectLike;\n lodash.isPlainObject = isPlainObject;\n lodash.isRegExp = isRegExp;\n lodash.isSafeInteger = isSafeInteger;\n lodash.isSet = isSet;\n lodash.isString = isString;\n lodash.isSymbol = isSymbol;\n lodash.isTypedArray = isTypedArray;\n lodash.isUndefined = isUndefined;\n lodash.isWeakMap = isWeakMap;\n lodash.isWeakSet = isWeakSet;\n lodash.join = join;\n lodash.kebabCase = kebabCase;\n lodash.last = last;\n lodash.lastIndexOf = lastIndexOf;\n lodash.lowerCase = lowerCase;\n lodash.lowerFirst = lowerFirst;\n lodash.lt = lt;\n lodash.lte = lte;\n lodash.max = max;\n lodash.maxBy = maxBy;\n lodash.mean = mean;\n lodash.meanBy = meanBy;\n lodash.min = min;\n lodash.minBy = minBy;\n lodash.stubArray = stubArray;\n lodash.stubFalse = stubFalse;\n lodash.stubObject = stubObject;\n lodash.stubString = stubString;\n lodash.stubTrue = stubTrue;\n lodash.multiply = multiply;\n lodash.nth = nth;\n lodash.noConflict = noConflict;\n lodash.noop = noop;\n lodash.now = now;\n lodash.pad = pad;\n lodash.padEnd = padEnd;\n lodash.padStart = padStart;\n lodash.parseInt = parseInt;\n lodash.random = random;\n lodash.reduce = reduce;\n lodash.reduceRight = reduceRight;\n lodash.repeat = repeat;\n lodash.replace = replace;\n lodash.result = result;\n lodash.round = round;\n lodash.runInContext = runInContext;\n lodash.sample = sample;\n lodash.size = size;\n lodash.snakeCase = snakeCase;\n lodash.some = some;\n lodash.sortedIndex = sortedIndex;\n lodash.sortedIndexBy = sortedIndexBy;\n lodash.sortedIndexOf = sortedIndexOf;\n lodash.sortedLastIndex = sortedLastIndex;\n lodash.sortedLastIndexBy = sortedLastIndexBy;\n lodash.sortedLastIndexOf = sortedLastIndexOf;\n lodash.startCase = startCase;\n lodash.startsWith = startsWith;\n lodash.subtract = subtract;\n lodash.sum = sum;\n lodash.sumBy = sumBy;\n lodash.template = template;\n lodash.times = times;\n lodash.toFinite = toFinite;\n lodash.toInteger = toInteger;\n lodash.toLength = toLength;\n lodash.toLower = toLower;\n lodash.toNumber = toNumber;\n lodash.toSafeInteger = toSafeInteger;\n lodash.toString = toString;\n lodash.toUpper = toUpper;\n lodash.trim = trim;\n lodash.trimEnd = trimEnd;\n lodash.trimStart = trimStart;\n lodash.truncate = truncate;\n lodash.unescape = unescape;\n lodash.uniqueId = uniqueId;\n lodash.upperCase = upperCase;\n lodash.upperFirst = upperFirst;\n\n // Add aliases.\n lodash.each = forEach;\n lodash.eachRight = forEachRight;\n lodash.first = head;\n\n mixin(lodash, (function() {\n var source = {};\n baseForOwn(lodash, function(func, methodName) {\n if (!hasOwnProperty.call(lodash.prototype, methodName)) {\n source[methodName] = func;\n }\n });\n return source;\n }()), { 'chain': false });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The semantic version number.\n *\n * @static\n * @memberOf _\n * @type {string}\n */\n lodash.VERSION = VERSION;\n\n // Assign default placeholders.\n arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {\n lodash[methodName].placeholder = lodash;\n });\n\n // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.\n arrayEach(['drop', 'take'], function(methodName, index) {\n LazyWrapper.prototype[methodName] = function(n) {\n n = n === undefined ? 1 : nativeMax(toInteger(n), 0);\n\n var result = (this.__filtered__ && !index)\n ? new LazyWrapper(this)\n : this.clone();\n\n if (result.__filtered__) {\n result.__takeCount__ = nativeMin(n, result.__takeCount__);\n } else {\n result.__views__.push({\n 'size': nativeMin(n, MAX_ARRAY_LENGTH),\n 'type': methodName + (result.__dir__ < 0 ? 'Right' : '')\n });\n }\n return result;\n };\n\n LazyWrapper.prototype[methodName + 'Right'] = function(n) {\n return this.reverse()[methodName](n).reverse();\n };\n });\n\n // Add `LazyWrapper` methods that accept an `iteratee` value.\n arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {\n var type = index + 1,\n isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;\n\n LazyWrapper.prototype[methodName] = function(iteratee) {\n var result = this.clone();\n result.__iteratees__.push({\n 'iteratee': getIteratee(iteratee, 3),\n 'type': type\n });\n result.__filtered__ = result.__filtered__ || isFilter;\n return result;\n };\n });\n\n // Add `LazyWrapper` methods for `_.head` and `_.last`.\n arrayEach(['head', 'last'], function(methodName, index) {\n var takeName = 'take' + (index ? 'Right' : '');\n\n LazyWrapper.prototype[methodName] = function() {\n return this[takeName](1).value()[0];\n };\n });\n\n // Add `LazyWrapper` methods for `_.initial` and `_.tail`.\n arrayEach(['initial', 'tail'], function(methodName, index) {\n var dropName = 'drop' + (index ? '' : 'Right');\n\n LazyWrapper.prototype[methodName] = function() {\n return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);\n };\n });\n\n LazyWrapper.prototype.compact = function() {\n return this.filter(identity);\n };\n\n LazyWrapper.prototype.find = function(predicate) {\n return this.filter(predicate).head();\n };\n\n LazyWrapper.prototype.findLast = function(predicate) {\n return this.reverse().find(predicate);\n };\n\n LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {\n if (typeof path == 'function') {\n return new LazyWrapper(this);\n }\n return this.map(function(value) {\n return baseInvoke(value, path, args);\n });\n });\n\n LazyWrapper.prototype.reject = function(predicate) {\n return this.filter(negate(getIteratee(predicate)));\n };\n\n LazyWrapper.prototype.slice = function(start, end) {\n start = toInteger(start);\n\n var result = this;\n if (result.__filtered__ && (start > 0 || end < 0)) {\n return new LazyWrapper(result);\n }\n if (start < 0) {\n result = result.takeRight(-start);\n } else if (start) {\n result = result.drop(start);\n }\n if (end !== undefined) {\n end = toInteger(end);\n result = end < 0 ? result.dropRight(-end) : result.take(end - start);\n }\n return result;\n };\n\n LazyWrapper.prototype.takeRightWhile = function(predicate) {\n return this.reverse().takeWhile(predicate).reverse();\n };\n\n LazyWrapper.prototype.toArray = function() {\n return this.take(MAX_ARRAY_LENGTH);\n };\n\n // Add `LazyWrapper` methods to `lodash.prototype`.\n baseForOwn(LazyWrapper.prototype, function(func, methodName) {\n var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),\n isTaker = /^(?:head|last)$/.test(methodName),\n lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],\n retUnwrapped = isTaker || /^find/.test(methodName);\n\n if (!lodashFunc) {\n return;\n }\n lodash.prototype[methodName] = function() {\n var value = this.__wrapped__,\n args = isTaker ? [1] : arguments,\n isLazy = value instanceof LazyWrapper,\n iteratee = args[0],\n useLazy = isLazy || isArray(value);\n\n var interceptor = function(value) {\n var result = lodashFunc.apply(lodash, arrayPush([value], args));\n return (isTaker && chainAll) ? result[0] : result;\n };\n\n if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {\n // Avoid lazy use if the iteratee has a \"length\" value other than `1`.\n isLazy = useLazy = false;\n }\n var chainAll = this.__chain__,\n isHybrid = !!this.__actions__.length,\n isUnwrapped = retUnwrapped && !chainAll,\n onlyLazy = isLazy && !isHybrid;\n\n if (!retUnwrapped && useLazy) {\n value = onlyLazy ? value : new LazyWrapper(this);\n var result = func.apply(value, args);\n result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });\n return new LodashWrapper(result, chainAll);\n }\n if (isUnwrapped && onlyLazy) {\n return func.apply(this, args);\n }\n result = this.thru(interceptor);\n return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;\n };\n });\n\n // Add `Array` methods to `lodash.prototype`.\n arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {\n var func = arrayProto[methodName],\n chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',\n retUnwrapped = /^(?:pop|shift)$/.test(methodName);\n\n lodash.prototype[methodName] = function() {\n var args = arguments;\n if (retUnwrapped && !this.__chain__) {\n var value = this.value();\n return func.apply(isArray(value) ? value : [], args);\n }\n return this[chainName](function(value) {\n return func.apply(isArray(value) ? value : [], args);\n });\n };\n });\n\n // Map minified method names to their real names.\n baseForOwn(LazyWrapper.prototype, function(func, methodName) {\n var lodashFunc = lodash[methodName];\n if (lodashFunc) {\n var key = lodashFunc.name + '';\n if (!hasOwnProperty.call(realNames, key)) {\n realNames[key] = [];\n }\n realNames[key].push({ 'name': methodName, 'func': lodashFunc });\n }\n });\n\n realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{\n 'name': 'wrapper',\n 'func': undefined\n }];\n\n // Add methods to `LazyWrapper`.\n LazyWrapper.prototype.clone = lazyClone;\n LazyWrapper.prototype.reverse = lazyReverse;\n LazyWrapper.prototype.value = lazyValue;\n\n // Add chain sequence methods to the `lodash` wrapper.\n lodash.prototype.at = wrapperAt;\n lodash.prototype.chain = wrapperChain;\n lodash.prototype.commit = wrapperCommit;\n lodash.prototype.next = wrapperNext;\n lodash.prototype.plant = wrapperPlant;\n lodash.prototype.reverse = wrapperReverse;\n lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;\n\n // Add lazy aliases.\n lodash.prototype.first = lodash.prototype.head;\n\n if (symIterator) {\n lodash.prototype[symIterator] = wrapperToIterator;\n }\n return lodash;\n });\n\n /*--------------------------------------------------------------------------*/\n\n // Export lodash.\n var _ = runInContext();\n\n // Some AMD build optimizers, like r.js, check for condition patterns like:\n if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {\n // Expose Lodash on the global object to prevent errors when Lodash is\n // loaded by a script tag in the presence of an AMD loader.\n // See http://requirejs.org/docs/errors.html#mismatch for more details.\n // Use `_.noConflict` to remove Lodash from the global object.\n root._ = _;\n\n // Define as an anonymous module so, through path mapping, it can be\n // referenced as the \"underscore\" module.\n define(function() {\n return _;\n });\n }\n // Check for `exports` after `define` in case a build optimizer adds it.\n else if (freeModule) {\n // Export for Node.js.\n (freeModule.exports = _)._ = _;\n // Export for CommonJS support.\n freeExports._ = _;\n }\n else {\n // Export to the global object.\n root._ = _;\n }\n}.call(this));\n","import axios from 'axios';\nimport { Ingredient } from \"components/Nutrition/models/Ingredient\";\nimport { memoize } from \"lodash\";\nimport { ApiIngredientType } from 'types';\nimport { API_RESULTS_PAGE_SIZE, ApiPath, LANGUAGE_SHORT_ENGLISH } from \"utils/consts\";\nimport { fetchPaginated } from \"utils/requests\";\nimport { makeHeader, makeUrl } from \"utils/url\";\n\n\n/*\n * Memoized version of getIngredient. This caches results in memory for the duration\n * of the app session, which avoids multiple requests for the same ingredient.\n */\nexport const getIngredient = memoize(async (id: number): Promise<Ingredient> => {\n const { data: receivedIngredient } = await axios.get<ApiIngredientType>(\n makeUrl(ApiPath.INGREDIENTINFO_PATH, { id: id }),\n { headers: makeHeader() },\n );\n\n return Ingredient.fromJson(receivedIngredient);\n});\n\nexport const getIngredients = async (ids: number[]): Promise<Ingredient[]> => {\n\n // If IDs is an empty list, return. Otherwise, the resulting empty id__in will\n // cause the API to not filter at all\n if (ids.length === 0) {\n return [];\n }\n\n // eslint-disable-next-line camelcase\n const url = makeUrl(ApiPath.INGREDIENTINFO_PATH, { query: { id__in: ids.join(',') } });\n const out: Ingredient[] = [];\n\n // Collect all the ingredients\n for await (const page of fetchPaginated(url, makeHeader())) {\n for (const logData of page) {\n out.push(Ingredient.fromJson(logData));\n }\n }\n\n return out;\n};\n\n\nexport const searchIngredient = async (name: string, languageCode: string, searchEnglish: boolean = true): Promise<Ingredient[]> => {\n // TODO: this currently only converts the results from the new API to the old format\n // but this should be properly converted.\n // See also https://github.com/wger-project/wger/pull/1724\n\n\n const languages = [languageCode];\n if (languageCode !== LANGUAGE_SHORT_ENGLISH && searchEnglish) {\n languages.push(LANGUAGE_SHORT_ENGLISH);\n }\n\n const url = makeUrl(\n ApiPath.INGREDIENTINFO_PATH,\n {\n query: {\n 'name__search': name,\n 'language__code': languages.join(','),\n 'limit': API_RESULTS_PAGE_SIZE,\n }\n }\n );\n\n const { data } = await axios.get(url);\n return data.results.map((entry: ApiIngredientType) => Ingredient.fromJson(entry));\n};","import { NutritionalValues } from \"components/Nutrition/helpers/nutritionalValues\";\nimport { Ingredient } from \"components/Nutrition/models/Ingredient\";\nimport { NutritionWeightUnit } from \"components/Nutrition/models/weightUnit\";\nimport { Adapter } from \"utils/Adapter\";\n\nexport interface ApiNutritionDiaryType {\n id: number,\n plan: number,\n meal: number | null,\n ingredient: number,\n weight_unit: number,\n datetime: Date,\n amount: string\n}\n\nexport type DiaryEntryConstructorParams = {\n id?: number;\n planId: number;\n mealId?: number | null;\n ingredientId: number;\n weightUnitId?: number | null;\n amount: number;\n datetime: Date;\n ingredient?: Ingredient | null;\n weightUnit?: NutritionWeightUnit | null;\n};\n\nexport class DiaryEntry {\n\n public id?: number | null;\n public planId: number;\n public mealId: number | null;\n public amount: number;\n public datetime: Date;\n\n public ingredientId: number;\n public ingredient: Ingredient | null = null;\n public weightUnitId: number | null;\n public weightUnit: NutritionWeightUnit | null = null;\n\n\n constructor(params: DiaryEntryConstructorParams) {\n this.id = params.id ?? null;\n this.planId = params.planId;\n this.mealId = params.mealId ?? null;\n this.amount = params.amount;\n this.datetime = params.datetime;\n\n this.ingredientId = params.ingredientId;\n if (params.ingredient) {\n this.ingredient = params.ingredient;\n this.ingredientId = params.ingredient.id;\n }\n\n this.weightUnitId = params.weightUnitId ?? null;\n if (params.weightUnit) {\n this.weightUnit = params.weightUnit;\n this.weightUnitId = params.weightUnit.id;\n }\n }\n\n get amountString(): string {\n return this.amount.toFixed().toString() + (this.weightUnitId !== null ? ` ${this.weightUnit?.name}` : 'g');\n }\n\n get nutritionalValues() {\n if (this.ingredient) {\n return NutritionalValues.fromIngredient(this.ingredient, this.amount, this.weightUnit);\n }\n console.log('Diary entry has no ingredient, returning empty NutritionalValues object');\n return new NutritionalValues();\n }\n\n static clone(other: DiaryEntry, overrides?: Partial<DiaryEntryConstructorParams>): DiaryEntry {\n const ingredient = overrides?.ingredient ?? other.ingredient;\n const weightUnit = overrides?.weightUnit ?? other.weightUnit;\n\n return new DiaryEntry({\n id: overrides?.id ?? (other.id ?? undefined),\n planId: overrides?.planId ?? other.planId,\n mealId: overrides?.mealId ?? other.mealId,\n amount: overrides?.amount ?? other.amount,\n datetime: overrides?.datetime ?? other.datetime,\n ingredientId: ingredient ? ingredient.id : (overrides?.ingredientId ?? other.ingredientId),\n ingredient,\n weightUnitId: weightUnit ? weightUnit.id : (overrides?.weightUnitId ?? other.weightUnitId),\n weightUnit,\n });\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static fromJson(json: any): DiaryEntry {\n return adapter.fromJson(json);\n }\n\n toJson() {\n return adapter.toJson(this);\n }\n}\n\nclass DiaryEntryAdapter implements Adapter<DiaryEntry> {\n fromJson(item: ApiNutritionDiaryType) {\n return new DiaryEntry({\n id: item.id,\n planId: item.plan,\n mealId: item.meal,\n ingredientId: item.ingredient,\n weightUnitId: item.weight_unit,\n amount: parseFloat(item.amount),\n datetime: new Date(item.datetime),\n });\n }\n\n toJson(item: DiaryEntry) {\n return {\n plan: item.planId,\n meal: item.mealId,\n ingredient: item.ingredientId,\n\n // eslint-disable-next-line camelcase\n weight_unit: item.weightUnitId,\n amount: item.amount.toString(),\n datetime: item.datetime.toISOString(),\n };\n }\n}\n\n\nconst adapter = new DiaryEntryAdapter();","import { NutritionalValues } from \"components/Nutrition/helpers/nutritionalValues\";\nimport { DiaryEntry } from \"components/Nutrition/models/diaryEntry\";\nimport { Ingredient } from \"components/Nutrition/models/Ingredient\";\nimport { NutritionWeightUnit } from \"components/Nutrition/models/weightUnit\";\nimport { Adapter } from \"utils/Adapter\";\n\nexport interface ApiMealItemType {\n id: number,\n meal: number,\n ingredient: number,\n weight_unit: number,\n order: number,\n amount: string\n}\n\nexport type MealItemConstructorParams = {\n id?: number;\n mealId: number;\n amount: number;\n order: number;\n\n ingredientId: number;\n ingredient?: Ingredient | null;\n\n weightUnitId?: number | null;\n weightUnit?: NutritionWeightUnit | null;\n};\n\nexport class MealItem {\n public id?: number | null;\n public mealId: number;\n public ingredientId: number;\n public weightUnitId: number | null;\n public amount: number;\n public order: number;\n public ingredient: Ingredient | null = null;\n public weightUnit: NutritionWeightUnit | null = null;\n\n constructor(params: MealItemConstructorParams) {\n this.id = params.id || null;\n this.mealId = params.mealId;\n this.amount = params.amount;\n this.order = params.order;\n\n this.ingredientId = params.ingredientId;\n this.weightUnitId = params.weightUnitId ?? null;\n if (params.ingredient) {\n this.ingredient = params.ingredient;\n this.ingredientId = params.ingredient.id;\n }\n if (params.weightUnit) {\n this.weightUnit = params.weightUnit;\n this.weightUnitId = params.weightUnit.id;\n }\n }\n\n get amountString(): string {\n return this.amount.toFixed().toString() + (this.weightUnitId !== null ? ` ${this.weightUnit?.name}` : 'g');\n }\n\n get nutritionalValues() {\n if (this.ingredient) {\n return NutritionalValues.fromIngredient(this.ingredient, this.amount, this.weightUnit);\n }\n return new NutritionalValues();\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static fromJson(json: any): MealItem {\n return adapter.fromJson(json);\n }\n\n static clone(other: MealItem, overrides?: Partial<MealItemConstructorParams>): MealItem {\n const ingredient = overrides?.ingredient ?? other.ingredient;\n const weightUnit = overrides?.weightUnit ?? other.weightUnit;\n\n return new MealItem({\n id: overrides?.id ?? (other.id ?? undefined),\n mealId: overrides?.mealId ?? other.mealId,\n amount: overrides?.amount ?? other.amount,\n order: overrides?.order ?? other.order,\n ingredientId: ingredient ? ingredient.id : (overrides?.ingredientId ?? other.ingredientId),\n ingredient,\n weightUnitId: weightUnit ? weightUnit.id : (overrides?.weightUnitId ?? other.weightUnitId),\n weightUnit,\n });\n }\n\n diaryEntry(planId: number, date?: Date): DiaryEntry {\n return new DiaryEntry({\n mealId: this.mealId,\n planId: planId,\n amount: this.amount,\n datetime: date || new Date(),\n ingredient: this.ingredient,\n ingredientId: this.ingredientId,\n weightUnitId: this.weightUnitId,\n weightUnit: this.weightUnit,\n });\n }\n\n toJson() {\n return adapter.toJson(this);\n }\n}\n\n\nclass MealItemAdapter implements Adapter<MealItem> {\n fromJson(item: ApiMealItemType) {\n return new MealItem({\n id: item.id,\n mealId: item.meal,\n ingredientId: item.ingredient,\n weightUnitId: item.weight_unit,\n amount: parseFloat(item.amount),\n order: item.order,\n });\n }\n\n toJson(item: MealItem) {\n return {\n ...(item.id != null ? { id: item.id } : {}),\n meal: item.mealId,\n ingredient: item.ingredientId,\n\n // eslint-disable-next-line camelcase\n weight_unit: item.weightUnitId,\n amount: item.amount.toString(),\n order: item.order,\n };\n }\n}\n\nconst adapter = new MealItemAdapter();","import axios from 'axios';\nimport { MealItem } from \"components/Nutrition/models/mealItem\";\nimport { ApiPath } from \"utils/consts\";\nimport { makeHeader, makeUrl } from \"utils/url\";\n\n\nexport const addMealItem = async (data: MealItem): Promise<MealItem> => {\n const response = await axios.post(\n makeUrl(ApiPath.MEAL_ITEM),\n data.toJson(),\n { headers: makeHeader() }\n );\n\n return MealItem.fromJson(response.data);\n};\n\nexport const editMealItem = async (mealItem: MealItem): Promise<MealItem> => {\n const response = await axios.patch(\n makeUrl(ApiPath.MEAL_ITEM, { id: mealItem.id! }),\n mealItem.toJson(),\n { headers: makeHeader() }\n );\n\n return MealItem.fromJson(response.data);\n};\n\nexport const deleteMealItem = async (id: number): Promise<void> => {\n await axios.delete(\n makeUrl(ApiPath.MEAL_ITEM, { id: id }),\n { headers: makeHeader() },\n );\n};\n","import { ApiIngredientWeightUnitType } from \"types\";\nimport { Adapter } from \"utils/Adapter\";\n\nexport class NutritionWeightUnit {\n\n constructor(\n public id: number,\n public amount: number,\n public grams: number,\n public name: string = ''\n ) {\n }\n}\n\n\nexport class NutritionWeightUnitAdapter implements Adapter<NutritionWeightUnit> {\n fromJson(item: ApiIngredientWeightUnitType) {\n return new NutritionWeightUnit(\n item.id,\n parseFloat(item.amount),\n item.gram,\n );\n }\n}","import axios from 'axios';\nimport { NutritionWeightUnit, NutritionWeightUnitAdapter } from \"components/Nutrition/models/weightUnit\";\nimport { ApiIngredientWeightUnitType } from 'types';\nimport { ApiPath } from \"utils/consts\";\nimport { makeHeader, makeUrl } from \"utils/url\";\nimport { ResponseType } from \"./responseType\";\n\n\nexport const getWeightUnit = async (unitId: number | null): Promise<NutritionWeightUnit | null> => {\n if (unitId === null) {\n return null;\n }\n\n const { data: receivedUnit } = await axios.get<ApiIngredientWeightUnitType>(\n makeUrl(ApiPath.INGREDIENT_WEIGHT_UNIT, { id: unitId }),\n { headers: makeHeader() }\n );\n return new NutritionWeightUnitAdapter().fromJson(receivedUnit);\n};\n\nexport const getWeightUnits = async (ingredientId: number): Promise<NutritionWeightUnit[]> => {\n const { data: receivedUnits } = await axios.get<ResponseType<ApiIngredientWeightUnitType>>(\n makeUrl(ApiPath.INGREDIENT_WEIGHT_UNIT, { query: { ingredient: ingredientId } }),\n { headers: makeHeader() }\n );\n const adapter = new NutritionWeightUnitAdapter();\n return receivedUnits.results.map(weight => adapter.fromJson(weight));\n};\n\n","import axios from 'axios';\nimport { ApiMealType, Meal } from \"components/Nutrition/models/meal\";\nimport { ApiMealItemType, MealItem } from \"components/Nutrition/models/mealItem\";\nimport { getIngredients } from \"services/ingredient\";\nimport { getWeightUnit } from \"services/ingredientweightunit\";\nimport { ResponseType } from \"services/responseType\";\nimport { ApiPath } from \"utils/consts\";\nimport { makeHeader, makeUrl } from \"utils/url\";\n\n\nexport const addMeal = async (meal: Meal): Promise<Meal> => {\n const response = await axios.post(\n makeUrl(ApiPath.MEAL),\n meal.toJson(),\n { headers: makeHeader() }\n );\n\n return Meal.fromJson(response.data);\n};\n\nexport const editMeal = async (meal: Meal): Promise<Meal> => {\n const response = await axios.patch(\n makeUrl(ApiPath.MEAL, { id: meal.id! }),\n meal.toJson(),\n { headers: makeHeader() }\n );\n\n return Meal.fromJson(response.data);\n};\n\nexport const deleteMeal = async (id: number): Promise<void> => {\n await axios.delete(\n makeUrl(ApiPath.MEAL, { id: id }),\n { headers: makeHeader() },\n );\n};\n\nexport const getMealsForPlan = async (planId: number): Promise<Meal[]> => {\n\n let ingredientIds: number[] = [];\n const { data: receivedMeals } = await axios.get<ResponseType<ApiMealType>>(\n makeUrl(ApiPath.MEAL, { query: { plan: planId } }),\n { headers: makeHeader() },\n );\n const meals = receivedMeals.results.map((meal) => Meal.fromJson(meal));\n for (const meal of meals) {\n ingredientIds = [];\n\n const { data: receivedMealItems } = await axios.get<ResponseType<ApiMealItemType>>(\n makeUrl(ApiPath.MEAL_ITEM, { query: { meal: meal.id } }),\n { headers: makeHeader() },\n );\n const items = receivedMealItems.results.map((item) => MealItem.fromJson(item));\n\n for (const item of items) {\n ingredientIds.push(item.ingredientId);\n }\n const ingredients = await getIngredients(ingredientIds);\n\n for (const item of items) {\n item.weightUnit = await getWeightUnit(item.weightUnitId);\n item.ingredient = ingredients.find((ingredient) => ingredient.id === item.ingredientId)!;\n }\n meal.items = items;\n }\n return meals;\n};\n","import axios from \"axios\";\nimport { Exercise } from \"components/Exercises/models/exercise\";\nimport { WorkoutLog, WorkoutLogAdapter } from \"components/WorkoutRoutines/models/WorkoutLog\";\nimport { getExercise } from \"services/exercise\";\nimport { getRoutineRepUnits, getRoutineWeightUnits } from \"services/workoutUnits\";\nimport { API_MAX_PAGE_SIZE, ApiPath } from \"utils/consts\";\nimport { fetchPaginated } from \"utils/requests\";\nimport { makeHeader, makeUrl } from \"utils/url\";\n\nexport const deleteLog = async (id: number): Promise<number> => {\n const response = await axios.delete<number>(makeUrl(ApiPath.WORKOUT_LOG, { id: id }), {\n headers: makeHeader(),\n });\n\n return response.status;\n};\n\n\nexport const editLog = async (entry: WorkoutLog): Promise<WorkoutLog> => {\n const adapter = new WorkoutLogAdapter();\n const response = await axios.patch(\n makeUrl(ApiPath.WORKOUT_LOG, { id: entry.id }),\n adapter.toJson(entry),\n { headers: makeHeader() }\n );\n return adapter.fromJson(response.data);\n};\n\nexport const addLogs = async (entries: any[]): Promise<WorkoutLog[]> => {\n const adapter = new WorkoutLogAdapter();\n const out = [] as WorkoutLog[];\n for (const entry of entries) {\n const response = await axios.post(\n makeUrl(ApiPath.WORKOUT_LOG,),\n { ...entry },\n { headers: makeHeader() }\n );\n out.push(adapter.fromJson(response.data));\n }\n\n return out;\n};\n\n/*\n * Retrieves the training logs for a routine\n */\nexport const getRoutineLogs = async (id: number, options?\n: { loadExercises?: boolean, filtersetQuery?: object }): Promise<WorkoutLog[]> => {\n const { loadExercises = false, filtersetQuery = {} } = options || {};\n\n const adapter = new WorkoutLogAdapter();\n const url = makeUrl(\n ApiPath.WORKOUT_LOG,\n { query: { routine: id.toString(), limit: API_MAX_PAGE_SIZE, ordering: '-date', ...filtersetQuery } }\n );\n\n const unitResponses = await Promise.all([getRoutineRepUnits(), getRoutineWeightUnits()]);\n const repUnits = unitResponses[0];\n const weightUnits = unitResponses[1];\n\n const exercises: Map<number, Exercise> = new Map();\n\n const out: WorkoutLog[] = [];\n for await (const page of fetchPaginated(url)) {\n for (const logData of page) {\n const log = adapter.fromJson(logData);\n if (log.repetitionUnitId !== null) {\n log.repetitionUnitObj = repUnits.find(e => e.id === log.repetitionUnitId) ?? null;\n }\n\n if (log.weightUnitId !== null) {\n log.weightUnitObj = weightUnits.find(e => e.id === log.weightUnitId) ?? null;\n }\n\n // Load the base object\n if (loadExercises) {\n if (exercises.get(log.exerciseId) === undefined) {\n exercises.set(log.exerciseId, await getExercise(log.exerciseId));\n }\n log.exerciseObj = exercises.get(log.exerciseId)!;\n }\n\n out.push(log);\n }\n }\n\n return out;\n};","import axios from 'axios';\nimport { SlotEntry, SlotEntryType } from \"components/WorkoutRoutines/models/SlotEntry\";\nimport { ApiPath } from \"utils/consts\";\nimport { makeHeader, makeUrl } from \"utils/url\";\n\n\nexport interface AddSlotEntryParams {\n slot: number,\n exercise: number,\n type: SlotEntryType,\n order: number,\n comment?: string,\n repetition_unit?: number,\n repetition_rounding?: number | null,\n weight_unit?: number,\n weight_rounding?: number | null,\n}\n\nexport interface EditSlotEntryParams extends Partial<AddSlotEntryParams> {\n id: number,\n}\n\n/*\n * Update a Slot entry\n */\nexport const editSlotEntry = async (slotEntry: SlotEntry): Promise<SlotEntry> => {\n const response = await axios.patch(\n makeUrl(ApiPath.SLOT_ENTRY, { id: slotEntry.id }),\n slotEntry.toJson(),\n { headers: makeHeader() }\n );\n\n return SlotEntry.fromJson(response.data);\n};\n\n/*\n * Delete an existing slot entry\n */\nexport const deleteSlotEntry = async (id: number): Promise<void> => {\n await axios.delete(\n makeUrl(ApiPath.SLOT_ENTRY, { id: id }),\n { headers: makeHeader() }\n );\n};\n\n/*\n * Creates a new slot entry\n */\nexport const addSlotEntry = async (data: AddSlotEntryParams): Promise<SlotEntry> => {\n const response = await axios.post(\n makeUrl(ApiPath.SLOT_ENTRY),\n data,\n { headers: makeHeader() }\n );\n\n return SlotEntry.fromJson(response.data);\n};\n\n\n","import axios from 'axios';\nimport { Day } from \"components/WorkoutRoutines/models/Day\";\nimport { ApiPath } from \"utils/consts\";\nimport { makeHeader, makeUrl } from \"utils/url\";\n\n\n/*\n * Update a day\n */\nexport const editDay = async (day: Day): Promise<Day> => {\n const response = await axios.patch(\n makeUrl(ApiPath.DAY, { id: day.id! }),\n day.toJson(),\n { headers: makeHeader() }\n );\n\n return Day.fromJson(response.data);\n};\n\n\n/*\n * Creates a new day\n */\nexport const addDay = async (day: Day): Promise<Day> => {\n const response = await axios.post(\n makeUrl(ApiPath.DAY),\n day.toJson(),\n { headers: makeHeader() }\n );\n\n return Day.fromJson(response.data);\n};\n\n/*\n * Deletes an existing day\n */\nexport const deleteDay = async (id: number): Promise<void> => {\n await axios.delete(\n makeUrl(ApiPath.DAY, { id: id }),\n { headers: makeHeader() }\n );\n};\n\n\n","import axios from 'axios';\nimport { Slot } from \"components/WorkoutRoutines/models/Slot\";\nimport { ApiPath } from \"utils/consts\";\nimport { makeHeader, makeUrl } from \"utils/url\";\n\n\n/*\n * Creates a new Slot\n */\nexport const addSlot = async (slot: Slot): Promise<Slot> => {\n const response = await axios.post(\n makeUrl(ApiPath.SLOT),\n slot.toJson(),\n { headers: makeHeader() }\n );\n\n return Slot.fromJson(response.data);\n};\n\n/*\n * Update a Slot\n */\nexport const editSlot = async (slot: Slot): Promise<Slot> => {\n const response = await axios.patch(\n makeUrl(ApiPath.SLOT, { id: slot.id! }),\n slot.toJson(),\n { headers: makeHeader() }\n );\n\n return Slot.fromJson(response.data);\n};\n\n/*\n * Delete an existing lot\n */\nexport const deleteSlot = async (id: number): Promise<void> => {\n await axios.delete(\n makeUrl(ApiPath.SLOT, { id: id }),\n { headers: makeHeader() }\n );\n};\n\n\n","import axios from 'axios';\nimport {\n BaseConfig,\n BaseConfigAdapter,\n OperationType,\n RuleRequirements,\n StepType\n} from \"components/WorkoutRoutines/models/BaseConfig\";\nimport { ApiPath } from \"utils/consts\";\nimport { makeHeader, makeUrl } from \"utils/url\";\n\nexport interface AddBaseConfigParams {\n value: number;\n slot_entry: number;\n iteration?: number;\n operation?: OperationType;\n step?: StepType;\n requirements?: RuleRequirements;\n}\n\nexport interface EditBaseConfigParams extends Partial<AddBaseConfigParams> {\n id: number,\n}\n\nexport interface ProcessBaseConfigsParams {\n toAdd: AddBaseConfigParams[],\n toEdit: EditBaseConfigParams[],\n toDelete: number[],\n apiPath: ApiPath\n}\n\n\nexport const processBaseConfigs = async ({ values, maxValues }: {\n values?: ProcessBaseConfigsParams,\n maxValues?: ProcessBaseConfigsParams\n}): Promise<void> => {\n const processEntries = async (entries: ProcessBaseConfigsParams) => {\n const { toAdd, toEdit, toDelete, apiPath } = entries;\n\n for (const entry of toAdd) {\n await addBaseConfig(entry, apiPath);\n }\n\n for (const entry of toEdit) {\n await editBaseConfig(entry, apiPath);\n }\n\n for (const entry of toDelete) {\n await deleteBaseConfig(entry, apiPath);\n }\n };\n\n if (values !== undefined) {\n await processEntries(values);\n }\n if (maxValues !== undefined) {\n await processEntries(maxValues);\n }\n};\n\nexport const editBaseConfig = async (data: EditBaseConfigParams, url: string): Promise<BaseConfig> => {\n\n const response = await axios.patch(\n makeUrl(url, { id: data.id }),\n data,\n { headers: makeHeader() }\n );\n\n const adapter = new BaseConfigAdapter();\n return adapter.fromJson(response.data);\n};\n\nexport const addBaseConfig = async (data: AddBaseConfigParams, url: string): Promise<BaseConfig> => {\n\n const response = await axios.post(\n makeUrl(url),\n data,\n { headers: makeHeader() }\n );\n\n const adapter = new BaseConfigAdapter();\n return adapter.fromJson(response.data);\n};\n\nexport const deleteBaseConfig = async (id: number, url: string): Promise<void> => await axios.delete(makeUrl(url, { id: id }), { headers: makeHeader() });\n\n","import {\n addBaseConfig,\n AddBaseConfigParams,\n deleteBaseConfig,\n editBaseConfig,\n EditBaseConfigParams\n} from \"services/base_config\";\nimport { ApiPath } from \"utils/consts\";\n\n\nexport const editWeightConfig = async (data: EditBaseConfigParams) => await editBaseConfig(data, ApiPath.WEIGHT_CONFIG);\nexport const addWeightConfig = async (data: AddBaseConfigParams) => await addBaseConfig(data, ApiPath.WEIGHT_CONFIG);\nexport const deleteWeightConfig = async (id: number) => await deleteBaseConfig(id, ApiPath.WEIGHT_CONFIG);\n\nexport const editMaxWeightConfig = async (data: EditBaseConfigParams) => await editBaseConfig(data, ApiPath.MAX_WEIGHT_CONFIG);\nexport const addMaxWeightConfig = async (data: AddBaseConfigParams) => await addBaseConfig(data, ApiPath.MAX_WEIGHT_CONFIG);\nexport const deleteMaxWeightConfig = async (id: number) => await deleteBaseConfig(id, ApiPath.MAX_WEIGHT_CONFIG);\n\nexport const editRepetitionsConfig = async (data: EditBaseConfigParams) => await editBaseConfig(data, ApiPath.REPETITIONS_CONFIG);\nexport const addRepetitionsConfig = async (data: AddBaseConfigParams) => await addBaseConfig(data, ApiPath.REPETITIONS_CONFIG);\nexport const deleteRepetitionsConfig = async (id: number) => await deleteBaseConfig(id, ApiPath.REPETITIONS_CONFIG);\n\nexport const editMaxRepetitionsConfig = async (data: EditBaseConfigParams) => await editBaseConfig(data, ApiPath.MAX_REPS_CONFIG);\nexport const addMaxRepetitionsConfig = async (data: AddBaseConfigParams) => await addBaseConfig(data, ApiPath.MAX_REPS_CONFIG);\nexport const deleteMaxRepetitionsConfig = async (id: number) => await deleteBaseConfig(id, ApiPath.MAX_REPS_CONFIG);\n\nexport const editNrOfSetsConfig = async (data: EditBaseConfigParams) => await editBaseConfig(data, ApiPath.NR_OF_SETS_CONFIG);\nexport const addNrOfSetsConfig = async (data: AddBaseConfigParams) => await addBaseConfig(data, ApiPath.NR_OF_SETS_CONFIG);\nexport const deleteNrOfSetsConfig = async (id: number) => await deleteBaseConfig(id, ApiPath.NR_OF_SETS_CONFIG);\n\nexport const editMaxNrOfSetsConfig = async (data: EditBaseConfigParams) => await editBaseConfig(data, ApiPath.MAX_NR_OF_SETS_CONFIG);\nexport const addMaxNrOfSetsConfig = async (data: AddBaseConfigParams) => await addBaseConfig(data, ApiPath.MAX_NR_OF_SETS_CONFIG);\nexport const deleteMaxNrOfSetsConfig = async (id: number) => await deleteBaseConfig(id, ApiPath.MAX_NR_OF_SETS_CONFIG);\n\nexport const editRirConfig = async (data: EditBaseConfigParams) => await editBaseConfig(data, ApiPath.RIR_CONFIG);\nexport const addRirConfig = async (data: AddBaseConfigParams) => await addBaseConfig(data, ApiPath.RIR_CONFIG);\nexport const deleteRirConfig = async (id: number) => await deleteBaseConfig(id, ApiPath.RIR_CONFIG);\n\nexport const editMaxRirConfig = async (data: EditBaseConfigParams) => await editBaseConfig(data, ApiPath.MAX_RIR_CONFIG);\nexport const addMaxRirConfig = async (data: AddBaseConfigParams) => await addBaseConfig(data, ApiPath.MAX_RIR_CONFIG);\nexport const deleteMaxRirConfig = async (id: number) => await deleteBaseConfig(id, ApiPath.MAX_RIR_CONFIG);\n\nexport const editRestConfig = async (data: EditBaseConfigParams) => await editBaseConfig(data, ApiPath.REST_CONFIG);\nexport const addRestConfig = async (data: AddBaseConfigParams) => await addBaseConfig(data, ApiPath.REST_CONFIG);\nexport const deleteRestConfig = async (id: number) => await deleteBaseConfig(id, ApiPath.REST_CONFIG);\n\nexport const editMaxRestConfig = async (data: EditBaseConfigParams) => await editBaseConfig(data, ApiPath.MAX_REST_CONFIG);\nexport const addMaxRestConfig = async (data: AddBaseConfigParams) => await addBaseConfig(data, ApiPath.MAX_REST_CONFIG);\nexport const deleteMaxRestConfig = async (id: number) => await deleteBaseConfig(id, ApiPath.MAX_REST_CONFIG);\n\n","import axios from 'axios';\nimport { Exercise } from \"components/Exercises/models/exercise\";\nimport { WorkoutLog, WorkoutLogAdapter } from \"components/WorkoutRoutines/models/WorkoutLog\";\nimport {\n AddSessionParams,\n EditSessionParams,\n WorkoutSession,\n WorkoutSessionAdapter\n} from \"components/WorkoutRoutines/models/WorkoutSession\";\nimport { getExercise } from \"services\";\nimport { API_MAX_PAGE_SIZE, ApiPath } from \"utils/consts\";\nimport { fetchPaginated } from \"utils/requests\";\nimport { makeHeader, makeUrl } from \"utils/url\";\n\nexport type SessionQueryOptions = {\n filtersetQuerySessions?: object,\n filtersetQueryLogs?: object,\n}\n\n\nexport const searchSession = async (queryParams: Record<string, any>): Promise<WorkoutSession | null> => {\n const response = await axios.get(\n makeUrl(ApiPath.SESSION, { query: queryParams }),\n { headers: makeHeader() }\n );\n\n if (response.data.count === 1) {\n return new WorkoutSessionAdapter().fromJson(response.data.results[0]);\n }\n\n return null;\n};\n\nexport const getSessions = async (options?: SessionQueryOptions): Promise<WorkoutSession[]> => {\n\n const { filtersetQuerySessions = {}, filtersetQueryLogs = {} } = options || {};\n\n const sessionAdapter = new WorkoutSessionAdapter();\n const logAdapter = new WorkoutLogAdapter();\n const result: WorkoutSession[] = [];\n const logs: WorkoutLog[] = [];\n const exercises: Record<number, Exercise> = {};\n\n // Fetch all logs first\n for await (const logPage of fetchPaginated(\n makeUrl(\n ApiPath.WORKOUT_LOG,\n { query: { limit: API_MAX_PAGE_SIZE, ...filtersetQueryLogs } }\n ),\n makeHeader()\n )) {\n for (const logData of logPage) {\n logs.push(logAdapter.fromJson(logData));\n }\n }\n\n // Fetch all exercises and associate them with logs if it's not known\n for (const log of logs) {\n if (!exercises[log.exerciseId]) {\n exercises[log.exerciseId] = await getExercise(log.exerciseId);\n }\n log.exerciseObj = exercises[log.exerciseId];\n }\n\n for await (const sessionPage of fetchPaginated(\n makeUrl(\n ApiPath.SESSION,\n { query: { limit: API_MAX_PAGE_SIZE, ...filtersetQuerySessions } }\n ), makeHeader()\n )) {\n for (const sessionData of sessionPage) {\n const session = sessionAdapter.fromJson(sessionData);\n session.logs = logs.filter(log => log.sessionId === session.id);\n result.push(session);\n }\n }\n\n return result;\n};\n\nexport const addSession = async (data: AddSessionParams): Promise<WorkoutSession> => {\n const response = await axios.post(\n makeUrl(ApiPath.SESSION,),\n data,\n { headers: makeHeader() }\n );\n\n return new WorkoutSessionAdapter().fromJson(response.data);\n};\n\nexport const editSession = async (data: EditSessionParams): Promise<WorkoutSession> => {\n const response = await axios.patch(\n makeUrl(ApiPath.SESSION, { id: data.id }),\n data,\n { headers: makeHeader() }\n );\n\n return new WorkoutSessionAdapter().fromJson(response.data);\n};\n","import axios from 'axios';\nimport { DiaryEntry } from \"components/Nutrition/models/diaryEntry\";\nimport { getIngredient } from \"services/ingredient\";\nimport { getWeightUnit } from \"services/ingredientweightunit\";\nimport { API_MAX_PAGE_SIZE, ApiPath } from \"utils/consts\";\nimport { fetchPaginated } from \"utils/requests\";\nimport { makeHeader, makeUrl } from \"utils/url\";\n\n\nexport type NutritionalDiaryEntriesOptions = {\n filtersetQuery?: object;\n loadUnit?: true,\n loadIngredient?: true\n}\n\nexport const getNutritionalDiaryEntries = async (options?: NutritionalDiaryEntriesOptions): Promise<DiaryEntry[]> => {\n const { filtersetQuery = {}, loadUnit = true, loadIngredient = true } = options || {};\n\n const url = makeUrl(ApiPath.NUTRITIONAL_DIARY, {\n query: {\n limit: API_MAX_PAGE_SIZE,\n ...filtersetQuery\n }\n });\n const out: DiaryEntry[] = [];\n\n for await (const page of fetchPaginated(url, makeHeader())) {\n for (const logData of page) {\n const entry = DiaryEntry.fromJson(logData);\n\n if (loadUnit) {\n entry.weightUnit = await getWeightUnit(entry.weightUnitId);\n }\n\n if (loadIngredient) {\n entry.ingredient = await getIngredient(entry.ingredientId);\n }\n out.push(entry);\n }\n }\n return out;\n};\n\n\nexport const addNutritionalDiaryEntry = async (diaryEntry: DiaryEntry): Promise<DiaryEntry> => {\n const response = await axios.post(\n makeUrl(ApiPath.NUTRITIONAL_DIARY),\n diaryEntry.toJson(),\n { headers: makeHeader() }\n );\n\n return DiaryEntry.fromJson(response.data);\n};\n\nexport const editNutritionalDiaryEntry = async (diaryEntry: DiaryEntry): Promise<DiaryEntry> => {\n const response = await axios.patch(\n makeUrl(ApiPath.NUTRITIONAL_DIARY, { id: diaryEntry.id! }),\n diaryEntry.toJson(),\n { headers: makeHeader() }\n );\n\n return DiaryEntry.fromJson(response.data);\n};\n\nexport const deleteNutritionalDiaryEntry = async (id: number): Promise<void> => {\n await axios.delete(\n makeUrl(ApiPath.NUTRITIONAL_DIARY, { id: id }),\n { headers: makeHeader() },\n );\n};\n","/* eslint-disable camelcase */\n\nimport { Adapter } from \"utils/Adapter\";\n\nexport interface EditProfileParams {\n email: string,\n height: number,\n weight_unit: 'kg' | 'lb',\n weightRounding: number | null,\n repetitionsRounding: number | null,\n}\n\nexport class Profile {\n public username: string;\n public email: string;\n public emailVerified: boolean;\n public dateJoined: Date;\n public isTrustworthy: boolean;\n public useMetric: boolean;\n public height: number;\n public weightRounding: number | null;\n public repetitionsRounding: number | null;\n\n constructor(data: {\n username: string,\n email: string,\n emailVerified: boolean,\n dateJoined: Date,\n isTrustworthy: boolean,\n useMetric: boolean,\n height: number,\n weightRounding: number | null,\n repetitionsRounding: number | null,\n }) {\n this.username = data.username;\n this.email = data.email;\n this.emailVerified = data.emailVerified;\n this.dateJoined = data.dateJoined;\n this.isTrustworthy = data.isTrustworthy;\n this.useMetric = data.useMetric;\n this.height = data.height;\n this.weightRounding = data.weightRounding;\n this.repetitionsRounding = data.repetitionsRounding;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static fromJson(json: any) {\n return adapter.fromJson(json);\n }\n\n toJson() {\n return adapter.toJson(this);\n }\n}\n\nclass ProfileAdapter implements Adapter<Profile> {\n fromJson = (item: any): Profile => new Profile({\n username: item.username,\n email: item.email,\n emailVerified: item.email_verified,\n dateJoined: new Date(item.date_joined),\n isTrustworthy: item.is_trustworthy,\n useMetric: item.weight_unit === 'kg',\n height: item.height,\n weightRounding: item.weight_rounding !== null ? parseFloat(item.weight_rounding) : null,\n repetitionsRounding: item.repetitions_rounding !== null ? parseFloat(item.repetitions_rounding) : null,\n });\n\n\n toJson = (item: Profile) => ({\n email: item.email,\n height: item.height,\n weight_unit: item.useMetric ? 'kg' : 'lb',\n weight_rounding: item.weightRounding,\n repetitions_rounding: item.repetitionsRounding,\n });\n}\n\n\nconst adapter = new ProfileAdapter();","import axios from 'axios';\nimport { EditProfileParams, Profile } from \"components/User/models/profile\";\nimport { ApiPath } from \"utils/consts\";\nimport { makeHeader, makeUrl } from \"utils/url\";\n\nexport const API_PROFILE_PATH = 'userprofile';\n\n\n/*\n * Loads the user's profile\n */\nexport const getProfile = async (): Promise<Profile | null> => {\n const url = makeUrl(API_PROFILE_PATH);\n\n // We need to manually catch the error, otherwise react-query will retry the\n // query and report an error in the end\n try {\n const response = await axios.get(\n url,\n { headers: makeHeader() }\n );\n return Profile.fromJson(response.data);\n } catch (error) {\n return null;\n }\n};\n\n/*\n * Edits the user's profile\n */\nexport const editProfile = async (data: Partial<EditProfileParams>): Promise<Profile> => {\n\n const { weightRounding, repetitionRounding, ...rest } = data;\n const payload = {\n ...rest,\n // eslint-disable-next-line camelcase\n ...(weightRounding !== undefined && { weight_rounding: weightRounding }),\n // eslint-disable-next-line camelcase\n ...(repetitionRounding !== undefined && { repetition_rounding: repetitionRounding }),\n };\n\n const response = await axios.post(\n makeUrl(ApiPath.API_PROFILE_PATH),\n payload,\n { headers: makeHeader() }\n );\n\n return Profile.fromJson(response.data);\n};\n","import axios from 'axios';\nimport { makeHeader, makeUrl } from \"utils/url\";\n\nexport const LANGUAGE_DETECTION = 'check-language';\n\n\n/*\n * Check if an input string is in a particular language.\n *\n * Either languageId or languageCode must be provided.\n */\nexport type LanguageCheckInput =\n | { input: string; languageId: number; languageCode?: string }\n | { input: string; languageCode: string; languageId?: number };\n\nexport const checkLanguage = async (data: LanguageCheckInput): Promise<object> => {\n\n const url = makeUrl(LANGUAGE_DETECTION);\n const payload = {\n input: data.input,\n ...(data.languageId !== undefined\n ? { language: data.languageId }\n : { languageCode: data.languageCode })\n };\n\n const response = await axios.post(\n url,\n payload,\n { headers: makeHeader() },\n );\n\n return response.data;\n};","import axios from 'axios';\nimport { NutritionalPlan, nutritionalPlanAdapter } from \"components/Nutrition/models/nutritionalPlan\";\nimport { getNutritionalDiaryEntries } from \"services\";\nimport { getIngredients } from \"services/ingredient\";\nimport { getMealsForPlan } from \"services/meal\";\nimport { ResponseType } from \"services/responseType\";\nimport { ApiNutritionalPlanType } from 'types';\nimport { makeHeader, makeUrl } from \"utils/url\";\n\nexport const API_NUTRITIONAL_PLAN_PATH = 'nutritionplan';\n\nexport type NutritionalPlanOptions = {\n filtersetQueryLogs?: object,\n}\n\nexport const getNutritionalPlansSparse = async (): Promise<NutritionalPlan[]> => {\n const { data: receivedPlans } = await axios.get<ResponseType<ApiNutritionalPlanType>>(\n makeUrl(API_NUTRITIONAL_PLAN_PATH),\n { headers: makeHeader() },\n );\n return receivedPlans.results.map((plan) => nutritionalPlanAdapter.fromJson(plan));\n};\n\nexport const getLastNutritionalPlan = async (): Promise<NutritionalPlan | null> => {\n const { data: receivedPlan } = await axios.get<ResponseType<ApiNutritionalPlanType>>(\n makeUrl(API_NUTRITIONAL_PLAN_PATH, { query: { limit: '1' } }),\n { headers: makeHeader() },\n );\n\n if (receivedPlan.count === 0) {\n return null;\n }\n\n return await getNutritionalPlanFull(receivedPlan.results[0].id);\n};\n\nexport const getNutritionalPlanFull = async (id: number | null, options?: NutritionalPlanOptions): Promise<NutritionalPlan | null> => {\n if (id === null) {\n return null;\n }\n const { filtersetQueryLogs = {} } = options || {};\n\n const { data: receivedPlan } = await axios.get<ApiNutritionalPlanType>(\n makeUrl(API_NUTRITIONAL_PLAN_PATH, { id: id, }),\n { headers: makeHeader() },\n );\n\n // Collect the ingredient ids from the diary entries\n const ingredientIds: number[] = [];\n\n const plan = nutritionalPlanAdapter.fromJson(receivedPlan);\n const responses = await Promise.all([\n getMealsForPlan(id),\n getNutritionalDiaryEntries({ filtersetQuery: { plan: id, ...filtersetQueryLogs } })\n ]);\n\n plan.meals = responses[0];\n plan.diaryEntries = responses[1];\n\n // Fetch and set the ingredients\n plan.diaryEntries.forEach((entry) => {\n if (!ingredientIds.includes(entry.ingredientId)) {\n ingredientIds.push(entry.ingredientId);\n }\n });\n const ingredients = await getIngredients(ingredientIds);\n plan.diaryEntries.forEach((entry) => {\n entry.ingredient = ingredients.find((ingredient) => ingredient.id === entry.ingredientId)!;\n });\n\n plan.meals.forEach((meal) => {\n meal.diaryEntries = plan.diaryEntries.filter((entry) => entry.mealId === meal.id);\n });\n\n return plan;\n};\n\n\nexport const addNutritionalPlan = async (plan: NutritionalPlan): Promise<NutritionalPlan> => {\n const response = await axios.post(\n makeUrl(API_NUTRITIONAL_PLAN_PATH,),\n nutritionalPlanAdapter.toJson(plan),\n { headers: makeHeader() }\n );\n\n return nutritionalPlanAdapter.fromJson(response.data);\n};\n\nexport const editNutritionalPlan = async (plan: NutritionalPlan): Promise<NutritionalPlan> => {\n const response = await axios.patch(\n makeUrl(API_NUTRITIONAL_PLAN_PATH, { id: plan.id! }),\n nutritionalPlanAdapter.toJson(plan),\n { headers: makeHeader() }\n );\n\n return nutritionalPlanAdapter.fromJson(response.data);\n};\n\nexport const deleteNutritionalPlan = async (id: number): Promise<void> => {\n await axios.delete(\n makeUrl(API_NUTRITIONAL_PLAN_PATH, { id: id }),\n { headers: makeHeader() },\n );\n};\n","import { useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { NutritionalPlan } from \"components/Nutrition/models/nutritionalPlan\";\nimport {\n addNutritionalPlan,\n deleteNutritionalPlan,\n editNutritionalPlan,\n getLastNutritionalPlan,\n getNutritionalPlanFull,\n getNutritionalPlansSparse\n} from \"services/nutritionalPlan\";\nimport { QueryKey } from \"utils/consts\";\nimport { dateToYYYYMMDD } from \"utils/date\";\n\nexport function useFetchNutritionalPlansQuery() {\n return useQuery({\n queryKey: [QueryKey.NUTRITIONAL_PLANS],\n queryFn: () => getNutritionalPlansSparse()\n });\n}\n\n\nexport function useFetchLastNutritionalPlanQuery() {\n return useQuery({\n queryKey: [QueryKey.NUTRITIONAL_PLAN, 'last'],\n queryFn: () => getLastNutritionalPlan()\n });\n}\n\nexport function useFetchNutritionalPlanQuery(planId: number) {\n return useQuery({\n queryKey: [QueryKey.NUTRITIONAL_PLAN, planId],\n queryFn: () => getNutritionalPlanFull(planId)\n });\n}\n\n/*\n * Fetches the full nutritional plan (meals, etc.), but only the diary entries for\n * the given date\n */\nexport function useFetchNutritionalPlanDateQuery(planId: number | null, dateStr: string, enabled = true) {\n return useQuery({\n queryKey: [QueryKey.NUTRITIONAL_PLAN, planId, dateStr],\n queryFn: () => getNutritionalPlanFull(planId, { filtersetQueryLogs: { \"datetime__eq\": dateToYYYYMMDD(new Date(dateStr)) } }),\n enabled: enabled,\n });\n}\n\nexport const useAddNutritionalPlanQuery = () => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (plan: NutritionalPlan) => addNutritionalPlan(plan),\n onSuccess: () => {\n queryClient.invalidateQueries({\n queryKey: [QueryKey.NUTRITIONAL_PLANS,]\n });\n queryClient.invalidateQueries({\n queryKey: [QueryKey.NUTRITIONAL_PLAN,]\n });\n }\n });\n};\n\nexport const useDeleteNutritionalPlanQuery = (id: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteNutritionalPlan(id),\n onSuccess: () => {\n queryClient.invalidateQueries({\n queryKey: [QueryKey.NUTRITIONAL_PLANS,]\n });\n queryClient.invalidateQueries({\n queryKey: [QueryKey.NUTRITIONAL_PLAN, id]\n });\n }\n });\n};\nexport const useEditNutritionalPlanQuery = (id: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (plan: NutritionalPlan) => editNutritionalPlan(plan),\n onSuccess: () => {\n queryClient.invalidateQueries({\n queryKey: [QueryKey.NUTRITIONAL_PLAN, id]\n });\n queryClient.invalidateQueries({\n queryKey: [QueryKey.NUTRITIONAL_PLANS,]\n });\n }\n });\n};","import { useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { DiaryEntry } from \"components/Nutrition/models/diaryEntry\";\nimport {\n addNutritionalDiaryEntry,\n deleteNutritionalDiaryEntry,\n editNutritionalDiaryEntry,\n getNutritionalDiaryEntries\n} from \"services\";\nimport { NutritionalDiaryEntriesOptions } from \"services/nutritionalDiary\";\nimport { QueryKey } from \"utils/consts\";\n\nexport const useNutritionDiaryQuery = (options?: NutritionalDiaryEntriesOptions) => useQuery({\n queryFn: () => getNutritionalDiaryEntries(options),\n queryKey: [QueryKey.NUTRITIONAL_PLAN_DIARY, JSON.stringify(options || {})],\n});\n\nexport const useAddDiaryEntryQuery = (planId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (diaryEntry: DiaryEntry) => addNutritionalDiaryEntry(diaryEntry),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.NUTRITIONAL_PLAN, planId]\n })\n });\n};\n\nexport const useAddDiaryEntriesQuery = (planId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: DiaryEntry[]) => Promise.all(data.map(d => addNutritionalDiaryEntry(d))),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.NUTRITIONAL_PLAN, planId]\n })\n });\n};\n\nexport const useDeleteDiaryEntryQuery = (planId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteNutritionalDiaryEntry(id),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.NUTRITIONAL_PLAN, planId]\n })\n });\n};\n\nexport const useEditDiaryEntryQuery = (planId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (diaryEntry: DiaryEntry) => editNutritionalDiaryEntry(diaryEntry),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.NUTRITIONAL_PLAN, planId]\n })\n });\n};","import { useMutation, useQueryClient } from \"@tanstack/react-query\";\nimport { Meal } from \"components/Nutrition/models/meal\";\nimport { addMeal, deleteMeal, editMeal } from \"services/meal\";\nimport { QueryKey } from \"utils/consts\";\n\nexport const useAddMealQuery = (planId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: Meal) => addMeal(data),\n onSuccess: () => {\n queryClient.invalidateQueries({\n queryKey: [QueryKey.NUTRITIONAL_PLAN, planId]\n });\n }\n });\n};\nexport const useDeleteMealQuery = (planId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteMeal(id),\n onSuccess: () => {\n queryClient.invalidateQueries({\n queryKey: [QueryKey.NUTRITIONAL_PLAN, planId]\n });\n }\n });\n};\nexport const useEditMealQuery = (planId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (meal: Meal) => editMeal(meal),\n onSuccess: () => {\n queryClient.invalidateQueries({\n queryKey: [QueryKey.NUTRITIONAL_PLAN, planId]\n });\n }\n });\n};","import { useMutation, useQueryClient } from \"@tanstack/react-query\";\nimport { MealItem } from \"components/Nutrition/models/mealItem\";\nimport { addMealItem, deleteMealItem, editMealItem } from \"services/mealItem\";\nimport { QueryKey } from \"utils/consts\";\n\nexport const useAddMealItemQuery = (planId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (mealItem: MealItem) => addMealItem(mealItem),\n onSuccess: () => {\n queryClient.invalidateQueries({\n queryKey: [QueryKey.NUTRITIONAL_PLAN, planId]\n });\n }\n });\n};\n\nexport const useEditMealItemQuery = (planId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (mealItem: MealItem) => editMealItem(mealItem),\n onSuccess: () => {\n queryClient.invalidateQueries({\n queryKey: [QueryKey.NUTRITIONAL_PLAN, planId]\n });\n }\n });\n};\n\nexport const useDeleteMealItemQuery = (planId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteMealItem(id),\n onSuccess: () => {\n queryClient.invalidateQueries({\n queryKey: [QueryKey.NUTRITIONAL_PLAN, planId]\n });\n }\n });\n};\n","export enum LocaleUnit {\n GRAM = 'gram',\n KG = 'kilogram',\n LB = 'pound',\n PERCENT = 'percent',\n}\n\n/*\n * Formats a number, localised, no fraction digits\n */\nexport function numberLocale(num: number, locale: string) {\n return num.toLocaleString(locale, { maximumFractionDigits: 0 });\n}\n\n/*\n * Formats a number with a unit, localised, no fraction digits\n *\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat\n * https://tc39.es/ecma402/#table-sanctioned-single-unit-identifiers\n */\nexport function numberUnitLocale(num: number, locale: string, unit: LocaleUnit) {\n return num.toLocaleString(\n locale,\n { maximumFractionDigits: 0, unit: unit.valueOf(), style: 'unit' }\n );\n}\n\nexport function numberGramLocale(num: number, locale: string) {\n return numberUnitLocale(num, locale, LocaleUnit.GRAM);\n}\n\nexport function numberPercentLocale(num: number, locale: string) {\n return numberUnitLocale(num, locale, LocaleUnit.PERCENT);\n}\n\nexport function numberKgLocale(num: number, locale: string) {\n return numberUnitLocale(num, locale, LocaleUnit.KG);\n}\n\nexport function numberLbLocale(num: number, locale: string) {\n return numberUnitLocale(num, locale, LocaleUnit.LB);\n}","import { LinearProgress, Typography } from \"@mui/material\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { numberGramLocale } from \"utils/numbers\";\n\nexport const LinearPlannedLoggedChart = (props: {\n percentage: number,\n logged: number,\n title: string,\n planned: number\n}) => {\n const { i18n } = useTranslation();\n\n const hasPlanned = props.planned > 0;\n\n return <>\n <LinearProgress\n variant=\"determinate\"\n value={props.percentage < 100 ? props.percentage : 100}\n />\n <Typography variant={\"caption\"}>\n {props.title} — {numberGramLocale(props.logged, i18n.language)}\n {hasPlanned && <>&nbsp;/ {numberGramLocale(props.planned, i18n.language)}</>}\n </Typography>\n </>;\n\n};","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction isUnsafeProperty(key) {\n return key === '__proto__';\n}\n\nexports.isUnsafeProperty = isUnsafeProperty;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction isDeepKey(key) {\n switch (typeof key) {\n case 'number':\n case 'symbol': {\n return false;\n }\n case 'string': {\n return key.includes('.') || key.includes('[') || key.includes(']');\n }\n }\n}\n\nexports.isDeepKey = isDeepKey;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction toKey(value) {\n if (typeof value === 'string' || typeof value === 'symbol') {\n return value;\n }\n if (Object.is(value?.valueOf?.(), -0)) {\n return '-0';\n }\n return String(value);\n}\n\nexports.toKey = toKey;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction toPath(deepKey) {\n const result = [];\n const length = deepKey.length;\n if (length === 0) {\n return result;\n }\n let index = 0;\n let key = '';\n let quoteChar = '';\n let bracket = false;\n if (deepKey.charCodeAt(0) === 46) {\n result.push('');\n index++;\n }\n while (index < length) {\n const char = deepKey[index];\n if (quoteChar) {\n if (char === '\\\\' && index + 1 < length) {\n index++;\n key += deepKey[index];\n }\n else if (char === quoteChar) {\n quoteChar = '';\n }\n else {\n key += char;\n }\n }\n else if (bracket) {\n if (char === '\"' || char === \"'\") {\n quoteChar = char;\n }\n else if (char === ']') {\n bracket = false;\n result.push(key);\n key = '';\n }\n else {\n key += char;\n }\n }\n else {\n if (char === '[') {\n bracket = true;\n if (key) {\n result.push(key);\n key = '';\n }\n }\n else if (char === '.') {\n if (key) {\n result.push(key);\n key = '';\n }\n }\n else {\n key += char;\n }\n }\n index++;\n }\n if (key) {\n result.push(key);\n }\n return result;\n}\n\nexports.toPath = toPath;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst isUnsafeProperty = require('../../_internal/isUnsafeProperty.js');\nconst isDeepKey = require('../_internal/isDeepKey.js');\nconst toKey = require('../_internal/toKey.js');\nconst toPath = require('../util/toPath.js');\n\nfunction get(object, path, defaultValue) {\n if (object == null) {\n return defaultValue;\n }\n switch (typeof path) {\n case 'string': {\n if (isUnsafeProperty.isUnsafeProperty(path)) {\n return defaultValue;\n }\n const result = object[path];\n if (result === undefined) {\n if (isDeepKey.isDeepKey(path)) {\n return get(object, toPath.toPath(path), defaultValue);\n }\n else {\n return defaultValue;\n }\n }\n return result;\n }\n case 'number':\n case 'symbol': {\n if (typeof path === 'number') {\n path = toKey.toKey(path);\n }\n const result = object[path];\n if (result === undefined) {\n return defaultValue;\n }\n return result;\n }\n default: {\n if (Array.isArray(path)) {\n return getWithPath(object, path, defaultValue);\n }\n if (Object.is(path?.valueOf(), -0)) {\n path = '-0';\n }\n else {\n path = String(path);\n }\n if (isUnsafeProperty.isUnsafeProperty(path)) {\n return defaultValue;\n }\n const result = object[path];\n if (result === undefined) {\n return defaultValue;\n }\n return result;\n }\n }\n}\nfunction getWithPath(object, path, defaultValue) {\n if (path.length === 0) {\n return defaultValue;\n }\n let current = object;\n for (let index = 0; index < path.length; index++) {\n if (current == null) {\n return defaultValue;\n }\n if (isUnsafeProperty.isUnsafeProperty(path[index])) {\n return defaultValue;\n }\n current = current[path[index]];\n }\n if (current === undefined) {\n return defaultValue;\n }\n return current;\n}\n\nexports.get = get;\n","module.exports = require('../dist/compat/object/get.js').get;\n","/**\n * @license React\n * react-is.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\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\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\nSymbol.for(\"react.provider\");\nvar REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\nfunction typeOf(object) {\n if (\"object\" === typeof object && null !== object) {\n var $$typeof = object.$$typeof;\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n switch (((object = object.type), object)) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n case REACT_VIEW_TRANSITION_TYPE:\n return object;\n default:\n switch (((object = object && object.$$typeof), object)) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n return object;\n case REACT_CONSUMER_TYPE:\n return object;\n default:\n return $$typeof;\n }\n }\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n}\nexports.ContextConsumer = REACT_CONSUMER_TYPE;\nexports.ContextProvider = REACT_CONTEXT_TYPE;\nexports.Element = REACT_ELEMENT_TYPE;\nexports.ForwardRef = REACT_FORWARD_REF_TYPE;\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.Lazy = REACT_LAZY_TYPE;\nexports.Memo = REACT_MEMO_TYPE;\nexports.Portal = REACT_PORTAL_TYPE;\nexports.Profiler = REACT_PROFILER_TYPE;\nexports.StrictMode = REACT_STRICT_MODE_TYPE;\nexports.Suspense = REACT_SUSPENSE_TYPE;\nexports.SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nexports.isContextConsumer = function (object) {\n return typeOf(object) === REACT_CONSUMER_TYPE;\n};\nexports.isContextProvider = function (object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n};\nexports.isElement = function (object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n};\nexports.isForwardRef = function (object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n};\nexports.isFragment = function (object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n};\nexports.isLazy = function (object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n};\nexports.isMemo = function (object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n};\nexports.isPortal = function (object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n};\nexports.isProfiler = function (object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n};\nexports.isStrictMode = function (object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n};\nexports.isSuspense = function (object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n};\nexports.isSuspenseList = function (object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n};\nexports.isValidElementType = function (type) {\n return \"string\" === typeof type ||\n \"function\" === typeof type ||\n type === REACT_FRAGMENT_TYPE ||\n type === REACT_PROFILER_TYPE ||\n type === REACT_STRICT_MODE_TYPE ||\n type === REACT_SUSPENSE_TYPE ||\n type === REACT_SUSPENSE_LIST_TYPE ||\n (\"object\" === typeof type &&\n null !== type &&\n (type.$$typeof === REACT_LAZY_TYPE ||\n type.$$typeof === REACT_MEMO_TYPE ||\n type.$$typeof === REACT_CONTEXT_TYPE ||\n type.$$typeof === REACT_CONSUMER_TYPE ||\n type.$$typeof === REACT_FORWARD_REF_TYPE ||\n type.$$typeof === REACT_CLIENT_REFERENCE ||\n void 0 !== type.getModuleId))\n ? !0\n : !1;\n};\nexports.typeOf = typeOf;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","import get from 'es-toolkit/compat/get';\nexport var mathSign = value => {\n if (value === 0) {\n return 0;\n }\n if (value > 0) {\n return 1;\n }\n return -1;\n};\nexport var isNan = value => {\n // eslint-disable-next-line eqeqeq\n return typeof value == 'number' && value != +value;\n};\nexport var isPercent = value => typeof value === 'string' && value.indexOf('%') === value.length - 1;\nexport var isNumber = value => (typeof value === 'number' || value instanceof Number) && !isNan(value);\nexport var isNumOrStr = value => isNumber(value) || typeof value === 'string';\nvar idCounter = 0;\nexport var uniqueId = prefix => {\n var id = ++idCounter;\n return \"\".concat(prefix || '').concat(id);\n};\n\n/**\n * Get percent value of a total value\n * @param {number|string} percent A percent\n * @param {number} totalValue Total value\n * @param {number} defaultValue The value returned when percent is undefined or invalid\n * @param {boolean} validate If set to be true, the result will be validated\n * @return {number} value\n */\nexport var getPercentValue = function getPercentValue(percent, totalValue) {\n var defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var validate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n if (!isNumber(percent) && typeof percent !== 'string') {\n return defaultValue;\n }\n var value;\n if (isPercent(percent)) {\n if (totalValue == null) {\n return defaultValue;\n }\n var index = percent.indexOf('%');\n value = totalValue * parseFloat(percent.slice(0, index)) / 100;\n } else {\n value = +percent;\n }\n if (isNan(value)) {\n value = defaultValue;\n }\n if (validate && totalValue != null && value > totalValue) {\n value = totalValue;\n }\n return value;\n};\nexport var hasDuplicate = ary => {\n if (!Array.isArray(ary)) {\n return false;\n }\n var len = ary.length;\n var cache = {};\n for (var i = 0; i < len; i++) {\n if (!cache[ary[i]]) {\n cache[ary[i]] = true;\n } else {\n return true;\n }\n }\n return false;\n};\n\n/**\n * @deprecated instead use {@link interpolate}\n * this function returns a function that is called immediately in all use-cases.\n * Instead, use interpolate which returns a number and skips the anonymous function step.\n * @param numberA The first number\n * @param numberB The second number\n * @return A function that returns the interpolated number\n */\nexport var interpolateNumber = (numberA, numberB) => {\n if (isNumber(numberA) && isNumber(numberB)) {\n return t => numberA + t * (numberB - numberA);\n }\n return () => numberB;\n};\nexport function interpolate(start, end, t) {\n if (isNumber(start) && isNumber(end)) {\n return start + t * (end - start);\n }\n return end;\n}\nexport function findEntryInArray(ary, specifiedKey, specifiedValue) {\n if (!ary || !ary.length) {\n return undefined;\n }\n return ary.find(entry => entry && (typeof specifiedKey === 'function' ? specifiedKey(entry) : get(entry, specifiedKey)) === specifiedValue);\n}\n\n/**\n * The least square linear regression\n * @param {Array} data The array of points\n * @returns {Object} The domain of x, and the parameter of linear function\n */\nexport var getLinearRegression = data => {\n if (!data || !data.length) {\n return null;\n }\n var len = data.length;\n var xsum = 0;\n var ysum = 0;\n var xysum = 0;\n var xxsum = 0;\n var xmin = Infinity;\n var xmax = -Infinity;\n var xcurrent = 0;\n var ycurrent = 0;\n for (var i = 0; i < len; i++) {\n xcurrent = data[i].cx || 0;\n ycurrent = data[i].cy || 0;\n xsum += xcurrent;\n ysum += ycurrent;\n xysum += xcurrent * ycurrent;\n xxsum += xcurrent * xcurrent;\n xmin = Math.min(xmin, xcurrent);\n xmax = Math.max(xmax, xcurrent);\n }\n var a = len * xxsum !== xsum * xsum ? (len * xysum - xsum * ysum) / (len * xxsum - xsum * xsum) : 0;\n return {\n xmin,\n xmax,\n a,\n b: (ysum - a * xsum) / len\n };\n};\n/**\n * Checks if the value is null or undefined\n * @param value The value to check\n * @returns true if the value is null or undefined\n */\nexport var isNullish = value => {\n return value === null || typeof value === 'undefined';\n};\n\n/**\n *Uppercase the first letter of a string\n * @param {string} value The string to uppercase\n * @returns {string} The uppercased string\n */\nexport var upperFirst = value => {\n if (isNullish(value)) {\n return value;\n }\n return \"\".concat(value.charAt(0).toUpperCase()).concat(value.slice(1));\n};","var EventKeys = ['dangerouslySetInnerHTML', 'onCopy', 'onCopyCapture', 'onCut', 'onCutCapture', 'onPaste', 'onPasteCapture', 'onCompositionEnd', 'onCompositionEndCapture', 'onCompositionStart', 'onCompositionStartCapture', 'onCompositionUpdate', 'onCompositionUpdateCapture', 'onFocus', 'onFocusCapture', 'onBlur', 'onBlurCapture', 'onChange', 'onChangeCapture', 'onBeforeInput', 'onBeforeInputCapture', 'onInput', 'onInputCapture', 'onReset', 'onResetCapture', 'onSubmit', 'onSubmitCapture', 'onInvalid', 'onInvalidCapture', 'onLoad', 'onLoadCapture', 'onError', 'onErrorCapture', 'onKeyDown', 'onKeyDownCapture', 'onKeyPress', 'onKeyPressCapture', 'onKeyUp', 'onKeyUpCapture', 'onAbort', 'onAbortCapture', 'onCanPlay', 'onCanPlayCapture', 'onCanPlayThrough', 'onCanPlayThroughCapture', 'onDurationChange', 'onDurationChangeCapture', 'onEmptied', 'onEmptiedCapture', 'onEncrypted', 'onEncryptedCapture', 'onEnded', 'onEndedCapture', 'onLoadedData', 'onLoadedDataCapture', 'onLoadedMetadata', 'onLoadedMetadataCapture', 'onLoadStart', 'onLoadStartCapture', 'onPause', 'onPauseCapture', 'onPlay', 'onPlayCapture', 'onPlaying', 'onPlayingCapture', 'onProgress', 'onProgressCapture', 'onRateChange', 'onRateChangeCapture', 'onSeeked', 'onSeekedCapture', 'onSeeking', 'onSeekingCapture', 'onStalled', 'onStalledCapture', 'onSuspend', 'onSuspendCapture', 'onTimeUpdate', 'onTimeUpdateCapture', 'onVolumeChange', 'onVolumeChangeCapture', 'onWaiting', 'onWaitingCapture', 'onAuxClick', 'onAuxClickCapture', 'onClick', 'onClickCapture', 'onContextMenu', 'onContextMenuCapture', 'onDoubleClick', 'onDoubleClickCapture', 'onDrag', 'onDragCapture', 'onDragEnd', 'onDragEndCapture', 'onDragEnter', 'onDragEnterCapture', 'onDragExit', 'onDragExitCapture', 'onDragLeave', 'onDragLeaveCapture', 'onDragOver', 'onDragOverCapture', 'onDragStart', 'onDragStartCapture', 'onDrop', 'onDropCapture', 'onMouseDown', 'onMouseDownCapture', 'onMouseEnter', 'onMouseLeave', 'onMouseMove', 'onMouseMoveCapture', 'onMouseOut', 'onMouseOutCapture', 'onMouseOver', 'onMouseOverCapture', 'onMouseUp', 'onMouseUpCapture', 'onSelect', 'onSelectCapture', 'onTouchCancel', 'onTouchCancelCapture', 'onTouchEnd', 'onTouchEndCapture', 'onTouchMove', 'onTouchMoveCapture', 'onTouchStart', 'onTouchStartCapture', 'onPointerDown', 'onPointerDownCapture', 'onPointerMove', 'onPointerMoveCapture', 'onPointerUp', 'onPointerUpCapture', 'onPointerCancel', 'onPointerCancelCapture', 'onPointerEnter', 'onPointerEnterCapture', 'onPointerLeave', 'onPointerLeaveCapture', 'onPointerOver', 'onPointerOverCapture', 'onPointerOut', 'onPointerOutCapture', 'onGotPointerCapture', 'onGotPointerCaptureCapture', 'onLostPointerCapture', 'onLostPointerCaptureCapture', 'onScroll', 'onScrollCapture', 'onWheel', 'onWheelCapture', 'onAnimationStart', 'onAnimationStartCapture', 'onAnimationEnd', 'onAnimationEndCapture', 'onAnimationIteration', 'onAnimationIterationCapture', 'onTransitionEnd', 'onTransitionEndCapture'];\nexport function isEventKey(key) {\n if (typeof key !== 'string') {\n return false;\n }\n var allowedEventKeys = EventKeys;\n return allowedEventKeys.includes(key);\n}\n\n/**\n * Filters out event properties from the given object.\n * This function is useful for cleaning up props before passing them to a React component,\n * @param obj - The object containing properties to filter.\n * @returns A new object containing only the properties that are not event handlers.\n */\nexport function excludeEventProps(obj) {\n var filteredEntries = Object.entries(obj).filter(_ref => {\n var [key] = _ref;\n return !isEventKey(key);\n });\n return Object.fromEntries(filteredEntries);\n}","import { isValidElement } from 'react';\nimport { isEventKey } from './excludeEventProps';\n\n/**\n * Determines how values are stacked:\n *\n * - `none` is the default, it adds values on top of each other. No smarts. Negative values will overlap.\n * - `expand` make it so that the values always add up to 1 - so the chart will look like a rectangle.\n * - `wiggle` and `silhouette` tries to keep the chart centered.\n * - `sign` stacks positive values above zero and negative values below zero. Similar to `none` but handles negatives.\n * - `positive` ignores all negative values, and then behaves like \\`none\\`.\n *\n * Also see https://d3js.org/d3-shape/stack#stack-offsets\n * (note that the `diverging` offset in d3 is named `sign` in recharts)\n */\n\n/**\n * @deprecated use either `CartesianLayout` or `PolarLayout` instead.\n * Mixing both charts families leads to ambiguity in the type system.\n * These two layouts share very few properties, so it is best to keep them separate.\n */\n\n/**\n * @deprecated do not use: too many properties, mixing too many concepts, cartesian and polar together, everything optional.\n */\n\n//\n// Event Handler Types -- Copied from @types/react/index.d.ts and adapted for Props.\n//\n\nvar SVGContainerPropKeys = ['viewBox', 'children'];\nvar PolyElementKeys = ['points', 'pathLength'];\n\n/** svg element types that have specific attribute filtration requirements */\n\n/** map of svg element types to unique svg attributes that belong to that element */\nexport var FilteredElementKeyMap = {\n svg: SVGContainerPropKeys,\n polygon: PolyElementKeys,\n polyline: PolyElementKeys\n};\n\n/** The type of easing function to use for animations */\n\n/** Specifies the duration of animation, the unit of this option is ms. */\n\n/**\n * This object defines the offset of the chart area and width and height and brush and ... it's a bit too much information all in one.\n * We use it internally but let's not expose it to the outside world.\n * If you are looking for this information, instead import `ChartOffset` or `PlotArea` from `recharts`.\n */\n\n/**\n * The domain of axis.\n * This is the definition\n *\n * Numeric domain is always defined by an array of exactly two values, for the min and the max of the axis.\n * Categorical domain is defined as array of all possible values.\n *\n * Can be specified in many ways:\n * - array of numbers\n * - with special strings like 'dataMin' and 'dataMax'\n * - with special string math like 'dataMin - 100'\n * - with keyword 'auto'\n * - or a function\n * - array of functions\n * - or a combination of the above\n */\n\n/**\n * NumberDomain is an evaluated {@link AxisDomain}.\n * Unlike {@link AxisDomain}, it has no variety - it's a tuple of two number.\n * This is after all the keywords and functions were evaluated and what is left is [min, max].\n *\n * Know that the min, max values are not guaranteed to be nice numbers - values like -Infinity or NaN are possible.\n *\n * There are also `category` axes that have different things than numbers in their domain.\n */\n\n/** The props definition of base axis */\n\n/** Defines how ticks are placed and whether / how tick collisions are handled.\n * 'preserveStart' keeps the left tick on collision and ensures that the first tick is always shown.\n * 'preserveEnd' keeps the right tick on collision and ensures that the last tick is always shown.\n * 'preserveStartEnd' keeps the left tick on collision and ensures that the first and last ticks always show.\n * 'equidistantPreserveStart' selects a number N such that every nTh tick will be shown without collision.\n */\n\n/**\n * Ticks can be any type when the axis is the type of category.\n *\n * Ticks must be numbers when the axis is the type of number.\n */\n\nexport var adaptEventHandlers = (props, newHandler) => {\n if (!props || typeof props === 'function' || typeof props === 'boolean') {\n return null;\n }\n var inputProps = props;\n if (/*#__PURE__*/isValidElement(props)) {\n inputProps = props.props;\n }\n if (typeof inputProps !== 'object' && typeof inputProps !== 'function') {\n return null;\n }\n var out = {};\n Object.keys(inputProps).forEach(key => {\n if (isEventKey(key)) {\n out[key] = newHandler || (e => inputProps[key](inputProps, e));\n }\n });\n return out;\n};\nvar getEventHandlerOfChild = (originalHandler, data, index) => e => {\n originalHandler(data, index, e);\n return null;\n};\nexport var adaptEventsOfChild = (props, data, index) => {\n if (props === null || typeof props !== 'object' && typeof props !== 'function') {\n return null;\n }\n var out = null;\n Object.keys(props).forEach(key => {\n var item = props[key];\n if (isEventKey(key) && typeof item === 'function') {\n if (!out) out = {};\n out[key] = getEventHandlerOfChild(item, data, index);\n }\n });\n return out;\n};\n\n/**\n * 'axis' means that all graphical items belonging to this axis tick will be highlighted,\n * and all will be present in the tooltip.\n * Tooltip with 'axis' will display when hovering on the chart background.\n *\n * 'item' means only the one graphical item being hovered will show in the tooltip.\n * Tooltip with 'item' will display when hovering over individual graphical items.\n *\n * This is calculated internally;\n * charts have a `defaultTooltipEventType` and `validateTooltipEventTypes` options.\n *\n * Users then use <Tooltip shared={true} /> or <Tooltip shared={false} /> to control their preference,\n * and charts will then see what is allowed and what is not.\n */\n\n/**\n * These are the props we are going to pass to an `activeDot` if it is a function or a custom Component\n */\n\n/**\n * This is the type of `activeDot` prop on:\n * - Area\n * - Line\n * - Radar\n */\n\n// TODO we need two different range objects, one for polar and another for cartesian layouts\n\n/**\n * Simplified version of the MouseEvent so that we don't have to mock the whole thing in tests.\n *\n * This is meant to represent the React.MouseEvent\n * which is a wrapper on top of https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent\n */\n\n/**\n * Coordinates relative to the top-left corner of the chart.\n * Also include scale which means that a chart that's scaled will return the same coordinates as a chart that's not scaled.\n */","var SVGElementPropKeys = ['aria-activedescendant', 'aria-atomic', 'aria-autocomplete', 'aria-busy', 'aria-checked', 'aria-colcount', 'aria-colindex', 'aria-colspan', 'aria-controls', 'aria-current', 'aria-describedby', 'aria-details', 'aria-disabled', 'aria-errormessage', 'aria-expanded', 'aria-flowto', 'aria-haspopup', 'aria-hidden', 'aria-invalid', 'aria-keyshortcuts', 'aria-label', 'aria-labelledby', 'aria-level', 'aria-live', 'aria-modal', 'aria-multiline', 'aria-multiselectable', 'aria-orientation', 'aria-owns', 'aria-placeholder', 'aria-posinset', 'aria-pressed', 'aria-readonly', 'aria-relevant', 'aria-required', 'aria-roledescription', 'aria-rowcount', 'aria-rowindex', 'aria-rowspan', 'aria-selected', 'aria-setsize', 'aria-sort', 'aria-valuemax', 'aria-valuemin', 'aria-valuenow', 'aria-valuetext', 'className', 'color', 'height', 'id', 'lang', 'max', 'media', 'method', 'min', 'name', 'style',\n/*\n * removed 'type' SVGElementPropKey because we do not currently use any SVG elements\n * that can use it, and it conflicts with the recharts prop 'type'\n * https://github.com/recharts/recharts/pull/3327\n * https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/type\n */\n// 'type',\n'target', 'width', 'role', 'tabIndex', 'accentHeight', 'accumulate', 'additive', 'alignmentBaseline', 'allowReorder', 'alphabetic', 'amplitude', 'arabicForm', 'ascent', 'attributeName', 'attributeType', 'autoReverse', 'azimuth', 'baseFrequency', 'baselineShift', 'baseProfile', 'bbox', 'begin', 'bias', 'by', 'calcMode', 'capHeight', 'clip', 'clipPath', 'clipPathUnits', 'clipRule', 'colorInterpolation', 'colorInterpolationFilters', 'colorProfile', 'colorRendering', 'contentScriptType', 'contentStyleType', 'cursor', 'cx', 'cy', 'd', 'decelerate', 'descent', 'diffuseConstant', 'direction', 'display', 'divisor', 'dominantBaseline', 'dur', 'dx', 'dy', 'edgeMode', 'elevation', 'enableBackground', 'end', 'exponent', 'externalResourcesRequired', 'fill', 'fillOpacity', 'fillRule', 'filter', 'filterRes', 'filterUnits', 'floodColor', 'floodOpacity', 'focusable', 'fontFamily', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontWeight', 'format', 'from', 'fx', 'fy', 'g1', 'g2', 'glyphName', 'glyphOrientationHorizontal', 'glyphOrientationVertical', 'glyphRef', 'gradientTransform', 'gradientUnits', 'hanging', 'horizAdvX', 'horizOriginX', 'href', 'ideographic', 'imageRendering', 'in2', 'in', 'intercept', 'k1', 'k2', 'k3', 'k4', 'k', 'kernelMatrix', 'kernelUnitLength', 'kerning', 'keyPoints', 'keySplines', 'keyTimes', 'lengthAdjust', 'letterSpacing', 'lightingColor', 'limitingConeAngle', 'local', 'markerEnd', 'markerHeight', 'markerMid', 'markerStart', 'markerUnits', 'markerWidth', 'mask', 'maskContentUnits', 'maskUnits', 'mathematical', 'mode', 'numOctaves', 'offset', 'opacity', 'operator', 'order', 'orient', 'orientation', 'origin', 'overflow', 'overlinePosition', 'overlineThickness', 'paintOrder', 'panose1', 'pathLength', 'patternContentUnits', 'patternTransform', 'patternUnits', 'pointerEvents', 'pointsAtX', 'pointsAtY', 'pointsAtZ', 'preserveAlpha', 'preserveAspectRatio', 'primitiveUnits', 'r', 'radius', 'refX', 'refY', 'renderingIntent', 'repeatCount', 'repeatDur', 'requiredExtensions', 'requiredFeatures', 'restart', 'result', 'rotate', 'rx', 'ry', 'seed', 'shapeRendering', 'slope', 'spacing', 'specularConstant', 'specularExponent', 'speed', 'spreadMethod', 'startOffset', 'stdDeviation', 'stemh', 'stemv', 'stitchTiles', 'stopColor', 'stopOpacity', 'strikethroughPosition', 'strikethroughThickness', 'string', 'stroke', 'strokeDasharray', 'strokeDashoffset', 'strokeLinecap', 'strokeLinejoin', 'strokeMiterlimit', 'strokeOpacity', 'strokeWidth', 'surfaceScale', 'systemLanguage', 'tableValues', 'targetX', 'targetY', 'textAnchor', 'textDecoration', 'textLength', 'textRendering', 'to', 'transform', 'u1', 'u2', 'underlinePosition', 'underlineThickness', 'unicode', 'unicodeBidi', 'unicodeRange', 'unitsPerEm', 'vAlphabetic', 'values', 'vectorEffect', 'version', 'vertAdvY', 'vertOriginX', 'vertOriginY', 'vHanging', 'vIdeographic', 'viewTarget', 'visibility', 'vMathematical', 'widths', 'wordSpacing', 'writingMode', 'x1', 'x2', 'x', 'xChannelSelector', 'xHeight', 'xlinkActuate', 'xlinkArcrole', 'xlinkHref', 'xlinkRole', 'xlinkShow', 'xlinkTitle', 'xlinkType', 'xmlBase', 'xmlLang', 'xmlns', 'xmlnsXlink', 'xmlSpace', 'y1', 'y2', 'y', 'yChannelSelector', 'z', 'zoomAndPan', 'ref', 'key', 'angle'];\nexport function isSvgElementPropKey(key) {\n if (typeof key !== 'string') {\n return false;\n }\n var allowedSvgKeys = SVGElementPropKeys;\n return allowedSvgKeys.includes(key);\n}\n/**\n * Filters an object to only include SVG properties. Removes all event handlers too.\n * @param obj - The object to filter\n * @returns A new object containing only valid SVG properties, excluding event handlers.\n */\nexport function svgPropertiesNoEvents(obj) {\n var filteredEntries = Object.entries(obj).filter(_ref => {\n var [key] = _ref;\n return isSvgElementPropKey(key);\n });\n return Object.fromEntries(filteredEntries);\n}","import get from 'es-toolkit/compat/get';\nimport { Children, isValidElement } from 'react';\nimport { isFragment } from 'react-is';\nimport { isNullish } from './DataUtils';\nimport { FilteredElementKeyMap } from './types';\nimport { isEventKey } from './excludeEventProps';\nimport { isSvgElementPropKey } from './svgPropertiesNoEvents';\nexport var SCALE_TYPES = ['auto', 'linear', 'pow', 'sqrt', 'log', 'identity', 'time', 'band', 'point', 'ordinal', 'quantile', 'quantize', 'utc', 'sequential', 'threshold'];\n\n/**\n * @deprecated instead find another approach that does not depend on displayName.\n * Get the display name of a component\n * @param {Object} Comp Specified Component\n * @return {String} Display name of Component\n */\nexport var getDisplayName = Comp => {\n if (typeof Comp === 'string') {\n return Comp;\n }\n if (!Comp) {\n return '';\n }\n return Comp.displayName || Comp.name || 'Component';\n};\n\n// `toArray` gets called multiple times during the render\n// so we can memoize last invocation (since reference to `children` is the same)\nvar lastChildren = null;\nvar lastResult = null;\n\n/**\n * @deprecated instead find another approach that does not require reading React Elements from DOM.\n *\n * @param children do not use\n * @return deprecated do not use\n */\nexport var toArray = children => {\n if (children === lastChildren && Array.isArray(lastResult)) {\n return lastResult;\n }\n var result = [];\n Children.forEach(children, child => {\n if (isNullish(child)) return;\n if (isFragment(child)) {\n result = result.concat(toArray(child.props.children));\n } else {\n // @ts-expect-error this could still be Iterable<ReactNode> and TS does not like that\n result.push(child);\n }\n });\n lastResult = result;\n lastChildren = children;\n return result;\n};\n\n/**\n * @deprecated instead find another approach that does not require reading React Elements from DOM.\n *\n * Find and return all matched children by type.\n * `type` must be a React.ComponentType\n *\n * @param children do not use\n * @param type do not use\n * @return deprecated do not use\n */\nexport function findAllByType(children, type) {\n var result = [];\n var types = [];\n if (Array.isArray(type)) {\n types = type.map(t => getDisplayName(t));\n } else {\n types = [getDisplayName(type)];\n }\n toArray(children).forEach(child => {\n var childType = get(child, 'type.displayName') || get(child, 'type.name');\n // ts-expect-error toArray and lodash.get are not compatible. Let's get rid of the whole findAllByType function\n if (types.indexOf(childType) !== -1) {\n result.push(child);\n }\n });\n return result;\n}\nexport var isClipDot = dot => {\n if (dot && typeof dot === 'object' && 'clipDot' in dot) {\n return Boolean(dot.clipDot);\n }\n return true;\n};\n\n/**\n * Checks if the property is valid to spread onto an SVG element or onto a specific component\n * @param {unknown} property property value currently being compared\n * @param {string} key property key currently being compared\n * @param {boolean} includeEvents if events are included in spreadable props\n * @param {boolean} svgElementType checks against map of SVG element types to attributes\n * @returns {boolean} is prop valid\n */\nexport var isValidSpreadableProp = (property, key, includeEvents, svgElementType) => {\n var _ref;\n if (typeof key === 'symbol' || typeof key === 'number') {\n // Allow symbols and numbers as valid keys\n return true;\n }\n /**\n * If the svg element type is explicitly included, check against the filtered element key map\n * to determine if there are attributes that should only exist on that element type.\n * @todo Add an internal cjs version of https://github.com/wooorm/svg-element-attributes for full coverage.\n */\n var matchingElementTypeKeys = (_ref = svgElementType && (FilteredElementKeyMap === null || FilteredElementKeyMap === void 0 ? void 0 : FilteredElementKeyMap[svgElementType])) !== null && _ref !== void 0 ? _ref : [];\n var isDataAttribute = key.startsWith('data-');\n var isSpecificSvgAttribute = typeof property !== 'function' && (Boolean(svgElementType) && matchingElementTypeKeys.includes(key) || isSvgElementPropKey(key));\n var isEventAttribute = Boolean(includeEvents) && isEventKey(key);\n return isDataAttribute || isSpecificSvgAttribute || isEventAttribute;\n};\n\n/**\n * Filters the props object to only include valid SVG attributes or event handlers.\n * @deprecated do not use this function, as it is not type-safe and may lead to unexpected behavior. Returns `any`.\n * Instead, use:\n * - `excludeEventProps` to exclude event handlers\n * - `svgPropertiesNoEvents` to exclude non-SVG attributes, and exclude event handlers too\n * @param props - The props object to filter, which can be a Record, Component, FunctionComponent, boolean, or unknown.\n * @param includeEvents - A boolean indicating whether to include event handlers in the filtered props.\n * @param svgElementType - An optional parameter specifying the type of SVG element to filter attributes for.\n * @returns A new object containing only valid SVG attributes or event handlers, or null if the input is not valid.\n */\nexport var filterProps = (props, includeEvents, svgElementType) => {\n if (!props || typeof props === 'function' || typeof props === 'boolean') {\n return null;\n }\n var inputProps = props;\n if (/*#__PURE__*/isValidElement(props)) {\n inputProps = props.props;\n }\n if (typeof inputProps !== 'object' && typeof inputProps !== 'function') {\n return null;\n }\n var out = {};\n\n /**\n * Props are blindly spread onto SVG elements. This loop filters out properties that we don't want to spread.\n * Items filtered out are as follows:\n * - functions in properties that are SVG attributes (functions are included when includeEvents is true)\n * - props that are SVG attributes but don't matched the passed svgElementType\n * - any prop that is not in SVGElementPropKeys (or in EventKeys if includeEvents is true)\n */\n Object.keys(inputProps).forEach(key => {\n var _inputProps;\n if (isValidSpreadableProp((_inputProps = inputProps) === null || _inputProps === void 0 ? void 0 : _inputProps[key], key, includeEvents, svgElementType)) {\n out[key] = inputProps[key];\n }\n });\n return out;\n};","var _excluded = [\"children\", \"width\", \"height\", \"viewBox\", \"className\", \"style\", \"title\", \"desc\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\n/**\n * @fileOverview Surface\n */\nimport * as React from 'react';\nimport { forwardRef } from 'react';\nimport { clsx } from 'clsx';\nimport { filterProps } from '../util/ReactUtils';\nexport var Surface = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n children,\n width,\n height,\n viewBox,\n className,\n style,\n title,\n desc\n } = props,\n others = _objectWithoutProperties(props, _excluded);\n var svgView = viewBox || {\n width,\n height,\n x: 0,\n y: 0\n };\n var layerClass = clsx('recharts-surface', className);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({}, filterProps(others, true, 'svg'), {\n className: layerClass,\n width: width,\n height: height,\n style: style,\n viewBox: \"\".concat(svgView.x, \" \").concat(svgView.y, \" \").concat(svgView.width, \" \").concat(svgView.height),\n ref: ref\n }), /*#__PURE__*/React.createElement(\"title\", null, title), /*#__PURE__*/React.createElement(\"desc\", null, desc), children);\n});","var _excluded = [\"children\", \"className\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nimport { filterProps } from '../util/ReactUtils';\nexport var Layer = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n children,\n className\n } = props,\n others = _objectWithoutProperties(props, _excluded);\n var layerClass = clsx('recharts-layer', className);\n return /*#__PURE__*/React.createElement(\"g\", _extends({\n className: layerClass\n }, filterProps(others, true), {\n ref: ref\n }), children);\n});","import { createContext, useContext } from 'react';\nexport var LegendPortalContext = /*#__PURE__*/createContext(null);\nexport var useLegendPortal = () => useContext(LegendPortalContext);","export default function(x) {\n return function constant() {\n return x;\n };\n}\n","export const abs = Math.abs;\nexport const atan2 = Math.atan2;\nexport const cos = Math.cos;\nexport const max = Math.max;\nexport const min = Math.min;\nexport const sin = Math.sin;\nexport const sqrt = Math.sqrt;\n\nexport const epsilon = 1e-12;\nexport const pi = Math.PI;\nexport const halfPi = pi / 2;\nexport const tau = 2 * pi;\n\nexport function acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nexport function asin(x) {\n return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);\n}\n","const pi = Math.PI,\n tau = 2 * pi,\n epsilon = 1e-6,\n tauEpsilon = tau - epsilon;\n\nfunction append(strings) {\n this._ += strings[0];\n for (let i = 1, n = strings.length; i < n; ++i) {\n this._ += arguments[i] + strings[i];\n }\n}\n\nfunction appendRound(digits) {\n let d = Math.floor(digits);\n if (!(d >= 0)) throw new Error(`invalid digits: ${digits}`);\n if (d > 15) return append;\n const k = 10 ** d;\n return function(strings) {\n this._ += strings[0];\n for (let i = 1, n = strings.length; i < n; ++i) {\n this._ += Math.round(arguments[i] * k) / k + strings[i];\n }\n };\n}\n\nexport class Path {\n constructor(digits) {\n this._x0 = this._y0 = // start of current subpath\n this._x1 = this._y1 = null; // end of current subpath\n this._ = \"\";\n this._append = digits == null ? append : appendRound(digits);\n }\n moveTo(x, y) {\n this._append`M${this._x0 = this._x1 = +x},${this._y0 = this._y1 = +y}`;\n }\n closePath() {\n if (this._x1 !== null) {\n this._x1 = this._x0, this._y1 = this._y0;\n this._append`Z`;\n }\n }\n lineTo(x, y) {\n this._append`L${this._x1 = +x},${this._y1 = +y}`;\n }\n quadraticCurveTo(x1, y1, x, y) {\n this._append`Q${+x1},${+y1},${this._x1 = +x},${this._y1 = +y}`;\n }\n bezierCurveTo(x1, y1, x2, y2, x, y) {\n this._append`C${+x1},${+y1},${+x2},${+y2},${this._x1 = +x},${this._y1 = +y}`;\n }\n arcTo(x1, y1, x2, y2, r) {\n x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;\n\n // Is the radius negative? Error.\n if (r < 0) throw new Error(`negative radius: ${r}`);\n\n let x0 = this._x1,\n y0 = this._y1,\n x21 = x2 - x1,\n y21 = y2 - y1,\n x01 = x0 - x1,\n y01 = y0 - y1,\n l01_2 = x01 * x01 + y01 * y01;\n\n // Is this path empty? Move to (x1,y1).\n if (this._x1 === null) {\n this._append`M${this._x1 = x1},${this._y1 = y1}`;\n }\n\n // Or, is (x1,y1) coincident with (x0,y0)? Do nothing.\n else if (!(l01_2 > epsilon));\n\n // Or, are (x0,y0), (x1,y1) and (x2,y2) collinear?\n // Equivalently, is (x1,y1) coincident with (x2,y2)?\n // Or, is the radius zero? Line to (x1,y1).\n else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) {\n this._append`L${this._x1 = x1},${this._y1 = y1}`;\n }\n\n // Otherwise, draw an arc!\n else {\n let x20 = x2 - x0,\n y20 = y2 - y0,\n l21_2 = x21 * x21 + y21 * y21,\n l20_2 = x20 * x20 + y20 * y20,\n l21 = Math.sqrt(l21_2),\n l01 = Math.sqrt(l01_2),\n l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2),\n t01 = l / l01,\n t21 = l / l21;\n\n // If the start tangent is not coincident with (x0,y0), line to.\n if (Math.abs(t01 - 1) > epsilon) {\n this._append`L${x1 + t01 * x01},${y1 + t01 * y01}`;\n }\n\n this._append`A${r},${r},0,0,${+(y01 * x20 > x01 * y20)},${this._x1 = x1 + t21 * x21},${this._y1 = y1 + t21 * y21}`;\n }\n }\n arc(x, y, r, a0, a1, ccw) {\n x = +x, y = +y, r = +r, ccw = !!ccw;\n\n // Is the radius negative? Error.\n if (r < 0) throw new Error(`negative radius: ${r}`);\n\n let dx = r * Math.cos(a0),\n dy = r * Math.sin(a0),\n x0 = x + dx,\n y0 = y + dy,\n cw = 1 ^ ccw,\n da = ccw ? a0 - a1 : a1 - a0;\n\n // Is this path empty? Move to (x0,y0).\n if (this._x1 === null) {\n this._append`M${x0},${y0}`;\n }\n\n // Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0).\n else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) {\n this._append`L${x0},${y0}`;\n }\n\n // Is this arc empty? We’re done.\n if (!r) return;\n\n // Does the angle go the wrong way? Flip the direction.\n if (da < 0) da = da % tau + tau;\n\n // Is this a complete circle? Draw two arcs to complete the circle.\n if (da > tauEpsilon) {\n this._append`A${r},${r},0,1,${cw},${x - dx},${y - dy}A${r},${r},0,1,${cw},${this._x1 = x0},${this._y1 = y0}`;\n }\n\n // Is this arc non-empty? Draw an arc!\n else if (da > epsilon) {\n this._append`A${r},${r},0,${+(da >= pi)},${cw},${this._x1 = x + r * Math.cos(a1)},${this._y1 = y + r * Math.sin(a1)}`;\n }\n }\n rect(x, y, w, h) {\n this._append`M${this._x0 = this._x1 = +x},${this._y0 = this._y1 = +y}h${w = +w}v${+h}h${-w}Z`;\n }\n toString() {\n return this._;\n }\n}\n\nexport function path() {\n return new Path;\n}\n\n// Allow instanceof d3.path\npath.prototype = Path.prototype;\n\nexport function pathRound(digits = 3) {\n return new Path(+digits);\n}\n","import {Path} from \"d3-path\";\n\nexport function withPath(shape) {\n let digits = 3;\n\n shape.digits = function(_) {\n if (!arguments.length) return digits;\n if (_ == null) {\n digits = null;\n } else {\n const d = Math.floor(_);\n if (!(d >= 0)) throw new RangeError(`invalid digits: ${_}`);\n digits = d;\n }\n return shape;\n };\n\n return () => new Path(digits);\n}\n","export var slice = Array.prototype.slice;\n\nexport default function(x) {\n return typeof x === \"object\" && \"length\" in x\n ? x // Array, TypedArray, NodeList, array-like\n : Array.from(x); // Map, Set, iterable, string, or anything else\n}\n","function Linear(context) {\n this._context = context;\n}\n\nLinear.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; // falls through\n default: this._context.lineTo(x, y); break;\n }\n }\n};\n\nexport default function(context) {\n return new Linear(context);\n}\n","export function x(p) {\n return p[0];\n}\n\nexport function y(p) {\n return p[1];\n}\n","import array from \"./array.js\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport {withPath} from \"./path.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function(x, y) {\n var defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null,\n path = withPath(line);\n\n x = typeof x === \"function\" ? x : (x === undefined) ? pointX : constant(x);\n y = typeof y === \"function\" ? y : (y === undefined) ? pointY : constant(y);\n\n function line(data) {\n var i,\n n = (data = array(data)).length,\n d,\n defined0 = false,\n buffer;\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) output.lineStart();\n else output.lineEnd();\n }\n if (defined0) output.point(+x(d, i, data), +y(d, i, data));\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n line.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), line) : x;\n };\n\n line.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), line) : y;\n };\n\n line.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), line) : defined;\n };\n\n line.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;\n };\n\n line.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;\n };\n\n return line;\n}\n","import array from \"./array.js\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport line from \"./line.js\";\nimport {withPath} from \"./path.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function(x0, y0, y1) {\n var x1 = null,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null,\n path = withPath(area);\n\n x0 = typeof x0 === \"function\" ? x0 : (x0 === undefined) ? pointX : constant(+x0);\n y0 = typeof y0 === \"function\" ? y0 : (y0 === undefined) ? constant(0) : constant(+y0);\n y1 = typeof y1 === \"function\" ? y1 : (y1 === undefined) ? pointY : constant(+y1);\n\n function area(data) {\n var i,\n j,\n k,\n n = (data = array(data)).length,\n d,\n defined0 = false,\n buffer,\n x0z = new Array(n),\n y0z = new Array(n);\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) {\n j = i;\n output.areaStart();\n output.lineStart();\n } else {\n output.lineEnd();\n output.lineStart();\n for (k = i - 1; k >= j; --k) {\n output.point(x0z[k], y0z[k]);\n }\n output.lineEnd();\n output.areaEnd();\n }\n }\n if (defined0) {\n x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);\n output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);\n }\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n function arealine() {\n return line().defined(defined).curve(curve).context(context);\n }\n\n area.x = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), x1 = null, area) : x0;\n };\n\n area.x0 = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), area) : x0;\n };\n\n area.x1 = function(_) {\n return arguments.length ? (x1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : x1;\n };\n\n area.y = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), y1 = null, area) : y0;\n };\n\n area.y0 = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), area) : y0;\n };\n\n area.y1 = function(_) {\n return arguments.length ? (y1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : y1;\n };\n\n area.lineX0 =\n area.lineY0 = function() {\n return arealine().x(x0).y(y0);\n };\n\n area.lineY1 = function() {\n return arealine().x(x0).y(y1);\n };\n\n area.lineX1 = function() {\n return arealine().x(x1).y(y0);\n };\n\n area.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), area) : defined;\n };\n\n area.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;\n };\n\n area.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;\n };\n\n return area;\n}\n","import pointRadial from \"../pointRadial.js\";\n\nclass Bump {\n constructor(context, x) {\n this._context = context;\n this._x = x;\n }\n areaStart() {\n this._line = 0;\n }\n areaEnd() {\n this._line = NaN;\n }\n lineStart() {\n this._point = 0;\n }\n lineEnd() {\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n }\n point(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: {\n this._point = 1;\n if (this._line) this._context.lineTo(x, y);\n else this._context.moveTo(x, y);\n break;\n }\n case 1: this._point = 2; // falls through\n default: {\n if (this._x) this._context.bezierCurveTo(this._x0 = (this._x0 + x) / 2, this._y0, this._x0, y, x, y);\n else this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + y) / 2, x, this._y0, x, y);\n break;\n }\n }\n this._x0 = x, this._y0 = y;\n }\n}\n\nclass BumpRadial {\n constructor(context) {\n this._context = context;\n }\n lineStart() {\n this._point = 0;\n }\n lineEnd() {}\n point(x, y) {\n x = +x, y = +y;\n if (this._point === 0) {\n this._point = 1;\n } else {\n const p0 = pointRadial(this._x0, this._y0);\n const p1 = pointRadial(this._x0, this._y0 = (this._y0 + y) / 2);\n const p2 = pointRadial(x, this._y0);\n const p3 = pointRadial(x, y);\n this._context.moveTo(...p0);\n this._context.bezierCurveTo(...p1, ...p2, ...p3);\n }\n this._x0 = x, this._y0 = y;\n }\n}\n\nexport function bumpX(context) {\n return new Bump(context, true);\n}\n\nexport function bumpY(context) {\n return new Bump(context, false);\n}\n\nexport function bumpRadial(context) {\n return new BumpRadial(context);\n}\n","import {pi, sqrt, tau} from \"../math.js\";\n\nexport default {\n draw(context, size) {\n const r = sqrt(size / pi);\n context.moveTo(r, 0);\n context.arc(0, 0, r, 0, tau);\n }\n};\n","import {sqrt} from \"../math.js\";\n\nexport default {\n draw(context, size) {\n const r = sqrt(size / 5) / 2;\n context.moveTo(-3 * r, -r);\n context.lineTo(-r, -r);\n context.lineTo(-r, -3 * r);\n context.lineTo(r, -3 * r);\n context.lineTo(r, -r);\n context.lineTo(3 * r, -r);\n context.lineTo(3 * r, r);\n context.lineTo(r, r);\n context.lineTo(r, 3 * r);\n context.lineTo(-r, 3 * r);\n context.lineTo(-r, r);\n context.lineTo(-3 * r, r);\n context.closePath();\n }\n};\n","import {sqrt} from \"../math.js\";\n\nconst tan30 = sqrt(1 / 3);\nconst tan30_2 = tan30 * 2;\n\nexport default {\n draw(context, size) {\n const y = sqrt(size / tan30_2);\n const x = y * tan30;\n context.moveTo(0, -y);\n context.lineTo(x, 0);\n context.lineTo(0, y);\n context.lineTo(-x, 0);\n context.closePath();\n }\n};\n","import {sqrt} from \"../math.js\";\n\nexport default {\n draw(context, size) {\n const w = sqrt(size);\n const x = -w / 2;\n context.rect(x, x, w, w);\n }\n};\n","import {sin, cos, sqrt, pi, tau} from \"../math.js\";\n\nconst ka = 0.89081309152928522810;\nconst kr = sin(pi / 10) / sin(7 * pi / 10);\nconst kx = sin(tau / 10) * kr;\nconst ky = -cos(tau / 10) * kr;\n\nexport default {\n draw(context, size) {\n const r = sqrt(size * ka);\n const x = kx * r;\n const y = ky * r;\n context.moveTo(0, -r);\n context.lineTo(x, y);\n for (let i = 1; i < 5; ++i) {\n const a = tau * i / 5;\n const c = cos(a);\n const s = sin(a);\n context.lineTo(s * r, -c * r);\n context.lineTo(c * x - s * y, s * x + c * y);\n }\n context.closePath();\n }\n};\n","import {sqrt} from \"../math.js\";\n\nconst sqrt3 = sqrt(3);\n\nexport default {\n draw(context, size) {\n const y = -sqrt(size / (sqrt3 * 3));\n context.moveTo(0, y * 2);\n context.lineTo(-sqrt3 * y, -y);\n context.lineTo(sqrt3 * y, -y);\n context.closePath();\n }\n};\n","import {sqrt} from \"../math.js\";\n\nconst c = -0.5;\nconst s = sqrt(3) / 2;\nconst k = 1 / sqrt(12);\nconst a = (k / 2 + 1) * 3;\n\nexport default {\n draw(context, size) {\n const r = sqrt(size / a);\n const x0 = r / 2, y0 = r * k;\n const x1 = x0, y1 = r * k + r;\n const x2 = -x1, y2 = y1;\n context.moveTo(x0, y0);\n context.lineTo(x1, y1);\n context.lineTo(x2, y2);\n context.lineTo(c * x0 - s * y0, s * x0 + c * y0);\n context.lineTo(c * x1 - s * y1, s * x1 + c * y1);\n context.lineTo(c * x2 - s * y2, s * x2 + c * y2);\n context.lineTo(c * x0 + s * y0, c * y0 - s * x0);\n context.lineTo(c * x1 + s * y1, c * y1 - s * x1);\n context.lineTo(c * x2 + s * y2, c * y2 - s * x2);\n context.closePath();\n }\n};\n","import constant from \"./constant.js\";\nimport {withPath} from \"./path.js\";\nimport asterisk from \"./symbol/asterisk.js\";\nimport circle from \"./symbol/circle.js\";\nimport cross from \"./symbol/cross.js\";\nimport diamond from \"./symbol/diamond.js\";\nimport diamond2 from \"./symbol/diamond2.js\";\nimport plus from \"./symbol/plus.js\";\nimport square from \"./symbol/square.js\";\nimport square2 from \"./symbol/square2.js\";\nimport star from \"./symbol/star.js\";\nimport triangle from \"./symbol/triangle.js\";\nimport triangle2 from \"./symbol/triangle2.js\";\nimport wye from \"./symbol/wye.js\";\nimport times from \"./symbol/times.js\";\n\n// These symbols are designed to be filled.\nexport const symbolsFill = [\n circle,\n cross,\n diamond,\n square,\n star,\n triangle,\n wye\n];\n\n// These symbols are designed to be stroked (with a width of 1.5px and round caps).\nexport const symbolsStroke = [\n circle,\n plus,\n times,\n triangle2,\n asterisk,\n square2,\n diamond2\n];\n\nexport default function Symbol(type, size) {\n let context = null,\n path = withPath(symbol);\n\n type = typeof type === \"function\" ? type : constant(type || circle);\n size = typeof size === \"function\" ? size : constant(size === undefined ? 64 : +size);\n\n function symbol() {\n let buffer;\n if (!context) context = buffer = path();\n type.apply(this, arguments).draw(context, +size.apply(this, arguments));\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n symbol.type = function(_) {\n return arguments.length ? (type = typeof _ === \"function\" ? _ : constant(_), symbol) : type;\n };\n\n symbol.size = function(_) {\n return arguments.length ? (size = typeof _ === \"function\" ? _ : constant(+_), symbol) : size;\n };\n\n symbol.context = function(_) {\n return arguments.length ? (context = _ == null ? null : _, symbol) : context;\n };\n\n return symbol;\n}\n","export default function() {}\n","export function point(that, x, y) {\n that._context.bezierCurveTo(\n (2 * that._x0 + that._x1) / 3,\n (2 * that._y0 + that._y1) / 3,\n (that._x0 + 2 * that._x1) / 3,\n (that._y0 + 2 * that._y1) / 3,\n (that._x0 + 4 * that._x1 + x) / 6,\n (that._y0 + 4 * that._y1 + y) / 6\n );\n}\n\nexport function Basis(context) {\n this._context = context;\n}\n\nBasis.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 3: point(this, this._x1, this._y1); // falls through\n case 2: this._context.lineTo(this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // falls through\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new Basis(context);\n}\n","import noop from \"../noop.js\";\nimport {point} from \"./basis.js\";\n\nfunction BasisClosed(context) {\n this._context = context;\n}\n\nBasisClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x2, this._y2);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3);\n this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x2, this._y2);\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x2 = x, this._y2 = y; break;\n case 1: this._point = 2; this._x3 = x, this._y3 = y; break;\n case 2: this._point = 3; this._x4 = x, this._y4 = y; this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6); break;\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new BasisClosed(context);\n}\n","import {point} from \"./basis.js\";\n\nfunction BasisOpen(context) {\n this._context = context;\n}\n\nBasisOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); break;\n case 3: this._point = 4; // falls through\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new BasisOpen(context);\n}\n","import noop from \"../noop.js\";\n\nfunction LinearClosed(context) {\n this._context = context;\n}\n\nLinearClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._point) this._context.closePath();\n },\n point: function(x, y) {\n x = +x, y = +y;\n if (this._point) this._context.lineTo(x, y);\n else this._point = 1, this._context.moveTo(x, y);\n }\n};\n\nexport default function(context) {\n return new LinearClosed(context);\n}\n","function sign(x) {\n return x < 0 ? -1 : 1;\n}\n\n// Calculate the slopes of the tangents (Hermite-type interpolation) based on\n// the following paper: Steffen, M. 1990. A Simple Method for Monotonic\n// Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.\n// NOV(II), P. 443, 1990.\nfunction slope3(that, x2, y2) {\n var h0 = that._x1 - that._x0,\n h1 = x2 - that._x1,\n s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),\n s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),\n p = (s0 * h1 + s1 * h0) / (h0 + h1);\n return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;\n}\n\n// Calculate a one-sided slope.\nfunction slope2(that, t) {\n var h = that._x1 - that._x0;\n return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;\n}\n\n// According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations\n// \"you can express cubic Hermite interpolation in terms of cubic Bézier curves\n// with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1\".\nfunction point(that, t0, t1) {\n var x0 = that._x0,\n y0 = that._y0,\n x1 = that._x1,\n y1 = that._y1,\n dx = (x1 - x0) / 3;\n that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);\n}\n\nfunction MonotoneX(context) {\n this._context = context;\n}\n\nMonotoneX.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 =\n this._t0 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x1, this._y1); break;\n case 3: point(this, this._t0, slope2(this, this._t0)); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n var t1 = NaN;\n\n x = +x, y = +y;\n if (x === this._x1 && y === this._y1) return; // Ignore coincident points.\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break;\n default: point(this, this._t0, t1 = slope3(this, x, y)); break;\n }\n\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n this._t0 = t1;\n }\n}\n\nfunction MonotoneY(context) {\n this._context = new ReflectContext(context);\n}\n\n(MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {\n MonotoneX.prototype.point.call(this, y, x);\n};\n\nfunction ReflectContext(context) {\n this._context = context;\n}\n\nReflectContext.prototype = {\n moveTo: function(x, y) { this._context.moveTo(y, x); },\n closePath: function() { this._context.closePath(); },\n lineTo: function(x, y) { this._context.lineTo(y, x); },\n bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }\n};\n\nexport function monotoneX(context) {\n return new MonotoneX(context);\n}\n\nexport function monotoneY(context) {\n return new MonotoneY(context);\n}\n","function Natural(context) {\n this._context = context;\n}\n\nNatural.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x = [];\n this._y = [];\n },\n lineEnd: function() {\n var x = this._x,\n y = this._y,\n n = x.length;\n\n if (n) {\n this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]);\n if (n === 2) {\n this._context.lineTo(x[1], y[1]);\n } else {\n var px = controlPoints(x),\n py = controlPoints(y);\n for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) {\n this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]);\n }\n }\n }\n\n if (this._line || (this._line !== 0 && n === 1)) this._context.closePath();\n this._line = 1 - this._line;\n this._x = this._y = null;\n },\n point: function(x, y) {\n this._x.push(+x);\n this._y.push(+y);\n }\n};\n\n// See https://www.particleincell.com/2012/bezier-splines/ for derivation.\nfunction controlPoints(x) {\n var i,\n n = x.length - 1,\n m,\n a = new Array(n),\n b = new Array(n),\n r = new Array(n);\n a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1];\n for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1];\n a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n];\n for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1];\n a[n - 1] = r[n - 1] / b[n - 1];\n for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i];\n b[n - 1] = (x[n] + a[n - 1]) / 2;\n for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1];\n return [a, b];\n}\n\nexport default function(context) {\n return new Natural(context);\n}\n","function Step(context, t) {\n this._context = context;\n this._t = t;\n}\n\nStep.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x = this._y = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y);\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; // falls through\n default: {\n if (this._t <= 0) {\n this._context.lineTo(this._x, y);\n this._context.lineTo(x, y);\n } else {\n var x1 = this._x * (1 - this._t) + x * this._t;\n this._context.lineTo(x1, this._y);\n this._context.lineTo(x1, y);\n }\n break;\n }\n }\n this._x = x, this._y = y;\n }\n};\n\nexport default function(context) {\n return new Step(context, 0.5);\n}\n\nexport function stepBefore(context) {\n return new Step(context, 0);\n}\n\nexport function stepAfter(context) {\n return new Step(context, 1);\n}\n","export default function(series, order) {\n if (!((n = series.length) > 1)) return;\n for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {\n s0 = s1, s1 = series[order[i]];\n for (j = 0; j < m; ++j) {\n s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];\n }\n }\n}\n","export default function(series) {\n var n = series.length, o = new Array(n);\n while (--n >= 0) o[n] = n;\n return o;\n}\n","import array from \"./array.js\";\nimport constant from \"./constant.js\";\nimport offsetNone from \"./offset/none.js\";\nimport orderNone from \"./order/none.js\";\n\nfunction stackValue(d, key) {\n return d[key];\n}\n\nfunction stackSeries(key) {\n const series = [];\n series.key = key;\n return series;\n}\n\nexport default function() {\n var keys = constant([]),\n order = orderNone,\n offset = offsetNone,\n value = stackValue;\n\n function stack(data) {\n var sz = Array.from(keys.apply(this, arguments), stackSeries),\n i, n = sz.length, j = -1,\n oz;\n\n for (const d of data) {\n for (i = 0, ++j; i < n; ++i) {\n (sz[i][j] = [0, +value(d, sz[i].key, j, data)]).data = d;\n }\n }\n\n for (i = 0, oz = array(order(sz)); i < n; ++i) {\n sz[oz[i]].index = i;\n }\n\n offset(sz, oz);\n return sz;\n }\n\n stack.keys = function(_) {\n return arguments.length ? (keys = typeof _ === \"function\" ? _ : constant(Array.from(_)), stack) : keys;\n };\n\n stack.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), stack) : value;\n };\n\n stack.order = function(_) {\n return arguments.length ? (order = _ == null ? orderNone : typeof _ === \"function\" ? _ : constant(Array.from(_)), stack) : order;\n };\n\n stack.offset = function(_) {\n return arguments.length ? (offset = _ == null ? offsetNone : _, stack) : offset;\n };\n\n return stack;\n}\n","import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) {\n for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0;\n if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y;\n }\n none(series, order);\n}\n","import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) {\n for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0;\n s0[j][1] += s0[j][0] = -y / 2;\n }\n none(series, order);\n}\n","import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return;\n for (var y = 0, j = 1, s0, m, n; j < m; ++j) {\n for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) {\n var si = series[order[i]],\n sij0 = si[j][1] || 0,\n sij1 = si[j - 1][1] || 0,\n s3 = (sij0 - sij1) / 2;\n for (var k = 0; k < i; ++k) {\n var sk = series[order[k]],\n skj0 = sk[j][1] || 0,\n skj1 = sk[j - 1][1] || 0;\n s3 += skj0 - skj1;\n }\n s1 += sij0, s2 += s3 * sij0;\n }\n s0[j - 1][1] += s0[j - 1][0] = y;\n if (s1) y -= s2 / s1;\n }\n s0[j - 1][1] += s0[j - 1][0] = y;\n none(series, order);\n}\n","var _excluded = [\"type\", \"size\", \"sizeType\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from 'react';\nimport { symbol as shapeSymbol, symbolCircle, symbolCross, symbolDiamond, symbolSquare, symbolStar, symbolTriangle, symbolWye } from 'victory-vendor/d3-shape';\nimport { clsx } from 'clsx';\nimport { filterProps } from '../util/ReactUtils';\nimport { upperFirst } from '../util/DataUtils';\nvar symbolFactories = {\n symbolCircle,\n symbolCross,\n symbolDiamond,\n symbolSquare,\n symbolStar,\n symbolTriangle,\n symbolWye\n};\nvar RADIAN = Math.PI / 180;\nvar getSymbolFactory = type => {\n var name = \"symbol\".concat(upperFirst(type));\n return symbolFactories[name] || symbolCircle;\n};\nvar calculateAreaSize = (size, sizeType, type) => {\n if (sizeType === 'area') {\n return size;\n }\n switch (type) {\n case 'cross':\n return 5 * size * size / 9;\n case 'diamond':\n return 0.5 * size * size / Math.sqrt(3);\n case 'square':\n return size * size;\n case 'star':\n {\n var angle = 18 * RADIAN;\n return 1.25 * size * size * (Math.tan(angle) - Math.tan(angle * 2) * Math.tan(angle) ** 2);\n }\n case 'triangle':\n return Math.sqrt(3) * size * size / 4;\n case 'wye':\n return (21 - 10 * Math.sqrt(3)) * size * size / 8;\n default:\n return Math.PI * size * size / 4;\n }\n};\nvar registerSymbol = (key, factory) => {\n symbolFactories[\"symbol\".concat(upperFirst(key))] = factory;\n};\nexport var Symbols = _ref => {\n var {\n type = 'circle',\n size = 64,\n sizeType = 'area'\n } = _ref,\n rest = _objectWithoutProperties(_ref, _excluded);\n var props = _objectSpread(_objectSpread({}, rest), {}, {\n type,\n size,\n sizeType\n });\n var realType = 'circle';\n if (typeof type === 'string') {\n /*\n * Our type guard is not as strong as it could be (i.e. non-existent),\n * and so despite the typescript type saying that `type` is a `SymbolType`,\n * we can get numbers or really anything, so let's have a runtime check here to fix the exception.\n *\n * https://github.com/recharts/recharts/issues/6197\n */\n realType = type;\n }\n\n /**\n * Calculate the path of curve\n * @return {String} path\n */\n var getPath = () => {\n var symbolFactory = getSymbolFactory(realType);\n var symbol = shapeSymbol().type(symbolFactory).size(calculateAreaSize(size, sizeType, realType));\n return symbol();\n };\n var {\n className,\n cx,\n cy\n } = props;\n var filteredProps = filterProps(props, true);\n if (cx === +cx && cy === +cy && size === +size) {\n return /*#__PURE__*/React.createElement(\"path\", _extends({}, filteredProps, {\n className: clsx('recharts-symbols', className),\n transform: \"translate(\".concat(cx, \", \").concat(cy, \")\"),\n d: getPath()\n }));\n }\n return null;\n};\nSymbols.registerSymbol = registerSymbol;","function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * @fileOverview Default Legend Content\n */\nimport * as React from 'react';\nimport { PureComponent } from 'react';\nimport { clsx } from 'clsx';\nimport { Surface } from '../container/Surface';\nimport { Symbols } from '../shape/Symbols';\nimport { adaptEventsOfChild } from '../util/types';\nvar SIZE = 32;\nexport class DefaultLegendContent extends PureComponent {\n /**\n * Render the path of icon\n * @param data Data of each legend item\n * @param iconType if defined, it will always render this icon. If undefined then it uses icon from data.type\n * @return Path element\n */\n renderIcon(data, iconType) {\n var {\n inactiveColor\n } = this.props;\n var halfSize = SIZE / 2;\n var sixthSize = SIZE / 6;\n var thirdSize = SIZE / 3;\n var color = data.inactive ? inactiveColor : data.color;\n var preferredIcon = iconType !== null && iconType !== void 0 ? iconType : data.type;\n if (preferredIcon === 'none') {\n return null;\n }\n if (preferredIcon === 'plainline') {\n return /*#__PURE__*/React.createElement(\"line\", {\n strokeWidth: 4,\n fill: \"none\",\n stroke: color,\n strokeDasharray: data.payload.strokeDasharray,\n x1: 0,\n y1: halfSize,\n x2: SIZE,\n y2: halfSize,\n className: \"recharts-legend-icon\"\n });\n }\n if (preferredIcon === 'line') {\n return /*#__PURE__*/React.createElement(\"path\", {\n strokeWidth: 4,\n fill: \"none\",\n stroke: color,\n d: \"M0,\".concat(halfSize, \"h\").concat(thirdSize, \"\\n A\").concat(sixthSize, \",\").concat(sixthSize, \",0,1,1,\").concat(2 * thirdSize, \",\").concat(halfSize, \"\\n H\").concat(SIZE, \"M\").concat(2 * thirdSize, \",\").concat(halfSize, \"\\n A\").concat(sixthSize, \",\").concat(sixthSize, \",0,1,1,\").concat(thirdSize, \",\").concat(halfSize),\n className: \"recharts-legend-icon\"\n });\n }\n if (preferredIcon === 'rect') {\n return /*#__PURE__*/React.createElement(\"path\", {\n stroke: \"none\",\n fill: color,\n d: \"M0,\".concat(SIZE / 8, \"h\").concat(SIZE, \"v\").concat(SIZE * 3 / 4, \"h\").concat(-SIZE, \"z\"),\n className: \"recharts-legend-icon\"\n });\n }\n if (/*#__PURE__*/React.isValidElement(data.legendIcon)) {\n var iconProps = _objectSpread({}, data);\n delete iconProps.legendIcon;\n return /*#__PURE__*/React.cloneElement(data.legendIcon, iconProps);\n }\n return /*#__PURE__*/React.createElement(Symbols, {\n fill: color,\n cx: halfSize,\n cy: halfSize,\n size: SIZE,\n sizeType: \"diameter\",\n type: preferredIcon\n });\n }\n\n /**\n * Draw items of legend\n * @return Items\n */\n renderItems() {\n var {\n payload,\n iconSize,\n layout,\n formatter,\n inactiveColor,\n iconType\n } = this.props;\n var viewBox = {\n x: 0,\n y: 0,\n width: SIZE,\n height: SIZE\n };\n var itemStyle = {\n display: layout === 'horizontal' ? 'inline-block' : 'block',\n marginRight: 10\n };\n var svgStyle = {\n display: 'inline-block',\n verticalAlign: 'middle',\n marginRight: 4\n };\n return payload.map((entry, i) => {\n var finalFormatter = entry.formatter || formatter;\n var className = clsx({\n 'recharts-legend-item': true,\n [\"legend-item-\".concat(i)]: true,\n inactive: entry.inactive\n });\n if (entry.type === 'none') {\n return null;\n }\n var color = entry.inactive ? inactiveColor : entry.color;\n var finalValue = finalFormatter ? finalFormatter(entry.value, entry, i) : entry.value;\n return /*#__PURE__*/React.createElement(\"li\", _extends({\n className: className,\n style: itemStyle\n // eslint-disable-next-line react/no-array-index-key\n ,\n key: \"legend-item-\".concat(i)\n }, adaptEventsOfChild(this.props, entry, i)), /*#__PURE__*/React.createElement(Surface, {\n width: iconSize,\n height: iconSize,\n viewBox: viewBox,\n style: svgStyle,\n \"aria-label\": \"\".concat(finalValue, \" legend icon\")\n }, this.renderIcon(entry, iconType)), /*#__PURE__*/React.createElement(\"span\", {\n className: \"recharts-legend-item-text\",\n style: {\n color\n }\n }, finalValue));\n });\n }\n render() {\n var {\n payload,\n layout,\n align\n } = this.props;\n if (!payload || !payload.length) {\n return null;\n }\n var finalStyle = {\n padding: 0,\n margin: 0,\n textAlign: layout === 'horizontal' ? align : 'left'\n };\n return /*#__PURE__*/React.createElement(\"ul\", {\n className: \"recharts-default-legend\",\n style: finalStyle\n }, this.renderItems());\n }\n}\n_defineProperty(DefaultLegendContent, \"displayName\", 'Legend');\n_defineProperty(DefaultLegendContent, \"defaultProps\", {\n align: 'center',\n iconSize: 14,\n inactiveColor: '#ccc',\n layout: 'horizontal',\n verticalAlign: 'middle'\n});","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction uniqBy(arr, mapper) {\n const map = new Map();\n for (let i = 0; i < arr.length; i++) {\n const item = arr[i];\n const key = mapper(item);\n if (!map.has(key)) {\n map.set(key, item);\n }\n }\n return Array.from(map.values());\n}\n\nexports.uniqBy = uniqBy;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction identity(x) {\n return x;\n}\n\nexports.identity = identity;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction isLength(value) {\n return Number.isSafeInteger(value) && value >= 0;\n}\n\nexports.isLength = isLength;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst isLength = require('../../predicate/isLength.js');\n\nfunction isArrayLike(value) {\n return value != null && typeof value !== 'function' && isLength.isLength(value.length);\n}\n\nexports.isArrayLike = isArrayLike;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction isObjectLike(value) {\n return typeof value === 'object' && value !== null;\n}\n\nexports.isObjectLike = isObjectLike;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst isArrayLike = require('./isArrayLike.js');\nconst isObjectLike = require('./isObjectLike.js');\n\nfunction isArrayLikeObject(value) {\n return isObjectLike.isObjectLike(value) && isArrayLike.isArrayLike(value);\n}\n\nexports.isArrayLikeObject = isArrayLikeObject;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst get = require('./get.js');\n\nfunction property(path) {\n return function (object) {\n return get.get(object, path);\n };\n}\n\nexports.property = property;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction isObject(value) {\n return value !== null && (typeof value === 'object' || typeof value === 'function');\n}\n\nexports.isObject = isObject;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction isPrimitive(value) {\n return value == null || (typeof value !== 'object' && typeof value !== 'function');\n}\n\nexports.isPrimitive = isPrimitive;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction eq(value, other) {\n return value === other || (Number.isNaN(value) && Number.isNaN(other));\n}\n\nexports.eq = eq;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst isMatch = require('./isMatch.js');\nconst isObject = require('./isObject.js');\nconst isPrimitive = require('../../predicate/isPrimitive.js');\nconst eq = require('../util/eq.js');\n\nfunction isMatchWith(target, source, compare) {\n if (typeof compare !== 'function') {\n return isMatch.isMatch(target, source);\n }\n return isMatchWithInternal(target, source, function doesMatch(objValue, srcValue, key, object, source, stack) {\n const isEqual = compare(objValue, srcValue, key, object, source, stack);\n if (isEqual !== undefined) {\n return Boolean(isEqual);\n }\n return isMatchWithInternal(objValue, srcValue, doesMatch, stack);\n }, new Map());\n}\nfunction isMatchWithInternal(target, source, compare, stack) {\n if (source === target) {\n return true;\n }\n switch (typeof source) {\n case 'object': {\n return isObjectMatch(target, source, compare, stack);\n }\n case 'function': {\n const sourceKeys = Object.keys(source);\n if (sourceKeys.length > 0) {\n return isMatchWithInternal(target, { ...source }, compare, stack);\n }\n return eq.eq(target, source);\n }\n default: {\n if (!isObject.isObject(target)) {\n return eq.eq(target, source);\n }\n if (typeof source === 'string') {\n return source === '';\n }\n return true;\n }\n }\n}\nfunction isObjectMatch(target, source, compare, stack) {\n if (source == null) {\n return true;\n }\n if (Array.isArray(source)) {\n return isArrayMatch(target, source, compare, stack);\n }\n if (source instanceof Map) {\n return isMapMatch(target, source, compare, stack);\n }\n if (source instanceof Set) {\n return isSetMatch(target, source, compare, stack);\n }\n const keys = Object.keys(source);\n if (target == null) {\n return keys.length === 0;\n }\n if (keys.length === 0) {\n return true;\n }\n if (stack && stack.has(source)) {\n return stack.get(source) === target;\n }\n if (stack) {\n stack.set(source, target);\n }\n try {\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n if (!isPrimitive.isPrimitive(target) && !(key in target)) {\n return false;\n }\n if (source[key] === undefined && target[key] !== undefined) {\n return false;\n }\n if (source[key] === null && target[key] !== null) {\n return false;\n }\n const isEqual = compare(target[key], source[key], key, target, source, stack);\n if (!isEqual) {\n return false;\n }\n }\n return true;\n }\n finally {\n if (stack) {\n stack.delete(source);\n }\n }\n}\nfunction isMapMatch(target, source, compare, stack) {\n if (source.size === 0) {\n return true;\n }\n if (!(target instanceof Map)) {\n return false;\n }\n for (const [key, sourceValue] of source.entries()) {\n const targetValue = target.get(key);\n const isEqual = compare(targetValue, sourceValue, key, target, source, stack);\n if (isEqual === false) {\n return false;\n }\n }\n return true;\n}\nfunction isArrayMatch(target, source, compare, stack) {\n if (source.length === 0) {\n return true;\n }\n if (!Array.isArray(target)) {\n return false;\n }\n const countedIndex = new Set();\n for (let i = 0; i < source.length; i++) {\n const sourceItem = source[i];\n let found = false;\n for (let j = 0; j < target.length; j++) {\n if (countedIndex.has(j)) {\n continue;\n }\n const targetItem = target[j];\n let matches = false;\n const isEqual = compare(targetItem, sourceItem, i, target, source, stack);\n if (isEqual) {\n matches = true;\n }\n if (matches) {\n countedIndex.add(j);\n found = true;\n break;\n }\n }\n if (!found) {\n return false;\n }\n }\n return true;\n}\nfunction isSetMatch(target, source, compare, stack) {\n if (source.size === 0) {\n return true;\n }\n if (!(target instanceof Set)) {\n return false;\n }\n return isArrayMatch([...target], [...source], compare, stack);\n}\n\nexports.isMatchWith = isMatchWith;\nexports.isSetMatch = isSetMatch;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst isMatchWith = require('./isMatchWith.js');\n\nfunction isMatch(target, source) {\n return isMatchWith.isMatchWith(target, source, () => undefined);\n}\n\nexports.isMatch = isMatch;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction getSymbols(object) {\n return Object.getOwnPropertySymbols(object).filter(symbol => Object.prototype.propertyIsEnumerable.call(object, symbol));\n}\n\nexports.getSymbols = getSymbols;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction getTag(value) {\n if (value == null) {\n return value === undefined ? '[object Undefined]' : '[object Null]';\n }\n return Object.prototype.toString.call(value);\n}\n\nexports.getTag = getTag;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst regexpTag = '[object RegExp]';\nconst stringTag = '[object String]';\nconst numberTag = '[object Number]';\nconst booleanTag = '[object Boolean]';\nconst argumentsTag = '[object Arguments]';\nconst symbolTag = '[object Symbol]';\nconst dateTag = '[object Date]';\nconst mapTag = '[object Map]';\nconst setTag = '[object Set]';\nconst arrayTag = '[object Array]';\nconst functionTag = '[object Function]';\nconst arrayBufferTag = '[object ArrayBuffer]';\nconst objectTag = '[object Object]';\nconst errorTag = '[object Error]';\nconst dataViewTag = '[object DataView]';\nconst uint8ArrayTag = '[object Uint8Array]';\nconst uint8ClampedArrayTag = '[object Uint8ClampedArray]';\nconst uint16ArrayTag = '[object Uint16Array]';\nconst uint32ArrayTag = '[object Uint32Array]';\nconst bigUint64ArrayTag = '[object BigUint64Array]';\nconst int8ArrayTag = '[object Int8Array]';\nconst int16ArrayTag = '[object Int16Array]';\nconst int32ArrayTag = '[object Int32Array]';\nconst bigInt64ArrayTag = '[object BigInt64Array]';\nconst float32ArrayTag = '[object Float32Array]';\nconst float64ArrayTag = '[object Float64Array]';\n\nexports.argumentsTag = argumentsTag;\nexports.arrayBufferTag = arrayBufferTag;\nexports.arrayTag = arrayTag;\nexports.bigInt64ArrayTag = bigInt64ArrayTag;\nexports.bigUint64ArrayTag = bigUint64ArrayTag;\nexports.booleanTag = booleanTag;\nexports.dataViewTag = dataViewTag;\nexports.dateTag = dateTag;\nexports.errorTag = errorTag;\nexports.float32ArrayTag = float32ArrayTag;\nexports.float64ArrayTag = float64ArrayTag;\nexports.functionTag = functionTag;\nexports.int16ArrayTag = int16ArrayTag;\nexports.int32ArrayTag = int32ArrayTag;\nexports.int8ArrayTag = int8ArrayTag;\nexports.mapTag = mapTag;\nexports.numberTag = numberTag;\nexports.objectTag = objectTag;\nexports.regexpTag = regexpTag;\nexports.setTag = setTag;\nexports.stringTag = stringTag;\nexports.symbolTag = symbolTag;\nexports.uint16ArrayTag = uint16ArrayTag;\nexports.uint32ArrayTag = uint32ArrayTag;\nexports.uint8ArrayTag = uint8ArrayTag;\nexports.uint8ClampedArrayTag = uint8ClampedArrayTag;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction isTypedArray(x) {\n return ArrayBuffer.isView(x) && !(x instanceof DataView);\n}\n\nexports.isTypedArray = isTypedArray;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst getSymbols = require('../compat/_internal/getSymbols.js');\nconst getTag = require('../compat/_internal/getTag.js');\nconst tags = require('../compat/_internal/tags.js');\nconst isPrimitive = require('../predicate/isPrimitive.js');\nconst isTypedArray = require('../predicate/isTypedArray.js');\n\nfunction cloneDeepWith(obj, cloneValue) {\n return cloneDeepWithImpl(obj, undefined, obj, new Map(), cloneValue);\n}\nfunction cloneDeepWithImpl(valueToClone, keyToClone, objectToClone, stack = new Map(), cloneValue = undefined) {\n const cloned = cloneValue?.(valueToClone, keyToClone, objectToClone, stack);\n if (cloned !== undefined) {\n return cloned;\n }\n if (isPrimitive.isPrimitive(valueToClone)) {\n return valueToClone;\n }\n if (stack.has(valueToClone)) {\n return stack.get(valueToClone);\n }\n if (Array.isArray(valueToClone)) {\n const result = new Array(valueToClone.length);\n stack.set(valueToClone, result);\n for (let i = 0; i < valueToClone.length; i++) {\n result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);\n }\n if (Object.hasOwn(valueToClone, 'index')) {\n result.index = valueToClone.index;\n }\n if (Object.hasOwn(valueToClone, 'input')) {\n result.input = valueToClone.input;\n }\n return result;\n }\n if (valueToClone instanceof Date) {\n return new Date(valueToClone.getTime());\n }\n if (valueToClone instanceof RegExp) {\n const result = new RegExp(valueToClone.source, valueToClone.flags);\n result.lastIndex = valueToClone.lastIndex;\n return result;\n }\n if (valueToClone instanceof Map) {\n const result = new Map();\n stack.set(valueToClone, result);\n for (const [key, value] of valueToClone) {\n result.set(key, cloneDeepWithImpl(value, key, objectToClone, stack, cloneValue));\n }\n return result;\n }\n if (valueToClone instanceof Set) {\n const result = new Set();\n stack.set(valueToClone, result);\n for (const value of valueToClone) {\n result.add(cloneDeepWithImpl(value, undefined, objectToClone, stack, cloneValue));\n }\n return result;\n }\n if (typeof Buffer !== 'undefined' && Buffer.isBuffer(valueToClone)) {\n return valueToClone.subarray();\n }\n if (isTypedArray.isTypedArray(valueToClone)) {\n const result = new (Object.getPrototypeOf(valueToClone).constructor)(valueToClone.length);\n stack.set(valueToClone, result);\n for (let i = 0; i < valueToClone.length; i++) {\n result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);\n }\n return result;\n }\n if (valueToClone instanceof ArrayBuffer ||\n (typeof SharedArrayBuffer !== 'undefined' && valueToClone instanceof SharedArrayBuffer)) {\n return valueToClone.slice(0);\n }\n if (valueToClone instanceof DataView) {\n const result = new DataView(valueToClone.buffer.slice(0), valueToClone.byteOffset, valueToClone.byteLength);\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (typeof File !== 'undefined' && valueToClone instanceof File) {\n const result = new File([valueToClone], valueToClone.name, {\n type: valueToClone.type,\n });\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (valueToClone instanceof Blob) {\n const result = new Blob([valueToClone], { type: valueToClone.type });\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (valueToClone instanceof Error) {\n const result = new valueToClone.constructor();\n stack.set(valueToClone, result);\n result.message = valueToClone.message;\n result.name = valueToClone.name;\n result.stack = valueToClone.stack;\n result.cause = valueToClone.cause;\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (typeof valueToClone === 'object' && isCloneableObject(valueToClone)) {\n const result = Object.create(Object.getPrototypeOf(valueToClone));\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n return valueToClone;\n}\nfunction copyProperties(target, source, objectToClone = target, stack, cloneValue) {\n const keys = [...Object.keys(source), ...getSymbols.getSymbols(source)];\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const descriptor = Object.getOwnPropertyDescriptor(target, key);\n if (descriptor == null || descriptor.writable) {\n target[key] = cloneDeepWithImpl(source[key], key, objectToClone, stack, cloneValue);\n }\n }\n}\nfunction isCloneableObject(object) {\n switch (getTag.getTag(object)) {\n case tags.argumentsTag:\n case tags.arrayTag:\n case tags.arrayBufferTag:\n case tags.dataViewTag:\n case tags.booleanTag:\n case tags.dateTag:\n case tags.float32ArrayTag:\n case tags.float64ArrayTag:\n case tags.int8ArrayTag:\n case tags.int16ArrayTag:\n case tags.int32ArrayTag:\n case tags.mapTag:\n case tags.numberTag:\n case tags.objectTag:\n case tags.regexpTag:\n case tags.setTag:\n case tags.stringTag:\n case tags.symbolTag:\n case tags.uint8ArrayTag:\n case tags.uint8ClampedArrayTag:\n case tags.uint16ArrayTag:\n case tags.uint32ArrayTag: {\n return true;\n }\n default: {\n return false;\n }\n }\n}\n\nexports.cloneDeepWith = cloneDeepWith;\nexports.cloneDeepWithImpl = cloneDeepWithImpl;\nexports.copyProperties = copyProperties;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst cloneDeepWith = require('./cloneDeepWith.js');\n\nfunction cloneDeep(obj) {\n return cloneDeepWith.cloneDeepWithImpl(obj, undefined, obj, new Map(), undefined);\n}\n\nexports.cloneDeep = cloneDeep;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst isMatch = require('./isMatch.js');\nconst cloneDeep = require('../../object/cloneDeep.js');\n\nfunction matches(source) {\n source = cloneDeep.cloneDeep(source);\n return (target) => {\n return isMatch.isMatch(target, source);\n };\n}\n\nexports.matches = matches;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst cloneDeepWith$1 = require('../../object/cloneDeepWith.js');\nconst tags = require('../_internal/tags.js');\n\nfunction cloneDeepWith(obj, customizer) {\n return cloneDeepWith$1.cloneDeepWith(obj, (value, key, object, stack) => {\n const cloned = customizer?.(value, key, object, stack);\n if (cloned !== undefined) {\n return cloned;\n }\n if (typeof obj !== 'object') {\n return undefined;\n }\n switch (Object.prototype.toString.call(obj)) {\n case tags.numberTag:\n case tags.stringTag:\n case tags.booleanTag: {\n const result = new obj.constructor(obj?.valueOf());\n cloneDeepWith$1.copyProperties(result, obj);\n return result;\n }\n case tags.argumentsTag: {\n const result = {};\n cloneDeepWith$1.copyProperties(result, obj);\n result.length = obj.length;\n result[Symbol.iterator] = obj[Symbol.iterator];\n return result;\n }\n default: {\n return undefined;\n }\n }\n });\n}\n\nexports.cloneDeepWith = cloneDeepWith;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst cloneDeepWith = require('./cloneDeepWith.js');\n\nfunction cloneDeep(obj) {\n return cloneDeepWith.cloneDeepWith(obj);\n}\n\nexports.cloneDeep = cloneDeep;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst IS_UNSIGNED_INTEGER = /^(?:0|[1-9]\\d*)$/;\nfunction isIndex(value, length = Number.MAX_SAFE_INTEGER) {\n switch (typeof value) {\n case 'number': {\n return Number.isInteger(value) && value >= 0 && value < length;\n }\n case 'symbol': {\n return false;\n }\n case 'string': {\n return IS_UNSIGNED_INTEGER.test(value);\n }\n }\n}\n\nexports.isIndex = isIndex;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst getTag = require('../_internal/getTag.js');\n\nfunction isArguments(value) {\n return value !== null && typeof value === 'object' && getTag.getTag(value) === '[object Arguments]';\n}\n\nexports.isArguments = isArguments;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst isDeepKey = require('../_internal/isDeepKey.js');\nconst isIndex = require('../_internal/isIndex.js');\nconst isArguments = require('../predicate/isArguments.js');\nconst toPath = require('../util/toPath.js');\n\nfunction has(object, path) {\n let resolvedPath;\n if (Array.isArray(path)) {\n resolvedPath = path;\n }\n else if (typeof path === 'string' && isDeepKey.isDeepKey(path) && object?.[path] == null) {\n resolvedPath = toPath.toPath(path);\n }\n else {\n resolvedPath = [path];\n }\n if (resolvedPath.length === 0) {\n return false;\n }\n let current = object;\n for (let i = 0; i < resolvedPath.length; i++) {\n const key = resolvedPath[i];\n if (current == null || !Object.hasOwn(current, key)) {\n const isSparseIndex = (Array.isArray(current) || isArguments.isArguments(current)) && isIndex.isIndex(key) && key < current.length;\n if (!isSparseIndex) {\n return false;\n }\n }\n current = current[key];\n }\n return true;\n}\n\nexports.has = has;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst isMatch = require('./isMatch.js');\nconst toKey = require('../_internal/toKey.js');\nconst cloneDeep = require('../object/cloneDeep.js');\nconst get = require('../object/get.js');\nconst has = require('../object/has.js');\n\nfunction matchesProperty(property, source) {\n switch (typeof property) {\n case 'object': {\n if (Object.is(property?.valueOf(), -0)) {\n property = '-0';\n }\n break;\n }\n case 'number': {\n property = toKey.toKey(property);\n break;\n }\n }\n source = cloneDeep.cloneDeep(source);\n return function (target) {\n const result = get.get(target, property);\n if (result === undefined) {\n return has.has(target, property);\n }\n if (source === undefined) {\n return result === undefined;\n }\n return isMatch.isMatch(result, source);\n };\n}\n\nexports.matchesProperty = matchesProperty;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst identity = require('../../function/identity.js');\nconst property = require('../object/property.js');\nconst matches = require('../predicate/matches.js');\nconst matchesProperty = require('../predicate/matchesProperty.js');\n\nfunction iteratee(value) {\n if (value == null) {\n return identity.identity;\n }\n switch (typeof value) {\n case 'function': {\n return value;\n }\n case 'object': {\n if (Array.isArray(value) && value.length === 2) {\n return matchesProperty.matchesProperty(value[0], value[1]);\n }\n return matches.matches(value);\n }\n case 'string':\n case 'symbol':\n case 'number': {\n return property.property(value);\n }\n }\n}\n\nexports.iteratee = iteratee;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst uniqBy$1 = require('../../array/uniqBy.js');\nconst identity = require('../../function/identity.js');\nconst isArrayLikeObject = require('../predicate/isArrayLikeObject.js');\nconst iteratee = require('../util/iteratee.js');\n\nfunction uniqBy(array, iteratee$1 = identity.identity) {\n if (!isArrayLikeObject.isArrayLikeObject(array)) {\n return [];\n }\n return uniqBy$1.uniqBy(Array.from(array), iteratee.iteratee(iteratee$1));\n}\n\nexports.uniqBy = uniqBy;\n","module.exports = require('../dist/compat/array/uniqBy.js').uniqBy;\n","import uniqBy from 'es-toolkit/compat/uniqBy';\n\n/**\n * This is configuration option that decides how to filter for unique values only:\n *\n * - `false` means \"no filter\"\n * - `true` means \"use recharts default filter\"\n * - function means \"use return of this function as the default key\"\n */\n\nexport function getUniqPayload(payload, option, defaultUniqBy) {\n if (option === true) {\n return uniqBy(payload, defaultUniqBy);\n }\n if (typeof option === 'function') {\n return uniqBy(payload, option);\n }\n return payload;\n}","/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\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\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","/**\n * @license React\n * use-sync-external-store-shim/with-selector.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\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\n\"use strict\";\nvar React = require(\"react\"),\n shim = require(\"use-sync-external-store/shim\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = shim.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\nexports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim/with-selector.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim/with-selector.development.js');\n}\n","import { createContext } from 'react';\n\n/*\n * This is a copy of the React-Redux context type, but with our own store type.\n * We could import directly from react-redux like this:\n * import { ReactReduxContextValue } from 'react-redux/src/components/Context';\n * but that makes typescript angry with some errors I am not sure how to resolve\n * so copy it is.\n */\n\n/**\n * We need to use our own independent Redux context because we need to avoid interfering with other people's Redux stores\n * in case they decide to install and use Recharts in another Redux app which is likely to happen.\n *\n * https://react-redux.js.org/using-react-redux/accessing-store#providing-custom-context\n */\nexport var RechartsReduxContext = /*#__PURE__*/createContext(null);","import { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector';\nimport { useContext } from 'react';\nimport { RechartsReduxContext } from './RechartsReduxContext';\nvar noopDispatch = a => a;\nexport var useAppDispatch = () => {\n var context = useContext(RechartsReduxContext);\n if (context) {\n return context.store.dispatch;\n }\n return noopDispatch;\n};\nvar noop = () => {};\nvar addNestedSubNoop = () => noop;\nvar refEquality = (a, b) => a === b;\n\n/**\n * This is a recharts variant of `useSelector` from 'react-redux' package.\n *\n * The difference is that react-redux version will throw an Error when used outside of Redux context.\n *\n * This, recharts version, will return undefined instead.\n *\n * This is because we want to allow using our components outside the Chart wrapper,\n * and have people provide all props explicitly.\n *\n * If however they use the component inside a chart wrapper then those props become optional,\n * and we read them from Redux state instead.\n *\n * @param selector for pulling things out of Redux store; will not be called if the store is not accessible\n * @return whatever the selector returned; or undefined when outside of Redux store\n */\nexport function useAppSelector(selector) {\n var context = useContext(RechartsReduxContext);\n return useSyncExternalStoreWithSelector(context ? context.subscription.addNestedSub : addNestedSubNoop, context ? context.store.getState : noop, context ? context.store.getState : noop, context ? selector : noop, refEquality);\n}","// src/devModeChecks/identityFunctionCheck.ts\nvar runIdentityFunctionCheck = (resultFunc, inputSelectorsResults, outputSelectorResult) => {\n if (inputSelectorsResults.length === 1 && inputSelectorsResults[0] === outputSelectorResult) {\n let isInputSameAsOutput = false;\n try {\n const emptyObject = {};\n if (resultFunc(emptyObject) === emptyObject)\n isInputSameAsOutput = true;\n } catch {\n }\n if (isInputSameAsOutput) {\n let stack = void 0;\n try {\n throw new Error();\n } catch (e) {\n ;\n ({ stack } = e);\n }\n console.warn(\n \"The result function returned its own inputs without modification. e.g\\n`createSelector([state => state.todos], todos => todos)`\\nThis could lead to inefficient memoization and unnecessary re-renders.\\nEnsure transformation logic is in the result function, and extraction logic is in the input selectors.\",\n { stack }\n );\n }\n }\n};\n\n// src/devModeChecks/inputStabilityCheck.ts\nvar runInputStabilityCheck = (inputSelectorResultsObject, options, inputSelectorArgs) => {\n const { memoize, memoizeOptions } = options;\n const { inputSelectorResults, inputSelectorResultsCopy } = inputSelectorResultsObject;\n const createAnEmptyObject = memoize(() => ({}), ...memoizeOptions);\n const areInputSelectorResultsEqual = createAnEmptyObject.apply(null, inputSelectorResults) === createAnEmptyObject.apply(null, inputSelectorResultsCopy);\n if (!areInputSelectorResultsEqual) {\n let stack = void 0;\n try {\n throw new Error();\n } catch (e) {\n ;\n ({ stack } = e);\n }\n console.warn(\n \"An input selector returned a different result when passed same arguments.\\nThis means your output selector will likely run more frequently than intended.\\nAvoid returning a new reference inside your input selector, e.g.\\n`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)`\",\n {\n arguments: inputSelectorArgs,\n firstInputs: inputSelectorResults,\n secondInputs: inputSelectorResultsCopy,\n stack\n }\n );\n }\n};\n\n// src/devModeChecks/setGlobalDevModeChecks.ts\nvar globalDevModeChecks = {\n inputStabilityCheck: \"once\",\n identityFunctionCheck: \"once\"\n};\nvar setGlobalDevModeChecks = (devModeChecks) => {\n Object.assign(globalDevModeChecks, devModeChecks);\n};\n\n// src/utils.ts\nvar NOT_FOUND = /* @__PURE__ */ Symbol(\"NOT_FOUND\");\nfunction assertIsFunction(func, errorMessage = `expected a function, instead received ${typeof func}`) {\n if (typeof func !== \"function\") {\n throw new TypeError(errorMessage);\n }\n}\nfunction assertIsObject(object, errorMessage = `expected an object, instead received ${typeof object}`) {\n if (typeof object !== \"object\") {\n throw new TypeError(errorMessage);\n }\n}\nfunction assertIsArrayOfFunctions(array, errorMessage = `expected all items to be functions, instead received the following types: `) {\n if (!array.every((item) => typeof item === \"function\")) {\n const itemTypes = array.map(\n (item) => typeof item === \"function\" ? `function ${item.name || \"unnamed\"}()` : typeof item\n ).join(\", \");\n throw new TypeError(`${errorMessage}[${itemTypes}]`);\n }\n}\nvar ensureIsArray = (item) => {\n return Array.isArray(item) ? item : [item];\n};\nfunction getDependencies(createSelectorArgs) {\n const dependencies = Array.isArray(createSelectorArgs[0]) ? createSelectorArgs[0] : createSelectorArgs;\n assertIsArrayOfFunctions(\n dependencies,\n `createSelector expects all input-selectors to be functions, but received the following types: `\n );\n return dependencies;\n}\nfunction collectInputSelectorResults(dependencies, inputSelectorArgs) {\n const inputSelectorResults = [];\n const { length } = dependencies;\n for (let i = 0; i < length; i++) {\n inputSelectorResults.push(dependencies[i].apply(null, inputSelectorArgs));\n }\n return inputSelectorResults;\n}\nvar getDevModeChecksExecutionInfo = (firstRun, devModeChecks) => {\n const { identityFunctionCheck, inputStabilityCheck } = {\n ...globalDevModeChecks,\n ...devModeChecks\n };\n return {\n identityFunctionCheck: {\n shouldRun: identityFunctionCheck === \"always\" || identityFunctionCheck === \"once\" && firstRun,\n run: runIdentityFunctionCheck\n },\n inputStabilityCheck: {\n shouldRun: inputStabilityCheck === \"always\" || inputStabilityCheck === \"once\" && firstRun,\n run: runInputStabilityCheck\n }\n };\n};\n\n// src/autotrackMemoize/autotracking.ts\nvar $REVISION = 0;\nvar CURRENT_TRACKER = null;\nvar Cell = class {\n revision = $REVISION;\n _value;\n _lastValue;\n _isEqual = tripleEq;\n constructor(initialValue, isEqual = tripleEq) {\n this._value = this._lastValue = initialValue;\n this._isEqual = isEqual;\n }\n // Whenever a storage value is read, it'll add itself to the current tracker if\n // one exists, entangling its state with that cache.\n get value() {\n CURRENT_TRACKER?.add(this);\n return this._value;\n }\n // Whenever a storage value is updated, we bump the global revision clock,\n // assign the revision for this storage to the new value, _and_ we schedule a\n // rerender. This is important, and it's what makes autotracking _pull_\n // based. We don't actively tell the caches which depend on the storage that\n // anything has happened. Instead, we recompute the caches when needed.\n set value(newValue) {\n if (this.value === newValue)\n return;\n this._value = newValue;\n this.revision = ++$REVISION;\n }\n};\nfunction tripleEq(a, b) {\n return a === b;\n}\nvar TrackingCache = class {\n _cachedValue;\n _cachedRevision = -1;\n _deps = [];\n hits = 0;\n fn;\n constructor(fn) {\n this.fn = fn;\n }\n clear() {\n this._cachedValue = void 0;\n this._cachedRevision = -1;\n this._deps = [];\n this.hits = 0;\n }\n get value() {\n if (this.revision > this._cachedRevision) {\n const { fn } = this;\n const currentTracker = /* @__PURE__ */ new Set();\n const prevTracker = CURRENT_TRACKER;\n CURRENT_TRACKER = currentTracker;\n this._cachedValue = fn();\n CURRENT_TRACKER = prevTracker;\n this.hits++;\n this._deps = Array.from(currentTracker);\n this._cachedRevision = this.revision;\n }\n CURRENT_TRACKER?.add(this);\n return this._cachedValue;\n }\n get revision() {\n return Math.max(...this._deps.map((d) => d.revision), 0);\n }\n};\nfunction getValue(cell) {\n if (!(cell instanceof Cell)) {\n console.warn(\"Not a valid cell! \", cell);\n }\n return cell.value;\n}\nfunction setValue(storage, value) {\n if (!(storage instanceof Cell)) {\n throw new TypeError(\n \"setValue must be passed a tracked store created with `createStorage`.\"\n );\n }\n storage.value = storage._lastValue = value;\n}\nfunction createCell(initialValue, isEqual = tripleEq) {\n return new Cell(initialValue, isEqual);\n}\nfunction createCache(fn) {\n assertIsFunction(\n fn,\n \"the first parameter to `createCache` must be a function\"\n );\n return new TrackingCache(fn);\n}\n\n// src/autotrackMemoize/tracking.ts\nvar neverEq = (a, b) => false;\nfunction createTag() {\n return createCell(null, neverEq);\n}\nfunction dirtyTag(tag, value) {\n setValue(tag, value);\n}\nvar consumeCollection = (node) => {\n let tag = node.collectionTag;\n if (tag === null) {\n tag = node.collectionTag = createTag();\n }\n getValue(tag);\n};\nvar dirtyCollection = (node) => {\n const tag = node.collectionTag;\n if (tag !== null) {\n dirtyTag(tag, null);\n }\n};\n\n// src/autotrackMemoize/proxy.ts\nvar REDUX_PROXY_LABEL = Symbol();\nvar nextId = 0;\nvar proto = Object.getPrototypeOf({});\nvar ObjectTreeNode = class {\n constructor(value) {\n this.value = value;\n this.value = value;\n this.tag.value = value;\n }\n proxy = new Proxy(this, objectProxyHandler);\n tag = createTag();\n tags = {};\n children = {};\n collectionTag = null;\n id = nextId++;\n};\nvar objectProxyHandler = {\n get(node, key) {\n function calculateResult() {\n const { value } = node;\n const childValue = Reflect.get(value, key);\n if (typeof key === \"symbol\") {\n return childValue;\n }\n if (key in proto) {\n return childValue;\n }\n if (typeof childValue === \"object\" && childValue !== null) {\n let childNode = node.children[key];\n if (childNode === void 0) {\n childNode = node.children[key] = createNode(childValue);\n }\n if (childNode.tag) {\n getValue(childNode.tag);\n }\n return childNode.proxy;\n } else {\n let tag = node.tags[key];\n if (tag === void 0) {\n tag = node.tags[key] = createTag();\n tag.value = childValue;\n }\n getValue(tag);\n return childValue;\n }\n }\n const res = calculateResult();\n return res;\n },\n ownKeys(node) {\n consumeCollection(node);\n return Reflect.ownKeys(node.value);\n },\n getOwnPropertyDescriptor(node, prop) {\n return Reflect.getOwnPropertyDescriptor(node.value, prop);\n },\n has(node, prop) {\n return Reflect.has(node.value, prop);\n }\n};\nvar ArrayTreeNode = class {\n constructor(value) {\n this.value = value;\n this.value = value;\n this.tag.value = value;\n }\n proxy = new Proxy([this], arrayProxyHandler);\n tag = createTag();\n tags = {};\n children = {};\n collectionTag = null;\n id = nextId++;\n};\nvar arrayProxyHandler = {\n get([node], key) {\n if (key === \"length\") {\n consumeCollection(node);\n }\n return objectProxyHandler.get(node, key);\n },\n ownKeys([node]) {\n return objectProxyHandler.ownKeys(node);\n },\n getOwnPropertyDescriptor([node], prop) {\n return objectProxyHandler.getOwnPropertyDescriptor(node, prop);\n },\n has([node], prop) {\n return objectProxyHandler.has(node, prop);\n }\n};\nfunction createNode(value) {\n if (Array.isArray(value)) {\n return new ArrayTreeNode(value);\n }\n return new ObjectTreeNode(value);\n}\nfunction updateNode(node, newValue) {\n const { value, tags, children } = node;\n node.value = newValue;\n if (Array.isArray(value) && Array.isArray(newValue) && value.length !== newValue.length) {\n dirtyCollection(node);\n } else {\n if (value !== newValue) {\n let oldKeysSize = 0;\n let newKeysSize = 0;\n let anyKeysAdded = false;\n for (const _key in value) {\n oldKeysSize++;\n }\n for (const key in newValue) {\n newKeysSize++;\n if (!(key in value)) {\n anyKeysAdded = true;\n break;\n }\n }\n const isDifferent = anyKeysAdded || oldKeysSize !== newKeysSize;\n if (isDifferent) {\n dirtyCollection(node);\n }\n }\n }\n for (const key in tags) {\n const childValue = value[key];\n const newChildValue = newValue[key];\n if (childValue !== newChildValue) {\n dirtyCollection(node);\n dirtyTag(tags[key], newChildValue);\n }\n if (typeof newChildValue === \"object\" && newChildValue !== null) {\n delete tags[key];\n }\n }\n for (const key in children) {\n const childNode = children[key];\n const newChildValue = newValue[key];\n const childValue = childNode.value;\n if (childValue === newChildValue) {\n continue;\n } else if (typeof newChildValue === \"object\" && newChildValue !== null) {\n updateNode(childNode, newChildValue);\n } else {\n deleteNode(childNode);\n delete children[key];\n }\n }\n}\nfunction deleteNode(node) {\n if (node.tag) {\n dirtyTag(node.tag, null);\n }\n dirtyCollection(node);\n for (const key in node.tags) {\n dirtyTag(node.tags[key], null);\n }\n for (const key in node.children) {\n deleteNode(node.children[key]);\n }\n}\n\n// src/lruMemoize.ts\nfunction createSingletonCache(equals) {\n let entry;\n return {\n get(key) {\n if (entry && equals(entry.key, key)) {\n return entry.value;\n }\n return NOT_FOUND;\n },\n put(key, value) {\n entry = { key, value };\n },\n getEntries() {\n return entry ? [entry] : [];\n },\n clear() {\n entry = void 0;\n }\n };\n}\nfunction createLruCache(maxSize, equals) {\n let entries = [];\n function get(key) {\n const cacheIndex = entries.findIndex((entry) => equals(key, entry.key));\n if (cacheIndex > -1) {\n const entry = entries[cacheIndex];\n if (cacheIndex > 0) {\n entries.splice(cacheIndex, 1);\n entries.unshift(entry);\n }\n return entry.value;\n }\n return NOT_FOUND;\n }\n function put(key, value) {\n if (get(key) === NOT_FOUND) {\n entries.unshift({ key, value });\n if (entries.length > maxSize) {\n entries.pop();\n }\n }\n }\n function getEntries() {\n return entries;\n }\n function clear() {\n entries = [];\n }\n return { get, put, getEntries, clear };\n}\nvar referenceEqualityCheck = (a, b) => a === b;\nfunction createCacheKeyComparator(equalityCheck) {\n return function areArgumentsShallowlyEqual(prev, next) {\n if (prev === null || next === null || prev.length !== next.length) {\n return false;\n }\n const { length } = prev;\n for (let i = 0; i < length; i++) {\n if (!equalityCheck(prev[i], next[i])) {\n return false;\n }\n }\n return true;\n };\n}\nfunction lruMemoize(func, equalityCheckOrOptions) {\n const providedOptions = typeof equalityCheckOrOptions === \"object\" ? equalityCheckOrOptions : { equalityCheck: equalityCheckOrOptions };\n const {\n equalityCheck = referenceEqualityCheck,\n maxSize = 1,\n resultEqualityCheck\n } = providedOptions;\n const comparator = createCacheKeyComparator(equalityCheck);\n let resultsCount = 0;\n const cache = maxSize <= 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator);\n function memoized() {\n let value = cache.get(arguments);\n if (value === NOT_FOUND) {\n value = func.apply(null, arguments);\n resultsCount++;\n if (resultEqualityCheck) {\n const entries = cache.getEntries();\n const matchingEntry = entries.find(\n (entry) => resultEqualityCheck(entry.value, value)\n );\n if (matchingEntry) {\n value = matchingEntry.value;\n resultsCount !== 0 && resultsCount--;\n }\n }\n cache.put(arguments, value);\n }\n return value;\n }\n memoized.clearCache = () => {\n cache.clear();\n memoized.resetResultsCount();\n };\n memoized.resultsCount = () => resultsCount;\n memoized.resetResultsCount = () => {\n resultsCount = 0;\n };\n return memoized;\n}\n\n// src/autotrackMemoize/autotrackMemoize.ts\nfunction autotrackMemoize(func) {\n const node = createNode(\n []\n );\n let lastArgs = null;\n const shallowEqual = createCacheKeyComparator(referenceEqualityCheck);\n const cache = createCache(() => {\n const res = func.apply(null, node.proxy);\n return res;\n });\n function memoized() {\n if (!shallowEqual(lastArgs, arguments)) {\n updateNode(node, arguments);\n lastArgs = arguments;\n }\n return cache.value;\n }\n memoized.clearCache = () => {\n return cache.clear();\n };\n return memoized;\n}\n\n// src/weakMapMemoize.ts\nvar StrongRef = class {\n constructor(value) {\n this.value = value;\n }\n deref() {\n return this.value;\n }\n};\nvar Ref = typeof WeakRef !== \"undefined\" ? WeakRef : StrongRef;\nvar UNTERMINATED = 0;\nvar TERMINATED = 1;\nfunction createCacheNode() {\n return {\n s: UNTERMINATED,\n v: void 0,\n o: null,\n p: null\n };\n}\nfunction weakMapMemoize(func, options = {}) {\n let fnNode = createCacheNode();\n const { resultEqualityCheck } = options;\n let lastResult;\n let resultsCount = 0;\n function memoized() {\n let cacheNode = fnNode;\n const { length } = arguments;\n for (let i = 0, l = length; i < l; i++) {\n const arg = arguments[i];\n if (typeof arg === \"function\" || typeof arg === \"object\" && arg !== null) {\n let objectCache = cacheNode.o;\n if (objectCache === null) {\n cacheNode.o = objectCache = /* @__PURE__ */ new WeakMap();\n }\n const objectNode = objectCache.get(arg);\n if (objectNode === void 0) {\n cacheNode = createCacheNode();\n objectCache.set(arg, cacheNode);\n } else {\n cacheNode = objectNode;\n }\n } else {\n let primitiveCache = cacheNode.p;\n if (primitiveCache === null) {\n cacheNode.p = primitiveCache = /* @__PURE__ */ new Map();\n }\n const primitiveNode = primitiveCache.get(arg);\n if (primitiveNode === void 0) {\n cacheNode = createCacheNode();\n primitiveCache.set(arg, cacheNode);\n } else {\n cacheNode = primitiveNode;\n }\n }\n }\n const terminatedNode = cacheNode;\n let result;\n if (cacheNode.s === TERMINATED) {\n result = cacheNode.v;\n } else {\n result = func.apply(null, arguments);\n resultsCount++;\n if (resultEqualityCheck) {\n const lastResultValue = lastResult?.deref?.() ?? lastResult;\n if (lastResultValue != null && resultEqualityCheck(lastResultValue, result)) {\n result = lastResultValue;\n resultsCount !== 0 && resultsCount--;\n }\n const needsWeakRef = typeof result === \"object\" && result !== null || typeof result === \"function\";\n lastResult = needsWeakRef ? new Ref(result) : result;\n }\n }\n terminatedNode.s = TERMINATED;\n terminatedNode.v = result;\n return result;\n }\n memoized.clearCache = () => {\n fnNode = createCacheNode();\n memoized.resetResultsCount();\n };\n memoized.resultsCount = () => resultsCount;\n memoized.resetResultsCount = () => {\n resultsCount = 0;\n };\n return memoized;\n}\n\n// src/createSelectorCreator.ts\nfunction createSelectorCreator(memoizeOrOptions, ...memoizeOptionsFromArgs) {\n const createSelectorCreatorOptions = typeof memoizeOrOptions === \"function\" ? {\n memoize: memoizeOrOptions,\n memoizeOptions: memoizeOptionsFromArgs\n } : memoizeOrOptions;\n const createSelector2 = (...createSelectorArgs) => {\n let recomputations = 0;\n let dependencyRecomputations = 0;\n let lastResult;\n let directlyPassedOptions = {};\n let resultFunc = createSelectorArgs.pop();\n if (typeof resultFunc === \"object\") {\n directlyPassedOptions = resultFunc;\n resultFunc = createSelectorArgs.pop();\n }\n assertIsFunction(\n resultFunc,\n `createSelector expects an output function after the inputs, but received: [${typeof resultFunc}]`\n );\n const combinedOptions = {\n ...createSelectorCreatorOptions,\n ...directlyPassedOptions\n };\n const {\n memoize,\n memoizeOptions = [],\n argsMemoize = weakMapMemoize,\n argsMemoizeOptions = [],\n devModeChecks = {}\n } = combinedOptions;\n const finalMemoizeOptions = ensureIsArray(memoizeOptions);\n const finalArgsMemoizeOptions = ensureIsArray(argsMemoizeOptions);\n const dependencies = getDependencies(createSelectorArgs);\n const memoizedResultFunc = memoize(function recomputationWrapper() {\n recomputations++;\n return resultFunc.apply(\n null,\n arguments\n );\n }, ...finalMemoizeOptions);\n let firstRun = true;\n const selector = argsMemoize(function dependenciesChecker() {\n dependencyRecomputations++;\n const inputSelectorResults = collectInputSelectorResults(\n dependencies,\n arguments\n );\n lastResult = memoizedResultFunc.apply(null, inputSelectorResults);\n if (process.env.NODE_ENV !== \"production\") {\n const { identityFunctionCheck, inputStabilityCheck } = getDevModeChecksExecutionInfo(firstRun, devModeChecks);\n if (identityFunctionCheck.shouldRun) {\n identityFunctionCheck.run(\n resultFunc,\n inputSelectorResults,\n lastResult\n );\n }\n if (inputStabilityCheck.shouldRun) {\n const inputSelectorResultsCopy = collectInputSelectorResults(\n dependencies,\n arguments\n );\n inputStabilityCheck.run(\n { inputSelectorResults, inputSelectorResultsCopy },\n { memoize, memoizeOptions: finalMemoizeOptions },\n arguments\n );\n }\n if (firstRun)\n firstRun = false;\n }\n return lastResult;\n }, ...finalArgsMemoizeOptions);\n return Object.assign(selector, {\n resultFunc,\n memoizedResultFunc,\n dependencies,\n dependencyRecomputations: () => dependencyRecomputations,\n resetDependencyRecomputations: () => {\n dependencyRecomputations = 0;\n },\n lastResult: () => lastResult,\n recomputations: () => recomputations,\n resetRecomputations: () => {\n recomputations = 0;\n },\n memoize,\n argsMemoize\n });\n };\n Object.assign(createSelector2, {\n withTypes: () => createSelector2\n });\n return createSelector2;\n}\nvar createSelector = /* @__PURE__ */ createSelectorCreator(weakMapMemoize);\n\n// src/createStructuredSelector.ts\nvar createStructuredSelector = Object.assign(\n (inputSelectorsObject, selectorCreator = createSelector) => {\n assertIsObject(\n inputSelectorsObject,\n `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof inputSelectorsObject}`\n );\n const inputSelectorKeys = Object.keys(inputSelectorsObject);\n const dependencies = inputSelectorKeys.map(\n (key) => inputSelectorsObject[key]\n );\n const structuredSelector = selectorCreator(\n dependencies,\n (...inputSelectorResults) => {\n return inputSelectorResults.reduce((composition, value, index) => {\n composition[inputSelectorKeys[index]] = value;\n return composition;\n }, {});\n }\n );\n return structuredSelector;\n },\n { withTypes: () => createStructuredSelector }\n);\nexport {\n createSelector,\n createSelectorCreator,\n createStructuredSelector,\n lruMemoize,\n referenceEqualityCheck,\n setGlobalDevModeChecks,\n autotrackMemoize as unstable_autotrackMemoize,\n weakMapMemoize\n};\n//# sourceMappingURL=reselect.mjs.map","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction getPriority(a) {\n if (typeof a === 'symbol') {\n return 1;\n }\n if (a === null) {\n return 2;\n }\n if (a === undefined) {\n return 3;\n }\n if (a !== a) {\n return 4;\n }\n return 0;\n}\nconst compareValues = (a, b, order) => {\n if (a !== b) {\n const aPriority = getPriority(a);\n const bPriority = getPriority(b);\n if (aPriority === bPriority && aPriority === 0) {\n if (a < b) {\n return order === 'desc' ? 1 : -1;\n }\n if (a > b) {\n return order === 'desc' ? -1 : 1;\n }\n }\n return order === 'desc' ? bPriority - aPriority : aPriority - bPriority;\n }\n return 0;\n};\n\nexports.compareValues = compareValues;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction isSymbol(value) {\n return typeof value === 'symbol' || value instanceof Symbol;\n}\n\nexports.isSymbol = isSymbol;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst isSymbol = require('../predicate/isSymbol.js');\n\nconst regexIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/;\nconst regexIsPlainProp = /^\\w*$/;\nfunction isKey(value, object) {\n if (Array.isArray(value)) {\n return false;\n }\n if (typeof value === 'number' || typeof value === 'boolean' || value == null || isSymbol.isSymbol(value)) {\n return true;\n }\n return ((typeof value === 'string' && (regexIsPlainProp.test(value) || !regexIsDeepProp.test(value))) ||\n (object != null && Object.hasOwn(object, value)));\n}\n\nexports.isKey = isKey;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst compareValues = require('../_internal/compareValues.js');\nconst isKey = require('../_internal/isKey.js');\nconst toPath = require('../util/toPath.js');\n\nfunction orderBy(collection, criteria, orders, guard) {\n if (collection == null) {\n return [];\n }\n orders = guard ? undefined : orders;\n if (!Array.isArray(collection)) {\n collection = Object.values(collection);\n }\n if (!Array.isArray(criteria)) {\n criteria = criteria == null ? [null] : [criteria];\n }\n if (criteria.length === 0) {\n criteria = [null];\n }\n if (!Array.isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n orders = orders.map(order => String(order));\n const getValueByNestedPath = (object, path) => {\n let target = object;\n for (let i = 0; i < path.length && target != null; ++i) {\n target = target[path[i]];\n }\n return target;\n };\n const getValueByCriterion = (criterion, object) => {\n if (object == null || criterion == null) {\n return object;\n }\n if (typeof criterion === 'object' && 'key' in criterion) {\n if (Object.hasOwn(object, criterion.key)) {\n return object[criterion.key];\n }\n return getValueByNestedPath(object, criterion.path);\n }\n if (typeof criterion === 'function') {\n return criterion(object);\n }\n if (Array.isArray(criterion)) {\n return getValueByNestedPath(object, criterion);\n }\n if (typeof object === 'object') {\n return object[criterion];\n }\n return object;\n };\n const preparedCriteria = criteria.map((criterion) => {\n if (Array.isArray(criterion) && criterion.length === 1) {\n criterion = criterion[0];\n }\n if (criterion == null || typeof criterion === 'function' || Array.isArray(criterion) || isKey.isKey(criterion)) {\n return criterion;\n }\n return { key: criterion, path: toPath.toPath(criterion) };\n });\n const preparedCollection = collection.map(item => ({\n original: item,\n criteria: preparedCriteria.map((criterion) => getValueByCriterion(criterion, item)),\n }));\n return preparedCollection\n .slice()\n .sort((a, b) => {\n for (let i = 0; i < preparedCriteria.length; i++) {\n const comparedResult = compareValues.compareValues(a.criteria[i], b.criteria[i], orders[i]);\n if (comparedResult !== 0) {\n return comparedResult;\n }\n }\n return 0;\n })\n .map(item => item.original);\n}\n\nexports.orderBy = orderBy;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction flatten(arr, depth = 1) {\n const result = [];\n const flooredDepth = Math.floor(depth);\n const recursive = (arr, currentDepth) => {\n for (let i = 0; i < arr.length; i++) {\n const item = arr[i];\n if (Array.isArray(item) && currentDepth < flooredDepth) {\n recursive(item, currentDepth + 1);\n }\n else {\n result.push(item);\n }\n }\n };\n recursive(arr, 0);\n return result;\n}\n\nexports.flatten = flatten;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst isIndex = require('./isIndex.js');\nconst isArrayLike = require('../predicate/isArrayLike.js');\nconst isObject = require('../predicate/isObject.js');\nconst eq = require('../util/eq.js');\n\nfunction isIterateeCall(value, index, object) {\n if (!isObject.isObject(object)) {\n return false;\n }\n if ((typeof index === 'number' && isArrayLike.isArrayLike(object) && isIndex.isIndex(index) && index < object.length) ||\n (typeof index === 'string' && index in object)) {\n return eq.eq(object[index], value);\n }\n return false;\n}\n\nexports.isIterateeCall = isIterateeCall;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst orderBy = require('./orderBy.js');\nconst flatten = require('../../array/flatten.js');\nconst isIterateeCall = require('../_internal/isIterateeCall.js');\n\nfunction sortBy(collection, ...criteria) {\n const length = criteria.length;\n if (length > 1 && isIterateeCall.isIterateeCall(collection, criteria[0], criteria[1])) {\n criteria = [];\n }\n else if (length > 2 && isIterateeCall.isIterateeCall(criteria[0], criteria[1], criteria[2])) {\n criteria = [criteria[0]];\n }\n return orderBy.orderBy(collection, flatten.flatten(criteria), ['asc']);\n}\n\nexports.sortBy = sortBy;\n","module.exports = require('../dist/compat/array/sortBy.js').sortBy;\n","import { createSelector } from 'reselect';\nimport sortBy from 'es-toolkit/compat/sortBy';\nexport var selectLegendSettings = state => state.legend.settings;\nexport var selectLegendSize = state => state.legend.size;\nvar selectAllLegendPayload2DArray = state => state.legend.payload;\nexport var selectLegendPayload = createSelector([selectAllLegendPayload2DArray, selectLegendSettings], (payloads, _ref) => {\n var {\n itemSorter\n } = _ref;\n var flat = payloads.flat(1);\n return itemSorter ? sortBy(flat, itemSorter) : flat;\n});","import { useAppSelector } from '../state/hooks';\nimport { selectLegendPayload } from '../state/selectors/legendSelectors';\n\n/**\n * Use this hook in Legend, or anywhere else where you want to read the current Legend items.\n * @return all Legend items ready to be rendered\n */\nexport function useLegendPayload() {\n return useAppSelector(selectLegendPayload);\n}","import { useCallback, useState } from 'react';\nvar EPS = 1;\n\n/**\n * TODO this documentation does not reflect what this hook is doing, update it.\n * Stores the `offsetHeight`, `offsetLeft`, `offsetTop`, and `offsetWidth` of a DOM element.\n */\n\n/**\n * Use this to listen to element layout changes.\n *\n * Very useful for reading actual sizes of DOM elements relative to the viewport.\n *\n * @param extraDependencies use this to trigger new DOM dimensions read when any of these change. Good for things like payload and label, that will re-render something down in the children array, but you want to read the layout box of a parent.\n * @returns [lastElementOffset, updateElementOffset] most recent value, and setter. Pass the setter to a DOM element ref like this: `<div ref={updateElementOffset}>`\n */\nexport function useElementOffset() {\n var extraDependencies = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var [lastBoundingBox, setLastBoundingBox] = useState({\n height: 0,\n left: 0,\n top: 0,\n width: 0\n });\n var updateBoundingBox = useCallback(node => {\n if (node != null) {\n var rect = node.getBoundingClientRect();\n var box = {\n height: rect.height,\n left: rect.left,\n top: rect.top,\n width: rect.width\n };\n if (Math.abs(box.height - lastBoundingBox.height) > EPS || Math.abs(box.left - lastBoundingBox.left) > EPS || Math.abs(box.top - lastBoundingBox.top) > EPS || Math.abs(box.width - lastBoundingBox.width) > EPS) {\n setLastBoundingBox({\n height: box.height,\n left: box.left,\n top: box.top,\n width: box.width\n });\n }\n }\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [lastBoundingBox.width, lastBoundingBox.height, lastBoundingBox.top, lastBoundingBox.left, ...extraDependencies]);\n return [lastBoundingBox, updateBoundingBox];\n}","// src/utils/formatProdErrorMessage.ts\nfunction formatProdErrorMessage(code) {\n return `Minified Redux error #${code}; visit https://redux.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;\n}\n\n// src/utils/symbol-observable.ts\nvar $$observable = /* @__PURE__ */ (() => typeof Symbol === \"function\" && Symbol.observable || \"@@observable\")();\nvar symbol_observable_default = $$observable;\n\n// src/utils/actionTypes.ts\nvar randomString = () => Math.random().toString(36).substring(7).split(\"\").join(\".\");\nvar ActionTypes = {\n INIT: `@@redux/INIT${/* @__PURE__ */ randomString()}`,\n REPLACE: `@@redux/REPLACE${/* @__PURE__ */ randomString()}`,\n PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${randomString()}`\n};\nvar actionTypes_default = ActionTypes;\n\n// src/utils/isPlainObject.ts\nfunction isPlainObject(obj) {\n if (typeof obj !== \"object\" || obj === null)\n return false;\n let proto = obj;\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n return Object.getPrototypeOf(obj) === proto || Object.getPrototypeOf(obj) === null;\n}\n\n// src/utils/kindOf.ts\nfunction miniKindOf(val) {\n if (val === void 0)\n return \"undefined\";\n if (val === null)\n return \"null\";\n const type = typeof val;\n switch (type) {\n case \"boolean\":\n case \"string\":\n case \"number\":\n case \"symbol\":\n case \"function\": {\n return type;\n }\n }\n if (Array.isArray(val))\n return \"array\";\n if (isDate(val))\n return \"date\";\n if (isError(val))\n return \"error\";\n const constructorName = ctorName(val);\n switch (constructorName) {\n case \"Symbol\":\n case \"Promise\":\n case \"WeakMap\":\n case \"WeakSet\":\n case \"Map\":\n case \"Set\":\n return constructorName;\n }\n return Object.prototype.toString.call(val).slice(8, -1).toLowerCase().replace(/\\s/g, \"\");\n}\nfunction ctorName(val) {\n return typeof val.constructor === \"function\" ? val.constructor.name : null;\n}\nfunction isError(val) {\n return val instanceof Error || typeof val.message === \"string\" && val.constructor && typeof val.constructor.stackTraceLimit === \"number\";\n}\nfunction isDate(val) {\n if (val instanceof Date)\n return true;\n return typeof val.toDateString === \"function\" && typeof val.getDate === \"function\" && typeof val.setDate === \"function\";\n}\nfunction kindOf(val) {\n let typeOfVal = typeof val;\n if (process.env.NODE_ENV !== \"production\") {\n typeOfVal = miniKindOf(val);\n }\n return typeOfVal;\n}\n\n// src/createStore.ts\nfunction createStore(reducer, preloadedState, enhancer) {\n if (typeof reducer !== \"function\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(2) : `Expected the root reducer to be a function. Instead, received: '${kindOf(reducer)}'`);\n }\n if (typeof preloadedState === \"function\" && typeof enhancer === \"function\" || typeof enhancer === \"function\" && typeof arguments[3] === \"function\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(0) : \"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.\");\n }\n if (typeof preloadedState === \"function\" && typeof enhancer === \"undefined\") {\n enhancer = preloadedState;\n preloadedState = void 0;\n }\n if (typeof enhancer !== \"undefined\") {\n if (typeof enhancer !== \"function\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(1) : `Expected the enhancer to be a function. Instead, received: '${kindOf(enhancer)}'`);\n }\n return enhancer(createStore)(reducer, preloadedState);\n }\n let currentReducer = reducer;\n let currentState = preloadedState;\n let currentListeners = /* @__PURE__ */ new Map();\n let nextListeners = currentListeners;\n let listenerIdCounter = 0;\n let isDispatching = false;\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = /* @__PURE__ */ new Map();\n currentListeners.forEach((listener, key) => {\n nextListeners.set(key, listener);\n });\n }\n }\n function getState() {\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(3) : \"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.\");\n }\n return currentState;\n }\n function subscribe(listener) {\n if (typeof listener !== \"function\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(4) : `Expected the listener to be a function. Instead, received: '${kindOf(listener)}'`);\n }\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(5) : \"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.\");\n }\n let isSubscribed = true;\n ensureCanMutateNextListeners();\n const listenerId = listenerIdCounter++;\n nextListeners.set(listenerId, listener);\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(6) : \"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.\");\n }\n isSubscribed = false;\n ensureCanMutateNextListeners();\n nextListeners.delete(listenerId);\n currentListeners = null;\n };\n }\n function dispatch(action) {\n if (!isPlainObject(action)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(7) : `Actions must be plain objects. Instead, the actual type was: '${kindOf(action)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);\n }\n if (typeof action.type === \"undefined\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(8) : 'Actions may not have an undefined \"type\" property. You may have misspelled an action type string constant.');\n }\n if (typeof action.type !== \"string\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(17) : `Action \"type\" property must be a string. Instead, the actual type was: '${kindOf(action.type)}'. Value was: '${action.type}' (stringified)`);\n }\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(9) : \"Reducers may not dispatch actions.\");\n }\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n const listeners = currentListeners = nextListeners;\n listeners.forEach((listener) => {\n listener();\n });\n return action;\n }\n function replaceReducer(nextReducer) {\n if (typeof nextReducer !== \"function\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(10) : `Expected the nextReducer to be a function. Instead, received: '${kindOf(nextReducer)}`);\n }\n currentReducer = nextReducer;\n dispatch({\n type: actionTypes_default.REPLACE\n });\n }\n function observable() {\n const outerSubscribe = subscribe;\n return {\n /**\n * The minimal observable subscription method.\n * @param observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe(observer) {\n if (typeof observer !== \"object\" || observer === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(11) : `Expected the observer to be an object. Instead, received: '${kindOf(observer)}'`);\n }\n function observeState() {\n const observerAsObserver = observer;\n if (observerAsObserver.next) {\n observerAsObserver.next(getState());\n }\n }\n observeState();\n const unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe\n };\n },\n [symbol_observable_default]() {\n return this;\n }\n };\n }\n dispatch({\n type: actionTypes_default.INIT\n });\n const store = {\n dispatch,\n subscribe,\n getState,\n replaceReducer,\n [symbol_observable_default]: observable\n };\n return store;\n}\nfunction legacy_createStore(reducer, preloadedState, enhancer) {\n return createStore(reducer, preloadedState, enhancer);\n}\n\n// src/utils/warning.ts\nfunction warning(message) {\n if (typeof console !== \"undefined\" && typeof console.error === \"function\") {\n console.error(message);\n }\n try {\n throw new Error(message);\n } catch (e) {\n }\n}\n\n// src/combineReducers.ts\nfunction getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {\n const reducerKeys = Object.keys(reducers);\n const argumentName = action && action.type === actionTypes_default.INIT ? \"preloadedState argument passed to createStore\" : \"previous state received by the reducer\";\n if (reducerKeys.length === 0) {\n return \"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.\";\n }\n if (!isPlainObject(inputState)) {\n return `The ${argumentName} has unexpected type of \"${kindOf(inputState)}\". Expected argument to be an object with the following keys: \"${reducerKeys.join('\", \"')}\"`;\n }\n const unexpectedKeys = Object.keys(inputState).filter((key) => !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key]);\n unexpectedKeys.forEach((key) => {\n unexpectedKeyCache[key] = true;\n });\n if (action && action.type === actionTypes_default.REPLACE)\n return;\n if (unexpectedKeys.length > 0) {\n return `Unexpected ${unexpectedKeys.length > 1 ? \"keys\" : \"key\"} \"${unexpectedKeys.join('\", \"')}\" found in ${argumentName}. Expected to find one of the known reducer keys instead: \"${reducerKeys.join('\", \"')}\". Unexpected keys will be ignored.`;\n }\n}\nfunction assertReducerShape(reducers) {\n Object.keys(reducers).forEach((key) => {\n const reducer = reducers[key];\n const initialState = reducer(void 0, {\n type: actionTypes_default.INIT\n });\n if (typeof initialState === \"undefined\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(12) : `The slice reducer for key \"${key}\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);\n }\n if (typeof reducer(void 0, {\n type: actionTypes_default.PROBE_UNKNOWN_ACTION()\n }) === \"undefined\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(13) : `The slice reducer for key \"${key}\" returned undefined when probed with a random type. Don't try to handle '${actionTypes_default.INIT}' or other actions in \"redux/*\" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);\n }\n });\n}\nfunction combineReducers(reducers) {\n const reducerKeys = Object.keys(reducers);\n const finalReducers = {};\n for (let i = 0; i < reducerKeys.length; i++) {\n const key = reducerKeys[i];\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof reducers[key] === \"undefined\") {\n warning(`No reducer provided for key \"${key}\"`);\n }\n }\n if (typeof reducers[key] === \"function\") {\n finalReducers[key] = reducers[key];\n }\n }\n const finalReducerKeys = Object.keys(finalReducers);\n let unexpectedKeyCache;\n if (process.env.NODE_ENV !== \"production\") {\n unexpectedKeyCache = {};\n }\n let shapeAssertionError;\n try {\n assertReducerShape(finalReducers);\n } catch (e) {\n shapeAssertionError = e;\n }\n return function combination(state = {}, action) {\n if (shapeAssertionError) {\n throw shapeAssertionError;\n }\n if (process.env.NODE_ENV !== \"production\") {\n const warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);\n if (warningMessage) {\n warning(warningMessage);\n }\n }\n let hasChanged = false;\n const nextState = {};\n for (let i = 0; i < finalReducerKeys.length; i++) {\n const key = finalReducerKeys[i];\n const reducer = finalReducers[key];\n const previousStateForKey = state[key];\n const nextStateForKey = reducer(previousStateForKey, action);\n if (typeof nextStateForKey === \"undefined\") {\n const actionType = action && action.type;\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(14) : `When called with an action of type ${actionType ? `\"${String(actionType)}\"` : \"(unknown type)\"}, the slice reducer for key \"${key}\" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`);\n }\n nextState[key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;\n return hasChanged ? nextState : state;\n };\n}\n\n// src/bindActionCreators.ts\nfunction bindActionCreator(actionCreator, dispatch) {\n return function(...args) {\n return dispatch(actionCreator.apply(this, args));\n };\n}\nfunction bindActionCreators(actionCreators, dispatch) {\n if (typeof actionCreators === \"function\") {\n return bindActionCreator(actionCreators, dispatch);\n }\n if (typeof actionCreators !== \"object\" || actionCreators === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(16) : `bindActionCreators expected an object or a function, but instead received: '${kindOf(actionCreators)}'. Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?`);\n }\n const boundActionCreators = {};\n for (const key in actionCreators) {\n const actionCreator = actionCreators[key];\n if (typeof actionCreator === \"function\") {\n boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);\n }\n }\n return boundActionCreators;\n}\n\n// src/compose.ts\nfunction compose(...funcs) {\n if (funcs.length === 0) {\n return (arg) => arg;\n }\n if (funcs.length === 1) {\n return funcs[0];\n }\n return funcs.reduce((a, b) => (...args) => a(b(...args)));\n}\n\n// src/applyMiddleware.ts\nfunction applyMiddleware(...middlewares) {\n return (createStore2) => (reducer, preloadedState) => {\n const store = createStore2(reducer, preloadedState);\n let dispatch = () => {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(15) : \"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.\");\n };\n const middlewareAPI = {\n getState: store.getState,\n dispatch: (action, ...args) => dispatch(action, ...args)\n };\n const chain = middlewares.map((middleware) => middleware(middlewareAPI));\n dispatch = compose(...chain)(store.dispatch);\n return {\n ...store,\n dispatch\n };\n };\n}\n\n// src/utils/isAction.ts\nfunction isAction(action) {\n return isPlainObject(action) && \"type\" in action && typeof action.type === \"string\";\n}\nexport {\n actionTypes_default as __DO_NOT_USE__ActionTypes,\n applyMiddleware,\n bindActionCreators,\n combineReducers,\n compose,\n createStore,\n isAction,\n isPlainObject,\n legacy_createStore\n};\n//# sourceMappingURL=redux.mjs.map","// src/utils/env.ts\nvar NOTHING = Symbol.for(\"immer-nothing\");\nvar DRAFTABLE = Symbol.for(\"immer-draftable\");\nvar DRAFT_STATE = Symbol.for(\"immer-state\");\n\n// src/utils/errors.ts\nvar errors = process.env.NODE_ENV !== \"production\" ? [\n // All error codes, starting by 0:\n function(plugin) {\n return `The plugin for '${plugin}' has not been loaded into Immer. To enable the plugin, import and call \\`enable${plugin}()\\` when initializing your application.`;\n },\n function(thing) {\n return `produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${thing}'`;\n },\n \"This object has been frozen and should not be mutated\",\n function(data) {\n return \"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? \" + data;\n },\n \"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.\",\n \"Immer forbids circular references\",\n \"The first or second argument to `produce` must be a function\",\n \"The third argument to `produce` must be a function or undefined\",\n \"First argument to `createDraft` must be a plain object, an array, or an immerable object\",\n \"First argument to `finishDraft` must be a draft returned by `createDraft`\",\n function(thing) {\n return `'current' expects a draft, got: ${thing}`;\n },\n \"Object.defineProperty() cannot be used on an Immer draft\",\n \"Object.setPrototypeOf() cannot be used on an Immer draft\",\n \"Immer only supports deleting array indices\",\n \"Immer only supports setting array indices and the 'length' property\",\n function(thing) {\n return `'original' expects a draft, got: ${thing}`;\n }\n // Note: if more errors are added, the errorOffset in Patches.ts should be increased\n // See Patches.ts for additional errors\n] : [];\nfunction die(error, ...args) {\n if (process.env.NODE_ENV !== \"production\") {\n const e = errors[error];\n const msg = typeof e === \"function\" ? e.apply(null, args) : e;\n throw new Error(`[Immer] ${msg}`);\n }\n throw new Error(\n `[Immer] minified error nr: ${error}. Full error at: https://bit.ly/3cXEKWf`\n );\n}\n\n// src/utils/common.ts\nvar getPrototypeOf = Object.getPrototypeOf;\nfunction isDraft(value) {\n return !!value && !!value[DRAFT_STATE];\n}\nfunction isDraftable(value) {\n if (!value)\n return false;\n return isPlainObject(value) || Array.isArray(value) || !!value[DRAFTABLE] || !!value.constructor?.[DRAFTABLE] || isMap(value) || isSet(value);\n}\nvar objectCtorString = Object.prototype.constructor.toString();\nfunction isPlainObject(value) {\n if (!value || typeof value !== \"object\")\n return false;\n const proto = getPrototypeOf(value);\n if (proto === null) {\n return true;\n }\n const Ctor = Object.hasOwnProperty.call(proto, \"constructor\") && proto.constructor;\n if (Ctor === Object)\n return true;\n return typeof Ctor == \"function\" && Function.toString.call(Ctor) === objectCtorString;\n}\nfunction original(value) {\n if (!isDraft(value))\n die(15, value);\n return value[DRAFT_STATE].base_;\n}\nfunction each(obj, iter) {\n if (getArchtype(obj) === 0 /* Object */) {\n Reflect.ownKeys(obj).forEach((key) => {\n iter(key, obj[key], obj);\n });\n } else {\n obj.forEach((entry, index) => iter(index, entry, obj));\n }\n}\nfunction getArchtype(thing) {\n const state = thing[DRAFT_STATE];\n return state ? state.type_ : Array.isArray(thing) ? 1 /* Array */ : isMap(thing) ? 2 /* Map */ : isSet(thing) ? 3 /* Set */ : 0 /* Object */;\n}\nfunction has(thing, prop) {\n return getArchtype(thing) === 2 /* Map */ ? thing.has(prop) : Object.prototype.hasOwnProperty.call(thing, prop);\n}\nfunction get(thing, prop) {\n return getArchtype(thing) === 2 /* Map */ ? thing.get(prop) : thing[prop];\n}\nfunction set(thing, propOrOldValue, value) {\n const t = getArchtype(thing);\n if (t === 2 /* Map */)\n thing.set(propOrOldValue, value);\n else if (t === 3 /* Set */) {\n thing.add(value);\n } else\n thing[propOrOldValue] = value;\n}\nfunction is(x, y) {\n if (x === y) {\n return x !== 0 || 1 / x === 1 / y;\n } else {\n return x !== x && y !== y;\n }\n}\nfunction isMap(target) {\n return target instanceof Map;\n}\nfunction isSet(target) {\n return target instanceof Set;\n}\nfunction latest(state) {\n return state.copy_ || state.base_;\n}\nfunction shallowCopy(base, strict) {\n if (isMap(base)) {\n return new Map(base);\n }\n if (isSet(base)) {\n return new Set(base);\n }\n if (Array.isArray(base))\n return Array.prototype.slice.call(base);\n const isPlain = isPlainObject(base);\n if (strict === true || strict === \"class_only\" && !isPlain) {\n const descriptors = Object.getOwnPropertyDescriptors(base);\n delete descriptors[DRAFT_STATE];\n let keys = Reflect.ownKeys(descriptors);\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const desc = descriptors[key];\n if (desc.writable === false) {\n desc.writable = true;\n desc.configurable = true;\n }\n if (desc.get || desc.set)\n descriptors[key] = {\n configurable: true,\n writable: true,\n // could live with !!desc.set as well here...\n enumerable: desc.enumerable,\n value: base[key]\n };\n }\n return Object.create(getPrototypeOf(base), descriptors);\n } else {\n const proto = getPrototypeOf(base);\n if (proto !== null && isPlain) {\n return { ...base };\n }\n const obj = Object.create(proto);\n return Object.assign(obj, base);\n }\n}\nfunction freeze(obj, deep = false) {\n if (isFrozen(obj) || isDraft(obj) || !isDraftable(obj))\n return obj;\n if (getArchtype(obj) > 1) {\n Object.defineProperties(obj, {\n set: { value: dontMutateFrozenCollections },\n add: { value: dontMutateFrozenCollections },\n clear: { value: dontMutateFrozenCollections },\n delete: { value: dontMutateFrozenCollections }\n });\n }\n Object.freeze(obj);\n if (deep)\n Object.values(obj).forEach((value) => freeze(value, true));\n return obj;\n}\nfunction dontMutateFrozenCollections() {\n die(2);\n}\nfunction isFrozen(obj) {\n return Object.isFrozen(obj);\n}\n\n// src/utils/plugins.ts\nvar plugins = {};\nfunction getPlugin(pluginKey) {\n const plugin = plugins[pluginKey];\n if (!plugin) {\n die(0, pluginKey);\n }\n return plugin;\n}\nfunction loadPlugin(pluginKey, implementation) {\n if (!plugins[pluginKey])\n plugins[pluginKey] = implementation;\n}\n\n// src/core/scope.ts\nvar currentScope;\nfunction getCurrentScope() {\n return currentScope;\n}\nfunction createScope(parent_, immer_) {\n return {\n drafts_: [],\n parent_,\n immer_,\n // Whenever the modified draft contains a draft from another scope, we\n // need to prevent auto-freezing so the unowned draft can be finalized.\n canAutoFreeze_: true,\n unfinalizedDrafts_: 0\n };\n}\nfunction usePatchesInScope(scope, patchListener) {\n if (patchListener) {\n getPlugin(\"Patches\");\n scope.patches_ = [];\n scope.inversePatches_ = [];\n scope.patchListener_ = patchListener;\n }\n}\nfunction revokeScope(scope) {\n leaveScope(scope);\n scope.drafts_.forEach(revokeDraft);\n scope.drafts_ = null;\n}\nfunction leaveScope(scope) {\n if (scope === currentScope) {\n currentScope = scope.parent_;\n }\n}\nfunction enterScope(immer2) {\n return currentScope = createScope(currentScope, immer2);\n}\nfunction revokeDraft(draft) {\n const state = draft[DRAFT_STATE];\n if (state.type_ === 0 /* Object */ || state.type_ === 1 /* Array */)\n state.revoke_();\n else\n state.revoked_ = true;\n}\n\n// src/core/finalize.ts\nfunction processResult(result, scope) {\n scope.unfinalizedDrafts_ = scope.drafts_.length;\n const baseDraft = scope.drafts_[0];\n const isReplaced = result !== void 0 && result !== baseDraft;\n if (isReplaced) {\n if (baseDraft[DRAFT_STATE].modified_) {\n revokeScope(scope);\n die(4);\n }\n if (isDraftable(result)) {\n result = finalize(scope, result);\n if (!scope.parent_)\n maybeFreeze(scope, result);\n }\n if (scope.patches_) {\n getPlugin(\"Patches\").generateReplacementPatches_(\n baseDraft[DRAFT_STATE].base_,\n result,\n scope.patches_,\n scope.inversePatches_\n );\n }\n } else {\n result = finalize(scope, baseDraft, []);\n }\n revokeScope(scope);\n if (scope.patches_) {\n scope.patchListener_(scope.patches_, scope.inversePatches_);\n }\n return result !== NOTHING ? result : void 0;\n}\nfunction finalize(rootScope, value, path) {\n if (isFrozen(value))\n return value;\n const state = value[DRAFT_STATE];\n if (!state) {\n each(\n value,\n (key, childValue) => finalizeProperty(rootScope, state, value, key, childValue, path)\n );\n return value;\n }\n if (state.scope_ !== rootScope)\n return value;\n if (!state.modified_) {\n maybeFreeze(rootScope, state.base_, true);\n return state.base_;\n }\n if (!state.finalized_) {\n state.finalized_ = true;\n state.scope_.unfinalizedDrafts_--;\n const result = state.copy_;\n let resultEach = result;\n let isSet2 = false;\n if (state.type_ === 3 /* Set */) {\n resultEach = new Set(result);\n result.clear();\n isSet2 = true;\n }\n each(\n resultEach,\n (key, childValue) => finalizeProperty(rootScope, state, result, key, childValue, path, isSet2)\n );\n maybeFreeze(rootScope, result, false);\n if (path && rootScope.patches_) {\n getPlugin(\"Patches\").generatePatches_(\n state,\n path,\n rootScope.patches_,\n rootScope.inversePatches_\n );\n }\n }\n return state.copy_;\n}\nfunction finalizeProperty(rootScope, parentState, targetObject, prop, childValue, rootPath, targetIsSet) {\n if (process.env.NODE_ENV !== \"production\" && childValue === targetObject)\n die(5);\n if (isDraft(childValue)) {\n const path = rootPath && parentState && parentState.type_ !== 3 /* Set */ && // Set objects are atomic since they have no keys.\n !has(parentState.assigned_, prop) ? rootPath.concat(prop) : void 0;\n const res = finalize(rootScope, childValue, path);\n set(targetObject, prop, res);\n if (isDraft(res)) {\n rootScope.canAutoFreeze_ = false;\n } else\n return;\n } else if (targetIsSet) {\n targetObject.add(childValue);\n }\n if (isDraftable(childValue) && !isFrozen(childValue)) {\n if (!rootScope.immer_.autoFreeze_ && rootScope.unfinalizedDrafts_ < 1) {\n return;\n }\n finalize(rootScope, childValue);\n if ((!parentState || !parentState.scope_.parent_) && typeof prop !== \"symbol\" && (isMap(targetObject) ? targetObject.has(prop) : Object.prototype.propertyIsEnumerable.call(targetObject, prop)))\n maybeFreeze(rootScope, childValue);\n }\n}\nfunction maybeFreeze(scope, value, deep = false) {\n if (!scope.parent_ && scope.immer_.autoFreeze_ && scope.canAutoFreeze_) {\n freeze(value, deep);\n }\n}\n\n// src/core/proxy.ts\nfunction createProxyProxy(base, parent) {\n const isArray = Array.isArray(base);\n const state = {\n type_: isArray ? 1 /* Array */ : 0 /* Object */,\n // Track which produce call this is associated with.\n scope_: parent ? parent.scope_ : getCurrentScope(),\n // True for both shallow and deep changes.\n modified_: false,\n // Used during finalization.\n finalized_: false,\n // Track which properties have been assigned (true) or deleted (false).\n assigned_: {},\n // The parent draft state.\n parent_: parent,\n // The base state.\n base_: base,\n // The base proxy.\n draft_: null,\n // set below\n // The base copy with any updated values.\n copy_: null,\n // Called by the `produce` function.\n revoke_: null,\n isManual_: false\n };\n let target = state;\n let traps = objectTraps;\n if (isArray) {\n target = [state];\n traps = arrayTraps;\n }\n const { revoke, proxy } = Proxy.revocable(target, traps);\n state.draft_ = proxy;\n state.revoke_ = revoke;\n return proxy;\n}\nvar objectTraps = {\n get(state, prop) {\n if (prop === DRAFT_STATE)\n return state;\n const source = latest(state);\n if (!has(source, prop)) {\n return readPropFromProto(state, source, prop);\n }\n const value = source[prop];\n if (state.finalized_ || !isDraftable(value)) {\n return value;\n }\n if (value === peek(state.base_, prop)) {\n prepareCopy(state);\n return state.copy_[prop] = createProxy(value, state);\n }\n return value;\n },\n has(state, prop) {\n return prop in latest(state);\n },\n ownKeys(state) {\n return Reflect.ownKeys(latest(state));\n },\n set(state, prop, value) {\n const desc = getDescriptorFromProto(latest(state), prop);\n if (desc?.set) {\n desc.set.call(state.draft_, value);\n return true;\n }\n if (!state.modified_) {\n const current2 = peek(latest(state), prop);\n const currentState = current2?.[DRAFT_STATE];\n if (currentState && currentState.base_ === value) {\n state.copy_[prop] = value;\n state.assigned_[prop] = false;\n return true;\n }\n if (is(value, current2) && (value !== void 0 || has(state.base_, prop)))\n return true;\n prepareCopy(state);\n markChanged(state);\n }\n if (state.copy_[prop] === value && // special case: handle new props with value 'undefined'\n (value !== void 0 || prop in state.copy_) || // special case: NaN\n Number.isNaN(value) && Number.isNaN(state.copy_[prop]))\n return true;\n state.copy_[prop] = value;\n state.assigned_[prop] = true;\n return true;\n },\n deleteProperty(state, prop) {\n if (peek(state.base_, prop) !== void 0 || prop in state.base_) {\n state.assigned_[prop] = false;\n prepareCopy(state);\n markChanged(state);\n } else {\n delete state.assigned_[prop];\n }\n if (state.copy_) {\n delete state.copy_[prop];\n }\n return true;\n },\n // Note: We never coerce `desc.value` into an Immer draft, because we can't make\n // the same guarantee in ES5 mode.\n getOwnPropertyDescriptor(state, prop) {\n const owner = latest(state);\n const desc = Reflect.getOwnPropertyDescriptor(owner, prop);\n if (!desc)\n return desc;\n return {\n writable: true,\n configurable: state.type_ !== 1 /* Array */ || prop !== \"length\",\n enumerable: desc.enumerable,\n value: owner[prop]\n };\n },\n defineProperty() {\n die(11);\n },\n getPrototypeOf(state) {\n return getPrototypeOf(state.base_);\n },\n setPrototypeOf() {\n die(12);\n }\n};\nvar arrayTraps = {};\neach(objectTraps, (key, fn) => {\n arrayTraps[key] = function() {\n arguments[0] = arguments[0][0];\n return fn.apply(this, arguments);\n };\n});\narrayTraps.deleteProperty = function(state, prop) {\n if (process.env.NODE_ENV !== \"production\" && isNaN(parseInt(prop)))\n die(13);\n return arrayTraps.set.call(this, state, prop, void 0);\n};\narrayTraps.set = function(state, prop, value) {\n if (process.env.NODE_ENV !== \"production\" && prop !== \"length\" && isNaN(parseInt(prop)))\n die(14);\n return objectTraps.set.call(this, state[0], prop, value, state[0]);\n};\nfunction peek(draft, prop) {\n const state = draft[DRAFT_STATE];\n const source = state ? latest(state) : draft;\n return source[prop];\n}\nfunction readPropFromProto(state, source, prop) {\n const desc = getDescriptorFromProto(source, prop);\n return desc ? `value` in desc ? desc.value : (\n // This is a very special case, if the prop is a getter defined by the\n // prototype, we should invoke it with the draft as context!\n desc.get?.call(state.draft_)\n ) : void 0;\n}\nfunction getDescriptorFromProto(source, prop) {\n if (!(prop in source))\n return void 0;\n let proto = getPrototypeOf(source);\n while (proto) {\n const desc = Object.getOwnPropertyDescriptor(proto, prop);\n if (desc)\n return desc;\n proto = getPrototypeOf(proto);\n }\n return void 0;\n}\nfunction markChanged(state) {\n if (!state.modified_) {\n state.modified_ = true;\n if (state.parent_) {\n markChanged(state.parent_);\n }\n }\n}\nfunction prepareCopy(state) {\n if (!state.copy_) {\n state.copy_ = shallowCopy(\n state.base_,\n state.scope_.immer_.useStrictShallowCopy_\n );\n }\n}\n\n// src/core/immerClass.ts\nvar Immer2 = class {\n constructor(config) {\n this.autoFreeze_ = true;\n this.useStrictShallowCopy_ = false;\n /**\n * The `produce` function takes a value and a \"recipe function\" (whose\n * return value often depends on the base state). The recipe function is\n * free to mutate its first argument however it wants. All mutations are\n * only ever applied to a __copy__ of the base state.\n *\n * Pass only a function to create a \"curried producer\" which relieves you\n * from passing the recipe function every time.\n *\n * Only plain objects and arrays are made mutable. All other objects are\n * considered uncopyable.\n *\n * Note: This function is __bound__ to its `Immer` instance.\n *\n * @param {any} base - the initial state\n * @param {Function} recipe - function that receives a proxy of the base state as first argument and which can be freely modified\n * @param {Function} patchListener - optional function that will be called with all the patches produced here\n * @returns {any} a new state, or the initial state if nothing was modified\n */\n this.produce = (base, recipe, patchListener) => {\n if (typeof base === \"function\" && typeof recipe !== \"function\") {\n const defaultBase = recipe;\n recipe = base;\n const self = this;\n return function curriedProduce(base2 = defaultBase, ...args) {\n return self.produce(base2, (draft) => recipe.call(this, draft, ...args));\n };\n }\n if (typeof recipe !== \"function\")\n die(6);\n if (patchListener !== void 0 && typeof patchListener !== \"function\")\n die(7);\n let result;\n if (isDraftable(base)) {\n const scope = enterScope(this);\n const proxy = createProxy(base, void 0);\n let hasError = true;\n try {\n result = recipe(proxy);\n hasError = false;\n } finally {\n if (hasError)\n revokeScope(scope);\n else\n leaveScope(scope);\n }\n usePatchesInScope(scope, patchListener);\n return processResult(result, scope);\n } else if (!base || typeof base !== \"object\") {\n result = recipe(base);\n if (result === void 0)\n result = base;\n if (result === NOTHING)\n result = void 0;\n if (this.autoFreeze_)\n freeze(result, true);\n if (patchListener) {\n const p = [];\n const ip = [];\n getPlugin(\"Patches\").generateReplacementPatches_(base, result, p, ip);\n patchListener(p, ip);\n }\n return result;\n } else\n die(1, base);\n };\n this.produceWithPatches = (base, recipe) => {\n if (typeof base === \"function\") {\n return (state, ...args) => this.produceWithPatches(state, (draft) => base(draft, ...args));\n }\n let patches, inversePatches;\n const result = this.produce(base, recipe, (p, ip) => {\n patches = p;\n inversePatches = ip;\n });\n return [result, patches, inversePatches];\n };\n if (typeof config?.autoFreeze === \"boolean\")\n this.setAutoFreeze(config.autoFreeze);\n if (typeof config?.useStrictShallowCopy === \"boolean\")\n this.setUseStrictShallowCopy(config.useStrictShallowCopy);\n }\n createDraft(base) {\n if (!isDraftable(base))\n die(8);\n if (isDraft(base))\n base = current(base);\n const scope = enterScope(this);\n const proxy = createProxy(base, void 0);\n proxy[DRAFT_STATE].isManual_ = true;\n leaveScope(scope);\n return proxy;\n }\n finishDraft(draft, patchListener) {\n const state = draft && draft[DRAFT_STATE];\n if (!state || !state.isManual_)\n die(9);\n const { scope_: scope } = state;\n usePatchesInScope(scope, patchListener);\n return processResult(void 0, scope);\n }\n /**\n * Pass true to automatically freeze all copies created by Immer.\n *\n * By default, auto-freezing is enabled.\n */\n setAutoFreeze(value) {\n this.autoFreeze_ = value;\n }\n /**\n * Pass true to enable strict shallow copy.\n *\n * By default, immer does not copy the object descriptors such as getter, setter and non-enumrable properties.\n */\n setUseStrictShallowCopy(value) {\n this.useStrictShallowCopy_ = value;\n }\n applyPatches(base, patches) {\n let i;\n for (i = patches.length - 1; i >= 0; i--) {\n const patch = patches[i];\n if (patch.path.length === 0 && patch.op === \"replace\") {\n base = patch.value;\n break;\n }\n }\n if (i > -1) {\n patches = patches.slice(i + 1);\n }\n const applyPatchesImpl = getPlugin(\"Patches\").applyPatches_;\n if (isDraft(base)) {\n return applyPatchesImpl(base, patches);\n }\n return this.produce(\n base,\n (draft) => applyPatchesImpl(draft, patches)\n );\n }\n};\nfunction createProxy(value, parent) {\n const draft = isMap(value) ? getPlugin(\"MapSet\").proxyMap_(value, parent) : isSet(value) ? getPlugin(\"MapSet\").proxySet_(value, parent) : createProxyProxy(value, parent);\n const scope = parent ? parent.scope_ : getCurrentScope();\n scope.drafts_.push(draft);\n return draft;\n}\n\n// src/core/current.ts\nfunction current(value) {\n if (!isDraft(value))\n die(10, value);\n return currentImpl(value);\n}\nfunction currentImpl(value) {\n if (!isDraftable(value) || isFrozen(value))\n return value;\n const state = value[DRAFT_STATE];\n let copy;\n if (state) {\n if (!state.modified_)\n return state.base_;\n state.finalized_ = true;\n copy = shallowCopy(value, state.scope_.immer_.useStrictShallowCopy_);\n } else {\n copy = shallowCopy(value, true);\n }\n each(copy, (key, childValue) => {\n set(copy, key, currentImpl(childValue));\n });\n if (state) {\n state.finalized_ = false;\n }\n return copy;\n}\n\n// src/plugins/patches.ts\nfunction enablePatches() {\n const errorOffset = 16;\n if (process.env.NODE_ENV !== \"production\") {\n errors.push(\n 'Sets cannot have \"replace\" patches.',\n function(op) {\n return \"Unsupported patch operation: \" + op;\n },\n function(path) {\n return \"Cannot apply patch, path doesn't resolve: \" + path;\n },\n \"Patching reserved attributes like __proto__, prototype and constructor is not allowed\"\n );\n }\n const REPLACE = \"replace\";\n const ADD = \"add\";\n const REMOVE = \"remove\";\n function generatePatches_(state, basePath, patches, inversePatches) {\n switch (state.type_) {\n case 0 /* Object */:\n case 2 /* Map */:\n return generatePatchesFromAssigned(\n state,\n basePath,\n patches,\n inversePatches\n );\n case 1 /* Array */:\n return generateArrayPatches(state, basePath, patches, inversePatches);\n case 3 /* Set */:\n return generateSetPatches(\n state,\n basePath,\n patches,\n inversePatches\n );\n }\n }\n function generateArrayPatches(state, basePath, patches, inversePatches) {\n let { base_, assigned_ } = state;\n let copy_ = state.copy_;\n if (copy_.length < base_.length) {\n ;\n [base_, copy_] = [copy_, base_];\n [patches, inversePatches] = [inversePatches, patches];\n }\n for (let i = 0; i < base_.length; i++) {\n if (assigned_[i] && copy_[i] !== base_[i]) {\n const path = basePath.concat([i]);\n patches.push({\n op: REPLACE,\n path,\n // Need to maybe clone it, as it can in fact be the original value\n // due to the base/copy inversion at the start of this function\n value: clonePatchValueIfNeeded(copy_[i])\n });\n inversePatches.push({\n op: REPLACE,\n path,\n value: clonePatchValueIfNeeded(base_[i])\n });\n }\n }\n for (let i = base_.length; i < copy_.length; i++) {\n const path = basePath.concat([i]);\n patches.push({\n op: ADD,\n path,\n // Need to maybe clone it, as it can in fact be the original value\n // due to the base/copy inversion at the start of this function\n value: clonePatchValueIfNeeded(copy_[i])\n });\n }\n for (let i = copy_.length - 1; base_.length <= i; --i) {\n const path = basePath.concat([i]);\n inversePatches.push({\n op: REMOVE,\n path\n });\n }\n }\n function generatePatchesFromAssigned(state, basePath, patches, inversePatches) {\n const { base_, copy_ } = state;\n each(state.assigned_, (key, assignedValue) => {\n const origValue = get(base_, key);\n const value = get(copy_, key);\n const op = !assignedValue ? REMOVE : has(base_, key) ? REPLACE : ADD;\n if (origValue === value && op === REPLACE)\n return;\n const path = basePath.concat(key);\n patches.push(op === REMOVE ? { op, path } : { op, path, value });\n inversePatches.push(\n op === ADD ? { op: REMOVE, path } : op === REMOVE ? { op: ADD, path, value: clonePatchValueIfNeeded(origValue) } : { op: REPLACE, path, value: clonePatchValueIfNeeded(origValue) }\n );\n });\n }\n function generateSetPatches(state, basePath, patches, inversePatches) {\n let { base_, copy_ } = state;\n let i = 0;\n base_.forEach((value) => {\n if (!copy_.has(value)) {\n const path = basePath.concat([i]);\n patches.push({\n op: REMOVE,\n path,\n value\n });\n inversePatches.unshift({\n op: ADD,\n path,\n value\n });\n }\n i++;\n });\n i = 0;\n copy_.forEach((value) => {\n if (!base_.has(value)) {\n const path = basePath.concat([i]);\n patches.push({\n op: ADD,\n path,\n value\n });\n inversePatches.unshift({\n op: REMOVE,\n path,\n value\n });\n }\n i++;\n });\n }\n function generateReplacementPatches_(baseValue, replacement, patches, inversePatches) {\n patches.push({\n op: REPLACE,\n path: [],\n value: replacement === NOTHING ? void 0 : replacement\n });\n inversePatches.push({\n op: REPLACE,\n path: [],\n value: baseValue\n });\n }\n function applyPatches_(draft, patches) {\n patches.forEach((patch) => {\n const { path, op } = patch;\n let base = draft;\n for (let i = 0; i < path.length - 1; i++) {\n const parentType = getArchtype(base);\n let p = path[i];\n if (typeof p !== \"string\" && typeof p !== \"number\") {\n p = \"\" + p;\n }\n if ((parentType === 0 /* Object */ || parentType === 1 /* Array */) && (p === \"__proto__\" || p === \"constructor\"))\n die(errorOffset + 3);\n if (typeof base === \"function\" && p === \"prototype\")\n die(errorOffset + 3);\n base = get(base, p);\n if (typeof base !== \"object\")\n die(errorOffset + 2, path.join(\"/\"));\n }\n const type = getArchtype(base);\n const value = deepClonePatchValue(patch.value);\n const key = path[path.length - 1];\n switch (op) {\n case REPLACE:\n switch (type) {\n case 2 /* Map */:\n return base.set(key, value);\n case 3 /* Set */:\n die(errorOffset);\n default:\n return base[key] = value;\n }\n case ADD:\n switch (type) {\n case 1 /* Array */:\n return key === \"-\" ? base.push(value) : base.splice(key, 0, value);\n case 2 /* Map */:\n return base.set(key, value);\n case 3 /* Set */:\n return base.add(value);\n default:\n return base[key] = value;\n }\n case REMOVE:\n switch (type) {\n case 1 /* Array */:\n return base.splice(key, 1);\n case 2 /* Map */:\n return base.delete(key);\n case 3 /* Set */:\n return base.delete(patch.value);\n default:\n return delete base[key];\n }\n default:\n die(errorOffset + 1, op);\n }\n });\n return draft;\n }\n function deepClonePatchValue(obj) {\n if (!isDraftable(obj))\n return obj;\n if (Array.isArray(obj))\n return obj.map(deepClonePatchValue);\n if (isMap(obj))\n return new Map(\n Array.from(obj.entries()).map(([k, v]) => [k, deepClonePatchValue(v)])\n );\n if (isSet(obj))\n return new Set(Array.from(obj).map(deepClonePatchValue));\n const cloned = Object.create(getPrototypeOf(obj));\n for (const key in obj)\n cloned[key] = deepClonePatchValue(obj[key]);\n if (has(obj, DRAFTABLE))\n cloned[DRAFTABLE] = obj[DRAFTABLE];\n return cloned;\n }\n function clonePatchValueIfNeeded(obj) {\n if (isDraft(obj)) {\n return deepClonePatchValue(obj);\n } else\n return obj;\n }\n loadPlugin(\"Patches\", {\n applyPatches_,\n generatePatches_,\n generateReplacementPatches_\n });\n}\n\n// src/plugins/mapset.ts\nfunction enableMapSet() {\n class DraftMap extends Map {\n constructor(target, parent) {\n super();\n this[DRAFT_STATE] = {\n type_: 2 /* Map */,\n parent_: parent,\n scope_: parent ? parent.scope_ : getCurrentScope(),\n modified_: false,\n finalized_: false,\n copy_: void 0,\n assigned_: void 0,\n base_: target,\n draft_: this,\n isManual_: false,\n revoked_: false\n };\n }\n get size() {\n return latest(this[DRAFT_STATE]).size;\n }\n has(key) {\n return latest(this[DRAFT_STATE]).has(key);\n }\n set(key, value) {\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n if (!latest(state).has(key) || latest(state).get(key) !== value) {\n prepareMapCopy(state);\n markChanged(state);\n state.assigned_.set(key, true);\n state.copy_.set(key, value);\n state.assigned_.set(key, true);\n }\n return this;\n }\n delete(key) {\n if (!this.has(key)) {\n return false;\n }\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n prepareMapCopy(state);\n markChanged(state);\n if (state.base_.has(key)) {\n state.assigned_.set(key, false);\n } else {\n state.assigned_.delete(key);\n }\n state.copy_.delete(key);\n return true;\n }\n clear() {\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n if (latest(state).size) {\n prepareMapCopy(state);\n markChanged(state);\n state.assigned_ = /* @__PURE__ */ new Map();\n each(state.base_, (key) => {\n state.assigned_.set(key, false);\n });\n state.copy_.clear();\n }\n }\n forEach(cb, thisArg) {\n const state = this[DRAFT_STATE];\n latest(state).forEach((_value, key, _map) => {\n cb.call(thisArg, this.get(key), key, this);\n });\n }\n get(key) {\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n const value = latest(state).get(key);\n if (state.finalized_ || !isDraftable(value)) {\n return value;\n }\n if (value !== state.base_.get(key)) {\n return value;\n }\n const draft = createProxy(value, state);\n prepareMapCopy(state);\n state.copy_.set(key, draft);\n return draft;\n }\n keys() {\n return latest(this[DRAFT_STATE]).keys();\n }\n values() {\n const iterator = this.keys();\n return {\n [Symbol.iterator]: () => this.values(),\n next: () => {\n const r = iterator.next();\n if (r.done)\n return r;\n const value = this.get(r.value);\n return {\n done: false,\n value\n };\n }\n };\n }\n entries() {\n const iterator = this.keys();\n return {\n [Symbol.iterator]: () => this.entries(),\n next: () => {\n const r = iterator.next();\n if (r.done)\n return r;\n const value = this.get(r.value);\n return {\n done: false,\n value: [r.value, value]\n };\n }\n };\n }\n [(DRAFT_STATE, Symbol.iterator)]() {\n return this.entries();\n }\n }\n function proxyMap_(target, parent) {\n return new DraftMap(target, parent);\n }\n function prepareMapCopy(state) {\n if (!state.copy_) {\n state.assigned_ = /* @__PURE__ */ new Map();\n state.copy_ = new Map(state.base_);\n }\n }\n class DraftSet extends Set {\n constructor(target, parent) {\n super();\n this[DRAFT_STATE] = {\n type_: 3 /* Set */,\n parent_: parent,\n scope_: parent ? parent.scope_ : getCurrentScope(),\n modified_: false,\n finalized_: false,\n copy_: void 0,\n base_: target,\n draft_: this,\n drafts_: /* @__PURE__ */ new Map(),\n revoked_: false,\n isManual_: false\n };\n }\n get size() {\n return latest(this[DRAFT_STATE]).size;\n }\n has(value) {\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n if (!state.copy_) {\n return state.base_.has(value);\n }\n if (state.copy_.has(value))\n return true;\n if (state.drafts_.has(value) && state.copy_.has(state.drafts_.get(value)))\n return true;\n return false;\n }\n add(value) {\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n if (!this.has(value)) {\n prepareSetCopy(state);\n markChanged(state);\n state.copy_.add(value);\n }\n return this;\n }\n delete(value) {\n if (!this.has(value)) {\n return false;\n }\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n prepareSetCopy(state);\n markChanged(state);\n return state.copy_.delete(value) || (state.drafts_.has(value) ? state.copy_.delete(state.drafts_.get(value)) : (\n /* istanbul ignore next */\n false\n ));\n }\n clear() {\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n if (latest(state).size) {\n prepareSetCopy(state);\n markChanged(state);\n state.copy_.clear();\n }\n }\n values() {\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n prepareSetCopy(state);\n return state.copy_.values();\n }\n entries() {\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n prepareSetCopy(state);\n return state.copy_.entries();\n }\n keys() {\n return this.values();\n }\n [(DRAFT_STATE, Symbol.iterator)]() {\n return this.values();\n }\n forEach(cb, thisArg) {\n const iterator = this.values();\n let result = iterator.next();\n while (!result.done) {\n cb.call(thisArg, result.value, result.value, this);\n result = iterator.next();\n }\n }\n }\n function proxySet_(target, parent) {\n return new DraftSet(target, parent);\n }\n function prepareSetCopy(state) {\n if (!state.copy_) {\n state.copy_ = /* @__PURE__ */ new Set();\n state.base_.forEach((value) => {\n if (isDraftable(value)) {\n const draft = createProxy(value, state);\n state.drafts_.set(value, draft);\n state.copy_.add(draft);\n } else {\n state.copy_.add(value);\n }\n });\n }\n }\n function assertUnrevoked(state) {\n if (state.revoked_)\n die(3, JSON.stringify(latest(state)));\n }\n loadPlugin(\"MapSet\", { proxyMap_, proxySet_ });\n}\n\n// src/immer.ts\nvar immer = new Immer2();\nvar produce = immer.produce;\nvar produceWithPatches = /* @__PURE__ */ immer.produceWithPatches.bind(\n immer\n);\nvar setAutoFreeze = /* @__PURE__ */ immer.setAutoFreeze.bind(immer);\nvar setUseStrictShallowCopy = /* @__PURE__ */ immer.setUseStrictShallowCopy.bind(\n immer\n);\nvar applyPatches = /* @__PURE__ */ immer.applyPatches.bind(immer);\nvar createDraft = /* @__PURE__ */ immer.createDraft.bind(immer);\nvar finishDraft = /* @__PURE__ */ immer.finishDraft.bind(immer);\nfunction castDraft(value) {\n return value;\n}\nfunction castImmutable(value) {\n return value;\n}\nexport {\n Immer2 as Immer,\n applyPatches,\n castDraft,\n castImmutable,\n createDraft,\n current,\n enableMapSet,\n enablePatches,\n finishDraft,\n freeze,\n DRAFTABLE as immerable,\n isDraft,\n isDraftable,\n NOTHING as nothing,\n original,\n produce,\n produceWithPatches,\n setAutoFreeze,\n setUseStrictShallowCopy\n};\n//# sourceMappingURL=immer.mjs.map","// src/index.ts\nfunction createThunkMiddleware(extraArgument) {\n const middleware = ({ dispatch, getState }) => (next) => (action) => {\n if (typeof action === \"function\") {\n return action(dispatch, getState, extraArgument);\n }\n return next(action);\n };\n return middleware;\n}\nvar thunk = createThunkMiddleware();\nvar withExtraArgument = createThunkMiddleware;\nexport {\n thunk,\n withExtraArgument\n};\n","// src/index.ts\nexport * from \"redux\";\nimport { produce, current as current3, freeze, original as original2, isDraft as isDraft5 } from \"immer\";\nimport { createSelector, createSelectorCreator as createSelectorCreator2, lruMemoize, weakMapMemoize as weakMapMemoize2 } from \"reselect\";\n\n// src/createDraftSafeSelector.ts\nimport { current, isDraft } from \"immer\";\nimport { createSelectorCreator, weakMapMemoize } from \"reselect\";\nvar createDraftSafeSelectorCreator = (...args) => {\n const createSelector2 = createSelectorCreator(...args);\n const createDraftSafeSelector2 = Object.assign((...args2) => {\n const selector = createSelector2(...args2);\n const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);\n Object.assign(wrappedSelector, selector);\n return wrappedSelector;\n }, {\n withTypes: () => createDraftSafeSelector2\n });\n return createDraftSafeSelector2;\n};\nvar createDraftSafeSelector = /* @__PURE__ */ createDraftSafeSelectorCreator(weakMapMemoize);\n\n// src/configureStore.ts\nimport { applyMiddleware, createStore, compose as compose2, combineReducers, isPlainObject as isPlainObject2 } from \"redux\";\n\n// src/devtoolsExtension.ts\nimport { compose } from \"redux\";\nvar composeWithDevTools = typeof window !== \"undefined\" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {\n if (arguments.length === 0) return void 0;\n if (typeof arguments[0] === \"object\") return compose;\n return compose.apply(null, arguments);\n};\nvar devToolsEnhancer = typeof window !== \"undefined\" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function() {\n return function(noop3) {\n return noop3;\n };\n};\n\n// src/getDefaultMiddleware.ts\nimport { thunk as thunkMiddleware, withExtraArgument } from \"redux-thunk\";\n\n// src/createAction.ts\nimport { isAction } from \"redux\";\n\n// src/tsHelpers.ts\nvar hasMatchFunction = (v) => {\n return v && typeof v.match === \"function\";\n};\n\n// src/createAction.ts\nfunction createAction(type, prepareAction) {\n function actionCreator(...args) {\n if (prepareAction) {\n let prepared = prepareAction(...args);\n if (!prepared) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(0) : \"prepareAction did not return an object\");\n }\n return {\n type,\n payload: prepared.payload,\n ...\"meta\" in prepared && {\n meta: prepared.meta\n },\n ...\"error\" in prepared && {\n error: prepared.error\n }\n };\n }\n return {\n type,\n payload: args[0]\n };\n }\n actionCreator.toString = () => `${type}`;\n actionCreator.type = type;\n actionCreator.match = (action) => isAction(action) && action.type === type;\n return actionCreator;\n}\nfunction isActionCreator(action) {\n return typeof action === \"function\" && \"type\" in action && // hasMatchFunction only wants Matchers but I don't see the point in rewriting it\n hasMatchFunction(action);\n}\nfunction isFSA(action) {\n return isAction(action) && Object.keys(action).every(isValidKey);\n}\nfunction isValidKey(key) {\n return [\"type\", \"payload\", \"error\", \"meta\"].indexOf(key) > -1;\n}\n\n// src/actionCreatorInvariantMiddleware.ts\nfunction getMessage(type) {\n const splitType = type ? `${type}`.split(\"/\") : [];\n const actionName = splitType[splitType.length - 1] || \"actionCreator\";\n return `Detected an action creator with type \"${type || \"unknown\"}\" being dispatched. \nMake sure you're calling the action creator before dispatching, i.e. \\`dispatch(${actionName}())\\` instead of \\`dispatch(${actionName})\\`. This is necessary even if the action has no payload.`;\n}\nfunction createActionCreatorInvariantMiddleware(options = {}) {\n if (process.env.NODE_ENV === \"production\") {\n return () => (next) => (action) => next(action);\n }\n const {\n isActionCreator: isActionCreator2 = isActionCreator\n } = options;\n return () => (next) => (action) => {\n if (isActionCreator2(action)) {\n console.warn(getMessage(action.type));\n }\n return next(action);\n };\n}\n\n// src/utils.ts\nimport { produce as createNextState, isDraftable } from \"immer\";\nfunction getTimeMeasureUtils(maxDelay, fnName) {\n let elapsed = 0;\n return {\n measureTime(fn) {\n const started = Date.now();\n try {\n return fn();\n } finally {\n const finished = Date.now();\n elapsed += finished - started;\n }\n },\n warnIfExceeded() {\n if (elapsed > maxDelay) {\n console.warn(`${fnName} took ${elapsed}ms, which is more than the warning threshold of ${maxDelay}ms. \nIf your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.\nIt is disabled in production builds, so you don't need to worry about that.`);\n }\n }\n };\n}\nvar Tuple = class _Tuple extends Array {\n constructor(...items) {\n super(...items);\n Object.setPrototypeOf(this, _Tuple.prototype);\n }\n static get [Symbol.species]() {\n return _Tuple;\n }\n concat(...arr) {\n return super.concat.apply(this, arr);\n }\n prepend(...arr) {\n if (arr.length === 1 && Array.isArray(arr[0])) {\n return new _Tuple(...arr[0].concat(this));\n }\n return new _Tuple(...arr.concat(this));\n }\n};\nfunction freezeDraftable(val) {\n return isDraftable(val) ? createNextState(val, () => {\n }) : val;\n}\nfunction getOrInsertComputed(map, key, compute) {\n if (map.has(key)) return map.get(key);\n return map.set(key, compute(key)).get(key);\n}\n\n// src/immutableStateInvariantMiddleware.ts\nfunction isImmutableDefault(value) {\n return typeof value !== \"object\" || value == null || Object.isFrozen(value);\n}\nfunction trackForMutations(isImmutable, ignorePaths, obj) {\n const trackedProperties = trackProperties(isImmutable, ignorePaths, obj);\n return {\n detectMutations() {\n return detectMutations(isImmutable, ignorePaths, trackedProperties, obj);\n }\n };\n}\nfunction trackProperties(isImmutable, ignorePaths = [], obj, path = \"\", checkedObjects = /* @__PURE__ */ new Set()) {\n const tracked = {\n value: obj\n };\n if (!isImmutable(obj) && !checkedObjects.has(obj)) {\n checkedObjects.add(obj);\n tracked.children = {};\n for (const key in obj) {\n const childPath = path ? path + \".\" + key : key;\n if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) {\n continue;\n }\n tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath);\n }\n }\n return tracked;\n}\nfunction detectMutations(isImmutable, ignoredPaths = [], trackedProperty, obj, sameParentRef = false, path = \"\") {\n const prevObj = trackedProperty ? trackedProperty.value : void 0;\n const sameRef = prevObj === obj;\n if (sameParentRef && !sameRef && !Number.isNaN(obj)) {\n return {\n wasMutated: true,\n path\n };\n }\n if (isImmutable(prevObj) || isImmutable(obj)) {\n return {\n wasMutated: false\n };\n }\n const keysToDetect = {};\n for (let key in trackedProperty.children) {\n keysToDetect[key] = true;\n }\n for (let key in obj) {\n keysToDetect[key] = true;\n }\n const hasIgnoredPaths = ignoredPaths.length > 0;\n for (let key in keysToDetect) {\n const nestedPath = path ? path + \".\" + key : key;\n if (hasIgnoredPaths) {\n const hasMatches = ignoredPaths.some((ignored) => {\n if (ignored instanceof RegExp) {\n return ignored.test(nestedPath);\n }\n return nestedPath === ignored;\n });\n if (hasMatches) {\n continue;\n }\n }\n const result = detectMutations(isImmutable, ignoredPaths, trackedProperty.children[key], obj[key], sameRef, nestedPath);\n if (result.wasMutated) {\n return result;\n }\n }\n return {\n wasMutated: false\n };\n}\nfunction createImmutableStateInvariantMiddleware(options = {}) {\n if (process.env.NODE_ENV === \"production\") {\n return () => (next) => (action) => next(action);\n } else {\n let stringify2 = function(obj, serializer, indent, decycler) {\n return JSON.stringify(obj, getSerialize2(serializer, decycler), indent);\n }, getSerialize2 = function(serializer, decycler) {\n let stack = [], keys = [];\n if (!decycler) decycler = function(_, value) {\n if (stack[0] === value) return \"[Circular ~]\";\n return \"[Circular ~.\" + keys.slice(0, stack.indexOf(value)).join(\".\") + \"]\";\n };\n return function(key, value) {\n if (stack.length > 0) {\n var thisPos = stack.indexOf(this);\n ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);\n ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);\n if (~stack.indexOf(value)) value = decycler.call(this, key, value);\n } else stack.push(value);\n return serializer == null ? value : serializer.call(this, key, value);\n };\n };\n var stringify = stringify2, getSerialize = getSerialize2;\n let {\n isImmutable = isImmutableDefault,\n ignoredPaths,\n warnAfter = 32\n } = options;\n const track = trackForMutations.bind(null, isImmutable, ignoredPaths);\n return ({\n getState\n }) => {\n let state = getState();\n let tracker = track(state);\n let result;\n return (next) => (action) => {\n const measureUtils = getTimeMeasureUtils(warnAfter, \"ImmutableStateInvariantMiddleware\");\n measureUtils.measureTime(() => {\n state = getState();\n result = tracker.detectMutations();\n tracker = track(state);\n if (result.wasMutated) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(19) : `A state mutation was detected between dispatches, in the path '${result.path || \"\"}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);\n }\n });\n const dispatchedAction = next(action);\n measureUtils.measureTime(() => {\n state = getState();\n result = tracker.detectMutations();\n tracker = track(state);\n if (result.wasMutated) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(20) : `A state mutation was detected inside a dispatch, in the path: ${result.path || \"\"}. Take a look at the reducer(s) handling the action ${stringify2(action)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);\n }\n });\n measureUtils.warnIfExceeded();\n return dispatchedAction;\n };\n };\n }\n}\n\n// src/serializableStateInvariantMiddleware.ts\nimport { isAction as isAction2, isPlainObject } from \"redux\";\nfunction isPlain(val) {\n const type = typeof val;\n return val == null || type === \"string\" || type === \"boolean\" || type === \"number\" || Array.isArray(val) || isPlainObject(val);\n}\nfunction findNonSerializableValue(value, path = \"\", isSerializable = isPlain, getEntries, ignoredPaths = [], cache) {\n let foundNestedSerializable;\n if (!isSerializable(value)) {\n return {\n keyPath: path || \"<root>\",\n value\n };\n }\n if (typeof value !== \"object\" || value === null) {\n return false;\n }\n if (cache?.has(value)) return false;\n const entries = getEntries != null ? getEntries(value) : Object.entries(value);\n const hasIgnoredPaths = ignoredPaths.length > 0;\n for (const [key, nestedValue] of entries) {\n const nestedPath = path ? path + \".\" + key : key;\n if (hasIgnoredPaths) {\n const hasMatches = ignoredPaths.some((ignored) => {\n if (ignored instanceof RegExp) {\n return ignored.test(nestedPath);\n }\n return nestedPath === ignored;\n });\n if (hasMatches) {\n continue;\n }\n }\n if (!isSerializable(nestedValue)) {\n return {\n keyPath: nestedPath,\n value: nestedValue\n };\n }\n if (typeof nestedValue === \"object\") {\n foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths, cache);\n if (foundNestedSerializable) {\n return foundNestedSerializable;\n }\n }\n }\n if (cache && isNestedFrozen(value)) cache.add(value);\n return false;\n}\nfunction isNestedFrozen(value) {\n if (!Object.isFrozen(value)) return false;\n for (const nestedValue of Object.values(value)) {\n if (typeof nestedValue !== \"object\" || nestedValue === null) continue;\n if (!isNestedFrozen(nestedValue)) return false;\n }\n return true;\n}\nfunction createSerializableStateInvariantMiddleware(options = {}) {\n if (process.env.NODE_ENV === \"production\") {\n return () => (next) => (action) => next(action);\n } else {\n const {\n isSerializable = isPlain,\n getEntries,\n ignoredActions = [],\n ignoredActionPaths = [\"meta.arg\", \"meta.baseQueryMeta\"],\n ignoredPaths = [],\n warnAfter = 32,\n ignoreState = false,\n ignoreActions = false,\n disableCache = false\n } = options;\n const cache = !disableCache && WeakSet ? /* @__PURE__ */ new WeakSet() : void 0;\n return (storeAPI) => (next) => (action) => {\n if (!isAction2(action)) {\n return next(action);\n }\n const result = next(action);\n const measureUtils = getTimeMeasureUtils(warnAfter, \"SerializableStateInvariantMiddleware\");\n if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) {\n measureUtils.measureTime(() => {\n const foundActionNonSerializableValue = findNonSerializableValue(action, \"\", isSerializable, getEntries, ignoredActionPaths, cache);\n if (foundActionNonSerializableValue) {\n const {\n keyPath,\n value\n } = foundActionNonSerializableValue;\n console.error(`A non-serializable value was detected in an action, in the path: \\`${keyPath}\\`. Value:`, value, \"\\nTake a look at the logic that dispatched this action: \", action, \"\\n(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)\", \"\\n(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)\");\n }\n });\n }\n if (!ignoreState) {\n measureUtils.measureTime(() => {\n const state = storeAPI.getState();\n const foundStateNonSerializableValue = findNonSerializableValue(state, \"\", isSerializable, getEntries, ignoredPaths, cache);\n if (foundStateNonSerializableValue) {\n const {\n keyPath,\n value\n } = foundStateNonSerializableValue;\n console.error(`A non-serializable value was detected in the state, in the path: \\`${keyPath}\\`. Value:`, value, `\nTake a look at the reducer(s) handling this action type: ${action.type}.\n(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`);\n }\n });\n measureUtils.warnIfExceeded();\n }\n return result;\n };\n }\n}\n\n// src/getDefaultMiddleware.ts\nfunction isBoolean(x) {\n return typeof x === \"boolean\";\n}\nvar buildGetDefaultMiddleware = () => function getDefaultMiddleware(options) {\n const {\n thunk = true,\n immutableCheck = true,\n serializableCheck = true,\n actionCreatorCheck = true\n } = options ?? {};\n let middlewareArray = new Tuple();\n if (thunk) {\n if (isBoolean(thunk)) {\n middlewareArray.push(thunkMiddleware);\n } else {\n middlewareArray.push(withExtraArgument(thunk.extraArgument));\n }\n }\n if (process.env.NODE_ENV !== \"production\") {\n if (immutableCheck) {\n let immutableOptions = {};\n if (!isBoolean(immutableCheck)) {\n immutableOptions = immutableCheck;\n }\n middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions));\n }\n if (serializableCheck) {\n let serializableOptions = {};\n if (!isBoolean(serializableCheck)) {\n serializableOptions = serializableCheck;\n }\n middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions));\n }\n if (actionCreatorCheck) {\n let actionCreatorOptions = {};\n if (!isBoolean(actionCreatorCheck)) {\n actionCreatorOptions = actionCreatorCheck;\n }\n middlewareArray.unshift(createActionCreatorInvariantMiddleware(actionCreatorOptions));\n }\n }\n return middlewareArray;\n};\n\n// src/autoBatchEnhancer.ts\nvar SHOULD_AUTOBATCH = \"RTK_autoBatch\";\nvar prepareAutoBatched = () => (payload) => ({\n payload,\n meta: {\n [SHOULD_AUTOBATCH]: true\n }\n});\nvar createQueueWithTimer = (timeout) => {\n return (notify) => {\n setTimeout(notify, timeout);\n };\n};\nvar autoBatchEnhancer = (options = {\n type: \"raf\"\n}) => (next) => (...args) => {\n const store = next(...args);\n let notifying = true;\n let shouldNotifyAtEndOfTick = false;\n let notificationQueued = false;\n const listeners = /* @__PURE__ */ new Set();\n const queueCallback = options.type === \"tick\" ? queueMicrotask : options.type === \"raf\" ? (\n // requestAnimationFrame won't exist in SSR environments. Fall back to a vague approximation just to keep from erroring.\n typeof window !== \"undefined\" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10)\n ) : options.type === \"callback\" ? options.queueNotification : createQueueWithTimer(options.timeout);\n const notifyListeners = () => {\n notificationQueued = false;\n if (shouldNotifyAtEndOfTick) {\n shouldNotifyAtEndOfTick = false;\n listeners.forEach((l) => l());\n }\n };\n return Object.assign({}, store, {\n // Override the base `store.subscribe` method to keep original listeners\n // from running if we're delaying notifications\n subscribe(listener2) {\n const wrappedListener = () => notifying && listener2();\n const unsubscribe = store.subscribe(wrappedListener);\n listeners.add(listener2);\n return () => {\n unsubscribe();\n listeners.delete(listener2);\n };\n },\n // Override the base `store.dispatch` method so that we can check actions\n // for the `shouldAutoBatch` flag and determine if batching is active\n dispatch(action) {\n try {\n notifying = !action?.meta?.[SHOULD_AUTOBATCH];\n shouldNotifyAtEndOfTick = !notifying;\n if (shouldNotifyAtEndOfTick) {\n if (!notificationQueued) {\n notificationQueued = true;\n queueCallback(notifyListeners);\n }\n }\n return store.dispatch(action);\n } finally {\n notifying = true;\n }\n }\n });\n};\n\n// src/getDefaultEnhancers.ts\nvar buildGetDefaultEnhancers = (middlewareEnhancer) => function getDefaultEnhancers(options) {\n const {\n autoBatch = true\n } = options ?? {};\n let enhancerArray = new Tuple(middlewareEnhancer);\n if (autoBatch) {\n enhancerArray.push(autoBatchEnhancer(typeof autoBatch === \"object\" ? autoBatch : void 0));\n }\n return enhancerArray;\n};\n\n// src/configureStore.ts\nfunction configureStore(options) {\n const getDefaultMiddleware = buildGetDefaultMiddleware();\n const {\n reducer = void 0,\n middleware,\n devTools = true,\n duplicateMiddlewareCheck = true,\n preloadedState = void 0,\n enhancers = void 0\n } = options || {};\n let rootReducer;\n if (typeof reducer === \"function\") {\n rootReducer = reducer;\n } else if (isPlainObject2(reducer)) {\n rootReducer = combineReducers(reducer);\n } else {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(1) : \"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers\");\n }\n if (process.env.NODE_ENV !== \"production\" && middleware && typeof middleware !== \"function\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(2) : \"`middleware` field must be a callback\");\n }\n let finalMiddleware;\n if (typeof middleware === \"function\") {\n finalMiddleware = middleware(getDefaultMiddleware);\n if (process.env.NODE_ENV !== \"production\" && !Array.isArray(finalMiddleware)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(3) : \"when using a middleware builder function, an array of middleware must be returned\");\n }\n } else {\n finalMiddleware = getDefaultMiddleware();\n }\n if (process.env.NODE_ENV !== \"production\" && finalMiddleware.some((item) => typeof item !== \"function\")) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(4) : \"each middleware provided to configureStore must be a function\");\n }\n if (process.env.NODE_ENV !== \"production\" && duplicateMiddlewareCheck) {\n let middlewareReferences = /* @__PURE__ */ new Set();\n finalMiddleware.forEach((middleware2) => {\n if (middlewareReferences.has(middleware2)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(42) : \"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.\");\n }\n middlewareReferences.add(middleware2);\n });\n }\n let finalCompose = compose2;\n if (devTools) {\n finalCompose = composeWithDevTools({\n // Enable capture of stack traces for dispatched Redux actions\n trace: process.env.NODE_ENV !== \"production\",\n ...typeof devTools === \"object\" && devTools\n });\n }\n const middlewareEnhancer = applyMiddleware(...finalMiddleware);\n const getDefaultEnhancers = buildGetDefaultEnhancers(middlewareEnhancer);\n if (process.env.NODE_ENV !== \"production\" && enhancers && typeof enhancers !== \"function\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(5) : \"`enhancers` field must be a callback\");\n }\n let storeEnhancers = typeof enhancers === \"function\" ? enhancers(getDefaultEnhancers) : getDefaultEnhancers();\n if (process.env.NODE_ENV !== \"production\" && !Array.isArray(storeEnhancers)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(6) : \"`enhancers` callback must return an array\");\n }\n if (process.env.NODE_ENV !== \"production\" && storeEnhancers.some((item) => typeof item !== \"function\")) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(7) : \"each enhancer provided to configureStore must be a function\");\n }\n if (process.env.NODE_ENV !== \"production\" && finalMiddleware.length && !storeEnhancers.includes(middlewareEnhancer)) {\n console.error(\"middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`\");\n }\n const composedEnhancer = finalCompose(...storeEnhancers);\n return createStore(rootReducer, preloadedState, composedEnhancer);\n}\n\n// src/createReducer.ts\nimport { produce as createNextState2, isDraft as isDraft2, isDraftable as isDraftable2 } from \"immer\";\n\n// src/mapBuilders.ts\nfunction executeReducerBuilderCallback(builderCallback) {\n const actionsMap = {};\n const actionMatchers = [];\n let defaultCaseReducer;\n const builder = {\n addCase(typeOrActionCreator, reducer) {\n if (process.env.NODE_ENV !== \"production\") {\n if (actionMatchers.length > 0) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(26) : \"`builder.addCase` should only be called before calling `builder.addMatcher`\");\n }\n if (defaultCaseReducer) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(27) : \"`builder.addCase` should only be called before calling `builder.addDefaultCase`\");\n }\n }\n const type = typeof typeOrActionCreator === \"string\" ? typeOrActionCreator : typeOrActionCreator.type;\n if (!type) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(28) : \"`builder.addCase` cannot be called with an empty action type\");\n }\n if (type in actionsMap) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(29) : `\\`builder.addCase\\` cannot be called with two reducers for the same action type '${type}'`);\n }\n actionsMap[type] = reducer;\n return builder;\n },\n addAsyncThunk(asyncThunk, reducers) {\n if (process.env.NODE_ENV !== \"production\") {\n if (defaultCaseReducer) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(43) : \"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`\");\n }\n }\n if (reducers.pending) actionsMap[asyncThunk.pending.type] = reducers.pending;\n if (reducers.rejected) actionsMap[asyncThunk.rejected.type] = reducers.rejected;\n if (reducers.fulfilled) actionsMap[asyncThunk.fulfilled.type] = reducers.fulfilled;\n if (reducers.settled) actionMatchers.push({\n matcher: asyncThunk.settled,\n reducer: reducers.settled\n });\n return builder;\n },\n addMatcher(matcher, reducer) {\n if (process.env.NODE_ENV !== \"production\") {\n if (defaultCaseReducer) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(30) : \"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`\");\n }\n }\n actionMatchers.push({\n matcher,\n reducer\n });\n return builder;\n },\n addDefaultCase(reducer) {\n if (process.env.NODE_ENV !== \"production\") {\n if (defaultCaseReducer) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(31) : \"`builder.addDefaultCase` can only be called once\");\n }\n }\n defaultCaseReducer = reducer;\n return builder;\n }\n };\n builderCallback(builder);\n return [actionsMap, actionMatchers, defaultCaseReducer];\n}\n\n// src/createReducer.ts\nfunction isStateFunction(x) {\n return typeof x === \"function\";\n}\nfunction createReducer(initialState, mapOrBuilderCallback) {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof mapOrBuilderCallback === \"object\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(8) : \"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer\");\n }\n }\n let [actionsMap, finalActionMatchers, finalDefaultCaseReducer] = executeReducerBuilderCallback(mapOrBuilderCallback);\n let getInitialState;\n if (isStateFunction(initialState)) {\n getInitialState = () => freezeDraftable(initialState());\n } else {\n const frozenInitialState = freezeDraftable(initialState);\n getInitialState = () => frozenInitialState;\n }\n function reducer(state = getInitialState(), action) {\n let caseReducers = [actionsMap[action.type], ...finalActionMatchers.filter(({\n matcher\n }) => matcher(action)).map(({\n reducer: reducer2\n }) => reducer2)];\n if (caseReducers.filter((cr) => !!cr).length === 0) {\n caseReducers = [finalDefaultCaseReducer];\n }\n return caseReducers.reduce((previousState, caseReducer) => {\n if (caseReducer) {\n if (isDraft2(previousState)) {\n const draft = previousState;\n const result = caseReducer(draft, action);\n if (result === void 0) {\n return previousState;\n }\n return result;\n } else if (!isDraftable2(previousState)) {\n const result = caseReducer(previousState, action);\n if (result === void 0) {\n if (previousState === null) {\n return previousState;\n }\n throw Error(\"A case reducer on a non-draftable value must not return undefined\");\n }\n return result;\n } else {\n return createNextState2(previousState, (draft) => {\n return caseReducer(draft, action);\n });\n }\n }\n return previousState;\n }, state);\n }\n reducer.getInitialState = getInitialState;\n return reducer;\n}\n\n// src/matchers.ts\nvar matches = (matcher, action) => {\n if (hasMatchFunction(matcher)) {\n return matcher.match(action);\n } else {\n return matcher(action);\n }\n};\nfunction isAnyOf(...matchers) {\n return (action) => {\n return matchers.some((matcher) => matches(matcher, action));\n };\n}\nfunction isAllOf(...matchers) {\n return (action) => {\n return matchers.every((matcher) => matches(matcher, action));\n };\n}\nfunction hasExpectedRequestMetadata(action, validStatus) {\n if (!action || !action.meta) return false;\n const hasValidRequestId = typeof action.meta.requestId === \"string\";\n const hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;\n return hasValidRequestId && hasValidRequestStatus;\n}\nfunction isAsyncThunkArray(a) {\n return typeof a[0] === \"function\" && \"pending\" in a[0] && \"fulfilled\" in a[0] && \"rejected\" in a[0];\n}\nfunction isPending(...asyncThunks) {\n if (asyncThunks.length === 0) {\n return (action) => hasExpectedRequestMetadata(action, [\"pending\"]);\n }\n if (!isAsyncThunkArray(asyncThunks)) {\n return isPending()(asyncThunks[0]);\n }\n return isAnyOf(...asyncThunks.map((asyncThunk) => asyncThunk.pending));\n}\nfunction isRejected(...asyncThunks) {\n if (asyncThunks.length === 0) {\n return (action) => hasExpectedRequestMetadata(action, [\"rejected\"]);\n }\n if (!isAsyncThunkArray(asyncThunks)) {\n return isRejected()(asyncThunks[0]);\n }\n return isAnyOf(...asyncThunks.map((asyncThunk) => asyncThunk.rejected));\n}\nfunction isRejectedWithValue(...asyncThunks) {\n const hasFlag = (action) => {\n return action && action.meta && action.meta.rejectedWithValue;\n };\n if (asyncThunks.length === 0) {\n return isAllOf(isRejected(...asyncThunks), hasFlag);\n }\n if (!isAsyncThunkArray(asyncThunks)) {\n return isRejectedWithValue()(asyncThunks[0]);\n }\n return isAllOf(isRejected(...asyncThunks), hasFlag);\n}\nfunction isFulfilled(...asyncThunks) {\n if (asyncThunks.length === 0) {\n return (action) => hasExpectedRequestMetadata(action, [\"fulfilled\"]);\n }\n if (!isAsyncThunkArray(asyncThunks)) {\n return isFulfilled()(asyncThunks[0]);\n }\n return isAnyOf(...asyncThunks.map((asyncThunk) => asyncThunk.fulfilled));\n}\nfunction isAsyncThunkAction(...asyncThunks) {\n if (asyncThunks.length === 0) {\n return (action) => hasExpectedRequestMetadata(action, [\"pending\", \"fulfilled\", \"rejected\"]);\n }\n if (!isAsyncThunkArray(asyncThunks)) {\n return isAsyncThunkAction()(asyncThunks[0]);\n }\n return isAnyOf(...asyncThunks.flatMap((asyncThunk) => [asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled]));\n}\n\n// src/nanoid.ts\nvar urlAlphabet = \"ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW\";\nvar nanoid = (size = 21) => {\n let id = \"\";\n let i = size;\n while (i--) {\n id += urlAlphabet[Math.random() * 64 | 0];\n }\n return id;\n};\n\n// src/createAsyncThunk.ts\nvar commonProperties = [\"name\", \"message\", \"stack\", \"code\"];\nvar RejectWithValue = class {\n constructor(payload, meta) {\n this.payload = payload;\n this.meta = meta;\n }\n /*\n type-only property to distinguish between RejectWithValue and FulfillWithMeta\n does not exist at runtime\n */\n _type;\n};\nvar FulfillWithMeta = class {\n constructor(payload, meta) {\n this.payload = payload;\n this.meta = meta;\n }\n /*\n type-only property to distinguish between RejectWithValue and FulfillWithMeta\n does not exist at runtime\n */\n _type;\n};\nvar miniSerializeError = (value) => {\n if (typeof value === \"object\" && value !== null) {\n const simpleError = {};\n for (const property of commonProperties) {\n if (typeof value[property] === \"string\") {\n simpleError[property] = value[property];\n }\n }\n return simpleError;\n }\n return {\n message: String(value)\n };\n};\nvar externalAbortMessage = \"External signal was aborted\";\nvar createAsyncThunk = /* @__PURE__ */ (() => {\n function createAsyncThunk2(typePrefix, payloadCreator, options) {\n const fulfilled = createAction(typePrefix + \"/fulfilled\", (payload, requestId, arg, meta) => ({\n payload,\n meta: {\n ...meta || {},\n arg,\n requestId,\n requestStatus: \"fulfilled\"\n }\n }));\n const pending = createAction(typePrefix + \"/pending\", (requestId, arg, meta) => ({\n payload: void 0,\n meta: {\n ...meta || {},\n arg,\n requestId,\n requestStatus: \"pending\"\n }\n }));\n const rejected = createAction(typePrefix + \"/rejected\", (error, requestId, arg, payload, meta) => ({\n payload,\n error: (options && options.serializeError || miniSerializeError)(error || \"Rejected\"),\n meta: {\n ...meta || {},\n arg,\n requestId,\n rejectedWithValue: !!payload,\n requestStatus: \"rejected\",\n aborted: error?.name === \"AbortError\",\n condition: error?.name === \"ConditionError\"\n }\n }));\n function actionCreator(arg, {\n signal\n } = {}) {\n return (dispatch, getState, extra) => {\n const requestId = options?.idGenerator ? options.idGenerator(arg) : nanoid();\n const abortController = new AbortController();\n let abortHandler;\n let abortReason;\n function abort(reason) {\n abortReason = reason;\n abortController.abort();\n }\n if (signal) {\n if (signal.aborted) {\n abort(externalAbortMessage);\n } else {\n signal.addEventListener(\"abort\", () => abort(externalAbortMessage), {\n once: true\n });\n }\n }\n const promise = async function() {\n let finalAction;\n try {\n let conditionResult = options?.condition?.(arg, {\n getState,\n extra\n });\n if (isThenable(conditionResult)) {\n conditionResult = await conditionResult;\n }\n if (conditionResult === false || abortController.signal.aborted) {\n throw {\n name: \"ConditionError\",\n message: \"Aborted due to condition callback returning false.\"\n };\n }\n const abortedPromise = new Promise((_, reject) => {\n abortHandler = () => {\n reject({\n name: \"AbortError\",\n message: abortReason || \"Aborted\"\n });\n };\n abortController.signal.addEventListener(\"abort\", abortHandler);\n });\n dispatch(pending(requestId, arg, options?.getPendingMeta?.({\n requestId,\n arg\n }, {\n getState,\n extra\n })));\n finalAction = await Promise.race([abortedPromise, Promise.resolve(payloadCreator(arg, {\n dispatch,\n getState,\n extra,\n requestId,\n signal: abortController.signal,\n abort,\n rejectWithValue: (value, meta) => {\n return new RejectWithValue(value, meta);\n },\n fulfillWithValue: (value, meta) => {\n return new FulfillWithMeta(value, meta);\n }\n })).then((result) => {\n if (result instanceof RejectWithValue) {\n throw result;\n }\n if (result instanceof FulfillWithMeta) {\n return fulfilled(result.payload, requestId, arg, result.meta);\n }\n return fulfilled(result, requestId, arg);\n })]);\n } catch (err) {\n finalAction = err instanceof RejectWithValue ? rejected(null, requestId, arg, err.payload, err.meta) : rejected(err, requestId, arg);\n } finally {\n if (abortHandler) {\n abortController.signal.removeEventListener(\"abort\", abortHandler);\n }\n }\n const skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;\n if (!skipDispatch) {\n dispatch(finalAction);\n }\n return finalAction;\n }();\n return Object.assign(promise, {\n abort,\n requestId,\n arg,\n unwrap() {\n return promise.then(unwrapResult);\n }\n });\n };\n }\n return Object.assign(actionCreator, {\n pending,\n rejected,\n fulfilled,\n settled: isAnyOf(rejected, fulfilled),\n typePrefix\n });\n }\n createAsyncThunk2.withTypes = () => createAsyncThunk2;\n return createAsyncThunk2;\n})();\nfunction unwrapResult(action) {\n if (action.meta && action.meta.rejectedWithValue) {\n throw action.payload;\n }\n if (action.error) {\n throw action.error;\n }\n return action.payload;\n}\nfunction isThenable(value) {\n return value !== null && typeof value === \"object\" && typeof value.then === \"function\";\n}\n\n// src/createSlice.ts\nvar asyncThunkSymbol = /* @__PURE__ */ Symbol.for(\"rtk-slice-createasyncthunk\");\nvar asyncThunkCreator = {\n [asyncThunkSymbol]: createAsyncThunk\n};\nvar ReducerType = /* @__PURE__ */ ((ReducerType2) => {\n ReducerType2[\"reducer\"] = \"reducer\";\n ReducerType2[\"reducerWithPrepare\"] = \"reducerWithPrepare\";\n ReducerType2[\"asyncThunk\"] = \"asyncThunk\";\n return ReducerType2;\n})(ReducerType || {});\nfunction getType(slice, actionKey) {\n return `${slice}/${actionKey}`;\n}\nfunction buildCreateSlice({\n creators\n} = {}) {\n const cAT = creators?.asyncThunk?.[asyncThunkSymbol];\n return function createSlice2(options) {\n const {\n name,\n reducerPath = name\n } = options;\n if (!name) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(11) : \"`name` is a required option for createSlice\");\n }\n if (typeof process !== \"undefined\" && process.env.NODE_ENV === \"development\") {\n if (options.initialState === void 0) {\n console.error(\"You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`\");\n }\n }\n const reducers = (typeof options.reducers === \"function\" ? options.reducers(buildReducerCreators()) : options.reducers) || {};\n const reducerNames = Object.keys(reducers);\n const context = {\n sliceCaseReducersByName: {},\n sliceCaseReducersByType: {},\n actionCreators: {},\n sliceMatchers: []\n };\n const contextMethods = {\n addCase(typeOrActionCreator, reducer2) {\n const type = typeof typeOrActionCreator === \"string\" ? typeOrActionCreator : typeOrActionCreator.type;\n if (!type) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(12) : \"`context.addCase` cannot be called with an empty action type\");\n }\n if (type in context.sliceCaseReducersByType) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(13) : \"`context.addCase` cannot be called with two reducers for the same action type: \" + type);\n }\n context.sliceCaseReducersByType[type] = reducer2;\n return contextMethods;\n },\n addMatcher(matcher, reducer2) {\n context.sliceMatchers.push({\n matcher,\n reducer: reducer2\n });\n return contextMethods;\n },\n exposeAction(name2, actionCreator) {\n context.actionCreators[name2] = actionCreator;\n return contextMethods;\n },\n exposeCaseReducer(name2, reducer2) {\n context.sliceCaseReducersByName[name2] = reducer2;\n return contextMethods;\n }\n };\n reducerNames.forEach((reducerName) => {\n const reducerDefinition = reducers[reducerName];\n const reducerDetails = {\n reducerName,\n type: getType(name, reducerName),\n createNotation: typeof options.reducers === \"function\"\n };\n if (isAsyncThunkSliceReducerDefinition(reducerDefinition)) {\n handleThunkCaseReducerDefinition(reducerDetails, reducerDefinition, contextMethods, cAT);\n } else {\n handleNormalReducerDefinition(reducerDetails, reducerDefinition, contextMethods);\n }\n });\n function buildReducer() {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof options.extraReducers === \"object\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(14) : \"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice\");\n }\n }\n const [extraReducers = {}, actionMatchers = [], defaultCaseReducer = void 0] = typeof options.extraReducers === \"function\" ? executeReducerBuilderCallback(options.extraReducers) : [options.extraReducers];\n const finalCaseReducers = {\n ...extraReducers,\n ...context.sliceCaseReducersByType\n };\n return createReducer(options.initialState, (builder) => {\n for (let key in finalCaseReducers) {\n builder.addCase(key, finalCaseReducers[key]);\n }\n for (let sM of context.sliceMatchers) {\n builder.addMatcher(sM.matcher, sM.reducer);\n }\n for (let m of actionMatchers) {\n builder.addMatcher(m.matcher, m.reducer);\n }\n if (defaultCaseReducer) {\n builder.addDefaultCase(defaultCaseReducer);\n }\n });\n }\n const selectSelf = (state) => state;\n const injectedSelectorCache = /* @__PURE__ */ new Map();\n const injectedStateCache = /* @__PURE__ */ new WeakMap();\n let _reducer;\n function reducer(state, action) {\n if (!_reducer) _reducer = buildReducer();\n return _reducer(state, action);\n }\n function getInitialState() {\n if (!_reducer) _reducer = buildReducer();\n return _reducer.getInitialState();\n }\n function makeSelectorProps(reducerPath2, injected = false) {\n function selectSlice(state) {\n let sliceState = state[reducerPath2];\n if (typeof sliceState === \"undefined\") {\n if (injected) {\n sliceState = getOrInsertComputed(injectedStateCache, selectSlice, getInitialState);\n } else if (process.env.NODE_ENV !== \"production\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(15) : \"selectSlice returned undefined for an uninjected slice reducer\");\n }\n }\n return sliceState;\n }\n function getSelectors(selectState = selectSelf) {\n const selectorCache = getOrInsertComputed(injectedSelectorCache, injected, () => /* @__PURE__ */ new WeakMap());\n return getOrInsertComputed(selectorCache, selectState, () => {\n const map = {};\n for (const [name2, selector] of Object.entries(options.selectors ?? {})) {\n map[name2] = wrapSelector(selector, selectState, () => getOrInsertComputed(injectedStateCache, selectState, getInitialState), injected);\n }\n return map;\n });\n }\n return {\n reducerPath: reducerPath2,\n getSelectors,\n get selectors() {\n return getSelectors(selectSlice);\n },\n selectSlice\n };\n }\n const slice = {\n name,\n reducer,\n actions: context.actionCreators,\n caseReducers: context.sliceCaseReducersByName,\n getInitialState,\n ...makeSelectorProps(reducerPath),\n injectInto(injectable, {\n reducerPath: pathOpt,\n ...config\n } = {}) {\n const newReducerPath = pathOpt ?? reducerPath;\n injectable.inject({\n reducerPath: newReducerPath,\n reducer\n }, config);\n return {\n ...slice,\n ...makeSelectorProps(newReducerPath, true)\n };\n }\n };\n return slice;\n };\n}\nfunction wrapSelector(selector, selectState, getInitialState, injected) {\n function wrapper(rootState, ...args) {\n let sliceState = selectState(rootState);\n if (typeof sliceState === \"undefined\") {\n if (injected) {\n sliceState = getInitialState();\n } else if (process.env.NODE_ENV !== \"production\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(16) : \"selectState returned undefined for an uninjected slice reducer\");\n }\n }\n return selector(sliceState, ...args);\n }\n wrapper.unwrapped = selector;\n return wrapper;\n}\nvar createSlice = /* @__PURE__ */ buildCreateSlice();\nfunction buildReducerCreators() {\n function asyncThunk(payloadCreator, config) {\n return {\n _reducerDefinitionType: \"asyncThunk\" /* asyncThunk */,\n payloadCreator,\n ...config\n };\n }\n asyncThunk.withTypes = () => asyncThunk;\n return {\n reducer(caseReducer) {\n return Object.assign({\n // hack so the wrapping function has the same name as the original\n // we need to create a wrapper so the `reducerDefinitionType` is not assigned to the original\n [caseReducer.name](...args) {\n return caseReducer(...args);\n }\n }[caseReducer.name], {\n _reducerDefinitionType: \"reducer\" /* reducer */\n });\n },\n preparedReducer(prepare, reducer) {\n return {\n _reducerDefinitionType: \"reducerWithPrepare\" /* reducerWithPrepare */,\n prepare,\n reducer\n };\n },\n asyncThunk\n };\n}\nfunction handleNormalReducerDefinition({\n type,\n reducerName,\n createNotation\n}, maybeReducerWithPrepare, context) {\n let caseReducer;\n let prepareCallback;\n if (\"reducer\" in maybeReducerWithPrepare) {\n if (createNotation && !isCaseReducerWithPrepareDefinition(maybeReducerWithPrepare)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(17) : \"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.\");\n }\n caseReducer = maybeReducerWithPrepare.reducer;\n prepareCallback = maybeReducerWithPrepare.prepare;\n } else {\n caseReducer = maybeReducerWithPrepare;\n }\n context.addCase(type, caseReducer).exposeCaseReducer(reducerName, caseReducer).exposeAction(reducerName, prepareCallback ? createAction(type, prepareCallback) : createAction(type));\n}\nfunction isAsyncThunkSliceReducerDefinition(reducerDefinition) {\n return reducerDefinition._reducerDefinitionType === \"asyncThunk\" /* asyncThunk */;\n}\nfunction isCaseReducerWithPrepareDefinition(reducerDefinition) {\n return reducerDefinition._reducerDefinitionType === \"reducerWithPrepare\" /* reducerWithPrepare */;\n}\nfunction handleThunkCaseReducerDefinition({\n type,\n reducerName\n}, reducerDefinition, context, cAT) {\n if (!cAT) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(18) : \"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.\");\n }\n const {\n payloadCreator,\n fulfilled,\n pending,\n rejected,\n settled,\n options\n } = reducerDefinition;\n const thunk = cAT(type, payloadCreator, options);\n context.exposeAction(reducerName, thunk);\n if (fulfilled) {\n context.addCase(thunk.fulfilled, fulfilled);\n }\n if (pending) {\n context.addCase(thunk.pending, pending);\n }\n if (rejected) {\n context.addCase(thunk.rejected, rejected);\n }\n if (settled) {\n context.addMatcher(thunk.settled, settled);\n }\n context.exposeCaseReducer(reducerName, {\n fulfilled: fulfilled || noop,\n pending: pending || noop,\n rejected: rejected || noop,\n settled: settled || noop\n });\n}\nfunction noop() {\n}\n\n// src/entities/entity_state.ts\nfunction getInitialEntityState() {\n return {\n ids: [],\n entities: {}\n };\n}\nfunction createInitialStateFactory(stateAdapter) {\n function getInitialState(additionalState = {}, entities) {\n const state = Object.assign(getInitialEntityState(), additionalState);\n return entities ? stateAdapter.setAll(state, entities) : state;\n }\n return {\n getInitialState\n };\n}\n\n// src/entities/state_selectors.ts\nfunction createSelectorsFactory() {\n function getSelectors(selectState, options = {}) {\n const {\n createSelector: createSelector2 = createDraftSafeSelector\n } = options;\n const selectIds = (state) => state.ids;\n const selectEntities = (state) => state.entities;\n const selectAll = createSelector2(selectIds, selectEntities, (ids, entities) => ids.map((id) => entities[id]));\n const selectId = (_, id) => id;\n const selectById = (entities, id) => entities[id];\n const selectTotal = createSelector2(selectIds, (ids) => ids.length);\n if (!selectState) {\n return {\n selectIds,\n selectEntities,\n selectAll,\n selectTotal,\n selectById: createSelector2(selectEntities, selectId, selectById)\n };\n }\n const selectGlobalizedEntities = createSelector2(selectState, selectEntities);\n return {\n selectIds: createSelector2(selectState, selectIds),\n selectEntities: selectGlobalizedEntities,\n selectAll: createSelector2(selectState, selectAll),\n selectTotal: createSelector2(selectState, selectTotal),\n selectById: createSelector2(selectGlobalizedEntities, selectId, selectById)\n };\n }\n return {\n getSelectors\n };\n}\n\n// src/entities/state_adapter.ts\nimport { produce as createNextState3, isDraft as isDraft3 } from \"immer\";\nvar isDraftTyped = isDraft3;\nfunction createSingleArgumentStateOperator(mutator) {\n const operator = createStateOperator((_, state) => mutator(state));\n return function operation(state) {\n return operator(state, void 0);\n };\n}\nfunction createStateOperator(mutator) {\n return function operation(state, arg) {\n function isPayloadActionArgument(arg2) {\n return isFSA(arg2);\n }\n const runMutator = (draft) => {\n if (isPayloadActionArgument(arg)) {\n mutator(arg.payload, draft);\n } else {\n mutator(arg, draft);\n }\n };\n if (isDraftTyped(state)) {\n runMutator(state);\n return state;\n }\n return createNextState3(state, runMutator);\n };\n}\n\n// src/entities/utils.ts\nimport { current as current2, isDraft as isDraft4 } from \"immer\";\nfunction selectIdValue(entity, selectId) {\n const key = selectId(entity);\n if (process.env.NODE_ENV !== \"production\" && key === void 0) {\n console.warn(\"The entity passed to the `selectId` implementation returned undefined.\", \"You should probably provide your own `selectId` implementation.\", \"The entity that was passed:\", entity, \"The `selectId` implementation:\", selectId.toString());\n }\n return key;\n}\nfunction ensureEntitiesArray(entities) {\n if (!Array.isArray(entities)) {\n entities = Object.values(entities);\n }\n return entities;\n}\nfunction getCurrent(value) {\n return isDraft4(value) ? current2(value) : value;\n}\nfunction splitAddedUpdatedEntities(newEntities, selectId, state) {\n newEntities = ensureEntitiesArray(newEntities);\n const existingIdsArray = getCurrent(state.ids);\n const existingIds = new Set(existingIdsArray);\n const added = [];\n const addedIds = /* @__PURE__ */ new Set([]);\n const updated = [];\n for (const entity of newEntities) {\n const id = selectIdValue(entity, selectId);\n if (existingIds.has(id) || addedIds.has(id)) {\n updated.push({\n id,\n changes: entity\n });\n } else {\n addedIds.add(id);\n added.push(entity);\n }\n }\n return [added, updated, existingIdsArray];\n}\n\n// src/entities/unsorted_state_adapter.ts\nfunction createUnsortedStateAdapter(selectId) {\n function addOneMutably(entity, state) {\n const key = selectIdValue(entity, selectId);\n if (key in state.entities) {\n return;\n }\n state.ids.push(key);\n state.entities[key] = entity;\n }\n function addManyMutably(newEntities, state) {\n newEntities = ensureEntitiesArray(newEntities);\n for (const entity of newEntities) {\n addOneMutably(entity, state);\n }\n }\n function setOneMutably(entity, state) {\n const key = selectIdValue(entity, selectId);\n if (!(key in state.entities)) {\n state.ids.push(key);\n }\n ;\n state.entities[key] = entity;\n }\n function setManyMutably(newEntities, state) {\n newEntities = ensureEntitiesArray(newEntities);\n for (const entity of newEntities) {\n setOneMutably(entity, state);\n }\n }\n function setAllMutably(newEntities, state) {\n newEntities = ensureEntitiesArray(newEntities);\n state.ids = [];\n state.entities = {};\n addManyMutably(newEntities, state);\n }\n function removeOneMutably(key, state) {\n return removeManyMutably([key], state);\n }\n function removeManyMutably(keys, state) {\n let didMutate = false;\n keys.forEach((key) => {\n if (key in state.entities) {\n delete state.entities[key];\n didMutate = true;\n }\n });\n if (didMutate) {\n state.ids = state.ids.filter((id) => id in state.entities);\n }\n }\n function removeAllMutably(state) {\n Object.assign(state, {\n ids: [],\n entities: {}\n });\n }\n function takeNewKey(keys, update, state) {\n const original3 = state.entities[update.id];\n if (original3 === void 0) {\n return false;\n }\n const updated = Object.assign({}, original3, update.changes);\n const newKey = selectIdValue(updated, selectId);\n const hasNewKey = newKey !== update.id;\n if (hasNewKey) {\n keys[update.id] = newKey;\n delete state.entities[update.id];\n }\n ;\n state.entities[newKey] = updated;\n return hasNewKey;\n }\n function updateOneMutably(update, state) {\n return updateManyMutably([update], state);\n }\n function updateManyMutably(updates, state) {\n const newKeys = {};\n const updatesPerEntity = {};\n updates.forEach((update) => {\n if (update.id in state.entities) {\n updatesPerEntity[update.id] = {\n id: update.id,\n // Spreads ignore falsy values, so this works even if there isn't\n // an existing update already at this key\n changes: {\n ...updatesPerEntity[update.id]?.changes,\n ...update.changes\n }\n };\n }\n });\n updates = Object.values(updatesPerEntity);\n const didMutateEntities = updates.length > 0;\n if (didMutateEntities) {\n const didMutateIds = updates.filter((update) => takeNewKey(newKeys, update, state)).length > 0;\n if (didMutateIds) {\n state.ids = Object.values(state.entities).map((e) => selectIdValue(e, selectId));\n }\n }\n }\n function upsertOneMutably(entity, state) {\n return upsertManyMutably([entity], state);\n }\n function upsertManyMutably(newEntities, state) {\n const [added, updated] = splitAddedUpdatedEntities(newEntities, selectId, state);\n addManyMutably(added, state);\n updateManyMutably(updated, state);\n }\n return {\n removeAll: createSingleArgumentStateOperator(removeAllMutably),\n addOne: createStateOperator(addOneMutably),\n addMany: createStateOperator(addManyMutably),\n setOne: createStateOperator(setOneMutably),\n setMany: createStateOperator(setManyMutably),\n setAll: createStateOperator(setAllMutably),\n updateOne: createStateOperator(updateOneMutably),\n updateMany: createStateOperator(updateManyMutably),\n upsertOne: createStateOperator(upsertOneMutably),\n upsertMany: createStateOperator(upsertManyMutably),\n removeOne: createStateOperator(removeOneMutably),\n removeMany: createStateOperator(removeManyMutably)\n };\n}\n\n// src/entities/sorted_state_adapter.ts\nfunction findInsertIndex(sortedItems, item, comparisonFunction) {\n let lowIndex = 0;\n let highIndex = sortedItems.length;\n while (lowIndex < highIndex) {\n let middleIndex = lowIndex + highIndex >>> 1;\n const currentItem = sortedItems[middleIndex];\n const res = comparisonFunction(item, currentItem);\n if (res >= 0) {\n lowIndex = middleIndex + 1;\n } else {\n highIndex = middleIndex;\n }\n }\n return lowIndex;\n}\nfunction insert(sortedItems, item, comparisonFunction) {\n const insertAtIndex = findInsertIndex(sortedItems, item, comparisonFunction);\n sortedItems.splice(insertAtIndex, 0, item);\n return sortedItems;\n}\nfunction createSortedStateAdapter(selectId, comparer) {\n const {\n removeOne,\n removeMany,\n removeAll\n } = createUnsortedStateAdapter(selectId);\n function addOneMutably(entity, state) {\n return addManyMutably([entity], state);\n }\n function addManyMutably(newEntities, state, existingIds) {\n newEntities = ensureEntitiesArray(newEntities);\n const existingKeys = new Set(existingIds ?? getCurrent(state.ids));\n const models = newEntities.filter((model) => !existingKeys.has(selectIdValue(model, selectId)));\n if (models.length !== 0) {\n mergeFunction(state, models);\n }\n }\n function setOneMutably(entity, state) {\n return setManyMutably([entity], state);\n }\n function setManyMutably(newEntities, state) {\n newEntities = ensureEntitiesArray(newEntities);\n if (newEntities.length !== 0) {\n for (const item of newEntities) {\n delete state.entities[selectId(item)];\n }\n mergeFunction(state, newEntities);\n }\n }\n function setAllMutably(newEntities, state) {\n newEntities = ensureEntitiesArray(newEntities);\n state.entities = {};\n state.ids = [];\n addManyMutably(newEntities, state, []);\n }\n function updateOneMutably(update, state) {\n return updateManyMutably([update], state);\n }\n function updateManyMutably(updates, state) {\n let appliedUpdates = false;\n let replacedIds = false;\n for (let update of updates) {\n const entity = state.entities[update.id];\n if (!entity) {\n continue;\n }\n appliedUpdates = true;\n Object.assign(entity, update.changes);\n const newId = selectId(entity);\n if (update.id !== newId) {\n replacedIds = true;\n delete state.entities[update.id];\n const oldIndex = state.ids.indexOf(update.id);\n state.ids[oldIndex] = newId;\n state.entities[newId] = entity;\n }\n }\n if (appliedUpdates) {\n mergeFunction(state, [], appliedUpdates, replacedIds);\n }\n }\n function upsertOneMutably(entity, state) {\n return upsertManyMutably([entity], state);\n }\n function upsertManyMutably(newEntities, state) {\n const [added, updated, existingIdsArray] = splitAddedUpdatedEntities(newEntities, selectId, state);\n if (added.length) {\n addManyMutably(added, state, existingIdsArray);\n }\n if (updated.length) {\n updateManyMutably(updated, state);\n }\n }\n function areArraysEqual(a, b) {\n if (a.length !== b.length) {\n return false;\n }\n for (let i = 0; i < a.length; i++) {\n if (a[i] === b[i]) {\n continue;\n }\n return false;\n }\n return true;\n }\n const mergeFunction = (state, addedItems, appliedUpdates, replacedIds) => {\n const currentEntities = getCurrent(state.entities);\n const currentIds = getCurrent(state.ids);\n const stateEntities = state.entities;\n let ids = currentIds;\n if (replacedIds) {\n ids = new Set(currentIds);\n }\n let sortedEntities = [];\n for (const id of ids) {\n const entity = currentEntities[id];\n if (entity) {\n sortedEntities.push(entity);\n }\n }\n const wasPreviouslyEmpty = sortedEntities.length === 0;\n for (const item of addedItems) {\n stateEntities[selectId(item)] = item;\n if (!wasPreviouslyEmpty) {\n insert(sortedEntities, item, comparer);\n }\n }\n if (wasPreviouslyEmpty) {\n sortedEntities = addedItems.slice().sort(comparer);\n } else if (appliedUpdates) {\n sortedEntities.sort(comparer);\n }\n const newSortedIds = sortedEntities.map(selectId);\n if (!areArraysEqual(currentIds, newSortedIds)) {\n state.ids = newSortedIds;\n }\n };\n return {\n removeOne,\n removeMany,\n removeAll,\n addOne: createStateOperator(addOneMutably),\n updateOne: createStateOperator(updateOneMutably),\n upsertOne: createStateOperator(upsertOneMutably),\n setOne: createStateOperator(setOneMutably),\n setMany: createStateOperator(setManyMutably),\n setAll: createStateOperator(setAllMutably),\n addMany: createStateOperator(addManyMutably),\n updateMany: createStateOperator(updateManyMutably),\n upsertMany: createStateOperator(upsertManyMutably)\n };\n}\n\n// src/entities/create_adapter.ts\nfunction createEntityAdapter(options = {}) {\n const {\n selectId,\n sortComparer\n } = {\n sortComparer: false,\n selectId: (instance) => instance.id,\n ...options\n };\n const stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId);\n const stateFactory = createInitialStateFactory(stateAdapter);\n const selectorsFactory = createSelectorsFactory();\n return {\n selectId,\n sortComparer,\n ...stateFactory,\n ...selectorsFactory,\n ...stateAdapter\n };\n}\n\n// src/listenerMiddleware/index.ts\nimport { isAction as isAction3 } from \"redux\";\n\n// src/listenerMiddleware/exceptions.ts\nvar task = \"task\";\nvar listener = \"listener\";\nvar completed = \"completed\";\nvar cancelled = \"cancelled\";\nvar taskCancelled = `task-${cancelled}`;\nvar taskCompleted = `task-${completed}`;\nvar listenerCancelled = `${listener}-${cancelled}`;\nvar listenerCompleted = `${listener}-${completed}`;\nvar TaskAbortError = class {\n constructor(code) {\n this.code = code;\n this.message = `${task} ${cancelled} (reason: ${code})`;\n }\n name = \"TaskAbortError\";\n message;\n};\n\n// src/listenerMiddleware/utils.ts\nvar assertFunction = (func, expected) => {\n if (typeof func !== \"function\") {\n throw new TypeError(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(32) : `${expected} is not a function`);\n }\n};\nvar noop2 = () => {\n};\nvar catchRejection = (promise, onError = noop2) => {\n promise.catch(onError);\n return promise;\n};\nvar addAbortSignalListener = (abortSignal, callback) => {\n abortSignal.addEventListener(\"abort\", callback, {\n once: true\n });\n return () => abortSignal.removeEventListener(\"abort\", callback);\n};\nvar abortControllerWithReason = (abortController, reason) => {\n const signal = abortController.signal;\n if (signal.aborted) {\n return;\n }\n if (!(\"reason\" in signal)) {\n Object.defineProperty(signal, \"reason\", {\n enumerable: true,\n value: reason,\n configurable: true,\n writable: true\n });\n }\n ;\n abortController.abort(reason);\n};\n\n// src/listenerMiddleware/task.ts\nvar validateActive = (signal) => {\n if (signal.aborted) {\n const {\n reason\n } = signal;\n throw new TaskAbortError(reason);\n }\n};\nfunction raceWithSignal(signal, promise) {\n let cleanup = noop2;\n return new Promise((resolve, reject) => {\n const notifyRejection = () => reject(new TaskAbortError(signal.reason));\n if (signal.aborted) {\n notifyRejection();\n return;\n }\n cleanup = addAbortSignalListener(signal, notifyRejection);\n promise.finally(() => cleanup()).then(resolve, reject);\n }).finally(() => {\n cleanup = noop2;\n });\n}\nvar runTask = async (task2, cleanUp) => {\n try {\n await Promise.resolve();\n const value = await task2();\n return {\n status: \"ok\",\n value\n };\n } catch (error) {\n return {\n status: error instanceof TaskAbortError ? \"cancelled\" : \"rejected\",\n error\n };\n } finally {\n cleanUp?.();\n }\n};\nvar createPause = (signal) => {\n return (promise) => {\n return catchRejection(raceWithSignal(signal, promise).then((output) => {\n validateActive(signal);\n return output;\n }));\n };\n};\nvar createDelay = (signal) => {\n const pause = createPause(signal);\n return (timeoutMs) => {\n return pause(new Promise((resolve) => setTimeout(resolve, timeoutMs)));\n };\n};\n\n// src/listenerMiddleware/index.ts\nvar {\n assign\n} = Object;\nvar INTERNAL_NIL_TOKEN = {};\nvar alm = \"listenerMiddleware\";\nvar createFork = (parentAbortSignal, parentBlockingPromises) => {\n const linkControllers = (controller) => addAbortSignalListener(parentAbortSignal, () => abortControllerWithReason(controller, parentAbortSignal.reason));\n return (taskExecutor, opts) => {\n assertFunction(taskExecutor, \"taskExecutor\");\n const childAbortController = new AbortController();\n linkControllers(childAbortController);\n const result = runTask(async () => {\n validateActive(parentAbortSignal);\n validateActive(childAbortController.signal);\n const result2 = await taskExecutor({\n pause: createPause(childAbortController.signal),\n delay: createDelay(childAbortController.signal),\n signal: childAbortController.signal\n });\n validateActive(childAbortController.signal);\n return result2;\n }, () => abortControllerWithReason(childAbortController, taskCompleted));\n if (opts?.autoJoin) {\n parentBlockingPromises.push(result.catch(noop2));\n }\n return {\n result: createPause(parentAbortSignal)(result),\n cancel() {\n abortControllerWithReason(childAbortController, taskCancelled);\n }\n };\n };\n};\nvar createTakePattern = (startListening, signal) => {\n const take = async (predicate, timeout) => {\n validateActive(signal);\n let unsubscribe = () => {\n };\n const tuplePromise = new Promise((resolve, reject) => {\n let stopListening = startListening({\n predicate,\n effect: (action, listenerApi) => {\n listenerApi.unsubscribe();\n resolve([action, listenerApi.getState(), listenerApi.getOriginalState()]);\n }\n });\n unsubscribe = () => {\n stopListening();\n reject();\n };\n });\n const promises = [tuplePromise];\n if (timeout != null) {\n promises.push(new Promise((resolve) => setTimeout(resolve, timeout, null)));\n }\n try {\n const output = await raceWithSignal(signal, Promise.race(promises));\n validateActive(signal);\n return output;\n } finally {\n unsubscribe();\n }\n };\n return (predicate, timeout) => catchRejection(take(predicate, timeout));\n};\nvar getListenerEntryPropsFrom = (options) => {\n let {\n type,\n actionCreator,\n matcher,\n predicate,\n effect\n } = options;\n if (type) {\n predicate = createAction(type).match;\n } else if (actionCreator) {\n type = actionCreator.type;\n predicate = actionCreator.match;\n } else if (matcher) {\n predicate = matcher;\n } else if (predicate) {\n } else {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(21) : \"Creating or removing a listener requires one of the known fields for matching an action\");\n }\n assertFunction(effect, \"options.listener\");\n return {\n predicate,\n type,\n effect\n };\n};\nvar createListenerEntry = /* @__PURE__ */ assign((options) => {\n const {\n type,\n predicate,\n effect\n } = getListenerEntryPropsFrom(options);\n const entry = {\n id: nanoid(),\n effect,\n type,\n predicate,\n pending: /* @__PURE__ */ new Set(),\n unsubscribe: () => {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(22) : \"Unsubscribe not initialized\");\n }\n };\n return entry;\n}, {\n withTypes: () => createListenerEntry\n});\nvar findListenerEntry = (listenerMap, options) => {\n const {\n type,\n effect,\n predicate\n } = getListenerEntryPropsFrom(options);\n return Array.from(listenerMap.values()).find((entry) => {\n const matchPredicateOrType = typeof type === \"string\" ? entry.type === type : entry.predicate === predicate;\n return matchPredicateOrType && entry.effect === effect;\n });\n};\nvar cancelActiveListeners = (entry) => {\n entry.pending.forEach((controller) => {\n abortControllerWithReason(controller, listenerCancelled);\n });\n};\nvar createClearListenerMiddleware = (listenerMap) => {\n return () => {\n listenerMap.forEach(cancelActiveListeners);\n listenerMap.clear();\n };\n};\nvar safelyNotifyError = (errorHandler, errorToNotify, errorInfo) => {\n try {\n errorHandler(errorToNotify, errorInfo);\n } catch (errorHandlerError) {\n setTimeout(() => {\n throw errorHandlerError;\n }, 0);\n }\n};\nvar addListener = /* @__PURE__ */ assign(/* @__PURE__ */ createAction(`${alm}/add`), {\n withTypes: () => addListener\n});\nvar clearAllListeners = /* @__PURE__ */ createAction(`${alm}/removeAll`);\nvar removeListener = /* @__PURE__ */ assign(/* @__PURE__ */ createAction(`${alm}/remove`), {\n withTypes: () => removeListener\n});\nvar defaultErrorHandler = (...args) => {\n console.error(`${alm}/error`, ...args);\n};\nvar createListenerMiddleware = (middlewareOptions = {}) => {\n const listenerMap = /* @__PURE__ */ new Map();\n const {\n extra,\n onError = defaultErrorHandler\n } = middlewareOptions;\n assertFunction(onError, \"onError\");\n const insertEntry = (entry) => {\n entry.unsubscribe = () => listenerMap.delete(entry.id);\n listenerMap.set(entry.id, entry);\n return (cancelOptions) => {\n entry.unsubscribe();\n if (cancelOptions?.cancelActive) {\n cancelActiveListeners(entry);\n }\n };\n };\n const startListening = (options) => {\n const entry = findListenerEntry(listenerMap, options) ?? createListenerEntry(options);\n return insertEntry(entry);\n };\n assign(startListening, {\n withTypes: () => startListening\n });\n const stopListening = (options) => {\n const entry = findListenerEntry(listenerMap, options);\n if (entry) {\n entry.unsubscribe();\n if (options.cancelActive) {\n cancelActiveListeners(entry);\n }\n }\n return !!entry;\n };\n assign(stopListening, {\n withTypes: () => stopListening\n });\n const notifyListener = async (entry, action, api, getOriginalState) => {\n const internalTaskController = new AbortController();\n const take = createTakePattern(startListening, internalTaskController.signal);\n const autoJoinPromises = [];\n try {\n entry.pending.add(internalTaskController);\n await Promise.resolve(entry.effect(\n action,\n // Use assign() rather than ... to avoid extra helper functions added to bundle\n assign({}, api, {\n getOriginalState,\n condition: (predicate, timeout) => take(predicate, timeout).then(Boolean),\n take,\n delay: createDelay(internalTaskController.signal),\n pause: createPause(internalTaskController.signal),\n extra,\n signal: internalTaskController.signal,\n fork: createFork(internalTaskController.signal, autoJoinPromises),\n unsubscribe: entry.unsubscribe,\n subscribe: () => {\n listenerMap.set(entry.id, entry);\n },\n cancelActiveListeners: () => {\n entry.pending.forEach((controller, _, set) => {\n if (controller !== internalTaskController) {\n abortControllerWithReason(controller, listenerCancelled);\n set.delete(controller);\n }\n });\n },\n cancel: () => {\n abortControllerWithReason(internalTaskController, listenerCancelled);\n entry.pending.delete(internalTaskController);\n },\n throwIfCancelled: () => {\n validateActive(internalTaskController.signal);\n }\n })\n ));\n } catch (listenerError) {\n if (!(listenerError instanceof TaskAbortError)) {\n safelyNotifyError(onError, listenerError, {\n raisedBy: \"effect\"\n });\n }\n } finally {\n await Promise.all(autoJoinPromises);\n abortControllerWithReason(internalTaskController, listenerCompleted);\n entry.pending.delete(internalTaskController);\n }\n };\n const clearListenerMiddleware = createClearListenerMiddleware(listenerMap);\n const middleware = (api) => (next) => (action) => {\n if (!isAction3(action)) {\n return next(action);\n }\n if (addListener.match(action)) {\n return startListening(action.payload);\n }\n if (clearAllListeners.match(action)) {\n clearListenerMiddleware();\n return;\n }\n if (removeListener.match(action)) {\n return stopListening(action.payload);\n }\n let originalState = api.getState();\n const getOriginalState = () => {\n if (originalState === INTERNAL_NIL_TOKEN) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(23) : `${alm}: getOriginalState can only be called synchronously`);\n }\n return originalState;\n };\n let result;\n try {\n result = next(action);\n if (listenerMap.size > 0) {\n const currentState = api.getState();\n const listenerEntries = Array.from(listenerMap.values());\n for (const entry of listenerEntries) {\n let runListener = false;\n try {\n runListener = entry.predicate(action, currentState, originalState);\n } catch (predicateError) {\n runListener = false;\n safelyNotifyError(onError, predicateError, {\n raisedBy: \"predicate\"\n });\n }\n if (!runListener) {\n continue;\n }\n notifyListener(entry, action, api, getOriginalState);\n }\n }\n } finally {\n originalState = INTERNAL_NIL_TOKEN;\n }\n return result;\n };\n return {\n middleware,\n startListening,\n stopListening,\n clearListeners: clearListenerMiddleware\n };\n};\n\n// src/dynamicMiddleware/index.ts\nimport { compose as compose3 } from \"redux\";\nvar createMiddlewareEntry = (middleware) => ({\n middleware,\n applied: /* @__PURE__ */ new Map()\n});\nvar matchInstance = (instanceId) => (action) => action?.meta?.instanceId === instanceId;\nvar createDynamicMiddleware = () => {\n const instanceId = nanoid();\n const middlewareMap = /* @__PURE__ */ new Map();\n const withMiddleware = Object.assign(createAction(\"dynamicMiddleware/add\", (...middlewares) => ({\n payload: middlewares,\n meta: {\n instanceId\n }\n })), {\n withTypes: () => withMiddleware\n });\n const addMiddleware = Object.assign(function addMiddleware2(...middlewares) {\n middlewares.forEach((middleware2) => {\n getOrInsertComputed(middlewareMap, middleware2, createMiddlewareEntry);\n });\n }, {\n withTypes: () => addMiddleware\n });\n const getFinalMiddleware = (api) => {\n const appliedMiddleware = Array.from(middlewareMap.values()).map((entry) => getOrInsertComputed(entry.applied, api, entry.middleware));\n return compose3(...appliedMiddleware);\n };\n const isWithMiddleware = isAllOf(withMiddleware, matchInstance(instanceId));\n const middleware = (api) => (next) => (action) => {\n if (isWithMiddleware(action)) {\n addMiddleware(...action.payload);\n return api.dispatch;\n }\n return getFinalMiddleware(api)(next)(action);\n };\n return {\n middleware,\n addMiddleware,\n withMiddleware,\n instanceId\n };\n};\n\n// src/combineSlices.ts\nimport { combineReducers as combineReducers2 } from \"redux\";\nvar isSliceLike = (maybeSliceLike) => \"reducerPath\" in maybeSliceLike && typeof maybeSliceLike.reducerPath === \"string\";\nvar getReducers = (slices) => slices.flatMap((sliceOrMap) => isSliceLike(sliceOrMap) ? [[sliceOrMap.reducerPath, sliceOrMap.reducer]] : Object.entries(sliceOrMap));\nvar ORIGINAL_STATE = Symbol.for(\"rtk-state-proxy-original\");\nvar isStateProxy = (value) => !!value && !!value[ORIGINAL_STATE];\nvar stateProxyMap = /* @__PURE__ */ new WeakMap();\nvar createStateProxy = (state, reducerMap, initialStateCache) => getOrInsertComputed(stateProxyMap, state, () => new Proxy(state, {\n get: (target, prop, receiver) => {\n if (prop === ORIGINAL_STATE) return target;\n const result = Reflect.get(target, prop, receiver);\n if (typeof result === \"undefined\") {\n const cached = initialStateCache[prop];\n if (typeof cached !== \"undefined\") return cached;\n const reducer = reducerMap[prop];\n if (reducer) {\n const reducerResult = reducer(void 0, {\n type: nanoid()\n });\n if (typeof reducerResult === \"undefined\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(24) : `The slice reducer for key \"${prop.toString()}\" returned undefined when called for selector(). If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);\n }\n initialStateCache[prop] = reducerResult;\n return reducerResult;\n }\n }\n return result;\n }\n}));\nvar original = (state) => {\n if (!isStateProxy(state)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(25) : \"original must be used on state Proxy\");\n }\n return state[ORIGINAL_STATE];\n};\nvar emptyObject = {};\nvar noopReducer = (state = emptyObject) => state;\nfunction combineSlices(...slices) {\n const reducerMap = Object.fromEntries(getReducers(slices));\n const getReducer = () => Object.keys(reducerMap).length ? combineReducers2(reducerMap) : noopReducer;\n let reducer = getReducer();\n function combinedReducer(state, action) {\n return reducer(state, action);\n }\n combinedReducer.withLazyLoadedSlices = () => combinedReducer;\n const initialStateCache = {};\n const inject = (slice, config = {}) => {\n const {\n reducerPath,\n reducer: reducerToInject\n } = slice;\n const currentReducer = reducerMap[reducerPath];\n if (!config.overrideExisting && currentReducer && currentReducer !== reducerToInject) {\n if (typeof process !== \"undefined\" && process.env.NODE_ENV === \"development\") {\n console.error(`called \\`inject\\` to override already-existing reducer ${reducerPath} without specifying \\`overrideExisting: true\\``);\n }\n return combinedReducer;\n }\n if (config.overrideExisting && currentReducer !== reducerToInject) {\n delete initialStateCache[reducerPath];\n }\n reducerMap[reducerPath] = reducerToInject;\n reducer = getReducer();\n return combinedReducer;\n };\n const selector = Object.assign(function makeSelector(selectorFn, selectState) {\n return function selector2(state, ...args) {\n return selectorFn(createStateProxy(selectState ? selectState(state, ...args) : state, reducerMap, initialStateCache), ...args);\n };\n }, {\n original\n });\n return Object.assign(combinedReducer, {\n inject,\n selector\n });\n}\n\n// src/formatProdErrorMessage.ts\nfunction formatProdErrorMessage(code) {\n return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;\n}\nexport {\n ReducerType,\n SHOULD_AUTOBATCH,\n TaskAbortError,\n Tuple,\n addListener,\n asyncThunkCreator,\n autoBatchEnhancer,\n buildCreateSlice,\n clearAllListeners,\n combineSlices,\n configureStore,\n createAction,\n createActionCreatorInvariantMiddleware,\n createAsyncThunk,\n createDraftSafeSelector,\n createDraftSafeSelectorCreator,\n createDynamicMiddleware,\n createEntityAdapter,\n createImmutableStateInvariantMiddleware,\n createListenerMiddleware,\n produce as createNextState,\n createReducer,\n createSelector,\n createSelectorCreator2 as createSelectorCreator,\n createSerializableStateInvariantMiddleware,\n createSlice,\n current3 as current,\n findNonSerializableValue,\n formatProdErrorMessage,\n freeze,\n isActionCreator,\n isAllOf,\n isAnyOf,\n isAsyncThunkAction,\n isDraft5 as isDraft,\n isFSA as isFluxStandardAction,\n isFulfilled,\n isImmutableDefault,\n isPending,\n isPlain,\n isRejected,\n isRejectedWithValue,\n lruMemoize,\n miniSerializeError,\n nanoid,\n original2 as original,\n prepareAutoBatched,\n removeListener,\n unwrapResult,\n weakMapMemoize2 as weakMapMemoize\n};\n//# sourceMappingURL=redux-toolkit.modern.mjs.map","import { createSlice } from '@reduxjs/toolkit';\nvar initialState = {\n layoutType: 'horizontal',\n width: 0,\n height: 0,\n margin: {\n top: 5,\n right: 5,\n bottom: 5,\n left: 5\n },\n scale: 1\n};\nvar chartLayoutSlice = createSlice({\n name: 'chartLayout',\n initialState,\n reducers: {\n setLayout(state, action) {\n state.layoutType = action.payload;\n },\n setChartSize(state, action) {\n state.width = action.payload.width;\n state.height = action.payload.height;\n },\n setMargin(state, action) {\n var _action$payload$top, _action$payload$right, _action$payload$botto, _action$payload$left;\n state.margin.top = (_action$payload$top = action.payload.top) !== null && _action$payload$top !== void 0 ? _action$payload$top : 0;\n state.margin.right = (_action$payload$right = action.payload.right) !== null && _action$payload$right !== void 0 ? _action$payload$right : 0;\n state.margin.bottom = (_action$payload$botto = action.payload.bottom) !== null && _action$payload$botto !== void 0 ? _action$payload$botto : 0;\n state.margin.left = (_action$payload$left = action.payload.left) !== null && _action$payload$left !== void 0 ? _action$payload$left : 0;\n },\n setScale(state, action) {\n state.scale = action.payload;\n }\n }\n});\nexport var {\n setMargin,\n setLayout,\n setChartSize,\n setScale\n} = chartLayoutSlice.actions;\nexport var chartLayoutReducer = chartLayoutSlice.reducer;","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport { isValidElement } from 'react';\nexport var RADIAN = Math.PI / 180;\nexport var degreeToRadian = angle => angle * Math.PI / 180;\nexport var radianToDegree = angleInRadian => angleInRadian * 180 / Math.PI;\nexport var polarToCartesian = (cx, cy, radius, angle) => ({\n x: cx + Math.cos(-RADIAN * angle) * radius,\n y: cy + Math.sin(-RADIAN * angle) * radius\n});\nexport var getMaxRadius = function getMaxRadius(width, height) {\n var offset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n width: 0,\n height: 0,\n brushBottom: 0\n };\n return Math.min(Math.abs(width - (offset.left || 0) - (offset.right || 0)), Math.abs(height - (offset.top || 0) - (offset.bottom || 0))) / 2;\n};\nexport var distanceBetweenPoints = (point, anotherPoint) => {\n var {\n x: x1,\n y: y1\n } = point;\n var {\n x: x2,\n y: y2\n } = anotherPoint;\n return Math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2);\n};\nexport var getAngleOfPoint = (_ref, _ref2) => {\n var {\n x,\n y\n } = _ref;\n var {\n cx,\n cy\n } = _ref2;\n var radius = distanceBetweenPoints({\n x,\n y\n }, {\n x: cx,\n y: cy\n });\n if (radius <= 0) {\n return {\n radius,\n angle: 0\n };\n }\n var cos = (x - cx) / radius;\n var angleInRadian = Math.acos(cos);\n if (y > cy) {\n angleInRadian = 2 * Math.PI - angleInRadian;\n }\n return {\n radius,\n angle: radianToDegree(angleInRadian),\n angleInRadian\n };\n};\nexport var formatAngleOfSector = _ref3 => {\n var {\n startAngle,\n endAngle\n } = _ref3;\n var startCnt = Math.floor(startAngle / 360);\n var endCnt = Math.floor(endAngle / 360);\n var min = Math.min(startCnt, endCnt);\n return {\n startAngle: startAngle - min * 360,\n endAngle: endAngle - min * 360\n };\n};\nvar reverseFormatAngleOfSector = (angle, _ref4) => {\n var {\n startAngle,\n endAngle\n } = _ref4;\n var startCnt = Math.floor(startAngle / 360);\n var endCnt = Math.floor(endAngle / 360);\n var min = Math.min(startCnt, endCnt);\n return angle + min * 360;\n};\nexport var inRangeOfSector = (_ref5, viewBox) => {\n var {\n x,\n y\n } = _ref5;\n var {\n radius,\n angle\n } = getAngleOfPoint({\n x,\n y\n }, viewBox);\n var {\n innerRadius,\n outerRadius\n } = viewBox;\n if (radius < innerRadius || radius > outerRadius) {\n return null;\n }\n if (radius === 0) {\n return null;\n }\n var {\n startAngle,\n endAngle\n } = formatAngleOfSector(viewBox);\n var formatAngle = angle;\n var inRange;\n if (startAngle <= endAngle) {\n while (formatAngle > endAngle) {\n formatAngle -= 360;\n }\n while (formatAngle < startAngle) {\n formatAngle += 360;\n }\n inRange = formatAngle >= startAngle && formatAngle <= endAngle;\n } else {\n while (formatAngle > startAngle) {\n formatAngle -= 360;\n }\n while (formatAngle < endAngle) {\n formatAngle += 360;\n }\n inRange = formatAngle >= endAngle && formatAngle <= startAngle;\n }\n if (inRange) {\n return _objectSpread(_objectSpread({}, viewBox), {}, {\n radius,\n angle: reverseFormatAngleOfSector(formatAngle, viewBox)\n });\n }\n return null;\n};\nexport var getTickClassName = tick => ! /*#__PURE__*/isValidElement(tick) && typeof tick !== 'function' && typeof tick !== 'boolean' && tick != null ? tick.className : '';","export function getSliced(arr, startIndex, endIndex) {\n if (!Array.isArray(arr)) {\n return arr;\n }\n if (arr && startIndex + endIndex !== 0) {\n return arr.slice(startIndex, endIndex + 1);\n }\n return arr;\n}","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport sortBy from 'es-toolkit/compat/sortBy';\nimport get from 'es-toolkit/compat/get';\nimport { stack as shapeStack, stackOffsetExpand, stackOffsetNone, stackOffsetSilhouette, stackOffsetWiggle, stackOrderNone } from 'victory-vendor/d3-shape';\nimport { findEntryInArray, isNan, isNullish, isNumber, isNumOrStr, mathSign } from './DataUtils';\nimport { inRangeOfSector, polarToCartesian } from './PolarUtils';\nimport { getSliced } from './getSliced';\nexport function getValueByDataKey(obj, dataKey, defaultValue) {\n if (isNullish(obj) || isNullish(dataKey)) {\n return defaultValue;\n }\n if (isNumOrStr(dataKey)) {\n return get(obj, dataKey, defaultValue);\n }\n if (typeof dataKey === 'function') {\n return dataKey(obj);\n }\n return defaultValue;\n}\nexport var calculateActiveTickIndex = (coordinate, ticks, unsortedTicks, axisType, range) => {\n var _ticks$length;\n var index = -1;\n var len = (_ticks$length = ticks === null || ticks === void 0 ? void 0 : ticks.length) !== null && _ticks$length !== void 0 ? _ticks$length : 0;\n\n // if there are 1 or fewer ticks or if there is no coordinate then the active tick is at index 0\n if (len <= 1 || coordinate == null) {\n return 0;\n }\n if (axisType === 'angleAxis' && range != null && Math.abs(Math.abs(range[1] - range[0]) - 360) <= 1e-6) {\n // ticks are distributed in a circle\n for (var i = 0; i < len; i++) {\n var before = i > 0 ? unsortedTicks[i - 1].coordinate : unsortedTicks[len - 1].coordinate;\n var cur = unsortedTicks[i].coordinate;\n var after = i >= len - 1 ? unsortedTicks[0].coordinate : unsortedTicks[i + 1].coordinate;\n var sameDirectionCoord = void 0;\n if (mathSign(cur - before) !== mathSign(after - cur)) {\n var diffInterval = [];\n if (mathSign(after - cur) === mathSign(range[1] - range[0])) {\n sameDirectionCoord = after;\n var curInRange = cur + range[1] - range[0];\n diffInterval[0] = Math.min(curInRange, (curInRange + before) / 2);\n diffInterval[1] = Math.max(curInRange, (curInRange + before) / 2);\n } else {\n sameDirectionCoord = before;\n var afterInRange = after + range[1] - range[0];\n diffInterval[0] = Math.min(cur, (afterInRange + cur) / 2);\n diffInterval[1] = Math.max(cur, (afterInRange + cur) / 2);\n }\n var sameInterval = [Math.min(cur, (sameDirectionCoord + cur) / 2), Math.max(cur, (sameDirectionCoord + cur) / 2)];\n if (coordinate > sameInterval[0] && coordinate <= sameInterval[1] || coordinate >= diffInterval[0] && coordinate <= diffInterval[1]) {\n ({\n index\n } = unsortedTicks[i]);\n break;\n }\n } else {\n var minValue = Math.min(before, after);\n var maxValue = Math.max(before, after);\n if (coordinate > (minValue + cur) / 2 && coordinate <= (maxValue + cur) / 2) {\n ({\n index\n } = unsortedTicks[i]);\n break;\n }\n }\n }\n } else if (ticks) {\n // ticks are distributed in a single direction\n for (var _i = 0; _i < len; _i++) {\n if (_i === 0 && coordinate <= (ticks[_i].coordinate + ticks[_i + 1].coordinate) / 2 || _i > 0 && _i < len - 1 && coordinate > (ticks[_i].coordinate + ticks[_i - 1].coordinate) / 2 && coordinate <= (ticks[_i].coordinate + ticks[_i + 1].coordinate) / 2 || _i === len - 1 && coordinate > (ticks[_i].coordinate + ticks[_i - 1].coordinate) / 2) {\n ({\n index\n } = ticks[_i]);\n break;\n }\n }\n }\n return index;\n};\nexport var appendOffsetOfLegend = (offset, legendSettings, legendSize) => {\n if (legendSettings && legendSize) {\n var {\n width: boxWidth,\n height: boxHeight\n } = legendSize;\n var {\n align,\n verticalAlign,\n layout\n } = legendSettings;\n if ((layout === 'vertical' || layout === 'horizontal' && verticalAlign === 'middle') && align !== 'center' && isNumber(offset[align])) {\n return _objectSpread(_objectSpread({}, offset), {}, {\n [align]: offset[align] + (boxWidth || 0)\n });\n }\n if ((layout === 'horizontal' || layout === 'vertical' && align === 'center') && verticalAlign !== 'middle' && isNumber(offset[verticalAlign])) {\n return _objectSpread(_objectSpread({}, offset), {}, {\n [verticalAlign]: offset[verticalAlign] + (boxHeight || 0)\n });\n }\n }\n return offset;\n};\nexport var isCategoricalAxis = (layout, axisType) => layout === 'horizontal' && axisType === 'xAxis' || layout === 'vertical' && axisType === 'yAxis' || layout === 'centric' && axisType === 'angleAxis' || layout === 'radial' && axisType === 'radiusAxis';\n\n/**\n * Calculate the Coordinates of grid\n * @param {Array} ticks The ticks in axis\n * @param {Number} minValue The minimum value of axis\n * @param {Number} maxValue The maximum value of axis\n * @param {boolean} syncWithTicks Synchronize grid lines with ticks or not\n * @return {Array} Coordinates\n */\nexport var getCoordinatesOfGrid = (ticks, minValue, maxValue, syncWithTicks) => {\n if (syncWithTicks) {\n return ticks.map(entry => entry.coordinate);\n }\n var hasMin, hasMax;\n var values = ticks.map(entry => {\n if (entry.coordinate === minValue) {\n hasMin = true;\n }\n if (entry.coordinate === maxValue) {\n hasMax = true;\n }\n return entry.coordinate;\n });\n if (!hasMin) {\n values.push(minValue);\n }\n if (!hasMax) {\n values.push(maxValue);\n }\n return values;\n};\n\n/**\n * A subset of d3-scale that Recharts is using\n */\n\n/**\n * Get the ticks of an axis\n * @param {Object} axis The configuration of an axis\n * @param {Boolean} isGrid Whether or not are the ticks in grid\n * @param {Boolean} isAll Return the ticks of all the points or not\n * @return {Array} Ticks\n */\nexport var getTicksOfAxis = (axis, isGrid, isAll) => {\n if (!axis) {\n return null;\n }\n var {\n duplicateDomain,\n type,\n range,\n scale,\n realScaleType,\n isCategorical,\n categoricalDomain,\n tickCount,\n ticks,\n niceTicks,\n axisType\n } = axis;\n if (!scale) {\n return null;\n }\n var offsetForBand = realScaleType === 'scaleBand' && scale.bandwidth ? scale.bandwidth() / 2 : 2;\n var offset = (isGrid || isAll) && type === 'category' && scale.bandwidth ? scale.bandwidth() / offsetForBand : 0;\n offset = axisType === 'angleAxis' && range && range.length >= 2 ? mathSign(range[0] - range[1]) * 2 * offset : offset;\n\n // The ticks set by user should only affect the ticks adjacent to axis line\n if (isGrid && (ticks || niceTicks)) {\n var result = (ticks || niceTicks || []).map((entry, index) => {\n var scaleContent = duplicateDomain ? duplicateDomain.indexOf(entry) : entry;\n return {\n // If the scaleContent is not a number, the coordinate will be NaN.\n // That could be the case for example with a PointScale and a string as domain.\n coordinate: scale(scaleContent) + offset,\n value: entry,\n offset,\n index\n };\n });\n return result.filter(row => !isNan(row.coordinate));\n }\n\n // When axis is a categorical axis, but the type of axis is number or the scale of axis is not \"auto\"\n if (isCategorical && categoricalDomain) {\n return categoricalDomain.map((entry, index) => ({\n coordinate: scale(entry) + offset,\n value: entry,\n index,\n offset\n }));\n }\n if (scale.ticks && !isAll && tickCount != null) {\n return scale.ticks(tickCount).map((entry, index) => ({\n coordinate: scale(entry) + offset,\n value: entry,\n offset,\n index\n }));\n }\n\n // When axis has duplicated text, serial numbers are used to generate scale\n return scale.domain().map((entry, index) => ({\n coordinate: scale(entry) + offset,\n value: duplicateDomain ? duplicateDomain[entry] : entry,\n index,\n offset\n }));\n};\nvar EPS = 1e-4;\nexport var checkDomainOfScale = scale => {\n var domain = scale.domain();\n if (!domain || domain.length <= 2) {\n return;\n }\n var len = domain.length;\n var range = scale.range();\n var minValue = Math.min(range[0], range[1]) - EPS;\n var maxValue = Math.max(range[0], range[1]) + EPS;\n var first = scale(domain[0]);\n var last = scale(domain[len - 1]);\n if (first < minValue || first > maxValue || last < minValue || last > maxValue) {\n scale.domain([domain[0], domain[len - 1]]);\n }\n};\n\n/**\n * Both value and domain are tuples of two numbers\n * - but the type stays as array of numbers until we have better support in rest of the app\n * @param value input that will be truncated\n * @param domain boundaries\n * @returns tuple of two numbers\n */\nexport var truncateByDomain = (value, domain) => {\n if (!domain || domain.length !== 2 || !isNumber(domain[0]) || !isNumber(domain[1])) {\n return value;\n }\n var minValue = Math.min(domain[0], domain[1]);\n var maxValue = Math.max(domain[0], domain[1]);\n var result = [value[0], value[1]];\n if (!isNumber(value[0]) || value[0] < minValue) {\n result[0] = minValue;\n }\n if (!isNumber(value[1]) || value[1] > maxValue) {\n result[1] = maxValue;\n }\n if (result[0] > maxValue) {\n result[0] = maxValue;\n }\n if (result[1] < minValue) {\n result[1] = minValue;\n }\n return result;\n};\n\n/**\n * Stacks all positive numbers above zero and all negative numbers below zero.\n *\n * If all values in the series are positive then this behaves the same as 'none' stacker.\n *\n * @param {Array} series from d3-shape Stack\n * @return {Array} series with applied offset\n */\nexport var offsetSign = series => {\n var n = series.length;\n if (n <= 0) {\n return;\n }\n for (var j = 0, m = series[0].length; j < m; ++j) {\n var positive = 0;\n var negative = 0;\n for (var i = 0; i < n; ++i) {\n var value = isNan(series[i][j][1]) ? series[i][j][0] : series[i][j][1];\n\n /* eslint-disable prefer-destructuring, no-param-reassign */\n if (value >= 0) {\n series[i][j][0] = positive;\n series[i][j][1] = positive + value;\n positive = series[i][j][1];\n } else {\n series[i][j][0] = negative;\n series[i][j][1] = negative + value;\n negative = series[i][j][1];\n }\n /* eslint-enable prefer-destructuring, no-param-reassign */\n }\n }\n};\n\n/**\n * Replaces all negative values with zero when stacking data.\n *\n * If all values in the series are positive then this behaves the same as 'none' stacker.\n *\n * @param {Array} series from d3-shape Stack\n * @return {Array} series with applied offset\n */\nexport var offsetPositive = series => {\n var n = series.length;\n if (n <= 0) {\n return;\n }\n for (var j = 0, m = series[0].length; j < m; ++j) {\n var positive = 0;\n for (var i = 0; i < n; ++i) {\n var value = isNan(series[i][j][1]) ? series[i][j][0] : series[i][j][1];\n\n /* eslint-disable prefer-destructuring, no-param-reassign */\n if (value >= 0) {\n series[i][j][0] = positive;\n series[i][j][1] = positive + value;\n positive = series[i][j][1];\n } else {\n series[i][j][0] = 0;\n series[i][j][1] = 0;\n }\n /* eslint-enable prefer-destructuring, no-param-reassign */\n }\n }\n};\n\n/**\n * Function type to compute offset for stacked data.\n *\n * d3-shape has something fishy going on with its types.\n * In @definitelytyped/d3-shape, this function (the offset accessor) is typed as Series<> => void.\n * However! When I actually open the storybook I can see that the offset accessor actually receives Array<Series<>>.\n * The same I can see in the source code itself:\n * https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/66042\n * That one unfortunately has no types but we can tell it passes three-dimensional array.\n *\n * Which leads me to believe that definitelytyped is wrong on this one.\n * There's open discussion on this topic without much attention:\n * https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/66042\n */\n\nvar STACK_OFFSET_MAP = {\n sign: offsetSign,\n // @ts-expect-error definitelytyped types are incorrect\n expand: stackOffsetExpand,\n // @ts-expect-error definitelytyped types are incorrect\n none: stackOffsetNone,\n // @ts-expect-error definitelytyped types are incorrect\n silhouette: stackOffsetSilhouette,\n // @ts-expect-error definitelytyped types are incorrect\n wiggle: stackOffsetWiggle,\n positive: offsetPositive\n};\nexport var getStackedData = (data, dataKeys, offsetType) => {\n var offsetAccessor = STACK_OFFSET_MAP[offsetType];\n var stack = shapeStack().keys(dataKeys).value((d, key) => +getValueByDataKey(d, key, 0)).order(stackOrderNone)\n // @ts-expect-error definitelytyped types are incorrect\n .offset(offsetAccessor);\n return stack(data);\n};\n\n/**\n * Stack IDs in the external props allow numbers; but internally we use it as an object key\n * and object keys are always strings. Also, it would be kinda confusing if stackId=8 and stackId='8' were different stacks\n * so let's just force a string.\n */\n\nexport function getNormalizedStackId(publicStackId) {\n return publicStackId == null ? undefined : String(publicStackId);\n}\nexport function getCateCoordinateOfLine(_ref) {\n var {\n axis,\n ticks,\n bandSize,\n entry,\n index,\n dataKey\n } = _ref;\n if (axis.type === 'category') {\n // find coordinate of category axis by the value of category\n // @ts-expect-error why does this use direct object access instead of getValueByDataKey?\n if (!axis.allowDuplicatedCategory && axis.dataKey && !isNullish(entry[axis.dataKey])) {\n // @ts-expect-error why does this use direct object access instead of getValueByDataKey?\n var matchedTick = findEntryInArray(ticks, 'value', entry[axis.dataKey]);\n if (matchedTick) {\n return matchedTick.coordinate + bandSize / 2;\n }\n }\n return ticks[index] ? ticks[index].coordinate + bandSize / 2 : null;\n }\n var value = getValueByDataKey(entry, !isNullish(dataKey) ? dataKey : axis.dataKey);\n\n // @ts-expect-error getValueByDataKey does not validate the output type\n return !isNullish(value) ? axis.scale(value) : null;\n}\nexport var getCateCoordinateOfBar = _ref2 => {\n var {\n axis,\n ticks,\n offset,\n bandSize,\n entry,\n index\n } = _ref2;\n if (axis.type === 'category') {\n return ticks[index] ? ticks[index].coordinate + offset : null;\n }\n var value = getValueByDataKey(entry, axis.dataKey, axis.scale.domain()[index]);\n return !isNullish(value) ? axis.scale(value) - bandSize / 2 + offset : null;\n};\nexport var getBaseValueOfBar = _ref3 => {\n var {\n numericAxis\n } = _ref3;\n var domain = numericAxis.scale.domain();\n if (numericAxis.type === 'number') {\n // @ts-expect-error type number means the domain has numbers in it but this relationship is not known to typescript\n var minValue = Math.min(domain[0], domain[1]);\n // @ts-expect-error type number means the domain has numbers in it but this relationship is not known to typescript\n var maxValue = Math.max(domain[0], domain[1]);\n if (minValue <= 0 && maxValue >= 0) {\n return 0;\n }\n if (maxValue < 0) {\n return maxValue;\n }\n return minValue;\n }\n return domain[0];\n};\nvar getDomainOfSingle = data => {\n var flat = data.flat(2).filter(isNumber);\n return [Math.min(...flat), Math.max(...flat)];\n};\nvar makeDomainFinite = domain => {\n return [domain[0] === Infinity ? 0 : domain[0], domain[1] === -Infinity ? 0 : domain[1]];\n};\nexport var getDomainOfStackGroups = (stackGroups, startIndex, endIndex) => {\n if (stackGroups == null) {\n return undefined;\n }\n return makeDomainFinite(Object.keys(stackGroups).reduce((result, stackId) => {\n var group = stackGroups[stackId];\n var {\n stackedData\n } = group;\n var domain = stackedData.reduce((res, entry) => {\n var sliced = getSliced(entry, startIndex, endIndex);\n var s = getDomainOfSingle(sliced);\n return [Math.min(res[0], s[0]), Math.max(res[1], s[1])];\n }, [Infinity, -Infinity]);\n return [Math.min(domain[0], result[0]), Math.max(domain[1], result[1])];\n }, [Infinity, -Infinity]));\n};\nexport var MIN_VALUE_REG = /^dataMin[\\s]*-[\\s]*([0-9]+([.]{1}[0-9]+){0,1})$/;\nexport var MAX_VALUE_REG = /^dataMax[\\s]*\\+[\\s]*([0-9]+([.]{1}[0-9]+){0,1})$/;\n\n/**\n * Calculate the size between two category\n * @param {Object} axis The options of axis\n * @param {Array} ticks The ticks of axis\n * @param {Boolean} isBar if items in axis are bars\n * @return {Number} Size\n */\nexport var getBandSizeOfAxis = (axis, ticks, isBar) => {\n if (axis && axis.scale && axis.scale.bandwidth) {\n var bandWidth = axis.scale.bandwidth();\n if (!isBar || bandWidth > 0) {\n return bandWidth;\n }\n }\n if (axis && ticks && ticks.length >= 2) {\n var orderedTicks = sortBy(ticks, o => o.coordinate);\n var bandSize = Infinity;\n for (var i = 1, len = orderedTicks.length; i < len; i++) {\n var cur = orderedTicks[i];\n var prev = orderedTicks[i - 1];\n bandSize = Math.min((cur.coordinate || 0) - (prev.coordinate || 0), bandSize);\n }\n return bandSize === Infinity ? 0 : bandSize;\n }\n return isBar ? undefined : 0;\n};\nexport function getTooltipEntry(_ref4) {\n var {\n tooltipEntrySettings,\n dataKey,\n payload,\n value,\n name\n } = _ref4;\n return _objectSpread(_objectSpread({}, tooltipEntrySettings), {}, {\n dataKey,\n payload,\n value,\n name\n });\n}\nexport function getTooltipNameProp(nameFromItem, dataKey) {\n if (nameFromItem) {\n return String(nameFromItem);\n }\n if (typeof dataKey === 'string') {\n return dataKey;\n }\n return undefined;\n}\nexport function inRange(x, y, layout, polarViewBox, offset) {\n if (layout === 'horizontal' || layout === 'vertical') {\n var isInRange = x >= offset.left && x <= offset.left + offset.width && y >= offset.top && y <= offset.top + offset.height;\n return isInRange ? {\n x,\n y\n } : null;\n }\n if (polarViewBox) {\n return inRangeOfSector({\n x,\n y\n }, polarViewBox);\n }\n return null;\n}\nexport var getActiveCoordinate = (layout, tooltipTicks, activeIndex, rangeObj) => {\n var entry = tooltipTicks.find(tick => tick && tick.index === activeIndex);\n if (entry) {\n if (layout === 'horizontal') {\n return {\n x: entry.coordinate,\n y: rangeObj.y\n };\n }\n if (layout === 'vertical') {\n return {\n x: rangeObj.x,\n y: entry.coordinate\n };\n }\n if (layout === 'centric') {\n var _angle = entry.coordinate;\n var {\n radius: _radius\n } = rangeObj;\n return _objectSpread(_objectSpread(_objectSpread({}, rangeObj), polarToCartesian(rangeObj.cx, rangeObj.cy, _radius, _angle)), {}, {\n angle: _angle,\n radius: _radius\n });\n }\n var radius = entry.coordinate;\n var {\n angle\n } = rangeObj;\n return _objectSpread(_objectSpread(_objectSpread({}, rangeObj), polarToCartesian(rangeObj.cx, rangeObj.cy, radius, angle)), {}, {\n angle,\n radius\n });\n }\n return {\n x: 0,\n y: 0\n };\n};\nexport var calculateTooltipPos = (rangeObj, layout) => {\n if (layout === 'horizontal') {\n return rangeObj.x;\n }\n if (layout === 'vertical') {\n return rangeObj.y;\n }\n if (layout === 'centric') {\n return rangeObj.angle;\n }\n return rangeObj.radius;\n};","export var selectChartWidth = state => state.layout.width;\nexport var selectChartHeight = state => state.layout.height;\nexport var selectContainerScale = state => state.layout.scale;\nexport var selectMargin = state => state.layout.margin;","import { createSelector } from 'reselect';\nexport var selectAllXAxes = createSelector(state => state.cartesianAxis.xAxis, xAxisMap => {\n return Object.values(xAxisMap);\n});\nexport var selectAllYAxes = createSelector(state => state.cartesianAxis.yAxis, yAxisMap => {\n return Object.values(yAxisMap);\n});","export var COLOR_PANEL = ['#1890FF', '#66B5FF', '#41D9C7', '#2FC25B', '#6EDB8F', '#9AE65C', '#FACC14', '#E6965C', '#57AD71', '#223273', '#738AE6', '#7564CC', '#8543E0', '#A877ED', '#5C8EE6', '#13C2C2', '#70E0E0', '#5CA3E6', '#3436C7', '#8082FF', '#DD81E6', '#F04864', '#FA7D92', '#D598D9'];\n\n/**\n * We use this attribute to identify which element is the one that the user is touching.\n * The index is the position of the element in the data array.\n * This can be either a number (for array-based charts) or a string (for the charts that have a matrix-shaped data).\n */\nexport var DATA_ITEM_INDEX_ATTRIBUTE_NAME = 'data-recharts-item-index';\n/**\n * We use this attribute to identify which element is the one that the user is touching.\n * DataKey works here as a kind of identifier for the element. It's not a perfect identifier for ~two~ three reasons:\n *\n * 1. There can be two different elements with the same dataKey; we won't know which is it\n * 2. DataKey can be a function, and that serialized will be a `[Function: anonymous]` string\n * which means we will be able to identify that it was a function but can't tell which one.\n * This will lead to some weird bugs. A proper fix would be to either:\n * a) use a unique identifier for each element (passed from props, or generated)\n * b) figure out how to compare the dataKey or graphical item by object reference\n *\n * a) is a fuss because we don't have the unique identifier in props,\n * and b) is possible most of the time except for touchMove events which work differently from mouseEnter/mouseLeave:\n * - while mouseEnter is fired for the element that the mouse is over,\n * touchMove is fired for the element where user has started touching. As the finger moves,\n * we can identify the element that the user is touching by using the elementFromPoint method,\n * but it keeps calling the handler on the element where touchStart was fired.\n *\n * Okay and now I discovered a third reason: the dataKey can be undefined and that's still fine\n * because if dataKey is undefined then graphical elements assume the dataKey of the axes.\n * Which makes it a convenient way of using recharts to render a chart but horrible identifier.\n */\nexport var DATA_ITEM_DATAKEY_ATTRIBUTE_NAME = 'data-recharts-item-data-key';\nexport var DEFAULT_Y_AXIS_WIDTH = 60;","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport { createSelector } from 'reselect';\nimport { selectLegendSettings, selectLegendSize } from './legendSelectors';\nimport { appendOffsetOfLegend } from '../../util/ChartUtils';\nimport { selectChartHeight, selectChartWidth, selectMargin } from './containerSelectors';\nimport { selectAllXAxes, selectAllYAxes } from './selectAllAxes';\nimport { DEFAULT_Y_AXIS_WIDTH } from '../../util/Constants';\nexport var selectBrushHeight = state => state.brush.height;\nfunction selectLeftAxesOffset(state) {\n var yAxes = selectAllYAxes(state);\n return yAxes.reduce((result, entry) => {\n if (entry.orientation === 'left' && !entry.mirror && !entry.hide) {\n var width = typeof entry.width === 'number' ? entry.width : DEFAULT_Y_AXIS_WIDTH;\n return result + width;\n }\n return result;\n }, 0);\n}\nfunction selectRightAxesOffset(state) {\n var yAxes = selectAllYAxes(state);\n return yAxes.reduce((result, entry) => {\n if (entry.orientation === 'right' && !entry.mirror && !entry.hide) {\n var width = typeof entry.width === 'number' ? entry.width : DEFAULT_Y_AXIS_WIDTH;\n return result + width;\n }\n return result;\n }, 0);\n}\nfunction selectTopAxesOffset(state) {\n var xAxes = selectAllXAxes(state);\n return xAxes.reduce((result, entry) => {\n if (entry.orientation === 'top' && !entry.mirror && !entry.hide) {\n return result + entry.height;\n }\n return result;\n }, 0);\n}\nfunction selectBottomAxesOffset(state) {\n var xAxes = selectAllXAxes(state);\n return xAxes.reduce((result, entry) => {\n if (entry.orientation === 'bottom' && !entry.mirror && !entry.hide) {\n return result + entry.height;\n }\n return result;\n }, 0);\n}\n\n/**\n * For internal use only.\n *\n * @param root state\n * @return ChartOffsetInternal\n */\nexport var selectChartOffsetInternal = createSelector([selectChartWidth, selectChartHeight, selectMargin, selectBrushHeight, selectLeftAxesOffset, selectRightAxesOffset, selectTopAxesOffset, selectBottomAxesOffset, selectLegendSettings, selectLegendSize], (chartWidth, chartHeight, margin, brushHeight, leftAxesOffset, rightAxesOffset, topAxesOffset, bottomAxesOffset, legendSettings, legendSize) => {\n var offsetH = {\n left: (margin.left || 0) + leftAxesOffset,\n right: (margin.right || 0) + rightAxesOffset\n };\n var offsetV = {\n top: (margin.top || 0) + topAxesOffset,\n bottom: (margin.bottom || 0) + bottomAxesOffset\n };\n var offset = _objectSpread(_objectSpread({}, offsetV), offsetH);\n var brushBottom = offset.bottom;\n offset.bottom += brushHeight;\n offset = appendOffsetOfLegend(offset, legendSettings, legendSize);\n var offsetWidth = chartWidth - offset.left - offset.right;\n var offsetHeight = chartHeight - offset.top - offset.bottom;\n return _objectSpread(_objectSpread({\n brushBottom\n }, offset), {}, {\n // never return negative values for height and width\n width: Math.max(offsetWidth, 0),\n height: Math.max(offsetHeight, 0)\n });\n});\nexport var selectChartViewBox = createSelector(selectChartOffsetInternal, offset => ({\n x: offset.left,\n y: offset.top,\n width: offset.width,\n height: offset.height\n}));\nexport var selectAxisViewBox = createSelector(selectChartWidth, selectChartHeight, (width, height) => ({\n x: 0,\n y: 0,\n width,\n height\n}));","import * as React from 'react';\nimport { createContext, useContext } from 'react';\nvar PanoramaContext = /*#__PURE__*/createContext(null);\nexport var useIsPanorama = () => useContext(PanoramaContext) != null;\nexport var PanoramaContextProvider = _ref => {\n var {\n children\n } = _ref;\n return /*#__PURE__*/React.createElement(PanoramaContext.Provider, {\n value: true\n }, children);\n};","import { createSelector } from 'reselect';\nimport { selectChartOffsetInternal } from './selectChartOffsetInternal';\nimport { selectMargin } from './containerSelectors';\nimport { isNumber } from '../../util/DataUtils';\nexport var selectBrushSettings = state => state.brush;\nexport var selectBrushDimensions = createSelector([selectBrushSettings, selectChartOffsetInternal, selectMargin], (brushSettings, offset, margin) => ({\n height: brushSettings.height,\n x: isNumber(brushSettings.x) ? brushSettings.x : offset.left,\n y: isNumber(brushSettings.y) ? brushSettings.y : offset.top + offset.height + offset.brushBottom - ((margin === null || margin === void 0 ? void 0 : margin.bottom) || 0),\n width: isNumber(brushSettings.width) ? brushSettings.width : offset.width\n}));","import { useEffect } from 'react';\nimport { useAppDispatch, useAppSelector } from '../state/hooks';\nimport { setChartSize, setMargin } from '../state/layoutSlice';\nimport { selectChartOffsetInternal, selectChartViewBox } from '../state/selectors/selectChartOffsetInternal';\nimport { selectChartHeight, selectChartWidth } from '../state/selectors/containerSelectors';\nimport { useIsPanorama } from './PanoramaContext';\nimport { selectBrushDimensions, selectBrushSettings } from '../state/selectors/brushSelectors';\nexport var useViewBox = () => {\n var _useAppSelector;\n var panorama = useIsPanorama();\n var rootViewBox = useAppSelector(selectChartViewBox);\n var brushDimensions = useAppSelector(selectBrushDimensions);\n var brushPadding = (_useAppSelector = useAppSelector(selectBrushSettings)) === null || _useAppSelector === void 0 ? void 0 : _useAppSelector.padding;\n if (!panorama || !brushDimensions || !brushPadding) {\n return rootViewBox;\n }\n return {\n width: brushDimensions.width - brushPadding.left - brushPadding.right,\n height: brushDimensions.height - brushPadding.top - brushPadding.bottom,\n x: brushPadding.left,\n y: brushPadding.top\n };\n};\nvar manyComponentsThrowErrorsIfOffsetIsUndefined = {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n width: 0,\n height: 0,\n brushBottom: 0\n};\n/**\n * For internal use only. If you want this information, `import { useOffset } from 'recharts'` instead.\n *\n * Returns the offset of the chart in pixels.\n *\n * @returns {ChartOffsetInternal} The offset of the chart in pixels, or a default value if not in a chart context.\n */\nexport var useOffsetInternal = () => {\n var _useAppSelector2;\n return (_useAppSelector2 = useAppSelector(selectChartOffsetInternal)) !== null && _useAppSelector2 !== void 0 ? _useAppSelector2 : manyComponentsThrowErrorsIfOffsetIsUndefined;\n};\n\n/**\n * Returns the width of the chart in pixels.\n *\n * If you are using chart with hardcoded `width` prop, then the width returned will be the same\n * as the `width` prop on the main chart element.\n *\n * If you are using a chart with a `ResponsiveContainer`, the width will be the size of the chart\n * as the ResponsiveContainer has decided it would be.\n *\n * If the chart has any axes or legend, the `width` will be the size of the chart\n * including the axes and legend. Meaning: adding axes and legend will not change the width.\n *\n * The dimensions do not scale, meaning as user zoom in and out, the width number will not change\n * as the chart gets visually larger or smaller.\n *\n * Returns `undefined` if used outside a chart context.\n *\n * @returns {number | undefined} The width of the chart in pixels, or `undefined` if not in a chart context.\n */\nexport var useChartWidth = () => {\n return useAppSelector(selectChartWidth);\n};\n\n/**\n * Returns the height of the chart in pixels.\n *\n * If you are using chart with hardcoded `height` props, then the height returned will be the same\n * as the `height` prop on the main chart element.\n *\n * If you are using a chart with a `ResponsiveContainer`, the height will be the size of the chart\n * as the ResponsiveContainer has decided it would be.\n *\n * If the chart has any axes or legend, the `height` will be the size of the chart\n * including the axes and legend. Meaning: adding axes and legend will not change the height.\n *\n * The dimensions do not scale, meaning as user zoom in and out, the height number will not change\n * as the chart gets visually larger or smaller.\n *\n * Returns `undefined` if used outside a chart context.\n *\n * @returns {number | undefined} The height of the chart in pixels, or `undefined` if not in a chart context.\n */\nexport var useChartHeight = () => {\n return useAppSelector(selectChartHeight);\n};\n\n/**\n * Margin is the empty space around the chart. Excludes axes and legend and brushes and the like.\n * This is declared by the user in the chart props.\n * If you are interested in the space occupied by axes, legend, or brushes,\n * use `useOffset` instead.\n *\n * Returns `undefined` if used outside a chart context.\n *\n * @returns {Margin | undefined} The margin of the chart in pixels, or `undefined` if not in a chart context.\n */\nexport var useMargin = () => {\n return useAppSelector(state => state.layout.margin);\n};\nexport var selectChartLayout = state => state.layout.layoutType;\nexport var useChartLayout = () => useAppSelector(selectChartLayout);\nexport var ReportChartSize = props => {\n var dispatch = useAppDispatch();\n useEffect(() => {\n dispatch(setChartSize(props));\n }, [dispatch, props]);\n return null;\n};\nexport var ReportChartMargin = _ref => {\n var {\n margin\n } = _ref;\n var dispatch = useAppDispatch();\n useEffect(() => {\n dispatch(setMargin(margin));\n }, [dispatch, margin]);\n return null;\n};","import { createSlice, current } from '@reduxjs/toolkit';\nimport { castDraft } from 'immer';\n\n/**\n * The properties inside this state update independently of each other and quite often.\n * When selecting, never select the whole state because you are going to get\n * unnecessary re-renders. Select only the properties you need.\n *\n * This is why this state type is not exported - don't use it directly.\n */\n\nvar initialState = {\n settings: {\n layout: 'horizontal',\n align: 'center',\n verticalAlign: 'middle',\n itemSorter: 'value'\n },\n size: {\n width: 0,\n height: 0\n },\n payload: []\n};\nvar legendSlice = createSlice({\n name: 'legend',\n initialState,\n reducers: {\n setLegendSize(state, action) {\n state.size.width = action.payload.width;\n state.size.height = action.payload.height;\n },\n setLegendSettings(state, action) {\n state.settings.align = action.payload.align;\n state.settings.layout = action.payload.layout;\n state.settings.verticalAlign = action.payload.verticalAlign;\n state.settings.itemSorter = action.payload.itemSorter;\n },\n addLegendPayload(state, action) {\n state.payload.push(castDraft(action.payload));\n },\n removeLegendPayload(state, action) {\n var index = current(state).payload.indexOf(castDraft(action.payload));\n if (index > -1) {\n state.payload.splice(index, 1);\n }\n }\n }\n});\nexport var {\n setLegendSize,\n setLegendSettings,\n addLegendPayload,\n removeLegendPayload\n} = legendSlice.actions;\nexport var legendReducer = legendSlice.reducer;","var _excluded = [\"contextPayload\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from 'react';\nimport { PureComponent, useEffect } from 'react';\nimport { createPortal } from 'react-dom';\nimport { useLegendPortal } from '../context/legendPortalContext';\nimport { DefaultLegendContent } from './DefaultLegendContent';\nimport { isNumber } from '../util/DataUtils';\nimport { getUniqPayload } from '../util/payload/getUniqPayload';\nimport { useLegendPayload } from '../context/legendPayloadContext';\nimport { useElementOffset } from '../util/useElementOffset';\nimport { useChartHeight, useChartWidth, useMargin } from '../context/chartLayoutContext';\nimport { setLegendSettings, setLegendSize } from '../state/legendSlice';\nimport { useAppDispatch } from '../state/hooks';\nfunction defaultUniqBy(entry) {\n return entry.value;\n}\nfunction LegendContent(props) {\n var {\n contextPayload\n } = props,\n otherProps = _objectWithoutProperties(props, _excluded);\n var finalPayload = getUniqPayload(contextPayload, props.payloadUniqBy, defaultUniqBy);\n var contentProps = _objectSpread(_objectSpread({}, otherProps), {}, {\n payload: finalPayload\n });\n if (/*#__PURE__*/React.isValidElement(props.content)) {\n return /*#__PURE__*/React.cloneElement(props.content, contentProps);\n }\n if (typeof props.content === 'function') {\n return /*#__PURE__*/React.createElement(props.content, contentProps);\n }\n return /*#__PURE__*/React.createElement(DefaultLegendContent, contentProps);\n}\nfunction getDefaultPosition(style, props, margin, chartWidth, chartHeight, box) {\n var {\n layout,\n align,\n verticalAlign\n } = props;\n var hPos, vPos;\n if (!style || (style.left === undefined || style.left === null) && (style.right === undefined || style.right === null)) {\n if (align === 'center' && layout === 'vertical') {\n hPos = {\n left: ((chartWidth || 0) - box.width) / 2\n };\n } else {\n hPos = align === 'right' ? {\n right: margin && margin.right || 0\n } : {\n left: margin && margin.left || 0\n };\n }\n }\n if (!style || (style.top === undefined || style.top === null) && (style.bottom === undefined || style.bottom === null)) {\n if (verticalAlign === 'middle') {\n vPos = {\n top: ((chartHeight || 0) - box.height) / 2\n };\n } else {\n vPos = verticalAlign === 'bottom' ? {\n bottom: margin && margin.bottom || 0\n } : {\n top: margin && margin.top || 0\n };\n }\n }\n return _objectSpread(_objectSpread({}, hPos), vPos);\n}\nfunction LegendSettingsDispatcher(props) {\n var dispatch = useAppDispatch();\n useEffect(() => {\n dispatch(setLegendSettings(props));\n }, [dispatch, props]);\n return null;\n}\nfunction LegendSizeDispatcher(props) {\n var dispatch = useAppDispatch();\n useEffect(() => {\n dispatch(setLegendSize(props));\n return () => {\n dispatch(setLegendSize({\n width: 0,\n height: 0\n }));\n };\n }, [dispatch, props]);\n return null;\n}\nfunction LegendWrapper(props) {\n var contextPayload = useLegendPayload();\n var legendPortalFromContext = useLegendPortal();\n var margin = useMargin();\n var {\n width: widthFromProps,\n height: heightFromProps,\n wrapperStyle,\n portal: portalFromProps\n } = props;\n // The contextPayload is not used directly inside the hook, but we need the onBBoxUpdate call\n // when the payload changes, therefore it's here as a dependency.\n var [lastBoundingBox, updateBoundingBox] = useElementOffset([contextPayload]);\n var chartWidth = useChartWidth();\n var chartHeight = useChartHeight();\n if (chartWidth == null || chartHeight == null) {\n return null;\n }\n var maxWidth = chartWidth - (margin.left || 0) - (margin.right || 0);\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n var widthOrHeight = Legend.getWidthOrHeight(props.layout, heightFromProps, widthFromProps, maxWidth);\n // if the user supplies their own portal, only use their defined wrapper styles\n var outerStyle = portalFromProps ? wrapperStyle : _objectSpread(_objectSpread({\n position: 'absolute',\n width: (widthOrHeight === null || widthOrHeight === void 0 ? void 0 : widthOrHeight.width) || widthFromProps || 'auto',\n height: (widthOrHeight === null || widthOrHeight === void 0 ? void 0 : widthOrHeight.height) || heightFromProps || 'auto'\n }, getDefaultPosition(wrapperStyle, props, margin, chartWidth, chartHeight, lastBoundingBox)), wrapperStyle);\n var legendPortal = portalFromProps !== null && portalFromProps !== void 0 ? portalFromProps : legendPortalFromContext;\n if (legendPortal == null) {\n return null;\n }\n var legendElement = /*#__PURE__*/React.createElement(\"div\", {\n className: \"recharts-legend-wrapper\",\n style: outerStyle,\n ref: updateBoundingBox\n }, /*#__PURE__*/React.createElement(LegendSettingsDispatcher, {\n layout: props.layout,\n align: props.align,\n verticalAlign: props.verticalAlign,\n itemSorter: props.itemSorter\n }), /*#__PURE__*/React.createElement(LegendSizeDispatcher, {\n width: lastBoundingBox.width,\n height: lastBoundingBox.height\n }), /*#__PURE__*/React.createElement(LegendContent, _extends({}, props, widthOrHeight, {\n margin: margin,\n chartWidth: chartWidth,\n chartHeight: chartHeight,\n contextPayload: contextPayload\n })));\n return /*#__PURE__*/createPortal(legendElement, legendPortal);\n}\nexport class Legend extends PureComponent {\n static getWidthOrHeight(layout, height, width, maxWidth) {\n if (layout === 'vertical' && isNumber(height)) {\n return {\n height\n };\n }\n if (layout === 'horizontal') {\n return {\n width: width || maxWidth\n };\n }\n return null;\n }\n render() {\n return /*#__PURE__*/React.createElement(LegendWrapper, this.props);\n }\n}\n_defineProperty(Legend, \"displayName\", 'Legend');\n_defineProperty(Legend, \"defaultProps\", {\n align: 'center',\n iconSize: 14,\n itemSorter: 'value',\n layout: 'horizontal',\n verticalAlign: 'bottom'\n});","function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * @fileOverview Default Tooltip Content\n */\n\nimport * as React from 'react';\nimport sortBy from 'es-toolkit/compat/sortBy';\nimport { clsx } from 'clsx';\nimport { isNullish, isNumOrStr } from '../util/DataUtils';\nfunction defaultFormatter(value) {\n return Array.isArray(value) && isNumOrStr(value[0]) && isNumOrStr(value[1]) ? value.join(' ~ ') : value;\n}\nexport var DefaultTooltipContent = props => {\n var {\n separator = ' : ',\n contentStyle = {},\n itemStyle = {},\n labelStyle = {},\n payload,\n formatter,\n itemSorter,\n wrapperClassName,\n labelClassName,\n label,\n labelFormatter,\n accessibilityLayer = false\n } = props;\n var renderContent = () => {\n if (payload && payload.length) {\n var listStyle = {\n padding: 0,\n margin: 0\n };\n var items = (itemSorter ? sortBy(payload, itemSorter) : payload).map((entry, i) => {\n if (entry.type === 'none') {\n return null;\n }\n var finalFormatter = entry.formatter || formatter || defaultFormatter;\n var {\n value,\n name\n } = entry;\n var finalValue = value;\n var finalName = name;\n if (finalFormatter) {\n var formatted = finalFormatter(value, name, entry, i, payload);\n if (Array.isArray(formatted)) {\n [finalValue, finalName] = formatted;\n } else if (formatted != null) {\n finalValue = formatted;\n } else {\n return null;\n }\n }\n var finalItemStyle = _objectSpread({\n display: 'block',\n paddingTop: 4,\n paddingBottom: 4,\n color: entry.color || '#000'\n }, itemStyle);\n return (\n /*#__PURE__*/\n // eslint-disable-next-line react/no-array-index-key\n React.createElement(\"li\", {\n className: \"recharts-tooltip-item\",\n key: \"tooltip-item-\".concat(i),\n style: finalItemStyle\n }, isNumOrStr(finalName) ? /*#__PURE__*/React.createElement(\"span\", {\n className: \"recharts-tooltip-item-name\"\n }, finalName) : null, isNumOrStr(finalName) ? /*#__PURE__*/React.createElement(\"span\", {\n className: \"recharts-tooltip-item-separator\"\n }, separator) : null, /*#__PURE__*/React.createElement(\"span\", {\n className: \"recharts-tooltip-item-value\"\n }, finalValue), /*#__PURE__*/React.createElement(\"span\", {\n className: \"recharts-tooltip-item-unit\"\n }, entry.unit || ''))\n );\n });\n return /*#__PURE__*/React.createElement(\"ul\", {\n className: \"recharts-tooltip-item-list\",\n style: listStyle\n }, items);\n }\n return null;\n };\n var finalStyle = _objectSpread({\n margin: 0,\n padding: 10,\n backgroundColor: '#fff',\n border: '1px solid #ccc',\n whiteSpace: 'nowrap'\n }, contentStyle);\n var finalLabelStyle = _objectSpread({\n margin: 0\n }, labelStyle);\n var hasLabel = !isNullish(label);\n var finalLabel = hasLabel ? label : '';\n var wrapperCN = clsx('recharts-default-tooltip', wrapperClassName);\n var labelCN = clsx('recharts-tooltip-label', labelClassName);\n if (hasLabel && labelFormatter && payload !== undefined && payload !== null) {\n finalLabel = labelFormatter(label, payload);\n }\n var accessibilityAttributes = accessibilityLayer ? {\n role: 'status',\n 'aria-live': 'assertive'\n } : {};\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n className: wrapperCN,\n style: finalStyle\n }, accessibilityAttributes), /*#__PURE__*/React.createElement(\"p\", {\n className: labelCN,\n style: finalLabelStyle\n }, /*#__PURE__*/React.isValidElement(finalLabel) ? finalLabel : \"\".concat(finalLabel)), renderContent());\n};","import { clsx } from 'clsx';\nimport { isNumber } from '../DataUtils';\nvar CSS_CLASS_PREFIX = 'recharts-tooltip-wrapper';\nvar TOOLTIP_HIDDEN = {\n visibility: 'hidden'\n};\nexport function getTooltipCSSClassName(_ref) {\n var {\n coordinate,\n translateX,\n translateY\n } = _ref;\n return clsx(CSS_CLASS_PREFIX, {\n [\"\".concat(CSS_CLASS_PREFIX, \"-right\")]: isNumber(translateX) && coordinate && isNumber(coordinate.x) && translateX >= coordinate.x,\n [\"\".concat(CSS_CLASS_PREFIX, \"-left\")]: isNumber(translateX) && coordinate && isNumber(coordinate.x) && translateX < coordinate.x,\n [\"\".concat(CSS_CLASS_PREFIX, \"-bottom\")]: isNumber(translateY) && coordinate && isNumber(coordinate.y) && translateY >= coordinate.y,\n [\"\".concat(CSS_CLASS_PREFIX, \"-top\")]: isNumber(translateY) && coordinate && isNumber(coordinate.y) && translateY < coordinate.y\n });\n}\nexport function getTooltipTranslateXY(_ref2) {\n var {\n allowEscapeViewBox,\n coordinate,\n key,\n offsetTopLeft,\n position,\n reverseDirection,\n tooltipDimension,\n viewBox,\n viewBoxDimension\n } = _ref2;\n if (position && isNumber(position[key])) {\n return position[key];\n }\n var negative = coordinate[key] - tooltipDimension - (offsetTopLeft > 0 ? offsetTopLeft : 0);\n var positive = coordinate[key] + offsetTopLeft;\n if (allowEscapeViewBox[key]) {\n return reverseDirection[key] ? negative : positive;\n }\n var viewBoxKey = viewBox[key];\n if (viewBoxKey == null) {\n return 0;\n }\n if (reverseDirection[key]) {\n var _tooltipBoundary = negative;\n var _viewBoxBoundary = viewBoxKey;\n if (_tooltipBoundary < _viewBoxBoundary) {\n return Math.max(positive, viewBoxKey);\n }\n return Math.max(negative, viewBoxKey);\n }\n if (viewBoxDimension == null) {\n return 0;\n }\n var tooltipBoundary = positive + tooltipDimension;\n var viewBoxBoundary = viewBoxKey + viewBoxDimension;\n if (tooltipBoundary > viewBoxBoundary) {\n return Math.max(negative, viewBoxKey);\n }\n return Math.max(positive, viewBoxKey);\n}\nexport function getTransformStyle(_ref3) {\n var {\n translateX,\n translateY,\n useTranslate3d\n } = _ref3;\n return {\n transform: useTranslate3d ? \"translate3d(\".concat(translateX, \"px, \").concat(translateY, \"px, 0)\") : \"translate(\".concat(translateX, \"px, \").concat(translateY, \"px)\")\n };\n}\nexport function getTooltipTranslate(_ref4) {\n var {\n allowEscapeViewBox,\n coordinate,\n offsetTopLeft,\n position,\n reverseDirection,\n tooltipBox,\n useTranslate3d,\n viewBox\n } = _ref4;\n var cssProperties, translateX, translateY;\n if (tooltipBox.height > 0 && tooltipBox.width > 0 && coordinate) {\n translateX = getTooltipTranslateXY({\n allowEscapeViewBox,\n coordinate,\n key: 'x',\n offsetTopLeft,\n position,\n reverseDirection,\n tooltipDimension: tooltipBox.width,\n viewBox,\n viewBoxDimension: viewBox.width\n });\n translateY = getTooltipTranslateXY({\n allowEscapeViewBox,\n coordinate,\n key: 'y',\n offsetTopLeft,\n position,\n reverseDirection,\n tooltipDimension: tooltipBox.height,\n viewBox,\n viewBoxDimension: viewBox.height\n });\n cssProperties = getTransformStyle({\n translateX,\n translateY,\n useTranslate3d\n });\n } else {\n cssProperties = TOOLTIP_HIDDEN;\n }\n return {\n cssProperties,\n cssClasses: getTooltipCSSClassName({\n translateX,\n translateY,\n coordinate\n })\n };\n}","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport * as React from 'react';\nimport { PureComponent } from 'react';\nimport { getTooltipTranslate } from '../util/tooltip/translate';\nexport class TooltipBoundingBox extends PureComponent {\n constructor() {\n super(...arguments);\n _defineProperty(this, \"state\", {\n dismissed: false,\n dismissedAtCoordinate: {\n x: 0,\n y: 0\n }\n });\n _defineProperty(this, \"handleKeyDown\", event => {\n if (event.key === 'Escape') {\n var _this$props$coordinat, _this$props$coordinat2, _this$props$coordinat3, _this$props$coordinat4;\n this.setState({\n dismissed: true,\n dismissedAtCoordinate: {\n x: (_this$props$coordinat = (_this$props$coordinat2 = this.props.coordinate) === null || _this$props$coordinat2 === void 0 ? void 0 : _this$props$coordinat2.x) !== null && _this$props$coordinat !== void 0 ? _this$props$coordinat : 0,\n y: (_this$props$coordinat3 = (_this$props$coordinat4 = this.props.coordinate) === null || _this$props$coordinat4 === void 0 ? void 0 : _this$props$coordinat4.y) !== null && _this$props$coordinat3 !== void 0 ? _this$props$coordinat3 : 0\n }\n });\n }\n });\n }\n componentDidMount() {\n document.addEventListener('keydown', this.handleKeyDown);\n }\n componentWillUnmount() {\n document.removeEventListener('keydown', this.handleKeyDown);\n }\n componentDidUpdate() {\n var _this$props$coordinat5, _this$props$coordinat6;\n if (!this.state.dismissed) {\n return;\n }\n if (((_this$props$coordinat5 = this.props.coordinate) === null || _this$props$coordinat5 === void 0 ? void 0 : _this$props$coordinat5.x) !== this.state.dismissedAtCoordinate.x || ((_this$props$coordinat6 = this.props.coordinate) === null || _this$props$coordinat6 === void 0 ? void 0 : _this$props$coordinat6.y) !== this.state.dismissedAtCoordinate.y) {\n this.state.dismissed = false;\n }\n }\n render() {\n var {\n active,\n allowEscapeViewBox,\n animationDuration,\n animationEasing,\n children,\n coordinate,\n hasPayload,\n isAnimationActive,\n offset,\n position,\n reverseDirection,\n useTranslate3d,\n viewBox,\n wrapperStyle,\n lastBoundingBox,\n innerRef,\n hasPortalFromProps\n } = this.props;\n var {\n cssClasses,\n cssProperties\n } = getTooltipTranslate({\n allowEscapeViewBox,\n coordinate,\n offsetTopLeft: offset,\n position,\n reverseDirection,\n tooltipBox: {\n height: lastBoundingBox.height,\n width: lastBoundingBox.width\n },\n useTranslate3d,\n viewBox\n });\n\n // do not use absolute styles if the user has passed a custom portal prop\n var positionStyles = hasPortalFromProps ? {} : _objectSpread(_objectSpread({\n transition: isAnimationActive && active ? \"transform \".concat(animationDuration, \"ms \").concat(animationEasing) : undefined\n }, cssProperties), {}, {\n pointerEvents: 'none',\n visibility: !this.state.dismissed && active && hasPayload ? 'visible' : 'hidden',\n position: 'absolute',\n top: 0,\n left: 0\n });\n var outerStyle = _objectSpread(_objectSpread({}, positionStyles), {}, {\n visibility: !this.state.dismissed && active && hasPayload ? 'visible' : 'hidden'\n }, wrapperStyle);\n return (\n /*#__PURE__*/\n // This element allow listening to the `Escape` key. See https://github.com/recharts/recharts/pull/2925\n React.createElement(\"div\", {\n // @ts-expect-error typescript library does not recognize xmlns attribute, but it's required for an HTML chunk inside SVG.\n xmlns: \"http://www.w3.org/1999/xhtml\",\n tabIndex: -1,\n className: cssClasses,\n style: outerStyle,\n ref: innerRef\n }, children)\n );\n }\n}","var parseIsSsrByDefault = () => !(typeof window !== 'undefined' && window.document && Boolean(window.document.createElement) && window.setTimeout);\nexport var Global = {\n devToolsEnabled: false,\n isSsr: parseIsSsrByDefault()\n};","import { useAppSelector } from '../state/hooks';\nexport var useAccessibilityLayer = () => useAppSelector(state => state.rootProps.accessibilityLayer);","export function isWellBehavedNumber(n) {\n return Number.isFinite(n);\n}\nexport function isPositiveNumber(n) {\n return typeof n === 'number' && n > 0 && Number.isFinite(n);\n}","function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * @fileOverview Curve\n */\nimport * as React from 'react';\nimport { line as shapeLine, area as shapeArea, curveBasisClosed, curveBasisOpen, curveBasis, curveBumpX, curveBumpY, curveLinearClosed, curveLinear, curveMonotoneX, curveMonotoneY, curveNatural, curveStep, curveStepAfter, curveStepBefore } from 'victory-vendor/d3-shape';\nimport { clsx } from 'clsx';\nimport { adaptEventHandlers } from '../util/types';\nimport { isNumber, upperFirst } from '../util/DataUtils';\nimport { isWellBehavedNumber } from '../util/isWellBehavedNumber';\nimport { svgPropertiesNoEvents } from '../util/svgPropertiesNoEvents';\nvar CURVE_FACTORIES = {\n curveBasisClosed,\n curveBasisOpen,\n curveBasis,\n curveBumpX,\n curveBumpY,\n curveLinearClosed,\n curveLinear,\n curveMonotoneX,\n curveMonotoneY,\n curveNatural,\n curveStep,\n curveStepAfter,\n curveStepBefore\n};\n\n/**\n * @deprecated use {@link Coordinate} instead\n * Duplicated with `Coordinate` in `util/types.ts`\n */\n\n/**\n * @deprecated use {@link NullableCoordinate} instead\n * Duplicated with `NullableCoordinate` in `util/types.ts`\n */\n\nvar defined = p => isWellBehavedNumber(p.x) && isWellBehavedNumber(p.y);\nvar getX = p => p.x;\nvar getY = p => p.y;\nvar getCurveFactory = (type, layout) => {\n if (typeof type === 'function') {\n return type;\n }\n var name = \"curve\".concat(upperFirst(type));\n if ((name === 'curveMonotone' || name === 'curveBump') && layout) {\n return CURVE_FACTORIES[\"\".concat(name).concat(layout === 'vertical' ? 'Y' : 'X')];\n }\n return CURVE_FACTORIES[name] || curveLinear;\n};\n/**\n * Calculate the path of curve. Returns null if points is an empty array.\n * @return path or null\n */\nexport var getPath = _ref => {\n var {\n type = 'linear',\n points = [],\n baseLine,\n layout,\n connectNulls = false\n } = _ref;\n var curveFactory = getCurveFactory(type, layout);\n var formatPoints = connectNulls ? points.filter(defined) : points;\n var lineFunction;\n if (Array.isArray(baseLine)) {\n var formatBaseLine = connectNulls ? baseLine.filter(base => defined(base)) : baseLine;\n var areaPoints = formatPoints.map((entry, index) => _objectSpread(_objectSpread({}, entry), {}, {\n base: formatBaseLine[index]\n }));\n if (layout === 'vertical') {\n lineFunction = shapeArea().y(getY).x1(getX).x0(d => d.base.x);\n } else {\n lineFunction = shapeArea().x(getX).y1(getY).y0(d => d.base.y);\n }\n lineFunction.defined(defined).curve(curveFactory);\n return lineFunction(areaPoints);\n }\n if (layout === 'vertical' && isNumber(baseLine)) {\n lineFunction = shapeArea().y(getY).x1(getX).x0(baseLine);\n } else if (isNumber(baseLine)) {\n lineFunction = shapeArea().x(getX).y1(getY).y0(baseLine);\n } else {\n lineFunction = shapeLine().x(getX).y(getY);\n }\n lineFunction.defined(defined).curve(curveFactory);\n return lineFunction(formatPoints);\n};\nexport var Curve = props => {\n var {\n className,\n points,\n path,\n pathRef\n } = props;\n if ((!points || !points.length) && !path) {\n return null;\n }\n var realPath = points && points.length ? getPath(props) : path;\n return /*#__PURE__*/React.createElement(\"path\", _extends({}, svgPropertiesNoEvents(props), adaptEventHandlers(props), {\n className: clsx('recharts-curve', className),\n d: realPath === null ? undefined : realPath,\n ref: pathRef\n }));\n};","var _excluded = [\"x\", \"y\", \"top\", \"left\", \"width\", \"height\", \"className\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\n/**\n * @fileOverview Cross\n */\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nimport { isNumber } from '../util/DataUtils';\nimport { filterProps } from '../util/ReactUtils';\nvar getPath = (x, y, width, height, top, left) => {\n return \"M\".concat(x, \",\").concat(top, \"v\").concat(height, \"M\").concat(left, \",\").concat(y, \"h\").concat(width);\n};\nexport var Cross = _ref => {\n var {\n x = 0,\n y = 0,\n top = 0,\n left = 0,\n width = 0,\n height = 0,\n className\n } = _ref,\n rest = _objectWithoutProperties(_ref, _excluded);\n var props = _objectSpread({\n x,\n y,\n top,\n left,\n width,\n height\n }, rest);\n if (!isNumber(x) || !isNumber(y) || !isNumber(width) || !isNumber(height) || !isNumber(top) || !isNumber(left)) {\n return null;\n }\n return /*#__PURE__*/React.createElement(\"path\", _extends({}, filterProps(props, true), {\n className: clsx('recharts-cross', className),\n d: getPath(x, y, width, height, top, left)\n }));\n};","export function getCursorRectangle(layout, activeCoordinate, offset, tooltipAxisBandSize) {\n var halfSize = tooltipAxisBandSize / 2;\n return {\n stroke: 'none',\n fill: '#ccc',\n x: layout === 'horizontal' ? activeCoordinate.x - halfSize : offset.left + 0.5,\n y: layout === 'horizontal' ? offset.top + 0.5 : activeCoordinate.y - halfSize,\n width: layout === 'horizontal' ? tooltipAxisBandSize : offset.width - 1,\n height: layout === 'horizontal' ? offset.height - 1 : tooltipAxisBandSize\n };\n}","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * This function mimics the behavior of the `defaultProps` static property in React.\n * Functional components do not have a defaultProps property, so this function is useful to resolve default props.\n *\n * The common recommendation is to use ES6 destructuring with default values in the function signature,\n * but you need to be careful there and make sure you destructure all the individual properties\n * and not the whole object. See the test file for example.\n *\n * And because destructuring all properties one by one is a faff, and it's easy to miss one property,\n * this function exists.\n *\n * @param realProps - the props object passed to the component by the user\n * @param defaultProps - the default props object defined in the component by Recharts\n * @returns - the props object with all the default props resolved. All `undefined` values are replaced with the default value.\n */\nexport function resolveDefaultProps(realProps, defaultProps) {\n /*\n * To avoid mutating the original `realProps` object passed to the function, create a shallow copy of it.\n * `resolvedProps` will be modified directly with the defaults.\n */\n var resolvedProps = _objectSpread({}, realProps);\n /*\n * Since the function guarantees `D extends Partial<T>`, this assignment is safe.\n * It allows TypeScript to work with the well-defined `Partial<T>` type inside the loop,\n * making subsequent type inference (especially for `dp[key]`) much more straightforward for the compiler.\n * This is a key step to improve type safety *without* value assertions later.\n */\n var dp = defaultProps;\n /*\n * `Object.keys` doesn't preserve strong key types - it always returns Array<string>.\n * However, due to the `D extends Partial<T>` constraint,\n * we know these keys *must* also be valid keys of `T`.\n * This assertion informs TypeScript of this relationship, avoiding type errors when using `key` to index `acc` (type T).\n *\n * Type assertions are not sound but in this case it's necessary\n * as `Object.keys` does not do what we want it to do.\n */\n var keys = Object.keys(defaultProps);\n var withDefaults = keys.reduce((acc, key) => {\n if (acc[key] === undefined && dp[key] !== undefined) {\n acc[key] = dp[key];\n }\n return acc;\n }, resolvedProps);\n /*\n * And again type assertions are not safe but here we have done the runtime work\n * so let's bypass the lack of static type safety and tell the compiler what happened.\n */\n return withDefaults;\n}\n\n/**\n * Helper type to extract the keys of T that are required.\n * It iterates through each key K in T. If Pick<T, K> cannot be assigned an empty object {},\n * it means K is required, so we keep K; otherwise, we discard it (never).\n * [keyof T] at the end creates a union of the kept keys.\n */\n\n/**\n * Helper type to extract the keys of T that are optional.\n * It iterates through each key K in T. If Pick<T, K> can be assigned an empty object {},\n * it means K is optional (or potentially missing), so we keep K; otherwise, we discard it (never).\n * [keyof T] at the end creates a union of the kept keys.\n */\n\n/**\n * Helper type to ensure keys of D exist in T.\n * For each key K in D, if K is also a key of T, keep the type D[K].\n * If K is NOT a key of T, map it to type `never`.\n * An object cannot have a property of type `never`, effectively disallowing extra keys.\n */\n\n/**\n * This type will take a source type `Props` and a default type `Defaults` and will return a new type\n * where all properties that are optional in `Props` but required in `Defaults` are made required in the result.\n * Properties that are required in `Props` and optional in `Defaults` will remain required.\n * Properties that are optional in both `Props` and `Defaults` will remain optional.\n *\n * This is useful for creating a type that represents the resolved props of a component with default props.\n */","function noop() { }\n\nexport { noop };\n","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/*\n * @description: convert camel case to dash case\n * string => string\n */\nexport var getDashCase = name => name.replace(/([A-Z])/g, v => \"-\".concat(v.toLowerCase()));\nexport var getTransitionVal = (props, duration, easing) => props.map(prop => \"\".concat(getDashCase(prop), \" \").concat(duration, \"ms \").concat(easing)).join(',');\n\n/**\n * Finds the intersection of keys between two objects\n * @param {object} preObj previous object\n * @param {object} nextObj next object\n * @returns an array of keys that exist in both objects\n */\nexport var getIntersectionKeys = (preObj, nextObj) => [Object.keys(preObj), Object.keys(nextObj)].reduce((a, b) => a.filter(c => b.includes(c)));\n\n/**\n * Maps an object to another object\n * @param {function} fn function to map\n * @param {object} obj object to map\n * @returns mapped object\n */\nexport var mapObject = (fn, obj) => Object.keys(obj).reduce((res, key) => _objectSpread(_objectSpread({}, res), {}, {\n [key]: fn(key, obj[key])\n}), {});","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport { getIntersectionKeys, mapObject } from './util';\nexport var alpha = (begin, end, k) => begin + (end - begin) * k;\nvar needContinue = _ref => {\n var {\n from,\n to\n } = _ref;\n return from !== to;\n};\n/*\n * @description: cal new from value and velocity in each stepper\n * @return: { [styleProperty]: { from, to, velocity } }\n */\nvar calStepperVals = (easing, preVals, steps) => {\n var nextStepVals = mapObject((key, val) => {\n if (needContinue(val)) {\n var [newX, newV] = easing(val.from, val.to, val.velocity);\n return _objectSpread(_objectSpread({}, val), {}, {\n from: newX,\n velocity: newV\n });\n }\n return val;\n }, preVals);\n if (steps < 1) {\n return mapObject((key, val) => {\n if (needContinue(val)) {\n return _objectSpread(_objectSpread({}, val), {}, {\n velocity: alpha(val.velocity, nextStepVals[key].velocity, steps),\n from: alpha(val.from, nextStepVals[key].from, steps)\n });\n }\n return val;\n }, preVals);\n }\n return calStepperVals(easing, nextStepVals, steps - 1);\n};\nfunction createStepperUpdate(from, to, easing, interKeys, render, timeoutController) {\n var preTime;\n var stepperStyle = interKeys.reduce((res, key) => _objectSpread(_objectSpread({}, res), {}, {\n [key]: {\n from: from[key],\n velocity: 0,\n to: to[key]\n }\n }), {});\n var getCurrStyle = () => mapObject((key, val) => val.from, stepperStyle);\n var shouldStopAnimation = () => !Object.values(stepperStyle).filter(needContinue).length;\n var stopAnimation = null;\n var stepperUpdate = now => {\n if (!preTime) {\n preTime = now;\n }\n var deltaTime = now - preTime;\n var steps = deltaTime / easing.dt;\n stepperStyle = calStepperVals(easing, stepperStyle, steps);\n // get union set and add compatible prefix\n render(_objectSpread(_objectSpread(_objectSpread({}, from), to), getCurrStyle()));\n preTime = now;\n if (!shouldStopAnimation()) {\n stopAnimation = timeoutController.setTimeout(stepperUpdate);\n }\n };\n\n // return start animation method\n return () => {\n stopAnimation = timeoutController.setTimeout(stepperUpdate);\n\n // return stop animation method\n return () => {\n stopAnimation();\n };\n };\n}\nfunction createTimingUpdate(from, to, easing, duration, interKeys, render, timeoutController) {\n var stopAnimation = null;\n var timingStyle = interKeys.reduce((res, key) => _objectSpread(_objectSpread({}, res), {}, {\n [key]: [from[key], to[key]]\n }), {});\n var beginTime;\n var timingUpdate = now => {\n if (!beginTime) {\n beginTime = now;\n }\n var t = (now - beginTime) / duration;\n var currStyle = mapObject((key, val) => alpha(...val, easing(t)), timingStyle);\n\n // get union set and add compatible prefix\n render(_objectSpread(_objectSpread(_objectSpread({}, from), to), currStyle));\n if (t < 1) {\n stopAnimation = timeoutController.setTimeout(timingUpdate);\n } else {\n var finalStyle = mapObject((key, val) => alpha(...val, easing(1)), timingStyle);\n render(_objectSpread(_objectSpread(_objectSpread({}, from), to), finalStyle));\n }\n };\n\n // return start animation method\n return () => {\n stopAnimation = timeoutController.setTimeout(timingUpdate);\n\n // return stop animation method\n return () => {\n stopAnimation();\n };\n };\n}\n\n// configure update function\n// eslint-disable-next-line import/no-default-export\nexport default (from, to, easing, duration, render, timeoutController) => {\n var interKeys = getIntersectionKeys(from, to);\n return easing.isStepper === true ? createStepperUpdate(from, to, easing, interKeys, render, timeoutController) : createTimingUpdate(from, to, easing, duration, interKeys, render, timeoutController);\n};","export var ACCURACY = 1e-4;\nvar cubicBezierFactor = (c1, c2) => [0, 3 * c1, 3 * c2 - 6 * c1, 3 * c1 - 3 * c2 + 1];\nvar evaluatePolynomial = (params, t) => params.map((param, i) => param * t ** i).reduce((pre, curr) => pre + curr);\nvar cubicBezier = (c1, c2) => t => {\n var params = cubicBezierFactor(c1, c2);\n return evaluatePolynomial(params, t);\n};\nvar derivativeCubicBezier = (c1, c2) => t => {\n var params = cubicBezierFactor(c1, c2);\n var newParams = [...params.map((param, i) => param * i).slice(1), 0];\n return evaluatePolynomial(newParams, t);\n};\n// calculate cubic-bezier using Newton's method\nexport var configBezier = function configBezier() {\n var x1, x2, y1, y2;\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n if (args.length === 1) {\n switch (args[0]) {\n case 'linear':\n [x1, y1, x2, y2] = [0.0, 0.0, 1.0, 1.0];\n break;\n case 'ease':\n [x1, y1, x2, y2] = [0.25, 0.1, 0.25, 1.0];\n break;\n case 'ease-in':\n [x1, y1, x2, y2] = [0.42, 0.0, 1.0, 1.0];\n break;\n case 'ease-out':\n [x1, y1, x2, y2] = [0.42, 0.0, 0.58, 1.0];\n break;\n case 'ease-in-out':\n [x1, y1, x2, y2] = [0.0, 0.0, 0.58, 1.0];\n break;\n default:\n {\n var easing = args[0].split('(');\n if (easing[0] === 'cubic-bezier' && easing[1].split(')')[0].split(',').length === 4) {\n [x1, y1, x2, y2] = easing[1].split(')')[0].split(',').map(x => parseFloat(x));\n }\n }\n }\n } else if (args.length === 4) {\n [x1, y1, x2, y2] = args;\n }\n var curveX = cubicBezier(x1, x2);\n var curveY = cubicBezier(y1, y2);\n var derCurveX = derivativeCubicBezier(x1, x2);\n var rangeValue = value => {\n if (value > 1) {\n return 1;\n }\n if (value < 0) {\n return 0;\n }\n return value;\n };\n var bezier = _t => {\n var t = _t > 1 ? 1 : _t;\n var x = t;\n for (var i = 0; i < 8; ++i) {\n var evalT = curveX(x) - t;\n var derVal = derCurveX(x);\n if (Math.abs(evalT - t) < ACCURACY || derVal < ACCURACY) {\n return curveY(x);\n }\n x = rangeValue(x - evalT / derVal);\n }\n return curveY(x);\n };\n bezier.isStepper = false;\n return bezier;\n};\nexport var configSpring = function configSpring() {\n var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var {\n stiff = 100,\n damping = 8,\n dt = 17\n } = config;\n var stepper = (currX, destX, currV) => {\n var FSpring = -(currX - destX) * stiff;\n var FDamping = currV * damping;\n var newV = currV + (FSpring - FDamping) * dt / 1000;\n var newX = currV * dt / 1000 + currX;\n if (Math.abs(newX - destX) < ACCURACY && Math.abs(newV) < ACCURACY) {\n return [destX, 0];\n }\n return [newX, newV];\n };\n stepper.isStepper = true;\n stepper.dt = dt;\n return stepper;\n};\nexport var configEasing = easing => {\n if (typeof easing === 'string') {\n switch (easing) {\n case 'ease':\n case 'ease-in-out':\n case 'ease-out':\n case 'ease-in':\n case 'linear':\n return configBezier(easing);\n case 'spring':\n return configSpring();\n default:\n if (easing.split('(')[0] === 'cubic-bezier') {\n return configBezier(easing);\n }\n }\n }\n if (typeof easing === 'function') {\n return easing;\n }\n return null;\n};","/**\n * Represents a single item in the ReactSmoothQueue.\n * The item can be:\n * - A number representing a delay in milliseconds.\n * - An object representing a style change\n * - A StartAnimationFunction that starts eased transition and calls different render\n * because of course in Recharts we have to have three ways to do everything\n * - An arbitrary function to be executed\n */\n\nexport function createAnimateManager(timeoutController) {\n var currStyle;\n var handleChange = () => null;\n var shouldStop = false;\n var cancelTimeout = null;\n var setStyle = _style => {\n if (shouldStop) {\n return;\n }\n if (Array.isArray(_style)) {\n if (!_style.length) {\n return;\n }\n var styles = _style;\n var [curr, ...restStyles] = styles;\n if (typeof curr === 'number') {\n cancelTimeout = timeoutController.setTimeout(setStyle.bind(null, restStyles), curr);\n return;\n }\n setStyle(curr);\n cancelTimeout = timeoutController.setTimeout(setStyle.bind(null, restStyles));\n return;\n }\n if (typeof _style === 'string') {\n currStyle = _style;\n handleChange(currStyle);\n }\n if (typeof _style === 'object') {\n currStyle = _style;\n handleChange(currStyle);\n }\n if (typeof _style === 'function') {\n _style();\n }\n };\n return {\n stop: () => {\n shouldStop = true;\n },\n start: style => {\n shouldStop = false;\n if (cancelTimeout) {\n cancelTimeout();\n cancelTimeout = null;\n }\n setStyle(style);\n },\n subscribe: _handleChange => {\n handleChange = _handleChange;\n return () => {\n handleChange = () => null;\n };\n },\n getTimeoutController: () => timeoutController\n };\n}","/**\n * Callback type for the timeout function.\n * Receives current time in milliseconds as an argument.\n */\n\n/**\n * A function that, when called, cancels the timeout.\n */\n\nexport class RequestAnimationFrameTimeoutController {\n setTimeout(callback) {\n var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var startTime = performance.now();\n var requestId = null;\n var executeCallback = now => {\n if (now - startTime >= delay) {\n callback(now);\n // tests fail without the extra if, even when five lines below it's not needed\n // TODO finish transition to the mocked timeout controller and then remove this condition\n } else if (typeof requestAnimationFrame === 'function') {\n requestId = requestAnimationFrame(executeCallback);\n }\n };\n requestId = requestAnimationFrame(executeCallback);\n return () => {\n cancelAnimationFrame(requestId);\n };\n }\n}","import { createAnimateManager } from './AnimationManager';\nimport { RequestAnimationFrameTimeoutController } from './timeoutController';\nexport function createDefaultAnimationManager() {\n return createAnimateManager(new RequestAnimationFrameTimeoutController());\n}","import { createContext, useContext, useMemo } from 'react';\nimport { createDefaultAnimationManager } from './createDefaultAnimationManager';\nexport var AnimationManagerContext = /*#__PURE__*/createContext(createDefaultAnimationManager);\nexport function useAnimationManager(animationId, animationManagerFromProps) {\n var contextAnimationManager = useContext(AnimationManagerContext);\n return useMemo(() => animationManagerFromProps !== null && animationManagerFromProps !== void 0 ? animationManagerFromProps : contextAnimationManager(animationId), [animationId, animationManagerFromProps, contextAnimationManager]);\n}","import { useEffect, useRef, useState } from 'react';\nimport { noop } from 'es-toolkit';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nimport configUpdate from './configUpdate';\nimport { configEasing } from './easing';\nimport { useAnimationManager } from './useAnimationManager';\nvar defaultJavascriptAnimateProps = {\n begin: 0,\n duration: 1000,\n easing: 'ease',\n isActive: true,\n canBegin: true,\n onAnimationEnd: () => {},\n onAnimationStart: () => {}\n};\nvar from = {\n t: 0\n};\nvar to = {\n t: 1\n};\nexport function JavascriptAnimate(outsideProps) {\n var props = resolveDefaultProps(outsideProps, defaultJavascriptAnimateProps);\n var {\n isActive,\n canBegin,\n duration,\n easing,\n begin,\n onAnimationEnd,\n onAnimationStart,\n children\n } = props;\n var animationManager = useAnimationManager(props.animationId, props.animationManager);\n var [style, setStyle] = useState(isActive ? from : to);\n var stopJSAnimation = useRef(null);\n useEffect(() => {\n if (!isActive) {\n setStyle(to);\n }\n }, [isActive]);\n useEffect(() => {\n if (!isActive || !canBegin) {\n return noop;\n }\n var startAnimation = configUpdate(from, to, configEasing(easing), duration, setStyle, animationManager.getTimeoutController());\n var onAnimationActive = () => {\n stopJSAnimation.current = startAnimation();\n };\n animationManager.start([onAnimationStart, begin, onAnimationActive, duration, onAnimationEnd]);\n return () => {\n animationManager.stop();\n if (stopJSAnimation.current) {\n stopJSAnimation.current();\n }\n onAnimationEnd();\n };\n }, [isActive, canBegin, duration, easing, begin, onAnimationStart, onAnimationEnd, animationManager]);\n return children(style.t);\n}","import { useRef } from 'react';\nimport { uniqueId } from './DataUtils';\n\n/**\n * This hook returns a unique animation id for the object input.\n * If input changes (as in, reference equality is different), the animation id will change.\n * If input does not change, the animation id will not change.\n *\n * This is useful for animations. The Animate component\n * does have a `shouldReAnimate` prop but that doesn't seem to be doing what the name implies.\n * Also, we don't always want to re-animate on every render;\n * we only want to re-animate when the input changes. Not the internal state (e.g. `isAnimating`).\n *\n * @param input The object to check for changes. Uses reference equality (=== operator)\n * @param prefix Optional prefix to use for the animation id\n * @returns A unique animation id\n */\nexport function useAnimationId(input) {\n var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'animation-';\n var animationId = useRef(uniqueId(prefix));\n var prevProps = useRef(input);\n if (prevProps.current !== input) {\n animationId.current = uniqueId(prefix);\n prevProps.current = input;\n }\n return animationId.current;\n}","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\n/**\n * @fileOverview Rectangle\n */\nimport * as React from 'react';\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { clsx } from 'clsx';\nimport { filterProps } from '../util/ReactUtils';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nimport { JavascriptAnimate } from '../animation/JavascriptAnimate';\nimport { interpolate } from '../util/DataUtils';\nimport { useAnimationId } from '../util/useAnimationId';\nimport { getTransitionVal } from '../animation/util';\nvar getRectanglePath = (x, y, width, height, radius) => {\n var maxRadius = Math.min(Math.abs(width) / 2, Math.abs(height) / 2);\n var ySign = height >= 0 ? 1 : -1;\n var xSign = width >= 0 ? 1 : -1;\n var clockWise = height >= 0 && width >= 0 || height < 0 && width < 0 ? 1 : 0;\n var path;\n if (maxRadius > 0 && radius instanceof Array) {\n var newRadius = [0, 0, 0, 0];\n for (var i = 0, len = 4; i < len; i++) {\n newRadius[i] = radius[i] > maxRadius ? maxRadius : radius[i];\n }\n path = \"M\".concat(x, \",\").concat(y + ySign * newRadius[0]);\n if (newRadius[0] > 0) {\n path += \"A \".concat(newRadius[0], \",\").concat(newRadius[0], \",0,0,\").concat(clockWise, \",\").concat(x + xSign * newRadius[0], \",\").concat(y);\n }\n path += \"L \".concat(x + width - xSign * newRadius[1], \",\").concat(y);\n if (newRadius[1] > 0) {\n path += \"A \".concat(newRadius[1], \",\").concat(newRadius[1], \",0,0,\").concat(clockWise, \",\\n \").concat(x + width, \",\").concat(y + ySign * newRadius[1]);\n }\n path += \"L \".concat(x + width, \",\").concat(y + height - ySign * newRadius[2]);\n if (newRadius[2] > 0) {\n path += \"A \".concat(newRadius[2], \",\").concat(newRadius[2], \",0,0,\").concat(clockWise, \",\\n \").concat(x + width - xSign * newRadius[2], \",\").concat(y + height);\n }\n path += \"L \".concat(x + xSign * newRadius[3], \",\").concat(y + height);\n if (newRadius[3] > 0) {\n path += \"A \".concat(newRadius[3], \",\").concat(newRadius[3], \",0,0,\").concat(clockWise, \",\\n \").concat(x, \",\").concat(y + height - ySign * newRadius[3]);\n }\n path += 'Z';\n } else if (maxRadius > 0 && radius === +radius && radius > 0) {\n var _newRadius = Math.min(maxRadius, radius);\n path = \"M \".concat(x, \",\").concat(y + ySign * _newRadius, \"\\n A \").concat(_newRadius, \",\").concat(_newRadius, \",0,0,\").concat(clockWise, \",\").concat(x + xSign * _newRadius, \",\").concat(y, \"\\n L \").concat(x + width - xSign * _newRadius, \",\").concat(y, \"\\n A \").concat(_newRadius, \",\").concat(_newRadius, \",0,0,\").concat(clockWise, \",\").concat(x + width, \",\").concat(y + ySign * _newRadius, \"\\n L \").concat(x + width, \",\").concat(y + height - ySign * _newRadius, \"\\n A \").concat(_newRadius, \",\").concat(_newRadius, \",0,0,\").concat(clockWise, \",\").concat(x + width - xSign * _newRadius, \",\").concat(y + height, \"\\n L \").concat(x + xSign * _newRadius, \",\").concat(y + height, \"\\n A \").concat(_newRadius, \",\").concat(_newRadius, \",0,0,\").concat(clockWise, \",\").concat(x, \",\").concat(y + height - ySign * _newRadius, \" Z\");\n } else {\n path = \"M \".concat(x, \",\").concat(y, \" h \").concat(width, \" v \").concat(height, \" h \").concat(-width, \" Z\");\n }\n return path;\n};\nvar defaultProps = {\n x: 0,\n y: 0,\n width: 0,\n height: 0,\n // The radius of border\n // The radius of four corners when radius is a number\n // The radius of left-top, right-top, right-bottom, left-bottom when radius is an array\n radius: 0,\n isAnimationActive: false,\n isUpdateAnimationActive: false,\n animationBegin: 0,\n animationDuration: 1500,\n animationEasing: 'ease'\n};\nexport var Rectangle = rectangleProps => {\n var props = resolveDefaultProps(rectangleProps, defaultProps);\n var pathRef = useRef(null);\n var [totalLength, setTotalLength] = useState(-1);\n useEffect(() => {\n if (pathRef.current && pathRef.current.getTotalLength) {\n try {\n var pathTotalLength = pathRef.current.getTotalLength();\n if (pathTotalLength) {\n setTotalLength(pathTotalLength);\n }\n } catch (_unused) {\n // calculate total length error\n }\n }\n }, []);\n var {\n x,\n y,\n width,\n height,\n radius,\n className\n } = props;\n var {\n animationEasing,\n animationDuration,\n animationBegin,\n isAnimationActive,\n isUpdateAnimationActive\n } = props;\n var prevWidthRef = useRef(width);\n var prevHeightRef = useRef(height);\n var prevXRef = useRef(x);\n var prevYRef = useRef(y);\n var animationIdInput = useMemo(() => ({\n x,\n y,\n width,\n height,\n radius\n }), [x, y, width, height, radius]);\n var animationId = useAnimationId(animationIdInput, 'rectangle-');\n if (x !== +x || y !== +y || width !== +width || height !== +height || width === 0 || height === 0) {\n return null;\n }\n var layerClass = clsx('recharts-rectangle', className);\n if (!isUpdateAnimationActive) {\n return /*#__PURE__*/React.createElement(\"path\", _extends({}, filterProps(props, true), {\n className: layerClass,\n d: getRectanglePath(x, y, width, height, radius)\n }));\n }\n var prevWidth = prevWidthRef.current;\n var prevHeight = prevHeightRef.current;\n var prevX = prevXRef.current;\n var prevY = prevYRef.current;\n var from = \"0px \".concat(totalLength === -1 ? 1 : totalLength, \"px\");\n var to = \"\".concat(totalLength, \"px 0px\");\n var transition = getTransitionVal(['strokeDasharray'], animationDuration, typeof animationEasing === 'string' ? animationEasing : undefined);\n return /*#__PURE__*/React.createElement(JavascriptAnimate, {\n animationId: animationId,\n key: animationId,\n canBegin: totalLength > 0,\n duration: animationDuration,\n easing: animationEasing,\n isActive: isUpdateAnimationActive,\n begin: animationBegin\n }, t => {\n var currWidth = interpolate(prevWidth, width, t);\n var currHeight = interpolate(prevHeight, height, t);\n var currX = interpolate(prevX, x, t);\n var currY = interpolate(prevY, y, t);\n if (pathRef.current) {\n prevWidthRef.current = currWidth;\n prevHeightRef.current = currHeight;\n prevXRef.current = currX;\n prevYRef.current = currY;\n }\n var animationStyle;\n if (!isAnimationActive) {\n animationStyle = {\n strokeDasharray: to\n };\n } else if (t > 0) {\n animationStyle = {\n transition,\n strokeDasharray: to\n };\n } else {\n animationStyle = {\n strokeDasharray: from\n };\n }\n return /*#__PURE__*/React.createElement(\"path\", _extends({}, filterProps(props, true), {\n className: layerClass,\n d: getRectanglePath(currX, currY, currWidth, currHeight, radius),\n ref: pathRef,\n style: _objectSpread(_objectSpread({}, animationStyle), props.style)\n }));\n });\n};","import { polarToCartesian } from '../PolarUtils';\n/**\n * Only applicable for radial layouts\n * @param {Object} activeCoordinate ChartCoordinate\n * @returns {Object} RadialCursorPoints\n */\nexport function getRadialCursorPoints(activeCoordinate) {\n var {\n cx,\n cy,\n radius,\n startAngle,\n endAngle\n } = activeCoordinate;\n var startPoint = polarToCartesian(cx, cy, radius, startAngle);\n var endPoint = polarToCartesian(cx, cy, radius, endAngle);\n return {\n points: [startPoint, endPoint],\n cx,\n cy,\n radius,\n startAngle,\n endAngle\n };\n}","function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nimport { filterProps } from '../util/ReactUtils';\nimport { polarToCartesian, RADIAN } from '../util/PolarUtils';\nimport { getPercentValue, mathSign } from '../util/DataUtils';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nvar getDeltaAngle = (startAngle, endAngle) => {\n var sign = mathSign(endAngle - startAngle);\n var deltaAngle = Math.min(Math.abs(endAngle - startAngle), 359.999);\n return sign * deltaAngle;\n};\nvar getTangentCircle = _ref => {\n var {\n cx,\n cy,\n radius,\n angle,\n sign,\n isExternal,\n cornerRadius,\n cornerIsExternal\n } = _ref;\n var centerRadius = cornerRadius * (isExternal ? 1 : -1) + radius;\n var theta = Math.asin(cornerRadius / centerRadius) / RADIAN;\n var centerAngle = cornerIsExternal ? angle : angle + sign * theta;\n var center = polarToCartesian(cx, cy, centerRadius, centerAngle);\n // The coordinate of point which is tangent to the circle\n var circleTangency = polarToCartesian(cx, cy, radius, centerAngle);\n // The coordinate of point which is tangent to the radius line\n var lineTangencyAngle = cornerIsExternal ? angle - sign * theta : angle;\n var lineTangency = polarToCartesian(cx, cy, centerRadius * Math.cos(theta * RADIAN), lineTangencyAngle);\n return {\n center,\n circleTangency,\n lineTangency,\n theta\n };\n};\nvar getSectorPath = _ref2 => {\n var {\n cx,\n cy,\n innerRadius,\n outerRadius,\n startAngle,\n endAngle\n } = _ref2;\n var angle = getDeltaAngle(startAngle, endAngle);\n\n // When the angle of sector equals to 360, star point and end point coincide\n var tempEndAngle = startAngle + angle;\n var outerStartPoint = polarToCartesian(cx, cy, outerRadius, startAngle);\n var outerEndPoint = polarToCartesian(cx, cy, outerRadius, tempEndAngle);\n var path = \"M \".concat(outerStartPoint.x, \",\").concat(outerStartPoint.y, \"\\n A \").concat(outerRadius, \",\").concat(outerRadius, \",0,\\n \").concat(+(Math.abs(angle) > 180), \",\").concat(+(startAngle > tempEndAngle), \",\\n \").concat(outerEndPoint.x, \",\").concat(outerEndPoint.y, \"\\n \");\n if (innerRadius > 0) {\n var innerStartPoint = polarToCartesian(cx, cy, innerRadius, startAngle);\n var innerEndPoint = polarToCartesian(cx, cy, innerRadius, tempEndAngle);\n path += \"L \".concat(innerEndPoint.x, \",\").concat(innerEndPoint.y, \"\\n A \").concat(innerRadius, \",\").concat(innerRadius, \",0,\\n \").concat(+(Math.abs(angle) > 180), \",\").concat(+(startAngle <= tempEndAngle), \",\\n \").concat(innerStartPoint.x, \",\").concat(innerStartPoint.y, \" Z\");\n } else {\n path += \"L \".concat(cx, \",\").concat(cy, \" Z\");\n }\n return path;\n};\nvar getSectorWithCorner = _ref3 => {\n var {\n cx,\n cy,\n innerRadius,\n outerRadius,\n cornerRadius,\n forceCornerRadius,\n cornerIsExternal,\n startAngle,\n endAngle\n } = _ref3;\n var sign = mathSign(endAngle - startAngle);\n var {\n circleTangency: soct,\n lineTangency: solt,\n theta: sot\n } = getTangentCircle({\n cx,\n cy,\n radius: outerRadius,\n angle: startAngle,\n sign,\n cornerRadius,\n cornerIsExternal\n });\n var {\n circleTangency: eoct,\n lineTangency: eolt,\n theta: eot\n } = getTangentCircle({\n cx,\n cy,\n radius: outerRadius,\n angle: endAngle,\n sign: -sign,\n cornerRadius,\n cornerIsExternal\n });\n var outerArcAngle = cornerIsExternal ? Math.abs(startAngle - endAngle) : Math.abs(startAngle - endAngle) - sot - eot;\n if (outerArcAngle < 0) {\n if (forceCornerRadius) {\n return \"M \".concat(solt.x, \",\").concat(solt.y, \"\\n a\").concat(cornerRadius, \",\").concat(cornerRadius, \",0,0,1,\").concat(cornerRadius * 2, \",0\\n a\").concat(cornerRadius, \",\").concat(cornerRadius, \",0,0,1,\").concat(-cornerRadius * 2, \",0\\n \");\n }\n return getSectorPath({\n cx,\n cy,\n innerRadius,\n outerRadius,\n startAngle,\n endAngle\n });\n }\n var path = \"M \".concat(solt.x, \",\").concat(solt.y, \"\\n A\").concat(cornerRadius, \",\").concat(cornerRadius, \",0,0,\").concat(+(sign < 0), \",\").concat(soct.x, \",\").concat(soct.y, \"\\n A\").concat(outerRadius, \",\").concat(outerRadius, \",0,\").concat(+(outerArcAngle > 180), \",\").concat(+(sign < 0), \",\").concat(eoct.x, \",\").concat(eoct.y, \"\\n A\").concat(cornerRadius, \",\").concat(cornerRadius, \",0,0,\").concat(+(sign < 0), \",\").concat(eolt.x, \",\").concat(eolt.y, \"\\n \");\n if (innerRadius > 0) {\n var {\n circleTangency: sict,\n lineTangency: silt,\n theta: sit\n } = getTangentCircle({\n cx,\n cy,\n radius: innerRadius,\n angle: startAngle,\n sign,\n isExternal: true,\n cornerRadius,\n cornerIsExternal\n });\n var {\n circleTangency: eict,\n lineTangency: eilt,\n theta: eit\n } = getTangentCircle({\n cx,\n cy,\n radius: innerRadius,\n angle: endAngle,\n sign: -sign,\n isExternal: true,\n cornerRadius,\n cornerIsExternal\n });\n var innerArcAngle = cornerIsExternal ? Math.abs(startAngle - endAngle) : Math.abs(startAngle - endAngle) - sit - eit;\n if (innerArcAngle < 0 && cornerRadius === 0) {\n return \"\".concat(path, \"L\").concat(cx, \",\").concat(cy, \"Z\");\n }\n path += \"L\".concat(eilt.x, \",\").concat(eilt.y, \"\\n A\").concat(cornerRadius, \",\").concat(cornerRadius, \",0,0,\").concat(+(sign < 0), \",\").concat(eict.x, \",\").concat(eict.y, \"\\n A\").concat(innerRadius, \",\").concat(innerRadius, \",0,\").concat(+(innerArcAngle > 180), \",\").concat(+(sign > 0), \",\").concat(sict.x, \",\").concat(sict.y, \"\\n A\").concat(cornerRadius, \",\").concat(cornerRadius, \",0,0,\").concat(+(sign < 0), \",\").concat(silt.x, \",\").concat(silt.y, \"Z\");\n } else {\n path += \"L\".concat(cx, \",\").concat(cy, \"Z\");\n }\n return path;\n};\n\n/**\n * SVG cx, cy are `string | number | undefined`, but internally we use `number` so let's\n * override the types here.\n */\n\nvar defaultProps = {\n cx: 0,\n cy: 0,\n innerRadius: 0,\n outerRadius: 0,\n startAngle: 0,\n endAngle: 0,\n cornerRadius: 0,\n forceCornerRadius: false,\n cornerIsExternal: false\n};\nexport var Sector = sectorProps => {\n var props = resolveDefaultProps(sectorProps, defaultProps);\n var {\n cx,\n cy,\n innerRadius,\n outerRadius,\n cornerRadius,\n forceCornerRadius,\n cornerIsExternal,\n startAngle,\n endAngle,\n className\n } = props;\n if (outerRadius < innerRadius || startAngle === endAngle) {\n return null;\n }\n var layerClass = clsx('recharts-sector', className);\n var deltaRadius = outerRadius - innerRadius;\n var cr = getPercentValue(cornerRadius, deltaRadius, 0, true);\n var path;\n if (cr > 0 && Math.abs(startAngle - endAngle) < 360) {\n path = getSectorWithCorner({\n cx,\n cy,\n innerRadius,\n outerRadius,\n cornerRadius: Math.min(cr, deltaRadius / 2),\n forceCornerRadius,\n cornerIsExternal,\n startAngle,\n endAngle\n });\n } else {\n path = getSectorPath({\n cx,\n cy,\n innerRadius,\n outerRadius,\n startAngle,\n endAngle\n });\n }\n return /*#__PURE__*/React.createElement(\"path\", _extends({}, filterProps(props, true), {\n className: layerClass,\n d: path\n }));\n};","import { polarToCartesian } from '../PolarUtils';\nimport { getRadialCursorPoints } from './getRadialCursorPoints';\nexport function getCursorPoints(layout, activeCoordinate, offset) {\n var x1, y1, x2, y2;\n if (layout === 'horizontal') {\n x1 = activeCoordinate.x;\n x2 = x1;\n y1 = offset.top;\n y2 = offset.top + offset.height;\n } else if (layout === 'vertical') {\n y1 = activeCoordinate.y;\n y2 = y1;\n x1 = offset.left;\n x2 = offset.left + offset.width;\n } else if (activeCoordinate.cx != null && activeCoordinate.cy != null) {\n if (layout === 'centric') {\n var {\n cx,\n cy,\n innerRadius,\n outerRadius,\n angle\n } = activeCoordinate;\n var innerPoint = polarToCartesian(cx, cy, innerRadius, angle);\n var outerPoint = polarToCartesian(cx, cy, outerRadius, angle);\n x1 = innerPoint.x;\n y1 = innerPoint.y;\n x2 = outerPoint.x;\n y2 = outerPoint.y;\n } else {\n // @ts-expect-error TODO the state is marked as containing Coordinate but actually in polar charts it contains PolarCoordinate, we should keep the polar state separate\n return getRadialCursorPoints(activeCoordinate);\n }\n }\n return [{\n x: x1,\n y: y1\n }, {\n x: x2,\n y: y2\n }];\n}","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst isSymbol = require('../predicate/isSymbol.js');\n\nfunction toNumber(value) {\n if (isSymbol.isSymbol(value)) {\n return NaN;\n }\n return Number(value);\n}\n\nexports.toNumber = toNumber;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst toNumber = require('./toNumber.js');\n\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber.toNumber(value);\n if (value === Infinity || value === -Infinity) {\n const sign = value < 0 ? -1 : 1;\n return sign * Number.MAX_VALUE;\n }\n return value === value ? value : 0;\n}\n\nexports.toFinite = toFinite;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst isIterateeCall = require('../_internal/isIterateeCall.js');\nconst toFinite = require('../util/toFinite.js');\n\nfunction range(start, end, step) {\n if (step && typeof step !== 'number' && isIterateeCall.isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n start = toFinite.toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n }\n else {\n end = toFinite.toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite.toFinite(step);\n const length = Math.max(Math.ceil((end - start) / (step || 1)), 0);\n const result = new Array(length);\n for (let index = 0; index < length; index++) {\n result[index] = start;\n start += step;\n }\n return result;\n}\n\nexports.range = range;\n","module.exports = require('../dist/compat/math/range.js').range;\n","export default function ascending(a, b) {\n return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n","export default function descending(a, b) {\n return a == null || b == null ? NaN\n : b < a ? -1\n : b > a ? 1\n : b >= a ? 0\n : NaN;\n}\n","import ascending from \"./ascending.js\";\nimport descending from \"./descending.js\";\n\nexport default function bisector(f) {\n let compare1, compare2, delta;\n\n // If an accessor is specified, promote it to a comparator. In this case we\n // can test whether the search value is (self-) comparable. We can’t do this\n // for a comparator (except for specific, known comparators) because we can’t\n // tell if the comparator is symmetric, and an asymmetric comparator can’t be\n // used to test whether a single value is comparable.\n if (f.length !== 2) {\n compare1 = ascending;\n compare2 = (d, x) => ascending(f(d), x);\n delta = (d, x) => f(d) - x;\n } else {\n compare1 = f === ascending || f === descending ? f : zero;\n compare2 = f;\n delta = f;\n }\n\n function left(a, x, lo = 0, hi = a.length) {\n if (lo < hi) {\n if (compare1(x, x) !== 0) return hi;\n do {\n const mid = (lo + hi) >>> 1;\n if (compare2(a[mid], x) < 0) lo = mid + 1;\n else hi = mid;\n } while (lo < hi);\n }\n return lo;\n }\n\n function right(a, x, lo = 0, hi = a.length) {\n if (lo < hi) {\n if (compare1(x, x) !== 0) return hi;\n do {\n const mid = (lo + hi) >>> 1;\n if (compare2(a[mid], x) <= 0) lo = mid + 1;\n else hi = mid;\n } while (lo < hi);\n }\n return lo;\n }\n\n function center(a, x, lo = 0, hi = a.length) {\n const i = left(a, x, lo, hi - 1);\n return i > lo && delta(a[i - 1], x) > -delta(a[i], x) ? i - 1 : i;\n }\n\n return {left, center, right};\n}\n\nfunction zero() {\n return 0;\n}\n","export default function number(x) {\n return x === null ? NaN : +x;\n}\n\nexport function* numbers(values, valueof) {\n if (valueof === undefined) {\n for (let value of values) {\n if (value != null && (value = +value) >= value) {\n yield value;\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) {\n yield value;\n }\n }\n }\n}\n","import ascending from \"./ascending.js\";\nimport bisector from \"./bisector.js\";\nimport number from \"./number.js\";\n\nconst ascendingBisect = bisector(ascending);\nexport const bisectRight = ascendingBisect.right;\nexport const bisectLeft = ascendingBisect.left;\nexport const bisectCenter = bisector(number).center;\nexport default bisectRight;\n","export class InternMap extends Map {\n constructor(entries, key = keyof) {\n super();\n Object.defineProperties(this, {_intern: {value: new Map()}, _key: {value: key}});\n if (entries != null) for (const [key, value] of entries) this.set(key, value);\n }\n get(key) {\n return super.get(intern_get(this, key));\n }\n has(key) {\n return super.has(intern_get(this, key));\n }\n set(key, value) {\n return super.set(intern_set(this, key), value);\n }\n delete(key) {\n return super.delete(intern_delete(this, key));\n }\n}\n\nexport class InternSet extends Set {\n constructor(values, key = keyof) {\n super();\n Object.defineProperties(this, {_intern: {value: new Map()}, _key: {value: key}});\n if (values != null) for (const value of values) this.add(value);\n }\n has(value) {\n return super.has(intern_get(this, value));\n }\n add(value) {\n return super.add(intern_set(this, value));\n }\n delete(value) {\n return super.delete(intern_delete(this, value));\n }\n}\n\nfunction intern_get({_intern, _key}, value) {\n const key = _key(value);\n return _intern.has(key) ? _intern.get(key) : value;\n}\n\nfunction intern_set({_intern, _key}, value) {\n const key = _key(value);\n if (_intern.has(key)) return _intern.get(key);\n _intern.set(key, value);\n return value;\n}\n\nfunction intern_delete({_intern, _key}, value) {\n const key = _key(value);\n if (_intern.has(key)) {\n value = _intern.get(key);\n _intern.delete(key);\n }\n return value;\n}\n\nfunction keyof(value) {\n return value !== null && typeof value === \"object\" ? value.valueOf() : value;\n}\n","import ascending from \"./ascending.js\";\nimport permute from \"./permute.js\";\n\nexport default function sort(values, ...F) {\n if (typeof values[Symbol.iterator] !== \"function\") throw new TypeError(\"values is not iterable\");\n values = Array.from(values);\n let [f] = F;\n if ((f && f.length !== 2) || F.length > 1) {\n const index = Uint32Array.from(values, (d, i) => i);\n if (F.length > 1) {\n F = F.map(f => values.map(f));\n index.sort((i, j) => {\n for (const f of F) {\n const c = ascendingDefined(f[i], f[j]);\n if (c) return c;\n }\n });\n } else {\n f = values.map(f);\n index.sort((i, j) => ascendingDefined(f[i], f[j]));\n }\n return permute(values, index);\n }\n return values.sort(compareDefined(f));\n}\n\nexport function compareDefined(compare = ascending) {\n if (compare === ascending) return ascendingDefined;\n if (typeof compare !== \"function\") throw new TypeError(\"compare is not a function\");\n return (a, b) => {\n const x = compare(a, b);\n if (x || x === 0) return x;\n return (compare(b, b) === 0) - (compare(a, a) === 0);\n };\n}\n\nexport function ascendingDefined(a, b) {\n return (a == null || !(a >= a)) - (b == null || !(b >= b)) || (a < b ? -1 : a > b ? 1 : 0);\n}\n","const e10 = Math.sqrt(50),\n e5 = Math.sqrt(10),\n e2 = Math.sqrt(2);\n\nfunction tickSpec(start, stop, count) {\n const step = (stop - start) / Math.max(0, count),\n power = Math.floor(Math.log10(step)),\n error = step / Math.pow(10, power),\n factor = error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1;\n let i1, i2, inc;\n if (power < 0) {\n inc = Math.pow(10, -power) / factor;\n i1 = Math.round(start * inc);\n i2 = Math.round(stop * inc);\n if (i1 / inc < start) ++i1;\n if (i2 / inc > stop) --i2;\n inc = -inc;\n } else {\n inc = Math.pow(10, power) * factor;\n i1 = Math.round(start / inc);\n i2 = Math.round(stop / inc);\n if (i1 * inc < start) ++i1;\n if (i2 * inc > stop) --i2;\n }\n if (i2 < i1 && 0.5 <= count && count < 2) return tickSpec(start, stop, count * 2);\n return [i1, i2, inc];\n}\n\nexport default function ticks(start, stop, count) {\n stop = +stop, start = +start, count = +count;\n if (!(count > 0)) return [];\n if (start === stop) return [start];\n const reverse = stop < start, [i1, i2, inc] = reverse ? tickSpec(stop, start, count) : tickSpec(start, stop, count);\n if (!(i2 >= i1)) return [];\n const n = i2 - i1 + 1, ticks = new Array(n);\n if (reverse) {\n if (inc < 0) for (let i = 0; i < n; ++i) ticks[i] = (i2 - i) / -inc;\n else for (let i = 0; i < n; ++i) ticks[i] = (i2 - i) * inc;\n } else {\n if (inc < 0) for (let i = 0; i < n; ++i) ticks[i] = (i1 + i) / -inc;\n else for (let i = 0; i < n; ++i) ticks[i] = (i1 + i) * inc;\n }\n return ticks;\n}\n\nexport function tickIncrement(start, stop, count) {\n stop = +stop, start = +start, count = +count;\n return tickSpec(start, stop, count)[2];\n}\n\nexport function tickStep(start, stop, count) {\n stop = +stop, start = +start, count = +count;\n const reverse = stop < start, inc = reverse ? tickIncrement(stop, start, count) : tickIncrement(start, stop, count);\n return (reverse ? -1 : 1) * (inc < 0 ? 1 / -inc : inc);\n}\n","export default function max(values, valueof) {\n let max;\n if (valueof === undefined) {\n for (const value of values) {\n if (value != null\n && (max < value || (max === undefined && value >= value))) {\n max = value;\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null\n && (max < value || (max === undefined && value >= value))) {\n max = value;\n }\n }\n }\n return max;\n}\n","export default function min(values, valueof) {\n let min;\n if (valueof === undefined) {\n for (const value of values) {\n if (value != null\n && (min > value || (min === undefined && value >= value))) {\n min = value;\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null\n && (min > value || (min === undefined && value >= value))) {\n min = value;\n }\n }\n }\n return min;\n}\n","import {ascendingDefined, compareDefined} from \"./sort.js\";\n\n// Based on https://github.com/mourner/quickselect\n// ISC license, Copyright 2018 Vladimir Agafonkin.\nexport default function quickselect(array, k, left = 0, right = Infinity, compare) {\n k = Math.floor(k);\n left = Math.floor(Math.max(0, left));\n right = Math.floor(Math.min(array.length - 1, right));\n\n if (!(left <= k && k <= right)) return array;\n\n compare = compare === undefined ? ascendingDefined : compareDefined(compare);\n\n while (right > left) {\n if (right - left > 600) {\n const n = right - left + 1;\n const m = k - left + 1;\n const z = Math.log(n);\n const s = 0.5 * Math.exp(2 * z / 3);\n const sd = 0.5 * Math.sqrt(z * s * (n - s) / n) * (m - n / 2 < 0 ? -1 : 1);\n const newLeft = Math.max(left, Math.floor(k - m * s / n + sd));\n const newRight = Math.min(right, Math.floor(k + (n - m) * s / n + sd));\n quickselect(array, k, newLeft, newRight, compare);\n }\n\n const t = array[k];\n let i = left;\n let j = right;\n\n swap(array, left, k);\n if (compare(array[right], t) > 0) swap(array, left, right);\n\n while (i < j) {\n swap(array, i, j), ++i, --j;\n while (compare(array[i], t) < 0) ++i;\n while (compare(array[j], t) > 0) --j;\n }\n\n if (compare(array[left], t) === 0) swap(array, left, j);\n else ++j, swap(array, j, right);\n\n if (j <= k) left = j + 1;\n if (k <= j) right = j - 1;\n }\n\n return array;\n}\n\nfunction swap(array, i, j) {\n const t = array[i];\n array[i] = array[j];\n array[j] = t;\n}\n","import max from \"./max.js\";\nimport maxIndex from \"./maxIndex.js\";\nimport min from \"./min.js\";\nimport minIndex from \"./minIndex.js\";\nimport quickselect from \"./quickselect.js\";\nimport number, {numbers} from \"./number.js\";\nimport {ascendingDefined} from \"./sort.js\";\nimport greatest from \"./greatest.js\";\n\nexport default function quantile(values, p, valueof) {\n values = Float64Array.from(numbers(values, valueof));\n if (!(n = values.length) || isNaN(p = +p)) return;\n if (p <= 0 || n < 2) return min(values);\n if (p >= 1) return max(values);\n var n,\n i = (n - 1) * p,\n i0 = Math.floor(i),\n value0 = max(quickselect(values, i0).subarray(0, i0 + 1)),\n value1 = min(values.subarray(i0 + 1));\n return value0 + (value1 - value0) * (i - i0);\n}\n\nexport function quantileSorted(values, p, valueof = number) {\n if (!(n = values.length) || isNaN(p = +p)) return;\n if (p <= 0 || n < 2) return +valueof(values[0], 0, values);\n if (p >= 1) return +valueof(values[n - 1], n - 1, values);\n var n,\n i = (n - 1) * p,\n i0 = Math.floor(i),\n value0 = +valueof(values[i0], i0, values),\n value1 = +valueof(values[i0 + 1], i0 + 1, values);\n return value0 + (value1 - value0) * (i - i0);\n}\n\nexport function quantileIndex(values, p, valueof = number) {\n if (isNaN(p = +p)) return;\n numbers = Float64Array.from(values, (_, i) => number(valueof(values[i], i, values)));\n if (p <= 0) return minIndex(numbers);\n if (p >= 1) return maxIndex(numbers);\n var numbers,\n index = Uint32Array.from(values, (_, i) => i),\n j = numbers.length - 1,\n i = Math.floor(j * p);\n quickselect(index, i, 0, j, (i, j) => ascendingDefined(numbers[i], numbers[j]));\n i = greatest(index.subarray(0, i + 1), (i) => numbers[i]);\n return i >= 0 ? i : -1;\n}\n","export default function range(start, stop, step) {\n start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;\n\n var i = -1,\n n = Math.max(0, Math.ceil((stop - start) / step)) | 0,\n range = new Array(n);\n\n while (++i < n) {\n range[i] = start + i * step;\n }\n\n return range;\n}\n","export function initRange(domain, range) {\n switch (arguments.length) {\n case 0: break;\n case 1: this.range(domain); break;\n default: this.range(range).domain(domain); break;\n }\n return this;\n}\n\nexport function initInterpolator(domain, interpolator) {\n switch (arguments.length) {\n case 0: break;\n case 1: {\n if (typeof domain === \"function\") this.interpolator(domain);\n else this.range(domain);\n break;\n }\n default: {\n this.domain(domain);\n if (typeof interpolator === \"function\") this.interpolator(interpolator);\n else this.range(interpolator);\n break;\n }\n }\n return this;\n}\n","import {InternMap} from \"d3-array\";\nimport {initRange} from \"./init.js\";\n\nexport const implicit = Symbol(\"implicit\");\n\nexport default function ordinal() {\n var index = new InternMap(),\n domain = [],\n range = [],\n unknown = implicit;\n\n function scale(d) {\n let i = index.get(d);\n if (i === undefined) {\n if (unknown !== implicit) return unknown;\n index.set(d, i = domain.push(d) - 1);\n }\n return range[i % range.length];\n }\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [], index = new InternMap();\n for (const value of _) {\n if (index.has(value)) continue;\n index.set(value, domain.push(value) - 1);\n }\n return scale;\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = Array.from(_), scale) : range.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return ordinal(domain, range).unknown(unknown);\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n","import {range as sequence} from \"d3-array\";\nimport {initRange} from \"./init.js\";\nimport ordinal from \"./ordinal.js\";\n\nexport default function band() {\n var scale = ordinal().unknown(undefined),\n domain = scale.domain,\n ordinalRange = scale.range,\n r0 = 0,\n r1 = 1,\n step,\n bandwidth,\n round = false,\n paddingInner = 0,\n paddingOuter = 0,\n align = 0.5;\n\n delete scale.unknown;\n\n function rescale() {\n var n = domain().length,\n reverse = r1 < r0,\n start = reverse ? r1 : r0,\n stop = reverse ? r0 : r1;\n step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2);\n if (round) step = Math.floor(step);\n start += (stop - start - step * (n - paddingInner)) * align;\n bandwidth = step * (1 - paddingInner);\n if (round) start = Math.round(start), bandwidth = Math.round(bandwidth);\n var values = sequence(n).map(function(i) { return start + step * i; });\n return ordinalRange(reverse ? values.reverse() : values);\n }\n\n scale.domain = function(_) {\n return arguments.length ? (domain(_), rescale()) : domain();\n };\n\n scale.range = function(_) {\n return arguments.length ? ([r0, r1] = _, r0 = +r0, r1 = +r1, rescale()) : [r0, r1];\n };\n\n scale.rangeRound = function(_) {\n return [r0, r1] = _, r0 = +r0, r1 = +r1, round = true, rescale();\n };\n\n scale.bandwidth = function() {\n return bandwidth;\n };\n\n scale.step = function() {\n return step;\n };\n\n scale.round = function(_) {\n return arguments.length ? (round = !!_, rescale()) : round;\n };\n\n scale.padding = function(_) {\n return arguments.length ? (paddingInner = Math.min(1, paddingOuter = +_), rescale()) : paddingInner;\n };\n\n scale.paddingInner = function(_) {\n return arguments.length ? (paddingInner = Math.min(1, _), rescale()) : paddingInner;\n };\n\n scale.paddingOuter = function(_) {\n return arguments.length ? (paddingOuter = +_, rescale()) : paddingOuter;\n };\n\n scale.align = function(_) {\n return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align;\n };\n\n scale.copy = function() {\n return band(domain(), [r0, r1])\n .round(round)\n .paddingInner(paddingInner)\n .paddingOuter(paddingOuter)\n .align(align);\n };\n\n return initRange.apply(rescale(), arguments);\n}\n\nfunction pointish(scale) {\n var copy = scale.copy;\n\n scale.padding = scale.paddingOuter;\n delete scale.paddingInner;\n delete scale.paddingOuter;\n\n scale.copy = function() {\n return pointish(copy());\n };\n\n return scale;\n}\n\nexport function point() {\n return pointish(band.apply(null, arguments).paddingInner(1));\n}\n","export default function(constructor, factory, prototype) {\n constructor.prototype = factory.prototype = prototype;\n prototype.constructor = constructor;\n}\n\nexport function extend(parent, definition) {\n var prototype = Object.create(parent.prototype);\n for (var key in definition) prototype[key] = definition[key];\n return prototype;\n}\n","import define, {extend} from \"./define.js\";\n\nexport function Color() {}\n\nexport var darker = 0.7;\nexport var brighter = 1 / darker;\n\nvar reI = \"\\\\s*([+-]?\\\\d+)\\\\s*\",\n reN = \"\\\\s*([+-]?(?:\\\\d*\\\\.)?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*\",\n reP = \"\\\\s*([+-]?(?:\\\\d*\\\\.)?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*\",\n reHex = /^#([0-9a-f]{3,8})$/,\n reRgbInteger = new RegExp(`^rgb\\\\(${reI},${reI},${reI}\\\\)$`),\n reRgbPercent = new RegExp(`^rgb\\\\(${reP},${reP},${reP}\\\\)$`),\n reRgbaInteger = new RegExp(`^rgba\\\\(${reI},${reI},${reI},${reN}\\\\)$`),\n reRgbaPercent = new RegExp(`^rgba\\\\(${reP},${reP},${reP},${reN}\\\\)$`),\n reHslPercent = new RegExp(`^hsl\\\\(${reN},${reP},${reP}\\\\)$`),\n reHslaPercent = new RegExp(`^hsla\\\\(${reN},${reP},${reP},${reN}\\\\)$`);\n\nvar named = {\n aliceblue: 0xf0f8ff,\n antiquewhite: 0xfaebd7,\n aqua: 0x00ffff,\n aquamarine: 0x7fffd4,\n azure: 0xf0ffff,\n beige: 0xf5f5dc,\n bisque: 0xffe4c4,\n black: 0x000000,\n blanchedalmond: 0xffebcd,\n blue: 0x0000ff,\n blueviolet: 0x8a2be2,\n brown: 0xa52a2a,\n burlywood: 0xdeb887,\n cadetblue: 0x5f9ea0,\n chartreuse: 0x7fff00,\n chocolate: 0xd2691e,\n coral: 0xff7f50,\n cornflowerblue: 0x6495ed,\n cornsilk: 0xfff8dc,\n crimson: 0xdc143c,\n cyan: 0x00ffff,\n darkblue: 0x00008b,\n darkcyan: 0x008b8b,\n darkgoldenrod: 0xb8860b,\n darkgray: 0xa9a9a9,\n darkgreen: 0x006400,\n darkgrey: 0xa9a9a9,\n darkkhaki: 0xbdb76b,\n darkmagenta: 0x8b008b,\n darkolivegreen: 0x556b2f,\n darkorange: 0xff8c00,\n darkorchid: 0x9932cc,\n darkred: 0x8b0000,\n darksalmon: 0xe9967a,\n darkseagreen: 0x8fbc8f,\n darkslateblue: 0x483d8b,\n darkslategray: 0x2f4f4f,\n darkslategrey: 0x2f4f4f,\n darkturquoise: 0x00ced1,\n darkviolet: 0x9400d3,\n deeppink: 0xff1493,\n deepskyblue: 0x00bfff,\n dimgray: 0x696969,\n dimgrey: 0x696969,\n dodgerblue: 0x1e90ff,\n firebrick: 0xb22222,\n floralwhite: 0xfffaf0,\n forestgreen: 0x228b22,\n fuchsia: 0xff00ff,\n gainsboro: 0xdcdcdc,\n ghostwhite: 0xf8f8ff,\n gold: 0xffd700,\n goldenrod: 0xdaa520,\n gray: 0x808080,\n green: 0x008000,\n greenyellow: 0xadff2f,\n grey: 0x808080,\n honeydew: 0xf0fff0,\n hotpink: 0xff69b4,\n indianred: 0xcd5c5c,\n indigo: 0x4b0082,\n ivory: 0xfffff0,\n khaki: 0xf0e68c,\n lavender: 0xe6e6fa,\n lavenderblush: 0xfff0f5,\n lawngreen: 0x7cfc00,\n lemonchiffon: 0xfffacd,\n lightblue: 0xadd8e6,\n lightcoral: 0xf08080,\n lightcyan: 0xe0ffff,\n lightgoldenrodyellow: 0xfafad2,\n lightgray: 0xd3d3d3,\n lightgreen: 0x90ee90,\n lightgrey: 0xd3d3d3,\n lightpink: 0xffb6c1,\n lightsalmon: 0xffa07a,\n lightseagreen: 0x20b2aa,\n lightskyblue: 0x87cefa,\n lightslategray: 0x778899,\n lightslategrey: 0x778899,\n lightsteelblue: 0xb0c4de,\n lightyellow: 0xffffe0,\n lime: 0x00ff00,\n limegreen: 0x32cd32,\n linen: 0xfaf0e6,\n magenta: 0xff00ff,\n maroon: 0x800000,\n mediumaquamarine: 0x66cdaa,\n mediumblue: 0x0000cd,\n mediumorchid: 0xba55d3,\n mediumpurple: 0x9370db,\n mediumseagreen: 0x3cb371,\n mediumslateblue: 0x7b68ee,\n mediumspringgreen: 0x00fa9a,\n mediumturquoise: 0x48d1cc,\n mediumvioletred: 0xc71585,\n midnightblue: 0x191970,\n mintcream: 0xf5fffa,\n mistyrose: 0xffe4e1,\n moccasin: 0xffe4b5,\n navajowhite: 0xffdead,\n navy: 0x000080,\n oldlace: 0xfdf5e6,\n olive: 0x808000,\n olivedrab: 0x6b8e23,\n orange: 0xffa500,\n orangered: 0xff4500,\n orchid: 0xda70d6,\n palegoldenrod: 0xeee8aa,\n palegreen: 0x98fb98,\n paleturquoise: 0xafeeee,\n palevioletred: 0xdb7093,\n papayawhip: 0xffefd5,\n peachpuff: 0xffdab9,\n peru: 0xcd853f,\n pink: 0xffc0cb,\n plum: 0xdda0dd,\n powderblue: 0xb0e0e6,\n purple: 0x800080,\n rebeccapurple: 0x663399,\n red: 0xff0000,\n rosybrown: 0xbc8f8f,\n royalblue: 0x4169e1,\n saddlebrown: 0x8b4513,\n salmon: 0xfa8072,\n sandybrown: 0xf4a460,\n seagreen: 0x2e8b57,\n seashell: 0xfff5ee,\n sienna: 0xa0522d,\n silver: 0xc0c0c0,\n skyblue: 0x87ceeb,\n slateblue: 0x6a5acd,\n slategray: 0x708090,\n slategrey: 0x708090,\n snow: 0xfffafa,\n springgreen: 0x00ff7f,\n steelblue: 0x4682b4,\n tan: 0xd2b48c,\n teal: 0x008080,\n thistle: 0xd8bfd8,\n tomato: 0xff6347,\n turquoise: 0x40e0d0,\n violet: 0xee82ee,\n wheat: 0xf5deb3,\n white: 0xffffff,\n whitesmoke: 0xf5f5f5,\n yellow: 0xffff00,\n yellowgreen: 0x9acd32\n};\n\ndefine(Color, color, {\n copy(channels) {\n return Object.assign(new this.constructor, this, channels);\n },\n displayable() {\n return this.rgb().displayable();\n },\n hex: color_formatHex, // Deprecated! Use color.formatHex.\n formatHex: color_formatHex,\n formatHex8: color_formatHex8,\n formatHsl: color_formatHsl,\n formatRgb: color_formatRgb,\n toString: color_formatRgb\n});\n\nfunction color_formatHex() {\n return this.rgb().formatHex();\n}\n\nfunction color_formatHex8() {\n return this.rgb().formatHex8();\n}\n\nfunction color_formatHsl() {\n return hslConvert(this).formatHsl();\n}\n\nfunction color_formatRgb() {\n return this.rgb().formatRgb();\n}\n\nexport default function color(format) {\n var m, l;\n format = (format + \"\").trim().toLowerCase();\n return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000\n : l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00\n : l === 8 ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000\n : l === 4 ? rgba((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000\n : null) // invalid hex\n : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)\n : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)\n : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)\n : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)\n : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)\n : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)\n : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins\n : format === \"transparent\" ? new Rgb(NaN, NaN, NaN, 0)\n : null;\n}\n\nfunction rgbn(n) {\n return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);\n}\n\nfunction rgba(r, g, b, a) {\n if (a <= 0) r = g = b = NaN;\n return new Rgb(r, g, b, a);\n}\n\nexport function rgbConvert(o) {\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Rgb;\n o = o.rgb();\n return new Rgb(o.r, o.g, o.b, o.opacity);\n}\n\nexport function rgb(r, g, b, opacity) {\n return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);\n}\n\nexport function Rgb(r, g, b, opacity) {\n this.r = +r;\n this.g = +g;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Rgb, rgb, extend(Color, {\n brighter(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n darker(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n rgb() {\n return this;\n },\n clamp() {\n return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));\n },\n displayable() {\n return (-0.5 <= this.r && this.r < 255.5)\n && (-0.5 <= this.g && this.g < 255.5)\n && (-0.5 <= this.b && this.b < 255.5)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n hex: rgb_formatHex, // Deprecated! Use color.formatHex.\n formatHex: rgb_formatHex,\n formatHex8: rgb_formatHex8,\n formatRgb: rgb_formatRgb,\n toString: rgb_formatRgb\n}));\n\nfunction rgb_formatHex() {\n return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`;\n}\n\nfunction rgb_formatHex8() {\n return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;\n}\n\nfunction rgb_formatRgb() {\n const a = clampa(this.opacity);\n return `${a === 1 ? \"rgb(\" : \"rgba(\"}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a === 1 ? \")\" : `, ${a})`}`;\n}\n\nfunction clampa(opacity) {\n return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity));\n}\n\nfunction clampi(value) {\n return Math.max(0, Math.min(255, Math.round(value) || 0));\n}\n\nfunction hex(value) {\n value = clampi(value);\n return (value < 16 ? \"0\" : \"\") + value.toString(16);\n}\n\nfunction hsla(h, s, l, a) {\n if (a <= 0) h = s = l = NaN;\n else if (l <= 0 || l >= 1) h = s = NaN;\n else if (s <= 0) h = NaN;\n return new Hsl(h, s, l, a);\n}\n\nexport function hslConvert(o) {\n if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Hsl;\n if (o instanceof Hsl) return o;\n o = o.rgb();\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n min = Math.min(r, g, b),\n max = Math.max(r, g, b),\n h = NaN,\n s = max - min,\n l = (max + min) / 2;\n if (s) {\n if (r === max) h = (g - b) / s + (g < b) * 6;\n else if (g === max) h = (b - r) / s + 2;\n else h = (r - g) / s + 4;\n s /= l < 0.5 ? max + min : 2 - max - min;\n h *= 60;\n } else {\n s = l > 0 && l < 1 ? 0 : h;\n }\n return new Hsl(h, s, l, o.opacity);\n}\n\nexport function hsl(h, s, l, opacity) {\n return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);\n}\n\nfunction Hsl(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Hsl, hsl, extend(Color, {\n brighter(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n darker(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n rgb() {\n var h = this.h % 360 + (this.h < 0) * 360,\n s = isNaN(h) || isNaN(this.s) ? 0 : this.s,\n l = this.l,\n m2 = l + (l < 0.5 ? l : 1 - l) * s,\n m1 = 2 * l - m2;\n return new Rgb(\n hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),\n hsl2rgb(h, m1, m2),\n hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),\n this.opacity\n );\n },\n clamp() {\n return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));\n },\n displayable() {\n return (0 <= this.s && this.s <= 1 || isNaN(this.s))\n && (0 <= this.l && this.l <= 1)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n formatHsl() {\n const a = clampa(this.opacity);\n return `${a === 1 ? \"hsl(\" : \"hsla(\"}${clamph(this.h)}, ${clampt(this.s) * 100}%, ${clampt(this.l) * 100}%${a === 1 ? \")\" : `, ${a})`}`;\n }\n}));\n\nfunction clamph(value) {\n value = (value || 0) % 360;\n return value < 0 ? value + 360 : value;\n}\n\nfunction clampt(value) {\n return Math.max(0, Math.min(1, value || 0));\n}\n\n/* From FvD 13.37, CSS Color Module Level 3 */\nfunction hsl2rgb(h, m1, m2) {\n return (h < 60 ? m1 + (m2 - m1) * h / 60\n : h < 180 ? m2\n : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60\n : m1) * 255;\n}\n","export default x => () => x;\n","import constant from \"./constant.js\";\n\nfunction linear(a, d) {\n return function(t) {\n return a + t * d;\n };\n}\n\nfunction exponential(a, b, y) {\n return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {\n return Math.pow(a + t * b, y);\n };\n}\n\nexport function hue(a, b) {\n var d = b - a;\n return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);\n}\n\nexport function gamma(y) {\n return (y = +y) === 1 ? nogamma : function(a, b) {\n return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a);\n };\n}\n\nexport default function nogamma(a, b) {\n var d = b - a;\n return d ? linear(a, d) : constant(isNaN(a) ? b : a);\n}\n","import {rgb as colorRgb} from \"d3-color\";\nimport basis from \"./basis.js\";\nimport basisClosed from \"./basisClosed.js\";\nimport nogamma, {gamma} from \"./color.js\";\n\nexport default (function rgbGamma(y) {\n var color = gamma(y);\n\n function rgb(start, end) {\n var r = color((start = colorRgb(start)).r, (end = colorRgb(end)).r),\n g = color(start.g, end.g),\n b = color(start.b, end.b),\n opacity = nogamma(start.opacity, end.opacity);\n return function(t) {\n start.r = r(t);\n start.g = g(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n rgb.gamma = rgbGamma;\n\n return rgb;\n})(1);\n\nfunction rgbSpline(spline) {\n return function(colors) {\n var n = colors.length,\n r = new Array(n),\n g = new Array(n),\n b = new Array(n),\n i, color;\n for (i = 0; i < n; ++i) {\n color = colorRgb(colors[i]);\n r[i] = color.r || 0;\n g[i] = color.g || 0;\n b[i] = color.b || 0;\n }\n r = spline(r);\n g = spline(g);\n b = spline(b);\n color.opacity = 1;\n return function(t) {\n color.r = r(t);\n color.g = g(t);\n color.b = b(t);\n return color + \"\";\n };\n };\n}\n\nexport var rgbBasis = rgbSpline(basis);\nexport var rgbBasisClosed = rgbSpline(basisClosed);\n","export default function(a, b) {\n if (!b) b = [];\n var n = a ? Math.min(b.length, a.length) : 0,\n c = b.slice(),\n i;\n return function(t) {\n for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;\n return c;\n };\n}\n\nexport function isNumberArray(x) {\n return ArrayBuffer.isView(x) && !(x instanceof DataView);\n}\n","import value from \"./value.js\";\nimport numberArray, {isNumberArray} from \"./numberArray.js\";\n\nexport default function(a, b) {\n return (isNumberArray(b) ? numberArray : genericArray)(a, b);\n}\n\nexport function genericArray(a, b) {\n var nb = b ? b.length : 0,\n na = a ? Math.min(nb, a.length) : 0,\n x = new Array(na),\n c = new Array(nb),\n i;\n\n for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]);\n for (; i < nb; ++i) c[i] = b[i];\n\n return function(t) {\n for (i = 0; i < na; ++i) c[i] = x[i](t);\n return c;\n };\n}\n","export default function(a, b) {\n var d = new Date;\n return a = +a, b = +b, function(t) {\n return d.setTime(a * (1 - t) + b * t), d;\n };\n}\n","export default function(a, b) {\n return a = +a, b = +b, function(t) {\n return a * (1 - t) + b * t;\n };\n}\n","import value from \"./value.js\";\n\nexport default function(a, b) {\n var i = {},\n c = {},\n k;\n\n if (a === null || typeof a !== \"object\") a = {};\n if (b === null || typeof b !== \"object\") b = {};\n\n for (k in b) {\n if (k in a) {\n i[k] = value(a[k], b[k]);\n } else {\n c[k] = b[k];\n }\n }\n\n return function(t) {\n for (k in i) c[k] = i[k](t);\n return c;\n };\n}\n","import number from \"./number.js\";\n\nvar reA = /[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,\n reB = new RegExp(reA.source, \"g\");\n\nfunction zero(b) {\n return function() {\n return b;\n };\n}\n\nfunction one(b) {\n return function(t) {\n return b(t) + \"\";\n };\n}\n\nexport default function(a, b) {\n var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b\n am, // current match in a\n bm, // current match in b\n bs, // string preceding current number in b, if any\n i = -1, // index in s\n s = [], // string constants and placeholders\n q = []; // number interpolators\n\n // Coerce inputs to strings.\n a = a + \"\", b = b + \"\";\n\n // Interpolate pairs of numbers in a & b.\n while ((am = reA.exec(a))\n && (bm = reB.exec(b))) {\n if ((bs = bm.index) > bi) { // a string precedes the next number in b\n bs = b.slice(bi, bs);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match\n if (s[i]) s[i] += bm; // coalesce with previous string\n else s[++i] = bm;\n } else { // interpolate non-matching numbers\n s[++i] = null;\n q.push({i: i, x: number(am, bm)});\n }\n bi = reB.lastIndex;\n }\n\n // Add remains of b.\n if (bi < b.length) {\n bs = b.slice(bi);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n\n // Special optimization for only a single match.\n // Otherwise, interpolate each of the numbers and rejoin the string.\n return s.length < 2 ? (q[0]\n ? one(q[0].x)\n : zero(b))\n : (b = q.length, function(t) {\n for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n });\n}\n","import {color} from \"d3-color\";\nimport rgb from \"./rgb.js\";\nimport {genericArray} from \"./array.js\";\nimport date from \"./date.js\";\nimport number from \"./number.js\";\nimport object from \"./object.js\";\nimport string from \"./string.js\";\nimport constant from \"./constant.js\";\nimport numberArray, {isNumberArray} from \"./numberArray.js\";\n\nexport default function(a, b) {\n var t = typeof b, c;\n return b == null || t === \"boolean\" ? constant(b)\n : (t === \"number\" ? number\n : t === \"string\" ? ((c = color(b)) ? (b = c, rgb) : string)\n : b instanceof color ? rgb\n : b instanceof Date ? date\n : isNumberArray(b) ? numberArray\n : Array.isArray(b) ? genericArray\n : typeof b.valueOf !== \"function\" && typeof b.toString !== \"function\" || isNaN(b) ? object\n : number)(a, b);\n}\n","export default function(a, b) {\n return a = +a, b = +b, function(t) {\n return Math.round(a * (1 - t) + b * t);\n };\n}\n","import {default as value} from \"./value.js\";\n\nexport default function piecewise(interpolate, values) {\n if (values === undefined) values = interpolate, interpolate = value;\n var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n);\n while (i < n) I[i] = interpolate(v, v = values[++i]);\n return function(t) {\n var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n)));\n return I[i](t - i);\n };\n}\n","export default function constants(x) {\n return function() {\n return x;\n };\n}\n","export default function number(x) {\n return +x;\n}\n","import {bisect} from \"d3-array\";\nimport {interpolate as interpolateValue, interpolateNumber, interpolateRound} from \"d3-interpolate\";\nimport constant from \"./constant.js\";\nimport number from \"./number.js\";\n\nvar unit = [0, 1];\n\nexport function identity(x) {\n return x;\n}\n\nfunction normalize(a, b) {\n return (b -= (a = +a))\n ? function(x) { return (x - a) / b; }\n : constant(isNaN(b) ? NaN : 0.5);\n}\n\nfunction clamper(a, b) {\n var t;\n if (a > b) t = a, a = b, b = t;\n return function(x) { return Math.max(a, Math.min(b, x)); };\n}\n\n// normalize(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].\n// interpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding range value x in [a,b].\nfunction bimap(domain, range, interpolate) {\n var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1];\n if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0);\n else d0 = normalize(d0, d1), r0 = interpolate(r0, r1);\n return function(x) { return r0(d0(x)); };\n}\n\nfunction polymap(domain, range, interpolate) {\n var j = Math.min(domain.length, range.length) - 1,\n d = new Array(j),\n r = new Array(j),\n i = -1;\n\n // Reverse descending domains.\n if (domain[j] < domain[0]) {\n domain = domain.slice().reverse();\n range = range.slice().reverse();\n }\n\n while (++i < j) {\n d[i] = normalize(domain[i], domain[i + 1]);\n r[i] = interpolate(range[i], range[i + 1]);\n }\n\n return function(x) {\n var i = bisect(domain, x, 1, j) - 1;\n return r[i](d[i](x));\n };\n}\n\nexport function copy(source, target) {\n return target\n .domain(source.domain())\n .range(source.range())\n .interpolate(source.interpolate())\n .clamp(source.clamp())\n .unknown(source.unknown());\n}\n\nexport function transformer() {\n var domain = unit,\n range = unit,\n interpolate = interpolateValue,\n transform,\n untransform,\n unknown,\n clamp = identity,\n piecewise,\n output,\n input;\n\n function rescale() {\n var n = Math.min(domain.length, range.length);\n if (clamp !== identity) clamp = clamper(domain[0], domain[n - 1]);\n piecewise = n > 2 ? polymap : bimap;\n output = input = null;\n return scale;\n }\n\n function scale(x) {\n return x == null || isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate)))(transform(clamp(x)));\n }\n\n scale.invert = function(y) {\n return clamp(untransform((input || (input = piecewise(range, domain.map(transform), interpolateNumber)))(y)));\n };\n\n scale.domain = function(_) {\n return arguments.length ? (domain = Array.from(_, number), rescale()) : domain.slice();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = Array.from(_), rescale()) : range.slice();\n };\n\n scale.rangeRound = function(_) {\n return range = Array.from(_), interpolate = interpolateRound, rescale();\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = _ ? true : identity, rescale()) : clamp !== identity;\n };\n\n scale.interpolate = function(_) {\n return arguments.length ? (interpolate = _, rescale()) : interpolate;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t, u) {\n transform = t, untransform = u;\n return rescale();\n };\n}\n\nexport default function continuous() {\n return transformer()(identity, identity);\n}\n","export default function(x) {\n return Math.abs(x = Math.round(x)) >= 1e21\n ? x.toLocaleString(\"en\").replace(/,/g, \"\")\n : x.toString(10);\n}\n\n// Computes the decimal coefficient and exponent of the specified number x with\n// significant digits p, where x is positive and p is in [1, 21] or undefined.\n// For example, formatDecimalParts(1.23) returns [\"123\", 0].\nexport function formatDecimalParts(x, p) {\n if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf(\"e\")) < 0) return null; // NaN, ±Infinity\n var i, coefficient = x.slice(0, i);\n\n // The string returned by toExponential either has the form \\d\\.\\d+e[-+]\\d+\n // (e.g., 1.2e+3) or the form \\de[-+]\\d+ (e.g., 1e+3).\n return [\n coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,\n +x.slice(i + 1)\n ];\n}\n","import {formatDecimalParts} from \"./formatDecimal.js\";\n\nexport default function(x) {\n return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN;\n}\n","export default function(grouping, thousands) {\n return function(value, width) {\n var i = value.length,\n t = [],\n j = 0,\n g = grouping[0],\n length = 0;\n\n while (i > 0 && g > 0) {\n if (length + g + 1 > width) g = Math.max(1, width - length);\n t.push(value.substring(i -= g, i + g));\n if ((length += g + 1) > width) break;\n g = grouping[j = (j + 1) % grouping.length];\n }\n\n return t.reverse().join(thousands);\n };\n}\n","export default function(numerals) {\n return function(value) {\n return value.replace(/[0-9]/g, function(i) {\n return numerals[+i];\n });\n };\n}\n","// [[fill]align][sign][symbol][0][width][,][.precision][~][type]\nvar re = /^(?:(.)?([<>=^]))?([+\\-( ])?([$#])?(0)?(\\d+)?(,)?(\\.\\d+)?(~)?([a-z%])?$/i;\n\nexport default function formatSpecifier(specifier) {\n if (!(match = re.exec(specifier))) throw new Error(\"invalid format: \" + specifier);\n var match;\n return new FormatSpecifier({\n fill: match[1],\n align: match[2],\n sign: match[3],\n symbol: match[4],\n zero: match[5],\n width: match[6],\n comma: match[7],\n precision: match[8] && match[8].slice(1),\n trim: match[9],\n type: match[10]\n });\n}\n\nformatSpecifier.prototype = FormatSpecifier.prototype; // instanceof\n\nexport function FormatSpecifier(specifier) {\n this.fill = specifier.fill === undefined ? \" \" : specifier.fill + \"\";\n this.align = specifier.align === undefined ? \">\" : specifier.align + \"\";\n this.sign = specifier.sign === undefined ? \"-\" : specifier.sign + \"\";\n this.symbol = specifier.symbol === undefined ? \"\" : specifier.symbol + \"\";\n this.zero = !!specifier.zero;\n this.width = specifier.width === undefined ? undefined : +specifier.width;\n this.comma = !!specifier.comma;\n this.precision = specifier.precision === undefined ? undefined : +specifier.precision;\n this.trim = !!specifier.trim;\n this.type = specifier.type === undefined ? \"\" : specifier.type + \"\";\n}\n\nFormatSpecifier.prototype.toString = function() {\n return this.fill\n + this.align\n + this.sign\n + this.symbol\n + (this.zero ? \"0\" : \"\")\n + (this.width === undefined ? \"\" : Math.max(1, this.width | 0))\n + (this.comma ? \",\" : \"\")\n + (this.precision === undefined ? \"\" : \".\" + Math.max(0, this.precision | 0))\n + (this.trim ? \"~\" : \"\")\n + this.type;\n};\n","// Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.\nexport default function(s) {\n out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {\n switch (s[i]) {\n case \".\": i0 = i1 = i; break;\n case \"0\": if (i0 === 0) i0 = i; i1 = i; break;\n default: if (!+s[i]) break out; if (i0 > 0) i0 = 0; break;\n }\n }\n return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;\n}\n","import {formatDecimalParts} from \"./formatDecimal.js\";\n\nexport var prefixExponent;\n\nexport default function(x, p) {\n var d = formatDecimalParts(x, p);\n if (!d) return x + \"\";\n var coefficient = d[0],\n exponent = d[1],\n i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,\n n = coefficient.length;\n return i === n ? coefficient\n : i > n ? coefficient + new Array(i - n + 1).join(\"0\")\n : i > 0 ? coefficient.slice(0, i) + \".\" + coefficient.slice(i)\n : \"0.\" + new Array(1 - i).join(\"0\") + formatDecimalParts(x, Math.max(0, p + i - 1))[0]; // less than 1y!\n}\n","import {formatDecimalParts} from \"./formatDecimal.js\";\n\nexport default function(x, p) {\n var d = formatDecimalParts(x, p);\n if (!d) return x + \"\";\n var coefficient = d[0],\n exponent = d[1];\n return exponent < 0 ? \"0.\" + new Array(-exponent).join(\"0\") + coefficient\n : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + \".\" + coefficient.slice(exponent + 1)\n : coefficient + new Array(exponent - coefficient.length + 2).join(\"0\");\n}\n","import formatDecimal from \"./formatDecimal.js\";\nimport formatPrefixAuto from \"./formatPrefixAuto.js\";\nimport formatRounded from \"./formatRounded.js\";\n\nexport default {\n \"%\": (x, p) => (x * 100).toFixed(p),\n \"b\": (x) => Math.round(x).toString(2),\n \"c\": (x) => x + \"\",\n \"d\": formatDecimal,\n \"e\": (x, p) => x.toExponential(p),\n \"f\": (x, p) => x.toFixed(p),\n \"g\": (x, p) => x.toPrecision(p),\n \"o\": (x) => Math.round(x).toString(8),\n \"p\": (x, p) => formatRounded(x * 100, p),\n \"r\": formatRounded,\n \"s\": formatPrefixAuto,\n \"X\": (x) => Math.round(x).toString(16).toUpperCase(),\n \"x\": (x) => Math.round(x).toString(16)\n};\n","export default function(x) {\n return x;\n}\n","import exponent from \"./exponent.js\";\nimport formatGroup from \"./formatGroup.js\";\nimport formatNumerals from \"./formatNumerals.js\";\nimport formatSpecifier from \"./formatSpecifier.js\";\nimport formatTrim from \"./formatTrim.js\";\nimport formatTypes from \"./formatTypes.js\";\nimport {prefixExponent} from \"./formatPrefixAuto.js\";\nimport identity from \"./identity.js\";\n\nvar map = Array.prototype.map,\n prefixes = [\"y\",\"z\",\"a\",\"f\",\"p\",\"n\",\"µ\",\"m\",\"\",\"k\",\"M\",\"G\",\"T\",\"P\",\"E\",\"Z\",\"Y\"];\n\nexport default function(locale) {\n var group = locale.grouping === undefined || locale.thousands === undefined ? identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + \"\"),\n currencyPrefix = locale.currency === undefined ? \"\" : locale.currency[0] + \"\",\n currencySuffix = locale.currency === undefined ? \"\" : locale.currency[1] + \"\",\n decimal = locale.decimal === undefined ? \".\" : locale.decimal + \"\",\n numerals = locale.numerals === undefined ? identity : formatNumerals(map.call(locale.numerals, String)),\n percent = locale.percent === undefined ? \"%\" : locale.percent + \"\",\n minus = locale.minus === undefined ? \"−\" : locale.minus + \"\",\n nan = locale.nan === undefined ? \"NaN\" : locale.nan + \"\";\n\n function newFormat(specifier) {\n specifier = formatSpecifier(specifier);\n\n var fill = specifier.fill,\n align = specifier.align,\n sign = specifier.sign,\n symbol = specifier.symbol,\n zero = specifier.zero,\n width = specifier.width,\n comma = specifier.comma,\n precision = specifier.precision,\n trim = specifier.trim,\n type = specifier.type;\n\n // The \"n\" type is an alias for \",g\".\n if (type === \"n\") comma = true, type = \"g\";\n\n // The \"\" type, and any invalid type, is an alias for \".12~g\".\n else if (!formatTypes[type]) precision === undefined && (precision = 12), trim = true, type = \"g\";\n\n // If zero fill is specified, padding goes after sign and before digits.\n if (zero || (fill === \"0\" && align === \"=\")) zero = true, fill = \"0\", align = \"=\";\n\n // Compute the prefix and suffix.\n // For SI-prefix, the suffix is lazily computed.\n var prefix = symbol === \"$\" ? currencyPrefix : symbol === \"#\" && /[boxX]/.test(type) ? \"0\" + type.toLowerCase() : \"\",\n suffix = symbol === \"$\" ? currencySuffix : /[%p]/.test(type) ? percent : \"\";\n\n // What format function should we use?\n // Is this an integer type?\n // Can this type generate exponential notation?\n var formatType = formatTypes[type],\n maybeSuffix = /[defgprs%]/.test(type);\n\n // Set the default precision if not specified,\n // or clamp the specified precision to the supported range.\n // For significant precision, it must be in [1, 21].\n // For fixed precision, it must be in [0, 20].\n precision = precision === undefined ? 6\n : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision))\n : Math.max(0, Math.min(20, precision));\n\n function format(value) {\n var valuePrefix = prefix,\n valueSuffix = suffix,\n i, n, c;\n\n if (type === \"c\") {\n valueSuffix = formatType(value) + valueSuffix;\n value = \"\";\n } else {\n value = +value;\n\n // Determine the sign. -0 is not less than 0, but 1 / -0 is!\n var valueNegative = value < 0 || 1 / value < 0;\n\n // Perform the initial formatting.\n value = isNaN(value) ? nan : formatType(Math.abs(value), precision);\n\n // Trim insignificant zeros.\n if (trim) value = formatTrim(value);\n\n // If a negative value rounds to zero after formatting, and no explicit positive sign is requested, hide the sign.\n if (valueNegative && +value === 0 && sign !== \"+\") valueNegative = false;\n\n // Compute the prefix and suffix.\n valuePrefix = (valueNegative ? (sign === \"(\" ? sign : minus) : sign === \"-\" || sign === \"(\" ? \"\" : sign) + valuePrefix;\n valueSuffix = (type === \"s\" ? prefixes[8 + prefixExponent / 3] : \"\") + valueSuffix + (valueNegative && sign === \"(\" ? \")\" : \"\");\n\n // Break the formatted value into the integer “value” part that can be\n // grouped, and fractional or exponential “suffix” part that is not.\n if (maybeSuffix) {\n i = -1, n = value.length;\n while (++i < n) {\n if (c = value.charCodeAt(i), 48 > c || c > 57) {\n valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;\n value = value.slice(0, i);\n break;\n }\n }\n }\n }\n\n // If the fill character is not \"0\", grouping is applied before padding.\n if (comma && !zero) value = group(value, Infinity);\n\n // Compute the padding.\n var length = valuePrefix.length + value.length + valueSuffix.length,\n padding = length < width ? new Array(width - length + 1).join(fill) : \"\";\n\n // If the fill character is \"0\", grouping is applied after padding.\n if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = \"\";\n\n // Reconstruct the final output based on the desired alignment.\n switch (align) {\n case \"<\": value = valuePrefix + value + valueSuffix + padding; break;\n case \"=\": value = valuePrefix + padding + value + valueSuffix; break;\n case \"^\": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break;\n default: value = padding + valuePrefix + value + valueSuffix; break;\n }\n\n return numerals(value);\n }\n\n format.toString = function() {\n return specifier + \"\";\n };\n\n return format;\n }\n\n function formatPrefix(specifier, value) {\n var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = \"f\", specifier)),\n e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3,\n k = Math.pow(10, -e),\n prefix = prefixes[8 + e / 3];\n return function(value) {\n return f(k * value) + prefix;\n };\n }\n\n return {\n format: newFormat,\n formatPrefix: formatPrefix\n };\n}\n","import formatLocale from \"./locale.js\";\n\nvar locale;\nexport var format;\nexport var formatPrefix;\n\ndefaultLocale({\n thousands: \",\",\n grouping: [3],\n currency: [\"$\", \"\"]\n});\n\nexport default function defaultLocale(definition) {\n locale = formatLocale(definition);\n format = locale.format;\n formatPrefix = locale.formatPrefix;\n return locale;\n}\n","import exponent from \"./exponent.js\";\n\nexport default function(step) {\n return Math.max(0, -exponent(Math.abs(step)));\n}\n","import exponent from \"./exponent.js\";\n\nexport default function(step, value) {\n return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));\n}\n","import exponent from \"./exponent.js\";\n\nexport default function(step, max) {\n step = Math.abs(step), max = Math.abs(max) - step;\n return Math.max(0, exponent(max) - exponent(step)) + 1;\n}\n","import {tickStep} from \"d3-array\";\nimport {format, formatPrefix, formatSpecifier, precisionFixed, precisionPrefix, precisionRound} from \"d3-format\";\n\nexport default function tickFormat(start, stop, count, specifier) {\n var step = tickStep(start, stop, count),\n precision;\n specifier = formatSpecifier(specifier == null ? \",f\" : specifier);\n switch (specifier.type) {\n case \"s\": {\n var value = Math.max(Math.abs(start), Math.abs(stop));\n if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) specifier.precision = precision;\n return formatPrefix(specifier, value);\n }\n case \"\":\n case \"e\":\n case \"g\":\n case \"p\":\n case \"r\": {\n if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === \"e\");\n break;\n }\n case \"f\":\n case \"%\": {\n if (specifier.precision == null && !isNaN(precision = precisionFixed(step))) specifier.precision = precision - (specifier.type === \"%\") * 2;\n break;\n }\n }\n return format(specifier);\n}\n","import {ticks, tickIncrement} from \"d3-array\";\nimport continuous, {copy} from \"./continuous.js\";\nimport {initRange} from \"./init.js\";\nimport tickFormat from \"./tickFormat.js\";\n\nexport function linearish(scale) {\n var domain = scale.domain;\n\n scale.ticks = function(count) {\n var d = domain();\n return ticks(d[0], d[d.length - 1], count == null ? 10 : count);\n };\n\n scale.tickFormat = function(count, specifier) {\n var d = domain();\n return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier);\n };\n\n scale.nice = function(count) {\n if (count == null) count = 10;\n\n var d = domain();\n var i0 = 0;\n var i1 = d.length - 1;\n var start = d[i0];\n var stop = d[i1];\n var prestep;\n var step;\n var maxIter = 10;\n\n if (stop < start) {\n step = start, start = stop, stop = step;\n step = i0, i0 = i1, i1 = step;\n }\n \n while (maxIter-- > 0) {\n step = tickIncrement(start, stop, count);\n if (step === prestep) {\n d[i0] = start\n d[i1] = stop\n return domain(d);\n } else if (step > 0) {\n start = Math.floor(start / step) * step;\n stop = Math.ceil(stop / step) * step;\n } else if (step < 0) {\n start = Math.ceil(start * step) / step;\n stop = Math.floor(stop * step) / step;\n } else {\n break;\n }\n prestep = step;\n }\n\n return scale;\n };\n\n return scale;\n}\n\nexport default function linear() {\n var scale = continuous();\n\n scale.copy = function() {\n return copy(scale, linear());\n };\n\n initRange.apply(scale, arguments);\n\n return linearish(scale);\n}\n","import {linearish} from \"./linear.js\";\nimport number from \"./number.js\";\n\nexport default function identity(domain) {\n var unknown;\n\n function scale(x) {\n return x == null || isNaN(x = +x) ? unknown : x;\n }\n\n scale.invert = scale;\n\n scale.domain = scale.range = function(_) {\n return arguments.length ? (domain = Array.from(_, number), scale) : domain.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return identity(domain).unknown(unknown);\n };\n\n domain = arguments.length ? Array.from(domain, number) : [0, 1];\n\n return linearish(scale);\n}\n","export default function nice(domain, interval) {\n domain = domain.slice();\n\n var i0 = 0,\n i1 = domain.length - 1,\n x0 = domain[i0],\n x1 = domain[i1],\n t;\n\n if (x1 < x0) {\n t = i0, i0 = i1, i1 = t;\n t = x0, x0 = x1, x1 = t;\n }\n\n domain[i0] = interval.floor(x0);\n domain[i1] = interval.ceil(x1);\n return domain;\n}\n","import {ticks} from \"d3-array\";\nimport {format, formatSpecifier} from \"d3-format\";\nimport nice from \"./nice.js\";\nimport {copy, transformer} from \"./continuous.js\";\nimport {initRange} from \"./init.js\";\n\nfunction transformLog(x) {\n return Math.log(x);\n}\n\nfunction transformExp(x) {\n return Math.exp(x);\n}\n\nfunction transformLogn(x) {\n return -Math.log(-x);\n}\n\nfunction transformExpn(x) {\n return -Math.exp(-x);\n}\n\nfunction pow10(x) {\n return isFinite(x) ? +(\"1e\" + x) : x < 0 ? 0 : x;\n}\n\nfunction powp(base) {\n return base === 10 ? pow10\n : base === Math.E ? Math.exp\n : x => Math.pow(base, x);\n}\n\nfunction logp(base) {\n return base === Math.E ? Math.log\n : base === 10 && Math.log10\n || base === 2 && Math.log2\n || (base = Math.log(base), x => Math.log(x) / base);\n}\n\nfunction reflect(f) {\n return (x, k) => -f(-x, k);\n}\n\nexport function loggish(transform) {\n const scale = transform(transformLog, transformExp);\n const domain = scale.domain;\n let base = 10;\n let logs;\n let pows;\n\n function rescale() {\n logs = logp(base), pows = powp(base);\n if (domain()[0] < 0) {\n logs = reflect(logs), pows = reflect(pows);\n transform(transformLogn, transformExpn);\n } else {\n transform(transformLog, transformExp);\n }\n return scale;\n }\n\n scale.base = function(_) {\n return arguments.length ? (base = +_, rescale()) : base;\n };\n\n scale.domain = function(_) {\n return arguments.length ? (domain(_), rescale()) : domain();\n };\n\n scale.ticks = count => {\n const d = domain();\n let u = d[0];\n let v = d[d.length - 1];\n const r = v < u;\n\n if (r) ([u, v] = [v, u]);\n\n let i = logs(u);\n let j = logs(v);\n let k;\n let t;\n const n = count == null ? 10 : +count;\n let z = [];\n\n if (!(base % 1) && j - i < n) {\n i = Math.floor(i), j = Math.ceil(j);\n if (u > 0) for (; i <= j; ++i) {\n for (k = 1; k < base; ++k) {\n t = i < 0 ? k / pows(-i) : k * pows(i);\n if (t < u) continue;\n if (t > v) break;\n z.push(t);\n }\n } else for (; i <= j; ++i) {\n for (k = base - 1; k >= 1; --k) {\n t = i > 0 ? k / pows(-i) : k * pows(i);\n if (t < u) continue;\n if (t > v) break;\n z.push(t);\n }\n }\n if (z.length * 2 < n) z = ticks(u, v, n);\n } else {\n z = ticks(i, j, Math.min(j - i, n)).map(pows);\n }\n return r ? z.reverse() : z;\n };\n\n scale.tickFormat = (count, specifier) => {\n if (count == null) count = 10;\n if (specifier == null) specifier = base === 10 ? \"s\" : \",\";\n if (typeof specifier !== \"function\") {\n if (!(base % 1) && (specifier = formatSpecifier(specifier)).precision == null) specifier.trim = true;\n specifier = format(specifier);\n }\n if (count === Infinity) return specifier;\n const k = Math.max(1, base * count / scale.ticks().length); // TODO fast estimate?\n return d => {\n let i = d / pows(Math.round(logs(d)));\n if (i * base < base - 0.5) i *= base;\n return i <= k ? specifier(d) : \"\";\n };\n };\n\n scale.nice = () => {\n return domain(nice(domain(), {\n floor: x => pows(Math.floor(logs(x))),\n ceil: x => pows(Math.ceil(logs(x)))\n }));\n };\n\n return scale;\n}\n\nexport default function log() {\n const scale = loggish(transformer()).domain([1, 10]);\n scale.copy = () => copy(scale, log()).base(scale.base());\n initRange.apply(scale, arguments);\n return scale;\n}\n","import {linearish} from \"./linear.js\";\nimport {copy, transformer} from \"./continuous.js\";\nimport {initRange} from \"./init.js\";\n\nfunction transformSymlog(c) {\n return function(x) {\n return Math.sign(x) * Math.log1p(Math.abs(x / c));\n };\n}\n\nfunction transformSymexp(c) {\n return function(x) {\n return Math.sign(x) * Math.expm1(Math.abs(x)) * c;\n };\n}\n\nexport function symlogish(transform) {\n var c = 1, scale = transform(transformSymlog(c), transformSymexp(c));\n\n scale.constant = function(_) {\n return arguments.length ? transform(transformSymlog(c = +_), transformSymexp(c)) : c;\n };\n\n return linearish(scale);\n}\n\nexport default function symlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, symlog()).constant(scale.constant());\n };\n\n return initRange.apply(scale, arguments);\n}\n","import {linearish} from \"./linear.js\";\nimport {copy, identity, transformer} from \"./continuous.js\";\nimport {initRange} from \"./init.js\";\n\nfunction transformPow(exponent) {\n return function(x) {\n return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent);\n };\n}\n\nfunction transformSqrt(x) {\n return x < 0 ? -Math.sqrt(-x) : Math.sqrt(x);\n}\n\nfunction transformSquare(x) {\n return x < 0 ? -x * x : x * x;\n}\n\nexport function powish(transform) {\n var scale = transform(identity, identity),\n exponent = 1;\n\n function rescale() {\n return exponent === 1 ? transform(identity, identity)\n : exponent === 0.5 ? transform(transformSqrt, transformSquare)\n : transform(transformPow(exponent), transformPow(1 / exponent));\n }\n\n scale.exponent = function(_) {\n return arguments.length ? (exponent = +_, rescale()) : exponent;\n };\n\n return linearish(scale);\n}\n\nexport default function pow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, pow()).exponent(scale.exponent());\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n\nexport function sqrt() {\n return pow.apply(null, arguments).exponent(0.5);\n}\n","import continuous from \"./continuous.js\";\nimport {initRange} from \"./init.js\";\nimport {linearish} from \"./linear.js\";\nimport number from \"./number.js\";\n\nfunction square(x) {\n return Math.sign(x) * x * x;\n}\n\nfunction unsquare(x) {\n return Math.sign(x) * Math.sqrt(Math.abs(x));\n}\n\nexport default function radial() {\n var squared = continuous(),\n range = [0, 1],\n round = false,\n unknown;\n\n function scale(x) {\n var y = unsquare(squared(x));\n return isNaN(y) ? unknown : round ? Math.round(y) : y;\n }\n\n scale.invert = function(y) {\n return squared.invert(square(y));\n };\n\n scale.domain = function(_) {\n return arguments.length ? (squared.domain(_), scale) : squared.domain();\n };\n\n scale.range = function(_) {\n return arguments.length ? (squared.range((range = Array.from(_, number)).map(square)), scale) : range.slice();\n };\n\n scale.rangeRound = function(_) {\n return scale.range(_).round(true);\n };\n\n scale.round = function(_) {\n return arguments.length ? (round = !!_, scale) : round;\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (squared.clamp(_), scale) : squared.clamp();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return radial(squared.domain(), range)\n .round(round)\n .clamp(squared.clamp())\n .unknown(unknown);\n };\n\n initRange.apply(scale, arguments);\n\n return linearish(scale);\n}\n","import {ascending, bisect, quantileSorted as threshold} from \"d3-array\";\nimport {initRange} from \"./init.js\";\n\nexport default function quantile() {\n var domain = [],\n range = [],\n thresholds = [],\n unknown;\n\n function rescale() {\n var i = 0, n = Math.max(1, range.length);\n thresholds = new Array(n - 1);\n while (++i < n) thresholds[i - 1] = threshold(domain, i / n);\n return scale;\n }\n\n function scale(x) {\n return x == null || isNaN(x = +x) ? unknown : range[bisect(thresholds, x)];\n }\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return i < 0 ? [NaN, NaN] : [\n i > 0 ? thresholds[i - 1] : domain[0],\n i < thresholds.length ? thresholds[i] : domain[domain.length - 1]\n ];\n };\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [];\n for (let d of _) if (d != null && !isNaN(d = +d)) domain.push(d);\n domain.sort(ascending);\n return rescale();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = Array.from(_), rescale()) : range.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.quantiles = function() {\n return thresholds.slice();\n };\n\n scale.copy = function() {\n return quantile()\n .domain(domain)\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(scale, arguments);\n}\n","import {bisect} from \"d3-array\";\nimport {linearish} from \"./linear.js\";\nimport {initRange} from \"./init.js\";\n\nexport default function quantize() {\n var x0 = 0,\n x1 = 1,\n n = 1,\n domain = [0.5],\n range = [0, 1],\n unknown;\n\n function scale(x) {\n return x != null && x <= x ? range[bisect(domain, x, 0, n)] : unknown;\n }\n\n function rescale() {\n var i = -1;\n domain = new Array(n);\n while (++i < n) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1);\n return scale;\n }\n\n scale.domain = function(_) {\n return arguments.length ? ([x0, x1] = _, x0 = +x0, x1 = +x1, rescale()) : [x0, x1];\n };\n\n scale.range = function(_) {\n return arguments.length ? (n = (range = Array.from(_)).length - 1, rescale()) : range.slice();\n };\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return i < 0 ? [NaN, NaN]\n : i < 1 ? [x0, domain[0]]\n : i >= n ? [domain[n - 1], x1]\n : [domain[i - 1], domain[i]];\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : scale;\n };\n\n scale.thresholds = function() {\n return domain.slice();\n };\n\n scale.copy = function() {\n return quantize()\n .domain([x0, x1])\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(linearish(scale), arguments);\n}\n","import {bisect} from \"d3-array\";\nimport {initRange} from \"./init.js\";\n\nexport default function threshold() {\n var domain = [0.5],\n range = [0, 1],\n unknown,\n n = 1;\n\n function scale(x) {\n return x != null && x <= x ? range[bisect(domain, x, 0, n)] : unknown;\n }\n\n scale.domain = function(_) {\n return arguments.length ? (domain = Array.from(_), n = Math.min(domain.length, range.length - 1), scale) : domain.slice();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = Array.from(_), n = Math.min(domain.length, range.length - 1), scale) : range.slice();\n };\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return [domain[i - 1], domain[i]];\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return threshold()\n .domain(domain)\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(scale, arguments);\n}\n","const t0 = new Date, t1 = new Date;\n\nexport function timeInterval(floori, offseti, count, field) {\n\n function interval(date) {\n return floori(date = arguments.length === 0 ? new Date : new Date(+date)), date;\n }\n\n interval.floor = (date) => {\n return floori(date = new Date(+date)), date;\n };\n\n interval.ceil = (date) => {\n return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date;\n };\n\n interval.round = (date) => {\n const d0 = interval(date), d1 = interval.ceil(date);\n return date - d0 < d1 - date ? d0 : d1;\n };\n\n interval.offset = (date, step) => {\n return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date;\n };\n\n interval.range = (start, stop, step) => {\n const range = [];\n start = interval.ceil(start);\n step = step == null ? 1 : Math.floor(step);\n if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date\n let previous;\n do range.push(previous = new Date(+start)), offseti(start, step), floori(start);\n while (previous < start && start < stop);\n return range;\n };\n\n interval.filter = (test) => {\n return timeInterval((date) => {\n if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1);\n }, (date, step) => {\n if (date >= date) {\n if (step < 0) while (++step <= 0) {\n while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty\n } else while (--step >= 0) {\n while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty\n }\n }\n });\n };\n\n if (count) {\n interval.count = (start, end) => {\n t0.setTime(+start), t1.setTime(+end);\n floori(t0), floori(t1);\n return Math.floor(count(t0, t1));\n };\n\n interval.every = (step) => {\n step = Math.floor(step);\n return !isFinite(step) || !(step > 0) ? null\n : !(step > 1) ? interval\n : interval.filter(field\n ? (d) => field(d) % step === 0\n : (d) => interval.count(0, d) % step === 0);\n };\n }\n\n return interval;\n}\n","import {timeInterval} from \"./interval.js\";\n\nexport const millisecond = timeInterval(() => {\n // noop\n}, (date, step) => {\n date.setTime(+date + step);\n}, (start, end) => {\n return end - start;\n});\n\n// An optimized implementation for this simple case.\nmillisecond.every = (k) => {\n k = Math.floor(k);\n if (!isFinite(k) || !(k > 0)) return null;\n if (!(k > 1)) return millisecond;\n return timeInterval((date) => {\n date.setTime(Math.floor(date / k) * k);\n }, (date, step) => {\n date.setTime(+date + step * k);\n }, (start, end) => {\n return (end - start) / k;\n });\n};\n\nexport const milliseconds = millisecond.range;\n","export const durationSecond = 1000;\nexport const durationMinute = durationSecond * 60;\nexport const durationHour = durationMinute * 60;\nexport const durationDay = durationHour * 24;\nexport const durationWeek = durationDay * 7;\nexport const durationMonth = durationDay * 30;\nexport const durationYear = durationDay * 365;\n","import {timeInterval} from \"./interval.js\";\nimport {durationSecond} from \"./duration.js\";\n\nexport const second = timeInterval((date) => {\n date.setTime(date - date.getMilliseconds());\n}, (date, step) => {\n date.setTime(+date + step * durationSecond);\n}, (start, end) => {\n return (end - start) / durationSecond;\n}, (date) => {\n return date.getUTCSeconds();\n});\n\nexport const seconds = second.range;\n","import {timeInterval} from \"./interval.js\";\nimport {durationMinute, durationSecond} from \"./duration.js\";\n\nexport const timeMinute = timeInterval((date) => {\n date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond);\n}, (date, step) => {\n date.setTime(+date + step * durationMinute);\n}, (start, end) => {\n return (end - start) / durationMinute;\n}, (date) => {\n return date.getMinutes();\n});\n\nexport const timeMinutes = timeMinute.range;\n\nexport const utcMinute = timeInterval((date) => {\n date.setUTCSeconds(0, 0);\n}, (date, step) => {\n date.setTime(+date + step * durationMinute);\n}, (start, end) => {\n return (end - start) / durationMinute;\n}, (date) => {\n return date.getUTCMinutes();\n});\n\nexport const utcMinutes = utcMinute.range;\n","import {timeInterval} from \"./interval.js\";\nimport {durationHour, durationMinute, durationSecond} from \"./duration.js\";\n\nexport const timeHour = timeInterval((date) => {\n date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond - date.getMinutes() * durationMinute);\n}, (date, step) => {\n date.setTime(+date + step * durationHour);\n}, (start, end) => {\n return (end - start) / durationHour;\n}, (date) => {\n return date.getHours();\n});\n\nexport const timeHours = timeHour.range;\n\nexport const utcHour = timeInterval((date) => {\n date.setUTCMinutes(0, 0, 0);\n}, (date, step) => {\n date.setTime(+date + step * durationHour);\n}, (start, end) => {\n return (end - start) / durationHour;\n}, (date) => {\n return date.getUTCHours();\n});\n\nexport const utcHours = utcHour.range;\n","import {timeInterval} from \"./interval.js\";\nimport {durationDay, durationMinute} from \"./duration.js\";\n\nexport const timeDay = timeInterval(\n date => date.setHours(0, 0, 0, 0),\n (date, step) => date.setDate(date.getDate() + step),\n (start, end) => (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationDay,\n date => date.getDate() - 1\n);\n\nexport const timeDays = timeDay.range;\n\nexport const utcDay = timeInterval((date) => {\n date.setUTCHours(0, 0, 0, 0);\n}, (date, step) => {\n date.setUTCDate(date.getUTCDate() + step);\n}, (start, end) => {\n return (end - start) / durationDay;\n}, (date) => {\n return date.getUTCDate() - 1;\n});\n\nexport const utcDays = utcDay.range;\n\nexport const unixDay = timeInterval((date) => {\n date.setUTCHours(0, 0, 0, 0);\n}, (date, step) => {\n date.setUTCDate(date.getUTCDate() + step);\n}, (start, end) => {\n return (end - start) / durationDay;\n}, (date) => {\n return Math.floor(date / durationDay);\n});\n\nexport const unixDays = unixDay.range;\n","import {timeInterval} from \"./interval.js\";\nimport {durationMinute, durationWeek} from \"./duration.js\";\n\nfunction timeWeekday(i) {\n return timeInterval((date) => {\n date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);\n date.setHours(0, 0, 0, 0);\n }, (date, step) => {\n date.setDate(date.getDate() + step * 7);\n }, (start, end) => {\n return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationWeek;\n });\n}\n\nexport const timeSunday = timeWeekday(0);\nexport const timeMonday = timeWeekday(1);\nexport const timeTuesday = timeWeekday(2);\nexport const timeWednesday = timeWeekday(3);\nexport const timeThursday = timeWeekday(4);\nexport const timeFriday = timeWeekday(5);\nexport const timeSaturday = timeWeekday(6);\n\nexport const timeSundays = timeSunday.range;\nexport const timeMondays = timeMonday.range;\nexport const timeTuesdays = timeTuesday.range;\nexport const timeWednesdays = timeWednesday.range;\nexport const timeThursdays = timeThursday.range;\nexport const timeFridays = timeFriday.range;\nexport const timeSaturdays = timeSaturday.range;\n\nfunction utcWeekday(i) {\n return timeInterval((date) => {\n date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);\n date.setUTCHours(0, 0, 0, 0);\n }, (date, step) => {\n date.setUTCDate(date.getUTCDate() + step * 7);\n }, (start, end) => {\n return (end - start) / durationWeek;\n });\n}\n\nexport const utcSunday = utcWeekday(0);\nexport const utcMonday = utcWeekday(1);\nexport const utcTuesday = utcWeekday(2);\nexport const utcWednesday = utcWeekday(3);\nexport const utcThursday = utcWeekday(4);\nexport const utcFriday = utcWeekday(5);\nexport const utcSaturday = utcWeekday(6);\n\nexport const utcSundays = utcSunday.range;\nexport const utcMondays = utcMonday.range;\nexport const utcTuesdays = utcTuesday.range;\nexport const utcWednesdays = utcWednesday.range;\nexport const utcThursdays = utcThursday.range;\nexport const utcFridays = utcFriday.range;\nexport const utcSaturdays = utcSaturday.range;\n","import {timeInterval} from \"./interval.js\";\n\nexport const timeMonth = timeInterval((date) => {\n date.setDate(1);\n date.setHours(0, 0, 0, 0);\n}, (date, step) => {\n date.setMonth(date.getMonth() + step);\n}, (start, end) => {\n return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;\n}, (date) => {\n return date.getMonth();\n});\n\nexport const timeMonths = timeMonth.range;\n\nexport const utcMonth = timeInterval((date) => {\n date.setUTCDate(1);\n date.setUTCHours(0, 0, 0, 0);\n}, (date, step) => {\n date.setUTCMonth(date.getUTCMonth() + step);\n}, (start, end) => {\n return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;\n}, (date) => {\n return date.getUTCMonth();\n});\n\nexport const utcMonths = utcMonth.range;\n","import {timeInterval} from \"./interval.js\";\n\nexport const timeYear = timeInterval((date) => {\n date.setMonth(0, 1);\n date.setHours(0, 0, 0, 0);\n}, (date, step) => {\n date.setFullYear(date.getFullYear() + step);\n}, (start, end) => {\n return end.getFullYear() - start.getFullYear();\n}, (date) => {\n return date.getFullYear();\n});\n\n// An optimized implementation for this simple case.\ntimeYear.every = (k) => {\n return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : timeInterval((date) => {\n date.setFullYear(Math.floor(date.getFullYear() / k) * k);\n date.setMonth(0, 1);\n date.setHours(0, 0, 0, 0);\n }, (date, step) => {\n date.setFullYear(date.getFullYear() + step * k);\n });\n};\n\nexport const timeYears = timeYear.range;\n\nexport const utcYear = timeInterval((date) => {\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n}, (date, step) => {\n date.setUTCFullYear(date.getUTCFullYear() + step);\n}, (start, end) => {\n return end.getUTCFullYear() - start.getUTCFullYear();\n}, (date) => {\n return date.getUTCFullYear();\n});\n\n// An optimized implementation for this simple case.\nutcYear.every = (k) => {\n return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : timeInterval((date) => {\n date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k);\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n }, (date, step) => {\n date.setUTCFullYear(date.getUTCFullYear() + step * k);\n });\n};\n\nexport const utcYears = utcYear.range;\n","import {bisector, tickStep} from \"d3-array\";\nimport {durationDay, durationHour, durationMinute, durationMonth, durationSecond, durationWeek, durationYear} from \"./duration.js\";\nimport {millisecond} from \"./millisecond.js\";\nimport {second} from \"./second.js\";\nimport {timeMinute, utcMinute} from \"./minute.js\";\nimport {timeHour, utcHour} from \"./hour.js\";\nimport {timeDay, unixDay} from \"./day.js\";\nimport {timeSunday, utcSunday} from \"./week.js\";\nimport {timeMonth, utcMonth} from \"./month.js\";\nimport {timeYear, utcYear} from \"./year.js\";\n\nfunction ticker(year, month, week, day, hour, minute) {\n\n const tickIntervals = [\n [second, 1, durationSecond],\n [second, 5, 5 * durationSecond],\n [second, 15, 15 * durationSecond],\n [second, 30, 30 * durationSecond],\n [minute, 1, durationMinute],\n [minute, 5, 5 * durationMinute],\n [minute, 15, 15 * durationMinute],\n [minute, 30, 30 * durationMinute],\n [ hour, 1, durationHour ],\n [ hour, 3, 3 * durationHour ],\n [ hour, 6, 6 * durationHour ],\n [ hour, 12, 12 * durationHour ],\n [ day, 1, durationDay ],\n [ day, 2, 2 * durationDay ],\n [ week, 1, durationWeek ],\n [ month, 1, durationMonth ],\n [ month, 3, 3 * durationMonth ],\n [ year, 1, durationYear ]\n ];\n\n function ticks(start, stop, count) {\n const reverse = stop < start;\n if (reverse) [start, stop] = [stop, start];\n const interval = count && typeof count.range === \"function\" ? count : tickInterval(start, stop, count);\n const ticks = interval ? interval.range(start, +stop + 1) : []; // inclusive stop\n return reverse ? ticks.reverse() : ticks;\n }\n\n function tickInterval(start, stop, count) {\n const target = Math.abs(stop - start) / count;\n const i = bisector(([,, step]) => step).right(tickIntervals, target);\n if (i === tickIntervals.length) return year.every(tickStep(start / durationYear, stop / durationYear, count));\n if (i === 0) return millisecond.every(Math.max(tickStep(start, stop, count), 1));\n const [t, step] = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i];\n return t.every(step);\n }\n\n return [ticks, tickInterval];\n}\n\nconst [utcTicks, utcTickInterval] = ticker(utcYear, utcMonth, utcSunday, unixDay, utcHour, utcMinute);\nconst [timeTicks, timeTickInterval] = ticker(timeYear, timeMonth, timeSunday, timeDay, timeHour, timeMinute);\n\nexport {utcTicks, utcTickInterval, timeTicks, timeTickInterval};\n","import {\n timeDay,\n timeSunday,\n timeMonday,\n timeThursday,\n timeYear,\n utcDay,\n utcSunday,\n utcMonday,\n utcThursday,\n utcYear\n} from \"d3-time\";\n\nfunction localDate(d) {\n if (0 <= d.y && d.y < 100) {\n var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);\n date.setFullYear(d.y);\n return date;\n }\n return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);\n}\n\nfunction utcDate(d) {\n if (0 <= d.y && d.y < 100) {\n var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));\n date.setUTCFullYear(d.y);\n return date;\n }\n return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));\n}\n\nfunction newDate(y, m, d) {\n return {y: y, m: m, d: d, H: 0, M: 0, S: 0, L: 0};\n}\n\nexport default function formatLocale(locale) {\n var locale_dateTime = locale.dateTime,\n locale_date = locale.date,\n locale_time = locale.time,\n locale_periods = locale.periods,\n locale_weekdays = locale.days,\n locale_shortWeekdays = locale.shortDays,\n locale_months = locale.months,\n locale_shortMonths = locale.shortMonths;\n\n var periodRe = formatRe(locale_periods),\n periodLookup = formatLookup(locale_periods),\n weekdayRe = formatRe(locale_weekdays),\n weekdayLookup = formatLookup(locale_weekdays),\n shortWeekdayRe = formatRe(locale_shortWeekdays),\n shortWeekdayLookup = formatLookup(locale_shortWeekdays),\n monthRe = formatRe(locale_months),\n monthLookup = formatLookup(locale_months),\n shortMonthRe = formatRe(locale_shortMonths),\n shortMonthLookup = formatLookup(locale_shortMonths);\n\n var formats = {\n \"a\": formatShortWeekday,\n \"A\": formatWeekday,\n \"b\": formatShortMonth,\n \"B\": formatMonth,\n \"c\": null,\n \"d\": formatDayOfMonth,\n \"e\": formatDayOfMonth,\n \"f\": formatMicroseconds,\n \"g\": formatYearISO,\n \"G\": formatFullYearISO,\n \"H\": formatHour24,\n \"I\": formatHour12,\n \"j\": formatDayOfYear,\n \"L\": formatMilliseconds,\n \"m\": formatMonthNumber,\n \"M\": formatMinutes,\n \"p\": formatPeriod,\n \"q\": formatQuarter,\n \"Q\": formatUnixTimestamp,\n \"s\": formatUnixTimestampSeconds,\n \"S\": formatSeconds,\n \"u\": formatWeekdayNumberMonday,\n \"U\": formatWeekNumberSunday,\n \"V\": formatWeekNumberISO,\n \"w\": formatWeekdayNumberSunday,\n \"W\": formatWeekNumberMonday,\n \"x\": null,\n \"X\": null,\n \"y\": formatYear,\n \"Y\": formatFullYear,\n \"Z\": formatZone,\n \"%\": formatLiteralPercent\n };\n\n var utcFormats = {\n \"a\": formatUTCShortWeekday,\n \"A\": formatUTCWeekday,\n \"b\": formatUTCShortMonth,\n \"B\": formatUTCMonth,\n \"c\": null,\n \"d\": formatUTCDayOfMonth,\n \"e\": formatUTCDayOfMonth,\n \"f\": formatUTCMicroseconds,\n \"g\": formatUTCYearISO,\n \"G\": formatUTCFullYearISO,\n \"H\": formatUTCHour24,\n \"I\": formatUTCHour12,\n \"j\": formatUTCDayOfYear,\n \"L\": formatUTCMilliseconds,\n \"m\": formatUTCMonthNumber,\n \"M\": formatUTCMinutes,\n \"p\": formatUTCPeriod,\n \"q\": formatUTCQuarter,\n \"Q\": formatUnixTimestamp,\n \"s\": formatUnixTimestampSeconds,\n \"S\": formatUTCSeconds,\n \"u\": formatUTCWeekdayNumberMonday,\n \"U\": formatUTCWeekNumberSunday,\n \"V\": formatUTCWeekNumberISO,\n \"w\": formatUTCWeekdayNumberSunday,\n \"W\": formatUTCWeekNumberMonday,\n \"x\": null,\n \"X\": null,\n \"y\": formatUTCYear,\n \"Y\": formatUTCFullYear,\n \"Z\": formatUTCZone,\n \"%\": formatLiteralPercent\n };\n\n var parses = {\n \"a\": parseShortWeekday,\n \"A\": parseWeekday,\n \"b\": parseShortMonth,\n \"B\": parseMonth,\n \"c\": parseLocaleDateTime,\n \"d\": parseDayOfMonth,\n \"e\": parseDayOfMonth,\n \"f\": parseMicroseconds,\n \"g\": parseYear,\n \"G\": parseFullYear,\n \"H\": parseHour24,\n \"I\": parseHour24,\n \"j\": parseDayOfYear,\n \"L\": parseMilliseconds,\n \"m\": parseMonthNumber,\n \"M\": parseMinutes,\n \"p\": parsePeriod,\n \"q\": parseQuarter,\n \"Q\": parseUnixTimestamp,\n \"s\": parseUnixTimestampSeconds,\n \"S\": parseSeconds,\n \"u\": parseWeekdayNumberMonday,\n \"U\": parseWeekNumberSunday,\n \"V\": parseWeekNumberISO,\n \"w\": parseWeekdayNumberSunday,\n \"W\": parseWeekNumberMonday,\n \"x\": parseLocaleDate,\n \"X\": parseLocaleTime,\n \"y\": parseYear,\n \"Y\": parseFullYear,\n \"Z\": parseZone,\n \"%\": parseLiteralPercent\n };\n\n // These recursive directive definitions must be deferred.\n formats.x = newFormat(locale_date, formats);\n formats.X = newFormat(locale_time, formats);\n formats.c = newFormat(locale_dateTime, formats);\n utcFormats.x = newFormat(locale_date, utcFormats);\n utcFormats.X = newFormat(locale_time, utcFormats);\n utcFormats.c = newFormat(locale_dateTime, utcFormats);\n\n function newFormat(specifier, formats) {\n return function(date) {\n var string = [],\n i = -1,\n j = 0,\n n = specifier.length,\n c,\n pad,\n format;\n\n if (!(date instanceof Date)) date = new Date(+date);\n\n while (++i < n) {\n if (specifier.charCodeAt(i) === 37) {\n string.push(specifier.slice(j, i));\n if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i);\n else pad = c === \"e\" ? \" \" : \"0\";\n if (format = formats[c]) c = format(date, pad);\n string.push(c);\n j = i + 1;\n }\n }\n\n string.push(specifier.slice(j, i));\n return string.join(\"\");\n };\n }\n\n function newParse(specifier, Z) {\n return function(string) {\n var d = newDate(1900, undefined, 1),\n i = parseSpecifier(d, specifier, string += \"\", 0),\n week, day;\n if (i != string.length) return null;\n\n // If a UNIX timestamp is specified, return it.\n if (\"Q\" in d) return new Date(d.Q);\n if (\"s\" in d) return new Date(d.s * 1000 + (\"L\" in d ? d.L : 0));\n\n // If this is utcParse, never use the local timezone.\n if (Z && !(\"Z\" in d)) d.Z = 0;\n\n // The am-pm flag is 0 for AM, and 1 for PM.\n if (\"p\" in d) d.H = d.H % 12 + d.p * 12;\n\n // If the month was not specified, inherit from the quarter.\n if (d.m === undefined) d.m = \"q\" in d ? d.q : 0;\n\n // Convert day-of-week and week-of-year to day-of-year.\n if (\"V\" in d) {\n if (d.V < 1 || d.V > 53) return null;\n if (!(\"w\" in d)) d.w = 1;\n if (\"Z\" in d) {\n week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();\n week = day > 4 || day === 0 ? utcMonday.ceil(week) : utcMonday(week);\n week = utcDay.offset(week, (d.V - 1) * 7);\n d.y = week.getUTCFullYear();\n d.m = week.getUTCMonth();\n d.d = week.getUTCDate() + (d.w + 6) % 7;\n } else {\n week = localDate(newDate(d.y, 0, 1)), day = week.getDay();\n week = day > 4 || day === 0 ? timeMonday.ceil(week) : timeMonday(week);\n week = timeDay.offset(week, (d.V - 1) * 7);\n d.y = week.getFullYear();\n d.m = week.getMonth();\n d.d = week.getDate() + (d.w + 6) % 7;\n }\n } else if (\"W\" in d || \"U\" in d) {\n if (!(\"w\" in d)) d.w = \"u\" in d ? d.u % 7 : \"W\" in d ? 1 : 0;\n day = \"Z\" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();\n d.m = 0;\n d.d = \"W\" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;\n }\n\n // If a time zone is specified, all fields are interpreted as UTC and then\n // offset according to the specified time zone.\n if (\"Z\" in d) {\n d.H += d.Z / 100 | 0;\n d.M += d.Z % 100;\n return utcDate(d);\n }\n\n // Otherwise, all fields are in local time.\n return localDate(d);\n };\n }\n\n function parseSpecifier(d, specifier, string, j) {\n var i = 0,\n n = specifier.length,\n m = string.length,\n c,\n parse;\n\n while (i < n) {\n if (j >= m) return -1;\n c = specifier.charCodeAt(i++);\n if (c === 37) {\n c = specifier.charAt(i++);\n parse = parses[c in pads ? specifier.charAt(i++) : c];\n if (!parse || ((j = parse(d, string, j)) < 0)) return -1;\n } else if (c != string.charCodeAt(j++)) {\n return -1;\n }\n }\n\n return j;\n }\n\n function parsePeriod(d, string, i) {\n var n = periodRe.exec(string.slice(i));\n return n ? (d.p = periodLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;\n }\n\n function parseShortWeekday(d, string, i) {\n var n = shortWeekdayRe.exec(string.slice(i));\n return n ? (d.w = shortWeekdayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;\n }\n\n function parseWeekday(d, string, i) {\n var n = weekdayRe.exec(string.slice(i));\n return n ? (d.w = weekdayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;\n }\n\n function parseShortMonth(d, string, i) {\n var n = shortMonthRe.exec(string.slice(i));\n return n ? (d.m = shortMonthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;\n }\n\n function parseMonth(d, string, i) {\n var n = monthRe.exec(string.slice(i));\n return n ? (d.m = monthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;\n }\n\n function parseLocaleDateTime(d, string, i) {\n return parseSpecifier(d, locale_dateTime, string, i);\n }\n\n function parseLocaleDate(d, string, i) {\n return parseSpecifier(d, locale_date, string, i);\n }\n\n function parseLocaleTime(d, string, i) {\n return parseSpecifier(d, locale_time, string, i);\n }\n\n function formatShortWeekday(d) {\n return locale_shortWeekdays[d.getDay()];\n }\n\n function formatWeekday(d) {\n return locale_weekdays[d.getDay()];\n }\n\n function formatShortMonth(d) {\n return locale_shortMonths[d.getMonth()];\n }\n\n function formatMonth(d) {\n return locale_months[d.getMonth()];\n }\n\n function formatPeriod(d) {\n return locale_periods[+(d.getHours() >= 12)];\n }\n\n function formatQuarter(d) {\n return 1 + ~~(d.getMonth() / 3);\n }\n\n function formatUTCShortWeekday(d) {\n return locale_shortWeekdays[d.getUTCDay()];\n }\n\n function formatUTCWeekday(d) {\n return locale_weekdays[d.getUTCDay()];\n }\n\n function formatUTCShortMonth(d) {\n return locale_shortMonths[d.getUTCMonth()];\n }\n\n function formatUTCMonth(d) {\n return locale_months[d.getUTCMonth()];\n }\n\n function formatUTCPeriod(d) {\n return locale_periods[+(d.getUTCHours() >= 12)];\n }\n\n function formatUTCQuarter(d) {\n return 1 + ~~(d.getUTCMonth() / 3);\n }\n\n return {\n format: function(specifier) {\n var f = newFormat(specifier += \"\", formats);\n f.toString = function() { return specifier; };\n return f;\n },\n parse: function(specifier) {\n var p = newParse(specifier += \"\", false);\n p.toString = function() { return specifier; };\n return p;\n },\n utcFormat: function(specifier) {\n var f = newFormat(specifier += \"\", utcFormats);\n f.toString = function() { return specifier; };\n return f;\n },\n utcParse: function(specifier) {\n var p = newParse(specifier += \"\", true);\n p.toString = function() { return specifier; };\n return p;\n }\n };\n}\n\nvar pads = {\"-\": \"\", \"_\": \" \", \"0\": \"0\"},\n numberRe = /^\\s*\\d+/, // note: ignores next directive\n percentRe = /^%/,\n requoteRe = /[\\\\^$*+?|[\\]().{}]/g;\n\nfunction pad(value, fill, width) {\n var sign = value < 0 ? \"-\" : \"\",\n string = (sign ? -value : value) + \"\",\n length = string.length;\n return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);\n}\n\nfunction requote(s) {\n return s.replace(requoteRe, \"\\\\$&\");\n}\n\nfunction formatRe(names) {\n return new RegExp(\"^(?:\" + names.map(requote).join(\"|\") + \")\", \"i\");\n}\n\nfunction formatLookup(names) {\n return new Map(names.map((name, i) => [name.toLowerCase(), i]));\n}\n\nfunction parseWeekdayNumberSunday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.w = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekdayNumberMonday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.u = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberSunday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.U = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberISO(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.V = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberMonday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.W = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseFullYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 4));\n return n ? (d.y = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;\n}\n\nfunction parseZone(d, string, i) {\n var n = /^(Z)|([+-]\\d\\d)(?::?(\\d\\d))?/.exec(string.slice(i, i + 6));\n return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || \"00\")), i + n[0].length) : -1;\n}\n\nfunction parseQuarter(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1;\n}\n\nfunction parseMonthNumber(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.m = n[0] - 1, i + n[0].length) : -1;\n}\n\nfunction parseDayOfMonth(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.d = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseDayOfYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 3));\n return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseHour24(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.H = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMinutes(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.M = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseSeconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.S = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMilliseconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 3));\n return n ? (d.L = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMicroseconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 6));\n return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1;\n}\n\nfunction parseLiteralPercent(d, string, i) {\n var n = percentRe.exec(string.slice(i, i + 1));\n return n ? i + n[0].length : -1;\n}\n\nfunction parseUnixTimestamp(d, string, i) {\n var n = numberRe.exec(string.slice(i));\n return n ? (d.Q = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseUnixTimestampSeconds(d, string, i) {\n var n = numberRe.exec(string.slice(i));\n return n ? (d.s = +n[0], i + n[0].length) : -1;\n}\n\nfunction formatDayOfMonth(d, p) {\n return pad(d.getDate(), p, 2);\n}\n\nfunction formatHour24(d, p) {\n return pad(d.getHours(), p, 2);\n}\n\nfunction formatHour12(d, p) {\n return pad(d.getHours() % 12 || 12, p, 2);\n}\n\nfunction formatDayOfYear(d, p) {\n return pad(1 + timeDay.count(timeYear(d), d), p, 3);\n}\n\nfunction formatMilliseconds(d, p) {\n return pad(d.getMilliseconds(), p, 3);\n}\n\nfunction formatMicroseconds(d, p) {\n return formatMilliseconds(d, p) + \"000\";\n}\n\nfunction formatMonthNumber(d, p) {\n return pad(d.getMonth() + 1, p, 2);\n}\n\nfunction formatMinutes(d, p) {\n return pad(d.getMinutes(), p, 2);\n}\n\nfunction formatSeconds(d, p) {\n return pad(d.getSeconds(), p, 2);\n}\n\nfunction formatWeekdayNumberMonday(d) {\n var day = d.getDay();\n return day === 0 ? 7 : day;\n}\n\nfunction formatWeekNumberSunday(d, p) {\n return pad(timeSunday.count(timeYear(d) - 1, d), p, 2);\n}\n\nfunction dISO(d) {\n var day = d.getDay();\n return (day >= 4 || day === 0) ? timeThursday(d) : timeThursday.ceil(d);\n}\n\nfunction formatWeekNumberISO(d, p) {\n d = dISO(d);\n return pad(timeThursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2);\n}\n\nfunction formatWeekdayNumberSunday(d) {\n return d.getDay();\n}\n\nfunction formatWeekNumberMonday(d, p) {\n return pad(timeMonday.count(timeYear(d) - 1, d), p, 2);\n}\n\nfunction formatYear(d, p) {\n return pad(d.getFullYear() % 100, p, 2);\n}\n\nfunction formatYearISO(d, p) {\n d = dISO(d);\n return pad(d.getFullYear() % 100, p, 2);\n}\n\nfunction formatFullYear(d, p) {\n return pad(d.getFullYear() % 10000, p, 4);\n}\n\nfunction formatFullYearISO(d, p) {\n var day = d.getDay();\n d = (day >= 4 || day === 0) ? timeThursday(d) : timeThursday.ceil(d);\n return pad(d.getFullYear() % 10000, p, 4);\n}\n\nfunction formatZone(d) {\n var z = d.getTimezoneOffset();\n return (z > 0 ? \"-\" : (z *= -1, \"+\"))\n + pad(z / 60 | 0, \"0\", 2)\n + pad(z % 60, \"0\", 2);\n}\n\nfunction formatUTCDayOfMonth(d, p) {\n return pad(d.getUTCDate(), p, 2);\n}\n\nfunction formatUTCHour24(d, p) {\n return pad(d.getUTCHours(), p, 2);\n}\n\nfunction formatUTCHour12(d, p) {\n return pad(d.getUTCHours() % 12 || 12, p, 2);\n}\n\nfunction formatUTCDayOfYear(d, p) {\n return pad(1 + utcDay.count(utcYear(d), d), p, 3);\n}\n\nfunction formatUTCMilliseconds(d, p) {\n return pad(d.getUTCMilliseconds(), p, 3);\n}\n\nfunction formatUTCMicroseconds(d, p) {\n return formatUTCMilliseconds(d, p) + \"000\";\n}\n\nfunction formatUTCMonthNumber(d, p) {\n return pad(d.getUTCMonth() + 1, p, 2);\n}\n\nfunction formatUTCMinutes(d, p) {\n return pad(d.getUTCMinutes(), p, 2);\n}\n\nfunction formatUTCSeconds(d, p) {\n return pad(d.getUTCSeconds(), p, 2);\n}\n\nfunction formatUTCWeekdayNumberMonday(d) {\n var dow = d.getUTCDay();\n return dow === 0 ? 7 : dow;\n}\n\nfunction formatUTCWeekNumberSunday(d, p) {\n return pad(utcSunday.count(utcYear(d) - 1, d), p, 2);\n}\n\nfunction UTCdISO(d) {\n var day = d.getUTCDay();\n return (day >= 4 || day === 0) ? utcThursday(d) : utcThursday.ceil(d);\n}\n\nfunction formatUTCWeekNumberISO(d, p) {\n d = UTCdISO(d);\n return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2);\n}\n\nfunction formatUTCWeekdayNumberSunday(d) {\n return d.getUTCDay();\n}\n\nfunction formatUTCWeekNumberMonday(d, p) {\n return pad(utcMonday.count(utcYear(d) - 1, d), p, 2);\n}\n\nfunction formatUTCYear(d, p) {\n return pad(d.getUTCFullYear() % 100, p, 2);\n}\n\nfunction formatUTCYearISO(d, p) {\n d = UTCdISO(d);\n return pad(d.getUTCFullYear() % 100, p, 2);\n}\n\nfunction formatUTCFullYear(d, p) {\n return pad(d.getUTCFullYear() % 10000, p, 4);\n}\n\nfunction formatUTCFullYearISO(d, p) {\n var day = d.getUTCDay();\n d = (day >= 4 || day === 0) ? utcThursday(d) : utcThursday.ceil(d);\n return pad(d.getUTCFullYear() % 10000, p, 4);\n}\n\nfunction formatUTCZone() {\n return \"+0000\";\n}\n\nfunction formatLiteralPercent() {\n return \"%\";\n}\n\nfunction formatUnixTimestamp(d) {\n return +d;\n}\n\nfunction formatUnixTimestampSeconds(d) {\n return Math.floor(+d / 1000);\n}\n","import formatLocale from \"./locale.js\";\n\nvar locale;\nexport var timeFormat;\nexport var timeParse;\nexport var utcFormat;\nexport var utcParse;\n\ndefaultLocale({\n dateTime: \"%x, %X\",\n date: \"%-m/%-d/%Y\",\n time: \"%-I:%M:%S %p\",\n periods: [\"AM\", \"PM\"],\n days: [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"],\n shortDays: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n months: [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"],\n shortMonths: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"]\n});\n\nexport default function defaultLocale(definition) {\n locale = formatLocale(definition);\n timeFormat = locale.format;\n timeParse = locale.parse;\n utcFormat = locale.utcFormat;\n utcParse = locale.utcParse;\n return locale;\n}\n","import {timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeTicks, timeTickInterval} from \"d3-time\";\nimport {timeFormat} from \"d3-time-format\";\nimport continuous, {copy} from \"./continuous.js\";\nimport {initRange} from \"./init.js\";\nimport nice from \"./nice.js\";\n\nfunction date(t) {\n return new Date(t);\n}\n\nfunction number(t) {\n return t instanceof Date ? +t : +new Date(+t);\n}\n\nexport function calendar(ticks, tickInterval, year, month, week, day, hour, minute, second, format) {\n var scale = continuous(),\n invert = scale.invert,\n domain = scale.domain;\n\n var formatMillisecond = format(\".%L\"),\n formatSecond = format(\":%S\"),\n formatMinute = format(\"%I:%M\"),\n formatHour = format(\"%I %p\"),\n formatDay = format(\"%a %d\"),\n formatWeek = format(\"%b %d\"),\n formatMonth = format(\"%B\"),\n formatYear = format(\"%Y\");\n\n function tickFormat(date) {\n return (second(date) < date ? formatMillisecond\n : minute(date) < date ? formatSecond\n : hour(date) < date ? formatMinute\n : day(date) < date ? formatHour\n : month(date) < date ? (week(date) < date ? formatDay : formatWeek)\n : year(date) < date ? formatMonth\n : formatYear)(date);\n }\n\n scale.invert = function(y) {\n return new Date(invert(y));\n };\n\n scale.domain = function(_) {\n return arguments.length ? domain(Array.from(_, number)) : domain().map(date);\n };\n\n scale.ticks = function(interval) {\n var d = domain();\n return ticks(d[0], d[d.length - 1], interval == null ? 10 : interval);\n };\n\n scale.tickFormat = function(count, specifier) {\n return specifier == null ? tickFormat : format(specifier);\n };\n\n scale.nice = function(interval) {\n var d = domain();\n if (!interval || typeof interval.range !== \"function\") interval = tickInterval(d[0], d[d.length - 1], interval == null ? 10 : interval);\n return interval ? domain(nice(d, interval)) : scale;\n };\n\n scale.copy = function() {\n return copy(scale, calendar(ticks, tickInterval, year, month, week, day, hour, minute, second, format));\n };\n\n return scale;\n}\n\nexport default function time() {\n return initRange.apply(calendar(timeTicks, timeTickInterval, timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeFormat).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]), arguments);\n}\n","import {utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcTicks, utcTickInterval} from \"d3-time\";\nimport {utcFormat} from \"d3-time-format\";\nimport {calendar} from \"./time.js\";\nimport {initRange} from \"./init.js\";\n\nexport default function utcTime() {\n return initRange.apply(calendar(utcTicks, utcTickInterval, utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcFormat).domain([Date.UTC(2000, 0, 1), Date.UTC(2000, 0, 2)]), arguments);\n}\n","import {interpolate, interpolateRound} from \"d3-interpolate\";\nimport {identity} from \"./continuous.js\";\nimport {initInterpolator} from \"./init.js\";\nimport {linearish} from \"./linear.js\";\nimport {loggish} from \"./log.js\";\nimport {symlogish} from \"./symlog.js\";\nimport {powish} from \"./pow.js\";\n\nfunction transformer() {\n var x0 = 0,\n x1 = 1,\n t0,\n t1,\n k10,\n transform,\n interpolator = identity,\n clamp = false,\n unknown;\n\n function scale(x) {\n return x == null || isNaN(x = +x) ? unknown : interpolator(k10 === 0 ? 0.5 : (x = (transform(x) - t0) * k10, clamp ? Math.max(0, Math.min(1, x)) : x));\n }\n\n scale.domain = function(_) {\n return arguments.length ? ([x0, x1] = _, t0 = transform(x0 = +x0), t1 = transform(x1 = +x1), k10 = t0 === t1 ? 0 : 1 / (t1 - t0), scale) : [x0, x1];\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = !!_, scale) : clamp;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n function range(interpolate) {\n return function(_) {\n var r0, r1;\n return arguments.length ? ([r0, r1] = _, interpolator = interpolate(r0, r1), scale) : [interpolator(0), interpolator(1)];\n };\n }\n\n scale.range = range(interpolate);\n\n scale.rangeRound = range(interpolateRound);\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t) {\n transform = t, t0 = t(x0), t1 = t(x1), k10 = t0 === t1 ? 0 : 1 / (t1 - t0);\n return scale;\n };\n}\n\nexport function copy(source, target) {\n return target\n .domain(source.domain())\n .interpolator(source.interpolator())\n .clamp(source.clamp())\n .unknown(source.unknown());\n}\n\nexport default function sequential() {\n var scale = linearish(transformer()(identity));\n\n scale.copy = function() {\n return copy(scale, sequential());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialLog() {\n var scale = loggish(transformer()).domain([1, 10]);\n\n scale.copy = function() {\n return copy(scale, sequentialLog()).base(scale.base());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialSymlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, sequentialSymlog()).constant(scale.constant());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialPow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, sequentialPow()).exponent(scale.exponent());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialSqrt() {\n return sequentialPow.apply(null, arguments).exponent(0.5);\n}\n","import {ascending, bisect, quantile} from \"d3-array\";\nimport {identity} from \"./continuous.js\";\nimport {initInterpolator} from \"./init.js\";\n\nexport default function sequentialQuantile() {\n var domain = [],\n interpolator = identity;\n\n function scale(x) {\n if (x != null && !isNaN(x = +x)) return interpolator((bisect(domain, x, 1) - 1) / (domain.length - 1));\n }\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [];\n for (let d of _) if (d != null && !isNaN(d = +d)) domain.push(d);\n domain.sort(ascending);\n return scale;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.range = function() {\n return domain.map((d, i) => interpolator(i / (domain.length - 1)));\n };\n\n scale.quantiles = function(n) {\n return Array.from({length: n + 1}, (_, i) => quantile(domain, i / n));\n };\n\n scale.copy = function() {\n return sequentialQuantile(interpolator).domain(domain);\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n","import {interpolate, interpolateRound, piecewise} from \"d3-interpolate\";\nimport {identity} from \"./continuous.js\";\nimport {initInterpolator} from \"./init.js\";\nimport {linearish} from \"./linear.js\";\nimport {loggish} from \"./log.js\";\nimport {copy} from \"./sequential.js\";\nimport {symlogish} from \"./symlog.js\";\nimport {powish} from \"./pow.js\";\n\nfunction transformer() {\n var x0 = 0,\n x1 = 0.5,\n x2 = 1,\n s = 1,\n t0,\n t1,\n t2,\n k10,\n k21,\n interpolator = identity,\n transform,\n clamp = false,\n unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : (x = 0.5 + ((x = +transform(x)) - t1) * (s * x < s * t1 ? k10 : k21), interpolator(clamp ? Math.max(0, Math.min(1, x)) : x));\n }\n\n scale.domain = function(_) {\n return arguments.length ? ([x0, x1, x2] = _, t0 = transform(x0 = +x0), t1 = transform(x1 = +x1), t2 = transform(x2 = +x2), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1), s = t1 < t0 ? -1 : 1, scale) : [x0, x1, x2];\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = !!_, scale) : clamp;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n function range(interpolate) {\n return function(_) {\n var r0, r1, r2;\n return arguments.length ? ([r0, r1, r2] = _, interpolator = piecewise(interpolate, [r0, r1, r2]), scale) : [interpolator(0), interpolator(0.5), interpolator(1)];\n };\n }\n\n scale.range = range(interpolate);\n\n scale.rangeRound = range(interpolateRound);\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t) {\n transform = t, t0 = t(x0), t1 = t(x1), t2 = t(x2), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1), s = t1 < t0 ? -1 : 1;\n return scale;\n };\n}\n\nexport default function diverging() {\n var scale = linearish(transformer()(identity));\n\n scale.copy = function() {\n return copy(scale, diverging());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingLog() {\n var scale = loggish(transformer()).domain([0.1, 1, 10]);\n\n scale.copy = function() {\n return copy(scale, divergingLog()).base(scale.base());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingSymlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, divergingSymlog()).constant(scale.constant());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingPow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, divergingPow()).exponent(scale.exponent());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingSqrt() {\n return divergingPow.apply(null, arguments).exponent(0.5);\n}\n","import { createSelector } from 'reselect';\n/**\n * This selector always returns the data with the indexes set by a Brush.\n * Trouble is, that might or might not be what you want.\n *\n * In charts with Brush, you will sometimes want to select the full range of data, and sometimes the one decided by the Brush\n * - even if the Brush is active, the panorama inside the Brush should show the full range of data.\n *\n * So instead of this selector, consider using either selectChartDataAndAlwaysIgnoreIndexes or selectChartDataWithIndexesIfNotInPanorama\n *\n * @param state RechartsRootState\n * @returns data defined on the chart root element, such as BarChart or ScatterChart\n */\nexport var selectChartDataWithIndexes = state => state.chartData;\n\n/**\n * This selector will always return the full range of data, ignoring the indexes set by a Brush.\n * Useful for when you want to render the full range of data, even if a Brush is active.\n * For example: in the Brush panorama, in Legend, in Tooltip.\n */\nexport var selectChartDataAndAlwaysIgnoreIndexes = createSelector([selectChartDataWithIndexes], dataState => {\n var dataEndIndex = dataState.chartData != null ? dataState.chartData.length - 1 : 0;\n return {\n chartData: dataState.chartData,\n computedData: dataState.computedData,\n dataEndIndex,\n dataStartIndex: 0\n };\n});\nexport var selectChartDataWithIndexesIfNotInPanorama = (state, _unused1, _unused2, isPanorama) => {\n if (isPanorama) {\n return selectChartDataAndAlwaysIgnoreIndexes(state);\n }\n return selectChartDataWithIndexes(state);\n};","import { MAX_VALUE_REG, MIN_VALUE_REG } from './ChartUtils';\nimport { isNumber } from './DataUtils';\nimport { isWellBehavedNumber } from './isWellBehavedNumber';\nexport function isWellFormedNumberDomain(v) {\n if (Array.isArray(v) && v.length === 2) {\n var [min, max] = v;\n if (isWellBehavedNumber(min) && isWellBehavedNumber(max)) {\n return true;\n }\n }\n return false;\n}\nexport function extendDomain(providedDomain, boundaryDomain, allowDataOverflow) {\n if (allowDataOverflow) {\n // If the data are allowed to overflow - we're fine with whatever user provided\n return providedDomain;\n }\n /*\n * If the data are not allowed to overflow - we need to extend the domain.\n * Means that effectively the user is allowed to make the domain larger\n * but not smaller.\n */\n return [Math.min(providedDomain[0], boundaryDomain[0]), Math.max(providedDomain[1], boundaryDomain[1])];\n}\n\n/**\n * So Recharts allows users to provide their own domains,\n * but it also places some expectations on what the domain is.\n * We can improve on the typescript typing, but we also need a runtime test\n to observe that the user-provided domain is well-formed,\n * that is: an array with exactly two numbers.\n *\n * This function does not accept data as an argument.\n * This is to enable a performance optimization - if the domain is there,\n * and we know what it is without traversing all the data,\n * then we don't have to traverse all the data!\n *\n * If the user-provided domain is not well-formed,\n * this function will return undefined - in which case we should traverse the data to calculate the real domain.\n *\n * This function is for parsing the numerical domain only.\n *\n * @param userDomain external prop, user provided, before validation. Can have various shapes: array, function, special magical strings inside too.\n * @param allowDataOverflow boolean, provided by users. If true then the data domain wins\n *\n * @return [min, max] domain if it's well-formed; undefined if the domain is invalid\n */\nexport function numericalDomainSpecifiedWithoutRequiringData(userDomain, allowDataOverflow) {\n if (!allowDataOverflow) {\n // Cannot compute data overflow if the data is not provided\n return undefined;\n }\n if (typeof userDomain === 'function') {\n // The user function expects the data to be provided as an argument\n return undefined;\n }\n if (Array.isArray(userDomain) && userDomain.length === 2) {\n var [providedMin, providedMax] = userDomain;\n var finalMin, finalMax;\n if (isWellBehavedNumber(providedMin)) {\n finalMin = providedMin;\n } else if (typeof providedMin === 'function') {\n // The user function expects the data to be provided as an argument\n return undefined;\n }\n if (isWellBehavedNumber(providedMax)) {\n finalMax = providedMax;\n } else if (typeof providedMax === 'function') {\n // The user function expects the data to be provided as an argument\n return undefined;\n }\n var candidate = [finalMin, finalMax];\n if (isWellFormedNumberDomain(candidate)) {\n return candidate;\n }\n }\n return undefined;\n}\n\n/**\n * So Recharts allows users to provide their own domains,\n * but it also places some expectations on what the domain is.\n * We can improve on the typescript typing, but we also need a runtime test\n * to observe that the user-provided domain is well-formed,\n * that is: an array with exactly two numbers.\n * If the user-provided domain is not well-formed,\n * this function will return undefined - in which case we should traverse the data to calculate the real domain.\n *\n * This function is for parsing the numerical domain only.\n *\n * You are probably thinking, why does domain need tick count?\n * Well it adjusts the domain based on where the \"nice ticks\" land, and nice ticks depend on the tick count.\n *\n * @param userDomain external prop, user provided, before validation. Can have various shapes: array, function, special magical strings inside too.\n * @param dataDomain calculated from data. Can be undefined, as an option for performance optimization\n * @param allowDataOverflow provided by users. If true then the data domain wins\n *\n * @return [min, max] domain if it's well-formed; undefined if the domain is invalid\n */\nexport function parseNumericalUserDomain(userDomain, dataDomain, allowDataOverflow) {\n if (!allowDataOverflow && dataDomain == null) {\n // Cannot compute data overflow if the data is not provided\n return undefined;\n }\n if (typeof userDomain === 'function' && dataDomain != null) {\n try {\n var result = userDomain(dataDomain, allowDataOverflow);\n if (isWellFormedNumberDomain(result)) {\n return extendDomain(result, dataDomain, allowDataOverflow);\n }\n } catch (_unused) {\n /* ignore the exception and compute domain from data later */\n }\n }\n if (Array.isArray(userDomain) && userDomain.length === 2) {\n var [providedMin, providedMax] = userDomain;\n var finalMin, finalMax;\n if (providedMin === 'auto') {\n if (dataDomain != null) {\n finalMin = Math.min(...dataDomain);\n }\n } else if (isNumber(providedMin)) {\n finalMin = providedMin;\n } else if (typeof providedMin === 'function') {\n try {\n if (dataDomain != null) {\n finalMin = providedMin(dataDomain === null || dataDomain === void 0 ? void 0 : dataDomain[0]);\n }\n } catch (_unused2) {\n /* ignore the exception and compute domain from data later */\n }\n } else if (typeof providedMin === 'string' && MIN_VALUE_REG.test(providedMin)) {\n var match = MIN_VALUE_REG.exec(providedMin);\n if (match == null || dataDomain == null) {\n finalMin = undefined;\n } else {\n var value = +match[1];\n finalMin = dataDomain[0] - value;\n }\n } else {\n finalMin = dataDomain === null || dataDomain === void 0 ? void 0 : dataDomain[0];\n }\n if (providedMax === 'auto') {\n if (dataDomain != null) {\n finalMax = Math.max(...dataDomain);\n }\n } else if (isNumber(providedMax)) {\n finalMax = providedMax;\n } else if (typeof providedMax === 'function') {\n try {\n if (dataDomain != null) {\n finalMax = providedMax(dataDomain === null || dataDomain === void 0 ? void 0 : dataDomain[1]);\n }\n } catch (_unused3) {\n /* ignore the exception and compute domain from data later */\n }\n } else if (typeof providedMax === 'string' && MAX_VALUE_REG.test(providedMax)) {\n var _match = MAX_VALUE_REG.exec(providedMax);\n if (_match == null || dataDomain == null) {\n finalMax = undefined;\n } else {\n var _value = +_match[1];\n finalMax = dataDomain[1] + _value;\n }\n } else {\n finalMax = dataDomain === null || dataDomain === void 0 ? void 0 : dataDomain[1];\n }\n var candidate = [finalMin, finalMax];\n if (isWellFormedNumberDomain(candidate)) {\n if (dataDomain == null) {\n return candidate;\n }\n return extendDomain(candidate, dataDomain, allowDataOverflow);\n }\n }\n return undefined;\n}","/*\r\n * decimal.js-light v2.5.1\r\n * An arbitrary-precision Decimal type for JavaScript.\r\n * https://github.com/MikeMcl/decimal.js-light\r\n * Copyright (c) 2020 Michael Mclaughlin <[email protected]>\r\n * MIT Expat Licence\r\n */\r\n\r\n\r\n// ------------------------------------ EDITABLE DEFAULTS ------------------------------------- //\r\n\r\n\r\n// The limit on the value of `precision`, and on the value of the first argument to\r\n// `toDecimalPlaces`, `toExponential`, `toFixed`, `toPrecision` and `toSignificantDigits`.\r\nvar MAX_DIGITS = 1e9, // 0 to 1e9\r\n\r\n\r\n // The initial configuration properties of the Decimal constructor.\r\n defaults = {\r\n\r\n // These values must be integers within the stated ranges (inclusive).\r\n // Most of these values can be changed during run-time using `Decimal.config`.\r\n\r\n // The maximum number of significant digits of the result of a calculation or base conversion.\r\n // E.g. `Decimal.config({ precision: 20 });`\r\n precision: 20, // 1 to MAX_DIGITS\r\n\r\n // The rounding mode used by default by `toInteger`, `toDecimalPlaces`, `toExponential`,\r\n // `toFixed`, `toPrecision` and `toSignificantDigits`.\r\n //\r\n // ROUND_UP 0 Away from zero.\r\n // ROUND_DOWN 1 Towards zero.\r\n // ROUND_CEIL 2 Towards +Infinity.\r\n // ROUND_FLOOR 3 Towards -Infinity.\r\n // ROUND_HALF_UP 4 Towards nearest neighbour. If equidistant, up.\r\n // ROUND_HALF_DOWN 5 Towards nearest neighbour. If equidistant, down.\r\n // ROUND_HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour.\r\n // ROUND_HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity.\r\n // ROUND_HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity.\r\n //\r\n // E.g.\r\n // `Decimal.rounding = 4;`\r\n // `Decimal.rounding = Decimal.ROUND_HALF_UP;`\r\n rounding: 4, // 0 to 8\r\n\r\n // The exponent value at and beneath which `toString` returns exponential notation.\r\n // JavaScript numbers: -7\r\n toExpNeg: -7, // 0 to -MAX_E\r\n\r\n // The exponent value at and above which `toString` returns exponential notation.\r\n // JavaScript numbers: 21\r\n toExpPos: 21, // 0 to MAX_E\r\n\r\n // The natural logarithm of 10.\r\n // 115 digits\r\n LN10: '2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286'\r\n },\r\n\r\n\r\n// ------------------------------------ END OF EDITABLE DEFAULTS -------------------------------- //\r\n\r\n\r\n Decimal,\r\n external = true,\r\n\r\n decimalError = '[DecimalError] ',\r\n invalidArgument = decimalError + 'Invalid argument: ',\r\n exponentOutOfRange = decimalError + 'Exponent out of range: ',\r\n\r\n mathfloor = Math.floor,\r\n mathpow = Math.pow,\r\n\r\n isDecimal = /^(\\d+(\\.\\d*)?|\\.\\d+)(e[+-]?\\d+)?$/i,\r\n\r\n ONE,\r\n BASE = 1e7,\r\n LOG_BASE = 7,\r\n MAX_SAFE_INTEGER = 9007199254740991,\r\n MAX_E = mathfloor(MAX_SAFE_INTEGER / LOG_BASE), // 1286742750677284\r\n\r\n // Decimal.prototype object\r\n P = {};\r\n\r\n\r\n// Decimal prototype methods\r\n\r\n\r\n/*\r\n * absoluteValue abs\r\n * comparedTo cmp\r\n * decimalPlaces dp\r\n * dividedBy div\r\n * dividedToIntegerBy idiv\r\n * equals eq\r\n * exponent\r\n * greaterThan gt\r\n * greaterThanOrEqualTo gte\r\n * isInteger isint\r\n * isNegative isneg\r\n * isPositive ispos\r\n * isZero\r\n * lessThan lt\r\n * lessThanOrEqualTo lte\r\n * logarithm log\r\n * minus sub\r\n * modulo mod\r\n * naturalExponential exp\r\n * naturalLogarithm ln\r\n * negated neg\r\n * plus add\r\n * precision sd\r\n * squareRoot sqrt\r\n * times mul\r\n * toDecimalPlaces todp\r\n * toExponential\r\n * toFixed\r\n * toInteger toint\r\n * toNumber\r\n * toPower pow\r\n * toPrecision\r\n * toSignificantDigits tosd\r\n * toString\r\n * valueOf val\r\n */\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the absolute value of this Decimal.\r\n *\r\n */\r\nP.absoluteValue = P.abs = function () {\r\n var x = new this.constructor(this);\r\n if (x.s) x.s = 1;\r\n return x;\r\n};\r\n\r\n\r\n/*\r\n * Return\r\n * 1 if the value of this Decimal is greater than the value of `y`,\r\n * -1 if the value of this Decimal is less than the value of `y`,\r\n * 0 if they have the same value\r\n *\r\n */\r\nP.comparedTo = P.cmp = function (y) {\r\n var i, j, xdL, ydL,\r\n x = this;\r\n\r\n y = new x.constructor(y);\r\n\r\n // Signs differ?\r\n if (x.s !== y.s) return x.s || -y.s;\r\n\r\n // Compare exponents.\r\n if (x.e !== y.e) return x.e > y.e ^ x.s < 0 ? 1 : -1;\r\n\r\n xdL = x.d.length;\r\n ydL = y.d.length;\r\n\r\n // Compare digit by digit.\r\n for (i = 0, j = xdL < ydL ? xdL : ydL; i < j; ++i) {\r\n if (x.d[i] !== y.d[i]) return x.d[i] > y.d[i] ^ x.s < 0 ? 1 : -1;\r\n }\r\n\r\n // Compare lengths.\r\n return xdL === ydL ? 0 : xdL > ydL ^ x.s < 0 ? 1 : -1;\r\n};\r\n\r\n\r\n/*\r\n * Return the number of decimal places of the value of this Decimal.\r\n *\r\n */\r\nP.decimalPlaces = P.dp = function () {\r\n var x = this,\r\n w = x.d.length - 1,\r\n dp = (w - x.e) * LOG_BASE;\r\n\r\n // Subtract the number of trailing zeros of the last word.\r\n w = x.d[w];\r\n if (w) for (; w % 10 == 0; w /= 10) dp--;\r\n\r\n return dp < 0 ? 0 : dp;\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal divided by `y`, truncated to\r\n * `precision` significant digits.\r\n *\r\n */\r\nP.dividedBy = P.div = function (y) {\r\n return divide(this, new this.constructor(y));\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the integer part of dividing the value of this Decimal\r\n * by the value of `y`, truncated to `precision` significant digits.\r\n *\r\n */\r\nP.dividedToIntegerBy = P.idiv = function (y) {\r\n var x = this,\r\n Ctor = x.constructor;\r\n return round(divide(x, new Ctor(y), 0, 1), Ctor.precision);\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is equal to the value of `y`, otherwise return false.\r\n *\r\n */\r\nP.equals = P.eq = function (y) {\r\n return !this.cmp(y);\r\n};\r\n\r\n\r\n/*\r\n * Return the (base 10) exponent value of this Decimal (this.e is the base 10000000 exponent).\r\n *\r\n */\r\nP.exponent = function () {\r\n return getBase10Exponent(this);\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is greater than the value of `y`, otherwise return\r\n * false.\r\n *\r\n */\r\nP.greaterThan = P.gt = function (y) {\r\n return this.cmp(y) > 0;\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is greater than or equal to the value of `y`,\r\n * otherwise return false.\r\n *\r\n */\r\nP.greaterThanOrEqualTo = P.gte = function (y) {\r\n return this.cmp(y) >= 0;\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is an integer, otherwise return false.\r\n *\r\n */\r\nP.isInteger = P.isint = function () {\r\n return this.e > this.d.length - 2;\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is negative, otherwise return false.\r\n *\r\n */\r\nP.isNegative = P.isneg = function () {\r\n return this.s < 0;\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is positive, otherwise return false.\r\n *\r\n */\r\nP.isPositive = P.ispos = function () {\r\n return this.s > 0;\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is 0, otherwise return false.\r\n *\r\n */\r\nP.isZero = function () {\r\n return this.s === 0;\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is less than `y`, otherwise return false.\r\n *\r\n */\r\nP.lessThan = P.lt = function (y) {\r\n return this.cmp(y) < 0;\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is less than or equal to `y`, otherwise return false.\r\n *\r\n */\r\nP.lessThanOrEqualTo = P.lte = function (y) {\r\n return this.cmp(y) < 1;\r\n};\r\n\r\n\r\n/*\r\n * Return the logarithm of the value of this Decimal to the specified base, truncated to\r\n * `precision` significant digits.\r\n *\r\n * If no base is specified, return log[10](x).\r\n *\r\n * log[base](x) = ln(x) / ln(base)\r\n *\r\n * The maximum error of the result is 1 ulp (unit in the last place).\r\n *\r\n * [base] {number|string|Decimal} The base of the logarithm.\r\n *\r\n */\r\nP.logarithm = P.log = function (base) {\r\n var r,\r\n x = this,\r\n Ctor = x.constructor,\r\n pr = Ctor.precision,\r\n wpr = pr + 5;\r\n\r\n // Default base is 10.\r\n if (base === void 0) {\r\n base = new Ctor(10);\r\n } else {\r\n base = new Ctor(base);\r\n\r\n // log[-b](x) = NaN\r\n // log[0](x) = NaN\r\n // log[1](x) = NaN\r\n if (base.s < 1 || base.eq(ONE)) throw Error(decimalError + 'NaN');\r\n }\r\n\r\n // log[b](-x) = NaN\r\n // log[b](0) = -Infinity\r\n if (x.s < 1) throw Error(decimalError + (x.s ? 'NaN' : '-Infinity'));\r\n\r\n // log[b](1) = 0\r\n if (x.eq(ONE)) return new Ctor(0);\r\n\r\n external = false;\r\n r = divide(ln(x, wpr), ln(base, wpr), wpr);\r\n external = true;\r\n\r\n return round(r, pr);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal minus `y`, truncated to\r\n * `precision` significant digits.\r\n *\r\n */\r\nP.minus = P.sub = function (y) {\r\n var x = this;\r\n y = new x.constructor(y);\r\n return x.s == y.s ? subtract(x, y) : add(x, (y.s = -y.s, y));\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal modulo `y`, truncated to\r\n * `precision` significant digits.\r\n *\r\n */\r\nP.modulo = P.mod = function (y) {\r\n var q,\r\n x = this,\r\n Ctor = x.constructor,\r\n pr = Ctor.precision;\r\n\r\n y = new Ctor(y);\r\n\r\n // x % 0 = NaN\r\n if (!y.s) throw Error(decimalError + 'NaN');\r\n\r\n // Return x if x is 0.\r\n if (!x.s) return round(new Ctor(x), pr);\r\n\r\n // Prevent rounding of intermediate calculations.\r\n external = false;\r\n q = divide(x, y, 0, 1).times(y);\r\n external = true;\r\n\r\n return x.minus(q);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the natural exponential of the value of this Decimal,\r\n * i.e. the base e raised to the power the value of this Decimal, truncated to `precision`\r\n * significant digits.\r\n *\r\n */\r\nP.naturalExponential = P.exp = function () {\r\n return exp(this);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the natural logarithm of the value of this Decimal,\r\n * truncated to `precision` significant digits.\r\n *\r\n */\r\nP.naturalLogarithm = P.ln = function () {\r\n return ln(this);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal negated, i.e. as if multiplied by\r\n * -1.\r\n *\r\n */\r\nP.negated = P.neg = function () {\r\n var x = new this.constructor(this);\r\n x.s = -x.s || 0;\r\n return x;\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal plus `y`, truncated to\r\n * `precision` significant digits.\r\n *\r\n */\r\nP.plus = P.add = function (y) {\r\n var x = this;\r\n y = new x.constructor(y);\r\n return x.s == y.s ? add(x, y) : subtract(x, (y.s = -y.s, y));\r\n};\r\n\r\n\r\n/*\r\n * Return the number of significant digits of the value of this Decimal.\r\n *\r\n * [z] {boolean|number} Whether to count integer-part trailing zeros: true, false, 1 or 0.\r\n *\r\n */\r\nP.precision = P.sd = function (z) {\r\n var e, sd, w,\r\n x = this;\r\n\r\n if (z !== void 0 && z !== !!z && z !== 1 && z !== 0) throw Error(invalidArgument + z);\r\n\r\n e = getBase10Exponent(x) + 1;\r\n w = x.d.length - 1;\r\n sd = w * LOG_BASE + 1;\r\n w = x.d[w];\r\n\r\n // If non-zero...\r\n if (w) {\r\n\r\n // Subtract the number of trailing zeros of the last word.\r\n for (; w % 10 == 0; w /= 10) sd--;\r\n\r\n // Add the number of digits of the first word.\r\n for (w = x.d[0]; w >= 10; w /= 10) sd++;\r\n }\r\n\r\n return z && e > sd ? e : sd;\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the square root of this Decimal, truncated to `precision`\r\n * significant digits.\r\n *\r\n */\r\nP.squareRoot = P.sqrt = function () {\r\n var e, n, pr, r, s, t, wpr,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n // Negative or zero?\r\n if (x.s < 1) {\r\n if (!x.s) return new Ctor(0);\r\n\r\n // sqrt(-x) = NaN\r\n throw Error(decimalError + 'NaN');\r\n }\r\n\r\n e = getBase10Exponent(x);\r\n external = false;\r\n\r\n // Initial estimate.\r\n s = Math.sqrt(+x);\r\n\r\n // Math.sqrt underflow/overflow?\r\n // Pass x to Math.sqrt as integer, then adjust the exponent of the result.\r\n if (s == 0 || s == 1 / 0) {\r\n n = digitsToString(x.d);\r\n if ((n.length + e) % 2 == 0) n += '0';\r\n s = Math.sqrt(n);\r\n e = mathfloor((e + 1) / 2) - (e < 0 || e % 2);\r\n\r\n if (s == 1 / 0) {\r\n n = '5e' + e;\r\n } else {\r\n n = s.toExponential();\r\n n = n.slice(0, n.indexOf('e') + 1) + e;\r\n }\r\n\r\n r = new Ctor(n);\r\n } else {\r\n r = new Ctor(s.toString());\r\n }\r\n\r\n pr = Ctor.precision;\r\n s = wpr = pr + 3;\r\n\r\n // Newton-Raphson iteration.\r\n for (;;) {\r\n t = r;\r\n r = t.plus(divide(x, t, wpr + 2)).times(0.5);\r\n\r\n if (digitsToString(t.d).slice(0, wpr) === (n = digitsToString(r.d)).slice(0, wpr)) {\r\n n = n.slice(wpr - 3, wpr + 1);\r\n\r\n // The 4th rounding digit may be in error by -1 so if the 4 rounding digits are 9999 or\r\n // 4999, i.e. approaching a rounding boundary, continue the iteration.\r\n if (s == wpr && n == '4999') {\r\n\r\n // On the first iteration only, check to see if rounding up gives the exact result as the\r\n // nines may infinitely repeat.\r\n round(t, pr + 1, 0);\r\n\r\n if (t.times(t).eq(x)) {\r\n r = t;\r\n break;\r\n }\r\n } else if (n != '9999') {\r\n break;\r\n }\r\n\r\n wpr += 4;\r\n }\r\n }\r\n\r\n external = true;\r\n\r\n return round(r, pr);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal times `y`, truncated to\r\n * `precision` significant digits.\r\n *\r\n */\r\nP.times = P.mul = function (y) {\r\n var carry, e, i, k, r, rL, t, xdL, ydL,\r\n x = this,\r\n Ctor = x.constructor,\r\n xd = x.d,\r\n yd = (y = new Ctor(y)).d;\r\n\r\n // Return 0 if either is 0.\r\n if (!x.s || !y.s) return new Ctor(0);\r\n\r\n y.s *= x.s;\r\n e = x.e + y.e;\r\n xdL = xd.length;\r\n ydL = yd.length;\r\n\r\n // Ensure xd points to the longer array.\r\n if (xdL < ydL) {\r\n r = xd;\r\n xd = yd;\r\n yd = r;\r\n rL = xdL;\r\n xdL = ydL;\r\n ydL = rL;\r\n }\r\n\r\n // Initialise the result array with zeros.\r\n r = [];\r\n rL = xdL + ydL;\r\n for (i = rL; i--;) r.push(0);\r\n\r\n // Multiply!\r\n for (i = ydL; --i >= 0;) {\r\n carry = 0;\r\n for (k = xdL + i; k > i;) {\r\n t = r[k] + yd[i] * xd[k - i - 1] + carry;\r\n r[k--] = t % BASE | 0;\r\n carry = t / BASE | 0;\r\n }\r\n\r\n r[k] = (r[k] + carry) % BASE | 0;\r\n }\r\n\r\n // Remove trailing zeros.\r\n for (; !r[--rL];) r.pop();\r\n\r\n if (carry) ++e;\r\n else r.shift();\r\n\r\n y.d = r;\r\n y.e = e;\r\n\r\n return external ? round(y, Ctor.precision) : y;\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal rounded to a maximum of `dp`\r\n * decimal places using rounding mode `rm` or `rounding` if `rm` is omitted.\r\n *\r\n * If `dp` is omitted, return a new Decimal whose value is the value of this Decimal.\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX_DIGITS inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n */\r\nP.toDecimalPlaces = P.todp = function (dp, rm) {\r\n var x = this,\r\n Ctor = x.constructor;\r\n\r\n x = new Ctor(x);\r\n if (dp === void 0) return x;\r\n\r\n checkInt32(dp, 0, MAX_DIGITS);\r\n\r\n if (rm === void 0) rm = Ctor.rounding;\r\n else checkInt32(rm, 0, 8);\r\n\r\n return round(x, dp + getBase10Exponent(x) + 1, rm);\r\n};\r\n\r\n\r\n/*\r\n * Return a string representing the value of this Decimal in exponential notation rounded to\r\n * `dp` fixed decimal places using rounding mode `rounding`.\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX_DIGITS inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n */\r\nP.toExponential = function (dp, rm) {\r\n var str,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n if (dp === void 0) {\r\n str = toString(x, true);\r\n } else {\r\n checkInt32(dp, 0, MAX_DIGITS);\r\n\r\n if (rm === void 0) rm = Ctor.rounding;\r\n else checkInt32(rm, 0, 8);\r\n\r\n x = round(new Ctor(x), dp + 1, rm);\r\n str = toString(x, true, dp + 1);\r\n }\r\n\r\n return str;\r\n};\r\n\r\n\r\n/*\r\n * Return a string representing the value of this Decimal in normal (fixed-point) notation to\r\n * `dp` fixed decimal places and rounded using rounding mode `rm` or `rounding` if `rm` is\r\n * omitted.\r\n *\r\n * As with JavaScript numbers, (-0).toFixed(0) is '0', but e.g. (-0.00001).toFixed(0) is '-0'.\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX_DIGITS inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * (-0).toFixed(0) is '0', but (-0.1).toFixed(0) is '-0'.\r\n * (-0).toFixed(1) is '0.0', but (-0.01).toFixed(1) is '-0.0'.\r\n * (-0).toFixed(3) is '0.000'.\r\n * (-0.5).toFixed(0) is '-0'.\r\n *\r\n */\r\nP.toFixed = function (dp, rm) {\r\n var str, y,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n if (dp === void 0) return toString(x);\r\n\r\n checkInt32(dp, 0, MAX_DIGITS);\r\n\r\n if (rm === void 0) rm = Ctor.rounding;\r\n else checkInt32(rm, 0, 8);\r\n\r\n y = round(new Ctor(x), dp + getBase10Exponent(x) + 1, rm);\r\n str = toString(y.abs(), false, dp + getBase10Exponent(y) + 1);\r\n\r\n // To determine whether to add the minus sign look at the value before it was rounded,\r\n // i.e. look at `x` rather than `y`.\r\n return x.isneg() && !x.isZero() ? '-' + str : str;\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal rounded to a whole number using\r\n * rounding mode `rounding`.\r\n *\r\n */\r\nP.toInteger = P.toint = function () {\r\n var x = this,\r\n Ctor = x.constructor;\r\n return round(new Ctor(x), getBase10Exponent(x) + 1, Ctor.rounding);\r\n};\r\n\r\n\r\n/*\r\n * Return the value of this Decimal converted to a number primitive.\r\n *\r\n */\r\nP.toNumber = function () {\r\n return +this;\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal raised to the power `y`,\r\n * truncated to `precision` significant digits.\r\n *\r\n * For non-integer or very large exponents pow(x, y) is calculated using\r\n *\r\n * x^y = exp(y*ln(x))\r\n *\r\n * The maximum error is 1 ulp (unit in last place).\r\n *\r\n * y {number|string|Decimal} The power to which to raise this Decimal.\r\n *\r\n */\r\nP.toPower = P.pow = function (y) {\r\n var e, k, pr, r, sign, yIsInt,\r\n x = this,\r\n Ctor = x.constructor,\r\n guard = 12,\r\n yn = +(y = new Ctor(y));\r\n\r\n // pow(x, 0) = 1\r\n if (!y.s) return new Ctor(ONE);\r\n\r\n x = new Ctor(x);\r\n\r\n // pow(0, y > 0) = 0\r\n // pow(0, y < 0) = Infinity\r\n if (!x.s) {\r\n if (y.s < 1) throw Error(decimalError + 'Infinity');\r\n return x;\r\n }\r\n\r\n // pow(1, y) = 1\r\n if (x.eq(ONE)) return x;\r\n\r\n pr = Ctor.precision;\r\n\r\n // pow(x, 1) = x\r\n if (y.eq(ONE)) return round(x, pr);\r\n\r\n e = y.e;\r\n k = y.d.length - 1;\r\n yIsInt = e >= k;\r\n sign = x.s;\r\n\r\n if (!yIsInt) {\r\n\r\n // pow(x < 0, y non-integer) = NaN\r\n if (sign < 0) throw Error(decimalError + 'NaN');\r\n\r\n // If y is a small integer use the 'exponentiation by squaring' algorithm.\r\n } else if ((k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER) {\r\n r = new Ctor(ONE);\r\n\r\n // Max k of 9007199254740991 takes 53 loop iterations.\r\n // Maximum digits array length; leaves [28, 34] guard digits.\r\n e = Math.ceil(pr / LOG_BASE + 4);\r\n\r\n external = false;\r\n\r\n for (;;) {\r\n if (k % 2) {\r\n r = r.times(x);\r\n truncate(r.d, e);\r\n }\r\n\r\n k = mathfloor(k / 2);\r\n if (k === 0) break;\r\n\r\n x = x.times(x);\r\n truncate(x.d, e);\r\n }\r\n\r\n external = true;\r\n\r\n return y.s < 0 ? new Ctor(ONE).div(r) : round(r, pr);\r\n }\r\n\r\n // Result is negative if x is negative and the last digit of integer y is odd.\r\n sign = sign < 0 && y.d[Math.max(e, k)] & 1 ? -1 : 1;\r\n\r\n x.s = 1;\r\n external = false;\r\n r = y.times(ln(x, pr + guard));\r\n external = true;\r\n r = exp(r);\r\n r.s = sign;\r\n\r\n return r;\r\n};\r\n\r\n\r\n/*\r\n * Return a string representing the value of this Decimal rounded to `sd` significant digits\r\n * using rounding mode `rounding`.\r\n *\r\n * Return exponential notation if `sd` is less than the number of digits necessary to represent\r\n * the integer part of the value in normal notation.\r\n *\r\n * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n */\r\nP.toPrecision = function (sd, rm) {\r\n var e, str,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n if (sd === void 0) {\r\n e = getBase10Exponent(x);\r\n str = toString(x, e <= Ctor.toExpNeg || e >= Ctor.toExpPos);\r\n } else {\r\n checkInt32(sd, 1, MAX_DIGITS);\r\n\r\n if (rm === void 0) rm = Ctor.rounding;\r\n else checkInt32(rm, 0, 8);\r\n\r\n x = round(new Ctor(x), sd, rm);\r\n e = getBase10Exponent(x);\r\n str = toString(x, sd <= e || e <= Ctor.toExpNeg, sd);\r\n }\r\n\r\n return str;\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal rounded to a maximum of `sd`\r\n * significant digits using rounding mode `rm`, or to `precision` and `rounding` respectively if\r\n * omitted.\r\n *\r\n * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n */\r\nP.toSignificantDigits = P.tosd = function (sd, rm) {\r\n var x = this,\r\n Ctor = x.constructor;\r\n\r\n if (sd === void 0) {\r\n sd = Ctor.precision;\r\n rm = Ctor.rounding;\r\n } else {\r\n checkInt32(sd, 1, MAX_DIGITS);\r\n\r\n if (rm === void 0) rm = Ctor.rounding;\r\n else checkInt32(rm, 0, 8);\r\n }\r\n\r\n return round(new Ctor(x), sd, rm);\r\n};\r\n\r\n\r\n/*\r\n * Return a string representing the value of this Decimal.\r\n *\r\n * Return exponential notation if this Decimal has a positive exponent equal to or greater than\r\n * `toExpPos`, or a negative exponent equal to or less than `toExpNeg`.\r\n *\r\n */\r\nP.toString = P.valueOf = P.val = P.toJSON = P[Symbol.for('nodejs.util.inspect.custom')] = function () {\r\n var x = this,\r\n e = getBase10Exponent(x),\r\n Ctor = x.constructor;\r\n\r\n return toString(x, e <= Ctor.toExpNeg || e >= Ctor.toExpPos);\r\n};\r\n\r\n\r\n// Helper functions for Decimal.prototype (P) and/or Decimal methods, and their callers.\r\n\r\n\r\n/*\r\n * add P.minus, P.plus\r\n * checkInt32 P.todp, P.toExponential, P.toFixed, P.toPrecision, P.tosd\r\n * digitsToString P.log, P.sqrt, P.pow, toString, exp, ln\r\n * divide P.div, P.idiv, P.log, P.mod, P.sqrt, exp, ln\r\n * exp P.exp, P.pow\r\n * getBase10Exponent P.exponent, P.sd, P.toint, P.sqrt, P.todp, P.toFixed, P.toPrecision,\r\n * P.toString, divide, round, toString, exp, ln\r\n * getLn10 P.log, ln\r\n * getZeroString digitsToString, toString\r\n * ln P.log, P.ln, P.pow, exp\r\n * parseDecimal Decimal\r\n * round P.abs, P.idiv, P.log, P.minus, P.mod, P.neg, P.plus, P.toint, P.sqrt,\r\n * P.times, P.todp, P.toExponential, P.toFixed, P.pow, P.toPrecision, P.tosd,\r\n * divide, getLn10, exp, ln\r\n * subtract P.minus, P.plus\r\n * toString P.toExponential, P.toFixed, P.toPrecision, P.toString, P.valueOf\r\n * truncate P.pow\r\n *\r\n * Throws: P.log, P.mod, P.sd, P.sqrt, P.pow, checkInt32, divide, round,\r\n * getLn10, exp, ln, parseDecimal, Decimal, config\r\n */\r\n\r\n\r\nfunction add(x, y) {\r\n var carry, d, e, i, k, len, xd, yd,\r\n Ctor = x.constructor,\r\n pr = Ctor.precision;\r\n\r\n // If either is zero...\r\n if (!x.s || !y.s) {\r\n\r\n // Return x if y is zero.\r\n // Return y if y is non-zero.\r\n if (!y.s) y = new Ctor(x);\r\n return external ? round(y, pr) : y;\r\n }\r\n\r\n xd = x.d;\r\n yd = y.d;\r\n\r\n // x and y are finite, non-zero numbers with the same sign.\r\n\r\n k = x.e;\r\n e = y.e;\r\n xd = xd.slice();\r\n i = k - e;\r\n\r\n // If base 1e7 exponents differ...\r\n if (i) {\r\n if (i < 0) {\r\n d = xd;\r\n i = -i;\r\n len = yd.length;\r\n } else {\r\n d = yd;\r\n e = k;\r\n len = xd.length;\r\n }\r\n\r\n // Limit number of zeros prepended to max(ceil(pr / LOG_BASE), len) + 1.\r\n k = Math.ceil(pr / LOG_BASE);\r\n len = k > len ? k + 1 : len + 1;\r\n\r\n if (i > len) {\r\n i = len;\r\n d.length = 1;\r\n }\r\n\r\n // Prepend zeros to equalise exponents. Note: Faster to use reverse then do unshifts.\r\n d.reverse();\r\n for (; i--;) d.push(0);\r\n d.reverse();\r\n }\r\n\r\n len = xd.length;\r\n i = yd.length;\r\n\r\n // If yd is longer than xd, swap xd and yd so xd points to the longer array.\r\n if (len - i < 0) {\r\n i = len;\r\n d = yd;\r\n yd = xd;\r\n xd = d;\r\n }\r\n\r\n // Only start adding at yd.length - 1 as the further digits of xd can be left as they are.\r\n for (carry = 0; i;) {\r\n carry = (xd[--i] = xd[i] + yd[i] + carry) / BASE | 0;\r\n xd[i] %= BASE;\r\n }\r\n\r\n if (carry) {\r\n xd.unshift(carry);\r\n ++e;\r\n }\r\n\r\n // Remove trailing zeros.\r\n // No need to check for zero, as +x + +y != 0 && -x + -y != 0\r\n for (len = xd.length; xd[--len] == 0;) xd.pop();\r\n\r\n y.d = xd;\r\n y.e = e;\r\n\r\n return external ? round(y, pr) : y;\r\n}\r\n\r\n\r\nfunction checkInt32(i, min, max) {\r\n if (i !== ~~i || i < min || i > max) {\r\n throw Error(invalidArgument + i);\r\n }\r\n}\r\n\r\n\r\nfunction digitsToString(d) {\r\n var i, k, ws,\r\n indexOfLastWord = d.length - 1,\r\n str = '',\r\n w = d[0];\r\n\r\n if (indexOfLastWord > 0) {\r\n str += w;\r\n for (i = 1; i < indexOfLastWord; i++) {\r\n ws = d[i] + '';\r\n k = LOG_BASE - ws.length;\r\n if (k) str += getZeroString(k);\r\n str += ws;\r\n }\r\n\r\n w = d[i];\r\n ws = w + '';\r\n k = LOG_BASE - ws.length;\r\n if (k) str += getZeroString(k);\r\n } else if (w === 0) {\r\n return '0';\r\n }\r\n\r\n // Remove trailing zeros of last w.\r\n for (; w % 10 === 0;) w /= 10;\r\n\r\n return str + w;\r\n}\r\n\r\n\r\nvar divide = (function () {\r\n\r\n // Assumes non-zero x and k, and hence non-zero result.\r\n function multiplyInteger(x, k) {\r\n var temp,\r\n carry = 0,\r\n i = x.length;\r\n\r\n for (x = x.slice(); i--;) {\r\n temp = x[i] * k + carry;\r\n x[i] = temp % BASE | 0;\r\n carry = temp / BASE | 0;\r\n }\r\n\r\n if (carry) x.unshift(carry);\r\n\r\n return x;\r\n }\r\n\r\n function compare(a, b, aL, bL) {\r\n var i, r;\r\n\r\n if (aL != bL) {\r\n r = aL > bL ? 1 : -1;\r\n } else {\r\n for (i = r = 0; i < aL; i++) {\r\n if (a[i] != b[i]) {\r\n r = a[i] > b[i] ? 1 : -1;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return r;\r\n }\r\n\r\n function subtract(a, b, aL) {\r\n var i = 0;\r\n\r\n // Subtract b from a.\r\n for (; aL--;) {\r\n a[aL] -= i;\r\n i = a[aL] < b[aL] ? 1 : 0;\r\n a[aL] = i * BASE + a[aL] - b[aL];\r\n }\r\n\r\n // Remove leading zeros.\r\n for (; !a[0] && a.length > 1;) a.shift();\r\n }\r\n\r\n return function (x, y, pr, dp) {\r\n var cmp, e, i, k, prod, prodL, q, qd, rem, remL, rem0, sd, t, xi, xL, yd0, yL, yz,\r\n Ctor = x.constructor,\r\n sign = x.s == y.s ? 1 : -1,\r\n xd = x.d,\r\n yd = y.d;\r\n\r\n // Either 0?\r\n if (!x.s) return new Ctor(x);\r\n if (!y.s) throw Error(decimalError + 'Division by zero');\r\n\r\n e = x.e - y.e;\r\n yL = yd.length;\r\n xL = xd.length;\r\n q = new Ctor(sign);\r\n qd = q.d = [];\r\n\r\n // Result exponent may be one less than e.\r\n for (i = 0; yd[i] == (xd[i] || 0); ) ++i;\r\n if (yd[i] > (xd[i] || 0)) --e;\r\n\r\n if (pr == null) {\r\n sd = pr = Ctor.precision;\r\n } else if (dp) {\r\n sd = pr + (getBase10Exponent(x) - getBase10Exponent(y)) + 1;\r\n } else {\r\n sd = pr;\r\n }\r\n\r\n if (sd < 0) return new Ctor(0);\r\n\r\n // Convert precision in number of base 10 digits to base 1e7 digits.\r\n sd = sd / LOG_BASE + 2 | 0;\r\n i = 0;\r\n\r\n // divisor < 1e7\r\n if (yL == 1) {\r\n k = 0;\r\n yd = yd[0];\r\n sd++;\r\n\r\n // k is the carry.\r\n for (; (i < xL || k) && sd--; i++) {\r\n t = k * BASE + (xd[i] || 0);\r\n qd[i] = t / yd | 0;\r\n k = t % yd | 0;\r\n }\r\n\r\n // divisor >= 1e7\r\n } else {\r\n\r\n // Normalise xd and yd so highest order digit of yd is >= BASE/2\r\n k = BASE / (yd[0] + 1) | 0;\r\n\r\n if (k > 1) {\r\n yd = multiplyInteger(yd, k);\r\n xd = multiplyInteger(xd, k);\r\n yL = yd.length;\r\n xL = xd.length;\r\n }\r\n\r\n xi = yL;\r\n rem = xd.slice(0, yL);\r\n remL = rem.length;\r\n\r\n // Add zeros to make remainder as long as divisor.\r\n for (; remL < yL;) rem[remL++] = 0;\r\n\r\n yz = yd.slice();\r\n yz.unshift(0);\r\n yd0 = yd[0];\r\n\r\n if (yd[1] >= BASE / 2) ++yd0;\r\n\r\n do {\r\n k = 0;\r\n\r\n // Compare divisor and remainder.\r\n cmp = compare(yd, rem, yL, remL);\r\n\r\n // If divisor < remainder.\r\n if (cmp < 0) {\r\n\r\n // Calculate trial digit, k.\r\n rem0 = rem[0];\r\n if (yL != remL) rem0 = rem0 * BASE + (rem[1] || 0);\r\n\r\n // k will be how many times the divisor goes into the current remainder.\r\n k = rem0 / yd0 | 0;\r\n\r\n // Algorithm:\r\n // 1. product = divisor * trial digit (k)\r\n // 2. if product > remainder: product -= divisor, k--\r\n // 3. remainder -= product\r\n // 4. if product was < remainder at 2:\r\n // 5. compare new remainder and divisor\r\n // 6. If remainder > divisor: remainder -= divisor, k++\r\n\r\n if (k > 1) {\r\n if (k >= BASE) k = BASE - 1;\r\n\r\n // product = divisor * trial digit.\r\n prod = multiplyInteger(yd, k);\r\n prodL = prod.length;\r\n remL = rem.length;\r\n\r\n // Compare product and remainder.\r\n cmp = compare(prod, rem, prodL, remL);\r\n\r\n // product > remainder.\r\n if (cmp == 1) {\r\n k--;\r\n\r\n // Subtract divisor from product.\r\n subtract(prod, yL < prodL ? yz : yd, prodL);\r\n }\r\n } else {\r\n\r\n // cmp is -1.\r\n // If k is 0, there is no need to compare yd and rem again below, so change cmp to 1\r\n // to avoid it. If k is 1 there is a need to compare yd and rem again below.\r\n if (k == 0) cmp = k = 1;\r\n prod = yd.slice();\r\n }\r\n\r\n prodL = prod.length;\r\n if (prodL < remL) prod.unshift(0);\r\n\r\n // Subtract product from remainder.\r\n subtract(rem, prod, remL);\r\n\r\n // If product was < previous remainder.\r\n if (cmp == -1) {\r\n remL = rem.length;\r\n\r\n // Compare divisor and new remainder.\r\n cmp = compare(yd, rem, yL, remL);\r\n\r\n // If divisor < new remainder, subtract divisor from remainder.\r\n if (cmp < 1) {\r\n k++;\r\n\r\n // Subtract divisor from remainder.\r\n subtract(rem, yL < remL ? yz : yd, remL);\r\n }\r\n }\r\n\r\n remL = rem.length;\r\n } else if (cmp === 0) {\r\n k++;\r\n rem = [0];\r\n } // if cmp === 1, k will be 0\r\n\r\n // Add the next digit, k, to the result array.\r\n qd[i++] = k;\r\n\r\n // Update the remainder.\r\n if (cmp && rem[0]) {\r\n rem[remL++] = xd[xi] || 0;\r\n } else {\r\n rem = [xd[xi]];\r\n remL = 1;\r\n }\r\n\r\n } while ((xi++ < xL || rem[0] !== void 0) && sd--);\r\n }\r\n\r\n // Leading zero?\r\n if (!qd[0]) qd.shift();\r\n\r\n q.e = e;\r\n\r\n return round(q, dp ? pr + getBase10Exponent(q) + 1 : pr);\r\n };\r\n})();\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the natural exponential of `x` truncated to `sd`\r\n * significant digits.\r\n *\r\n * Taylor/Maclaurin series.\r\n *\r\n * exp(x) = x^0/0! + x^1/1! + x^2/2! + x^3/3! + ...\r\n *\r\n * Argument reduction:\r\n * Repeat x = x / 32, k += 5, until |x| < 0.1\r\n * exp(x) = exp(x / 2^k)^(2^k)\r\n *\r\n * Previously, the argument was initially reduced by\r\n * exp(x) = exp(r) * 10^k where r = x - k * ln10, k = floor(x / ln10)\r\n * to first put r in the range [0, ln10], before dividing by 32 until |x| < 0.1, but this was\r\n * found to be slower than just dividing repeatedly by 32 as above.\r\n *\r\n * (Math object integer min/max: Math.exp(709) = 8.2e+307, Math.exp(-745) = 5e-324)\r\n *\r\n * exp(x) is non-terminating for any finite, non-zero x.\r\n *\r\n */\r\nfunction exp(x, sd) {\r\n var denominator, guard, pow, sum, t, wpr,\r\n i = 0,\r\n k = 0,\r\n Ctor = x.constructor,\r\n pr = Ctor.precision;\r\n\r\n if (getBase10Exponent(x) > 16) throw Error(exponentOutOfRange + getBase10Exponent(x));\r\n\r\n // exp(0) = 1\r\n if (!x.s) return new Ctor(ONE);\r\n\r\n if (sd == null) {\r\n external = false;\r\n wpr = pr;\r\n } else {\r\n wpr = sd;\r\n }\r\n\r\n t = new Ctor(0.03125);\r\n\r\n while (x.abs().gte(0.1)) {\r\n x = x.times(t); // x = x / 2^5\r\n k += 5;\r\n }\r\n\r\n // Estimate the precision increase necessary to ensure the first 4 rounding digits are correct.\r\n guard = Math.log(mathpow(2, k)) / Math.LN10 * 2 + 5 | 0;\r\n wpr += guard;\r\n denominator = pow = sum = new Ctor(ONE);\r\n Ctor.precision = wpr;\r\n\r\n for (;;) {\r\n pow = round(pow.times(x), wpr);\r\n denominator = denominator.times(++i);\r\n t = sum.plus(divide(pow, denominator, wpr));\r\n\r\n if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {\r\n while (k--) sum = round(sum.times(sum), wpr);\r\n Ctor.precision = pr;\r\n return sd == null ? (external = true, round(sum, pr)) : sum;\r\n }\r\n\r\n sum = t;\r\n }\r\n}\r\n\r\n\r\n// Calculate the base 10 exponent from the base 1e7 exponent.\r\nfunction getBase10Exponent(x) {\r\n var e = x.e * LOG_BASE,\r\n w = x.d[0];\r\n\r\n // Add the number of digits of the first word of the digits array.\r\n for (; w >= 10; w /= 10) e++;\r\n return e;\r\n}\r\n\r\n\r\nfunction getLn10(Ctor, sd, pr) {\r\n\r\n if (sd > Ctor.LN10.sd()) {\r\n\r\n\r\n // Reset global state in case the exception is caught.\r\n external = true;\r\n if (pr) Ctor.precision = pr;\r\n throw Error(decimalError + 'LN10 precision limit exceeded');\r\n }\r\n\r\n return round(new Ctor(Ctor.LN10), sd);\r\n}\r\n\r\n\r\nfunction getZeroString(k) {\r\n var zs = '';\r\n for (; k--;) zs += '0';\r\n return zs;\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the natural logarithm of `x` truncated to `sd` significant\r\n * digits.\r\n *\r\n * ln(n) is non-terminating (n != 1)\r\n *\r\n */\r\nfunction ln(y, sd) {\r\n var c, c0, denominator, e, numerator, sum, t, wpr, x2,\r\n n = 1,\r\n guard = 10,\r\n x = y,\r\n xd = x.d,\r\n Ctor = x.constructor,\r\n pr = Ctor.precision;\r\n\r\n // ln(-x) = NaN\r\n // ln(0) = -Infinity\r\n if (x.s < 1) throw Error(decimalError + (x.s ? 'NaN' : '-Infinity'));\r\n\r\n // ln(1) = 0\r\n if (x.eq(ONE)) return new Ctor(0);\r\n\r\n if (sd == null) {\r\n external = false;\r\n wpr = pr;\r\n } else {\r\n wpr = sd;\r\n }\r\n\r\n if (x.eq(10)) {\r\n if (sd == null) external = true;\r\n return getLn10(Ctor, wpr);\r\n }\r\n\r\n wpr += guard;\r\n Ctor.precision = wpr;\r\n c = digitsToString(xd);\r\n c0 = c.charAt(0);\r\n e = getBase10Exponent(x);\r\n\r\n if (Math.abs(e) < 1.5e15) {\r\n\r\n // Argument reduction.\r\n // The series converges faster the closer the argument is to 1, so using\r\n // ln(a^b) = b * ln(a), ln(a) = ln(a^b) / b\r\n // multiply the argument by itself until the leading digits of the significand are 7, 8, 9,\r\n // 10, 11, 12 or 13, recording the number of multiplications so the sum of the series can\r\n // later be divided by this number, then separate out the power of 10 using\r\n // ln(a*10^b) = ln(a) + b*ln(10).\r\n\r\n // max n is 21 (gives 0.9, 1.0 or 1.1) (9e15 / 21 = 4.2e14).\r\n //while (c0 < 9 && c0 != 1 || c0 == 1 && c.charAt(1) > 1) {\r\n // max n is 6 (gives 0.7 - 1.3)\r\n while (c0 < 7 && c0 != 1 || c0 == 1 && c.charAt(1) > 3) {\r\n x = x.times(y);\r\n c = digitsToString(x.d);\r\n c0 = c.charAt(0);\r\n n++;\r\n }\r\n\r\n e = getBase10Exponent(x);\r\n\r\n if (c0 > 1) {\r\n x = new Ctor('0.' + c);\r\n e++;\r\n } else {\r\n x = new Ctor(c0 + '.' + c.slice(1));\r\n }\r\n } else {\r\n\r\n // The argument reduction method above may result in overflow if the argument y is a massive\r\n // number with exponent >= 1500000000000000 (9e15 / 6 = 1.5e15), so instead recall this\r\n // function using ln(x*10^e) = ln(x) + e*ln(10).\r\n t = getLn10(Ctor, wpr + 2, pr).times(e + '');\r\n x = ln(new Ctor(c0 + '.' + c.slice(1)), wpr - guard).plus(t);\r\n\r\n Ctor.precision = pr;\r\n return sd == null ? (external = true, round(x, pr)) : x;\r\n }\r\n\r\n // x is reduced to a value near 1.\r\n\r\n // Taylor series.\r\n // ln(y) = ln((1 + x)/(1 - x)) = 2(x + x^3/3 + x^5/5 + x^7/7 + ...)\r\n // where x = (y - 1)/(y + 1) (|x| < 1)\r\n sum = numerator = x = divide(x.minus(ONE), x.plus(ONE), wpr);\r\n x2 = round(x.times(x), wpr);\r\n denominator = 3;\r\n\r\n for (;;) {\r\n numerator = round(numerator.times(x2), wpr);\r\n t = sum.plus(divide(numerator, new Ctor(denominator), wpr));\r\n\r\n if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {\r\n sum = sum.times(2);\r\n\r\n // Reverse the argument reduction.\r\n if (e !== 0) sum = sum.plus(getLn10(Ctor, wpr + 2, pr).times(e + ''));\r\n sum = divide(sum, new Ctor(n), wpr);\r\n\r\n Ctor.precision = pr;\r\n return sd == null ? (external = true, round(sum, pr)) : sum;\r\n }\r\n\r\n sum = t;\r\n denominator += 2;\r\n }\r\n}\r\n\r\n\r\n/*\r\n * Parse the value of a new Decimal `x` from string `str`.\r\n */\r\nfunction parseDecimal(x, str) {\r\n var e, i, len;\r\n\r\n // Decimal point?\r\n if ((e = str.indexOf('.')) > -1) str = str.replace('.', '');\r\n\r\n // Exponential form?\r\n if ((i = str.search(/e/i)) > 0) {\r\n\r\n // Determine exponent.\r\n if (e < 0) e = i;\r\n e += +str.slice(i + 1);\r\n str = str.substring(0, i);\r\n } else if (e < 0) {\r\n\r\n // Integer.\r\n e = str.length;\r\n }\r\n\r\n // Determine leading zeros.\r\n for (i = 0; str.charCodeAt(i) === 48;) ++i;\r\n\r\n // Determine trailing zeros.\r\n for (len = str.length; str.charCodeAt(len - 1) === 48;) --len;\r\n str = str.slice(i, len);\r\n\r\n if (str) {\r\n len -= i;\r\n e = e - i - 1;\r\n x.e = mathfloor(e / LOG_BASE);\r\n x.d = [];\r\n\r\n // Transform base\r\n\r\n // e is the base 10 exponent.\r\n // i is where to slice str to get the first word of the digits array.\r\n i = (e + 1) % LOG_BASE;\r\n if (e < 0) i += LOG_BASE;\r\n\r\n if (i < len) {\r\n if (i) x.d.push(+str.slice(0, i));\r\n for (len -= LOG_BASE; i < len;) x.d.push(+str.slice(i, i += LOG_BASE));\r\n str = str.slice(i);\r\n i = LOG_BASE - str.length;\r\n } else {\r\n i -= len;\r\n }\r\n\r\n for (; i--;) str += '0';\r\n x.d.push(+str);\r\n\r\n if (external && (x.e > MAX_E || x.e < -MAX_E)) throw Error(exponentOutOfRange + e);\r\n } else {\r\n\r\n // Zero.\r\n x.s = 0;\r\n x.e = 0;\r\n x.d = [0];\r\n }\r\n\r\n return x;\r\n}\r\n\r\n\r\n/*\r\n * Round `x` to `sd` significant digits, using rounding mode `rm` if present (truncate otherwise).\r\n */\r\n function round(x, sd, rm) {\r\n var i, j, k, n, rd, doRound, w, xdi,\r\n xd = x.d;\r\n\r\n // rd: the rounding digit, i.e. the digit after the digit that may be rounded up.\r\n // w: the word of xd which contains the rounding digit, a base 1e7 number.\r\n // xdi: the index of w within xd.\r\n // n: the number of digits of w.\r\n // i: what would be the index of rd within w if all the numbers were 7 digits long (i.e. if\r\n // they had leading zeros)\r\n // j: if > 0, the actual index of rd within w (if < 0, rd is a leading zero).\r\n\r\n // Get the length of the first word of the digits array xd.\r\n for (n = 1, k = xd[0]; k >= 10; k /= 10) n++;\r\n i = sd - n;\r\n\r\n // Is the rounding digit in the first word of xd?\r\n if (i < 0) {\r\n i += LOG_BASE;\r\n j = sd;\r\n w = xd[xdi = 0];\r\n } else {\r\n xdi = Math.ceil((i + 1) / LOG_BASE);\r\n k = xd.length;\r\n if (xdi >= k) return x;\r\n w = k = xd[xdi];\r\n\r\n // Get the number of digits of w.\r\n for (n = 1; k >= 10; k /= 10) n++;\r\n\r\n // Get the index of rd within w.\r\n i %= LOG_BASE;\r\n\r\n // Get the index of rd within w, adjusted for leading zeros.\r\n // The number of leading zeros of w is given by LOG_BASE - n.\r\n j = i - LOG_BASE + n;\r\n }\r\n\r\n if (rm !== void 0) {\r\n k = mathpow(10, n - j - 1);\r\n\r\n // Get the rounding digit at index j of w.\r\n rd = w / k % 10 | 0;\r\n\r\n // Are there any non-zero digits after the rounding digit?\r\n doRound = sd < 0 || xd[xdi + 1] !== void 0 || w % k;\r\n\r\n // The expression `w % mathpow(10, n - j - 1)` returns all the digits of w to the right of the\r\n // digit at (left-to-right) index j, e.g. if w is 908714 and j is 2, the expression will give\r\n // 714.\r\n\r\n doRound = rm < 4\r\n ? (rd || doRound) && (rm == 0 || rm == (x.s < 0 ? 3 : 2))\r\n : rd > 5 || rd == 5 && (rm == 4 || doRound || rm == 6 &&\r\n\r\n // Check whether the digit to the left of the rounding digit is odd.\r\n ((i > 0 ? j > 0 ? w / mathpow(10, n - j) : 0 : xd[xdi - 1]) % 10) & 1 ||\r\n rm == (x.s < 0 ? 8 : 7));\r\n }\r\n\r\n if (sd < 1 || !xd[0]) {\r\n if (doRound) {\r\n k = getBase10Exponent(x);\r\n xd.length = 1;\r\n\r\n // Convert sd to decimal places.\r\n sd = sd - k - 1;\r\n\r\n // 1, 0.1, 0.01, 0.001, 0.0001 etc.\r\n xd[0] = mathpow(10, (LOG_BASE - sd % LOG_BASE) % LOG_BASE);\r\n x.e = mathfloor(-sd / LOG_BASE) || 0;\r\n } else {\r\n xd.length = 1;\r\n\r\n // Zero.\r\n xd[0] = x.e = x.s = 0;\r\n }\r\n\r\n return x;\r\n }\r\n\r\n // Remove excess digits.\r\n if (i == 0) {\r\n xd.length = xdi;\r\n k = 1;\r\n xdi--;\r\n } else {\r\n xd.length = xdi + 1;\r\n k = mathpow(10, LOG_BASE - i);\r\n\r\n // E.g. 56700 becomes 56000 if 7 is the rounding digit.\r\n // j > 0 means i > number of leading zeros of w.\r\n xd[xdi] = j > 0 ? (w / mathpow(10, n - j) % mathpow(10, j) | 0) * k : 0;\r\n }\r\n\r\n if (doRound) {\r\n for (;;) {\r\n\r\n // Is the digit to be rounded up in the first word of xd?\r\n if (xdi == 0) {\r\n if ((xd[0] += k) == BASE) {\r\n xd[0] = 1;\r\n ++x.e;\r\n }\r\n\r\n break;\r\n } else {\r\n xd[xdi] += k;\r\n if (xd[xdi] != BASE) break;\r\n xd[xdi--] = 0;\r\n k = 1;\r\n }\r\n }\r\n }\r\n\r\n // Remove trailing zeros.\r\n for (i = xd.length; xd[--i] === 0;) xd.pop();\r\n\r\n if (external && (x.e > MAX_E || x.e < -MAX_E)) {\r\n throw Error(exponentOutOfRange + getBase10Exponent(x));\r\n }\r\n\r\n return x;\r\n}\r\n\r\n\r\nfunction subtract(x, y) {\r\n var d, e, i, j, k, len, xd, xe, xLTy, yd,\r\n Ctor = x.constructor,\r\n pr = Ctor.precision;\r\n\r\n // Return y negated if x is zero.\r\n // Return x if y is zero and x is non-zero.\r\n if (!x.s || !y.s) {\r\n if (y.s) y.s = -y.s;\r\n else y = new Ctor(x);\r\n return external ? round(y, pr) : y;\r\n }\r\n\r\n xd = x.d;\r\n yd = y.d;\r\n\r\n // x and y are non-zero numbers with the same sign.\r\n\r\n e = y.e;\r\n xe = x.e;\r\n xd = xd.slice();\r\n k = xe - e;\r\n\r\n // If exponents differ...\r\n if (k) {\r\n xLTy = k < 0;\r\n\r\n if (xLTy) {\r\n d = xd;\r\n k = -k;\r\n len = yd.length;\r\n } else {\r\n d = yd;\r\n e = xe;\r\n len = xd.length;\r\n }\r\n\r\n // Numbers with massively different exponents would result in a very high number of zeros\r\n // needing to be prepended, but this can be avoided while still ensuring correct rounding by\r\n // limiting the number of zeros to `Math.ceil(pr / LOG_BASE) + 2`.\r\n i = Math.max(Math.ceil(pr / LOG_BASE), len) + 2;\r\n\r\n if (k > i) {\r\n k = i;\r\n d.length = 1;\r\n }\r\n\r\n // Prepend zeros to equalise exponents.\r\n d.reverse();\r\n for (i = k; i--;) d.push(0);\r\n d.reverse();\r\n\r\n // Base 1e7 exponents equal.\r\n } else {\r\n\r\n // Check digits to determine which is the bigger number.\r\n\r\n i = xd.length;\r\n len = yd.length;\r\n xLTy = i < len;\r\n if (xLTy) len = i;\r\n\r\n for (i = 0; i < len; i++) {\r\n if (xd[i] != yd[i]) {\r\n xLTy = xd[i] < yd[i];\r\n break;\r\n }\r\n }\r\n\r\n k = 0;\r\n }\r\n\r\n if (xLTy) {\r\n d = xd;\r\n xd = yd;\r\n yd = d;\r\n y.s = -y.s;\r\n }\r\n\r\n len = xd.length;\r\n\r\n // Append zeros to xd if shorter.\r\n // Don't add zeros to yd if shorter as subtraction only needs to start at yd length.\r\n for (i = yd.length - len; i > 0; --i) xd[len++] = 0;\r\n\r\n // Subtract yd from xd.\r\n for (i = yd.length; i > k;) {\r\n if (xd[--i] < yd[i]) {\r\n for (j = i; j && xd[--j] === 0;) xd[j] = BASE - 1;\r\n --xd[j];\r\n xd[i] += BASE;\r\n }\r\n\r\n xd[i] -= yd[i];\r\n }\r\n\r\n // Remove trailing zeros.\r\n for (; xd[--len] === 0;) xd.pop();\r\n\r\n // Remove leading zeros and adjust exponent accordingly.\r\n for (; xd[0] === 0; xd.shift()) --e;\r\n\r\n // Zero?\r\n if (!xd[0]) return new Ctor(0);\r\n\r\n y.d = xd;\r\n y.e = e;\r\n\r\n //return external && xd.length >= pr / LOG_BASE ? round(y, pr) : y;\r\n return external ? round(y, pr) : y;\r\n}\r\n\r\n\r\nfunction toString(x, isExp, sd) {\r\n var k,\r\n e = getBase10Exponent(x),\r\n str = digitsToString(x.d),\r\n len = str.length;\r\n\r\n if (isExp) {\r\n if (sd && (k = sd - len) > 0) {\r\n str = str.charAt(0) + '.' + str.slice(1) + getZeroString(k);\r\n } else if (len > 1) {\r\n str = str.charAt(0) + '.' + str.slice(1);\r\n }\r\n\r\n str = str + (e < 0 ? 'e' : 'e+') + e;\r\n } else if (e < 0) {\r\n str = '0.' + getZeroString(-e - 1) + str;\r\n if (sd && (k = sd - len) > 0) str += getZeroString(k);\r\n } else if (e >= len) {\r\n str += getZeroString(e + 1 - len);\r\n if (sd && (k = sd - e - 1) > 0) str = str + '.' + getZeroString(k);\r\n } else {\r\n if ((k = e + 1) < len) str = str.slice(0, k) + '.' + str.slice(k);\r\n if (sd && (k = sd - len) > 0) {\r\n if (e + 1 === len) str += '.';\r\n str += getZeroString(k);\r\n }\r\n }\r\n\r\n return x.s < 0 ? '-' + str : str;\r\n}\r\n\r\n\r\n// Does not strip trailing zeros.\r\nfunction truncate(arr, len) {\r\n if (arr.length > len) {\r\n arr.length = len;\r\n return true;\r\n }\r\n}\r\n\r\n\r\n// Decimal methods\r\n\r\n\r\n/*\r\n * clone\r\n * config/set\r\n */\r\n\r\n\r\n/*\r\n * Create and return a Decimal constructor with the same configuration properties as this Decimal\r\n * constructor.\r\n *\r\n */\r\nfunction clone(obj) {\r\n var i, p, ps;\r\n\r\n /*\r\n * The Decimal constructor and exported function.\r\n * Return a new Decimal instance.\r\n *\r\n * value {number|string|Decimal} A numeric value.\r\n *\r\n */\r\n function Decimal(value) {\r\n var x = this;\r\n\r\n // Decimal called without new.\r\n if (!(x instanceof Decimal)) return new Decimal(value);\r\n\r\n // Retain a reference to this Decimal constructor, and shadow Decimal.prototype.constructor\r\n // which points to Object.\r\n x.constructor = Decimal;\r\n\r\n // Duplicate.\r\n if (value instanceof Decimal) {\r\n x.s = value.s;\r\n x.e = value.e;\r\n x.d = (value = value.d) ? value.slice() : value;\r\n return;\r\n }\r\n\r\n if (typeof value === 'number') {\r\n\r\n // Reject Infinity/NaN.\r\n if (value * 0 !== 0) {\r\n throw Error(invalidArgument + value);\r\n }\r\n\r\n if (value > 0) {\r\n x.s = 1;\r\n } else if (value < 0) {\r\n value = -value;\r\n x.s = -1;\r\n } else {\r\n x.s = 0;\r\n x.e = 0;\r\n x.d = [0];\r\n return;\r\n }\r\n\r\n // Fast path for small integers.\r\n if (value === ~~value && value < 1e7) {\r\n x.e = 0;\r\n x.d = [value];\r\n return;\r\n }\r\n\r\n return parseDecimal(x, value.toString());\r\n } else if (typeof value !== 'string') {\r\n throw Error(invalidArgument + value);\r\n }\r\n\r\n // Minus sign?\r\n if (value.charCodeAt(0) === 45) {\r\n value = value.slice(1);\r\n x.s = -1;\r\n } else {\r\n x.s = 1;\r\n }\r\n\r\n if (isDecimal.test(value)) parseDecimal(x, value);\r\n else throw Error(invalidArgument + value);\r\n }\r\n\r\n Decimal.prototype = P;\r\n\r\n Decimal.ROUND_UP = 0;\r\n Decimal.ROUND_DOWN = 1;\r\n Decimal.ROUND_CEIL = 2;\r\n Decimal.ROUND_FLOOR = 3;\r\n Decimal.ROUND_HALF_UP = 4;\r\n Decimal.ROUND_HALF_DOWN = 5;\r\n Decimal.ROUND_HALF_EVEN = 6;\r\n Decimal.ROUND_HALF_CEIL = 7;\r\n Decimal.ROUND_HALF_FLOOR = 8;\r\n\r\n Decimal.clone = clone;\r\n Decimal.config = Decimal.set = config;\r\n\r\n if (obj === void 0) obj = {};\r\n if (obj) {\r\n ps = ['precision', 'rounding', 'toExpNeg', 'toExpPos', 'LN10'];\r\n for (i = 0; i < ps.length;) if (!obj.hasOwnProperty(p = ps[i++])) obj[p] = this[p];\r\n }\r\n\r\n Decimal.config(obj);\r\n\r\n return Decimal;\r\n}\r\n\r\n\r\n/*\r\n * Configure global settings for a Decimal constructor.\r\n *\r\n * `obj` is an object with one or more of the following properties,\r\n *\r\n * precision {number}\r\n * rounding {number}\r\n * toExpNeg {number}\r\n * toExpPos {number}\r\n *\r\n * E.g. Decimal.config({ precision: 20, rounding: 4 })\r\n *\r\n */\r\nfunction config(obj) {\r\n if (!obj || typeof obj !== 'object') {\r\n throw Error(decimalError + 'Object expected');\r\n }\r\n var i, p, v,\r\n ps = [\r\n 'precision', 1, MAX_DIGITS,\r\n 'rounding', 0, 8,\r\n 'toExpNeg', -1 / 0, 0,\r\n 'toExpPos', 0, 1 / 0\r\n ];\r\n\r\n for (i = 0; i < ps.length; i += 3) {\r\n if ((v = obj[p = ps[i]]) !== void 0) {\r\n if (mathfloor(v) === v && v >= ps[i + 1] && v <= ps[i + 2]) this[p] = v;\r\n else throw Error(invalidArgument + p + ': ' + v);\r\n }\r\n }\r\n\r\n if ((v = obj[p = 'LN10']) !== void 0) {\r\n if (v == Math.LN10) this[p] = new this(v);\r\n else throw Error(invalidArgument + p + ': ' + v);\r\n }\r\n\r\n return this;\r\n}\r\n\r\n\r\n// Create and configure initial Decimal constructor.\r\nexport var Decimal = clone(defaults);\r\n\r\n// Internal constant.\r\nONE = new Decimal(1);\r\n\r\nexport default Decimal;\r\n","var identity = i => i;\nexport var PLACE_HOLDER = {\n '@@functional/placeholder': true\n};\nvar isPlaceHolder = val => val === PLACE_HOLDER;\nvar curry0 = fn => function _curried() {\n if (arguments.length === 0 || arguments.length === 1 && isPlaceHolder(arguments.length <= 0 ? undefined : arguments[0])) {\n return _curried;\n }\n return fn(...arguments);\n};\nvar curryN = (n, fn) => {\n if (n === 1) {\n return fn;\n }\n return curry0(function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n var argsLength = args.filter(arg => arg !== PLACE_HOLDER).length;\n if (argsLength >= n) {\n return fn(...args);\n }\n return curryN(n - argsLength, curry0(function () {\n for (var _len2 = arguments.length, restArgs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n restArgs[_key2] = arguments[_key2];\n }\n var newArgs = args.map(arg => isPlaceHolder(arg) ? restArgs.shift() : arg);\n return fn(...newArgs, ...restArgs);\n }));\n });\n};\nexport var curry = fn => curryN(fn.length, fn);\nexport var range = (begin, end) => {\n var arr = [];\n for (var i = begin; i < end; ++i) {\n arr[i - begin] = i;\n }\n return arr;\n};\nexport var map = curry((fn, arr) => {\n if (Array.isArray(arr)) {\n return arr.map(fn);\n }\n return Object.keys(arr).map(key => arr[key]).map(fn);\n});\nexport var compose = function compose() {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n if (!args.length) {\n return identity;\n }\n var fns = args.reverse();\n // first function can receive multiply arguments\n var firstFn = fns[0];\n var tailsFn = fns.slice(1);\n return function () {\n return tailsFn.reduce((res, fn) => fn(res), firstFn(...arguments));\n };\n};\nexport var reverse = arr => {\n if (Array.isArray(arr)) {\n return arr.reverse();\n }\n\n // can be string\n return arr.split('').reverse().join('');\n};\nexport var memoize = fn => {\n var lastArgs = null;\n var lastResult = null;\n return function () {\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n if (lastArgs && args.every((val, i) => {\n var _lastArgs;\n return val === ((_lastArgs = lastArgs) === null || _lastArgs === void 0 ? void 0 : _lastArgs[i]);\n })) {\n return lastResult;\n }\n lastArgs = args;\n lastResult = fn(...args);\n return lastResult;\n };\n};","/**\n * @fileOverview Some common arithmetic methods\n * @author xile611\n * @date 2015-09-17\n */\nimport Decimal from 'decimal.js-light';\nimport { curry } from './utils';\n\n/**\n * Get the digit count of a number.\n * If the absolute value is in the interval [0.1, 1), the result is 0.\n * If the absolute value is in the interval [0.01, 0.1), the digit count is -1.\n * If the absolute value is in the interval [0.001, 0.01), the digit count is -2.\n *\n * @param {Number} value The number\n * @return {Integer} Digit count\n */\nfunction getDigitCount(value) {\n var result;\n if (value === 0) {\n result = 1;\n } else {\n result = Math.floor(new Decimal(value).abs().log(10).toNumber()) + 1;\n }\n return result;\n}\n\n/**\n * Get the data in the interval [start, end) with a fixed step.\n * Also handles JS calculation precision issues.\n *\n * @param {Decimal} start Start point\n * @param {Decimal} end End point, not included\n * @param {Decimal} step Step size\n * @return {Array} Array of numbers\n */\nfunction rangeStep(start, end, step) {\n var num = new Decimal(start);\n var i = 0;\n var result = [];\n\n // magic number to prevent infinite loop\n while (num.lt(end) && i < 100000) {\n result.push(num.toNumber());\n num = num.add(step);\n i++;\n }\n return result;\n}\n\n/**\n * Linear interpolation of numbers.\n *\n * @param {Number} a Endpoint of the domain\n * @param {Number} b Endpoint of the domain\n * @param {Number} t A value in [0, 1]\n * @return {Number} A value in the domain\n */\nvar interpolateNumber = curry((a, b, t) => {\n var newA = +a;\n var newB = +b;\n return newA + t * (newB - newA);\n});\n\n/**\n * Inverse operation of linear interpolation.\n *\n * @param {Number} a Endpoint of the domain\n * @param {Number} b Endpoint of the domain\n * @param {Number} x Can be considered as an output value after interpolation\n * @return {Number} When x is in the range a ~ b, the return value is in [0, 1]\n */\nvar uninterpolateNumber = curry((a, b, x) => {\n var diff = b - +a;\n diff = diff || Infinity;\n return (x - a) / diff;\n});\n\n/**\n * Inverse operation of linear interpolation with truncation.\n *\n * @param {Number} a Endpoint of the domain\n * @param {Number} b Endpoint of the domain\n * @param {Number} x Can be considered as an output value after interpolation\n * @return {Number} When x is in the interval a ~ b, the return value is in [0, 1].\n * When x is not in the interval a ~ b, it will be truncated to the interval a ~ b.\n */\nvar uninterpolateTruncation = curry((a, b, x) => {\n var diff = b - +a;\n diff = diff || Infinity;\n return Math.max(0, Math.min(1, (x - a) / diff));\n});\nexport { rangeStep, getDigitCount, interpolateNumber, uninterpolateNumber, uninterpolateTruncation };","/**\n * @fileOverview calculate tick values of scale\n * @author xile611, arcthur\n * @date 2015-09-17\n */\nimport Decimal from 'decimal.js-light';\nimport { compose, range, memoize, map, reverse } from './util/utils';\nimport { getDigitCount, rangeStep } from './util/arithmetic';\n\n/**\n * Calculate a interval of a minimum value and a maximum value\n *\n * @param {Number} min The minimum value\n * @param {Number} max The maximum value\n * @return {Array} An interval\n */\nexport var getValidInterval = _ref => {\n var [min, max] = _ref;\n var [validMin, validMax] = [min, max];\n\n // exchange\n if (min > max) {\n [validMin, validMax] = [max, min];\n }\n return [validMin, validMax];\n};\n\n/**\n * Calculate the step which is easy to understand between ticks, like 10, 20, 25\n *\n * @param roughStep The rough step calculated by dividing the difference by the tickCount\n * @param allowDecimals Allow the ticks to be decimals or not\n * @param correctionFactor A correction factor\n * @return The step which is easy to understand between two ticks\n */\nexport var getFormatStep = (roughStep, allowDecimals, correctionFactor) => {\n if (roughStep.lte(0)) {\n return new Decimal(0);\n }\n var digitCount = getDigitCount(roughStep.toNumber());\n // The ratio between the rough step and the smallest number which has a bigger\n // order of magnitudes than the rough step\n var digitCountValue = new Decimal(10).pow(digitCount);\n var stepRatio = roughStep.div(digitCountValue);\n // When an integer and a float multiplied, the accuracy of result may be wrong\n var stepRatioScale = digitCount !== 1 ? 0.05 : 0.1;\n var amendStepRatio = new Decimal(Math.ceil(stepRatio.div(stepRatioScale).toNumber())).add(correctionFactor).mul(stepRatioScale);\n var formatStep = amendStepRatio.mul(digitCountValue);\n return allowDecimals ? new Decimal(formatStep.toNumber()) : new Decimal(Math.ceil(formatStep.toNumber()));\n};\n\n/**\n * calculate the ticks when the minimum value equals to the maximum value\n *\n * @param value The minimum value which is also the maximum value\n * @param tickCount The count of ticks\n * @param allowDecimals Allow the ticks to be decimals or not\n * @return array of ticks\n */\nexport var getTickOfSingleValue = (value, tickCount, allowDecimals) => {\n var step = new Decimal(1);\n // calculate the middle value of ticks\n var middle = new Decimal(value);\n if (!middle.isint() && allowDecimals) {\n var absVal = Math.abs(value);\n if (absVal < 1) {\n // The step should be a float number when the difference is smaller than 1\n step = new Decimal(10).pow(getDigitCount(value) - 1);\n middle = new Decimal(Math.floor(middle.div(step).toNumber())).mul(step);\n } else if (absVal > 1) {\n // Return the maximum integer which is smaller than 'value' when 'value' is greater than 1\n middle = new Decimal(Math.floor(value));\n }\n } else if (value === 0) {\n middle = new Decimal(Math.floor((tickCount - 1) / 2));\n } else if (!allowDecimals) {\n middle = new Decimal(Math.floor(value));\n }\n var middleIndex = Math.floor((tickCount - 1) / 2);\n var fn = compose(map(n => middle.add(new Decimal(n - middleIndex).mul(step)).toNumber()), range);\n return fn(0, tickCount);\n};\n\n/**\n * Calculate the step\n *\n * @param min The minimum value of an interval\n * @param max The maximum value of an interval\n * @param tickCount The count of ticks\n * @param allowDecimals Allow the ticks to be decimals or not\n * @param correctionFactor A correction factor\n * @return The step, minimum value of ticks, maximum value of ticks\n */\nvar _calculateStep = function calculateStep(min, max, tickCount, allowDecimals) {\n var correctionFactor = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;\n // dirty hack (for recharts' test)\n if (!Number.isFinite((max - min) / (tickCount - 1))) {\n return {\n step: new Decimal(0),\n tickMin: new Decimal(0),\n tickMax: new Decimal(0)\n };\n }\n\n // The step which is easy to understand between two ticks\n var step = getFormatStep(new Decimal(max).sub(min).div(tickCount - 1), allowDecimals, correctionFactor);\n\n // A medial value of ticks\n var middle;\n\n // When 0 is inside the interval, 0 should be a tick\n if (min <= 0 && max >= 0) {\n middle = new Decimal(0);\n } else {\n // calculate the middle value\n middle = new Decimal(min).add(max).div(2);\n // minus modulo value\n middle = middle.sub(new Decimal(middle).mod(step));\n }\n var belowCount = Math.ceil(middle.sub(min).div(step).toNumber());\n var upCount = Math.ceil(new Decimal(max).sub(middle).div(step).toNumber());\n var scaleCount = belowCount + upCount + 1;\n if (scaleCount > tickCount) {\n // When more ticks need to cover the interval, step should be bigger.\n return _calculateStep(min, max, tickCount, allowDecimals, correctionFactor + 1);\n }\n if (scaleCount < tickCount) {\n // When less ticks can cover the interval, we should add some additional ticks\n upCount = max > 0 ? upCount + (tickCount - scaleCount) : upCount;\n belowCount = max > 0 ? belowCount : belowCount + (tickCount - scaleCount);\n }\n return {\n step,\n tickMin: middle.sub(new Decimal(belowCount).mul(step)),\n tickMax: middle.add(new Decimal(upCount).mul(step))\n };\n};\n\n/**\n * Calculate the ticks of an interval. Ticks can appear outside the interval\n * if it makes them more rounded and nice.\n *\n * @param tuple of [min,max] min: The minimum value, max: The maximum value\n * @param tickCount The count of ticks\n * @param allowDecimals Allow the ticks to be decimals or not\n * @return array of ticks\n */\nexport { _calculateStep as calculateStep };\nfunction getNiceTickValuesFn(_ref2) {\n var [min, max] = _ref2;\n var tickCount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;\n var allowDecimals = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n // More than two ticks should be return\n var count = Math.max(tickCount, 2);\n var [cormin, cormax] = getValidInterval([min, max]);\n if (cormin === -Infinity || cormax === Infinity) {\n var _values = cormax === Infinity ? [cormin, ...range(0, tickCount - 1).map(() => Infinity)] : [...range(0, tickCount - 1).map(() => -Infinity), cormax];\n return min > max ? reverse(_values) : _values;\n }\n if (cormin === cormax) {\n return getTickOfSingleValue(cormin, tickCount, allowDecimals);\n }\n\n // Get the step between two ticks\n var {\n step,\n tickMin,\n tickMax\n } = _calculateStep(cormin, cormax, count, allowDecimals, 0);\n var values = rangeStep(tickMin, tickMax.add(new Decimal(0.1).mul(step)), step);\n return min > max ? reverse(values) : values;\n}\n\n/**\n * Calculate the ticks of an interval.\n * Ticks will be constrained to the interval [min, max] even if it makes them less rounded and nice.\n *\n * @param tuple of [min,max] min: The minimum value, max: The maximum value\n * @param tickCount The count of ticks. This function may return less than tickCount ticks if the interval is too small.\n * @param allowDecimals Allow the ticks to be decimals or not\n * @return array of ticks\n */\nfunction getTickValuesFixedDomainFn(_ref3, tickCount) {\n var [min, max] = _ref3;\n var allowDecimals = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n // More than two ticks should be return\n var [cormin, cormax] = getValidInterval([min, max]);\n if (cormin === -Infinity || cormax === Infinity) {\n return [min, max];\n }\n if (cormin === cormax) {\n return [cormin];\n }\n var count = Math.max(tickCount, 2);\n var step = getFormatStep(new Decimal(cormax).sub(cormin).div(count - 1), allowDecimals, 0);\n var values = [...rangeStep(new Decimal(cormin), new Decimal(cormax), step), cormax];\n if (allowDecimals === false) {\n /*\n * allowDecimals is false means that we want to have integer ticks.\n * The step is guaranteed to be an integer in the code above which is great start\n * but when the first step is not an integer, it will start stepping from a decimal value anyway.\n * So we need to round all the values to integers after the fact.\n */\n values = values.map(value => Math.round(value));\n }\n return min > max ? reverse(values) : values;\n}\nexport var getNiceTickValues = memoize(getNiceTickValuesFn);\nexport var getTickValuesFixedDomain = memoize(getTickValuesFixedDomainFn);","export var selectRootMaxBarSize = state => state.rootProps.maxBarSize;\nexport var selectBarGap = state => state.rootProps.barGap;\nexport var selectBarCategoryGap = state => state.rootProps.barCategoryGap;\nexport var selectRootBarSize = state => state.rootProps.barSize;\nexport var selectStackOffsetType = state => state.rootProps.stackOffset;\nexport var selectChartName = state => state.options.chartName;\nexport var selectSyncId = state => state.rootProps.syncId;\nexport var selectSyncMethod = state => state.rootProps.syncMethod;\nexport var selectEventEmitter = state => state.options.eventEmitter;","export var defaultPolarAngleAxisProps = {\n allowDuplicatedCategory: true,\n // if I set this to false then Tooltip synchronisation stops working in Radar, wtf\n angleAxisId: 0,\n axisLine: true,\n cx: 0,\n cy: 0,\n orientation: 'outer',\n reversed: false,\n scale: 'auto',\n tick: true,\n tickLine: true,\n tickSize: 8,\n type: 'category'\n};","export var defaultPolarRadiusAxisProps = {\n allowDataOverflow: false,\n allowDuplicatedCategory: true,\n angle: 0,\n axisLine: true,\n cx: 0,\n cy: 0,\n orientation: 'right',\n radiusAxisId: 0,\n scale: 'auto',\n stroke: '#ccc',\n tick: true,\n tickCount: 5,\n type: 'number'\n};","export var combineAxisRangeWithReverse = (axisSettings, axisRange) => {\n if (!axisSettings || !axisRange) {\n return undefined;\n }\n if (axisSettings !== null && axisSettings !== void 0 && axisSettings.reversed) {\n return [axisRange[1], axisRange[0]];\n }\n return axisRange;\n};","import { createSelector } from 'reselect';\nimport { selectChartHeight, selectChartWidth } from './containerSelectors';\nimport { selectChartOffsetInternal } from './selectChartOffsetInternal';\nimport { getMaxRadius } from '../../util/PolarUtils';\nimport { getPercentValue } from '../../util/DataUtils';\nimport { defaultPolarAngleAxisProps } from '../../polar/defaultPolarAngleAxisProps';\nimport { defaultPolarRadiusAxisProps } from '../../polar/defaultPolarRadiusAxisProps';\nimport { combineAxisRangeWithReverse } from './combiners/combineAxisRangeWithReverse';\nimport { selectChartLayout } from '../../context/chartLayoutContext';\nexport var implicitAngleAxis = {\n allowDataOverflow: false,\n allowDecimals: false,\n allowDuplicatedCategory: false,\n // defaultPolarAngleAxisProps.allowDuplicatedCategory has it set to true but the actual axis rendering ignores the prop because reasons,\n dataKey: undefined,\n domain: undefined,\n id: defaultPolarAngleAxisProps.angleAxisId,\n includeHidden: false,\n name: undefined,\n reversed: defaultPolarAngleAxisProps.reversed,\n scale: defaultPolarAngleAxisProps.scale,\n tick: defaultPolarAngleAxisProps.tick,\n tickCount: undefined,\n ticks: undefined,\n type: defaultPolarAngleAxisProps.type,\n unit: undefined\n};\nexport var implicitRadiusAxis = {\n allowDataOverflow: defaultPolarRadiusAxisProps.allowDataOverflow,\n allowDecimals: false,\n allowDuplicatedCategory: defaultPolarRadiusAxisProps.allowDuplicatedCategory,\n dataKey: undefined,\n domain: undefined,\n id: defaultPolarRadiusAxisProps.radiusAxisId,\n includeHidden: false,\n name: undefined,\n reversed: false,\n scale: defaultPolarRadiusAxisProps.scale,\n tick: defaultPolarRadiusAxisProps.tick,\n tickCount: defaultPolarRadiusAxisProps.tickCount,\n ticks: undefined,\n type: defaultPolarRadiusAxisProps.type,\n unit: undefined\n};\nexport var implicitRadialBarAngleAxis = {\n allowDataOverflow: false,\n allowDecimals: false,\n allowDuplicatedCategory: defaultPolarAngleAxisProps.allowDuplicatedCategory,\n dataKey: undefined,\n domain: undefined,\n id: defaultPolarAngleAxisProps.angleAxisId,\n includeHidden: false,\n name: undefined,\n reversed: false,\n scale: defaultPolarAngleAxisProps.scale,\n tick: defaultPolarAngleAxisProps.tick,\n tickCount: undefined,\n ticks: undefined,\n type: 'number',\n unit: undefined\n};\nexport var implicitRadialBarRadiusAxis = {\n allowDataOverflow: defaultPolarRadiusAxisProps.allowDataOverflow,\n allowDecimals: false,\n allowDuplicatedCategory: defaultPolarRadiusAxisProps.allowDuplicatedCategory,\n dataKey: undefined,\n domain: undefined,\n id: defaultPolarRadiusAxisProps.radiusAxisId,\n includeHidden: false,\n name: undefined,\n reversed: false,\n scale: defaultPolarRadiusAxisProps.scale,\n tick: defaultPolarRadiusAxisProps.tick,\n tickCount: defaultPolarRadiusAxisProps.tickCount,\n ticks: undefined,\n type: 'category',\n unit: undefined\n};\nexport var selectAngleAxis = (state, angleAxisId) => {\n if (state.polarAxis.angleAxis[angleAxisId] != null) {\n return state.polarAxis.angleAxis[angleAxisId];\n }\n if (state.layout.layoutType === 'radial') {\n return implicitRadialBarAngleAxis;\n }\n return implicitAngleAxis;\n};\nexport var selectRadiusAxis = (state, radiusAxisId) => {\n if (state.polarAxis.radiusAxis[radiusAxisId] != null) {\n return state.polarAxis.radiusAxis[radiusAxisId];\n }\n if (state.layout.layoutType === 'radial') {\n return implicitRadialBarRadiusAxis;\n }\n return implicitRadiusAxis;\n};\nexport var selectPolarOptions = state => state.polarOptions;\nexport var selectMaxRadius = createSelector([selectChartWidth, selectChartHeight, selectChartOffsetInternal], getMaxRadius);\nvar selectInnerRadius = createSelector([selectPolarOptions, selectMaxRadius], (polarChartOptions, maxRadius) => {\n if (polarChartOptions == null) {\n return undefined;\n }\n return getPercentValue(polarChartOptions.innerRadius, maxRadius, 0);\n});\nexport var selectOuterRadius = createSelector([selectPolarOptions, selectMaxRadius], (polarChartOptions, maxRadius) => {\n if (polarChartOptions == null) {\n return undefined;\n }\n return getPercentValue(polarChartOptions.outerRadius, maxRadius, maxRadius * 0.8);\n});\nvar combineAngleAxisRange = polarOptions => {\n if (polarOptions == null) {\n return [0, 0];\n }\n var {\n startAngle,\n endAngle\n } = polarOptions;\n return [startAngle, endAngle];\n};\nexport var selectAngleAxisRange = createSelector([selectPolarOptions], combineAngleAxisRange);\nexport var selectAngleAxisRangeWithReversed = createSelector([selectAngleAxis, selectAngleAxisRange], combineAxisRangeWithReverse);\nexport var selectRadiusAxisRange = createSelector([selectMaxRadius, selectInnerRadius, selectOuterRadius], (maxRadius, innerRadius, outerRadius) => {\n if (maxRadius == null || innerRadius == null || outerRadius == null) {\n return undefined;\n }\n return [innerRadius, outerRadius];\n});\nexport var selectRadiusAxisRangeWithReversed = createSelector([selectRadiusAxis, selectRadiusAxisRange], combineAxisRangeWithReverse);\nexport var selectPolarViewBox = createSelector([selectChartLayout, selectPolarOptions, selectInnerRadius, selectOuterRadius, selectChartWidth, selectChartHeight], (layout, polarOptions, innerRadius, outerRadius, width, height) => {\n if (layout !== 'centric' && layout !== 'radial' || polarOptions == null || innerRadius == null || outerRadius == null) {\n return undefined;\n }\n var {\n cx,\n cy,\n startAngle,\n endAngle\n } = polarOptions;\n return {\n cx: getPercentValue(cx, width, width / 2),\n cy: getPercentValue(cy, height, height / 2),\n innerRadius,\n outerRadius,\n startAngle,\n endAngle,\n clockWise: false // this property look useful, why not use it?\n };\n});","export var pickAxisType = (_state, axisType) => axisType;","export var pickAxisId = (_state, _axisType, axisId) => axisId;","/**\n * Returns identifier for stack series which is one individual graphical item in the stack.\n * @param graphicalItem - The graphical item representing the series in the stack.\n * @return The identifier for the series in the stack\n */\nexport function getStackSeriesIdentifier(graphicalItem) {\n return graphicalItem === null || graphicalItem === void 0 ? void 0 : graphicalItem.id;\n}","import { selectChartLayout } from '../../context/chartLayoutContext';\nexport var selectTooltipAxisType = state => {\n var layout = selectChartLayout(state);\n if (layout === 'horizontal') {\n return 'xAxis';\n }\n if (layout === 'vertical') {\n return 'yAxis';\n }\n if (layout === 'centric') {\n return 'angleAxis';\n }\n return 'radiusAxis';\n};","export var selectTooltipAxisId = state => state.tooltip.settings.axisId;","import { createSelector } from 'reselect';\nimport { selectAxisSettings } from './axisSelectors';\nimport { selectTooltipAxisType } from './selectTooltipAxisType';\nimport { selectTooltipAxisId } from './selectTooltipAxisId';\nexport var selectTooltipAxis = state => {\n var axisType = selectTooltipAxisType(state);\n var axisId = selectTooltipAxisId(state);\n return selectAxisSettings(state, axisType, axisId);\n};\nexport var selectTooltipAxisDataKey = createSelector([selectTooltipAxis], axis => axis === null || axis === void 0 ? void 0 : axis.dataKey);","import { getStackSeriesIdentifier } from '../../../util/stacks/getStackSeriesIdentifier';\nimport { getValueByDataKey } from '../../../util/ChartUtils';\n\n/**\n * In a stacked chart, each graphical item has its own data. That data could be either:\n * - defined on the chart root, in which case the item gets a unique dataKey\n * - or defined on the item itself, in which case multiple items can share the same dataKey\n *\n * That means we cannot use the dataKey as a unique identifier for the item.\n *\n * This type represents a single data point in a stacked chart, where each key is a series identifier\n * and the value is the numeric value for that series using the numerical axis dataKey.\n */\n\nexport function combineDisplayedStackedData(stackedGraphicalItems, _ref, tooltipAxisSettings) {\n var {\n chartData = []\n } = _ref;\n var {\n allowDuplicatedCategory,\n dataKey: tooltipDataKey\n } = tooltipAxisSettings;\n\n // A map of tooltip data keys to the stacked data points\n var knownItemsByDataKey = new Map();\n stackedGraphicalItems.forEach(item => {\n var _item$data;\n // If there is no data on the individual item then we use the root chart data\n var resolvedData = (_item$data = item.data) !== null && _item$data !== void 0 ? _item$data : chartData;\n if (resolvedData == null || resolvedData.length === 0) {\n // if that didn't work then we skip this item\n return;\n }\n var stackIdentifier = getStackSeriesIdentifier(item);\n resolvedData.forEach((entry, index) => {\n var tooltipValue = tooltipDataKey == null || allowDuplicatedCategory ? index : String(getValueByDataKey(entry, tooltipDataKey, null));\n var numericValue = getValueByDataKey(entry, item.dataKey, 0);\n var curr;\n if (knownItemsByDataKey.has(tooltipValue)) {\n curr = knownItemsByDataKey.get(tooltipValue);\n } else {\n curr = {};\n }\n Object.assign(curr, {\n [stackIdentifier]: numericValue\n });\n knownItemsByDataKey.set(tooltipValue, curr);\n });\n });\n return Array.from(knownItemsByDataKey.values());\n}","/**\n * Some graphical items allow data stacking. The stacks are optional,\n * so all props here are optional too.\n */\n\n/**\n * Some graphical items allow data stacking.\n * This interface is used to represent the items that are stacked\n * because the user has provided the stackId and dataKey properties.\n */\n\nexport function isStacked(graphicalItem) {\n return graphicalItem.stackId != null && graphicalItem.dataKey != null;\n}","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport { createSelector } from 'reselect';\nimport range from 'es-toolkit/compat/range';\nimport * as d3Scales from 'victory-vendor/d3-scale';\nimport { selectChartLayout } from '../../context/chartLayoutContext';\nimport { checkDomainOfScale, getDomainOfStackGroups, getStackedData, getValueByDataKey, isCategoricalAxis } from '../../util/ChartUtils';\nimport { selectChartDataWithIndexes, selectChartDataWithIndexesIfNotInPanorama } from './dataSelectors';\nimport { isWellFormedNumberDomain, numericalDomainSpecifiedWithoutRequiringData, parseNumericalUserDomain } from '../../util/isDomainSpecifiedByUser';\nimport { getPercentValue, hasDuplicate, isNan, isNumber, isNumOrStr, mathSign, upperFirst } from '../../util/DataUtils';\nimport { isWellBehavedNumber } from '../../util/isWellBehavedNumber';\nimport { getNiceTickValues, getTickValuesFixedDomain } from '../../util/scale';\nimport { selectChartHeight, selectChartWidth } from './containerSelectors';\nimport { selectAllXAxes, selectAllYAxes } from './selectAllAxes';\nimport { selectChartOffsetInternal } from './selectChartOffsetInternal';\nimport { selectBrushDimensions, selectBrushSettings } from './brushSelectors';\nimport { selectBarCategoryGap, selectChartName, selectStackOffsetType } from './rootPropsSelectors';\nimport { selectAngleAxis, selectAngleAxisRange, selectRadiusAxis, selectRadiusAxisRange } from './polarAxisSelectors';\nimport { pickAxisType } from './pickAxisType';\nimport { pickAxisId } from './pickAxisId';\nimport { combineAxisRangeWithReverse } from './combiners/combineAxisRangeWithReverse';\nimport { DEFAULT_Y_AXIS_WIDTH } from '../../util/Constants';\nimport { getStackSeriesIdentifier } from '../../util/stacks/getStackSeriesIdentifier';\nimport { selectTooltipAxis } from './selectTooltipAxis';\nimport { combineDisplayedStackedData } from './combiners/combineDisplayedStackedData';\nimport { isStacked } from '../types/StackedGraphicalItem';\nvar defaultNumericDomain = [0, 'auto'];\n\n/**\n * angle, radius, X, Y, and Z axes all have domain and range and scale and associated settings\n */\n\n/**\n * X and Y axes have ticks. Z axis is never displayed and so it lacks ticks\n * and tick settings.\n */\n\n/**\n * If an axis is not explicitly defined as an element,\n * we still need to render something in the chart and we need\n * some object to hold the domain and default settings.\n */\nexport var implicitXAxis = {\n allowDataOverflow: false,\n allowDecimals: true,\n allowDuplicatedCategory: true,\n angle: 0,\n dataKey: undefined,\n domain: undefined,\n height: 30,\n hide: true,\n id: 0,\n includeHidden: false,\n interval: 'preserveEnd',\n minTickGap: 5,\n mirror: false,\n name: undefined,\n orientation: 'bottom',\n padding: {\n left: 0,\n right: 0\n },\n reversed: false,\n scale: 'auto',\n tick: true,\n tickCount: 5,\n tickFormatter: undefined,\n ticks: undefined,\n type: 'category',\n unit: undefined\n};\nexport var selectXAxisSettingsNoDefaults = (state, axisId) => {\n return state.cartesianAxis.xAxis[axisId];\n};\nexport var selectXAxisSettings = (state, axisId) => {\n var axis = selectXAxisSettingsNoDefaults(state, axisId);\n if (axis == null) {\n return implicitXAxis;\n }\n return axis;\n};\n\n/**\n * If an axis is not explicitly defined as an element,\n * we still need to render something in the chart and we need\n * some object to hold the domain and default settings.\n */\nexport var implicitYAxis = {\n allowDataOverflow: false,\n allowDecimals: true,\n allowDuplicatedCategory: true,\n angle: 0,\n dataKey: undefined,\n domain: defaultNumericDomain,\n hide: true,\n id: 0,\n includeHidden: false,\n interval: 'preserveEnd',\n minTickGap: 5,\n mirror: false,\n name: undefined,\n orientation: 'left',\n padding: {\n top: 0,\n bottom: 0\n },\n reversed: false,\n scale: 'auto',\n tick: true,\n tickCount: 5,\n tickFormatter: undefined,\n ticks: undefined,\n type: 'number',\n unit: undefined,\n width: DEFAULT_Y_AXIS_WIDTH\n};\nexport var selectYAxisSettingsNoDefaults = (state, axisId) => {\n return state.cartesianAxis.yAxis[axisId];\n};\nexport var selectYAxisSettings = (state, axisId) => {\n var axis = selectYAxisSettingsNoDefaults(state, axisId);\n if (axis == null) {\n return implicitYAxis;\n }\n return axis;\n};\nexport var implicitZAxis = {\n domain: [0, 'auto'],\n includeHidden: false,\n reversed: false,\n allowDataOverflow: false,\n allowDuplicatedCategory: false,\n dataKey: undefined,\n id: 0,\n name: '',\n range: [64, 64],\n scale: 'auto',\n type: 'number',\n unit: ''\n};\nexport var selectZAxisSettings = (state, axisId) => {\n var axis = state.cartesianAxis.zAxis[axisId];\n if (axis == null) {\n return implicitZAxis;\n }\n return axis;\n};\nexport var selectBaseAxis = (state, axisType, axisId) => {\n switch (axisType) {\n case 'xAxis':\n {\n return selectXAxisSettings(state, axisId);\n }\n case 'yAxis':\n {\n return selectYAxisSettings(state, axisId);\n }\n case 'zAxis':\n {\n return selectZAxisSettings(state, axisId);\n }\n case 'angleAxis':\n {\n return selectAngleAxis(state, axisId);\n }\n case 'radiusAxis':\n {\n return selectRadiusAxis(state, axisId);\n }\n default:\n throw new Error(\"Unexpected axis type: \".concat(axisType));\n }\n};\nvar selectCartesianAxisSettings = (state, axisType, axisId) => {\n switch (axisType) {\n case 'xAxis':\n {\n return selectXAxisSettings(state, axisId);\n }\n case 'yAxis':\n {\n return selectYAxisSettings(state, axisId);\n }\n default:\n throw new Error(\"Unexpected axis type: \".concat(axisType));\n }\n};\n\n/**\n * Selects either an X or Y axis. Doesn't work with Z axis - for that, instead use selectBaseAxis.\n * @param state Root state\n * @param axisType xAxis | yAxis\n * @param axisId xAxisId | yAxisId\n * @returns axis settings object\n */\nexport var selectAxisSettings = (state, axisType, axisId) => {\n switch (axisType) {\n case 'xAxis':\n {\n return selectXAxisSettings(state, axisId);\n }\n case 'yAxis':\n {\n return selectYAxisSettings(state, axisId);\n }\n case 'angleAxis':\n {\n return selectAngleAxis(state, axisId);\n }\n case 'radiusAxis':\n {\n return selectRadiusAxis(state, axisId);\n }\n default:\n throw new Error(\"Unexpected axis type: \".concat(axisType));\n }\n};\n\n/**\n * @param state RechartsRootState\n * @return boolean true if there is at least one Bar or RadialBar\n */\nexport var selectHasBar = state => state.graphicalItems.cartesianItems.some(item => item.type === 'bar') || state.graphicalItems.polarItems.some(item => item.type === 'radialBar');\n\n/**\n * Filters CartesianGraphicalItemSettings by the relevant axis ID\n * @param axisType 'xAxis' | 'yAxis' | 'zAxis' | 'radiusAxis' | 'angleAxis'\n * @param axisId from props, defaults to 0\n *\n * @returns Predicate function that return true for CartesianGraphicalItemSettings that are relevant to the specified axis\n */\nexport function itemAxisPredicate(axisType, axisId) {\n return item => {\n switch (axisType) {\n case 'xAxis':\n // This is sensitive to the data type, as 0 !== '0'. I wonder if we should be more flexible. How does 2.x branch behave? TODO write test for that\n return 'xAxisId' in item && item.xAxisId === axisId;\n case 'yAxis':\n return 'yAxisId' in item && item.yAxisId === axisId;\n case 'zAxis':\n return 'zAxisId' in item && item.zAxisId === axisId;\n case 'angleAxis':\n return 'angleAxisId' in item && item.angleAxisId === axisId;\n case 'radiusAxis':\n return 'radiusAxisId' in item && item.radiusAxisId === axisId;\n default:\n return false;\n }\n };\n}\nexport var selectUnfilteredCartesianItems = state => state.graphicalItems.cartesianItems;\nvar selectAxisPredicate = createSelector([pickAxisType, pickAxisId], itemAxisPredicate);\nexport var combineGraphicalItemsSettings = (graphicalItems, axisSettings, axisPredicate) => graphicalItems.filter(axisPredicate).filter(item => {\n if ((axisSettings === null || axisSettings === void 0 ? void 0 : axisSettings.includeHidden) === true) {\n return true;\n }\n return !item.hide;\n});\nexport var selectCartesianItemsSettings = createSelector([selectUnfilteredCartesianItems, selectBaseAxis, selectAxisPredicate], combineGraphicalItemsSettings);\nexport var selectStackedCartesianItemsSettings = createSelector([selectCartesianItemsSettings], cartesianItems => {\n return cartesianItems.filter(item => item.type === 'area' || item.type === 'bar').filter(isStacked);\n});\nexport var filterGraphicalNotStackedItems = cartesianItems => cartesianItems.filter(item => !('stackId' in item) || item.stackId === undefined);\nvar selectCartesianItemsSettingsExceptStacked = createSelector([selectCartesianItemsSettings], filterGraphicalNotStackedItems);\nexport var combineGraphicalItemsData = cartesianItems => cartesianItems.map(item => item.data).filter(Boolean).flat(1);\n\n/**\n * This is a \"cheap\" selector - it returns the data but doesn't iterate them, so it is not sensitive on the array length.\n * Also does not apply dataKey yet.\n * @param state RechartsRootState\n * @returns data defined on the chart graphical items, such as Line or Scatter or Pie, and filtered with appropriate dataKey\n */\nexport var selectCartesianGraphicalItemsData = createSelector([selectCartesianItemsSettings], combineGraphicalItemsData);\nexport var combineDisplayedData = (graphicalItemsData, _ref) => {\n var {\n chartData = [],\n dataStartIndex,\n dataEndIndex\n } = _ref;\n if (graphicalItemsData.length > 0) {\n /*\n * There is no slicing when data is defined on graphical items. Why?\n * Because Brush ignores data defined on graphical items,\n * and does not render.\n * So Brush will never show up in a Scatter chart for example.\n * This is something we will need to fix.\n *\n * Now, when the root chart data is not defined, the dataEndIndex is 0,\n * which means the itemsData will be sliced to an empty array anyway.\n * But that's an implementation detail, and we can fix that too.\n *\n * Also, in absence of Axis dataKey, we use the dataKey from each item, respectively.\n * This is the usual pattern for numerical axis, that is the one where bars go up:\n * users don't specify any dataKey by default and expect the axis to \"just match the data\".\n */\n return graphicalItemsData;\n }\n return chartData.slice(dataStartIndex, dataEndIndex + 1);\n};\n\n/**\n * This selector will return all data there is in the chart: graphical items, chart root, all together.\n * Useful for figuring out an axis domain (because that needs to know of everything),\n * not useful for rendering individual graphical elements (because they need to know which data is theirs and which is not).\n *\n * This function will discard the original indexes, so it is also not useful for anything that depends on ordering.\n */\nexport var selectDisplayedData = createSelector([selectCartesianGraphicalItemsData, selectChartDataWithIndexesIfNotInPanorama], combineDisplayedData);\nexport var combineAppliedValues = (data, axisSettings, items) => {\n if ((axisSettings === null || axisSettings === void 0 ? void 0 : axisSettings.dataKey) != null) {\n return data.map(item => ({\n value: getValueByDataKey(item, axisSettings.dataKey)\n }));\n }\n if (items.length > 0) {\n return items.map(item => item.dataKey).flatMap(dataKey => data.map(entry => ({\n value: getValueByDataKey(entry, dataKey)\n })));\n }\n return data.map(entry => ({\n value: entry\n }));\n};\n\n/**\n * This selector will return all values with the appropriate dataKey applied on them.\n * Which dataKey is appropriate depends on where it is defined.\n *\n * This is an expensive selector - it will iterate all data and compute their value using the provided dataKey.\n */\nexport var selectAllAppliedValues = createSelector([selectDisplayedData, selectBaseAxis, selectCartesianItemsSettings], combineAppliedValues);\nexport function isErrorBarRelevantForAxisType(axisType, errorBar) {\n switch (axisType) {\n case 'xAxis':\n return errorBar.direction === 'x';\n case 'yAxis':\n return errorBar.direction === 'y';\n default:\n return false;\n }\n}\n\n/**\n * This is type of \"error\" in chart. It is set by using ErrorBar, and it can represent confidence interval,\n * or gap in the data, or standard deviation, or quartiles in boxplot, or whiskers or whatever.\n *\n * We will internally represent it as a tuple of two numbers, where the first number is the lower bound and the second number is the upper bound.\n *\n * It is also true that the first number should be lower than or equal to the associated \"main value\",\n * and the second number should be higher than or equal to the associated \"main value\".\n */\n\nexport function fromMainValueToError(value) {\n if (isNumber(value) && Number.isFinite(value)) {\n return [value, value];\n }\n if (Array.isArray(value)) {\n var minError = Math.min(...value);\n var maxError = Math.max(...value);\n if (!isNan(minError) && !isNan(maxError) && Number.isFinite(minError) && Number.isFinite(maxError)) {\n return [minError, maxError];\n }\n }\n return undefined;\n}\nfunction onlyAllowNumbers(data) {\n return data.filter(v => isNumOrStr(v) || v instanceof Date).map(Number).filter(n => isNan(n) === false);\n}\n\n/**\n * @param entry One item in the 'data' array. Could be anything really - this is defined externally. This is the raw, before dataKey application\n * @param appliedValue This is the result of applying the 'main' dataKey on the `entry`.\n * @param relevantErrorBars Error bars that are relevant for the current axis and layout and all that.\n * @return either undefined or an array of ErrorValue\n */\nexport function getErrorDomainByDataKey(entry, appliedValue, relevantErrorBars) {\n if (!relevantErrorBars || typeof appliedValue !== 'number' || isNan(appliedValue)) {\n return [];\n }\n if (!relevantErrorBars.length) {\n return [];\n }\n return onlyAllowNumbers(relevantErrorBars.flatMap(eb => {\n var errorValue = getValueByDataKey(entry, eb.dataKey);\n var lowBound, highBound;\n if (Array.isArray(errorValue)) {\n [lowBound, highBound] = errorValue;\n } else {\n lowBound = highBound = errorValue;\n }\n if (!isWellBehavedNumber(lowBound) || !isWellBehavedNumber(highBound)) {\n return undefined;\n }\n return [appliedValue - lowBound, appliedValue + highBound];\n }));\n}\nexport var selectDisplayedStackedData = createSelector([selectStackedCartesianItemsSettings, selectChartDataWithIndexesIfNotInPanorama, selectTooltipAxis], combineDisplayedStackedData);\nexport var combineStackGroups = (displayedData, items, stackOffsetType) => {\n var initialItemsGroups = {};\n var itemsGroup = items.reduce((acc, item) => {\n if (item.stackId == null) {\n return acc;\n }\n if (acc[item.stackId] == null) {\n acc[item.stackId] = [];\n }\n acc[item.stackId].push(item);\n return acc;\n }, initialItemsGroups);\n return Object.fromEntries(Object.entries(itemsGroup).map(_ref2 => {\n var [stackId, graphicalItems] = _ref2;\n var dataKeys = graphicalItems.map(getStackSeriesIdentifier);\n return [stackId, {\n // @ts-expect-error getStackedData requires that the input is array of objects, Recharts does not test for that\n stackedData: getStackedData(displayedData, dataKeys, stackOffsetType),\n graphicalItems\n }];\n }));\n};\n\n/**\n * Stack groups are groups of graphical items that stack on each other.\n * Stack is a function of axis type (X, Y), axis ID, and stack ID.\n * Graphical items that do not have a stack ID are not going to be present in stack groups.\n */\nexport var selectStackGroups = createSelector([selectDisplayedStackedData, selectStackedCartesianItemsSettings, selectStackOffsetType], combineStackGroups);\nexport var combineDomainOfStackGroups = (stackGroups, _ref3, axisType) => {\n var {\n dataStartIndex,\n dataEndIndex\n } = _ref3;\n if (axisType === 'zAxis') {\n // ZAxis ignores stacks\n return undefined;\n }\n var domainOfStackGroups = getDomainOfStackGroups(stackGroups, dataStartIndex, dataEndIndex);\n if (domainOfStackGroups != null && domainOfStackGroups[0] === 0 && domainOfStackGroups[1] === 0) {\n return undefined;\n }\n return domainOfStackGroups;\n};\nexport var selectDomainOfStackGroups = createSelector([selectStackGroups, selectChartDataWithIndexes, pickAxisType], combineDomainOfStackGroups);\nexport var combineAppliedNumericalValuesIncludingErrorValues = (data, axisSettings, items, errorBars, axisType) => {\n if (items.length > 0) {\n return data.flatMap(entry => {\n return items.flatMap(item => {\n var _errorBars$item$id, _axisSettings$dataKey;\n var relevantErrorBars = (_errorBars$item$id = errorBars[item.id]) === null || _errorBars$item$id === void 0 ? void 0 : _errorBars$item$id.filter(errorBar => isErrorBarRelevantForAxisType(axisType, errorBar));\n var valueByDataKey = getValueByDataKey(entry, (_axisSettings$dataKey = axisSettings.dataKey) !== null && _axisSettings$dataKey !== void 0 ? _axisSettings$dataKey : item.dataKey);\n return {\n value: valueByDataKey,\n errorDomain: getErrorDomainByDataKey(entry, valueByDataKey, relevantErrorBars)\n };\n });\n }).filter(Boolean);\n }\n if ((axisSettings === null || axisSettings === void 0 ? void 0 : axisSettings.dataKey) != null) {\n return data.map(item => ({\n value: getValueByDataKey(item, axisSettings.dataKey),\n errorDomain: []\n }));\n }\n return data.map(entry => ({\n value: entry,\n errorDomain: []\n }));\n};\nexport var selectAllErrorBarSettings = state => state.errorBars;\nvar combineRelevantErrorBarSettings = (cartesianItemsSettings, allErrorBarSettings, axisType) => {\n return cartesianItemsSettings.flatMap(item => {\n return allErrorBarSettings[item.id];\n }).filter(Boolean).filter(e => {\n return isErrorBarRelevantForAxisType(axisType, e);\n });\n};\nexport var selectErrorBarsSettingsExceptStacked = createSelector([selectCartesianItemsSettingsExceptStacked, selectAllErrorBarSettings, pickAxisType], combineRelevantErrorBarSettings);\nexport var selectAllAppliedNumericalValuesIncludingErrorValues = createSelector([selectDisplayedData, selectBaseAxis, selectCartesianItemsSettingsExceptStacked, selectAllErrorBarSettings, pickAxisType], combineAppliedNumericalValuesIncludingErrorValues);\nfunction onlyAllowNumbersAndStringsAndDates(item) {\n var {\n value\n } = item;\n if (isNumOrStr(value) || value instanceof Date) {\n return value;\n }\n return undefined;\n}\nvar computeNumericalDomain = dataWithErrorDomains => {\n var allDataSquished = dataWithErrorDomains\n // This flatMap has to be flat because we're creating a new array in the return value\n .flatMap(d => [d.value, d.errorDomain])\n // This flat is needed because a) errorDomain is an array, and b) value may be a number, or it may be a range (for Area, for example)\n .flat(1);\n var onlyNumbers = onlyAllowNumbers(allDataSquished);\n if (onlyNumbers.length === 0) {\n return undefined;\n }\n return [Math.min(...onlyNumbers), Math.max(...onlyNumbers)];\n};\nvar computeDomainOfTypeCategory = (allDataSquished, axisSettings, isCategorical) => {\n var categoricalDomain = allDataSquished.map(onlyAllowNumbersAndStringsAndDates).filter(v => v != null);\n if (isCategorical && (axisSettings.dataKey == null || axisSettings.allowDuplicatedCategory && hasDuplicate(categoricalDomain))) {\n /*\n * 1. In an absence of dataKey, Recharts will use array indexes as its categorical domain\n * 2. When category axis has duplicated text, serial numbers are used to generate scale\n */\n return range(0, allDataSquished.length);\n }\n if (axisSettings.allowDuplicatedCategory) {\n return categoricalDomain;\n }\n return Array.from(new Set(categoricalDomain));\n};\nexport var getDomainDefinition = axisSettings => {\n var _axisSettings$domain;\n if (axisSettings == null || !('domain' in axisSettings)) {\n return defaultNumericDomain;\n }\n if (axisSettings.domain != null) {\n return axisSettings.domain;\n }\n if (axisSettings.ticks != null) {\n if (axisSettings.type === 'number') {\n var allValues = onlyAllowNumbers(axisSettings.ticks);\n return [Math.min(...allValues), Math.max(...allValues)];\n }\n if (axisSettings.type === 'category') {\n return axisSettings.ticks.map(String);\n }\n }\n return (_axisSettings$domain = axisSettings === null || axisSettings === void 0 ? void 0 : axisSettings.domain) !== null && _axisSettings$domain !== void 0 ? _axisSettings$domain : defaultNumericDomain;\n};\nexport var mergeDomains = function mergeDomains() {\n for (var _len = arguments.length, domains = new Array(_len), _key = 0; _key < _len; _key++) {\n domains[_key] = arguments[_key];\n }\n var allDomains = domains.filter(Boolean);\n if (allDomains.length === 0) {\n return undefined;\n }\n var allValues = allDomains.flat();\n var min = Math.min(...allValues);\n var max = Math.max(...allValues);\n return [min, max];\n};\nexport var selectReferenceDots = state => state.referenceElements.dots;\nexport var filterReferenceElements = (elements, axisType, axisId) => {\n return elements.filter(el => el.ifOverflow === 'extendDomain').filter(el => {\n if (axisType === 'xAxis') {\n return el.xAxisId === axisId;\n }\n return el.yAxisId === axisId;\n });\n};\nexport var selectReferenceDotsByAxis = createSelector([selectReferenceDots, pickAxisType, pickAxisId], filterReferenceElements);\nexport var selectReferenceAreas = state => state.referenceElements.areas;\nexport var selectReferenceAreasByAxis = createSelector([selectReferenceAreas, pickAxisType, pickAxisId], filterReferenceElements);\nexport var selectReferenceLines = state => state.referenceElements.lines;\nexport var selectReferenceLinesByAxis = createSelector([selectReferenceLines, pickAxisType, pickAxisId], filterReferenceElements);\nexport var combineDotsDomain = (dots, axisType) => {\n var allCoords = onlyAllowNumbers(dots.map(dot => axisType === 'xAxis' ? dot.x : dot.y));\n if (allCoords.length === 0) {\n return undefined;\n }\n return [Math.min(...allCoords), Math.max(...allCoords)];\n};\nvar selectReferenceDotsDomain = createSelector(selectReferenceDotsByAxis, pickAxisType, combineDotsDomain);\nexport var combineAreasDomain = (areas, axisType) => {\n var allCoords = onlyAllowNumbers(areas.flatMap(area => [axisType === 'xAxis' ? area.x1 : area.y1, axisType === 'xAxis' ? area.x2 : area.y2]));\n if (allCoords.length === 0) {\n return undefined;\n }\n return [Math.min(...allCoords), Math.max(...allCoords)];\n};\nvar selectReferenceAreasDomain = createSelector([selectReferenceAreasByAxis, pickAxisType], combineAreasDomain);\nexport var combineLinesDomain = (lines, axisType) => {\n var allCoords = onlyAllowNumbers(lines.map(line => axisType === 'xAxis' ? line.x : line.y));\n if (allCoords.length === 0) {\n return undefined;\n }\n return [Math.min(...allCoords), Math.max(...allCoords)];\n};\nvar selectReferenceLinesDomain = createSelector(selectReferenceLinesByAxis, pickAxisType, combineLinesDomain);\nvar selectReferenceElementsDomain = createSelector(selectReferenceDotsDomain, selectReferenceLinesDomain, selectReferenceAreasDomain, (dotsDomain, linesDomain, areasDomain) => {\n return mergeDomains(dotsDomain, areasDomain, linesDomain);\n});\nexport var selectDomainDefinition = createSelector([selectBaseAxis], getDomainDefinition);\nexport var combineNumericalDomain = (axisSettings, domainDefinition, domainOfStackGroups, allDataWithErrorDomains, referenceElementsDomain, layout, axisType) => {\n var domainFromUserPreference = numericalDomainSpecifiedWithoutRequiringData(domainDefinition, axisSettings.allowDataOverflow);\n if (domainFromUserPreference != null) {\n // We're done! No need to compute anything else.\n return domainFromUserPreference;\n }\n var shouldIncludeDomainOfStackGroups = layout === 'vertical' && axisType === 'xAxis' || layout === 'horizontal' && axisType === 'yAxis';\n var mergedDomains = shouldIncludeDomainOfStackGroups ? mergeDomains(domainOfStackGroups, referenceElementsDomain, computeNumericalDomain(allDataWithErrorDomains)) : mergeDomains(referenceElementsDomain, computeNumericalDomain(allDataWithErrorDomains));\n return parseNumericalUserDomain(domainDefinition, mergedDomains, axisSettings.allowDataOverflow);\n};\nexport var selectNumericalDomain = createSelector([selectBaseAxis, selectDomainDefinition, selectDomainOfStackGroups, selectAllAppliedNumericalValuesIncludingErrorValues, selectReferenceElementsDomain, selectChartLayout, pickAxisType], combineNumericalDomain);\n\n/**\n * Expand by design maps everything between 0 and 1,\n * there is nothing to compute.\n * See https://d3js.org/d3-shape/stack#stack-offsets\n */\nvar expandDomain = [0, 1];\nexport var combineAxisDomain = (axisSettings, layout, displayedData, allAppliedValues, stackOffsetType, axisType, numericalDomain) => {\n if ((axisSettings == null || displayedData == null || displayedData.length === 0) && numericalDomain === undefined) {\n return undefined;\n }\n var {\n dataKey,\n type\n } = axisSettings;\n var isCategorical = isCategoricalAxis(layout, axisType);\n if (isCategorical && dataKey == null) {\n return range(0, displayedData.length);\n }\n if (type === 'category') {\n return computeDomainOfTypeCategory(allAppliedValues, axisSettings, isCategorical);\n }\n if (stackOffsetType === 'expand') {\n return expandDomain;\n }\n return numericalDomain;\n};\nexport var selectAxisDomain = createSelector([selectBaseAxis, selectChartLayout, selectDisplayedData, selectAllAppliedValues, selectStackOffsetType, pickAxisType, selectNumericalDomain], combineAxisDomain);\nexport var combineRealScaleType = (axisConfig, layout, hasBar, chartType, axisType) => {\n if (axisConfig == null) {\n return undefined;\n }\n var {\n scale,\n type\n } = axisConfig;\n if (scale === 'auto') {\n if (layout === 'radial' && axisType === 'radiusAxis') {\n return 'band';\n }\n if (layout === 'radial' && axisType === 'angleAxis') {\n return 'linear';\n }\n if (type === 'category' && chartType && (chartType.indexOf('LineChart') >= 0 || chartType.indexOf('AreaChart') >= 0 || chartType.indexOf('ComposedChart') >= 0 && !hasBar)) {\n return 'point';\n }\n if (type === 'category') {\n return 'band';\n }\n return 'linear';\n }\n if (typeof scale === 'string') {\n var name = \"scale\".concat(upperFirst(scale));\n return name in d3Scales ? name : 'point';\n }\n return undefined;\n};\nexport var selectRealScaleType = createSelector([selectBaseAxis, selectChartLayout, selectHasBar, selectChartName, pickAxisType], combineRealScaleType);\nfunction getD3ScaleFromType(realScaleType) {\n if (realScaleType == null) {\n return undefined;\n }\n if (realScaleType in d3Scales) {\n // @ts-expect-error we should do better type verification here\n return d3Scales[realScaleType]();\n }\n var name = \"scale\".concat(upperFirst(realScaleType));\n if (name in d3Scales) {\n // @ts-expect-error we should do better type verification here\n return d3Scales[name]();\n }\n return undefined;\n}\nexport function combineScaleFunction(axis, realScaleType, axisDomain, axisRange) {\n if (axisDomain == null || axisRange == null) {\n return undefined;\n }\n if (typeof axis.scale === 'function') {\n // @ts-expect-error we're going to assume here that if axis.scale is a function then it is a d3Scale function\n return axis.scale.copy().domain(axisDomain).range(axisRange);\n }\n var d3ScaleFunction = getD3ScaleFromType(realScaleType);\n if (d3ScaleFunction == null) {\n return undefined;\n }\n var scale = d3ScaleFunction.domain(axisDomain).range(axisRange);\n // I don't like this function because it mutates the scale. We should come up with a way to compute the domain up front.\n checkDomainOfScale(scale);\n return scale;\n}\nexport var combineNiceTicks = (axisDomain, axisSettings, realScaleType) => {\n var domainDefinition = getDomainDefinition(axisSettings);\n if (realScaleType !== 'auto' && realScaleType !== 'linear') {\n return undefined;\n }\n if (axisSettings != null && axisSettings.tickCount && Array.isArray(domainDefinition) && (domainDefinition[0] === 'auto' || domainDefinition[1] === 'auto') && isWellFormedNumberDomain(axisDomain)) {\n return getNiceTickValues(axisDomain, axisSettings.tickCount, axisSettings.allowDecimals);\n }\n if (axisSettings != null && axisSettings.tickCount && axisSettings.type === 'number' && isWellFormedNumberDomain(axisDomain)) {\n return getTickValuesFixedDomain(axisDomain, axisSettings.tickCount, axisSettings.allowDecimals);\n }\n return undefined;\n};\nexport var selectNiceTicks = createSelector([selectAxisDomain, selectAxisSettings, selectRealScaleType], combineNiceTicks);\nexport var combineAxisDomainWithNiceTicks = (axisSettings, domain, niceTicks, axisType) => {\n if (\n /*\n * Angle axis for some reason uses nice ticks when rendering axis tick labels,\n * but doesn't use nice ticks for extending domain like all the other axes do.\n * Not really sure why? Is there a good reason,\n * or is it just because someone added support for nice ticks to the other axes and forgot this one?\n */\n axisType !== 'angleAxis' && (axisSettings === null || axisSettings === void 0 ? void 0 : axisSettings.type) === 'number' && isWellFormedNumberDomain(domain) && Array.isArray(niceTicks) && niceTicks.length > 0) {\n var minFromDomain = domain[0];\n var minFromTicks = niceTicks[0];\n var maxFromDomain = domain[1];\n var maxFromTicks = niceTicks[niceTicks.length - 1];\n return [Math.min(minFromDomain, minFromTicks), Math.max(maxFromDomain, maxFromTicks)];\n }\n return domain;\n};\nexport var selectAxisDomainIncludingNiceTicks = createSelector([selectBaseAxis, selectAxisDomain, selectNiceTicks, pickAxisType], combineAxisDomainWithNiceTicks);\n\n/**\n * Returns the smallest gap, between two numbers in the data, as a ratio of the whole range (max - min).\n * Ignores domain provided by user and only considers domain from data.\n *\n * The result is a number between 0 and 1.\n */\nexport var selectSmallestDistanceBetweenValues = createSelector(selectAllAppliedValues, selectBaseAxis, (allDataSquished, axisSettings) => {\n if (!axisSettings || axisSettings.type !== 'number') {\n return undefined;\n }\n var smallestDistanceBetweenValues = Infinity;\n var sortedValues = Array.from(onlyAllowNumbers(allDataSquished.map(d => d.value))).sort((a, b) => a - b);\n if (sortedValues.length < 2) {\n return Infinity;\n }\n var diff = sortedValues[sortedValues.length - 1] - sortedValues[0];\n if (diff === 0) {\n return Infinity;\n }\n // Only do n - 1 distance calculations because there's only n - 1 distances between n values.\n for (var i = 0; i < sortedValues.length - 1; i++) {\n var distance = sortedValues[i + 1] - sortedValues[i];\n smallestDistanceBetweenValues = Math.min(smallestDistanceBetweenValues, distance);\n }\n return smallestDistanceBetweenValues / diff;\n});\nvar selectCalculatedPadding = createSelector(selectSmallestDistanceBetweenValues, selectChartLayout, selectBarCategoryGap, selectChartOffsetInternal, (_1, _2, _3, padding) => padding, (smallestDistanceInPercent, layout, barCategoryGap, offset, padding) => {\n if (!isWellBehavedNumber(smallestDistanceInPercent)) {\n return 0;\n }\n var rangeWidth = layout === 'vertical' ? offset.height : offset.width;\n if (padding === 'gap') {\n return smallestDistanceInPercent * rangeWidth / 2;\n }\n if (padding === 'no-gap') {\n var gap = getPercentValue(barCategoryGap, smallestDistanceInPercent * rangeWidth);\n var halfBand = smallestDistanceInPercent * rangeWidth / 2;\n return halfBand - gap - (halfBand - gap) / rangeWidth * gap;\n }\n return 0;\n});\nexport var selectCalculatedXAxisPadding = (state, axisId) => {\n var xAxisSettings = selectXAxisSettings(state, axisId);\n if (xAxisSettings == null || typeof xAxisSettings.padding !== 'string') {\n return 0;\n }\n return selectCalculatedPadding(state, 'xAxis', axisId, xAxisSettings.padding);\n};\nexport var selectCalculatedYAxisPadding = (state, axisId) => {\n var yAxisSettings = selectYAxisSettings(state, axisId);\n if (yAxisSettings == null || typeof yAxisSettings.padding !== 'string') {\n return 0;\n }\n return selectCalculatedPadding(state, 'yAxis', axisId, yAxisSettings.padding);\n};\nvar selectXAxisPadding = createSelector(selectXAxisSettings, selectCalculatedXAxisPadding, (xAxisSettings, calculated) => {\n var _padding$left, _padding$right;\n if (xAxisSettings == null) {\n return {\n left: 0,\n right: 0\n };\n }\n var {\n padding\n } = xAxisSettings;\n if (typeof padding === 'string') {\n return {\n left: calculated,\n right: calculated\n };\n }\n return {\n left: ((_padding$left = padding.left) !== null && _padding$left !== void 0 ? _padding$left : 0) + calculated,\n right: ((_padding$right = padding.right) !== null && _padding$right !== void 0 ? _padding$right : 0) + calculated\n };\n});\nvar selectYAxisPadding = createSelector(selectYAxisSettings, selectCalculatedYAxisPadding, (yAxisSettings, calculated) => {\n var _padding$top, _padding$bottom;\n if (yAxisSettings == null) {\n return {\n top: 0,\n bottom: 0\n };\n }\n var {\n padding\n } = yAxisSettings;\n if (typeof padding === 'string') {\n return {\n top: calculated,\n bottom: calculated\n };\n }\n return {\n top: ((_padding$top = padding.top) !== null && _padding$top !== void 0 ? _padding$top : 0) + calculated,\n bottom: ((_padding$bottom = padding.bottom) !== null && _padding$bottom !== void 0 ? _padding$bottom : 0) + calculated\n };\n});\nexport var combineXAxisRange = createSelector([selectChartOffsetInternal, selectXAxisPadding, selectBrushDimensions, selectBrushSettings, (_state, _axisId, isPanorama) => isPanorama], (offset, padding, brushDimensions, _ref4, isPanorama) => {\n var {\n padding: brushPadding\n } = _ref4;\n if (isPanorama) {\n return [brushPadding.left, brushDimensions.width - brushPadding.right];\n }\n return [offset.left + padding.left, offset.left + offset.width - padding.right];\n});\nexport var combineYAxisRange = createSelector([selectChartOffsetInternal, selectChartLayout, selectYAxisPadding, selectBrushDimensions, selectBrushSettings, (_state, _axisId, isPanorama) => isPanorama], (offset, layout, padding, brushDimensions, _ref5, isPanorama) => {\n var {\n padding: brushPadding\n } = _ref5;\n if (isPanorama) {\n return [brushDimensions.height - brushPadding.bottom, brushPadding.top];\n }\n if (layout === 'horizontal') {\n return [offset.top + offset.height - padding.bottom, offset.top + padding.top];\n }\n return [offset.top + padding.top, offset.top + offset.height - padding.bottom];\n});\nexport var selectAxisRange = (state, axisType, axisId, isPanorama) => {\n var _selectZAxisSettings;\n switch (axisType) {\n case 'xAxis':\n return combineXAxisRange(state, axisId, isPanorama);\n case 'yAxis':\n return combineYAxisRange(state, axisId, isPanorama);\n case 'zAxis':\n return (_selectZAxisSettings = selectZAxisSettings(state, axisId)) === null || _selectZAxisSettings === void 0 ? void 0 : _selectZAxisSettings.range;\n case 'angleAxis':\n return selectAngleAxisRange(state);\n case 'radiusAxis':\n return selectRadiusAxisRange(state, axisId);\n default:\n return undefined;\n }\n};\nexport var selectAxisRangeWithReverse = createSelector([selectBaseAxis, selectAxisRange], combineAxisRangeWithReverse);\nexport var selectAxisScale = createSelector([selectBaseAxis, selectRealScaleType, selectAxisDomainIncludingNiceTicks, selectAxisRangeWithReverse], combineScaleFunction);\nexport var selectErrorBarsSettings = createSelector([selectCartesianItemsSettings, selectAllErrorBarSettings, pickAxisType], combineRelevantErrorBarSettings);\nfunction compareIds(a, b) {\n if (a.id < b.id) {\n return -1;\n }\n if (a.id > b.id) {\n return 1;\n }\n return 0;\n}\nvar pickAxisOrientation = (_state, orientation) => orientation;\nvar pickMirror = (_state, _orientation, mirror) => mirror;\nvar selectAllXAxesWithOffsetType = createSelector(selectAllXAxes, pickAxisOrientation, pickMirror, (allAxes, orientation, mirror) => allAxes.filter(axis => axis.orientation === orientation).filter(axis => axis.mirror === mirror).sort(compareIds));\nvar selectAllYAxesWithOffsetType = createSelector(selectAllYAxes, pickAxisOrientation, pickMirror, (allAxes, orientation, mirror) => allAxes.filter(axis => axis.orientation === orientation).filter(axis => axis.mirror === mirror).sort(compareIds));\nvar getXAxisSize = (offset, axisSettings) => {\n return {\n width: offset.width,\n height: axisSettings.height\n };\n};\nvar getYAxisSize = (offset, axisSettings) => {\n var width = typeof axisSettings.width === 'number' ? axisSettings.width : DEFAULT_Y_AXIS_WIDTH;\n return {\n width,\n height: offset.height\n };\n};\nexport var selectXAxisSize = createSelector(selectChartOffsetInternal, selectXAxisSettings, getXAxisSize);\nvar combineXAxisPositionStartingPoint = (offset, orientation, chartHeight) => {\n switch (orientation) {\n case 'top':\n return offset.top;\n case 'bottom':\n return chartHeight - offset.bottom;\n default:\n return 0;\n }\n};\nvar combineYAxisPositionStartingPoint = (offset, orientation, chartWidth) => {\n switch (orientation) {\n case 'left':\n return offset.left;\n case 'right':\n return chartWidth - offset.right;\n default:\n return 0;\n }\n};\nexport var selectAllXAxesOffsetSteps = createSelector(selectChartHeight, selectChartOffsetInternal, selectAllXAxesWithOffsetType, pickAxisOrientation, pickMirror, (chartHeight, offset, allAxesWithSameOffsetType, orientation, mirror) => {\n var steps = {};\n var position;\n allAxesWithSameOffsetType.forEach(axis => {\n var axisSize = getXAxisSize(offset, axis);\n if (position == null) {\n position = combineXAxisPositionStartingPoint(offset, orientation, chartHeight);\n }\n var needSpace = orientation === 'top' && !mirror || orientation === 'bottom' && mirror;\n steps[axis.id] = position - Number(needSpace) * axisSize.height;\n position += (needSpace ? -1 : 1) * axisSize.height;\n });\n return steps;\n});\nexport var selectAllYAxesOffsetSteps = createSelector(selectChartWidth, selectChartOffsetInternal, selectAllYAxesWithOffsetType, pickAxisOrientation, pickMirror, (chartWidth, offset, allAxesWithSameOffsetType, orientation, mirror) => {\n var steps = {};\n var position;\n allAxesWithSameOffsetType.forEach(axis => {\n var axisSize = getYAxisSize(offset, axis);\n if (position == null) {\n position = combineYAxisPositionStartingPoint(offset, orientation, chartWidth);\n }\n var needSpace = orientation === 'left' && !mirror || orientation === 'right' && mirror;\n steps[axis.id] = position - Number(needSpace) * axisSize.width;\n position += (needSpace ? -1 : 1) * axisSize.width;\n });\n return steps;\n});\nvar selectXAxisOffsetSteps = (state, axisId) => {\n var axisSettings = selectXAxisSettings(state, axisId);\n if (axisSettings == null) {\n return undefined;\n }\n return selectAllXAxesOffsetSteps(state, axisSettings.orientation, axisSettings.mirror);\n};\nexport var selectXAxisPosition = createSelector([selectChartOffsetInternal, selectXAxisSettings, selectXAxisOffsetSteps, (_, axisId) => axisId], (offset, axisSettings, allSteps, axisId) => {\n if (axisSettings == null) {\n return undefined;\n }\n var stepOfThisAxis = allSteps === null || allSteps === void 0 ? void 0 : allSteps[axisId];\n if (stepOfThisAxis == null) {\n return {\n x: offset.left,\n y: 0\n };\n }\n return {\n x: offset.left,\n y: stepOfThisAxis\n };\n});\nvar selectYAxisOffsetSteps = (state, axisId) => {\n var axisSettings = selectYAxisSettings(state, axisId);\n if (axisSettings == null) {\n return undefined;\n }\n return selectAllYAxesOffsetSteps(state, axisSettings.orientation, axisSettings.mirror);\n};\nexport var selectYAxisPosition = createSelector([selectChartOffsetInternal, selectYAxisSettings, selectYAxisOffsetSteps, (_, axisId) => axisId], (offset, axisSettings, allSteps, axisId) => {\n if (axisSettings == null) {\n return undefined;\n }\n var stepOfThisAxis = allSteps === null || allSteps === void 0 ? void 0 : allSteps[axisId];\n if (stepOfThisAxis == null) {\n return {\n x: 0,\n y: offset.top\n };\n }\n return {\n x: stepOfThisAxis,\n y: offset.top\n };\n});\nexport var selectYAxisSize = createSelector(selectChartOffsetInternal, selectYAxisSettings, (offset, axisSettings) => {\n var width = typeof axisSettings.width === 'number' ? axisSettings.width : DEFAULT_Y_AXIS_WIDTH;\n return {\n width,\n height: offset.height\n };\n});\nexport var selectCartesianAxisSize = (state, axisType, axisId) => {\n switch (axisType) {\n case 'xAxis':\n {\n return selectXAxisSize(state, axisId).width;\n }\n case 'yAxis':\n {\n return selectYAxisSize(state, axisId).height;\n }\n default:\n {\n return undefined;\n }\n }\n};\nexport var combineDuplicateDomain = (chartLayout, appliedValues, axis, axisType) => {\n if (axis == null) {\n return undefined;\n }\n var {\n allowDuplicatedCategory,\n type,\n dataKey\n } = axis;\n var isCategorical = isCategoricalAxis(chartLayout, axisType);\n var allData = appliedValues.map(av => av.value);\n if (dataKey && isCategorical && type === 'category' && allowDuplicatedCategory && hasDuplicate(allData)) {\n return allData;\n }\n return undefined;\n};\nexport var selectDuplicateDomain = createSelector([selectChartLayout, selectAllAppliedValues, selectBaseAxis, pickAxisType], combineDuplicateDomain);\nexport var combineCategoricalDomain = (layout, appliedValues, axis, axisType) => {\n if (axis == null || axis.dataKey == null) {\n return undefined;\n }\n var {\n type,\n scale\n } = axis;\n var isCategorical = isCategoricalAxis(layout, axisType);\n if (isCategorical && (type === 'number' || scale !== 'auto')) {\n return appliedValues.map(d => d.value);\n }\n return undefined;\n};\nexport var selectCategoricalDomain = createSelector([selectChartLayout, selectAllAppliedValues, selectAxisSettings, pickAxisType], combineCategoricalDomain);\nexport var selectAxisPropsNeededForCartesianGridTicksGenerator = createSelector([selectChartLayout, selectCartesianAxisSettings, selectRealScaleType, selectAxisScale, selectDuplicateDomain, selectCategoricalDomain, selectAxisRange, selectNiceTicks, pickAxisType], (layout, axis, realScaleType, scale, duplicateDomain, categoricalDomain, axisRange, niceTicks, axisType) => {\n if (axis == null) {\n return null;\n }\n var isCategorical = isCategoricalAxis(layout, axisType);\n return {\n angle: axis.angle,\n interval: axis.interval,\n minTickGap: axis.minTickGap,\n orientation: axis.orientation,\n tick: axis.tick,\n tickCount: axis.tickCount,\n tickFormatter: axis.tickFormatter,\n ticks: axis.ticks,\n type: axis.type,\n unit: axis.unit,\n axisType,\n categoricalDomain,\n duplicateDomain,\n isCategorical,\n niceTicks,\n range: axisRange,\n realScaleType,\n scale\n };\n});\nexport var combineAxisTicks = (layout, axis, realScaleType, scale, niceTicks, axisRange, duplicateDomain, categoricalDomain, axisType) => {\n if (axis == null || scale == null) {\n return undefined;\n }\n var isCategorical = isCategoricalAxis(layout, axisType);\n var {\n type,\n ticks,\n tickCount\n } = axis;\n\n // This is testing for `scaleBand` but for band axis the type is reported as `band` so this looks like a dead code with a workaround elsewhere?\n var offsetForBand = realScaleType === 'scaleBand' && typeof scale.bandwidth === 'function' ? scale.bandwidth() / 2 : 2;\n var offset = type === 'category' && scale.bandwidth ? scale.bandwidth() / offsetForBand : 0;\n offset = axisType === 'angleAxis' && axisRange != null && axisRange.length >= 2 ? mathSign(axisRange[0] - axisRange[1]) * 2 * offset : offset;\n\n // The ticks set by user should only affect the ticks adjacent to axis line\n var ticksOrNiceTicks = ticks || niceTicks;\n if (ticksOrNiceTicks) {\n var result = ticksOrNiceTicks.map((entry, index) => {\n var scaleContent = duplicateDomain ? duplicateDomain.indexOf(entry) : entry;\n return {\n index,\n // If the scaleContent is not a number, the coordinate will be NaN.\n // That could be the case for example with a PointScale and a string as domain.\n coordinate: scale(scaleContent) + offset,\n value: entry,\n offset\n };\n });\n return result.filter(row => !isNan(row.coordinate));\n }\n\n // When axis is a categorical axis, but the type of axis is number or the scale of axis is not \"auto\"\n if (isCategorical && categoricalDomain) {\n return categoricalDomain.map((entry, index) => ({\n coordinate: scale(entry) + offset,\n value: entry,\n index,\n offset\n }));\n }\n if (scale.ticks) {\n return scale.ticks(tickCount)\n // @ts-expect-error why does the offset go here? The type does not require it\n .map(entry => ({\n coordinate: scale(entry) + offset,\n value: entry,\n offset\n }));\n }\n\n // When axis has duplicated text, serial numbers are used to generate scale\n return scale.domain().map((entry, index) => ({\n coordinate: scale(entry) + offset,\n value: duplicateDomain ? duplicateDomain[entry] : entry,\n index,\n offset\n }));\n};\nexport var selectTicksOfAxis = createSelector([selectChartLayout, selectAxisSettings, selectRealScaleType, selectAxisScale, selectNiceTicks, selectAxisRange, selectDuplicateDomain, selectCategoricalDomain, pickAxisType], combineAxisTicks);\nexport var combineGraphicalItemTicks = (layout, axis, scale, axisRange, duplicateDomain, categoricalDomain, axisType) => {\n if (axis == null || scale == null || axisRange == null || axisRange[0] === axisRange[1]) {\n return undefined;\n }\n var isCategorical = isCategoricalAxis(layout, axisType);\n var {\n tickCount\n } = axis;\n var offset = 0;\n offset = axisType === 'angleAxis' && (axisRange === null || axisRange === void 0 ? void 0 : axisRange.length) >= 2 ? mathSign(axisRange[0] - axisRange[1]) * 2 * offset : offset;\n\n // When axis is a categorical axis, but the type of axis is number or the scale of axis is not \"auto\"\n if (isCategorical && categoricalDomain) {\n return categoricalDomain.map((entry, index) => ({\n coordinate: scale(entry) + offset,\n value: entry,\n index,\n offset\n }));\n }\n if (scale.ticks) {\n return scale.ticks(tickCount)\n // @ts-expect-error why does the offset go here? The type does not require it\n .map(entry => ({\n coordinate: scale(entry) + offset,\n value: entry,\n offset\n }));\n }\n\n // When axis has duplicated text, serial numbers are used to generate scale\n return scale.domain().map((entry, index) => ({\n coordinate: scale(entry) + offset,\n value: duplicateDomain ? duplicateDomain[entry] : entry,\n index,\n offset\n }));\n};\nexport var selectTicksOfGraphicalItem = createSelector([selectChartLayout, selectAxisSettings, selectAxisScale, selectAxisRange, selectDuplicateDomain, selectCategoricalDomain, pickAxisType], combineGraphicalItemTicks);\nexport var selectAxisWithScale = createSelector(selectBaseAxis, selectAxisScale, (axis, scale) => {\n if (axis == null || scale == null) {\n return undefined;\n }\n return _objectSpread(_objectSpread({}, axis), {}, {\n scale\n });\n});\nvar selectZAxisScale = createSelector([selectBaseAxis, selectRealScaleType, selectAxisDomain, selectAxisRangeWithReverse], combineScaleFunction);\nexport var selectZAxisWithScale = createSelector((state, _axisType, axisId) => selectZAxisSettings(state, axisId), selectZAxisScale, (axis, scale) => {\n if (axis == null || scale == null) {\n return undefined;\n }\n return _objectSpread(_objectSpread({}, axis), {}, {\n scale\n });\n});\n\n/**\n * We are also going to need to implement polar chart directions if we want to support keyboard controls for those.\n */\n\nexport var selectChartDirection = createSelector([selectChartLayout, selectAllXAxes, selectAllYAxes], (layout, allXAxes, allYAxes) => {\n switch (layout) {\n case 'horizontal':\n {\n return allXAxes.some(axis => axis.reversed) ? 'right-to-left' : 'left-to-right';\n }\n case 'vertical':\n {\n return allYAxes.some(axis => axis.reversed) ? 'bottom-to-top' : 'top-to-bottom';\n }\n // TODO: make this better. For now, right arrow triggers \"forward\", left arrow \"back\"\n // however, the tooltip moves an unintuitive direction because of how the indices are rendered\n case 'centric':\n case 'radial':\n {\n return 'left-to-right';\n }\n default:\n {\n return undefined;\n }\n }\n});","import { useAppSelector } from '../hooks';\nexport var selectDefaultTooltipEventType = state => state.options.defaultTooltipEventType;\nexport var selectValidateTooltipEventTypes = state => state.options.validateTooltipEventTypes;\nexport function combineTooltipEventType(shared, defaultTooltipEventType, validateTooltipEventTypes) {\n if (shared == null) {\n return defaultTooltipEventType;\n }\n var eventType = shared ? 'axis' : 'item';\n if (validateTooltipEventTypes == null) {\n return defaultTooltipEventType;\n }\n return validateTooltipEventTypes.includes(eventType) ? eventType : defaultTooltipEventType;\n}\nexport function selectTooltipEventType(state, shared) {\n var defaultTooltipEventType = selectDefaultTooltipEventType(state);\n var validateTooltipEventTypes = selectValidateTooltipEventTypes(state);\n return combineTooltipEventType(shared, defaultTooltipEventType, validateTooltipEventTypes);\n}\nexport function useTooltipEventType(shared) {\n return useAppSelector(state => selectTooltipEventType(state, shared));\n}","import { isNan } from '../../../util/DataUtils';\nexport var combineActiveLabel = (tooltipTicks, activeIndex) => {\n var _tooltipTicks$n;\n var n = Number(activeIndex);\n if (isNan(n) || activeIndex == null) {\n return undefined;\n }\n return n >= 0 ? tooltipTicks === null || tooltipTicks === void 0 || (_tooltipTicks$n = tooltipTicks[n]) === null || _tooltipTicks$n === void 0 ? void 0 : _tooltipTicks$n.value : undefined;\n};","export var selectTooltipSettings = state => state.tooltip.settings;","import { createSlice, current } from '@reduxjs/toolkit';\nimport { castDraft } from 'immer';\n\n/**\n * One Tooltip can display multiple TooltipPayloadEntries at a time.\n */\n\n/**\n * So what happens is that the tooltip payload is decided based on the available data, and the dataKey.\n * The dataKey can either be defined on the graphical element (like Line, or Bar)\n * or on the tooltip itself.\n *\n * The data can be defined in the chart element, or in the graphical item.\n *\n * So this type is all the settings, other than the data + dataKey complications.\n */\n\n/**\n * This is what Tooltip renders.\n */\n\n/**\n * null means no active index\n * string means: whichever index from the chart data it is.\n * Different charts have different requirements on data shapes,\n * and are also responsible for providing a function that will accept this index\n * and return data.\n */\n\n/**\n * Different items have different data shapes so the state has no opinion on what the data shape should be;\n * the only requirement is that the chart also provides a searcher function\n * that accepts the data, and a key, and returns whatever the payload in Tooltip should be.\n */\n\n/**\n * So this informs the \"tooltip event type\". Tooltip event type can be either \"axis\" or \"item\"\n * and it is used for two things:\n * 1. Sets the active area\n * 2. Sets the background and cursor highlights\n *\n * Some charts only allow to have one type of tooltip event type, some allow both.\n * Those charts that allow both will have one default, and the \"shared\" prop will be used to switch between them.\n * Undefined means \"use the chart default\".\n *\n * Charts that only allow one tooltip event type, will ignore the shared prop.\n */\n\n/**\n * A generic state for user interaction with the chart.\n * User interaction can come through multiple channels: mouse events, keyboard events, or hardcoded in props, or synchronised from other charts.\n *\n * Each of the interaction states is represented as TooltipInteractionState,\n * and then the selectors and Tooltip will decide which of the interaction states to use.\n */\n\nexport var noInteraction = {\n active: false,\n index: null,\n dataKey: undefined,\n coordinate: undefined\n};\n\n/**\n * The tooltip interaction state stores:\n *\n * - Which graphical item is user interacting with at the moment,\n * - which axis (or, which part of chart background) is user interacting with at the moment\n * - The data that individual graphical items wish to be displayed in case the tooltip gets activated\n */\n\nexport var initialState = {\n itemInteraction: {\n click: noInteraction,\n hover: noInteraction\n },\n axisInteraction: {\n click: noInteraction,\n hover: noInteraction\n },\n keyboardInteraction: noInteraction,\n syncInteraction: {\n active: false,\n index: null,\n dataKey: undefined,\n label: undefined,\n coordinate: undefined\n },\n tooltipItemPayloads: [],\n settings: {\n shared: undefined,\n trigger: 'hover',\n axisId: 0,\n active: false,\n defaultIndex: undefined\n }\n};\nvar tooltipSlice = createSlice({\n name: 'tooltip',\n initialState,\n reducers: {\n addTooltipEntrySettings(state, action) {\n state.tooltipItemPayloads.push(castDraft(action.payload));\n },\n removeTooltipEntrySettings(state, action) {\n var index = current(state).tooltipItemPayloads.indexOf(castDraft(action.payload));\n if (index > -1) {\n state.tooltipItemPayloads.splice(index, 1);\n }\n },\n setTooltipSettingsState(state, action) {\n state.settings = action.payload;\n },\n setActiveMouseOverItemIndex(state, action) {\n state.syncInteraction.active = false;\n state.keyboardInteraction.active = false;\n state.itemInteraction.hover.active = true;\n state.itemInteraction.hover.index = action.payload.activeIndex;\n state.itemInteraction.hover.dataKey = action.payload.activeDataKey;\n state.itemInteraction.hover.coordinate = action.payload.activeCoordinate;\n },\n mouseLeaveChart(state) {\n /*\n * Clear only the active flags. Why?\n * 1. Keep Coordinate to preserve animation - next time the Tooltip appears, we want to render it from\n * the last place where it was when it disappeared.\n * 2. We want to keep all the properties anyway just in case the tooltip has `active=true` prop\n * and continues being visible even after the mouse has left the chart.\n */\n state.itemInteraction.hover.active = false;\n state.axisInteraction.hover.active = false;\n },\n mouseLeaveItem(state) {\n state.itemInteraction.hover.active = false;\n },\n setActiveClickItemIndex(state, action) {\n state.syncInteraction.active = false;\n state.itemInteraction.click.active = true;\n state.keyboardInteraction.active = false;\n state.itemInteraction.click.index = action.payload.activeIndex;\n state.itemInteraction.click.dataKey = action.payload.activeDataKey;\n state.itemInteraction.click.coordinate = action.payload.activeCoordinate;\n },\n setMouseOverAxisIndex(state, action) {\n state.syncInteraction.active = false;\n state.axisInteraction.hover.active = true;\n state.keyboardInteraction.active = false;\n state.axisInteraction.hover.index = action.payload.activeIndex;\n state.axisInteraction.hover.dataKey = action.payload.activeDataKey;\n state.axisInteraction.hover.coordinate = action.payload.activeCoordinate;\n },\n setMouseClickAxisIndex(state, action) {\n state.syncInteraction.active = false;\n state.keyboardInteraction.active = false;\n state.axisInteraction.click.active = true;\n state.axisInteraction.click.index = action.payload.activeIndex;\n state.axisInteraction.click.dataKey = action.payload.activeDataKey;\n state.axisInteraction.click.coordinate = action.payload.activeCoordinate;\n },\n setSyncInteraction(state, action) {\n state.syncInteraction = action.payload;\n },\n setKeyboardInteraction(state, action) {\n state.keyboardInteraction.active = action.payload.active;\n state.keyboardInteraction.index = action.payload.activeIndex;\n state.keyboardInteraction.coordinate = action.payload.activeCoordinate;\n state.keyboardInteraction.dataKey = action.payload.activeDataKey;\n }\n }\n});\nexport var {\n addTooltipEntrySettings,\n removeTooltipEntrySettings,\n setTooltipSettingsState,\n setActiveMouseOverItemIndex,\n mouseLeaveItem,\n mouseLeaveChart,\n setActiveClickItemIndex,\n setMouseOverAxisIndex,\n setMouseClickAxisIndex,\n setSyncInteraction,\n setKeyboardInteraction\n} = tooltipSlice.actions;\nexport var tooltipReducer = tooltipSlice.reducer;","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport { noInteraction } from '../../tooltipSlice';\nfunction chooseAppropriateMouseInteraction(tooltipState, tooltipEventType, trigger) {\n if (tooltipEventType === 'axis') {\n if (trigger === 'click') {\n return tooltipState.axisInteraction.click;\n }\n return tooltipState.axisInteraction.hover;\n }\n if (trigger === 'click') {\n return tooltipState.itemInteraction.click;\n }\n return tooltipState.itemInteraction.hover;\n}\nfunction hasBeenActivePreviously(tooltipInteractionState) {\n return tooltipInteractionState.index != null;\n}\nexport var combineTooltipInteractionState = (tooltipState, tooltipEventType, trigger, defaultIndex) => {\n if (tooltipEventType == null) {\n return noInteraction;\n }\n var appropriateMouseInteraction = chooseAppropriateMouseInteraction(tooltipState, tooltipEventType, trigger);\n if (appropriateMouseInteraction == null) {\n return noInteraction;\n }\n if (appropriateMouseInteraction.active) {\n return appropriateMouseInteraction;\n }\n if (tooltipState.keyboardInteraction.active) {\n return tooltipState.keyboardInteraction;\n }\n if (tooltipState.syncInteraction.active && tooltipState.syncInteraction.index != null) {\n return tooltipState.syncInteraction;\n }\n var activeFromProps = tooltipState.settings.active === true;\n if (hasBeenActivePreviously(appropriateMouseInteraction)) {\n if (activeFromProps) {\n return _objectSpread(_objectSpread({}, appropriateMouseInteraction), {}, {\n active: true\n });\n }\n } else if (defaultIndex != null) {\n return {\n active: true,\n coordinate: undefined,\n dataKey: undefined,\n index: defaultIndex\n };\n }\n return _objectSpread(_objectSpread({}, noInteraction), {}, {\n coordinate: appropriateMouseInteraction.coordinate\n });\n};","import { isWellBehavedNumber } from '../../../util/isWellBehavedNumber';\nexport var combineActiveTooltipIndex = (tooltipInteraction, chartData) => {\n var desiredIndex = tooltipInteraction === null || tooltipInteraction === void 0 ? void 0 : tooltipInteraction.index;\n if (desiredIndex == null) {\n return null;\n }\n var indexAsNumber = Number(desiredIndex);\n if (!isWellBehavedNumber(indexAsNumber)) {\n // this is for charts like Sankey and Treemap that do not support numerical indexes. We need a proper solution for this before we can start supporting keyboard events on these charts.\n return desiredIndex;\n }\n\n /*\n * Zero is a trivial limit for single-dimensional charts like Line and Area,\n * but this also needs a support for multidimensional charts like Sankey and Treemap! TODO\n */\n var lowerLimit = 0;\n var upperLimit = +Infinity;\n if (chartData.length > 0) {\n upperLimit = chartData.length - 1;\n }\n\n // now let's clamp the desiredIndex between the limits\n return String(Math.max(lowerLimit, Math.min(indexAsNumber, upperLimit)));\n};","export var combineCoordinateForDefaultIndex = (width, height, layout, offset, tooltipTicks, defaultIndex, tooltipConfigurations, tooltipPayloadSearcher) => {\n if (defaultIndex == null || tooltipPayloadSearcher == null) {\n return undefined;\n }\n // With defaultIndex alone, we don't have enough information to decide _which_ of the multiple tooltips to display. So we choose the first one.\n var firstConfiguration = tooltipConfigurations[0];\n // @ts-expect-error we need to rethink the tooltipPayloadSearcher type\n var maybePosition = firstConfiguration == null ? undefined : tooltipPayloadSearcher(firstConfiguration.positions, defaultIndex);\n if (maybePosition != null) {\n return maybePosition;\n }\n var tick = tooltipTicks === null || tooltipTicks === void 0 ? void 0 : tooltipTicks[Number(defaultIndex)];\n if (!tick) {\n return undefined;\n }\n switch (layout) {\n case 'horizontal':\n {\n return {\n x: tick.coordinate,\n y: (offset.top + height) / 2\n };\n }\n default:\n {\n // This logic is not super sound - it conflates vertical, radial, centric layouts into just one. TODO improve!\n return {\n x: (offset.left + width) / 2,\n y: tick.coordinate\n };\n }\n }\n};","export var combineTooltipPayloadConfigurations = (tooltipState, tooltipEventType, trigger, defaultIndex) => {\n // if tooltip reacts to axis interaction, then we display all items at the same time.\n if (tooltipEventType === 'axis') {\n return tooltipState.tooltipItemPayloads;\n }\n /*\n * By now we already know that tooltipEventType is 'item', so we can only search in itemInteractions.\n * item means that only the hovered or clicked item will be present in the tooltip.\n */\n if (tooltipState.tooltipItemPayloads.length === 0) {\n // No point filtering if the payload is empty\n return [];\n }\n var filterByDataKey;\n if (trigger === 'hover') {\n filterByDataKey = tooltipState.itemInteraction.hover.dataKey;\n } else {\n filterByDataKey = tooltipState.itemInteraction.click.dataKey;\n }\n if (filterByDataKey == null && defaultIndex != null) {\n /*\n * So when we use `defaultIndex` - we don't have a dataKey to filter by because user did not hover over anything yet.\n * In that case let's display the first item in the tooltip; after all, this is `item` interaction case,\n * so we should display only one item at a time instead of all.\n */\n return [tooltipState.tooltipItemPayloads[0]];\n }\n return tooltipState.tooltipItemPayloads.filter(tpc => {\n var _tpc$settings;\n return ((_tpc$settings = tpc.settings) === null || _tpc$settings === void 0 ? void 0 : _tpc$settings.dataKey) === filterByDataKey;\n });\n};","export var selectTooltipPayloadSearcher = state => state.options.tooltipPayloadSearcher;","export var selectTooltipState = state => state.tooltip;","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport { findEntryInArray } from '../../../util/DataUtils';\nimport { getTooltipEntry, getValueByDataKey } from '../../../util/ChartUtils';\nimport { getSliced } from '../../../util/getSliced';\nfunction selectFinalData(dataDefinedOnItem, dataDefinedOnChart) {\n /*\n * If a payload has data specified directly from the graphical item, prefer that.\n * Otherwise, fill in data from the chart level, using the same index.\n */\n if (dataDefinedOnItem != null) {\n return dataDefinedOnItem;\n }\n return dataDefinedOnChart;\n}\nexport var combineTooltipPayload = (tooltipPayloadConfigurations, activeIndex, chartDataState, tooltipAxisDataKey, activeLabel, tooltipPayloadSearcher, tooltipEventType) => {\n if (activeIndex == null || tooltipPayloadSearcher == null) {\n return undefined;\n }\n var {\n chartData,\n computedData,\n dataStartIndex,\n dataEndIndex\n } = chartDataState;\n var init = [];\n return tooltipPayloadConfigurations.reduce((agg, _ref) => {\n var _settings$dataKey;\n var {\n dataDefinedOnItem,\n settings\n } = _ref;\n var finalData = selectFinalData(dataDefinedOnItem, chartData);\n var sliced = Array.isArray(finalData) ? getSliced(finalData, dataStartIndex, dataEndIndex) : finalData;\n var finalDataKey = (_settings$dataKey = settings === null || settings === void 0 ? void 0 : settings.dataKey) !== null && _settings$dataKey !== void 0 ? _settings$dataKey : tooltipAxisDataKey;\n // BaseAxisProps does not support nameKey but it could!\n var finalNameKey = settings === null || settings === void 0 ? void 0 : settings.nameKey; // ?? tooltipAxis?.nameKey;\n var tooltipPayload;\n if (tooltipAxisDataKey && Array.isArray(sliced) &&\n /*\n * findEntryInArray won't work for Scatter because Scatter provides an array of arrays\n * as tooltip payloads and findEntryInArray is not prepared to handle that.\n * Sad but also ScatterChart only allows 'item' tooltipEventType\n * and also this is only a problem if there are multiple Scatters and each has its own data array\n * so let's fix that some other time.\n */\n !Array.isArray(sliced[0]) &&\n /*\n * If the tooltipEventType is 'axis', we should search for the dataKey in the sliced data\n * because thanks to allowDuplicatedCategory=false, the order of elements in the array\n * no longer matches the order of elements in the original data\n * and so we need to search by the active dataKey + label rather than by index.\n *\n * The same happens if multiple graphical items are present in the chart\n * and each of them has its own data array. Those arrays get concatenated\n * and again the tooltip index no longer matches the original data.\n *\n * On the other hand the tooltipEventType 'item' should always search by index\n * because we get the index from interacting over the individual elements\n * which is always accurate, irrespective of the allowDuplicatedCategory setting.\n */\n tooltipEventType === 'axis') {\n tooltipPayload = findEntryInArray(sliced, tooltipAxisDataKey, activeLabel);\n } else {\n /*\n * This is a problem because it assumes that the index is pointing to the displayed data\n * which it isn't because the index is pointing to the tooltip ticks array.\n * The above approach (with findEntryInArray) is the correct one, but it only works\n * if the axis dataKey is defined explicitly, and if the data is an array of objects.\n */\n tooltipPayload = tooltipPayloadSearcher(sliced, activeIndex, computedData, finalNameKey);\n }\n if (Array.isArray(tooltipPayload)) {\n tooltipPayload.forEach(item => {\n var newSettings = _objectSpread(_objectSpread({}, settings), {}, {\n name: item.name,\n unit: item.unit,\n // color and fill are erased to keep 100% the identical behaviour to recharts 2.x - but there's nothing stopping us from returning them here. It's technically a breaking change.\n color: undefined,\n // color and fill are erased to keep 100% the identical behaviour to recharts 2.x - but there's nothing stopping us from returning them here. It's technically a breaking change.\n fill: undefined\n });\n agg.push(getTooltipEntry({\n tooltipEntrySettings: newSettings,\n dataKey: item.dataKey,\n payload: item.payload,\n // @ts-expect-error getValueByDataKey does not validate the output type\n value: getValueByDataKey(item.payload, item.dataKey),\n name: item.name\n }));\n });\n } else {\n var _getValueByDataKey;\n // I am not quite sure why these two branches (Array vs Array of Arrays) have to behave differently - I imagine we should unify these. 3.x breaking change?\n agg.push(getTooltipEntry({\n tooltipEntrySettings: settings,\n dataKey: finalDataKey,\n payload: tooltipPayload,\n // @ts-expect-error getValueByDataKey does not validate the output type\n value: getValueByDataKey(tooltipPayload, finalDataKey),\n // @ts-expect-error getValueByDataKey does not validate the output type\n name: (_getValueByDataKey = getValueByDataKey(tooltipPayload, finalNameKey)) !== null && _getValueByDataKey !== void 0 ? _getValueByDataKey : settings === null || settings === void 0 ? void 0 : settings.name\n }));\n }\n return agg;\n }, init);\n};","import { createSelector } from 'reselect';\nimport { combineAppliedNumericalValuesIncludingErrorValues, combineAppliedValues, combineAreasDomain, combineAxisDomain, combineAxisDomainWithNiceTicks, combineCategoricalDomain, combineDisplayedData, combineDomainOfStackGroups, combineDotsDomain, combineDuplicateDomain, combineGraphicalItemsData, combineGraphicalItemsSettings, combineLinesDomain, combineNiceTicks, combineNumericalDomain, combineRealScaleType, combineScaleFunction, combineStackGroups, filterGraphicalNotStackedItems, filterReferenceElements, getDomainDefinition, itemAxisPredicate, mergeDomains, selectAllErrorBarSettings, selectAxisRange, selectHasBar, selectReferenceAreas, selectReferenceDots, selectReferenceLines } from './axisSelectors';\nimport { selectChartLayout } from '../../context/chartLayoutContext';\nimport { isCategoricalAxis } from '../../util/ChartUtils';\nimport { selectChartDataWithIndexes } from './dataSelectors';\nimport { selectChartName, selectStackOffsetType } from './rootPropsSelectors';\nimport { mathSign } from '../../util/DataUtils';\nimport { combineAxisRangeWithReverse } from './combiners/combineAxisRangeWithReverse';\nimport { combineTooltipEventType, selectDefaultTooltipEventType, selectValidateTooltipEventTypes } from './selectTooltipEventType';\nimport { combineActiveLabel } from './combiners/combineActiveLabel';\nimport { selectTooltipSettings } from './selectTooltipSettings';\nimport { combineTooltipInteractionState } from './combiners/combineTooltipInteractionState';\nimport { combineActiveTooltipIndex } from './combiners/combineActiveTooltipIndex';\nimport { combineCoordinateForDefaultIndex } from './combiners/combineCoordinateForDefaultIndex';\nimport { selectChartHeight, selectChartWidth } from './containerSelectors';\nimport { selectChartOffsetInternal } from './selectChartOffsetInternal';\nimport { combineTooltipPayloadConfigurations } from './combiners/combineTooltipPayloadConfigurations';\nimport { selectTooltipPayloadSearcher } from './selectTooltipPayloadSearcher';\nimport { selectTooltipState } from './selectTooltipState';\nimport { combineTooltipPayload } from './combiners/combineTooltipPayload';\nimport { selectTooltipAxisId } from './selectTooltipAxisId';\nimport { selectTooltipAxisType } from './selectTooltipAxisType';\nimport { selectTooltipAxis, selectTooltipAxisDataKey } from './selectTooltipAxis';\nimport { combineDisplayedStackedData } from './combiners/combineDisplayedStackedData';\nimport { isStacked } from '../types/StackedGraphicalItem';\nexport var selectTooltipAxisRealScaleType = createSelector([selectTooltipAxis, selectChartLayout, selectHasBar, selectChartName, selectTooltipAxisType], combineRealScaleType);\nexport var selectAllUnfilteredGraphicalItems = createSelector([state => state.graphicalItems.cartesianItems, state => state.graphicalItems.polarItems], (cartesianItems, polarItems) => [...cartesianItems, ...polarItems]);\nvar selectTooltipAxisPredicate = createSelector([selectTooltipAxisType, selectTooltipAxisId], itemAxisPredicate);\nexport var selectAllGraphicalItemsSettings = createSelector([selectAllUnfilteredGraphicalItems, selectTooltipAxis, selectTooltipAxisPredicate], combineGraphicalItemsSettings);\nvar selectAllStackedGraphicalItemsSettings = createSelector([selectAllGraphicalItemsSettings], graphicalItems => graphicalItems.filter(isStacked));\nexport var selectTooltipGraphicalItemsData = createSelector([selectAllGraphicalItemsSettings], combineGraphicalItemsData);\n\n/**\n * Data for tooltip always use the data with indexes set by a Brush,\n * and never accept the isPanorama flag:\n * because Tooltip never displays inside the panorama anyway\n * so we don't need to worry what would happen there.\n */\nexport var selectTooltipDisplayedData = createSelector([selectTooltipGraphicalItemsData, selectChartDataWithIndexes], combineDisplayedData);\nvar selectTooltipStackedData = createSelector([selectAllStackedGraphicalItemsSettings, selectChartDataWithIndexes, selectTooltipAxis], combineDisplayedStackedData);\nvar selectAllTooltipAppliedValues = createSelector([selectTooltipDisplayedData, selectTooltipAxis, selectAllGraphicalItemsSettings], combineAppliedValues);\nvar selectTooltipAxisDomainDefinition = createSelector([selectTooltipAxis], getDomainDefinition);\nvar selectAllStackedGraphicalItems = createSelector([selectAllGraphicalItemsSettings], graphicalItems => graphicalItems.filter(isStacked));\nvar selectTooltipStackGroups = createSelector([selectTooltipStackedData, selectAllStackedGraphicalItems, selectStackOffsetType], combineStackGroups);\nvar selectTooltipDomainOfStackGroups = createSelector([selectTooltipStackGroups, selectChartDataWithIndexes, selectTooltipAxisType], combineDomainOfStackGroups);\nvar selectTooltipItemsSettingsExceptStacked = createSelector([selectAllGraphicalItemsSettings], filterGraphicalNotStackedItems);\nvar selectTooltipAllAppliedNumericalValuesIncludingErrorValues = createSelector([selectTooltipDisplayedData, selectTooltipAxis, selectTooltipItemsSettingsExceptStacked, selectAllErrorBarSettings, selectTooltipAxisType], combineAppliedNumericalValuesIncludingErrorValues);\nvar selectReferenceDotsByTooltipAxis = createSelector([selectReferenceDots, selectTooltipAxisType, selectTooltipAxisId], filterReferenceElements);\nvar selectTooltipReferenceDotsDomain = createSelector([selectReferenceDotsByTooltipAxis, selectTooltipAxisType], combineDotsDomain);\nvar selectReferenceAreasByTooltipAxis = createSelector([selectReferenceAreas, selectTooltipAxisType, selectTooltipAxisId], filterReferenceElements);\nvar selectTooltipReferenceAreasDomain = createSelector([selectReferenceAreasByTooltipAxis, selectTooltipAxisType], combineAreasDomain);\nvar selectReferenceLinesByTooltipAxis = createSelector([selectReferenceLines, selectTooltipAxisType, selectTooltipAxisId], filterReferenceElements);\nvar selectTooltipReferenceLinesDomain = createSelector([selectReferenceLinesByTooltipAxis, selectTooltipAxisType], combineLinesDomain);\nvar selectTooltipReferenceElementsDomain = createSelector([selectTooltipReferenceDotsDomain, selectTooltipReferenceLinesDomain, selectTooltipReferenceAreasDomain], mergeDomains);\nvar selectTooltipNumericalDomain = createSelector([selectTooltipAxis, selectTooltipAxisDomainDefinition, selectTooltipDomainOfStackGroups, selectTooltipAllAppliedNumericalValuesIncludingErrorValues, selectTooltipReferenceElementsDomain, selectChartLayout, selectTooltipAxisType], combineNumericalDomain);\nexport var selectTooltipAxisDomain = createSelector([selectTooltipAxis, selectChartLayout, selectTooltipDisplayedData, selectAllTooltipAppliedValues, selectStackOffsetType, selectTooltipAxisType, selectTooltipNumericalDomain], combineAxisDomain);\nvar selectTooltipNiceTicks = createSelector([selectTooltipAxisDomain, selectTooltipAxis, selectTooltipAxisRealScaleType], combineNiceTicks);\nexport var selectTooltipAxisDomainIncludingNiceTicks = createSelector([selectTooltipAxis, selectTooltipAxisDomain, selectTooltipNiceTicks, selectTooltipAxisType], combineAxisDomainWithNiceTicks);\nvar selectTooltipAxisRange = state => {\n var axisType = selectTooltipAxisType(state);\n var axisId = selectTooltipAxisId(state);\n var isPanorama = false; // Tooltip never displays in panorama so this is safe to assume\n return selectAxisRange(state, axisType, axisId, isPanorama);\n};\nexport var selectTooltipAxisRangeWithReverse = createSelector([selectTooltipAxis, selectTooltipAxisRange], combineAxisRangeWithReverse);\nexport var selectTooltipAxisScale = createSelector([selectTooltipAxis, selectTooltipAxisRealScaleType, selectTooltipAxisDomainIncludingNiceTicks, selectTooltipAxisRangeWithReverse], combineScaleFunction);\nvar selectTooltipDuplicateDomain = createSelector([selectChartLayout, selectAllTooltipAppliedValues, selectTooltipAxis, selectTooltipAxisType], combineDuplicateDomain);\nexport var selectTooltipCategoricalDomain = createSelector([selectChartLayout, selectAllTooltipAppliedValues, selectTooltipAxis, selectTooltipAxisType], combineCategoricalDomain);\nvar combineTicksOfTooltipAxis = (layout, axis, realScaleType, scale, range, duplicateDomain, categoricalDomain, axisType) => {\n if (!axis) {\n return undefined;\n }\n var {\n type\n } = axis;\n var isCategorical = isCategoricalAxis(layout, axisType);\n if (!scale) {\n return undefined;\n }\n var offsetForBand = realScaleType === 'scaleBand' && scale.bandwidth ? scale.bandwidth() / 2 : 2;\n var offset = type === 'category' && scale.bandwidth ? scale.bandwidth() / offsetForBand : 0;\n offset = axisType === 'angleAxis' && range != null && (range === null || range === void 0 ? void 0 : range.length) >= 2 ? mathSign(range[0] - range[1]) * 2 * offset : offset;\n\n // When axis is a categorical axis, but the type of axis is number or the scale of axis is not \"auto\"\n if (isCategorical && categoricalDomain) {\n return categoricalDomain.map((entry, index) => ({\n coordinate: scale(entry) + offset,\n value: entry,\n index,\n offset\n }));\n }\n\n // When axis has duplicated text, serial numbers are used to generate scale\n return scale.domain().map((entry, index) => ({\n coordinate: scale(entry) + offset,\n value: duplicateDomain ? duplicateDomain[entry] : entry,\n index,\n offset\n }));\n};\nexport var selectTooltipAxisTicks = createSelector([selectChartLayout, selectTooltipAxis, selectTooltipAxisRealScaleType, selectTooltipAxisScale, selectTooltipAxisRange, selectTooltipDuplicateDomain, selectTooltipCategoricalDomain, selectTooltipAxisType], combineTicksOfTooltipAxis);\nvar selectTooltipEventType = createSelector([selectDefaultTooltipEventType, selectValidateTooltipEventTypes, selectTooltipSettings], (defaultTooltipEventType, validateTooltipEventType, settings) => combineTooltipEventType(settings.shared, defaultTooltipEventType, validateTooltipEventType));\nvar selectTooltipTrigger = state => state.tooltip.settings.trigger;\nvar selectDefaultIndex = state => state.tooltip.settings.defaultIndex;\nvar selectTooltipInteractionState = createSelector([selectTooltipState, selectTooltipEventType, selectTooltipTrigger, selectDefaultIndex], combineTooltipInteractionState);\nexport var selectActiveTooltipIndex = createSelector([selectTooltipInteractionState, selectTooltipDisplayedData], combineActiveTooltipIndex);\nexport var selectActiveLabel = createSelector([selectTooltipAxisTicks, selectActiveTooltipIndex], combineActiveLabel);\nexport var selectActiveTooltipDataKey = createSelector([selectTooltipInteractionState], tooltipInteraction => {\n if (!tooltipInteraction) {\n return undefined;\n }\n return tooltipInteraction.dataKey;\n});\nvar selectTooltipPayloadConfigurations = createSelector([selectTooltipState, selectTooltipEventType, selectTooltipTrigger, selectDefaultIndex], combineTooltipPayloadConfigurations);\nvar selectTooltipCoordinateForDefaultIndex = createSelector([selectChartWidth, selectChartHeight, selectChartLayout, selectChartOffsetInternal, selectTooltipAxisTicks, selectDefaultIndex, selectTooltipPayloadConfigurations, selectTooltipPayloadSearcher], combineCoordinateForDefaultIndex);\nexport var selectActiveTooltipCoordinate = createSelector([selectTooltipInteractionState, selectTooltipCoordinateForDefaultIndex], (tooltipInteractionState, defaultIndexCoordinate) => {\n if (tooltipInteractionState !== null && tooltipInteractionState !== void 0 && tooltipInteractionState.coordinate) {\n return tooltipInteractionState.coordinate;\n }\n return defaultIndexCoordinate;\n});\nexport var selectIsTooltipActive = createSelector([selectTooltipInteractionState], tooltipInteractionState => tooltipInteractionState.active);\nexport var selectActiveTooltipPayload = createSelector([selectTooltipPayloadConfigurations, selectActiveTooltipIndex, selectChartDataWithIndexes, selectTooltipAxisDataKey, selectActiveLabel, selectTooltipPayloadSearcher, selectTooltipEventType], combineTooltipPayload);\nexport var selectActiveTooltipDataPoints = createSelector([selectActiveTooltipPayload], payload => {\n if (payload == null) {\n return undefined;\n }\n var dataPoints = payload.map(p => p.payload).filter(p => p != null);\n return Array.from(new Set(dataPoints));\n});","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport { useAppSelector } from '../state/hooks';\nimport { getBandSizeOfAxis } from '../util/ChartUtils';\nimport { selectTooltipAxisScale, selectTooltipAxisTicks } from '../state/selectors/tooltipSelectors';\nimport { selectTooltipAxis } from '../state/selectors/selectTooltipAxis';\nexport var useTooltipAxis = () => useAppSelector(selectTooltipAxis);\nexport var useTooltipAxisBandSize = () => {\n var tooltipAxis = useTooltipAxis();\n var tooltipTicks = useAppSelector(selectTooltipAxisTicks);\n var tooltipAxisScale = useAppSelector(selectTooltipAxisScale);\n return getBandSizeOfAxis(_objectSpread(_objectSpread({}, tooltipAxis), {}, {\n scale: tooltipAxisScale\n }), tooltipTicks);\n};","import { createSelector } from 'reselect';\nimport sortBy from 'es-toolkit/compat/sortBy';\nimport { useAppSelector } from '../hooks';\nimport { calculateActiveTickIndex, calculateTooltipPos, getActiveCoordinate, inRange } from '../../util/ChartUtils';\nimport { selectChartDataWithIndexes } from './dataSelectors';\nimport { selectTooltipAxisTicks, selectTooltipDisplayedData } from './tooltipSelectors';\nimport { selectChartName } from './rootPropsSelectors';\nimport { selectChartLayout } from '../../context/chartLayoutContext';\nimport { selectChartOffsetInternal } from './selectChartOffsetInternal';\nimport { selectChartHeight, selectChartWidth } from './containerSelectors';\nimport { combineActiveLabel } from './combiners/combineActiveLabel';\nimport { combineTooltipInteractionState } from './combiners/combineTooltipInteractionState';\nimport { combineActiveTooltipIndex } from './combiners/combineActiveTooltipIndex';\nimport { combineCoordinateForDefaultIndex } from './combiners/combineCoordinateForDefaultIndex';\nimport { combineTooltipPayloadConfigurations } from './combiners/combineTooltipPayloadConfigurations';\nimport { selectTooltipPayloadSearcher } from './selectTooltipPayloadSearcher';\nimport { selectTooltipState } from './selectTooltipState';\nimport { combineTooltipPayload } from './combiners/combineTooltipPayload';\nimport { selectTooltipAxisDataKey } from './selectTooltipAxis';\nexport var useChartName = () => {\n return useAppSelector(selectChartName);\n};\nvar pickTooltipEventType = (_state, tooltipEventType) => tooltipEventType;\nvar pickTrigger = (_state, _tooltipEventType, trigger) => trigger;\nvar pickDefaultIndex = (_state, _tooltipEventType, _trigger, defaultIndex) => defaultIndex;\nexport var selectOrderedTooltipTicks = createSelector(selectTooltipAxisTicks, ticks => sortBy(ticks, o => o.coordinate));\nexport var selectTooltipInteractionState = createSelector([selectTooltipState, pickTooltipEventType, pickTrigger, pickDefaultIndex], combineTooltipInteractionState);\nexport var selectActiveIndex = createSelector([selectTooltipInteractionState, selectTooltipDisplayedData], combineActiveTooltipIndex);\nexport var selectTooltipDataKey = (state, tooltipEventType, trigger) => {\n if (tooltipEventType == null) {\n return undefined;\n }\n var tooltipState = selectTooltipState(state);\n if (tooltipEventType === 'axis') {\n if (trigger === 'hover') {\n return tooltipState.axisInteraction.hover.dataKey;\n }\n return tooltipState.axisInteraction.click.dataKey;\n }\n if (trigger === 'hover') {\n return tooltipState.itemInteraction.hover.dataKey;\n }\n return tooltipState.itemInteraction.click.dataKey;\n};\nexport var selectTooltipPayloadConfigurations = createSelector([selectTooltipState, pickTooltipEventType, pickTrigger, pickDefaultIndex], combineTooltipPayloadConfigurations);\nexport var selectCoordinateForDefaultIndex = createSelector([selectChartWidth, selectChartHeight, selectChartLayout, selectChartOffsetInternal, selectTooltipAxisTicks, pickDefaultIndex, selectTooltipPayloadConfigurations, selectTooltipPayloadSearcher], combineCoordinateForDefaultIndex);\nexport var selectActiveCoordinate = createSelector([selectTooltipInteractionState, selectCoordinateForDefaultIndex], (tooltipInteractionState, defaultIndexCoordinate) => {\n var _tooltipInteractionSt;\n return (_tooltipInteractionSt = tooltipInteractionState.coordinate) !== null && _tooltipInteractionSt !== void 0 ? _tooltipInteractionSt : defaultIndexCoordinate;\n});\nexport var selectActiveLabel = createSelector(selectTooltipAxisTicks, selectActiveIndex, combineActiveLabel);\nexport var selectTooltipPayload = createSelector([selectTooltipPayloadConfigurations, selectActiveIndex, selectChartDataWithIndexes, selectTooltipAxisDataKey, selectActiveLabel, selectTooltipPayloadSearcher, pickTooltipEventType], combineTooltipPayload);\nexport var selectIsTooltipActive = createSelector([selectTooltipInteractionState], tooltipInteractionState => {\n return {\n isActive: tooltipInteractionState.active,\n activeIndex: tooltipInteractionState.index\n };\n});\nexport var combineActiveProps = (chartEvent, layout, polarViewBox, tooltipAxisType, tooltipAxisRange, tooltipTicks, orderedTooltipTicks, offset) => {\n if (!chartEvent || !layout || !tooltipAxisType || !tooltipAxisRange || !tooltipTicks) {\n return undefined;\n }\n var rangeObj = inRange(chartEvent.chartX, chartEvent.chartY, layout, polarViewBox, offset);\n if (!rangeObj) {\n return undefined;\n }\n var pos = calculateTooltipPos(rangeObj, layout);\n var activeIndex = calculateActiveTickIndex(pos, orderedTooltipTicks, tooltipTicks, tooltipAxisType, tooltipAxisRange);\n var activeCoordinate = getActiveCoordinate(layout, tooltipTicks, activeIndex, rangeObj);\n return {\n activeIndex: String(activeIndex),\n activeCoordinate\n };\n};","function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport * as React from 'react';\nimport { cloneElement, createElement, isValidElement } from 'react';\nimport { clsx } from 'clsx';\nimport { Curve } from '../shape/Curve';\nimport { Cross } from '../shape/Cross';\nimport { getCursorRectangle } from '../util/cursor/getCursorRectangle';\nimport { Rectangle } from '../shape/Rectangle';\nimport { getRadialCursorPoints } from '../util/cursor/getRadialCursorPoints';\nimport { Sector } from '../shape/Sector';\nimport { getCursorPoints } from '../util/cursor/getCursorPoints';\nimport { filterProps } from '../util/ReactUtils';\nimport { useChartLayout, useOffsetInternal } from '../context/chartLayoutContext';\nimport { useTooltipAxisBandSize } from '../context/useTooltipAxis';\nimport { useChartName } from '../state/selectors/selectors';\n\n/**\n * If set false, no cursor will be drawn when tooltip is active.\n * If set an object, the option is the configuration of cursor.\n * If set a React element, the option is the custom react element of drawing cursor\n */\n\nexport function CursorInternal(props) {\n var {\n coordinate,\n payload,\n index,\n offset,\n tooltipAxisBandSize,\n layout,\n cursor,\n tooltipEventType,\n chartName\n } = props;\n\n // The cursor is a part of the Tooltip, and it should be shown (by default) when the Tooltip is active.\n var activeCoordinate = coordinate;\n var activePayload = payload;\n var activeTooltipIndex = index;\n if (!cursor || !activeCoordinate || chartName !== 'ScatterChart' && tooltipEventType !== 'axis') {\n return null;\n }\n var restProps, cursorComp;\n if (chartName === 'ScatterChart') {\n restProps = activeCoordinate;\n cursorComp = Cross;\n } else if (chartName === 'BarChart') {\n restProps = getCursorRectangle(layout, activeCoordinate, offset, tooltipAxisBandSize);\n cursorComp = Rectangle;\n } else if (layout === 'radial') {\n // @ts-expect-error TODO the state is marked as containing Coordinate but actually in polar charts it contains PolarCoordinate, we should keep the polar state separate\n var {\n cx,\n cy,\n radius,\n startAngle,\n endAngle\n } = getRadialCursorPoints(activeCoordinate);\n restProps = {\n cx,\n cy,\n startAngle,\n endAngle,\n innerRadius: radius,\n outerRadius: radius\n };\n cursorComp = Sector;\n } else {\n restProps = {\n points: getCursorPoints(layout, activeCoordinate, offset)\n };\n cursorComp = Curve;\n }\n var extraClassName = typeof cursor === 'object' && 'className' in cursor ? cursor.className : undefined;\n var cursorProps = _objectSpread(_objectSpread(_objectSpread(_objectSpread({\n stroke: '#ccc',\n pointerEvents: 'none'\n }, offset), restProps), filterProps(cursor, false)), {}, {\n payload: activePayload,\n payloadIndex: activeTooltipIndex,\n className: clsx('recharts-tooltip-cursor', extraClassName)\n });\n return /*#__PURE__*/isValidElement(cursor) ? /*#__PURE__*/cloneElement(cursor, cursorProps) : /*#__PURE__*/createElement(cursorComp, cursorProps);\n}\n\n/*\n * Cursor is the background, or a highlight,\n * that shows when user mouses over or activates\n * an area.\n *\n * It usually shows together with a tooltip\n * to emphasise which part of the chart does the tooltip refer to.\n */\nexport function Cursor(props) {\n var tooltipAxisBandSize = useTooltipAxisBandSize();\n var offset = useOffsetInternal();\n var layout = useChartLayout();\n var chartName = useChartName();\n return /*#__PURE__*/React.createElement(CursorInternal, _extends({}, props, {\n coordinate: props.coordinate,\n index: props.index,\n payload: props.payload,\n offset: offset,\n layout: layout,\n tooltipAxisBandSize: tooltipAxisBandSize,\n chartName: chartName\n }));\n}","import { createContext, useContext } from 'react';\nexport var TooltipPortalContext = /*#__PURE__*/createContext(null);\nexport var useTooltipPortal = () => useContext(TooltipPortalContext);","'use strict';\n\nvar has = Object.prototype.hasOwnProperty\n , prefix = '~';\n\n/**\n * Constructor to create a storage for our `EE` objects.\n * An `Events` instance is a plain object whose properties are event names.\n *\n * @constructor\n * @private\n */\nfunction Events() {}\n\n//\n// We try to not inherit from `Object.prototype`. In some engines creating an\n// instance in this way is faster than calling `Object.create(null)` directly.\n// If `Object.create(null)` is not supported we prefix the event names with a\n// character to make sure that the built-in object properties are not\n// overridden or used as an attack vector.\n//\nif (Object.create) {\n Events.prototype = Object.create(null);\n\n //\n // This hack is needed because the `__proto__` property is still inherited in\n // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.\n //\n if (!new Events().__proto__) prefix = false;\n}\n\n/**\n * Representation of a single event listener.\n *\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} [once=false] Specify if the listener is a one-time listener.\n * @constructor\n * @private\n */\nfunction EE(fn, context, once) {\n this.fn = fn;\n this.context = context;\n this.once = once || false;\n}\n\n/**\n * Add a listener for a given event.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} once Specify if the listener is a one-time listener.\n * @returns {EventEmitter}\n * @private\n */\nfunction addListener(emitter, event, fn, context, once) {\n if (typeof fn !== 'function') {\n throw new TypeError('The listener must be a function');\n }\n\n var listener = new EE(fn, context || emitter, once)\n , evt = prefix ? prefix + event : event;\n\n if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;\n else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);\n else emitter._events[evt] = [emitter._events[evt], listener];\n\n return emitter;\n}\n\n/**\n * Clear event by name.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} evt The Event name.\n * @private\n */\nfunction clearEvent(emitter, evt) {\n if (--emitter._eventsCount === 0) emitter._events = new Events();\n else delete emitter._events[evt];\n}\n\n/**\n * Minimal `EventEmitter` interface that is molded against the Node.js\n * `EventEmitter` interface.\n *\n * @constructor\n * @public\n */\nfunction EventEmitter() {\n this._events = new Events();\n this._eventsCount = 0;\n}\n\n/**\n * Return an array listing the events for which the emitter has registered\n * listeners.\n *\n * @returns {Array}\n * @public\n */\nEventEmitter.prototype.eventNames = function eventNames() {\n var names = []\n , events\n , name;\n\n if (this._eventsCount === 0) return names;\n\n for (name in (events = this._events)) {\n if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);\n }\n\n if (Object.getOwnPropertySymbols) {\n return names.concat(Object.getOwnPropertySymbols(events));\n }\n\n return names;\n};\n\n/**\n * Return the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Array} The registered listeners.\n * @public\n */\nEventEmitter.prototype.listeners = function listeners(event) {\n var evt = prefix ? prefix + event : event\n , handlers = this._events[evt];\n\n if (!handlers) return [];\n if (handlers.fn) return [handlers.fn];\n\n for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {\n ee[i] = handlers[i].fn;\n }\n\n return ee;\n};\n\n/**\n * Return the number of listeners listening to a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Number} The number of listeners.\n * @public\n */\nEventEmitter.prototype.listenerCount = function listenerCount(event) {\n var evt = prefix ? prefix + event : event\n , listeners = this._events[evt];\n\n if (!listeners) return 0;\n if (listeners.fn) return 1;\n return listeners.length;\n};\n\n/**\n * Calls each of the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Boolean} `true` if the event had listeners, else `false`.\n * @public\n */\nEventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {\n var evt = prefix ? prefix + event : event;\n\n if (!this._events[evt]) return false;\n\n var listeners = this._events[evt]\n , len = arguments.length\n , args\n , i;\n\n if (listeners.fn) {\n if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);\n\n switch (len) {\n case 1: return listeners.fn.call(listeners.context), true;\n case 2: return listeners.fn.call(listeners.context, a1), true;\n case 3: return listeners.fn.call(listeners.context, a1, a2), true;\n case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;\n case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;\n case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;\n }\n\n for (i = 1, args = new Array(len -1); i < len; i++) {\n args[i - 1] = arguments[i];\n }\n\n listeners.fn.apply(listeners.context, args);\n } else {\n var length = listeners.length\n , j;\n\n for (i = 0; i < length; i++) {\n if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);\n\n switch (len) {\n case 1: listeners[i].fn.call(listeners[i].context); break;\n case 2: listeners[i].fn.call(listeners[i].context, a1); break;\n case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;\n case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;\n default:\n if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {\n args[j - 1] = arguments[j];\n }\n\n listeners[i].fn.apply(listeners[i].context, args);\n }\n }\n }\n\n return true;\n};\n\n/**\n * Add a listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.on = function on(event, fn, context) {\n return addListener(this, event, fn, context, false);\n};\n\n/**\n * Add a one-time listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.once = function once(event, fn, context) {\n return addListener(this, event, fn, context, true);\n};\n\n/**\n * Remove the listeners of a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn Only remove the listeners that match this function.\n * @param {*} context Only remove the listeners that have this context.\n * @param {Boolean} once Only remove one-time listeners.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {\n var evt = prefix ? prefix + event : event;\n\n if (!this._events[evt]) return this;\n if (!fn) {\n clearEvent(this, evt);\n return this;\n }\n\n var listeners = this._events[evt];\n\n if (listeners.fn) {\n if (\n listeners.fn === fn &&\n (!once || listeners.once) &&\n (!context || listeners.context === context)\n ) {\n clearEvent(this, evt);\n }\n } else {\n for (var i = 0, events = [], length = listeners.length; i < length; i++) {\n if (\n listeners[i].fn !== fn ||\n (once && !listeners[i].once) ||\n (context && listeners[i].context !== context)\n ) {\n events.push(listeners[i]);\n }\n }\n\n //\n // Reset the array, or remove it completely if we have no more listeners.\n //\n if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;\n else clearEvent(this, evt);\n }\n\n return this;\n};\n\n/**\n * Remove all listeners, or those of the specified event.\n *\n * @param {(String|Symbol)} [event] The event name.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {\n var evt;\n\n if (event) {\n evt = prefix ? prefix + event : event;\n if (this._events[evt]) clearEvent(this, evt);\n } else {\n this._events = new Events();\n this._eventsCount = 0;\n }\n\n return this;\n};\n\n//\n// Alias methods names because people roll like that.\n//\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\nEventEmitter.prototype.addListener = EventEmitter.prototype.on;\n\n//\n// Expose the prefix.\n//\nEventEmitter.prefixed = prefix;\n\n//\n// Allow `EventEmitter` to be imported as module namespace.\n//\nEventEmitter.EventEmitter = EventEmitter;\n\n//\n// Expose the module.\n//\nif ('undefined' !== typeof module) {\n module.exports = EventEmitter;\n}\n","import EventEmitter from 'eventemitter3';\nvar eventCenter = new EventEmitter();\nexport { eventCenter };\nexport var TOOLTIP_SYNC_EVENT = 'recharts.syncEvent.tooltip';\nexport var BRUSH_SYNC_EVENT = 'recharts.syncEvent.brush';","import { createSlice } from '@reduxjs/toolkit';\nimport { isNan } from '../util/DataUtils';\n\n/**\n * These chart options are decided internally, by Recharts,\n * and will not change during the lifetime of the chart.\n *\n * Changing these options can be done by swapping the root element\n * which will make a brand-new Redux store.\n *\n * If you want to store options that can be changed by the user,\n * use UpdatableChartOptions in rootPropsSlice.ts.\n */\n\nexport function arrayTooltipSearcher(data, strIndex) {\n if (!strIndex) return undefined;\n var numIndex = Number.parseInt(strIndex, 10);\n if (isNan(numIndex)) {\n return undefined;\n }\n return data === null || data === void 0 ? void 0 : data[numIndex];\n}\nvar initialState = {\n chartName: '',\n tooltipPayloadSearcher: undefined,\n eventEmitter: undefined,\n defaultTooltipEventType: 'axis'\n};\nvar optionsSlice = createSlice({\n name: 'options',\n initialState,\n reducers: {\n createEventEmitter: state => {\n if (state.eventEmitter == null) {\n state.eventEmitter = Symbol('rechartsEventEmitter');\n }\n }\n }\n});\nexport var optionsReducer = optionsSlice.reducer;\nexport var {\n createEventEmitter\n} = optionsSlice.actions;","export function selectSynchronisedTooltipState(state) {\n return state.tooltip.syncInteraction;\n}","import { createSlice } from '@reduxjs/toolkit';\n\n/**\n * This is the data that's coming through main chart `data` prop\n * Recharts is very flexible in what it accepts so the type is very flexible too.\n * This will typically be an object, and various components will provide various `dataKey`\n * that dictates how to pull data from that object.\n *\n * TL;DR: before dataKey\n */\n\n/**\n * So this is the same unknown type as ChartData but this is after the dataKey has been applied.\n * We still don't know what the type is - that depends on what exactly it was before the dataKey application,\n * and the dataKey can return whatever anyway - but let's keep it separate as a form of documentation.\n *\n * TL;DR: ChartData after dataKey.\n */\n\nexport var initialChartDataState = {\n chartData: undefined,\n computedData: undefined,\n dataStartIndex: 0,\n dataEndIndex: 0\n};\nvar chartDataSlice = createSlice({\n name: 'chartData',\n initialState: initialChartDataState,\n reducers: {\n setChartData(state, action) {\n state.chartData = action.payload;\n if (action.payload == null) {\n state.dataStartIndex = 0;\n state.dataEndIndex = 0;\n return;\n }\n if (action.payload.length > 0 && state.dataEndIndex !== action.payload.length - 1) {\n state.dataEndIndex = action.payload.length - 1;\n }\n },\n setComputedData(state, action) {\n state.computedData = action.payload;\n },\n setDataStartEndIndexes(state, action) {\n var {\n startIndex,\n endIndex\n } = action.payload;\n if (startIndex != null) {\n state.dataStartIndex = startIndex;\n }\n if (endIndex != null) {\n state.dataEndIndex = endIndex;\n }\n }\n }\n});\nexport var {\n setChartData,\n setDataStartEndIndexes,\n setComputedData\n} = chartDataSlice.actions;\nexport var chartDataReducer = chartDataSlice.reducer;","var _excluded = [\"x\", \"y\"];\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport { useEffect } from 'react';\nimport { useAppDispatch, useAppSelector } from '../state/hooks';\nimport { selectEventEmitter, selectSyncId, selectSyncMethod } from '../state/selectors/rootPropsSelectors';\nimport { BRUSH_SYNC_EVENT, eventCenter, TOOLTIP_SYNC_EVENT } from '../util/Events';\nimport { createEventEmitter } from '../state/optionsSlice';\nimport { setSyncInteraction } from '../state/tooltipSlice';\nimport { selectTooltipDataKey } from '../state/selectors/selectors';\nimport { selectTooltipAxisTicks } from '../state/selectors/tooltipSelectors';\nimport { selectSynchronisedTooltipState } from './syncSelectors';\nimport { useChartLayout, useViewBox } from '../context/chartLayoutContext';\nimport { setDataStartEndIndexes } from '../state/chartDataSlice';\nvar noop = () => {};\nfunction useTooltipSyncEventsListener() {\n var mySyncId = useAppSelector(selectSyncId);\n var myEventEmitter = useAppSelector(selectEventEmitter);\n var dispatch = useAppDispatch();\n var syncMethod = useAppSelector(selectSyncMethod);\n var tooltipTicks = useAppSelector(selectTooltipAxisTicks);\n var layout = useChartLayout();\n var viewBox = useViewBox();\n var className = useAppSelector(state => state.rootProps.className);\n useEffect(() => {\n if (mySyncId == null) {\n // This chart is not synchronised with any other chart so we don't need to listen for any events.\n return noop;\n }\n var listener = (incomingSyncId, action, emitter) => {\n if (myEventEmitter === emitter) {\n // We don't want to dispatch actions that we sent ourselves.\n return;\n }\n if (mySyncId !== incomingSyncId) {\n // This event is not for this chart\n return;\n }\n if (syncMethod === 'index') {\n var _action$payload;\n if (viewBox && action !== null && action !== void 0 && (_action$payload = action.payload) !== null && _action$payload !== void 0 && _action$payload.coordinate) {\n var _action$payload$coord = action.payload.coordinate,\n {\n x: _x,\n y: _y\n } = _action$payload$coord,\n otherCoordinateProps = _objectWithoutProperties(_action$payload$coord, _excluded);\n var boundedCoordinate = _objectSpread(_objectSpread(_objectSpread({}, otherCoordinateProps), typeof _x === 'number' && {\n x: Math.max(viewBox.x, Math.min(_x, viewBox.x + viewBox.width))\n }), typeof _y === 'number' && {\n y: Math.max(viewBox.y, Math.min(_y, viewBox.y + viewBox.height))\n });\n var boundedAction = _objectSpread(_objectSpread({}, action), {}, {\n payload: _objectSpread(_objectSpread({}, action.payload), {}, {\n coordinate: boundedCoordinate\n })\n });\n dispatch(boundedAction);\n } else {\n dispatch(action);\n }\n return;\n }\n if (tooltipTicks == null) {\n // for the other two sync methods, we need the ticks to be available\n return;\n }\n var activeTick;\n if (typeof syncMethod === 'function') {\n /*\n * This is what the data shape in 2.x CategoricalChartState used to look like.\n * In 3.x we store things differently but let's try to keep the old shape for compatibility.\n */\n var syncMethodParam = {\n activeTooltipIndex: action.payload.index == null ? undefined : Number(action.payload.index),\n isTooltipActive: action.payload.active,\n activeIndex: action.payload.index == null ? undefined : Number(action.payload.index),\n activeLabel: action.payload.label,\n activeDataKey: action.payload.dataKey,\n activeCoordinate: action.payload.coordinate\n };\n // Call a callback function. If there is an application specific algorithm\n var activeTooltipIndex = syncMethod(tooltipTicks, syncMethodParam);\n activeTick = tooltipTicks[activeTooltipIndex];\n } else if (syncMethod === 'value') {\n // labels are always strings, tick.value might be a string or a number, depending on axis type\n activeTick = tooltipTicks.find(tick => String(tick.value) === action.payload.label);\n }\n var {\n coordinate\n } = action.payload;\n if (activeTick == null || action.payload.active === false || coordinate == null || viewBox == null) {\n dispatch(setSyncInteraction({\n active: false,\n coordinate: undefined,\n dataKey: undefined,\n index: null,\n label: undefined\n }));\n return;\n }\n var {\n x,\n y\n } = coordinate;\n var validateChartX = Math.min(x, viewBox.x + viewBox.width);\n var validateChartY = Math.min(y, viewBox.y + viewBox.height);\n var activeCoordinate = {\n x: layout === 'horizontal' ? activeTick.coordinate : validateChartX,\n y: layout === 'horizontal' ? validateChartY : activeTick.coordinate\n };\n var syncAction = setSyncInteraction({\n active: action.payload.active,\n coordinate: activeCoordinate,\n dataKey: action.payload.dataKey,\n index: String(activeTick.index),\n label: action.payload.label\n });\n dispatch(syncAction);\n };\n eventCenter.on(TOOLTIP_SYNC_EVENT, listener);\n return () => {\n eventCenter.off(TOOLTIP_SYNC_EVENT, listener);\n };\n }, [className, dispatch, myEventEmitter, mySyncId, syncMethod, tooltipTicks, layout, viewBox]);\n}\nfunction useBrushSyncEventsListener() {\n var mySyncId = useAppSelector(selectSyncId);\n var myEventEmitter = useAppSelector(selectEventEmitter);\n var dispatch = useAppDispatch();\n useEffect(() => {\n if (mySyncId == null) {\n // This chart is not synchronised with any other chart so we don't need to listen for any events.\n return noop;\n }\n var listener = (incomingSyncId, action, emitter) => {\n if (myEventEmitter === emitter) {\n // We don't want to dispatch actions that we sent ourselves.\n return;\n }\n if (mySyncId === incomingSyncId) {\n dispatch(setDataStartEndIndexes(action));\n }\n };\n eventCenter.on(BRUSH_SYNC_EVENT, listener);\n return () => {\n eventCenter.off(BRUSH_SYNC_EVENT, listener);\n };\n }, [dispatch, myEventEmitter, mySyncId]);\n}\n\n/**\n * Will receive synchronisation events from other charts.\n *\n * Reads syncMethod from state and decides how to synchronise the tooltip based on that.\n *\n * @returns void\n */\nexport function useSynchronisedEventsFromOtherCharts() {\n var dispatch = useAppDispatch();\n useEffect(() => {\n dispatch(createEventEmitter());\n }, [dispatch]);\n useTooltipSyncEventsListener();\n useBrushSyncEventsListener();\n}\n\n/**\n * Will send events to other charts.\n * If syncId is undefined, no events will be sent.\n *\n * This ignores the syncMethod, because that is set and computed on the receiving end.\n *\n * @param tooltipEventType from Tooltip\n * @param trigger from Tooltip\n * @param activeCoordinate from state\n * @param activeLabel from state\n * @param activeIndex from state\n * @param isTooltipActive from state\n * @returns void\n */\nexport function useTooltipChartSynchronisation(tooltipEventType, trigger, activeCoordinate, activeLabel, activeIndex, isTooltipActive) {\n var activeDataKey = useAppSelector(state => selectTooltipDataKey(state, tooltipEventType, trigger));\n var eventEmitterSymbol = useAppSelector(selectEventEmitter);\n var syncId = useAppSelector(selectSyncId);\n var syncMethod = useAppSelector(selectSyncMethod);\n var tooltipState = useAppSelector(selectSynchronisedTooltipState);\n var isReceivingSynchronisation = tooltipState === null || tooltipState === void 0 ? void 0 : tooltipState.active;\n useEffect(() => {\n if (isReceivingSynchronisation) {\n /*\n * This chart currently has active tooltip, synchronised from another chart.\n * Let's not send any outgoing synchronisation events while that's happening\n * to avoid infinite loops.\n */\n return;\n }\n if (syncId == null) {\n /*\n * syncId is not set, means that this chart is not synchronised with any other chart,\n * means we don't need to send synchronisation events\n */\n return;\n }\n if (eventEmitterSymbol == null) {\n /*\n * When using Recharts internal hooks and selectors outside charts context,\n * these properties will be undefined. Let's return silently instead of throwing an error.\n */\n return;\n }\n var syncAction = setSyncInteraction({\n active: isTooltipActive,\n coordinate: activeCoordinate,\n dataKey: activeDataKey,\n index: activeIndex,\n label: typeof activeLabel === 'number' ? String(activeLabel) : activeLabel\n });\n eventCenter.emit(TOOLTIP_SYNC_EVENT, syncId, syncAction, eventEmitterSymbol);\n }, [isReceivingSynchronisation, activeCoordinate, activeDataKey, activeIndex, activeLabel, eventEmitterSymbol, syncId, syncMethod, isTooltipActive]);\n}\nexport function useBrushChartSynchronisation() {\n var syncId = useAppSelector(selectSyncId);\n var eventEmitterSymbol = useAppSelector(selectEventEmitter);\n var brushStartIndex = useAppSelector(state => state.chartData.dataStartIndex);\n var brushEndIndex = useAppSelector(state => state.chartData.dataEndIndex);\n useEffect(() => {\n if (syncId == null || brushStartIndex == null || brushEndIndex == null || eventEmitterSymbol == null) {\n return;\n }\n var syncAction = {\n startIndex: brushStartIndex,\n endIndex: brushEndIndex\n };\n eventCenter.emit(BRUSH_SYNC_EVENT, syncId, syncAction, eventEmitterSymbol);\n }, [brushEndIndex, brushStartIndex, eventEmitterSymbol, syncId]);\n}","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport * as React from 'react';\nimport { useEffect } from 'react';\nimport { createPortal } from 'react-dom';\nimport { DefaultTooltipContent } from './DefaultTooltipContent';\nimport { TooltipBoundingBox } from './TooltipBoundingBox';\nimport { Global } from '../util/Global';\nimport { getUniqPayload } from '../util/payload/getUniqPayload';\nimport { useViewBox } from '../context/chartLayoutContext';\nimport { useAccessibilityLayer } from '../context/accessibilityContext';\nimport { useElementOffset } from '../util/useElementOffset';\nimport { Cursor } from './Cursor';\nimport { selectActiveCoordinate, selectActiveLabel, selectIsTooltipActive, selectTooltipPayload } from '../state/selectors/selectors';\nimport { useTooltipPortal } from '../context/tooltipPortalContext';\nimport { useAppDispatch, useAppSelector } from '../state/hooks';\nimport { setTooltipSettingsState } from '../state/tooltipSlice';\nimport { useTooltipChartSynchronisation } from '../synchronisation/useChartSynchronisation';\nimport { useTooltipEventType } from '../state/selectors/selectTooltipEventType';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nfunction defaultUniqBy(entry) {\n return entry.dataKey;\n}\nfunction renderContent(content, props) {\n if (/*#__PURE__*/React.isValidElement(content)) {\n return /*#__PURE__*/React.cloneElement(content, props);\n }\n if (typeof content === 'function') {\n return /*#__PURE__*/React.createElement(content, props);\n }\n return /*#__PURE__*/React.createElement(DefaultTooltipContent, props);\n}\nvar emptyPayload = [];\nvar defaultTooltipProps = {\n allowEscapeViewBox: {\n x: false,\n y: false\n },\n animationDuration: 400,\n animationEasing: 'ease',\n axisId: 0,\n contentStyle: {},\n cursor: true,\n filterNull: true,\n isAnimationActive: !Global.isSsr,\n itemSorter: 'name',\n itemStyle: {},\n labelStyle: {},\n offset: 10,\n reverseDirection: {\n x: false,\n y: false\n },\n separator: ' : ',\n trigger: 'hover',\n useTranslate3d: false,\n wrapperStyle: {}\n};\nexport function Tooltip(outsideProps) {\n var props = resolveDefaultProps(outsideProps, defaultTooltipProps);\n var {\n active: activeFromProps,\n allowEscapeViewBox,\n animationDuration,\n animationEasing,\n content,\n filterNull,\n isAnimationActive,\n offset,\n payloadUniqBy,\n position,\n reverseDirection,\n useTranslate3d,\n wrapperStyle,\n cursor,\n shared,\n trigger,\n defaultIndex,\n portal: portalFromProps,\n axisId\n } = props;\n var dispatch = useAppDispatch();\n var defaultIndexAsString = typeof defaultIndex === 'number' ? String(defaultIndex) : defaultIndex;\n useEffect(() => {\n dispatch(setTooltipSettingsState({\n shared,\n trigger,\n axisId,\n active: activeFromProps,\n defaultIndex: defaultIndexAsString\n }));\n }, [dispatch, shared, trigger, axisId, activeFromProps, defaultIndexAsString]);\n var viewBox = useViewBox();\n var accessibilityLayer = useAccessibilityLayer();\n var tooltipEventType = useTooltipEventType(shared);\n var {\n activeIndex,\n isActive\n } = useAppSelector(state => selectIsTooltipActive(state, tooltipEventType, trigger, defaultIndexAsString));\n var payloadFromRedux = useAppSelector(state => selectTooltipPayload(state, tooltipEventType, trigger, defaultIndexAsString));\n var labelFromRedux = useAppSelector(state => selectActiveLabel(state, tooltipEventType, trigger, defaultIndexAsString));\n var coordinate = useAppSelector(state => selectActiveCoordinate(state, tooltipEventType, trigger, defaultIndexAsString));\n var payload = payloadFromRedux;\n var tooltipPortalFromContext = useTooltipPortal();\n /*\n * The user can set `active=true` on the Tooltip in which case the Tooltip will stay always active,\n * or `active=false` in which case the Tooltip never shows.\n *\n * If the `active` prop is not defined then it will show and hide based on mouse or keyboard activity.\n */\n var finalIsActive = activeFromProps !== null && activeFromProps !== void 0 ? activeFromProps : isActive;\n var [lastBoundingBox, updateBoundingBox] = useElementOffset([payload, finalIsActive]);\n var finalLabel = tooltipEventType === 'axis' ? labelFromRedux : undefined;\n useTooltipChartSynchronisation(tooltipEventType, trigger, coordinate, finalLabel, activeIndex, finalIsActive);\n var tooltipPortal = portalFromProps !== null && portalFromProps !== void 0 ? portalFromProps : tooltipPortalFromContext;\n if (tooltipPortal == null) {\n return null;\n }\n var finalPayload = payload !== null && payload !== void 0 ? payload : emptyPayload;\n if (!finalIsActive) {\n finalPayload = emptyPayload;\n }\n if (filterNull && finalPayload.length) {\n finalPayload = getUniqPayload(payload.filter(entry => entry.value != null && (entry.hide !== true || props.includeHidden)), payloadUniqBy, defaultUniqBy);\n }\n var hasPayload = finalPayload.length > 0;\n var tooltipElement = /*#__PURE__*/React.createElement(TooltipBoundingBox, {\n allowEscapeViewBox: allowEscapeViewBox,\n animationDuration: animationDuration,\n animationEasing: animationEasing,\n isAnimationActive: isAnimationActive,\n active: finalIsActive,\n coordinate: coordinate,\n hasPayload: hasPayload,\n offset: offset,\n position: position,\n reverseDirection: reverseDirection,\n useTranslate3d: useTranslate3d,\n viewBox: viewBox,\n wrapperStyle: wrapperStyle,\n lastBoundingBox: lastBoundingBox,\n innerRef: updateBoundingBox,\n hasPortalFromProps: Boolean(portalFromProps)\n }, renderContent(content, _objectSpread(_objectSpread({}, props), {}, {\n // @ts-expect-error renderContent method expects the payload to be mutable, TODO make it immutable\n payload: finalPayload,\n label: finalLabel,\n active: finalIsActive,\n coordinate,\n accessibilityLayer\n })));\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/createPortal(tooltipElement, tooltipPortal), finalIsActive && /*#__PURE__*/React.createElement(Cursor, {\n cursor: cursor,\n tooltipEventType: tooltipEventType,\n coordinate: coordinate,\n payload: payload,\n index: activeIndex\n }));\n}","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction debounce(func, debounceMs, { signal, edges } = {}) {\n let pendingThis = undefined;\n let pendingArgs = null;\n const leading = edges != null && edges.includes('leading');\n const trailing = edges == null || edges.includes('trailing');\n const invoke = () => {\n if (pendingArgs !== null) {\n func.apply(pendingThis, pendingArgs);\n pendingThis = undefined;\n pendingArgs = null;\n }\n };\n const onTimerEnd = () => {\n if (trailing) {\n invoke();\n }\n cancel();\n };\n let timeoutId = null;\n const schedule = () => {\n if (timeoutId != null) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = null;\n onTimerEnd();\n }, debounceMs);\n };\n const cancelTimer = () => {\n if (timeoutId !== null) {\n clearTimeout(timeoutId);\n timeoutId = null;\n }\n };\n const cancel = () => {\n cancelTimer();\n pendingThis = undefined;\n pendingArgs = null;\n };\n const flush = () => {\n invoke();\n };\n const debounced = function (...args) {\n if (signal?.aborted) {\n return;\n }\n pendingThis = this;\n pendingArgs = args;\n const isFirstCall = timeoutId == null;\n schedule();\n if (leading && isFirstCall) {\n invoke();\n }\n };\n debounced.schedule = schedule;\n debounced.cancel = cancel;\n debounced.flush = flush;\n signal?.addEventListener('abort', cancel, { once: true });\n return debounced;\n}\n\nexports.debounce = debounce;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst debounce$1 = require('../../function/debounce.js');\n\nfunction debounce(func, debounceMs = 0, options = {}) {\n if (typeof options !== 'object') {\n options = {};\n }\n const { leading = false, trailing = true, maxWait } = options;\n const edges = Array(2);\n if (leading) {\n edges[0] = 'leading';\n }\n if (trailing) {\n edges[1] = 'trailing';\n }\n let result = undefined;\n let pendingAt = null;\n const _debounced = debounce$1.debounce(function (...args) {\n result = func.apply(this, args);\n pendingAt = null;\n }, debounceMs, { edges });\n const debounced = function (...args) {\n if (maxWait != null) {\n if (pendingAt === null) {\n pendingAt = Date.now();\n }\n if (Date.now() - pendingAt >= maxWait) {\n result = func.apply(this, args);\n pendingAt = Date.now();\n _debounced.cancel();\n _debounced.schedule();\n return result;\n }\n }\n _debounced.apply(this, args);\n return result;\n };\n const flush = () => {\n _debounced.flush();\n return result;\n };\n debounced.cancel = _debounced.cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nexports.debounce = debounce;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst debounce = require('./debounce.js');\n\nfunction throttle(func, throttleMs = 0, options = {}) {\n const { leading = true, trailing = true } = options;\n return debounce.debounce(func, throttleMs, {\n leading,\n maxWait: throttleMs,\n trailing,\n });\n}\n\nexports.throttle = throttle;\n","module.exports = require('../dist/compat/function/throttle.js').throttle;\n","/* eslint no-console: 0 */\nvar isDev = process.env.NODE_ENV !== 'production';\nexport var warn = function warn(condition, format) {\n for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n if (isDev && typeof console !== 'undefined' && console.warn) {\n if (format === undefined) {\n console.warn('LogUtils requires an error message argument');\n }\n if (!condition) {\n if (format === undefined) {\n console.warn('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var argIndex = 0;\n console.warn(format.replace(/%s/g, () => args[argIndex++]));\n }\n }\n }\n};","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport { clsx } from 'clsx';\nimport * as React from 'react';\nimport { forwardRef, cloneElement, useState, useImperativeHandle, useRef, useEffect, useMemo, useCallback } from 'react';\nimport throttle from 'es-toolkit/compat/throttle';\nimport { isPercent } from '../util/DataUtils';\nimport { warn } from '../util/LogUtils';\nexport var ResponsiveContainer = /*#__PURE__*/forwardRef((_ref, ref) => {\n var {\n aspect,\n initialDimension = {\n width: -1,\n height: -1\n },\n width = '100%',\n height = '100%',\n /*\n * default min-width to 0 if not specified - 'auto' causes issues with flexbox\n * https://github.com/recharts/recharts/issues/172\n */\n minWidth = 0,\n minHeight,\n maxHeight,\n children,\n debounce = 0,\n id,\n className,\n onResize,\n style = {}\n } = _ref;\n var containerRef = useRef(null);\n var onResizeRef = useRef();\n onResizeRef.current = onResize;\n useImperativeHandle(ref, () => containerRef.current);\n var [sizes, setSizes] = useState({\n containerWidth: initialDimension.width,\n containerHeight: initialDimension.height\n });\n var setContainerSize = useCallback((newWidth, newHeight) => {\n setSizes(prevState => {\n var roundedWidth = Math.round(newWidth);\n var roundedHeight = Math.round(newHeight);\n if (prevState.containerWidth === roundedWidth && prevState.containerHeight === roundedHeight) {\n return prevState;\n }\n return {\n containerWidth: roundedWidth,\n containerHeight: roundedHeight\n };\n });\n }, []);\n useEffect(() => {\n var callback = entries => {\n var _onResizeRef$current;\n var {\n width: containerWidth,\n height: containerHeight\n } = entries[0].contentRect;\n setContainerSize(containerWidth, containerHeight);\n (_onResizeRef$current = onResizeRef.current) === null || _onResizeRef$current === void 0 || _onResizeRef$current.call(onResizeRef, containerWidth, containerHeight);\n };\n if (debounce > 0) {\n callback = throttle(callback, debounce, {\n trailing: true,\n leading: false\n });\n }\n var observer = new ResizeObserver(callback);\n var {\n width: containerWidth,\n height: containerHeight\n } = containerRef.current.getBoundingClientRect();\n setContainerSize(containerWidth, containerHeight);\n observer.observe(containerRef.current);\n return () => {\n observer.disconnect();\n };\n }, [setContainerSize, debounce]);\n var chartContent = useMemo(() => {\n var {\n containerWidth,\n containerHeight\n } = sizes;\n if (containerWidth < 0 || containerHeight < 0) {\n return null;\n }\n warn(isPercent(width) || isPercent(height), \"The width(%s) and height(%s) are both fixed numbers,\\n maybe you don't need to use a ResponsiveContainer.\", width, height);\n warn(!aspect || aspect > 0, 'The aspect(%s) must be greater than zero.', aspect);\n var calculatedWidth = isPercent(width) ? containerWidth : width;\n var calculatedHeight = isPercent(height) ? containerHeight : height;\n if (aspect && aspect > 0) {\n // Preserve the desired aspect ratio\n if (calculatedWidth) {\n // Will default to using width for aspect ratio\n calculatedHeight = calculatedWidth / aspect;\n } else if (calculatedHeight) {\n // But we should also take height into consideration\n calculatedWidth = calculatedHeight * aspect;\n }\n\n // if maxHeight is set, overwrite if calculatedHeight is greater than maxHeight\n if (maxHeight && calculatedHeight > maxHeight) {\n calculatedHeight = maxHeight;\n }\n }\n warn(calculatedWidth > 0 || calculatedHeight > 0, \"The width(%s) and height(%s) of chart should be greater than 0,\\n please check the style of container, or the props width(%s) and height(%s),\\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\\n height and width.\", calculatedWidth, calculatedHeight, width, height, minWidth, minHeight, aspect);\n return React.Children.map(children, child => {\n return /*#__PURE__*/cloneElement(child, {\n width: calculatedWidth,\n height: calculatedHeight,\n // calculate the actual size and override it.\n style: _objectSpread({\n width: calculatedWidth,\n height: calculatedHeight\n }, child.props.style)\n });\n });\n }, [aspect, children, height, maxHeight, minHeight, minWidth, sizes, width]);\n return /*#__PURE__*/React.createElement(\"div\", {\n id: id ? \"\".concat(id) : undefined,\n className: clsx('recharts-responsive-container', className),\n style: _objectSpread(_objectSpread({}, style), {}, {\n width,\n height,\n minWidth,\n minHeight,\n maxHeight\n }),\n ref: containerRef\n }, /*#__PURE__*/React.createElement(\"div\", {\n style: {\n width: 0,\n height: 0,\n overflow: 'visible'\n }\n }, chartContent));\n});","/**\n * @fileOverview Cross\n */\n\nexport var Cell = _props => null;\nCell.displayName = 'Cell';","function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * Simple LRU (Least Recently Used) cache implementation\n */\nexport class LRUCache {\n constructor(maxSize) {\n _defineProperty(this, \"cache\", new Map());\n this.maxSize = maxSize;\n }\n get(key) {\n var value = this.cache.get(key);\n if (value !== undefined) {\n this.cache.delete(key);\n this.cache.set(key, value);\n }\n return value;\n }\n set(key, value) {\n if (this.cache.has(key)) {\n this.cache.delete(key);\n } else if (this.cache.size >= this.maxSize) {\n var firstKey = this.cache.keys().next().value;\n this.cache.delete(firstKey);\n }\n this.cache.set(key, value);\n }\n clear() {\n this.cache.clear();\n }\n size() {\n return this.cache.size;\n }\n}","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport { Global } from './Global';\nimport { LRUCache } from './LRUCache';\nvar defaultConfig = {\n cacheSize: 2000,\n enableCache: true\n};\nvar currentConfig = _objectSpread({}, defaultConfig);\nvar stringCache = new LRUCache(currentConfig.cacheSize);\nvar SPAN_STYLE = {\n position: 'absolute',\n top: '-20000px',\n left: 0,\n padding: 0,\n margin: 0,\n border: 'none',\n whiteSpace: 'pre'\n};\nvar MEASUREMENT_SPAN_ID = 'recharts_measurement_span';\nfunction createCacheKey(text, style) {\n // Simple string concatenation for better performance than JSON.stringify\n var fontSize = style.fontSize || '';\n var fontFamily = style.fontFamily || '';\n var fontWeight = style.fontWeight || '';\n var fontStyle = style.fontStyle || '';\n var letterSpacing = style.letterSpacing || '';\n var textTransform = style.textTransform || '';\n return \"\".concat(text, \"|\").concat(fontSize, \"|\").concat(fontFamily, \"|\").concat(fontWeight, \"|\").concat(fontStyle, \"|\").concat(letterSpacing, \"|\").concat(textTransform);\n}\n\n/**\n * Measure text using DOM (accurate but slower)\n * @param text - The text to measure\n * @param style - CSS style properties to apply\n * @returns The size of the text\n */\nvar measureTextWithDOM = (text, style) => {\n try {\n var measurementSpan = document.getElementById(MEASUREMENT_SPAN_ID);\n if (!measurementSpan) {\n measurementSpan = document.createElement('span');\n measurementSpan.setAttribute('id', MEASUREMENT_SPAN_ID);\n measurementSpan.setAttribute('aria-hidden', 'true');\n document.body.appendChild(measurementSpan);\n }\n\n // Apply styles directly without unnecessary object creation\n Object.assign(measurementSpan.style, SPAN_STYLE, style);\n measurementSpan.textContent = \"\".concat(text);\n var rect = measurementSpan.getBoundingClientRect();\n return {\n width: rect.width,\n height: rect.height\n };\n } catch (_unused) {\n return {\n width: 0,\n height: 0\n };\n }\n};\nexport var getStringSize = function getStringSize(text) {\n var style = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (text === undefined || text === null || Global.isSsr) {\n return {\n width: 0,\n height: 0\n };\n }\n\n // If caching is disabled, measure directly\n if (!currentConfig.enableCache) {\n return measureTextWithDOM(text, style);\n }\n var cacheKey = createCacheKey(text, style);\n var cachedResult = stringCache.get(cacheKey);\n if (cachedResult) {\n return cachedResult;\n }\n\n // Measure using DOM\n var result = measureTextWithDOM(text, style);\n\n // Store in LRU cache\n stringCache.set(cacheKey, result);\n return result;\n};\n\n/**\n * Configure text measurement behavior\n * @param config - Partial configuration to apply\n * @returns void\n */\nexport var configureTextMeasurement = config => {\n var newConfig = _objectSpread(_objectSpread({}, currentConfig), config);\n if (newConfig.cacheSize !== currentConfig.cacheSize) {\n stringCache = new LRUCache(newConfig.cacheSize);\n }\n currentConfig = newConfig;\n};\n\n/**\n * Get current text measurement configuration\n * @returns Current configuration\n */\nexport var getTextMeasurementConfig = () => _objectSpread({}, currentConfig);\n\n/**\n * Clear the string size cache. Useful for testing or memory management.\n * @returns void\n */\nexport var clearStringCache = () => {\n stringCache.clear();\n};\n\n/**\n * Get cache statistics for debugging purposes.\n * @returns Cache statistics including size and max size\n */\nexport var getStringCacheStats = () => ({\n size: stringCache.size(),\n maxSize: currentConfig.cacheSize\n});","import { isNan } from './DataUtils';\nvar MULTIPLY_OR_DIVIDE_REGEX = /(-?\\d+(?:\\.\\d+)?[a-zA-Z%]*)([*/])(-?\\d+(?:\\.\\d+)?[a-zA-Z%]*)/;\nvar ADD_OR_SUBTRACT_REGEX = /(-?\\d+(?:\\.\\d+)?[a-zA-Z%]*)([+-])(-?\\d+(?:\\.\\d+)?[a-zA-Z%]*)/;\nvar CSS_LENGTH_UNIT_REGEX = /^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/;\nvar NUM_SPLIT_REGEX = /(-?\\d+(?:\\.\\d+)?)([a-zA-Z%]+)?/;\nvar CONVERSION_RATES = {\n cm: 96 / 2.54,\n mm: 96 / 25.4,\n pt: 96 / 72,\n pc: 96 / 6,\n in: 96,\n Q: 96 / (2.54 * 40),\n px: 1\n};\nvar FIXED_CSS_LENGTH_UNITS = Object.keys(CONVERSION_RATES);\nvar STR_NAN = 'NaN';\nfunction convertToPx(value, unit) {\n return value * CONVERSION_RATES[unit];\n}\nclass DecimalCSS {\n static parse(str) {\n var _NUM_SPLIT_REGEX$exec;\n var [, numStr, unit] = (_NUM_SPLIT_REGEX$exec = NUM_SPLIT_REGEX.exec(str)) !== null && _NUM_SPLIT_REGEX$exec !== void 0 ? _NUM_SPLIT_REGEX$exec : [];\n return new DecimalCSS(parseFloat(numStr), unit !== null && unit !== void 0 ? unit : '');\n }\n constructor(num, unit) {\n this.num = num;\n this.unit = unit;\n this.num = num;\n this.unit = unit;\n if (isNan(num)) {\n this.unit = '';\n }\n if (unit !== '' && !CSS_LENGTH_UNIT_REGEX.test(unit)) {\n this.num = NaN;\n this.unit = '';\n }\n if (FIXED_CSS_LENGTH_UNITS.includes(unit)) {\n this.num = convertToPx(num, unit);\n this.unit = 'px';\n }\n }\n add(other) {\n if (this.unit !== other.unit) {\n return new DecimalCSS(NaN, '');\n }\n return new DecimalCSS(this.num + other.num, this.unit);\n }\n subtract(other) {\n if (this.unit !== other.unit) {\n return new DecimalCSS(NaN, '');\n }\n return new DecimalCSS(this.num - other.num, this.unit);\n }\n multiply(other) {\n if (this.unit !== '' && other.unit !== '' && this.unit !== other.unit) {\n return new DecimalCSS(NaN, '');\n }\n return new DecimalCSS(this.num * other.num, this.unit || other.unit);\n }\n divide(other) {\n if (this.unit !== '' && other.unit !== '' && this.unit !== other.unit) {\n return new DecimalCSS(NaN, '');\n }\n return new DecimalCSS(this.num / other.num, this.unit || other.unit);\n }\n toString() {\n return \"\".concat(this.num).concat(this.unit);\n }\n isNaN() {\n return isNan(this.num);\n }\n}\nfunction calculateArithmetic(expr) {\n if (expr.includes(STR_NAN)) {\n return STR_NAN;\n }\n var newExpr = expr;\n while (newExpr.includes('*') || newExpr.includes('/')) {\n var _MULTIPLY_OR_DIVIDE_R;\n var [, leftOperand, operator, rightOperand] = (_MULTIPLY_OR_DIVIDE_R = MULTIPLY_OR_DIVIDE_REGEX.exec(newExpr)) !== null && _MULTIPLY_OR_DIVIDE_R !== void 0 ? _MULTIPLY_OR_DIVIDE_R : [];\n var lTs = DecimalCSS.parse(leftOperand !== null && leftOperand !== void 0 ? leftOperand : '');\n var rTs = DecimalCSS.parse(rightOperand !== null && rightOperand !== void 0 ? rightOperand : '');\n var result = operator === '*' ? lTs.multiply(rTs) : lTs.divide(rTs);\n if (result.isNaN()) {\n return STR_NAN;\n }\n newExpr = newExpr.replace(MULTIPLY_OR_DIVIDE_REGEX, result.toString());\n }\n while (newExpr.includes('+') || /.-\\d+(?:\\.\\d+)?/.test(newExpr)) {\n var _ADD_OR_SUBTRACT_REGE;\n var [, _leftOperand, _operator, _rightOperand] = (_ADD_OR_SUBTRACT_REGE = ADD_OR_SUBTRACT_REGEX.exec(newExpr)) !== null && _ADD_OR_SUBTRACT_REGE !== void 0 ? _ADD_OR_SUBTRACT_REGE : [];\n var _lTs = DecimalCSS.parse(_leftOperand !== null && _leftOperand !== void 0 ? _leftOperand : '');\n var _rTs = DecimalCSS.parse(_rightOperand !== null && _rightOperand !== void 0 ? _rightOperand : '');\n var _result = _operator === '+' ? _lTs.add(_rTs) : _lTs.subtract(_rTs);\n if (_result.isNaN()) {\n return STR_NAN;\n }\n newExpr = newExpr.replace(ADD_OR_SUBTRACT_REGEX, _result.toString());\n }\n return newExpr;\n}\nvar PARENTHESES_REGEX = /\\(([^()]*)\\)/;\nfunction calculateParentheses(expr) {\n var newExpr = expr;\n var match;\n // eslint-disable-next-line no-cond-assign\n while ((match = PARENTHESES_REGEX.exec(newExpr)) != null) {\n var [, parentheticalExpression] = match;\n newExpr = newExpr.replace(PARENTHESES_REGEX, calculateArithmetic(parentheticalExpression));\n }\n return newExpr;\n}\nfunction evaluateExpression(expression) {\n var newExpr = expression.replace(/\\s+/g, '');\n newExpr = calculateParentheses(newExpr);\n newExpr = calculateArithmetic(newExpr);\n return newExpr;\n}\nexport function safeEvaluateExpression(expression) {\n try {\n return evaluateExpression(expression);\n } catch (_unused) {\n return STR_NAN;\n }\n}\nexport function reduceCSSCalc(expression) {\n var result = safeEvaluateExpression(expression.slice(5, -1));\n if (result === STR_NAN) {\n return '';\n }\n return result;\n}","var _excluded = [\"x\", \"y\", \"lineHeight\", \"capHeight\", \"scaleToFit\", \"textAnchor\", \"verticalAnchor\", \"fill\"],\n _excluded2 = [\"dx\", \"dy\", \"angle\", \"className\", \"breakAll\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from 'react';\nimport { useMemo, forwardRef } from 'react';\nimport { clsx } from 'clsx';\nimport { isNullish, isNumber, isNumOrStr } from '../util/DataUtils';\nimport { Global } from '../util/Global';\nimport { filterProps } from '../util/ReactUtils';\nimport { getStringSize } from '../util/DOMUtils';\nimport { reduceCSSCalc } from '../util/ReduceCSSCalc';\nvar BREAKING_SPACES = /[ \\f\\n\\r\\t\\v\\u2028\\u2029]+/;\nvar calculateWordWidths = _ref => {\n var {\n children,\n breakAll,\n style\n } = _ref;\n try {\n var words = [];\n if (!isNullish(children)) {\n if (breakAll) {\n words = children.toString().split('');\n } else {\n words = children.toString().split(BREAKING_SPACES);\n }\n }\n var wordsWithComputedWidth = words.map(word => ({\n word,\n width: getStringSize(word, style).width\n }));\n var spaceWidth = breakAll ? 0 : getStringSize('\\u00A0', style).width;\n return {\n wordsWithComputedWidth,\n spaceWidth\n };\n } catch (_unused) {\n return null;\n }\n};\nvar calculateWordsByLines = (_ref2, initialWordsWithComputedWith, spaceWidth, lineWidth, scaleToFit) => {\n var {\n maxLines,\n children,\n style,\n breakAll\n } = _ref2;\n var shouldLimitLines = isNumber(maxLines);\n var text = children;\n var calculate = function calculate() {\n var words = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n return words.reduce((result, _ref3) => {\n var {\n word,\n width\n } = _ref3;\n var currentLine = result[result.length - 1];\n if (currentLine && (lineWidth == null || scaleToFit || currentLine.width + width + spaceWidth < Number(lineWidth))) {\n // Word can be added to an existing line\n currentLine.words.push(word);\n currentLine.width += width + spaceWidth;\n } else {\n // Add first word to line or word is too long to scaleToFit on existing line\n var newLine = {\n words: [word],\n width\n };\n result.push(newLine);\n }\n return result;\n }, []);\n };\n var originalResult = calculate(initialWordsWithComputedWith);\n var findLongestLine = words => words.reduce((a, b) => a.width > b.width ? a : b);\n if (!shouldLimitLines || scaleToFit) {\n return originalResult;\n }\n var overflows = originalResult.length > maxLines || findLongestLine(originalResult).width > Number(lineWidth);\n if (!overflows) {\n return originalResult;\n }\n var suffix = '…';\n var checkOverflow = index => {\n var tempText = text.slice(0, index);\n var words = calculateWordWidths({\n breakAll,\n style,\n children: tempText + suffix\n }).wordsWithComputedWidth;\n var result = calculate(words);\n var doesOverflow = result.length > maxLines || findLongestLine(result).width > Number(lineWidth);\n return [doesOverflow, result];\n };\n var start = 0;\n var end = text.length - 1;\n var iterations = 0;\n var trimmedResult;\n while (start <= end && iterations <= text.length - 1) {\n var middle = Math.floor((start + end) / 2);\n var prev = middle - 1;\n var [doesPrevOverflow, result] = checkOverflow(prev);\n var [doesMiddleOverflow] = checkOverflow(middle);\n if (!doesPrevOverflow && !doesMiddleOverflow) {\n start = middle + 1;\n }\n if (doesPrevOverflow && doesMiddleOverflow) {\n end = middle - 1;\n }\n if (!doesPrevOverflow && doesMiddleOverflow) {\n trimmedResult = result;\n break;\n }\n iterations++;\n }\n\n // Fallback to originalResult (result without trimming) if we cannot find the\n // where to trim. This should not happen :tm:\n return trimmedResult || originalResult;\n};\nvar getWordsWithoutCalculate = children => {\n var words = !isNullish(children) ? children.toString().split(BREAKING_SPACES) : [];\n return [{\n words\n }];\n};\nexport var getWordsByLines = _ref4 => {\n var {\n width,\n scaleToFit,\n children,\n style,\n breakAll,\n maxLines\n } = _ref4;\n // Only perform calculations if using features that require them (multiline, scaleToFit)\n if ((width || scaleToFit) && !Global.isSsr) {\n var wordsWithComputedWidth, spaceWidth;\n var wordWidths = calculateWordWidths({\n breakAll,\n children,\n style\n });\n if (wordWidths) {\n var {\n wordsWithComputedWidth: wcw,\n spaceWidth: sw\n } = wordWidths;\n wordsWithComputedWidth = wcw;\n spaceWidth = sw;\n } else {\n return getWordsWithoutCalculate(children);\n }\n return calculateWordsByLines({\n breakAll,\n children,\n maxLines,\n style\n }, wordsWithComputedWidth, spaceWidth, width, scaleToFit);\n }\n return getWordsWithoutCalculate(children);\n};\nvar DEFAULT_FILL = '#808080';\nexport var Text = /*#__PURE__*/forwardRef((_ref5, ref) => {\n var {\n x: propsX = 0,\n y: propsY = 0,\n lineHeight = '1em',\n // Magic number from d3\n capHeight = '0.71em',\n scaleToFit = false,\n textAnchor = 'start',\n // Maintain compat with existing charts / default SVG behavior\n verticalAnchor = 'end',\n fill = DEFAULT_FILL\n } = _ref5,\n props = _objectWithoutProperties(_ref5, _excluded);\n var wordsByLines = useMemo(() => {\n return getWordsByLines({\n breakAll: props.breakAll,\n children: props.children,\n maxLines: props.maxLines,\n scaleToFit,\n style: props.style,\n width: props.width\n });\n }, [props.breakAll, props.children, props.maxLines, scaleToFit, props.style, props.width]);\n var {\n dx,\n dy,\n angle,\n className,\n breakAll\n } = props,\n textProps = _objectWithoutProperties(props, _excluded2);\n if (!isNumOrStr(propsX) || !isNumOrStr(propsY) || wordsByLines.length === 0) {\n return null;\n }\n var x = propsX + (isNumber(dx) ? dx : 0);\n var y = propsY + (isNumber(dy) ? dy : 0);\n var startDy;\n switch (verticalAnchor) {\n case 'start':\n startDy = reduceCSSCalc(\"calc(\".concat(capHeight, \")\"));\n break;\n case 'middle':\n startDy = reduceCSSCalc(\"calc(\".concat((wordsByLines.length - 1) / 2, \" * -\").concat(lineHeight, \" + (\").concat(capHeight, \" / 2))\"));\n break;\n default:\n startDy = reduceCSSCalc(\"calc(\".concat(wordsByLines.length - 1, \" * -\").concat(lineHeight, \")\"));\n break;\n }\n var transforms = [];\n if (scaleToFit) {\n var lineWidth = wordsByLines[0].width;\n var {\n width\n } = props;\n transforms.push(\"scale(\".concat(isNumber(width) ? width / lineWidth : 1, \")\"));\n }\n if (angle) {\n transforms.push(\"rotate(\".concat(angle, \", \").concat(x, \", \").concat(y, \")\"));\n }\n if (transforms.length) {\n textProps.transform = transforms.join(' ');\n }\n return /*#__PURE__*/React.createElement(\"text\", _extends({}, filterProps(textProps, true), {\n ref: ref,\n x: x,\n y: y,\n className: clsx('recharts-text', className),\n textAnchor: textAnchor,\n fill: fill.includes('url') ? DEFAULT_FILL : fill\n }), wordsByLines.map((line, index) => {\n var words = line.words.join(breakAll ? '' : ' ');\n return (\n /*#__PURE__*/\n // duplicate words will cause duplicate keys\n // eslint-disable-next-line react/no-array-index-key\n React.createElement(\"tspan\", {\n x: x,\n dy: index === 0 ? startDy : lineHeight,\n key: \"\".concat(words, \"-\").concat(index)\n }, words)\n );\n }));\n});\nText.displayName = 'Text';","var _excluded = [\"labelRef\"];\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from 'react';\nimport { cloneElement, isValidElement, createElement, createContext, useContext, useMemo } from 'react';\nimport { clsx } from 'clsx';\nimport { Text } from './Text';\nimport { filterProps } from '../util/ReactUtils';\nimport { isNumOrStr, isNumber, isPercent, getPercentValue, uniqueId, mathSign, isNullish } from '../util/DataUtils';\nimport { polarToCartesian } from '../util/PolarUtils';\nimport { useViewBox } from '../context/chartLayoutContext';\nimport { useAppSelector } from '../state/hooks';\nimport { selectPolarViewBox } from '../state/selectors/polarAxisSelectors';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nvar CartesianLabelContext = /*#__PURE__*/createContext(null);\nexport var CartesianLabelContextProvider = _ref => {\n var {\n x,\n y,\n width,\n height,\n children\n } = _ref;\n var viewBox = useMemo(() => ({\n x,\n y,\n width,\n height\n }), [x, y, width, height]);\n return /*#__PURE__*/React.createElement(CartesianLabelContext.Provider, {\n value: viewBox\n }, children);\n};\nvar useCartesianLabelContext = () => {\n var labelChildContext = useContext(CartesianLabelContext);\n var chartContext = useViewBox();\n return labelChildContext || chartContext;\n};\nvar PolarLabelContext = /*#__PURE__*/createContext(null);\nexport var PolarLabelContextProvider = _ref2 => {\n var {\n cx,\n cy,\n innerRadius,\n outerRadius,\n startAngle,\n endAngle,\n clockWise,\n children\n } = _ref2;\n var viewBox = useMemo(() => ({\n cx,\n cy,\n innerRadius,\n outerRadius,\n startAngle,\n endAngle,\n clockWise\n }), [cx, cy, innerRadius, outerRadius, startAngle, endAngle, clockWise]);\n return /*#__PURE__*/React.createElement(PolarLabelContext.Provider, {\n value: viewBox\n }, children);\n};\nexport var usePolarLabelContext = () => {\n var labelChildContext = useContext(PolarLabelContext);\n var chartContext = useAppSelector(selectPolarViewBox);\n return labelChildContext || chartContext;\n};\nvar getLabel = props => {\n var {\n value,\n formatter\n } = props;\n var label = isNullish(props.children) ? value : props.children;\n if (typeof formatter === 'function') {\n return formatter(label);\n }\n return label;\n};\nexport var isLabelContentAFunction = content => {\n return content != null && typeof content === 'function';\n};\nvar getDeltaAngle = (startAngle, endAngle) => {\n var sign = mathSign(endAngle - startAngle);\n var deltaAngle = Math.min(Math.abs(endAngle - startAngle), 360);\n return sign * deltaAngle;\n};\nvar renderRadialLabel = (labelProps, position, label, attrs, viewBox) => {\n var {\n offset,\n className\n } = labelProps;\n var {\n cx,\n cy,\n innerRadius,\n outerRadius,\n startAngle,\n endAngle,\n clockWise\n } = viewBox;\n var radius = (innerRadius + outerRadius) / 2;\n var deltaAngle = getDeltaAngle(startAngle, endAngle);\n var sign = deltaAngle >= 0 ? 1 : -1;\n var labelAngle, direction;\n switch (position) {\n case 'insideStart':\n labelAngle = startAngle + sign * offset;\n direction = clockWise;\n break;\n case 'insideEnd':\n labelAngle = endAngle - sign * offset;\n direction = !clockWise;\n break;\n case 'end':\n labelAngle = endAngle + sign * offset;\n direction = clockWise;\n break;\n default:\n throw new Error(\"Unsupported position \".concat(position));\n }\n direction = deltaAngle <= 0 ? direction : !direction;\n var startPoint = polarToCartesian(cx, cy, radius, labelAngle);\n var endPoint = polarToCartesian(cx, cy, radius, labelAngle + (direction ? 1 : -1) * 359);\n var path = \"M\".concat(startPoint.x, \",\").concat(startPoint.y, \"\\n A\").concat(radius, \",\").concat(radius, \",0,1,\").concat(direction ? 0 : 1, \",\\n \").concat(endPoint.x, \",\").concat(endPoint.y);\n var id = isNullish(labelProps.id) ? uniqueId('recharts-radial-line-') : labelProps.id;\n return /*#__PURE__*/React.createElement(\"text\", _extends({}, attrs, {\n dominantBaseline: \"central\",\n className: clsx('recharts-radial-bar-label', className)\n }), /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"path\", {\n id: id,\n d: path\n })), /*#__PURE__*/React.createElement(\"textPath\", {\n xlinkHref: \"#\".concat(id)\n }, label));\n};\nvar getAttrsOfPolarLabel = (viewBox, offset, position) => {\n var {\n cx,\n cy,\n innerRadius,\n outerRadius,\n startAngle,\n endAngle\n } = viewBox;\n var midAngle = (startAngle + endAngle) / 2;\n if (position === 'outside') {\n var {\n x: _x,\n y: _y\n } = polarToCartesian(cx, cy, outerRadius + offset, midAngle);\n return {\n x: _x,\n y: _y,\n textAnchor: _x >= cx ? 'start' : 'end',\n verticalAnchor: 'middle'\n };\n }\n if (position === 'center') {\n return {\n x: cx,\n y: cy,\n textAnchor: 'middle',\n verticalAnchor: 'middle'\n };\n }\n if (position === 'centerTop') {\n return {\n x: cx,\n y: cy,\n textAnchor: 'middle',\n verticalAnchor: 'start'\n };\n }\n if (position === 'centerBottom') {\n return {\n x: cx,\n y: cy,\n textAnchor: 'middle',\n verticalAnchor: 'end'\n };\n }\n var r = (innerRadius + outerRadius) / 2;\n var {\n x,\n y\n } = polarToCartesian(cx, cy, r, midAngle);\n return {\n x,\n y,\n textAnchor: 'middle',\n verticalAnchor: 'middle'\n };\n};\nvar isPolar = viewBox => 'cx' in viewBox && isNumber(viewBox.cx);\nvar getAttrsOfCartesianLabel = (props, viewBox) => {\n var {\n parentViewBox: parentViewBoxFromProps,\n offset,\n position\n } = props;\n var parentViewBox;\n if (parentViewBoxFromProps != null && !isPolar(parentViewBoxFromProps)) {\n // Check that nobody is trying to pass a polar viewBox to a cartesian label\n parentViewBox = parentViewBoxFromProps;\n }\n var {\n x,\n y,\n width,\n height\n } = viewBox;\n\n // Define vertical offsets and position inverts based on the value being positive or negative\n var verticalSign = height >= 0 ? 1 : -1;\n var verticalOffset = verticalSign * offset;\n var verticalEnd = verticalSign > 0 ? 'end' : 'start';\n var verticalStart = verticalSign > 0 ? 'start' : 'end';\n\n // Define horizontal offsets and position inverts based on the value being positive or negative\n var horizontalSign = width >= 0 ? 1 : -1;\n var horizontalOffset = horizontalSign * offset;\n var horizontalEnd = horizontalSign > 0 ? 'end' : 'start';\n var horizontalStart = horizontalSign > 0 ? 'start' : 'end';\n if (position === 'top') {\n var attrs = {\n x: x + width / 2,\n y: y - verticalSign * offset,\n textAnchor: 'middle',\n verticalAnchor: verticalEnd\n };\n return _objectSpread(_objectSpread({}, attrs), parentViewBox ? {\n height: Math.max(y - parentViewBox.y, 0),\n width\n } : {});\n }\n if (position === 'bottom') {\n var _attrs = {\n x: x + width / 2,\n y: y + height + verticalOffset,\n textAnchor: 'middle',\n verticalAnchor: verticalStart\n };\n return _objectSpread(_objectSpread({}, _attrs), parentViewBox ? {\n height: Math.max(parentViewBox.y + parentViewBox.height - (y + height), 0),\n width\n } : {});\n }\n if (position === 'left') {\n var _attrs2 = {\n x: x - horizontalOffset,\n y: y + height / 2,\n textAnchor: horizontalEnd,\n verticalAnchor: 'middle'\n };\n return _objectSpread(_objectSpread({}, _attrs2), parentViewBox ? {\n width: Math.max(_attrs2.x - parentViewBox.x, 0),\n height\n } : {});\n }\n if (position === 'right') {\n var _attrs3 = {\n x: x + width + horizontalOffset,\n y: y + height / 2,\n textAnchor: horizontalStart,\n verticalAnchor: 'middle'\n };\n return _objectSpread(_objectSpread({}, _attrs3), parentViewBox ? {\n width: Math.max(parentViewBox.x + parentViewBox.width - _attrs3.x, 0),\n height\n } : {});\n }\n var sizeAttrs = parentViewBox ? {\n width,\n height\n } : {};\n if (position === 'insideLeft') {\n return _objectSpread({\n x: x + horizontalOffset,\n y: y + height / 2,\n textAnchor: horizontalStart,\n verticalAnchor: 'middle'\n }, sizeAttrs);\n }\n if (position === 'insideRight') {\n return _objectSpread({\n x: x + width - horizontalOffset,\n y: y + height / 2,\n textAnchor: horizontalEnd,\n verticalAnchor: 'middle'\n }, sizeAttrs);\n }\n if (position === 'insideTop') {\n return _objectSpread({\n x: x + width / 2,\n y: y + verticalOffset,\n textAnchor: 'middle',\n verticalAnchor: verticalStart\n }, sizeAttrs);\n }\n if (position === 'insideBottom') {\n return _objectSpread({\n x: x + width / 2,\n y: y + height - verticalOffset,\n textAnchor: 'middle',\n verticalAnchor: verticalEnd\n }, sizeAttrs);\n }\n if (position === 'insideTopLeft') {\n return _objectSpread({\n x: x + horizontalOffset,\n y: y + verticalOffset,\n textAnchor: horizontalStart,\n verticalAnchor: verticalStart\n }, sizeAttrs);\n }\n if (position === 'insideTopRight') {\n return _objectSpread({\n x: x + width - horizontalOffset,\n y: y + verticalOffset,\n textAnchor: horizontalEnd,\n verticalAnchor: verticalStart\n }, sizeAttrs);\n }\n if (position === 'insideBottomLeft') {\n return _objectSpread({\n x: x + horizontalOffset,\n y: y + height - verticalOffset,\n textAnchor: horizontalStart,\n verticalAnchor: verticalEnd\n }, sizeAttrs);\n }\n if (position === 'insideBottomRight') {\n return _objectSpread({\n x: x + width - horizontalOffset,\n y: y + height - verticalOffset,\n textAnchor: horizontalEnd,\n verticalAnchor: verticalEnd\n }, sizeAttrs);\n }\n if (!!position && typeof position === 'object' && (isNumber(position.x) || isPercent(position.x)) && (isNumber(position.y) || isPercent(position.y))) {\n return _objectSpread({\n x: x + getPercentValue(position.x, width),\n y: y + getPercentValue(position.y, height),\n textAnchor: 'end',\n verticalAnchor: 'end'\n }, sizeAttrs);\n }\n return _objectSpread({\n x: x + width / 2,\n y: y + height / 2,\n textAnchor: 'middle',\n verticalAnchor: 'middle'\n }, sizeAttrs);\n};\nvar defaultLabelProps = {\n offset: 5\n};\nexport function Label(outerProps) {\n var props = resolveDefaultProps(outerProps, defaultLabelProps);\n var {\n viewBox: viewBoxFromProps,\n position,\n value,\n children,\n content,\n className = '',\n textBreakAll,\n labelRef\n } = props;\n var polarViewBox = usePolarLabelContext();\n var cartesianViewBox = useCartesianLabelContext();\n\n /*\n * I am not proud about this solution but it's a quick fix for https://github.com/recharts/recharts/issues/6030#issuecomment-3155352460.\n * What we should really do is split Label into two components: CartesianLabel and PolarLabel and then handle their respective viewBoxes separately.\n * Also other components should set its own viewBox in a context so that we can fix https://github.com/recharts/recharts/issues/6156\n */\n var resolvedViewBox = position === 'center' ? cartesianViewBox : polarViewBox !== null && polarViewBox !== void 0 ? polarViewBox : cartesianViewBox;\n var viewBox = viewBoxFromProps || resolvedViewBox;\n if (!viewBox || isNullish(value) && isNullish(children) && ! /*#__PURE__*/isValidElement(content) && typeof content !== 'function') {\n return null;\n }\n var propsWithViewBox = _objectSpread(_objectSpread({}, props), {}, {\n viewBox\n });\n if (/*#__PURE__*/isValidElement(content)) {\n var {\n labelRef: _\n } = propsWithViewBox,\n propsWithoutLabelRef = _objectWithoutProperties(propsWithViewBox, _excluded);\n return /*#__PURE__*/cloneElement(content, propsWithoutLabelRef);\n }\n var label;\n if (typeof content === 'function') {\n label = /*#__PURE__*/createElement(content, propsWithViewBox);\n if (/*#__PURE__*/isValidElement(label)) {\n return label;\n }\n } else {\n label = getLabel(props);\n }\n var isPolarLabel = isPolar(viewBox);\n var attrs = filterProps(props, true);\n if (isPolarLabel && (position === 'insideStart' || position === 'insideEnd' || position === 'end')) {\n return renderRadialLabel(props, position, label, attrs, viewBox);\n }\n var positionAttrs = isPolarLabel ? getAttrsOfPolarLabel(viewBox, props.offset, props.position) : getAttrsOfCartesianLabel(props, viewBox);\n return /*#__PURE__*/React.createElement(Text, _extends({\n ref: labelRef,\n className: clsx('recharts-label', className)\n }, attrs, positionAttrs, {\n breakAll: textBreakAll\n }), label);\n}\nLabel.displayName = 'Label';\nvar parseLabel = (label, viewBox, labelRef) => {\n if (!label) {\n return null;\n }\n var commonProps = {\n viewBox,\n labelRef\n };\n if (label === true) {\n return /*#__PURE__*/React.createElement(Label, _extends({\n key: \"label-implicit\"\n }, commonProps));\n }\n if (isNumOrStr(label)) {\n return /*#__PURE__*/React.createElement(Label, _extends({\n key: \"label-implicit\",\n value: label\n }, commonProps));\n }\n if (/*#__PURE__*/isValidElement(label)) {\n if (label.type === Label) {\n return /*#__PURE__*/cloneElement(label, _objectSpread({\n key: 'label-implicit'\n }, commonProps));\n }\n return /*#__PURE__*/React.createElement(Label, _extends({\n key: \"label-implicit\",\n content: label\n }, commonProps));\n }\n if (isLabelContentAFunction(label)) {\n return /*#__PURE__*/React.createElement(Label, _extends({\n key: \"label-implicit\",\n content: label\n }, commonProps));\n }\n if (label && typeof label === 'object') {\n return /*#__PURE__*/React.createElement(Label, _extends({}, label, {\n key: \"label-implicit\"\n }, commonProps));\n }\n return null;\n};\nexport function CartesianLabelFromLabelProp(_ref3) {\n var {\n label\n } = _ref3;\n var viewBox = useCartesianLabelContext();\n return parseLabel(label, viewBox) || null;\n}\nexport function PolarLabelFromLabelProp(_ref4) {\n var {\n label\n } = _ref4;\n var viewBox = usePolarLabelContext();\n return parseLabel(label, viewBox) || null;\n}","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction last(arr) {\n return arr[arr.length - 1];\n}\n\nexports.last = last;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction toArray(value) {\n return Array.isArray(value) ? value : Array.from(value);\n}\n\nexports.toArray = toArray;\n","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nconst last$1 = require('../../array/last.js');\nconst toArray = require('../_internal/toArray.js');\nconst isArrayLike = require('../predicate/isArrayLike.js');\n\nfunction last(array) {\n if (!isArrayLike.isArrayLike(array)) {\n return undefined;\n }\n return last$1.last(toArray.toArray(array));\n}\n\nexports.last = last;\n","module.exports = require('../dist/compat/array/last.js').last;\n","var _excluded = [\"valueAccessor\"],\n _excluded2 = [\"dataKey\", \"clockWise\", \"id\", \"textBreakAll\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from 'react';\nimport { createContext, useContext } from 'react';\nimport last from 'es-toolkit/compat/last';\nimport { isLabelContentAFunction, Label } from './Label';\nimport { Layer } from '../container/Layer';\nimport { filterProps } from '../util/ReactUtils';\nimport { getValueByDataKey } from '../util/ChartUtils';\nimport { isNullish } from '../util/DataUtils';\n\n/**\n * This is public API because we expose it as the valueAccessor parameter.\n *\n * The properties of \"viewBox\" are repeated as the root props of the entry object.\n * So it doesn't matter if you read entry.x or entry.viewBox.x, they are the same.\n *\n * It's not necessary to pass redundant data, but we keep it for backward compatibility.\n */\n\n/**\n * LabelList props do not allow refs because the same props are reused in multiple elements so we don't have a good single place to ref to.\n */\n\n/**\n * This is the type accepted for the `label` prop on various graphical items.\n * It accepts:\n *\n * boolean:\n * true = labels show,\n * false = labels don't show\n * React element:\n * will be cloned with extra props\n * function:\n * is used as <Label content={function} />, so this will be called once for each individual label (so typically once for each data point)\n * object:\n * the props to be passed to a LabelList component\n */\n\nvar defaultAccessor = entry => Array.isArray(entry.value) ? last(entry.value) : entry.value;\nvar CartesianLabelListContext = /*#__PURE__*/createContext(undefined);\nexport var CartesianLabelListContextProvider = CartesianLabelListContext.Provider;\nvar PolarLabelListContext = /*#__PURE__*/createContext(undefined);\nexport var PolarLabelListContextProvider = PolarLabelListContext.Provider;\nfunction useCartesianLabelListContext() {\n return useContext(CartesianLabelListContext);\n}\nfunction usePolarLabelListContext() {\n return useContext(PolarLabelListContext);\n}\nexport function LabelList(_ref) {\n var {\n valueAccessor = defaultAccessor\n } = _ref,\n restProps = _objectWithoutProperties(_ref, _excluded);\n var {\n dataKey,\n clockWise,\n id,\n textBreakAll\n } = restProps,\n others = _objectWithoutProperties(restProps, _excluded2);\n var cartesianData = useCartesianLabelListContext();\n var polarData = usePolarLabelListContext();\n var data = cartesianData || polarData;\n if (!data || !data.length) {\n return null;\n }\n return /*#__PURE__*/React.createElement(Layer, {\n className: \"recharts-label-list\"\n }, data.map((entry, index) => {\n var _restProps$fill;\n var value = isNullish(dataKey) ? valueAccessor(entry, index) : getValueByDataKey(entry && entry.payload, dataKey);\n var idProps = isNullish(id) ? {} : {\n id: \"\".concat(id, \"-\").concat(index)\n };\n return /*#__PURE__*/React.createElement(Label, _extends({}, filterProps(entry, true), others, idProps, {\n /*\n * Prefer to use the explicit fill from LabelList props.\n * Only in an absence of that, fall back to the fill of the entry.\n * The entry fill can be quite difficult to see especially in Bar, Pie, RadialBar in inside positions.\n * On the other hand it's quite convenient in Scatter, Line, or when the position is outside the Bar, Pie filled shapes.\n */\n fill: (_restProps$fill = restProps.fill) !== null && _restProps$fill !== void 0 ? _restProps$fill : entry.fill,\n parentViewBox: entry.parentViewBox,\n value: value,\n textBreakAll: textBreakAll,\n viewBox: entry.viewBox,\n key: \"label-\".concat(index) // eslint-disable-line react/no-array-index-key\n ,\n index: index\n }));\n }));\n}\nLabelList.displayName = 'LabelList';\nexport function LabelListFromLabelProp(_ref2) {\n var {\n label\n } = _ref2;\n if (!label) {\n return null;\n }\n if (label === true) {\n return /*#__PURE__*/React.createElement(LabelList, {\n key: \"labelList-implicit\"\n });\n }\n if (/*#__PURE__*/React.isValidElement(label) || isLabelContentAFunction(label)) {\n return /*#__PURE__*/React.createElement(LabelList, {\n key: \"labelList-implicit\",\n content: label\n });\n }\n if (typeof label === 'object') {\n return /*#__PURE__*/React.createElement(LabelList, _extends({\n key: \"labelList-implicit\"\n }, label, {\n type: String(label.type)\n }));\n }\n return null;\n}","function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\n/**\n * @fileOverview Dot\n */\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nimport { adaptEventHandlers } from '../util/types';\nimport { svgPropertiesNoEvents } from '../util/svgPropertiesNoEvents';\nexport var Dot = props => {\n var {\n cx,\n cy,\n r,\n className\n } = props;\n var layerClass = clsx('recharts-dot', className);\n if (cx === +cx && cy === +cy && r === +r) {\n return /*#__PURE__*/React.createElement(\"circle\", _extends({}, svgPropertiesNoEvents(props), adaptEventHandlers(props), {\n className: layerClass,\n cx: cx,\n cy: cy,\n r: r\n }));\n }\n return null;\n};","import { createSelector } from 'reselect';\nimport { selectChartDataAndAlwaysIgnoreIndexes } from './dataSelectors';\nimport { combineAppliedValues, combineAxisDomain, combineAxisDomainWithNiceTicks, combineDisplayedData, combineGraphicalItemsData, combineGraphicalItemsSettings, combineNiceTicks, combineNumericalDomain, itemAxisPredicate, selectBaseAxis, selectDomainDefinition, selectRealScaleType } from './axisSelectors';\nimport { selectChartLayout } from '../../context/chartLayoutContext';\nimport { getValueByDataKey } from '../../util/ChartUtils';\nimport { pickAxisType } from './pickAxisType';\nimport { pickAxisId } from './pickAxisId';\nimport { selectStackOffsetType } from './rootPropsSelectors';\nexport var selectUnfilteredPolarItems = state => state.graphicalItems.polarItems;\nvar selectAxisPredicate = createSelector([pickAxisType, pickAxisId], itemAxisPredicate);\nexport var selectPolarItemsSettings = createSelector([selectUnfilteredPolarItems, selectBaseAxis, selectAxisPredicate], combineGraphicalItemsSettings);\nvar selectPolarGraphicalItemsData = createSelector([selectPolarItemsSettings], combineGraphicalItemsData);\nexport var selectPolarDisplayedData = createSelector([selectPolarGraphicalItemsData, selectChartDataAndAlwaysIgnoreIndexes], combineDisplayedData);\nexport var selectPolarAppliedValues = createSelector([selectPolarDisplayedData, selectBaseAxis, selectPolarItemsSettings], combineAppliedValues);\nexport var selectAllPolarAppliedNumericalValues = createSelector([selectPolarDisplayedData, selectBaseAxis, selectPolarItemsSettings], (data, axisSettings, items) => {\n if (items.length > 0) {\n return data.flatMap(entry => {\n return items.flatMap(item => {\n var _axisSettings$dataKey;\n var valueByDataKey = getValueByDataKey(entry, (_axisSettings$dataKey = axisSettings.dataKey) !== null && _axisSettings$dataKey !== void 0 ? _axisSettings$dataKey : item.dataKey);\n return {\n value: valueByDataKey,\n errorDomain: [] // polar charts do not have error bars\n };\n });\n }).filter(Boolean);\n }\n if ((axisSettings === null || axisSettings === void 0 ? void 0 : axisSettings.dataKey) != null) {\n return data.map(item => ({\n value: getValueByDataKey(item, axisSettings.dataKey),\n errorDomain: []\n }));\n }\n return data.map(entry => ({\n value: entry,\n errorDomain: []\n }));\n});\nvar unsupportedInPolarChart = () => undefined;\nvar selectPolarNumericalDomain = createSelector([selectBaseAxis, selectDomainDefinition, unsupportedInPolarChart, selectAllPolarAppliedNumericalValues, unsupportedInPolarChart, selectChartLayout, pickAxisType], combineNumericalDomain);\nexport var selectPolarAxisDomain = createSelector([selectBaseAxis, selectChartLayout, selectPolarDisplayedData, selectPolarAppliedValues, selectStackOffsetType, pickAxisType, selectPolarNumericalDomain], combineAxisDomain);\nexport var selectPolarNiceTicks = createSelector([selectPolarAxisDomain, selectBaseAxis, selectRealScaleType], combineNiceTicks);\nexport var selectPolarAxisDomainIncludingNiceTicks = createSelector([selectBaseAxis, selectPolarAxisDomain, selectPolarNiceTicks, pickAxisType], combineAxisDomainWithNiceTicks);","import { createSlice } from '@reduxjs/toolkit';\nimport { castDraft } from 'immer';\nvar initialState = {\n radiusAxis: {},\n angleAxis: {}\n};\nvar polarAxisSlice = createSlice({\n name: 'polarAxis',\n initialState,\n reducers: {\n addRadiusAxis(state, action) {\n state.radiusAxis[action.payload.id] = castDraft(action.payload);\n },\n removeRadiusAxis(state, action) {\n delete state.radiusAxis[action.payload.id];\n },\n addAngleAxis(state, action) {\n state.angleAxis[action.payload.id] = castDraft(action.payload);\n },\n removeAngleAxis(state, action) {\n delete state.angleAxis[action.payload.id];\n }\n }\n});\nexport var {\n addRadiusAxis,\n removeRadiusAxis,\n addAngleAxis,\n removeAngleAxis\n} = polarAxisSlice.actions;\nexport var polarAxisReducer = polarAxisSlice.reducer;","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport { createSelector } from 'reselect';\nimport { computePieSectors } from '../../polar/Pie';\nimport { selectChartDataAndAlwaysIgnoreIndexes } from './dataSelectors';\nimport { selectChartOffsetInternal } from './selectChartOffsetInternal';\nimport { getTooltipNameProp, getValueByDataKey } from '../../util/ChartUtils';\nimport { selectUnfilteredPolarItems } from './polarSelectors';\nvar pickId = (_state, id) => id;\nvar selectSynchronisedPieSettings = createSelector([selectUnfilteredPolarItems, pickId], (graphicalItems, id) => graphicalItems.filter(item => item.type === 'pie').find(item => item.id === id));\n\n// Keep stable reference to an empty array to prevent re-renders\nvar emptyArray = [];\nvar pickCells = (_state, _id, cells) => {\n if ((cells === null || cells === void 0 ? void 0 : cells.length) === 0) {\n return emptyArray;\n }\n return cells;\n};\nexport var selectDisplayedData = createSelector([selectChartDataAndAlwaysIgnoreIndexes, selectSynchronisedPieSettings, pickCells], (_ref, pieSettings, cells) => {\n var {\n chartData\n } = _ref;\n if (pieSettings == null) {\n return undefined;\n }\n var displayedData;\n if ((pieSettings === null || pieSettings === void 0 ? void 0 : pieSettings.data) != null && pieSettings.data.length > 0) {\n displayedData = pieSettings.data;\n } else {\n displayedData = chartData;\n }\n if ((!displayedData || !displayedData.length) && cells != null) {\n displayedData = cells.map(cell => _objectSpread(_objectSpread({}, pieSettings.presentationProps), cell.props));\n }\n if (displayedData == null) {\n return undefined;\n }\n return displayedData;\n});\nexport var selectPieLegend = createSelector([selectDisplayedData, selectSynchronisedPieSettings, pickCells], (displayedData, pieSettings, cells) => {\n if (displayedData == null || pieSettings == null) {\n return undefined;\n }\n return displayedData.map((entry, i) => {\n var _cells$i;\n var name = getValueByDataKey(entry, pieSettings.nameKey, pieSettings.name);\n var color;\n if (cells !== null && cells !== void 0 && (_cells$i = cells[i]) !== null && _cells$i !== void 0 && (_cells$i = _cells$i.props) !== null && _cells$i !== void 0 && _cells$i.fill) {\n color = cells[i].props.fill;\n } else if (typeof entry === 'object' && entry != null && 'fill' in entry) {\n color = entry.fill;\n } else {\n color = pieSettings.fill;\n }\n return {\n value: getTooltipNameProp(name, pieSettings.dataKey),\n color,\n payload: entry,\n type: pieSettings.legendType\n };\n });\n});\nexport var selectPieSectors = createSelector([selectDisplayedData, selectSynchronisedPieSettings, pickCells, selectChartOffsetInternal], (displayedData, pieSettings, cells, offset) => {\n if (pieSettings == null || displayedData == null) {\n return undefined;\n }\n return computePieSectors({\n offset,\n pieSettings,\n displayedData,\n cells\n });\n});","'use strict';\n\nObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\nfunction isPlainObject(object) {\n if (typeof object !== 'object') {\n return false;\n }\n if (object == null) {\n return false;\n }\n if (Object.getPrototypeOf(object) === null) {\n return true;\n }\n if (Object.prototype.toString.call(object) !== '[object Object]') {\n const tag = object[Symbol.toStringTag];\n if (tag == null) {\n return false;\n }\n const isTagReadonly = !Object.getOwnPropertyDescriptor(object, Symbol.toStringTag)?.writable;\n if (isTagReadonly) {\n return false;\n }\n return object.toString() === `[object ${tag}]`;\n }\n let proto = object;\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n return Object.getPrototypeOf(object) === proto;\n}\n\nexports.isPlainObject = isPlainObject;\n","module.exports = require('../dist/compat/predicate/isPlainObject.js').isPlainObject;\n","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\n/**\n * @fileOverview Rectangle\n */\nimport * as React from 'react';\nimport { useEffect, useRef, useState } from 'react';\nimport { clsx } from 'clsx';\nimport { filterProps } from '../util/ReactUtils';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nimport { JavascriptAnimate } from '../animation/JavascriptAnimate';\nimport { useAnimationId } from '../util/useAnimationId';\nimport { interpolate } from '../util/DataUtils';\nimport { getTransitionVal } from '../animation/util';\nvar getTrapezoidPath = (x, y, upperWidth, lowerWidth, height) => {\n var widthGap = upperWidth - lowerWidth;\n var path;\n path = \"M \".concat(x, \",\").concat(y);\n path += \"L \".concat(x + upperWidth, \",\").concat(y);\n path += \"L \".concat(x + upperWidth - widthGap / 2, \",\").concat(y + height);\n path += \"L \".concat(x + upperWidth - widthGap / 2 - lowerWidth, \",\").concat(y + height);\n path += \"L \".concat(x, \",\").concat(y, \" Z\");\n return path;\n};\nvar defaultProps = {\n x: 0,\n y: 0,\n upperWidth: 0,\n lowerWidth: 0,\n height: 0,\n isUpdateAnimationActive: false,\n animationBegin: 0,\n animationDuration: 1500,\n animationEasing: 'ease'\n};\nexport var Trapezoid = outsideProps => {\n var trapezoidProps = resolveDefaultProps(outsideProps, defaultProps);\n var {\n x,\n y,\n upperWidth,\n lowerWidth,\n height,\n className\n } = trapezoidProps;\n var {\n animationEasing,\n animationDuration,\n animationBegin,\n isUpdateAnimationActive\n } = trapezoidProps;\n var pathRef = useRef();\n var [totalLength, setTotalLength] = useState(-1);\n var prevUpperWidthRef = useRef(upperWidth);\n var prevLowerWidthRef = useRef(lowerWidth);\n var prevHeightRef = useRef(height);\n var prevXRef = useRef(x);\n var prevYRef = useRef(y);\n var animationId = useAnimationId(outsideProps, 'trapezoid-');\n useEffect(() => {\n if (pathRef.current && pathRef.current.getTotalLength) {\n try {\n var pathTotalLength = pathRef.current.getTotalLength();\n if (pathTotalLength) {\n setTotalLength(pathTotalLength);\n }\n } catch (_unused) {\n // calculate total length error\n }\n }\n }, []);\n if (x !== +x || y !== +y || upperWidth !== +upperWidth || lowerWidth !== +lowerWidth || height !== +height || upperWidth === 0 && lowerWidth === 0 || height === 0) {\n return null;\n }\n var layerClass = clsx('recharts-trapezoid', className);\n if (!isUpdateAnimationActive) {\n return /*#__PURE__*/React.createElement(\"g\", null, /*#__PURE__*/React.createElement(\"path\", _extends({}, filterProps(trapezoidProps, true), {\n className: layerClass,\n d: getTrapezoidPath(x, y, upperWidth, lowerWidth, height)\n })));\n }\n var prevUpperWidth = prevUpperWidthRef.current;\n var prevLowerWidth = prevLowerWidthRef.current;\n var prevHeight = prevHeightRef.current;\n var prevX = prevXRef.current;\n var prevY = prevYRef.current;\n var from = \"0px \".concat(totalLength === -1 ? 1 : totalLength, \"px\");\n var to = \"\".concat(totalLength, \"px 0px\");\n var transition = getTransitionVal(['strokeDasharray'], animationDuration, animationEasing);\n return /*#__PURE__*/React.createElement(JavascriptAnimate, {\n animationId: animationId,\n key: animationId,\n canBegin: totalLength > 0,\n duration: animationDuration,\n easing: animationEasing,\n isActive: isUpdateAnimationActive,\n begin: animationBegin\n }, t => {\n var currUpperWidth = interpolate(prevUpperWidth, upperWidth, t);\n var currLowerWidth = interpolate(prevLowerWidth, lowerWidth, t);\n var currHeight = interpolate(prevHeight, height, t);\n var currX = interpolate(prevX, x, t);\n var currY = interpolate(prevY, y, t);\n if (pathRef.current) {\n prevUpperWidthRef.current = currUpperWidth;\n prevLowerWidthRef.current = currLowerWidth;\n prevHeightRef.current = currHeight;\n prevXRef.current = currX;\n prevYRef.current = currY;\n }\n var animationStyle = t > 0 ? {\n transition,\n strokeDasharray: to\n } : {\n strokeDasharray: from\n };\n return /*#__PURE__*/React.createElement(\"path\", _extends({}, filterProps(trapezoidProps, true), {\n className: layerClass,\n d: getTrapezoidPath(currX, currY, currUpperWidth, currLowerWidth, currHeight),\n ref: pathRef,\n style: _objectSpread(_objectSpread({}, animationStyle), trapezoidProps.style)\n }));\n });\n};","var _excluded = [\"option\", \"shapeType\", \"propTransformer\", \"activeClassName\", \"isActive\"];\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport * as React from 'react';\nimport { cloneElement, isValidElement } from 'react';\nimport isPlainObject from 'es-toolkit/compat/isPlainObject';\nimport { Rectangle } from '../shape/Rectangle';\nimport { Trapezoid } from '../shape/Trapezoid';\nimport { Sector } from '../shape/Sector';\nimport { Layer } from '../container/Layer';\nimport { Symbols } from '../shape/Symbols';\n\n/**\n * This is an abstraction for rendering a user defined prop for a customized shape in several forms.\n *\n * <Shape /> is the root and will handle taking in:\n * - an object of svg properties\n * - a boolean\n * - a render prop(inline function that returns jsx)\n * - a React element\n *\n * <ShapeSelector /> is a subcomponent of <Shape /> and used to match a component\n * to the value of props.shapeType that is passed to the root.\n *\n */\n\nfunction defaultPropTransformer(option, props) {\n return _objectSpread(_objectSpread({}, props), option);\n}\nfunction isSymbolsProps(shapeType, _elementProps) {\n return shapeType === 'symbols';\n}\nfunction ShapeSelector(_ref) {\n var {\n shapeType,\n elementProps\n } = _ref;\n switch (shapeType) {\n case 'rectangle':\n return /*#__PURE__*/React.createElement(Rectangle, elementProps);\n case 'trapezoid':\n return /*#__PURE__*/React.createElement(Trapezoid, elementProps);\n case 'sector':\n return /*#__PURE__*/React.createElement(Sector, elementProps);\n case 'symbols':\n if (isSymbolsProps(shapeType, elementProps)) {\n return /*#__PURE__*/React.createElement(Symbols, elementProps);\n }\n break;\n default:\n return null;\n }\n}\nexport function getPropsFromShapeOption(option) {\n if (/*#__PURE__*/isValidElement(option)) {\n return option.props;\n }\n return option;\n}\nexport function Shape(_ref2) {\n var {\n option,\n shapeType,\n propTransformer = defaultPropTransformer,\n activeClassName = 'recharts-active-shape',\n isActive\n } = _ref2,\n props = _objectWithoutProperties(_ref2, _excluded);\n var shape;\n if (/*#__PURE__*/isValidElement(option)) {\n shape = /*#__PURE__*/cloneElement(option, _objectSpread(_objectSpread({}, props), getPropsFromShapeOption(option)));\n } else if (typeof option === 'function') {\n shape = option(props);\n } else if (isPlainObject(option) && typeof option !== 'boolean') {\n var nextProps = propTransformer(option, props);\n shape = /*#__PURE__*/React.createElement(ShapeSelector, {\n shapeType: shapeType,\n elementProps: nextProps\n });\n } else {\n var elementProps = props;\n shape = /*#__PURE__*/React.createElement(ShapeSelector, {\n shapeType: shapeType,\n elementProps: elementProps\n });\n }\n if (isActive) {\n return /*#__PURE__*/React.createElement(Layer, {\n className: activeClassName\n }, shape);\n }\n return shape;\n}","import { useAppDispatch } from '../state/hooks';\nimport { mouseLeaveItem, setActiveClickItemIndex, setActiveMouseOverItemIndex } from '../state/tooltipSlice';\nexport var useMouseEnterItemDispatch = (onMouseEnterFromProps, dataKey) => {\n var dispatch = useAppDispatch();\n return (data, index) => event => {\n onMouseEnterFromProps === null || onMouseEnterFromProps === void 0 || onMouseEnterFromProps(data, index, event);\n dispatch(setActiveMouseOverItemIndex({\n activeIndex: String(index),\n activeDataKey: dataKey,\n activeCoordinate: data.tooltipPosition\n }));\n };\n};\nexport var useMouseLeaveItemDispatch = onMouseLeaveFromProps => {\n var dispatch = useAppDispatch();\n return (data, index) => event => {\n onMouseLeaveFromProps === null || onMouseLeaveFromProps === void 0 || onMouseLeaveFromProps(data, index, event);\n dispatch(mouseLeaveItem());\n };\n};\nexport var useMouseClickItemDispatch = (onMouseClickFromProps, dataKey) => {\n var dispatch = useAppDispatch();\n return (data, index) => event => {\n onMouseClickFromProps === null || onMouseClickFromProps === void 0 || onMouseClickFromProps(data, index, event);\n dispatch(setActiveClickItemIndex({\n activeIndex: String(index),\n activeDataKey: dataKey,\n activeCoordinate: data.tooltipPosition\n }));\n };\n};","import { useEffect } from 'react';\nimport { useAppDispatch } from './hooks';\nimport { addTooltipEntrySettings, removeTooltipEntrySettings } from './tooltipSlice';\nimport { useIsPanorama } from '../context/PanoramaContext';\nexport function SetTooltipEntrySettings(_ref) {\n var {\n fn,\n args\n } = _ref;\n var dispatch = useAppDispatch();\n var isPanorama = useIsPanorama();\n useEffect(() => {\n if (isPanorama) {\n // Panorama graphical items should never contribute to Tooltip payload.\n return undefined;\n }\n var tooltipEntrySettings = fn(args);\n dispatch(addTooltipEntrySettings(tooltipEntrySettings));\n return () => {\n dispatch(removeTooltipEntrySettings(tooltipEntrySettings));\n };\n }, [fn, args, dispatch, isPanorama]);\n return null;\n}","import { useEffect } from 'react';\nimport { useIsPanorama } from '../context/PanoramaContext';\nimport { selectChartLayout } from '../context/chartLayoutContext';\nimport { useAppDispatch, useAppSelector } from './hooks';\nimport { addLegendPayload, removeLegendPayload } from './legendSlice';\nvar noop = () => {};\nexport function SetLegendPayload(_ref) {\n var {\n legendPayload\n } = _ref;\n var dispatch = useAppDispatch();\n var isPanorama = useIsPanorama();\n useEffect(() => {\n if (isPanorama) {\n return noop;\n }\n dispatch(addLegendPayload(legendPayload));\n return () => {\n dispatch(removeLegendPayload(legendPayload));\n };\n }, [dispatch, isPanorama, legendPayload]);\n return null;\n}\nexport function SetPolarLegendPayload(_ref2) {\n var {\n legendPayload\n } = _ref2;\n var dispatch = useAppDispatch();\n var layout = useAppSelector(selectChartLayout);\n useEffect(() => {\n if (layout !== 'centric' && layout !== 'radial') {\n return noop;\n }\n dispatch(addLegendPayload(legendPayload));\n return () => {\n dispatch(removeLegendPayload(legendPayload));\n };\n }, [dispatch, layout, legendPayload]);\n return null;\n}","var _ref;\nimport * as React from 'react';\nimport { uniqueId } from './DataUtils';\n\n/**\n * Fallback for React.useId() for versions prior to React 18.\n * Generates a unique ID using a simple counter and a prefix.\n *\n * @returns A unique ID that remains consistent across renders.\n */\nexport var useIdFallback = () => {\n var [id] = React.useState(() => uniqueId('uid-'));\n return id;\n};\n\n/*\n * This weird syntax is used to avoid a build-time error in React 17 and earlier when building with Webpack.\n * See https://github.com/webpack/webpack/issues/14814\n */\nexport var useId = (_ref = React['useId'.toString()]) !== null && _ref !== void 0 ? _ref : useIdFallback;","import { useId } from './useId';\n\n/**\n * A hook that generates a unique ID. It uses React.useId() in React 18+ for SSR safety\n * and falls back to a client-side-only unique ID generator for older versions.\n *\n * The ID will stay the same across renders, and you can optionally provide a prefix.\n *\n * @param [prefix] - An optional prefix for the generated ID.\n * @param [customId] - An optional custom ID to override the generated one.\n * @returns The unique ID.\n */\nexport function useUniqueId(prefix, customId) {\n /*\n * We have to call this hook here even if we don't use the result because\n * rules of hooks demand that hooks are never called conditionally.\n */\n var generatedId = useId();\n\n // If a custom ID is provided, it always takes precedence.\n if (customId) {\n return customId;\n }\n\n // Apply the prefix if one was provided.\n return prefix ? \"\".concat(prefix, \"-\").concat(generatedId) : generatedId;\n}\n\n/**\n * The useUniqueId hook returns a unique ID that is either reused from external props or generated internally.\n * Either way the ID is now guaranteed to be present so no more nulls or undefined.\n */","import * as React from 'react';\nimport { createContext, useContext } from 'react';\nimport { useUniqueId } from '../util/useUniqueId';\nvar GraphicalItemIdContext = /*#__PURE__*/createContext(undefined);\nexport var RegisterGraphicalItemId = _ref => {\n var {\n id,\n type,\n children\n } = _ref;\n var resolvedId = useUniqueId(\"recharts-\".concat(type), id);\n return /*#__PURE__*/React.createElement(GraphicalItemIdContext.Provider, {\n value: resolvedId\n }, children(resolvedId));\n};\nexport function useGraphicalItemId() {\n return useContext(GraphicalItemIdContext);\n}","import { createSlice, current } from '@reduxjs/toolkit';\nimport { castDraft } from 'immer';\n\n/**\n * Unique ID of the graphical item.\n * This is used to identify the graphical item in the state and in the React tree.\n * This is required for every graphical item - it's either provided by the user or generated automatically.\n */\n\nvar initialState = {\n cartesianItems: [],\n polarItems: []\n};\nvar graphicalItemsSlice = createSlice({\n name: 'graphicalItems',\n initialState,\n reducers: {\n addCartesianGraphicalItem(state, action) {\n state.cartesianItems.push(castDraft(action.payload));\n },\n replaceCartesianGraphicalItem(state, action) {\n var {\n prev,\n next\n } = action.payload;\n var index = current(state).cartesianItems.indexOf(castDraft(prev));\n if (index > -1) {\n state.cartesianItems[index] = castDraft(next);\n }\n },\n removeCartesianGraphicalItem(state, action) {\n var index = current(state).cartesianItems.indexOf(castDraft(action.payload));\n if (index > -1) {\n state.cartesianItems.splice(index, 1);\n }\n },\n addPolarGraphicalItem(state, action) {\n state.polarItems.push(castDraft(action.payload));\n },\n removePolarGraphicalItem(state, action) {\n var index = current(state).polarItems.indexOf(castDraft(action.payload));\n if (index > -1) {\n state.polarItems.splice(index, 1);\n }\n }\n }\n});\nexport var {\n addCartesianGraphicalItem,\n replaceCartesianGraphicalItem,\n removeCartesianGraphicalItem,\n addPolarGraphicalItem,\n removePolarGraphicalItem\n} = graphicalItemsSlice.actions;\nexport var graphicalItemsReducer = graphicalItemsSlice.reducer;","import { useEffect, useRef } from 'react';\nimport { useAppDispatch } from './hooks';\nimport { addCartesianGraphicalItem, addPolarGraphicalItem, removeCartesianGraphicalItem, removePolarGraphicalItem, replaceCartesianGraphicalItem } from './graphicalItemsSlice';\nexport function SetCartesianGraphicalItem(props) {\n var dispatch = useAppDispatch();\n var prevPropsRef = useRef(null);\n useEffect(() => {\n if (prevPropsRef.current === null) {\n dispatch(addCartesianGraphicalItem(props));\n } else if (prevPropsRef.current !== props) {\n dispatch(replaceCartesianGraphicalItem({\n prev: prevPropsRef.current,\n next: props\n }));\n }\n prevPropsRef.current = props;\n }, [dispatch, props]);\n useEffect(() => {\n return () => {\n if (prevPropsRef.current) {\n dispatch(removeCartesianGraphicalItem(prevPropsRef.current));\n /*\n * Here we have to reset the ref to null because in StrictMode, the effect will run twice,\n * but it will keep the same ref value from the first render.\n *\n * In browser, React will clear the ref after the first effect cleanup,\n * so that wouldn't be an issue.\n *\n * In StrictMode, however, the ref is kept,\n * and in the hook above the code checks for `prevPropsRef.current === null`\n * which would be false so it would not dispatch the `addCartesianGraphicalItem` action again.\n *\n * https://github.com/recharts/recharts/issues/6022\n */\n prevPropsRef.current = null;\n }\n };\n }, [dispatch]);\n return null;\n}\nexport function SetPolarGraphicalItem(props) {\n var dispatch = useAppDispatch();\n useEffect(() => {\n dispatch(addPolarGraphicalItem(props));\n return () => {\n dispatch(removePolarGraphicalItem(props));\n };\n }, [dispatch, props]);\n return null;\n}","var _excluded = [\"onMouseEnter\", \"onClick\", \"onMouseLeave\"],\n _excluded2 = [\"id\"],\n _excluded3 = [\"id\"];\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from 'react';\nimport { useCallback, useMemo, useRef, useState } from 'react';\nimport get from 'es-toolkit/compat/get';\nimport { clsx } from 'clsx';\nimport { selectPieLegend, selectPieSectors } from '../state/selectors/pieSelectors';\nimport { useAppSelector } from '../state/hooks';\nimport { Layer } from '../container/Layer';\nimport { Curve } from '../shape/Curve';\nimport { Text } from '../component/Text';\nimport { Cell } from '../component/Cell';\nimport { filterProps, findAllByType } from '../util/ReactUtils';\nimport { Global } from '../util/Global';\nimport { getMaxRadius, polarToCartesian } from '../util/PolarUtils';\nimport { getPercentValue, interpolate, isNumber, mathSign } from '../util/DataUtils';\nimport { getTooltipNameProp, getValueByDataKey } from '../util/ChartUtils';\nimport { adaptEventsOfChild } from '../util/types';\nimport { Shape } from '../util/ActiveShapeUtils';\nimport { useMouseClickItemDispatch, useMouseEnterItemDispatch, useMouseLeaveItemDispatch } from '../context/tooltipContext';\nimport { SetTooltipEntrySettings } from '../state/SetTooltipEntrySettings';\nimport { selectActiveTooltipIndex } from '../state/selectors/tooltipSelectors';\nimport { SetPolarLegendPayload } from '../state/SetLegendPayload';\nimport { DATA_ITEM_DATAKEY_ATTRIBUTE_NAME, DATA_ITEM_INDEX_ATTRIBUTE_NAME } from '../util/Constants';\nimport { useAnimationId } from '../util/useAnimationId';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nimport { RegisterGraphicalItemId } from '../context/RegisterGraphicalItemId';\nimport { SetPolarGraphicalItem } from '../state/SetGraphicalItem';\nimport { svgPropertiesNoEvents } from '../util/svgPropertiesNoEvents';\nimport { JavascriptAnimate } from '../animation/JavascriptAnimate';\nimport { LabelListFromLabelProp, PolarLabelListContextProvider } from '../component/LabelList';\n\n/**\n * The `label` prop in Pie accepts a variety of alternatives.\n */\n\n/**\n * Internal props, combination of external props + defaultProps + private Recharts state\n */\n\nfunction SetPiePayloadLegend(props) {\n var cells = useMemo(() => findAllByType(props.children, Cell), [props.children]);\n var legendPayload = useAppSelector(state => selectPieLegend(state, props.id, cells));\n if (legendPayload == null) {\n return null;\n }\n return /*#__PURE__*/React.createElement(SetPolarLegendPayload, {\n legendPayload: legendPayload\n });\n}\nfunction getTooltipEntrySettings(props) {\n var {\n dataKey,\n nameKey,\n sectors,\n stroke,\n strokeWidth,\n fill,\n name,\n hide,\n tooltipType\n } = props;\n return {\n dataDefinedOnItem: sectors.map(p => p.tooltipPayload),\n positions: sectors.map(p => p.tooltipPosition),\n settings: {\n stroke,\n strokeWidth,\n fill,\n dataKey,\n nameKey,\n name: getTooltipNameProp(name, dataKey),\n hide,\n type: tooltipType,\n color: fill,\n unit: '' // why doesn't Pie support unit?\n }\n };\n}\nvar getTextAnchor = (x, cx) => {\n if (x > cx) {\n return 'start';\n }\n if (x < cx) {\n return 'end';\n }\n return 'middle';\n};\nvar getOuterRadius = (dataPoint, outerRadius, maxPieRadius) => {\n if (typeof outerRadius === 'function') {\n return getPercentValue(outerRadius(dataPoint), maxPieRadius, maxPieRadius * 0.8);\n }\n return getPercentValue(outerRadius, maxPieRadius, maxPieRadius * 0.8);\n};\nvar parseCoordinateOfPie = (pieSettings, offset, dataPoint) => {\n var {\n top,\n left,\n width,\n height\n } = offset;\n var maxPieRadius = getMaxRadius(width, height);\n var cx = left + getPercentValue(pieSettings.cx, width, width / 2);\n var cy = top + getPercentValue(pieSettings.cy, height, height / 2);\n var innerRadius = getPercentValue(pieSettings.innerRadius, maxPieRadius, 0);\n var outerRadius = getOuterRadius(dataPoint, pieSettings.outerRadius, maxPieRadius);\n var maxRadius = pieSettings.maxRadius || Math.sqrt(width * width + height * height) / 2;\n return {\n cx,\n cy,\n innerRadius,\n outerRadius,\n maxRadius\n };\n};\nvar parseDeltaAngle = (startAngle, endAngle) => {\n var sign = mathSign(endAngle - startAngle);\n var deltaAngle = Math.min(Math.abs(endAngle - startAngle), 360);\n return sign * deltaAngle;\n};\nfunction getClassNamePropertyIfExists(u) {\n if (u && typeof u === 'object' && 'className' in u && typeof u.className === 'string') {\n return u.className;\n }\n return '';\n}\nvar renderLabelLineItem = (option, props) => {\n if (/*#__PURE__*/React.isValidElement(option)) {\n return /*#__PURE__*/React.cloneElement(option, props);\n }\n if (typeof option === 'function') {\n return option(props);\n }\n var className = clsx('recharts-pie-label-line', typeof option !== 'boolean' ? option.className : '');\n return /*#__PURE__*/React.createElement(Curve, _extends({}, props, {\n type: \"linear\",\n className: className\n }));\n};\nvar renderLabelItem = (option, props, value) => {\n if (/*#__PURE__*/React.isValidElement(option)) {\n // @ts-expect-error element cloning is not typed\n return /*#__PURE__*/React.cloneElement(option, props);\n }\n var label = value;\n if (typeof option === 'function') {\n label = option(props);\n if (/*#__PURE__*/React.isValidElement(label)) {\n return label;\n }\n }\n var className = clsx('recharts-pie-label-text', getClassNamePropertyIfExists(option));\n return /*#__PURE__*/React.createElement(Text, _extends({}, props, {\n alignmentBaseline: \"middle\",\n className: className\n }), label);\n};\nfunction PieLabels(_ref) {\n var {\n sectors,\n props,\n showLabels\n } = _ref;\n var {\n label,\n labelLine,\n dataKey\n } = props;\n if (!showLabels || !label || !sectors) {\n return null;\n }\n var pieProps = svgPropertiesNoEvents(props);\n var customLabelProps = filterProps(label, false);\n var customLabelLineProps = filterProps(labelLine, false);\n var offsetRadius = typeof label === 'object' && 'offsetRadius' in label && typeof label.offsetRadius === 'number' && label.offsetRadius || 20;\n var labels = sectors.map((entry, i) => {\n var midAngle = (entry.startAngle + entry.endAngle) / 2;\n var endPoint = polarToCartesian(entry.cx, entry.cy, entry.outerRadius + offsetRadius, midAngle);\n var labelProps = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, pieProps), entry), {}, {\n stroke: 'none'\n }, customLabelProps), {}, {\n index: i,\n textAnchor: getTextAnchor(endPoint.x, entry.cx)\n }, endPoint);\n var lineProps = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, pieProps), entry), {}, {\n fill: 'none',\n stroke: entry.fill\n }, customLabelLineProps), {}, {\n index: i,\n points: [polarToCartesian(entry.cx, entry.cy, entry.outerRadius, midAngle), endPoint],\n key: 'line'\n });\n return (\n /*#__PURE__*/\n // eslint-disable-next-line react/no-array-index-key\n React.createElement(Layer, {\n key: \"label-\".concat(entry.startAngle, \"-\").concat(entry.endAngle, \"-\").concat(entry.midAngle, \"-\").concat(i)\n }, labelLine && renderLabelLineItem(labelLine, lineProps), renderLabelItem(label, labelProps, getValueByDataKey(entry, dataKey)))\n );\n });\n return /*#__PURE__*/React.createElement(Layer, {\n className: \"recharts-pie-labels\"\n }, labels);\n}\nfunction PieLabelList(_ref2) {\n var {\n sectors,\n props,\n showLabels\n } = _ref2;\n var {\n label\n } = props;\n if (typeof label === 'object' && label != null && 'position' in label) {\n return /*#__PURE__*/React.createElement(LabelListFromLabelProp, {\n label: label\n });\n }\n return /*#__PURE__*/React.createElement(PieLabels, {\n sectors: sectors,\n props: props,\n showLabels: showLabels\n });\n}\nfunction PieSectors(props) {\n var {\n sectors,\n activeShape,\n inactiveShape: inactiveShapeProp,\n allOtherPieProps\n } = props;\n var activeIndex = useAppSelector(selectActiveTooltipIndex);\n var {\n onMouseEnter: onMouseEnterFromProps,\n onClick: onItemClickFromProps,\n onMouseLeave: onMouseLeaveFromProps\n } = allOtherPieProps,\n restOfAllOtherProps = _objectWithoutProperties(allOtherPieProps, _excluded);\n var onMouseEnterFromContext = useMouseEnterItemDispatch(onMouseEnterFromProps, allOtherPieProps.dataKey);\n var onMouseLeaveFromContext = useMouseLeaveItemDispatch(onMouseLeaveFromProps);\n var onClickFromContext = useMouseClickItemDispatch(onItemClickFromProps, allOtherPieProps.dataKey);\n if (sectors == null || sectors.length === 0) {\n return null;\n }\n return /*#__PURE__*/React.createElement(React.Fragment, null, sectors.map((entry, i) => {\n if ((entry === null || entry === void 0 ? void 0 : entry.startAngle) === 0 && (entry === null || entry === void 0 ? void 0 : entry.endAngle) === 0 && sectors.length !== 1) return null;\n var isSectorActive = activeShape && String(i) === activeIndex;\n var inactiveShape = activeIndex ? inactiveShapeProp : null;\n var sectorOptions = isSectorActive ? activeShape : inactiveShape;\n var sectorProps = _objectSpread(_objectSpread({}, entry), {}, {\n stroke: entry.stroke,\n tabIndex: -1,\n [DATA_ITEM_INDEX_ATTRIBUTE_NAME]: i,\n [DATA_ITEM_DATAKEY_ATTRIBUTE_NAME]: allOtherPieProps.dataKey\n });\n return /*#__PURE__*/React.createElement(Layer, _extends({\n tabIndex: -1,\n className: \"recharts-pie-sector\"\n }, adaptEventsOfChild(restOfAllOtherProps, entry, i), {\n // @ts-expect-error the types need a bit of attention\n onMouseEnter: onMouseEnterFromContext(entry, i)\n // @ts-expect-error the types need a bit of attention\n ,\n onMouseLeave: onMouseLeaveFromContext(entry, i)\n // @ts-expect-error the types need a bit of attention\n ,\n onClick: onClickFromContext(entry, i)\n // eslint-disable-next-line react/no-array-index-key\n ,\n key: \"sector-\".concat(entry === null || entry === void 0 ? void 0 : entry.startAngle, \"-\").concat(entry === null || entry === void 0 ? void 0 : entry.endAngle, \"-\").concat(entry.midAngle, \"-\").concat(i)\n }), /*#__PURE__*/React.createElement(Shape, _extends({\n option: sectorOptions,\n isActive: isSectorActive,\n shapeType: \"sector\"\n }, sectorProps)));\n }));\n}\nexport function computePieSectors(_ref3) {\n var _pieSettings$paddingA;\n var {\n pieSettings,\n displayedData,\n cells,\n offset\n } = _ref3;\n var {\n cornerRadius,\n startAngle,\n endAngle,\n dataKey,\n nameKey,\n tooltipType\n } = pieSettings;\n var minAngle = Math.abs(pieSettings.minAngle);\n var deltaAngle = parseDeltaAngle(startAngle, endAngle);\n var absDeltaAngle = Math.abs(deltaAngle);\n var paddingAngle = displayedData.length <= 1 ? 0 : (_pieSettings$paddingA = pieSettings.paddingAngle) !== null && _pieSettings$paddingA !== void 0 ? _pieSettings$paddingA : 0;\n var notZeroItemCount = displayedData.filter(entry => getValueByDataKey(entry, dataKey, 0) !== 0).length;\n var totalPaddingAngle = (absDeltaAngle >= 360 ? notZeroItemCount : notZeroItemCount - 1) * paddingAngle;\n var realTotalAngle = absDeltaAngle - notZeroItemCount * minAngle - totalPaddingAngle;\n var sum = displayedData.reduce((result, entry) => {\n var val = getValueByDataKey(entry, dataKey, 0);\n return result + (isNumber(val) ? val : 0);\n }, 0);\n var sectors;\n if (sum > 0) {\n var prev;\n sectors = displayedData.map((entry, i) => {\n // @ts-expect-error getValueByDataKey does not validate the output type\n var val = getValueByDataKey(entry, dataKey, 0);\n // @ts-expect-error getValueByDataKey does not validate the output type\n var name = getValueByDataKey(entry, nameKey, i);\n var coordinate = parseCoordinateOfPie(pieSettings, offset, entry);\n var percent = (isNumber(val) ? val : 0) / sum;\n var tempStartAngle;\n var entryWithCellInfo = _objectSpread(_objectSpread({}, entry), cells && cells[i] && cells[i].props);\n if (i) {\n tempStartAngle = prev.endAngle + mathSign(deltaAngle) * paddingAngle * (val !== 0 ? 1 : 0);\n } else {\n tempStartAngle = startAngle;\n }\n var tempEndAngle = tempStartAngle + mathSign(deltaAngle) * ((val !== 0 ? minAngle : 0) + percent * realTotalAngle);\n var midAngle = (tempStartAngle + tempEndAngle) / 2;\n var middleRadius = (coordinate.innerRadius + coordinate.outerRadius) / 2;\n var tooltipPayload = [{\n name,\n value: val,\n payload: entryWithCellInfo,\n dataKey,\n type: tooltipType\n }];\n var tooltipPosition = polarToCartesian(coordinate.cx, coordinate.cy, middleRadius, midAngle);\n prev = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, pieSettings.presentationProps), {}, {\n percent,\n cornerRadius,\n name,\n tooltipPayload,\n midAngle,\n middleRadius,\n tooltipPosition\n }, entryWithCellInfo), coordinate), {}, {\n value: val,\n startAngle: tempStartAngle,\n endAngle: tempEndAngle,\n payload: entryWithCellInfo,\n paddingAngle: mathSign(deltaAngle) * paddingAngle\n });\n return prev;\n });\n }\n return sectors;\n}\nfunction PieLabelListProvider(_ref4) {\n var {\n showLabels,\n sectors,\n children\n } = _ref4;\n var labelListEntries = useMemo(() => {\n if (!showLabels || !sectors) {\n return [];\n }\n return sectors.map(entry => ({\n value: entry.value,\n payload: entry.payload,\n clockWise: false,\n parentViewBox: undefined,\n viewBox: {\n cx: entry.cx,\n cy: entry.cy,\n innerRadius: entry.innerRadius,\n outerRadius: entry.outerRadius,\n startAngle: entry.startAngle,\n endAngle: entry.endAngle,\n clockWise: false\n },\n fill: entry.fill\n }));\n }, [sectors, showLabels]);\n return /*#__PURE__*/React.createElement(PolarLabelListContextProvider, {\n value: showLabels ? labelListEntries : undefined\n }, children);\n}\nfunction SectorsWithAnimation(_ref5) {\n var {\n props,\n previousSectorsRef\n } = _ref5;\n var {\n sectors,\n isAnimationActive,\n animationBegin,\n animationDuration,\n animationEasing,\n activeShape,\n inactiveShape,\n onAnimationStart,\n onAnimationEnd\n } = props;\n var animationId = useAnimationId(props, 'recharts-pie-');\n var prevSectors = previousSectorsRef.current;\n var [isAnimating, setIsAnimating] = useState(false);\n var handleAnimationEnd = useCallback(() => {\n if (typeof onAnimationEnd === 'function') {\n onAnimationEnd();\n }\n setIsAnimating(false);\n }, [onAnimationEnd]);\n var handleAnimationStart = useCallback(() => {\n if (typeof onAnimationStart === 'function') {\n onAnimationStart();\n }\n setIsAnimating(true);\n }, [onAnimationStart]);\n return /*#__PURE__*/React.createElement(PieLabelListProvider, {\n showLabels: !isAnimating,\n sectors: sectors\n }, /*#__PURE__*/React.createElement(JavascriptAnimate, {\n animationId: animationId,\n begin: animationBegin,\n duration: animationDuration,\n isActive: isAnimationActive,\n easing: animationEasing,\n onAnimationStart: handleAnimationStart,\n onAnimationEnd: handleAnimationEnd,\n key: animationId\n }, t => {\n var stepData = [];\n var first = sectors && sectors[0];\n var curAngle = first === null || first === void 0 ? void 0 : first.startAngle;\n sectors === null || sectors === void 0 || sectors.forEach((entry, index) => {\n var prev = prevSectors && prevSectors[index];\n var paddingAngle = index > 0 ? get(entry, 'paddingAngle', 0) : 0;\n if (prev) {\n var angle = interpolate(prev.endAngle - prev.startAngle, entry.endAngle - entry.startAngle, t);\n var latest = _objectSpread(_objectSpread({}, entry), {}, {\n startAngle: curAngle + paddingAngle,\n endAngle: curAngle + angle + paddingAngle\n });\n stepData.push(latest);\n curAngle = latest.endAngle;\n } else {\n var {\n endAngle,\n startAngle\n } = entry;\n var deltaAngle = interpolate(0, endAngle - startAngle, t);\n var _latest = _objectSpread(_objectSpread({}, entry), {}, {\n startAngle: curAngle + paddingAngle,\n endAngle: curAngle + deltaAngle + paddingAngle\n });\n stepData.push(_latest);\n curAngle = _latest.endAngle;\n }\n });\n\n // eslint-disable-next-line no-param-reassign\n previousSectorsRef.current = stepData;\n return /*#__PURE__*/React.createElement(Layer, null, /*#__PURE__*/React.createElement(PieSectors, {\n sectors: stepData,\n activeShape: activeShape,\n inactiveShape: inactiveShape,\n allOtherPieProps: props\n }));\n }), /*#__PURE__*/React.createElement(PieLabelList, {\n showLabels: !isAnimating,\n sectors: sectors,\n props: props\n }), props.children);\n}\nvar defaultPieProps = {\n animationBegin: 400,\n animationDuration: 1500,\n animationEasing: 'ease',\n cx: '50%',\n cy: '50%',\n dataKey: 'value',\n endAngle: 360,\n fill: '#808080',\n hide: false,\n innerRadius: 0,\n isAnimationActive: !Global.isSsr,\n labelLine: true,\n legendType: 'rect',\n minAngle: 0,\n nameKey: 'name',\n outerRadius: '80%',\n paddingAngle: 0,\n rootTabIndex: 0,\n startAngle: 0,\n stroke: '#fff'\n};\nfunction PieImpl(props) {\n var {\n id\n } = props,\n propsWithoutId = _objectWithoutProperties(props, _excluded2);\n var {\n hide,\n className,\n rootTabIndex\n } = props;\n var cells = useMemo(() => findAllByType(props.children, Cell), [props.children]);\n var sectors = useAppSelector(state => selectPieSectors(state, id, cells));\n var previousSectorsRef = useRef(null);\n var layerClass = clsx('recharts-pie', className);\n if (hide || sectors == null) {\n previousSectorsRef.current = null;\n return /*#__PURE__*/React.createElement(Layer, {\n tabIndex: rootTabIndex,\n className: layerClass\n });\n }\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SetTooltipEntrySettings, {\n fn: getTooltipEntrySettings,\n args: _objectSpread(_objectSpread({}, props), {}, {\n sectors\n })\n }), /*#__PURE__*/React.createElement(Layer, {\n tabIndex: rootTabIndex,\n className: layerClass\n }, /*#__PURE__*/React.createElement(SectorsWithAnimation, {\n props: _objectSpread(_objectSpread({}, propsWithoutId), {}, {\n sectors\n }),\n previousSectorsRef: previousSectorsRef\n })));\n}\nexport function Pie(outsideProps) {\n var props = resolveDefaultProps(outsideProps, defaultPieProps);\n var {\n id: externalId\n } = props,\n propsWithoutId = _objectWithoutProperties(props, _excluded3);\n var presentationProps = svgPropertiesNoEvents(propsWithoutId);\n return /*#__PURE__*/React.createElement(RegisterGraphicalItemId, {\n id: externalId,\n type: \"pie\"\n }, id => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SetPolarGraphicalItem, {\n type: \"pie\",\n id: id,\n data: propsWithoutId.data,\n dataKey: propsWithoutId.dataKey,\n hide: propsWithoutId.hide,\n angleAxisId: 0,\n radiusAxisId: 0,\n name: propsWithoutId.name,\n nameKey: propsWithoutId.nameKey,\n tooltipType: propsWithoutId.tooltipType,\n legendType: propsWithoutId.legendType,\n fill: propsWithoutId.fill,\n cx: propsWithoutId.cx,\n cy: propsWithoutId.cy,\n startAngle: propsWithoutId.startAngle,\n endAngle: propsWithoutId.endAngle,\n paddingAngle: propsWithoutId.paddingAngle,\n minAngle: propsWithoutId.minAngle,\n innerRadius: propsWithoutId.innerRadius,\n outerRadius: propsWithoutId.outerRadius,\n cornerRadius: propsWithoutId.cornerRadius,\n presentationProps: presentationProps,\n maxRadius: props.maxRadius\n }), /*#__PURE__*/React.createElement(SetPiePayloadLegend, _extends({}, propsWithoutId, {\n id: id\n })), /*#__PURE__*/React.createElement(PieImpl, _extends({}, propsWithoutId, {\n id: id\n }))));\n}\nPie.displayName = 'Pie';","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport { createSlice } from '@reduxjs/toolkit';\nimport { castDraft } from 'immer';\nexport var defaultAxisId = 0;\n\n/**\n * Properties shared in X, Y, and Z axes\n */\n\n/**\n * These are the external props, visible for users as they set them using our public API.\n * There is all sorts of internal computed things based on these, but they will come through selectors.\n *\n * Properties shared between X and Y axes\n */\n\n/**\n * Z axis is special because it's never displayed. It controls the size of Scatter dots,\n * but it never displays ticks anywhere.\n */\n\nvar initialState = {\n xAxis: {},\n yAxis: {},\n zAxis: {}\n};\n\n/**\n * This is the slice where each individual Axis element pushes its own configuration.\n * Prefer to use this one instead of axisSlice.\n */\nvar cartesianAxisSlice = createSlice({\n name: 'cartesianAxis',\n initialState,\n reducers: {\n addXAxis(state, action) {\n state.xAxis[action.payload.id] = castDraft(action.payload);\n },\n removeXAxis(state, action) {\n delete state.xAxis[action.payload.id];\n },\n addYAxis(state, action) {\n state.yAxis[action.payload.id] = castDraft(action.payload);\n },\n removeYAxis(state, action) {\n delete state.yAxis[action.payload.id];\n },\n addZAxis(state, action) {\n state.zAxis[action.payload.id] = castDraft(action.payload);\n },\n removeZAxis(state, action) {\n delete state.zAxis[action.payload.id];\n },\n updateYAxisWidth(state, action) {\n var {\n id,\n width\n } = action.payload;\n if (state.yAxis[id]) {\n state.yAxis[id] = _objectSpread(_objectSpread({}, state.yAxis[id]), {}, {\n width\n });\n }\n }\n }\n});\nexport var {\n addXAxis,\n removeXAxis,\n addYAxis,\n removeYAxis,\n addZAxis,\n removeZAxis,\n updateYAxisWidth\n} = cartesianAxisSlice.actions;\nexport var cartesianAxisReducer = cartesianAxisSlice.reducer;","import { createSelector } from 'reselect';\nimport { selectChartOffsetInternal } from './selectChartOffsetInternal';\nexport var selectChartOffset = createSelector([selectChartOffsetInternal], offsetInternal => {\n if (!offsetInternal) {\n return undefined;\n }\n return {\n top: offsetInternal.top,\n bottom: offsetInternal.bottom,\n left: offsetInternal.left,\n right: offsetInternal.right\n };\n});","import { createSelector } from 'reselect';\nimport { selectChartOffset } from './selectChartOffset';\nimport { selectChartHeight, selectChartWidth } from './containerSelectors';\nexport var selectPlotArea = createSelector([selectChartOffset, selectChartWidth, selectChartHeight], (offset, chartWidth, chartHeight) => {\n if (!offset || chartWidth == null || chartHeight == null) {\n return undefined;\n }\n return {\n x: offset.left,\n y: offset.top,\n width: Math.max(0, chartWidth - offset.left - offset.right),\n height: Math.max(0, chartHeight - offset.top - offset.bottom)\n };\n});","import { defaultAxisId } from './state/cartesianAxisSlice';\nimport { selectAxisDomain, selectAxisWithScale } from './state/selectors/axisSelectors';\nimport { useAppSelector } from './state/hooks';\nimport { useIsPanorama } from './context/PanoramaContext';\nimport { selectActiveLabel, selectActiveTooltipDataPoints } from './state/selectors/tooltipSelectors';\nimport { selectChartOffset } from './state/selectors/selectChartOffset';\nimport { selectPlotArea } from './state/selectors/selectPlotArea';\nexport var useXAxis = xAxisId => {\n var isPanorama = useIsPanorama();\n return useAppSelector(state => selectAxisWithScale(state, 'xAxis', xAxisId, isPanorama));\n};\nexport var useYAxis = yAxisId => {\n var isPanorama = useIsPanorama();\n return useAppSelector(state => selectAxisWithScale(state, 'yAxis', yAxisId, isPanorama));\n};\n\n/**\n * Returns the active tooltip label. The label is one of the values from the chart data,\n * and is used to display in the tooltip content.\n *\n * Returns undefined if there is no active user interaction or if used outside a chart context\n *\n * @returns string | undefined\n */\nexport var useActiveTooltipLabel = () => {\n return useAppSelector(selectActiveLabel);\n};\n\n/**\n * Offset defines the blank space between the chart and the plot area.\n * This blank space is occupied by supporting elements like axes, legends, and brushes.\n * This also includes any margins that might be applied to the chart.\n * If you are interested in the margin alone, use `useMargin` instead.\n *\n * @returns Offset of the chart in pixels, or undefined if used outside a chart context.\n */\nexport var useOffset = () => {\n return useAppSelector(selectChartOffset);\n};\n\n/**\n * Plot area is the area where the actual chart data is rendered.\n * This means: bars, lines, scatter points, etc.\n *\n * The plot area is calculated based on the chart dimensions and the offset.\n *\n * @returns Plot area of the chart in pixels, or undefined if used outside a chart context.\n */\nexport var usePlotArea = () => {\n return useAppSelector(selectPlotArea);\n};\n\n/**\n * Returns the currently active data points being displayed in the Tooltip.\n * Active means that it is currently visible; this hook will return `undefined` if there is no current interaction.\n *\n * This follows the `<Tooltip />` props, if the Tooltip element is present in the chart.\n * If there is no `<Tooltip />` then this hook will follow the default Tooltip props.\n *\n * Data point is whatever you pass as an input to the chart using the `data={}` prop.\n *\n * This returns an array because a chart can have multiple graphical items in it (multiple Lines for example)\n * and tooltip with `shared={true}` will display all items at the same time.\n *\n * Returns undefined when used outside a chart context.\n *\n * @returns Data points that are currently visible in a Tooltip\n */\nexport var useActiveTooltipDataPoints = () => {\n return useAppSelector(selectActiveTooltipDataPoints);\n};\n\n/**\n * Returns the calculated domain of an X-axis.\n *\n * The domain can be numerical: `[min, max]`, or categorical: `['a', 'b', 'c']`.\n *\n * The type of the domain is defined by the `type` prop of the XAxis.\n *\n * The values of the domain are calculated based on the data and the `dataKey` of the axis.\n *\n * If the chart has a Brush, the domain will be filtered to the brushed indexes if the hook is used outside a Brush context,\n * and the full domain will be returned if the hook is used inside a Brush context.\n *\n * @param xAxisId The `xAxisId` of the X-axis. Defaults to `0` if not provided.\n * @returns The domain of the X-axis, or `undefined` if it cannot be calculated or if used outside a chart context.\n */\nexport var useXAxisDomain = function useXAxisDomain() {\n var xAxisId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultAxisId;\n var isPanorama = useIsPanorama();\n return useAppSelector(state => selectAxisDomain(state, 'xAxis', xAxisId, isPanorama));\n};\n\n/**\n * Returns the calculated domain of a Y-axis.\n *\n * The domain can be numerical: `[min, max]`, or categorical: `['a', 'b', 'c']`.\n *\n * The type of the domain is defined by the `type` prop of the YAxis.\n *\n * The values of the domain are calculated based on the data and the `dataKey` of the axis.\n *\n * Does not interact with Brushes, as Y-axes do not support brushing.\n *\n * @param yAxisId The `yAxisId` of the Y-axis. Defaults to `0` if not provided.\n * @returns The domain of the Y-axis, or `undefined` if it cannot be calculated or if used outside a chart context.\n */\nexport var useYAxisDomain = function useYAxisDomain() {\n var yAxisId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultAxisId;\n var isPanorama = useIsPanorama();\n return useAppSelector(state => selectAxisDomain(state, 'yAxis', yAxisId, isPanorama));\n};","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport * as React from 'react';\nimport { cloneElement, isValidElement } from 'react';\nimport { adaptEventHandlers } from '../util/types';\nimport { filterProps } from '../util/ReactUtils';\nimport { Dot } from '../shape/Dot';\nimport { Layer } from '../container/Layer';\nimport { useAppSelector } from '../state/hooks';\nimport { selectActiveTooltipIndex } from '../state/selectors/tooltipSelectors';\nimport { useActiveTooltipDataPoints } from '../hooks';\nimport { isNullish } from '../util/DataUtils';\nvar renderActivePoint = _ref => {\n var {\n point,\n childIndex,\n mainColor,\n activeDot,\n dataKey\n } = _ref;\n if (activeDot === false || point.x == null || point.y == null) {\n return null;\n }\n var dotProps = _objectSpread(_objectSpread({\n index: childIndex,\n dataKey,\n cx: point.x,\n cy: point.y,\n r: 4,\n fill: mainColor !== null && mainColor !== void 0 ? mainColor : 'none',\n strokeWidth: 2,\n stroke: '#fff',\n payload: point.payload,\n value: point.value\n }, filterProps(activeDot, false)), adaptEventHandlers(activeDot));\n var dot;\n if (/*#__PURE__*/isValidElement(activeDot)) {\n // @ts-expect-error element cloning does not have types\n dot = /*#__PURE__*/cloneElement(activeDot, dotProps);\n } else if (typeof activeDot === 'function') {\n dot = activeDot(dotProps);\n } else {\n dot = /*#__PURE__*/React.createElement(Dot, dotProps);\n }\n return /*#__PURE__*/React.createElement(Layer, {\n className: \"recharts-active-dot\"\n }, dot);\n};\nexport function ActivePoints(_ref2) {\n var {\n points,\n mainColor,\n activeDot,\n itemDataKey\n } = _ref2;\n var activeTooltipIndex = useAppSelector(selectActiveTooltipIndex);\n var activeDataPoints = useActiveTooltipDataPoints();\n if (points == null || activeDataPoints == null) {\n return null;\n }\n var activePoint = points.find(p => activeDataPoints.includes(p.payload));\n if (isNullish(activePoint)) {\n return null;\n }\n return renderActivePoint({\n point: activePoint,\n childIndex: Number(activeTooltipIndex),\n mainColor,\n dataKey: itemDataKey,\n activeDot\n });\n}","var isProduction = process.env.NODE_ENV === 'production';\nvar prefix = 'Invariant failed';\nfunction invariant(condition, message) {\n if (condition) {\n return;\n }\n if (isProduction) {\n throw new Error(prefix);\n }\n var provided = typeof message === 'function' ? message() : message;\n var value = provided ? \"\".concat(prefix, \": \").concat(provided) : prefix;\n throw new Error(value);\n}\n\nexport { invariant as default };\n","var _excluded = [\"x\", \"y\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from 'react';\nimport invariant from 'tiny-invariant';\nimport { Shape } from './ActiveShapeUtils';\nimport { isNullish, isNumber } from './DataUtils';\n\n// Rectangle props is expecting x, y, height, width as numbers, name as a string, and radius as a custom type\n// When props are being spread in from a user defined component in Bar,\n// the prop types of an SVGElement have these typed as something else.\n// This function will return the passed in props\n// along with x, y, height as numbers, name as a string, and radius as number | [number, number, number, number]\nfunction typeguardBarRectangleProps(_ref, props) {\n var {\n x: xProp,\n y: yProp\n } = _ref,\n option = _objectWithoutProperties(_ref, _excluded);\n var xValue = \"\".concat(xProp);\n var x = parseInt(xValue, 10);\n var yValue = \"\".concat(yProp);\n var y = parseInt(yValue, 10);\n var heightValue = \"\".concat(props.height || option.height);\n var height = parseInt(heightValue, 10);\n var widthValue = \"\".concat(props.width || option.width);\n var width = parseInt(widthValue, 10);\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, props), option), x ? {\n x\n } : {}), y ? {\n y\n } : {}), {}, {\n height,\n width,\n name: props.name,\n radius: props.radius\n });\n}\nexport function BarRectangle(props) {\n return /*#__PURE__*/React.createElement(Shape, _extends({\n shapeType: \"rectangle\",\n propTransformer: typeguardBarRectangleProps,\n activeClassName: \"recharts-active-bar\"\n }, props));\n}\n/**\n * Safely gets minPointSize from the minPointSize prop if it is a function\n * @param minPointSize minPointSize as passed to the Bar component\n * @param defaultValue default minPointSize\n * @returns minPointSize\n */\nexport var minPointSizeCallback = function minPointSizeCallback(minPointSize) {\n var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n return (value, index) => {\n if (isNumber(minPointSize)) return minPointSize;\n var isValueNumberOrNil = isNumber(value) || isNullish(value);\n if (isValueNumberOrNil) {\n return minPointSize(value, index);\n }\n !isValueNumberOrNil ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"minPointSize callback function received a value with type of \".concat(typeof value, \". Currently only numbers or null/undefined are supported.\")) : invariant(false) : void 0;\n return defaultValue;\n };\n};","import { createSlice } from '@reduxjs/toolkit';\n\n/**\n * ErrorBars have lot more settings but all the others are scoped to the component itself.\n * Only some of them required to be reported to the global store because XAxis and YAxis need to know\n * if the error bar is contributing to extending the axis domain.\n */\n\nvar initialState = {};\nvar errorBarSlice = createSlice({\n name: 'errorBars',\n initialState,\n reducers: {\n addErrorBar: (state, action) => {\n var {\n itemId,\n errorBar\n } = action.payload;\n if (!state[itemId]) {\n state[itemId] = [];\n }\n state[itemId].push(errorBar);\n },\n replaceErrorBar: (state, action) => {\n var {\n itemId,\n prev,\n next\n } = action.payload;\n if (state[itemId]) {\n state[itemId] = state[itemId].map(e => e.dataKey === prev.dataKey && e.direction === prev.direction ? next : e);\n }\n },\n removeErrorBar: (state, action) => {\n var {\n itemId,\n errorBar\n } = action.payload;\n if (state[itemId]) {\n state[itemId] = state[itemId].filter(e => e.dataKey !== errorBar.dataKey || e.direction !== errorBar.direction);\n }\n }\n }\n});\nexport var {\n addErrorBar,\n replaceErrorBar,\n removeErrorBar\n} = errorBarSlice.actions;\nexport var errorBarReducer = errorBarSlice.reducer;","var _excluded = [\"children\"];\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from 'react';\nimport { createContext, useContext, useEffect, useRef } from 'react';\nimport { addErrorBar, removeErrorBar, replaceErrorBar } from '../state/errorBarSlice';\nimport { useAppDispatch } from '../state/hooks';\nimport { useGraphicalItemId } from './RegisterGraphicalItemId';\nvar initialContextState = {\n data: [],\n xAxisId: 'xAxis-0',\n yAxisId: 'yAxis-0',\n dataPointFormatter: () => ({\n x: 0,\n y: 0,\n value: 0\n }),\n errorBarOffset: 0\n};\nvar ErrorBarContext = /*#__PURE__*/createContext(initialContextState);\nexport function SetErrorBarContext(props) {\n var {\n children\n } = props,\n rest = _objectWithoutProperties(props, _excluded);\n return /*#__PURE__*/React.createElement(ErrorBarContext.Provider, {\n value: rest\n }, children);\n}\nexport var useErrorBarContext = () => useContext(ErrorBarContext);\nexport function ReportErrorBarSettings(props) {\n var dispatch = useAppDispatch();\n var graphicalItemId = useGraphicalItemId();\n var prevPropsRef = useRef(null);\n useEffect(() => {\n if (graphicalItemId == null) {\n // ErrorBar outside a graphical item context does not do anything.\n return;\n }\n if (prevPropsRef.current === null) {\n dispatch(addErrorBar({\n itemId: graphicalItemId,\n errorBar: props\n }));\n } else if (prevPropsRef.current !== props) {\n dispatch(replaceErrorBar({\n itemId: graphicalItemId,\n prev: prevPropsRef.current,\n next: props\n }));\n }\n prevPropsRef.current = props;\n }, [dispatch, graphicalItemId, props]);\n useEffect(() => {\n return () => {\n if (prevPropsRef.current != null) {\n dispatch(removeErrorBar({\n itemId: graphicalItemId,\n errorBar: prevPropsRef.current\n }));\n prevPropsRef.current = null;\n }\n };\n }, [dispatch, graphicalItemId]);\n return null;\n}","import * as React from 'react';\nimport { useAppSelector } from '../state/hooks';\nimport { implicitXAxis, implicitYAxis, selectXAxisSettings, selectYAxisSettings } from '../state/selectors/axisSelectors';\nimport { usePlotArea } from '../hooks';\nexport function useNeedsClip(xAxisId, yAxisId) {\n var _xAxis$allowDataOverf, _yAxis$allowDataOverf;\n var xAxis = useAppSelector(state => selectXAxisSettings(state, xAxisId));\n var yAxis = useAppSelector(state => selectYAxisSettings(state, yAxisId));\n var needClipX = (_xAxis$allowDataOverf = xAxis === null || xAxis === void 0 ? void 0 : xAxis.allowDataOverflow) !== null && _xAxis$allowDataOverf !== void 0 ? _xAxis$allowDataOverf : implicitXAxis.allowDataOverflow;\n var needClipY = (_yAxis$allowDataOverf = yAxis === null || yAxis === void 0 ? void 0 : yAxis.allowDataOverflow) !== null && _yAxis$allowDataOverf !== void 0 ? _yAxis$allowDataOverf : implicitYAxis.allowDataOverflow;\n var needClip = needClipX || needClipY;\n return {\n needClip,\n needClipX,\n needClipY\n };\n}\nexport function GraphicalItemClipPath(_ref) {\n var {\n xAxisId,\n yAxisId,\n clipPathId\n } = _ref;\n var plotArea = usePlotArea();\n var {\n needClipX,\n needClipY,\n needClip\n } = useNeedsClip(xAxisId, yAxisId);\n if (!needClip) {\n return null;\n }\n var {\n x,\n y,\n width,\n height\n } = plotArea;\n return /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clipPath-\".concat(clipPathId)\n }, /*#__PURE__*/React.createElement(\"rect\", {\n x: needClipX ? x : x - width / 2,\n y: needClipY ? y : y - height / 2,\n width: needClipX ? width : width * 2,\n height: needClipY ? height : height * 2\n }));\n}","var _excluded = [\"onMouseEnter\", \"onMouseLeave\", \"onClick\"],\n _excluded2 = [\"value\", \"background\", \"tooltipPosition\"],\n _excluded3 = [\"id\"],\n _excluded4 = [\"onMouseEnter\", \"onClick\", \"onMouseLeave\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from 'react';\nimport { PureComponent, useCallback, useRef, useState } from 'react';\nimport { clsx } from 'clsx';\nimport { Layer } from '../container/Layer';\nimport { Cell } from '../component/Cell';\nimport { CartesianLabelListContextProvider, LabelListFromLabelProp } from '../component/LabelList';\nimport { interpolate, isNan, mathSign } from '../util/DataUtils';\nimport { filterProps, findAllByType } from '../util/ReactUtils';\nimport { Global } from '../util/Global';\nimport { getBaseValueOfBar, getCateCoordinateOfBar, getNormalizedStackId, getTooltipNameProp, getValueByDataKey, truncateByDomain } from '../util/ChartUtils';\nimport { adaptEventsOfChild } from '../util/types';\nimport { BarRectangle, minPointSizeCallback } from '../util/BarUtils';\nimport { useMouseClickItemDispatch, useMouseEnterItemDispatch, useMouseLeaveItemDispatch } from '../context/tooltipContext';\nimport { SetTooltipEntrySettings } from '../state/SetTooltipEntrySettings';\nimport { SetErrorBarContext } from '../context/ErrorBarContext';\nimport { GraphicalItemClipPath, useNeedsClip } from './GraphicalItemClipPath';\nimport { useChartLayout } from '../context/chartLayoutContext';\nimport { selectBarRectangles } from '../state/selectors/barSelectors';\nimport { useAppSelector } from '../state/hooks';\nimport { useIsPanorama } from '../context/PanoramaContext';\nimport { selectActiveTooltipDataKey, selectActiveTooltipIndex } from '../state/selectors/tooltipSelectors';\nimport { SetLegendPayload } from '../state/SetLegendPayload';\nimport { useAnimationId } from '../util/useAnimationId';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nimport { RegisterGraphicalItemId } from '../context/RegisterGraphicalItemId';\nimport { SetCartesianGraphicalItem } from '../state/SetGraphicalItem';\nimport { svgPropertiesNoEvents } from '../util/svgPropertiesNoEvents';\nimport { JavascriptAnimate } from '../animation/JavascriptAnimate';\nvar computeLegendPayloadFromBarData = props => {\n var {\n dataKey,\n name,\n fill,\n legendType,\n hide\n } = props;\n return [{\n inactive: hide,\n dataKey,\n type: legendType,\n color: fill,\n value: getTooltipNameProp(name, dataKey),\n payload: props\n }];\n};\nfunction getTooltipEntrySettings(props) {\n var {\n dataKey,\n stroke,\n strokeWidth,\n fill,\n name,\n hide,\n unit\n } = props;\n return {\n dataDefinedOnItem: undefined,\n positions: undefined,\n settings: {\n stroke,\n strokeWidth,\n fill,\n dataKey,\n nameKey: undefined,\n name: getTooltipNameProp(name, dataKey),\n hide,\n type: props.tooltipType,\n color: props.fill,\n unit\n }\n };\n}\nfunction BarBackground(props) {\n var activeIndex = useAppSelector(selectActiveTooltipIndex);\n var {\n data,\n dataKey,\n background: backgroundFromProps,\n allOtherBarProps\n } = props;\n var {\n onMouseEnter: onMouseEnterFromProps,\n onMouseLeave: onMouseLeaveFromProps,\n onClick: onItemClickFromProps\n } = allOtherBarProps,\n restOfAllOtherProps = _objectWithoutProperties(allOtherBarProps, _excluded);\n\n // @ts-expect-error bar mouse events are not compatible with recharts mouse events\n var onMouseEnterFromContext = useMouseEnterItemDispatch(onMouseEnterFromProps, dataKey);\n // @ts-expect-error bar mouse events are not compatible with recharts mouse events\n var onMouseLeaveFromContext = useMouseLeaveItemDispatch(onMouseLeaveFromProps);\n // @ts-expect-error bar mouse events are not compatible with recharts mouse events\n var onClickFromContext = useMouseClickItemDispatch(onItemClickFromProps, dataKey);\n if (!backgroundFromProps || data == null) {\n return null;\n }\n var backgroundProps = filterProps(backgroundFromProps, false);\n return /*#__PURE__*/React.createElement(React.Fragment, null, data.map((entry, i) => {\n var {\n value,\n background: backgroundFromDataEntry,\n tooltipPosition\n } = entry,\n rest = _objectWithoutProperties(entry, _excluded2);\n if (!backgroundFromDataEntry) {\n return null;\n }\n\n // @ts-expect-error BarRectangleItem type definition says it's missing properties, but I can see them present in debugger!\n var onMouseEnter = onMouseEnterFromContext(entry, i);\n // @ts-expect-error BarRectangleItem type definition says it's missing properties, but I can see them present in debugger!\n var onMouseLeave = onMouseLeaveFromContext(entry, i);\n // @ts-expect-error BarRectangleItem type definition says it's missing properties, but I can see them present in debugger!\n var onClick = onClickFromContext(entry, i);\n var barRectangleProps = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({\n option: backgroundFromProps,\n isActive: String(i) === activeIndex\n }, rest), {}, {\n // @ts-expect-error BarRectangle props do not accept `fill` property.\n fill: '#eee'\n }, backgroundFromDataEntry), backgroundProps), adaptEventsOfChild(restOfAllOtherProps, entry, i)), {}, {\n onMouseEnter,\n onMouseLeave,\n onClick,\n dataKey,\n index: i,\n className: 'recharts-bar-background-rectangle'\n });\n return /*#__PURE__*/React.createElement(BarRectangle, _extends({\n key: \"background-bar-\".concat(barRectangleProps.index)\n }, barRectangleProps));\n }));\n}\nfunction BarLabelListProvider(_ref) {\n var {\n showLabels,\n children,\n rects\n } = _ref;\n var labelListEntries = rects === null || rects === void 0 ? void 0 : rects.map(entry => {\n var viewBox = {\n x: entry.x,\n y: entry.y,\n width: entry.width,\n height: entry.height\n };\n return _objectSpread(_objectSpread({}, viewBox), {}, {\n value: entry.value,\n payload: entry.payload,\n parentViewBox: entry.parentViewBox,\n viewBox,\n fill: entry.fill\n });\n });\n return /*#__PURE__*/React.createElement(CartesianLabelListContextProvider, {\n value: showLabels ? labelListEntries : undefined\n }, children);\n}\nfunction BarRectangleWithActiveState(props) {\n var {\n shape,\n activeBar,\n baseProps,\n entry,\n index,\n dataKey\n } = props;\n var activeIndex = useAppSelector(selectActiveTooltipIndex);\n var activeDataKey = useAppSelector(selectActiveTooltipDataKey);\n /*\n * Bars support stacking, meaning that there can be multiple bars at the same x value.\n * With Tooltip shared=false we only want to highlight the currently active Bar, not all.\n *\n * Also, if the tooltip is shared, we want to highlight all bars at the same x value\n * regardless of the dataKey.\n *\n * With shared Tooltip, the activeDataKey is undefined.\n */\n var isActive = activeBar && String(index) === activeIndex && (activeDataKey == null || dataKey === activeDataKey);\n var option = isActive ? activeBar : shape;\n return /*#__PURE__*/React.createElement(BarRectangle, _extends({}, baseProps, entry, {\n isActive: isActive,\n option: option,\n index: index,\n dataKey: dataKey\n }));\n}\nfunction BarRectangleNeverActive(props) {\n var {\n shape,\n baseProps,\n entry,\n index,\n dataKey\n } = props;\n return /*#__PURE__*/React.createElement(BarRectangle, _extends({}, baseProps, entry, {\n isActive: false,\n option: shape,\n index: index,\n dataKey: dataKey\n }));\n}\nfunction BarRectangles(_ref2) {\n var {\n data,\n props\n } = _ref2;\n var _svgPropertiesNoEvent = svgPropertiesNoEvents(props),\n {\n id\n } = _svgPropertiesNoEvent,\n baseProps = _objectWithoutProperties(_svgPropertiesNoEvent, _excluded3);\n var {\n shape,\n dataKey,\n activeBar\n } = props;\n var {\n onMouseEnter: onMouseEnterFromProps,\n onClick: onItemClickFromProps,\n onMouseLeave: onMouseLeaveFromProps\n } = props,\n restOfAllOtherProps = _objectWithoutProperties(props, _excluded4);\n\n // @ts-expect-error bar mouse events are not compatible with recharts mouse events\n var onMouseEnterFromContext = useMouseEnterItemDispatch(onMouseEnterFromProps, dataKey);\n // @ts-expect-error bar mouse events are not compatible with recharts mouse events\n var onMouseLeaveFromContext = useMouseLeaveItemDispatch(onMouseLeaveFromProps);\n // @ts-expect-error bar mouse events are not compatible with recharts mouse events\n var onClickFromContext = useMouseClickItemDispatch(onItemClickFromProps, dataKey);\n if (!data) {\n return null;\n }\n return /*#__PURE__*/React.createElement(React.Fragment, null, data.map((entry, i) => {\n return /*#__PURE__*/React.createElement(Layer, _extends({\n className: \"recharts-bar-rectangle\"\n }, adaptEventsOfChild(restOfAllOtherProps, entry, i), {\n // @ts-expect-error BarRectangleItem type definition says it's missing properties, but I can see them present in debugger!\n onMouseEnter: onMouseEnterFromContext(entry, i)\n // @ts-expect-error BarRectangleItem type definition says it's missing properties, but I can see them present in debugger!\n ,\n onMouseLeave: onMouseLeaveFromContext(entry, i)\n // @ts-expect-error BarRectangleItem type definition says it's missing properties, but I can see them present in debugger!\n ,\n onClick: onClickFromContext(entry, i)\n // https://github.com/recharts/recharts/issues/5415\n // eslint-disable-next-line react/no-array-index-key\n ,\n key: \"rectangle-\".concat(entry === null || entry === void 0 ? void 0 : entry.x, \"-\").concat(entry === null || entry === void 0 ? void 0 : entry.y, \"-\").concat(entry === null || entry === void 0 ? void 0 : entry.value, \"-\").concat(i)\n }), activeBar ? /*#__PURE__*/React.createElement(BarRectangleWithActiveState, {\n shape: shape,\n activeBar: activeBar,\n baseProps: baseProps,\n entry: entry,\n index: i,\n dataKey: dataKey\n }) :\n /*#__PURE__*/\n /*\n * If the `activeBar` prop is falsy, then let's call the variant without hooks.\n * Using the `selectActiveTooltipIndex` selector is usually fast\n * but in charts with large-ish amount of data even the few nanoseconds add up to a noticeable jank.\n * If the activeBar is false then we don't need to know which index is active - because we won't use it anyway.\n * So let's just skip the hooks altogether. That way, React can skip rendering the component,\n * and can skip the tree reconciliation for its children too.\n * Because we can't call hooks conditionally, we need to have a separate component for that.\n */\n React.createElement(BarRectangleNeverActive, {\n shape: shape,\n baseProps: baseProps,\n entry: entry,\n index: i,\n dataKey: dataKey\n }));\n }));\n}\nfunction RectanglesWithAnimation(_ref3) {\n var {\n props,\n previousRectanglesRef\n } = _ref3;\n var {\n data,\n layout,\n isAnimationActive,\n animationBegin,\n animationDuration,\n animationEasing,\n onAnimationEnd,\n onAnimationStart\n } = props;\n var prevData = previousRectanglesRef.current;\n var animationId = useAnimationId(props, 'recharts-bar-');\n var [isAnimating, setIsAnimating] = useState(false);\n var showLabels = !isAnimating;\n var handleAnimationEnd = useCallback(() => {\n if (typeof onAnimationEnd === 'function') {\n onAnimationEnd();\n }\n setIsAnimating(false);\n }, [onAnimationEnd]);\n var handleAnimationStart = useCallback(() => {\n if (typeof onAnimationStart === 'function') {\n onAnimationStart();\n }\n setIsAnimating(true);\n }, [onAnimationStart]);\n return /*#__PURE__*/React.createElement(BarLabelListProvider, {\n showLabels: showLabels,\n rects: data\n }, /*#__PURE__*/React.createElement(JavascriptAnimate, {\n animationId: animationId,\n begin: animationBegin,\n duration: animationDuration,\n isActive: isAnimationActive,\n easing: animationEasing,\n onAnimationEnd: handleAnimationEnd,\n onAnimationStart: handleAnimationStart,\n key: animationId\n }, t => {\n var stepData = t === 1 ? data : data === null || data === void 0 ? void 0 : data.map((entry, index) => {\n var prev = prevData && prevData[index];\n if (prev) {\n return _objectSpread(_objectSpread({}, entry), {}, {\n x: interpolate(prev.x, entry.x, t),\n y: interpolate(prev.y, entry.y, t),\n width: interpolate(prev.width, entry.width, t),\n height: interpolate(prev.height, entry.height, t)\n });\n }\n if (layout === 'horizontal') {\n var h = interpolate(0, entry.height, t);\n return _objectSpread(_objectSpread({}, entry), {}, {\n y: entry.y + entry.height - h,\n height: h\n });\n }\n var w = interpolate(0, entry.width, t);\n return _objectSpread(_objectSpread({}, entry), {}, {\n width: w\n });\n });\n if (t > 0) {\n // eslint-disable-next-line no-param-reassign\n previousRectanglesRef.current = stepData !== null && stepData !== void 0 ? stepData : null;\n }\n if (stepData == null) {\n return null;\n }\n return /*#__PURE__*/React.createElement(Layer, null, /*#__PURE__*/React.createElement(BarRectangles, {\n props: props,\n data: stepData\n }));\n }), /*#__PURE__*/React.createElement(LabelListFromLabelProp, {\n label: props.label\n }), props.children);\n}\nfunction RenderRectangles(props) {\n var previousRectanglesRef = useRef(null);\n return /*#__PURE__*/React.createElement(RectanglesWithAnimation, {\n previousRectanglesRef: previousRectanglesRef,\n props: props\n });\n}\nvar defaultMinPointSize = 0;\nvar errorBarDataPointFormatter = (dataPoint, dataKey) => {\n /**\n * if the value coming from `selectBarRectangles` is an array then this is a stacked bar chart.\n * arr[1] represents end value of the bar since the data is in the form of [startValue, endValue].\n * */\n var value = Array.isArray(dataPoint.value) ? dataPoint.value[1] : dataPoint.value;\n return {\n x: dataPoint.x,\n y: dataPoint.y,\n value,\n // @ts-expect-error getValueByDataKey does not validate the output type\n errorVal: getValueByDataKey(dataPoint, dataKey)\n };\n};\nclass BarWithState extends PureComponent {\n render() {\n var {\n hide,\n data,\n dataKey,\n className,\n xAxisId,\n yAxisId,\n needClip,\n background,\n id\n } = this.props;\n if (hide || data == null) {\n return null;\n }\n var layerClass = clsx('recharts-bar', className);\n var clipPathId = id;\n return /*#__PURE__*/React.createElement(Layer, {\n className: layerClass,\n id: id\n }, needClip && /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(GraphicalItemClipPath, {\n clipPathId: clipPathId,\n xAxisId: xAxisId,\n yAxisId: yAxisId\n })), /*#__PURE__*/React.createElement(Layer, {\n className: \"recharts-bar-rectangles\",\n clipPath: needClip ? \"url(#clipPath-\".concat(clipPathId, \")\") : undefined\n }, /*#__PURE__*/React.createElement(BarBackground, {\n data: data,\n dataKey: dataKey,\n background: background,\n allOtherBarProps: this.props\n }), /*#__PURE__*/React.createElement(RenderRectangles, this.props)));\n }\n}\nvar defaultBarProps = {\n activeBar: false,\n animationBegin: 0,\n animationDuration: 400,\n animationEasing: 'ease',\n hide: false,\n isAnimationActive: !Global.isSsr,\n legendType: 'rect',\n minPointSize: defaultMinPointSize,\n xAxisId: 0,\n yAxisId: 0\n};\nfunction BarImpl(props) {\n var {\n xAxisId,\n yAxisId,\n hide,\n legendType,\n minPointSize,\n activeBar,\n animationBegin,\n animationDuration,\n animationEasing,\n isAnimationActive\n } = props;\n var {\n needClip\n } = useNeedsClip(xAxisId, yAxisId);\n var layout = useChartLayout();\n var isPanorama = useIsPanorama();\n var cells = findAllByType(props.children, Cell);\n var rects = useAppSelector(state => selectBarRectangles(state, xAxisId, yAxisId, isPanorama, props.id, cells));\n if (layout !== 'vertical' && layout !== 'horizontal') {\n return null;\n }\n var errorBarOffset;\n var firstDataPoint = rects === null || rects === void 0 ? void 0 : rects[0];\n if (firstDataPoint == null || firstDataPoint.height == null || firstDataPoint.width == null) {\n errorBarOffset = 0;\n } else {\n errorBarOffset = layout === 'vertical' ? firstDataPoint.height / 2 : firstDataPoint.width / 2;\n }\n return /*#__PURE__*/React.createElement(SetErrorBarContext, {\n xAxisId: xAxisId,\n yAxisId: yAxisId,\n data: rects,\n dataPointFormatter: errorBarDataPointFormatter,\n errorBarOffset: errorBarOffset\n }, /*#__PURE__*/React.createElement(BarWithState, _extends({}, props, {\n layout: layout,\n needClip: needClip,\n data: rects,\n xAxisId: xAxisId,\n yAxisId: yAxisId,\n hide: hide,\n legendType: legendType,\n minPointSize: minPointSize,\n activeBar: activeBar,\n animationBegin: animationBegin,\n animationDuration: animationDuration,\n animationEasing: animationEasing,\n isAnimationActive: isAnimationActive\n })));\n}\nexport function computeBarRectangles(_ref4) {\n var {\n layout,\n barSettings: {\n dataKey,\n minPointSize: minPointSizeProp\n },\n pos,\n bandSize,\n xAxis,\n yAxis,\n xAxisTicks,\n yAxisTicks,\n stackedData,\n displayedData,\n offset,\n cells,\n parentViewBox\n } = _ref4;\n var numericAxis = layout === 'horizontal' ? yAxis : xAxis;\n // @ts-expect-error this assumes that the domain is always numeric, but doesn't check for it\n var stackedDomain = stackedData ? numericAxis.scale.domain() : null;\n var baseValue = getBaseValueOfBar({\n numericAxis\n });\n return displayedData.map((entry, index) => {\n var value, x, y, width, height, background;\n if (stackedData) {\n // we don't need to use dataStartIndex here, because stackedData is already sliced from the selector\n value = truncateByDomain(stackedData[index], stackedDomain);\n } else {\n value = getValueByDataKey(entry, dataKey);\n if (!Array.isArray(value)) {\n value = [baseValue, value];\n }\n }\n var minPointSize = minPointSizeCallback(minPointSizeProp, defaultMinPointSize)(value[1], index);\n if (layout === 'horizontal') {\n var _ref5;\n var [baseValueScale, currentValueScale] = [yAxis.scale(value[0]), yAxis.scale(value[1])];\n x = getCateCoordinateOfBar({\n axis: xAxis,\n ticks: xAxisTicks,\n bandSize,\n offset: pos.offset,\n entry,\n index\n });\n y = (_ref5 = currentValueScale !== null && currentValueScale !== void 0 ? currentValueScale : baseValueScale) !== null && _ref5 !== void 0 ? _ref5 : undefined;\n width = pos.size;\n var computedHeight = baseValueScale - currentValueScale;\n height = isNan(computedHeight) ? 0 : computedHeight;\n background = {\n x,\n y: offset.top,\n width,\n height: offset.height\n };\n if (Math.abs(minPointSize) > 0 && Math.abs(height) < Math.abs(minPointSize)) {\n var delta = mathSign(height || minPointSize) * (Math.abs(minPointSize) - Math.abs(height));\n y -= delta;\n height += delta;\n }\n } else {\n var [_baseValueScale, _currentValueScale] = [xAxis.scale(value[0]), xAxis.scale(value[1])];\n x = _baseValueScale;\n y = getCateCoordinateOfBar({\n axis: yAxis,\n ticks: yAxisTicks,\n bandSize,\n offset: pos.offset,\n entry,\n index\n });\n width = _currentValueScale - _baseValueScale;\n height = pos.size;\n background = {\n x: offset.left,\n y,\n width: offset.width,\n height\n };\n if (Math.abs(minPointSize) > 0 && Math.abs(width) < Math.abs(minPointSize)) {\n var _delta = mathSign(width || minPointSize) * (Math.abs(minPointSize) - Math.abs(width));\n width += _delta;\n }\n }\n if (x == null || y == null || width == null || height == null) {\n return null;\n }\n var barRectangleItem = _objectSpread(_objectSpread({}, entry), {}, {\n x,\n y,\n width,\n height,\n value: stackedData ? value : value[1],\n payload: entry,\n background,\n tooltipPosition: {\n x: x + width / 2,\n y: y + height / 2\n },\n parentViewBox\n }, cells && cells[index] && cells[index].props);\n return barRectangleItem;\n }).filter(Boolean);\n}\nfunction BarFn(outsideProps) {\n var props = resolveDefaultProps(outsideProps, defaultBarProps);\n var isPanorama = useIsPanorama();\n // Report all props to Redux store first, before calling any hooks, to avoid circular dependencies.\n return /*#__PURE__*/React.createElement(RegisterGraphicalItemId, {\n id: props.id,\n type: \"bar\"\n }, id => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SetLegendPayload, {\n legendPayload: computeLegendPayloadFromBarData(props)\n }), /*#__PURE__*/React.createElement(SetTooltipEntrySettings, {\n fn: getTooltipEntrySettings,\n args: props\n }), /*#__PURE__*/React.createElement(SetCartesianGraphicalItem, {\n type: \"bar\",\n id: id\n // Bar does not allow setting data directly on the graphical item (why?)\n ,\n data: undefined,\n xAxisId: props.xAxisId,\n yAxisId: props.yAxisId,\n zAxisId: 0,\n dataKey: props.dataKey,\n stackId: getNormalizedStackId(props.stackId),\n hide: props.hide,\n barSize: props.barSize,\n minPointSize: props.minPointSize,\n maxBarSize: props.maxBarSize,\n isPanorama: isPanorama\n }), /*#__PURE__*/React.createElement(BarImpl, _extends({}, props, {\n id: id\n }))));\n}\nexport var Bar = /*#__PURE__*/React.memo(BarFn);\nBar.displayName = 'Bar';","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport { createSelector } from 'reselect';\nimport { selectAxisWithScale, selectCartesianAxisSize, selectStackGroups, selectTicksOfGraphicalItem, selectUnfilteredCartesianItems } from './axisSelectors';\nimport { getPercentValue, isNullish } from '../../util/DataUtils';\nimport { getBandSizeOfAxis } from '../../util/ChartUtils';\nimport { computeBarRectangles } from '../../cartesian/Bar';\nimport { selectChartLayout } from '../../context/chartLayoutContext';\nimport { selectChartDataWithIndexesIfNotInPanorama } from './dataSelectors';\nimport { selectAxisViewBox, selectChartOffsetInternal } from './selectChartOffsetInternal';\nimport { selectBarCategoryGap, selectBarGap, selectRootBarSize, selectRootMaxBarSize } from './rootPropsSelectors';\nimport { isWellBehavedNumber } from '../../util/isWellBehavedNumber';\nimport { getStackSeriesIdentifier } from '../../util/stacks/getStackSeriesIdentifier';\nimport { isStacked } from '../types/StackedGraphicalItem';\nvar pickXAxisId = (_state, xAxisId) => xAxisId;\nvar pickYAxisId = (_state, _xAxisId, yAxisId) => yAxisId;\nvar pickIsPanorama = (_state, _xAxisId, _yAxisId, isPanorama) => isPanorama;\nvar pickBarId = (_state, _xAxisId, _yAxisId, _isPanorama, id) => id;\nvar selectSynchronisedBarSettings = createSelector([selectUnfilteredCartesianItems, pickBarId], (graphicalItems, id) => graphicalItems.filter(item => item.type === 'bar').find(item => item.id === id));\nexport var selectMaxBarSize = createSelector([selectSynchronisedBarSettings], barSettings => barSettings === null || barSettings === void 0 ? void 0 : barSettings.maxBarSize);\nvar pickCells = (_state, _xAxisId, _yAxisId, _isPanorama, _id, cells) => cells;\nvar getBarSize = (globalSize, totalSize, selfSize) => {\n var barSize = selfSize !== null && selfSize !== void 0 ? selfSize : globalSize;\n if (isNullish(barSize)) {\n return undefined;\n }\n return getPercentValue(barSize, totalSize, 0);\n};\nexport var selectAllVisibleBars = createSelector([selectChartLayout, selectUnfilteredCartesianItems, pickXAxisId, pickYAxisId, pickIsPanorama], (layout, allItems, xAxisId, yAxisId, isPanorama) => allItems.filter(i => {\n if (layout === 'horizontal') {\n return i.xAxisId === xAxisId;\n }\n return i.yAxisId === yAxisId;\n}).filter(i => i.isPanorama === isPanorama).filter(i => i.hide === false).filter(i => i.type === 'bar'));\nvar selectBarStackGroups = (state, xAxisId, yAxisId, isPanorama) => {\n var layout = selectChartLayout(state);\n if (layout === 'horizontal') {\n return selectStackGroups(state, 'yAxis', yAxisId, isPanorama);\n }\n return selectStackGroups(state, 'xAxis', xAxisId, isPanorama);\n};\nexport var selectBarCartesianAxisSize = (state, xAxisId, yAxisId) => {\n var layout = selectChartLayout(state);\n if (layout === 'horizontal') {\n return selectCartesianAxisSize(state, 'xAxis', xAxisId);\n }\n return selectCartesianAxisSize(state, 'yAxis', yAxisId);\n};\nexport var combineBarSizeList = (allBars, globalSize, totalSize) => {\n var initialValue = {};\n var stackedBars = allBars.filter(isStacked);\n var unstackedBars = allBars.filter(b => b.stackId == null);\n var groupByStack = stackedBars.reduce((acc, bar) => {\n if (!acc[bar.stackId]) {\n acc[bar.stackId] = [];\n }\n acc[bar.stackId].push(bar);\n return acc;\n }, initialValue);\n var stackedSizeList = Object.entries(groupByStack).map(_ref => {\n var [stackId, bars] = _ref;\n var dataKeys = bars.map(b => b.dataKey);\n var barSize = getBarSize(globalSize, totalSize, bars[0].barSize);\n return {\n stackId,\n dataKeys,\n barSize\n };\n });\n var unstackedSizeList = unstackedBars.map(b => {\n var dataKeys = [b.dataKey].filter(dk => dk != null);\n var barSize = getBarSize(globalSize, totalSize, b.barSize);\n return {\n stackId: undefined,\n dataKeys,\n barSize\n };\n });\n return [...stackedSizeList, ...unstackedSizeList];\n};\nexport var selectBarSizeList = createSelector([selectAllVisibleBars, selectRootBarSize, selectBarCartesianAxisSize], combineBarSizeList);\nexport var selectBarBandSize = (state, xAxisId, yAxisId, isPanorama, id) => {\n var _ref2, _getBandSizeOfAxis;\n var barSettings = selectSynchronisedBarSettings(state, xAxisId, yAxisId, isPanorama, id);\n if (barSettings == null) {\n return undefined;\n }\n var layout = selectChartLayout(state);\n var globalMaxBarSize = selectRootMaxBarSize(state);\n var {\n maxBarSize: childMaxBarSize\n } = barSettings;\n var maxBarSize = isNullish(childMaxBarSize) ? globalMaxBarSize : childMaxBarSize;\n var axis, ticks;\n if (layout === 'horizontal') {\n axis = selectAxisWithScale(state, 'xAxis', xAxisId, isPanorama);\n ticks = selectTicksOfGraphicalItem(state, 'xAxis', xAxisId, isPanorama);\n } else {\n axis = selectAxisWithScale(state, 'yAxis', yAxisId, isPanorama);\n ticks = selectTicksOfGraphicalItem(state, 'yAxis', yAxisId, isPanorama);\n }\n return (_ref2 = (_getBandSizeOfAxis = getBandSizeOfAxis(axis, ticks, true)) !== null && _getBandSizeOfAxis !== void 0 ? _getBandSizeOfAxis : maxBarSize) !== null && _ref2 !== void 0 ? _ref2 : 0;\n};\nexport var selectAxisBandSize = (state, xAxisId, yAxisId, isPanorama) => {\n var layout = selectChartLayout(state);\n var axis, ticks;\n if (layout === 'horizontal') {\n axis = selectAxisWithScale(state, 'xAxis', xAxisId, isPanorama);\n ticks = selectTicksOfGraphicalItem(state, 'xAxis', xAxisId, isPanorama);\n } else {\n axis = selectAxisWithScale(state, 'yAxis', yAxisId, isPanorama);\n ticks = selectTicksOfGraphicalItem(state, 'yAxis', yAxisId, isPanorama);\n }\n return getBandSizeOfAxis(axis, ticks);\n};\nfunction getBarPositions(barGap, barCategoryGap, bandSize, sizeList, maxBarSize) {\n var len = sizeList.length;\n if (len < 1) {\n return undefined;\n }\n var realBarGap = getPercentValue(barGap, bandSize, 0, true);\n var result;\n var initialValue = [];\n\n // whether is barSize set by user\n // Okay but why does it check only for the first element? What if the first element is set but others are not?\n if (isWellBehavedNumber(sizeList[0].barSize)) {\n var useFull = false;\n var fullBarSize = bandSize / len;\n var sum = sizeList.reduce((res, entry) => res + (entry.barSize || 0), 0);\n sum += (len - 1) * realBarGap;\n if (sum >= bandSize) {\n sum -= (len - 1) * realBarGap;\n realBarGap = 0;\n }\n if (sum >= bandSize && fullBarSize > 0) {\n useFull = true;\n fullBarSize *= 0.9;\n sum = len * fullBarSize;\n }\n var offset = (bandSize - sum) / 2 >> 0;\n var prev = {\n offset: offset - realBarGap,\n size: 0\n };\n result = sizeList.reduce((res, entry) => {\n var _entry$barSize;\n var newPosition = {\n stackId: entry.stackId,\n dataKeys: entry.dataKeys,\n position: {\n offset: prev.offset + prev.size + realBarGap,\n size: useFull ? fullBarSize : (_entry$barSize = entry.barSize) !== null && _entry$barSize !== void 0 ? _entry$barSize : 0\n }\n };\n var newRes = [...res, newPosition];\n prev = newRes[newRes.length - 1].position;\n return newRes;\n }, initialValue);\n } else {\n var _offset = getPercentValue(barCategoryGap, bandSize, 0, true);\n if (bandSize - 2 * _offset - (len - 1) * realBarGap <= 0) {\n realBarGap = 0;\n }\n var originalSize = (bandSize - 2 * _offset - (len - 1) * realBarGap) / len;\n if (originalSize > 1) {\n originalSize >>= 0;\n }\n var size = isWellBehavedNumber(maxBarSize) ? Math.min(originalSize, maxBarSize) : originalSize;\n result = sizeList.reduce((res, entry, i) => [...res, {\n stackId: entry.stackId,\n dataKeys: entry.dataKeys,\n position: {\n offset: _offset + (originalSize + realBarGap) * i + (originalSize - size) / 2,\n size\n }\n }], initialValue);\n }\n return result;\n}\nexport var combineAllBarPositions = (sizeList, globalMaxBarSize, barGap, barCategoryGap, barBandSize, bandSize, childMaxBarSize) => {\n var maxBarSize = isNullish(childMaxBarSize) ? globalMaxBarSize : childMaxBarSize;\n var allBarPositions = getBarPositions(barGap, barCategoryGap, barBandSize !== bandSize ? barBandSize : bandSize, sizeList, maxBarSize);\n if (barBandSize !== bandSize && allBarPositions != null) {\n allBarPositions = allBarPositions.map(pos => _objectSpread(_objectSpread({}, pos), {}, {\n position: _objectSpread(_objectSpread({}, pos.position), {}, {\n offset: pos.position.offset - barBandSize / 2\n })\n }));\n }\n return allBarPositions;\n};\nexport var selectAllBarPositions = createSelector([selectBarSizeList, selectRootMaxBarSize, selectBarGap, selectBarCategoryGap, selectBarBandSize, selectAxisBandSize, selectMaxBarSize], combineAllBarPositions);\nvar selectXAxisWithScale = (state, xAxisId, _yAxisId, isPanorama) => selectAxisWithScale(state, 'xAxis', xAxisId, isPanorama);\nvar selectYAxisWithScale = (state, _xAxisId, yAxisId, isPanorama) => selectAxisWithScale(state, 'yAxis', yAxisId, isPanorama);\nvar selectXAxisTicks = (state, xAxisId, _yAxisId, isPanorama) => selectTicksOfGraphicalItem(state, 'xAxis', xAxisId, isPanorama);\nvar selectYAxisTicks = (state, _xAxisId, yAxisId, isPanorama) => selectTicksOfGraphicalItem(state, 'yAxis', yAxisId, isPanorama);\nexport var selectBarPosition = createSelector([selectAllBarPositions, selectSynchronisedBarSettings], (allBarPositions, barSettings) => {\n if (allBarPositions == null || barSettings == null) {\n return undefined;\n }\n var position = allBarPositions.find(p => p.stackId === barSettings.stackId && barSettings.dataKey != null && p.dataKeys.includes(barSettings.dataKey));\n if (position == null) {\n return undefined;\n }\n return position.position;\n});\nexport var combineStackedData = (stackGroups, barSettings) => {\n var stackSeriesIdentifier = getStackSeriesIdentifier(barSettings);\n if (!stackGroups || stackSeriesIdentifier == null || barSettings == null) {\n return undefined;\n }\n var {\n stackId\n } = barSettings;\n if (stackId == null) {\n return undefined;\n }\n var stackGroup = stackGroups[stackId];\n if (!stackGroup) {\n return undefined;\n }\n var {\n stackedData\n } = stackGroup;\n if (!stackedData) {\n return undefined;\n }\n return stackedData.find(sd => sd.key === stackSeriesIdentifier);\n};\nvar selectStackedDataOfItem = createSelector([selectBarStackGroups, selectSynchronisedBarSettings], combineStackedData);\nexport var selectBarRectangles = createSelector([selectChartOffsetInternal, selectAxisViewBox, selectXAxisWithScale, selectYAxisWithScale, selectXAxisTicks, selectYAxisTicks, selectBarPosition, selectChartLayout, selectChartDataWithIndexesIfNotInPanorama, selectAxisBandSize, selectStackedDataOfItem, selectSynchronisedBarSettings, pickCells], (offset, axisViewBox, xAxis, yAxis, xAxisTicks, yAxisTicks, pos, layout, _ref3, bandSize, stackedData, barSettings, cells) => {\n var {\n chartData,\n dataStartIndex,\n dataEndIndex\n } = _ref3;\n if (barSettings == null || pos == null || axisViewBox == null || layout !== 'horizontal' && layout !== 'vertical' || xAxis == null || yAxis == null || xAxisTicks == null || yAxisTicks == null || bandSize == null) {\n return undefined;\n }\n var {\n data\n } = barSettings;\n var displayedData;\n if (data != null && data.length > 0) {\n displayedData = data;\n } else {\n displayedData = chartData === null || chartData === void 0 ? void 0 : chartData.slice(dataStartIndex, dataEndIndex + 1);\n }\n if (displayedData == null) {\n return undefined;\n }\n return computeBarRectangles({\n layout,\n barSettings,\n pos,\n parentViewBox: axisViewBox,\n bandSize,\n xAxis,\n yAxis,\n xAxisTicks,\n yAxisTicks,\n stackedData,\n displayedData,\n offset,\n cells\n });\n});","import { useEffect } from 'react';\nimport { setChartData, setComputedData } from '../state/chartDataSlice';\nimport { useAppDispatch, useAppSelector } from '../state/hooks';\nimport { useIsPanorama } from './PanoramaContext';\nexport var ChartDataContextProvider = props => {\n var {\n chartData\n } = props;\n var dispatch = useAppDispatch();\n var isPanorama = useIsPanorama();\n useEffect(() => {\n if (isPanorama) {\n // Panorama mode reuses data from the main chart, so we must not overwrite it here.\n return () => {\n // there is nothing to clean up\n };\n }\n dispatch(setChartData(chartData));\n return () => {\n dispatch(setChartData(undefined));\n };\n }, [chartData, dispatch, isPanorama]);\n return null;\n};\nexport var SetComputedData = props => {\n var {\n computedData\n } = props;\n var dispatch = useAppDispatch();\n useEffect(() => {\n dispatch(setComputedData(computedData));\n return () => {\n dispatch(setChartData(undefined));\n };\n }, [computedData, dispatch]);\n return null;\n};\nvar selectChartData = state => state.chartData.chartData;\n\n/**\n * \"data\" is the data of the chart - it has no type because this part of recharts is very flexible.\n * Basically it's an array of \"something\" and then there's the dataKey property in various places\n * that's meant to pull other things away from the data.\n *\n * Some charts have `data` defined on the chart root, and they will return the array through this hook.\n * For example: <ComposedChart data={data} />.\n *\n * Other charts, such as Pie, have data defined on individual graphical elements.\n * These charts will return `undefined` through this hook, and you need to read the data from children.\n * For example: <PieChart><Pie data={data} />\n *\n * Some charts also allow setting both - data on the parent, and data on the children at the same time!\n * However, this particular selector will only return the ones defined on the parent.\n *\n * @deprecated use one of the other selectors instead - which one, depends on how do you identify the applicable graphical items.\n *\n * @return data array for some charts and undefined for other\n */\nexport var useChartData = () => useAppSelector(selectChartData);\nvar selectDataIndex = state => {\n var {\n dataStartIndex,\n dataEndIndex\n } = state.chartData;\n return {\n startIndex: dataStartIndex,\n endIndex: dataEndIndex\n };\n};\n\n/**\n * startIndex and endIndex are data boundaries, set through Brush.\n *\n * @return object with startIndex and endIndex\n */\nexport var useDataIndex = () => {\n return useAppSelector(selectDataIndex);\n};","import { createSlice } from '@reduxjs/toolkit';\n\n/**\n * From all Brush properties, only height has a default value and will always be defined.\n * Other properties are nullable and will be computed from offsets and margins if they are not set.\n */\n\nvar initialState = {\n x: 0,\n y: 0,\n width: 0,\n height: 0,\n padding: {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n }\n};\nexport var brushSlice = createSlice({\n name: 'brush',\n initialState,\n reducers: {\n setBrushSettings(_state, action) {\n if (action.payload == null) {\n return initialState;\n }\n return action.payload;\n }\n }\n});\nexport var {\n setBrushSettings\n} = brushSlice.actions;\nexport var brushReducer = brushSlice.reducer;","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nexport var rectWithPoints = (_ref, _ref2) => {\n var {\n x: x1,\n y: y1\n } = _ref;\n var {\n x: x2,\n y: y2\n } = _ref2;\n return {\n x: Math.min(x1, x2),\n y: Math.min(y1, y2),\n width: Math.abs(x2 - x1),\n height: Math.abs(y2 - y1)\n };\n};\n\n/**\n * Compute the x, y, width, and height of a box from two reference points.\n * @param {Object} coords x1, x2, y1, and y2\n * @return {Object} object\n */\nexport var rectWithCoords = _ref3 => {\n var {\n x1,\n y1,\n x2,\n y2\n } = _ref3;\n return rectWithPoints({\n x: x1,\n y: y1\n }, {\n x: x2,\n y: y2\n });\n};\nexport class ScaleHelper {\n static create(obj) {\n return new ScaleHelper(obj);\n }\n constructor(scale) {\n this.scale = scale;\n }\n get domain() {\n return this.scale.domain;\n }\n get range() {\n return this.scale.range;\n }\n get rangeMin() {\n return this.range()[0];\n }\n get rangeMax() {\n return this.range()[1];\n }\n get bandwidth() {\n return this.scale.bandwidth;\n }\n apply(value) {\n var {\n bandAware,\n position\n } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (value === undefined) {\n return undefined;\n }\n if (position) {\n switch (position) {\n case 'start':\n {\n return this.scale(value);\n }\n case 'middle':\n {\n var offset = this.bandwidth ? this.bandwidth() / 2 : 0;\n return this.scale(value) + offset;\n }\n case 'end':\n {\n var _offset = this.bandwidth ? this.bandwidth() : 0;\n return this.scale(value) + _offset;\n }\n default:\n {\n return this.scale(value);\n }\n }\n }\n if (bandAware) {\n var _offset2 = this.bandwidth ? this.bandwidth() / 2 : 0;\n return this.scale(value) + _offset2;\n }\n return this.scale(value);\n }\n isInRange(value) {\n var range = this.range();\n var first = range[0];\n var last = range[range.length - 1];\n return first <= last ? value >= first && value <= last : value >= last && value <= first;\n }\n}\n_defineProperty(ScaleHelper, \"EPS\", 1e-4);\nexport var createLabeledScales = options => {\n var scales = Object.keys(options).reduce((res, key) => _objectSpread(_objectSpread({}, res), {}, {\n [key]: ScaleHelper.create(options[key])\n }), {});\n return _objectSpread(_objectSpread({}, scales), {}, {\n apply(coord) {\n var {\n bandAware,\n position\n } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return Object.fromEntries(Object.entries(coord).map(_ref4 => {\n var [label, value] = _ref4;\n return [label, scales[label].apply(value, {\n bandAware,\n position\n })];\n }));\n },\n isInRange(coord) {\n return Object.keys(coord).every(label => scales[label].isInRange(coord[label]));\n }\n });\n};\n\n/** Normalizes the angle so that 0 <= angle < 180.\n * @param {number} angle Angle in degrees.\n * @return {number} the normalized angle with a value of at least 0 and never greater or equal to 180. */\nexport function normalizeAngle(angle) {\n return (angle % 180 + 180) % 180;\n}\n\n/** Calculates the width of the largest horizontal line that fits inside a rectangle that is displayed at an angle.\n * @param {Object} size Width and height of the text in a horizontal position.\n * @param {number} angle Angle in degrees in which the text is displayed.\n * @return {number} The width of the largest horizontal line that fits inside a rectangle that is displayed at an angle.\n */\nexport var getAngledRectangleWidth = function getAngledRectangleWidth(_ref5) {\n var {\n width,\n height\n } = _ref5;\n var angle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Ensure angle is >= 0 && < 180\n var normalizedAngle = normalizeAngle(angle);\n var angleRadians = normalizedAngle * Math.PI / 180;\n\n /* Depending on the height and width of the rectangle, we may need to use different formulas to calculate the angled\n * width. This threshold defines when each formula should kick in. */\n var angleThreshold = Math.atan(height / width);\n var angledWidth = angleRadians > angleThreshold && angleRadians < Math.PI - angleThreshold ? height / Math.sin(angleRadians) : width / Math.cos(angleRadians);\n return Math.abs(angledWidth);\n};","import { createSlice, current } from '@reduxjs/toolkit';\nvar initialState = {\n dots: [],\n areas: [],\n lines: []\n};\nexport var referenceElementsSlice = createSlice({\n name: 'referenceElements',\n initialState,\n reducers: {\n addDot: (state, action) => {\n state.dots.push(action.payload);\n },\n removeDot: (state, action) => {\n var index = current(state).dots.findIndex(dot => dot === action.payload);\n if (index !== -1) {\n state.dots.splice(index, 1);\n }\n },\n addArea: (state, action) => {\n state.areas.push(action.payload);\n },\n removeArea: (state, action) => {\n var index = current(state).areas.findIndex(area => area === action.payload);\n if (index !== -1) {\n state.areas.splice(index, 1);\n }\n },\n addLine: (state, action) => {\n state.lines.push(action.payload);\n },\n removeLine: (state, action) => {\n var index = current(state).lines.findIndex(line => line === action.payload);\n if (index !== -1) {\n state.lines.splice(index, 1);\n }\n }\n }\n});\nexport var {\n addDot,\n removeDot,\n addArea,\n removeArea,\n addLine,\n removeLine\n} = referenceElementsSlice.actions;\nexport var referenceElementsReducer = referenceElementsSlice.reducer;","import * as React from 'react';\nimport { createContext, useContext, useState } from 'react';\nimport { uniqueId } from '../util/DataUtils';\nimport { usePlotArea } from '../hooks';\nvar ClipPathIdContext = /*#__PURE__*/createContext(undefined);\n\n/**\n * Generates a unique clip path ID for use in SVG elements,\n * and puts it in a context provider.\n *\n * To read the clip path ID, use the `useClipPathId` hook,\n * or render `<ClipPath>` component which will automatically use the ID from this context.\n *\n * @param props children - React children to be wrapped by the provider\n * @returns React Context Provider\n */\nexport var ClipPathProvider = _ref => {\n var {\n children\n } = _ref;\n var [clipPathId] = useState(\"\".concat(uniqueId('recharts'), \"-clip\"));\n var plotArea = usePlotArea();\n if (plotArea == null) {\n return null;\n }\n var {\n x,\n y,\n width,\n height\n } = plotArea;\n return /*#__PURE__*/React.createElement(ClipPathIdContext.Provider, {\n value: clipPathId\n }, /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: clipPathId\n }, /*#__PURE__*/React.createElement(\"rect\", {\n x: x,\n y: y,\n height: height,\n width: width\n }))), children);\n};\nexport var useClipPathId = () => {\n return useContext(ClipPathIdContext);\n};","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from 'react';\nimport { Component, useEffect } from 'react';\nimport { clsx } from 'clsx';\nimport { Layer } from '../container/Layer';\nimport { Dot } from '../shape/Dot';\nimport { CartesianLabelContextProvider, CartesianLabelFromLabelProp } from '../component/Label';\nimport { isNumOrStr } from '../util/DataUtils';\nimport { createLabeledScales } from '../util/CartesianUtils';\nimport { filterProps } from '../util/ReactUtils';\nimport { addDot, removeDot } from '../state/referenceElementsSlice';\nimport { useAppDispatch, useAppSelector } from '../state/hooks';\nimport { selectAxisScale } from '../state/selectors/axisSelectors';\nimport { useIsPanorama } from '../context/PanoramaContext';\nimport { useClipPathId } from '../container/ClipPathProvider';\nvar useCoordinate = (x, y, xAxisId, yAxisId, ifOverflow) => {\n var isX = isNumOrStr(x);\n var isY = isNumOrStr(y);\n var isPanorama = useIsPanorama();\n var xAxisScale = useAppSelector(state => selectAxisScale(state, 'xAxis', xAxisId, isPanorama));\n var yAxisScale = useAppSelector(state => selectAxisScale(state, 'yAxis', yAxisId, isPanorama));\n if (!isX || !isY || xAxisScale == null || yAxisScale == null) {\n return null;\n }\n var scales = createLabeledScales({\n x: xAxisScale,\n y: yAxisScale\n });\n var result = scales.apply({\n x,\n y\n }, {\n bandAware: true\n });\n if (ifOverflow === 'discard' && !scales.isInRange(result)) {\n return null;\n }\n return result;\n};\nfunction ReportReferenceDot(props) {\n var dispatch = useAppDispatch();\n useEffect(() => {\n dispatch(addDot(props));\n return () => {\n dispatch(removeDot(props));\n };\n });\n return null;\n}\nvar renderDot = (option, props) => {\n var dot;\n if (/*#__PURE__*/React.isValidElement(option)) {\n dot = /*#__PURE__*/React.cloneElement(option, props);\n } else if (typeof option === 'function') {\n dot = option(props);\n } else {\n dot = /*#__PURE__*/React.createElement(Dot, _extends({}, props, {\n cx: props.cx,\n cy: props.cy,\n className: \"recharts-reference-dot-dot\"\n }));\n }\n return dot;\n};\nfunction ReferenceDotImpl(props) {\n var {\n x,\n y,\n r\n } = props;\n var clipPathId = useClipPathId();\n var coordinate = useCoordinate(x, y, props.xAxisId, props.yAxisId, props.ifOverflow);\n if (!coordinate) {\n return null;\n }\n var {\n x: cx,\n y: cy\n } = coordinate;\n var {\n shape,\n className,\n ifOverflow\n } = props;\n var clipPath = ifOverflow === 'hidden' ? \"url(#\".concat(clipPathId, \")\") : undefined;\n var dotProps = _objectSpread(_objectSpread({\n clipPath\n }, filterProps(props, true)), {}, {\n cx,\n cy\n });\n return /*#__PURE__*/React.createElement(Layer, {\n className: clsx('recharts-reference-dot', className)\n }, renderDot(shape, dotProps), /*#__PURE__*/React.createElement(CartesianLabelContextProvider, {\n x: cx - r,\n y: cy - r,\n width: 2 * r,\n height: 2 * r\n }, /*#__PURE__*/React.createElement(CartesianLabelFromLabelProp, {\n label: props.label\n }), props.children));\n}\nfunction ReferenceDotSettingsDispatcher(props) {\n var {\n x,\n y,\n r,\n ifOverflow,\n yAxisId,\n xAxisId\n } = props;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ReportReferenceDot, {\n y: y,\n x: x,\n r: r,\n yAxisId: yAxisId,\n xAxisId: xAxisId,\n ifOverflow: ifOverflow\n }), /*#__PURE__*/React.createElement(ReferenceDotImpl, props));\n}\n\n// eslint-disable-next-line react/prefer-stateless-function\nexport class ReferenceDot extends Component {\n render() {\n return /*#__PURE__*/React.createElement(ReferenceDotSettingsDispatcher, this.props);\n }\n}\n_defineProperty(ReferenceDot, \"displayName\", 'ReferenceDot');\n_defineProperty(ReferenceDot, \"defaultProps\", {\n ifOverflow: 'discard',\n xAxisId: 0,\n yAxisId: 0,\n r: 10,\n fill: '#fff',\n stroke: '#ccc',\n fillOpacity: 1,\n strokeWidth: 1\n});","export function shallowEqual(a, b) {\n /* eslint-disable no-restricted-syntax */\n for (var key in a) {\n if ({}.hasOwnProperty.call(a, key) && (!{}.hasOwnProperty.call(b, key) || a[key] !== b[key])) {\n return false;\n }\n }\n for (var _key in b) {\n if ({}.hasOwnProperty.call(b, _key) && !{}.hasOwnProperty.call(a, _key)) {\n return false;\n }\n }\n return true;\n}","/**\n * Given an array and a number N, return a new array which contains every nTh\n * element of the input array. For n below 1, an empty array is returned.\n * If isValid is provided, all candidates must suffice the condition, else undefined is returned.\n * @param {T[]} array An input array.\n * @param {integer} n A number\n * @param {Function} isValid A function to evaluate a candidate form the array\n * @returns {T[]} The result array of the same type as the input array.\n */\nexport function getEveryNthWithCondition(array, n, isValid) {\n if (n < 1) {\n return [];\n }\n if (n === 1 && isValid === undefined) {\n return array;\n }\n var result = [];\n for (var i = 0; i < array.length; i += n) {\n if (isValid === undefined || isValid(array[i]) === true) {\n result.push(array[i]);\n } else {\n return undefined;\n }\n }\n return result;\n}","import { getAngledRectangleWidth } from './CartesianUtils';\nimport { getEveryNthWithCondition } from './getEveryNthWithCondition';\nexport function getAngledTickWidth(contentSize, unitSize, angle) {\n var size = {\n width: contentSize.width + unitSize.width,\n height: contentSize.height + unitSize.height\n };\n return getAngledRectangleWidth(size, angle);\n}\nexport function getTickBoundaries(viewBox, sign, sizeKey) {\n var isWidth = sizeKey === 'width';\n var {\n x,\n y,\n width,\n height\n } = viewBox;\n if (sign === 1) {\n return {\n start: isWidth ? x : y,\n end: isWidth ? x + width : y + height\n };\n }\n return {\n start: isWidth ? x + width : y + height,\n end: isWidth ? x : y\n };\n}\nexport function isVisible(sign, tickPosition, getSize, start, end) {\n /* Since getSize() is expensive (it reads the ticks' size from the DOM), we do this check first to avoid calculating\n * the tick's size. */\n if (sign * tickPosition < sign * start || sign * tickPosition > sign * end) {\n return false;\n }\n var size = getSize();\n return sign * (tickPosition - sign * size / 2 - start) >= 0 && sign * (tickPosition + sign * size / 2 - end) <= 0;\n}\nexport function getNumberIntervalTicks(ticks, interval) {\n return getEveryNthWithCondition(ticks, interval + 1);\n}","import { isVisible } from '../util/TickUtils';\nimport { getEveryNthWithCondition } from '../util/getEveryNthWithCondition';\nexport function getEquidistantTicks(sign, boundaries, getTickSize, ticks, minTickGap) {\n // If the ticks are readonly, then the slice might not be necessary\n var result = (ticks || []).slice();\n var {\n start: initialStart,\n end\n } = boundaries;\n var index = 0;\n // Premature optimisation idea 1: Estimate a lower bound, and start from there.\n // For now, start from every tick\n var stepsize = 1;\n var start = initialStart;\n var _loop = function _loop() {\n // Given stepsize, evaluate whether every stepsize-th tick can be shown.\n // If it can not, then increase the stepsize by 1, and try again.\n\n var entry = ticks === null || ticks === void 0 ? void 0 : ticks[index];\n\n // Break condition - If we have evaluated all the ticks, then we are done.\n if (entry === undefined) {\n return {\n v: getEveryNthWithCondition(ticks, stepsize)\n };\n }\n\n // Check if the element collides with the next element\n var i = index;\n var size;\n var getSize = () => {\n if (size === undefined) {\n size = getTickSize(entry, i);\n }\n return size;\n };\n var tickCoord = entry.coordinate;\n // We will always show the first tick.\n var isShow = index === 0 || isVisible(sign, tickCoord, getSize, start, end);\n if (!isShow) {\n // Start all over with a larger stepsize\n index = 0;\n start = initialStart;\n stepsize += 1;\n }\n if (isShow) {\n // If it can be shown, update the start\n start = tickCoord + sign * (getSize() / 2 + minTickGap);\n index += stepsize;\n }\n },\n _ret;\n while (stepsize <= result.length) {\n _ret = _loop();\n if (_ret) return _ret.v;\n }\n return [];\n}","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport { mathSign, isNumber } from '../util/DataUtils';\nimport { getStringSize } from '../util/DOMUtils';\nimport { Global } from '../util/Global';\nimport { isVisible, getTickBoundaries, getNumberIntervalTicks, getAngledTickWidth } from '../util/TickUtils';\nimport { getEquidistantTicks } from './getEquidistantTicks';\nfunction getTicksEnd(sign, boundaries, getTickSize, ticks, minTickGap) {\n var result = (ticks || []).slice();\n var len = result.length;\n var {\n start\n } = boundaries;\n var {\n end\n } = boundaries;\n var _loop = function _loop(i) {\n var entry = result[i];\n var size;\n var getSize = () => {\n if (size === undefined) {\n size = getTickSize(entry, i);\n }\n return size;\n };\n if (i === len - 1) {\n var gap = sign * (entry.coordinate + sign * getSize() / 2 - end);\n result[i] = entry = _objectSpread(_objectSpread({}, entry), {}, {\n tickCoord: gap > 0 ? entry.coordinate - gap * sign : entry.coordinate\n });\n } else {\n result[i] = entry = _objectSpread(_objectSpread({}, entry), {}, {\n tickCoord: entry.coordinate\n });\n }\n var isShow = isVisible(sign, entry.tickCoord, getSize, start, end);\n if (isShow) {\n end = entry.tickCoord - sign * (getSize() / 2 + minTickGap);\n result[i] = _objectSpread(_objectSpread({}, entry), {}, {\n isShow: true\n });\n }\n };\n for (var i = len - 1; i >= 0; i--) {\n _loop(i);\n }\n return result;\n}\nfunction getTicksStart(sign, boundaries, getTickSize, ticks, minTickGap, preserveEnd) {\n // This method is mutating the array so clone is indeed necessary here\n var result = (ticks || []).slice();\n var len = result.length;\n var {\n start,\n end\n } = boundaries;\n if (preserveEnd) {\n // Try to guarantee the tail to be displayed\n var tail = ticks[len - 1];\n var tailSize = getTickSize(tail, len - 1);\n var tailGap = sign * (tail.coordinate + sign * tailSize / 2 - end);\n result[len - 1] = tail = _objectSpread(_objectSpread({}, tail), {}, {\n tickCoord: tailGap > 0 ? tail.coordinate - tailGap * sign : tail.coordinate\n });\n var isTailShow = isVisible(sign, tail.tickCoord, () => tailSize, start, end);\n if (isTailShow) {\n end = tail.tickCoord - sign * (tailSize / 2 + minTickGap);\n result[len - 1] = _objectSpread(_objectSpread({}, tail), {}, {\n isShow: true\n });\n }\n }\n var count = preserveEnd ? len - 1 : len;\n var _loop2 = function _loop2(i) {\n var entry = result[i];\n var size;\n var getSize = () => {\n if (size === undefined) {\n size = getTickSize(entry, i);\n }\n return size;\n };\n if (i === 0) {\n var gap = sign * (entry.coordinate - sign * getSize() / 2 - start);\n result[i] = entry = _objectSpread(_objectSpread({}, entry), {}, {\n tickCoord: gap < 0 ? entry.coordinate - gap * sign : entry.coordinate\n });\n } else {\n result[i] = entry = _objectSpread(_objectSpread({}, entry), {}, {\n tickCoord: entry.coordinate\n });\n }\n var isShow = isVisible(sign, entry.tickCoord, getSize, start, end);\n if (isShow) {\n start = entry.tickCoord + sign * (getSize() / 2 + minTickGap);\n result[i] = _objectSpread(_objectSpread({}, entry), {}, {\n isShow: true\n });\n }\n };\n for (var i = 0; i < count; i++) {\n _loop2(i);\n }\n return result;\n}\nexport function getTicks(props, fontSize, letterSpacing) {\n var {\n tick,\n ticks,\n viewBox,\n minTickGap,\n orientation,\n interval,\n tickFormatter,\n unit,\n angle\n } = props;\n if (!ticks || !ticks.length || !tick) {\n return [];\n }\n if (isNumber(interval) || Global.isSsr) {\n var _getNumberIntervalTic;\n return (_getNumberIntervalTic = getNumberIntervalTicks(ticks, isNumber(interval) ? interval : 0)) !== null && _getNumberIntervalTic !== void 0 ? _getNumberIntervalTic : [];\n }\n var candidates = [];\n var sizeKey = orientation === 'top' || orientation === 'bottom' ? 'width' : 'height';\n var unitSize = unit && sizeKey === 'width' ? getStringSize(unit, {\n fontSize,\n letterSpacing\n }) : {\n width: 0,\n height: 0\n };\n var getTickSize = (content, index) => {\n var value = typeof tickFormatter === 'function' ? tickFormatter(content.value, index) : content.value;\n // Recharts only supports angles when sizeKey === 'width'\n return sizeKey === 'width' ? getAngledTickWidth(getStringSize(value, {\n fontSize,\n letterSpacing\n }), unitSize, angle) : getStringSize(value, {\n fontSize,\n letterSpacing\n })[sizeKey];\n };\n var sign = ticks.length >= 2 ? mathSign(ticks[1].coordinate - ticks[0].coordinate) : 1;\n var boundaries = getTickBoundaries(viewBox, sign, sizeKey);\n if (interval === 'equidistantPreserveStart') {\n return getEquidistantTicks(sign, boundaries, getTickSize, ticks, minTickGap);\n }\n if (interval === 'preserveStart' || interval === 'preserveStartEnd') {\n candidates = getTicksStart(sign, boundaries, getTickSize, ticks, minTickGap, interval === 'preserveStartEnd');\n } else {\n candidates = getTicksEnd(sign, boundaries, getTickSize, ticks, minTickGap);\n }\n return candidates.filter(entry => entry.isShow);\n}","/**\n * Calculates the width of the Y-axis based on the tick labels and the axis label.\n * @param {Object} params - The parameters object.\n * @param {React.RefObject<any>} params.cartesianAxisRef - The ref to the CartesianAxis component.\n * @param {React.RefObject<Element>} params.labelRef - The ref to the label element.\n * @param {number} [params.labelGapWithTick=5] - The gap between the label and the tick.\n * @returns {number} The calculated width of the Y-axis.\n */\nexport var getCalculatedYAxisWidth = _ref => {\n var {\n ticks,\n label,\n labelGapWithTick = 5,\n // Default gap between label and tick\n tickSize = 0,\n tickMargin = 0\n } = _ref;\n // find the max width of the tick labels\n var maxTickWidth = 0;\n if (ticks) {\n ticks.forEach(tickNode => {\n if (tickNode) {\n var bbox = tickNode.getBoundingClientRect();\n if (bbox.width > maxTickWidth) {\n maxTickWidth = bbox.width;\n }\n }\n });\n\n // calculate width of the axis label\n var labelWidth = label ? label.getBoundingClientRect().width : 0;\n var tickWidth = tickSize + tickMargin;\n\n // calculate the updated width of the y-axis\n var updatedYAxisWidth = maxTickWidth + tickWidth + labelWidth + (label ? labelGapWithTick : 0);\n return Math.round(updatedYAxisWidth);\n }\n return 0;\n};","var _excluded = [\"axisLine\", \"width\", \"height\", \"className\", \"hide\", \"ticks\"],\n _excluded2 = [\"viewBox\"],\n _excluded3 = [\"viewBox\"];\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * @fileOverview Cartesian Axis\n */\nimport * as React from 'react';\nimport { useState, useRef, useCallback, forwardRef, useImperativeHandle } from 'react';\nimport get from 'es-toolkit/compat/get';\nimport { clsx } from 'clsx';\nimport { shallowEqual } from '../util/ShallowEqual';\nimport { Layer } from '../container/Layer';\nimport { Text } from '../component/Text';\nimport { CartesianLabelContextProvider, CartesianLabelFromLabelProp } from '../component/Label';\nimport { isNumber } from '../util/DataUtils';\nimport { adaptEventsOfChild } from '../util/types';\nimport { filterProps } from '../util/ReactUtils';\nimport { getTicks } from './getTicks';\nimport { svgPropertiesNoEvents } from '../util/svgPropertiesNoEvents';\nimport { getCalculatedYAxisWidth } from '../util/YAxisUtils';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\n\n/** The orientation of the axis in correspondence to the chart */\n\n/** A unit to be appended to a value */\n\n/** The formatter function of tick */\n\nexport var defaultCartesianAxisProps = {\n x: 0,\n y: 0,\n width: 0,\n height: 0,\n viewBox: {\n x: 0,\n y: 0,\n width: 0,\n height: 0\n },\n // The orientation of axis\n orientation: 'bottom',\n // The ticks\n ticks: [],\n stroke: '#666',\n tickLine: true,\n axisLine: true,\n tick: true,\n mirror: false,\n minTickGap: 5,\n // The width or height of tick\n tickSize: 6,\n tickMargin: 2,\n interval: 'preserveEnd'\n};\n\n/*\n * `viewBox` and `scale` are SVG attributes.\n * Recharts however - unfortunately - has its own attributes named `viewBox` and `scale`\n * that are completely different data shape and different purpose.\n */\n\nfunction AxisLine(axisLineProps) {\n var {\n x,\n y,\n width,\n height,\n orientation,\n mirror,\n axisLine,\n otherSvgProps\n } = axisLineProps;\n if (!axisLine) {\n return null;\n }\n var props = _objectSpread(_objectSpread(_objectSpread({}, otherSvgProps), filterProps(axisLine, false)), {}, {\n fill: 'none'\n });\n if (orientation === 'top' || orientation === 'bottom') {\n var needHeight = +(orientation === 'top' && !mirror || orientation === 'bottom' && mirror);\n props = _objectSpread(_objectSpread({}, props), {}, {\n x1: x,\n y1: y + needHeight * height,\n x2: x + width,\n y2: y + needHeight * height\n });\n } else {\n var needWidth = +(orientation === 'left' && !mirror || orientation === 'right' && mirror);\n props = _objectSpread(_objectSpread({}, props), {}, {\n x1: x + needWidth * width,\n y1: y,\n x2: x + needWidth * width,\n y2: y + height\n });\n }\n return /*#__PURE__*/React.createElement(\"line\", _extends({}, props, {\n className: clsx('recharts-cartesian-axis-line', get(axisLine, 'className'))\n }));\n}\n\n/**\n * Calculate the coordinates of endpoints in ticks.\n * @param data The data of a simple tick.\n * @param x The x-coordinate of the axis.\n * @param y The y-coordinate of the axis.\n * @param width The width of the axis.\n * @param height The height of the axis.\n * @param orientation The orientation of the axis.\n * @param tickSize The length of the tick line.\n * @param mirror If true, the ticks are mirrored.\n * @param tickMargin The margin between the tick line and the tick text.\n * @returns An object with `line` and `tick` coordinates.\n * `line` is the coordinates for the tick line, and `tick` is the coordinate for the tick text.\n */\nfunction getTickLineCoord(data, x, y, width, height, orientation, tickSize, mirror, tickMargin) {\n var x1, x2, y1, y2, tx, ty;\n var sign = mirror ? -1 : 1;\n var finalTickSize = data.tickSize || tickSize;\n var tickCoord = isNumber(data.tickCoord) ? data.tickCoord : data.coordinate;\n switch (orientation) {\n case 'top':\n x1 = x2 = data.coordinate;\n y2 = y + +!mirror * height;\n y1 = y2 - sign * finalTickSize;\n ty = y1 - sign * tickMargin;\n tx = tickCoord;\n break;\n case 'left':\n y1 = y2 = data.coordinate;\n x2 = x + +!mirror * width;\n x1 = x2 - sign * finalTickSize;\n tx = x1 - sign * tickMargin;\n ty = tickCoord;\n break;\n case 'right':\n y1 = y2 = data.coordinate;\n x2 = x + +mirror * width;\n x1 = x2 + sign * finalTickSize;\n tx = x1 + sign * tickMargin;\n ty = tickCoord;\n break;\n default:\n x1 = x2 = data.coordinate;\n y2 = y + +mirror * height;\n y1 = y2 + sign * finalTickSize;\n ty = y1 + sign * tickMargin;\n tx = tickCoord;\n break;\n }\n return {\n line: {\n x1,\n y1,\n x2,\n y2\n },\n tick: {\n x: tx,\n y: ty\n }\n };\n}\n\n/**\n * @param orientation The orientation of the axis.\n * @param mirror If true, the ticks are mirrored.\n * @returns The text anchor of the tick.\n */\nfunction getTickTextAnchor(orientation, mirror) {\n switch (orientation) {\n case 'left':\n return mirror ? 'start' : 'end';\n case 'right':\n return mirror ? 'end' : 'start';\n default:\n return 'middle';\n }\n}\n\n/**\n * @param orientation The orientation of the axis.\n * @param mirror If true, the ticks are mirrored.\n * @returns The vertical text anchor of the tick.\n */\nfunction getTickVerticalAnchor(orientation, mirror) {\n switch (orientation) {\n case 'left':\n case 'right':\n return 'middle';\n case 'top':\n return mirror ? 'start' : 'end';\n default:\n return mirror ? 'end' : 'start';\n }\n}\nfunction TickItem(props) {\n var {\n option,\n tickProps,\n value\n } = props;\n var tickItem;\n var combinedClassName = clsx(tickProps.className, 'recharts-cartesian-axis-tick-value');\n if (/*#__PURE__*/React.isValidElement(option)) {\n // @ts-expect-error element cloning is not typed\n tickItem = /*#__PURE__*/React.cloneElement(option, _objectSpread(_objectSpread({}, tickProps), {}, {\n className: combinedClassName\n }));\n } else if (typeof option === 'function') {\n tickItem = option(_objectSpread(_objectSpread({}, tickProps), {}, {\n className: combinedClassName\n }));\n } else {\n var className = 'recharts-cartesian-axis-tick-value';\n if (typeof option !== 'boolean') {\n className = clsx(className, option === null || option === void 0 ? void 0 : option.className);\n }\n tickItem = /*#__PURE__*/React.createElement(Text, _extends({}, tickProps, {\n className: className\n }), value);\n }\n return tickItem;\n}\nfunction Ticks(props) {\n var {\n ticks = [],\n tick,\n tickLine,\n stroke,\n tickFormatter,\n unit,\n padding,\n tickTextProps,\n orientation,\n mirror,\n x,\n y,\n width,\n height,\n tickSize,\n tickMargin,\n fontSize,\n letterSpacing,\n getTicksConfig,\n events\n } = props;\n // @ts-expect-error some properties are optional in props but required in getTicks\n var finalTicks = getTicks(_objectSpread(_objectSpread({}, getTicksConfig), {}, {\n ticks\n }), fontSize, letterSpacing);\n var textAnchor = getTickTextAnchor(orientation, mirror);\n var verticalAnchor = getTickVerticalAnchor(orientation, mirror);\n var axisProps = svgPropertiesNoEvents(getTicksConfig);\n var customTickProps = filterProps(tick, false);\n var tickLineProps = _objectSpread(_objectSpread({}, axisProps), {}, {\n fill: 'none'\n }, filterProps(tickLine, false));\n var items = finalTicks.map((entry, i) => {\n var {\n line: lineCoord,\n tick: tickCoord\n } = getTickLineCoord(entry, x, y, width, height, orientation, tickSize, mirror, tickMargin);\n var tickProps = _objectSpread(_objectSpread(_objectSpread(_objectSpread({\n // @ts-expect-error textAnchor from axisProps is typed as `string` but Text wants type `TextAnchor`\n textAnchor,\n verticalAnchor\n }, axisProps), {}, {\n stroke: 'none',\n fill: stroke\n }, customTickProps), tickCoord), {}, {\n index: i,\n payload: entry,\n visibleTicksCount: finalTicks.length,\n tickFormatter,\n padding\n }, tickTextProps);\n return /*#__PURE__*/React.createElement(Layer, _extends({\n className: \"recharts-cartesian-axis-tick\",\n key: \"tick-\".concat(entry.value, \"-\").concat(entry.coordinate, \"-\").concat(entry.tickCoord)\n }, adaptEventsOfChild(events, entry, i)), tickLine &&\n /*#__PURE__*/\n // @ts-expect-error recharts scale is not compatible with SVG scale\n React.createElement(\"line\", _extends({}, tickLineProps, lineCoord, {\n className: clsx('recharts-cartesian-axis-tick-line', get(tickLine, 'className'))\n })), tick && /*#__PURE__*/React.createElement(TickItem, {\n option: tick,\n tickProps: tickProps,\n value: \"\".concat(typeof tickFormatter === 'function' ? tickFormatter(entry.value, i) : entry.value).concat(unit || '')\n }));\n });\n if (items.length > 0) {\n return /*#__PURE__*/React.createElement(\"g\", {\n className: \"recharts-cartesian-axis-ticks\"\n }, items);\n }\n return null;\n}\nvar CartesianAxisComponent = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n axisLine,\n width,\n height,\n className,\n hide,\n ticks\n } = props,\n rest = _objectWithoutProperties(props, _excluded);\n var [fontSize, setFontSize] = useState('');\n var [letterSpacing, setLetterSpacing] = useState('');\n var tickRefs = useRef([]);\n useImperativeHandle(ref, () => ({\n getCalculatedWidth: () => {\n var _props$labelRef;\n return getCalculatedYAxisWidth({\n ticks: tickRefs.current,\n label: (_props$labelRef = props.labelRef) === null || _props$labelRef === void 0 ? void 0 : _props$labelRef.current,\n labelGapWithTick: 5,\n tickSize: props.tickSize,\n tickMargin: props.tickMargin\n });\n }\n }));\n var layerRef = useCallback(el => {\n if (el) {\n var tickNodes = el.getElementsByClassName('recharts-cartesian-axis-tick-value');\n tickRefs.current = Array.from(tickNodes);\n var tick = tickNodes[0];\n if (tick) {\n var computedStyle = window.getComputedStyle(tick);\n var calculatedFontSize = computedStyle.fontSize;\n var calculatedLetterSpacing = computedStyle.letterSpacing;\n if (calculatedFontSize !== fontSize || calculatedLetterSpacing !== letterSpacing) {\n setFontSize(calculatedFontSize);\n setLetterSpacing(calculatedLetterSpacing);\n }\n }\n }\n }, [fontSize, letterSpacing]);\n if (hide) {\n return null;\n }\n\n /*\n * This is different condition from what validateWidthHeight is doing;\n * the CartesianAxis does allow width or height to be undefined.\n */\n if (width != null && width <= 0 || height != null && height <= 0) {\n return null;\n }\n return /*#__PURE__*/React.createElement(Layer, {\n className: clsx('recharts-cartesian-axis', className),\n ref: layerRef\n }, /*#__PURE__*/React.createElement(AxisLine, {\n x: props.x,\n y: props.y,\n width: width,\n height: height,\n orientation: props.orientation,\n mirror: props.mirror,\n axisLine: axisLine,\n otherSvgProps: svgPropertiesNoEvents(props)\n }), /*#__PURE__*/React.createElement(Ticks, {\n ticks: ticks,\n tick: props.tick,\n tickLine: props.tickLine,\n stroke: props.stroke,\n tickFormatter: props.tickFormatter,\n unit: props.unit,\n padding: props.padding,\n tickTextProps: props.tickTextProps,\n orientation: props.orientation,\n mirror: props.mirror,\n x: props.x,\n y: props.y,\n width: props.width,\n height: props.height,\n tickSize: props.tickSize,\n tickMargin: props.tickMargin,\n fontSize: fontSize,\n letterSpacing: letterSpacing,\n getTicksConfig: props,\n events: rest\n }), /*#__PURE__*/React.createElement(CartesianLabelContextProvider, {\n x: props.x,\n y: props.y,\n width: props.width,\n height: props.height\n }, /*#__PURE__*/React.createElement(CartesianLabelFromLabelProp, {\n label: props.label\n }), props.children));\n});\nvar MemoCartesianAxis = /*#__PURE__*/React.memo(CartesianAxisComponent, (prevProps, nextProps) => {\n var {\n viewBox: prevViewBox\n } = prevProps,\n prevRestProps = _objectWithoutProperties(prevProps, _excluded2);\n var {\n viewBox: nextViewBox\n } = nextProps,\n nextRestProps = _objectWithoutProperties(nextProps, _excluded3);\n return shallowEqual(prevViewBox, nextViewBox) && shallowEqual(prevRestProps, nextRestProps);\n});\nexport var CartesianAxis = /*#__PURE__*/React.forwardRef((outsideProps, ref) => {\n var props = resolveDefaultProps(outsideProps, defaultCartesianAxisProps);\n return /*#__PURE__*/React.createElement(MemoCartesianAxis, _extends({}, props, {\n ref: ref\n }));\n});\nCartesianAxis.displayName = 'CartesianAxis';","var _excluded = [\"x1\", \"y1\", \"x2\", \"y2\", \"key\"],\n _excluded2 = [\"offset\"],\n _excluded3 = [\"xAxisId\", \"yAxisId\"],\n _excluded4 = [\"xAxisId\", \"yAxisId\"];\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\n/**\n * @fileOverview Cartesian Grid\n */\nimport * as React from 'react';\nimport { warn } from '../util/LogUtils';\nimport { isNumber } from '../util/DataUtils';\nimport { getCoordinatesOfGrid, getTicksOfAxis } from '../util/ChartUtils';\nimport { getTicks } from './getTicks';\nimport { defaultCartesianAxisProps } from './CartesianAxis';\nimport { useChartHeight, useChartWidth, useOffsetInternal } from '../context/chartLayoutContext';\nimport { selectAxisPropsNeededForCartesianGridTicksGenerator } from '../state/selectors/axisSelectors';\nimport { useAppSelector } from '../state/hooks';\nimport { useIsPanorama } from '../context/PanoramaContext';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nimport { svgPropertiesNoEvents } from '../util/svgPropertiesNoEvents';\n\n/**\n * The <CartesianGrid horizontal\n */\n\nvar Background = props => {\n var {\n fill\n } = props;\n if (!fill || fill === 'none') {\n return null;\n }\n var {\n fillOpacity,\n x,\n y,\n width,\n height,\n ry\n } = props;\n return /*#__PURE__*/React.createElement(\"rect\", {\n x: x,\n y: y,\n ry: ry,\n width: width,\n height: height,\n stroke: \"none\",\n fill: fill,\n fillOpacity: fillOpacity,\n className: \"recharts-cartesian-grid-bg\"\n });\n};\nfunction renderLineItem(option, props) {\n var lineItem;\n if (/*#__PURE__*/React.isValidElement(option)) {\n // @ts-expect-error typescript does not see the props type when cloning an element\n lineItem = /*#__PURE__*/React.cloneElement(option, props);\n } else if (typeof option === 'function') {\n lineItem = option(props);\n } else {\n var {\n x1,\n y1,\n x2,\n y2,\n key\n } = props,\n others = _objectWithoutProperties(props, _excluded);\n var _svgPropertiesNoEvent = svgPropertiesNoEvents(others),\n {\n offset: __\n } = _svgPropertiesNoEvent,\n restOfFilteredProps = _objectWithoutProperties(_svgPropertiesNoEvent, _excluded2);\n lineItem = /*#__PURE__*/React.createElement(\"line\", _extends({}, restOfFilteredProps, {\n x1: x1,\n y1: y1,\n x2: x2,\n y2: y2,\n fill: \"none\",\n key: key\n }));\n }\n return lineItem;\n}\nfunction HorizontalGridLines(props) {\n var {\n x,\n width,\n horizontal = true,\n horizontalPoints\n } = props;\n if (!horizontal || !horizontalPoints || !horizontalPoints.length) {\n return null;\n }\n var {\n xAxisId,\n yAxisId\n } = props,\n otherLineItemProps = _objectWithoutProperties(props, _excluded3);\n var items = horizontalPoints.map((entry, i) => {\n var lineItemProps = _objectSpread(_objectSpread({}, otherLineItemProps), {}, {\n x1: x,\n y1: entry,\n x2: x + width,\n y2: entry,\n key: \"line-\".concat(i),\n index: i\n });\n return renderLineItem(horizontal, lineItemProps);\n });\n return /*#__PURE__*/React.createElement(\"g\", {\n className: \"recharts-cartesian-grid-horizontal\"\n }, items);\n}\nfunction VerticalGridLines(props) {\n var {\n y,\n height,\n vertical = true,\n verticalPoints\n } = props;\n if (!vertical || !verticalPoints || !verticalPoints.length) {\n return null;\n }\n var {\n xAxisId,\n yAxisId\n } = props,\n otherLineItemProps = _objectWithoutProperties(props, _excluded4);\n var items = verticalPoints.map((entry, i) => {\n var lineItemProps = _objectSpread(_objectSpread({}, otherLineItemProps), {}, {\n x1: entry,\n y1: y,\n x2: entry,\n y2: y + height,\n key: \"line-\".concat(i),\n index: i\n });\n return renderLineItem(vertical, lineItemProps);\n });\n return /*#__PURE__*/React.createElement(\"g\", {\n className: \"recharts-cartesian-grid-vertical\"\n }, items);\n}\nfunction HorizontalStripes(props) {\n var {\n horizontalFill,\n fillOpacity,\n x,\n y,\n width,\n height,\n horizontalPoints,\n horizontal = true\n } = props;\n if (!horizontal || !horizontalFill || !horizontalFill.length) {\n return null;\n }\n\n // Why =y -y? I was trying to find any difference that this makes, with floating point numbers and edge cases but ... nothing.\n var roundedSortedHorizontalPoints = horizontalPoints.map(e => Math.round(e + y - y)).sort((a, b) => a - b);\n // Why is this condition `!==` instead of `<=` ?\n if (y !== roundedSortedHorizontalPoints[0]) {\n roundedSortedHorizontalPoints.unshift(0);\n }\n var items = roundedSortedHorizontalPoints.map((entry, i) => {\n // Why do we strip only the last stripe if it is invisible, and not all invisible stripes?\n var lastStripe = !roundedSortedHorizontalPoints[i + 1];\n var lineHeight = lastStripe ? y + height - entry : roundedSortedHorizontalPoints[i + 1] - entry;\n if (lineHeight <= 0) {\n return null;\n }\n var colorIndex = i % horizontalFill.length;\n return /*#__PURE__*/React.createElement(\"rect\", {\n key: \"react-\".concat(i) // eslint-disable-line react/no-array-index-key\n ,\n y: entry,\n x: x,\n height: lineHeight,\n width: width,\n stroke: \"none\",\n fill: horizontalFill[colorIndex],\n fillOpacity: fillOpacity,\n className: \"recharts-cartesian-grid-bg\"\n });\n });\n return /*#__PURE__*/React.createElement(\"g\", {\n className: \"recharts-cartesian-gridstripes-horizontal\"\n }, items);\n}\nfunction VerticalStripes(props) {\n var {\n vertical = true,\n verticalFill,\n fillOpacity,\n x,\n y,\n width,\n height,\n verticalPoints\n } = props;\n if (!vertical || !verticalFill || !verticalFill.length) {\n return null;\n }\n var roundedSortedVerticalPoints = verticalPoints.map(e => Math.round(e + x - x)).sort((a, b) => a - b);\n if (x !== roundedSortedVerticalPoints[0]) {\n roundedSortedVerticalPoints.unshift(0);\n }\n var items = roundedSortedVerticalPoints.map((entry, i) => {\n var lastStripe = !roundedSortedVerticalPoints[i + 1];\n var lineWidth = lastStripe ? x + width - entry : roundedSortedVerticalPoints[i + 1] - entry;\n if (lineWidth <= 0) {\n return null;\n }\n var colorIndex = i % verticalFill.length;\n return /*#__PURE__*/React.createElement(\"rect\", {\n key: \"react-\".concat(i) // eslint-disable-line react/no-array-index-key\n ,\n x: entry,\n y: y,\n width: lineWidth,\n height: height,\n stroke: \"none\",\n fill: verticalFill[colorIndex],\n fillOpacity: fillOpacity,\n className: \"recharts-cartesian-grid-bg\"\n });\n });\n return /*#__PURE__*/React.createElement(\"g\", {\n className: \"recharts-cartesian-gridstripes-vertical\"\n }, items);\n}\nvar defaultVerticalCoordinatesGenerator = (_ref, syncWithTicks) => {\n var {\n xAxis,\n width,\n height,\n offset\n } = _ref;\n return getCoordinatesOfGrid(getTicks(_objectSpread(_objectSpread(_objectSpread({}, defaultCartesianAxisProps), xAxis), {}, {\n ticks: getTicksOfAxis(xAxis, true),\n viewBox: {\n x: 0,\n y: 0,\n width,\n height\n }\n })), offset.left, offset.left + offset.width, syncWithTicks);\n};\nvar defaultHorizontalCoordinatesGenerator = (_ref2, syncWithTicks) => {\n var {\n yAxis,\n width,\n height,\n offset\n } = _ref2;\n return getCoordinatesOfGrid(getTicks(_objectSpread(_objectSpread(_objectSpread({}, defaultCartesianAxisProps), yAxis), {}, {\n ticks: getTicksOfAxis(yAxis, true),\n viewBox: {\n x: 0,\n y: 0,\n width,\n height\n }\n })), offset.top, offset.top + offset.height, syncWithTicks);\n};\nvar defaultProps = {\n horizontal: true,\n vertical: true,\n // The ordinates of horizontal grid lines\n horizontalPoints: [],\n // The abscissas of vertical grid lines\n verticalPoints: [],\n stroke: '#ccc',\n fill: 'none',\n // The fill of colors of grid lines\n verticalFill: [],\n horizontalFill: [],\n xAxisId: 0,\n yAxisId: 0\n};\nexport function CartesianGrid(props) {\n var chartWidth = useChartWidth();\n var chartHeight = useChartHeight();\n var offset = useOffsetInternal();\n var propsIncludingDefaults = _objectSpread(_objectSpread({}, resolveDefaultProps(props, defaultProps)), {}, {\n x: isNumber(props.x) ? props.x : offset.left,\n y: isNumber(props.y) ? props.y : offset.top,\n width: isNumber(props.width) ? props.width : offset.width,\n height: isNumber(props.height) ? props.height : offset.height\n });\n var {\n xAxisId,\n yAxisId,\n x,\n y,\n width,\n height,\n syncWithTicks,\n horizontalValues,\n verticalValues\n } = propsIncludingDefaults;\n var isPanorama = useIsPanorama();\n var xAxis = useAppSelector(state => selectAxisPropsNeededForCartesianGridTicksGenerator(state, 'xAxis', xAxisId, isPanorama));\n var yAxis = useAppSelector(state => selectAxisPropsNeededForCartesianGridTicksGenerator(state, 'yAxis', yAxisId, isPanorama));\n if (!isNumber(width) || width <= 0 || !isNumber(height) || height <= 0 || !isNumber(x) || x !== +x || !isNumber(y) || y !== +y) {\n return null;\n }\n\n /*\n * verticalCoordinatesGenerator and horizontalCoordinatesGenerator are defined\n * outside the propsIncludingDefaults because they were never part of the original props\n * and they were never passed as a prop down to horizontal/vertical custom elements.\n * If we add these two to propsIncludingDefaults then we are changing public API.\n * Not a bad thing per se but also not necessary.\n */\n var verticalCoordinatesGenerator = propsIncludingDefaults.verticalCoordinatesGenerator || defaultVerticalCoordinatesGenerator;\n var horizontalCoordinatesGenerator = propsIncludingDefaults.horizontalCoordinatesGenerator || defaultHorizontalCoordinatesGenerator;\n var {\n horizontalPoints,\n verticalPoints\n } = propsIncludingDefaults;\n\n // No horizontal points are specified\n if ((!horizontalPoints || !horizontalPoints.length) && typeof horizontalCoordinatesGenerator === 'function') {\n var isHorizontalValues = horizontalValues && horizontalValues.length;\n var generatorResult = horizontalCoordinatesGenerator({\n yAxis: yAxis ? _objectSpread(_objectSpread({}, yAxis), {}, {\n ticks: isHorizontalValues ? horizontalValues : yAxis.ticks\n }) : undefined,\n width: chartWidth,\n height: chartHeight,\n offset\n }, isHorizontalValues ? true : syncWithTicks);\n warn(Array.isArray(generatorResult), \"horizontalCoordinatesGenerator should return Array but instead it returned [\".concat(typeof generatorResult, \"]\"));\n if (Array.isArray(generatorResult)) {\n horizontalPoints = generatorResult;\n }\n }\n\n // No vertical points are specified\n if ((!verticalPoints || !verticalPoints.length) && typeof verticalCoordinatesGenerator === 'function') {\n var isVerticalValues = verticalValues && verticalValues.length;\n var _generatorResult = verticalCoordinatesGenerator({\n xAxis: xAxis ? _objectSpread(_objectSpread({}, xAxis), {}, {\n ticks: isVerticalValues ? verticalValues : xAxis.ticks\n }) : undefined,\n width: chartWidth,\n height: chartHeight,\n offset\n }, isVerticalValues ? true : syncWithTicks);\n warn(Array.isArray(_generatorResult), \"verticalCoordinatesGenerator should return Array but instead it returned [\".concat(typeof _generatorResult, \"]\"));\n if (Array.isArray(_generatorResult)) {\n verticalPoints = _generatorResult;\n }\n }\n return /*#__PURE__*/React.createElement(\"g\", {\n className: \"recharts-cartesian-grid\"\n }, /*#__PURE__*/React.createElement(Background, {\n fill: propsIncludingDefaults.fill,\n fillOpacity: propsIncludingDefaults.fillOpacity,\n x: propsIncludingDefaults.x,\n y: propsIncludingDefaults.y,\n width: propsIncludingDefaults.width,\n height: propsIncludingDefaults.height,\n ry: propsIncludingDefaults.ry\n }), /*#__PURE__*/React.createElement(HorizontalStripes, _extends({}, propsIncludingDefaults, {\n horizontalPoints: horizontalPoints\n })), /*#__PURE__*/React.createElement(VerticalStripes, _extends({}, propsIncludingDefaults, {\n verticalPoints: verticalPoints\n })), /*#__PURE__*/React.createElement(HorizontalGridLines, _extends({}, propsIncludingDefaults, {\n offset: offset,\n horizontalPoints: horizontalPoints,\n xAxis: xAxis,\n yAxis: yAxis\n })), /*#__PURE__*/React.createElement(VerticalGridLines, _extends({}, propsIncludingDefaults, {\n offset: offset,\n verticalPoints: verticalPoints,\n xAxis: xAxis,\n yAxis: yAxis\n })));\n}\nCartesianGrid.displayName = 'CartesianGrid';","import { createSelector } from 'reselect';\nimport { computeLinePoints } from '../../cartesian/Line';\nimport { selectChartDataWithIndexesIfNotInPanorama } from './dataSelectors';\nimport { selectChartLayout } from '../../context/chartLayoutContext';\nimport { selectAxisWithScale, selectTicksOfGraphicalItem, selectUnfilteredCartesianItems } from './axisSelectors';\nimport { getBandSizeOfAxis, isCategoricalAxis } from '../../util/ChartUtils';\nvar selectXAxisWithScale = (state, xAxisId, _yAxisId, isPanorama) => selectAxisWithScale(state, 'xAxis', xAxisId, isPanorama);\nvar selectXAxisTicks = (state, xAxisId, _yAxisId, isPanorama) => selectTicksOfGraphicalItem(state, 'xAxis', xAxisId, isPanorama);\nvar selectYAxisWithScale = (state, _xAxisId, yAxisId, isPanorama) => selectAxisWithScale(state, 'yAxis', yAxisId, isPanorama);\nvar selectYAxisTicks = (state, _xAxisId, yAxisId, isPanorama) => selectTicksOfGraphicalItem(state, 'yAxis', yAxisId, isPanorama);\nvar selectBandSize = createSelector([selectChartLayout, selectXAxisWithScale, selectYAxisWithScale, selectXAxisTicks, selectYAxisTicks], (layout, xAxis, yAxis, xAxisTicks, yAxisTicks) => {\n if (isCategoricalAxis(layout, 'xAxis')) {\n return getBandSizeOfAxis(xAxis, xAxisTicks, false);\n }\n return getBandSizeOfAxis(yAxis, yAxisTicks, false);\n});\nvar pickLineId = (_state, _xAxisId, _yAxisId, _isPanorama, id) => id;\nfunction isLineSettings(item) {\n return item.type === 'line';\n}\n\n/*\n * There is a race condition problem because we read some data from props and some from the state.\n * The state is updated through a dispatch and is one render behind,\n * and so we have this weird one tick render where the displayedData in one selector have the old dataKey\n * but the new dataKey in another selector.\n *\n * So here instead of reading the dataKey from the props, we always read it from the state.\n */\nvar selectSynchronisedLineSettings = createSelector([selectUnfilteredCartesianItems, pickLineId], (graphicalItems, id) => graphicalItems.filter(isLineSettings).find(x => x.id === id));\nexport var selectLinePoints = createSelector([selectChartLayout, selectXAxisWithScale, selectYAxisWithScale, selectXAxisTicks, selectYAxisTicks, selectSynchronisedLineSettings, selectBandSize, selectChartDataWithIndexesIfNotInPanorama], (layout, xAxis, yAxis, xAxisTicks, yAxisTicks, lineSettings, bandSize, _ref) => {\n var {\n chartData,\n dataStartIndex,\n dataEndIndex\n } = _ref;\n if (lineSettings == null || xAxis == null || yAxis == null || xAxisTicks == null || yAxisTicks == null || xAxisTicks.length === 0 || yAxisTicks.length === 0 || bandSize == null) {\n return undefined;\n }\n var {\n dataKey,\n data\n } = lineSettings;\n var displayedData;\n if (data != null && data.length > 0) {\n displayedData = data;\n } else {\n displayedData = chartData === null || chartData === void 0 ? void 0 : chartData.slice(dataStartIndex, dataEndIndex + 1);\n }\n if (displayedData == null) {\n return undefined;\n }\n return computeLinePoints({\n layout,\n xAxis,\n yAxis,\n xAxisTicks,\n yAxisTicks,\n dataKey,\n bandSize,\n displayedData\n });\n});","var _excluded = [\"id\"],\n _excluded2 = [\"type\", \"layout\", \"connectNulls\", \"needClip\"],\n _excluded3 = [\"activeDot\", \"animateNewValues\", \"animationBegin\", \"animationDuration\", \"animationEasing\", \"connectNulls\", \"dot\", \"hide\", \"isAnimationActive\", \"label\", \"legendType\", \"xAxisId\", \"yAxisId\", \"id\"];\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from 'react';\nimport { Component, useCallback, useMemo, useRef, useState } from 'react';\nimport { clsx } from 'clsx';\nimport { Curve } from '../shape/Curve';\nimport { Dot } from '../shape/Dot';\nimport { Layer } from '../container/Layer';\nimport { CartesianLabelListContextProvider, LabelListFromLabelProp } from '../component/LabelList';\nimport { interpolate, isNullish } from '../util/DataUtils';\nimport { filterProps, isClipDot } from '../util/ReactUtils';\nimport { Global } from '../util/Global';\nimport { getCateCoordinateOfLine, getTooltipNameProp, getValueByDataKey } from '../util/ChartUtils';\nimport { ActivePoints } from '../component/ActivePoints';\nimport { SetTooltipEntrySettings } from '../state/SetTooltipEntrySettings';\nimport { SetErrorBarContext } from '../context/ErrorBarContext';\nimport { GraphicalItemClipPath, useNeedsClip } from './GraphicalItemClipPath';\nimport { useChartLayout } from '../context/chartLayoutContext';\nimport { useIsPanorama } from '../context/PanoramaContext';\nimport { selectLinePoints } from '../state/selectors/lineSelectors';\nimport { useAppSelector } from '../state/hooks';\nimport { SetLegendPayload } from '../state/SetLegendPayload';\nimport { useAnimationId } from '../util/useAnimationId';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nimport { usePlotArea } from '../hooks';\nimport { RegisterGraphicalItemId } from '../context/RegisterGraphicalItemId';\nimport { SetCartesianGraphicalItem } from '../state/SetGraphicalItem';\nimport { svgPropertiesNoEvents } from '../util/svgPropertiesNoEvents';\nimport { JavascriptAnimate } from '../animation/JavascriptAnimate';\n\n/**\n * Internal props, combination of external props + defaultProps + private Recharts state\n */\n\n/**\n * External props, intended for end users to fill in\n */\n\n/**\n * Because of naming conflict, we are forced to ignore certain (valid) SVG attributes.\n */\n\nvar computeLegendPayloadFromAreaData = props => {\n var {\n dataKey,\n name,\n stroke,\n legendType,\n hide\n } = props;\n return [{\n inactive: hide,\n dataKey,\n type: legendType,\n color: stroke,\n value: getTooltipNameProp(name, dataKey),\n payload: props\n }];\n};\nfunction getTooltipEntrySettings(props) {\n var {\n dataKey,\n data,\n stroke,\n strokeWidth,\n fill,\n name,\n hide,\n unit\n } = props;\n return {\n dataDefinedOnItem: data,\n positions: undefined,\n settings: {\n stroke,\n strokeWidth,\n fill,\n dataKey,\n nameKey: undefined,\n name: getTooltipNameProp(name, dataKey),\n hide,\n type: props.tooltipType,\n color: props.stroke,\n unit\n }\n };\n}\nvar generateSimpleStrokeDasharray = (totalLength, length) => {\n return \"\".concat(length, \"px \").concat(totalLength - length, \"px\");\n};\nfunction repeat(lines, count) {\n var linesUnit = lines.length % 2 !== 0 ? [...lines, 0] : lines;\n var result = [];\n for (var i = 0; i < count; ++i) {\n result = [...result, ...linesUnit];\n }\n return result;\n}\nvar getStrokeDasharray = (length, totalLength, lines) => {\n var lineLength = lines.reduce((pre, next) => pre + next);\n\n // if lineLength is 0 return the default when no strokeDasharray is provided\n if (!lineLength) {\n return generateSimpleStrokeDasharray(totalLength, length);\n }\n var count = Math.floor(length / lineLength);\n var remainLength = length % lineLength;\n var restLength = totalLength - length;\n var remainLines = [];\n for (var i = 0, sum = 0; i < lines.length; sum += lines[i], ++i) {\n if (sum + lines[i] > remainLength) {\n remainLines = [...lines.slice(0, i), remainLength - sum];\n break;\n }\n }\n var emptyLines = remainLines.length % 2 === 0 ? [0, restLength] : [restLength];\n return [...repeat(lines, count), ...remainLines, ...emptyLines].map(line => \"\".concat(line, \"px\")).join(', ');\n};\nfunction renderDotItem(option, props) {\n var dotItem;\n if (/*#__PURE__*/React.isValidElement(option)) {\n dotItem = /*#__PURE__*/React.cloneElement(option, props);\n } else if (typeof option === 'function') {\n dotItem = option(props);\n } else {\n var className = clsx('recharts-line-dot', typeof option !== 'boolean' ? option.className : '');\n dotItem = /*#__PURE__*/React.createElement(Dot, _extends({}, props, {\n className: className\n }));\n }\n return dotItem;\n}\nfunction shouldRenderDots(points, dot) {\n if (points == null) {\n return false;\n }\n if (dot) {\n return true;\n }\n return points.length === 1;\n}\nfunction Dots(_ref) {\n var {\n clipPathId,\n points,\n props\n } = _ref;\n var {\n dot,\n dataKey,\n needClip\n } = props;\n if (!shouldRenderDots(points, dot)) {\n return null;\n }\n\n /*\n * Exclude ID from the props passed to the Dots component\n * because then the ID would be applied to multiple dots and it would no longer be unique.\n */\n var {\n id\n } = props,\n propsWithoutId = _objectWithoutProperties(props, _excluded);\n var clipDot = isClipDot(dot);\n var lineProps = svgPropertiesNoEvents(propsWithoutId);\n var customDotProps = filterProps(dot, true);\n var dots = points.map((entry, i) => {\n var dotProps = _objectSpread(_objectSpread(_objectSpread({\n key: \"dot-\".concat(i),\n r: 3\n }, lineProps), customDotProps), {}, {\n index: i,\n cx: entry.x,\n cy: entry.y,\n dataKey,\n value: entry.value,\n payload: entry.payload,\n points\n });\n return renderDotItem(dot, dotProps);\n });\n var dotsProps = {\n clipPath: needClip ? \"url(#clipPath-\".concat(clipDot ? '' : 'dots-').concat(clipPathId, \")\") : undefined\n };\n return /*#__PURE__*/React.createElement(Layer, _extends({\n className: \"recharts-line-dots\",\n key: \"dots\"\n }, dotsProps), dots);\n}\nfunction LineLabelListProvider(_ref2) {\n var {\n showLabels,\n children,\n points\n } = _ref2;\n var labelListEntries = useMemo(() => {\n return points === null || points === void 0 ? void 0 : points.map(point => {\n var viewBox = {\n x: point.x,\n y: point.y,\n width: 0,\n height: 0\n };\n return _objectSpread(_objectSpread({}, viewBox), {}, {\n value: point.value,\n payload: point.payload,\n viewBox,\n /*\n * Line is not passing parentViewBox to the LabelList so the labels can escape - looks like a bug, should we pass parentViewBox?\n * Or should this just be the root chart viewBox?\n */\n parentViewBox: undefined,\n fill: undefined\n });\n });\n }, [points]);\n return /*#__PURE__*/React.createElement(CartesianLabelListContextProvider, {\n value: showLabels ? labelListEntries : null\n }, children);\n}\nfunction StaticCurve(_ref3) {\n var {\n clipPathId,\n pathRef,\n points,\n strokeDasharray,\n props\n } = _ref3;\n var {\n type,\n layout,\n connectNulls,\n needClip\n } = props,\n others = _objectWithoutProperties(props, _excluded2);\n var curveProps = _objectSpread(_objectSpread({}, filterProps(others, true)), {}, {\n fill: 'none',\n className: 'recharts-line-curve',\n clipPath: needClip ? \"url(#clipPath-\".concat(clipPathId, \")\") : undefined,\n points,\n type,\n layout,\n connectNulls,\n strokeDasharray: strokeDasharray !== null && strokeDasharray !== void 0 ? strokeDasharray : props.strokeDasharray\n });\n return /*#__PURE__*/React.createElement(React.Fragment, null, (points === null || points === void 0 ? void 0 : points.length) > 1 && /*#__PURE__*/React.createElement(Curve, _extends({}, curveProps, {\n pathRef: pathRef\n })), /*#__PURE__*/React.createElement(Dots, {\n points: points,\n clipPathId: clipPathId,\n props: props\n }));\n}\nfunction getTotalLength(mainCurve) {\n try {\n return mainCurve && mainCurve.getTotalLength && mainCurve.getTotalLength() || 0;\n } catch (_unused) {\n return 0;\n }\n}\nfunction CurveWithAnimation(_ref4) {\n var {\n clipPathId,\n props,\n pathRef,\n previousPointsRef,\n longestAnimatedLengthRef\n } = _ref4;\n var {\n points,\n strokeDasharray,\n isAnimationActive,\n animationBegin,\n animationDuration,\n animationEasing,\n animateNewValues,\n width,\n height,\n onAnimationEnd,\n onAnimationStart\n } = props;\n var prevPoints = previousPointsRef.current;\n var animationId = useAnimationId(props, 'recharts-line-');\n var [isAnimating, setIsAnimating] = useState(false);\n var showLabels = !isAnimating;\n var handleAnimationEnd = useCallback(() => {\n if (typeof onAnimationEnd === 'function') {\n onAnimationEnd();\n }\n setIsAnimating(false);\n }, [onAnimationEnd]);\n var handleAnimationStart = useCallback(() => {\n if (typeof onAnimationStart === 'function') {\n onAnimationStart();\n }\n setIsAnimating(true);\n }, [onAnimationStart]);\n var totalLength = getTotalLength(pathRef.current);\n /*\n * Here we want to detect if the length animation has been interrupted.\n * For that we keep a reference to the furthest length that has been animated.\n *\n * And then, to keep things smooth, we add to it the current length that is being animated right now.\n *\n * If we did Math.max then it makes the length animation \"pause\" but we want to keep it smooth\n * so in case we have some \"leftover\" length from the previous animation we add it to the current length.\n *\n * This is not perfect because the animation changes speed due to easing. The default easing is 'ease' which is not linear\n * and makes it stand out. But it's good enough I suppose.\n * If we want to fix it then we need to keep track of multiple animations and their easing and timings.\n *\n * If you want to see this in action, try to change the dataKey of the line chart while the initial animation is running.\n * The Line begins with zero length and slowly grows to the full length. While this growth is in progress,\n * change the dataKey and the Line will continue growing from where it has grown so far.\n */\n var startingPoint = longestAnimatedLengthRef.current;\n return /*#__PURE__*/React.createElement(LineLabelListProvider, {\n points: points,\n showLabels: showLabels\n }, props.children, /*#__PURE__*/React.createElement(JavascriptAnimate, {\n animationId: animationId,\n begin: animationBegin,\n duration: animationDuration,\n isActive: isAnimationActive,\n easing: animationEasing,\n onAnimationEnd: handleAnimationEnd,\n onAnimationStart: handleAnimationStart,\n key: animationId\n }, t => {\n var lengthInterpolated = interpolate(startingPoint, totalLength + startingPoint, t);\n var curLength = Math.min(lengthInterpolated, totalLength);\n var currentStrokeDasharray;\n if (isAnimationActive) {\n if (strokeDasharray) {\n var lines = \"\".concat(strokeDasharray).split(/[,\\s]+/gim).map(num => parseFloat(num));\n currentStrokeDasharray = getStrokeDasharray(curLength, totalLength, lines);\n } else {\n currentStrokeDasharray = generateSimpleStrokeDasharray(totalLength, curLength);\n }\n } else {\n currentStrokeDasharray = strokeDasharray == null ? undefined : String(strokeDasharray);\n }\n if (prevPoints) {\n var prevPointsDiffFactor = prevPoints.length / points.length;\n var stepData = t === 1 ? points : points.map((entry, index) => {\n var prevPointIndex = Math.floor(index * prevPointsDiffFactor);\n if (prevPoints[prevPointIndex]) {\n var prev = prevPoints[prevPointIndex];\n return _objectSpread(_objectSpread({}, entry), {}, {\n x: interpolate(prev.x, entry.x, t),\n y: interpolate(prev.y, entry.y, t)\n });\n }\n\n // magic number of faking previous x and y location\n if (animateNewValues) {\n return _objectSpread(_objectSpread({}, entry), {}, {\n x: interpolate(width * 2, entry.x, t),\n y: interpolate(height / 2, entry.y, t)\n });\n }\n return _objectSpread(_objectSpread({}, entry), {}, {\n x: entry.x,\n y: entry.y\n });\n });\n // eslint-disable-next-line no-param-reassign\n previousPointsRef.current = stepData;\n return /*#__PURE__*/React.createElement(StaticCurve, {\n props: props,\n points: stepData,\n clipPathId: clipPathId,\n pathRef: pathRef,\n strokeDasharray: currentStrokeDasharray\n });\n }\n\n /*\n * Here it is important to wait a little bit with updating the previousPointsRef\n * before the animation has a time to initialize.\n * If we set the previous pointsRef immediately, we set it before the Legend height it calculated\n * and before pathRef is set.\n * If that happens, the Line will re-render again after Legend had reported its height\n * which will start a new animation with the previous points as the starting point\n * which gives the effect of the Line animating slightly upwards (where the animation distance equals the Legend height).\n * Waiting for t > 0 is indirect but good enough to ensure that the Legend height is calculated and animation works properly.\n *\n * Total length similarly is calculated from the pathRef. We should not update the previousPointsRef\n * before the pathRef is set, otherwise we will have a wrong total length.\n */\n if (t > 0 && totalLength > 0) {\n // eslint-disable-next-line no-param-reassign\n previousPointsRef.current = points;\n /*\n * totalLength is set from a ref and is not updated in the first tick of the animation.\n * It defaults to zero which is exactly what we want here because we want to grow from zero,\n * however the same happens when the data change.\n *\n * In that case we want to remember the previous length and continue from there, and only animate the shape.\n *\n * Therefore the totalLength > 0 check.\n *\n * The Animate is about to fire handleAnimationStart which will update the state\n * and cause a re-render and read a new proper totalLength which will be used in the next tick\n * and update the longestAnimatedLengthRef.\n */\n // eslint-disable-next-line no-param-reassign\n longestAnimatedLengthRef.current = curLength;\n }\n return /*#__PURE__*/React.createElement(StaticCurve, {\n props: props,\n points: points,\n clipPathId: clipPathId,\n pathRef: pathRef,\n strokeDasharray: currentStrokeDasharray\n });\n }), /*#__PURE__*/React.createElement(LabelListFromLabelProp, {\n label: props.label\n }));\n}\nfunction RenderCurve(_ref5) {\n var {\n clipPathId,\n props\n } = _ref5;\n var previousPointsRef = useRef(null);\n var longestAnimatedLengthRef = useRef(0);\n var pathRef = useRef(null);\n return /*#__PURE__*/React.createElement(CurveWithAnimation, {\n props: props,\n clipPathId: clipPathId,\n previousPointsRef: previousPointsRef,\n longestAnimatedLengthRef: longestAnimatedLengthRef,\n pathRef: pathRef\n });\n}\nvar errorBarDataPointFormatter = (dataPoint, dataKey) => {\n return {\n x: dataPoint.x,\n y: dataPoint.y,\n value: dataPoint.value,\n // @ts-expect-error getValueByDataKey does not validate the output type\n errorVal: getValueByDataKey(dataPoint.payload, dataKey)\n };\n};\n\n// eslint-disable-next-line react/prefer-stateless-function\nclass LineWithState extends Component {\n render() {\n var _filterProps;\n var {\n hide,\n dot,\n points,\n className,\n xAxisId,\n yAxisId,\n top,\n left,\n width,\n height,\n id,\n needClip\n } = this.props;\n if (hide) {\n return null;\n }\n var layerClass = clsx('recharts-line', className);\n var clipPathId = id;\n var {\n r = 3,\n strokeWidth = 2\n } = (_filterProps = filterProps(dot, false)) !== null && _filterProps !== void 0 ? _filterProps : {\n r: 3,\n strokeWidth: 2\n };\n var clipDot = isClipDot(dot);\n var dotSize = r * 2 + strokeWidth;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Layer, {\n className: layerClass\n }, needClip && /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(GraphicalItemClipPath, {\n clipPathId: clipPathId,\n xAxisId: xAxisId,\n yAxisId: yAxisId\n }), !clipDot && /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clipPath-dots-\".concat(clipPathId)\n }, /*#__PURE__*/React.createElement(\"rect\", {\n x: left - dotSize / 2,\n y: top - dotSize / 2,\n width: width + dotSize,\n height: height + dotSize\n }))), /*#__PURE__*/React.createElement(SetErrorBarContext, {\n xAxisId: xAxisId,\n yAxisId: yAxisId,\n data: points,\n dataPointFormatter: errorBarDataPointFormatter,\n errorBarOffset: 0\n }, /*#__PURE__*/React.createElement(RenderCurve, {\n props: this.props,\n clipPathId: clipPathId\n }))), /*#__PURE__*/React.createElement(ActivePoints, {\n activeDot: this.props.activeDot,\n points: points,\n mainColor: this.props.stroke,\n itemDataKey: this.props.dataKey\n }));\n }\n}\nvar defaultLineProps = {\n activeDot: true,\n animateNewValues: true,\n animationBegin: 0,\n animationDuration: 1500,\n animationEasing: 'ease',\n connectNulls: false,\n dot: true,\n fill: '#fff',\n hide: false,\n isAnimationActive: !Global.isSsr,\n label: false,\n legendType: 'line',\n stroke: '#3182bd',\n strokeWidth: 1,\n xAxisId: 0,\n yAxisId: 0\n};\nfunction LineImpl(props) {\n var _resolveDefaultProps = resolveDefaultProps(props, defaultLineProps),\n {\n activeDot,\n animateNewValues,\n animationBegin,\n animationDuration,\n animationEasing,\n connectNulls,\n dot,\n hide,\n isAnimationActive,\n label,\n legendType,\n xAxisId,\n yAxisId,\n id\n } = _resolveDefaultProps,\n everythingElse = _objectWithoutProperties(_resolveDefaultProps, _excluded3);\n var {\n needClip\n } = useNeedsClip(xAxisId, yAxisId);\n var plotArea = usePlotArea();\n var layout = useChartLayout();\n var isPanorama = useIsPanorama();\n var points = useAppSelector(state => selectLinePoints(state, xAxisId, yAxisId, isPanorama, id));\n if (layout !== 'horizontal' && layout !== 'vertical' || points == null || plotArea == null) {\n // Cannot render Line in an unsupported layout\n return null;\n }\n var {\n height,\n width,\n x: left,\n y: top\n } = plotArea;\n return /*#__PURE__*/React.createElement(LineWithState, _extends({}, everythingElse, {\n id: id,\n connectNulls: connectNulls,\n dot: dot,\n activeDot: activeDot,\n animateNewValues: animateNewValues,\n animationBegin: animationBegin,\n animationDuration: animationDuration,\n animationEasing: animationEasing,\n isAnimationActive: isAnimationActive,\n hide: hide,\n label: label,\n legendType: legendType,\n xAxisId: xAxisId,\n yAxisId: yAxisId,\n points: points,\n layout: layout,\n height: height,\n width: width,\n left: left,\n top: top,\n needClip: needClip\n }));\n}\nexport function computeLinePoints(_ref6) {\n var {\n layout,\n xAxis,\n yAxis,\n xAxisTicks,\n yAxisTicks,\n dataKey,\n bandSize,\n displayedData\n } = _ref6;\n return displayedData.map((entry, index) => {\n // @ts-expect-error getValueByDataKey does not validate the output type\n var value = getValueByDataKey(entry, dataKey);\n if (layout === 'horizontal') {\n var _x = getCateCoordinateOfLine({\n axis: xAxis,\n ticks: xAxisTicks,\n bandSize,\n entry,\n index\n });\n var _y = isNullish(value) ? null : yAxis.scale(value);\n return {\n x: _x,\n y: _y,\n value,\n payload: entry\n };\n }\n var x = isNullish(value) ? null : xAxis.scale(value);\n var y = getCateCoordinateOfLine({\n axis: yAxis,\n ticks: yAxisTicks,\n bandSize,\n entry,\n index\n });\n if (x == null || y == null) {\n return null;\n }\n return {\n x,\n y,\n value,\n payload: entry\n };\n }).filter(Boolean);\n}\nfunction LineFn(outsideProps) {\n var props = resolveDefaultProps(outsideProps, defaultLineProps);\n var isPanorama = useIsPanorama();\n return /*#__PURE__*/React.createElement(RegisterGraphicalItemId, {\n id: props.id,\n type: \"line\"\n }, id => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SetLegendPayload, {\n legendPayload: computeLegendPayloadFromAreaData(props)\n }), /*#__PURE__*/React.createElement(SetTooltipEntrySettings, {\n fn: getTooltipEntrySettings,\n args: props\n }), /*#__PURE__*/React.createElement(SetCartesianGraphicalItem, {\n type: \"line\",\n id: id,\n data: props.data,\n xAxisId: props.xAxisId,\n yAxisId: props.yAxisId,\n zAxisId: 0,\n dataKey: props.dataKey,\n hide: props.hide,\n isPanorama: isPanorama\n }), /*#__PURE__*/React.createElement(LineImpl, _extends({}, props, {\n id: id\n }))));\n}\nexport var Line = /*#__PURE__*/React.memo(LineFn);\nLine.displayName = 'Line';","import { createSelector } from 'reselect';\nimport { computeArea } from '../../cartesian/Area';\nimport { selectAxisWithScale, selectStackGroups, selectTicksOfGraphicalItem, selectUnfilteredCartesianItems } from './axisSelectors';\nimport { selectChartLayout } from '../../context/chartLayoutContext';\nimport { selectChartDataWithIndexesIfNotInPanorama } from './dataSelectors';\nimport { getBandSizeOfAxis, isCategoricalAxis } from '../../util/ChartUtils';\nimport { getStackSeriesIdentifier } from '../../util/stacks/getStackSeriesIdentifier';\nvar selectXAxisWithScale = (state, xAxisId, _yAxisId, isPanorama) => selectAxisWithScale(state, 'xAxis', xAxisId, isPanorama);\nvar selectXAxisTicks = (state, xAxisId, _yAxisId, isPanorama) => selectTicksOfGraphicalItem(state, 'xAxis', xAxisId, isPanorama);\nvar selectYAxisWithScale = (state, _xAxisId, yAxisId, isPanorama) => selectAxisWithScale(state, 'yAxis', yAxisId, isPanorama);\nvar selectYAxisTicks = (state, _xAxisId, yAxisId, isPanorama) => selectTicksOfGraphicalItem(state, 'yAxis', yAxisId, isPanorama);\nvar selectBandSize = createSelector([selectChartLayout, selectXAxisWithScale, selectYAxisWithScale, selectXAxisTicks, selectYAxisTicks], (layout, xAxis, yAxis, xAxisTicks, yAxisTicks) => {\n if (isCategoricalAxis(layout, 'xAxis')) {\n return getBandSizeOfAxis(xAxis, xAxisTicks, false);\n }\n return getBandSizeOfAxis(yAxis, yAxisTicks, false);\n});\nvar pickAreaId = (_state, _xAxisId, _yAxisId, _isPanorama, id) => id;\n\n/*\n * There is a race condition problem because we read some data from props and some from the state.\n * The state is updated through a dispatch and is one render behind,\n * and so we have this weird one tick render where the displayedData in one selector have the old dataKey\n * but the new dataKey in another selector.\n *\n * A proper fix is to either move everything into the state, or read the dataKey always from props\n * - but this is a smaller change.\n */\nvar selectSynchronisedAreaSettings = createSelector([selectUnfilteredCartesianItems, pickAreaId], (graphicalItems, id) => graphicalItems.filter(item => item.type === 'area').find(item => item.id === id));\nexport var selectGraphicalItemStackedData = (state, xAxisId, yAxisId, isPanorama, id) => {\n var _stackGroups$stackId;\n var areaSettings = selectSynchronisedAreaSettings(state, xAxisId, yAxisId, isPanorama, id);\n if (areaSettings == null) {\n return undefined;\n }\n var layout = selectChartLayout(state);\n var isXAxisCategorical = isCategoricalAxis(layout, 'xAxis');\n var stackGroups;\n if (isXAxisCategorical) {\n stackGroups = selectStackGroups(state, 'yAxis', yAxisId, isPanorama);\n } else {\n stackGroups = selectStackGroups(state, 'xAxis', xAxisId, isPanorama);\n }\n if (stackGroups == null) {\n return undefined;\n }\n var {\n stackId\n } = areaSettings;\n var stackSeriesIdentifier = getStackSeriesIdentifier(areaSettings);\n if (stackId == null || stackSeriesIdentifier == null) {\n return undefined;\n }\n var groups = (_stackGroups$stackId = stackGroups[stackId]) === null || _stackGroups$stackId === void 0 ? void 0 : _stackGroups$stackId.stackedData;\n return groups === null || groups === void 0 ? void 0 : groups.find(v => v.key === stackSeriesIdentifier);\n};\nexport var selectArea = createSelector([selectChartLayout, selectXAxisWithScale, selectYAxisWithScale, selectXAxisTicks, selectYAxisTicks, selectGraphicalItemStackedData, selectChartDataWithIndexesIfNotInPanorama, selectBandSize, selectSynchronisedAreaSettings], (layout, xAxis, yAxis, xAxisTicks, yAxisTicks, stackedData, _ref, bandSize, areaSettings) => {\n var {\n chartData,\n dataStartIndex,\n dataEndIndex\n } = _ref;\n if (areaSettings == null || layout !== 'horizontal' && layout !== 'vertical' || xAxis == null || yAxis == null || xAxisTicks == null || yAxisTicks == null || xAxisTicks.length === 0 || yAxisTicks.length === 0 || bandSize == null) {\n return undefined;\n }\n var {\n data\n } = areaSettings;\n var displayedData;\n if (data && data.length > 0) {\n displayedData = data;\n } else {\n displayedData = chartData === null || chartData === void 0 ? void 0 : chartData.slice(dataStartIndex, dataEndIndex + 1);\n }\n if (displayedData == null) {\n return undefined;\n }\n\n // Where is this supposed to come from? No charts have that as a prop.\n var chartBaseValue = undefined;\n return computeArea({\n layout,\n xAxis,\n yAxis,\n xAxisTicks,\n yAxisTicks,\n dataStartIndex,\n areaSettings,\n stackedData,\n displayedData,\n chartBaseValue,\n bandSize\n });\n});","var _excluded = [\"id\"],\n _excluded2 = [\"activeDot\", \"animationBegin\", \"animationDuration\", \"animationEasing\", \"connectNulls\", \"dot\", \"fill\", \"fillOpacity\", \"hide\", \"isAnimationActive\", \"legendType\", \"stroke\", \"xAxisId\", \"yAxisId\"];\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from 'react';\nimport { PureComponent, useCallback, useRef, useState } from 'react';\nimport { clsx } from 'clsx';\nimport { Curve } from '../shape/Curve';\nimport { Dot } from '../shape/Dot';\nimport { Layer } from '../container/Layer';\nimport { CartesianLabelListContextProvider, LabelListFromLabelProp } from '../component/LabelList';\nimport { Global } from '../util/Global';\nimport { interpolate, isNan, isNullish, isNumber } from '../util/DataUtils';\nimport { getCateCoordinateOfLine, getNormalizedStackId, getTooltipNameProp, getValueByDataKey } from '../util/ChartUtils';\nimport { filterProps, isClipDot } from '../util/ReactUtils';\nimport { ActivePoints } from '../component/ActivePoints';\nimport { SetTooltipEntrySettings } from '../state/SetTooltipEntrySettings';\nimport { GraphicalItemClipPath, useNeedsClip } from './GraphicalItemClipPath';\nimport { selectArea } from '../state/selectors/areaSelectors';\nimport { useIsPanorama } from '../context/PanoramaContext';\nimport { useChartLayout } from '../context/chartLayoutContext';\nimport { useChartName } from '../state/selectors/selectors';\nimport { SetLegendPayload } from '../state/SetLegendPayload';\nimport { useAppSelector } from '../state/hooks';\nimport { useAnimationId } from '../util/useAnimationId';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nimport { isWellBehavedNumber } from '../util/isWellBehavedNumber';\nimport { usePlotArea } from '../hooks';\nimport { RegisterGraphicalItemId } from '../context/RegisterGraphicalItemId';\nimport { SetCartesianGraphicalItem } from '../state/SetGraphicalItem';\nimport { svgPropertiesNoEvents } from '../util/svgPropertiesNoEvents';\nimport { JavascriptAnimate } from '../animation/JavascriptAnimate';\n\n/**\n * Internal props, combination of external props + defaultProps + private Recharts state\n */\n\n/**\n * External props, intended for end users to fill in\n */\n\n/**\n * Because of naming conflict, we are forced to ignore certain (valid) SVG attributes.\n */\n\nfunction getLegendItemColor(stroke, fill) {\n return stroke && stroke !== 'none' ? stroke : fill;\n}\nvar computeLegendPayloadFromAreaData = props => {\n var {\n dataKey,\n name,\n stroke,\n fill,\n legendType,\n hide\n } = props;\n return [{\n inactive: hide,\n dataKey,\n type: legendType,\n color: getLegendItemColor(stroke, fill),\n value: getTooltipNameProp(name, dataKey),\n payload: props\n }];\n};\nfunction getTooltipEntrySettings(props) {\n var {\n dataKey,\n data,\n stroke,\n strokeWidth,\n fill,\n name,\n hide,\n unit\n } = props;\n return {\n dataDefinedOnItem: data,\n positions: undefined,\n settings: {\n stroke,\n strokeWidth,\n fill,\n dataKey,\n nameKey: undefined,\n name: getTooltipNameProp(name, dataKey),\n hide,\n type: props.tooltipType,\n color: getLegendItemColor(stroke, fill),\n unit\n }\n };\n}\nvar renderDotItem = (option, props) => {\n var dotItem;\n if (/*#__PURE__*/React.isValidElement(option)) {\n dotItem = /*#__PURE__*/React.cloneElement(option, props);\n } else if (typeof option === 'function') {\n dotItem = option(props);\n } else {\n var className = clsx('recharts-area-dot', typeof option !== 'boolean' ? option.className : '');\n dotItem = /*#__PURE__*/React.createElement(Dot, _extends({}, props, {\n className: className\n }));\n }\n return dotItem;\n};\nfunction shouldRenderDots(points, dot) {\n if (points == null) {\n return false;\n }\n if (dot) {\n return true;\n }\n return points.length === 1;\n}\nfunction Dots(_ref) {\n var {\n clipPathId,\n points,\n props\n } = _ref;\n var {\n needClip,\n dot,\n dataKey\n } = props;\n if (!shouldRenderDots(points, dot)) {\n return null;\n }\n var clipDot = isClipDot(dot);\n var areaProps = svgPropertiesNoEvents(props);\n var customDotProps = filterProps(dot, true);\n var dots = points.map((entry, i) => {\n var dotProps = _objectSpread(_objectSpread(_objectSpread({\n key: \"dot-\".concat(i),\n r: 3\n }, areaProps), customDotProps), {}, {\n index: i,\n cx: entry.x,\n cy: entry.y,\n dataKey,\n value: entry.value,\n payload: entry.payload,\n points\n });\n return renderDotItem(dot, dotProps);\n });\n var dotsProps = {\n clipPath: needClip ? \"url(#clipPath-\".concat(clipDot ? '' : 'dots-').concat(clipPathId, \")\") : undefined\n };\n return /*#__PURE__*/React.createElement(Layer, _extends({\n className: \"recharts-area-dots\"\n }, dotsProps), dots);\n}\nfunction AreaLabelListProvider(_ref2) {\n var {\n showLabels,\n children,\n points\n } = _ref2;\n var labelListEntries = points.map(point => {\n var viewBox = {\n x: point.x,\n y: point.y,\n width: 0,\n height: 0\n };\n return _objectSpread(_objectSpread({}, viewBox), {}, {\n value: point.value,\n payload: point.payload,\n parentViewBox: undefined,\n viewBox,\n fill: undefined\n });\n });\n return /*#__PURE__*/React.createElement(CartesianLabelListContextProvider, {\n value: showLabels ? labelListEntries : null\n }, children);\n}\nfunction StaticArea(_ref3) {\n var {\n points,\n baseLine,\n needClip,\n clipPathId,\n props\n } = _ref3;\n var {\n layout,\n type,\n stroke,\n connectNulls,\n isRange\n } = props;\n var {\n id\n } = props,\n propsWithoutId = _objectWithoutProperties(props, _excluded);\n var allOtherProps = svgPropertiesNoEvents(propsWithoutId);\n return /*#__PURE__*/React.createElement(React.Fragment, null, (points === null || points === void 0 ? void 0 : points.length) > 1 && /*#__PURE__*/React.createElement(Layer, {\n clipPath: needClip ? \"url(#clipPath-\".concat(clipPathId, \")\") : undefined\n }, /*#__PURE__*/React.createElement(Curve, _extends({}, allOtherProps, {\n id: id,\n points: points,\n connectNulls: connectNulls,\n type: type,\n baseLine: baseLine,\n layout: layout,\n stroke: \"none\",\n className: \"recharts-area-area\"\n })), stroke !== 'none' && /*#__PURE__*/React.createElement(Curve, _extends({}, allOtherProps, {\n className: \"recharts-area-curve\",\n layout: layout,\n type: type,\n connectNulls: connectNulls,\n fill: \"none\",\n points: points\n })), stroke !== 'none' && isRange && /*#__PURE__*/React.createElement(Curve, _extends({}, allOtherProps, {\n className: \"recharts-area-curve\",\n layout: layout,\n type: type,\n connectNulls: connectNulls,\n fill: \"none\",\n points: baseLine\n }))), /*#__PURE__*/React.createElement(Dots, {\n points: points,\n props: propsWithoutId,\n clipPathId: clipPathId\n }));\n}\nfunction VerticalRect(_ref4) {\n var {\n alpha,\n baseLine,\n points,\n strokeWidth\n } = _ref4;\n var startY = points[0].y;\n var endY = points[points.length - 1].y;\n if (!isWellBehavedNumber(startY) || !isWellBehavedNumber(endY)) {\n return null;\n }\n var height = alpha * Math.abs(startY - endY);\n var maxX = Math.max(...points.map(entry => entry.x || 0));\n if (isNumber(baseLine)) {\n maxX = Math.max(baseLine, maxX);\n } else if (baseLine && Array.isArray(baseLine) && baseLine.length) {\n maxX = Math.max(...baseLine.map(entry => entry.x || 0), maxX);\n }\n if (isNumber(maxX)) {\n return /*#__PURE__*/React.createElement(\"rect\", {\n x: 0,\n y: startY < endY ? startY : startY - height,\n width: maxX + (strokeWidth ? parseInt(\"\".concat(strokeWidth), 10) : 1),\n height: Math.floor(height)\n });\n }\n return null;\n}\nfunction HorizontalRect(_ref5) {\n var {\n alpha,\n baseLine,\n points,\n strokeWidth\n } = _ref5;\n var startX = points[0].x;\n var endX = points[points.length - 1].x;\n if (!isWellBehavedNumber(startX) || !isWellBehavedNumber(endX)) {\n return null;\n }\n var width = alpha * Math.abs(startX - endX);\n var maxY = Math.max(...points.map(entry => entry.y || 0));\n if (isNumber(baseLine)) {\n maxY = Math.max(baseLine, maxY);\n } else if (baseLine && Array.isArray(baseLine) && baseLine.length) {\n maxY = Math.max(...baseLine.map(entry => entry.y || 0), maxY);\n }\n if (isNumber(maxY)) {\n return /*#__PURE__*/React.createElement(\"rect\", {\n x: startX < endX ? startX : startX - width,\n y: 0,\n width: width,\n height: Math.floor(maxY + (strokeWidth ? parseInt(\"\".concat(strokeWidth), 10) : 1))\n });\n }\n return null;\n}\nfunction ClipRect(_ref6) {\n var {\n alpha,\n layout,\n points,\n baseLine,\n strokeWidth\n } = _ref6;\n if (layout === 'vertical') {\n return /*#__PURE__*/React.createElement(VerticalRect, {\n alpha: alpha,\n points: points,\n baseLine: baseLine,\n strokeWidth: strokeWidth\n });\n }\n return /*#__PURE__*/React.createElement(HorizontalRect, {\n alpha: alpha,\n points: points,\n baseLine: baseLine,\n strokeWidth: strokeWidth\n });\n}\nfunction AreaWithAnimation(_ref7) {\n var {\n needClip,\n clipPathId,\n props,\n previousPointsRef,\n previousBaselineRef\n } = _ref7;\n var {\n points,\n baseLine,\n isAnimationActive,\n animationBegin,\n animationDuration,\n animationEasing,\n onAnimationStart,\n onAnimationEnd\n } = props;\n var animationId = useAnimationId(props, 'recharts-area-');\n var [isAnimating, setIsAnimating] = useState(false);\n var showLabels = !isAnimating;\n var handleAnimationEnd = useCallback(() => {\n if (typeof onAnimationEnd === 'function') {\n onAnimationEnd();\n }\n setIsAnimating(false);\n }, [onAnimationEnd]);\n var handleAnimationStart = useCallback(() => {\n if (typeof onAnimationStart === 'function') {\n onAnimationStart();\n }\n setIsAnimating(true);\n }, [onAnimationStart]);\n var prevPoints = previousPointsRef.current;\n var prevBaseLine = previousBaselineRef.current;\n return /*#__PURE__*/React.createElement(AreaLabelListProvider, {\n showLabels: showLabels,\n points: points\n }, props.children, /*#__PURE__*/React.createElement(JavascriptAnimate, {\n animationId: animationId,\n begin: animationBegin,\n duration: animationDuration,\n isActive: isAnimationActive,\n easing: animationEasing,\n onAnimationEnd: handleAnimationEnd,\n onAnimationStart: handleAnimationStart,\n key: animationId\n }, t => {\n if (prevPoints) {\n var prevPointsDiffFactor = prevPoints.length / points.length;\n var stepPoints =\n /*\n * Here it is important that at the very end of the animation, on the last frame,\n * we render the original points without any interpolation.\n * This is needed because the code above is checking for reference equality to decide if the animation should run\n * and if we create a new array instance (even if the numbers were the same)\n * then we would break animations.\n */\n t === 1 ? points : points.map((entry, index) => {\n var prevPointIndex = Math.floor(index * prevPointsDiffFactor);\n if (prevPoints[prevPointIndex]) {\n var prev = prevPoints[prevPointIndex];\n return _objectSpread(_objectSpread({}, entry), {}, {\n x: interpolate(prev.x, entry.x, t),\n y: interpolate(prev.y, entry.y, t)\n });\n }\n return entry;\n });\n var stepBaseLine;\n if (isNumber(baseLine)) {\n stepBaseLine = interpolate(prevBaseLine, baseLine, t);\n } else if (isNullish(baseLine) || isNan(baseLine)) {\n stepBaseLine = interpolate(prevBaseLine, 0, t);\n } else {\n stepBaseLine = baseLine.map((entry, index) => {\n var prevPointIndex = Math.floor(index * prevPointsDiffFactor);\n if (Array.isArray(prevBaseLine) && prevBaseLine[prevPointIndex]) {\n var prev = prevBaseLine[prevPointIndex];\n return _objectSpread(_objectSpread({}, entry), {}, {\n x: interpolate(prev.x, entry.x, t),\n y: interpolate(prev.y, entry.y, t)\n });\n }\n return entry;\n });\n }\n if (t > 0) {\n /*\n * We need to keep the refs in the parent component because we need to remember the last shape of the animation\n * even if AreaWithAnimation is unmounted as that happens when changing props.\n *\n * And we need to update the refs here because here is where the interpolation is computed.\n * Eslint doesn't like changing function arguments, but we need it so here is an eslint-disable.\n */\n // eslint-disable-next-line no-param-reassign\n previousPointsRef.current = stepPoints;\n // eslint-disable-next-line no-param-reassign\n previousBaselineRef.current = stepBaseLine;\n }\n return /*#__PURE__*/React.createElement(StaticArea, {\n points: stepPoints,\n baseLine: stepBaseLine,\n needClip: needClip,\n clipPathId: clipPathId,\n props: props\n });\n }\n if (t > 0) {\n // eslint-disable-next-line no-param-reassign\n previousPointsRef.current = points;\n // eslint-disable-next-line no-param-reassign\n previousBaselineRef.current = baseLine;\n }\n return /*#__PURE__*/React.createElement(Layer, null, isAnimationActive && /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"animationClipPath-\".concat(clipPathId)\n }, /*#__PURE__*/React.createElement(ClipRect, {\n alpha: t,\n points: points,\n baseLine: baseLine,\n layout: props.layout,\n strokeWidth: props.strokeWidth\n }))), /*#__PURE__*/React.createElement(Layer, {\n clipPath: \"url(#animationClipPath-\".concat(clipPathId, \")\")\n }, /*#__PURE__*/React.createElement(StaticArea, {\n points: points,\n baseLine: baseLine,\n needClip: needClip,\n clipPathId: clipPathId,\n props: props\n })));\n }), /*#__PURE__*/React.createElement(LabelListFromLabelProp, {\n label: props.label\n }));\n}\n\n/*\n * This components decides if the area should be animated or not.\n * It also holds the state of the animation.\n */\nfunction RenderArea(_ref8) {\n var {\n needClip,\n clipPathId,\n props\n } = _ref8;\n /*\n * These two must be refs, not state!\n * Because we want to store the most recent shape of the animation in case we have to interrupt the animation;\n * that happens when user initiates another animation before the current one finishes.\n *\n * If this was a useState, then every step in the animation would trigger a re-render.\n * So, useRef it is.\n */\n var previousPointsRef = useRef(null);\n var previousBaselineRef = useRef();\n return /*#__PURE__*/React.createElement(AreaWithAnimation, {\n needClip: needClip,\n clipPathId: clipPathId,\n props: props,\n previousPointsRef: previousPointsRef,\n previousBaselineRef: previousBaselineRef\n });\n}\nclass AreaWithState extends PureComponent {\n render() {\n var _filterProps;\n var {\n hide,\n dot,\n points,\n className,\n top,\n left,\n needClip,\n xAxisId,\n yAxisId,\n width,\n height,\n id,\n baseLine\n } = this.props;\n if (hide) {\n return null;\n }\n var layerClass = clsx('recharts-area', className);\n var clipPathId = id;\n var {\n r = 3,\n strokeWidth = 2\n } = (_filterProps = filterProps(dot, false)) !== null && _filterProps !== void 0 ? _filterProps : {\n r: 3,\n strokeWidth: 2\n };\n var clipDot = isClipDot(dot);\n var dotSize = r * 2 + strokeWidth;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Layer, {\n className: layerClass\n }, needClip && /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(GraphicalItemClipPath, {\n clipPathId: clipPathId,\n xAxisId: xAxisId,\n yAxisId: yAxisId\n }), !clipDot && /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clipPath-dots-\".concat(clipPathId)\n }, /*#__PURE__*/React.createElement(\"rect\", {\n x: left - dotSize / 2,\n y: top - dotSize / 2,\n width: width + dotSize,\n height: height + dotSize\n }))), /*#__PURE__*/React.createElement(RenderArea, {\n needClip: needClip,\n clipPathId: clipPathId,\n props: this.props\n })), /*#__PURE__*/React.createElement(ActivePoints, {\n points: points,\n mainColor: getLegendItemColor(this.props.stroke, this.props.fill),\n itemDataKey: this.props.dataKey,\n activeDot: this.props.activeDot\n }), this.props.isRange && Array.isArray(baseLine) && /*#__PURE__*/React.createElement(ActivePoints, {\n points: baseLine,\n mainColor: getLegendItemColor(this.props.stroke, this.props.fill),\n itemDataKey: this.props.dataKey,\n activeDot: this.props.activeDot\n }));\n }\n}\nvar defaultAreaProps = {\n activeDot: true,\n animationBegin: 0,\n animationDuration: 1500,\n animationEasing: 'ease',\n connectNulls: false,\n dot: false,\n fill: '#3182bd',\n fillOpacity: 0.6,\n hide: false,\n isAnimationActive: !Global.isSsr,\n legendType: 'line',\n stroke: '#3182bd',\n xAxisId: 0,\n yAxisId: 0\n};\nfunction AreaImpl(props) {\n var _useAppSelector;\n var _resolveDefaultProps = resolveDefaultProps(props, defaultAreaProps),\n {\n activeDot,\n animationBegin,\n animationDuration,\n animationEasing,\n connectNulls,\n dot,\n fill,\n fillOpacity,\n hide,\n isAnimationActive,\n legendType,\n stroke,\n xAxisId,\n yAxisId\n } = _resolveDefaultProps,\n everythingElse = _objectWithoutProperties(_resolveDefaultProps, _excluded2);\n var layout = useChartLayout();\n var chartName = useChartName();\n var {\n needClip\n } = useNeedsClip(xAxisId, yAxisId);\n var isPanorama = useIsPanorama();\n var {\n points,\n isRange,\n baseLine\n } = (_useAppSelector = useAppSelector(state => selectArea(state, xAxisId, yAxisId, isPanorama, props.id))) !== null && _useAppSelector !== void 0 ? _useAppSelector : {};\n var plotArea = usePlotArea();\n if (layout !== 'horizontal' && layout !== 'vertical' || plotArea == null) {\n // Can't render Area in an unsupported layout\n return null;\n }\n if (chartName !== 'AreaChart' && chartName !== 'ComposedChart') {\n // There is nothing stopping us from rendering Area in other charts, except for historical reasons. Do we want to allow that?\n return null;\n }\n var {\n height,\n width,\n x: left,\n y: top\n } = plotArea;\n if (!points || !points.length) {\n return null;\n }\n return /*#__PURE__*/React.createElement(AreaWithState, _extends({}, everythingElse, {\n activeDot: activeDot,\n animationBegin: animationBegin,\n animationDuration: animationDuration,\n animationEasing: animationEasing,\n baseLine: baseLine,\n connectNulls: connectNulls,\n dot: dot,\n fill: fill,\n fillOpacity: fillOpacity,\n height: height,\n hide: hide,\n layout: layout,\n isAnimationActive: isAnimationActive,\n isRange: isRange,\n legendType: legendType,\n needClip: needClip,\n points: points,\n stroke: stroke,\n width: width,\n left: left,\n top: top,\n xAxisId: xAxisId,\n yAxisId: yAxisId\n }));\n}\nexport var getBaseValue = (layout, chartBaseValue, itemBaseValue, xAxis, yAxis) => {\n // The baseValue can be defined both on the AreaChart, and on the Area.\n // The value for the item takes precedence.\n var baseValue = itemBaseValue !== null && itemBaseValue !== void 0 ? itemBaseValue : chartBaseValue;\n if (isNumber(baseValue)) {\n return baseValue;\n }\n var numericAxis = layout === 'horizontal' ? yAxis : xAxis;\n // @ts-expect-error d3scale .domain() returns unknown, Math.max expects number\n var domain = numericAxis.scale.domain();\n if (numericAxis.type === 'number') {\n var domainMax = Math.max(domain[0], domain[1]);\n var domainMin = Math.min(domain[0], domain[1]);\n if (baseValue === 'dataMin') {\n return domainMin;\n }\n if (baseValue === 'dataMax') {\n return domainMax;\n }\n return domainMax < 0 ? domainMax : Math.max(Math.min(domain[0], domain[1]), 0);\n }\n if (baseValue === 'dataMin') {\n return domain[0];\n }\n if (baseValue === 'dataMax') {\n return domain[1];\n }\n return domain[0];\n};\nexport function computeArea(_ref9) {\n var {\n areaSettings: {\n connectNulls,\n baseValue: itemBaseValue,\n dataKey\n },\n stackedData,\n layout,\n chartBaseValue,\n xAxis,\n yAxis,\n displayedData,\n dataStartIndex,\n xAxisTicks,\n yAxisTicks,\n bandSize\n } = _ref9;\n var hasStack = stackedData && stackedData.length;\n var baseValue = getBaseValue(layout, chartBaseValue, itemBaseValue, xAxis, yAxis);\n var isHorizontalLayout = layout === 'horizontal';\n var isRange = false;\n var points = displayedData.map((entry, index) => {\n var value;\n if (hasStack) {\n value = stackedData[dataStartIndex + index];\n } else {\n value = getValueByDataKey(entry, dataKey);\n if (!Array.isArray(value)) {\n value = [baseValue, value];\n } else {\n isRange = true;\n }\n }\n var isBreakPoint = value[1] == null || hasStack && !connectNulls && getValueByDataKey(entry, dataKey) == null;\n if (isHorizontalLayout) {\n return {\n x: getCateCoordinateOfLine({\n axis: xAxis,\n ticks: xAxisTicks,\n bandSize,\n entry,\n index\n }),\n y: isBreakPoint ? null : yAxis.scale(value[1]),\n value,\n payload: entry\n };\n }\n return {\n x: isBreakPoint ? null : xAxis.scale(value[1]),\n y: getCateCoordinateOfLine({\n axis: yAxis,\n ticks: yAxisTicks,\n bandSize,\n entry,\n index\n }),\n value,\n payload: entry\n };\n });\n var baseLine;\n if (hasStack || isRange) {\n baseLine = points.map(entry => {\n var x = Array.isArray(entry.value) ? entry.value[0] : null;\n if (isHorizontalLayout) {\n return {\n x: entry.x,\n y: x != null && entry.y != null ? yAxis.scale(x) : null,\n payload: entry.payload\n };\n }\n return {\n x: x != null ? xAxis.scale(x) : null,\n y: entry.y,\n payload: entry.payload\n };\n });\n } else {\n baseLine = isHorizontalLayout ? yAxis.scale(baseValue) : xAxis.scale(baseValue);\n }\n return {\n points,\n baseLine,\n isRange\n };\n}\nfunction AreaFn(outsideProps) {\n var props = resolveDefaultProps(outsideProps, defaultAreaProps);\n var isPanorama = useIsPanorama();\n // Report all props to Redux store first, before calling any hooks, to avoid circular dependencies.\n return /*#__PURE__*/React.createElement(RegisterGraphicalItemId, {\n id: props.id,\n type: \"area\"\n }, id => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SetLegendPayload, {\n legendPayload: computeLegendPayloadFromAreaData(props)\n }), /*#__PURE__*/React.createElement(SetTooltipEntrySettings, {\n fn: getTooltipEntrySettings,\n args: props\n }), /*#__PURE__*/React.createElement(SetCartesianGraphicalItem, {\n type: \"area\",\n id: id,\n data: props.data,\n dataKey: props.dataKey,\n xAxisId: props.xAxisId,\n yAxisId: props.yAxisId,\n zAxisId: 0,\n stackId: getNormalizedStackId(props.stackId),\n hide: props.hide,\n barSize: undefined,\n baseValue: props.baseValue,\n isPanorama: isPanorama,\n connectNulls: props.connectNulls\n }), /*#__PURE__*/React.createElement(AreaImpl, _extends({}, props, {\n id: id\n }))));\n}\nexport var Area = /*#__PURE__*/React.memo(AreaFn);\nArea.displayName = 'Area';","function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport * as React from 'react';\nimport { Component, useEffect } from 'react';\nimport { addZAxis, removeZAxis } from '../state/cartesianAxisSlice';\nimport { useAppDispatch } from '../state/hooks';\nimport { implicitZAxis } from '../state/selectors/axisSelectors';\nfunction SetZAxisSettings(settings) {\n var dispatch = useAppDispatch();\n useEffect(() => {\n dispatch(addZAxis(settings));\n return () => {\n dispatch(removeZAxis(settings));\n };\n }, [settings, dispatch]);\n return null;\n}\n// eslint-disable-next-line react/prefer-stateless-function\nexport class ZAxis extends Component {\n render() {\n return /*#__PURE__*/React.createElement(SetZAxisSettings, {\n domain: this.props.domain,\n id: this.props.zAxisId,\n dataKey: this.props.dataKey,\n name: this.props.name,\n unit: this.props.unit,\n range: this.props.range,\n scale: this.props.scale,\n type: this.props.type,\n allowDuplicatedCategory: implicitZAxis.allowDuplicatedCategory,\n allowDataOverflow: implicitZAxis.allowDataOverflow,\n reversed: implicitZAxis.reversed,\n includeHidden: implicitZAxis.includeHidden\n });\n }\n}\n_defineProperty(ZAxis, \"displayName\", 'ZAxis');\n_defineProperty(ZAxis, \"defaultProps\", {\n zAxisId: 0,\n range: implicitZAxis.range,\n scale: implicitZAxis.scale,\n type: implicitZAxis.type\n});","var _excluded = [\"option\", \"isActive\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from 'react';\nimport { Symbols } from '../shape/Symbols';\nimport { Shape } from './ActiveShapeUtils';\nexport function ScatterSymbol(_ref) {\n var {\n option,\n isActive\n } = _ref,\n props = _objectWithoutProperties(_ref, _excluded);\n if (typeof option === 'string') {\n return /*#__PURE__*/React.createElement(Shape, _extends({\n option: /*#__PURE__*/React.createElement(Symbols, _extends({\n type: option\n }, props)),\n isActive: isActive,\n shapeType: \"symbols\"\n }, props));\n }\n return /*#__PURE__*/React.createElement(Shape, _extends({\n option: option,\n isActive: isActive,\n shapeType: \"symbols\"\n }, props));\n}","import { createSelector } from 'reselect';\nimport { computeScatterPoints } from '../../cartesian/Scatter';\nimport { selectChartDataWithIndexesIfNotInPanorama } from './dataSelectors';\nimport { selectAxisWithScale, selectTicksOfGraphicalItem, selectUnfilteredCartesianItems, selectZAxisWithScale } from './axisSelectors';\nvar selectXAxisWithScale = (state, xAxisId, _yAxisId, _zAxisId, _id, _cells, isPanorama) => selectAxisWithScale(state, 'xAxis', xAxisId, isPanorama);\nvar selectXAxisTicks = (state, xAxisId, _yAxisId, _zAxisId, _id, _cells, isPanorama) => selectTicksOfGraphicalItem(state, 'xAxis', xAxisId, isPanorama);\nvar selectYAxisWithScale = (state, _xAxisId, yAxisId, _zAxisId, _id, _cells, isPanorama) => selectAxisWithScale(state, 'yAxis', yAxisId, isPanorama);\nvar selectYAxisTicks = (state, _xAxisId, yAxisId, _zAxisId, _id, _cells, isPanorama) => selectTicksOfGraphicalItem(state, 'yAxis', yAxisId, isPanorama);\nvar selectZAxis = (state, _xAxisId, _yAxisId, zAxisId) => selectZAxisWithScale(state, 'zAxis', zAxisId, false);\nvar pickScatterId = (_state, _xAxisId, _yAxisId, _zAxisId, id) => id;\nvar pickCells = (_state, _xAxisId, _yAxisId, _zAxisId, _id, cells) => cells;\nvar scatterChartDataSelector = (state, xAxisId, yAxisId, _zAxisId, _id, _cells, isPanorama) => selectChartDataWithIndexesIfNotInPanorama(state, xAxisId, yAxisId, isPanorama);\nvar selectSynchronisedScatterSettings = createSelector([selectUnfilteredCartesianItems, pickScatterId], (graphicalItems, id) => {\n return graphicalItems.filter(item => item.type === 'scatter').find(item => item.id === id);\n});\nexport var selectScatterPoints = createSelector([scatterChartDataSelector, selectXAxisWithScale, selectXAxisTicks, selectYAxisWithScale, selectYAxisTicks, selectZAxis, selectSynchronisedScatterSettings, pickCells], (_ref, xAxis, xAxisTicks, yAxis, yAxisTicks, zAxis, scatterSettings, cells) => {\n var {\n chartData,\n dataStartIndex,\n dataEndIndex\n } = _ref;\n if (scatterSettings == null) {\n return undefined;\n }\n var displayedData;\n if ((scatterSettings === null || scatterSettings === void 0 ? void 0 : scatterSettings.data) != null && scatterSettings.data.length > 0) {\n displayedData = scatterSettings.data;\n } else {\n displayedData = chartData === null || chartData === void 0 ? void 0 : chartData.slice(dataStartIndex, dataEndIndex + 1);\n }\n if (displayedData == null || xAxis == null || yAxis == null || xAxisTicks == null || yAxisTicks == null || (xAxisTicks === null || xAxisTicks === void 0 ? void 0 : xAxisTicks.length) === 0 || (yAxisTicks === null || yAxisTicks === void 0 ? void 0 : yAxisTicks.length) === 0) {\n return undefined;\n }\n return computeScatterPoints({\n displayedData,\n xAxis,\n yAxis,\n zAxis,\n scatterSettings,\n xAxisTicks,\n yAxisTicks,\n cells\n });\n});","var _excluded = [\"onMouseEnter\", \"onClick\", \"onMouseLeave\"],\n _excluded2 = [\"id\"],\n _excluded3 = [\"animationBegin\", \"animationDuration\", \"animationEasing\", \"hide\", \"isAnimationActive\", \"legendType\", \"lineJointType\", \"lineType\", \"shape\", \"xAxisId\", \"yAxisId\", \"zAxisId\"];\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport * as React from 'react';\nimport { useCallback, useMemo, useRef, useState } from 'react';\nimport { clsx } from 'clsx';\nimport { Layer } from '../container/Layer';\nimport { CartesianLabelListContextProvider, LabelListFromLabelProp } from '../component/LabelList';\nimport { filterProps, findAllByType } from '../util/ReactUtils';\nimport { Global } from '../util/Global';\nimport { ZAxis } from './ZAxis';\nimport { Curve } from '../shape/Curve';\nimport { Cell } from '../component/Cell';\nimport { getLinearRegression, interpolateNumber, isNullish } from '../util/DataUtils';\nimport { getCateCoordinateOfLine, getTooltipNameProp, getValueByDataKey } from '../util/ChartUtils';\nimport { adaptEventsOfChild } from '../util/types';\nimport { ScatterSymbol } from '../util/ScatterUtils';\nimport { useMouseClickItemDispatch, useMouseEnterItemDispatch, useMouseLeaveItemDispatch } from '../context/tooltipContext';\nimport { SetTooltipEntrySettings } from '../state/SetTooltipEntrySettings';\nimport { SetErrorBarContext } from '../context/ErrorBarContext';\nimport { GraphicalItemClipPath, useNeedsClip } from './GraphicalItemClipPath';\nimport { selectScatterPoints } from '../state/selectors/scatterSelectors';\nimport { useAppSelector } from '../state/hooks';\nimport { useIsPanorama } from '../context/PanoramaContext';\nimport { selectActiveTooltipIndex } from '../state/selectors/tooltipSelectors';\nimport { SetLegendPayload } from '../state/SetLegendPayload';\nimport { DATA_ITEM_DATAKEY_ATTRIBUTE_NAME, DATA_ITEM_INDEX_ATTRIBUTE_NAME } from '../util/Constants';\nimport { useAnimationId } from '../util/useAnimationId';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nimport { RegisterGraphicalItemId } from '../context/RegisterGraphicalItemId';\nimport { SetCartesianGraphicalItem } from '../state/SetGraphicalItem';\nimport { svgPropertiesNoEvents } from '../util/svgPropertiesNoEvents';\nimport { JavascriptAnimate } from '../animation/JavascriptAnimate';\nimport { useViewBox } from '../context/chartLayoutContext';\n\n/**\n * Internal props, combination of external props + defaultProps + private Recharts state\n */\n\n/**\n * External props, intended for end users to fill in\n */\n\n/**\n * Because of naming conflict, we are forced to ignore certain (valid) SVG attributes.\n */\n\nvar computeLegendPayloadFromScatterProps = props => {\n var {\n dataKey,\n name,\n fill,\n legendType,\n hide\n } = props;\n return [{\n inactive: hide,\n dataKey,\n type: legendType,\n color: fill,\n value: getTooltipNameProp(name, dataKey),\n payload: props\n }];\n};\nfunction ScatterLine(_ref) {\n var {\n points,\n props\n } = _ref;\n var {\n line,\n lineType,\n lineJointType\n } = props;\n if (!line) {\n return null;\n }\n var scatterProps = svgPropertiesNoEvents(props);\n var customLineProps = filterProps(line, false);\n var linePoints, lineItem;\n if (lineType === 'joint') {\n linePoints = points.map(entry => ({\n x: entry.cx,\n y: entry.cy\n }));\n } else if (lineType === 'fitting') {\n var {\n xmin,\n xmax,\n a,\n b\n } = getLinearRegression(points);\n var linearExp = x => a * x + b;\n linePoints = [{\n x: xmin,\n y: linearExp(xmin)\n }, {\n x: xmax,\n y: linearExp(xmax)\n }];\n }\n var lineProps = _objectSpread(_objectSpread(_objectSpread({}, scatterProps), {}, {\n fill: 'none',\n stroke: scatterProps && scatterProps.fill\n }, customLineProps), {}, {\n points: linePoints\n });\n if (/*#__PURE__*/React.isValidElement(line)) {\n lineItem = /*#__PURE__*/React.cloneElement(line, lineProps);\n } else if (typeof line === 'function') {\n lineItem = line(lineProps);\n } else {\n lineItem = /*#__PURE__*/React.createElement(Curve, _extends({}, lineProps, {\n type: lineJointType\n }));\n }\n return /*#__PURE__*/React.createElement(Layer, {\n className: \"recharts-scatter-line\",\n key: \"recharts-scatter-line\"\n }, lineItem);\n}\nfunction ScatterLabelListProvider(_ref2) {\n var {\n showLabels,\n points,\n children\n } = _ref2;\n var chartViewBox = useViewBox();\n var labelListEntries = useMemo(() => {\n return points === null || points === void 0 ? void 0 : points.map(point => {\n var viewBox = {\n /*\n * Scatter label uses x and y as the reference point for the label,\n * not cx and cy.\n */\n x: point.x,\n /*\n * Scatter label uses x and y as the reference point for the label,\n * not cx and cy.\n */\n y: point.y,\n width: point.width,\n height: point.height\n };\n return _objectSpread(_objectSpread({}, viewBox), {}, {\n /*\n * Here we put undefined because Scatter shows two values usually, one for X and one for Y.\n * LabelList will see this undefined and will use its own `dataKey` prop to determine which value to show,\n * using the payload below.\n */\n value: undefined,\n payload: point.payload,\n viewBox,\n parentViewBox: chartViewBox,\n fill: undefined\n });\n });\n }, [chartViewBox, points]);\n return /*#__PURE__*/React.createElement(CartesianLabelListContextProvider, {\n value: showLabels ? labelListEntries : null\n }, children);\n}\nfunction ScatterSymbols(props) {\n var {\n points,\n allOtherScatterProps\n } = props;\n var {\n shape,\n activeShape,\n dataKey\n } = allOtherScatterProps;\n var activeIndex = useAppSelector(selectActiveTooltipIndex);\n var {\n onMouseEnter: onMouseEnterFromProps,\n onClick: onItemClickFromProps,\n onMouseLeave: onMouseLeaveFromProps\n } = allOtherScatterProps,\n restOfAllOtherProps = _objectWithoutProperties(allOtherScatterProps, _excluded);\n var onMouseEnterFromContext = useMouseEnterItemDispatch(onMouseEnterFromProps, allOtherScatterProps.dataKey);\n var onMouseLeaveFromContext = useMouseLeaveItemDispatch(onMouseLeaveFromProps);\n var onClickFromContext = useMouseClickItemDispatch(onItemClickFromProps, allOtherScatterProps.dataKey);\n if (points == null) {\n return null;\n }\n var {\n id\n } = allOtherScatterProps,\n allOtherPropsWithoutId = _objectWithoutProperties(allOtherScatterProps, _excluded2);\n var baseProps = svgPropertiesNoEvents(allOtherPropsWithoutId);\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ScatterLine, {\n points: points,\n props: allOtherPropsWithoutId\n }), points.map((entry, i) => {\n var isActive = activeShape && activeIndex === String(i);\n var option = isActive ? activeShape : shape;\n var symbolProps = _objectSpread(_objectSpread(_objectSpread({\n key: \"symbol-\".concat(i)\n }, baseProps), entry), {}, {\n [DATA_ITEM_INDEX_ATTRIBUTE_NAME]: i,\n [DATA_ITEM_DATAKEY_ATTRIBUTE_NAME]: String(dataKey)\n });\n return /*#__PURE__*/React.createElement(Layer, _extends({\n className: \"recharts-scatter-symbol\"\n }, adaptEventsOfChild(restOfAllOtherProps, entry, i), {\n // @ts-expect-error the types need a bit of attention\n onMouseEnter: onMouseEnterFromContext(entry, i)\n // @ts-expect-error the types need a bit of attention\n ,\n onMouseLeave: onMouseLeaveFromContext(entry, i)\n // @ts-expect-error the types need a bit of attention\n ,\n onClick: onClickFromContext(entry, i)\n // eslint-disable-next-line react/no-array-index-key\n ,\n key: \"symbol-\".concat(entry === null || entry === void 0 ? void 0 : entry.cx, \"-\").concat(entry === null || entry === void 0 ? void 0 : entry.cy, \"-\").concat(entry === null || entry === void 0 ? void 0 : entry.size, \"-\").concat(i)\n }), /*#__PURE__*/React.createElement(ScatterSymbol, _extends({\n option: option,\n isActive: isActive\n }, symbolProps)));\n }));\n}\nfunction SymbolsWithAnimation(_ref3) {\n var {\n previousPointsRef,\n props\n } = _ref3;\n var {\n points,\n isAnimationActive,\n animationBegin,\n animationDuration,\n animationEasing\n } = props;\n var prevPoints = previousPointsRef.current;\n var animationId = useAnimationId(props, 'recharts-scatter-');\n var [isAnimating, setIsAnimating] = useState(false);\n var handleAnimationEnd = useCallback(() => {\n // Scatter doesn't have onAnimationEnd prop, and if we want to add it we do it here\n // if (typeof onAnimationEnd === 'function') {\n // onAnimationEnd();\n // }\n setIsAnimating(false);\n }, []);\n var handleAnimationStart = useCallback(() => {\n // Scatter doesn't have onAnimationStart prop, and if we want to add it we do it here\n // if (typeof onAnimationStart === 'function') {\n // onAnimationStart();\n // }\n setIsAnimating(true);\n }, []);\n var showLabels = !isAnimating;\n return /*#__PURE__*/React.createElement(ScatterLabelListProvider, {\n showLabels: showLabels,\n points: points\n }, props.children, /*#__PURE__*/React.createElement(JavascriptAnimate, {\n animationId: animationId,\n begin: animationBegin,\n duration: animationDuration,\n isActive: isAnimationActive,\n easing: animationEasing,\n onAnimationEnd: handleAnimationEnd,\n onAnimationStart: handleAnimationStart,\n key: animationId\n }, t => {\n var stepData = t === 1 ? points : points === null || points === void 0 ? void 0 : points.map((entry, index) => {\n var prev = prevPoints && prevPoints[index];\n if (prev) {\n var interpolatorCx = interpolateNumber(prev.cx, entry.cx);\n var interpolatorCy = interpolateNumber(prev.cy, entry.cy);\n var interpolatorSize = interpolateNumber(prev.size, entry.size);\n return _objectSpread(_objectSpread({}, entry), {}, {\n cx: interpolatorCx(t),\n cy: interpolatorCy(t),\n size: interpolatorSize(t)\n });\n }\n var interpolator = interpolateNumber(0, entry.size);\n return _objectSpread(_objectSpread({}, entry), {}, {\n size: interpolator(t)\n });\n });\n if (t > 0) {\n // eslint-disable-next-line no-param-reassign\n previousPointsRef.current = stepData;\n }\n return /*#__PURE__*/React.createElement(Layer, null, /*#__PURE__*/React.createElement(ScatterSymbols, {\n points: stepData,\n allOtherScatterProps: props,\n showLabels: showLabels\n }));\n }), /*#__PURE__*/React.createElement(LabelListFromLabelProp, {\n label: props.label\n }));\n}\nfunction getTooltipEntrySettings(props) {\n var {\n dataKey,\n points,\n stroke,\n strokeWidth,\n fill,\n name,\n hide,\n tooltipType\n } = props;\n return {\n dataDefinedOnItem: points === null || points === void 0 ? void 0 : points.map(p => p.tooltipPayload),\n positions: points === null || points === void 0 ? void 0 : points.map(p => p.tooltipPosition),\n settings: {\n stroke,\n strokeWidth,\n fill,\n nameKey: undefined,\n dataKey,\n name: getTooltipNameProp(name, dataKey),\n hide,\n type: tooltipType,\n color: fill,\n unit: '' // why doesn't Scatter support unit?\n }\n };\n}\nexport function computeScatterPoints(_ref4) {\n var {\n displayedData,\n xAxis,\n yAxis,\n zAxis,\n scatterSettings,\n xAxisTicks,\n yAxisTicks,\n cells\n } = _ref4;\n var xAxisDataKey = isNullish(xAxis.dataKey) ? scatterSettings.dataKey : xAxis.dataKey;\n var yAxisDataKey = isNullish(yAxis.dataKey) ? scatterSettings.dataKey : yAxis.dataKey;\n var zAxisDataKey = zAxis && zAxis.dataKey;\n var defaultRangeZ = zAxis ? zAxis.range : ZAxis.defaultProps.range;\n var defaultZ = defaultRangeZ && defaultRangeZ[0];\n var xBandSize = xAxis.scale.bandwidth ? xAxis.scale.bandwidth() : 0;\n var yBandSize = yAxis.scale.bandwidth ? yAxis.scale.bandwidth() : 0;\n return displayedData.map((entry, index) => {\n var x = getValueByDataKey(entry, xAxisDataKey);\n var y = getValueByDataKey(entry, yAxisDataKey);\n var z = !isNullish(zAxisDataKey) && getValueByDataKey(entry, zAxisDataKey) || '-';\n var tooltipPayload = [{\n // @ts-expect-error name prop should not have dataKey in it\n name: isNullish(xAxis.dataKey) ? scatterSettings.name : xAxis.name || xAxis.dataKey,\n unit: xAxis.unit || '',\n // @ts-expect-error getValueByDataKey does not validate the output type\n value: x,\n payload: entry,\n dataKey: xAxisDataKey,\n type: scatterSettings.tooltipType\n }, {\n // @ts-expect-error name prop should not have dataKey in it\n name: isNullish(yAxis.dataKey) ? scatterSettings.name : yAxis.name || yAxis.dataKey,\n unit: yAxis.unit || '',\n // @ts-expect-error getValueByDataKey does not validate the output type\n value: y,\n payload: entry,\n dataKey: yAxisDataKey,\n type: scatterSettings.tooltipType\n }];\n if (z !== '-') {\n tooltipPayload.push({\n // @ts-expect-error name prop should not have dataKey in it\n name: zAxis.name || zAxis.dataKey,\n unit: zAxis.unit || '',\n // @ts-expect-error getValueByDataKey does not validate the output type\n value: z,\n payload: entry,\n dataKey: zAxisDataKey,\n type: scatterSettings.tooltipType\n });\n }\n var cx = getCateCoordinateOfLine({\n axis: xAxis,\n ticks: xAxisTicks,\n bandSize: xBandSize,\n entry,\n index,\n dataKey: xAxisDataKey\n });\n var cy = getCateCoordinateOfLine({\n axis: yAxis,\n ticks: yAxisTicks,\n bandSize: yBandSize,\n entry,\n index,\n dataKey: yAxisDataKey\n });\n var size = z !== '-' ? zAxis.scale(z) : defaultZ;\n var radius = Math.sqrt(Math.max(size, 0) / Math.PI);\n return _objectSpread(_objectSpread({}, entry), {}, {\n cx,\n cy,\n x: cx - radius,\n y: cy - radius,\n width: 2 * radius,\n height: 2 * radius,\n size,\n node: {\n x,\n y,\n z\n },\n tooltipPayload,\n tooltipPosition: {\n x: cx,\n y: cy\n },\n payload: entry\n }, cells && cells[index] && cells[index].props);\n });\n}\nvar errorBarDataPointFormatter = (dataPoint, dataKey, direction) => {\n return {\n x: dataPoint.cx,\n y: dataPoint.cy,\n value: direction === 'x' ? +dataPoint.node.x : +dataPoint.node.y,\n // @ts-expect-error getValueByDataKey does not validate the output type\n errorVal: getValueByDataKey(dataPoint, dataKey)\n };\n};\nfunction ScatterWithId(props) {\n var {\n hide,\n points,\n className,\n needClip,\n xAxisId,\n yAxisId,\n id\n } = props;\n var previousPointsRef = useRef(null);\n if (hide) {\n return null;\n }\n var layerClass = clsx('recharts-scatter', className);\n var clipPathId = id;\n return /*#__PURE__*/React.createElement(Layer, {\n className: layerClass,\n clipPath: needClip ? \"url(#clipPath-\".concat(clipPathId, \")\") : null,\n id: id\n }, needClip && /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(GraphicalItemClipPath, {\n clipPathId: clipPathId,\n xAxisId: xAxisId,\n yAxisId: yAxisId\n })), /*#__PURE__*/React.createElement(SetErrorBarContext, {\n xAxisId: xAxisId,\n yAxisId: yAxisId,\n data: points,\n dataPointFormatter: errorBarDataPointFormatter,\n errorBarOffset: 0\n }, /*#__PURE__*/React.createElement(Layer, {\n key: \"recharts-scatter-symbols\"\n }, /*#__PURE__*/React.createElement(SymbolsWithAnimation, {\n props: props,\n previousPointsRef: previousPointsRef\n }))));\n}\nvar defaultScatterProps = {\n xAxisId: 0,\n yAxisId: 0,\n zAxisId: 0,\n legendType: 'circle',\n lineType: 'joint',\n lineJointType: 'linear',\n data: [],\n shape: 'circle',\n hide: false,\n isAnimationActive: !Global.isSsr,\n animationBegin: 0,\n animationDuration: 400,\n animationEasing: 'linear'\n};\nfunction ScatterImpl(props) {\n var _resolveDefaultProps = resolveDefaultProps(props, defaultScatterProps),\n {\n animationBegin,\n animationDuration,\n animationEasing,\n hide,\n isAnimationActive,\n legendType,\n lineJointType,\n lineType,\n shape,\n xAxisId,\n yAxisId,\n zAxisId\n } = _resolveDefaultProps,\n everythingElse = _objectWithoutProperties(_resolveDefaultProps, _excluded3);\n var {\n needClip\n } = useNeedsClip(xAxisId, yAxisId);\n var cells = useMemo(() => findAllByType(props.children, Cell), [props.children]);\n var isPanorama = useIsPanorama();\n var points = useAppSelector(state => {\n return selectScatterPoints(state, xAxisId, yAxisId, zAxisId, props.id, cells, isPanorama);\n });\n if (needClip == null) {\n return null;\n }\n if (points == null) {\n return null;\n }\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SetTooltipEntrySettings, {\n fn: getTooltipEntrySettings,\n args: _objectSpread(_objectSpread({}, props), {}, {\n points\n })\n }), /*#__PURE__*/React.createElement(ScatterWithId, _extends({}, everythingElse, {\n xAxisId: xAxisId,\n yAxisId: yAxisId,\n zAxisId: zAxisId,\n lineType: lineType,\n lineJointType: lineJointType,\n legendType: legendType,\n shape: shape,\n hide: hide,\n isAnimationActive: isAnimationActive,\n animationBegin: animationBegin,\n animationDuration: animationDuration,\n animationEasing: animationEasing,\n points: points,\n needClip: needClip\n })));\n}\nfunction ScatterFn(outsideProps) {\n var props = resolveDefaultProps(outsideProps, defaultScatterProps);\n var isPanorama = useIsPanorama();\n return /*#__PURE__*/React.createElement(RegisterGraphicalItemId, {\n id: props.id,\n type: \"scatter\"\n }, id => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SetLegendPayload, {\n legendPayload: computeLegendPayloadFromScatterProps(props)\n }), /*#__PURE__*/React.createElement(SetCartesianGraphicalItem, {\n type: \"scatter\",\n id: id,\n data: props.data,\n xAxisId: props.xAxisId,\n yAxisId: props.yAxisId,\n zAxisId: props.zAxisId,\n dataKey: props.dataKey,\n hide: props.hide,\n name: props.name,\n tooltipType: props.tooltipType,\n isPanorama: isPanorama\n }), /*#__PURE__*/React.createElement(ScatterImpl, _extends({}, props, {\n id: id\n }))));\n}\nexport var Scatter = /*#__PURE__*/React.memo(ScatterFn);\nScatter.displayName = 'Scatter';","var _excluded = [\"dangerouslySetInnerHTML\", \"ticks\"],\n _excluded2 = [\"id\"],\n _excluded3 = [\"domain\"],\n _excluded4 = [\"domain\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\n/**\n * @fileOverview X Axis\n */\nimport * as React from 'react';\nimport { useEffect } from 'react';\nimport { clsx } from 'clsx';\nimport { CartesianAxis } from './CartesianAxis';\nimport { useAppDispatch, useAppSelector } from '../state/hooks';\nimport { addXAxis, removeXAxis } from '../state/cartesianAxisSlice';\nimport { implicitXAxis, selectAxisScale, selectTicksOfAxis, selectXAxisPosition, selectXAxisSettingsNoDefaults, selectXAxisSize } from '../state/selectors/axisSelectors';\nimport { selectAxisViewBox } from '../state/selectors/selectChartOffsetInternal';\nimport { useIsPanorama } from '../context/PanoramaContext';\nimport { shallowEqual } from '../util/ShallowEqual';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nfunction SetXAxisSettings(settings) {\n var dispatch = useAppDispatch();\n useEffect(() => {\n dispatch(addXAxis(settings));\n return () => {\n dispatch(removeXAxis(settings));\n };\n }, [settings, dispatch]);\n return null;\n}\nvar XAxisImpl = props => {\n var {\n xAxisId,\n className\n } = props;\n var viewBox = useAppSelector(selectAxisViewBox);\n var isPanorama = useIsPanorama();\n var axisType = 'xAxis';\n var scale = useAppSelector(state => selectAxisScale(state, axisType, xAxisId, isPanorama));\n var cartesianTickItems = useAppSelector(state => selectTicksOfAxis(state, axisType, xAxisId, isPanorama));\n var axisSize = useAppSelector(state => selectXAxisSize(state, xAxisId));\n var position = useAppSelector(state => selectXAxisPosition(state, xAxisId));\n /*\n * Here we select settings from the store and prefer to use them instead of the actual props\n * so that the chart is consistent. If we used the props directly, some components will use axis settings\n * from state and some from props and because there is a render step between these two, they might be showing different things.\n * https://github.com/recharts/recharts/issues/6257\n */\n var synchronizedSettings = useAppSelector(state => selectXAxisSettingsNoDefaults(state, xAxisId));\n if (axisSize == null || position == null || synchronizedSettings == null) {\n return null;\n }\n var {\n dangerouslySetInnerHTML,\n ticks\n } = props,\n allOtherProps = _objectWithoutProperties(props, _excluded);\n var {\n id\n } = synchronizedSettings,\n restSynchronizedSettings = _objectWithoutProperties(synchronizedSettings, _excluded2);\n return /*#__PURE__*/React.createElement(CartesianAxis, _extends({}, allOtherProps, restSynchronizedSettings, {\n scale: scale,\n x: position.x,\n y: position.y,\n width: axisSize.width,\n height: axisSize.height,\n className: clsx(\"recharts-\".concat(axisType, \" \").concat(axisType), className),\n viewBox: viewBox,\n ticks: cartesianTickItems\n }));\n};\nvar xAxisDefaultProps = {\n allowDataOverflow: implicitXAxis.allowDataOverflow,\n allowDecimals: implicitXAxis.allowDecimals,\n allowDuplicatedCategory: implicitXAxis.allowDuplicatedCategory,\n height: implicitXAxis.height,\n hide: false,\n mirror: implicitXAxis.mirror,\n orientation: implicitXAxis.orientation,\n padding: implicitXAxis.padding,\n reversed: implicitXAxis.reversed,\n scale: implicitXAxis.scale,\n tickCount: implicitXAxis.tickCount,\n type: implicitXAxis.type,\n xAxisId: 0\n};\nvar XAxisSettingsDispatcher = outsideProps => {\n var _props$interval, _props$includeHidden, _props$angle, _props$minTickGap, _props$tick;\n var props = resolveDefaultProps(outsideProps, xAxisDefaultProps);\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SetXAxisSettings, {\n interval: (_props$interval = props.interval) !== null && _props$interval !== void 0 ? _props$interval : 'preserveEnd',\n id: props.xAxisId,\n scale: props.scale,\n type: props.type,\n padding: props.padding,\n allowDataOverflow: props.allowDataOverflow,\n domain: props.domain,\n dataKey: props.dataKey,\n allowDuplicatedCategory: props.allowDuplicatedCategory,\n allowDecimals: props.allowDecimals,\n tickCount: props.tickCount,\n includeHidden: (_props$includeHidden = props.includeHidden) !== null && _props$includeHidden !== void 0 ? _props$includeHidden : false,\n reversed: props.reversed,\n ticks: props.ticks,\n height: props.height,\n orientation: props.orientation,\n mirror: props.mirror,\n hide: props.hide,\n unit: props.unit,\n name: props.name,\n angle: (_props$angle = props.angle) !== null && _props$angle !== void 0 ? _props$angle : 0,\n minTickGap: (_props$minTickGap = props.minTickGap) !== null && _props$minTickGap !== void 0 ? _props$minTickGap : 5,\n tick: (_props$tick = props.tick) !== null && _props$tick !== void 0 ? _props$tick : true,\n tickFormatter: props.tickFormatter\n }), /*#__PURE__*/React.createElement(XAxisImpl, props));\n};\nvar XAxisMemoComparator = (prevProps, nextProps) => {\n var {\n domain: prevDomain\n } = prevProps,\n prevRest = _objectWithoutProperties(prevProps, _excluded3);\n var {\n domain: nextDomain\n } = nextProps,\n nextRest = _objectWithoutProperties(nextProps, _excluded4);\n if (!shallowEqual(prevRest, nextRest)) {\n return false;\n }\n if (Array.isArray(prevDomain) && prevDomain.length === 2 && Array.isArray(nextDomain) && nextDomain.length === 2) {\n return prevDomain[0] === nextDomain[0] && prevDomain[1] === nextDomain[1];\n }\n return shallowEqual({\n domain: prevDomain\n }, {\n domain: nextDomain\n });\n};\nexport var XAxis = /*#__PURE__*/React.memo(XAxisSettingsDispatcher, XAxisMemoComparator);\nXAxis.displayName = 'XAxis';","var _excluded = [\"dangerouslySetInnerHTML\", \"ticks\"],\n _excluded2 = [\"id\"],\n _excluded3 = [\"domain\"],\n _excluded4 = [\"domain\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from 'react';\nimport { isValidElement, useEffect, useLayoutEffect, useRef } from 'react';\nimport { clsx } from 'clsx';\nimport { CartesianAxis } from './CartesianAxis';\nimport { addYAxis, removeYAxis, updateYAxisWidth } from '../state/cartesianAxisSlice';\nimport { useAppDispatch, useAppSelector } from '../state/hooks';\nimport { implicitYAxis, selectAxisScale, selectTicksOfAxis, selectYAxisPosition, selectYAxisSettingsNoDefaults, selectYAxisSize } from '../state/selectors/axisSelectors';\nimport { selectAxisViewBox } from '../state/selectors/selectChartOffsetInternal';\nimport { useIsPanorama } from '../context/PanoramaContext';\nimport { isLabelContentAFunction } from '../component/Label';\nimport { shallowEqual } from '../util/ShallowEqual';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nfunction SetYAxisSettings(settings) {\n var dispatch = useAppDispatch();\n useEffect(() => {\n dispatch(addYAxis(settings));\n return () => {\n dispatch(removeYAxis(settings));\n };\n }, [settings, dispatch]);\n return null;\n}\nvar YAxisImpl = props => {\n var {\n yAxisId,\n className,\n width,\n label\n } = props;\n var cartesianAxisRef = useRef(null);\n var labelRef = useRef(null);\n var viewBox = useAppSelector(selectAxisViewBox);\n var isPanorama = useIsPanorama();\n var dispatch = useAppDispatch();\n var axisType = 'yAxis';\n var scale = useAppSelector(state => selectAxisScale(state, axisType, yAxisId, isPanorama));\n var axisSize = useAppSelector(state => selectYAxisSize(state, yAxisId));\n var position = useAppSelector(state => selectYAxisPosition(state, yAxisId));\n var cartesianTickItems = useAppSelector(state => selectTicksOfAxis(state, axisType, yAxisId, isPanorama));\n /*\n * Here we select settings from the store and prefer to use them instead of the actual props\n * so that the chart is consistent. If we used the props directly, some components will use axis settings\n * from state and some from props and because there is a render step between these two, they might be showing different things.\n * https://github.com/recharts/recharts/issues/6257\n */\n var synchronizedSettings = useAppSelector(state => selectYAxisSettingsNoDefaults(state, yAxisId));\n useLayoutEffect(() => {\n // No dynamic width calculation is done when width !== 'auto'\n // or when a function/react element is used for label\n if (width !== 'auto' || !axisSize || isLabelContentAFunction(label) || /*#__PURE__*/isValidElement(label) || synchronizedSettings == null) {\n return;\n }\n var axisComponent = cartesianAxisRef.current;\n if (!axisComponent) {\n return;\n }\n var updatedYAxisWidth = axisComponent.getCalculatedWidth();\n\n // if the width has changed, dispatch an action to update the width\n if (Math.round(axisSize.width) !== Math.round(updatedYAxisWidth)) {\n dispatch(updateYAxisWidth({\n id: yAxisId,\n width: updatedYAxisWidth\n }));\n }\n }, [\n // The dependency on cartesianAxisRef.current is not needed because useLayoutEffect will run after every render.\n // The ref will be populated by then.\n // To re-run this effect when ticks change, we can depend on the ticks array from the store.\n cartesianTickItems, axisSize, dispatch, label, yAxisId, width, synchronizedSettings]);\n if (axisSize == null || position == null || synchronizedSettings == null) {\n return null;\n }\n var {\n dangerouslySetInnerHTML,\n ticks\n } = props,\n allOtherProps = _objectWithoutProperties(props, _excluded);\n var {\n id\n } = synchronizedSettings,\n restSynchronizedSettings = _objectWithoutProperties(synchronizedSettings, _excluded2);\n return /*#__PURE__*/React.createElement(CartesianAxis, _extends({}, allOtherProps, restSynchronizedSettings, {\n ref: cartesianAxisRef,\n labelRef: labelRef,\n scale: scale,\n x: position.x,\n y: position.y,\n tickTextProps: width === 'auto' ? {\n width: undefined\n } : {\n width\n },\n width: axisSize.width,\n height: axisSize.height,\n className: clsx(\"recharts-\".concat(axisType, \" \").concat(axisType), className),\n viewBox: viewBox,\n ticks: cartesianTickItems\n }));\n};\nexport var yAxisDefaultProps = {\n allowDataOverflow: implicitYAxis.allowDataOverflow,\n allowDecimals: implicitYAxis.allowDecimals,\n allowDuplicatedCategory: implicitYAxis.allowDuplicatedCategory,\n hide: false,\n mirror: implicitYAxis.mirror,\n orientation: implicitYAxis.orientation,\n padding: implicitYAxis.padding,\n reversed: implicitYAxis.reversed,\n scale: implicitYAxis.scale,\n tickCount: implicitYAxis.tickCount,\n type: implicitYAxis.type,\n width: implicitYAxis.width,\n yAxisId: 0\n};\nvar YAxisSettingsDispatcher = outsideProps => {\n var _props$interval, _props$includeHidden, _props$angle, _props$minTickGap, _props$tick;\n var props = resolveDefaultProps(outsideProps, yAxisDefaultProps);\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SetYAxisSettings, {\n interval: (_props$interval = props.interval) !== null && _props$interval !== void 0 ? _props$interval : 'preserveEnd',\n id: props.yAxisId,\n scale: props.scale,\n type: props.type,\n domain: props.domain,\n allowDataOverflow: props.allowDataOverflow,\n dataKey: props.dataKey,\n allowDuplicatedCategory: props.allowDuplicatedCategory,\n allowDecimals: props.allowDecimals,\n tickCount: props.tickCount,\n padding: props.padding,\n includeHidden: (_props$includeHidden = props.includeHidden) !== null && _props$includeHidden !== void 0 ? _props$includeHidden : false,\n reversed: props.reversed,\n ticks: props.ticks,\n width: props.width,\n orientation: props.orientation,\n mirror: props.mirror,\n hide: props.hide,\n unit: props.unit,\n name: props.name,\n angle: (_props$angle = props.angle) !== null && _props$angle !== void 0 ? _props$angle : 0,\n minTickGap: (_props$minTickGap = props.minTickGap) !== null && _props$minTickGap !== void 0 ? _props$minTickGap : 5,\n tick: (_props$tick = props.tick) !== null && _props$tick !== void 0 ? _props$tick : true,\n tickFormatter: props.tickFormatter\n }), /*#__PURE__*/React.createElement(YAxisImpl, props));\n};\nvar YAxisMemoComparator = (prevProps, nextProps) => {\n var {\n domain: prevDomain\n } = prevProps,\n prevRest = _objectWithoutProperties(prevProps, _excluded3);\n var {\n domain: nextDomain\n } = nextProps,\n nextRest = _objectWithoutProperties(nextProps, _excluded4);\n if (!shallowEqual(prevRest, nextRest)) {\n return false;\n }\n if (Array.isArray(prevDomain) && prevDomain.length === 2 && Array.isArray(nextDomain) && nextDomain.length === 2) {\n return prevDomain[0] === nextDomain[0] && prevDomain[1] === nextDomain[1];\n }\n return shallowEqual({\n domain: prevDomain\n }, {\n domain: nextDomain\n });\n};\nexport var YAxis = /*#__PURE__*/React.memo(YAxisSettingsDispatcher, YAxisMemoComparator);\nYAxis.displayName = 'YAxis';","/**\n * @license React\n * use-sync-external-store-with-selector.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\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\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = React.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\nexports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/use-sync-external-store-with-selector.production.js');\n} else {\n module.exports = require('./cjs/use-sync-external-store-with-selector.development.js');\n}\n","// src/utils/react.ts\nimport * as React from \"react\";\n\n// src/utils/react-is.ts\nvar IS_REACT_19 = /* @__PURE__ */ React.version.startsWith(\"19\");\nvar REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for(\n IS_REACT_19 ? \"react.transitional.element\" : \"react.element\"\n);\nvar REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for(\"react.portal\");\nvar REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for(\"react.fragment\");\nvar REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for(\"react.strict_mode\");\nvar REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for(\"react.profiler\");\nvar REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for(\"react.consumer\");\nvar REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for(\"react.context\");\nvar REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for(\"react.forward_ref\");\nvar REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for(\"react.suspense\");\nvar REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for(\n \"react.suspense_list\"\n);\nvar REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for(\"react.memo\");\nvar REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for(\"react.lazy\");\nvar REACT_OFFSCREEN_TYPE = /* @__PURE__ */ Symbol.for(\"react.offscreen\");\nvar REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for(\n \"react.client.reference\"\n);\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nfunction isValidElementType(type) {\n return typeof type === \"string\" || typeof type === \"function\" || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || typeof type === \"object\" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || type.getModuleId !== void 0) ? true : false;\n}\nfunction typeOf(object) {\n if (typeof object === \"object\" && object !== null) {\n const { $$typeof } = object;\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n switch (object = object.type, object) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n return object;\n default:\n switch (object = object && object.$$typeof, object) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n return object;\n case REACT_CONSUMER_TYPE:\n return object;\n default:\n return $$typeof;\n }\n }\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n}\nfunction isContextConsumer(object) {\n return IS_REACT_19 ? typeOf(object) === REACT_CONSUMER_TYPE : typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\n\n// src/utils/warning.ts\nfunction warning(message) {\n if (typeof console !== \"undefined\" && typeof console.error === \"function\") {\n console.error(message);\n }\n try {\n throw new Error(message);\n } catch (e) {\n }\n}\n\n// src/connect/verifySubselectors.ts\nfunction verify(selector, methodName) {\n if (!selector) {\n throw new Error(`Unexpected value for ${methodName} in connect.`);\n } else if (methodName === \"mapStateToProps\" || methodName === \"mapDispatchToProps\") {\n if (!Object.prototype.hasOwnProperty.call(selector, \"dependsOnOwnProps\")) {\n warning(\n `The selector for ${methodName} of connect did not specify a value for dependsOnOwnProps.`\n );\n }\n }\n}\nfunction verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps) {\n verify(mapStateToProps, \"mapStateToProps\");\n verify(mapDispatchToProps, \"mapDispatchToProps\");\n verify(mergeProps, \"mergeProps\");\n}\n\n// src/connect/selectorFactory.ts\nfunction pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, {\n areStatesEqual,\n areOwnPropsEqual,\n areStatePropsEqual\n}) {\n let hasRunAtLeastOnce = false;\n let state;\n let ownProps;\n let stateProps;\n let dispatchProps;\n let mergedProps;\n function handleFirstCall(firstState, firstOwnProps) {\n state = firstState;\n ownProps = firstOwnProps;\n stateProps = mapStateToProps(state, ownProps);\n dispatchProps = mapDispatchToProps(dispatch, ownProps);\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n hasRunAtLeastOnce = true;\n return mergedProps;\n }\n function handleNewPropsAndNewState() {\n stateProps = mapStateToProps(state, ownProps);\n if (mapDispatchToProps.dependsOnOwnProps)\n dispatchProps = mapDispatchToProps(dispatch, ownProps);\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n return mergedProps;\n }\n function handleNewProps() {\n if (mapStateToProps.dependsOnOwnProps)\n stateProps = mapStateToProps(state, ownProps);\n if (mapDispatchToProps.dependsOnOwnProps)\n dispatchProps = mapDispatchToProps(dispatch, ownProps);\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n return mergedProps;\n }\n function handleNewState() {\n const nextStateProps = mapStateToProps(state, ownProps);\n const statePropsChanged = !areStatePropsEqual(nextStateProps, stateProps);\n stateProps = nextStateProps;\n if (statePropsChanged)\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n return mergedProps;\n }\n function handleSubsequentCalls(nextState, nextOwnProps) {\n const propsChanged = !areOwnPropsEqual(nextOwnProps, ownProps);\n const stateChanged = !areStatesEqual(\n nextState,\n state,\n nextOwnProps,\n ownProps\n );\n state = nextState;\n ownProps = nextOwnProps;\n if (propsChanged && stateChanged) return handleNewPropsAndNewState();\n if (propsChanged) return handleNewProps();\n if (stateChanged) return handleNewState();\n return mergedProps;\n }\n return function pureFinalPropsSelector(nextState, nextOwnProps) {\n return hasRunAtLeastOnce ? handleSubsequentCalls(nextState, nextOwnProps) : handleFirstCall(nextState, nextOwnProps);\n };\n}\nfunction finalPropsSelectorFactory(dispatch, {\n initMapStateToProps,\n initMapDispatchToProps,\n initMergeProps,\n ...options\n}) {\n const mapStateToProps = initMapStateToProps(dispatch, options);\n const mapDispatchToProps = initMapDispatchToProps(dispatch, options);\n const mergeProps = initMergeProps(dispatch, options);\n if (process.env.NODE_ENV !== \"production\") {\n verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps);\n }\n return pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);\n}\n\n// src/utils/bindActionCreators.ts\nfunction bindActionCreators(actionCreators, dispatch) {\n const boundActionCreators = {};\n for (const key in actionCreators) {\n const actionCreator = actionCreators[key];\n if (typeof actionCreator === \"function\") {\n boundActionCreators[key] = (...args) => dispatch(actionCreator(...args));\n }\n }\n return boundActionCreators;\n}\n\n// src/utils/isPlainObject.ts\nfunction isPlainObject(obj) {\n if (typeof obj !== \"object\" || obj === null) return false;\n const proto = Object.getPrototypeOf(obj);\n if (proto === null) return true;\n let baseProto = proto;\n while (Object.getPrototypeOf(baseProto) !== null) {\n baseProto = Object.getPrototypeOf(baseProto);\n }\n return proto === baseProto;\n}\n\n// src/utils/verifyPlainObject.ts\nfunction verifyPlainObject(value, displayName, methodName) {\n if (!isPlainObject(value)) {\n warning(\n `${methodName}() in ${displayName} must return a plain object. Instead received ${value}.`\n );\n }\n}\n\n// src/connect/wrapMapToProps.ts\nfunction wrapMapToPropsConstant(getConstant) {\n return function initConstantSelector(dispatch) {\n const constant = getConstant(dispatch);\n function constantSelector() {\n return constant;\n }\n constantSelector.dependsOnOwnProps = false;\n return constantSelector;\n };\n}\nfunction getDependsOnOwnProps(mapToProps) {\n return mapToProps.dependsOnOwnProps ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1;\n}\nfunction wrapMapToPropsFunc(mapToProps, methodName) {\n return function initProxySelector(dispatch, { displayName }) {\n const proxy = function mapToPropsProxy(stateOrDispatch, ownProps) {\n return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch, void 0);\n };\n proxy.dependsOnOwnProps = true;\n proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) {\n proxy.mapToProps = mapToProps;\n proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps);\n let props = proxy(stateOrDispatch, ownProps);\n if (typeof props === \"function\") {\n proxy.mapToProps = props;\n proxy.dependsOnOwnProps = getDependsOnOwnProps(props);\n props = proxy(stateOrDispatch, ownProps);\n }\n if (process.env.NODE_ENV !== \"production\")\n verifyPlainObject(props, displayName, methodName);\n return props;\n };\n return proxy;\n };\n}\n\n// src/connect/invalidArgFactory.ts\nfunction createInvalidArgFactory(arg, name) {\n return (dispatch, options) => {\n throw new Error(\n `Invalid value of type ${typeof arg} for ${name} argument when connecting component ${options.wrappedComponentName}.`\n );\n };\n}\n\n// src/connect/mapDispatchToProps.ts\nfunction mapDispatchToPropsFactory(mapDispatchToProps) {\n return mapDispatchToProps && typeof mapDispatchToProps === \"object\" ? wrapMapToPropsConstant(\n (dispatch) => (\n // @ts-ignore\n bindActionCreators(mapDispatchToProps, dispatch)\n )\n ) : !mapDispatchToProps ? wrapMapToPropsConstant((dispatch) => ({\n dispatch\n })) : typeof mapDispatchToProps === \"function\" ? (\n // @ts-ignore\n wrapMapToPropsFunc(mapDispatchToProps, \"mapDispatchToProps\")\n ) : createInvalidArgFactory(mapDispatchToProps, \"mapDispatchToProps\");\n}\n\n// src/connect/mapStateToProps.ts\nfunction mapStateToPropsFactory(mapStateToProps) {\n return !mapStateToProps ? wrapMapToPropsConstant(() => ({})) : typeof mapStateToProps === \"function\" ? (\n // @ts-ignore\n wrapMapToPropsFunc(mapStateToProps, \"mapStateToProps\")\n ) : createInvalidArgFactory(mapStateToProps, \"mapStateToProps\");\n}\n\n// src/connect/mergeProps.ts\nfunction defaultMergeProps(stateProps, dispatchProps, ownProps) {\n return { ...ownProps, ...stateProps, ...dispatchProps };\n}\nfunction wrapMergePropsFunc(mergeProps) {\n return function initMergePropsProxy(dispatch, { displayName, areMergedPropsEqual }) {\n let hasRunOnce = false;\n let mergedProps;\n return function mergePropsProxy(stateProps, dispatchProps, ownProps) {\n const nextMergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n if (hasRunOnce) {\n if (!areMergedPropsEqual(nextMergedProps, mergedProps))\n mergedProps = nextMergedProps;\n } else {\n hasRunOnce = true;\n mergedProps = nextMergedProps;\n if (process.env.NODE_ENV !== \"production\")\n verifyPlainObject(mergedProps, displayName, \"mergeProps\");\n }\n return mergedProps;\n };\n };\n}\nfunction mergePropsFactory(mergeProps) {\n return !mergeProps ? () => defaultMergeProps : typeof mergeProps === \"function\" ? wrapMergePropsFunc(mergeProps) : createInvalidArgFactory(mergeProps, \"mergeProps\");\n}\n\n// src/utils/batch.ts\nfunction defaultNoopBatch(callback) {\n callback();\n}\n\n// src/utils/Subscription.ts\nfunction createListenerCollection() {\n let first = null;\n let last = null;\n return {\n clear() {\n first = null;\n last = null;\n },\n notify() {\n defaultNoopBatch(() => {\n let listener = first;\n while (listener) {\n listener.callback();\n listener = listener.next;\n }\n });\n },\n get() {\n const listeners = [];\n let listener = first;\n while (listener) {\n listeners.push(listener);\n listener = listener.next;\n }\n return listeners;\n },\n subscribe(callback) {\n let isSubscribed = true;\n const listener = last = {\n callback,\n next: null,\n prev: last\n };\n if (listener.prev) {\n listener.prev.next = listener;\n } else {\n first = listener;\n }\n return function unsubscribe() {\n if (!isSubscribed || first === null) return;\n isSubscribed = false;\n if (listener.next) {\n listener.next.prev = listener.prev;\n } else {\n last = listener.prev;\n }\n if (listener.prev) {\n listener.prev.next = listener.next;\n } else {\n first = listener.next;\n }\n };\n }\n };\n}\nvar nullListeners = {\n notify() {\n },\n get: () => []\n};\nfunction createSubscription(store, parentSub) {\n let unsubscribe;\n let listeners = nullListeners;\n let subscriptionsAmount = 0;\n let selfSubscribed = false;\n function addNestedSub(listener) {\n trySubscribe();\n const cleanupListener = listeners.subscribe(listener);\n let removed = false;\n return () => {\n if (!removed) {\n removed = true;\n cleanupListener();\n tryUnsubscribe();\n }\n };\n }\n function notifyNestedSubs() {\n listeners.notify();\n }\n function handleChangeWrapper() {\n if (subscription.onStateChange) {\n subscription.onStateChange();\n }\n }\n function isSubscribed() {\n return selfSubscribed;\n }\n function trySubscribe() {\n subscriptionsAmount++;\n if (!unsubscribe) {\n unsubscribe = parentSub ? parentSub.addNestedSub(handleChangeWrapper) : store.subscribe(handleChangeWrapper);\n listeners = createListenerCollection();\n }\n }\n function tryUnsubscribe() {\n subscriptionsAmount--;\n if (unsubscribe && subscriptionsAmount === 0) {\n unsubscribe();\n unsubscribe = void 0;\n listeners.clear();\n listeners = nullListeners;\n }\n }\n function trySubscribeSelf() {\n if (!selfSubscribed) {\n selfSubscribed = true;\n trySubscribe();\n }\n }\n function tryUnsubscribeSelf() {\n if (selfSubscribed) {\n selfSubscribed = false;\n tryUnsubscribe();\n }\n }\n const subscription = {\n addNestedSub,\n notifyNestedSubs,\n handleChangeWrapper,\n isSubscribed,\n trySubscribe: trySubscribeSelf,\n tryUnsubscribe: tryUnsubscribeSelf,\n getListeners: () => listeners\n };\n return subscription;\n}\n\n// src/utils/useIsomorphicLayoutEffect.ts\nvar canUseDOM = () => !!(typeof window !== \"undefined\" && typeof window.document !== \"undefined\" && typeof window.document.createElement !== \"undefined\");\nvar isDOM = /* @__PURE__ */ canUseDOM();\nvar isRunningInReactNative = () => typeof navigator !== \"undefined\" && navigator.product === \"ReactNative\";\nvar isReactNative = /* @__PURE__ */ isRunningInReactNative();\nvar getUseIsomorphicLayoutEffect = () => isDOM || isReactNative ? React.useLayoutEffect : React.useEffect;\nvar useIsomorphicLayoutEffect = /* @__PURE__ */ getUseIsomorphicLayoutEffect();\n\n// src/utils/shallowEqual.ts\nfunction is(x, y) {\n if (x === y) {\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\n } else {\n return x !== x && y !== y;\n }\n}\nfunction shallowEqual(objA, objB) {\n if (is(objA, objB)) return true;\n if (typeof objA !== \"object\" || objA === null || typeof objB !== \"object\" || objB === null) {\n return false;\n }\n const keysA = Object.keys(objA);\n const keysB = Object.keys(objB);\n if (keysA.length !== keysB.length) return false;\n for (let i = 0; i < keysA.length; i++) {\n if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {\n return false;\n }\n }\n return true;\n}\n\n// src/utils/hoistStatics.ts\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n $$typeof: true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n $$typeof: true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {\n [ForwardRef]: FORWARD_REF_STATICS,\n [Memo]: MEMO_STATICS\n};\nfunction getStatics(component) {\n if (isMemo(component)) {\n return MEMO_STATICS;\n }\n return TYPE_STATICS[component[\"$$typeof\"]] || REACT_STATICS;\n}\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent) {\n if (typeof sourceComponent !== \"string\") {\n if (objectPrototype) {\n const inheritedComponent = getPrototypeOf(sourceComponent);\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent);\n }\n }\n let keys = getOwnPropertyNames(sourceComponent);\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n const targetStatics = getStatics(targetComponent);\n const sourceStatics = getStatics(sourceComponent);\n for (let i = 0; i < keys.length; ++i) {\n const key = keys[i];\n if (!KNOWN_STATICS[key] && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n const descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n try {\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {\n }\n }\n }\n }\n return targetComponent;\n}\n\n// src/components/Context.ts\nvar ContextKey = /* @__PURE__ */ Symbol.for(`react-redux-context`);\nvar gT = typeof globalThis !== \"undefined\" ? globalThis : (\n /* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */\n {}\n);\nfunction getContext() {\n if (!React.createContext) return {};\n const contextMap = gT[ContextKey] ??= /* @__PURE__ */ new Map();\n let realContext = contextMap.get(React.createContext);\n if (!realContext) {\n realContext = React.createContext(\n null\n );\n if (process.env.NODE_ENV !== \"production\") {\n realContext.displayName = \"ReactRedux\";\n }\n contextMap.set(React.createContext, realContext);\n }\n return realContext;\n}\nvar ReactReduxContext = /* @__PURE__ */ getContext();\n\n// src/components/connect.tsx\nvar NO_SUBSCRIPTION_ARRAY = [null, null];\nvar stringifyComponent = (Comp) => {\n try {\n return JSON.stringify(Comp);\n } catch (err) {\n return String(Comp);\n }\n};\nfunction useIsomorphicLayoutEffectWithArgs(effectFunc, effectArgs, dependencies) {\n useIsomorphicLayoutEffect(() => effectFunc(...effectArgs), dependencies);\n}\nfunction captureWrapperProps(lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, childPropsFromStoreUpdate, notifyNestedSubs) {\n lastWrapperProps.current = wrapperProps;\n renderIsScheduled.current = false;\n if (childPropsFromStoreUpdate.current) {\n childPropsFromStoreUpdate.current = null;\n notifyNestedSubs();\n }\n}\nfunction subscribeUpdates(shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, isMounted, childPropsFromStoreUpdate, notifyNestedSubs, additionalSubscribeListener) {\n if (!shouldHandleStateChanges) return () => {\n };\n let didUnsubscribe = false;\n let lastThrownError = null;\n const checkForUpdates = () => {\n if (didUnsubscribe || !isMounted.current) {\n return;\n }\n const latestStoreState = store.getState();\n let newChildProps, error;\n try {\n newChildProps = childPropsSelector(\n latestStoreState,\n lastWrapperProps.current\n );\n } catch (e) {\n error = e;\n lastThrownError = e;\n }\n if (!error) {\n lastThrownError = null;\n }\n if (newChildProps === lastChildProps.current) {\n if (!renderIsScheduled.current) {\n notifyNestedSubs();\n }\n } else {\n lastChildProps.current = newChildProps;\n childPropsFromStoreUpdate.current = newChildProps;\n renderIsScheduled.current = true;\n additionalSubscribeListener();\n }\n };\n subscription.onStateChange = checkForUpdates;\n subscription.trySubscribe();\n checkForUpdates();\n const unsubscribeWrapper = () => {\n didUnsubscribe = true;\n subscription.tryUnsubscribe();\n subscription.onStateChange = null;\n if (lastThrownError) {\n throw lastThrownError;\n }\n };\n return unsubscribeWrapper;\n}\nfunction strictEqual(a, b) {\n return a === b;\n}\nvar hasWarnedAboutDeprecatedPureOption = false;\nfunction connect(mapStateToProps, mapDispatchToProps, mergeProps, {\n // The `pure` option has been removed, so TS doesn't like us destructuring this to check its existence.\n // @ts-ignore\n pure,\n areStatesEqual = strictEqual,\n areOwnPropsEqual = shallowEqual,\n areStatePropsEqual = shallowEqual,\n areMergedPropsEqual = shallowEqual,\n // use React's forwardRef to expose a ref of the wrapped component\n forwardRef = false,\n // the context consumer to use\n context = ReactReduxContext\n} = {}) {\n if (process.env.NODE_ENV !== \"production\") {\n if (pure !== void 0 && !hasWarnedAboutDeprecatedPureOption) {\n hasWarnedAboutDeprecatedPureOption = true;\n warning(\n 'The `pure` option has been removed. `connect` is now always a \"pure/memoized\" component'\n );\n }\n }\n const Context = context;\n const initMapStateToProps = mapStateToPropsFactory(mapStateToProps);\n const initMapDispatchToProps = mapDispatchToPropsFactory(mapDispatchToProps);\n const initMergeProps = mergePropsFactory(mergeProps);\n const shouldHandleStateChanges = Boolean(mapStateToProps);\n const wrapWithConnect = (WrappedComponent) => {\n if (process.env.NODE_ENV !== \"production\") {\n const isValid = /* @__PURE__ */ isValidElementType(WrappedComponent);\n if (!isValid)\n throw new Error(\n `You must pass a component to the function returned by connect. Instead received ${stringifyComponent(\n WrappedComponent\n )}`\n );\n }\n const wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || \"Component\";\n const displayName = `Connect(${wrappedComponentName})`;\n const selectorFactoryOptions = {\n shouldHandleStateChanges,\n displayName,\n wrappedComponentName,\n WrappedComponent,\n // @ts-ignore\n initMapStateToProps,\n initMapDispatchToProps,\n initMergeProps,\n areStatesEqual,\n areStatePropsEqual,\n areOwnPropsEqual,\n areMergedPropsEqual\n };\n function ConnectFunction(props) {\n const [propsContext, reactReduxForwardedRef, wrapperProps] = React.useMemo(() => {\n const { reactReduxForwardedRef: reactReduxForwardedRef2, ...wrapperProps2 } = props;\n return [props.context, reactReduxForwardedRef2, wrapperProps2];\n }, [props]);\n const ContextToUse = React.useMemo(() => {\n let ResultContext = Context;\n if (propsContext?.Consumer) {\n if (process.env.NODE_ENV !== \"production\") {\n const isValid = /* @__PURE__ */ isContextConsumer(\n // @ts-ignore\n /* @__PURE__ */ React.createElement(propsContext.Consumer, null)\n );\n if (!isValid) {\n throw new Error(\n \"You must pass a valid React context consumer as `props.context`\"\n );\n }\n ResultContext = propsContext;\n }\n }\n return ResultContext;\n }, [propsContext, Context]);\n const contextValue = React.useContext(ContextToUse);\n const didStoreComeFromProps = Boolean(props.store) && Boolean(props.store.getState) && Boolean(props.store.dispatch);\n const didStoreComeFromContext = Boolean(contextValue) && Boolean(contextValue.store);\n if (process.env.NODE_ENV !== \"production\" && !didStoreComeFromProps && !didStoreComeFromContext) {\n throw new Error(\n `Could not find \"store\" in the context of \"${displayName}\". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${displayName} in connect options.`\n );\n }\n const store = didStoreComeFromProps ? props.store : contextValue.store;\n const getServerState = didStoreComeFromContext ? contextValue.getServerState : store.getState;\n const childPropsSelector = React.useMemo(() => {\n return finalPropsSelectorFactory(store.dispatch, selectorFactoryOptions);\n }, [store]);\n const [subscription, notifyNestedSubs] = React.useMemo(() => {\n if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY;\n const subscription2 = createSubscription(\n store,\n didStoreComeFromProps ? void 0 : contextValue.subscription\n );\n const notifyNestedSubs2 = subscription2.notifyNestedSubs.bind(subscription2);\n return [subscription2, notifyNestedSubs2];\n }, [store, didStoreComeFromProps, contextValue]);\n const overriddenContextValue = React.useMemo(() => {\n if (didStoreComeFromProps) {\n return contextValue;\n }\n return {\n ...contextValue,\n subscription\n };\n }, [didStoreComeFromProps, contextValue, subscription]);\n const lastChildProps = React.useRef(void 0);\n const lastWrapperProps = React.useRef(wrapperProps);\n const childPropsFromStoreUpdate = React.useRef(void 0);\n const renderIsScheduled = React.useRef(false);\n const isMounted = React.useRef(false);\n const latestSubscriptionCallbackError = React.useRef(\n void 0\n );\n useIsomorphicLayoutEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n const actualChildPropsSelector = React.useMemo(() => {\n const selector = () => {\n if (childPropsFromStoreUpdate.current && wrapperProps === lastWrapperProps.current) {\n return childPropsFromStoreUpdate.current;\n }\n return childPropsSelector(store.getState(), wrapperProps);\n };\n return selector;\n }, [store, wrapperProps]);\n const subscribeForReact = React.useMemo(() => {\n const subscribe = (reactListener) => {\n if (!subscription) {\n return () => {\n };\n }\n return subscribeUpdates(\n shouldHandleStateChanges,\n store,\n subscription,\n // @ts-ignore\n childPropsSelector,\n lastWrapperProps,\n lastChildProps,\n renderIsScheduled,\n isMounted,\n childPropsFromStoreUpdate,\n notifyNestedSubs,\n reactListener\n );\n };\n return subscribe;\n }, [subscription]);\n useIsomorphicLayoutEffectWithArgs(captureWrapperProps, [\n lastWrapperProps,\n lastChildProps,\n renderIsScheduled,\n wrapperProps,\n childPropsFromStoreUpdate,\n notifyNestedSubs\n ]);\n let actualChildProps;\n try {\n actualChildProps = React.useSyncExternalStore(\n // TODO We're passing through a big wrapper that does a bunch of extra side effects besides subscribing\n subscribeForReact,\n // TODO This is incredibly hacky. We've already processed the store update and calculated new child props,\n // TODO and we're just passing that through so it triggers a re-render for us rather than relying on `uSES`.\n actualChildPropsSelector,\n getServerState ? () => childPropsSelector(getServerState(), wrapperProps) : actualChildPropsSelector\n );\n } catch (err) {\n if (latestSubscriptionCallbackError.current) {\n ;\n err.message += `\nThe error may be correlated with this previous error:\n${latestSubscriptionCallbackError.current.stack}\n\n`;\n }\n throw err;\n }\n useIsomorphicLayoutEffect(() => {\n latestSubscriptionCallbackError.current = void 0;\n childPropsFromStoreUpdate.current = void 0;\n lastChildProps.current = actualChildProps;\n });\n const renderedWrappedComponent = React.useMemo(() => {\n return (\n // @ts-ignore\n /* @__PURE__ */ React.createElement(\n WrappedComponent,\n {\n ...actualChildProps,\n ref: reactReduxForwardedRef\n }\n )\n );\n }, [reactReduxForwardedRef, WrappedComponent, actualChildProps]);\n const renderedChild = React.useMemo(() => {\n if (shouldHandleStateChanges) {\n return /* @__PURE__ */ React.createElement(ContextToUse.Provider, { value: overriddenContextValue }, renderedWrappedComponent);\n }\n return renderedWrappedComponent;\n }, [ContextToUse, renderedWrappedComponent, overriddenContextValue]);\n return renderedChild;\n }\n const _Connect = React.memo(ConnectFunction);\n const Connect = _Connect;\n Connect.WrappedComponent = WrappedComponent;\n Connect.displayName = ConnectFunction.displayName = displayName;\n if (forwardRef) {\n const _forwarded = React.forwardRef(\n function forwardConnectRef(props, ref) {\n return /* @__PURE__ */ React.createElement(Connect, { ...props, reactReduxForwardedRef: ref });\n }\n );\n const forwarded = _forwarded;\n forwarded.displayName = displayName;\n forwarded.WrappedComponent = WrappedComponent;\n return /* @__PURE__ */ hoistNonReactStatics(forwarded, WrappedComponent);\n }\n return /* @__PURE__ */ hoistNonReactStatics(Connect, WrappedComponent);\n };\n return wrapWithConnect;\n}\nvar connect_default = connect;\n\n// src/components/Provider.tsx\nfunction Provider(providerProps) {\n const { children, context, serverState, store } = providerProps;\n const contextValue = React.useMemo(() => {\n const subscription = createSubscription(store);\n const baseContextValue = {\n store,\n subscription,\n getServerState: serverState ? () => serverState : void 0\n };\n if (process.env.NODE_ENV === \"production\") {\n return baseContextValue;\n } else {\n const { identityFunctionCheck = \"once\", stabilityCheck = \"once\" } = providerProps;\n return /* @__PURE__ */ Object.assign(baseContextValue, {\n stabilityCheck,\n identityFunctionCheck\n });\n }\n }, [store, serverState]);\n const previousState = React.useMemo(() => store.getState(), [store]);\n useIsomorphicLayoutEffect(() => {\n const { subscription } = contextValue;\n subscription.onStateChange = subscription.notifyNestedSubs;\n subscription.trySubscribe();\n if (previousState !== store.getState()) {\n subscription.notifyNestedSubs();\n }\n return () => {\n subscription.tryUnsubscribe();\n subscription.onStateChange = void 0;\n };\n }, [contextValue, previousState]);\n const Context = context || ReactReduxContext;\n return /* @__PURE__ */ React.createElement(Context.Provider, { value: contextValue }, children);\n}\nvar Provider_default = Provider;\n\n// src/hooks/useReduxContext.ts\nfunction createReduxContextHook(context = ReactReduxContext) {\n return function useReduxContext2() {\n const contextValue = React.useContext(context);\n if (process.env.NODE_ENV !== \"production\" && !contextValue) {\n throw new Error(\n \"could not find react-redux context value; please ensure the component is wrapped in a <Provider>\"\n );\n }\n return contextValue;\n };\n}\nvar useReduxContext = /* @__PURE__ */ createReduxContextHook();\n\n// src/hooks/useStore.ts\nfunction createStoreHook(context = ReactReduxContext) {\n const useReduxContext2 = context === ReactReduxContext ? useReduxContext : (\n // @ts-ignore\n createReduxContextHook(context)\n );\n const useStore2 = () => {\n const { store } = useReduxContext2();\n return store;\n };\n Object.assign(useStore2, {\n withTypes: () => useStore2\n });\n return useStore2;\n}\nvar useStore = /* @__PURE__ */ createStoreHook();\n\n// src/hooks/useDispatch.ts\nfunction createDispatchHook(context = ReactReduxContext) {\n const useStore2 = context === ReactReduxContext ? useStore : createStoreHook(context);\n const useDispatch2 = () => {\n const store = useStore2();\n return store.dispatch;\n };\n Object.assign(useDispatch2, {\n withTypes: () => useDispatch2\n });\n return useDispatch2;\n}\nvar useDispatch = /* @__PURE__ */ createDispatchHook();\n\n// src/hooks/useSelector.ts\nimport { useSyncExternalStoreWithSelector } from \"use-sync-external-store/with-selector.js\";\nvar refEquality = (a, b) => a === b;\nfunction createSelectorHook(context = ReactReduxContext) {\n const useReduxContext2 = context === ReactReduxContext ? useReduxContext : createReduxContextHook(context);\n const useSelector2 = (selector, equalityFnOrOptions = {}) => {\n const { equalityFn = refEquality } = typeof equalityFnOrOptions === \"function\" ? { equalityFn: equalityFnOrOptions } : equalityFnOrOptions;\n if (process.env.NODE_ENV !== \"production\") {\n if (!selector) {\n throw new Error(`You must pass a selector to useSelector`);\n }\n if (typeof selector !== \"function\") {\n throw new Error(`You must pass a function as a selector to useSelector`);\n }\n if (typeof equalityFn !== \"function\") {\n throw new Error(\n `You must pass a function as an equality function to useSelector`\n );\n }\n }\n const reduxContext = useReduxContext2();\n const { store, subscription, getServerState } = reduxContext;\n const firstRun = React.useRef(true);\n const wrappedSelector = React.useCallback(\n {\n [selector.name](state) {\n const selected = selector(state);\n if (process.env.NODE_ENV !== \"production\") {\n const { devModeChecks = {} } = typeof equalityFnOrOptions === \"function\" ? {} : equalityFnOrOptions;\n const { identityFunctionCheck, stabilityCheck } = reduxContext;\n const {\n identityFunctionCheck: finalIdentityFunctionCheck,\n stabilityCheck: finalStabilityCheck\n } = {\n stabilityCheck,\n identityFunctionCheck,\n ...devModeChecks\n };\n if (finalStabilityCheck === \"always\" || finalStabilityCheck === \"once\" && firstRun.current) {\n const toCompare = selector(state);\n if (!equalityFn(selected, toCompare)) {\n let stack = void 0;\n try {\n throw new Error();\n } catch (e) {\n ;\n ({ stack } = e);\n }\n console.warn(\n \"Selector \" + (selector.name || \"unknown\") + \" returned a different result when called with the same parameters. This can lead to unnecessary rerenders.\\nSelectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization\",\n {\n state,\n selected,\n selected2: toCompare,\n stack\n }\n );\n }\n }\n if (finalIdentityFunctionCheck === \"always\" || finalIdentityFunctionCheck === \"once\" && firstRun.current) {\n if (selected === state) {\n let stack = void 0;\n try {\n throw new Error();\n } catch (e) {\n ;\n ({ stack } = e);\n }\n console.warn(\n \"Selector \" + (selector.name || \"unknown\") + \" returned the root state when called. This can lead to unnecessary rerenders.\\nSelectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.\",\n { stack }\n );\n }\n }\n if (firstRun.current) firstRun.current = false;\n }\n return selected;\n }\n }[selector.name],\n [selector]\n );\n const selectedState = useSyncExternalStoreWithSelector(\n subscription.addNestedSub,\n store.getState,\n getServerState || store.getState,\n wrappedSelector,\n equalityFn\n );\n React.useDebugValue(selectedState);\n return selectedState;\n };\n Object.assign(useSelector2, {\n withTypes: () => useSelector2\n });\n return useSelector2;\n}\nvar useSelector = /* @__PURE__ */ createSelectorHook();\n\n// src/exports.ts\nvar batch = defaultNoopBatch;\nexport {\n Provider_default as Provider,\n ReactReduxContext,\n batch,\n connect_default as connect,\n createDispatchHook,\n createSelectorHook,\n createStoreHook,\n shallowEqual,\n useDispatch,\n useSelector,\n useStore\n};\n//# sourceMappingURL=react-redux.mjs.map","import { createSelector } from 'reselect';\nimport { selectChartLayout } from '../../context/chartLayoutContext';\nimport { selectTooltipAxisRangeWithReverse, selectTooltipAxisTicks } from './tooltipSelectors';\nimport { selectChartOffsetInternal } from './selectChartOffsetInternal';\nimport { combineActiveProps, selectOrderedTooltipTicks } from './selectors';\nimport { selectPolarViewBox } from './polarAxisSelectors';\nimport { selectTooltipAxisType } from './selectTooltipAxisType';\nvar pickChartPointer = (_state, chartPointer) => chartPointer;\nexport var selectActivePropsFromChartPointer = createSelector([pickChartPointer, selectChartLayout, selectPolarViewBox, selectTooltipAxisType, selectTooltipAxisRangeWithReverse, selectTooltipAxisTicks, selectOrderedTooltipTicks, selectChartOffsetInternal], combineActiveProps);","/**\n * Computes the chart coordinates from the mouse event.\n *\n * The coordinates are relative to the top-left corner of the chart,\n * where the top-left corner of the chart is (0, 0).\n * Moving right, the x-coordinate increases, and moving down, the y-coordinate increases.\n *\n * The coordinates are rounded to the nearest integer and are including a CSS transform scale.\n * So a chart that's scaled will return the same coordinates as a chart that's not scaled.\n *\n * @param event The mouse event from React event handlers\n * @return chartPointer The chart coordinates relative to the top-left corner of the chart\n */\nexport var getChartPointer = event => {\n var rect = event.currentTarget.getBoundingClientRect();\n var scaleX = rect.width / event.currentTarget.offsetWidth;\n var scaleY = rect.height / event.currentTarget.offsetHeight;\n return {\n /*\n * Here it's important to use:\n * - event.clientX and event.clientY to get the mouse position relative to the viewport, including scroll.\n * - pageX and pageY are not used because they are relative to the whole document, and ignore scroll.\n * - rect.left and rect.top are used to get the position of the chart relative to the viewport.\n * - offsetX and offsetY are not used because they are relative to the offset parent\n * which may or may not be the same as the clientX and clientY, depending on the position of the chart in the DOM\n * and surrounding element styles. CSS position: relative, absolute, fixed, will change the offset parent.\n * - scaleX and scaleY are necessary for when the chart element is scaled using CSS `transform: scale(N)`.\n */\n chartX: Math.round((event.clientX - rect.left) / scaleX),\n chartY: Math.round((event.clientY - rect.top) / scaleY)\n };\n};","import { createAction, createListenerMiddleware } from '@reduxjs/toolkit';\nimport { mouseLeaveChart, setMouseClickAxisIndex, setMouseOverAxisIndex } from './tooltipSlice';\nimport { selectActivePropsFromChartPointer } from './selectors/selectActivePropsFromChartPointer';\nimport { selectTooltipEventType } from './selectors/selectTooltipEventType';\nimport { getChartPointer } from '../util/getChartPointer';\nexport var mouseClickAction = createAction('mouseClick');\nexport var mouseClickMiddleware = createListenerMiddleware();\n\n// TODO: there's a bug here when you click the chart the activeIndex resets to zero\nmouseClickMiddleware.startListening({\n actionCreator: mouseClickAction,\n effect: (action, listenerApi) => {\n var mousePointer = action.payload;\n var activeProps = selectActivePropsFromChartPointer(listenerApi.getState(), getChartPointer(mousePointer));\n if ((activeProps === null || activeProps === void 0 ? void 0 : activeProps.activeIndex) != null) {\n listenerApi.dispatch(setMouseClickAxisIndex({\n activeIndex: activeProps.activeIndex,\n activeDataKey: undefined,\n activeCoordinate: activeProps.activeCoordinate\n }));\n }\n }\n});\nexport var mouseMoveAction = createAction('mouseMove');\nexport var mouseMoveMiddleware = createListenerMiddleware();\nmouseMoveMiddleware.startListening({\n actionCreator: mouseMoveAction,\n effect: (action, listenerApi) => {\n var mousePointer = action.payload;\n var state = listenerApi.getState();\n var tooltipEventType = selectTooltipEventType(state, state.tooltip.settings.shared);\n var activeProps = selectActivePropsFromChartPointer(state, getChartPointer(mousePointer));\n\n // this functionality only applies to charts that have axes\n if (tooltipEventType === 'axis') {\n if ((activeProps === null || activeProps === void 0 ? void 0 : activeProps.activeIndex) != null) {\n listenerApi.dispatch(setMouseOverAxisIndex({\n activeIndex: activeProps.activeIndex,\n activeDataKey: undefined,\n activeCoordinate: activeProps.activeCoordinate\n }));\n } else {\n // this is needed to clear tooltip state when the mouse moves out of the inRange (svg - offset) function, but not yet out of the svg\n listenerApi.dispatch(mouseLeaveChart());\n }\n }\n }\n});","import { createSlice } from '@reduxjs/toolkit';\n\n/**\n * These are chart options that users can choose - which means they can also\n * choose to change them which should trigger a re-render.\n */\n\nexport var initialState = {\n accessibilityLayer: true,\n barCategoryGap: '10%',\n barGap: 4,\n barSize: undefined,\n className: undefined,\n maxBarSize: undefined,\n stackOffset: 'none',\n syncId: undefined,\n syncMethod: 'index'\n};\nvar rootPropsSlice = createSlice({\n name: 'rootProps',\n initialState,\n reducers: {\n updateOptions: (state, action) => {\n var _action$payload$barGa;\n state.accessibilityLayer = action.payload.accessibilityLayer;\n state.barCategoryGap = action.payload.barCategoryGap;\n state.barGap = (_action$payload$barGa = action.payload.barGap) !== null && _action$payload$barGa !== void 0 ? _action$payload$barGa : initialState.barGap;\n state.barSize = action.payload.barSize;\n state.maxBarSize = action.payload.maxBarSize;\n state.stackOffset = action.payload.stackOffset;\n state.syncId = action.payload.syncId;\n state.syncMethod = action.payload.syncMethod;\n state.className = action.payload.className;\n }\n }\n});\nexport var rootPropsReducer = rootPropsSlice.reducer;\nexport var {\n updateOptions\n} = rootPropsSlice.actions;","import { createSlice } from '@reduxjs/toolkit';\nvar polarOptionsSlice = createSlice({\n name: 'polarOptions',\n initialState: null,\n reducers: {\n updatePolarOptions: (_state, action) => {\n return action.payload;\n }\n }\n});\nexport var {\n updatePolarOptions\n} = polarOptionsSlice.actions;\nexport var polarOptionsReducer = polarOptionsSlice.reducer;","import { createAction, createListenerMiddleware } from '@reduxjs/toolkit';\nimport { setKeyboardInteraction } from './tooltipSlice';\nimport { selectTooltipAxisTicks, selectTooltipDisplayedData } from './selectors/tooltipSelectors';\nimport { selectCoordinateForDefaultIndex } from './selectors/selectors';\nimport { selectChartDirection } from './selectors/axisSelectors';\nimport { combineActiveTooltipIndex } from './selectors/combiners/combineActiveTooltipIndex';\nexport var keyDownAction = createAction('keyDown');\nexport var focusAction = createAction('focus');\nexport var keyboardEventsMiddleware = createListenerMiddleware();\nkeyboardEventsMiddleware.startListening({\n actionCreator: keyDownAction,\n effect: (action, listenerApi) => {\n var state = listenerApi.getState();\n var accessibilityLayerIsActive = state.rootProps.accessibilityLayer !== false;\n if (!accessibilityLayerIsActive) {\n return;\n }\n var {\n keyboardInteraction\n } = state.tooltip;\n var key = action.payload;\n if (key !== 'ArrowRight' && key !== 'ArrowLeft' && key !== 'Enter') {\n return;\n }\n\n // TODO this is lacking index for charts that do not support numeric indexes\n var currentIndex = Number(combineActiveTooltipIndex(keyboardInteraction, selectTooltipDisplayedData(state)));\n var tooltipTicks = selectTooltipAxisTicks(state);\n if (key === 'Enter') {\n var _coordinate = selectCoordinateForDefaultIndex(state, 'axis', 'hover', String(keyboardInteraction.index));\n listenerApi.dispatch(setKeyboardInteraction({\n active: !keyboardInteraction.active,\n activeIndex: keyboardInteraction.index,\n activeDataKey: keyboardInteraction.dataKey,\n activeCoordinate: _coordinate\n }));\n return;\n }\n var direction = selectChartDirection(state);\n var directionMultiplier = direction === 'left-to-right' ? 1 : -1;\n var movement = key === 'ArrowRight' ? 1 : -1;\n var nextIndex = currentIndex + movement * directionMultiplier;\n if (tooltipTicks == null || nextIndex >= tooltipTicks.length || nextIndex < 0) {\n return;\n }\n var coordinate = selectCoordinateForDefaultIndex(state, 'axis', 'hover', String(nextIndex));\n listenerApi.dispatch(setKeyboardInteraction({\n active: true,\n activeIndex: nextIndex.toString(),\n activeDataKey: undefined,\n activeCoordinate: coordinate\n }));\n }\n});\nkeyboardEventsMiddleware.startListening({\n actionCreator: focusAction,\n effect: (_action, listenerApi) => {\n var state = listenerApi.getState();\n var accessibilityLayerIsActive = state.rootProps.accessibilityLayer !== false;\n if (!accessibilityLayerIsActive) {\n return;\n }\n var {\n keyboardInteraction\n } = state.tooltip;\n if (keyboardInteraction.active) {\n return;\n }\n if (keyboardInteraction.index == null) {\n var nextIndex = '0';\n var coordinate = selectCoordinateForDefaultIndex(state, 'axis', 'hover', String(nextIndex));\n listenerApi.dispatch(setKeyboardInteraction({\n activeDataKey: undefined,\n active: true,\n activeIndex: nextIndex,\n activeCoordinate: coordinate\n }));\n }\n }\n});","import { createAction, createListenerMiddleware } from '@reduxjs/toolkit';\nimport { selectActiveLabel, selectActiveTooltipCoordinate, selectActiveTooltipDataKey, selectActiveTooltipIndex, selectIsTooltipActive } from './selectors/tooltipSelectors';\nexport var externalEventAction = createAction('externalEvent');\nexport var externalEventsMiddleware = createListenerMiddleware();\nexternalEventsMiddleware.startListening({\n actionCreator: externalEventAction,\n effect: (action, listenerApi) => {\n if (action.payload.handler == null) {\n return;\n }\n var state = listenerApi.getState();\n var nextState = {\n activeCoordinate: selectActiveTooltipCoordinate(state),\n activeDataKey: selectActiveTooltipDataKey(state),\n activeIndex: selectActiveTooltipIndex(state),\n activeLabel: selectActiveLabel(state),\n activeTooltipIndex: selectActiveTooltipIndex(state),\n isTooltipActive: selectIsTooltipActive(state)\n };\n action.payload.handler(nextState, action.payload.reactEvent);\n }\n});","import { createSelector } from 'reselect';\nimport { selectTooltipPayloadSearcher } from './selectTooltipPayloadSearcher';\nimport { selectTooltipState } from './selectTooltipState';\nvar selectAllTooltipPayloadConfiguration = createSelector([selectTooltipState], tooltipState => tooltipState.tooltipItemPayloads);\nexport var selectTooltipCoordinate = createSelector([selectAllTooltipPayloadConfiguration, selectTooltipPayloadSearcher, (_state, tooltipIndex, _dataKey) => tooltipIndex, (_state, _tooltipIndex, dataKey) => dataKey], (allTooltipConfigurations, tooltipPayloadSearcher, tooltipIndex, dataKey) => {\n var mostRelevantTooltipConfiguration = allTooltipConfigurations.find(tooltipConfiguration => {\n return tooltipConfiguration.settings.dataKey === dataKey;\n });\n if (mostRelevantTooltipConfiguration == null) {\n return undefined;\n }\n var {\n positions\n } = mostRelevantTooltipConfiguration;\n if (positions == null) {\n return undefined;\n }\n // @ts-expect-error tooltipPayloadSearcher is not typed well\n var maybePosition = tooltipPayloadSearcher(positions, tooltipIndex);\n return maybePosition;\n});","import { createAction, createListenerMiddleware } from '@reduxjs/toolkit';\nimport { setActiveMouseOverItemIndex, setMouseOverAxisIndex } from './tooltipSlice';\nimport { selectActivePropsFromChartPointer } from './selectors/selectActivePropsFromChartPointer';\nimport { getChartPointer } from '../util/getChartPointer';\nimport { selectTooltipEventType } from './selectors/selectTooltipEventType';\nimport { DATA_ITEM_DATAKEY_ATTRIBUTE_NAME, DATA_ITEM_INDEX_ATTRIBUTE_NAME } from '../util/Constants';\nimport { selectTooltipCoordinate } from './selectors/touchSelectors';\nexport var touchEventAction = createAction('touchMove');\nexport var touchEventMiddleware = createListenerMiddleware();\ntouchEventMiddleware.startListening({\n actionCreator: touchEventAction,\n effect: (action, listenerApi) => {\n var touchEvent = action.payload;\n var state = listenerApi.getState();\n var tooltipEventType = selectTooltipEventType(state, state.tooltip.settings.shared);\n if (tooltipEventType === 'axis') {\n var activeProps = selectActivePropsFromChartPointer(state, getChartPointer({\n clientX: touchEvent.touches[0].clientX,\n clientY: touchEvent.touches[0].clientY,\n currentTarget: touchEvent.currentTarget\n }));\n if ((activeProps === null || activeProps === void 0 ? void 0 : activeProps.activeIndex) != null) {\n listenerApi.dispatch(setMouseOverAxisIndex({\n activeIndex: activeProps.activeIndex,\n activeDataKey: undefined,\n activeCoordinate: activeProps.activeCoordinate\n }));\n }\n } else if (tooltipEventType === 'item') {\n var _target$getAttribute;\n var touch = touchEvent.touches[0];\n var target = document.elementFromPoint(touch.clientX, touch.clientY);\n if (!target || !target.getAttribute) {\n return;\n }\n var itemIndex = target.getAttribute(DATA_ITEM_INDEX_ATTRIBUTE_NAME);\n var dataKey = (_target$getAttribute = target.getAttribute(DATA_ITEM_DATAKEY_ATTRIBUTE_NAME)) !== null && _target$getAttribute !== void 0 ? _target$getAttribute : undefined;\n var coordinate = selectTooltipCoordinate(listenerApi.getState(), itemIndex, dataKey);\n listenerApi.dispatch(setActiveMouseOverItemIndex({\n activeDataKey: dataKey,\n activeIndex: itemIndex,\n activeCoordinate: coordinate\n }));\n }\n }\n});","import { combineReducers, configureStore } from '@reduxjs/toolkit';\nimport { optionsReducer } from './optionsSlice';\nimport { tooltipReducer } from './tooltipSlice';\nimport { chartDataReducer } from './chartDataSlice';\nimport { chartLayoutReducer } from './layoutSlice';\nimport { mouseClickMiddleware, mouseMoveMiddleware } from './mouseEventsMiddleware';\nimport { reduxDevtoolsJsonStringifyReplacer } from './reduxDevtoolsJsonStringifyReplacer';\nimport { cartesianAxisReducer } from './cartesianAxisSlice';\nimport { graphicalItemsReducer } from './graphicalItemsSlice';\nimport { referenceElementsReducer } from './referenceElementsSlice';\nimport { brushReducer } from './brushSlice';\nimport { legendReducer } from './legendSlice';\nimport { rootPropsReducer } from './rootPropsSlice';\nimport { polarAxisReducer } from './polarAxisSlice';\nimport { polarOptionsReducer } from './polarOptionsSlice';\nimport { keyboardEventsMiddleware } from './keyboardEventsMiddleware';\nimport { externalEventsMiddleware } from './externalEventsMiddleware';\nimport { touchEventMiddleware } from './touchEventsMiddleware';\nimport { errorBarReducer } from './errorBarSlice';\nimport { Global } from '../util/Global';\nvar rootReducer = combineReducers({\n brush: brushReducer,\n cartesianAxis: cartesianAxisReducer,\n chartData: chartDataReducer,\n errorBars: errorBarReducer,\n graphicalItems: graphicalItemsReducer,\n layout: chartLayoutReducer,\n legend: legendReducer,\n options: optionsReducer,\n polarAxis: polarAxisReducer,\n polarOptions: polarOptionsReducer,\n referenceElements: referenceElementsReducer,\n rootProps: rootPropsReducer,\n tooltip: tooltipReducer\n});\nexport var createRechartsStore = function createRechartsStore(preloadedState) {\n var chartName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Chart';\n return configureStore({\n reducer: rootReducer,\n // redux-toolkit v1 types are unhappy with the preloadedState type. Remove the `as any` when bumping to v2\n preloadedState: preloadedState,\n // @ts-expect-error redux-toolkit v1 types are unhappy with the middleware array. Remove this comment when bumping to v2\n middleware: getDefaultMiddleware => getDefaultMiddleware({\n serializableCheck: false\n }).concat([mouseClickMiddleware.middleware, mouseMoveMiddleware.middleware, keyboardEventsMiddleware.middleware, externalEventsMiddleware.middleware, touchEventMiddleware.middleware]),\n devTools: Global.devToolsEnabled && {\n serialize: {\n replacer: reduxDevtoolsJsonStringifyReplacer\n },\n name: \"recharts-\".concat(chartName)\n }\n });\n};","import * as React from 'react';\nimport { useRef } from 'react';\nimport { Provider } from 'react-redux';\nimport { createRechartsStore } from './store';\nimport { useIsPanorama } from '../context/PanoramaContext';\nimport { RechartsReduxContext } from './RechartsReduxContext';\nexport function RechartsStoreProvider(_ref) {\n var {\n preloadedState,\n children,\n reduxStoreName\n } = _ref;\n var isPanorama = useIsPanorama();\n /*\n * Why the ref? Redux official documentation recommends to use store as a singleton,\n * and reuse that everywhere: https://redux-toolkit.js.org/api/configureStore#basic-example\n *\n * Which is correct! Except that is considering deploying Redux in an app.\n * Recharts as a library supports multiple charts on the same page.\n * And each of these charts needs its own store independent of others!\n *\n * The alternative is to have everything in the store keyed by the chart id.\n * Which would make working with everything a little bit more painful because we need the chart id everywhere.\n */\n var storeRef = useRef(null);\n\n /*\n * Panorama means that this chart is not its own chart, it's only a \"preview\"\n * being rendered as a child of Brush.\n * In such case, it should not have a store on its own - it should implicitly inherit\n * whatever data is in the \"parent\" or \"root\" chart.\n * Which here is represented by not having a Provider at all. All selectors will use the root store by default.\n */\n if (isPanorama) {\n return children;\n }\n if (storeRef.current == null) {\n storeRef.current = createRechartsStore(preloadedState, reduxStoreName);\n }\n\n // ts-expect-error React-Redux types demand that the context internal value is not null, but we have that as default.\n var nonNullContext = RechartsReduxContext;\n return /*#__PURE__*/React.createElement(Provider, {\n context: nonNullContext,\n store: storeRef.current\n }, children);\n}","import { useEffect } from 'react';\nimport { useIsPanorama } from '../context/PanoramaContext';\nimport { setChartSize, setLayout, setMargin } from './layoutSlice';\nimport { useAppDispatch } from './hooks';\n\n/**\n * \"Main\" props are props that are only accepted on the main chart,\n * as opposed to the small panorama chart inside a Brush.\n */\n\nexport function ReportMainChartProps(_ref) {\n var {\n layout,\n width,\n height,\n margin\n } = _ref;\n var dispatch = useAppDispatch();\n\n /*\n * Skip dispatching properties in panorama chart for two reasons:\n * 1. The root chart should be deciding on these properties, and\n * 2. Brush reads these properties from redux store, and so they must remain stable\n * to avoid circular dependency and infinite re-rendering.\n */\n var isPanorama = useIsPanorama();\n /*\n * useEffect here is required to avoid the \"Cannot update a component while rendering a different component\" error.\n * https://github.com/facebook/react/issues/18178\n *\n * Reported in https://github.com/recharts/recharts/issues/5514\n */\n useEffect(() => {\n if (!isPanorama) {\n dispatch(setLayout(layout));\n dispatch(setChartSize({\n width,\n height\n }));\n dispatch(setMargin(margin));\n }\n }, [dispatch, isPanorama, layout, width, height, margin]);\n return null;\n}","import { useEffect } from 'react';\nimport { updateOptions } from './rootPropsSlice';\nimport { useAppDispatch } from './hooks';\nexport function ReportChartProps(props) {\n var dispatch = useAppDispatch();\n useEffect(() => {\n dispatch(updateOptions(props));\n }, [dispatch, props]);\n return null;\n}","var _excluded = [\"children\"];\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from 'react';\nimport { forwardRef } from 'react';\nimport { useChartHeight, useChartWidth } from '../context/chartLayoutContext';\nimport { useAccessibilityLayer } from '../context/accessibilityContext';\nimport { useIsPanorama } from '../context/PanoramaContext';\nimport { Surface } from './Surface';\nimport { useAppSelector } from '../state/hooks';\nimport { selectBrushDimensions } from '../state/selectors/brushSelectors';\nimport { isPositiveNumber } from '../util/isWellBehavedNumber';\nvar FULL_WIDTH_AND_HEIGHT = {\n width: '100%',\n height: '100%'\n};\nvar MainChartSurface = /*#__PURE__*/forwardRef((props, ref) => {\n var width = useChartWidth();\n var height = useChartHeight();\n var hasAccessibilityLayer = useAccessibilityLayer();\n if (!isPositiveNumber(width) || !isPositiveNumber(height)) {\n return null;\n }\n var {\n children,\n otherAttributes,\n title,\n desc\n } = props;\n var tabIndex, role;\n if (typeof otherAttributes.tabIndex === 'number') {\n tabIndex = otherAttributes.tabIndex;\n } else {\n tabIndex = hasAccessibilityLayer ? 0 : undefined;\n }\n if (typeof otherAttributes.role === 'string') {\n role = otherAttributes.role;\n } else {\n role = hasAccessibilityLayer ? 'application' : undefined;\n }\n return /*#__PURE__*/React.createElement(Surface, _extends({}, otherAttributes, {\n title: title,\n desc: desc,\n role: role,\n tabIndex: tabIndex,\n width: width,\n height: height,\n style: FULL_WIDTH_AND_HEIGHT,\n ref: ref\n }), children);\n});\nvar BrushPanoramaSurface = _ref => {\n var {\n children\n } = _ref;\n var brushDimensions = useAppSelector(selectBrushDimensions);\n if (!brushDimensions) {\n return null;\n }\n var {\n width,\n height,\n y,\n x\n } = brushDimensions;\n return /*#__PURE__*/React.createElement(Surface, {\n width: width,\n height: height,\n x: x,\n y: y\n }, children);\n};\nexport var RootSurface = /*#__PURE__*/forwardRef((_ref2, ref) => {\n var {\n children\n } = _ref2,\n rest = _objectWithoutProperties(_ref2, _excluded);\n var isPanorama = useIsPanorama();\n if (isPanorama) {\n return /*#__PURE__*/React.createElement(BrushPanoramaSurface, null, children);\n }\n return /*#__PURE__*/React.createElement(MainChartSurface, _extends({\n ref: ref\n }, rest), children);\n});","import { useEffect, useState } from 'react';\nimport { useAppDispatch, useAppSelector } from '../state/hooks';\nimport { selectContainerScale } from '../state/selectors/containerSelectors';\nimport { setScale } from '../state/layoutSlice';\nimport { isWellBehavedNumber } from './isWellBehavedNumber';\nexport function useReportScale() {\n var dispatch = useAppDispatch();\n var [ref, setRef] = useState(null);\n var scale = useAppSelector(selectContainerScale);\n useEffect(() => {\n if (ref == null) {\n return;\n }\n var rect = ref.getBoundingClientRect();\n var newScale = rect.width / ref.offsetWidth;\n if (isWellBehavedNumber(newScale) && newScale !== scale) {\n dispatch(setScale(newScale));\n }\n }, [ref, dispatch, scale]);\n return setRef;\n}","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport * as React from 'react';\nimport { forwardRef, useState, useCallback } from 'react';\nimport { clsx } from 'clsx';\nimport { mouseLeaveChart } from '../state/tooltipSlice';\nimport { useAppDispatch } from '../state/hooks';\nimport { mouseClickAction, mouseMoveAction } from '../state/mouseEventsMiddleware';\nimport { useSynchronisedEventsFromOtherCharts } from '../synchronisation/useChartSynchronisation';\nimport { focusAction, keyDownAction } from '../state/keyboardEventsMiddleware';\nimport { useReportScale } from '../util/useReportScale';\nimport { externalEventAction } from '../state/externalEventsMiddleware';\nimport { touchEventAction } from '../state/touchEventsMiddleware';\nimport { TooltipPortalContext } from '../context/tooltipPortalContext';\nimport { LegendPortalContext } from '../context/legendPortalContext';\nexport var RechartsWrapper = /*#__PURE__*/forwardRef((_ref, ref) => {\n var {\n children,\n className,\n height,\n onClick,\n onContextMenu,\n onDoubleClick,\n onMouseDown,\n onMouseEnter,\n onMouseLeave,\n onMouseMove,\n onMouseUp,\n onTouchEnd,\n onTouchMove,\n onTouchStart,\n style,\n width\n } = _ref;\n var dispatch = useAppDispatch();\n var [tooltipPortal, setTooltipPortal] = useState(null);\n var [legendPortal, setLegendPortal] = useState(null);\n useSynchronisedEventsFromOtherCharts();\n var setScaleRef = useReportScale();\n var innerRef = useCallback(node => {\n setScaleRef(node);\n if (typeof ref === 'function') {\n ref(node);\n }\n setTooltipPortal(node);\n setLegendPortal(node);\n }, [setScaleRef, ref, setTooltipPortal, setLegendPortal]);\n var myOnClick = useCallback(e => {\n dispatch(mouseClickAction(e));\n dispatch(externalEventAction({\n handler: onClick,\n reactEvent: e\n }));\n }, [dispatch, onClick]);\n var myOnMouseEnter = useCallback(e => {\n dispatch(mouseMoveAction(e));\n dispatch(externalEventAction({\n handler: onMouseEnter,\n reactEvent: e\n }));\n }, [dispatch, onMouseEnter]);\n var myOnMouseLeave = useCallback(e => {\n dispatch(mouseLeaveChart());\n dispatch(externalEventAction({\n handler: onMouseLeave,\n reactEvent: e\n }));\n }, [dispatch, onMouseLeave]);\n var myOnMouseMove = useCallback(e => {\n dispatch(mouseMoveAction(e));\n dispatch(externalEventAction({\n handler: onMouseMove,\n reactEvent: e\n }));\n }, [dispatch, onMouseMove]);\n var onFocus = useCallback(() => {\n dispatch(focusAction());\n }, [dispatch]);\n var onKeyDown = useCallback(e => {\n dispatch(keyDownAction(e.key));\n }, [dispatch]);\n var myOnContextMenu = useCallback(e => {\n dispatch(externalEventAction({\n handler: onContextMenu,\n reactEvent: e\n }));\n }, [dispatch, onContextMenu]);\n var myOnDoubleClick = useCallback(e => {\n dispatch(externalEventAction({\n handler: onDoubleClick,\n reactEvent: e\n }));\n }, [dispatch, onDoubleClick]);\n var myOnMouseDown = useCallback(e => {\n dispatch(externalEventAction({\n handler: onMouseDown,\n reactEvent: e\n }));\n }, [dispatch, onMouseDown]);\n var myOnMouseUp = useCallback(e => {\n dispatch(externalEventAction({\n handler: onMouseUp,\n reactEvent: e\n }));\n }, [dispatch, onMouseUp]);\n var myOnTouchStart = useCallback(e => {\n dispatch(externalEventAction({\n handler: onTouchStart,\n reactEvent: e\n }));\n }, [dispatch, onTouchStart]);\n\n /*\n * onTouchMove is special because it behaves different from mouse events.\n * Mouse events have enter + leave combo that notify us when the mouse is over\n * a certain element. Touch events don't have that; touch only gives us\n * start (finger down), end (finger up) and move (finger moving).\n * So we need to figure out which element the user is touching\n * ourselves. Fortunately, there's a convenient method for that:\n * https://developer.mozilla.org/en-US/docs/Web/API/Document/elementFromPoint\n */\n var myOnTouchMove = useCallback(e => {\n dispatch(touchEventAction(e));\n dispatch(externalEventAction({\n handler: onTouchMove,\n reactEvent: e\n }));\n }, [dispatch, onTouchMove]);\n var myOnTouchEnd = useCallback(e => {\n dispatch(externalEventAction({\n handler: onTouchEnd,\n reactEvent: e\n }));\n }, [dispatch, onTouchEnd]);\n return /*#__PURE__*/React.createElement(TooltipPortalContext.Provider, {\n value: tooltipPortal\n }, /*#__PURE__*/React.createElement(LegendPortalContext.Provider, {\n value: legendPortal\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: clsx('recharts-wrapper', className),\n style: _objectSpread({\n position: 'relative',\n cursor: 'default',\n width,\n height\n }, style),\n onClick: myOnClick,\n onContextMenu: myOnContextMenu,\n onDoubleClick: myOnDoubleClick,\n onFocus: onFocus,\n onKeyDown: onKeyDown,\n onMouseDown: myOnMouseDown,\n onMouseEnter: myOnMouseEnter,\n onMouseLeave: myOnMouseLeave,\n onMouseMove: myOnMouseMove,\n onMouseUp: myOnMouseUp,\n onTouchEnd: myOnTouchEnd,\n onTouchMove: myOnTouchMove,\n onTouchStart: myOnTouchStart,\n ref: innerRef\n }, children)));\n});","var _excluded = [\"children\", \"className\", \"width\", \"height\", \"style\", \"compact\", \"title\", \"desc\"];\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from 'react';\nimport { forwardRef } from 'react';\nimport { RootSurface } from '../container/RootSurface';\nimport { RechartsWrapper } from './RechartsWrapper';\nimport { ClipPathProvider } from '../container/ClipPathProvider';\nimport { svgPropertiesNoEvents } from '../util/svgPropertiesNoEvents';\nexport var CategoricalChart = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n children,\n className,\n width,\n height,\n style,\n compact,\n title,\n desc\n } = props,\n others = _objectWithoutProperties(props, _excluded);\n var attrs = svgPropertiesNoEvents(others);\n\n // The \"compact\" mode is used as the panorama within Brush\n if (compact) {\n return /*#__PURE__*/React.createElement(RootSurface, {\n otherAttributes: attrs,\n title: title,\n desc: desc\n }, children);\n }\n return /*#__PURE__*/React.createElement(RechartsWrapper, {\n className: className,\n style: style,\n width: width,\n height: height,\n onClick: props.onClick,\n onMouseLeave: props.onMouseLeave,\n onMouseEnter: props.onMouseEnter,\n onMouseMove: props.onMouseMove,\n onMouseDown: props.onMouseDown,\n onMouseUp: props.onMouseUp,\n onContextMenu: props.onContextMenu,\n onDoubleClick: props.onDoubleClick,\n onTouchStart: props.onTouchStart,\n onTouchMove: props.onTouchMove,\n onTouchEnd: props.onTouchEnd\n }, /*#__PURE__*/React.createElement(RootSurface, {\n otherAttributes: attrs,\n title: title,\n desc: desc,\n ref: ref\n }, /*#__PURE__*/React.createElement(ClipPathProvider, null, children)));\n});","var _excluded = [\"width\", \"height\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from 'react';\nimport { forwardRef } from 'react';\nimport { RechartsStoreProvider } from '../state/RechartsStoreProvider';\nimport { ChartDataContextProvider } from '../context/chartDataContext';\nimport { ReportMainChartProps } from '../state/ReportMainChartProps';\nimport { ReportChartProps } from '../state/ReportChartProps';\nimport { CategoricalChart } from './CategoricalChart';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nimport { isPositiveNumber } from '../util/isWellBehavedNumber';\nvar defaultMargin = {\n top: 5,\n right: 5,\n bottom: 5,\n left: 5\n};\nvar defaultProps = {\n accessibilityLayer: true,\n layout: 'horizontal',\n stackOffset: 'none',\n barCategoryGap: '10%',\n barGap: 4,\n margin: defaultMargin,\n reverseStackOrder: false,\n syncMethod: 'index'\n};\n\n/**\n * These are one-time, immutable options that decide the chart's behavior.\n * Users who wish to call CartesianChart may decide to pass these options explicitly,\n * but usually we would expect that they use one of the convenience components like BarChart, LineChart, etc.\n */\n\nexport var CartesianChart = /*#__PURE__*/forwardRef(function CartesianChart(props, ref) {\n var _categoricalChartProp;\n var rootChartProps = resolveDefaultProps(props.categoricalChartProps, defaultProps);\n var {\n width,\n height\n } = rootChartProps,\n otherCategoricalProps = _objectWithoutProperties(rootChartProps, _excluded);\n if (!isPositiveNumber(width) || !isPositiveNumber(height)) {\n return null;\n }\n var {\n chartName,\n defaultTooltipEventType,\n validateTooltipEventTypes,\n tooltipPayloadSearcher,\n categoricalChartProps\n } = props;\n var options = {\n chartName,\n defaultTooltipEventType,\n validateTooltipEventTypes,\n tooltipPayloadSearcher,\n eventEmitter: undefined\n };\n return /*#__PURE__*/React.createElement(RechartsStoreProvider, {\n preloadedState: {\n options\n },\n reduxStoreName: (_categoricalChartProp = categoricalChartProps.id) !== null && _categoricalChartProp !== void 0 ? _categoricalChartProp : chartName\n }, /*#__PURE__*/React.createElement(ChartDataContextProvider, {\n chartData: categoricalChartProps.data\n }), /*#__PURE__*/React.createElement(ReportMainChartProps, {\n width: width,\n height: height,\n layout: rootChartProps.layout,\n margin: rootChartProps.margin\n }), /*#__PURE__*/React.createElement(ReportChartProps, {\n accessibilityLayer: rootChartProps.accessibilityLayer,\n barCategoryGap: rootChartProps.barCategoryGap,\n maxBarSize: rootChartProps.maxBarSize,\n stackOffset: rootChartProps.stackOffset,\n barGap: rootChartProps.barGap,\n barSize: rootChartProps.barSize,\n syncId: rootChartProps.syncId,\n syncMethod: rootChartProps.syncMethod,\n className: rootChartProps.className\n }), /*#__PURE__*/React.createElement(CategoricalChart, _extends({}, otherCategoricalProps, {\n width: width,\n height: height,\n ref: ref\n })));\n});","import * as React from 'react';\nimport { forwardRef } from 'react';\nimport { arrayTooltipSearcher } from '../state/optionsSlice';\nimport { CartesianChart } from './CartesianChart';\nvar allowedTooltipTypes = ['axis'];\nexport var LineChart = /*#__PURE__*/forwardRef((props, ref) => {\n return /*#__PURE__*/React.createElement(CartesianChart, {\n chartName: \"LineChart\",\n defaultTooltipEventType: \"axis\",\n validateTooltipEventTypes: allowedTooltipTypes,\n tooltipPayloadSearcher: arrayTooltipSearcher,\n categoricalChartProps: props,\n ref: ref\n });\n});","import * as React from 'react';\nimport { forwardRef } from 'react';\nimport { arrayTooltipSearcher } from '../state/optionsSlice';\nimport { CartesianChart } from './CartesianChart';\nvar allowedTooltipTypes = ['axis', 'item'];\nexport var BarChart = /*#__PURE__*/forwardRef((props, ref) => {\n return /*#__PURE__*/React.createElement(CartesianChart, {\n chartName: \"BarChart\",\n defaultTooltipEventType: \"axis\",\n validateTooltipEventTypes: allowedTooltipTypes,\n tooltipPayloadSearcher: arrayTooltipSearcher,\n categoricalChartProps: props,\n ref: ref\n });\n});","import { useEffect } from 'react';\nimport { useAppDispatch } from './hooks';\nimport { updatePolarOptions } from './polarOptionsSlice';\nexport function ReportPolarOptions(props) {\n var dispatch = useAppDispatch();\n useEffect(() => {\n dispatch(updatePolarOptions(props));\n }, [dispatch, props]);\n return null;\n}","var _excluded = [\"width\", \"height\", \"layout\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport { forwardRef } from 'react';\nimport * as React from 'react';\nimport { RechartsStoreProvider } from '../state/RechartsStoreProvider';\nimport { ChartDataContextProvider } from '../context/chartDataContext';\nimport { ReportMainChartProps } from '../state/ReportMainChartProps';\nimport { ReportChartProps } from '../state/ReportChartProps';\nimport { ReportPolarOptions } from '../state/ReportPolarOptions';\nimport { CategoricalChart } from './CategoricalChart';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nimport { isPositiveNumber } from '../util/isWellBehavedNumber';\nvar defaultMargin = {\n top: 5,\n right: 5,\n bottom: 5,\n left: 5\n};\n\n/**\n * These default props are the same for all PolarChart components.\n */\nvar defaultProps = {\n accessibilityLayer: true,\n stackOffset: 'none',\n barCategoryGap: '10%',\n barGap: 4,\n margin: defaultMargin,\n reverseStackOrder: false,\n syncMethod: 'index',\n layout: 'radial'\n};\n\n/**\n * These props are required for the PolarChart to function correctly.\n * Users usually would not need to specify these explicitly,\n * because the convenience components like PieChart, RadarChart, etc.\n * will provide these defaults.\n * We can't have the defaults in this file because each of those convenience components\n * have their own opinions about what they should be.\n */\n\n/**\n * These are one-time, immutable options that decide the chart's behavior.\n * Users who wish to call CartesianChart may decide to pass these options explicitly,\n * but usually we would expect that they use one of the convenience components like PieChart, RadarChart, etc.\n */\n\nexport var PolarChart = /*#__PURE__*/forwardRef(function PolarChart(props, ref) {\n var _polarChartProps$id;\n var polarChartProps = resolveDefaultProps(props.categoricalChartProps, defaultProps);\n var {\n width,\n height,\n layout\n } = polarChartProps,\n otherCategoricalProps = _objectWithoutProperties(polarChartProps, _excluded);\n if (!isPositiveNumber(width) || !isPositiveNumber(height)) {\n return null;\n }\n var {\n chartName,\n defaultTooltipEventType,\n validateTooltipEventTypes,\n tooltipPayloadSearcher\n } = props;\n var options = {\n chartName,\n defaultTooltipEventType,\n validateTooltipEventTypes,\n tooltipPayloadSearcher,\n eventEmitter: undefined\n };\n return /*#__PURE__*/React.createElement(RechartsStoreProvider, {\n preloadedState: {\n options\n },\n reduxStoreName: (_polarChartProps$id = polarChartProps.id) !== null && _polarChartProps$id !== void 0 ? _polarChartProps$id : chartName\n }, /*#__PURE__*/React.createElement(ChartDataContextProvider, {\n chartData: polarChartProps.data\n }), /*#__PURE__*/React.createElement(ReportMainChartProps, {\n width: width,\n height: height,\n layout: layout,\n margin: polarChartProps.margin\n }), /*#__PURE__*/React.createElement(ReportChartProps, {\n accessibilityLayer: polarChartProps.accessibilityLayer,\n barCategoryGap: polarChartProps.barCategoryGap,\n maxBarSize: polarChartProps.maxBarSize,\n stackOffset: polarChartProps.stackOffset,\n barGap: polarChartProps.barGap,\n barSize: polarChartProps.barSize,\n syncId: polarChartProps.syncId,\n syncMethod: polarChartProps.syncMethod,\n className: polarChartProps.className\n }), /*#__PURE__*/React.createElement(ReportPolarOptions, {\n cx: polarChartProps.cx,\n cy: polarChartProps.cy,\n startAngle: polarChartProps.startAngle,\n endAngle: polarChartProps.endAngle,\n innerRadius: polarChartProps.innerRadius,\n outerRadius: polarChartProps.outerRadius\n }), /*#__PURE__*/React.createElement(CategoricalChart, _extends({\n width: width,\n height: height\n }, otherCategoricalProps, {\n ref: ref\n })));\n});","import * as React from 'react';\nimport { forwardRef } from 'react';\nimport { arrayTooltipSearcher } from '../state/optionsSlice';\nimport { PolarChart } from './PolarChart';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nvar allowedTooltipTypes = ['item'];\nvar defaultProps = {\n layout: 'centric',\n startAngle: 0,\n endAngle: 360,\n cx: '50%',\n cy: '50%',\n innerRadius: 0,\n outerRadius: '80%'\n};\nexport var PieChart = /*#__PURE__*/forwardRef((props, ref) => {\n var propsWithDefaults = resolveDefaultProps(props, defaultProps);\n return /*#__PURE__*/React.createElement(PolarChart, {\n chartName: \"PieChart\",\n defaultTooltipEventType: \"item\",\n validateTooltipEventTypes: allowedTooltipTypes,\n tooltipPayloadSearcher: arrayTooltipSearcher,\n categoricalChartProps: propsWithDefaults,\n ref: ref\n });\n});","import * as React from 'react';\nimport { forwardRef } from 'react';\nimport { arrayTooltipSearcher } from '../state/optionsSlice';\nimport { CartesianChart } from './CartesianChart';\nvar allowedTooltipTypes = ['item'];\nexport var ScatterChart = /*#__PURE__*/forwardRef((props, ref) => {\n return /*#__PURE__*/React.createElement(CartesianChart, {\n chartName: \"ScatterChart\",\n defaultTooltipEventType: \"item\",\n validateTooltipEventTypes: allowedTooltipTypes,\n tooltipPayloadSearcher: arrayTooltipSearcher,\n categoricalChartProps: props,\n ref: ref\n });\n});","import * as React from 'react';\nimport { forwardRef } from 'react';\nimport { arrayTooltipSearcher } from '../state/optionsSlice';\nimport { CartesianChart } from './CartesianChart';\nvar allowedTooltipTypes = ['axis'];\nexport var AreaChart = /*#__PURE__*/forwardRef((props, ref) => {\n return /*#__PURE__*/React.createElement(CartesianChart, {\n chartName: \"AreaChart\",\n defaultTooltipEventType: \"axis\",\n validateTooltipEventTypes: allowedTooltipTypes,\n tooltipPayloadSearcher: arrayTooltipSearcher,\n categoricalChartProps: props,\n ref: ref\n });\n});","import { Stack, useTheme } from \"@mui/material\";\nimport { NutritionalValues } from \"components/Nutrition/helpers/nutritionalValues\";\nimport { LinearPlannedLoggedChart } from \"components/Nutrition/widgets/charts/LinearPlannedLoggedChart\";\nimport React from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { Cell, Pie, PieChart, ResponsiveContainer } from 'recharts';\nimport { numberLocale } from \"utils/numbers\";\n\n\nexport const NutritionalValuesDashboardChart = (props: {\n percentage: NutritionalValues,\n logged: NutritionalValues,\n planned: NutritionalValues,\n}) => {\n\n const energyPercentage = props.planned.energy > 0 ? props.logged.energy / props.planned.energy * 100 : 100;\n const energyDiff = props.planned.energy > 0 ? props.planned.energy - props.logged.energy : props.logged.energy;\n\n const theme = useTheme();\n const [t, i18n] = useTranslation();\n const data = [\n {\n name: '',\n value: energyPercentage,\n },\n {\n name: '',\n value: energyPercentage < 100 ? 100 - energyPercentage : 0,\n },\n ];\n const COLORS = [theme.palette.primary.main, '#C5C5C5'];\n\n\n return <Stack direction={'row'}>\n <ResponsiveContainer width={'50%'} height={140}>\n <PieChart>\n <Pie\n // cx={0}\n // cy={'10'}\n height={100}\n data={data}\n startAngle={200}\n endAngle={-20}\n innerRadius={60}\n outerRadius={70}\n paddingAngle={2}\n dataKey=\"value\"\n >\n {data.map((entry, index) => (\n <Cell key={`cell-${index}`} fill={COLORS[index % COLORS.length]} />\n ))}\n </Pie>\n <g>\n <text x={'50%'} y={'45%'} fontSize=\"1.25em\" textAnchor=\"middle\">{/*fill=\"#333\"*/}\n {t('nutrition.valueEnergyKcal', { value: numberLocale(energyDiff, i18n.language) })}\n </text>\n <text x={'50%'} y={'60%'} fontSize=\"1em\" textAnchor=\"middle\">\n {props.planned.energy > 0 && t(energyPercentage < 100 ? 'nutrition.valueRemaining' : 'nutrition.valueTooMany')}\n </text>\n </g>\n </PieChart>\n </ResponsiveContainer>\n <Stack width={'50%'} spacing={1}>\n <LinearPlannedLoggedChart\n title={t('nutrition.protein')}\n percentage={props.percentage.protein}\n logged={props.logged.protein}\n planned={props.planned.protein}\n />\n <LinearPlannedLoggedChart\n title={t('nutrition.carbohydrates')}\n percentage={props.percentage.carbohydrates}\n logged={props.logged.carbohydrates}\n planned={props.planned.carbohydrates}\n />\n <LinearPlannedLoggedChart\n title={t('nutrition.fat')}\n percentage={props.percentage.fat}\n logged={props.logged.fat}\n planned={props.planned.fat}\n />\n </Stack>\n </Stack>;\n};\n","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"localeText\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useThemeProps } from '@mui/material/styles';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const MuiPickersAdapterContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== 'production') {\n MuiPickersAdapterContext.displayName = 'MuiPickersAdapterContext';\n}\n/**\n * Demos:\n *\n * - [Date format and localization](https://mui.com/x/react-date-pickers/adapters-locale/)\n * - [Calendar systems](https://mui.com/x/react-date-pickers/calendar-systems/)\n * - [Translated components](https://mui.com/x/react-date-pickers/localization/)\n * - [UTC and timezones](https://mui.com/x/react-date-pickers/timezone/)\n *\n * API:\n *\n * - [LocalizationProvider API](https://mui.com/x/api/date-pickers/localization-provider/)\n */\nexport const LocalizationProvider = function LocalizationProvider(inProps) {\n const {\n localeText: inLocaleText\n } = inProps,\n otherInProps = _objectWithoutPropertiesLoose(inProps, _excluded);\n const {\n utils: parentUtils,\n localeText: parentLocaleText\n } = React.useContext(MuiPickersAdapterContext) ?? {\n utils: undefined,\n localeText: undefined\n };\n const props = useThemeProps({\n // We don't want to pass the `localeText` prop to the theme, that way it will always return the theme value,\n // We will then merge this theme value with our value manually\n props: otherInProps,\n name: 'MuiLocalizationProvider'\n });\n const {\n children,\n dateAdapter: DateAdapter,\n dateFormats,\n dateLibInstance,\n adapterLocale,\n localeText: themeLocaleText\n } = props;\n const localeText = React.useMemo(() => _extends({}, themeLocaleText, parentLocaleText, inLocaleText), [themeLocaleText, parentLocaleText, inLocaleText]);\n const utils = React.useMemo(() => {\n if (!DateAdapter) {\n if (parentUtils) {\n return parentUtils;\n }\n return null;\n }\n const adapter = new DateAdapter({\n locale: adapterLocale,\n formats: dateFormats,\n instance: dateLibInstance\n });\n if (!adapter.isMUIAdapter) {\n throw new Error(['MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`', \"For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`\", 'More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation'].join(`\\n`));\n }\n return adapter;\n }, [DateAdapter, adapterLocale, dateFormats, dateLibInstance, parentUtils]);\n const defaultDates = React.useMemo(() => {\n if (!utils) {\n return null;\n }\n return {\n minDate: utils.date('1900-01-01T00:00:00.000'),\n maxDate: utils.date('2099-12-31T00:00:00.000')\n };\n }, [utils]);\n const contextValue = React.useMemo(() => {\n return {\n utils,\n defaultDates,\n localeText\n };\n }, [defaultDates, utils, localeText]);\n return /*#__PURE__*/_jsx(MuiPickersAdapterContext.Provider, {\n value: contextValue,\n children: children\n });\n};\nprocess.env.NODE_ENV !== \"production\" ? LocalizationProvider.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Locale for the date library you are using\n */\n adapterLocale: PropTypes.any,\n children: PropTypes.node,\n /**\n * Date library adapter class function.\n * @see See the localization provider {@link https://mui.com/x/react-date-pickers/quickstart/#integrate-provider-and-adapter date adapter setup section} for more details.\n */\n dateAdapter: PropTypes.func,\n /**\n * Formats that are used for any child pickers\n */\n dateFormats: PropTypes.shape({\n dayOfMonth: PropTypes.string,\n dayOfMonthFull: PropTypes.string,\n fullDate: PropTypes.string,\n fullTime12h: PropTypes.string,\n fullTime24h: PropTypes.string,\n hours12h: PropTypes.string,\n hours24h: PropTypes.string,\n keyboardDate: PropTypes.string,\n keyboardDateTime12h: PropTypes.string,\n keyboardDateTime24h: PropTypes.string,\n meridiem: PropTypes.string,\n minutes: PropTypes.string,\n month: PropTypes.string,\n monthShort: PropTypes.string,\n normalDate: PropTypes.string,\n normalDateWithWeekday: PropTypes.string,\n seconds: PropTypes.string,\n shortDate: PropTypes.string,\n weekday: PropTypes.string,\n weekdayShort: PropTypes.string,\n year: PropTypes.string\n }),\n /**\n * Date library instance you are using, if it has some global overrides\n * ```jsx\n * dateLibInstance={momentTimeZone}\n * ```\n */\n dateLibInstance: PropTypes.any,\n /**\n * Locale for components texts\n */\n localeText: PropTypes.object\n} : void 0;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport const getPickersLocalization = pickersTranslations => {\n return {\n components: {\n MuiLocalizationProvider: {\n defaultProps: {\n localeText: _extends({}, pickersTranslations)\n }\n }\n }\n };\n};","import { getPickersLocalization } from \"./utils/getPickersLocalization.js\";\n\n// This object is not Partial<PickersLocaleText> because it is the default values\n\nconst enUSPickers = {\n // Calendar navigation\n previousMonth: 'Previous month',\n nextMonth: 'Next month',\n // View navigation\n openPreviousView: 'Open previous view',\n openNextView: 'Open next view',\n calendarViewSwitchingButtonAriaLabel: view => view === 'year' ? 'year view is open, switch to calendar view' : 'calendar view is open, switch to year view',\n // DateRange labels\n start: 'Start',\n end: 'End',\n startDate: 'Start date',\n startTime: 'Start time',\n endDate: 'End date',\n endTime: 'End time',\n // Action bar\n cancelButtonLabel: 'Cancel',\n clearButtonLabel: 'Clear',\n okButtonLabel: 'OK',\n todayButtonLabel: 'Today',\n nextStepButtonLabel: 'Next',\n // Toolbar titles\n datePickerToolbarTitle: 'Select date',\n dateTimePickerToolbarTitle: 'Select date & time',\n timePickerToolbarTitle: 'Select time',\n dateRangePickerToolbarTitle: 'Select date range',\n timeRangePickerToolbarTitle: 'Select time range',\n // Clock labels\n clockLabelText: (view, formattedTime) => `Select ${view}. ${!formattedTime ? 'No time selected' : `Selected time is ${formattedTime}`}`,\n hoursClockNumberText: hours => `${hours} hours`,\n minutesClockNumberText: minutes => `${minutes} minutes`,\n secondsClockNumberText: seconds => `${seconds} seconds`,\n // Digital clock labels\n selectViewText: view => `Select ${view}`,\n // Calendar labels\n calendarWeekNumberHeaderLabel: 'Week number',\n calendarWeekNumberHeaderText: '#',\n calendarWeekNumberAriaLabelText: weekNumber => `Week ${weekNumber}`,\n calendarWeekNumberText: weekNumber => `${weekNumber}`,\n // Open Picker labels\n openDatePickerDialogue: formattedDate => formattedDate ? `Choose date, selected date is ${formattedDate}` : 'Choose date',\n openTimePickerDialogue: formattedTime => formattedTime ? `Choose time, selected time is ${formattedTime}` : 'Choose time',\n openRangePickerDialogue: formattedRange => formattedRange ? `Choose range, selected range is ${formattedRange}` : 'Choose range',\n fieldClearLabel: 'Clear',\n // Table labels\n timeTableLabel: 'pick time',\n dateTableLabel: 'pick date',\n // Field section placeholders\n fieldYearPlaceholder: params => 'Y'.repeat(params.digitAmount),\n fieldMonthPlaceholder: params => params.contentType === 'letter' ? 'MMMM' : 'MM',\n fieldDayPlaceholder: () => 'DD',\n fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE',\n fieldHoursPlaceholder: () => 'hh',\n fieldMinutesPlaceholder: () => 'mm',\n fieldSecondsPlaceholder: () => 'ss',\n fieldMeridiemPlaceholder: () => 'aa',\n // View names\n year: 'Year',\n month: 'Month',\n day: 'Day',\n weekDay: 'Week day',\n hours: 'Hours',\n minutes: 'Minutes',\n seconds: 'Seconds',\n meridiem: 'Meridiem',\n // Common\n empty: 'Empty'\n};\nexport const DEFAULT_LOCALE = enUSPickers;\nexport const enUS = getPickersLocalization(enUSPickers);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { MuiPickersAdapterContext } from \"../../LocalizationProvider/LocalizationProvider.js\";\nimport { DEFAULT_LOCALE } from \"../../locales/enUS.js\";\nexport const useLocalizationContext = () => {\n const localization = React.useContext(MuiPickersAdapterContext);\n if (localization === null) {\n throw new Error(['MUI X: Can not find the date and time pickers localization context.', 'It looks like you forgot to wrap your component in LocalizationProvider.', 'This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package'].join('\\n'));\n }\n if (localization.utils === null) {\n throw new Error(['MUI X: Can not find the date and time pickers adapter from its localization context.', 'It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider.'].join('\\n'));\n }\n const localeText = React.useMemo(() => _extends({}, DEFAULT_LOCALE, localization.localeText), [localization.localeText]);\n return React.useMemo(() => _extends({}, localization, {\n localeText\n }), [localization, localeText]);\n};\nexport const useUtils = () => useLocalizationContext().utils;\nexport const useDefaultDates = () => useLocalizationContext().defaultDates;\nexport const useNow = timezone => {\n const utils = useUtils();\n const now = React.useRef(undefined);\n if (now.current === undefined) {\n now.current = utils.date(undefined, timezone);\n }\n return now.current;\n};","'use client';\n\nimport { useLocalizationContext } from \"../internals/hooks/useUtils.js\";\nexport const usePickerTranslations = () => useLocalizationContext().localeText;","import { createSvgIcon } from '@mui/material/utils';\nimport * as React from 'react';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const ArrowDropDownIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M7 10l5 5 5-5z\"\n}), 'ArrowDropDown');\n\n/**\n * @ignore - internal component.\n */\nexport const ArrowLeftIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z\"\n}), 'ArrowLeft');\n\n/**\n * @ignore - internal component.\n */\nexport const ArrowRightIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z\"\n}), 'ArrowRight');\n\n/**\n * @ignore - internal component.\n */\nexport const CalendarIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z\"\n}), 'Calendar');\n\n/**\n * @ignore - internal component.\n */\nexport const ClockIcon = createSvgIcon(/*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(\"path\", {\n d: \"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z\"\n }), /*#__PURE__*/_jsx(\"path\", {\n d: \"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z\"\n })]\n}), 'Clock');\n\n/**\n * @ignore - internal component.\n */\nexport const DateRangeIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z\"\n}), 'DateRange');\n\n/**\n * @ignore - internal component.\n */\nexport const TimeIcon = createSvgIcon(/*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(\"path\", {\n d: \"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z\"\n }), /*#__PURE__*/_jsx(\"path\", {\n d: \"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z\"\n })]\n}), 'Time');\n\n/**\n * @ignore - internal component.\n */\nexport const ClearIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n}), 'Clear');","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getPickersArrowSwitcherUtilityClass(slot) {\n return generateUtilityClass('MuiPickersArrowSwitcher', slot);\n}\nexport const pickersArrowSwitcherClasses = generateUtilityClasses('MuiPickersArrowSwitcher', ['root', 'spacer', 'button', 'previousIconButton', 'nextIconButton', 'leftArrowIcon', 'rightArrowIcon']);","'use client';\n\nimport * as React from 'react';\nexport const IsValidValueContext = /*#__PURE__*/React.createContext(() => true);\n\n/**\n * Returns a function to check if a value is valid according to the validation props passed to the parent Picker.\n */\nexport function useIsValidValue() {\n return React.useContext(IsValidValueContext);\n}","import * as React from 'react';\nexport const PickerFieldPrivateContext = /*#__PURE__*/React.createContext(null);\nexport function useNullableFieldPrivateContext() {\n return React.useContext(PickerFieldPrivateContext);\n}","'use client';\n\nimport * as React from 'react';\nexport const PickerContext = /*#__PURE__*/React.createContext(null);\n\n/**\n * Returns the context passed by the Picker wrapping the current component.\n */\nexport const usePickerContext = () => {\n const value = React.useContext(PickerContext);\n if (value == null) {\n throw new Error('MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component');\n }\n return value;\n};","import * as React from 'react';\nimport { LocalizationProvider } from \"../../LocalizationProvider/index.js\";\nimport { IsValidValueContext } from \"../../hooks/useIsValidValue.js\";\nimport { PickerFieldPrivateContext } from \"../hooks/useNullableFieldPrivateContext.js\";\nimport { PickerContext } from \"../../hooks/usePickerContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const PickerActionsContext = /*#__PURE__*/React.createContext(null);\nexport const PickerPrivateContext = /*#__PURE__*/React.createContext({\n ownerState: {\n isPickerDisabled: false,\n isPickerReadOnly: false,\n isPickerValueEmpty: false,\n isPickerOpen: false,\n pickerVariant: 'desktop',\n pickerOrientation: 'portrait'\n },\n rootRefObject: {\n current: null\n },\n labelId: undefined,\n dismissViews: () => {},\n hasUIView: true,\n getCurrentViewMode: () => 'UI',\n triggerElement: null,\n viewContainerRole: null,\n defaultActionBarActions: [],\n onPopperExited: undefined\n});\n\n/**\n * Provides the context for the various parts of a Picker component:\n * - contextValue: the context for the Picker sub-components.\n * - localizationProvider: the translations passed through the props and through a parent LocalizationProvider.\n *\n * @ignore - do not document.\n */\nexport function PickerProvider(props) {\n const {\n contextValue,\n actionsContextValue,\n privateContextValue,\n fieldPrivateContextValue,\n isValidContextValue,\n localeText,\n children\n } = props;\n return /*#__PURE__*/_jsx(PickerContext.Provider, {\n value: contextValue,\n children: /*#__PURE__*/_jsx(PickerActionsContext.Provider, {\n value: actionsContextValue,\n children: /*#__PURE__*/_jsx(PickerPrivateContext.Provider, {\n value: privateContextValue,\n children: /*#__PURE__*/_jsx(PickerFieldPrivateContext.Provider, {\n value: fieldPrivateContextValue,\n children: /*#__PURE__*/_jsx(IsValidValueContext.Provider, {\n value: isValidContextValue,\n children: /*#__PURE__*/_jsx(LocalizationProvider, {\n localeText: localeText,\n children: children\n })\n })\n })\n })\n })\n });\n}","'use client';\n\nimport * as React from 'react';\nimport { PickerPrivateContext } from \"../components/PickerProvider.js\";\n\n/**\n * Returns the private context passed by the Picker wrapping the current component.\n */\nexport const usePickerPrivateContext = () => React.useContext(PickerPrivateContext);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"slots\", \"slotProps\", \"isNextDisabled\", \"isNextHidden\", \"onGoToNext\", \"nextLabel\", \"isPreviousDisabled\", \"isPreviousHidden\", \"onGoToPrevious\", \"previousLabel\", \"labelId\", \"classes\"],\n _excluded2 = [\"ownerState\"],\n _excluded3 = [\"ownerState\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport Typography from '@mui/material/Typography';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport IconButton from '@mui/material/IconButton';\nimport { ArrowLeftIcon, ArrowRightIcon } from \"../../../icons/index.js\";\nimport { getPickersArrowSwitcherUtilityClass } from \"./pickersArrowSwitcherClasses.js\";\nimport { usePickerPrivateContext } from \"../../hooks/usePickerPrivateContext.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst PickersArrowSwitcherRoot = styled('div', {\n name: 'MuiPickersArrowSwitcher',\n slot: 'Root'\n})({\n display: 'flex'\n});\nconst PickersArrowSwitcherSpacer = styled('div', {\n name: 'MuiPickersArrowSwitcher',\n slot: 'Spacer'\n})(({\n theme\n}) => ({\n width: theme.spacing(3)\n}));\nconst PickersArrowSwitcherButton = styled(IconButton, {\n name: 'MuiPickersArrowSwitcher',\n slot: 'Button'\n})({\n variants: [{\n props: {\n isButtonHidden: true\n },\n style: {\n visibility: 'hidden'\n }\n }]\n});\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root'],\n spacer: ['spacer'],\n button: ['button'],\n previousIconButton: ['previousIconButton'],\n nextIconButton: ['nextIconButton'],\n leftArrowIcon: ['leftArrowIcon'],\n rightArrowIcon: ['rightArrowIcon']\n };\n return composeClasses(slots, getPickersArrowSwitcherUtilityClass, classes);\n};\nexport const PickersArrowSwitcher = /*#__PURE__*/React.forwardRef(function PickersArrowSwitcher(inProps, ref) {\n const isRtl = useRtl();\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersArrowSwitcher'\n });\n const {\n children,\n className,\n slots,\n slotProps,\n isNextDisabled,\n isNextHidden,\n onGoToNext,\n nextLabel,\n isPreviousDisabled,\n isPreviousHidden,\n onGoToPrevious,\n previousLabel,\n labelId,\n classes: classesProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n ownerState\n } = usePickerPrivateContext();\n const classes = useUtilityClasses(classesProp);\n const nextProps = {\n isDisabled: isNextDisabled,\n isHidden: isNextHidden,\n goTo: onGoToNext,\n label: nextLabel\n };\n const previousProps = {\n isDisabled: isPreviousDisabled,\n isHidden: isPreviousHidden,\n goTo: onGoToPrevious,\n label: previousLabel\n };\n const PreviousIconButton = slots?.previousIconButton ?? PickersArrowSwitcherButton;\n const previousIconButtonProps = useSlotProps({\n elementType: PreviousIconButton,\n externalSlotProps: slotProps?.previousIconButton,\n additionalProps: {\n size: 'medium',\n title: previousProps.label,\n 'aria-label': previousProps.label,\n disabled: previousProps.isDisabled,\n edge: 'end',\n onClick: previousProps.goTo\n },\n ownerState: _extends({}, ownerState, {\n isButtonHidden: previousProps.isHidden ?? false\n }),\n className: clsx(classes.button, classes.previousIconButton)\n });\n const NextIconButton = slots?.nextIconButton ?? PickersArrowSwitcherButton;\n const nextIconButtonProps = useSlotProps({\n elementType: NextIconButton,\n externalSlotProps: slotProps?.nextIconButton,\n additionalProps: {\n size: 'medium',\n title: nextProps.label,\n 'aria-label': nextProps.label,\n disabled: nextProps.isDisabled,\n edge: 'start',\n onClick: nextProps.goTo\n },\n ownerState: _extends({}, ownerState, {\n isButtonHidden: nextProps.isHidden ?? false\n }),\n className: clsx(classes.button, classes.nextIconButton)\n });\n const LeftArrowIcon = slots?.leftArrowIcon ?? ArrowLeftIcon;\n // The spread is here to avoid this bug mui/material-ui#34056\n const _useSlotProps = useSlotProps({\n elementType: LeftArrowIcon,\n externalSlotProps: slotProps?.leftArrowIcon,\n additionalProps: {\n fontSize: 'inherit'\n },\n ownerState,\n className: classes.leftArrowIcon\n }),\n leftArrowIconProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2);\n const RightArrowIcon = slots?.rightArrowIcon ?? ArrowRightIcon;\n // The spread is here to avoid this bug mui/material-ui#34056\n const _useSlotProps2 = useSlotProps({\n elementType: RightArrowIcon,\n externalSlotProps: slotProps?.rightArrowIcon,\n additionalProps: {\n fontSize: 'inherit'\n },\n ownerState,\n className: classes.rightArrowIcon\n }),\n rightArrowIconProps = _objectWithoutPropertiesLoose(_useSlotProps2, _excluded3);\n return /*#__PURE__*/_jsxs(PickersArrowSwitcherRoot, _extends({\n ref: ref,\n className: clsx(classes.root, className),\n ownerState: ownerState\n }, other, {\n children: [/*#__PURE__*/_jsx(PreviousIconButton, _extends({}, previousIconButtonProps, {\n children: isRtl ? /*#__PURE__*/_jsx(RightArrowIcon, _extends({}, rightArrowIconProps)) : /*#__PURE__*/_jsx(LeftArrowIcon, _extends({}, leftArrowIconProps))\n })), children ? /*#__PURE__*/_jsx(Typography, {\n variant: \"subtitle1\",\n component: \"span\",\n id: labelId,\n children: children\n }) : /*#__PURE__*/_jsx(PickersArrowSwitcherSpacer, {\n className: classes.spacer,\n ownerState: ownerState\n }), /*#__PURE__*/_jsx(NextIconButton, _extends({}, nextIconButtonProps, {\n children: isRtl ? /*#__PURE__*/_jsx(LeftArrowIcon, _extends({}, leftArrowIconProps)) : /*#__PURE__*/_jsx(RightArrowIcon, _extends({}, rightArrowIconProps))\n }))]\n }));\n});","export const areViewsEqual = (views, expectedViews) => {\n if (views.length !== expectedViews.length) {\n return false;\n }\n return expectedViews.every(expectedView => views.includes(expectedView));\n};\nexport const applyDefaultViewProps = ({\n openTo,\n defaultOpenTo,\n views,\n defaultViews\n}) => {\n const viewsWithDefault = views ?? defaultViews;\n let openToWithDefault;\n if (openTo != null) {\n openToWithDefault = openTo;\n } else if (viewsWithDefault.includes(defaultOpenTo)) {\n openToWithDefault = defaultOpenTo;\n } else if (viewsWithDefault.length > 0) {\n openToWithDefault = viewsWithDefault[0];\n } else {\n throw new Error('MUI X: The `views` prop must contain at least one view.');\n }\n return {\n views: viewsWithDefault,\n openTo: openToWithDefault\n };\n};","import { areViewsEqual } from \"./views.js\";\nexport const EXPORTED_TIME_VIEWS = ['hours', 'minutes', 'seconds'];\nexport const TIME_VIEWS = ['hours', 'minutes', 'seconds', 'meridiem'];\nexport const isTimeView = view => EXPORTED_TIME_VIEWS.includes(view);\nexport const isInternalTimeView = view => TIME_VIEWS.includes(view);\nexport const getMeridiem = (date, utils) => {\n if (!date) {\n return null;\n }\n return utils.getHours(date) >= 12 ? 'pm' : 'am';\n};\nexport const convertValueToMeridiem = (value, meridiem, ampm) => {\n if (ampm) {\n const currentMeridiem = value >= 12 ? 'pm' : 'am';\n if (currentMeridiem !== meridiem) {\n return meridiem === 'am' ? value - 12 : value + 12;\n }\n }\n return value;\n};\nexport const convertToMeridiem = (time, meridiem, ampm, utils) => {\n const newHoursAmount = convertValueToMeridiem(utils.getHours(time), meridiem, ampm);\n return utils.setHours(time, newHoursAmount);\n};\nexport const getSecondsInDay = (date, utils) => {\n return utils.getHours(date) * 3600 + utils.getMinutes(date) * 60 + utils.getSeconds(date);\n};\nexport const createIsAfterIgnoreDatePart = (disableIgnoringDatePartForTimeValidation, utils) => (dateLeft, dateRight) => {\n if (disableIgnoringDatePartForTimeValidation) {\n return utils.isAfter(dateLeft, dateRight);\n }\n return getSecondsInDay(dateLeft, utils) > getSecondsInDay(dateRight, utils);\n};\nexport const resolveTimeFormat = (utils, {\n format,\n views,\n ampm\n}) => {\n if (format != null) {\n return format;\n }\n const formats = utils.formats;\n if (areViewsEqual(views, ['hours'])) {\n return ampm ? `${formats.hours12h} ${formats.meridiem}` : formats.hours24h;\n }\n if (areViewsEqual(views, ['minutes'])) {\n return formats.minutes;\n }\n if (areViewsEqual(views, ['seconds'])) {\n return formats.seconds;\n }\n if (areViewsEqual(views, ['minutes', 'seconds'])) {\n return `${formats.minutes}:${formats.seconds}`;\n }\n if (areViewsEqual(views, ['hours', 'minutes', 'seconds'])) {\n return ampm ? `${formats.hours12h}:${formats.minutes}:${formats.seconds} ${formats.meridiem}` : `${formats.hours24h}:${formats.minutes}:${formats.seconds}`;\n }\n return ampm ? `${formats.hours12h}:${formats.minutes} ${formats.meridiem}` : `${formats.hours24h}:${formats.minutes}`;\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport const DEFAULT_STEP_NAVIGATION = {\n hasNextStep: false,\n hasSeveralSteps: false,\n goToNextStep: () => {},\n areViewsInSameStep: () => true\n};\n\n/**\n * Create an object that determines whether there is a next step and allows to go to the next step.\n * @param {CreateStepNavigationParameters<TStep>} parameters The parameters of the createStepNavigation function\n * @returns {CreateStepNavigationReturnValue} The return value of the createStepNavigation function\n */\nexport function createStepNavigation(parameters) {\n const {\n steps,\n isViewMatchingStep,\n onStepChange\n } = parameters;\n return parametersBis => {\n if (steps == null) {\n return DEFAULT_STEP_NAVIGATION;\n }\n const currentStepIndex = steps.findIndex(step => isViewMatchingStep(parametersBis.view, step));\n const nextStep = currentStepIndex === -1 || currentStepIndex === steps.length - 1 ? null : steps[currentStepIndex + 1];\n return {\n hasNextStep: nextStep != null,\n hasSeveralSteps: steps.length > 1,\n goToNextStep: () => {\n if (nextStep == null) {\n return;\n }\n onStepChange(_extends({}, parametersBis, {\n step: nextStep\n }));\n },\n areViewsInSameStep: (viewA, viewB) => {\n const stepA = steps.find(step => isViewMatchingStep(viewA, step));\n const stepB = steps.find(step => isViewMatchingStep(viewB, step));\n return stepA === stepB;\n }\n };\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useControlled from '@mui/utils/useControlled';\nimport { DEFAULT_STEP_NAVIGATION } from \"../utils/createStepNavigation.js\";\nlet warnedOnceNotValidView = false;\nexport function useViews({\n onChange,\n onViewChange,\n openTo,\n view: inView,\n views,\n autoFocus,\n focusedView: inFocusedView,\n onFocusedViewChange,\n getStepNavigation\n}) {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnceNotValidView) {\n if (inView != null && !views.includes(inView)) {\n console.warn(`MUI X: \\`view=\"${inView}\"\\` is not a valid prop.`, `It must be an element of \\`views=[\"${views.join('\", \"')}\"]\\`.`);\n warnedOnceNotValidView = true;\n }\n if (inView == null && openTo != null && !views.includes(openTo)) {\n console.warn(`MUI X: \\`openTo=\"${openTo}\"\\` is not a valid prop.`, `It must be an element of \\`views=[\"${views.join('\", \"')}\"]\\`.`);\n warnedOnceNotValidView = true;\n }\n }\n }\n const previousOpenTo = React.useRef(openTo);\n const previousViews = React.useRef(views);\n const defaultView = React.useRef(views.includes(openTo) ? openTo : views[0]);\n const [view, setView] = useControlled({\n name: 'useViews',\n state: 'view',\n controlled: inView,\n default: defaultView.current\n });\n const defaultFocusedView = React.useRef(autoFocus ? view : null);\n const [focusedView, setFocusedView] = useControlled({\n name: 'useViews',\n state: 'focusedView',\n controlled: inFocusedView,\n default: defaultFocusedView.current\n });\n const stepNavigation = getStepNavigation ? getStepNavigation({\n setView,\n view,\n defaultView: defaultView.current,\n views\n }) : DEFAULT_STEP_NAVIGATION;\n React.useEffect(() => {\n // Update the current view when `openTo` or `views` props change\n if (previousOpenTo.current && previousOpenTo.current !== openTo || previousViews.current && previousViews.current.some(previousView => !views.includes(previousView))) {\n setView(views.includes(openTo) ? openTo : views[0]);\n previousViews.current = views;\n previousOpenTo.current = openTo;\n }\n }, [openTo, setView, view, views]);\n const viewIndex = views.indexOf(view);\n const previousView = views[viewIndex - 1] ?? null;\n const nextView = views[viewIndex + 1] ?? null;\n const handleFocusedViewChange = useEventCallback((viewToFocus, hasFocus) => {\n if (hasFocus) {\n // Focus event\n setFocusedView(viewToFocus);\n } else {\n // Blur event\n setFocusedView(prevFocusedView => viewToFocus === prevFocusedView ? null : prevFocusedView // If false the blur is due to view switching\n );\n }\n onFocusedViewChange?.(viewToFocus, hasFocus);\n });\n const handleChangeView = useEventCallback(newView => {\n // always keep the focused view in sync\n handleFocusedViewChange(newView, true);\n if (newView === view) {\n return;\n }\n setView(newView);\n if (onViewChange) {\n onViewChange(newView);\n }\n });\n const goToNextView = useEventCallback(() => {\n if (nextView) {\n handleChangeView(nextView);\n }\n });\n const setValueAndGoToNextView = useEventCallback((value, currentViewSelectionState, selectedView) => {\n const isSelectionFinishedOnCurrentView = currentViewSelectionState === 'finish';\n const hasMoreViews = selectedView ?\n // handles case like `DateTimePicker`, where a view might return a `finish` selection state\n // but when it's not the final view given all `views` -> overall selection state should be `partial`.\n views.indexOf(selectedView) < views.length - 1 : Boolean(nextView);\n const globalSelectionState = isSelectionFinishedOnCurrentView && hasMoreViews ? 'partial' : currentViewSelectionState;\n onChange(value, globalSelectionState, selectedView);\n\n // The selected view can be different from the active view,\n // This can happen if multiple views are displayed, like in `DesktopDateTimePicker` or `MultiSectionDigitalClock`.\n let currentView = null;\n if (selectedView != null && selectedView !== view) {\n currentView = selectedView;\n } else if (isSelectionFinishedOnCurrentView) {\n currentView = view;\n }\n if (currentView == null) {\n return;\n }\n const viewToNavigateTo = views[views.indexOf(currentView) + 1];\n if (viewToNavigateTo == null || !stepNavigation.areViewsInSameStep(currentView, viewToNavigateTo)) {\n return;\n }\n handleChangeView(viewToNavigateTo);\n });\n return _extends({}, stepNavigation, {\n view,\n setView: handleChangeView,\n focusedView,\n setFocusedView: handleFocusedViewChange,\n nextView,\n previousView,\n // Always return up-to-date default view instead of the initial one (i.e. defaultView.current)\n defaultView: views.includes(openTo) ? openTo : views[0],\n goToNextView,\n setValueAndGoToNextView\n });\n}","import * as React from 'react';\nimport { useUtils } from \"./useUtils.js\";\nimport { getMeridiem, convertToMeridiem } from \"../utils/time-utils.js\";\nexport function useNextMonthDisabled(month, {\n disableFuture,\n maxDate,\n timezone\n}) {\n const utils = useUtils();\n return React.useMemo(() => {\n const now = utils.date(undefined, timezone);\n const lastEnabledMonth = utils.startOfMonth(disableFuture && utils.isBefore(now, maxDate) ? now : maxDate);\n return !utils.isAfter(lastEnabledMonth, month);\n }, [disableFuture, maxDate, month, utils, timezone]);\n}\nexport function usePreviousMonthDisabled(month, {\n disablePast,\n minDate,\n timezone\n}) {\n const utils = useUtils();\n return React.useMemo(() => {\n const now = utils.date(undefined, timezone);\n const firstEnabledMonth = utils.startOfMonth(disablePast && utils.isAfter(now, minDate) ? now : minDate);\n return !utils.isBefore(firstEnabledMonth, month);\n }, [disablePast, minDate, month, utils, timezone]);\n}\nexport function useMeridiemMode(date, ampm, onChange, selectionState) {\n const utils = useUtils();\n const cleanDate = React.useMemo(() => !utils.isValid(date) ? null : date, [utils, date]);\n const meridiemMode = getMeridiem(cleanDate, utils);\n const handleMeridiemChange = React.useCallback(mode => {\n const timeWithMeridiem = cleanDate == null ? null : convertToMeridiem(cleanDate, mode, Boolean(ampm), utils);\n onChange(timeWithMeridiem, selectionState ?? 'partial');\n }, [ampm, cleanDate, onChange, selectionState, utils]);\n return {\n meridiemMode,\n handleMeridiemChange\n };\n}","export const DAY_SIZE = 36;\nexport const DAY_MARGIN = 2;\nexport const DIALOG_WIDTH = 320;\nexport const MAX_CALENDAR_HEIGHT = 280;\nexport const VIEW_HEIGHT = 336;\nexport const DIGITAL_CLOCK_VIEW_HEIGHT = 232;\nexport const MULTI_SECTION_CLOCK_SECTION_WIDTH = 48;","import { styled } from '@mui/material/styles';\nimport { DIALOG_WIDTH, VIEW_HEIGHT } from \"../../constants/dimensions.js\";\nexport const PickerViewRoot = styled('div')({\n overflow: 'hidden',\n width: DIALOG_WIDTH,\n maxHeight: VIEW_HEIGHT,\n display: 'flex',\n flexDirection: 'column',\n margin: '0 auto'\n});","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getTimeClockUtilityClass(slot) {\n return generateUtilityClass('MuiTimeClock', slot);\n}\nexport const timeClockClasses = generateUtilityClasses('MuiTimeClock', ['root', 'arrowSwitcher']);","export const CLOCK_WIDTH = 220;\nexport const CLOCK_HOUR_WIDTH = 36;\nconst clockCenter = {\n x: CLOCK_WIDTH / 2,\n y: CLOCK_WIDTH / 2\n};\nconst baseClockPoint = {\n x: clockCenter.x,\n y: 0\n};\nconst cx = baseClockPoint.x - clockCenter.x;\nconst cy = baseClockPoint.y - clockCenter.y;\nconst rad2deg = rad => rad * (180 / Math.PI);\nconst getAngleValue = (step, offsetX, offsetY) => {\n const x = offsetX - clockCenter.x;\n const y = offsetY - clockCenter.y;\n const atan = Math.atan2(cx, cy) - Math.atan2(x, y);\n let deg = rad2deg(atan);\n deg = Math.round(deg / step) * step;\n deg %= 360;\n const value = Math.floor(deg / step) || 0;\n const delta = x ** 2 + y ** 2;\n const distance = Math.sqrt(delta);\n return {\n value,\n distance\n };\n};\nexport const getMinutes = (offsetX, offsetY, step = 1) => {\n const angleStep = step * 6;\n let {\n value\n } = getAngleValue(angleStep, offsetX, offsetY);\n value = value * step % 60;\n return value;\n};\nexport const getHours = (offsetX, offsetY, ampm) => {\n const {\n value,\n distance\n } = getAngleValue(30, offsetX, offsetY);\n let hour = value || 12;\n if (!ampm) {\n if (distance < CLOCK_WIDTH / 2 - CLOCK_HOUR_WIDTH) {\n hour += 12;\n hour %= 24;\n }\n } else {\n hour %= 12;\n }\n return hour;\n};","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getClockPointerUtilityClass(slot) {\n return generateUtilityClass('MuiClockPointer', slot);\n}\nexport const clockPointerClasses = generateUtilityClasses('MuiClockPointer', ['root', 'thumb']);","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\", \"classes\", \"isBetweenTwoClockValues\", \"isInner\", \"type\", \"viewValue\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { CLOCK_WIDTH, CLOCK_HOUR_WIDTH } from \"./shared.js\";\nimport { getClockPointerUtilityClass } from \"./clockPointerClasses.js\";\nimport { usePickerPrivateContext } from \"../internals/hooks/usePickerPrivateContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root'],\n thumb: ['thumb']\n };\n return composeClasses(slots, getClockPointerUtilityClass, classes);\n};\nconst ClockPointerRoot = styled('div', {\n name: 'MuiClockPointer',\n slot: 'Root'\n})(({\n theme\n}) => ({\n width: 2,\n backgroundColor: (theme.vars || theme).palette.primary.main,\n position: 'absolute',\n left: 'calc(50% - 1px)',\n bottom: '50%',\n transformOrigin: 'center bottom 0px',\n variants: [{\n props: {\n isClockPointerAnimated: true\n },\n style: {\n transition: theme.transitions.create(['transform', 'height'])\n }\n }]\n}));\nconst ClockPointerThumb = styled('div', {\n name: 'MuiClockPointer',\n slot: 'Thumb'\n})(({\n theme\n}) => ({\n width: 4,\n height: 4,\n backgroundColor: (theme.vars || theme).palette.primary.contrastText,\n borderRadius: '50%',\n position: 'absolute',\n top: -21,\n left: `calc(50% - ${CLOCK_HOUR_WIDTH / 2}px)`,\n border: `${(CLOCK_HOUR_WIDTH - 4) / 2}px solid ${(theme.vars || theme).palette.primary.main}`,\n boxSizing: 'content-box',\n variants: [{\n props: {\n isClockPointerBetweenTwoValues: false\n },\n style: {\n backgroundColor: (theme.vars || theme).palette.primary.main\n }\n }]\n}));\n\n/**\n * @ignore - internal component.\n */\nexport function ClockPointer(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiClockPointer'\n });\n const {\n className,\n classes: classesProp,\n isBetweenTwoClockValues,\n isInner,\n type,\n viewValue\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const previousType = React.useRef(type);\n React.useEffect(() => {\n previousType.current = type;\n }, [type]);\n const {\n ownerState: pickerOwnerState\n } = usePickerPrivateContext();\n const ownerState = _extends({}, pickerOwnerState, {\n isClockPointerAnimated: previousType.current !== type,\n isClockPointerBetweenTwoValues: isBetweenTwoClockValues\n });\n const classes = useUtilityClasses(classesProp);\n const getAngleStyle = () => {\n const max = type === 'hours' ? 12 : 60;\n let angle = 360 / max * viewValue;\n if (type === 'hours' && viewValue > 12) {\n angle -= 360; // round up angle to max 360 degrees\n }\n return {\n height: Math.round((isInner ? 0.26 : 0.4) * CLOCK_WIDTH),\n transform: `rotateZ(${angle}deg)`\n };\n };\n return /*#__PURE__*/_jsx(ClockPointerRoot, _extends({\n style: getAngleStyle(),\n className: clsx(classes.root, className),\n ownerState: ownerState\n }, other, {\n children: /*#__PURE__*/_jsx(ClockPointerThumb, {\n ownerState: ownerState,\n className: classes.thumb\n })\n }));\n}","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getClockUtilityClass(slot) {\n return generateUtilityClass('MuiClock', slot);\n}\nexport const clockClasses = generateUtilityClasses('MuiClock', ['root', 'clock', 'wrapper', 'squareMask', 'pin', 'amButton', 'pmButton', 'meridiemText', 'selected']);","import { areViewsEqual } from \"./views.js\";\nexport const mergeDateAndTime = (utils, dateParam, timeParam) => {\n let mergedDate = dateParam;\n mergedDate = utils.setHours(mergedDate, utils.getHours(timeParam));\n mergedDate = utils.setMinutes(mergedDate, utils.getMinutes(timeParam));\n mergedDate = utils.setSeconds(mergedDate, utils.getSeconds(timeParam));\n mergedDate = utils.setMilliseconds(mergedDate, utils.getMilliseconds(timeParam));\n return mergedDate;\n};\nexport const findClosestEnabledDate = ({\n date,\n disableFuture,\n disablePast,\n maxDate,\n minDate,\n isDateDisabled,\n utils,\n timezone\n}) => {\n const today = mergeDateAndTime(utils, utils.date(undefined, timezone), date);\n if (disablePast && utils.isBefore(minDate, today)) {\n minDate = today;\n }\n if (disableFuture && utils.isAfter(maxDate, today)) {\n maxDate = today;\n }\n let forward = date;\n let backward = date;\n if (utils.isBefore(date, minDate)) {\n forward = minDate;\n backward = null;\n }\n if (utils.isAfter(date, maxDate)) {\n if (backward) {\n backward = maxDate;\n }\n forward = null;\n }\n while (forward || backward) {\n if (forward && utils.isAfter(forward, maxDate)) {\n forward = null;\n }\n if (backward && utils.isBefore(backward, minDate)) {\n backward = null;\n }\n if (forward) {\n if (!isDateDisabled(forward)) {\n return forward;\n }\n forward = utils.addDays(forward, 1);\n }\n if (backward) {\n if (!isDateDisabled(backward)) {\n return backward;\n }\n backward = utils.addDays(backward, -1);\n }\n }\n return null;\n};\nexport const replaceInvalidDateByNull = (utils, value) => !utils.isValid(value) ? null : value;\nexport const applyDefaultDate = (utils, value, defaultValue) => {\n if (value == null || !utils.isValid(value)) {\n return defaultValue;\n }\n return value;\n};\nexport const areDatesEqual = (utils, a, b) => {\n if (!utils.isValid(a) && a != null && !utils.isValid(b) && b != null) {\n return true;\n }\n return utils.isEqual(a, b);\n};\nexport const getMonthsInYear = (utils, year) => {\n const firstMonth = utils.startOfYear(year);\n const months = [firstMonth];\n while (months.length < 12) {\n const prevMonth = months[months.length - 1];\n months.push(utils.addMonths(prevMonth, 1));\n }\n return months;\n};\nexport const getTodayDate = (utils, timezone, valueType) => valueType === 'date' ? utils.startOfDay(utils.date(undefined, timezone)) : utils.date(undefined, timezone);\nexport const formatMeridiem = (utils, meridiem) => {\n const date = utils.setHours(utils.date(), meridiem === 'am' ? 2 : 14);\n return utils.format(date, 'meridiem');\n};\nexport const DATE_VIEWS = ['year', 'month', 'day'];\nexport const isDatePickerView = view => DATE_VIEWS.includes(view);\nexport const resolveDateFormat = (utils, {\n format,\n views\n}, isInToolbar) => {\n if (format != null) {\n return format;\n }\n const formats = utils.formats;\n if (areViewsEqual(views, ['year'])) {\n return formats.year;\n }\n if (areViewsEqual(views, ['month'])) {\n return formats.month;\n }\n if (areViewsEqual(views, ['day'])) {\n return formats.dayOfMonth;\n }\n if (areViewsEqual(views, ['month', 'year'])) {\n return `${formats.month} ${formats.year}`;\n }\n if (areViewsEqual(views, ['day', 'month'])) {\n return `${formats.month} ${formats.dayOfMonth}`;\n }\n if (isInToolbar) {\n // Little localization hack (Google is doing the same for android native pickers):\n // For english localization it is convenient to include weekday into the date \"Mon, Jun 1\".\n // For other locales using strings like \"June 1\", without weekday.\n return /en/.test(utils.getCurrentLocaleCode()) ? formats.normalDateWithWeekday : formats.normalDate;\n }\n return formats.keyboardDate;\n};\nexport const getWeekdays = (utils, date) => {\n const start = utils.startOfWeek(date);\n return [0, 1, 2, 3, 4, 5, 6].map(diff => utils.addDays(start, diff));\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport IconButton from '@mui/material/IconButton';\nimport Typography from '@mui/material/Typography';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { unstable_useEnhancedEffect as useEnhancedEffect, unstable_composeClasses as composeClasses } from '@mui/utils';\nimport { ClockPointer } from \"./ClockPointer.js\";\nimport { usePickerTranslations } from \"../hooks/usePickerTranslations.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { CLOCK_HOUR_WIDTH, getHours, getMinutes } from \"./shared.js\";\nimport { getClockUtilityClass } from \"./clockClasses.js\";\nimport { formatMeridiem } from \"../internals/utils/date-utils.js\";\nimport { usePickerPrivateContext } from \"../internals/hooks/usePickerPrivateContext.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = (classes, ownerState) => {\n const slots = {\n root: ['root'],\n clock: ['clock'],\n wrapper: ['wrapper'],\n squareMask: ['squareMask'],\n pin: ['pin'],\n amButton: ['amButton', ownerState.clockMeridiemMode === 'am' && 'selected'],\n pmButton: ['pmButton', ownerState.clockMeridiemMode === 'pm' && 'selected'],\n meridiemText: ['meridiemText']\n };\n return composeClasses(slots, getClockUtilityClass, classes);\n};\nconst ClockRoot = styled('div', {\n name: 'MuiClock',\n slot: 'Root'\n})(({\n theme\n}) => ({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n margin: theme.spacing(2)\n}));\nconst ClockClock = styled('div', {\n name: 'MuiClock',\n slot: 'Clock'\n})({\n backgroundColor: 'rgba(0,0,0,.07)',\n borderRadius: '50%',\n height: 220,\n width: 220,\n flexShrink: 0,\n position: 'relative',\n pointerEvents: 'none'\n});\nconst ClockWrapper = styled('div', {\n name: 'MuiClock',\n slot: 'Wrapper'\n})({\n '&:focus': {\n outline: 'none'\n }\n});\nconst ClockSquareMask = styled('div', {\n name: 'MuiClock',\n slot: 'SquareMask'\n})({\n width: '100%',\n height: '100%',\n position: 'absolute',\n pointerEvents: 'auto',\n outline: 0,\n // Disable scroll capabilities.\n touchAction: 'none',\n userSelect: 'none',\n variants: [{\n props: {\n isClockDisabled: false\n },\n style: {\n '@media (pointer: fine)': {\n cursor: 'pointer',\n borderRadius: '50%'\n },\n '&:active': {\n cursor: 'move'\n }\n }\n }]\n});\nconst ClockPin = styled('div', {\n name: 'MuiClock',\n slot: 'Pin'\n})(({\n theme\n}) => ({\n width: 6,\n height: 6,\n borderRadius: '50%',\n backgroundColor: (theme.vars || theme).palette.primary.main,\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)'\n}));\nconst meridiemButtonCommonStyles = (theme, clockMeridiemMode) => ({\n zIndex: 1,\n bottom: 8,\n paddingLeft: 4,\n paddingRight: 4,\n width: CLOCK_HOUR_WIDTH,\n variants: [{\n props: {\n clockMeridiemMode\n },\n style: {\n backgroundColor: (theme.vars || theme).palette.primary.main,\n color: (theme.vars || theme).palette.primary.contrastText,\n '&:hover': {\n backgroundColor: (theme.vars || theme).palette.primary.light\n }\n }\n }]\n});\nconst ClockAmButton = styled(IconButton, {\n name: 'MuiClock',\n slot: 'AmButton'\n})(({\n theme\n}) => _extends({}, meridiemButtonCommonStyles(theme, 'am'), {\n // keeping it here to make TS happy\n position: 'absolute',\n left: 8\n}));\nconst ClockPmButton = styled(IconButton, {\n name: 'MuiClock',\n slot: 'PmButton'\n})(({\n theme\n}) => _extends({}, meridiemButtonCommonStyles(theme, 'pm'), {\n // keeping it here to make TS happy\n position: 'absolute',\n right: 8\n}));\nconst ClockMeridiemText = styled(Typography, {\n name: 'MuiClock',\n slot: 'MeridiemText'\n})({\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis'\n});\n\n/**\n * @ignore - internal component.\n */\nexport function Clock(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiClock'\n });\n const {\n ampm,\n ampmInClock,\n autoFocus,\n children,\n value,\n handleMeridiemChange,\n isTimeDisabled,\n meridiemMode,\n minutesStep = 1,\n onChange,\n selectedId,\n type,\n viewValue,\n viewRange: [minViewValue, maxViewValue],\n disabled = false,\n readOnly,\n className,\n classes: classesProp\n } = props;\n const utils = useUtils();\n const translations = usePickerTranslations();\n const {\n ownerState: pickerOwnerState\n } = usePickerPrivateContext();\n const ownerState = _extends({}, pickerOwnerState, {\n isClockDisabled: disabled,\n clockMeridiemMode: meridiemMode\n });\n const isMoving = React.useRef(false);\n const classes = useUtilityClasses(classesProp, ownerState);\n const isSelectedTimeDisabled = isTimeDisabled(viewValue, type);\n const isPointerInner = !ampm && type === 'hours' && (viewValue < 1 || viewValue > 12);\n const handleValueChange = (newValue, isFinish) => {\n if (disabled || readOnly) {\n return;\n }\n if (isTimeDisabled(newValue, type)) {\n return;\n }\n onChange(newValue, isFinish);\n };\n const setTime = (event, isFinish) => {\n let {\n offsetX,\n offsetY\n } = event;\n if (offsetX === undefined) {\n const rect = event.target.getBoundingClientRect();\n offsetX = event.changedTouches[0].clientX - rect.left;\n offsetY = event.changedTouches[0].clientY - rect.top;\n }\n const newSelectedValue = type === 'seconds' || type === 'minutes' ? getMinutes(offsetX, offsetY, minutesStep) : getHours(offsetX, offsetY, Boolean(ampm));\n handleValueChange(newSelectedValue, isFinish);\n };\n const handleTouchSelection = event => {\n isMoving.current = true;\n setTime(event, 'shallow');\n };\n const handleTouchEnd = event => {\n if (isMoving.current) {\n setTime(event, 'finish');\n isMoving.current = false;\n }\n event.preventDefault();\n };\n const handleMouseMove = event => {\n // event.buttons & PRIMARY_MOUSE_BUTTON\n if (event.buttons > 0) {\n setTime(event.nativeEvent, 'shallow');\n }\n };\n const handleMouseUp = event => {\n if (isMoving.current) {\n isMoving.current = false;\n }\n setTime(event.nativeEvent, 'finish');\n };\n const isPointerBetweenTwoClockValues = type === 'hours' ? false : viewValue % 5 !== 0;\n const keyboardControlStep = type === 'minutes' ? minutesStep : 1;\n const listboxRef = React.useRef(null);\n // Since this is rendered when a Popper is opened we can't use passive effects.\n // Focusing in passive effects in Popper causes scroll jump.\n useEnhancedEffect(() => {\n if (autoFocus) {\n // The ref not being resolved would be a bug in MUI.\n listboxRef.current.focus();\n }\n }, [autoFocus]);\n const clampValue = newValue => Math.max(minViewValue, Math.min(maxViewValue, newValue));\n const circleValue = newValue => (newValue + (maxViewValue + 1)) % (maxViewValue + 1);\n const handleKeyDown = event => {\n // TODO: Why this early exit?\n if (isMoving.current) {\n return;\n }\n switch (event.key) {\n case 'Home':\n // reset both hours and minutes\n handleValueChange(minViewValue, 'partial');\n event.preventDefault();\n break;\n case 'End':\n handleValueChange(maxViewValue, 'partial');\n event.preventDefault();\n break;\n case 'ArrowUp':\n handleValueChange(circleValue(viewValue + keyboardControlStep), 'partial');\n event.preventDefault();\n break;\n case 'ArrowDown':\n handleValueChange(circleValue(viewValue - keyboardControlStep), 'partial');\n event.preventDefault();\n break;\n case 'PageUp':\n handleValueChange(clampValue(viewValue + 5), 'partial');\n event.preventDefault();\n break;\n case 'PageDown':\n handleValueChange(clampValue(viewValue - 5), 'partial');\n event.preventDefault();\n break;\n case 'Enter':\n case ' ':\n handleValueChange(viewValue, 'finish');\n event.preventDefault();\n break;\n default:\n // do nothing\n }\n };\n return /*#__PURE__*/_jsxs(ClockRoot, {\n className: clsx(classes.root, className),\n children: [/*#__PURE__*/_jsxs(ClockClock, {\n className: classes.clock,\n children: [/*#__PURE__*/_jsx(ClockSquareMask, {\n onTouchMove: handleTouchSelection,\n onTouchStart: handleTouchSelection,\n onTouchEnd: handleTouchEnd,\n onMouseUp: handleMouseUp,\n onMouseMove: handleMouseMove,\n ownerState: ownerState,\n className: classes.squareMask\n }), !isSelectedTimeDisabled && /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(ClockPin, {\n className: classes.pin\n }), value != null && /*#__PURE__*/_jsx(ClockPointer, {\n type: type,\n viewValue: viewValue,\n isInner: isPointerInner,\n isBetweenTwoClockValues: isPointerBetweenTwoClockValues\n })]\n }), /*#__PURE__*/_jsx(ClockWrapper, {\n \"aria-activedescendant\": selectedId,\n \"aria-label\": translations.clockLabelText(type, value == null ? null : utils.format(value, ampm ? 'fullTime12h' : 'fullTime24h')),\n ref: listboxRef,\n role: \"listbox\",\n onKeyDown: handleKeyDown,\n tabIndex: 0,\n className: classes.wrapper,\n children: children\n })]\n }), ampm && ampmInClock && /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(ClockAmButton, {\n onClick: readOnly ? undefined : () => handleMeridiemChange('am'),\n disabled: disabled || meridiemMode === null,\n ownerState: ownerState,\n className: classes.amButton,\n title: formatMeridiem(utils, 'am'),\n children: /*#__PURE__*/_jsx(ClockMeridiemText, {\n variant: \"caption\",\n className: classes.meridiemText,\n children: formatMeridiem(utils, 'am')\n })\n }), /*#__PURE__*/_jsx(ClockPmButton, {\n disabled: disabled || meridiemMode === null,\n onClick: readOnly ? undefined : () => handleMeridiemChange('pm'),\n ownerState: ownerState,\n className: classes.pmButton,\n title: formatMeridiem(utils, 'pm'),\n children: /*#__PURE__*/_jsx(ClockMeridiemText, {\n variant: \"caption\",\n className: classes.meridiemText,\n children: formatMeridiem(utils, 'pm')\n })\n })]\n })]\n });\n}","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getClockNumberUtilityClass(slot) {\n return generateUtilityClass('MuiClockNumber', slot);\n}\nexport const clockNumberClasses = generateUtilityClasses('MuiClockNumber', ['root', 'selected', 'disabled']);","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"classes\", \"disabled\", \"index\", \"inner\", \"label\", \"selected\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { CLOCK_WIDTH, CLOCK_HOUR_WIDTH } from \"./shared.js\";\nimport { getClockNumberUtilityClass, clockNumberClasses } from \"./clockNumberClasses.js\";\nimport { usePickerPrivateContext } from \"../internals/hooks/usePickerPrivateContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = (classes, ownerState) => {\n const slots = {\n root: ['root', ownerState.isClockNumberSelected && 'selected', ownerState.isClockNumberDisabled && 'disabled']\n };\n return composeClasses(slots, getClockNumberUtilityClass, classes);\n};\nconst ClockNumberRoot = styled('span', {\n name: 'MuiClockNumber',\n slot: 'Root',\n overridesResolver: (_, styles) => [styles.root, {\n [`&.${clockNumberClasses.disabled}`]: styles.disabled\n }, {\n [`&.${clockNumberClasses.selected}`]: styles.selected\n }]\n})(({\n theme\n}) => ({\n height: CLOCK_HOUR_WIDTH,\n width: CLOCK_HOUR_WIDTH,\n position: 'absolute',\n left: `calc((100% - ${CLOCK_HOUR_WIDTH}px) / 2)`,\n display: 'inline-flex',\n justifyContent: 'center',\n alignItems: 'center',\n borderRadius: '50%',\n color: (theme.vars || theme).palette.text.primary,\n fontFamily: theme.typography.fontFamily,\n '&:focused': {\n backgroundColor: (theme.vars || theme).palette.background.paper\n },\n [`&.${clockNumberClasses.selected}`]: {\n color: (theme.vars || theme).palette.primary.contrastText\n },\n [`&.${clockNumberClasses.disabled}`]: {\n pointerEvents: 'none',\n color: (theme.vars || theme).palette.text.disabled\n },\n variants: [{\n props: {\n isClockNumberInInnerRing: true\n },\n style: _extends({}, theme.typography.body2, {\n color: (theme.vars || theme).palette.text.secondary\n })\n }]\n}));\n\n/**\n * @ignore - internal component.\n */\nexport function ClockNumber(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiClockNumber'\n });\n const {\n className,\n classes: classesProp,\n disabled,\n index,\n inner,\n label,\n selected\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n ownerState: pickerOwnerState\n } = usePickerPrivateContext();\n const ownerState = _extends({}, pickerOwnerState, {\n isClockNumberInInnerRing: inner,\n isClockNumberSelected: selected,\n isClockNumberDisabled: disabled\n });\n const classes = useUtilityClasses(classesProp, ownerState);\n const angle = index % 12 / 12 * Math.PI * 2 - Math.PI / 2;\n const length = (CLOCK_WIDTH - CLOCK_HOUR_WIDTH - 2) / 2 * (inner ? 0.65 : 1);\n const x = Math.round(Math.cos(angle) * length);\n const y = Math.round(Math.sin(angle) * length);\n return /*#__PURE__*/_jsx(ClockNumberRoot, _extends({\n className: clsx(classes.root, className),\n \"aria-disabled\": disabled ? true : undefined,\n \"aria-selected\": selected ? true : undefined,\n role: \"option\",\n style: {\n transform: `translate(${x}px, ${y + (CLOCK_WIDTH - CLOCK_HOUR_WIDTH) / 2}px`\n },\n ownerState: ownerState\n }, other, {\n children: label\n }));\n}","import * as React from 'react';\nimport { ClockNumber } from \"./ClockNumber.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * @ignore - internal component.\n */\nexport const getHourNumbers = ({\n ampm,\n value,\n getClockNumberText,\n isDisabled,\n selectedId,\n utils\n}) => {\n const currentHours = value ? utils.getHours(value) : null;\n const hourNumbers = [];\n const startHour = ampm ? 1 : 0;\n const endHour = ampm ? 12 : 23;\n const isSelected = hour => {\n if (currentHours === null) {\n return false;\n }\n if (ampm) {\n if (hour === 12) {\n return currentHours === 12 || currentHours === 0;\n }\n return currentHours === hour || currentHours - 12 === hour;\n }\n return currentHours === hour;\n };\n for (let hour = startHour; hour <= endHour; hour += 1) {\n let label = hour.toString();\n if (hour === 0) {\n label = '00';\n }\n const inner = !ampm && (hour === 0 || hour > 12);\n label = utils.formatNumber(label);\n const selected = isSelected(hour);\n hourNumbers.push(/*#__PURE__*/_jsx(ClockNumber, {\n id: selected ? selectedId : undefined,\n index: hour,\n inner: inner,\n selected: selected,\n disabled: isDisabled(hour),\n label: label,\n \"aria-label\": getClockNumberText(label)\n }, hour));\n }\n return hourNumbers;\n};\nexport const getMinutesNumbers = ({\n utils,\n value,\n isDisabled,\n getClockNumberText,\n selectedId\n}) => {\n const f = utils.formatNumber;\n return [[5, f('05')], [10, f('10')], [15, f('15')], [20, f('20')], [25, f('25')], [30, f('30')], [35, f('35')], [40, f('40')], [45, f('45')], [50, f('50')], [55, f('55')], [0, f('00')]].map(([numberValue, label], index) => {\n const selected = numberValue === value;\n return /*#__PURE__*/_jsx(ClockNumber, {\n label: label,\n id: selected ? selectedId : undefined,\n index: index + 1,\n inner: false,\n disabled: isDisabled(numberValue),\n selected: selected,\n \"aria-label\": getClockNumberText(label)\n }, numberValue);\n });\n};","import * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useControlled from '@mui/utils/useControlled';\nimport { useUtils } from \"./useUtils.js\";\n/**\n * Hooks controlling the value while making sure that:\n * - The value returned by `onChange` always have the timezone of `props.value` or `props.defaultValue` if defined\n * - The value rendered is always the one from `props.timezone` if defined\n */\nexport const useControlledValue = ({\n name,\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n referenceDate,\n onChange: onChangeProp,\n valueManager\n}) => {\n const utils = useUtils();\n const [valueWithInputTimezone, setValue] = useControlled({\n name,\n state: 'value',\n controlled: valueProp,\n default: defaultValue ?? valueManager.emptyValue\n });\n const inputTimezone = React.useMemo(() => valueManager.getTimezone(utils, valueWithInputTimezone), [utils, valueManager, valueWithInputTimezone]);\n const setInputTimezone = useEventCallback(newValue => {\n if (inputTimezone == null) {\n return newValue;\n }\n return valueManager.setTimezone(utils, inputTimezone, newValue);\n });\n const timezoneToRender = React.useMemo(() => {\n if (timezoneProp) {\n return timezoneProp;\n }\n if (inputTimezone) {\n return inputTimezone;\n }\n if (referenceDate) {\n return utils.getTimezone(referenceDate);\n }\n return 'default';\n }, [timezoneProp, inputTimezone, referenceDate, utils]);\n const valueWithTimezoneToRender = React.useMemo(() => valueManager.setTimezone(utils, timezoneToRender, valueWithInputTimezone), [valueManager, utils, timezoneToRender, valueWithInputTimezone]);\n const handleValueChange = useEventCallback((newValue, ...otherParams) => {\n const newValueWithInputTimezone = setInputTimezone(newValue);\n setValue(newValueWithInputTimezone);\n onChangeProp?.(newValueWithInputTimezone, ...otherParams);\n });\n return {\n value: valueWithTimezoneToRender,\n handleValueChange,\n timezone: timezoneToRender\n };\n};","import { createIsAfterIgnoreDatePart } from \"./time-utils.js\";\nimport { mergeDateAndTime, getTodayDate } from \"./date-utils.js\";\nexport const SECTION_TYPE_GRANULARITY = {\n year: 1,\n month: 2,\n day: 3,\n hours: 4,\n minutes: 5,\n seconds: 6,\n milliseconds: 7\n};\nexport const getSectionTypeGranularity = sections => Math.max(...sections.map(section => SECTION_TYPE_GRANULARITY[section.type] ?? 1));\nconst roundDate = (utils, granularity, date) => {\n if (granularity === SECTION_TYPE_GRANULARITY.year) {\n return utils.startOfYear(date);\n }\n if (granularity === SECTION_TYPE_GRANULARITY.month) {\n return utils.startOfMonth(date);\n }\n if (granularity === SECTION_TYPE_GRANULARITY.day) {\n return utils.startOfDay(date);\n }\n\n // We don't have startOfHour / startOfMinute / startOfSecond\n let roundedDate = date;\n if (granularity < SECTION_TYPE_GRANULARITY.minutes) {\n roundedDate = utils.setMinutes(roundedDate, 0);\n }\n if (granularity < SECTION_TYPE_GRANULARITY.seconds) {\n roundedDate = utils.setSeconds(roundedDate, 0);\n }\n if (granularity < SECTION_TYPE_GRANULARITY.milliseconds) {\n roundedDate = utils.setMilliseconds(roundedDate, 0);\n }\n return roundedDate;\n};\nexport const getDefaultReferenceDate = ({\n props,\n utils,\n granularity,\n timezone,\n getTodayDate: inGetTodayDate\n}) => {\n let referenceDate = inGetTodayDate ? inGetTodayDate() : roundDate(utils, granularity, getTodayDate(utils, timezone));\n if (props.minDate != null && utils.isAfterDay(props.minDate, referenceDate)) {\n referenceDate = roundDate(utils, granularity, props.minDate);\n }\n if (props.maxDate != null && utils.isBeforeDay(props.maxDate, referenceDate)) {\n referenceDate = roundDate(utils, granularity, props.maxDate);\n }\n const isAfter = createIsAfterIgnoreDatePart(props.disableIgnoringDatePartForTimeValidation ?? false, utils);\n if (props.minTime != null && isAfter(props.minTime, referenceDate)) {\n referenceDate = roundDate(utils, granularity, props.disableIgnoringDatePartForTimeValidation ? props.minTime : mergeDateAndTime(utils, referenceDate, props.minTime));\n }\n if (props.maxTime != null && isAfter(referenceDate, props.maxTime)) {\n referenceDate = roundDate(utils, granularity, props.disableIgnoringDatePartForTimeValidation ? props.maxTime : mergeDateAndTime(utils, referenceDate, props.maxTime));\n }\n return referenceDate;\n};","import { getMonthsInYear } from \"../../utils/date-utils.js\";\nexport const getDateSectionConfigFromFormatToken = (utils, formatToken) => {\n const config = utils.formatTokenMap[formatToken];\n if (config == null) {\n throw new Error([`MUI X: The token \"${formatToken}\" is not supported by the Date and Time Pickers.`, 'Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported.'].join('\\n'));\n }\n if (typeof config === 'string') {\n return {\n type: config,\n contentType: config === 'meridiem' ? 'letter' : 'digit',\n maxLength: undefined\n };\n }\n return {\n type: config.sectionType,\n contentType: config.contentType,\n maxLength: config.maxLength\n };\n};\nexport const getDaysInWeekStr = (utils, format) => {\n const elements = [];\n const now = utils.date(undefined, 'default');\n const startDate = utils.startOfWeek(now);\n const endDate = utils.endOfWeek(now);\n let current = startDate;\n while (utils.isBefore(current, endDate)) {\n elements.push(current);\n current = utils.addDays(current, 1);\n }\n return elements.map(weekDay => utils.formatByString(weekDay, format));\n};\nexport const getLetterEditingOptions = (utils, timezone, sectionType, format) => {\n switch (sectionType) {\n case 'month':\n {\n return getMonthsInYear(utils, utils.date(undefined, timezone)).map(month => utils.formatByString(month, format));\n }\n case 'weekDay':\n {\n return getDaysInWeekStr(utils, format);\n }\n case 'meridiem':\n {\n const now = utils.date(undefined, timezone);\n return [utils.startOfDay(now), utils.endOfDay(now)].map(date => utils.formatByString(date, format));\n }\n default:\n {\n return [];\n }\n }\n};\n\n// This format should be the same on all the adapters\n// If some adapter does not respect this convention, then we will need to hardcode the format on each adapter.\nexport const FORMAT_SECONDS_NO_LEADING_ZEROS = 's';\nconst NON_LOCALIZED_DIGITS = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];\nexport const getLocalizedDigits = utils => {\n const today = utils.date(undefined);\n const formattedZero = utils.formatByString(utils.setSeconds(today, 0), FORMAT_SECONDS_NO_LEADING_ZEROS);\n if (formattedZero === '0') {\n return NON_LOCALIZED_DIGITS;\n }\n return Array.from({\n length: 10\n }).map((_, index) => utils.formatByString(utils.setSeconds(today, index), FORMAT_SECONDS_NO_LEADING_ZEROS));\n};\nexport const removeLocalizedDigits = (valueStr, localizedDigits) => {\n if (localizedDigits[0] === '0') {\n return valueStr;\n }\n const digits = [];\n let currentFormattedDigit = '';\n for (let i = 0; i < valueStr.length; i += 1) {\n currentFormattedDigit += valueStr[i];\n const matchingDigitIndex = localizedDigits.indexOf(currentFormattedDigit);\n if (matchingDigitIndex > -1) {\n digits.push(matchingDigitIndex.toString());\n currentFormattedDigit = '';\n }\n }\n return digits.join('');\n};\nexport const applyLocalizedDigits = (valueStr, localizedDigits) => {\n if (localizedDigits[0] === '0') {\n return valueStr;\n }\n return valueStr.split('').map(char => localizedDigits[Number(char)]).join('');\n};\nexport const isStringNumber = (valueStr, localizedDigits) => {\n const nonLocalizedValueStr = removeLocalizedDigits(valueStr, localizedDigits);\n // `Number(' ')` returns `0` even if ' ' is not a valid number.\n return nonLocalizedValueStr !== ' ' && !Number.isNaN(Number(nonLocalizedValueStr));\n};\n\n/**\n * Make sure the value of a digit section have the right amount of leading zeros.\n * E.g.: `03` => `3`\n * Warning: Should only be called with non-localized digits. Call `removeLocalizedDigits` with your value if needed.\n */\nexport const cleanLeadingZeros = (valueStr, size) => {\n // Remove the leading zeros and then add back as many as needed.\n return Number(valueStr).toString().padStart(size, '0');\n};\nexport const cleanDigitSectionValue = (utils, value, sectionBoundaries, localizedDigits, section) => {\n if (process.env.NODE_ENV !== 'production') {\n if (section.type !== 'day' && section.contentType === 'digit-with-letter') {\n throw new Error([`MUI X: The token \"${section.format}\" is a digit format with letter in it.'\n This type of format is only supported for 'day' sections`].join('\\n'));\n }\n }\n if (section.type === 'day' && section.contentType === 'digit-with-letter') {\n const date = utils.setDate(sectionBoundaries.longestMonth, value);\n return utils.formatByString(date, section.format);\n }\n\n // queryValue without leading `0` (`01` => `1`)\n let valueStr = value.toString();\n if (section.hasLeadingZerosInInput) {\n valueStr = cleanLeadingZeros(valueStr, section.maxLength);\n }\n return applyLocalizedDigits(valueStr, localizedDigits);\n};\nexport const getSectionVisibleValue = (section, target, localizedDigits) => {\n let value = section.value || section.placeholder;\n const hasLeadingZeros = target === 'non-input' ? section.hasLeadingZerosInFormat : section.hasLeadingZerosInInput;\n if (target === 'non-input' && section.hasLeadingZerosInInput && !section.hasLeadingZerosInFormat) {\n value = Number(removeLocalizedDigits(value, localizedDigits)).toString();\n }\n\n // In the input, we add an empty character at the end of each section without leading zeros.\n // This makes sure that `onChange` will always be fired.\n // Otherwise, when your input value equals `1/dd/yyyy` (format `M/DD/YYYY` on DayJs),\n // If you press `1`, on the first section, the new value is also `1/dd/yyyy`,\n // So the browser will not fire the input `onChange`.\n const shouldAddInvisibleSpace = ['input-rtl', 'input-ltr'].includes(target) && section.contentType === 'digit' && !hasLeadingZeros && value.length === 1;\n if (shouldAddInvisibleSpace) {\n value = `${value}\\u200e`;\n }\n if (target === 'input-rtl') {\n value = `\\u2068${value}\\u2069`;\n }\n return value;\n};\nexport const changeSectionValueFormat = (utils, valueStr, currentFormat, newFormat) => {\n if (process.env.NODE_ENV !== 'production') {\n if (getDateSectionConfigFromFormatToken(utils, currentFormat).type === 'weekDay') {\n throw new Error(\"changeSectionValueFormat doesn't support week day formats\");\n }\n }\n return utils.formatByString(utils.parse(valueStr, currentFormat), newFormat);\n};\nconst isFourDigitYearFormat = (utils, format) => utils.formatByString(utils.date(undefined, 'system'), format).length === 4;\nexport const doesSectionFormatHaveLeadingZeros = (utils, contentType, sectionType, format) => {\n if (contentType !== 'digit') {\n return false;\n }\n const now = utils.date(undefined, 'default');\n switch (sectionType) {\n // We can't use `changeSectionValueFormat`, because `utils.parse('1', 'YYYY')` returns `1971` instead of `1`.\n case 'year':\n {\n // Remove once https://github.com/iamkun/dayjs/pull/2847 is merged and bump dayjs version\n if (utils.lib === 'dayjs' && format === 'YY') {\n return true;\n }\n return utils.formatByString(utils.setYear(now, 1), format).startsWith('0');\n }\n case 'month':\n {\n return utils.formatByString(utils.startOfYear(now), format).length > 1;\n }\n case 'day':\n {\n return utils.formatByString(utils.startOfMonth(now), format).length > 1;\n }\n case 'weekDay':\n {\n return utils.formatByString(utils.startOfWeek(now), format).length > 1;\n }\n case 'hours':\n {\n return utils.formatByString(utils.setHours(now, 1), format).length > 1;\n }\n case 'minutes':\n {\n return utils.formatByString(utils.setMinutes(now, 1), format).length > 1;\n }\n case 'seconds':\n {\n return utils.formatByString(utils.setSeconds(now, 1), format).length > 1;\n }\n default:\n {\n throw new Error('Invalid section type');\n }\n }\n};\n\n/**\n * Some date libraries like `dayjs` don't support parsing from date with escaped characters.\n * To make sure that the parsing works, we are building a format and a date without any separator.\n */\nexport const getDateFromDateSections = (utils, sections, localizedDigits) => {\n // If we have both a day and a weekDay section,\n // Then we skip the weekDay in the parsing because libraries like dayjs can't parse complicated formats containing a weekDay.\n // dayjs(dayjs().format('dddd MMMM D YYYY'), 'dddd MMMM D YYYY')) // returns `Invalid Date` even if the format is valid.\n const shouldSkipWeekDays = sections.some(section => section.type === 'day');\n const sectionFormats = [];\n const sectionValues = [];\n for (let i = 0; i < sections.length; i += 1) {\n const section = sections[i];\n const shouldSkip = shouldSkipWeekDays && section.type === 'weekDay';\n if (!shouldSkip) {\n sectionFormats.push(section.format);\n sectionValues.push(getSectionVisibleValue(section, 'non-input', localizedDigits));\n }\n }\n const formatWithoutSeparator = sectionFormats.join(' ');\n const dateWithoutSeparatorStr = sectionValues.join(' ');\n return utils.parse(dateWithoutSeparatorStr, formatWithoutSeparator);\n};\nexport const createDateStrForV7HiddenInputFromSections = sections => sections.map(section => {\n return `${section.startSeparator}${section.value || section.placeholder}${section.endSeparator}`;\n}).join('');\nexport const createDateStrForV6InputFromSections = (sections, localizedDigits, isRtl) => {\n const formattedSections = sections.map(section => {\n const dateValue = getSectionVisibleValue(section, isRtl ? 'input-rtl' : 'input-ltr', localizedDigits);\n return `${section.startSeparator}${dateValue}${section.endSeparator}`;\n });\n const dateStr = formattedSections.join('');\n if (!isRtl) {\n return dateStr;\n }\n\n // \\u2066: start left-to-right isolation\n // \\u2067: start right-to-left isolation\n // \\u2068: start first strong character isolation\n // \\u2069: pop isolation\n // wrap into an isolated group such that separators can split the string in smaller ones by adding \\u2069\\u2068\n return `\\u2066${dateStr}\\u2069`;\n};\nexport const getSectionsBoundaries = (utils, localizedDigits, timezone) => {\n const today = utils.date(undefined, timezone);\n const endOfYear = utils.endOfYear(today);\n const endOfDay = utils.endOfDay(today);\n const {\n maxDaysInMonth,\n longestMonth\n } = getMonthsInYear(utils, today).reduce((acc, month) => {\n const daysInMonth = utils.getDaysInMonth(month);\n if (daysInMonth > acc.maxDaysInMonth) {\n return {\n maxDaysInMonth: daysInMonth,\n longestMonth: month\n };\n }\n return acc;\n }, {\n maxDaysInMonth: 0,\n longestMonth: null\n });\n return {\n year: ({\n format\n }) => ({\n minimum: 0,\n maximum: isFourDigitYearFormat(utils, format) ? 9999 : 99\n }),\n month: () => ({\n minimum: 1,\n // Assumption: All years have the same amount of months\n maximum: utils.getMonth(endOfYear) + 1\n }),\n day: ({\n currentDate\n }) => ({\n minimum: 1,\n maximum: utils.isValid(currentDate) ? utils.getDaysInMonth(currentDate) : maxDaysInMonth,\n longestMonth: longestMonth\n }),\n weekDay: ({\n format,\n contentType\n }) => {\n if (contentType === 'digit') {\n const daysInWeek = getDaysInWeekStr(utils, format).map(Number);\n return {\n minimum: Math.min(...daysInWeek),\n maximum: Math.max(...daysInWeek)\n };\n }\n return {\n minimum: 1,\n maximum: 7\n };\n },\n hours: ({\n format\n }) => {\n const lastHourInDay = utils.getHours(endOfDay);\n const hasMeridiem = removeLocalizedDigits(utils.formatByString(utils.endOfDay(today), format), localizedDigits) !== lastHourInDay.toString();\n if (hasMeridiem) {\n return {\n minimum: 1,\n maximum: Number(removeLocalizedDigits(utils.formatByString(utils.startOfDay(today), format), localizedDigits))\n };\n }\n return {\n minimum: 0,\n maximum: lastHourInDay\n };\n },\n minutes: () => ({\n minimum: 0,\n // Assumption: All years have the same amount of minutes\n maximum: utils.getMinutes(endOfDay)\n }),\n seconds: () => ({\n minimum: 0,\n // Assumption: All years have the same amount of seconds\n maximum: utils.getSeconds(endOfDay)\n }),\n meridiem: () => ({\n minimum: 0,\n maximum: 1\n }),\n empty: () => ({\n minimum: 0,\n maximum: 0\n })\n };\n};\nlet warnedOnceInvalidSection = false;\nexport const validateSections = (sections, valueType) => {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnceInvalidSection) {\n const supportedSections = ['empty'];\n if (['date', 'date-time'].includes(valueType)) {\n supportedSections.push('weekDay', 'day', 'month', 'year');\n }\n if (['time', 'date-time'].includes(valueType)) {\n supportedSections.push('hours', 'minutes', 'seconds', 'meridiem');\n }\n const invalidSection = sections.find(section => !supportedSections.includes(section.type));\n if (invalidSection) {\n console.warn(`MUI X: The field component you are using is not compatible with the \"${invalidSection.type}\" date section.`, `The supported date sections are [\"${supportedSections.join('\", \"')}\"]\\`.`);\n warnedOnceInvalidSection = true;\n }\n }\n }\n};\nconst transferDateSectionValue = (utils, section, dateToTransferFrom, dateToTransferTo) => {\n switch (section.type) {\n case 'year':\n {\n return utils.setYear(dateToTransferTo, utils.getYear(dateToTransferFrom));\n }\n case 'month':\n {\n return utils.setMonth(dateToTransferTo, utils.getMonth(dateToTransferFrom));\n }\n case 'weekDay':\n {\n let dayInWeekStrOfActiveDate = utils.formatByString(dateToTransferFrom, section.format);\n if (section.hasLeadingZerosInInput) {\n dayInWeekStrOfActiveDate = cleanLeadingZeros(dayInWeekStrOfActiveDate, section.maxLength);\n }\n const formattedDaysInWeek = getDaysInWeekStr(utils, section.format);\n const dayInWeekOfActiveDate = formattedDaysInWeek.indexOf(dayInWeekStrOfActiveDate);\n const dayInWeekOfNewSectionValue = formattedDaysInWeek.indexOf(section.value);\n const diff = dayInWeekOfNewSectionValue - dayInWeekOfActiveDate;\n return utils.addDays(dateToTransferFrom, diff);\n }\n case 'day':\n {\n return utils.setDate(dateToTransferTo, utils.getDate(dateToTransferFrom));\n }\n case 'meridiem':\n {\n const isAM = utils.getHours(dateToTransferFrom) < 12;\n const mergedDateHours = utils.getHours(dateToTransferTo);\n if (isAM && mergedDateHours >= 12) {\n return utils.addHours(dateToTransferTo, -12);\n }\n if (!isAM && mergedDateHours < 12) {\n return utils.addHours(dateToTransferTo, 12);\n }\n return dateToTransferTo;\n }\n case 'hours':\n {\n return utils.setHours(dateToTransferTo, utils.getHours(dateToTransferFrom));\n }\n case 'minutes':\n {\n return utils.setMinutes(dateToTransferTo, utils.getMinutes(dateToTransferFrom));\n }\n case 'seconds':\n {\n return utils.setSeconds(dateToTransferTo, utils.getSeconds(dateToTransferFrom));\n }\n default:\n {\n return dateToTransferTo;\n }\n }\n};\nconst reliableSectionModificationOrder = {\n year: 1,\n month: 2,\n day: 3,\n weekDay: 4,\n hours: 5,\n minutes: 6,\n seconds: 7,\n meridiem: 8,\n empty: 9\n};\nexport const mergeDateIntoReferenceDate = (utils, dateToTransferFrom, sections, referenceDate, shouldLimitToEditedSections) =>\n// cloning sections before sort to avoid mutating it\n[...sections].sort((a, b) => reliableSectionModificationOrder[a.type] - reliableSectionModificationOrder[b.type]).reduce((mergedDate, section) => {\n if (!shouldLimitToEditedSections || section.modified) {\n return transferDateSectionValue(utils, section, dateToTransferFrom, mergedDate);\n }\n return mergedDate;\n}, referenceDate);\nexport const isAndroid = () => navigator.userAgent.toLowerCase().includes('android');\n\n// TODO v9: Remove\nexport const getSectionOrder = (sections, shouldApplyRTL) => {\n const neighbors = {};\n if (!shouldApplyRTL) {\n sections.forEach((_, index) => {\n const leftIndex = index === 0 ? null : index - 1;\n const rightIndex = index === sections.length - 1 ? null : index + 1;\n neighbors[index] = {\n leftIndex,\n rightIndex\n };\n });\n return {\n neighbors,\n startIndex: 0,\n endIndex: sections.length - 1\n };\n }\n const rtl2ltr = {};\n const ltr2rtl = {};\n let groupedSectionsStart = 0;\n let groupedSectionsEnd = 0;\n let RTLIndex = sections.length - 1;\n while (RTLIndex >= 0) {\n groupedSectionsEnd = sections.findIndex(\n // eslint-disable-next-line @typescript-eslint/no-loop-func\n (section, index) => index >= groupedSectionsStart && section.endSeparator?.includes(' ') &&\n // Special case where the spaces were not there in the initial input\n section.endSeparator !== ' / ');\n if (groupedSectionsEnd === -1) {\n groupedSectionsEnd = sections.length - 1;\n }\n for (let i = groupedSectionsEnd; i >= groupedSectionsStart; i -= 1) {\n ltr2rtl[i] = RTLIndex;\n rtl2ltr[RTLIndex] = i;\n RTLIndex -= 1;\n }\n groupedSectionsStart = groupedSectionsEnd + 1;\n }\n sections.forEach((_, index) => {\n const rtlIndex = ltr2rtl[index];\n const leftIndex = rtlIndex === 0 ? null : rtl2ltr[rtlIndex - 1];\n const rightIndex = rtlIndex === sections.length - 1 ? null : rtl2ltr[rtlIndex + 1];\n neighbors[index] = {\n leftIndex,\n rightIndex\n };\n });\n return {\n neighbors,\n startIndex: rtl2ltr[0],\n endIndex: rtl2ltr[sections.length - 1]\n };\n};\nexport const parseSelectedSections = (selectedSections, sections) => {\n if (selectedSections == null) {\n return null;\n }\n if (selectedSections === 'all') {\n return 'all';\n }\n if (typeof selectedSections === 'string') {\n const index = sections.findIndex(section => section.type === selectedSections);\n return index === -1 ? null : index;\n }\n return selectedSections;\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"value\", \"referenceDate\"];\nimport { areDatesEqual, getTodayDate, replaceInvalidDateByNull } from \"./date-utils.js\";\nimport { getDefaultReferenceDate } from \"./getDefaultReferenceDate.js\";\nimport { createDateStrForV7HiddenInputFromSections, createDateStrForV6InputFromSections } from \"../hooks/useField/useField.utils.js\";\nexport const singleItemValueManager = {\n emptyValue: null,\n getTodayValue: getTodayDate,\n getInitialReferenceValue: _ref => {\n let {\n value,\n referenceDate\n } = _ref,\n params = _objectWithoutPropertiesLoose(_ref, _excluded);\n if (params.utils.isValid(value)) {\n return value;\n }\n if (referenceDate != null) {\n return referenceDate;\n }\n return getDefaultReferenceDate(params);\n },\n cleanValue: replaceInvalidDateByNull,\n areValuesEqual: areDatesEqual,\n isSameError: (a, b) => a === b,\n hasError: error => error != null,\n defaultErrorState: null,\n getTimezone: (utils, value) => utils.isValid(value) ? utils.getTimezone(value) : null,\n setTimezone: (utils, timezone, value) => value == null ? null : utils.setTimezone(value, timezone)\n};\nexport const singleItemFieldValueManager = {\n updateReferenceValue: (utils, value, prevReferenceValue) => utils.isValid(value) ? value : prevReferenceValue,\n getSectionsFromValue: (date, getSectionsFromDate) => getSectionsFromDate(date),\n getV7HiddenInputValueFromSections: createDateStrForV7HiddenInputFromSections,\n getV6InputValueFromSections: createDateStrForV6InputFromSections,\n parseValueStr: (valueStr, referenceValue, parseDate) => parseDate(valueStr.trim(), referenceValue),\n getDateFromSection: value => value,\n getDateSectionsFromValue: sections => sections,\n updateDateInValue: (value, activeSection, activeDate) => activeDate,\n clearDateSections: sections => sections.map(section => _extends({}, section, {\n value: ''\n }))\n};","import * as React from 'react';\nimport { singleItemValueManager } from \"../utils/valueManagers.js\";\nimport { getTodayDate } from \"../utils/date-utils.js\";\nimport { SECTION_TYPE_GRANULARITY } from \"../utils/getDefaultReferenceDate.js\";\nexport const useClockReferenceDate = ({\n value,\n referenceDate: referenceDateProp,\n utils,\n props,\n timezone\n}) => {\n const referenceDate = React.useMemo(() => singleItemValueManager.getInitialReferenceValue({\n value,\n utils,\n props,\n referenceDate: referenceDateProp,\n granularity: SECTION_TYPE_GRANULARITY.day,\n timezone,\n getTodayDate: () => getTodayDate(utils, timezone, 'date')\n }),\n // We only want to compute the reference date on mount.\n [] // eslint-disable-line react-hooks/exhaustive-deps\n );\n return value ?? referenceDate;\n};","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"ampm\", \"ampmInClock\", \"autoFocus\", \"slots\", \"slotProps\", \"value\", \"defaultValue\", \"referenceDate\", \"disableIgnoringDatePartForTimeValidation\", \"maxTime\", \"minTime\", \"disableFuture\", \"disablePast\", \"minutesStep\", \"shouldDisableTime\", \"showViewSwitcher\", \"onChange\", \"view\", \"views\", \"openTo\", \"onViewChange\", \"focusedView\", \"onFocusedViewChange\", \"className\", \"classes\", \"disabled\", \"readOnly\", \"timezone\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { unstable_composeClasses as composeClasses, unstable_useId as useId } from '@mui/utils';\nimport { usePickerTranslations } from \"../hooks/usePickerTranslations.js\";\nimport { useUtils, useNow } from \"../internals/hooks/useUtils.js\";\nimport { PickersArrowSwitcher } from \"../internals/components/PickersArrowSwitcher/index.js\";\nimport { convertValueToMeridiem, createIsAfterIgnoreDatePart } from \"../internals/utils/time-utils.js\";\nimport { useViews } from \"../internals/hooks/useViews.js\";\nimport { useMeridiemMode } from \"../internals/hooks/date-helpers-hooks.js\";\nimport { PickerViewRoot } from \"../internals/components/PickerViewRoot/index.js\";\nimport { getTimeClockUtilityClass } from \"./timeClockClasses.js\";\nimport { Clock } from \"./Clock.js\";\nimport { getHourNumbers, getMinutesNumbers } from \"./ClockNumbers.js\";\nimport { useControlledValue } from \"../internals/hooks/useControlledValue.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { useClockReferenceDate } from \"../internals/hooks/useClockReferenceDate.js\";\nimport { usePickerPrivateContext } from \"../internals/hooks/usePickerPrivateContext.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root'],\n arrowSwitcher: ['arrowSwitcher']\n };\n return composeClasses(slots, getTimeClockUtilityClass, classes);\n};\nconst TimeClockRoot = styled(PickerViewRoot, {\n name: 'MuiTimeClock',\n slot: 'Root'\n})({\n display: 'flex',\n flexDirection: 'column',\n position: 'relative'\n});\nconst TimeClockArrowSwitcher = styled(PickersArrowSwitcher, {\n name: 'MuiTimeClock',\n slot: 'ArrowSwitcher'\n})({\n position: 'absolute',\n right: 12,\n top: 15\n});\nconst TIME_CLOCK_DEFAULT_VIEWS = ['hours', 'minutes'];\n\n/**\n * Demos:\n *\n * - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)\n * - [TimeClock](https://mui.com/x/react-date-pickers/time-clock/)\n *\n * API:\n *\n * - [TimeClock API](https://mui.com/x/api/date-pickers/time-clock/)\n */\nexport const TimeClock = /*#__PURE__*/React.forwardRef(function TimeClock(inProps, ref) {\n const utils = useUtils();\n const props = useThemeProps({\n props: inProps,\n name: 'MuiTimeClock'\n });\n const {\n ampm = utils.is12HourCycleInCurrentLocale(),\n ampmInClock = false,\n autoFocus,\n slots,\n slotProps,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n disableIgnoringDatePartForTimeValidation = false,\n maxTime,\n minTime,\n disableFuture,\n disablePast,\n minutesStep = 1,\n shouldDisableTime,\n showViewSwitcher,\n onChange,\n view: inView,\n views = TIME_CLOCK_DEFAULT_VIEWS,\n openTo,\n onViewChange,\n focusedView,\n onFocusedViewChange,\n className,\n classes: classesProp,\n disabled,\n readOnly,\n timezone: timezoneProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n value,\n handleValueChange,\n timezone\n } = useControlledValue({\n name: 'TimeClock',\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n onChange,\n valueManager: singleItemValueManager\n });\n const valueOrReferenceDate = useClockReferenceDate({\n value,\n referenceDate: referenceDateProp,\n utils,\n props,\n timezone\n });\n const translations = usePickerTranslations();\n const now = useNow(timezone);\n const selectedId = useId();\n const {\n ownerState\n } = usePickerPrivateContext();\n const {\n view,\n setView,\n previousView,\n nextView,\n setValueAndGoToNextView\n } = useViews({\n view: inView,\n views,\n openTo,\n onViewChange,\n onChange: handleValueChange,\n focusedView,\n onFocusedViewChange\n });\n const {\n meridiemMode,\n handleMeridiemChange\n } = useMeridiemMode(valueOrReferenceDate, ampm, setValueAndGoToNextView);\n const isTimeDisabled = React.useCallback((rawValue, viewType) => {\n const isAfter = createIsAfterIgnoreDatePart(disableIgnoringDatePartForTimeValidation, utils);\n const shouldCheckPastEnd = viewType === 'hours' || viewType === 'minutes' && views.includes('seconds');\n const containsValidTime = ({\n start,\n end\n }) => {\n if (minTime && isAfter(minTime, end)) {\n return false;\n }\n if (maxTime && isAfter(start, maxTime)) {\n return false;\n }\n if (disableFuture && isAfter(start, now)) {\n return false;\n }\n if (disablePast && isAfter(now, shouldCheckPastEnd ? end : start)) {\n return false;\n }\n return true;\n };\n const isValidValue = (timeValue, step = 1) => {\n if (timeValue % step !== 0) {\n return false;\n }\n if (shouldDisableTime) {\n switch (viewType) {\n case 'hours':\n return !shouldDisableTime(utils.setHours(valueOrReferenceDate, timeValue), 'hours');\n case 'minutes':\n return !shouldDisableTime(utils.setMinutes(valueOrReferenceDate, timeValue), 'minutes');\n case 'seconds':\n return !shouldDisableTime(utils.setSeconds(valueOrReferenceDate, timeValue), 'seconds');\n default:\n return false;\n }\n }\n return true;\n };\n switch (viewType) {\n case 'hours':\n {\n const valueWithMeridiem = convertValueToMeridiem(rawValue, meridiemMode, ampm);\n const dateWithNewHours = utils.setHours(valueOrReferenceDate, valueWithMeridiem);\n if (utils.getHours(dateWithNewHours) !== valueWithMeridiem) {\n return true;\n }\n const start = utils.setSeconds(utils.setMinutes(dateWithNewHours, 0), 0);\n const end = utils.setSeconds(utils.setMinutes(dateWithNewHours, 59), 59);\n return !containsValidTime({\n start,\n end\n }) || !isValidValue(valueWithMeridiem);\n }\n case 'minutes':\n {\n const dateWithNewMinutes = utils.setMinutes(valueOrReferenceDate, rawValue);\n const start = utils.setSeconds(dateWithNewMinutes, 0);\n const end = utils.setSeconds(dateWithNewMinutes, 59);\n return !containsValidTime({\n start,\n end\n }) || !isValidValue(rawValue, minutesStep);\n }\n case 'seconds':\n {\n const dateWithNewSeconds = utils.setSeconds(valueOrReferenceDate, rawValue);\n const start = dateWithNewSeconds;\n const end = dateWithNewSeconds;\n return !containsValidTime({\n start,\n end\n }) || !isValidValue(rawValue);\n }\n default:\n throw new Error('not supported');\n }\n }, [ampm, valueOrReferenceDate, disableIgnoringDatePartForTimeValidation, maxTime, meridiemMode, minTime, minutesStep, shouldDisableTime, utils, disableFuture, disablePast, now, views]);\n const viewProps = React.useMemo(() => {\n switch (view) {\n case 'hours':\n {\n const handleHoursChange = (hourValue, isFinish) => {\n const valueWithMeridiem = convertValueToMeridiem(hourValue, meridiemMode, ampm);\n setValueAndGoToNextView(utils.setHours(valueOrReferenceDate, valueWithMeridiem), isFinish, 'hours');\n };\n const viewValue = utils.getHours(valueOrReferenceDate);\n let viewRange;\n if (ampm) {\n if (viewValue > 12) {\n viewRange = [12, 23];\n } else {\n viewRange = [0, 11];\n }\n } else {\n viewRange = [0, 23];\n }\n return {\n onChange: handleHoursChange,\n viewValue,\n children: getHourNumbers({\n value,\n utils,\n ampm,\n onChange: handleHoursChange,\n getClockNumberText: translations.hoursClockNumberText,\n isDisabled: hourValue => disabled || isTimeDisabled(hourValue, 'hours'),\n selectedId\n }),\n viewRange\n };\n }\n case 'minutes':\n {\n const minutesValue = utils.getMinutes(valueOrReferenceDate);\n const handleMinutesChange = (minuteValue, isFinish) => {\n setValueAndGoToNextView(utils.setMinutes(valueOrReferenceDate, minuteValue), isFinish, 'minutes');\n };\n return {\n viewValue: minutesValue,\n onChange: handleMinutesChange,\n children: getMinutesNumbers({\n utils,\n value: minutesValue,\n onChange: handleMinutesChange,\n getClockNumberText: translations.minutesClockNumberText,\n isDisabled: minuteValue => disabled || isTimeDisabled(minuteValue, 'minutes'),\n selectedId\n }),\n viewRange: [0, 59]\n };\n }\n case 'seconds':\n {\n const secondsValue = utils.getSeconds(valueOrReferenceDate);\n const handleSecondsChange = (secondValue, isFinish) => {\n setValueAndGoToNextView(utils.setSeconds(valueOrReferenceDate, secondValue), isFinish, 'seconds');\n };\n return {\n viewValue: secondsValue,\n onChange: handleSecondsChange,\n children: getMinutesNumbers({\n utils,\n value: secondsValue,\n onChange: handleSecondsChange,\n getClockNumberText: translations.secondsClockNumberText,\n isDisabled: secondValue => disabled || isTimeDisabled(secondValue, 'seconds'),\n selectedId\n }),\n viewRange: [0, 59]\n };\n }\n default:\n throw new Error('You must provide the type for ClockView');\n }\n }, [view, utils, value, ampm, translations.hoursClockNumberText, translations.minutesClockNumberText, translations.secondsClockNumberText, meridiemMode, setValueAndGoToNextView, valueOrReferenceDate, isTimeDisabled, selectedId, disabled]);\n const classes = useUtilityClasses(classesProp);\n return /*#__PURE__*/_jsxs(TimeClockRoot, _extends({\n ref: ref,\n className: clsx(classes.root, className),\n ownerState: ownerState\n }, other, {\n children: [/*#__PURE__*/_jsx(Clock, _extends({\n autoFocus: autoFocus ?? !!focusedView,\n ampmInClock: ampmInClock && views.includes('hours'),\n value: value,\n type: view,\n ampm: ampm,\n minutesStep: minutesStep,\n isTimeDisabled: isTimeDisabled,\n meridiemMode: meridiemMode,\n handleMeridiemChange: handleMeridiemChange,\n selectedId: selectedId,\n disabled: disabled,\n readOnly: readOnly\n }, viewProps)), showViewSwitcher && /*#__PURE__*/_jsx(TimeClockArrowSwitcher, {\n className: classes.arrowSwitcher,\n slots: slots,\n slotProps: slotProps,\n onGoToPrevious: () => setView(previousView),\n isPreviousDisabled: !previousView,\n previousLabel: translations.openPreviousView,\n onGoToNext: () => setView(nextView),\n isNextDisabled: !nextView,\n nextLabel: translations.openNextView,\n ownerState: ownerState\n })]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? TimeClock.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * 12h/24h view for hour selection clock.\n * @default utils.is12HourCycleInCurrentLocale()\n */\n ampm: PropTypes.bool,\n /**\n * Display ampm controls under the clock (instead of in the toolbar).\n * @default false\n */\n ampmInClock: PropTypes.bool,\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * The default selected value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the component is disabled.\n * When disabled, the value cannot be changed and no interaction is possible.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * Do not ignore date part when validating min/max time.\n * @default false\n */\n disableIgnoringDatePartForTimeValidation: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * Controlled focused view.\n */\n focusedView: PropTypes.oneOf(['hours', 'minutes', 'seconds']),\n /**\n * Maximal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n maxTime: PropTypes.object,\n /**\n * Minimal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n minTime: PropTypes.object,\n /**\n * Step over minutes.\n * @default 1\n */\n minutesStep: PropTypes.number,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TView The view type. Will be one of date or time views.\n * @param {TValue} value The new value.\n * @param {PickerSelectionState | undefined} selectionState Indicates if the date selection is complete.\n * @param {TView | undefined} selectedView Indicates the view in which the selection has been made.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired on focused view change.\n * @template TView\n * @param {TView} view The new view to focus or not.\n * @param {boolean} hasFocus `true` if the view should be focused.\n */\n onFocusedViewChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['hours', 'minutes', 'seconds']),\n /**\n * If `true`, the component is read-only.\n * When read-only, the value cannot be changed but the user can interact with the interface.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid time using the validation props, except callbacks such as `shouldDisableTime`.\n */\n referenceDate: PropTypes.object,\n /**\n * Disable specific time.\n * @param {PickerValidDate} value The value to check.\n * @param {TimeView} view The clock type of the timeValue.\n * @returns {boolean} If `true` the time will be disabled.\n */\n shouldDisableTime: PropTypes.func,\n showViewSwitcher: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['hours', 'minutes', 'seconds']),\n /**\n * Available views.\n * @default ['hours', 'minutes']\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['hours', 'minutes', 'seconds']).isRequired)\n} : void 0;","import generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nexport function getDigitalClockUtilityClass(slot) {\n return generateUtilityClass('MuiDigitalClock', slot);\n}\nexport const digitalClockClasses = generateUtilityClasses('MuiDigitalClock', ['root', 'list', 'item']);","/* Use it instead of .includes method for IE support */\nexport function arrayIncludes(array, itemOrItems) {\n if (Array.isArray(itemOrItems)) {\n return itemOrItems.every(item => array.indexOf(item) !== -1);\n }\n return array.indexOf(itemOrItems) !== -1;\n}\nexport const onSpaceOrEnter = (innerFn, externalEvent) => event => {\n if (event.key === 'Enter' || event.key === ' ') {\n innerFn(event);\n\n // prevent any side effects\n event.preventDefault();\n event.stopPropagation();\n }\n if (externalEvent) {\n externalEvent(event);\n }\n};\nexport const executeInTheNextEventLoopTick = fn => {\n setTimeout(fn, 0);\n};\n\n// https://www.abeautifulsite.net/posts/finding-the-active-element-in-a-shadow-root/\nexport const getActiveElement = (root = document) => {\n const activeEl = root.activeElement;\n if (!activeEl) {\n return null;\n }\n if (activeEl.shadowRoot) {\n return getActiveElement(activeEl.shadowRoot);\n }\n return activeEl;\n};\n\n/**\n * Gets the index of the focused list item in a given ul list element.\n *\n * @param {HTMLUListElement} listElement - The list element to search within.\n * @returns {number} The index of the focused list item, or -1 if none is focused.\n */\nexport const getFocusedListItemIndex = listElement => {\n const children = Array.from(listElement.children);\n return children.indexOf(getActiveElement(document));\n};\nexport const DEFAULT_DESKTOP_MODE_MEDIA_QUERY = '@media (pointer: fine)';\nexport function mergeSx(...sxProps) {\n return sxProps.reduce((acc, sxProp) => {\n if (Array.isArray(sxProp)) {\n acc.push(...sxProp);\n } else if (sxProp != null) {\n acc.push(sxProp);\n }\n return acc;\n }, []);\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"ampm\", \"timeStep\", \"autoFocus\", \"slots\", \"slotProps\", \"value\", \"defaultValue\", \"referenceDate\", \"disableIgnoringDatePartForTimeValidation\", \"maxTime\", \"minTime\", \"disableFuture\", \"disablePast\", \"minutesStep\", \"shouldDisableTime\", \"onChange\", \"view\", \"openTo\", \"onViewChange\", \"focusedView\", \"onFocusedViewChange\", \"className\", \"classes\", \"disabled\", \"readOnly\", \"views\", \"skipDisabled\", \"timezone\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport { alpha, styled, useThemeProps } from '@mui/material/styles';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport composeClasses from '@mui/utils/composeClasses';\nimport MenuItem from '@mui/material/MenuItem';\nimport MenuList from '@mui/material/MenuList';\nimport useForkRef from '@mui/utils/useForkRef';\nimport { usePickerTranslations } from \"../hooks/usePickerTranslations.js\";\nimport { useUtils, useNow } from \"../internals/hooks/useUtils.js\";\nimport { createIsAfterIgnoreDatePart } from \"../internals/utils/time-utils.js\";\nimport { PickerViewRoot } from \"../internals/components/PickerViewRoot/index.js\";\nimport { getDigitalClockUtilityClass } from \"./digitalClockClasses.js\";\nimport { useViews } from \"../internals/hooks/useViews.js\";\nimport { DIGITAL_CLOCK_VIEW_HEIGHT } from \"../internals/constants/dimensions.js\";\nimport { useControlledValue } from \"../internals/hooks/useControlledValue.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { useClockReferenceDate } from \"../internals/hooks/useClockReferenceDate.js\";\nimport { getFocusedListItemIndex } from \"../internals/utils/utils.js\";\nimport { usePickerPrivateContext } from \"../internals/hooks/usePickerPrivateContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root'],\n list: ['list'],\n item: ['item']\n };\n return composeClasses(slots, getDigitalClockUtilityClass, classes);\n};\nconst DigitalClockRoot = styled(PickerViewRoot, {\n name: 'MuiDigitalClock',\n slot: 'Root'\n})({\n overflowY: 'auto',\n width: '100%',\n scrollbarWidth: 'thin',\n '@media (prefers-reduced-motion: no-preference)': {\n scrollBehavior: 'auto'\n },\n maxHeight: DIGITAL_CLOCK_VIEW_HEIGHT,\n variants: [{\n props: {\n hasDigitalClockAlreadyBeenRendered: true\n },\n style: {\n '@media (prefers-reduced-motion: no-preference)': {\n scrollBehavior: 'smooth'\n }\n }\n }]\n});\nconst DigitalClockList = styled(MenuList, {\n name: 'MuiDigitalClock',\n slot: 'List'\n})({\n padding: 0\n});\nexport const DigitalClockItem = styled(MenuItem, {\n name: 'MuiDigitalClock',\n slot: 'Item',\n shouldForwardProp: prop => prop !== 'itemValue' && prop !== 'formattedValue'\n})(({\n theme\n}) => ({\n padding: '8px 16px',\n margin: '2px 4px',\n '&:first-of-type': {\n marginTop: 4\n },\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity)\n },\n '&.Mui-selected': {\n backgroundColor: (theme.vars || theme).palette.primary.main,\n color: (theme.vars || theme).palette.primary.contrastText,\n '&:focus-visible, &:hover': {\n backgroundColor: (theme.vars || theme).palette.primary.dark\n }\n },\n '&.Mui-focusVisible': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.focusOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.focusOpacity)\n }\n}));\n/**\n * Demos:\n *\n * - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)\n * - [DigitalClock](https://mui.com/x/react-date-pickers/digital-clock/)\n *\n * API:\n *\n * - [DigitalClock API](https://mui.com/x/api/date-pickers/digital-clock/)\n */\nexport const DigitalClock = /*#__PURE__*/React.forwardRef(function DigitalClock(inProps, ref) {\n const utils = useUtils();\n const containerRef = React.useRef(null);\n const handleRef = useForkRef(ref, containerRef);\n const listRef = React.useRef(null);\n const props = useThemeProps({\n props: inProps,\n name: 'MuiDigitalClock'\n });\n const {\n ampm = utils.is12HourCycleInCurrentLocale(),\n timeStep = 30,\n autoFocus,\n slots,\n slotProps,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n disableIgnoringDatePartForTimeValidation = false,\n maxTime,\n minTime,\n disableFuture,\n disablePast,\n minutesStep = 1,\n shouldDisableTime,\n onChange,\n view: inView,\n openTo,\n onViewChange,\n focusedView,\n onFocusedViewChange,\n className,\n classes: classesProp,\n disabled,\n readOnly,\n views = ['hours'],\n skipDisabled = false,\n timezone: timezoneProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n value,\n handleValueChange: handleRawValueChange,\n timezone\n } = useControlledValue({\n name: 'DigitalClock',\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n onChange,\n valueManager: singleItemValueManager\n });\n const translations = usePickerTranslations();\n const now = useNow(timezone);\n const {\n ownerState: pickerOwnerState\n } = usePickerPrivateContext();\n const ownerState = _extends({}, pickerOwnerState, {\n hasDigitalClockAlreadyBeenRendered: !!containerRef.current\n });\n const classes = useUtilityClasses(classesProp);\n const ClockItem = slots?.digitalClockItem ?? DigitalClockItem;\n const clockItemProps = useSlotProps({\n elementType: ClockItem,\n externalSlotProps: slotProps?.digitalClockItem,\n ownerState,\n className: classes.item\n });\n const valueOrReferenceDate = useClockReferenceDate({\n value,\n referenceDate: referenceDateProp,\n utils,\n props,\n timezone\n });\n const handleValueChange = useEventCallback(newValue => handleRawValueChange(newValue, 'finish', 'hours'));\n const {\n setValueAndGoToNextView\n } = useViews({\n view: inView,\n views,\n openTo,\n onViewChange,\n onChange: handleValueChange,\n focusedView,\n onFocusedViewChange\n });\n const handleItemSelect = useEventCallback(newValue => {\n setValueAndGoToNextView(newValue, 'finish');\n });\n React.useEffect(() => {\n if (containerRef.current === null) {\n return;\n }\n const activeItem = containerRef.current.querySelector('[role=\"listbox\"] [role=\"option\"][tabindex=\"0\"], [role=\"listbox\"] [role=\"option\"][aria-selected=\"true\"]');\n if (!activeItem) {\n return;\n }\n const offsetTop = activeItem.offsetTop;\n if (autoFocus || !!focusedView) {\n activeItem.focus();\n }\n\n // Subtracting the 4px of extra margin intended for the first visible section item\n containerRef.current.scrollTop = offsetTop - 4;\n });\n const isTimeDisabled = React.useCallback(valueToCheck => {\n const isAfter = createIsAfterIgnoreDatePart(disableIgnoringDatePartForTimeValidation, utils);\n const containsValidTime = () => {\n if (minTime && isAfter(minTime, valueToCheck)) {\n return false;\n }\n if (maxTime && isAfter(valueToCheck, maxTime)) {\n return false;\n }\n if (disableFuture && isAfter(valueToCheck, now)) {\n return false;\n }\n if (disablePast && isAfter(now, valueToCheck)) {\n return false;\n }\n return true;\n };\n const isValidValue = () => {\n if (utils.getMinutes(valueToCheck) % minutesStep !== 0) {\n return false;\n }\n if (shouldDisableTime) {\n return !shouldDisableTime(valueToCheck, 'hours');\n }\n return true;\n };\n return !containsValidTime() || !isValidValue();\n }, [disableIgnoringDatePartForTimeValidation, utils, minTime, maxTime, disableFuture, now, disablePast, minutesStep, shouldDisableTime]);\n const timeOptions = React.useMemo(() => {\n const result = [];\n const startOfDay = utils.startOfDay(valueOrReferenceDate);\n let nextTimeStepOption = startOfDay;\n while (utils.isSameDay(valueOrReferenceDate, nextTimeStepOption)) {\n result.push(nextTimeStepOption);\n nextTimeStepOption = utils.addMinutes(nextTimeStepOption, timeStep);\n }\n return result;\n }, [valueOrReferenceDate, timeStep, utils]);\n const focusedOptionIndex = timeOptions.findIndex(option => utils.isEqual(option, valueOrReferenceDate));\n const handleKeyDown = event => {\n switch (event.key) {\n case 'PageUp':\n {\n const newIndex = getFocusedListItemIndex(listRef.current) - 5;\n const children = listRef.current.children;\n const newFocusedIndex = Math.max(0, newIndex);\n const childToFocus = children[newFocusedIndex];\n if (childToFocus) {\n childToFocus.focus();\n }\n event.preventDefault();\n break;\n }\n case 'PageDown':\n {\n const newIndex = getFocusedListItemIndex(listRef.current) + 5;\n const children = listRef.current.children;\n const newFocusedIndex = Math.min(children.length - 1, newIndex);\n const childToFocus = children[newFocusedIndex];\n if (childToFocus) {\n childToFocus.focus();\n }\n event.preventDefault();\n break;\n }\n default:\n }\n };\n return /*#__PURE__*/_jsx(DigitalClockRoot, _extends({\n ref: handleRef,\n className: clsx(classes.root, className),\n ownerState: ownerState\n }, other, {\n children: /*#__PURE__*/_jsx(DigitalClockList, {\n ref: listRef,\n role: \"listbox\",\n \"aria-label\": translations.timePickerToolbarTitle,\n className: classes.list,\n onKeyDown: handleKeyDown,\n children: timeOptions.map((option, index) => {\n const optionDisabled = isTimeDisabled(option);\n if (skipDisabled && optionDisabled) {\n return null;\n }\n const isSelected = utils.isEqual(option, value);\n const formattedValue = utils.format(option, ampm ? 'fullTime12h' : 'fullTime24h');\n const isFocused = focusedOptionIndex === index || focusedOptionIndex === -1 && index === 0;\n const tabIndex = isFocused ? 0 : -1;\n return /*#__PURE__*/_jsx(ClockItem, _extends({\n onClick: () => !readOnly && handleItemSelect(option),\n selected: isSelected,\n disabled: disabled || optionDisabled,\n disableRipple: readOnly,\n role: \"option\"\n // aria-readonly is not supported here and does not have any effect\n ,\n \"aria-disabled\": readOnly,\n \"aria-selected\": isSelected,\n tabIndex: tabIndex,\n itemValue: option,\n formattedValue: formattedValue\n }, clockItemProps, {\n children: formattedValue\n }), `${option.valueOf()}-${formattedValue}`);\n })\n })\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? DigitalClock.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * 12h/24h view for hour selection clock.\n * @default utils.is12HourCycleInCurrentLocale()\n */\n ampm: PropTypes.bool,\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * The default selected value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the component is disabled.\n * When disabled, the value cannot be changed and no interaction is possible.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * Do not ignore date part when validating min/max time.\n * @default false\n */\n disableIgnoringDatePartForTimeValidation: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * Controlled focused view.\n */\n focusedView: PropTypes.oneOf(['hours']),\n /**\n * Maximal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n maxTime: PropTypes.object,\n /**\n * Minimal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n minTime: PropTypes.object,\n /**\n * Step over minutes.\n * @default 1\n */\n minutesStep: PropTypes.number,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TView The view type. Will be one of date or time views.\n * @param {TValue} value The new value.\n * @param {PickerSelectionState | undefined} selectionState Indicates if the date selection is complete.\n * @param {TView | undefined} selectedView Indicates the view in which the selection has been made.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired on focused view change.\n * @template TView\n * @param {TView} view The new view to focus or not.\n * @param {boolean} hasFocus `true` if the view should be focused.\n */\n onFocusedViewChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['hours']),\n /**\n * If `true`, the component is read-only.\n * When read-only, the value cannot be changed but the user can interact with the interface.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid time using the validation props, except callbacks such as `shouldDisableTime`.\n */\n referenceDate: PropTypes.object,\n /**\n * Disable specific time.\n * @param {PickerValidDate} value The value to check.\n * @param {TimeView} view The clock type of the timeValue.\n * @returns {boolean} If `true` the time will be disabled.\n */\n shouldDisableTime: PropTypes.func,\n /**\n * If `true`, disabled digital clock items will not be rendered.\n * @default false\n */\n skipDisabled: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overrideable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The time steps between two time options.\n * For example, if `timeStep = 45`, then the available time options will be `[00:00, 00:45, 01:30, 02:15, 03:00, etc.]`.\n * @default 30\n */\n timeStep: PropTypes.number,\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['hours']),\n /**\n * Available views.\n * @default ['hours']\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['hours']))\n} : void 0;","import generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nexport function getMultiSectionDigitalClockUtilityClass(slot) {\n return generateUtilityClass('MuiMultiSectionDigitalClock', slot);\n}\nexport const multiSectionDigitalClockClasses = generateUtilityClasses('MuiMultiSectionDigitalClock', ['root']);","import generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nexport function getMultiSectionDigitalClockSectionUtilityClass(slot) {\n return generateUtilityClass('MuiMultiSectionDigitalClockSection', slot);\n}\nexport const multiSectionDigitalClockSectionClasses = generateUtilityClasses('MuiMultiSectionDigitalClockSection', ['root', 'item']);","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"autoFocus\", \"onChange\", \"className\", \"classes\", \"disabled\", \"readOnly\", \"items\", \"active\", \"slots\", \"slotProps\", \"skipDisabled\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { alpha, styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport MenuList from '@mui/material/MenuList';\nimport MenuItem from '@mui/material/MenuItem';\nimport useForkRef from '@mui/utils/useForkRef';\nimport { getMultiSectionDigitalClockSectionUtilityClass } from \"./multiSectionDigitalClockSectionClasses.js\";\nimport { DIGITAL_CLOCK_VIEW_HEIGHT, MULTI_SECTION_CLOCK_SECTION_WIDTH } from \"../internals/constants/dimensions.js\";\nimport { getFocusedListItemIndex } from \"../internals/utils/utils.js\";\nimport { usePickerPrivateContext } from \"../internals/hooks/usePickerPrivateContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root'],\n item: ['item']\n };\n return composeClasses(slots, getMultiSectionDigitalClockSectionUtilityClass, classes);\n};\nconst MultiSectionDigitalClockSectionRoot = styled(MenuList, {\n name: 'MuiMultiSectionDigitalClockSection',\n slot: 'Root'\n})(({\n theme\n}) => ({\n maxHeight: DIGITAL_CLOCK_VIEW_HEIGHT,\n width: 56,\n padding: 0,\n overflow: 'hidden',\n scrollbarWidth: 'thin',\n '@media (prefers-reduced-motion: no-preference)': {\n scrollBehavior: 'auto'\n },\n '@media (pointer: fine)': {\n '&:hover': {\n overflowY: 'auto'\n }\n },\n '@media (pointer: none), (pointer: coarse)': {\n overflowY: 'auto'\n },\n '&:not(:first-of-type)': {\n borderLeft: `1px solid ${(theme.vars || theme).palette.divider}`\n },\n '&::after': {\n display: 'block',\n content: '\"\"',\n // subtracting the height of one item, extra margin and borders to make sure the max height is correct\n height: 'calc(100% - 40px - 6px)'\n },\n variants: [{\n props: {\n hasDigitalClockAlreadyBeenRendered: true\n },\n style: {\n '@media (prefers-reduced-motion: no-preference)': {\n scrollBehavior: 'smooth'\n }\n }\n }]\n}));\nconst MultiSectionDigitalClockSectionItem = styled(MenuItem, {\n name: 'MuiMultiSectionDigitalClockSection',\n slot: 'Item'\n})(({\n theme\n}) => ({\n padding: 8,\n margin: '2px 4px',\n width: MULTI_SECTION_CLOCK_SECTION_WIDTH,\n justifyContent: 'center',\n '&:first-of-type': {\n marginTop: 4\n },\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity)\n },\n '&.Mui-selected': {\n backgroundColor: (theme.vars || theme).palette.primary.main,\n color: (theme.vars || theme).palette.primary.contrastText,\n '&:focus-visible, &:hover': {\n backgroundColor: (theme.vars || theme).palette.primary.dark\n }\n },\n '&.Mui-focusVisible': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.focusOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.focusOpacity)\n }\n}));\n/**\n * @ignore - internal component.\n */\nexport const MultiSectionDigitalClockSection = /*#__PURE__*/React.forwardRef(function MultiSectionDigitalClockSection(inProps, ref) {\n const containerRef = React.useRef(null);\n const handleRef = useForkRef(ref, containerRef);\n const previousActive = React.useRef(null);\n const props = useThemeProps({\n props: inProps,\n name: 'MuiMultiSectionDigitalClockSection'\n });\n const {\n autoFocus,\n onChange,\n className,\n classes: classesProp,\n disabled,\n readOnly,\n items,\n active,\n slots,\n slotProps,\n skipDisabled\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n ownerState: pickerOwnerState\n } = usePickerPrivateContext();\n const ownerState = _extends({}, pickerOwnerState, {\n hasDigitalClockAlreadyBeenRendered: !!containerRef.current\n });\n const classes = useUtilityClasses(classesProp);\n const DigitalClockSectionItem = slots?.digitalClockSectionItem ?? MultiSectionDigitalClockSectionItem;\n React.useEffect(() => {\n if (containerRef.current === null) {\n return;\n }\n const activeItem = containerRef.current.querySelector('[role=\"option\"][tabindex=\"0\"], [role=\"option\"][aria-selected=\"true\"]');\n if (active && autoFocus && activeItem) {\n activeItem.focus();\n }\n if (!activeItem || previousActive.current === activeItem) {\n return;\n }\n previousActive.current = activeItem;\n const offsetTop = activeItem.offsetTop;\n\n // Subtracting the 4px of extra margin intended for the first visible section item\n containerRef.current.scrollTop = offsetTop - 4;\n });\n const focusedOptionIndex = items.findIndex(item => item.isFocused(item.value));\n const handleKeyDown = event => {\n switch (event.key) {\n case 'PageUp':\n {\n const newIndex = getFocusedListItemIndex(containerRef.current) - 5;\n const children = containerRef.current.children;\n const newFocusedIndex = Math.max(0, newIndex);\n const childToFocus = children[newFocusedIndex];\n if (childToFocus) {\n childToFocus.focus();\n }\n event.preventDefault();\n break;\n }\n case 'PageDown':\n {\n const newIndex = getFocusedListItemIndex(containerRef.current) + 5;\n const children = containerRef.current.children;\n const newFocusedIndex = Math.min(children.length - 1, newIndex);\n const childToFocus = children[newFocusedIndex];\n if (childToFocus) {\n childToFocus.focus();\n }\n event.preventDefault();\n break;\n }\n default:\n }\n };\n return /*#__PURE__*/_jsx(MultiSectionDigitalClockSectionRoot, _extends({\n ref: handleRef,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n autoFocusItem: autoFocus && active,\n role: \"listbox\",\n onKeyDown: handleKeyDown\n }, other, {\n children: items.map((option, index) => {\n const isItemDisabled = option.isDisabled?.(option.value);\n const isDisabled = disabled || isItemDisabled;\n if (skipDisabled && isDisabled) {\n return null;\n }\n const isSelected = option.isSelected(option.value);\n const tabIndex = focusedOptionIndex === index || focusedOptionIndex === -1 && index === 0 ? 0 : -1;\n return /*#__PURE__*/_jsx(DigitalClockSectionItem, _extends({\n onClick: () => !readOnly && onChange(option.value),\n selected: isSelected,\n disabled: isDisabled,\n disableRipple: readOnly,\n role: \"option\"\n // aria-readonly is not supported here and does not have any effect\n ,\n \"aria-disabled\": readOnly || isDisabled || undefined,\n \"aria-label\": option.ariaLabel,\n \"aria-selected\": isSelected,\n tabIndex: tabIndex,\n className: classes.item\n }, slotProps?.digitalClockSectionItem, {\n children: option.label\n }), option.label);\n })\n }));\n});","export const getHourSectionOptions = ({\n now,\n value,\n utils,\n ampm,\n isDisabled,\n resolveAriaLabel,\n timeStep,\n valueOrReferenceDate\n}) => {\n const currentHours = value ? utils.getHours(value) : null;\n const result = [];\n const isSelected = (hour, overriddenCurrentHours) => {\n const resolvedCurrentHours = overriddenCurrentHours ?? currentHours;\n if (resolvedCurrentHours === null) {\n return false;\n }\n if (ampm) {\n if (hour === 12) {\n return resolvedCurrentHours === 12 || resolvedCurrentHours === 0;\n }\n return resolvedCurrentHours === hour || resolvedCurrentHours - 12 === hour;\n }\n return resolvedCurrentHours === hour;\n };\n const isFocused = hour => {\n return isSelected(hour, utils.getHours(valueOrReferenceDate));\n };\n const endHour = ampm ? 11 : 23;\n for (let hour = 0; hour <= endHour; hour += timeStep) {\n let label = utils.format(utils.setHours(now, hour), ampm ? 'hours12h' : 'hours24h');\n const ariaLabel = resolveAriaLabel(parseInt(label, 10).toString());\n label = utils.formatNumber(label);\n result.push({\n value: hour,\n label,\n isSelected,\n isDisabled,\n isFocused,\n ariaLabel\n });\n }\n return result;\n};\nexport const getTimeSectionOptions = ({\n value,\n utils,\n isDisabled,\n timeStep,\n resolveLabel,\n resolveAriaLabel,\n hasValue = true\n}) => {\n const isSelected = timeValue => {\n if (value === null) {\n return false;\n }\n return hasValue && value === timeValue;\n };\n const isFocused = timeValue => {\n return value === timeValue;\n };\n return [...Array.from({\n length: Math.ceil(60 / timeStep)\n }, (_, index) => {\n const timeValue = timeStep * index;\n return {\n value: timeValue,\n label: utils.formatNumber(resolveLabel(timeValue)),\n isDisabled,\n isSelected,\n isFocused,\n ariaLabel: resolveAriaLabel(timeValue.toString())\n };\n })];\n};","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"ampm\", \"timeSteps\", \"autoFocus\", \"slots\", \"slotProps\", \"value\", \"defaultValue\", \"referenceDate\", \"disableIgnoringDatePartForTimeValidation\", \"maxTime\", \"minTime\", \"disableFuture\", \"disablePast\", \"minutesStep\", \"shouldDisableTime\", \"onChange\", \"view\", \"views\", \"openTo\", \"onViewChange\", \"focusedView\", \"onFocusedViewChange\", \"className\", \"classes\", \"disabled\", \"readOnly\", \"skipDisabled\", \"timezone\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { usePickerTranslations } from \"../hooks/usePickerTranslations.js\";\nimport { useUtils, useNow } from \"../internals/hooks/useUtils.js\";\nimport { convertValueToMeridiem, createIsAfterIgnoreDatePart } from \"../internals/utils/time-utils.js\";\nimport { useViews } from \"../internals/hooks/useViews.js\";\nimport { useMeridiemMode } from \"../internals/hooks/date-helpers-hooks.js\";\nimport { PickerViewRoot } from \"../internals/components/PickerViewRoot/index.js\";\nimport { getMultiSectionDigitalClockUtilityClass } from \"./multiSectionDigitalClockClasses.js\";\nimport { MultiSectionDigitalClockSection } from \"./MultiSectionDigitalClockSection.js\";\nimport { getHourSectionOptions, getTimeSectionOptions } from \"./MultiSectionDigitalClock.utils.js\";\nimport { useControlledValue } from \"../internals/hooks/useControlledValue.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { useClockReferenceDate } from \"../internals/hooks/useClockReferenceDate.js\";\nimport { formatMeridiem } from \"../internals/utils/date-utils.js\";\nimport { usePickerPrivateContext } from \"../internals/hooks/usePickerPrivateContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getMultiSectionDigitalClockUtilityClass, classes);\n};\nconst MultiSectionDigitalClockRoot = styled(PickerViewRoot, {\n name: 'MuiMultiSectionDigitalClock',\n slot: 'Root'\n})(({\n theme\n}) => ({\n flexDirection: 'row',\n width: '100%',\n borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`\n}));\n/**\n * Demos:\n *\n * - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)\n * - [DigitalClock](https://mui.com/x/react-date-pickers/digital-clock/)\n *\n * API:\n *\n * - [MultiSectionDigitalClock API](https://mui.com/x/api/date-pickers/multi-section-digital-clock/)\n */\nexport const MultiSectionDigitalClock = /*#__PURE__*/React.forwardRef(function MultiSectionDigitalClock(inProps, ref) {\n const utils = useUtils();\n const isRtl = useRtl();\n const props = useThemeProps({\n props: inProps,\n name: 'MuiMultiSectionDigitalClock'\n });\n const {\n ampm = utils.is12HourCycleInCurrentLocale(),\n timeSteps: inTimeSteps,\n autoFocus,\n slots,\n slotProps,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n disableIgnoringDatePartForTimeValidation = false,\n maxTime,\n minTime,\n disableFuture,\n disablePast,\n minutesStep = 1,\n shouldDisableTime,\n onChange,\n view: inView,\n views: inViews = ['hours', 'minutes'],\n openTo,\n onViewChange,\n focusedView: inFocusedView,\n onFocusedViewChange,\n className,\n classes: classesProp,\n disabled,\n readOnly,\n skipDisabled = false,\n timezone: timezoneProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n value,\n handleValueChange: handleRawValueChange,\n timezone\n } = useControlledValue({\n name: 'MultiSectionDigitalClock',\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n onChange,\n valueManager: singleItemValueManager\n });\n const translations = usePickerTranslations();\n const now = useNow(timezone);\n const timeSteps = React.useMemo(() => _extends({\n hours: 1,\n minutes: 5,\n seconds: 5\n }, inTimeSteps), [inTimeSteps]);\n const valueOrReferenceDate = useClockReferenceDate({\n value,\n referenceDate: referenceDateProp,\n utils,\n props,\n timezone\n });\n const handleValueChange = useEventCallback((newValue, selectionState, selectedView) => handleRawValueChange(newValue, selectionState, selectedView));\n const views = React.useMemo(() => {\n if (!ampm || !inViews.includes('hours')) {\n return inViews;\n }\n return inViews.includes('meridiem') ? inViews : [...inViews, 'meridiem'];\n }, [ampm, inViews]);\n const {\n view,\n setValueAndGoToNextView,\n focusedView\n } = useViews({\n view: inView,\n views,\n openTo,\n onViewChange,\n onChange: handleValueChange,\n focusedView: inFocusedView,\n onFocusedViewChange\n });\n const handleMeridiemValueChange = useEventCallback(newValue => {\n setValueAndGoToNextView(newValue, 'finish', 'meridiem');\n });\n const {\n meridiemMode,\n handleMeridiemChange\n } = useMeridiemMode(valueOrReferenceDate, ampm, handleMeridiemValueChange, 'finish');\n const isTimeDisabled = React.useCallback((rawValue, viewType) => {\n const isAfter = createIsAfterIgnoreDatePart(disableIgnoringDatePartForTimeValidation, utils);\n const shouldCheckPastEnd = viewType === 'hours' || viewType === 'minutes' && views.includes('seconds');\n const containsValidTime = ({\n start,\n end\n }) => {\n if (minTime && isAfter(minTime, end)) {\n return false;\n }\n if (maxTime && isAfter(start, maxTime)) {\n return false;\n }\n if (disableFuture && isAfter(start, now)) {\n return false;\n }\n if (disablePast && isAfter(now, shouldCheckPastEnd ? end : start)) {\n return false;\n }\n return true;\n };\n const isValidValue = (timeValue, step = 1) => {\n if (timeValue % step !== 0) {\n return false;\n }\n if (shouldDisableTime) {\n switch (viewType) {\n case 'hours':\n return !shouldDisableTime(utils.setHours(valueOrReferenceDate, timeValue), 'hours');\n case 'minutes':\n return !shouldDisableTime(utils.setMinutes(valueOrReferenceDate, timeValue), 'minutes');\n case 'seconds':\n return !shouldDisableTime(utils.setSeconds(valueOrReferenceDate, timeValue), 'seconds');\n default:\n return false;\n }\n }\n return true;\n };\n switch (viewType) {\n case 'hours':\n {\n const valueWithMeridiem = convertValueToMeridiem(rawValue, meridiemMode, ampm);\n const dateWithNewHours = utils.setHours(valueOrReferenceDate, valueWithMeridiem);\n if (utils.getHours(dateWithNewHours) !== valueWithMeridiem) {\n return true;\n }\n const start = utils.setSeconds(utils.setMinutes(dateWithNewHours, 0), 0);\n const end = utils.setSeconds(utils.setMinutes(dateWithNewHours, 59), 59);\n return !containsValidTime({\n start,\n end\n }) || !isValidValue(valueWithMeridiem);\n }\n case 'minutes':\n {\n const dateWithNewMinutes = utils.setMinutes(valueOrReferenceDate, rawValue);\n const start = utils.setSeconds(dateWithNewMinutes, 0);\n const end = utils.setSeconds(dateWithNewMinutes, 59);\n return !containsValidTime({\n start,\n end\n }) || !isValidValue(rawValue, minutesStep);\n }\n case 'seconds':\n {\n const dateWithNewSeconds = utils.setSeconds(valueOrReferenceDate, rawValue);\n const start = dateWithNewSeconds;\n const end = dateWithNewSeconds;\n return !containsValidTime({\n start,\n end\n }) || !isValidValue(rawValue);\n }\n default:\n throw new Error('not supported');\n }\n }, [ampm, valueOrReferenceDate, disableIgnoringDatePartForTimeValidation, maxTime, meridiemMode, minTime, minutesStep, shouldDisableTime, utils, disableFuture, disablePast, now, views]);\n const buildViewProps = React.useCallback(viewToBuild => {\n switch (viewToBuild) {\n case 'hours':\n {\n return {\n onChange: hours => {\n const valueWithMeridiem = convertValueToMeridiem(hours, meridiemMode, ampm);\n setValueAndGoToNextView(utils.setHours(valueOrReferenceDate, valueWithMeridiem), 'finish', 'hours');\n },\n items: getHourSectionOptions({\n now,\n value,\n ampm,\n utils,\n isDisabled: hours => isTimeDisabled(hours, 'hours'),\n timeStep: timeSteps.hours,\n resolveAriaLabel: translations.hoursClockNumberText,\n valueOrReferenceDate\n })\n };\n }\n case 'minutes':\n {\n return {\n onChange: minutes => {\n setValueAndGoToNextView(utils.setMinutes(valueOrReferenceDate, minutes), 'finish', 'minutes');\n },\n items: getTimeSectionOptions({\n value: utils.getMinutes(valueOrReferenceDate),\n utils,\n isDisabled: minutes => isTimeDisabled(minutes, 'minutes'),\n resolveLabel: minutes => utils.format(utils.setMinutes(now, minutes), 'minutes'),\n timeStep: timeSteps.minutes,\n hasValue: !!value,\n resolveAriaLabel: translations.minutesClockNumberText\n })\n };\n }\n case 'seconds':\n {\n return {\n onChange: seconds => {\n setValueAndGoToNextView(utils.setSeconds(valueOrReferenceDate, seconds), 'finish', 'seconds');\n },\n items: getTimeSectionOptions({\n value: utils.getSeconds(valueOrReferenceDate),\n utils,\n isDisabled: seconds => isTimeDisabled(seconds, 'seconds'),\n resolveLabel: seconds => utils.format(utils.setSeconds(now, seconds), 'seconds'),\n timeStep: timeSteps.seconds,\n hasValue: !!value,\n resolveAriaLabel: translations.secondsClockNumberText\n })\n };\n }\n case 'meridiem':\n {\n const amLabel = formatMeridiem(utils, 'am');\n const pmLabel = formatMeridiem(utils, 'pm');\n return {\n onChange: handleMeridiemChange,\n items: [{\n value: 'am',\n label: amLabel,\n isSelected: () => !!value && meridiemMode === 'am',\n isFocused: () => !!valueOrReferenceDate && meridiemMode === 'am',\n ariaLabel: amLabel\n }, {\n value: 'pm',\n label: pmLabel,\n isSelected: () => !!value && meridiemMode === 'pm',\n isFocused: () => !!valueOrReferenceDate && meridiemMode === 'pm',\n ariaLabel: pmLabel\n }]\n };\n }\n default:\n throw new Error(`Unknown view: ${viewToBuild} found.`);\n }\n }, [now, value, ampm, utils, timeSteps.hours, timeSteps.minutes, timeSteps.seconds, translations.hoursClockNumberText, translations.minutesClockNumberText, translations.secondsClockNumberText, meridiemMode, setValueAndGoToNextView, valueOrReferenceDate, isTimeDisabled, handleMeridiemChange]);\n const viewsToRender = React.useMemo(() => {\n if (!isRtl) {\n return views;\n }\n const digitViews = views.filter(v => v !== 'meridiem');\n digitViews.reverse();\n if (views.includes('meridiem')) {\n digitViews.push('meridiem');\n }\n return digitViews;\n }, [isRtl, views]);\n const viewTimeOptions = React.useMemo(() => {\n return views.reduce((result, currentView) => {\n return _extends({}, result, {\n [currentView]: buildViewProps(currentView)\n });\n }, {});\n }, [views, buildViewProps]);\n const {\n ownerState\n } = usePickerPrivateContext();\n const classes = useUtilityClasses(classesProp);\n return /*#__PURE__*/_jsx(MultiSectionDigitalClockRoot, _extends({\n ref: ref,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n role: \"group\"\n }, other, {\n children: viewsToRender.map(timeView => /*#__PURE__*/_jsx(MultiSectionDigitalClockSection, {\n items: viewTimeOptions[timeView].items,\n onChange: viewTimeOptions[timeView].onChange,\n active: view === timeView,\n autoFocus: autoFocus ?? focusedView === timeView,\n disabled: disabled,\n readOnly: readOnly,\n slots: slots,\n slotProps: slotProps,\n skipDisabled: skipDisabled,\n \"aria-label\": translations.selectViewText(timeView)\n }, timeView))\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? MultiSectionDigitalClock.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * 12h/24h view for hour selection clock.\n * @default utils.is12HourCycleInCurrentLocale()\n */\n ampm: PropTypes.bool,\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * The default selected value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the component is disabled.\n * When disabled, the value cannot be changed and no interaction is possible.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * Do not ignore date part when validating min/max time.\n * @default false\n */\n disableIgnoringDatePartForTimeValidation: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * Controlled focused view.\n */\n focusedView: PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']),\n /**\n * Maximal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n maxTime: PropTypes.object,\n /**\n * Minimal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n minTime: PropTypes.object,\n /**\n * Step over minutes.\n * @default 1\n */\n minutesStep: PropTypes.number,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TView The view type. Will be one of date or time views.\n * @param {TValue} value The new value.\n * @param {PickerSelectionState | undefined} selectionState Indicates if the date selection is complete.\n * @param {TView | undefined} selectedView Indicates the view in which the selection has been made.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired on focused view change.\n * @template TView\n * @param {TView} view The new view to focus or not.\n * @param {boolean} hasFocus `true` if the view should be focused.\n */\n onFocusedViewChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']),\n /**\n * If `true`, the component is read-only.\n * When read-only, the value cannot be changed but the user can interact with the interface.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid time using the validation props, except callbacks such as `shouldDisableTime`.\n */\n referenceDate: PropTypes.object,\n /**\n * Disable specific time.\n * @param {PickerValidDate} value The value to check.\n * @param {TimeView} view The clock type of the timeValue.\n * @returns {boolean} If `true` the time will be disabled.\n */\n shouldDisableTime: PropTypes.func,\n /**\n * If `true`, disabled digital clock items will not be rendered.\n * @default false\n */\n skipDisabled: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overrideable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The time steps between two time unit options.\n * For example, if `timeStep.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.\n * @default{ hours: 1, minutes: 5, seconds: 5 }\n */\n timeSteps: PropTypes.shape({\n hours: PropTypes.number,\n minutes: PropTypes.number,\n seconds: PropTypes.number\n }),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']),\n /**\n * Available views.\n * @default ['hours', 'minutes']\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']).isRequired)\n} : void 0;","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getPickersDayUtilityClass(slot) {\n return generateUtilityClass('MuiPickersDay', slot);\n}\nexport const pickersDayClasses = generateUtilityClasses('MuiPickersDay', ['root', 'dayWithMargin', 'dayOutsideMonth', 'hiddenDaySpacingFiller', 'today', 'selected', 'disabled']);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { usePickerPrivateContext } from \"../internals/hooks/usePickerPrivateContext.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nexport function usePickerDayOwnerState(parameters) {\n const {\n disabled,\n selected,\n today,\n outsideCurrentMonth,\n day,\n disableMargin,\n disableHighlightToday,\n showDaysOutsideCurrentMonth\n } = parameters;\n const utils = useUtils();\n const {\n ownerState: pickerOwnerState\n } = usePickerPrivateContext();\n return React.useMemo(() => _extends({}, pickerOwnerState, {\n day,\n isDaySelected: selected ?? false,\n isDayDisabled: disabled ?? false,\n isDayCurrent: today ?? false,\n isDayOutsideMonth: outsideCurrentMonth ?? false,\n isDayStartOfWeek: utils.isSameDay(day, utils.startOfWeek(day)),\n isDayEndOfWeek: utils.isSameDay(day, utils.endOfWeek(day)),\n disableMargin: disableMargin ?? false,\n disableHighlightToday: disableHighlightToday ?? false,\n showDaysOutsideCurrentMonth: showDaysOutsideCurrentMonth ?? false\n }), [utils, pickerOwnerState, day, selected, disabled, today, outsideCurrentMonth, disableMargin, disableHighlightToday, showDaysOutsideCurrentMonth]);\n}","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"autoFocus\", \"className\", \"classes\", \"hidden\", \"isAnimating\", \"onClick\", \"onDaySelect\", \"onFocus\", \"onBlur\", \"onKeyDown\", \"onMouseDown\", \"onMouseEnter\", \"children\", \"isFirstVisibleCell\", \"isLastVisibleCell\", \"day\", \"selected\", \"disabled\", \"today\", \"outsideCurrentMonth\", \"disableMargin\", \"disableHighlightToday\", \"showDaysOutsideCurrentMonth\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport ButtonBase from '@mui/material/ButtonBase';\nimport { unstable_useEnhancedEffect as useEnhancedEffect, unstable_composeClasses as composeClasses, unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { alpha, styled, useThemeProps } from '@mui/material/styles';\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { DAY_SIZE, DAY_MARGIN } from \"../internals/constants/dimensions.js\";\nimport { getPickersDayUtilityClass, pickersDayClasses } from \"./pickersDayClasses.js\";\nimport { usePickerDayOwnerState } from \"./usePickerDayOwnerState.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = (classes, ownerState) => {\n const {\n isDaySelected,\n isDayDisabled,\n isDayCurrent,\n isDayOutsideMonth,\n disableMargin,\n disableHighlightToday,\n showDaysOutsideCurrentMonth\n } = ownerState;\n const isHiddenDaySpacingFiller = isDayOutsideMonth && !showDaysOutsideCurrentMonth;\n const slots = {\n root: ['root', isDaySelected && !isHiddenDaySpacingFiller && 'selected', isDayDisabled && 'disabled', !disableMargin && 'dayWithMargin', !disableHighlightToday && isDayCurrent && 'today', isDayOutsideMonth && showDaysOutsideCurrentMonth && 'dayOutsideMonth', isHiddenDaySpacingFiller && 'hiddenDaySpacingFiller'],\n hiddenDaySpacingFiller: ['hiddenDaySpacingFiller']\n };\n return composeClasses(slots, getPickersDayUtilityClass, classes);\n};\nconst styleArg = ({\n theme\n}) => _extends({}, theme.typography.caption, {\n width: DAY_SIZE,\n height: DAY_SIZE,\n borderRadius: '50%',\n padding: 0,\n // explicitly setting to `transparent` to avoid potentially getting impacted by change from the overridden component\n backgroundColor: 'transparent',\n transition: theme.transitions.create('background-color', {\n duration: theme.transitions.duration.short\n }),\n color: (theme.vars || theme).palette.text.primary,\n '@media (pointer: fine)': {\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity)\n }\n },\n '&:focus': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.focusOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.focusOpacity),\n [`&.${pickersDayClasses.selected}`]: {\n willChange: 'background-color',\n backgroundColor: (theme.vars || theme).palette.primary.dark\n }\n },\n [`&.${pickersDayClasses.selected}`]: {\n color: (theme.vars || theme).palette.primary.contrastText,\n backgroundColor: (theme.vars || theme).palette.primary.main,\n fontWeight: theme.typography.fontWeightMedium,\n '&:hover': {\n willChange: 'background-color',\n backgroundColor: (theme.vars || theme).palette.primary.dark\n }\n },\n [`&.${pickersDayClasses.disabled}:not(.${pickersDayClasses.selected})`]: {\n color: (theme.vars || theme).palette.text.disabled\n },\n [`&.${pickersDayClasses.disabled}&.${pickersDayClasses.selected}`]: {\n opacity: 0.6\n },\n variants: [{\n props: {\n disableMargin: false\n },\n style: {\n margin: `0 ${DAY_MARGIN}px`\n }\n }, {\n props: {\n isDayOutsideMonth: true,\n showDaysOutsideCurrentMonth: true\n },\n style: {\n color: (theme.vars || theme).palette.text.secondary\n }\n }, {\n props: {\n disableHighlightToday: false,\n isDayCurrent: true\n },\n style: {\n [`&:not(.${pickersDayClasses.selected})`]: {\n border: `1px solid ${(theme.vars || theme).palette.text.secondary}`\n }\n }\n }]\n});\nconst overridesResolver = (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, !ownerState.disableMargin && styles.dayWithMargin, !ownerState.disableHighlightToday && ownerState.isDayCurrent && styles.today, !ownerState.isDayOutsideMonth && ownerState.showDaysOutsideCurrentMonth && styles.dayOutsideMonth, ownerState.isDayOutsideMonth && !ownerState.showDaysOutsideCurrentMonth && styles.hiddenDaySpacingFiller];\n};\nconst PickersDayRoot = styled(ButtonBase, {\n name: 'MuiPickersDay',\n slot: 'Root',\n overridesResolver\n})(styleArg);\nconst PickersDayFiller = styled('div', {\n name: 'MuiPickersDay',\n slot: 'Root',\n overridesResolver\n})(({\n theme\n}) => _extends({}, styleArg({\n theme\n}), {\n // visibility: 'hidden' does not work here as it hides the element from screen readers as well\n opacity: 0,\n pointerEvents: 'none'\n}));\nconst noop = () => {};\nconst PickersDayRaw = /*#__PURE__*/React.forwardRef(function PickersDay(inProps, forwardedRef) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersDay'\n });\n const {\n autoFocus = false,\n className,\n classes: classesProp,\n isAnimating,\n onClick,\n onDaySelect,\n onFocus = noop,\n onBlur = noop,\n onKeyDown = noop,\n onMouseDown = noop,\n onMouseEnter = noop,\n children,\n day,\n selected,\n disabled,\n today,\n outsideCurrentMonth,\n disableMargin,\n disableHighlightToday,\n showDaysOutsideCurrentMonth\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = usePickerDayOwnerState({\n day,\n selected,\n disabled,\n today,\n outsideCurrentMonth,\n disableMargin,\n disableHighlightToday,\n showDaysOutsideCurrentMonth\n });\n const classes = useUtilityClasses(classesProp, ownerState);\n const utils = useUtils();\n const ref = React.useRef(null);\n const handleRef = useForkRef(ref, forwardedRef);\n\n // Since this is rendered when a Popper is opened we can't use passive effects.\n // Focusing in passive effects in Popper causes scroll jump.\n useEnhancedEffect(() => {\n if (autoFocus && !disabled && !isAnimating && !outsideCurrentMonth) {\n // ref.current being null would be a bug in MUI\n ref.current.focus();\n }\n }, [autoFocus, disabled, isAnimating, outsideCurrentMonth]);\n\n // For a day outside the current month, move the focus from mouseDown to mouseUp\n // Goal: have the onClick ends before sliding to the new month\n const handleMouseDown = event => {\n onMouseDown(event);\n if (outsideCurrentMonth) {\n event.preventDefault();\n }\n };\n const handleClick = event => {\n if (!disabled) {\n onDaySelect(day);\n }\n if (outsideCurrentMonth) {\n event.currentTarget.focus();\n }\n if (onClick) {\n onClick(event);\n }\n };\n if (outsideCurrentMonth && !showDaysOutsideCurrentMonth) {\n return /*#__PURE__*/_jsx(PickersDayFiller, {\n className: clsx(classes.root, classes.hiddenDaySpacingFiller, className),\n ownerState: ownerState,\n role: other.role\n });\n }\n return /*#__PURE__*/_jsx(PickersDayRoot, _extends({\n className: clsx(classes.root, className),\n ref: handleRef,\n centerRipple: true,\n disabled: disabled,\n tabIndex: selected ? 0 : -1,\n onKeyDown: event => onKeyDown(event, day),\n onFocus: event => onFocus(event, day),\n onBlur: event => onBlur(event, day),\n onMouseEnter: event => onMouseEnter(event, day),\n onClick: handleClick,\n onMouseDown: handleMouseDown\n }, other, {\n ownerState: ownerState,\n children: !children ? utils.format(day, 'dayOfMonth') : children\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersDayRaw.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * A ref for imperative actions.\n * It currently only supports `focusVisible()` action.\n */\n action: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n focusVisible: PropTypes.func.isRequired\n })\n })]),\n /**\n * If `true`, the ripples are centered.\n * They won't start at the cursor interaction position.\n * @default false\n */\n centerRipple: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n component: PropTypes.elementType,\n /**\n * The date to show.\n */\n day: PropTypes.object.isRequired,\n /**\n * If `true`, renders as disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, days are rendering without margin. Useful for displaying linked range of days.\n * @default false\n */\n disableMargin: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * If `true`, the touch ripple effect is disabled.\n * @default false\n */\n disableTouchRipple: PropTypes.bool,\n /**\n * If `true`, the base button will have a keyboard focus ripple.\n * @default false\n */\n focusRipple: PropTypes.bool,\n /**\n * This prop can help identify which element has keyboard focus.\n * The class name will be applied when the element gains the focus through keyboard interaction.\n * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).\n * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).\n * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components\n * if needed.\n */\n focusVisibleClassName: PropTypes.string,\n isAnimating: PropTypes.bool,\n /**\n * If `true`, day is the first visible cell of the month.\n * Either the first day of the month or the first day of the week depending on `showDaysOutsideCurrentMonth`.\n */\n isFirstVisibleCell: PropTypes.bool.isRequired,\n /**\n * If `true`, day is the last visible cell of the month.\n * Either the last day of the month or the last day of the week depending on `showDaysOutsideCurrentMonth`.\n */\n isLastVisibleCell: PropTypes.bool.isRequired,\n onBlur: PropTypes.func,\n onDaySelect: PropTypes.func.isRequired,\n onFocus: PropTypes.func,\n /**\n * Callback fired when the component is focused with a keyboard.\n * We trigger a `onFocus` callback too.\n */\n onFocusVisible: PropTypes.func,\n onKeyDown: PropTypes.func,\n onMouseEnter: PropTypes.func,\n /**\n * If `true`, day is outside of month and will be hidden.\n */\n outsideCurrentMonth: PropTypes.bool.isRequired,\n /**\n * If `true`, renders as selected.\n * @default false\n */\n selected: PropTypes.bool,\n /**\n * If `true`, days outside the current month are rendered:\n *\n * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.\n *\n * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.\n *\n * - ignored if `calendars` equals more than `1` on range pickers.\n * @default false\n */\n showDaysOutsideCurrentMonth: PropTypes.bool,\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * @default 0\n */\n tabIndex: PropTypes.number,\n /**\n * If `true`, renders as today date.\n * @default false\n */\n today: PropTypes.bool,\n /**\n * Props applied to the `TouchRipple` element.\n */\n TouchRippleProps: PropTypes.object,\n /**\n * A ref that points to the `TouchRipple` element.\n */\n touchRippleRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n pulsate: PropTypes.func.isRequired,\n start: PropTypes.func.isRequired,\n stop: PropTypes.func.isRequired\n })\n })])\n} : void 0;\n\n/**\n * Demos:\n *\n * - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/)\n * API:\n *\n * - [PickersDay API](https://mui.com/x/api/date-pickers/pickers-day/)\n */\nexport const PickersDay = /*#__PURE__*/React.memo(PickersDayRaw);","export const DATE_VALIDATION_PROP_NAMES = ['disablePast', 'disableFuture', 'minDate', 'maxDate', 'shouldDisableDate', 'shouldDisableMonth', 'shouldDisableYear'];\nexport const TIME_VALIDATION_PROP_NAMES = ['disablePast', 'disableFuture', 'minTime', 'maxTime', 'shouldDisableTime', 'minutesStep', 'ampm', 'disableIgnoringDatePartForTimeValidation'];\nexport const DATE_TIME_VALIDATION_PROP_NAMES = ['minDateTime', 'maxDateTime'];\nconst VALIDATION_PROP_NAMES = [...DATE_VALIDATION_PROP_NAMES, ...TIME_VALIDATION_PROP_NAMES, ...DATE_TIME_VALIDATION_PROP_NAMES];\n/**\n * Extract the validation props for the props received by a component.\n * Limit the risk of forgetting some of them and reduce the bundle size.\n */\nexport const extractValidationProps = props => VALIDATION_PROP_NAMES.reduce((extractedProps, propName) => {\n if (props.hasOwnProperty(propName)) {\n extractedProps[propName] = props[propName];\n }\n return extractedProps;\n}, {});","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { DATE_TIME_VALIDATION_PROP_NAMES, DATE_VALIDATION_PROP_NAMES, TIME_VALIDATION_PROP_NAMES } from \"../validation/extractValidationProps.js\";\nconst SHARED_FIELD_INTERNAL_PROP_NAMES = ['value', 'defaultValue', 'referenceDate', 'format', 'formatDensity', 'onChange', 'timezone', 'onError', 'shouldRespectLeadingZeros', 'selectedSections', 'onSelectedSectionsChange', 'unstableFieldRef', 'unstableStartFieldRef', 'unstableEndFieldRef', 'enableAccessibleFieldDOMStructure', 'disabled', 'readOnly', 'dateSeparator', 'autoFocus', 'focused'];\n/**\n * Split the props received by the field component into:\n * - `internalProps` which are used by the various hooks called by the field component.\n * - `forwardedProps` which are passed to the underlying component.\n * Note that some forwarded props might be used by the hooks as well.\n * For instance, hooks like `useDateField` need props like `onKeyDown` to merge the default event handler and the one provided by the application.\n * @template TProps, TValueType\n * @param {TProps} props The props received by the field component.\n * @param {TValueType} valueType The type of the field value ('date', 'time', or 'date-time').\n */\nexport const useSplitFieldProps = (props, valueType) => {\n return React.useMemo(() => {\n const forwardedProps = _extends({}, props);\n const internalProps = {};\n const extractProp = propName => {\n if (forwardedProps.hasOwnProperty(propName)) {\n // @ts-ignore\n internalProps[propName] = forwardedProps[propName];\n delete forwardedProps[propName];\n }\n };\n SHARED_FIELD_INTERNAL_PROP_NAMES.forEach(extractProp);\n if (valueType === 'date') {\n DATE_VALIDATION_PROP_NAMES.forEach(extractProp);\n } else if (valueType === 'time') {\n TIME_VALIDATION_PROP_NAMES.forEach(extractProp);\n } else if (valueType === 'date-time') {\n DATE_VALIDATION_PROP_NAMES.forEach(extractProp);\n TIME_VALIDATION_PROP_NAMES.forEach(extractProp);\n DATE_TIME_VALIDATION_PROP_NAMES.forEach(extractProp);\n }\n return {\n forwardedProps,\n internalProps\n };\n }, [props, valueType]);\n};\n\n/**\n * Extract the internal props from the props received by the field component.\n * This makes sure that the internal props not defined in the props are not present in the result.\n */","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { applyLocalizedDigits, cleanLeadingZeros, doesSectionFormatHaveLeadingZeros, getDateSectionConfigFromFormatToken, removeLocalizedDigits } from \"./useField.utils.js\";\nconst expandFormat = ({\n utils,\n format\n}) => {\n // Expand the provided format\n let formatExpansionOverflow = 10;\n let prevFormat = format;\n let nextFormat = utils.expandFormat(format);\n while (nextFormat !== prevFormat) {\n prevFormat = nextFormat;\n nextFormat = utils.expandFormat(prevFormat);\n formatExpansionOverflow -= 1;\n if (formatExpansionOverflow < 0) {\n throw new Error('MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.');\n }\n }\n return nextFormat;\n};\nconst getEscapedPartsFromFormat = ({\n utils,\n expandedFormat\n}) => {\n const escapedParts = [];\n const {\n start: startChar,\n end: endChar\n } = utils.escapedCharacters;\n const regExp = new RegExp(`(\\\\${startChar}[^\\\\${endChar}]*\\\\${endChar})+`, 'g');\n let match = null;\n // eslint-disable-next-line no-cond-assign\n while (match = regExp.exec(expandedFormat)) {\n escapedParts.push({\n start: match.index,\n end: regExp.lastIndex - 1\n });\n }\n return escapedParts;\n};\nconst getSectionPlaceholder = (utils, localeText, sectionConfig, sectionFormat) => {\n switch (sectionConfig.type) {\n case 'year':\n {\n return localeText.fieldYearPlaceholder({\n digitAmount: utils.formatByString(utils.date(undefined, 'default'), sectionFormat).length,\n format: sectionFormat\n });\n }\n case 'month':\n {\n return localeText.fieldMonthPlaceholder({\n contentType: sectionConfig.contentType,\n format: sectionFormat\n });\n }\n case 'day':\n {\n return localeText.fieldDayPlaceholder({\n format: sectionFormat\n });\n }\n case 'weekDay':\n {\n return localeText.fieldWeekDayPlaceholder({\n contentType: sectionConfig.contentType,\n format: sectionFormat\n });\n }\n case 'hours':\n {\n return localeText.fieldHoursPlaceholder({\n format: sectionFormat\n });\n }\n case 'minutes':\n {\n return localeText.fieldMinutesPlaceholder({\n format: sectionFormat\n });\n }\n case 'seconds':\n {\n return localeText.fieldSecondsPlaceholder({\n format: sectionFormat\n });\n }\n case 'meridiem':\n {\n return localeText.fieldMeridiemPlaceholder({\n format: sectionFormat\n });\n }\n default:\n {\n return sectionFormat;\n }\n }\n};\nconst createSection = ({\n utils,\n date,\n shouldRespectLeadingZeros,\n localeText,\n localizedDigits,\n now,\n token,\n startSeparator\n}) => {\n if (token === '') {\n throw new Error('MUI X: Should not call `commitToken` with an empty token');\n }\n const sectionConfig = getDateSectionConfigFromFormatToken(utils, token);\n const hasLeadingZerosInFormat = doesSectionFormatHaveLeadingZeros(utils, sectionConfig.contentType, sectionConfig.type, token);\n const hasLeadingZerosInInput = shouldRespectLeadingZeros ? hasLeadingZerosInFormat : sectionConfig.contentType === 'digit';\n const isValidDate = utils.isValid(date);\n let sectionValue = isValidDate ? utils.formatByString(date, token) : '';\n let maxLength = null;\n if (hasLeadingZerosInInput) {\n if (hasLeadingZerosInFormat) {\n maxLength = sectionValue === '' ? utils.formatByString(now, token).length : sectionValue.length;\n } else {\n if (sectionConfig.maxLength == null) {\n throw new Error(`MUI X: The token ${token} should have a 'maxLength' property on it's adapter`);\n }\n maxLength = sectionConfig.maxLength;\n if (isValidDate) {\n sectionValue = applyLocalizedDigits(cleanLeadingZeros(removeLocalizedDigits(sectionValue, localizedDigits), maxLength), localizedDigits);\n }\n }\n }\n return _extends({}, sectionConfig, {\n format: token,\n maxLength,\n value: sectionValue,\n placeholder: getSectionPlaceholder(utils, localeText, sectionConfig, token),\n hasLeadingZerosInFormat,\n hasLeadingZerosInInput,\n startSeparator,\n endSeparator: '',\n modified: false\n });\n};\nconst buildSections = parameters => {\n const {\n utils,\n expandedFormat,\n escapedParts\n } = parameters;\n const now = utils.date(undefined);\n const sections = [];\n let startSeparator = '';\n\n // This RegExp tests if the beginning of a string corresponds to a supported token\n const validTokens = Object.keys(utils.formatTokenMap).sort((a, b) => b.length - a.length); // Sort to put longest word first\n\n const regExpFirstWordInFormat = /^([a-zA-Z]+)/;\n const regExpWordOnlyComposedOfTokens = new RegExp(`^(${validTokens.join('|')})*$`);\n const regExpFirstTokenInWord = new RegExp(`^(${validTokens.join('|')})`);\n const getEscapedPartOfCurrentChar = i => escapedParts.find(escapeIndex => escapeIndex.start <= i && escapeIndex.end >= i);\n let i = 0;\n while (i < expandedFormat.length) {\n const escapedPartOfCurrentChar = getEscapedPartOfCurrentChar(i);\n const isEscapedChar = escapedPartOfCurrentChar != null;\n const firstWordInFormat = regExpFirstWordInFormat.exec(expandedFormat.slice(i))?.[1];\n\n // The first word in the format is only composed of tokens.\n // We extract those tokens to create a new sections.\n if (!isEscapedChar && firstWordInFormat != null && regExpWordOnlyComposedOfTokens.test(firstWordInFormat)) {\n let word = firstWordInFormat;\n while (word.length > 0) {\n const firstWord = regExpFirstTokenInWord.exec(word)[1];\n word = word.slice(firstWord.length);\n sections.push(createSection(_extends({}, parameters, {\n now,\n token: firstWord,\n startSeparator\n })));\n startSeparator = '';\n }\n i += firstWordInFormat.length;\n }\n // The remaining format does not start with a token,\n // We take the first character and add it to the current section's end separator.\n else {\n const char = expandedFormat[i];\n\n // If we are on the opening or closing character of an escaped part of the format,\n // Then we ignore this character.\n const isEscapeBoundary = isEscapedChar && escapedPartOfCurrentChar?.start === i || escapedPartOfCurrentChar?.end === i;\n if (!isEscapeBoundary) {\n if (sections.length === 0) {\n startSeparator += char;\n } else {\n sections[sections.length - 1].endSeparator += char;\n sections[sections.length - 1].isEndFormatSeparator = true;\n }\n }\n i += 1;\n }\n }\n if (sections.length === 0 && startSeparator.length > 0) {\n sections.push({\n type: 'empty',\n contentType: 'letter',\n maxLength: null,\n format: '',\n value: '',\n placeholder: '',\n hasLeadingZerosInFormat: false,\n hasLeadingZerosInInput: false,\n startSeparator,\n endSeparator: '',\n modified: false\n });\n }\n return sections;\n};\nconst postProcessSections = ({\n isRtl,\n formatDensity,\n sections\n}) => {\n return sections.map(section => {\n const cleanSeparator = separator => {\n let cleanedSeparator = separator;\n if (isRtl && cleanedSeparator !== null && cleanedSeparator.includes(' ')) {\n cleanedSeparator = `\\u2069${cleanedSeparator}\\u2066`;\n }\n if (formatDensity === 'spacious' && ['/', '.', '-'].includes(cleanedSeparator)) {\n cleanedSeparator = ` ${cleanedSeparator} `;\n }\n return cleanedSeparator;\n };\n section.startSeparator = cleanSeparator(section.startSeparator);\n section.endSeparator = cleanSeparator(section.endSeparator);\n return section;\n });\n};\nexport const buildSectionsFromFormat = parameters => {\n let expandedFormat = expandFormat(parameters);\n if (parameters.isRtl && parameters.enableAccessibleFieldDOMStructure) {\n expandedFormat = expandedFormat.split(' ').reverse().join(' ');\n }\n const escapedParts = getEscapedPartsFromFormat(_extends({}, parameters, {\n expandedFormat\n }));\n const sections = buildSections(_extends({}, parameters, {\n expandedFormat,\n escapedParts\n }));\n return postProcessSections(_extends({}, parameters, {\n sections\n }));\n};","'use client';\n\nimport * as React from 'react';\nimport { PickerContext } from \"../../hooks/usePickerContext.js\";\n\n/**\n * Returns the context passed by the Picker wrapping the current component.\n * If the context is not found, returns `null`.\n */\nexport const useNullablePickerContext = () => React.useContext(PickerContext);","'use client';\n\nimport * as React from 'react';\nimport { PickerActionsContext } from \"../internals/components/PickerProvider.js\";\n/**\n * Returns a subset of the context passed by the Picker wrapping the current component.\n * It only contains the actions and never causes a re-render of the component using it.\n */\nexport const usePickerActionsContext = () => {\n const value = React.useContext(PickerActionsContext);\n if (value == null) {\n throw new Error(['MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component'].join('\\n'));\n }\n return value;\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { useUtils } from \"../useUtils.js\";\nimport { changeSectionValueFormat, cleanDigitSectionValue, doesSectionFormatHaveLeadingZeros, getDateSectionConfigFromFormatToken, getDaysInWeekStr, getLetterEditingOptions, applyLocalizedDigits, removeLocalizedDigits, isStringNumber } from \"./useField.utils.js\";\nconst isQueryResponseWithoutValue = response => response.saveQuery != null;\n\n/**\n * Update the active section value when the user pressed a key that is not a navigation key (arrow key for example).\n * This hook has two main editing behaviors\n *\n * 1. The numeric editing when the user presses a digit\n * 2. The letter editing when the user presses another key\n */\nexport const useFieldCharacterEditing = ({\n stateResponse: {\n // States and derived states\n localizedDigits,\n sectionsValueBoundaries,\n state,\n timezone,\n // Methods to update the states\n setCharacterQuery,\n setTempAndroidValueStr,\n updateSectionValue\n }\n}) => {\n const utils = useUtils();\n const applyQuery = ({\n keyPressed,\n sectionIndex\n }, getFirstSectionValueMatchingWithQuery, isValidQueryValue) => {\n const cleanKeyPressed = keyPressed.toLowerCase();\n const activeSection = state.sections[sectionIndex];\n\n // The current query targets the section being editing\n // We can try to concatenate the value\n if (state.characterQuery != null && (!isValidQueryValue || isValidQueryValue(state.characterQuery.value)) && state.characterQuery.sectionIndex === sectionIndex) {\n const concatenatedQueryValue = `${state.characterQuery.value}${cleanKeyPressed}`;\n const queryResponse = getFirstSectionValueMatchingWithQuery(concatenatedQueryValue, activeSection);\n if (!isQueryResponseWithoutValue(queryResponse)) {\n setCharacterQuery({\n sectionIndex,\n value: concatenatedQueryValue,\n sectionType: activeSection.type\n });\n return queryResponse;\n }\n }\n const queryResponse = getFirstSectionValueMatchingWithQuery(cleanKeyPressed, activeSection);\n if (isQueryResponseWithoutValue(queryResponse) && !queryResponse.saveQuery) {\n setCharacterQuery(null);\n return null;\n }\n setCharacterQuery({\n sectionIndex,\n value: cleanKeyPressed,\n sectionType: activeSection.type\n });\n if (isQueryResponseWithoutValue(queryResponse)) {\n return null;\n }\n return queryResponse;\n };\n const applyLetterEditing = params => {\n const findMatchingOptions = (format, options, queryValue) => {\n const matchingValues = options.filter(option => option.toLowerCase().startsWith(queryValue));\n if (matchingValues.length === 0) {\n return {\n saveQuery: false\n };\n }\n return {\n sectionValue: matchingValues[0],\n shouldGoToNextSection: matchingValues.length === 1\n };\n };\n const testQueryOnFormatAndFallbackFormat = (queryValue, activeSection, fallbackFormat, formatFallbackValue) => {\n const getOptions = format => getLetterEditingOptions(utils, timezone, activeSection.type, format);\n if (activeSection.contentType === 'letter') {\n return findMatchingOptions(activeSection.format, getOptions(activeSection.format), queryValue);\n }\n\n // When editing a digit-format month / weekDay and the user presses a letter,\n // We can support the letter editing by using the letter-format month / weekDay and re-formatting the result.\n // We just have to make sure that the default month / weekDay format is a letter format,\n if (fallbackFormat && formatFallbackValue != null && getDateSectionConfigFromFormatToken(utils, fallbackFormat).contentType === 'letter') {\n const fallbackOptions = getOptions(fallbackFormat);\n const response = findMatchingOptions(fallbackFormat, fallbackOptions, queryValue);\n if (isQueryResponseWithoutValue(response)) {\n return {\n saveQuery: false\n };\n }\n return _extends({}, response, {\n sectionValue: formatFallbackValue(response.sectionValue, fallbackOptions)\n });\n }\n return {\n saveQuery: false\n };\n };\n const getFirstSectionValueMatchingWithQuery = (queryValue, activeSection) => {\n switch (activeSection.type) {\n case 'month':\n {\n const formatFallbackValue = fallbackValue => changeSectionValueFormat(utils, fallbackValue, utils.formats.month, activeSection.format);\n return testQueryOnFormatAndFallbackFormat(queryValue, activeSection, utils.formats.month, formatFallbackValue);\n }\n case 'weekDay':\n {\n const formatFallbackValue = (fallbackValue, fallbackOptions) => fallbackOptions.indexOf(fallbackValue).toString();\n return testQueryOnFormatAndFallbackFormat(queryValue, activeSection, utils.formats.weekday, formatFallbackValue);\n }\n case 'meridiem':\n {\n return testQueryOnFormatAndFallbackFormat(queryValue, activeSection);\n }\n default:\n {\n return {\n saveQuery: false\n };\n }\n }\n };\n return applyQuery(params, getFirstSectionValueMatchingWithQuery);\n };\n const applyNumericEditing = params => {\n const getNewSectionValue = (queryValue, section) => {\n const cleanQueryValue = removeLocalizedDigits(queryValue, localizedDigits);\n const queryValueNumber = Number(cleanQueryValue);\n const sectionBoundaries = sectionsValueBoundaries[section.type]({\n currentDate: null,\n format: section.format,\n contentType: section.contentType\n });\n if (queryValueNumber > sectionBoundaries.maximum) {\n return {\n saveQuery: false\n };\n }\n\n // If the user types `0` on a month section,\n // It is below the minimum, but we want to store the `0` in the query,\n // So that when he pressed `1`, it will store `01` and move to the next section.\n if (queryValueNumber < sectionBoundaries.minimum) {\n return {\n saveQuery: true\n };\n }\n const shouldGoToNextSection = queryValueNumber * 10 > sectionBoundaries.maximum || cleanQueryValue.length === sectionBoundaries.maximum.toString().length;\n const newSectionValue = cleanDigitSectionValue(utils, queryValueNumber, sectionBoundaries, localizedDigits, section);\n return {\n sectionValue: newSectionValue,\n shouldGoToNextSection\n };\n };\n const getFirstSectionValueMatchingWithQuery = (queryValue, activeSection) => {\n if (activeSection.contentType === 'digit' || activeSection.contentType === 'digit-with-letter') {\n return getNewSectionValue(queryValue, activeSection);\n }\n\n // When editing a letter-format month and the user presses a digit,\n // We can support the numeric editing by using the digit-format month and re-formatting the result.\n if (activeSection.type === 'month') {\n const hasLeadingZerosInFormat = doesSectionFormatHaveLeadingZeros(utils, 'digit', 'month', 'MM');\n const response = getNewSectionValue(queryValue, {\n type: activeSection.type,\n format: 'MM',\n hasLeadingZerosInFormat,\n hasLeadingZerosInInput: true,\n contentType: 'digit',\n maxLength: 2\n });\n if (isQueryResponseWithoutValue(response)) {\n return response;\n }\n const formattedValue = changeSectionValueFormat(utils, response.sectionValue, 'MM', activeSection.format);\n return _extends({}, response, {\n sectionValue: formattedValue\n });\n }\n\n // When editing a letter-format weekDay and the user presses a digit,\n // We can support the numeric editing by returning the nth day in the week day array.\n if (activeSection.type === 'weekDay') {\n const response = getNewSectionValue(queryValue, activeSection);\n if (isQueryResponseWithoutValue(response)) {\n return response;\n }\n const formattedValue = getDaysInWeekStr(utils, activeSection.format)[Number(response.sectionValue) - 1];\n return _extends({}, response, {\n sectionValue: formattedValue\n });\n }\n return {\n saveQuery: false\n };\n };\n return applyQuery(params, getFirstSectionValueMatchingWithQuery, queryValue => isStringNumber(queryValue, localizedDigits));\n };\n return useEventCallback(params => {\n const section = state.sections[params.sectionIndex];\n const isNumericEditing = isStringNumber(params.keyPressed, localizedDigits);\n const response = isNumericEditing ? applyNumericEditing(_extends({}, params, {\n keyPressed: applyLocalizedDigits(params.keyPressed, localizedDigits)\n })) : applyLetterEditing(params);\n if (response == null) {\n setTempAndroidValueStr(null);\n return;\n }\n updateSectionValue({\n section,\n newSectionValue: response.sectionValue,\n shouldGoToNextSection: response.shouldGoToNextSection\n });\n });\n};\n\n/**\n * The letter editing and the numeric editing each define a `CharacterEditingApplier`.\n * This function decides what the new section value should be and if the focus should switch to the next section.\n *\n * If it returns `null`, then the section value is not updated and the focus does not move.\n */\n\n/**\n * Function called by `applyQuery` which decides:\n * - what is the new section value ?\n * - should the query used to get this value be stored for the next key press ?\n *\n * If it returns `{ sectionValue: string; shouldGoToNextSection: boolean }`,\n * Then we store the query and update the section with the new value.\n *\n * If it returns `{ saveQuery: true` },\n * Then we store the query and don't update the section.\n *\n * If it returns `{ saveQuery: false },\n * Then we do nothing.\n */","import { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\n\n/**\n * Validation props used by the Date Picker, Date Field and Date Calendar components.\n */\n\n/**\n * Validation props as received by the validateDate method.\n */\n\n/**\n * Name of the props that should be defaulted before being passed to the validateDate method.\n */\n\nexport const validateDate = ({\n props,\n value,\n timezone,\n adapter\n}) => {\n if (value === null) {\n return null;\n }\n const {\n shouldDisableDate,\n shouldDisableMonth,\n shouldDisableYear,\n disablePast,\n disableFuture,\n minDate,\n maxDate\n } = props;\n const now = adapter.utils.date(undefined, timezone);\n switch (true) {\n case !adapter.utils.isValid(value):\n return 'invalidDate';\n case Boolean(shouldDisableDate && shouldDisableDate(value)):\n return 'shouldDisableDate';\n case Boolean(shouldDisableMonth && shouldDisableMonth(value)):\n return 'shouldDisableMonth';\n case Boolean(shouldDisableYear && shouldDisableYear(value)):\n return 'shouldDisableYear';\n case Boolean(disableFuture && adapter.utils.isAfterDay(value, now)):\n return 'disableFuture';\n case Boolean(disablePast && adapter.utils.isBeforeDay(value, now)):\n return 'disablePast';\n case Boolean(minDate && adapter.utils.isBeforeDay(value, minDate)):\n return 'minDate';\n case Boolean(maxDate && adapter.utils.isAfterDay(value, maxDate)):\n return 'maxDate';\n default:\n return null;\n }\n};\nvalidateDate.valueManager = singleItemValueManager;","import { createIsAfterIgnoreDatePart } from \"../internals/utils/time-utils.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\n\n/**\n * Validation props used by the Time Picker, Time Field and Clock components.\n */\n\n/**\n * Validation props as received by the validateTime method.\n */\n\n/**\n * Name of the props that should be defaulted before being passed to the validateTime method.\n */\n\nexport const validateTime = ({\n adapter,\n value,\n timezone,\n props\n}) => {\n if (value === null) {\n return null;\n }\n const {\n minTime,\n maxTime,\n minutesStep,\n shouldDisableTime,\n disableIgnoringDatePartForTimeValidation = false,\n disablePast,\n disableFuture\n } = props;\n const now = adapter.utils.date(undefined, timezone);\n const isAfter = createIsAfterIgnoreDatePart(disableIgnoringDatePartForTimeValidation, adapter.utils);\n switch (true) {\n case !adapter.utils.isValid(value):\n return 'invalidDate';\n case Boolean(minTime && isAfter(minTime, value)):\n return 'minTime';\n case Boolean(maxTime && isAfter(value, maxTime)):\n return 'maxTime';\n case Boolean(disableFuture && adapter.utils.isAfter(value, now)):\n return 'disableFuture';\n case Boolean(disablePast && adapter.utils.isBefore(value, now)):\n return 'disablePast';\n case Boolean(shouldDisableTime && shouldDisableTime(value, 'hours')):\n return 'shouldDisableTime-hours';\n case Boolean(shouldDisableTime && shouldDisableTime(value, 'minutes')):\n return 'shouldDisableTime-minutes';\n case Boolean(shouldDisableTime && shouldDisableTime(value, 'seconds')):\n return 'shouldDisableTime-seconds';\n case Boolean(minutesStep && adapter.utils.getMinutes(value) % minutesStep !== 0):\n return 'minutesStep';\n default:\n return null;\n }\n};\nvalidateTime.valueManager = singleItemValueManager;","import { validateDate } from \"./validateDate.js\";\nimport { validateTime } from \"./validateTime.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\n\n/**\n * Validation props used by the Date Time Picker and Date Time Field components.\n */\n\n/**\n * Validation props as received by the validateDateTime method.\n */\n\n/**\n * Name of the props that should be defaulted before being passed to the validateDateTime method.\n */\n\nexport const validateDateTime = ({\n adapter,\n value,\n timezone,\n props\n}) => {\n const dateValidationResult = validateDate({\n adapter,\n value,\n timezone,\n props\n });\n if (dateValidationResult !== null) {\n return dateValidationResult;\n }\n return validateTime({\n adapter,\n value,\n timezone,\n props\n });\n};\nvalidateDateTime.valueManager = singleItemValueManager;","'use client';\n\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { useLocalizationContext } from \"../internals/hooks/useUtils.js\";\n/**\n * Utility hook to check if a given value is valid based on the provided validation props.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {UseValidationOptions<TValue, TError, TValidationProps>} options The options to configure the hook.\n * @param {TValue} options.value The value to validate.\n * @param {PickersTimezone} options.timezone The timezone to use for the validation.\n * @param {Validator<TValue, TError, TValidationProps>} options.validator The validator function to use.\n * @param {TValidationProps} options.props The validation props, they differ depending on the component.\n * @param {(error: TError, value: TValue) => void} options.onError Callback fired when the error associated with the current value changes.\n */\nexport function useValidation(options) {\n const {\n props,\n validator,\n value,\n timezone,\n onError\n } = options;\n const adapter = useLocalizationContext();\n const previousValidationErrorRef = React.useRef(validator.valueManager.defaultErrorState);\n const validationError = validator({\n adapter,\n value,\n timezone,\n props\n });\n const hasValidationError = validator.valueManager.hasError(validationError);\n React.useEffect(() => {\n if (onError && !validator.valueManager.isSameError(validationError, previousValidationErrorRef.current)) {\n onError(validationError, value);\n }\n previousValidationErrorRef.current = validationError;\n }, [validator, onError, validationError, value]);\n const getValidationErrorForNewValue = useEventCallback(newValue => {\n return validator({\n adapter,\n value: newValue,\n timezone,\n props\n });\n });\n return {\n validationError,\n hasValidationError,\n getValidationErrorForNewValue\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useControlled from '@mui/utils/useControlled';\nimport useTimeout from '@mui/utils/useTimeout';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { usePickerTranslations } from \"../../../hooks/usePickerTranslations.js\";\nimport { useUtils, useLocalizationContext } from \"../useUtils.js\";\nimport { mergeDateIntoReferenceDate, getSectionsBoundaries, validateSections, getDateFromDateSections, parseSelectedSections, getLocalizedDigits, getSectionOrder } from \"./useField.utils.js\";\nimport { buildSectionsFromFormat } from \"./buildSectionsFromFormat.js\";\nimport { useValidation } from \"../../../validation/index.js\";\nimport { useControlledValue } from \"../useControlledValue.js\";\nimport { getSectionTypeGranularity } from \"../../utils/getDefaultReferenceDate.js\";\nconst QUERY_LIFE_DURATION_MS = 5000;\nexport const useFieldState = parameters => {\n const utils = useUtils();\n const translations = usePickerTranslations();\n const adapter = useLocalizationContext();\n const isRtl = useRtl();\n const {\n manager: {\n validator,\n valueType,\n internal_valueManager: valueManager,\n internal_fieldValueManager: fieldValueManager\n },\n internalPropsWithDefaults,\n internalPropsWithDefaults: {\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n onChange,\n format,\n formatDensity = 'dense',\n selectedSections: selectedSectionsProp,\n onSelectedSectionsChange,\n shouldRespectLeadingZeros = false,\n timezone: timezoneProp,\n enableAccessibleFieldDOMStructure = true\n },\n forwardedProps: {\n error: errorProp\n }\n } = parameters;\n const {\n value,\n handleValueChange,\n timezone\n } = useControlledValue({\n name: 'a field component',\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n onChange,\n valueManager\n });\n const valueRef = React.useRef(value);\n React.useEffect(() => {\n valueRef.current = value;\n }, [value]);\n const {\n hasValidationError\n } = useValidation({\n props: internalPropsWithDefaults,\n validator,\n timezone,\n value,\n onError: internalPropsWithDefaults.onError\n });\n const error = React.useMemo(() => {\n // only override when `error` is undefined.\n // in case of multi input fields, the `error` value is provided externally and will always be defined.\n if (errorProp !== undefined) {\n return errorProp;\n }\n return hasValidationError;\n }, [hasValidationError, errorProp]);\n const localizedDigits = React.useMemo(() => getLocalizedDigits(utils), [utils]);\n const sectionsValueBoundaries = React.useMemo(() => getSectionsBoundaries(utils, localizedDigits, timezone), [utils, localizedDigits, timezone]);\n const getSectionsFromValue = React.useCallback(valueToAnalyze => fieldValueManager.getSectionsFromValue(valueToAnalyze, date => buildSectionsFromFormat({\n utils,\n localeText: translations,\n localizedDigits,\n format,\n date,\n formatDensity,\n shouldRespectLeadingZeros,\n enableAccessibleFieldDOMStructure,\n isRtl\n })), [fieldValueManager, format, translations, localizedDigits, isRtl, shouldRespectLeadingZeros, utils, formatDensity, enableAccessibleFieldDOMStructure]);\n const [state, setState] = React.useState(() => {\n const sections = getSectionsFromValue(value);\n validateSections(sections, valueType);\n const stateWithoutReferenceDate = {\n sections,\n lastExternalValue: value,\n lastSectionsDependencies: {\n format,\n isRtl,\n locale: utils.locale\n },\n tempValueStrAndroid: null,\n characterQuery: null\n };\n const granularity = getSectionTypeGranularity(sections);\n const referenceValue = valueManager.getInitialReferenceValue({\n referenceDate: referenceDateProp,\n value,\n utils,\n props: internalPropsWithDefaults,\n granularity,\n timezone\n });\n return _extends({}, stateWithoutReferenceDate, {\n referenceValue\n });\n });\n const [selectedSections, innerSetSelectedSections] = useControlled({\n controlled: selectedSectionsProp,\n default: null,\n name: 'useField',\n state: 'selectedSections'\n });\n const setSelectedSections = newSelectedSections => {\n innerSetSelectedSections(newSelectedSections);\n onSelectedSectionsChange?.(newSelectedSections);\n };\n const parsedSelectedSections = React.useMemo(() => parseSelectedSections(selectedSections, state.sections), [selectedSections, state.sections]);\n const activeSectionIndex = parsedSelectedSections === 'all' ? 0 : parsedSelectedSections;\n const sectionOrder = React.useMemo(() => getSectionOrder(state.sections, isRtl && !enableAccessibleFieldDOMStructure), [state.sections, isRtl, enableAccessibleFieldDOMStructure]);\n const areAllSectionsEmpty = React.useMemo(() => state.sections.every(section => section.value === ''), [state.sections]);\n const publishValue = newValue => {\n const context = {\n validationError: validator({\n adapter,\n value: newValue,\n timezone,\n props: internalPropsWithDefaults\n })\n };\n handleValueChange(newValue, context);\n };\n const setSectionValue = (sectionIndex, newSectionValue) => {\n const newSections = [...state.sections];\n newSections[sectionIndex] = _extends({}, newSections[sectionIndex], {\n value: newSectionValue,\n modified: true\n });\n return newSections;\n };\n const sectionToUpdateOnNextInvalidDateRef = React.useRef(null);\n const updateSectionValueOnNextInvalidDateTimeout = useTimeout();\n const setSectionUpdateToApplyOnNextInvalidDate = newSectionValue => {\n if (activeSectionIndex == null) {\n return;\n }\n sectionToUpdateOnNextInvalidDateRef.current = {\n sectionIndex: activeSectionIndex,\n value: newSectionValue\n };\n updateSectionValueOnNextInvalidDateTimeout.start(0, () => {\n sectionToUpdateOnNextInvalidDateRef.current = null;\n });\n };\n const clearValue = () => {\n if (valueManager.areValuesEqual(utils, value, valueManager.emptyValue)) {\n setState(prevState => _extends({}, prevState, {\n sections: prevState.sections.map(section => _extends({}, section, {\n value: ''\n })),\n tempValueStrAndroid: null,\n characterQuery: null\n }));\n } else {\n setState(prevState => _extends({}, prevState, {\n characterQuery: null\n }));\n publishValue(valueManager.emptyValue);\n }\n };\n const clearActiveSection = () => {\n if (activeSectionIndex == null) {\n return;\n }\n const activeSection = state.sections[activeSectionIndex];\n if (activeSection.value === '') {\n return;\n }\n setSectionUpdateToApplyOnNextInvalidDate('');\n if (fieldValueManager.getDateFromSection(value, activeSection) === null) {\n setState(prevState => _extends({}, prevState, {\n sections: setSectionValue(activeSectionIndex, ''),\n tempValueStrAndroid: null,\n characterQuery: null\n }));\n } else {\n setState(prevState => _extends({}, prevState, {\n characterQuery: null\n }));\n publishValue(fieldValueManager.updateDateInValue(value, activeSection, null));\n }\n };\n const updateValueFromValueStr = valueStr => {\n const parseDateStr = (dateStr, referenceDate) => {\n const date = utils.parse(dateStr, format);\n if (!utils.isValid(date)) {\n return null;\n }\n const sections = buildSectionsFromFormat({\n utils,\n localeText: translations,\n localizedDigits,\n format,\n date,\n formatDensity,\n shouldRespectLeadingZeros,\n enableAccessibleFieldDOMStructure,\n isRtl\n });\n return mergeDateIntoReferenceDate(utils, date, sections, referenceDate, false);\n };\n const newValue = fieldValueManager.parseValueStr(valueStr, state.referenceValue, parseDateStr);\n publishValue(newValue);\n };\n const cleanActiveDateSectionsIfValueNullTimeout = useTimeout();\n const updateSectionValue = ({\n section,\n newSectionValue,\n shouldGoToNextSection\n }) => {\n updateSectionValueOnNextInvalidDateTimeout.clear();\n cleanActiveDateSectionsIfValueNullTimeout.clear();\n const activeDate = fieldValueManager.getDateFromSection(value, section);\n\n /**\n * Decide which section should be focused\n */\n if (shouldGoToNextSection && activeSectionIndex < state.sections.length - 1) {\n setSelectedSections(activeSectionIndex + 1);\n }\n\n /**\n * Try to build a valid date from the new section value\n */\n const newSections = setSectionValue(activeSectionIndex, newSectionValue);\n const newActiveDateSections = fieldValueManager.getDateSectionsFromValue(newSections, section);\n const newActiveDate = getDateFromDateSections(utils, newActiveDateSections, localizedDigits);\n\n /**\n * If the new date is valid,\n * Then we merge the value of the modified sections into the reference date.\n * This makes sure that we don't lose some information of the initial date (like the time on a date field).\n */\n if (utils.isValid(newActiveDate)) {\n const mergedDate = mergeDateIntoReferenceDate(utils, newActiveDate, newActiveDateSections, fieldValueManager.getDateFromSection(state.referenceValue, section), true);\n if (activeDate == null) {\n cleanActiveDateSectionsIfValueNullTimeout.start(0, () => {\n if (valueRef.current === value) {\n setState(prevState => _extends({}, prevState, {\n sections: fieldValueManager.clearDateSections(state.sections, section),\n tempValueStrAndroid: null\n }));\n }\n });\n }\n return publishValue(fieldValueManager.updateDateInValue(value, section, mergedDate));\n }\n\n /**\n * If all the sections are filled but the date is invalid,\n * Then we publish an invalid date.\n */\n if (newActiveDateSections.every(sectionBis => sectionBis.value !== '')) {\n setSectionUpdateToApplyOnNextInvalidDate(newSectionValue);\n return publishValue(fieldValueManager.updateDateInValue(value, section, newActiveDate));\n }\n\n /**\n * If the previous date is not null,\n * Then we publish the date as `null`.\n */\n if (activeDate != null) {\n setSectionUpdateToApplyOnNextInvalidDate(newSectionValue);\n return publishValue(fieldValueManager.updateDateInValue(value, section, null));\n }\n\n /**\n * If the previous date is already null,\n * Then we don't publish the date and we update the sections.\n */\n return setState(prevState => _extends({}, prevState, {\n sections: newSections,\n tempValueStrAndroid: null\n }));\n };\n const setTempAndroidValueStr = tempValueStrAndroid => setState(prevState => _extends({}, prevState, {\n tempValueStrAndroid\n }));\n const setCharacterQuery = useEventCallback(newCharacterQuery => {\n setState(prevState => _extends({}, prevState, {\n characterQuery: newCharacterQuery\n }));\n });\n\n // If `prop.value` changes, we update the state to reflect the new value\n if (value !== state.lastExternalValue) {\n let sections;\n if (sectionToUpdateOnNextInvalidDateRef.current != null && !utils.isValid(fieldValueManager.getDateFromSection(value, state.sections[sectionToUpdateOnNextInvalidDateRef.current.sectionIndex]))) {\n sections = setSectionValue(sectionToUpdateOnNextInvalidDateRef.current.sectionIndex, sectionToUpdateOnNextInvalidDateRef.current.value);\n } else {\n sections = getSectionsFromValue(value);\n }\n setState(prevState => _extends({}, prevState, {\n lastExternalValue: value,\n sections,\n sectionsDependencies: {\n format,\n isRtl,\n locale: utils.locale\n },\n referenceValue: fieldValueManager.updateReferenceValue(utils, value, prevState.referenceValue),\n tempValueStrAndroid: null\n }));\n }\n if (isRtl !== state.lastSectionsDependencies.isRtl || format !== state.lastSectionsDependencies.format || utils.locale !== state.lastSectionsDependencies.locale) {\n const sections = getSectionsFromValue(value);\n validateSections(sections, valueType);\n setState(prevState => _extends({}, prevState, {\n lastSectionsDependencies: {\n format,\n isRtl,\n locale: utils.locale\n },\n sections,\n tempValueStrAndroid: null,\n characterQuery: null\n }));\n }\n if (state.characterQuery != null && !error && activeSectionIndex == null) {\n setCharacterQuery(null);\n }\n if (state.characterQuery != null && state.sections[state.characterQuery.sectionIndex]?.type !== state.characterQuery.sectionType) {\n setCharacterQuery(null);\n }\n React.useEffect(() => {\n if (sectionToUpdateOnNextInvalidDateRef.current != null) {\n sectionToUpdateOnNextInvalidDateRef.current = null;\n }\n });\n const cleanCharacterQueryTimeout = useTimeout();\n React.useEffect(() => {\n if (state.characterQuery != null) {\n cleanCharacterQueryTimeout.start(QUERY_LIFE_DURATION_MS, () => setCharacterQuery(null));\n }\n return () => {};\n }, [state.characterQuery, setCharacterQuery, cleanCharacterQueryTimeout]);\n\n // If `tempValueStrAndroid` is still defined for some section when running `useEffect`,\n // Then `onChange` has only been called once, which means the user pressed `Backspace` to reset the section.\n // This causes a small flickering on Android,\n // But we can't use `useEnhancedEffect` which is always called before the second `onChange` call and then would cause false positives.\n React.useEffect(() => {\n if (state.tempValueStrAndroid != null && activeSectionIndex != null) {\n clearActiveSection();\n }\n }, [state.sections]); // eslint-disable-line react-hooks/exhaustive-deps\n\n return {\n // States and derived states\n activeSectionIndex,\n areAllSectionsEmpty,\n error,\n localizedDigits,\n parsedSelectedSections,\n sectionOrder,\n sectionsValueBoundaries,\n state,\n timezone,\n value,\n // Methods to update the states\n clearValue,\n clearActiveSection,\n setCharacterQuery,\n setSelectedSections,\n setTempAndroidValueStr,\n updateSectionValue,\n updateValueFromValueStr,\n // Utilities methods\n getSectionsFromValue\n };\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useForkRef from '@mui/utils/useForkRef';\nimport { useNullablePickerContext } from \"../useNullablePickerContext.js\";\nimport { useNullableFieldPrivateContext } from \"../useNullableFieldPrivateContext.js\";\n\n/**\n * Applies the default values to the field internal props.\n * This is a temporary hook that will be removed during a follow up when `useField` will receive the internal props without the defaults.\n * It is only here to allow the migration to be done in smaller steps.\n */\nexport function useFieldInternalPropsWithDefaults(parameters) {\n const {\n manager: {\n internal_useApplyDefaultValuesToFieldInternalProps: useApplyDefaultValuesToFieldInternalProps\n },\n internalProps,\n skipContextFieldRefAssignment\n } = parameters;\n const pickerContext = useNullablePickerContext();\n const fieldPrivateContext = useNullableFieldPrivateContext();\n const handleFieldRef = useForkRef(internalProps.unstableFieldRef, skipContextFieldRefAssignment ? null : fieldPrivateContext?.fieldRef);\n const setValue = pickerContext?.setValue;\n const handleChangeFromPicker = React.useCallback((newValue, ctx) => {\n return setValue?.(newValue, {\n validationError: ctx.validationError,\n shouldClose: false\n });\n }, [setValue]);\n const internalPropsWithDefaultsFromContext = React.useMemo(() => {\n // If one of the context is null,\n // Then the field is used as a standalone component and the other context will be null as well.\n if (fieldPrivateContext != null && pickerContext != null) {\n return _extends({\n value: pickerContext.value,\n onChange: handleChangeFromPicker,\n timezone: pickerContext.timezone,\n disabled: pickerContext.disabled,\n readOnly: pickerContext.readOnly,\n autoFocus: pickerContext.autoFocus && !pickerContext.open,\n focused: pickerContext.open ? true : undefined,\n format: pickerContext.fieldFormat,\n formatDensity: fieldPrivateContext.formatDensity,\n enableAccessibleFieldDOMStructure: fieldPrivateContext.enableAccessibleFieldDOMStructure,\n selectedSections: fieldPrivateContext.selectedSections,\n onSelectedSectionsChange: fieldPrivateContext.onSelectedSectionsChange,\n unstableFieldRef: handleFieldRef\n }, internalProps);\n }\n return internalProps;\n }, [pickerContext, fieldPrivateContext, internalProps, handleChangeFromPicker, handleFieldRef]);\n return useApplyDefaultValuesToFieldInternalProps(internalPropsWithDefaultsFromContext);\n}","import { getActiveElement } from \"../../utils/utils.js\";\nexport function syncSelectionToDOM(parameters) {\n const {\n focused,\n domGetters,\n stateResponse: {\n // States and derived states\n parsedSelectedSections,\n state\n }\n } = parameters;\n if (!domGetters.isReady()) {\n return;\n }\n const selection = document.getSelection();\n if (!selection) {\n return;\n }\n if (parsedSelectedSections == null) {\n // If the selection contains an element inside the field, we reset it.\n if (selection.rangeCount > 0 && domGetters.getRoot().contains(selection.getRangeAt(0).startContainer)) {\n selection.removeAllRanges();\n }\n if (focused) {\n domGetters.getRoot().blur();\n }\n return;\n }\n\n // On multi input range pickers we want to update selection range only for the active input\n if (!domGetters.getRoot().contains(getActiveElement(document))) {\n return;\n }\n const range = new window.Range();\n let target;\n if (parsedSelectedSections === 'all') {\n target = domGetters.getRoot();\n } else {\n const section = state.sections[parsedSelectedSections];\n if (section.type === 'empty') {\n target = domGetters.getSectionContainer(parsedSelectedSections);\n } else {\n target = domGetters.getSectionContent(parsedSelectedSections);\n }\n }\n range.selectNodeContents(target);\n target.focus();\n selection.removeAllRanges();\n selection.addRange(range);\n}","import useEventCallback from '@mui/utils/useEventCallback';\nimport { useUtils } from \"../useUtils.js\";\nimport { cleanDigitSectionValue, getLetterEditingOptions, removeLocalizedDigits } from \"./useField.utils.js\";\n\n/**\n * Returns the `onKeyDown` handler to pass to the root element of the field.\n */\nexport function useFieldRootHandleKeyDown(parameters) {\n const utils = useUtils();\n const {\n manager: {\n internal_fieldValueManager: fieldValueManager\n },\n internalPropsWithDefaults: {\n minutesStep,\n disabled,\n readOnly\n },\n stateResponse: {\n // States and derived states\n state,\n value,\n activeSectionIndex,\n parsedSelectedSections,\n sectionsValueBoundaries,\n localizedDigits,\n timezone,\n sectionOrder,\n // Methods to update the states\n clearValue,\n clearActiveSection,\n setSelectedSections,\n updateSectionValue\n }\n } = parameters;\n return useEventCallback(event => {\n if (disabled) {\n return;\n }\n\n // eslint-disable-next-line default-case\n switch (true) {\n // Select all\n case (event.ctrlKey || event.metaKey) && String.fromCharCode(event.keyCode) === 'A' && !event.shiftKey && !event.altKey:\n {\n // prevent default to make sure that the next line \"select all\" while updating\n // the internal state at the same time.\n event.preventDefault();\n setSelectedSections('all');\n break;\n }\n\n // Move selection to next section\n case event.key === 'ArrowRight':\n {\n event.preventDefault();\n if (parsedSelectedSections == null) {\n setSelectedSections(sectionOrder.startIndex);\n } else if (parsedSelectedSections === 'all') {\n setSelectedSections(sectionOrder.endIndex);\n } else {\n const nextSectionIndex = sectionOrder.neighbors[parsedSelectedSections].rightIndex;\n if (nextSectionIndex !== null) {\n setSelectedSections(nextSectionIndex);\n }\n }\n break;\n }\n\n // Move selection to previous section\n case event.key === 'ArrowLeft':\n {\n event.preventDefault();\n if (parsedSelectedSections == null) {\n setSelectedSections(sectionOrder.endIndex);\n } else if (parsedSelectedSections === 'all') {\n setSelectedSections(sectionOrder.startIndex);\n } else {\n const nextSectionIndex = sectionOrder.neighbors[parsedSelectedSections].leftIndex;\n if (nextSectionIndex !== null) {\n setSelectedSections(nextSectionIndex);\n }\n }\n break;\n }\n\n // Reset the value of the selected section\n case event.key === 'Delete':\n {\n event.preventDefault();\n if (readOnly) {\n break;\n }\n if (parsedSelectedSections == null || parsedSelectedSections === 'all') {\n clearValue();\n } else {\n clearActiveSection();\n }\n break;\n }\n\n // Increment / decrement the selected section value\n case ['ArrowUp', 'ArrowDown', 'Home', 'End', 'PageUp', 'PageDown'].includes(event.key):\n {\n event.preventDefault();\n if (readOnly || activeSectionIndex == null) {\n break;\n }\n\n // if all sections are selected, mark the currently editing one as selected\n if (parsedSelectedSections === 'all') {\n setSelectedSections(activeSectionIndex);\n }\n const activeSection = state.sections[activeSectionIndex];\n const newSectionValue = adjustSectionValue(utils, timezone, activeSection, event.key, sectionsValueBoundaries, localizedDigits, fieldValueManager.getDateFromSection(value, activeSection), {\n minutesStep\n });\n updateSectionValue({\n section: activeSection,\n newSectionValue,\n shouldGoToNextSection: false\n });\n break;\n }\n }\n });\n}\nfunction getDeltaFromKeyCode(keyCode) {\n switch (keyCode) {\n case 'ArrowUp':\n return 1;\n case 'ArrowDown':\n return -1;\n case 'PageUp':\n return 5;\n case 'PageDown':\n return -5;\n default:\n return 0;\n }\n}\nfunction adjustSectionValue(utils, timezone, section, keyCode, sectionsValueBoundaries, localizedDigits, activeDate, stepsAttributes) {\n const delta = getDeltaFromKeyCode(keyCode);\n const isStart = keyCode === 'Home';\n const isEnd = keyCode === 'End';\n const shouldSetAbsolute = section.value === '' || isStart || isEnd;\n const adjustDigitSection = () => {\n const sectionBoundaries = sectionsValueBoundaries[section.type]({\n currentDate: activeDate,\n format: section.format,\n contentType: section.contentType\n });\n const getCleanValue = value => cleanDigitSectionValue(utils, value, sectionBoundaries, localizedDigits, section);\n const step = section.type === 'minutes' && stepsAttributes?.minutesStep ? stepsAttributes.minutesStep : 1;\n let newSectionValueNumber;\n if (shouldSetAbsolute) {\n if (section.type === 'year' && !isEnd && !isStart) {\n return utils.formatByString(utils.date(undefined, timezone), section.format);\n }\n if (delta > 0 || isStart) {\n newSectionValueNumber = sectionBoundaries.minimum;\n } else {\n newSectionValueNumber = sectionBoundaries.maximum;\n }\n } else {\n const currentSectionValue = parseInt(removeLocalizedDigits(section.value, localizedDigits), 10);\n newSectionValueNumber = currentSectionValue + delta * step;\n }\n if (newSectionValueNumber % step !== 0) {\n if (delta < 0 || isStart) {\n newSectionValueNumber += step - (step + newSectionValueNumber) % step; // for JS -3 % 5 = -3 (should be 2)\n }\n if (delta > 0 || isEnd) {\n newSectionValueNumber -= newSectionValueNumber % step;\n }\n }\n if (newSectionValueNumber > sectionBoundaries.maximum) {\n return getCleanValue(sectionBoundaries.minimum + (newSectionValueNumber - sectionBoundaries.maximum - 1) % (sectionBoundaries.maximum - sectionBoundaries.minimum + 1));\n }\n if (newSectionValueNumber < sectionBoundaries.minimum) {\n return getCleanValue(sectionBoundaries.maximum - (sectionBoundaries.minimum - newSectionValueNumber - 1) % (sectionBoundaries.maximum - sectionBoundaries.minimum + 1));\n }\n return getCleanValue(newSectionValueNumber);\n };\n const adjustLetterSection = () => {\n const options = getLetterEditingOptions(utils, timezone, section.type, section.format);\n if (options.length === 0) {\n return section.value;\n }\n if (shouldSetAbsolute) {\n if (delta > 0 || isStart) {\n return options[0];\n }\n return options[options.length - 1];\n }\n const currentOptionIndex = options.indexOf(section.value);\n const newOptionIndex = (currentOptionIndex + delta) % options.length;\n const clampedIndex = (newOptionIndex + options.length) % options.length;\n return options[clampedIndex];\n };\n if (section.contentType === 'digit' || section.contentType === 'digit-with-letter') {\n return adjustDigitSection();\n }\n return adjustLetterSection();\n}","import useEventCallback from '@mui/utils/useEventCallback';\nimport useTimeout from '@mui/utils/useTimeout';\nimport { useFieldRootHandleKeyDown } from \"./useFieldRootHandleKeyDown.js\";\nimport { getActiveElement } from \"../../utils/utils.js\";\nimport { syncSelectionToDOM } from \"./syncSelectionToDOM.js\";\n\n/**\n * Generate the props to pass to the root element of the field.\n * It is not used by the non-accessible DOM structure (with an <input /> element for editing).\n * It should be used in the MUI accessible DOM structure and the Base UI implementation.\n * @param {UseFieldRootPropsParameters} parameters The parameters of the hook.\n * @returns {UseFieldRootPropsReturnValue} The props to forward to the root element of the field.\n */\nexport function useFieldRootProps(parameters) {\n const {\n manager,\n focused,\n setFocused,\n domGetters,\n stateResponse,\n applyCharacterEditing,\n internalPropsWithDefaults,\n stateResponse: {\n // States and derived states\n parsedSelectedSections,\n sectionOrder,\n state,\n // Methods to update the states\n clearValue,\n setCharacterQuery,\n setSelectedSections,\n updateValueFromValueStr\n },\n internalPropsWithDefaults: {\n disabled = false,\n readOnly = false\n }\n } = parameters;\n\n // TODO: Inline onContainerKeyDown once the old DOM structure is removed\n const handleKeyDown = useFieldRootHandleKeyDown({\n manager,\n internalPropsWithDefaults,\n stateResponse\n });\n const containerClickTimeout = useTimeout();\n const handleClick = useEventCallback(event => {\n if (disabled || !domGetters.isReady()) {\n return;\n }\n setFocused(true);\n if (parsedSelectedSections === 'all') {\n containerClickTimeout.start(0, () => {\n const cursorPosition = document.getSelection().getRangeAt(0).startOffset;\n if (cursorPosition === 0) {\n setSelectedSections(sectionOrder.startIndex);\n return;\n }\n let sectionIndex = 0;\n let cursorOnStartOfSection = 0;\n while (cursorOnStartOfSection < cursorPosition && sectionIndex < state.sections.length) {\n const section = state.sections[sectionIndex];\n sectionIndex += 1;\n cursorOnStartOfSection += `${section.startSeparator}${section.value || section.placeholder}${section.endSeparator}`.length;\n }\n setSelectedSections(sectionIndex - 1);\n });\n } else if (!focused) {\n setFocused(true);\n setSelectedSections(sectionOrder.startIndex);\n } else {\n const hasClickedOnASection = domGetters.getRoot().contains(event.target);\n if (!hasClickedOnASection) {\n setSelectedSections(sectionOrder.startIndex);\n }\n }\n });\n const handleInput = useEventCallback(event => {\n if (!domGetters.isReady() || parsedSelectedSections !== 'all') {\n return;\n }\n const target = event.target;\n const keyPressed = target.textContent ?? '';\n domGetters.getRoot().innerHTML = state.sections.map(section => `${section.startSeparator}${section.value || section.placeholder}${section.endSeparator}`).join('');\n syncSelectionToDOM({\n focused,\n domGetters,\n stateResponse\n });\n if (keyPressed.length === 0 || keyPressed.charCodeAt(0) === 10) {\n clearValue();\n setSelectedSections('all');\n } else if (keyPressed.length > 1) {\n updateValueFromValueStr(keyPressed);\n } else {\n if (parsedSelectedSections === 'all') {\n setSelectedSections(0);\n }\n applyCharacterEditing({\n keyPressed,\n sectionIndex: 0\n });\n }\n });\n const handlePaste = useEventCallback(event => {\n if (readOnly || parsedSelectedSections !== 'all') {\n event.preventDefault();\n return;\n }\n const pastedValue = event.clipboardData.getData('text');\n event.preventDefault();\n setCharacterQuery(null);\n updateValueFromValueStr(pastedValue);\n });\n const handleFocus = useEventCallback(() => {\n if (focused || disabled || !domGetters.isReady()) {\n return;\n }\n const activeElement = getActiveElement(document);\n setFocused(true);\n const isFocusInsideASection = domGetters.getSectionIndexFromDOMElement(activeElement) != null;\n if (!isFocusInsideASection) {\n setSelectedSections(sectionOrder.startIndex);\n }\n });\n const handleBlur = useEventCallback(() => {\n setTimeout(() => {\n if (!domGetters.isReady()) {\n return;\n }\n const activeElement = getActiveElement(document);\n const shouldBlur = !domGetters.getRoot().contains(activeElement);\n if (shouldBlur) {\n setFocused(false);\n setSelectedSections(null);\n }\n });\n });\n return {\n // Event handlers\n onKeyDown: handleKeyDown,\n onBlur: handleBlur,\n onFocus: handleFocus,\n onClick: handleClick,\n onPaste: handlePaste,\n onInput: handleInput,\n // Other\n contentEditable: parsedSelectedSections === 'all',\n tabIndex: parsedSelectedSections === 0 ? -1 : 0 // TODO: Try to set to undefined when there is a section selected.\n };\n}","import * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\n/**\n * Generate the props to pass to the hidden input element of the field.\n * It is not used by the non-accessible DOM structure (with an <input /> element for editing).\n * It should be used in the MUI accessible DOM structure and the Base UI implementation.\n * @param {UseFieldHiddenInputPropsParameters} parameters The parameters of the hook.\n * @returns {UseFieldHiddenInputPropsReturnValue} The props to forward to the hidden input element of the field.\n */\nexport function useFieldHiddenInputProps(parameters) {\n const {\n manager: {\n internal_fieldValueManager: fieldValueManager\n },\n stateResponse: {\n // States and derived states\n areAllSectionsEmpty,\n state,\n // Methods to update the states\n updateValueFromValueStr\n }\n } = parameters;\n const handleChange = useEventCallback(event => {\n updateValueFromValueStr(event.target.value);\n });\n const valueStr = React.useMemo(() => areAllSectionsEmpty ? '' : fieldValueManager.getV7HiddenInputValueFromSections(state.sections), [areAllSectionsEmpty, state.sections, fieldValueManager]);\n return {\n value: valueStr,\n onChange: handleChange\n };\n}","import * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\n/**\n * Generate the props to pass to the container element of each section of the field.\n * It is not used by the non-accessible DOM structure (with an <input /> element for editing).\n * It should be used in the MUI accessible DOM structure and the Base UI implementation.\n * @param {UseFieldRootPropsParameters} parameters The parameters of the hook.\n * @returns {UseFieldRootPropsReturnValue} The props to forward to the container element of each section of the field.\n */\nexport function useFieldSectionContainerProps(parameters) {\n const {\n stateResponse: {\n // Methods to update the states\n setSelectedSections\n },\n internalPropsWithDefaults: {\n disabled = false\n }\n } = parameters;\n const createHandleClick = useEventCallback(sectionIndex => event => {\n // The click event on the clear button would propagate to the input, trigger this handler and result in a wrong section selection.\n // We avoid this by checking if the call to this function is actually intended, or a side effect.\n if (disabled || event.isDefaultPrevented()) {\n return;\n }\n setSelectedSections(sectionIndex);\n });\n return React.useCallback(sectionIndex => ({\n 'data-sectionindex': sectionIndex,\n onClick: createHandleClick(sectionIndex)\n }), [createHandleClick]);\n}","import * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useId from '@mui/utils/useId';\nimport { useUtils } from \"../useUtils.js\";\nimport { usePickerTranslations } from \"../../../hooks/index.js\";\nimport { syncSelectionToDOM } from \"./syncSelectionToDOM.js\";\n/**\n * Generate the props to pass to the content element of each section of the field.\n * It is not used by the non-accessible DOM structure (with an <input /> element for editing).\n * It should be used in the MUI accessible DOM structure and the Base UI implementation.\n * @param {UseFieldRootPropsParameters} parameters The parameters of the hook.\n * @returns {UseFieldRootPropsReturnValue} The props to forward to the content element of each section of the field.\n */\nexport function useFieldSectionContentProps(parameters) {\n const utils = useUtils();\n const translations = usePickerTranslations();\n const id = useId();\n const {\n focused,\n domGetters,\n stateResponse,\n applyCharacterEditing,\n manager: {\n internal_fieldValueManager: fieldValueManager\n },\n stateResponse: {\n // States and derived states\n parsedSelectedSections,\n sectionsValueBoundaries,\n state,\n value,\n // Methods to update the states\n clearActiveSection,\n setCharacterQuery,\n setSelectedSections,\n updateSectionValue,\n updateValueFromValueStr\n },\n internalPropsWithDefaults: {\n disabled = false,\n readOnly = false\n }\n } = parameters;\n const isContainerEditable = parsedSelectedSections === 'all';\n const isEditable = !isContainerEditable && !disabled && !readOnly;\n\n /**\n * If a section content has been updated with a value we don't want to keep,\n * Then we need to imperatively revert it (we can't let React do it because the value did not change in his internal representation).\n */\n const revertDOMSectionChange = useEventCallback(sectionIndex => {\n if (!domGetters.isReady()) {\n return;\n }\n const section = state.sections[sectionIndex];\n domGetters.getSectionContent(sectionIndex).innerHTML = section.value || section.placeholder;\n syncSelectionToDOM({\n focused,\n domGetters,\n stateResponse\n });\n });\n const handleInput = useEventCallback(event => {\n if (!domGetters.isReady()) {\n return;\n }\n const target = event.target;\n const keyPressed = target.textContent ?? '';\n const sectionIndex = domGetters.getSectionIndexFromDOMElement(target);\n const section = state.sections[sectionIndex];\n if (readOnly) {\n revertDOMSectionChange(sectionIndex);\n return;\n }\n if (keyPressed.length === 0) {\n if (section.value === '') {\n revertDOMSectionChange(sectionIndex);\n return;\n }\n const inputType = event.nativeEvent.inputType;\n if (inputType === 'insertParagraph' || inputType === 'insertLineBreak') {\n revertDOMSectionChange(sectionIndex);\n return;\n }\n revertDOMSectionChange(sectionIndex);\n clearActiveSection();\n return;\n }\n applyCharacterEditing({\n keyPressed,\n sectionIndex\n });\n\n // The DOM value needs to remain the one React is expecting.\n revertDOMSectionChange(sectionIndex);\n });\n const handleMouseUp = useEventCallback(event => {\n // Without this, the browser will remove the selected when clicking inside an already-selected section.\n event.preventDefault();\n });\n const handlePaste = useEventCallback(event => {\n // prevent default to avoid the input `onInput` handler being called\n event.preventDefault();\n if (readOnly || disabled || typeof parsedSelectedSections !== 'number') {\n return;\n }\n const activeSection = state.sections[parsedSelectedSections];\n const pastedValue = event.clipboardData.getData('text');\n const lettersOnly = /^[a-zA-Z]+$/.test(pastedValue);\n const digitsOnly = /^[0-9]+$/.test(pastedValue);\n const digitsAndLetterOnly = /^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(pastedValue);\n const isValidPastedValue = activeSection.contentType === 'letter' && lettersOnly || activeSection.contentType === 'digit' && digitsOnly || activeSection.contentType === 'digit-with-letter' && digitsAndLetterOnly;\n if (isValidPastedValue) {\n setCharacterQuery(null);\n updateSectionValue({\n section: activeSection,\n newSectionValue: pastedValue,\n shouldGoToNextSection: true\n });\n }\n // If the pasted value corresponds to a single section, but not the expected type, we skip the modification\n else if (!lettersOnly && !digitsOnly) {\n setCharacterQuery(null);\n updateValueFromValueStr(pastedValue);\n }\n });\n const handleDragOver = useEventCallback(event => {\n event.preventDefault();\n event.dataTransfer.dropEffect = 'none';\n });\n const createFocusHandler = useEventCallback(sectionIndex => () => {\n if (disabled) {\n return;\n }\n setSelectedSections(sectionIndex);\n });\n return React.useCallback((section, sectionIndex) => {\n const sectionBoundaries = sectionsValueBoundaries[section.type]({\n currentDate: fieldValueManager.getDateFromSection(value, section),\n contentType: section.contentType,\n format: section.format\n });\n return {\n // Event handlers\n onInput: handleInput,\n onPaste: handlePaste,\n onMouseUp: handleMouseUp,\n onDragOver: handleDragOver,\n onFocus: createFocusHandler(sectionIndex),\n // Aria attributes\n 'aria-labelledby': `${id}-${section.type}`,\n 'aria-readonly': readOnly,\n 'aria-valuenow': getSectionValueNow(section, utils),\n 'aria-valuemin': sectionBoundaries.minimum,\n 'aria-valuemax': sectionBoundaries.maximum,\n 'aria-valuetext': section.value ? getSectionValueText(section, utils) : translations.empty,\n 'aria-label': translations[section.type],\n 'aria-disabled': disabled,\n // Other\n tabIndex: isContainerEditable || sectionIndex > 0 ? -1 : 0,\n contentEditable: !isContainerEditable && !disabled && !readOnly,\n role: 'spinbutton',\n id: `${id}-${section.type}`,\n 'data-range-position': section.dateName || undefined,\n spellCheck: isEditable ? false : undefined,\n autoCapitalize: isEditable ? 'off' : undefined,\n autoCorrect: isEditable ? 'off' : undefined,\n children: section.value || section.placeholder,\n inputMode: section.contentType === 'letter' ? 'text' : 'numeric'\n };\n }, [sectionsValueBoundaries, id, isContainerEditable, disabled, readOnly, isEditable, translations, utils, handleInput, handlePaste, handleMouseUp, handleDragOver, createFocusHandler, fieldValueManager, value]);\n}\nfunction getSectionValueText(section, utils) {\n if (!section.value) {\n return undefined;\n }\n switch (section.type) {\n case 'month':\n {\n if (section.contentType === 'digit') {\n return utils.format(utils.setMonth(utils.date(), Number(section.value) - 1), 'month');\n }\n const parsedDate = utils.parse(section.value, section.format);\n return parsedDate ? utils.format(parsedDate, 'month') : undefined;\n }\n case 'day':\n return section.contentType === 'digit' ? utils.format(utils.setDate(utils.startOfYear(utils.date()), Number(section.value)), 'dayOfMonthFull') : section.value;\n case 'weekDay':\n // TODO: improve by providing the label of the week day\n return undefined;\n default:\n return undefined;\n }\n}\nfunction getSectionValueNow(section, utils) {\n if (!section.value) {\n return undefined;\n }\n switch (section.type) {\n case 'weekDay':\n {\n if (section.contentType === 'letter') {\n // TODO: improve by resolving the week day number from a letter week day\n return undefined;\n }\n return Number(section.value);\n }\n case 'meridiem':\n {\n const parsedDate = utils.parse(`01:00 ${section.value}`, `${utils.formats.hours12h}:${utils.formats.minutes} ${section.format}`);\n if (parsedDate) {\n return utils.getHours(parsedDate) >= 12 ? 1 : 0;\n }\n return undefined;\n }\n case 'day':\n return section.contentType === 'digit-with-letter' ? parseInt(section.value, 10) : Number(section.value);\n case 'month':\n {\n if (section.contentType === 'digit') {\n return Number(section.value);\n }\n const parsedDate = utils.parse(section.value, section.format);\n return parsedDate ? utils.getMonth(parsedDate) + 1 : undefined;\n }\n default:\n return section.contentType !== 'letter' ? Number(section.value) : undefined;\n }\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useForkRef from '@mui/utils/useForkRef';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport { parseSelectedSections } from \"./useField.utils.js\";\nimport { getActiveElement } from \"../../utils/utils.js\";\nimport { useSplitFieldProps } from \"../../../hooks/index.js\";\nimport { useFieldCharacterEditing } from \"./useFieldCharacterEditing.js\";\nimport { useFieldState } from \"./useFieldState.js\";\nimport { useFieldInternalPropsWithDefaults } from \"./useFieldInternalPropsWithDefaults.js\";\nimport { syncSelectionToDOM } from \"./syncSelectionToDOM.js\";\nimport { useFieldRootProps } from \"./useFieldRootProps.js\";\nimport { useFieldHiddenInputProps } from \"./useFieldHiddenInputProps.js\";\nimport { useFieldSectionContainerProps } from \"./useFieldSectionContainerProps.js\";\nimport { useFieldSectionContentProps } from \"./useFieldSectionContentProps.js\";\nexport const useFieldV7TextField = parameters => {\n const {\n props,\n manager,\n skipContextFieldRefAssignment,\n manager: {\n valueType,\n internal_useOpenPickerButtonAriaLabel: useOpenPickerButtonAriaLabel\n }\n } = parameters;\n const {\n internalProps,\n forwardedProps\n } = useSplitFieldProps(props, valueType);\n const internalPropsWithDefaults = useFieldInternalPropsWithDefaults({\n manager,\n internalProps,\n skipContextFieldRefAssignment\n });\n const {\n sectionListRef: sectionListRefProp,\n onBlur,\n onClick,\n onFocus,\n onInput,\n onPaste,\n onKeyDown,\n onClear,\n clearable\n } = forwardedProps;\n const {\n disabled = false,\n readOnly = false,\n autoFocus = false,\n focused: focusedProp,\n unstableFieldRef\n } = internalPropsWithDefaults;\n const sectionListRef = React.useRef(null);\n const handleSectionListRef = useForkRef(sectionListRefProp, sectionListRef);\n const domGetters = React.useMemo(() => ({\n isReady: () => sectionListRef.current != null,\n getRoot: () => sectionListRef.current.getRoot(),\n getSectionContainer: sectionIndex => sectionListRef.current.getSectionContainer(sectionIndex),\n getSectionContent: sectionIndex => sectionListRef.current.getSectionContent(sectionIndex),\n getSectionIndexFromDOMElement: element => sectionListRef.current.getSectionIndexFromDOMElement(element)\n }), [sectionListRef]);\n const stateResponse = useFieldState({\n manager,\n internalPropsWithDefaults,\n forwardedProps\n });\n const {\n // States and derived states\n areAllSectionsEmpty,\n error,\n parsedSelectedSections,\n sectionOrder,\n state,\n value,\n // Methods to update the states\n clearValue,\n setSelectedSections\n } = stateResponse;\n const applyCharacterEditing = useFieldCharacterEditing({\n stateResponse\n });\n const openPickerAriaLabel = useOpenPickerButtonAriaLabel(value);\n const [focused, setFocused] = React.useState(false);\n function focusField(newSelectedSections = 0) {\n if (disabled || !sectionListRef.current ||\n // if the field is already focused, we don't need to focus it again\n getActiveSectionIndex(sectionListRef) != null) {\n return;\n }\n const newParsedSelectedSections = parseSelectedSections(newSelectedSections, state.sections);\n setFocused(true);\n sectionListRef.current.getSectionContent(newParsedSelectedSections).focus();\n }\n const rootProps = useFieldRootProps({\n manager,\n internalPropsWithDefaults,\n stateResponse,\n applyCharacterEditing,\n focused,\n setFocused,\n domGetters\n });\n const hiddenInputProps = useFieldHiddenInputProps({\n manager,\n stateResponse\n });\n const createSectionContainerProps = useFieldSectionContainerProps({\n stateResponse,\n internalPropsWithDefaults\n });\n const createSectionContentProps = useFieldSectionContentProps({\n manager,\n stateResponse,\n applyCharacterEditing,\n internalPropsWithDefaults,\n domGetters,\n focused\n });\n const handleRootKeyDown = useEventCallback(event => {\n onKeyDown?.(event);\n rootProps.onKeyDown(event);\n });\n const handleRootBlur = useEventCallback(event => {\n onBlur?.(event);\n rootProps.onBlur(event);\n });\n const handleRootFocus = useEventCallback(event => {\n onFocus?.(event);\n rootProps.onFocus(event);\n });\n const handleRootClick = useEventCallback(event => {\n // The click event on the clear or open button would propagate to the input, trigger this handler and result in an inadvertent section selection.\n // We avoid this by checking if the call of `handleInputClick` is actually intended, or a propagated call, which should be skipped.\n if (event.isDefaultPrevented()) {\n return;\n }\n onClick?.(event);\n rootProps.onClick(event);\n });\n const handleRootPaste = useEventCallback(event => {\n onPaste?.(event);\n rootProps.onPaste(event);\n });\n const handleRootInput = useEventCallback(event => {\n onInput?.(event);\n rootProps.onInput(event);\n });\n const handleClear = useEventCallback((event, ...args) => {\n event.preventDefault();\n onClear?.(event, ...args);\n clearValue();\n if (!isFieldFocused(sectionListRef)) {\n // setSelectedSections is called internally\n focusField(0);\n } else {\n setSelectedSections(sectionOrder.startIndex);\n }\n });\n const elements = React.useMemo(() => {\n return state.sections.map((section, sectionIndex) => {\n const content = createSectionContentProps(section, sectionIndex);\n return {\n container: createSectionContainerProps(sectionIndex),\n content: createSectionContentProps(section, sectionIndex),\n before: {\n children: section.startSeparator\n },\n after: {\n children: section.endSeparator,\n 'data-range-position': section.isEndFormatSeparator ? content['data-range-position'] : undefined\n }\n };\n });\n }, [state.sections, createSectionContainerProps, createSectionContentProps]);\n React.useEffect(() => {\n if (sectionListRef.current == null) {\n throw new Error(['MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`', 'You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.', '', 'If you want to keep using an `<input />` HTML element for the editing, please add the `enableAccessibleFieldDOMStructure={false}` prop to your Picker or Field component:', '', '<DatePicker enableAccessibleFieldDOMStructure={false} slots={{ textField: MyCustomTextField }} />', '', 'Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element'].join('\\n'));\n }\n if (autoFocus && !disabled && sectionListRef.current) {\n sectionListRef.current.getSectionContent(sectionOrder.startIndex).focus();\n }\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n useEnhancedEffect(() => {\n if (!focused || !sectionListRef.current) {\n return;\n }\n if (parsedSelectedSections === 'all') {\n sectionListRef.current.getRoot().focus();\n } else if (typeof parsedSelectedSections === 'number') {\n const domElement = sectionListRef.current.getSectionContent(parsedSelectedSections);\n if (domElement) {\n domElement.focus();\n }\n }\n }, [parsedSelectedSections, focused]);\n useEnhancedEffect(() => {\n syncSelectionToDOM({\n focused,\n domGetters,\n stateResponse\n });\n });\n React.useImperativeHandle(unstableFieldRef, () => ({\n getSections: () => state.sections,\n getActiveSectionIndex: () => getActiveSectionIndex(sectionListRef),\n setSelectedSections: newSelectedSections => {\n if (disabled || !sectionListRef.current) {\n return;\n }\n const newParsedSelectedSections = parseSelectedSections(newSelectedSections, state.sections);\n const newActiveSectionIndex = newParsedSelectedSections === 'all' ? 0 : newParsedSelectedSections;\n setFocused(newActiveSectionIndex !== null);\n setSelectedSections(newSelectedSections);\n },\n focusField,\n isFieldFocused: () => isFieldFocused(sectionListRef)\n }));\n return _extends({}, forwardedProps, rootProps, {\n onBlur: handleRootBlur,\n onClick: handleRootClick,\n onFocus: handleRootFocus,\n onInput: handleRootInput,\n onPaste: handleRootPaste,\n onKeyDown: handleRootKeyDown,\n onClear: handleClear\n }, hiddenInputProps, {\n error,\n clearable: Boolean(clearable && !areAllSectionsEmpty && !readOnly && !disabled),\n focused: focusedProp ?? focused,\n sectionListRef: handleSectionListRef,\n // Additional\n enableAccessibleFieldDOMStructure: true,\n elements,\n areAllSectionsEmpty,\n disabled,\n readOnly,\n autoFocus,\n openPickerAriaLabel\n });\n};\nfunction getActiveSectionIndex(sectionListRef) {\n const activeElement = getActiveElement(document);\n if (!activeElement || !sectionListRef.current || !sectionListRef.current.getRoot().contains(activeElement)) {\n return null;\n }\n return sectionListRef.current.getSectionIndexFromDOMElement(activeElement);\n}\nfunction isFieldFocused(sectionListRef) {\n const activeElement = getActiveElement(document);\n return !!sectionListRef.current && sectionListRef.current.getRoot().contains(activeElement);\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useTimeout from '@mui/utils/useTimeout';\nimport useForkRef from '@mui/utils/useForkRef';\nimport { useSplitFieldProps } from \"../../../hooks/index.js\";\nimport { getActiveElement } from \"../../utils/utils.js\";\nimport { getSectionVisibleValue, isAndroid } from \"./useField.utils.js\";\nimport { useFieldCharacterEditing } from \"./useFieldCharacterEditing.js\";\nimport { useFieldRootHandleKeyDown } from \"./useFieldRootHandleKeyDown.js\";\nimport { useFieldState } from \"./useFieldState.js\";\nimport { useFieldInternalPropsWithDefaults } from \"./useFieldInternalPropsWithDefaults.js\";\nconst cleanString = dirtyString => dirtyString.replace(/[\\u2066\\u2067\\u2068\\u2069]/g, '');\nexport const addPositionPropertiesToSections = (sections, localizedDigits, isRtl) => {\n let position = 0;\n let positionInInput = isRtl ? 1 : 0;\n const newSections = [];\n for (let i = 0; i < sections.length; i += 1) {\n const section = sections[i];\n const renderedValue = getSectionVisibleValue(section, isRtl ? 'input-rtl' : 'input-ltr', localizedDigits);\n const sectionStr = `${section.startSeparator}${renderedValue}${section.endSeparator}`;\n const sectionLength = cleanString(sectionStr).length;\n const sectionLengthInInput = sectionStr.length;\n\n // The ...InInput values consider the unicode characters but do include them in their indexes\n const cleanedValue = cleanString(renderedValue);\n const startInInput = positionInInput + (cleanedValue === '' ? 0 : renderedValue.indexOf(cleanedValue[0])) + section.startSeparator.length;\n const endInInput = startInInput + cleanedValue.length;\n newSections.push(_extends({}, section, {\n start: position,\n end: position + sectionLength,\n startInInput,\n endInInput\n }));\n position += sectionLength;\n // Move position to the end of string associated to the current section\n positionInInput += sectionLengthInInput;\n }\n return newSections;\n};\nexport const useFieldV6TextField = parameters => {\n const isRtl = useRtl();\n const focusTimeout = useTimeout();\n const selectionSyncTimeout = useTimeout();\n const {\n props,\n manager,\n skipContextFieldRefAssignment,\n manager: {\n valueType,\n internal_valueManager: valueManager,\n internal_fieldValueManager: fieldValueManager,\n internal_useOpenPickerButtonAriaLabel: useOpenPickerButtonAriaLabel\n }\n } = parameters;\n const {\n internalProps,\n forwardedProps\n } = useSplitFieldProps(props, valueType);\n const internalPropsWithDefaults = useFieldInternalPropsWithDefaults({\n manager,\n internalProps,\n skipContextFieldRefAssignment\n });\n const {\n onFocus,\n onClick,\n onPaste,\n onBlur,\n onKeyDown,\n onClear,\n clearable,\n inputRef: inputRefProp,\n placeholder: inPlaceholder\n } = forwardedProps;\n const {\n readOnly = false,\n disabled = false,\n autoFocus = false,\n focused,\n unstableFieldRef\n } = internalPropsWithDefaults;\n const inputRef = React.useRef(null);\n const handleRef = useForkRef(inputRefProp, inputRef);\n const stateResponse = useFieldState({\n manager,\n internalPropsWithDefaults,\n forwardedProps\n });\n const {\n // States and derived states\n activeSectionIndex,\n areAllSectionsEmpty,\n error,\n localizedDigits,\n parsedSelectedSections,\n sectionOrder,\n state,\n value,\n // Methods to update the states\n clearValue,\n clearActiveSection,\n setCharacterQuery,\n setSelectedSections,\n setTempAndroidValueStr,\n updateSectionValue,\n updateValueFromValueStr,\n // Utilities methods\n getSectionsFromValue\n } = stateResponse;\n const applyCharacterEditing = useFieldCharacterEditing({\n stateResponse\n });\n const openPickerAriaLabel = useOpenPickerButtonAriaLabel(value);\n const sections = React.useMemo(() => addPositionPropertiesToSections(state.sections, localizedDigits, isRtl), [state.sections, localizedDigits, isRtl]);\n function syncSelectionFromDOM() {\n const browserStartIndex = inputRef.current.selectionStart ?? 0;\n let nextSectionIndex;\n if (browserStartIndex <= sections[0].startInInput) {\n // Special case if browser index is in invisible characters at the beginning\n nextSectionIndex = 1;\n } else if (browserStartIndex >= sections[sections.length - 1].endInInput) {\n // If the click is after the last character of the input, then we want to select the 1st section.\n nextSectionIndex = 1;\n } else {\n nextSectionIndex = sections.findIndex(section => section.startInInput - section.startSeparator.length > browserStartIndex);\n }\n const sectionIndex = nextSectionIndex === -1 ? sections.length - 1 : nextSectionIndex - 1;\n setSelectedSections(sectionIndex);\n }\n function focusField(newSelectedSection = 0) {\n if (getActiveElement(document) === inputRef.current) {\n return;\n }\n inputRef.current?.focus();\n setSelectedSections(newSelectedSection);\n }\n const handleInputFocus = useEventCallback(event => {\n onFocus?.(event);\n // The ref is guaranteed to be resolved at this point.\n const input = inputRef.current;\n focusTimeout.start(0, () => {\n // The ref changed, the component got remounted, the focus event is no longer relevant.\n if (!input || input !== inputRef.current) {\n return;\n }\n if (activeSectionIndex != null) {\n return;\n }\n if (\n // avoid selecting all sections when focusing empty field without value\n input.value.length && Number(input.selectionEnd) - Number(input.selectionStart) === input.value.length) {\n setSelectedSections('all');\n } else {\n syncSelectionFromDOM();\n }\n });\n });\n const handleInputClick = useEventCallback((event, ...args) => {\n // The click event on the clear button would propagate to the input, trigger this handler and result in a wrong section selection.\n // We avoid this by checking if the call of `handleInputClick` is actually intended, or a side effect.\n if (event.isDefaultPrevented()) {\n return;\n }\n onClick?.(event, ...args);\n syncSelectionFromDOM();\n });\n const handleInputPaste = useEventCallback(event => {\n onPaste?.(event);\n\n // prevent default to avoid the input `onChange` handler being called\n event.preventDefault();\n if (readOnly || disabled) {\n return;\n }\n const pastedValue = event.clipboardData.getData('text');\n if (typeof parsedSelectedSections === 'number') {\n const activeSection = state.sections[parsedSelectedSections];\n const lettersOnly = /^[a-zA-Z]+$/.test(pastedValue);\n const digitsOnly = /^[0-9]+$/.test(pastedValue);\n const digitsAndLetterOnly = /^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(pastedValue);\n const isValidPastedValue = activeSection.contentType === 'letter' && lettersOnly || activeSection.contentType === 'digit' && digitsOnly || activeSection.contentType === 'digit-with-letter' && digitsAndLetterOnly;\n if (isValidPastedValue) {\n setCharacterQuery(null);\n updateSectionValue({\n section: activeSection,\n newSectionValue: pastedValue,\n shouldGoToNextSection: true\n });\n return;\n }\n if (lettersOnly || digitsOnly) {\n // The pasted value corresponds to a single section, but not the expected type,\n // skip the modification\n return;\n }\n }\n setCharacterQuery(null);\n updateValueFromValueStr(pastedValue);\n });\n const handleContainerBlur = useEventCallback(event => {\n onBlur?.(event);\n setSelectedSections(null);\n });\n const handleInputChange = useEventCallback(event => {\n if (readOnly) {\n return;\n }\n const targetValue = event.target.value;\n if (targetValue === '') {\n clearValue();\n return;\n }\n const eventData = event.nativeEvent.data;\n // Calling `.fill(04/11/2022)` in playwright will trigger a change event with the requested content to insert in `event.nativeEvent.data`\n // usual changes have only the currently typed character in the `event.nativeEvent.data`\n const shouldUseEventData = eventData && eventData.length > 1;\n const valueStr = shouldUseEventData ? eventData : targetValue;\n const cleanValueStr = cleanString(valueStr);\n if (parsedSelectedSections === 'all') {\n setSelectedSections(activeSectionIndex);\n }\n\n // If no section is selected or eventData should be used, we just try to parse the new value\n // This line is mostly triggered by imperative code / application tests.\n if (activeSectionIndex == null || shouldUseEventData) {\n updateValueFromValueStr(shouldUseEventData ? eventData : cleanValueStr);\n return;\n }\n let keyPressed;\n if (parsedSelectedSections === 'all' && cleanValueStr.length === 1) {\n keyPressed = cleanValueStr;\n } else {\n const prevValueStr = cleanString(fieldValueManager.getV6InputValueFromSections(sections, localizedDigits, isRtl));\n let startOfDiffIndex = -1;\n let endOfDiffIndex = -1;\n for (let i = 0; i < prevValueStr.length; i += 1) {\n if (startOfDiffIndex === -1 && prevValueStr[i] !== cleanValueStr[i]) {\n startOfDiffIndex = i;\n }\n if (endOfDiffIndex === -1 && prevValueStr[prevValueStr.length - i - 1] !== cleanValueStr[cleanValueStr.length - i - 1]) {\n endOfDiffIndex = i;\n }\n }\n const activeSection = sections[activeSectionIndex];\n const hasDiffOutsideOfActiveSection = startOfDiffIndex < activeSection.start || prevValueStr.length - endOfDiffIndex - 1 > activeSection.end;\n if (hasDiffOutsideOfActiveSection) {\n // TODO: Support if the new date is valid\n return;\n }\n\n // The active section being selected, the browser has replaced its value with the key pressed by the user.\n const activeSectionEndRelativeToNewValue = cleanValueStr.length - prevValueStr.length + activeSection.end - cleanString(activeSection.endSeparator || '').length;\n keyPressed = cleanValueStr.slice(activeSection.start + cleanString(activeSection.startSeparator || '').length, activeSectionEndRelativeToNewValue);\n }\n if (keyPressed.length === 0) {\n if (isAndroid()) {\n setTempAndroidValueStr(valueStr);\n }\n clearActiveSection();\n return;\n }\n applyCharacterEditing({\n keyPressed,\n sectionIndex: activeSectionIndex\n });\n });\n const handleClear = useEventCallback((event, ...args) => {\n event.preventDefault();\n onClear?.(event, ...args);\n clearValue();\n if (!isFieldFocused(inputRef)) {\n // setSelectedSections is called internally\n focusField(0);\n } else {\n setSelectedSections(sectionOrder.startIndex);\n }\n });\n const handleContainerKeyDown = useFieldRootHandleKeyDown({\n manager,\n internalPropsWithDefaults,\n stateResponse\n });\n const wrappedHandleContainerKeyDown = useEventCallback(event => {\n onKeyDown?.(event);\n handleContainerKeyDown(event);\n });\n const placeholder = React.useMemo(() => {\n if (inPlaceholder !== undefined) {\n return inPlaceholder;\n }\n return fieldValueManager.getV6InputValueFromSections(getSectionsFromValue(valueManager.emptyValue), localizedDigits, isRtl);\n }, [inPlaceholder, fieldValueManager, getSectionsFromValue, valueManager.emptyValue, localizedDigits, isRtl]);\n const valueStr = React.useMemo(() => state.tempValueStrAndroid ?? fieldValueManager.getV6InputValueFromSections(state.sections, localizedDigits, isRtl), [state.sections, fieldValueManager, state.tempValueStrAndroid, localizedDigits, isRtl]);\n React.useEffect(() => {\n // Select all the sections when focused on mount (`autoFocus = true` on the input)\n if (inputRef.current && inputRef.current === getActiveElement(document)) {\n setSelectedSections('all');\n }\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n useEnhancedEffect(() => {\n function syncSelectionToDOM() {\n if (!inputRef.current) {\n return;\n }\n if (parsedSelectedSections == null) {\n if (inputRef.current.scrollLeft) {\n // Ensure that input content is not marked as selected.\n // setting selection range to 0 causes issues in Safari.\n // https://bugs.webkit.org/show_bug.cgi?id=224425\n inputRef.current.scrollLeft = 0;\n }\n return;\n }\n\n // On multi input range pickers we want to update selection range only for the active input\n // This helps to avoid the focus jumping on Safari https://github.com/mui/mui-x/issues/9003\n // because WebKit implements the `setSelectionRange` based on the spec: https://bugs.webkit.org/show_bug.cgi?id=224425\n if (inputRef.current !== getActiveElement(document)) {\n return;\n }\n\n // Fix scroll jumping on iOS browser: https://github.com/mui/mui-x/issues/8321\n const currentScrollTop = inputRef.current.scrollTop;\n if (parsedSelectedSections === 'all') {\n inputRef.current.select();\n } else {\n const selectedSection = sections[parsedSelectedSections];\n const selectionStart = selectedSection.type === 'empty' ? selectedSection.startInInput - selectedSection.startSeparator.length : selectedSection.startInInput;\n const selectionEnd = selectedSection.type === 'empty' ? selectedSection.endInInput + selectedSection.endSeparator.length : selectedSection.endInInput;\n if (selectionStart !== inputRef.current.selectionStart || selectionEnd !== inputRef.current.selectionEnd) {\n if (inputRef.current === getActiveElement(document)) {\n inputRef.current.setSelectionRange(selectionStart, selectionEnd);\n }\n }\n selectionSyncTimeout.start(0, () => {\n // handle case when the selection is not updated correctly\n // could happen on Android\n if (inputRef.current && inputRef.current === getActiveElement(document) &&\n // The section might loose all selection, where `selectionStart === selectionEnd`\n // https://github.com/mui/mui-x/pull/13652\n inputRef.current.selectionStart === inputRef.current.selectionEnd && (inputRef.current.selectionStart !== selectionStart || inputRef.current.selectionEnd !== selectionEnd)) {\n syncSelectionToDOM();\n }\n });\n }\n\n // Even reading this variable seems to do the trick, but also setting it just to make use of it\n inputRef.current.scrollTop = currentScrollTop;\n }\n syncSelectionToDOM();\n });\n const inputMode = React.useMemo(() => {\n if (activeSectionIndex == null) {\n return 'text';\n }\n if (state.sections[activeSectionIndex].contentType === 'letter') {\n return 'text';\n }\n return 'numeric';\n }, [activeSectionIndex, state.sections]);\n const inputHasFocus = inputRef.current && inputRef.current === getActiveElement(document);\n const shouldShowPlaceholder = !inputHasFocus && areAllSectionsEmpty;\n React.useImperativeHandle(unstableFieldRef, () => ({\n getSections: () => state.sections,\n getActiveSectionIndex: () => {\n const browserStartIndex = inputRef.current.selectionStart ?? 0;\n const browserEndIndex = inputRef.current.selectionEnd ?? 0;\n if (browserStartIndex === 0 && browserEndIndex === 0) {\n return null;\n }\n const nextSectionIndex = browserStartIndex <= sections[0].startInInput ? 1 // Special case if browser index is in invisible characters at the beginning.\n : sections.findIndex(section => section.startInInput - section.startSeparator.length > browserStartIndex);\n return nextSectionIndex === -1 ? sections.length - 1 : nextSectionIndex - 1;\n },\n setSelectedSections: newSelectedSections => setSelectedSections(newSelectedSections),\n focusField,\n isFieldFocused: () => isFieldFocused(inputRef)\n }));\n return _extends({}, forwardedProps, {\n error,\n clearable: Boolean(clearable && !areAllSectionsEmpty && !readOnly && !disabled),\n onBlur: handleContainerBlur,\n onClick: handleInputClick,\n onFocus: handleInputFocus,\n onPaste: handleInputPaste,\n onKeyDown: wrappedHandleContainerKeyDown,\n onClear: handleClear,\n inputRef: handleRef,\n // Additional\n enableAccessibleFieldDOMStructure: false,\n placeholder,\n inputMode,\n autoComplete: 'off',\n value: shouldShowPlaceholder ? '' : valueStr,\n onChange: handleInputChange,\n focused,\n disabled,\n readOnly,\n autoFocus,\n openPickerAriaLabel\n });\n};\nfunction isFieldFocused(inputRef) {\n return inputRef.current === getActiveElement(document);\n}","import { useFieldV7TextField } from \"./useFieldV7TextField.js\";\nimport { useFieldV6TextField } from \"./useFieldV6TextField.js\";\nimport { useNullableFieldPrivateContext } from \"../useNullableFieldPrivateContext.js\";\nexport const useField = parameters => {\n const fieldPrivateContext = useNullableFieldPrivateContext();\n const enableAccessibleFieldDOMStructure = parameters.props.enableAccessibleFieldDOMStructure ?? fieldPrivateContext?.enableAccessibleFieldDOMStructure ?? true;\n const useFieldTextField = enableAccessibleFieldDOMStructure ? useFieldV7TextField : useFieldV6TextField;\n return useFieldTextField(parameters);\n};","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { applyDefaultDate } from \"../internals/utils/date-utils.js\";\nimport { singleItemFieldValueManager, singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { validateDate } from \"../validation/index.js\";\nimport { useDefaultDates, useUtils } from \"../internals/hooks/useUtils.js\";\nimport { usePickerTranslations } from \"../hooks/usePickerTranslations.js\";\nexport function useDateManager(parameters = {}) {\n const {\n enableAccessibleFieldDOMStructure = true\n } = parameters;\n return React.useMemo(() => ({\n valueType: 'date',\n validator: validateDate,\n internal_valueManager: singleItemValueManager,\n internal_fieldValueManager: singleItemFieldValueManager,\n internal_enableAccessibleFieldDOMStructure: enableAccessibleFieldDOMStructure,\n internal_useApplyDefaultValuesToFieldInternalProps: useApplyDefaultValuesToDateFieldInternalProps,\n internal_useOpenPickerButtonAriaLabel: useOpenPickerButtonAriaLabel\n }), [enableAccessibleFieldDOMStructure]);\n}\nfunction useOpenPickerButtonAriaLabel(value) {\n const utils = useUtils();\n const translations = usePickerTranslations();\n return React.useMemo(() => {\n const formattedValue = utils.isValid(value) ? utils.format(value, 'fullDate') : null;\n return translations.openDatePickerDialogue(formattedValue);\n }, [value, translations, utils]);\n}\nfunction useApplyDefaultValuesToDateFieldInternalProps(internalProps) {\n const utils = useUtils();\n const validationProps = useApplyDefaultValuesToDateValidationProps(internalProps);\n return React.useMemo(() => _extends({}, internalProps, validationProps, {\n format: internalProps.format ?? utils.formats.keyboardDate\n }), [internalProps, validationProps, utils]);\n}\nexport function useApplyDefaultValuesToDateValidationProps(props) {\n const utils = useUtils();\n const defaultDates = useDefaultDates();\n return React.useMemo(() => ({\n disablePast: props.disablePast ?? false,\n disableFuture: props.disableFuture ?? false,\n minDate: applyDefaultDate(utils, props.minDate, defaultDates.minDate),\n maxDate: applyDefaultDate(utils, props.maxDate, defaultDates.maxDate)\n }), [props.minDate, props.maxDate, props.disableFuture, props.disablePast, utils, defaultDates]);\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { singleItemFieldValueManager, singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { validateTime } from \"../validation/index.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { usePickerTranslations } from \"../hooks/usePickerTranslations.js\";\nexport function useTimeManager(parameters = {}) {\n const {\n enableAccessibleFieldDOMStructure = true,\n ampm\n } = parameters;\n return React.useMemo(() => ({\n valueType: 'time',\n validator: validateTime,\n internal_valueManager: singleItemValueManager,\n internal_fieldValueManager: singleItemFieldValueManager,\n internal_enableAccessibleFieldDOMStructure: enableAccessibleFieldDOMStructure,\n internal_useApplyDefaultValuesToFieldInternalProps: useApplyDefaultValuesToTimeFieldInternalProps,\n internal_useOpenPickerButtonAriaLabel: createUseOpenPickerButtonAriaLabel(ampm)\n }), [ampm, enableAccessibleFieldDOMStructure]);\n}\nfunction createUseOpenPickerButtonAriaLabel(ampm) {\n return function useOpenPickerButtonAriaLabel(value) {\n const utils = useUtils();\n const translations = usePickerTranslations();\n return React.useMemo(() => {\n const formatKey = ampm ?? utils.is12HourCycleInCurrentLocale() ? 'fullTime12h' : 'fullTime24h';\n const formattedValue = utils.isValid(value) ? utils.format(value, formatKey) : null;\n return translations.openTimePickerDialogue(formattedValue);\n }, [value, translations, utils]);\n };\n}\nfunction useApplyDefaultValuesToTimeFieldInternalProps(internalProps) {\n const utils = useUtils();\n const validationProps = useApplyDefaultValuesToTimeValidationProps(internalProps);\n const ampm = React.useMemo(() => internalProps.ampm ?? utils.is12HourCycleInCurrentLocale(), [internalProps.ampm, utils]);\n return React.useMemo(() => _extends({}, internalProps, validationProps, {\n format: internalProps.format ?? (ampm ? utils.formats.fullTime12h : utils.formats.fullTime24h)\n }), [internalProps, validationProps, ampm, utils]);\n}\nexport function useApplyDefaultValuesToTimeValidationProps(props) {\n return React.useMemo(() => ({\n disablePast: props.disablePast ?? false,\n disableFuture: props.disableFuture ?? false\n }), [props.disablePast, props.disableFuture]);\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { applyDefaultDate } from \"../internals/utils/date-utils.js\";\nimport { singleItemFieldValueManager, singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { validateDateTime } from \"../validation/index.js\";\nimport { useDefaultDates, useUtils } from \"../internals/hooks/useUtils.js\";\nimport { usePickerTranslations } from \"../hooks/usePickerTranslations.js\";\nexport function useDateTimeManager(parameters = {}) {\n const {\n enableAccessibleFieldDOMStructure = true\n } = parameters;\n return React.useMemo(() => ({\n valueType: 'date-time',\n validator: validateDateTime,\n internal_valueManager: singleItemValueManager,\n internal_fieldValueManager: singleItemFieldValueManager,\n internal_enableAccessibleFieldDOMStructure: enableAccessibleFieldDOMStructure,\n internal_useApplyDefaultValuesToFieldInternalProps: useApplyDefaultValuesToDateTimeFieldInternalProps,\n internal_useOpenPickerButtonAriaLabel: useOpenPickerButtonAriaLabel\n }), [enableAccessibleFieldDOMStructure]);\n}\nfunction useOpenPickerButtonAriaLabel(value) {\n const utils = useUtils();\n const translations = usePickerTranslations();\n return React.useMemo(() => {\n const formattedValue = utils.isValid(value) ? utils.format(value, 'fullDate') : null;\n return translations.openDatePickerDialogue(formattedValue);\n }, [value, translations, utils]);\n}\nfunction useApplyDefaultValuesToDateTimeFieldInternalProps(internalProps) {\n const utils = useUtils();\n const validationProps = useApplyDefaultValuesToDateTimeValidationProps(internalProps);\n const ampm = React.useMemo(() => internalProps.ampm ?? utils.is12HourCycleInCurrentLocale(), [internalProps.ampm, utils]);\n return React.useMemo(() => _extends({}, internalProps, validationProps, {\n format: internalProps.format ?? (ampm ? utils.formats.keyboardDateTime12h : utils.formats.keyboardDateTime24h)\n }), [internalProps, validationProps, ampm, utils]);\n}\nexport function useApplyDefaultValuesToDateTimeValidationProps(props) {\n const utils = useUtils();\n const defaultDates = useDefaultDates();\n return React.useMemo(() => ({\n disablePast: props.disablePast ?? false,\n disableFuture: props.disableFuture ?? false,\n // TODO: Explore if we can remove it from the public API\n disableIgnoringDatePartForTimeValidation: !!props.minDateTime || !!props.maxDateTime || !!props.disableFuture || !!props.disablePast,\n minDate: applyDefaultDate(utils, props.minDateTime ?? props.minDate, defaultDates.minDate),\n maxDate: applyDefaultDate(utils, props.maxDateTime ?? props.maxDate, defaultDates.maxDate),\n minTime: props.minDateTime ?? props.minTime,\n maxTime: props.maxDateTime ?? props.maxTime\n }), [props.minDateTime, props.maxDateTime, props.minTime, props.maxTime, props.minDate, props.maxDate, props.disableFuture, props.disablePast, utils, defaultDates]);\n}","'use client';\n\nimport { useField } from \"../internals/hooks/useField/index.js\";\nimport { useDateManager } from \"../managers/index.js\";\nexport const useDateField = props => {\n const manager = useDateManager(props);\n return useField({\n manager,\n props\n });\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { usePickerPrivateContext } from \"./usePickerPrivateContext.js\";\nexport function useFieldOwnerState(parameters) {\n const {\n ownerState: pickerOwnerState\n } = usePickerPrivateContext();\n const isRtl = useRtl();\n return React.useMemo(() => _extends({}, pickerOwnerState, {\n isFieldDisabled: parameters.disabled ?? false,\n isFieldReadOnly: parameters.readOnly ?? false,\n isFieldRequired: parameters.required ?? false,\n fieldDirection: isRtl ? 'rtl' : 'ltr'\n }), [pickerOwnerState, parameters.disabled, parameters.readOnly, parameters.required, isRtl]);\n}","import generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nexport function getPickersTextFieldUtilityClass(slot) {\n return generateUtilityClass('MuiPickersTextField', slot);\n}\nexport const pickersTextFieldClasses = generateUtilityClasses('MuiPickersTextField', ['root', 'focused', 'disabled', 'error', 'required']);","import generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nexport function getPickersInputBaseUtilityClass(slot) {\n return generateUtilityClass('MuiPickersInputBase', slot);\n}\nexport const pickersInputBaseClasses = generateUtilityClasses('MuiPickersInputBase', ['root', 'focused', 'disabled', 'error', 'notchedOutline', 'sectionContent', 'sectionBefore', 'sectionAfter', 'adornedStart', 'adornedEnd', 'input', 'activeBar']);","import generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nexport function getPickersSectionListUtilityClass(slot) {\n return generateUtilityClass('MuiPickersSectionList', slot);\n}\nexport const pickersSectionListClasses = generateUtilityClasses('MuiPickersSectionList', ['root', 'section', 'sectionContent']);","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"slots\", \"slotProps\", \"elements\", \"sectionListRef\", \"classes\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useForkRef from '@mui/utils/useForkRef';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { getPickersSectionListUtilityClass, pickersSectionListClasses } from \"./pickersSectionListClasses.js\";\nimport { usePickerPrivateContext } from \"../internals/hooks/usePickerPrivateContext.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const PickersSectionListRoot = styled('div', {\n name: 'MuiPickersSectionList',\n slot: 'Root'\n})({\n direction: 'ltr /*! @noflip */',\n outline: 'none'\n});\nexport const PickersSectionListSection = styled('span', {\n name: 'MuiPickersSectionList',\n slot: 'Section'\n})({});\nexport const PickersSectionListSectionSeparator = styled('span', {\n name: 'MuiPickersSectionList',\n slot: 'SectionSeparator'\n})({\n whiteSpace: 'pre'\n});\nexport const PickersSectionListSectionContent = styled('span', {\n name: 'MuiPickersSectionList',\n slot: 'SectionContent'\n})({\n outline: 'none'\n});\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root'],\n section: ['section'],\n sectionContent: ['sectionContent']\n };\n return composeClasses(slots, getPickersSectionListUtilityClass, classes);\n};\nfunction PickersSection(props) {\n const {\n slots,\n slotProps,\n element,\n classes\n } = props;\n const {\n ownerState\n } = usePickerPrivateContext();\n const Section = slots?.section ?? PickersSectionListSection;\n const sectionProps = useSlotProps({\n elementType: Section,\n externalSlotProps: slotProps?.section,\n externalForwardedProps: element.container,\n className: classes.section,\n ownerState\n });\n const SectionContent = slots?.sectionContent ?? PickersSectionListSectionContent;\n const sectionContentProps = useSlotProps({\n elementType: SectionContent,\n externalSlotProps: slotProps?.sectionContent,\n externalForwardedProps: element.content,\n additionalProps: {\n suppressContentEditableWarning: true\n },\n className: classes.sectionContent,\n ownerState\n });\n const SectionSeparator = slots?.sectionSeparator ?? PickersSectionListSectionSeparator;\n const sectionSeparatorBeforeProps = useSlotProps({\n elementType: SectionSeparator,\n externalSlotProps: slotProps?.sectionSeparator,\n externalForwardedProps: element.before,\n ownerState: _extends({}, ownerState, {\n separatorPosition: 'before'\n })\n });\n const sectionSeparatorAfterProps = useSlotProps({\n elementType: SectionSeparator,\n externalSlotProps: slotProps?.sectionSeparator,\n externalForwardedProps: element.after,\n ownerState: _extends({}, ownerState, {\n separatorPosition: 'after'\n })\n });\n return /*#__PURE__*/_jsxs(Section, _extends({}, sectionProps, {\n children: [/*#__PURE__*/_jsx(SectionSeparator, _extends({}, sectionSeparatorBeforeProps)), /*#__PURE__*/_jsx(SectionContent, _extends({}, sectionContentProps)), /*#__PURE__*/_jsx(SectionSeparator, _extends({}, sectionSeparatorAfterProps))]\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? PickersSection.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n classes: PropTypes.object.isRequired,\n element: PropTypes.shape({\n after: PropTypes.object.isRequired,\n before: PropTypes.object.isRequired,\n container: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n }).isRequired,\n /**\n * The props used for each component slot.\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n */\n slots: PropTypes.object\n} : void 0;\n/**\n * Demos:\n *\n * - [Custom field](https://mui.com/x/react-date-pickers/custom-field/)\n *\n * API:\n *\n * - [PickersSectionList API](https://mui.com/x/api/date-pickers/pickers-section-list/)\n */\nconst PickersSectionList = /*#__PURE__*/React.forwardRef(function PickersSectionList(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersSectionList'\n });\n const {\n slots,\n slotProps,\n elements,\n sectionListRef,\n classes: classesProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const classes = useUtilityClasses(classesProp);\n const {\n ownerState\n } = usePickerPrivateContext();\n const rootRef = React.useRef(null);\n const handleRootRef = useForkRef(ref, rootRef);\n const getRoot = methodName => {\n if (!rootRef.current) {\n throw new Error(`MUI X: Cannot call sectionListRef.${methodName} before the mount of the component.`);\n }\n return rootRef.current;\n };\n React.useImperativeHandle(sectionListRef, () => ({\n getRoot() {\n return getRoot('getRoot');\n },\n getSectionContainer(index) {\n const root = getRoot('getSectionContainer');\n return root.querySelector(`.${pickersSectionListClasses.section}[data-sectionindex=\"${index}\"]`);\n },\n getSectionContent(index) {\n const root = getRoot('getSectionContent');\n return root.querySelector(`.${pickersSectionListClasses.section}[data-sectionindex=\"${index}\"] .${pickersSectionListClasses.sectionContent}`);\n },\n getSectionIndexFromDOMElement(element) {\n const root = getRoot('getSectionIndexFromDOMElement');\n if (element == null || !root.contains(element)) {\n return null;\n }\n let sectionContainer = null;\n if (element.classList.contains(pickersSectionListClasses.section)) {\n sectionContainer = element;\n } else if (element.classList.contains(pickersSectionListClasses.sectionContent)) {\n sectionContainer = element.parentElement;\n }\n if (sectionContainer == null) {\n return null;\n }\n return Number(sectionContainer.dataset.sectionindex);\n }\n }));\n const Root = slots?.root ?? PickersSectionListRoot;\n const rootProps = useSlotProps({\n elementType: Root,\n externalSlotProps: slotProps?.root,\n externalForwardedProps: other,\n additionalProps: {\n ref: handleRootRef,\n suppressContentEditableWarning: true\n },\n className: classes.root,\n ownerState\n });\n return /*#__PURE__*/_jsx(Root, _extends({}, rootProps, {\n children: rootProps.contentEditable ? elements.map(({\n content,\n before,\n after\n }) => `${before.children}${content.children}${after.children}`).join('') : /*#__PURE__*/_jsx(React.Fragment, {\n children: elements.map((element, elementIndex) => /*#__PURE__*/_jsx(PickersSection, {\n slots: slots,\n slotProps: slotProps,\n element: element,\n classes: classes\n }, elementIndex))\n })\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersSectionList.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * If true, the whole element is editable.\n * Useful when all the sections are selected.\n */\n contentEditable: PropTypes.bool.isRequired,\n /**\n * The elements to render.\n * Each element contains the prop to edit a section of the value.\n */\n elements: PropTypes.arrayOf(PropTypes.shape({\n after: PropTypes.object.isRequired,\n before: PropTypes.object.isRequired,\n container: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n })).isRequired,\n sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n getRoot: PropTypes.func.isRequired,\n getSectionContainer: PropTypes.func.isRequired,\n getSectionContent: PropTypes.func.isRequired,\n getSectionIndexFromDOMElement: PropTypes.func.isRequired\n })\n })]),\n /**\n * The props used for each component slot.\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n */\n slots: PropTypes.object\n} : void 0;\nexport { PickersSectionList };","'use client';\n\nimport * as React from 'react';\nexport const PickerTextFieldOwnerStateContext = /*#__PURE__*/React.createContext(null);\nexport const usePickerTextFieldOwnerState = () => {\n const value = React.useContext(PickerTextFieldOwnerStateContext);\n if (value == null) {\n throw new Error(['MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component'].join('\\n'));\n }\n return value;\n};","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"elements\", \"areAllSectionsEmpty\", \"defaultValue\", \"label\", \"value\", \"onChange\", \"id\", \"autoFocus\", \"endAdornment\", \"startAdornment\", \"renderSuffix\", \"slots\", \"slotProps\", \"contentEditable\", \"tabIndex\", \"onInput\", \"onPaste\", \"onKeyDown\", \"fullWidth\", \"name\", \"readOnly\", \"inputProps\", \"inputRef\", \"sectionListRef\", \"onFocus\", \"onBlur\", \"classes\", \"ownerState\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useFormControl } from '@mui/material/FormControl';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport useForkRef from '@mui/utils/useForkRef';\nimport { refType } from '@mui/utils';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from '@mui/utils/capitalize';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport visuallyHidden from '@mui/utils/visuallyHidden';\nimport { pickersInputBaseClasses, getPickersInputBaseUtilityClass } from \"./pickersInputBaseClasses.js\";\nimport { Unstable_PickersSectionList as PickersSectionList, Unstable_PickersSectionListRoot as PickersSectionListRoot, Unstable_PickersSectionListSection as PickersSectionListSection, Unstable_PickersSectionListSectionSeparator as PickersSectionListSectionSeparator, Unstable_PickersSectionListSectionContent as PickersSectionListSectionContent } from \"../../PickersSectionList/index.js\";\nimport { usePickerTextFieldOwnerState } from \"../usePickerTextFieldOwnerState.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst round = value => Math.round(value * 1e5) / 1e5;\nexport const PickersInputBaseRoot = styled('div', {\n name: 'MuiPickersInputBase',\n slot: 'Root'\n})(({\n theme\n}) => _extends({}, theme.typography.body1, {\n color: (theme.vars || theme).palette.text.primary,\n cursor: 'text',\n padding: 0,\n display: 'flex',\n justifyContent: 'flex-start',\n alignItems: 'center',\n position: 'relative',\n boxSizing: 'border-box',\n // Prevent padding issue with fullWidth.\n letterSpacing: `${round(0.15 / 16)}em`,\n variants: [{\n props: {\n isInputInFullWidth: true\n },\n style: {\n width: '100%'\n }\n }]\n}));\nexport const PickersInputBaseSectionsContainer = styled(PickersSectionListRoot, {\n name: 'MuiPickersInputBase',\n slot: 'SectionsContainer'\n})(({\n theme\n}) => ({\n padding: '4px 0 5px',\n fontFamily: theme.typography.fontFamily,\n fontSize: 'inherit',\n lineHeight: '1.4375em',\n // 23px\n flexGrow: 1,\n outline: 'none',\n display: 'flex',\n flexWrap: 'nowrap',\n overflow: 'hidden',\n letterSpacing: 'inherit',\n // Baseline behavior\n width: '182px',\n variants: [{\n props: {\n fieldDirection: 'rtl'\n },\n style: {\n textAlign: 'right /*! @noflip */'\n }\n }, {\n props: {\n inputSize: 'small'\n },\n style: {\n paddingTop: 1\n }\n }, {\n props: {\n hasStartAdornment: false,\n isFieldFocused: false,\n isFieldValueEmpty: true\n },\n style: {\n color: 'currentColor',\n opacity: 0\n }\n }, {\n props: {\n hasStartAdornment: false,\n isFieldFocused: false,\n isFieldValueEmpty: true,\n inputHasLabel: false\n },\n style: theme.vars ? {\n opacity: theme.vars.opacity.inputPlaceholder\n } : {\n opacity: theme.palette.mode === 'light' ? 0.42 : 0.5\n }\n }]\n}));\nconst PickersInputBaseSection = styled(PickersSectionListSection, {\n name: 'MuiPickersInputBase',\n slot: 'Section'\n})(({\n theme\n}) => ({\n fontFamily: theme.typography.fontFamily,\n fontSize: 'inherit',\n letterSpacing: 'inherit',\n lineHeight: '1.4375em',\n // 23px\n display: 'inline-block',\n whiteSpace: 'nowrap'\n}));\nconst PickersInputBaseSectionContent = styled(PickersSectionListSectionContent, {\n name: 'MuiPickersInputBase',\n slot: 'SectionContent',\n overridesResolver: (props, styles) => styles.content // FIXME: Inconsistent naming with slot\n})(({\n theme\n}) => ({\n fontFamily: theme.typography.fontFamily,\n lineHeight: '1.4375em',\n // 23px\n letterSpacing: 'inherit',\n width: 'fit-content',\n outline: 'none'\n}));\nconst PickersInputBaseSectionSeparator = styled(PickersSectionListSectionSeparator, {\n name: 'MuiPickersInputBase',\n slot: 'Separator'\n})(() => ({\n whiteSpace: 'pre',\n letterSpacing: 'inherit'\n}));\nconst PickersInputBaseInput = styled('input', {\n name: 'MuiPickersInputBase',\n slot: 'Input',\n overridesResolver: (props, styles) => styles.hiddenInput // FIXME: Inconsistent naming with slot\n})(_extends({}, visuallyHidden));\nconst PickersInputBaseActiveBar = styled('div', {\n name: 'MuiPickersInputBase',\n slot: 'ActiveBar'\n})(({\n theme,\n ownerState\n}) => ({\n display: 'none',\n position: 'absolute',\n height: 2,\n bottom: 2,\n borderTopLeftRadius: 2,\n borderTopRightRadius: 2,\n transition: theme.transitions.create(['width', 'left'], {\n duration: theme.transitions.duration.shortest\n }),\n backgroundColor: (theme.vars || theme).palette.primary.main,\n '[data-active-range-position=\"start\"] &, [data-active-range-position=\"end\"] &': {\n display: 'block'\n },\n '[data-active-range-position=\"start\"] &': {\n left: ownerState.sectionOffsets[0]\n },\n '[data-active-range-position=\"end\"] &': {\n left: ownerState.sectionOffsets[1]\n }\n}));\nconst useUtilityClasses = (classes, ownerState) => {\n const {\n isFieldFocused,\n isFieldDisabled,\n isFieldReadOnly,\n hasFieldError,\n inputSize,\n isInputInFullWidth,\n inputColor,\n hasStartAdornment,\n hasEndAdornment\n } = ownerState;\n const slots = {\n root: ['root', isFieldFocused && !isFieldDisabled && 'focused', isFieldDisabled && 'disabled', isFieldReadOnly && 'readOnly', hasFieldError && 'error', isInputInFullWidth && 'fullWidth', `color${capitalize(inputColor)}`, inputSize === 'small' && 'inputSizeSmall', hasStartAdornment && 'adornedStart', hasEndAdornment && 'adornedEnd'],\n notchedOutline: ['notchedOutline'],\n input: ['input'],\n sectionsContainer: ['sectionsContainer'],\n sectionContent: ['sectionContent'],\n sectionBefore: ['sectionBefore'],\n sectionAfter: ['sectionAfter'],\n activeBar: ['activeBar']\n };\n return composeClasses(slots, getPickersInputBaseUtilityClass, classes);\n};\nfunction resolveSectionElementWidth(sectionElement, rootRef, index, dateRangePosition) {\n if (sectionElement.content.id) {\n const activeSectionElements = rootRef.current?.querySelectorAll(`[data-sectionindex=\"${index}\"] [data-range-position=\"${dateRangePosition}\"]`);\n if (activeSectionElements) {\n return Array.from(activeSectionElements).reduce((currentActiveBarWidth, element) => {\n return currentActiveBarWidth + element.offsetWidth;\n }, 0);\n }\n }\n return 0;\n}\nfunction resolveSectionWidthAndOffsets(elements, rootRef) {\n let activeBarWidth = 0;\n const activeRangePosition = rootRef.current?.getAttribute('data-active-range-position');\n if (activeRangePosition === 'end') {\n for (let i = elements.length - 1; i >= elements.length / 2; i -= 1) {\n activeBarWidth += resolveSectionElementWidth(elements[i], rootRef, i, 'end');\n }\n } else {\n for (let i = 0; i < elements.length / 2; i += 1) {\n activeBarWidth += resolveSectionElementWidth(elements[i], rootRef, i, 'start');\n }\n }\n return {\n activeBarWidth,\n sectionOffsets: [rootRef.current?.querySelector(`[data-sectionindex=\"0\"]`)?.offsetLeft || 0, rootRef.current?.querySelector(`[data-sectionindex=\"${elements.length / 2}\"]`)?.offsetLeft || 0]\n };\n}\n\n/**\n * @ignore - internal component.\n */\nconst PickersInputBase = /*#__PURE__*/React.forwardRef(function PickersInputBase(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersInputBase'\n });\n const {\n elements,\n areAllSectionsEmpty,\n value,\n onChange,\n id,\n endAdornment,\n startAdornment,\n renderSuffix,\n slots,\n slotProps,\n contentEditable,\n tabIndex,\n onInput,\n onPaste,\n onKeyDown,\n name,\n readOnly,\n inputProps,\n inputRef,\n sectionListRef,\n onFocus,\n onBlur,\n classes: classesProp,\n ownerState: ownerStateProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerStateContext = usePickerTextFieldOwnerState();\n const rootRef = React.useRef(null);\n const activeBarRef = React.useRef(null);\n const sectionOffsetsRef = React.useRef([]);\n const handleRootRef = useForkRef(ref, rootRef);\n const handleInputRef = useForkRef(inputProps?.ref, inputRef);\n const muiFormControl = useFormControl();\n if (!muiFormControl) {\n throw new Error('MUI X: PickersInputBase should always be used inside a PickersTextField component');\n }\n const ownerState = ownerStateProp ?? ownerStateContext;\n const handleInputFocus = event => {\n muiFormControl.onFocus?.(event);\n onFocus?.(event);\n };\n const handleHiddenInputFocus = event => {\n handleInputFocus(event);\n };\n const handleKeyDown = event => {\n onKeyDown?.(event);\n if (event.key === 'Enter' && !event.defaultMuiPrevented) {\n // Do nothing if it's a multi input field\n if (rootRef.current?.dataset.multiInput) {\n return;\n }\n const closestForm = rootRef.current?.closest('form');\n const submitTrigger = closestForm?.querySelector('[type=\"submit\"]');\n if (!closestForm || !submitTrigger) {\n // do nothing if there is no form or no submit button (trigger)\n return;\n }\n event.preventDefault();\n // native input trigger submit with the `submitter` field set\n closestForm.requestSubmit(submitTrigger);\n }\n };\n const handleInputBlur = event => {\n muiFormControl.onBlur?.(event);\n onBlur?.(event);\n };\n React.useEffect(() => {\n if (muiFormControl) {\n muiFormControl.setAdornedStart(Boolean(startAdornment));\n }\n }, [muiFormControl, startAdornment]);\n React.useEffect(() => {\n if (!muiFormControl) {\n return;\n }\n if (areAllSectionsEmpty) {\n muiFormControl.onEmpty();\n } else {\n muiFormControl.onFilled();\n }\n }, [muiFormControl, areAllSectionsEmpty]);\n const classes = useUtilityClasses(classesProp, ownerState);\n const InputRoot = slots?.root || PickersInputBaseRoot;\n const inputRootProps = useSlotProps({\n elementType: InputRoot,\n externalSlotProps: slotProps?.root,\n externalForwardedProps: other,\n additionalProps: {\n 'aria-invalid': muiFormControl.error,\n ref: handleRootRef\n },\n className: classes.root,\n ownerState\n });\n const InputSectionsContainer = slots?.input || PickersInputBaseSectionsContainer;\n const isSingleInputRange = elements.some(element => element.content['data-range-position'] !== undefined);\n React.useEffect(() => {\n if (!isSingleInputRange || !ownerState.isPickerOpen) {\n return;\n }\n const {\n activeBarWidth,\n sectionOffsets\n } = resolveSectionWidthAndOffsets(elements, rootRef);\n sectionOffsetsRef.current = [sectionOffsets[0], sectionOffsets[1]];\n if (activeBarRef.current) {\n activeBarRef.current.style.width = `${activeBarWidth}px`;\n }\n }, [elements, isSingleInputRange, ownerState.isPickerOpen]);\n return /*#__PURE__*/_jsxs(InputRoot, _extends({}, inputRootProps, {\n children: [startAdornment, /*#__PURE__*/_jsx(PickersSectionList, {\n sectionListRef: sectionListRef,\n elements: elements,\n contentEditable: contentEditable,\n tabIndex: tabIndex,\n className: classes.sectionsContainer,\n onFocus: handleInputFocus,\n onBlur: handleInputBlur,\n onInput: onInput,\n onPaste: onPaste,\n onKeyDown: handleKeyDown,\n slots: {\n root: InputSectionsContainer,\n section: PickersInputBaseSection,\n sectionContent: PickersInputBaseSectionContent,\n sectionSeparator: PickersInputBaseSectionSeparator\n },\n slotProps: {\n root: _extends({}, slotProps?.input, {\n ownerState\n }),\n sectionContent: {\n className: pickersInputBaseClasses.sectionContent\n },\n sectionSeparator: ({\n separatorPosition\n }) => ({\n className: separatorPosition === 'before' ? pickersInputBaseClasses.sectionBefore : pickersInputBaseClasses.sectionAfter\n })\n }\n }), endAdornment, renderSuffix ? renderSuffix(_extends({}, muiFormControl)) : null, /*#__PURE__*/_jsx(PickersInputBaseInput, _extends({\n name: name,\n className: classes.input,\n value: value,\n onChange: onChange,\n id: id,\n \"aria-hidden\": \"true\",\n tabIndex: -1,\n readOnly: readOnly,\n required: muiFormControl.required,\n disabled: muiFormControl.disabled\n // Hidden input element cannot be focused, trigger the root focus instead\n // This allows to maintain the ability to do `inputRef.current.focus()` to focus the field\n ,\n onFocus: handleHiddenInputFocus\n }, inputProps, {\n ref: handleInputRef\n })), isSingleInputRange && /*#__PURE__*/_jsx(PickersInputBaseActiveBar, {\n className: classes.activeBar,\n ref: activeBarRef,\n ownerState: {\n sectionOffsets: sectionOffsetsRef.current\n }\n })]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersInputBase.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Is `true` if the current values equals the empty value.\n * For a single item value, it means that `value === null`\n * For a range value, it means that `value === [null, null]`\n */\n areAllSectionsEmpty: PropTypes.bool.isRequired,\n className: PropTypes.string,\n component: PropTypes.elementType,\n /**\n * If true, the whole element is editable.\n * Useful when all the sections are selected.\n */\n contentEditable: PropTypes.bool.isRequired,\n 'data-multi-input': PropTypes.string,\n /**\n * The elements to render.\n * Each element contains the prop to edit a section of the value.\n */\n elements: PropTypes.arrayOf(PropTypes.shape({\n after: PropTypes.object.isRequired,\n before: PropTypes.object.isRequired,\n container: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n })).isRequired,\n endAdornment: PropTypes.node,\n fullWidth: PropTypes.bool,\n id: PropTypes.string,\n inputProps: PropTypes.object,\n inputRef: refType,\n label: PropTypes.node,\n margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n name: PropTypes.string,\n onChange: PropTypes.func.isRequired,\n onClick: PropTypes.func.isRequired,\n onInput: PropTypes.func.isRequired,\n onKeyDown: PropTypes.func.isRequired,\n onPaste: PropTypes.func.isRequired,\n ownerState: PropTypes /* @typescript-to-proptypes-ignore */.any,\n readOnly: PropTypes.bool,\n renderSuffix: PropTypes.func,\n sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n getRoot: PropTypes.func.isRequired,\n getSectionContainer: PropTypes.func.isRequired,\n getSectionContent: PropTypes.func.isRequired,\n getSectionIndexFromDOMElement: PropTypes.func.isRequired\n })\n })]),\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * The components used for each slot inside.\n *\n * @default {}\n */\n slots: PropTypes.object,\n startAdornment: PropTypes.node,\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n value: PropTypes.string.isRequired\n} : void 0;\nexport { PickersInputBase };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport { pickersInputBaseClasses } from \"../PickersInputBase/index.js\";\nexport function getPickersOutlinedInputUtilityClass(slot) {\n return generateUtilityClass('MuiPickersOutlinedInput', slot);\n}\nexport const pickersOutlinedInputClasses = _extends({}, pickersInputBaseClasses, generateUtilityClasses('MuiPickersOutlinedInput', ['root', 'notchedOutline', 'input']));","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"label\", \"notched\", \"shrink\"];\nimport * as React from 'react';\nimport { styled } from '@mui/material/styles';\nimport { shouldForwardProp } from '@mui/system/createStyled';\nimport { usePickerTextFieldOwnerState } from \"../usePickerTextFieldOwnerState.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst OutlineRoot = styled('fieldset', {\n name: 'MuiPickersOutlinedInput',\n slot: 'NotchedOutline'\n})(({\n theme\n}) => {\n const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';\n return {\n textAlign: 'left',\n position: 'absolute',\n bottom: 0,\n right: 0,\n top: -5,\n left: 0,\n margin: 0,\n padding: '0 8px',\n pointerEvents: 'none',\n borderRadius: 'inherit',\n borderStyle: 'solid',\n borderWidth: 1,\n overflow: 'hidden',\n minWidth: '0%',\n borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor\n };\n});\nconst OutlineLabel = styled('span')(({\n theme\n}) => ({\n fontFamily: theme.typography.fontFamily,\n fontSize: 'inherit'\n}));\nconst OutlineLegend = styled('legend', {\n shouldForwardProp: prop => shouldForwardProp(prop) && prop !== 'notched'\n})(({\n theme\n}) => ({\n float: 'unset',\n // Fix conflict with bootstrap\n width: 'auto',\n // Fix conflict with bootstrap\n overflow: 'hidden',\n // Fix Horizontal scroll when label too long\n variants: [{\n props: {\n inputHasLabel: false\n },\n style: {\n padding: 0,\n lineHeight: '11px',\n // sync with `height` in `legend` styles\n transition: theme.transitions.create('width', {\n duration: 150,\n easing: theme.transitions.easing.easeOut\n })\n }\n }, {\n props: {\n inputHasLabel: true\n },\n style: {\n display: 'block',\n // Fix conflict with normalize.css and sanitize.css\n padding: 0,\n height: 11,\n // sync with `lineHeight` in `legend` styles\n fontSize: '0.75em',\n visibility: 'hidden',\n maxWidth: 0.01,\n transition: theme.transitions.create('max-width', {\n duration: 50,\n easing: theme.transitions.easing.easeOut\n }),\n whiteSpace: 'nowrap',\n '& > span': {\n paddingLeft: 5,\n paddingRight: 5,\n display: 'inline-block',\n opacity: 0,\n visibility: 'visible'\n }\n }\n }, {\n props: {\n inputHasLabel: true,\n notched: true\n },\n style: {\n maxWidth: '100%',\n transition: theme.transitions.create('max-width', {\n duration: 100,\n easing: theme.transitions.easing.easeOut,\n delay: 50\n })\n }\n }]\n}));\n\n/**\n * @ignore - internal component.\n */\nexport default function Outline(props) {\n const {\n className,\n label,\n notched\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = usePickerTextFieldOwnerState();\n return /*#__PURE__*/_jsx(OutlineRoot, _extends({\n \"aria-hidden\": true,\n className: className\n }, other, {\n ownerState: ownerState,\n children: /*#__PURE__*/_jsx(OutlineLegend, {\n ownerState: ownerState,\n notched: notched,\n children: label ? /*#__PURE__*/_jsx(OutlineLabel, {\n children: label\n }) :\n /*#__PURE__*/\n // notranslate needed while Google Translate will not fix zero-width space issue\n _jsx(OutlineLabel, {\n className: \"notranslate\",\n children: \"\\u200B\"\n })\n })\n }));\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"label\", \"autoFocus\", \"ownerState\", \"classes\", \"notched\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useFormControl } from '@mui/material/FormControl';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { refType } from '@mui/utils';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { pickersOutlinedInputClasses, getPickersOutlinedInputUtilityClass } from \"./pickersOutlinedInputClasses.js\";\nimport Outline from \"./Outline.js\";\nimport { PickersInputBase } from \"../PickersInputBase/index.js\";\nimport { PickersInputBaseRoot, PickersInputBaseSectionsContainer } from \"../PickersInputBase/PickersInputBase.js\";\nimport { jsxs as _jsxs, jsx as _jsx } from \"react/jsx-runtime\";\nconst PickersOutlinedInputRoot = styled(PickersInputBaseRoot, {\n name: 'MuiPickersOutlinedInput',\n slot: 'Root'\n})(({\n theme\n}) => {\n const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';\n return {\n padding: '0 14px',\n borderRadius: (theme.vars || theme).shape.borderRadius,\n [`&:hover .${pickersOutlinedInputClasses.notchedOutline}`]: {\n borderColor: (theme.vars || theme).palette.text.primary\n },\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n [`&:hover .${pickersOutlinedInputClasses.notchedOutline}`]: {\n borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor\n }\n },\n [`&.${pickersOutlinedInputClasses.focused} .${pickersOutlinedInputClasses.notchedOutline}`]: {\n borderStyle: 'solid',\n borderWidth: 2\n },\n [`&.${pickersOutlinedInputClasses.disabled}`]: {\n [`& .${pickersOutlinedInputClasses.notchedOutline}`]: {\n borderColor: (theme.vars || theme).palette.action.disabled\n },\n '*': {\n color: (theme.vars || theme).palette.action.disabled\n }\n },\n [`&.${pickersOutlinedInputClasses.error} .${pickersOutlinedInputClasses.notchedOutline}`]: {\n borderColor: (theme.vars || theme).palette.error.main\n },\n variants: Object.keys((theme.vars ?? theme).palette)\n // @ts-ignore\n .filter(key => (theme.vars ?? theme).palette[key]?.main ?? false).map(color => ({\n props: {\n inputColor: color\n },\n style: {\n [`&.${pickersOutlinedInputClasses.focused}:not(.${pickersOutlinedInputClasses.error}) .${pickersOutlinedInputClasses.notchedOutline}`]: {\n // @ts-ignore\n borderColor: (theme.vars || theme).palette[color].main\n }\n }\n }))\n };\n});\nconst PickersOutlinedInputSectionsContainer = styled(PickersInputBaseSectionsContainer, {\n name: 'MuiPickersOutlinedInput',\n slot: 'SectionsContainer'\n})({\n padding: '16.5px 0',\n variants: [{\n props: {\n inputSize: 'small'\n },\n style: {\n padding: '8.5px 0'\n }\n }]\n});\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root'],\n notchedOutline: ['notchedOutline'],\n input: ['input']\n };\n const composedClasses = composeClasses(slots, getPickersOutlinedInputUtilityClass, classes);\n return _extends({}, classes, composedClasses);\n};\n\n/**\n * @ignore - internal component.\n */\nconst PickersOutlinedInput = /*#__PURE__*/React.forwardRef(function PickersOutlinedInput(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersOutlinedInput'\n });\n const {\n label,\n classes: classesProp,\n notched\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const muiFormControl = useFormControl();\n const classes = useUtilityClasses(classesProp);\n return /*#__PURE__*/_jsx(PickersInputBase, _extends({\n slots: {\n root: PickersOutlinedInputRoot,\n input: PickersOutlinedInputSectionsContainer\n },\n renderSuffix: state => /*#__PURE__*/_jsx(Outline, {\n shrink: Boolean(notched || state.adornedStart || state.focused || state.filled),\n notched: Boolean(notched || state.adornedStart || state.focused || state.filled),\n className: classes.notchedOutline,\n label: label != null && label !== '' && muiFormControl?.required ? /*#__PURE__*/_jsxs(React.Fragment, {\n children: [label, \"\\u2009\", '*']\n }) : label\n })\n }, other, {\n label: label,\n classes: classes,\n ref: ref\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersOutlinedInput.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Is `true` if the current values equals the empty value.\n * For a single item value, it means that `value === null`\n * For a range value, it means that `value === [null, null]`\n */\n areAllSectionsEmpty: PropTypes.bool.isRequired,\n className: PropTypes.string,\n component: PropTypes.elementType,\n /**\n * If true, the whole element is editable.\n * Useful when all the sections are selected.\n */\n contentEditable: PropTypes.bool.isRequired,\n 'data-multi-input': PropTypes.string,\n /**\n * The elements to render.\n * Each element contains the prop to edit a section of the value.\n */\n elements: PropTypes.arrayOf(PropTypes.shape({\n after: PropTypes.object.isRequired,\n before: PropTypes.object.isRequired,\n container: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n })).isRequired,\n endAdornment: PropTypes.node,\n fullWidth: PropTypes.bool,\n id: PropTypes.string,\n inputProps: PropTypes.object,\n inputRef: refType,\n label: PropTypes.node,\n margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n name: PropTypes.string,\n notched: PropTypes.bool,\n onChange: PropTypes.func.isRequired,\n onClick: PropTypes.func.isRequired,\n onInput: PropTypes.func.isRequired,\n onKeyDown: PropTypes.func.isRequired,\n onPaste: PropTypes.func.isRequired,\n ownerState: PropTypes /* @typescript-to-proptypes-ignore */.any,\n readOnly: PropTypes.bool,\n renderSuffix: PropTypes.func,\n sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n getRoot: PropTypes.func.isRequired,\n getSectionContainer: PropTypes.func.isRequired,\n getSectionContent: PropTypes.func.isRequired,\n getSectionIndexFromDOMElement: PropTypes.func.isRequired\n })\n })]),\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * The components used for each slot inside.\n *\n * @default {}\n */\n slots: PropTypes.object,\n startAdornment: PropTypes.node,\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n value: PropTypes.string.isRequired\n} : void 0;\nexport { PickersOutlinedInput };\nPickersOutlinedInput.muiName = 'Input';","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport { pickersInputBaseClasses } from \"../PickersInputBase/index.js\";\nexport function getPickersFilledInputUtilityClass(slot) {\n return generateUtilityClass('MuiPickersFilledInput', slot);\n}\nexport const pickersFilledInputClasses = _extends({}, pickersInputBaseClasses, generateUtilityClasses('MuiPickersFilledInput', ['root', 'underline', 'input']));","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"label\", \"autoFocus\", \"disableUnderline\", \"hiddenLabel\", \"classes\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { shouldForwardProp } from '@mui/system';\nimport { refType } from '@mui/utils';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { pickersFilledInputClasses, getPickersFilledInputUtilityClass } from \"./pickersFilledInputClasses.js\";\nimport { PickersInputBase } from \"../PickersInputBase/index.js\";\nimport { PickersInputBaseRoot, PickersInputBaseSectionsContainer } from \"../PickersInputBase/PickersInputBase.js\";\nimport { usePickerTextFieldOwnerState } from \"../usePickerTextFieldOwnerState.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PickersFilledInputRoot = styled(PickersInputBaseRoot, {\n name: 'MuiPickersFilledInput',\n slot: 'Root',\n shouldForwardProp: prop => shouldForwardProp(prop) && prop !== 'disableUnderline'\n})(({\n theme\n}) => {\n const light = theme.palette.mode === 'light';\n const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';\n const backgroundColor = light ? 'rgba(0, 0, 0, 0.06)' : 'rgba(255, 255, 255, 0.09)';\n const hoverBackground = light ? 'rgba(0, 0, 0, 0.09)' : 'rgba(255, 255, 255, 0.13)';\n const disabledBackground = light ? 'rgba(0, 0, 0, 0.12)' : 'rgba(255, 255, 255, 0.12)';\n return {\n backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor,\n borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,\n borderTopRightRadius: (theme.vars || theme).shape.borderRadius,\n transition: theme.transitions.create('background-color', {\n duration: theme.transitions.duration.shorter,\n easing: theme.transitions.easing.easeOut\n }),\n '&:hover': {\n backgroundColor: theme.vars ? theme.vars.palette.FilledInput.hoverBg : hoverBackground,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor\n }\n },\n [`&.${pickersFilledInputClasses.focused}`]: {\n backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor\n },\n [`&.${pickersFilledInputClasses.disabled}`]: {\n backgroundColor: theme.vars ? theme.vars.palette.FilledInput.disabledBg : disabledBackground\n },\n variants: [...Object.keys((theme.vars ?? theme).palette)\n // @ts-ignore\n .filter(key => (theme.vars ?? theme).palette[key].main).map(color => ({\n props: {\n inputColor: color,\n disableUnderline: false\n },\n style: {\n '&::after': {\n // @ts-ignore\n borderBottom: `2px solid ${(theme.vars || theme).palette[color]?.main}`\n }\n }\n })), {\n props: {\n disableUnderline: false\n },\n style: {\n '&::after': {\n left: 0,\n bottom: 0,\n // Doing the other way around crash on IE11 \"''\" https://github.com/cssinjs/jss/issues/242\n content: '\"\"',\n position: 'absolute',\n right: 0,\n transform: 'scaleX(0)',\n transition: theme.transitions.create('transform', {\n duration: theme.transitions.duration.shorter,\n easing: theme.transitions.easing.easeOut\n }),\n pointerEvents: 'none' // Transparent to the hover style.\n },\n [`&.${pickersFilledInputClasses.focused}:after`]: {\n // translateX(0) is a workaround for Safari transform scale bug\n // See https://github.com/mui/material-ui/issues/31766\n transform: 'scaleX(1) translateX(0)'\n },\n [`&.${pickersFilledInputClasses.error}`]: {\n '&:before, &:after': {\n borderBottomColor: (theme.vars || theme).palette.error.main\n }\n },\n '&::before': {\n borderBottom: `1px solid ${theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})` : bottomLineColor}`,\n left: 0,\n bottom: 0,\n // Doing the other way around crash on IE11 \"''\" https://github.com/cssinjs/jss/issues/242\n content: '\"\\\\00a0\"',\n position: 'absolute',\n right: 0,\n transition: theme.transitions.create('border-bottom-color', {\n duration: theme.transitions.duration.shorter\n }),\n pointerEvents: 'none' // Transparent to the hover style.\n },\n [`&:hover:not(.${pickersFilledInputClasses.disabled}, .${pickersFilledInputClasses.error}):before`]: {\n borderBottom: `1px solid ${(theme.vars || theme).palette.text.primary}`\n },\n [`&.${pickersFilledInputClasses.disabled}:before`]: {\n borderBottomStyle: 'dotted'\n }\n }\n }, {\n props: {\n hasStartAdornment: true\n },\n style: {\n paddingLeft: 12\n }\n }, {\n props: {\n hasEndAdornment: true\n },\n style: {\n paddingRight: 12\n }\n }]\n };\n});\nconst PickersFilledSectionsContainer = styled(PickersInputBaseSectionsContainer, {\n name: 'MuiPickersFilledInput',\n slot: 'sectionsContainer',\n shouldForwardProp: prop => shouldForwardProp(prop) && prop !== 'hiddenLabel'\n})({\n paddingTop: 25,\n paddingRight: 12,\n paddingBottom: 8,\n paddingLeft: 12,\n variants: [{\n props: {\n inputSize: 'small'\n },\n style: {\n paddingTop: 21,\n paddingBottom: 4\n }\n }, {\n props: {\n hasStartAdornment: true\n },\n style: {\n paddingLeft: 0\n }\n }, {\n props: {\n hasEndAdornment: true\n },\n style: {\n paddingRight: 0\n }\n }, {\n props: {\n hiddenLabel: true\n },\n style: {\n paddingTop: 16,\n paddingBottom: 17\n }\n }, {\n props: {\n hiddenLabel: true,\n inputSize: 'small'\n },\n style: {\n paddingTop: 8,\n paddingBottom: 9\n }\n }]\n});\nconst useUtilityClasses = (classes, ownerState) => {\n const {\n inputHasUnderline\n } = ownerState;\n const slots = {\n root: ['root', inputHasUnderline && 'underline'],\n input: ['input']\n };\n const composedClasses = composeClasses(slots, getPickersFilledInputUtilityClass, classes);\n return _extends({}, classes, composedClasses);\n};\n\n/**\n * @ignore - internal component.\n */\nconst PickersFilledInput = /*#__PURE__*/React.forwardRef(function PickersFilledInput(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersFilledInput'\n });\n const {\n label,\n disableUnderline = false,\n hiddenLabel = false,\n classes: classesProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const pickerTextFieldOwnerState = usePickerTextFieldOwnerState();\n const ownerState = _extends({}, pickerTextFieldOwnerState, {\n inputHasUnderline: !disableUnderline\n });\n const classes = useUtilityClasses(classesProp, ownerState);\n return /*#__PURE__*/_jsx(PickersInputBase, _extends({\n slots: {\n root: PickersFilledInputRoot,\n input: PickersFilledSectionsContainer\n },\n slotProps: {\n root: {\n disableUnderline\n },\n input: {\n hiddenLabel\n }\n }\n }, other, {\n label: label,\n classes: classes,\n ref: ref,\n ownerState: ownerState\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersFilledInput.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Is `true` if the current values equals the empty value.\n * For a single item value, it means that `value === null`\n * For a range value, it means that `value === [null, null]`\n */\n areAllSectionsEmpty: PropTypes.bool.isRequired,\n className: PropTypes.string,\n component: PropTypes.elementType,\n /**\n * If true, the whole element is editable.\n * Useful when all the sections are selected.\n */\n contentEditable: PropTypes.bool.isRequired,\n 'data-multi-input': PropTypes.string,\n disableUnderline: PropTypes.bool,\n /**\n * The elements to render.\n * Each element contains the prop to edit a section of the value.\n */\n elements: PropTypes.arrayOf(PropTypes.shape({\n after: PropTypes.object.isRequired,\n before: PropTypes.object.isRequired,\n container: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n })).isRequired,\n endAdornment: PropTypes.node,\n fullWidth: PropTypes.bool,\n hiddenLabel: PropTypes.bool,\n id: PropTypes.string,\n inputProps: PropTypes.object,\n inputRef: refType,\n label: PropTypes.node,\n margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n name: PropTypes.string,\n onChange: PropTypes.func.isRequired,\n onClick: PropTypes.func.isRequired,\n onInput: PropTypes.func.isRequired,\n onKeyDown: PropTypes.func.isRequired,\n onPaste: PropTypes.func.isRequired,\n ownerState: PropTypes /* @typescript-to-proptypes-ignore */.any,\n readOnly: PropTypes.bool,\n renderSuffix: PropTypes.func,\n sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n getRoot: PropTypes.func.isRequired,\n getSectionContainer: PropTypes.func.isRequired,\n getSectionContent: PropTypes.func.isRequired,\n getSectionIndexFromDOMElement: PropTypes.func.isRequired\n })\n })]),\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * The components used for each slot inside.\n *\n * @default {}\n */\n slots: PropTypes.object,\n startAdornment: PropTypes.node,\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n value: PropTypes.string.isRequired\n} : void 0;\nexport { PickersFilledInput };\nPickersFilledInput.muiName = 'Input';","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport { pickersInputBaseClasses } from \"../PickersInputBase/index.js\";\nexport function getPickersInputUtilityClass(slot) {\n return generateUtilityClass('MuiPickersFilledInput', slot);\n}\nexport const pickersInputClasses = _extends({}, pickersInputBaseClasses, generateUtilityClasses('MuiPickersInput', ['root', 'underline', 'input']));","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"label\", \"autoFocus\", \"disableUnderline\", \"ownerState\", \"classes\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { shouldForwardProp } from '@mui/system/createStyled';\nimport { refType } from '@mui/utils';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { pickersInputClasses, getPickersInputUtilityClass } from \"./pickersInputClasses.js\";\nimport { PickersInputBase } from \"../PickersInputBase/index.js\";\nimport { PickersInputBaseRoot } from \"../PickersInputBase/PickersInputBase.js\";\nimport { usePickerTextFieldOwnerState } from \"../usePickerTextFieldOwnerState.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PickersInputRoot = styled(PickersInputBaseRoot, {\n name: 'MuiPickersInput',\n slot: 'Root',\n shouldForwardProp: prop => shouldForwardProp(prop) && prop !== 'disableUnderline'\n})(({\n theme\n}) => {\n const light = theme.palette.mode === 'light';\n let bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';\n if (theme.vars) {\n bottomLineColor = `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})`;\n }\n return {\n 'label + &': {\n marginTop: 16\n },\n variants: [...Object.keys((theme.vars ?? theme).palette)\n // @ts-ignore\n .filter(key => (theme.vars ?? theme).palette[key].main).map(color => ({\n props: {\n inputColor: color\n },\n style: {\n '&::after': {\n // @ts-ignore\n borderBottom: `2px solid ${(theme.vars || theme).palette[color].main}`\n }\n }\n })), {\n props: {\n disableUnderline: false\n },\n style: {\n '&::after': {\n background: 'red',\n left: 0,\n bottom: 0,\n // Doing the other way around crash on IE11 \"''\" https://github.com/cssinjs/jss/issues/242\n content: '\"\"',\n position: 'absolute',\n right: 0,\n transform: 'scaleX(0)',\n transition: theme.transitions.create('transform', {\n duration: theme.transitions.duration.shorter,\n easing: theme.transitions.easing.easeOut\n }),\n pointerEvents: 'none' // Transparent to the hover style.\n },\n [`&.${pickersInputClasses.focused}:after`]: {\n // translateX(0) is a workaround for Safari transform scale bug\n // See https://github.com/mui/material-ui/issues/31766\n transform: 'scaleX(1) translateX(0)'\n },\n [`&.${pickersInputClasses.error}`]: {\n '&:before, &:after': {\n borderBottomColor: (theme.vars || theme).palette.error.main\n }\n },\n '&::before': {\n borderBottom: `1px solid ${bottomLineColor}`,\n left: 0,\n bottom: 0,\n // Doing the other way around crash on IE11 \"''\" https://github.com/cssinjs/jss/issues/242\n content: '\"\\\\00a0\"',\n position: 'absolute',\n right: 0,\n transition: theme.transitions.create('border-bottom-color', {\n duration: theme.transitions.duration.shorter\n }),\n pointerEvents: 'none' // Transparent to the hover style.\n },\n [`&:hover:not(.${pickersInputClasses.disabled}, .${pickersInputClasses.error}):before`]: {\n borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n borderBottom: `1px solid ${bottomLineColor}`\n }\n },\n [`&.${pickersInputClasses.disabled}:before`]: {\n borderBottomStyle: 'dotted'\n }\n }\n }]\n };\n});\nconst useUtilityClasses = (classes, ownerState) => {\n const {\n inputHasUnderline\n } = ownerState;\n const slots = {\n root: ['root', !inputHasUnderline && 'underline'],\n input: ['input']\n };\n const composedClasses = composeClasses(slots, getPickersInputUtilityClass, classes);\n return _extends({}, classes, composedClasses);\n};\n\n/**\n * @ignore - internal component.\n */\nconst PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersInput'\n });\n const {\n label,\n disableUnderline = false,\n classes: classesProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const pickerTextFieldOwnerState = usePickerTextFieldOwnerState();\n const ownerState = _extends({}, pickerTextFieldOwnerState, {\n inputHasUnderline: !disableUnderline\n });\n const classes = useUtilityClasses(classesProp, ownerState);\n return /*#__PURE__*/_jsx(PickersInputBase, _extends({\n slots: {\n root: PickersInputRoot\n },\n slotProps: {\n root: {\n disableUnderline\n }\n }\n }, other, {\n label: label,\n classes: classes,\n ref: ref\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersInput.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Is `true` if the current values equals the empty value.\n * For a single item value, it means that `value === null`\n * For a range value, it means that `value === [null, null]`\n */\n areAllSectionsEmpty: PropTypes.bool.isRequired,\n className: PropTypes.string,\n component: PropTypes.elementType,\n /**\n * If true, the whole element is editable.\n * Useful when all the sections are selected.\n */\n contentEditable: PropTypes.bool.isRequired,\n 'data-multi-input': PropTypes.string,\n disableUnderline: PropTypes.bool,\n /**\n * The elements to render.\n * Each element contains the prop to edit a section of the value.\n */\n elements: PropTypes.arrayOf(PropTypes.shape({\n after: PropTypes.object.isRequired,\n before: PropTypes.object.isRequired,\n container: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n })).isRequired,\n endAdornment: PropTypes.node,\n fullWidth: PropTypes.bool,\n id: PropTypes.string,\n inputProps: PropTypes.object,\n inputRef: refType,\n label: PropTypes.node,\n margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n name: PropTypes.string,\n onChange: PropTypes.func.isRequired,\n onClick: PropTypes.func.isRequired,\n onInput: PropTypes.func.isRequired,\n onKeyDown: PropTypes.func.isRequired,\n onPaste: PropTypes.func.isRequired,\n ownerState: PropTypes /* @typescript-to-proptypes-ignore */.any,\n readOnly: PropTypes.bool,\n renderSuffix: PropTypes.func,\n sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n getRoot: PropTypes.func.isRequired,\n getSectionContainer: PropTypes.func.isRequired,\n getSectionContent: PropTypes.func.isRequired,\n getSectionIndexFromDOMElement: PropTypes.func.isRequired\n })\n })]),\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * The components used for each slot inside.\n *\n * @default {}\n */\n slots: PropTypes.object,\n startAdornment: PropTypes.node,\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n value: PropTypes.string.isRequired\n} : void 0;\nexport { PickersInput };\nPickersInput.muiName = 'Input';","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"onFocus\", \"onBlur\", \"className\", \"classes\", \"color\", \"disabled\", \"error\", \"variant\", \"required\", \"InputProps\", \"inputProps\", \"inputRef\", \"sectionListRef\", \"elements\", \"areAllSectionsEmpty\", \"onClick\", \"onKeyDown\", \"onKeyUp\", \"onPaste\", \"onInput\", \"endAdornment\", \"startAdornment\", \"tabIndex\", \"contentEditable\", \"focused\", \"value\", \"onChange\", \"fullWidth\", \"id\", \"name\", \"helperText\", \"FormHelperTextProps\", \"label\", \"InputLabelProps\", \"data-active-range-position\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { refType } from '@mui/utils';\nimport useForkRef from '@mui/utils/useForkRef';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useId from '@mui/utils/useId';\nimport InputLabel from '@mui/material/InputLabel';\nimport FormHelperText from '@mui/material/FormHelperText';\nimport FormControl from '@mui/material/FormControl';\nimport { getPickersTextFieldUtilityClass } from \"./pickersTextFieldClasses.js\";\nimport { PickersOutlinedInput } from \"./PickersOutlinedInput/index.js\";\nimport { PickersFilledInput } from \"./PickersFilledInput/index.js\";\nimport { PickersInput } from \"./PickersInput/index.js\";\nimport { useFieldOwnerState } from \"../internals/hooks/useFieldOwnerState.js\";\nimport { PickerTextFieldOwnerStateContext } from \"./usePickerTextFieldOwnerState.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst VARIANT_COMPONENT = {\n standard: PickersInput,\n filled: PickersFilledInput,\n outlined: PickersOutlinedInput\n};\nconst PickersTextFieldRoot = styled(FormControl, {\n name: 'MuiPickersTextField',\n slot: 'Root'\n})({});\nconst useUtilityClasses = (classes, ownerState) => {\n const {\n isFieldFocused,\n isFieldDisabled,\n isFieldRequired\n } = ownerState;\n const slots = {\n root: ['root', isFieldFocused && !isFieldDisabled && 'focused', isFieldDisabled && 'disabled', isFieldRequired && 'required']\n };\n return composeClasses(slots, getPickersTextFieldUtilityClass, classes);\n};\nconst PickersTextField = /*#__PURE__*/React.forwardRef(function PickersTextField(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersTextField'\n });\n const {\n // Props used by FormControl\n onFocus,\n onBlur,\n className,\n classes: classesProp,\n color = 'primary',\n disabled = false,\n error = false,\n variant = 'outlined',\n required = false,\n // Props used by PickersInput\n InputProps,\n inputProps,\n inputRef,\n sectionListRef,\n elements,\n areAllSectionsEmpty,\n onClick,\n onKeyDown,\n onKeyUp,\n onPaste,\n onInput,\n endAdornment,\n startAdornment,\n tabIndex,\n contentEditable,\n focused,\n value,\n onChange,\n fullWidth,\n id: idProp,\n name,\n // Props used by FormHelperText\n helperText,\n FormHelperTextProps,\n // Props used by InputLabel\n label,\n InputLabelProps,\n // @ts-ignore\n 'data-active-range-position': dataActiveRangePosition\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootRef = React.useRef(null);\n const handleRootRef = useForkRef(ref, rootRef);\n const id = useId(idProp);\n const helperTextId = helperText && id ? `${id}-helper-text` : undefined;\n const inputLabelId = label && id ? `${id}-label` : undefined;\n const fieldOwnerState = useFieldOwnerState({\n disabled: props.disabled,\n required: props.required,\n readOnly: InputProps?.readOnly\n });\n const ownerState = React.useMemo(() => _extends({}, fieldOwnerState, {\n isFieldValueEmpty: areAllSectionsEmpty,\n isFieldFocused: focused ?? false,\n hasFieldError: error ?? false,\n inputSize: props.size ?? 'medium',\n inputColor: color ?? 'primary',\n isInputInFullWidth: fullWidth ?? false,\n hasStartAdornment: Boolean(startAdornment ?? InputProps?.startAdornment),\n hasEndAdornment: Boolean(endAdornment ?? InputProps?.endAdornment),\n inputHasLabel: !!label\n }), [fieldOwnerState, areAllSectionsEmpty, focused, error, props.size, color, fullWidth, startAdornment, endAdornment, InputProps?.startAdornment, InputProps?.endAdornment, label]);\n const classes = useUtilityClasses(classesProp, ownerState);\n const PickersInputComponent = VARIANT_COMPONENT[variant];\n return /*#__PURE__*/_jsx(PickerTextFieldOwnerStateContext.Provider, {\n value: ownerState,\n children: /*#__PURE__*/_jsxs(PickersTextFieldRoot, _extends({\n className: clsx(classes.root, className),\n ref: handleRootRef,\n focused: focused,\n disabled: disabled,\n variant: variant,\n error: error,\n color: color,\n fullWidth: fullWidth,\n required: required,\n ownerState: ownerState\n }, other, {\n children: [label != null && label !== '' && /*#__PURE__*/_jsx(InputLabel, _extends({\n htmlFor: id,\n id: inputLabelId\n }, InputLabelProps, {\n children: label\n })), /*#__PURE__*/_jsx(PickersInputComponent, _extends({\n elements: elements,\n areAllSectionsEmpty: areAllSectionsEmpty,\n onClick: onClick,\n onKeyDown: onKeyDown,\n onKeyUp: onKeyUp,\n onInput: onInput,\n onPaste: onPaste,\n onFocus: onFocus,\n onBlur: onBlur,\n endAdornment: endAdornment,\n startAdornment: startAdornment,\n tabIndex: tabIndex,\n contentEditable: contentEditable,\n value: value,\n onChange: onChange,\n id: id,\n fullWidth: fullWidth,\n inputProps: inputProps,\n inputRef: inputRef,\n sectionListRef: sectionListRef,\n label: label,\n name: name,\n role: \"group\",\n \"aria-labelledby\": inputLabelId,\n \"aria-describedby\": helperTextId,\n \"aria-live\": helperTextId ? 'polite' : undefined,\n \"data-active-range-position\": dataActiveRangePosition\n }, InputProps)), helperText && /*#__PURE__*/_jsx(FormHelperText, _extends({\n id: helperTextId\n }, FormHelperTextProps, {\n children: helperText\n }))]\n }))\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersTextField.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Is `true` if the current values equals the empty value.\n * For a single item value, it means that `value === null`\n * For a range value, it means that `value === [null, null]`\n */\n areAllSectionsEmpty: PropTypes.bool.isRequired,\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),\n component: PropTypes.elementType,\n /**\n * If true, the whole element is editable.\n * Useful when all the sections are selected.\n */\n contentEditable: PropTypes.bool.isRequired,\n disabled: PropTypes.bool.isRequired,\n /**\n * The elements to render.\n * Each element contains the prop to edit a section of the value.\n */\n elements: PropTypes.arrayOf(PropTypes.shape({\n after: PropTypes.object.isRequired,\n before: PropTypes.object.isRequired,\n container: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n })).isRequired,\n endAdornment: PropTypes.node,\n error: PropTypes.bool.isRequired,\n /**\n * If `true`, the component is displayed in focused state.\n */\n focused: PropTypes.bool,\n FormHelperTextProps: PropTypes.object,\n fullWidth: PropTypes.bool,\n /**\n * The helper text content.\n */\n helperText: PropTypes.node,\n /**\n * If `true`, the label is hidden.\n * This is used to increase density for a `FilledInput`.\n * Be sure to add `aria-label` to the `input` element.\n * @default false\n */\n hiddenLabel: PropTypes.bool,\n id: PropTypes.string,\n InputLabelProps: PropTypes.object,\n inputProps: PropTypes.object,\n /**\n * Props applied to the Input element.\n * It will be a [`FilledInput`](/material-ui/api/filled-input/),\n * [`OutlinedInput`](/material-ui/api/outlined-input/) or [`Input`](/material-ui/api/input/)\n * component depending on the `variant` prop value.\n */\n InputProps: PropTypes.object,\n inputRef: refType,\n label: PropTypes.node,\n /**\n * If `dense` or `normal`, will adjust vertical spacing of this and contained components.\n * @default 'none'\n */\n margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n name: PropTypes.string,\n onBlur: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n onClick: PropTypes.func.isRequired,\n onFocus: PropTypes.func.isRequired,\n onInput: PropTypes.func.isRequired,\n onKeyDown: PropTypes.func.isRequired,\n onPaste: PropTypes.func.isRequired,\n readOnly: PropTypes.bool,\n /**\n * If `true`, the label will indicate that the `input` is required.\n * @default false\n */\n required: PropTypes.bool,\n sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n getRoot: PropTypes.func.isRequired,\n getSectionContainer: PropTypes.func.isRequired,\n getSectionContent: PropTypes.func.isRequired,\n getSectionIndexFromDOMElement: PropTypes.func.isRequired\n })\n })]),\n /**\n * The size of the component.\n * @default 'medium'\n */\n size: PropTypes.oneOf(['medium', 'small']),\n startAdornment: PropTypes.node,\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n value: PropTypes.string.isRequired,\n /**\n * The variant to use.\n * @default 'outlined'\n */\n variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport { PickersTextField };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"enableAccessibleFieldDOMStructure\"],\n _excluded2 = [\"InputProps\", \"readOnly\", \"onClear\", \"clearable\", \"clearButtonPosition\", \"openPickerButtonPosition\", \"openPickerAriaLabel\"],\n _excluded3 = [\"onPaste\", \"onKeyDown\", \"inputMode\", \"readOnly\", \"InputProps\", \"inputProps\", \"inputRef\", \"onClear\", \"clearable\", \"clearButtonPosition\", \"openPickerButtonPosition\", \"openPickerAriaLabel\"],\n _excluded4 = [\"ownerState\"],\n _excluded5 = [\"ownerState\"],\n _excluded6 = [\"ownerState\"],\n _excluded7 = [\"ownerState\"],\n _excluded8 = [\"InputProps\", \"inputProps\"];\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useForkRef from '@mui/utils/useForkRef';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport MuiTextField from '@mui/material/TextField';\nimport MuiIconButton from '@mui/material/IconButton';\nimport MuiInputAdornment from '@mui/material/InputAdornment';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport { useFieldOwnerState } from \"../hooks/useFieldOwnerState.js\";\nimport { usePickerTranslations } from \"../../hooks/index.js\";\nimport { ClearIcon as MuiClearIcon } from \"../../icons/index.js\";\nimport { useNullablePickerContext } from \"../hooks/useNullablePickerContext.js\";\nimport { PickersTextField } from \"../../PickersTextField/index.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const cleanFieldResponse = _ref => {\n let {\n enableAccessibleFieldDOMStructure\n } = _ref,\n fieldResponse = _objectWithoutPropertiesLoose(_ref, _excluded);\n if (enableAccessibleFieldDOMStructure) {\n const {\n InputProps,\n readOnly,\n onClear,\n clearable,\n clearButtonPosition,\n openPickerButtonPosition,\n openPickerAriaLabel\n } = fieldResponse,\n other = _objectWithoutPropertiesLoose(fieldResponse, _excluded2);\n return {\n clearable,\n onClear,\n clearButtonPosition,\n openPickerButtonPosition,\n openPickerAriaLabel,\n textFieldProps: _extends({}, other, {\n InputProps: _extends({}, InputProps ?? {}, {\n readOnly\n })\n })\n };\n }\n const {\n onPaste,\n onKeyDown,\n inputMode,\n readOnly,\n InputProps,\n inputProps,\n inputRef,\n onClear,\n clearable,\n clearButtonPosition,\n openPickerButtonPosition,\n openPickerAriaLabel\n } = fieldResponse,\n other = _objectWithoutPropertiesLoose(fieldResponse, _excluded3);\n return {\n clearable,\n onClear,\n clearButtonPosition,\n openPickerButtonPosition,\n openPickerAriaLabel,\n textFieldProps: _extends({}, other, {\n InputProps: _extends({}, InputProps ?? {}, {\n readOnly\n }),\n inputProps: _extends({}, inputProps ?? {}, {\n inputMode,\n onPaste,\n onKeyDown,\n ref: inputRef\n })\n })\n };\n};\nexport const PickerFieldUIContext = /*#__PURE__*/React.createContext({\n slots: {},\n slotProps: {},\n inputRef: undefined\n});\n\n/**\n * Adds the button to open the Picker and the button to clear the value of the field.\n * @ignore - internal component.\n */\nexport function PickerFieldUI(props) {\n const {\n slots,\n slotProps,\n fieldResponse,\n defaultOpenPickerIcon\n } = props;\n const translations = usePickerTranslations();\n const pickerContext = useNullablePickerContext();\n const pickerFieldUIContext = React.useContext(PickerFieldUIContext);\n const {\n textFieldProps,\n onClear,\n clearable,\n openPickerAriaLabel,\n clearButtonPosition: clearButtonPositionProp = 'end',\n openPickerButtonPosition: openPickerButtonPositionProp = 'end'\n } = cleanFieldResponse(fieldResponse);\n const ownerState = useFieldOwnerState(textFieldProps);\n const handleClickOpeningButton = useEventCallback(event => {\n event.preventDefault();\n pickerContext?.setOpen(prev => !prev);\n });\n const triggerStatus = pickerContext ? pickerContext.triggerStatus : 'hidden';\n const clearButtonPosition = clearable ? clearButtonPositionProp : null;\n const openPickerButtonPosition = triggerStatus !== 'hidden' ? openPickerButtonPositionProp : null;\n const TextField = slots?.textField ?? pickerFieldUIContext.slots.textField ?? (fieldResponse.enableAccessibleFieldDOMStructure === false ? MuiTextField : PickersTextField);\n const InputAdornment = slots?.inputAdornment ?? pickerFieldUIContext.slots.inputAdornment ?? MuiInputAdornment;\n const _useSlotProps = useSlotProps({\n elementType: InputAdornment,\n externalSlotProps: mergeSlotProps(pickerFieldUIContext.slotProps.inputAdornment, slotProps?.inputAdornment),\n additionalProps: {\n position: 'start'\n },\n ownerState: _extends({}, ownerState, {\n position: 'start'\n })\n }),\n startInputAdornmentProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded4);\n const _useSlotProps2 = useSlotProps({\n elementType: InputAdornment,\n externalSlotProps: slotProps?.inputAdornment,\n additionalProps: {\n position: 'end'\n },\n ownerState: _extends({}, ownerState, {\n position: 'end'\n })\n }),\n endInputAdornmentProps = _objectWithoutPropertiesLoose(_useSlotProps2, _excluded5);\n const OpenPickerButton = pickerFieldUIContext.slots.openPickerButton ?? MuiIconButton;\n // We don't want to forward the `ownerState` to the `<IconButton />` component, see mui/material-ui#34056\n const _useSlotProps3 = useSlotProps({\n elementType: OpenPickerButton,\n externalSlotProps: pickerFieldUIContext.slotProps.openPickerButton,\n additionalProps: {\n disabled: triggerStatus === 'disabled',\n onClick: handleClickOpeningButton,\n 'aria-label': openPickerAriaLabel,\n edge:\n // open button is always rendered at the edge\n textFieldProps.variant !== 'standard' ? openPickerButtonPosition : false\n },\n ownerState\n }),\n openPickerButtonProps = _objectWithoutPropertiesLoose(_useSlotProps3, _excluded6);\n const OpenPickerIcon = pickerFieldUIContext.slots.openPickerIcon ?? defaultOpenPickerIcon;\n const openPickerIconProps = useSlotProps({\n elementType: OpenPickerIcon,\n externalSlotProps: pickerFieldUIContext.slotProps.openPickerIcon,\n ownerState\n });\n const ClearButton = slots?.clearButton ?? pickerFieldUIContext.slots.clearButton ?? MuiIconButton;\n // We don't want to forward the `ownerState` to the `<IconButton />` component, see mui/material-ui#34056\n const _useSlotProps4 = useSlotProps({\n elementType: ClearButton,\n externalSlotProps: mergeSlotProps(pickerFieldUIContext.slotProps.clearButton, slotProps?.clearButton),\n className: 'clearButton',\n additionalProps: {\n title: translations.fieldClearLabel,\n tabIndex: -1,\n onClick: onClear,\n disabled: fieldResponse.disabled || fieldResponse.readOnly,\n edge:\n // clear button can only be at the edge if it's position differs from the open button\n textFieldProps.variant !== 'standard' && clearButtonPosition !== openPickerButtonPosition ? clearButtonPosition : false\n },\n ownerState\n }),\n clearButtonProps = _objectWithoutPropertiesLoose(_useSlotProps4, _excluded7);\n const ClearIcon = slots?.clearIcon ?? pickerFieldUIContext.slots.clearIcon ?? MuiClearIcon;\n const clearIconProps = useSlotProps({\n elementType: ClearIcon,\n externalSlotProps: mergeSlotProps(pickerFieldUIContext.slotProps.clearIcon, slotProps?.clearIcon),\n additionalProps: {\n fontSize: 'small'\n },\n ownerState\n });\n textFieldProps.ref = useForkRef(textFieldProps.ref, pickerContext?.rootRef);\n if (!textFieldProps.InputProps) {\n textFieldProps.InputProps = {};\n }\n if (pickerContext) {\n textFieldProps.InputProps.ref = pickerContext.triggerRef;\n }\n if (!textFieldProps.InputProps?.startAdornment && (clearButtonPosition === 'start' || openPickerButtonPosition === 'start')) {\n textFieldProps.InputProps.startAdornment = /*#__PURE__*/_jsxs(InputAdornment, _extends({}, startInputAdornmentProps, {\n children: [openPickerButtonPosition === 'start' && /*#__PURE__*/_jsx(OpenPickerButton, _extends({}, openPickerButtonProps, {\n children: /*#__PURE__*/_jsx(OpenPickerIcon, _extends({}, openPickerIconProps))\n })), clearButtonPosition === 'start' && /*#__PURE__*/_jsx(ClearButton, _extends({}, clearButtonProps, {\n children: /*#__PURE__*/_jsx(ClearIcon, _extends({}, clearIconProps))\n }))]\n }));\n }\n if (!textFieldProps.InputProps?.endAdornment && (clearButtonPosition === 'end' || openPickerButtonPosition === 'end')) {\n textFieldProps.InputProps.endAdornment = /*#__PURE__*/_jsxs(InputAdornment, _extends({}, endInputAdornmentProps, {\n children: [clearButtonPosition === 'end' && /*#__PURE__*/_jsx(ClearButton, _extends({}, clearButtonProps, {\n children: /*#__PURE__*/_jsx(ClearIcon, _extends({}, clearIconProps))\n })), openPickerButtonPosition === 'end' && /*#__PURE__*/_jsx(OpenPickerButton, _extends({}, openPickerButtonProps, {\n children: /*#__PURE__*/_jsx(OpenPickerIcon, _extends({}, openPickerIconProps))\n }))]\n }));\n }\n if (clearButtonPosition != null) {\n textFieldProps.sx = [{\n '& .clearButton': {\n opacity: 1\n },\n '@media (pointer: fine)': {\n '& .clearButton': {\n opacity: 0\n },\n '&:hover, &:focus-within': {\n '.clearButton': {\n opacity: 1\n }\n }\n }\n }, ...(Array.isArray(textFieldProps.sx) ? textFieldProps.sx : [textFieldProps.sx])];\n }\n return /*#__PURE__*/_jsx(TextField, _extends({}, textFieldProps));\n}\nexport function mergeSlotProps(slotPropsA, slotPropsB) {\n if (!slotPropsA) {\n return slotPropsB;\n }\n if (!slotPropsB) {\n return slotPropsA;\n }\n return ownerState => {\n return _extends({}, resolveComponentProps(slotPropsB, ownerState), resolveComponentProps(slotPropsA, ownerState));\n };\n}\n\n/**\n * The `textField` slot props cannot be handled inside `PickerFieldUI` because it would be a breaking change to not pass the enriched props to `useField`.\n * Once the non-accessible DOM structure will be removed, we will be able to remove the `textField` slot and clean this logic.\n */\nexport function useFieldTextFieldProps(parameters) {\n const {\n ref,\n externalForwardedProps,\n slotProps\n } = parameters;\n const pickerFieldUIContext = React.useContext(PickerFieldUIContext);\n const pickerContext = useNullablePickerContext();\n const ownerState = useFieldOwnerState(externalForwardedProps);\n const {\n InputProps,\n inputProps\n } = externalForwardedProps,\n otherExternalForwardedProps = _objectWithoutPropertiesLoose(externalForwardedProps, _excluded8);\n const textFieldProps = useSlotProps({\n elementType: PickersTextField,\n externalSlotProps: mergeSlotProps(pickerFieldUIContext.slotProps.textField, slotProps?.textField),\n externalForwardedProps: otherExternalForwardedProps,\n additionalProps: {\n ref,\n sx: pickerContext?.rootSx,\n label: pickerContext?.label,\n name: pickerContext?.name,\n className: pickerContext?.rootClassName,\n inputRef: pickerFieldUIContext.inputRef\n },\n ownerState\n });\n\n // TODO: Remove when mui/material-ui#35088 will be merged\n textFieldProps.inputProps = _extends({}, inputProps, textFieldProps.inputProps);\n textFieldProps.InputProps = _extends({}, InputProps, textFieldProps.InputProps);\n return textFieldProps;\n}\nexport function PickerFieldUIContextProvider(props) {\n const {\n slots = {},\n slotProps = {},\n inputRef,\n children\n } = props;\n const contextValue = React.useMemo(() => ({\n inputRef,\n slots: {\n openPickerButton: slots.openPickerButton,\n openPickerIcon: slots.openPickerIcon,\n textField: slots.textField,\n inputAdornment: slots.inputAdornment,\n clearIcon: slots.clearIcon,\n clearButton: slots.clearButton\n },\n slotProps: {\n openPickerButton: slotProps.openPickerButton,\n openPickerIcon: slotProps.openPickerIcon,\n textField: slotProps.textField,\n inputAdornment: slotProps.inputAdornment,\n clearIcon: slotProps.clearIcon,\n clearButton: slotProps.clearButton\n }\n }), [inputRef, slots.openPickerButton, slots.openPickerIcon, slots.textField, slots.inputAdornment, slots.clearIcon, slots.clearButton, slotProps.openPickerButton, slotProps.openPickerIcon, slotProps.textField, slotProps.inputAdornment, slotProps.clearIcon, slotProps.clearButton]);\n return /*#__PURE__*/_jsx(PickerFieldUIContext.Provider, {\n value: contextValue,\n children: children\n });\n}","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"slots\", \"slotProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useThemeProps } from '@mui/material/styles';\nimport { refType } from '@mui/utils';\nimport { useDateField } from \"./useDateField.js\";\nimport { PickerFieldUI, useFieldTextFieldProps } from \"../internals/components/PickerFieldUI.js\";\nimport { CalendarIcon } from \"../icons/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Demos:\n *\n * - [DateField](http://mui.com/x/react-date-pickers/date-field/)\n * - [Fields](https://mui.com/x/react-date-pickers/fields/)\n *\n * API:\n *\n * - [DateField API](https://mui.com/x/api/date-pickers/date-field/)\n */\nconst DateField = /*#__PURE__*/React.forwardRef(function DateField(inProps, inRef) {\n const themeProps = useThemeProps({\n props: inProps,\n name: 'MuiDateField'\n });\n const {\n slots,\n slotProps\n } = themeProps,\n other = _objectWithoutPropertiesLoose(themeProps, _excluded);\n const textFieldProps = useFieldTextFieldProps({\n slotProps,\n ref: inRef,\n externalForwardedProps: other\n });\n const fieldResponse = useDateField(textFieldProps);\n return /*#__PURE__*/_jsx(PickerFieldUI, {\n slots: slots,\n slotProps: slotProps,\n fieldResponse: fieldResponse,\n defaultOpenPickerIcon: CalendarIcon\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? DateField.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * If `true`, the `input` element is focused during the first mount.\n * @default false\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, a clear button will be shown in the field allowing value clearing.\n * @default false\n */\n clearable: PropTypes.bool,\n /**\n * The position at which the clear button is placed.\n * If the field is not clearable, the button is not rendered.\n * @default 'end'\n */\n clearButtonPosition: PropTypes.oneOf(['end', 'start']),\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),\n component: PropTypes.elementType,\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the component is disabled.\n * When disabled, the value cannot be changed and no interaction is possible.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * @default true\n */\n enableAccessibleFieldDOMStructure: PropTypes.bool,\n /**\n * If `true`, the component is displayed in focused state.\n */\n focused: PropTypes.bool,\n /**\n * Format of the date when rendered in the input(s).\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.\n * @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n FormHelperTextProps: PropTypes.object,\n /**\n * If `true`, the input will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * The helper text content.\n */\n helperText: PropTypes.node,\n /**\n * If `true`, the label is hidden.\n * This is used to increase density for a `FilledInput`.\n * Be sure to add `aria-label` to the `input` element.\n * @default false\n */\n hiddenLabel: PropTypes.bool,\n /**\n * The id of the `input` element.\n * Use this prop to make `label` and `helperText` accessible for screen readers.\n */\n id: PropTypes.string,\n /**\n * Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.\n * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.\n * @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n InputLabelProps: PropTypes.object,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n * @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n inputProps: PropTypes.object,\n /**\n * Props applied to the Input element.\n * It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),\n * [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)\n * component depending on the `variant` prop value.\n * @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n InputProps: PropTypes.object,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * If `dense` or `normal`, will adjust vertical spacing of this and contained components.\n * @default 'none'\n */\n margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Name attribute of the `input` element.\n */\n name: PropTypes.string,\n onBlur: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the clear button is clicked.\n */\n onClear: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n onFocus: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * The position at which the opening button is placed.\n * If there is no Picker to open, the button is not rendered\n * @default 'end'\n */\n openPickerButtonPosition: PropTypes.oneOf(['end', 'start']),\n /**\n * If `true`, the component is read-only.\n * When read-only, the value cannot be changed but the user can interact with the interface.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * The date used to generate a part of the new value that is not present in the format when both `value` and `defaultValue` are empty.\n * For example, on time fields it will be used to determine the date to set.\n * @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`. Value is rounded to the most granular section used.\n */\n referenceDate: PropTypes.object,\n /**\n * If `true`, the label is displayed as required and the `input` element is required.\n * @default false\n */\n required: PropTypes.bool,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @param {PickerValidDate} day The date to test.\n * @returns {boolean} If `true` the date will be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * Disable specific month.\n * @param {PickerValidDate} month The month to test.\n * @returns {boolean} If `true`, the month will be disabled.\n */\n shouldDisableMonth: PropTypes.func,\n /**\n * Disable specific year.\n * @param {PickerValidDate} year The year to test.\n * @returns {boolean} If `true`, the year will be disabled.\n */\n shouldDisableYear: PropTypes.func,\n /**\n * If `true`, the format will respect the leading zeroes (for example on dayjs, the format `M/D/YYYY` will render `8/16/2018`)\n * If `false`, the format will always add leading zeroes (for example on dayjs, the format `M/D/YYYY` will render `08/16/2018`)\n *\n * Warning n°1: Luxon is not able to respect the leading zeroes when using macro tokens (for example \"DD\"), so `shouldRespectLeadingZeros={true}` might lead to inconsistencies when using `AdapterLuxon`.\n *\n * Warning n°2: When `shouldRespectLeadingZeros={true}`, the field will add an invisible character on the sections containing a single digit to make sure `onChange` is fired.\n * If you need to get the clean value from the input, you can remove this character using `input.value.replace(/\\u200e/g, '')`.\n *\n * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.\n * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.\n *\n * @default false\n */\n shouldRespectLeadingZeros: PropTypes.bool,\n /**\n * The size of the component.\n * @default 'medium'\n */\n size: PropTypes.oneOf(['medium', 'small']),\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The ref object used to imperatively interact with the field.\n */\n unstableFieldRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The variant to use.\n * @default 'outlined'\n */\n variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport { DateField };","'use client';\n\nimport { useField } from \"../internals/hooks/useField/index.js\";\nimport { useTimeManager } from \"../managers/index.js\";\nexport const useTimeField = props => {\n const manager = useTimeManager(props);\n return useField({\n manager,\n props\n });\n};","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"slots\", \"slotProps\", \"InputProps\", \"inputProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useThemeProps } from '@mui/material/styles';\nimport { refType } from '@mui/utils';\nimport { useTimeField } from \"./useTimeField.js\";\nimport { PickerFieldUI, useFieldTextFieldProps } from \"../internals/components/PickerFieldUI.js\";\nimport { ClockIcon } from \"../icons/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Demos:\n *\n * - [TimeField](http://mui.com/x/react-date-pickers/time-field/)\n * - [Fields](https://mui.com/x/react-date-pickers/fields/)\n *\n * API:\n *\n * - [TimeField API](https://mui.com/x/api/date-pickers/time-field/)\n */\nconst TimeField = /*#__PURE__*/React.forwardRef(function TimeField(inProps, inRef) {\n const themeProps = useThemeProps({\n props: inProps,\n name: 'MuiTimeField'\n });\n const {\n slots,\n slotProps\n } = themeProps,\n other = _objectWithoutPropertiesLoose(themeProps, _excluded);\n const textFieldProps = useFieldTextFieldProps({\n slotProps,\n ref: inRef,\n externalForwardedProps: other\n });\n const fieldResponse = useTimeField(textFieldProps);\n return /*#__PURE__*/_jsx(PickerFieldUI, {\n slots: slots,\n slotProps: slotProps,\n fieldResponse: fieldResponse,\n defaultOpenPickerIcon: ClockIcon\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? TimeField.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * 12h/24h view for hour selection clock.\n * @default utils.is12HourCycleInCurrentLocale()\n */\n ampm: PropTypes.bool,\n /**\n * If `true`, the `input` element is focused during the first mount.\n * @default false\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, a clear button will be shown in the field allowing value clearing.\n * @default false\n */\n clearable: PropTypes.bool,\n /**\n * The position at which the clear button is placed.\n * If the field is not clearable, the button is not rendered.\n * @default 'end'\n */\n clearButtonPosition: PropTypes.oneOf(['end', 'start']),\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),\n component: PropTypes.elementType,\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the component is disabled.\n * When disabled, the value cannot be changed and no interaction is possible.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * Do not ignore date part when validating min/max time.\n * @default false\n */\n disableIgnoringDatePartForTimeValidation: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * @default true\n */\n enableAccessibleFieldDOMStructure: PropTypes.bool,\n /**\n * If `true`, the component is displayed in focused state.\n */\n focused: PropTypes.bool,\n /**\n * Format of the date when rendered in the input(s).\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.\n * @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n FormHelperTextProps: PropTypes.object,\n /**\n * If `true`, the input will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * The helper text content.\n */\n helperText: PropTypes.node,\n /**\n * If `true`, the label is hidden.\n * This is used to increase density for a `FilledInput`.\n * Be sure to add `aria-label` to the `input` element.\n * @default false\n */\n hiddenLabel: PropTypes.bool,\n /**\n * The id of the `input` element.\n * Use this prop to make `label` and `helperText` accessible for screen readers.\n */\n id: PropTypes.string,\n /**\n * Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.\n * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.\n * @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n InputLabelProps: PropTypes.object,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n * @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n inputProps: PropTypes.object,\n /**\n * Props applied to the Input element.\n * It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),\n * [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)\n * component depending on the `variant` prop value.\n * @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n InputProps: PropTypes.object,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * If `dense` or `normal`, will adjust vertical spacing of this and contained components.\n * @default 'none'\n */\n margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n /**\n * Maximal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n maxTime: PropTypes.object,\n /**\n * Minimal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n minTime: PropTypes.object,\n /**\n * Step over minutes.\n * @default 1\n */\n minutesStep: PropTypes.number,\n /**\n * Name attribute of the `input` element.\n */\n name: PropTypes.string,\n onBlur: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the clear button is clicked.\n */\n onClear: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n onFocus: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * The position at which the opening button is placed.\n * If there is no Picker to open, the button is not rendered\n * @default 'end'\n */\n openPickerButtonPosition: PropTypes.oneOf(['end', 'start']),\n /**\n * If `true`, the component is read-only.\n * When read-only, the value cannot be changed but the user can interact with the interface.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * The date used to generate a part of the new value that is not present in the format when both `value` and `defaultValue` are empty.\n * For example, on time fields it will be used to determine the date to set.\n * @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`. Value is rounded to the most granular section used.\n */\n referenceDate: PropTypes.object,\n /**\n * If `true`, the label is displayed as required and the `input` element is required.\n * @default false\n */\n required: PropTypes.bool,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific time.\n * @param {PickerValidDate} value The value to check.\n * @param {TimeView} view The clock type of the timeValue.\n * @returns {boolean} If `true` the time will be disabled.\n */\n shouldDisableTime: PropTypes.func,\n /**\n * If `true`, the format will respect the leading zeroes (for example on dayjs, the format `M/D/YYYY` will render `8/16/2018`)\n * If `false`, the format will always add leading zeroes (for example on dayjs, the format `M/D/YYYY` will render `08/16/2018`)\n *\n * Warning n°1: Luxon is not able to respect the leading zeroes when using macro tokens (for example \"DD\"), so `shouldRespectLeadingZeros={true}` might lead to inconsistencies when using `AdapterLuxon`.\n *\n * Warning n°2: When `shouldRespectLeadingZeros={true}`, the field will add an invisible character on the sections containing a single digit to make sure `onChange` is fired.\n * If you need to get the clean value from the input, you can remove this character using `input.value.replace(/\\u200e/g, '')`.\n *\n * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.\n * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.\n *\n * @default false\n */\n shouldRespectLeadingZeros: PropTypes.bool,\n /**\n * The size of the component.\n * @default 'medium'\n */\n size: PropTypes.oneOf(['medium', 'small']),\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The ref object used to imperatively interact with the field.\n */\n unstableFieldRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The variant to use.\n * @default 'outlined'\n */\n variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport { TimeField };","'use client';\n\nimport { useField } from \"../internals/hooks/useField/index.js\";\nimport { useDateTimeManager } from \"../managers/index.js\";\nexport const useDateTimeField = props => {\n const manager = useDateTimeManager(props);\n return useField({\n manager,\n props\n });\n};","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"slots\", \"slotProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useThemeProps } from '@mui/material/styles';\nimport { refType } from '@mui/utils';\nimport { useDateTimeField } from \"./useDateTimeField.js\";\nimport { PickerFieldUI, useFieldTextFieldProps } from \"../internals/components/PickerFieldUI.js\";\nimport { CalendarIcon } from \"../icons/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Demos:\n *\n * - [DateTimeField](http://mui.com/x/react-date-pickers/date-time-field/)\n * - [Fields](https://mui.com/x/react-date-pickers/fields/)\n *\n * API:\n *\n * - [DateTimeField API](https://mui.com/x/api/date-pickers/date-time-field/)\n */\nconst DateTimeField = /*#__PURE__*/React.forwardRef(function DateTimeField(inProps, inRef) {\n const themeProps = useThemeProps({\n props: inProps,\n name: 'MuiDateTimeField'\n });\n const {\n slots,\n slotProps\n } = themeProps,\n other = _objectWithoutPropertiesLoose(themeProps, _excluded);\n const textFieldProps = useFieldTextFieldProps({\n slotProps,\n ref: inRef,\n externalForwardedProps: other\n });\n const fieldResponse = useDateTimeField(textFieldProps);\n return /*#__PURE__*/_jsx(PickerFieldUI, {\n slots: slots,\n slotProps: slotProps,\n fieldResponse: fieldResponse,\n defaultOpenPickerIcon: CalendarIcon\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? DateTimeField.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * 12h/24h view for hour selection clock.\n * @default utils.is12HourCycleInCurrentLocale()\n */\n ampm: PropTypes.bool,\n /**\n * If `true`, the `input` element is focused during the first mount.\n * @default false\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, a clear button will be shown in the field allowing value clearing.\n * @default false\n */\n clearable: PropTypes.bool,\n /**\n * The position at which the clear button is placed.\n * If the field is not clearable, the button is not rendered.\n * @default 'end'\n */\n clearButtonPosition: PropTypes.oneOf(['end', 'start']),\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),\n component: PropTypes.elementType,\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the component is disabled.\n * When disabled, the value cannot be changed and no interaction is possible.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * Do not ignore date part when validating min/max time.\n * @default false\n */\n disableIgnoringDatePartForTimeValidation: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * @default true\n */\n enableAccessibleFieldDOMStructure: PropTypes.bool,\n /**\n * If `true`, the component is displayed in focused state.\n */\n focused: PropTypes.bool,\n /**\n * Format of the date when rendered in the input(s).\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.\n * @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n FormHelperTextProps: PropTypes.object,\n /**\n * If `true`, the input will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * The helper text content.\n */\n helperText: PropTypes.node,\n /**\n * If `true`, the label is hidden.\n * This is used to increase density for a `FilledInput`.\n * Be sure to add `aria-label` to the `input` element.\n * @default false\n */\n hiddenLabel: PropTypes.bool,\n /**\n * The id of the `input` element.\n * Use this prop to make `label` and `helperText` accessible for screen readers.\n */\n id: PropTypes.string,\n /**\n * Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.\n * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.\n * @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n InputLabelProps: PropTypes.object,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n * @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n inputProps: PropTypes.object,\n /**\n * Props applied to the Input element.\n * It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),\n * [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)\n * component depending on the `variant` prop value.\n * @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n InputProps: PropTypes.object,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * If `dense` or `normal`, will adjust vertical spacing of this and contained components.\n * @default 'none'\n */\n margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Maximal selectable moment of time with binding to date, to set max time in each day use `maxTime`.\n */\n maxDateTime: PropTypes.object,\n /**\n * Maximal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n maxTime: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Minimal selectable moment of time with binding to date, to set min time in each day use `minTime`.\n */\n minDateTime: PropTypes.object,\n /**\n * Minimal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n minTime: PropTypes.object,\n /**\n * Step over minutes.\n * @default 1\n */\n minutesStep: PropTypes.number,\n /**\n * Name attribute of the `input` element.\n */\n name: PropTypes.string,\n onBlur: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the clear button is clicked.\n */\n onClear: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n onFocus: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * The position at which the opening button is placed.\n * If there is no Picker to open, the button is not rendered\n * @default 'end'\n */\n openPickerButtonPosition: PropTypes.oneOf(['end', 'start']),\n /**\n * If `true`, the component is read-only.\n * When read-only, the value cannot be changed but the user can interact with the interface.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * The date used to generate a part of the new value that is not present in the format when both `value` and `defaultValue` are empty.\n * For example, on time fields it will be used to determine the date to set.\n * @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`. Value is rounded to the most granular section used.\n */\n referenceDate: PropTypes.object,\n /**\n * If `true`, the label is displayed as required and the `input` element is required.\n * @default false\n */\n required: PropTypes.bool,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @param {PickerValidDate} day The date to test.\n * @returns {boolean} If `true` the date will be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * Disable specific month.\n * @param {PickerValidDate} month The month to test.\n * @returns {boolean} If `true`, the month will be disabled.\n */\n shouldDisableMonth: PropTypes.func,\n /**\n * Disable specific time.\n * @param {PickerValidDate} value The value to check.\n * @param {TimeView} view The clock type of the timeValue.\n * @returns {boolean} If `true` the time will be disabled.\n */\n shouldDisableTime: PropTypes.func,\n /**\n * Disable specific year.\n * @param {PickerValidDate} year The year to test.\n * @returns {boolean} If `true`, the year will be disabled.\n */\n shouldDisableYear: PropTypes.func,\n /**\n * If `true`, the format will respect the leading zeroes (for example on dayjs, the format `M/D/YYYY` will render `8/16/2018`)\n * If `false`, the format will always add leading zeroes (for example on dayjs, the format `M/D/YYYY` will render `08/16/2018`)\n *\n * Warning n°1: Luxon is not able to respect the leading zeroes when using macro tokens (for example \"DD\"), so `shouldRespectLeadingZeros={true}` might lead to inconsistencies when using `AdapterLuxon`.\n *\n * Warning n°2: When `shouldRespectLeadingZeros={true}`, the field will add an invisible character on the sections containing a single digit to make sure `onChange` is fired.\n * If you need to get the clean value from the input, you can remove this character using `input.value.replace(/\\u200e/g, '')`.\n *\n * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.\n * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.\n *\n * @default false\n */\n shouldRespectLeadingZeros: PropTypes.bool,\n /**\n * The size of the component.\n * @default 'medium'\n */\n size: PropTypes.oneOf(['medium', 'small']),\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The ref object used to imperatively interact with the field.\n */\n unstableFieldRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The variant to use.\n * @default 'outlined'\n */\n variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport { DateTimeField };","'use client';\n\nimport * as React from 'react';\nimport { validateDate } from \"../validation/index.js\";\nimport { useLocalizationContext } from \"../internals/hooks/useUtils.js\";\nexport const useIsDateDisabled = ({\n shouldDisableDate,\n shouldDisableMonth,\n shouldDisableYear,\n minDate,\n maxDate,\n disableFuture,\n disablePast,\n timezone\n}) => {\n const adapter = useLocalizationContext();\n return React.useCallback(day => validateDate({\n adapter,\n value: day,\n timezone,\n props: {\n shouldDisableDate,\n shouldDisableMonth,\n shouldDisableYear,\n minDate,\n maxDate,\n disableFuture,\n disablePast\n }\n }) !== null, [adapter, shouldDisableDate, shouldDisableMonth, shouldDisableYear, minDate, maxDate, disableFuture, disablePast, timezone]);\n};","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { useIsDateDisabled } from \"./useIsDateDisabled.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { SECTION_TYPE_GRANULARITY } from \"../internals/utils/getDefaultReferenceDate.js\";\nimport { findClosestEnabledDate } from \"../internals/utils/date-utils.js\";\nconst createCalendarStateReducer = (reduceAnimations, utils) => (state, action) => {\n switch (action.type) {\n case 'setVisibleDate':\n return _extends({}, state, {\n slideDirection: action.direction,\n currentMonth: action.month,\n isMonthSwitchingAnimating: !utils.isSameMonth(action.month, state.currentMonth) && !reduceAnimations && !action.skipAnimation,\n focusedDay: action.focusedDay\n });\n case 'changeMonthTimezone':\n {\n const newTimezone = action.newTimezone;\n if (utils.getTimezone(state.currentMonth) === newTimezone) {\n return state;\n }\n let newCurrentMonth = utils.setTimezone(state.currentMonth, newTimezone);\n if (utils.getMonth(newCurrentMonth) !== utils.getMonth(state.currentMonth)) {\n newCurrentMonth = utils.setMonth(newCurrentMonth, utils.getMonth(state.currentMonth));\n }\n return _extends({}, state, {\n currentMonth: newCurrentMonth\n });\n }\n case 'finishMonthSwitchingAnimation':\n return _extends({}, state, {\n isMonthSwitchingAnimating: false\n });\n default:\n throw new Error('missing support');\n }\n};\nexport const useCalendarState = params => {\n const {\n value,\n referenceDate: referenceDateProp,\n disableFuture,\n disablePast,\n maxDate,\n minDate,\n onMonthChange,\n onYearChange,\n reduceAnimations,\n shouldDisableDate,\n timezone,\n getCurrentMonthFromVisibleDate\n } = params;\n const utils = useUtils();\n const reducerFn = React.useRef(createCalendarStateReducer(Boolean(reduceAnimations), utils)).current;\n const referenceDate = React.useMemo(() => {\n return singleItemValueManager.getInitialReferenceValue({\n value,\n utils,\n timezone,\n props: params,\n referenceDate: referenceDateProp,\n granularity: SECTION_TYPE_GRANULARITY.day\n });\n },\n // We want the `referenceDate` to update on prop and `timezone` change (https://github.com/mui/mui-x/issues/10804)\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [referenceDateProp, timezone]);\n const [calendarState, dispatch] = React.useReducer(reducerFn, {\n isMonthSwitchingAnimating: false,\n focusedDay: referenceDate,\n currentMonth: utils.startOfMonth(referenceDate),\n slideDirection: 'left'\n });\n const isDateDisabled = useIsDateDisabled({\n shouldDisableDate,\n minDate,\n maxDate,\n disableFuture,\n disablePast,\n timezone\n });\n\n // Ensure that `calendarState.currentMonth` timezone is updated when `referenceDate` (or timezone changes)\n // https://github.com/mui/mui-x/issues/10804\n React.useEffect(() => {\n dispatch({\n type: 'changeMonthTimezone',\n newTimezone: utils.getTimezone(referenceDate)\n });\n }, [referenceDate, utils]);\n const setVisibleDate = useEventCallback(({\n target,\n reason\n }) => {\n if (reason === 'cell-interaction' && calendarState.focusedDay != null && utils.isSameDay(target, calendarState.focusedDay)) {\n return;\n }\n const skipAnimation = reason === 'cell-interaction';\n let month;\n let focusedDay;\n if (reason === 'cell-interaction') {\n month = getCurrentMonthFromVisibleDate(target, calendarState.currentMonth);\n focusedDay = target;\n } else {\n month = utils.isSameMonth(target, calendarState.currentMonth) ? calendarState.currentMonth : utils.startOfMonth(target);\n focusedDay = target;\n\n // If the date is disabled, we try to find a non-disabled date inside the same month.\n if (isDateDisabled(focusedDay)) {\n const startOfMonth = utils.startOfMonth(target);\n const endOfMonth = utils.endOfMonth(target);\n focusedDay = findClosestEnabledDate({\n utils,\n date: focusedDay,\n minDate: utils.isBefore(minDate, startOfMonth) ? startOfMonth : minDate,\n maxDate: utils.isAfter(maxDate, endOfMonth) ? endOfMonth : maxDate,\n disablePast,\n disableFuture,\n isDateDisabled,\n timezone\n });\n }\n }\n const hasChangedMonth = !utils.isSameMonth(calendarState.currentMonth, month);\n const hasChangedYear = !utils.isSameYear(calendarState.currentMonth, month);\n if (hasChangedMonth) {\n onMonthChange?.(month);\n }\n if (hasChangedYear) {\n onYearChange?.(utils.startOfYear(month));\n }\n dispatch({\n type: 'setVisibleDate',\n month,\n direction: utils.isAfterDay(month, calendarState.currentMonth) ? 'left' : 'right',\n focusedDay: calendarState.focusedDay != null && focusedDay != null && utils.isSameDay(focusedDay, calendarState.focusedDay) ? calendarState.focusedDay : focusedDay,\n skipAnimation\n });\n });\n const onMonthSwitchingAnimationEnd = React.useCallback(() => {\n dispatch({\n type: 'finishMonthSwitchingAnimation'\n });\n }, []);\n return {\n referenceDate,\n calendarState,\n setVisibleDate,\n isDateDisabled,\n onMonthSwitchingAnimationEnd\n };\n};","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport const getPickersFadeTransitionGroupUtilityClass = slot => generateUtilityClass('MuiPickersFadeTransitionGroup', slot);\nexport const pickersFadeTransitionGroupClasses = generateUtilityClasses('MuiPickersFadeTransitionGroup', ['root']);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { TransitionGroup } from 'react-transition-group';\nimport Fade from '@mui/material/Fade';\nimport { styled, useTheme, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { getPickersFadeTransitionGroupUtilityClass } from \"./pickersFadeTransitionGroupClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getPickersFadeTransitionGroupUtilityClass, classes);\n};\nconst PickersFadeTransitionGroupRoot = styled(TransitionGroup, {\n name: 'MuiPickersFadeTransitionGroup',\n slot: 'Root'\n})({\n display: 'block',\n position: 'relative'\n});\n\n/**\n * @ignore - do not document.\n */\nexport function PickersFadeTransitionGroup(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersFadeTransitionGroup'\n });\n const {\n className,\n reduceAnimations,\n transKey,\n classes: classesProp\n } = props;\n const {\n children\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const classes = useUtilityClasses(classesProp);\n const theme = useTheme();\n if (reduceAnimations) {\n return children;\n }\n const ownerState = _extends({}, other);\n return /*#__PURE__*/_jsx(PickersFadeTransitionGroupRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n children: /*#__PURE__*/_jsx(Fade, {\n appear: false,\n mountOnEnter: true,\n unmountOnExit: true,\n timeout: {\n appear: theme.transitions.duration.enteringScreen,\n enter: theme.transitions.duration.enteringScreen,\n exit: 0\n },\n children: children\n }, transKey)\n });\n}","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport const getPickersSlideTransitionUtilityClass = slot => generateUtilityClass('MuiPickersSlideTransition', slot);\nexport const pickersSlideTransitionClasses = generateUtilityClasses('MuiPickersSlideTransition', ['root', 'slideEnter-left', 'slideEnter-right', 'slideEnterActive', 'slideExit', 'slideExitActiveLeft-left', 'slideExitActiveLeft-right']);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"reduceAnimations\", \"slideDirection\", \"transKey\", \"classes\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { styled, useTheme, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { CSSTransition, TransitionGroup } from 'react-transition-group';\nimport { getPickersSlideTransitionUtilityClass, pickersSlideTransitionClasses } from \"./pickersSlideTransitionClasses.js\";\nimport { usePickerPrivateContext } from \"../internals/hooks/usePickerPrivateContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = (classes, ownerState) => {\n const {\n slideDirection\n } = ownerState;\n const slots = {\n root: ['root'],\n exit: ['slideExit'],\n enterActive: ['slideEnterActive'],\n enter: [`slideEnter-${slideDirection}`],\n exitActive: [`slideExitActiveLeft-${slideDirection}`]\n };\n return composeClasses(slots, getPickersSlideTransitionUtilityClass, classes);\n};\nconst PickersSlideTransitionRoot = styled(TransitionGroup, {\n name: 'MuiPickersSlideTransition',\n slot: 'Root',\n overridesResolver: (_, styles) => [styles.root, {\n [`.${pickersSlideTransitionClasses['slideEnter-left']}`]: styles['slideEnter-left']\n }, {\n [`.${pickersSlideTransitionClasses['slideEnter-right']}`]: styles['slideEnter-right']\n }, {\n [`.${pickersSlideTransitionClasses.slideEnterActive}`]: styles.slideEnterActive\n }, {\n [`.${pickersSlideTransitionClasses.slideExit}`]: styles.slideExit\n }, {\n [`.${pickersSlideTransitionClasses['slideExitActiveLeft-left']}`]: styles['slideExitActiveLeft-left']\n }, {\n [`.${pickersSlideTransitionClasses['slideExitActiveLeft-right']}`]: styles['slideExitActiveLeft-right']\n }]\n})(({\n theme\n}) => {\n const slideTransition = theme.transitions.create('transform', {\n duration: theme.transitions.duration.complex,\n easing: 'cubic-bezier(0.35, 0.8, 0.4, 1)'\n });\n return {\n display: 'block',\n position: 'relative',\n overflowX: 'hidden',\n '& > *': {\n position: 'absolute',\n top: 0,\n right: 0,\n left: 0\n },\n [`& .${pickersSlideTransitionClasses['slideEnter-left']}`]: {\n willChange: 'transform',\n transform: 'translate(100%)',\n zIndex: 1\n },\n [`& .${pickersSlideTransitionClasses['slideEnter-right']}`]: {\n willChange: 'transform',\n transform: 'translate(-100%)',\n zIndex: 1\n },\n [`& .${pickersSlideTransitionClasses.slideEnterActive}`]: {\n transform: 'translate(0%)',\n transition: slideTransition\n },\n [`& .${pickersSlideTransitionClasses.slideExit}`]: {\n transform: 'translate(0%)'\n },\n [`& .${pickersSlideTransitionClasses['slideExitActiveLeft-left']}`]: {\n willChange: 'transform',\n transform: 'translate(-100%)',\n transition: slideTransition,\n zIndex: 0\n },\n [`& .${pickersSlideTransitionClasses['slideExitActiveLeft-right']}`]: {\n willChange: 'transform',\n transform: 'translate(100%)',\n transition: slideTransition,\n zIndex: 0\n }\n };\n});\n\n/**\n * @ignore - do not document.\n */\nexport function PickersSlideTransition(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersSlideTransition'\n });\n const {\n children,\n className,\n reduceAnimations,\n slideDirection,\n transKey,\n classes: classesProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n ownerState: pickerOwnerState\n } = usePickerPrivateContext();\n const ownerState = _extends({}, pickerOwnerState, {\n slideDirection\n });\n const classes = useUtilityClasses(classesProp, ownerState);\n const theme = useTheme();\n if (reduceAnimations) {\n return /*#__PURE__*/_jsx(\"div\", {\n className: clsx(classes.root, className),\n children: children\n });\n }\n const transitionClasses = {\n exit: classes.exit,\n enterActive: classes.enterActive,\n enter: classes.enter,\n exitActive: classes.exitActive\n };\n return /*#__PURE__*/_jsx(PickersSlideTransitionRoot, {\n className: clsx(classes.root, className),\n childFactory: element => /*#__PURE__*/React.cloneElement(element, {\n classNames: transitionClasses\n }),\n role: \"presentation\",\n ownerState: ownerState,\n children: /*#__PURE__*/_jsx(CSSTransition, _extends({\n mountOnEnter: true,\n unmountOnExit: true,\n timeout: theme.transitions.duration.complex,\n classNames: transitionClasses\n }, other, {\n children: children\n }), transKey)\n });\n}","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport const getDayCalendarUtilityClass = slot => generateUtilityClass('MuiDayCalendar', slot);\nexport const dayCalendarClasses = generateUtilityClasses('MuiDayCalendar', ['root', 'header', 'weekDayLabel', 'loadingContainer', 'slideTransition', 'monthContainer', 'weekContainer', 'weekNumberLabel', 'weekNumber']);","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"parentProps\", \"day\", \"focusedDay\", \"selectedDays\", \"isDateDisabled\", \"currentMonthNumber\", \"isViewFocused\"],\n _excluded2 = [\"ownerState\"];\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport Typography from '@mui/material/Typography';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport clsx from 'clsx';\nimport { PickersDay } from \"../PickersDay/index.js\";\nimport { usePickerTranslations } from \"../hooks/usePickerTranslations.js\";\nimport { useUtils, useNow } from \"../internals/hooks/useUtils.js\";\nimport { DAY_SIZE, DAY_MARGIN } from \"../internals/constants/dimensions.js\";\nimport { PickersSlideTransition } from \"./PickersSlideTransition.js\";\nimport { useIsDateDisabled } from \"./useIsDateDisabled.js\";\nimport { findClosestEnabledDate, getWeekdays } from \"../internals/utils/date-utils.js\";\nimport { getDayCalendarUtilityClass } from \"./dayCalendarClasses.js\";\nimport { usePickerDayOwnerState } from \"../PickersDay/usePickerDayOwnerState.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root'],\n header: ['header'],\n weekDayLabel: ['weekDayLabel'],\n loadingContainer: ['loadingContainer'],\n slideTransition: ['slideTransition'],\n monthContainer: ['monthContainer'],\n weekContainer: ['weekContainer'],\n weekNumberLabel: ['weekNumberLabel'],\n weekNumber: ['weekNumber']\n };\n return composeClasses(slots, getDayCalendarUtilityClass, classes);\n};\nconst weeksContainerHeight = (DAY_SIZE + DAY_MARGIN * 2) * 6;\nconst PickersCalendarDayRoot = styled('div', {\n name: 'MuiDayCalendar',\n slot: 'Root'\n})({});\nconst PickersCalendarDayHeader = styled('div', {\n name: 'MuiDayCalendar',\n slot: 'Header'\n})({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n});\nconst PickersCalendarWeekDayLabel = styled(Typography, {\n name: 'MuiDayCalendar',\n slot: 'WeekDayLabel'\n})(({\n theme\n}) => ({\n width: 36,\n height: 40,\n margin: '0 2px',\n textAlign: 'center',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n color: (theme.vars || theme).palette.text.secondary\n}));\nconst PickersCalendarWeekNumberLabel = styled(Typography, {\n name: 'MuiDayCalendar',\n slot: 'WeekNumberLabel'\n})(({\n theme\n}) => ({\n width: 36,\n height: 40,\n margin: '0 2px',\n textAlign: 'center',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n color: (theme.vars || theme).palette.text.disabled\n}));\nconst PickersCalendarWeekNumber = styled(Typography, {\n name: 'MuiDayCalendar',\n slot: 'WeekNumber'\n})(({\n theme\n}) => _extends({}, theme.typography.caption, {\n width: DAY_SIZE,\n height: DAY_SIZE,\n padding: 0,\n margin: `0 ${DAY_MARGIN}px`,\n color: (theme.vars || theme).palette.text.disabled,\n fontSize: '0.75rem',\n alignItems: 'center',\n justifyContent: 'center',\n display: 'inline-flex'\n}));\nconst PickersCalendarLoadingContainer = styled('div', {\n name: 'MuiDayCalendar',\n slot: 'LoadingContainer'\n})({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n minHeight: weeksContainerHeight\n});\nconst PickersCalendarSlideTransition = styled(PickersSlideTransition, {\n name: 'MuiDayCalendar',\n slot: 'SlideTransition'\n})({\n minHeight: weeksContainerHeight\n});\nconst PickersCalendarWeekContainer = styled('div', {\n name: 'MuiDayCalendar',\n slot: 'MonthContainer'\n})({\n overflow: 'hidden'\n});\nconst PickersCalendarWeek = styled('div', {\n name: 'MuiDayCalendar',\n slot: 'WeekContainer'\n})({\n margin: `${DAY_MARGIN}px 0`,\n display: 'flex',\n justifyContent: 'center'\n});\nfunction WrappedDay(_ref) {\n let {\n parentProps,\n day,\n focusedDay,\n selectedDays,\n isDateDisabled,\n currentMonthNumber,\n isViewFocused\n } = _ref,\n other = _objectWithoutPropertiesLoose(_ref, _excluded);\n const {\n disabled,\n disableHighlightToday,\n isMonthSwitchingAnimating,\n showDaysOutsideCurrentMonth,\n slots,\n slotProps,\n timezone\n } = parentProps;\n const utils = useUtils();\n const now = useNow(timezone);\n const isFocusableDay = focusedDay != null && utils.isSameDay(day, focusedDay);\n const isFocusedDay = isViewFocused && isFocusableDay;\n const isSelected = selectedDays.some(selectedDay => utils.isSameDay(selectedDay, day));\n const isToday = utils.isSameDay(day, now);\n const isDisabled = React.useMemo(() => disabled || isDateDisabled(day), [disabled, isDateDisabled, day]);\n const isOutsideCurrentMonth = React.useMemo(() => utils.getMonth(day) !== currentMonthNumber, [utils, day, currentMonthNumber]);\n const ownerState = usePickerDayOwnerState({\n day,\n selected: isSelected,\n disabled: isDisabled,\n today: isToday,\n outsideCurrentMonth: isOutsideCurrentMonth,\n disableMargin: undefined,\n // This prop can only be defined using slotProps.day so the ownerState for useSlotProps cannot have its value.\n disableHighlightToday,\n showDaysOutsideCurrentMonth\n });\n const Day = slots?.day ?? PickersDay;\n // We don't want to pass to ownerState down, to avoid re-rendering all the day whenever a prop changes.\n const _useSlotProps = useSlotProps({\n elementType: Day,\n externalSlotProps: slotProps?.day,\n additionalProps: _extends({\n disableHighlightToday,\n showDaysOutsideCurrentMonth,\n role: 'gridcell',\n isAnimating: isMonthSwitchingAnimating,\n // it is used in date range dragging logic by accessing `dataset.timestamp`\n 'data-timestamp': utils.toJsDate(day).valueOf()\n }, other),\n ownerState: _extends({}, ownerState, {\n day,\n isDayDisabled: isDisabled,\n isDaySelected: isSelected\n })\n }),\n dayProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2);\n const isFirstVisibleCell = React.useMemo(() => {\n const startOfMonth = utils.startOfMonth(utils.setMonth(day, currentMonthNumber));\n if (!showDaysOutsideCurrentMonth) {\n return utils.isSameDay(day, startOfMonth);\n }\n return utils.isSameDay(day, utils.startOfWeek(startOfMonth));\n }, [currentMonthNumber, day, showDaysOutsideCurrentMonth, utils]);\n const isLastVisibleCell = React.useMemo(() => {\n const endOfMonth = utils.endOfMonth(utils.setMonth(day, currentMonthNumber));\n if (!showDaysOutsideCurrentMonth) {\n return utils.isSameDay(day, endOfMonth);\n }\n return utils.isSameDay(day, utils.endOfWeek(endOfMonth));\n }, [currentMonthNumber, day, showDaysOutsideCurrentMonth, utils]);\n return /*#__PURE__*/_jsx(Day, _extends({}, dayProps, {\n day: day,\n disabled: isDisabled,\n autoFocus: !isOutsideCurrentMonth && isFocusedDay,\n today: isToday,\n outsideCurrentMonth: isOutsideCurrentMonth,\n isFirstVisibleCell: isFirstVisibleCell,\n isLastVisibleCell: isLastVisibleCell,\n selected: isSelected,\n tabIndex: isFocusableDay ? 0 : -1,\n \"aria-selected\": isSelected,\n \"aria-current\": isToday ? 'date' : undefined\n }));\n}\n\n/**\n * @ignore - do not document.\n */\nexport function DayCalendar(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiDayCalendar'\n });\n const utils = useUtils();\n const {\n onFocusedDayChange,\n className,\n classes: classesProp,\n currentMonth,\n selectedDays,\n focusedDay,\n loading,\n onSelectedDaysChange,\n onMonthSwitchingAnimationEnd,\n readOnly,\n reduceAnimations,\n renderLoading = () => /*#__PURE__*/_jsx(\"span\", {\n children: \"...\"\n }),\n slideDirection,\n TransitionProps,\n disablePast,\n disableFuture,\n minDate,\n maxDate,\n shouldDisableDate,\n shouldDisableMonth,\n shouldDisableYear,\n dayOfWeekFormatter = date => utils.format(date, 'weekdayShort').charAt(0).toUpperCase(),\n hasFocus,\n onFocusedViewChange,\n gridLabelId,\n displayWeekNumber,\n fixedWeekNumber,\n timezone\n } = props;\n const now = useNow(timezone);\n const classes = useUtilityClasses(classesProp);\n const isRtl = useRtl();\n const isDateDisabled = useIsDateDisabled({\n shouldDisableDate,\n shouldDisableMonth,\n shouldDisableYear,\n minDate,\n maxDate,\n disablePast,\n disableFuture,\n timezone\n });\n const translations = usePickerTranslations();\n const handleDaySelect = useEventCallback(day => {\n if (readOnly) {\n return;\n }\n onSelectedDaysChange(day);\n });\n const focusDay = day => {\n if (!isDateDisabled(day)) {\n onFocusedDayChange(day);\n onFocusedViewChange?.(true);\n }\n };\n const handleKeyDown = useEventCallback((event, day) => {\n switch (event.key) {\n case 'ArrowUp':\n focusDay(utils.addDays(day, -7));\n event.preventDefault();\n break;\n case 'ArrowDown':\n focusDay(utils.addDays(day, 7));\n event.preventDefault();\n break;\n case 'ArrowLeft':\n {\n const newFocusedDayDefault = utils.addDays(day, isRtl ? 1 : -1);\n const nextAvailableMonth = utils.addMonths(day, isRtl ? 1 : -1);\n const closestDayToFocus = findClosestEnabledDate({\n utils,\n date: newFocusedDayDefault,\n minDate: isRtl ? newFocusedDayDefault : utils.startOfMonth(nextAvailableMonth),\n maxDate: isRtl ? utils.endOfMonth(nextAvailableMonth) : newFocusedDayDefault,\n isDateDisabled,\n timezone\n });\n focusDay(closestDayToFocus || newFocusedDayDefault);\n event.preventDefault();\n break;\n }\n case 'ArrowRight':\n {\n const newFocusedDayDefault = utils.addDays(day, isRtl ? -1 : 1);\n const nextAvailableMonth = utils.addMonths(day, isRtl ? -1 : 1);\n const closestDayToFocus = findClosestEnabledDate({\n utils,\n date: newFocusedDayDefault,\n minDate: isRtl ? utils.startOfMonth(nextAvailableMonth) : newFocusedDayDefault,\n maxDate: isRtl ? newFocusedDayDefault : utils.endOfMonth(nextAvailableMonth),\n isDateDisabled,\n timezone\n });\n focusDay(closestDayToFocus || newFocusedDayDefault);\n event.preventDefault();\n break;\n }\n case 'Home':\n focusDay(utils.startOfWeek(day));\n event.preventDefault();\n break;\n case 'End':\n focusDay(utils.endOfWeek(day));\n event.preventDefault();\n break;\n case 'PageUp':\n focusDay(utils.addMonths(day, 1));\n event.preventDefault();\n break;\n case 'PageDown':\n focusDay(utils.addMonths(day, -1));\n event.preventDefault();\n break;\n default:\n break;\n }\n });\n const handleFocus = useEventCallback((event, day) => focusDay(day));\n const handleBlur = useEventCallback((event, day) => {\n if (focusedDay != null && utils.isSameDay(focusedDay, day)) {\n onFocusedViewChange?.(false);\n }\n });\n const currentMonthNumber = utils.getMonth(currentMonth);\n const currentYearNumber = utils.getYear(currentMonth);\n const validSelectedDays = React.useMemo(() => selectedDays.filter(day => !!day).map(day => utils.startOfDay(day)), [utils, selectedDays]);\n\n // need a new ref whenever the `key` of the transition changes: https://reactcommunity.org/react-transition-group/transition/#Transition-prop-nodeRef.\n const transitionKey = `${currentYearNumber}-${currentMonthNumber}`;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const slideNodeRef = React.useMemo(() => /*#__PURE__*/React.createRef(), [transitionKey]);\n const weeksToDisplay = React.useMemo(() => {\n const toDisplay = utils.getWeekArray(currentMonth);\n let nextMonth = utils.addMonths(currentMonth, 1);\n while (fixedWeekNumber && toDisplay.length < fixedWeekNumber) {\n const additionalWeeks = utils.getWeekArray(nextMonth);\n const hasCommonWeek = utils.isSameDay(toDisplay[toDisplay.length - 1][0], additionalWeeks[0][0]);\n additionalWeeks.slice(hasCommonWeek ? 1 : 0).forEach(week => {\n if (toDisplay.length < fixedWeekNumber) {\n toDisplay.push(week);\n }\n });\n nextMonth = utils.addMonths(nextMonth, 1);\n }\n return toDisplay;\n }, [currentMonth, fixedWeekNumber, utils]);\n return /*#__PURE__*/_jsxs(PickersCalendarDayRoot, {\n role: \"grid\",\n \"aria-labelledby\": gridLabelId,\n className: classes.root,\n children: [/*#__PURE__*/_jsxs(PickersCalendarDayHeader, {\n role: \"row\",\n className: classes.header,\n children: [displayWeekNumber && /*#__PURE__*/_jsx(PickersCalendarWeekNumberLabel, {\n variant: \"caption\",\n role: \"columnheader\",\n \"aria-label\": translations.calendarWeekNumberHeaderLabel,\n className: classes.weekNumberLabel,\n children: translations.calendarWeekNumberHeaderText\n }), getWeekdays(utils, now).map((weekday, i) => /*#__PURE__*/_jsx(PickersCalendarWeekDayLabel, {\n variant: \"caption\",\n role: \"columnheader\",\n \"aria-label\": utils.format(weekday, 'weekday'),\n className: classes.weekDayLabel,\n children: dayOfWeekFormatter(weekday)\n }, i.toString()))]\n }), loading ? /*#__PURE__*/_jsx(PickersCalendarLoadingContainer, {\n className: classes.loadingContainer,\n children: renderLoading()\n }) : /*#__PURE__*/_jsx(PickersCalendarSlideTransition, _extends({\n transKey: transitionKey,\n onExited: onMonthSwitchingAnimationEnd,\n reduceAnimations: reduceAnimations,\n slideDirection: slideDirection,\n className: clsx(className, classes.slideTransition)\n }, TransitionProps, {\n nodeRef: slideNodeRef,\n children: /*#__PURE__*/_jsx(PickersCalendarWeekContainer, {\n ref: slideNodeRef,\n role: \"rowgroup\",\n className: classes.monthContainer,\n children: weeksToDisplay.map((week, index) => /*#__PURE__*/_jsxs(PickersCalendarWeek, {\n role: \"row\",\n className: classes.weekContainer\n // fix issue of announcing row 1 as row 2\n // caused by week day labels row\n ,\n \"aria-rowindex\": index + 1,\n children: [displayWeekNumber && /*#__PURE__*/_jsx(PickersCalendarWeekNumber, {\n className: classes.weekNumber,\n role: \"rowheader\",\n \"aria-label\": translations.calendarWeekNumberAriaLabelText(utils.getWeekNumber(week[0])),\n children: translations.calendarWeekNumberText(utils.getWeekNumber(week[0]))\n }), week.map((day, dayIndex) => /*#__PURE__*/_jsx(WrappedDay, {\n parentProps: props,\n day: day,\n selectedDays: validSelectedDays,\n isViewFocused: hasFocus,\n focusedDay: focusedDay,\n onKeyDown: handleKeyDown,\n onFocus: handleFocus,\n onBlur: handleBlur,\n onDaySelect: handleDaySelect,\n isDateDisabled: isDateDisabled,\n currentMonthNumber: currentMonthNumber\n // fix issue of announcing column 1 as column 2 when `displayWeekNumber` is enabled\n ,\n \"aria-colindex\": dayIndex + 1\n }, day.toString()))]\n }, `week-${week[0]}`))\n })\n }))]\n });\n}","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getMonthCalendarUtilityClass(slot) {\n return generateUtilityClass('MuiMonthCalendar', slot);\n}\nexport const monthCalendarClasses = generateUtilityClasses('MuiMonthCalendar', ['root', 'button', 'disabled', 'selected']);","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"autoFocus\", \"classes\", \"disabled\", \"selected\", \"value\", \"onClick\", \"onKeyDown\", \"onFocus\", \"onBlur\", \"slots\", \"slotProps\"];\nimport * as React from 'react';\nimport { styled, alpha } from '@mui/material/styles';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport { usePickerPrivateContext } from \"../internals/hooks/usePickerPrivateContext.js\";\nimport { getMonthCalendarUtilityClass, monthCalendarClasses } from \"./monthCalendarClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = (classes, ownerState) => {\n const slots = {\n button: ['button', ownerState.isMonthDisabled && 'disabled', ownerState.isMonthSelected && 'selected']\n };\n return composeClasses(slots, getMonthCalendarUtilityClass, classes);\n};\nconst DefaultMonthButton = styled('button', {\n name: 'MuiMonthCalendar',\n slot: 'Button',\n overridesResolver: (_, styles) => [styles.button, {\n [`&.${monthCalendarClasses.disabled}`]: styles.disabled\n }, {\n [`&.${monthCalendarClasses.selected}`]: styles.selected\n }]\n})(({\n theme\n}) => _extends({\n color: 'unset',\n backgroundColor: 'transparent',\n border: 0,\n outline: 0\n}, theme.typography.subtitle1, {\n height: 36,\n width: 72,\n borderRadius: 18,\n cursor: 'pointer',\n '&:focus': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity)\n },\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity)\n },\n '&:disabled': {\n cursor: 'auto',\n pointerEvents: 'none'\n },\n [`&.${monthCalendarClasses.disabled}`]: {\n color: (theme.vars || theme).palette.text.secondary\n },\n [`&.${monthCalendarClasses.selected}`]: {\n color: (theme.vars || theme).palette.primary.contrastText,\n backgroundColor: (theme.vars || theme).palette.primary.main,\n '&:focus, &:hover': {\n backgroundColor: (theme.vars || theme).palette.primary.dark\n }\n }\n}));\n\n/**\n * @ignore - do not document.\n */\nexport const MonthCalendarButton = /*#__PURE__*/React.memo(function MonthCalendarButton(props) {\n const {\n autoFocus,\n classes: classesProp,\n disabled,\n selected,\n value,\n onClick,\n onKeyDown,\n onFocus,\n onBlur,\n slots,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ref = React.useRef(null);\n const {\n ownerState: pickerOwnerState\n } = usePickerPrivateContext();\n const ownerState = _extends({}, pickerOwnerState, {\n isMonthDisabled: disabled,\n isMonthSelected: selected\n });\n const classes = useUtilityClasses(classesProp, ownerState);\n\n // We can't forward the `autoFocus` to the button because it is a native button, not a MUI Button\n useEnhancedEffect(() => {\n if (autoFocus) {\n // `ref.current` being `null` would be a bug in MUI.\n ref.current?.focus();\n }\n }, [autoFocus]);\n const MonthButton = slots?.monthButton ?? DefaultMonthButton;\n const monthButtonProps = useSlotProps({\n elementType: MonthButton,\n externalSlotProps: slotProps?.monthButton,\n externalForwardedProps: other,\n additionalProps: {\n disabled,\n ref,\n type: 'button',\n role: 'radio',\n 'aria-checked': selected,\n onClick: event => onClick(event, value),\n onKeyDown: event => onKeyDown(event, value),\n onFocus: event => onFocus(event, value),\n onBlur: event => onBlur(event, value)\n },\n ownerState,\n className: classes.button\n });\n return /*#__PURE__*/_jsx(MonthButton, _extends({}, monthButtonProps));\n});","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"autoFocus\", \"className\", \"classes\", \"value\", \"defaultValue\", \"referenceDate\", \"disabled\", \"disableFuture\", \"disablePast\", \"maxDate\", \"minDate\", \"onChange\", \"shouldDisableMonth\", \"readOnly\", \"disableHighlightToday\", \"onMonthFocus\", \"hasFocus\", \"onFocusedViewChange\", \"monthsPerRow\", \"timezone\", \"gridLabelId\", \"slots\", \"slotProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { shouldForwardProp } from '@mui/system/createStyled';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { unstable_useControlled as useControlled, unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';\nimport { MonthCalendarButton } from \"./MonthCalendarButton.js\";\nimport { useUtils, useNow } from \"../internals/hooks/useUtils.js\";\nimport { getMonthCalendarUtilityClass } from \"./monthCalendarClasses.js\";\nimport { getMonthsInYear } from \"../internals/utils/date-utils.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { SECTION_TYPE_GRANULARITY } from \"../internals/utils/getDefaultReferenceDate.js\";\nimport { useControlledValue } from \"../internals/hooks/useControlledValue.js\";\nimport { DIALOG_WIDTH } from \"../internals/constants/dimensions.js\";\nimport { usePickerPrivateContext } from \"../internals/hooks/usePickerPrivateContext.js\";\nimport { useApplyDefaultValuesToDateValidationProps } from \"../managers/useDateManager.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getMonthCalendarUtilityClass, classes);\n};\nexport function useMonthCalendarDefaultizedProps(props, name) {\n const themeProps = useThemeProps({\n props,\n name\n });\n const validationProps = useApplyDefaultValuesToDateValidationProps(themeProps);\n return _extends({}, themeProps, validationProps, {\n monthsPerRow: themeProps.monthsPerRow ?? 3\n });\n}\nconst MonthCalendarRoot = styled('div', {\n name: 'MuiMonthCalendar',\n slot: 'Root',\n shouldForwardProp: prop => shouldForwardProp(prop) && prop !== 'monthsPerRow'\n})({\n display: 'flex',\n flexWrap: 'wrap',\n justifyContent: 'space-evenly',\n rowGap: 16,\n padding: '8px 0',\n width: DIALOG_WIDTH,\n // avoid padding increasing width over defined\n boxSizing: 'border-box',\n variants: [{\n props: {\n monthsPerRow: 3\n },\n style: {\n columnGap: 24\n }\n }, {\n props: {\n monthsPerRow: 4\n },\n style: {\n columnGap: 0\n }\n }]\n});\n/**\n * Demos:\n *\n * - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/)\n *\n * API:\n *\n * - [MonthCalendar API](https://mui.com/x/api/date-pickers/month-calendar/)\n */\nexport const MonthCalendar = /*#__PURE__*/React.forwardRef(function MonthCalendar(inProps, ref) {\n const props = useMonthCalendarDefaultizedProps(inProps, 'MuiMonthCalendar');\n const {\n autoFocus,\n className,\n classes: classesProp,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n disabled,\n disableFuture,\n disablePast,\n maxDate,\n minDate,\n onChange,\n shouldDisableMonth,\n readOnly,\n onMonthFocus,\n hasFocus,\n onFocusedViewChange,\n monthsPerRow,\n timezone: timezoneProp,\n gridLabelId,\n slots,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n value,\n handleValueChange,\n timezone\n } = useControlledValue({\n name: 'MonthCalendar',\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n onChange,\n valueManager: singleItemValueManager\n });\n const now = useNow(timezone);\n const isRtl = useRtl();\n const utils = useUtils();\n const {\n ownerState\n } = usePickerPrivateContext();\n const referenceDate = React.useMemo(() => singleItemValueManager.getInitialReferenceValue({\n value,\n utils,\n props,\n timezone,\n referenceDate: referenceDateProp,\n granularity: SECTION_TYPE_GRANULARITY.month\n }), [] // eslint-disable-line react-hooks/exhaustive-deps\n );\n const classes = useUtilityClasses(classesProp);\n const todayMonth = React.useMemo(() => utils.getMonth(now), [utils, now]);\n const selectedMonth = React.useMemo(() => {\n if (value != null) {\n return utils.getMonth(value);\n }\n return null;\n }, [value, utils]);\n const [focusedMonth, setFocusedMonth] = React.useState(() => selectedMonth || utils.getMonth(referenceDate));\n const [internalHasFocus, setInternalHasFocus] = useControlled({\n name: 'MonthCalendar',\n state: 'hasFocus',\n controlled: hasFocus,\n default: autoFocus ?? false\n });\n const changeHasFocus = useEventCallback(newHasFocus => {\n setInternalHasFocus(newHasFocus);\n if (onFocusedViewChange) {\n onFocusedViewChange(newHasFocus);\n }\n });\n const isMonthDisabled = React.useCallback(dateToValidate => {\n const firstEnabledMonth = utils.startOfMonth(disablePast && utils.isAfter(now, minDate) ? now : minDate);\n const lastEnabledMonth = utils.startOfMonth(disableFuture && utils.isBefore(now, maxDate) ? now : maxDate);\n const monthToValidate = utils.startOfMonth(dateToValidate);\n if (utils.isBefore(monthToValidate, firstEnabledMonth)) {\n return true;\n }\n if (utils.isAfter(monthToValidate, lastEnabledMonth)) {\n return true;\n }\n if (!shouldDisableMonth) {\n return false;\n }\n return shouldDisableMonth(monthToValidate);\n }, [disableFuture, disablePast, maxDate, minDate, now, shouldDisableMonth, utils]);\n const handleMonthSelection = useEventCallback((event, month) => {\n if (readOnly) {\n return;\n }\n const newDate = utils.setMonth(value ?? referenceDate, month);\n handleValueChange(newDate);\n });\n const focusMonth = useEventCallback(month => {\n if (!isMonthDisabled(utils.setMonth(value ?? referenceDate, month))) {\n setFocusedMonth(month);\n changeHasFocus(true);\n if (onMonthFocus) {\n onMonthFocus(month);\n }\n }\n });\n React.useEffect(() => {\n setFocusedMonth(prevFocusedMonth => selectedMonth !== null && prevFocusedMonth !== selectedMonth ? selectedMonth : prevFocusedMonth);\n }, [selectedMonth]);\n const handleKeyDown = useEventCallback((event, month) => {\n const monthsInYear = 12;\n const monthsInRow = 3;\n switch (event.key) {\n case 'ArrowUp':\n focusMonth((monthsInYear + month - monthsInRow) % monthsInYear);\n event.preventDefault();\n break;\n case 'ArrowDown':\n focusMonth((monthsInYear + month + monthsInRow) % monthsInYear);\n event.preventDefault();\n break;\n case 'ArrowLeft':\n focusMonth((monthsInYear + month + (isRtl ? 1 : -1)) % monthsInYear);\n event.preventDefault();\n break;\n case 'ArrowRight':\n focusMonth((monthsInYear + month + (isRtl ? -1 : 1)) % monthsInYear);\n event.preventDefault();\n break;\n default:\n break;\n }\n });\n const handleMonthFocus = useEventCallback((event, month) => {\n focusMonth(month);\n });\n const handleMonthBlur = useEventCallback((event, month) => {\n if (focusedMonth === month) {\n changeHasFocus(false);\n }\n });\n return /*#__PURE__*/_jsx(MonthCalendarRoot, _extends({\n ref: ref,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n role: \"radiogroup\",\n \"aria-labelledby\": gridLabelId,\n monthsPerRow: monthsPerRow\n }, other, {\n children: getMonthsInYear(utils, value ?? referenceDate).map(month => {\n const monthNumber = utils.getMonth(month);\n const monthText = utils.format(month, 'monthShort');\n const monthLabel = utils.format(month, 'month');\n const isSelected = monthNumber === selectedMonth;\n const isDisabled = disabled || isMonthDisabled(month);\n return /*#__PURE__*/_jsx(MonthCalendarButton, {\n selected: isSelected,\n value: monthNumber,\n onClick: handleMonthSelection,\n onKeyDown: handleKeyDown,\n autoFocus: internalHasFocus && monthNumber === focusedMonth,\n disabled: isDisabled,\n tabIndex: monthNumber === focusedMonth && !isDisabled ? 0 : -1,\n onFocus: handleMonthFocus,\n onBlur: handleMonthBlur,\n \"aria-current\": todayMonth === monthNumber ? 'date' : undefined,\n \"aria-label\": monthLabel,\n slots: slots,\n slotProps: slotProps,\n classes: classesProp,\n children: monthText\n }, monthText);\n })\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? MonthCalendar.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * The default selected value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the component is disabled.\n * When disabled, the value cannot be changed and no interaction is possible.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n gridLabelId: PropTypes.string,\n hasFocus: PropTypes.bool,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Months rendered per row.\n * @default 3\n */\n monthsPerRow: PropTypes.oneOf([3, 4]),\n /**\n * Callback fired when the value changes.\n * @param {PickerValidDate} value The new value.\n */\n onChange: PropTypes.func,\n onFocusedViewChange: PropTypes.func,\n onMonthFocus: PropTypes.func,\n /**\n * If `true`, the component is read-only.\n * When read-only, the value cannot be changed but the user can interact with the interface.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid month using the validation props, except callbacks such as `shouldDisableMonth`.\n */\n referenceDate: PropTypes.object,\n /**\n * Disable specific month.\n * @param {PickerValidDate} month The month to test.\n * @returns {boolean} If `true`, the month will be disabled.\n */\n shouldDisableMonth: PropTypes.func,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object\n} : void 0;","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getYearCalendarUtilityClass(slot) {\n return generateUtilityClass('MuiYearCalendar', slot);\n}\nexport const yearCalendarClasses = generateUtilityClasses('MuiYearCalendar', ['root', 'button', 'disabled', 'selected']);","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"autoFocus\", \"classes\", \"disabled\", \"selected\", \"value\", \"onClick\", \"onKeyDown\", \"onFocus\", \"onBlur\", \"slots\", \"slotProps\"];\nimport * as React from 'react';\nimport { styled, alpha } from '@mui/material/styles';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport { usePickerPrivateContext } from \"../internals/hooks/usePickerPrivateContext.js\";\nimport { getYearCalendarUtilityClass, yearCalendarClasses } from \"./yearCalendarClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = (classes, ownerState) => {\n const slots = {\n button: ['button', ownerState.isYearDisabled && 'disabled', ownerState.isYearSelected && 'selected']\n };\n return composeClasses(slots, getYearCalendarUtilityClass, classes);\n};\nconst DefaultYearButton = styled('button', {\n name: 'MuiYearCalendar',\n slot: 'Button',\n overridesResolver: (_, styles) => [styles.button, {\n [`&.${yearCalendarClasses.disabled}`]: styles.disabled\n }, {\n [`&.${yearCalendarClasses.selected}`]: styles.selected\n }]\n})(({\n theme\n}) => _extends({\n color: 'unset',\n backgroundColor: 'transparent',\n border: 0,\n outline: 0\n}, theme.typography.subtitle1, {\n height: 36,\n width: 72,\n borderRadius: 18,\n cursor: 'pointer',\n '&:focus': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.focusOpacity})` : alpha(theme.palette.action.active, theme.palette.action.focusOpacity)\n },\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity)\n },\n '&:disabled': {\n cursor: 'auto',\n pointerEvents: 'none'\n },\n [`&.${yearCalendarClasses.disabled}`]: {\n color: (theme.vars || theme).palette.text.secondary\n },\n [`&.${yearCalendarClasses.selected}`]: {\n color: (theme.vars || theme).palette.primary.contrastText,\n backgroundColor: (theme.vars || theme).palette.primary.main,\n '&:focus, &:hover': {\n backgroundColor: (theme.vars || theme).palette.primary.dark\n }\n }\n}));\n\n/**\n * @ignore - internal component.\n */\nexport const YearCalendarButton = /*#__PURE__*/React.memo(function YearCalendarButton(props) {\n const {\n autoFocus,\n classes: classesProp,\n disabled,\n selected,\n value,\n onClick,\n onKeyDown,\n onFocus,\n onBlur,\n slots,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ref = React.useRef(null);\n const {\n ownerState: pickerOwnerState\n } = usePickerPrivateContext();\n const ownerState = _extends({}, pickerOwnerState, {\n isYearDisabled: disabled,\n isYearSelected: selected\n });\n const classes = useUtilityClasses(classesProp, ownerState);\n\n // We can't forward the `autoFocus` to the button because it is a native button, not a MUI Button\n useEnhancedEffect(() => {\n if (autoFocus) {\n // `ref.current` being `null` would be a bug in MUI.\n ref.current?.focus();\n }\n }, [autoFocus]);\n const YearButton = slots?.yearButton ?? DefaultYearButton;\n const yearButtonProps = useSlotProps({\n elementType: YearButton,\n externalSlotProps: slotProps?.yearButton,\n externalForwardedProps: other,\n additionalProps: {\n disabled,\n ref,\n type: 'button',\n role: 'radio',\n 'aria-checked': selected,\n onClick: event => onClick(event, value),\n onKeyDown: event => onKeyDown(event, value),\n onFocus: event => onFocus(event, value),\n onBlur: event => onBlur(event, value)\n },\n ownerState,\n className: classes.button\n });\n return /*#__PURE__*/_jsx(YearButton, _extends({}, yearButtonProps));\n});","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"autoFocus\", \"className\", \"classes\", \"value\", \"defaultValue\", \"referenceDate\", \"disabled\", \"disableFuture\", \"disablePast\", \"maxDate\", \"minDate\", \"onChange\", \"readOnly\", \"shouldDisableYear\", \"disableHighlightToday\", \"onYearFocus\", \"hasFocus\", \"onFocusedViewChange\", \"yearsOrder\", \"yearsPerRow\", \"timezone\", \"gridLabelId\", \"slots\", \"slotProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { shouldForwardProp } from '@mui/system/createStyled';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { unstable_useForkRef as useForkRef, unstable_composeClasses as composeClasses, unstable_useControlled as useControlled, unstable_useEventCallback as useEventCallback } from '@mui/utils';\nimport { YearCalendarButton } from \"./YearCalendarButton.js\";\nimport { useUtils, useNow } from \"../internals/hooks/useUtils.js\";\nimport { getYearCalendarUtilityClass } from \"./yearCalendarClasses.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { SECTION_TYPE_GRANULARITY } from \"../internals/utils/getDefaultReferenceDate.js\";\nimport { useControlledValue } from \"../internals/hooks/useControlledValue.js\";\nimport { DIALOG_WIDTH, MAX_CALENDAR_HEIGHT } from \"../internals/constants/dimensions.js\";\nimport { usePickerPrivateContext } from \"../internals/hooks/usePickerPrivateContext.js\";\nimport { useApplyDefaultValuesToDateValidationProps } from \"../managers/useDateManager.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getYearCalendarUtilityClass, classes);\n};\nfunction useYearCalendarDefaultizedProps(props, name) {\n const themeProps = useThemeProps({\n props,\n name\n });\n const validationProps = useApplyDefaultValuesToDateValidationProps(themeProps);\n return _extends({}, themeProps, validationProps, {\n yearsPerRow: themeProps.yearsPerRow ?? 3,\n yearsOrder: themeProps.yearsOrder ?? 'asc'\n });\n}\nconst YearCalendarRoot = styled('div', {\n name: 'MuiYearCalendar',\n slot: 'Root',\n shouldForwardProp: prop => shouldForwardProp(prop) && prop !== 'yearsPerRow'\n})({\n display: 'flex',\n flexWrap: 'wrap',\n justifyContent: 'space-evenly',\n rowGap: 12,\n padding: '6px 0',\n overflowY: 'auto',\n height: '100%',\n width: DIALOG_WIDTH,\n maxHeight: MAX_CALENDAR_HEIGHT,\n // avoid padding increasing width over defined\n boxSizing: 'border-box',\n position: 'relative',\n variants: [{\n props: {\n yearsPerRow: 3\n },\n style: {\n columnGap: 24\n }\n }, {\n props: {\n yearsPerRow: 4\n },\n style: {\n columnGap: 0,\n padding: '0 2px'\n }\n }]\n});\nconst YearCalendarButtonFiller = styled('div', {\n name: 'MuiYearCalendar',\n slot: 'ButtonFiller'\n})({\n height: 36,\n width: 72\n});\n/**\n * Demos:\n *\n * - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/)\n *\n * API:\n *\n * - [YearCalendar API](https://mui.com/x/api/date-pickers/year-calendar/)\n */\nexport const YearCalendar = /*#__PURE__*/React.forwardRef(function YearCalendar(inProps, ref) {\n const props = useYearCalendarDefaultizedProps(inProps, 'MuiYearCalendar');\n const {\n autoFocus,\n className,\n classes: classesProp,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n disabled,\n disableFuture,\n disablePast,\n maxDate,\n minDate,\n onChange,\n readOnly,\n shouldDisableYear,\n onYearFocus,\n hasFocus,\n onFocusedViewChange,\n yearsOrder,\n yearsPerRow,\n timezone: timezoneProp,\n gridLabelId,\n slots,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n value,\n handleValueChange,\n timezone\n } = useControlledValue({\n name: 'YearCalendar',\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n onChange,\n valueManager: singleItemValueManager\n });\n const now = useNow(timezone);\n const isRtl = useRtl();\n const utils = useUtils();\n const {\n ownerState\n } = usePickerPrivateContext();\n const referenceDate = React.useMemo(() => singleItemValueManager.getInitialReferenceValue({\n value,\n utils,\n props,\n timezone,\n referenceDate: referenceDateProp,\n granularity: SECTION_TYPE_GRANULARITY.year\n }), [] // eslint-disable-line react-hooks/exhaustive-deps\n );\n const classes = useUtilityClasses(classesProp);\n const todayYear = React.useMemo(() => utils.getYear(now), [utils, now]);\n const selectedYear = React.useMemo(() => {\n if (value != null) {\n return utils.getYear(value);\n }\n return null;\n }, [value, utils]);\n const [focusedYear, setFocusedYear] = React.useState(() => selectedYear || utils.getYear(referenceDate));\n const [internalHasFocus, setInternalHasFocus] = useControlled({\n name: 'YearCalendar',\n state: 'hasFocus',\n controlled: hasFocus,\n default: autoFocus ?? false\n });\n const changeHasFocus = useEventCallback(newHasFocus => {\n setInternalHasFocus(newHasFocus);\n if (onFocusedViewChange) {\n onFocusedViewChange(newHasFocus);\n }\n });\n const isYearDisabled = React.useCallback(dateToValidate => {\n if (disablePast && utils.isBeforeYear(dateToValidate, now)) {\n return true;\n }\n if (disableFuture && utils.isAfterYear(dateToValidate, now)) {\n return true;\n }\n if (minDate && utils.isBeforeYear(dateToValidate, minDate)) {\n return true;\n }\n if (maxDate && utils.isAfterYear(dateToValidate, maxDate)) {\n return true;\n }\n if (!shouldDisableYear) {\n return false;\n }\n const yearToValidate = utils.startOfYear(dateToValidate);\n return shouldDisableYear(yearToValidate);\n }, [disableFuture, disablePast, maxDate, minDate, now, shouldDisableYear, utils]);\n const handleYearSelection = useEventCallback((event, year) => {\n if (readOnly) {\n return;\n }\n const newDate = utils.setYear(value ?? referenceDate, year);\n handleValueChange(newDate);\n });\n const focusYear = useEventCallback(year => {\n if (!isYearDisabled(utils.setYear(value ?? referenceDate, year))) {\n setFocusedYear(year);\n changeHasFocus(true);\n onYearFocus?.(year);\n }\n });\n React.useEffect(() => {\n setFocusedYear(prevFocusedYear => selectedYear !== null && prevFocusedYear !== selectedYear ? selectedYear : prevFocusedYear);\n }, [selectedYear]);\n const verticalDirection = yearsOrder !== 'desc' ? yearsPerRow * 1 : yearsPerRow * -1;\n const horizontalDirection = isRtl && yearsOrder === 'asc' || !isRtl && yearsOrder === 'desc' ? -1 : 1;\n const handleKeyDown = useEventCallback((event, year) => {\n switch (event.key) {\n case 'ArrowUp':\n focusYear(year - verticalDirection);\n event.preventDefault();\n break;\n case 'ArrowDown':\n focusYear(year + verticalDirection);\n event.preventDefault();\n break;\n case 'ArrowLeft':\n focusYear(year - horizontalDirection);\n event.preventDefault();\n break;\n case 'ArrowRight':\n focusYear(year + horizontalDirection);\n event.preventDefault();\n break;\n default:\n break;\n }\n });\n const handleYearFocus = useEventCallback((event, year) => {\n focusYear(year);\n });\n const handleYearBlur = useEventCallback((event, year) => {\n if (focusedYear === year) {\n changeHasFocus(false);\n }\n });\n const scrollerRef = React.useRef(null);\n const handleRef = useForkRef(ref, scrollerRef);\n React.useEffect(() => {\n if (autoFocus || scrollerRef.current === null) {\n return;\n }\n const tabbableButton = scrollerRef.current.querySelector('[tabindex=\"0\"]');\n if (!tabbableButton) {\n return;\n }\n\n // Taken from useScroll in x-data-grid, but vertically centered\n const offsetHeight = tabbableButton.offsetHeight;\n const offsetTop = tabbableButton.offsetTop;\n const clientHeight = scrollerRef.current.clientHeight;\n const scrollTop = scrollerRef.current.scrollTop;\n const elementBottom = offsetTop + offsetHeight;\n if (offsetHeight > clientHeight || offsetTop < scrollTop) {\n // Button already visible\n return;\n }\n scrollerRef.current.scrollTop = elementBottom - clientHeight / 2 - offsetHeight / 2;\n }, [autoFocus]);\n const yearRange = utils.getYearRange([minDate, maxDate]);\n if (yearsOrder === 'desc') {\n yearRange.reverse();\n }\n let fillerAmount = yearsPerRow - yearRange.length % yearsPerRow;\n if (fillerAmount === yearsPerRow) {\n fillerAmount = 0;\n }\n return /*#__PURE__*/_jsxs(YearCalendarRoot, _extends({\n ref: handleRef,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n role: \"radiogroup\",\n \"aria-labelledby\": gridLabelId,\n yearsPerRow: yearsPerRow\n }, other, {\n children: [yearRange.map(year => {\n const yearNumber = utils.getYear(year);\n const isSelected = yearNumber === selectedYear;\n const isDisabled = disabled || isYearDisabled(year);\n return /*#__PURE__*/_jsx(YearCalendarButton, {\n selected: isSelected,\n value: yearNumber,\n onClick: handleYearSelection,\n onKeyDown: handleKeyDown,\n autoFocus: internalHasFocus && yearNumber === focusedYear,\n disabled: isDisabled,\n tabIndex: yearNumber === focusedYear && !isDisabled ? 0 : -1,\n onFocus: handleYearFocus,\n onBlur: handleYearBlur,\n \"aria-current\": todayYear === yearNumber ? 'date' : undefined,\n slots: slots,\n slotProps: slotProps,\n classes: classesProp,\n children: utils.format(year, 'year')\n }, utils.format(year, 'year'));\n }), Array.from({\n length: fillerAmount\n }, (_, index) => /*#__PURE__*/_jsx(YearCalendarButtonFiller, {}, index))]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? YearCalendar.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * The default selected value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the component is disabled.\n * When disabled, the value cannot be changed and no interaction is possible.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n gridLabelId: PropTypes.string,\n hasFocus: PropTypes.bool,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Callback fired when the value changes.\n * @param {PickerValidDate} value The new value.\n */\n onChange: PropTypes.func,\n onFocusedViewChange: PropTypes.func,\n onYearFocus: PropTypes.func,\n /**\n * If `true`, the component is read-only.\n * When read-only, the value cannot be changed but the user can interact with the interface.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid year using the validation props, except callbacks such as `shouldDisableYear`.\n */\n referenceDate: PropTypes.object,\n /**\n * Disable specific year.\n * @param {PickerValidDate} year The year to test.\n * @returns {boolean} If `true`, the year will be disabled.\n */\n shouldDisableYear: PropTypes.func,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * Years are displayed in ascending (chronological) order by default.\n * If `desc`, years are displayed in descending order.\n * @default 'asc'\n */\n yearsOrder: PropTypes.oneOf(['asc', 'desc']),\n /**\n * Years rendered per row.\n * @default 3\n */\n yearsPerRow: PropTypes.oneOf([3, 4])\n} : void 0;","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport const getPickersCalendarHeaderUtilityClass = slot => generateUtilityClass('MuiPickersCalendarHeader', slot);\nexport const pickersCalendarHeaderClasses = generateUtilityClasses('MuiPickersCalendarHeader', ['root', 'labelContainer', 'label', 'switchViewButton', 'switchViewIcon']);","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"slots\", \"slotProps\", \"currentMonth\", \"disabled\", \"disableFuture\", \"disablePast\", \"maxDate\", \"minDate\", \"onMonthChange\", \"onViewChange\", \"view\", \"reduceAnimations\", \"views\", \"labelId\", \"className\", \"classes\", \"timezone\", \"format\"],\n _excluded2 = [\"ownerState\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport Fade from '@mui/material/Fade';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport IconButton from '@mui/material/IconButton';\nimport { usePickerTranslations } from \"../hooks/usePickerTranslations.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { PickersFadeTransitionGroup } from \"../DateCalendar/PickersFadeTransitionGroup.js\";\nimport { ArrowDropDownIcon } from \"../icons/index.js\";\nimport { PickersArrowSwitcher } from \"../internals/components/PickersArrowSwitcher/index.js\";\nimport { usePreviousMonthDisabled, useNextMonthDisabled } from \"../internals/hooks/date-helpers-hooks.js\";\nimport { getPickersCalendarHeaderUtilityClass, pickersCalendarHeaderClasses } from \"./pickersCalendarHeaderClasses.js\";\nimport { usePickerPrivateContext } from \"../internals/hooks/usePickerPrivateContext.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root'],\n labelContainer: ['labelContainer'],\n label: ['label'],\n switchViewButton: ['switchViewButton'],\n switchViewIcon: ['switchViewIcon']\n };\n return composeClasses(slots, getPickersCalendarHeaderUtilityClass, classes);\n};\nconst PickersCalendarHeaderRoot = styled('div', {\n name: 'MuiPickersCalendarHeader',\n slot: 'Root'\n})({\n display: 'flex',\n alignItems: 'center',\n marginTop: 12,\n marginBottom: 4,\n paddingLeft: 24,\n paddingRight: 12,\n // prevent jumping in safari\n maxHeight: 40,\n minHeight: 40\n});\nconst PickersCalendarHeaderLabelContainer = styled('div', {\n name: 'MuiPickersCalendarHeader',\n slot: 'LabelContainer'\n})(({\n theme\n}) => _extends({\n display: 'flex',\n overflow: 'hidden',\n alignItems: 'center',\n cursor: 'pointer',\n marginRight: 'auto'\n}, theme.typography.body1, {\n fontWeight: theme.typography.fontWeightMedium\n}));\nconst PickersCalendarHeaderLabel = styled('div', {\n name: 'MuiPickersCalendarHeader',\n slot: 'Label'\n})({\n marginRight: 6\n});\nconst PickersCalendarHeaderSwitchViewButton = styled(IconButton, {\n name: 'MuiPickersCalendarHeader',\n slot: 'SwitchViewButton'\n})({\n marginRight: 'auto',\n variants: [{\n props: {\n view: 'year'\n },\n style: {\n [`.${pickersCalendarHeaderClasses.switchViewIcon}`]: {\n transform: 'rotate(180deg)'\n }\n }\n }]\n});\nconst PickersCalendarHeaderSwitchViewIcon = styled(ArrowDropDownIcon, {\n name: 'MuiPickersCalendarHeader',\n slot: 'SwitchViewIcon'\n})(({\n theme\n}) => ({\n willChange: 'transform',\n transition: theme.transitions.create('transform'),\n transform: 'rotate(0deg)'\n}));\n/**\n * Demos:\n *\n * - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/)\n * - [DateRangeCalendar](https://mui.com/x/react-date-pickers/date-range-calendar/)\n * - [Custom slots and subcomponents](https://mui.com/x/react-date-pickers/custom-components/)\n *\n * API:\n *\n * - [PickersCalendarHeader API](https://mui.com/x/api/date-pickers/pickers-calendar-header/)\n */\nconst PickersCalendarHeader = /*#__PURE__*/React.forwardRef(function PickersCalendarHeader(inProps, ref) {\n const translations = usePickerTranslations();\n const utils = useUtils();\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersCalendarHeader'\n });\n const {\n slots,\n slotProps,\n currentMonth: month,\n disabled,\n disableFuture,\n disablePast,\n maxDate,\n minDate,\n onMonthChange,\n onViewChange,\n view,\n reduceAnimations,\n views,\n labelId,\n className,\n classes: classesProp,\n timezone,\n format = `${utils.formats.month} ${utils.formats.year}`\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n ownerState\n } = usePickerPrivateContext();\n const classes = useUtilityClasses(classesProp);\n const SwitchViewButton = slots?.switchViewButton ?? PickersCalendarHeaderSwitchViewButton;\n const switchViewButtonProps = useSlotProps({\n elementType: SwitchViewButton,\n externalSlotProps: slotProps?.switchViewButton,\n additionalProps: {\n size: 'small',\n 'aria-label': translations.calendarViewSwitchingButtonAriaLabel(view)\n },\n ownerState,\n className: classes.switchViewButton\n });\n const SwitchViewIcon = slots?.switchViewIcon ?? PickersCalendarHeaderSwitchViewIcon;\n // The spread is here to avoid this bug mui/material-ui#34056\n const _useSlotProps = useSlotProps({\n elementType: SwitchViewIcon,\n externalSlotProps: slotProps?.switchViewIcon,\n ownerState,\n className: classes.switchViewIcon\n }),\n switchViewIconProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2);\n const selectNextMonth = () => onMonthChange(utils.addMonths(month, 1));\n const selectPreviousMonth = () => onMonthChange(utils.addMonths(month, -1));\n const isNextMonthDisabled = useNextMonthDisabled(month, {\n disableFuture,\n maxDate,\n timezone\n });\n const isPreviousMonthDisabled = usePreviousMonthDisabled(month, {\n disablePast,\n minDate,\n timezone\n });\n const handleToggleView = () => {\n if (views.length === 1 || !onViewChange || disabled) {\n return;\n }\n if (views.length === 2) {\n onViewChange(views.find(el => el !== view) || views[0]);\n } else {\n // switching only between first 2\n const nextIndexToOpen = views.indexOf(view) !== 0 ? 0 : 1;\n onViewChange(views[nextIndexToOpen]);\n }\n };\n\n // No need to display more information\n if (views.length === 1 && views[0] === 'year') {\n return null;\n }\n const label = utils.formatByString(month, format);\n return /*#__PURE__*/_jsxs(PickersCalendarHeaderRoot, _extends({}, other, {\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ref: ref,\n children: [/*#__PURE__*/_jsxs(PickersCalendarHeaderLabelContainer, {\n role: \"presentation\",\n onClick: handleToggleView,\n ownerState: ownerState\n // putting this on the label item element below breaks when using transition\n ,\n \"aria-live\": \"polite\",\n className: classes.labelContainer,\n children: [/*#__PURE__*/_jsx(PickersFadeTransitionGroup, {\n reduceAnimations: reduceAnimations,\n transKey: label,\n children: /*#__PURE__*/_jsx(PickersCalendarHeaderLabel, {\n id: labelId,\n ownerState: ownerState,\n className: classes.label,\n children: label\n })\n }), views.length > 1 && !disabled && /*#__PURE__*/_jsx(SwitchViewButton, _extends({}, switchViewButtonProps, {\n children: /*#__PURE__*/_jsx(SwitchViewIcon, _extends({}, switchViewIconProps))\n }))]\n }), /*#__PURE__*/_jsx(Fade, {\n in: view === 'day',\n appear: !reduceAnimations,\n enter: !reduceAnimations,\n children: /*#__PURE__*/_jsx(PickersArrowSwitcher, {\n slots: slots,\n slotProps: slotProps,\n onGoToPrevious: selectPreviousMonth,\n isPreviousDisabled: isPreviousMonthDisabled,\n previousLabel: translations.previousMonth,\n onGoToNext: selectNextMonth,\n isNextDisabled: isNextMonthDisabled,\n nextLabel: translations.nextMonth\n })\n })]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersCalendarHeader.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n currentMonth: PropTypes.object.isRequired,\n disabled: PropTypes.bool,\n disableFuture: PropTypes.bool,\n disablePast: PropTypes.bool,\n /**\n * Format used to display the date.\n * @default `${adapter.formats.month} ${adapter.formats.year}`\n */\n format: PropTypes.string,\n /**\n * Id of the calendar text element.\n * It is used to establish an `aria-labelledby` relationship with the calendar `grid` element.\n */\n labelId: PropTypes.string,\n maxDate: PropTypes.object.isRequired,\n minDate: PropTypes.object.isRequired,\n onMonthChange: PropTypes.func.isRequired,\n onViewChange: PropTypes.func,\n reduceAnimations: PropTypes.bool.isRequired,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n timezone: PropTypes.string.isRequired,\n view: PropTypes.oneOf(['day', 'month', 'year']).isRequired,\n views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'month', 'year']).isRequired).isRequired\n} : void 0;\nexport { PickersCalendarHeader };","import useMediaQuery from '@mui/material/useMediaQuery';\nconst PREFERS_REDUCED_MOTION = '@media (prefers-reduced-motion: reduce)';\n\n// detect if user agent has Android version < 10 or iOS version < 13\nconst mobileVersionMatches = typeof navigator !== 'undefined' && navigator.userAgent.match(/android\\s(\\d+)|OS\\s(\\d+)/i);\nconst androidVersion = mobileVersionMatches && mobileVersionMatches[1] ? parseInt(mobileVersionMatches[1], 10) : null;\nconst iOSVersion = mobileVersionMatches && mobileVersionMatches[2] ? parseInt(mobileVersionMatches[2], 10) : null;\nexport const slowAnimationDevices = androidVersion && androidVersion < 10 || iOSVersion && iOSVersion < 13 || false;\nexport function useReduceAnimations(customReduceAnimations) {\n const prefersReduced = useMediaQuery(PREFERS_REDUCED_MOTION, {\n defaultMatches: false\n });\n if (customReduceAnimations != null) {\n return customReduceAnimations;\n }\n return prefersReduced || slowAnimationDevices;\n}","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport const getDateCalendarUtilityClass = slot => generateUtilityClass('MuiDateCalendar', slot);\nexport const dateCalendarClasses = generateUtilityClasses('MuiDateCalendar', ['root', 'viewTransitionContainer']);","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"autoFocus\", \"onViewChange\", \"value\", \"defaultValue\", \"referenceDate\", \"disableFuture\", \"disablePast\", \"onChange\", \"onYearChange\", \"onMonthChange\", \"reduceAnimations\", \"shouldDisableDate\", \"shouldDisableMonth\", \"shouldDisableYear\", \"view\", \"views\", \"openTo\", \"className\", \"classes\", \"disabled\", \"readOnly\", \"minDate\", \"maxDate\", \"disableHighlightToday\", \"focusedView\", \"onFocusedViewChange\", \"showDaysOutsideCurrentMonth\", \"fixedWeekNumber\", \"dayOfWeekFormatter\", \"slots\", \"slotProps\", \"loading\", \"renderLoading\", \"displayWeekNumber\", \"yearsOrder\", \"yearsPerRow\", \"monthsPerRow\", \"timezone\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { unstable_composeClasses as composeClasses, unstable_useId as useId, unstable_useEventCallback as useEventCallback } from '@mui/utils';\nimport { useCalendarState } from \"./useCalendarState.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { PickersFadeTransitionGroup } from \"./PickersFadeTransitionGroup.js\";\nimport { DayCalendar } from \"./DayCalendar.js\";\nimport { MonthCalendar } from \"../MonthCalendar/index.js\";\nimport { YearCalendar } from \"../YearCalendar/index.js\";\nimport { useViews } from \"../internals/hooks/useViews.js\";\nimport { PickersCalendarHeader } from \"../PickersCalendarHeader/index.js\";\nimport { findClosestEnabledDate, mergeDateAndTime } from \"../internals/utils/date-utils.js\";\nimport { PickerViewRoot } from \"../internals/components/PickerViewRoot/index.js\";\nimport { useReduceAnimations } from \"../internals/hooks/useReduceAnimations.js\";\nimport { getDateCalendarUtilityClass } from \"./dateCalendarClasses.js\";\nimport { useControlledValue } from \"../internals/hooks/useControlledValue.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { VIEW_HEIGHT } from \"../internals/constants/dimensions.js\";\nimport { usePickerPrivateContext } from \"../internals/hooks/usePickerPrivateContext.js\";\nimport { useApplyDefaultValuesToDateValidationProps } from \"../managers/useDateManager.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root'],\n viewTransitionContainer: ['viewTransitionContainer']\n };\n return composeClasses(slots, getDateCalendarUtilityClass, classes);\n};\nfunction useDateCalendarDefaultizedProps(props, name) {\n const themeProps = useThemeProps({\n props,\n name\n });\n const reduceAnimations = useReduceAnimations(themeProps.reduceAnimations);\n const validationProps = useApplyDefaultValuesToDateValidationProps(themeProps);\n return _extends({}, themeProps, validationProps, {\n loading: themeProps.loading ?? false,\n openTo: themeProps.openTo ?? 'day',\n views: themeProps.views ?? ['year', 'day'],\n reduceAnimations,\n renderLoading: themeProps.renderLoading ?? (() => /*#__PURE__*/_jsx(\"span\", {\n children: \"...\"\n }))\n });\n}\nconst DateCalendarRoot = styled(PickerViewRoot, {\n name: 'MuiDateCalendar',\n slot: 'Root'\n})({\n display: 'flex',\n flexDirection: 'column',\n height: VIEW_HEIGHT\n});\nconst DateCalendarViewTransitionContainer = styled(PickersFadeTransitionGroup, {\n name: 'MuiDateCalendar',\n slot: 'ViewTransitionContainer'\n})({});\n/**\n * Demos:\n *\n * - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)\n * - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [DateCalendar API](https://mui.com/x/api/date-pickers/date-calendar/)\n */\nexport const DateCalendar = /*#__PURE__*/React.forwardRef(function DateCalendar(inProps, ref) {\n const utils = useUtils();\n const {\n ownerState\n } = usePickerPrivateContext();\n const id = useId();\n const props = useDateCalendarDefaultizedProps(inProps, 'MuiDateCalendar');\n const {\n autoFocus,\n onViewChange,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n disableFuture,\n disablePast,\n onChange,\n onMonthChange,\n reduceAnimations,\n shouldDisableDate,\n shouldDisableMonth,\n shouldDisableYear,\n view: inView,\n views,\n openTo,\n className,\n classes: classesProp,\n disabled,\n readOnly,\n minDate,\n maxDate,\n disableHighlightToday,\n focusedView: focusedViewProp,\n onFocusedViewChange,\n showDaysOutsideCurrentMonth,\n fixedWeekNumber,\n dayOfWeekFormatter,\n slots,\n slotProps,\n loading,\n renderLoading,\n displayWeekNumber,\n yearsOrder,\n yearsPerRow,\n monthsPerRow,\n timezone: timezoneProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n value,\n handleValueChange,\n timezone\n } = useControlledValue({\n name: 'DateCalendar',\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n onChange,\n valueManager: singleItemValueManager\n });\n const {\n view,\n setView,\n focusedView,\n setFocusedView,\n goToNextView,\n setValueAndGoToNextView\n } = useViews({\n view: inView,\n views,\n openTo,\n onChange: handleValueChange,\n onViewChange,\n autoFocus,\n focusedView: focusedViewProp,\n onFocusedViewChange\n });\n const {\n referenceDate,\n calendarState,\n setVisibleDate,\n isDateDisabled,\n onMonthSwitchingAnimationEnd\n } = useCalendarState({\n value,\n referenceDate: referenceDateProp,\n reduceAnimations,\n onMonthChange,\n minDate,\n maxDate,\n shouldDisableDate,\n disablePast,\n disableFuture,\n timezone,\n getCurrentMonthFromVisibleDate: (visibleDate, prevMonth) => {\n if (utils.isSameMonth(visibleDate, prevMonth)) {\n return prevMonth;\n }\n return utils.startOfMonth(visibleDate);\n }\n });\n\n // When disabled, limit the view to the selected date\n const minDateWithDisabled = disabled && value || minDate;\n const maxDateWithDisabled = disabled && value || maxDate;\n const gridLabelId = `${id}-grid-label`;\n const hasFocus = focusedView !== null;\n const CalendarHeader = slots?.calendarHeader ?? PickersCalendarHeader;\n const calendarHeaderProps = useSlotProps({\n elementType: CalendarHeader,\n externalSlotProps: slotProps?.calendarHeader,\n additionalProps: {\n views,\n view,\n currentMonth: calendarState.currentMonth,\n onViewChange: setView,\n onMonthChange: month => setVisibleDate({\n target: month,\n reason: 'header-navigation'\n }),\n minDate: minDateWithDisabled,\n maxDate: maxDateWithDisabled,\n disabled,\n disablePast,\n disableFuture,\n reduceAnimations,\n timezone,\n labelId: gridLabelId\n },\n ownerState\n });\n const handleDateMonthChange = useEventCallback(newDate => {\n const startOfMonth = utils.startOfMonth(newDate);\n const endOfMonth = utils.endOfMonth(newDate);\n const closestEnabledDate = isDateDisabled(newDate) ? findClosestEnabledDate({\n utils,\n date: newDate,\n minDate: utils.isBefore(minDate, startOfMonth) ? startOfMonth : minDate,\n maxDate: utils.isAfter(maxDate, endOfMonth) ? endOfMonth : maxDate,\n disablePast,\n disableFuture,\n isDateDisabled,\n timezone\n }) : newDate;\n if (closestEnabledDate) {\n setValueAndGoToNextView(closestEnabledDate, 'finish');\n setVisibleDate({\n target: closestEnabledDate,\n reason: 'cell-interaction'\n });\n } else {\n goToNextView();\n setVisibleDate({\n target: startOfMonth,\n reason: 'cell-interaction'\n });\n }\n });\n const handleDateYearChange = useEventCallback(newDate => {\n const startOfYear = utils.startOfYear(newDate);\n const endOfYear = utils.endOfYear(newDate);\n const closestEnabledDate = isDateDisabled(newDate) ? findClosestEnabledDate({\n utils,\n date: newDate,\n minDate: utils.isBefore(minDate, startOfYear) ? startOfYear : minDate,\n maxDate: utils.isAfter(maxDate, endOfYear) ? endOfYear : maxDate,\n disablePast,\n disableFuture,\n isDateDisabled,\n timezone\n }) : newDate;\n if (closestEnabledDate) {\n setValueAndGoToNextView(closestEnabledDate, 'finish');\n setVisibleDate({\n target: closestEnabledDate,\n reason: 'cell-interaction'\n });\n } else {\n goToNextView();\n setVisibleDate({\n target: startOfYear,\n reason: 'cell-interaction'\n });\n }\n });\n const handleSelectedDayChange = useEventCallback(day => {\n if (day) {\n // If there is a date already selected, then we want to keep its time\n return handleValueChange(mergeDateAndTime(utils, day, value ?? referenceDate), 'finish', view);\n }\n return handleValueChange(day, 'finish', view);\n });\n React.useEffect(() => {\n if (utils.isValid(value)) {\n setVisibleDate({\n target: value,\n reason: 'controlled-value-change'\n });\n }\n }, [value]); // eslint-disable-line\n\n const classes = useUtilityClasses(classesProp);\n const baseDateValidationProps = {\n disablePast,\n disableFuture,\n maxDate,\n minDate\n };\n const commonViewProps = {\n disableHighlightToday,\n readOnly,\n disabled,\n timezone,\n gridLabelId,\n slots,\n slotProps\n };\n const prevOpenViewRef = React.useRef(view);\n React.useEffect(() => {\n // If the view change and the focus was on the previous view\n // Then we update the focus.\n if (prevOpenViewRef.current === view) {\n return;\n }\n if (focusedView === prevOpenViewRef.current) {\n setFocusedView(view, true);\n }\n prevOpenViewRef.current = view;\n }, [focusedView, setFocusedView, view]);\n const selectedDays = React.useMemo(() => [value], [value]);\n return /*#__PURE__*/_jsxs(DateCalendarRoot, _extends({\n ref: ref,\n className: clsx(classes.root, className),\n ownerState: ownerState\n }, other, {\n children: [/*#__PURE__*/_jsx(CalendarHeader, _extends({}, calendarHeaderProps, {\n slots: slots,\n slotProps: slotProps\n })), /*#__PURE__*/_jsx(DateCalendarViewTransitionContainer, {\n reduceAnimations: reduceAnimations,\n className: classes.viewTransitionContainer,\n transKey: view,\n ownerState: ownerState,\n children: /*#__PURE__*/_jsxs(\"div\", {\n children: [view === 'year' && /*#__PURE__*/_jsx(YearCalendar, _extends({}, baseDateValidationProps, commonViewProps, {\n value: value,\n onChange: handleDateYearChange,\n shouldDisableYear: shouldDisableYear,\n hasFocus: hasFocus,\n onFocusedViewChange: isViewFocused => setFocusedView('year', isViewFocused),\n yearsOrder: yearsOrder,\n yearsPerRow: yearsPerRow,\n referenceDate: referenceDate\n })), view === 'month' && /*#__PURE__*/_jsx(MonthCalendar, _extends({}, baseDateValidationProps, commonViewProps, {\n hasFocus: hasFocus,\n className: className,\n value: value,\n onChange: handleDateMonthChange,\n shouldDisableMonth: shouldDisableMonth,\n onFocusedViewChange: isViewFocused => setFocusedView('month', isViewFocused),\n monthsPerRow: monthsPerRow,\n referenceDate: referenceDate\n })), view === 'day' && /*#__PURE__*/_jsx(DayCalendar, _extends({}, calendarState, baseDateValidationProps, commonViewProps, {\n onMonthSwitchingAnimationEnd: onMonthSwitchingAnimationEnd,\n hasFocus: hasFocus,\n onFocusedDayChange: focusedDate => setVisibleDate({\n target: focusedDate,\n reason: 'cell-interaction'\n }),\n reduceAnimations: reduceAnimations,\n selectedDays: selectedDays,\n onSelectedDaysChange: handleSelectedDayChange,\n shouldDisableDate: shouldDisableDate,\n shouldDisableMonth: shouldDisableMonth,\n shouldDisableYear: shouldDisableYear,\n onFocusedViewChange: isViewFocused => setFocusedView('day', isViewFocused),\n showDaysOutsideCurrentMonth: showDaysOutsideCurrentMonth,\n fixedWeekNumber: fixedWeekNumber,\n dayOfWeekFormatter: dayOfWeekFormatter,\n displayWeekNumber: displayWeekNumber,\n loading: loading,\n renderLoading: renderLoading\n }))]\n })\n })]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? DateCalendar.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * Formats the day of week displayed in the calendar header.\n * @param {PickerValidDate} date The date of the day of week provided by the adapter.\n * @returns {string} The name to display.\n * @default (date: PickerValidDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()\n */\n dayOfWeekFormatter: PropTypes.func,\n /**\n * The default selected value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the component is disabled.\n * When disabled, the value cannot be changed and no interaction is possible.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * If `true`, the week number will be display in the calendar.\n */\n displayWeekNumber: PropTypes.bool,\n /**\n * The day view will show as many weeks as needed after the end of the current month to match this value.\n * Put it to 6 to have a fixed number of weeks in Gregorian calendars\n */\n fixedWeekNumber: PropTypes.number,\n /**\n * Controlled focused view.\n */\n focusedView: PropTypes.oneOf(['day', 'month', 'year']),\n /**\n * If `true`, calls `renderLoading` instead of rendering the day calendar.\n * Can be used to preload information and show it in calendar.\n * @default false\n */\n loading: PropTypes.bool,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Months rendered per row.\n * @default 3\n */\n monthsPerRow: PropTypes.oneOf([3, 4]),\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TView The view type. Will be one of date or time views.\n * @param {TValue} value The new value.\n * @param {PickerSelectionState | undefined} selectionState Indicates if the date selection is complete.\n * @param {TView | undefined} selectedView Indicates the view in which the selection has been made.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired on focused view change.\n * @template TView\n * @param {TView} view The new view to focus or not.\n * @param {boolean} hasFocus `true` if the view should be focused.\n */\n onFocusedViewChange: PropTypes.func,\n /**\n * Callback fired on month change.\n * @param {PickerValidDate} month The new month.\n */\n onMonthChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * Callback fired on year change.\n * @param {PickerValidDate} year The new year.\n */\n onYearChange: PropTypes.func,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['day', 'month', 'year']),\n /**\n * If `true`, the component is read-only.\n * When read-only, the value cannot be changed but the user can interact with the interface.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`.\n */\n referenceDate: PropTypes.object,\n /**\n * Component displaying when passed `loading` true.\n * @returns {React.ReactNode} The node to render when loading.\n * @default () => <span>...</span>\n */\n renderLoading: PropTypes.func,\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @param {PickerValidDate} day The date to test.\n * @returns {boolean} If `true` the date will be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * Disable specific month.\n * @param {PickerValidDate} month The month to test.\n * @returns {boolean} If `true`, the month will be disabled.\n */\n shouldDisableMonth: PropTypes.func,\n /**\n * Disable specific year.\n * @param {PickerValidDate} year The year to test.\n * @returns {boolean} If `true`, the year will be disabled.\n */\n shouldDisableYear: PropTypes.func,\n /**\n * If `true`, days outside the current month are rendered:\n *\n * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.\n *\n * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.\n *\n * - ignored if `calendars` equals more than `1` on range pickers.\n * @default false\n */\n showDaysOutsideCurrentMonth: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['day', 'month', 'year']),\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'month', 'year']).isRequired),\n /**\n * Years are displayed in ascending (chronological) order by default.\n * If `desc`, years are displayed in descending order.\n * @default 'asc'\n */\n yearsOrder: PropTypes.oneOf(['asc', 'desc']),\n /**\n * Years rendered per row.\n * @default 3\n */\n yearsPerRow: PropTypes.oneOf([3, 4])\n} : void 0;","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getPickersToolbarUtilityClass(slot) {\n return generateUtilityClass('MuiPickersToolbar', slot);\n}\nexport const pickersToolbarClasses = generateUtilityClasses('MuiPickersToolbar', ['root', 'title', 'content']);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { usePickerPrivateContext } from \"./usePickerPrivateContext.js\";\nexport function useToolbarOwnerState() {\n const {\n ownerState: pickerOwnerState\n } = usePickerPrivateContext();\n const isRtl = useRtl();\n return React.useMemo(() => _extends({}, pickerOwnerState, {\n toolbarDirection: isRtl ? 'rtl' : 'ltr'\n }), [pickerOwnerState, isRtl]);\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"classes\", \"toolbarTitle\", \"hidden\", \"titleId\", \"classes\", \"landscapeDirection\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport Typography from '@mui/material/Typography';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { shouldForwardProp } from '@mui/system/createStyled';\nimport { getPickersToolbarUtilityClass } from \"./pickersToolbarClasses.js\";\nimport { useToolbarOwnerState } from \"../hooks/useToolbarOwnerState.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root'],\n title: ['title'],\n content: ['content']\n };\n return composeClasses(slots, getPickersToolbarUtilityClass, classes);\n};\nconst PickersToolbarRoot = styled('div', {\n name: 'MuiPickersToolbar',\n slot: 'Root'\n})(({\n theme\n}) => ({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n justifyContent: 'space-between',\n padding: theme.spacing(2, 3),\n variants: [{\n props: {\n pickerOrientation: 'landscape'\n },\n style: {\n height: 'auto',\n maxWidth: 160,\n padding: 16,\n justifyContent: 'flex-start',\n flexWrap: 'wrap'\n }\n }]\n}));\nconst PickersToolbarContent = styled('div', {\n name: 'MuiPickersToolbar',\n slot: 'Content',\n shouldForwardProp: prop => shouldForwardProp(prop) && prop !== 'landscapeDirection'\n})({\n display: 'flex',\n flexWrap: 'wrap',\n width: '100%',\n flex: 1,\n justifyContent: 'space-between',\n alignItems: 'center',\n flexDirection: 'row',\n variants: [{\n props: {\n pickerOrientation: 'landscape'\n },\n style: {\n justifyContent: 'flex-start',\n alignItems: 'flex-start',\n flexDirection: 'column'\n }\n }, {\n props: {\n pickerOrientation: 'landscape',\n landscapeDirection: 'row'\n },\n style: {\n flexDirection: 'row'\n }\n }]\n});\nexport const PickersToolbar = /*#__PURE__*/React.forwardRef(function PickersToolbar(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersToolbar'\n });\n const {\n children,\n className,\n classes: classesProp,\n toolbarTitle,\n hidden,\n titleId,\n landscapeDirection\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = useToolbarOwnerState();\n const classes = useUtilityClasses(classesProp);\n if (hidden) {\n return null;\n }\n return /*#__PURE__*/_jsxs(PickersToolbarRoot, _extends({\n ref: ref,\n className: clsx(classes.root, className),\n ownerState: ownerState\n }, other, {\n children: [/*#__PURE__*/_jsx(Typography, {\n color: \"text.secondary\",\n variant: \"overline\",\n id: titleId,\n className: classes.title,\n children: toolbarTitle\n }), /*#__PURE__*/_jsx(PickersToolbarContent, {\n className: classes.content,\n ownerState: ownerState,\n landscapeDirection: landscapeDirection,\n children: children\n })]\n }));\n});","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getDatePickerToolbarUtilityClass(slot) {\n return generateUtilityClass('MuiDatePickerToolbar', slot);\n}\nexport const datePickerToolbarClasses = generateUtilityClasses('MuiDatePickerToolbar', ['root', 'title']);","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"toolbarFormat\", \"toolbarPlaceholder\", \"className\", \"classes\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport Typography from '@mui/material/Typography';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { PickersToolbar } from \"../internals/components/PickersToolbar.js\";\nimport { usePickerTranslations } from \"../hooks/usePickerTranslations.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { getDatePickerToolbarUtilityClass } from \"./datePickerToolbarClasses.js\";\nimport { resolveDateFormat } from \"../internals/utils/date-utils.js\";\nimport { useToolbarOwnerState } from \"../internals/hooks/useToolbarOwnerState.js\";\nimport { usePickerContext } from \"../hooks/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root'],\n title: ['title']\n };\n return composeClasses(slots, getDatePickerToolbarUtilityClass, classes);\n};\nconst DatePickerToolbarRoot = styled(PickersToolbar, {\n name: 'MuiDatePickerToolbar',\n slot: 'Root'\n})({});\nconst DatePickerToolbarTitle = styled(Typography, {\n name: 'MuiDatePickerToolbar',\n slot: 'Title'\n})({\n variants: [{\n props: {\n pickerOrientation: 'landscape'\n },\n style: {\n margin: 'auto 16px auto auto'\n }\n }]\n});\n/**\n * Demos:\n *\n * - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)\n * - [Custom components](https://mui.com/x/react-date-pickers/custom-components/)\n *\n * API:\n *\n * - [DatePickerToolbar API](https://mui.com/x/api/date-pickers/date-picker-toolbar/)\n */\nexport const DatePickerToolbar = /*#__PURE__*/React.forwardRef(function DatePickerToolbar(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiDatePickerToolbar'\n });\n const {\n toolbarFormat,\n toolbarPlaceholder = '––',\n className,\n classes: classesProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const utils = useUtils();\n const {\n value,\n views,\n orientation\n } = usePickerContext();\n const translations = usePickerTranslations();\n const ownerState = useToolbarOwnerState();\n const classes = useUtilityClasses(classesProp);\n const dateText = React.useMemo(() => {\n if (!utils.isValid(value)) {\n return toolbarPlaceholder;\n }\n const formatFromViews = resolveDateFormat(utils, {\n format: toolbarFormat,\n views\n }, true);\n return utils.formatByString(value, formatFromViews);\n }, [value, toolbarFormat, toolbarPlaceholder, utils, views]);\n return /*#__PURE__*/_jsx(DatePickerToolbarRoot, _extends({\n ref: ref,\n toolbarTitle: translations.datePickerToolbarTitle,\n className: clsx(classes.root, className)\n }, other, {\n children: /*#__PURE__*/_jsx(DatePickerToolbarTitle, {\n variant: \"h4\",\n align: orientation === 'landscape' ? 'left' : 'center',\n ownerState: ownerState,\n className: classes.title,\n children: dateText\n })\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? DatePickerToolbar.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * If `true`, show the toolbar even in desktop mode.\n * @default `true` for Desktop, `false` for Mobile.\n */\n hidden: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n titleId: PropTypes.string,\n /**\n * Toolbar date format.\n */\n toolbarFormat: PropTypes.string,\n /**\n * Toolbar value placeholder—it is displayed when the value is empty.\n * @default \"––\"\n */\n toolbarPlaceholder: PropTypes.node\n} : void 0;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useThemeProps } from '@mui/material/styles';\nimport { applyDefaultViewProps } from \"../internals/utils/views.js\";\nimport { DatePickerToolbar } from \"./DatePickerToolbar.js\";\nimport { useApplyDefaultValuesToDateValidationProps } from \"../managers/useDateManager.js\";\nexport function useDatePickerDefaultizedProps(props, name) {\n const themeProps = useThemeProps({\n props,\n name\n });\n const validationProps = useApplyDefaultValuesToDateValidationProps(themeProps);\n const localeText = React.useMemo(() => {\n if (themeProps.localeText?.toolbarTitle == null) {\n return themeProps.localeText;\n }\n return _extends({}, themeProps.localeText, {\n datePickerToolbarTitle: themeProps.localeText.toolbarTitle\n });\n }, [themeProps.localeText]);\n return _extends({}, themeProps, validationProps, {\n localeText\n }, applyDefaultViewProps({\n views: themeProps.views,\n openTo: themeProps.openTo,\n defaultViews: ['year', 'day'],\n defaultOpenTo: 'day'\n }), {\n slots: _extends({\n toolbar: DatePickerToolbar\n }, themeProps.slots)\n });\n}","import generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nexport function getPickerPopperUtilityClass(slot) {\n return generateUtilityClass('MuiPickerPopper', slot);\n}\nexport const pickerPopperClasses = generateUtilityClasses('MuiPickerPopper', ['root', 'paper']);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"PaperComponent\", \"ownerState\", \"children\", \"paperSlotProps\", \"paperClasses\", \"onPaperClick\", \"onPaperTouchStart\"];\nimport * as React from 'react';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport Grow from '@mui/material/Grow';\nimport Fade from '@mui/material/Fade';\nimport MuiPaper from '@mui/material/Paper';\nimport MuiPopper from '@mui/material/Popper';\nimport BaseFocusTrap from '@mui/material/Unstable_TrapFocus';\nimport { unstable_useForkRef as useForkRef, unstable_useEventCallback as useEventCallback, unstable_ownerDocument as ownerDocument, unstable_composeClasses as composeClasses } from '@mui/utils';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { getPickerPopperUtilityClass } from \"./pickerPopperClasses.js\";\nimport { executeInTheNextEventLoopTick, getActiveElement } from \"../../utils/utils.js\";\nimport { usePickerPrivateContext } from \"../../hooks/usePickerPrivateContext.js\";\nimport { usePickerContext } from \"../../../hooks/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root'],\n paper: ['paper']\n };\n return composeClasses(slots, getPickerPopperUtilityClass, classes);\n};\nconst PickerPopperRoot = styled(MuiPopper, {\n name: 'MuiPickerPopper',\n slot: 'Root'\n})(({\n theme\n}) => ({\n zIndex: theme.zIndex.modal\n}));\nconst PickerPopperPaper = styled(MuiPaper, {\n name: 'MuiPickerPopper',\n slot: 'Paper'\n})({\n outline: 0,\n transformOrigin: 'top center',\n variants: [{\n props: ({\n popperPlacement\n }) => ['top', 'top-start', 'top-end'].includes(popperPlacement),\n style: {\n transformOrigin: 'bottom center'\n }\n }]\n});\nfunction clickedRootScrollbar(event, doc) {\n return doc.documentElement.clientWidth < event.clientX || doc.documentElement.clientHeight < event.clientY;\n}\n/**\n * Based on @mui/material/ClickAwayListener without the customization.\n * We can probably strip away even more since children won't be portaled.\n * @param {boolean} active Only listen to clicks when the popper is opened.\n * @param {(event: MouseEvent | TouchEvent) => void} onClickAway The callback to call when clicking outside the popper.\n * @returns {Array} The ref and event handler to listen to the outside clicks.\n */\nfunction useClickAwayListener(active, onClickAway) {\n const movedRef = React.useRef(false);\n const syntheticEventRef = React.useRef(false);\n const nodeRef = React.useRef(null);\n const activatedRef = React.useRef(false);\n React.useEffect(() => {\n if (!active) {\n return undefined;\n }\n\n // Ensure that this hook is not \"activated\" synchronously.\n // https://github.com/facebook/react/issues/20074\n function armClickAwayListener() {\n activatedRef.current = true;\n }\n document.addEventListener('mousedown', armClickAwayListener, true);\n document.addEventListener('touchstart', armClickAwayListener, true);\n return () => {\n document.removeEventListener('mousedown', armClickAwayListener, true);\n document.removeEventListener('touchstart', armClickAwayListener, true);\n activatedRef.current = false;\n };\n }, [active]);\n\n // The handler doesn't take event.defaultPrevented into account:\n //\n // event.preventDefault() is meant to stop default behaviors like\n // clicking a checkbox to check it, hitting a button to submit a form,\n // and hitting left arrow to move the cursor in a text input etc.\n // Only special HTML elements have these default behaviors.\n const handleClickAway = useEventCallback(event => {\n if (!activatedRef.current) {\n return;\n }\n\n // Given developers can stop the propagation of the synthetic event,\n // we can only be confident with a positive value.\n const insideReactTree = syntheticEventRef.current;\n syntheticEventRef.current = false;\n const doc = ownerDocument(nodeRef.current);\n\n // 1. IE11 support, which trigger the handleClickAway even after the unbind\n // 2. The child might render null.\n // 3. Behave like a blur listener.\n if (!nodeRef.current ||\n // is a TouchEvent?\n 'clientX' in event && clickedRootScrollbar(event, doc)) {\n return;\n }\n\n // Do not act if user performed touchmove\n if (movedRef.current) {\n movedRef.current = false;\n return;\n }\n let insideDOM;\n\n // If not enough, can use https://github.com/DieterHolvoet/event-propagation-path/blob/master/propagationPath.js\n if (event.composedPath) {\n insideDOM = event.composedPath().indexOf(nodeRef.current) > -1;\n } else {\n insideDOM = !doc.documentElement.contains(event.target) || nodeRef.current.contains(event.target);\n }\n if (!insideDOM && !insideReactTree) {\n onClickAway(event);\n }\n });\n\n // Keep track of mouse/touch events that bubbled up through the portal.\n const handleSynthetic = () => {\n syntheticEventRef.current = true;\n };\n React.useEffect(() => {\n if (active) {\n const doc = ownerDocument(nodeRef.current);\n const handleTouchMove = () => {\n movedRef.current = true;\n };\n doc.addEventListener('touchstart', handleClickAway);\n doc.addEventListener('touchmove', handleTouchMove);\n return () => {\n doc.removeEventListener('touchstart', handleClickAway);\n doc.removeEventListener('touchmove', handleTouchMove);\n };\n }\n return undefined;\n }, [active, handleClickAway]);\n React.useEffect(() => {\n // TODO This behavior is not tested automatically\n // It's unclear whether this is due to different update semantics in test (batched in act() vs discrete on click).\n // Or if this is a timing related issues due to different Transition components\n // Once we get rid of all the manual scheduling (for example setTimeout(update, 0)) we can revisit this code+test.\n if (active) {\n const doc = ownerDocument(nodeRef.current);\n doc.addEventListener('click', handleClickAway);\n return () => {\n doc.removeEventListener('click', handleClickAway);\n // cleanup `handleClickAway`\n syntheticEventRef.current = false;\n };\n }\n return undefined;\n }, [active, handleClickAway]);\n return [nodeRef, handleSynthetic, handleSynthetic];\n}\nconst PickerPopperPaperWrapper = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n PaperComponent,\n ownerState,\n children,\n paperSlotProps,\n paperClasses,\n onPaperClick,\n onPaperTouchStart\n // picks up the style props provided by `Transition`\n // https://mui.com/material-ui/transitions/#child-requirement\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const paperProps = useSlotProps({\n elementType: PaperComponent,\n externalSlotProps: paperSlotProps,\n additionalProps: {\n tabIndex: -1,\n elevation: 8,\n ref\n },\n className: paperClasses,\n ownerState\n });\n return /*#__PURE__*/_jsx(PaperComponent, _extends({}, other, paperProps, {\n onClick: event => {\n onPaperClick(event);\n paperProps.onClick?.(event);\n },\n onTouchStart: event => {\n onPaperTouchStart(event);\n paperProps.onTouchStart?.(event);\n },\n ownerState: ownerState,\n children: children\n }));\n});\nexport function PickerPopper(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickerPopper'\n });\n const {\n children,\n placement = 'bottom-start',\n slots,\n slotProps,\n classes: classesProp\n } = props;\n const {\n open,\n popupRef,\n reduceAnimations\n } = usePickerContext();\n const {\n dismissViews,\n getCurrentViewMode,\n onPopperExited,\n triggerElement,\n viewContainerRole\n } = usePickerPrivateContext();\n React.useEffect(() => {\n function handleKeyDown(nativeEvent) {\n if (open && nativeEvent.key === 'Escape') {\n dismissViews();\n }\n }\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n }, [dismissViews, open]);\n const lastFocusedElementRef = React.useRef(null);\n React.useEffect(() => {\n if (viewContainerRole === 'tooltip' || getCurrentViewMode() === 'field') {\n return;\n }\n if (open) {\n lastFocusedElementRef.current = getActiveElement(document);\n } else if (lastFocusedElementRef.current && lastFocusedElementRef.current instanceof HTMLElement) {\n // make sure the button is flushed with updated label, before returning focus to it\n // avoids issue, where screen reader could fail to announce selected date after selection\n setTimeout(() => {\n if (lastFocusedElementRef.current instanceof HTMLElement) {\n lastFocusedElementRef.current.focus();\n }\n });\n }\n }, [open, viewContainerRole, getCurrentViewMode]);\n const classes = useUtilityClasses(classesProp);\n const {\n ownerState: pickerOwnerState,\n rootRefObject\n } = usePickerPrivateContext();\n const ownerState = _extends({}, pickerOwnerState, {\n popperPlacement: placement\n });\n const handleClickAway = useEventCallback(() => {\n if (viewContainerRole === 'tooltip') {\n executeInTheNextEventLoopTick(() => {\n if (rootRefObject.current?.contains(getActiveElement(document)) || popupRef.current?.contains(getActiveElement(document))) {\n return;\n }\n dismissViews();\n });\n } else {\n dismissViews();\n }\n });\n const [clickAwayRef, onPaperClick, onPaperTouchStart] = useClickAwayListener(open, handleClickAway);\n const paperRef = React.useRef(null);\n const handleRef = useForkRef(paperRef, popupRef);\n const handlePaperRef = useForkRef(handleRef, clickAwayRef);\n const handleKeyDown = event => {\n if (event.key === 'Escape') {\n // stop the propagation to avoid closing parent modal\n event.stopPropagation();\n dismissViews();\n }\n };\n const Transition = slots?.desktopTransition ?? reduceAnimations ? Fade : Grow;\n const FocusTrap = slots?.desktopTrapFocus ?? BaseFocusTrap;\n const Paper = slots?.desktopPaper ?? PickerPopperPaper;\n const Popper = slots?.popper ?? PickerPopperRoot;\n const popperProps = useSlotProps({\n elementType: Popper,\n externalSlotProps: slotProps?.popper,\n additionalProps: {\n transition: true,\n role: viewContainerRole == null ? undefined : viewContainerRole,\n open,\n placement,\n anchorEl: triggerElement,\n onKeyDown: handleKeyDown\n },\n className: classes.root,\n ownerState\n });\n return /*#__PURE__*/_jsx(Popper, _extends({}, popperProps, {\n children: ({\n TransitionProps\n }) => /*#__PURE__*/_jsx(FocusTrap, _extends({\n open: open,\n disableAutoFocus: true\n // pickers are managing focus position manually\n // without this prop the focus is returned to the button before `aria-label` is updated\n // which would force screen readers to read too old label\n ,\n disableRestoreFocus: true,\n disableEnforceFocus: viewContainerRole === 'tooltip',\n isEnabled: () => true\n }, slotProps?.desktopTrapFocus, {\n children: /*#__PURE__*/_jsx(Transition, _extends({}, TransitionProps, slotProps?.desktopTransition, {\n onExited: event => {\n onPopperExited?.();\n slotProps?.desktopTransition?.onExited?.(event);\n TransitionProps?.onExited?.();\n },\n children: /*#__PURE__*/_jsx(PickerPopperPaperWrapper, {\n PaperComponent: Paper,\n ownerState: ownerState,\n ref: handlePaperRef,\n onPaperClick: onPaperClick,\n onPaperTouchStart: onPaperTouchStart,\n paperClasses: classes.paper,\n paperSlotProps: slotProps?.desktopPaper,\n children: children\n })\n }))\n }))\n }));\n}","import * as React from 'react';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport { arrayIncludes } from \"../../../utils/utils.js\";\nfunction getOrientation() {\n if (typeof window === 'undefined') {\n return 'portrait';\n }\n if (window.screen && window.screen.orientation && window.screen.orientation.angle) {\n return Math.abs(window.screen.orientation.angle) === 90 ? 'landscape' : 'portrait';\n }\n\n // Support IOS safari\n if (window.orientation) {\n return Math.abs(Number(window.orientation)) === 90 ? 'landscape' : 'portrait';\n }\n return 'portrait';\n}\nexport function useOrientation(views, customOrientation) {\n const [orientation, setOrientation] = React.useState(getOrientation);\n useEnhancedEffect(() => {\n const eventHandler = () => {\n setOrientation(getOrientation());\n };\n window.addEventListener('orientationchange', eventHandler);\n return () => {\n window.removeEventListener('orientationchange', eventHandler);\n };\n }, []);\n if (arrayIncludes(views, ['hours', 'minutes', 'seconds'])) {\n // could not display 13:34:44 in landscape mode\n return 'portrait';\n }\n return customOrientation ?? orientation;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { warnOnce } from '@mui/x-internals/warning';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { useControlledValue } from \"../../useControlledValue.js\";\nimport { useUtils } from \"../../useUtils.js\";\nimport { useValidation } from \"../../../../validation/index.js\";\nexport function useValueAndOpenStates(parameters) {\n const {\n props,\n valueManager,\n validator\n } = parameters;\n const {\n value: valueProp,\n defaultValue: defaultValueProp,\n onChange,\n referenceDate,\n timezone: timezoneProp,\n onAccept,\n closeOnSelect,\n open: openProp,\n onOpen,\n onClose\n } = props;\n const {\n current: defaultValue\n } = React.useRef(defaultValueProp);\n const {\n current: isValueControlled\n } = React.useRef(valueProp !== undefined);\n const {\n current: isOpenControlled\n } = React.useRef(openProp !== undefined);\n const utils = useUtils();\n if (process.env.NODE_ENV !== 'production') {\n if (props.renderInput != null) {\n warnOnce(['MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.', 'You can replace it with the `textField` component slot in most cases.', 'For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5).']);\n }\n }\n\n /* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isValueControlled !== (valueProp !== undefined)) {\n console.error([`MUI X: A component is changing the ${isValueControlled ? '' : 'un'}controlled value of a Picker to be ${isValueControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled value` + 'for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [valueProp]);\n React.useEffect(() => {\n if (!isValueControlled && defaultValue !== defaultValueProp) {\n console.error([`MUI X: A component is changing the defaultValue of an uncontrolled Picker after being initialized. ` + `To suppress this warning opt to use a controlled value.`].join('\\n'));\n }\n }, [JSON.stringify(defaultValue)]);\n }\n /* eslint-enable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\n\n const {\n timezone,\n value,\n handleValueChange\n } = useControlledValue({\n name: 'a picker component',\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n referenceDate,\n onChange,\n valueManager\n });\n const [state, setState] = React.useState(() => ({\n open: false,\n lastExternalValue: value,\n clockShallowValue: undefined,\n lastCommittedValue: value,\n hasBeenModifiedSinceMount: false\n }));\n const {\n getValidationErrorForNewValue\n } = useValidation({\n props,\n validator,\n timezone,\n value,\n onError: props.onError\n });\n const setOpen = useEventCallback(action => {\n const newOpen = typeof action === 'function' ? action(state.open) : action;\n if (!isOpenControlled) {\n setState(prevState => _extends({}, prevState, {\n open: newOpen\n }));\n }\n if (newOpen && onOpen) {\n onOpen();\n }\n if (!newOpen) {\n onClose?.();\n }\n });\n const setValue = useEventCallback((newValue, options) => {\n const {\n changeImportance = 'accept',\n skipPublicationIfPristine = false,\n validationError,\n shortcut,\n shouldClose = changeImportance === 'accept'\n } = options ?? {};\n let shouldFireOnChange;\n let shouldFireOnAccept;\n if (!skipPublicationIfPristine && !isValueControlled && !state.hasBeenModifiedSinceMount) {\n // If the value is not controlled and the value has never been modified before,\n // Then clicking on any value (including the one equal to `defaultValue`) should call `onChange` and `onAccept`\n shouldFireOnChange = true;\n shouldFireOnAccept = changeImportance === 'accept';\n } else {\n shouldFireOnChange = !valueManager.areValuesEqual(utils, newValue, value);\n shouldFireOnAccept = changeImportance === 'accept' && !valueManager.areValuesEqual(utils, newValue, state.lastCommittedValue);\n }\n setState(prevState => _extends({}, prevState, {\n // We reset the shallow value whenever we fire onChange.\n clockShallowValue: shouldFireOnChange ? undefined : prevState.clockShallowValue,\n lastCommittedValue: shouldFireOnAccept ? value : prevState.lastCommittedValue,\n hasBeenModifiedSinceMount: true\n }));\n let cachedContext = null;\n const getContext = () => {\n if (!cachedContext) {\n cachedContext = {\n validationError: validationError == null ? getValidationErrorForNewValue(newValue) : validationError\n };\n if (shortcut) {\n cachedContext.shortcut = shortcut;\n }\n }\n return cachedContext;\n };\n if (shouldFireOnChange) {\n handleValueChange(newValue, getContext());\n }\n if (shouldFireOnAccept && onAccept) {\n onAccept(newValue, getContext());\n }\n if (shouldClose) {\n setOpen(false);\n }\n });\n\n // If `prop.value` changes, we update the state to reflect the new value\n if (value !== state.lastExternalValue) {\n setState(prevState => _extends({}, prevState, {\n lastExternalValue: value,\n clockShallowValue: undefined,\n hasBeenModifiedSinceMount: true\n }));\n }\n const setValueFromView = useEventCallback((newValue, selectionState = 'partial') => {\n // TODO: Expose a new method (private?) like `setView` that only updates the clock shallow value.\n if (selectionState === 'shallow') {\n setState(prev => _extends({}, prev, {\n clockShallowValue: newValue,\n hasBeenModifiedSinceMount: true\n }));\n return;\n }\n setValue(newValue, {\n changeImportance: selectionState === 'finish' && closeOnSelect ? 'accept' : 'set'\n });\n });\n\n // It is required to update inner state in useEffect in order to avoid situation when\n // Our component is not mounted yet, but `open` state is set to `true` (for example initially opened)\n React.useEffect(() => {\n if (isOpenControlled) {\n if (openProp === undefined) {\n throw new Error('You must not mix controlling and uncontrolled mode for `open` prop');\n }\n setState(prevState => _extends({}, prevState, {\n open: openProp\n }));\n }\n }, [isOpenControlled, openProp]);\n const viewValue = React.useMemo(() => valueManager.cleanValue(utils, state.clockShallowValue === undefined ? value : state.clockShallowValue), [utils, valueManager, state.clockShallowValue, value]);\n return {\n timezone,\n state,\n setValue,\n setValueFromView,\n setOpen,\n value,\n viewValue\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\", \"sx\"];\nimport * as React from 'react';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useForkRef from '@mui/utils/useForkRef';\nimport useId from '@mui/utils/useId';\nimport { useLocalizationContext, useUtils } from \"../useUtils.js\";\nimport { useReduceAnimations } from \"../useReduceAnimations.js\";\nimport { isTimeView } from \"../../utils/time-utils.js\";\nimport { useViews } from \"../useViews.js\";\nimport { useOrientation } from \"./hooks/useOrientation.js\";\nimport { useValueAndOpenStates } from \"./hooks/useValueAndOpenStates.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const usePicker = ({\n ref,\n props,\n valueManager,\n valueType,\n variant,\n validator,\n onPopperExited,\n autoFocusView,\n rendererInterceptor: RendererInterceptor,\n localeText,\n viewContainerRole,\n getStepNavigation\n}) => {\n const {\n // View props\n views,\n view: viewProp,\n openTo,\n onViewChange,\n viewRenderers,\n reduceAnimations: reduceAnimationsProp,\n orientation: orientationProp,\n disableOpenPicker,\n closeOnSelect,\n // Form props\n disabled,\n readOnly,\n // Field props\n formatDensity,\n enableAccessibleFieldDOMStructure,\n selectedSections,\n onSelectedSectionsChange,\n format,\n label,\n // Other props\n autoFocus,\n name\n } = props;\n const {\n className,\n sx\n } = props,\n propsToForwardToView = _objectWithoutPropertiesLoose(props, _excluded);\n\n /**\n * TODO: Improve how we generate the aria-label and aria-labelledby attributes.\n */\n const labelId = useId();\n const utils = useUtils();\n const adapter = useLocalizationContext();\n const reduceAnimations = useReduceAnimations(reduceAnimationsProp);\n const orientation = useOrientation(views, orientationProp);\n const {\n current: initialView\n } = React.useRef(openTo ?? null);\n\n /**\n * Refs\n */\n const [triggerElement, triggerRef] = React.useState(null);\n const popupRef = React.useRef(null);\n const fieldRef = React.useRef(null);\n const rootRefObject = React.useRef(null);\n const rootRef = useForkRef(ref, rootRefObject);\n const {\n timezone,\n state,\n setOpen,\n setValue,\n setValueFromView,\n value,\n viewValue\n } = useValueAndOpenStates({\n props,\n valueManager,\n validator\n });\n const {\n view,\n setView,\n defaultView,\n focusedView,\n setFocusedView,\n setValueAndGoToNextView,\n goToNextStep,\n hasNextStep,\n hasSeveralSteps\n } = useViews({\n view: viewProp,\n views,\n openTo,\n onChange: setValueFromView,\n onViewChange,\n autoFocus: autoFocusView,\n getStepNavigation\n });\n const clearValue = useEventCallback(() => setValue(valueManager.emptyValue));\n const setValueToToday = useEventCallback(() => setValue(valueManager.getTodayValue(utils, timezone, valueType)));\n const acceptValueChanges = useEventCallback(() => setValue(value));\n const cancelValueChanges = useEventCallback(() => setValue(state.lastCommittedValue, {\n skipPublicationIfPristine: true\n }));\n const dismissViews = useEventCallback(() => {\n setValue(value, {\n skipPublicationIfPristine: true\n });\n });\n const {\n hasUIView,\n viewModeLookup,\n timeViewsCount\n } = React.useMemo(() => views.reduce((acc, viewForReduce) => {\n const viewMode = viewRenderers[viewForReduce] == null ? 'field' : 'UI';\n acc.viewModeLookup[viewForReduce] = viewMode;\n if (viewMode === 'UI') {\n acc.hasUIView = true;\n if (isTimeView(viewForReduce)) {\n acc.timeViewsCount += 1;\n }\n }\n return acc;\n }, {\n hasUIView: false,\n viewModeLookup: {},\n timeViewsCount: 0\n }), [viewRenderers, views]);\n const currentViewMode = viewModeLookup[view];\n const getCurrentViewMode = useEventCallback(() => currentViewMode);\n const [popperView, setPopperView] = React.useState(currentViewMode === 'UI' ? view : null);\n if (popperView !== view && viewModeLookup[view] === 'UI') {\n setPopperView(view);\n }\n useEnhancedEffect(() => {\n // Handle case of Date Time Picker without time renderers\n if (currentViewMode === 'field' && state.open) {\n setOpen(false);\n setTimeout(() => {\n fieldRef?.current?.setSelectedSections(view);\n // focusing the input before the range selection is done\n // calling it outside of timeout results in an inconsistent behavior between Safari And Chrome\n fieldRef?.current?.focusField(view);\n });\n }\n }, [view]); // eslint-disable-line react-hooks/exhaustive-deps\n\n useEnhancedEffect(() => {\n if (!state.open) {\n return;\n }\n let newView = view;\n\n // If the current view is a field view, go to the last popper view\n if (currentViewMode === 'field' && popperView != null) {\n newView = popperView;\n }\n\n // If the current view is not the default view and both are UI views\n if (newView !== defaultView && viewModeLookup[newView] === 'UI' && viewModeLookup[defaultView] === 'UI') {\n newView = defaultView;\n }\n if (newView !== view) {\n setView(newView);\n }\n setFocusedView(newView, true);\n }, [state.open]); // eslint-disable-line react-hooks/exhaustive-deps\n\n const ownerState = React.useMemo(() => ({\n isPickerValueEmpty: valueManager.areValuesEqual(utils, value, valueManager.emptyValue),\n isPickerOpen: state.open,\n isPickerDisabled: props.disabled ?? false,\n isPickerReadOnly: props.readOnly ?? false,\n pickerOrientation: orientation,\n pickerVariant: variant\n }), [utils, valueManager, value, state.open, orientation, variant, props.disabled, props.readOnly]);\n const triggerStatus = React.useMemo(() => {\n if (disableOpenPicker || !hasUIView) {\n return 'hidden';\n }\n if (disabled || readOnly) {\n return 'disabled';\n }\n return 'enabled';\n }, [disableOpenPicker, hasUIView, disabled, readOnly]);\n const wrappedGoToNextStep = useEventCallback(goToNextStep);\n const defaultActionBarActions = React.useMemo(() => {\n if (closeOnSelect && !hasSeveralSteps) {\n return [];\n }\n return ['cancel', 'nextOrAccept'];\n }, [closeOnSelect, hasSeveralSteps]);\n const actionsContextValue = React.useMemo(() => ({\n setValue,\n setOpen,\n clearValue,\n setValueToToday,\n acceptValueChanges,\n cancelValueChanges,\n setView,\n goToNextStep: wrappedGoToNextStep\n }), [setValue, setOpen, clearValue, setValueToToday, acceptValueChanges, cancelValueChanges, setView, wrappedGoToNextStep]);\n const contextValue = React.useMemo(() => _extends({}, actionsContextValue, {\n value,\n timezone,\n open: state.open,\n views,\n view: popperView,\n initialView,\n disabled: disabled ?? false,\n readOnly: readOnly ?? false,\n autoFocus: autoFocus ?? false,\n variant,\n orientation,\n popupRef,\n reduceAnimations,\n triggerRef,\n triggerStatus,\n hasNextStep,\n fieldFormat: format ?? '',\n name,\n label,\n rootSx: sx,\n rootRef,\n rootClassName: className\n }), [actionsContextValue, value, rootRef, variant, orientation, reduceAnimations, disabled, readOnly, format, className, name, label, sx, triggerStatus, hasNextStep, timezone, state.open, popperView, views, initialView, autoFocus]);\n const privateContextValue = React.useMemo(() => ({\n dismissViews,\n ownerState,\n hasUIView,\n getCurrentViewMode,\n rootRefObject,\n labelId,\n triggerElement,\n viewContainerRole,\n defaultActionBarActions,\n onPopperExited\n }), [dismissViews, ownerState, hasUIView, getCurrentViewMode, labelId, triggerElement, viewContainerRole, defaultActionBarActions, onPopperExited]);\n const fieldPrivateContextValue = React.useMemo(() => ({\n formatDensity,\n enableAccessibleFieldDOMStructure,\n selectedSections,\n onSelectedSectionsChange,\n fieldRef\n }), [formatDensity, enableAccessibleFieldDOMStructure, selectedSections, onSelectedSectionsChange, fieldRef]);\n const isValidContextValue = testedValue => {\n const error = validator({\n adapter,\n value: testedValue,\n timezone,\n props\n });\n return !valueManager.hasError(error);\n };\n const renderCurrentView = () => {\n if (popperView == null) {\n return null;\n }\n const renderer = viewRenderers[popperView];\n if (renderer == null) {\n return null;\n }\n const rendererProps = _extends({}, propsToForwardToView, {\n views,\n timezone,\n value: viewValue,\n onChange: setValueAndGoToNextView,\n view: popperView,\n onViewChange: setView,\n showViewSwitcher: timeViewsCount > 1,\n timeViewsCount\n }, viewContainerRole === 'tooltip' ? {\n focusedView: null,\n onFocusedViewChange: () => {}\n } : {\n focusedView,\n onFocusedViewChange: setFocusedView\n });\n if (RendererInterceptor) {\n return /*#__PURE__*/_jsx(RendererInterceptor, {\n viewRenderers: viewRenderers,\n popperView: popperView,\n rendererProps: rendererProps\n });\n }\n return renderer(rendererProps);\n };\n return {\n providerProps: {\n localeText,\n contextValue,\n privateContextValue,\n actionsContextValue,\n fieldPrivateContextValue,\n isValidContextValue\n },\n renderCurrentView,\n ownerState\n };\n};","import generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nexport function getPickersLayoutUtilityClass(slot) {\n return generateUtilityClass('MuiPickersLayout', slot);\n}\nexport const pickersLayoutClasses = generateUtilityClasses('MuiPickersLayout', ['root', 'landscape', 'contentWrapper', 'toolbar', 'actionBar', 'tabs', 'shortcuts']);","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"actions\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport Button from '@mui/material/Button';\nimport DialogActions from '@mui/material/DialogActions';\nimport { usePickerTranslations } from \"../hooks/usePickerTranslations.js\";\nimport { usePickerContext } from \"../hooks/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PickersActionBarRoot = styled(DialogActions, {\n name: 'MuiPickersLayout',\n slot: 'ActionBar'\n})({});\n\n/**\n * Demos:\n *\n * - [Custom slots and subcomponents](https://mui.com/x/react-date-pickers/custom-components/)\n * - [Custom layout](https://mui.com/x/react-date-pickers/custom-layout/)\n *\n * API:\n *\n * - [PickersActionBar API](https://mui.com/x/api/date-pickers/pickers-action-bar/)\n */\nfunction PickersActionBarComponent(props) {\n const {\n actions\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const translations = usePickerTranslations();\n const {\n clearValue,\n setValueToToday,\n acceptValueChanges,\n cancelValueChanges,\n goToNextStep,\n hasNextStep\n } = usePickerContext();\n if (actions == null || actions.length === 0) {\n return null;\n }\n const buttons = actions?.map(actionType => {\n switch (actionType) {\n case 'clear':\n return /*#__PURE__*/_jsx(Button, {\n onClick: clearValue,\n children: translations.clearButtonLabel\n }, actionType);\n case 'cancel':\n return /*#__PURE__*/_jsx(Button, {\n onClick: cancelValueChanges,\n children: translations.cancelButtonLabel\n }, actionType);\n case 'accept':\n return /*#__PURE__*/_jsx(Button, {\n onClick: acceptValueChanges,\n children: translations.okButtonLabel\n }, actionType);\n case 'today':\n return /*#__PURE__*/_jsx(Button, {\n onClick: setValueToToday,\n children: translations.todayButtonLabel\n }, actionType);\n case 'next':\n return /*#__PURE__*/_jsx(Button, {\n onClick: goToNextStep,\n children: translations.nextStepButtonLabel\n }, actionType);\n case 'nextOrAccept':\n if (hasNextStep) {\n return /*#__PURE__*/_jsx(Button, {\n onClick: goToNextStep,\n children: translations.nextStepButtonLabel\n }, actionType);\n }\n return /*#__PURE__*/_jsx(Button, {\n onClick: acceptValueChanges,\n children: translations.okButtonLabel\n }, actionType);\n default:\n return null;\n }\n });\n return /*#__PURE__*/_jsx(PickersActionBarRoot, _extends({}, other, {\n children: buttons\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? PickersActionBarComponent.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Ordered array of actions to display.\n * If empty, does not display that action bar.\n * @default\n * - `[]` for Desktop Date Picker and Desktop Date Range Picker\n * - `['cancel', 'accept']` for all other Pickers\n */\n actions: PropTypes.arrayOf(PropTypes.oneOf(['accept', 'cancel', 'clear', 'next', 'nextOrAccept', 'today']).isRequired),\n /**\n * If `true`, the actions do not have additional margin.\n * @default false\n */\n disableSpacing: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nconst PickersActionBar = /*#__PURE__*/React.memo(PickersActionBarComponent);\nexport { PickersActionBar };","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"items\", \"changeImportance\"],\n _excluded2 = [\"getValue\"];\nimport * as React from 'react';\nimport { styled } from '@mui/material/styles';\nimport PropTypes from 'prop-types';\nimport List from '@mui/material/List';\nimport ListItem from '@mui/material/ListItem';\nimport Chip from '@mui/material/Chip';\nimport { VIEW_HEIGHT } from \"../internals/constants/dimensions.js\";\nimport { useIsValidValue, usePickerActionsContext } from \"../hooks/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PickersShortcutsRoot = styled(List, {\n name: 'MuiPickersLayout',\n slot: 'Shortcuts'\n})({});\n\n/**\n * Demos:\n *\n * - [Shortcuts](https://mui.com/x/react-date-pickers/shortcuts/)\n *\n * API:\n *\n * - [PickersShortcuts API](https://mui.com/x/api/date-pickers/pickers-shortcuts/)\n */\nfunction PickersShortcuts(props) {\n const {\n items,\n changeImportance = 'accept'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n setValue\n } = usePickerActionsContext();\n const isValidValue = useIsValidValue();\n if (items == null || items.length === 0) {\n return null;\n }\n const resolvedItems = items.map(_ref => {\n let {\n getValue\n } = _ref,\n item = _objectWithoutPropertiesLoose(_ref, _excluded2);\n const newValue = getValue({\n isValid: isValidValue\n });\n return _extends({}, item, {\n label: item.label,\n onClick: () => {\n setValue(newValue, {\n changeImportance,\n shortcut: item\n });\n },\n disabled: !isValidValue(newValue)\n });\n });\n return /*#__PURE__*/_jsx(PickersShortcutsRoot, _extends({\n dense: true,\n sx: [{\n maxHeight: VIEW_HEIGHT,\n maxWidth: 200,\n overflow: 'auto'\n }, ...(Array.isArray(other.sx) ? other.sx : [other.sx])]\n }, other, {\n children: resolvedItems.map(item => {\n return /*#__PURE__*/_jsx(ListItem, {\n children: /*#__PURE__*/_jsx(Chip, _extends({}, item))\n }, item.id ?? item.label);\n })\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? PickersShortcuts.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Importance of the change when picking a shortcut:\n * - \"accept\": fires `onChange`, fires `onAccept` and closes the Picker.\n * - \"set\": fires `onChange` but do not fire `onAccept` and does not close the Picker.\n * @default \"accept\"\n */\n changeImportance: PropTypes.oneOf(['accept', 'set']),\n className: PropTypes.string,\n component: PropTypes.elementType,\n /**\n * If `true`, compact vertical padding designed for keyboard and mouse input is used for\n * the list and list items.\n * The prop is available to descendant components as the `dense` context.\n * @default false\n */\n dense: PropTypes.bool,\n /**\n * If `true`, vertical padding is removed from the list.\n * @default false\n */\n disablePadding: PropTypes.bool,\n /**\n * Ordered array of shortcuts to display.\n * If empty, does not display the shortcuts.\n * @default []\n */\n items: PropTypes.arrayOf(PropTypes.shape({\n getValue: PropTypes.func.isRequired,\n id: PropTypes.string,\n label: PropTypes.string.isRequired\n })),\n style: PropTypes.object,\n /**\n * The content of the subheader, normally `ListSubheader`.\n */\n subheader: PropTypes.node,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport { PickersShortcuts };","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"ownerState\"];\nimport * as React from 'react';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { PickersActionBar } from \"../PickersActionBar/index.js\";\nimport { getPickersLayoutUtilityClass } from \"./pickersLayoutClasses.js\";\nimport { PickersShortcuts } from \"../PickersShortcuts/index.js\";\nimport { usePickerPrivateContext } from \"../internals/hooks/usePickerPrivateContext.js\";\nimport { usePickerContext } from \"../hooks/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction toolbarHasView(toolbarProps) {\n return toolbarProps.view !== null;\n}\nconst useUtilityClasses = (classes, ownerState) => {\n const {\n pickerOrientation\n } = ownerState;\n const slots = {\n root: ['root', pickerOrientation === 'landscape' && 'landscape'],\n contentWrapper: ['contentWrapper'],\n toolbar: ['toolbar'],\n actionBar: ['actionBar'],\n tabs: ['tabs'],\n landscape: ['landscape'],\n shortcuts: ['shortcuts']\n };\n return composeClasses(slots, getPickersLayoutUtilityClass, classes);\n};\nconst usePickerLayout = props => {\n const {\n ownerState: pickerOwnerState,\n defaultActionBarActions\n } = usePickerPrivateContext();\n const {\n view\n } = usePickerContext();\n const isRtl = useRtl();\n const {\n children,\n slots,\n slotProps,\n classes: classesProp\n } = props;\n const ownerState = React.useMemo(() => _extends({}, pickerOwnerState, {\n layoutDirection: isRtl ? 'rtl' : 'ltr'\n }), [pickerOwnerState, isRtl]);\n const classes = useUtilityClasses(classesProp, ownerState);\n\n // Action bar\n const ActionBar = slots?.actionBar ?? PickersActionBar;\n const _useSlotProps = useSlotProps({\n elementType: ActionBar,\n externalSlotProps: slotProps?.actionBar,\n additionalProps: {\n actions: defaultActionBarActions\n },\n className: classes.actionBar,\n ownerState\n }),\n actionBarProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded);\n const actionBar = /*#__PURE__*/_jsx(ActionBar, _extends({}, actionBarProps));\n\n // Toolbar\n const Toolbar = slots?.toolbar;\n const toolbarProps = useSlotProps({\n elementType: Toolbar,\n externalSlotProps: slotProps?.toolbar,\n className: classes.toolbar,\n ownerState\n });\n const toolbar = toolbarHasView(toolbarProps) && !!Toolbar ? /*#__PURE__*/_jsx(Toolbar, _extends({}, toolbarProps)) : null;\n\n // Content\n const content = children;\n\n // Tabs\n const Tabs = slots?.tabs;\n const tabs = view && Tabs ? /*#__PURE__*/_jsx(Tabs, _extends({\n className: classes.tabs\n }, slotProps?.tabs)) : null;\n\n // Shortcuts\n const Shortcuts = slots?.shortcuts ?? PickersShortcuts;\n const shortcutsProps = useSlotProps({\n elementType: Shortcuts,\n externalSlotProps: slotProps?.shortcuts,\n className: classes.shortcuts,\n ownerState\n });\n const shortcuts = view && !!Shortcuts ? /*#__PURE__*/_jsx(Shortcuts, _extends({}, shortcutsProps)) : null;\n return {\n toolbar,\n content,\n tabs,\n actionBar,\n shortcuts,\n ownerState\n };\n};\nexport default usePickerLayout;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { pickersLayoutClasses, getPickersLayoutUtilityClass } from \"./pickersLayoutClasses.js\";\nimport usePickerLayout from \"./usePickerLayout.js\";\nimport { usePickerContext } from \"../hooks/usePickerContext.js\";\nimport { jsxs as _jsxs, jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = (classes, ownerState) => {\n const {\n pickerOrientation\n } = ownerState;\n const slots = {\n root: ['root', pickerOrientation === 'landscape' && 'landscape'],\n contentWrapper: ['contentWrapper']\n };\n return composeClasses(slots, getPickersLayoutUtilityClass, classes);\n};\nexport const PickersLayoutRoot = styled('div', {\n name: 'MuiPickersLayout',\n slot: 'Root'\n})({\n display: 'grid',\n gridAutoColumns: 'max-content auto max-content',\n gridAutoRows: 'max-content auto max-content',\n [`& .${pickersLayoutClasses.actionBar}`]: {\n gridColumn: '1 / 4',\n gridRow: 3\n },\n variants: [{\n props: {\n pickerOrientation: 'landscape'\n },\n style: {\n [`& .${pickersLayoutClasses.toolbar}`]: {\n gridColumn: 1,\n gridRow: '2 / 3'\n },\n [`.${pickersLayoutClasses.shortcuts}`]: {\n gridColumn: '2 / 4',\n gridRow: 1\n }\n }\n }, {\n props: {\n pickerOrientation: 'landscape',\n layoutDirection: 'rtl'\n },\n style: {\n [`& .${pickersLayoutClasses.toolbar}`]: {\n gridColumn: 3\n }\n }\n }, {\n props: {\n pickerOrientation: 'portrait'\n },\n style: {\n [`& .${pickersLayoutClasses.toolbar}`]: {\n gridColumn: '2 / 4',\n gridRow: 1\n },\n [`& .${pickersLayoutClasses.shortcuts}`]: {\n gridColumn: 1,\n gridRow: '2 / 3'\n }\n }\n }, {\n props: {\n pickerOrientation: 'portrait',\n layoutDirection: 'rtl'\n },\n style: {\n [`& .${pickersLayoutClasses.shortcuts}`]: {\n gridColumn: 3\n }\n }\n }]\n});\nexport const PickersLayoutContentWrapper = styled('div', {\n name: 'MuiPickersLayout',\n slot: 'ContentWrapper'\n})({\n gridColumn: '2 / 4',\n gridRow: 2,\n display: 'flex',\n flexDirection: 'column'\n});\n/**\n * Demos:\n *\n * - [Custom layout](https://mui.com/x/react-date-pickers/custom-layout/)\n *\n * API:\n *\n * - [PickersLayout API](https://mui.com/x/api/date-pickers/pickers-layout/)\n */\nconst PickersLayout = /*#__PURE__*/React.forwardRef(function PickersLayout(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersLayout'\n });\n const {\n toolbar,\n content,\n tabs,\n actionBar,\n shortcuts,\n ownerState\n } = usePickerLayout(props);\n const {\n orientation,\n variant\n } = usePickerContext();\n const {\n sx,\n className,\n classes: classesProp\n } = props;\n const classes = useUtilityClasses(classesProp, ownerState);\n return /*#__PURE__*/_jsxs(PickersLayoutRoot, {\n ref: ref,\n sx: sx,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n children: [orientation === 'landscape' ? shortcuts : toolbar, orientation === 'landscape' ? toolbar : shortcuts, /*#__PURE__*/_jsx(PickersLayoutContentWrapper, {\n className: classes.contentWrapper,\n ownerState: ownerState,\n children: variant === 'desktop' ? /*#__PURE__*/_jsxs(React.Fragment, {\n children: [content, tabs]\n }) : /*#__PURE__*/_jsxs(React.Fragment, {\n children: [tabs, content]\n })\n }), actionBar]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersLayout.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport { PickersLayout };","import { createStepNavigation } from \"./createStepNavigation.js\";\nexport function createNonRangePickerStepNavigation(parameters) {\n const {\n steps\n } = parameters;\n return createStepNavigation({\n steps,\n isViewMatchingStep: (view, step) => {\n return step.views == null || step.views.includes(view);\n },\n onStepChange: ({\n step,\n defaultView,\n setView,\n view,\n views\n }) => {\n const targetView = step.views == null ? defaultView : step.views.find(viewBis => views.includes(viewBis));\n if (targetView !== view) {\n setView(targetView);\n }\n }\n });\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"props\", \"steps\"],\n _excluded2 = [\"ownerState\"];\nimport * as React from 'react';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport { PickerPopper } from \"../../components/PickerPopper/PickerPopper.js\";\nimport { usePicker } from \"../usePicker/index.js\";\nimport { PickersLayout } from \"../../../PickersLayout/index.js\";\nimport { PickerProvider } from \"../../components/PickerProvider.js\";\nimport { PickerFieldUIContextProvider } from \"../../components/PickerFieldUI.js\";\nimport { createNonRangePickerStepNavigation } from \"../../utils/createNonRangePickerStepNavigation.js\";\n\n/**\n * Hook managing all the single-date desktop pickers:\n * - DesktopDatePicker\n * - DesktopDateTimePicker\n * - DesktopTimePicker\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const useDesktopPicker = _ref => {\n let {\n props,\n steps\n } = _ref,\n pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);\n const {\n slots,\n slotProps: innerSlotProps,\n label,\n inputRef,\n localeText\n } = props;\n const getStepNavigation = createNonRangePickerStepNavigation({\n steps\n });\n const {\n providerProps,\n renderCurrentView,\n ownerState\n } = usePicker(_extends({}, pickerParams, {\n props,\n localeText,\n autoFocusView: true,\n viewContainerRole: 'dialog',\n variant: 'desktop',\n getStepNavigation\n }));\n const labelId = providerProps.privateContextValue.labelId;\n const isToolbarHidden = innerSlotProps?.toolbar?.hidden ?? false;\n const Field = slots.field;\n const _useSlotProps = useSlotProps({\n elementType: Field,\n externalSlotProps: innerSlotProps?.field,\n additionalProps: _extends({}, isToolbarHidden && {\n id: labelId\n }),\n ownerState\n }),\n fieldProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2);\n const Layout = slots.layout ?? PickersLayout;\n let labelledById = labelId;\n if (isToolbarHidden) {\n if (label) {\n labelledById = `${labelId}-label`;\n } else {\n labelledById = undefined;\n }\n }\n const slotProps = _extends({}, innerSlotProps, {\n toolbar: _extends({}, innerSlotProps?.toolbar, {\n titleId: labelId\n }),\n popper: _extends({\n 'aria-labelledby': labelledById\n }, innerSlotProps?.popper)\n });\n const renderPicker = () => /*#__PURE__*/_jsx(PickerProvider, _extends({}, providerProps, {\n children: /*#__PURE__*/_jsxs(PickerFieldUIContextProvider, {\n slots: slots,\n slotProps: slotProps,\n inputRef: inputRef,\n children: [/*#__PURE__*/_jsx(Field, _extends({}, fieldProps)), /*#__PURE__*/_jsx(PickerPopper, {\n slots: slots,\n slotProps: slotProps,\n children: /*#__PURE__*/_jsx(Layout, _extends({}, slotProps?.layout, {\n slots: slots,\n slotProps: slotProps,\n children: renderCurrentView()\n }))\n })]\n })\n }));\n return {\n renderPicker\n };\n};","import * as React from 'react';\nimport { DateCalendar } from \"../DateCalendar/index.js\";\nimport { isDatePickerView } from \"../internals/utils/date-utils.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const renderDateViewCalendar = ({\n view,\n onViewChange,\n views,\n focusedView,\n onFocusedViewChange,\n value,\n defaultValue,\n referenceDate,\n onChange,\n className,\n classes,\n disableFuture,\n disablePast,\n minDate,\n maxDate,\n shouldDisableDate,\n shouldDisableMonth,\n shouldDisableYear,\n reduceAnimations,\n onMonthChange,\n monthsPerRow,\n onYearChange,\n yearsOrder,\n yearsPerRow,\n slots,\n slotProps,\n loading,\n renderLoading,\n disableHighlightToday,\n readOnly,\n disabled,\n showDaysOutsideCurrentMonth,\n dayOfWeekFormatter,\n sx,\n autoFocus,\n fixedWeekNumber,\n displayWeekNumber,\n timezone\n}) => /*#__PURE__*/_jsx(DateCalendar, {\n view: view,\n onViewChange: onViewChange,\n views: views.filter(isDatePickerView),\n focusedView: focusedView && isDatePickerView(focusedView) ? focusedView : null,\n onFocusedViewChange: onFocusedViewChange,\n value: value,\n defaultValue: defaultValue,\n referenceDate: referenceDate,\n onChange: onChange,\n className: className,\n classes: classes,\n disableFuture: disableFuture,\n disablePast: disablePast,\n minDate: minDate,\n maxDate: maxDate,\n shouldDisableDate: shouldDisableDate,\n shouldDisableMonth: shouldDisableMonth,\n shouldDisableYear: shouldDisableYear,\n reduceAnimations: reduceAnimations,\n onMonthChange: onMonthChange,\n monthsPerRow: monthsPerRow,\n onYearChange: onYearChange,\n yearsOrder: yearsOrder,\n yearsPerRow: yearsPerRow,\n slots: slots,\n slotProps: slotProps,\n loading: loading,\n renderLoading: renderLoading,\n disableHighlightToday: disableHighlightToday,\n readOnly: readOnly,\n disabled: disabled,\n showDaysOutsideCurrentMonth: showDaysOutsideCurrentMonth,\n dayOfWeekFormatter: dayOfWeekFormatter,\n sx: sx,\n autoFocus: autoFocus,\n fixedWeekNumber: fixedWeekNumber,\n displayWeekNumber: displayWeekNumber,\n timezone: timezone\n});","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport { refType } from '@mui/utils';\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { useDatePickerDefaultizedProps } from \"../DatePicker/shared.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { validateDate, extractValidationProps } from \"../validation/index.js\";\nimport { useDesktopPicker } from \"../internals/hooks/useDesktopPicker/index.js\";\nimport { DateField } from \"../DateField/index.js\";\nimport { renderDateViewCalendar } from \"../dateViewRenderers/index.js\";\nimport { resolveDateFormat } from \"../internals/utils/date-utils.js\";\n/**\n * Demos:\n *\n * - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [DesktopDatePicker API](https://mui.com/x/api/date-pickers/desktop-date-picker/)\n */\nconst DesktopDatePicker = /*#__PURE__*/React.forwardRef(function DesktopDatePicker(inProps, ref) {\n const utils = useUtils();\n\n // Props with the default values common to all date pickers\n const defaultizedProps = useDatePickerDefaultizedProps(inProps, 'MuiDesktopDatePicker');\n const viewRenderers = _extends({\n day: renderDateViewCalendar,\n month: renderDateViewCalendar,\n year: renderDateViewCalendar\n }, defaultizedProps.viewRenderers);\n\n // Props with the default values specific to the desktop variant\n const props = _extends({}, defaultizedProps, {\n closeOnSelect: defaultizedProps.closeOnSelect ?? true,\n viewRenderers,\n format: resolveDateFormat(utils, defaultizedProps, false),\n yearsPerRow: defaultizedProps.yearsPerRow ?? 4,\n slots: _extends({\n field: DateField\n }, defaultizedProps.slots),\n slotProps: _extends({}, defaultizedProps.slotProps, {\n field: ownerState => _extends({}, resolveComponentProps(defaultizedProps.slotProps?.field, ownerState), extractValidationProps(defaultizedProps)),\n toolbar: _extends({\n hidden: true\n }, defaultizedProps.slotProps?.toolbar)\n })\n });\n const {\n renderPicker\n } = useDesktopPicker({\n ref,\n props,\n valueManager: singleItemValueManager,\n valueType: 'date',\n validator: validateDate,\n steps: null\n });\n return renderPicker();\n});\nDesktopDatePicker.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, the Picker will close after submitting the full date.\n * @default true\n */\n closeOnSelect: PropTypes.bool,\n /**\n * Formats the day of week displayed in the calendar header.\n * @param {PickerValidDate} date The date of the day of week provided by the adapter.\n * @returns {string} The name to display.\n * @default (date: PickerValidDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()\n */\n dayOfWeekFormatter: PropTypes.func,\n /**\n * The default value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the component is disabled.\n * When disabled, the value cannot be changed and no interaction is possible.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, the button to open the Picker will not be rendered (it will only render the field).\n * @deprecated Use the [field component](https://mui.com/x/react-date-pickers/fields/) instead.\n * @default false\n */\n disableOpenPicker: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * If `true`, the week number will be display in the calendar.\n */\n displayWeekNumber: PropTypes.bool,\n /**\n * @default true\n */\n enableAccessibleFieldDOMStructure: PropTypes.any,\n /**\n * The day view will show as many weeks as needed after the end of the current month to match this value.\n * Put it to 6 to have a fixed number of weeks in Gregorian calendars\n */\n fixedWeekNumber: PropTypes.number,\n /**\n * Format of the date when rendered in the input(s).\n * Defaults to localized format based on the used `views`.\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * If `true`, calls `renderLoading` instead of rendering the day calendar.\n * Can be used to preload information and show it in calendar.\n * @default false\n */\n loading: PropTypes.bool,\n /**\n * Locale for components texts.\n * Allows overriding texts coming from `LocalizationProvider` and `theme`.\n */\n localeText: PropTypes.object,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Months rendered per row.\n * @default 3\n */\n monthsPerRow: PropTypes.oneOf([3, 4]),\n /**\n * Name attribute used by the `input` element in the Field.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is accepted.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The value that was just accepted.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onAccept: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see `open`).\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired on month change.\n * @param {PickerValidDate} month The new month.\n */\n onMonthChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see `open`).\n */\n onOpen: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * Callback fired on year change.\n * @param {PickerValidDate} year The new year.\n */\n onYearChange: PropTypes.func,\n /**\n * Control the popup or dialog open state.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['day', 'month', 'year']),\n /**\n * Force rendering in particular orientation.\n */\n orientation: PropTypes.oneOf(['landscape', 'portrait']),\n /**\n * If `true`, the component is read-only.\n * When read-only, the value cannot be changed but the user can interact with the interface.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.\n */\n referenceDate: PropTypes.object,\n /**\n * Component displaying when passed `loading` true.\n * @returns {React.ReactNode} The node to render when loading.\n * @default () => <span>...</span>\n */\n renderLoading: PropTypes.func,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @param {PickerValidDate} day The date to test.\n * @returns {boolean} If `true` the date will be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * Disable specific month.\n * @param {PickerValidDate} month The month to test.\n * @returns {boolean} If `true`, the month will be disabled.\n */\n shouldDisableMonth: PropTypes.func,\n /**\n * Disable specific year.\n * @param {PickerValidDate} year The year to test.\n * @returns {boolean} If `true`, the year will be disabled.\n */\n shouldDisableYear: PropTypes.func,\n /**\n * If `true`, days outside the current month are rendered:\n *\n * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.\n *\n * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.\n *\n * - ignored if `calendars` equals more than `1` on range pickers.\n * @default false\n */\n showDaysOutsideCurrentMonth: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['day', 'month', 'year']),\n /**\n * Define custom view renderers for each section.\n * If `null`, the section will only have field editing.\n * If `undefined`, internally defined view will be used.\n */\n viewRenderers: PropTypes.shape({\n day: PropTypes.func,\n month: PropTypes.func,\n year: PropTypes.func\n }),\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'month', 'year']).isRequired),\n /**\n * Years are displayed in ascending (chronological) order by default.\n * If `desc`, years are displayed in descending order.\n * @default 'asc'\n */\n yearsOrder: PropTypes.oneOf(['asc', 'desc']),\n /**\n * Years rendered per row.\n * @default 4\n */\n yearsPerRow: PropTypes.oneOf([3, 4])\n};\nexport { DesktopDatePicker };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport DialogContent from '@mui/material/DialogContent';\nimport Fade from '@mui/material/Fade';\nimport MuiDialog, { dialogClasses } from '@mui/material/Dialog';\nimport { styled } from '@mui/material/styles';\nimport { DIALOG_WIDTH } from \"../constants/dimensions.js\";\nimport { usePickerContext } from \"../../hooks/index.js\";\nimport { usePickerPrivateContext } from \"../hooks/usePickerPrivateContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PickersModalDialogRoot = styled(MuiDialog)({\n [`& .${dialogClasses.container}`]: {\n outline: 0\n },\n [`& .${dialogClasses.paper}`]: {\n outline: 0,\n minWidth: DIALOG_WIDTH\n }\n});\nconst PickersModalDialogContent = styled(DialogContent)({\n '&:first-of-type': {\n padding: 0\n }\n});\nexport function PickersModalDialog(props) {\n const {\n children,\n slots,\n slotProps\n } = props;\n const {\n open\n } = usePickerContext();\n const {\n dismissViews\n } = usePickerPrivateContext();\n const Dialog = slots?.dialog ?? PickersModalDialogRoot;\n const Transition = slots?.mobileTransition ?? Fade;\n return /*#__PURE__*/_jsx(Dialog, _extends({\n open: open,\n onClose: dismissViews\n }, slotProps?.dialog, {\n TransitionComponent: Transition,\n TransitionProps: slotProps?.mobileTransition,\n PaperComponent: slots?.mobilePaper,\n PaperProps: slotProps?.mobilePaper,\n children: /*#__PURE__*/_jsx(PickersModalDialogContent, {\n children: children\n })\n }));\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"props\", \"steps\"],\n _excluded2 = [\"ownerState\"];\nimport * as React from 'react';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport { PickersModalDialog } from \"../../components/PickersModalDialog.js\";\nimport { usePicker } from \"../usePicker/index.js\";\nimport { PickersLayout } from \"../../../PickersLayout/index.js\";\nimport { PickerProvider } from \"../../components/PickerProvider.js\";\nimport { PickerFieldUIContextProvider } from \"../../components/PickerFieldUI.js\";\nimport { createNonRangePickerStepNavigation } from \"../../utils/createNonRangePickerStepNavigation.js\";\n\n/**\n * Hook managing all the single-date mobile pickers:\n * - MobileDatePicker\n * - MobileDateTimePicker\n * - MobileTimePicker\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const useMobilePicker = _ref => {\n let {\n props,\n steps\n } = _ref,\n pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);\n const {\n slots,\n slotProps: innerSlotProps,\n label,\n inputRef,\n localeText\n } = props;\n const getStepNavigation = createNonRangePickerStepNavigation({\n steps\n });\n const {\n providerProps,\n renderCurrentView,\n ownerState\n } = usePicker(_extends({}, pickerParams, {\n props,\n localeText,\n autoFocusView: true,\n viewContainerRole: 'dialog',\n variant: 'mobile',\n getStepNavigation\n }));\n const labelId = providerProps.privateContextValue.labelId;\n const isToolbarHidden = innerSlotProps?.toolbar?.hidden ?? false;\n const Field = slots.field;\n const _useSlotProps = useSlotProps({\n elementType: Field,\n externalSlotProps: innerSlotProps?.field,\n additionalProps: _extends({}, isToolbarHidden && {\n id: labelId\n }),\n ownerState\n }),\n fieldProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2);\n const Layout = slots.layout ?? PickersLayout;\n let labelledById = labelId;\n if (isToolbarHidden) {\n if (label) {\n labelledById = `${labelId}-label`;\n } else {\n labelledById = undefined;\n }\n }\n const slotProps = _extends({}, innerSlotProps, {\n toolbar: _extends({}, innerSlotProps?.toolbar, {\n titleId: labelId\n }),\n mobilePaper: _extends({\n 'aria-labelledby': labelledById\n }, innerSlotProps?.mobilePaper)\n });\n const renderPicker = () => /*#__PURE__*/_jsx(PickerProvider, _extends({}, providerProps, {\n children: /*#__PURE__*/_jsxs(PickerFieldUIContextProvider, {\n slots: slots,\n slotProps: slotProps,\n inputRef: inputRef,\n children: [/*#__PURE__*/_jsx(Field, _extends({}, fieldProps)), /*#__PURE__*/_jsx(PickersModalDialog, {\n slots: slots,\n slotProps: slotProps,\n children: /*#__PURE__*/_jsx(Layout, _extends({}, slotProps?.layout, {\n slots: slots,\n slotProps: slotProps,\n children: renderCurrentView()\n }))\n })]\n })\n }));\n return {\n renderPicker\n };\n};","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport { refType } from '@mui/utils';\nimport { useMobilePicker } from \"../internals/hooks/useMobilePicker/index.js\";\nimport { useDatePickerDefaultizedProps } from \"../DatePicker/shared.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { extractValidationProps, validateDate } from \"../validation/index.js\";\nimport { DateField } from \"../DateField/index.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { renderDateViewCalendar } from \"../dateViewRenderers/index.js\";\nimport { resolveDateFormat } from \"../internals/utils/date-utils.js\";\n/**\n * Demos:\n *\n * - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [MobileDatePicker API](https://mui.com/x/api/date-pickers/mobile-date-picker/)\n */\nconst MobileDatePicker = /*#__PURE__*/React.forwardRef(function MobileDatePicker(inProps, ref) {\n const utils = useUtils();\n\n // Props with the default values common to all date pickers\n const defaultizedProps = useDatePickerDefaultizedProps(inProps, 'MuiMobileDatePicker');\n const viewRenderers = _extends({\n day: renderDateViewCalendar,\n month: renderDateViewCalendar,\n year: renderDateViewCalendar\n }, defaultizedProps.viewRenderers);\n\n // Props with the default values specific to the mobile variant\n const props = _extends({}, defaultizedProps, {\n viewRenderers,\n format: resolveDateFormat(utils, defaultizedProps, false),\n slots: _extends({\n field: DateField\n }, defaultizedProps.slots),\n slotProps: _extends({}, defaultizedProps.slotProps, {\n field: ownerState => _extends({}, resolveComponentProps(defaultizedProps.slotProps?.field, ownerState), extractValidationProps(defaultizedProps)),\n toolbar: _extends({\n hidden: false\n }, defaultizedProps.slotProps?.toolbar)\n })\n });\n const {\n renderPicker\n } = useMobilePicker({\n ref,\n props,\n valueManager: singleItemValueManager,\n valueType: 'date',\n validator: validateDate,\n steps: null\n });\n return renderPicker();\n});\nMobileDatePicker.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, the Picker will close after submitting the full date.\n * @default false\n */\n closeOnSelect: PropTypes.bool,\n /**\n * Formats the day of week displayed in the calendar header.\n * @param {PickerValidDate} date The date of the day of week provided by the adapter.\n * @returns {string} The name to display.\n * @default (date: PickerValidDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()\n */\n dayOfWeekFormatter: PropTypes.func,\n /**\n * The default value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the component is disabled.\n * When disabled, the value cannot be changed and no interaction is possible.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, the button to open the Picker will not be rendered (it will only render the field).\n * @deprecated Use the [field component](https://mui.com/x/react-date-pickers/fields/) instead.\n * @default false\n */\n disableOpenPicker: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * If `true`, the week number will be display in the calendar.\n */\n displayWeekNumber: PropTypes.bool,\n /**\n * @default true\n */\n enableAccessibleFieldDOMStructure: PropTypes.any,\n /**\n * The day view will show as many weeks as needed after the end of the current month to match this value.\n * Put it to 6 to have a fixed number of weeks in Gregorian calendars\n */\n fixedWeekNumber: PropTypes.number,\n /**\n * Format of the date when rendered in the input(s).\n * Defaults to localized format based on the used `views`.\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * If `true`, calls `renderLoading` instead of rendering the day calendar.\n * Can be used to preload information and show it in calendar.\n * @default false\n */\n loading: PropTypes.bool,\n /**\n * Locale for components texts.\n * Allows overriding texts coming from `LocalizationProvider` and `theme`.\n */\n localeText: PropTypes.object,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Months rendered per row.\n * @default 3\n */\n monthsPerRow: PropTypes.oneOf([3, 4]),\n /**\n * Name attribute used by the `input` element in the Field.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is accepted.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The value that was just accepted.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onAccept: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see `open`).\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired on month change.\n * @param {PickerValidDate} month The new month.\n */\n onMonthChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see `open`).\n */\n onOpen: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * Callback fired on year change.\n * @param {PickerValidDate} year The new year.\n */\n onYearChange: PropTypes.func,\n /**\n * Control the popup or dialog open state.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['day', 'month', 'year']),\n /**\n * Force rendering in particular orientation.\n */\n orientation: PropTypes.oneOf(['landscape', 'portrait']),\n /**\n * If `true`, the component is read-only.\n * When read-only, the value cannot be changed but the user can interact with the interface.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.\n */\n referenceDate: PropTypes.object,\n /**\n * Component displaying when passed `loading` true.\n * @returns {React.ReactNode} The node to render when loading.\n * @default () => <span>...</span>\n */\n renderLoading: PropTypes.func,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @param {PickerValidDate} day The date to test.\n * @returns {boolean} If `true` the date will be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * Disable specific month.\n * @param {PickerValidDate} month The month to test.\n * @returns {boolean} If `true`, the month will be disabled.\n */\n shouldDisableMonth: PropTypes.func,\n /**\n * Disable specific year.\n * @param {PickerValidDate} year The year to test.\n * @returns {boolean} If `true`, the year will be disabled.\n */\n shouldDisableYear: PropTypes.func,\n /**\n * If `true`, days outside the current month are rendered:\n *\n * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.\n *\n * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.\n *\n * - ignored if `calendars` equals more than `1` on range pickers.\n * @default false\n */\n showDaysOutsideCurrentMonth: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['day', 'month', 'year']),\n /**\n * Define custom view renderers for each section.\n * If `null`, the section will only have field editing.\n * If `undefined`, internally defined view will be used.\n */\n viewRenderers: PropTypes.shape({\n day: PropTypes.func,\n month: PropTypes.func,\n year: PropTypes.func\n }),\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'month', 'year']).isRequired),\n /**\n * Years are displayed in ascending (chronological) order by default.\n * If `desc`, years are displayed in descending order.\n * @default 'asc'\n */\n yearsOrder: PropTypes.oneOf(['asc', 'desc']),\n /**\n * Years rendered per row.\n * @default 3\n */\n yearsPerRow: PropTypes.oneOf([3, 4])\n};\nexport { MobileDatePicker };","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"desktopModeMediaQuery\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport { useThemeProps } from '@mui/material/styles';\nimport { refType } from '@mui/utils';\nimport { DesktopDatePicker } from \"../DesktopDatePicker/index.js\";\nimport { MobileDatePicker } from \"../MobileDatePicker/index.js\";\nimport { DEFAULT_DESKTOP_MODE_MEDIA_QUERY } from \"../internals/utils/utils.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Demos:\n *\n * - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [DatePicker API](https://mui.com/x/api/date-pickers/date-picker/)\n */\nconst DatePicker = /*#__PURE__*/React.forwardRef(function DatePicker(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiDatePicker'\n });\n const {\n desktopModeMediaQuery = DEFAULT_DESKTOP_MODE_MEDIA_QUERY\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n // defaults to `true` in environments where `window.matchMedia` would not be available (i.e. test/jsdom)\n const isDesktop = useMediaQuery(desktopModeMediaQuery, {\n defaultMatches: true\n });\n if (isDesktop) {\n return /*#__PURE__*/_jsx(DesktopDatePicker, _extends({\n ref: ref\n }, other));\n }\n return /*#__PURE__*/_jsx(MobileDatePicker, _extends({\n ref: ref\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? DatePicker.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, the Picker will close after submitting the full date.\n * @default `true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).\n */\n closeOnSelect: PropTypes.bool,\n /**\n * Formats the day of week displayed in the calendar header.\n * @param {PickerValidDate} date The date of the day of week provided by the adapter.\n * @returns {string} The name to display.\n * @default (date: PickerValidDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()\n */\n dayOfWeekFormatter: PropTypes.func,\n /**\n * The default value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * CSS media query when `Mobile` mode will be changed to `Desktop`.\n * @default '@media (pointer: fine)'\n * @example '@media (min-width: 720px)' or theme.breakpoints.up(\"sm\")\n */\n desktopModeMediaQuery: PropTypes.string,\n /**\n * If `true`, the component is disabled.\n * When disabled, the value cannot be changed and no interaction is possible.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, the button to open the Picker will not be rendered (it will only render the field).\n * @deprecated Use the [field component](https://mui.com/x/react-date-pickers/fields/) instead.\n * @default false\n */\n disableOpenPicker: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * If `true`, the week number will be display in the calendar.\n */\n displayWeekNumber: PropTypes.bool,\n /**\n * @default true\n */\n enableAccessibleFieldDOMStructure: PropTypes.any,\n /**\n * The day view will show as many weeks as needed after the end of the current month to match this value.\n * Put it to 6 to have a fixed number of weeks in Gregorian calendars\n */\n fixedWeekNumber: PropTypes.number,\n /**\n * Format of the date when rendered in the input(s).\n * Defaults to localized format based on the used `views`.\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * If `true`, calls `renderLoading` instead of rendering the day calendar.\n * Can be used to preload information and show it in calendar.\n * @default false\n */\n loading: PropTypes.bool,\n /**\n * Locale for components texts.\n * Allows overriding texts coming from `LocalizationProvider` and `theme`.\n */\n localeText: PropTypes.object,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Months rendered per row.\n * @default 3\n */\n monthsPerRow: PropTypes.oneOf([3, 4]),\n /**\n * Name attribute used by the `input` element in the Field.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is accepted.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The value that was just accepted.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onAccept: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see `open`).\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired on month change.\n * @param {PickerValidDate} month The new month.\n */\n onMonthChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see `open`).\n */\n onOpen: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * Callback fired on year change.\n * @param {PickerValidDate} year The new year.\n */\n onYearChange: PropTypes.func,\n /**\n * Control the popup or dialog open state.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['day', 'month', 'year']),\n /**\n * Force rendering in particular orientation.\n */\n orientation: PropTypes.oneOf(['landscape', 'portrait']),\n /**\n * If `true`, the component is read-only.\n * When read-only, the value cannot be changed but the user can interact with the interface.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.\n */\n referenceDate: PropTypes.object,\n /**\n * Component displaying when passed `loading` true.\n * @returns {React.ReactNode} The node to render when loading.\n * @default () => <span>...</span>\n */\n renderLoading: PropTypes.func,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @param {PickerValidDate} day The date to test.\n * @returns {boolean} If `true` the date will be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * Disable specific month.\n * @param {PickerValidDate} month The month to test.\n * @returns {boolean} If `true`, the month will be disabled.\n */\n shouldDisableMonth: PropTypes.func,\n /**\n * Disable specific year.\n * @param {PickerValidDate} year The year to test.\n * @returns {boolean} If `true`, the year will be disabled.\n */\n shouldDisableYear: PropTypes.func,\n /**\n * If `true`, days outside the current month are rendered:\n *\n * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.\n *\n * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.\n *\n * - ignored if `calendars` equals more than `1` on range pickers.\n * @default false\n */\n showDaysOutsideCurrentMonth: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['day', 'month', 'year']),\n /**\n * Define custom view renderers for each section.\n * If `null`, the section will only have field editing.\n * If `undefined`, internally defined view will be used.\n */\n viewRenderers: PropTypes.shape({\n day: PropTypes.func,\n month: PropTypes.func,\n year: PropTypes.func\n }),\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'month', 'year']).isRequired),\n /**\n * Years are displayed in ascending (chronological) order by default.\n * If `desc`, years are displayed in descending order.\n * @default 'asc'\n */\n yearsOrder: PropTypes.oneOf(['asc', 'desc']),\n /**\n * Years rendered per row.\n * @default 4 on desktop, 3 on mobile\n */\n yearsPerRow: PropTypes.oneOf([3, 4])\n} : void 0;\nexport { DatePicker };","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getPickersToolbarTextUtilityClass(slot) {\n return generateUtilityClass('MuiPickersToolbarText', slot);\n}\nexport const pickersToolbarTextClasses = generateUtilityClasses('MuiPickersToolbarText', ['root']);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\", \"classes\", \"selected\", \"value\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport Typography from '@mui/material/Typography';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { getPickersToolbarTextUtilityClass } from \"./pickersToolbarTextClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getPickersToolbarTextUtilityClass, classes);\n};\nconst PickersToolbarTextRoot = styled(Typography, {\n name: 'MuiPickersToolbarText',\n slot: 'Root'\n})(({\n theme\n}) => ({\n transition: theme.transitions.create('color'),\n color: (theme.vars || theme).palette.text.secondary,\n [`&[data-selected]`]: {\n color: (theme.vars || theme).palette.text.primary\n }\n}));\nexport const PickersToolbarText = /*#__PURE__*/React.forwardRef(function PickersToolbarText(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersToolbarText'\n });\n const {\n className,\n classes: classesProp,\n selected,\n value\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const classes = useUtilityClasses(classesProp);\n return /*#__PURE__*/_jsx(PickersToolbarTextRoot, _extends({\n ref: ref,\n className: clsx(classes.root, className),\n component: \"span\",\n ownerState: props\n }, selected && {\n 'data-selected': true\n }, other, {\n children: value\n }));\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"align\", \"className\", \"classes\", \"selected\", \"typographyClassName\", \"value\", \"variant\", \"width\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport Button from '@mui/material/Button';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { PickersToolbarText } from \"./PickersToolbarText.js\";\nimport { getPickersToolbarUtilityClass } from \"./pickersToolbarClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getPickersToolbarUtilityClass, classes);\n};\nconst PickersToolbarButtonRoot = styled(Button, {\n name: 'MuiPickersToolbarButton',\n slot: 'Root'\n})({\n padding: 0,\n minWidth: 16,\n textTransform: 'none'\n});\nexport const PickersToolbarButton = /*#__PURE__*/React.forwardRef(function PickersToolbarButton(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersToolbarButton'\n });\n const {\n align,\n className,\n classes: classesProp,\n selected,\n typographyClassName,\n value,\n variant,\n width\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const classes = useUtilityClasses(classesProp);\n return /*#__PURE__*/_jsx(PickersToolbarButtonRoot, _extends({\n variant: \"text\",\n ref: ref,\n className: clsx(classes.root, className),\n ownerState: props\n }, width ? {\n sx: {\n width\n }\n } : {}, other, {\n children: /*#__PURE__*/_jsx(PickersToolbarText, {\n align: align,\n className: typographyClassName,\n variant: variant,\n value: value,\n selected: selected\n })\n }));\n});","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getTimePickerToolbarUtilityClass(slot) {\n return generateUtilityClass('MuiTimePickerToolbar', slot);\n}\nexport const timePickerToolbarClasses = generateUtilityClasses('MuiTimePickerToolbar', ['root', 'separator', 'hourMinuteLabel', 'hourMinuteLabelLandscape', 'hourMinuteLabelReverse', 'ampmSelection', 'ampmLandscape', 'ampmLabel']);","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"ampm\", \"ampmInClock\", \"className\", \"classes\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { PickersToolbarText } from \"../internals/components/PickersToolbarText.js\";\nimport { PickersToolbarButton } from \"../internals/components/PickersToolbarButton.js\";\nimport { PickersToolbar } from \"../internals/components/PickersToolbar.js\";\nimport { arrayIncludes } from \"../internals/utils/utils.js\";\nimport { usePickerTranslations } from \"../hooks/usePickerTranslations.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { useMeridiemMode } from \"../internals/hooks/date-helpers-hooks.js\";\nimport { getTimePickerToolbarUtilityClass, timePickerToolbarClasses } from \"./timePickerToolbarClasses.js\";\nimport { formatMeridiem } from \"../internals/utils/date-utils.js\";\nimport { usePickerContext } from \"../hooks/index.js\";\nimport { useToolbarOwnerState } from \"../internals/hooks/useToolbarOwnerState.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = (classes, ownerState) => {\n const {\n pickerOrientation,\n toolbarDirection\n } = ownerState;\n const slots = {\n root: ['root'],\n separator: ['separator'],\n hourMinuteLabel: ['hourMinuteLabel', pickerOrientation === 'landscape' && 'hourMinuteLabelLandscape', toolbarDirection === 'rtl' && 'hourMinuteLabelReverse'],\n ampmSelection: ['ampmSelection', pickerOrientation === 'landscape' && 'ampmLandscape'],\n ampmLabel: ['ampmLabel']\n };\n return composeClasses(slots, getTimePickerToolbarUtilityClass, classes);\n};\nconst TimePickerToolbarRoot = styled(PickersToolbar, {\n name: 'MuiTimePickerToolbar',\n slot: 'Root'\n})({});\nconst TimePickerToolbarSeparator = styled(PickersToolbarText, {\n name: 'MuiTimePickerToolbar',\n slot: 'Separator'\n})({\n outline: 0,\n margin: '0 4px 0 2px',\n cursor: 'default'\n});\nconst TimePickerToolbarHourMinuteLabel = styled('div', {\n name: 'MuiTimePickerToolbar',\n slot: 'HourMinuteLabel',\n overridesResolver: (props, styles) => [{\n [`&.${timePickerToolbarClasses.hourMinuteLabelLandscape}`]: styles.hourMinuteLabelLandscape,\n [`&.${timePickerToolbarClasses.hourMinuteLabelReverse}`]: styles.hourMinuteLabelReverse\n }, styles.hourMinuteLabel]\n})({\n display: 'flex',\n justifyContent: 'flex-end',\n alignItems: 'flex-end',\n variants: [{\n props: {\n toolbarDirection: 'rtl'\n },\n style: {\n flexDirection: 'row-reverse'\n }\n }, {\n props: {\n pickerOrientation: 'landscape'\n },\n style: {\n marginTop: 'auto'\n }\n }]\n});\nconst TimePickerToolbarAmPmSelection = styled('div', {\n name: 'MuiTimePickerToolbar',\n slot: 'AmPmSelection',\n overridesResolver: (props, styles) => [{\n [`.${timePickerToolbarClasses.ampmLabel}`]: styles.ampmLabel\n }, {\n [`&.${timePickerToolbarClasses.ampmLandscape}`]: styles.ampmLandscape\n }, styles.ampmSelection]\n})({\n display: 'flex',\n flexDirection: 'column',\n marginRight: 'auto',\n marginLeft: 12,\n [`& .${timePickerToolbarClasses.ampmLabel}`]: {\n fontSize: 17\n },\n variants: [{\n props: {\n pickerOrientation: 'landscape'\n },\n style: {\n margin: '4px 0 auto',\n flexDirection: 'row',\n justifyContent: 'space-around',\n flexBasis: '100%'\n }\n }]\n});\n\n/**\n * Demos:\n *\n * - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)\n * - [Custom components](https://mui.com/x/react-date-pickers/custom-components/)\n *\n * API:\n *\n * - [TimePickerToolbar API](https://mui.com/x/api/date-pickers/time-picker-toolbar/)\n */\nfunction TimePickerToolbar(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiTimePickerToolbar'\n });\n const {\n ampm,\n ampmInClock,\n className,\n classes: classesProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const utils = useUtils();\n const translations = usePickerTranslations();\n const ownerState = useToolbarOwnerState();\n const classes = useUtilityClasses(classesProp, ownerState);\n const {\n value,\n setValue,\n disabled,\n readOnly,\n view,\n setView,\n views\n } = usePickerContext();\n const showAmPmControl = Boolean(ampm && !ampmInClock && views.includes('hours'));\n const {\n meridiemMode,\n handleMeridiemChange\n } = useMeridiemMode(value, ampm, newValue => setValue(newValue, {\n changeImportance: 'set'\n }));\n const formatSection = format => {\n if (!utils.isValid(value)) {\n return '--';\n }\n return utils.format(value, format);\n };\n const separator = /*#__PURE__*/_jsx(TimePickerToolbarSeparator, {\n tabIndex: -1,\n value: \":\",\n variant: \"h3\",\n selected: false,\n className: classes.separator\n });\n return /*#__PURE__*/_jsxs(TimePickerToolbarRoot, _extends({\n landscapeDirection: \"row\",\n toolbarTitle: translations.timePickerToolbarTitle,\n ownerState: ownerState,\n className: clsx(classes.root, className)\n }, other, {\n children: [/*#__PURE__*/_jsxs(TimePickerToolbarHourMinuteLabel, {\n className: classes.hourMinuteLabel,\n ownerState: ownerState,\n children: [arrayIncludes(views, 'hours') && /*#__PURE__*/_jsx(PickersToolbarButton, {\n tabIndex: -1,\n variant: \"h3\",\n onClick: () => setView('hours'),\n selected: view === 'hours',\n value: formatSection(ampm ? 'hours12h' : 'hours24h')\n }), arrayIncludes(views, ['hours', 'minutes']) && separator, arrayIncludes(views, 'minutes') && /*#__PURE__*/_jsx(PickersToolbarButton, {\n tabIndex: -1,\n variant: \"h3\",\n onClick: () => setView('minutes'),\n selected: view === 'minutes',\n value: formatSection('minutes')\n }), arrayIncludes(views, ['minutes', 'seconds']) && separator, arrayIncludes(views, 'seconds') && /*#__PURE__*/_jsx(PickersToolbarButton, {\n variant: \"h3\",\n onClick: () => setView('seconds'),\n selected: view === 'seconds',\n value: formatSection('seconds')\n })]\n }), showAmPmControl && /*#__PURE__*/_jsxs(TimePickerToolbarAmPmSelection, {\n className: classes.ampmSelection,\n ownerState: ownerState,\n children: [/*#__PURE__*/_jsx(PickersToolbarButton, {\n disableRipple: true,\n variant: \"subtitle2\",\n selected: meridiemMode === 'am',\n typographyClassName: classes.ampmLabel,\n value: formatMeridiem(utils, 'am'),\n onClick: readOnly ? undefined : () => handleMeridiemChange('am'),\n disabled: disabled\n }), /*#__PURE__*/_jsx(PickersToolbarButton, {\n disableRipple: true,\n variant: \"subtitle2\",\n selected: meridiemMode === 'pm',\n typographyClassName: classes.ampmLabel,\n value: formatMeridiem(utils, 'pm'),\n onClick: readOnly ? undefined : () => handleMeridiemChange('pm'),\n disabled: disabled\n })]\n })]\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? TimePickerToolbar.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n ampm: PropTypes.bool,\n ampmInClock: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * If `true`, show the toolbar even in desktop mode.\n * @default `true` for Desktop, `false` for Mobile.\n */\n hidden: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n titleId: PropTypes.string,\n /**\n * Toolbar date format.\n */\n toolbarFormat: PropTypes.string,\n /**\n * Toolbar value placeholder—it is displayed when the value is empty.\n * @default \"––\"\n */\n toolbarPlaceholder: PropTypes.node\n} : void 0;\nexport { TimePickerToolbar };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useThemeProps } from '@mui/material/styles';\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { TimePickerToolbar } from \"./TimePickerToolbar.js\";\nimport { applyDefaultViewProps } from \"../internals/utils/views.js\";\nimport { useApplyDefaultValuesToTimeValidationProps } from \"../managers/useTimeManager.js\";\nexport function useTimePickerDefaultizedProps(props, name) {\n const utils = useUtils();\n const themeProps = useThemeProps({\n props,\n name\n });\n const validationProps = useApplyDefaultValuesToTimeValidationProps(themeProps);\n const ampm = themeProps.ampm ?? utils.is12HourCycleInCurrentLocale();\n const localeText = React.useMemo(() => {\n if (themeProps.localeText?.toolbarTitle == null) {\n return themeProps.localeText;\n }\n return _extends({}, themeProps.localeText, {\n timePickerToolbarTitle: themeProps.localeText.toolbarTitle\n });\n }, [themeProps.localeText]);\n return _extends({}, themeProps, validationProps, {\n ampm,\n localeText\n }, applyDefaultViewProps({\n views: themeProps.views,\n openTo: themeProps.openTo,\n defaultViews: ['hours', 'minutes'],\n defaultOpenTo: 'hours'\n }), {\n slots: _extends({\n toolbar: TimePickerToolbar\n }, themeProps.slots),\n slotProps: _extends({}, themeProps.slotProps, {\n toolbar: _extends({\n ampm,\n ampmInClock: themeProps.ampmInClock\n }, themeProps.slotProps?.toolbar)\n })\n });\n}","import * as React from 'react';\nimport { TimeClock } from \"../TimeClock/index.js\";\nimport { DigitalClock } from \"../DigitalClock/index.js\";\nimport { MultiSectionDigitalClock } from \"../MultiSectionDigitalClock/index.js\";\nimport { isInternalTimeView, isTimeView } from \"../internals/utils/time-utils.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const renderTimeViewClock = ({\n view,\n onViewChange,\n focusedView,\n onFocusedViewChange,\n views,\n value,\n defaultValue,\n referenceDate,\n onChange,\n className,\n classes,\n disableFuture,\n disablePast,\n minTime,\n maxTime,\n shouldDisableTime,\n minutesStep,\n ampm,\n ampmInClock,\n slots,\n slotProps,\n readOnly,\n disabled,\n sx,\n autoFocus,\n showViewSwitcher,\n disableIgnoringDatePartForTimeValidation,\n timezone\n}) => /*#__PURE__*/_jsx(TimeClock, {\n view: view,\n onViewChange: onViewChange,\n focusedView: focusedView && isTimeView(focusedView) ? focusedView : null,\n onFocusedViewChange: onFocusedViewChange,\n views: views.filter(isTimeView),\n value: value,\n defaultValue: defaultValue,\n referenceDate: referenceDate,\n onChange: onChange,\n className: className,\n classes: classes,\n disableFuture: disableFuture,\n disablePast: disablePast,\n minTime: minTime,\n maxTime: maxTime,\n shouldDisableTime: shouldDisableTime,\n minutesStep: minutesStep,\n ampm: ampm,\n ampmInClock: ampmInClock,\n slots: slots,\n slotProps: slotProps,\n readOnly: readOnly,\n disabled: disabled,\n sx: sx,\n autoFocus: autoFocus,\n showViewSwitcher: showViewSwitcher,\n disableIgnoringDatePartForTimeValidation: disableIgnoringDatePartForTimeValidation,\n timezone: timezone\n});\nexport const renderDigitalClockTimeView = ({\n view,\n onViewChange,\n focusedView,\n onFocusedViewChange,\n views,\n value,\n defaultValue,\n referenceDate,\n onChange,\n className,\n classes,\n disableFuture,\n disablePast,\n minTime,\n maxTime,\n shouldDisableTime,\n minutesStep,\n ampm,\n slots,\n slotProps,\n readOnly,\n disabled,\n sx,\n autoFocus,\n disableIgnoringDatePartForTimeValidation,\n timeSteps,\n skipDisabled,\n timezone\n}) => /*#__PURE__*/_jsx(DigitalClock, {\n view: view,\n onViewChange: onViewChange,\n focusedView: focusedView && isTimeView(focusedView) ? focusedView : null,\n onFocusedViewChange: onFocusedViewChange,\n views: views.filter(isTimeView),\n value: value,\n defaultValue: defaultValue,\n referenceDate: referenceDate,\n onChange: onChange,\n className: className,\n classes: classes,\n disableFuture: disableFuture,\n disablePast: disablePast,\n minTime: minTime,\n maxTime: maxTime,\n shouldDisableTime: shouldDisableTime,\n minutesStep: minutesStep,\n ampm: ampm,\n slots: slots,\n slotProps: slotProps,\n readOnly: readOnly,\n disabled: disabled,\n sx: sx,\n autoFocus: autoFocus,\n disableIgnoringDatePartForTimeValidation: disableIgnoringDatePartForTimeValidation,\n timeStep: timeSteps?.minutes,\n skipDisabled: skipDisabled,\n timezone: timezone\n});\nexport const renderMultiSectionDigitalClockTimeView = ({\n view,\n onViewChange,\n focusedView,\n onFocusedViewChange,\n views,\n value,\n defaultValue,\n referenceDate,\n onChange,\n className,\n classes,\n disableFuture,\n disablePast,\n minTime,\n maxTime,\n shouldDisableTime,\n minutesStep,\n ampm,\n slots,\n slotProps,\n readOnly,\n disabled,\n sx,\n autoFocus,\n disableIgnoringDatePartForTimeValidation,\n timeSteps,\n skipDisabled,\n timezone\n}) => /*#__PURE__*/_jsx(MultiSectionDigitalClock, {\n view: view,\n onViewChange: onViewChange,\n focusedView: focusedView && isInternalTimeView(focusedView) ? focusedView : null,\n onFocusedViewChange: onFocusedViewChange,\n views: views.filter(isTimeView),\n value: value,\n defaultValue: defaultValue,\n referenceDate: referenceDate,\n onChange: onChange,\n className: className,\n classes: classes,\n disableFuture: disableFuture,\n disablePast: disablePast,\n minTime: minTime,\n maxTime: maxTime,\n shouldDisableTime: shouldDisableTime,\n minutesStep: minutesStep,\n ampm: ampm,\n slots: slots,\n slotProps: slotProps,\n readOnly: readOnly,\n disabled: disabled,\n sx: sx,\n autoFocus: autoFocus,\n disableIgnoringDatePartForTimeValidation: disableIgnoringDatePartForTimeValidation,\n timeSteps: timeSteps,\n skipDisabled: skipDisabled,\n timezone: timezone\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"views\", \"format\"];\nimport { resolveTimeFormat, isTimeView, isInternalTimeView } from \"./time-utils.js\";\nimport { isDatePickerView, resolveDateFormat } from \"./date-utils.js\";\nexport const resolveDateTimeFormat = (utils, _ref, ignoreDateResolving) => {\n let {\n views,\n format\n } = _ref,\n other = _objectWithoutPropertiesLoose(_ref, _excluded);\n if (format) {\n return format;\n }\n const dateViews = [];\n const timeViews = [];\n views.forEach(view => {\n if (isTimeView(view)) {\n timeViews.push(view);\n } else if (isDatePickerView(view)) {\n dateViews.push(view);\n }\n });\n if (timeViews.length === 0) {\n return resolveDateFormat(utils, _extends({\n views: dateViews\n }, other), false);\n }\n if (dateViews.length === 0) {\n return resolveTimeFormat(utils, _extends({\n views: timeViews\n }, other));\n }\n const timeFormat = resolveTimeFormat(utils, _extends({\n views: timeViews\n }, other));\n const dateFormat = ignoreDateResolving ? utils.formats.keyboardDate : resolveDateFormat(utils, _extends({\n views: dateViews\n }, other), false);\n return `${dateFormat} ${timeFormat}`;\n};\nconst resolveViews = (ampm, views, shouldUseSingleColumn) => {\n if (shouldUseSingleColumn) {\n return views.filter(view => !isInternalTimeView(view) || view === 'hours');\n }\n return ampm ? [...views, 'meridiem'] : views;\n};\nconst resolveShouldRenderTimeInASingleColumn = (timeSteps, threshold) => 24 * 60 / ((timeSteps.hours ?? 1) * (timeSteps.minutes ?? 5)) <= threshold;\nexport function resolveTimeViewsResponse({\n thresholdToRenderTimeInASingleColumn: inThreshold,\n ampm,\n timeSteps: inTimeSteps,\n views\n}) {\n const thresholdToRenderTimeInASingleColumn = inThreshold ?? 24;\n const timeSteps = _extends({\n hours: 1,\n minutes: 5,\n seconds: 5\n }, inTimeSteps);\n const shouldRenderTimeInASingleColumn = resolveShouldRenderTimeInASingleColumn(timeSteps, thresholdToRenderTimeInASingleColumn);\n return {\n thresholdToRenderTimeInASingleColumn,\n timeSteps,\n shouldRenderTimeInASingleColumn,\n views: resolveViews(ampm, views, shouldRenderTimeInASingleColumn)\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport { refType } from '@mui/utils';\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { TimeField } from \"../TimeField/index.js\";\nimport { useTimePickerDefaultizedProps } from \"../TimePicker/shared.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { extractValidationProps, validateTime } from \"../validation/index.js\";\nimport { useDesktopPicker } from \"../internals/hooks/useDesktopPicker/index.js\";\nimport { renderDigitalClockTimeView, renderMultiSectionDigitalClockTimeView } from \"../timeViewRenderers/index.js\";\nimport { resolveTimeFormat } from \"../internals/utils/time-utils.js\";\nimport { resolveTimeViewsResponse } from \"../internals/utils/date-time-utils.js\";\n/**\n * Demos:\n *\n * - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [DesktopTimePicker API](https://mui.com/x/api/date-pickers/desktop-time-picker/)\n */\nconst DesktopTimePicker = /*#__PURE__*/React.forwardRef(function DesktopTimePicker(inProps, ref) {\n const utils = useUtils();\n\n // Props with the default values common to all time pickers\n const defaultizedProps = useTimePickerDefaultizedProps(inProps, 'MuiDesktopTimePicker');\n const {\n shouldRenderTimeInASingleColumn,\n views: resolvedViews,\n timeSteps\n } = resolveTimeViewsResponse(defaultizedProps);\n const renderTimeView = shouldRenderTimeInASingleColumn ? renderDigitalClockTimeView : renderMultiSectionDigitalClockTimeView;\n const viewRenderers = _extends({\n hours: renderTimeView,\n minutes: renderTimeView,\n seconds: renderTimeView,\n meridiem: renderTimeView\n }, defaultizedProps.viewRenderers);\n const ampmInClock = defaultizedProps.ampmInClock ?? true;\n // Need to avoid adding the `meridiem` view when unexpected renderer is specified\n const shouldHoursRendererContainMeridiemView = viewRenderers.hours?.name === renderMultiSectionDigitalClockTimeView.name;\n const views = !shouldHoursRendererContainMeridiemView ? resolvedViews.filter(view => view !== 'meridiem') : resolvedViews;\n\n // Props with the default values specific to the desktop variant\n const props = _extends({}, defaultizedProps, {\n ampmInClock,\n timeSteps,\n viewRenderers,\n format: resolveTimeFormat(utils, defaultizedProps),\n // Setting only `hours` time view in case of single column time picker\n // Allows for easy view lifecycle management\n views: shouldRenderTimeInASingleColumn ? ['hours'] : views,\n slots: _extends({\n field: TimeField\n }, defaultizedProps.slots),\n slotProps: _extends({}, defaultizedProps.slotProps, {\n field: ownerState => _extends({}, resolveComponentProps(defaultizedProps.slotProps?.field, ownerState), extractValidationProps(defaultizedProps)),\n toolbar: _extends({\n hidden: true,\n ampmInClock\n }, defaultizedProps.slotProps?.toolbar)\n })\n });\n const {\n renderPicker\n } = useDesktopPicker({\n ref,\n props,\n valueManager: singleItemValueManager,\n valueType: 'time',\n validator: validateTime,\n steps: null\n });\n return renderPicker();\n});\nDesktopTimePicker.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * 12h/24h view for hour selection clock.\n * @default utils.is12HourCycleInCurrentLocale()\n */\n ampm: PropTypes.bool,\n /**\n * Display ampm controls under the clock (instead of in the toolbar).\n * @default true on desktop, false on mobile\n */\n ampmInClock: PropTypes.bool,\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, the Picker will close after submitting the full date.\n * @default false\n */\n closeOnSelect: PropTypes.bool,\n /**\n * The default value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the component is disabled.\n * When disabled, the value cannot be changed and no interaction is possible.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * Do not ignore date part when validating min/max time.\n * @default false\n */\n disableIgnoringDatePartForTimeValidation: PropTypes.bool,\n /**\n * If `true`, the button to open the Picker will not be rendered (it will only render the field).\n * @deprecated Use the [field component](https://mui.com/x/react-date-pickers/fields/) instead.\n * @default false\n */\n disableOpenPicker: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * @default true\n */\n enableAccessibleFieldDOMStructure: PropTypes.any,\n /**\n * Format of the date when rendered in the input(s).\n * Defaults to localized format based on the used `views`.\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * Locale for components texts.\n * Allows overriding texts coming from `LocalizationProvider` and `theme`.\n */\n localeText: PropTypes.object,\n /**\n * Maximal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n maxTime: PropTypes.object,\n /**\n * Minimal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n minTime: PropTypes.object,\n /**\n * Step over minutes.\n * @default 1\n */\n minutesStep: PropTypes.number,\n /**\n * Name attribute used by the `input` element in the Field.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is accepted.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The value that was just accepted.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onAccept: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see `open`).\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see `open`).\n */\n onOpen: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * Control the popup or dialog open state.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']),\n /**\n * Force rendering in particular orientation.\n */\n orientation: PropTypes.oneOf(['landscape', 'portrait']),\n /**\n * If `true`, the component is read-only.\n * When read-only, the value cannot be changed but the user can interact with the interface.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.\n */\n referenceDate: PropTypes.object,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific time.\n * @param {PickerValidDate} value The value to check.\n * @param {TimeView} view The clock type of the timeValue.\n * @returns {boolean} If `true` the time will be disabled.\n */\n shouldDisableTime: PropTypes.func,\n /**\n * If `true`, disabled digital clock items will not be rendered.\n * @default false\n */\n skipDisabled: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Amount of time options below or at which the single column time renderer is used.\n * @default 24\n */\n thresholdToRenderTimeInASingleColumn: PropTypes.number,\n /**\n * The time steps between two time unit options.\n * For example, if `timeStep.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.\n * When single column time renderer is used, only `timeStep.minutes` will be used.\n * @default{ hours: 1, minutes: 5, seconds: 5 }\n */\n timeSteps: PropTypes.shape({\n hours: PropTypes.number,\n minutes: PropTypes.number,\n seconds: PropTypes.number\n }),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']),\n /**\n * Define custom view renderers for each section.\n * If `null`, the section will only have field editing.\n * If `undefined`, internally defined view will be used.\n */\n viewRenderers: PropTypes.shape({\n hours: PropTypes.func,\n meridiem: PropTypes.func,\n minutes: PropTypes.func,\n seconds: PropTypes.func\n }),\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['hours', 'minutes', 'seconds']).isRequired)\n};\nexport { DesktopTimePicker };","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport { refType } from '@mui/utils';\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { TimeField } from \"../TimeField/index.js\";\nimport { useTimePickerDefaultizedProps } from \"../TimePicker/shared.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { extractValidationProps, validateTime } from \"../validation/index.js\";\nimport { useMobilePicker } from \"../internals/hooks/useMobilePicker/index.js\";\nimport { renderTimeViewClock } from \"../timeViewRenderers/index.js\";\nimport { resolveTimeFormat } from \"../internals/utils/time-utils.js\";\n/**\n * Demos:\n *\n * - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [MobileTimePicker API](https://mui.com/x/api/date-pickers/mobile-time-picker/)\n */\nconst MobileTimePicker = /*#__PURE__*/React.forwardRef(function MobileTimePicker(inProps, ref) {\n const utils = useUtils();\n\n // Props with the default values common to all time pickers\n const defaultizedProps = useTimePickerDefaultizedProps(inProps, 'MuiMobileTimePicker');\n const viewRenderers = _extends({\n hours: renderTimeViewClock,\n minutes: renderTimeViewClock,\n seconds: renderTimeViewClock\n }, defaultizedProps.viewRenderers);\n const ampmInClock = defaultizedProps.ampmInClock ?? false;\n\n // Props with the default values specific to the mobile variant\n const props = _extends({}, defaultizedProps, {\n ampmInClock,\n viewRenderers,\n format: resolveTimeFormat(utils, defaultizedProps),\n slots: _extends({\n field: TimeField\n }, defaultizedProps.slots),\n slotProps: _extends({}, defaultizedProps.slotProps, {\n field: ownerState => _extends({}, resolveComponentProps(defaultizedProps.slotProps?.field, ownerState), extractValidationProps(defaultizedProps)),\n toolbar: _extends({\n hidden: false,\n ampmInClock\n }, defaultizedProps.slotProps?.toolbar)\n })\n });\n const {\n renderPicker\n } = useMobilePicker({\n ref,\n props,\n valueManager: singleItemValueManager,\n valueType: 'time',\n validator: validateTime,\n steps: null\n });\n return renderPicker();\n});\nMobileTimePicker.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * 12h/24h view for hour selection clock.\n * @default utils.is12HourCycleInCurrentLocale()\n */\n ampm: PropTypes.bool,\n /**\n * Display ampm controls under the clock (instead of in the toolbar).\n * @default true on desktop, false on mobile\n */\n ampmInClock: PropTypes.bool,\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, the Picker will close after submitting the full date.\n * @default false\n */\n closeOnSelect: PropTypes.bool,\n /**\n * The default value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the component is disabled.\n * When disabled, the value cannot be changed and no interaction is possible.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * Do not ignore date part when validating min/max time.\n * @default false\n */\n disableIgnoringDatePartForTimeValidation: PropTypes.bool,\n /**\n * If `true`, the button to open the Picker will not be rendered (it will only render the field).\n * @deprecated Use the [field component](https://mui.com/x/react-date-pickers/fields/) instead.\n * @default false\n */\n disableOpenPicker: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * @default true\n */\n enableAccessibleFieldDOMStructure: PropTypes.any,\n /**\n * Format of the date when rendered in the input(s).\n * Defaults to localized format based on the used `views`.\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * Locale for components texts.\n * Allows overriding texts coming from `LocalizationProvider` and `theme`.\n */\n localeText: PropTypes.object,\n /**\n * Maximal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n maxTime: PropTypes.object,\n /**\n * Minimal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n minTime: PropTypes.object,\n /**\n * Step over minutes.\n * @default 1\n */\n minutesStep: PropTypes.number,\n /**\n * Name attribute used by the `input` element in the Field.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is accepted.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The value that was just accepted.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onAccept: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see `open`).\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see `open`).\n */\n onOpen: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * Control the popup or dialog open state.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['hours', 'minutes', 'seconds']),\n /**\n * Force rendering in particular orientation.\n */\n orientation: PropTypes.oneOf(['landscape', 'portrait']),\n /**\n * If `true`, the component is read-only.\n * When read-only, the value cannot be changed but the user can interact with the interface.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.\n */\n referenceDate: PropTypes.object,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific time.\n * @param {PickerValidDate} value The value to check.\n * @param {TimeView} view The clock type of the timeValue.\n * @returns {boolean} If `true` the time will be disabled.\n */\n shouldDisableTime: PropTypes.func,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['hours', 'minutes', 'seconds']),\n /**\n * Define custom view renderers for each section.\n * If `null`, the section will only have field editing.\n * If `undefined`, internally defined view will be used.\n */\n viewRenderers: PropTypes.shape({\n hours: PropTypes.func,\n minutes: PropTypes.func,\n seconds: PropTypes.func\n }),\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['hours', 'minutes', 'seconds']).isRequired)\n};\nexport { MobileTimePicker };","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"desktopModeMediaQuery\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport { useThemeProps } from '@mui/material/styles';\nimport { refType } from '@mui/utils';\nimport { DesktopTimePicker } from \"../DesktopTimePicker/index.js\";\nimport { MobileTimePicker } from \"../MobileTimePicker/index.js\";\nimport { DEFAULT_DESKTOP_MODE_MEDIA_QUERY } from \"../internals/utils/utils.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Demos:\n *\n * - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [TimePicker API](https://mui.com/x/api/date-pickers/time-picker/)\n */\nconst TimePicker = /*#__PURE__*/React.forwardRef(function TimePicker(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiTimePicker'\n });\n const {\n desktopModeMediaQuery = DEFAULT_DESKTOP_MODE_MEDIA_QUERY\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n // defaults to `true` in environments where `window.matchMedia` would not be available (i.e. test/jsdom)\n const isDesktop = useMediaQuery(desktopModeMediaQuery, {\n defaultMatches: true\n });\n if (isDesktop) {\n return /*#__PURE__*/_jsx(DesktopTimePicker, _extends({\n ref: ref\n }, other));\n }\n return /*#__PURE__*/_jsx(MobileTimePicker, _extends({\n ref: ref\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? TimePicker.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * 12h/24h view for hour selection clock.\n * @default utils.is12HourCycleInCurrentLocale()\n */\n ampm: PropTypes.bool,\n /**\n * Display ampm controls under the clock (instead of in the toolbar).\n * @default true on desktop, false on mobile\n */\n ampmInClock: PropTypes.bool,\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, the Picker will close after submitting the full date.\n * @default false\n */\n closeOnSelect: PropTypes.bool,\n /**\n * The default value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * CSS media query when `Mobile` mode will be changed to `Desktop`.\n * @default '@media (pointer: fine)'\n * @example '@media (min-width: 720px)' or theme.breakpoints.up(\"sm\")\n */\n desktopModeMediaQuery: PropTypes.string,\n /**\n * If `true`, the component is disabled.\n * When disabled, the value cannot be changed and no interaction is possible.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * Do not ignore date part when validating min/max time.\n * @default false\n */\n disableIgnoringDatePartForTimeValidation: PropTypes.bool,\n /**\n * If `true`, the button to open the Picker will not be rendered (it will only render the field).\n * @deprecated Use the [field component](https://mui.com/x/react-date-pickers/fields/) instead.\n * @default false\n */\n disableOpenPicker: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * @default true\n */\n enableAccessibleFieldDOMStructure: PropTypes.any,\n /**\n * Format of the date when rendered in the input(s).\n * Defaults to localized format based on the used `views`.\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * Locale for components texts.\n * Allows overriding texts coming from `LocalizationProvider` and `theme`.\n */\n localeText: PropTypes.object,\n /**\n * Maximal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n maxTime: PropTypes.object,\n /**\n * Minimal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n minTime: PropTypes.object,\n /**\n * Step over minutes.\n * @default 1\n */\n minutesStep: PropTypes.number,\n /**\n * Name attribute used by the `input` element in the Field.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is accepted.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The value that was just accepted.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onAccept: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see `open`).\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see `open`).\n */\n onOpen: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * Control the popup or dialog open state.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']),\n /**\n * Force rendering in particular orientation.\n */\n orientation: PropTypes.oneOf(['landscape', 'portrait']),\n /**\n * If `true`, the component is read-only.\n * When read-only, the value cannot be changed but the user can interact with the interface.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.\n */\n referenceDate: PropTypes.object,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific time.\n * @param {PickerValidDate} value The value to check.\n * @param {TimeView} view The clock type of the timeValue.\n * @returns {boolean} If `true` the time will be disabled.\n */\n shouldDisableTime: PropTypes.func,\n /**\n * If `true`, disabled digital clock items will not be rendered.\n * @default false\n */\n skipDisabled: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Amount of time options below or at which the single column time renderer is used.\n * @default 24\n */\n thresholdToRenderTimeInASingleColumn: PropTypes.number,\n /**\n * The time steps between two time unit options.\n * For example, if `timeStep.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.\n * When single column time renderer is used, only `timeStep.minutes` will be used.\n * @default{ hours: 1, minutes: 5, seconds: 5 }\n */\n timeSteps: PropTypes.shape({\n hours: PropTypes.number,\n minutes: PropTypes.number,\n seconds: PropTypes.number\n }),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']),\n /**\n * Define custom view renderers for each section.\n * If `null`, the section will only have field editing.\n * If `undefined`, internally defined view will be used.\n */\n viewRenderers: PropTypes.shape({\n hours: PropTypes.func,\n meridiem: PropTypes.func,\n minutes: PropTypes.func,\n seconds: PropTypes.func\n }),\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['hours', 'minutes', 'seconds']).isRequired)\n} : void 0;\nexport { TimePicker };","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getDateTimePickerTabsUtilityClass(slot) {\n return generateUtilityClass('MuiDateTimePickerTabs', slot);\n}\nexport const dateTimePickerTabsClasses = generateUtilityClasses('MuiDateTimePickerTabs', ['root']);","'use client';\n\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport Tab from '@mui/material/Tab';\nimport Tabs, { tabsClasses } from '@mui/material/Tabs';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { TimeIcon, DateRangeIcon } from \"../icons/index.js\";\nimport { usePickerTranslations } from \"../hooks/usePickerTranslations.js\";\nimport { getDateTimePickerTabsUtilityClass } from \"./dateTimePickerTabsClasses.js\";\nimport { isDatePickerView } from \"../internals/utils/date-utils.js\";\nimport { usePickerPrivateContext } from \"../internals/hooks/usePickerPrivateContext.js\";\nimport { usePickerContext } from \"../hooks/index.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst viewToTab = view => {\n if (isDatePickerView(view)) {\n return 'date';\n }\n return 'time';\n};\nconst tabToView = tab => {\n if (tab === 'date') {\n return 'day';\n }\n return 'hours';\n};\nconst useUtilityClasses = classes => {\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getDateTimePickerTabsUtilityClass, classes);\n};\nconst DateTimePickerTabsRoot = styled(Tabs, {\n name: 'MuiDateTimePickerTabs',\n slot: 'Root'\n})(({\n theme\n}) => ({\n boxShadow: `0 -1px 0 0 inset ${(theme.vars || theme).palette.divider}`,\n '&:last-child': {\n boxShadow: `0 1px 0 0 inset ${(theme.vars || theme).palette.divider}`,\n [`& .${tabsClasses.indicator}`]: {\n bottom: 'auto',\n top: 0\n }\n }\n}));\n\n/**\n * Demos:\n *\n * - [DateTimePicker](https://mui.com/x/react-date-pickers/date-time-picker/)\n * - [Custom slots and subcomponents](https://mui.com/x/react-date-pickers/custom-components/)\n *\n * API:\n *\n * - [DateTimePickerTabs API](https://mui.com/x/api/date-pickers/date-time-picker-tabs/)\n */\nconst DateTimePickerTabs = function DateTimePickerTabs(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiDateTimePickerTabs'\n });\n const {\n dateIcon = /*#__PURE__*/_jsx(DateRangeIcon, {}),\n timeIcon = /*#__PURE__*/_jsx(TimeIcon, {}),\n hidden = typeof window === 'undefined' || window.innerHeight < 667,\n className,\n classes: classesProp,\n sx\n } = props;\n const translations = usePickerTranslations();\n const {\n ownerState\n } = usePickerPrivateContext();\n const {\n view,\n setView\n } = usePickerContext();\n const classes = useUtilityClasses(classesProp);\n const handleChange = (event, value) => {\n setView(tabToView(value));\n };\n if (hidden) {\n return null;\n }\n return /*#__PURE__*/_jsxs(DateTimePickerTabsRoot, {\n ownerState: ownerState,\n variant: \"fullWidth\",\n value: viewToTab(view),\n onChange: handleChange,\n className: clsx(className, classes.root),\n sx: sx,\n children: [/*#__PURE__*/_jsx(Tab, {\n value: \"date\",\n \"aria-label\": translations.dateTableLabel,\n icon: /*#__PURE__*/_jsx(React.Fragment, {\n children: dateIcon\n })\n }), /*#__PURE__*/_jsx(Tab, {\n value: \"time\",\n \"aria-label\": translations.timeTableLabel,\n icon: /*#__PURE__*/_jsx(React.Fragment, {\n children: timeIcon\n })\n })]\n });\n};\nprocess.env.NODE_ENV !== \"production\" ? DateTimePickerTabs.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * Date tab icon.\n * @default DateRange\n */\n dateIcon: PropTypes.node,\n /**\n * Toggles visibility of the tabs allowing view switching.\n * @default `window.innerHeight < 667` for `DesktopDateTimePicker` and `MobileDateTimePicker`, `displayStaticWrapperAs === 'desktop'` for `StaticDateTimePicker`\n */\n hidden: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Time tab icon.\n * @default Time\n */\n timeIcon: PropTypes.node\n} : void 0;\nexport { DateTimePickerTabs };","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getDateTimePickerToolbarUtilityClass(slot) {\n return generateUtilityClass('MuiDateTimePickerToolbar', slot);\n}\nexport const dateTimePickerToolbarClasses = generateUtilityClasses('MuiDateTimePickerToolbar', ['root', 'dateContainer', 'timeContainer', 'timeDigitsContainer', 'separator', 'timeLabelReverse', 'ampmSelection', 'ampmLandscape', 'ampmLabel']);","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"ampm\", \"ampmInClock\", \"toolbarFormat\", \"toolbarPlaceholder\", \"toolbarTitle\", \"className\", \"classes\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { shouldForwardProp } from '@mui/system/createStyled';\nimport { PickersToolbarText } from \"../internals/components/PickersToolbarText.js\";\nimport { PickersToolbar } from \"../internals/components/PickersToolbar.js\";\nimport { PickersToolbarButton } from \"../internals/components/PickersToolbarButton.js\";\nimport { usePickerTranslations } from \"../hooks/usePickerTranslations.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { dateTimePickerToolbarClasses, getDateTimePickerToolbarUtilityClass } from \"./dateTimePickerToolbarClasses.js\";\nimport { useMeridiemMode } from \"../internals/hooks/date-helpers-hooks.js\";\nimport { MULTI_SECTION_CLOCK_SECTION_WIDTH } from \"../internals/constants/dimensions.js\";\nimport { formatMeridiem } from \"../internals/utils/date-utils.js\";\nimport { pickersToolbarTextClasses } from \"../internals/components/pickersToolbarTextClasses.js\";\nimport { pickersToolbarClasses } from \"../internals/components/pickersToolbarClasses.js\";\nimport { usePickerContext } from \"../hooks/usePickerContext.js\";\nimport { useToolbarOwnerState } from \"../internals/hooks/useToolbarOwnerState.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = (classes, ownerState) => {\n const {\n pickerOrientation,\n toolbarDirection\n } = ownerState;\n const slots = {\n root: ['root'],\n dateContainer: ['dateContainer'],\n timeContainer: ['timeContainer', toolbarDirection === 'rtl' && 'timeLabelReverse'],\n timeDigitsContainer: ['timeDigitsContainer', toolbarDirection === 'rtl' && 'timeLabelReverse'],\n separator: ['separator'],\n ampmSelection: ['ampmSelection', pickerOrientation === 'landscape' && 'ampmLandscape'],\n ampmLabel: ['ampmLabel']\n };\n return composeClasses(slots, getDateTimePickerToolbarUtilityClass, classes);\n};\nconst DateTimePickerToolbarRoot = styled(PickersToolbar, {\n name: 'MuiDateTimePickerToolbar',\n slot: 'Root',\n shouldForwardProp: prop => shouldForwardProp(prop) && prop !== 'toolbarVariant'\n})(({\n theme\n}) => ({\n paddingLeft: 16,\n paddingRight: 16,\n justifyContent: 'space-around',\n position: 'relative',\n variants: [{\n props: {\n toolbarVariant: 'desktop'\n },\n style: {\n borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,\n [`& .${pickersToolbarClasses.content} .${pickersToolbarTextClasses.root}[data-selected]`]: {\n color: (theme.vars || theme).palette.primary.main,\n fontWeight: theme.typography.fontWeightBold\n }\n }\n }, {\n props: {\n toolbarVariant: 'desktop',\n pickerOrientation: 'landscape'\n },\n style: {\n borderRight: `1px solid ${(theme.vars || theme).palette.divider}`\n }\n }, {\n props: {\n toolbarVariant: 'desktop',\n pickerOrientation: 'portrait'\n },\n style: {\n paddingLeft: 24,\n paddingRight: 0\n }\n }]\n}));\nconst DateTimePickerToolbarDateContainer = styled('div', {\n name: 'MuiDateTimePickerToolbar',\n slot: 'DateContainer'\n})({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start'\n});\nconst DateTimePickerToolbarTimeContainer = styled('div', {\n name: 'MuiDateTimePickerToolbar',\n slot: 'TimeContainer',\n shouldForwardProp: prop => shouldForwardProp(prop) && prop !== 'toolbarVariant'\n})({\n display: 'flex',\n flexDirection: 'row',\n variants: [{\n props: {\n toolbarDirection: 'rtl'\n },\n style: {\n flexDirection: 'row-reverse'\n }\n }, {\n props: {\n toolbarVariant: 'desktop',\n pickerOrientation: 'portrait'\n },\n style: {\n gap: 9,\n marginRight: 4,\n alignSelf: 'flex-end'\n }\n }, {\n props: ({\n pickerOrientation,\n toolbarVariant\n }) => pickerOrientation === 'landscape' && toolbarVariant !== 'desktop',\n style: {\n flexDirection: 'column'\n }\n }, {\n props: ({\n pickerOrientation,\n toolbarVariant,\n toolbarDirection\n }) => pickerOrientation === 'landscape' && toolbarVariant !== 'desktop' && toolbarDirection === 'rtl',\n style: {\n flexDirection: 'column-reverse'\n }\n }]\n});\nconst DateTimePickerToolbarTimeDigitsContainer = styled('div', {\n name: 'MuiDateTimePickerToolbar',\n slot: 'TimeDigitsContainer',\n shouldForwardProp: prop => shouldForwardProp(prop) && prop !== 'toolbarVariant'\n})({\n display: 'flex',\n variants: [{\n props: {\n toolbarDirection: 'rtl'\n },\n style: {\n flexDirection: 'row-reverse'\n }\n }, {\n props: {\n toolbarVariant: 'desktop'\n },\n style: {\n gap: 1.5\n }\n }]\n});\nconst DateTimePickerToolbarSeparator = styled(PickersToolbarText, {\n name: 'MuiDateTimePickerToolbar',\n slot: 'Separator',\n shouldForwardProp: prop => shouldForwardProp(prop) && prop !== 'toolbarVariant'\n})({\n margin: '0 4px 0 2px',\n cursor: 'default',\n variants: [{\n props: {\n toolbarVariant: 'desktop'\n },\n style: {\n margin: 0\n }\n }]\n});\n\n// Taken from TimePickerToolbar\nconst DateTimePickerToolbarAmPmSelection = styled('div', {\n name: 'MuiDateTimePickerToolbar',\n slot: 'AmPmSelection',\n overridesResolver: (props, styles) => [{\n [`.${dateTimePickerToolbarClasses.ampmLabel}`]: styles.ampmLabel\n }, {\n [`&.${dateTimePickerToolbarClasses.ampmLandscape}`]: styles.ampmLandscape\n }, styles.ampmSelection]\n})({\n display: 'flex',\n flexDirection: 'column',\n marginRight: 'auto',\n marginLeft: 12,\n [`& .${dateTimePickerToolbarClasses.ampmLabel}`]: {\n fontSize: 17\n },\n variants: [{\n props: {\n pickerOrientation: 'landscape'\n },\n style: {\n margin: '4px 0 auto',\n flexDirection: 'row',\n justifyContent: 'space-around',\n width: '100%'\n }\n }]\n});\n\n/**\n * If `forceDesktopVariant` is set to `true`, the toolbar will always be rendered in the desktop mode.\n * If `onViewChange` is defined, the toolbar will call it instead of calling the default handler from `usePickerContext`.\n * This is used by the Date Time Range Picker Toolbar.\n */\nexport const DateTimePickerToolbarOverrideContext = /*#__PURE__*/React.createContext(null);\n\n/**\n * Demos:\n *\n * - [DateTimePicker](https://mui.com/x/react-date-pickers/date-time-picker/)\n * - [Custom components](https://mui.com/x/react-date-pickers/custom-components/)\n *\n * API:\n *\n * - [DateTimePickerToolbar API](https://mui.com/x/api/date-pickers/date-time-picker-toolbar/)\n */\nfunction DateTimePickerToolbar(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiDateTimePickerToolbar'\n });\n const {\n ampm,\n ampmInClock,\n toolbarFormat,\n toolbarPlaceholder = '––',\n toolbarTitle: inToolbarTitle,\n className,\n classes: classesProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n value: valueContext,\n setValue: setValueContext,\n disabled,\n readOnly,\n variant,\n orientation,\n view: viewContext,\n setView: setViewContext,\n views\n } = usePickerContext();\n const translations = usePickerTranslations();\n const ownerState = useToolbarOwnerState();\n const classes = useUtilityClasses(classesProp, ownerState);\n const utils = useUtils();\n const overrides = React.useContext(DateTimePickerToolbarOverrideContext);\n const value = overrides ? overrides.value : valueContext;\n const setValue = overrides ? overrides.setValue : setValueContext;\n const view = overrides ? overrides.view : viewContext;\n const setView = overrides ? overrides.setView : setViewContext;\n const {\n meridiemMode,\n handleMeridiemChange\n } = useMeridiemMode(value, ampm, newValue => setValue(newValue, {\n changeImportance: 'set'\n }));\n const toolbarVariant = overrides?.forceDesktopVariant ? 'desktop' : variant;\n const isDesktop = toolbarVariant === 'desktop';\n const showAmPmControl = Boolean(ampm && !ampmInClock);\n const toolbarTitle = inToolbarTitle ?? translations.dateTimePickerToolbarTitle;\n const dateText = React.useMemo(() => {\n if (!utils.isValid(value)) {\n return toolbarPlaceholder;\n }\n if (toolbarFormat) {\n return utils.formatByString(value, toolbarFormat);\n }\n return utils.format(value, 'shortDate');\n }, [value, toolbarFormat, toolbarPlaceholder, utils]);\n const formatSection = (format, fallback) => {\n if (!utils.isValid(value)) {\n return fallback;\n }\n return utils.format(value, format);\n };\n return /*#__PURE__*/_jsxs(DateTimePickerToolbarRoot, _extends({\n className: clsx(classes.root, className),\n toolbarTitle: toolbarTitle,\n toolbarVariant: toolbarVariant\n }, other, {\n ownerState: ownerState,\n children: [/*#__PURE__*/_jsxs(DateTimePickerToolbarDateContainer, {\n className: classes.dateContainer,\n ownerState: ownerState,\n children: [views.includes('year') && /*#__PURE__*/_jsx(PickersToolbarButton, {\n tabIndex: -1,\n variant: \"subtitle1\",\n onClick: () => setView('year'),\n selected: view === 'year',\n value: formatSection('year', '–')\n }), views.includes('day') && /*#__PURE__*/_jsx(PickersToolbarButton, {\n tabIndex: -1,\n variant: isDesktop ? 'h5' : 'h4',\n onClick: () => setView('day'),\n selected: view === 'day',\n value: dateText\n })]\n }), /*#__PURE__*/_jsxs(DateTimePickerToolbarTimeContainer, {\n className: classes.timeContainer,\n ownerState: ownerState,\n toolbarVariant: toolbarVariant,\n children: [/*#__PURE__*/_jsxs(DateTimePickerToolbarTimeDigitsContainer, {\n className: classes.timeDigitsContainer,\n ownerState: ownerState,\n toolbarVariant: toolbarVariant,\n children: [views.includes('hours') && /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(PickersToolbarButton, {\n variant: isDesktop ? 'h5' : 'h3',\n width: isDesktop && orientation === 'portrait' ? MULTI_SECTION_CLOCK_SECTION_WIDTH : undefined,\n onClick: () => setView('hours'),\n selected: view === 'hours',\n value: formatSection(ampm ? 'hours12h' : 'hours24h', '--')\n }), /*#__PURE__*/_jsx(DateTimePickerToolbarSeparator, {\n variant: isDesktop ? 'h5' : 'h3',\n value: \":\",\n className: classes.separator,\n ownerState: ownerState,\n toolbarVariant: toolbarVariant\n }), /*#__PURE__*/_jsx(PickersToolbarButton, {\n variant: isDesktop ? 'h5' : 'h3',\n width: isDesktop && orientation === 'portrait' ? MULTI_SECTION_CLOCK_SECTION_WIDTH : undefined,\n onClick: () => setView('minutes'),\n selected: view === 'minutes' || !views.includes('minutes') && view === 'hours',\n value: formatSection('minutes', '--'),\n disabled: !views.includes('minutes')\n })]\n }), views.includes('seconds') && /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(DateTimePickerToolbarSeparator, {\n variant: isDesktop ? 'h5' : 'h3',\n value: \":\",\n className: classes.separator,\n ownerState: ownerState,\n toolbarVariant: toolbarVariant\n }), /*#__PURE__*/_jsx(PickersToolbarButton, {\n variant: isDesktop ? 'h5' : 'h3',\n width: isDesktop && orientation === 'portrait' ? MULTI_SECTION_CLOCK_SECTION_WIDTH : undefined,\n onClick: () => setView('seconds'),\n selected: view === 'seconds',\n value: formatSection('seconds', '--')\n })]\n })]\n }), showAmPmControl && !isDesktop && /*#__PURE__*/_jsxs(DateTimePickerToolbarAmPmSelection, {\n className: classes.ampmSelection,\n ownerState: ownerState,\n children: [/*#__PURE__*/_jsx(PickersToolbarButton, {\n variant: \"subtitle2\",\n selected: meridiemMode === 'am',\n typographyClassName: classes.ampmLabel,\n value: formatMeridiem(utils, 'am'),\n onClick: readOnly ? undefined : () => handleMeridiemChange('am'),\n disabled: disabled\n }), /*#__PURE__*/_jsx(PickersToolbarButton, {\n variant: \"subtitle2\",\n selected: meridiemMode === 'pm',\n typographyClassName: classes.ampmLabel,\n value: formatMeridiem(utils, 'pm'),\n onClick: readOnly ? undefined : () => handleMeridiemChange('pm'),\n disabled: disabled\n })]\n }), ampm && isDesktop && /*#__PURE__*/_jsx(PickersToolbarButton, {\n variant: \"h5\",\n onClick: () => setView('meridiem'),\n selected: view === 'meridiem',\n value: value && meridiemMode ? formatMeridiem(utils, meridiemMode) : '--',\n width: MULTI_SECTION_CLOCK_SECTION_WIDTH\n })]\n })]\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? DateTimePickerToolbar.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n ampm: PropTypes.bool,\n ampmInClock: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * If `true`, show the toolbar even in desktop mode.\n * @default `true` for Desktop, `false` for Mobile.\n */\n hidden: PropTypes.bool,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n titleId: PropTypes.string,\n /**\n * Toolbar date format.\n */\n toolbarFormat: PropTypes.string,\n /**\n * Toolbar value placeholder—it is displayed when the value is empty.\n * @default \"––\"\n */\n toolbarPlaceholder: PropTypes.node,\n /**\n * If provided, it will be used instead of `dateTimePickerToolbarTitle` from localization.\n */\n toolbarTitle: PropTypes.node\n} : void 0;\nexport { DateTimePickerToolbar };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useThemeProps } from '@mui/material/styles';\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { DateTimePickerTabs } from \"./DateTimePickerTabs.js\";\nimport { DateTimePickerToolbar } from \"./DateTimePickerToolbar.js\";\nimport { applyDefaultViewProps } from \"../internals/utils/views.js\";\nimport { resolveTimeViewsResponse } from \"../internals/utils/date-time-utils.js\";\nimport { useApplyDefaultValuesToDateTimeValidationProps } from \"../managers/useDateTimeManager.js\";\nexport function useDateTimePickerDefaultizedProps(props, name) {\n const utils = useUtils();\n const themeProps = useThemeProps({\n props,\n name\n });\n const validationProps = useApplyDefaultValuesToDateTimeValidationProps(themeProps);\n const ampm = themeProps.ampm ?? utils.is12HourCycleInCurrentLocale();\n const localeText = React.useMemo(() => {\n if (themeProps.localeText?.toolbarTitle == null) {\n return themeProps.localeText;\n }\n return _extends({}, themeProps.localeText, {\n dateTimePickerToolbarTitle: themeProps.localeText.toolbarTitle\n });\n }, [themeProps.localeText]);\n const {\n openTo,\n views: defaultViews\n } = applyDefaultViewProps({\n views: themeProps.views,\n openTo: themeProps.openTo,\n defaultViews: ['year', 'day', 'hours', 'minutes'],\n defaultOpenTo: 'day'\n });\n const {\n shouldRenderTimeInASingleColumn,\n thresholdToRenderTimeInASingleColumn,\n views,\n timeSteps\n } = resolveTimeViewsResponse({\n thresholdToRenderTimeInASingleColumn: themeProps.thresholdToRenderTimeInASingleColumn,\n ampm,\n timeSteps: themeProps.timeSteps,\n views: defaultViews\n });\n return _extends({}, themeProps, validationProps, {\n timeSteps,\n openTo,\n shouldRenderTimeInASingleColumn,\n thresholdToRenderTimeInASingleColumn,\n views,\n ampm,\n localeText,\n orientation: themeProps.orientation ?? 'portrait',\n slots: _extends({\n toolbar: DateTimePickerToolbar,\n tabs: DateTimePickerTabs\n }, themeProps.slots),\n slotProps: _extends({}, themeProps.slotProps, {\n toolbar: _extends({\n ampm\n }, themeProps.slotProps?.toolbar)\n })\n });\n}","import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport Divider from '@mui/material/Divider';\nimport { PickersLayoutContentWrapper, PickersLayoutRoot, pickersLayoutClasses, usePickerLayout } from \"../PickersLayout/index.js\";\nimport { usePickerContext } from \"../hooks/usePickerContext.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n/**\n * @ignore - internal component.\n */\nconst DesktopDateTimePickerLayout = /*#__PURE__*/React.forwardRef(function DesktopDateTimePickerLayout(props, ref) {\n const {\n toolbar,\n tabs,\n content,\n actionBar,\n shortcuts,\n ownerState\n } = usePickerLayout(props);\n const {\n orientation\n } = usePickerContext();\n const {\n sx,\n className,\n classes\n } = props;\n const isActionBarVisible = actionBar && (actionBar.props.actions?.length ?? 0) > 0;\n return /*#__PURE__*/_jsxs(PickersLayoutRoot, {\n ref: ref,\n className: clsx(pickersLayoutClasses.root, classes?.root, className),\n sx: [{\n [`& .${pickersLayoutClasses.tabs}`]: {\n gridRow: 4,\n gridColumn: '1 / 4'\n },\n [`& .${pickersLayoutClasses.actionBar}`]: {\n gridRow: 5\n }\n }, ...(Array.isArray(sx) ? sx : [sx])],\n ownerState: ownerState,\n children: [orientation === 'landscape' ? shortcuts : toolbar, orientation === 'landscape' ? toolbar : shortcuts, /*#__PURE__*/_jsxs(PickersLayoutContentWrapper, {\n className: clsx(pickersLayoutClasses.contentWrapper, classes?.contentWrapper),\n ownerState: ownerState,\n sx: {\n display: 'grid'\n },\n children: [content, tabs, isActionBarVisible && /*#__PURE__*/_jsx(Divider, {\n sx: {\n gridRow: 3,\n gridColumn: '1 / 4'\n }\n })]\n }), actionBar]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? DesktopDateTimePickerLayout.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport { DesktopDateTimePickerLayout };","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"openTo\", \"focusedView\", \"timeViewsCount\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport { refType } from '@mui/utils';\nimport Divider from '@mui/material/Divider';\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { DateTimeField } from \"../DateTimeField/index.js\";\nimport { useDateTimePickerDefaultizedProps } from \"../DateTimePicker/shared.js\";\nimport { renderDateViewCalendar } from \"../dateViewRenderers/dateViewRenderers.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { validateDateTime, extractValidationProps } from \"../validation/index.js\";\nimport { useDesktopPicker } from \"../internals/hooks/useDesktopPicker/index.js\";\nimport { resolveDateTimeFormat } from \"../internals/utils/date-time-utils.js\";\nimport { renderDigitalClockTimeView, renderMultiSectionDigitalClockTimeView } from \"../timeViewRenderers/index.js\";\nimport { multiSectionDigitalClockClasses, multiSectionDigitalClockSectionClasses } from \"../MultiSectionDigitalClock/index.js\";\nimport { digitalClockClasses } from \"../DigitalClock/index.js\";\nimport { DesktopDateTimePickerLayout } from \"./DesktopDateTimePickerLayout.js\";\nimport { VIEW_HEIGHT } from \"../internals/constants/dimensions.js\";\nimport { isInternalTimeView } from \"../internals/utils/time-utils.js\";\nimport { isDatePickerView } from \"../internals/utils/date-utils.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst rendererInterceptor = function RendererInterceptor(props) {\n const {\n viewRenderers,\n popperView,\n rendererProps\n } = props;\n const {\n openTo,\n focusedView,\n timeViewsCount\n } = rendererProps,\n otherProps = _objectWithoutPropertiesLoose(rendererProps, _excluded);\n const finalProps = _extends({}, otherProps, {\n focusedView: null,\n sx: [{\n [`&.${multiSectionDigitalClockClasses.root}`]: {\n borderBottom: 0\n },\n [`&.${multiSectionDigitalClockClasses.root}, .${multiSectionDigitalClockSectionClasses.root}, &.${digitalClockClasses.root}`]: {\n maxHeight: VIEW_HEIGHT\n }\n }]\n });\n const isTimeViewActive = isInternalTimeView(popperView);\n const dateView = isTimeViewActive ? 'day' : popperView;\n const timeView = isTimeViewActive ? popperView : 'hours';\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [viewRenderers[dateView]?.(_extends({}, rendererProps, {\n view: !isTimeViewActive ? popperView : 'day',\n focusedView: focusedView && isDatePickerView(focusedView) ? focusedView : null,\n views: rendererProps.views.filter(isDatePickerView),\n sx: [{\n gridColumn: 1\n }, ...finalProps.sx]\n })), timeViewsCount > 0 && /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(Divider, {\n orientation: \"vertical\",\n sx: {\n gridColumn: 2\n }\n }), viewRenderers[timeView]?.(_extends({}, finalProps, {\n view: isTimeViewActive ? popperView : 'hours',\n focusedView: focusedView && isInternalTimeView(focusedView) ? focusedView : null,\n openTo: isInternalTimeView(openTo) ? openTo : 'hours',\n views: rendererProps.views.filter(isInternalTimeView),\n sx: [{\n gridColumn: 3\n }, ...finalProps.sx]\n }))]\n })]\n });\n};\n/**\n * Demos:\n *\n * - [DateTimePicker](https://mui.com/x/react-date-pickers/date-time-picker/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [DesktopDateTimePicker API](https://mui.com/x/api/date-pickers/desktop-date-time-picker/)\n */\nconst DesktopDateTimePicker = /*#__PURE__*/React.forwardRef(function DesktopDateTimePicker(inProps, ref) {\n const utils = useUtils();\n\n // Props with the default values common to all date time pickers\n const defaultizedProps = useDateTimePickerDefaultizedProps(inProps, 'MuiDesktopDateTimePicker');\n const renderTimeView = defaultizedProps.shouldRenderTimeInASingleColumn ? renderDigitalClockTimeView : renderMultiSectionDigitalClockTimeView;\n const viewRenderers = _extends({\n day: renderDateViewCalendar,\n month: renderDateViewCalendar,\n year: renderDateViewCalendar,\n hours: renderTimeView,\n minutes: renderTimeView,\n seconds: renderTimeView,\n meridiem: renderTimeView\n }, defaultizedProps.viewRenderers);\n const ampmInClock = defaultizedProps.ampmInClock ?? true;\n // Need to avoid adding the `meridiem` view when unexpected renderer is specified\n const shouldHoursRendererContainMeridiemView = viewRenderers.hours?.name === renderMultiSectionDigitalClockTimeView.name;\n const views = !shouldHoursRendererContainMeridiemView ? defaultizedProps.views.filter(view => view !== 'meridiem') : defaultizedProps.views;\n\n // Props with the default values specific to the desktop variant\n const props = _extends({}, defaultizedProps, {\n viewRenderers,\n format: resolveDateTimeFormat(utils, defaultizedProps),\n views,\n yearsPerRow: defaultizedProps.yearsPerRow ?? 4,\n ampmInClock,\n slots: _extends({\n field: DateTimeField,\n layout: DesktopDateTimePickerLayout\n }, defaultizedProps.slots),\n slotProps: _extends({}, defaultizedProps.slotProps, {\n field: ownerState => _extends({}, resolveComponentProps(defaultizedProps.slotProps?.field, ownerState), extractValidationProps(defaultizedProps)),\n toolbar: _extends({\n hidden: true,\n ampmInClock\n }, defaultizedProps.slotProps?.toolbar),\n tabs: _extends({\n hidden: true\n }, defaultizedProps.slotProps?.tabs)\n })\n });\n const {\n renderPicker\n } = useDesktopPicker({\n ref,\n props,\n valueManager: singleItemValueManager,\n valueType: 'date-time',\n validator: validateDateTime,\n rendererInterceptor,\n steps: null\n });\n return renderPicker();\n});\nDesktopDateTimePicker.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * 12h/24h view for hour selection clock.\n * @default utils.is12HourCycleInCurrentLocale()\n */\n ampm: PropTypes.bool,\n /**\n * Display ampm controls under the clock (instead of in the toolbar).\n * @default true on desktop, false on mobile\n */\n ampmInClock: PropTypes.bool,\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, the Picker will close after submitting the full date.\n * @default false\n */\n closeOnSelect: PropTypes.bool,\n /**\n * Formats the day of week displayed in the calendar header.\n * @param {PickerValidDate} date The date of the day of week provided by the adapter.\n * @returns {string} The name to display.\n * @default (date: PickerValidDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()\n */\n dayOfWeekFormatter: PropTypes.func,\n /**\n * The default value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the component is disabled.\n * When disabled, the value cannot be changed and no interaction is possible.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * Do not ignore date part when validating min/max time.\n * @default false\n */\n disableIgnoringDatePartForTimeValidation: PropTypes.bool,\n /**\n * If `true`, the button to open the Picker will not be rendered (it will only render the field).\n * @deprecated Use the [field component](https://mui.com/x/react-date-pickers/fields/) instead.\n * @default false\n */\n disableOpenPicker: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * If `true`, the week number will be display in the calendar.\n */\n displayWeekNumber: PropTypes.bool,\n /**\n * @default true\n */\n enableAccessibleFieldDOMStructure: PropTypes.any,\n /**\n * The day view will show as many weeks as needed after the end of the current month to match this value.\n * Put it to 6 to have a fixed number of weeks in Gregorian calendars\n */\n fixedWeekNumber: PropTypes.number,\n /**\n * Format of the date when rendered in the input(s).\n * Defaults to localized format based on the used `views`.\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * If `true`, calls `renderLoading` instead of rendering the day calendar.\n * Can be used to preload information and show it in calendar.\n * @default false\n */\n loading: PropTypes.bool,\n /**\n * Locale for components texts.\n * Allows overriding texts coming from `LocalizationProvider` and `theme`.\n */\n localeText: PropTypes.object,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Maximal selectable moment of time with binding to date, to set max time in each day use `maxTime`.\n */\n maxDateTime: PropTypes.object,\n /**\n * Maximal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n maxTime: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Minimal selectable moment of time with binding to date, to set min time in each day use `minTime`.\n */\n minDateTime: PropTypes.object,\n /**\n * Minimal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n minTime: PropTypes.object,\n /**\n * Step over minutes.\n * @default 1\n */\n minutesStep: PropTypes.number,\n /**\n * Months rendered per row.\n * @default 3\n */\n monthsPerRow: PropTypes.oneOf([3, 4]),\n /**\n * Name attribute used by the `input` element in the Field.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is accepted.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The value that was just accepted.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onAccept: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see `open`).\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired on month change.\n * @param {PickerValidDate} month The new month.\n */\n onMonthChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see `open`).\n */\n onOpen: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * Callback fired on year change.\n * @param {PickerValidDate} year The new year.\n */\n onYearChange: PropTypes.func,\n /**\n * Control the popup or dialog open state.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['day', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'year']),\n /**\n * Force rendering in particular orientation.\n */\n orientation: PropTypes.oneOf(['landscape', 'portrait']),\n /**\n * If `true`, the component is read-only.\n * When read-only, the value cannot be changed but the user can interact with the interface.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.\n */\n referenceDate: PropTypes.object,\n /**\n * Component displaying when passed `loading` true.\n * @returns {React.ReactNode} The node to render when loading.\n * @default () => <span>...</span>\n */\n renderLoading: PropTypes.func,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @param {PickerValidDate} day The date to test.\n * @returns {boolean} If `true` the date will be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * Disable specific month.\n * @param {PickerValidDate} month The month to test.\n * @returns {boolean} If `true`, the month will be disabled.\n */\n shouldDisableMonth: PropTypes.func,\n /**\n * Disable specific time.\n * @param {PickerValidDate} value The value to check.\n * @param {TimeView} view The clock type of the timeValue.\n * @returns {boolean} If `true` the time will be disabled.\n */\n shouldDisableTime: PropTypes.func,\n /**\n * Disable specific year.\n * @param {PickerValidDate} year The year to test.\n * @returns {boolean} If `true`, the year will be disabled.\n */\n shouldDisableYear: PropTypes.func,\n /**\n * If `true`, days outside the current month are rendered:\n *\n * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.\n *\n * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.\n *\n * - ignored if `calendars` equals more than `1` on range pickers.\n * @default false\n */\n showDaysOutsideCurrentMonth: PropTypes.bool,\n /**\n * If `true`, disabled digital clock items will not be rendered.\n * @default false\n */\n skipDisabled: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Amount of time options below or at which the single column time renderer is used.\n * @default 24\n */\n thresholdToRenderTimeInASingleColumn: PropTypes.number,\n /**\n * The time steps between two time unit options.\n * For example, if `timeStep.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.\n * When single column time renderer is used, only `timeStep.minutes` will be used.\n * @default{ hours: 1, minutes: 5, seconds: 5 }\n */\n timeSteps: PropTypes.shape({\n hours: PropTypes.number,\n minutes: PropTypes.number,\n seconds: PropTypes.number\n }),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['day', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'year']),\n /**\n * Define custom view renderers for each section.\n * If `null`, the section will only have field editing.\n * If `undefined`, internally defined view will be used.\n */\n viewRenderers: PropTypes.shape({\n day: PropTypes.func,\n hours: PropTypes.func,\n meridiem: PropTypes.func,\n minutes: PropTypes.func,\n month: PropTypes.func,\n seconds: PropTypes.func,\n year: PropTypes.func\n }),\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']).isRequired),\n /**\n * Years are displayed in ascending (chronological) order by default.\n * If `desc`, years are displayed in descending order.\n * @default 'asc'\n */\n yearsOrder: PropTypes.oneOf(['asc', 'desc']),\n /**\n * Years rendered per row.\n * @default 4\n */\n yearsPerRow: PropTypes.oneOf([3, 4])\n};\nexport { DesktopDateTimePicker };","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport { refType } from '@mui/utils';\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { DateTimeField } from \"../DateTimeField/index.js\";\nimport { useDateTimePickerDefaultizedProps } from \"../DateTimePicker/shared.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { extractValidationProps, validateDateTime } from \"../validation/index.js\";\nimport { useMobilePicker } from \"../internals/hooks/useMobilePicker/index.js\";\nimport { renderDateViewCalendar } from \"../dateViewRenderers/index.js\";\nimport { renderDigitalClockTimeView, renderMultiSectionDigitalClockTimeView } from \"../timeViewRenderers/index.js\";\nimport { resolveDateTimeFormat } from \"../internals/utils/date-time-utils.js\";\nimport { DIALOG_WIDTH, VIEW_HEIGHT } from \"../internals/constants/dimensions.js\";\nimport { multiSectionDigitalClockClasses, multiSectionDigitalClockSectionClasses } from \"../MultiSectionDigitalClock/index.js\";\nimport { mergeSx } from \"../internals/utils/utils.js\";\nimport { digitalClockClasses } from \"../DigitalClock/index.js\";\nimport { EXPORTED_TIME_VIEWS } from \"../internals/utils/time-utils.js\";\nimport { DATE_VIEWS } from \"../internals/utils/date-utils.js\";\nconst STEPS = [{\n views: DATE_VIEWS\n}, {\n views: EXPORTED_TIME_VIEWS\n}];\n/**\n * Demos:\n *\n * - [DateTimePicker](https://mui.com/x/react-date-pickers/date-time-picker/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [MobileDateTimePicker API](https://mui.com/x/api/date-pickers/mobile-date-time-picker/)\n */\nconst MobileDateTimePicker = /*#__PURE__*/React.forwardRef(function MobileDateTimePicker(inProps, ref) {\n const utils = useUtils();\n\n // Props with the default values common to all date time pickers\n const defaultizedProps = useDateTimePickerDefaultizedProps(inProps, 'MuiMobileDateTimePicker');\n const renderTimeView = defaultizedProps.shouldRenderTimeInASingleColumn ? renderDigitalClockTimeView : renderMultiSectionDigitalClockTimeView;\n const viewRenderers = _extends({\n day: renderDateViewCalendar,\n month: renderDateViewCalendar,\n year: renderDateViewCalendar,\n hours: renderTimeView,\n minutes: renderTimeView,\n seconds: renderTimeView,\n meridiem: renderTimeView\n }, defaultizedProps.viewRenderers);\n const ampmInClock = defaultizedProps.ampmInClock ?? false;\n // Need to avoid adding the `meridiem` view when unexpected renderer is specified\n const shouldHoursRendererContainMeridiemView = viewRenderers.hours?.name === renderMultiSectionDigitalClockTimeView.name;\n const views = !shouldHoursRendererContainMeridiemView ? defaultizedProps.views.filter(view => view !== 'meridiem') : defaultizedProps.views;\n\n // Props with the default values specific to the mobile variant\n const props = _extends({}, defaultizedProps, {\n viewRenderers,\n format: resolveDateTimeFormat(utils, defaultizedProps),\n views,\n ampmInClock,\n slots: _extends({\n field: DateTimeField\n }, defaultizedProps.slots),\n slotProps: _extends({}, defaultizedProps.slotProps, {\n field: ownerState => _extends({}, resolveComponentProps(defaultizedProps.slotProps?.field, ownerState), extractValidationProps(defaultizedProps)),\n toolbar: _extends({\n hidden: false,\n ampmInClock\n }, defaultizedProps.slotProps?.toolbar),\n tabs: _extends({\n hidden: false\n }, defaultizedProps.slotProps?.tabs),\n layout: _extends({}, defaultizedProps.slotProps?.layout, {\n sx: mergeSx([{\n [`& .${multiSectionDigitalClockClasses.root}`]: {\n width: DIALOG_WIDTH\n },\n [`& .${multiSectionDigitalClockSectionClasses.root}`]: {\n flex: 1,\n // account for the border on `MultiSectionDigitalClock`\n maxHeight: VIEW_HEIGHT - 1,\n [`.${multiSectionDigitalClockSectionClasses.item}`]: {\n width: 'auto'\n }\n },\n [`& .${digitalClockClasses.root}`]: {\n width: DIALOG_WIDTH,\n maxHeight: VIEW_HEIGHT,\n flex: 1,\n [`.${digitalClockClasses.item}`]: {\n justifyContent: 'center'\n }\n }\n }], defaultizedProps.slotProps?.layout?.sx)\n })\n })\n });\n const {\n renderPicker\n } = useMobilePicker({\n ref,\n props,\n valueManager: singleItemValueManager,\n valueType: 'date-time',\n validator: validateDateTime,\n steps: STEPS\n });\n return renderPicker();\n});\nMobileDateTimePicker.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * 12h/24h view for hour selection clock.\n * @default utils.is12HourCycleInCurrentLocale()\n */\n ampm: PropTypes.bool,\n /**\n * Display ampm controls under the clock (instead of in the toolbar).\n * @default true on desktop, false on mobile\n */\n ampmInClock: PropTypes.bool,\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, the Picker will close after submitting the full date.\n * @default false\n */\n closeOnSelect: PropTypes.bool,\n /**\n * Formats the day of week displayed in the calendar header.\n * @param {PickerValidDate} date The date of the day of week provided by the adapter.\n * @returns {string} The name to display.\n * @default (date: PickerValidDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()\n */\n dayOfWeekFormatter: PropTypes.func,\n /**\n * The default value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the component is disabled.\n * When disabled, the value cannot be changed and no interaction is possible.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * Do not ignore date part when validating min/max time.\n * @default false\n */\n disableIgnoringDatePartForTimeValidation: PropTypes.bool,\n /**\n * If `true`, the button to open the Picker will not be rendered (it will only render the field).\n * @deprecated Use the [field component](https://mui.com/x/react-date-pickers/fields/) instead.\n * @default false\n */\n disableOpenPicker: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * If `true`, the week number will be display in the calendar.\n */\n displayWeekNumber: PropTypes.bool,\n /**\n * @default true\n */\n enableAccessibleFieldDOMStructure: PropTypes.any,\n /**\n * The day view will show as many weeks as needed after the end of the current month to match this value.\n * Put it to 6 to have a fixed number of weeks in Gregorian calendars\n */\n fixedWeekNumber: PropTypes.number,\n /**\n * Format of the date when rendered in the input(s).\n * Defaults to localized format based on the used `views`.\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * If `true`, calls `renderLoading` instead of rendering the day calendar.\n * Can be used to preload information and show it in calendar.\n * @default false\n */\n loading: PropTypes.bool,\n /**\n * Locale for components texts.\n * Allows overriding texts coming from `LocalizationProvider` and `theme`.\n */\n localeText: PropTypes.object,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Maximal selectable moment of time with binding to date, to set max time in each day use `maxTime`.\n */\n maxDateTime: PropTypes.object,\n /**\n * Maximal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n maxTime: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Minimal selectable moment of time with binding to date, to set min time in each day use `minTime`.\n */\n minDateTime: PropTypes.object,\n /**\n * Minimal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n minTime: PropTypes.object,\n /**\n * Step over minutes.\n * @default 1\n */\n minutesStep: PropTypes.number,\n /**\n * Months rendered per row.\n * @default 3\n */\n monthsPerRow: PropTypes.oneOf([3, 4]),\n /**\n * Name attribute used by the `input` element in the Field.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is accepted.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The value that was just accepted.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onAccept: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see `open`).\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired on month change.\n * @param {PickerValidDate} month The new month.\n */\n onMonthChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see `open`).\n */\n onOpen: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * Callback fired on year change.\n * @param {PickerValidDate} year The new year.\n */\n onYearChange: PropTypes.func,\n /**\n * Control the popup or dialog open state.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['day', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'year']),\n /**\n * Force rendering in particular orientation.\n */\n orientation: PropTypes.oneOf(['landscape', 'portrait']),\n /**\n * If `true`, the component is read-only.\n * When read-only, the value cannot be changed but the user can interact with the interface.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.\n */\n referenceDate: PropTypes.object,\n /**\n * Component displaying when passed `loading` true.\n * @returns {React.ReactNode} The node to render when loading.\n * @default () => <span>...</span>\n */\n renderLoading: PropTypes.func,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @param {PickerValidDate} day The date to test.\n * @returns {boolean} If `true` the date will be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * Disable specific month.\n * @param {PickerValidDate} month The month to test.\n * @returns {boolean} If `true`, the month will be disabled.\n */\n shouldDisableMonth: PropTypes.func,\n /**\n * Disable specific time.\n * @param {PickerValidDate} value The value to check.\n * @param {TimeView} view The clock type of the timeValue.\n * @returns {boolean} If `true` the time will be disabled.\n */\n shouldDisableTime: PropTypes.func,\n /**\n * Disable specific year.\n * @param {PickerValidDate} year The year to test.\n * @returns {boolean} If `true`, the year will be disabled.\n */\n shouldDisableYear: PropTypes.func,\n /**\n * If `true`, days outside the current month are rendered:\n *\n * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.\n *\n * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.\n *\n * - ignored if `calendars` equals more than `1` on range pickers.\n * @default false\n */\n showDaysOutsideCurrentMonth: PropTypes.bool,\n /**\n * If `true`, disabled digital clock items will not be rendered.\n * @default false\n */\n skipDisabled: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Amount of time options below or at which the single column time renderer is used.\n * @default 24\n */\n thresholdToRenderTimeInASingleColumn: PropTypes.number,\n /**\n * The time steps between two time unit options.\n * For example, if `timeStep.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.\n * When single column time renderer is used, only `timeStep.minutes` will be used.\n * @default{ hours: 1, minutes: 5, seconds: 5 }\n */\n timeSteps: PropTypes.shape({\n hours: PropTypes.number,\n minutes: PropTypes.number,\n seconds: PropTypes.number\n }),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['day', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'year']),\n /**\n * Define custom view renderers for each section.\n * If `null`, the section will only have field editing.\n * If `undefined`, internally defined view will be used.\n */\n viewRenderers: PropTypes.shape({\n day: PropTypes.func,\n hours: PropTypes.func,\n meridiem: PropTypes.func,\n minutes: PropTypes.func,\n month: PropTypes.func,\n seconds: PropTypes.func,\n year: PropTypes.func\n }),\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']).isRequired),\n /**\n * Years are displayed in ascending (chronological) order by default.\n * If `desc`, years are displayed in descending order.\n * @default 'asc'\n */\n yearsOrder: PropTypes.oneOf(['asc', 'desc']),\n /**\n * Years rendered per row.\n * @default 3\n */\n yearsPerRow: PropTypes.oneOf([3, 4])\n};\nexport { MobileDateTimePicker };","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"desktopModeMediaQuery\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport { useThemeProps } from '@mui/material/styles';\nimport { refType } from '@mui/utils';\nimport { DesktopDateTimePicker } from \"../DesktopDateTimePicker/index.js\";\nimport { MobileDateTimePicker } from \"../MobileDateTimePicker/index.js\";\nimport { DEFAULT_DESKTOP_MODE_MEDIA_QUERY } from \"../internals/utils/utils.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Demos:\n *\n * - [DateTimePicker](https://mui.com/x/react-date-pickers/date-time-picker/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [DateTimePicker API](https://mui.com/x/api/date-pickers/date-time-picker/)\n */\nconst DateTimePicker = /*#__PURE__*/React.forwardRef(function DateTimePicker(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiDateTimePicker'\n });\n const {\n desktopModeMediaQuery = DEFAULT_DESKTOP_MODE_MEDIA_QUERY\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n // defaults to `true` in environments where `window.matchMedia` would not be available (i.e. test/jsdom)\n const isDesktop = useMediaQuery(desktopModeMediaQuery, {\n defaultMatches: true\n });\n if (isDesktop) {\n return /*#__PURE__*/_jsx(DesktopDateTimePicker, _extends({\n ref: ref\n }, other));\n }\n return /*#__PURE__*/_jsx(MobileDateTimePicker, _extends({\n ref: ref\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? DateTimePicker.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * 12h/24h view for hour selection clock.\n * @default utils.is12HourCycleInCurrentLocale()\n */\n ampm: PropTypes.bool,\n /**\n * Display ampm controls under the clock (instead of in the toolbar).\n * @default true on desktop, false on mobile\n */\n ampmInClock: PropTypes.bool,\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, the Picker will close after submitting the full date.\n * @default false\n */\n closeOnSelect: PropTypes.bool,\n /**\n * Formats the day of week displayed in the calendar header.\n * @param {PickerValidDate} date The date of the day of week provided by the adapter.\n * @returns {string} The name to display.\n * @default (date: PickerValidDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()\n */\n dayOfWeekFormatter: PropTypes.func,\n /**\n * The default value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * CSS media query when `Mobile` mode will be changed to `Desktop`.\n * @default '@media (pointer: fine)'\n * @example '@media (min-width: 720px)' or theme.breakpoints.up(\"sm\")\n */\n desktopModeMediaQuery: PropTypes.string,\n /**\n * If `true`, the component is disabled.\n * When disabled, the value cannot be changed and no interaction is possible.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * Do not ignore date part when validating min/max time.\n * @default false\n */\n disableIgnoringDatePartForTimeValidation: PropTypes.bool,\n /**\n * If `true`, the button to open the Picker will not be rendered (it will only render the field).\n * @deprecated Use the [field component](https://mui.com/x/react-date-pickers/fields/) instead.\n * @default false\n */\n disableOpenPicker: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * If `true`, the week number will be display in the calendar.\n */\n displayWeekNumber: PropTypes.bool,\n /**\n * @default true\n */\n enableAccessibleFieldDOMStructure: PropTypes.any,\n /**\n * The day view will show as many weeks as needed after the end of the current month to match this value.\n * Put it to 6 to have a fixed number of weeks in Gregorian calendars\n */\n fixedWeekNumber: PropTypes.number,\n /**\n * Format of the date when rendered in the input(s).\n * Defaults to localized format based on the used `views`.\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * If `true`, calls `renderLoading` instead of rendering the day calendar.\n * Can be used to preload information and show it in calendar.\n * @default false\n */\n loading: PropTypes.bool,\n /**\n * Locale for components texts.\n * Allows overriding texts coming from `LocalizationProvider` and `theme`.\n */\n localeText: PropTypes.object,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Maximal selectable moment of time with binding to date, to set max time in each day use `maxTime`.\n */\n maxDateTime: PropTypes.object,\n /**\n * Maximal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n maxTime: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Minimal selectable moment of time with binding to date, to set min time in each day use `minTime`.\n */\n minDateTime: PropTypes.object,\n /**\n * Minimal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n minTime: PropTypes.object,\n /**\n * Step over minutes.\n * @default 1\n */\n minutesStep: PropTypes.number,\n /**\n * Months rendered per row.\n * @default 3\n */\n monthsPerRow: PropTypes.oneOf([3, 4]),\n /**\n * Name attribute used by the `input` element in the Field.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is accepted.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The value that was just accepted.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onAccept: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see `open`).\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired on month change.\n * @param {PickerValidDate} month The new month.\n */\n onMonthChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see `open`).\n */\n onOpen: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * Callback fired on year change.\n * @param {PickerValidDate} year The new year.\n */\n onYearChange: PropTypes.func,\n /**\n * Control the popup or dialog open state.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['day', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'year']),\n /**\n * Force rendering in particular orientation.\n */\n orientation: PropTypes.oneOf(['landscape', 'portrait']),\n /**\n * If `true`, the component is read-only.\n * When read-only, the value cannot be changed but the user can interact with the interface.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.\n */\n referenceDate: PropTypes.object,\n /**\n * Component displaying when passed `loading` true.\n * @returns {React.ReactNode} The node to render when loading.\n * @default () => <span>...</span>\n */\n renderLoading: PropTypes.func,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @param {PickerValidDate} day The date to test.\n * @returns {boolean} If `true` the date will be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * Disable specific month.\n * @param {PickerValidDate} month The month to test.\n * @returns {boolean} If `true`, the month will be disabled.\n */\n shouldDisableMonth: PropTypes.func,\n /**\n * Disable specific time.\n * @param {PickerValidDate} value The value to check.\n * @param {TimeView} view The clock type of the timeValue.\n * @returns {boolean} If `true` the time will be disabled.\n */\n shouldDisableTime: PropTypes.func,\n /**\n * Disable specific year.\n * @param {PickerValidDate} year The year to test.\n * @returns {boolean} If `true`, the year will be disabled.\n */\n shouldDisableYear: PropTypes.func,\n /**\n * If `true`, days outside the current month are rendered:\n *\n * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.\n *\n * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.\n *\n * - ignored if `calendars` equals more than `1` on range pickers.\n * @default false\n */\n showDaysOutsideCurrentMonth: PropTypes.bool,\n /**\n * If `true`, disabled digital clock items will not be rendered.\n * @default false\n */\n skipDisabled: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Amount of time options below or at which the single column time renderer is used.\n * @default 24\n */\n thresholdToRenderTimeInASingleColumn: PropTypes.number,\n /**\n * The time steps between two time unit options.\n * For example, if `timeStep.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.\n * When single column time renderer is used, only `timeStep.minutes` will be used.\n * @default{ hours: 1, minutes: 5, seconds: 5 }\n */\n timeSteps: PropTypes.shape({\n hours: PropTypes.number,\n minutes: PropTypes.number,\n seconds: PropTypes.number\n }),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['day', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'year']),\n /**\n * Define custom view renderers for each section.\n * If `null`, the section will only have field editing.\n * If `undefined`, internally defined view will be used.\n */\n viewRenderers: PropTypes.shape({\n day: PropTypes.func,\n hours: PropTypes.func,\n meridiem: PropTypes.func,\n minutes: PropTypes.func,\n month: PropTypes.func,\n seconds: PropTypes.func,\n year: PropTypes.func\n }),\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']).isRequired),\n /**\n * Years are displayed in ascending (chronological) order by default.\n * If `desc`, years are displayed in descending order.\n * @default 'asc'\n */\n yearsOrder: PropTypes.oneOf(['asc', 'desc']),\n /**\n * Years rendered per row.\n * @default 4 on desktop, 3 on mobile\n */\n yearsPerRow: PropTypes.oneOf([3, 4])\n} : void 0;\nexport { DateTimePicker };","import _extends from \"@babel/runtime/helpers/esm/extends\";\n/* eslint-disable class-methods-use-this */\nimport { DateTime, Info } from 'luxon';\nconst formatTokenMap = {\n // Year\n y: {\n sectionType: 'year',\n contentType: 'digit',\n maxLength: 4\n },\n yy: 'year',\n yyyy: {\n sectionType: 'year',\n contentType: 'digit',\n maxLength: 4\n },\n // Month\n L: {\n sectionType: 'month',\n contentType: 'digit',\n maxLength: 2\n },\n LL: 'month',\n LLL: {\n sectionType: 'month',\n contentType: 'letter'\n },\n LLLL: {\n sectionType: 'month',\n contentType: 'letter'\n },\n M: {\n sectionType: 'month',\n contentType: 'digit',\n maxLength: 2\n },\n MM: 'month',\n MMM: {\n sectionType: 'month',\n contentType: 'letter'\n },\n MMMM: {\n sectionType: 'month',\n contentType: 'letter'\n },\n // Day of the month\n d: {\n sectionType: 'day',\n contentType: 'digit',\n maxLength: 2\n },\n dd: 'day',\n // Day of the week\n c: {\n sectionType: 'weekDay',\n contentType: 'digit',\n maxLength: 1\n },\n ccc: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n cccc: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n E: {\n sectionType: 'weekDay',\n contentType: 'digit',\n maxLength: 2\n },\n EEE: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n EEEE: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n // Meridiem\n a: 'meridiem',\n // Hours\n H: {\n sectionType: 'hours',\n contentType: 'digit',\n maxLength: 2\n },\n HH: 'hours',\n h: {\n sectionType: 'hours',\n contentType: 'digit',\n maxLength: 2\n },\n hh: 'hours',\n // Minutes\n m: {\n sectionType: 'minutes',\n contentType: 'digit',\n maxLength: 2\n },\n mm: 'minutes',\n // Seconds\n s: {\n sectionType: 'seconds',\n contentType: 'digit',\n maxLength: 2\n },\n ss: 'seconds'\n};\nconst defaultFormats = {\n year: 'yyyy',\n month: 'LLLL',\n monthShort: 'MMM',\n dayOfMonth: 'd',\n // Full day of the month format (i.e. 3rd) is not supported\n // Falling back to regular format\n dayOfMonthFull: 'd',\n weekday: 'cccc',\n weekdayShort: 'ccccc',\n hours24h: 'HH',\n hours12h: 'hh',\n meridiem: 'a',\n minutes: 'mm',\n seconds: 'ss',\n fullDate: 'DD',\n keyboardDate: 'D',\n shortDate: 'MMM d',\n normalDate: 'd MMMM',\n normalDateWithWeekday: 'EEE, MMM d',\n fullTime12h: 'hh:mm a',\n fullTime24h: 'HH:mm',\n keyboardDateTime12h: 'D hh:mm a',\n keyboardDateTime24h: 'D T'\n};\n/**\n * Based on `@date-io/luxon`\n *\n * MIT License\n *\n * Copyright (c) 2017 Dmitriy Kovalenko\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nexport class AdapterLuxon {\n constructor({\n locale,\n formats\n } = {}) {\n this.isMUIAdapter = true;\n this.isTimezoneCompatible = true;\n this.lib = 'luxon';\n this.locale = void 0;\n this.formats = void 0;\n this.escapedCharacters = {\n start: \"'\",\n end: \"'\"\n };\n this.formatTokenMap = formatTokenMap;\n this.setLocaleToValue = value => {\n const expectedLocale = this.getCurrentLocaleCode();\n if (expectedLocale === value.locale) {\n return value;\n }\n return value.setLocale(expectedLocale);\n };\n this.date = (value, timezone = 'default') => {\n if (value === null) {\n return null;\n }\n if (typeof value === 'undefined') {\n // @ts-ignore\n return DateTime.fromJSDate(new Date(), {\n locale: this.locale,\n zone: timezone\n });\n }\n\n // @ts-ignore\n return DateTime.fromISO(value, {\n locale: this.locale,\n zone: timezone\n });\n };\n this.getInvalidDate = () => DateTime.fromJSDate(new Date('Invalid Date'));\n this.getTimezone = value => {\n // When using the system zone, we want to return \"system\", not something like \"Europe/Paris\"\n if (value.zone.type === 'system') {\n return 'system';\n }\n return value.zoneName;\n };\n this.setTimezone = (value, timezone) => {\n if (!value.zone.equals(Info.normalizeZone(timezone))) {\n return value.setZone(timezone);\n }\n return value;\n };\n this.toJsDate = value => {\n return value.toJSDate();\n };\n this.parse = (value, formatString) => {\n if (value === '') {\n return null;\n }\n return DateTime.fromFormat(value, formatString, {\n locale: this.locale\n });\n };\n this.getCurrentLocaleCode = () => {\n return this.locale;\n };\n /* istanbul ignore next */\n this.is12HourCycleInCurrentLocale = () => {\n if (typeof Intl === 'undefined' || typeof Intl.DateTimeFormat === 'undefined') {\n return true; // Luxon defaults to en-US if Intl not found\n }\n return Boolean(new Intl.DateTimeFormat(this.locale, {\n hour: 'numeric'\n })?.resolvedOptions()?.hour12);\n };\n this.expandFormat = format => {\n // Extract escaped section to avoid extending them\n const catchEscapedSectionsRegexp = /''|'(''|[^'])+('|$)|[^']*/g;\n\n // This RegExp tests if a string is only mad of supported tokens\n const validTokens = [...Object.keys(this.formatTokenMap), 'yyyyy'];\n const isWordComposedOfTokens = new RegExp(`^(${validTokens.join('|')})+$`);\n\n // Extract words to test if they are a token or a word to escape.\n const catchWordsRegexp = /(?:^|[^a-z])([a-z]+)(?:[^a-z]|$)|([a-z]+)/gi;\n return format.match(catchEscapedSectionsRegexp).map(token => {\n const firstCharacter = token[0];\n if (firstCharacter === \"'\") {\n return token;\n }\n const expandedToken = DateTime.expandFormat(token, {\n locale: this.locale\n });\n return expandedToken.replace(catchWordsRegexp, (substring, g1, g2) => {\n const word = g1 || g2; // words are either in group 1 or group 2\n\n if (isWordComposedOfTokens.test(word)) {\n return substring;\n }\n return `'${substring}'`;\n });\n }).join('')\n // The returned format can contain `yyyyy` which means year between 4 and 6 digits.\n // This value is supported by luxon parser but not luxon formatter.\n // To avoid conflicts, we replace it by 4 digits which is enough for most use-cases.\n .replace('yyyyy', 'yyyy');\n };\n this.isValid = value => {\n if (value === null) {\n return false;\n }\n return value.isValid;\n };\n this.format = (value, formatKey) => {\n return this.formatByString(value, this.formats[formatKey]);\n };\n this.formatByString = (value, format) => {\n return value.setLocale(this.locale).toFormat(format);\n };\n this.formatNumber = numberToFormat => {\n return numberToFormat;\n };\n this.isEqual = (value, comparing) => {\n if (value === null && comparing === null) {\n return true;\n }\n if (value === null || comparing === null) {\n return false;\n }\n return +value === +comparing;\n };\n this.isSameYear = (value, comparing) => {\n const comparingInValueTimezone = this.setTimezone(comparing, this.getTimezone(value));\n return value.hasSame(comparingInValueTimezone, 'year');\n };\n this.isSameMonth = (value, comparing) => {\n const comparingInValueTimezone = this.setTimezone(comparing, this.getTimezone(value));\n return value.hasSame(comparingInValueTimezone, 'month');\n };\n this.isSameDay = (value, comparing) => {\n const comparingInValueTimezone = this.setTimezone(comparing, this.getTimezone(value));\n return value.hasSame(comparingInValueTimezone, 'day');\n };\n this.isSameHour = (value, comparing) => {\n const comparingInValueTimezone = this.setTimezone(comparing, this.getTimezone(value));\n return value.hasSame(comparingInValueTimezone, 'hour');\n };\n this.isAfter = (value, comparing) => {\n return value > comparing;\n };\n this.isAfterYear = (value, comparing) => {\n const comparingInValueTimezone = this.setTimezone(comparing, this.getTimezone(value));\n const diff = value.diff(this.endOfYear(comparingInValueTimezone), 'years').toObject();\n return diff.years > 0;\n };\n this.isAfterDay = (value, comparing) => {\n const comparingInValueTimezone = this.setTimezone(comparing, this.getTimezone(value));\n const diff = value.diff(this.endOfDay(comparingInValueTimezone), 'days').toObject();\n return diff.days > 0;\n };\n this.isBefore = (value, comparing) => {\n return value < comparing;\n };\n this.isBeforeYear = (value, comparing) => {\n const comparingInValueTimezone = this.setTimezone(comparing, this.getTimezone(value));\n const diff = value.diff(this.startOfYear(comparingInValueTimezone), 'years').toObject();\n return diff.years < 0;\n };\n this.isBeforeDay = (value, comparing) => {\n const comparingInValueTimezone = this.setTimezone(comparing, this.getTimezone(value));\n const diff = value.diff(this.startOfDay(comparingInValueTimezone), 'days').toObject();\n return diff.days < 0;\n };\n this.isWithinRange = (value, [start, end]) => {\n return this.isEqual(value, start) || this.isEqual(value, end) || this.isAfter(value, start) && this.isBefore(value, end);\n };\n this.startOfYear = value => {\n return value.startOf('year');\n };\n this.startOfMonth = value => {\n return value.startOf('month');\n };\n this.startOfWeek = value => {\n return this.setLocaleToValue(value).startOf('week', {\n useLocaleWeeks: true\n });\n };\n this.startOfDay = value => {\n return value.startOf('day');\n };\n this.endOfYear = value => {\n return value.endOf('year');\n };\n this.endOfMonth = value => {\n return value.endOf('month');\n };\n this.endOfWeek = value => {\n return this.setLocaleToValue(value).endOf('week', {\n useLocaleWeeks: true\n });\n };\n this.endOfDay = value => {\n return value.endOf('day');\n };\n this.addYears = (value, amount) => {\n return value.plus({\n years: amount\n });\n };\n this.addMonths = (value, amount) => {\n return value.plus({\n months: amount\n });\n };\n this.addWeeks = (value, amount) => {\n return value.plus({\n weeks: amount\n });\n };\n this.addDays = (value, amount) => {\n return value.plus({\n days: amount\n });\n };\n this.addHours = (value, amount) => {\n return value.plus({\n hours: amount\n });\n };\n this.addMinutes = (value, amount) => {\n return value.plus({\n minutes: amount\n });\n };\n this.addSeconds = (value, amount) => {\n return value.plus({\n seconds: amount\n });\n };\n this.getYear = value => {\n return value.get('year');\n };\n this.getMonth = value => {\n // See https://github.com/moment/luxon/blob/master/docs/moment.md#major-functional-differences\n return value.get('month') - 1;\n };\n this.getDate = value => {\n return value.get('day');\n };\n this.getHours = value => {\n return value.get('hour');\n };\n this.getMinutes = value => {\n return value.get('minute');\n };\n this.getSeconds = value => {\n return value.get('second');\n };\n this.getMilliseconds = value => {\n return value.get('millisecond');\n };\n this.setYear = (value, year) => {\n return value.set({\n year\n });\n };\n this.setMonth = (value, month) => {\n return value.set({\n month: month + 1\n });\n };\n this.setDate = (value, date) => {\n return value.set({\n day: date\n });\n };\n this.setHours = (value, hours) => {\n return value.set({\n hour: hours\n });\n };\n this.setMinutes = (value, minutes) => {\n return value.set({\n minute: minutes\n });\n };\n this.setSeconds = (value, seconds) => {\n return value.set({\n second: seconds\n });\n };\n this.setMilliseconds = (value, milliseconds) => {\n return value.set({\n millisecond: milliseconds\n });\n };\n this.getDaysInMonth = value => {\n return value.daysInMonth;\n };\n this.getWeekArray = value => {\n const firstDay = this.startOfWeek(this.startOfMonth(value));\n const lastDay = this.endOfWeek(this.endOfMonth(value));\n const {\n days\n } = lastDay.diff(firstDay, 'days').toObject();\n const weeks = [];\n new Array(Math.round(days)).fill(0).map((_, i) => i).map(day => firstDay.plus({\n days: day\n })).forEach((v, i) => {\n if (i === 0 || i % 7 === 0 && i > 6) {\n weeks.push([v]);\n return;\n }\n weeks[weeks.length - 1].push(v);\n });\n return weeks;\n };\n this.getWeekNumber = value => {\n /* istanbul ignore next */\n return value.localWeekNumber ?? value.weekNumber;\n };\n this.getDayOfWeek = value => {\n return value.weekday;\n };\n this.getYearRange = ([start, end]) => {\n const startDate = this.startOfYear(start);\n const endDate = this.endOfYear(end);\n const years = [];\n let current = startDate;\n while (this.isBefore(current, endDate)) {\n years.push(current);\n current = this.addYears(current, 1);\n }\n return years;\n };\n this.locale = locale || 'en-US';\n this.formats = _extends({}, defaultFormats, formats);\n }\n}","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14\"\n}), 'Search');","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","import PhotoIcon from \"@mui/icons-material/Photo\";\nimport SearchIcon from \"@mui/icons-material/Search\";\nimport {\n Autocomplete,\n Avatar,\n FormControlLabel,\n FormGroup,\n InputAdornment,\n ListItem,\n ListItemIcon,\n ListItemText,\n Stack,\n Switch,\n TextField,\n} from \"@mui/material\";\nimport { Ingredient } from \"components/Nutrition/models/Ingredient\";\nimport debounce from \"lodash/debounce\";\nimport * as React from 'react';\nimport { useEffect, useMemo, useState } from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { searchIngredient } from \"services\";\nimport { LANGUAGE_SHORT_ENGLISH } from \"utils/consts\";\n\ntype IngredientAutocompleterProps = {\n callback: Function;\n initialIngredient?: Ingredient | null;\n};\n\nexport function IngredientAutocompleter({ callback, initialIngredient }: IngredientAutocompleterProps) {\n const initialData = initialIngredient ?? null;\n\n const [searchEnglish, setSearchEnglish] = useState<boolean>(true);\n const [value, setValue] = useState<Ingredient | null>(initialData);\n const [inputValue, setInputValue] = useState(\"\");\n const [options, setOptions] = useState<readonly Ingredient[]>([]);\n const [t, i18n] = useTranslation();\n\n const fetchName = useMemo(\n () =>\n debounce(\n (request: string) =>\n searchIngredient(request, i18n.language, searchEnglish).then((res) => setOptions(res)),\n 200\n ),\n [i18n.language, searchEnglish]\n );\n\n useEffect(() => {\n if (inputValue === \"\") {\n setOptions(value ? [value] : []);\n return undefined;\n }\n\n fetchName(inputValue);\n\n return () => {\n fetchName.cancel();\n };\n }, [value, inputValue, fetchName]);\n\n return (\n <Stack>\n <Autocomplete\n id=\"ingredient-autocomplete\"\n getOptionLabel={(option) => option.name}\n data-testid=\"autocomplete\"\n filterOptions={(x) => x}\n options={options}\n autoComplete\n includeInputInList\n filterSelectedOptions\n value={value}\n noOptionsText={t(\"noResults\")}\n isOptionEqualToValue={(option, value) => option.id === value.id}\n onChange={(event: unknown, newValue: Ingredient | null) => {\n setOptions(newValue ? [newValue, ...options] : options);\n setValue(newValue);\n callback(newValue);\n }}\n onInputChange={(event, newInputValue) => {\n setInputValue(newInputValue);\n }}\n renderInput={(params) => (\n <TextField\n {...params}\n label={t(\"nutrition.searchIngredientName\")}\n fullWidth\n slotProps={{\n input: {\n ...params.InputProps,\n startAdornment: (\n <>\n <InputAdornment position=\"start\">\n <SearchIcon />\n </InputAdornment>\n {params.InputProps.startAdornment}\n </>\n ),\n },\n }}\n />\n )}\n renderOption={(props, ingredient) => {\n return (\n <li {...props} key={`ingredient-${ingredient.id}`}>\n <ListItem disablePadding component=\"div\">\n <ListItemIcon>\n <Avatar alt=\"\" src={ingredient.thumbnails?.medium ?? ''}\n variant=\"rounded\">\n <PhotoIcon />\n </Avatar>\n </ListItemIcon>\n <ListItemText\n primary={ingredient.name}\n slotProps={{\n primary: {\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n },\n }}\n />\n </ListItem>\n </li>\n );\n }}\n />\n {i18n.language !== LANGUAGE_SHORT_ENGLISH && (\n <FormGroup>\n <FormControlLabel\n control={\n <Switch checked={searchEnglish} onChange={(event, checked) => setSearchEnglish(checked)} />\n }\n label={t(\"alsoSearchEnglish\")}\n />\n </FormGroup>\n )}\n </Stack>\n );\n}\n","var isMergeableObject = function isMergeableObject(value) {\n\treturn isNonNullObject(value)\n\t\t&& !isSpecial(value)\n};\n\nfunction isNonNullObject(value) {\n\treturn !!value && typeof value === 'object'\n}\n\nfunction isSpecial(value) {\n\tvar stringValue = Object.prototype.toString.call(value);\n\n\treturn stringValue === '[object RegExp]'\n\t\t|| stringValue === '[object Date]'\n\t\t|| isReactElement(value)\n}\n\n// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25\nvar canUseSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;\n\nfunction isReactElement(value) {\n\treturn value.$$typeof === REACT_ELEMENT_TYPE\n}\n\nfunction emptyTarget(val) {\n\treturn Array.isArray(val) ? [] : {}\n}\n\nfunction cloneUnlessOtherwiseSpecified(value, options) {\n\treturn (options.clone !== false && options.isMergeableObject(value))\n\t\t? deepmerge(emptyTarget(value), value, options)\n\t\t: value\n}\n\nfunction defaultArrayMerge(target, source, options) {\n\treturn target.concat(source).map(function(element) {\n\t\treturn cloneUnlessOtherwiseSpecified(element, options)\n\t})\n}\n\nfunction mergeObject(target, source, options) {\n\tvar destination = {};\n\tif (options.isMergeableObject(target)) {\n\t\tObject.keys(target).forEach(function(key) {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(target[key], options);\n\t\t});\n\t}\n\tObject.keys(source).forEach(function(key) {\n\t\tif (!options.isMergeableObject(source[key]) || !target[key]) {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(source[key], options);\n\t\t} else {\n\t\t\tdestination[key] = deepmerge(target[key], source[key], options);\n\t\t}\n\t});\n\treturn destination\n}\n\nfunction deepmerge(target, source, options) {\n\toptions = options || {};\n\toptions.arrayMerge = options.arrayMerge || defaultArrayMerge;\n\toptions.isMergeableObject = options.isMergeableObject || isMergeableObject;\n\n\tvar sourceIsArray = Array.isArray(source);\n\tvar targetIsArray = Array.isArray(target);\n\tvar sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n\tif (!sourceAndTargetTypesMatch) {\n\t\treturn cloneUnlessOtherwiseSpecified(source, options)\n\t} else if (sourceIsArray) {\n\t\treturn options.arrayMerge(target, source, options)\n\t} else {\n\t\treturn mergeObject(target, source, options)\n\t}\n}\n\ndeepmerge.all = function deepmergeAll(array, options) {\n\tif (!Array.isArray(array)) {\n\t\tthrow new Error('first argument should be an array')\n\t}\n\n\treturn array.reduce(function(prev, next) {\n\t\treturn deepmerge(prev, next, options)\n\t}, {})\n};\n\nvar deepmerge_1 = deepmerge;\n\nexport default deepmerge_1;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nexport default freeGlobal;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nexport default root;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nexport default Symbol;\n","import Symbol from './_Symbol.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nexport default getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nexport default objectToString;\n","import Symbol from './_Symbol.js';\nimport getRawTag from './_getRawTag.js';\nimport objectToString from './_objectToString.js';\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nexport default baseGetTag;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nexport default overArg;\n","import overArg from './_overArg.js';\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nexport default getPrototype;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nexport default isObjectLike;\n","import baseGetTag from './_baseGetTag.js';\nimport getPrototype from './_getPrototype.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nexport default isPlainObject;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nexport default listCacheClear;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nexport default eq;\n","import eq from './eq.js';\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nexport default assocIndexOf;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nexport default listCacheDelete;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nexport default listCacheGet;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nexport default listCacheHas;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nexport default listCacheSet;\n","import listCacheClear from './_listCacheClear.js';\nimport listCacheDelete from './_listCacheDelete.js';\nimport listCacheGet from './_listCacheGet.js';\nimport listCacheHas from './_listCacheHas.js';\nimport listCacheSet from './_listCacheSet.js';\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nexport default ListCache;\n","import ListCache from './_ListCache.js';\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nexport default stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nexport default stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nexport default stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nexport default stackHas;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nexport default isObject;\n","import baseGetTag from './_baseGetTag.js';\nimport isObject from './isObject.js';\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nexport default isFunction;\n","import root from './_root.js';\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nexport default coreJsData;\n","import coreJsData from './_coreJsData.js';\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nexport default isMasked;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nexport default toSource;\n","import isFunction from './isFunction.js';\nimport isMasked from './_isMasked.js';\nimport isObject from './isObject.js';\nimport toSource from './_toSource.js';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nexport default baseIsNative;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nexport default getValue;\n","import baseIsNative from './_baseIsNative.js';\nimport getValue from './_getValue.js';\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nexport default getNative;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nexport default Map;\n","import getNative from './_getNative.js';\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nexport default nativeCreate;\n","import nativeCreate from './_nativeCreate.js';\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nexport default hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nexport default hashDelete;\n","import nativeCreate from './_nativeCreate.js';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nexport default hashGet;\n","import nativeCreate from './_nativeCreate.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nexport default hashHas;\n","import nativeCreate from './_nativeCreate.js';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nexport default hashSet;\n","import hashClear from './_hashClear.js';\nimport hashDelete from './_hashDelete.js';\nimport hashGet from './_hashGet.js';\nimport hashHas from './_hashHas.js';\nimport hashSet from './_hashSet.js';\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nexport default Hash;\n","import Hash from './_Hash.js';\nimport ListCache from './_ListCache.js';\nimport Map from './_Map.js';\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nexport default mapCacheClear;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nexport default isKeyable;\n","import isKeyable from './_isKeyable.js';\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nexport default getMapData;\n","import getMapData from './_getMapData.js';\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nexport default mapCacheDelete;\n","import getMapData from './_getMapData.js';\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nexport default mapCacheGet;\n","import getMapData from './_getMapData.js';\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nexport default mapCacheHas;\n","import getMapData from './_getMapData.js';\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nexport default mapCacheSet;\n","import mapCacheClear from './_mapCacheClear.js';\nimport mapCacheDelete from './_mapCacheDelete.js';\nimport mapCacheGet from './_mapCacheGet.js';\nimport mapCacheHas from './_mapCacheHas.js';\nimport mapCacheSet from './_mapCacheSet.js';\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nexport default MapCache;\n","import ListCache from './_ListCache.js';\nimport Map from './_Map.js';\nimport MapCache from './_MapCache.js';\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nexport default stackSet;\n","import ListCache from './_ListCache.js';\nimport stackClear from './_stackClear.js';\nimport stackDelete from './_stackDelete.js';\nimport stackGet from './_stackGet.js';\nimport stackHas from './_stackHas.js';\nimport stackSet from './_stackSet.js';\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nexport default Stack;\n","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nexport default arrayEach;\n","import getNative from './_getNative.js';\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nexport default defineProperty;\n","import defineProperty from './_defineProperty.js';\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nexport default baseAssignValue;\n","import baseAssignValue from './_baseAssignValue.js';\nimport eq from './eq.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nexport default assignValue;\n","import assignValue from './_assignValue.js';\nimport baseAssignValue from './_baseAssignValue.js';\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nexport default copyObject;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nexport default baseTimes;\n","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nexport default baseIsArguments;\n","import baseIsArguments from './_baseIsArguments.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nexport default isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nexport default isArray;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nexport default stubFalse;\n","import root from './_root.js';\nimport stubFalse from './stubFalse.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nexport default isBuffer;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nexport default isIndex;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nexport default isLength;\n","import baseGetTag from './_baseGetTag.js';\nimport isLength from './isLength.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nexport default baseIsTypedArray;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nexport default baseUnary;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nexport default nodeUtil;\n","import baseIsTypedArray from './_baseIsTypedArray.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nexport default isTypedArray;\n","import baseTimes from './_baseTimes.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isIndex from './_isIndex.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default arrayLikeKeys;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nexport default isPrototype;\n","import overArg from './_overArg.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nexport default nativeKeys;\n","import isPrototype from './_isPrototype.js';\nimport nativeKeys from './_nativeKeys.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default baseKeys;\n","import isFunction from './isFunction.js';\nimport isLength from './isLength.js';\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nexport default isArrayLike;\n","import arrayLikeKeys from './_arrayLikeKeys.js';\nimport baseKeys from './_baseKeys.js';\nimport isArrayLike from './isArrayLike.js';\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nexport default keys;\n","import copyObject from './_copyObject.js';\nimport keys from './keys.js';\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n\nexport default baseAssign;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default nativeKeysIn;\n","import isObject from './isObject.js';\nimport isPrototype from './_isPrototype.js';\nimport nativeKeysIn from './_nativeKeysIn.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default baseKeysIn;\n","import arrayLikeKeys from './_arrayLikeKeys.js';\nimport baseKeysIn from './_baseKeysIn.js';\nimport isArrayLike from './isArrayLike.js';\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nexport default keysIn;\n","import copyObject from './_copyObject.js';\nimport keysIn from './keysIn.js';\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\n\nexport default baseAssignIn;\n","import root from './_root.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nexport default cloneBuffer;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nexport default copyArray;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nexport default arrayFilter;\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nexport default stubArray;\n","import arrayFilter from './_arrayFilter.js';\nimport stubArray from './stubArray.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nexport default getSymbols;\n","import copyObject from './_copyObject.js';\nimport getSymbols from './_getSymbols.js';\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nexport default copySymbols;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nexport default arrayPush;\n","import arrayPush from './_arrayPush.js';\nimport getPrototype from './_getPrototype.js';\nimport getSymbols from './_getSymbols.js';\nimport stubArray from './stubArray.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\n\nexport default getSymbolsIn;\n","import copyObject from './_copyObject.js';\nimport getSymbolsIn from './_getSymbolsIn.js';\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nexport default copySymbolsIn;\n","import arrayPush from './_arrayPush.js';\nimport isArray from './isArray.js';\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nexport default baseGetAllKeys;\n","import baseGetAllKeys from './_baseGetAllKeys.js';\nimport getSymbols from './_getSymbols.js';\nimport keys from './keys.js';\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nexport default getAllKeys;\n","import baseGetAllKeys from './_baseGetAllKeys.js';\nimport getSymbolsIn from './_getSymbolsIn.js';\nimport keysIn from './keysIn.js';\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nexport default getAllKeysIn;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nexport default DataView;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nexport default Promise;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nexport default Set;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nexport default WeakMap;\n","import DataView from './_DataView.js';\nimport Map from './_Map.js';\nimport Promise from './_Promise.js';\nimport Set from './_Set.js';\nimport WeakMap from './_WeakMap.js';\nimport baseGetTag from './_baseGetTag.js';\nimport toSource from './_toSource.js';\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nexport default getTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n\nexport default initCloneArray;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nexport default Uint8Array;\n","import Uint8Array from './_Uint8Array.js';\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nexport default cloneArrayBuffer;\n","import cloneArrayBuffer from './_cloneArrayBuffer.js';\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nexport default cloneDataView;\n","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nexport default cloneRegExp;\n","import Symbol from './_Symbol.js';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nexport default cloneSymbol;\n","import cloneArrayBuffer from './_cloneArrayBuffer.js';\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nexport default cloneTypedArray;\n","import cloneArrayBuffer from './_cloneArrayBuffer.js';\nimport cloneDataView from './_cloneDataView.js';\nimport cloneRegExp from './_cloneRegExp.js';\nimport cloneSymbol from './_cloneSymbol.js';\nimport cloneTypedArray from './_cloneTypedArray.js';\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nexport default initCloneByTag;\n","import isObject from './isObject.js';\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nexport default baseCreate;\n","import baseCreate from './_baseCreate.js';\nimport getPrototype from './_getPrototype.js';\nimport isPrototype from './_isPrototype.js';\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nexport default initCloneObject;\n","import getTag from './_getTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nexport default baseIsMap;\n","import baseIsMap from './_baseIsMap.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nexport default isMap;\n","import getTag from './_getTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\n\nexport default baseIsSet;\n","import baseIsSet from './_baseIsSet.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nexport default isSet;\n","import Stack from './_Stack.js';\nimport arrayEach from './_arrayEach.js';\nimport assignValue from './_assignValue.js';\nimport baseAssign from './_baseAssign.js';\nimport baseAssignIn from './_baseAssignIn.js';\nimport cloneBuffer from './_cloneBuffer.js';\nimport copyArray from './_copyArray.js';\nimport copySymbols from './_copySymbols.js';\nimport copySymbolsIn from './_copySymbolsIn.js';\nimport getAllKeys from './_getAllKeys.js';\nimport getAllKeysIn from './_getAllKeysIn.js';\nimport getTag from './_getTag.js';\nimport initCloneArray from './_initCloneArray.js';\nimport initCloneByTag from './_initCloneByTag.js';\nimport initCloneObject from './_initCloneObject.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isMap from './isMap.js';\nimport isObject from './isObject.js';\nimport isSet from './isSet.js';\nimport keys from './keys.js';\nimport keysIn from './keysIn.js';\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nexport default baseClone;\n","import baseClone from './_baseClone.js';\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nexport default cloneDeep;\n","'use strict';\n\nvar isArray = Array.isArray;\nvar keyList = Object.keys;\nvar hasProp = Object.prototype.hasOwnProperty;\nvar hasElementType = typeof Element !== 'undefined';\n\nfunction equal(a, b) {\n // fast-deep-equal index.js 2.0.1\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n var arrA = isArray(a)\n , arrB = isArray(b)\n , i\n , length\n , key;\n\n if (arrA && arrB) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n if (arrA != arrB) return false;\n\n var dateA = a instanceof Date\n , dateB = b instanceof Date;\n if (dateA != dateB) return false;\n if (dateA && dateB) return a.getTime() == b.getTime();\n\n var regexpA = a instanceof RegExp\n , regexpB = b instanceof RegExp;\n if (regexpA != regexpB) return false;\n if (regexpA && regexpB) return a.toString() == b.toString();\n\n var keys = keyList(a);\n length = keys.length;\n\n if (length !== keyList(b).length)\n return false;\n\n for (i = length; i-- !== 0;)\n if (!hasProp.call(b, keys[i])) return false;\n // end fast-deep-equal\n\n // start react-fast-compare\n // custom handling for DOM elements\n if (hasElementType && a instanceof Element && b instanceof Element)\n return a === b;\n\n // custom handling for React\n for (i = length; i-- !== 0;) {\n key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n // React-specific: avoid traversing React elements' _owner.\n // _owner contains circular references\n // and is not needed when comparing the actual elements (and not their owners)\n // .$$typeof and ._store on just reasonable markers of a react element\n continue;\n } else {\n // all other properties should be traversed as usual\n if (!equal(a[key], b[key])) return false;\n }\n }\n // end react-fast-compare\n\n // fast-deep-equal index.js 2.0.1\n return true;\n }\n\n return a !== a && b !== b;\n}\n// end fast-deep-equal\n\nmodule.exports = function exportedEqual(a, b) {\n try {\n return equal(a, b);\n } catch (error) {\n if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {\n // warn on circular references, don't crash\n // browsers give this different errors name and messages:\n // chrome/safari: \"RangeError\", \"Maximum call stack size exceeded\"\n // firefox: \"InternalError\", too much recursion\"\n // edge: \"Error\", \"Out of stack space\"\n console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);\n return false;\n }\n // some other error. we should definitely know about these\n throw error;\n }\n};\n","import baseClone from './_baseClone.js';\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\nfunction clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n}\n\nexport default clone;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nexport default arrayMap;\n","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nexport default isSymbol;\n","import MapCache from './_MapCache.js';\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nexport default memoize;\n","import memoize from './memoize.js';\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n}\n\nexport default memoizeCapped;\n","import memoizeCapped from './_memoizeCapped.js';\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\nexport default stringToPath;\n","import isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nexport default toKey;\n","import Symbol from './_Symbol.js';\nimport arrayMap from './_arrayMap.js';\nimport isArray from './isArray.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nexport default baseToString;\n","import baseToString from './_baseToString.js';\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nexport default toString;\n","import arrayMap from './_arrayMap.js';\nimport copyArray from './_copyArray.js';\nimport isArray from './isArray.js';\nimport isSymbol from './isSymbol.js';\nimport stringToPath from './_stringToPath.js';\nimport toKey from './_toKey.js';\nimport toString from './toString.js';\n\n/**\n * Converts `value` to a property path array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {*} value The value to convert.\n * @returns {Array} Returns the new property path array.\n * @example\n *\n * _.toPath('a.b.c');\n * // => ['a', 'b', 'c']\n *\n * _.toPath('a[0].b.c');\n * // => ['a', '0', 'b', 'c']\n */\nfunction toPath(value) {\n if (isArray(value)) {\n return arrayMap(value, toKey);\n }\n return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));\n}\n\nexport default toPath;\n","import deepmerge from 'deepmerge';\nimport isPlainObject from 'lodash-es/isPlainObject';\nimport cloneDeep from 'lodash-es/cloneDeep';\nimport { createContext, useContext, Children, useRef, useEffect, useState, useCallback, useMemo, useImperativeHandle, createElement, useLayoutEffect, forwardRef, Component } from 'react';\nimport isEqual from 'react-fast-compare';\nimport invariant from 'tiny-warning';\nimport clone from 'lodash-es/clone';\nimport toPath from 'lodash-es/toPath';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nvar FormikContext = /*#__PURE__*/createContext(undefined);\nFormikContext.displayName = 'FormikContext';\nvar FormikProvider = FormikContext.Provider;\nvar FormikConsumer = FormikContext.Consumer;\nfunction useFormikContext() {\n var formik = useContext(FormikContext);\n !!!formik ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component.\") : invariant(false) : void 0;\n return formik;\n}\n\n/** @private is the value an empty array? */\n\nvar isEmptyArray = function isEmptyArray(value) {\n return Array.isArray(value) && value.length === 0;\n};\n/** @private is the given object a Function? */\n\nvar isFunction = function isFunction(obj) {\n return typeof obj === 'function';\n};\n/** @private is the given object an Object? */\n\nvar isObject = function isObject(obj) {\n return obj !== null && typeof obj === 'object';\n};\n/** @private is the given object an integer? */\n\nvar isInteger = function isInteger(obj) {\n return String(Math.floor(Number(obj))) === obj;\n};\n/** @private is the given object a string? */\n\nvar isString = function isString(obj) {\n return Object.prototype.toString.call(obj) === '[object String]';\n};\n/** @private is the given object a NaN? */\n// eslint-disable-next-line no-self-compare\n\nvar isNaN$1 = function isNaN(obj) {\n return obj !== obj;\n};\n/** @private Does a React component have exactly 0 children? */\n\nvar isEmptyChildren = function isEmptyChildren(children) {\n return Children.count(children) === 0;\n};\n/** @private is the given object/value a promise? */\n\nvar isPromise = function isPromise(value) {\n return isObject(value) && isFunction(value.then);\n};\n/** @private is the given object/value a type of synthetic event? */\n\nvar isInputEvent = function isInputEvent(value) {\n return value && isObject(value) && isObject(value.target);\n};\n/**\r\n * Same as document.activeElement but wraps in a try-catch block. In IE it is\r\n * not safe to call document.activeElement if there is nothing focused.\r\n *\r\n * The activeElement will be null only if the document or document body is not\r\n * yet defined.\r\n *\r\n * @param {?Document} doc Defaults to current document.\r\n * @return {Element | null}\r\n * @see https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/dom/getActiveElement.js\r\n */\n\nfunction getActiveElement(doc) {\n doc = doc || (typeof document !== 'undefined' ? document : undefined);\n\n if (typeof doc === 'undefined') {\n return null;\n }\n\n try {\n return doc.activeElement || doc.body;\n } catch (e) {\n return doc.body;\n }\n}\n/**\r\n * Deeply get a value from an object via its path.\r\n */\n\nfunction getIn(obj, key, def, p) {\n if (p === void 0) {\n p = 0;\n }\n\n var path = toPath(key);\n\n while (obj && p < path.length) {\n obj = obj[path[p++]];\n } // check if path is not in the end\n\n\n if (p !== path.length && !obj) {\n return def;\n }\n\n return obj === undefined ? def : obj;\n}\n/**\r\n * Deeply set a value from in object via it's path. If the value at `path`\r\n * has changed, return a shallow copy of obj with `value` set at `path`.\r\n * If `value` has not changed, return the original `obj`.\r\n *\r\n * Existing objects / arrays along `path` are also shallow copied. Sibling\r\n * objects along path retain the same internal js reference. Since new\r\n * objects / arrays are only created along `path`, we can test if anything\r\n * changed in a nested structure by comparing the object's reference in\r\n * the old and new object, similar to how russian doll cache invalidation\r\n * works.\r\n *\r\n * In earlier versions of this function, which used cloneDeep, there were\r\n * issues whereby settings a nested value would mutate the parent\r\n * instead of creating a new object. `clone` avoids that bug making a\r\n * shallow copy of the objects along the update path\r\n * so no object is mutated in place.\r\n *\r\n * Before changing this function, please read through the following\r\n * discussions.\r\n *\r\n * @see https://github.com/developit/linkstate\r\n * @see https://github.com/jaredpalmer/formik/pull/123\r\n */\n\nfunction setIn(obj, path, value) {\n var res = clone(obj); // this keeps inheritance when obj is a class\n\n var resVal = res;\n var i = 0;\n var pathArray = toPath(path);\n\n for (; i < pathArray.length - 1; i++) {\n var currentPath = pathArray[i];\n var currentObj = getIn(obj, pathArray.slice(0, i + 1));\n\n if (currentObj && (isObject(currentObj) || Array.isArray(currentObj))) {\n resVal = resVal[currentPath] = clone(currentObj);\n } else {\n var nextPath = pathArray[i + 1];\n resVal = resVal[currentPath] = isInteger(nextPath) && Number(nextPath) >= 0 ? [] : {};\n }\n } // Return original object if new value is the same as current\n\n\n if ((i === 0 ? obj : resVal)[pathArray[i]] === value) {\n return obj;\n }\n\n if (value === undefined) {\n delete resVal[pathArray[i]];\n } else {\n resVal[pathArray[i]] = value;\n } // If the path array has a single element, the loop did not run.\n // Deleting on `resVal` had no effect in this scenario, so we delete on the result instead.\n\n\n if (i === 0 && value === undefined) {\n delete res[pathArray[i]];\n }\n\n return res;\n}\n/**\r\n * Recursively a set the same value for all keys and arrays nested object, cloning\r\n * @param object\r\n * @param value\r\n * @param visited\r\n * @param response\r\n */\n\nfunction setNestedObjectValues(object, value, visited, response) {\n if (visited === void 0) {\n visited = new WeakMap();\n }\n\n if (response === void 0) {\n response = {};\n }\n\n for (var _i = 0, _Object$keys = Object.keys(object); _i < _Object$keys.length; _i++) {\n var k = _Object$keys[_i];\n var val = object[k];\n\n if (isObject(val)) {\n if (!visited.get(val)) {\n visited.set(val, true); // In order to keep array values consistent for both dot path and\n // bracket syntax, we need to check if this is an array so that\n // this will output { friends: [true] } and not { friends: { \"0\": true } }\n\n response[k] = Array.isArray(val) ? [] : {};\n setNestedObjectValues(val, value, visited, response[k]);\n }\n } else {\n response[k] = value;\n }\n }\n\n return response;\n}\n\nfunction formikReducer(state, msg) {\n switch (msg.type) {\n case 'SET_VALUES':\n return _extends({}, state, {\n values: msg.payload\n });\n\n case 'SET_TOUCHED':\n return _extends({}, state, {\n touched: msg.payload\n });\n\n case 'SET_ERRORS':\n if (isEqual(state.errors, msg.payload)) {\n return state;\n }\n\n return _extends({}, state, {\n errors: msg.payload\n });\n\n case 'SET_STATUS':\n return _extends({}, state, {\n status: msg.payload\n });\n\n case 'SET_ISSUBMITTING':\n return _extends({}, state, {\n isSubmitting: msg.payload\n });\n\n case 'SET_ISVALIDATING':\n return _extends({}, state, {\n isValidating: msg.payload\n });\n\n case 'SET_FIELD_VALUE':\n return _extends({}, state, {\n values: setIn(state.values, msg.payload.field, msg.payload.value)\n });\n\n case 'SET_FIELD_TOUCHED':\n return _extends({}, state, {\n touched: setIn(state.touched, msg.payload.field, msg.payload.value)\n });\n\n case 'SET_FIELD_ERROR':\n return _extends({}, state, {\n errors: setIn(state.errors, msg.payload.field, msg.payload.value)\n });\n\n case 'RESET_FORM':\n return _extends({}, state, msg.payload);\n\n case 'SET_FORMIK_STATE':\n return msg.payload(state);\n\n case 'SUBMIT_ATTEMPT':\n return _extends({}, state, {\n touched: setNestedObjectValues(state.values, true),\n isSubmitting: true,\n submitCount: state.submitCount + 1\n });\n\n case 'SUBMIT_FAILURE':\n return _extends({}, state, {\n isSubmitting: false\n });\n\n case 'SUBMIT_SUCCESS':\n return _extends({}, state, {\n isSubmitting: false\n });\n\n default:\n return state;\n }\n} // Initial empty states // objects\n\n\nvar emptyErrors = {};\nvar emptyTouched = {};\nfunction useFormik(_ref) {\n var _ref$validateOnChange = _ref.validateOnChange,\n validateOnChange = _ref$validateOnChange === void 0 ? true : _ref$validateOnChange,\n _ref$validateOnBlur = _ref.validateOnBlur,\n validateOnBlur = _ref$validateOnBlur === void 0 ? true : _ref$validateOnBlur,\n _ref$validateOnMount = _ref.validateOnMount,\n validateOnMount = _ref$validateOnMount === void 0 ? false : _ref$validateOnMount,\n isInitialValid = _ref.isInitialValid,\n _ref$enableReinitiali = _ref.enableReinitialize,\n enableReinitialize = _ref$enableReinitiali === void 0 ? false : _ref$enableReinitiali,\n onSubmit = _ref.onSubmit,\n rest = _objectWithoutPropertiesLoose(_ref, [\"validateOnChange\", \"validateOnBlur\", \"validateOnMount\", \"isInitialValid\", \"enableReinitialize\", \"onSubmit\"]);\n\n var props = _extends({\n validateOnChange: validateOnChange,\n validateOnBlur: validateOnBlur,\n validateOnMount: validateOnMount,\n onSubmit: onSubmit\n }, rest);\n\n var initialValues = useRef(props.initialValues);\n var initialErrors = useRef(props.initialErrors || emptyErrors);\n var initialTouched = useRef(props.initialTouched || emptyTouched);\n var initialStatus = useRef(props.initialStatus);\n var isMounted = useRef(false);\n var fieldRegistry = useRef({});\n\n if (process.env.NODE_ENV !== \"production\") {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(function () {\n !(typeof isInitialValid === 'undefined') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead.') : invariant(false) : void 0; // eslint-disable-next-line\n }, []);\n }\n\n useEffect(function () {\n isMounted.current = true;\n return function () {\n isMounted.current = false;\n };\n }, []);\n\n var _React$useState = useState(0),\n setIteration = _React$useState[1];\n\n var stateRef = useRef({\n values: cloneDeep(props.initialValues),\n errors: cloneDeep(props.initialErrors) || emptyErrors,\n touched: cloneDeep(props.initialTouched) || emptyTouched,\n status: cloneDeep(props.initialStatus),\n isSubmitting: false,\n isValidating: false,\n submitCount: 0\n });\n var state = stateRef.current;\n var dispatch = useCallback(function (action) {\n var prev = stateRef.current;\n stateRef.current = formikReducer(prev, action); // force rerender\n\n if (prev !== stateRef.current) setIteration(function (x) {\n return x + 1;\n });\n }, []);\n var runValidateHandler = useCallback(function (values, field) {\n return new Promise(function (resolve, reject) {\n var maybePromisedErrors = props.validate(values, field);\n\n if (maybePromisedErrors == null) {\n // use loose null check here on purpose\n resolve(emptyErrors);\n } else if (isPromise(maybePromisedErrors)) {\n maybePromisedErrors.then(function (errors) {\n resolve(errors || emptyErrors);\n }, function (actualException) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\"Warning: An unhandled error was caught during validation in <Formik validate />\", actualException);\n }\n\n reject(actualException);\n });\n } else {\n resolve(maybePromisedErrors);\n }\n });\n }, [props.validate]);\n /**\r\n * Run validation against a Yup schema and optionally run a function if successful\r\n */\n\n var runValidationSchema = useCallback(function (values, field) {\n var validationSchema = props.validationSchema;\n var schema = isFunction(validationSchema) ? validationSchema(field) : validationSchema;\n var promise = field && schema.validateAt ? schema.validateAt(field, values) : validateYupSchema(values, schema);\n return new Promise(function (resolve, reject) {\n promise.then(function () {\n resolve(emptyErrors);\n }, function (err) {\n // Yup will throw a validation error if validation fails. We catch those and\n // resolve them into Formik errors. We can sniff if something is a Yup error\n // by checking error.name.\n // @see https://github.com/jquense/yup#validationerrorerrors-string--arraystring-value-any-path-string\n if (err.name === 'ValidationError') {\n resolve(yupToFormErrors(err));\n } else {\n // We throw any other errors\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\"Warning: An unhandled error was caught during validation in <Formik validationSchema />\", err);\n }\n\n reject(err);\n }\n });\n });\n }, [props.validationSchema]);\n var runSingleFieldLevelValidation = useCallback(function (field, value) {\n return new Promise(function (resolve) {\n return resolve(fieldRegistry.current[field].validate(value));\n });\n }, []);\n var runFieldLevelValidations = useCallback(function (values) {\n var fieldKeysWithValidation = Object.keys(fieldRegistry.current).filter(function (f) {\n return isFunction(fieldRegistry.current[f].validate);\n }); // Construct an array with all of the field validation functions\n\n var fieldValidations = fieldKeysWithValidation.length > 0 ? fieldKeysWithValidation.map(function (f) {\n return runSingleFieldLevelValidation(f, getIn(values, f));\n }) : [Promise.resolve('DO_NOT_DELETE_YOU_WILL_BE_FIRED')]; // use special case ;)\n\n return Promise.all(fieldValidations).then(function (fieldErrorsList) {\n return fieldErrorsList.reduce(function (prev, curr, index) {\n if (curr === 'DO_NOT_DELETE_YOU_WILL_BE_FIRED') {\n return prev;\n }\n\n if (curr) {\n prev = setIn(prev, fieldKeysWithValidation[index], curr);\n }\n\n return prev;\n }, {});\n });\n }, [runSingleFieldLevelValidation]); // Run all validations and return the result\n\n var runAllValidations = useCallback(function (values) {\n return Promise.all([runFieldLevelValidations(values), props.validationSchema ? runValidationSchema(values) : {}, props.validate ? runValidateHandler(values) : {}]).then(function (_ref2) {\n var fieldErrors = _ref2[0],\n schemaErrors = _ref2[1],\n validateErrors = _ref2[2];\n var combinedErrors = deepmerge.all([fieldErrors, schemaErrors, validateErrors], {\n arrayMerge: arrayMerge\n });\n return combinedErrors;\n });\n }, [props.validate, props.validationSchema, runFieldLevelValidations, runValidateHandler, runValidationSchema]); // Run all validations methods and update state accordingly\n\n var validateFormWithHighPriority = useEventCallback(function (values) {\n if (values === void 0) {\n values = state.values;\n }\n\n dispatch({\n type: 'SET_ISVALIDATING',\n payload: true\n });\n return runAllValidations(values).then(function (combinedErrors) {\n if (!!isMounted.current) {\n dispatch({\n type: 'SET_ISVALIDATING',\n payload: false\n });\n dispatch({\n type: 'SET_ERRORS',\n payload: combinedErrors\n });\n }\n\n return combinedErrors;\n });\n });\n useEffect(function () {\n if (validateOnMount && isMounted.current === true && isEqual(initialValues.current, props.initialValues)) {\n validateFormWithHighPriority(initialValues.current);\n }\n }, [validateOnMount, validateFormWithHighPriority]);\n var resetForm = useCallback(function (nextState) {\n var values = nextState && nextState.values ? nextState.values : initialValues.current;\n var errors = nextState && nextState.errors ? nextState.errors : initialErrors.current ? initialErrors.current : props.initialErrors || {};\n var touched = nextState && nextState.touched ? nextState.touched : initialTouched.current ? initialTouched.current : props.initialTouched || {};\n var status = nextState && nextState.status ? nextState.status : initialStatus.current ? initialStatus.current : props.initialStatus;\n initialValues.current = values;\n initialErrors.current = errors;\n initialTouched.current = touched;\n initialStatus.current = status;\n\n var dispatchFn = function dispatchFn() {\n dispatch({\n type: 'RESET_FORM',\n payload: {\n isSubmitting: !!nextState && !!nextState.isSubmitting,\n errors: errors,\n touched: touched,\n status: status,\n values: values,\n isValidating: !!nextState && !!nextState.isValidating,\n submitCount: !!nextState && !!nextState.submitCount && typeof nextState.submitCount === 'number' ? nextState.submitCount : 0\n }\n });\n };\n\n if (props.onReset) {\n var maybePromisedOnReset = props.onReset(state.values, imperativeMethods);\n\n if (isPromise(maybePromisedOnReset)) {\n maybePromisedOnReset.then(dispatchFn);\n } else {\n dispatchFn();\n }\n } else {\n dispatchFn();\n }\n }, [props.initialErrors, props.initialStatus, props.initialTouched, props.onReset]);\n useEffect(function () {\n if (isMounted.current === true && !isEqual(initialValues.current, props.initialValues)) {\n if (enableReinitialize) {\n initialValues.current = props.initialValues;\n resetForm();\n\n if (validateOnMount) {\n validateFormWithHighPriority(initialValues.current);\n }\n }\n }\n }, [enableReinitialize, props.initialValues, resetForm, validateOnMount, validateFormWithHighPriority]);\n useEffect(function () {\n if (enableReinitialize && isMounted.current === true && !isEqual(initialErrors.current, props.initialErrors)) {\n initialErrors.current = props.initialErrors || emptyErrors;\n dispatch({\n type: 'SET_ERRORS',\n payload: props.initialErrors || emptyErrors\n });\n }\n }, [enableReinitialize, props.initialErrors]);\n useEffect(function () {\n if (enableReinitialize && isMounted.current === true && !isEqual(initialTouched.current, props.initialTouched)) {\n initialTouched.current = props.initialTouched || emptyTouched;\n dispatch({\n type: 'SET_TOUCHED',\n payload: props.initialTouched || emptyTouched\n });\n }\n }, [enableReinitialize, props.initialTouched]);\n useEffect(function () {\n if (enableReinitialize && isMounted.current === true && !isEqual(initialStatus.current, props.initialStatus)) {\n initialStatus.current = props.initialStatus;\n dispatch({\n type: 'SET_STATUS',\n payload: props.initialStatus\n });\n }\n }, [enableReinitialize, props.initialStatus, props.initialTouched]);\n var validateField = useEventCallback(function (name) {\n // This will efficiently validate a single field by avoiding state\n // changes if the validation function is synchronous. It's different from\n // what is called when using validateForm.\n if (fieldRegistry.current[name] && isFunction(fieldRegistry.current[name].validate)) {\n var value = getIn(state.values, name);\n var maybePromise = fieldRegistry.current[name].validate(value);\n\n if (isPromise(maybePromise)) {\n // Only flip isValidating if the function is async.\n dispatch({\n type: 'SET_ISVALIDATING',\n payload: true\n });\n return maybePromise.then(function (x) {\n return x;\n }).then(function (error) {\n dispatch({\n type: 'SET_FIELD_ERROR',\n payload: {\n field: name,\n value: error\n }\n });\n dispatch({\n type: 'SET_ISVALIDATING',\n payload: false\n });\n });\n } else {\n dispatch({\n type: 'SET_FIELD_ERROR',\n payload: {\n field: name,\n value: maybePromise\n }\n });\n return Promise.resolve(maybePromise);\n }\n } else if (props.validationSchema) {\n dispatch({\n type: 'SET_ISVALIDATING',\n payload: true\n });\n return runValidationSchema(state.values, name).then(function (x) {\n return x;\n }).then(function (error) {\n dispatch({\n type: 'SET_FIELD_ERROR',\n payload: {\n field: name,\n value: getIn(error, name)\n }\n });\n dispatch({\n type: 'SET_ISVALIDATING',\n payload: false\n });\n });\n }\n\n return Promise.resolve();\n });\n var registerField = useCallback(function (name, _ref3) {\n var validate = _ref3.validate;\n fieldRegistry.current[name] = {\n validate: validate\n };\n }, []);\n var unregisterField = useCallback(function (name) {\n delete fieldRegistry.current[name];\n }, []);\n var setTouched = useEventCallback(function (touched, shouldValidate) {\n dispatch({\n type: 'SET_TOUCHED',\n payload: touched\n });\n var willValidate = shouldValidate === undefined ? validateOnBlur : shouldValidate;\n return willValidate ? validateFormWithHighPriority(state.values) : Promise.resolve();\n });\n var setErrors = useCallback(function (errors) {\n dispatch({\n type: 'SET_ERRORS',\n payload: errors\n });\n }, []);\n var setValues = useEventCallback(function (values, shouldValidate) {\n var resolvedValues = isFunction(values) ? values(state.values) : values;\n dispatch({\n type: 'SET_VALUES',\n payload: resolvedValues\n });\n var willValidate = shouldValidate === undefined ? validateOnChange : shouldValidate;\n return willValidate ? validateFormWithHighPriority(resolvedValues) : Promise.resolve();\n });\n var setFieldError = useCallback(function (field, value) {\n dispatch({\n type: 'SET_FIELD_ERROR',\n payload: {\n field: field,\n value: value\n }\n });\n }, []);\n var setFieldValue = useEventCallback(function (field, value, shouldValidate) {\n dispatch({\n type: 'SET_FIELD_VALUE',\n payload: {\n field: field,\n value: value\n }\n });\n var willValidate = shouldValidate === undefined ? validateOnChange : shouldValidate;\n return willValidate ? validateFormWithHighPriority(setIn(state.values, field, value)) : Promise.resolve();\n });\n var executeChange = useCallback(function (eventOrTextValue, maybePath) {\n // By default, assume that the first argument is a string. This allows us to use\n // handleChange with React Native and React Native Web's onChangeText prop which\n // provides just the value of the input.\n var field = maybePath;\n var val = eventOrTextValue;\n var parsed; // If the first argument is not a string though, it has to be a synthetic React Event (or a fake one),\n // so we handle like we would a normal HTML change event.\n\n if (!isString(eventOrTextValue)) {\n // If we can, persist the event\n // @see https://reactjs.org/docs/events.html#event-pooling\n if (eventOrTextValue.persist) {\n eventOrTextValue.persist();\n }\n\n var target = eventOrTextValue.target ? eventOrTextValue.target : eventOrTextValue.currentTarget;\n var type = target.type,\n name = target.name,\n id = target.id,\n value = target.value,\n checked = target.checked,\n outerHTML = target.outerHTML,\n options = target.options,\n multiple = target.multiple;\n field = maybePath ? maybePath : name ? name : id;\n\n if (!field && process.env.NODE_ENV !== \"production\") {\n warnAboutMissingIdentifier({\n htmlContent: outerHTML,\n documentationAnchorLink: 'handlechange-e-reactchangeeventany--void',\n handlerName: 'handleChange'\n });\n }\n\n val = /number|range/.test(type) ? (parsed = parseFloat(value), isNaN(parsed) ? '' : parsed) : /checkbox/.test(type) // checkboxes\n ? getValueForCheckbox(getIn(state.values, field), checked, value) : options && multiple // <select multiple>\n ? getSelectedValues(options) : value;\n }\n\n if (field) {\n // Set form fields by name\n setFieldValue(field, val);\n }\n }, [setFieldValue, state.values]);\n var handleChange = useEventCallback(function (eventOrPath) {\n if (isString(eventOrPath)) {\n return function (event) {\n return executeChange(event, eventOrPath);\n };\n } else {\n executeChange(eventOrPath);\n }\n });\n var setFieldTouched = useEventCallback(function (field, touched, shouldValidate) {\n if (touched === void 0) {\n touched = true;\n }\n\n dispatch({\n type: 'SET_FIELD_TOUCHED',\n payload: {\n field: field,\n value: touched\n }\n });\n var willValidate = shouldValidate === undefined ? validateOnBlur : shouldValidate;\n return willValidate ? validateFormWithHighPriority(state.values) : Promise.resolve();\n });\n var executeBlur = useCallback(function (e, path) {\n if (e.persist) {\n e.persist();\n }\n\n var _e$target = e.target,\n name = _e$target.name,\n id = _e$target.id,\n outerHTML = _e$target.outerHTML;\n var field = path ? path : name ? name : id;\n\n if (!field && process.env.NODE_ENV !== \"production\") {\n warnAboutMissingIdentifier({\n htmlContent: outerHTML,\n documentationAnchorLink: 'handleblur-e-any--void',\n handlerName: 'handleBlur'\n });\n }\n\n setFieldTouched(field, true);\n }, [setFieldTouched]);\n var handleBlur = useEventCallback(function (eventOrString) {\n if (isString(eventOrString)) {\n return function (event) {\n return executeBlur(event, eventOrString);\n };\n } else {\n executeBlur(eventOrString);\n }\n });\n var setFormikState = useCallback(function (stateOrCb) {\n if (isFunction(stateOrCb)) {\n dispatch({\n type: 'SET_FORMIK_STATE',\n payload: stateOrCb\n });\n } else {\n dispatch({\n type: 'SET_FORMIK_STATE',\n payload: function payload() {\n return stateOrCb;\n }\n });\n }\n }, []);\n var setStatus = useCallback(function (status) {\n dispatch({\n type: 'SET_STATUS',\n payload: status\n });\n }, []);\n var setSubmitting = useCallback(function (isSubmitting) {\n dispatch({\n type: 'SET_ISSUBMITTING',\n payload: isSubmitting\n });\n }, []);\n var submitForm = useEventCallback(function () {\n dispatch({\n type: 'SUBMIT_ATTEMPT'\n });\n return validateFormWithHighPriority().then(function (combinedErrors) {\n // In case an error was thrown and passed to the resolved Promise,\n // `combinedErrors` can be an instance of an Error. We need to check\n // that and abort the submit.\n // If we don't do that, calling `Object.keys(new Error())` yields an\n // empty array, which causes the validation to pass and the form\n // to be submitted.\n var isInstanceOfError = combinedErrors instanceof Error;\n var isActuallyValid = !isInstanceOfError && Object.keys(combinedErrors).length === 0;\n\n if (isActuallyValid) {\n // Proceed with submit...\n //\n // To respect sync submit fns, we can't simply wrap executeSubmit in a promise and\n // _always_ dispatch SUBMIT_SUCCESS because isSubmitting would then always be false.\n // This would be fine in simple cases, but make it impossible to disable submit\n // buttons where people use callbacks or promises as side effects (which is basically\n // all of v1 Formik code). Instead, recall that we are inside of a promise chain already,\n // so we can try/catch executeSubmit(), if it returns undefined, then just bail.\n // If there are errors, throw em. Otherwise, wrap executeSubmit in a promise and handle\n // cleanup of isSubmitting on behalf of the consumer.\n var promiseOrUndefined;\n\n try {\n promiseOrUndefined = executeSubmit(); // Bail if it's sync, consumer is responsible for cleaning up\n // via setSubmitting(false)\n\n if (promiseOrUndefined === undefined) {\n return;\n }\n } catch (error) {\n throw error;\n }\n\n return Promise.resolve(promiseOrUndefined).then(function (result) {\n if (!!isMounted.current) {\n dispatch({\n type: 'SUBMIT_SUCCESS'\n });\n }\n\n return result;\n })[\"catch\"](function (_errors) {\n if (!!isMounted.current) {\n dispatch({\n type: 'SUBMIT_FAILURE'\n }); // This is a legit error rejected by the onSubmit fn\n // so we don't want to break the promise chain\n\n throw _errors;\n }\n });\n } else if (!!isMounted.current) {\n // ^^^ Make sure Formik is still mounted before updating state\n dispatch({\n type: 'SUBMIT_FAILURE'\n }); // throw combinedErrors;\n\n if (isInstanceOfError) {\n throw combinedErrors;\n }\n }\n\n return;\n });\n });\n var handleSubmit = useEventCallback(function (e) {\n if (e && e.preventDefault && isFunction(e.preventDefault)) {\n e.preventDefault();\n }\n\n if (e && e.stopPropagation && isFunction(e.stopPropagation)) {\n e.stopPropagation();\n } // Warn if form submission is triggered by a <button> without a\n // specified `type` attribute during development. This mitigates\n // a common gotcha in forms with both reset and submit buttons,\n // where the dev forgets to add type=\"button\" to the reset button.\n\n\n if (process.env.NODE_ENV !== \"production\" && typeof document !== 'undefined') {\n // Safely get the active element (works with IE)\n var activeElement = getActiveElement();\n\n if (activeElement !== null && activeElement instanceof HTMLButtonElement) {\n !(activeElement.attributes && activeElement.attributes.getNamedItem('type')) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type=\"submit\"`. If this is not a submit button, please add `type=\"button\"`.') : invariant(false) : void 0;\n }\n }\n\n submitForm()[\"catch\"](function (reason) {\n console.warn(\"Warning: An unhandled error was caught from submitForm()\", reason);\n });\n });\n var imperativeMethods = {\n resetForm: resetForm,\n validateForm: validateFormWithHighPriority,\n validateField: validateField,\n setErrors: setErrors,\n setFieldError: setFieldError,\n setFieldTouched: setFieldTouched,\n setFieldValue: setFieldValue,\n setStatus: setStatus,\n setSubmitting: setSubmitting,\n setTouched: setTouched,\n setValues: setValues,\n setFormikState: setFormikState,\n submitForm: submitForm\n };\n var executeSubmit = useEventCallback(function () {\n return onSubmit(state.values, imperativeMethods);\n });\n var handleReset = useEventCallback(function (e) {\n if (e && e.preventDefault && isFunction(e.preventDefault)) {\n e.preventDefault();\n }\n\n if (e && e.stopPropagation && isFunction(e.stopPropagation)) {\n e.stopPropagation();\n }\n\n resetForm();\n });\n var getFieldMeta = useCallback(function (name) {\n return {\n value: getIn(state.values, name),\n error: getIn(state.errors, name),\n touched: !!getIn(state.touched, name),\n initialValue: getIn(initialValues.current, name),\n initialTouched: !!getIn(initialTouched.current, name),\n initialError: getIn(initialErrors.current, name)\n };\n }, [state.errors, state.touched, state.values]);\n var getFieldHelpers = useCallback(function (name) {\n return {\n setValue: function setValue(value, shouldValidate) {\n return setFieldValue(name, value, shouldValidate);\n },\n setTouched: function setTouched(value, shouldValidate) {\n return setFieldTouched(name, value, shouldValidate);\n },\n setError: function setError(value) {\n return setFieldError(name, value);\n }\n };\n }, [setFieldValue, setFieldTouched, setFieldError]);\n var getFieldProps = useCallback(function (nameOrOptions) {\n var isAnObject = isObject(nameOrOptions);\n var name = isAnObject ? nameOrOptions.name : nameOrOptions;\n var valueState = getIn(state.values, name);\n var field = {\n name: name,\n value: valueState,\n onChange: handleChange,\n onBlur: handleBlur\n };\n\n if (isAnObject) {\n var type = nameOrOptions.type,\n valueProp = nameOrOptions.value,\n is = nameOrOptions.as,\n multiple = nameOrOptions.multiple;\n\n if (type === 'checkbox') {\n if (valueProp === undefined) {\n field.checked = !!valueState;\n } else {\n field.checked = !!(Array.isArray(valueState) && ~valueState.indexOf(valueProp));\n field.value = valueProp;\n }\n } else if (type === 'radio') {\n field.checked = valueState === valueProp;\n field.value = valueProp;\n } else if (is === 'select' && multiple) {\n field.value = field.value || [];\n field.multiple = true;\n }\n }\n\n return field;\n }, [handleBlur, handleChange, state.values]);\n var dirty = useMemo(function () {\n return !isEqual(initialValues.current, state.values);\n }, [initialValues.current, state.values]);\n var isValid = useMemo(function () {\n return typeof isInitialValid !== 'undefined' ? dirty ? state.errors && Object.keys(state.errors).length === 0 : isInitialValid !== false && isFunction(isInitialValid) ? isInitialValid(props) : isInitialValid : state.errors && Object.keys(state.errors).length === 0;\n }, [isInitialValid, dirty, state.errors, props]);\n\n var ctx = _extends({}, state, {\n initialValues: initialValues.current,\n initialErrors: initialErrors.current,\n initialTouched: initialTouched.current,\n initialStatus: initialStatus.current,\n handleBlur: handleBlur,\n handleChange: handleChange,\n handleReset: handleReset,\n handleSubmit: handleSubmit,\n resetForm: resetForm,\n setErrors: setErrors,\n setFormikState: setFormikState,\n setFieldTouched: setFieldTouched,\n setFieldValue: setFieldValue,\n setFieldError: setFieldError,\n setStatus: setStatus,\n setSubmitting: setSubmitting,\n setTouched: setTouched,\n setValues: setValues,\n submitForm: submitForm,\n validateForm: validateFormWithHighPriority,\n validateField: validateField,\n isValid: isValid,\n dirty: dirty,\n unregisterField: unregisterField,\n registerField: registerField,\n getFieldProps: getFieldProps,\n getFieldMeta: getFieldMeta,\n getFieldHelpers: getFieldHelpers,\n validateOnBlur: validateOnBlur,\n validateOnChange: validateOnChange,\n validateOnMount: validateOnMount\n });\n\n return ctx;\n}\nfunction Formik(props) {\n var formikbag = useFormik(props);\n var component = props.component,\n children = props.children,\n render = props.render,\n innerRef = props.innerRef; // This allows folks to pass a ref to <Formik />\n\n useImperativeHandle(innerRef, function () {\n return formikbag;\n });\n\n if (process.env.NODE_ENV !== \"production\") {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(function () {\n !!props.render ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>\") : invariant(false) : void 0; // eslint-disable-next-line\n }, []);\n }\n\n return createElement(FormikProvider, {\n value: formikbag\n }, component ? createElement(component, formikbag) : render ? render(formikbag) : children // children come last, always called\n ? isFunction(children) ? children(formikbag) : !isEmptyChildren(children) ? Children.only(children) : null : null);\n}\n\nfunction warnAboutMissingIdentifier(_ref4) {\n var htmlContent = _ref4.htmlContent,\n documentationAnchorLink = _ref4.documentationAnchorLink,\n handlerName = _ref4.handlerName;\n console.warn(\"Warning: Formik called `\" + handlerName + \"`, but you forgot to pass an `id` or `name` attribute to your input:\\n \" + htmlContent + \"\\n Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#\" + documentationAnchorLink + \"\\n \");\n}\n/**\r\n * Transform Yup ValidationError to a more usable object\r\n */\n\n\nfunction yupToFormErrors(yupError) {\n var errors = {};\n\n if (yupError.inner) {\n if (yupError.inner.length === 0) {\n return setIn(errors, yupError.path, yupError.message);\n }\n\n for (var _iterator = yupError.inner, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n var _ref5;\n\n if (_isArray) {\n if (_i >= _iterator.length) break;\n _ref5 = _iterator[_i++];\n } else {\n _i = _iterator.next();\n if (_i.done) break;\n _ref5 = _i.value;\n }\n\n var err = _ref5;\n\n if (!getIn(errors, err.path)) {\n errors = setIn(errors, err.path, err.message);\n }\n }\n }\n\n return errors;\n}\n/**\r\n * Validate a yup schema.\r\n */\n\nfunction validateYupSchema(values, schema, sync, context) {\n if (sync === void 0) {\n sync = false;\n }\n\n var normalizedValues = prepareDataForValidation(values);\n return schema[sync ? 'validateSync' : 'validate'](normalizedValues, {\n abortEarly: false,\n context: context || normalizedValues\n });\n}\n/**\r\n * Recursively prepare values.\r\n */\n\nfunction prepareDataForValidation(values) {\n var data = Array.isArray(values) ? [] : {};\n\n for (var k in values) {\n if (Object.prototype.hasOwnProperty.call(values, k)) {\n var key = String(k);\n\n if (Array.isArray(values[key]) === true) {\n data[key] = values[key].map(function (value) {\n if (Array.isArray(value) === true || isPlainObject(value)) {\n return prepareDataForValidation(value);\n } else {\n return value !== '' ? value : undefined;\n }\n });\n } else if (isPlainObject(values[key])) {\n data[key] = prepareDataForValidation(values[key]);\n } else {\n data[key] = values[key] !== '' ? values[key] : undefined;\n }\n }\n }\n\n return data;\n}\n/**\r\n * deepmerge array merging algorithm\r\n * https://github.com/KyleAMathews/deepmerge#combine-array\r\n */\n\nfunction arrayMerge(target, source, options) {\n var destination = target.slice();\n source.forEach(function merge(e, i) {\n if (typeof destination[i] === 'undefined') {\n var cloneRequested = options.clone !== false;\n var shouldClone = cloneRequested && options.isMergeableObject(e);\n destination[i] = shouldClone ? deepmerge(Array.isArray(e) ? [] : {}, e, options) : e;\n } else if (options.isMergeableObject(e)) {\n destination[i] = deepmerge(target[i], e, options);\n } else if (target.indexOf(e) === -1) {\n destination.push(e);\n }\n });\n return destination;\n}\n/** Return multi select values based on an array of options */\n\n\nfunction getSelectedValues(options) {\n return Array.from(options).filter(function (el) {\n return el.selected;\n }).map(function (el) {\n return el.value;\n });\n}\n/** Return the next value for a checkbox */\n\n\nfunction getValueForCheckbox(currentValue, checked, valueProp) {\n // If the current value was a boolean, return a boolean\n if (typeof currentValue === 'boolean') {\n return Boolean(checked);\n } // If the currentValue was not a boolean we want to return an array\n\n\n var currentArrayOfValues = [];\n var isValueInArray = false;\n var index = -1;\n\n if (!Array.isArray(currentValue)) {\n // eslint-disable-next-line eqeqeq\n if (!valueProp || valueProp == 'true' || valueProp == 'false') {\n return Boolean(checked);\n }\n } else {\n // If the current value is already an array, use it\n currentArrayOfValues = currentValue;\n index = currentValue.indexOf(valueProp);\n isValueInArray = index >= 0;\n } // If the checkbox was checked and the value is not already present in the aray we want to add the new value to the array of values\n\n\n if (checked && valueProp && !isValueInArray) {\n return currentArrayOfValues.concat(valueProp);\n } // If the checkbox was unchecked and the value is not in the array, simply return the already existing array of values\n\n\n if (!isValueInArray) {\n return currentArrayOfValues;\n } // If the checkbox was unchecked and the value is in the array, remove the value and return the array\n\n\n return currentArrayOfValues.slice(0, index).concat(currentArrayOfValues.slice(index + 1));\n} // React currently throws a warning when using useLayoutEffect on the server.\n// To get around it, we can conditionally useEffect on the server (no-op) and\n// useLayoutEffect in the browser.\n// @see https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n\n\nvar useIsomorphicLayoutEffect = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? useLayoutEffect : useEffect;\n\nfunction useEventCallback(fn) {\n var ref = useRef(fn); // we copy a ref to the callback scoped to the current state/props on each render\n\n useIsomorphicLayoutEffect(function () {\n ref.current = fn;\n });\n return useCallback(function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return ref.current.apply(void 0, args);\n }, []);\n}\n\nfunction useField(propsOrFieldName) {\n var formik = useFormikContext();\n var getFieldProps = formik.getFieldProps,\n getFieldMeta = formik.getFieldMeta,\n getFieldHelpers = formik.getFieldHelpers,\n registerField = formik.registerField,\n unregisterField = formik.unregisterField;\n var isAnObject = isObject(propsOrFieldName); // Normalize propsOrFieldName to FieldHookConfig<Val>\n\n var props = isAnObject ? propsOrFieldName : {\n name: propsOrFieldName\n };\n var fieldName = props.name,\n validateFn = props.validate;\n useEffect(function () {\n if (fieldName) {\n registerField(fieldName, {\n validate: validateFn\n });\n }\n\n return function () {\n if (fieldName) {\n unregisterField(fieldName);\n }\n };\n }, [registerField, unregisterField, fieldName, validateFn]);\n\n if (process.env.NODE_ENV !== \"production\") {\n !formik ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component') : invariant(false) : void 0;\n }\n\n !fieldName ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Invalid field name. Either pass `useField` a string or an object containing a `name` key.') : invariant(false) : void 0;\n var fieldHelpers = useMemo(function () {\n return getFieldHelpers(fieldName);\n }, [getFieldHelpers, fieldName]);\n return [getFieldProps(props), getFieldMeta(fieldName), fieldHelpers];\n}\nfunction Field(_ref) {\n var validate = _ref.validate,\n name = _ref.name,\n render = _ref.render,\n children = _ref.children,\n is = _ref.as,\n component = _ref.component,\n className = _ref.className,\n props = _objectWithoutPropertiesLoose(_ref, [\"validate\", \"name\", \"render\", \"children\", \"as\", \"component\", \"className\"]);\n\n var _useFormikContext = useFormikContext(),\n formik = _objectWithoutPropertiesLoose(_useFormikContext, [\"validate\", \"validationSchema\"]);\n\n if (process.env.NODE_ENV !== \"production\") {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(function () {\n !!render ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name=\\\"\" + name + \"\\\" render={({field, form}) => ...} /> with <Field name=\\\"\" + name + \"\\\">{({field, form, meta}) => ...}</Field>\") : invariant(false) : void 0;\n !!(is && children && isFunction(children)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored.') : invariant(false) : void 0;\n !!(component && children && isFunction(children)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored.') : invariant(false) : void 0;\n !!(render && children && !isEmptyChildren(children)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored') : invariant(false) : void 0; // eslint-disable-next-line\n }, []);\n } // Register field and field-level validation with parent <Formik>\n\n\n var registerField = formik.registerField,\n unregisterField = formik.unregisterField;\n useEffect(function () {\n registerField(name, {\n validate: validate\n });\n return function () {\n unregisterField(name);\n };\n }, [registerField, unregisterField, name, validate]);\n var field = formik.getFieldProps(_extends({\n name: name\n }, props));\n var meta = formik.getFieldMeta(name);\n var legacyBag = {\n field: field,\n form: formik\n };\n\n if (render) {\n return render(_extends({}, legacyBag, {\n meta: meta\n }));\n }\n\n if (isFunction(children)) {\n return children(_extends({}, legacyBag, {\n meta: meta\n }));\n }\n\n if (component) {\n // This behavior is backwards compat with earlier Formik 0.9 to 1.x\n if (typeof component === 'string') {\n var innerRef = props.innerRef,\n rest = _objectWithoutPropertiesLoose(props, [\"innerRef\"]);\n\n return createElement(component, _extends({\n ref: innerRef\n }, field, rest, {\n className: className\n }), children);\n } // We don't pass `meta` for backwards compat\n\n\n return createElement(component, _extends({\n field: field,\n form: formik\n }, props, {\n className: className\n }), children);\n } // default to input here so we can check for both `as` and `children` above\n\n\n var asElement = is || 'input';\n\n if (typeof asElement === 'string') {\n var _innerRef = props.innerRef,\n _rest = _objectWithoutPropertiesLoose(props, [\"innerRef\"]);\n\n return createElement(asElement, _extends({\n ref: _innerRef\n }, field, _rest, {\n className: className\n }), children);\n }\n\n return createElement(asElement, _extends({}, field, props, {\n className: className\n }), children);\n}\n\nvar Form = /*#__PURE__*/forwardRef(function (props, ref) {\n // iOS needs an \"action\" attribute for nice input: https://stackoverflow.com/a/39485162/406725\n // We default the action to \"#\" in case the preventDefault fails (just updates the URL hash)\n var action = props.action,\n rest = _objectWithoutPropertiesLoose(props, [\"action\"]);\n\n var _action = action != null ? action : '#';\n\n var _useFormikContext = useFormikContext(),\n handleReset = _useFormikContext.handleReset,\n handleSubmit = _useFormikContext.handleSubmit;\n\n return createElement(\"form\", _extends({\n onSubmit: handleSubmit,\n ref: ref,\n onReset: handleReset,\n action: _action\n }, rest));\n});\nForm.displayName = 'Form';\n\n/**\r\n * A public higher-order component to access the imperative API\r\n */\n\nfunction withFormik(_ref) {\n var _ref$mapPropsToValues = _ref.mapPropsToValues,\n mapPropsToValues = _ref$mapPropsToValues === void 0 ? function (vanillaProps) {\n var val = {};\n\n for (var k in vanillaProps) {\n if (vanillaProps.hasOwnProperty(k) && typeof vanillaProps[k] !== 'function') {\n // @todo TypeScript fix\n val[k] = vanillaProps[k];\n }\n }\n\n return val;\n } : _ref$mapPropsToValues,\n config = _objectWithoutPropertiesLoose(_ref, [\"mapPropsToValues\"]);\n\n return function createFormik(Component$1) {\n var componentDisplayName = Component$1.displayName || Component$1.name || Component$1.constructor && Component$1.constructor.name || 'Component';\n /**\r\n * We need to use closures here for to provide the wrapped component's props to\r\n * the respective withFormik config methods.\r\n */\n\n var C = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(C, _React$Component);\n\n function C() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n\n _this.validate = function (values) {\n return config.validate(values, _this.props);\n };\n\n _this.validationSchema = function () {\n return isFunction(config.validationSchema) ? config.validationSchema(_this.props) : config.validationSchema;\n };\n\n _this.handleSubmit = function (values, actions) {\n return config.handleSubmit(values, _extends({}, actions, {\n props: _this.props\n }));\n };\n\n _this.renderFormComponent = function (formikProps) {\n return createElement(Component$1, _extends({}, _this.props, formikProps));\n };\n\n return _this;\n }\n\n var _proto = C.prototype;\n\n _proto.render = function render() {\n var _this$props = this.props,\n props = _objectWithoutPropertiesLoose(_this$props, [\"children\"]);\n\n return createElement(Formik, _extends({}, props, config, {\n validate: config.validate && this.validate,\n validationSchema: config.validationSchema && this.validationSchema,\n initialValues: mapPropsToValues(this.props),\n initialStatus: config.mapPropsToStatus && config.mapPropsToStatus(this.props),\n initialErrors: config.mapPropsToErrors && config.mapPropsToErrors(this.props),\n initialTouched: config.mapPropsToTouched && config.mapPropsToTouched(this.props),\n onSubmit: this.handleSubmit,\n children: this.renderFormComponent\n }));\n };\n\n return C;\n }(Component);\n\n C.displayName = \"WithFormik(\" + componentDisplayName + \")\";\n return hoistNonReactStatics(C, Component$1 // cast type to ComponentClass (even if SFC)\n );\n };\n}\n\n/**\r\n * Connect any component to Formik context, and inject as a prop called `formik`;\r\n * @param Comp React Component\r\n */\n\nfunction connect(Comp) {\n var C = function C(props) {\n return createElement(FormikConsumer, null, function (formik) {\n !!!formik ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"Formik context is undefined, please verify you are rendering <Form>, <Field>, <FastField>, <FieldArray>, or your custom context-using component as a child of a <Formik> component. Component name: \" + Comp.name) : invariant(false) : void 0;\n return createElement(Comp, _extends({}, props, {\n formik: formik\n }));\n });\n };\n\n var componentDisplayName = Comp.displayName || Comp.name || Comp.constructor && Comp.constructor.name || 'Component'; // Assign Comp to C.WrappedComponent so we can access the inner component in tests\n // For example, <Field.WrappedComponent /> gets us <FieldInner/>\n\n C.WrappedComponent = Comp;\n C.displayName = \"FormikConnect(\" + componentDisplayName + \")\";\n return hoistNonReactStatics(C, Comp // cast type to ComponentClass (even if SFC)\n );\n}\n\n/**\r\n * Some array helpers!\r\n */\n\nvar move = function move(array, from, to) {\n var copy = copyArrayLike(array);\n var value = copy[from];\n copy.splice(from, 1);\n copy.splice(to, 0, value);\n return copy;\n};\nvar swap = function swap(arrayLike, indexA, indexB) {\n var copy = copyArrayLike(arrayLike);\n var a = copy[indexA];\n copy[indexA] = copy[indexB];\n copy[indexB] = a;\n return copy;\n};\nvar insert = function insert(arrayLike, index, value) {\n var copy = copyArrayLike(arrayLike);\n copy.splice(index, 0, value);\n return copy;\n};\nvar replace = function replace(arrayLike, index, value) {\n var copy = copyArrayLike(arrayLike);\n copy[index] = value;\n return copy;\n};\n\nvar copyArrayLike = function copyArrayLike(arrayLike) {\n if (!arrayLike) {\n return [];\n } else if (Array.isArray(arrayLike)) {\n return [].concat(arrayLike);\n } else {\n var maxIndex = Object.keys(arrayLike).map(function (key) {\n return parseInt(key);\n }).reduce(function (max, el) {\n return el > max ? el : max;\n }, 0);\n return Array.from(_extends({}, arrayLike, {\n length: maxIndex + 1\n }));\n }\n};\n\nvar createAlterationHandler = function createAlterationHandler(alteration, defaultFunction) {\n var fn = typeof alteration === 'function' ? alteration : defaultFunction;\n return function (data) {\n if (Array.isArray(data) || isObject(data)) {\n var clone = copyArrayLike(data);\n return fn(clone);\n } // This can be assumed to be a primitive, which\n // is a case for top level validation errors\n\n\n return data;\n };\n};\n\nvar FieldArrayInner = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(FieldArrayInner, _React$Component);\n\n function FieldArrayInner(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this; // We need TypeScript generics on these, so we'll bind them in the constructor\n // @todo Fix TS 3.2.1\n\n _this.updateArrayField = function (fn, alterTouched, alterErrors) {\n var _this$props = _this.props,\n name = _this$props.name,\n setFormikState = _this$props.formik.setFormikState;\n setFormikState(function (prevState) {\n var updateErrors = createAlterationHandler(alterErrors, fn);\n var updateTouched = createAlterationHandler(alterTouched, fn); // values fn should be executed before updateErrors and updateTouched,\n // otherwise it causes an error with unshift.\n\n var values = setIn(prevState.values, name, fn(getIn(prevState.values, name)));\n var fieldError = alterErrors ? updateErrors(getIn(prevState.errors, name)) : undefined;\n var fieldTouched = alterTouched ? updateTouched(getIn(prevState.touched, name)) : undefined;\n\n if (isEmptyArray(fieldError)) {\n fieldError = undefined;\n }\n\n if (isEmptyArray(fieldTouched)) {\n fieldTouched = undefined;\n }\n\n return _extends({}, prevState, {\n values: values,\n errors: alterErrors ? setIn(prevState.errors, name, fieldError) : prevState.errors,\n touched: alterTouched ? setIn(prevState.touched, name, fieldTouched) : prevState.touched\n });\n });\n };\n\n _this.push = function (value) {\n return _this.updateArrayField(function (arrayLike) {\n return [].concat(copyArrayLike(arrayLike), [cloneDeep(value)]);\n }, false, false);\n };\n\n _this.handlePush = function (value) {\n return function () {\n return _this.push(value);\n };\n };\n\n _this.swap = function (indexA, indexB) {\n return _this.updateArrayField(function (array) {\n return swap(array, indexA, indexB);\n }, true, true);\n };\n\n _this.handleSwap = function (indexA, indexB) {\n return function () {\n return _this.swap(indexA, indexB);\n };\n };\n\n _this.move = function (from, to) {\n return _this.updateArrayField(function (array) {\n return move(array, from, to);\n }, true, true);\n };\n\n _this.handleMove = function (from, to) {\n return function () {\n return _this.move(from, to);\n };\n };\n\n _this.insert = function (index, value) {\n return _this.updateArrayField(function (array) {\n return insert(array, index, value);\n }, function (array) {\n return insert(array, index, null);\n }, function (array) {\n return insert(array, index, null);\n });\n };\n\n _this.handleInsert = function (index, value) {\n return function () {\n return _this.insert(index, value);\n };\n };\n\n _this.replace = function (index, value) {\n return _this.updateArrayField(function (array) {\n return replace(array, index, value);\n }, false, false);\n };\n\n _this.handleReplace = function (index, value) {\n return function () {\n return _this.replace(index, value);\n };\n };\n\n _this.unshift = function (value) {\n var length = -1;\n\n _this.updateArrayField(function (array) {\n var arr = array ? [value].concat(array) : [value];\n length = arr.length;\n return arr;\n }, function (array) {\n return array ? [null].concat(array) : [null];\n }, function (array) {\n return array ? [null].concat(array) : [null];\n });\n\n return length;\n };\n\n _this.handleUnshift = function (value) {\n return function () {\n return _this.unshift(value);\n };\n };\n\n _this.handleRemove = function (index) {\n return function () {\n return _this.remove(index);\n };\n };\n\n _this.handlePop = function () {\n return function () {\n return _this.pop();\n };\n };\n\n _this.remove = _this.remove.bind(_assertThisInitialized(_this));\n _this.pop = _this.pop.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n var _proto = FieldArrayInner.prototype;\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n if (this.props.validateOnChange && this.props.formik.validateOnChange && !isEqual(getIn(prevProps.formik.values, prevProps.name), getIn(this.props.formik.values, this.props.name))) {\n this.props.formik.validateForm(this.props.formik.values);\n }\n };\n\n _proto.remove = function remove(index) {\n // We need to make sure we also remove relevant pieces of `touched` and `errors`\n var result;\n this.updateArrayField( // so this gets call 3 times\n function (array) {\n var copy = array ? copyArrayLike(array) : [];\n\n if (!result) {\n result = copy[index];\n }\n\n if (isFunction(copy.splice)) {\n copy.splice(index, 1);\n } // if the array only includes undefined values we have to return an empty array\n\n\n return isFunction(copy.every) ? copy.every(function (v) {\n return v === undefined;\n }) ? [] : copy : copy;\n }, true, true);\n return result;\n };\n\n _proto.pop = function pop() {\n // Remove relevant pieces of `touched` and `errors` too!\n var result;\n this.updateArrayField( // so this gets call 3 times\n function (array) {\n var tmp = array.slice();\n\n if (!result) {\n result = tmp && tmp.pop && tmp.pop();\n }\n\n return tmp;\n }, true, true);\n return result;\n };\n\n _proto.render = function render() {\n var arrayHelpers = {\n push: this.push,\n pop: this.pop,\n swap: this.swap,\n move: this.move,\n insert: this.insert,\n replace: this.replace,\n unshift: this.unshift,\n remove: this.remove,\n handlePush: this.handlePush,\n handlePop: this.handlePop,\n handleSwap: this.handleSwap,\n handleMove: this.handleMove,\n handleInsert: this.handleInsert,\n handleReplace: this.handleReplace,\n handleUnshift: this.handleUnshift,\n handleRemove: this.handleRemove\n };\n\n var _this$props2 = this.props,\n component = _this$props2.component,\n render = _this$props2.render,\n children = _this$props2.children,\n name = _this$props2.name,\n _this$props2$formik = _this$props2.formik,\n restOfFormik = _objectWithoutPropertiesLoose(_this$props2$formik, [\"validate\", \"validationSchema\"]);\n\n var props = _extends({}, arrayHelpers, {\n form: restOfFormik,\n name: name\n });\n\n return component ? createElement(component, props) : render ? render(props) : children // children come last, always called\n ? typeof children === 'function' ? children(props) : !isEmptyChildren(children) ? Children.only(children) : null : null;\n };\n\n return FieldArrayInner;\n}(Component);\n\nFieldArrayInner.defaultProps = {\n validateOnChange: true\n};\nvar FieldArray = /*#__PURE__*/connect(FieldArrayInner);\n\nvar ErrorMessageImpl = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(ErrorMessageImpl, _React$Component);\n\n function ErrorMessageImpl() {\n return _React$Component.apply(this, arguments) || this;\n }\n\n var _proto = ErrorMessageImpl.prototype;\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate(props) {\n if (getIn(this.props.formik.errors, this.props.name) !== getIn(props.formik.errors, this.props.name) || getIn(this.props.formik.touched, this.props.name) !== getIn(props.formik.touched, this.props.name) || Object.keys(this.props).length !== Object.keys(props).length) {\n return true;\n } else {\n return false;\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n component = _this$props.component,\n formik = _this$props.formik,\n render = _this$props.render,\n children = _this$props.children,\n name = _this$props.name,\n rest = _objectWithoutPropertiesLoose(_this$props, [\"component\", \"formik\", \"render\", \"children\", \"name\"]);\n\n var touch = getIn(formik.touched, name);\n var error = getIn(formik.errors, name);\n return !!touch && !!error ? render ? isFunction(render) ? render(error) : null : children ? isFunction(children) ? children(error) : null : component ? createElement(component, rest, error) : error : null;\n };\n\n return ErrorMessageImpl;\n}(Component);\n\nvar ErrorMessage = /*#__PURE__*/connect(ErrorMessageImpl);\n\n/**\r\n * Custom Field component for quickly hooking into Formik\r\n * context and wiring up forms.\r\n */\n\nvar FastFieldInner = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(FastFieldInner, _React$Component);\n\n function FastFieldInner(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n var render = props.render,\n children = props.children,\n component = props.component,\n is = props.as,\n name = props.name;\n !!render ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"<FastField render> has been deprecated. Please use a child callback function instead: <FastField name={\" + name + \"}>{props => ...}</FastField> instead.\") : invariant(false) : void 0;\n !!(component && render) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'You should not use <FastField component> and <FastField render> in the same <FastField> component; <FastField component> will be ignored') : invariant(false) : void 0;\n !!(is && children && isFunction(children)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'You should not use <FastField as> and <FastField children> as a function in the same <FastField> component; <FastField as> will be ignored.') : invariant(false) : void 0;\n !!(component && children && isFunction(children)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'You should not use <FastField component> and <FastField children> as a function in the same <FastField> component; <FastField component> will be ignored.') : invariant(false) : void 0;\n !!(render && children && !isEmptyChildren(children)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'You should not use <FastField render> and <FastField children> in the same <FastField> component; <FastField children> will be ignored') : invariant(false) : void 0;\n return _this;\n }\n\n var _proto = FastFieldInner.prototype;\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate(props) {\n if (this.props.shouldUpdate) {\n return this.props.shouldUpdate(props, this.props);\n } else if (props.name !== this.props.name || getIn(props.formik.values, this.props.name) !== getIn(this.props.formik.values, this.props.name) || getIn(props.formik.errors, this.props.name) !== getIn(this.props.formik.errors, this.props.name) || getIn(props.formik.touched, this.props.name) !== getIn(this.props.formik.touched, this.props.name) || Object.keys(this.props).length !== Object.keys(props).length || props.formik.isSubmitting !== this.props.formik.isSubmitting) {\n return true;\n } else {\n return false;\n }\n };\n\n _proto.componentDidMount = function componentDidMount() {\n // Register the Field with the parent Formik. Parent will cycle through\n // registered Field's validate fns right prior to submit\n this.props.formik.registerField(this.props.name, {\n validate: this.props.validate\n });\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n if (this.props.name !== prevProps.name) {\n this.props.formik.unregisterField(prevProps.name);\n this.props.formik.registerField(this.props.name, {\n validate: this.props.validate\n });\n }\n\n if (this.props.validate !== prevProps.validate) {\n this.props.formik.registerField(this.props.name, {\n validate: this.props.validate\n });\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.props.formik.unregisterField(this.props.name);\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n name = _this$props.name,\n render = _this$props.render,\n is = _this$props.as,\n children = _this$props.children,\n component = _this$props.component,\n formik = _this$props.formik,\n props = _objectWithoutPropertiesLoose(_this$props, [\"validate\", \"name\", \"render\", \"as\", \"children\", \"component\", \"shouldUpdate\", \"formik\"]);\n\n var restOfFormik = _objectWithoutPropertiesLoose(formik, [\"validate\", \"validationSchema\"]);\n\n var field = formik.getFieldProps(_extends({\n name: name\n }, props));\n var meta = {\n value: getIn(formik.values, name),\n error: getIn(formik.errors, name),\n touched: !!getIn(formik.touched, name),\n initialValue: getIn(formik.initialValues, name),\n initialTouched: !!getIn(formik.initialTouched, name),\n initialError: getIn(formik.initialErrors, name)\n };\n var bag = {\n field: field,\n meta: meta,\n form: restOfFormik\n };\n\n if (render) {\n return render(bag);\n }\n\n if (isFunction(children)) {\n return children(bag);\n }\n\n if (component) {\n // This behavior is backwards compat with earlier Formik 0.9 to 1.x\n if (typeof component === 'string') {\n var innerRef = props.innerRef,\n rest = _objectWithoutPropertiesLoose(props, [\"innerRef\"]);\n\n return createElement(component, _extends({\n ref: innerRef\n }, field, rest), children);\n } // We don't pass `meta` for backwards compat\n\n\n return createElement(component, _extends({\n field: field,\n form: formik\n }, props), children);\n } // default to input here so we can check for both `as` and `children` above\n\n\n var asElement = is || 'input';\n\n if (typeof asElement === 'string') {\n var _innerRef = props.innerRef,\n _rest = _objectWithoutPropertiesLoose(props, [\"innerRef\"]);\n\n return createElement(asElement, _extends({\n ref: _innerRef\n }, field, _rest), children);\n }\n\n return createElement(asElement, _extends({}, field, props), children);\n };\n\n return FastFieldInner;\n}(Component);\n\nvar FastField = /*#__PURE__*/connect(FastFieldInner);\n\nexport { ErrorMessage, FastField, Field, FieldArray, Form, Formik, FormikConsumer, FormikContext, FormikProvider, connect, getActiveElement, getIn, insert, isEmptyArray, isEmptyChildren, isFunction, isInputEvent, isInteger, isNaN$1 as isNaN, isObject, isPromise, isString, move, prepareDataForValidation, replace, setIn, setNestedObjectValues, swap, useField, useFormik, useFormikContext, validateYupSchema, withFormik, yupToFormErrors };\n//# sourceMappingURL=formik.esm.js.map\n","/**\n * Based on Kendo UI Core expression code <https://github.com/telerik/kendo-ui-core#license-information>\n */\n'use strict'\n\nfunction Cache(maxSize) {\n this._maxSize = maxSize\n this.clear()\n}\nCache.prototype.clear = function () {\n this._size = 0\n this._values = Object.create(null)\n}\nCache.prototype.get = function (key) {\n return this._values[key]\n}\nCache.prototype.set = function (key, value) {\n this._size >= this._maxSize && this.clear()\n if (!(key in this._values)) this._size++\n\n return (this._values[key] = value)\n}\n\nvar SPLIT_REGEX = /[^.^\\]^[]+|(?=\\[\\]|\\.\\.)/g,\n DIGIT_REGEX = /^\\d+$/,\n LEAD_DIGIT_REGEX = /^\\d/,\n SPEC_CHAR_REGEX = /[~`!#$%\\^&*+=\\-\\[\\]\\\\';,/{}|\\\\\":<>\\?]/g,\n CLEAN_QUOTES_REGEX = /^\\s*(['\"]?)(.*?)(\\1)\\s*$/,\n MAX_CACHE_SIZE = 512\n\nvar pathCache = new Cache(MAX_CACHE_SIZE),\n setCache = new Cache(MAX_CACHE_SIZE),\n getCache = new Cache(MAX_CACHE_SIZE)\n\nvar config\n\nmodule.exports = {\n Cache: Cache,\n\n split: split,\n\n normalizePath: normalizePath,\n\n setter: function (path) {\n var parts = normalizePath(path)\n\n return (\n setCache.get(path) ||\n setCache.set(path, function setter(obj, value) {\n var index = 0\n var len = parts.length\n var data = obj\n\n while (index < len - 1) {\n var part = parts[index]\n if (\n part === '__proto__' ||\n part === 'constructor' ||\n part === 'prototype'\n ) {\n return obj\n }\n\n data = data[parts[index++]]\n }\n data[parts[index]] = value\n })\n )\n },\n\n getter: function (path, safe) {\n var parts = normalizePath(path)\n return (\n getCache.get(path) ||\n getCache.set(path, function getter(data) {\n var index = 0,\n len = parts.length\n while (index < len) {\n if (data != null || !safe) data = data[parts[index++]]\n else return\n }\n return data\n })\n )\n },\n\n join: function (segments) {\n return segments.reduce(function (path, part) {\n return (\n path +\n (isQuoted(part) || DIGIT_REGEX.test(part)\n ? '[' + part + ']'\n : (path ? '.' : '') + part)\n )\n }, '')\n },\n\n forEach: function (path, cb, thisArg) {\n forEach(Array.isArray(path) ? path : split(path), cb, thisArg)\n },\n}\n\nfunction normalizePath(path) {\n return (\n pathCache.get(path) ||\n pathCache.set(\n path,\n split(path).map(function (part) {\n return part.replace(CLEAN_QUOTES_REGEX, '$2')\n })\n )\n )\n}\n\nfunction split(path) {\n return path.match(SPLIT_REGEX) || ['']\n}\n\nfunction forEach(parts, iter, thisArg) {\n var len = parts.length,\n part,\n idx,\n isArray,\n isBracket\n\n for (idx = 0; idx < len; idx++) {\n part = parts[idx]\n\n if (part) {\n if (shouldBeQuoted(part)) {\n part = '\"' + part + '\"'\n }\n\n isBracket = isQuoted(part)\n isArray = !isBracket && /^\\d+$/.test(part)\n\n iter.call(thisArg, part, isBracket, isArray, idx, parts)\n }\n }\n}\n\nfunction isQuoted(str) {\n return (\n typeof str === 'string' && str && [\"'\", '\"'].indexOf(str.charAt(0)) !== -1\n )\n}\n\nfunction hasLeadingNumber(part) {\n return part.match(LEAD_DIGIT_REGEX) && !part.match(DIGIT_REGEX)\n}\n\nfunction hasSpecialChars(part) {\n return SPEC_CHAR_REGEX.test(part)\n}\n\nfunction shouldBeQuoted(part) {\n return !isQuoted(part) && (hasLeadingNumber(part) || hasSpecialChars(part))\n}\n","const reWords = /[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde]|$)|(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde](?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])|$)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+|(?:[\\u2700-\\u27bf]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*/g\n\nconst words = (str) => str.match(reWords) || []\n\nconst upperFirst = (str) => str[0].toUpperCase() + str.slice(1)\n\nconst join = (str, d) => words(str).join(d).toLowerCase()\n\nconst camelCase = (str) =>\n words(str).reduce(\n (acc, next) =>\n `${acc}${\n !acc\n ? next.toLowerCase()\n : next[0].toUpperCase() + next.slice(1).toLowerCase()\n }`,\n '',\n )\n\nconst pascalCase = (str) => upperFirst(camelCase(str))\n\nconst snakeCase = (str) => join(str, '_')\n\nconst kebabCase = (str) => join(str, '-')\n\nconst sentenceCase = (str) => upperFirst(join(str, ' '))\n\nconst titleCase = (str) => words(str).map(upperFirst).join(' ')\n\nmodule.exports = {\n words,\n upperFirst,\n camelCase,\n pascalCase,\n snakeCase,\n kebabCase,\n sentenceCase,\n titleCase,\n}\n","\n/**\n * Topological sorting function\n *\n * @param {Array} edges\n * @returns {Array}\n */\n\nmodule.exports = function(edges) {\n return toposort(uniqueNodes(edges), edges)\n}\n\nmodule.exports.array = toposort\n\nfunction toposort(nodes, edges) {\n var cursor = nodes.length\n , sorted = new Array(cursor)\n , visited = {}\n , i = cursor\n // Better data structures make algorithm much faster.\n , outgoingEdges = makeOutgoingEdges(edges)\n , nodesHash = makeNodesHash(nodes)\n\n // check for unknown nodes\n edges.forEach(function(edge) {\n if (!nodesHash.has(edge[0]) || !nodesHash.has(edge[1])) {\n throw new Error('Unknown node. There is an unknown node in the supplied edges.')\n }\n })\n\n while (i--) {\n if (!visited[i]) visit(nodes[i], i, new Set())\n }\n\n return sorted\n\n function visit(node, i, predecessors) {\n if(predecessors.has(node)) {\n var nodeRep\n try {\n nodeRep = \", node was:\" + JSON.stringify(node)\n } catch(e) {\n nodeRep = \"\"\n }\n throw new Error('Cyclic dependency' + nodeRep)\n }\n\n if (!nodesHash.has(node)) {\n throw new Error('Found unknown node. Make sure to provided all involved nodes. Unknown node: '+JSON.stringify(node))\n }\n\n if (visited[i]) return;\n visited[i] = true\n\n var outgoing = outgoingEdges.get(node) || new Set()\n outgoing = Array.from(outgoing)\n\n if (i = outgoing.length) {\n predecessors.add(node)\n do {\n var child = outgoing[--i]\n visit(child, nodesHash.get(child), predecessors)\n } while (i)\n predecessors.delete(node)\n }\n\n sorted[--cursor] = node\n }\n}\n\nfunction uniqueNodes(arr){\n var res = new Set()\n for (var i = 0, len = arr.length; i < len; i++) {\n var edge = arr[i]\n res.add(edge[0])\n res.add(edge[1])\n }\n return Array.from(res)\n}\n\nfunction makeOutgoingEdges(arr){\n var edges = new Map()\n for (var i = 0, len = arr.length; i < len; i++) {\n var edge = arr[i]\n if (!edges.has(edge[0])) edges.set(edge[0], new Set())\n if (!edges.has(edge[1])) edges.set(edge[1], new Set())\n edges.get(edge[0]).add(edge[1])\n }\n return edges\n}\n\nfunction makeNodesHash(arr){\n var res = new Map()\n for (var i = 0, len = arr.length; i < len; i++) {\n res.set(arr[i], i)\n }\n return res\n}\n","import { getter, forEach, split, normalizePath, join } from 'property-expr';\nimport { camelCase, snakeCase } from 'tiny-case';\nimport toposort from 'toposort';\n\nconst toString = Object.prototype.toString;\nconst errorToString = Error.prototype.toString;\nconst regExpToString = RegExp.prototype.toString;\nconst symbolToString = typeof Symbol !== 'undefined' ? Symbol.prototype.toString : () => '';\nconst SYMBOL_REGEXP = /^Symbol\\((.*)\\)(.*)$/;\nfunction printNumber(val) {\n if (val != +val) return 'NaN';\n const isNegativeZero = val === 0 && 1 / val < 0;\n return isNegativeZero ? '-0' : '' + val;\n}\nfunction printSimpleValue(val, quoteStrings = false) {\n if (val == null || val === true || val === false) return '' + val;\n const typeOf = typeof val;\n if (typeOf === 'number') return printNumber(val);\n if (typeOf === 'string') return quoteStrings ? `\"${val}\"` : val;\n if (typeOf === 'function') return '[Function ' + (val.name || 'anonymous') + ']';\n if (typeOf === 'symbol') return symbolToString.call(val).replace(SYMBOL_REGEXP, 'Symbol($1)');\n const tag = toString.call(val).slice(8, -1);\n if (tag === 'Date') return isNaN(val.getTime()) ? '' + val : val.toISOString(val);\n if (tag === 'Error' || val instanceof Error) return '[' + errorToString.call(val) + ']';\n if (tag === 'RegExp') return regExpToString.call(val);\n return null;\n}\nfunction printValue(value, quoteStrings) {\n let result = printSimpleValue(value, quoteStrings);\n if (result !== null) return result;\n return JSON.stringify(value, function (key, value) {\n let result = printSimpleValue(this[key], quoteStrings);\n if (result !== null) return result;\n return value;\n }, 2);\n}\n\nfunction toArray(value) {\n return value == null ? [] : [].concat(value);\n}\n\nlet _Symbol$toStringTag, _Symbol$hasInstance, _Symbol$toStringTag2;\nlet strReg = /\\$\\{\\s*(\\w+)\\s*\\}/g;\n_Symbol$toStringTag = Symbol.toStringTag;\nclass ValidationErrorNoStack {\n constructor(errorOrErrors, value, field, type) {\n this.name = void 0;\n this.message = void 0;\n this.value = void 0;\n this.path = void 0;\n this.type = void 0;\n this.params = void 0;\n this.errors = void 0;\n this.inner = void 0;\n this[_Symbol$toStringTag] = 'Error';\n this.name = 'ValidationError';\n this.value = value;\n this.path = field;\n this.type = type;\n this.errors = [];\n this.inner = [];\n toArray(errorOrErrors).forEach(err => {\n if (ValidationError.isError(err)) {\n this.errors.push(...err.errors);\n const innerErrors = err.inner.length ? err.inner : [err];\n this.inner.push(...innerErrors);\n } else {\n this.errors.push(err);\n }\n });\n this.message = this.errors.length > 1 ? `${this.errors.length} errors occurred` : this.errors[0];\n }\n}\n_Symbol$hasInstance = Symbol.hasInstance;\n_Symbol$toStringTag2 = Symbol.toStringTag;\nclass ValidationError extends Error {\n static formatError(message, params) {\n // Attempt to make the path more friendly for error message interpolation.\n const path = params.label || params.path || 'this';\n // Store the original path under `originalPath` so it isn't lost to custom\n // message functions; e.g., ones provided in `setLocale()` calls.\n params = Object.assign({}, params, {\n path,\n originalPath: params.path\n });\n if (typeof message === 'string') return message.replace(strReg, (_, key) => printValue(params[key]));\n if (typeof message === 'function') return message(params);\n return message;\n }\n static isError(err) {\n return err && err.name === 'ValidationError';\n }\n constructor(errorOrErrors, value, field, type, disableStack) {\n const errorNoStack = new ValidationErrorNoStack(errorOrErrors, value, field, type);\n if (disableStack) {\n return errorNoStack;\n }\n super();\n this.value = void 0;\n this.path = void 0;\n this.type = void 0;\n this.params = void 0;\n this.errors = [];\n this.inner = [];\n this[_Symbol$toStringTag2] = 'Error';\n this.name = errorNoStack.name;\n this.message = errorNoStack.message;\n this.type = errorNoStack.type;\n this.value = errorNoStack.value;\n this.path = errorNoStack.path;\n this.errors = errorNoStack.errors;\n this.inner = errorNoStack.inner;\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, ValidationError);\n }\n }\n static [_Symbol$hasInstance](inst) {\n return ValidationErrorNoStack[Symbol.hasInstance](inst) || super[Symbol.hasInstance](inst);\n }\n}\n\nlet mixed = {\n default: '${path} is invalid',\n required: '${path} is a required field',\n defined: '${path} must be defined',\n notNull: '${path} cannot be null',\n oneOf: '${path} must be one of the following values: ${values}',\n notOneOf: '${path} must not be one of the following values: ${values}',\n notType: ({\n path,\n type,\n value,\n originalValue\n }) => {\n const castMsg = originalValue != null && originalValue !== value ? ` (cast from the value \\`${printValue(originalValue, true)}\\`).` : '.';\n return type !== 'mixed' ? `${path} must be a \\`${type}\\` type, ` + `but the final value was: \\`${printValue(value, true)}\\`` + castMsg : `${path} must match the configured type. ` + `The validated value was: \\`${printValue(value, true)}\\`` + castMsg;\n }\n};\nlet string = {\n length: '${path} must be exactly ${length} characters',\n min: '${path} must be at least ${min} characters',\n max: '${path} must be at most ${max} characters',\n matches: '${path} must match the following: \"${regex}\"',\n email: '${path} must be a valid email',\n url: '${path} must be a valid URL',\n uuid: '${path} must be a valid UUID',\n datetime: '${path} must be a valid ISO date-time',\n datetime_precision: '${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits',\n datetime_offset: '${path} must be a valid ISO date-time with UTC \"Z\" timezone',\n trim: '${path} must be a trimmed string',\n lowercase: '${path} must be a lowercase string',\n uppercase: '${path} must be a upper case string'\n};\nlet number = {\n min: '${path} must be greater than or equal to ${min}',\n max: '${path} must be less than or equal to ${max}',\n lessThan: '${path} must be less than ${less}',\n moreThan: '${path} must be greater than ${more}',\n positive: '${path} must be a positive number',\n negative: '${path} must be a negative number',\n integer: '${path} must be an integer'\n};\nlet date = {\n min: '${path} field must be later than ${min}',\n max: '${path} field must be at earlier than ${max}'\n};\nlet boolean = {\n isValue: '${path} field must be ${value}'\n};\nlet object = {\n noUnknown: '${path} field has unspecified keys: ${unknown}',\n exact: '${path} object contains unknown properties: ${properties}'\n};\nlet array = {\n min: '${path} field must have at least ${min} items',\n max: '${path} field must have less than or equal to ${max} items',\n length: '${path} must have ${length} items'\n};\nlet tuple = {\n notType: params => {\n const {\n path,\n value,\n spec\n } = params;\n const typeLen = spec.types.length;\n if (Array.isArray(value)) {\n if (value.length < typeLen) return `${path} tuple value has too few items, expected a length of ${typeLen} but got ${value.length} for value: \\`${printValue(value, true)}\\``;\n if (value.length > typeLen) return `${path} tuple value has too many items, expected a length of ${typeLen} but got ${value.length} for value: \\`${printValue(value, true)}\\``;\n }\n return ValidationError.formatError(mixed.notType, params);\n }\n};\nvar locale = Object.assign(Object.create(null), {\n mixed,\n string,\n number,\n date,\n object,\n array,\n boolean,\n tuple\n});\n\nconst isSchema = obj => obj && obj.__isYupSchema__;\n\nclass Condition {\n static fromOptions(refs, config) {\n if (!config.then && !config.otherwise) throw new TypeError('either `then:` or `otherwise:` is required for `when()` conditions');\n let {\n is,\n then,\n otherwise\n } = config;\n let check = typeof is === 'function' ? is : (...values) => values.every(value => value === is);\n return new Condition(refs, (values, schema) => {\n var _branch;\n let branch = check(...values) ? then : otherwise;\n return (_branch = branch == null ? void 0 : branch(schema)) != null ? _branch : schema;\n });\n }\n constructor(refs, builder) {\n this.fn = void 0;\n this.refs = refs;\n this.refs = refs;\n this.fn = builder;\n }\n resolve(base, options) {\n let values = this.refs.map(ref =>\n // TODO: ? operator here?\n ref.getValue(options == null ? void 0 : options.value, options == null ? void 0 : options.parent, options == null ? void 0 : options.context));\n let schema = this.fn(values, base, options);\n if (schema === undefined ||\n // @ts-ignore this can be base\n schema === base) {\n return base;\n }\n if (!isSchema(schema)) throw new TypeError('conditions must return a schema object');\n return schema.resolve(options);\n }\n}\n\nconst prefixes = {\n context: '$',\n value: '.'\n};\nfunction create$9(key, options) {\n return new Reference(key, options);\n}\nclass Reference {\n constructor(key, options = {}) {\n this.key = void 0;\n this.isContext = void 0;\n this.isValue = void 0;\n this.isSibling = void 0;\n this.path = void 0;\n this.getter = void 0;\n this.map = void 0;\n if (typeof key !== 'string') throw new TypeError('ref must be a string, got: ' + key);\n this.key = key.trim();\n if (key === '') throw new TypeError('ref must be a non-empty string');\n this.isContext = this.key[0] === prefixes.context;\n this.isValue = this.key[0] === prefixes.value;\n this.isSibling = !this.isContext && !this.isValue;\n let prefix = this.isContext ? prefixes.context : this.isValue ? prefixes.value : '';\n this.path = this.key.slice(prefix.length);\n this.getter = this.path && getter(this.path, true);\n this.map = options.map;\n }\n getValue(value, parent, context) {\n let result = this.isContext ? context : this.isValue ? value : parent;\n if (this.getter) result = this.getter(result || {});\n if (this.map) result = this.map(result);\n return result;\n }\n\n /**\n *\n * @param {*} value\n * @param {Object} options\n * @param {Object=} options.context\n * @param {Object=} options.parent\n */\n cast(value, options) {\n return this.getValue(value, options == null ? void 0 : options.parent, options == null ? void 0 : options.context);\n }\n resolve() {\n return this;\n }\n describe() {\n return {\n type: 'ref',\n key: this.key\n };\n }\n toString() {\n return `Ref(${this.key})`;\n }\n static isRef(value) {\n return value && value.__isYupRef;\n }\n}\n\n// @ts-ignore\nReference.prototype.__isYupRef = true;\n\nconst isAbsent = value => value == null;\n\nfunction createValidation(config) {\n function validate({\n value,\n path = '',\n options,\n originalValue,\n schema\n }, panic, next) {\n const {\n name,\n test,\n params,\n message,\n skipAbsent\n } = config;\n let {\n parent,\n context,\n abortEarly = schema.spec.abortEarly,\n disableStackTrace = schema.spec.disableStackTrace\n } = options;\n const resolveOptions = {\n value,\n parent,\n context\n };\n function createError(overrides = {}) {\n const nextParams = resolveParams(Object.assign({\n value,\n originalValue,\n label: schema.spec.label,\n path: overrides.path || path,\n spec: schema.spec,\n disableStackTrace: overrides.disableStackTrace || disableStackTrace\n }, params, overrides.params), resolveOptions);\n const error = new ValidationError(ValidationError.formatError(overrides.message || message, nextParams), value, nextParams.path, overrides.type || name, nextParams.disableStackTrace);\n error.params = nextParams;\n return error;\n }\n const invalid = abortEarly ? panic : next;\n let ctx = {\n path,\n parent,\n type: name,\n from: options.from,\n createError,\n resolve(item) {\n return resolveMaybeRef(item, resolveOptions);\n },\n options,\n originalValue,\n schema\n };\n const handleResult = validOrError => {\n if (ValidationError.isError(validOrError)) invalid(validOrError);else if (!validOrError) invalid(createError());else next(null);\n };\n const handleError = err => {\n if (ValidationError.isError(err)) invalid(err);else panic(err);\n };\n const shouldSkip = skipAbsent && isAbsent(value);\n if (shouldSkip) {\n return handleResult(true);\n }\n let result;\n try {\n var _result;\n result = test.call(ctx, value, ctx);\n if (typeof ((_result = result) == null ? void 0 : _result.then) === 'function') {\n if (options.sync) {\n throw new Error(`Validation test of type: \"${ctx.type}\" returned a Promise during a synchronous validate. ` + `This test will finish after the validate call has returned`);\n }\n return Promise.resolve(result).then(handleResult, handleError);\n }\n } catch (err) {\n handleError(err);\n return;\n }\n handleResult(result);\n }\n validate.OPTIONS = config;\n return validate;\n}\n\n// Warning: mutates the input\nfunction resolveParams(params, options) {\n if (!params) return params;\n for (const key of Object.keys(params)) {\n params[key] = resolveMaybeRef(params[key], options);\n }\n return params;\n}\nfunction resolveMaybeRef(item, options) {\n return Reference.isRef(item) ? item.getValue(options.value, options.parent, options.context) : item;\n}\n\nfunction getIn(schema, path, value, context = value) {\n let parent, lastPart, lastPartDebug;\n\n // root path: ''\n if (!path) return {\n parent,\n parentPath: path,\n schema\n };\n forEach(path, (_part, isBracket, isArray) => {\n let part = isBracket ? _part.slice(1, _part.length - 1) : _part;\n schema = schema.resolve({\n context,\n parent,\n value\n });\n let isTuple = schema.type === 'tuple';\n let idx = isArray ? parseInt(part, 10) : 0;\n if (schema.innerType || isTuple) {\n if (isTuple && !isArray) throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part \"${lastPartDebug}\" must contain an index to the tuple element, e.g. \"${lastPartDebug}[0]\"`);\n if (value && idx >= value.length) {\n throw new Error(`Yup.reach cannot resolve an array item at index: ${_part}, in the path: ${path}. ` + `because there is no value at that index. `);\n }\n parent = value;\n value = value && value[idx];\n schema = isTuple ? schema.spec.types[idx] : schema.innerType;\n }\n\n // sometimes the array index part of a path doesn't exist: \"nested.arr.child\"\n // in these cases the current part is the next schema and should be processed\n // in this iteration. For cases where the index signature is included this\n // check will fail and we'll handle the `child` part on the next iteration like normal\n if (!isArray) {\n if (!schema.fields || !schema.fields[part]) throw new Error(`The schema does not contain the path: ${path}. ` + `(failed at: ${lastPartDebug} which is a type: \"${schema.type}\")`);\n parent = value;\n value = value && value[part];\n schema = schema.fields[part];\n }\n lastPart = part;\n lastPartDebug = isBracket ? '[' + _part + ']' : '.' + _part;\n });\n return {\n schema,\n parent,\n parentPath: lastPart\n };\n}\nfunction reach(obj, path, value, context) {\n return getIn(obj, path, value, context).schema;\n}\n\nclass ReferenceSet extends Set {\n describe() {\n const description = [];\n for (const item of this.values()) {\n description.push(Reference.isRef(item) ? item.describe() : item);\n }\n return description;\n }\n resolveAll(resolve) {\n let result = [];\n for (const item of this.values()) {\n result.push(resolve(item));\n }\n return result;\n }\n clone() {\n return new ReferenceSet(this.values());\n }\n merge(newItems, removeItems) {\n const next = this.clone();\n newItems.forEach(value => next.add(value));\n removeItems.forEach(value => next.delete(value));\n return next;\n }\n}\n\n// tweaked from https://github.com/Kelin2025/nanoclone/blob/0abeb7635bda9b68ef2277093f76dbe3bf3948e1/src/index.js\nfunction clone(src, seen = new Map()) {\n if (isSchema(src) || !src || typeof src !== 'object') return src;\n if (seen.has(src)) return seen.get(src);\n let copy;\n if (src instanceof Date) {\n // Date\n copy = new Date(src.getTime());\n seen.set(src, copy);\n } else if (src instanceof RegExp) {\n // RegExp\n copy = new RegExp(src);\n seen.set(src, copy);\n } else if (Array.isArray(src)) {\n // Array\n copy = new Array(src.length);\n seen.set(src, copy);\n for (let i = 0; i < src.length; i++) copy[i] = clone(src[i], seen);\n } else if (src instanceof Map) {\n // Map\n copy = new Map();\n seen.set(src, copy);\n for (const [k, v] of src.entries()) copy.set(k, clone(v, seen));\n } else if (src instanceof Set) {\n // Set\n copy = new Set();\n seen.set(src, copy);\n for (const v of src) copy.add(clone(v, seen));\n } else if (src instanceof Object) {\n // Object\n copy = {};\n seen.set(src, copy);\n for (const [k, v] of Object.entries(src)) copy[k] = clone(v, seen);\n } else {\n throw Error(`Unable to clone ${src}`);\n }\n return copy;\n}\n\n/**\n * Copied from @standard-schema/spec to avoid having a dependency on it.\n * https://github.com/standard-schema/standard-schema/blob/main/packages/spec/src/index.ts\n */\n\nfunction createStandardPath(path) {\n if (!(path != null && path.length)) {\n return undefined;\n }\n\n // Array to store the final path segments\n const segments = [];\n // Buffer for building the current segment\n let currentSegment = '';\n // Track if we're inside square brackets (array/property access)\n let inBrackets = false;\n // Track if we're inside quotes (for property names with special chars)\n let inQuotes = false;\n for (let i = 0; i < path.length; i++) {\n const char = path[i];\n if (char === '[' && !inQuotes) {\n // When entering brackets, push any accumulated segment after splitting on dots\n if (currentSegment) {\n segments.push(...currentSegment.split('.').filter(Boolean));\n currentSegment = '';\n }\n inBrackets = true;\n continue;\n }\n if (char === ']' && !inQuotes) {\n if (currentSegment) {\n // Handle numeric indices (e.g. arr[0])\n if (/^\\d+$/.test(currentSegment)) {\n segments.push(currentSegment);\n } else {\n // Handle quoted property names (e.g. obj[\"foo.bar\"])\n segments.push(currentSegment.replace(/^\"|\"$/g, ''));\n }\n currentSegment = '';\n }\n inBrackets = false;\n continue;\n }\n if (char === '\"') {\n // Toggle quote state for handling quoted property names\n inQuotes = !inQuotes;\n continue;\n }\n if (char === '.' && !inBrackets && !inQuotes) {\n // On dots outside brackets/quotes, push current segment\n if (currentSegment) {\n segments.push(currentSegment);\n currentSegment = '';\n }\n continue;\n }\n currentSegment += char;\n }\n\n // Push any remaining segment after splitting on dots\n if (currentSegment) {\n segments.push(...currentSegment.split('.').filter(Boolean));\n }\n return segments;\n}\nfunction createStandardIssues(error, parentPath) {\n const path = parentPath ? `${parentPath}.${error.path}` : error.path;\n return error.errors.map(err => ({\n message: err,\n path: createStandardPath(path)\n }));\n}\nfunction issuesFromValidationError(error, parentPath) {\n var _error$inner;\n if (!((_error$inner = error.inner) != null && _error$inner.length) && error.errors.length) {\n return createStandardIssues(error, parentPath);\n }\n const path = parentPath ? `${parentPath}.${error.path}` : error.path;\n return error.inner.flatMap(err => issuesFromValidationError(err, path));\n}\n\n// If `CustomSchemaMeta` isn't extended with any keys, we'll fall back to a\n// loose Record definition allowing free form usage.\nclass Schema {\n constructor(options) {\n this.type = void 0;\n this.deps = [];\n this.tests = void 0;\n this.transforms = void 0;\n this.conditions = [];\n this._mutate = void 0;\n this.internalTests = {};\n this._whitelist = new ReferenceSet();\n this._blacklist = new ReferenceSet();\n this.exclusiveTests = Object.create(null);\n this._typeCheck = void 0;\n this.spec = void 0;\n this.tests = [];\n this.transforms = [];\n this.withMutation(() => {\n this.typeError(mixed.notType);\n });\n this.type = options.type;\n this._typeCheck = options.check;\n this.spec = Object.assign({\n strip: false,\n strict: false,\n abortEarly: true,\n recursive: true,\n disableStackTrace: false,\n nullable: false,\n optional: true,\n coerce: true\n }, options == null ? void 0 : options.spec);\n this.withMutation(s => {\n s.nonNullable();\n });\n }\n\n // TODO: remove\n get _type() {\n return this.type;\n }\n clone(spec) {\n if (this._mutate) {\n if (spec) Object.assign(this.spec, spec);\n return this;\n }\n\n // if the nested value is a schema we can skip cloning, since\n // they are already immutable\n const next = Object.create(Object.getPrototypeOf(this));\n\n // @ts-expect-error this is readonly\n next.type = this.type;\n next._typeCheck = this._typeCheck;\n next._whitelist = this._whitelist.clone();\n next._blacklist = this._blacklist.clone();\n next.internalTests = Object.assign({}, this.internalTests);\n next.exclusiveTests = Object.assign({}, this.exclusiveTests);\n\n // @ts-expect-error this is readonly\n next.deps = [...this.deps];\n next.conditions = [...this.conditions];\n next.tests = [...this.tests];\n next.transforms = [...this.transforms];\n next.spec = clone(Object.assign({}, this.spec, spec));\n return next;\n }\n label(label) {\n let next = this.clone();\n next.spec.label = label;\n return next;\n }\n meta(...args) {\n if (args.length === 0) return this.spec.meta;\n let next = this.clone();\n next.spec.meta = Object.assign(next.spec.meta || {}, args[0]);\n return next;\n }\n withMutation(fn) {\n let before = this._mutate;\n this._mutate = true;\n let result = fn(this);\n this._mutate = before;\n return result;\n }\n concat(schema) {\n if (!schema || schema === this) return this;\n if (schema.type !== this.type && this.type !== 'mixed') throw new TypeError(`You cannot \\`concat()\\` schema's of different types: ${this.type} and ${schema.type}`);\n let base = this;\n let combined = schema.clone();\n const mergedSpec = Object.assign({}, base.spec, combined.spec);\n combined.spec = mergedSpec;\n combined.internalTests = Object.assign({}, base.internalTests, combined.internalTests);\n\n // manually merge the blacklist/whitelist (the other `schema` takes\n // precedence in case of conflicts)\n combined._whitelist = base._whitelist.merge(schema._whitelist, schema._blacklist);\n combined._blacklist = base._blacklist.merge(schema._blacklist, schema._whitelist);\n\n // start with the current tests\n combined.tests = base.tests;\n combined.exclusiveTests = base.exclusiveTests;\n\n // manually add the new tests to ensure\n // the deduping logic is consistent\n combined.withMutation(next => {\n schema.tests.forEach(fn => {\n next.test(fn.OPTIONS);\n });\n });\n combined.transforms = [...base.transforms, ...combined.transforms];\n return combined;\n }\n isType(v) {\n if (v == null) {\n if (this.spec.nullable && v === null) return true;\n if (this.spec.optional && v === undefined) return true;\n return false;\n }\n return this._typeCheck(v);\n }\n resolve(options) {\n let schema = this;\n if (schema.conditions.length) {\n let conditions = schema.conditions;\n schema = schema.clone();\n schema.conditions = [];\n schema = conditions.reduce((prevSchema, condition) => condition.resolve(prevSchema, options), schema);\n schema = schema.resolve(options);\n }\n return schema;\n }\n resolveOptions(options) {\n var _options$strict, _options$abortEarly, _options$recursive, _options$disableStack;\n return Object.assign({}, options, {\n from: options.from || [],\n strict: (_options$strict = options.strict) != null ? _options$strict : this.spec.strict,\n abortEarly: (_options$abortEarly = options.abortEarly) != null ? _options$abortEarly : this.spec.abortEarly,\n recursive: (_options$recursive = options.recursive) != null ? _options$recursive : this.spec.recursive,\n disableStackTrace: (_options$disableStack = options.disableStackTrace) != null ? _options$disableStack : this.spec.disableStackTrace\n });\n }\n\n /**\n * Run the configured transform pipeline over an input value.\n */\n\n cast(value, options = {}) {\n let resolvedSchema = this.resolve(Object.assign({\n value\n }, options));\n let allowOptionality = options.assert === 'ignore-optionality';\n let result = resolvedSchema._cast(value, options);\n if (options.assert !== false && !resolvedSchema.isType(result)) {\n if (allowOptionality && isAbsent(result)) {\n return result;\n }\n let formattedValue = printValue(value);\n let formattedResult = printValue(result);\n throw new TypeError(`The value of ${options.path || 'field'} could not be cast to a value ` + `that satisfies the schema type: \"${resolvedSchema.type}\". \\n\\n` + `attempted value: ${formattedValue} \\n` + (formattedResult !== formattedValue ? `result of cast: ${formattedResult}` : ''));\n }\n return result;\n }\n _cast(rawValue, options) {\n let value = rawValue === undefined ? rawValue : this.transforms.reduce((prevValue, fn) => fn.call(this, prevValue, rawValue, this), rawValue);\n if (value === undefined) {\n value = this.getDefault(options);\n }\n return value;\n }\n _validate(_value, options = {}, panic, next) {\n let {\n path,\n originalValue = _value,\n strict = this.spec.strict\n } = options;\n let value = _value;\n if (!strict) {\n value = this._cast(value, Object.assign({\n assert: false\n }, options));\n }\n let initialTests = [];\n for (let test of Object.values(this.internalTests)) {\n if (test) initialTests.push(test);\n }\n this.runTests({\n path,\n value,\n originalValue,\n options,\n tests: initialTests\n }, panic, initialErrors => {\n // even if we aren't ending early we can't proceed further if the types aren't correct\n if (initialErrors.length) {\n return next(initialErrors, value);\n }\n this.runTests({\n path,\n value,\n originalValue,\n options,\n tests: this.tests\n }, panic, next);\n });\n }\n\n /**\n * Executes a set of validations, either schema, produced Tests or a nested\n * schema validate result.\n */\n runTests(runOptions, panic, next) {\n let fired = false;\n let {\n tests,\n value,\n originalValue,\n path,\n options\n } = runOptions;\n let panicOnce = arg => {\n if (fired) return;\n fired = true;\n panic(arg, value);\n };\n let nextOnce = arg => {\n if (fired) return;\n fired = true;\n next(arg, value);\n };\n let count = tests.length;\n let nestedErrors = [];\n if (!count) return nextOnce([]);\n let args = {\n value,\n originalValue,\n path,\n options,\n schema: this\n };\n for (let i = 0; i < tests.length; i++) {\n const test = tests[i];\n test(args, panicOnce, function finishTestRun(err) {\n if (err) {\n Array.isArray(err) ? nestedErrors.push(...err) : nestedErrors.push(err);\n }\n if (--count <= 0) {\n nextOnce(nestedErrors);\n }\n });\n }\n }\n asNestedTest({\n key,\n index,\n parent,\n parentPath,\n originalParent,\n options\n }) {\n const k = key != null ? key : index;\n if (k == null) {\n throw TypeError('Must include `key` or `index` for nested validations');\n }\n const isIndex = typeof k === 'number';\n let value = parent[k];\n const testOptions = Object.assign({}, options, {\n // Nested validations fields are always strict:\n // 1. parent isn't strict so the casting will also have cast inner values\n // 2. parent is strict in which case the nested values weren't cast either\n strict: true,\n parent,\n value,\n originalValue: originalParent[k],\n // FIXME: tests depend on `index` being passed around deeply,\n // we should not let the options.key/index bleed through\n key: undefined,\n // index: undefined,\n [isIndex ? 'index' : 'key']: k,\n path: isIndex || k.includes('.') ? `${parentPath || ''}[${isIndex ? k : `\"${k}\"`}]` : (parentPath ? `${parentPath}.` : '') + key\n });\n return (_, panic, next) => this.resolve(testOptions)._validate(value, testOptions, panic, next);\n }\n validate(value, options) {\n var _options$disableStack2;\n let schema = this.resolve(Object.assign({}, options, {\n value\n }));\n let disableStackTrace = (_options$disableStack2 = options == null ? void 0 : options.disableStackTrace) != null ? _options$disableStack2 : schema.spec.disableStackTrace;\n return new Promise((resolve, reject) => schema._validate(value, options, (error, parsed) => {\n if (ValidationError.isError(error)) error.value = parsed;\n reject(error);\n }, (errors, validated) => {\n if (errors.length) reject(new ValidationError(errors, validated, undefined, undefined, disableStackTrace));else resolve(validated);\n }));\n }\n validateSync(value, options) {\n var _options$disableStack3;\n let schema = this.resolve(Object.assign({}, options, {\n value\n }));\n let result;\n let disableStackTrace = (_options$disableStack3 = options == null ? void 0 : options.disableStackTrace) != null ? _options$disableStack3 : schema.spec.disableStackTrace;\n schema._validate(value, Object.assign({}, options, {\n sync: true\n }), (error, parsed) => {\n if (ValidationError.isError(error)) error.value = parsed;\n throw error;\n }, (errors, validated) => {\n if (errors.length) throw new ValidationError(errors, value, undefined, undefined, disableStackTrace);\n result = validated;\n });\n return result;\n }\n isValid(value, options) {\n return this.validate(value, options).then(() => true, err => {\n if (ValidationError.isError(err)) return false;\n throw err;\n });\n }\n isValidSync(value, options) {\n try {\n this.validateSync(value, options);\n return true;\n } catch (err) {\n if (ValidationError.isError(err)) return false;\n throw err;\n }\n }\n _getDefault(options) {\n let defaultValue = this.spec.default;\n if (defaultValue == null) {\n return defaultValue;\n }\n return typeof defaultValue === 'function' ? defaultValue.call(this, options) : clone(defaultValue);\n }\n getDefault(options\n // If schema is defaulted we know it's at least not undefined\n ) {\n let schema = this.resolve(options || {});\n return schema._getDefault(options);\n }\n default(def) {\n if (arguments.length === 0) {\n return this._getDefault();\n }\n let next = this.clone({\n default: def\n });\n return next;\n }\n strict(isStrict = true) {\n return this.clone({\n strict: isStrict\n });\n }\n nullability(nullable, message) {\n const next = this.clone({\n nullable\n });\n next.internalTests.nullable = createValidation({\n message,\n name: 'nullable',\n test(value) {\n return value === null ? this.schema.spec.nullable : true;\n }\n });\n return next;\n }\n optionality(optional, message) {\n const next = this.clone({\n optional\n });\n next.internalTests.optionality = createValidation({\n message,\n name: 'optionality',\n test(value) {\n return value === undefined ? this.schema.spec.optional : true;\n }\n });\n return next;\n }\n optional() {\n return this.optionality(true);\n }\n defined(message = mixed.defined) {\n return this.optionality(false, message);\n }\n nullable() {\n return this.nullability(true);\n }\n nonNullable(message = mixed.notNull) {\n return this.nullability(false, message);\n }\n required(message = mixed.required) {\n return this.clone().withMutation(next => next.nonNullable(message).defined(message));\n }\n notRequired() {\n return this.clone().withMutation(next => next.nullable().optional());\n }\n transform(fn) {\n let next = this.clone();\n next.transforms.push(fn);\n return next;\n }\n\n /**\n * Adds a test function to the schema's queue of tests.\n * tests can be exclusive or non-exclusive.\n *\n * - exclusive tests, will replace any existing tests of the same name.\n * - non-exclusive: can be stacked\n *\n * If a non-exclusive test is added to a schema with an exclusive test of the same name\n * the exclusive test is removed and further tests of the same name will be stacked.\n *\n * If an exclusive test is added to a schema with non-exclusive tests of the same name\n * the previous tests are removed and further tests of the same name will replace each other.\n */\n\n test(...args) {\n let opts;\n if (args.length === 1) {\n if (typeof args[0] === 'function') {\n opts = {\n test: args[0]\n };\n } else {\n opts = args[0];\n }\n } else if (args.length === 2) {\n opts = {\n name: args[0],\n test: args[1]\n };\n } else {\n opts = {\n name: args[0],\n message: args[1],\n test: args[2]\n };\n }\n if (opts.message === undefined) opts.message = mixed.default;\n if (typeof opts.test !== 'function') throw new TypeError('`test` is a required parameters');\n let next = this.clone();\n let validate = createValidation(opts);\n let isExclusive = opts.exclusive || opts.name && next.exclusiveTests[opts.name] === true;\n if (opts.exclusive) {\n if (!opts.name) throw new TypeError('Exclusive tests must provide a unique `name` identifying the test');\n }\n if (opts.name) next.exclusiveTests[opts.name] = !!opts.exclusive;\n next.tests = next.tests.filter(fn => {\n if (fn.OPTIONS.name === opts.name) {\n if (isExclusive) return false;\n if (fn.OPTIONS.test === validate.OPTIONS.test) return false;\n }\n return true;\n });\n next.tests.push(validate);\n return next;\n }\n when(keys, options) {\n if (!Array.isArray(keys) && typeof keys !== 'string') {\n options = keys;\n keys = '.';\n }\n let next = this.clone();\n let deps = toArray(keys).map(key => new Reference(key));\n deps.forEach(dep => {\n // @ts-ignore readonly array\n if (dep.isSibling) next.deps.push(dep.key);\n });\n next.conditions.push(typeof options === 'function' ? new Condition(deps, options) : Condition.fromOptions(deps, options));\n return next;\n }\n typeError(message) {\n let next = this.clone();\n next.internalTests.typeError = createValidation({\n message,\n name: 'typeError',\n skipAbsent: true,\n test(value) {\n if (!this.schema._typeCheck(value)) return this.createError({\n params: {\n type: this.schema.type\n }\n });\n return true;\n }\n });\n return next;\n }\n oneOf(enums, message = mixed.oneOf) {\n let next = this.clone();\n enums.forEach(val => {\n next._whitelist.add(val);\n next._blacklist.delete(val);\n });\n next.internalTests.whiteList = createValidation({\n message,\n name: 'oneOf',\n skipAbsent: true,\n test(value) {\n let valids = this.schema._whitelist;\n let resolved = valids.resolveAll(this.resolve);\n return resolved.includes(value) ? true : this.createError({\n params: {\n values: Array.from(valids).join(', '),\n resolved\n }\n });\n }\n });\n return next;\n }\n notOneOf(enums, message = mixed.notOneOf) {\n let next = this.clone();\n enums.forEach(val => {\n next._blacklist.add(val);\n next._whitelist.delete(val);\n });\n next.internalTests.blacklist = createValidation({\n message,\n name: 'notOneOf',\n test(value) {\n let invalids = this.schema._blacklist;\n let resolved = invalids.resolveAll(this.resolve);\n if (resolved.includes(value)) return this.createError({\n params: {\n values: Array.from(invalids).join(', '),\n resolved\n }\n });\n return true;\n }\n });\n return next;\n }\n strip(strip = true) {\n let next = this.clone();\n next.spec.strip = strip;\n return next;\n }\n\n /**\n * Return a serialized description of the schema including validations, flags, types etc.\n *\n * @param options Provide any needed context for resolving runtime schema alterations (lazy, when conditions, etc).\n */\n describe(options) {\n const next = (options ? this.resolve(options) : this).clone();\n const {\n label,\n meta,\n optional,\n nullable\n } = next.spec;\n const description = {\n meta,\n label,\n optional,\n nullable,\n default: next.getDefault(options),\n type: next.type,\n oneOf: next._whitelist.describe(),\n notOneOf: next._blacklist.describe(),\n tests: next.tests.filter((n, idx, list) => list.findIndex(c => c.OPTIONS.name === n.OPTIONS.name) === idx).map(fn => {\n const params = fn.OPTIONS.params && options ? resolveParams(Object.assign({}, fn.OPTIONS.params), options) : fn.OPTIONS.params;\n return {\n name: fn.OPTIONS.name,\n params\n };\n })\n };\n return description;\n }\n get ['~standard']() {\n const schema = this;\n const standard = {\n version: 1,\n vendor: 'yup',\n async validate(value) {\n try {\n const result = await schema.validate(value, {\n abortEarly: false\n });\n return {\n value: result\n };\n } catch (err) {\n if (err instanceof ValidationError) {\n return {\n issues: issuesFromValidationError(err)\n };\n }\n throw err;\n }\n }\n };\n return standard;\n }\n}\n// @ts-expect-error\nSchema.prototype.__isYupSchema__ = true;\nfor (const method of ['validate', 'validateSync']) Schema.prototype[`${method}At`] = function (path, value, options = {}) {\n const {\n parent,\n parentPath,\n schema\n } = getIn(this, path, value, options.context);\n return schema[method](parent && parent[parentPath], Object.assign({}, options, {\n parent,\n path\n }));\n};\nfor (const alias of ['equals', 'is']) Schema.prototype[alias] = Schema.prototype.oneOf;\nfor (const alias of ['not', 'nope']) Schema.prototype[alias] = Schema.prototype.notOneOf;\n\nconst returnsTrue = () => true;\nfunction create$8(spec) {\n return new MixedSchema(spec);\n}\nclass MixedSchema extends Schema {\n constructor(spec) {\n super(typeof spec === 'function' ? {\n type: 'mixed',\n check: spec\n } : Object.assign({\n type: 'mixed',\n check: returnsTrue\n }, spec));\n }\n}\ncreate$8.prototype = MixedSchema.prototype;\n\nfunction create$7() {\n return new BooleanSchema();\n}\nclass BooleanSchema extends Schema {\n constructor() {\n super({\n type: 'boolean',\n check(v) {\n if (v instanceof Boolean) v = v.valueOf();\n return typeof v === 'boolean';\n }\n });\n this.withMutation(() => {\n this.transform((value, _raw, ctx) => {\n if (ctx.spec.coerce && !ctx.isType(value)) {\n if (/^(true|1)$/i.test(String(value))) return true;\n if (/^(false|0)$/i.test(String(value))) return false;\n }\n return value;\n });\n });\n }\n isTrue(message = boolean.isValue) {\n return this.test({\n message,\n name: 'is-value',\n exclusive: true,\n params: {\n value: 'true'\n },\n test(value) {\n return isAbsent(value) || value === true;\n }\n });\n }\n isFalse(message = boolean.isValue) {\n return this.test({\n message,\n name: 'is-value',\n exclusive: true,\n params: {\n value: 'false'\n },\n test(value) {\n return isAbsent(value) || value === false;\n }\n });\n }\n default(def) {\n return super.default(def);\n }\n defined(msg) {\n return super.defined(msg);\n }\n optional() {\n return super.optional();\n }\n required(msg) {\n return super.required(msg);\n }\n notRequired() {\n return super.notRequired();\n }\n nullable() {\n return super.nullable();\n }\n nonNullable(msg) {\n return super.nonNullable(msg);\n }\n strip(v) {\n return super.strip(v);\n }\n}\ncreate$7.prototype = BooleanSchema.prototype;\n\n/**\n * This file is a modified version of the file from the following repository:\n * Date.parse with progressive enhancement for ISO 8601 <https://github.com/csnover/js-iso8601>\n * NON-CONFORMANT EDITION.\n * © 2011 Colin Snover <http://zetafleet.com>\n * Released under MIT license.\n */\n\n// prettier-ignore\n// 1 YYYY 2 MM 3 DD 4 HH 5 mm 6 ss 7 msec 8 Z 9 ± 10 tzHH 11 tzmm\nconst isoReg = /^(\\d{4}|[+-]\\d{6})(?:-?(\\d{2})(?:-?(\\d{2}))?)?(?:[ T]?(\\d{2}):?(\\d{2})(?::?(\\d{2})(?:[,.](\\d{1,}))?)?(?:(Z)|([+-])(\\d{2})(?::?(\\d{2}))?)?)?$/;\nfunction parseIsoDate(date) {\n const struct = parseDateStruct(date);\n if (!struct) return Date.parse ? Date.parse(date) : Number.NaN;\n\n // timestamps without timezone identifiers should be considered local time\n if (struct.z === undefined && struct.plusMinus === undefined) {\n return new Date(struct.year, struct.month, struct.day, struct.hour, struct.minute, struct.second, struct.millisecond).valueOf();\n }\n let totalMinutesOffset = 0;\n if (struct.z !== 'Z' && struct.plusMinus !== undefined) {\n totalMinutesOffset = struct.hourOffset * 60 + struct.minuteOffset;\n if (struct.plusMinus === '+') totalMinutesOffset = 0 - totalMinutesOffset;\n }\n return Date.UTC(struct.year, struct.month, struct.day, struct.hour, struct.minute + totalMinutesOffset, struct.second, struct.millisecond);\n}\nfunction parseDateStruct(date) {\n var _regexResult$7$length, _regexResult$;\n const regexResult = isoReg.exec(date);\n if (!regexResult) return null;\n\n // use of toNumber() avoids NaN timestamps caused by “undefined”\n // values being passed to Date constructor\n return {\n year: toNumber(regexResult[1]),\n month: toNumber(regexResult[2], 1) - 1,\n day: toNumber(regexResult[3], 1),\n hour: toNumber(regexResult[4]),\n minute: toNumber(regexResult[5]),\n second: toNumber(regexResult[6]),\n millisecond: regexResult[7] ?\n // allow arbitrary sub-second precision beyond milliseconds\n toNumber(regexResult[7].substring(0, 3)) : 0,\n precision: (_regexResult$7$length = (_regexResult$ = regexResult[7]) == null ? void 0 : _regexResult$.length) != null ? _regexResult$7$length : undefined,\n z: regexResult[8] || undefined,\n plusMinus: regexResult[9] || undefined,\n hourOffset: toNumber(regexResult[10]),\n minuteOffset: toNumber(regexResult[11])\n };\n}\nfunction toNumber(str, defaultValue = 0) {\n return Number(str) || defaultValue;\n}\n\n// Taken from HTML spec: https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address\nlet rEmail =\n// eslint-disable-next-line\n/^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\nlet rUrl =\n// eslint-disable-next-line\n/^((https?|ftp):)?\\/\\/(((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:)*@)?(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\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-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)|\\/|\\?)*)?$/i;\n\n// eslint-disable-next-line\nlet rUUID = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;\nlet yearMonthDay = '^\\\\d{4}-\\\\d{2}-\\\\d{2}';\nlet hourMinuteSecond = '\\\\d{2}:\\\\d{2}:\\\\d{2}';\nlet zOrOffset = '(([+-]\\\\d{2}(:?\\\\d{2})?)|Z)';\nlet rIsoDateTime = new RegExp(`${yearMonthDay}T${hourMinuteSecond}(\\\\.\\\\d+)?${zOrOffset}$`);\nlet isTrimmed = value => isAbsent(value) || value === value.trim();\nlet objStringTag = {}.toString();\nfunction create$6() {\n return new StringSchema();\n}\nclass StringSchema extends Schema {\n constructor() {\n super({\n type: 'string',\n check(value) {\n if (value instanceof String) value = value.valueOf();\n return typeof value === 'string';\n }\n });\n this.withMutation(() => {\n this.transform((value, _raw, ctx) => {\n if (!ctx.spec.coerce || ctx.isType(value)) return value;\n\n // don't ever convert arrays\n if (Array.isArray(value)) return value;\n const strValue = value != null && value.toString ? value.toString() : value;\n\n // no one wants plain objects converted to [Object object]\n if (strValue === objStringTag) return value;\n return strValue;\n });\n });\n }\n required(message) {\n return super.required(message).withMutation(schema => schema.test({\n message: message || mixed.required,\n name: 'required',\n skipAbsent: true,\n test: value => !!value.length\n }));\n }\n notRequired() {\n return super.notRequired().withMutation(schema => {\n schema.tests = schema.tests.filter(t => t.OPTIONS.name !== 'required');\n return schema;\n });\n }\n length(length, message = string.length) {\n return this.test({\n message,\n name: 'length',\n exclusive: true,\n params: {\n length\n },\n skipAbsent: true,\n test(value) {\n return value.length === this.resolve(length);\n }\n });\n }\n min(min, message = string.min) {\n return this.test({\n message,\n name: 'min',\n exclusive: true,\n params: {\n min\n },\n skipAbsent: true,\n test(value) {\n return value.length >= this.resolve(min);\n }\n });\n }\n max(max, message = string.max) {\n return this.test({\n name: 'max',\n exclusive: true,\n message,\n params: {\n max\n },\n skipAbsent: true,\n test(value) {\n return value.length <= this.resolve(max);\n }\n });\n }\n matches(regex, options) {\n let excludeEmptyString = false;\n let message;\n let name;\n if (options) {\n if (typeof options === 'object') {\n ({\n excludeEmptyString = false,\n message,\n name\n } = options);\n } else {\n message = options;\n }\n }\n return this.test({\n name: name || 'matches',\n message: message || string.matches,\n params: {\n regex\n },\n skipAbsent: true,\n test: value => value === '' && excludeEmptyString || value.search(regex) !== -1\n });\n }\n email(message = string.email) {\n return this.matches(rEmail, {\n name: 'email',\n message,\n excludeEmptyString: true\n });\n }\n url(message = string.url) {\n return this.matches(rUrl, {\n name: 'url',\n message,\n excludeEmptyString: true\n });\n }\n uuid(message = string.uuid) {\n return this.matches(rUUID, {\n name: 'uuid',\n message,\n excludeEmptyString: false\n });\n }\n datetime(options) {\n let message = '';\n let allowOffset;\n let precision;\n if (options) {\n if (typeof options === 'object') {\n ({\n message = '',\n allowOffset = false,\n precision = undefined\n } = options);\n } else {\n message = options;\n }\n }\n return this.matches(rIsoDateTime, {\n name: 'datetime',\n message: message || string.datetime,\n excludeEmptyString: true\n }).test({\n name: 'datetime_offset',\n message: message || string.datetime_offset,\n params: {\n allowOffset\n },\n skipAbsent: true,\n test: value => {\n if (!value || allowOffset) return true;\n const struct = parseDateStruct(value);\n if (!struct) return false;\n return !!struct.z;\n }\n }).test({\n name: 'datetime_precision',\n message: message || string.datetime_precision,\n params: {\n precision\n },\n skipAbsent: true,\n test: value => {\n if (!value || precision == undefined) return true;\n const struct = parseDateStruct(value);\n if (!struct) return false;\n return struct.precision === precision;\n }\n });\n }\n\n //-- transforms --\n ensure() {\n return this.default('').transform(val => val === null ? '' : val);\n }\n trim(message = string.trim) {\n return this.transform(val => val != null ? val.trim() : val).test({\n message,\n name: 'trim',\n test: isTrimmed\n });\n }\n lowercase(message = string.lowercase) {\n return this.transform(value => !isAbsent(value) ? value.toLowerCase() : value).test({\n message,\n name: 'string_case',\n exclusive: true,\n skipAbsent: true,\n test: value => isAbsent(value) || value === value.toLowerCase()\n });\n }\n uppercase(message = string.uppercase) {\n return this.transform(value => !isAbsent(value) ? value.toUpperCase() : value).test({\n message,\n name: 'string_case',\n exclusive: true,\n skipAbsent: true,\n test: value => isAbsent(value) || value === value.toUpperCase()\n });\n }\n}\ncreate$6.prototype = StringSchema.prototype;\n\n//\n// String Interfaces\n//\n\nlet isNaN$1 = value => value != +value;\nfunction create$5() {\n return new NumberSchema();\n}\nclass NumberSchema extends Schema {\n constructor() {\n super({\n type: 'number',\n check(value) {\n if (value instanceof Number) value = value.valueOf();\n return typeof value === 'number' && !isNaN$1(value);\n }\n });\n this.withMutation(() => {\n this.transform((value, _raw, ctx) => {\n if (!ctx.spec.coerce) return value;\n let parsed = value;\n if (typeof parsed === 'string') {\n parsed = parsed.replace(/\\s/g, '');\n if (parsed === '') return NaN;\n // don't use parseFloat to avoid positives on alpha-numeric strings\n parsed = +parsed;\n }\n\n // null -> NaN isn't useful; treat all nulls as null and let it fail on\n // nullability check vs TypeErrors\n if (ctx.isType(parsed) || parsed === null) return parsed;\n return parseFloat(parsed);\n });\n });\n }\n min(min, message = number.min) {\n return this.test({\n message,\n name: 'min',\n exclusive: true,\n params: {\n min\n },\n skipAbsent: true,\n test(value) {\n return value >= this.resolve(min);\n }\n });\n }\n max(max, message = number.max) {\n return this.test({\n message,\n name: 'max',\n exclusive: true,\n params: {\n max\n },\n skipAbsent: true,\n test(value) {\n return value <= this.resolve(max);\n }\n });\n }\n lessThan(less, message = number.lessThan) {\n return this.test({\n message,\n name: 'max',\n exclusive: true,\n params: {\n less\n },\n skipAbsent: true,\n test(value) {\n return value < this.resolve(less);\n }\n });\n }\n moreThan(more, message = number.moreThan) {\n return this.test({\n message,\n name: 'min',\n exclusive: true,\n params: {\n more\n },\n skipAbsent: true,\n test(value) {\n return value > this.resolve(more);\n }\n });\n }\n positive(msg = number.positive) {\n return this.moreThan(0, msg);\n }\n negative(msg = number.negative) {\n return this.lessThan(0, msg);\n }\n integer(message = number.integer) {\n return this.test({\n name: 'integer',\n message,\n skipAbsent: true,\n test: val => Number.isInteger(val)\n });\n }\n truncate() {\n return this.transform(value => !isAbsent(value) ? value | 0 : value);\n }\n round(method) {\n var _method;\n let avail = ['ceil', 'floor', 'round', 'trunc'];\n method = ((_method = method) == null ? void 0 : _method.toLowerCase()) || 'round';\n\n // this exists for symemtry with the new Math.trunc\n if (method === 'trunc') return this.truncate();\n if (avail.indexOf(method.toLowerCase()) === -1) throw new TypeError('Only valid options for round() are: ' + avail.join(', '));\n return this.transform(value => !isAbsent(value) ? Math[method](value) : value);\n }\n}\ncreate$5.prototype = NumberSchema.prototype;\n\n//\n// Number Interfaces\n//\n\nlet invalidDate = new Date('');\nlet isDate = obj => Object.prototype.toString.call(obj) === '[object Date]';\nfunction create$4() {\n return new DateSchema();\n}\nclass DateSchema extends Schema {\n constructor() {\n super({\n type: 'date',\n check(v) {\n return isDate(v) && !isNaN(v.getTime());\n }\n });\n this.withMutation(() => {\n this.transform((value, _raw, ctx) => {\n // null -> InvalidDate isn't useful; treat all nulls as null and let it fail on\n // nullability check vs TypeErrors\n if (!ctx.spec.coerce || ctx.isType(value) || value === null) return value;\n value = parseIsoDate(value);\n\n // 0 is a valid timestamp equivalent to 1970-01-01T00:00:00Z(unix epoch) or before.\n return !isNaN(value) ? new Date(value) : DateSchema.INVALID_DATE;\n });\n });\n }\n prepareParam(ref, name) {\n let param;\n if (!Reference.isRef(ref)) {\n let cast = this.cast(ref);\n if (!this._typeCheck(cast)) throw new TypeError(`\\`${name}\\` must be a Date or a value that can be \\`cast()\\` to a Date`);\n param = cast;\n } else {\n param = ref;\n }\n return param;\n }\n min(min, message = date.min) {\n let limit = this.prepareParam(min, 'min');\n return this.test({\n message,\n name: 'min',\n exclusive: true,\n params: {\n min\n },\n skipAbsent: true,\n test(value) {\n return value >= this.resolve(limit);\n }\n });\n }\n max(max, message = date.max) {\n let limit = this.prepareParam(max, 'max');\n return this.test({\n message,\n name: 'max',\n exclusive: true,\n params: {\n max\n },\n skipAbsent: true,\n test(value) {\n return value <= this.resolve(limit);\n }\n });\n }\n}\nDateSchema.INVALID_DATE = invalidDate;\ncreate$4.prototype = DateSchema.prototype;\ncreate$4.INVALID_DATE = invalidDate;\n\n// @ts-expect-error\nfunction sortFields(fields, excludedEdges = []) {\n let edges = [];\n let nodes = new Set();\n let excludes = new Set(excludedEdges.map(([a, b]) => `${a}-${b}`));\n function addNode(depPath, key) {\n let node = split(depPath)[0];\n nodes.add(node);\n if (!excludes.has(`${key}-${node}`)) edges.push([key, node]);\n }\n for (const key of Object.keys(fields)) {\n let value = fields[key];\n nodes.add(key);\n if (Reference.isRef(value) && value.isSibling) addNode(value.path, key);else if (isSchema(value) && 'deps' in value) value.deps.forEach(path => addNode(path, key));\n }\n return toposort.array(Array.from(nodes), edges).reverse();\n}\n\nfunction findIndex(arr, err) {\n let idx = Infinity;\n arr.some((key, ii) => {\n var _err$path;\n if ((_err$path = err.path) != null && _err$path.includes(key)) {\n idx = ii;\n return true;\n }\n });\n return idx;\n}\nfunction sortByKeyOrder(keys) {\n return (a, b) => {\n return findIndex(keys, a) - findIndex(keys, b);\n };\n}\n\nconst parseJson = (value, _, ctx) => {\n if (typeof value !== 'string') {\n return value;\n }\n let parsed = value;\n try {\n parsed = JSON.parse(value);\n } catch (err) {\n /* */\n }\n return ctx.isType(parsed) ? parsed : value;\n};\n\n// @ts-ignore\nfunction deepPartial(schema) {\n if ('fields' in schema) {\n const partial = {};\n for (const [key, fieldSchema] of Object.entries(schema.fields)) {\n partial[key] = deepPartial(fieldSchema);\n }\n return schema.setFields(partial);\n }\n if (schema.type === 'array') {\n const nextArray = schema.optional();\n if (nextArray.innerType) nextArray.innerType = deepPartial(nextArray.innerType);\n return nextArray;\n }\n if (schema.type === 'tuple') {\n return schema.optional().clone({\n types: schema.spec.types.map(deepPartial)\n });\n }\n if ('optional' in schema) {\n return schema.optional();\n }\n return schema;\n}\nconst deepHas = (obj, p) => {\n const path = [...normalizePath(p)];\n if (path.length === 1) return path[0] in obj;\n let last = path.pop();\n let parent = getter(join(path), true)(obj);\n return !!(parent && last in parent);\n};\nlet isObject = obj => Object.prototype.toString.call(obj) === '[object Object]';\nfunction unknown(ctx, value) {\n let known = Object.keys(ctx.fields);\n return Object.keys(value).filter(key => known.indexOf(key) === -1);\n}\nconst defaultSort = sortByKeyOrder([]);\nfunction create$3(spec) {\n return new ObjectSchema(spec);\n}\nclass ObjectSchema extends Schema {\n constructor(spec) {\n super({\n type: 'object',\n check(value) {\n return isObject(value) || typeof value === 'function';\n }\n });\n this.fields = Object.create(null);\n this._sortErrors = defaultSort;\n this._nodes = [];\n this._excludedEdges = [];\n this.withMutation(() => {\n if (spec) {\n this.shape(spec);\n }\n });\n }\n _cast(_value, options = {}) {\n var _options$stripUnknown;\n let value = super._cast(_value, options);\n\n //should ignore nulls here\n if (value === undefined) return this.getDefault(options);\n if (!this._typeCheck(value)) return value;\n let fields = this.fields;\n let strip = (_options$stripUnknown = options.stripUnknown) != null ? _options$stripUnknown : this.spec.noUnknown;\n let props = [].concat(this._nodes, Object.keys(value).filter(v => !this._nodes.includes(v)));\n let intermediateValue = {}; // is filled during the transform below\n let innerOptions = Object.assign({}, options, {\n parent: intermediateValue,\n __validating: options.__validating || false\n });\n let isChanged = false;\n for (const prop of props) {\n let field = fields[prop];\n let exists = (prop in value);\n if (field) {\n let fieldValue;\n let inputValue = value[prop];\n\n // safe to mutate since this is fired in sequence\n innerOptions.path = (options.path ? `${options.path}.` : '') + prop;\n field = field.resolve({\n value: inputValue,\n context: options.context,\n parent: intermediateValue\n });\n let fieldSpec = field instanceof Schema ? field.spec : undefined;\n let strict = fieldSpec == null ? void 0 : fieldSpec.strict;\n if (fieldSpec != null && fieldSpec.strip) {\n isChanged = isChanged || prop in value;\n continue;\n }\n fieldValue = !options.__validating || !strict ?\n // TODO: use _cast, this is double resolving\n field.cast(value[prop], innerOptions) : value[prop];\n if (fieldValue !== undefined) {\n intermediateValue[prop] = fieldValue;\n }\n } else if (exists && !strip) {\n intermediateValue[prop] = value[prop];\n }\n if (exists !== prop in intermediateValue || intermediateValue[prop] !== value[prop]) {\n isChanged = true;\n }\n }\n return isChanged ? intermediateValue : value;\n }\n _validate(_value, options = {}, panic, next) {\n let {\n from = [],\n originalValue = _value,\n recursive = this.spec.recursive\n } = options;\n options.from = [{\n schema: this,\n value: originalValue\n }, ...from];\n // this flag is needed for handling `strict` correctly in the context of\n // validation vs just casting. e.g strict() on a field is only used when validating\n options.__validating = true;\n options.originalValue = originalValue;\n super._validate(_value, options, panic, (objectErrors, value) => {\n if (!recursive || !isObject(value)) {\n next(objectErrors, value);\n return;\n }\n originalValue = originalValue || value;\n let tests = [];\n for (let key of this._nodes) {\n let field = this.fields[key];\n if (!field || Reference.isRef(field)) {\n continue;\n }\n tests.push(field.asNestedTest({\n options,\n key,\n parent: value,\n parentPath: options.path,\n originalParent: originalValue\n }));\n }\n this.runTests({\n tests,\n value,\n originalValue,\n options\n }, panic, fieldErrors => {\n next(fieldErrors.sort(this._sortErrors).concat(objectErrors), value);\n });\n });\n }\n clone(spec) {\n const next = super.clone(spec);\n next.fields = Object.assign({}, this.fields);\n next._nodes = this._nodes;\n next._excludedEdges = this._excludedEdges;\n next._sortErrors = this._sortErrors;\n return next;\n }\n concat(schema) {\n let next = super.concat(schema);\n let nextFields = next.fields;\n for (let [field, schemaOrRef] of Object.entries(this.fields)) {\n const target = nextFields[field];\n nextFields[field] = target === undefined ? schemaOrRef : target;\n }\n return next.withMutation(s =>\n // XXX: excludes here is wrong\n s.setFields(nextFields, [...this._excludedEdges, ...schema._excludedEdges]));\n }\n _getDefault(options) {\n if ('default' in this.spec) {\n return super._getDefault(options);\n }\n\n // if there is no default set invent one\n if (!this._nodes.length) {\n return undefined;\n }\n let dft = {};\n this._nodes.forEach(key => {\n var _innerOptions;\n const field = this.fields[key];\n let innerOptions = options;\n if ((_innerOptions = innerOptions) != null && _innerOptions.value) {\n innerOptions = Object.assign({}, innerOptions, {\n parent: innerOptions.value,\n value: innerOptions.value[key]\n });\n }\n dft[key] = field && 'getDefault' in field ? field.getDefault(innerOptions) : undefined;\n });\n return dft;\n }\n setFields(shape, excludedEdges) {\n let next = this.clone();\n next.fields = shape;\n next._nodes = sortFields(shape, excludedEdges);\n next._sortErrors = sortByKeyOrder(Object.keys(shape));\n // XXX: this carries over edges which may not be what you want\n if (excludedEdges) next._excludedEdges = excludedEdges;\n return next;\n }\n shape(additions, excludes = []) {\n return this.clone().withMutation(next => {\n let edges = next._excludedEdges;\n if (excludes.length) {\n if (!Array.isArray(excludes[0])) excludes = [excludes];\n edges = [...next._excludedEdges, ...excludes];\n }\n\n // XXX: excludes here is wrong\n return next.setFields(Object.assign(next.fields, additions), edges);\n });\n }\n partial() {\n const partial = {};\n for (const [key, schema] of Object.entries(this.fields)) {\n partial[key] = 'optional' in schema && schema.optional instanceof Function ? schema.optional() : schema;\n }\n return this.setFields(partial);\n }\n deepPartial() {\n const next = deepPartial(this);\n return next;\n }\n pick(keys) {\n const picked = {};\n for (const key of keys) {\n if (this.fields[key]) picked[key] = this.fields[key];\n }\n return this.setFields(picked, this._excludedEdges.filter(([a, b]) => keys.includes(a) && keys.includes(b)));\n }\n omit(keys) {\n const remaining = [];\n for (const key of Object.keys(this.fields)) {\n if (keys.includes(key)) continue;\n remaining.push(key);\n }\n return this.pick(remaining);\n }\n from(from, to, alias) {\n let fromGetter = getter(from, true);\n return this.transform(obj => {\n if (!obj) return obj;\n let newObj = obj;\n if (deepHas(obj, from)) {\n newObj = Object.assign({}, obj);\n if (!alias) delete newObj[from];\n newObj[to] = fromGetter(obj);\n }\n return newObj;\n });\n }\n\n /** Parse an input JSON string to an object */\n json() {\n return this.transform(parseJson);\n }\n\n /**\n * Similar to `noUnknown` but only validates that an object is the right shape without stripping the unknown keys\n */\n exact(message) {\n return this.test({\n name: 'exact',\n exclusive: true,\n message: message || object.exact,\n test(value) {\n if (value == null) return true;\n const unknownKeys = unknown(this.schema, value);\n return unknownKeys.length === 0 || this.createError({\n params: {\n properties: unknownKeys.join(', ')\n }\n });\n }\n });\n }\n stripUnknown() {\n return this.clone({\n noUnknown: true\n });\n }\n noUnknown(noAllow = true, message = object.noUnknown) {\n if (typeof noAllow !== 'boolean') {\n message = noAllow;\n noAllow = true;\n }\n let next = this.test({\n name: 'noUnknown',\n exclusive: true,\n message: message,\n test(value) {\n if (value == null) return true;\n const unknownKeys = unknown(this.schema, value);\n return !noAllow || unknownKeys.length === 0 || this.createError({\n params: {\n unknown: unknownKeys.join(', ')\n }\n });\n }\n });\n next.spec.noUnknown = noAllow;\n return next;\n }\n unknown(allow = true, message = object.noUnknown) {\n return this.noUnknown(!allow, message);\n }\n transformKeys(fn) {\n return this.transform(obj => {\n if (!obj) return obj;\n const result = {};\n for (const key of Object.keys(obj)) result[fn(key)] = obj[key];\n return result;\n });\n }\n camelCase() {\n return this.transformKeys(camelCase);\n }\n snakeCase() {\n return this.transformKeys(snakeCase);\n }\n constantCase() {\n return this.transformKeys(key => snakeCase(key).toUpperCase());\n }\n describe(options) {\n const next = (options ? this.resolve(options) : this).clone();\n const base = super.describe(options);\n base.fields = {};\n for (const [key, value] of Object.entries(next.fields)) {\n var _innerOptions2;\n let innerOptions = options;\n if ((_innerOptions2 = innerOptions) != null && _innerOptions2.value) {\n innerOptions = Object.assign({}, innerOptions, {\n parent: innerOptions.value,\n value: innerOptions.value[key]\n });\n }\n base.fields[key] = value.describe(innerOptions);\n }\n return base;\n }\n}\ncreate$3.prototype = ObjectSchema.prototype;\n\nfunction create$2(type) {\n return new ArraySchema(type);\n}\nclass ArraySchema extends Schema {\n constructor(type) {\n super({\n type: 'array',\n spec: {\n types: type\n },\n check(v) {\n return Array.isArray(v);\n }\n });\n\n // `undefined` specifically means uninitialized, as opposed to \"no subtype\"\n this.innerType = void 0;\n this.innerType = type;\n }\n _cast(_value, _opts) {\n const value = super._cast(_value, _opts);\n\n // should ignore nulls here\n if (!this._typeCheck(value) || !this.innerType) {\n return value;\n }\n let isChanged = false;\n const castArray = value.map((v, idx) => {\n const castElement = this.innerType.cast(v, Object.assign({}, _opts, {\n path: `${_opts.path || ''}[${idx}]`\n }));\n if (castElement !== v) {\n isChanged = true;\n }\n return castElement;\n });\n return isChanged ? castArray : value;\n }\n _validate(_value, options = {}, panic, next) {\n var _options$recursive;\n // let sync = options.sync;\n // let path = options.path;\n let innerType = this.innerType;\n // let endEarly = options.abortEarly ?? this.spec.abortEarly;\n let recursive = (_options$recursive = options.recursive) != null ? _options$recursive : this.spec.recursive;\n options.originalValue != null ? options.originalValue : _value;\n super._validate(_value, options, panic, (arrayErrors, value) => {\n var _options$originalValu2;\n if (!recursive || !innerType || !this._typeCheck(value)) {\n next(arrayErrors, value);\n return;\n }\n\n // #950 Ensure that sparse array empty slots are validated\n let tests = new Array(value.length);\n for (let index = 0; index < value.length; index++) {\n var _options$originalValu;\n tests[index] = innerType.asNestedTest({\n options,\n index,\n parent: value,\n parentPath: options.path,\n originalParent: (_options$originalValu = options.originalValue) != null ? _options$originalValu : _value\n });\n }\n this.runTests({\n value,\n tests,\n originalValue: (_options$originalValu2 = options.originalValue) != null ? _options$originalValu2 : _value,\n options\n }, panic, innerTypeErrors => next(innerTypeErrors.concat(arrayErrors), value));\n });\n }\n clone(spec) {\n const next = super.clone(spec);\n // @ts-expect-error readonly\n next.innerType = this.innerType;\n return next;\n }\n\n /** Parse an input JSON string to an object */\n json() {\n return this.transform(parseJson);\n }\n concat(schema) {\n let next = super.concat(schema);\n\n // @ts-expect-error readonly\n next.innerType = this.innerType;\n if (schema.innerType)\n // @ts-expect-error readonly\n next.innerType = next.innerType ?\n // @ts-expect-error Lazy doesn't have concat and will break\n next.innerType.concat(schema.innerType) : schema.innerType;\n return next;\n }\n of(schema) {\n // FIXME: this should return a new instance of array without the default to be\n let next = this.clone();\n if (!isSchema(schema)) throw new TypeError('`array.of()` sub-schema must be a valid yup schema not: ' + printValue(schema));\n\n // @ts-expect-error readonly\n next.innerType = schema;\n next.spec = Object.assign({}, next.spec, {\n types: schema\n });\n return next;\n }\n length(length, message = array.length) {\n return this.test({\n message,\n name: 'length',\n exclusive: true,\n params: {\n length\n },\n skipAbsent: true,\n test(value) {\n return value.length === this.resolve(length);\n }\n });\n }\n min(min, message) {\n message = message || array.min;\n return this.test({\n message,\n name: 'min',\n exclusive: true,\n params: {\n min\n },\n skipAbsent: true,\n // FIXME(ts): Array<typeof T>\n test(value) {\n return value.length >= this.resolve(min);\n }\n });\n }\n max(max, message) {\n message = message || array.max;\n return this.test({\n message,\n name: 'max',\n exclusive: true,\n params: {\n max\n },\n skipAbsent: true,\n test(value) {\n return value.length <= this.resolve(max);\n }\n });\n }\n ensure() {\n return this.default(() => []).transform((val, original) => {\n // We don't want to return `null` for nullable schema\n if (this._typeCheck(val)) return val;\n return original == null ? [] : [].concat(original);\n });\n }\n compact(rejector) {\n let reject = !rejector ? v => !!v : (v, i, a) => !rejector(v, i, a);\n return this.transform(values => values != null ? values.filter(reject) : values);\n }\n describe(options) {\n const next = (options ? this.resolve(options) : this).clone();\n const base = super.describe(options);\n if (next.innerType) {\n var _innerOptions;\n let innerOptions = options;\n if ((_innerOptions = innerOptions) != null && _innerOptions.value) {\n innerOptions = Object.assign({}, innerOptions, {\n parent: innerOptions.value,\n value: innerOptions.value[0]\n });\n }\n base.innerType = next.innerType.describe(innerOptions);\n }\n return base;\n }\n}\ncreate$2.prototype = ArraySchema.prototype;\n\n// @ts-ignore\nfunction create$1(schemas) {\n return new TupleSchema(schemas);\n}\nclass TupleSchema extends Schema {\n constructor(schemas) {\n super({\n type: 'tuple',\n spec: {\n types: schemas\n },\n check(v) {\n const types = this.spec.types;\n return Array.isArray(v) && v.length === types.length;\n }\n });\n this.withMutation(() => {\n this.typeError(tuple.notType);\n });\n }\n _cast(inputValue, options) {\n const {\n types\n } = this.spec;\n const value = super._cast(inputValue, options);\n if (!this._typeCheck(value)) {\n return value;\n }\n let isChanged = false;\n const castArray = types.map((type, idx) => {\n const castElement = type.cast(value[idx], Object.assign({}, options, {\n path: `${options.path || ''}[${idx}]`\n }));\n if (castElement !== value[idx]) isChanged = true;\n return castElement;\n });\n return isChanged ? castArray : value;\n }\n _validate(_value, options = {}, panic, next) {\n let itemTypes = this.spec.types;\n super._validate(_value, options, panic, (tupleErrors, value) => {\n var _options$originalValu2;\n // intentionally not respecting recursive\n if (!this._typeCheck(value)) {\n next(tupleErrors, value);\n return;\n }\n let tests = [];\n for (let [index, itemSchema] of itemTypes.entries()) {\n var _options$originalValu;\n tests[index] = itemSchema.asNestedTest({\n options,\n index,\n parent: value,\n parentPath: options.path,\n originalParent: (_options$originalValu = options.originalValue) != null ? _options$originalValu : _value\n });\n }\n this.runTests({\n value,\n tests,\n originalValue: (_options$originalValu2 = options.originalValue) != null ? _options$originalValu2 : _value,\n options\n }, panic, innerTypeErrors => next(innerTypeErrors.concat(tupleErrors), value));\n });\n }\n describe(options) {\n const next = (options ? this.resolve(options) : this).clone();\n const base = super.describe(options);\n base.innerType = next.spec.types.map((schema, index) => {\n var _innerOptions;\n let innerOptions = options;\n if ((_innerOptions = innerOptions) != null && _innerOptions.value) {\n innerOptions = Object.assign({}, innerOptions, {\n parent: innerOptions.value,\n value: innerOptions.value[index]\n });\n }\n return schema.describe(innerOptions);\n });\n return base;\n }\n}\ncreate$1.prototype = TupleSchema.prototype;\n\nfunction create(builder) {\n return new Lazy(builder);\n}\nfunction catchValidationError(fn) {\n try {\n return fn();\n } catch (err) {\n if (ValidationError.isError(err)) return Promise.reject(err);\n throw err;\n }\n}\nclass Lazy {\n constructor(builder) {\n this.type = 'lazy';\n this.__isYupSchema__ = true;\n this.spec = void 0;\n this._resolve = (value, options = {}) => {\n let schema = this.builder(value, options);\n if (!isSchema(schema)) throw new TypeError('lazy() functions must return a valid schema');\n if (this.spec.optional) schema = schema.optional();\n return schema.resolve(options);\n };\n this.builder = builder;\n this.spec = {\n meta: undefined,\n optional: false\n };\n }\n clone(spec) {\n const next = new Lazy(this.builder);\n next.spec = Object.assign({}, this.spec, spec);\n return next;\n }\n optionality(optional) {\n const next = this.clone({\n optional\n });\n return next;\n }\n optional() {\n return this.optionality(true);\n }\n resolve(options) {\n return this._resolve(options.value, options);\n }\n cast(value, options) {\n return this._resolve(value, options).cast(value, options);\n }\n asNestedTest(config) {\n let {\n key,\n index,\n parent,\n options\n } = config;\n let value = parent[index != null ? index : key];\n return this._resolve(value, Object.assign({}, options, {\n value,\n parent\n })).asNestedTest(config);\n }\n validate(value, options) {\n return catchValidationError(() => this._resolve(value, options).validate(value, options));\n }\n validateSync(value, options) {\n return this._resolve(value, options).validateSync(value, options);\n }\n validateAt(path, value, options) {\n return catchValidationError(() => this._resolve(value, options).validateAt(path, value, options));\n }\n validateSyncAt(path, value, options) {\n return this._resolve(value, options).validateSyncAt(path, value, options);\n }\n isValid(value, options) {\n try {\n return this._resolve(value, options).isValid(value, options);\n } catch (err) {\n if (ValidationError.isError(err)) {\n return Promise.resolve(false);\n }\n throw err;\n }\n }\n isValidSync(value, options) {\n return this._resolve(value, options).isValidSync(value, options);\n }\n describe(options) {\n return options ? this.resolve(options).describe(options) : {\n type: 'lazy',\n meta: this.spec.meta,\n label: undefined\n };\n }\n meta(...args) {\n if (args.length === 0) return this.spec.meta;\n let next = this.clone();\n next.spec.meta = Object.assign(next.spec.meta || {}, args[0]);\n return next;\n }\n get ['~standard']() {\n const schema = this;\n const standard = {\n version: 1,\n vendor: 'yup',\n async validate(value) {\n try {\n const result = await schema.validate(value, {\n abortEarly: false\n });\n return {\n value: result\n };\n } catch (err) {\n if (ValidationError.isError(err)) {\n return {\n issues: issuesFromValidationError(err)\n };\n }\n throw err;\n }\n }\n };\n return standard;\n }\n}\n\nfunction setLocale(custom) {\n Object.keys(custom).forEach(type => {\n // @ts-ignore\n Object.keys(custom[type]).forEach(method => {\n // @ts-ignore\n locale[type][method] = custom[type][method];\n });\n });\n}\n\nfunction addMethod(schemaType, name, fn) {\n if (!schemaType || !isSchema(schemaType.prototype)) throw new TypeError('You must provide a yup schema constructor function');\n if (typeof name !== 'string') throw new TypeError('A Method name must be provided');\n if (typeof fn !== 'function') throw new TypeError('Method function must be provided');\n schemaType.prototype[name] = fn;\n}\n\nexport { ArraySchema, BooleanSchema, DateSchema, Lazy as LazySchema, MixedSchema, NumberSchema, ObjectSchema, Schema, StringSchema, TupleSchema, ValidationError, addMethod, create$2 as array, create$7 as bool, create$7 as boolean, create$4 as date, locale as defaultLocale, getIn, isSchema, create as lazy, create$8 as mixed, create$5 as number, create$3 as object, printValue, reach, create$9 as ref, setLocale, create$6 as string, create$1 as tuple };\n","import { Autocomplete, Button, InputAdornment, Stack, TextField } from \"@mui/material\";\nimport { DateTimePicker, LocalizationProvider } from \"@mui/x-date-pickers\";\nimport { AdapterLuxon } from \"@mui/x-date-pickers/AdapterLuxon\";\nimport { DiaryEntry } from \"components/Nutrition/models/diaryEntry\";\nimport { Ingredient } from \"components/Nutrition/models/Ingredient\";\nimport { Meal } from \"components/Nutrition/models/meal\";\nimport { useAddDiaryEntryQuery, useEditDiaryEntryQuery } from \"components/Nutrition/queries\";\nimport { IngredientAutocompleter } from \"components/Nutrition/widgets/IngredientAutcompleter\";\nimport { Form, Formik } from \"formik\";\nimport { DateTime } from \"luxon\";\nimport React, { useState } from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { dateToYYYYMMDD } from \"utils/date\";\nimport * as yup from \"yup\";\n\ntype NutritionDiaryEntryFormProps = {\n planId: number,\n entry?: DiaryEntry,\n mealId?: number | null,\n meals?: Meal[],\n closeFn?: Function,\n}\n\nexport const NutritionDiaryEntryForm = ({ planId, entry, mealId, meals, closeFn }: NutritionDiaryEntryFormProps) => {\n\n const meal = mealId === undefined ? null : mealId;\n const mealObjs = meals === undefined ? [] : meals;\n\n const [t, i18n] = useTranslation();\n const addDiaryQuery = useAddDiaryEntryQuery(planId);\n const editDiaryQuery = useEditDiaryEntryQuery(planId);\n const [dateValue, setDateValue] = useState<DateTime | null>(entry ? DateTime.fromJSDate(entry.datetime) : DateTime.now());\n const [selectedMeal, setSelectedMeal] = useState<number | null>(meal);\n const validationSchema = yup.object({\n amount: yup\n .number()\n .required(t('forms.fieldRequired'))\n .max(1000, t('forms.maxValue', { value: '1000' }))\n .min(1, t('forms.minValue', { value: '1' })),\n ingredient: yup\n .number()\n .required(t('forms.fieldRequired')),\n datetime: yup\n .date()\n .required(t('forms.fieldRequired')),\n });\n\n\n return (\n (<Formik\n initialValues={{\n datetime: new Date(),\n amount: 0,\n ingredient: 0,\n }}\n validationSchema={validationSchema}\n onSubmit={async (values) => {\n\n // Make sure \"amount\" is a number\n const newAmount = Number(values.amount);\n \n if (entry) {\n // Edit\n const newDiaryEntry = DiaryEntry.clone(entry, {\n mealId: selectedMeal,\n planId: planId,\n amount: newAmount,\n datetime: values.datetime,\n ingredientId: values.ingredient\n });\n editDiaryQuery.mutate(newDiaryEntry);\n } else {\n // Add\n addDiaryQuery.mutate(new DiaryEntry({\n planId: planId,\n amount: newAmount,\n datetime: values.datetime,\n ingredientId: values.ingredient,\n mealId: selectedMeal,\n }));\n }\n\n // if closeFn is defined, close the modal (this form does not have to be displayed in one)\n if (closeFn) {\n closeFn();\n }\n }}\n >\n {formik => (\n <Form>\n <Stack spacing={2}>\n <IngredientAutocompleter\n callback={(value: Ingredient | null) => formik.setFieldValue('ingredient', value?.id)} />\n <TextField\n fullWidth\n id=\"amount\"\n label={'amount'}\n slotProps={{\n input: {\n endAdornment: <InputAdornment position=\"end\">\n {t('nutrition.gramShort')}\n </InputAdornment>\n }\n }}\n error={formik.touched.amount && Boolean(formik.errors.amount)}\n helperText={formik.touched.amount && formik.errors.amount}\n {...formik.getFieldProps('amount')}\n />\n {mealObjs.length > 0 && <Autocomplete\n value={selectedMeal}\n options={mealObjs.map(e => e.id)}\n getOptionLabel={option => mealObjs.find(e => e.id === option)!.displayName!}\n onChange={(event, newValue) => setSelectedMeal(newValue)}\n renderInput={params => (\n <TextField\n label={t(\"nutrition.meal\")}\n value={selectedMeal}\n {...params}\n />\n )}\n />}\n <LocalizationProvider dateAdapter={AdapterLuxon} adapterLocale={i18n.language}>\n\n <DateTimePicker\n format=\"yyyy-MM-dd HH:mm\"\n label={t('date')}\n value={dateValue}\n disableFuture={true}\n onChange={(newValue) => {\n formik.setFieldValue('datetime', newValue?.toJSDate());\n\n setDateValue(newValue);\n }}\n shouldDisableDate={(date) => {\n\n // Allow the date of the current weight entry, since we are editing it\n // @ts-ignore - date is a Luxon DateTime!\n if (entry && dateToYYYYMMDD(entry.datetime) === dateToYYYYMMDD(date.toJSDate())) {\n return false;\n }\n\n // all other dates are allowed\n return false;\n }}\n />\n </LocalizationProvider>\n <Stack direction=\"row\" justifyContent=\"end\" spacing={2}>\n {closeFn !== undefined\n && <Button color=\"primary\" variant=\"outlined\" onClick={() => closeFn()}>\n {t('close')}\n </Button>}\n <Button color=\"primary\" variant=\"contained\" type=\"submit\">\n {t('submit')}\n </Button>\n </Stack>\n </Stack>\n </Form>\n )}\n </Formik>)\n );\n};\n","import {\n Button,\n FormControlLabel,\n FormGroup,\n FormHelperText,\n InputAdornment,\n Stack,\n Switch,\n TextField\n} from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport { DatePicker, LocalizationProvider } from \"@mui/x-date-pickers\";\nimport { AdapterLuxon } from \"@mui/x-date-pickers/AdapterLuxon\";\n\nimport { ENERGY_FACTOR } from \"components/Nutrition/helpers/nutritionalValues\";\nimport { NutritionalPlan } from \"components/Nutrition/models/nutritionalPlan\";\nimport { useAddNutritionalPlanQuery, useEditNutritionalPlanQuery } from \"components/Nutrition/queries\";\nimport { Form, Formik } from \"formik\";\nimport i18n from \"i18n\";\nimport { DateTime } from \"luxon\";\nimport React, { useState } from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { dateToYYYYMMDD } from \"utils/date\";\nimport * as yup from 'yup';\n\ninterface PlanFormProps {\n plan?: NutritionalPlan,\n closeFn?: Function,\n}\n\nexport const PlanForm = ({ plan, closeFn }: PlanFormProps) => {\n\n const [t] = useTranslation();\n const addPlanQuery = useAddNutritionalPlanQuery();\n const editPlanQuery = useEditNutritionalPlanQuery(plan?.id!);\n const [useGoals, setUseGoals] = useState(plan?.hasAnyGoals);\n const [startDateValue, setStartDateValue] = useState<DateTime | null>(plan ? DateTime.fromJSDate(plan.start) : DateTime.now);\n const [endDateValue, setEndDateValue] = useState<DateTime | null>(plan && plan?.end !== null ? DateTime.fromJSDate(plan!.end) : null);\n\n const validationSchema = yup.object({\n description: yup\n .string()\n .required()\n .max(25, t('forms.maxLength', { chars: '25' }))\n .min(3, t('forms.minLength', { chars: '3' })),\n onlyLogging: yup\n .boolean(),\n goalEnergy: yup\n .number()\n .notRequired()\n .positive()\n .max(6000, t('forms.maxValue', { value: '6000kcal' })),\n goalProtein: yup\n .number()\n .notRequired()\n .positive()\n .max(500, t('forms.maxValue', { value: '500' })),\n goalCarbohydrates: yup\n .number()\n .notRequired()\n .positive() // TODO: allow 0 but not negative\n .max(750, t('forms.maxValue', { value: '750' })),\n goalFiber: yup\n .number()\n .notRequired()\n .positive()\n .max(500, t('forms.maxValue', { value: '500' })),\n goalFat: yup\n .number()\n .notRequired()\n .positive()\n .max(500, t('forms.maxValue', { value: '500' })),\n start: yup\n .date()\n .required(),\n end: yup\n .date()\n .nullable()\n .min(\n yup.ref('start'),\n t('forms.endBeforeStart')\n )\n });\n\n\n return (\n (<Formik\n initialValues={{\n description: plan ? plan.description : t('nutrition.plan'),\n\n start: dateToYYYYMMDD(new Date()),\n end: null,\n\n onlyLogging: plan ? plan.onlyLogging : true,\n goalEnergy: plan ? plan.goalEnergy : null,\n goalProtein: plan ? plan.goalProtein : null,\n goalCarbohydrates: plan ? plan.goalCarbohydrates : null,\n goalFiber: plan ? plan.goalFiber : null,\n goalFat: plan ? plan.goalFat : null,\n }}\n validationSchema={validationSchema}\n onSubmit={async (values) => {\n values.goalEnergy = values.goalEnergy ? values.goalEnergy : null;\n values.goalProtein = values.goalProtein ? values.goalProtein : null;\n values.goalCarbohydrates = values.goalCarbohydrates ? values.goalCarbohydrates : null;\n values.goalFiber = values.goalFiber ? values.goalFiber : null;\n values.goalFat = values.goalFat ? values.goalFat : null;\n\n if (!useGoals) {\n values.goalEnergy = null;\n values.goalProtein = null;\n values.goalCarbohydrates = null;\n values.goalFiber = null;\n values.goalFat = null;\n }\n\n\n const newPlan = new NutritionalPlan({\n\n start: new Date(values.start),\n end: values.end ? new Date(values.end) : null,\n\n description: values.description,\n onlyLogging: values.onlyLogging,\n goalEnergy: values.goalEnergy,\n goalProtein: values.goalProtein,\n goalCarbohydrates: values.goalCarbohydrates,\n goalFiber: values.goalFiber,\n goalFat: values.goalFat,\n });\n\n\n if (plan) {\n newPlan.id = plan.id!;\n editPlanQuery.mutate(newPlan);\n } else {\n addPlanQuery.mutate(newPlan);\n }\n\n // if closeFn is defined, close the modal (this form does not have to be displayed in one)\n if (closeFn) {\n closeFn();\n }\n }}\n >\n {formik => (\n <Form>\n <Stack spacing={2}>\n <TextField\n fullWidth\n id=\"description\"\n label={t('description')}\n error={formik.touched.description && Boolean(formik.errors.description)}\n // @ts-ignore - the description might come from t(), which might be undefined\n helperText={formik.touched.description && formik.errors.description}\n {...formik.getFieldProps('description')}\n />\n <Grid container spacing={1}>\n <Grid size={6}>\n <LocalizationProvider dateAdapter={AdapterLuxon} adapterLocale={i18n.language}>\n <DatePicker\n format=\"yyyy-MM-dd\"\n label={t('start')}\n value={startDateValue}\n slotProps={{\n textField: {\n variant: \"standard\",\n fullWidth: true,\n error: formik.touched.start && Boolean(formik.errors.start),\n helperText: formik.touched.start && formik.errors.start ? String(formik.errors.start) : ''\n }\n }}\n onChange={(newValue) => {\n if (newValue) {\n formik.setFieldValue('start', newValue.toJSDate());\n }\n setStartDateValue(newValue);\n }}\n\n />\n </LocalizationProvider>\n </Grid>\n\n <Grid size={6}>\n <LocalizationProvider dateAdapter={AdapterLuxon} adapterLocale={i18n.language}>\n <DatePicker\n format=\"yyyy-MM-dd\"\n label={t('end')}\n value={endDateValue}\n slotProps={{\n textField: {\n variant: \"standard\",\n fullWidth: true,\n error: formik.touched.end && Boolean(formik.errors.end),\n helperText: formik.touched.end && formik.errors.end ? String(formik.errors.end) : ''\n }\n }}\n onChange={(newValue) => {\n if (newValue) {\n formik.setFieldValue('end', newValue.toJSDate());\n }\n setEndDateValue(newValue);\n }}\n\n />\n </LocalizationProvider>\n </Grid>\n </Grid>\n\n <FormGroup>\n <FormControlLabel\n label={t('nutrition.onlyLoggingHelpText')}\n control={\n <Switch\n id=\"onlyLogging\"\n checked={formik.values.onlyLogging}\n {...formik.getFieldProps('onlyLogging')}\n />}\n />\n </FormGroup>\n {/*TODO: implement the options like in the mobile app */}\n {/*<FormControl fullWidth>*/}\n {/* <InputLabel id=\"demo-simple-select-label\">Goal Setting</InputLabel>*/}\n {/* <Select*/}\n {/* labelId=\"demo-simple-select-label\"*/}\n {/* id=\"demo-simple-select\"*/}\n {/* value={10}*/}\n {/* label=\"Goal setting\"*/}\n {/* onChange={() => {*/}\n {/* }}*/}\n {/* >*/}\n {/* <MenuItem value={10}>Based on my meals</MenuItem>*/}\n {/* <MenuItem value={20}>Set basic macros</MenuItem>*/}\n {/* <MenuItem value={30}>Set advanced macros</MenuItem>*/}\n {/* </Select>*/}\n {/*</FormControl>*/}\n <FormGroup>\n <FormControlLabel\n label={t('nutrition.useGoalsHelpText')}\n control={\n <Switch\n id=\"goalEnergy\"\n checked={useGoals}\n onChange={() => setUseGoals(!useGoals)}\n\n />}\n />\n </FormGroup>\n <FormHelperText>{t('nutrition.useGoalsHelpTextLong')}</FormHelperText>\n\n\n {useGoals && <>\n <TextField\n fullWidth\n id=\"energy\"\n label={t('nutrition.goalEnergy')}\n error={formik.touched.goalEnergy && Boolean(formik.errors.goalEnergy)}\n helperText={formik.touched.goalEnergy && formik.errors.goalEnergy}\n {...formik.getFieldProps('goalEnergy')}\n InputProps={{\n endAdornment: <InputAdornment position=\"end\">{t('nutrition.kcal')}</InputAdornment>\n }}\n />\n <Grid container spacing={1}>\n <Grid size={4}>\n <TextField\n id=\"protein\"\n fullWidth\n label={t('nutrition.goalProtein')}\n error={formik.touched.goalProtein && Boolean(formik.errors.goalProtein)}\n helperText={formik.touched.goalProtein && formik.errors.goalProtein}\n {...formik.getFieldProps('goalProtein')}\n InputProps={{\n startAdornment: <InputAdornment position=\"start\">\n {formik.values.goalProtein !== null && formik.values.goalProtein !== undefined\n ? t('nutrition.valueEnergyKcal', { value: formik.values.goalProtein * ENERGY_FACTOR.protein })\n : ''}\n </InputAdornment>,\n endAdornment: <InputAdornment position=\"end\">\n {t('nutrition.gramShort')}\n </InputAdornment>\n }}\n />\n </Grid>\n <Grid size={4}>\n <TextField\n id=\"carbohydrates\"\n fullWidth\n label={t('nutrition.goalCarbohydrates')}\n error={formik.touched.goalCarbohydrates && Boolean(formik.errors.goalCarbohydrates)}\n helperText={formik.touched.goalCarbohydrates && formik.errors.goalCarbohydrates}\n {...formik.getFieldProps('goalCarbohydrates')}\n InputProps={{\n startAdornment: <InputAdornment position=\"start\">\n {formik.values.goalCarbohydrates !== null && formik.values.goalCarbohydrates !== undefined\n ? t('nutrition.valueEnergyKcal', { value: formik.values.goalCarbohydrates * ENERGY_FACTOR.carbohydrates })\n : ''}\n </InputAdornment>,\n endAdornment:\n <InputAdornment\n position=\"end\">{t('nutrition.gramShort')}</InputAdornment>\n }}\n />\n </Grid>\n <Grid size={4}>\n <TextField\n id=\"fat\"\n fullWidth\n label={t('nutrition.goalFat')}\n error={formik.touched.goalFat && Boolean(formik.errors.goalFat)}\n helperText={formik.touched.goalFat && formik.errors.goalFat}\n {...formik.getFieldProps('goalFat')}\n InputProps={{\n startAdornment: <InputAdornment position=\"start\">\n {formik.values.goalFat !== null && formik.values.goalFat !== undefined\n ? t('nutrition.valueEnergyKcal', { value: formik.values.goalFat * ENERGY_FACTOR.fat })\n : ''}\n </InputAdornment>,\n endAdornment:\n <InputAdornment\n position=\"end\">{t('nutrition.gramShort')}</InputAdornment>\n }}\n />\n </Grid>\n </Grid>\n <Grid container spacing={1}>\n <Grid size={4}>\n <TextField\n id=\"fiber\"\n fullWidth\n label={t('nutrition.goalFiber')}\n error={formik.touched.goalFiber && Boolean(formik.errors.goalFiber)}\n helperText={formik.touched.goalFiber && formik.errors.goalFiber}\n {...formik.getFieldProps('goalFiber')}\n InputProps={{\n startAdornment: <InputAdornment position=\"start\">\n {t('nutrition.valueEnergyKcal', { value: 0 })}\n </InputAdornment>,\n endAdornment: <InputAdornment position=\"end\">\n {t('nutrition.gramShort')}\n </InputAdornment>\n }}\n />\n </Grid>\n </Grid>\n </>}\n\n <Stack direction=\"row\" justifyContent=\"end\" sx={{ mt: 2 }}>\n <Button color=\"primary\"\n variant=\"contained\"\n type=\"submit\"\n sx={{ mt: 2 }}>\n {t('submit')}\n </Button>\n </Stack>\n </Stack>\n </Form>\n )}\n </Formik>)\n );\n};\n","import ExpandLessIcon from \"@mui/icons-material/ExpandLess\";\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore';\nimport HistoryEduIcon from '@mui/icons-material/HistoryEdu';\nimport PhotoIcon from \"@mui/icons-material/Photo\";\nimport {\n Alert,\n Avatar,\n Button,\n Card,\n CardActions,\n CardContent,\n CardHeader,\n Collapse,\n IconButton,\n List,\n ListItem,\n ListItemAvatar,\n ListItemButton,\n ListItemIcon,\n ListItemText,\n Snackbar,\n} from '@mui/material';\nimport Tooltip from \"@mui/material/Tooltip\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { WgerModal } from \"components/Core/Modals/WgerModal\";\nimport { EmptyCard } from \"components/Dashboard/EmptyCard\";\nimport { Meal } from \"components/Nutrition/models/meal\";\nimport { MealItem } from \"components/Nutrition/models/mealItem\";\nimport { NutritionalPlan } from \"components/Nutrition/models/nutritionalPlan\";\nimport { useAddDiaryEntryQuery, useFetchLastNutritionalPlanQuery } from \"components/Nutrition/queries\";\nimport { NutritionalValuesDashboardChart } from \"components/Nutrition/widgets/charts/NutritionalValuesDashboardChart\";\nimport { NutritionDiaryEntryForm } from \"components/Nutrition/widgets/forms/NutritionDiaryEntryForm\";\nimport { PlanForm } from \"components/Nutrition/widgets/forms/PlanForm\";\nimport React, { useState } from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { SNACKBAR_AUTO_HIDE_DURATION } from \"utils/consts\";\nimport { dateTimeToLocaleHHMM } from \"utils/date\";\nimport { numberGramLocale } from \"utils/numbers\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\n\nexport const NutritionCard = () => {\n\n const [t] = useTranslation();\n const planQuery = useFetchLastNutritionalPlanQuery();\n\n if (planQuery.isLoading) {\n return <LoadingPlaceholder />;\n }\n\n return planQuery.data !== null\n ? <NutritionCardContent plan={planQuery.data!} />\n : <EmptyCard\n title={t('nutritionalPlan')}\n modalContent={<PlanForm />}\n modalTitle={t('add')}\n />;\n};\n\nfunction NutritionCardContent(props: { plan: NutritionalPlan }) {\n const [t, i18n] = useTranslation();\n\n const [openLogModal, setOpenLogModal] = React.useState(false);\n const handleOpenLogModal = () => setOpenLogModal(true);\n const handleCloseLogModal = () => setOpenLogModal(false);\n\n\n return <>\n <Card>\n <CardHeader\n title={t('nutritionalPlan')}\n subheader={props.plan.description}\n />\n <CardContent sx={{ height: \"500px\", overflow: \"auto\" }}>\n <NutritionalValuesDashboardChart\n percentage={props.plan.percentageValuesLoggedToday}\n planned={props.plan.plannedNutritionalValues}\n logged={props.plan.loggedNutritionalValuesToday}\n />\n <List>\n {props.plan.meals.map(meal =>\n <MealListItem meal={meal} planId={props.plan.id!} key={meal.id} />\n )}\n </List>\n </CardContent>\n <CardActions sx={{\n justifyContent: \"space-between\",\n alignItems: \"flex-start\",\n }}>\n <Button size=\"small\"\n href={makeLink(WgerLink.NUTRITION_DETAIL, i18n.language, { id: props.plan.id! })}>\n {t('seeDetails')}\n </Button>\n <Tooltip title={t('nutrition.logThisMealItem')}>\n <IconButton onClick={handleOpenLogModal}>\n <HistoryEduIcon />\n </IconButton>\n </Tooltip>\n </CardActions>\n </Card>\n <WgerModal title={t('nutrition.addNutritionalDiary')}\n isOpen={openLogModal}\n closeFn={handleCloseLogModal}>\n <NutritionDiaryEntryForm\n closeFn={handleCloseLogModal}\n planId={props.plan.id!}\n meals={props.plan.meals}\n />\n </WgerModal>\n </>;\n}\n\nconst MealListItem = (props: { meal: Meal, planId: number }) => {\n const [t, i18n] = useTranslation();\n const addDiaryEntryQuery = useAddDiaryEntryQuery(props.planId);\n\n const [expandView, setExpandView] = useState(false);\n const [openSnackbar, setOpenSnackbar] = React.useState(false);\n\n const handleToggleExpand = () => setExpandView(!expandView);\n\n const handleCloseSnackbar = (event?: React.SyntheticEvent | Event, reason?: string) => {\n if (reason === 'clickaway') {\n return;\n }\n setOpenSnackbar(false);\n };\n\n const handleAddDiaryEntry = (item: MealItem) => {\n addDiaryEntryQuery.mutate(item.diaryEntry(props.planId));\n setOpenSnackbar(true);\n };\n\n const primaryHeader = props.meal.name ? props.meal.name : dateTimeToLocaleHHMM(props.meal.time);\n const secondaryHeader = props.meal.name ? dateTimeToLocaleHHMM(props.meal.time) : null;\n\n return <>\n <ListItemButton onClick={handleToggleExpand} selected={expandView}>\n <ListItemIcon>\n {expandView ? <ExpandLessIcon /> : <ExpandMoreIcon />}\n </ListItemIcon>\n <ListItemText primary={primaryHeader} secondary={secondaryHeader} />\n\n </ListItemButton>\n <Collapse in={expandView} timeout=\"auto\" unmountOnExit>\n <List>\n {props.meal.items.map((item) =>\n <ListItem key={item.id} secondaryAction={\n <Tooltip title={t('nutrition.logThisMealItem')}>\n <IconButton edge=\"end\" onClick={() => handleAddDiaryEntry(item)}>\n <HistoryEduIcon />\n </IconButton>\n </Tooltip>\n }>\n <ListItemAvatar>\n <Avatar\n alt={item.ingredient?.name}\n src={item.ingredient?.image?.url}\n sx={{ width: 45, height: 45 }}\n >\n <PhotoIcon />\n </Avatar>\n </ListItemAvatar>\n <ListItemText\n primary={item.ingredient?.name}\n secondary={numberGramLocale(item.amount, i18n.language)}\n />\n </ListItem>\n )}\n </List>\n </Collapse>\n <Snackbar open={openSnackbar} autoHideDuration={SNACKBAR_AUTO_HIDE_DURATION} onClose={handleCloseSnackbar}>\n <Alert onClose={handleCloseSnackbar} severity=\"success\" sx={{ width: '100%' }}>\n {t('nutrition.diaryEntrySaved')}\n </Alert>\n </Snackbar>\n </>;\n};","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zM7 10h5v5H7z\"\n}), 'Today');","import { useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { Routine } from \"components/WorkoutRoutines/models/Routine\";\nimport {\n addRoutine,\n deleteRoutine,\n editRoutine,\n getActiveRoutine,\n getPrivateTemplatesShallow,\n getPublicTemplatesShallow,\n getRoutine,\n getRoutineLogData,\n getRoutines,\n getRoutinesShallow,\n getRoutineStatisticsData\n} from \"services\";\nimport { QueryKey, } from \"utils/consts\";\n\n\nexport function useRoutinesQuery() {\n return useQuery({\n queryKey: [QueryKey.ROUTINE_OVERVIEW],\n queryFn: getRoutines\n });\n}\n\nexport function useRoutineDetailQuery(id: number) {\n return useQuery({\n queryKey: [QueryKey.ROUTINE_DETAIL, id],\n queryFn: () => getRoutine(id)\n });\n}\n\nexport function useRoutineStatsQuery(id: number) {\n return useQuery({\n queryKey: [QueryKey.ROUTINE_STATS, id],\n queryFn: () => getRoutineStatisticsData(id)\n });\n}\n\nexport function useRoutineLogData(id: number) {\n return useQuery({\n queryKey: [QueryKey.ROUTINE_LOG_DATA, id],\n queryFn: () => getRoutineLogData(id)\n });\n}\n\n/*\n * Retrieves all routines\n *\n * Note: strictly only the routine data, no days or any other sub-objects\n */\nexport function useRoutinesShallowQuery() {\n return useQuery({\n queryKey: [QueryKey.ROUTINES_SHALLOW],\n queryFn: getRoutinesShallow\n });\n}\n\nexport function usePrivateRoutinesShallowQuery() {\n return useQuery({\n queryKey: [QueryKey.PRIVATE_TEMPLATES],\n queryFn: getPrivateTemplatesShallow\n });\n}\n\nexport function usePublicRoutinesShallowQuery() {\n return useQuery({\n queryKey: [QueryKey.PUBLIC_TEMPLATES],\n queryFn: getPublicTemplatesShallow\n });\n}\n\n/*\n * Retrieves all routines\n *\n * Note: strictly only the routine data, no days or any other sub-objects\n */\nexport function useActiveRoutineQuery() {\n return useQuery({\n queryKey: [QueryKey.ROUTINES_ACTIVE],\n queryFn: getActiveRoutine\n });\n}\n\n\nexport const useAddRoutineQuery = () => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (routine: Routine) => addRoutine(routine),\n onSuccess: () => queryClient.invalidateQueries(\n { queryKey: [QueryKey.ROUTINE_OVERVIEW] }\n ),\n });\n};\n\n\nexport const useEditRoutineQuery = (id: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (routine: Routine) => editRoutine(routine),\n onSuccess: () => {\n queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_OVERVIEW] });\n queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_DETAIL, id] });\n }\n });\n};\n\nexport const useDeleteRoutineQuery = (id: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: () => deleteRoutine(id),\n onSuccess: () => {\n queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_OVERVIEW] });\n queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_DETAIL, id] });\n }\n });\n};\n\n","import { useMutation, useQueryClient } from \"@tanstack/react-query\";\nimport {\n addMaxNrOfSetsConfig,\n addMaxRepetitionsConfig,\n addMaxRestConfig,\n addMaxRirConfig,\n addMaxWeightConfig,\n addNrOfSetsConfig,\n addRepetitionsConfig,\n addRestConfig,\n addRirConfig,\n addWeightConfig,\n deleteMaxNrOfSetsConfig,\n deleteMaxRepetitionsConfig,\n deleteMaxRestConfig,\n deleteMaxRirConfig,\n deleteMaxWeightConfig,\n deleteNrOfSetsConfig,\n deleteRepetitionsConfig,\n deleteRestConfig,\n deleteRirConfig,\n deleteWeightConfig,\n editMaxNrOfSetsConfig,\n editMaxRepetitionsConfig,\n editMaxRestConfig,\n editMaxRirConfig,\n editMaxWeightConfig,\n editNrOfSetsConfig,\n editRepetitionsConfig,\n editRestConfig,\n editRirConfig,\n editWeightConfig,\n processBaseConfigs\n} from \"services\";\nimport { AddBaseConfigParams, EditBaseConfigParams, ProcessBaseConfigsParams } from \"services/base_config\";\nimport { QueryKey, } from \"utils/consts\";\n\n\nexport const useProcessConfigsQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: {\n values?: ProcessBaseConfigsParams,\n maxValues?: ProcessBaseConfigsParams\n }) => processBaseConfigs(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n }\n )\n });\n};\n\n\n/*\n * Weight config\n */\nexport const useEditWeightConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: EditBaseConfigParams) => editWeightConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n }\n )\n });\n};\nexport const useAddWeightConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: AddBaseConfigParams) => addWeightConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useDeleteWeightConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteWeightConfig(id),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\n\n\n/*\n * Max Weight config\n */\nexport const useEditMaxWeightConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: EditBaseConfigParams) => editMaxWeightConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useAddMaxWeightConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: AddBaseConfigParams) => addMaxWeightConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useDeleteMaxWeightConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteMaxWeightConfig(id),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\n\n/*\n * Reps config\n */\nexport const useEditRepsConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: EditBaseConfigParams) => editRepetitionsConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useAddRepsConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: AddBaseConfigParams) => addRepetitionsConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useDeleteRepsConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteRepetitionsConfig(id),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\n\n/*\n * Max Reps config\n */\nexport const useEditMaxRepsConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: EditBaseConfigParams) => editMaxRepetitionsConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useAddMaxRepsConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: AddBaseConfigParams) => addMaxRepetitionsConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useDeleteMaxRepsConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteMaxRepetitionsConfig(id),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\n\n/*\n * Nr of Sets config\n */\nexport const useEditNrOfSetsConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: EditBaseConfigParams) => editNrOfSetsConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useAddNrOfSetsConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: AddBaseConfigParams) => addNrOfSetsConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useDeleteNrOfSetsConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteNrOfSetsConfig(id),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\n\n/*\n * Max Nr of Sets config\n */\nexport const useEditMaxNrOfSetsConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: EditBaseConfigParams) => editMaxNrOfSetsConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useAddMaxNrOfSetsConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: AddBaseConfigParams) => addMaxNrOfSetsConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useDeleteMaxNrOfSetsConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteMaxNrOfSetsConfig(id),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\n\n/*\n * RiR\n */\nexport const useEditRiRConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: EditBaseConfigParams) => editRirConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useAddRiRConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: AddBaseConfigParams) => addRirConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useDeleteRiRConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteRirConfig(id),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useEditMaxRiRConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: EditBaseConfigParams) => editMaxRirConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useAddMaxRiRConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: AddBaseConfigParams) => addMaxRirConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useDeleteMaxRiRConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteMaxRirConfig(id),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\n\n/*\n * Rest time config\n */\nexport const useEditRestConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: EditBaseConfigParams) => editRestConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useAddRestConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: AddBaseConfigParams) => addRestConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useDeleteRestConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteRestConfig(id),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\n\n/*\n * Max Rest time config\n */\nexport const useEditMaxRestConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: EditBaseConfigParams) => editMaxRestConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useAddMaxRestConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: AddBaseConfigParams) => addMaxRestConfig(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\nexport const useDeleteMaxRestConfigQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteMaxRestConfig(id),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.ROUTINE_DETAIL, routineId]\n })\n });\n};\n\n\n","import { useMutation, useQueryClient } from \"@tanstack/react-query\";\nimport { Day } from \"components/WorkoutRoutines/models/Day\";\nimport { addDay, deleteDay, editDay } from \"services\";\nimport { QueryKey, } from \"utils/consts\";\n\n\nexport const useEditDayQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (day: Day) => editDay(day),\n onSuccess: () => queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_DETAIL, routineId] })\n });\n};\n\nexport const useEditDayOrderQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (days: Day[]) => Promise.all(days.map(editDay)),\n onSuccess: () => queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_DETAIL, routineId] })\n });\n};\n\nexport const useAddDayQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (day: Day) => addDay(day),\n onSuccess: () => queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_DETAIL, routineId] })\n });\n};\n\n\nexport const useDeleteDayQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteDay(id),\n onSuccess: () => queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_DETAIL, routineId] })\n });\n};\n","import { useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { WorkoutLog } from \"components/WorkoutRoutines/models/WorkoutLog\";\nimport { addLogs, deleteLog, editLog, getRoutineLogs } from \"services\";\nimport { QueryKey } from \"utils/consts\";\n\nexport function useDeleteRoutineLogQuery(routineId: number) {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (logId: number) => deleteLog(logId),\n onSuccess: () => {\n queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_LOG_DATA, routineId] });\n queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_STATS, routineId] });\n }\n });\n}\n\n\nexport function useRoutineLogQuery(id: number, loadExercises: boolean = false, filter: object = {}) {\n return useQuery({\n queryKey: [QueryKey.ROUTINE_LOGS, id],\n queryFn: () => getRoutineLogs(id, { loadExercises: loadExercises, filtersetQuery: filter })\n });\n}\n\nexport function useEditRoutineLogQuery(routineId: number) {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (log: WorkoutLog) => editLog(log),\n onSuccess: () => {\n queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_LOGS, routineId] });\n queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_STATS, routineId] });\n }\n });\n}\n\nexport function useAddRoutineLogsQuery(routineId: number) {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (entries: any[]) => addLogs(entries),\n onSuccess: () => {\n queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_LOGS, routineId] });\n queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_STATS, routineId] });\n }\n });\n}\n","import { useMutation, useQueryClient } from \"@tanstack/react-query\";\nimport { SlotEntry } from \"components/WorkoutRoutines/models/SlotEntry\";\nimport { deleteSlotEntry, editSlotEntry } from \"services\";\nimport { addSlotEntry, AddSlotEntryParams } from \"services/slot_entry\";\nimport { QueryKey, } from \"utils/consts\";\n\n\nexport const useEditSlotEntryQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (slotEntry: SlotEntry) => editSlotEntry(slotEntry),\n onSuccess: () => queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_DETAIL, routineId] })\n });\n};\n\nexport const useAddSlotEntryQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: AddSlotEntryParams) => addSlotEntry(data),\n onSuccess: () => queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_DETAIL, routineId] })\n });\n};\n\nexport const useDeleteSlotEntryQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (slotId: number) => deleteSlotEntry(slotId),\n onSuccess: () => queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_DETAIL, routineId] })\n });\n};\n","import { useQuery } from \"@tanstack/react-query\";\nimport { getRoutineRepUnits, getRoutineWeightUnits } from \"services\";\nimport { QueryKey, } from \"utils/consts\";\n\n\nexport const useFetchRoutineWeighUnitsQuery = () => useQuery({\n queryKey: [QueryKey.ROUTINE_WEIGHT_UNITS],\n queryFn: getRoutineWeightUnits\n});\n\nexport const useFetchRoutineRepUnitsQuery = () => useQuery({\n queryKey: [QueryKey.ROUTINE_REP_UNITS],\n queryFn: getRoutineRepUnits\n});\n\n","import { useMutation, useQueryClient } from \"@tanstack/react-query\";\nimport { Slot } from \"components/WorkoutRoutines/models/Slot\";\nimport { addSlot, deleteSlot, editSlot } from \"services\";\nimport { QueryKey, } from \"utils/consts\";\n\n\nexport const useAddSlotQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (slot: Slot) => addSlot(slot),\n onSuccess: () => queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_DETAIL, routineId] })\n });\n};\n\nexport const useEditSlotQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (slot: Slot) => editSlot(slot),\n onSuccess: () => queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_DETAIL, routineId] })\n });\n};\nexport const useEditSlotsQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (slots: Slot[]) => Promise.all(slots.map(editSlot)),\n onSuccess: () => queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_DETAIL, routineId] })\n });\n};\n\nexport const useDeleteSlotQuery = (routineId: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (slotId: number) => deleteSlot(slotId),\n onSuccess: () => queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_DETAIL, routineId] })\n });\n};\n","import { useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { AddSessionParams, EditSessionParams } from \"components/WorkoutRoutines/models/WorkoutSession\";\nimport { addSession, editSession, getSessions, searchSession } from \"services\";\nimport { SessionQueryOptions } from \"services/session\";\nimport { QueryKey, } from \"utils/consts\";\n\n\nexport const useFindSessionQuery = (routineId: number, queryParams: Record<string, any>) => useQuery({\n queryFn: () => searchSession(queryParams),\n queryKey: [QueryKey.SESSION_SEARCH, routineId, JSON.stringify(queryParams)],\n});\n\nexport const useAddSessionQuery = () => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: AddSessionParams) => addSession(data),\n onSuccess: () => queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_OVERVIEW] }),\n });\n};\n\nexport const useSessionsQuery = (options?: SessionQueryOptions) => useQuery({\n queryFn: () => getSessions(options),\n queryKey: [QueryKey.SESSIONS_FULL, JSON.stringify(options || {})],\n});\n\n\nexport const useEditSessionQuery = (id: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: EditSessionParams) => editSession(data),\n onSuccess: () => {\n queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_OVERVIEW] });\n queryClient.invalidateQueries({ queryKey: [QueryKey.ROUTINE_DETAIL, id] });\n }\n });\n};\n\n\n","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z\"\n}), 'Add');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11h-4v4h-2v-4H7v-2h4V7h2v4h4z\"\n}), 'AddCircle');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M22 5v2h-3v3h-2V7h-3V5h3V2h2v3zm-3 14H5V5h6V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6h-2zm-4-6v4h2v-4zm-4 4h2V9h-2zm-2 0v-6H7v6z\"\n}), 'Addchart');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"m7 10 5 5 5-5z\"\n}), 'ArrowDropDown');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"m7 14 5-5 5 5z\"\n}), 'ArrowDropUp');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z\"\n}), 'ArrowForwardIos');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z\"\n}), 'BarChart');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z\"\n}), 'Cached');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z\"\n}), 'CalendarMonth');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon([/*#__PURE__*/_jsx(\"circle\", {\n cx: \"12\",\n cy: \"12\",\n r: \"3.2\"\n}, \"0\"), /*#__PURE__*/_jsx(\"path\", {\n d: \"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5\"\n}, \"1\")], 'CameraAlt');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z\"\n}), 'Cancel');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z\"\n}), 'CheckBox');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2\"\n}), 'CheckBoxOutlineBlank');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z\"\n}), 'ChevronLeft');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"\n}), 'ChevronRight');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n}), 'Clear');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2m-11-4 2.03 2.71L16 11l4 5H8zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6z\"\n}), 'Collections');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z\"\n}), 'ContentCopy');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z\"\n}), 'Delete');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z\"\n}), 'DeleteOutline');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z\"\n}), 'DeleteOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2\"\n}), 'DragIndicator');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z\"\n}), 'Edit');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"m12.126 8.125 1.937-1.937 3.747 3.747-1.937 1.938zM20.71 5.63l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75L20.71 7a1 1 0 0 0 0-1.37M2 5l6.63 6.63L3 17.25V21h3.75l5.63-5.62L18 21l2-2L4 3z\"\n}), 'EditOff');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61\"\n}), 'FilterAlt');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m6 13h-5l-1-2H9.5v5H8V7h6l1 2h3z\"\n}), 'FlagCircle');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4\"\n}), 'HelpOutline');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z\"\n}), 'Info');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8\"\n}), 'InfoOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"m14 6-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22z\"\n}), 'Landscape');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"m14 6-4.22 5.63 1.25 1.67L14 9.33 19 16h-8.46l-4.01-5.37L1 18h22zM5 16l1.52-2.03L8.04 16z\"\n}), 'LandscapeOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon([/*#__PURE__*/_jsx(\"path\", {\n d: \"M5 16h3.04l-1.52-2.03z\",\n opacity: \".3\"\n}, \"0\"), /*#__PURE__*/_jsx(\"path\", {\n d: \"m9.78 11.63 1.25 1.67L14 9.33 19 16h-8.46l-4.01-5.37L1 18h22L14 6zM5 16l1.52-2.03L8.04 16z\"\n}, \"1\")], 'LandscapeTwoTone');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z\"\n}), 'Menu');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2\"\n}), 'MoreHoriz');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2\"\n}), 'MoreVert');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"\n}), 'NavigateNext');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z\"\n}), 'NorthEast');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon([/*#__PURE__*/_jsx(\"circle\", {\n cx: \"12\",\n cy: \"12\",\n r: \"3.2\"\n}, \"0\"), /*#__PURE__*/_jsx(\"path\", {\n d: \"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5\"\n}, \"1\")], 'PhotoCamera');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z\"\n}), 'Redo');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z\"\n}), 'Save');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon([/*#__PURE__*/_jsx(\"path\", {\n d: \"M9 15.5h6v1H9z\"\n}, \"0\"), /*#__PURE__*/_jsx(\"circle\", {\n cx: \"15.5\",\n cy: \"9.5\",\n r: \"1.5\"\n}, \"1\"), /*#__PURE__*/_jsx(\"circle\", {\n cx: \"8.5\",\n cy: \"9.5\",\n r: \"1.5\"\n}, \"2\"), /*#__PURE__*/_jsx(\"path\", {\n d: \"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8\"\n}, \"3\")], 'SentimentNeutral');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon([/*#__PURE__*/_jsx(\"circle\", {\n cx: \"15.5\",\n cy: \"9.5\",\n r: \"1.5\"\n}, \"0\"), /*#__PURE__*/_jsx(\"circle\", {\n cx: \"8.5\",\n cy: \"9.5\",\n r: \"1.5\"\n}, \"1\"), /*#__PURE__*/_jsx(\"circle\", {\n cx: \"15.5\",\n cy: \"9.5\",\n r: \"1.5\"\n}, \"2\"), /*#__PURE__*/_jsx(\"circle\", {\n cx: \"8.5\",\n cy: \"9.5\",\n r: \"1.5\"\n}, \"3\"), /*#__PURE__*/_jsx(\"path\", {\n d: \"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m0-2.5c2.33 0 4.32-1.45 5.12-3.5h-1.67c-.69 1.19-1.97 2-3.45 2s-2.75-.81-3.45-2H6.88c.8 2.05 2.79 3.5 5.12 3.5\"\n}, \"4\")], 'SentimentSatisfiedAlt');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon([/*#__PURE__*/_jsx(\"circle\", {\n cx: \"15.5\",\n cy: \"9.5\",\n r: \"1.5\"\n}, \"0\"), /*#__PURE__*/_jsx(\"circle\", {\n cx: \"8.5\",\n cy: \"9.5\",\n r: \"1.5\"\n}, \"1\"), /*#__PURE__*/_jsx(\"path\", {\n d: \"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m0-6c-2.33 0-4.32 1.45-5.12 3.5h1.67c.69-1.19 1.97-2 3.45-2s2.75.81 3.45 2h1.67c-.8-2.05-2.79-3.5-5.12-3.5\"\n}, \"2\")], 'SentimentVeryDissatisfied');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6\"\n}), 'Settings');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 9h-2v6.59L5.41 4 4 5.41 15.59 17H9v2h10z\"\n}), 'SouthEast');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M21 5.47 12 12 7.62 7.62 3 11V8.52L7.83 5l4.38 4.38L21 3zM21 15h-4.7l-4.17 3.34L6 12.41l-3 2.13V17l2.8-2 6.2 6 5-4h4z\"\n}), 'SsidChart');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M6.99 11 3 15l3.99 4v-3H14v-2H6.99zM21 9l-3.99-4v3H10v2h7.01v3z\"\n}), 'SwapHoriz');","import { Alert, Box, Stack } from \"@mui/material\";\n\nimport { UseQueryResult } from \"@tanstack/react-query\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport React, { JSX } from \"react\";\n\n\nexport const RenderLoadingQuery = (props: { query: UseQueryResult, child: JSX.Element | boolean }) => {\n\n if (props.query.isLoading) {\n return <LoadingPlaceholder />;\n }\n\n if (props.query.isError) {\n return <Box\n sx={{ height: 200, alignItems: \"center\", mt: 2 }}\n component={Stack}\n direction=\"column\"\n justifyContent=\"center\">\n {/*// @ts-ignore */}\n <Alert severity=\"error\">Error while fetching data: {props.query.error!.message}</Alert>\n </Box>;\n }\n\n if (props.query.isSuccess) {\n return props.child;\n }\n};","import PhotoIcon from \"@mui/icons-material/Photo\";\nimport { Avatar } from \"@mui/material\";\nimport { ExerciseImage } from \"components/Exercises/models/image\";\nimport React from \"react\";\n\nexport const ExerciseImageAvatar = (props: {\n image: ExerciseImage | undefined,\n iconSize?: number | undefined,\n avatarSize?: number | undefined,\n}) => {\n const avatarSize = props.avatarSize || 40;\n const iconSize = props.iconSize || 40;\n\n return <Avatar\n sx={{ height: avatarSize, width: avatarSize, flexShrink: 0 }}\n src={props.image?.url}\n >\n <PhotoIcon sx={{ height: iconSize, width: iconSize }} />\n </Avatar>;\n};","import { useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { addFullExercise, getExercise, getExercises } from \"services\";\nimport { AddExerciseFullProps } from \"services/exercise\";\nimport { QueryKey } from \"utils/consts\";\n\nexport function useExercisesQuery() {\n return useQuery({\n queryKey: [QueryKey.EXERCISES],\n queryFn: getExercises\n });\n}\n\nexport function useExerciseQuery(id: number) {\n return useQuery({\n queryKey: [QueryKey.EXERCISE_DETAIL, id],\n queryFn: () => getExercise(id)\n });\n}\n\nexport function useAddExerciseFullQuery() {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: AddExerciseFullProps) => addFullExercise(data),\n onSuccess: () => {\n queryClient.invalidateQueries({ queryKey: [QueryKey.EXERCISES] });\n }\n });\n}\n","import { useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport {\n addTranslation,\n editTranslation,\n getCategories,\n getEquipment,\n getLanguages,\n getMuscles,\n postExerciseImage\n} from \"services\";\nimport { AddTranslationParams, EditTranslationParams } from \"services/exerciseTranslation\";\nimport { deleteExerciseImage, PostExerciseImageParams } from \"services/image\";\nimport { QueryKey } from \"utils/consts\";\n\nexport { useExercisesQuery, useExerciseQuery, useAddExerciseFullQuery } from \"./exercises\";\n\n\nexport function useAddTranslationQuery(exerciseId: number) {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: AddTranslationParams) => addTranslation(data),\n onSuccess: () => {\n queryClient.invalidateQueries({ queryKey: [QueryKey.EXERCISES] });\n queryClient.invalidateQueries({ queryKey: [QueryKey.EXERCISE_DETAIL, exerciseId] });\n }\n });\n}\n\nexport function useEditTranslationQuery(exerciseId: number) {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: EditTranslationParams) => editTranslation(data),\n onSuccess: () => {\n queryClient.invalidateQueries({ queryKey: [QueryKey.EXERCISES] });\n queryClient.invalidateQueries({ queryKey: [QueryKey.EXERCISE_DETAIL, exerciseId] });\n }\n });\n}\n\nexport function useDeleteExerciseImageQuery(exerciseId: number) {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteExerciseImage(id),\n onSuccess: () => {\n queryClient.invalidateQueries({ queryKey: [QueryKey.EXERCISES] });\n queryClient.invalidateQueries({ queryKey: [QueryKey.EXERCISE_DETAIL, exerciseId] });\n }\n });\n}\n\nexport function useAddExerciseImageQuery(exerciseId: number) {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: PostExerciseImageParams) => postExerciseImage(data),\n onSuccess: () => {\n queryClient.invalidateQueries({ queryKey: [QueryKey.EXERCISES] });\n queryClient.invalidateQueries({ queryKey: [QueryKey.EXERCISE_DETAIL, exerciseId] });\n }\n });\n}\n\n\nexport function useCategoriesQuery() {\n return useQuery({\n queryKey: [QueryKey.CATEGORIES],\n queryFn: getCategories\n });\n}\n\nexport function useMusclesQuery() {\n return useQuery({\n queryKey: [QueryKey.MUSCLES],\n queryFn: getMuscles\n });\n}\n\nexport function useEquipmentQuery() {\n return useQuery({\n queryKey: [QueryKey.EQUIPMENT],\n queryFn: getEquipment\n });\n}\n\nexport function useLanguageQuery() {\n return useQuery({\n queryKey: [QueryKey.LANGUAGES],\n queryFn: getLanguages\n });\n}\n\nexport function useNotesQuery(translationId: number) {\n return useQuery({\n queryKey: [QueryKey.LANGUAGES, translationId],\n queryFn: getLanguages\n });\n}\n","/**\n * react-router v7.9.1\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nvar __typeError = (msg) => {\n throw TypeError(msg);\n};\nvar __accessCheck = (obj, member, msg) => member.has(obj) || __typeError(\"Cannot \" + msg);\nvar __privateGet = (obj, member, getter) => (__accessCheck(obj, member, \"read from private field\"), getter ? getter.call(obj) : member.get(obj));\nvar __privateAdd = (obj, member, value) => member.has(obj) ? __typeError(\"Cannot add the same private member more than once\") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);\n\n// lib/router/history.ts\nvar Action = /* @__PURE__ */ ((Action2) => {\n Action2[\"Pop\"] = \"POP\";\n Action2[\"Push\"] = \"PUSH\";\n Action2[\"Replace\"] = \"REPLACE\";\n return Action2;\n})(Action || {});\nvar PopStateEventType = \"popstate\";\nfunction createMemoryHistory(options = {}) {\n let { initialEntries = [\"/\"], initialIndex, v5Compat = false } = options;\n let entries;\n entries = initialEntries.map(\n (entry, index2) => createMemoryLocation(\n entry,\n typeof entry === \"string\" ? null : entry.state,\n index2 === 0 ? \"default\" : void 0\n )\n );\n let index = clampIndex(\n initialIndex == null ? entries.length - 1 : initialIndex\n );\n let action = \"POP\" /* Pop */;\n let listener = null;\n function clampIndex(n) {\n return Math.min(Math.max(n, 0), entries.length - 1);\n }\n function getCurrentLocation() {\n return entries[index];\n }\n function createMemoryLocation(to, state = null, key) {\n let location = createLocation(\n entries ? getCurrentLocation().pathname : \"/\",\n to,\n state,\n key\n );\n warning(\n location.pathname.charAt(0) === \"/\",\n `relative pathnames are not supported in memory history: ${JSON.stringify(\n to\n )}`\n );\n return location;\n }\n function createHref2(to) {\n return typeof to === \"string\" ? to : createPath(to);\n }\n let history = {\n get index() {\n return index;\n },\n get action() {\n return action;\n },\n get location() {\n return getCurrentLocation();\n },\n createHref: createHref2,\n createURL(to) {\n return new URL(createHref2(to), \"http://localhost\");\n },\n encodeLocation(to) {\n let path = typeof to === \"string\" ? parsePath(to) : to;\n return {\n pathname: path.pathname || \"\",\n search: path.search || \"\",\n hash: path.hash || \"\"\n };\n },\n push(to, state) {\n action = \"PUSH\" /* Push */;\n let nextLocation = createMemoryLocation(to, state);\n index += 1;\n entries.splice(index, entries.length, nextLocation);\n if (v5Compat && listener) {\n listener({ action, location: nextLocation, delta: 1 });\n }\n },\n replace(to, state) {\n action = \"REPLACE\" /* Replace */;\n let nextLocation = createMemoryLocation(to, state);\n entries[index] = nextLocation;\n if (v5Compat && listener) {\n listener({ action, location: nextLocation, delta: 0 });\n }\n },\n go(delta) {\n action = \"POP\" /* Pop */;\n let nextIndex = clampIndex(index + delta);\n let nextLocation = entries[nextIndex];\n index = nextIndex;\n if (listener) {\n listener({ action, location: nextLocation, delta });\n }\n },\n listen(fn) {\n listener = fn;\n return () => {\n listener = null;\n };\n }\n };\n return history;\n}\nfunction createBrowserHistory(options = {}) {\n function createBrowserLocation(window2, globalHistory) {\n let { pathname, search, hash } = window2.location;\n return createLocation(\n \"\",\n { pathname, search, hash },\n // state defaults to `null` because `window.history.state` does\n globalHistory.state && globalHistory.state.usr || null,\n globalHistory.state && globalHistory.state.key || \"default\"\n );\n }\n function createBrowserHref(window2, to) {\n return typeof to === \"string\" ? to : createPath(to);\n }\n return getUrlBasedHistory(\n createBrowserLocation,\n createBrowserHref,\n null,\n options\n );\n}\nfunction createHashHistory(options = {}) {\n function createHashLocation(window2, globalHistory) {\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\"\n } = parsePath(window2.location.hash.substring(1));\n if (!pathname.startsWith(\"/\") && !pathname.startsWith(\".\")) {\n pathname = \"/\" + pathname;\n }\n return createLocation(\n \"\",\n { pathname, search, hash },\n // state defaults to `null` because `window.history.state` does\n globalHistory.state && globalHistory.state.usr || null,\n globalHistory.state && globalHistory.state.key || \"default\"\n );\n }\n function createHashHref(window2, to) {\n let base = window2.document.querySelector(\"base\");\n let href = \"\";\n if (base && base.getAttribute(\"href\")) {\n let url = window2.location.href;\n let hashIndex = url.indexOf(\"#\");\n href = hashIndex === -1 ? url : url.slice(0, hashIndex);\n }\n return href + \"#\" + (typeof to === \"string\" ? to : createPath(to));\n }\n function validateHashLocation(location, to) {\n warning(\n location.pathname.charAt(0) === \"/\",\n `relative pathnames are not supported in hash history.push(${JSON.stringify(\n to\n )})`\n );\n }\n return getUrlBasedHistory(\n createHashLocation,\n createHashHref,\n validateHashLocation,\n options\n );\n}\nfunction invariant(value, message) {\n if (value === false || value === null || typeof value === \"undefined\") {\n throw new Error(message);\n }\n}\nfunction warning(cond, message) {\n if (!cond) {\n if (typeof console !== \"undefined\") console.warn(message);\n try {\n throw new Error(message);\n } catch (e) {\n }\n }\n}\nfunction createKey() {\n return Math.random().toString(36).substring(2, 10);\n}\nfunction getHistoryState(location, index) {\n return {\n usr: location.state,\n key: location.key,\n idx: index\n };\n}\nfunction createLocation(current, to, state = null, key) {\n let location = {\n pathname: typeof current === \"string\" ? current : current.pathname,\n search: \"\",\n hash: \"\",\n ...typeof to === \"string\" ? parsePath(to) : to,\n state,\n // TODO: This could be cleaned up. push/replace should probably just take\n // full Locations now and avoid the need to run through this flow at all\n // But that's a pretty big refactor to the current test suite so going to\n // keep as is for the time being and just let any incoming keys take precedence\n key: to && to.key || key || createKey()\n };\n return location;\n}\nfunction createPath({\n pathname = \"/\",\n search = \"\",\n hash = \"\"\n}) {\n if (search && search !== \"?\")\n pathname += search.charAt(0) === \"?\" ? search : \"?\" + search;\n if (hash && hash !== \"#\")\n pathname += hash.charAt(0) === \"#\" ? hash : \"#\" + hash;\n return pathname;\n}\nfunction parsePath(path) {\n let parsedPath = {};\n if (path) {\n let hashIndex = path.indexOf(\"#\");\n if (hashIndex >= 0) {\n parsedPath.hash = path.substring(hashIndex);\n path = path.substring(0, hashIndex);\n }\n let searchIndex = path.indexOf(\"?\");\n if (searchIndex >= 0) {\n parsedPath.search = path.substring(searchIndex);\n path = path.substring(0, searchIndex);\n }\n if (path) {\n parsedPath.pathname = path;\n }\n }\n return parsedPath;\n}\nfunction getUrlBasedHistory(getLocation, createHref2, validateLocation, options = {}) {\n let { window: window2 = document.defaultView, v5Compat = false } = options;\n let globalHistory = window2.history;\n let action = \"POP\" /* Pop */;\n let listener = null;\n let index = getIndex();\n if (index == null) {\n index = 0;\n globalHistory.replaceState({ ...globalHistory.state, idx: index }, \"\");\n }\n function getIndex() {\n let state = globalHistory.state || { idx: null };\n return state.idx;\n }\n function handlePop() {\n action = \"POP\" /* Pop */;\n let nextIndex = getIndex();\n let delta = nextIndex == null ? null : nextIndex - index;\n index = nextIndex;\n if (listener) {\n listener({ action, location: history.location, delta });\n }\n }\n function push(to, state) {\n action = \"PUSH\" /* Push */;\n let location = createLocation(history.location, to, state);\n if (validateLocation) validateLocation(location, to);\n index = getIndex() + 1;\n let historyState = getHistoryState(location, index);\n let url = history.createHref(location);\n try {\n globalHistory.pushState(historyState, \"\", url);\n } catch (error) {\n if (error instanceof DOMException && error.name === \"DataCloneError\") {\n throw error;\n }\n window2.location.assign(url);\n }\n if (v5Compat && listener) {\n listener({ action, location: history.location, delta: 1 });\n }\n }\n function replace2(to, state) {\n action = \"REPLACE\" /* Replace */;\n let location = createLocation(history.location, to, state);\n if (validateLocation) validateLocation(location, to);\n index = getIndex();\n let historyState = getHistoryState(location, index);\n let url = history.createHref(location);\n globalHistory.replaceState(historyState, \"\", url);\n if (v5Compat && listener) {\n listener({ action, location: history.location, delta: 0 });\n }\n }\n function createURL(to) {\n return createBrowserURLImpl(to);\n }\n let history = {\n get action() {\n return action;\n },\n get location() {\n return getLocation(window2, globalHistory);\n },\n listen(fn) {\n if (listener) {\n throw new Error(\"A history only accepts one active listener\");\n }\n window2.addEventListener(PopStateEventType, handlePop);\n listener = fn;\n return () => {\n window2.removeEventListener(PopStateEventType, handlePop);\n listener = null;\n };\n },\n createHref(to) {\n return createHref2(window2, to);\n },\n createURL,\n encodeLocation(to) {\n let url = createURL(to);\n return {\n pathname: url.pathname,\n search: url.search,\n hash: url.hash\n };\n },\n push,\n replace: replace2,\n go(n) {\n return globalHistory.go(n);\n }\n };\n return history;\n}\nfunction createBrowserURLImpl(to, isAbsolute = false) {\n let base = \"http://localhost\";\n if (typeof window !== \"undefined\") {\n base = window.location.origin !== \"null\" ? window.location.origin : window.location.href;\n }\n invariant(base, \"No window.location.(origin|href) available to create URL\");\n let href = typeof to === \"string\" ? to : createPath(to);\n href = href.replace(/ $/, \"%20\");\n if (!isAbsolute && href.startsWith(\"//\")) {\n href = base + href;\n }\n return new URL(href, base);\n}\n\n// lib/router/utils.ts\nfunction createContext(defaultValue) {\n return { defaultValue };\n}\nvar _map;\nvar RouterContextProvider = class {\n /**\n * Create a new `RouterContextProvider` instance\n * @param init An optional initial context map to populate the provider with\n */\n constructor(init) {\n __privateAdd(this, _map, /* @__PURE__ */ new Map());\n if (init) {\n for (let [context, value] of init) {\n this.set(context, value);\n }\n }\n }\n /**\n * Access a value from the context. If no value has been set for the context,\n * it will return the context's `defaultValue` if provided, or throw an error\n * if no `defaultValue` was set.\n * @param context The context to get the value for\n * @returns The value for the context, or the context's `defaultValue` if no\n * value was set\n */\n get(context) {\n if (__privateGet(this, _map).has(context)) {\n return __privateGet(this, _map).get(context);\n }\n if (context.defaultValue !== void 0) {\n return context.defaultValue;\n }\n throw new Error(\"No value found for context\");\n }\n /**\n * Set a value for the context. If the context already has a value set, this\n * will overwrite it.\n *\n * @param context The context to set the value for\n * @param value The value to set for the context\n * @returns {void}\n */\n set(context, value) {\n __privateGet(this, _map).set(context, value);\n }\n};\n_map = new WeakMap();\nvar unsupportedLazyRouteObjectKeys = /* @__PURE__ */ new Set([\n \"lazy\",\n \"caseSensitive\",\n \"path\",\n \"id\",\n \"index\",\n \"children\"\n]);\nfunction isUnsupportedLazyRouteObjectKey(key) {\n return unsupportedLazyRouteObjectKeys.has(\n key\n );\n}\nvar unsupportedLazyRouteFunctionKeys = /* @__PURE__ */ new Set([\n \"lazy\",\n \"caseSensitive\",\n \"path\",\n \"id\",\n \"index\",\n \"middleware\",\n \"children\"\n]);\nfunction isUnsupportedLazyRouteFunctionKey(key) {\n return unsupportedLazyRouteFunctionKeys.has(\n key\n );\n}\nfunction isIndexRoute(route) {\n return route.index === true;\n}\nfunction convertRoutesToDataRoutes(routes, mapRouteProperties2, parentPath = [], manifest = {}, allowInPlaceMutations = false) {\n return routes.map((route, index) => {\n let treePath = [...parentPath, String(index)];\n let id = typeof route.id === \"string\" ? route.id : treePath.join(\"-\");\n invariant(\n route.index !== true || !route.children,\n `Cannot specify children on an index route`\n );\n invariant(\n allowInPlaceMutations || !manifest[id],\n `Found a route id collision on id \"${id}\". Route id's must be globally unique within Data Router usages`\n );\n if (isIndexRoute(route)) {\n let indexRoute = {\n ...route,\n ...mapRouteProperties2(route),\n id\n };\n manifest[id] = indexRoute;\n return indexRoute;\n } else {\n let pathOrLayoutRoute = {\n ...route,\n ...mapRouteProperties2(route),\n id,\n children: void 0\n };\n manifest[id] = pathOrLayoutRoute;\n if (route.children) {\n pathOrLayoutRoute.children = convertRoutesToDataRoutes(\n route.children,\n mapRouteProperties2,\n treePath,\n manifest,\n allowInPlaceMutations\n );\n }\n return pathOrLayoutRoute;\n }\n });\n}\nfunction matchRoutes(routes, locationArg, basename = \"/\") {\n return matchRoutesImpl(routes, locationArg, basename, false);\n}\nfunction matchRoutesImpl(routes, locationArg, basename, allowPartial) {\n let location = typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n let pathname = stripBasename(location.pathname || \"/\", basename);\n if (pathname == null) {\n return null;\n }\n let branches = flattenRoutes(routes);\n rankRouteBranches(branches);\n let matches = null;\n for (let i = 0; matches == null && i < branches.length; ++i) {\n let decoded = decodePath(pathname);\n matches = matchRouteBranch(\n branches[i],\n decoded,\n allowPartial\n );\n }\n return matches;\n}\nfunction convertRouteMatchToUiMatch(match, loaderData) {\n let { route, pathname, params } = match;\n return {\n id: route.id,\n pathname,\n params,\n data: loaderData[route.id],\n loaderData: loaderData[route.id],\n handle: route.handle\n };\n}\nfunction flattenRoutes(routes, branches = [], parentsMeta = [], parentPath = \"\", _hasParentOptionalSegments = false) {\n let flattenRoute = (route, index, hasParentOptionalSegments = _hasParentOptionalSegments, relativePath) => {\n let meta = {\n relativePath: relativePath === void 0 ? route.path || \"\" : relativePath,\n caseSensitive: route.caseSensitive === true,\n childrenIndex: index,\n route\n };\n if (meta.relativePath.startsWith(\"/\")) {\n if (!meta.relativePath.startsWith(parentPath) && hasParentOptionalSegments) {\n return;\n }\n invariant(\n meta.relativePath.startsWith(parentPath),\n `Absolute route path \"${meta.relativePath}\" nested under path \"${parentPath}\" is not valid. An absolute child route path must start with the combined path of all its parent routes.`\n );\n meta.relativePath = meta.relativePath.slice(parentPath.length);\n }\n let path = joinPaths([parentPath, meta.relativePath]);\n let routesMeta = parentsMeta.concat(meta);\n if (route.children && route.children.length > 0) {\n invariant(\n // Our types know better, but runtime JS may not!\n // @ts-expect-error\n route.index !== true,\n `Index routes must not have child routes. Please remove all child routes from route path \"${path}\".`\n );\n flattenRoutes(\n route.children,\n branches,\n routesMeta,\n path,\n hasParentOptionalSegments\n );\n }\n if (route.path == null && !route.index) {\n return;\n }\n branches.push({\n path,\n score: computeScore(path, route.index),\n routesMeta\n });\n };\n routes.forEach((route, index) => {\n if (route.path === \"\" || !route.path?.includes(\"?\")) {\n flattenRoute(route, index);\n } else {\n for (let exploded of explodeOptionalSegments(route.path)) {\n flattenRoute(route, index, true, exploded);\n }\n }\n });\n return branches;\n}\nfunction explodeOptionalSegments(path) {\n let segments = path.split(\"/\");\n if (segments.length === 0) return [];\n let [first, ...rest] = segments;\n let isOptional = first.endsWith(\"?\");\n let required = first.replace(/\\?$/, \"\");\n if (rest.length === 0) {\n return isOptional ? [required, \"\"] : [required];\n }\n let restExploded = explodeOptionalSegments(rest.join(\"/\"));\n let result = [];\n result.push(\n ...restExploded.map(\n (subpath) => subpath === \"\" ? required : [required, subpath].join(\"/\")\n )\n );\n if (isOptional) {\n result.push(...restExploded);\n }\n return result.map(\n (exploded) => path.startsWith(\"/\") && exploded === \"\" ? \"/\" : exploded\n );\n}\nfunction rankRouteBranches(branches) {\n branches.sort(\n (a, b) => a.score !== b.score ? b.score - a.score : compareIndexes(\n a.routesMeta.map((meta) => meta.childrenIndex),\n b.routesMeta.map((meta) => meta.childrenIndex)\n )\n );\n}\nvar paramRe = /^:[\\w-]+$/;\nvar dynamicSegmentValue = 3;\nvar indexRouteValue = 2;\nvar emptySegmentValue = 1;\nvar staticSegmentValue = 10;\nvar splatPenalty = -2;\nvar isSplat = (s) => s === \"*\";\nfunction computeScore(path, index) {\n let segments = path.split(\"/\");\n let initialScore = segments.length;\n if (segments.some(isSplat)) {\n initialScore += splatPenalty;\n }\n if (index) {\n initialScore += indexRouteValue;\n }\n return segments.filter((s) => !isSplat(s)).reduce(\n (score, segment) => score + (paramRe.test(segment) ? dynamicSegmentValue : segment === \"\" ? emptySegmentValue : staticSegmentValue),\n initialScore\n );\n}\nfunction compareIndexes(a, b) {\n let siblings = a.length === b.length && a.slice(0, -1).every((n, i) => n === b[i]);\n return siblings ? (\n // If two routes are siblings, we should try to match the earlier sibling\n // first. This allows people to have fine-grained control over the matching\n // behavior by simply putting routes with identical paths in the order they\n // want them tried.\n a[a.length - 1] - b[b.length - 1]\n ) : (\n // Otherwise, it doesn't really make sense to rank non-siblings by index,\n // so they sort equally.\n 0\n );\n}\nfunction matchRouteBranch(branch, pathname, allowPartial = false) {\n let { routesMeta } = branch;\n let matchedParams = {};\n let matchedPathname = \"/\";\n let matches = [];\n for (let i = 0; i < routesMeta.length; ++i) {\n let meta = routesMeta[i];\n let end = i === routesMeta.length - 1;\n let remainingPathname = matchedPathname === \"/\" ? pathname : pathname.slice(matchedPathname.length) || \"/\";\n let match = matchPath(\n { path: meta.relativePath, caseSensitive: meta.caseSensitive, end },\n remainingPathname\n );\n let route = meta.route;\n if (!match && end && allowPartial && !routesMeta[routesMeta.length - 1].route.index) {\n match = matchPath(\n {\n path: meta.relativePath,\n caseSensitive: meta.caseSensitive,\n end: false\n },\n remainingPathname\n );\n }\n if (!match) {\n return null;\n }\n Object.assign(matchedParams, match.params);\n matches.push({\n // TODO: Can this as be avoided?\n params: matchedParams,\n pathname: joinPaths([matchedPathname, match.pathname]),\n pathnameBase: normalizePathname(\n joinPaths([matchedPathname, match.pathnameBase])\n ),\n route\n });\n if (match.pathnameBase !== \"/\") {\n matchedPathname = joinPaths([matchedPathname, match.pathnameBase]);\n }\n }\n return matches;\n}\nfunction generatePath(originalPath, params = {}) {\n let path = originalPath;\n if (path.endsWith(\"*\") && path !== \"*\" && !path.endsWith(\"/*\")) {\n warning(\n false,\n `Route path \"${path}\" will be treated as if it were \"${path.replace(/\\*$/, \"/*\")}\" because the \\`*\\` character must always follow a \\`/\\` in the pattern. To get rid of this warning, please change the route path to \"${path.replace(/\\*$/, \"/*\")}\".`\n );\n path = path.replace(/\\*$/, \"/*\");\n }\n const prefix = path.startsWith(\"/\") ? \"/\" : \"\";\n const stringify2 = (p) => p == null ? \"\" : typeof p === \"string\" ? p : String(p);\n const segments = path.split(/\\/+/).map((segment, index, array) => {\n const isLastSegment = index === array.length - 1;\n if (isLastSegment && segment === \"*\") {\n const star = \"*\";\n return stringify2(params[star]);\n }\n const keyMatch = segment.match(/^:([\\w-]+)(\\??)$/);\n if (keyMatch) {\n const [, key, optional] = keyMatch;\n let param = params[key];\n invariant(optional === \"?\" || param != null, `Missing \":${key}\" param`);\n return encodeURIComponent(stringify2(param));\n }\n return segment.replace(/\\?$/g, \"\");\n }).filter((segment) => !!segment);\n return prefix + segments.join(\"/\");\n}\nfunction matchPath(pattern, pathname) {\n if (typeof pattern === \"string\") {\n pattern = { path: pattern, caseSensitive: false, end: true };\n }\n let [matcher, compiledParams] = compilePath(\n pattern.path,\n pattern.caseSensitive,\n pattern.end\n );\n let match = pathname.match(matcher);\n if (!match) return null;\n let matchedPathname = match[0];\n let pathnameBase = matchedPathname.replace(/(.)\\/+$/, \"$1\");\n let captureGroups = match.slice(1);\n let params = compiledParams.reduce(\n (memo2, { paramName, isOptional }, index) => {\n if (paramName === \"*\") {\n let splatValue = captureGroups[index] || \"\";\n pathnameBase = matchedPathname.slice(0, matchedPathname.length - splatValue.length).replace(/(.)\\/+$/, \"$1\");\n }\n const value = captureGroups[index];\n if (isOptional && !value) {\n memo2[paramName] = void 0;\n } else {\n memo2[paramName] = (value || \"\").replace(/%2F/g, \"/\");\n }\n return memo2;\n },\n {}\n );\n return {\n params,\n pathname: matchedPathname,\n pathnameBase,\n pattern\n };\n}\nfunction compilePath(path, caseSensitive = false, end = true) {\n warning(\n path === \"*\" || !path.endsWith(\"*\") || path.endsWith(\"/*\"),\n `Route path \"${path}\" will be treated as if it were \"${path.replace(/\\*$/, \"/*\")}\" because the \\`*\\` character must always follow a \\`/\\` in the pattern. To get rid of this warning, please change the route path to \"${path.replace(/\\*$/, \"/*\")}\".`\n );\n let params = [];\n let regexpSource = \"^\" + path.replace(/\\/*\\*?$/, \"\").replace(/^\\/*/, \"/\").replace(/[\\\\.*+^${}|()[\\]]/g, \"\\\\$&\").replace(\n /\\/:([\\w-]+)(\\?)?/g,\n (_, paramName, isOptional) => {\n params.push({ paramName, isOptional: isOptional != null });\n return isOptional ? \"/?([^\\\\/]+)?\" : \"/([^\\\\/]+)\";\n }\n ).replace(/\\/([\\w-]+)\\?(\\/|$)/g, \"(/$1)?$2\");\n if (path.endsWith(\"*\")) {\n params.push({ paramName: \"*\" });\n regexpSource += path === \"*\" || path === \"/*\" ? \"(.*)$\" : \"(?:\\\\/(.+)|\\\\/*)$\";\n } else if (end) {\n regexpSource += \"\\\\/*$\";\n } else if (path !== \"\" && path !== \"/\") {\n regexpSource += \"(?:(?=\\\\/|$))\";\n } else {\n }\n let matcher = new RegExp(regexpSource, caseSensitive ? void 0 : \"i\");\n return [matcher, params];\n}\nfunction decodePath(value) {\n try {\n return value.split(\"/\").map((v) => decodeURIComponent(v).replace(/\\//g, \"%2F\")).join(\"/\");\n } catch (error) {\n warning(\n false,\n `The URL path \"${value}\" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${error}).`\n );\n return value;\n }\n}\nfunction stripBasename(pathname, basename) {\n if (basename === \"/\") return pathname;\n if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) {\n return null;\n }\n let startIndex = basename.endsWith(\"/\") ? basename.length - 1 : basename.length;\n let nextChar = pathname.charAt(startIndex);\n if (nextChar && nextChar !== \"/\") {\n return null;\n }\n return pathname.slice(startIndex) || \"/\";\n}\nfunction prependBasename({\n basename,\n pathname\n}) {\n return pathname === \"/\" ? basename : joinPaths([basename, pathname]);\n}\nfunction resolvePath(to, fromPathname = \"/\") {\n let {\n pathname: toPathname,\n search = \"\",\n hash = \"\"\n } = typeof to === \"string\" ? parsePath(to) : to;\n let pathname = toPathname ? toPathname.startsWith(\"/\") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname;\n return {\n pathname,\n search: normalizeSearch(search),\n hash: normalizeHash(hash)\n };\n}\nfunction resolvePathname(relativePath, fromPathname) {\n let segments = fromPathname.replace(/\\/+$/, \"\").split(\"/\");\n let relativeSegments = relativePath.split(\"/\");\n relativeSegments.forEach((segment) => {\n if (segment === \"..\") {\n if (segments.length > 1) segments.pop();\n } else if (segment !== \".\") {\n segments.push(segment);\n }\n });\n return segments.length > 1 ? segments.join(\"/\") : \"/\";\n}\nfunction getInvalidPathError(char, field, dest, path) {\n return `Cannot include a '${char}' character in a manually specified \\`to.${field}\\` field [${JSON.stringify(\n path\n )}]. Please separate it out to the \\`to.${dest}\\` field. Alternatively you may provide the full path as a string in <Link to=\"...\"> and the router will parse it for you.`;\n}\nfunction getPathContributingMatches(matches) {\n return matches.filter(\n (match, index) => index === 0 || match.route.path && match.route.path.length > 0\n );\n}\nfunction getResolveToMatches(matches) {\n let pathMatches = getPathContributingMatches(matches);\n return pathMatches.map(\n (match, idx) => idx === pathMatches.length - 1 ? match.pathname : match.pathnameBase\n );\n}\nfunction resolveTo(toArg, routePathnames, locationPathname, isPathRelative = false) {\n let to;\n if (typeof toArg === \"string\") {\n to = parsePath(toArg);\n } else {\n to = { ...toArg };\n invariant(\n !to.pathname || !to.pathname.includes(\"?\"),\n getInvalidPathError(\"?\", \"pathname\", \"search\", to)\n );\n invariant(\n !to.pathname || !to.pathname.includes(\"#\"),\n getInvalidPathError(\"#\", \"pathname\", \"hash\", to)\n );\n invariant(\n !to.search || !to.search.includes(\"#\"),\n getInvalidPathError(\"#\", \"search\", \"hash\", to)\n );\n }\n let isEmptyPath = toArg === \"\" || to.pathname === \"\";\n let toPathname = isEmptyPath ? \"/\" : to.pathname;\n let from;\n if (toPathname == null) {\n from = locationPathname;\n } else {\n let routePathnameIndex = routePathnames.length - 1;\n if (!isPathRelative && toPathname.startsWith(\"..\")) {\n let toSegments = toPathname.split(\"/\");\n while (toSegments[0] === \"..\") {\n toSegments.shift();\n routePathnameIndex -= 1;\n }\n to.pathname = toSegments.join(\"/\");\n }\n from = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : \"/\";\n }\n let path = resolvePath(to, from);\n let hasExplicitTrailingSlash = toPathname && toPathname !== \"/\" && toPathname.endsWith(\"/\");\n let hasCurrentTrailingSlash = (isEmptyPath || toPathname === \".\") && locationPathname.endsWith(\"/\");\n if (!path.pathname.endsWith(\"/\") && (hasExplicitTrailingSlash || hasCurrentTrailingSlash)) {\n path.pathname += \"/\";\n }\n return path;\n}\nvar joinPaths = (paths) => paths.join(\"/\").replace(/\\/\\/+/g, \"/\");\nvar normalizePathname = (pathname) => pathname.replace(/\\/+$/, \"\").replace(/^\\/*/, \"/\");\nvar normalizeSearch = (search) => !search || search === \"?\" ? \"\" : search.startsWith(\"?\") ? search : \"?\" + search;\nvar normalizeHash = (hash) => !hash || hash === \"#\" ? \"\" : hash.startsWith(\"#\") ? hash : \"#\" + hash;\nvar DataWithResponseInit = class {\n constructor(data2, init) {\n this.type = \"DataWithResponseInit\";\n this.data = data2;\n this.init = init || null;\n }\n};\nfunction data(data2, init) {\n return new DataWithResponseInit(\n data2,\n typeof init === \"number\" ? { status: init } : init\n );\n}\nvar redirect = (url, init = 302) => {\n let responseInit = init;\n if (typeof responseInit === \"number\") {\n responseInit = { status: responseInit };\n } else if (typeof responseInit.status === \"undefined\") {\n responseInit.status = 302;\n }\n let headers = new Headers(responseInit.headers);\n headers.set(\"Location\", url);\n return new Response(null, { ...responseInit, headers });\n};\nvar redirectDocument = (url, init) => {\n let response = redirect(url, init);\n response.headers.set(\"X-Remix-Reload-Document\", \"true\");\n return response;\n};\nvar replace = (url, init) => {\n let response = redirect(url, init);\n response.headers.set(\"X-Remix-Replace\", \"true\");\n return response;\n};\nvar ErrorResponseImpl = class {\n constructor(status, statusText, data2, internal = false) {\n this.status = status;\n this.statusText = statusText || \"\";\n this.internal = internal;\n if (data2 instanceof Error) {\n this.data = data2.toString();\n this.error = data2;\n } else {\n this.data = data2;\n }\n }\n};\nfunction isRouteErrorResponse(error) {\n return error != null && typeof error.status === \"number\" && typeof error.statusText === \"string\" && typeof error.internal === \"boolean\" && \"data\" in error;\n}\n\n// lib/router/router.ts\nvar validMutationMethodsArr = [\n \"POST\",\n \"PUT\",\n \"PATCH\",\n \"DELETE\"\n];\nvar validMutationMethods = new Set(\n validMutationMethodsArr\n);\nvar validRequestMethodsArr = [\n \"GET\",\n ...validMutationMethodsArr\n];\nvar validRequestMethods = new Set(validRequestMethodsArr);\nvar redirectStatusCodes = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);\nvar redirectPreserveMethodStatusCodes = /* @__PURE__ */ new Set([307, 308]);\nvar IDLE_NAVIGATION = {\n state: \"idle\",\n location: void 0,\n formMethod: void 0,\n formAction: void 0,\n formEncType: void 0,\n formData: void 0,\n json: void 0,\n text: void 0\n};\nvar IDLE_FETCHER = {\n state: \"idle\",\n data: void 0,\n formMethod: void 0,\n formAction: void 0,\n formEncType: void 0,\n formData: void 0,\n json: void 0,\n text: void 0\n};\nvar IDLE_BLOCKER = {\n state: \"unblocked\",\n proceed: void 0,\n reset: void 0,\n location: void 0\n};\nvar ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\\/\\/)/i;\nvar isAbsoluteUrl = (url) => ABSOLUTE_URL_REGEX.test(url);\nvar defaultMapRouteProperties = (route) => ({\n hasErrorBoundary: Boolean(route.hasErrorBoundary)\n});\nvar TRANSITIONS_STORAGE_KEY = \"remix-router-transitions\";\nvar ResetLoaderDataSymbol = Symbol(\"ResetLoaderData\");\nfunction createRouter(init) {\n const routerWindow = init.window ? init.window : typeof window !== \"undefined\" ? window : void 0;\n const isBrowser2 = typeof routerWindow !== \"undefined\" && typeof routerWindow.document !== \"undefined\" && typeof routerWindow.document.createElement !== \"undefined\";\n invariant(\n init.routes.length > 0,\n \"You must provide a non-empty routes array to createRouter\"\n );\n let hydrationRouteProperties2 = init.hydrationRouteProperties || [];\n let mapRouteProperties2 = init.mapRouteProperties || defaultMapRouteProperties;\n let manifest = {};\n let dataRoutes = convertRoutesToDataRoutes(\n init.routes,\n mapRouteProperties2,\n void 0,\n manifest\n );\n let inFlightDataRoutes;\n let basename = init.basename || \"/\";\n if (!basename.startsWith(\"/\")) {\n basename = `/${basename}`;\n }\n let dataStrategyImpl = init.dataStrategy || defaultDataStrategyWithMiddleware;\n let future = {\n ...init.future\n };\n let unlistenHistory = null;\n let subscribers = /* @__PURE__ */ new Set();\n let savedScrollPositions2 = null;\n let getScrollRestorationKey2 = null;\n let getScrollPosition = null;\n let initialScrollRestored = init.hydrationData != null;\n let initialMatches = matchRoutes(dataRoutes, init.history.location, basename);\n let initialMatchesIsFOW = false;\n let initialErrors = null;\n let initialized;\n if (initialMatches == null && !init.patchRoutesOnNavigation) {\n let error = getInternalRouterError(404, {\n pathname: init.history.location.pathname\n });\n let { matches, route } = getShortCircuitMatches(dataRoutes);\n initialized = true;\n initialMatches = matches;\n initialErrors = { [route.id]: error };\n } else {\n if (initialMatches && !init.hydrationData) {\n let fogOfWar = checkFogOfWar(\n initialMatches,\n dataRoutes,\n init.history.location.pathname\n );\n if (fogOfWar.active) {\n initialMatches = null;\n }\n }\n if (!initialMatches) {\n initialized = false;\n initialMatches = [];\n let fogOfWar = checkFogOfWar(\n null,\n dataRoutes,\n init.history.location.pathname\n );\n if (fogOfWar.active && fogOfWar.matches) {\n initialMatchesIsFOW = true;\n initialMatches = fogOfWar.matches;\n }\n } else if (initialMatches.some((m) => m.route.lazy)) {\n initialized = false;\n } else if (!initialMatches.some((m) => m.route.loader)) {\n initialized = true;\n } else {\n let loaderData = init.hydrationData ? init.hydrationData.loaderData : null;\n let errors = init.hydrationData ? init.hydrationData.errors : null;\n if (errors) {\n let idx = initialMatches.findIndex(\n (m) => errors[m.route.id] !== void 0\n );\n initialized = initialMatches.slice(0, idx + 1).every(\n (m) => !shouldLoadRouteOnHydration(m.route, loaderData, errors)\n );\n } else {\n initialized = initialMatches.every(\n (m) => !shouldLoadRouteOnHydration(m.route, loaderData, errors)\n );\n }\n }\n }\n let router;\n let state = {\n historyAction: init.history.action,\n location: init.history.location,\n matches: initialMatches,\n initialized,\n navigation: IDLE_NAVIGATION,\n // Don't restore on initial updateState() if we were SSR'd\n restoreScrollPosition: init.hydrationData != null ? false : null,\n preventScrollReset: false,\n revalidation: \"idle\",\n loaderData: init.hydrationData && init.hydrationData.loaderData || {},\n actionData: init.hydrationData && init.hydrationData.actionData || null,\n errors: init.hydrationData && init.hydrationData.errors || initialErrors,\n fetchers: /* @__PURE__ */ new Map(),\n blockers: /* @__PURE__ */ new Map()\n };\n let pendingAction = \"POP\" /* Pop */;\n let pendingPreventScrollReset = false;\n let pendingNavigationController;\n let pendingViewTransitionEnabled = false;\n let appliedViewTransitions = /* @__PURE__ */ new Map();\n let removePageHideEventListener = null;\n let isUninterruptedRevalidation = false;\n let isRevalidationRequired = false;\n let cancelledFetcherLoads = /* @__PURE__ */ new Set();\n let fetchControllers = /* @__PURE__ */ new Map();\n let incrementingLoadId = 0;\n let pendingNavigationLoadId = -1;\n let fetchReloadIds = /* @__PURE__ */ new Map();\n let fetchRedirectIds = /* @__PURE__ */ new Set();\n let fetchLoadMatches = /* @__PURE__ */ new Map();\n let activeFetchers = /* @__PURE__ */ new Map();\n let fetchersQueuedForDeletion = /* @__PURE__ */ new Set();\n let blockerFunctions = /* @__PURE__ */ new Map();\n let unblockBlockerHistoryUpdate = void 0;\n let pendingRevalidationDfd = null;\n function initialize() {\n unlistenHistory = init.history.listen(\n ({ action: historyAction, location, delta }) => {\n if (unblockBlockerHistoryUpdate) {\n unblockBlockerHistoryUpdate();\n unblockBlockerHistoryUpdate = void 0;\n return;\n }\n warning(\n blockerFunctions.size === 0 || delta != null,\n \"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.\"\n );\n let blockerKey = shouldBlockNavigation({\n currentLocation: state.location,\n nextLocation: location,\n historyAction\n });\n if (blockerKey && delta != null) {\n let nextHistoryUpdatePromise = new Promise((resolve) => {\n unblockBlockerHistoryUpdate = resolve;\n });\n init.history.go(delta * -1);\n updateBlocker(blockerKey, {\n state: \"blocked\",\n location,\n proceed() {\n updateBlocker(blockerKey, {\n state: \"proceeding\",\n proceed: void 0,\n reset: void 0,\n location\n });\n nextHistoryUpdatePromise.then(() => init.history.go(delta));\n },\n reset() {\n let blockers = new Map(state.blockers);\n blockers.set(blockerKey, IDLE_BLOCKER);\n updateState({ blockers });\n }\n });\n return;\n }\n return startNavigation(historyAction, location);\n }\n );\n if (isBrowser2) {\n restoreAppliedTransitions(routerWindow, appliedViewTransitions);\n let _saveAppliedTransitions = () => persistAppliedTransitions(routerWindow, appliedViewTransitions);\n routerWindow.addEventListener(\"pagehide\", _saveAppliedTransitions);\n removePageHideEventListener = () => routerWindow.removeEventListener(\"pagehide\", _saveAppliedTransitions);\n }\n if (!state.initialized) {\n startNavigation(\"POP\" /* Pop */, state.location, {\n initialHydration: true\n });\n }\n return router;\n }\n function dispose() {\n if (unlistenHistory) {\n unlistenHistory();\n }\n if (removePageHideEventListener) {\n removePageHideEventListener();\n }\n subscribers.clear();\n pendingNavigationController && pendingNavigationController.abort();\n state.fetchers.forEach((_, key) => deleteFetcher(key));\n state.blockers.forEach((_, key) => deleteBlocker(key));\n }\n function subscribe(fn) {\n subscribers.add(fn);\n return () => subscribers.delete(fn);\n }\n function updateState(newState, opts = {}) {\n if (newState.matches) {\n newState.matches = newState.matches.map((m) => {\n let route = manifest[m.route.id];\n let matchRoute = m.route;\n if (matchRoute.element !== route.element || matchRoute.errorElement !== route.errorElement || matchRoute.hydrateFallbackElement !== route.hydrateFallbackElement) {\n return {\n ...m,\n route\n };\n }\n return m;\n });\n }\n state = {\n ...state,\n ...newState\n };\n let unmountedFetchers = [];\n let mountedFetchers = [];\n state.fetchers.forEach((fetcher, key) => {\n if (fetcher.state === \"idle\") {\n if (fetchersQueuedForDeletion.has(key)) {\n unmountedFetchers.push(key);\n } else {\n mountedFetchers.push(key);\n }\n }\n });\n fetchersQueuedForDeletion.forEach((key) => {\n if (!state.fetchers.has(key) && !fetchControllers.has(key)) {\n unmountedFetchers.push(key);\n }\n });\n [...subscribers].forEach(\n (subscriber) => subscriber(state, {\n deletedFetchers: unmountedFetchers,\n viewTransitionOpts: opts.viewTransitionOpts,\n flushSync: opts.flushSync === true\n })\n );\n unmountedFetchers.forEach((key) => deleteFetcher(key));\n mountedFetchers.forEach((key) => state.fetchers.delete(key));\n }\n function completeNavigation(location, newState, { flushSync } = {}) {\n let isActionReload = state.actionData != null && state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && state.navigation.state === \"loading\" && location.state?._isRedirect !== true;\n let actionData;\n if (newState.actionData) {\n if (Object.keys(newState.actionData).length > 0) {\n actionData = newState.actionData;\n } else {\n actionData = null;\n }\n } else if (isActionReload) {\n actionData = state.actionData;\n } else {\n actionData = null;\n }\n let loaderData = newState.loaderData ? mergeLoaderData(\n state.loaderData,\n newState.loaderData,\n newState.matches || [],\n newState.errors\n ) : state.loaderData;\n let blockers = state.blockers;\n if (blockers.size > 0) {\n blockers = new Map(blockers);\n blockers.forEach((_, k) => blockers.set(k, IDLE_BLOCKER));\n }\n let restoreScrollPosition = isUninterruptedRevalidation ? false : getSavedScrollPosition(location, newState.matches || state.matches);\n let preventScrollReset = pendingPreventScrollReset === true || state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && location.state?._isRedirect !== true;\n if (inFlightDataRoutes) {\n dataRoutes = inFlightDataRoutes;\n inFlightDataRoutes = void 0;\n }\n if (isUninterruptedRevalidation) {\n } else if (pendingAction === \"POP\" /* Pop */) {\n } else if (pendingAction === \"PUSH\" /* Push */) {\n init.history.push(location, location.state);\n } else if (pendingAction === \"REPLACE\" /* Replace */) {\n init.history.replace(location, location.state);\n }\n let viewTransitionOpts;\n if (pendingAction === \"POP\" /* Pop */) {\n let priorPaths = appliedViewTransitions.get(state.location.pathname);\n if (priorPaths && priorPaths.has(location.pathname)) {\n viewTransitionOpts = {\n currentLocation: state.location,\n nextLocation: location\n };\n } else if (appliedViewTransitions.has(location.pathname)) {\n viewTransitionOpts = {\n currentLocation: location,\n nextLocation: state.location\n };\n }\n } else if (pendingViewTransitionEnabled) {\n let toPaths = appliedViewTransitions.get(state.location.pathname);\n if (toPaths) {\n toPaths.add(location.pathname);\n } else {\n toPaths = /* @__PURE__ */ new Set([location.pathname]);\n appliedViewTransitions.set(state.location.pathname, toPaths);\n }\n viewTransitionOpts = {\n currentLocation: state.location,\n nextLocation: location\n };\n }\n updateState(\n {\n ...newState,\n // matches, errors, fetchers go through as-is\n actionData,\n loaderData,\n historyAction: pendingAction,\n location,\n initialized: true,\n navigation: IDLE_NAVIGATION,\n revalidation: \"idle\",\n restoreScrollPosition,\n preventScrollReset,\n blockers\n },\n {\n viewTransitionOpts,\n flushSync: flushSync === true\n }\n );\n pendingAction = \"POP\" /* Pop */;\n pendingPreventScrollReset = false;\n pendingViewTransitionEnabled = false;\n isUninterruptedRevalidation = false;\n isRevalidationRequired = false;\n pendingRevalidationDfd?.resolve();\n pendingRevalidationDfd = null;\n }\n async function navigate(to, opts) {\n if (typeof to === \"number\") {\n init.history.go(to);\n return;\n }\n let normalizedPath = normalizeTo(\n state.location,\n state.matches,\n basename,\n to,\n opts?.fromRouteId,\n opts?.relative\n );\n let { path, submission, error } = normalizeNavigateOptions(\n false,\n normalizedPath,\n opts\n );\n let currentLocation = state.location;\n let nextLocation = createLocation(state.location, path, opts && opts.state);\n nextLocation = {\n ...nextLocation,\n ...init.history.encodeLocation(nextLocation)\n };\n let userReplace = opts && opts.replace != null ? opts.replace : void 0;\n let historyAction = \"PUSH\" /* Push */;\n if (userReplace === true) {\n historyAction = \"REPLACE\" /* Replace */;\n } else if (userReplace === false) {\n } else if (submission != null && isMutationMethod(submission.formMethod) && submission.formAction === state.location.pathname + state.location.search) {\n historyAction = \"REPLACE\" /* Replace */;\n }\n let preventScrollReset = opts && \"preventScrollReset\" in opts ? opts.preventScrollReset === true : void 0;\n let flushSync = (opts && opts.flushSync) === true;\n let blockerKey = shouldBlockNavigation({\n currentLocation,\n nextLocation,\n historyAction\n });\n if (blockerKey) {\n updateBlocker(blockerKey, {\n state: \"blocked\",\n location: nextLocation,\n proceed() {\n updateBlocker(blockerKey, {\n state: \"proceeding\",\n proceed: void 0,\n reset: void 0,\n location: nextLocation\n });\n navigate(to, opts);\n },\n reset() {\n let blockers = new Map(state.blockers);\n blockers.set(blockerKey, IDLE_BLOCKER);\n updateState({ blockers });\n }\n });\n return;\n }\n await startNavigation(historyAction, nextLocation, {\n submission,\n // Send through the formData serialization error if we have one so we can\n // render at the right error boundary after we match routes\n pendingError: error,\n preventScrollReset,\n replace: opts && opts.replace,\n enableViewTransition: opts && opts.viewTransition,\n flushSync\n });\n }\n function revalidate() {\n if (!pendingRevalidationDfd) {\n pendingRevalidationDfd = createDeferred();\n }\n interruptActiveLoads();\n updateState({ revalidation: \"loading\" });\n let promise = pendingRevalidationDfd.promise;\n if (state.navigation.state === \"submitting\") {\n return promise;\n }\n if (state.navigation.state === \"idle\") {\n startNavigation(state.historyAction, state.location, {\n startUninterruptedRevalidation: true\n });\n return promise;\n }\n startNavigation(\n pendingAction || state.historyAction,\n state.navigation.location,\n {\n overrideNavigation: state.navigation,\n // Proxy through any rending view transition\n enableViewTransition: pendingViewTransitionEnabled === true\n }\n );\n return promise;\n }\n async function startNavigation(historyAction, location, opts) {\n pendingNavigationController && pendingNavigationController.abort();\n pendingNavigationController = null;\n pendingAction = historyAction;\n isUninterruptedRevalidation = (opts && opts.startUninterruptedRevalidation) === true;\n saveScrollPosition(state.location, state.matches);\n pendingPreventScrollReset = (opts && opts.preventScrollReset) === true;\n pendingViewTransitionEnabled = (opts && opts.enableViewTransition) === true;\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let loadingNavigation = opts && opts.overrideNavigation;\n let matches = opts?.initialHydration && state.matches && state.matches.length > 0 && !initialMatchesIsFOW ? (\n // `matchRoutes()` has already been called if we're in here via `router.initialize()`\n state.matches\n ) : matchRoutes(routesToUse, location, basename);\n let flushSync = (opts && opts.flushSync) === true;\n if (matches && state.initialized && !isRevalidationRequired && isHashChangeOnly(state.location, location) && !(opts && opts.submission && isMutationMethod(opts.submission.formMethod))) {\n completeNavigation(location, { matches }, { flushSync });\n return;\n }\n let fogOfWar = checkFogOfWar(matches, routesToUse, location.pathname);\n if (fogOfWar.active && fogOfWar.matches) {\n matches = fogOfWar.matches;\n }\n if (!matches) {\n let { error, notFoundMatches, route } = handleNavigational404(\n location.pathname\n );\n completeNavigation(\n location,\n {\n matches: notFoundMatches,\n loaderData: {},\n errors: {\n [route.id]: error\n }\n },\n { flushSync }\n );\n return;\n }\n pendingNavigationController = new AbortController();\n let request = createClientSideRequest(\n init.history,\n location,\n pendingNavigationController.signal,\n opts && opts.submission\n );\n let scopedContext = init.getContext ? await init.getContext() : new RouterContextProvider();\n let pendingActionResult;\n if (opts && opts.pendingError) {\n pendingActionResult = [\n findNearestBoundary(matches).route.id,\n { type: \"error\" /* error */, error: opts.pendingError }\n ];\n } else if (opts && opts.submission && isMutationMethod(opts.submission.formMethod)) {\n let actionResult = await handleAction(\n request,\n location,\n opts.submission,\n matches,\n scopedContext,\n fogOfWar.active,\n opts && opts.initialHydration === true,\n { replace: opts.replace, flushSync }\n );\n if (actionResult.shortCircuited) {\n return;\n }\n if (actionResult.pendingActionResult) {\n let [routeId, result] = actionResult.pendingActionResult;\n if (isErrorResult(result) && isRouteErrorResponse(result.error) && result.error.status === 404) {\n pendingNavigationController = null;\n completeNavigation(location, {\n matches: actionResult.matches,\n loaderData: {},\n errors: {\n [routeId]: result.error\n }\n });\n return;\n }\n }\n matches = actionResult.matches || matches;\n pendingActionResult = actionResult.pendingActionResult;\n loadingNavigation = getLoadingNavigation(location, opts.submission);\n flushSync = false;\n fogOfWar.active = false;\n request = createClientSideRequest(\n init.history,\n request.url,\n request.signal\n );\n }\n let {\n shortCircuited,\n matches: updatedMatches,\n loaderData,\n errors\n } = await handleLoaders(\n request,\n location,\n matches,\n scopedContext,\n fogOfWar.active,\n loadingNavigation,\n opts && opts.submission,\n opts && opts.fetcherSubmission,\n opts && opts.replace,\n opts && opts.initialHydration === true,\n flushSync,\n pendingActionResult\n );\n if (shortCircuited) {\n return;\n }\n pendingNavigationController = null;\n completeNavigation(location, {\n matches: updatedMatches || matches,\n ...getActionDataForCommit(pendingActionResult),\n loaderData,\n errors\n });\n }\n async function handleAction(request, location, submission, matches, scopedContext, isFogOfWar, initialHydration, opts = {}) {\n interruptActiveLoads();\n let navigation = getSubmittingNavigation(location, submission);\n updateState({ navigation }, { flushSync: opts.flushSync === true });\n if (isFogOfWar) {\n let discoverResult = await discoverRoutes(\n matches,\n location.pathname,\n request.signal\n );\n if (discoverResult.type === \"aborted\") {\n return { shortCircuited: true };\n } else if (discoverResult.type === \"error\") {\n if (discoverResult.partialMatches.length === 0) {\n let { matches: matches2, route } = getShortCircuitMatches(dataRoutes);\n return {\n matches: matches2,\n pendingActionResult: [\n route.id,\n {\n type: \"error\" /* error */,\n error: discoverResult.error\n }\n ]\n };\n }\n let boundaryId = findNearestBoundary(discoverResult.partialMatches).route.id;\n return {\n matches: discoverResult.partialMatches,\n pendingActionResult: [\n boundaryId,\n {\n type: \"error\" /* error */,\n error: discoverResult.error\n }\n ]\n };\n } else if (!discoverResult.matches) {\n let { notFoundMatches, error, route } = handleNavigational404(\n location.pathname\n );\n return {\n matches: notFoundMatches,\n pendingActionResult: [\n route.id,\n {\n type: \"error\" /* error */,\n error\n }\n ]\n };\n } else {\n matches = discoverResult.matches;\n }\n }\n let result;\n let actionMatch = getTargetMatch(matches, location);\n if (!actionMatch.route.action && !actionMatch.route.lazy) {\n result = {\n type: \"error\" /* error */,\n error: getInternalRouterError(405, {\n method: request.method,\n pathname: location.pathname,\n routeId: actionMatch.route.id\n })\n };\n } else {\n let dsMatches = getTargetedDataStrategyMatches(\n mapRouteProperties2,\n manifest,\n request,\n matches,\n actionMatch,\n initialHydration ? [] : hydrationRouteProperties2,\n scopedContext\n );\n let results = await callDataStrategy(\n request,\n dsMatches,\n scopedContext,\n null\n );\n result = results[actionMatch.route.id];\n if (!result) {\n for (let match of matches) {\n if (results[match.route.id]) {\n result = results[match.route.id];\n break;\n }\n }\n }\n if (request.signal.aborted) {\n return { shortCircuited: true };\n }\n }\n if (isRedirectResult(result)) {\n let replace2;\n if (opts && opts.replace != null) {\n replace2 = opts.replace;\n } else {\n let location2 = normalizeRedirectLocation(\n result.response.headers.get(\"Location\"),\n new URL(request.url),\n basename\n );\n replace2 = location2 === state.location.pathname + state.location.search;\n }\n await startRedirectNavigation(request, result, true, {\n submission,\n replace: replace2\n });\n return { shortCircuited: true };\n }\n if (isErrorResult(result)) {\n let boundaryMatch = findNearestBoundary(matches, actionMatch.route.id);\n if ((opts && opts.replace) !== true) {\n pendingAction = \"PUSH\" /* Push */;\n }\n return {\n matches,\n pendingActionResult: [\n boundaryMatch.route.id,\n result,\n actionMatch.route.id\n ]\n };\n }\n return {\n matches,\n pendingActionResult: [actionMatch.route.id, result]\n };\n }\n async function handleLoaders(request, location, matches, scopedContext, isFogOfWar, overrideNavigation, submission, fetcherSubmission, replace2, initialHydration, flushSync, pendingActionResult) {\n let loadingNavigation = overrideNavigation || getLoadingNavigation(location, submission);\n let activeSubmission = submission || fetcherSubmission || getSubmissionFromNavigation(loadingNavigation);\n let shouldUpdateNavigationState = !isUninterruptedRevalidation && !initialHydration;\n if (isFogOfWar) {\n if (shouldUpdateNavigationState) {\n let actionData = getUpdatedActionData(pendingActionResult);\n updateState(\n {\n navigation: loadingNavigation,\n ...actionData !== void 0 ? { actionData } : {}\n },\n {\n flushSync\n }\n );\n }\n let discoverResult = await discoverRoutes(\n matches,\n location.pathname,\n request.signal\n );\n if (discoverResult.type === \"aborted\") {\n return { shortCircuited: true };\n } else if (discoverResult.type === \"error\") {\n if (discoverResult.partialMatches.length === 0) {\n let { matches: matches2, route } = getShortCircuitMatches(dataRoutes);\n return {\n matches: matches2,\n loaderData: {},\n errors: {\n [route.id]: discoverResult.error\n }\n };\n }\n let boundaryId = findNearestBoundary(discoverResult.partialMatches).route.id;\n return {\n matches: discoverResult.partialMatches,\n loaderData: {},\n errors: {\n [boundaryId]: discoverResult.error\n }\n };\n } else if (!discoverResult.matches) {\n let { error, notFoundMatches, route } = handleNavigational404(\n location.pathname\n );\n return {\n matches: notFoundMatches,\n loaderData: {},\n errors: {\n [route.id]: error\n }\n };\n } else {\n matches = discoverResult.matches;\n }\n }\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let { dsMatches, revalidatingFetchers } = getMatchesToLoad(\n request,\n scopedContext,\n mapRouteProperties2,\n manifest,\n init.history,\n state,\n matches,\n activeSubmission,\n location,\n initialHydration ? [] : hydrationRouteProperties2,\n initialHydration === true,\n isRevalidationRequired,\n cancelledFetcherLoads,\n fetchersQueuedForDeletion,\n fetchLoadMatches,\n fetchRedirectIds,\n routesToUse,\n basename,\n init.patchRoutesOnNavigation != null,\n pendingActionResult\n );\n pendingNavigationLoadId = ++incrementingLoadId;\n if (!init.dataStrategy && !dsMatches.some((m) => m.shouldLoad) && !dsMatches.some((m) => m.route.middleware) && revalidatingFetchers.length === 0) {\n let updatedFetchers2 = markFetchRedirectsDone();\n completeNavigation(\n location,\n {\n matches,\n loaderData: {},\n // Commit pending error if we're short circuiting\n errors: pendingActionResult && isErrorResult(pendingActionResult[1]) ? { [pendingActionResult[0]]: pendingActionResult[1].error } : null,\n ...getActionDataForCommit(pendingActionResult),\n ...updatedFetchers2 ? { fetchers: new Map(state.fetchers) } : {}\n },\n { flushSync }\n );\n return { shortCircuited: true };\n }\n if (shouldUpdateNavigationState) {\n let updates = {};\n if (!isFogOfWar) {\n updates.navigation = loadingNavigation;\n let actionData = getUpdatedActionData(pendingActionResult);\n if (actionData !== void 0) {\n updates.actionData = actionData;\n }\n }\n if (revalidatingFetchers.length > 0) {\n updates.fetchers = getUpdatedRevalidatingFetchers(revalidatingFetchers);\n }\n updateState(updates, { flushSync });\n }\n revalidatingFetchers.forEach((rf) => {\n abortFetcher(rf.key);\n if (rf.controller) {\n fetchControllers.set(rf.key, rf.controller);\n }\n });\n let abortPendingFetchRevalidations = () => revalidatingFetchers.forEach((f) => abortFetcher(f.key));\n if (pendingNavigationController) {\n pendingNavigationController.signal.addEventListener(\n \"abort\",\n abortPendingFetchRevalidations\n );\n }\n let { loaderResults, fetcherResults } = await callLoadersAndMaybeResolveData(\n dsMatches,\n revalidatingFetchers,\n request,\n scopedContext\n );\n if (request.signal.aborted) {\n return { shortCircuited: true };\n }\n if (pendingNavigationController) {\n pendingNavigationController.signal.removeEventListener(\n \"abort\",\n abortPendingFetchRevalidations\n );\n }\n revalidatingFetchers.forEach((rf) => fetchControllers.delete(rf.key));\n let redirect2 = findRedirect(loaderResults);\n if (redirect2) {\n await startRedirectNavigation(request, redirect2.result, true, {\n replace: replace2\n });\n return { shortCircuited: true };\n }\n redirect2 = findRedirect(fetcherResults);\n if (redirect2) {\n fetchRedirectIds.add(redirect2.key);\n await startRedirectNavigation(request, redirect2.result, true, {\n replace: replace2\n });\n return { shortCircuited: true };\n }\n let { loaderData, errors } = processLoaderData(\n state,\n matches,\n loaderResults,\n pendingActionResult,\n revalidatingFetchers,\n fetcherResults\n );\n if (initialHydration && state.errors) {\n errors = { ...state.errors, ...errors };\n }\n let updatedFetchers = markFetchRedirectsDone();\n let didAbortFetchLoads = abortStaleFetchLoads(pendingNavigationLoadId);\n let shouldUpdateFetchers = updatedFetchers || didAbortFetchLoads || revalidatingFetchers.length > 0;\n return {\n matches,\n loaderData,\n errors,\n ...shouldUpdateFetchers ? { fetchers: new Map(state.fetchers) } : {}\n };\n }\n function getUpdatedActionData(pendingActionResult) {\n if (pendingActionResult && !isErrorResult(pendingActionResult[1])) {\n return {\n [pendingActionResult[0]]: pendingActionResult[1].data\n };\n } else if (state.actionData) {\n if (Object.keys(state.actionData).length === 0) {\n return null;\n } else {\n return state.actionData;\n }\n }\n }\n function getUpdatedRevalidatingFetchers(revalidatingFetchers) {\n revalidatingFetchers.forEach((rf) => {\n let fetcher = state.fetchers.get(rf.key);\n let revalidatingFetcher = getLoadingFetcher(\n void 0,\n fetcher ? fetcher.data : void 0\n );\n state.fetchers.set(rf.key, revalidatingFetcher);\n });\n return new Map(state.fetchers);\n }\n async function fetch2(key, routeId, href, opts) {\n abortFetcher(key);\n let flushSync = (opts && opts.flushSync) === true;\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let normalizedPath = normalizeTo(\n state.location,\n state.matches,\n basename,\n href,\n routeId,\n opts?.relative\n );\n let matches = matchRoutes(routesToUse, normalizedPath, basename);\n let fogOfWar = checkFogOfWar(matches, routesToUse, normalizedPath);\n if (fogOfWar.active && fogOfWar.matches) {\n matches = fogOfWar.matches;\n }\n if (!matches) {\n setFetcherError(\n key,\n routeId,\n getInternalRouterError(404, { pathname: normalizedPath }),\n { flushSync }\n );\n return;\n }\n let { path, submission, error } = normalizeNavigateOptions(\n true,\n normalizedPath,\n opts\n );\n if (error) {\n setFetcherError(key, routeId, error, { flushSync });\n return;\n }\n let scopedContext = init.getContext ? await init.getContext() : new RouterContextProvider();\n let preventScrollReset = (opts && opts.preventScrollReset) === true;\n if (submission && isMutationMethod(submission.formMethod)) {\n await handleFetcherAction(\n key,\n routeId,\n path,\n matches,\n scopedContext,\n fogOfWar.active,\n flushSync,\n preventScrollReset,\n submission\n );\n return;\n }\n fetchLoadMatches.set(key, { routeId, path });\n await handleFetcherLoader(\n key,\n routeId,\n path,\n matches,\n scopedContext,\n fogOfWar.active,\n flushSync,\n preventScrollReset,\n submission\n );\n }\n async function handleFetcherAction(key, routeId, path, requestMatches, scopedContext, isFogOfWar, flushSync, preventScrollReset, submission) {\n interruptActiveLoads();\n fetchLoadMatches.delete(key);\n let existingFetcher = state.fetchers.get(key);\n updateFetcherState(key, getSubmittingFetcher(submission, existingFetcher), {\n flushSync\n });\n let abortController = new AbortController();\n let fetchRequest = createClientSideRequest(\n init.history,\n path,\n abortController.signal,\n submission\n );\n if (isFogOfWar) {\n let discoverResult = await discoverRoutes(\n requestMatches,\n new URL(fetchRequest.url).pathname,\n fetchRequest.signal,\n key\n );\n if (discoverResult.type === \"aborted\") {\n return;\n } else if (discoverResult.type === \"error\") {\n setFetcherError(key, routeId, discoverResult.error, { flushSync });\n return;\n } else if (!discoverResult.matches) {\n setFetcherError(\n key,\n routeId,\n getInternalRouterError(404, { pathname: path }),\n { flushSync }\n );\n return;\n } else {\n requestMatches = discoverResult.matches;\n }\n }\n let match = getTargetMatch(requestMatches, path);\n if (!match.route.action && !match.route.lazy) {\n let error = getInternalRouterError(405, {\n method: submission.formMethod,\n pathname: path,\n routeId\n });\n setFetcherError(key, routeId, error, { flushSync });\n return;\n }\n fetchControllers.set(key, abortController);\n let originatingLoadId = incrementingLoadId;\n let fetchMatches = getTargetedDataStrategyMatches(\n mapRouteProperties2,\n manifest,\n fetchRequest,\n requestMatches,\n match,\n hydrationRouteProperties2,\n scopedContext\n );\n let actionResults = await callDataStrategy(\n fetchRequest,\n fetchMatches,\n scopedContext,\n key\n );\n let actionResult = actionResults[match.route.id];\n if (fetchRequest.signal.aborted) {\n if (fetchControllers.get(key) === abortController) {\n fetchControllers.delete(key);\n }\n return;\n }\n if (fetchersQueuedForDeletion.has(key)) {\n if (isRedirectResult(actionResult) || isErrorResult(actionResult)) {\n updateFetcherState(key, getDoneFetcher(void 0));\n return;\n }\n } else {\n if (isRedirectResult(actionResult)) {\n fetchControllers.delete(key);\n if (pendingNavigationLoadId > originatingLoadId) {\n updateFetcherState(key, getDoneFetcher(void 0));\n return;\n } else {\n fetchRedirectIds.add(key);\n updateFetcherState(key, getLoadingFetcher(submission));\n return startRedirectNavigation(fetchRequest, actionResult, false, {\n fetcherSubmission: submission,\n preventScrollReset\n });\n }\n }\n if (isErrorResult(actionResult)) {\n setFetcherError(key, routeId, actionResult.error);\n return;\n }\n }\n let nextLocation = state.navigation.location || state.location;\n let revalidationRequest = createClientSideRequest(\n init.history,\n nextLocation,\n abortController.signal\n );\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let matches = state.navigation.state !== \"idle\" ? matchRoutes(routesToUse, state.navigation.location, basename) : state.matches;\n invariant(matches, \"Didn't find any matches after fetcher action\");\n let loadId = ++incrementingLoadId;\n fetchReloadIds.set(key, loadId);\n let loadFetcher = getLoadingFetcher(submission, actionResult.data);\n state.fetchers.set(key, loadFetcher);\n let { dsMatches, revalidatingFetchers } = getMatchesToLoad(\n revalidationRequest,\n scopedContext,\n mapRouteProperties2,\n manifest,\n init.history,\n state,\n matches,\n submission,\n nextLocation,\n hydrationRouteProperties2,\n false,\n isRevalidationRequired,\n cancelledFetcherLoads,\n fetchersQueuedForDeletion,\n fetchLoadMatches,\n fetchRedirectIds,\n routesToUse,\n basename,\n init.patchRoutesOnNavigation != null,\n [match.route.id, actionResult]\n );\n revalidatingFetchers.filter((rf) => rf.key !== key).forEach((rf) => {\n let staleKey = rf.key;\n let existingFetcher2 = state.fetchers.get(staleKey);\n let revalidatingFetcher = getLoadingFetcher(\n void 0,\n existingFetcher2 ? existingFetcher2.data : void 0\n );\n state.fetchers.set(staleKey, revalidatingFetcher);\n abortFetcher(staleKey);\n if (rf.controller) {\n fetchControllers.set(staleKey, rf.controller);\n }\n });\n updateState({ fetchers: new Map(state.fetchers) });\n let abortPendingFetchRevalidations = () => revalidatingFetchers.forEach((rf) => abortFetcher(rf.key));\n abortController.signal.addEventListener(\n \"abort\",\n abortPendingFetchRevalidations\n );\n let { loaderResults, fetcherResults } = await callLoadersAndMaybeResolveData(\n dsMatches,\n revalidatingFetchers,\n revalidationRequest,\n scopedContext\n );\n if (abortController.signal.aborted) {\n return;\n }\n abortController.signal.removeEventListener(\n \"abort\",\n abortPendingFetchRevalidations\n );\n fetchReloadIds.delete(key);\n fetchControllers.delete(key);\n revalidatingFetchers.forEach((r) => fetchControllers.delete(r.key));\n if (state.fetchers.has(key)) {\n let doneFetcher = getDoneFetcher(actionResult.data);\n state.fetchers.set(key, doneFetcher);\n }\n let redirect2 = findRedirect(loaderResults);\n if (redirect2) {\n return startRedirectNavigation(\n revalidationRequest,\n redirect2.result,\n false,\n { preventScrollReset }\n );\n }\n redirect2 = findRedirect(fetcherResults);\n if (redirect2) {\n fetchRedirectIds.add(redirect2.key);\n return startRedirectNavigation(\n revalidationRequest,\n redirect2.result,\n false,\n { preventScrollReset }\n );\n }\n let { loaderData, errors } = processLoaderData(\n state,\n matches,\n loaderResults,\n void 0,\n revalidatingFetchers,\n fetcherResults\n );\n abortStaleFetchLoads(loadId);\n if (state.navigation.state === \"loading\" && loadId > pendingNavigationLoadId) {\n invariant(pendingAction, \"Expected pending action\");\n pendingNavigationController && pendingNavigationController.abort();\n completeNavigation(state.navigation.location, {\n matches,\n loaderData,\n errors,\n fetchers: new Map(state.fetchers)\n });\n } else {\n updateState({\n errors,\n loaderData: mergeLoaderData(\n state.loaderData,\n loaderData,\n matches,\n errors\n ),\n fetchers: new Map(state.fetchers)\n });\n isRevalidationRequired = false;\n }\n }\n async function handleFetcherLoader(key, routeId, path, matches, scopedContext, isFogOfWar, flushSync, preventScrollReset, submission) {\n let existingFetcher = state.fetchers.get(key);\n updateFetcherState(\n key,\n getLoadingFetcher(\n submission,\n existingFetcher ? existingFetcher.data : void 0\n ),\n { flushSync }\n );\n let abortController = new AbortController();\n let fetchRequest = createClientSideRequest(\n init.history,\n path,\n abortController.signal\n );\n if (isFogOfWar) {\n let discoverResult = await discoverRoutes(\n matches,\n new URL(fetchRequest.url).pathname,\n fetchRequest.signal,\n key\n );\n if (discoverResult.type === \"aborted\") {\n return;\n } else if (discoverResult.type === \"error\") {\n setFetcherError(key, routeId, discoverResult.error, { flushSync });\n return;\n } else if (!discoverResult.matches) {\n setFetcherError(\n key,\n routeId,\n getInternalRouterError(404, { pathname: path }),\n { flushSync }\n );\n return;\n } else {\n matches = discoverResult.matches;\n }\n }\n let match = getTargetMatch(matches, path);\n fetchControllers.set(key, abortController);\n let originatingLoadId = incrementingLoadId;\n let dsMatches = getTargetedDataStrategyMatches(\n mapRouteProperties2,\n manifest,\n fetchRequest,\n matches,\n match,\n hydrationRouteProperties2,\n scopedContext\n );\n let results = await callDataStrategy(\n fetchRequest,\n dsMatches,\n scopedContext,\n key\n );\n let result = results[match.route.id];\n if (fetchControllers.get(key) === abortController) {\n fetchControllers.delete(key);\n }\n if (fetchRequest.signal.aborted) {\n return;\n }\n if (fetchersQueuedForDeletion.has(key)) {\n updateFetcherState(key, getDoneFetcher(void 0));\n return;\n }\n if (isRedirectResult(result)) {\n if (pendingNavigationLoadId > originatingLoadId) {\n updateFetcherState(key, getDoneFetcher(void 0));\n return;\n } else {\n fetchRedirectIds.add(key);\n await startRedirectNavigation(fetchRequest, result, false, {\n preventScrollReset\n });\n return;\n }\n }\n if (isErrorResult(result)) {\n setFetcherError(key, routeId, result.error);\n return;\n }\n updateFetcherState(key, getDoneFetcher(result.data));\n }\n async function startRedirectNavigation(request, redirect2, isNavigation, {\n submission,\n fetcherSubmission,\n preventScrollReset,\n replace: replace2\n } = {}) {\n if (redirect2.response.headers.has(\"X-Remix-Revalidate\")) {\n isRevalidationRequired = true;\n }\n let location = redirect2.response.headers.get(\"Location\");\n invariant(location, \"Expected a Location header on the redirect Response\");\n location = normalizeRedirectLocation(\n location,\n new URL(request.url),\n basename\n );\n let redirectLocation = createLocation(state.location, location, {\n _isRedirect: true\n });\n if (isBrowser2) {\n let isDocumentReload = false;\n if (redirect2.response.headers.has(\"X-Remix-Reload-Document\")) {\n isDocumentReload = true;\n } else if (isAbsoluteUrl(location)) {\n const url = createBrowserURLImpl(location, true);\n isDocumentReload = // Hard reload if it's an absolute URL to a new origin\n url.origin !== routerWindow.location.origin || // Hard reload if it's an absolute URL that does not match our basename\n stripBasename(url.pathname, basename) == null;\n }\n if (isDocumentReload) {\n if (replace2) {\n routerWindow.location.replace(location);\n } else {\n routerWindow.location.assign(location);\n }\n return;\n }\n }\n pendingNavigationController = null;\n let redirectNavigationType = replace2 === true || redirect2.response.headers.has(\"X-Remix-Replace\") ? \"REPLACE\" /* Replace */ : \"PUSH\" /* Push */;\n let { formMethod, formAction, formEncType } = state.navigation;\n if (!submission && !fetcherSubmission && formMethod && formAction && formEncType) {\n submission = getSubmissionFromNavigation(state.navigation);\n }\n let activeSubmission = submission || fetcherSubmission;\n if (redirectPreserveMethodStatusCodes.has(redirect2.response.status) && activeSubmission && isMutationMethod(activeSubmission.formMethod)) {\n await startNavigation(redirectNavigationType, redirectLocation, {\n submission: {\n ...activeSubmission,\n formAction: location\n },\n // Preserve these flags across redirects\n preventScrollReset: preventScrollReset || pendingPreventScrollReset,\n enableViewTransition: isNavigation ? pendingViewTransitionEnabled : void 0\n });\n } else {\n let overrideNavigation = getLoadingNavigation(\n redirectLocation,\n submission\n );\n await startNavigation(redirectNavigationType, redirectLocation, {\n overrideNavigation,\n // Send fetcher submissions through for shouldRevalidate\n fetcherSubmission,\n // Preserve these flags across redirects\n preventScrollReset: preventScrollReset || pendingPreventScrollReset,\n enableViewTransition: isNavigation ? pendingViewTransitionEnabled : void 0\n });\n }\n }\n async function callDataStrategy(request, matches, scopedContext, fetcherKey) {\n let results;\n let dataResults = {};\n try {\n results = await callDataStrategyImpl(\n dataStrategyImpl,\n request,\n matches,\n fetcherKey,\n scopedContext,\n false\n );\n } catch (e) {\n matches.filter((m) => m.shouldLoad).forEach((m) => {\n dataResults[m.route.id] = {\n type: \"error\" /* error */,\n error: e\n };\n });\n return dataResults;\n }\n if (request.signal.aborted) {\n return dataResults;\n }\n for (let [routeId, result] of Object.entries(results)) {\n if (isRedirectDataStrategyResult(result)) {\n let response = result.result;\n dataResults[routeId] = {\n type: \"redirect\" /* redirect */,\n response: normalizeRelativeRoutingRedirectResponse(\n response,\n request,\n routeId,\n matches,\n basename\n )\n };\n } else {\n dataResults[routeId] = await convertDataStrategyResultToDataResult(result);\n }\n }\n return dataResults;\n }\n async function callLoadersAndMaybeResolveData(matches, fetchersToLoad, request, scopedContext) {\n let loaderResultsPromise = callDataStrategy(\n request,\n matches,\n scopedContext,\n null\n );\n let fetcherResultsPromise = Promise.all(\n fetchersToLoad.map(async (f) => {\n if (f.matches && f.match && f.request && f.controller) {\n let results = await callDataStrategy(\n f.request,\n f.matches,\n scopedContext,\n f.key\n );\n let result = results[f.match.route.id];\n return { [f.key]: result };\n } else {\n return Promise.resolve({\n [f.key]: {\n type: \"error\" /* error */,\n error: getInternalRouterError(404, {\n pathname: f.path\n })\n }\n });\n }\n })\n );\n let loaderResults = await loaderResultsPromise;\n let fetcherResults = (await fetcherResultsPromise).reduce(\n (acc, r) => Object.assign(acc, r),\n {}\n );\n return {\n loaderResults,\n fetcherResults\n };\n }\n function interruptActiveLoads() {\n isRevalidationRequired = true;\n fetchLoadMatches.forEach((_, key) => {\n if (fetchControllers.has(key)) {\n cancelledFetcherLoads.add(key);\n }\n abortFetcher(key);\n });\n }\n function updateFetcherState(key, fetcher, opts = {}) {\n state.fetchers.set(key, fetcher);\n updateState(\n { fetchers: new Map(state.fetchers) },\n { flushSync: (opts && opts.flushSync) === true }\n );\n }\n function setFetcherError(key, routeId, error, opts = {}) {\n let boundaryMatch = findNearestBoundary(state.matches, routeId);\n deleteFetcher(key);\n updateState(\n {\n errors: {\n [boundaryMatch.route.id]: error\n },\n fetchers: new Map(state.fetchers)\n },\n { flushSync: (opts && opts.flushSync) === true }\n );\n }\n function getFetcher(key) {\n activeFetchers.set(key, (activeFetchers.get(key) || 0) + 1);\n if (fetchersQueuedForDeletion.has(key)) {\n fetchersQueuedForDeletion.delete(key);\n }\n return state.fetchers.get(key) || IDLE_FETCHER;\n }\n function deleteFetcher(key) {\n let fetcher = state.fetchers.get(key);\n if (fetchControllers.has(key) && !(fetcher && fetcher.state === \"loading\" && fetchReloadIds.has(key))) {\n abortFetcher(key);\n }\n fetchLoadMatches.delete(key);\n fetchReloadIds.delete(key);\n fetchRedirectIds.delete(key);\n fetchersQueuedForDeletion.delete(key);\n cancelledFetcherLoads.delete(key);\n state.fetchers.delete(key);\n }\n function queueFetcherForDeletion(key) {\n let count = (activeFetchers.get(key) || 0) - 1;\n if (count <= 0) {\n activeFetchers.delete(key);\n fetchersQueuedForDeletion.add(key);\n } else {\n activeFetchers.set(key, count);\n }\n updateState({ fetchers: new Map(state.fetchers) });\n }\n function abortFetcher(key) {\n let controller = fetchControllers.get(key);\n if (controller) {\n controller.abort();\n fetchControllers.delete(key);\n }\n }\n function markFetchersDone(keys) {\n for (let key of keys) {\n let fetcher = getFetcher(key);\n let doneFetcher = getDoneFetcher(fetcher.data);\n state.fetchers.set(key, doneFetcher);\n }\n }\n function markFetchRedirectsDone() {\n let doneKeys = [];\n let updatedFetchers = false;\n for (let key of fetchRedirectIds) {\n let fetcher = state.fetchers.get(key);\n invariant(fetcher, `Expected fetcher: ${key}`);\n if (fetcher.state === \"loading\") {\n fetchRedirectIds.delete(key);\n doneKeys.push(key);\n updatedFetchers = true;\n }\n }\n markFetchersDone(doneKeys);\n return updatedFetchers;\n }\n function abortStaleFetchLoads(landedId) {\n let yeetedKeys = [];\n for (let [key, id] of fetchReloadIds) {\n if (id < landedId) {\n let fetcher = state.fetchers.get(key);\n invariant(fetcher, `Expected fetcher: ${key}`);\n if (fetcher.state === \"loading\") {\n abortFetcher(key);\n fetchReloadIds.delete(key);\n yeetedKeys.push(key);\n }\n }\n }\n markFetchersDone(yeetedKeys);\n return yeetedKeys.length > 0;\n }\n function getBlocker(key, fn) {\n let blocker = state.blockers.get(key) || IDLE_BLOCKER;\n if (blockerFunctions.get(key) !== fn) {\n blockerFunctions.set(key, fn);\n }\n return blocker;\n }\n function deleteBlocker(key) {\n state.blockers.delete(key);\n blockerFunctions.delete(key);\n }\n function updateBlocker(key, newBlocker) {\n let blocker = state.blockers.get(key) || IDLE_BLOCKER;\n invariant(\n blocker.state === \"unblocked\" && newBlocker.state === \"blocked\" || blocker.state === \"blocked\" && newBlocker.state === \"blocked\" || blocker.state === \"blocked\" && newBlocker.state === \"proceeding\" || blocker.state === \"blocked\" && newBlocker.state === \"unblocked\" || blocker.state === \"proceeding\" && newBlocker.state === \"unblocked\",\n `Invalid blocker state transition: ${blocker.state} -> ${newBlocker.state}`\n );\n let blockers = new Map(state.blockers);\n blockers.set(key, newBlocker);\n updateState({ blockers });\n }\n function shouldBlockNavigation({\n currentLocation,\n nextLocation,\n historyAction\n }) {\n if (blockerFunctions.size === 0) {\n return;\n }\n if (blockerFunctions.size > 1) {\n warning(false, \"A router only supports one blocker at a time\");\n }\n let entries = Array.from(blockerFunctions.entries());\n let [blockerKey, blockerFunction] = entries[entries.length - 1];\n let blocker = state.blockers.get(blockerKey);\n if (blocker && blocker.state === \"proceeding\") {\n return;\n }\n if (blockerFunction({ currentLocation, nextLocation, historyAction })) {\n return blockerKey;\n }\n }\n function handleNavigational404(pathname) {\n let error = getInternalRouterError(404, { pathname });\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let { matches, route } = getShortCircuitMatches(routesToUse);\n return { notFoundMatches: matches, route, error };\n }\n function enableScrollRestoration(positions, getPosition, getKey) {\n savedScrollPositions2 = positions;\n getScrollPosition = getPosition;\n getScrollRestorationKey2 = getKey || null;\n if (!initialScrollRestored && state.navigation === IDLE_NAVIGATION) {\n initialScrollRestored = true;\n let y = getSavedScrollPosition(state.location, state.matches);\n if (y != null) {\n updateState({ restoreScrollPosition: y });\n }\n }\n return () => {\n savedScrollPositions2 = null;\n getScrollPosition = null;\n getScrollRestorationKey2 = null;\n };\n }\n function getScrollKey(location, matches) {\n if (getScrollRestorationKey2) {\n let key = getScrollRestorationKey2(\n location,\n matches.map((m) => convertRouteMatchToUiMatch(m, state.loaderData))\n );\n return key || location.key;\n }\n return location.key;\n }\n function saveScrollPosition(location, matches) {\n if (savedScrollPositions2 && getScrollPosition) {\n let key = getScrollKey(location, matches);\n savedScrollPositions2[key] = getScrollPosition();\n }\n }\n function getSavedScrollPosition(location, matches) {\n if (savedScrollPositions2) {\n let key = getScrollKey(location, matches);\n let y = savedScrollPositions2[key];\n if (typeof y === \"number\") {\n return y;\n }\n }\n return null;\n }\n function checkFogOfWar(matches, routesToUse, pathname) {\n if (init.patchRoutesOnNavigation) {\n if (!matches) {\n let fogMatches = matchRoutesImpl(\n routesToUse,\n pathname,\n basename,\n true\n );\n return { active: true, matches: fogMatches || [] };\n } else {\n if (Object.keys(matches[0].params).length > 0) {\n let partialMatches = matchRoutesImpl(\n routesToUse,\n pathname,\n basename,\n true\n );\n return { active: true, matches: partialMatches };\n }\n }\n }\n return { active: false, matches: null };\n }\n async function discoverRoutes(matches, pathname, signal, fetcherKey) {\n if (!init.patchRoutesOnNavigation) {\n return { type: \"success\", matches };\n }\n let partialMatches = matches;\n while (true) {\n let isNonHMR = inFlightDataRoutes == null;\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let localManifest = manifest;\n try {\n await init.patchRoutesOnNavigation({\n signal,\n path: pathname,\n matches: partialMatches,\n fetcherKey,\n patch: (routeId, children) => {\n if (signal.aborted) return;\n patchRoutesImpl(\n routeId,\n children,\n routesToUse,\n localManifest,\n mapRouteProperties2,\n false\n );\n }\n });\n } catch (e) {\n return { type: \"error\", error: e, partialMatches };\n } finally {\n if (isNonHMR && !signal.aborted) {\n dataRoutes = [...dataRoutes];\n }\n }\n if (signal.aborted) {\n return { type: \"aborted\" };\n }\n let newMatches = matchRoutes(routesToUse, pathname, basename);\n if (newMatches) {\n return { type: \"success\", matches: newMatches };\n }\n let newPartialMatches = matchRoutesImpl(\n routesToUse,\n pathname,\n basename,\n true\n );\n if (!newPartialMatches || partialMatches.length === newPartialMatches.length && partialMatches.every(\n (m, i) => m.route.id === newPartialMatches[i].route.id\n )) {\n return { type: \"success\", matches: null };\n }\n partialMatches = newPartialMatches;\n }\n }\n function _internalSetRoutes(newRoutes) {\n manifest = {};\n inFlightDataRoutes = convertRoutesToDataRoutes(\n newRoutes,\n mapRouteProperties2,\n void 0,\n manifest\n );\n }\n function patchRoutes(routeId, children, unstable_allowElementMutations = false) {\n let isNonHMR = inFlightDataRoutes == null;\n let routesToUse = inFlightDataRoutes || dataRoutes;\n patchRoutesImpl(\n routeId,\n children,\n routesToUse,\n manifest,\n mapRouteProperties2,\n unstable_allowElementMutations\n );\n if (isNonHMR) {\n dataRoutes = [...dataRoutes];\n updateState({});\n }\n }\n router = {\n get basename() {\n return basename;\n },\n get future() {\n return future;\n },\n get state() {\n return state;\n },\n get routes() {\n return dataRoutes;\n },\n get window() {\n return routerWindow;\n },\n initialize,\n subscribe,\n enableScrollRestoration,\n navigate,\n fetch: fetch2,\n revalidate,\n // Passthrough to history-aware createHref used by useHref so we get proper\n // hash-aware URLs in DOM paths\n createHref: (to) => init.history.createHref(to),\n encodeLocation: (to) => init.history.encodeLocation(to),\n getFetcher,\n deleteFetcher: queueFetcherForDeletion,\n dispose,\n getBlocker,\n deleteBlocker,\n patchRoutes,\n _internalFetchControllers: fetchControllers,\n // TODO: Remove setRoutes, it's temporary to avoid dealing with\n // updating the tree while validating the update algorithm.\n _internalSetRoutes,\n _internalSetStateDoNotUseOrYouWillBreakYourApp(newState) {\n updateState(newState);\n }\n };\n return router;\n}\nfunction createStaticHandler(routes, opts) {\n invariant(\n routes.length > 0,\n \"You must provide a non-empty routes array to createStaticHandler\"\n );\n let manifest = {};\n let basename = (opts ? opts.basename : null) || \"/\";\n let mapRouteProperties2 = opts?.mapRouteProperties || defaultMapRouteProperties;\n let dataRoutes = convertRoutesToDataRoutes(\n routes,\n mapRouteProperties2,\n void 0,\n manifest\n );\n async function query(request, {\n requestContext,\n filterMatchesToLoad,\n skipLoaderErrorBubbling,\n skipRevalidation,\n dataStrategy,\n generateMiddlewareResponse\n } = {}) {\n let url = new URL(request.url);\n let method = request.method;\n let location = createLocation(\"\", createPath(url), null, \"default\");\n let matches = matchRoutes(dataRoutes, location, basename);\n requestContext = requestContext != null ? requestContext : new RouterContextProvider();\n if (!isValidMethod(method) && method !== \"HEAD\") {\n let error = getInternalRouterError(405, { method });\n let { matches: methodNotAllowedMatches, route } = getShortCircuitMatches(dataRoutes);\n let staticContext = {\n basename,\n location,\n matches: methodNotAllowedMatches,\n loaderData: {},\n actionData: null,\n errors: {\n [route.id]: error\n },\n statusCode: error.status,\n loaderHeaders: {},\n actionHeaders: {}\n };\n return generateMiddlewareResponse ? generateMiddlewareResponse(() => Promise.resolve(staticContext)) : staticContext;\n } else if (!matches) {\n let error = getInternalRouterError(404, { pathname: location.pathname });\n let { matches: notFoundMatches, route } = getShortCircuitMatches(dataRoutes);\n let staticContext = {\n basename,\n location,\n matches: notFoundMatches,\n loaderData: {},\n actionData: null,\n errors: {\n [route.id]: error\n },\n statusCode: error.status,\n loaderHeaders: {},\n actionHeaders: {}\n };\n return generateMiddlewareResponse ? generateMiddlewareResponse(() => Promise.resolve(staticContext)) : staticContext;\n }\n if (generateMiddlewareResponse) {\n invariant(\n requestContext instanceof RouterContextProvider,\n \"When using middleware in `staticHandler.query()`, any provided `requestContext` must be an instance of `RouterContextProvider`\"\n );\n try {\n await loadLazyMiddlewareForMatches(\n matches,\n manifest,\n mapRouteProperties2\n );\n let renderedStaticContext;\n let response = await runServerMiddlewarePipeline(\n {\n request,\n matches,\n params: matches[0].params,\n // If we're calling middleware then it must be enabled so we can cast\n // this to the proper type knowing it's not an `AppLoadContext`\n context: requestContext\n },\n async () => {\n let res = await generateMiddlewareResponse(\n async (revalidationRequest, opts2 = {}) => {\n let result2 = await queryImpl(\n revalidationRequest,\n location,\n matches,\n requestContext,\n dataStrategy || null,\n skipLoaderErrorBubbling === true,\n null,\n \"filterMatchesToLoad\" in opts2 ? opts2.filterMatchesToLoad ?? null : filterMatchesToLoad ?? null,\n skipRevalidation === true\n );\n if (isResponse(result2)) {\n return result2;\n }\n renderedStaticContext = { location, basename, ...result2 };\n return renderedStaticContext;\n }\n );\n return res;\n },\n async (error, routeId) => {\n if (isRedirectResponse(error)) {\n return error;\n }\n if (isResponse(error)) {\n try {\n error = new ErrorResponseImpl(\n error.status,\n error.statusText,\n await parseResponseBody(error)\n );\n } catch (e) {\n error = e;\n }\n }\n if (isDataWithResponseInit(error)) {\n error = dataWithResponseInitToErrorResponse(error);\n }\n if (renderedStaticContext) {\n if (routeId in renderedStaticContext.loaderData) {\n renderedStaticContext.loaderData[routeId] = void 0;\n }\n let staticContext = getStaticContextFromError(\n dataRoutes,\n renderedStaticContext,\n error,\n skipLoaderErrorBubbling ? routeId : findNearestBoundary(matches, routeId).route.id\n );\n return generateMiddlewareResponse(\n () => Promise.resolve(staticContext)\n );\n } else {\n let boundaryRouteId = skipLoaderErrorBubbling ? routeId : findNearestBoundary(\n matches,\n matches.find(\n (m) => m.route.id === routeId || m.route.loader\n )?.route.id || routeId\n ).route.id;\n let staticContext = {\n matches,\n location,\n basename,\n loaderData: {},\n actionData: null,\n errors: {\n [boundaryRouteId]: error\n },\n statusCode: isRouteErrorResponse(error) ? error.status : 500,\n actionHeaders: {},\n loaderHeaders: {}\n };\n return generateMiddlewareResponse(\n () => Promise.resolve(staticContext)\n );\n }\n }\n );\n invariant(isResponse(response), \"Expected a response in query()\");\n return response;\n } catch (e) {\n if (isResponse(e)) {\n return e;\n }\n throw e;\n }\n }\n let result = await queryImpl(\n request,\n location,\n matches,\n requestContext,\n dataStrategy || null,\n skipLoaderErrorBubbling === true,\n null,\n filterMatchesToLoad || null,\n skipRevalidation === true\n );\n if (isResponse(result)) {\n return result;\n }\n return { location, basename, ...result };\n }\n async function queryRoute(request, {\n routeId,\n requestContext,\n dataStrategy,\n generateMiddlewareResponse\n } = {}) {\n let url = new URL(request.url);\n let method = request.method;\n let location = createLocation(\"\", createPath(url), null, \"default\");\n let matches = matchRoutes(dataRoutes, location, basename);\n requestContext = requestContext != null ? requestContext : new RouterContextProvider();\n if (!isValidMethod(method) && method !== \"HEAD\" && method !== \"OPTIONS\") {\n throw getInternalRouterError(405, { method });\n } else if (!matches) {\n throw getInternalRouterError(404, { pathname: location.pathname });\n }\n let match = routeId ? matches.find((m) => m.route.id === routeId) : getTargetMatch(matches, location);\n if (routeId && !match) {\n throw getInternalRouterError(403, {\n pathname: location.pathname,\n routeId\n });\n } else if (!match) {\n throw getInternalRouterError(404, { pathname: location.pathname });\n }\n if (generateMiddlewareResponse) {\n invariant(\n requestContext instanceof RouterContextProvider,\n \"When using middleware in `staticHandler.queryRoute()`, any provided `requestContext` must be an instance of `RouterContextProvider`\"\n );\n await loadLazyMiddlewareForMatches(matches, manifest, mapRouteProperties2);\n let response = await runServerMiddlewarePipeline(\n {\n request,\n matches,\n params: matches[0].params,\n // If we're calling middleware then it must be enabled so we can cast\n // this to the proper type knowing it's not an `AppLoadContext`\n context: requestContext\n },\n async () => {\n let res = await generateMiddlewareResponse(\n async (innerRequest) => {\n let result2 = await queryImpl(\n innerRequest,\n location,\n matches,\n requestContext,\n dataStrategy || null,\n false,\n match,\n null,\n false\n );\n let processed = handleQueryResult(result2);\n return isResponse(processed) ? processed : typeof processed === \"string\" ? new Response(processed) : Response.json(processed);\n }\n );\n return res;\n },\n (error) => {\n if (isDataWithResponseInit(error)) {\n return Promise.resolve(dataWithResponseInitToResponse(error));\n }\n if (isResponse(error)) {\n return Promise.resolve(error);\n }\n throw error;\n }\n );\n return response;\n }\n let result = await queryImpl(\n request,\n location,\n matches,\n requestContext,\n dataStrategy || null,\n false,\n match,\n null,\n false\n );\n return handleQueryResult(result);\n function handleQueryResult(result2) {\n if (isResponse(result2)) {\n return result2;\n }\n let error = result2.errors ? Object.values(result2.errors)[0] : void 0;\n if (error !== void 0) {\n throw error;\n }\n if (result2.actionData) {\n return Object.values(result2.actionData)[0];\n }\n if (result2.loaderData) {\n return Object.values(result2.loaderData)[0];\n }\n return void 0;\n }\n }\n async function queryImpl(request, location, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch, filterMatchesToLoad, skipRevalidation) {\n invariant(\n request.signal,\n \"query()/queryRoute() requests must contain an AbortController signal\"\n );\n try {\n if (isMutationMethod(request.method)) {\n let result2 = await submit(\n request,\n matches,\n routeMatch || getTargetMatch(matches, location),\n requestContext,\n dataStrategy,\n skipLoaderErrorBubbling,\n routeMatch != null,\n filterMatchesToLoad,\n skipRevalidation\n );\n return result2;\n }\n let result = await loadRouteData(\n request,\n matches,\n requestContext,\n dataStrategy,\n skipLoaderErrorBubbling,\n routeMatch,\n filterMatchesToLoad\n );\n return isResponse(result) ? result : {\n ...result,\n actionData: null,\n actionHeaders: {}\n };\n } catch (e) {\n if (isDataStrategyResult(e) && isResponse(e.result)) {\n if (e.type === \"error\" /* error */) {\n throw e.result;\n }\n return e.result;\n }\n if (isRedirectResponse(e)) {\n return e;\n }\n throw e;\n }\n }\n async function submit(request, matches, actionMatch, requestContext, dataStrategy, skipLoaderErrorBubbling, isRouteRequest, filterMatchesToLoad, skipRevalidation) {\n let result;\n if (!actionMatch.route.action && !actionMatch.route.lazy) {\n let error = getInternalRouterError(405, {\n method: request.method,\n pathname: new URL(request.url).pathname,\n routeId: actionMatch.route.id\n });\n if (isRouteRequest) {\n throw error;\n }\n result = {\n type: \"error\" /* error */,\n error\n };\n } else {\n let dsMatches = getTargetedDataStrategyMatches(\n mapRouteProperties2,\n manifest,\n request,\n matches,\n actionMatch,\n [],\n requestContext\n );\n let results = await callDataStrategy(\n request,\n dsMatches,\n isRouteRequest,\n requestContext,\n dataStrategy\n );\n result = results[actionMatch.route.id];\n if (request.signal.aborted) {\n throwStaticHandlerAbortedError(request, isRouteRequest);\n }\n }\n if (isRedirectResult(result)) {\n throw new Response(null, {\n status: result.response.status,\n headers: {\n Location: result.response.headers.get(\"Location\")\n }\n });\n }\n if (isRouteRequest) {\n if (isErrorResult(result)) {\n throw result.error;\n }\n return {\n matches: [actionMatch],\n loaderData: {},\n actionData: { [actionMatch.route.id]: result.data },\n errors: null,\n // Note: statusCode + headers are unused here since queryRoute will\n // return the raw Response or value\n statusCode: 200,\n loaderHeaders: {},\n actionHeaders: {}\n };\n }\n if (skipRevalidation) {\n if (isErrorResult(result)) {\n let boundaryMatch = skipLoaderErrorBubbling ? actionMatch : findNearestBoundary(matches, actionMatch.route.id);\n return {\n statusCode: isRouteErrorResponse(result.error) ? result.error.status : result.statusCode != null ? result.statusCode : 500,\n actionData: null,\n actionHeaders: {\n ...result.headers ? { [actionMatch.route.id]: result.headers } : {}\n },\n matches,\n loaderData: {},\n errors: {\n [boundaryMatch.route.id]: result.error\n },\n loaderHeaders: {}\n };\n } else {\n return {\n actionData: {\n [actionMatch.route.id]: result.data\n },\n actionHeaders: result.headers ? { [actionMatch.route.id]: result.headers } : {},\n matches,\n loaderData: {},\n errors: null,\n statusCode: result.statusCode || 200,\n loaderHeaders: {}\n };\n }\n }\n let loaderRequest = new Request(request.url, {\n headers: request.headers,\n redirect: request.redirect,\n signal: request.signal\n });\n if (isErrorResult(result)) {\n let boundaryMatch = skipLoaderErrorBubbling ? actionMatch : findNearestBoundary(matches, actionMatch.route.id);\n let handlerContext2 = await loadRouteData(\n loaderRequest,\n matches,\n requestContext,\n dataStrategy,\n skipLoaderErrorBubbling,\n null,\n filterMatchesToLoad,\n [boundaryMatch.route.id, result]\n );\n return {\n ...handlerContext2,\n statusCode: isRouteErrorResponse(result.error) ? result.error.status : result.statusCode != null ? result.statusCode : 500,\n actionData: null,\n actionHeaders: {\n ...result.headers ? { [actionMatch.route.id]: result.headers } : {}\n }\n };\n }\n let handlerContext = await loadRouteData(\n loaderRequest,\n matches,\n requestContext,\n dataStrategy,\n skipLoaderErrorBubbling,\n null,\n filterMatchesToLoad\n );\n return {\n ...handlerContext,\n actionData: {\n [actionMatch.route.id]: result.data\n },\n // action status codes take precedence over loader status codes\n ...result.statusCode ? { statusCode: result.statusCode } : {},\n actionHeaders: result.headers ? { [actionMatch.route.id]: result.headers } : {}\n };\n }\n async function loadRouteData(request, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch, filterMatchesToLoad, pendingActionResult) {\n let isRouteRequest = routeMatch != null;\n if (isRouteRequest && !routeMatch?.route.loader && !routeMatch?.route.lazy) {\n throw getInternalRouterError(400, {\n method: request.method,\n pathname: new URL(request.url).pathname,\n routeId: routeMatch?.route.id\n });\n }\n let dsMatches;\n if (routeMatch) {\n dsMatches = getTargetedDataStrategyMatches(\n mapRouteProperties2,\n manifest,\n request,\n matches,\n routeMatch,\n [],\n requestContext\n );\n } else {\n let maxIdx = pendingActionResult && isErrorResult(pendingActionResult[1]) ? (\n // Up to but not including the boundary\n matches.findIndex((m) => m.route.id === pendingActionResult[0]) - 1\n ) : void 0;\n dsMatches = matches.map((match, index) => {\n if (maxIdx != null && index > maxIdx) {\n return getDataStrategyMatch(\n mapRouteProperties2,\n manifest,\n request,\n match,\n [],\n requestContext,\n false\n );\n }\n return getDataStrategyMatch(\n mapRouteProperties2,\n manifest,\n request,\n match,\n [],\n requestContext,\n (match.route.loader || match.route.lazy) != null && (!filterMatchesToLoad || filterMatchesToLoad(match))\n );\n });\n }\n if (!dataStrategy && !dsMatches.some((m) => m.shouldLoad)) {\n return {\n matches,\n loaderData: {},\n errors: pendingActionResult && isErrorResult(pendingActionResult[1]) ? {\n [pendingActionResult[0]]: pendingActionResult[1].error\n } : null,\n statusCode: 200,\n loaderHeaders: {}\n };\n }\n let results = await callDataStrategy(\n request,\n dsMatches,\n isRouteRequest,\n requestContext,\n dataStrategy\n );\n if (request.signal.aborted) {\n throwStaticHandlerAbortedError(request, isRouteRequest);\n }\n let handlerContext = processRouteLoaderData(\n matches,\n results,\n pendingActionResult,\n true,\n skipLoaderErrorBubbling\n );\n return {\n ...handlerContext,\n matches\n };\n }\n async function callDataStrategy(request, matches, isRouteRequest, requestContext, dataStrategy) {\n let results = await callDataStrategyImpl(\n dataStrategy || defaultDataStrategy,\n request,\n matches,\n null,\n requestContext,\n true\n );\n let dataResults = {};\n await Promise.all(\n matches.map(async (match) => {\n if (!(match.route.id in results)) {\n return;\n }\n let result = results[match.route.id];\n if (isRedirectDataStrategyResult(result)) {\n let response = result.result;\n throw normalizeRelativeRoutingRedirectResponse(\n response,\n request,\n match.route.id,\n matches,\n basename\n );\n }\n if (isRouteRequest) {\n if (isResponse(result.result)) {\n throw result;\n } else if (isDataWithResponseInit(result.result)) {\n throw dataWithResponseInitToResponse(result.result);\n }\n }\n dataResults[match.route.id] = await convertDataStrategyResultToDataResult(result);\n })\n );\n return dataResults;\n }\n return {\n dataRoutes,\n query,\n queryRoute\n };\n}\nfunction getStaticContextFromError(routes, handlerContext, error, boundaryId) {\n let errorBoundaryId = boundaryId || handlerContext._deepestRenderedBoundaryId || routes[0].id;\n return {\n ...handlerContext,\n statusCode: isRouteErrorResponse(error) ? error.status : 500,\n errors: {\n [errorBoundaryId]: error\n }\n };\n}\nfunction throwStaticHandlerAbortedError(request, isRouteRequest) {\n if (request.signal.reason !== void 0) {\n throw request.signal.reason;\n }\n let method = isRouteRequest ? \"queryRoute\" : \"query\";\n throw new Error(\n `${method}() call aborted without an \\`AbortSignal.reason\\`: ${request.method} ${request.url}`\n );\n}\nfunction isSubmissionNavigation(opts) {\n return opts != null && (\"formData\" in opts && opts.formData != null || \"body\" in opts && opts.body !== void 0);\n}\nfunction normalizeTo(location, matches, basename, to, fromRouteId, relative) {\n let contextualMatches;\n let activeRouteMatch;\n if (fromRouteId) {\n contextualMatches = [];\n for (let match of matches) {\n contextualMatches.push(match);\n if (match.route.id === fromRouteId) {\n activeRouteMatch = match;\n break;\n }\n }\n } else {\n contextualMatches = matches;\n activeRouteMatch = matches[matches.length - 1];\n }\n let path = resolveTo(\n to ? to : \".\",\n getResolveToMatches(contextualMatches),\n stripBasename(location.pathname, basename) || location.pathname,\n relative === \"path\"\n );\n if (to == null) {\n path.search = location.search;\n path.hash = location.hash;\n }\n if ((to == null || to === \"\" || to === \".\") && activeRouteMatch) {\n let nakedIndex = hasNakedIndexQuery(path.search);\n if (activeRouteMatch.route.index && !nakedIndex) {\n path.search = path.search ? path.search.replace(/^\\?/, \"?index&\") : \"?index\";\n } else if (!activeRouteMatch.route.index && nakedIndex) {\n let params = new URLSearchParams(path.search);\n let indexValues = params.getAll(\"index\");\n params.delete(\"index\");\n indexValues.filter((v) => v).forEach((v) => params.append(\"index\", v));\n let qs = params.toString();\n path.search = qs ? `?${qs}` : \"\";\n }\n }\n if (basename !== \"/\") {\n path.pathname = prependBasename({ basename, pathname: path.pathname });\n }\n return createPath(path);\n}\nfunction normalizeNavigateOptions(isFetcher, path, opts) {\n if (!opts || !isSubmissionNavigation(opts)) {\n return { path };\n }\n if (opts.formMethod && !isValidMethod(opts.formMethod)) {\n return {\n path,\n error: getInternalRouterError(405, { method: opts.formMethod })\n };\n }\n let getInvalidBodyError = () => ({\n path,\n error: getInternalRouterError(400, { type: \"invalid-body\" })\n });\n let rawFormMethod = opts.formMethod || \"get\";\n let formMethod = rawFormMethod.toUpperCase();\n let formAction = stripHashFromPath(path);\n if (opts.body !== void 0) {\n if (opts.formEncType === \"text/plain\") {\n if (!isMutationMethod(formMethod)) {\n return getInvalidBodyError();\n }\n let text = typeof opts.body === \"string\" ? opts.body : opts.body instanceof FormData || opts.body instanceof URLSearchParams ? (\n // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#plain-text-form-data\n Array.from(opts.body.entries()).reduce(\n (acc, [name, value]) => `${acc}${name}=${value}\n`,\n \"\"\n )\n ) : String(opts.body);\n return {\n path,\n submission: {\n formMethod,\n formAction,\n formEncType: opts.formEncType,\n formData: void 0,\n json: void 0,\n text\n }\n };\n } else if (opts.formEncType === \"application/json\") {\n if (!isMutationMethod(formMethod)) {\n return getInvalidBodyError();\n }\n try {\n let json = typeof opts.body === \"string\" ? JSON.parse(opts.body) : opts.body;\n return {\n path,\n submission: {\n formMethod,\n formAction,\n formEncType: opts.formEncType,\n formData: void 0,\n json,\n text: void 0\n }\n };\n } catch (e) {\n return getInvalidBodyError();\n }\n }\n }\n invariant(\n typeof FormData === \"function\",\n \"FormData is not available in this environment\"\n );\n let searchParams;\n let formData;\n if (opts.formData) {\n searchParams = convertFormDataToSearchParams(opts.formData);\n formData = opts.formData;\n } else if (opts.body instanceof FormData) {\n searchParams = convertFormDataToSearchParams(opts.body);\n formData = opts.body;\n } else if (opts.body instanceof URLSearchParams) {\n searchParams = opts.body;\n formData = convertSearchParamsToFormData(searchParams);\n } else if (opts.body == null) {\n searchParams = new URLSearchParams();\n formData = new FormData();\n } else {\n try {\n searchParams = new URLSearchParams(opts.body);\n formData = convertSearchParamsToFormData(searchParams);\n } catch (e) {\n return getInvalidBodyError();\n }\n }\n let submission = {\n formMethod,\n formAction,\n formEncType: opts && opts.formEncType || \"application/x-www-form-urlencoded\",\n formData,\n json: void 0,\n text: void 0\n };\n if (isMutationMethod(submission.formMethod)) {\n return { path, submission };\n }\n let parsedPath = parsePath(path);\n if (isFetcher && parsedPath.search && hasNakedIndexQuery(parsedPath.search)) {\n searchParams.append(\"index\", \"\");\n }\n parsedPath.search = `?${searchParams}`;\n return { path: createPath(parsedPath), submission };\n}\nfunction getMatchesToLoad(request, scopedContext, mapRouteProperties2, manifest, history, state, matches, submission, location, lazyRoutePropertiesToSkip, initialHydration, isRevalidationRequired, cancelledFetcherLoads, fetchersQueuedForDeletion, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, hasPatchRoutesOnNavigation, pendingActionResult) {\n let actionResult = pendingActionResult ? isErrorResult(pendingActionResult[1]) ? pendingActionResult[1].error : pendingActionResult[1].data : void 0;\n let currentUrl = history.createURL(state.location);\n let nextUrl = history.createURL(location);\n let maxIdx;\n if (initialHydration && state.errors) {\n let boundaryId = Object.keys(state.errors)[0];\n maxIdx = matches.findIndex((m) => m.route.id === boundaryId);\n } else if (pendingActionResult && isErrorResult(pendingActionResult[1])) {\n let boundaryId = pendingActionResult[0];\n maxIdx = matches.findIndex((m) => m.route.id === boundaryId) - 1;\n }\n let actionStatus = pendingActionResult ? pendingActionResult[1].statusCode : void 0;\n let shouldSkipRevalidation = actionStatus && actionStatus >= 400;\n let baseShouldRevalidateArgs = {\n currentUrl,\n currentParams: state.matches[0]?.params || {},\n nextUrl,\n nextParams: matches[0].params,\n ...submission,\n actionResult,\n actionStatus\n };\n let dsMatches = matches.map((match, index) => {\n let { route } = match;\n let forceShouldLoad = null;\n if (maxIdx != null && index > maxIdx) {\n forceShouldLoad = false;\n } else if (route.lazy) {\n forceShouldLoad = true;\n } else if (route.loader == null) {\n forceShouldLoad = false;\n } else if (initialHydration) {\n forceShouldLoad = shouldLoadRouteOnHydration(\n route,\n state.loaderData,\n state.errors\n );\n } else if (isNewLoader(state.loaderData, state.matches[index], match)) {\n forceShouldLoad = true;\n }\n if (forceShouldLoad !== null) {\n return getDataStrategyMatch(\n mapRouteProperties2,\n manifest,\n request,\n match,\n lazyRoutePropertiesToSkip,\n scopedContext,\n forceShouldLoad\n );\n }\n let defaultShouldRevalidate = shouldSkipRevalidation ? false : (\n // Forced revalidation due to submission, useRevalidator, or X-Remix-Revalidate\n isRevalidationRequired || currentUrl.pathname + currentUrl.search === nextUrl.pathname + nextUrl.search || // Search params affect all loaders\n currentUrl.search !== nextUrl.search || isNewRouteInstance(state.matches[index], match)\n );\n let shouldRevalidateArgs = {\n ...baseShouldRevalidateArgs,\n defaultShouldRevalidate\n };\n let shouldLoad = shouldRevalidateLoader(match, shouldRevalidateArgs);\n return getDataStrategyMatch(\n mapRouteProperties2,\n manifest,\n request,\n match,\n lazyRoutePropertiesToSkip,\n scopedContext,\n shouldLoad,\n shouldRevalidateArgs\n );\n });\n let revalidatingFetchers = [];\n fetchLoadMatches.forEach((f, key) => {\n if (initialHydration || !matches.some((m) => m.route.id === f.routeId) || fetchersQueuedForDeletion.has(key)) {\n return;\n }\n let fetcher = state.fetchers.get(key);\n let isMidInitialLoad = fetcher && fetcher.state !== \"idle\" && fetcher.data === void 0;\n let fetcherMatches = matchRoutes(routesToUse, f.path, basename);\n if (!fetcherMatches) {\n if (hasPatchRoutesOnNavigation && isMidInitialLoad) {\n return;\n }\n revalidatingFetchers.push({\n key,\n routeId: f.routeId,\n path: f.path,\n matches: null,\n match: null,\n request: null,\n controller: null\n });\n return;\n }\n if (fetchRedirectIds.has(key)) {\n return;\n }\n let fetcherMatch = getTargetMatch(fetcherMatches, f.path);\n let fetchController = new AbortController();\n let fetchRequest = createClientSideRequest(\n history,\n f.path,\n fetchController.signal\n );\n let fetcherDsMatches = null;\n if (cancelledFetcherLoads.has(key)) {\n cancelledFetcherLoads.delete(key);\n fetcherDsMatches = getTargetedDataStrategyMatches(\n mapRouteProperties2,\n manifest,\n fetchRequest,\n fetcherMatches,\n fetcherMatch,\n lazyRoutePropertiesToSkip,\n scopedContext\n );\n } else if (isMidInitialLoad) {\n if (isRevalidationRequired) {\n fetcherDsMatches = getTargetedDataStrategyMatches(\n mapRouteProperties2,\n manifest,\n fetchRequest,\n fetcherMatches,\n fetcherMatch,\n lazyRoutePropertiesToSkip,\n scopedContext\n );\n }\n } else {\n let shouldRevalidateArgs = {\n ...baseShouldRevalidateArgs,\n defaultShouldRevalidate: shouldSkipRevalidation ? false : isRevalidationRequired\n };\n if (shouldRevalidateLoader(fetcherMatch, shouldRevalidateArgs)) {\n fetcherDsMatches = getTargetedDataStrategyMatches(\n mapRouteProperties2,\n manifest,\n fetchRequest,\n fetcherMatches,\n fetcherMatch,\n lazyRoutePropertiesToSkip,\n scopedContext,\n shouldRevalidateArgs\n );\n }\n }\n if (fetcherDsMatches) {\n revalidatingFetchers.push({\n key,\n routeId: f.routeId,\n path: f.path,\n matches: fetcherDsMatches,\n match: fetcherMatch,\n request: fetchRequest,\n controller: fetchController\n });\n }\n });\n return { dsMatches, revalidatingFetchers };\n}\nfunction shouldLoadRouteOnHydration(route, loaderData, errors) {\n if (route.lazy) {\n return true;\n }\n if (!route.loader) {\n return false;\n }\n let hasData = loaderData != null && route.id in loaderData;\n let hasError = errors != null && errors[route.id] !== void 0;\n if (!hasData && hasError) {\n return false;\n }\n if (typeof route.loader === \"function\" && route.loader.hydrate === true) {\n return true;\n }\n return !hasData && !hasError;\n}\nfunction isNewLoader(currentLoaderData, currentMatch, match) {\n let isNew = (\n // [a] -> [a, b]\n !currentMatch || // [a, b] -> [a, c]\n match.route.id !== currentMatch.route.id\n );\n let isMissingData = !currentLoaderData.hasOwnProperty(match.route.id);\n return isNew || isMissingData;\n}\nfunction isNewRouteInstance(currentMatch, match) {\n let currentPath = currentMatch.route.path;\n return (\n // param change for this match, /users/123 -> /users/456\n currentMatch.pathname !== match.pathname || // splat param changed, which is not present in match.path\n // e.g. /files/images/avatar.jpg -> files/finances.xls\n currentPath != null && currentPath.endsWith(\"*\") && currentMatch.params[\"*\"] !== match.params[\"*\"]\n );\n}\nfunction shouldRevalidateLoader(loaderMatch, arg) {\n if (loaderMatch.route.shouldRevalidate) {\n let routeChoice = loaderMatch.route.shouldRevalidate(arg);\n if (typeof routeChoice === \"boolean\") {\n return routeChoice;\n }\n }\n return arg.defaultShouldRevalidate;\n}\nfunction patchRoutesImpl(routeId, children, routesToUse, manifest, mapRouteProperties2, allowElementMutations) {\n let childrenToPatch;\n if (routeId) {\n let route = manifest[routeId];\n invariant(\n route,\n `No route found to patch children into: routeId = ${routeId}`\n );\n if (!route.children) {\n route.children = [];\n }\n childrenToPatch = route.children;\n } else {\n childrenToPatch = routesToUse;\n }\n let uniqueChildren = [];\n let existingChildren = [];\n children.forEach((newRoute) => {\n let existingRoute = childrenToPatch.find(\n (existingRoute2) => isSameRoute(newRoute, existingRoute2)\n );\n if (existingRoute) {\n existingChildren.push({ existingRoute, newRoute });\n } else {\n uniqueChildren.push(newRoute);\n }\n });\n if (uniqueChildren.length > 0) {\n let newRoutes = convertRoutesToDataRoutes(\n uniqueChildren,\n mapRouteProperties2,\n [routeId || \"_\", \"patch\", String(childrenToPatch?.length || \"0\")],\n manifest\n );\n childrenToPatch.push(...newRoutes);\n }\n if (allowElementMutations && existingChildren.length > 0) {\n for (let i = 0; i < existingChildren.length; i++) {\n let { existingRoute, newRoute } = existingChildren[i];\n let existingRouteTyped = existingRoute;\n let [newRouteTyped] = convertRoutesToDataRoutes(\n [newRoute],\n mapRouteProperties2,\n [],\n // Doesn't matter for mutated routes since they already have an id\n {},\n // Don't touch the manifest here since we're updating in place\n true\n );\n Object.assign(existingRouteTyped, {\n element: newRouteTyped.element ? newRouteTyped.element : existingRouteTyped.element,\n errorElement: newRouteTyped.errorElement ? newRouteTyped.errorElement : existingRouteTyped.errorElement,\n hydrateFallbackElement: newRouteTyped.hydrateFallbackElement ? newRouteTyped.hydrateFallbackElement : existingRouteTyped.hydrateFallbackElement\n });\n }\n }\n}\nfunction isSameRoute(newRoute, existingRoute) {\n if (\"id\" in newRoute && \"id\" in existingRoute && newRoute.id === existingRoute.id) {\n return true;\n }\n if (!(newRoute.index === existingRoute.index && newRoute.path === existingRoute.path && newRoute.caseSensitive === existingRoute.caseSensitive)) {\n return false;\n }\n if ((!newRoute.children || newRoute.children.length === 0) && (!existingRoute.children || existingRoute.children.length === 0)) {\n return true;\n }\n return newRoute.children.every(\n (aChild, i) => existingRoute.children?.some((bChild) => isSameRoute(aChild, bChild))\n );\n}\nvar lazyRoutePropertyCache = /* @__PURE__ */ new WeakMap();\nvar loadLazyRouteProperty = ({\n key,\n route,\n manifest,\n mapRouteProperties: mapRouteProperties2\n}) => {\n let routeToUpdate = manifest[route.id];\n invariant(routeToUpdate, \"No route found in manifest\");\n if (!routeToUpdate.lazy || typeof routeToUpdate.lazy !== \"object\") {\n return;\n }\n let lazyFn = routeToUpdate.lazy[key];\n if (!lazyFn) {\n return;\n }\n let cache = lazyRoutePropertyCache.get(routeToUpdate);\n if (!cache) {\n cache = {};\n lazyRoutePropertyCache.set(routeToUpdate, cache);\n }\n let cachedPromise = cache[key];\n if (cachedPromise) {\n return cachedPromise;\n }\n let propertyPromise = (async () => {\n let isUnsupported = isUnsupportedLazyRouteObjectKey(key);\n let staticRouteValue = routeToUpdate[key];\n let isStaticallyDefined = staticRouteValue !== void 0 && key !== \"hasErrorBoundary\";\n if (isUnsupported) {\n warning(\n !isUnsupported,\n \"Route property \" + key + \" is not a supported lazy route property. This property will be ignored.\"\n );\n cache[key] = Promise.resolve();\n } else if (isStaticallyDefined) {\n warning(\n false,\n `Route \"${routeToUpdate.id}\" has a static property \"${key}\" defined. The lazy property will be ignored.`\n );\n } else {\n let value = await lazyFn();\n if (value != null) {\n Object.assign(routeToUpdate, { [key]: value });\n Object.assign(routeToUpdate, mapRouteProperties2(routeToUpdate));\n }\n }\n if (typeof routeToUpdate.lazy === \"object\") {\n routeToUpdate.lazy[key] = void 0;\n if (Object.values(routeToUpdate.lazy).every((value) => value === void 0)) {\n routeToUpdate.lazy = void 0;\n }\n }\n })();\n cache[key] = propertyPromise;\n return propertyPromise;\n};\nvar lazyRouteFunctionCache = /* @__PURE__ */ new WeakMap();\nfunction loadLazyRoute(route, type, manifest, mapRouteProperties2, lazyRoutePropertiesToSkip) {\n let routeToUpdate = manifest[route.id];\n invariant(routeToUpdate, \"No route found in manifest\");\n if (!route.lazy) {\n return {\n lazyRoutePromise: void 0,\n lazyHandlerPromise: void 0\n };\n }\n if (typeof route.lazy === \"function\") {\n let cachedPromise = lazyRouteFunctionCache.get(routeToUpdate);\n if (cachedPromise) {\n return {\n lazyRoutePromise: cachedPromise,\n lazyHandlerPromise: cachedPromise\n };\n }\n let lazyRoutePromise2 = (async () => {\n invariant(\n typeof route.lazy === \"function\",\n \"No lazy route function found\"\n );\n let lazyRoute = await route.lazy();\n let routeUpdates = {};\n for (let lazyRouteProperty in lazyRoute) {\n let lazyValue = lazyRoute[lazyRouteProperty];\n if (lazyValue === void 0) {\n continue;\n }\n let isUnsupported = isUnsupportedLazyRouteFunctionKey(lazyRouteProperty);\n let staticRouteValue = routeToUpdate[lazyRouteProperty];\n let isStaticallyDefined = staticRouteValue !== void 0 && // This property isn't static since it should always be updated based\n // on the route updates\n lazyRouteProperty !== \"hasErrorBoundary\";\n if (isUnsupported) {\n warning(\n !isUnsupported,\n \"Route property \" + lazyRouteProperty + \" is not a supported property to be returned from a lazy route function. This property will be ignored.\"\n );\n } else if (isStaticallyDefined) {\n warning(\n !isStaticallyDefined,\n `Route \"${routeToUpdate.id}\" has a static property \"${lazyRouteProperty}\" defined but its lazy function is also returning a value for this property. The lazy route property \"${lazyRouteProperty}\" will be ignored.`\n );\n } else {\n routeUpdates[lazyRouteProperty] = lazyValue;\n }\n }\n Object.assign(routeToUpdate, routeUpdates);\n Object.assign(routeToUpdate, {\n // To keep things framework agnostic, we use the provided `mapRouteProperties`\n // function to set the framework-aware properties (`element`/`hasErrorBoundary`)\n // since the logic will differ between frameworks.\n ...mapRouteProperties2(routeToUpdate),\n lazy: void 0\n });\n })();\n lazyRouteFunctionCache.set(routeToUpdate, lazyRoutePromise2);\n lazyRoutePromise2.catch(() => {\n });\n return {\n lazyRoutePromise: lazyRoutePromise2,\n lazyHandlerPromise: lazyRoutePromise2\n };\n }\n let lazyKeys = Object.keys(route.lazy);\n let lazyPropertyPromises = [];\n let lazyHandlerPromise = void 0;\n for (let key of lazyKeys) {\n if (lazyRoutePropertiesToSkip && lazyRoutePropertiesToSkip.includes(key)) {\n continue;\n }\n let promise = loadLazyRouteProperty({\n key,\n route,\n manifest,\n mapRouteProperties: mapRouteProperties2\n });\n if (promise) {\n lazyPropertyPromises.push(promise);\n if (key === type) {\n lazyHandlerPromise = promise;\n }\n }\n }\n let lazyRoutePromise = lazyPropertyPromises.length > 0 ? Promise.all(lazyPropertyPromises).then(() => {\n }) : void 0;\n lazyRoutePromise?.catch(() => {\n });\n lazyHandlerPromise?.catch(() => {\n });\n return {\n lazyRoutePromise,\n lazyHandlerPromise\n };\n}\nfunction isNonNullable(value) {\n return value !== void 0;\n}\nfunction loadLazyMiddlewareForMatches(matches, manifest, mapRouteProperties2) {\n let promises = matches.map(({ route }) => {\n if (typeof route.lazy !== \"object\" || !route.lazy.middleware) {\n return void 0;\n }\n return loadLazyRouteProperty({\n key: \"middleware\",\n route,\n manifest,\n mapRouteProperties: mapRouteProperties2\n });\n }).filter(isNonNullable);\n return promises.length > 0 ? Promise.all(promises) : void 0;\n}\nasync function defaultDataStrategy(args) {\n let matchesToLoad = args.matches.filter((m) => m.shouldLoad);\n let keyedResults = {};\n let results = await Promise.all(matchesToLoad.map((m) => m.resolve()));\n results.forEach((result, i) => {\n keyedResults[matchesToLoad[i].route.id] = result;\n });\n return keyedResults;\n}\nasync function defaultDataStrategyWithMiddleware(args) {\n if (!args.matches.some((m) => m.route.middleware)) {\n return defaultDataStrategy(args);\n }\n return runClientMiddlewarePipeline(args, () => defaultDataStrategy(args));\n}\nfunction runServerMiddlewarePipeline(args, handler, errorHandler) {\n return runMiddlewarePipeline(\n args,\n handler,\n processResult,\n isResponse,\n errorHandler\n );\n function processResult(result) {\n return isDataWithResponseInit(result) ? dataWithResponseInitToResponse(result) : result;\n }\n}\nfunction runClientMiddlewarePipeline(args, handler) {\n return runMiddlewarePipeline(\n args,\n handler,\n (r) => r,\n // No post-processing needed on the client\n isDataStrategyResults,\n errorHandler\n );\n function errorHandler(error, routeId, nextResult) {\n if (nextResult) {\n return Promise.resolve(\n Object.assign(nextResult.value, {\n [routeId]: { type: \"error\", result: error }\n })\n );\n } else {\n let { matches } = args;\n let maxBoundaryIdx = Math.min(\n // Throwing route\n matches.findIndex((m) => m.route.id === routeId) || 0,\n // or the shallowest route that needs to load data\n matches.findIndex((m) => m.unstable_shouldCallHandler()) || 0\n );\n let boundaryRouteId = findNearestBoundary(\n matches,\n matches[maxBoundaryIdx].route.id\n ).route.id;\n return Promise.resolve({\n [boundaryRouteId]: { type: \"error\", result: error }\n });\n }\n }\n}\nasync function runMiddlewarePipeline(args, handler, processResult, isResult, errorHandler) {\n let { matches, request, params, context } = args;\n let tuples = matches.flatMap(\n (m) => m.route.middleware ? m.route.middleware.map((fn) => [m.route.id, fn]) : []\n );\n let result = await callRouteMiddleware(\n { request, params, context },\n tuples,\n handler,\n processResult,\n isResult,\n errorHandler\n );\n return result;\n}\nasync function callRouteMiddleware(args, middlewares, handler, processResult, isResult, errorHandler, idx = 0) {\n let { request } = args;\n if (request.signal.aborted) {\n throw request.signal.reason ?? new Error(`Request aborted: ${request.method} ${request.url}`);\n }\n let tuple = middlewares[idx];\n if (!tuple) {\n let result = await handler();\n return result;\n }\n let [routeId, middleware] = tuple;\n let nextResult;\n let next = async () => {\n if (nextResult) {\n throw new Error(\"You may only call `next()` once per middleware\");\n }\n try {\n let result = await callRouteMiddleware(\n args,\n middlewares,\n handler,\n processResult,\n isResult,\n errorHandler,\n idx + 1\n );\n nextResult = { value: result };\n return nextResult.value;\n } catch (error) {\n nextResult = { value: await errorHandler(error, routeId, nextResult) };\n return nextResult.value;\n }\n };\n try {\n let value = await middleware(args, next);\n let result = value != null ? processResult(value) : void 0;\n if (isResult(result)) {\n return result;\n } else if (nextResult) {\n return result ?? nextResult.value;\n } else {\n nextResult = { value: await next() };\n return nextResult.value;\n }\n } catch (error) {\n let response = await errorHandler(error, routeId, nextResult);\n return response;\n }\n}\nfunction getDataStrategyMatchLazyPromises(mapRouteProperties2, manifest, request, match, lazyRoutePropertiesToSkip) {\n let lazyMiddlewarePromise = loadLazyRouteProperty({\n key: \"middleware\",\n route: match.route,\n manifest,\n mapRouteProperties: mapRouteProperties2\n });\n let lazyRoutePromises = loadLazyRoute(\n match.route,\n isMutationMethod(request.method) ? \"action\" : \"loader\",\n manifest,\n mapRouteProperties2,\n lazyRoutePropertiesToSkip\n );\n return {\n middleware: lazyMiddlewarePromise,\n route: lazyRoutePromises.lazyRoutePromise,\n handler: lazyRoutePromises.lazyHandlerPromise\n };\n}\nfunction getDataStrategyMatch(mapRouteProperties2, manifest, request, match, lazyRoutePropertiesToSkip, scopedContext, shouldLoad, unstable_shouldRevalidateArgs = null) {\n let isUsingNewApi = false;\n let _lazyPromises = getDataStrategyMatchLazyPromises(\n mapRouteProperties2,\n manifest,\n request,\n match,\n lazyRoutePropertiesToSkip\n );\n return {\n ...match,\n _lazyPromises,\n shouldLoad,\n unstable_shouldRevalidateArgs,\n unstable_shouldCallHandler(defaultShouldRevalidate) {\n isUsingNewApi = true;\n if (!unstable_shouldRevalidateArgs) {\n return shouldLoad;\n }\n if (typeof defaultShouldRevalidate === \"boolean\") {\n return shouldRevalidateLoader(match, {\n ...unstable_shouldRevalidateArgs,\n defaultShouldRevalidate\n });\n }\n return shouldRevalidateLoader(match, unstable_shouldRevalidateArgs);\n },\n resolve(handlerOverride) {\n if (isUsingNewApi || shouldLoad || handlerOverride && !isMutationMethod(request.method) && (match.route.lazy || match.route.loader)) {\n return callLoaderOrAction({\n request,\n match,\n lazyHandlerPromise: _lazyPromises?.handler,\n lazyRoutePromise: _lazyPromises?.route,\n handlerOverride,\n scopedContext\n });\n }\n return Promise.resolve({ type: \"data\" /* data */, result: void 0 });\n }\n };\n}\nfunction getTargetedDataStrategyMatches(mapRouteProperties2, manifest, request, matches, targetMatch, lazyRoutePropertiesToSkip, scopedContext, shouldRevalidateArgs = null) {\n return matches.map((match) => {\n if (match.route.id !== targetMatch.route.id) {\n return {\n ...match,\n shouldLoad: false,\n unstable_shouldRevalidateArgs: shouldRevalidateArgs,\n unstable_shouldCallHandler: () => false,\n _lazyPromises: getDataStrategyMatchLazyPromises(\n mapRouteProperties2,\n manifest,\n request,\n match,\n lazyRoutePropertiesToSkip\n ),\n resolve: () => Promise.resolve({ type: \"data\", result: void 0 })\n };\n }\n return getDataStrategyMatch(\n mapRouteProperties2,\n manifest,\n request,\n match,\n lazyRoutePropertiesToSkip,\n scopedContext,\n true,\n shouldRevalidateArgs\n );\n });\n}\nasync function callDataStrategyImpl(dataStrategyImpl, request, matches, fetcherKey, scopedContext, isStaticHandler) {\n if (matches.some((m) => m._lazyPromises?.middleware)) {\n await Promise.all(matches.map((m) => m._lazyPromises?.middleware));\n }\n let dataStrategyArgs = {\n request,\n params: matches[0].params,\n context: scopedContext,\n matches\n };\n let runClientMiddleware = isStaticHandler ? () => {\n throw new Error(\n \"You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`\"\n );\n } : (cb) => {\n let typedDataStrategyArgs = dataStrategyArgs;\n return runClientMiddlewarePipeline(typedDataStrategyArgs, () => {\n return cb({\n ...typedDataStrategyArgs,\n fetcherKey,\n runClientMiddleware: () => {\n throw new Error(\n \"Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler\"\n );\n }\n });\n });\n };\n let results = await dataStrategyImpl({\n ...dataStrategyArgs,\n fetcherKey,\n runClientMiddleware\n });\n try {\n await Promise.all(\n matches.flatMap((m) => [\n m._lazyPromises?.handler,\n m._lazyPromises?.route\n ])\n );\n } catch (e) {\n }\n return results;\n}\nasync function callLoaderOrAction({\n request,\n match,\n lazyHandlerPromise,\n lazyRoutePromise,\n handlerOverride,\n scopedContext\n}) {\n let result;\n let onReject;\n let isAction = isMutationMethod(request.method);\n let type = isAction ? \"action\" : \"loader\";\n let runHandler = (handler) => {\n let reject;\n let abortPromise = new Promise((_, r) => reject = r);\n onReject = () => reject();\n request.signal.addEventListener(\"abort\", onReject);\n let actualHandler = (ctx) => {\n if (typeof handler !== \"function\") {\n return Promise.reject(\n new Error(\n `You cannot call the handler for a route which defines a boolean \"${type}\" [routeId: ${match.route.id}]`\n )\n );\n }\n return handler(\n {\n request,\n params: match.params,\n context: scopedContext\n },\n ...ctx !== void 0 ? [ctx] : []\n );\n };\n let handlerPromise = (async () => {\n try {\n let val = await (handlerOverride ? handlerOverride((ctx) => actualHandler(ctx)) : actualHandler());\n return { type: \"data\", result: val };\n } catch (e) {\n return { type: \"error\", result: e };\n }\n })();\n return Promise.race([handlerPromise, abortPromise]);\n };\n try {\n let handler = isAction ? match.route.action : match.route.loader;\n if (lazyHandlerPromise || lazyRoutePromise) {\n if (handler) {\n let handlerError;\n let [value] = await Promise.all([\n // If the handler throws, don't let it immediately bubble out,\n // since we need to let the lazy() execution finish so we know if this\n // route has a boundary that can handle the error\n runHandler(handler).catch((e) => {\n handlerError = e;\n }),\n // Ensure all lazy route promises are resolved before continuing\n lazyHandlerPromise,\n lazyRoutePromise\n ]);\n if (handlerError !== void 0) {\n throw handlerError;\n }\n result = value;\n } else {\n await lazyHandlerPromise;\n let handler2 = isAction ? match.route.action : match.route.loader;\n if (handler2) {\n [result] = await Promise.all([runHandler(handler2), lazyRoutePromise]);\n } else if (type === \"action\") {\n let url = new URL(request.url);\n let pathname = url.pathname + url.search;\n throw getInternalRouterError(405, {\n method: request.method,\n pathname,\n routeId: match.route.id\n });\n } else {\n return { type: \"data\" /* data */, result: void 0 };\n }\n }\n } else if (!handler) {\n let url = new URL(request.url);\n let pathname = url.pathname + url.search;\n throw getInternalRouterError(404, {\n pathname\n });\n } else {\n result = await runHandler(handler);\n }\n } catch (e) {\n return { type: \"error\" /* error */, result: e };\n } finally {\n if (onReject) {\n request.signal.removeEventListener(\"abort\", onReject);\n }\n }\n return result;\n}\nasync function parseResponseBody(response) {\n let contentType = response.headers.get(\"Content-Type\");\n if (contentType && /\\bapplication\\/json\\b/.test(contentType)) {\n return response.body == null ? null : response.json();\n }\n return response.text();\n}\nasync function convertDataStrategyResultToDataResult(dataStrategyResult) {\n let { result, type } = dataStrategyResult;\n if (isResponse(result)) {\n let data2;\n try {\n data2 = await parseResponseBody(result);\n } catch (e) {\n return { type: \"error\" /* error */, error: e };\n }\n if (type === \"error\" /* error */) {\n return {\n type: \"error\" /* error */,\n error: new ErrorResponseImpl(result.status, result.statusText, data2),\n statusCode: result.status,\n headers: result.headers\n };\n }\n return {\n type: \"data\" /* data */,\n data: data2,\n statusCode: result.status,\n headers: result.headers\n };\n }\n if (type === \"error\" /* error */) {\n if (isDataWithResponseInit(result)) {\n if (result.data instanceof Error) {\n return {\n type: \"error\" /* error */,\n error: result.data,\n statusCode: result.init?.status,\n headers: result.init?.headers ? new Headers(result.init.headers) : void 0\n };\n }\n return {\n type: \"error\" /* error */,\n error: new ErrorResponseImpl(\n result.init?.status || 500,\n void 0,\n result.data\n ),\n statusCode: isRouteErrorResponse(result) ? result.status : void 0,\n headers: result.init?.headers ? new Headers(result.init.headers) : void 0\n };\n }\n return {\n type: \"error\" /* error */,\n error: result,\n statusCode: isRouteErrorResponse(result) ? result.status : void 0\n };\n }\n if (isDataWithResponseInit(result)) {\n return {\n type: \"data\" /* data */,\n data: result.data,\n statusCode: result.init?.status,\n headers: result.init?.headers ? new Headers(result.init.headers) : void 0\n };\n }\n return { type: \"data\" /* data */, data: result };\n}\nfunction normalizeRelativeRoutingRedirectResponse(response, request, routeId, matches, basename) {\n let location = response.headers.get(\"Location\");\n invariant(\n location,\n \"Redirects returned/thrown from loaders/actions must have a Location header\"\n );\n if (!isAbsoluteUrl(location)) {\n let trimmedMatches = matches.slice(\n 0,\n matches.findIndex((m) => m.route.id === routeId) + 1\n );\n location = normalizeTo(\n new URL(request.url),\n trimmedMatches,\n basename,\n location\n );\n response.headers.set(\"Location\", location);\n }\n return response;\n}\nfunction normalizeRedirectLocation(location, currentUrl, basename) {\n if (isAbsoluteUrl(location)) {\n let normalizedLocation = location;\n let url = normalizedLocation.startsWith(\"//\") ? new URL(currentUrl.protocol + normalizedLocation) : new URL(normalizedLocation);\n let isSameBasename = stripBasename(url.pathname, basename) != null;\n if (url.origin === currentUrl.origin && isSameBasename) {\n return url.pathname + url.search + url.hash;\n }\n }\n return location;\n}\nfunction createClientSideRequest(history, location, signal, submission) {\n let url = history.createURL(stripHashFromPath(location)).toString();\n let init = { signal };\n if (submission && isMutationMethod(submission.formMethod)) {\n let { formMethod, formEncType } = submission;\n init.method = formMethod.toUpperCase();\n if (formEncType === \"application/json\") {\n init.headers = new Headers({ \"Content-Type\": formEncType });\n init.body = JSON.stringify(submission.json);\n } else if (formEncType === \"text/plain\") {\n init.body = submission.text;\n } else if (formEncType === \"application/x-www-form-urlencoded\" && submission.formData) {\n init.body = convertFormDataToSearchParams(submission.formData);\n } else {\n init.body = submission.formData;\n }\n }\n return new Request(url, init);\n}\nfunction convertFormDataToSearchParams(formData) {\n let searchParams = new URLSearchParams();\n for (let [key, value] of formData.entries()) {\n searchParams.append(key, typeof value === \"string\" ? value : value.name);\n }\n return searchParams;\n}\nfunction convertSearchParamsToFormData(searchParams) {\n let formData = new FormData();\n for (let [key, value] of searchParams.entries()) {\n formData.append(key, value);\n }\n return formData;\n}\nfunction processRouteLoaderData(matches, results, pendingActionResult, isStaticHandler = false, skipLoaderErrorBubbling = false) {\n let loaderData = {};\n let errors = null;\n let statusCode;\n let foundError = false;\n let loaderHeaders = {};\n let pendingError = pendingActionResult && isErrorResult(pendingActionResult[1]) ? pendingActionResult[1].error : void 0;\n matches.forEach((match) => {\n if (!(match.route.id in results)) {\n return;\n }\n let id = match.route.id;\n let result = results[id];\n invariant(\n !isRedirectResult(result),\n \"Cannot handle redirect results in processLoaderData\"\n );\n if (isErrorResult(result)) {\n let error = result.error;\n if (pendingError !== void 0) {\n error = pendingError;\n pendingError = void 0;\n }\n errors = errors || {};\n if (skipLoaderErrorBubbling) {\n errors[id] = error;\n } else {\n let boundaryMatch = findNearestBoundary(matches, id);\n if (errors[boundaryMatch.route.id] == null) {\n errors[boundaryMatch.route.id] = error;\n }\n }\n if (!isStaticHandler) {\n loaderData[id] = ResetLoaderDataSymbol;\n }\n if (!foundError) {\n foundError = true;\n statusCode = isRouteErrorResponse(result.error) ? result.error.status : 500;\n }\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n } else {\n loaderData[id] = result.data;\n if (result.statusCode && result.statusCode !== 200 && !foundError) {\n statusCode = result.statusCode;\n }\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n }\n });\n if (pendingError !== void 0 && pendingActionResult) {\n errors = { [pendingActionResult[0]]: pendingError };\n if (pendingActionResult[2]) {\n loaderData[pendingActionResult[2]] = void 0;\n }\n }\n return {\n loaderData,\n errors,\n statusCode: statusCode || 200,\n loaderHeaders\n };\n}\nfunction processLoaderData(state, matches, results, pendingActionResult, revalidatingFetchers, fetcherResults) {\n let { loaderData, errors } = processRouteLoaderData(\n matches,\n results,\n pendingActionResult\n );\n revalidatingFetchers.filter((f) => !f.matches || f.matches.some((m) => m.shouldLoad)).forEach((rf) => {\n let { key, match, controller } = rf;\n if (controller && controller.signal.aborted) {\n return;\n }\n let result = fetcherResults[key];\n invariant(result, \"Did not find corresponding fetcher result\");\n if (isErrorResult(result)) {\n let boundaryMatch = findNearestBoundary(state.matches, match?.route.id);\n if (!(errors && errors[boundaryMatch.route.id])) {\n errors = {\n ...errors,\n [boundaryMatch.route.id]: result.error\n };\n }\n state.fetchers.delete(key);\n } else if (isRedirectResult(result)) {\n invariant(false, \"Unhandled fetcher revalidation redirect\");\n } else {\n let doneFetcher = getDoneFetcher(result.data);\n state.fetchers.set(key, doneFetcher);\n }\n });\n return { loaderData, errors };\n}\nfunction mergeLoaderData(loaderData, newLoaderData, matches, errors) {\n let mergedLoaderData = Object.entries(newLoaderData).filter(([, v]) => v !== ResetLoaderDataSymbol).reduce((merged, [k, v]) => {\n merged[k] = v;\n return merged;\n }, {});\n for (let match of matches) {\n let id = match.route.id;\n if (!newLoaderData.hasOwnProperty(id) && loaderData.hasOwnProperty(id) && match.route.loader) {\n mergedLoaderData[id] = loaderData[id];\n }\n if (errors && errors.hasOwnProperty(id)) {\n break;\n }\n }\n return mergedLoaderData;\n}\nfunction getActionDataForCommit(pendingActionResult) {\n if (!pendingActionResult) {\n return {};\n }\n return isErrorResult(pendingActionResult[1]) ? {\n // Clear out prior actionData on errors\n actionData: {}\n } : {\n actionData: {\n [pendingActionResult[0]]: pendingActionResult[1].data\n }\n };\n}\nfunction findNearestBoundary(matches, routeId) {\n let eligibleMatches = routeId ? matches.slice(0, matches.findIndex((m) => m.route.id === routeId) + 1) : [...matches];\n return eligibleMatches.reverse().find((m) => m.route.hasErrorBoundary === true) || matches[0];\n}\nfunction getShortCircuitMatches(routes) {\n let route = routes.length === 1 ? routes[0] : routes.find((r) => r.index || !r.path || r.path === \"/\") || {\n id: `__shim-error-route__`\n };\n return {\n matches: [\n {\n params: {},\n pathname: \"\",\n pathnameBase: \"\",\n route\n }\n ],\n route\n };\n}\nfunction getInternalRouterError(status, {\n pathname,\n routeId,\n method,\n type,\n message\n} = {}) {\n let statusText = \"Unknown Server Error\";\n let errorMessage = \"Unknown @remix-run/router error\";\n if (status === 400) {\n statusText = \"Bad Request\";\n if (method && pathname && routeId) {\n errorMessage = `You made a ${method} request to \"${pathname}\" but did not provide a \\`loader\\` for route \"${routeId}\", so there is no way to handle the request.`;\n } else if (type === \"invalid-body\") {\n errorMessage = \"Unable to encode submission body\";\n }\n } else if (status === 403) {\n statusText = \"Forbidden\";\n errorMessage = `Route \"${routeId}\" does not match URL \"${pathname}\"`;\n } else if (status === 404) {\n statusText = \"Not Found\";\n errorMessage = `No route matches URL \"${pathname}\"`;\n } else if (status === 405) {\n statusText = \"Method Not Allowed\";\n if (method && pathname && routeId) {\n errorMessage = `You made a ${method.toUpperCase()} request to \"${pathname}\" but did not provide an \\`action\\` for route \"${routeId}\", so there is no way to handle the request.`;\n } else if (method) {\n errorMessage = `Invalid request method \"${method.toUpperCase()}\"`;\n }\n }\n return new ErrorResponseImpl(\n status || 500,\n statusText,\n new Error(errorMessage),\n true\n );\n}\nfunction findRedirect(results) {\n let entries = Object.entries(results);\n for (let i = entries.length - 1; i >= 0; i--) {\n let [key, result] = entries[i];\n if (isRedirectResult(result)) {\n return { key, result };\n }\n }\n}\nfunction stripHashFromPath(path) {\n let parsedPath = typeof path === \"string\" ? parsePath(path) : path;\n return createPath({ ...parsedPath, hash: \"\" });\n}\nfunction isHashChangeOnly(a, b) {\n if (a.pathname !== b.pathname || a.search !== b.search) {\n return false;\n }\n if (a.hash === \"\") {\n return b.hash !== \"\";\n } else if (a.hash === b.hash) {\n return true;\n } else if (b.hash !== \"\") {\n return true;\n }\n return false;\n}\nfunction dataWithResponseInitToResponse(data2) {\n return Response.json(data2.data, data2.init ?? void 0);\n}\nfunction dataWithResponseInitToErrorResponse(data2) {\n return new ErrorResponseImpl(\n data2.init?.status ?? 500,\n data2.init?.statusText ?? \"Internal Server Error\",\n data2.data\n );\n}\nfunction isDataStrategyResults(result) {\n return result != null && typeof result === \"object\" && Object.entries(result).every(\n ([key, value]) => typeof key === \"string\" && isDataStrategyResult(value)\n );\n}\nfunction isDataStrategyResult(result) {\n return result != null && typeof result === \"object\" && \"type\" in result && \"result\" in result && (result.type === \"data\" /* data */ || result.type === \"error\" /* error */);\n}\nfunction isRedirectDataStrategyResult(result) {\n return isResponse(result.result) && redirectStatusCodes.has(result.result.status);\n}\nfunction isErrorResult(result) {\n return result.type === \"error\" /* error */;\n}\nfunction isRedirectResult(result) {\n return (result && result.type) === \"redirect\" /* redirect */;\n}\nfunction isDataWithResponseInit(value) {\n return typeof value === \"object\" && value != null && \"type\" in value && \"data\" in value && \"init\" in value && value.type === \"DataWithResponseInit\";\n}\nfunction isResponse(value) {\n return value != null && typeof value.status === \"number\" && typeof value.statusText === \"string\" && typeof value.headers === \"object\" && typeof value.body !== \"undefined\";\n}\nfunction isRedirectStatusCode(statusCode) {\n return redirectStatusCodes.has(statusCode);\n}\nfunction isRedirectResponse(result) {\n return isResponse(result) && isRedirectStatusCode(result.status) && result.headers.has(\"Location\");\n}\nfunction isValidMethod(method) {\n return validRequestMethods.has(method.toUpperCase());\n}\nfunction isMutationMethod(method) {\n return validMutationMethods.has(method.toUpperCase());\n}\nfunction hasNakedIndexQuery(search) {\n return new URLSearchParams(search).getAll(\"index\").some((v) => v === \"\");\n}\nfunction getTargetMatch(matches, location) {\n let search = typeof location === \"string\" ? parsePath(location).search : location.search;\n if (matches[matches.length - 1].route.index && hasNakedIndexQuery(search || \"\")) {\n return matches[matches.length - 1];\n }\n let pathMatches = getPathContributingMatches(matches);\n return pathMatches[pathMatches.length - 1];\n}\nfunction getSubmissionFromNavigation(navigation) {\n let { formMethod, formAction, formEncType, text, formData, json } = navigation;\n if (!formMethod || !formAction || !formEncType) {\n return;\n }\n if (text != null) {\n return {\n formMethod,\n formAction,\n formEncType,\n formData: void 0,\n json: void 0,\n text\n };\n } else if (formData != null) {\n return {\n formMethod,\n formAction,\n formEncType,\n formData,\n json: void 0,\n text: void 0\n };\n } else if (json !== void 0) {\n return {\n formMethod,\n formAction,\n formEncType,\n formData: void 0,\n json,\n text: void 0\n };\n }\n}\nfunction getLoadingNavigation(location, submission) {\n if (submission) {\n let navigation = {\n state: \"loading\",\n location,\n formMethod: submission.formMethod,\n formAction: submission.formAction,\n formEncType: submission.formEncType,\n formData: submission.formData,\n json: submission.json,\n text: submission.text\n };\n return navigation;\n } else {\n let navigation = {\n state: \"loading\",\n location,\n formMethod: void 0,\n formAction: void 0,\n formEncType: void 0,\n formData: void 0,\n json: void 0,\n text: void 0\n };\n return navigation;\n }\n}\nfunction getSubmittingNavigation(location, submission) {\n let navigation = {\n state: \"submitting\",\n location,\n formMethod: submission.formMethod,\n formAction: submission.formAction,\n formEncType: submission.formEncType,\n formData: submission.formData,\n json: submission.json,\n text: submission.text\n };\n return navigation;\n}\nfunction getLoadingFetcher(submission, data2) {\n if (submission) {\n let fetcher = {\n state: \"loading\",\n formMethod: submission.formMethod,\n formAction: submission.formAction,\n formEncType: submission.formEncType,\n formData: submission.formData,\n json: submission.json,\n text: submission.text,\n data: data2\n };\n return fetcher;\n } else {\n let fetcher = {\n state: \"loading\",\n formMethod: void 0,\n formAction: void 0,\n formEncType: void 0,\n formData: void 0,\n json: void 0,\n text: void 0,\n data: data2\n };\n return fetcher;\n }\n}\nfunction getSubmittingFetcher(submission, existingFetcher) {\n let fetcher = {\n state: \"submitting\",\n formMethod: submission.formMethod,\n formAction: submission.formAction,\n formEncType: submission.formEncType,\n formData: submission.formData,\n json: submission.json,\n text: submission.text,\n data: existingFetcher ? existingFetcher.data : void 0\n };\n return fetcher;\n}\nfunction getDoneFetcher(data2) {\n let fetcher = {\n state: \"idle\",\n formMethod: void 0,\n formAction: void 0,\n formEncType: void 0,\n formData: void 0,\n json: void 0,\n text: void 0,\n data: data2\n };\n return fetcher;\n}\nfunction restoreAppliedTransitions(_window, transitions) {\n try {\n let sessionPositions = _window.sessionStorage.getItem(\n TRANSITIONS_STORAGE_KEY\n );\n if (sessionPositions) {\n let json = JSON.parse(sessionPositions);\n for (let [k, v] of Object.entries(json || {})) {\n if (v && Array.isArray(v)) {\n transitions.set(k, new Set(v || []));\n }\n }\n }\n } catch (e) {\n }\n}\nfunction persistAppliedTransitions(_window, transitions) {\n if (transitions.size > 0) {\n let json = {};\n for (let [k, v] of transitions) {\n json[k] = [...v];\n }\n try {\n _window.sessionStorage.setItem(\n TRANSITIONS_STORAGE_KEY,\n JSON.stringify(json)\n );\n } catch (error) {\n warning(\n false,\n `Failed to save applied view transitions in sessionStorage (${error}).`\n );\n }\n }\n}\nfunction createDeferred() {\n let resolve;\n let reject;\n let promise = new Promise((res, rej) => {\n resolve = async (val) => {\n res(val);\n try {\n await promise;\n } catch (e) {\n }\n };\n reject = async (error) => {\n rej(error);\n try {\n await promise;\n } catch (e) {\n }\n };\n });\n return {\n promise,\n //@ts-ignore\n resolve,\n //@ts-ignore\n reject\n };\n}\n\n// lib/context.ts\nimport * as React from \"react\";\nvar DataRouterContext = React.createContext(null);\nDataRouterContext.displayName = \"DataRouter\";\nvar DataRouterStateContext = React.createContext(null);\nDataRouterStateContext.displayName = \"DataRouterState\";\nvar RSCRouterContext = React.createContext(false);\nfunction useIsRSCRouterContext() {\n return React.useContext(RSCRouterContext);\n}\nvar ViewTransitionContext = React.createContext({\n isTransitioning: false\n});\nViewTransitionContext.displayName = \"ViewTransition\";\nvar FetchersContext = React.createContext(\n /* @__PURE__ */ new Map()\n);\nFetchersContext.displayName = \"Fetchers\";\nvar AwaitContext = React.createContext(null);\nAwaitContext.displayName = \"Await\";\nvar AwaitContextProvider = (props) => React.createElement(AwaitContext.Provider, props);\nvar NavigationContext = React.createContext(\n null\n);\nNavigationContext.displayName = \"Navigation\";\nvar LocationContext = React.createContext(\n null\n);\nLocationContext.displayName = \"Location\";\nvar RouteContext = React.createContext({\n outlet: null,\n matches: [],\n isDataRoute: false\n});\nRouteContext.displayName = \"Route\";\nvar RouteErrorContext = React.createContext(null);\nRouteErrorContext.displayName = \"RouteError\";\nvar ENABLE_DEV_WARNINGS = true;\n\n// lib/hooks.tsx\nimport * as React2 from \"react\";\nfunction useHref(to, { relative } = {}) {\n invariant(\n useInRouterContext(),\n // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n `useHref() may be used only in the context of a <Router> component.`\n );\n let { basename, navigator } = React2.useContext(NavigationContext);\n let { hash, pathname, search } = useResolvedPath(to, { relative });\n let joinedPathname = pathname;\n if (basename !== \"/\") {\n joinedPathname = pathname === \"/\" ? basename : joinPaths([basename, pathname]);\n }\n return navigator.createHref({ pathname: joinedPathname, search, hash });\n}\nfunction useInRouterContext() {\n return React2.useContext(LocationContext) != null;\n}\nfunction useLocation() {\n invariant(\n useInRouterContext(),\n // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n `useLocation() may be used only in the context of a <Router> component.`\n );\n return React2.useContext(LocationContext).location;\n}\nfunction useNavigationType() {\n return React2.useContext(LocationContext).navigationType;\n}\nfunction useMatch(pattern) {\n invariant(\n useInRouterContext(),\n // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n `useMatch() may be used only in the context of a <Router> component.`\n );\n let { pathname } = useLocation();\n return React2.useMemo(\n () => matchPath(pattern, decodePath(pathname)),\n [pathname, pattern]\n );\n}\nvar navigateEffectWarning = `You should call navigate() in a React.useEffect(), not when your component is first rendered.`;\nfunction useIsomorphicLayoutEffect(cb) {\n let isStatic = React2.useContext(NavigationContext).static;\n if (!isStatic) {\n React2.useLayoutEffect(cb);\n }\n}\nfunction useNavigate() {\n let { isDataRoute } = React2.useContext(RouteContext);\n return isDataRoute ? useNavigateStable() : useNavigateUnstable();\n}\nfunction useNavigateUnstable() {\n invariant(\n useInRouterContext(),\n // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n `useNavigate() may be used only in the context of a <Router> component.`\n );\n let dataRouterContext = React2.useContext(DataRouterContext);\n let { basename, navigator } = React2.useContext(NavigationContext);\n let { matches } = React2.useContext(RouteContext);\n let { pathname: locationPathname } = useLocation();\n let routePathnamesJson = JSON.stringify(getResolveToMatches(matches));\n let activeRef = React2.useRef(false);\n useIsomorphicLayoutEffect(() => {\n activeRef.current = true;\n });\n let navigate = React2.useCallback(\n (to, options = {}) => {\n warning(activeRef.current, navigateEffectWarning);\n if (!activeRef.current) return;\n if (typeof to === \"number\") {\n navigator.go(to);\n return;\n }\n let path = resolveTo(\n to,\n JSON.parse(routePathnamesJson),\n locationPathname,\n options.relative === \"path\"\n );\n if (dataRouterContext == null && basename !== \"/\") {\n path.pathname = path.pathname === \"/\" ? basename : joinPaths([basename, path.pathname]);\n }\n (!!options.replace ? navigator.replace : navigator.push)(\n path,\n options.state,\n options\n );\n },\n [\n basename,\n navigator,\n routePathnamesJson,\n locationPathname,\n dataRouterContext\n ]\n );\n return navigate;\n}\nvar OutletContext = React2.createContext(null);\nfunction useOutletContext() {\n return React2.useContext(OutletContext);\n}\nfunction useOutlet(context) {\n let outlet = React2.useContext(RouteContext).outlet;\n if (outlet) {\n return /* @__PURE__ */ React2.createElement(OutletContext.Provider, { value: context }, outlet);\n }\n return outlet;\n}\nfunction useParams() {\n let { matches } = React2.useContext(RouteContext);\n let routeMatch = matches[matches.length - 1];\n return routeMatch ? routeMatch.params : {};\n}\nfunction useResolvedPath(to, { relative } = {}) {\n let { matches } = React2.useContext(RouteContext);\n let { pathname: locationPathname } = useLocation();\n let routePathnamesJson = JSON.stringify(getResolveToMatches(matches));\n return React2.useMemo(\n () => resolveTo(\n to,\n JSON.parse(routePathnamesJson),\n locationPathname,\n relative === \"path\"\n ),\n [to, routePathnamesJson, locationPathname, relative]\n );\n}\nfunction useRoutes(routes, locationArg) {\n return useRoutesImpl(routes, locationArg);\n}\nfunction useRoutesImpl(routes, locationArg, dataRouterState, unstable_onError, future) {\n invariant(\n useInRouterContext(),\n // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n `useRoutes() may be used only in the context of a <Router> component.`\n );\n let { navigator } = React2.useContext(NavigationContext);\n let { matches: parentMatches } = React2.useContext(RouteContext);\n let routeMatch = parentMatches[parentMatches.length - 1];\n let parentParams = routeMatch ? routeMatch.params : {};\n let parentPathname = routeMatch ? routeMatch.pathname : \"/\";\n let parentPathnameBase = routeMatch ? routeMatch.pathnameBase : \"/\";\n let parentRoute = routeMatch && routeMatch.route;\n if (ENABLE_DEV_WARNINGS) {\n let parentPath = parentRoute && parentRoute.path || \"\";\n warningOnce(\n parentPathname,\n !parentRoute || parentPath.endsWith(\"*\") || parentPath.endsWith(\"*?\"),\n `You rendered descendant <Routes> (or called \\`useRoutes()\\`) at \"${parentPathname}\" (under <Route path=\"${parentPath}\">) but the parent route path has no trailing \"*\". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path=\"${parentPath}\"> to <Route path=\"${parentPath === \"/\" ? \"*\" : `${parentPath}/*`}\">.`\n );\n }\n let locationFromContext = useLocation();\n let location;\n if (locationArg) {\n let parsedLocationArg = typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n invariant(\n parentPathnameBase === \"/\" || parsedLocationArg.pathname?.startsWith(parentPathnameBase),\n `When overriding the location using \\`<Routes location>\\` or \\`useRoutes(routes, location)\\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is \"${parentPathnameBase}\" but pathname \"${parsedLocationArg.pathname}\" was given in the \\`location\\` prop.`\n );\n location = parsedLocationArg;\n } else {\n location = locationFromContext;\n }\n let pathname = location.pathname || \"/\";\n let remainingPathname = pathname;\n if (parentPathnameBase !== \"/\") {\n let parentSegments = parentPathnameBase.replace(/^\\//, \"\").split(\"/\");\n let segments = pathname.replace(/^\\//, \"\").split(\"/\");\n remainingPathname = \"/\" + segments.slice(parentSegments.length).join(\"/\");\n }\n let matches = matchRoutes(routes, { pathname: remainingPathname });\n if (ENABLE_DEV_WARNINGS) {\n warning(\n parentRoute || matches != null,\n `No routes matched location \"${location.pathname}${location.search}${location.hash}\" `\n );\n warning(\n matches == null || matches[matches.length - 1].route.element !== void 0 || matches[matches.length - 1].route.Component !== void 0 || matches[matches.length - 1].route.lazy !== void 0,\n `Matched leaf route at location \"${location.pathname}${location.search}${location.hash}\" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an \"empty\" page.`\n );\n }\n let renderedMatches = _renderMatches(\n matches && matches.map(\n (match) => Object.assign({}, match, {\n params: Object.assign({}, parentParams, match.params),\n pathname: joinPaths([\n parentPathnameBase,\n // Re-encode pathnames that were decoded inside matchRoutes\n navigator.encodeLocation ? navigator.encodeLocation(match.pathname).pathname : match.pathname\n ]),\n pathnameBase: match.pathnameBase === \"/\" ? parentPathnameBase : joinPaths([\n parentPathnameBase,\n // Re-encode pathnames that were decoded inside matchRoutes\n navigator.encodeLocation ? navigator.encodeLocation(match.pathnameBase).pathname : match.pathnameBase\n ])\n })\n ),\n parentMatches,\n dataRouterState,\n unstable_onError,\n future\n );\n if (locationArg && renderedMatches) {\n return /* @__PURE__ */ React2.createElement(\n LocationContext.Provider,\n {\n value: {\n location: {\n pathname: \"/\",\n search: \"\",\n hash: \"\",\n state: null,\n key: \"default\",\n ...location\n },\n navigationType: \"POP\" /* Pop */\n }\n },\n renderedMatches\n );\n }\n return renderedMatches;\n}\nfunction DefaultErrorComponent() {\n let error = useRouteError();\n let message = isRouteErrorResponse(error) ? `${error.status} ${error.statusText}` : error instanceof Error ? error.message : JSON.stringify(error);\n let stack = error instanceof Error ? error.stack : null;\n let lightgrey = \"rgba(200,200,200, 0.5)\";\n let preStyles = { padding: \"0.5rem\", backgroundColor: lightgrey };\n let codeStyles = { padding: \"2px 4px\", backgroundColor: lightgrey };\n let devInfo = null;\n if (ENABLE_DEV_WARNINGS) {\n console.error(\n \"Error handled by React Router default ErrorBoundary:\",\n error\n );\n devInfo = /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(\"p\", null, \"\\u{1F4BF} Hey developer \\u{1F44B}\"), /* @__PURE__ */ React2.createElement(\"p\", null, \"You can provide a way better UX than this when your app throws errors by providing your own \", /* @__PURE__ */ React2.createElement(\"code\", { style: codeStyles }, \"ErrorBoundary\"), \" or\", \" \", /* @__PURE__ */ React2.createElement(\"code\", { style: codeStyles }, \"errorElement\"), \" prop on your route.\"));\n }\n return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(\"h2\", null, \"Unexpected Application Error!\"), /* @__PURE__ */ React2.createElement(\"h3\", { style: { fontStyle: \"italic\" } }, message), stack ? /* @__PURE__ */ React2.createElement(\"pre\", { style: preStyles }, stack) : null, devInfo);\n}\nvar defaultErrorElement = /* @__PURE__ */ React2.createElement(DefaultErrorComponent, null);\nvar RenderErrorBoundary = class extends React2.Component {\n constructor(props) {\n super(props);\n this.state = {\n location: props.location,\n revalidation: props.revalidation,\n error: props.error\n };\n }\n static getDerivedStateFromError(error) {\n return { error };\n }\n static getDerivedStateFromProps(props, state) {\n if (state.location !== props.location || state.revalidation !== \"idle\" && props.revalidation === \"idle\") {\n return {\n error: props.error,\n location: props.location,\n revalidation: props.revalidation\n };\n }\n return {\n error: props.error !== void 0 ? props.error : state.error,\n location: state.location,\n revalidation: props.revalidation || state.revalidation\n };\n }\n componentDidCatch(error, errorInfo) {\n if (this.props.unstable_onError) {\n this.props.unstable_onError(error, errorInfo);\n } else {\n console.error(\n \"React Router caught the following error during render\",\n error\n );\n }\n }\n render() {\n return this.state.error !== void 0 ? /* @__PURE__ */ React2.createElement(RouteContext.Provider, { value: this.props.routeContext }, /* @__PURE__ */ React2.createElement(\n RouteErrorContext.Provider,\n {\n value: this.state.error,\n children: this.props.component\n }\n )) : this.props.children;\n }\n};\nfunction RenderedRoute({ routeContext, match, children }) {\n let dataRouterContext = React2.useContext(DataRouterContext);\n if (dataRouterContext && dataRouterContext.static && dataRouterContext.staticContext && (match.route.errorElement || match.route.ErrorBoundary)) {\n dataRouterContext.staticContext._deepestRenderedBoundaryId = match.route.id;\n }\n return /* @__PURE__ */ React2.createElement(RouteContext.Provider, { value: routeContext }, children);\n}\nfunction _renderMatches(matches, parentMatches = [], dataRouterState = null, unstable_onError = null, future = null) {\n if (matches == null) {\n if (!dataRouterState) {\n return null;\n }\n if (dataRouterState.errors) {\n matches = dataRouterState.matches;\n } else if (parentMatches.length === 0 && !dataRouterState.initialized && dataRouterState.matches.length > 0) {\n matches = dataRouterState.matches;\n } else {\n return null;\n }\n }\n let renderedMatches = matches;\n let errors = dataRouterState?.errors;\n if (errors != null) {\n let errorIndex = renderedMatches.findIndex(\n (m) => m.route.id && errors?.[m.route.id] !== void 0\n );\n invariant(\n errorIndex >= 0,\n `Could not find a matching route for errors on route IDs: ${Object.keys(\n errors\n ).join(\",\")}`\n );\n renderedMatches = renderedMatches.slice(\n 0,\n Math.min(renderedMatches.length, errorIndex + 1)\n );\n }\n let renderFallback = false;\n let fallbackIndex = -1;\n if (dataRouterState) {\n for (let i = 0; i < renderedMatches.length; i++) {\n let match = renderedMatches[i];\n if (match.route.HydrateFallback || match.route.hydrateFallbackElement) {\n fallbackIndex = i;\n }\n if (match.route.id) {\n let { loaderData, errors: errors2 } = dataRouterState;\n let needsToRunLoader = match.route.loader && !loaderData.hasOwnProperty(match.route.id) && (!errors2 || errors2[match.route.id] === void 0);\n if (match.route.lazy || needsToRunLoader) {\n renderFallback = true;\n if (fallbackIndex >= 0) {\n renderedMatches = renderedMatches.slice(0, fallbackIndex + 1);\n } else {\n renderedMatches = [renderedMatches[0]];\n }\n break;\n }\n }\n }\n }\n return renderedMatches.reduceRight(\n (outlet, match, index) => {\n let error;\n let shouldRenderHydrateFallback = false;\n let errorElement = null;\n let hydrateFallbackElement = null;\n if (dataRouterState) {\n error = errors && match.route.id ? errors[match.route.id] : void 0;\n errorElement = match.route.errorElement || defaultErrorElement;\n if (renderFallback) {\n if (fallbackIndex < 0 && index === 0) {\n warningOnce(\n \"route-fallback\",\n false,\n \"No `HydrateFallback` element provided to render during initial hydration\"\n );\n shouldRenderHydrateFallback = true;\n hydrateFallbackElement = null;\n } else if (fallbackIndex === index) {\n shouldRenderHydrateFallback = true;\n hydrateFallbackElement = match.route.hydrateFallbackElement || null;\n }\n }\n }\n let matches2 = parentMatches.concat(renderedMatches.slice(0, index + 1));\n let getChildren = () => {\n let children;\n if (error) {\n children = errorElement;\n } else if (shouldRenderHydrateFallback) {\n children = hydrateFallbackElement;\n } else if (match.route.Component) {\n children = /* @__PURE__ */ React2.createElement(match.route.Component, null);\n } else if (match.route.element) {\n children = match.route.element;\n } else {\n children = outlet;\n }\n return /* @__PURE__ */ React2.createElement(\n RenderedRoute,\n {\n match,\n routeContext: {\n outlet,\n matches: matches2,\n isDataRoute: dataRouterState != null\n },\n children\n }\n );\n };\n return dataRouterState && (match.route.ErrorBoundary || match.route.errorElement || index === 0) ? /* @__PURE__ */ React2.createElement(\n RenderErrorBoundary,\n {\n location: dataRouterState.location,\n revalidation: dataRouterState.revalidation,\n component: errorElement,\n error,\n children: getChildren(),\n routeContext: { outlet: null, matches: matches2, isDataRoute: true },\n unstable_onError\n }\n ) : getChildren();\n },\n null\n );\n}\nfunction getDataRouterConsoleError(hookName) {\n return `${hookName} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;\n}\nfunction useDataRouterContext(hookName) {\n let ctx = React2.useContext(DataRouterContext);\n invariant(ctx, getDataRouterConsoleError(hookName));\n return ctx;\n}\nfunction useDataRouterState(hookName) {\n let state = React2.useContext(DataRouterStateContext);\n invariant(state, getDataRouterConsoleError(hookName));\n return state;\n}\nfunction useRouteContext(hookName) {\n let route = React2.useContext(RouteContext);\n invariant(route, getDataRouterConsoleError(hookName));\n return route;\n}\nfunction useCurrentRouteId(hookName) {\n let route = useRouteContext(hookName);\n let thisRoute = route.matches[route.matches.length - 1];\n invariant(\n thisRoute.route.id,\n `${hookName} can only be used on routes that contain a unique \"id\"`\n );\n return thisRoute.route.id;\n}\nfunction useRouteId() {\n return useCurrentRouteId(\"useRouteId\" /* UseRouteId */);\n}\nfunction useNavigation() {\n let state = useDataRouterState(\"useNavigation\" /* UseNavigation */);\n return state.navigation;\n}\nfunction useRevalidator() {\n let dataRouterContext = useDataRouterContext(\"useRevalidator\" /* UseRevalidator */);\n let state = useDataRouterState(\"useRevalidator\" /* UseRevalidator */);\n let revalidate = React2.useCallback(async () => {\n await dataRouterContext.router.revalidate();\n }, [dataRouterContext.router]);\n return React2.useMemo(\n () => ({ revalidate, state: state.revalidation }),\n [revalidate, state.revalidation]\n );\n}\nfunction useMatches() {\n let { matches, loaderData } = useDataRouterState(\n \"useMatches\" /* UseMatches */\n );\n return React2.useMemo(\n () => matches.map((m) => convertRouteMatchToUiMatch(m, loaderData)),\n [matches, loaderData]\n );\n}\nfunction useLoaderData() {\n let state = useDataRouterState(\"useLoaderData\" /* UseLoaderData */);\n let routeId = useCurrentRouteId(\"useLoaderData\" /* UseLoaderData */);\n return state.loaderData[routeId];\n}\nfunction useRouteLoaderData(routeId) {\n let state = useDataRouterState(\"useRouteLoaderData\" /* UseRouteLoaderData */);\n return state.loaderData[routeId];\n}\nfunction useActionData() {\n let state = useDataRouterState(\"useActionData\" /* UseActionData */);\n let routeId = useCurrentRouteId(\"useLoaderData\" /* UseLoaderData */);\n return state.actionData ? state.actionData[routeId] : void 0;\n}\nfunction useRouteError() {\n let error = React2.useContext(RouteErrorContext);\n let state = useDataRouterState(\"useRouteError\" /* UseRouteError */);\n let routeId = useCurrentRouteId(\"useRouteError\" /* UseRouteError */);\n if (error !== void 0) {\n return error;\n }\n return state.errors?.[routeId];\n}\nfunction useAsyncValue() {\n let value = React2.useContext(AwaitContext);\n return value?._data;\n}\nfunction useAsyncError() {\n let value = React2.useContext(AwaitContext);\n return value?._error;\n}\nvar blockerId = 0;\nfunction useBlocker(shouldBlock) {\n let { router, basename } = useDataRouterContext(\"useBlocker\" /* UseBlocker */);\n let state = useDataRouterState(\"useBlocker\" /* UseBlocker */);\n let [blockerKey, setBlockerKey] = React2.useState(\"\");\n let blockerFunction = React2.useCallback(\n (arg) => {\n if (typeof shouldBlock !== \"function\") {\n return !!shouldBlock;\n }\n if (basename === \"/\") {\n return shouldBlock(arg);\n }\n let { currentLocation, nextLocation, historyAction } = arg;\n return shouldBlock({\n currentLocation: {\n ...currentLocation,\n pathname: stripBasename(currentLocation.pathname, basename) || currentLocation.pathname\n },\n nextLocation: {\n ...nextLocation,\n pathname: stripBasename(nextLocation.pathname, basename) || nextLocation.pathname\n },\n historyAction\n });\n },\n [basename, shouldBlock]\n );\n React2.useEffect(() => {\n let key = String(++blockerId);\n setBlockerKey(key);\n return () => router.deleteBlocker(key);\n }, [router]);\n React2.useEffect(() => {\n if (blockerKey !== \"\") {\n router.getBlocker(blockerKey, blockerFunction);\n }\n }, [router, blockerKey, blockerFunction]);\n return blockerKey && state.blockers.has(blockerKey) ? state.blockers.get(blockerKey) : IDLE_BLOCKER;\n}\nfunction useNavigateStable() {\n let { router } = useDataRouterContext(\"useNavigate\" /* UseNavigateStable */);\n let id = useCurrentRouteId(\"useNavigate\" /* UseNavigateStable */);\n let activeRef = React2.useRef(false);\n useIsomorphicLayoutEffect(() => {\n activeRef.current = true;\n });\n let navigate = React2.useCallback(\n async (to, options = {}) => {\n warning(activeRef.current, navigateEffectWarning);\n if (!activeRef.current) return;\n if (typeof to === \"number\") {\n router.navigate(to);\n } else {\n await router.navigate(to, { fromRouteId: id, ...options });\n }\n },\n [router, id]\n );\n return navigate;\n}\nvar alreadyWarned = {};\nfunction warningOnce(key, cond, message) {\n if (!cond && !alreadyWarned[key]) {\n alreadyWarned[key] = true;\n warning(false, message);\n }\n}\n\n// lib/components.tsx\nimport * as React3 from \"react\";\n\n// lib/server-runtime/warnings.ts\nvar alreadyWarned2 = {};\nfunction warnOnce(condition, message) {\n if (!condition && !alreadyWarned2[message]) {\n alreadyWarned2[message] = true;\n console.warn(message);\n }\n}\n\n// lib/components.tsx\nfunction mapRouteProperties(route) {\n let updates = {\n // Note: this check also occurs in createRoutesFromChildren so update\n // there if you change this -- please and thank you!\n hasErrorBoundary: route.hasErrorBoundary || route.ErrorBoundary != null || route.errorElement != null\n };\n if (route.Component) {\n if (ENABLE_DEV_WARNINGS) {\n if (route.element) {\n warning(\n false,\n \"You should not include both `Component` and `element` on your route - `Component` will be used.\"\n );\n }\n }\n Object.assign(updates, {\n element: React3.createElement(route.Component),\n Component: void 0\n });\n }\n if (route.HydrateFallback) {\n if (ENABLE_DEV_WARNINGS) {\n if (route.hydrateFallbackElement) {\n warning(\n false,\n \"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used.\"\n );\n }\n }\n Object.assign(updates, {\n hydrateFallbackElement: React3.createElement(route.HydrateFallback),\n HydrateFallback: void 0\n });\n }\n if (route.ErrorBoundary) {\n if (ENABLE_DEV_WARNINGS) {\n if (route.errorElement) {\n warning(\n false,\n \"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used.\"\n );\n }\n }\n Object.assign(updates, {\n errorElement: React3.createElement(route.ErrorBoundary),\n ErrorBoundary: void 0\n });\n }\n return updates;\n}\nvar hydrationRouteProperties = [\n \"HydrateFallback\",\n \"hydrateFallbackElement\"\n];\nfunction createMemoryRouter(routes, opts) {\n return createRouter({\n basename: opts?.basename,\n getContext: opts?.getContext,\n future: opts?.future,\n history: createMemoryHistory({\n initialEntries: opts?.initialEntries,\n initialIndex: opts?.initialIndex\n }),\n hydrationData: opts?.hydrationData,\n routes,\n hydrationRouteProperties,\n mapRouteProperties,\n dataStrategy: opts?.dataStrategy,\n patchRoutesOnNavigation: opts?.patchRoutesOnNavigation\n }).initialize();\n}\nvar Deferred = class {\n constructor() {\n this.status = \"pending\";\n this.promise = new Promise((resolve, reject) => {\n this.resolve = (value) => {\n if (this.status === \"pending\") {\n this.status = \"resolved\";\n resolve(value);\n }\n };\n this.reject = (reason) => {\n if (this.status === \"pending\") {\n this.status = \"rejected\";\n reject(reason);\n }\n };\n });\n }\n};\nfunction RouterProvider({\n router,\n flushSync: reactDomFlushSyncImpl,\n unstable_onError\n}) {\n let [state, setStateImpl] = React3.useState(router.state);\n let [pendingState, setPendingState] = React3.useState();\n let [vtContext, setVtContext] = React3.useState({\n isTransitioning: false\n });\n let [renderDfd, setRenderDfd] = React3.useState();\n let [transition, setTransition] = React3.useState();\n let [interruption, setInterruption] = React3.useState();\n let fetcherData = React3.useRef(/* @__PURE__ */ new Map());\n let logErrorsAndSetState = React3.useCallback(\n (newState) => {\n setStateImpl((prevState) => {\n if (newState.errors && unstable_onError) {\n Object.entries(newState.errors).forEach(([routeId, error]) => {\n if (prevState.errors?.[routeId] !== error) {\n unstable_onError(error);\n }\n });\n }\n return newState;\n });\n },\n [unstable_onError]\n );\n let setState = React3.useCallback(\n (newState, { deletedFetchers, flushSync, viewTransitionOpts }) => {\n newState.fetchers.forEach((fetcher, key) => {\n if (fetcher.data !== void 0) {\n fetcherData.current.set(key, fetcher.data);\n }\n });\n deletedFetchers.forEach((key) => fetcherData.current.delete(key));\n warnOnce(\n flushSync === false || reactDomFlushSyncImpl != null,\n 'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from \"react-router/dom\"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.'\n );\n let isViewTransitionAvailable = router.window != null && router.window.document != null && typeof router.window.document.startViewTransition === \"function\";\n warnOnce(\n viewTransitionOpts == null || isViewTransitionAvailable,\n \"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available.\"\n );\n if (!viewTransitionOpts || !isViewTransitionAvailable) {\n if (reactDomFlushSyncImpl && flushSync) {\n reactDomFlushSyncImpl(() => logErrorsAndSetState(newState));\n } else {\n React3.startTransition(() => logErrorsAndSetState(newState));\n }\n return;\n }\n if (reactDomFlushSyncImpl && flushSync) {\n reactDomFlushSyncImpl(() => {\n if (transition) {\n renderDfd && renderDfd.resolve();\n transition.skipTransition();\n }\n setVtContext({\n isTransitioning: true,\n flushSync: true,\n currentLocation: viewTransitionOpts.currentLocation,\n nextLocation: viewTransitionOpts.nextLocation\n });\n });\n let t = router.window.document.startViewTransition(() => {\n reactDomFlushSyncImpl(() => logErrorsAndSetState(newState));\n });\n t.finished.finally(() => {\n reactDomFlushSyncImpl(() => {\n setRenderDfd(void 0);\n setTransition(void 0);\n setPendingState(void 0);\n setVtContext({ isTransitioning: false });\n });\n });\n reactDomFlushSyncImpl(() => setTransition(t));\n return;\n }\n if (transition) {\n renderDfd && renderDfd.resolve();\n transition.skipTransition();\n setInterruption({\n state: newState,\n currentLocation: viewTransitionOpts.currentLocation,\n nextLocation: viewTransitionOpts.nextLocation\n });\n } else {\n setPendingState(newState);\n setVtContext({\n isTransitioning: true,\n flushSync: false,\n currentLocation: viewTransitionOpts.currentLocation,\n nextLocation: viewTransitionOpts.nextLocation\n });\n }\n },\n [\n router.window,\n reactDomFlushSyncImpl,\n transition,\n renderDfd,\n logErrorsAndSetState\n ]\n );\n React3.useLayoutEffect(() => router.subscribe(setState), [router, setState]);\n React3.useEffect(() => {\n if (vtContext.isTransitioning && !vtContext.flushSync) {\n setRenderDfd(new Deferred());\n }\n }, [vtContext]);\n React3.useEffect(() => {\n if (renderDfd && pendingState && router.window) {\n let newState = pendingState;\n let renderPromise = renderDfd.promise;\n let transition2 = router.window.document.startViewTransition(async () => {\n React3.startTransition(() => logErrorsAndSetState(newState));\n await renderPromise;\n });\n transition2.finished.finally(() => {\n setRenderDfd(void 0);\n setTransition(void 0);\n setPendingState(void 0);\n setVtContext({ isTransitioning: false });\n });\n setTransition(transition2);\n }\n }, [pendingState, renderDfd, router.window, logErrorsAndSetState]);\n React3.useEffect(() => {\n if (renderDfd && pendingState && state.location.key === pendingState.location.key) {\n renderDfd.resolve();\n }\n }, [renderDfd, transition, state.location, pendingState]);\n React3.useEffect(() => {\n if (!vtContext.isTransitioning && interruption) {\n setPendingState(interruption.state);\n setVtContext({\n isTransitioning: true,\n flushSync: false,\n currentLocation: interruption.currentLocation,\n nextLocation: interruption.nextLocation\n });\n setInterruption(void 0);\n }\n }, [vtContext.isTransitioning, interruption]);\n let navigator = React3.useMemo(() => {\n return {\n createHref: router.createHref,\n encodeLocation: router.encodeLocation,\n go: (n) => router.navigate(n),\n push: (to, state2, opts) => router.navigate(to, {\n state: state2,\n preventScrollReset: opts?.preventScrollReset\n }),\n replace: (to, state2, opts) => router.navigate(to, {\n replace: true,\n state: state2,\n preventScrollReset: opts?.preventScrollReset\n })\n };\n }, [router]);\n let basename = router.basename || \"/\";\n let dataRouterContext = React3.useMemo(\n () => ({\n router,\n navigator,\n static: false,\n basename,\n unstable_onError\n }),\n [router, navigator, basename, unstable_onError]\n );\n return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React3.createElement(DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React3.createElement(FetchersContext.Provider, { value: fetcherData.current }, /* @__PURE__ */ React3.createElement(ViewTransitionContext.Provider, { value: vtContext }, /* @__PURE__ */ React3.createElement(\n Router,\n {\n basename,\n location: state.location,\n navigationType: state.historyAction,\n navigator\n },\n /* @__PURE__ */ React3.createElement(\n MemoizedDataRoutes,\n {\n routes: router.routes,\n future: router.future,\n state,\n unstable_onError\n }\n )\n ))))), null);\n}\nvar MemoizedDataRoutes = React3.memo(DataRoutes);\nfunction DataRoutes({\n routes,\n future,\n state,\n unstable_onError\n}) {\n return useRoutesImpl(routes, void 0, state, unstable_onError, future);\n}\nfunction MemoryRouter({\n basename,\n children,\n initialEntries,\n initialIndex\n}) {\n let historyRef = React3.useRef();\n if (historyRef.current == null) {\n historyRef.current = createMemoryHistory({\n initialEntries,\n initialIndex,\n v5Compat: true\n });\n }\n let history = historyRef.current;\n let [state, setStateImpl] = React3.useState({\n action: history.action,\n location: history.location\n });\n let setState = React3.useCallback(\n (newState) => {\n React3.startTransition(() => setStateImpl(newState));\n },\n [setStateImpl]\n );\n React3.useLayoutEffect(() => history.listen(setState), [history, setState]);\n return /* @__PURE__ */ React3.createElement(\n Router,\n {\n basename,\n children,\n location: state.location,\n navigationType: state.action,\n navigator: history\n }\n );\n}\nfunction Navigate({\n to,\n replace: replace2,\n state,\n relative\n}) {\n invariant(\n useInRouterContext(),\n // TODO: This error is probably because they somehow have 2 versions of\n // the router loaded. We can help them understand how to avoid that.\n `<Navigate> may be used only in the context of a <Router> component.`\n );\n let { static: isStatic } = React3.useContext(NavigationContext);\n warning(\n !isStatic,\n `<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`\n );\n let { matches } = React3.useContext(RouteContext);\n let { pathname: locationPathname } = useLocation();\n let navigate = useNavigate();\n let path = resolveTo(\n to,\n getResolveToMatches(matches),\n locationPathname,\n relative === \"path\"\n );\n let jsonPath = JSON.stringify(path);\n React3.useEffect(() => {\n navigate(JSON.parse(jsonPath), { replace: replace2, state, relative });\n }, [navigate, jsonPath, relative, replace2, state]);\n return null;\n}\nfunction Outlet(props) {\n return useOutlet(props.context);\n}\nfunction Route(props) {\n invariant(\n false,\n `A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`\n );\n}\nfunction Router({\n basename: basenameProp = \"/\",\n children = null,\n location: locationProp,\n navigationType = \"POP\" /* Pop */,\n navigator,\n static: staticProp = false\n}) {\n invariant(\n !useInRouterContext(),\n `You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`\n );\n let basename = basenameProp.replace(/^\\/*/, \"/\");\n let navigationContext = React3.useMemo(\n () => ({\n basename,\n navigator,\n static: staticProp,\n future: {}\n }),\n [basename, navigator, staticProp]\n );\n if (typeof locationProp === \"string\") {\n locationProp = parsePath(locationProp);\n }\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\",\n state = null,\n key = \"default\"\n } = locationProp;\n let locationContext = React3.useMemo(() => {\n let trailingPathname = stripBasename(pathname, basename);\n if (trailingPathname == null) {\n return null;\n }\n return {\n location: {\n pathname: trailingPathname,\n search,\n hash,\n state,\n key\n },\n navigationType\n };\n }, [basename, pathname, search, hash, state, key, navigationType]);\n warning(\n locationContext != null,\n `<Router basename=\"${basename}\"> is not able to match the URL \"${pathname}${search}${hash}\" because it does not start with the basename, so the <Router> won't render anything.`\n );\n if (locationContext == null) {\n return null;\n }\n return /* @__PURE__ */ React3.createElement(NavigationContext.Provider, { value: navigationContext }, /* @__PURE__ */ React3.createElement(LocationContext.Provider, { children, value: locationContext }));\n}\nfunction Routes({\n children,\n location\n}) {\n return useRoutes(createRoutesFromChildren(children), location);\n}\nfunction Await({\n children,\n errorElement,\n resolve\n}) {\n let dataRouterContext = React3.useContext(DataRouterContext);\n return /* @__PURE__ */ React3.createElement(\n AwaitErrorBoundary,\n {\n resolve,\n errorElement,\n unstable_onError: dataRouterContext?.unstable_onError\n },\n /* @__PURE__ */ React3.createElement(ResolveAwait, null, children)\n );\n}\nvar AwaitErrorBoundary = class extends React3.Component {\n constructor(props) {\n super(props);\n this.state = { error: null };\n }\n static getDerivedStateFromError(error) {\n return { error };\n }\n componentDidCatch(error, errorInfo) {\n if (this.props.unstable_onError) {\n this.props.unstable_onError(error, errorInfo);\n } else {\n console.error(\n \"<Await> caught the following error during render\",\n error,\n errorInfo\n );\n }\n }\n render() {\n let { children, errorElement, resolve } = this.props;\n let promise = null;\n let status = 0 /* pending */;\n if (!(resolve instanceof Promise)) {\n status = 1 /* success */;\n promise = Promise.resolve();\n Object.defineProperty(promise, \"_tracked\", { get: () => true });\n Object.defineProperty(promise, \"_data\", { get: () => resolve });\n } else if (this.state.error) {\n status = 2 /* error */;\n let renderError = this.state.error;\n promise = Promise.reject().catch(() => {\n });\n Object.defineProperty(promise, \"_tracked\", { get: () => true });\n Object.defineProperty(promise, \"_error\", { get: () => renderError });\n } else if (resolve._tracked) {\n promise = resolve;\n status = \"_error\" in promise ? 2 /* error */ : \"_data\" in promise ? 1 /* success */ : 0 /* pending */;\n } else {\n status = 0 /* pending */;\n Object.defineProperty(resolve, \"_tracked\", { get: () => true });\n promise = resolve.then(\n (data2) => Object.defineProperty(resolve, \"_data\", { get: () => data2 }),\n (error) => {\n this.props.unstable_onError?.(error);\n Object.defineProperty(resolve, \"_error\", { get: () => error });\n }\n );\n }\n if (status === 2 /* error */ && !errorElement) {\n throw promise._error;\n }\n if (status === 2 /* error */) {\n return /* @__PURE__ */ React3.createElement(AwaitContext.Provider, { value: promise, children: errorElement });\n }\n if (status === 1 /* success */) {\n return /* @__PURE__ */ React3.createElement(AwaitContext.Provider, { value: promise, children });\n }\n throw promise;\n }\n};\nfunction ResolveAwait({\n children\n}) {\n let data2 = useAsyncValue();\n let toRender = typeof children === \"function\" ? children(data2) : children;\n return /* @__PURE__ */ React3.createElement(React3.Fragment, null, toRender);\n}\nfunction createRoutesFromChildren(children, parentPath = []) {\n let routes = [];\n React3.Children.forEach(children, (element, index) => {\n if (!React3.isValidElement(element)) {\n return;\n }\n let treePath = [...parentPath, index];\n if (element.type === React3.Fragment) {\n routes.push.apply(\n routes,\n createRoutesFromChildren(element.props.children, treePath)\n );\n return;\n }\n invariant(\n element.type === Route,\n `[${typeof element.type === \"string\" ? element.type : element.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`\n );\n invariant(\n !element.props.index || !element.props.children,\n \"An index route cannot have child routes.\"\n );\n let route = {\n id: element.props.id || treePath.join(\"-\"),\n caseSensitive: element.props.caseSensitive,\n element: element.props.element,\n Component: element.props.Component,\n index: element.props.index,\n path: element.props.path,\n loader: element.props.loader,\n action: element.props.action,\n hydrateFallbackElement: element.props.hydrateFallbackElement,\n HydrateFallback: element.props.HydrateFallback,\n errorElement: element.props.errorElement,\n ErrorBoundary: element.props.ErrorBoundary,\n hasErrorBoundary: element.props.hasErrorBoundary === true || element.props.ErrorBoundary != null || element.props.errorElement != null,\n shouldRevalidate: element.props.shouldRevalidate,\n handle: element.props.handle,\n lazy: element.props.lazy\n };\n if (element.props.children) {\n route.children = createRoutesFromChildren(\n element.props.children,\n treePath\n );\n }\n routes.push(route);\n });\n return routes;\n}\nvar createRoutesFromElements = createRoutesFromChildren;\nfunction renderMatches(matches) {\n return _renderMatches(matches);\n}\nfunction useRouteComponentProps() {\n return {\n params: useParams(),\n loaderData: useLoaderData(),\n actionData: useActionData(),\n matches: useMatches()\n };\n}\nfunction WithComponentProps({\n children\n}) {\n const props = useRouteComponentProps();\n return React3.cloneElement(children, props);\n}\nfunction withComponentProps(Component4) {\n return function WithComponentProps2() {\n const props = useRouteComponentProps();\n return React3.createElement(Component4, props);\n };\n}\nfunction useHydrateFallbackProps() {\n return {\n params: useParams(),\n loaderData: useLoaderData(),\n actionData: useActionData()\n };\n}\nfunction WithHydrateFallbackProps({\n children\n}) {\n const props = useHydrateFallbackProps();\n return React3.cloneElement(children, props);\n}\nfunction withHydrateFallbackProps(HydrateFallback) {\n return function WithHydrateFallbackProps2() {\n const props = useHydrateFallbackProps();\n return React3.createElement(HydrateFallback, props);\n };\n}\nfunction useErrorBoundaryProps() {\n return {\n params: useParams(),\n loaderData: useLoaderData(),\n actionData: useActionData(),\n error: useRouteError()\n };\n}\nfunction WithErrorBoundaryProps({\n children\n}) {\n const props = useErrorBoundaryProps();\n return React3.cloneElement(children, props);\n}\nfunction withErrorBoundaryProps(ErrorBoundary) {\n return function WithErrorBoundaryProps2() {\n const props = useErrorBoundaryProps();\n return React3.createElement(ErrorBoundary, props);\n };\n}\n\n// lib/dom/dom.ts\nvar defaultMethod = \"get\";\nvar defaultEncType = \"application/x-www-form-urlencoded\";\nfunction isHtmlElement(object) {\n return object != null && typeof object.tagName === \"string\";\n}\nfunction isButtonElement(object) {\n return isHtmlElement(object) && object.tagName.toLowerCase() === \"button\";\n}\nfunction isFormElement(object) {\n return isHtmlElement(object) && object.tagName.toLowerCase() === \"form\";\n}\nfunction isInputElement(object) {\n return isHtmlElement(object) && object.tagName.toLowerCase() === \"input\";\n}\nfunction isModifiedEvent(event) {\n return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n}\nfunction shouldProcessLinkClick(event, target) {\n return event.button === 0 && // Ignore everything but left clicks\n (!target || target === \"_self\") && // Let browser handle \"target=_blank\" etc.\n !isModifiedEvent(event);\n}\nfunction createSearchParams(init = \"\") {\n return new URLSearchParams(\n typeof init === \"string\" || Array.isArray(init) || init instanceof URLSearchParams ? init : Object.keys(init).reduce((memo2, key) => {\n let value = init[key];\n return memo2.concat(\n Array.isArray(value) ? value.map((v) => [key, v]) : [[key, value]]\n );\n }, [])\n );\n}\nfunction getSearchParamsForLocation(locationSearch, defaultSearchParams) {\n let searchParams = createSearchParams(locationSearch);\n if (defaultSearchParams) {\n defaultSearchParams.forEach((_, key) => {\n if (!searchParams.has(key)) {\n defaultSearchParams.getAll(key).forEach((value) => {\n searchParams.append(key, value);\n });\n }\n });\n }\n return searchParams;\n}\nvar _formDataSupportsSubmitter = null;\nfunction isFormDataSubmitterSupported() {\n if (_formDataSupportsSubmitter === null) {\n try {\n new FormData(\n document.createElement(\"form\"),\n // @ts-expect-error if FormData supports the submitter parameter, this will throw\n 0\n );\n _formDataSupportsSubmitter = false;\n } catch (e) {\n _formDataSupportsSubmitter = true;\n }\n }\n return _formDataSupportsSubmitter;\n}\nvar supportedFormEncTypes = /* @__PURE__ */ new Set([\n \"application/x-www-form-urlencoded\",\n \"multipart/form-data\",\n \"text/plain\"\n]);\nfunction getFormEncType(encType) {\n if (encType != null && !supportedFormEncTypes.has(encType)) {\n warning(\n false,\n `\"${encType}\" is not a valid \\`encType\\` for \\`<Form>\\`/\\`<fetcher.Form>\\` and will default to \"${defaultEncType}\"`\n );\n return null;\n }\n return encType;\n}\nfunction getFormSubmissionInfo(target, basename) {\n let method;\n let action;\n let encType;\n let formData;\n let body;\n if (isFormElement(target)) {\n let attr = target.getAttribute(\"action\");\n action = attr ? stripBasename(attr, basename) : null;\n method = target.getAttribute(\"method\") || defaultMethod;\n encType = getFormEncType(target.getAttribute(\"enctype\")) || defaultEncType;\n formData = new FormData(target);\n } else if (isButtonElement(target) || isInputElement(target) && (target.type === \"submit\" || target.type === \"image\")) {\n let form = target.form;\n if (form == null) {\n throw new Error(\n `Cannot submit a <button> or <input type=\"submit\"> without a <form>`\n );\n }\n let attr = target.getAttribute(\"formaction\") || form.getAttribute(\"action\");\n action = attr ? stripBasename(attr, basename) : null;\n method = target.getAttribute(\"formmethod\") || form.getAttribute(\"method\") || defaultMethod;\n encType = getFormEncType(target.getAttribute(\"formenctype\")) || getFormEncType(form.getAttribute(\"enctype\")) || defaultEncType;\n formData = new FormData(form, target);\n if (!isFormDataSubmitterSupported()) {\n let { name, type, value } = target;\n if (type === \"image\") {\n let prefix = name ? `${name}.` : \"\";\n formData.append(`${prefix}x`, \"0\");\n formData.append(`${prefix}y`, \"0\");\n } else if (name) {\n formData.append(name, value);\n }\n }\n } else if (isHtmlElement(target)) {\n throw new Error(\n `Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">`\n );\n } else {\n method = defaultMethod;\n action = null;\n encType = defaultEncType;\n body = target;\n }\n if (formData && encType === \"text/plain\") {\n body = formData;\n formData = void 0;\n }\n return { action, method: method.toLowerCase(), encType, formData, body };\n}\n\n// lib/dom/ssr/single-fetch.tsx\nimport * as React4 from \"react\";\n\n// vendor/turbo-stream-v2/utils.ts\nvar HOLE = -1;\nvar NAN = -2;\nvar NEGATIVE_INFINITY = -3;\nvar NEGATIVE_ZERO = -4;\nvar NULL = -5;\nvar POSITIVE_INFINITY = -6;\nvar UNDEFINED = -7;\nvar TYPE_BIGINT = \"B\";\nvar TYPE_DATE = \"D\";\nvar TYPE_ERROR = \"E\";\nvar TYPE_MAP = \"M\";\nvar TYPE_NULL_OBJECT = \"N\";\nvar TYPE_PROMISE = \"P\";\nvar TYPE_REGEXP = \"R\";\nvar TYPE_SET = \"S\";\nvar TYPE_SYMBOL = \"Y\";\nvar TYPE_URL = \"U\";\nvar TYPE_PREVIOUS_RESOLVED = \"Z\";\nvar Deferred2 = class {\n constructor() {\n this.promise = new Promise((resolve, reject) => {\n this.resolve = resolve;\n this.reject = reject;\n });\n }\n};\nfunction createLineSplittingTransform() {\n const decoder = new TextDecoder();\n let leftover = \"\";\n return new TransformStream({\n transform(chunk, controller) {\n const str = decoder.decode(chunk, { stream: true });\n const parts = (leftover + str).split(\"\\n\");\n leftover = parts.pop() || \"\";\n for (const part of parts) {\n controller.enqueue(part);\n }\n },\n flush(controller) {\n if (leftover) {\n controller.enqueue(leftover);\n }\n }\n });\n}\n\n// vendor/turbo-stream-v2/flatten.ts\nfunction flatten(input) {\n const { indices } = this;\n const existing = indices.get(input);\n if (existing) return [existing];\n if (input === void 0) return UNDEFINED;\n if (input === null) return NULL;\n if (Number.isNaN(input)) return NAN;\n if (input === Number.POSITIVE_INFINITY) return POSITIVE_INFINITY;\n if (input === Number.NEGATIVE_INFINITY) return NEGATIVE_INFINITY;\n if (input === 0 && 1 / input < 0) return NEGATIVE_ZERO;\n const index = this.index++;\n indices.set(input, index);\n stringify.call(this, input, index);\n return index;\n}\nfunction stringify(input, index) {\n const { deferred, plugins, postPlugins } = this;\n const str = this.stringified;\n const stack = [[input, index]];\n while (stack.length > 0) {\n const [input2, index2] = stack.pop();\n const partsForObj = (obj) => Object.keys(obj).map((k) => `\"_${flatten.call(this, k)}\":${flatten.call(this, obj[k])}`).join(\",\");\n let error = null;\n switch (typeof input2) {\n case \"boolean\":\n case \"number\":\n case \"string\":\n str[index2] = JSON.stringify(input2);\n break;\n case \"bigint\":\n str[index2] = `[\"${TYPE_BIGINT}\",\"${input2}\"]`;\n break;\n case \"symbol\": {\n const keyFor = Symbol.keyFor(input2);\n if (!keyFor) {\n error = new Error(\n \"Cannot encode symbol unless created with Symbol.for()\"\n );\n } else {\n str[index2] = `[\"${TYPE_SYMBOL}\",${JSON.stringify(keyFor)}]`;\n }\n break;\n }\n case \"object\": {\n if (!input2) {\n str[index2] = `${NULL}`;\n break;\n }\n const isArray = Array.isArray(input2);\n let pluginHandled = false;\n if (!isArray && plugins) {\n for (const plugin of plugins) {\n const pluginResult = plugin(input2);\n if (Array.isArray(pluginResult)) {\n pluginHandled = true;\n const [pluginIdentifier, ...rest] = pluginResult;\n str[index2] = `[${JSON.stringify(pluginIdentifier)}`;\n if (rest.length > 0) {\n str[index2] += `,${rest.map((v) => flatten.call(this, v)).join(\",\")}`;\n }\n str[index2] += \"]\";\n break;\n }\n }\n }\n if (!pluginHandled) {\n let result = isArray ? \"[\" : \"{\";\n if (isArray) {\n for (let i = 0; i < input2.length; i++)\n result += (i ? \",\" : \"\") + (i in input2 ? flatten.call(this, input2[i]) : HOLE);\n str[index2] = `${result}]`;\n } else if (input2 instanceof Date) {\n const dateTime = input2.getTime();\n str[index2] = `[\"${TYPE_DATE}\",${Number.isNaN(dateTime) ? JSON.stringify(\"invalid\") : dateTime}]`;\n } else if (input2 instanceof URL) {\n str[index2] = `[\"${TYPE_URL}\",${JSON.stringify(input2.href)}]`;\n } else if (input2 instanceof RegExp) {\n str[index2] = `[\"${TYPE_REGEXP}\",${JSON.stringify(\n input2.source\n )},${JSON.stringify(input2.flags)}]`;\n } else if (input2 instanceof Set) {\n if (input2.size > 0) {\n str[index2] = `[\"${TYPE_SET}\",${[...input2].map((val) => flatten.call(this, val)).join(\",\")}]`;\n } else {\n str[index2] = `[\"${TYPE_SET}\"]`;\n }\n } else if (input2 instanceof Map) {\n if (input2.size > 0) {\n str[index2] = `[\"${TYPE_MAP}\",${[...input2].flatMap(([k, v]) => [\n flatten.call(this, k),\n flatten.call(this, v)\n ]).join(\",\")}]`;\n } else {\n str[index2] = `[\"${TYPE_MAP}\"]`;\n }\n } else if (input2 instanceof Promise) {\n str[index2] = `[\"${TYPE_PROMISE}\",${index2}]`;\n deferred[index2] = input2;\n } else if (input2 instanceof Error) {\n str[index2] = `[\"${TYPE_ERROR}\",${JSON.stringify(input2.message)}`;\n if (input2.name !== \"Error\") {\n str[index2] += `,${JSON.stringify(input2.name)}`;\n }\n str[index2] += \"]\";\n } else if (Object.getPrototypeOf(input2) === null) {\n str[index2] = `[\"${TYPE_NULL_OBJECT}\",{${partsForObj(input2)}}]`;\n } else if (isPlainObject(input2)) {\n str[index2] = `{${partsForObj(input2)}}`;\n } else {\n error = new Error(\"Cannot encode object with prototype\");\n }\n }\n break;\n }\n default: {\n const isArray = Array.isArray(input2);\n let pluginHandled = false;\n if (!isArray && plugins) {\n for (const plugin of plugins) {\n const pluginResult = plugin(input2);\n if (Array.isArray(pluginResult)) {\n pluginHandled = true;\n const [pluginIdentifier, ...rest] = pluginResult;\n str[index2] = `[${JSON.stringify(pluginIdentifier)}`;\n if (rest.length > 0) {\n str[index2] += `,${rest.map((v) => flatten.call(this, v)).join(\",\")}`;\n }\n str[index2] += \"]\";\n break;\n }\n }\n }\n if (!pluginHandled) {\n error = new Error(\"Cannot encode function or unexpected type\");\n }\n }\n }\n if (error) {\n let pluginHandled = false;\n if (postPlugins) {\n for (const plugin of postPlugins) {\n const pluginResult = plugin(input2);\n if (Array.isArray(pluginResult)) {\n pluginHandled = true;\n const [pluginIdentifier, ...rest] = pluginResult;\n str[index2] = `[${JSON.stringify(pluginIdentifier)}`;\n if (rest.length > 0) {\n str[index2] += `,${rest.map((v) => flatten.call(this, v)).join(\",\")}`;\n }\n str[index2] += \"]\";\n break;\n }\n }\n }\n if (!pluginHandled) {\n throw error;\n }\n }\n }\n}\nvar objectProtoNames = Object.getOwnPropertyNames(Object.prototype).sort().join(\"\\0\");\nfunction isPlainObject(thing) {\n const proto = Object.getPrototypeOf(thing);\n return proto === Object.prototype || proto === null || Object.getOwnPropertyNames(proto).sort().join(\"\\0\") === objectProtoNames;\n}\n\n// vendor/turbo-stream-v2/unflatten.ts\nvar globalObj = typeof window !== \"undefined\" ? window : typeof globalThis !== \"undefined\" ? globalThis : void 0;\nfunction unflatten(parsed) {\n const { hydrated, values } = this;\n if (typeof parsed === \"number\") return hydrate.call(this, parsed);\n if (!Array.isArray(parsed) || !parsed.length) throw new SyntaxError();\n const startIndex = values.length;\n for (const value of parsed) {\n values.push(value);\n }\n hydrated.length = values.length;\n return hydrate.call(this, startIndex);\n}\nfunction hydrate(index) {\n const { hydrated, values, deferred, plugins } = this;\n let result;\n const stack = [\n [\n index,\n (v) => {\n result = v;\n }\n ]\n ];\n let postRun = [];\n while (stack.length > 0) {\n const [index2, set] = stack.pop();\n switch (index2) {\n case UNDEFINED:\n set(void 0);\n continue;\n case NULL:\n set(null);\n continue;\n case NAN:\n set(NaN);\n continue;\n case POSITIVE_INFINITY:\n set(Infinity);\n continue;\n case NEGATIVE_INFINITY:\n set(-Infinity);\n continue;\n case NEGATIVE_ZERO:\n set(-0);\n continue;\n }\n if (hydrated[index2]) {\n set(hydrated[index2]);\n continue;\n }\n const value = values[index2];\n if (!value || typeof value !== \"object\") {\n hydrated[index2] = value;\n set(value);\n continue;\n }\n if (Array.isArray(value)) {\n if (typeof value[0] === \"string\") {\n const [type, b, c] = value;\n switch (type) {\n case TYPE_DATE:\n set(hydrated[index2] = new Date(b));\n continue;\n case TYPE_URL:\n set(hydrated[index2] = new URL(b));\n continue;\n case TYPE_BIGINT:\n set(hydrated[index2] = BigInt(b));\n continue;\n case TYPE_REGEXP:\n set(hydrated[index2] = new RegExp(b, c));\n continue;\n case TYPE_SYMBOL:\n set(hydrated[index2] = Symbol.for(b));\n continue;\n case TYPE_SET:\n const newSet = /* @__PURE__ */ new Set();\n hydrated[index2] = newSet;\n for (let i = value.length - 1; i > 0; i--)\n stack.push([\n value[i],\n (v) => {\n newSet.add(v);\n }\n ]);\n set(newSet);\n continue;\n case TYPE_MAP:\n const map = /* @__PURE__ */ new Map();\n hydrated[index2] = map;\n for (let i = value.length - 2; i > 0; i -= 2) {\n const r = [];\n stack.push([\n value[i + 1],\n (v) => {\n r[1] = v;\n }\n ]);\n stack.push([\n value[i],\n (k) => {\n r[0] = k;\n }\n ]);\n postRun.push(() => {\n map.set(r[0], r[1]);\n });\n }\n set(map);\n continue;\n case TYPE_NULL_OBJECT:\n const obj = /* @__PURE__ */ Object.create(null);\n hydrated[index2] = obj;\n for (const key of Object.keys(b).reverse()) {\n const r = [];\n stack.push([\n b[key],\n (v) => {\n r[1] = v;\n }\n ]);\n stack.push([\n Number(key.slice(1)),\n (k) => {\n r[0] = k;\n }\n ]);\n postRun.push(() => {\n obj[r[0]] = r[1];\n });\n }\n set(obj);\n continue;\n case TYPE_PROMISE:\n if (hydrated[b]) {\n set(hydrated[index2] = hydrated[b]);\n } else {\n const d = new Deferred2();\n deferred[b] = d;\n set(hydrated[index2] = d.promise);\n }\n continue;\n case TYPE_ERROR:\n const [, message, errorType] = value;\n let error = errorType && globalObj && globalObj[errorType] ? new globalObj[errorType](message) : new Error(message);\n hydrated[index2] = error;\n set(error);\n continue;\n case TYPE_PREVIOUS_RESOLVED:\n set(hydrated[index2] = hydrated[b]);\n continue;\n default:\n if (Array.isArray(plugins)) {\n const r = [];\n const vals = value.slice(1);\n for (let i = 0; i < vals.length; i++) {\n const v = vals[i];\n stack.push([\n v,\n (v2) => {\n r[i] = v2;\n }\n ]);\n }\n postRun.push(() => {\n for (const plugin of plugins) {\n const result2 = plugin(value[0], ...r);\n if (result2) {\n set(hydrated[index2] = result2.value);\n return;\n }\n }\n throw new SyntaxError();\n });\n continue;\n }\n throw new SyntaxError();\n }\n } else {\n const array = [];\n hydrated[index2] = array;\n for (let i = 0; i < value.length; i++) {\n const n = value[i];\n if (n !== HOLE) {\n stack.push([\n n,\n (v) => {\n array[i] = v;\n }\n ]);\n }\n }\n set(array);\n continue;\n }\n } else {\n const object = {};\n hydrated[index2] = object;\n for (const key of Object.keys(value).reverse()) {\n const r = [];\n stack.push([\n value[key],\n (v) => {\n r[1] = v;\n }\n ]);\n stack.push([\n Number(key.slice(1)),\n (k) => {\n r[0] = k;\n }\n ]);\n postRun.push(() => {\n object[r[0]] = r[1];\n });\n }\n set(object);\n continue;\n }\n }\n while (postRun.length > 0) {\n postRun.pop()();\n }\n return result;\n}\n\n// vendor/turbo-stream-v2/turbo-stream.ts\nasync function decode(readable, options) {\n const { plugins } = options ?? {};\n const done = new Deferred2();\n const reader = readable.pipeThrough(createLineSplittingTransform()).getReader();\n const decoder = {\n values: [],\n hydrated: [],\n deferred: {},\n plugins\n };\n const decoded = await decodeInitial.call(decoder, reader);\n let donePromise = done.promise;\n if (decoded.done) {\n done.resolve();\n } else {\n donePromise = decodeDeferred.call(decoder, reader).then(done.resolve).catch((reason) => {\n for (const deferred of Object.values(decoder.deferred)) {\n deferred.reject(reason);\n }\n done.reject(reason);\n });\n }\n return {\n done: donePromise.then(() => reader.closed),\n value: decoded.value\n };\n}\nasync function decodeInitial(reader) {\n const read = await reader.read();\n if (!read.value) {\n throw new SyntaxError();\n }\n let line;\n try {\n line = JSON.parse(read.value);\n } catch (reason) {\n throw new SyntaxError();\n }\n return {\n done: read.done,\n value: unflatten.call(this, line)\n };\n}\nasync function decodeDeferred(reader) {\n let read = await reader.read();\n while (!read.done) {\n if (!read.value) continue;\n const line = read.value;\n switch (line[0]) {\n case TYPE_PROMISE: {\n const colonIndex = line.indexOf(\":\");\n const deferredId = Number(line.slice(1, colonIndex));\n const deferred = this.deferred[deferredId];\n if (!deferred) {\n throw new Error(`Deferred ID ${deferredId} not found in stream`);\n }\n const lineData = line.slice(colonIndex + 1);\n let jsonLine;\n try {\n jsonLine = JSON.parse(lineData);\n } catch (reason) {\n throw new SyntaxError();\n }\n const value = unflatten.call(this, jsonLine);\n deferred.resolve(value);\n break;\n }\n case TYPE_ERROR: {\n const colonIndex = line.indexOf(\":\");\n const deferredId = Number(line.slice(1, colonIndex));\n const deferred = this.deferred[deferredId];\n if (!deferred) {\n throw new Error(`Deferred ID ${deferredId} not found in stream`);\n }\n const lineData = line.slice(colonIndex + 1);\n let jsonLine;\n try {\n jsonLine = JSON.parse(lineData);\n } catch (reason) {\n throw new SyntaxError();\n }\n const value = unflatten.call(this, jsonLine);\n deferred.reject(value);\n break;\n }\n default:\n throw new SyntaxError();\n }\n read = await reader.read();\n }\n}\nfunction encode(input, options) {\n const { plugins, postPlugins, signal } = options ?? {};\n const encoder = {\n deferred: {},\n index: 0,\n indices: /* @__PURE__ */ new Map(),\n stringified: [],\n plugins,\n postPlugins,\n signal\n };\n const textEncoder = new TextEncoder();\n let lastSentIndex = 0;\n const readable = new ReadableStream({\n async start(controller) {\n const id = flatten.call(encoder, input);\n if (Array.isArray(id)) {\n throw new Error(\"This should never happen\");\n }\n if (id < 0) {\n controller.enqueue(textEncoder.encode(`${id}\n`));\n } else {\n controller.enqueue(\n textEncoder.encode(`[${encoder.stringified.join(\",\")}]\n`)\n );\n lastSentIndex = encoder.stringified.length - 1;\n }\n const seenPromises = /* @__PURE__ */ new WeakSet();\n if (Object.keys(encoder.deferred).length) {\n let raceDone;\n const racePromise = new Promise((resolve, reject) => {\n raceDone = resolve;\n if (signal) {\n const rejectPromise = () => reject(signal.reason || new Error(\"Signal was aborted.\"));\n if (signal.aborted) {\n rejectPromise();\n } else {\n signal.addEventListener(\"abort\", (event) => {\n rejectPromise();\n });\n }\n }\n });\n while (Object.keys(encoder.deferred).length > 0) {\n for (const [deferredId, deferred] of Object.entries(\n encoder.deferred\n )) {\n if (seenPromises.has(deferred)) continue;\n seenPromises.add(\n // biome-ignore lint/suspicious/noAssignInExpressions: <explanation>\n encoder.deferred[Number(deferredId)] = Promise.race([\n racePromise,\n deferred\n ]).then(\n (resolved) => {\n const id2 = flatten.call(encoder, resolved);\n if (Array.isArray(id2)) {\n controller.enqueue(\n textEncoder.encode(\n `${TYPE_PROMISE}${deferredId}:[[\"${TYPE_PREVIOUS_RESOLVED}\",${id2[0]}]]\n`\n )\n );\n encoder.index++;\n lastSentIndex++;\n } else if (id2 < 0) {\n controller.enqueue(\n textEncoder.encode(\n `${TYPE_PROMISE}${deferredId}:${id2}\n`\n )\n );\n } else {\n const values = encoder.stringified.slice(lastSentIndex + 1).join(\",\");\n controller.enqueue(\n textEncoder.encode(\n `${TYPE_PROMISE}${deferredId}:[${values}]\n`\n )\n );\n lastSentIndex = encoder.stringified.length - 1;\n }\n },\n (reason) => {\n if (!reason || typeof reason !== \"object\" || !(reason instanceof Error)) {\n reason = new Error(\"An unknown error occurred\");\n }\n const id2 = flatten.call(encoder, reason);\n if (Array.isArray(id2)) {\n controller.enqueue(\n textEncoder.encode(\n `${TYPE_ERROR}${deferredId}:[[\"${TYPE_PREVIOUS_RESOLVED}\",${id2[0]}]]\n`\n )\n );\n encoder.index++;\n lastSentIndex++;\n } else if (id2 < 0) {\n controller.enqueue(\n textEncoder.encode(\n `${TYPE_ERROR}${deferredId}:${id2}\n`\n )\n );\n } else {\n const values = encoder.stringified.slice(lastSentIndex + 1).join(\",\");\n controller.enqueue(\n textEncoder.encode(\n `${TYPE_ERROR}${deferredId}:[${values}]\n`\n )\n );\n lastSentIndex = encoder.stringified.length - 1;\n }\n }\n ).finally(() => {\n delete encoder.deferred[Number(deferredId)];\n })\n );\n }\n await Promise.race(Object.values(encoder.deferred));\n }\n raceDone();\n }\n await Promise.all(Object.values(encoder.deferred));\n controller.close();\n }\n });\n return readable;\n}\n\n// lib/dom/ssr/data.ts\nasync function createRequestInit(request) {\n let init = { signal: request.signal };\n if (request.method !== \"GET\") {\n init.method = request.method;\n let contentType = request.headers.get(\"Content-Type\");\n if (contentType && /\\bapplication\\/json\\b/.test(contentType)) {\n init.headers = { \"Content-Type\": contentType };\n init.body = JSON.stringify(await request.json());\n } else if (contentType && /\\btext\\/plain\\b/.test(contentType)) {\n init.headers = { \"Content-Type\": contentType };\n init.body = await request.text();\n } else if (contentType && /\\bapplication\\/x-www-form-urlencoded\\b/.test(contentType)) {\n init.body = new URLSearchParams(await request.text());\n } else {\n init.body = await request.formData();\n }\n }\n return init;\n}\n\n// lib/dom/ssr/markup.ts\nvar ESCAPE_LOOKUP = {\n \"&\": \"\\\\u0026\",\n \">\": \"\\\\u003e\",\n \"<\": \"\\\\u003c\",\n \"\\u2028\": \"\\\\u2028\",\n \"\\u2029\": \"\\\\u2029\"\n};\nvar ESCAPE_REGEX = /[&><\\u2028\\u2029]/g;\nfunction escapeHtml(html) {\n return html.replace(ESCAPE_REGEX, (match) => ESCAPE_LOOKUP[match]);\n}\n\n// lib/dom/ssr/invariant.ts\nfunction invariant2(value, message) {\n if (value === false || value === null || typeof value === \"undefined\") {\n throw new Error(message);\n }\n}\n\n// lib/dom/ssr/single-fetch.tsx\nvar SingleFetchRedirectSymbol = Symbol(\"SingleFetchRedirect\");\nvar SingleFetchNoResultError = class extends Error {\n};\nvar SINGLE_FETCH_REDIRECT_STATUS = 202;\nvar NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([100, 101, 204, 205]);\nfunction StreamTransfer({\n context,\n identifier,\n reader,\n textDecoder,\n nonce\n}) {\n if (!context.renderMeta || !context.renderMeta.didRenderScripts) {\n return null;\n }\n if (!context.renderMeta.streamCache) {\n context.renderMeta.streamCache = {};\n }\n let { streamCache } = context.renderMeta;\n let promise = streamCache[identifier];\n if (!promise) {\n promise = streamCache[identifier] = reader.read().then((result) => {\n streamCache[identifier].result = {\n done: result.done,\n value: textDecoder.decode(result.value, { stream: true })\n };\n }).catch((e) => {\n streamCache[identifier].error = e;\n });\n }\n if (promise.error) {\n throw promise.error;\n }\n if (promise.result === void 0) {\n throw promise;\n }\n let { done, value } = promise.result;\n let scriptTag = value ? /* @__PURE__ */ React4.createElement(\n \"script\",\n {\n nonce,\n dangerouslySetInnerHTML: {\n __html: `window.__reactRouterContext.streamController.enqueue(${escapeHtml(\n JSON.stringify(value)\n )});`\n }\n }\n ) : null;\n if (done) {\n return /* @__PURE__ */ React4.createElement(React4.Fragment, null, scriptTag, /* @__PURE__ */ React4.createElement(\n \"script\",\n {\n nonce,\n dangerouslySetInnerHTML: {\n __html: `window.__reactRouterContext.streamController.close();`\n }\n }\n ));\n } else {\n return /* @__PURE__ */ React4.createElement(React4.Fragment, null, scriptTag, /* @__PURE__ */ React4.createElement(React4.Suspense, null, /* @__PURE__ */ React4.createElement(\n StreamTransfer,\n {\n context,\n identifier: identifier + 1,\n reader,\n textDecoder,\n nonce\n }\n )));\n }\n}\nfunction getTurboStreamSingleFetchDataStrategy(getRouter, manifest, routeModules, ssr, basename) {\n let dataStrategy = getSingleFetchDataStrategyImpl(\n getRouter,\n (match) => {\n let manifestRoute = manifest.routes[match.route.id];\n invariant2(manifestRoute, \"Route not found in manifest\");\n let routeModule = routeModules[match.route.id];\n return {\n hasLoader: manifestRoute.hasLoader,\n hasClientLoader: manifestRoute.hasClientLoader,\n hasShouldRevalidate: Boolean(routeModule?.shouldRevalidate)\n };\n },\n fetchAndDecodeViaTurboStream,\n ssr,\n basename\n );\n return async (args) => args.runClientMiddleware(dataStrategy);\n}\nfunction getSingleFetchDataStrategyImpl(getRouter, getRouteInfo, fetchAndDecode, ssr, basename, shouldAllowOptOut = () => true) {\n return async (args) => {\n let { request, matches, fetcherKey } = args;\n let router = getRouter();\n if (request.method !== \"GET\") {\n return singleFetchActionStrategy(args, fetchAndDecode, basename);\n }\n let foundRevalidatingServerLoader = matches.some((m) => {\n let { hasLoader, hasClientLoader } = getRouteInfo(m);\n return m.unstable_shouldCallHandler() && hasLoader && !hasClientLoader;\n });\n if (!ssr && !foundRevalidatingServerLoader) {\n return nonSsrStrategy(args, getRouteInfo, fetchAndDecode, basename);\n }\n if (fetcherKey) {\n return singleFetchLoaderFetcherStrategy(args, fetchAndDecode, basename);\n }\n return singleFetchLoaderNavigationStrategy(\n args,\n router,\n getRouteInfo,\n fetchAndDecode,\n ssr,\n basename,\n shouldAllowOptOut\n );\n };\n}\nasync function singleFetchActionStrategy(args, fetchAndDecode, basename) {\n let actionMatch = args.matches.find((m) => m.unstable_shouldCallHandler());\n invariant2(actionMatch, \"No action match found\");\n let actionStatus = void 0;\n let result = await actionMatch.resolve(async (handler) => {\n let result2 = await handler(async () => {\n let { data: data2, status } = await fetchAndDecode(args, basename, [\n actionMatch.route.id\n ]);\n actionStatus = status;\n return unwrapSingleFetchResult(data2, actionMatch.route.id);\n });\n return result2;\n });\n if (isResponse(result.result) || isRouteErrorResponse(result.result) || isDataWithResponseInit(result.result)) {\n return { [actionMatch.route.id]: result };\n }\n return {\n [actionMatch.route.id]: {\n type: result.type,\n result: data(result.result, actionStatus)\n }\n };\n}\nasync function nonSsrStrategy(args, getRouteInfo, fetchAndDecode, basename) {\n let matchesToLoad = args.matches.filter(\n (m) => m.unstable_shouldCallHandler()\n );\n let results = {};\n await Promise.all(\n matchesToLoad.map(\n (m) => m.resolve(async (handler) => {\n try {\n let { hasClientLoader } = getRouteInfo(m);\n let routeId = m.route.id;\n let result = hasClientLoader ? await handler(async () => {\n let { data: data2 } = await fetchAndDecode(args, basename, [routeId]);\n return unwrapSingleFetchResult(data2, routeId);\n }) : await handler();\n results[m.route.id] = { type: \"data\", result };\n } catch (e) {\n results[m.route.id] = { type: \"error\", result: e };\n }\n })\n )\n );\n return results;\n}\nasync function singleFetchLoaderNavigationStrategy(args, router, getRouteInfo, fetchAndDecode, ssr, basename, shouldAllowOptOut = () => true) {\n let routesParams = /* @__PURE__ */ new Set();\n let foundOptOutRoute = false;\n let routeDfds = args.matches.map(() => createDeferred2());\n let singleFetchDfd = createDeferred2();\n let results = {};\n let resolvePromise = Promise.all(\n args.matches.map(\n async (m, i) => m.resolve(async (handler) => {\n routeDfds[i].resolve();\n let routeId = m.route.id;\n let { hasLoader, hasClientLoader, hasShouldRevalidate } = getRouteInfo(m);\n let defaultShouldRevalidate = !m.unstable_shouldRevalidateArgs || m.unstable_shouldRevalidateArgs.actionStatus == null || m.unstable_shouldRevalidateArgs.actionStatus < 400;\n let shouldCall = m.unstable_shouldCallHandler(defaultShouldRevalidate);\n if (!shouldCall) {\n foundOptOutRoute || (foundOptOutRoute = m.unstable_shouldRevalidateArgs != null && // This is a revalidation,\n hasLoader && // for a route with a server loader,\n hasShouldRevalidate === true);\n return;\n }\n if (shouldAllowOptOut(m) && hasClientLoader) {\n if (hasLoader) {\n foundOptOutRoute = true;\n }\n try {\n let result = await handler(async () => {\n let { data: data2 } = await fetchAndDecode(args, basename, [routeId]);\n return unwrapSingleFetchResult(data2, routeId);\n });\n results[routeId] = { type: \"data\", result };\n } catch (e) {\n results[routeId] = { type: \"error\", result: e };\n }\n return;\n }\n if (hasLoader) {\n routesParams.add(routeId);\n }\n try {\n let result = await handler(async () => {\n let data2 = await singleFetchDfd.promise;\n return unwrapSingleFetchResult(data2, routeId);\n });\n results[routeId] = { type: \"data\", result };\n } catch (e) {\n results[routeId] = { type: \"error\", result: e };\n }\n })\n )\n );\n await Promise.all(routeDfds.map((d) => d.promise));\n let isInitialLoad = !router.state.initialized && router.state.navigation.state === \"idle\";\n if ((isInitialLoad || routesParams.size === 0) && !window.__reactRouterHdrActive) {\n singleFetchDfd.resolve({ routes: {} });\n } else {\n let targetRoutes = ssr && foundOptOutRoute && routesParams.size > 0 ? [...routesParams.keys()] : void 0;\n try {\n let data2 = await fetchAndDecode(args, basename, targetRoutes);\n singleFetchDfd.resolve(data2.data);\n } catch (e) {\n singleFetchDfd.reject(e);\n }\n }\n await resolvePromise;\n await bubbleMiddlewareErrors(\n singleFetchDfd.promise,\n args.matches,\n routesParams,\n results\n );\n return results;\n}\nasync function bubbleMiddlewareErrors(singleFetchPromise, matches, routesParams, results) {\n try {\n let middlewareError;\n let fetchedData = await singleFetchPromise;\n if (\"routes\" in fetchedData) {\n for (let match of matches) {\n if (match.route.id in fetchedData.routes) {\n let routeResult = fetchedData.routes[match.route.id];\n if (\"error\" in routeResult) {\n middlewareError = routeResult.error;\n if (results[match.route.id]?.result == null) {\n results[match.route.id] = {\n type: \"error\",\n result: middlewareError\n };\n }\n break;\n }\n }\n }\n }\n if (middlewareError !== void 0) {\n Array.from(routesParams.values()).forEach((routeId) => {\n if (results[routeId].result instanceof SingleFetchNoResultError) {\n results[routeId].result = middlewareError;\n }\n });\n }\n } catch (e) {\n }\n}\nasync function singleFetchLoaderFetcherStrategy(args, fetchAndDecode, basename) {\n let fetcherMatch = args.matches.find((m) => m.unstable_shouldCallHandler());\n invariant2(fetcherMatch, \"No fetcher match found\");\n let routeId = fetcherMatch.route.id;\n let result = await fetcherMatch.resolve(\n async (handler) => handler(async () => {\n let { data: data2 } = await fetchAndDecode(args, basename, [routeId]);\n return unwrapSingleFetchResult(data2, routeId);\n })\n );\n return { [fetcherMatch.route.id]: result };\n}\nfunction stripIndexParam(url) {\n let indexValues = url.searchParams.getAll(\"index\");\n url.searchParams.delete(\"index\");\n let indexValuesToKeep = [];\n for (let indexValue of indexValues) {\n if (indexValue) {\n indexValuesToKeep.push(indexValue);\n }\n }\n for (let toKeep of indexValuesToKeep) {\n url.searchParams.append(\"index\", toKeep);\n }\n return url;\n}\nfunction singleFetchUrl(reqUrl, basename, extension) {\n let url = typeof reqUrl === \"string\" ? new URL(\n reqUrl,\n // This can be called during the SSR flow via PrefetchPageLinksImpl so\n // don't assume window is available\n typeof window === \"undefined\" ? \"server://singlefetch/\" : window.location.origin\n ) : reqUrl;\n if (url.pathname === \"/\") {\n url.pathname = `_root.${extension}`;\n } else if (basename && stripBasename(url.pathname, basename) === \"/\") {\n url.pathname = `${basename.replace(/\\/$/, \"\")}/_root.${extension}`;\n } else {\n url.pathname = `${url.pathname.replace(/\\/$/, \"\")}.${extension}`;\n }\n return url;\n}\nasync function fetchAndDecodeViaTurboStream(args, basename, targetRoutes) {\n let { request } = args;\n let url = singleFetchUrl(request.url, basename, \"data\");\n if (request.method === \"GET\") {\n url = stripIndexParam(url);\n if (targetRoutes) {\n url.searchParams.set(\"_routes\", targetRoutes.join(\",\"));\n }\n }\n let res = await fetch(url, await createRequestInit(request));\n if (res.status === 404 && !res.headers.has(\"X-Remix-Response\")) {\n throw new ErrorResponseImpl(404, \"Not Found\", true);\n }\n if (res.status === 204 && res.headers.has(\"X-Remix-Redirect\")) {\n return {\n status: SINGLE_FETCH_REDIRECT_STATUS,\n data: {\n redirect: {\n redirect: res.headers.get(\"X-Remix-Redirect\"),\n status: Number(res.headers.get(\"X-Remix-Status\") || \"302\"),\n revalidate: res.headers.get(\"X-Remix-Revalidate\") === \"true\",\n reload: res.headers.get(\"X-Remix-Reload-Document\") === \"true\",\n replace: res.headers.get(\"X-Remix-Replace\") === \"true\"\n }\n }\n };\n }\n if (NO_BODY_STATUS_CODES.has(res.status)) {\n let routes = {};\n if (targetRoutes && request.method !== \"GET\") {\n routes[targetRoutes[0]] = { data: void 0 };\n }\n return {\n status: res.status,\n data: { routes }\n };\n }\n invariant2(res.body, \"No response body to decode\");\n try {\n let decoded = await decodeViaTurboStream(res.body, window);\n let data2;\n if (request.method === \"GET\") {\n let typed = decoded.value;\n if (SingleFetchRedirectSymbol in typed) {\n data2 = { redirect: typed[SingleFetchRedirectSymbol] };\n } else {\n data2 = { routes: typed };\n }\n } else {\n let typed = decoded.value;\n let routeId = targetRoutes?.[0];\n invariant2(routeId, \"No routeId found for single fetch call decoding\");\n if (\"redirect\" in typed) {\n data2 = { redirect: typed };\n } else {\n data2 = { routes: { [routeId]: typed } };\n }\n }\n return { status: res.status, data: data2 };\n } catch (e) {\n throw new Error(\"Unable to decode turbo-stream response\");\n }\n}\nfunction decodeViaTurboStream(body, global) {\n return decode(body, {\n plugins: [\n (type, ...rest) => {\n if (type === \"SanitizedError\") {\n let [name, message, stack] = rest;\n let Constructor = Error;\n if (name && name in global && typeof global[name] === \"function\") {\n Constructor = global[name];\n }\n let error = new Constructor(message);\n error.stack = stack;\n return { value: error };\n }\n if (type === \"ErrorResponse\") {\n let [data2, status, statusText] = rest;\n return {\n value: new ErrorResponseImpl(status, statusText, data2)\n };\n }\n if (type === \"SingleFetchRedirect\") {\n return { value: { [SingleFetchRedirectSymbol]: rest[0] } };\n }\n if (type === \"SingleFetchClassInstance\") {\n return { value: rest[0] };\n }\n if (type === \"SingleFetchFallback\") {\n return { value: void 0 };\n }\n }\n ]\n });\n}\nfunction unwrapSingleFetchResult(result, routeId) {\n if (\"redirect\" in result) {\n let {\n redirect: location,\n revalidate,\n reload,\n replace: replace2,\n status\n } = result.redirect;\n throw redirect(location, {\n status,\n headers: {\n // Three R's of redirecting (lol Veep)\n ...revalidate ? { \"X-Remix-Revalidate\": \"yes\" } : null,\n ...reload ? { \"X-Remix-Reload-Document\": \"yes\" } : null,\n ...replace2 ? { \"X-Remix-Replace\": \"yes\" } : null\n }\n });\n }\n let routeResult = result.routes[routeId];\n if (routeResult == null) {\n throw new SingleFetchNoResultError(\n `No result found for routeId \"${routeId}\"`\n );\n } else if (\"error\" in routeResult) {\n throw routeResult.error;\n } else if (\"data\" in routeResult) {\n return routeResult.data;\n } else {\n throw new Error(`Invalid response found for routeId \"${routeId}\"`);\n }\n}\nfunction createDeferred2() {\n let resolve;\n let reject;\n let promise = new Promise((res, rej) => {\n resolve = async (val) => {\n res(val);\n try {\n await promise;\n } catch (e) {\n }\n };\n reject = async (error) => {\n rej(error);\n try {\n await promise;\n } catch (e) {\n }\n };\n });\n return {\n promise,\n //@ts-ignore\n resolve,\n //@ts-ignore\n reject\n };\n}\n\n// lib/dom/ssr/errorBoundaries.tsx\nimport * as React9 from \"react\";\n\n// lib/dom/ssr/components.tsx\nimport * as React8 from \"react\";\n\n// lib/dom/ssr/routeModules.ts\nasync function loadRouteModule(route, routeModulesCache) {\n if (route.id in routeModulesCache) {\n return routeModulesCache[route.id];\n }\n try {\n let routeModule = await import(\n /* @vite-ignore */\n /* webpackIgnore: true */\n route.module\n );\n routeModulesCache[route.id] = routeModule;\n return routeModule;\n } catch (error) {\n console.error(\n `Error loading route module \\`${route.module}\\`, reloading page...`\n );\n console.error(error);\n if (window.__reactRouterContext && window.__reactRouterContext.isSpaMode && // @ts-expect-error\n import.meta.hot) {\n throw error;\n }\n window.location.reload();\n return new Promise(() => {\n });\n }\n}\n\n// lib/dom/ssr/links.ts\nfunction getKeyedLinksForMatches(matches, routeModules, manifest) {\n let descriptors = matches.map((match) => {\n let module = routeModules[match.route.id];\n let route = manifest.routes[match.route.id];\n return [\n route && route.css ? route.css.map((href) => ({ rel: \"stylesheet\", href })) : [],\n module?.links?.() || []\n ];\n }).flat(2);\n let preloads = getModuleLinkHrefs(matches, manifest);\n return dedupeLinkDescriptors(descriptors, preloads);\n}\nfunction getRouteCssDescriptors(route) {\n if (!route.css) return [];\n return route.css.map((href) => ({ rel: \"stylesheet\", href }));\n}\nasync function prefetchRouteCss(route) {\n if (!route.css) return;\n let descriptors = getRouteCssDescriptors(route);\n await Promise.all(descriptors.map(prefetchStyleLink));\n}\nasync function prefetchStyleLinks(route, routeModule) {\n if (!route.css && !routeModule.links || !isPreloadSupported()) return;\n let descriptors = [];\n if (route.css) {\n descriptors.push(...getRouteCssDescriptors(route));\n }\n if (routeModule.links) {\n descriptors.push(...routeModule.links());\n }\n if (descriptors.length === 0) return;\n let styleLinks = [];\n for (let descriptor of descriptors) {\n if (!isPageLinkDescriptor(descriptor) && descriptor.rel === \"stylesheet\") {\n styleLinks.push({\n ...descriptor,\n rel: \"preload\",\n as: \"style\"\n });\n }\n }\n await Promise.all(styleLinks.map(prefetchStyleLink));\n}\nasync function prefetchStyleLink(descriptor) {\n return new Promise((resolve) => {\n if (descriptor.media && !window.matchMedia(descriptor.media).matches || document.querySelector(\n `link[rel=\"stylesheet\"][href=\"${descriptor.href}\"]`\n )) {\n return resolve();\n }\n let link = document.createElement(\"link\");\n Object.assign(link, descriptor);\n function removeLink() {\n if (document.head.contains(link)) {\n document.head.removeChild(link);\n }\n }\n link.onload = () => {\n removeLink();\n resolve();\n };\n link.onerror = () => {\n removeLink();\n resolve();\n };\n document.head.appendChild(link);\n });\n}\nfunction isPageLinkDescriptor(object) {\n return object != null && typeof object.page === \"string\";\n}\nfunction isHtmlLinkDescriptor(object) {\n if (object == null) {\n return false;\n }\n if (object.href == null) {\n return object.rel === \"preload\" && typeof object.imageSrcSet === \"string\" && typeof object.imageSizes === \"string\";\n }\n return typeof object.rel === \"string\" && typeof object.href === \"string\";\n}\nasync function getKeyedPrefetchLinks(matches, manifest, routeModules) {\n let links = await Promise.all(\n matches.map(async (match) => {\n let route = manifest.routes[match.route.id];\n if (route) {\n let mod = await loadRouteModule(route, routeModules);\n return mod.links ? mod.links() : [];\n }\n return [];\n })\n );\n return dedupeLinkDescriptors(\n links.flat(1).filter(isHtmlLinkDescriptor).filter((link) => link.rel === \"stylesheet\" || link.rel === \"preload\").map(\n (link) => link.rel === \"stylesheet\" ? { ...link, rel: \"prefetch\", as: \"style\" } : { ...link, rel: \"prefetch\" }\n )\n );\n}\nfunction getNewMatchesForLinks(page, nextMatches, currentMatches, manifest, location, mode) {\n let isNew = (match, index) => {\n if (!currentMatches[index]) return true;\n return match.route.id !== currentMatches[index].route.id;\n };\n let matchPathChanged = (match, index) => {\n return (\n // param change, /users/123 -> /users/456\n currentMatches[index].pathname !== match.pathname || // splat param changed, which is not present in match.path\n // e.g. /files/images/avatar.jpg -> files/finances.xls\n currentMatches[index].route.path?.endsWith(\"*\") && currentMatches[index].params[\"*\"] !== match.params[\"*\"]\n );\n };\n if (mode === \"assets\") {\n return nextMatches.filter(\n (match, index) => isNew(match, index) || matchPathChanged(match, index)\n );\n }\n if (mode === \"data\") {\n return nextMatches.filter((match, index) => {\n let manifestRoute = manifest.routes[match.route.id];\n if (!manifestRoute || !manifestRoute.hasLoader) {\n return false;\n }\n if (isNew(match, index) || matchPathChanged(match, index)) {\n return true;\n }\n if (match.route.shouldRevalidate) {\n let routeChoice = match.route.shouldRevalidate({\n currentUrl: new URL(\n location.pathname + location.search + location.hash,\n window.origin\n ),\n currentParams: currentMatches[0]?.params || {},\n nextUrl: new URL(page, window.origin),\n nextParams: match.params,\n defaultShouldRevalidate: true\n });\n if (typeof routeChoice === \"boolean\") {\n return routeChoice;\n }\n }\n return true;\n });\n }\n return [];\n}\nfunction getModuleLinkHrefs(matches, manifest, { includeHydrateFallback } = {}) {\n return dedupeHrefs(\n matches.map((match) => {\n let route = manifest.routes[match.route.id];\n if (!route) return [];\n let hrefs = [route.module];\n if (route.clientActionModule) {\n hrefs = hrefs.concat(route.clientActionModule);\n }\n if (route.clientLoaderModule) {\n hrefs = hrefs.concat(route.clientLoaderModule);\n }\n if (includeHydrateFallback && route.hydrateFallbackModule) {\n hrefs = hrefs.concat(route.hydrateFallbackModule);\n }\n if (route.imports) {\n hrefs = hrefs.concat(route.imports);\n }\n return hrefs;\n }).flat(1)\n );\n}\nfunction dedupeHrefs(hrefs) {\n return [...new Set(hrefs)];\n}\nfunction sortKeys(obj) {\n let sorted = {};\n let keys = Object.keys(obj).sort();\n for (let key of keys) {\n sorted[key] = obj[key];\n }\n return sorted;\n}\nfunction dedupeLinkDescriptors(descriptors, preloads) {\n let set = /* @__PURE__ */ new Set();\n let preloadsSet = new Set(preloads);\n return descriptors.reduce((deduped, descriptor) => {\n let alreadyModulePreload = preloads && !isPageLinkDescriptor(descriptor) && descriptor.as === \"script\" && descriptor.href && preloadsSet.has(descriptor.href);\n if (alreadyModulePreload) {\n return deduped;\n }\n let key = JSON.stringify(sortKeys(descriptor));\n if (!set.has(key)) {\n set.add(key);\n deduped.push({ key, link: descriptor });\n }\n return deduped;\n }, []);\n}\nvar _isPreloadSupported;\nfunction isPreloadSupported() {\n if (_isPreloadSupported !== void 0) {\n return _isPreloadSupported;\n }\n let el = document.createElement(\"link\");\n _isPreloadSupported = el.relList.supports(\"preload\");\n el = null;\n return _isPreloadSupported;\n}\n\n// lib/dom/ssr/fog-of-war.ts\nimport * as React7 from \"react\";\n\n// lib/dom/ssr/routes.tsx\nimport * as React6 from \"react\";\n\n// lib/dom/ssr/fallback.tsx\nimport * as React5 from \"react\";\nfunction RemixRootDefaultHydrateFallback() {\n return /* @__PURE__ */ React5.createElement(BoundaryShell, { title: \"Loading...\", renderScripts: true }, ENABLE_DEV_WARNINGS ? /* @__PURE__ */ React5.createElement(\n \"script\",\n {\n dangerouslySetInnerHTML: {\n __html: `\n console.log(\n \"\\u{1F4BF} Hey developer \\u{1F44B}. You can provide a way better UX than this \" +\n \"when your app is loading JS modules and/or running \\`clientLoader\\` \" +\n \"functions. Check out https://reactrouter.com/start/framework/route-module#hydratefallback \" +\n \"for more information.\"\n );\n `\n }\n }\n ) : null);\n}\n\n// lib/dom/ssr/routes.tsx\nfunction groupRoutesByParentId(manifest) {\n let routes = {};\n Object.values(manifest).forEach((route) => {\n if (route) {\n let parentId = route.parentId || \"\";\n if (!routes[parentId]) {\n routes[parentId] = [];\n }\n routes[parentId].push(route);\n }\n });\n return routes;\n}\nfunction getRouteComponents(route, routeModule, isSpaMode) {\n let Component4 = getRouteModuleComponent(routeModule);\n let HydrateFallback = routeModule.HydrateFallback && (!isSpaMode || route.id === \"root\") ? routeModule.HydrateFallback : route.id === \"root\" ? RemixRootDefaultHydrateFallback : void 0;\n let ErrorBoundary = routeModule.ErrorBoundary ? routeModule.ErrorBoundary : route.id === \"root\" ? () => /* @__PURE__ */ React6.createElement(RemixRootDefaultErrorBoundary, { error: useRouteError() }) : void 0;\n if (route.id === \"root\" && routeModule.Layout) {\n return {\n ...Component4 ? {\n element: /* @__PURE__ */ React6.createElement(routeModule.Layout, null, /* @__PURE__ */ React6.createElement(Component4, null))\n } : { Component: Component4 },\n ...ErrorBoundary ? {\n errorElement: /* @__PURE__ */ React6.createElement(routeModule.Layout, null, /* @__PURE__ */ React6.createElement(ErrorBoundary, null))\n } : { ErrorBoundary },\n ...HydrateFallback ? {\n hydrateFallbackElement: /* @__PURE__ */ React6.createElement(routeModule.Layout, null, /* @__PURE__ */ React6.createElement(HydrateFallback, null))\n } : { HydrateFallback }\n };\n }\n return { Component: Component4, ErrorBoundary, HydrateFallback };\n}\nfunction createServerRoutes(manifest, routeModules, future, isSpaMode, parentId = \"\", routesByParentId = groupRoutesByParentId(manifest), spaModeLazyPromise = Promise.resolve({ Component: () => null })) {\n return (routesByParentId[parentId] || []).map((route) => {\n let routeModule = routeModules[route.id];\n invariant2(\n routeModule,\n \"No `routeModule` available to create server routes\"\n );\n let dataRoute = {\n ...getRouteComponents(route, routeModule, isSpaMode),\n caseSensitive: route.caseSensitive,\n id: route.id,\n index: route.index,\n path: route.path,\n handle: routeModule.handle,\n // For SPA Mode, all routes are lazy except root. However we tell the\n // router root is also lazy here too since we don't need a full\n // implementation - we just need a `lazy` prop to tell the RR rendering\n // where to stop which is always at the root route in SPA mode\n lazy: isSpaMode ? () => spaModeLazyPromise : void 0,\n // For partial hydration rendering, we need to indicate when the route\n // has a loader/clientLoader, but it won't ever be called during the static\n // render, so just give it a no-op function so we can render down to the\n // proper fallback\n loader: route.hasLoader || route.hasClientLoader ? () => null : void 0\n // We don't need middleware/action/shouldRevalidate on these routes since\n // they're for a static render\n };\n let children = createServerRoutes(\n manifest,\n routeModules,\n future,\n isSpaMode,\n route.id,\n routesByParentId,\n spaModeLazyPromise\n );\n if (children.length > 0) dataRoute.children = children;\n return dataRoute;\n });\n}\nfunction createClientRoutesWithHMRRevalidationOptOut(needsRevalidation, manifest, routeModulesCache, initialState, ssr, isSpaMode) {\n return createClientRoutes(\n manifest,\n routeModulesCache,\n initialState,\n ssr,\n isSpaMode,\n \"\",\n groupRoutesByParentId(manifest),\n needsRevalidation\n );\n}\nfunction preventInvalidServerHandlerCall(type, route) {\n if (type === \"loader\" && !route.hasLoader || type === \"action\" && !route.hasAction) {\n let fn = type === \"action\" ? \"serverAction()\" : \"serverLoader()\";\n let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: \"${route.id}\")`;\n console.error(msg);\n throw new ErrorResponseImpl(400, \"Bad Request\", new Error(msg), true);\n }\n}\nfunction noActionDefinedError(type, routeId) {\n let article = type === \"clientAction\" ? \"a\" : \"an\";\n let msg = `Route \"${routeId}\" does not have ${article} ${type}, but you are trying to submit to it. To fix this, please add ${article} \\`${type}\\` function to the route`;\n console.error(msg);\n throw new ErrorResponseImpl(405, \"Method Not Allowed\", new Error(msg), true);\n}\nfunction createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSpaMode, parentId = \"\", routesByParentId = groupRoutesByParentId(manifest), needsRevalidation) {\n return (routesByParentId[parentId] || []).map((route) => {\n let routeModule = routeModulesCache[route.id];\n function fetchServerHandler(singleFetch) {\n invariant2(\n typeof singleFetch === \"function\",\n \"No single fetch function available for route handler\"\n );\n return singleFetch();\n }\n function fetchServerLoader(singleFetch) {\n if (!route.hasLoader) return Promise.resolve(null);\n return fetchServerHandler(singleFetch);\n }\n function fetchServerAction(singleFetch) {\n if (!route.hasAction) {\n throw noActionDefinedError(\"action\", route.id);\n }\n return fetchServerHandler(singleFetch);\n }\n function prefetchModule(modulePath) {\n import(\n /* @vite-ignore */\n /* webpackIgnore: true */\n modulePath\n );\n }\n function prefetchRouteModuleChunks(route2) {\n if (route2.clientActionModule) {\n prefetchModule(route2.clientActionModule);\n }\n if (route2.clientLoaderModule) {\n prefetchModule(route2.clientLoaderModule);\n }\n }\n async function prefetchStylesAndCallHandler(handler) {\n let cachedModule = routeModulesCache[route.id];\n let linkPrefetchPromise = cachedModule ? prefetchStyleLinks(route, cachedModule) : Promise.resolve();\n try {\n return handler();\n } finally {\n await linkPrefetchPromise;\n }\n }\n let dataRoute = {\n id: route.id,\n index: route.index,\n path: route.path\n };\n if (routeModule) {\n Object.assign(dataRoute, {\n ...dataRoute,\n ...getRouteComponents(route, routeModule, isSpaMode),\n middleware: routeModule.clientMiddleware,\n handle: routeModule.handle,\n shouldRevalidate: getShouldRevalidateFunction(\n dataRoute.path,\n routeModule,\n route,\n ssr,\n needsRevalidation\n )\n });\n let hasInitialData = initialState && initialState.loaderData && route.id in initialState.loaderData;\n let initialData = hasInitialData ? initialState?.loaderData?.[route.id] : void 0;\n let hasInitialError = initialState && initialState.errors && route.id in initialState.errors;\n let initialError = hasInitialError ? initialState?.errors?.[route.id] : void 0;\n let isHydrationRequest = needsRevalidation == null && (routeModule.clientLoader?.hydrate === true || !route.hasLoader);\n dataRoute.loader = async ({ request, params, context }, singleFetch) => {\n try {\n let result = await prefetchStylesAndCallHandler(async () => {\n invariant2(\n routeModule,\n \"No `routeModule` available for critical-route loader\"\n );\n if (!routeModule.clientLoader) {\n return fetchServerLoader(singleFetch);\n }\n return routeModule.clientLoader({\n request,\n params,\n context,\n async serverLoader() {\n preventInvalidServerHandlerCall(\"loader\", route);\n if (isHydrationRequest) {\n if (hasInitialData) {\n return initialData;\n }\n if (hasInitialError) {\n throw initialError;\n }\n }\n return fetchServerLoader(singleFetch);\n }\n });\n });\n return result;\n } finally {\n isHydrationRequest = false;\n }\n };\n dataRoute.loader.hydrate = shouldHydrateRouteLoader(\n route.id,\n routeModule.clientLoader,\n route.hasLoader,\n isSpaMode\n );\n dataRoute.action = ({ request, params, context }, singleFetch) => {\n return prefetchStylesAndCallHandler(async () => {\n invariant2(\n routeModule,\n \"No `routeModule` available for critical-route action\"\n );\n if (!routeModule.clientAction) {\n if (isSpaMode) {\n throw noActionDefinedError(\"clientAction\", route.id);\n }\n return fetchServerAction(singleFetch);\n }\n return routeModule.clientAction({\n request,\n params,\n context,\n async serverAction() {\n preventInvalidServerHandlerCall(\"action\", route);\n return fetchServerAction(singleFetch);\n }\n });\n });\n };\n } else {\n if (!route.hasClientLoader) {\n dataRoute.loader = (_, singleFetch) => prefetchStylesAndCallHandler(() => {\n return fetchServerLoader(singleFetch);\n });\n }\n if (!route.hasClientAction) {\n dataRoute.action = (_, singleFetch) => prefetchStylesAndCallHandler(() => {\n if (isSpaMode) {\n throw noActionDefinedError(\"clientAction\", route.id);\n }\n return fetchServerAction(singleFetch);\n });\n }\n let lazyRoutePromise;\n async function getLazyRoute() {\n if (lazyRoutePromise) {\n return await lazyRoutePromise;\n }\n lazyRoutePromise = (async () => {\n if (route.clientLoaderModule || route.clientActionModule) {\n await new Promise((resolve) => setTimeout(resolve, 0));\n }\n let routeModulePromise = loadRouteModuleWithBlockingLinks(\n route,\n routeModulesCache\n );\n prefetchRouteModuleChunks(route);\n return await routeModulePromise;\n })();\n return await lazyRoutePromise;\n }\n dataRoute.lazy = {\n loader: route.hasClientLoader ? async () => {\n let { clientLoader } = route.clientLoaderModule ? await import(\n /* @vite-ignore */\n /* webpackIgnore: true */\n route.clientLoaderModule\n ) : await getLazyRoute();\n invariant2(clientLoader, \"No `clientLoader` export found\");\n return (args, singleFetch) => clientLoader({\n ...args,\n async serverLoader() {\n preventInvalidServerHandlerCall(\"loader\", route);\n return fetchServerLoader(singleFetch);\n }\n });\n } : void 0,\n action: route.hasClientAction ? async () => {\n let clientActionPromise = route.clientActionModule ? import(\n /* @vite-ignore */\n /* webpackIgnore: true */\n route.clientActionModule\n ) : getLazyRoute();\n prefetchRouteModuleChunks(route);\n let { clientAction } = await clientActionPromise;\n invariant2(clientAction, \"No `clientAction` export found\");\n return (args, singleFetch) => clientAction({\n ...args,\n async serverAction() {\n preventInvalidServerHandlerCall(\"action\", route);\n return fetchServerAction(singleFetch);\n }\n });\n } : void 0,\n middleware: route.hasClientMiddleware ? async () => {\n let { clientMiddleware } = route.clientMiddlewareModule ? await import(\n /* @vite-ignore */\n /* webpackIgnore: true */\n route.clientMiddlewareModule\n ) : await getLazyRoute();\n invariant2(clientMiddleware, \"No `clientMiddleware` export found\");\n return clientMiddleware;\n } : void 0,\n shouldRevalidate: async () => {\n let lazyRoute = await getLazyRoute();\n return getShouldRevalidateFunction(\n dataRoute.path,\n lazyRoute,\n route,\n ssr,\n needsRevalidation\n );\n },\n handle: async () => (await getLazyRoute()).handle,\n // No need to wrap these in layout since the root route is never\n // loaded via route.lazy()\n Component: async () => (await getLazyRoute()).Component,\n ErrorBoundary: route.hasErrorBoundary ? async () => (await getLazyRoute()).ErrorBoundary : void 0\n };\n }\n let children = createClientRoutes(\n manifest,\n routeModulesCache,\n initialState,\n ssr,\n isSpaMode,\n route.id,\n routesByParentId,\n needsRevalidation\n );\n if (children.length > 0) dataRoute.children = children;\n return dataRoute;\n });\n}\nfunction getShouldRevalidateFunction(path, route, manifestRoute, ssr, needsRevalidation) {\n if (needsRevalidation) {\n return wrapShouldRevalidateForHdr(\n manifestRoute.id,\n route.shouldRevalidate,\n needsRevalidation\n );\n }\n if (!ssr && manifestRoute.hasLoader && !manifestRoute.hasClientLoader) {\n let myParams = path ? compilePath(path)[1].map((p) => p.paramName) : [];\n const didParamsChange = (opts) => myParams.some((p) => opts.currentParams[p] !== opts.nextParams[p]);\n if (route.shouldRevalidate) {\n let fn = route.shouldRevalidate;\n return (opts) => fn({\n ...opts,\n defaultShouldRevalidate: didParamsChange(opts)\n });\n } else {\n return (opts) => didParamsChange(opts);\n }\n }\n if (ssr && route.shouldRevalidate) {\n let fn = route.shouldRevalidate;\n return (opts) => fn({ ...opts, defaultShouldRevalidate: true });\n }\n return route.shouldRevalidate;\n}\nfunction wrapShouldRevalidateForHdr(routeId, routeShouldRevalidate, needsRevalidation) {\n let handledRevalidation = false;\n return (arg) => {\n if (!handledRevalidation) {\n handledRevalidation = true;\n return needsRevalidation.has(routeId);\n }\n return routeShouldRevalidate ? routeShouldRevalidate(arg) : arg.defaultShouldRevalidate;\n };\n}\nasync function loadRouteModuleWithBlockingLinks(route, routeModules) {\n let routeModulePromise = loadRouteModule(route, routeModules);\n let prefetchRouteCssPromise = prefetchRouteCss(route);\n let routeModule = await routeModulePromise;\n await Promise.all([\n prefetchRouteCssPromise,\n prefetchStyleLinks(route, routeModule)\n ]);\n return {\n Component: getRouteModuleComponent(routeModule),\n ErrorBoundary: routeModule.ErrorBoundary,\n clientMiddleware: routeModule.clientMiddleware,\n clientAction: routeModule.clientAction,\n clientLoader: routeModule.clientLoader,\n handle: routeModule.handle,\n links: routeModule.links,\n meta: routeModule.meta,\n shouldRevalidate: routeModule.shouldRevalidate\n };\n}\nfunction getRouteModuleComponent(routeModule) {\n if (routeModule.default == null) return void 0;\n let isEmptyObject = typeof routeModule.default === \"object\" && Object.keys(routeModule.default).length === 0;\n if (!isEmptyObject) {\n return routeModule.default;\n }\n}\nfunction shouldHydrateRouteLoader(routeId, clientLoader, hasLoader, isSpaMode) {\n return isSpaMode && routeId !== \"root\" || clientLoader != null && (clientLoader.hydrate === true || hasLoader !== true);\n}\n\n// lib/dom/ssr/fog-of-war.ts\nvar nextPaths = /* @__PURE__ */ new Set();\nvar discoveredPathsMaxSize = 1e3;\nvar discoveredPaths = /* @__PURE__ */ new Set();\nvar URL_LIMIT = 7680;\nfunction isFogOfWarEnabled(routeDiscovery, ssr) {\n return routeDiscovery.mode === \"lazy\" && ssr === true;\n}\nfunction getPartialManifest({ sri, ...manifest }, router) {\n let routeIds = new Set(router.state.matches.map((m) => m.route.id));\n let segments = router.state.location.pathname.split(\"/\").filter(Boolean);\n let paths = [\"/\"];\n segments.pop();\n while (segments.length > 0) {\n paths.push(`/${segments.join(\"/\")}`);\n segments.pop();\n }\n paths.forEach((path) => {\n let matches = matchRoutes(router.routes, path, router.basename);\n if (matches) {\n matches.forEach((m) => routeIds.add(m.route.id));\n }\n });\n let initialRoutes = [...routeIds].reduce(\n (acc, id) => Object.assign(acc, { [id]: manifest.routes[id] }),\n {}\n );\n return {\n ...manifest,\n routes: initialRoutes,\n sri: sri ? true : void 0\n };\n}\nfunction getPatchRoutesOnNavigationFunction(manifest, routeModules, ssr, routeDiscovery, isSpaMode, basename) {\n if (!isFogOfWarEnabled(routeDiscovery, ssr)) {\n return void 0;\n }\n return async ({ path, patch, signal, fetcherKey }) => {\n if (discoveredPaths.has(path)) {\n return;\n }\n await fetchAndApplyManifestPatches(\n [path],\n fetcherKey ? window.location.href : path,\n manifest,\n routeModules,\n ssr,\n isSpaMode,\n basename,\n routeDiscovery.manifestPath,\n patch,\n signal\n );\n };\n}\nfunction useFogOFWarDiscovery(router, manifest, routeModules, ssr, routeDiscovery, isSpaMode) {\n React7.useEffect(() => {\n if (!isFogOfWarEnabled(routeDiscovery, ssr) || // @ts-expect-error - TS doesn't know about this yet\n window.navigator?.connection?.saveData === true) {\n return;\n }\n function registerElement(el) {\n let path = el.tagName === \"FORM\" ? el.getAttribute(\"action\") : el.getAttribute(\"href\");\n if (!path) {\n return;\n }\n let pathname = el.tagName === \"A\" ? el.pathname : new URL(path, window.location.origin).pathname;\n if (!discoveredPaths.has(pathname)) {\n nextPaths.add(pathname);\n }\n }\n async function fetchPatches() {\n document.querySelectorAll(\"a[data-discover], form[data-discover]\").forEach(registerElement);\n let lazyPaths = Array.from(nextPaths.keys()).filter((path) => {\n if (discoveredPaths.has(path)) {\n nextPaths.delete(path);\n return false;\n }\n return true;\n });\n if (lazyPaths.length === 0) {\n return;\n }\n try {\n await fetchAndApplyManifestPatches(\n lazyPaths,\n null,\n manifest,\n routeModules,\n ssr,\n isSpaMode,\n router.basename,\n routeDiscovery.manifestPath,\n router.patchRoutes\n );\n } catch (e) {\n console.error(\"Failed to fetch manifest patches\", e);\n }\n }\n let debouncedFetchPatches = debounce(fetchPatches, 100);\n fetchPatches();\n let observer = new MutationObserver(() => debouncedFetchPatches());\n observer.observe(document.documentElement, {\n subtree: true,\n childList: true,\n attributes: true,\n attributeFilter: [\"data-discover\", \"href\", \"action\"]\n });\n return () => observer.disconnect();\n }, [ssr, isSpaMode, manifest, routeModules, router, routeDiscovery]);\n}\nfunction getManifestPath(_manifestPath, basename) {\n let manifestPath = _manifestPath || \"/__manifest\";\n if (basename == null) {\n return manifestPath;\n }\n return `${basename}${manifestPath}`.replace(/\\/+/g, \"/\");\n}\nvar MANIFEST_VERSION_STORAGE_KEY = \"react-router-manifest-version\";\nasync function fetchAndApplyManifestPatches(paths, errorReloadPath, manifest, routeModules, ssr, isSpaMode, basename, manifestPath, patchRoutes, signal) {\n const searchParams = new URLSearchParams();\n paths.sort().forEach((path) => searchParams.append(\"p\", path));\n searchParams.set(\"version\", manifest.version);\n let url = new URL(\n getManifestPath(manifestPath, basename),\n window.location.origin\n );\n url.search = searchParams.toString();\n if (url.toString().length > URL_LIMIT) {\n nextPaths.clear();\n return;\n }\n let serverPatches;\n try {\n let res = await fetch(url, { signal });\n if (!res.ok) {\n throw new Error(`${res.status} ${res.statusText}`);\n } else if (res.status === 204 && res.headers.has(\"X-Remix-Reload-Document\")) {\n if (!errorReloadPath) {\n console.warn(\n \"Detected a manifest version mismatch during eager route discovery. The next navigation/fetch to an undiscovered route will result in a new document navigation to sync up with the latest manifest.\"\n );\n return;\n }\n if (sessionStorage.getItem(MANIFEST_VERSION_STORAGE_KEY) === manifest.version) {\n console.error(\n \"Unable to discover routes due to manifest version mismatch.\"\n );\n return;\n }\n sessionStorage.setItem(MANIFEST_VERSION_STORAGE_KEY, manifest.version);\n window.location.href = errorReloadPath;\n console.warn(\"Detected manifest version mismatch, reloading...\");\n await new Promise(() => {\n });\n } else if (res.status >= 400) {\n throw new Error(await res.text());\n }\n sessionStorage.removeItem(MANIFEST_VERSION_STORAGE_KEY);\n serverPatches = await res.json();\n } catch (e) {\n if (signal?.aborted) return;\n throw e;\n }\n let knownRoutes = new Set(Object.keys(manifest.routes));\n let patches = Object.values(serverPatches).reduce((acc, route) => {\n if (route && !knownRoutes.has(route.id)) {\n acc[route.id] = route;\n }\n return acc;\n }, {});\n Object.assign(manifest.routes, patches);\n paths.forEach((p) => addToFifoQueue(p, discoveredPaths));\n let parentIds = /* @__PURE__ */ new Set();\n Object.values(patches).forEach((patch) => {\n if (patch && (!patch.parentId || !patches[patch.parentId])) {\n parentIds.add(patch.parentId);\n }\n });\n parentIds.forEach(\n (parentId) => patchRoutes(\n parentId || null,\n createClientRoutes(patches, routeModules, null, ssr, isSpaMode, parentId)\n )\n );\n}\nfunction addToFifoQueue(path, queue) {\n if (queue.size >= discoveredPathsMaxSize) {\n let first = queue.values().next().value;\n queue.delete(first);\n }\n queue.add(path);\n}\nfunction debounce(callback, wait) {\n let timeoutId;\n return (...args) => {\n window.clearTimeout(timeoutId);\n timeoutId = window.setTimeout(() => callback(...args), wait);\n };\n}\n\n// lib/dom/ssr/components.tsx\nfunction useDataRouterContext2() {\n let context = React8.useContext(DataRouterContext);\n invariant2(\n context,\n \"You must render this element inside a <DataRouterContext.Provider> element\"\n );\n return context;\n}\nfunction useDataRouterStateContext() {\n let context = React8.useContext(DataRouterStateContext);\n invariant2(\n context,\n \"You must render this element inside a <DataRouterStateContext.Provider> element\"\n );\n return context;\n}\nvar FrameworkContext = React8.createContext(void 0);\nFrameworkContext.displayName = \"FrameworkContext\";\nfunction useFrameworkContext() {\n let context = React8.useContext(FrameworkContext);\n invariant2(\n context,\n \"You must render this element inside a <HydratedRouter> element\"\n );\n return context;\n}\nfunction usePrefetchBehavior(prefetch, theirElementProps) {\n let frameworkContext = React8.useContext(FrameworkContext);\n let [maybePrefetch, setMaybePrefetch] = React8.useState(false);\n let [shouldPrefetch, setShouldPrefetch] = React8.useState(false);\n let { onFocus, onBlur, onMouseEnter, onMouseLeave, onTouchStart } = theirElementProps;\n let ref = React8.useRef(null);\n React8.useEffect(() => {\n if (prefetch === \"render\") {\n setShouldPrefetch(true);\n }\n if (prefetch === \"viewport\") {\n let callback = (entries) => {\n entries.forEach((entry) => {\n setShouldPrefetch(entry.isIntersecting);\n });\n };\n let observer = new IntersectionObserver(callback, { threshold: 0.5 });\n if (ref.current) observer.observe(ref.current);\n return () => {\n observer.disconnect();\n };\n }\n }, [prefetch]);\n React8.useEffect(() => {\n if (maybePrefetch) {\n let id = setTimeout(() => {\n setShouldPrefetch(true);\n }, 100);\n return () => {\n clearTimeout(id);\n };\n }\n }, [maybePrefetch]);\n let setIntent = () => {\n setMaybePrefetch(true);\n };\n let cancelIntent = () => {\n setMaybePrefetch(false);\n setShouldPrefetch(false);\n };\n if (!frameworkContext) {\n return [false, ref, {}];\n }\n if (prefetch !== \"intent\") {\n return [shouldPrefetch, ref, {}];\n }\n return [\n shouldPrefetch,\n ref,\n {\n onFocus: composeEventHandlers(onFocus, setIntent),\n onBlur: composeEventHandlers(onBlur, cancelIntent),\n onMouseEnter: composeEventHandlers(onMouseEnter, setIntent),\n onMouseLeave: composeEventHandlers(onMouseLeave, cancelIntent),\n onTouchStart: composeEventHandlers(onTouchStart, setIntent)\n }\n ];\n}\nfunction composeEventHandlers(theirHandler, ourHandler) {\n return (event) => {\n theirHandler && theirHandler(event);\n if (!event.defaultPrevented) {\n ourHandler(event);\n }\n };\n}\nfunction getActiveMatches(matches, errors, isSpaMode) {\n if (isSpaMode && !isHydrated) {\n return [matches[0]];\n }\n if (errors) {\n let errorIdx = matches.findIndex((m) => errors[m.route.id] !== void 0);\n return matches.slice(0, errorIdx + 1);\n }\n return matches;\n}\nvar CRITICAL_CSS_DATA_ATTRIBUTE = \"data-react-router-critical-css\";\nfunction Links({ nonce }) {\n let { isSpaMode, manifest, routeModules, criticalCss } = useFrameworkContext();\n let { errors, matches: routerMatches } = useDataRouterStateContext();\n let matches = getActiveMatches(routerMatches, errors, isSpaMode);\n let keyedLinks = React8.useMemo(\n () => getKeyedLinksForMatches(matches, routeModules, manifest),\n [matches, routeModules, manifest]\n );\n return /* @__PURE__ */ React8.createElement(React8.Fragment, null, typeof criticalCss === \"string\" ? /* @__PURE__ */ React8.createElement(\n \"style\",\n {\n ...{ [CRITICAL_CSS_DATA_ATTRIBUTE]: \"\" },\n dangerouslySetInnerHTML: { __html: criticalCss }\n }\n ) : null, typeof criticalCss === \"object\" ? /* @__PURE__ */ React8.createElement(\n \"link\",\n {\n ...{ [CRITICAL_CSS_DATA_ATTRIBUTE]: \"\" },\n rel: \"stylesheet\",\n href: criticalCss.href,\n nonce\n }\n ) : null, keyedLinks.map(\n ({ key, link }) => isPageLinkDescriptor(link) ? /* @__PURE__ */ React8.createElement(PrefetchPageLinks, { key, nonce, ...link }) : /* @__PURE__ */ React8.createElement(\"link\", { key, nonce, ...link })\n ));\n}\nfunction PrefetchPageLinks({ page, ...linkProps }) {\n let { router } = useDataRouterContext2();\n let matches = React8.useMemo(\n () => matchRoutes(router.routes, page, router.basename),\n [router.routes, page, router.basename]\n );\n if (!matches) {\n return null;\n }\n return /* @__PURE__ */ React8.createElement(PrefetchPageLinksImpl, { page, matches, ...linkProps });\n}\nfunction useKeyedPrefetchLinks(matches) {\n let { manifest, routeModules } = useFrameworkContext();\n let [keyedPrefetchLinks, setKeyedPrefetchLinks] = React8.useState([]);\n React8.useEffect(() => {\n let interrupted = false;\n void getKeyedPrefetchLinks(matches, manifest, routeModules).then(\n (links) => {\n if (!interrupted) {\n setKeyedPrefetchLinks(links);\n }\n }\n );\n return () => {\n interrupted = true;\n };\n }, [matches, manifest, routeModules]);\n return keyedPrefetchLinks;\n}\nfunction PrefetchPageLinksImpl({\n page,\n matches: nextMatches,\n ...linkProps\n}) {\n let location = useLocation();\n let { manifest, routeModules } = useFrameworkContext();\n let { basename } = useDataRouterContext2();\n let { loaderData, matches } = useDataRouterStateContext();\n let newMatchesForData = React8.useMemo(\n () => getNewMatchesForLinks(\n page,\n nextMatches,\n matches,\n manifest,\n location,\n \"data\"\n ),\n [page, nextMatches, matches, manifest, location]\n );\n let newMatchesForAssets = React8.useMemo(\n () => getNewMatchesForLinks(\n page,\n nextMatches,\n matches,\n manifest,\n location,\n \"assets\"\n ),\n [page, nextMatches, matches, manifest, location]\n );\n let dataHrefs = React8.useMemo(() => {\n if (page === location.pathname + location.search + location.hash) {\n return [];\n }\n let routesParams = /* @__PURE__ */ new Set();\n let foundOptOutRoute = false;\n nextMatches.forEach((m) => {\n let manifestRoute = manifest.routes[m.route.id];\n if (!manifestRoute || !manifestRoute.hasLoader) {\n return;\n }\n if (!newMatchesForData.some((m2) => m2.route.id === m.route.id) && m.route.id in loaderData && routeModules[m.route.id]?.shouldRevalidate) {\n foundOptOutRoute = true;\n } else if (manifestRoute.hasClientLoader) {\n foundOptOutRoute = true;\n } else {\n routesParams.add(m.route.id);\n }\n });\n if (routesParams.size === 0) {\n return [];\n }\n let url = singleFetchUrl(page, basename, \"data\");\n if (foundOptOutRoute && routesParams.size > 0) {\n url.searchParams.set(\n \"_routes\",\n nextMatches.filter((m) => routesParams.has(m.route.id)).map((m) => m.route.id).join(\",\")\n );\n }\n return [url.pathname + url.search];\n }, [\n basename,\n loaderData,\n location,\n manifest,\n newMatchesForData,\n nextMatches,\n page,\n routeModules\n ]);\n let moduleHrefs = React8.useMemo(\n () => getModuleLinkHrefs(newMatchesForAssets, manifest),\n [newMatchesForAssets, manifest]\n );\n let keyedPrefetchLinks = useKeyedPrefetchLinks(newMatchesForAssets);\n return /* @__PURE__ */ React8.createElement(React8.Fragment, null, dataHrefs.map((href) => /* @__PURE__ */ React8.createElement(\"link\", { key: href, rel: \"prefetch\", as: \"fetch\", href, ...linkProps })), moduleHrefs.map((href) => /* @__PURE__ */ React8.createElement(\"link\", { key: href, rel: \"modulepreload\", href, ...linkProps })), keyedPrefetchLinks.map(({ key, link }) => (\n // these don't spread `linkProps` because they are full link descriptors\n // already with their own props\n /* @__PURE__ */ React8.createElement(\"link\", { key, nonce: linkProps.nonce, ...link })\n )));\n}\nfunction Meta() {\n let { isSpaMode, routeModules } = useFrameworkContext();\n let {\n errors,\n matches: routerMatches,\n loaderData\n } = useDataRouterStateContext();\n let location = useLocation();\n let _matches = getActiveMatches(routerMatches, errors, isSpaMode);\n let error = null;\n if (errors) {\n error = errors[_matches[_matches.length - 1].route.id];\n }\n let meta = [];\n let leafMeta = null;\n let matches = [];\n for (let i = 0; i < _matches.length; i++) {\n let _match = _matches[i];\n let routeId = _match.route.id;\n let data2 = loaderData[routeId];\n let params = _match.params;\n let routeModule = routeModules[routeId];\n let routeMeta = [];\n let match = {\n id: routeId,\n data: data2,\n loaderData: data2,\n meta: [],\n params: _match.params,\n pathname: _match.pathname,\n handle: _match.route.handle,\n error\n };\n matches[i] = match;\n if (routeModule?.meta) {\n routeMeta = typeof routeModule.meta === \"function\" ? routeModule.meta({\n data: data2,\n loaderData: data2,\n params,\n location,\n matches,\n error\n }) : Array.isArray(routeModule.meta) ? [...routeModule.meta] : routeModule.meta;\n } else if (leafMeta) {\n routeMeta = [...leafMeta];\n }\n routeMeta = routeMeta || [];\n if (!Array.isArray(routeMeta)) {\n throw new Error(\n \"The route at \" + _match.route.path + \" returns an invalid value. All route meta functions must return an array of meta objects.\\n\\nTo reference the meta function API, see https://remix.run/route/meta\"\n );\n }\n match.meta = routeMeta;\n matches[i] = match;\n meta = [...routeMeta];\n leafMeta = meta;\n }\n return /* @__PURE__ */ React8.createElement(React8.Fragment, null, meta.flat().map((metaProps) => {\n if (!metaProps) {\n return null;\n }\n if (\"tagName\" in metaProps) {\n let { tagName, ...rest } = metaProps;\n if (!isValidMetaTag(tagName)) {\n console.warn(\n `A meta object uses an invalid tagName: ${tagName}. Expected either 'link' or 'meta'`\n );\n return null;\n }\n let Comp = tagName;\n return /* @__PURE__ */ React8.createElement(Comp, { key: JSON.stringify(rest), ...rest });\n }\n if (\"title\" in metaProps) {\n return /* @__PURE__ */ React8.createElement(\"title\", { key: \"title\" }, String(metaProps.title));\n }\n if (\"charset\" in metaProps) {\n metaProps.charSet ?? (metaProps.charSet = metaProps.charset);\n delete metaProps.charset;\n }\n if (\"charSet\" in metaProps && metaProps.charSet != null) {\n return typeof metaProps.charSet === \"string\" ? /* @__PURE__ */ React8.createElement(\"meta\", { key: \"charSet\", charSet: metaProps.charSet }) : null;\n }\n if (\"script:ld+json\" in metaProps) {\n try {\n let json = JSON.stringify(metaProps[\"script:ld+json\"]);\n return /* @__PURE__ */ React8.createElement(\n \"script\",\n {\n key: `script:ld+json:${json}`,\n type: \"application/ld+json\",\n dangerouslySetInnerHTML: { __html: escapeHtml(json) }\n }\n );\n } catch (err) {\n return null;\n }\n }\n return /* @__PURE__ */ React8.createElement(\"meta\", { key: JSON.stringify(metaProps), ...metaProps });\n }));\n}\nfunction isValidMetaTag(tagName) {\n return typeof tagName === \"string\" && /^(meta|link)$/.test(tagName);\n}\nvar isHydrated = false;\nfunction setIsHydrated() {\n isHydrated = true;\n}\nfunction Scripts(scriptProps) {\n let {\n manifest,\n serverHandoffString,\n isSpaMode,\n renderMeta,\n routeDiscovery,\n ssr\n } = useFrameworkContext();\n let { router, static: isStatic, staticContext } = useDataRouterContext2();\n let { matches: routerMatches } = useDataRouterStateContext();\n let isRSCRouterContext = useIsRSCRouterContext();\n let enableFogOfWar = isFogOfWarEnabled(routeDiscovery, ssr);\n if (renderMeta) {\n renderMeta.didRenderScripts = true;\n }\n let matches = getActiveMatches(routerMatches, null, isSpaMode);\n React8.useEffect(() => {\n setIsHydrated();\n }, []);\n let initialScripts = React8.useMemo(() => {\n if (isRSCRouterContext) {\n return null;\n }\n let streamScript = \"window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());\";\n let contextScript = staticContext ? `window.__reactRouterContext = ${serverHandoffString};${streamScript}` : \" \";\n let routeModulesScript = !isStatic ? \" \" : `${manifest.hmr?.runtime ? `import ${JSON.stringify(manifest.hmr.runtime)};` : \"\"}${!enableFogOfWar ? `import ${JSON.stringify(manifest.url)}` : \"\"};\n${matches.map((match, routeIndex) => {\n let routeVarName = `route${routeIndex}`;\n let manifestEntry = manifest.routes[match.route.id];\n invariant2(manifestEntry, `Route ${match.route.id} not found in manifest`);\n let {\n clientActionModule,\n clientLoaderModule,\n clientMiddlewareModule,\n hydrateFallbackModule,\n module\n } = manifestEntry;\n let chunks = [\n ...clientActionModule ? [\n {\n module: clientActionModule,\n varName: `${routeVarName}_clientAction`\n }\n ] : [],\n ...clientLoaderModule ? [\n {\n module: clientLoaderModule,\n varName: `${routeVarName}_clientLoader`\n }\n ] : [],\n ...clientMiddlewareModule ? [\n {\n module: clientMiddlewareModule,\n varName: `${routeVarName}_clientMiddleware`\n }\n ] : [],\n ...hydrateFallbackModule ? [\n {\n module: hydrateFallbackModule,\n varName: `${routeVarName}_HydrateFallback`\n }\n ] : [],\n { module, varName: `${routeVarName}_main` }\n ];\n if (chunks.length === 1) {\n return `import * as ${routeVarName} from ${JSON.stringify(module)};`;\n }\n let chunkImportsSnippet = chunks.map((chunk) => `import * as ${chunk.varName} from \"${chunk.module}\";`).join(\"\\n\");\n let mergedChunksSnippet = `const ${routeVarName} = {${chunks.map((chunk) => `...${chunk.varName}`).join(\",\")}};`;\n return [chunkImportsSnippet, mergedChunksSnippet].join(\"\\n\");\n }).join(\"\\n\")}\n ${enableFogOfWar ? (\n // Inline a minimal manifest with the SSR matches\n `window.__reactRouterManifest = ${JSON.stringify(\n getPartialManifest(manifest, router),\n null,\n 2\n )};`\n ) : \"\"}\n window.__reactRouterRouteModules = {${matches.map((match, index) => `${JSON.stringify(match.route.id)}:route${index}`).join(\",\")}};\n\nimport(${JSON.stringify(manifest.entry.module)});`;\n return /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(\n \"script\",\n {\n ...scriptProps,\n suppressHydrationWarning: true,\n dangerouslySetInnerHTML: { __html: contextScript },\n type: void 0\n }\n ), /* @__PURE__ */ React8.createElement(\n \"script\",\n {\n ...scriptProps,\n suppressHydrationWarning: true,\n dangerouslySetInnerHTML: { __html: routeModulesScript },\n type: \"module\",\n async: true\n }\n ));\n }, []);\n let preloads = isHydrated || isRSCRouterContext ? [] : dedupe(\n manifest.entry.imports.concat(\n getModuleLinkHrefs(matches, manifest, {\n includeHydrateFallback: true\n })\n )\n );\n let sri = typeof manifest.sri === \"object\" ? manifest.sri : {};\n warnOnce(\n !isRSCRouterContext,\n \"The <Scripts /> element is a no-op when using RSC and can be safely removed.\"\n );\n return isHydrated || isRSCRouterContext ? null : /* @__PURE__ */ React8.createElement(React8.Fragment, null, typeof manifest.sri === \"object\" ? /* @__PURE__ */ React8.createElement(\n \"script\",\n {\n \"rr-importmap\": \"\",\n type: \"importmap\",\n suppressHydrationWarning: true,\n dangerouslySetInnerHTML: {\n __html: JSON.stringify({\n integrity: sri\n })\n }\n }\n ) : null, !enableFogOfWar ? /* @__PURE__ */ React8.createElement(\n \"link\",\n {\n rel: \"modulepreload\",\n href: manifest.url,\n crossOrigin: scriptProps.crossOrigin,\n integrity: sri[manifest.url],\n suppressHydrationWarning: true\n }\n ) : null, /* @__PURE__ */ React8.createElement(\n \"link\",\n {\n rel: \"modulepreload\",\n href: manifest.entry.module,\n crossOrigin: scriptProps.crossOrigin,\n integrity: sri[manifest.entry.module],\n suppressHydrationWarning: true\n }\n ), preloads.map((path) => /* @__PURE__ */ React8.createElement(\n \"link\",\n {\n key: path,\n rel: \"modulepreload\",\n href: path,\n crossOrigin: scriptProps.crossOrigin,\n integrity: sri[path],\n suppressHydrationWarning: true\n }\n )), initialScripts);\n}\nfunction dedupe(array) {\n return [...new Set(array)];\n}\nfunction mergeRefs(...refs) {\n return (value) => {\n refs.forEach((ref) => {\n if (typeof ref === \"function\") {\n ref(value);\n } else if (ref != null) {\n ref.current = value;\n }\n });\n };\n}\n\n// lib/dom/ssr/errorBoundaries.tsx\nvar RemixErrorBoundary = class extends React9.Component {\n constructor(props) {\n super(props);\n this.state = { error: props.error || null, location: props.location };\n }\n static getDerivedStateFromError(error) {\n return { error };\n }\n static getDerivedStateFromProps(props, state) {\n if (state.location !== props.location) {\n return { error: props.error || null, location: props.location };\n }\n return { error: props.error || state.error, location: state.location };\n }\n render() {\n if (this.state.error) {\n return /* @__PURE__ */ React9.createElement(\n RemixRootDefaultErrorBoundary,\n {\n error: this.state.error,\n isOutsideRemixApp: true\n }\n );\n } else {\n return this.props.children;\n }\n }\n};\nfunction RemixRootDefaultErrorBoundary({\n error,\n isOutsideRemixApp\n}) {\n console.error(error);\n let heyDeveloper = /* @__PURE__ */ React9.createElement(\n \"script\",\n {\n dangerouslySetInnerHTML: {\n __html: `\n console.log(\n \"\\u{1F4BF} Hey developer \\u{1F44B}. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information.\"\n );\n `\n }\n }\n );\n if (isRouteErrorResponse(error)) {\n return /* @__PURE__ */ React9.createElement(BoundaryShell, { title: \"Unhandled Thrown Response!\" }, /* @__PURE__ */ React9.createElement(\"h1\", { style: { fontSize: \"24px\" } }, error.status, \" \", error.statusText), ENABLE_DEV_WARNINGS ? heyDeveloper : null);\n }\n let errorInstance;\n if (error instanceof Error) {\n errorInstance = error;\n } else {\n let errorString = error == null ? \"Unknown Error\" : typeof error === \"object\" && \"toString\" in error ? error.toString() : JSON.stringify(error);\n errorInstance = new Error(errorString);\n }\n return /* @__PURE__ */ React9.createElement(\n BoundaryShell,\n {\n title: \"Application Error!\",\n isOutsideRemixApp\n },\n /* @__PURE__ */ React9.createElement(\"h1\", { style: { fontSize: \"24px\" } }, \"Application Error\"),\n /* @__PURE__ */ React9.createElement(\n \"pre\",\n {\n style: {\n padding: \"2rem\",\n background: \"hsla(10, 50%, 50%, 0.1)\",\n color: \"red\",\n overflow: \"auto\"\n }\n },\n errorInstance.stack\n ),\n heyDeveloper\n );\n}\nfunction BoundaryShell({\n title,\n renderScripts,\n isOutsideRemixApp,\n children\n}) {\n let { routeModules } = useFrameworkContext();\n if (routeModules.root?.Layout && !isOutsideRemixApp) {\n return children;\n }\n return /* @__PURE__ */ React9.createElement(\"html\", { lang: \"en\" }, /* @__PURE__ */ React9.createElement(\"head\", null, /* @__PURE__ */ React9.createElement(\"meta\", { charSet: \"utf-8\" }), /* @__PURE__ */ React9.createElement(\n \"meta\",\n {\n name: \"viewport\",\n content: \"width=device-width,initial-scale=1,viewport-fit=cover\"\n }\n ), /* @__PURE__ */ React9.createElement(\"title\", null, title)), /* @__PURE__ */ React9.createElement(\"body\", null, /* @__PURE__ */ React9.createElement(\"main\", { style: { fontFamily: \"system-ui, sans-serif\", padding: \"2rem\" } }, children, renderScripts ? /* @__PURE__ */ React9.createElement(Scripts, null) : null)));\n}\n\n// lib/dom/lib.tsx\nimport * as React10 from \"react\";\nvar isBrowser = typeof window !== \"undefined\" && typeof window.document !== \"undefined\" && typeof window.document.createElement !== \"undefined\";\ntry {\n if (isBrowser) {\n window.__reactRouterVersion = // @ts-expect-error\n \"7.9.1\";\n }\n} catch (e) {\n}\nfunction createBrowserRouter(routes, opts) {\n return createRouter({\n basename: opts?.basename,\n getContext: opts?.getContext,\n future: opts?.future,\n history: createBrowserHistory({ window: opts?.window }),\n hydrationData: opts?.hydrationData || parseHydrationData(),\n routes,\n mapRouteProperties,\n hydrationRouteProperties,\n dataStrategy: opts?.dataStrategy,\n patchRoutesOnNavigation: opts?.patchRoutesOnNavigation,\n window: opts?.window\n }).initialize();\n}\nfunction createHashRouter(routes, opts) {\n return createRouter({\n basename: opts?.basename,\n getContext: opts?.getContext,\n future: opts?.future,\n history: createHashHistory({ window: opts?.window }),\n hydrationData: opts?.hydrationData || parseHydrationData(),\n routes,\n mapRouteProperties,\n hydrationRouteProperties,\n dataStrategy: opts?.dataStrategy,\n patchRoutesOnNavigation: opts?.patchRoutesOnNavigation,\n window: opts?.window\n }).initialize();\n}\nfunction parseHydrationData() {\n let state = window?.__staticRouterHydrationData;\n if (state && state.errors) {\n state = {\n ...state,\n errors: deserializeErrors(state.errors)\n };\n }\n return state;\n}\nfunction deserializeErrors(errors) {\n if (!errors) return null;\n let entries = Object.entries(errors);\n let serialized = {};\n for (let [key, val] of entries) {\n if (val && val.__type === \"RouteErrorResponse\") {\n serialized[key] = new ErrorResponseImpl(\n val.status,\n val.statusText,\n val.data,\n val.internal === true\n );\n } else if (val && val.__type === \"Error\") {\n if (val.__subType) {\n let ErrorConstructor = window[val.__subType];\n if (typeof ErrorConstructor === \"function\") {\n try {\n let error = new ErrorConstructor(val.message);\n error.stack = \"\";\n serialized[key] = error;\n } catch (e) {\n }\n }\n }\n if (serialized[key] == null) {\n let error = new Error(val.message);\n error.stack = \"\";\n serialized[key] = error;\n }\n } else {\n serialized[key] = val;\n }\n }\n return serialized;\n}\nfunction BrowserRouter({\n basename,\n children,\n window: window2\n}) {\n let historyRef = React10.useRef();\n if (historyRef.current == null) {\n historyRef.current = createBrowserHistory({ window: window2, v5Compat: true });\n }\n let history = historyRef.current;\n let [state, setStateImpl] = React10.useState({\n action: history.action,\n location: history.location\n });\n let setState = React10.useCallback(\n (newState) => {\n React10.startTransition(() => setStateImpl(newState));\n },\n [setStateImpl]\n );\n React10.useLayoutEffect(() => history.listen(setState), [history, setState]);\n return /* @__PURE__ */ React10.createElement(\n Router,\n {\n basename,\n children,\n location: state.location,\n navigationType: state.action,\n navigator: history\n }\n );\n}\nfunction HashRouter({ basename, children, window: window2 }) {\n let historyRef = React10.useRef();\n if (historyRef.current == null) {\n historyRef.current = createHashHistory({ window: window2, v5Compat: true });\n }\n let history = historyRef.current;\n let [state, setStateImpl] = React10.useState({\n action: history.action,\n location: history.location\n });\n let setState = React10.useCallback(\n (newState) => {\n React10.startTransition(() => setStateImpl(newState));\n },\n [setStateImpl]\n );\n React10.useLayoutEffect(() => history.listen(setState), [history, setState]);\n return /* @__PURE__ */ React10.createElement(\n Router,\n {\n basename,\n children,\n location: state.location,\n navigationType: state.action,\n navigator: history\n }\n );\n}\nfunction HistoryRouter({\n basename,\n children,\n history\n}) {\n let [state, setStateImpl] = React10.useState({\n action: history.action,\n location: history.location\n });\n let setState = React10.useCallback(\n (newState) => {\n React10.startTransition(() => setStateImpl(newState));\n },\n [setStateImpl]\n );\n React10.useLayoutEffect(() => history.listen(setState), [history, setState]);\n return /* @__PURE__ */ React10.createElement(\n Router,\n {\n basename,\n children,\n location: state.location,\n navigationType: state.action,\n navigator: history\n }\n );\n}\nHistoryRouter.displayName = \"unstable_HistoryRouter\";\nvar ABSOLUTE_URL_REGEX2 = /^(?:[a-z][a-z0-9+.-]*:|\\/\\/)/i;\nvar Link = React10.forwardRef(\n function LinkWithRef({\n onClick,\n discover = \"render\",\n prefetch = \"none\",\n relative,\n reloadDocument,\n replace: replace2,\n state,\n target,\n to,\n preventScrollReset,\n viewTransition,\n ...rest\n }, forwardedRef) {\n let { basename } = React10.useContext(NavigationContext);\n let isAbsolute = typeof to === \"string\" && ABSOLUTE_URL_REGEX2.test(to);\n let absoluteHref;\n let isExternal = false;\n if (typeof to === \"string\" && isAbsolute) {\n absoluteHref = to;\n if (isBrowser) {\n try {\n let currentUrl = new URL(window.location.href);\n let targetUrl = to.startsWith(\"//\") ? new URL(currentUrl.protocol + to) : new URL(to);\n let path = stripBasename(targetUrl.pathname, basename);\n if (targetUrl.origin === currentUrl.origin && path != null) {\n to = path + targetUrl.search + targetUrl.hash;\n } else {\n isExternal = true;\n }\n } catch (e) {\n warning(\n false,\n `<Link to=\"${to}\"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`\n );\n }\n }\n }\n let href = useHref(to, { relative });\n let [shouldPrefetch, prefetchRef, prefetchHandlers] = usePrefetchBehavior(\n prefetch,\n rest\n );\n let internalOnClick = useLinkClickHandler(to, {\n replace: replace2,\n state,\n target,\n preventScrollReset,\n relative,\n viewTransition\n });\n function handleClick(event) {\n if (onClick) onClick(event);\n if (!event.defaultPrevented) {\n internalOnClick(event);\n }\n }\n let link = (\n // eslint-disable-next-line jsx-a11y/anchor-has-content\n /* @__PURE__ */ React10.createElement(\n \"a\",\n {\n ...rest,\n ...prefetchHandlers,\n href: absoluteHref || href,\n onClick: isExternal || reloadDocument ? onClick : handleClick,\n ref: mergeRefs(forwardedRef, prefetchRef),\n target,\n \"data-discover\": !isAbsolute && discover === \"render\" ? \"true\" : void 0\n }\n )\n );\n return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ React10.createElement(React10.Fragment, null, link, /* @__PURE__ */ React10.createElement(PrefetchPageLinks, { page: href })) : link;\n }\n);\nLink.displayName = \"Link\";\nvar NavLink = React10.forwardRef(\n function NavLinkWithRef({\n \"aria-current\": ariaCurrentProp = \"page\",\n caseSensitive = false,\n className: classNameProp = \"\",\n end = false,\n style: styleProp,\n to,\n viewTransition,\n children,\n ...rest\n }, ref) {\n let path = useResolvedPath(to, { relative: rest.relative });\n let location = useLocation();\n let routerState = React10.useContext(DataRouterStateContext);\n let { navigator, basename } = React10.useContext(NavigationContext);\n let isTransitioning = routerState != null && // Conditional usage is OK here because the usage of a data router is static\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useViewTransitionState(path) && viewTransition === true;\n let toPathname = navigator.encodeLocation ? navigator.encodeLocation(path).pathname : path.pathname;\n let locationPathname = location.pathname;\n let nextLocationPathname = routerState && routerState.navigation && routerState.navigation.location ? routerState.navigation.location.pathname : null;\n if (!caseSensitive) {\n locationPathname = locationPathname.toLowerCase();\n nextLocationPathname = nextLocationPathname ? nextLocationPathname.toLowerCase() : null;\n toPathname = toPathname.toLowerCase();\n }\n if (nextLocationPathname && basename) {\n nextLocationPathname = stripBasename(nextLocationPathname, basename) || nextLocationPathname;\n }\n const endSlashPosition = toPathname !== \"/\" && toPathname.endsWith(\"/\") ? toPathname.length - 1 : toPathname.length;\n let isActive = locationPathname === toPathname || !end && locationPathname.startsWith(toPathname) && locationPathname.charAt(endSlashPosition) === \"/\";\n let isPending = nextLocationPathname != null && (nextLocationPathname === toPathname || !end && nextLocationPathname.startsWith(toPathname) && nextLocationPathname.charAt(toPathname.length) === \"/\");\n let renderProps = {\n isActive,\n isPending,\n isTransitioning\n };\n let ariaCurrent = isActive ? ariaCurrentProp : void 0;\n let className;\n if (typeof classNameProp === \"function\") {\n className = classNameProp(renderProps);\n } else {\n className = [\n classNameProp,\n isActive ? \"active\" : null,\n isPending ? \"pending\" : null,\n isTransitioning ? \"transitioning\" : null\n ].filter(Boolean).join(\" \");\n }\n let style = typeof styleProp === \"function\" ? styleProp(renderProps) : styleProp;\n return /* @__PURE__ */ React10.createElement(\n Link,\n {\n ...rest,\n \"aria-current\": ariaCurrent,\n className,\n ref,\n style,\n to,\n viewTransition\n },\n typeof children === \"function\" ? children(renderProps) : children\n );\n }\n);\nNavLink.displayName = \"NavLink\";\nvar Form = React10.forwardRef(\n ({\n discover = \"render\",\n fetcherKey,\n navigate,\n reloadDocument,\n replace: replace2,\n state,\n method = defaultMethod,\n action,\n onSubmit,\n relative,\n preventScrollReset,\n viewTransition,\n ...props\n }, forwardedRef) => {\n let submit = useSubmit();\n let formAction = useFormAction(action, { relative });\n let formMethod = method.toLowerCase() === \"get\" ? \"get\" : \"post\";\n let isAbsolute = typeof action === \"string\" && ABSOLUTE_URL_REGEX2.test(action);\n let submitHandler = (event) => {\n onSubmit && onSubmit(event);\n if (event.defaultPrevented) return;\n event.preventDefault();\n let submitter = event.nativeEvent.submitter;\n let submitMethod = submitter?.getAttribute(\"formmethod\") || method;\n submit(submitter || event.currentTarget, {\n fetcherKey,\n method: submitMethod,\n navigate,\n replace: replace2,\n state,\n relative,\n preventScrollReset,\n viewTransition\n });\n };\n return /* @__PURE__ */ React10.createElement(\n \"form\",\n {\n ref: forwardedRef,\n method: formMethod,\n action: formAction,\n onSubmit: reloadDocument ? onSubmit : submitHandler,\n ...props,\n \"data-discover\": !isAbsolute && discover === \"render\" ? \"true\" : void 0\n }\n );\n }\n);\nForm.displayName = \"Form\";\nfunction ScrollRestoration({\n getKey,\n storageKey,\n ...props\n}) {\n let remixContext = React10.useContext(FrameworkContext);\n let { basename } = React10.useContext(NavigationContext);\n let location = useLocation();\n let matches = useMatches();\n useScrollRestoration({ getKey, storageKey });\n let ssrKey = React10.useMemo(\n () => {\n if (!remixContext || !getKey) return null;\n let userKey = getScrollRestorationKey(\n location,\n matches,\n basename,\n getKey\n );\n return userKey !== location.key ? userKey : null;\n },\n // Nah, we only need this the first time for the SSR render\n // eslint-disable-next-line react-hooks/exhaustive-deps\n []\n );\n if (!remixContext || remixContext.isSpaMode) {\n return null;\n }\n let restoreScroll = ((storageKey2, restoreKey) => {\n if (!window.history.state || !window.history.state.key) {\n let key = Math.random().toString(32).slice(2);\n window.history.replaceState({ key }, \"\");\n }\n try {\n let positions = JSON.parse(sessionStorage.getItem(storageKey2) || \"{}\");\n let storedY = positions[restoreKey || window.history.state.key];\n if (typeof storedY === \"number\") {\n window.scrollTo(0, storedY);\n }\n } catch (error) {\n console.error(error);\n sessionStorage.removeItem(storageKey2);\n }\n }).toString();\n return /* @__PURE__ */ React10.createElement(\n \"script\",\n {\n ...props,\n suppressHydrationWarning: true,\n dangerouslySetInnerHTML: {\n __html: `(${restoreScroll})(${JSON.stringify(\n storageKey || SCROLL_RESTORATION_STORAGE_KEY\n )}, ${JSON.stringify(ssrKey)})`\n }\n }\n );\n}\nScrollRestoration.displayName = \"ScrollRestoration\";\nfunction getDataRouterConsoleError2(hookName) {\n return `${hookName} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;\n}\nfunction useDataRouterContext3(hookName) {\n let ctx = React10.useContext(DataRouterContext);\n invariant(ctx, getDataRouterConsoleError2(hookName));\n return ctx;\n}\nfunction useDataRouterState2(hookName) {\n let state = React10.useContext(DataRouterStateContext);\n invariant(state, getDataRouterConsoleError2(hookName));\n return state;\n}\nfunction useLinkClickHandler(to, {\n target,\n replace: replaceProp,\n state,\n preventScrollReset,\n relative,\n viewTransition\n} = {}) {\n let navigate = useNavigate();\n let location = useLocation();\n let path = useResolvedPath(to, { relative });\n return React10.useCallback(\n (event) => {\n if (shouldProcessLinkClick(event, target)) {\n event.preventDefault();\n let replace2 = replaceProp !== void 0 ? replaceProp : createPath(location) === createPath(path);\n navigate(to, {\n replace: replace2,\n state,\n preventScrollReset,\n relative,\n viewTransition\n });\n }\n },\n [\n location,\n navigate,\n path,\n replaceProp,\n state,\n target,\n to,\n preventScrollReset,\n relative,\n viewTransition\n ]\n );\n}\nfunction useSearchParams(defaultInit) {\n warning(\n typeof URLSearchParams !== \"undefined\",\n `You cannot use the \\`useSearchParams\\` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.`\n );\n let defaultSearchParamsRef = React10.useRef(createSearchParams(defaultInit));\n let hasSetSearchParamsRef = React10.useRef(false);\n let location = useLocation();\n let searchParams = React10.useMemo(\n () => (\n // Only merge in the defaults if we haven't yet called setSearchParams.\n // Once we call that we want those to take precedence, otherwise you can't\n // remove a param with setSearchParams({}) if it has an initial value\n getSearchParamsForLocation(\n location.search,\n hasSetSearchParamsRef.current ? null : defaultSearchParamsRef.current\n )\n ),\n [location.search]\n );\n let navigate = useNavigate();\n let setSearchParams = React10.useCallback(\n (nextInit, navigateOptions) => {\n const newSearchParams = createSearchParams(\n typeof nextInit === \"function\" ? nextInit(new URLSearchParams(searchParams)) : nextInit\n );\n hasSetSearchParamsRef.current = true;\n navigate(\"?\" + newSearchParams, navigateOptions);\n },\n [navigate, searchParams]\n );\n return [searchParams, setSearchParams];\n}\nvar fetcherId = 0;\nvar getUniqueFetcherId = () => `__${String(++fetcherId)}__`;\nfunction useSubmit() {\n let { router } = useDataRouterContext3(\"useSubmit\" /* UseSubmit */);\n let { basename } = React10.useContext(NavigationContext);\n let currentRouteId = useRouteId();\n return React10.useCallback(\n async (target, options = {}) => {\n let { action, method, encType, formData, body } = getFormSubmissionInfo(\n target,\n basename\n );\n if (options.navigate === false) {\n let key = options.fetcherKey || getUniqueFetcherId();\n await router.fetch(key, currentRouteId, options.action || action, {\n preventScrollReset: options.preventScrollReset,\n formData,\n body,\n formMethod: options.method || method,\n formEncType: options.encType || encType,\n flushSync: options.flushSync\n });\n } else {\n await router.navigate(options.action || action, {\n preventScrollReset: options.preventScrollReset,\n formData,\n body,\n formMethod: options.method || method,\n formEncType: options.encType || encType,\n replace: options.replace,\n state: options.state,\n fromRouteId: currentRouteId,\n flushSync: options.flushSync,\n viewTransition: options.viewTransition\n });\n }\n },\n [router, basename, currentRouteId]\n );\n}\nfunction useFormAction(action, { relative } = {}) {\n let { basename } = React10.useContext(NavigationContext);\n let routeContext = React10.useContext(RouteContext);\n invariant(routeContext, \"useFormAction must be used inside a RouteContext\");\n let [match] = routeContext.matches.slice(-1);\n let path = { ...useResolvedPath(action ? action : \".\", { relative }) };\n let location = useLocation();\n if (action == null) {\n path.search = location.search;\n let params = new URLSearchParams(path.search);\n let indexValues = params.getAll(\"index\");\n let hasNakedIndexParam = indexValues.some((v) => v === \"\");\n if (hasNakedIndexParam) {\n params.delete(\"index\");\n indexValues.filter((v) => v).forEach((v) => params.append(\"index\", v));\n let qs = params.toString();\n path.search = qs ? `?${qs}` : \"\";\n }\n }\n if ((!action || action === \".\") && match.route.index) {\n path.search = path.search ? path.search.replace(/^\\?/, \"?index&\") : \"?index\";\n }\n if (basename !== \"/\") {\n path.pathname = path.pathname === \"/\" ? basename : joinPaths([basename, path.pathname]);\n }\n return createPath(path);\n}\nfunction useFetcher({\n key\n} = {}) {\n let { router } = useDataRouterContext3(\"useFetcher\" /* UseFetcher */);\n let state = useDataRouterState2(\"useFetcher\" /* UseFetcher */);\n let fetcherData = React10.useContext(FetchersContext);\n let route = React10.useContext(RouteContext);\n let routeId = route.matches[route.matches.length - 1]?.route.id;\n invariant(fetcherData, `useFetcher must be used inside a FetchersContext`);\n invariant(route, `useFetcher must be used inside a RouteContext`);\n invariant(\n routeId != null,\n `useFetcher can only be used on routes that contain a unique \"id\"`\n );\n let defaultKey = React10.useId();\n let [fetcherKey, setFetcherKey] = React10.useState(key || defaultKey);\n if (key && key !== fetcherKey) {\n setFetcherKey(key);\n }\n React10.useEffect(() => {\n router.getFetcher(fetcherKey);\n return () => router.deleteFetcher(fetcherKey);\n }, [router, fetcherKey]);\n let load = React10.useCallback(\n async (href, opts) => {\n invariant(routeId, \"No routeId available for fetcher.load()\");\n await router.fetch(fetcherKey, routeId, href, opts);\n },\n [fetcherKey, routeId, router]\n );\n let submitImpl = useSubmit();\n let submit = React10.useCallback(\n async (target, opts) => {\n await submitImpl(target, {\n ...opts,\n navigate: false,\n fetcherKey\n });\n },\n [fetcherKey, submitImpl]\n );\n let FetcherForm = React10.useMemo(() => {\n let FetcherForm2 = React10.forwardRef(\n (props, ref) => {\n return /* @__PURE__ */ React10.createElement(Form, { ...props, navigate: false, fetcherKey, ref });\n }\n );\n FetcherForm2.displayName = \"fetcher.Form\";\n return FetcherForm2;\n }, [fetcherKey]);\n let fetcher = state.fetchers.get(fetcherKey) || IDLE_FETCHER;\n let data2 = fetcherData.get(fetcherKey);\n let fetcherWithComponents = React10.useMemo(\n () => ({\n Form: FetcherForm,\n submit,\n load,\n ...fetcher,\n data: data2\n }),\n [FetcherForm, submit, load, fetcher, data2]\n );\n return fetcherWithComponents;\n}\nfunction useFetchers() {\n let state = useDataRouterState2(\"useFetchers\" /* UseFetchers */);\n return Array.from(state.fetchers.entries()).map(([key, fetcher]) => ({\n ...fetcher,\n key\n }));\n}\nvar SCROLL_RESTORATION_STORAGE_KEY = \"react-router-scroll-positions\";\nvar savedScrollPositions = {};\nfunction getScrollRestorationKey(location, matches, basename, getKey) {\n let key = null;\n if (getKey) {\n if (basename !== \"/\") {\n key = getKey(\n {\n ...location,\n pathname: stripBasename(location.pathname, basename) || location.pathname\n },\n matches\n );\n } else {\n key = getKey(location, matches);\n }\n }\n if (key == null) {\n key = location.key;\n }\n return key;\n}\nfunction useScrollRestoration({\n getKey,\n storageKey\n} = {}) {\n let { router } = useDataRouterContext3(\"useScrollRestoration\" /* UseScrollRestoration */);\n let { restoreScrollPosition, preventScrollReset } = useDataRouterState2(\n \"useScrollRestoration\" /* UseScrollRestoration */\n );\n let { basename } = React10.useContext(NavigationContext);\n let location = useLocation();\n let matches = useMatches();\n let navigation = useNavigation();\n React10.useEffect(() => {\n window.history.scrollRestoration = \"manual\";\n return () => {\n window.history.scrollRestoration = \"auto\";\n };\n }, []);\n usePageHide(\n React10.useCallback(() => {\n if (navigation.state === \"idle\") {\n let key = getScrollRestorationKey(location, matches, basename, getKey);\n savedScrollPositions[key] = window.scrollY;\n }\n try {\n sessionStorage.setItem(\n storageKey || SCROLL_RESTORATION_STORAGE_KEY,\n JSON.stringify(savedScrollPositions)\n );\n } catch (error) {\n warning(\n false,\n `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${error}).`\n );\n }\n window.history.scrollRestoration = \"auto\";\n }, [navigation.state, getKey, basename, location, matches, storageKey])\n );\n if (typeof document !== \"undefined\") {\n React10.useLayoutEffect(() => {\n try {\n let sessionPositions = sessionStorage.getItem(\n storageKey || SCROLL_RESTORATION_STORAGE_KEY\n );\n if (sessionPositions) {\n savedScrollPositions = JSON.parse(sessionPositions);\n }\n } catch (e) {\n }\n }, [storageKey]);\n React10.useLayoutEffect(() => {\n let disableScrollRestoration = router?.enableScrollRestoration(\n savedScrollPositions,\n () => window.scrollY,\n getKey ? (location2, matches2) => getScrollRestorationKey(location2, matches2, basename, getKey) : void 0\n );\n return () => disableScrollRestoration && disableScrollRestoration();\n }, [router, basename, getKey]);\n React10.useLayoutEffect(() => {\n if (restoreScrollPosition === false) {\n return;\n }\n if (typeof restoreScrollPosition === \"number\") {\n window.scrollTo(0, restoreScrollPosition);\n return;\n }\n try {\n if (location.hash) {\n let el = document.getElementById(\n decodeURIComponent(location.hash.slice(1))\n );\n if (el) {\n el.scrollIntoView();\n return;\n }\n }\n } catch {\n warning(\n false,\n `\"${location.hash.slice(\n 1\n )}\" is not a decodable element ID. The view will not scroll to it.`\n );\n }\n if (preventScrollReset === true) {\n return;\n }\n window.scrollTo(0, 0);\n }, [location, restoreScrollPosition, preventScrollReset]);\n }\n}\nfunction useBeforeUnload(callback, options) {\n let { capture } = options || {};\n React10.useEffect(() => {\n let opts = capture != null ? { capture } : void 0;\n window.addEventListener(\"beforeunload\", callback, opts);\n return () => {\n window.removeEventListener(\"beforeunload\", callback, opts);\n };\n }, [callback, capture]);\n}\nfunction usePageHide(callback, options) {\n let { capture } = options || {};\n React10.useEffect(() => {\n let opts = capture != null ? { capture } : void 0;\n window.addEventListener(\"pagehide\", callback, opts);\n return () => {\n window.removeEventListener(\"pagehide\", callback, opts);\n };\n }, [callback, capture]);\n}\nfunction usePrompt({\n when,\n message\n}) {\n let blocker = useBlocker(when);\n React10.useEffect(() => {\n if (blocker.state === \"blocked\") {\n let proceed = window.confirm(message);\n if (proceed) {\n setTimeout(blocker.proceed, 0);\n } else {\n blocker.reset();\n }\n }\n }, [blocker, message]);\n React10.useEffect(() => {\n if (blocker.state === \"blocked\" && !when) {\n blocker.reset();\n }\n }, [blocker, when]);\n}\nfunction useViewTransitionState(to, { relative } = {}) {\n let vtContext = React10.useContext(ViewTransitionContext);\n invariant(\n vtContext != null,\n \"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?\"\n );\n let { basename } = useDataRouterContext3(\n \"useViewTransitionState\" /* useViewTransitionState */\n );\n let path = useResolvedPath(to, { relative });\n if (!vtContext.isTransitioning) {\n return false;\n }\n let currentPath = stripBasename(vtContext.currentLocation.pathname, basename) || vtContext.currentLocation.pathname;\n let nextPath = stripBasename(vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname;\n return matchPath(path.pathname, nextPath) != null || matchPath(path.pathname, currentPath) != null;\n}\n\n// lib/dom/server.tsx\nimport * as React11 from \"react\";\nfunction StaticRouter({\n basename,\n children,\n location: locationProp = \"/\"\n}) {\n if (typeof locationProp === \"string\") {\n locationProp = parsePath(locationProp);\n }\n let action = \"POP\" /* Pop */;\n let location = {\n pathname: locationProp.pathname || \"/\",\n search: locationProp.search || \"\",\n hash: locationProp.hash || \"\",\n state: locationProp.state != null ? locationProp.state : null,\n key: locationProp.key || \"default\"\n };\n let staticNavigator = getStatelessNavigator();\n return /* @__PURE__ */ React11.createElement(\n Router,\n {\n basename,\n children,\n location,\n navigationType: action,\n navigator: staticNavigator,\n static: true\n }\n );\n}\nfunction StaticRouterProvider({\n context,\n router,\n hydrate: hydrate2 = true,\n nonce\n}) {\n invariant(\n router && context,\n \"You must provide `router` and `context` to <StaticRouterProvider>\"\n );\n let dataRouterContext = {\n router,\n navigator: getStatelessNavigator(),\n static: true,\n staticContext: context,\n basename: context.basename || \"/\"\n };\n let fetchersContext = /* @__PURE__ */ new Map();\n let hydrateScript = \"\";\n if (hydrate2 !== false) {\n let data2 = {\n loaderData: context.loaderData,\n actionData: context.actionData,\n errors: serializeErrors(context.errors)\n };\n let json = htmlEscape(JSON.stringify(JSON.stringify(data2)));\n hydrateScript = `window.__staticRouterHydrationData = JSON.parse(${json});`;\n }\n let { state } = dataRouterContext.router;\n return /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement(DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React11.createElement(DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React11.createElement(FetchersContext.Provider, { value: fetchersContext }, /* @__PURE__ */ React11.createElement(ViewTransitionContext.Provider, { value: { isTransitioning: false } }, /* @__PURE__ */ React11.createElement(\n Router,\n {\n basename: dataRouterContext.basename,\n location: state.location,\n navigationType: state.historyAction,\n navigator: dataRouterContext.navigator,\n static: dataRouterContext.static\n },\n /* @__PURE__ */ React11.createElement(\n DataRoutes2,\n {\n routes: router.routes,\n future: router.future,\n state\n }\n )\n ))))), hydrateScript ? /* @__PURE__ */ React11.createElement(\n \"script\",\n {\n suppressHydrationWarning: true,\n nonce,\n dangerouslySetInnerHTML: { __html: hydrateScript }\n }\n ) : null);\n}\nfunction DataRoutes2({\n routes,\n future,\n state\n}) {\n return useRoutesImpl(routes, void 0, state, void 0, future);\n}\nfunction serializeErrors(errors) {\n if (!errors) return null;\n let entries = Object.entries(errors);\n let serialized = {};\n for (let [key, val] of entries) {\n if (isRouteErrorResponse(val)) {\n serialized[key] = { ...val, __type: \"RouteErrorResponse\" };\n } else if (val instanceof Error) {\n serialized[key] = {\n message: val.message,\n __type: \"Error\",\n // If this is a subclass (i.e., ReferenceError), send up the type so we\n // can re-create the same type during hydration.\n ...val.name !== \"Error\" ? {\n __subType: val.name\n } : {}\n };\n } else {\n serialized[key] = val;\n }\n }\n return serialized;\n}\nfunction getStatelessNavigator() {\n return {\n createHref,\n encodeLocation,\n push(to) {\n throw new Error(\n `You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \\`navigate(${JSON.stringify(to)})\\` somewhere in your app.`\n );\n },\n replace(to) {\n throw new Error(\n `You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \\`navigate(${JSON.stringify(to)}, { replace: true })\\` somewhere in your app.`\n );\n },\n go(delta) {\n throw new Error(\n `You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \\`navigate(${delta})\\` somewhere in your app.`\n );\n },\n back() {\n throw new Error(\n `You cannot use navigator.back() on the server because it is a stateless environment.`\n );\n },\n forward() {\n throw new Error(\n `You cannot use navigator.forward() on the server because it is a stateless environment.`\n );\n }\n };\n}\nfunction createStaticHandler2(routes, opts) {\n return createStaticHandler(routes, {\n ...opts,\n mapRouteProperties\n });\n}\nfunction createStaticRouter(routes, context, opts = {}) {\n let manifest = {};\n let dataRoutes = convertRoutesToDataRoutes(\n routes,\n mapRouteProperties,\n void 0,\n manifest\n );\n let matches = context.matches.map((match) => {\n let route = manifest[match.route.id] || match.route;\n return {\n ...match,\n route\n };\n });\n let msg = (method) => `You cannot use router.${method}() on the server because it is a stateless environment`;\n return {\n get basename() {\n return context.basename;\n },\n get future() {\n return {\n v8_middleware: false,\n ...opts?.future\n };\n },\n get state() {\n return {\n historyAction: \"POP\" /* Pop */,\n location: context.location,\n matches,\n loaderData: context.loaderData,\n actionData: context.actionData,\n errors: context.errors,\n initialized: true,\n navigation: IDLE_NAVIGATION,\n restoreScrollPosition: null,\n preventScrollReset: false,\n revalidation: \"idle\",\n fetchers: /* @__PURE__ */ new Map(),\n blockers: /* @__PURE__ */ new Map()\n };\n },\n get routes() {\n return dataRoutes;\n },\n get window() {\n return void 0;\n },\n initialize() {\n throw msg(\"initialize\");\n },\n subscribe() {\n throw msg(\"subscribe\");\n },\n enableScrollRestoration() {\n throw msg(\"enableScrollRestoration\");\n },\n navigate() {\n throw msg(\"navigate\");\n },\n fetch() {\n throw msg(\"fetch\");\n },\n revalidate() {\n throw msg(\"revalidate\");\n },\n createHref,\n encodeLocation,\n getFetcher() {\n return IDLE_FETCHER;\n },\n deleteFetcher() {\n throw msg(\"deleteFetcher\");\n },\n dispose() {\n throw msg(\"dispose\");\n },\n getBlocker() {\n return IDLE_BLOCKER;\n },\n deleteBlocker() {\n throw msg(\"deleteBlocker\");\n },\n patchRoutes() {\n throw msg(\"patchRoutes\");\n },\n _internalFetchControllers: /* @__PURE__ */ new Map(),\n _internalSetRoutes() {\n throw msg(\"_internalSetRoutes\");\n },\n _internalSetStateDoNotUseOrYouWillBreakYourApp() {\n throw msg(\"_internalSetStateDoNotUseOrYouWillBreakYourApp\");\n }\n };\n}\nfunction createHref(to) {\n return typeof to === \"string\" ? to : createPath(to);\n}\nfunction encodeLocation(to) {\n let href = typeof to === \"string\" ? to : createPath(to);\n href = href.replace(/ $/, \"%20\");\n let encoded = ABSOLUTE_URL_REGEX3.test(href) ? new URL(href) : new URL(href, \"http://localhost\");\n return {\n pathname: encoded.pathname,\n search: encoded.search,\n hash: encoded.hash\n };\n}\nvar ABSOLUTE_URL_REGEX3 = /^(?:[a-z][a-z0-9+.-]*:|\\/\\/)/i;\nvar ESCAPE_LOOKUP2 = {\n \"&\": \"\\\\u0026\",\n \">\": \"\\\\u003e\",\n \"<\": \"\\\\u003c\",\n \"\\u2028\": \"\\\\u2028\",\n \"\\u2029\": \"\\\\u2029\"\n};\nvar ESCAPE_REGEX2 = /[&><\\u2028\\u2029]/g;\nfunction htmlEscape(str) {\n return str.replace(ESCAPE_REGEX2, (match) => ESCAPE_LOOKUP2[match]);\n}\n\nexport {\n Action,\n createBrowserHistory,\n invariant,\n createPath,\n parsePath,\n createContext,\n RouterContextProvider,\n convertRoutesToDataRoutes,\n matchRoutes,\n generatePath,\n matchPath,\n stripBasename,\n resolvePath,\n data,\n redirect,\n redirectDocument,\n replace,\n ErrorResponseImpl,\n isRouteErrorResponse,\n IDLE_NAVIGATION,\n IDLE_FETCHER,\n IDLE_BLOCKER,\n createRouter,\n createStaticHandler,\n getStaticContextFromError,\n isDataWithResponseInit,\n isResponse,\n isRedirectStatusCode,\n isRedirectResponse,\n isMutationMethod,\n DataRouterContext,\n DataRouterStateContext,\n RSCRouterContext,\n ViewTransitionContext,\n FetchersContext,\n AwaitContextProvider,\n NavigationContext,\n LocationContext,\n RouteContext,\n ENABLE_DEV_WARNINGS,\n useHref,\n useInRouterContext,\n useLocation,\n useNavigationType,\n useMatch,\n useNavigate,\n useOutletContext,\n useOutlet,\n useParams,\n useResolvedPath,\n useRoutes,\n useNavigation,\n useRevalidator,\n useMatches,\n useLoaderData,\n useRouteLoaderData,\n useActionData,\n useRouteError,\n useAsyncValue,\n useAsyncError,\n useBlocker,\n warnOnce,\n mapRouteProperties,\n hydrationRouteProperties,\n createMemoryRouter,\n RouterProvider,\n MemoryRouter,\n Navigate,\n Outlet,\n Route,\n Router,\n Routes,\n Await,\n createRoutesFromChildren,\n createRoutesFromElements,\n renderMatches,\n WithComponentProps,\n withComponentProps,\n WithHydrateFallbackProps,\n withHydrateFallbackProps,\n WithErrorBoundaryProps,\n withErrorBoundaryProps,\n createSearchParams,\n escapeHtml,\n encode,\n createRequestInit,\n SingleFetchRedirectSymbol,\n SINGLE_FETCH_REDIRECT_STATUS,\n NO_BODY_STATUS_CODES,\n StreamTransfer,\n getTurboStreamSingleFetchDataStrategy,\n getSingleFetchDataStrategyImpl,\n stripIndexParam,\n singleFetchUrl,\n decodeViaTurboStream,\n RemixErrorBoundary,\n createServerRoutes,\n createClientRoutesWithHMRRevalidationOptOut,\n noActionDefinedError,\n createClientRoutes,\n shouldHydrateRouteLoader,\n getPatchRoutesOnNavigationFunction,\n useFogOFWarDiscovery,\n getManifestPath,\n FrameworkContext,\n CRITICAL_CSS_DATA_ATTRIBUTE,\n Links,\n PrefetchPageLinks,\n Meta,\n setIsHydrated,\n Scripts,\n createBrowserRouter,\n createHashRouter,\n BrowserRouter,\n HashRouter,\n HistoryRouter,\n Link,\n NavLink,\n Form,\n ScrollRestoration,\n useLinkClickHandler,\n useSearchParams,\n useSubmit,\n useFormAction,\n useFetcher,\n useFetchers,\n useScrollRestoration,\n useBeforeUnload,\n usePrompt,\n useViewTransitionState,\n StaticRouter,\n StaticRouterProvider,\n createStaticHandler2,\n createStaticRouter\n};\n","import { Addchart } from \"@mui/icons-material\";\nimport TodayIcon from '@mui/icons-material/Today';\nimport {\n Box,\n Card,\n CardContent,\n CardHeader,\n Chip,\n Container,\n Divider,\n IconButton,\n Stack,\n Typography,\n useTheme\n} from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport Tooltip from \"@mui/material/Tooltip\";\nimport { RenderLoadingQuery } from \"components/Core/Widgets/RenderLoadingQuery\";\nimport { ExerciseImageAvatar } from \"components/Exercises/Detail/ExerciseImageAvatar\";\nimport { Language } from \"components/Exercises/models/language\";\nimport { useLanguageQuery } from \"components/Exercises/queries\";\nimport { getDayName } from \"components/WorkoutRoutines/models/Day\";\nimport { RoutineDayData } from \"components/WorkoutRoutines/models/RoutineDayData\";\nimport { SetConfigData } from \"components/WorkoutRoutines/models/SetConfigData\";\nimport { SlotData } from \"components/WorkoutRoutines/models/SlotData\";\nimport { useRoutineDetailQuery } from \"components/WorkoutRoutines/queries\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useParams } from \"react-router-dom\";\nimport { getLanguageByShortName } from \"services\";\nimport { isSameDay } from \"utils/date\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\n\nexport const RoutineDetailsCard = () => {\n\n const params = useParams<{ routineId: string }>();\n const routineId = parseInt(params.routineId ?? '');\n if (Number.isNaN(routineId)) {\n return <p>Please pass an integer as the routine id.</p>;\n }\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const routineQuery = useRoutineDetailQuery(routineId);\n\n return <Container maxWidth=\"lg\">\n <RenderLoadingQuery\n query={routineQuery}\n child={routineQuery.isSuccess && <>\n {routineQuery.data?.description !== ''\n && <Typography variant={\"body2\"} sx={{ whiteSpace: 'pre-line' }}>\n {routineQuery.data?.description}\n </Typography>\n }\n <Stack spacing={2} sx={{ mt: 2 }}>\n {routineQuery.data!.dayDataCurrentIteration.filter((dayData) => dayData.day !== null).map((dayData, index) =>\n <DayDetailsCard routineId={routineId} dayData={dayData} key={`dayDetails-${index}`} />\n )}\n </Stack>\n </>}\n />\n </Container>;\n};\n\n\nexport function SetConfigDataDetails(props: {\n setConfigData: SetConfigData,\n rowHeight?: undefined | string,\n marginBottom?: undefined | string,\n showExercise: boolean,\n}) {\n\n const { i18n } = useTranslation();\n const languageQuery = useLanguageQuery();\n\n let language: Language | undefined = undefined;\n if (languageQuery.isSuccess) {\n language = getLanguageByShortName(\n i18n.language,\n languageQuery.data!\n );\n }\n\n return (\n <Grid container\n alignItems=\"center\"\n justifyContent={\"center\"}\n sx={{ height: props.rowHeight, marginBottom: props.marginBottom }}>\n <Grid size={12}>\n <Stack spacing={0}>\n <Typography variant={\"h6\"}>\n {props.showExercise ? props.setConfigData.exercise?.getTranslation(language).name : ''}\n </Typography>\n <div>\n {props.setConfigData.textRepr}\n {props.setConfigData.isSpecialType &&\n <Chip\n label={props.setConfigData.type}\n color=\"info\"\n size=\"small\"\n sx={{ marginLeft: \"0.5em\" }} />\n }\n </div>\n <Typography variant={\"caption\"}>\n {props.setConfigData.comment}\n </Typography>\n </Stack>\n </Grid>\n </Grid>\n );\n}\n\n\nfunction SlotDataList(props: {\n slotData: SlotData,\n index: number,\n}) {\n return (\n <Grid\n container\n alignItems=\"flex-start\"\n columnGap={1}\n wrap=\"nowrap\"\n >\n <Grid\n sx={{\n flex: '0 0 50px',\n }}\n >\n <Stack divider={<Box height=\"10px\" />}>\n {props.slotData.exercises.map((exercise, index) =>\n <ExerciseImageAvatar\n image={exercise.mainImage}\n iconSize={40}\n avatarSize={50}\n key={index}\n />\n )}\n </Stack>\n </Grid>\n\n <Grid\n sx={{ flex: '1 1 auto', minWidth: 0 }}\n >\n {props.slotData.setConfigs.map((setConfig, index) => {\n const showExercise = index === 0 || setConfig.exerciseId !== props.slotData.setConfigs[index - 1]?.exerciseId;\n return <SetConfigDataDetails\n setConfigData={setConfig}\n marginBottom=\"1em\"\n key={index}\n showExercise={showExercise}\n />;\n })}\n </Grid>\n </Grid>\n );\n}\n\n\nexport const DayDetailsCard = (props: { dayData: RoutineDayData, routineId: number, readOnly?: boolean }) => {\n const readOnly = (props.readOnly ?? false) || props.dayData.day === null || props.dayData.day.isRest;\n\n const theme = useTheme();\n const [t, i18n] = useTranslation();\n\n return (\n <Card sx={{ minWidth: 275 }}>\n <CardHeader\n sx={{ bgcolor: theme.palette.grey.A200 }}\n action={props.dayData.day === null || props.dayData.day.isRest || readOnly\n ? null\n : <Tooltip title={t('routines.addWeightLog')}>\n <IconButton\n href={makeLink(WgerLink.ROUTINE_ADD_LOG, i18n.language, {\n id: props.routineId,\n id2: props.dayData.day!.id\n })}>\n <Addchart />\n </IconButton>\n </Tooltip>}\n title={getDayName(props.dayData.day)}\n avatar={isSameDay(props.dayData.date, new Date()) ? <TodayIcon /> : undefined}\n subheader={<Typography sx={{ whiteSpace: 'pre-line' }}>{props.dayData.day?.description}</Typography>}\n />\n {props.dayData.slots.length > 0 && <CardContent sx={{ padding: 0, marginBottom: 0 }}>\n <Stack>\n {props.dayData.slots.map((slotData, index) => (\n <div key={index}>\n <Box padding={1}>\n <SlotDataList\n slotData={slotData}\n index={index}\n />\n </Box>\n <Divider />\n </div>\n ))}\n </Stack>\n </CardContent>}\n </Card>\n );\n};\n","import ExpandLessIcon from \"@mui/icons-material/ExpandLess\";\nimport ExpandMoreIcon from \"@mui/icons-material/ExpandMore\";\nimport TodayIcon from \"@mui/icons-material/Today\";\nimport {\n Button,\n Card,\n CardActions,\n CardContent,\n CardHeader,\n Collapse,\n List,\n ListItemButton,\n ListItemIcon,\n ListItemText,\n} from '@mui/material';\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { EmptyCard } from \"components/Dashboard/EmptyCard\";\nimport { getDayName } from \"components/WorkoutRoutines/models/Day\";\nimport { Routine } from \"components/WorkoutRoutines/models/Routine\";\nimport { RoutineDayData } from \"components/WorkoutRoutines/models/RoutineDayData\";\nimport { useActiveRoutineQuery } from \"components/WorkoutRoutines/queries\";\nimport { SetConfigDataDetails } from \"components/WorkoutRoutines/widgets/RoutineDetailsCard\";\nimport React, { useState } from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { isSameDay } from \"utils/date\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\n\nexport const RoutineCard = () => {\n const [t, i18n] = useTranslation();\n const routineQuery = useActiveRoutineQuery();\n\n if (routineQuery.isLoading) {\n return <LoadingPlaceholder />;\n }\n\n return routineQuery.data !== null\n ? <RoutineCardContent routine={routineQuery.data!} />\n : <EmptyCard\n title={t('routines.routine')}\n link={makeLink(WgerLink.ROUTINE_ADD, i18n.language)}\n />;\n};\n\nconst RoutineCardContent = (props: { routine: Routine }) => {\n const [t, i18n] = useTranslation();\n\n return <Card>\n <CardHeader\n title={t('routines.routine')}\n subheader={props.routine.name ?? \".\"}\n />\n {/* Note: not 500 like the other cards, but a bit more since we don't have an action icon... */}\n <CardContent sx={{ height: \"510px\", overflow: \"auto\" }}>\n <List>\n {props.routine.dayDataCurrentIteration.filter(dayData => dayData.day !== null).map((dayData, index) =>\n <DayListItem dayData={dayData} key={index} />)}\n </List>\n </CardContent>\n\n <CardActions>\n <Button size=\"small\"\n href={makeLink(WgerLink.ROUTINE_DETAIL, i18n.language, { id: props.routine.id! })}>\n {t('seeDetails')}\n </Button>\n </CardActions>\n </Card>;\n};\n\nconst DayListItem = (props: { dayData: RoutineDayData }) => {\n const [expandView, setExpandView] = useState(false);\n const { t } = useTranslation();\n\n const handleToggleExpand = () => setExpandView(!expandView);\n\n return (<>\n <ListItemButton\n onClick={handleToggleExpand}\n selected={expandView}\n disabled={props.dayData.day === null || props.dayData.day?.isRest}\n >\n <ListItemIcon>\n {expandView ? <ExpandLessIcon /> : <ExpandMoreIcon />}\n </ListItemIcon>\n <ListItemText\n primary={getDayName(props.dayData.day)}\n slotProps={{ secondary: { noWrap: true, style: { overflow: 'hidden', textOverflow: 'ellipsis' } } }}\n secondary={props.dayData.day?.description}\n />\n <ListItemIcon>\n {isSameDay(props.dayData.date, new Date()) ? <TodayIcon /> : undefined}\n </ListItemIcon>\n </ListItemButton>\n\n <Collapse in={expandView} timeout=\"auto\" unmountOnExit>\n {props.dayData.slots.map((slotData, index) => (<div key={index}>\n {slotData.setConfigs.map((setConfigData, index) =>\n <SetConfigDataDetails\n setConfigData={setConfigData}\n key={index}\n rowHeight={'70px'}\n showExercise={true}\n />\n )}\n </div>))}\n </Collapse>\n </>);\n};","import { useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { WeightEntry } from \"components/BodyWeight/model\";\nimport { createWeight, deleteWeight, getWeights, updateWeight, } from \"services\";\nimport { QueryKey, } from \"utils/consts\";\nimport { FilterType } from \"../widgets/FilterButtons\";\n\n\nexport function useBodyWeightQuery(filter: FilterType = 'lastWeek') {\n return useQuery({\n queryKey: [QueryKey.BODY_WEIGHT, filter],\n queryFn: () => getWeights(filter),\n });\n}\n\nexport const useDeleteWeightEntryQuery = () => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteWeight(id),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.BODY_WEIGHT]\n })\n });\n};\n\n\nexport const useAddWeightEntryQuery = () => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (weightEntry: WeightEntry) => createWeight(weightEntry),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QueryKey.BODY_WEIGHT,]\n })\n });\n};\n\nexport const useEditWeightEntryQuery = () => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: WeightEntry) => updateWeight(data),\n onSuccess: () => {\n queryClient.invalidateQueries({\n queryKey: [QueryKey.BODY_WEIGHT,]\n });\n }\n });\n};","import { Button, Stack, TextField } from \"@mui/material\";\nimport { DateTimePicker, LocalizationProvider } from \"@mui/x-date-pickers\";\nimport { AdapterLuxon } from \"@mui/x-date-pickers/AdapterLuxon\";\nimport { WeightEntry } from \"components/BodyWeight/model\";\nimport { useAddWeightEntryQuery, useBodyWeightQuery, useEditWeightEntryQuery } from \"components/BodyWeight/queries\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { Form, Formik } from \"formik\";\nimport { DateTime } from \"luxon\";\nimport { useState } from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { dateToYYYYMMDD } from \"utils/date\";\nimport * as yup from 'yup';\n\ninterface WeightFormProps {\n weightEntry?: WeightEntry,\n closeFn?: Function,\n}\n\nexport const WeightForm = ({ weightEntry, closeFn }: WeightFormProps) => {\n\n const weightEntriesQuery = useBodyWeightQuery();\n const addWeightQuery = useAddWeightEntryQuery();\n const editWeightQuery = useEditWeightEntryQuery();\n\n const [dateValue, setDateValue] = useState<DateTime | null>(weightEntry ? DateTime.fromJSDate(weightEntry.date) : DateTime.now);\n const [t, i18n] = useTranslation();\n\n const validationSchema = yup.object({\n weight: yup\n .number()\n .min(30, 'Min weight is 30 kg')\n .max(300, 'Max weight is 300 kg')\n .required('Weight field is required'),\n });\n\n if (weightEntriesQuery.isLoading) {\n return <LoadingPlaceholder />;\n }\n\n return (\n (<Formik\n initialValues={{\n weight: weightEntry ? weightEntry.weight : 0,\n date: weightEntry ? dateToYYYYMMDD(weightEntry.date) : dateToYYYYMMDD(new Date()),\n }}\n validationSchema={validationSchema}\n onSubmit={async (values) => {\n\n // Edit existing weight entry\n if (weightEntry) {\n weightEntry.weight = values.weight;\n weightEntry.date = new Date(values.date);\n editWeightQuery.mutate(weightEntry);\n\n // Create a new weight entry\n } else {\n weightEntry = new WeightEntry(new Date(values.date), values.weight);\n addWeightQuery.mutate(weightEntry);\n }\n\n if (closeFn) {\n closeFn();\n }\n }}\n >\n {formik => (\n <Form>\n <Stack spacing={2}>\n <TextField\n fullWidth\n id=\"weight\"\n label={t('weight')}\n error={formik.touched.weight && Boolean(formik.touched.weight)}\n helperText={formik.touched.weight && formik.errors.weight}\n {...formik.getFieldProps('weight')}\n />\n\n <LocalizationProvider dateAdapter={AdapterLuxon} adapterLocale={i18n.language}>\n <DateTimePicker\n label={t('date')}\n value={dateValue}\n slotProps={{ textField: { variant: 'outlined' } }}\n disableFuture={true}\n onChange={(newValue) => {\n if (newValue) {\n formik.setFieldValue('date', newValue.toJSDate());\n }\n setDateValue(newValue);\n }}\n />\n </LocalizationProvider>\n <Stack direction=\"row\" justifyContent=\"end\" sx={{ mt: 2 }}>\n <Button color=\"primary\" variant=\"contained\" type=\"submit\" sx={{ mt: 2 }}>\n {t('submit')}\n </Button>\n </Stack>\n </Stack>\n </Form>\n )}\n </Formik>)\n );\n};\n","import { Table, TableBody, TableCell, TableContainer, TableHead, TableRow } from '@mui/material';\nimport { styled } from '@mui/material/styles';\nimport { WeightEntry } from \"components/BodyWeight/model\";\nimport React from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { dateTimeToLocale } from \"utils/date\";\n\n\nconst PREFIX = 'WeightTableDashboard';\n\nconst classes = {\n table: `${PREFIX}-table`\n};\n\nconst Root = styled('div')((\n {\n theme: Theme\n }\n) => {\n return {\n [`&.${classes.table}`]: {\n \"& .MuiPaper-root\": {\n border: \"1px solid #bababa\",\n\n }\n },\n };\n});\n\n\nexport interface WeightTableProps {\n weights: WeightEntry[];\n}\n\nexport const WeightTableDashboard = ({ weights }: WeightTableProps) => {\n const [t] = useTranslation();\n\n const WEIGHT_ENTRIES_TO_SHOW = 5;\n\n const filteredWeight = weights.slice(0, WEIGHT_ENTRIES_TO_SHOW);\n\n return (\n <Root className={classes.table}>\n <TableContainer>\n <Table size={\"small\"}>\n <TableHead>\n <TableRow>\n <TableCell align=\"center\">{t('date')}</TableCell>\n <TableCell align=\"center\">{t('weight')}</TableCell>\n </TableRow>\n </TableHead>\n <TableBody>\n {filteredWeight.map((row) => (\n <TableRow key={row.date.toISOString()}>\n <TableCell align=\"center\">\n {dateTimeToLocale(row.date)}\n </TableCell>\n <TableCell align=\"center\">{row.weight}</TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n </TableContainer>\n </Root>\n );\n};","import { Paper, useTheme } from \"@mui/material\";\nimport { WeightForm } from \"components/BodyWeight/Form/WeightForm\";\nimport { WeightEntry } from \"components/BodyWeight/model\";\nimport { WgerModal } from \"components/Core/Modals/WgerModal\";\nimport React from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { CartesianGrid, DotProps, Line, LineChart, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts';\n\nexport interface WeightChartProps {\n weights: WeightEntry[],\n height?: number,\n}\n\nexport interface TooltipProps {\n active?: boolean,\n payload?: any,\n label?: string,\n}\n\nconst CustomTooltip = ({ active, payload, label }: TooltipProps) => {\n const [t, i18n] = useTranslation();\n\n if (active && payload && payload.length) {\n return (\n <Paper style={{ padding: 8 }}>\n <p><strong>{new Date(label!).toLocaleDateString(i18n.language)}</strong></p>\n <p>{t('weight')}: {payload[0].value}</p>\n </Paper>\n );\n }\n\n return null;\n};\n\nexport const WeightChart = ({ weights, height }: WeightChartProps) => {\n\n const NR_OF_WEIGHTS_CHART_DOT = 30;\n height = height || 300;\n\n const theme = useTheme();\n const [t, i18n] = useTranslation();\n const [isModalOpen, setIsModalOpen] = React.useState(false);\n const [currentEntry, setCurrentEntry] = React.useState<WeightEntry>();\n const handleCloseModal = () => setIsModalOpen(false);\n\n // map the list of weights to an array of objects with the date and weight\n const weightData = [...weights].sort((a, b) => a.date.getTime() - b.date.getTime()).map(weight => {\n return {\n date: weight.date.getTime(),\n weight: weight.weight,\n entry: weight\n };\n });\n\n /*\n * Edit the currently selected weight\n */\n function handleClick(e: DotProps, data: any) {\n setCurrentEntry(data.payload.entry);\n setIsModalOpen(true);\n }\n\n return (\n <div>\n {\n currentEntry &&\n <WgerModal title={t('edit')} isOpen={isModalOpen} closeFn={handleCloseModal}>\n <WeightForm weightEntry={currentEntry} />\n </WgerModal>\n }\n <ResponsiveContainer height={height}>\n\n <LineChart data={weightData}>\n <Line\n type=\"monotone\"\n dataKey=\"weight\"\n stroke={theme.palette.secondary.main}\n strokeWidth={2}\n dot={weightData.length > NR_OF_WEIGHTS_CHART_DOT ? false : { strokeWidth: 1, r: 4 }}\n activeDot={{\n stroke: 'black',\n strokeWidth: 1,\n r: 6,\n onClick: handleClick\n }} />\n <CartesianGrid\n stroke=\"#ccc\"\n strokeDasharray=\"5 5\" />\n <XAxis\n dataKey=\"date\"\n type={'number'}\n domain={['dataMin', 'dataMax']}\n tickFormatter={timeStr => new Date(timeStr).toLocaleDateString(i18n.language)}\n />\n <YAxis domain={['auto', 'auto']} />\n <Tooltip content={<CustomTooltip />} />\n </LineChart>\n </ResponsiveContainer>\n </div>\n );\n};","import AddIcon from \"@mui/icons-material/Add\";\nimport { Box, Button, Card, CardActions, CardContent, CardHeader, IconButton, } from '@mui/material';\nimport Tooltip from \"@mui/material/Tooltip\";\nimport { WeightForm } from \"components/BodyWeight/Form/WeightForm\";\nimport { WeightEntry } from \"components/BodyWeight/model\";\nimport { useBodyWeightQuery } from \"components/BodyWeight/queries\";\nimport { WeightTableDashboard } from \"components/BodyWeight/TableDashboard/TableDashboard\";\nimport { WeightChart } from \"components/BodyWeight/WeightChart\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { WgerModal } from \"components/Core/Modals/WgerModal\";\nimport { EmptyCard } from \"components/Dashboard/EmptyCard\";\nimport React from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\nexport const WeightCard = () => {\n\n const [t] = useTranslation();\n const weightyQuery = useBodyWeightQuery('lastYear');\n\n if (weightyQuery.isLoading) {\n return <LoadingPlaceholder />;\n }\n\n return weightyQuery.data?.length !== undefined && weightyQuery.data?.length > 0\n ? <WeightCardContent entries={weightyQuery.data} />\n : <EmptyCard\n title={t('weight')}\n modalContent={<WeightForm />}\n />;\n};\nexport const WeightCardContent = (props: { entries: WeightEntry[] }) => {\n\n const [openModal, setOpenModal] = React.useState(false);\n const handleOpenModal = () => setOpenModal(true);\n const handleCloseModal = () => setOpenModal(false);\n const [t, i18n] = useTranslation();\n\n return (<>\n <Card>\n <CardHeader\n title={t('weight')}\n subheader={'.'}\n />\n <CardContent sx={{ height: '500px', overflow: 'auto' }}>\n <WeightChart weights={props.entries} height={200} />\n <Box sx={{ mt: 2, }}>\n <WeightTableDashboard weights={props.entries} />\n </Box>\n </CardContent>\n <CardActions sx={{\n justifyContent: \"space-between\",\n alignItems: \"flex-start\",\n }}>\n <Button\n size=\"small\"\n href={makeLink(WgerLink.WEIGHT_OVERVIEW, i18n.language)}\n >\n {t('seeDetails')}\n </Button>\n <Tooltip title={t('addEntry')}>\n <IconButton onClick={handleOpenModal}>\n <AddIcon />\n </IconButton>\n </Tooltip>\n </CardActions>\n </Card>\n <WgerModal title={t('add')} isOpen={openModal} closeFn={handleCloseModal}>\n <WeightForm closeFn={handleCloseModal} />\n </WgerModal>\n </>);\n};","import { Ingredient } from \"components/Nutrition/models/Ingredient\";\nimport { IngredientAutocompleter } from \"components/Nutrition/widgets/IngredientAutcompleter\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\n\n/*\n * Ingredient autocompleter used to navigate the user to the ingredient\n * detail page from the overview\n */\nexport const IngredientSearch = () => {\n const { i18n } = useTranslation();\n\n const navigateToIngredient = (value: Ingredient | null) => {\n if (value !== null) {\n window.location.href = makeLink(WgerLink.INGREDIENT_DETAIL, i18n.language, { id: value.id });\n }\n };\n\n return <IngredientAutocompleter\n callback={navigateToIngredient}\n />;\n};","/**\n * @license React\n * scheduler.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\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\n\"use strict\";\nfunction push(heap, node) {\n var index = heap.length;\n heap.push(node);\n a: for (; 0 < index; ) {\n var parentIndex = (index - 1) >>> 1,\n parent = heap[parentIndex];\n if (0 < compare(parent, node))\n (heap[parentIndex] = node), (heap[index] = parent), (index = parentIndex);\n else break a;\n }\n}\nfunction peek(heap) {\n return 0 === heap.length ? null : heap[0];\n}\nfunction pop(heap) {\n if (0 === heap.length) return null;\n var first = heap[0],\n last = heap.pop();\n if (last !== first) {\n heap[0] = last;\n a: for (\n var index = 0, length = heap.length, halfLength = length >>> 1;\n index < halfLength;\n\n ) {\n var leftIndex = 2 * (index + 1) - 1,\n left = heap[leftIndex],\n rightIndex = leftIndex + 1,\n right = heap[rightIndex];\n if (0 > compare(left, last))\n rightIndex < length && 0 > compare(right, left)\n ? ((heap[index] = right),\n (heap[rightIndex] = last),\n (index = rightIndex))\n : ((heap[index] = left),\n (heap[leftIndex] = last),\n (index = leftIndex));\n else if (rightIndex < length && 0 > compare(right, last))\n (heap[index] = right), (heap[rightIndex] = last), (index = rightIndex);\n else break a;\n }\n }\n return first;\n}\nfunction compare(a, b) {\n var diff = a.sortIndex - b.sortIndex;\n return 0 !== diff ? diff : a.id - b.id;\n}\nexports.unstable_now = void 0;\nif (\"object\" === typeof performance && \"function\" === typeof performance.now) {\n var localPerformance = performance;\n exports.unstable_now = function () {\n return localPerformance.now();\n };\n} else {\n var localDate = Date,\n initialTime = localDate.now();\n exports.unstable_now = function () {\n return localDate.now() - initialTime;\n };\n}\nvar taskQueue = [],\n timerQueue = [],\n taskIdCounter = 1,\n currentTask = null,\n currentPriorityLevel = 3,\n isPerformingWork = !1,\n isHostCallbackScheduled = !1,\n isHostTimeoutScheduled = !1,\n needsPaint = !1,\n localSetTimeout = \"function\" === typeof setTimeout ? setTimeout : null,\n localClearTimeout = \"function\" === typeof clearTimeout ? clearTimeout : null,\n localSetImmediate = \"undefined\" !== typeof setImmediate ? setImmediate : null;\nfunction advanceTimers(currentTime) {\n for (var timer = peek(timerQueue); null !== timer; ) {\n if (null === timer.callback) pop(timerQueue);\n else if (timer.startTime <= currentTime)\n pop(timerQueue),\n (timer.sortIndex = timer.expirationTime),\n push(taskQueue, timer);\n else break;\n timer = peek(timerQueue);\n }\n}\nfunction handleTimeout(currentTime) {\n isHostTimeoutScheduled = !1;\n advanceTimers(currentTime);\n if (!isHostCallbackScheduled)\n if (null !== peek(taskQueue))\n (isHostCallbackScheduled = !0),\n isMessageLoopRunning ||\n ((isMessageLoopRunning = !0), schedulePerformWorkUntilDeadline());\n else {\n var firstTimer = peek(timerQueue);\n null !== firstTimer &&\n requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);\n }\n}\nvar isMessageLoopRunning = !1,\n taskTimeoutID = -1,\n frameInterval = 5,\n startTime = -1;\nfunction shouldYieldToHost() {\n return needsPaint\n ? !0\n : exports.unstable_now() - startTime < frameInterval\n ? !1\n : !0;\n}\nfunction performWorkUntilDeadline() {\n needsPaint = !1;\n if (isMessageLoopRunning) {\n var currentTime = exports.unstable_now();\n startTime = currentTime;\n var hasMoreWork = !0;\n try {\n a: {\n isHostCallbackScheduled = !1;\n isHostTimeoutScheduled &&\n ((isHostTimeoutScheduled = !1),\n localClearTimeout(taskTimeoutID),\n (taskTimeoutID = -1));\n isPerformingWork = !0;\n var previousPriorityLevel = currentPriorityLevel;\n try {\n b: {\n advanceTimers(currentTime);\n for (\n currentTask = peek(taskQueue);\n null !== currentTask &&\n !(\n currentTask.expirationTime > currentTime && shouldYieldToHost()\n );\n\n ) {\n var callback = currentTask.callback;\n if (\"function\" === typeof callback) {\n currentTask.callback = null;\n currentPriorityLevel = currentTask.priorityLevel;\n var continuationCallback = callback(\n currentTask.expirationTime <= currentTime\n );\n currentTime = exports.unstable_now();\n if (\"function\" === typeof continuationCallback) {\n currentTask.callback = continuationCallback;\n advanceTimers(currentTime);\n hasMoreWork = !0;\n break b;\n }\n currentTask === peek(taskQueue) && pop(taskQueue);\n advanceTimers(currentTime);\n } else pop(taskQueue);\n currentTask = peek(taskQueue);\n }\n if (null !== currentTask) hasMoreWork = !0;\n else {\n var firstTimer = peek(timerQueue);\n null !== firstTimer &&\n requestHostTimeout(\n handleTimeout,\n firstTimer.startTime - currentTime\n );\n hasMoreWork = !1;\n }\n }\n break a;\n } finally {\n (currentTask = null),\n (currentPriorityLevel = previousPriorityLevel),\n (isPerformingWork = !1);\n }\n hasMoreWork = void 0;\n }\n } finally {\n hasMoreWork\n ? schedulePerformWorkUntilDeadline()\n : (isMessageLoopRunning = !1);\n }\n }\n}\nvar schedulePerformWorkUntilDeadline;\nif (\"function\" === typeof localSetImmediate)\n schedulePerformWorkUntilDeadline = function () {\n localSetImmediate(performWorkUntilDeadline);\n };\nelse if (\"undefined\" !== typeof MessageChannel) {\n var channel = new MessageChannel(),\n port = channel.port2;\n channel.port1.onmessage = performWorkUntilDeadline;\n schedulePerformWorkUntilDeadline = function () {\n port.postMessage(null);\n };\n} else\n schedulePerformWorkUntilDeadline = function () {\n localSetTimeout(performWorkUntilDeadline, 0);\n };\nfunction requestHostTimeout(callback, ms) {\n taskTimeoutID = localSetTimeout(function () {\n callback(exports.unstable_now());\n }, ms);\n}\nexports.unstable_IdlePriority = 5;\nexports.unstable_ImmediatePriority = 1;\nexports.unstable_LowPriority = 4;\nexports.unstable_NormalPriority = 3;\nexports.unstable_Profiling = null;\nexports.unstable_UserBlockingPriority = 2;\nexports.unstable_cancelCallback = function (task) {\n task.callback = null;\n};\nexports.unstable_forceFrameRate = function (fps) {\n 0 > fps || 125 < fps\n ? console.error(\n \"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"\n )\n : (frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5);\n};\nexports.unstable_getCurrentPriorityLevel = function () {\n return currentPriorityLevel;\n};\nexports.unstable_next = function (eventHandler) {\n switch (currentPriorityLevel) {\n case 1:\n case 2:\n case 3:\n var priorityLevel = 3;\n break;\n default:\n priorityLevel = currentPriorityLevel;\n }\n var previousPriorityLevel = currentPriorityLevel;\n currentPriorityLevel = priorityLevel;\n try {\n return eventHandler();\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n }\n};\nexports.unstable_requestPaint = function () {\n needsPaint = !0;\n};\nexports.unstable_runWithPriority = function (priorityLevel, eventHandler) {\n switch (priorityLevel) {\n case 1:\n case 2:\n case 3:\n case 4:\n case 5:\n break;\n default:\n priorityLevel = 3;\n }\n var previousPriorityLevel = currentPriorityLevel;\n currentPriorityLevel = priorityLevel;\n try {\n return eventHandler();\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n }\n};\nexports.unstable_scheduleCallback = function (\n priorityLevel,\n callback,\n options\n) {\n var currentTime = exports.unstable_now();\n \"object\" === typeof options && null !== options\n ? ((options = options.delay),\n (options =\n \"number\" === typeof options && 0 < options\n ? currentTime + options\n : currentTime))\n : (options = currentTime);\n switch (priorityLevel) {\n case 1:\n var timeout = -1;\n break;\n case 2:\n timeout = 250;\n break;\n case 5:\n timeout = 1073741823;\n break;\n case 4:\n timeout = 1e4;\n break;\n default:\n timeout = 5e3;\n }\n timeout = options + timeout;\n priorityLevel = {\n id: taskIdCounter++,\n callback: callback,\n priorityLevel: priorityLevel,\n startTime: options,\n expirationTime: timeout,\n sortIndex: -1\n };\n options > currentTime\n ? ((priorityLevel.sortIndex = options),\n push(timerQueue, priorityLevel),\n null === peek(taskQueue) &&\n priorityLevel === peek(timerQueue) &&\n (isHostTimeoutScheduled\n ? (localClearTimeout(taskTimeoutID), (taskTimeoutID = -1))\n : (isHostTimeoutScheduled = !0),\n requestHostTimeout(handleTimeout, options - currentTime)))\n : ((priorityLevel.sortIndex = timeout),\n push(taskQueue, priorityLevel),\n isHostCallbackScheduled ||\n isPerformingWork ||\n ((isHostCallbackScheduled = !0),\n isMessageLoopRunning ||\n ((isMessageLoopRunning = !0), schedulePerformWorkUntilDeadline())));\n return priorityLevel;\n};\nexports.unstable_shouldYield = shouldYieldToHost;\nexports.unstable_wrapCallback = function (callback) {\n var parentPriorityLevel = currentPriorityLevel;\n return function () {\n var previousPriorityLevel = currentPriorityLevel;\n currentPriorityLevel = parentPriorityLevel;\n try {\n return callback.apply(this, arguments);\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n }\n };\n};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","/**\n * @license React\n * react-dom-client.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\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\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n\"use strict\";\nvar Scheduler = require(\"scheduler\"),\n React = require(\"react\"),\n ReactDOM = require(\"react-dom\");\nfunction formatProdErrorMessage(code) {\n var url = \"https://react.dev/errors/\" + code;\n if (1 < arguments.length) {\n url += \"?args[]=\" + encodeURIComponent(arguments[1]);\n for (var i = 2; i < arguments.length; i++)\n url += \"&args[]=\" + encodeURIComponent(arguments[i]);\n }\n return (\n \"Minified React error #\" +\n code +\n \"; visit \" +\n url +\n \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"\n );\n}\nfunction isValidContainer(node) {\n return !(\n !node ||\n (1 !== node.nodeType && 9 !== node.nodeType && 11 !== node.nodeType)\n );\n}\nfunction getNearestMountedFiber(fiber) {\n var node = fiber,\n nearestMounted = fiber;\n if (fiber.alternate) for (; node.return; ) node = node.return;\n else {\n fiber = node;\n do\n (node = fiber),\n 0 !== (node.flags & 4098) && (nearestMounted = node.return),\n (fiber = node.return);\n while (fiber);\n }\n return 3 === node.tag ? nearestMounted : null;\n}\nfunction getSuspenseInstanceFromFiber(fiber) {\n if (13 === fiber.tag) {\n var suspenseState = fiber.memoizedState;\n null === suspenseState &&\n ((fiber = fiber.alternate),\n null !== fiber && (suspenseState = fiber.memoizedState));\n if (null !== suspenseState) return suspenseState.dehydrated;\n }\n return null;\n}\nfunction assertIsMounted(fiber) {\n if (getNearestMountedFiber(fiber) !== fiber)\n throw Error(formatProdErrorMessage(188));\n}\nfunction findCurrentFiberUsingSlowPath(fiber) {\n var alternate = fiber.alternate;\n if (!alternate) {\n alternate = getNearestMountedFiber(fiber);\n if (null === alternate) throw Error(formatProdErrorMessage(188));\n return alternate !== fiber ? null : fiber;\n }\n for (var a = fiber, b = alternate; ; ) {\n var parentA = a.return;\n if (null === parentA) break;\n var parentB = parentA.alternate;\n if (null === parentB) {\n b = parentA.return;\n if (null !== b) {\n a = b;\n continue;\n }\n break;\n }\n if (parentA.child === parentB.child) {\n for (parentB = parentA.child; parentB; ) {\n if (parentB === a) return assertIsMounted(parentA), fiber;\n if (parentB === b) return assertIsMounted(parentA), alternate;\n parentB = parentB.sibling;\n }\n throw Error(formatProdErrorMessage(188));\n }\n if (a.return !== b.return) (a = parentA), (b = parentB);\n else {\n for (var didFindChild = !1, child$0 = parentA.child; child$0; ) {\n if (child$0 === a) {\n didFindChild = !0;\n a = parentA;\n b = parentB;\n break;\n }\n if (child$0 === b) {\n didFindChild = !0;\n b = parentA;\n a = parentB;\n break;\n }\n child$0 = child$0.sibling;\n }\n if (!didFindChild) {\n for (child$0 = parentB.child; child$0; ) {\n if (child$0 === a) {\n didFindChild = !0;\n a = parentB;\n b = parentA;\n break;\n }\n if (child$0 === b) {\n didFindChild = !0;\n b = parentB;\n a = parentA;\n break;\n }\n child$0 = child$0.sibling;\n }\n if (!didFindChild) throw Error(formatProdErrorMessage(189));\n }\n }\n if (a.alternate !== b) throw Error(formatProdErrorMessage(190));\n }\n if (3 !== a.tag) throw Error(formatProdErrorMessage(188));\n return a.stateNode.current === a ? fiber : alternate;\n}\nfunction findCurrentHostFiberImpl(node) {\n var tag = node.tag;\n if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node;\n for (node = node.child; null !== node; ) {\n tag = findCurrentHostFiberImpl(node);\n if (null !== tag) return tag;\n node = node.sibling;\n }\n return null;\n}\nvar assign = Object.assign,\n REACT_LEGACY_ELEMENT_TYPE = Symbol.for(\"react.element\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_PROVIDER_TYPE = Symbol.for(\"react.provider\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nSymbol.for(\"react.scope\");\nvar REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\");\nSymbol.for(\"react.legacy_hidden\");\nSymbol.for(\"react.tracing_marker\");\nvar REACT_MEMO_CACHE_SENTINEL = Symbol.for(\"react.memo_cache_sentinel\");\nSymbol.for(\"react.view_transition\");\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nfunction getIteratorFn(maybeIterable) {\n if (null === maybeIterable || \"object\" !== typeof maybeIterable) return null;\n maybeIterable =\n (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n maybeIterable[\"@@iterator\"];\n return \"function\" === typeof maybeIterable ? maybeIterable : null;\n}\nvar REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\nfunction getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (type.$$typeof) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n}\nvar isArrayImpl = Array.isArray,\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n ReactDOMSharedInternals =\n ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n sharedNotPendingObject = {\n pending: !1,\n data: null,\n method: null,\n action: null\n },\n valueStack = [],\n index = -1;\nfunction createCursor(defaultValue) {\n return { current: defaultValue };\n}\nfunction pop(cursor) {\n 0 > index ||\n ((cursor.current = valueStack[index]), (valueStack[index] = null), index--);\n}\nfunction push(cursor, value) {\n index++;\n valueStack[index] = cursor.current;\n cursor.current = value;\n}\nvar contextStackCursor = createCursor(null),\n contextFiberStackCursor = createCursor(null),\n rootInstanceStackCursor = createCursor(null),\n hostTransitionProviderCursor = createCursor(null);\nfunction pushHostContainer(fiber, nextRootInstance) {\n push(rootInstanceStackCursor, nextRootInstance);\n push(contextFiberStackCursor, fiber);\n push(contextStackCursor, null);\n switch (nextRootInstance.nodeType) {\n case 9:\n case 11:\n fiber = (fiber = nextRootInstance.documentElement)\n ? (fiber = fiber.namespaceURI)\n ? getOwnHostContext(fiber)\n : 0\n : 0;\n break;\n default:\n if (\n ((fiber = nextRootInstance.tagName),\n (nextRootInstance = nextRootInstance.namespaceURI))\n )\n (nextRootInstance = getOwnHostContext(nextRootInstance)),\n (fiber = getChildHostContextProd(nextRootInstance, fiber));\n else\n switch (fiber) {\n case \"svg\":\n fiber = 1;\n break;\n case \"math\":\n fiber = 2;\n break;\n default:\n fiber = 0;\n }\n }\n pop(contextStackCursor);\n push(contextStackCursor, fiber);\n}\nfunction popHostContainer() {\n pop(contextStackCursor);\n pop(contextFiberStackCursor);\n pop(rootInstanceStackCursor);\n}\nfunction pushHostContext(fiber) {\n null !== fiber.memoizedState && push(hostTransitionProviderCursor, fiber);\n var context = contextStackCursor.current;\n var JSCompiler_inline_result = getChildHostContextProd(context, fiber.type);\n context !== JSCompiler_inline_result &&\n (push(contextFiberStackCursor, fiber),\n push(contextStackCursor, JSCompiler_inline_result));\n}\nfunction popHostContext(fiber) {\n contextFiberStackCursor.current === fiber &&\n (pop(contextStackCursor), pop(contextFiberStackCursor));\n hostTransitionProviderCursor.current === fiber &&\n (pop(hostTransitionProviderCursor),\n (HostTransitionContext._currentValue = sharedNotPendingObject));\n}\nvar hasOwnProperty = Object.prototype.hasOwnProperty,\n scheduleCallback$3 = Scheduler.unstable_scheduleCallback,\n cancelCallback$1 = Scheduler.unstable_cancelCallback,\n shouldYield = Scheduler.unstable_shouldYield,\n requestPaint = Scheduler.unstable_requestPaint,\n now = Scheduler.unstable_now,\n getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel,\n ImmediatePriority = Scheduler.unstable_ImmediatePriority,\n UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,\n NormalPriority$1 = Scheduler.unstable_NormalPriority,\n LowPriority = Scheduler.unstable_LowPriority,\n IdlePriority = Scheduler.unstable_IdlePriority,\n log$1 = Scheduler.log,\n unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue,\n rendererID = null,\n injectedHook = null;\nfunction setIsStrictModeForDevtools(newIsStrictMode) {\n \"function\" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode);\n if (injectedHook && \"function\" === typeof injectedHook.setStrictMode)\n try {\n injectedHook.setStrictMode(rendererID, newIsStrictMode);\n } catch (err) {}\n}\nvar clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,\n log = Math.log,\n LN2 = Math.LN2;\nfunction clz32Fallback(x) {\n x >>>= 0;\n return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;\n}\nvar nextTransitionLane = 256,\n nextRetryLane = 4194304;\nfunction getHighestPriorityLanes(lanes) {\n var pendingSyncLanes = lanes & 42;\n if (0 !== pendingSyncLanes) return pendingSyncLanes;\n switch (lanes & -lanes) {\n case 1:\n return 1;\n case 2:\n return 2;\n case 4:\n return 4;\n case 8:\n return 8;\n case 16:\n return 16;\n case 32:\n return 32;\n case 64:\n return 64;\n case 128:\n return 128;\n case 256:\n case 512:\n case 1024:\n case 2048:\n case 4096:\n case 8192:\n case 16384:\n case 32768:\n case 65536:\n case 131072:\n case 262144:\n case 524288:\n case 1048576:\n case 2097152:\n return lanes & 4194048;\n case 4194304:\n case 8388608:\n case 16777216:\n case 33554432:\n return lanes & 62914560;\n case 67108864:\n return 67108864;\n case 134217728:\n return 134217728;\n case 268435456:\n return 268435456;\n case 536870912:\n return 536870912;\n case 1073741824:\n return 0;\n default:\n return lanes;\n }\n}\nfunction getNextLanes(root, wipLanes, rootHasPendingCommit) {\n var pendingLanes = root.pendingLanes;\n if (0 === pendingLanes) return 0;\n var nextLanes = 0,\n suspendedLanes = root.suspendedLanes,\n pingedLanes = root.pingedLanes;\n root = root.warmLanes;\n var nonIdlePendingLanes = pendingLanes & 134217727;\n 0 !== nonIdlePendingLanes\n ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),\n 0 !== pendingLanes\n ? (nextLanes = getHighestPriorityLanes(pendingLanes))\n : ((pingedLanes &= nonIdlePendingLanes),\n 0 !== pingedLanes\n ? (nextLanes = getHighestPriorityLanes(pingedLanes))\n : rootHasPendingCommit ||\n ((rootHasPendingCommit = nonIdlePendingLanes & ~root),\n 0 !== rootHasPendingCommit &&\n (nextLanes = getHighestPriorityLanes(rootHasPendingCommit)))))\n : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),\n 0 !== nonIdlePendingLanes\n ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))\n : 0 !== pingedLanes\n ? (nextLanes = getHighestPriorityLanes(pingedLanes))\n : rootHasPendingCommit ||\n ((rootHasPendingCommit = pendingLanes & ~root),\n 0 !== rootHasPendingCommit &&\n (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))));\n return 0 === nextLanes\n ? 0\n : 0 !== wipLanes &&\n wipLanes !== nextLanes &&\n 0 === (wipLanes & suspendedLanes) &&\n ((suspendedLanes = nextLanes & -nextLanes),\n (rootHasPendingCommit = wipLanes & -wipLanes),\n suspendedLanes >= rootHasPendingCommit ||\n (32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194048)))\n ? wipLanes\n : nextLanes;\n}\nfunction checkIfRootIsPrerendering(root, renderLanes) {\n return (\n 0 ===\n (root.pendingLanes &\n ~(root.suspendedLanes & ~root.pingedLanes) &\n renderLanes)\n );\n}\nfunction computeExpirationTime(lane, currentTime) {\n switch (lane) {\n case 1:\n case 2:\n case 4:\n case 8:\n case 64:\n return currentTime + 250;\n case 16:\n case 32:\n case 128:\n case 256:\n case 512:\n case 1024:\n case 2048:\n case 4096:\n case 8192:\n case 16384:\n case 32768:\n case 65536:\n case 131072:\n case 262144:\n case 524288:\n case 1048576:\n case 2097152:\n return currentTime + 5e3;\n case 4194304:\n case 8388608:\n case 16777216:\n case 33554432:\n return -1;\n case 67108864:\n case 134217728:\n case 268435456:\n case 536870912:\n case 1073741824:\n return -1;\n default:\n return -1;\n }\n}\nfunction claimNextTransitionLane() {\n var lane = nextTransitionLane;\n nextTransitionLane <<= 1;\n 0 === (nextTransitionLane & 4194048) && (nextTransitionLane = 256);\n return lane;\n}\nfunction claimNextRetryLane() {\n var lane = nextRetryLane;\n nextRetryLane <<= 1;\n 0 === (nextRetryLane & 62914560) && (nextRetryLane = 4194304);\n return lane;\n}\nfunction createLaneMap(initial) {\n for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);\n return laneMap;\n}\nfunction markRootUpdated$1(root, updateLane) {\n root.pendingLanes |= updateLane;\n 268435456 !== updateLane &&\n ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0));\n}\nfunction markRootFinished(\n root,\n finishedLanes,\n remainingLanes,\n spawnedLane,\n updatedLanes,\n suspendedRetryLanes\n) {\n var previouslyPendingLanes = root.pendingLanes;\n root.pendingLanes = remainingLanes;\n root.suspendedLanes = 0;\n root.pingedLanes = 0;\n root.warmLanes = 0;\n root.expiredLanes &= remainingLanes;\n root.entangledLanes &= remainingLanes;\n root.errorRecoveryDisabledLanes &= remainingLanes;\n root.shellSuspendCounter = 0;\n var entanglements = root.entanglements,\n expirationTimes = root.expirationTimes,\n hiddenUpdates = root.hiddenUpdates;\n for (\n remainingLanes = previouslyPendingLanes & ~remainingLanes;\n 0 < remainingLanes;\n\n ) {\n var index$5 = 31 - clz32(remainingLanes),\n lane = 1 << index$5;\n entanglements[index$5] = 0;\n expirationTimes[index$5] = -1;\n var hiddenUpdatesForLane = hiddenUpdates[index$5];\n if (null !== hiddenUpdatesForLane)\n for (\n hiddenUpdates[index$5] = null, index$5 = 0;\n index$5 < hiddenUpdatesForLane.length;\n index$5++\n ) {\n var update = hiddenUpdatesForLane[index$5];\n null !== update && (update.lane &= -536870913);\n }\n remainingLanes &= ~lane;\n }\n 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);\n 0 !== suspendedRetryLanes &&\n 0 === updatedLanes &&\n 0 !== root.tag &&\n (root.suspendedLanes |=\n suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));\n}\nfunction markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {\n root.pendingLanes |= spawnedLane;\n root.suspendedLanes &= ~spawnedLane;\n var spawnedLaneIndex = 31 - clz32(spawnedLane);\n root.entangledLanes |= spawnedLane;\n root.entanglements[spawnedLaneIndex] =\n root.entanglements[spawnedLaneIndex] |\n 1073741824 |\n (entangledLanes & 4194090);\n}\nfunction markRootEntangled(root, entangledLanes) {\n var rootEntangledLanes = (root.entangledLanes |= entangledLanes);\n for (root = root.entanglements; rootEntangledLanes; ) {\n var index$6 = 31 - clz32(rootEntangledLanes),\n lane = 1 << index$6;\n (lane & entangledLanes) | (root[index$6] & entangledLanes) &&\n (root[index$6] |= entangledLanes);\n rootEntangledLanes &= ~lane;\n }\n}\nfunction getBumpedLaneForHydrationByLane(lane) {\n switch (lane) {\n case 2:\n lane = 1;\n break;\n case 8:\n lane = 4;\n break;\n case 32:\n lane = 16;\n break;\n case 256:\n case 512:\n case 1024:\n case 2048:\n case 4096:\n case 8192:\n case 16384:\n case 32768:\n case 65536:\n case 131072:\n case 262144:\n case 524288:\n case 1048576:\n case 2097152:\n case 4194304:\n case 8388608:\n case 16777216:\n case 33554432:\n lane = 128;\n break;\n case 268435456:\n lane = 134217728;\n break;\n default:\n lane = 0;\n }\n return lane;\n}\nfunction lanesToEventPriority(lanes) {\n lanes &= -lanes;\n return 2 < lanes\n ? 8 < lanes\n ? 0 !== (lanes & 134217727)\n ? 32\n : 268435456\n : 8\n : 2;\n}\nfunction resolveUpdatePriority() {\n var updatePriority = ReactDOMSharedInternals.p;\n if (0 !== updatePriority) return updatePriority;\n updatePriority = window.event;\n return void 0 === updatePriority ? 32 : getEventPriority(updatePriority.type);\n}\nfunction runWithPriority(priority, fn) {\n var previousPriority = ReactDOMSharedInternals.p;\n try {\n return (ReactDOMSharedInternals.p = priority), fn();\n } finally {\n ReactDOMSharedInternals.p = previousPriority;\n }\n}\nvar randomKey = Math.random().toString(36).slice(2),\n internalInstanceKey = \"__reactFiber$\" + randomKey,\n internalPropsKey = \"__reactProps$\" + randomKey,\n internalContainerInstanceKey = \"__reactContainer$\" + randomKey,\n internalEventHandlersKey = \"__reactEvents$\" + randomKey,\n internalEventHandlerListenersKey = \"__reactListeners$\" + randomKey,\n internalEventHandlesSetKey = \"__reactHandles$\" + randomKey,\n internalRootNodeResourcesKey = \"__reactResources$\" + randomKey,\n internalHoistableMarker = \"__reactMarker$\" + randomKey;\nfunction detachDeletedInstance(node) {\n delete node[internalInstanceKey];\n delete node[internalPropsKey];\n delete node[internalEventHandlersKey];\n delete node[internalEventHandlerListenersKey];\n delete node[internalEventHandlesSetKey];\n}\nfunction getClosestInstanceFromNode(targetNode) {\n var targetInst = targetNode[internalInstanceKey];\n if (targetInst) return targetInst;\n for (var parentNode = targetNode.parentNode; parentNode; ) {\n if (\n (targetInst =\n parentNode[internalContainerInstanceKey] ||\n parentNode[internalInstanceKey])\n ) {\n parentNode = targetInst.alternate;\n if (\n null !== targetInst.child ||\n (null !== parentNode && null !== parentNode.child)\n )\n for (\n targetNode = getParentSuspenseInstance(targetNode);\n null !== targetNode;\n\n ) {\n if ((parentNode = targetNode[internalInstanceKey])) return parentNode;\n targetNode = getParentSuspenseInstance(targetNode);\n }\n return targetInst;\n }\n targetNode = parentNode;\n parentNode = targetNode.parentNode;\n }\n return null;\n}\nfunction getInstanceFromNode(node) {\n if (\n (node = node[internalInstanceKey] || node[internalContainerInstanceKey])\n ) {\n var tag = node.tag;\n if (\n 5 === tag ||\n 6 === tag ||\n 13 === tag ||\n 26 === tag ||\n 27 === tag ||\n 3 === tag\n )\n return node;\n }\n return null;\n}\nfunction getNodeFromInstance(inst) {\n var tag = inst.tag;\n if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return inst.stateNode;\n throw Error(formatProdErrorMessage(33));\n}\nfunction getResourcesFromRoot(root) {\n var resources = root[internalRootNodeResourcesKey];\n resources ||\n (resources = root[internalRootNodeResourcesKey] =\n { hoistableStyles: new Map(), hoistableScripts: new Map() });\n return resources;\n}\nfunction markNodeAsHoistable(node) {\n node[internalHoistableMarker] = !0;\n}\nvar allNativeEvents = new Set(),\n registrationNameDependencies = {};\nfunction registerTwoPhaseEvent(registrationName, dependencies) {\n registerDirectEvent(registrationName, dependencies);\n registerDirectEvent(registrationName + \"Capture\", dependencies);\n}\nfunction registerDirectEvent(registrationName, dependencies) {\n registrationNameDependencies[registrationName] = dependencies;\n for (\n registrationName = 0;\n registrationName < dependencies.length;\n registrationName++\n )\n allNativeEvents.add(dependencies[registrationName]);\n}\nvar VALID_ATTRIBUTE_NAME_REGEX = RegExp(\n \"^[:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD][:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]*$\"\n ),\n illegalAttributeNameCache = {},\n validatedAttributeNameCache = {};\nfunction isAttributeNameSafe(attributeName) {\n if (hasOwnProperty.call(validatedAttributeNameCache, attributeName))\n return !0;\n if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1;\n if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))\n return (validatedAttributeNameCache[attributeName] = !0);\n illegalAttributeNameCache[attributeName] = !0;\n return !1;\n}\nfunction setValueForAttribute(node, name, value) {\n if (isAttributeNameSafe(name))\n if (null === value) node.removeAttribute(name);\n else {\n switch (typeof value) {\n case \"undefined\":\n case \"function\":\n case \"symbol\":\n node.removeAttribute(name);\n return;\n case \"boolean\":\n var prefix$8 = name.toLowerCase().slice(0, 5);\n if (\"data-\" !== prefix$8 && \"aria-\" !== prefix$8) {\n node.removeAttribute(name);\n return;\n }\n }\n node.setAttribute(name, \"\" + value);\n }\n}\nfunction setValueForKnownAttribute(node, name, value) {\n if (null === value) node.removeAttribute(name);\n else {\n switch (typeof value) {\n case \"undefined\":\n case \"function\":\n case \"symbol\":\n case \"boolean\":\n node.removeAttribute(name);\n return;\n }\n node.setAttribute(name, \"\" + value);\n }\n}\nfunction setValueForNamespacedAttribute(node, namespace, name, value) {\n if (null === value) node.removeAttribute(name);\n else {\n switch (typeof value) {\n case \"undefined\":\n case \"function\":\n case \"symbol\":\n case \"boolean\":\n node.removeAttribute(name);\n return;\n }\n node.setAttributeNS(namespace, name, \"\" + value);\n }\n}\nvar prefix, suffix;\nfunction describeBuiltInComponentFrame(name) {\n if (void 0 === prefix)\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = (match && match[1]) || \"\";\n suffix =\n -1 < x.stack.indexOf(\"\\n at\")\n ? \" (<anonymous>)\"\n : -1 < x.stack.indexOf(\"@\")\n ? \"@unknown:0:0\"\n : \"\";\n }\n return \"\\n\" + prefix + name + suffix;\n}\nvar reentry = !1;\nfunction describeNativeComponentFrame(fn, construct) {\n if (!fn || reentry) return \"\";\n reentry = !0;\n var previousPrepareStackTrace = Error.prepareStackTrace;\n Error.prepareStackTrace = void 0;\n try {\n var RunInRootFrame = {\n DetermineComponentFrameRoot: function () {\n try {\n if (construct) {\n var Fake = function () {\n throw Error();\n };\n Object.defineProperty(Fake.prototype, \"props\", {\n set: function () {\n throw Error();\n }\n });\n if (\"object\" === typeof Reflect && Reflect.construct) {\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n var control = x;\n }\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x$9) {\n control = x$9;\n }\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x$10) {\n control = x$10;\n }\n (Fake = fn()) &&\n \"function\" === typeof Fake.catch &&\n Fake.catch(function () {});\n }\n } catch (sample) {\n if (sample && control && \"string\" === typeof sample.stack)\n return [sample.stack, control.stack];\n }\n return [null, null];\n }\n };\n RunInRootFrame.DetermineComponentFrameRoot.displayName =\n \"DetermineComponentFrameRoot\";\n var namePropDescriptor = Object.getOwnPropertyDescriptor(\n RunInRootFrame.DetermineComponentFrameRoot,\n \"name\"\n );\n namePropDescriptor &&\n namePropDescriptor.configurable &&\n Object.defineProperty(\n RunInRootFrame.DetermineComponentFrameRoot,\n \"name\",\n { value: \"DetermineComponentFrameRoot\" }\n );\n var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),\n sampleStack = _RunInRootFrame$Deter[0],\n controlStack = _RunInRootFrame$Deter[1];\n if (sampleStack && controlStack) {\n var sampleLines = sampleStack.split(\"\\n\"),\n controlLines = controlStack.split(\"\\n\");\n for (\n namePropDescriptor = RunInRootFrame = 0;\n RunInRootFrame < sampleLines.length &&\n !sampleLines[RunInRootFrame].includes(\"DetermineComponentFrameRoot\");\n\n )\n RunInRootFrame++;\n for (\n ;\n namePropDescriptor < controlLines.length &&\n !controlLines[namePropDescriptor].includes(\n \"DetermineComponentFrameRoot\"\n );\n\n )\n namePropDescriptor++;\n if (\n RunInRootFrame === sampleLines.length ||\n namePropDescriptor === controlLines.length\n )\n for (\n RunInRootFrame = sampleLines.length - 1,\n namePropDescriptor = controlLines.length - 1;\n 1 <= RunInRootFrame &&\n 0 <= namePropDescriptor &&\n sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor];\n\n )\n namePropDescriptor--;\n for (\n ;\n 1 <= RunInRootFrame && 0 <= namePropDescriptor;\n RunInRootFrame--, namePropDescriptor--\n )\n if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) {\n if (1 !== RunInRootFrame || 1 !== namePropDescriptor) {\n do\n if (\n (RunInRootFrame--,\n namePropDescriptor--,\n 0 > namePropDescriptor ||\n sampleLines[RunInRootFrame] !==\n controlLines[namePropDescriptor])\n ) {\n var frame =\n \"\\n\" +\n sampleLines[RunInRootFrame].replace(\" at new \", \" at \");\n fn.displayName &&\n frame.includes(\"<anonymous>\") &&\n (frame = frame.replace(\"<anonymous>\", fn.displayName));\n return frame;\n }\n while (1 <= RunInRootFrame && 0 <= namePropDescriptor);\n }\n break;\n }\n }\n } finally {\n (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace);\n }\n return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : \"\")\n ? describeBuiltInComponentFrame(previousPrepareStackTrace)\n : \"\";\n}\nfunction describeFiber(fiber) {\n switch (fiber.tag) {\n case 26:\n case 27:\n case 5:\n return describeBuiltInComponentFrame(fiber.type);\n case 16:\n return describeBuiltInComponentFrame(\"Lazy\");\n case 13:\n return describeBuiltInComponentFrame(\"Suspense\");\n case 19:\n return describeBuiltInComponentFrame(\"SuspenseList\");\n case 0:\n case 15:\n return describeNativeComponentFrame(fiber.type, !1);\n case 11:\n return describeNativeComponentFrame(fiber.type.render, !1);\n case 1:\n return describeNativeComponentFrame(fiber.type, !0);\n case 31:\n return describeBuiltInComponentFrame(\"Activity\");\n default:\n return \"\";\n }\n}\nfunction getStackByFiberInDevAndProd(workInProgress) {\n try {\n var info = \"\";\n do\n (info += describeFiber(workInProgress)),\n (workInProgress = workInProgress.return);\n while (workInProgress);\n return info;\n } catch (x) {\n return \"\\nError generating stack: \" + x.message + \"\\n\" + x.stack;\n }\n}\nfunction getToStringValue(value) {\n switch (typeof value) {\n case \"bigint\":\n case \"boolean\":\n case \"number\":\n case \"string\":\n case \"undefined\":\n return value;\n case \"object\":\n return value;\n default:\n return \"\";\n }\n}\nfunction isCheckable(elem) {\n var type = elem.type;\n return (\n (elem = elem.nodeName) &&\n \"input\" === elem.toLowerCase() &&\n (\"checkbox\" === type || \"radio\" === type)\n );\n}\nfunction trackValueOnNode(node) {\n var valueField = isCheckable(node) ? \"checked\" : \"value\",\n descriptor = Object.getOwnPropertyDescriptor(\n node.constructor.prototype,\n valueField\n ),\n currentValue = \"\" + node[valueField];\n if (\n !node.hasOwnProperty(valueField) &&\n \"undefined\" !== typeof descriptor &&\n \"function\" === typeof descriptor.get &&\n \"function\" === typeof descriptor.set\n ) {\n var get = descriptor.get,\n set = descriptor.set;\n Object.defineProperty(node, valueField, {\n configurable: !0,\n get: function () {\n return get.call(this);\n },\n set: function (value) {\n currentValue = \"\" + value;\n set.call(this, value);\n }\n });\n Object.defineProperty(node, valueField, {\n enumerable: descriptor.enumerable\n });\n return {\n getValue: function () {\n return currentValue;\n },\n setValue: function (value) {\n currentValue = \"\" + value;\n },\n stopTracking: function () {\n node._valueTracker = null;\n delete node[valueField];\n }\n };\n }\n}\nfunction track(node) {\n node._valueTracker || (node._valueTracker = trackValueOnNode(node));\n}\nfunction updateValueIfChanged(node) {\n if (!node) return !1;\n var tracker = node._valueTracker;\n if (!tracker) return !0;\n var lastValue = tracker.getValue();\n var value = \"\";\n node &&\n (value = isCheckable(node)\n ? node.checked\n ? \"true\"\n : \"false\"\n : node.value);\n node = value;\n return node !== lastValue ? (tracker.setValue(node), !0) : !1;\n}\nfunction getActiveElement(doc) {\n doc = doc || (\"undefined\" !== typeof document ? document : void 0);\n if (\"undefined\" === typeof doc) return null;\n try {\n return doc.activeElement || doc.body;\n } catch (e) {\n return doc.body;\n }\n}\nvar escapeSelectorAttributeValueInsideDoubleQuotesRegex = /[\\n\"\\\\]/g;\nfunction escapeSelectorAttributeValueInsideDoubleQuotes(value) {\n return value.replace(\n escapeSelectorAttributeValueInsideDoubleQuotesRegex,\n function (ch) {\n return \"\\\\\" + ch.charCodeAt(0).toString(16) + \" \";\n }\n );\n}\nfunction updateInput(\n element,\n value,\n defaultValue,\n lastDefaultValue,\n checked,\n defaultChecked,\n type,\n name\n) {\n element.name = \"\";\n null != type &&\n \"function\" !== typeof type &&\n \"symbol\" !== typeof type &&\n \"boolean\" !== typeof type\n ? (element.type = type)\n : element.removeAttribute(\"type\");\n if (null != value)\n if (\"number\" === type) {\n if ((0 === value && \"\" === element.value) || element.value != value)\n element.value = \"\" + getToStringValue(value);\n } else\n element.value !== \"\" + getToStringValue(value) &&\n (element.value = \"\" + getToStringValue(value));\n else\n (\"submit\" !== type && \"reset\" !== type) || element.removeAttribute(\"value\");\n null != value\n ? setDefaultValue(element, type, getToStringValue(value))\n : null != defaultValue\n ? setDefaultValue(element, type, getToStringValue(defaultValue))\n : null != lastDefaultValue && element.removeAttribute(\"value\");\n null == checked &&\n null != defaultChecked &&\n (element.defaultChecked = !!defaultChecked);\n null != checked &&\n (element.checked =\n checked && \"function\" !== typeof checked && \"symbol\" !== typeof checked);\n null != name &&\n \"function\" !== typeof name &&\n \"symbol\" !== typeof name &&\n \"boolean\" !== typeof name\n ? (element.name = \"\" + getToStringValue(name))\n : element.removeAttribute(\"name\");\n}\nfunction initInput(\n element,\n value,\n defaultValue,\n checked,\n defaultChecked,\n type,\n name,\n isHydrating\n) {\n null != type &&\n \"function\" !== typeof type &&\n \"symbol\" !== typeof type &&\n \"boolean\" !== typeof type &&\n (element.type = type);\n if (null != value || null != defaultValue) {\n if (\n !(\n (\"submit\" !== type && \"reset\" !== type) ||\n (void 0 !== value && null !== value)\n )\n )\n return;\n defaultValue =\n null != defaultValue ? \"\" + getToStringValue(defaultValue) : \"\";\n value = null != value ? \"\" + getToStringValue(value) : defaultValue;\n isHydrating || value === element.value || (element.value = value);\n element.defaultValue = value;\n }\n checked = null != checked ? checked : defaultChecked;\n checked =\n \"function\" !== typeof checked && \"symbol\" !== typeof checked && !!checked;\n element.checked = isHydrating ? element.checked : !!checked;\n element.defaultChecked = !!checked;\n null != name &&\n \"function\" !== typeof name &&\n \"symbol\" !== typeof name &&\n \"boolean\" !== typeof name &&\n (element.name = name);\n}\nfunction setDefaultValue(node, type, value) {\n (\"number\" === type && getActiveElement(node.ownerDocument) === node) ||\n node.defaultValue === \"\" + value ||\n (node.defaultValue = \"\" + value);\n}\nfunction updateOptions(node, multiple, propValue, setDefaultSelected) {\n node = node.options;\n if (multiple) {\n multiple = {};\n for (var i = 0; i < propValue.length; i++)\n multiple[\"$\" + propValue[i]] = !0;\n for (propValue = 0; propValue < node.length; propValue++)\n (i = multiple.hasOwnProperty(\"$\" + node[propValue].value)),\n node[propValue].selected !== i && (node[propValue].selected = i),\n i && setDefaultSelected && (node[propValue].defaultSelected = !0);\n } else {\n propValue = \"\" + getToStringValue(propValue);\n multiple = null;\n for (i = 0; i < node.length; i++) {\n if (node[i].value === propValue) {\n node[i].selected = !0;\n setDefaultSelected && (node[i].defaultSelected = !0);\n return;\n }\n null !== multiple || node[i].disabled || (multiple = node[i]);\n }\n null !== multiple && (multiple.selected = !0);\n }\n}\nfunction updateTextarea(element, value, defaultValue) {\n if (\n null != value &&\n ((value = \"\" + getToStringValue(value)),\n value !== element.value && (element.value = value),\n null == defaultValue)\n ) {\n element.defaultValue !== value && (element.defaultValue = value);\n return;\n }\n element.defaultValue =\n null != defaultValue ? \"\" + getToStringValue(defaultValue) : \"\";\n}\nfunction initTextarea(element, value, defaultValue, children) {\n if (null == value) {\n if (null != children) {\n if (null != defaultValue) throw Error(formatProdErrorMessage(92));\n if (isArrayImpl(children)) {\n if (1 < children.length) throw Error(formatProdErrorMessage(93));\n children = children[0];\n }\n defaultValue = children;\n }\n null == defaultValue && (defaultValue = \"\");\n value = defaultValue;\n }\n defaultValue = getToStringValue(value);\n element.defaultValue = defaultValue;\n children = element.textContent;\n children === defaultValue &&\n \"\" !== children &&\n null !== children &&\n (element.value = children);\n}\nfunction setTextContent(node, text) {\n if (text) {\n var firstChild = node.firstChild;\n if (\n firstChild &&\n firstChild === node.lastChild &&\n 3 === firstChild.nodeType\n ) {\n firstChild.nodeValue = text;\n return;\n }\n }\n node.textContent = text;\n}\nvar unitlessNumbers = new Set(\n \"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\".split(\n \" \"\n )\n);\nfunction setValueForStyle(style, styleName, value) {\n var isCustomProperty = 0 === styleName.indexOf(\"--\");\n null == value || \"boolean\" === typeof value || \"\" === value\n ? isCustomProperty\n ? style.setProperty(styleName, \"\")\n : \"float\" === styleName\n ? (style.cssFloat = \"\")\n : (style[styleName] = \"\")\n : isCustomProperty\n ? style.setProperty(styleName, value)\n : \"number\" !== typeof value ||\n 0 === value ||\n unitlessNumbers.has(styleName)\n ? \"float\" === styleName\n ? (style.cssFloat = value)\n : (style[styleName] = (\"\" + value).trim())\n : (style[styleName] = value + \"px\");\n}\nfunction setValueForStyles(node, styles, prevStyles) {\n if (null != styles && \"object\" !== typeof styles)\n throw Error(formatProdErrorMessage(62));\n node = node.style;\n if (null != prevStyles) {\n for (var styleName in prevStyles)\n !prevStyles.hasOwnProperty(styleName) ||\n (null != styles && styles.hasOwnProperty(styleName)) ||\n (0 === styleName.indexOf(\"--\")\n ? node.setProperty(styleName, \"\")\n : \"float\" === styleName\n ? (node.cssFloat = \"\")\n : (node[styleName] = \"\"));\n for (var styleName$16 in styles)\n (styleName = styles[styleName$16]),\n styles.hasOwnProperty(styleName$16) &&\n prevStyles[styleName$16] !== styleName &&\n setValueForStyle(node, styleName$16, styleName);\n } else\n for (var styleName$17 in styles)\n styles.hasOwnProperty(styleName$17) &&\n setValueForStyle(node, styleName$17, styles[styleName$17]);\n}\nfunction isCustomElement(tagName) {\n if (-1 === tagName.indexOf(\"-\")) return !1;\n switch (tagName) {\n case \"annotation-xml\":\n case \"color-profile\":\n case \"font-face\":\n case \"font-face-src\":\n case \"font-face-uri\":\n case \"font-face-format\":\n case \"font-face-name\":\n case \"missing-glyph\":\n return !1;\n default:\n return !0;\n }\n}\nvar aliases = new Map([\n [\"acceptCharset\", \"accept-charset\"],\n [\"htmlFor\", \"for\"],\n [\"httpEquiv\", \"http-equiv\"],\n [\"crossOrigin\", \"crossorigin\"],\n [\"accentHeight\", \"accent-height\"],\n [\"alignmentBaseline\", \"alignment-baseline\"],\n [\"arabicForm\", \"arabic-form\"],\n [\"baselineShift\", \"baseline-shift\"],\n [\"capHeight\", \"cap-height\"],\n [\"clipPath\", \"clip-path\"],\n [\"clipRule\", \"clip-rule\"],\n [\"colorInterpolation\", \"color-interpolation\"],\n [\"colorInterpolationFilters\", \"color-interpolation-filters\"],\n [\"colorProfile\", \"color-profile\"],\n [\"colorRendering\", \"color-rendering\"],\n [\"dominantBaseline\", \"dominant-baseline\"],\n [\"enableBackground\", \"enable-background\"],\n [\"fillOpacity\", \"fill-opacity\"],\n [\"fillRule\", \"fill-rule\"],\n [\"floodColor\", \"flood-color\"],\n [\"floodOpacity\", \"flood-opacity\"],\n [\"fontFamily\", \"font-family\"],\n [\"fontSize\", \"font-size\"],\n [\"fontSizeAdjust\", \"font-size-adjust\"],\n [\"fontStretch\", \"font-stretch\"],\n [\"fontStyle\", \"font-style\"],\n [\"fontVariant\", \"font-variant\"],\n [\"fontWeight\", \"font-weight\"],\n [\"glyphName\", \"glyph-name\"],\n [\"glyphOrientationHorizontal\", \"glyph-orientation-horizontal\"],\n [\"glyphOrientationVertical\", \"glyph-orientation-vertical\"],\n [\"horizAdvX\", \"horiz-adv-x\"],\n [\"horizOriginX\", \"horiz-origin-x\"],\n [\"imageRendering\", \"image-rendering\"],\n [\"letterSpacing\", \"letter-spacing\"],\n [\"lightingColor\", \"lighting-color\"],\n [\"markerEnd\", \"marker-end\"],\n [\"markerMid\", \"marker-mid\"],\n [\"markerStart\", \"marker-start\"],\n [\"overlinePosition\", \"overline-position\"],\n [\"overlineThickness\", \"overline-thickness\"],\n [\"paintOrder\", \"paint-order\"],\n [\"panose-1\", \"panose-1\"],\n [\"pointerEvents\", \"pointer-events\"],\n [\"renderingIntent\", \"rendering-intent\"],\n [\"shapeRendering\", \"shape-rendering\"],\n [\"stopColor\", \"stop-color\"],\n [\"stopOpacity\", \"stop-opacity\"],\n [\"strikethroughPosition\", \"strikethrough-position\"],\n [\"strikethroughThickness\", \"strikethrough-thickness\"],\n [\"strokeDasharray\", \"stroke-dasharray\"],\n [\"strokeDashoffset\", \"stroke-dashoffset\"],\n [\"strokeLinecap\", \"stroke-linecap\"],\n [\"strokeLinejoin\", \"stroke-linejoin\"],\n [\"strokeMiterlimit\", \"stroke-miterlimit\"],\n [\"strokeOpacity\", \"stroke-opacity\"],\n [\"strokeWidth\", \"stroke-width\"],\n [\"textAnchor\", \"text-anchor\"],\n [\"textDecoration\", \"text-decoration\"],\n [\"textRendering\", \"text-rendering\"],\n [\"transformOrigin\", \"transform-origin\"],\n [\"underlinePosition\", \"underline-position\"],\n [\"underlineThickness\", \"underline-thickness\"],\n [\"unicodeBidi\", \"unicode-bidi\"],\n [\"unicodeRange\", \"unicode-range\"],\n [\"unitsPerEm\", \"units-per-em\"],\n [\"vAlphabetic\", \"v-alphabetic\"],\n [\"vHanging\", \"v-hanging\"],\n [\"vIdeographic\", \"v-ideographic\"],\n [\"vMathematical\", \"v-mathematical\"],\n [\"vectorEffect\", \"vector-effect\"],\n [\"vertAdvY\", \"vert-adv-y\"],\n [\"vertOriginX\", \"vert-origin-x\"],\n [\"vertOriginY\", \"vert-origin-y\"],\n [\"wordSpacing\", \"word-spacing\"],\n [\"writingMode\", \"writing-mode\"],\n [\"xmlnsXlink\", \"xmlns:xlink\"],\n [\"xHeight\", \"x-height\"]\n ]),\n isJavaScriptProtocol =\n /^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*:/i;\nfunction sanitizeURL(url) {\n return isJavaScriptProtocol.test(\"\" + url)\n ? \"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')\"\n : url;\n}\nvar currentReplayingEvent = null;\nfunction getEventTarget(nativeEvent) {\n nativeEvent = nativeEvent.target || nativeEvent.srcElement || window;\n nativeEvent.correspondingUseElement &&\n (nativeEvent = nativeEvent.correspondingUseElement);\n return 3 === nativeEvent.nodeType ? nativeEvent.parentNode : nativeEvent;\n}\nvar restoreTarget = null,\n restoreQueue = null;\nfunction restoreStateOfTarget(target) {\n var internalInstance = getInstanceFromNode(target);\n if (internalInstance && (target = internalInstance.stateNode)) {\n var props = target[internalPropsKey] || null;\n a: switch (((target = internalInstance.stateNode), internalInstance.type)) {\n case \"input\":\n updateInput(\n target,\n props.value,\n props.defaultValue,\n props.defaultValue,\n props.checked,\n props.defaultChecked,\n props.type,\n props.name\n );\n internalInstance = props.name;\n if (\"radio\" === props.type && null != internalInstance) {\n for (props = target; props.parentNode; ) props = props.parentNode;\n props = props.querySelectorAll(\n 'input[name=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(\n \"\" + internalInstance\n ) +\n '\"][type=\"radio\"]'\n );\n for (\n internalInstance = 0;\n internalInstance < props.length;\n internalInstance++\n ) {\n var otherNode = props[internalInstance];\n if (otherNode !== target && otherNode.form === target.form) {\n var otherProps = otherNode[internalPropsKey] || null;\n if (!otherProps) throw Error(formatProdErrorMessage(90));\n updateInput(\n otherNode,\n otherProps.value,\n otherProps.defaultValue,\n otherProps.defaultValue,\n otherProps.checked,\n otherProps.defaultChecked,\n otherProps.type,\n otherProps.name\n );\n }\n }\n for (\n internalInstance = 0;\n internalInstance < props.length;\n internalInstance++\n )\n (otherNode = props[internalInstance]),\n otherNode.form === target.form && updateValueIfChanged(otherNode);\n }\n break a;\n case \"textarea\":\n updateTextarea(target, props.value, props.defaultValue);\n break a;\n case \"select\":\n (internalInstance = props.value),\n null != internalInstance &&\n updateOptions(target, !!props.multiple, internalInstance, !1);\n }\n }\n}\nvar isInsideEventHandler = !1;\nfunction batchedUpdates$1(fn, a, b) {\n if (isInsideEventHandler) return fn(a, b);\n isInsideEventHandler = !0;\n try {\n var JSCompiler_inline_result = fn(a);\n return JSCompiler_inline_result;\n } finally {\n if (\n ((isInsideEventHandler = !1),\n null !== restoreTarget || null !== restoreQueue)\n )\n if (\n (flushSyncWork$1(),\n restoreTarget &&\n ((a = restoreTarget),\n (fn = restoreQueue),\n (restoreQueue = restoreTarget = null),\n restoreStateOfTarget(a),\n fn))\n )\n for (a = 0; a < fn.length; a++) restoreStateOfTarget(fn[a]);\n }\n}\nfunction getListener(inst, registrationName) {\n var stateNode = inst.stateNode;\n if (null === stateNode) return null;\n var props = stateNode[internalPropsKey] || null;\n if (null === props) return null;\n stateNode = props[registrationName];\n a: switch (registrationName) {\n case \"onClick\":\n case \"onClickCapture\":\n case \"onDoubleClick\":\n case \"onDoubleClickCapture\":\n case \"onMouseDown\":\n case \"onMouseDownCapture\":\n case \"onMouseMove\":\n case \"onMouseMoveCapture\":\n case \"onMouseUp\":\n case \"onMouseUpCapture\":\n case \"onMouseEnter\":\n (props = !props.disabled) ||\n ((inst = inst.type),\n (props = !(\n \"button\" === inst ||\n \"input\" === inst ||\n \"select\" === inst ||\n \"textarea\" === inst\n )));\n inst = !props;\n break a;\n default:\n inst = !1;\n }\n if (inst) return null;\n if (stateNode && \"function\" !== typeof stateNode)\n throw Error(\n formatProdErrorMessage(231, registrationName, typeof stateNode)\n );\n return stateNode;\n}\nvar canUseDOM = !(\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ),\n passiveBrowserEventsSupported = !1;\nif (canUseDOM)\n try {\n var options = {};\n Object.defineProperty(options, \"passive\", {\n get: function () {\n passiveBrowserEventsSupported = !0;\n }\n });\n window.addEventListener(\"test\", options, options);\n window.removeEventListener(\"test\", options, options);\n } catch (e) {\n passiveBrowserEventsSupported = !1;\n }\nvar root = null,\n startText = null,\n fallbackText = null;\nfunction getData() {\n if (fallbackText) return fallbackText;\n var start,\n startValue = startText,\n startLength = startValue.length,\n end,\n endValue = \"value\" in root ? root.value : root.textContent,\n endLength = endValue.length;\n for (\n start = 0;\n start < startLength && startValue[start] === endValue[start];\n start++\n );\n var minEnd = startLength - start;\n for (\n end = 1;\n end <= minEnd &&\n startValue[startLength - end] === endValue[endLength - end];\n end++\n );\n return (fallbackText = endValue.slice(start, 1 < end ? 1 - end : void 0));\n}\nfunction getEventCharCode(nativeEvent) {\n var keyCode = nativeEvent.keyCode;\n \"charCode\" in nativeEvent\n ? ((nativeEvent = nativeEvent.charCode),\n 0 === nativeEvent && 13 === keyCode && (nativeEvent = 13))\n : (nativeEvent = keyCode);\n 10 === nativeEvent && (nativeEvent = 13);\n return 32 <= nativeEvent || 13 === nativeEvent ? nativeEvent : 0;\n}\nfunction functionThatReturnsTrue() {\n return !0;\n}\nfunction functionThatReturnsFalse() {\n return !1;\n}\nfunction createSyntheticEvent(Interface) {\n function SyntheticBaseEvent(\n reactName,\n reactEventType,\n targetInst,\n nativeEvent,\n nativeEventTarget\n ) {\n this._reactName = reactName;\n this._targetInst = targetInst;\n this.type = reactEventType;\n this.nativeEvent = nativeEvent;\n this.target = nativeEventTarget;\n this.currentTarget = null;\n for (var propName in Interface)\n Interface.hasOwnProperty(propName) &&\n ((reactName = Interface[propName]),\n (this[propName] = reactName\n ? reactName(nativeEvent)\n : nativeEvent[propName]));\n this.isDefaultPrevented = (\n null != nativeEvent.defaultPrevented\n ? nativeEvent.defaultPrevented\n : !1 === nativeEvent.returnValue\n )\n ? functionThatReturnsTrue\n : functionThatReturnsFalse;\n this.isPropagationStopped = functionThatReturnsFalse;\n return this;\n }\n assign(SyntheticBaseEvent.prototype, {\n preventDefault: function () {\n this.defaultPrevented = !0;\n var event = this.nativeEvent;\n event &&\n (event.preventDefault\n ? event.preventDefault()\n : \"unknown\" !== typeof event.returnValue && (event.returnValue = !1),\n (this.isDefaultPrevented = functionThatReturnsTrue));\n },\n stopPropagation: function () {\n var event = this.nativeEvent;\n event &&\n (event.stopPropagation\n ? event.stopPropagation()\n : \"unknown\" !== typeof event.cancelBubble &&\n (event.cancelBubble = !0),\n (this.isPropagationStopped = functionThatReturnsTrue));\n },\n persist: function () {},\n isPersistent: functionThatReturnsTrue\n });\n return SyntheticBaseEvent;\n}\nvar EventInterface = {\n eventPhase: 0,\n bubbles: 0,\n cancelable: 0,\n timeStamp: function (event) {\n return event.timeStamp || Date.now();\n },\n defaultPrevented: 0,\n isTrusted: 0\n },\n SyntheticEvent = createSyntheticEvent(EventInterface),\n UIEventInterface = assign({}, EventInterface, { view: 0, detail: 0 }),\n SyntheticUIEvent = createSyntheticEvent(UIEventInterface),\n lastMovementX,\n lastMovementY,\n lastMouseEvent,\n MouseEventInterface = assign({}, UIEventInterface, {\n screenX: 0,\n screenY: 0,\n clientX: 0,\n clientY: 0,\n pageX: 0,\n pageY: 0,\n ctrlKey: 0,\n shiftKey: 0,\n altKey: 0,\n metaKey: 0,\n getModifierState: getEventModifierState,\n button: 0,\n buttons: 0,\n relatedTarget: function (event) {\n return void 0 === event.relatedTarget\n ? event.fromElement === event.srcElement\n ? event.toElement\n : event.fromElement\n : event.relatedTarget;\n },\n movementX: function (event) {\n if (\"movementX\" in event) return event.movementX;\n event !== lastMouseEvent &&\n (lastMouseEvent && \"mousemove\" === event.type\n ? ((lastMovementX = event.screenX - lastMouseEvent.screenX),\n (lastMovementY = event.screenY - lastMouseEvent.screenY))\n : (lastMovementY = lastMovementX = 0),\n (lastMouseEvent = event));\n return lastMovementX;\n },\n movementY: function (event) {\n return \"movementY\" in event ? event.movementY : lastMovementY;\n }\n }),\n SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface),\n DragEventInterface = assign({}, MouseEventInterface, { dataTransfer: 0 }),\n SyntheticDragEvent = createSyntheticEvent(DragEventInterface),\n FocusEventInterface = assign({}, UIEventInterface, { relatedTarget: 0 }),\n SyntheticFocusEvent = createSyntheticEvent(FocusEventInterface),\n AnimationEventInterface = assign({}, EventInterface, {\n animationName: 0,\n elapsedTime: 0,\n pseudoElement: 0\n }),\n SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface),\n ClipboardEventInterface = assign({}, EventInterface, {\n clipboardData: function (event) {\n return \"clipboardData\" in event\n ? event.clipboardData\n : window.clipboardData;\n }\n }),\n SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface),\n CompositionEventInterface = assign({}, EventInterface, { data: 0 }),\n SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface),\n normalizeKey = {\n Esc: \"Escape\",\n Spacebar: \" \",\n Left: \"ArrowLeft\",\n Up: \"ArrowUp\",\n Right: \"ArrowRight\",\n Down: \"ArrowDown\",\n Del: \"Delete\",\n Win: \"OS\",\n Menu: \"ContextMenu\",\n Apps: \"ContextMenu\",\n Scroll: \"ScrollLock\",\n MozPrintableKey: \"Unidentified\"\n },\n translateToKey = {\n 8: \"Backspace\",\n 9: \"Tab\",\n 12: \"Clear\",\n 13: \"Enter\",\n 16: \"Shift\",\n 17: \"Control\",\n 18: \"Alt\",\n 19: \"Pause\",\n 20: \"CapsLock\",\n 27: \"Escape\",\n 32: \" \",\n 33: \"PageUp\",\n 34: \"PageDown\",\n 35: \"End\",\n 36: \"Home\",\n 37: \"ArrowLeft\",\n 38: \"ArrowUp\",\n 39: \"ArrowRight\",\n 40: \"ArrowDown\",\n 45: \"Insert\",\n 46: \"Delete\",\n 112: \"F1\",\n 113: \"F2\",\n 114: \"F3\",\n 115: \"F4\",\n 116: \"F5\",\n 117: \"F6\",\n 118: \"F7\",\n 119: \"F8\",\n 120: \"F9\",\n 121: \"F10\",\n 122: \"F11\",\n 123: \"F12\",\n 144: \"NumLock\",\n 145: \"ScrollLock\",\n 224: \"Meta\"\n },\n modifierKeyToProp = {\n Alt: \"altKey\",\n Control: \"ctrlKey\",\n Meta: \"metaKey\",\n Shift: \"shiftKey\"\n };\nfunction modifierStateGetter(keyArg) {\n var nativeEvent = this.nativeEvent;\n return nativeEvent.getModifierState\n ? nativeEvent.getModifierState(keyArg)\n : (keyArg = modifierKeyToProp[keyArg])\n ? !!nativeEvent[keyArg]\n : !1;\n}\nfunction getEventModifierState() {\n return modifierStateGetter;\n}\nvar KeyboardEventInterface = assign({}, UIEventInterface, {\n key: function (nativeEvent) {\n if (nativeEvent.key) {\n var key = normalizeKey[nativeEvent.key] || nativeEvent.key;\n if (\"Unidentified\" !== key) return key;\n }\n return \"keypress\" === nativeEvent.type\n ? ((nativeEvent = getEventCharCode(nativeEvent)),\n 13 === nativeEvent ? \"Enter\" : String.fromCharCode(nativeEvent))\n : \"keydown\" === nativeEvent.type || \"keyup\" === nativeEvent.type\n ? translateToKey[nativeEvent.keyCode] || \"Unidentified\"\n : \"\";\n },\n code: 0,\n location: 0,\n ctrlKey: 0,\n shiftKey: 0,\n altKey: 0,\n metaKey: 0,\n repeat: 0,\n locale: 0,\n getModifierState: getEventModifierState,\n charCode: function (event) {\n return \"keypress\" === event.type ? getEventCharCode(event) : 0;\n },\n keyCode: function (event) {\n return \"keydown\" === event.type || \"keyup\" === event.type\n ? event.keyCode\n : 0;\n },\n which: function (event) {\n return \"keypress\" === event.type\n ? getEventCharCode(event)\n : \"keydown\" === event.type || \"keyup\" === event.type\n ? event.keyCode\n : 0;\n }\n }),\n SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface),\n PointerEventInterface = assign({}, MouseEventInterface, {\n pointerId: 0,\n width: 0,\n height: 0,\n pressure: 0,\n tangentialPressure: 0,\n tiltX: 0,\n tiltY: 0,\n twist: 0,\n pointerType: 0,\n isPrimary: 0\n }),\n SyntheticPointerEvent = createSyntheticEvent(PointerEventInterface),\n TouchEventInterface = assign({}, UIEventInterface, {\n touches: 0,\n targetTouches: 0,\n changedTouches: 0,\n altKey: 0,\n metaKey: 0,\n ctrlKey: 0,\n shiftKey: 0,\n getModifierState: getEventModifierState\n }),\n SyntheticTouchEvent = createSyntheticEvent(TouchEventInterface),\n TransitionEventInterface = assign({}, EventInterface, {\n propertyName: 0,\n elapsedTime: 0,\n pseudoElement: 0\n }),\n SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface),\n WheelEventInterface = assign({}, MouseEventInterface, {\n deltaX: function (event) {\n return \"deltaX\" in event\n ? event.deltaX\n : \"wheelDeltaX\" in event\n ? -event.wheelDeltaX\n : 0;\n },\n deltaY: function (event) {\n return \"deltaY\" in event\n ? event.deltaY\n : \"wheelDeltaY\" in event\n ? -event.wheelDeltaY\n : \"wheelDelta\" in event\n ? -event.wheelDelta\n : 0;\n },\n deltaZ: 0,\n deltaMode: 0\n }),\n SyntheticWheelEvent = createSyntheticEvent(WheelEventInterface),\n ToggleEventInterface = assign({}, EventInterface, {\n newState: 0,\n oldState: 0\n }),\n SyntheticToggleEvent = createSyntheticEvent(ToggleEventInterface),\n END_KEYCODES = [9, 13, 27, 32],\n canUseCompositionEvent = canUseDOM && \"CompositionEvent\" in window,\n documentMode = null;\ncanUseDOM &&\n \"documentMode\" in document &&\n (documentMode = document.documentMode);\nvar canUseTextInputEvent = canUseDOM && \"TextEvent\" in window && !documentMode,\n useFallbackCompositionData =\n canUseDOM &&\n (!canUseCompositionEvent ||\n (documentMode && 8 < documentMode && 11 >= documentMode)),\n SPACEBAR_CHAR = String.fromCharCode(32),\n hasSpaceKeypress = !1;\nfunction isFallbackCompositionEnd(domEventName, nativeEvent) {\n switch (domEventName) {\n case \"keyup\":\n return -1 !== END_KEYCODES.indexOf(nativeEvent.keyCode);\n case \"keydown\":\n return 229 !== nativeEvent.keyCode;\n case \"keypress\":\n case \"mousedown\":\n case \"focusout\":\n return !0;\n default:\n return !1;\n }\n}\nfunction getDataFromCustomEvent(nativeEvent) {\n nativeEvent = nativeEvent.detail;\n return \"object\" === typeof nativeEvent && \"data\" in nativeEvent\n ? nativeEvent.data\n : null;\n}\nvar isComposing = !1;\nfunction getNativeBeforeInputChars(domEventName, nativeEvent) {\n switch (domEventName) {\n case \"compositionend\":\n return getDataFromCustomEvent(nativeEvent);\n case \"keypress\":\n if (32 !== nativeEvent.which) return null;\n hasSpaceKeypress = !0;\n return SPACEBAR_CHAR;\n case \"textInput\":\n return (\n (domEventName = nativeEvent.data),\n domEventName === SPACEBAR_CHAR && hasSpaceKeypress ? null : domEventName\n );\n default:\n return null;\n }\n}\nfunction getFallbackBeforeInputChars(domEventName, nativeEvent) {\n if (isComposing)\n return \"compositionend\" === domEventName ||\n (!canUseCompositionEvent &&\n isFallbackCompositionEnd(domEventName, nativeEvent))\n ? ((domEventName = getData()),\n (fallbackText = startText = root = null),\n (isComposing = !1),\n domEventName)\n : null;\n switch (domEventName) {\n case \"paste\":\n return null;\n case \"keypress\":\n if (\n !(nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) ||\n (nativeEvent.ctrlKey && nativeEvent.altKey)\n ) {\n if (nativeEvent.char && 1 < nativeEvent.char.length)\n return nativeEvent.char;\n if (nativeEvent.which) return String.fromCharCode(nativeEvent.which);\n }\n return null;\n case \"compositionend\":\n return useFallbackCompositionData && \"ko\" !== nativeEvent.locale\n ? null\n : nativeEvent.data;\n default:\n return null;\n }\n}\nvar supportedInputTypes = {\n color: !0,\n date: !0,\n datetime: !0,\n \"datetime-local\": !0,\n email: !0,\n month: !0,\n number: !0,\n password: !0,\n range: !0,\n search: !0,\n tel: !0,\n text: !0,\n time: !0,\n url: !0,\n week: !0\n};\nfunction isTextInputElement(elem) {\n var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n return \"input\" === nodeName\n ? !!supportedInputTypes[elem.type]\n : \"textarea\" === nodeName\n ? !0\n : !1;\n}\nfunction createAndAccumulateChangeEvent(\n dispatchQueue,\n inst,\n nativeEvent,\n target\n) {\n restoreTarget\n ? restoreQueue\n ? restoreQueue.push(target)\n : (restoreQueue = [target])\n : (restoreTarget = target);\n inst = accumulateTwoPhaseListeners(inst, \"onChange\");\n 0 < inst.length &&\n ((nativeEvent = new SyntheticEvent(\n \"onChange\",\n \"change\",\n null,\n nativeEvent,\n target\n )),\n dispatchQueue.push({ event: nativeEvent, listeners: inst }));\n}\nvar activeElement$1 = null,\n activeElementInst$1 = null;\nfunction runEventInBatch(dispatchQueue) {\n processDispatchQueue(dispatchQueue, 0);\n}\nfunction getInstIfValueChanged(targetInst) {\n var targetNode = getNodeFromInstance(targetInst);\n if (updateValueIfChanged(targetNode)) return targetInst;\n}\nfunction getTargetInstForChangeEvent(domEventName, targetInst) {\n if (\"change\" === domEventName) return targetInst;\n}\nvar isInputEventSupported = !1;\nif (canUseDOM) {\n var JSCompiler_inline_result$jscomp$282;\n if (canUseDOM) {\n var isSupported$jscomp$inline_417 = \"oninput\" in document;\n if (!isSupported$jscomp$inline_417) {\n var element$jscomp$inline_418 = document.createElement(\"div\");\n element$jscomp$inline_418.setAttribute(\"oninput\", \"return;\");\n isSupported$jscomp$inline_417 =\n \"function\" === typeof element$jscomp$inline_418.oninput;\n }\n JSCompiler_inline_result$jscomp$282 = isSupported$jscomp$inline_417;\n } else JSCompiler_inline_result$jscomp$282 = !1;\n isInputEventSupported =\n JSCompiler_inline_result$jscomp$282 &&\n (!document.documentMode || 9 < document.documentMode);\n}\nfunction stopWatchingForValueChange() {\n activeElement$1 &&\n (activeElement$1.detachEvent(\"onpropertychange\", handlePropertyChange),\n (activeElementInst$1 = activeElement$1 = null));\n}\nfunction handlePropertyChange(nativeEvent) {\n if (\n \"value\" === nativeEvent.propertyName &&\n getInstIfValueChanged(activeElementInst$1)\n ) {\n var dispatchQueue = [];\n createAndAccumulateChangeEvent(\n dispatchQueue,\n activeElementInst$1,\n nativeEvent,\n getEventTarget(nativeEvent)\n );\n batchedUpdates$1(runEventInBatch, dispatchQueue);\n }\n}\nfunction handleEventsForInputEventPolyfill(domEventName, target, targetInst) {\n \"focusin\" === domEventName\n ? (stopWatchingForValueChange(),\n (activeElement$1 = target),\n (activeElementInst$1 = targetInst),\n activeElement$1.attachEvent(\"onpropertychange\", handlePropertyChange))\n : \"focusout\" === domEventName && stopWatchingForValueChange();\n}\nfunction getTargetInstForInputEventPolyfill(domEventName) {\n if (\n \"selectionchange\" === domEventName ||\n \"keyup\" === domEventName ||\n \"keydown\" === domEventName\n )\n return getInstIfValueChanged(activeElementInst$1);\n}\nfunction getTargetInstForClickEvent(domEventName, targetInst) {\n if (\"click\" === domEventName) return getInstIfValueChanged(targetInst);\n}\nfunction getTargetInstForInputOrChangeEvent(domEventName, targetInst) {\n if (\"input\" === domEventName || \"change\" === domEventName)\n return getInstIfValueChanged(targetInst);\n}\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is;\nfunction shallowEqual(objA, objB) {\n if (objectIs(objA, objB)) return !0;\n if (\n \"object\" !== typeof objA ||\n null === objA ||\n \"object\" !== typeof objB ||\n null === objB\n )\n return !1;\n var keysA = Object.keys(objA),\n keysB = Object.keys(objB);\n if (keysA.length !== keysB.length) return !1;\n for (keysB = 0; keysB < keysA.length; keysB++) {\n var currentKey = keysA[keysB];\n if (\n !hasOwnProperty.call(objB, currentKey) ||\n !objectIs(objA[currentKey], objB[currentKey])\n )\n return !1;\n }\n return !0;\n}\nfunction getLeafNode(node) {\n for (; node && node.firstChild; ) node = node.firstChild;\n return node;\n}\nfunction getNodeForCharacterOffset(root, offset) {\n var node = getLeafNode(root);\n root = 0;\n for (var nodeEnd; node; ) {\n if (3 === node.nodeType) {\n nodeEnd = root + node.textContent.length;\n if (root <= offset && nodeEnd >= offset)\n return { node: node, offset: offset - root };\n root = nodeEnd;\n }\n a: {\n for (; node; ) {\n if (node.nextSibling) {\n node = node.nextSibling;\n break a;\n }\n node = node.parentNode;\n }\n node = void 0;\n }\n node = getLeafNode(node);\n }\n}\nfunction containsNode(outerNode, innerNode) {\n return outerNode && innerNode\n ? outerNode === innerNode\n ? !0\n : outerNode && 3 === outerNode.nodeType\n ? !1\n : innerNode && 3 === innerNode.nodeType\n ? containsNode(outerNode, innerNode.parentNode)\n : \"contains\" in outerNode\n ? outerNode.contains(innerNode)\n : outerNode.compareDocumentPosition\n ? !!(outerNode.compareDocumentPosition(innerNode) & 16)\n : !1\n : !1;\n}\nfunction getActiveElementDeep(containerInfo) {\n containerInfo =\n null != containerInfo &&\n null != containerInfo.ownerDocument &&\n null != containerInfo.ownerDocument.defaultView\n ? containerInfo.ownerDocument.defaultView\n : window;\n for (\n var element = getActiveElement(containerInfo.document);\n element instanceof containerInfo.HTMLIFrameElement;\n\n ) {\n try {\n var JSCompiler_inline_result =\n \"string\" === typeof element.contentWindow.location.href;\n } catch (err) {\n JSCompiler_inline_result = !1;\n }\n if (JSCompiler_inline_result) containerInfo = element.contentWindow;\n else break;\n element = getActiveElement(containerInfo.document);\n }\n return element;\n}\nfunction hasSelectionCapabilities(elem) {\n var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n return (\n nodeName &&\n ((\"input\" === nodeName &&\n (\"text\" === elem.type ||\n \"search\" === elem.type ||\n \"tel\" === elem.type ||\n \"url\" === elem.type ||\n \"password\" === elem.type)) ||\n \"textarea\" === nodeName ||\n \"true\" === elem.contentEditable)\n );\n}\nvar skipSelectionChangeEvent =\n canUseDOM && \"documentMode\" in document && 11 >= document.documentMode,\n activeElement = null,\n activeElementInst = null,\n lastSelection = null,\n mouseDown = !1;\nfunction constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) {\n var doc =\n nativeEventTarget.window === nativeEventTarget\n ? nativeEventTarget.document\n : 9 === nativeEventTarget.nodeType\n ? nativeEventTarget\n : nativeEventTarget.ownerDocument;\n mouseDown ||\n null == activeElement ||\n activeElement !== getActiveElement(doc) ||\n ((doc = activeElement),\n \"selectionStart\" in doc && hasSelectionCapabilities(doc)\n ? (doc = { start: doc.selectionStart, end: doc.selectionEnd })\n : ((doc = (\n (doc.ownerDocument && doc.ownerDocument.defaultView) ||\n window\n ).getSelection()),\n (doc = {\n anchorNode: doc.anchorNode,\n anchorOffset: doc.anchorOffset,\n focusNode: doc.focusNode,\n focusOffset: doc.focusOffset\n })),\n (lastSelection && shallowEqual(lastSelection, doc)) ||\n ((lastSelection = doc),\n (doc = accumulateTwoPhaseListeners(activeElementInst, \"onSelect\")),\n 0 < doc.length &&\n ((nativeEvent = new SyntheticEvent(\n \"onSelect\",\n \"select\",\n null,\n nativeEvent,\n nativeEventTarget\n )),\n dispatchQueue.push({ event: nativeEvent, listeners: doc }),\n (nativeEvent.target = activeElement))));\n}\nfunction makePrefixMap(styleProp, eventName) {\n var prefixes = {};\n prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();\n prefixes[\"Webkit\" + styleProp] = \"webkit\" + eventName;\n prefixes[\"Moz\" + styleProp] = \"moz\" + eventName;\n return prefixes;\n}\nvar vendorPrefixes = {\n animationend: makePrefixMap(\"Animation\", \"AnimationEnd\"),\n animationiteration: makePrefixMap(\"Animation\", \"AnimationIteration\"),\n animationstart: makePrefixMap(\"Animation\", \"AnimationStart\"),\n transitionrun: makePrefixMap(\"Transition\", \"TransitionRun\"),\n transitionstart: makePrefixMap(\"Transition\", \"TransitionStart\"),\n transitioncancel: makePrefixMap(\"Transition\", \"TransitionCancel\"),\n transitionend: makePrefixMap(\"Transition\", \"TransitionEnd\")\n },\n prefixedEventNames = {},\n style = {};\ncanUseDOM &&\n ((style = document.createElement(\"div\").style),\n \"AnimationEvent\" in window ||\n (delete vendorPrefixes.animationend.animation,\n delete vendorPrefixes.animationiteration.animation,\n delete vendorPrefixes.animationstart.animation),\n \"TransitionEvent\" in window ||\n delete vendorPrefixes.transitionend.transition);\nfunction getVendorPrefixedEventName(eventName) {\n if (prefixedEventNames[eventName]) return prefixedEventNames[eventName];\n if (!vendorPrefixes[eventName]) return eventName;\n var prefixMap = vendorPrefixes[eventName],\n styleProp;\n for (styleProp in prefixMap)\n if (prefixMap.hasOwnProperty(styleProp) && styleProp in style)\n return (prefixedEventNames[eventName] = prefixMap[styleProp]);\n return eventName;\n}\nvar ANIMATION_END = getVendorPrefixedEventName(\"animationend\"),\n ANIMATION_ITERATION = getVendorPrefixedEventName(\"animationiteration\"),\n ANIMATION_START = getVendorPrefixedEventName(\"animationstart\"),\n TRANSITION_RUN = getVendorPrefixedEventName(\"transitionrun\"),\n TRANSITION_START = getVendorPrefixedEventName(\"transitionstart\"),\n TRANSITION_CANCEL = getVendorPrefixedEventName(\"transitioncancel\"),\n TRANSITION_END = getVendorPrefixedEventName(\"transitionend\"),\n topLevelEventsToReactNames = new Map(),\n simpleEventPluginEvents =\n \"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\".split(\n \" \"\n );\nsimpleEventPluginEvents.push(\"scrollEnd\");\nfunction registerSimpleEvent(domEventName, reactName) {\n topLevelEventsToReactNames.set(domEventName, reactName);\n registerTwoPhaseEvent(reactName, [domEventName]);\n}\nvar CapturedStacks = new WeakMap();\nfunction createCapturedValueAtFiber(value, source) {\n if (\"object\" === typeof value && null !== value) {\n var existing = CapturedStacks.get(value);\n if (void 0 !== existing) return existing;\n source = {\n value: value,\n source: source,\n stack: getStackByFiberInDevAndProd(source)\n };\n CapturedStacks.set(value, source);\n return source;\n }\n return {\n value: value,\n source: source,\n stack: getStackByFiberInDevAndProd(source)\n };\n}\nvar concurrentQueues = [],\n concurrentQueuesIndex = 0,\n concurrentlyUpdatedLanes = 0;\nfunction finishQueueingConcurrentUpdates() {\n for (\n var endIndex = concurrentQueuesIndex,\n i = (concurrentlyUpdatedLanes = concurrentQueuesIndex = 0);\n i < endIndex;\n\n ) {\n var fiber = concurrentQueues[i];\n concurrentQueues[i++] = null;\n var queue = concurrentQueues[i];\n concurrentQueues[i++] = null;\n var update = concurrentQueues[i];\n concurrentQueues[i++] = null;\n var lane = concurrentQueues[i];\n concurrentQueues[i++] = null;\n if (null !== queue && null !== update) {\n var pending = queue.pending;\n null === pending\n ? (update.next = update)\n : ((update.next = pending.next), (pending.next = update));\n queue.pending = update;\n }\n 0 !== lane && markUpdateLaneFromFiberToRoot(fiber, update, lane);\n }\n}\nfunction enqueueUpdate$1(fiber, queue, update, lane) {\n concurrentQueues[concurrentQueuesIndex++] = fiber;\n concurrentQueues[concurrentQueuesIndex++] = queue;\n concurrentQueues[concurrentQueuesIndex++] = update;\n concurrentQueues[concurrentQueuesIndex++] = lane;\n concurrentlyUpdatedLanes |= lane;\n fiber.lanes |= lane;\n fiber = fiber.alternate;\n null !== fiber && (fiber.lanes |= lane);\n}\nfunction enqueueConcurrentHookUpdate(fiber, queue, update, lane) {\n enqueueUpdate$1(fiber, queue, update, lane);\n return getRootForUpdatedFiber(fiber);\n}\nfunction enqueueConcurrentRenderForLane(fiber, lane) {\n enqueueUpdate$1(fiber, null, null, lane);\n return getRootForUpdatedFiber(fiber);\n}\nfunction markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) {\n sourceFiber.lanes |= lane;\n var alternate = sourceFiber.alternate;\n null !== alternate && (alternate.lanes |= lane);\n for (var isHidden = !1, parent = sourceFiber.return; null !== parent; )\n (parent.childLanes |= lane),\n (alternate = parent.alternate),\n null !== alternate && (alternate.childLanes |= lane),\n 22 === parent.tag &&\n ((sourceFiber = parent.stateNode),\n null === sourceFiber || sourceFiber._visibility & 1 || (isHidden = !0)),\n (sourceFiber = parent),\n (parent = parent.return);\n return 3 === sourceFiber.tag\n ? ((parent = sourceFiber.stateNode),\n isHidden &&\n null !== update &&\n ((isHidden = 31 - clz32(lane)),\n (sourceFiber = parent.hiddenUpdates),\n (alternate = sourceFiber[isHidden]),\n null === alternate\n ? (sourceFiber[isHidden] = [update])\n : alternate.push(update),\n (update.lane = lane | 536870912)),\n parent)\n : null;\n}\nfunction getRootForUpdatedFiber(sourceFiber) {\n if (50 < nestedUpdateCount)\n throw (\n ((nestedUpdateCount = 0),\n (rootWithNestedUpdates = null),\n Error(formatProdErrorMessage(185)))\n );\n for (var parent = sourceFiber.return; null !== parent; )\n (sourceFiber = parent), (parent = sourceFiber.return);\n return 3 === sourceFiber.tag ? sourceFiber.stateNode : null;\n}\nvar emptyContextObject = {};\nfunction FiberNode(tag, pendingProps, key, mode) {\n this.tag = tag;\n this.key = key;\n this.sibling =\n this.child =\n this.return =\n this.stateNode =\n this.type =\n this.elementType =\n null;\n this.index = 0;\n this.refCleanup = this.ref = null;\n this.pendingProps = pendingProps;\n this.dependencies =\n this.memoizedState =\n this.updateQueue =\n this.memoizedProps =\n null;\n this.mode = mode;\n this.subtreeFlags = this.flags = 0;\n this.deletions = null;\n this.childLanes = this.lanes = 0;\n this.alternate = null;\n}\nfunction createFiberImplClass(tag, pendingProps, key, mode) {\n return new FiberNode(tag, pendingProps, key, mode);\n}\nfunction shouldConstruct(Component) {\n Component = Component.prototype;\n return !(!Component || !Component.isReactComponent);\n}\nfunction createWorkInProgress(current, pendingProps) {\n var workInProgress = current.alternate;\n null === workInProgress\n ? ((workInProgress = createFiberImplClass(\n current.tag,\n pendingProps,\n current.key,\n current.mode\n )),\n (workInProgress.elementType = current.elementType),\n (workInProgress.type = current.type),\n (workInProgress.stateNode = current.stateNode),\n (workInProgress.alternate = current),\n (current.alternate = workInProgress))\n : ((workInProgress.pendingProps = pendingProps),\n (workInProgress.type = current.type),\n (workInProgress.flags = 0),\n (workInProgress.subtreeFlags = 0),\n (workInProgress.deletions = null));\n workInProgress.flags = current.flags & 65011712;\n workInProgress.childLanes = current.childLanes;\n workInProgress.lanes = current.lanes;\n workInProgress.child = current.child;\n workInProgress.memoizedProps = current.memoizedProps;\n workInProgress.memoizedState = current.memoizedState;\n workInProgress.updateQueue = current.updateQueue;\n pendingProps = current.dependencies;\n workInProgress.dependencies =\n null === pendingProps\n ? null\n : { lanes: pendingProps.lanes, firstContext: pendingProps.firstContext };\n workInProgress.sibling = current.sibling;\n workInProgress.index = current.index;\n workInProgress.ref = current.ref;\n workInProgress.refCleanup = current.refCleanup;\n return workInProgress;\n}\nfunction resetWorkInProgress(workInProgress, renderLanes) {\n workInProgress.flags &= 65011714;\n var current = workInProgress.alternate;\n null === current\n ? ((workInProgress.childLanes = 0),\n (workInProgress.lanes = renderLanes),\n (workInProgress.child = null),\n (workInProgress.subtreeFlags = 0),\n (workInProgress.memoizedProps = null),\n (workInProgress.memoizedState = null),\n (workInProgress.updateQueue = null),\n (workInProgress.dependencies = null),\n (workInProgress.stateNode = null))\n : ((workInProgress.childLanes = current.childLanes),\n (workInProgress.lanes = current.lanes),\n (workInProgress.child = current.child),\n (workInProgress.subtreeFlags = 0),\n (workInProgress.deletions = null),\n (workInProgress.memoizedProps = current.memoizedProps),\n (workInProgress.memoizedState = current.memoizedState),\n (workInProgress.updateQueue = current.updateQueue),\n (workInProgress.type = current.type),\n (renderLanes = current.dependencies),\n (workInProgress.dependencies =\n null === renderLanes\n ? null\n : {\n lanes: renderLanes.lanes,\n firstContext: renderLanes.firstContext\n }));\n return workInProgress;\n}\nfunction createFiberFromTypeAndProps(\n type,\n key,\n pendingProps,\n owner,\n mode,\n lanes\n) {\n var fiberTag = 0;\n owner = type;\n if (\"function\" === typeof type) shouldConstruct(type) && (fiberTag = 1);\n else if (\"string\" === typeof type)\n fiberTag = isHostHoistableType(\n type,\n pendingProps,\n contextStackCursor.current\n )\n ? 26\n : \"html\" === type || \"head\" === type || \"body\" === type\n ? 27\n : 5;\n else\n a: switch (type) {\n case REACT_ACTIVITY_TYPE:\n return (\n (type = createFiberImplClass(31, pendingProps, key, mode)),\n (type.elementType = REACT_ACTIVITY_TYPE),\n (type.lanes = lanes),\n type\n );\n case REACT_FRAGMENT_TYPE:\n return createFiberFromFragment(pendingProps.children, mode, lanes, key);\n case REACT_STRICT_MODE_TYPE:\n fiberTag = 8;\n mode |= 24;\n break;\n case REACT_PROFILER_TYPE:\n return (\n (type = createFiberImplClass(12, pendingProps, key, mode | 2)),\n (type.elementType = REACT_PROFILER_TYPE),\n (type.lanes = lanes),\n type\n );\n case REACT_SUSPENSE_TYPE:\n return (\n (type = createFiberImplClass(13, pendingProps, key, mode)),\n (type.elementType = REACT_SUSPENSE_TYPE),\n (type.lanes = lanes),\n type\n );\n case REACT_SUSPENSE_LIST_TYPE:\n return (\n (type = createFiberImplClass(19, pendingProps, key, mode)),\n (type.elementType = REACT_SUSPENSE_LIST_TYPE),\n (type.lanes = lanes),\n type\n );\n default:\n if (\"object\" === typeof type && null !== type)\n switch (type.$$typeof) {\n case REACT_PROVIDER_TYPE:\n case REACT_CONTEXT_TYPE:\n fiberTag = 10;\n break a;\n case REACT_CONSUMER_TYPE:\n fiberTag = 9;\n break a;\n case REACT_FORWARD_REF_TYPE:\n fiberTag = 11;\n break a;\n case REACT_MEMO_TYPE:\n fiberTag = 14;\n break a;\n case REACT_LAZY_TYPE:\n fiberTag = 16;\n owner = null;\n break a;\n }\n fiberTag = 29;\n pendingProps = Error(\n formatProdErrorMessage(130, null === type ? \"null\" : typeof type, \"\")\n );\n owner = null;\n }\n key = createFiberImplClass(fiberTag, pendingProps, key, mode);\n key.elementType = type;\n key.type = owner;\n key.lanes = lanes;\n return key;\n}\nfunction createFiberFromFragment(elements, mode, lanes, key) {\n elements = createFiberImplClass(7, elements, key, mode);\n elements.lanes = lanes;\n return elements;\n}\nfunction createFiberFromText(content, mode, lanes) {\n content = createFiberImplClass(6, content, null, mode);\n content.lanes = lanes;\n return content;\n}\nfunction createFiberFromPortal(portal, mode, lanes) {\n mode = createFiberImplClass(\n 4,\n null !== portal.children ? portal.children : [],\n portal.key,\n mode\n );\n mode.lanes = lanes;\n mode.stateNode = {\n containerInfo: portal.containerInfo,\n pendingChildren: null,\n implementation: portal.implementation\n };\n return mode;\n}\nvar forkStack = [],\n forkStackIndex = 0,\n treeForkProvider = null,\n treeForkCount = 0,\n idStack = [],\n idStackIndex = 0,\n treeContextProvider = null,\n treeContextId = 1,\n treeContextOverflow = \"\";\nfunction pushTreeFork(workInProgress, totalChildren) {\n forkStack[forkStackIndex++] = treeForkCount;\n forkStack[forkStackIndex++] = treeForkProvider;\n treeForkProvider = workInProgress;\n treeForkCount = totalChildren;\n}\nfunction pushTreeId(workInProgress, totalChildren, index) {\n idStack[idStackIndex++] = treeContextId;\n idStack[idStackIndex++] = treeContextOverflow;\n idStack[idStackIndex++] = treeContextProvider;\n treeContextProvider = workInProgress;\n var baseIdWithLeadingBit = treeContextId;\n workInProgress = treeContextOverflow;\n var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;\n baseIdWithLeadingBit &= ~(1 << baseLength);\n index += 1;\n var length = 32 - clz32(totalChildren) + baseLength;\n if (30 < length) {\n var numberOfOverflowBits = baseLength - (baseLength % 5);\n length = (\n baseIdWithLeadingBit &\n ((1 << numberOfOverflowBits) - 1)\n ).toString(32);\n baseIdWithLeadingBit >>= numberOfOverflowBits;\n baseLength -= numberOfOverflowBits;\n treeContextId =\n (1 << (32 - clz32(totalChildren) + baseLength)) |\n (index << baseLength) |\n baseIdWithLeadingBit;\n treeContextOverflow = length + workInProgress;\n } else\n (treeContextId =\n (1 << length) | (index << baseLength) | baseIdWithLeadingBit),\n (treeContextOverflow = workInProgress);\n}\nfunction pushMaterializedTreeId(workInProgress) {\n null !== workInProgress.return &&\n (pushTreeFork(workInProgress, 1), pushTreeId(workInProgress, 1, 0));\n}\nfunction popTreeContext(workInProgress) {\n for (; workInProgress === treeForkProvider; )\n (treeForkProvider = forkStack[--forkStackIndex]),\n (forkStack[forkStackIndex] = null),\n (treeForkCount = forkStack[--forkStackIndex]),\n (forkStack[forkStackIndex] = null);\n for (; workInProgress === treeContextProvider; )\n (treeContextProvider = idStack[--idStackIndex]),\n (idStack[idStackIndex] = null),\n (treeContextOverflow = idStack[--idStackIndex]),\n (idStack[idStackIndex] = null),\n (treeContextId = idStack[--idStackIndex]),\n (idStack[idStackIndex] = null);\n}\nvar hydrationParentFiber = null,\n nextHydratableInstance = null,\n isHydrating = !1,\n hydrationErrors = null,\n rootOrSingletonContext = !1,\n HydrationMismatchException = Error(formatProdErrorMessage(519));\nfunction throwOnHydrationMismatch(fiber) {\n var error = Error(formatProdErrorMessage(418, \"\"));\n queueHydrationError(createCapturedValueAtFiber(error, fiber));\n throw HydrationMismatchException;\n}\nfunction prepareToHydrateHostInstance(fiber) {\n var instance = fiber.stateNode,\n type = fiber.type,\n props = fiber.memoizedProps;\n instance[internalInstanceKey] = fiber;\n instance[internalPropsKey] = props;\n switch (type) {\n case \"dialog\":\n listenToNonDelegatedEvent(\"cancel\", instance);\n listenToNonDelegatedEvent(\"close\", instance);\n break;\n case \"iframe\":\n case \"object\":\n case \"embed\":\n listenToNonDelegatedEvent(\"load\", instance);\n break;\n case \"video\":\n case \"audio\":\n for (type = 0; type < mediaEventTypes.length; type++)\n listenToNonDelegatedEvent(mediaEventTypes[type], instance);\n break;\n case \"source\":\n listenToNonDelegatedEvent(\"error\", instance);\n break;\n case \"img\":\n case \"image\":\n case \"link\":\n listenToNonDelegatedEvent(\"error\", instance);\n listenToNonDelegatedEvent(\"load\", instance);\n break;\n case \"details\":\n listenToNonDelegatedEvent(\"toggle\", instance);\n break;\n case \"input\":\n listenToNonDelegatedEvent(\"invalid\", instance);\n initInput(\n instance,\n props.value,\n props.defaultValue,\n props.checked,\n props.defaultChecked,\n props.type,\n props.name,\n !0\n );\n track(instance);\n break;\n case \"select\":\n listenToNonDelegatedEvent(\"invalid\", instance);\n break;\n case \"textarea\":\n listenToNonDelegatedEvent(\"invalid\", instance),\n initTextarea(instance, props.value, props.defaultValue, props.children),\n track(instance);\n }\n type = props.children;\n (\"string\" !== typeof type &&\n \"number\" !== typeof type &&\n \"bigint\" !== typeof type) ||\n instance.textContent === \"\" + type ||\n !0 === props.suppressHydrationWarning ||\n checkForUnmatchedText(instance.textContent, type)\n ? (null != props.popover &&\n (listenToNonDelegatedEvent(\"beforetoggle\", instance),\n listenToNonDelegatedEvent(\"toggle\", instance)),\n null != props.onScroll && listenToNonDelegatedEvent(\"scroll\", instance),\n null != props.onScrollEnd &&\n listenToNonDelegatedEvent(\"scrollend\", instance),\n null != props.onClick && (instance.onclick = noop$1),\n (instance = !0))\n : (instance = !1);\n instance || throwOnHydrationMismatch(fiber);\n}\nfunction popToNextHostParent(fiber) {\n for (hydrationParentFiber = fiber.return; hydrationParentFiber; )\n switch (hydrationParentFiber.tag) {\n case 5:\n case 13:\n rootOrSingletonContext = !1;\n return;\n case 27:\n case 3:\n rootOrSingletonContext = !0;\n return;\n default:\n hydrationParentFiber = hydrationParentFiber.return;\n }\n}\nfunction popHydrationState(fiber) {\n if (fiber !== hydrationParentFiber) return !1;\n if (!isHydrating) return popToNextHostParent(fiber), (isHydrating = !0), !1;\n var tag = fiber.tag,\n JSCompiler_temp;\n if ((JSCompiler_temp = 3 !== tag && 27 !== tag)) {\n if ((JSCompiler_temp = 5 === tag))\n (JSCompiler_temp = fiber.type),\n (JSCompiler_temp =\n !(\"form\" !== JSCompiler_temp && \"button\" !== JSCompiler_temp) ||\n shouldSetTextContent(fiber.type, fiber.memoizedProps));\n JSCompiler_temp = !JSCompiler_temp;\n }\n JSCompiler_temp && nextHydratableInstance && throwOnHydrationMismatch(fiber);\n popToNextHostParent(fiber);\n if (13 === tag) {\n fiber = fiber.memoizedState;\n fiber = null !== fiber ? fiber.dehydrated : null;\n if (!fiber) throw Error(formatProdErrorMessage(317));\n a: {\n fiber = fiber.nextSibling;\n for (tag = 0; fiber; ) {\n if (8 === fiber.nodeType)\n if (((JSCompiler_temp = fiber.data), \"/$\" === JSCompiler_temp)) {\n if (0 === tag) {\n nextHydratableInstance = getNextHydratable(fiber.nextSibling);\n break a;\n }\n tag--;\n } else\n (\"$\" !== JSCompiler_temp &&\n \"$!\" !== JSCompiler_temp &&\n \"$?\" !== JSCompiler_temp) ||\n tag++;\n fiber = fiber.nextSibling;\n }\n nextHydratableInstance = null;\n }\n } else\n 27 === tag\n ? ((tag = nextHydratableInstance),\n isSingletonScope(fiber.type)\n ? ((fiber = previousHydratableOnEnteringScopedSingleton),\n (previousHydratableOnEnteringScopedSingleton = null),\n (nextHydratableInstance = fiber))\n : (nextHydratableInstance = tag))\n : (nextHydratableInstance = hydrationParentFiber\n ? getNextHydratable(fiber.stateNode.nextSibling)\n : null);\n return !0;\n}\nfunction resetHydrationState() {\n nextHydratableInstance = hydrationParentFiber = null;\n isHydrating = !1;\n}\nfunction upgradeHydrationErrorsToRecoverable() {\n var queuedErrors = hydrationErrors;\n null !== queuedErrors &&\n (null === workInProgressRootRecoverableErrors\n ? (workInProgressRootRecoverableErrors = queuedErrors)\n : workInProgressRootRecoverableErrors.push.apply(\n workInProgressRootRecoverableErrors,\n queuedErrors\n ),\n (hydrationErrors = null));\n return queuedErrors;\n}\nfunction queueHydrationError(error) {\n null === hydrationErrors\n ? (hydrationErrors = [error])\n : hydrationErrors.push(error);\n}\nvar valueCursor = createCursor(null),\n currentlyRenderingFiber$1 = null,\n lastContextDependency = null;\nfunction pushProvider(providerFiber, context, nextValue) {\n push(valueCursor, context._currentValue);\n context._currentValue = nextValue;\n}\nfunction popProvider(context) {\n context._currentValue = valueCursor.current;\n pop(valueCursor);\n}\nfunction scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) {\n for (; null !== parent; ) {\n var alternate = parent.alternate;\n (parent.childLanes & renderLanes) !== renderLanes\n ? ((parent.childLanes |= renderLanes),\n null !== alternate && (alternate.childLanes |= renderLanes))\n : null !== alternate &&\n (alternate.childLanes & renderLanes) !== renderLanes &&\n (alternate.childLanes |= renderLanes);\n if (parent === propagationRoot) break;\n parent = parent.return;\n }\n}\nfunction propagateContextChanges(\n workInProgress,\n contexts,\n renderLanes,\n forcePropagateEntireTree\n) {\n var fiber = workInProgress.child;\n null !== fiber && (fiber.return = workInProgress);\n for (; null !== fiber; ) {\n var list = fiber.dependencies;\n if (null !== list) {\n var nextFiber = fiber.child;\n list = list.firstContext;\n a: for (; null !== list; ) {\n var dependency = list;\n list = fiber;\n for (var i = 0; i < contexts.length; i++)\n if (dependency.context === contexts[i]) {\n list.lanes |= renderLanes;\n dependency = list.alternate;\n null !== dependency && (dependency.lanes |= renderLanes);\n scheduleContextWorkOnParentPath(\n list.return,\n renderLanes,\n workInProgress\n );\n forcePropagateEntireTree || (nextFiber = null);\n break a;\n }\n list = dependency.next;\n }\n } else if (18 === fiber.tag) {\n nextFiber = fiber.return;\n if (null === nextFiber) throw Error(formatProdErrorMessage(341));\n nextFiber.lanes |= renderLanes;\n list = nextFiber.alternate;\n null !== list && (list.lanes |= renderLanes);\n scheduleContextWorkOnParentPath(nextFiber, renderLanes, workInProgress);\n nextFiber = null;\n } else nextFiber = fiber.child;\n if (null !== nextFiber) nextFiber.return = fiber;\n else\n for (nextFiber = fiber; null !== nextFiber; ) {\n if (nextFiber === workInProgress) {\n nextFiber = null;\n break;\n }\n fiber = nextFiber.sibling;\n if (null !== fiber) {\n fiber.return = nextFiber.return;\n nextFiber = fiber;\n break;\n }\n nextFiber = nextFiber.return;\n }\n fiber = nextFiber;\n }\n}\nfunction propagateParentContextChanges(\n current,\n workInProgress,\n renderLanes,\n forcePropagateEntireTree\n) {\n current = null;\n for (\n var parent = workInProgress, isInsidePropagationBailout = !1;\n null !== parent;\n\n ) {\n if (!isInsidePropagationBailout)\n if (0 !== (parent.flags & 524288)) isInsidePropagationBailout = !0;\n else if (0 !== (parent.flags & 262144)) break;\n if (10 === parent.tag) {\n var currentParent = parent.alternate;\n if (null === currentParent) throw Error(formatProdErrorMessage(387));\n currentParent = currentParent.memoizedProps;\n if (null !== currentParent) {\n var context = parent.type;\n objectIs(parent.pendingProps.value, currentParent.value) ||\n (null !== current ? current.push(context) : (current = [context]));\n }\n } else if (parent === hostTransitionProviderCursor.current) {\n currentParent = parent.alternate;\n if (null === currentParent) throw Error(formatProdErrorMessage(387));\n currentParent.memoizedState.memoizedState !==\n parent.memoizedState.memoizedState &&\n (null !== current\n ? current.push(HostTransitionContext)\n : (current = [HostTransitionContext]));\n }\n parent = parent.return;\n }\n null !== current &&\n propagateContextChanges(\n workInProgress,\n current,\n renderLanes,\n forcePropagateEntireTree\n );\n workInProgress.flags |= 262144;\n}\nfunction checkIfContextChanged(currentDependencies) {\n for (\n currentDependencies = currentDependencies.firstContext;\n null !== currentDependencies;\n\n ) {\n if (\n !objectIs(\n currentDependencies.context._currentValue,\n currentDependencies.memoizedValue\n )\n )\n return !0;\n currentDependencies = currentDependencies.next;\n }\n return !1;\n}\nfunction prepareToReadContext(workInProgress) {\n currentlyRenderingFiber$1 = workInProgress;\n lastContextDependency = null;\n workInProgress = workInProgress.dependencies;\n null !== workInProgress && (workInProgress.firstContext = null);\n}\nfunction readContext(context) {\n return readContextForConsumer(currentlyRenderingFiber$1, context);\n}\nfunction readContextDuringReconciliation(consumer, context) {\n null === currentlyRenderingFiber$1 && prepareToReadContext(consumer);\n return readContextForConsumer(consumer, context);\n}\nfunction readContextForConsumer(consumer, context) {\n var value = context._currentValue;\n context = { context: context, memoizedValue: value, next: null };\n if (null === lastContextDependency) {\n if (null === consumer) throw Error(formatProdErrorMessage(308));\n lastContextDependency = context;\n consumer.dependencies = { lanes: 0, firstContext: context };\n consumer.flags |= 524288;\n } else lastContextDependency = lastContextDependency.next = context;\n return value;\n}\nvar AbortControllerLocal =\n \"undefined\" !== typeof AbortController\n ? AbortController\n : function () {\n var listeners = [],\n signal = (this.signal = {\n aborted: !1,\n addEventListener: function (type, listener) {\n listeners.push(listener);\n }\n });\n this.abort = function () {\n signal.aborted = !0;\n listeners.forEach(function (listener) {\n return listener();\n });\n };\n },\n scheduleCallback$2 = Scheduler.unstable_scheduleCallback,\n NormalPriority = Scheduler.unstable_NormalPriority,\n CacheContext = {\n $$typeof: REACT_CONTEXT_TYPE,\n Consumer: null,\n Provider: null,\n _currentValue: null,\n _currentValue2: null,\n _threadCount: 0\n };\nfunction createCache() {\n return {\n controller: new AbortControllerLocal(),\n data: new Map(),\n refCount: 0\n };\n}\nfunction releaseCache(cache) {\n cache.refCount--;\n 0 === cache.refCount &&\n scheduleCallback$2(NormalPriority, function () {\n cache.controller.abort();\n });\n}\nvar currentEntangledListeners = null,\n currentEntangledPendingCount = 0,\n currentEntangledLane = 0,\n currentEntangledActionThenable = null;\nfunction entangleAsyncAction(transition, thenable) {\n if (null === currentEntangledListeners) {\n var entangledListeners = (currentEntangledListeners = []);\n currentEntangledPendingCount = 0;\n currentEntangledLane = requestTransitionLane();\n currentEntangledActionThenable = {\n status: \"pending\",\n value: void 0,\n then: function (resolve) {\n entangledListeners.push(resolve);\n }\n };\n }\n currentEntangledPendingCount++;\n thenable.then(pingEngtangledActionScope, pingEngtangledActionScope);\n return thenable;\n}\nfunction pingEngtangledActionScope() {\n if (\n 0 === --currentEntangledPendingCount &&\n null !== currentEntangledListeners\n ) {\n null !== currentEntangledActionThenable &&\n (currentEntangledActionThenable.status = \"fulfilled\");\n var listeners = currentEntangledListeners;\n currentEntangledListeners = null;\n currentEntangledLane = 0;\n currentEntangledActionThenable = null;\n for (var i = 0; i < listeners.length; i++) (0, listeners[i])();\n }\n}\nfunction chainThenableValue(thenable, result) {\n var listeners = [],\n thenableWithOverride = {\n status: \"pending\",\n value: null,\n reason: null,\n then: function (resolve) {\n listeners.push(resolve);\n }\n };\n thenable.then(\n function () {\n thenableWithOverride.status = \"fulfilled\";\n thenableWithOverride.value = result;\n for (var i = 0; i < listeners.length; i++) (0, listeners[i])(result);\n },\n function (error) {\n thenableWithOverride.status = \"rejected\";\n thenableWithOverride.reason = error;\n for (error = 0; error < listeners.length; error++)\n (0, listeners[error])(void 0);\n }\n );\n return thenableWithOverride;\n}\nvar prevOnStartTransitionFinish = ReactSharedInternals.S;\nReactSharedInternals.S = function (transition, returnValue) {\n \"object\" === typeof returnValue &&\n null !== returnValue &&\n \"function\" === typeof returnValue.then &&\n entangleAsyncAction(transition, returnValue);\n null !== prevOnStartTransitionFinish &&\n prevOnStartTransitionFinish(transition, returnValue);\n};\nvar resumedCache = createCursor(null);\nfunction peekCacheFromPool() {\n var cacheResumedFromPreviousRender = resumedCache.current;\n return null !== cacheResumedFromPreviousRender\n ? cacheResumedFromPreviousRender\n : workInProgressRoot.pooledCache;\n}\nfunction pushTransition(offscreenWorkInProgress, prevCachePool) {\n null === prevCachePool\n ? push(resumedCache, resumedCache.current)\n : push(resumedCache, prevCachePool.pool);\n}\nfunction getSuspendedCache() {\n var cacheFromPool = peekCacheFromPool();\n return null === cacheFromPool\n ? null\n : { parent: CacheContext._currentValue, pool: cacheFromPool };\n}\nvar SuspenseException = Error(formatProdErrorMessage(460)),\n SuspenseyCommitException = Error(formatProdErrorMessage(474)),\n SuspenseActionException = Error(formatProdErrorMessage(542)),\n noopSuspenseyCommitThenable = { then: function () {} };\nfunction isThenableResolved(thenable) {\n thenable = thenable.status;\n return \"fulfilled\" === thenable || \"rejected\" === thenable;\n}\nfunction noop$3() {}\nfunction trackUsedThenable(thenableState, thenable, index) {\n index = thenableState[index];\n void 0 === index\n ? thenableState.push(thenable)\n : index !== thenable && (thenable.then(noop$3, noop$3), (thenable = index));\n switch (thenable.status) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw (\n ((thenableState = thenable.reason),\n checkIfUseWrappedInAsyncCatch(thenableState),\n thenableState)\n );\n default:\n if (\"string\" === typeof thenable.status) thenable.then(noop$3, noop$3);\n else {\n thenableState = workInProgressRoot;\n if (null !== thenableState && 100 < thenableState.shellSuspendCounter)\n throw Error(formatProdErrorMessage(482));\n thenableState = thenable;\n thenableState.status = \"pending\";\n thenableState.then(\n function (fulfilledValue) {\n if (\"pending\" === thenable.status) {\n var fulfilledThenable = thenable;\n fulfilledThenable.status = \"fulfilled\";\n fulfilledThenable.value = fulfilledValue;\n }\n },\n function (error) {\n if (\"pending\" === thenable.status) {\n var rejectedThenable = thenable;\n rejectedThenable.status = \"rejected\";\n rejectedThenable.reason = error;\n }\n }\n );\n }\n switch (thenable.status) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw (\n ((thenableState = thenable.reason),\n checkIfUseWrappedInAsyncCatch(thenableState),\n thenableState)\n );\n }\n suspendedThenable = thenable;\n throw SuspenseException;\n }\n}\nvar suspendedThenable = null;\nfunction getSuspendedThenable() {\n if (null === suspendedThenable) throw Error(formatProdErrorMessage(459));\n var thenable = suspendedThenable;\n suspendedThenable = null;\n return thenable;\n}\nfunction checkIfUseWrappedInAsyncCatch(rejectedReason) {\n if (\n rejectedReason === SuspenseException ||\n rejectedReason === SuspenseActionException\n )\n throw Error(formatProdErrorMessage(483));\n}\nvar hasForceUpdate = !1;\nfunction initializeUpdateQueue(fiber) {\n fiber.updateQueue = {\n baseState: fiber.memoizedState,\n firstBaseUpdate: null,\n lastBaseUpdate: null,\n shared: { pending: null, lanes: 0, hiddenCallbacks: null },\n callbacks: null\n };\n}\nfunction cloneUpdateQueue(current, workInProgress) {\n current = current.updateQueue;\n workInProgress.updateQueue === current &&\n (workInProgress.updateQueue = {\n baseState: current.baseState,\n firstBaseUpdate: current.firstBaseUpdate,\n lastBaseUpdate: current.lastBaseUpdate,\n shared: current.shared,\n callbacks: null\n });\n}\nfunction createUpdate(lane) {\n return { lane: lane, tag: 0, payload: null, callback: null, next: null };\n}\nfunction enqueueUpdate(fiber, update, lane) {\n var updateQueue = fiber.updateQueue;\n if (null === updateQueue) return null;\n updateQueue = updateQueue.shared;\n if (0 !== (executionContext & 2)) {\n var pending = updateQueue.pending;\n null === pending\n ? (update.next = update)\n : ((update.next = pending.next), (pending.next = update));\n updateQueue.pending = update;\n update = getRootForUpdatedFiber(fiber);\n markUpdateLaneFromFiberToRoot(fiber, null, lane);\n return update;\n }\n enqueueUpdate$1(fiber, updateQueue, update, lane);\n return getRootForUpdatedFiber(fiber);\n}\nfunction entangleTransitions(root, fiber, lane) {\n fiber = fiber.updateQueue;\n if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194048))) {\n var queueLanes = fiber.lanes;\n queueLanes &= root.pendingLanes;\n lane |= queueLanes;\n fiber.lanes = lane;\n markRootEntangled(root, lane);\n }\n}\nfunction enqueueCapturedUpdate(workInProgress, capturedUpdate) {\n var queue = workInProgress.updateQueue,\n current = workInProgress.alternate;\n if (\n null !== current &&\n ((current = current.updateQueue), queue === current)\n ) {\n var newFirst = null,\n newLast = null;\n queue = queue.firstBaseUpdate;\n if (null !== queue) {\n do {\n var clone = {\n lane: queue.lane,\n tag: queue.tag,\n payload: queue.payload,\n callback: null,\n next: null\n };\n null === newLast\n ? (newFirst = newLast = clone)\n : (newLast = newLast.next = clone);\n queue = queue.next;\n } while (null !== queue);\n null === newLast\n ? (newFirst = newLast = capturedUpdate)\n : (newLast = newLast.next = capturedUpdate);\n } else newFirst = newLast = capturedUpdate;\n queue = {\n baseState: current.baseState,\n firstBaseUpdate: newFirst,\n lastBaseUpdate: newLast,\n shared: current.shared,\n callbacks: current.callbacks\n };\n workInProgress.updateQueue = queue;\n return;\n }\n workInProgress = queue.lastBaseUpdate;\n null === workInProgress\n ? (queue.firstBaseUpdate = capturedUpdate)\n : (workInProgress.next = capturedUpdate);\n queue.lastBaseUpdate = capturedUpdate;\n}\nvar didReadFromEntangledAsyncAction = !1;\nfunction suspendIfUpdateReadFromEntangledAsyncAction() {\n if (didReadFromEntangledAsyncAction) {\n var entangledActionThenable = currentEntangledActionThenable;\n if (null !== entangledActionThenable) throw entangledActionThenable;\n }\n}\nfunction processUpdateQueue(\n workInProgress$jscomp$0,\n props,\n instance$jscomp$0,\n renderLanes\n) {\n didReadFromEntangledAsyncAction = !1;\n var queue = workInProgress$jscomp$0.updateQueue;\n hasForceUpdate = !1;\n var firstBaseUpdate = queue.firstBaseUpdate,\n lastBaseUpdate = queue.lastBaseUpdate,\n pendingQueue = queue.shared.pending;\n if (null !== pendingQueue) {\n queue.shared.pending = null;\n var lastPendingUpdate = pendingQueue,\n firstPendingUpdate = lastPendingUpdate.next;\n lastPendingUpdate.next = null;\n null === lastBaseUpdate\n ? (firstBaseUpdate = firstPendingUpdate)\n : (lastBaseUpdate.next = firstPendingUpdate);\n lastBaseUpdate = lastPendingUpdate;\n var current = workInProgress$jscomp$0.alternate;\n null !== current &&\n ((current = current.updateQueue),\n (pendingQueue = current.lastBaseUpdate),\n pendingQueue !== lastBaseUpdate &&\n (null === pendingQueue\n ? (current.firstBaseUpdate = firstPendingUpdate)\n : (pendingQueue.next = firstPendingUpdate),\n (current.lastBaseUpdate = lastPendingUpdate)));\n }\n if (null !== firstBaseUpdate) {\n var newState = queue.baseState;\n lastBaseUpdate = 0;\n current = firstPendingUpdate = lastPendingUpdate = null;\n pendingQueue = firstBaseUpdate;\n do {\n var updateLane = pendingQueue.lane & -536870913,\n isHiddenUpdate = updateLane !== pendingQueue.lane;\n if (\n isHiddenUpdate\n ? (workInProgressRootRenderLanes & updateLane) === updateLane\n : (renderLanes & updateLane) === updateLane\n ) {\n 0 !== updateLane &&\n updateLane === currentEntangledLane &&\n (didReadFromEntangledAsyncAction = !0);\n null !== current &&\n (current = current.next =\n {\n lane: 0,\n tag: pendingQueue.tag,\n payload: pendingQueue.payload,\n callback: null,\n next: null\n });\n a: {\n var workInProgress = workInProgress$jscomp$0,\n update = pendingQueue;\n updateLane = props;\n var instance = instance$jscomp$0;\n switch (update.tag) {\n case 1:\n workInProgress = update.payload;\n if (\"function\" === typeof workInProgress) {\n newState = workInProgress.call(instance, newState, updateLane);\n break a;\n }\n newState = workInProgress;\n break a;\n case 3:\n workInProgress.flags = (workInProgress.flags & -65537) | 128;\n case 0:\n workInProgress = update.payload;\n updateLane =\n \"function\" === typeof workInProgress\n ? workInProgress.call(instance, newState, updateLane)\n : workInProgress;\n if (null === updateLane || void 0 === updateLane) break a;\n newState = assign({}, newState, updateLane);\n break a;\n case 2:\n hasForceUpdate = !0;\n }\n }\n updateLane = pendingQueue.callback;\n null !== updateLane &&\n ((workInProgress$jscomp$0.flags |= 64),\n isHiddenUpdate && (workInProgress$jscomp$0.flags |= 8192),\n (isHiddenUpdate = queue.callbacks),\n null === isHiddenUpdate\n ? (queue.callbacks = [updateLane])\n : isHiddenUpdate.push(updateLane));\n } else\n (isHiddenUpdate = {\n lane: updateLane,\n tag: pendingQueue.tag,\n payload: pendingQueue.payload,\n callback: pendingQueue.callback,\n next: null\n }),\n null === current\n ? ((firstPendingUpdate = current = isHiddenUpdate),\n (lastPendingUpdate = newState))\n : (current = current.next = isHiddenUpdate),\n (lastBaseUpdate |= updateLane);\n pendingQueue = pendingQueue.next;\n if (null === pendingQueue)\n if (((pendingQueue = queue.shared.pending), null === pendingQueue))\n break;\n else\n (isHiddenUpdate = pendingQueue),\n (pendingQueue = isHiddenUpdate.next),\n (isHiddenUpdate.next = null),\n (queue.lastBaseUpdate = isHiddenUpdate),\n (queue.shared.pending = null);\n } while (1);\n null === current && (lastPendingUpdate = newState);\n queue.baseState = lastPendingUpdate;\n queue.firstBaseUpdate = firstPendingUpdate;\n queue.lastBaseUpdate = current;\n null === firstBaseUpdate && (queue.shared.lanes = 0);\n workInProgressRootSkippedLanes |= lastBaseUpdate;\n workInProgress$jscomp$0.lanes = lastBaseUpdate;\n workInProgress$jscomp$0.memoizedState = newState;\n }\n}\nfunction callCallback(callback, context) {\n if (\"function\" !== typeof callback)\n throw Error(formatProdErrorMessage(191, callback));\n callback.call(context);\n}\nfunction commitCallbacks(updateQueue, context) {\n var callbacks = updateQueue.callbacks;\n if (null !== callbacks)\n for (\n updateQueue.callbacks = null, updateQueue = 0;\n updateQueue < callbacks.length;\n updateQueue++\n )\n callCallback(callbacks[updateQueue], context);\n}\nvar currentTreeHiddenStackCursor = createCursor(null),\n prevEntangledRenderLanesCursor = createCursor(0);\nfunction pushHiddenContext(fiber, context) {\n fiber = entangledRenderLanes;\n push(prevEntangledRenderLanesCursor, fiber);\n push(currentTreeHiddenStackCursor, context);\n entangledRenderLanes = fiber | context.baseLanes;\n}\nfunction reuseHiddenContextOnStack() {\n push(prevEntangledRenderLanesCursor, entangledRenderLanes);\n push(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current);\n}\nfunction popHiddenContext() {\n entangledRenderLanes = prevEntangledRenderLanesCursor.current;\n pop(currentTreeHiddenStackCursor);\n pop(prevEntangledRenderLanesCursor);\n}\nvar renderLanes = 0,\n currentlyRenderingFiber = null,\n currentHook = null,\n workInProgressHook = null,\n didScheduleRenderPhaseUpdate = !1,\n didScheduleRenderPhaseUpdateDuringThisPass = !1,\n shouldDoubleInvokeUserFnsInHooksDEV = !1,\n localIdCounter = 0,\n thenableIndexCounter$1 = 0,\n thenableState$1 = null,\n globalClientIdCounter = 0;\nfunction throwInvalidHookError() {\n throw Error(formatProdErrorMessage(321));\n}\nfunction areHookInputsEqual(nextDeps, prevDeps) {\n if (null === prevDeps) return !1;\n for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++)\n if (!objectIs(nextDeps[i], prevDeps[i])) return !1;\n return !0;\n}\nfunction renderWithHooks(\n current,\n workInProgress,\n Component,\n props,\n secondArg,\n nextRenderLanes\n) {\n renderLanes = nextRenderLanes;\n currentlyRenderingFiber = workInProgress;\n workInProgress.memoizedState = null;\n workInProgress.updateQueue = null;\n workInProgress.lanes = 0;\n ReactSharedInternals.H =\n null === current || null === current.memoizedState\n ? HooksDispatcherOnMount\n : HooksDispatcherOnUpdate;\n shouldDoubleInvokeUserFnsInHooksDEV = !1;\n nextRenderLanes = Component(props, secondArg);\n shouldDoubleInvokeUserFnsInHooksDEV = !1;\n didScheduleRenderPhaseUpdateDuringThisPass &&\n (nextRenderLanes = renderWithHooksAgain(\n workInProgress,\n Component,\n props,\n secondArg\n ));\n finishRenderingHooks(current);\n return nextRenderLanes;\n}\nfunction finishRenderingHooks(current) {\n ReactSharedInternals.H = ContextOnlyDispatcher;\n var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next;\n renderLanes = 0;\n workInProgressHook = currentHook = currentlyRenderingFiber = null;\n didScheduleRenderPhaseUpdate = !1;\n thenableIndexCounter$1 = 0;\n thenableState$1 = null;\n if (didRenderTooFewHooks) throw Error(formatProdErrorMessage(300));\n null === current ||\n didReceiveUpdate ||\n ((current = current.dependencies),\n null !== current &&\n checkIfContextChanged(current) &&\n (didReceiveUpdate = !0));\n}\nfunction renderWithHooksAgain(workInProgress, Component, props, secondArg) {\n currentlyRenderingFiber = workInProgress;\n var numberOfReRenders = 0;\n do {\n didScheduleRenderPhaseUpdateDuringThisPass && (thenableState$1 = null);\n thenableIndexCounter$1 = 0;\n didScheduleRenderPhaseUpdateDuringThisPass = !1;\n if (25 <= numberOfReRenders) throw Error(formatProdErrorMessage(301));\n numberOfReRenders += 1;\n workInProgressHook = currentHook = null;\n if (null != workInProgress.updateQueue) {\n var children = workInProgress.updateQueue;\n children.lastEffect = null;\n children.events = null;\n children.stores = null;\n null != children.memoCache && (children.memoCache.index = 0);\n }\n ReactSharedInternals.H = HooksDispatcherOnRerender;\n children = Component(props, secondArg);\n } while (didScheduleRenderPhaseUpdateDuringThisPass);\n return children;\n}\nfunction TransitionAwareHostComponent() {\n var dispatcher = ReactSharedInternals.H,\n maybeThenable = dispatcher.useState()[0];\n maybeThenable =\n \"function\" === typeof maybeThenable.then\n ? useThenable(maybeThenable)\n : maybeThenable;\n dispatcher = dispatcher.useState()[0];\n (null !== currentHook ? currentHook.memoizedState : null) !== dispatcher &&\n (currentlyRenderingFiber.flags |= 1024);\n return maybeThenable;\n}\nfunction checkDidRenderIdHook() {\n var didRenderIdHook = 0 !== localIdCounter;\n localIdCounter = 0;\n return didRenderIdHook;\n}\nfunction bailoutHooks(current, workInProgress, lanes) {\n workInProgress.updateQueue = current.updateQueue;\n workInProgress.flags &= -2053;\n current.lanes &= ~lanes;\n}\nfunction resetHooksOnUnwind(workInProgress) {\n if (didScheduleRenderPhaseUpdate) {\n for (\n workInProgress = workInProgress.memoizedState;\n null !== workInProgress;\n\n ) {\n var queue = workInProgress.queue;\n null !== queue && (queue.pending = null);\n workInProgress = workInProgress.next;\n }\n didScheduleRenderPhaseUpdate = !1;\n }\n renderLanes = 0;\n workInProgressHook = currentHook = currentlyRenderingFiber = null;\n didScheduleRenderPhaseUpdateDuringThisPass = !1;\n thenableIndexCounter$1 = localIdCounter = 0;\n thenableState$1 = null;\n}\nfunction mountWorkInProgressHook() {\n var hook = {\n memoizedState: null,\n baseState: null,\n baseQueue: null,\n queue: null,\n next: null\n };\n null === workInProgressHook\n ? (currentlyRenderingFiber.memoizedState = workInProgressHook = hook)\n : (workInProgressHook = workInProgressHook.next = hook);\n return workInProgressHook;\n}\nfunction updateWorkInProgressHook() {\n if (null === currentHook) {\n var nextCurrentHook = currentlyRenderingFiber.alternate;\n nextCurrentHook =\n null !== nextCurrentHook ? nextCurrentHook.memoizedState : null;\n } else nextCurrentHook = currentHook.next;\n var nextWorkInProgressHook =\n null === workInProgressHook\n ? currentlyRenderingFiber.memoizedState\n : workInProgressHook.next;\n if (null !== nextWorkInProgressHook)\n (workInProgressHook = nextWorkInProgressHook),\n (currentHook = nextCurrentHook);\n else {\n if (null === nextCurrentHook) {\n if (null === currentlyRenderingFiber.alternate)\n throw Error(formatProdErrorMessage(467));\n throw Error(formatProdErrorMessage(310));\n }\n currentHook = nextCurrentHook;\n nextCurrentHook = {\n memoizedState: currentHook.memoizedState,\n baseState: currentHook.baseState,\n baseQueue: currentHook.baseQueue,\n queue: currentHook.queue,\n next: null\n };\n null === workInProgressHook\n ? (currentlyRenderingFiber.memoizedState = workInProgressHook =\n nextCurrentHook)\n : (workInProgressHook = workInProgressHook.next = nextCurrentHook);\n }\n return workInProgressHook;\n}\nfunction createFunctionComponentUpdateQueue() {\n return { lastEffect: null, events: null, stores: null, memoCache: null };\n}\nfunction useThenable(thenable) {\n var index = thenableIndexCounter$1;\n thenableIndexCounter$1 += 1;\n null === thenableState$1 && (thenableState$1 = []);\n thenable = trackUsedThenable(thenableState$1, thenable, index);\n index = currentlyRenderingFiber;\n null ===\n (null === workInProgressHook\n ? index.memoizedState\n : workInProgressHook.next) &&\n ((index = index.alternate),\n (ReactSharedInternals.H =\n null === index || null === index.memoizedState\n ? HooksDispatcherOnMount\n : HooksDispatcherOnUpdate));\n return thenable;\n}\nfunction use(usable) {\n if (null !== usable && \"object\" === typeof usable) {\n if (\"function\" === typeof usable.then) return useThenable(usable);\n if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable);\n }\n throw Error(formatProdErrorMessage(438, String(usable)));\n}\nfunction useMemoCache(size) {\n var memoCache = null,\n updateQueue = currentlyRenderingFiber.updateQueue;\n null !== updateQueue && (memoCache = updateQueue.memoCache);\n if (null == memoCache) {\n var current = currentlyRenderingFiber.alternate;\n null !== current &&\n ((current = current.updateQueue),\n null !== current &&\n ((current = current.memoCache),\n null != current &&\n (memoCache = {\n data: current.data.map(function (array) {\n return array.slice();\n }),\n index: 0\n })));\n }\n null == memoCache && (memoCache = { data: [], index: 0 });\n null === updateQueue &&\n ((updateQueue = createFunctionComponentUpdateQueue()),\n (currentlyRenderingFiber.updateQueue = updateQueue));\n updateQueue.memoCache = memoCache;\n updateQueue = memoCache.data[memoCache.index];\n if (void 0 === updateQueue)\n for (\n updateQueue = memoCache.data[memoCache.index] = Array(size), current = 0;\n current < size;\n current++\n )\n updateQueue[current] = REACT_MEMO_CACHE_SENTINEL;\n memoCache.index++;\n return updateQueue;\n}\nfunction basicStateReducer(state, action) {\n return \"function\" === typeof action ? action(state) : action;\n}\nfunction updateReducer(reducer) {\n var hook = updateWorkInProgressHook();\n return updateReducerImpl(hook, currentHook, reducer);\n}\nfunction updateReducerImpl(hook, current, reducer) {\n var queue = hook.queue;\n if (null === queue) throw Error(formatProdErrorMessage(311));\n queue.lastRenderedReducer = reducer;\n var baseQueue = hook.baseQueue,\n pendingQueue = queue.pending;\n if (null !== pendingQueue) {\n if (null !== baseQueue) {\n var baseFirst = baseQueue.next;\n baseQueue.next = pendingQueue.next;\n pendingQueue.next = baseFirst;\n }\n current.baseQueue = baseQueue = pendingQueue;\n queue.pending = null;\n }\n pendingQueue = hook.baseState;\n if (null === baseQueue) hook.memoizedState = pendingQueue;\n else {\n current = baseQueue.next;\n var newBaseQueueFirst = (baseFirst = null),\n newBaseQueueLast = null,\n update = current,\n didReadFromEntangledAsyncAction$32 = !1;\n do {\n var updateLane = update.lane & -536870913;\n if (\n updateLane !== update.lane\n ? (workInProgressRootRenderLanes & updateLane) === updateLane\n : (renderLanes & updateLane) === updateLane\n ) {\n var revertLane = update.revertLane;\n if (0 === revertLane)\n null !== newBaseQueueLast &&\n (newBaseQueueLast = newBaseQueueLast.next =\n {\n lane: 0,\n revertLane: 0,\n action: update.action,\n hasEagerState: update.hasEagerState,\n eagerState: update.eagerState,\n next: null\n }),\n updateLane === currentEntangledLane &&\n (didReadFromEntangledAsyncAction$32 = !0);\n else if ((renderLanes & revertLane) === revertLane) {\n update = update.next;\n revertLane === currentEntangledLane &&\n (didReadFromEntangledAsyncAction$32 = !0);\n continue;\n } else\n (updateLane = {\n lane: 0,\n revertLane: update.revertLane,\n action: update.action,\n hasEagerState: update.hasEagerState,\n eagerState: update.eagerState,\n next: null\n }),\n null === newBaseQueueLast\n ? ((newBaseQueueFirst = newBaseQueueLast = updateLane),\n (baseFirst = pendingQueue))\n : (newBaseQueueLast = newBaseQueueLast.next = updateLane),\n (currentlyRenderingFiber.lanes |= revertLane),\n (workInProgressRootSkippedLanes |= revertLane);\n updateLane = update.action;\n shouldDoubleInvokeUserFnsInHooksDEV &&\n reducer(pendingQueue, updateLane);\n pendingQueue = update.hasEagerState\n ? update.eagerState\n : reducer(pendingQueue, updateLane);\n } else\n (revertLane = {\n lane: updateLane,\n revertLane: update.revertLane,\n action: update.action,\n hasEagerState: update.hasEagerState,\n eagerState: update.eagerState,\n next: null\n }),\n null === newBaseQueueLast\n ? ((newBaseQueueFirst = newBaseQueueLast = revertLane),\n (baseFirst = pendingQueue))\n : (newBaseQueueLast = newBaseQueueLast.next = revertLane),\n (currentlyRenderingFiber.lanes |= updateLane),\n (workInProgressRootSkippedLanes |= updateLane);\n update = update.next;\n } while (null !== update && update !== current);\n null === newBaseQueueLast\n ? (baseFirst = pendingQueue)\n : (newBaseQueueLast.next = newBaseQueueFirst);\n if (\n !objectIs(pendingQueue, hook.memoizedState) &&\n ((didReceiveUpdate = !0),\n didReadFromEntangledAsyncAction$32 &&\n ((reducer = currentEntangledActionThenable), null !== reducer))\n )\n throw reducer;\n hook.memoizedState = pendingQueue;\n hook.baseState = baseFirst;\n hook.baseQueue = newBaseQueueLast;\n queue.lastRenderedState = pendingQueue;\n }\n null === baseQueue && (queue.lanes = 0);\n return [hook.memoizedState, queue.dispatch];\n}\nfunction rerenderReducer(reducer) {\n var hook = updateWorkInProgressHook(),\n queue = hook.queue;\n if (null === queue) throw Error(formatProdErrorMessage(311));\n queue.lastRenderedReducer = reducer;\n var dispatch = queue.dispatch,\n lastRenderPhaseUpdate = queue.pending,\n newState = hook.memoizedState;\n if (null !== lastRenderPhaseUpdate) {\n queue.pending = null;\n var update = (lastRenderPhaseUpdate = lastRenderPhaseUpdate.next);\n do (newState = reducer(newState, update.action)), (update = update.next);\n while (update !== lastRenderPhaseUpdate);\n objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0);\n hook.memoizedState = newState;\n null === hook.baseQueue && (hook.baseState = newState);\n queue.lastRenderedState = newState;\n }\n return [newState, dispatch];\n}\nfunction updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {\n var fiber = currentlyRenderingFiber,\n hook = updateWorkInProgressHook(),\n isHydrating$jscomp$0 = isHydrating;\n if (isHydrating$jscomp$0) {\n if (void 0 === getServerSnapshot) throw Error(formatProdErrorMessage(407));\n getServerSnapshot = getServerSnapshot();\n } else getServerSnapshot = getSnapshot();\n var snapshotChanged = !objectIs(\n (currentHook || hook).memoizedState,\n getServerSnapshot\n );\n snapshotChanged &&\n ((hook.memoizedState = getServerSnapshot), (didReceiveUpdate = !0));\n hook = hook.queue;\n var create = subscribeToStore.bind(null, fiber, hook, subscribe);\n updateEffectImpl(2048, 8, create, [subscribe]);\n if (\n hook.getSnapshot !== getSnapshot ||\n snapshotChanged ||\n (null !== workInProgressHook && workInProgressHook.memoizedState.tag & 1)\n ) {\n fiber.flags |= 2048;\n pushSimpleEffect(\n 9,\n createEffectInstance(),\n updateStoreInstance.bind(\n null,\n fiber,\n hook,\n getServerSnapshot,\n getSnapshot\n ),\n null\n );\n if (null === workInProgressRoot) throw Error(formatProdErrorMessage(349));\n isHydrating$jscomp$0 ||\n 0 !== (renderLanes & 124) ||\n pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);\n }\n return getServerSnapshot;\n}\nfunction pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {\n fiber.flags |= 16384;\n fiber = { getSnapshot: getSnapshot, value: renderedSnapshot };\n getSnapshot = currentlyRenderingFiber.updateQueue;\n null === getSnapshot\n ? ((getSnapshot = createFunctionComponentUpdateQueue()),\n (currentlyRenderingFiber.updateQueue = getSnapshot),\n (getSnapshot.stores = [fiber]))\n : ((renderedSnapshot = getSnapshot.stores),\n null === renderedSnapshot\n ? (getSnapshot.stores = [fiber])\n : renderedSnapshot.push(fiber));\n}\nfunction updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {\n inst.value = nextSnapshot;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);\n}\nfunction subscribeToStore(fiber, inst, subscribe) {\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);\n });\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction forceStoreRerender(fiber) {\n var root = enqueueConcurrentRenderForLane(fiber, 2);\n null !== root && scheduleUpdateOnFiber(root, fiber, 2);\n}\nfunction mountStateImpl(initialState) {\n var hook = mountWorkInProgressHook();\n if (\"function\" === typeof initialState) {\n var initialStateInitializer = initialState;\n initialState = initialStateInitializer();\n if (shouldDoubleInvokeUserFnsInHooksDEV) {\n setIsStrictModeForDevtools(!0);\n try {\n initialStateInitializer();\n } finally {\n setIsStrictModeForDevtools(!1);\n }\n }\n }\n hook.memoizedState = hook.baseState = initialState;\n hook.queue = {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: basicStateReducer,\n lastRenderedState: initialState\n };\n return hook;\n}\nfunction updateOptimisticImpl(hook, current, passthrough, reducer) {\n hook.baseState = passthrough;\n return updateReducerImpl(\n hook,\n currentHook,\n \"function\" === typeof reducer ? reducer : basicStateReducer\n );\n}\nfunction dispatchActionState(\n fiber,\n actionQueue,\n setPendingState,\n setState,\n payload\n) {\n if (isRenderPhaseUpdate(fiber)) throw Error(formatProdErrorMessage(485));\n fiber = actionQueue.action;\n if (null !== fiber) {\n var actionNode = {\n payload: payload,\n action: fiber,\n next: null,\n isTransition: !0,\n status: \"pending\",\n value: null,\n reason: null,\n listeners: [],\n then: function (listener) {\n actionNode.listeners.push(listener);\n }\n };\n null !== ReactSharedInternals.T\n ? setPendingState(!0)\n : (actionNode.isTransition = !1);\n setState(actionNode);\n setPendingState = actionQueue.pending;\n null === setPendingState\n ? ((actionNode.next = actionQueue.pending = actionNode),\n runActionStateAction(actionQueue, actionNode))\n : ((actionNode.next = setPendingState.next),\n (actionQueue.pending = setPendingState.next = actionNode));\n }\n}\nfunction runActionStateAction(actionQueue, node) {\n var action = node.action,\n payload = node.payload,\n prevState = actionQueue.state;\n if (node.isTransition) {\n var prevTransition = ReactSharedInternals.T,\n currentTransition = {};\n ReactSharedInternals.T = currentTransition;\n try {\n var returnValue = action(prevState, payload),\n onStartTransitionFinish = ReactSharedInternals.S;\n null !== onStartTransitionFinish &&\n onStartTransitionFinish(currentTransition, returnValue);\n handleActionReturnValue(actionQueue, node, returnValue);\n } catch (error) {\n onActionError(actionQueue, node, error);\n } finally {\n ReactSharedInternals.T = prevTransition;\n }\n } else\n try {\n (prevTransition = action(prevState, payload)),\n handleActionReturnValue(actionQueue, node, prevTransition);\n } catch (error$38) {\n onActionError(actionQueue, node, error$38);\n }\n}\nfunction handleActionReturnValue(actionQueue, node, returnValue) {\n null !== returnValue &&\n \"object\" === typeof returnValue &&\n \"function\" === typeof returnValue.then\n ? returnValue.then(\n function (nextState) {\n onActionSuccess(actionQueue, node, nextState);\n },\n function (error) {\n return onActionError(actionQueue, node, error);\n }\n )\n : onActionSuccess(actionQueue, node, returnValue);\n}\nfunction onActionSuccess(actionQueue, actionNode, nextState) {\n actionNode.status = \"fulfilled\";\n actionNode.value = nextState;\n notifyActionListeners(actionNode);\n actionQueue.state = nextState;\n actionNode = actionQueue.pending;\n null !== actionNode &&\n ((nextState = actionNode.next),\n nextState === actionNode\n ? (actionQueue.pending = null)\n : ((nextState = nextState.next),\n (actionNode.next = nextState),\n runActionStateAction(actionQueue, nextState)));\n}\nfunction onActionError(actionQueue, actionNode, error) {\n var last = actionQueue.pending;\n actionQueue.pending = null;\n if (null !== last) {\n last = last.next;\n do\n (actionNode.status = \"rejected\"),\n (actionNode.reason = error),\n notifyActionListeners(actionNode),\n (actionNode = actionNode.next);\n while (actionNode !== last);\n }\n actionQueue.action = null;\n}\nfunction notifyActionListeners(actionNode) {\n actionNode = actionNode.listeners;\n for (var i = 0; i < actionNode.length; i++) (0, actionNode[i])();\n}\nfunction actionStateReducer(oldState, newState) {\n return newState;\n}\nfunction mountActionState(action, initialStateProp) {\n if (isHydrating) {\n var ssrFormState = workInProgressRoot.formState;\n if (null !== ssrFormState) {\n a: {\n var JSCompiler_inline_result = currentlyRenderingFiber;\n if (isHydrating) {\n if (nextHydratableInstance) {\n b: {\n var JSCompiler_inline_result$jscomp$0 = nextHydratableInstance;\n for (\n var inRootOrSingleton = rootOrSingletonContext;\n 8 !== JSCompiler_inline_result$jscomp$0.nodeType;\n\n ) {\n if (!inRootOrSingleton) {\n JSCompiler_inline_result$jscomp$0 = null;\n break b;\n }\n JSCompiler_inline_result$jscomp$0 = getNextHydratable(\n JSCompiler_inline_result$jscomp$0.nextSibling\n );\n if (null === JSCompiler_inline_result$jscomp$0) {\n JSCompiler_inline_result$jscomp$0 = null;\n break b;\n }\n }\n inRootOrSingleton = JSCompiler_inline_result$jscomp$0.data;\n JSCompiler_inline_result$jscomp$0 =\n \"F!\" === inRootOrSingleton || \"F\" === inRootOrSingleton\n ? JSCompiler_inline_result$jscomp$0\n : null;\n }\n if (JSCompiler_inline_result$jscomp$0) {\n nextHydratableInstance = getNextHydratable(\n JSCompiler_inline_result$jscomp$0.nextSibling\n );\n JSCompiler_inline_result =\n \"F!\" === JSCompiler_inline_result$jscomp$0.data;\n break a;\n }\n }\n throwOnHydrationMismatch(JSCompiler_inline_result);\n }\n JSCompiler_inline_result = !1;\n }\n JSCompiler_inline_result && (initialStateProp = ssrFormState[0]);\n }\n }\n ssrFormState = mountWorkInProgressHook();\n ssrFormState.memoizedState = ssrFormState.baseState = initialStateProp;\n JSCompiler_inline_result = {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: actionStateReducer,\n lastRenderedState: initialStateProp\n };\n ssrFormState.queue = JSCompiler_inline_result;\n ssrFormState = dispatchSetState.bind(\n null,\n currentlyRenderingFiber,\n JSCompiler_inline_result\n );\n JSCompiler_inline_result.dispatch = ssrFormState;\n JSCompiler_inline_result = mountStateImpl(!1);\n inRootOrSingleton = dispatchOptimisticSetState.bind(\n null,\n currentlyRenderingFiber,\n !1,\n JSCompiler_inline_result.queue\n );\n JSCompiler_inline_result = mountWorkInProgressHook();\n JSCompiler_inline_result$jscomp$0 = {\n state: initialStateProp,\n dispatch: null,\n action: action,\n pending: null\n };\n JSCompiler_inline_result.queue = JSCompiler_inline_result$jscomp$0;\n ssrFormState = dispatchActionState.bind(\n null,\n currentlyRenderingFiber,\n JSCompiler_inline_result$jscomp$0,\n inRootOrSingleton,\n ssrFormState\n );\n JSCompiler_inline_result$jscomp$0.dispatch = ssrFormState;\n JSCompiler_inline_result.memoizedState = action;\n return [initialStateProp, ssrFormState, !1];\n}\nfunction updateActionState(action) {\n var stateHook = updateWorkInProgressHook();\n return updateActionStateImpl(stateHook, currentHook, action);\n}\nfunction updateActionStateImpl(stateHook, currentStateHook, action) {\n currentStateHook = updateReducerImpl(\n stateHook,\n currentStateHook,\n actionStateReducer\n )[0];\n stateHook = updateReducer(basicStateReducer)[0];\n if (\n \"object\" === typeof currentStateHook &&\n null !== currentStateHook &&\n \"function\" === typeof currentStateHook.then\n )\n try {\n var state = useThenable(currentStateHook);\n } catch (x) {\n if (x === SuspenseException) throw SuspenseActionException;\n throw x;\n }\n else state = currentStateHook;\n currentStateHook = updateWorkInProgressHook();\n var actionQueue = currentStateHook.queue,\n dispatch = actionQueue.dispatch;\n action !== currentStateHook.memoizedState &&\n ((currentlyRenderingFiber.flags |= 2048),\n pushSimpleEffect(\n 9,\n createEffectInstance(),\n actionStateActionEffect.bind(null, actionQueue, action),\n null\n ));\n return [state, dispatch, stateHook];\n}\nfunction actionStateActionEffect(actionQueue, action) {\n actionQueue.action = action;\n}\nfunction rerenderActionState(action) {\n var stateHook = updateWorkInProgressHook(),\n currentStateHook = currentHook;\n if (null !== currentStateHook)\n return updateActionStateImpl(stateHook, currentStateHook, action);\n updateWorkInProgressHook();\n stateHook = stateHook.memoizedState;\n currentStateHook = updateWorkInProgressHook();\n var dispatch = currentStateHook.queue.dispatch;\n currentStateHook.memoizedState = action;\n return [stateHook, dispatch, !1];\n}\nfunction pushSimpleEffect(tag, inst, create, createDeps) {\n tag = { tag: tag, create: create, deps: createDeps, inst: inst, next: null };\n inst = currentlyRenderingFiber.updateQueue;\n null === inst &&\n ((inst = createFunctionComponentUpdateQueue()),\n (currentlyRenderingFiber.updateQueue = inst));\n create = inst.lastEffect;\n null === create\n ? (inst.lastEffect = tag.next = tag)\n : ((createDeps = create.next),\n (create.next = tag),\n (tag.next = createDeps),\n (inst.lastEffect = tag));\n return tag;\n}\nfunction createEffectInstance() {\n return { destroy: void 0, resource: void 0 };\n}\nfunction updateRef() {\n return updateWorkInProgressHook().memoizedState;\n}\nfunction mountEffectImpl(fiberFlags, hookFlags, create, createDeps) {\n var hook = mountWorkInProgressHook();\n createDeps = void 0 === createDeps ? null : createDeps;\n currentlyRenderingFiber.flags |= fiberFlags;\n hook.memoizedState = pushSimpleEffect(\n 1 | hookFlags,\n createEffectInstance(),\n create,\n createDeps\n );\n}\nfunction updateEffectImpl(fiberFlags, hookFlags, create, deps) {\n var hook = updateWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var inst = hook.memoizedState.inst;\n null !== currentHook &&\n null !== deps &&\n areHookInputsEqual(deps, currentHook.memoizedState.deps)\n ? (hook.memoizedState = pushSimpleEffect(hookFlags, inst, create, deps))\n : ((currentlyRenderingFiber.flags |= fiberFlags),\n (hook.memoizedState = pushSimpleEffect(\n 1 | hookFlags,\n inst,\n create,\n deps\n )));\n}\nfunction mountEffect(create, createDeps) {\n mountEffectImpl(8390656, 8, create, createDeps);\n}\nfunction updateEffect(create, createDeps) {\n updateEffectImpl(2048, 8, create, createDeps);\n}\nfunction updateInsertionEffect(create, deps) {\n return updateEffectImpl(4, 2, create, deps);\n}\nfunction updateLayoutEffect(create, deps) {\n return updateEffectImpl(4, 4, create, deps);\n}\nfunction imperativeHandleEffect(create, ref) {\n if (\"function\" === typeof ref) {\n create = create();\n var refCleanup = ref(create);\n return function () {\n \"function\" === typeof refCleanup ? refCleanup() : ref(null);\n };\n }\n if (null !== ref && void 0 !== ref)\n return (\n (create = create()),\n (ref.current = create),\n function () {\n ref.current = null;\n }\n );\n}\nfunction updateImperativeHandle(ref, create, deps) {\n deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;\n updateEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps);\n}\nfunction mountDebugValue() {}\nfunction updateCallback(callback, deps) {\n var hook = updateWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var prevState = hook.memoizedState;\n if (null !== deps && areHookInputsEqual(deps, prevState[1]))\n return prevState[0];\n hook.memoizedState = [callback, deps];\n return callback;\n}\nfunction updateMemo(nextCreate, deps) {\n var hook = updateWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var prevState = hook.memoizedState;\n if (null !== deps && areHookInputsEqual(deps, prevState[1]))\n return prevState[0];\n prevState = nextCreate();\n if (shouldDoubleInvokeUserFnsInHooksDEV) {\n setIsStrictModeForDevtools(!0);\n try {\n nextCreate();\n } finally {\n setIsStrictModeForDevtools(!1);\n }\n }\n hook.memoizedState = [prevState, deps];\n return prevState;\n}\nfunction mountDeferredValueImpl(hook, value, initialValue) {\n if (void 0 === initialValue || 0 !== (renderLanes & 1073741824))\n return (hook.memoizedState = value);\n hook.memoizedState = initialValue;\n hook = requestDeferredLane();\n currentlyRenderingFiber.lanes |= hook;\n workInProgressRootSkippedLanes |= hook;\n return initialValue;\n}\nfunction updateDeferredValueImpl(hook, prevValue, value, initialValue) {\n if (objectIs(value, prevValue)) return value;\n if (null !== currentTreeHiddenStackCursor.current)\n return (\n (hook = mountDeferredValueImpl(hook, value, initialValue)),\n objectIs(hook, prevValue) || (didReceiveUpdate = !0),\n hook\n );\n if (0 === (renderLanes & 42))\n return (didReceiveUpdate = !0), (hook.memoizedState = value);\n hook = requestDeferredLane();\n currentlyRenderingFiber.lanes |= hook;\n workInProgressRootSkippedLanes |= hook;\n return prevValue;\n}\nfunction startTransition(fiber, queue, pendingState, finishedState, callback) {\n var previousPriority = ReactDOMSharedInternals.p;\n ReactDOMSharedInternals.p =\n 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;\n var prevTransition = ReactSharedInternals.T,\n currentTransition = {};\n ReactSharedInternals.T = currentTransition;\n dispatchOptimisticSetState(fiber, !1, queue, pendingState);\n try {\n var returnValue = callback(),\n onStartTransitionFinish = ReactSharedInternals.S;\n null !== onStartTransitionFinish &&\n onStartTransitionFinish(currentTransition, returnValue);\n if (\n null !== returnValue &&\n \"object\" === typeof returnValue &&\n \"function\" === typeof returnValue.then\n ) {\n var thenableForFinishedState = chainThenableValue(\n returnValue,\n finishedState\n );\n dispatchSetStateInternal(\n fiber,\n queue,\n thenableForFinishedState,\n requestUpdateLane(fiber)\n );\n } else\n dispatchSetStateInternal(\n fiber,\n queue,\n finishedState,\n requestUpdateLane(fiber)\n );\n } catch (error) {\n dispatchSetStateInternal(\n fiber,\n queue,\n { then: function () {}, status: \"rejected\", reason: error },\n requestUpdateLane()\n );\n } finally {\n (ReactDOMSharedInternals.p = previousPriority),\n (ReactSharedInternals.T = prevTransition);\n }\n}\nfunction noop$2() {}\nfunction startHostTransition(formFiber, pendingState, action, formData) {\n if (5 !== formFiber.tag) throw Error(formatProdErrorMessage(476));\n var queue = ensureFormComponentIsStateful(formFiber).queue;\n startTransition(\n formFiber,\n queue,\n pendingState,\n sharedNotPendingObject,\n null === action\n ? noop$2\n : function () {\n requestFormReset$1(formFiber);\n return action(formData);\n }\n );\n}\nfunction ensureFormComponentIsStateful(formFiber) {\n var existingStateHook = formFiber.memoizedState;\n if (null !== existingStateHook) return existingStateHook;\n existingStateHook = {\n memoizedState: sharedNotPendingObject,\n baseState: sharedNotPendingObject,\n baseQueue: null,\n queue: {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: basicStateReducer,\n lastRenderedState: sharedNotPendingObject\n },\n next: null\n };\n var initialResetState = {};\n existingStateHook.next = {\n memoizedState: initialResetState,\n baseState: initialResetState,\n baseQueue: null,\n queue: {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: basicStateReducer,\n lastRenderedState: initialResetState\n },\n next: null\n };\n formFiber.memoizedState = existingStateHook;\n formFiber = formFiber.alternate;\n null !== formFiber && (formFiber.memoizedState = existingStateHook);\n return existingStateHook;\n}\nfunction requestFormReset$1(formFiber) {\n var resetStateQueue = ensureFormComponentIsStateful(formFiber).next.queue;\n dispatchSetStateInternal(formFiber, resetStateQueue, {}, requestUpdateLane());\n}\nfunction useHostTransitionStatus() {\n return readContext(HostTransitionContext);\n}\nfunction updateId() {\n return updateWorkInProgressHook().memoizedState;\n}\nfunction updateRefresh() {\n return updateWorkInProgressHook().memoizedState;\n}\nfunction refreshCache(fiber) {\n for (var provider = fiber.return; null !== provider; ) {\n switch (provider.tag) {\n case 24:\n case 3:\n var lane = requestUpdateLane();\n fiber = createUpdate(lane);\n var root$41 = enqueueUpdate(provider, fiber, lane);\n null !== root$41 &&\n (scheduleUpdateOnFiber(root$41, provider, lane),\n entangleTransitions(root$41, provider, lane));\n provider = { cache: createCache() };\n fiber.payload = provider;\n return;\n }\n provider = provider.return;\n }\n}\nfunction dispatchReducerAction(fiber, queue, action) {\n var lane = requestUpdateLane();\n action = {\n lane: lane,\n revertLane: 0,\n action: action,\n hasEagerState: !1,\n eagerState: null,\n next: null\n };\n isRenderPhaseUpdate(fiber)\n ? enqueueRenderPhaseUpdate(queue, action)\n : ((action = enqueueConcurrentHookUpdate(fiber, queue, action, lane)),\n null !== action &&\n (scheduleUpdateOnFiber(action, fiber, lane),\n entangleTransitionUpdate(action, queue, lane)));\n}\nfunction dispatchSetState(fiber, queue, action) {\n var lane = requestUpdateLane();\n dispatchSetStateInternal(fiber, queue, action, lane);\n}\nfunction dispatchSetStateInternal(fiber, queue, action, lane) {\n var update = {\n lane: lane,\n revertLane: 0,\n action: action,\n hasEagerState: !1,\n eagerState: null,\n next: null\n };\n if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);\n else {\n var alternate = fiber.alternate;\n if (\n 0 === fiber.lanes &&\n (null === alternate || 0 === alternate.lanes) &&\n ((alternate = queue.lastRenderedReducer), null !== alternate)\n )\n try {\n var currentState = queue.lastRenderedState,\n eagerState = alternate(currentState, action);\n update.hasEagerState = !0;\n update.eagerState = eagerState;\n if (objectIs(eagerState, currentState))\n return (\n enqueueUpdate$1(fiber, queue, update, 0),\n null === workInProgressRoot && finishQueueingConcurrentUpdates(),\n !1\n );\n } catch (error) {\n } finally {\n }\n action = enqueueConcurrentHookUpdate(fiber, queue, update, lane);\n if (null !== action)\n return (\n scheduleUpdateOnFiber(action, fiber, lane),\n entangleTransitionUpdate(action, queue, lane),\n !0\n );\n }\n return !1;\n}\nfunction dispatchOptimisticSetState(fiber, throwIfDuringRender, queue, action) {\n action = {\n lane: 2,\n revertLane: requestTransitionLane(),\n action: action,\n hasEagerState: !1,\n eagerState: null,\n next: null\n };\n if (isRenderPhaseUpdate(fiber)) {\n if (throwIfDuringRender) throw Error(formatProdErrorMessage(479));\n } else\n (throwIfDuringRender = enqueueConcurrentHookUpdate(\n fiber,\n queue,\n action,\n 2\n )),\n null !== throwIfDuringRender &&\n scheduleUpdateOnFiber(throwIfDuringRender, fiber, 2);\n}\nfunction isRenderPhaseUpdate(fiber) {\n var alternate = fiber.alternate;\n return (\n fiber === currentlyRenderingFiber ||\n (null !== alternate && alternate === currentlyRenderingFiber)\n );\n}\nfunction enqueueRenderPhaseUpdate(queue, update) {\n didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate =\n !0;\n var pending = queue.pending;\n null === pending\n ? (update.next = update)\n : ((update.next = pending.next), (pending.next = update));\n queue.pending = update;\n}\nfunction entangleTransitionUpdate(root, queue, lane) {\n if (0 !== (lane & 4194048)) {\n var queueLanes = queue.lanes;\n queueLanes &= root.pendingLanes;\n lane |= queueLanes;\n queue.lanes = lane;\n markRootEntangled(root, lane);\n }\n}\nvar ContextOnlyDispatcher = {\n readContext: readContext,\n use: use,\n useCallback: throwInvalidHookError,\n useContext: throwInvalidHookError,\n useEffect: throwInvalidHookError,\n useImperativeHandle: throwInvalidHookError,\n useLayoutEffect: throwInvalidHookError,\n useInsertionEffect: throwInvalidHookError,\n useMemo: throwInvalidHookError,\n useReducer: throwInvalidHookError,\n useRef: throwInvalidHookError,\n useState: throwInvalidHookError,\n useDebugValue: throwInvalidHookError,\n useDeferredValue: throwInvalidHookError,\n useTransition: throwInvalidHookError,\n useSyncExternalStore: throwInvalidHookError,\n useId: throwInvalidHookError,\n useHostTransitionStatus: throwInvalidHookError,\n useFormState: throwInvalidHookError,\n useActionState: throwInvalidHookError,\n useOptimistic: throwInvalidHookError,\n useMemoCache: throwInvalidHookError,\n useCacheRefresh: throwInvalidHookError\n },\n HooksDispatcherOnMount = {\n readContext: readContext,\n use: use,\n useCallback: function (callback, deps) {\n mountWorkInProgressHook().memoizedState = [\n callback,\n void 0 === deps ? null : deps\n ];\n return callback;\n },\n useContext: readContext,\n useEffect: mountEffect,\n useImperativeHandle: function (ref, create, deps) {\n deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;\n mountEffectImpl(\n 4194308,\n 4,\n imperativeHandleEffect.bind(null, create, ref),\n deps\n );\n },\n useLayoutEffect: function (create, deps) {\n return mountEffectImpl(4194308, 4, create, deps);\n },\n useInsertionEffect: function (create, deps) {\n mountEffectImpl(4, 2, create, deps);\n },\n useMemo: function (nextCreate, deps) {\n var hook = mountWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var nextValue = nextCreate();\n if (shouldDoubleInvokeUserFnsInHooksDEV) {\n setIsStrictModeForDevtools(!0);\n try {\n nextCreate();\n } finally {\n setIsStrictModeForDevtools(!1);\n }\n }\n hook.memoizedState = [nextValue, deps];\n return nextValue;\n },\n useReducer: function (reducer, initialArg, init) {\n var hook = mountWorkInProgressHook();\n if (void 0 !== init) {\n var initialState = init(initialArg);\n if (shouldDoubleInvokeUserFnsInHooksDEV) {\n setIsStrictModeForDevtools(!0);\n try {\n init(initialArg);\n } finally {\n setIsStrictModeForDevtools(!1);\n }\n }\n } else initialState = initialArg;\n hook.memoizedState = hook.baseState = initialState;\n reducer = {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: reducer,\n lastRenderedState: initialState\n };\n hook.queue = reducer;\n reducer = reducer.dispatch = dispatchReducerAction.bind(\n null,\n currentlyRenderingFiber,\n reducer\n );\n return [hook.memoizedState, reducer];\n },\n useRef: function (initialValue) {\n var hook = mountWorkInProgressHook();\n initialValue = { current: initialValue };\n return (hook.memoizedState = initialValue);\n },\n useState: function (initialState) {\n initialState = mountStateImpl(initialState);\n var queue = initialState.queue,\n dispatch = dispatchSetState.bind(null, currentlyRenderingFiber, queue);\n queue.dispatch = dispatch;\n return [initialState.memoizedState, dispatch];\n },\n useDebugValue: mountDebugValue,\n useDeferredValue: function (value, initialValue) {\n var hook = mountWorkInProgressHook();\n return mountDeferredValueImpl(hook, value, initialValue);\n },\n useTransition: function () {\n var stateHook = mountStateImpl(!1);\n stateHook = startTransition.bind(\n null,\n currentlyRenderingFiber,\n stateHook.queue,\n !0,\n !1\n );\n mountWorkInProgressHook().memoizedState = stateHook;\n return [!1, stateHook];\n },\n useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n var fiber = currentlyRenderingFiber,\n hook = mountWorkInProgressHook();\n if (isHydrating) {\n if (void 0 === getServerSnapshot)\n throw Error(formatProdErrorMessage(407));\n getServerSnapshot = getServerSnapshot();\n } else {\n getServerSnapshot = getSnapshot();\n if (null === workInProgressRoot)\n throw Error(formatProdErrorMessage(349));\n 0 !== (workInProgressRootRenderLanes & 124) ||\n pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);\n }\n hook.memoizedState = getServerSnapshot;\n var inst = { value: getServerSnapshot, getSnapshot: getSnapshot };\n hook.queue = inst;\n mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [\n subscribe\n ]);\n fiber.flags |= 2048;\n pushSimpleEffect(\n 9,\n createEffectInstance(),\n updateStoreInstance.bind(\n null,\n fiber,\n inst,\n getServerSnapshot,\n getSnapshot\n ),\n null\n );\n return getServerSnapshot;\n },\n useId: function () {\n var hook = mountWorkInProgressHook(),\n identifierPrefix = workInProgressRoot.identifierPrefix;\n if (isHydrating) {\n var JSCompiler_inline_result = treeContextOverflow;\n var idWithLeadingBit = treeContextId;\n JSCompiler_inline_result =\n (\n idWithLeadingBit & ~(1 << (32 - clz32(idWithLeadingBit) - 1))\n ).toString(32) + JSCompiler_inline_result;\n identifierPrefix =\n \"\\u00ab\" + identifierPrefix + \"R\" + JSCompiler_inline_result;\n JSCompiler_inline_result = localIdCounter++;\n 0 < JSCompiler_inline_result &&\n (identifierPrefix += \"H\" + JSCompiler_inline_result.toString(32));\n identifierPrefix += \"\\u00bb\";\n } else\n (JSCompiler_inline_result = globalClientIdCounter++),\n (identifierPrefix =\n \"\\u00ab\" +\n identifierPrefix +\n \"r\" +\n JSCompiler_inline_result.toString(32) +\n \"\\u00bb\");\n return (hook.memoizedState = identifierPrefix);\n },\n useHostTransitionStatus: useHostTransitionStatus,\n useFormState: mountActionState,\n useActionState: mountActionState,\n useOptimistic: function (passthrough) {\n var hook = mountWorkInProgressHook();\n hook.memoizedState = hook.baseState = passthrough;\n var queue = {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: null,\n lastRenderedState: null\n };\n hook.queue = queue;\n hook = dispatchOptimisticSetState.bind(\n null,\n currentlyRenderingFiber,\n !0,\n queue\n );\n queue.dispatch = hook;\n return [passthrough, hook];\n },\n useMemoCache: useMemoCache,\n useCacheRefresh: function () {\n return (mountWorkInProgressHook().memoizedState = refreshCache.bind(\n null,\n currentlyRenderingFiber\n ));\n }\n },\n HooksDispatcherOnUpdate = {\n readContext: readContext,\n use: use,\n useCallback: updateCallback,\n useContext: readContext,\n useEffect: updateEffect,\n useImperativeHandle: updateImperativeHandle,\n useInsertionEffect: updateInsertionEffect,\n useLayoutEffect: updateLayoutEffect,\n useMemo: updateMemo,\n useReducer: updateReducer,\n useRef: updateRef,\n useState: function () {\n return updateReducer(basicStateReducer);\n },\n useDebugValue: mountDebugValue,\n useDeferredValue: function (value, initialValue) {\n var hook = updateWorkInProgressHook();\n return updateDeferredValueImpl(\n hook,\n currentHook.memoizedState,\n value,\n initialValue\n );\n },\n useTransition: function () {\n var booleanOrThenable = updateReducer(basicStateReducer)[0],\n start = updateWorkInProgressHook().memoizedState;\n return [\n \"boolean\" === typeof booleanOrThenable\n ? booleanOrThenable\n : useThenable(booleanOrThenable),\n start\n ];\n },\n useSyncExternalStore: updateSyncExternalStore,\n useId: updateId,\n useHostTransitionStatus: useHostTransitionStatus,\n useFormState: updateActionState,\n useActionState: updateActionState,\n useOptimistic: function (passthrough, reducer) {\n var hook = updateWorkInProgressHook();\n return updateOptimisticImpl(hook, currentHook, passthrough, reducer);\n },\n useMemoCache: useMemoCache,\n useCacheRefresh: updateRefresh\n },\n HooksDispatcherOnRerender = {\n readContext: readContext,\n use: use,\n useCallback: updateCallback,\n useContext: readContext,\n useEffect: updateEffect,\n useImperativeHandle: updateImperativeHandle,\n useInsertionEffect: updateInsertionEffect,\n useLayoutEffect: updateLayoutEffect,\n useMemo: updateMemo,\n useReducer: rerenderReducer,\n useRef: updateRef,\n useState: function () {\n return rerenderReducer(basicStateReducer);\n },\n useDebugValue: mountDebugValue,\n useDeferredValue: function (value, initialValue) {\n var hook = updateWorkInProgressHook();\n return null === currentHook\n ? mountDeferredValueImpl(hook, value, initialValue)\n : updateDeferredValueImpl(\n hook,\n currentHook.memoizedState,\n value,\n initialValue\n );\n },\n useTransition: function () {\n var booleanOrThenable = rerenderReducer(basicStateReducer)[0],\n start = updateWorkInProgressHook().memoizedState;\n return [\n \"boolean\" === typeof booleanOrThenable\n ? booleanOrThenable\n : useThenable(booleanOrThenable),\n start\n ];\n },\n useSyncExternalStore: updateSyncExternalStore,\n useId: updateId,\n useHostTransitionStatus: useHostTransitionStatus,\n useFormState: rerenderActionState,\n useActionState: rerenderActionState,\n useOptimistic: function (passthrough, reducer) {\n var hook = updateWorkInProgressHook();\n if (null !== currentHook)\n return updateOptimisticImpl(hook, currentHook, passthrough, reducer);\n hook.baseState = passthrough;\n return [passthrough, hook.queue.dispatch];\n },\n useMemoCache: useMemoCache,\n useCacheRefresh: updateRefresh\n },\n thenableState = null,\n thenableIndexCounter = 0;\nfunction unwrapThenable(thenable) {\n var index = thenableIndexCounter;\n thenableIndexCounter += 1;\n null === thenableState && (thenableState = []);\n return trackUsedThenable(thenableState, thenable, index);\n}\nfunction coerceRef(workInProgress, element) {\n element = element.props.ref;\n workInProgress.ref = void 0 !== element ? element : null;\n}\nfunction throwOnInvalidObjectType(returnFiber, newChild) {\n if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE)\n throw Error(formatProdErrorMessage(525));\n returnFiber = Object.prototype.toString.call(newChild);\n throw Error(\n formatProdErrorMessage(\n 31,\n \"[object Object]\" === returnFiber\n ? \"object with keys {\" + Object.keys(newChild).join(\", \") + \"}\"\n : returnFiber\n )\n );\n}\nfunction resolveLazy(lazyType) {\n var init = lazyType._init;\n return init(lazyType._payload);\n}\nfunction createChildReconciler(shouldTrackSideEffects) {\n function deleteChild(returnFiber, childToDelete) {\n if (shouldTrackSideEffects) {\n var deletions = returnFiber.deletions;\n null === deletions\n ? ((returnFiber.deletions = [childToDelete]), (returnFiber.flags |= 16))\n : deletions.push(childToDelete);\n }\n }\n function deleteRemainingChildren(returnFiber, currentFirstChild) {\n if (!shouldTrackSideEffects) return null;\n for (; null !== currentFirstChild; )\n deleteChild(returnFiber, currentFirstChild),\n (currentFirstChild = currentFirstChild.sibling);\n return null;\n }\n function mapRemainingChildren(currentFirstChild) {\n for (var existingChildren = new Map(); null !== currentFirstChild; )\n null !== currentFirstChild.key\n ? existingChildren.set(currentFirstChild.key, currentFirstChild)\n : existingChildren.set(currentFirstChild.index, currentFirstChild),\n (currentFirstChild = currentFirstChild.sibling);\n return existingChildren;\n }\n function useFiber(fiber, pendingProps) {\n fiber = createWorkInProgress(fiber, pendingProps);\n fiber.index = 0;\n fiber.sibling = null;\n return fiber;\n }\n function placeChild(newFiber, lastPlacedIndex, newIndex) {\n newFiber.index = newIndex;\n if (!shouldTrackSideEffects)\n return (newFiber.flags |= 1048576), lastPlacedIndex;\n newIndex = newFiber.alternate;\n if (null !== newIndex)\n return (\n (newIndex = newIndex.index),\n newIndex < lastPlacedIndex\n ? ((newFiber.flags |= 67108866), lastPlacedIndex)\n : newIndex\n );\n newFiber.flags |= 67108866;\n return lastPlacedIndex;\n }\n function placeSingleChild(newFiber) {\n shouldTrackSideEffects &&\n null === newFiber.alternate &&\n (newFiber.flags |= 67108866);\n return newFiber;\n }\n function updateTextNode(returnFiber, current, textContent, lanes) {\n if (null === current || 6 !== current.tag)\n return (\n (current = createFiberFromText(textContent, returnFiber.mode, lanes)),\n (current.return = returnFiber),\n current\n );\n current = useFiber(current, textContent);\n current.return = returnFiber;\n return current;\n }\n function updateElement(returnFiber, current, element, lanes) {\n var elementType = element.type;\n if (elementType === REACT_FRAGMENT_TYPE)\n return updateFragment(\n returnFiber,\n current,\n element.props.children,\n lanes,\n element.key\n );\n if (\n null !== current &&\n (current.elementType === elementType ||\n (\"object\" === typeof elementType &&\n null !== elementType &&\n elementType.$$typeof === REACT_LAZY_TYPE &&\n resolveLazy(elementType) === current.type))\n )\n return (\n (current = useFiber(current, element.props)),\n coerceRef(current, element),\n (current.return = returnFiber),\n current\n );\n current = createFiberFromTypeAndProps(\n element.type,\n element.key,\n element.props,\n null,\n returnFiber.mode,\n lanes\n );\n coerceRef(current, element);\n current.return = returnFiber;\n return current;\n }\n function updatePortal(returnFiber, current, portal, lanes) {\n if (\n null === current ||\n 4 !== current.tag ||\n current.stateNode.containerInfo !== portal.containerInfo ||\n current.stateNode.implementation !== portal.implementation\n )\n return (\n (current = createFiberFromPortal(portal, returnFiber.mode, lanes)),\n (current.return = returnFiber),\n current\n );\n current = useFiber(current, portal.children || []);\n current.return = returnFiber;\n return current;\n }\n function updateFragment(returnFiber, current, fragment, lanes, key) {\n if (null === current || 7 !== current.tag)\n return (\n (current = createFiberFromFragment(\n fragment,\n returnFiber.mode,\n lanes,\n key\n )),\n (current.return = returnFiber),\n current\n );\n current = useFiber(current, fragment);\n current.return = returnFiber;\n return current;\n }\n function createChild(returnFiber, newChild, lanes) {\n if (\n (\"string\" === typeof newChild && \"\" !== newChild) ||\n \"number\" === typeof newChild ||\n \"bigint\" === typeof newChild\n )\n return (\n (newChild = createFiberFromText(\n \"\" + newChild,\n returnFiber.mode,\n lanes\n )),\n (newChild.return = returnFiber),\n newChild\n );\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return (\n (lanes = createFiberFromTypeAndProps(\n newChild.type,\n newChild.key,\n newChild.props,\n null,\n returnFiber.mode,\n lanes\n )),\n coerceRef(lanes, newChild),\n (lanes.return = returnFiber),\n lanes\n );\n case REACT_PORTAL_TYPE:\n return (\n (newChild = createFiberFromPortal(\n newChild,\n returnFiber.mode,\n lanes\n )),\n (newChild.return = returnFiber),\n newChild\n );\n case REACT_LAZY_TYPE:\n var init = newChild._init;\n newChild = init(newChild._payload);\n return createChild(returnFiber, newChild, lanes);\n }\n if (isArrayImpl(newChild) || getIteratorFn(newChild))\n return (\n (newChild = createFiberFromFragment(\n newChild,\n returnFiber.mode,\n lanes,\n null\n )),\n (newChild.return = returnFiber),\n newChild\n );\n if (\"function\" === typeof newChild.then)\n return createChild(returnFiber, unwrapThenable(newChild), lanes);\n if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n return createChild(\n returnFiber,\n readContextDuringReconciliation(returnFiber, newChild),\n lanes\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return null;\n }\n function updateSlot(returnFiber, oldFiber, newChild, lanes) {\n var key = null !== oldFiber ? oldFiber.key : null;\n if (\n (\"string\" === typeof newChild && \"\" !== newChild) ||\n \"number\" === typeof newChild ||\n \"bigint\" === typeof newChild\n )\n return null !== key\n ? null\n : updateTextNode(returnFiber, oldFiber, \"\" + newChild, lanes);\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return newChild.key === key\n ? updateElement(returnFiber, oldFiber, newChild, lanes)\n : null;\n case REACT_PORTAL_TYPE:\n return newChild.key === key\n ? updatePortal(returnFiber, oldFiber, newChild, lanes)\n : null;\n case REACT_LAZY_TYPE:\n return (\n (key = newChild._init),\n (newChild = key(newChild._payload)),\n updateSlot(returnFiber, oldFiber, newChild, lanes)\n );\n }\n if (isArrayImpl(newChild) || getIteratorFn(newChild))\n return null !== key\n ? null\n : updateFragment(returnFiber, oldFiber, newChild, lanes, null);\n if (\"function\" === typeof newChild.then)\n return updateSlot(\n returnFiber,\n oldFiber,\n unwrapThenable(newChild),\n lanes\n );\n if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n return updateSlot(\n returnFiber,\n oldFiber,\n readContextDuringReconciliation(returnFiber, newChild),\n lanes\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return null;\n }\n function updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n newChild,\n lanes\n ) {\n if (\n (\"string\" === typeof newChild && \"\" !== newChild) ||\n \"number\" === typeof newChild ||\n \"bigint\" === typeof newChild\n )\n return (\n (existingChildren = existingChildren.get(newIdx) || null),\n updateTextNode(returnFiber, existingChildren, \"\" + newChild, lanes)\n );\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return (\n (existingChildren =\n existingChildren.get(\n null === newChild.key ? newIdx : newChild.key\n ) || null),\n updateElement(returnFiber, existingChildren, newChild, lanes)\n );\n case REACT_PORTAL_TYPE:\n return (\n (existingChildren =\n existingChildren.get(\n null === newChild.key ? newIdx : newChild.key\n ) || null),\n updatePortal(returnFiber, existingChildren, newChild, lanes)\n );\n case REACT_LAZY_TYPE:\n var init = newChild._init;\n newChild = init(newChild._payload);\n return updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n newChild,\n lanes\n );\n }\n if (isArrayImpl(newChild) || getIteratorFn(newChild))\n return (\n (existingChildren = existingChildren.get(newIdx) || null),\n updateFragment(returnFiber, existingChildren, newChild, lanes, null)\n );\n if (\"function\" === typeof newChild.then)\n return updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n unwrapThenable(newChild),\n lanes\n );\n if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n return updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n readContextDuringReconciliation(returnFiber, newChild),\n lanes\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return null;\n }\n function reconcileChildrenArray(\n returnFiber,\n currentFirstChild,\n newChildren,\n lanes\n ) {\n for (\n var resultingFirstChild = null,\n previousNewFiber = null,\n oldFiber = currentFirstChild,\n newIdx = (currentFirstChild = 0),\n nextOldFiber = null;\n null !== oldFiber && newIdx < newChildren.length;\n newIdx++\n ) {\n oldFiber.index > newIdx\n ? ((nextOldFiber = oldFiber), (oldFiber = null))\n : (nextOldFiber = oldFiber.sibling);\n var newFiber = updateSlot(\n returnFiber,\n oldFiber,\n newChildren[newIdx],\n lanes\n );\n if (null === newFiber) {\n null === oldFiber && (oldFiber = nextOldFiber);\n break;\n }\n shouldTrackSideEffects &&\n oldFiber &&\n null === newFiber.alternate &&\n deleteChild(returnFiber, oldFiber);\n currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);\n null === previousNewFiber\n ? (resultingFirstChild = newFiber)\n : (previousNewFiber.sibling = newFiber);\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n if (newIdx === newChildren.length)\n return (\n deleteRemainingChildren(returnFiber, oldFiber),\n isHydrating && pushTreeFork(returnFiber, newIdx),\n resultingFirstChild\n );\n if (null === oldFiber) {\n for (; newIdx < newChildren.length; newIdx++)\n (oldFiber = createChild(returnFiber, newChildren[newIdx], lanes)),\n null !== oldFiber &&\n ((currentFirstChild = placeChild(\n oldFiber,\n currentFirstChild,\n newIdx\n )),\n null === previousNewFiber\n ? (resultingFirstChild = oldFiber)\n : (previousNewFiber.sibling = oldFiber),\n (previousNewFiber = oldFiber));\n isHydrating && pushTreeFork(returnFiber, newIdx);\n return resultingFirstChild;\n }\n for (\n oldFiber = mapRemainingChildren(oldFiber);\n newIdx < newChildren.length;\n newIdx++\n )\n (nextOldFiber = updateFromMap(\n oldFiber,\n returnFiber,\n newIdx,\n newChildren[newIdx],\n lanes\n )),\n null !== nextOldFiber &&\n (shouldTrackSideEffects &&\n null !== nextOldFiber.alternate &&\n oldFiber.delete(\n null === nextOldFiber.key ? newIdx : nextOldFiber.key\n ),\n (currentFirstChild = placeChild(\n nextOldFiber,\n currentFirstChild,\n newIdx\n )),\n null === previousNewFiber\n ? (resultingFirstChild = nextOldFiber)\n : (previousNewFiber.sibling = nextOldFiber),\n (previousNewFiber = nextOldFiber));\n shouldTrackSideEffects &&\n oldFiber.forEach(function (child) {\n return deleteChild(returnFiber, child);\n });\n isHydrating && pushTreeFork(returnFiber, newIdx);\n return resultingFirstChild;\n }\n function reconcileChildrenIterator(\n returnFiber,\n currentFirstChild,\n newChildren,\n lanes\n ) {\n if (null == newChildren) throw Error(formatProdErrorMessage(151));\n for (\n var resultingFirstChild = null,\n previousNewFiber = null,\n oldFiber = currentFirstChild,\n newIdx = (currentFirstChild = 0),\n nextOldFiber = null,\n step = newChildren.next();\n null !== oldFiber && !step.done;\n newIdx++, step = newChildren.next()\n ) {\n oldFiber.index > newIdx\n ? ((nextOldFiber = oldFiber), (oldFiber = null))\n : (nextOldFiber = oldFiber.sibling);\n var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes);\n if (null === newFiber) {\n null === oldFiber && (oldFiber = nextOldFiber);\n break;\n }\n shouldTrackSideEffects &&\n oldFiber &&\n null === newFiber.alternate &&\n deleteChild(returnFiber, oldFiber);\n currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);\n null === previousNewFiber\n ? (resultingFirstChild = newFiber)\n : (previousNewFiber.sibling = newFiber);\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n if (step.done)\n return (\n deleteRemainingChildren(returnFiber, oldFiber),\n isHydrating && pushTreeFork(returnFiber, newIdx),\n resultingFirstChild\n );\n if (null === oldFiber) {\n for (; !step.done; newIdx++, step = newChildren.next())\n (step = createChild(returnFiber, step.value, lanes)),\n null !== step &&\n ((currentFirstChild = placeChild(step, currentFirstChild, newIdx)),\n null === previousNewFiber\n ? (resultingFirstChild = step)\n : (previousNewFiber.sibling = step),\n (previousNewFiber = step));\n isHydrating && pushTreeFork(returnFiber, newIdx);\n return resultingFirstChild;\n }\n for (\n oldFiber = mapRemainingChildren(oldFiber);\n !step.done;\n newIdx++, step = newChildren.next()\n )\n (step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes)),\n null !== step &&\n (shouldTrackSideEffects &&\n null !== step.alternate &&\n oldFiber.delete(null === step.key ? newIdx : step.key),\n (currentFirstChild = placeChild(step, currentFirstChild, newIdx)),\n null === previousNewFiber\n ? (resultingFirstChild = step)\n : (previousNewFiber.sibling = step),\n (previousNewFiber = step));\n shouldTrackSideEffects &&\n oldFiber.forEach(function (child) {\n return deleteChild(returnFiber, child);\n });\n isHydrating && pushTreeFork(returnFiber, newIdx);\n return resultingFirstChild;\n }\n function reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n ) {\n \"object\" === typeof newChild &&\n null !== newChild &&\n newChild.type === REACT_FRAGMENT_TYPE &&\n null === newChild.key &&\n (newChild = newChild.props.children);\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n a: {\n for (var key = newChild.key; null !== currentFirstChild; ) {\n if (currentFirstChild.key === key) {\n key = newChild.type;\n if (key === REACT_FRAGMENT_TYPE) {\n if (7 === currentFirstChild.tag) {\n deleteRemainingChildren(\n returnFiber,\n currentFirstChild.sibling\n );\n lanes = useFiber(\n currentFirstChild,\n newChild.props.children\n );\n lanes.return = returnFiber;\n returnFiber = lanes;\n break a;\n }\n } else if (\n currentFirstChild.elementType === key ||\n (\"object\" === typeof key &&\n null !== key &&\n key.$$typeof === REACT_LAZY_TYPE &&\n resolveLazy(key) === currentFirstChild.type)\n ) {\n deleteRemainingChildren(\n returnFiber,\n currentFirstChild.sibling\n );\n lanes = useFiber(currentFirstChild, newChild.props);\n coerceRef(lanes, newChild);\n lanes.return = returnFiber;\n returnFiber = lanes;\n break a;\n }\n deleteRemainingChildren(returnFiber, currentFirstChild);\n break;\n } else deleteChild(returnFiber, currentFirstChild);\n currentFirstChild = currentFirstChild.sibling;\n }\n newChild.type === REACT_FRAGMENT_TYPE\n ? ((lanes = createFiberFromFragment(\n newChild.props.children,\n returnFiber.mode,\n lanes,\n newChild.key\n )),\n (lanes.return = returnFiber),\n (returnFiber = lanes))\n : ((lanes = createFiberFromTypeAndProps(\n newChild.type,\n newChild.key,\n newChild.props,\n null,\n returnFiber.mode,\n lanes\n )),\n coerceRef(lanes, newChild),\n (lanes.return = returnFiber),\n (returnFiber = lanes));\n }\n return placeSingleChild(returnFiber);\n case REACT_PORTAL_TYPE:\n a: {\n for (key = newChild.key; null !== currentFirstChild; ) {\n if (currentFirstChild.key === key)\n if (\n 4 === currentFirstChild.tag &&\n currentFirstChild.stateNode.containerInfo ===\n newChild.containerInfo &&\n currentFirstChild.stateNode.implementation ===\n newChild.implementation\n ) {\n deleteRemainingChildren(\n returnFiber,\n currentFirstChild.sibling\n );\n lanes = useFiber(currentFirstChild, newChild.children || []);\n lanes.return = returnFiber;\n returnFiber = lanes;\n break a;\n } else {\n deleteRemainingChildren(returnFiber, currentFirstChild);\n break;\n }\n else deleteChild(returnFiber, currentFirstChild);\n currentFirstChild = currentFirstChild.sibling;\n }\n lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes);\n lanes.return = returnFiber;\n returnFiber = lanes;\n }\n return placeSingleChild(returnFiber);\n case REACT_LAZY_TYPE:\n return (\n (key = newChild._init),\n (newChild = key(newChild._payload)),\n reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n )\n );\n }\n if (isArrayImpl(newChild))\n return reconcileChildrenArray(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n );\n if (getIteratorFn(newChild)) {\n key = getIteratorFn(newChild);\n if (\"function\" !== typeof key) throw Error(formatProdErrorMessage(150));\n newChild = key.call(newChild);\n return reconcileChildrenIterator(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n );\n }\n if (\"function\" === typeof newChild.then)\n return reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n unwrapThenable(newChild),\n lanes\n );\n if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n return reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n readContextDuringReconciliation(returnFiber, newChild),\n lanes\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return (\"string\" === typeof newChild && \"\" !== newChild) ||\n \"number\" === typeof newChild ||\n \"bigint\" === typeof newChild\n ? ((newChild = \"\" + newChild),\n null !== currentFirstChild && 6 === currentFirstChild.tag\n ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),\n (lanes = useFiber(currentFirstChild, newChild)),\n (lanes.return = returnFiber),\n (returnFiber = lanes))\n : (deleteRemainingChildren(returnFiber, currentFirstChild),\n (lanes = createFiberFromText(newChild, returnFiber.mode, lanes)),\n (lanes.return = returnFiber),\n (returnFiber = lanes)),\n placeSingleChild(returnFiber))\n : deleteRemainingChildren(returnFiber, currentFirstChild);\n }\n return function (returnFiber, currentFirstChild, newChild, lanes) {\n try {\n thenableIndexCounter = 0;\n var firstChildFiber = reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n );\n thenableState = null;\n return firstChildFiber;\n } catch (x) {\n if (x === SuspenseException || x === SuspenseActionException) throw x;\n var fiber = createFiberImplClass(29, x, null, returnFiber.mode);\n fiber.lanes = lanes;\n fiber.return = returnFiber;\n return fiber;\n } finally {\n }\n };\n}\nvar reconcileChildFibers = createChildReconciler(!0),\n mountChildFibers = createChildReconciler(!1),\n suspenseHandlerStackCursor = createCursor(null),\n shellBoundary = null;\nfunction pushPrimaryTreeSuspenseHandler(handler) {\n var current = handler.alternate;\n push(suspenseStackCursor, suspenseStackCursor.current & 1);\n push(suspenseHandlerStackCursor, handler);\n null === shellBoundary &&\n (null === current || null !== currentTreeHiddenStackCursor.current\n ? (shellBoundary = handler)\n : null !== current.memoizedState && (shellBoundary = handler));\n}\nfunction pushOffscreenSuspenseHandler(fiber) {\n if (22 === fiber.tag) {\n if (\n (push(suspenseStackCursor, suspenseStackCursor.current),\n push(suspenseHandlerStackCursor, fiber),\n null === shellBoundary)\n ) {\n var current = fiber.alternate;\n null !== current &&\n null !== current.memoizedState &&\n (shellBoundary = fiber);\n }\n } else reuseSuspenseHandlerOnStack(fiber);\n}\nfunction reuseSuspenseHandlerOnStack() {\n push(suspenseStackCursor, suspenseStackCursor.current);\n push(suspenseHandlerStackCursor, suspenseHandlerStackCursor.current);\n}\nfunction popSuspenseHandler(fiber) {\n pop(suspenseHandlerStackCursor);\n shellBoundary === fiber && (shellBoundary = null);\n pop(suspenseStackCursor);\n}\nvar suspenseStackCursor = createCursor(0);\nfunction findFirstSuspended(row) {\n for (var node = row; null !== node; ) {\n if (13 === node.tag) {\n var state = node.memoizedState;\n if (\n null !== state &&\n ((state = state.dehydrated),\n null === state ||\n \"$?\" === state.data ||\n isSuspenseInstanceFallback(state))\n )\n return node;\n } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) {\n if (0 !== (node.flags & 128)) return node;\n } else if (null !== node.child) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n if (node === row) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === row) return null;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n return null;\n}\nfunction applyDerivedStateFromProps(\n workInProgress,\n ctor,\n getDerivedStateFromProps,\n nextProps\n) {\n ctor = workInProgress.memoizedState;\n getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor);\n getDerivedStateFromProps =\n null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps\n ? ctor\n : assign({}, ctor, getDerivedStateFromProps);\n workInProgress.memoizedState = getDerivedStateFromProps;\n 0 === workInProgress.lanes &&\n (workInProgress.updateQueue.baseState = getDerivedStateFromProps);\n}\nvar classComponentUpdater = {\n enqueueSetState: function (inst, payload, callback) {\n inst = inst._reactInternals;\n var lane = requestUpdateLane(),\n update = createUpdate(lane);\n update.payload = payload;\n void 0 !== callback && null !== callback && (update.callback = callback);\n payload = enqueueUpdate(inst, update, lane);\n null !== payload &&\n (scheduleUpdateOnFiber(payload, inst, lane),\n entangleTransitions(payload, inst, lane));\n },\n enqueueReplaceState: function (inst, payload, callback) {\n inst = inst._reactInternals;\n var lane = requestUpdateLane(),\n update = createUpdate(lane);\n update.tag = 1;\n update.payload = payload;\n void 0 !== callback && null !== callback && (update.callback = callback);\n payload = enqueueUpdate(inst, update, lane);\n null !== payload &&\n (scheduleUpdateOnFiber(payload, inst, lane),\n entangleTransitions(payload, inst, lane));\n },\n enqueueForceUpdate: function (inst, callback) {\n inst = inst._reactInternals;\n var lane = requestUpdateLane(),\n update = createUpdate(lane);\n update.tag = 2;\n void 0 !== callback && null !== callback && (update.callback = callback);\n callback = enqueueUpdate(inst, update, lane);\n null !== callback &&\n (scheduleUpdateOnFiber(callback, inst, lane),\n entangleTransitions(callback, inst, lane));\n }\n};\nfunction checkShouldComponentUpdate(\n workInProgress,\n ctor,\n oldProps,\n newProps,\n oldState,\n newState,\n nextContext\n) {\n workInProgress = workInProgress.stateNode;\n return \"function\" === typeof workInProgress.shouldComponentUpdate\n ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext)\n : ctor.prototype && ctor.prototype.isPureReactComponent\n ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)\n : !0;\n}\nfunction callComponentWillReceiveProps(\n workInProgress,\n instance,\n newProps,\n nextContext\n) {\n workInProgress = instance.state;\n \"function\" === typeof instance.componentWillReceiveProps &&\n instance.componentWillReceiveProps(newProps, nextContext);\n \"function\" === typeof instance.UNSAFE_componentWillReceiveProps &&\n instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);\n instance.state !== workInProgress &&\n classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n}\nfunction resolveClassComponentProps(Component, baseProps) {\n var newProps = baseProps;\n if (\"ref\" in baseProps) {\n newProps = {};\n for (var propName in baseProps)\n \"ref\" !== propName && (newProps[propName] = baseProps[propName]);\n }\n if ((Component = Component.defaultProps)) {\n newProps === baseProps && (newProps = assign({}, newProps));\n for (var propName$73 in Component)\n void 0 === newProps[propName$73] &&\n (newProps[propName$73] = Component[propName$73]);\n }\n return newProps;\n}\nvar reportGlobalError =\n \"function\" === typeof reportError\n ? reportError\n : function (error) {\n if (\n \"object\" === typeof window &&\n \"function\" === typeof window.ErrorEvent\n ) {\n var event = new window.ErrorEvent(\"error\", {\n bubbles: !0,\n cancelable: !0,\n message:\n \"object\" === typeof error &&\n null !== error &&\n \"string\" === typeof error.message\n ? String(error.message)\n : String(error),\n error: error\n });\n if (!window.dispatchEvent(event)) return;\n } else if (\n \"object\" === typeof process &&\n \"function\" === typeof process.emit\n ) {\n process.emit(\"uncaughtException\", error);\n return;\n }\n console.error(error);\n };\nfunction defaultOnUncaughtError(error) {\n reportGlobalError(error);\n}\nfunction defaultOnCaughtError(error) {\n console.error(error);\n}\nfunction defaultOnRecoverableError(error) {\n reportGlobalError(error);\n}\nfunction logUncaughtError(root, errorInfo) {\n try {\n var onUncaughtError = root.onUncaughtError;\n onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack });\n } catch (e$74) {\n setTimeout(function () {\n throw e$74;\n });\n }\n}\nfunction logCaughtError(root, boundary, errorInfo) {\n try {\n var onCaughtError = root.onCaughtError;\n onCaughtError(errorInfo.value, {\n componentStack: errorInfo.stack,\n errorBoundary: 1 === boundary.tag ? boundary.stateNode : null\n });\n } catch (e$75) {\n setTimeout(function () {\n throw e$75;\n });\n }\n}\nfunction createRootErrorUpdate(root, errorInfo, lane) {\n lane = createUpdate(lane);\n lane.tag = 3;\n lane.payload = { element: null };\n lane.callback = function () {\n logUncaughtError(root, errorInfo);\n };\n return lane;\n}\nfunction createClassErrorUpdate(lane) {\n lane = createUpdate(lane);\n lane.tag = 3;\n return lane;\n}\nfunction initializeClassErrorUpdate(update, root, fiber, errorInfo) {\n var getDerivedStateFromError = fiber.type.getDerivedStateFromError;\n if (\"function\" === typeof getDerivedStateFromError) {\n var error = errorInfo.value;\n update.payload = function () {\n return getDerivedStateFromError(error);\n };\n update.callback = function () {\n logCaughtError(root, fiber, errorInfo);\n };\n }\n var inst = fiber.stateNode;\n null !== inst &&\n \"function\" === typeof inst.componentDidCatch &&\n (update.callback = function () {\n logCaughtError(root, fiber, errorInfo);\n \"function\" !== typeof getDerivedStateFromError &&\n (null === legacyErrorBoundariesThatAlreadyFailed\n ? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))\n : legacyErrorBoundariesThatAlreadyFailed.add(this));\n var stack = errorInfo.stack;\n this.componentDidCatch(errorInfo.value, {\n componentStack: null !== stack ? stack : \"\"\n });\n });\n}\nfunction throwException(\n root,\n returnFiber,\n sourceFiber,\n value,\n rootRenderLanes\n) {\n sourceFiber.flags |= 32768;\n if (\n null !== value &&\n \"object\" === typeof value &&\n \"function\" === typeof value.then\n ) {\n returnFiber = sourceFiber.alternate;\n null !== returnFiber &&\n propagateParentContextChanges(\n returnFiber,\n sourceFiber,\n rootRenderLanes,\n !0\n );\n sourceFiber = suspenseHandlerStackCursor.current;\n if (null !== sourceFiber) {\n switch (sourceFiber.tag) {\n case 13:\n return (\n null === shellBoundary\n ? renderDidSuspendDelayIfPossible()\n : null === sourceFiber.alternate &&\n 0 === workInProgressRootExitStatus &&\n (workInProgressRootExitStatus = 3),\n (sourceFiber.flags &= -257),\n (sourceFiber.flags |= 65536),\n (sourceFiber.lanes = rootRenderLanes),\n value === noopSuspenseyCommitThenable\n ? (sourceFiber.flags |= 16384)\n : ((returnFiber = sourceFiber.updateQueue),\n null === returnFiber\n ? (sourceFiber.updateQueue = new Set([value]))\n : returnFiber.add(value),\n attachPingListener(root, value, rootRenderLanes)),\n !1\n );\n case 22:\n return (\n (sourceFiber.flags |= 65536),\n value === noopSuspenseyCommitThenable\n ? (sourceFiber.flags |= 16384)\n : ((returnFiber = sourceFiber.updateQueue),\n null === returnFiber\n ? ((returnFiber = {\n transitions: null,\n markerInstances: null,\n retryQueue: new Set([value])\n }),\n (sourceFiber.updateQueue = returnFiber))\n : ((sourceFiber = returnFiber.retryQueue),\n null === sourceFiber\n ? (returnFiber.retryQueue = new Set([value]))\n : sourceFiber.add(value)),\n attachPingListener(root, value, rootRenderLanes)),\n !1\n );\n }\n throw Error(formatProdErrorMessage(435, sourceFiber.tag));\n }\n attachPingListener(root, value, rootRenderLanes);\n renderDidSuspendDelayIfPossible();\n return !1;\n }\n if (isHydrating)\n return (\n (returnFiber = suspenseHandlerStackCursor.current),\n null !== returnFiber\n ? (0 === (returnFiber.flags & 65536) && (returnFiber.flags |= 256),\n (returnFiber.flags |= 65536),\n (returnFiber.lanes = rootRenderLanes),\n value !== HydrationMismatchException &&\n ((root = Error(formatProdErrorMessage(422), { cause: value })),\n queueHydrationError(createCapturedValueAtFiber(root, sourceFiber))))\n : (value !== HydrationMismatchException &&\n ((returnFiber = Error(formatProdErrorMessage(423), {\n cause: value\n })),\n queueHydrationError(\n createCapturedValueAtFiber(returnFiber, sourceFiber)\n )),\n (root = root.current.alternate),\n (root.flags |= 65536),\n (rootRenderLanes &= -rootRenderLanes),\n (root.lanes |= rootRenderLanes),\n (value = createCapturedValueAtFiber(value, sourceFiber)),\n (rootRenderLanes = createRootErrorUpdate(\n root.stateNode,\n value,\n rootRenderLanes\n )),\n enqueueCapturedUpdate(root, rootRenderLanes),\n 4 !== workInProgressRootExitStatus &&\n (workInProgressRootExitStatus = 2)),\n !1\n );\n var wrapperError = Error(formatProdErrorMessage(520), { cause: value });\n wrapperError = createCapturedValueAtFiber(wrapperError, sourceFiber);\n null === workInProgressRootConcurrentErrors\n ? (workInProgressRootConcurrentErrors = [wrapperError])\n : workInProgressRootConcurrentErrors.push(wrapperError);\n 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2);\n if (null === returnFiber) return !0;\n value = createCapturedValueAtFiber(value, sourceFiber);\n sourceFiber = returnFiber;\n do {\n switch (sourceFiber.tag) {\n case 3:\n return (\n (sourceFiber.flags |= 65536),\n (root = rootRenderLanes & -rootRenderLanes),\n (sourceFiber.lanes |= root),\n (root = createRootErrorUpdate(sourceFiber.stateNode, value, root)),\n enqueueCapturedUpdate(sourceFiber, root),\n !1\n );\n case 1:\n if (\n ((returnFiber = sourceFiber.type),\n (wrapperError = sourceFiber.stateNode),\n 0 === (sourceFiber.flags & 128) &&\n (\"function\" === typeof returnFiber.getDerivedStateFromError ||\n (null !== wrapperError &&\n \"function\" === typeof wrapperError.componentDidCatch &&\n (null === legacyErrorBoundariesThatAlreadyFailed ||\n !legacyErrorBoundariesThatAlreadyFailed.has(wrapperError)))))\n )\n return (\n (sourceFiber.flags |= 65536),\n (rootRenderLanes &= -rootRenderLanes),\n (sourceFiber.lanes |= rootRenderLanes),\n (rootRenderLanes = createClassErrorUpdate(rootRenderLanes)),\n initializeClassErrorUpdate(\n rootRenderLanes,\n root,\n sourceFiber,\n value\n ),\n enqueueCapturedUpdate(sourceFiber, rootRenderLanes),\n !1\n );\n }\n sourceFiber = sourceFiber.return;\n } while (null !== sourceFiber);\n return !1;\n}\nvar SelectiveHydrationException = Error(formatProdErrorMessage(461)),\n didReceiveUpdate = !1;\nfunction reconcileChildren(current, workInProgress, nextChildren, renderLanes) {\n workInProgress.child =\n null === current\n ? mountChildFibers(workInProgress, null, nextChildren, renderLanes)\n : reconcileChildFibers(\n workInProgress,\n current.child,\n nextChildren,\n renderLanes\n );\n}\nfunction updateForwardRef(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n Component = Component.render;\n var ref = workInProgress.ref;\n if (\"ref\" in nextProps) {\n var propsWithoutRef = {};\n for (var key in nextProps)\n \"ref\" !== key && (propsWithoutRef[key] = nextProps[key]);\n } else propsWithoutRef = nextProps;\n prepareToReadContext(workInProgress);\n nextProps = renderWithHooks(\n current,\n workInProgress,\n Component,\n propsWithoutRef,\n ref,\n renderLanes\n );\n key = checkDidRenderIdHook();\n if (null !== current && !didReceiveUpdate)\n return (\n bailoutHooks(current, workInProgress, renderLanes),\n bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n );\n isHydrating && key && pushMaterializedTreeId(workInProgress);\n workInProgress.flags |= 1;\n reconcileChildren(current, workInProgress, nextProps, renderLanes);\n return workInProgress.child;\n}\nfunction updateMemoComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n if (null === current) {\n var type = Component.type;\n if (\n \"function\" === typeof type &&\n !shouldConstruct(type) &&\n void 0 === type.defaultProps &&\n null === Component.compare\n )\n return (\n (workInProgress.tag = 15),\n (workInProgress.type = type),\n updateSimpleMemoComponent(\n current,\n workInProgress,\n type,\n nextProps,\n renderLanes\n )\n );\n current = createFiberFromTypeAndProps(\n Component.type,\n null,\n nextProps,\n workInProgress,\n workInProgress.mode,\n renderLanes\n );\n current.ref = workInProgress.ref;\n current.return = workInProgress;\n return (workInProgress.child = current);\n }\n type = current.child;\n if (!checkScheduledUpdateOrContext(current, renderLanes)) {\n var prevProps = type.memoizedProps;\n Component = Component.compare;\n Component = null !== Component ? Component : shallowEqual;\n if (Component(prevProps, nextProps) && current.ref === workInProgress.ref)\n return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n }\n workInProgress.flags |= 1;\n current = createWorkInProgress(type, nextProps);\n current.ref = workInProgress.ref;\n current.return = workInProgress;\n return (workInProgress.child = current);\n}\nfunction updateSimpleMemoComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n if (null !== current) {\n var prevProps = current.memoizedProps;\n if (\n shallowEqual(prevProps, nextProps) &&\n current.ref === workInProgress.ref\n )\n if (\n ((didReceiveUpdate = !1),\n (workInProgress.pendingProps = nextProps = prevProps),\n checkScheduledUpdateOrContext(current, renderLanes))\n )\n 0 !== (current.flags & 131072) && (didReceiveUpdate = !0);\n else\n return (\n (workInProgress.lanes = current.lanes),\n bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n );\n }\n return updateFunctionComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n );\n}\nfunction updateOffscreenComponent(current, workInProgress, renderLanes) {\n var nextProps = workInProgress.pendingProps,\n nextChildren = nextProps.children,\n prevState = null !== current ? current.memoizedState : null;\n if (\"hidden\" === nextProps.mode) {\n if (0 !== (workInProgress.flags & 128)) {\n nextProps =\n null !== prevState ? prevState.baseLanes | renderLanes : renderLanes;\n if (null !== current) {\n nextChildren = workInProgress.child = current.child;\n for (prevState = 0; null !== nextChildren; )\n (prevState =\n prevState | nextChildren.lanes | nextChildren.childLanes),\n (nextChildren = nextChildren.sibling);\n workInProgress.childLanes = prevState & ~nextProps;\n } else (workInProgress.childLanes = 0), (workInProgress.child = null);\n return deferHiddenOffscreenComponent(\n current,\n workInProgress,\n nextProps,\n renderLanes\n );\n }\n if (0 !== (renderLanes & 536870912))\n (workInProgress.memoizedState = { baseLanes: 0, cachePool: null }),\n null !== current &&\n pushTransition(\n workInProgress,\n null !== prevState ? prevState.cachePool : null\n ),\n null !== prevState\n ? pushHiddenContext(workInProgress, prevState)\n : reuseHiddenContextOnStack(),\n pushOffscreenSuspenseHandler(workInProgress);\n else\n return (\n (workInProgress.lanes = workInProgress.childLanes = 536870912),\n deferHiddenOffscreenComponent(\n current,\n workInProgress,\n null !== prevState ? prevState.baseLanes | renderLanes : renderLanes,\n renderLanes\n )\n );\n } else\n null !== prevState\n ? (pushTransition(workInProgress, prevState.cachePool),\n pushHiddenContext(workInProgress, prevState),\n reuseSuspenseHandlerOnStack(workInProgress),\n (workInProgress.memoizedState = null))\n : (null !== current && pushTransition(workInProgress, null),\n reuseHiddenContextOnStack(),\n reuseSuspenseHandlerOnStack(workInProgress));\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n return workInProgress.child;\n}\nfunction deferHiddenOffscreenComponent(\n current,\n workInProgress,\n nextBaseLanes,\n renderLanes\n) {\n var JSCompiler_inline_result = peekCacheFromPool();\n JSCompiler_inline_result =\n null === JSCompiler_inline_result\n ? null\n : { parent: CacheContext._currentValue, pool: JSCompiler_inline_result };\n workInProgress.memoizedState = {\n baseLanes: nextBaseLanes,\n cachePool: JSCompiler_inline_result\n };\n null !== current && pushTransition(workInProgress, null);\n reuseHiddenContextOnStack();\n pushOffscreenSuspenseHandler(workInProgress);\n null !== current &&\n propagateParentContextChanges(current, workInProgress, renderLanes, !0);\n return null;\n}\nfunction markRef(current, workInProgress) {\n var ref = workInProgress.ref;\n if (null === ref)\n null !== current &&\n null !== current.ref &&\n (workInProgress.flags |= 4194816);\n else {\n if (\"function\" !== typeof ref && \"object\" !== typeof ref)\n throw Error(formatProdErrorMessage(284));\n if (null === current || current.ref !== ref)\n workInProgress.flags |= 4194816;\n }\n}\nfunction updateFunctionComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n prepareToReadContext(workInProgress);\n Component = renderWithHooks(\n current,\n workInProgress,\n Component,\n nextProps,\n void 0,\n renderLanes\n );\n nextProps = checkDidRenderIdHook();\n if (null !== current && !didReceiveUpdate)\n return (\n bailoutHooks(current, workInProgress, renderLanes),\n bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n );\n isHydrating && nextProps && pushMaterializedTreeId(workInProgress);\n workInProgress.flags |= 1;\n reconcileChildren(current, workInProgress, Component, renderLanes);\n return workInProgress.child;\n}\nfunction replayFunctionComponent(\n current,\n workInProgress,\n nextProps,\n Component,\n secondArg,\n renderLanes\n) {\n prepareToReadContext(workInProgress);\n workInProgress.updateQueue = null;\n nextProps = renderWithHooksAgain(\n workInProgress,\n Component,\n nextProps,\n secondArg\n );\n finishRenderingHooks(current);\n Component = checkDidRenderIdHook();\n if (null !== current && !didReceiveUpdate)\n return (\n bailoutHooks(current, workInProgress, renderLanes),\n bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n );\n isHydrating && Component && pushMaterializedTreeId(workInProgress);\n workInProgress.flags |= 1;\n reconcileChildren(current, workInProgress, nextProps, renderLanes);\n return workInProgress.child;\n}\nfunction updateClassComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n prepareToReadContext(workInProgress);\n if (null === workInProgress.stateNode) {\n var context = emptyContextObject,\n contextType = Component.contextType;\n \"object\" === typeof contextType &&\n null !== contextType &&\n (context = readContext(contextType));\n context = new Component(nextProps, context);\n workInProgress.memoizedState =\n null !== context.state && void 0 !== context.state ? context.state : null;\n context.updater = classComponentUpdater;\n workInProgress.stateNode = context;\n context._reactInternals = workInProgress;\n context = workInProgress.stateNode;\n context.props = nextProps;\n context.state = workInProgress.memoizedState;\n context.refs = {};\n initializeUpdateQueue(workInProgress);\n contextType = Component.contextType;\n context.context =\n \"object\" === typeof contextType && null !== contextType\n ? readContext(contextType)\n : emptyContextObject;\n context.state = workInProgress.memoizedState;\n contextType = Component.getDerivedStateFromProps;\n \"function\" === typeof contextType &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n contextType,\n nextProps\n ),\n (context.state = workInProgress.memoizedState));\n \"function\" === typeof Component.getDerivedStateFromProps ||\n \"function\" === typeof context.getSnapshotBeforeUpdate ||\n (\"function\" !== typeof context.UNSAFE_componentWillMount &&\n \"function\" !== typeof context.componentWillMount) ||\n ((contextType = context.state),\n \"function\" === typeof context.componentWillMount &&\n context.componentWillMount(),\n \"function\" === typeof context.UNSAFE_componentWillMount &&\n context.UNSAFE_componentWillMount(),\n contextType !== context.state &&\n classComponentUpdater.enqueueReplaceState(context, context.state, null),\n processUpdateQueue(workInProgress, nextProps, context, renderLanes),\n suspendIfUpdateReadFromEntangledAsyncAction(),\n (context.state = workInProgress.memoizedState));\n \"function\" === typeof context.componentDidMount &&\n (workInProgress.flags |= 4194308);\n nextProps = !0;\n } else if (null === current) {\n context = workInProgress.stateNode;\n var unresolvedOldProps = workInProgress.memoizedProps,\n oldProps = resolveClassComponentProps(Component, unresolvedOldProps);\n context.props = oldProps;\n var oldContext = context.context,\n contextType$jscomp$0 = Component.contextType;\n contextType = emptyContextObject;\n \"object\" === typeof contextType$jscomp$0 &&\n null !== contextType$jscomp$0 &&\n (contextType = readContext(contextType$jscomp$0));\n var getDerivedStateFromProps = Component.getDerivedStateFromProps;\n contextType$jscomp$0 =\n \"function\" === typeof getDerivedStateFromProps ||\n \"function\" === typeof context.getSnapshotBeforeUpdate;\n unresolvedOldProps = workInProgress.pendingProps !== unresolvedOldProps;\n contextType$jscomp$0 ||\n (\"function\" !== typeof context.UNSAFE_componentWillReceiveProps &&\n \"function\" !== typeof context.componentWillReceiveProps) ||\n ((unresolvedOldProps || oldContext !== contextType) &&\n callComponentWillReceiveProps(\n workInProgress,\n context,\n nextProps,\n contextType\n ));\n hasForceUpdate = !1;\n var oldState = workInProgress.memoizedState;\n context.state = oldState;\n processUpdateQueue(workInProgress, nextProps, context, renderLanes);\n suspendIfUpdateReadFromEntangledAsyncAction();\n oldContext = workInProgress.memoizedState;\n unresolvedOldProps || oldState !== oldContext || hasForceUpdate\n ? (\"function\" === typeof getDerivedStateFromProps &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n getDerivedStateFromProps,\n nextProps\n ),\n (oldContext = workInProgress.memoizedState)),\n (oldProps =\n hasForceUpdate ||\n checkShouldComponentUpdate(\n workInProgress,\n Component,\n oldProps,\n nextProps,\n oldState,\n oldContext,\n contextType\n ))\n ? (contextType$jscomp$0 ||\n (\"function\" !== typeof context.UNSAFE_componentWillMount &&\n \"function\" !== typeof context.componentWillMount) ||\n (\"function\" === typeof context.componentWillMount &&\n context.componentWillMount(),\n \"function\" === typeof context.UNSAFE_componentWillMount &&\n context.UNSAFE_componentWillMount()),\n \"function\" === typeof context.componentDidMount &&\n (workInProgress.flags |= 4194308))\n : (\"function\" === typeof context.componentDidMount &&\n (workInProgress.flags |= 4194308),\n (workInProgress.memoizedProps = nextProps),\n (workInProgress.memoizedState = oldContext)),\n (context.props = nextProps),\n (context.state = oldContext),\n (context.context = contextType),\n (nextProps = oldProps))\n : (\"function\" === typeof context.componentDidMount &&\n (workInProgress.flags |= 4194308),\n (nextProps = !1));\n } else {\n context = workInProgress.stateNode;\n cloneUpdateQueue(current, workInProgress);\n contextType = workInProgress.memoizedProps;\n contextType$jscomp$0 = resolveClassComponentProps(Component, contextType);\n context.props = contextType$jscomp$0;\n getDerivedStateFromProps = workInProgress.pendingProps;\n oldState = context.context;\n oldContext = Component.contextType;\n oldProps = emptyContextObject;\n \"object\" === typeof oldContext &&\n null !== oldContext &&\n (oldProps = readContext(oldContext));\n unresolvedOldProps = Component.getDerivedStateFromProps;\n (oldContext =\n \"function\" === typeof unresolvedOldProps ||\n \"function\" === typeof context.getSnapshotBeforeUpdate) ||\n (\"function\" !== typeof context.UNSAFE_componentWillReceiveProps &&\n \"function\" !== typeof context.componentWillReceiveProps) ||\n ((contextType !== getDerivedStateFromProps || oldState !== oldProps) &&\n callComponentWillReceiveProps(\n workInProgress,\n context,\n nextProps,\n oldProps\n ));\n hasForceUpdate = !1;\n oldState = workInProgress.memoizedState;\n context.state = oldState;\n processUpdateQueue(workInProgress, nextProps, context, renderLanes);\n suspendIfUpdateReadFromEntangledAsyncAction();\n var newState = workInProgress.memoizedState;\n contextType !== getDerivedStateFromProps ||\n oldState !== newState ||\n hasForceUpdate ||\n (null !== current &&\n null !== current.dependencies &&\n checkIfContextChanged(current.dependencies))\n ? (\"function\" === typeof unresolvedOldProps &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n unresolvedOldProps,\n nextProps\n ),\n (newState = workInProgress.memoizedState)),\n (contextType$jscomp$0 =\n hasForceUpdate ||\n checkShouldComponentUpdate(\n workInProgress,\n Component,\n contextType$jscomp$0,\n nextProps,\n oldState,\n newState,\n oldProps\n ) ||\n (null !== current &&\n null !== current.dependencies &&\n checkIfContextChanged(current.dependencies)))\n ? (oldContext ||\n (\"function\" !== typeof context.UNSAFE_componentWillUpdate &&\n \"function\" !== typeof context.componentWillUpdate) ||\n (\"function\" === typeof context.componentWillUpdate &&\n context.componentWillUpdate(nextProps, newState, oldProps),\n \"function\" === typeof context.UNSAFE_componentWillUpdate &&\n context.UNSAFE_componentWillUpdate(\n nextProps,\n newState,\n oldProps\n )),\n \"function\" === typeof context.componentDidUpdate &&\n (workInProgress.flags |= 4),\n \"function\" === typeof context.getSnapshotBeforeUpdate &&\n (workInProgress.flags |= 1024))\n : (\"function\" !== typeof context.componentDidUpdate ||\n (contextType === current.memoizedProps &&\n oldState === current.memoizedState) ||\n (workInProgress.flags |= 4),\n \"function\" !== typeof context.getSnapshotBeforeUpdate ||\n (contextType === current.memoizedProps &&\n oldState === current.memoizedState) ||\n (workInProgress.flags |= 1024),\n (workInProgress.memoizedProps = nextProps),\n (workInProgress.memoizedState = newState)),\n (context.props = nextProps),\n (context.state = newState),\n (context.context = oldProps),\n (nextProps = contextType$jscomp$0))\n : (\"function\" !== typeof context.componentDidUpdate ||\n (contextType === current.memoizedProps &&\n oldState === current.memoizedState) ||\n (workInProgress.flags |= 4),\n \"function\" !== typeof context.getSnapshotBeforeUpdate ||\n (contextType === current.memoizedProps &&\n oldState === current.memoizedState) ||\n (workInProgress.flags |= 1024),\n (nextProps = !1));\n }\n context = nextProps;\n markRef(current, workInProgress);\n nextProps = 0 !== (workInProgress.flags & 128);\n context || nextProps\n ? ((context = workInProgress.stateNode),\n (Component =\n nextProps && \"function\" !== typeof Component.getDerivedStateFromError\n ? null\n : context.render()),\n (workInProgress.flags |= 1),\n null !== current && nextProps\n ? ((workInProgress.child = reconcileChildFibers(\n workInProgress,\n current.child,\n null,\n renderLanes\n )),\n (workInProgress.child = reconcileChildFibers(\n workInProgress,\n null,\n Component,\n renderLanes\n )))\n : reconcileChildren(current, workInProgress, Component, renderLanes),\n (workInProgress.memoizedState = context.state),\n (current = workInProgress.child))\n : (current = bailoutOnAlreadyFinishedWork(\n current,\n workInProgress,\n renderLanes\n ));\n return current;\n}\nfunction mountHostRootWithoutHydrating(\n current,\n workInProgress,\n nextChildren,\n renderLanes\n) {\n resetHydrationState();\n workInProgress.flags |= 256;\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n return workInProgress.child;\n}\nvar SUSPENDED_MARKER = {\n dehydrated: null,\n treeContext: null,\n retryLane: 0,\n hydrationErrors: null\n};\nfunction mountSuspenseOffscreenState(renderLanes) {\n return { baseLanes: renderLanes, cachePool: getSuspendedCache() };\n}\nfunction getRemainingWorkInPrimaryTree(\n current,\n primaryTreeDidDefer,\n renderLanes\n) {\n current = null !== current ? current.childLanes & ~renderLanes : 0;\n primaryTreeDidDefer && (current |= workInProgressDeferredLane);\n return current;\n}\nfunction updateSuspenseComponent(current, workInProgress, renderLanes) {\n var nextProps = workInProgress.pendingProps,\n showFallback = !1,\n didSuspend = 0 !== (workInProgress.flags & 128),\n JSCompiler_temp;\n (JSCompiler_temp = didSuspend) ||\n (JSCompiler_temp =\n null !== current && null === current.memoizedState\n ? !1\n : 0 !== (suspenseStackCursor.current & 2));\n JSCompiler_temp && ((showFallback = !0), (workInProgress.flags &= -129));\n JSCompiler_temp = 0 !== (workInProgress.flags & 32);\n workInProgress.flags &= -33;\n if (null === current) {\n if (isHydrating) {\n showFallback\n ? pushPrimaryTreeSuspenseHandler(workInProgress)\n : reuseSuspenseHandlerOnStack(workInProgress);\n if (isHydrating) {\n var nextInstance = nextHydratableInstance,\n JSCompiler_temp$jscomp$0;\n if ((JSCompiler_temp$jscomp$0 = nextInstance)) {\n c: {\n JSCompiler_temp$jscomp$0 = nextInstance;\n for (\n nextInstance = rootOrSingletonContext;\n 8 !== JSCompiler_temp$jscomp$0.nodeType;\n\n ) {\n if (!nextInstance) {\n nextInstance = null;\n break c;\n }\n JSCompiler_temp$jscomp$0 = getNextHydratable(\n JSCompiler_temp$jscomp$0.nextSibling\n );\n if (null === JSCompiler_temp$jscomp$0) {\n nextInstance = null;\n break c;\n }\n }\n nextInstance = JSCompiler_temp$jscomp$0;\n }\n null !== nextInstance\n ? ((workInProgress.memoizedState = {\n dehydrated: nextInstance,\n treeContext:\n null !== treeContextProvider\n ? { id: treeContextId, overflow: treeContextOverflow }\n : null,\n retryLane: 536870912,\n hydrationErrors: null\n }),\n (JSCompiler_temp$jscomp$0 = createFiberImplClass(\n 18,\n null,\n null,\n 0\n )),\n (JSCompiler_temp$jscomp$0.stateNode = nextInstance),\n (JSCompiler_temp$jscomp$0.return = workInProgress),\n (workInProgress.child = JSCompiler_temp$jscomp$0),\n (hydrationParentFiber = workInProgress),\n (nextHydratableInstance = null),\n (JSCompiler_temp$jscomp$0 = !0))\n : (JSCompiler_temp$jscomp$0 = !1);\n }\n JSCompiler_temp$jscomp$0 || throwOnHydrationMismatch(workInProgress);\n }\n nextInstance = workInProgress.memoizedState;\n if (\n null !== nextInstance &&\n ((nextInstance = nextInstance.dehydrated), null !== nextInstance)\n )\n return (\n isSuspenseInstanceFallback(nextInstance)\n ? (workInProgress.lanes = 32)\n : (workInProgress.lanes = 536870912),\n null\n );\n popSuspenseHandler(workInProgress);\n }\n nextInstance = nextProps.children;\n nextProps = nextProps.fallback;\n if (showFallback)\n return (\n reuseSuspenseHandlerOnStack(workInProgress),\n (showFallback = workInProgress.mode),\n (nextInstance = mountWorkInProgressOffscreenFiber(\n { mode: \"hidden\", children: nextInstance },\n showFallback\n )),\n (nextProps = createFiberFromFragment(\n nextProps,\n showFallback,\n renderLanes,\n null\n )),\n (nextInstance.return = workInProgress),\n (nextProps.return = workInProgress),\n (nextInstance.sibling = nextProps),\n (workInProgress.child = nextInstance),\n (showFallback = workInProgress.child),\n (showFallback.memoizedState = mountSuspenseOffscreenState(renderLanes)),\n (showFallback.childLanes = getRemainingWorkInPrimaryTree(\n current,\n JSCompiler_temp,\n renderLanes\n )),\n (workInProgress.memoizedState = SUSPENDED_MARKER),\n nextProps\n );\n pushPrimaryTreeSuspenseHandler(workInProgress);\n return mountSuspensePrimaryChildren(workInProgress, nextInstance);\n }\n JSCompiler_temp$jscomp$0 = current.memoizedState;\n if (\n null !== JSCompiler_temp$jscomp$0 &&\n ((nextInstance = JSCompiler_temp$jscomp$0.dehydrated),\n null !== nextInstance)\n ) {\n if (didSuspend)\n workInProgress.flags & 256\n ? (pushPrimaryTreeSuspenseHandler(workInProgress),\n (workInProgress.flags &= -257),\n (workInProgress = retrySuspenseComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n )))\n : null !== workInProgress.memoizedState\n ? (reuseSuspenseHandlerOnStack(workInProgress),\n (workInProgress.child = current.child),\n (workInProgress.flags |= 128),\n (workInProgress = null))\n : (reuseSuspenseHandlerOnStack(workInProgress),\n (showFallback = nextProps.fallback),\n (nextInstance = workInProgress.mode),\n (nextProps = mountWorkInProgressOffscreenFiber(\n { mode: \"visible\", children: nextProps.children },\n nextInstance\n )),\n (showFallback = createFiberFromFragment(\n showFallback,\n nextInstance,\n renderLanes,\n null\n )),\n (showFallback.flags |= 2),\n (nextProps.return = workInProgress),\n (showFallback.return = workInProgress),\n (nextProps.sibling = showFallback),\n (workInProgress.child = nextProps),\n reconcileChildFibers(\n workInProgress,\n current.child,\n null,\n renderLanes\n ),\n (nextProps = workInProgress.child),\n (nextProps.memoizedState =\n mountSuspenseOffscreenState(renderLanes)),\n (nextProps.childLanes = getRemainingWorkInPrimaryTree(\n current,\n JSCompiler_temp,\n renderLanes\n )),\n (workInProgress.memoizedState = SUSPENDED_MARKER),\n (workInProgress = showFallback));\n else if (\n (pushPrimaryTreeSuspenseHandler(workInProgress),\n isSuspenseInstanceFallback(nextInstance))\n ) {\n JSCompiler_temp =\n nextInstance.nextSibling && nextInstance.nextSibling.dataset;\n if (JSCompiler_temp) var digest = JSCompiler_temp.dgst;\n JSCompiler_temp = digest;\n nextProps = Error(formatProdErrorMessage(419));\n nextProps.stack = \"\";\n nextProps.digest = JSCompiler_temp;\n queueHydrationError({ value: nextProps, source: null, stack: null });\n workInProgress = retrySuspenseComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n );\n } else if (\n (didReceiveUpdate ||\n propagateParentContextChanges(current, workInProgress, renderLanes, !1),\n (JSCompiler_temp = 0 !== (renderLanes & current.childLanes)),\n didReceiveUpdate || JSCompiler_temp)\n ) {\n JSCompiler_temp = workInProgressRoot;\n if (\n null !== JSCompiler_temp &&\n ((nextProps = renderLanes & -renderLanes),\n (nextProps =\n 0 !== (nextProps & 42)\n ? 1\n : getBumpedLaneForHydrationByLane(nextProps)),\n (nextProps =\n 0 !== (nextProps & (JSCompiler_temp.suspendedLanes | renderLanes))\n ? 0\n : nextProps),\n 0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane)\n )\n throw (\n ((JSCompiler_temp$jscomp$0.retryLane = nextProps),\n enqueueConcurrentRenderForLane(current, nextProps),\n scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps),\n SelectiveHydrationException)\n );\n \"$?\" === nextInstance.data || renderDidSuspendDelayIfPossible();\n workInProgress = retrySuspenseComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n );\n } else\n \"$?\" === nextInstance.data\n ? ((workInProgress.flags |= 192),\n (workInProgress.child = current.child),\n (workInProgress = null))\n : ((current = JSCompiler_temp$jscomp$0.treeContext),\n (nextHydratableInstance = getNextHydratable(\n nextInstance.nextSibling\n )),\n (hydrationParentFiber = workInProgress),\n (isHydrating = !0),\n (hydrationErrors = null),\n (rootOrSingletonContext = !1),\n null !== current &&\n ((idStack[idStackIndex++] = treeContextId),\n (idStack[idStackIndex++] = treeContextOverflow),\n (idStack[idStackIndex++] = treeContextProvider),\n (treeContextId = current.id),\n (treeContextOverflow = current.overflow),\n (treeContextProvider = workInProgress)),\n (workInProgress = mountSuspensePrimaryChildren(\n workInProgress,\n nextProps.children\n )),\n (workInProgress.flags |= 4096));\n return workInProgress;\n }\n if (showFallback)\n return (\n reuseSuspenseHandlerOnStack(workInProgress),\n (showFallback = nextProps.fallback),\n (nextInstance = workInProgress.mode),\n (JSCompiler_temp$jscomp$0 = current.child),\n (digest = JSCompiler_temp$jscomp$0.sibling),\n (nextProps = createWorkInProgress(JSCompiler_temp$jscomp$0, {\n mode: \"hidden\",\n children: nextProps.children\n })),\n (nextProps.subtreeFlags =\n JSCompiler_temp$jscomp$0.subtreeFlags & 65011712),\n null !== digest\n ? (showFallback = createWorkInProgress(digest, showFallback))\n : ((showFallback = createFiberFromFragment(\n showFallback,\n nextInstance,\n renderLanes,\n null\n )),\n (showFallback.flags |= 2)),\n (showFallback.return = workInProgress),\n (nextProps.return = workInProgress),\n (nextProps.sibling = showFallback),\n (workInProgress.child = nextProps),\n (nextProps = showFallback),\n (showFallback = workInProgress.child),\n (nextInstance = current.child.memoizedState),\n null === nextInstance\n ? (nextInstance = mountSuspenseOffscreenState(renderLanes))\n : ((JSCompiler_temp$jscomp$0 = nextInstance.cachePool),\n null !== JSCompiler_temp$jscomp$0\n ? ((digest = CacheContext._currentValue),\n (JSCompiler_temp$jscomp$0 =\n JSCompiler_temp$jscomp$0.parent !== digest\n ? { parent: digest, pool: digest }\n : JSCompiler_temp$jscomp$0))\n : (JSCompiler_temp$jscomp$0 = getSuspendedCache()),\n (nextInstance = {\n baseLanes: nextInstance.baseLanes | renderLanes,\n cachePool: JSCompiler_temp$jscomp$0\n })),\n (showFallback.memoizedState = nextInstance),\n (showFallback.childLanes = getRemainingWorkInPrimaryTree(\n current,\n JSCompiler_temp,\n renderLanes\n )),\n (workInProgress.memoizedState = SUSPENDED_MARKER),\n nextProps\n );\n pushPrimaryTreeSuspenseHandler(workInProgress);\n renderLanes = current.child;\n current = renderLanes.sibling;\n renderLanes = createWorkInProgress(renderLanes, {\n mode: \"visible\",\n children: nextProps.children\n });\n renderLanes.return = workInProgress;\n renderLanes.sibling = null;\n null !== current &&\n ((JSCompiler_temp = workInProgress.deletions),\n null === JSCompiler_temp\n ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16))\n : JSCompiler_temp.push(current));\n workInProgress.child = renderLanes;\n workInProgress.memoizedState = null;\n return renderLanes;\n}\nfunction mountSuspensePrimaryChildren(workInProgress, primaryChildren) {\n primaryChildren = mountWorkInProgressOffscreenFiber(\n { mode: \"visible\", children: primaryChildren },\n workInProgress.mode\n );\n primaryChildren.return = workInProgress;\n return (workInProgress.child = primaryChildren);\n}\nfunction mountWorkInProgressOffscreenFiber(offscreenProps, mode) {\n offscreenProps = createFiberImplClass(22, offscreenProps, null, mode);\n offscreenProps.lanes = 0;\n offscreenProps.stateNode = {\n _visibility: 1,\n _pendingMarkers: null,\n _retryCache: null,\n _transitions: null\n };\n return offscreenProps;\n}\nfunction retrySuspenseComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n) {\n reconcileChildFibers(workInProgress, current.child, null, renderLanes);\n current = mountSuspensePrimaryChildren(\n workInProgress,\n workInProgress.pendingProps.children\n );\n current.flags |= 2;\n workInProgress.memoizedState = null;\n return current;\n}\nfunction scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) {\n fiber.lanes |= renderLanes;\n var alternate = fiber.alternate;\n null !== alternate && (alternate.lanes |= renderLanes);\n scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot);\n}\nfunction initSuspenseListRenderState(\n workInProgress,\n isBackwards,\n tail,\n lastContentRow,\n tailMode\n) {\n var renderState = workInProgress.memoizedState;\n null === renderState\n ? (workInProgress.memoizedState = {\n isBackwards: isBackwards,\n rendering: null,\n renderingStartTime: 0,\n last: lastContentRow,\n tail: tail,\n tailMode: tailMode\n })\n : ((renderState.isBackwards = isBackwards),\n (renderState.rendering = null),\n (renderState.renderingStartTime = 0),\n (renderState.last = lastContentRow),\n (renderState.tail = tail),\n (renderState.tailMode = tailMode));\n}\nfunction updateSuspenseListComponent(current, workInProgress, renderLanes) {\n var nextProps = workInProgress.pendingProps,\n revealOrder = nextProps.revealOrder,\n tailMode = nextProps.tail;\n reconcileChildren(current, workInProgress, nextProps.children, renderLanes);\n nextProps = suspenseStackCursor.current;\n if (0 !== (nextProps & 2))\n (nextProps = (nextProps & 1) | 2), (workInProgress.flags |= 128);\n else {\n if (null !== current && 0 !== (current.flags & 128))\n a: for (current = workInProgress.child; null !== current; ) {\n if (13 === current.tag)\n null !== current.memoizedState &&\n scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);\n else if (19 === current.tag)\n scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);\n else if (null !== current.child) {\n current.child.return = current;\n current = current.child;\n continue;\n }\n if (current === workInProgress) break a;\n for (; null === current.sibling; ) {\n if (null === current.return || current.return === workInProgress)\n break a;\n current = current.return;\n }\n current.sibling.return = current.return;\n current = current.sibling;\n }\n nextProps &= 1;\n }\n push(suspenseStackCursor, nextProps);\n switch (revealOrder) {\n case \"forwards\":\n renderLanes = workInProgress.child;\n for (revealOrder = null; null !== renderLanes; )\n (current = renderLanes.alternate),\n null !== current &&\n null === findFirstSuspended(current) &&\n (revealOrder = renderLanes),\n (renderLanes = renderLanes.sibling);\n renderLanes = revealOrder;\n null === renderLanes\n ? ((revealOrder = workInProgress.child), (workInProgress.child = null))\n : ((revealOrder = renderLanes.sibling), (renderLanes.sibling = null));\n initSuspenseListRenderState(\n workInProgress,\n !1,\n revealOrder,\n renderLanes,\n tailMode\n );\n break;\n case \"backwards\":\n renderLanes = null;\n revealOrder = workInProgress.child;\n for (workInProgress.child = null; null !== revealOrder; ) {\n current = revealOrder.alternate;\n if (null !== current && null === findFirstSuspended(current)) {\n workInProgress.child = revealOrder;\n break;\n }\n current = revealOrder.sibling;\n revealOrder.sibling = renderLanes;\n renderLanes = revealOrder;\n revealOrder = current;\n }\n initSuspenseListRenderState(\n workInProgress,\n !0,\n renderLanes,\n null,\n tailMode\n );\n break;\n case \"together\":\n initSuspenseListRenderState(workInProgress, !1, null, null, void 0);\n break;\n default:\n workInProgress.memoizedState = null;\n }\n return workInProgress.child;\n}\nfunction bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {\n null !== current && (workInProgress.dependencies = current.dependencies);\n workInProgressRootSkippedLanes |= workInProgress.lanes;\n if (0 === (renderLanes & workInProgress.childLanes))\n if (null !== current) {\n if (\n (propagateParentContextChanges(\n current,\n workInProgress,\n renderLanes,\n !1\n ),\n 0 === (renderLanes & workInProgress.childLanes))\n )\n return null;\n } else return null;\n if (null !== current && workInProgress.child !== current.child)\n throw Error(formatProdErrorMessage(153));\n if (null !== workInProgress.child) {\n current = workInProgress.child;\n renderLanes = createWorkInProgress(current, current.pendingProps);\n workInProgress.child = renderLanes;\n for (renderLanes.return = workInProgress; null !== current.sibling; )\n (current = current.sibling),\n (renderLanes = renderLanes.sibling =\n createWorkInProgress(current, current.pendingProps)),\n (renderLanes.return = workInProgress);\n renderLanes.sibling = null;\n }\n return workInProgress.child;\n}\nfunction checkScheduledUpdateOrContext(current, renderLanes) {\n if (0 !== (current.lanes & renderLanes)) return !0;\n current = current.dependencies;\n return null !== current && checkIfContextChanged(current) ? !0 : !1;\n}\nfunction attemptEarlyBailoutIfNoScheduledUpdate(\n current,\n workInProgress,\n renderLanes\n) {\n switch (workInProgress.tag) {\n case 3:\n pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);\n pushProvider(workInProgress, CacheContext, current.memoizedState.cache);\n resetHydrationState();\n break;\n case 27:\n case 5:\n pushHostContext(workInProgress);\n break;\n case 4:\n pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);\n break;\n case 10:\n pushProvider(\n workInProgress,\n workInProgress.type,\n workInProgress.memoizedProps.value\n );\n break;\n case 13:\n var state = workInProgress.memoizedState;\n if (null !== state) {\n if (null !== state.dehydrated)\n return (\n pushPrimaryTreeSuspenseHandler(workInProgress),\n (workInProgress.flags |= 128),\n null\n );\n if (0 !== (renderLanes & workInProgress.child.childLanes))\n return updateSuspenseComponent(current, workInProgress, renderLanes);\n pushPrimaryTreeSuspenseHandler(workInProgress);\n current = bailoutOnAlreadyFinishedWork(\n current,\n workInProgress,\n renderLanes\n );\n return null !== current ? current.sibling : null;\n }\n pushPrimaryTreeSuspenseHandler(workInProgress);\n break;\n case 19:\n var didSuspendBefore = 0 !== (current.flags & 128);\n state = 0 !== (renderLanes & workInProgress.childLanes);\n state ||\n (propagateParentContextChanges(\n current,\n workInProgress,\n renderLanes,\n !1\n ),\n (state = 0 !== (renderLanes & workInProgress.childLanes)));\n if (didSuspendBefore) {\n if (state)\n return updateSuspenseListComponent(\n current,\n workInProgress,\n renderLanes\n );\n workInProgress.flags |= 128;\n }\n didSuspendBefore = workInProgress.memoizedState;\n null !== didSuspendBefore &&\n ((didSuspendBefore.rendering = null),\n (didSuspendBefore.tail = null),\n (didSuspendBefore.lastEffect = null));\n push(suspenseStackCursor, suspenseStackCursor.current);\n if (state) break;\n else return null;\n case 22:\n case 23:\n return (\n (workInProgress.lanes = 0),\n updateOffscreenComponent(current, workInProgress, renderLanes)\n );\n case 24:\n pushProvider(workInProgress, CacheContext, current.memoizedState.cache);\n }\n return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n}\nfunction beginWork(current, workInProgress, renderLanes) {\n if (null !== current)\n if (current.memoizedProps !== workInProgress.pendingProps)\n didReceiveUpdate = !0;\n else {\n if (\n !checkScheduledUpdateOrContext(current, renderLanes) &&\n 0 === (workInProgress.flags & 128)\n )\n return (\n (didReceiveUpdate = !1),\n attemptEarlyBailoutIfNoScheduledUpdate(\n current,\n workInProgress,\n renderLanes\n )\n );\n didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1;\n }\n else\n (didReceiveUpdate = !1),\n isHydrating &&\n 0 !== (workInProgress.flags & 1048576) &&\n pushTreeId(workInProgress, treeForkCount, workInProgress.index);\n workInProgress.lanes = 0;\n switch (workInProgress.tag) {\n case 16:\n a: {\n current = workInProgress.pendingProps;\n var lazyComponent = workInProgress.elementType,\n init = lazyComponent._init;\n lazyComponent = init(lazyComponent._payload);\n workInProgress.type = lazyComponent;\n if (\"function\" === typeof lazyComponent)\n shouldConstruct(lazyComponent)\n ? ((current = resolveClassComponentProps(lazyComponent, current)),\n (workInProgress.tag = 1),\n (workInProgress = updateClassComponent(\n null,\n workInProgress,\n lazyComponent,\n current,\n renderLanes\n )))\n : ((workInProgress.tag = 0),\n (workInProgress = updateFunctionComponent(\n null,\n workInProgress,\n lazyComponent,\n current,\n renderLanes\n )));\n else {\n if (void 0 !== lazyComponent && null !== lazyComponent)\n if (\n ((init = lazyComponent.$$typeof), init === REACT_FORWARD_REF_TYPE)\n ) {\n workInProgress.tag = 11;\n workInProgress = updateForwardRef(\n null,\n workInProgress,\n lazyComponent,\n current,\n renderLanes\n );\n break a;\n } else if (init === REACT_MEMO_TYPE) {\n workInProgress.tag = 14;\n workInProgress = updateMemoComponent(\n null,\n workInProgress,\n lazyComponent,\n current,\n renderLanes\n );\n break a;\n }\n workInProgress =\n getComponentNameFromType(lazyComponent) || lazyComponent;\n throw Error(formatProdErrorMessage(306, workInProgress, \"\"));\n }\n }\n return workInProgress;\n case 0:\n return updateFunctionComponent(\n current,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n renderLanes\n );\n case 1:\n return (\n (lazyComponent = workInProgress.type),\n (init = resolveClassComponentProps(\n lazyComponent,\n workInProgress.pendingProps\n )),\n updateClassComponent(\n current,\n workInProgress,\n lazyComponent,\n init,\n renderLanes\n )\n );\n case 3:\n a: {\n pushHostContainer(\n workInProgress,\n workInProgress.stateNode.containerInfo\n );\n if (null === current) throw Error(formatProdErrorMessage(387));\n lazyComponent = workInProgress.pendingProps;\n var prevState = workInProgress.memoizedState;\n init = prevState.element;\n cloneUpdateQueue(current, workInProgress);\n processUpdateQueue(workInProgress, lazyComponent, null, renderLanes);\n var nextState = workInProgress.memoizedState;\n lazyComponent = nextState.cache;\n pushProvider(workInProgress, CacheContext, lazyComponent);\n lazyComponent !== prevState.cache &&\n propagateContextChanges(\n workInProgress,\n [CacheContext],\n renderLanes,\n !0\n );\n suspendIfUpdateReadFromEntangledAsyncAction();\n lazyComponent = nextState.element;\n if (prevState.isDehydrated)\n if (\n ((prevState = {\n element: lazyComponent,\n isDehydrated: !1,\n cache: nextState.cache\n }),\n (workInProgress.updateQueue.baseState = prevState),\n (workInProgress.memoizedState = prevState),\n workInProgress.flags & 256)\n ) {\n workInProgress = mountHostRootWithoutHydrating(\n current,\n workInProgress,\n lazyComponent,\n renderLanes\n );\n break a;\n } else if (lazyComponent !== init) {\n init = createCapturedValueAtFiber(\n Error(formatProdErrorMessage(424)),\n workInProgress\n );\n queueHydrationError(init);\n workInProgress = mountHostRootWithoutHydrating(\n current,\n workInProgress,\n lazyComponent,\n renderLanes\n );\n break a;\n } else {\n current = workInProgress.stateNode.containerInfo;\n switch (current.nodeType) {\n case 9:\n current = current.body;\n break;\n default:\n current =\n \"HTML\" === current.nodeName\n ? current.ownerDocument.body\n : current;\n }\n nextHydratableInstance = getNextHydratable(current.firstChild);\n hydrationParentFiber = workInProgress;\n isHydrating = !0;\n hydrationErrors = null;\n rootOrSingletonContext = !0;\n renderLanes = mountChildFibers(\n workInProgress,\n null,\n lazyComponent,\n renderLanes\n );\n for (workInProgress.child = renderLanes; renderLanes; )\n (renderLanes.flags = (renderLanes.flags & -3) | 4096),\n (renderLanes = renderLanes.sibling);\n }\n else {\n resetHydrationState();\n if (lazyComponent === init) {\n workInProgress = bailoutOnAlreadyFinishedWork(\n current,\n workInProgress,\n renderLanes\n );\n break a;\n }\n reconcileChildren(\n current,\n workInProgress,\n lazyComponent,\n renderLanes\n );\n }\n workInProgress = workInProgress.child;\n }\n return workInProgress;\n case 26:\n return (\n markRef(current, workInProgress),\n null === current\n ? (renderLanes = getResource(\n workInProgress.type,\n null,\n workInProgress.pendingProps,\n null\n ))\n ? (workInProgress.memoizedState = renderLanes)\n : isHydrating ||\n ((renderLanes = workInProgress.type),\n (current = workInProgress.pendingProps),\n (lazyComponent = getOwnerDocumentFromRootContainer(\n rootInstanceStackCursor.current\n ).createElement(renderLanes)),\n (lazyComponent[internalInstanceKey] = workInProgress),\n (lazyComponent[internalPropsKey] = current),\n setInitialProperties(lazyComponent, renderLanes, current),\n markNodeAsHoistable(lazyComponent),\n (workInProgress.stateNode = lazyComponent))\n : (workInProgress.memoizedState = getResource(\n workInProgress.type,\n current.memoizedProps,\n workInProgress.pendingProps,\n current.memoizedState\n )),\n null\n );\n case 27:\n return (\n pushHostContext(workInProgress),\n null === current &&\n isHydrating &&\n ((lazyComponent = workInProgress.stateNode =\n resolveSingletonInstance(\n workInProgress.type,\n workInProgress.pendingProps,\n rootInstanceStackCursor.current\n )),\n (hydrationParentFiber = workInProgress),\n (rootOrSingletonContext = !0),\n (init = nextHydratableInstance),\n isSingletonScope(workInProgress.type)\n ? ((previousHydratableOnEnteringScopedSingleton = init),\n (nextHydratableInstance = getNextHydratable(\n lazyComponent.firstChild\n )))\n : (nextHydratableInstance = init)),\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps.children,\n renderLanes\n ),\n markRef(current, workInProgress),\n null === current && (workInProgress.flags |= 4194304),\n workInProgress.child\n );\n case 5:\n if (null === current && isHydrating) {\n if ((init = lazyComponent = nextHydratableInstance))\n (lazyComponent = canHydrateInstance(\n lazyComponent,\n workInProgress.type,\n workInProgress.pendingProps,\n rootOrSingletonContext\n )),\n null !== lazyComponent\n ? ((workInProgress.stateNode = lazyComponent),\n (hydrationParentFiber = workInProgress),\n (nextHydratableInstance = getNextHydratable(\n lazyComponent.firstChild\n )),\n (rootOrSingletonContext = !1),\n (init = !0))\n : (init = !1);\n init || throwOnHydrationMismatch(workInProgress);\n }\n pushHostContext(workInProgress);\n init = workInProgress.type;\n prevState = workInProgress.pendingProps;\n nextState = null !== current ? current.memoizedProps : null;\n lazyComponent = prevState.children;\n shouldSetTextContent(init, prevState)\n ? (lazyComponent = null)\n : null !== nextState &&\n shouldSetTextContent(init, nextState) &&\n (workInProgress.flags |= 32);\n null !== workInProgress.memoizedState &&\n ((init = renderWithHooks(\n current,\n workInProgress,\n TransitionAwareHostComponent,\n null,\n null,\n renderLanes\n )),\n (HostTransitionContext._currentValue = init));\n markRef(current, workInProgress);\n reconcileChildren(current, workInProgress, lazyComponent, renderLanes);\n return workInProgress.child;\n case 6:\n if (null === current && isHydrating) {\n if ((current = renderLanes = nextHydratableInstance))\n (renderLanes = canHydrateTextInstance(\n renderLanes,\n workInProgress.pendingProps,\n rootOrSingletonContext\n )),\n null !== renderLanes\n ? ((workInProgress.stateNode = renderLanes),\n (hydrationParentFiber = workInProgress),\n (nextHydratableInstance = null),\n (current = !0))\n : (current = !1);\n current || throwOnHydrationMismatch(workInProgress);\n }\n return null;\n case 13:\n return updateSuspenseComponent(current, workInProgress, renderLanes);\n case 4:\n return (\n pushHostContainer(\n workInProgress,\n workInProgress.stateNode.containerInfo\n ),\n (lazyComponent = workInProgress.pendingProps),\n null === current\n ? (workInProgress.child = reconcileChildFibers(\n workInProgress,\n null,\n lazyComponent,\n renderLanes\n ))\n : reconcileChildren(\n current,\n workInProgress,\n lazyComponent,\n renderLanes\n ),\n workInProgress.child\n );\n case 11:\n return updateForwardRef(\n current,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n renderLanes\n );\n case 7:\n return (\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps,\n renderLanes\n ),\n workInProgress.child\n );\n case 8:\n return (\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps.children,\n renderLanes\n ),\n workInProgress.child\n );\n case 12:\n return (\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps.children,\n renderLanes\n ),\n workInProgress.child\n );\n case 10:\n return (\n (lazyComponent = workInProgress.pendingProps),\n pushProvider(workInProgress, workInProgress.type, lazyComponent.value),\n reconcileChildren(\n current,\n workInProgress,\n lazyComponent.children,\n renderLanes\n ),\n workInProgress.child\n );\n case 9:\n return (\n (init = workInProgress.type._context),\n (lazyComponent = workInProgress.pendingProps.children),\n prepareToReadContext(workInProgress),\n (init = readContext(init)),\n (lazyComponent = lazyComponent(init)),\n (workInProgress.flags |= 1),\n reconcileChildren(current, workInProgress, lazyComponent, renderLanes),\n workInProgress.child\n );\n case 14:\n return updateMemoComponent(\n current,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n renderLanes\n );\n case 15:\n return updateSimpleMemoComponent(\n current,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n renderLanes\n );\n case 19:\n return updateSuspenseListComponent(current, workInProgress, renderLanes);\n case 31:\n return (\n (lazyComponent = workInProgress.pendingProps),\n (renderLanes = workInProgress.mode),\n (lazyComponent = {\n mode: lazyComponent.mode,\n children: lazyComponent.children\n }),\n null === current\n ? ((renderLanes = mountWorkInProgressOffscreenFiber(\n lazyComponent,\n renderLanes\n )),\n (renderLanes.ref = workInProgress.ref),\n (workInProgress.child = renderLanes),\n (renderLanes.return = workInProgress),\n (workInProgress = renderLanes))\n : ((renderLanes = createWorkInProgress(current.child, lazyComponent)),\n (renderLanes.ref = workInProgress.ref),\n (workInProgress.child = renderLanes),\n (renderLanes.return = workInProgress),\n (workInProgress = renderLanes)),\n workInProgress\n );\n case 22:\n return updateOffscreenComponent(current, workInProgress, renderLanes);\n case 24:\n return (\n prepareToReadContext(workInProgress),\n (lazyComponent = readContext(CacheContext)),\n null === current\n ? ((init = peekCacheFromPool()),\n null === init &&\n ((init = workInProgressRoot),\n (prevState = createCache()),\n (init.pooledCache = prevState),\n prevState.refCount++,\n null !== prevState && (init.pooledCacheLanes |= renderLanes),\n (init = prevState)),\n (workInProgress.memoizedState = {\n parent: lazyComponent,\n cache: init\n }),\n initializeUpdateQueue(workInProgress),\n pushProvider(workInProgress, CacheContext, init))\n : (0 !== (current.lanes & renderLanes) &&\n (cloneUpdateQueue(current, workInProgress),\n processUpdateQueue(workInProgress, null, null, renderLanes),\n suspendIfUpdateReadFromEntangledAsyncAction()),\n (init = current.memoizedState),\n (prevState = workInProgress.memoizedState),\n init.parent !== lazyComponent\n ? ((init = { parent: lazyComponent, cache: lazyComponent }),\n (workInProgress.memoizedState = init),\n 0 === workInProgress.lanes &&\n (workInProgress.memoizedState =\n workInProgress.updateQueue.baseState =\n init),\n pushProvider(workInProgress, CacheContext, lazyComponent))\n : ((lazyComponent = prevState.cache),\n pushProvider(workInProgress, CacheContext, lazyComponent),\n lazyComponent !== init.cache &&\n propagateContextChanges(\n workInProgress,\n [CacheContext],\n renderLanes,\n !0\n ))),\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps.children,\n renderLanes\n ),\n workInProgress.child\n );\n case 29:\n throw workInProgress.pendingProps;\n }\n throw Error(formatProdErrorMessage(156, workInProgress.tag));\n}\nfunction markUpdate(workInProgress) {\n workInProgress.flags |= 4;\n}\nfunction preloadResourceAndSuspendIfNeeded(workInProgress, resource) {\n if (\"stylesheet\" !== resource.type || 0 !== (resource.state.loading & 4))\n workInProgress.flags &= -16777217;\n else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) {\n resource = suspenseHandlerStackCursor.current;\n if (\n null !== resource &&\n ((workInProgressRootRenderLanes & 4194048) ===\n workInProgressRootRenderLanes\n ? null !== shellBoundary\n : ((workInProgressRootRenderLanes & 62914560) !==\n workInProgressRootRenderLanes &&\n 0 === (workInProgressRootRenderLanes & 536870912)) ||\n resource !== shellBoundary)\n )\n throw (\n ((suspendedThenable = noopSuspenseyCommitThenable),\n SuspenseyCommitException)\n );\n workInProgress.flags |= 8192;\n }\n}\nfunction scheduleRetryEffect(workInProgress, retryQueue) {\n null !== retryQueue && (workInProgress.flags |= 4);\n workInProgress.flags & 16384 &&\n ((retryQueue =\n 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912),\n (workInProgress.lanes |= retryQueue),\n (workInProgressSuspendedRetryLanes |= retryQueue));\n}\nfunction cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {\n if (!isHydrating)\n switch (renderState.tailMode) {\n case \"hidden\":\n hasRenderedATailFallback = renderState.tail;\n for (var lastTailNode = null; null !== hasRenderedATailFallback; )\n null !== hasRenderedATailFallback.alternate &&\n (lastTailNode = hasRenderedATailFallback),\n (hasRenderedATailFallback = hasRenderedATailFallback.sibling);\n null === lastTailNode\n ? (renderState.tail = null)\n : (lastTailNode.sibling = null);\n break;\n case \"collapsed\":\n lastTailNode = renderState.tail;\n for (var lastTailNode$113 = null; null !== lastTailNode; )\n null !== lastTailNode.alternate && (lastTailNode$113 = lastTailNode),\n (lastTailNode = lastTailNode.sibling);\n null === lastTailNode$113\n ? hasRenderedATailFallback || null === renderState.tail\n ? (renderState.tail = null)\n : (renderState.tail.sibling = null)\n : (lastTailNode$113.sibling = null);\n }\n}\nfunction bubbleProperties(completedWork) {\n var didBailout =\n null !== completedWork.alternate &&\n completedWork.alternate.child === completedWork.child,\n newChildLanes = 0,\n subtreeFlags = 0;\n if (didBailout)\n for (var child$114 = completedWork.child; null !== child$114; )\n (newChildLanes |= child$114.lanes | child$114.childLanes),\n (subtreeFlags |= child$114.subtreeFlags & 65011712),\n (subtreeFlags |= child$114.flags & 65011712),\n (child$114.return = completedWork),\n (child$114 = child$114.sibling);\n else\n for (child$114 = completedWork.child; null !== child$114; )\n (newChildLanes |= child$114.lanes | child$114.childLanes),\n (subtreeFlags |= child$114.subtreeFlags),\n (subtreeFlags |= child$114.flags),\n (child$114.return = completedWork),\n (child$114 = child$114.sibling);\n completedWork.subtreeFlags |= subtreeFlags;\n completedWork.childLanes = newChildLanes;\n return didBailout;\n}\nfunction completeWork(current, workInProgress, renderLanes) {\n var newProps = workInProgress.pendingProps;\n popTreeContext(workInProgress);\n switch (workInProgress.tag) {\n case 31:\n case 16:\n case 15:\n case 0:\n case 11:\n case 7:\n case 8:\n case 12:\n case 9:\n case 14:\n return bubbleProperties(workInProgress), null;\n case 1:\n return bubbleProperties(workInProgress), null;\n case 3:\n renderLanes = workInProgress.stateNode;\n newProps = null;\n null !== current && (newProps = current.memoizedState.cache);\n workInProgress.memoizedState.cache !== newProps &&\n (workInProgress.flags |= 2048);\n popProvider(CacheContext);\n popHostContainer();\n renderLanes.pendingContext &&\n ((renderLanes.context = renderLanes.pendingContext),\n (renderLanes.pendingContext = null));\n if (null === current || null === current.child)\n popHydrationState(workInProgress)\n ? markUpdate(workInProgress)\n : null === current ||\n (current.memoizedState.isDehydrated &&\n 0 === (workInProgress.flags & 256)) ||\n ((workInProgress.flags |= 1024),\n upgradeHydrationErrorsToRecoverable());\n bubbleProperties(workInProgress);\n return null;\n case 26:\n return (\n (renderLanes = workInProgress.memoizedState),\n null === current\n ? (markUpdate(workInProgress),\n null !== renderLanes\n ? (bubbleProperties(workInProgress),\n preloadResourceAndSuspendIfNeeded(workInProgress, renderLanes))\n : (bubbleProperties(workInProgress),\n (workInProgress.flags &= -16777217)))\n : renderLanes\n ? renderLanes !== current.memoizedState\n ? (markUpdate(workInProgress),\n bubbleProperties(workInProgress),\n preloadResourceAndSuspendIfNeeded(workInProgress, renderLanes))\n : (bubbleProperties(workInProgress),\n (workInProgress.flags &= -16777217))\n : (current.memoizedProps !== newProps && markUpdate(workInProgress),\n bubbleProperties(workInProgress),\n (workInProgress.flags &= -16777217)),\n null\n );\n case 27:\n popHostContext(workInProgress);\n renderLanes = rootInstanceStackCursor.current;\n var type = workInProgress.type;\n if (null !== current && null != workInProgress.stateNode)\n current.memoizedProps !== newProps && markUpdate(workInProgress);\n else {\n if (!newProps) {\n if (null === workInProgress.stateNode)\n throw Error(formatProdErrorMessage(166));\n bubbleProperties(workInProgress);\n return null;\n }\n current = contextStackCursor.current;\n popHydrationState(workInProgress)\n ? prepareToHydrateHostInstance(workInProgress, current)\n : ((current = resolveSingletonInstance(type, newProps, renderLanes)),\n (workInProgress.stateNode = current),\n markUpdate(workInProgress));\n }\n bubbleProperties(workInProgress);\n return null;\n case 5:\n popHostContext(workInProgress);\n renderLanes = workInProgress.type;\n if (null !== current && null != workInProgress.stateNode)\n current.memoizedProps !== newProps && markUpdate(workInProgress);\n else {\n if (!newProps) {\n if (null === workInProgress.stateNode)\n throw Error(formatProdErrorMessage(166));\n bubbleProperties(workInProgress);\n return null;\n }\n current = contextStackCursor.current;\n if (popHydrationState(workInProgress))\n prepareToHydrateHostInstance(workInProgress, current);\n else {\n type = getOwnerDocumentFromRootContainer(\n rootInstanceStackCursor.current\n );\n switch (current) {\n case 1:\n current = type.createElementNS(\n \"http://www.w3.org/2000/svg\",\n renderLanes\n );\n break;\n case 2:\n current = type.createElementNS(\n \"http://www.w3.org/1998/Math/MathML\",\n renderLanes\n );\n break;\n default:\n switch (renderLanes) {\n case \"svg\":\n current = type.createElementNS(\n \"http://www.w3.org/2000/svg\",\n renderLanes\n );\n break;\n case \"math\":\n current = type.createElementNS(\n \"http://www.w3.org/1998/Math/MathML\",\n renderLanes\n );\n break;\n case \"script\":\n current = type.createElement(\"div\");\n current.innerHTML = \"<script>\\x3c/script>\";\n current = current.removeChild(current.firstChild);\n break;\n case \"select\":\n current =\n \"string\" === typeof newProps.is\n ? type.createElement(\"select\", { is: newProps.is })\n : type.createElement(\"select\");\n newProps.multiple\n ? (current.multiple = !0)\n : newProps.size && (current.size = newProps.size);\n break;\n default:\n current =\n \"string\" === typeof newProps.is\n ? type.createElement(renderLanes, { is: newProps.is })\n : type.createElement(renderLanes);\n }\n }\n current[internalInstanceKey] = workInProgress;\n current[internalPropsKey] = newProps;\n a: for (type = workInProgress.child; null !== type; ) {\n if (5 === type.tag || 6 === type.tag)\n current.appendChild(type.stateNode);\n else if (4 !== type.tag && 27 !== type.tag && null !== type.child) {\n type.child.return = type;\n type = type.child;\n continue;\n }\n if (type === workInProgress) break a;\n for (; null === type.sibling; ) {\n if (null === type.return || type.return === workInProgress)\n break a;\n type = type.return;\n }\n type.sibling.return = type.return;\n type = type.sibling;\n }\n workInProgress.stateNode = current;\n a: switch (\n (setInitialProperties(current, renderLanes, newProps), renderLanes)\n ) {\n case \"button\":\n case \"input\":\n case \"select\":\n case \"textarea\":\n current = !!newProps.autoFocus;\n break a;\n case \"img\":\n current = !0;\n break a;\n default:\n current = !1;\n }\n current && markUpdate(workInProgress);\n }\n }\n bubbleProperties(workInProgress);\n workInProgress.flags &= -16777217;\n return null;\n case 6:\n if (current && null != workInProgress.stateNode)\n current.memoizedProps !== newProps && markUpdate(workInProgress);\n else {\n if (\"string\" !== typeof newProps && null === workInProgress.stateNode)\n throw Error(formatProdErrorMessage(166));\n current = rootInstanceStackCursor.current;\n if (popHydrationState(workInProgress)) {\n current = workInProgress.stateNode;\n renderLanes = workInProgress.memoizedProps;\n newProps = null;\n type = hydrationParentFiber;\n if (null !== type)\n switch (type.tag) {\n case 27:\n case 5:\n newProps = type.memoizedProps;\n }\n current[internalInstanceKey] = workInProgress;\n current =\n current.nodeValue === renderLanes ||\n (null !== newProps && !0 === newProps.suppressHydrationWarning) ||\n checkForUnmatchedText(current.nodeValue, renderLanes)\n ? !0\n : !1;\n current || throwOnHydrationMismatch(workInProgress);\n } else\n (current =\n getOwnerDocumentFromRootContainer(current).createTextNode(\n newProps\n )),\n (current[internalInstanceKey] = workInProgress),\n (workInProgress.stateNode = current);\n }\n bubbleProperties(workInProgress);\n return null;\n case 13:\n newProps = workInProgress.memoizedState;\n if (\n null === current ||\n (null !== current.memoizedState &&\n null !== current.memoizedState.dehydrated)\n ) {\n type = popHydrationState(workInProgress);\n if (null !== newProps && null !== newProps.dehydrated) {\n if (null === current) {\n if (!type) throw Error(formatProdErrorMessage(318));\n type = workInProgress.memoizedState;\n type = null !== type ? type.dehydrated : null;\n if (!type) throw Error(formatProdErrorMessage(317));\n type[internalInstanceKey] = workInProgress;\n } else\n resetHydrationState(),\n 0 === (workInProgress.flags & 128) &&\n (workInProgress.memoizedState = null),\n (workInProgress.flags |= 4);\n bubbleProperties(workInProgress);\n type = !1;\n } else\n (type = upgradeHydrationErrorsToRecoverable()),\n null !== current &&\n null !== current.memoizedState &&\n (current.memoizedState.hydrationErrors = type),\n (type = !0);\n if (!type) {\n if (workInProgress.flags & 256)\n return popSuspenseHandler(workInProgress), workInProgress;\n popSuspenseHandler(workInProgress);\n return null;\n }\n }\n popSuspenseHandler(workInProgress);\n if (0 !== (workInProgress.flags & 128))\n return (workInProgress.lanes = renderLanes), workInProgress;\n renderLanes = null !== newProps;\n current = null !== current && null !== current.memoizedState;\n if (renderLanes) {\n newProps = workInProgress.child;\n type = null;\n null !== newProps.alternate &&\n null !== newProps.alternate.memoizedState &&\n null !== newProps.alternate.memoizedState.cachePool &&\n (type = newProps.alternate.memoizedState.cachePool.pool);\n var cache$127 = null;\n null !== newProps.memoizedState &&\n null !== newProps.memoizedState.cachePool &&\n (cache$127 = newProps.memoizedState.cachePool.pool);\n cache$127 !== type && (newProps.flags |= 2048);\n }\n renderLanes !== current &&\n renderLanes &&\n (workInProgress.child.flags |= 8192);\n scheduleRetryEffect(workInProgress, workInProgress.updateQueue);\n bubbleProperties(workInProgress);\n return null;\n case 4:\n return (\n popHostContainer(),\n null === current &&\n listenToAllSupportedEvents(workInProgress.stateNode.containerInfo),\n bubbleProperties(workInProgress),\n null\n );\n case 10:\n return (\n popProvider(workInProgress.type), bubbleProperties(workInProgress), null\n );\n case 19:\n pop(suspenseStackCursor);\n type = workInProgress.memoizedState;\n if (null === type) return bubbleProperties(workInProgress), null;\n newProps = 0 !== (workInProgress.flags & 128);\n cache$127 = type.rendering;\n if (null === cache$127)\n if (newProps) cutOffTailIfNeeded(type, !1);\n else {\n if (\n 0 !== workInProgressRootExitStatus ||\n (null !== current && 0 !== (current.flags & 128))\n )\n for (current = workInProgress.child; null !== current; ) {\n cache$127 = findFirstSuspended(current);\n if (null !== cache$127) {\n workInProgress.flags |= 128;\n cutOffTailIfNeeded(type, !1);\n current = cache$127.updateQueue;\n workInProgress.updateQueue = current;\n scheduleRetryEffect(workInProgress, current);\n workInProgress.subtreeFlags = 0;\n current = renderLanes;\n for (renderLanes = workInProgress.child; null !== renderLanes; )\n resetWorkInProgress(renderLanes, current),\n (renderLanes = renderLanes.sibling);\n push(\n suspenseStackCursor,\n (suspenseStackCursor.current & 1) | 2\n );\n return workInProgress.child;\n }\n current = current.sibling;\n }\n null !== type.tail &&\n now() > workInProgressRootRenderTargetTime &&\n ((workInProgress.flags |= 128),\n (newProps = !0),\n cutOffTailIfNeeded(type, !1),\n (workInProgress.lanes = 4194304));\n }\n else {\n if (!newProps)\n if (((current = findFirstSuspended(cache$127)), null !== current)) {\n if (\n ((workInProgress.flags |= 128),\n (newProps = !0),\n (current = current.updateQueue),\n (workInProgress.updateQueue = current),\n scheduleRetryEffect(workInProgress, current),\n cutOffTailIfNeeded(type, !0),\n null === type.tail &&\n \"hidden\" === type.tailMode &&\n !cache$127.alternate &&\n !isHydrating)\n )\n return bubbleProperties(workInProgress), null;\n } else\n 2 * now() - type.renderingStartTime >\n workInProgressRootRenderTargetTime &&\n 536870912 !== renderLanes &&\n ((workInProgress.flags |= 128),\n (newProps = !0),\n cutOffTailIfNeeded(type, !1),\n (workInProgress.lanes = 4194304));\n type.isBackwards\n ? ((cache$127.sibling = workInProgress.child),\n (workInProgress.child = cache$127))\n : ((current = type.last),\n null !== current\n ? (current.sibling = cache$127)\n : (workInProgress.child = cache$127),\n (type.last = cache$127));\n }\n if (null !== type.tail)\n return (\n (workInProgress = type.tail),\n (type.rendering = workInProgress),\n (type.tail = workInProgress.sibling),\n (type.renderingStartTime = now()),\n (workInProgress.sibling = null),\n (current = suspenseStackCursor.current),\n push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1),\n workInProgress\n );\n bubbleProperties(workInProgress);\n return null;\n case 22:\n case 23:\n return (\n popSuspenseHandler(workInProgress),\n popHiddenContext(),\n (newProps = null !== workInProgress.memoizedState),\n null !== current\n ? (null !== current.memoizedState) !== newProps &&\n (workInProgress.flags |= 8192)\n : newProps && (workInProgress.flags |= 8192),\n newProps\n ? 0 !== (renderLanes & 536870912) &&\n 0 === (workInProgress.flags & 128) &&\n (bubbleProperties(workInProgress),\n workInProgress.subtreeFlags & 6 && (workInProgress.flags |= 8192))\n : bubbleProperties(workInProgress),\n (renderLanes = workInProgress.updateQueue),\n null !== renderLanes &&\n scheduleRetryEffect(workInProgress, renderLanes.retryQueue),\n (renderLanes = null),\n null !== current &&\n null !== current.memoizedState &&\n null !== current.memoizedState.cachePool &&\n (renderLanes = current.memoizedState.cachePool.pool),\n (newProps = null),\n null !== workInProgress.memoizedState &&\n null !== workInProgress.memoizedState.cachePool &&\n (newProps = workInProgress.memoizedState.cachePool.pool),\n newProps !== renderLanes && (workInProgress.flags |= 2048),\n null !== current && pop(resumedCache),\n null\n );\n case 24:\n return (\n (renderLanes = null),\n null !== current && (renderLanes = current.memoizedState.cache),\n workInProgress.memoizedState.cache !== renderLanes &&\n (workInProgress.flags |= 2048),\n popProvider(CacheContext),\n bubbleProperties(workInProgress),\n null\n );\n case 25:\n return null;\n case 30:\n return null;\n }\n throw Error(formatProdErrorMessage(156, workInProgress.tag));\n}\nfunction unwindWork(current, workInProgress) {\n popTreeContext(workInProgress);\n switch (workInProgress.tag) {\n case 1:\n return (\n (current = workInProgress.flags),\n current & 65536\n ? ((workInProgress.flags = (current & -65537) | 128), workInProgress)\n : null\n );\n case 3:\n return (\n popProvider(CacheContext),\n popHostContainer(),\n (current = workInProgress.flags),\n 0 !== (current & 65536) && 0 === (current & 128)\n ? ((workInProgress.flags = (current & -65537) | 128), workInProgress)\n : null\n );\n case 26:\n case 27:\n case 5:\n return popHostContext(workInProgress), null;\n case 13:\n popSuspenseHandler(workInProgress);\n current = workInProgress.memoizedState;\n if (null !== current && null !== current.dehydrated) {\n if (null === workInProgress.alternate)\n throw Error(formatProdErrorMessage(340));\n resetHydrationState();\n }\n current = workInProgress.flags;\n return current & 65536\n ? ((workInProgress.flags = (current & -65537) | 128), workInProgress)\n : null;\n case 19:\n return pop(suspenseStackCursor), null;\n case 4:\n return popHostContainer(), null;\n case 10:\n return popProvider(workInProgress.type), null;\n case 22:\n case 23:\n return (\n popSuspenseHandler(workInProgress),\n popHiddenContext(),\n null !== current && pop(resumedCache),\n (current = workInProgress.flags),\n current & 65536\n ? ((workInProgress.flags = (current & -65537) | 128), workInProgress)\n : null\n );\n case 24:\n return popProvider(CacheContext), null;\n case 25:\n return null;\n default:\n return null;\n }\n}\nfunction unwindInterruptedWork(current, interruptedWork) {\n popTreeContext(interruptedWork);\n switch (interruptedWork.tag) {\n case 3:\n popProvider(CacheContext);\n popHostContainer();\n break;\n case 26:\n case 27:\n case 5:\n popHostContext(interruptedWork);\n break;\n case 4:\n popHostContainer();\n break;\n case 13:\n popSuspenseHandler(interruptedWork);\n break;\n case 19:\n pop(suspenseStackCursor);\n break;\n case 10:\n popProvider(interruptedWork.type);\n break;\n case 22:\n case 23:\n popSuspenseHandler(interruptedWork);\n popHiddenContext();\n null !== current && pop(resumedCache);\n break;\n case 24:\n popProvider(CacheContext);\n }\n}\nfunction commitHookEffectListMount(flags, finishedWork) {\n try {\n var updateQueue = finishedWork.updateQueue,\n lastEffect = null !== updateQueue ? updateQueue.lastEffect : null;\n if (null !== lastEffect) {\n var firstEffect = lastEffect.next;\n updateQueue = firstEffect;\n do {\n if ((updateQueue.tag & flags) === flags) {\n lastEffect = void 0;\n var create = updateQueue.create,\n inst = updateQueue.inst;\n lastEffect = create();\n inst.destroy = lastEffect;\n }\n updateQueue = updateQueue.next;\n } while (updateQueue !== firstEffect);\n }\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n}\nfunction commitHookEffectListUnmount(\n flags,\n finishedWork,\n nearestMountedAncestor$jscomp$0\n) {\n try {\n var updateQueue = finishedWork.updateQueue,\n lastEffect = null !== updateQueue ? updateQueue.lastEffect : null;\n if (null !== lastEffect) {\n var firstEffect = lastEffect.next;\n updateQueue = firstEffect;\n do {\n if ((updateQueue.tag & flags) === flags) {\n var inst = updateQueue.inst,\n destroy = inst.destroy;\n if (void 0 !== destroy) {\n inst.destroy = void 0;\n lastEffect = finishedWork;\n var nearestMountedAncestor = nearestMountedAncestor$jscomp$0,\n destroy_ = destroy;\n try {\n destroy_();\n } catch (error) {\n captureCommitPhaseError(\n lastEffect,\n nearestMountedAncestor,\n error\n );\n }\n }\n }\n updateQueue = updateQueue.next;\n } while (updateQueue !== firstEffect);\n }\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n}\nfunction commitClassCallbacks(finishedWork) {\n var updateQueue = finishedWork.updateQueue;\n if (null !== updateQueue) {\n var instance = finishedWork.stateNode;\n try {\n commitCallbacks(updateQueue, instance);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n}\nfunction safelyCallComponentWillUnmount(\n current,\n nearestMountedAncestor,\n instance\n) {\n instance.props = resolveClassComponentProps(\n current.type,\n current.memoizedProps\n );\n instance.state = current.memoizedState;\n try {\n instance.componentWillUnmount();\n } catch (error) {\n captureCommitPhaseError(current, nearestMountedAncestor, error);\n }\n}\nfunction safelyAttachRef(current, nearestMountedAncestor) {\n try {\n var ref = current.ref;\n if (null !== ref) {\n switch (current.tag) {\n case 26:\n case 27:\n case 5:\n var instanceToUse = current.stateNode;\n break;\n case 30:\n instanceToUse = current.stateNode;\n break;\n default:\n instanceToUse = current.stateNode;\n }\n \"function\" === typeof ref\n ? (current.refCleanup = ref(instanceToUse))\n : (ref.current = instanceToUse);\n }\n } catch (error) {\n captureCommitPhaseError(current, nearestMountedAncestor, error);\n }\n}\nfunction safelyDetachRef(current, nearestMountedAncestor) {\n var ref = current.ref,\n refCleanup = current.refCleanup;\n if (null !== ref)\n if (\"function\" === typeof refCleanup)\n try {\n refCleanup();\n } catch (error) {\n captureCommitPhaseError(current, nearestMountedAncestor, error);\n } finally {\n (current.refCleanup = null),\n (current = current.alternate),\n null != current && (current.refCleanup = null);\n }\n else if (\"function\" === typeof ref)\n try {\n ref(null);\n } catch (error$143) {\n captureCommitPhaseError(current, nearestMountedAncestor, error$143);\n }\n else ref.current = null;\n}\nfunction commitHostMount(finishedWork) {\n var type = finishedWork.type,\n props = finishedWork.memoizedProps,\n instance = finishedWork.stateNode;\n try {\n a: switch (type) {\n case \"button\":\n case \"input\":\n case \"select\":\n case \"textarea\":\n props.autoFocus && instance.focus();\n break a;\n case \"img\":\n props.src\n ? (instance.src = props.src)\n : props.srcSet && (instance.srcset = props.srcSet);\n }\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n}\nfunction commitHostUpdate(finishedWork, newProps, oldProps) {\n try {\n var domElement = finishedWork.stateNode;\n updateProperties(domElement, finishedWork.type, oldProps, newProps);\n domElement[internalPropsKey] = newProps;\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n}\nfunction isHostParent(fiber) {\n return (\n 5 === fiber.tag ||\n 3 === fiber.tag ||\n 26 === fiber.tag ||\n (27 === fiber.tag && isSingletonScope(fiber.type)) ||\n 4 === fiber.tag\n );\n}\nfunction getHostSibling(fiber) {\n a: for (;;) {\n for (; null === fiber.sibling; ) {\n if (null === fiber.return || isHostParent(fiber.return)) return null;\n fiber = fiber.return;\n }\n fiber.sibling.return = fiber.return;\n for (\n fiber = fiber.sibling;\n 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag;\n\n ) {\n if (27 === fiber.tag && isSingletonScope(fiber.type)) continue a;\n if (fiber.flags & 2) continue a;\n if (null === fiber.child || 4 === fiber.tag) continue a;\n else (fiber.child.return = fiber), (fiber = fiber.child);\n }\n if (!(fiber.flags & 2)) return fiber.stateNode;\n }\n}\nfunction insertOrAppendPlacementNodeIntoContainer(node, before, parent) {\n var tag = node.tag;\n if (5 === tag || 6 === tag)\n (node = node.stateNode),\n before\n ? (9 === parent.nodeType\n ? parent.body\n : \"HTML\" === parent.nodeName\n ? parent.ownerDocument.body\n : parent\n ).insertBefore(node, before)\n : ((before =\n 9 === parent.nodeType\n ? parent.body\n : \"HTML\" === parent.nodeName\n ? parent.ownerDocument.body\n : parent),\n before.appendChild(node),\n (parent = parent._reactRootContainer),\n (null !== parent && void 0 !== parent) ||\n null !== before.onclick ||\n (before.onclick = noop$1));\n else if (\n 4 !== tag &&\n (27 === tag &&\n isSingletonScope(node.type) &&\n ((parent = node.stateNode), (before = null)),\n (node = node.child),\n null !== node)\n )\n for (\n insertOrAppendPlacementNodeIntoContainer(node, before, parent),\n node = node.sibling;\n null !== node;\n\n )\n insertOrAppendPlacementNodeIntoContainer(node, before, parent),\n (node = node.sibling);\n}\nfunction insertOrAppendPlacementNode(node, before, parent) {\n var tag = node.tag;\n if (5 === tag || 6 === tag)\n (node = node.stateNode),\n before ? parent.insertBefore(node, before) : parent.appendChild(node);\n else if (\n 4 !== tag &&\n (27 === tag && isSingletonScope(node.type) && (parent = node.stateNode),\n (node = node.child),\n null !== node)\n )\n for (\n insertOrAppendPlacementNode(node, before, parent), node = node.sibling;\n null !== node;\n\n )\n insertOrAppendPlacementNode(node, before, parent), (node = node.sibling);\n}\nfunction commitHostSingletonAcquisition(finishedWork) {\n var singleton = finishedWork.stateNode,\n props = finishedWork.memoizedProps;\n try {\n for (\n var type = finishedWork.type, attributes = singleton.attributes;\n attributes.length;\n\n )\n singleton.removeAttributeNode(attributes[0]);\n setInitialProperties(singleton, type, props);\n singleton[internalInstanceKey] = finishedWork;\n singleton[internalPropsKey] = props;\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n}\nvar offscreenSubtreeIsHidden = !1,\n offscreenSubtreeWasHidden = !1,\n needsFormReset = !1,\n PossiblyWeakSet = \"function\" === typeof WeakSet ? WeakSet : Set,\n nextEffect = null;\nfunction commitBeforeMutationEffects(root, firstChild) {\n root = root.containerInfo;\n eventsEnabled = _enabled;\n root = getActiveElementDeep(root);\n if (hasSelectionCapabilities(root)) {\n if (\"selectionStart\" in root)\n var JSCompiler_temp = {\n start: root.selectionStart,\n end: root.selectionEnd\n };\n else\n a: {\n JSCompiler_temp =\n ((JSCompiler_temp = root.ownerDocument) &&\n JSCompiler_temp.defaultView) ||\n window;\n var selection =\n JSCompiler_temp.getSelection && JSCompiler_temp.getSelection();\n if (selection && 0 !== selection.rangeCount) {\n JSCompiler_temp = selection.anchorNode;\n var anchorOffset = selection.anchorOffset,\n focusNode = selection.focusNode;\n selection = selection.focusOffset;\n try {\n JSCompiler_temp.nodeType, focusNode.nodeType;\n } catch (e$20) {\n JSCompiler_temp = null;\n break a;\n }\n var length = 0,\n start = -1,\n end = -1,\n indexWithinAnchor = 0,\n indexWithinFocus = 0,\n node = root,\n parentNode = null;\n b: for (;;) {\n for (var next; ; ) {\n node !== JSCompiler_temp ||\n (0 !== anchorOffset && 3 !== node.nodeType) ||\n (start = length + anchorOffset);\n node !== focusNode ||\n (0 !== selection && 3 !== node.nodeType) ||\n (end = length + selection);\n 3 === node.nodeType && (length += node.nodeValue.length);\n if (null === (next = node.firstChild)) break;\n parentNode = node;\n node = next;\n }\n for (;;) {\n if (node === root) break b;\n parentNode === JSCompiler_temp &&\n ++indexWithinAnchor === anchorOffset &&\n (start = length);\n parentNode === focusNode &&\n ++indexWithinFocus === selection &&\n (end = length);\n if (null !== (next = node.nextSibling)) break;\n node = parentNode;\n parentNode = node.parentNode;\n }\n node = next;\n }\n JSCompiler_temp =\n -1 === start || -1 === end ? null : { start: start, end: end };\n } else JSCompiler_temp = null;\n }\n JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 };\n } else JSCompiler_temp = null;\n selectionInformation = { focusedElem: root, selectionRange: JSCompiler_temp };\n _enabled = !1;\n for (nextEffect = firstChild; null !== nextEffect; )\n if (\n ((firstChild = nextEffect),\n (root = firstChild.child),\n 0 !== (firstChild.subtreeFlags & 1024) && null !== root)\n )\n (root.return = firstChild), (nextEffect = root);\n else\n for (; null !== nextEffect; ) {\n firstChild = nextEffect;\n focusNode = firstChild.alternate;\n root = firstChild.flags;\n switch (firstChild.tag) {\n case 0:\n break;\n case 11:\n case 15:\n break;\n case 1:\n if (0 !== (root & 1024) && null !== focusNode) {\n root = void 0;\n JSCompiler_temp = firstChild;\n anchorOffset = focusNode.memoizedProps;\n focusNode = focusNode.memoizedState;\n selection = JSCompiler_temp.stateNode;\n try {\n var resolvedPrevProps = resolveClassComponentProps(\n JSCompiler_temp.type,\n anchorOffset,\n JSCompiler_temp.elementType === JSCompiler_temp.type\n );\n root = selection.getSnapshotBeforeUpdate(\n resolvedPrevProps,\n focusNode\n );\n selection.__reactInternalSnapshotBeforeUpdate = root;\n } catch (error) {\n captureCommitPhaseError(\n JSCompiler_temp,\n JSCompiler_temp.return,\n error\n );\n }\n }\n break;\n case 3:\n if (0 !== (root & 1024))\n if (\n ((root = firstChild.stateNode.containerInfo),\n (JSCompiler_temp = root.nodeType),\n 9 === JSCompiler_temp)\n )\n clearContainerSparingly(root);\n else if (1 === JSCompiler_temp)\n switch (root.nodeName) {\n case \"HEAD\":\n case \"HTML\":\n case \"BODY\":\n clearContainerSparingly(root);\n break;\n default:\n root.textContent = \"\";\n }\n break;\n case 5:\n case 26:\n case 27:\n case 6:\n case 4:\n case 17:\n break;\n default:\n if (0 !== (root & 1024)) throw Error(formatProdErrorMessage(163));\n }\n root = firstChild.sibling;\n if (null !== root) {\n root.return = firstChild.return;\n nextEffect = root;\n break;\n }\n nextEffect = firstChild.return;\n }\n}\nfunction commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {\n var flags = finishedWork.flags;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n flags & 4 && commitHookEffectListMount(5, finishedWork);\n break;\n case 1:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n if (flags & 4)\n if (((finishedRoot = finishedWork.stateNode), null === current))\n try {\n finishedRoot.componentDidMount();\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n else {\n var prevProps = resolveClassComponentProps(\n finishedWork.type,\n current.memoizedProps\n );\n current = current.memoizedState;\n try {\n finishedRoot.componentDidUpdate(\n prevProps,\n current,\n finishedRoot.__reactInternalSnapshotBeforeUpdate\n );\n } catch (error$142) {\n captureCommitPhaseError(\n finishedWork,\n finishedWork.return,\n error$142\n );\n }\n }\n flags & 64 && commitClassCallbacks(finishedWork);\n flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);\n break;\n case 3:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n if (\n flags & 64 &&\n ((finishedRoot = finishedWork.updateQueue), null !== finishedRoot)\n ) {\n current = null;\n if (null !== finishedWork.child)\n switch (finishedWork.child.tag) {\n case 27:\n case 5:\n current = finishedWork.child.stateNode;\n break;\n case 1:\n current = finishedWork.child.stateNode;\n }\n try {\n commitCallbacks(finishedRoot, current);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n break;\n case 27:\n null === current &&\n flags & 4 &&\n commitHostSingletonAcquisition(finishedWork);\n case 26:\n case 5:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n null === current && flags & 4 && commitHostMount(finishedWork);\n flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);\n break;\n case 12:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n break;\n case 13:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);\n flags & 64 &&\n ((finishedRoot = finishedWork.memoizedState),\n null !== finishedRoot &&\n ((finishedRoot = finishedRoot.dehydrated),\n null !== finishedRoot &&\n ((finishedWork = retryDehydratedSuspenseBoundary.bind(\n null,\n finishedWork\n )),\n registerSuspenseInstanceRetry(finishedRoot, finishedWork))));\n break;\n case 22:\n flags = null !== finishedWork.memoizedState || offscreenSubtreeIsHidden;\n if (!flags) {\n current =\n (null !== current && null !== current.memoizedState) ||\n offscreenSubtreeWasHidden;\n prevProps = offscreenSubtreeIsHidden;\n var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;\n offscreenSubtreeIsHidden = flags;\n (offscreenSubtreeWasHidden = current) && !prevOffscreenSubtreeWasHidden\n ? recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n 0 !== (finishedWork.subtreeFlags & 8772)\n )\n : recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n offscreenSubtreeIsHidden = prevProps;\n offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;\n }\n break;\n case 30:\n break;\n default:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n }\n}\nfunction detachFiberAfterEffects(fiber) {\n var alternate = fiber.alternate;\n null !== alternate &&\n ((fiber.alternate = null), detachFiberAfterEffects(alternate));\n fiber.child = null;\n fiber.deletions = null;\n fiber.sibling = null;\n 5 === fiber.tag &&\n ((alternate = fiber.stateNode),\n null !== alternate && detachDeletedInstance(alternate));\n fiber.stateNode = null;\n fiber.return = null;\n fiber.dependencies = null;\n fiber.memoizedProps = null;\n fiber.memoizedState = null;\n fiber.pendingProps = null;\n fiber.stateNode = null;\n fiber.updateQueue = null;\n}\nvar hostParent = null,\n hostParentIsContainer = !1;\nfunction recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n parent\n) {\n for (parent = parent.child; null !== parent; )\n commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent),\n (parent = parent.sibling);\n}\nfunction commitDeletionEffectsOnFiber(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n) {\n if (injectedHook && \"function\" === typeof injectedHook.onCommitFiberUnmount)\n try {\n injectedHook.onCommitFiberUnmount(rendererID, deletedFiber);\n } catch (err) {}\n switch (deletedFiber.tag) {\n case 26:\n offscreenSubtreeWasHidden ||\n safelyDetachRef(deletedFiber, nearestMountedAncestor);\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n deletedFiber.memoizedState\n ? deletedFiber.memoizedState.count--\n : deletedFiber.stateNode &&\n ((deletedFiber = deletedFiber.stateNode),\n deletedFiber.parentNode.removeChild(deletedFiber));\n break;\n case 27:\n offscreenSubtreeWasHidden ||\n safelyDetachRef(deletedFiber, nearestMountedAncestor);\n var prevHostParent = hostParent,\n prevHostParentIsContainer = hostParentIsContainer;\n isSingletonScope(deletedFiber.type) &&\n ((hostParent = deletedFiber.stateNode), (hostParentIsContainer = !1));\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n releaseSingletonInstance(deletedFiber.stateNode);\n hostParent = prevHostParent;\n hostParentIsContainer = prevHostParentIsContainer;\n break;\n case 5:\n offscreenSubtreeWasHidden ||\n safelyDetachRef(deletedFiber, nearestMountedAncestor);\n case 6:\n prevHostParent = hostParent;\n prevHostParentIsContainer = hostParentIsContainer;\n hostParent = null;\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n hostParent = prevHostParent;\n hostParentIsContainer = prevHostParentIsContainer;\n if (null !== hostParent)\n if (hostParentIsContainer)\n try {\n (9 === hostParent.nodeType\n ? hostParent.body\n : \"HTML\" === hostParent.nodeName\n ? hostParent.ownerDocument.body\n : hostParent\n ).removeChild(deletedFiber.stateNode);\n } catch (error) {\n captureCommitPhaseError(\n deletedFiber,\n nearestMountedAncestor,\n error\n );\n }\n else\n try {\n hostParent.removeChild(deletedFiber.stateNode);\n } catch (error) {\n captureCommitPhaseError(\n deletedFiber,\n nearestMountedAncestor,\n error\n );\n }\n break;\n case 18:\n null !== hostParent &&\n (hostParentIsContainer\n ? ((finishedRoot = hostParent),\n clearSuspenseBoundary(\n 9 === finishedRoot.nodeType\n ? finishedRoot.body\n : \"HTML\" === finishedRoot.nodeName\n ? finishedRoot.ownerDocument.body\n : finishedRoot,\n deletedFiber.stateNode\n ),\n retryIfBlockedOn(finishedRoot))\n : clearSuspenseBoundary(hostParent, deletedFiber.stateNode));\n break;\n case 4:\n prevHostParent = hostParent;\n prevHostParentIsContainer = hostParentIsContainer;\n hostParent = deletedFiber.stateNode.containerInfo;\n hostParentIsContainer = !0;\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n hostParent = prevHostParent;\n hostParentIsContainer = prevHostParentIsContainer;\n break;\n case 0:\n case 11:\n case 14:\n case 15:\n offscreenSubtreeWasHidden ||\n commitHookEffectListUnmount(2, deletedFiber, nearestMountedAncestor);\n offscreenSubtreeWasHidden ||\n commitHookEffectListUnmount(4, deletedFiber, nearestMountedAncestor);\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n break;\n case 1:\n offscreenSubtreeWasHidden ||\n (safelyDetachRef(deletedFiber, nearestMountedAncestor),\n (prevHostParent = deletedFiber.stateNode),\n \"function\" === typeof prevHostParent.componentWillUnmount &&\n safelyCallComponentWillUnmount(\n deletedFiber,\n nearestMountedAncestor,\n prevHostParent\n ));\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n break;\n case 21:\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n break;\n case 22:\n offscreenSubtreeWasHidden =\n (prevHostParent = offscreenSubtreeWasHidden) ||\n null !== deletedFiber.memoizedState;\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n offscreenSubtreeWasHidden = prevHostParent;\n break;\n default:\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n }\n}\nfunction commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {\n if (\n null === finishedWork.memoizedState &&\n ((finishedRoot = finishedWork.alternate),\n null !== finishedRoot &&\n ((finishedRoot = finishedRoot.memoizedState),\n null !== finishedRoot &&\n ((finishedRoot = finishedRoot.dehydrated), null !== finishedRoot)))\n )\n try {\n retryIfBlockedOn(finishedRoot);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n}\nfunction getRetryCache(finishedWork) {\n switch (finishedWork.tag) {\n case 13:\n case 19:\n var retryCache = finishedWork.stateNode;\n null === retryCache &&\n (retryCache = finishedWork.stateNode = new PossiblyWeakSet());\n return retryCache;\n case 22:\n return (\n (finishedWork = finishedWork.stateNode),\n (retryCache = finishedWork._retryCache),\n null === retryCache &&\n (retryCache = finishedWork._retryCache = new PossiblyWeakSet()),\n retryCache\n );\n default:\n throw Error(formatProdErrorMessage(435, finishedWork.tag));\n }\n}\nfunction attachSuspenseRetryListeners(finishedWork, wakeables) {\n var retryCache = getRetryCache(finishedWork);\n wakeables.forEach(function (wakeable) {\n var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable);\n retryCache.has(wakeable) ||\n (retryCache.add(wakeable), wakeable.then(retry, retry));\n });\n}\nfunction recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) {\n var deletions = parentFiber.deletions;\n if (null !== deletions)\n for (var i = 0; i < deletions.length; i++) {\n var childToDelete = deletions[i],\n root = root$jscomp$0,\n returnFiber = parentFiber,\n parent = returnFiber;\n a: for (; null !== parent; ) {\n switch (parent.tag) {\n case 27:\n if (isSingletonScope(parent.type)) {\n hostParent = parent.stateNode;\n hostParentIsContainer = !1;\n break a;\n }\n break;\n case 5:\n hostParent = parent.stateNode;\n hostParentIsContainer = !1;\n break a;\n case 3:\n case 4:\n hostParent = parent.stateNode.containerInfo;\n hostParentIsContainer = !0;\n break a;\n }\n parent = parent.return;\n }\n if (null === hostParent) throw Error(formatProdErrorMessage(160));\n commitDeletionEffectsOnFiber(root, returnFiber, childToDelete);\n hostParent = null;\n hostParentIsContainer = !1;\n root = childToDelete.alternate;\n null !== root && (root.return = null);\n childToDelete.return = null;\n }\n if (parentFiber.subtreeFlags & 13878)\n for (parentFiber = parentFiber.child; null !== parentFiber; )\n commitMutationEffectsOnFiber(parentFiber, root$jscomp$0),\n (parentFiber = parentFiber.sibling);\n}\nvar currentHoistableRoot = null;\nfunction commitMutationEffectsOnFiber(finishedWork, root) {\n var current = finishedWork.alternate,\n flags = finishedWork.flags;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 14:\n case 15:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n flags & 4 &&\n (commitHookEffectListUnmount(3, finishedWork, finishedWork.return),\n commitHookEffectListMount(3, finishedWork),\n commitHookEffectListUnmount(5, finishedWork, finishedWork.return));\n break;\n case 1:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n flags & 512 &&\n (offscreenSubtreeWasHidden ||\n null === current ||\n safelyDetachRef(current, current.return));\n flags & 64 &&\n offscreenSubtreeIsHidden &&\n ((finishedWork = finishedWork.updateQueue),\n null !== finishedWork &&\n ((flags = finishedWork.callbacks),\n null !== flags &&\n ((current = finishedWork.shared.hiddenCallbacks),\n (finishedWork.shared.hiddenCallbacks =\n null === current ? flags : current.concat(flags)))));\n break;\n case 26:\n var hoistableRoot = currentHoistableRoot;\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n flags & 512 &&\n (offscreenSubtreeWasHidden ||\n null === current ||\n safelyDetachRef(current, current.return));\n if (flags & 4) {\n var currentResource = null !== current ? current.memoizedState : null;\n flags = finishedWork.memoizedState;\n if (null === current)\n if (null === flags)\n if (null === finishedWork.stateNode) {\n a: {\n flags = finishedWork.type;\n current = finishedWork.memoizedProps;\n hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;\n b: switch (flags) {\n case \"title\":\n currentResource =\n hoistableRoot.getElementsByTagName(\"title\")[0];\n if (\n !currentResource ||\n currentResource[internalHoistableMarker] ||\n currentResource[internalInstanceKey] ||\n \"http://www.w3.org/2000/svg\" ===\n currentResource.namespaceURI ||\n currentResource.hasAttribute(\"itemprop\")\n )\n (currentResource = hoistableRoot.createElement(flags)),\n hoistableRoot.head.insertBefore(\n currentResource,\n hoistableRoot.querySelector(\"head > title\")\n );\n setInitialProperties(currentResource, flags, current);\n currentResource[internalInstanceKey] = finishedWork;\n markNodeAsHoistable(currentResource);\n flags = currentResource;\n break a;\n case \"link\":\n var maybeNodes = getHydratableHoistableCache(\n \"link\",\n \"href\",\n hoistableRoot\n ).get(flags + (current.href || \"\"));\n if (maybeNodes)\n for (var i = 0; i < maybeNodes.length; i++)\n if (\n ((currentResource = maybeNodes[i]),\n currentResource.getAttribute(\"href\") ===\n (null == current.href || \"\" === current.href\n ? null\n : current.href) &&\n currentResource.getAttribute(\"rel\") ===\n (null == current.rel ? null : current.rel) &&\n currentResource.getAttribute(\"title\") ===\n (null == current.title ? null : current.title) &&\n currentResource.getAttribute(\"crossorigin\") ===\n (null == current.crossOrigin\n ? null\n : current.crossOrigin))\n ) {\n maybeNodes.splice(i, 1);\n break b;\n }\n currentResource = hoistableRoot.createElement(flags);\n setInitialProperties(currentResource, flags, current);\n hoistableRoot.head.appendChild(currentResource);\n break;\n case \"meta\":\n if (\n (maybeNodes = getHydratableHoistableCache(\n \"meta\",\n \"content\",\n hoistableRoot\n ).get(flags + (current.content || \"\")))\n )\n for (i = 0; i < maybeNodes.length; i++)\n if (\n ((currentResource = maybeNodes[i]),\n currentResource.getAttribute(\"content\") ===\n (null == current.content\n ? null\n : \"\" + current.content) &&\n currentResource.getAttribute(\"name\") ===\n (null == current.name ? null : current.name) &&\n currentResource.getAttribute(\"property\") ===\n (null == current.property\n ? null\n : current.property) &&\n currentResource.getAttribute(\"http-equiv\") ===\n (null == current.httpEquiv\n ? null\n : current.httpEquiv) &&\n currentResource.getAttribute(\"charset\") ===\n (null == current.charSet\n ? null\n : current.charSet))\n ) {\n maybeNodes.splice(i, 1);\n break b;\n }\n currentResource = hoistableRoot.createElement(flags);\n setInitialProperties(currentResource, flags, current);\n hoistableRoot.head.appendChild(currentResource);\n break;\n default:\n throw Error(formatProdErrorMessage(468, flags));\n }\n currentResource[internalInstanceKey] = finishedWork;\n markNodeAsHoistable(currentResource);\n flags = currentResource;\n }\n finishedWork.stateNode = flags;\n } else\n mountHoistable(\n hoistableRoot,\n finishedWork.type,\n finishedWork.stateNode\n );\n else\n finishedWork.stateNode = acquireResource(\n hoistableRoot,\n flags,\n finishedWork.memoizedProps\n );\n else\n currentResource !== flags\n ? (null === currentResource\n ? null !== current.stateNode &&\n ((current = current.stateNode),\n current.parentNode.removeChild(current))\n : currentResource.count--,\n null === flags\n ? mountHoistable(\n hoistableRoot,\n finishedWork.type,\n finishedWork.stateNode\n )\n : acquireResource(\n hoistableRoot,\n flags,\n finishedWork.memoizedProps\n ))\n : null === flags &&\n null !== finishedWork.stateNode &&\n commitHostUpdate(\n finishedWork,\n finishedWork.memoizedProps,\n current.memoizedProps\n );\n }\n break;\n case 27:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n flags & 512 &&\n (offscreenSubtreeWasHidden ||\n null === current ||\n safelyDetachRef(current, current.return));\n null !== current &&\n flags & 4 &&\n commitHostUpdate(\n finishedWork,\n finishedWork.memoizedProps,\n current.memoizedProps\n );\n break;\n case 5:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n flags & 512 &&\n (offscreenSubtreeWasHidden ||\n null === current ||\n safelyDetachRef(current, current.return));\n if (finishedWork.flags & 32) {\n hoistableRoot = finishedWork.stateNode;\n try {\n setTextContent(hoistableRoot, \"\");\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n flags & 4 &&\n null != finishedWork.stateNode &&\n ((hoistableRoot = finishedWork.memoizedProps),\n commitHostUpdate(\n finishedWork,\n hoistableRoot,\n null !== current ? current.memoizedProps : hoistableRoot\n ));\n flags & 1024 && (needsFormReset = !0);\n break;\n case 6:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n if (flags & 4) {\n if (null === finishedWork.stateNode)\n throw Error(formatProdErrorMessage(162));\n flags = finishedWork.memoizedProps;\n current = finishedWork.stateNode;\n try {\n current.nodeValue = flags;\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n break;\n case 3:\n tagCaches = null;\n hoistableRoot = currentHoistableRoot;\n currentHoistableRoot = getHoistableRoot(root.containerInfo);\n recursivelyTraverseMutationEffects(root, finishedWork);\n currentHoistableRoot = hoistableRoot;\n commitReconciliationEffects(finishedWork);\n if (flags & 4 && null !== current && current.memoizedState.isDehydrated)\n try {\n retryIfBlockedOn(root.containerInfo);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n needsFormReset &&\n ((needsFormReset = !1), recursivelyResetForms(finishedWork));\n break;\n case 4:\n flags = currentHoistableRoot;\n currentHoistableRoot = getHoistableRoot(\n finishedWork.stateNode.containerInfo\n );\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n currentHoistableRoot = flags;\n break;\n case 12:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n break;\n case 13:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n finishedWork.child.flags & 8192 &&\n (null !== finishedWork.memoizedState) !==\n (null !== current && null !== current.memoizedState) &&\n (globalMostRecentFallbackTime = now());\n flags & 4 &&\n ((flags = finishedWork.updateQueue),\n null !== flags &&\n ((finishedWork.updateQueue = null),\n attachSuspenseRetryListeners(finishedWork, flags)));\n break;\n case 22:\n hoistableRoot = null !== finishedWork.memoizedState;\n var wasHidden = null !== current && null !== current.memoizedState,\n prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden,\n prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;\n offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || hoistableRoot;\n offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden;\n recursivelyTraverseMutationEffects(root, finishedWork);\n offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;\n offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden;\n commitReconciliationEffects(finishedWork);\n if (flags & 8192)\n a: for (\n root = finishedWork.stateNode,\n root._visibility = hoistableRoot\n ? root._visibility & -2\n : root._visibility | 1,\n hoistableRoot &&\n (null === current ||\n wasHidden ||\n offscreenSubtreeIsHidden ||\n offscreenSubtreeWasHidden ||\n recursivelyTraverseDisappearLayoutEffects(finishedWork)),\n current = null,\n root = finishedWork;\n ;\n\n ) {\n if (5 === root.tag || 26 === root.tag) {\n if (null === current) {\n wasHidden = current = root;\n try {\n if (((currentResource = wasHidden.stateNode), hoistableRoot))\n (maybeNodes = currentResource.style),\n \"function\" === typeof maybeNodes.setProperty\n ? maybeNodes.setProperty(\"display\", \"none\", \"important\")\n : (maybeNodes.display = \"none\");\n else {\n i = wasHidden.stateNode;\n var styleProp = wasHidden.memoizedProps.style,\n display =\n void 0 !== styleProp &&\n null !== styleProp &&\n styleProp.hasOwnProperty(\"display\")\n ? styleProp.display\n : null;\n i.style.display =\n null == display || \"boolean\" === typeof display\n ? \"\"\n : (\"\" + display).trim();\n }\n } catch (error) {\n captureCommitPhaseError(wasHidden, wasHidden.return, error);\n }\n }\n } else if (6 === root.tag) {\n if (null === current) {\n wasHidden = root;\n try {\n wasHidden.stateNode.nodeValue = hoistableRoot\n ? \"\"\n : wasHidden.memoizedProps;\n } catch (error) {\n captureCommitPhaseError(wasHidden, wasHidden.return, error);\n }\n }\n } else if (\n ((22 !== root.tag && 23 !== root.tag) ||\n null === root.memoizedState ||\n root === finishedWork) &&\n null !== root.child\n ) {\n root.child.return = root;\n root = root.child;\n continue;\n }\n if (root === finishedWork) break a;\n for (; null === root.sibling; ) {\n if (null === root.return || root.return === finishedWork) break a;\n current === root && (current = null);\n root = root.return;\n }\n current === root && (current = null);\n root.sibling.return = root.return;\n root = root.sibling;\n }\n flags & 4 &&\n ((flags = finishedWork.updateQueue),\n null !== flags &&\n ((current = flags.retryQueue),\n null !== current &&\n ((flags.retryQueue = null),\n attachSuspenseRetryListeners(finishedWork, current))));\n break;\n case 19:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n flags & 4 &&\n ((flags = finishedWork.updateQueue),\n null !== flags &&\n ((finishedWork.updateQueue = null),\n attachSuspenseRetryListeners(finishedWork, flags)));\n break;\n case 30:\n break;\n case 21:\n break;\n default:\n recursivelyTraverseMutationEffects(root, finishedWork),\n commitReconciliationEffects(finishedWork);\n }\n}\nfunction commitReconciliationEffects(finishedWork) {\n var flags = finishedWork.flags;\n if (flags & 2) {\n try {\n for (\n var hostParentFiber, parentFiber = finishedWork.return;\n null !== parentFiber;\n\n ) {\n if (isHostParent(parentFiber)) {\n hostParentFiber = parentFiber;\n break;\n }\n parentFiber = parentFiber.return;\n }\n if (null == hostParentFiber) throw Error(formatProdErrorMessage(160));\n switch (hostParentFiber.tag) {\n case 27:\n var parent = hostParentFiber.stateNode,\n before = getHostSibling(finishedWork);\n insertOrAppendPlacementNode(finishedWork, before, parent);\n break;\n case 5:\n var parent$144 = hostParentFiber.stateNode;\n hostParentFiber.flags & 32 &&\n (setTextContent(parent$144, \"\"), (hostParentFiber.flags &= -33));\n var before$145 = getHostSibling(finishedWork);\n insertOrAppendPlacementNode(finishedWork, before$145, parent$144);\n break;\n case 3:\n case 4:\n var parent$146 = hostParentFiber.stateNode.containerInfo,\n before$147 = getHostSibling(finishedWork);\n insertOrAppendPlacementNodeIntoContainer(\n finishedWork,\n before$147,\n parent$146\n );\n break;\n default:\n throw Error(formatProdErrorMessage(161));\n }\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n finishedWork.flags &= -3;\n }\n flags & 4096 && (finishedWork.flags &= -4097);\n}\nfunction recursivelyResetForms(parentFiber) {\n if (parentFiber.subtreeFlags & 1024)\n for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n var fiber = parentFiber;\n recursivelyResetForms(fiber);\n 5 === fiber.tag && fiber.flags & 1024 && fiber.stateNode.reset();\n parentFiber = parentFiber.sibling;\n }\n}\nfunction recursivelyTraverseLayoutEffects(root, parentFiber) {\n if (parentFiber.subtreeFlags & 8772)\n for (parentFiber = parentFiber.child; null !== parentFiber; )\n commitLayoutEffectOnFiber(root, parentFiber.alternate, parentFiber),\n (parentFiber = parentFiber.sibling);\n}\nfunction recursivelyTraverseDisappearLayoutEffects(parentFiber) {\n for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n var finishedWork = parentFiber;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 14:\n case 15:\n commitHookEffectListUnmount(4, finishedWork, finishedWork.return);\n recursivelyTraverseDisappearLayoutEffects(finishedWork);\n break;\n case 1:\n safelyDetachRef(finishedWork, finishedWork.return);\n var instance = finishedWork.stateNode;\n \"function\" === typeof instance.componentWillUnmount &&\n safelyCallComponentWillUnmount(\n finishedWork,\n finishedWork.return,\n instance\n );\n recursivelyTraverseDisappearLayoutEffects(finishedWork);\n break;\n case 27:\n releaseSingletonInstance(finishedWork.stateNode);\n case 26:\n case 5:\n safelyDetachRef(finishedWork, finishedWork.return);\n recursivelyTraverseDisappearLayoutEffects(finishedWork);\n break;\n case 22:\n null === finishedWork.memoizedState &&\n recursivelyTraverseDisappearLayoutEffects(finishedWork);\n break;\n case 30:\n recursivelyTraverseDisappearLayoutEffects(finishedWork);\n break;\n default:\n recursivelyTraverseDisappearLayoutEffects(finishedWork);\n }\n parentFiber = parentFiber.sibling;\n }\n}\nfunction recursivelyTraverseReappearLayoutEffects(\n finishedRoot$jscomp$0,\n parentFiber,\n includeWorkInProgressEffects\n) {\n includeWorkInProgressEffects =\n includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772);\n for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n var current = parentFiber.alternate,\n finishedRoot = finishedRoot$jscomp$0,\n finishedWork = parentFiber,\n flags = finishedWork.flags;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n commitHookEffectListMount(4, finishedWork);\n break;\n case 1:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n current = finishedWork;\n finishedRoot = current.stateNode;\n if (\"function\" === typeof finishedRoot.componentDidMount)\n try {\n finishedRoot.componentDidMount();\n } catch (error) {\n captureCommitPhaseError(current, current.return, error);\n }\n current = finishedWork;\n finishedRoot = current.updateQueue;\n if (null !== finishedRoot) {\n var instance = current.stateNode;\n try {\n var hiddenCallbacks = finishedRoot.shared.hiddenCallbacks;\n if (null !== hiddenCallbacks)\n for (\n finishedRoot.shared.hiddenCallbacks = null, finishedRoot = 0;\n finishedRoot < hiddenCallbacks.length;\n finishedRoot++\n )\n callCallback(hiddenCallbacks[finishedRoot], instance);\n } catch (error) {\n captureCommitPhaseError(current, current.return, error);\n }\n }\n includeWorkInProgressEffects &&\n flags & 64 &&\n commitClassCallbacks(finishedWork);\n safelyAttachRef(finishedWork, finishedWork.return);\n break;\n case 27:\n commitHostSingletonAcquisition(finishedWork);\n case 26:\n case 5:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n includeWorkInProgressEffects &&\n null === current &&\n flags & 4 &&\n commitHostMount(finishedWork);\n safelyAttachRef(finishedWork, finishedWork.return);\n break;\n case 12:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n break;\n case 13:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n includeWorkInProgressEffects &&\n flags & 4 &&\n commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);\n break;\n case 22:\n null === finishedWork.memoizedState &&\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n safelyAttachRef(finishedWork, finishedWork.return);\n break;\n case 30:\n break;\n default:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n }\n parentFiber = parentFiber.sibling;\n }\n}\nfunction commitOffscreenPassiveMountEffects(current, finishedWork) {\n var previousCache = null;\n null !== current &&\n null !== current.memoizedState &&\n null !== current.memoizedState.cachePool &&\n (previousCache = current.memoizedState.cachePool.pool);\n current = null;\n null !== finishedWork.memoizedState &&\n null !== finishedWork.memoizedState.cachePool &&\n (current = finishedWork.memoizedState.cachePool.pool);\n current !== previousCache &&\n (null != current && current.refCount++,\n null != previousCache && releaseCache(previousCache));\n}\nfunction commitCachePassiveMountEffect(current, finishedWork) {\n current = null;\n null !== finishedWork.alternate &&\n (current = finishedWork.alternate.memoizedState.cache);\n finishedWork = finishedWork.memoizedState.cache;\n finishedWork !== current &&\n (finishedWork.refCount++, null != current && releaseCache(current));\n}\nfunction recursivelyTraversePassiveMountEffects(\n root,\n parentFiber,\n committedLanes,\n committedTransitions\n) {\n if (parentFiber.subtreeFlags & 10256)\n for (parentFiber = parentFiber.child; null !== parentFiber; )\n commitPassiveMountOnFiber(\n root,\n parentFiber,\n committedLanes,\n committedTransitions\n ),\n (parentFiber = parentFiber.sibling);\n}\nfunction commitPassiveMountOnFiber(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n) {\n var flags = finishedWork.flags;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n flags & 2048 && commitHookEffectListMount(9, finishedWork);\n break;\n case 1:\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n break;\n case 3:\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n flags & 2048 &&\n ((finishedRoot = null),\n null !== finishedWork.alternate &&\n (finishedRoot = finishedWork.alternate.memoizedState.cache),\n (finishedWork = finishedWork.memoizedState.cache),\n finishedWork !== finishedRoot &&\n (finishedWork.refCount++,\n null != finishedRoot && releaseCache(finishedRoot)));\n break;\n case 12:\n if (flags & 2048) {\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n finishedRoot = finishedWork.stateNode;\n try {\n var _finishedWork$memoize2 = finishedWork.memoizedProps,\n id = _finishedWork$memoize2.id,\n onPostCommit = _finishedWork$memoize2.onPostCommit;\n \"function\" === typeof onPostCommit &&\n onPostCommit(\n id,\n null === finishedWork.alternate ? \"mount\" : \"update\",\n finishedRoot.passiveEffectDuration,\n -0\n );\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n } else\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n break;\n case 13:\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n break;\n case 23:\n break;\n case 22:\n _finishedWork$memoize2 = finishedWork.stateNode;\n id = finishedWork.alternate;\n null !== finishedWork.memoizedState\n ? _finishedWork$memoize2._visibility & 2\n ? recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n )\n : recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork)\n : _finishedWork$memoize2._visibility & 2\n ? recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n )\n : ((_finishedWork$memoize2._visibility |= 2),\n recursivelyTraverseReconnectPassiveEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions,\n 0 !== (finishedWork.subtreeFlags & 10256)\n ));\n flags & 2048 && commitOffscreenPassiveMountEffects(id, finishedWork);\n break;\n case 24:\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n flags & 2048 &&\n commitCachePassiveMountEffect(finishedWork.alternate, finishedWork);\n break;\n default:\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n }\n}\nfunction recursivelyTraverseReconnectPassiveEffects(\n finishedRoot$jscomp$0,\n parentFiber,\n committedLanes$jscomp$0,\n committedTransitions$jscomp$0,\n includeWorkInProgressEffects\n) {\n includeWorkInProgressEffects =\n includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 10256);\n for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n var finishedRoot = finishedRoot$jscomp$0,\n finishedWork = parentFiber,\n committedLanes = committedLanes$jscomp$0,\n committedTransitions = committedTransitions$jscomp$0,\n flags = finishedWork.flags;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n recursivelyTraverseReconnectPassiveEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions,\n includeWorkInProgressEffects\n );\n commitHookEffectListMount(8, finishedWork);\n break;\n case 23:\n break;\n case 22:\n var instance = finishedWork.stateNode;\n null !== finishedWork.memoizedState\n ? instance._visibility & 2\n ? recursivelyTraverseReconnectPassiveEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions,\n includeWorkInProgressEffects\n )\n : recursivelyTraverseAtomicPassiveEffects(\n finishedRoot,\n finishedWork\n )\n : ((instance._visibility |= 2),\n recursivelyTraverseReconnectPassiveEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions,\n includeWorkInProgressEffects\n ));\n includeWorkInProgressEffects &&\n flags & 2048 &&\n commitOffscreenPassiveMountEffects(\n finishedWork.alternate,\n finishedWork\n );\n break;\n case 24:\n recursivelyTraverseReconnectPassiveEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions,\n includeWorkInProgressEffects\n );\n includeWorkInProgressEffects &&\n flags & 2048 &&\n commitCachePassiveMountEffect(finishedWork.alternate, finishedWork);\n break;\n default:\n recursivelyTraverseReconnectPassiveEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions,\n includeWorkInProgressEffects\n );\n }\n parentFiber = parentFiber.sibling;\n }\n}\nfunction recursivelyTraverseAtomicPassiveEffects(\n finishedRoot$jscomp$0,\n parentFiber\n) {\n if (parentFiber.subtreeFlags & 10256)\n for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n var finishedRoot = finishedRoot$jscomp$0,\n finishedWork = parentFiber,\n flags = finishedWork.flags;\n switch (finishedWork.tag) {\n case 22:\n recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork);\n flags & 2048 &&\n commitOffscreenPassiveMountEffects(\n finishedWork.alternate,\n finishedWork\n );\n break;\n case 24:\n recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork);\n flags & 2048 &&\n commitCachePassiveMountEffect(finishedWork.alternate, finishedWork);\n break;\n default:\n recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork);\n }\n parentFiber = parentFiber.sibling;\n }\n}\nvar suspenseyCommitFlag = 8192;\nfunction recursivelyAccumulateSuspenseyCommit(parentFiber) {\n if (parentFiber.subtreeFlags & suspenseyCommitFlag)\n for (parentFiber = parentFiber.child; null !== parentFiber; )\n accumulateSuspenseyCommitOnFiber(parentFiber),\n (parentFiber = parentFiber.sibling);\n}\nfunction accumulateSuspenseyCommitOnFiber(fiber) {\n switch (fiber.tag) {\n case 26:\n recursivelyAccumulateSuspenseyCommit(fiber);\n fiber.flags & suspenseyCommitFlag &&\n null !== fiber.memoizedState &&\n suspendResource(\n currentHoistableRoot,\n fiber.memoizedState,\n fiber.memoizedProps\n );\n break;\n case 5:\n recursivelyAccumulateSuspenseyCommit(fiber);\n break;\n case 3:\n case 4:\n var previousHoistableRoot = currentHoistableRoot;\n currentHoistableRoot = getHoistableRoot(fiber.stateNode.containerInfo);\n recursivelyAccumulateSuspenseyCommit(fiber);\n currentHoistableRoot = previousHoistableRoot;\n break;\n case 22:\n null === fiber.memoizedState &&\n ((previousHoistableRoot = fiber.alternate),\n null !== previousHoistableRoot &&\n null !== previousHoistableRoot.memoizedState\n ? ((previousHoistableRoot = suspenseyCommitFlag),\n (suspenseyCommitFlag = 16777216),\n recursivelyAccumulateSuspenseyCommit(fiber),\n (suspenseyCommitFlag = previousHoistableRoot))\n : recursivelyAccumulateSuspenseyCommit(fiber));\n break;\n default:\n recursivelyAccumulateSuspenseyCommit(fiber);\n }\n}\nfunction detachAlternateSiblings(parentFiber) {\n var previousFiber = parentFiber.alternate;\n if (\n null !== previousFiber &&\n ((parentFiber = previousFiber.child), null !== parentFiber)\n ) {\n previousFiber.child = null;\n do\n (previousFiber = parentFiber.sibling),\n (parentFiber.sibling = null),\n (parentFiber = previousFiber);\n while (null !== parentFiber);\n }\n}\nfunction recursivelyTraversePassiveUnmountEffects(parentFiber) {\n var deletions = parentFiber.deletions;\n if (0 !== (parentFiber.flags & 16)) {\n if (null !== deletions)\n for (var i = 0; i < deletions.length; i++) {\n var childToDelete = deletions[i];\n nextEffect = childToDelete;\n commitPassiveUnmountEffectsInsideOfDeletedTree_begin(\n childToDelete,\n parentFiber\n );\n }\n detachAlternateSiblings(parentFiber);\n }\n if (parentFiber.subtreeFlags & 10256)\n for (parentFiber = parentFiber.child; null !== parentFiber; )\n commitPassiveUnmountOnFiber(parentFiber),\n (parentFiber = parentFiber.sibling);\n}\nfunction commitPassiveUnmountOnFiber(finishedWork) {\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n recursivelyTraversePassiveUnmountEffects(finishedWork);\n finishedWork.flags & 2048 &&\n commitHookEffectListUnmount(9, finishedWork, finishedWork.return);\n break;\n case 3:\n recursivelyTraversePassiveUnmountEffects(finishedWork);\n break;\n case 12:\n recursivelyTraversePassiveUnmountEffects(finishedWork);\n break;\n case 22:\n var instance = finishedWork.stateNode;\n null !== finishedWork.memoizedState &&\n instance._visibility & 2 &&\n (null === finishedWork.return || 13 !== finishedWork.return.tag)\n ? ((instance._visibility &= -3),\n recursivelyTraverseDisconnectPassiveEffects(finishedWork))\n : recursivelyTraversePassiveUnmountEffects(finishedWork);\n break;\n default:\n recursivelyTraversePassiveUnmountEffects(finishedWork);\n }\n}\nfunction recursivelyTraverseDisconnectPassiveEffects(parentFiber) {\n var deletions = parentFiber.deletions;\n if (0 !== (parentFiber.flags & 16)) {\n if (null !== deletions)\n for (var i = 0; i < deletions.length; i++) {\n var childToDelete = deletions[i];\n nextEffect = childToDelete;\n commitPassiveUnmountEffectsInsideOfDeletedTree_begin(\n childToDelete,\n parentFiber\n );\n }\n detachAlternateSiblings(parentFiber);\n }\n for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n deletions = parentFiber;\n switch (deletions.tag) {\n case 0:\n case 11:\n case 15:\n commitHookEffectListUnmount(8, deletions, deletions.return);\n recursivelyTraverseDisconnectPassiveEffects(deletions);\n break;\n case 22:\n i = deletions.stateNode;\n i._visibility & 2 &&\n ((i._visibility &= -3),\n recursivelyTraverseDisconnectPassiveEffects(deletions));\n break;\n default:\n recursivelyTraverseDisconnectPassiveEffects(deletions);\n }\n parentFiber = parentFiber.sibling;\n }\n}\nfunction commitPassiveUnmountEffectsInsideOfDeletedTree_begin(\n deletedSubtreeRoot,\n nearestMountedAncestor\n) {\n for (; null !== nextEffect; ) {\n var fiber = nextEffect;\n switch (fiber.tag) {\n case 0:\n case 11:\n case 15:\n commitHookEffectListUnmount(8, fiber, nearestMountedAncestor);\n break;\n case 23:\n case 22:\n if (\n null !== fiber.memoizedState &&\n null !== fiber.memoizedState.cachePool\n ) {\n var cache = fiber.memoizedState.cachePool.pool;\n null != cache && cache.refCount++;\n }\n break;\n case 24:\n releaseCache(fiber.memoizedState.cache);\n }\n cache = fiber.child;\n if (null !== cache) (cache.return = fiber), (nextEffect = cache);\n else\n a: for (fiber = deletedSubtreeRoot; null !== nextEffect; ) {\n cache = nextEffect;\n var sibling = cache.sibling,\n returnFiber = cache.return;\n detachFiberAfterEffects(cache);\n if (cache === fiber) {\n nextEffect = null;\n break a;\n }\n if (null !== sibling) {\n sibling.return = returnFiber;\n nextEffect = sibling;\n break a;\n }\n nextEffect = returnFiber;\n }\n }\n}\nvar DefaultAsyncDispatcher = {\n getCacheForType: function (resourceType) {\n var cache = readContext(CacheContext),\n cacheForType = cache.data.get(resourceType);\n void 0 === cacheForType &&\n ((cacheForType = resourceType()),\n cache.data.set(resourceType, cacheForType));\n return cacheForType;\n }\n },\n PossiblyWeakMap = \"function\" === typeof WeakMap ? WeakMap : Map,\n executionContext = 0,\n workInProgressRoot = null,\n workInProgress = null,\n workInProgressRootRenderLanes = 0,\n workInProgressSuspendedReason = 0,\n workInProgressThrownValue = null,\n workInProgressRootDidSkipSuspendedSiblings = !1,\n workInProgressRootIsPrerendering = !1,\n workInProgressRootDidAttachPingListener = !1,\n entangledRenderLanes = 0,\n workInProgressRootExitStatus = 0,\n workInProgressRootSkippedLanes = 0,\n workInProgressRootInterleavedUpdatedLanes = 0,\n workInProgressRootPingedLanes = 0,\n workInProgressDeferredLane = 0,\n workInProgressSuspendedRetryLanes = 0,\n workInProgressRootConcurrentErrors = null,\n workInProgressRootRecoverableErrors = null,\n workInProgressRootDidIncludeRecursiveRenderUpdate = !1,\n globalMostRecentFallbackTime = 0,\n workInProgressRootRenderTargetTime = Infinity,\n workInProgressTransitions = null,\n legacyErrorBoundariesThatAlreadyFailed = null,\n pendingEffectsStatus = 0,\n pendingEffectsRoot = null,\n pendingFinishedWork = null,\n pendingEffectsLanes = 0,\n pendingEffectsRemainingLanes = 0,\n pendingPassiveTransitions = null,\n pendingRecoverableErrors = null,\n nestedUpdateCount = 0,\n rootWithNestedUpdates = null;\nfunction requestUpdateLane() {\n if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes)\n return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;\n if (null !== ReactSharedInternals.T) {\n var actionScopeLane = currentEntangledLane;\n return 0 !== actionScopeLane ? actionScopeLane : requestTransitionLane();\n }\n return resolveUpdatePriority();\n}\nfunction requestDeferredLane() {\n 0 === workInProgressDeferredLane &&\n (workInProgressDeferredLane =\n 0 === (workInProgressRootRenderLanes & 536870912) || isHydrating\n ? claimNextTransitionLane()\n : 536870912);\n var suspenseHandler = suspenseHandlerStackCursor.current;\n null !== suspenseHandler && (suspenseHandler.flags |= 32);\n return workInProgressDeferredLane;\n}\nfunction scheduleUpdateOnFiber(root, fiber, lane) {\n if (\n (root === workInProgressRoot &&\n (2 === workInProgressSuspendedReason ||\n 9 === workInProgressSuspendedReason)) ||\n null !== root.cancelPendingCommit\n )\n prepareFreshStack(root, 0),\n markRootSuspended(\n root,\n workInProgressRootRenderLanes,\n workInProgressDeferredLane,\n !1\n );\n markRootUpdated$1(root, lane);\n if (0 === (executionContext & 2) || root !== workInProgressRoot)\n root === workInProgressRoot &&\n (0 === (executionContext & 2) &&\n (workInProgressRootInterleavedUpdatedLanes |= lane),\n 4 === workInProgressRootExitStatus &&\n markRootSuspended(\n root,\n workInProgressRootRenderLanes,\n workInProgressDeferredLane,\n !1\n )),\n ensureRootIsScheduled(root);\n}\nfunction performWorkOnRoot(root$jscomp$0, lanes, forceSync) {\n if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));\n var shouldTimeSlice =\n (!forceSync &&\n 0 === (lanes & 124) &&\n 0 === (lanes & root$jscomp$0.expiredLanes)) ||\n checkIfRootIsPrerendering(root$jscomp$0, lanes),\n exitStatus = shouldTimeSlice\n ? renderRootConcurrent(root$jscomp$0, lanes)\n : renderRootSync(root$jscomp$0, lanes, !0),\n renderWasConcurrent = shouldTimeSlice;\n do {\n if (0 === exitStatus) {\n workInProgressRootIsPrerendering &&\n !shouldTimeSlice &&\n markRootSuspended(root$jscomp$0, lanes, 0, !1);\n break;\n } else {\n forceSync = root$jscomp$0.current.alternate;\n if (\n renderWasConcurrent &&\n !isRenderConsistentWithExternalStores(forceSync)\n ) {\n exitStatus = renderRootSync(root$jscomp$0, lanes, !1);\n renderWasConcurrent = !1;\n continue;\n }\n if (2 === exitStatus) {\n renderWasConcurrent = lanes;\n if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)\n var JSCompiler_inline_result = 0;\n else\n (JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913),\n (JSCompiler_inline_result =\n 0 !== JSCompiler_inline_result\n ? JSCompiler_inline_result\n : JSCompiler_inline_result & 536870912\n ? 536870912\n : 0);\n if (0 !== JSCompiler_inline_result) {\n lanes = JSCompiler_inline_result;\n a: {\n var root = root$jscomp$0;\n exitStatus = workInProgressRootConcurrentErrors;\n var wasRootDehydrated = root.current.memoizedState.isDehydrated;\n wasRootDehydrated &&\n (prepareFreshStack(root, JSCompiler_inline_result).flags |= 256);\n JSCompiler_inline_result = renderRootSync(\n root,\n JSCompiler_inline_result,\n !1\n );\n if (2 !== JSCompiler_inline_result) {\n if (\n workInProgressRootDidAttachPingListener &&\n !wasRootDehydrated\n ) {\n root.errorRecoveryDisabledLanes |= renderWasConcurrent;\n workInProgressRootInterleavedUpdatedLanes |=\n renderWasConcurrent;\n exitStatus = 4;\n break a;\n }\n renderWasConcurrent = workInProgressRootRecoverableErrors;\n workInProgressRootRecoverableErrors = exitStatus;\n null !== renderWasConcurrent &&\n (null === workInProgressRootRecoverableErrors\n ? (workInProgressRootRecoverableErrors = renderWasConcurrent)\n : workInProgressRootRecoverableErrors.push.apply(\n workInProgressRootRecoverableErrors,\n renderWasConcurrent\n ));\n }\n exitStatus = JSCompiler_inline_result;\n }\n renderWasConcurrent = !1;\n if (2 !== exitStatus) continue;\n }\n }\n if (1 === exitStatus) {\n prepareFreshStack(root$jscomp$0, 0);\n markRootSuspended(root$jscomp$0, lanes, 0, !0);\n break;\n }\n a: {\n shouldTimeSlice = root$jscomp$0;\n renderWasConcurrent = exitStatus;\n switch (renderWasConcurrent) {\n case 0:\n case 1:\n throw Error(formatProdErrorMessage(345));\n case 4:\n if ((lanes & 4194048) !== lanes) break;\n case 6:\n markRootSuspended(\n shouldTimeSlice,\n lanes,\n workInProgressDeferredLane,\n !workInProgressRootDidSkipSuspendedSiblings\n );\n break a;\n case 2:\n workInProgressRootRecoverableErrors = null;\n break;\n case 3:\n case 5:\n break;\n default:\n throw Error(formatProdErrorMessage(329));\n }\n if (\n (lanes & 62914560) === lanes &&\n ((exitStatus = globalMostRecentFallbackTime + 300 - now()),\n 10 < exitStatus)\n ) {\n markRootSuspended(\n shouldTimeSlice,\n lanes,\n workInProgressDeferredLane,\n !workInProgressRootDidSkipSuspendedSiblings\n );\n if (0 !== getNextLanes(shouldTimeSlice, 0, !0)) break a;\n shouldTimeSlice.timeoutHandle = scheduleTimeout(\n commitRootWhenReady.bind(\n null,\n shouldTimeSlice,\n forceSync,\n workInProgressRootRecoverableErrors,\n workInProgressTransitions,\n workInProgressRootDidIncludeRecursiveRenderUpdate,\n lanes,\n workInProgressDeferredLane,\n workInProgressRootInterleavedUpdatedLanes,\n workInProgressSuspendedRetryLanes,\n workInProgressRootDidSkipSuspendedSiblings,\n renderWasConcurrent,\n 2,\n -0,\n 0\n ),\n exitStatus\n );\n break a;\n }\n commitRootWhenReady(\n shouldTimeSlice,\n forceSync,\n workInProgressRootRecoverableErrors,\n workInProgressTransitions,\n workInProgressRootDidIncludeRecursiveRenderUpdate,\n lanes,\n workInProgressDeferredLane,\n workInProgressRootInterleavedUpdatedLanes,\n workInProgressSuspendedRetryLanes,\n workInProgressRootDidSkipSuspendedSiblings,\n renderWasConcurrent,\n 0,\n -0,\n 0\n );\n }\n }\n break;\n } while (1);\n ensureRootIsScheduled(root$jscomp$0);\n}\nfunction commitRootWhenReady(\n root,\n finishedWork,\n recoverableErrors,\n transitions,\n didIncludeRenderPhaseUpdate,\n lanes,\n spawnedLane,\n updatedLanes,\n suspendedRetryLanes,\n didSkipSuspendedSiblings,\n exitStatus,\n suspendedCommitReason,\n completedRenderStartTime,\n completedRenderEndTime\n) {\n root.timeoutHandle = -1;\n suspendedCommitReason = finishedWork.subtreeFlags;\n if (\n suspendedCommitReason & 8192 ||\n 16785408 === (suspendedCommitReason & 16785408)\n )\n if (\n ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),\n accumulateSuspenseyCommitOnFiber(finishedWork),\n (suspendedCommitReason = waitForCommitToBeReady()),\n null !== suspendedCommitReason)\n ) {\n root.cancelPendingCommit = suspendedCommitReason(\n commitRoot.bind(\n null,\n root,\n finishedWork,\n lanes,\n recoverableErrors,\n transitions,\n didIncludeRenderPhaseUpdate,\n spawnedLane,\n updatedLanes,\n suspendedRetryLanes,\n exitStatus,\n 1,\n completedRenderStartTime,\n completedRenderEndTime\n )\n );\n markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings);\n return;\n }\n commitRoot(\n root,\n finishedWork,\n lanes,\n recoverableErrors,\n transitions,\n didIncludeRenderPhaseUpdate,\n spawnedLane,\n updatedLanes,\n suspendedRetryLanes\n );\n}\nfunction isRenderConsistentWithExternalStores(finishedWork) {\n for (var node = finishedWork; ; ) {\n var tag = node.tag;\n if (\n (0 === tag || 11 === tag || 15 === tag) &&\n node.flags & 16384 &&\n ((tag = node.updateQueue),\n null !== tag && ((tag = tag.stores), null !== tag))\n )\n for (var i = 0; i < tag.length; i++) {\n var check = tag[i],\n getSnapshot = check.getSnapshot;\n check = check.value;\n try {\n if (!objectIs(getSnapshot(), check)) return !1;\n } catch (error) {\n return !1;\n }\n }\n tag = node.child;\n if (node.subtreeFlags & 16384 && null !== tag)\n (tag.return = node), (node = tag);\n else {\n if (node === finishedWork) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === finishedWork) return !0;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n }\n return !0;\n}\nfunction markRootSuspended(\n root,\n suspendedLanes,\n spawnedLane,\n didAttemptEntireTree\n) {\n suspendedLanes &= ~workInProgressRootPingedLanes;\n suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;\n root.suspendedLanes |= suspendedLanes;\n root.pingedLanes &= ~suspendedLanes;\n didAttemptEntireTree && (root.warmLanes |= suspendedLanes);\n didAttemptEntireTree = root.expirationTimes;\n for (var lanes = suspendedLanes; 0 < lanes; ) {\n var index$4 = 31 - clz32(lanes),\n lane = 1 << index$4;\n didAttemptEntireTree[index$4] = -1;\n lanes &= ~lane;\n }\n 0 !== spawnedLane &&\n markSpawnedDeferredLane(root, spawnedLane, suspendedLanes);\n}\nfunction flushSyncWork$1() {\n return 0 === (executionContext & 6)\n ? (flushSyncWorkAcrossRoots_impl(0, !1), !1)\n : !0;\n}\nfunction resetWorkInProgressStack() {\n if (null !== workInProgress) {\n if (0 === workInProgressSuspendedReason)\n var interruptedWork = workInProgress.return;\n else\n (interruptedWork = workInProgress),\n (lastContextDependency = currentlyRenderingFiber$1 = null),\n resetHooksOnUnwind(interruptedWork),\n (thenableState = null),\n (thenableIndexCounter = 0),\n (interruptedWork = workInProgress);\n for (; null !== interruptedWork; )\n unwindInterruptedWork(interruptedWork.alternate, interruptedWork),\n (interruptedWork = interruptedWork.return);\n workInProgress = null;\n }\n}\nfunction prepareFreshStack(root, lanes) {\n var timeoutHandle = root.timeoutHandle;\n -1 !== timeoutHandle &&\n ((root.timeoutHandle = -1), cancelTimeout(timeoutHandle));\n timeoutHandle = root.cancelPendingCommit;\n null !== timeoutHandle &&\n ((root.cancelPendingCommit = null), timeoutHandle());\n resetWorkInProgressStack();\n workInProgressRoot = root;\n workInProgress = timeoutHandle = createWorkInProgress(root.current, null);\n workInProgressRootRenderLanes = lanes;\n workInProgressSuspendedReason = 0;\n workInProgressThrownValue = null;\n workInProgressRootDidSkipSuspendedSiblings = !1;\n workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);\n workInProgressRootDidAttachPingListener = !1;\n workInProgressSuspendedRetryLanes =\n workInProgressDeferredLane =\n workInProgressRootPingedLanes =\n workInProgressRootInterleavedUpdatedLanes =\n workInProgressRootSkippedLanes =\n workInProgressRootExitStatus =\n 0;\n workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors =\n null;\n workInProgressRootDidIncludeRecursiveRenderUpdate = !1;\n 0 !== (lanes & 8) && (lanes |= lanes & 32);\n var allEntangledLanes = root.entangledLanes;\n if (0 !== allEntangledLanes)\n for (\n root = root.entanglements, allEntangledLanes &= lanes;\n 0 < allEntangledLanes;\n\n ) {\n var index$2 = 31 - clz32(allEntangledLanes),\n lane = 1 << index$2;\n lanes |= root[index$2];\n allEntangledLanes &= ~lane;\n }\n entangledRenderLanes = lanes;\n finishQueueingConcurrentUpdates();\n return timeoutHandle;\n}\nfunction handleThrow(root, thrownValue) {\n currentlyRenderingFiber = null;\n ReactSharedInternals.H = ContextOnlyDispatcher;\n thrownValue === SuspenseException || thrownValue === SuspenseActionException\n ? ((thrownValue = getSuspendedThenable()),\n (workInProgressSuspendedReason = 3))\n : thrownValue === SuspenseyCommitException\n ? ((thrownValue = getSuspendedThenable()),\n (workInProgressSuspendedReason = 4))\n : (workInProgressSuspendedReason =\n thrownValue === SelectiveHydrationException\n ? 8\n : null !== thrownValue &&\n \"object\" === typeof thrownValue &&\n \"function\" === typeof thrownValue.then\n ? 6\n : 1);\n workInProgressThrownValue = thrownValue;\n null === workInProgress &&\n ((workInProgressRootExitStatus = 1),\n logUncaughtError(\n root,\n createCapturedValueAtFiber(thrownValue, root.current)\n ));\n}\nfunction pushDispatcher() {\n var prevDispatcher = ReactSharedInternals.H;\n ReactSharedInternals.H = ContextOnlyDispatcher;\n return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher;\n}\nfunction pushAsyncDispatcher() {\n var prevAsyncDispatcher = ReactSharedInternals.A;\n ReactSharedInternals.A = DefaultAsyncDispatcher;\n return prevAsyncDispatcher;\n}\nfunction renderDidSuspendDelayIfPossible() {\n workInProgressRootExitStatus = 4;\n workInProgressRootDidSkipSuspendedSiblings ||\n ((workInProgressRootRenderLanes & 4194048) !==\n workInProgressRootRenderLanes &&\n null !== suspenseHandlerStackCursor.current) ||\n (workInProgressRootIsPrerendering = !0);\n (0 === (workInProgressRootSkippedLanes & 134217727) &&\n 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) ||\n null === workInProgressRoot ||\n markRootSuspended(\n workInProgressRoot,\n workInProgressRootRenderLanes,\n workInProgressDeferredLane,\n !1\n );\n}\nfunction renderRootSync(root, lanes, shouldYieldForPrerendering) {\n var prevExecutionContext = executionContext;\n executionContext |= 2;\n var prevDispatcher = pushDispatcher(),\n prevAsyncDispatcher = pushAsyncDispatcher();\n if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes)\n (workInProgressTransitions = null), prepareFreshStack(root, lanes);\n lanes = !1;\n var exitStatus = workInProgressRootExitStatus;\n a: do\n try {\n if (0 !== workInProgressSuspendedReason && null !== workInProgress) {\n var unitOfWork = workInProgress,\n thrownValue = workInProgressThrownValue;\n switch (workInProgressSuspendedReason) {\n case 8:\n resetWorkInProgressStack();\n exitStatus = 6;\n break a;\n case 3:\n case 2:\n case 9:\n case 6:\n null === suspenseHandlerStackCursor.current && (lanes = !0);\n var reason = workInProgressSuspendedReason;\n workInProgressSuspendedReason = 0;\n workInProgressThrownValue = null;\n throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);\n if (\n shouldYieldForPrerendering &&\n workInProgressRootIsPrerendering\n ) {\n exitStatus = 0;\n break a;\n }\n break;\n default:\n (reason = workInProgressSuspendedReason),\n (workInProgressSuspendedReason = 0),\n (workInProgressThrownValue = null),\n throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);\n }\n }\n workLoopSync();\n exitStatus = workInProgressRootExitStatus;\n break;\n } catch (thrownValue$167) {\n handleThrow(root, thrownValue$167);\n }\n while (1);\n lanes && root.shellSuspendCounter++;\n lastContextDependency = currentlyRenderingFiber$1 = null;\n executionContext = prevExecutionContext;\n ReactSharedInternals.H = prevDispatcher;\n ReactSharedInternals.A = prevAsyncDispatcher;\n null === workInProgress &&\n ((workInProgressRoot = null),\n (workInProgressRootRenderLanes = 0),\n finishQueueingConcurrentUpdates());\n return exitStatus;\n}\nfunction workLoopSync() {\n for (; null !== workInProgress; ) performUnitOfWork(workInProgress);\n}\nfunction renderRootConcurrent(root, lanes) {\n var prevExecutionContext = executionContext;\n executionContext |= 2;\n var prevDispatcher = pushDispatcher(),\n prevAsyncDispatcher = pushAsyncDispatcher();\n workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes\n ? ((workInProgressTransitions = null),\n (workInProgressRootRenderTargetTime = now() + 500),\n prepareFreshStack(root, lanes))\n : (workInProgressRootIsPrerendering = checkIfRootIsPrerendering(\n root,\n lanes\n ));\n a: do\n try {\n if (0 !== workInProgressSuspendedReason && null !== workInProgress) {\n lanes = workInProgress;\n var thrownValue = workInProgressThrownValue;\n b: switch (workInProgressSuspendedReason) {\n case 1:\n workInProgressSuspendedReason = 0;\n workInProgressThrownValue = null;\n throwAndUnwindWorkLoop(root, lanes, thrownValue, 1);\n break;\n case 2:\n case 9:\n if (isThenableResolved(thrownValue)) {\n workInProgressSuspendedReason = 0;\n workInProgressThrownValue = null;\n replaySuspendedUnitOfWork(lanes);\n break;\n }\n lanes = function () {\n (2 !== workInProgressSuspendedReason &&\n 9 !== workInProgressSuspendedReason) ||\n workInProgressRoot !== root ||\n (workInProgressSuspendedReason = 7);\n ensureRootIsScheduled(root);\n };\n thrownValue.then(lanes, lanes);\n break a;\n case 3:\n workInProgressSuspendedReason = 7;\n break a;\n case 4:\n workInProgressSuspendedReason = 5;\n break a;\n case 7:\n isThenableResolved(thrownValue)\n ? ((workInProgressSuspendedReason = 0),\n (workInProgressThrownValue = null),\n replaySuspendedUnitOfWork(lanes))\n : ((workInProgressSuspendedReason = 0),\n (workInProgressThrownValue = null),\n throwAndUnwindWorkLoop(root, lanes, thrownValue, 7));\n break;\n case 5:\n var resource = null;\n switch (workInProgress.tag) {\n case 26:\n resource = workInProgress.memoizedState;\n case 5:\n case 27:\n var hostFiber = workInProgress;\n if (resource ? preloadResource(resource) : 1) {\n workInProgressSuspendedReason = 0;\n workInProgressThrownValue = null;\n var sibling = hostFiber.sibling;\n if (null !== sibling) workInProgress = sibling;\n else {\n var returnFiber = hostFiber.return;\n null !== returnFiber\n ? ((workInProgress = returnFiber),\n completeUnitOfWork(returnFiber))\n : (workInProgress = null);\n }\n break b;\n }\n }\n workInProgressSuspendedReason = 0;\n workInProgressThrownValue = null;\n throwAndUnwindWorkLoop(root, lanes, thrownValue, 5);\n break;\n case 6:\n workInProgressSuspendedReason = 0;\n workInProgressThrownValue = null;\n throwAndUnwindWorkLoop(root, lanes, thrownValue, 6);\n break;\n case 8:\n resetWorkInProgressStack();\n workInProgressRootExitStatus = 6;\n break a;\n default:\n throw Error(formatProdErrorMessage(462));\n }\n }\n workLoopConcurrentByScheduler();\n break;\n } catch (thrownValue$169) {\n handleThrow(root, thrownValue$169);\n }\n while (1);\n lastContextDependency = currentlyRenderingFiber$1 = null;\n ReactSharedInternals.H = prevDispatcher;\n ReactSharedInternals.A = prevAsyncDispatcher;\n executionContext = prevExecutionContext;\n if (null !== workInProgress) return 0;\n workInProgressRoot = null;\n workInProgressRootRenderLanes = 0;\n finishQueueingConcurrentUpdates();\n return workInProgressRootExitStatus;\n}\nfunction workLoopConcurrentByScheduler() {\n for (; null !== workInProgress && !shouldYield(); )\n performUnitOfWork(workInProgress);\n}\nfunction performUnitOfWork(unitOfWork) {\n var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes);\n unitOfWork.memoizedProps = unitOfWork.pendingProps;\n null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);\n}\nfunction replaySuspendedUnitOfWork(unitOfWork) {\n var next = unitOfWork;\n var current = next.alternate;\n switch (next.tag) {\n case 15:\n case 0:\n next = replayFunctionComponent(\n current,\n next,\n next.pendingProps,\n next.type,\n void 0,\n workInProgressRootRenderLanes\n );\n break;\n case 11:\n next = replayFunctionComponent(\n current,\n next,\n next.pendingProps,\n next.type.render,\n next.ref,\n workInProgressRootRenderLanes\n );\n break;\n case 5:\n resetHooksOnUnwind(next);\n default:\n unwindInterruptedWork(current, next),\n (next = workInProgress =\n resetWorkInProgress(next, entangledRenderLanes)),\n (next = beginWork(current, next, entangledRenderLanes));\n }\n unitOfWork.memoizedProps = unitOfWork.pendingProps;\n null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);\n}\nfunction throwAndUnwindWorkLoop(\n root,\n unitOfWork,\n thrownValue,\n suspendedReason\n) {\n lastContextDependency = currentlyRenderingFiber$1 = null;\n resetHooksOnUnwind(unitOfWork);\n thenableState = null;\n thenableIndexCounter = 0;\n var returnFiber = unitOfWork.return;\n try {\n if (\n throwException(\n root,\n returnFiber,\n unitOfWork,\n thrownValue,\n workInProgressRootRenderLanes\n )\n ) {\n workInProgressRootExitStatus = 1;\n logUncaughtError(\n root,\n createCapturedValueAtFiber(thrownValue, root.current)\n );\n workInProgress = null;\n return;\n }\n } catch (error) {\n if (null !== returnFiber) throw ((workInProgress = returnFiber), error);\n workInProgressRootExitStatus = 1;\n logUncaughtError(\n root,\n createCapturedValueAtFiber(thrownValue, root.current)\n );\n workInProgress = null;\n return;\n }\n if (unitOfWork.flags & 32768) {\n if (isHydrating || 1 === suspendedReason) root = !0;\n else if (\n workInProgressRootIsPrerendering ||\n 0 !== (workInProgressRootRenderLanes & 536870912)\n )\n root = !1;\n else if (\n ((workInProgressRootDidSkipSuspendedSiblings = root = !0),\n 2 === suspendedReason ||\n 9 === suspendedReason ||\n 3 === suspendedReason ||\n 6 === suspendedReason)\n )\n (suspendedReason = suspenseHandlerStackCursor.current),\n null !== suspendedReason &&\n 13 === suspendedReason.tag &&\n (suspendedReason.flags |= 16384);\n unwindUnitOfWork(unitOfWork, root);\n } else completeUnitOfWork(unitOfWork);\n}\nfunction completeUnitOfWork(unitOfWork) {\n var completedWork = unitOfWork;\n do {\n if (0 !== (completedWork.flags & 32768)) {\n unwindUnitOfWork(\n completedWork,\n workInProgressRootDidSkipSuspendedSiblings\n );\n return;\n }\n unitOfWork = completedWork.return;\n var next = completeWork(\n completedWork.alternate,\n completedWork,\n entangledRenderLanes\n );\n if (null !== next) {\n workInProgress = next;\n return;\n }\n completedWork = completedWork.sibling;\n if (null !== completedWork) {\n workInProgress = completedWork;\n return;\n }\n workInProgress = completedWork = unitOfWork;\n } while (null !== completedWork);\n 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5);\n}\nfunction unwindUnitOfWork(unitOfWork, skipSiblings) {\n do {\n var next = unwindWork(unitOfWork.alternate, unitOfWork);\n if (null !== next) {\n next.flags &= 32767;\n workInProgress = next;\n return;\n }\n next = unitOfWork.return;\n null !== next &&\n ((next.flags |= 32768), (next.subtreeFlags = 0), (next.deletions = null));\n if (\n !skipSiblings &&\n ((unitOfWork = unitOfWork.sibling), null !== unitOfWork)\n ) {\n workInProgress = unitOfWork;\n return;\n }\n workInProgress = unitOfWork = next;\n } while (null !== unitOfWork);\n workInProgressRootExitStatus = 6;\n workInProgress = null;\n}\nfunction commitRoot(\n root,\n finishedWork,\n lanes,\n recoverableErrors,\n transitions,\n didIncludeRenderPhaseUpdate,\n spawnedLane,\n updatedLanes,\n suspendedRetryLanes\n) {\n root.cancelPendingCommit = null;\n do flushPendingEffects();\n while (0 !== pendingEffectsStatus);\n if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));\n if (null !== finishedWork) {\n if (finishedWork === root.current) throw Error(formatProdErrorMessage(177));\n didIncludeRenderPhaseUpdate = finishedWork.lanes | finishedWork.childLanes;\n didIncludeRenderPhaseUpdate |= concurrentlyUpdatedLanes;\n markRootFinished(\n root,\n lanes,\n didIncludeRenderPhaseUpdate,\n spawnedLane,\n updatedLanes,\n suspendedRetryLanes\n );\n root === workInProgressRoot &&\n ((workInProgress = workInProgressRoot = null),\n (workInProgressRootRenderLanes = 0));\n pendingFinishedWork = finishedWork;\n pendingEffectsRoot = root;\n pendingEffectsLanes = lanes;\n pendingEffectsRemainingLanes = didIncludeRenderPhaseUpdate;\n pendingPassiveTransitions = transitions;\n pendingRecoverableErrors = recoverableErrors;\n 0 !== (finishedWork.subtreeFlags & 10256) ||\n 0 !== (finishedWork.flags & 10256)\n ? ((root.callbackNode = null),\n (root.callbackPriority = 0),\n scheduleCallback$1(NormalPriority$1, function () {\n flushPassiveEffects(!0);\n return null;\n }))\n : ((root.callbackNode = null), (root.callbackPriority = 0));\n recoverableErrors = 0 !== (finishedWork.flags & 13878);\n if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) {\n recoverableErrors = ReactSharedInternals.T;\n ReactSharedInternals.T = null;\n transitions = ReactDOMSharedInternals.p;\n ReactDOMSharedInternals.p = 2;\n spawnedLane = executionContext;\n executionContext |= 4;\n try {\n commitBeforeMutationEffects(root, finishedWork, lanes);\n } finally {\n (executionContext = spawnedLane),\n (ReactDOMSharedInternals.p = transitions),\n (ReactSharedInternals.T = recoverableErrors);\n }\n }\n pendingEffectsStatus = 1;\n flushMutationEffects();\n flushLayoutEffects();\n flushSpawnedWork();\n }\n}\nfunction flushMutationEffects() {\n if (1 === pendingEffectsStatus) {\n pendingEffectsStatus = 0;\n var root = pendingEffectsRoot,\n finishedWork = pendingFinishedWork,\n rootMutationHasEffect = 0 !== (finishedWork.flags & 13878);\n if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) {\n rootMutationHasEffect = ReactSharedInternals.T;\n ReactSharedInternals.T = null;\n var previousPriority = ReactDOMSharedInternals.p;\n ReactDOMSharedInternals.p = 2;\n var prevExecutionContext = executionContext;\n executionContext |= 4;\n try {\n commitMutationEffectsOnFiber(finishedWork, root);\n var priorSelectionInformation = selectionInformation,\n curFocusedElem = getActiveElementDeep(root.containerInfo),\n priorFocusedElem = priorSelectionInformation.focusedElem,\n priorSelectionRange = priorSelectionInformation.selectionRange;\n if (\n curFocusedElem !== priorFocusedElem &&\n priorFocusedElem &&\n priorFocusedElem.ownerDocument &&\n containsNode(\n priorFocusedElem.ownerDocument.documentElement,\n priorFocusedElem\n )\n ) {\n if (\n null !== priorSelectionRange &&\n hasSelectionCapabilities(priorFocusedElem)\n ) {\n var start = priorSelectionRange.start,\n end = priorSelectionRange.end;\n void 0 === end && (end = start);\n if (\"selectionStart\" in priorFocusedElem)\n (priorFocusedElem.selectionStart = start),\n (priorFocusedElem.selectionEnd = Math.min(\n end,\n priorFocusedElem.value.length\n ));\n else {\n var doc = priorFocusedElem.ownerDocument || document,\n win = (doc && doc.defaultView) || window;\n if (win.getSelection) {\n var selection = win.getSelection(),\n length = priorFocusedElem.textContent.length,\n start$jscomp$0 = Math.min(priorSelectionRange.start, length),\n end$jscomp$0 =\n void 0 === priorSelectionRange.end\n ? start$jscomp$0\n : Math.min(priorSelectionRange.end, length);\n !selection.extend &&\n start$jscomp$0 > end$jscomp$0 &&\n ((curFocusedElem = end$jscomp$0),\n (end$jscomp$0 = start$jscomp$0),\n (start$jscomp$0 = curFocusedElem));\n var startMarker = getNodeForCharacterOffset(\n priorFocusedElem,\n start$jscomp$0\n ),\n endMarker = getNodeForCharacterOffset(\n priorFocusedElem,\n end$jscomp$0\n );\n if (\n startMarker &&\n endMarker &&\n (1 !== selection.rangeCount ||\n selection.anchorNode !== startMarker.node ||\n selection.anchorOffset !== startMarker.offset ||\n selection.focusNode !== endMarker.node ||\n selection.focusOffset !== endMarker.offset)\n ) {\n var range = doc.createRange();\n range.setStart(startMarker.node, startMarker.offset);\n selection.removeAllRanges();\n start$jscomp$0 > end$jscomp$0\n ? (selection.addRange(range),\n selection.extend(endMarker.node, endMarker.offset))\n : (range.setEnd(endMarker.node, endMarker.offset),\n selection.addRange(range));\n }\n }\n }\n }\n doc = [];\n for (\n selection = priorFocusedElem;\n (selection = selection.parentNode);\n\n )\n 1 === selection.nodeType &&\n doc.push({\n element: selection,\n left: selection.scrollLeft,\n top: selection.scrollTop\n });\n \"function\" === typeof priorFocusedElem.focus &&\n priorFocusedElem.focus();\n for (\n priorFocusedElem = 0;\n priorFocusedElem < doc.length;\n priorFocusedElem++\n ) {\n var info = doc[priorFocusedElem];\n info.element.scrollLeft = info.left;\n info.element.scrollTop = info.top;\n }\n }\n _enabled = !!eventsEnabled;\n selectionInformation = eventsEnabled = null;\n } finally {\n (executionContext = prevExecutionContext),\n (ReactDOMSharedInternals.p = previousPriority),\n (ReactSharedInternals.T = rootMutationHasEffect);\n }\n }\n root.current = finishedWork;\n pendingEffectsStatus = 2;\n }\n}\nfunction flushLayoutEffects() {\n if (2 === pendingEffectsStatus) {\n pendingEffectsStatus = 0;\n var root = pendingEffectsRoot,\n finishedWork = pendingFinishedWork,\n rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772);\n if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) {\n rootHasLayoutEffect = ReactSharedInternals.T;\n ReactSharedInternals.T = null;\n var previousPriority = ReactDOMSharedInternals.p;\n ReactDOMSharedInternals.p = 2;\n var prevExecutionContext = executionContext;\n executionContext |= 4;\n try {\n commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork);\n } finally {\n (executionContext = prevExecutionContext),\n (ReactDOMSharedInternals.p = previousPriority),\n (ReactSharedInternals.T = rootHasLayoutEffect);\n }\n }\n pendingEffectsStatus = 3;\n }\n}\nfunction flushSpawnedWork() {\n if (4 === pendingEffectsStatus || 3 === pendingEffectsStatus) {\n pendingEffectsStatus = 0;\n requestPaint();\n var root = pendingEffectsRoot,\n finishedWork = pendingFinishedWork,\n lanes = pendingEffectsLanes,\n recoverableErrors = pendingRecoverableErrors;\n 0 !== (finishedWork.subtreeFlags & 10256) ||\n 0 !== (finishedWork.flags & 10256)\n ? (pendingEffectsStatus = 5)\n : ((pendingEffectsStatus = 0),\n (pendingFinishedWork = pendingEffectsRoot = null),\n releaseRootPooledCache(root, root.pendingLanes));\n var remainingLanes = root.pendingLanes;\n 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);\n lanesToEventPriority(lanes);\n finishedWork = finishedWork.stateNode;\n if (injectedHook && \"function\" === typeof injectedHook.onCommitFiberRoot)\n try {\n injectedHook.onCommitFiberRoot(\n rendererID,\n finishedWork,\n void 0,\n 128 === (finishedWork.current.flags & 128)\n );\n } catch (err) {}\n if (null !== recoverableErrors) {\n finishedWork = ReactSharedInternals.T;\n remainingLanes = ReactDOMSharedInternals.p;\n ReactDOMSharedInternals.p = 2;\n ReactSharedInternals.T = null;\n try {\n for (\n var onRecoverableError = root.onRecoverableError, i = 0;\n i < recoverableErrors.length;\n i++\n ) {\n var recoverableError = recoverableErrors[i];\n onRecoverableError(recoverableError.value, {\n componentStack: recoverableError.stack\n });\n }\n } finally {\n (ReactSharedInternals.T = finishedWork),\n (ReactDOMSharedInternals.p = remainingLanes);\n }\n }\n 0 !== (pendingEffectsLanes & 3) && flushPendingEffects();\n ensureRootIsScheduled(root);\n remainingLanes = root.pendingLanes;\n 0 !== (lanes & 4194090) && 0 !== (remainingLanes & 42)\n ? root === rootWithNestedUpdates\n ? nestedUpdateCount++\n : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))\n : (nestedUpdateCount = 0);\n flushSyncWorkAcrossRoots_impl(0, !1);\n }\n}\nfunction releaseRootPooledCache(root, remainingLanes) {\n 0 === (root.pooledCacheLanes &= remainingLanes) &&\n ((remainingLanes = root.pooledCache),\n null != remainingLanes &&\n ((root.pooledCache = null), releaseCache(remainingLanes)));\n}\nfunction flushPendingEffects(wasDelayedCommit) {\n flushMutationEffects();\n flushLayoutEffects();\n flushSpawnedWork();\n return flushPassiveEffects(wasDelayedCommit);\n}\nfunction flushPassiveEffects() {\n if (5 !== pendingEffectsStatus) return !1;\n var root = pendingEffectsRoot,\n remainingLanes = pendingEffectsRemainingLanes;\n pendingEffectsRemainingLanes = 0;\n var renderPriority = lanesToEventPriority(pendingEffectsLanes),\n prevTransition = ReactSharedInternals.T,\n previousPriority = ReactDOMSharedInternals.p;\n try {\n ReactDOMSharedInternals.p = 32 > renderPriority ? 32 : renderPriority;\n ReactSharedInternals.T = null;\n renderPriority = pendingPassiveTransitions;\n pendingPassiveTransitions = null;\n var root$jscomp$0 = pendingEffectsRoot,\n lanes = pendingEffectsLanes;\n pendingEffectsStatus = 0;\n pendingFinishedWork = pendingEffectsRoot = null;\n pendingEffectsLanes = 0;\n if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(331));\n var prevExecutionContext = executionContext;\n executionContext |= 4;\n commitPassiveUnmountOnFiber(root$jscomp$0.current);\n commitPassiveMountOnFiber(\n root$jscomp$0,\n root$jscomp$0.current,\n lanes,\n renderPriority\n );\n executionContext = prevExecutionContext;\n flushSyncWorkAcrossRoots_impl(0, !1);\n if (\n injectedHook &&\n \"function\" === typeof injectedHook.onPostCommitFiberRoot\n )\n try {\n injectedHook.onPostCommitFiberRoot(rendererID, root$jscomp$0);\n } catch (err) {}\n return !0;\n } finally {\n (ReactDOMSharedInternals.p = previousPriority),\n (ReactSharedInternals.T = prevTransition),\n releaseRootPooledCache(root, remainingLanes);\n }\n}\nfunction captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {\n sourceFiber = createCapturedValueAtFiber(error, sourceFiber);\n sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2);\n rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2);\n null !== rootFiber &&\n (markRootUpdated$1(rootFiber, 2), ensureRootIsScheduled(rootFiber));\n}\nfunction captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {\n if (3 === sourceFiber.tag)\n captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);\n else\n for (; null !== nearestMountedAncestor; ) {\n if (3 === nearestMountedAncestor.tag) {\n captureCommitPhaseErrorOnRoot(\n nearestMountedAncestor,\n sourceFiber,\n error\n );\n break;\n } else if (1 === nearestMountedAncestor.tag) {\n var instance = nearestMountedAncestor.stateNode;\n if (\n \"function\" ===\n typeof nearestMountedAncestor.type.getDerivedStateFromError ||\n (\"function\" === typeof instance.componentDidCatch &&\n (null === legacyErrorBoundariesThatAlreadyFailed ||\n !legacyErrorBoundariesThatAlreadyFailed.has(instance)))\n ) {\n sourceFiber = createCapturedValueAtFiber(error, sourceFiber);\n error = createClassErrorUpdate(2);\n instance = enqueueUpdate(nearestMountedAncestor, error, 2);\n null !== instance &&\n (initializeClassErrorUpdate(\n error,\n instance,\n nearestMountedAncestor,\n sourceFiber\n ),\n markRootUpdated$1(instance, 2),\n ensureRootIsScheduled(instance));\n break;\n }\n }\n nearestMountedAncestor = nearestMountedAncestor.return;\n }\n}\nfunction attachPingListener(root, wakeable, lanes) {\n var pingCache = root.pingCache;\n if (null === pingCache) {\n pingCache = root.pingCache = new PossiblyWeakMap();\n var threadIDs = new Set();\n pingCache.set(wakeable, threadIDs);\n } else\n (threadIDs = pingCache.get(wakeable)),\n void 0 === threadIDs &&\n ((threadIDs = new Set()), pingCache.set(wakeable, threadIDs));\n threadIDs.has(lanes) ||\n ((workInProgressRootDidAttachPingListener = !0),\n threadIDs.add(lanes),\n (root = pingSuspendedRoot.bind(null, root, wakeable, lanes)),\n wakeable.then(root, root));\n}\nfunction pingSuspendedRoot(root, wakeable, pingedLanes) {\n var pingCache = root.pingCache;\n null !== pingCache && pingCache.delete(wakeable);\n root.pingedLanes |= root.suspendedLanes & pingedLanes;\n root.warmLanes &= ~pingedLanes;\n workInProgressRoot === root &&\n (workInProgressRootRenderLanes & pingedLanes) === pingedLanes &&\n (4 === workInProgressRootExitStatus ||\n (3 === workInProgressRootExitStatus &&\n (workInProgressRootRenderLanes & 62914560) ===\n workInProgressRootRenderLanes &&\n 300 > now() - globalMostRecentFallbackTime)\n ? 0 === (executionContext & 2) && prepareFreshStack(root, 0)\n : (workInProgressRootPingedLanes |= pingedLanes),\n workInProgressSuspendedRetryLanes === workInProgressRootRenderLanes &&\n (workInProgressSuspendedRetryLanes = 0));\n ensureRootIsScheduled(root);\n}\nfunction retryTimedOutBoundary(boundaryFiber, retryLane) {\n 0 === retryLane && (retryLane = claimNextRetryLane());\n boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);\n null !== boundaryFiber &&\n (markRootUpdated$1(boundaryFiber, retryLane),\n ensureRootIsScheduled(boundaryFiber));\n}\nfunction retryDehydratedSuspenseBoundary(boundaryFiber) {\n var suspenseState = boundaryFiber.memoizedState,\n retryLane = 0;\n null !== suspenseState && (retryLane = suspenseState.retryLane);\n retryTimedOutBoundary(boundaryFiber, retryLane);\n}\nfunction resolveRetryWakeable(boundaryFiber, wakeable) {\n var retryLane = 0;\n switch (boundaryFiber.tag) {\n case 13:\n var retryCache = boundaryFiber.stateNode;\n var suspenseState = boundaryFiber.memoizedState;\n null !== suspenseState && (retryLane = suspenseState.retryLane);\n break;\n case 19:\n retryCache = boundaryFiber.stateNode;\n break;\n case 22:\n retryCache = boundaryFiber.stateNode._retryCache;\n break;\n default:\n throw Error(formatProdErrorMessage(314));\n }\n null !== retryCache && retryCache.delete(wakeable);\n retryTimedOutBoundary(boundaryFiber, retryLane);\n}\nfunction scheduleCallback$1(priorityLevel, callback) {\n return scheduleCallback$3(priorityLevel, callback);\n}\nvar firstScheduledRoot = null,\n lastScheduledRoot = null,\n didScheduleMicrotask = !1,\n mightHavePendingSyncWork = !1,\n isFlushingWork = !1,\n currentEventTransitionLane = 0;\nfunction ensureRootIsScheduled(root) {\n root !== lastScheduledRoot &&\n null === root.next &&\n (null === lastScheduledRoot\n ? (firstScheduledRoot = lastScheduledRoot = root)\n : (lastScheduledRoot = lastScheduledRoot.next = root));\n mightHavePendingSyncWork = !0;\n didScheduleMicrotask ||\n ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask());\n}\nfunction flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {\n if (!isFlushingWork && mightHavePendingSyncWork) {\n isFlushingWork = !0;\n do {\n var didPerformSomeWork = !1;\n for (var root$174 = firstScheduledRoot; null !== root$174; ) {\n if (!onlyLegacy)\n if (0 !== syncTransitionLanes) {\n var pendingLanes = root$174.pendingLanes;\n if (0 === pendingLanes) var JSCompiler_inline_result = 0;\n else {\n var suspendedLanes = root$174.suspendedLanes,\n pingedLanes = root$174.pingedLanes;\n JSCompiler_inline_result =\n (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1;\n JSCompiler_inline_result &=\n pendingLanes & ~(suspendedLanes & ~pingedLanes);\n JSCompiler_inline_result =\n JSCompiler_inline_result & 201326741\n ? (JSCompiler_inline_result & 201326741) | 1\n : JSCompiler_inline_result\n ? JSCompiler_inline_result | 2\n : 0;\n }\n 0 !== JSCompiler_inline_result &&\n ((didPerformSomeWork = !0),\n performSyncWorkOnRoot(root$174, JSCompiler_inline_result));\n } else\n (JSCompiler_inline_result = workInProgressRootRenderLanes),\n (JSCompiler_inline_result = getNextLanes(\n root$174,\n root$174 === workInProgressRoot ? JSCompiler_inline_result : 0,\n null !== root$174.cancelPendingCommit ||\n -1 !== root$174.timeoutHandle\n )),\n 0 === (JSCompiler_inline_result & 3) ||\n checkIfRootIsPrerendering(root$174, JSCompiler_inline_result) ||\n ((didPerformSomeWork = !0),\n performSyncWorkOnRoot(root$174, JSCompiler_inline_result));\n root$174 = root$174.next;\n }\n } while (didPerformSomeWork);\n isFlushingWork = !1;\n }\n}\nfunction processRootScheduleInImmediateTask() {\n processRootScheduleInMicrotask();\n}\nfunction processRootScheduleInMicrotask() {\n mightHavePendingSyncWork = didScheduleMicrotask = !1;\n var syncTransitionLanes = 0;\n 0 !== currentEventTransitionLane &&\n (shouldAttemptEagerTransition() &&\n (syncTransitionLanes = currentEventTransitionLane),\n (currentEventTransitionLane = 0));\n for (\n var currentTime = now(), prev = null, root = firstScheduledRoot;\n null !== root;\n\n ) {\n var next = root.next,\n nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime);\n if (0 === nextLanes)\n (root.next = null),\n null === prev ? (firstScheduledRoot = next) : (prev.next = next),\n null === next && (lastScheduledRoot = prev);\n else if (\n ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3))\n )\n mightHavePendingSyncWork = !0;\n root = next;\n }\n flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1);\n}\nfunction scheduleTaskForRootDuringMicrotask(root, currentTime) {\n for (\n var suspendedLanes = root.suspendedLanes,\n pingedLanes = root.pingedLanes,\n expirationTimes = root.expirationTimes,\n lanes = root.pendingLanes & -62914561;\n 0 < lanes;\n\n ) {\n var index$3 = 31 - clz32(lanes),\n lane = 1 << index$3,\n expirationTime = expirationTimes[index$3];\n if (-1 === expirationTime) {\n if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))\n expirationTimes[index$3] = computeExpirationTime(lane, currentTime);\n } else expirationTime <= currentTime && (root.expiredLanes |= lane);\n lanes &= ~lane;\n }\n currentTime = workInProgressRoot;\n suspendedLanes = workInProgressRootRenderLanes;\n suspendedLanes = getNextLanes(\n root,\n root === currentTime ? suspendedLanes : 0,\n null !== root.cancelPendingCommit || -1 !== root.timeoutHandle\n );\n pingedLanes = root.callbackNode;\n if (\n 0 === suspendedLanes ||\n (root === currentTime &&\n (2 === workInProgressSuspendedReason ||\n 9 === workInProgressSuspendedReason)) ||\n null !== root.cancelPendingCommit\n )\n return (\n null !== pingedLanes &&\n null !== pingedLanes &&\n cancelCallback$1(pingedLanes),\n (root.callbackNode = null),\n (root.callbackPriority = 0)\n );\n if (\n 0 === (suspendedLanes & 3) ||\n checkIfRootIsPrerendering(root, suspendedLanes)\n ) {\n currentTime = suspendedLanes & -suspendedLanes;\n if (currentTime === root.callbackPriority) return currentTime;\n null !== pingedLanes && cancelCallback$1(pingedLanes);\n switch (lanesToEventPriority(suspendedLanes)) {\n case 2:\n case 8:\n suspendedLanes = UserBlockingPriority;\n break;\n case 32:\n suspendedLanes = NormalPriority$1;\n break;\n case 268435456:\n suspendedLanes = IdlePriority;\n break;\n default:\n suspendedLanes = NormalPriority$1;\n }\n pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);\n suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes);\n root.callbackPriority = currentTime;\n root.callbackNode = suspendedLanes;\n return currentTime;\n }\n null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes);\n root.callbackPriority = 2;\n root.callbackNode = null;\n return 2;\n}\nfunction performWorkOnRootViaSchedulerTask(root, didTimeout) {\n if (0 !== pendingEffectsStatus && 5 !== pendingEffectsStatus)\n return (root.callbackNode = null), (root.callbackPriority = 0), null;\n var originalCallbackNode = root.callbackNode;\n if (flushPendingEffects(!0) && root.callbackNode !== originalCallbackNode)\n return null;\n var workInProgressRootRenderLanes$jscomp$0 = workInProgressRootRenderLanes;\n workInProgressRootRenderLanes$jscomp$0 = getNextLanes(\n root,\n root === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0,\n null !== root.cancelPendingCommit || -1 !== root.timeoutHandle\n );\n if (0 === workInProgressRootRenderLanes$jscomp$0) return null;\n performWorkOnRoot(root, workInProgressRootRenderLanes$jscomp$0, didTimeout);\n scheduleTaskForRootDuringMicrotask(root, now());\n return null != root.callbackNode && root.callbackNode === originalCallbackNode\n ? performWorkOnRootViaSchedulerTask.bind(null, root)\n : null;\n}\nfunction performSyncWorkOnRoot(root, lanes) {\n if (flushPendingEffects()) return null;\n performWorkOnRoot(root, lanes, !0);\n}\nfunction scheduleImmediateRootScheduleTask() {\n scheduleMicrotask(function () {\n 0 !== (executionContext & 6)\n ? scheduleCallback$3(\n ImmediatePriority,\n processRootScheduleInImmediateTask\n )\n : processRootScheduleInMicrotask();\n });\n}\nfunction requestTransitionLane() {\n 0 === currentEventTransitionLane &&\n (currentEventTransitionLane = claimNextTransitionLane());\n return currentEventTransitionLane;\n}\nfunction coerceFormActionProp(actionProp) {\n return null == actionProp ||\n \"symbol\" === typeof actionProp ||\n \"boolean\" === typeof actionProp\n ? null\n : \"function\" === typeof actionProp\n ? actionProp\n : sanitizeURL(\"\" + actionProp);\n}\nfunction createFormDataWithSubmitter(form, submitter) {\n var temp = submitter.ownerDocument.createElement(\"input\");\n temp.name = submitter.name;\n temp.value = submitter.value;\n form.id && temp.setAttribute(\"form\", form.id);\n submitter.parentNode.insertBefore(temp, submitter);\n form = new FormData(form);\n temp.parentNode.removeChild(temp);\n return form;\n}\nfunction extractEvents$1(\n dispatchQueue,\n domEventName,\n maybeTargetInst,\n nativeEvent,\n nativeEventTarget\n) {\n if (\n \"submit\" === domEventName &&\n maybeTargetInst &&\n maybeTargetInst.stateNode === nativeEventTarget\n ) {\n var action = coerceFormActionProp(\n (nativeEventTarget[internalPropsKey] || null).action\n ),\n submitter = nativeEvent.submitter;\n submitter &&\n ((domEventName = (domEventName = submitter[internalPropsKey] || null)\n ? coerceFormActionProp(domEventName.formAction)\n : submitter.getAttribute(\"formAction\")),\n null !== domEventName && ((action = domEventName), (submitter = null)));\n var event = new SyntheticEvent(\n \"action\",\n \"action\",\n null,\n nativeEvent,\n nativeEventTarget\n );\n dispatchQueue.push({\n event: event,\n listeners: [\n {\n instance: null,\n listener: function () {\n if (nativeEvent.defaultPrevented) {\n if (0 !== currentEventTransitionLane) {\n var formData = submitter\n ? createFormDataWithSubmitter(nativeEventTarget, submitter)\n : new FormData(nativeEventTarget);\n startHostTransition(\n maybeTargetInst,\n {\n pending: !0,\n data: formData,\n method: nativeEventTarget.method,\n action: action\n },\n null,\n formData\n );\n }\n } else\n \"function\" === typeof action &&\n (event.preventDefault(),\n (formData = submitter\n ? createFormDataWithSubmitter(nativeEventTarget, submitter)\n : new FormData(nativeEventTarget)),\n startHostTransition(\n maybeTargetInst,\n {\n pending: !0,\n data: formData,\n method: nativeEventTarget.method,\n action: action\n },\n action,\n formData\n ));\n },\n currentTarget: nativeEventTarget\n }\n ]\n });\n }\n}\nfor (\n var i$jscomp$inline_1528 = 0;\n i$jscomp$inline_1528 < simpleEventPluginEvents.length;\n i$jscomp$inline_1528++\n) {\n var eventName$jscomp$inline_1529 =\n simpleEventPluginEvents[i$jscomp$inline_1528],\n domEventName$jscomp$inline_1530 =\n eventName$jscomp$inline_1529.toLowerCase(),\n capitalizedEvent$jscomp$inline_1531 =\n eventName$jscomp$inline_1529[0].toUpperCase() +\n eventName$jscomp$inline_1529.slice(1);\n registerSimpleEvent(\n domEventName$jscomp$inline_1530,\n \"on\" + capitalizedEvent$jscomp$inline_1531\n );\n}\nregisterSimpleEvent(ANIMATION_END, \"onAnimationEnd\");\nregisterSimpleEvent(ANIMATION_ITERATION, \"onAnimationIteration\");\nregisterSimpleEvent(ANIMATION_START, \"onAnimationStart\");\nregisterSimpleEvent(\"dblclick\", \"onDoubleClick\");\nregisterSimpleEvent(\"focusin\", \"onFocus\");\nregisterSimpleEvent(\"focusout\", \"onBlur\");\nregisterSimpleEvent(TRANSITION_RUN, \"onTransitionRun\");\nregisterSimpleEvent(TRANSITION_START, \"onTransitionStart\");\nregisterSimpleEvent(TRANSITION_CANCEL, \"onTransitionCancel\");\nregisterSimpleEvent(TRANSITION_END, \"onTransitionEnd\");\nregisterDirectEvent(\"onMouseEnter\", [\"mouseout\", \"mouseover\"]);\nregisterDirectEvent(\"onMouseLeave\", [\"mouseout\", \"mouseover\"]);\nregisterDirectEvent(\"onPointerEnter\", [\"pointerout\", \"pointerover\"]);\nregisterDirectEvent(\"onPointerLeave\", [\"pointerout\", \"pointerover\"]);\nregisterTwoPhaseEvent(\n \"onChange\",\n \"change click focusin focusout input keydown keyup selectionchange\".split(\" \")\n);\nregisterTwoPhaseEvent(\n \"onSelect\",\n \"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\n \" \"\n )\n);\nregisterTwoPhaseEvent(\"onBeforeInput\", [\n \"compositionend\",\n \"keypress\",\n \"textInput\",\n \"paste\"\n]);\nregisterTwoPhaseEvent(\n \"onCompositionEnd\",\n \"compositionend focusout keydown keypress keyup mousedown\".split(\" \")\n);\nregisterTwoPhaseEvent(\n \"onCompositionStart\",\n \"compositionstart focusout keydown keypress keyup mousedown\".split(\" \")\n);\nregisterTwoPhaseEvent(\n \"onCompositionUpdate\",\n \"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \")\n);\nvar mediaEventTypes =\n \"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\".split(\n \" \"\n ),\n nonDelegatedEvents = new Set(\n \"beforetoggle cancel close invalid load scroll scrollend toggle\"\n .split(\" \")\n .concat(mediaEventTypes)\n );\nfunction processDispatchQueue(dispatchQueue, eventSystemFlags) {\n eventSystemFlags = 0 !== (eventSystemFlags & 4);\n for (var i = 0; i < dispatchQueue.length; i++) {\n var _dispatchQueue$i = dispatchQueue[i],\n event = _dispatchQueue$i.event;\n _dispatchQueue$i = _dispatchQueue$i.listeners;\n a: {\n var previousInstance = void 0;\n if (eventSystemFlags)\n for (\n var i$jscomp$0 = _dispatchQueue$i.length - 1;\n 0 <= i$jscomp$0;\n i$jscomp$0--\n ) {\n var _dispatchListeners$i = _dispatchQueue$i[i$jscomp$0],\n instance = _dispatchListeners$i.instance,\n currentTarget = _dispatchListeners$i.currentTarget;\n _dispatchListeners$i = _dispatchListeners$i.listener;\n if (instance !== previousInstance && event.isPropagationStopped())\n break a;\n previousInstance = _dispatchListeners$i;\n event.currentTarget = currentTarget;\n try {\n previousInstance(event);\n } catch (error) {\n reportGlobalError(error);\n }\n event.currentTarget = null;\n previousInstance = instance;\n }\n else\n for (\n i$jscomp$0 = 0;\n i$jscomp$0 < _dispatchQueue$i.length;\n i$jscomp$0++\n ) {\n _dispatchListeners$i = _dispatchQueue$i[i$jscomp$0];\n instance = _dispatchListeners$i.instance;\n currentTarget = _dispatchListeners$i.currentTarget;\n _dispatchListeners$i = _dispatchListeners$i.listener;\n if (instance !== previousInstance && event.isPropagationStopped())\n break a;\n previousInstance = _dispatchListeners$i;\n event.currentTarget = currentTarget;\n try {\n previousInstance(event);\n } catch (error) {\n reportGlobalError(error);\n }\n event.currentTarget = null;\n previousInstance = instance;\n }\n }\n }\n}\nfunction listenToNonDelegatedEvent(domEventName, targetElement) {\n var JSCompiler_inline_result = targetElement[internalEventHandlersKey];\n void 0 === JSCompiler_inline_result &&\n (JSCompiler_inline_result = targetElement[internalEventHandlersKey] =\n new Set());\n var listenerSetKey = domEventName + \"__bubble\";\n JSCompiler_inline_result.has(listenerSetKey) ||\n (addTrappedEventListener(targetElement, domEventName, 2, !1),\n JSCompiler_inline_result.add(listenerSetKey));\n}\nfunction listenToNativeEvent(domEventName, isCapturePhaseListener, target) {\n var eventSystemFlags = 0;\n isCapturePhaseListener && (eventSystemFlags |= 4);\n addTrappedEventListener(\n target,\n domEventName,\n eventSystemFlags,\n isCapturePhaseListener\n );\n}\nvar listeningMarker = \"_reactListening\" + Math.random().toString(36).slice(2);\nfunction listenToAllSupportedEvents(rootContainerElement) {\n if (!rootContainerElement[listeningMarker]) {\n rootContainerElement[listeningMarker] = !0;\n allNativeEvents.forEach(function (domEventName) {\n \"selectionchange\" !== domEventName &&\n (nonDelegatedEvents.has(domEventName) ||\n listenToNativeEvent(domEventName, !1, rootContainerElement),\n listenToNativeEvent(domEventName, !0, rootContainerElement));\n });\n var ownerDocument =\n 9 === rootContainerElement.nodeType\n ? rootContainerElement\n : rootContainerElement.ownerDocument;\n null === ownerDocument ||\n ownerDocument[listeningMarker] ||\n ((ownerDocument[listeningMarker] = !0),\n listenToNativeEvent(\"selectionchange\", !1, ownerDocument));\n }\n}\nfunction addTrappedEventListener(\n targetContainer,\n domEventName,\n eventSystemFlags,\n isCapturePhaseListener\n) {\n switch (getEventPriority(domEventName)) {\n case 2:\n var listenerWrapper = dispatchDiscreteEvent;\n break;\n case 8:\n listenerWrapper = dispatchContinuousEvent;\n break;\n default:\n listenerWrapper = dispatchEvent;\n }\n eventSystemFlags = listenerWrapper.bind(\n null,\n domEventName,\n eventSystemFlags,\n targetContainer\n );\n listenerWrapper = void 0;\n !passiveBrowserEventsSupported ||\n (\"touchstart\" !== domEventName &&\n \"touchmove\" !== domEventName &&\n \"wheel\" !== domEventName) ||\n (listenerWrapper = !0);\n isCapturePhaseListener\n ? void 0 !== listenerWrapper\n ? targetContainer.addEventListener(domEventName, eventSystemFlags, {\n capture: !0,\n passive: listenerWrapper\n })\n : targetContainer.addEventListener(domEventName, eventSystemFlags, !0)\n : void 0 !== listenerWrapper\n ? targetContainer.addEventListener(domEventName, eventSystemFlags, {\n passive: listenerWrapper\n })\n : targetContainer.addEventListener(domEventName, eventSystemFlags, !1);\n}\nfunction dispatchEventForPluginEventSystem(\n domEventName,\n eventSystemFlags,\n nativeEvent,\n targetInst$jscomp$0,\n targetContainer\n) {\n var ancestorInst = targetInst$jscomp$0;\n if (\n 0 === (eventSystemFlags & 1) &&\n 0 === (eventSystemFlags & 2) &&\n null !== targetInst$jscomp$0\n )\n a: for (;;) {\n if (null === targetInst$jscomp$0) return;\n var nodeTag = targetInst$jscomp$0.tag;\n if (3 === nodeTag || 4 === nodeTag) {\n var container = targetInst$jscomp$0.stateNode.containerInfo;\n if (container === targetContainer) break;\n if (4 === nodeTag)\n for (nodeTag = targetInst$jscomp$0.return; null !== nodeTag; ) {\n var grandTag = nodeTag.tag;\n if (\n (3 === grandTag || 4 === grandTag) &&\n nodeTag.stateNode.containerInfo === targetContainer\n )\n return;\n nodeTag = nodeTag.return;\n }\n for (; null !== container; ) {\n nodeTag = getClosestInstanceFromNode(container);\n if (null === nodeTag) return;\n grandTag = nodeTag.tag;\n if (\n 5 === grandTag ||\n 6 === grandTag ||\n 26 === grandTag ||\n 27 === grandTag\n ) {\n targetInst$jscomp$0 = ancestorInst = nodeTag;\n continue a;\n }\n container = container.parentNode;\n }\n }\n targetInst$jscomp$0 = targetInst$jscomp$0.return;\n }\n batchedUpdates$1(function () {\n var targetInst = ancestorInst,\n nativeEventTarget = getEventTarget(nativeEvent),\n dispatchQueue = [];\n a: {\n var reactName = topLevelEventsToReactNames.get(domEventName);\n if (void 0 !== reactName) {\n var SyntheticEventCtor = SyntheticEvent,\n reactEventType = domEventName;\n switch (domEventName) {\n case \"keypress\":\n if (0 === getEventCharCode(nativeEvent)) break a;\n case \"keydown\":\n case \"keyup\":\n SyntheticEventCtor = SyntheticKeyboardEvent;\n break;\n case \"focusin\":\n reactEventType = \"focus\";\n SyntheticEventCtor = SyntheticFocusEvent;\n break;\n case \"focusout\":\n reactEventType = \"blur\";\n SyntheticEventCtor = SyntheticFocusEvent;\n break;\n case \"beforeblur\":\n case \"afterblur\":\n SyntheticEventCtor = SyntheticFocusEvent;\n break;\n case \"click\":\n if (2 === nativeEvent.button) break a;\n case \"auxclick\":\n case \"dblclick\":\n case \"mousedown\":\n case \"mousemove\":\n case \"mouseup\":\n case \"mouseout\":\n case \"mouseover\":\n case \"contextmenu\":\n SyntheticEventCtor = SyntheticMouseEvent;\n break;\n case \"drag\":\n case \"dragend\":\n case \"dragenter\":\n case \"dragexit\":\n case \"dragleave\":\n case \"dragover\":\n case \"dragstart\":\n case \"drop\":\n SyntheticEventCtor = SyntheticDragEvent;\n break;\n case \"touchcancel\":\n case \"touchend\":\n case \"touchmove\":\n case \"touchstart\":\n SyntheticEventCtor = SyntheticTouchEvent;\n break;\n case ANIMATION_END:\n case ANIMATION_ITERATION:\n case ANIMATION_START:\n SyntheticEventCtor = SyntheticAnimationEvent;\n break;\n case TRANSITION_END:\n SyntheticEventCtor = SyntheticTransitionEvent;\n break;\n case \"scroll\":\n case \"scrollend\":\n SyntheticEventCtor = SyntheticUIEvent;\n break;\n case \"wheel\":\n SyntheticEventCtor = SyntheticWheelEvent;\n break;\n case \"copy\":\n case \"cut\":\n case \"paste\":\n SyntheticEventCtor = SyntheticClipboardEvent;\n break;\n case \"gotpointercapture\":\n case \"lostpointercapture\":\n case \"pointercancel\":\n case \"pointerdown\":\n case \"pointermove\":\n case \"pointerout\":\n case \"pointerover\":\n case \"pointerup\":\n SyntheticEventCtor = SyntheticPointerEvent;\n break;\n case \"toggle\":\n case \"beforetoggle\":\n SyntheticEventCtor = SyntheticToggleEvent;\n }\n var inCapturePhase = 0 !== (eventSystemFlags & 4),\n accumulateTargetOnly =\n !inCapturePhase &&\n (\"scroll\" === domEventName || \"scrollend\" === domEventName),\n reactEventName = inCapturePhase\n ? null !== reactName\n ? reactName + \"Capture\"\n : null\n : reactName;\n inCapturePhase = [];\n for (\n var instance = targetInst, lastHostComponent;\n null !== instance;\n\n ) {\n var _instance = instance;\n lastHostComponent = _instance.stateNode;\n _instance = _instance.tag;\n (5 !== _instance && 26 !== _instance && 27 !== _instance) ||\n null === lastHostComponent ||\n null === reactEventName ||\n ((_instance = getListener(instance, reactEventName)),\n null != _instance &&\n inCapturePhase.push(\n createDispatchListener(instance, _instance, lastHostComponent)\n ));\n if (accumulateTargetOnly) break;\n instance = instance.return;\n }\n 0 < inCapturePhase.length &&\n ((reactName = new SyntheticEventCtor(\n reactName,\n reactEventType,\n null,\n nativeEvent,\n nativeEventTarget\n )),\n dispatchQueue.push({ event: reactName, listeners: inCapturePhase }));\n }\n }\n if (0 === (eventSystemFlags & 7)) {\n a: {\n reactName =\n \"mouseover\" === domEventName || \"pointerover\" === domEventName;\n SyntheticEventCtor =\n \"mouseout\" === domEventName || \"pointerout\" === domEventName;\n if (\n reactName &&\n nativeEvent !== currentReplayingEvent &&\n (reactEventType =\n nativeEvent.relatedTarget || nativeEvent.fromElement) &&\n (getClosestInstanceFromNode(reactEventType) ||\n reactEventType[internalContainerInstanceKey])\n )\n break a;\n if (SyntheticEventCtor || reactName) {\n reactName =\n nativeEventTarget.window === nativeEventTarget\n ? nativeEventTarget\n : (reactName = nativeEventTarget.ownerDocument)\n ? reactName.defaultView || reactName.parentWindow\n : window;\n if (SyntheticEventCtor) {\n if (\n ((reactEventType =\n nativeEvent.relatedTarget || nativeEvent.toElement),\n (SyntheticEventCtor = targetInst),\n (reactEventType = reactEventType\n ? getClosestInstanceFromNode(reactEventType)\n : null),\n null !== reactEventType &&\n ((accumulateTargetOnly =\n getNearestMountedFiber(reactEventType)),\n (inCapturePhase = reactEventType.tag),\n reactEventType !== accumulateTargetOnly ||\n (5 !== inCapturePhase &&\n 27 !== inCapturePhase &&\n 6 !== inCapturePhase)))\n )\n reactEventType = null;\n } else (SyntheticEventCtor = null), (reactEventType = targetInst);\n if (SyntheticEventCtor !== reactEventType) {\n inCapturePhase = SyntheticMouseEvent;\n _instance = \"onMouseLeave\";\n reactEventName = \"onMouseEnter\";\n instance = \"mouse\";\n if (\"pointerout\" === domEventName || \"pointerover\" === domEventName)\n (inCapturePhase = SyntheticPointerEvent),\n (_instance = \"onPointerLeave\"),\n (reactEventName = \"onPointerEnter\"),\n (instance = \"pointer\");\n accumulateTargetOnly =\n null == SyntheticEventCtor\n ? reactName\n : getNodeFromInstance(SyntheticEventCtor);\n lastHostComponent =\n null == reactEventType\n ? reactName\n : getNodeFromInstance(reactEventType);\n reactName = new inCapturePhase(\n _instance,\n instance + \"leave\",\n SyntheticEventCtor,\n nativeEvent,\n nativeEventTarget\n );\n reactName.target = accumulateTargetOnly;\n reactName.relatedTarget = lastHostComponent;\n _instance = null;\n getClosestInstanceFromNode(nativeEventTarget) === targetInst &&\n ((inCapturePhase = new inCapturePhase(\n reactEventName,\n instance + \"enter\",\n reactEventType,\n nativeEvent,\n nativeEventTarget\n )),\n (inCapturePhase.target = lastHostComponent),\n (inCapturePhase.relatedTarget = accumulateTargetOnly),\n (_instance = inCapturePhase));\n accumulateTargetOnly = _instance;\n if (SyntheticEventCtor && reactEventType)\n b: {\n inCapturePhase = SyntheticEventCtor;\n reactEventName = reactEventType;\n instance = 0;\n for (\n lastHostComponent = inCapturePhase;\n lastHostComponent;\n lastHostComponent = getParent(lastHostComponent)\n )\n instance++;\n lastHostComponent = 0;\n for (\n _instance = reactEventName;\n _instance;\n _instance = getParent(_instance)\n )\n lastHostComponent++;\n for (; 0 < instance - lastHostComponent; )\n (inCapturePhase = getParent(inCapturePhase)), instance--;\n for (; 0 < lastHostComponent - instance; )\n (reactEventName = getParent(reactEventName)),\n lastHostComponent--;\n for (; instance--; ) {\n if (\n inCapturePhase === reactEventName ||\n (null !== reactEventName &&\n inCapturePhase === reactEventName.alternate)\n )\n break b;\n inCapturePhase = getParent(inCapturePhase);\n reactEventName = getParent(reactEventName);\n }\n inCapturePhase = null;\n }\n else inCapturePhase = null;\n null !== SyntheticEventCtor &&\n accumulateEnterLeaveListenersForEvent(\n dispatchQueue,\n reactName,\n SyntheticEventCtor,\n inCapturePhase,\n !1\n );\n null !== reactEventType &&\n null !== accumulateTargetOnly &&\n accumulateEnterLeaveListenersForEvent(\n dispatchQueue,\n accumulateTargetOnly,\n reactEventType,\n inCapturePhase,\n !0\n );\n }\n }\n }\n a: {\n reactName = targetInst ? getNodeFromInstance(targetInst) : window;\n SyntheticEventCtor =\n reactName.nodeName && reactName.nodeName.toLowerCase();\n if (\n \"select\" === SyntheticEventCtor ||\n (\"input\" === SyntheticEventCtor && \"file\" === reactName.type)\n )\n var getTargetInstFunc = getTargetInstForChangeEvent;\n else if (isTextInputElement(reactName))\n if (isInputEventSupported)\n getTargetInstFunc = getTargetInstForInputOrChangeEvent;\n else {\n getTargetInstFunc = getTargetInstForInputEventPolyfill;\n var handleEventFunc = handleEventsForInputEventPolyfill;\n }\n else\n (SyntheticEventCtor = reactName.nodeName),\n !SyntheticEventCtor ||\n \"input\" !== SyntheticEventCtor.toLowerCase() ||\n (\"checkbox\" !== reactName.type && \"radio\" !== reactName.type)\n ? targetInst &&\n isCustomElement(targetInst.elementType) &&\n (getTargetInstFunc = getTargetInstForChangeEvent)\n : (getTargetInstFunc = getTargetInstForClickEvent);\n if (\n getTargetInstFunc &&\n (getTargetInstFunc = getTargetInstFunc(domEventName, targetInst))\n ) {\n createAndAccumulateChangeEvent(\n dispatchQueue,\n getTargetInstFunc,\n nativeEvent,\n nativeEventTarget\n );\n break a;\n }\n handleEventFunc && handleEventFunc(domEventName, reactName, targetInst);\n \"focusout\" === domEventName &&\n targetInst &&\n \"number\" === reactName.type &&\n null != targetInst.memoizedProps.value &&\n setDefaultValue(reactName, \"number\", reactName.value);\n }\n handleEventFunc = targetInst ? getNodeFromInstance(targetInst) : window;\n switch (domEventName) {\n case \"focusin\":\n if (\n isTextInputElement(handleEventFunc) ||\n \"true\" === handleEventFunc.contentEditable\n )\n (activeElement = handleEventFunc),\n (activeElementInst = targetInst),\n (lastSelection = null);\n break;\n case \"focusout\":\n lastSelection = activeElementInst = activeElement = null;\n break;\n case \"mousedown\":\n mouseDown = !0;\n break;\n case \"contextmenu\":\n case \"mouseup\":\n case \"dragend\":\n mouseDown = !1;\n constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);\n break;\n case \"selectionchange\":\n if (skipSelectionChangeEvent) break;\n case \"keydown\":\n case \"keyup\":\n constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);\n }\n var fallbackData;\n if (canUseCompositionEvent)\n b: {\n switch (domEventName) {\n case \"compositionstart\":\n var eventType = \"onCompositionStart\";\n break b;\n case \"compositionend\":\n eventType = \"onCompositionEnd\";\n break b;\n case \"compositionupdate\":\n eventType = \"onCompositionUpdate\";\n break b;\n }\n eventType = void 0;\n }\n else\n isComposing\n ? isFallbackCompositionEnd(domEventName, nativeEvent) &&\n (eventType = \"onCompositionEnd\")\n : \"keydown\" === domEventName &&\n 229 === nativeEvent.keyCode &&\n (eventType = \"onCompositionStart\");\n eventType &&\n (useFallbackCompositionData &&\n \"ko\" !== nativeEvent.locale &&\n (isComposing || \"onCompositionStart\" !== eventType\n ? \"onCompositionEnd\" === eventType &&\n isComposing &&\n (fallbackData = getData())\n : ((root = nativeEventTarget),\n (startText = \"value\" in root ? root.value : root.textContent),\n (isComposing = !0))),\n (handleEventFunc = accumulateTwoPhaseListeners(targetInst, eventType)),\n 0 < handleEventFunc.length &&\n ((eventType = new SyntheticCompositionEvent(\n eventType,\n domEventName,\n null,\n nativeEvent,\n nativeEventTarget\n )),\n dispatchQueue.push({ event: eventType, listeners: handleEventFunc }),\n fallbackData\n ? (eventType.data = fallbackData)\n : ((fallbackData = getDataFromCustomEvent(nativeEvent)),\n null !== fallbackData && (eventType.data = fallbackData))));\n if (\n (fallbackData = canUseTextInputEvent\n ? getNativeBeforeInputChars(domEventName, nativeEvent)\n : getFallbackBeforeInputChars(domEventName, nativeEvent))\n )\n (eventType = accumulateTwoPhaseListeners(targetInst, \"onBeforeInput\")),\n 0 < eventType.length &&\n ((handleEventFunc = new SyntheticCompositionEvent(\n \"onBeforeInput\",\n \"beforeinput\",\n null,\n nativeEvent,\n nativeEventTarget\n )),\n dispatchQueue.push({\n event: handleEventFunc,\n listeners: eventType\n }),\n (handleEventFunc.data = fallbackData));\n extractEvents$1(\n dispatchQueue,\n domEventName,\n targetInst,\n nativeEvent,\n nativeEventTarget\n );\n }\n processDispatchQueue(dispatchQueue, eventSystemFlags);\n });\n}\nfunction createDispatchListener(instance, listener, currentTarget) {\n return {\n instance: instance,\n listener: listener,\n currentTarget: currentTarget\n };\n}\nfunction accumulateTwoPhaseListeners(targetFiber, reactName) {\n for (\n var captureName = reactName + \"Capture\", listeners = [];\n null !== targetFiber;\n\n ) {\n var _instance2 = targetFiber,\n stateNode = _instance2.stateNode;\n _instance2 = _instance2.tag;\n (5 !== _instance2 && 26 !== _instance2 && 27 !== _instance2) ||\n null === stateNode ||\n ((_instance2 = getListener(targetFiber, captureName)),\n null != _instance2 &&\n listeners.unshift(\n createDispatchListener(targetFiber, _instance2, stateNode)\n ),\n (_instance2 = getListener(targetFiber, reactName)),\n null != _instance2 &&\n listeners.push(\n createDispatchListener(targetFiber, _instance2, stateNode)\n ));\n if (3 === targetFiber.tag) return listeners;\n targetFiber = targetFiber.return;\n }\n return [];\n}\nfunction getParent(inst) {\n if (null === inst) return null;\n do inst = inst.return;\n while (inst && 5 !== inst.tag && 27 !== inst.tag);\n return inst ? inst : null;\n}\nfunction accumulateEnterLeaveListenersForEvent(\n dispatchQueue,\n event,\n target,\n common,\n inCapturePhase\n) {\n for (\n var registrationName = event._reactName, listeners = [];\n null !== target && target !== common;\n\n ) {\n var _instance3 = target,\n alternate = _instance3.alternate,\n stateNode = _instance3.stateNode;\n _instance3 = _instance3.tag;\n if (null !== alternate && alternate === common) break;\n (5 !== _instance3 && 26 !== _instance3 && 27 !== _instance3) ||\n null === stateNode ||\n ((alternate = stateNode),\n inCapturePhase\n ? ((stateNode = getListener(target, registrationName)),\n null != stateNode &&\n listeners.unshift(\n createDispatchListener(target, stateNode, alternate)\n ))\n : inCapturePhase ||\n ((stateNode = getListener(target, registrationName)),\n null != stateNode &&\n listeners.push(\n createDispatchListener(target, stateNode, alternate)\n )));\n target = target.return;\n }\n 0 !== listeners.length &&\n dispatchQueue.push({ event: event, listeners: listeners });\n}\nvar NORMALIZE_NEWLINES_REGEX = /\\r\\n?/g,\n NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\\u0000|\\uFFFD/g;\nfunction normalizeMarkupForTextOrAttribute(markup) {\n return (\"string\" === typeof markup ? markup : \"\" + markup)\n .replace(NORMALIZE_NEWLINES_REGEX, \"\\n\")\n .replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, \"\");\n}\nfunction checkForUnmatchedText(serverText, clientText) {\n clientText = normalizeMarkupForTextOrAttribute(clientText);\n return normalizeMarkupForTextOrAttribute(serverText) === clientText ? !0 : !1;\n}\nfunction noop$1() {}\nfunction setProp(domElement, tag, key, value, props, prevValue) {\n switch (key) {\n case \"children\":\n \"string\" === typeof value\n ? \"body\" === tag ||\n (\"textarea\" === tag && \"\" === value) ||\n setTextContent(domElement, value)\n : (\"number\" === typeof value || \"bigint\" === typeof value) &&\n \"body\" !== tag &&\n setTextContent(domElement, \"\" + value);\n break;\n case \"className\":\n setValueForKnownAttribute(domElement, \"class\", value);\n break;\n case \"tabIndex\":\n setValueForKnownAttribute(domElement, \"tabindex\", value);\n break;\n case \"dir\":\n case \"role\":\n case \"viewBox\":\n case \"width\":\n case \"height\":\n setValueForKnownAttribute(domElement, key, value);\n break;\n case \"style\":\n setValueForStyles(domElement, value, prevValue);\n break;\n case \"data\":\n if (\"object\" !== tag) {\n setValueForKnownAttribute(domElement, \"data\", value);\n break;\n }\n case \"src\":\n case \"href\":\n if (\"\" === value && (\"a\" !== tag || \"href\" !== key)) {\n domElement.removeAttribute(key);\n break;\n }\n if (\n null == value ||\n \"function\" === typeof value ||\n \"symbol\" === typeof value ||\n \"boolean\" === typeof value\n ) {\n domElement.removeAttribute(key);\n break;\n }\n value = sanitizeURL(\"\" + value);\n domElement.setAttribute(key, value);\n break;\n case \"action\":\n case \"formAction\":\n if (\"function\" === typeof value) {\n domElement.setAttribute(\n key,\n \"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')\"\n );\n break;\n } else\n \"function\" === typeof prevValue &&\n (\"formAction\" === key\n ? (\"input\" !== tag &&\n setProp(domElement, tag, \"name\", props.name, props, null),\n setProp(\n domElement,\n tag,\n \"formEncType\",\n props.formEncType,\n props,\n null\n ),\n setProp(\n domElement,\n tag,\n \"formMethod\",\n props.formMethod,\n props,\n null\n ),\n setProp(\n domElement,\n tag,\n \"formTarget\",\n props.formTarget,\n props,\n null\n ))\n : (setProp(domElement, tag, \"encType\", props.encType, props, null),\n setProp(domElement, tag, \"method\", props.method, props, null),\n setProp(domElement, tag, \"target\", props.target, props, null)));\n if (\n null == value ||\n \"symbol\" === typeof value ||\n \"boolean\" === typeof value\n ) {\n domElement.removeAttribute(key);\n break;\n }\n value = sanitizeURL(\"\" + value);\n domElement.setAttribute(key, value);\n break;\n case \"onClick\":\n null != value && (domElement.onclick = noop$1);\n break;\n case \"onScroll\":\n null != value && listenToNonDelegatedEvent(\"scroll\", domElement);\n break;\n case \"onScrollEnd\":\n null != value && listenToNonDelegatedEvent(\"scrollend\", domElement);\n break;\n case \"dangerouslySetInnerHTML\":\n if (null != value) {\n if (\"object\" !== typeof value || !(\"__html\" in value))\n throw Error(formatProdErrorMessage(61));\n key = value.__html;\n if (null != key) {\n if (null != props.children) throw Error(formatProdErrorMessage(60));\n domElement.innerHTML = key;\n }\n }\n break;\n case \"multiple\":\n domElement.multiple =\n value && \"function\" !== typeof value && \"symbol\" !== typeof value;\n break;\n case \"muted\":\n domElement.muted =\n value && \"function\" !== typeof value && \"symbol\" !== typeof value;\n break;\n case \"suppressContentEditableWarning\":\n case \"suppressHydrationWarning\":\n case \"defaultValue\":\n case \"defaultChecked\":\n case \"innerHTML\":\n case \"ref\":\n break;\n case \"autoFocus\":\n break;\n case \"xlinkHref\":\n if (\n null == value ||\n \"function\" === typeof value ||\n \"boolean\" === typeof value ||\n \"symbol\" === typeof value\n ) {\n domElement.removeAttribute(\"xlink:href\");\n break;\n }\n key = sanitizeURL(\"\" + value);\n domElement.setAttributeNS(\n \"http://www.w3.org/1999/xlink\",\n \"xlink:href\",\n key\n );\n break;\n case \"contentEditable\":\n case \"spellCheck\":\n case \"draggable\":\n case \"value\":\n case \"autoReverse\":\n case \"externalResourcesRequired\":\n case \"focusable\":\n case \"preserveAlpha\":\n null != value && \"function\" !== typeof value && \"symbol\" !== typeof value\n ? domElement.setAttribute(key, \"\" + value)\n : domElement.removeAttribute(key);\n break;\n case \"inert\":\n case \"allowFullScreen\":\n case \"async\":\n case \"autoPlay\":\n case \"controls\":\n case \"default\":\n case \"defer\":\n case \"disabled\":\n case \"disablePictureInPicture\":\n case \"disableRemotePlayback\":\n case \"formNoValidate\":\n case \"hidden\":\n case \"loop\":\n case \"noModule\":\n case \"noValidate\":\n case \"open\":\n case \"playsInline\":\n case \"readOnly\":\n case \"required\":\n case \"reversed\":\n case \"scoped\":\n case \"seamless\":\n case \"itemScope\":\n value && \"function\" !== typeof value && \"symbol\" !== typeof value\n ? domElement.setAttribute(key, \"\")\n : domElement.removeAttribute(key);\n break;\n case \"capture\":\n case \"download\":\n !0 === value\n ? domElement.setAttribute(key, \"\")\n : !1 !== value &&\n null != value &&\n \"function\" !== typeof value &&\n \"symbol\" !== typeof value\n ? domElement.setAttribute(key, value)\n : domElement.removeAttribute(key);\n break;\n case \"cols\":\n case \"rows\":\n case \"size\":\n case \"span\":\n null != value &&\n \"function\" !== typeof value &&\n \"symbol\" !== typeof value &&\n !isNaN(value) &&\n 1 <= value\n ? domElement.setAttribute(key, value)\n : domElement.removeAttribute(key);\n break;\n case \"rowSpan\":\n case \"start\":\n null == value ||\n \"function\" === typeof value ||\n \"symbol\" === typeof value ||\n isNaN(value)\n ? domElement.removeAttribute(key)\n : domElement.setAttribute(key, value);\n break;\n case \"popover\":\n listenToNonDelegatedEvent(\"beforetoggle\", domElement);\n listenToNonDelegatedEvent(\"toggle\", domElement);\n setValueForAttribute(domElement, \"popover\", value);\n break;\n case \"xlinkActuate\":\n setValueForNamespacedAttribute(\n domElement,\n \"http://www.w3.org/1999/xlink\",\n \"xlink:actuate\",\n value\n );\n break;\n case \"xlinkArcrole\":\n setValueForNamespacedAttribute(\n domElement,\n \"http://www.w3.org/1999/xlink\",\n \"xlink:arcrole\",\n value\n );\n break;\n case \"xlinkRole\":\n setValueForNamespacedAttribute(\n domElement,\n \"http://www.w3.org/1999/xlink\",\n \"xlink:role\",\n value\n );\n break;\n case \"xlinkShow\":\n setValueForNamespacedAttribute(\n domElement,\n \"http://www.w3.org/1999/xlink\",\n \"xlink:show\",\n value\n );\n break;\n case \"xlinkTitle\":\n setValueForNamespacedAttribute(\n domElement,\n \"http://www.w3.org/1999/xlink\",\n \"xlink:title\",\n value\n );\n break;\n case \"xlinkType\":\n setValueForNamespacedAttribute(\n domElement,\n \"http://www.w3.org/1999/xlink\",\n \"xlink:type\",\n value\n );\n break;\n case \"xmlBase\":\n setValueForNamespacedAttribute(\n domElement,\n \"http://www.w3.org/XML/1998/namespace\",\n \"xml:base\",\n value\n );\n break;\n case \"xmlLang\":\n setValueForNamespacedAttribute(\n domElement,\n \"http://www.w3.org/XML/1998/namespace\",\n \"xml:lang\",\n value\n );\n break;\n case \"xmlSpace\":\n setValueForNamespacedAttribute(\n domElement,\n \"http://www.w3.org/XML/1998/namespace\",\n \"xml:space\",\n value\n );\n break;\n case \"is\":\n setValueForAttribute(domElement, \"is\", value);\n break;\n case \"innerText\":\n case \"textContent\":\n break;\n default:\n if (\n !(2 < key.length) ||\n (\"o\" !== key[0] && \"O\" !== key[0]) ||\n (\"n\" !== key[1] && \"N\" !== key[1])\n )\n (key = aliases.get(key) || key),\n setValueForAttribute(domElement, key, value);\n }\n}\nfunction setPropOnCustomElement(domElement, tag, key, value, props, prevValue) {\n switch (key) {\n case \"style\":\n setValueForStyles(domElement, value, prevValue);\n break;\n case \"dangerouslySetInnerHTML\":\n if (null != value) {\n if (\"object\" !== typeof value || !(\"__html\" in value))\n throw Error(formatProdErrorMessage(61));\n key = value.__html;\n if (null != key) {\n if (null != props.children) throw Error(formatProdErrorMessage(60));\n domElement.innerHTML = key;\n }\n }\n break;\n case \"children\":\n \"string\" === typeof value\n ? setTextContent(domElement, value)\n : (\"number\" === typeof value || \"bigint\" === typeof value) &&\n setTextContent(domElement, \"\" + value);\n break;\n case \"onScroll\":\n null != value && listenToNonDelegatedEvent(\"scroll\", domElement);\n break;\n case \"onScrollEnd\":\n null != value && listenToNonDelegatedEvent(\"scrollend\", domElement);\n break;\n case \"onClick\":\n null != value && (domElement.onclick = noop$1);\n break;\n case \"suppressContentEditableWarning\":\n case \"suppressHydrationWarning\":\n case \"innerHTML\":\n case \"ref\":\n break;\n case \"innerText\":\n case \"textContent\":\n break;\n default:\n if (!registrationNameDependencies.hasOwnProperty(key))\n a: {\n if (\n \"o\" === key[0] &&\n \"n\" === key[1] &&\n ((props = key.endsWith(\"Capture\")),\n (tag = key.slice(2, props ? key.length - 7 : void 0)),\n (prevValue = domElement[internalPropsKey] || null),\n (prevValue = null != prevValue ? prevValue[key] : null),\n \"function\" === typeof prevValue &&\n domElement.removeEventListener(tag, prevValue, props),\n \"function\" === typeof value)\n ) {\n \"function\" !== typeof prevValue &&\n null !== prevValue &&\n (key in domElement\n ? (domElement[key] = null)\n : domElement.hasAttribute(key) &&\n domElement.removeAttribute(key));\n domElement.addEventListener(tag, value, props);\n break a;\n }\n key in domElement\n ? (domElement[key] = value)\n : !0 === value\n ? domElement.setAttribute(key, \"\")\n : setValueForAttribute(domElement, key, value);\n }\n }\n}\nfunction setInitialProperties(domElement, tag, props) {\n switch (tag) {\n case \"div\":\n case \"span\":\n case \"svg\":\n case \"path\":\n case \"a\":\n case \"g\":\n case \"p\":\n case \"li\":\n break;\n case \"img\":\n listenToNonDelegatedEvent(\"error\", domElement);\n listenToNonDelegatedEvent(\"load\", domElement);\n var hasSrc = !1,\n hasSrcSet = !1,\n propKey;\n for (propKey in props)\n if (props.hasOwnProperty(propKey)) {\n var propValue = props[propKey];\n if (null != propValue)\n switch (propKey) {\n case \"src\":\n hasSrc = !0;\n break;\n case \"srcSet\":\n hasSrcSet = !0;\n break;\n case \"children\":\n case \"dangerouslySetInnerHTML\":\n throw Error(formatProdErrorMessage(137, tag));\n default:\n setProp(domElement, tag, propKey, propValue, props, null);\n }\n }\n hasSrcSet &&\n setProp(domElement, tag, \"srcSet\", props.srcSet, props, null);\n hasSrc && setProp(domElement, tag, \"src\", props.src, props, null);\n return;\n case \"input\":\n listenToNonDelegatedEvent(\"invalid\", domElement);\n var defaultValue = (propKey = propValue = hasSrcSet = null),\n checked = null,\n defaultChecked = null;\n for (hasSrc in props)\n if (props.hasOwnProperty(hasSrc)) {\n var propValue$188 = props[hasSrc];\n if (null != propValue$188)\n switch (hasSrc) {\n case \"name\":\n hasSrcSet = propValue$188;\n break;\n case \"type\":\n propValue = propValue$188;\n break;\n case \"checked\":\n checked = propValue$188;\n break;\n case \"defaultChecked\":\n defaultChecked = propValue$188;\n break;\n case \"value\":\n propKey = propValue$188;\n break;\n case \"defaultValue\":\n defaultValue = propValue$188;\n break;\n case \"children\":\n case \"dangerouslySetInnerHTML\":\n if (null != propValue$188)\n throw Error(formatProdErrorMessage(137, tag));\n break;\n default:\n setProp(domElement, tag, hasSrc, propValue$188, props, null);\n }\n }\n initInput(\n domElement,\n propKey,\n defaultValue,\n checked,\n defaultChecked,\n propValue,\n hasSrcSet,\n !1\n );\n track(domElement);\n return;\n case \"select\":\n listenToNonDelegatedEvent(\"invalid\", domElement);\n hasSrc = propValue = propKey = null;\n for (hasSrcSet in props)\n if (\n props.hasOwnProperty(hasSrcSet) &&\n ((defaultValue = props[hasSrcSet]), null != defaultValue)\n )\n switch (hasSrcSet) {\n case \"value\":\n propKey = defaultValue;\n break;\n case \"defaultValue\":\n propValue = defaultValue;\n break;\n case \"multiple\":\n hasSrc = defaultValue;\n default:\n setProp(domElement, tag, hasSrcSet, defaultValue, props, null);\n }\n tag = propKey;\n props = propValue;\n domElement.multiple = !!hasSrc;\n null != tag\n ? updateOptions(domElement, !!hasSrc, tag, !1)\n : null != props && updateOptions(domElement, !!hasSrc, props, !0);\n return;\n case \"textarea\":\n listenToNonDelegatedEvent(\"invalid\", domElement);\n propKey = hasSrcSet = hasSrc = null;\n for (propValue in props)\n if (\n props.hasOwnProperty(propValue) &&\n ((defaultValue = props[propValue]), null != defaultValue)\n )\n switch (propValue) {\n case \"value\":\n hasSrc = defaultValue;\n break;\n case \"defaultValue\":\n hasSrcSet = defaultValue;\n break;\n case \"children\":\n propKey = defaultValue;\n break;\n case \"dangerouslySetInnerHTML\":\n if (null != defaultValue) throw Error(formatProdErrorMessage(91));\n break;\n default:\n setProp(domElement, tag, propValue, defaultValue, props, null);\n }\n initTextarea(domElement, hasSrc, hasSrcSet, propKey);\n track(domElement);\n return;\n case \"option\":\n for (checked in props)\n if (\n props.hasOwnProperty(checked) &&\n ((hasSrc = props[checked]), null != hasSrc)\n )\n switch (checked) {\n case \"selected\":\n domElement.selected =\n hasSrc &&\n \"function\" !== typeof hasSrc &&\n \"symbol\" !== typeof hasSrc;\n break;\n default:\n setProp(domElement, tag, checked, hasSrc, props, null);\n }\n return;\n case \"dialog\":\n listenToNonDelegatedEvent(\"beforetoggle\", domElement);\n listenToNonDelegatedEvent(\"toggle\", domElement);\n listenToNonDelegatedEvent(\"cancel\", domElement);\n listenToNonDelegatedEvent(\"close\", domElement);\n break;\n case \"iframe\":\n case \"object\":\n listenToNonDelegatedEvent(\"load\", domElement);\n break;\n case \"video\":\n case \"audio\":\n for (hasSrc = 0; hasSrc < mediaEventTypes.length; hasSrc++)\n listenToNonDelegatedEvent(mediaEventTypes[hasSrc], domElement);\n break;\n case \"image\":\n listenToNonDelegatedEvent(\"error\", domElement);\n listenToNonDelegatedEvent(\"load\", domElement);\n break;\n case \"details\":\n listenToNonDelegatedEvent(\"toggle\", domElement);\n break;\n case \"embed\":\n case \"source\":\n case \"link\":\n listenToNonDelegatedEvent(\"error\", domElement),\n listenToNonDelegatedEvent(\"load\", domElement);\n case \"area\":\n case \"base\":\n case \"br\":\n case \"col\":\n case \"hr\":\n case \"keygen\":\n case \"meta\":\n case \"param\":\n case \"track\":\n case \"wbr\":\n case \"menuitem\":\n for (defaultChecked in props)\n if (\n props.hasOwnProperty(defaultChecked) &&\n ((hasSrc = props[defaultChecked]), null != hasSrc)\n )\n switch (defaultChecked) {\n case \"children\":\n case \"dangerouslySetInnerHTML\":\n throw Error(formatProdErrorMessage(137, tag));\n default:\n setProp(domElement, tag, defaultChecked, hasSrc, props, null);\n }\n return;\n default:\n if (isCustomElement(tag)) {\n for (propValue$188 in props)\n props.hasOwnProperty(propValue$188) &&\n ((hasSrc = props[propValue$188]),\n void 0 !== hasSrc &&\n setPropOnCustomElement(\n domElement,\n tag,\n propValue$188,\n hasSrc,\n props,\n void 0\n ));\n return;\n }\n }\n for (defaultValue in props)\n props.hasOwnProperty(defaultValue) &&\n ((hasSrc = props[defaultValue]),\n null != hasSrc &&\n setProp(domElement, tag, defaultValue, hasSrc, props, null));\n}\nfunction updateProperties(domElement, tag, lastProps, nextProps) {\n switch (tag) {\n case \"div\":\n case \"span\":\n case \"svg\":\n case \"path\":\n case \"a\":\n case \"g\":\n case \"p\":\n case \"li\":\n break;\n case \"input\":\n var name = null,\n type = null,\n value = null,\n defaultValue = null,\n lastDefaultValue = null,\n checked = null,\n defaultChecked = null;\n for (propKey in lastProps) {\n var lastProp = lastProps[propKey];\n if (lastProps.hasOwnProperty(propKey) && null != lastProp)\n switch (propKey) {\n case \"checked\":\n break;\n case \"value\":\n break;\n case \"defaultValue\":\n lastDefaultValue = lastProp;\n default:\n nextProps.hasOwnProperty(propKey) ||\n setProp(domElement, tag, propKey, null, nextProps, lastProp);\n }\n }\n for (var propKey$205 in nextProps) {\n var propKey = nextProps[propKey$205];\n lastProp = lastProps[propKey$205];\n if (\n nextProps.hasOwnProperty(propKey$205) &&\n (null != propKey || null != lastProp)\n )\n switch (propKey$205) {\n case \"type\":\n type = propKey;\n break;\n case \"name\":\n name = propKey;\n break;\n case \"checked\":\n checked = propKey;\n break;\n case \"defaultChecked\":\n defaultChecked = propKey;\n break;\n case \"value\":\n value = propKey;\n break;\n case \"defaultValue\":\n defaultValue = propKey;\n break;\n case \"children\":\n case \"dangerouslySetInnerHTML\":\n if (null != propKey)\n throw Error(formatProdErrorMessage(137, tag));\n break;\n default:\n propKey !== lastProp &&\n setProp(\n domElement,\n tag,\n propKey$205,\n propKey,\n nextProps,\n lastProp\n );\n }\n }\n updateInput(\n domElement,\n value,\n defaultValue,\n lastDefaultValue,\n checked,\n defaultChecked,\n type,\n name\n );\n return;\n case \"select\":\n propKey = value = defaultValue = propKey$205 = null;\n for (type in lastProps)\n if (\n ((lastDefaultValue = lastProps[type]),\n lastProps.hasOwnProperty(type) && null != lastDefaultValue)\n )\n switch (type) {\n case \"value\":\n break;\n case \"multiple\":\n propKey = lastDefaultValue;\n default:\n nextProps.hasOwnProperty(type) ||\n setProp(\n domElement,\n tag,\n type,\n null,\n nextProps,\n lastDefaultValue\n );\n }\n for (name in nextProps)\n if (\n ((type = nextProps[name]),\n (lastDefaultValue = lastProps[name]),\n nextProps.hasOwnProperty(name) &&\n (null != type || null != lastDefaultValue))\n )\n switch (name) {\n case \"value\":\n propKey$205 = type;\n break;\n case \"defaultValue\":\n defaultValue = type;\n break;\n case \"multiple\":\n value = type;\n default:\n type !== lastDefaultValue &&\n setProp(\n domElement,\n tag,\n name,\n type,\n nextProps,\n lastDefaultValue\n );\n }\n tag = defaultValue;\n lastProps = value;\n nextProps = propKey;\n null != propKey$205\n ? updateOptions(domElement, !!lastProps, propKey$205, !1)\n : !!nextProps !== !!lastProps &&\n (null != tag\n ? updateOptions(domElement, !!lastProps, tag, !0)\n : updateOptions(domElement, !!lastProps, lastProps ? [] : \"\", !1));\n return;\n case \"textarea\":\n propKey = propKey$205 = null;\n for (defaultValue in lastProps)\n if (\n ((name = lastProps[defaultValue]),\n lastProps.hasOwnProperty(defaultValue) &&\n null != name &&\n !nextProps.hasOwnProperty(defaultValue))\n )\n switch (defaultValue) {\n case \"value\":\n break;\n case \"children\":\n break;\n default:\n setProp(domElement, tag, defaultValue, null, nextProps, name);\n }\n for (value in nextProps)\n if (\n ((name = nextProps[value]),\n (type = lastProps[value]),\n nextProps.hasOwnProperty(value) && (null != name || null != type))\n )\n switch (value) {\n case \"value\":\n propKey$205 = name;\n break;\n case \"defaultValue\":\n propKey = name;\n break;\n case \"children\":\n break;\n case \"dangerouslySetInnerHTML\":\n if (null != name) throw Error(formatProdErrorMessage(91));\n break;\n default:\n name !== type &&\n setProp(domElement, tag, value, name, nextProps, type);\n }\n updateTextarea(domElement, propKey$205, propKey);\n return;\n case \"option\":\n for (var propKey$221 in lastProps)\n if (\n ((propKey$205 = lastProps[propKey$221]),\n lastProps.hasOwnProperty(propKey$221) &&\n null != propKey$205 &&\n !nextProps.hasOwnProperty(propKey$221))\n )\n switch (propKey$221) {\n case \"selected\":\n domElement.selected = !1;\n break;\n default:\n setProp(\n domElement,\n tag,\n propKey$221,\n null,\n nextProps,\n propKey$205\n );\n }\n for (lastDefaultValue in nextProps)\n if (\n ((propKey$205 = nextProps[lastDefaultValue]),\n (propKey = lastProps[lastDefaultValue]),\n nextProps.hasOwnProperty(lastDefaultValue) &&\n propKey$205 !== propKey &&\n (null != propKey$205 || null != propKey))\n )\n switch (lastDefaultValue) {\n case \"selected\":\n domElement.selected =\n propKey$205 &&\n \"function\" !== typeof propKey$205 &&\n \"symbol\" !== typeof propKey$205;\n break;\n default:\n setProp(\n domElement,\n tag,\n lastDefaultValue,\n propKey$205,\n nextProps,\n propKey\n );\n }\n return;\n case \"img\":\n case \"link\":\n case \"area\":\n case \"base\":\n case \"br\":\n case \"col\":\n case \"embed\":\n case \"hr\":\n case \"keygen\":\n case \"meta\":\n case \"param\":\n case \"source\":\n case \"track\":\n case \"wbr\":\n case \"menuitem\":\n for (var propKey$226 in lastProps)\n (propKey$205 = lastProps[propKey$226]),\n lastProps.hasOwnProperty(propKey$226) &&\n null != propKey$205 &&\n !nextProps.hasOwnProperty(propKey$226) &&\n setProp(domElement, tag, propKey$226, null, nextProps, propKey$205);\n for (checked in nextProps)\n if (\n ((propKey$205 = nextProps[checked]),\n (propKey = lastProps[checked]),\n nextProps.hasOwnProperty(checked) &&\n propKey$205 !== propKey &&\n (null != propKey$205 || null != propKey))\n )\n switch (checked) {\n case \"children\":\n case \"dangerouslySetInnerHTML\":\n if (null != propKey$205)\n throw Error(formatProdErrorMessage(137, tag));\n break;\n default:\n setProp(\n domElement,\n tag,\n checked,\n propKey$205,\n nextProps,\n propKey\n );\n }\n return;\n default:\n if (isCustomElement(tag)) {\n for (var propKey$231 in lastProps)\n (propKey$205 = lastProps[propKey$231]),\n lastProps.hasOwnProperty(propKey$231) &&\n void 0 !== propKey$205 &&\n !nextProps.hasOwnProperty(propKey$231) &&\n setPropOnCustomElement(\n domElement,\n tag,\n propKey$231,\n void 0,\n nextProps,\n propKey$205\n );\n for (defaultChecked in nextProps)\n (propKey$205 = nextProps[defaultChecked]),\n (propKey = lastProps[defaultChecked]),\n !nextProps.hasOwnProperty(defaultChecked) ||\n propKey$205 === propKey ||\n (void 0 === propKey$205 && void 0 === propKey) ||\n setPropOnCustomElement(\n domElement,\n tag,\n defaultChecked,\n propKey$205,\n nextProps,\n propKey\n );\n return;\n }\n }\n for (var propKey$236 in lastProps)\n (propKey$205 = lastProps[propKey$236]),\n lastProps.hasOwnProperty(propKey$236) &&\n null != propKey$205 &&\n !nextProps.hasOwnProperty(propKey$236) &&\n setProp(domElement, tag, propKey$236, null, nextProps, propKey$205);\n for (lastProp in nextProps)\n (propKey$205 = nextProps[lastProp]),\n (propKey = lastProps[lastProp]),\n !nextProps.hasOwnProperty(lastProp) ||\n propKey$205 === propKey ||\n (null == propKey$205 && null == propKey) ||\n setProp(domElement, tag, lastProp, propKey$205, nextProps, propKey);\n}\nvar eventsEnabled = null,\n selectionInformation = null;\nfunction getOwnerDocumentFromRootContainer(rootContainerElement) {\n return 9 === rootContainerElement.nodeType\n ? rootContainerElement\n : rootContainerElement.ownerDocument;\n}\nfunction getOwnHostContext(namespaceURI) {\n switch (namespaceURI) {\n case \"http://www.w3.org/2000/svg\":\n return 1;\n case \"http://www.w3.org/1998/Math/MathML\":\n return 2;\n default:\n return 0;\n }\n}\nfunction getChildHostContextProd(parentNamespace, type) {\n if (0 === parentNamespace)\n switch (type) {\n case \"svg\":\n return 1;\n case \"math\":\n return 2;\n default:\n return 0;\n }\n return 1 === parentNamespace && \"foreignObject\" === type\n ? 0\n : parentNamespace;\n}\nfunction shouldSetTextContent(type, props) {\n return (\n \"textarea\" === type ||\n \"noscript\" === type ||\n \"string\" === typeof props.children ||\n \"number\" === typeof props.children ||\n \"bigint\" === typeof props.children ||\n (\"object\" === typeof props.dangerouslySetInnerHTML &&\n null !== props.dangerouslySetInnerHTML &&\n null != props.dangerouslySetInnerHTML.__html)\n );\n}\nvar currentPopstateTransitionEvent = null;\nfunction shouldAttemptEagerTransition() {\n var event = window.event;\n if (event && \"popstate\" === event.type) {\n if (event === currentPopstateTransitionEvent) return !1;\n currentPopstateTransitionEvent = event;\n return !0;\n }\n currentPopstateTransitionEvent = null;\n return !1;\n}\nvar scheduleTimeout = \"function\" === typeof setTimeout ? setTimeout : void 0,\n cancelTimeout = \"function\" === typeof clearTimeout ? clearTimeout : void 0,\n localPromise = \"function\" === typeof Promise ? Promise : void 0,\n scheduleMicrotask =\n \"function\" === typeof queueMicrotask\n ? queueMicrotask\n : \"undefined\" !== typeof localPromise\n ? function (callback) {\n return localPromise\n .resolve(null)\n .then(callback)\n .catch(handleErrorInNextTick);\n }\n : scheduleTimeout;\nfunction handleErrorInNextTick(error) {\n setTimeout(function () {\n throw error;\n });\n}\nfunction isSingletonScope(type) {\n return \"head\" === type;\n}\nfunction clearSuspenseBoundary(parentInstance, suspenseInstance) {\n var node = suspenseInstance,\n possiblePreambleContribution = 0,\n depth = 0;\n do {\n var nextNode = node.nextSibling;\n parentInstance.removeChild(node);\n if (nextNode && 8 === nextNode.nodeType)\n if (((node = nextNode.data), \"/$\" === node)) {\n if (\n 0 < possiblePreambleContribution &&\n 8 > possiblePreambleContribution\n ) {\n node = possiblePreambleContribution;\n var ownerDocument = parentInstance.ownerDocument;\n node & 1 && releaseSingletonInstance(ownerDocument.documentElement);\n node & 2 && releaseSingletonInstance(ownerDocument.body);\n if (node & 4)\n for (\n node = ownerDocument.head,\n releaseSingletonInstance(node),\n ownerDocument = node.firstChild;\n ownerDocument;\n\n ) {\n var nextNode$jscomp$0 = ownerDocument.nextSibling,\n nodeName = ownerDocument.nodeName;\n ownerDocument[internalHoistableMarker] ||\n \"SCRIPT\" === nodeName ||\n \"STYLE\" === nodeName ||\n (\"LINK\" === nodeName &&\n \"stylesheet\" === ownerDocument.rel.toLowerCase()) ||\n node.removeChild(ownerDocument);\n ownerDocument = nextNode$jscomp$0;\n }\n }\n if (0 === depth) {\n parentInstance.removeChild(nextNode);\n retryIfBlockedOn(suspenseInstance);\n return;\n }\n depth--;\n } else\n \"$\" === node || \"$?\" === node || \"$!\" === node\n ? depth++\n : (possiblePreambleContribution = node.charCodeAt(0) - 48);\n else possiblePreambleContribution = 0;\n node = nextNode;\n } while (node);\n retryIfBlockedOn(suspenseInstance);\n}\nfunction clearContainerSparingly(container) {\n var nextNode = container.firstChild;\n nextNode && 10 === nextNode.nodeType && (nextNode = nextNode.nextSibling);\n for (; nextNode; ) {\n var node = nextNode;\n nextNode = nextNode.nextSibling;\n switch (node.nodeName) {\n case \"HTML\":\n case \"HEAD\":\n case \"BODY\":\n clearContainerSparingly(node);\n detachDeletedInstance(node);\n continue;\n case \"SCRIPT\":\n case \"STYLE\":\n continue;\n case \"LINK\":\n if (\"stylesheet\" === node.rel.toLowerCase()) continue;\n }\n container.removeChild(node);\n }\n}\nfunction canHydrateInstance(instance, type, props, inRootOrSingleton) {\n for (; 1 === instance.nodeType; ) {\n var anyProps = props;\n if (instance.nodeName.toLowerCase() !== type.toLowerCase()) {\n if (\n !inRootOrSingleton &&\n (\"INPUT\" !== instance.nodeName || \"hidden\" !== instance.type)\n )\n break;\n } else if (!inRootOrSingleton)\n if (\"input\" === type && \"hidden\" === instance.type) {\n var name = null == anyProps.name ? null : \"\" + anyProps.name;\n if (\n \"hidden\" === anyProps.type &&\n instance.getAttribute(\"name\") === name\n )\n return instance;\n } else return instance;\n else if (!instance[internalHoistableMarker])\n switch (type) {\n case \"meta\":\n if (!instance.hasAttribute(\"itemprop\")) break;\n return instance;\n case \"link\":\n name = instance.getAttribute(\"rel\");\n if (\"stylesheet\" === name && instance.hasAttribute(\"data-precedence\"))\n break;\n else if (\n name !== anyProps.rel ||\n instance.getAttribute(\"href\") !==\n (null == anyProps.href || \"\" === anyProps.href\n ? null\n : anyProps.href) ||\n instance.getAttribute(\"crossorigin\") !==\n (null == anyProps.crossOrigin ? null : anyProps.crossOrigin) ||\n instance.getAttribute(\"title\") !==\n (null == anyProps.title ? null : anyProps.title)\n )\n break;\n return instance;\n case \"style\":\n if (instance.hasAttribute(\"data-precedence\")) break;\n return instance;\n case \"script\":\n name = instance.getAttribute(\"src\");\n if (\n (name !== (null == anyProps.src ? null : anyProps.src) ||\n instance.getAttribute(\"type\") !==\n (null == anyProps.type ? null : anyProps.type) ||\n instance.getAttribute(\"crossorigin\") !==\n (null == anyProps.crossOrigin ? null : anyProps.crossOrigin)) &&\n name &&\n instance.hasAttribute(\"async\") &&\n !instance.hasAttribute(\"itemprop\")\n )\n break;\n return instance;\n default:\n return instance;\n }\n instance = getNextHydratable(instance.nextSibling);\n if (null === instance) break;\n }\n return null;\n}\nfunction canHydrateTextInstance(instance, text, inRootOrSingleton) {\n if (\"\" === text) return null;\n for (; 3 !== instance.nodeType; ) {\n if (\n (1 !== instance.nodeType ||\n \"INPUT\" !== instance.nodeName ||\n \"hidden\" !== instance.type) &&\n !inRootOrSingleton\n )\n return null;\n instance = getNextHydratable(instance.nextSibling);\n if (null === instance) return null;\n }\n return instance;\n}\nfunction isSuspenseInstanceFallback(instance) {\n return (\n \"$!\" === instance.data ||\n (\"$?\" === instance.data && \"complete\" === instance.ownerDocument.readyState)\n );\n}\nfunction registerSuspenseInstanceRetry(instance, callback) {\n var ownerDocument = instance.ownerDocument;\n if (\"$?\" !== instance.data || \"complete\" === ownerDocument.readyState)\n callback();\n else {\n var listener = function () {\n callback();\n ownerDocument.removeEventListener(\"DOMContentLoaded\", listener);\n };\n ownerDocument.addEventListener(\"DOMContentLoaded\", listener);\n instance._reactRetry = listener;\n }\n}\nfunction getNextHydratable(node) {\n for (; null != node; node = node.nextSibling) {\n var nodeType = node.nodeType;\n if (1 === nodeType || 3 === nodeType) break;\n if (8 === nodeType) {\n nodeType = node.data;\n if (\n \"$\" === nodeType ||\n \"$!\" === nodeType ||\n \"$?\" === nodeType ||\n \"F!\" === nodeType ||\n \"F\" === nodeType\n )\n break;\n if (\"/$\" === nodeType) return null;\n }\n }\n return node;\n}\nvar previousHydratableOnEnteringScopedSingleton = null;\nfunction getParentSuspenseInstance(targetInstance) {\n targetInstance = targetInstance.previousSibling;\n for (var depth = 0; targetInstance; ) {\n if (8 === targetInstance.nodeType) {\n var data = targetInstance.data;\n if (\"$\" === data || \"$!\" === data || \"$?\" === data) {\n if (0 === depth) return targetInstance;\n depth--;\n } else \"/$\" === data && depth++;\n }\n targetInstance = targetInstance.previousSibling;\n }\n return null;\n}\nfunction resolveSingletonInstance(type, props, rootContainerInstance) {\n props = getOwnerDocumentFromRootContainer(rootContainerInstance);\n switch (type) {\n case \"html\":\n type = props.documentElement;\n if (!type) throw Error(formatProdErrorMessage(452));\n return type;\n case \"head\":\n type = props.head;\n if (!type) throw Error(formatProdErrorMessage(453));\n return type;\n case \"body\":\n type = props.body;\n if (!type) throw Error(formatProdErrorMessage(454));\n return type;\n default:\n throw Error(formatProdErrorMessage(451));\n }\n}\nfunction releaseSingletonInstance(instance) {\n for (var attributes = instance.attributes; attributes.length; )\n instance.removeAttributeNode(attributes[0]);\n detachDeletedInstance(instance);\n}\nvar preloadPropsMap = new Map(),\n preconnectsSet = new Set();\nfunction getHoistableRoot(container) {\n return \"function\" === typeof container.getRootNode\n ? container.getRootNode()\n : 9 === container.nodeType\n ? container\n : container.ownerDocument;\n}\nvar previousDispatcher = ReactDOMSharedInternals.d;\nReactDOMSharedInternals.d = {\n f: flushSyncWork,\n r: requestFormReset,\n D: prefetchDNS,\n C: preconnect,\n L: preload,\n m: preloadModule,\n X: preinitScript,\n S: preinitStyle,\n M: preinitModuleScript\n};\nfunction flushSyncWork() {\n var previousWasRendering = previousDispatcher.f(),\n wasRendering = flushSyncWork$1();\n return previousWasRendering || wasRendering;\n}\nfunction requestFormReset(form) {\n var formInst = getInstanceFromNode(form);\n null !== formInst && 5 === formInst.tag && \"form\" === formInst.type\n ? requestFormReset$1(formInst)\n : previousDispatcher.r(form);\n}\nvar globalDocument = \"undefined\" === typeof document ? null : document;\nfunction preconnectAs(rel, href, crossOrigin) {\n var ownerDocument = globalDocument;\n if (ownerDocument && \"string\" === typeof href && href) {\n var limitedEscapedHref =\n escapeSelectorAttributeValueInsideDoubleQuotes(href);\n limitedEscapedHref =\n 'link[rel=\"' + rel + '\"][href=\"' + limitedEscapedHref + '\"]';\n \"string\" === typeof crossOrigin &&\n (limitedEscapedHref += '[crossorigin=\"' + crossOrigin + '\"]');\n preconnectsSet.has(limitedEscapedHref) ||\n (preconnectsSet.add(limitedEscapedHref),\n (rel = { rel: rel, crossOrigin: crossOrigin, href: href }),\n null === ownerDocument.querySelector(limitedEscapedHref) &&\n ((href = ownerDocument.createElement(\"link\")),\n setInitialProperties(href, \"link\", rel),\n markNodeAsHoistable(href),\n ownerDocument.head.appendChild(href)));\n }\n}\nfunction prefetchDNS(href) {\n previousDispatcher.D(href);\n preconnectAs(\"dns-prefetch\", href, null);\n}\nfunction preconnect(href, crossOrigin) {\n previousDispatcher.C(href, crossOrigin);\n preconnectAs(\"preconnect\", href, crossOrigin);\n}\nfunction preload(href, as, options) {\n previousDispatcher.L(href, as, options);\n var ownerDocument = globalDocument;\n if (ownerDocument && href && as) {\n var preloadSelector =\n 'link[rel=\"preload\"][as=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(as) +\n '\"]';\n \"image\" === as\n ? options && options.imageSrcSet\n ? ((preloadSelector +=\n '[imagesrcset=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(\n options.imageSrcSet\n ) +\n '\"]'),\n \"string\" === typeof options.imageSizes &&\n (preloadSelector +=\n '[imagesizes=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(\n options.imageSizes\n ) +\n '\"]'))\n : (preloadSelector +=\n '[href=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(href) +\n '\"]')\n : (preloadSelector +=\n '[href=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(href) +\n '\"]');\n var key = preloadSelector;\n switch (as) {\n case \"style\":\n key = getStyleKey(href);\n break;\n case \"script\":\n key = getScriptKey(href);\n }\n preloadPropsMap.has(key) ||\n ((href = assign(\n {\n rel: \"preload\",\n href:\n \"image\" === as && options && options.imageSrcSet ? void 0 : href,\n as: as\n },\n options\n )),\n preloadPropsMap.set(key, href),\n null !== ownerDocument.querySelector(preloadSelector) ||\n (\"style\" === as &&\n ownerDocument.querySelector(getStylesheetSelectorFromKey(key))) ||\n (\"script\" === as &&\n ownerDocument.querySelector(getScriptSelectorFromKey(key))) ||\n ((as = ownerDocument.createElement(\"link\")),\n setInitialProperties(as, \"link\", href),\n markNodeAsHoistable(as),\n ownerDocument.head.appendChild(as)));\n }\n}\nfunction preloadModule(href, options) {\n previousDispatcher.m(href, options);\n var ownerDocument = globalDocument;\n if (ownerDocument && href) {\n var as = options && \"string\" === typeof options.as ? options.as : \"script\",\n preloadSelector =\n 'link[rel=\"modulepreload\"][as=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(as) +\n '\"][href=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(href) +\n '\"]',\n key = preloadSelector;\n switch (as) {\n case \"audioworklet\":\n case \"paintworklet\":\n case \"serviceworker\":\n case \"sharedworker\":\n case \"worker\":\n case \"script\":\n key = getScriptKey(href);\n }\n if (\n !preloadPropsMap.has(key) &&\n ((href = assign({ rel: \"modulepreload\", href: href }, options)),\n preloadPropsMap.set(key, href),\n null === ownerDocument.querySelector(preloadSelector))\n ) {\n switch (as) {\n case \"audioworklet\":\n case \"paintworklet\":\n case \"serviceworker\":\n case \"sharedworker\":\n case \"worker\":\n case \"script\":\n if (ownerDocument.querySelector(getScriptSelectorFromKey(key)))\n return;\n }\n as = ownerDocument.createElement(\"link\");\n setInitialProperties(as, \"link\", href);\n markNodeAsHoistable(as);\n ownerDocument.head.appendChild(as);\n }\n }\n}\nfunction preinitStyle(href, precedence, options) {\n previousDispatcher.S(href, precedence, options);\n var ownerDocument = globalDocument;\n if (ownerDocument && href) {\n var styles = getResourcesFromRoot(ownerDocument).hoistableStyles,\n key = getStyleKey(href);\n precedence = precedence || \"default\";\n var resource = styles.get(key);\n if (!resource) {\n var state = { loading: 0, preload: null };\n if (\n (resource = ownerDocument.querySelector(\n getStylesheetSelectorFromKey(key)\n ))\n )\n state.loading = 5;\n else {\n href = assign(\n { rel: \"stylesheet\", href: href, \"data-precedence\": precedence },\n options\n );\n (options = preloadPropsMap.get(key)) &&\n adoptPreloadPropsForStylesheet(href, options);\n var link = (resource = ownerDocument.createElement(\"link\"));\n markNodeAsHoistable(link);\n setInitialProperties(link, \"link\", href);\n link._p = new Promise(function (resolve, reject) {\n link.onload = resolve;\n link.onerror = reject;\n });\n link.addEventListener(\"load\", function () {\n state.loading |= 1;\n });\n link.addEventListener(\"error\", function () {\n state.loading |= 2;\n });\n state.loading |= 4;\n insertStylesheet(resource, precedence, ownerDocument);\n }\n resource = {\n type: \"stylesheet\",\n instance: resource,\n count: 1,\n state: state\n };\n styles.set(key, resource);\n }\n }\n}\nfunction preinitScript(src, options) {\n previousDispatcher.X(src, options);\n var ownerDocument = globalDocument;\n if (ownerDocument && src) {\n var scripts = getResourcesFromRoot(ownerDocument).hoistableScripts,\n key = getScriptKey(src),\n resource = scripts.get(key);\n resource ||\n ((resource = ownerDocument.querySelector(getScriptSelectorFromKey(key))),\n resource ||\n ((src = assign({ src: src, async: !0 }, options)),\n (options = preloadPropsMap.get(key)) &&\n adoptPreloadPropsForScript(src, options),\n (resource = ownerDocument.createElement(\"script\")),\n markNodeAsHoistable(resource),\n setInitialProperties(resource, \"link\", src),\n ownerDocument.head.appendChild(resource)),\n (resource = {\n type: \"script\",\n instance: resource,\n count: 1,\n state: null\n }),\n scripts.set(key, resource));\n }\n}\nfunction preinitModuleScript(src, options) {\n previousDispatcher.M(src, options);\n var ownerDocument = globalDocument;\n if (ownerDocument && src) {\n var scripts = getResourcesFromRoot(ownerDocument).hoistableScripts,\n key = getScriptKey(src),\n resource = scripts.get(key);\n resource ||\n ((resource = ownerDocument.querySelector(getScriptSelectorFromKey(key))),\n resource ||\n ((src = assign({ src: src, async: !0, type: \"module\" }, options)),\n (options = preloadPropsMap.get(key)) &&\n adoptPreloadPropsForScript(src, options),\n (resource = ownerDocument.createElement(\"script\")),\n markNodeAsHoistable(resource),\n setInitialProperties(resource, \"link\", src),\n ownerDocument.head.appendChild(resource)),\n (resource = {\n type: \"script\",\n instance: resource,\n count: 1,\n state: null\n }),\n scripts.set(key, resource));\n }\n}\nfunction getResource(type, currentProps, pendingProps, currentResource) {\n var JSCompiler_inline_result = (JSCompiler_inline_result =\n rootInstanceStackCursor.current)\n ? getHoistableRoot(JSCompiler_inline_result)\n : null;\n if (!JSCompiler_inline_result) throw Error(formatProdErrorMessage(446));\n switch (type) {\n case \"meta\":\n case \"title\":\n return null;\n case \"style\":\n return \"string\" === typeof pendingProps.precedence &&\n \"string\" === typeof pendingProps.href\n ? ((currentProps = getStyleKey(pendingProps.href)),\n (pendingProps = getResourcesFromRoot(\n JSCompiler_inline_result\n ).hoistableStyles),\n (currentResource = pendingProps.get(currentProps)),\n currentResource ||\n ((currentResource = {\n type: \"style\",\n instance: null,\n count: 0,\n state: null\n }),\n pendingProps.set(currentProps, currentResource)),\n currentResource)\n : { type: \"void\", instance: null, count: 0, state: null };\n case \"link\":\n if (\n \"stylesheet\" === pendingProps.rel &&\n \"string\" === typeof pendingProps.href &&\n \"string\" === typeof pendingProps.precedence\n ) {\n type = getStyleKey(pendingProps.href);\n var styles$244 = getResourcesFromRoot(\n JSCompiler_inline_result\n ).hoistableStyles,\n resource$245 = styles$244.get(type);\n resource$245 ||\n ((JSCompiler_inline_result =\n JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result),\n (resource$245 = {\n type: \"stylesheet\",\n instance: null,\n count: 0,\n state: { loading: 0, preload: null }\n }),\n styles$244.set(type, resource$245),\n (styles$244 = JSCompiler_inline_result.querySelector(\n getStylesheetSelectorFromKey(type)\n )) &&\n !styles$244._p &&\n ((resource$245.instance = styles$244),\n (resource$245.state.loading = 5)),\n preloadPropsMap.has(type) ||\n ((pendingProps = {\n rel: \"preload\",\n as: \"style\",\n href: pendingProps.href,\n crossOrigin: pendingProps.crossOrigin,\n integrity: pendingProps.integrity,\n media: pendingProps.media,\n hrefLang: pendingProps.hrefLang,\n referrerPolicy: pendingProps.referrerPolicy\n }),\n preloadPropsMap.set(type, pendingProps),\n styles$244 ||\n preloadStylesheet(\n JSCompiler_inline_result,\n type,\n pendingProps,\n resource$245.state\n )));\n if (currentProps && null === currentResource)\n throw Error(formatProdErrorMessage(528, \"\"));\n return resource$245;\n }\n if (currentProps && null !== currentResource)\n throw Error(formatProdErrorMessage(529, \"\"));\n return null;\n case \"script\":\n return (\n (currentProps = pendingProps.async),\n (pendingProps = pendingProps.src),\n \"string\" === typeof pendingProps &&\n currentProps &&\n \"function\" !== typeof currentProps &&\n \"symbol\" !== typeof currentProps\n ? ((currentProps = getScriptKey(pendingProps)),\n (pendingProps = getResourcesFromRoot(\n JSCompiler_inline_result\n ).hoistableScripts),\n (currentResource = pendingProps.get(currentProps)),\n currentResource ||\n ((currentResource = {\n type: \"script\",\n instance: null,\n count: 0,\n state: null\n }),\n pendingProps.set(currentProps, currentResource)),\n currentResource)\n : { type: \"void\", instance: null, count: 0, state: null }\n );\n default:\n throw Error(formatProdErrorMessage(444, type));\n }\n}\nfunction getStyleKey(href) {\n return 'href=\"' + escapeSelectorAttributeValueInsideDoubleQuotes(href) + '\"';\n}\nfunction getStylesheetSelectorFromKey(key) {\n return 'link[rel=\"stylesheet\"][' + key + \"]\";\n}\nfunction stylesheetPropsFromRawProps(rawProps) {\n return assign({}, rawProps, {\n \"data-precedence\": rawProps.precedence,\n precedence: null\n });\n}\nfunction preloadStylesheet(ownerDocument, key, preloadProps, state) {\n ownerDocument.querySelector('link[rel=\"preload\"][as=\"style\"][' + key + \"]\")\n ? (state.loading = 1)\n : ((key = ownerDocument.createElement(\"link\")),\n (state.preload = key),\n key.addEventListener(\"load\", function () {\n return (state.loading |= 1);\n }),\n key.addEventListener(\"error\", function () {\n return (state.loading |= 2);\n }),\n setInitialProperties(key, \"link\", preloadProps),\n markNodeAsHoistable(key),\n ownerDocument.head.appendChild(key));\n}\nfunction getScriptKey(src) {\n return '[src=\"' + escapeSelectorAttributeValueInsideDoubleQuotes(src) + '\"]';\n}\nfunction getScriptSelectorFromKey(key) {\n return \"script[async]\" + key;\n}\nfunction acquireResource(hoistableRoot, resource, props) {\n resource.count++;\n if (null === resource.instance)\n switch (resource.type) {\n case \"style\":\n var instance = hoistableRoot.querySelector(\n 'style[data-href~=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(props.href) +\n '\"]'\n );\n if (instance)\n return (\n (resource.instance = instance),\n markNodeAsHoistable(instance),\n instance\n );\n var styleProps = assign({}, props, {\n \"data-href\": props.href,\n \"data-precedence\": props.precedence,\n href: null,\n precedence: null\n });\n instance = (hoistableRoot.ownerDocument || hoistableRoot).createElement(\n \"style\"\n );\n markNodeAsHoistable(instance);\n setInitialProperties(instance, \"style\", styleProps);\n insertStylesheet(instance, props.precedence, hoistableRoot);\n return (resource.instance = instance);\n case \"stylesheet\":\n styleProps = getStyleKey(props.href);\n var instance$250 = hoistableRoot.querySelector(\n getStylesheetSelectorFromKey(styleProps)\n );\n if (instance$250)\n return (\n (resource.state.loading |= 4),\n (resource.instance = instance$250),\n markNodeAsHoistable(instance$250),\n instance$250\n );\n instance = stylesheetPropsFromRawProps(props);\n (styleProps = preloadPropsMap.get(styleProps)) &&\n adoptPreloadPropsForStylesheet(instance, styleProps);\n instance$250 = (\n hoistableRoot.ownerDocument || hoistableRoot\n ).createElement(\"link\");\n markNodeAsHoistable(instance$250);\n var linkInstance = instance$250;\n linkInstance._p = new Promise(function (resolve, reject) {\n linkInstance.onload = resolve;\n linkInstance.onerror = reject;\n });\n setInitialProperties(instance$250, \"link\", instance);\n resource.state.loading |= 4;\n insertStylesheet(instance$250, props.precedence, hoistableRoot);\n return (resource.instance = instance$250);\n case \"script\":\n instance$250 = getScriptKey(props.src);\n if (\n (styleProps = hoistableRoot.querySelector(\n getScriptSelectorFromKey(instance$250)\n ))\n )\n return (\n (resource.instance = styleProps),\n markNodeAsHoistable(styleProps),\n styleProps\n );\n instance = props;\n if ((styleProps = preloadPropsMap.get(instance$250)))\n (instance = assign({}, props)),\n adoptPreloadPropsForScript(instance, styleProps);\n hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;\n styleProps = hoistableRoot.createElement(\"script\");\n markNodeAsHoistable(styleProps);\n setInitialProperties(styleProps, \"link\", instance);\n hoistableRoot.head.appendChild(styleProps);\n return (resource.instance = styleProps);\n case \"void\":\n return null;\n default:\n throw Error(formatProdErrorMessage(443, resource.type));\n }\n else\n \"stylesheet\" === resource.type &&\n 0 === (resource.state.loading & 4) &&\n ((instance = resource.instance),\n (resource.state.loading |= 4),\n insertStylesheet(instance, props.precedence, hoistableRoot));\n return resource.instance;\n}\nfunction insertStylesheet(instance, precedence, root) {\n for (\n var nodes = root.querySelectorAll(\n 'link[rel=\"stylesheet\"][data-precedence],style[data-precedence]'\n ),\n last = nodes.length ? nodes[nodes.length - 1] : null,\n prior = last,\n i = 0;\n i < nodes.length;\n i++\n ) {\n var node = nodes[i];\n if (node.dataset.precedence === precedence) prior = node;\n else if (prior !== last) break;\n }\n prior\n ? prior.parentNode.insertBefore(instance, prior.nextSibling)\n : ((precedence = 9 === root.nodeType ? root.head : root),\n precedence.insertBefore(instance, precedence.firstChild));\n}\nfunction adoptPreloadPropsForStylesheet(stylesheetProps, preloadProps) {\n null == stylesheetProps.crossOrigin &&\n (stylesheetProps.crossOrigin = preloadProps.crossOrigin);\n null == stylesheetProps.referrerPolicy &&\n (stylesheetProps.referrerPolicy = preloadProps.referrerPolicy);\n null == stylesheetProps.title && (stylesheetProps.title = preloadProps.title);\n}\nfunction adoptPreloadPropsForScript(scriptProps, preloadProps) {\n null == scriptProps.crossOrigin &&\n (scriptProps.crossOrigin = preloadProps.crossOrigin);\n null == scriptProps.referrerPolicy &&\n (scriptProps.referrerPolicy = preloadProps.referrerPolicy);\n null == scriptProps.integrity &&\n (scriptProps.integrity = preloadProps.integrity);\n}\nvar tagCaches = null;\nfunction getHydratableHoistableCache(type, keyAttribute, ownerDocument) {\n if (null === tagCaches) {\n var cache = new Map();\n var caches = (tagCaches = new Map());\n caches.set(ownerDocument, cache);\n } else\n (caches = tagCaches),\n (cache = caches.get(ownerDocument)),\n cache || ((cache = new Map()), caches.set(ownerDocument, cache));\n if (cache.has(type)) return cache;\n cache.set(type, null);\n ownerDocument = ownerDocument.getElementsByTagName(type);\n for (caches = 0; caches < ownerDocument.length; caches++) {\n var node = ownerDocument[caches];\n if (\n !(\n node[internalHoistableMarker] ||\n node[internalInstanceKey] ||\n (\"link\" === type && \"stylesheet\" === node.getAttribute(\"rel\"))\n ) &&\n \"http://www.w3.org/2000/svg\" !== node.namespaceURI\n ) {\n var nodeKey = node.getAttribute(keyAttribute) || \"\";\n nodeKey = type + nodeKey;\n var existing = cache.get(nodeKey);\n existing ? existing.push(node) : cache.set(nodeKey, [node]);\n }\n }\n return cache;\n}\nfunction mountHoistable(hoistableRoot, type, instance) {\n hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;\n hoistableRoot.head.insertBefore(\n instance,\n \"title\" === type ? hoistableRoot.querySelector(\"head > title\") : null\n );\n}\nfunction isHostHoistableType(type, props, hostContext) {\n if (1 === hostContext || null != props.itemProp) return !1;\n switch (type) {\n case \"meta\":\n case \"title\":\n return !0;\n case \"style\":\n if (\n \"string\" !== typeof props.precedence ||\n \"string\" !== typeof props.href ||\n \"\" === props.href\n )\n break;\n return !0;\n case \"link\":\n if (\n \"string\" !== typeof props.rel ||\n \"string\" !== typeof props.href ||\n \"\" === props.href ||\n props.onLoad ||\n props.onError\n )\n break;\n switch (props.rel) {\n case \"stylesheet\":\n return (\n (type = props.disabled),\n \"string\" === typeof props.precedence && null == type\n );\n default:\n return !0;\n }\n case \"script\":\n if (\n props.async &&\n \"function\" !== typeof props.async &&\n \"symbol\" !== typeof props.async &&\n !props.onLoad &&\n !props.onError &&\n props.src &&\n \"string\" === typeof props.src\n )\n return !0;\n }\n return !1;\n}\nfunction preloadResource(resource) {\n return \"stylesheet\" === resource.type && 0 === (resource.state.loading & 3)\n ? !1\n : !0;\n}\nvar suspendedState = null;\nfunction noop() {}\nfunction suspendResource(hoistableRoot, resource, props) {\n if (null === suspendedState) throw Error(formatProdErrorMessage(475));\n var state = suspendedState;\n if (\n \"stylesheet\" === resource.type &&\n (\"string\" !== typeof props.media ||\n !1 !== matchMedia(props.media).matches) &&\n 0 === (resource.state.loading & 4)\n ) {\n if (null === resource.instance) {\n var key = getStyleKey(props.href),\n instance = hoistableRoot.querySelector(\n getStylesheetSelectorFromKey(key)\n );\n if (instance) {\n hoistableRoot = instance._p;\n null !== hoistableRoot &&\n \"object\" === typeof hoistableRoot &&\n \"function\" === typeof hoistableRoot.then &&\n (state.count++,\n (state = onUnsuspend.bind(state)),\n hoistableRoot.then(state, state));\n resource.state.loading |= 4;\n resource.instance = instance;\n markNodeAsHoistable(instance);\n return;\n }\n instance = hoistableRoot.ownerDocument || hoistableRoot;\n props = stylesheetPropsFromRawProps(props);\n (key = preloadPropsMap.get(key)) &&\n adoptPreloadPropsForStylesheet(props, key);\n instance = instance.createElement(\"link\");\n markNodeAsHoistable(instance);\n var linkInstance = instance;\n linkInstance._p = new Promise(function (resolve, reject) {\n linkInstance.onload = resolve;\n linkInstance.onerror = reject;\n });\n setInitialProperties(instance, \"link\", props);\n resource.instance = instance;\n }\n null === state.stylesheets && (state.stylesheets = new Map());\n state.stylesheets.set(resource, hoistableRoot);\n (hoistableRoot = resource.state.preload) &&\n 0 === (resource.state.loading & 3) &&\n (state.count++,\n (resource = onUnsuspend.bind(state)),\n hoistableRoot.addEventListener(\"load\", resource),\n hoistableRoot.addEventListener(\"error\", resource));\n }\n}\nfunction waitForCommitToBeReady() {\n if (null === suspendedState) throw Error(formatProdErrorMessage(475));\n var state = suspendedState;\n state.stylesheets &&\n 0 === state.count &&\n insertSuspendedStylesheets(state, state.stylesheets);\n return 0 < state.count\n ? function (commit) {\n var stylesheetTimer = setTimeout(function () {\n state.stylesheets &&\n insertSuspendedStylesheets(state, state.stylesheets);\n if (state.unsuspend) {\n var unsuspend = state.unsuspend;\n state.unsuspend = null;\n unsuspend();\n }\n }, 6e4);\n state.unsuspend = commit;\n return function () {\n state.unsuspend = null;\n clearTimeout(stylesheetTimer);\n };\n }\n : null;\n}\nfunction onUnsuspend() {\n this.count--;\n if (0 === this.count)\n if (this.stylesheets) insertSuspendedStylesheets(this, this.stylesheets);\n else if (this.unsuspend) {\n var unsuspend = this.unsuspend;\n this.unsuspend = null;\n unsuspend();\n }\n}\nvar precedencesByRoot = null;\nfunction insertSuspendedStylesheets(state, resources) {\n state.stylesheets = null;\n null !== state.unsuspend &&\n (state.count++,\n (precedencesByRoot = new Map()),\n resources.forEach(insertStylesheetIntoRoot, state),\n (precedencesByRoot = null),\n onUnsuspend.call(state));\n}\nfunction insertStylesheetIntoRoot(root, resource) {\n if (!(resource.state.loading & 4)) {\n var precedences = precedencesByRoot.get(root);\n if (precedences) var last = precedences.get(null);\n else {\n precedences = new Map();\n precedencesByRoot.set(root, precedences);\n for (\n var nodes = root.querySelectorAll(\n \"link[data-precedence],style[data-precedence]\"\n ),\n i = 0;\n i < nodes.length;\n i++\n ) {\n var node = nodes[i];\n if (\n \"LINK\" === node.nodeName ||\n \"not all\" !== node.getAttribute(\"media\")\n )\n precedences.set(node.dataset.precedence, node), (last = node);\n }\n last && precedences.set(null, last);\n }\n nodes = resource.instance;\n node = nodes.getAttribute(\"data-precedence\");\n i = precedences.get(node) || last;\n i === last && precedences.set(null, nodes);\n precedences.set(node, nodes);\n this.count++;\n last = onUnsuspend.bind(this);\n nodes.addEventListener(\"load\", last);\n nodes.addEventListener(\"error\", last);\n i\n ? i.parentNode.insertBefore(nodes, i.nextSibling)\n : ((root = 9 === root.nodeType ? root.head : root),\n root.insertBefore(nodes, root.firstChild));\n resource.state.loading |= 4;\n }\n}\nvar HostTransitionContext = {\n $$typeof: REACT_CONTEXT_TYPE,\n Provider: null,\n Consumer: null,\n _currentValue: sharedNotPendingObject,\n _currentValue2: sharedNotPendingObject,\n _threadCount: 0\n};\nfunction FiberRootNode(\n containerInfo,\n tag,\n hydrate,\n identifierPrefix,\n onUncaughtError,\n onCaughtError,\n onRecoverableError,\n formState\n) {\n this.tag = 1;\n this.containerInfo = containerInfo;\n this.pingCache = this.current = this.pendingChildren = null;\n this.timeoutHandle = -1;\n this.callbackNode =\n this.next =\n this.pendingContext =\n this.context =\n this.cancelPendingCommit =\n null;\n this.callbackPriority = 0;\n this.expirationTimes = createLaneMap(-1);\n this.entangledLanes =\n this.shellSuspendCounter =\n this.errorRecoveryDisabledLanes =\n this.expiredLanes =\n this.warmLanes =\n this.pingedLanes =\n this.suspendedLanes =\n this.pendingLanes =\n 0;\n this.entanglements = createLaneMap(0);\n this.hiddenUpdates = createLaneMap(null);\n this.identifierPrefix = identifierPrefix;\n this.onUncaughtError = onUncaughtError;\n this.onCaughtError = onCaughtError;\n this.onRecoverableError = onRecoverableError;\n this.pooledCache = null;\n this.pooledCacheLanes = 0;\n this.formState = formState;\n this.incompleteTransitions = new Map();\n}\nfunction createFiberRoot(\n containerInfo,\n tag,\n hydrate,\n initialChildren,\n hydrationCallbacks,\n isStrictMode,\n identifierPrefix,\n onUncaughtError,\n onCaughtError,\n onRecoverableError,\n transitionCallbacks,\n formState\n) {\n containerInfo = new FiberRootNode(\n containerInfo,\n tag,\n hydrate,\n identifierPrefix,\n onUncaughtError,\n onCaughtError,\n onRecoverableError,\n formState\n );\n tag = 1;\n !0 === isStrictMode && (tag |= 24);\n isStrictMode = createFiberImplClass(3, null, null, tag);\n containerInfo.current = isStrictMode;\n isStrictMode.stateNode = containerInfo;\n tag = createCache();\n tag.refCount++;\n containerInfo.pooledCache = tag;\n tag.refCount++;\n isStrictMode.memoizedState = {\n element: initialChildren,\n isDehydrated: hydrate,\n cache: tag\n };\n initializeUpdateQueue(isStrictMode);\n return containerInfo;\n}\nfunction getContextForSubtree(parentComponent) {\n if (!parentComponent) return emptyContextObject;\n parentComponent = emptyContextObject;\n return parentComponent;\n}\nfunction updateContainerImpl(\n rootFiber,\n lane,\n element,\n container,\n parentComponent,\n callback\n) {\n parentComponent = getContextForSubtree(parentComponent);\n null === container.context\n ? (container.context = parentComponent)\n : (container.pendingContext = parentComponent);\n container = createUpdate(lane);\n container.payload = { element: element };\n callback = void 0 === callback ? null : callback;\n null !== callback && (container.callback = callback);\n element = enqueueUpdate(rootFiber, container, lane);\n null !== element &&\n (scheduleUpdateOnFiber(element, rootFiber, lane),\n entangleTransitions(element, rootFiber, lane));\n}\nfunction markRetryLaneImpl(fiber, retryLane) {\n fiber = fiber.memoizedState;\n if (null !== fiber && null !== fiber.dehydrated) {\n var a = fiber.retryLane;\n fiber.retryLane = 0 !== a && a < retryLane ? a : retryLane;\n }\n}\nfunction markRetryLaneIfNotHydrated(fiber, retryLane) {\n markRetryLaneImpl(fiber, retryLane);\n (fiber = fiber.alternate) && markRetryLaneImpl(fiber, retryLane);\n}\nfunction attemptContinuousHydration(fiber) {\n if (13 === fiber.tag) {\n var root = enqueueConcurrentRenderForLane(fiber, 67108864);\n null !== root && scheduleUpdateOnFiber(root, fiber, 67108864);\n markRetryLaneIfNotHydrated(fiber, 67108864);\n }\n}\nvar _enabled = !0;\nfunction dispatchDiscreteEvent(\n domEventName,\n eventSystemFlags,\n container,\n nativeEvent\n) {\n var prevTransition = ReactSharedInternals.T;\n ReactSharedInternals.T = null;\n var previousPriority = ReactDOMSharedInternals.p;\n try {\n (ReactDOMSharedInternals.p = 2),\n dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);\n } finally {\n (ReactDOMSharedInternals.p = previousPriority),\n (ReactSharedInternals.T = prevTransition);\n }\n}\nfunction dispatchContinuousEvent(\n domEventName,\n eventSystemFlags,\n container,\n nativeEvent\n) {\n var prevTransition = ReactSharedInternals.T;\n ReactSharedInternals.T = null;\n var previousPriority = ReactDOMSharedInternals.p;\n try {\n (ReactDOMSharedInternals.p = 8),\n dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);\n } finally {\n (ReactDOMSharedInternals.p = previousPriority),\n (ReactSharedInternals.T = prevTransition);\n }\n}\nfunction dispatchEvent(\n domEventName,\n eventSystemFlags,\n targetContainer,\n nativeEvent\n) {\n if (_enabled) {\n var blockedOn = findInstanceBlockingEvent(nativeEvent);\n if (null === blockedOn)\n dispatchEventForPluginEventSystem(\n domEventName,\n eventSystemFlags,\n nativeEvent,\n return_targetInst,\n targetContainer\n ),\n clearIfContinuousEvent(domEventName, nativeEvent);\n else if (\n queueIfContinuousEvent(\n blockedOn,\n domEventName,\n eventSystemFlags,\n targetContainer,\n nativeEvent\n )\n )\n nativeEvent.stopPropagation();\n else if (\n (clearIfContinuousEvent(domEventName, nativeEvent),\n eventSystemFlags & 4 &&\n -1 < discreteReplayableEvents.indexOf(domEventName))\n ) {\n for (; null !== blockedOn; ) {\n var fiber = getInstanceFromNode(blockedOn);\n if (null !== fiber)\n switch (fiber.tag) {\n case 3:\n fiber = fiber.stateNode;\n if (fiber.current.memoizedState.isDehydrated) {\n var lanes = getHighestPriorityLanes(fiber.pendingLanes);\n if (0 !== lanes) {\n var root = fiber;\n root.pendingLanes |= 2;\n for (root.entangledLanes |= 2; lanes; ) {\n var lane = 1 << (31 - clz32(lanes));\n root.entanglements[1] |= lane;\n lanes &= ~lane;\n }\n ensureRootIsScheduled(fiber);\n 0 === (executionContext & 6) &&\n ((workInProgressRootRenderTargetTime = now() + 500),\n flushSyncWorkAcrossRoots_impl(0, !1));\n }\n }\n break;\n case 13:\n (root = enqueueConcurrentRenderForLane(fiber, 2)),\n null !== root && scheduleUpdateOnFiber(root, fiber, 2),\n flushSyncWork$1(),\n markRetryLaneIfNotHydrated(fiber, 2);\n }\n fiber = findInstanceBlockingEvent(nativeEvent);\n null === fiber &&\n dispatchEventForPluginEventSystem(\n domEventName,\n eventSystemFlags,\n nativeEvent,\n return_targetInst,\n targetContainer\n );\n if (fiber === blockedOn) break;\n blockedOn = fiber;\n }\n null !== blockedOn && nativeEvent.stopPropagation();\n } else\n dispatchEventForPluginEventSystem(\n domEventName,\n eventSystemFlags,\n nativeEvent,\n null,\n targetContainer\n );\n }\n}\nfunction findInstanceBlockingEvent(nativeEvent) {\n nativeEvent = getEventTarget(nativeEvent);\n return findInstanceBlockingTarget(nativeEvent);\n}\nvar return_targetInst = null;\nfunction findInstanceBlockingTarget(targetNode) {\n return_targetInst = null;\n targetNode = getClosestInstanceFromNode(targetNode);\n if (null !== targetNode) {\n var nearestMounted = getNearestMountedFiber(targetNode);\n if (null === nearestMounted) targetNode = null;\n else {\n var tag = nearestMounted.tag;\n if (13 === tag) {\n targetNode = getSuspenseInstanceFromFiber(nearestMounted);\n if (null !== targetNode) return targetNode;\n targetNode = null;\n } else if (3 === tag) {\n if (nearestMounted.stateNode.current.memoizedState.isDehydrated)\n return 3 === nearestMounted.tag\n ? nearestMounted.stateNode.containerInfo\n : null;\n targetNode = null;\n } else nearestMounted !== targetNode && (targetNode = null);\n }\n }\n return_targetInst = targetNode;\n return null;\n}\nfunction getEventPriority(domEventName) {\n switch (domEventName) {\n case \"beforetoggle\":\n case \"cancel\":\n case \"click\":\n case \"close\":\n case \"contextmenu\":\n case \"copy\":\n case \"cut\":\n case \"auxclick\":\n case \"dblclick\":\n case \"dragend\":\n case \"dragstart\":\n case \"drop\":\n case \"focusin\":\n case \"focusout\":\n case \"input\":\n case \"invalid\":\n case \"keydown\":\n case \"keypress\":\n case \"keyup\":\n case \"mousedown\":\n case \"mouseup\":\n case \"paste\":\n case \"pause\":\n case \"play\":\n case \"pointercancel\":\n case \"pointerdown\":\n case \"pointerup\":\n case \"ratechange\":\n case \"reset\":\n case \"resize\":\n case \"seeked\":\n case \"submit\":\n case \"toggle\":\n case \"touchcancel\":\n case \"touchend\":\n case \"touchstart\":\n case \"volumechange\":\n case \"change\":\n case \"selectionchange\":\n case \"textInput\":\n case \"compositionstart\":\n case \"compositionend\":\n case \"compositionupdate\":\n case \"beforeblur\":\n case \"afterblur\":\n case \"beforeinput\":\n case \"blur\":\n case \"fullscreenchange\":\n case \"focus\":\n case \"hashchange\":\n case \"popstate\":\n case \"select\":\n case \"selectstart\":\n return 2;\n case \"drag\":\n case \"dragenter\":\n case \"dragexit\":\n case \"dragleave\":\n case \"dragover\":\n case \"mousemove\":\n case \"mouseout\":\n case \"mouseover\":\n case \"pointermove\":\n case \"pointerout\":\n case \"pointerover\":\n case \"scroll\":\n case \"touchmove\":\n case \"wheel\":\n case \"mouseenter\":\n case \"mouseleave\":\n case \"pointerenter\":\n case \"pointerleave\":\n return 8;\n case \"message\":\n switch (getCurrentPriorityLevel()) {\n case ImmediatePriority:\n return 2;\n case UserBlockingPriority:\n return 8;\n case NormalPriority$1:\n case LowPriority:\n return 32;\n case IdlePriority:\n return 268435456;\n default:\n return 32;\n }\n default:\n return 32;\n }\n}\nvar hasScheduledReplayAttempt = !1,\n queuedFocus = null,\n queuedDrag = null,\n queuedMouse = null,\n queuedPointers = new Map(),\n queuedPointerCaptures = new Map(),\n queuedExplicitHydrationTargets = [],\n discreteReplayableEvents =\n \"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset\".split(\n \" \"\n );\nfunction clearIfContinuousEvent(domEventName, nativeEvent) {\n switch (domEventName) {\n case \"focusin\":\n case \"focusout\":\n queuedFocus = null;\n break;\n case \"dragenter\":\n case \"dragleave\":\n queuedDrag = null;\n break;\n case \"mouseover\":\n case \"mouseout\":\n queuedMouse = null;\n break;\n case \"pointerover\":\n case \"pointerout\":\n queuedPointers.delete(nativeEvent.pointerId);\n break;\n case \"gotpointercapture\":\n case \"lostpointercapture\":\n queuedPointerCaptures.delete(nativeEvent.pointerId);\n }\n}\nfunction accumulateOrCreateContinuousQueuedReplayableEvent(\n existingQueuedEvent,\n blockedOn,\n domEventName,\n eventSystemFlags,\n targetContainer,\n nativeEvent\n) {\n if (\n null === existingQueuedEvent ||\n existingQueuedEvent.nativeEvent !== nativeEvent\n )\n return (\n (existingQueuedEvent = {\n blockedOn: blockedOn,\n domEventName: domEventName,\n eventSystemFlags: eventSystemFlags,\n nativeEvent: nativeEvent,\n targetContainers: [targetContainer]\n }),\n null !== blockedOn &&\n ((blockedOn = getInstanceFromNode(blockedOn)),\n null !== blockedOn && attemptContinuousHydration(blockedOn)),\n existingQueuedEvent\n );\n existingQueuedEvent.eventSystemFlags |= eventSystemFlags;\n blockedOn = existingQueuedEvent.targetContainers;\n null !== targetContainer &&\n -1 === blockedOn.indexOf(targetContainer) &&\n blockedOn.push(targetContainer);\n return existingQueuedEvent;\n}\nfunction queueIfContinuousEvent(\n blockedOn,\n domEventName,\n eventSystemFlags,\n targetContainer,\n nativeEvent\n) {\n switch (domEventName) {\n case \"focusin\":\n return (\n (queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(\n queuedFocus,\n blockedOn,\n domEventName,\n eventSystemFlags,\n targetContainer,\n nativeEvent\n )),\n !0\n );\n case \"dragenter\":\n return (\n (queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(\n queuedDrag,\n blockedOn,\n domEventName,\n eventSystemFlags,\n targetContainer,\n nativeEvent\n )),\n !0\n );\n case \"mouseover\":\n return (\n (queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(\n queuedMouse,\n blockedOn,\n domEventName,\n eventSystemFlags,\n targetContainer,\n nativeEvent\n )),\n !0\n );\n case \"pointerover\":\n var pointerId = nativeEvent.pointerId;\n queuedPointers.set(\n pointerId,\n accumulateOrCreateContinuousQueuedReplayableEvent(\n queuedPointers.get(pointerId) || null,\n blockedOn,\n domEventName,\n eventSystemFlags,\n targetContainer,\n nativeEvent\n )\n );\n return !0;\n case \"gotpointercapture\":\n return (\n (pointerId = nativeEvent.pointerId),\n queuedPointerCaptures.set(\n pointerId,\n accumulateOrCreateContinuousQueuedReplayableEvent(\n queuedPointerCaptures.get(pointerId) || null,\n blockedOn,\n domEventName,\n eventSystemFlags,\n targetContainer,\n nativeEvent\n )\n ),\n !0\n );\n }\n return !1;\n}\nfunction attemptExplicitHydrationTarget(queuedTarget) {\n var targetInst = getClosestInstanceFromNode(queuedTarget.target);\n if (null !== targetInst) {\n var nearestMounted = getNearestMountedFiber(targetInst);\n if (null !== nearestMounted)\n if (((targetInst = nearestMounted.tag), 13 === targetInst)) {\n if (\n ((targetInst = getSuspenseInstanceFromFiber(nearestMounted)),\n null !== targetInst)\n ) {\n queuedTarget.blockedOn = targetInst;\n runWithPriority(queuedTarget.priority, function () {\n if (13 === nearestMounted.tag) {\n var lane = requestUpdateLane();\n lane = getBumpedLaneForHydrationByLane(lane);\n var root = enqueueConcurrentRenderForLane(nearestMounted, lane);\n null !== root &&\n scheduleUpdateOnFiber(root, nearestMounted, lane);\n markRetryLaneIfNotHydrated(nearestMounted, lane);\n }\n });\n return;\n }\n } else if (\n 3 === targetInst &&\n nearestMounted.stateNode.current.memoizedState.isDehydrated\n ) {\n queuedTarget.blockedOn =\n 3 === nearestMounted.tag\n ? nearestMounted.stateNode.containerInfo\n : null;\n return;\n }\n }\n queuedTarget.blockedOn = null;\n}\nfunction attemptReplayContinuousQueuedEvent(queuedEvent) {\n if (null !== queuedEvent.blockedOn) return !1;\n for (\n var targetContainers = queuedEvent.targetContainers;\n 0 < targetContainers.length;\n\n ) {\n var nextBlockedOn = findInstanceBlockingEvent(queuedEvent.nativeEvent);\n if (null === nextBlockedOn) {\n nextBlockedOn = queuedEvent.nativeEvent;\n var nativeEventClone = new nextBlockedOn.constructor(\n nextBlockedOn.type,\n nextBlockedOn\n );\n currentReplayingEvent = nativeEventClone;\n nextBlockedOn.target.dispatchEvent(nativeEventClone);\n currentReplayingEvent = null;\n } else\n return (\n (targetContainers = getInstanceFromNode(nextBlockedOn)),\n null !== targetContainers &&\n attemptContinuousHydration(targetContainers),\n (queuedEvent.blockedOn = nextBlockedOn),\n !1\n );\n targetContainers.shift();\n }\n return !0;\n}\nfunction attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {\n attemptReplayContinuousQueuedEvent(queuedEvent) && map.delete(key);\n}\nfunction replayUnblockedEvents() {\n hasScheduledReplayAttempt = !1;\n null !== queuedFocus &&\n attemptReplayContinuousQueuedEvent(queuedFocus) &&\n (queuedFocus = null);\n null !== queuedDrag &&\n attemptReplayContinuousQueuedEvent(queuedDrag) &&\n (queuedDrag = null);\n null !== queuedMouse &&\n attemptReplayContinuousQueuedEvent(queuedMouse) &&\n (queuedMouse = null);\n queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap);\n queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);\n}\nfunction scheduleCallbackIfUnblocked(queuedEvent, unblocked) {\n queuedEvent.blockedOn === unblocked &&\n ((queuedEvent.blockedOn = null),\n hasScheduledReplayAttempt ||\n ((hasScheduledReplayAttempt = !0),\n Scheduler.unstable_scheduleCallback(\n Scheduler.unstable_NormalPriority,\n replayUnblockedEvents\n )));\n}\nvar lastScheduledReplayQueue = null;\nfunction scheduleReplayQueueIfNeeded(formReplayingQueue) {\n lastScheduledReplayQueue !== formReplayingQueue &&\n ((lastScheduledReplayQueue = formReplayingQueue),\n Scheduler.unstable_scheduleCallback(\n Scheduler.unstable_NormalPriority,\n function () {\n lastScheduledReplayQueue === formReplayingQueue &&\n (lastScheduledReplayQueue = null);\n for (var i = 0; i < formReplayingQueue.length; i += 3) {\n var form = formReplayingQueue[i],\n submitterOrAction = formReplayingQueue[i + 1],\n formData = formReplayingQueue[i + 2];\n if (\"function\" !== typeof submitterOrAction)\n if (null === findInstanceBlockingTarget(submitterOrAction || form))\n continue;\n else break;\n var formInst = getInstanceFromNode(form);\n null !== formInst &&\n (formReplayingQueue.splice(i, 3),\n (i -= 3),\n startHostTransition(\n formInst,\n {\n pending: !0,\n data: formData,\n method: form.method,\n action: submitterOrAction\n },\n submitterOrAction,\n formData\n ));\n }\n }\n ));\n}\nfunction retryIfBlockedOn(unblocked) {\n function unblock(queuedEvent) {\n return scheduleCallbackIfUnblocked(queuedEvent, unblocked);\n }\n null !== queuedFocus && scheduleCallbackIfUnblocked(queuedFocus, unblocked);\n null !== queuedDrag && scheduleCallbackIfUnblocked(queuedDrag, unblocked);\n null !== queuedMouse && scheduleCallbackIfUnblocked(queuedMouse, unblocked);\n queuedPointers.forEach(unblock);\n queuedPointerCaptures.forEach(unblock);\n for (var i = 0; i < queuedExplicitHydrationTargets.length; i++) {\n var queuedTarget = queuedExplicitHydrationTargets[i];\n queuedTarget.blockedOn === unblocked && (queuedTarget.blockedOn = null);\n }\n for (\n ;\n 0 < queuedExplicitHydrationTargets.length &&\n ((i = queuedExplicitHydrationTargets[0]), null === i.blockedOn);\n\n )\n attemptExplicitHydrationTarget(i),\n null === i.blockedOn && queuedExplicitHydrationTargets.shift();\n i = (unblocked.ownerDocument || unblocked).$$reactFormReplay;\n if (null != i)\n for (queuedTarget = 0; queuedTarget < i.length; queuedTarget += 3) {\n var form = i[queuedTarget],\n submitterOrAction = i[queuedTarget + 1],\n formProps = form[internalPropsKey] || null;\n if (\"function\" === typeof submitterOrAction)\n formProps || scheduleReplayQueueIfNeeded(i);\n else if (formProps) {\n var action = null;\n if (submitterOrAction && submitterOrAction.hasAttribute(\"formAction\"))\n if (\n ((form = submitterOrAction),\n (formProps = submitterOrAction[internalPropsKey] || null))\n )\n action = formProps.formAction;\n else {\n if (null !== findInstanceBlockingTarget(form)) continue;\n }\n else action = formProps.action;\n \"function\" === typeof action\n ? (i[queuedTarget + 1] = action)\n : (i.splice(queuedTarget, 3), (queuedTarget -= 3));\n scheduleReplayQueueIfNeeded(i);\n }\n }\n}\nfunction ReactDOMRoot(internalRoot) {\n this._internalRoot = internalRoot;\n}\nReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render =\n function (children) {\n var root = this._internalRoot;\n if (null === root) throw Error(formatProdErrorMessage(409));\n var current = root.current,\n lane = requestUpdateLane();\n updateContainerImpl(current, lane, children, root, null, null);\n };\nReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount =\n function () {\n var root = this._internalRoot;\n if (null !== root) {\n this._internalRoot = null;\n var container = root.containerInfo;\n updateContainerImpl(root.current, 2, null, root, null, null);\n flushSyncWork$1();\n container[internalContainerInstanceKey] = null;\n }\n };\nfunction ReactDOMHydrationRoot(internalRoot) {\n this._internalRoot = internalRoot;\n}\nReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {\n if (target) {\n var updatePriority = resolveUpdatePriority();\n target = { blockedOn: null, target: target, priority: updatePriority };\n for (\n var i = 0;\n i < queuedExplicitHydrationTargets.length &&\n 0 !== updatePriority &&\n updatePriority < queuedExplicitHydrationTargets[i].priority;\n i++\n );\n queuedExplicitHydrationTargets.splice(i, 0, target);\n 0 === i && attemptExplicitHydrationTarget(target);\n }\n};\nvar isomorphicReactPackageVersion$jscomp$inline_1785 = React.version;\nif (\n \"19.1.1\" !==\n isomorphicReactPackageVersion$jscomp$inline_1785\n)\n throw Error(\n formatProdErrorMessage(\n 527,\n isomorphicReactPackageVersion$jscomp$inline_1785,\n \"19.1.1\"\n )\n );\nReactDOMSharedInternals.findDOMNode = function (componentOrElement) {\n var fiber = componentOrElement._reactInternals;\n if (void 0 === fiber) {\n if (\"function\" === typeof componentOrElement.render)\n throw Error(formatProdErrorMessage(188));\n componentOrElement = Object.keys(componentOrElement).join(\",\");\n throw Error(formatProdErrorMessage(268, componentOrElement));\n }\n componentOrElement = findCurrentFiberUsingSlowPath(fiber);\n componentOrElement =\n null !== componentOrElement\n ? findCurrentHostFiberImpl(componentOrElement)\n : null;\n componentOrElement =\n null === componentOrElement ? null : componentOrElement.stateNode;\n return componentOrElement;\n};\nvar internals$jscomp$inline_2256 = {\n bundleType: 0,\n version: \"19.1.1\",\n rendererPackageName: \"react-dom\",\n currentDispatcherRef: ReactSharedInternals,\n reconcilerVersion: \"19.1.1\"\n};\nif (\"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {\n var hook$jscomp$inline_2257 = __REACT_DEVTOOLS_GLOBAL_HOOK__;\n if (\n !hook$jscomp$inline_2257.isDisabled &&\n hook$jscomp$inline_2257.supportsFiber\n )\n try {\n (rendererID = hook$jscomp$inline_2257.inject(\n internals$jscomp$inline_2256\n )),\n (injectedHook = hook$jscomp$inline_2257);\n } catch (err) {}\n}\nexports.createRoot = function (container, options) {\n if (!isValidContainer(container)) throw Error(formatProdErrorMessage(299));\n var isStrictMode = !1,\n identifierPrefix = \"\",\n onUncaughtError = defaultOnUncaughtError,\n onCaughtError = defaultOnCaughtError,\n onRecoverableError = defaultOnRecoverableError,\n transitionCallbacks = null;\n null !== options &&\n void 0 !== options &&\n (!0 === options.unstable_strictMode && (isStrictMode = !0),\n void 0 !== options.identifierPrefix &&\n (identifierPrefix = options.identifierPrefix),\n void 0 !== options.onUncaughtError &&\n (onUncaughtError = options.onUncaughtError),\n void 0 !== options.onCaughtError && (onCaughtError = options.onCaughtError),\n void 0 !== options.onRecoverableError &&\n (onRecoverableError = options.onRecoverableError),\n void 0 !== options.unstable_transitionCallbacks &&\n (transitionCallbacks = options.unstable_transitionCallbacks));\n options = createFiberRoot(\n container,\n 1,\n !1,\n null,\n null,\n isStrictMode,\n identifierPrefix,\n onUncaughtError,\n onCaughtError,\n onRecoverableError,\n transitionCallbacks,\n null\n );\n container[internalContainerInstanceKey] = options.current;\n listenToAllSupportedEvents(container);\n return new ReactDOMRoot(options);\n};\nexports.hydrateRoot = function (container, initialChildren, options) {\n if (!isValidContainer(container)) throw Error(formatProdErrorMessage(299));\n var isStrictMode = !1,\n identifierPrefix = \"\",\n onUncaughtError = defaultOnUncaughtError,\n onCaughtError = defaultOnCaughtError,\n onRecoverableError = defaultOnRecoverableError,\n transitionCallbacks = null,\n formState = null;\n null !== options &&\n void 0 !== options &&\n (!0 === options.unstable_strictMode && (isStrictMode = !0),\n void 0 !== options.identifierPrefix &&\n (identifierPrefix = options.identifierPrefix),\n void 0 !== options.onUncaughtError &&\n (onUncaughtError = options.onUncaughtError),\n void 0 !== options.onCaughtError && (onCaughtError = options.onCaughtError),\n void 0 !== options.onRecoverableError &&\n (onRecoverableError = options.onRecoverableError),\n void 0 !== options.unstable_transitionCallbacks &&\n (transitionCallbacks = options.unstable_transitionCallbacks),\n void 0 !== options.formState && (formState = options.formState));\n initialChildren = createFiberRoot(\n container,\n 1,\n !0,\n initialChildren,\n null != options ? options : null,\n isStrictMode,\n identifierPrefix,\n onUncaughtError,\n onCaughtError,\n onRecoverableError,\n transitionCallbacks,\n formState\n );\n initialChildren.context = getContextForSubtree(null);\n options = initialChildren.current;\n isStrictMode = requestUpdateLane();\n isStrictMode = getBumpedLaneForHydrationByLane(isStrictMode);\n identifierPrefix = createUpdate(isStrictMode);\n identifierPrefix.callback = null;\n enqueueUpdate(options, identifierPrefix, isStrictMode);\n options = isStrictMode;\n initialChildren.current.lanes = options;\n markRootUpdated$1(initialChildren, options);\n ensureRootIsScheduled(initialChildren);\n container[internalContainerInstanceKey] = initialChildren.current;\n listenToAllSupportedEvents(container);\n return new ReactDOMHydrationRoot(initialChildren);\n};\nexports.version = \"19.1.1\";\n","'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom-client.production.js');\n} else {\n module.exports = require('./cjs/react-dom-client.development.js');\n}\n","import Grid from '@mui/material/Grid';\nimport { NutritionCard } from \"components/Dashboard/NutritionCard\";\nimport { RoutineCard } from \"components/Dashboard/RoutineCard\";\nimport { WeightCard } from \"components/Dashboard/WeightCard\";\nimport React from 'react';\n\nexport const Dashboard = () => {\n\n return (\n <Grid container spacing={2}>\n <Grid size={{ xs: 12, sm: 4 }}>\n <RoutineCard />\n </Grid>\n <Grid size={{ xs: 12, sm: 4 }}>\n <NutritionCard />\n </Grid>\n <Grid size={{ xs: 12, sm: 4 }}>\n <WeightCard />\n </Grid>\n </Grid>\n );\n};","import { createContext } from 'react';\nimport { Equipment } from '../models/equipment';\nimport { Muscle } from '../models/muscle';\nimport { Category } from '../models/category';\n\n\ntype ExerciseContext = {\n selectedEquipment: Equipment[];\n setSelectedEquipment: (equipment: Equipment[]) => void;\n selectedMuscles: Muscle[];\n setSelectedMuscles: (muscles: Muscle[]) => void;\n selectedCategories: Category[];\n setSelectedCategories: (exercises: Category[]) => void;\n}\n\nexport const ExerciseFiltersContext = createContext<ExerciseContext>({} as unknown as ExerciseContext);\n","import ExpandMoreIcon from '@mui/icons-material/ExpandMore';\nimport {\n Accordion,\n AccordionDetails,\n AccordionSummary,\n List,\n ListItem,\n ListItemButton,\n ListItemIcon,\n ListItemText,\n Paper,\n Switch,\n Typography\n} from \"@mui/material\";\nimport { Category } from \"components/Exercises/models/category\";\nimport React, { useContext } from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { LoadingPlaceholder } from '../../Core/LoadingWidget/LoadingWidget';\nimport { useCategoriesQuery } from '../queries';\nimport { ExerciseFiltersContext } from './ExerciseFiltersContext';\n\nconst CategoryFilterList = () => {\n\n const { data: categories, isLoading } = useCategoriesQuery();\n const { selectedCategories, setSelectedCategories } = useContext(ExerciseFiltersContext);\n const [t] = useTranslation();\n\n const handleToggle = (value: Category) => () => {\n const currentIndex = selectedCategories.indexOf(value);\n const newChecked = [...selectedCategories];\n\n if (currentIndex === -1) {\n newChecked.push(value);\n } else {\n newChecked.splice(currentIndex, 1);\n }\n\n setSelectedCategories(newChecked);\n };\n\n if (isLoading) {\n return <LoadingPlaceholder />;\n }\n\n return (\n <List>\n {categories!.map((category) => {\n const labelId = `checkbox-list-label-${category.id}`;\n\n return (\n <ListItem\n key={category.id}\n disablePadding\n >\n <ListItemButton role={undefined} onClick={handleToggle(category)} dense>\n <ListItemIcon>\n <Switch\n key={`category-${category.id}`}\n edge=\"start\"\n checked={selectedCategories.indexOf(category) !== -1}\n tabIndex={-1}\n disableRipple\n inputProps={{ 'aria-labelledby': labelId }}\n />\n </ListItemIcon>\n <ListItemText\n id={labelId}\n primary={category.translatedName}\n />\n </ListItemButton>\n </ListItem>\n );\n })}\n </List>\n );\n};\n\nexport const CategoryFilterDropdown = () => {\n const [t] = useTranslation();\n\n return (\n <Accordion>\n <AccordionSummary expandIcon={<ExpandMoreIcon />}>\n {t('category')}\n </AccordionSummary>\n <AccordionDetails>\n <CategoryFilterList />\n </AccordionDetails>\n </Accordion>\n );\n};\n\nexport const CategoryFilter = () => {\n const [t] = useTranslation();\n\n return (\n <div data-testid={\"categories\"}>\n <Paper>\n <Typography gutterBottom variant=\"h6\" m={2}>\n {t('category')}\n </Typography>\n <CategoryFilterList />\n </Paper>\n </div>\n );\n};","import ExpandMoreIcon from '@mui/icons-material/ExpandMore';\nimport {\n Accordion,\n AccordionDetails,\n AccordionSummary,\n List,\n ListItem,\n ListItemButton,\n ListItemIcon,\n ListItemText,\n Paper,\n Switch,\n Typography\n} from \"@mui/material\";\nimport { Equipment } from \"components/Exercises/models/equipment\";\nimport React, { useContext } from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { LoadingPlaceholder } from '../../Core/LoadingWidget/LoadingWidget';\nimport { useEquipmentQuery } from '../queries';\nimport { ExerciseFiltersContext } from './ExerciseFiltersContext';\n\nconst EquipmentFilterList = () => {\n\n const { data: equipment, isLoading } = useEquipmentQuery();\n const { selectedEquipment, setSelectedEquipment } = useContext(ExerciseFiltersContext);\n const [t] = useTranslation();\n\n const handleToggle = (value: Equipment) => () => {\n const currentIndex = selectedEquipment.indexOf(value);\n const newChecked = [...selectedEquipment];\n\n if (currentIndex === -1) {\n newChecked.push(value);\n } else {\n newChecked.splice(currentIndex, 1);\n }\n\n setSelectedEquipment(newChecked);\n };\n\n if (isLoading) {\n return <LoadingPlaceholder />;\n }\n\n return (\n <List sx={{ maxHeight: \"500px\", overflowY: \"auto\" }}>\n {equipment!.map((equipment) => {\n const labelId = `checkbox-list-label-${equipment.id}`;\n\n return (\n <ListItem\n key={equipment.id}\n disablePadding\n >\n <ListItemButton role={undefined} onClick={handleToggle(equipment)} dense>\n <ListItemIcon>\n <Switch\n key={`muscle-${equipment.id}`}\n edge=\"start\"\n checked={selectedEquipment.indexOf(equipment) !== -1}\n tabIndex={-1}\n disableRipple\n inputProps={{ 'aria-labelledby': labelId }}\n />\n </ListItemIcon>\n <ListItemText\n id={labelId}\n primary={equipment.translatedName}\n />\n </ListItemButton>\n </ListItem>\n );\n })}\n </List>\n );\n};\n\nexport const EquipmentFilterDropdown = () => {\n const [t] = useTranslation();\n\n return (\n <Accordion>\n <AccordionSummary expandIcon={<ExpandMoreIcon />}>\n {t('exercises.equipment')}\n </AccordionSummary>\n <AccordionDetails>\n <EquipmentFilterList />\n </AccordionDetails>\n </Accordion>\n );\n};\n\nexport const EquipmentFilter = () => {\n const [t] = useTranslation();\n\n return (\n <div data-testid={\"equipment\"}>\n <Paper sx={{ mt: 2 }}>\n <Typography gutterBottom variant=\"h6\" m={2}>\n {t('exercises.equipment')}\n </Typography>\n <EquipmentFilterList />\n </Paper>\n </div>\n );\n};","import { styled } from \"@mui/material/styles\";\nimport Tooltip, { tooltipClasses, TooltipProps } from \"@mui/material/Tooltip\";\nimport React from \"react\";\n\nexport const LightTooltip = styled(({ className, ...props }: TooltipProps) => (\n <Tooltip {...props} classes={{ popper: className }} />\n))(({ theme }) => ({\n [`& .${tooltipClasses.tooltip}`]: {\n backgroundColor: 'rgb(245, 245, 245)',\n color: 'rgba(0, 0, 0, 0.87)',\n boxShadow: theme.shadows[1],\n fontSize: 11,\n },\n}));","import { Muscle } from \"components/Exercises/models/muscle\";\nimport { PUBLIC_URL } from \"config\";\nimport React from \"react\";\n\ntype OverviewCardProps = {\n primaryMuscles: Muscle[];\n secondaryMuscles: Muscle[];\n isFront: boolean;\n};\n\nexport const MuscleOverview = ({ primaryMuscles, secondaryMuscles, isFront }: OverviewCardProps) => {\n const backgroundStyle = [];\n\n backgroundStyle.push(\n ...primaryMuscles\n .filter(m => m.isFront === isFront)\n .map(m => `/muscles/main/muscle-${m.id}.svg`)\n );\n backgroundStyle.push(\n ...secondaryMuscles\n .filter(m => m.isFront === isFront)\n .map(m => `/muscles/secondary/muscle-${m.id}.svg`)\n );\n backgroundStyle.push(isFront ? \"/muscles/muscular_system_front.svg\" : \"/muscles/muscular_system_back.svg\");\n const backgroundUrl = backgroundStyle.map(url => `url(${PUBLIC_URL}${url})`).join(\", \");\n\n return (\n <div\n style={{\n height: \"400px\",\n width: \"200px\",\n backgroundImage: backgroundUrl,\n backgroundRepeat: \"no-repeat\"\n }}>\n </div>\n );\n};\n","import ExpandMoreIcon from '@mui/icons-material/ExpandMore';\nimport InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';\nimport {\n Accordion,\n AccordionDetails,\n AccordionSummary,\n IconButton,\n List,\n ListItem,\n ListItemButton,\n ListItemIcon,\n ListItemText,\n Paper,\n Switch,\n Typography\n} from \"@mui/material\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { LightTooltip } from \"components/Core/Tooltips/LightToolTip\";\nimport { Muscle } from \"components/Exercises/models/muscle\";\nimport { MuscleOverview } from \"components/Muscles/MuscleOverview\";\nimport React, { useContext } from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { useMusclesQuery } from '../queries';\nimport { ExerciseFiltersContext } from './ExerciseFiltersContext';\n\nconst MuscleFilterList = () => {\n\n const { data: muscles, isLoading } = useMusclesQuery();\n const { selectedMuscles, setSelectedMuscles } = useContext(ExerciseFiltersContext);\n const [t] = useTranslation();\n\n const handleToggle = (value: Muscle) => () => {\n const currentIndex = selectedMuscles.indexOf(value);\n const newChecked = [...selectedMuscles];\n\n if (currentIndex === -1) {\n newChecked.push(value);\n } else {\n newChecked.splice(currentIndex, 1);\n }\n\n setSelectedMuscles(newChecked);\n };\n\n if (isLoading) {\n return <LoadingPlaceholder />;\n }\n\n return (\n <List sx={{ maxHeight: \"500px\", overflowY: \"auto\" }}>\n {muscles!.map((m) => {\n const labelId = `checkbox-list-label-${m.id}`;\n\n return (\n <ListItem\n key={m.id}\n disablePadding\n secondaryAction={\n <LightTooltip\n title={\n <MuscleOverview\n primaryMuscles={[m]}\n secondaryMuscles={[]}\n isFront={m.isFront}\n />\n }\n placement=\"right\"\n arrow>\n <IconButton edge=\"end\" aria-label=\"comments\">\n <InfoOutlinedIcon />\n </IconButton>\n </LightTooltip>\n }\n >\n <ListItemButton role={undefined} onClick={handleToggle(m)} dense>\n <ListItemIcon>\n <Switch\n key={`muscle-${m.id}`}\n edge=\"start\"\n checked={selectedMuscles.indexOf(m) !== -1}\n tabIndex={-1}\n disableRipple\n inputProps={{ 'aria-labelledby': labelId }}\n />\n </ListItemIcon>\n\n <ListItemText\n id={labelId}\n primary={m.name}\n secondary={m.nameEn !== '' ? m.translatedName : ''}\n />\n\n </ListItemButton>\n </ListItem>\n );\n })}\n </List>\n );\n};\n\nexport const MuscleFilterDropdown = () => {\n\n const [t] = useTranslation();\n\n return (\n <Accordion>\n <AccordionSummary expandIcon={<ExpandMoreIcon />}>\n {t('exercises.muscles')}\n </AccordionSummary>\n <AccordionDetails>\n <MuscleFilterList />\n </AccordionDetails>\n </Accordion>\n );\n};\n\nexport const MuscleFilter = () => {\n\n const [t] = useTranslation();\n\n return (\n <div data-testid={\"muscles\"}>\n <Paper sx={{ mt: 2 }}>\n <Typography gutterBottom variant=\"h6\" m={2}>\n {t('exercises.muscles')}\n </Typography>\n <MuscleFilterList />\n </Paper>\n </div>\n );\n};","import PhotoIcon from \"@mui/icons-material/Photo\";\nimport SearchIcon from \"@mui/icons-material/Search\";\nimport {\n Autocomplete,\n Avatar,\n FormControlLabel,\n FormGroup,\n InputAdornment,\n ListItem,\n ListItemIcon,\n ListItemText,\n Switch,\n TextField,\n} from \"@mui/material\";\nimport { SERVER_URL } from \"config\";\nimport debounce from \"lodash/debounce\";\nimport * as React from \"react\";\nimport { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { getExercise, searchExerciseTranslations } from \"services\";\nimport { ExerciseSearchResponse } from \"services/responseType\";\nimport { LANGUAGE_SHORT_ENGLISH } from \"utils/consts\";\n\ntype NameAutocompleterProps = {\n callback: (exerciseResponse: ExerciseSearchResponse | null) => void;\n loadExercise?: boolean;\n};\n\nexport function NameAutocompleter({ callback, loadExercise }: NameAutocompleterProps) {\n const [value, setValue] = React.useState<ExerciseSearchResponse | null>(null);\n const [inputValue, setInputValue] = React.useState(\"\");\n const [searchEnglish, setSearchEnglish] = useState<boolean>(true);\n const [options, setOptions] = React.useState<readonly ExerciseSearchResponse[]>([]);\n const [t, i18n] = useTranslation();\n\n loadExercise = loadExercise === undefined ? false : loadExercise;\n\n const fetchName = React.useMemo(\n () =>\n debounce(\n (request: string) =>\n searchExerciseTranslations(request, i18n.language, searchEnglish).then((res) => setOptions(res)),\n 200\n ),\n [i18n.language, searchEnglish]\n );\n\n React.useEffect(() => {\n if (inputValue === \"\") {\n setOptions(value ? [value] : []);\n return undefined;\n }\n\n fetchName(inputValue);\n\n return () => {};\n }, [value, inputValue, fetchName]);\n\n return (\n <>\n <Autocomplete\n id=\"exercise-name-autocomplete\"\n getOptionLabel={(option) => option.value}\n data-testid=\"autocomplete\"\n filterOptions={(x) => x}\n options={options}\n autoComplete\n includeInputInList\n filterSelectedOptions\n value={value}\n noOptionsText={t(\"noResults\")}\n isOptionEqualToValue={(option, value) => option.value === value.value}\n onChange={async (event: any, newValue: ExerciseSearchResponse | null) => {\n setOptions(newValue ? [newValue, ...options] : options);\n setValue(newValue);\n if (loadExercise && newValue !== null) {\n newValue.exercise = await getExercise(newValue.data.base_id);\n }\n callback(newValue);\n }}\n onInputChange={(event, newInputValue) => {\n setInputValue(newInputValue);\n }}\n renderInput={(params) => (\n <TextField\n {...params}\n label={t(\"exercises.searchExerciseName\")}\n fullWidth\n slotProps={{\n input: {\n ...params.InputProps,\n startAdornment: (\n <>\n <InputAdornment position=\"start\">\n <SearchIcon />\n </InputAdornment>\n {params.InputProps.startAdornment}\n </>\n ),\n },\n }}\n />\n )}\n renderOption={(props, option, state) => (\n <li\n {...props}\n key={`exercise-${state.index}-${option.data.id}`}\n data-testid={`autocompleter-result-${option.data.base_id}`}\n >\n <ListItem disablePadding component=\"div\">\n <ListItemIcon>\n {option.data.image ? (\n <Avatar alt=\"\" src={`${SERVER_URL}${option.data.image}`} variant=\"rounded\" />\n ) : (\n <PhotoIcon fontSize=\"large\" />\n )}\n </ListItemIcon>\n <ListItemText\n primary={option.value}\n slotProps={{\n primary: {\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n },\n }}\n secondary={option.data.category}\n />\n </ListItem>\n </li>\n )}\n />\n {i18n.language !== LANGUAGE_SHORT_ENGLISH && (\n <FormGroup>\n <FormControlLabel\n control={\n <Switch checked={searchEnglish} onChange={(event, checked) => setSearchEnglish(checked)} />\n }\n label={t(\"alsoSearchEnglish\")}\n />\n </FormGroup>\n )}\n </>\n );\n}\n","import PhotoIcon from \"@mui/icons-material/Photo\";\nimport { Box } from \"@mui/material\";\nimport React from \"react\";\n\nexport const ExerciseImagePlaceholder = (props: {\n backgroundColor?: string | undefined,\n iconColor?: string | undefined,\n height?: number | undefined,\n}) => {\n\n const backgroundColor = props.backgroundColor || \"lightgray\";\n const iconColor = props.iconColor || \"gray\";\n const height = props.height || 200;\n\n return <Box sx={{ backgroundColor: backgroundColor, height: height }}\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\">\n <PhotoIcon sx={{ fontSize: 80, color: iconColor }} />\n </Box>;\n};","import { Card, CardActionArea, CardContent, CardMedia, Chip, Typography, } from \"@mui/material\";\nimport Tooltip from \"@mui/material/Tooltip\";\nimport { ExerciseImagePlaceholder } from \"components/Exercises/Detail/ExerciseImagePlaceholder\";\nimport { Exercise } from \"components/Exercises/models/exercise\";\nimport { Language } from \"components/Exercises/models/language\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { ENGLISH_LANGUAGE_ID } from \"utils/consts\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\ntype OverviewCardProps = {\n exercise: Exercise;\n language?: Language;\n};\n\nexport const OverviewCard = ({ exercise, language }: OverviewCardProps) => {\n const translation = language\n ? exercise.getTranslation(language)\n : exercise.getTranslation(\n new Language(ENGLISH_LANGUAGE_ID, \"en\", \"English\")\n );\n const [t, i18n] = useTranslation();\n\n return (\n <Card key={exercise.id} sx={{ width: '100%' }}>\n <CardActionArea href={makeLink(WgerLink.EXERCISE_DETAIL, i18n.language, {\n id: exercise.id!,\n slug: translation.nameSlug\n })}\n sx={{ minHeight: 330 }}>\n {exercise.mainImage\n ? <CardMedia\n component=\"img\"\n image={exercise.mainImage.url}\n sx={{ height: 200 }}\n alt=\"\" />\n : <CardMedia>\n <ExerciseImagePlaceholder />\n </CardMedia>}\n <CardContent>\n <Tooltip title={translation.name} placement=\"top\" arrow>\n <Typography gutterBottom variant=\"h6\" component=\"div\" noWrap>\n {translation.name}\n </Typography>\n </Tooltip>\n\n <Chip\n label={exercise.category.translatedName}\n key={exercise.category.id}\n sx={{ position: \"absolute\", top: 8, left: 8 }}\n color=\"primary\"\n size=\"small\"\n />\n {exercise.equipment.map(equipment => (\n <Typography display=\"inline\" mr={1} key={equipment.id}>\n {equipment.translatedName}\n </Typography>\n ))}\n {exercise.equipment.length === 0 && (\n <Typography color=\"text.secondary\" display=\"inline\" mr={1}>\n {t(\"exercises.noEquipment\")}\n </Typography>\n )}\n </CardContent>\n </CardActionArea>\n </Card>\n );\n};\n","import Grid from '@mui/material/Grid';\nimport { OverviewCard } from \"components/Exercises/Detail/OverviewCard\";\nimport { Exercise } from \"components/Exercises/models/exercise\";\nimport { Language } from \"components/Exercises/models/language\";\nimport { useLanguageQuery } from \"components/Exercises/queries\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { getLanguageByShortName } from \"services\";\n\ntype ExerciseGridProps = {\n exercises: Exercise[];\n};\n\nexport const ExerciseGrid = ({ exercises }: ExerciseGridProps) => {\n\n const languageQuery = useLanguageQuery();\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const [t, i18n] = useTranslation();\n\n let currentUserLanguage: Language | undefined;\n if (languageQuery.isSuccess) {\n currentUserLanguage = getLanguageByShortName(\n i18n.language,\n languageQuery.data\n );\n }\n\n return (\n (<Grid container spacing={1}>\n {exercises.map(b => (\n <Grid\n key={b.id}\n sx={{ display: \"flex\" }}\n size={{\n xs: 6,\n md: 4\n }}>\n <OverviewCard exercise={b} language={currentUserLanguage} />\n </Grid>\n ))}\n </Grid>)\n );\n};\n","import { Box, Card, CardContent, CardMedia, Skeleton, } from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport React from \"react\";\n\nexport const ExerciseGridSkeleton = () => {\n\n return (\n (<Grid container spacing={1}>\n {[...Array(21)].map((skeletonBase, idx) => (\n <Grid key={idx} sx={{ display: \"flex\" }} size={4}>\n <Card>\n <CardMedia>\n <Skeleton variant=\"rectangular\" width={250} height={150} />\n </CardMedia>\n <CardContent>\n <Box sx={{ pt: 0.5 }}>\n <Skeleton width=\"60%\" />\n <Skeleton />\n </Box>\n </CardContent>\n </Card>\n </Grid>\n ))}\n </Grid>)\n );\n};\n","import React, { useState } from 'react';\nimport { Button, Divider, Drawer, Stack, Typography } from '@mui/material';\nimport FilterAltIcon from '@mui/icons-material/FilterAlt';\nimport CloseIcon from '@mui/icons-material/Close';\nimport { useTranslation } from 'react-i18next';\n\ntype FilterDrawerProps = {\n children: React.ReactNode;\n}\n\nexport const FilterDrawer = ({ children }: FilterDrawerProps) => {\n const [t] = useTranslation();\n const [open, setOpen] = useState(false);\n\n const toggleDrawer = (newOpen: boolean) => () => {\n setOpen(newOpen);\n };\n\n return (\n <>\n <Button onClick={toggleDrawer(true)}>\n <FilterAltIcon />\n </Button>\n <Drawer open={open} onClose={toggleDrawer(false)} anchor=\"right\">\n <Stack direction=\"row\" justifyContent=\"space-between\" alignItems=\"center\">\n <Typography gutterBottom variant=\"h6\" m={2}>\n {t('filters')}\n </Typography>\n <Button onClick={toggleDrawer(false)}>\n <CloseIcon />\n </Button>\n </Stack>\n <Divider />\n {children}\n </Drawer>\n </>\n );\n};\n","import AddIcon from '@mui/icons-material/Add';\nimport { Box, Button, Container, Pagination, Stack, Typography, useMediaQuery } from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport { CategoryFilter, CategoryFilterDropdown } from \"components/Exercises/Filter/CategoryFilter\";\nimport { EquipmentFilter, EquipmentFilterDropdown } from \"components/Exercises/Filter/EquipmentFilter\";\nimport { MuscleFilter, MuscleFilterDropdown } from \"components/Exercises/Filter/MuscleFilter\";\nimport { NameAutocompleter } from \"components/Exercises/Filter/NameAutcompleter\";\nimport { Category } from \"components/Exercises/models/category\";\nimport { Equipment } from \"components/Exercises/models/equipment\";\nimport { Muscle } from \"components/Exercises/models/muscle\";\nimport { ExerciseGrid } from \"components/Exercises/Overview/ExerciseGrid\";\nimport { ExerciseGridSkeleton } from \"components/Exercises/Overview/ExerciseGridLoadingSkeleton\";\n\nimport { useExercisesQuery } from \"components/Exercises/queries\";\nimport React, { useContext, useMemo, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Link, useNavigate } from \"react-router-dom\";\nimport { ExerciseSearchResponse } from \"services/responseType\";\nimport { makeLink, WgerLink } from \"utils/url\";\nimport { ExerciseFiltersContext } from './Filter/ExerciseFiltersContext';\nimport { FilterDrawer } from './Filter/FilterDrawer';\n\nconst ContributeExerciseBanner = () => {\n const [t, i18n] = useTranslation();\n\n return (\n <Box\n marginTop={4}\n padding={4}\n sx={{\n width: \"100%\",\n backgroundColor: \"#ebebeb\",\n textAlign: \"center\",\n }}\n >\n <Typography gutterBottom variant=\"h4\" component=\"div\">\n {t(\"exercises.missingExercise\")}\n </Typography>\n\n <Typography gutterBottom variant=\"body1\" component=\"div\">\n {t(\"exercises.missingExerciseDescription\")}\n </Typography>\n\n <Link to={makeLink(WgerLink.EXERCISE_CONTRIBUTE, i18n.language)}>\n {t(\"exercises.contributeExercise\")}\n </Link>\n </Box>\n );\n};\n\nconst NoResultsBanner = () => {\n const [t] = useTranslation();\n\n return (\n <Box\n marginTop={4}\n padding={4}\n sx={{\n width: \"100%\",\n backgroundColor: \"#ebebeb\",\n textAlign: \"center\",\n }}\n >\n <Typography gutterBottom variant=\"h4\" component=\"div\">\n {t(\"noResults\")}\n </Typography>\n\n <Typography gutterBottom variant=\"body1\" component=\"div\">\n {t(\"noResultsDescription\")}\n </Typography>\n </Box>\n );\n};\n\nexport const ExerciseOverviewList = () => {\n const basesQuery = useExercisesQuery();\n const [t, i18n] = useTranslation();\n const navigate = useNavigate();\n const { selectedCategories, selectedEquipment, selectedMuscles } = useContext(ExerciseFiltersContext);\n const isMobile = useMediaQuery('(max-width:600px)');\n\n const [page, setPage] = React.useState(1);\n const handlePageChange = (event: any, value: number) => {\n setPage(value);\n\n window.scrollTo({\n top: 0,\n behavior: 'smooth'\n });\n };\n\n const filteredExercises = useMemo(() => {\n let filteredExercises = basesQuery.data || [];\n\n // Filter exercise bases by categories\n if (selectedCategories.length > 0) {\n filteredExercises = filteredExercises!.filter(exercise => {\n return selectedCategories.some(\n category => exercise.category.id === category.id\n );\n });\n }\n\n // Filter exercises that have one of the selected equipment\n if (selectedEquipment.length > 0) {\n filteredExercises = filteredExercises!.filter(exercise => {\n return exercise.equipment.some(equipment =>\n selectedEquipment.some(\n selectedEquipment => selectedEquipment.id === equipment.id\n )\n );\n });\n }\n\n // Filter exercises that have one of the selected muscles\n if (selectedMuscles.length > 0) {\n filteredExercises = filteredExercises!.filter(exercise => {\n return exercise.muscles.some(muscle =>\n selectedMuscles.some(selectedMuscle => selectedMuscle.id === muscle.id)\n );\n });\n }\n\n return filteredExercises;\n }, [basesQuery.data, selectedCategories, selectedEquipment, selectedMuscles]);\n\n // Should be a multiple of three, since there are three columns in the grid\n const ITEMS_PER_PAGE = 21;\n\n // Pagination calculations\n const pageCount = Math.ceil(filteredExercises!.length / ITEMS_PER_PAGE);\n const paginatedExercises = filteredExercises!.slice(\n (page - 1) * ITEMS_PER_PAGE,\n page * ITEMS_PER_PAGE\n );\n\n const exerciseAdded = (exerciseResponse: ExerciseSearchResponse | null) => {\n if (!exerciseResponse) {\n return;\n }\n\n navigate(makeLink(WgerLink.EXERCISE_DETAIL, i18n.language, { id: exerciseResponse.data.base_id }));\n };\n\n return (\n (<Container maxWidth=\"lg\">\n <Grid container spacing={2} mt={2}>\n <Grid\n size={{\n xs: 10,\n sm: 6\n }}>\n <Typography gutterBottom variant=\"h3\" component=\"div\">\n {t(\"exercises.exercises\")}\n </Typography>\n </Grid>\n {isMobile ? (\n <>\n <Grid\n size={{\n xs: 2,\n sm: 6\n }}>\n <Button\n variant=\"contained\"\n onClick={() => navigate(makeLink(WgerLink.EXERCISE_CONTRIBUTE, i18n.language))}\n >\n <AddIcon />\n </Button>\n </Grid>\n <Grid\n flexGrow={1}\n size={{\n sm: 6\n }}>\n <NameAutocompleter callback={exerciseAdded} />\n </Grid>\n <Grid\n display=\"flex\"\n justifyContent=\"center\"\n alignItems=\"center\"\n size={{\n xs: 2,\n sm: 6\n }}>\n <FilterDrawer>\n <CategoryFilterDropdown />\n <EquipmentFilterDropdown />\n <MuscleFilterDropdown />\n </FilterDrawer>\n </Grid>\n </>\n ) : (\n <>\n <Grid\n size={{\n xs: 12,\n sm: 3\n }}>\n <NameAutocompleter callback={exerciseAdded} />\n </Grid>\n <Grid\n size={{\n xs: 12,\n sm: 3\n }}>\n <Button\n variant=\"contained\"\n startIcon={<AddIcon />}\n onClick={() => navigate(makeLink(WgerLink.EXERCISE_CONTRIBUTE, i18n.language))}\n >\n {t('exercises.contributeExercise')}\n </Button>\n </Grid>\n </>\n )}\n\n {!isMobile && (\n <Grid\n size={{\n xs: 12,\n sm: 3\n }}>\n <Grid container spacing={1}>\n <Grid\n size={{\n xs: 6,\n sm: 12\n }}>\n <CategoryFilter />\n </Grid>\n\n <Grid\n size={{\n xs: 6,\n sm: 12\n }}>\n <EquipmentFilter />\n </Grid>\n\n <Grid size={12}>\n <MuscleFilter />\n </Grid>\n </Grid>\n </Grid>\n )}\n\n <Grid\n size={{\n xs: 12,\n sm: 9\n }}>\n {basesQuery.isLoading\n ? <ExerciseGridSkeleton />\n : <>\n <ExerciseGrid exercises={paginatedExercises} />\n <Stack spacing={2} alignItems=\"center\" sx={{ mt: 2 }}>\n <Pagination\n count={pageCount}\n color=\"primary\"\n page={page}\n onChange={handlePageChange}\n />\n </Stack>\n </>\n }\n\n <ContributeExerciseBanner />\n </Grid>\n </Grid>\n </Container>)\n );\n};\n\nexport const ExerciseOverview = () => {\n const [selectedEquipment, setSelectedEquipment] = useState<Equipment[]>([]);\n const [selectedMuscles, setSelectedMuscles] = useState<Muscle[]>([]);\n const [selectedCategories, setSelectedCategories] = React.useState<Category[]>([]);\n\n return (\n <ExerciseFiltersContext.Provider value={{\n selectedEquipment,\n setSelectedEquipment,\n selectedMuscles,\n setSelectedMuscles,\n selectedCategories,\n setSelectedCategories\n }}>\n <ExerciseOverviewList />\n </ExerciseFiltersContext.Provider>\n );\n};\n","import ChevronLeftIcon from \"@mui/icons-material/ChevronLeft\";\nimport { Breakpoint, Button, Container, Stack, Typography } from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport React, { ReactElement, ReactNode } from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\ntype WgerTemplateContainerRightSidebarProps = {\n title?: string | ReactElement;\n subTitle?: string | ReactElement;\n mainContent: ReactElement | null;\n sideBar?: ReactElement;\n optionsMenu?: ReactElement;\n backToTitle?: string;\n backToUrl?: string;\n fab?: ReactElement;\n};\n\nfunction BackButton(props: { href: string | undefined, backToTitle: string | undefined }) {\n const { t } = useTranslation();\n\n return <Button\n size=\"small\"\n component=\"a\"\n href={props.href}>\n <ChevronLeftIcon fontSize=\"inherit\" />\n {props.backToTitle ?? t('goBack')}\n </Button>;\n}\n\nexport const WgerContainerRightSidebar = (props: WgerTemplateContainerRightSidebarProps) => {\n const backTo = <BackButton href={props.backToUrl} backToTitle={props.backToTitle} />;\n\n return (\n <Container maxWidth=\"lg\">\n <Grid container spacing={2}>\n <Grid sx={{ mb: 2 }} size={8}>\n <Stack direction=\"row\" justifyContent=\"space-between\" alignItems=\"center\">\n <Stack alignItems=\"start\">\n <Typography variant=\"h3\">\n {props.title}\n </Typography>\n {props.subTitle && <Typography variant=\"h6\">\n {props.subTitle}\n </Typography>}\n {props.backToUrl && backTo}\n </Stack>\n {props.optionsMenu}\n </Stack>\n </Grid>\n\n <Grid size={{ xs: 12, sm: 8 }}>\n {props.mainContent}\n </Grid>\n <Grid size={{ xs: 12, sm: 4 }}>\n {props.sideBar}\n </Grid>\n </Grid>\n {props.fab}\n </Container>\n );\n};\n\ntype WgerTemplateContainerFullWidthProps = {\n title?: string;\n children: ReactNode;\n backToTitle?: string;\n backToUrl?: string;\n optionsMenu?: ReactElement;\n maxWidth?: false | Breakpoint | undefined\n};\n\nexport const WgerContainerFullWidth = (props: WgerTemplateContainerFullWidthProps) => {\n const backTo = <BackButton href={props.backToUrl} backToTitle={props.backToTitle} />;\n\n return (\n <Container maxWidth={props.maxWidth}>\n <Grid container spacing={2}>\n <Grid sx={{ mb: 2 }} size={12}>\n <Stack direction=\"row\" justifyContent=\"space-between\" alignItems=\"center\">\n\n <Stack alignItems=\"start\">\n <Typography variant=\"h3\">\n {props.title}\n </Typography>\n {props.backToUrl && backTo}\n </Stack>\n\n {props.optionsMenu}\n </Stack>\n </Grid>\n\n <Grid size={12}>\n {props.children}\n </Grid>\n </Grid>\n </Container>\n );\n};","import { useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport {\n deleteMeasurementEntry,\n editMeasurementEntry,\n getMeasurementCategories,\n getMeasurementCategory\n} from \"services\";\nimport {\n addMeasurementCategory,\n AddMeasurementCategoryParams,\n addMeasurementEntry,\n AddMeasurementParams,\n deleteMeasurementCategory,\n editMeasurementCategory,\n editMeasurementCategoryParams,\n editMeasurementParams,\n MeasurementQueryOptions\n} from \"services/measurements\";\nimport { QUERY_MEASUREMENTS, QUERY_MEASUREMENTS_CATEGORIES, } from \"utils/consts\";\n\n\nexport function useMeasurementsCategoryQuery(options?: MeasurementQueryOptions) {\n return useQuery({\n queryKey: [QUERY_MEASUREMENTS_CATEGORIES, JSON.stringify(options || {})],\n queryFn: () => getMeasurementCategories(options)\n });\n}\n\nexport const useAddMeasurementCategoryQuery = () => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: AddMeasurementCategoryParams) => addMeasurementCategory(data),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QUERY_MEASUREMENTS_CATEGORIES,]\n })\n });\n};\n\nexport const useEditMeasurementCategoryQuery = (id: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: editMeasurementCategoryParams) => editMeasurementCategory(data),\n onSuccess: () => {\n queryClient.invalidateQueries({\n queryKey: [QUERY_MEASUREMENTS, id]\n });\n queryClient.invalidateQueries({\n queryKey: [QUERY_MEASUREMENTS_CATEGORIES,]\n });\n }\n });\n};\n\nexport const useDeleteMeasurementCategoryQuery = (id: number) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteMeasurementCategory(id),\n onSuccess: () => {\n queryClient.invalidateQueries({\n queryKey: [QUERY_MEASUREMENTS, id]\n });\n queryClient.invalidateQueries({\n queryKey: [QUERY_MEASUREMENTS_CATEGORIES,]\n });\n }\n });\n};\n\n\nexport function useMeasurementsQuery(id: number) {\n return useQuery({\n queryKey: [QUERY_MEASUREMENTS, id],\n queryFn: () => getMeasurementCategory(id)\n });\n}\n\nexport const useAddMeasurementEntryQuery = () => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: AddMeasurementParams) => addMeasurementEntry(data),\n onError: (error: any) => {\n console.log(error);\n // toast.error(error.message);\n },\n onSuccess: () => {\n queryClient.invalidateQueries({\n queryKey: [QUERY_MEASUREMENTS,]\n });\n queryClient.invalidateQueries({\n queryKey: [QUERY_MEASUREMENTS_CATEGORIES,]\n });\n }\n });\n};\n\nexport const useEditMeasurementEntryQuery = () => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: editMeasurementParams) => editMeasurementEntry(data),\n onSuccess: () => {\n queryClient.invalidateQueries({\n queryKey: [QUERY_MEASUREMENTS,]\n });\n queryClient.invalidateQueries({\n queryKey: [QUERY_MEASUREMENTS_CATEGORIES,]\n });\n }\n });\n};\n\nexport const useDeleteMeasurementsQuery = (/*id: number*/) => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (id: number) => deleteMeasurementEntry(id),\n onSuccess: () => queryClient.invalidateQueries({\n queryKey: [QUERY_MEASUREMENTS,]\n })\n });\n};\n","'use client';\n\nimport * as React from 'react';\nexport const GridApiContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== 'production') {\n GridApiContext.displayName = 'GridApiContext';\n}","import * as React from 'react';\nimport { GridApiContext } from \"../../components/GridApiContext.js\";\nexport function useGridApiContext() {\n const apiRef = React.useContext(GridApiContext);\n if (apiRef === undefined) {\n throw new Error(['MUI X: Could not find the Data Grid context.', 'It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.', 'This can also happen if you are bundling multiple versions of the Data Grid.'].join('\\n'));\n }\n return apiRef;\n}","'use client';\n\nimport * as React from 'react';\nconst GridRootPropsContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== 'production') {\n GridRootPropsContext.displayName = 'GridRootPropsContext';\n}\nexport { GridRootPropsContext };","import * as React from 'react';\nimport { GridRootPropsContext } from \"../../context/GridRootPropsContext.js\";\nexport const useGridRootProps = () => {\n const contextValue = React.useContext(GridRootPropsContext);\n if (!contextValue) {\n throw new Error('MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.');\n }\n return contextValue;\n};","import * as React from 'react';\nexport default parseInt(React.version, 10);","import * as React from 'react';\nimport reactMajor from \"../reactMajor/index.js\";\n\n// Compatibility shim that ensures stable props object for forwardRef components\n// Fixes https://github.com/facebook/react/issues/31613\n// We ensure that the ref is always present in the props object (even if that's not the case for older versions of React) to avoid the footgun of spreading props over the ref in the newer versions of React.\n// Footgun: <Component ref={ref} {...props} /> will break past React 19, but the types will now warn us that we should use <Component {...props} ref={ref} /> instead.\nexport const forwardRef = render => {\n if (reactMajor >= 19) {\n const Component = props => render(props, props.ref ?? null);\n Component.displayName = render.displayName ?? render.name;\n return Component;\n }\n return /*#__PURE__*/React.forwardRef(render);\n};","const is = Object.is;\n\n/**\n * Fast shallow compare for objects.\n * @returns true if objects are equal.\n */\nexport function fastObjectShallowCompare(a, b) {\n if (a === b) {\n return true;\n }\n if (!(a instanceof Object) || !(b instanceof Object)) {\n return false;\n }\n let aLength = 0;\n let bLength = 0;\n\n /* eslint-disable guard-for-in */\n for (const key in a) {\n aLength += 1;\n if (!is(a[key], b[key])) {\n return false;\n }\n if (!(key in b)) {\n return false;\n }\n }\n\n /* eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-unused-vars */\n for (const _ in b) {\n bLength += 1;\n }\n return aLength === bLength;\n}","import * as React from 'react';\nimport { fastObjectShallowCompare } from '@mui/x-internals/fastObjectShallowCompare';\nimport { warnOnce } from '@mui/x-internals/warning';\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { useLazyRef } from \"./useLazyRef.js\";\nconst defaultCompare = Object.is;\nexport const objectShallowCompare = fastObjectShallowCompare;\nconst arrayShallowCompare = (a, b) => {\n if (a === b) {\n return true;\n }\n return a.length === b.length && a.every((v, i) => v === b[i]);\n};\nexport const argsEqual = (prev, curr) => {\n let fn = Object.is;\n if (curr instanceof Array) {\n fn = arrayShallowCompare;\n } else if (curr instanceof Object) {\n fn = objectShallowCompare;\n }\n return fn(prev, curr);\n};\nconst createRefs = () => ({\n state: null,\n equals: null,\n selector: null,\n args: undefined\n});\nconst EMPTY = [];\nconst emptyGetSnapshot = () => null;\nexport const useGridSelector = (apiRef, selector, args = undefined, equals = defaultCompare) => {\n if (process.env.NODE_ENV !== 'production') {\n if (!apiRef.current.state) {\n warnOnce(['MUI X: `useGridSelector` has been called before the initialization of the state.', 'This hook can only be used inside the context of the grid.']);\n }\n }\n const refs = useLazyRef(createRefs);\n const didInit = refs.current.selector !== null;\n const [state, setState] = React.useState(\n // We don't use an initialization function to avoid allocations\n didInit ? null : selector(apiRef, args));\n refs.current.state = state;\n refs.current.equals = equals;\n refs.current.selector = selector;\n const prevArgs = refs.current.args;\n refs.current.args = args;\n if (didInit && !argsEqual(prevArgs, args)) {\n const newState = refs.current.selector(apiRef, refs.current.args);\n if (!refs.current.equals(refs.current.state, newState)) {\n refs.current.state = newState;\n setState(newState);\n }\n }\n const subscribe = React.useCallback(() => {\n if (refs.current.subscription) {\n return null;\n }\n refs.current.subscription = apiRef.current.store.subscribe(() => {\n const newState = refs.current.selector(apiRef, refs.current.args);\n if (!refs.current.equals(refs.current.state, newState)) {\n refs.current.state = newState;\n setState(newState);\n }\n });\n return null;\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n EMPTY);\n const unsubscribe = React.useCallback(() => {\n return () => {\n if (refs.current.subscription) {\n refs.current.subscription();\n refs.current.subscription = undefined;\n }\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, EMPTY);\n useSyncExternalStore(unsubscribe, subscribe, emptyGetSnapshot);\n return state;\n};","// Original source:\n// - https://github.com/reduxjs/reselect/blob/1c3fc05f041d32cd69c11a7f7deccf0bce6f4598/src/weakMapMemoize.ts\n\nclass StrongRef {\n constructor(value) {\n this.value = value;\n }\n deref() {\n return this.value;\n }\n}\nconst getWeakRef = () => typeof WeakRef === 'undefined' ? StrongRef : WeakRef;\nconst Ref = /** @__PURE__ */getWeakRef();\nconst UNTERMINATED = 0;\nconst TERMINATED = 1;\nfunction createCacheNode() {\n return {\n s: UNTERMINATED,\n v: undefined,\n o: null,\n p: null\n };\n}\n/**\n * Derefences the argument if it is a Ref. Else if it is a value already, return it.\n *\n * @param r - the object to maybe deref\n * @returns The derefenced value if the argument is a Ref, else the argument value itself.\n */\nfunction maybeDeref(r) {\n if (r instanceof Ref) {\n return r.deref();\n }\n return r;\n}\n\n/**\n * Inspired by the `weakMapMemoize` function from the `reselect` library.\n *\n * @see {@link https://github.com/reduxjs/reselect/blob/1c3fc05f041d32cd69c11a7f7deccf0bce6f4598/src/weakMapMemoize.ts `original source code`}\n * @see {@link https://reselect.js.org/api/weakMapMemoize `weakMapMemoize api docs`}\n */\nexport function weakMapMemoize(func, options = {}) {\n let fnNode = createCacheNode();\n const {\n resultEqualityCheck\n } = options;\n let lastResult;\n let resultsCount = 0;\n function memoized() {\n let cacheNode = fnNode;\n // eslint-disable-next-line prefer-rest-params\n const {\n length\n } = arguments;\n for (let i = 0, l = length; i < l; i += 1) {\n // eslint-disable-next-line prefer-rest-params\n let arg = arguments[i];\n if (typeof arg === 'function' || typeof arg === 'object' && arg !== null) {\n // Following logic is added over the original `weakMapMemoize` to support the proper memoization of the `GridApiRef`\n if ('current' in arg && 'instanceId' in arg.current) {\n arg = arg.current.state;\n }\n // Objects go into a WeakMap\n let objectCache = cacheNode.o;\n if (objectCache === null) {\n objectCache = new WeakMap();\n cacheNode.o = objectCache;\n }\n const objectNode = objectCache.get(arg);\n if (objectNode === undefined) {\n cacheNode = createCacheNode();\n objectCache.set(arg, cacheNode);\n } else {\n cacheNode = objectNode;\n }\n } else {\n // Primitives go into a regular Map\n let primitiveCache = cacheNode.p;\n if (primitiveCache === null) {\n primitiveCache = new Map();\n cacheNode.p = primitiveCache;\n }\n const primitiveNode = primitiveCache.get(arg);\n if (primitiveNode === undefined) {\n cacheNode = createCacheNode();\n primitiveCache.set(arg, cacheNode);\n } else {\n cacheNode = primitiveNode;\n }\n }\n }\n const terminatedNode = cacheNode;\n let result;\n if (cacheNode.s === TERMINATED) {\n result = cacheNode.v;\n } else {\n // Allow errors to propagate\n // eslint-disable-next-line prefer-spread, prefer-rest-params\n result = func.apply(null, arguments);\n resultsCount += 1;\n if (resultEqualityCheck) {\n // Deref lastResult if it is a Ref\n const lastResultValue = maybeDeref(lastResult);\n if (lastResultValue != null && resultEqualityCheck(lastResultValue, result)) {\n result = lastResultValue;\n if (resultsCount !== 0) {\n resultsCount -= 1;\n }\n }\n const needsWeakRef = typeof result === 'object' && result !== null || typeof result === 'function';\n lastResult = needsWeakRef ? /** @__PURE__ */new Ref(result) : result;\n }\n }\n terminatedNode.s = TERMINATED;\n terminatedNode.v = result;\n return result;\n }\n memoized.clearCache = () => {\n fnNode = createCacheNode();\n memoized.resetResultsCount();\n };\n memoized.resultsCount = () => resultsCount;\n memoized.resetResultsCount = () => {\n resultsCount = 0;\n };\n return memoized;\n}","import { lruMemoize, createSelectorCreator } from 'reselect';\nimport { argsEqual } from \"../hooks/utils/useGridSelector.js\";\nimport { weakMapMemoize as customWeakMapMemoize } from \"./weakMapMemoize.js\";\nconst reselectCreateSelector = createSelectorCreator({\n memoize: lruMemoize,\n memoizeOptions: {\n maxSize: 1,\n equalityCheck: Object.is\n },\n argsMemoize: customWeakMapMemoize\n});\nconst cache = new WeakMap();\nexport const createSelector = (a, b, c, d, e, f, ...other) => {\n if (other.length > 0) {\n throw new Error('Unsupported number of selectors');\n }\n let selector;\n\n // eslint-disable-next-line id-denylist\n if (a && b && c && d && e && f) {\n selector = (apiRef, args) => {\n const va = a(apiRef, args);\n const vb = b(apiRef, args);\n const vc = c(apiRef, args);\n const vd = d(apiRef, args);\n const ve = e(apiRef, args);\n return f(va, vb, vc, vd, ve, args);\n };\n // eslint-disable-next-line id-denylist\n } else if (a && b && c && d && e) {\n selector = (apiRef, args) => {\n const va = a(apiRef, args);\n const vb = b(apiRef, args);\n const vc = c(apiRef, args);\n const vd = d(apiRef, args);\n return e(va, vb, vc, vd, args);\n };\n } else if (a && b && c && d) {\n selector = (apiRef, args) => {\n const va = a(apiRef, args);\n const vb = b(apiRef, args);\n const vc = c(apiRef, args);\n return d(va, vb, vc, args);\n };\n } else if (a && b && c) {\n selector = (apiRef, args) => {\n const va = a(apiRef, args);\n const vb = b(apiRef, args);\n return c(va, vb, args);\n };\n } else if (a && b) {\n selector = (apiRef, args) => {\n const va = a(apiRef, args);\n return b(va, args);\n };\n } else {\n throw new Error('Missing arguments');\n }\n return selector;\n};\n\n/**\n * Used to create the root selector for a feature. It assumes that the state is already initialized\n * and strips from the types the possibility of `apiRef` being `null`.\n * Users are warned about this in our documentation https://mui.com/x/react-data-grid/state/#direct-selector-access\n */\nexport const createRootSelector = fn => (apiRef, args) => fn(apiRef.current.state, args);\nexport const createSelectorMemoized = (...args) => {\n const selector = (apiRef, selectorArgs) => {\n const cacheKey = apiRef.current.instanceId;\n const cacheArgsInit = cache.get(cacheKey);\n const cacheArgs = cacheArgsInit ?? new Map();\n const cacheFn = cacheArgs.get(args);\n if (cacheArgs && cacheFn) {\n if (!argsEqual(cacheFn.selectorArgs, selectorArgs)) {\n const reselectArgs = selectorArgs !== undefined ? [...args.slice(0, args.length - 1), () => selectorArgs, args[args.length - 1]] : args;\n const fn = reselectCreateSelector(...reselectArgs);\n fn.selectorArgs = selectorArgs;\n cacheArgs.set(args, fn);\n return fn(apiRef, selectorArgs);\n }\n return cacheFn(apiRef, selectorArgs);\n }\n const reselectArgs = selectorArgs !== undefined ? [...args.slice(0, args.length - 1), () => selectorArgs, args[args.length - 1]] : args;\n const fn = reselectCreateSelector(...reselectArgs);\n fn.selectorArgs = selectorArgs;\n if (!cacheArgsInit) {\n cache.set(cacheKey, cacheArgs);\n }\n cacheArgs.set(args, fn);\n return fn(apiRef, selectorArgs);\n };\n return selector;\n};","import { createSelector, createRootSelector } from \"../../../utils/createSelector.js\";\nexport const gridDimensionsSelector = createRootSelector(state => state.dimensions);\n\n/**\n * Get the summed width of all the visible columns.\n * @category Visible Columns\n */\nexport const gridColumnsTotalWidthSelector = createSelector(gridDimensionsSelector, dimensions => dimensions.columnsTotalWidth);\nexport const gridRowHeightSelector = createSelector(gridDimensionsSelector, dimensions => dimensions.rowHeight);\nexport const gridContentHeightSelector = createSelector(gridDimensionsSelector, dimensions => dimensions.contentSize.height);\nexport const gridHasScrollXSelector = createSelector(gridDimensionsSelector, dimensions => dimensions.hasScrollX);\nexport const gridHasScrollYSelector = createSelector(gridDimensionsSelector, dimensions => dimensions.hasScrollY);\nexport const gridHasFillerSelector = createSelector(gridDimensionsSelector, dimensions => dimensions.columnsTotalWidth < dimensions.viewportOuterSize.width);\nexport const gridHeaderHeightSelector = createSelector(gridDimensionsSelector, dimensions => dimensions.headerHeight);\nexport const gridGroupHeaderHeightSelector = createSelector(gridDimensionsSelector, dimensions => dimensions.groupHeaderHeight);\nexport const gridHeaderFilterHeightSelector = createSelector(gridDimensionsSelector, dimensions => dimensions.headerFilterHeight);\nexport const gridHorizontalScrollbarHeightSelector = createSelector(gridDimensionsSelector, dimensions => dimensions.hasScrollX ? dimensions.scrollbarSize : 0);\nexport const gridVerticalScrollbarWidthSelector = createSelector(gridDimensionsSelector, dimensions => dimensions.hasScrollY ? dimensions.scrollbarSize : 0);\nexport const gridHasBottomFillerSelector = createSelector(gridDimensionsSelector, gridHorizontalScrollbarHeightSelector, (dimensions, height) => {\n const needsLastRowBorder = dimensions.viewportOuterSize.height - dimensions.minimumSize.height > 0;\n if (height === 0 && !needsLastRowBorder) {\n return false;\n }\n return true;\n});","import * as React from 'react';\nimport { fastObjectShallowCompare } from \"../fastObjectShallowCompare/index.js\";\nexport function fastMemo(component) {\n return /*#__PURE__*/React.memo(component, fastObjectShallowCompare);\n}","export const GRID_DEFAULT_LOCALE_TEXT = {\n // Root\n noRowsLabel: 'No rows',\n noResultsOverlayLabel: 'No results found.',\n noColumnsOverlayLabel: 'No columns',\n noColumnsOverlayManageColumns: 'Manage columns',\n emptyPivotOverlayLabel: 'Add fields to rows, columns, and values to create a pivot table',\n // Density selector toolbar button text\n toolbarDensity: 'Density',\n toolbarDensityLabel: 'Density',\n toolbarDensityCompact: 'Compact',\n toolbarDensityStandard: 'Standard',\n toolbarDensityComfortable: 'Comfortable',\n // Columns selector toolbar button text\n toolbarColumns: 'Columns',\n toolbarColumnsLabel: 'Select columns',\n // Filters toolbar button text\n toolbarFilters: 'Filters',\n toolbarFiltersLabel: 'Show filters',\n toolbarFiltersTooltipHide: 'Hide filters',\n toolbarFiltersTooltipShow: 'Show filters',\n toolbarFiltersTooltipActive: count => count !== 1 ? `${count} active filters` : `${count} active filter`,\n // Quick filter toolbar field\n toolbarQuickFilterPlaceholder: 'Search…',\n toolbarQuickFilterLabel: 'Search',\n toolbarQuickFilterDeleteIconLabel: 'Clear',\n // Export selector toolbar button text\n toolbarExport: 'Export',\n toolbarExportLabel: 'Export',\n toolbarExportCSV: 'Download as CSV',\n toolbarExportPrint: 'Print',\n toolbarExportExcel: 'Download as Excel',\n // Toolbar pivot button\n toolbarPivot: 'Pivot',\n // Toolbar AI Assistant button\n toolbarAssistant: 'AI Assistant',\n // Columns management text\n columnsManagementSearchTitle: 'Search',\n columnsManagementNoColumns: 'No columns',\n columnsManagementShowHideAllText: 'Show/Hide All',\n columnsManagementReset: 'Reset',\n columnsManagementDeleteIconLabel: 'Clear',\n // Filter panel text\n filterPanelAddFilter: 'Add filter',\n filterPanelRemoveAll: 'Remove all',\n filterPanelDeleteIconLabel: 'Delete',\n filterPanelLogicOperator: 'Logic operator',\n filterPanelOperator: 'Operator',\n filterPanelOperatorAnd: 'And',\n filterPanelOperatorOr: 'Or',\n filterPanelColumns: 'Columns',\n filterPanelInputLabel: 'Value',\n filterPanelInputPlaceholder: 'Filter value',\n // Filter operators text\n filterOperatorContains: 'contains',\n filterOperatorDoesNotContain: 'does not contain',\n filterOperatorEquals: 'equals',\n filterOperatorDoesNotEqual: 'does not equal',\n filterOperatorStartsWith: 'starts with',\n filterOperatorEndsWith: 'ends with',\n filterOperatorIs: 'is',\n filterOperatorNot: 'is not',\n filterOperatorAfter: 'is after',\n filterOperatorOnOrAfter: 'is on or after',\n filterOperatorBefore: 'is before',\n filterOperatorOnOrBefore: 'is on or before',\n filterOperatorIsEmpty: 'is empty',\n filterOperatorIsNotEmpty: 'is not empty',\n filterOperatorIsAnyOf: 'is any of',\n 'filterOperator=': '=',\n 'filterOperator!=': '!=',\n 'filterOperator>': '>',\n 'filterOperator>=': '>=',\n 'filterOperator<': '<',\n 'filterOperator<=': '<=',\n // Header filter operators text\n headerFilterOperatorContains: 'Contains',\n headerFilterOperatorDoesNotContain: 'Does not contain',\n headerFilterOperatorEquals: 'Equals',\n headerFilterOperatorDoesNotEqual: 'Does not equal',\n headerFilterOperatorStartsWith: 'Starts with',\n headerFilterOperatorEndsWith: 'Ends with',\n headerFilterOperatorIs: 'Is',\n headerFilterOperatorNot: 'Is not',\n headerFilterOperatorAfter: 'Is after',\n headerFilterOperatorOnOrAfter: 'Is on or after',\n headerFilterOperatorBefore: 'Is before',\n headerFilterOperatorOnOrBefore: 'Is on or before',\n headerFilterOperatorIsEmpty: 'Is empty',\n headerFilterOperatorIsNotEmpty: 'Is not empty',\n headerFilterOperatorIsAnyOf: 'Is any of',\n 'headerFilterOperator=': 'Equals',\n 'headerFilterOperator!=': 'Not equals',\n 'headerFilterOperator>': 'Greater than',\n 'headerFilterOperator>=': 'Greater than or equal to',\n 'headerFilterOperator<': 'Less than',\n 'headerFilterOperator<=': 'Less than or equal to',\n headerFilterClear: 'Clear filter',\n // Filter values text\n filterValueAny: 'any',\n filterValueTrue: 'true',\n filterValueFalse: 'false',\n // Column menu text\n columnMenuLabel: 'Menu',\n columnMenuAriaLabel: columnName => `${columnName} column menu`,\n columnMenuShowColumns: 'Show columns',\n columnMenuManageColumns: 'Manage columns',\n columnMenuFilter: 'Filter',\n columnMenuHideColumn: 'Hide column',\n columnMenuUnsort: 'Unsort',\n columnMenuSortAsc: 'Sort by ASC',\n columnMenuSortDesc: 'Sort by DESC',\n columnMenuManagePivot: 'Manage pivot',\n // Column header text\n columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} active filters` : `${count} active filter`,\n columnHeaderFiltersLabel: 'Show filters',\n columnHeaderSortIconLabel: 'Sort',\n // Rows selected footer text\n footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} rows selected` : `${count.toLocaleString()} row selected`,\n // Total row amount footer text\n footerTotalRows: 'Total Rows:',\n // Total visible row amount footer text\n footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} of ${totalCount.toLocaleString()}`,\n // Checkbox selection text\n checkboxSelectionHeaderName: 'Checkbox selection',\n checkboxSelectionSelectAllRows: 'Select all rows',\n checkboxSelectionUnselectAllRows: 'Unselect all rows',\n checkboxSelectionSelectRow: 'Select row',\n checkboxSelectionUnselectRow: 'Unselect row',\n // Boolean cell text\n booleanCellTrueLabel: 'yes',\n booleanCellFalseLabel: 'no',\n // Actions cell more text\n actionsCellMore: 'more',\n // Column pinning text\n pinToLeft: 'Pin to left',\n pinToRight: 'Pin to right',\n unpin: 'Unpin',\n // Tree Data\n treeDataGroupingHeaderName: 'Group',\n treeDataExpand: 'see children',\n treeDataCollapse: 'hide children',\n // Grouping columns\n groupingColumnHeaderName: 'Group',\n groupColumn: name => `Group by ${name}`,\n unGroupColumn: name => `Stop grouping by ${name}`,\n // Master/detail\n detailPanelToggle: 'Detail panel toggle',\n expandDetailPanel: 'Expand',\n collapseDetailPanel: 'Collapse',\n // Pagination\n paginationRowsPerPage: 'Rows per page:',\n paginationDisplayedRows: ({\n from,\n to,\n count,\n estimated\n }) => {\n if (!estimated) {\n return `${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`;\n }\n const estimatedLabel = estimated && estimated > to ? `around ${estimated}` : `more than ${to}`;\n return `${from}–${to} of ${count !== -1 ? count : estimatedLabel}`;\n },\n paginationItemAriaLabel: type => {\n if (type === 'first') {\n return 'Go to first page';\n }\n if (type === 'last') {\n return 'Go to last page';\n }\n if (type === 'next') {\n return 'Go to next page';\n }\n // if (type === 'previous') {\n return 'Go to previous page';\n },\n // Row reordering text\n rowReorderingHeaderName: 'Row reordering',\n // Aggregation\n aggregationMenuItemHeader: 'Aggregation',\n aggregationFunctionLabelSum: 'sum',\n aggregationFunctionLabelAvg: 'avg',\n aggregationFunctionLabelMin: 'min',\n aggregationFunctionLabelMax: 'max',\n aggregationFunctionLabelSize: 'size',\n // Pivot panel\n pivotToggleLabel: 'Pivot',\n pivotRows: 'Rows',\n pivotColumns: 'Columns',\n pivotValues: 'Values',\n pivotCloseButton: 'Close pivot settings',\n pivotSearchButton: 'Search fields',\n pivotSearchControlPlaceholder: 'Search fields',\n pivotSearchControlLabel: 'Search fields',\n pivotSearchControlClear: 'Clear search',\n pivotNoFields: 'No fields',\n pivotMenuMoveUp: 'Move up',\n pivotMenuMoveDown: 'Move down',\n pivotMenuMoveToTop: 'Move to top',\n pivotMenuMoveToBottom: 'Move to bottom',\n pivotMenuRows: 'Rows',\n pivotMenuColumns: 'Columns',\n pivotMenuValues: 'Values',\n pivotMenuOptions: 'Field options',\n pivotMenuAddToRows: 'Add to Rows',\n pivotMenuAddToColumns: 'Add to Columns',\n pivotMenuAddToValues: 'Add to Values',\n pivotMenuRemove: 'Remove',\n pivotDragToRows: 'Drag here to create rows',\n pivotDragToColumns: 'Drag here to create columns',\n pivotDragToValues: 'Drag here to create values',\n pivotYearColumnHeaderName: '(Year)',\n pivotQuarterColumnHeaderName: '(Quarter)',\n // AI Assistant panel\n aiAssistantPanelTitle: 'AI Assistant',\n aiAssistantPanelClose: 'Close AI Assistant',\n aiAssistantPanelNewConversation: 'New conversation',\n aiAssistantPanelConversationHistory: 'Conversation history',\n aiAssistantPanelEmptyConversation: 'No prompt history',\n aiAssistantSuggestions: 'Suggestions',\n // Prompt field\n promptFieldLabel: 'Prompt',\n promptFieldPlaceholder: 'Type a prompt…',\n promptFieldPlaceholderWithRecording: 'Type or record a prompt…',\n promptFieldPlaceholderListening: 'Listening for prompt…',\n promptFieldSpeechRecognitionNotSupported: 'Speech recognition is not supported in this browser',\n promptFieldSend: 'Send',\n promptFieldRecord: 'Record',\n promptFieldStopRecording: 'Stop recording',\n // Prompt\n promptRerun: 'Run again',\n promptProcessing: 'Processing…',\n promptAppliedChanges: 'Applied changes',\n // Prompt changes\n promptChangeGroupDescription: column => `Group by ${column}`,\n promptChangeAggregationLabel: (column, aggregation) => `${column} (${aggregation})`,\n promptChangeAggregationDescription: (column, aggregation) => `Aggregate ${column} (${aggregation})`,\n promptChangeFilterLabel: (column, operator, value) => {\n if (operator === 'is any of') {\n return `${column} is any of: ${value}`;\n }\n return `${column} ${operator} ${value}`;\n },\n promptChangeFilterDescription: (column, operator, value) => {\n if (operator === 'is any of') {\n return `Filter where ${column} is any of: ${value}`;\n }\n return `Filter where ${column} ${operator} ${value}`;\n },\n promptChangeSortDescription: (column, direction) => `Sort by ${column} (${direction})`,\n promptChangePivotEnableLabel: 'Pivot',\n promptChangePivotEnableDescription: 'Enable pivot',\n promptChangePivotColumnsLabel: count => `Columns (${count})`,\n promptChangePivotColumnsDescription: (column, direction) => `${column}${direction ? ` (${direction})` : ''}`,\n promptChangePivotRowsLabel: count => `Rows (${count})`,\n promptChangePivotValuesLabel: count => `Values (${count})`,\n promptChangePivotValuesDescription: (column, aggregation) => `${column} (${aggregation})`\n};","import { unstable_generateUtilityClasses as generateUtilityClasses, unstable_generateUtilityClass as generateUtilityClass } from '@mui/utils';\nexport function getDataGridUtilityClass(slot) {\n return generateUtilityClass('MuiDataGrid', slot);\n}\nexport const gridClasses = generateUtilityClasses('MuiDataGrid', ['aiAssistantPanel', 'aiAssistantPanelHeader', 'aiAssistantPanelTitleContainer', 'aiAssistantPanelTitle', 'aiAssistantPanelBody', 'aiAssistantPanelEmptyText', 'aiAssistantPanelFooter', 'aiAssistantPanelConversation', 'aiAssistantPanelConversationList', 'aiAssistantPanelConversationTitle', 'aiAssistantPanelSuggestions', 'aiAssistantPanelSuggestionsList', 'aiAssistantPanelSuggestionsItem', 'aiAssistantPanelSuggestionsLabel', 'actionsCell', 'aggregationColumnHeader', 'aggregationColumnHeader--alignLeft', 'aggregationColumnHeader--alignCenter', 'aggregationColumnHeader--alignRight', 'aggregationColumnHeaderLabel', 'aggregationRowOverlayWrapper', 'autoHeight', 'autosizing', 'mainContent', 'withSidePanel', 'booleanCell', 'cell--editable', 'cell--editing', 'cell--flex', 'cell--textCenter', 'cell--textLeft', 'cell--textRight', 'cell--rangeTop', 'cell--rangeBottom', 'cell--rangeLeft', 'cell--rangeRight', 'cell--pinnedLeft', 'cell--pinnedRight', 'cell--selectionMode', 'cell', 'cellCheckbox', 'cellEmpty', 'cellSkeleton', 'cellOffsetLeft', 'checkboxInput', 'collapsible', 'collapsibleTrigger', 'collapsibleIcon', 'collapsiblePanel', 'columnHeader', 'columnHeader--alignCenter', 'columnHeader--alignLeft', 'columnHeader--alignRight', 'columnHeader--dragging', 'columnHeader--moving', 'columnHeader--numeric', 'columnHeader--sortable', 'columnHeader--sorted', 'columnHeader--filtered', 'columnHeader--pinnedLeft', 'columnHeader--pinnedRight', 'columnHeader--last', 'columnHeader--lastUnpinned', 'columnHeader--siblingFocused', 'columnHeader--filter', 'columnHeaderFilterInput', 'columnHeaderFilterOperatorLabel', 'columnHeaderCheckbox', 'columnHeaderDraggableContainer', 'columnHeaderTitle', 'columnHeaderTitleContainer', 'columnHeaderTitleContainerContent', 'columnHeader--filledGroup', 'columnHeader--emptyGroup', 'columnHeaders', 'columnSeparator--resizable', 'columnSeparator--resizing', 'columnSeparator--sideLeft', 'columnSeparator--sideRight', 'columnSeparator', 'columnsManagement', 'columnsManagementRow', 'columnsManagementHeader', 'columnsManagementSearchInput', 'columnsManagementFooter', 'columnsManagementScrollArea', 'columnsManagementEmptyText', 'container--top', 'container--bottom', 'detailPanel', 'detailPanelToggleCell', 'detailPanelToggleCell--expanded', 'footerCell', 'panel', 'panelHeader', 'panelWrapper', 'panelContent', 'panelFooter', 'paper', 'editBooleanCell', 'editInputCell', 'filler', 'filler--borderBottom', 'filler--pinnedLeft', 'filler--pinnedRight', 'filterForm', 'filterFormDeleteIcon', 'filterFormLogicOperatorInput', 'filterFormColumnInput', 'filterFormOperatorInput', 'filterFormValueInput', 'filterIcon', 'footerContainer', 'headerFilterRow', 'iconButtonContainer', 'iconSeparator', 'main', 'main--hasPinnedRight', 'main--hiddenContent', 'menu', 'menuIcon', 'menuIconButton', 'menuOpen', 'menuList', 'overlay', 'overlayWrapper', 'overlayWrapperInner', 'root', 'root--densityStandard', 'root--densityComfortable', 'root--densityCompact', 'root--disableUserSelection', 'root--noToolbar', 'row', 'row--editable', 'row--editing', 'row--firstVisible', 'row--lastVisible', 'row--dragging', 'row--dynamicHeight', 'row--detailPanelExpanded', 'row--borderBottom', 'rowReorderCellPlaceholder', 'rowCount', 'rowReorderCellContainer', 'rowReorderCell', 'rowReorderCell--draggable', 'rowSkeleton', 'scrollArea--left', 'scrollArea--right', 'scrollArea', 'scrollbar', 'scrollbar--vertical', 'scrollbar--horizontal', 'scrollbarFiller', 'scrollbarFiller--header', 'scrollbarFiller--borderTop', 'scrollbarFiller--borderBottom', 'scrollbarFiller--pinnedRight', 'selectedRowCount', 'sortButton', 'sortIcon', 'shadowScrollArea', 'sidebar', 'sidebarHeader', 'toolbarContainer', 'toolbar', 'toolbarLabel', 'toolbarDivider', 'toolbarFilterList', 'toolbarQuickFilter', 'toolbarQuickFilterTrigger', 'toolbarQuickFilterControl', 'virtualScroller', 'virtualScroller--hasScrollX', 'virtualScrollerContent', 'virtualScrollerContent--overflowed', 'virtualScrollerRenderZone', 'withVerticalBorder', 'withBorderColor', 'cell--withRightBorder', 'cell--withLeftBorder', 'columnHeader--withRightBorder', 'columnHeader--withLeftBorder', 'treeDataGroupingCell', 'treeDataGroupingCellToggle', 'treeDataGroupingCellLoadingContainer', 'groupingCriteriaCell', 'groupingCriteriaCellToggle', 'groupingCriteriaCellLoadingContainer', 'pinnedRows', 'pinnedRows--top', 'pinnedRows--bottom', 'pivotPanelAvailableFields', 'pivotPanelField', 'pivotPanelField--sorted', 'pivotPanelFieldActionContainer', 'pivotPanelFieldCheckbox', 'pivotPanelFieldDragIcon', 'pivotPanelFieldList', 'pivotPanelFieldName', 'pivotPanelHeader', 'pivotPanelPlaceholder', 'pivotPanelScrollArea', 'pivotPanelSearchContainer', 'pivotPanelSection', 'pivotPanelSectionTitle', 'pivotPanelSections', 'pivotPanelSwitch', 'pivotPanelSwitchLabel', 'prompt', 'promptContent', 'promptText', 'promptFeedback', 'promptChangeList', 'promptChangesToggle', 'promptChangesToggleIcon', 'promptIcon', 'promptIconContainer', 'promptError', 'promptAction']);","/**\n * Signal to the underlying logic what version of the public component API\n * of the Data Grid is exposed.\n */\nexport let GridSignature = /*#__PURE__*/function (GridSignature) {\n GridSignature[\"DataGrid\"] = \"DataGrid\";\n GridSignature[\"DataGridPro\"] = \"DataGridPro\";\n GridSignature[\"DataGridPremium\"] = \"DataGridPremium\";\n return GridSignature;\n}({});","// If no effect ran after this amount of time, we assume that the render was not committed by React\nconst CLEANUP_TIMER_LOOP_MILLIS = 1000;\nexport class TimerBasedCleanupTracking {\n constructor(timeout = CLEANUP_TIMER_LOOP_MILLIS) {\n this.timeouts = new Map();\n this.cleanupTimeout = CLEANUP_TIMER_LOOP_MILLIS;\n this.cleanupTimeout = timeout;\n }\n register(object, unsubscribe, unregisterToken) {\n if (!this.timeouts) {\n this.timeouts = new Map();\n }\n const timeout = setTimeout(() => {\n if (typeof unsubscribe === 'function') {\n unsubscribe();\n }\n this.timeouts.delete(unregisterToken.cleanupToken);\n }, this.cleanupTimeout);\n this.timeouts.set(unregisterToken.cleanupToken, timeout);\n }\n unregister(unregisterToken) {\n const timeout = this.timeouts.get(unregisterToken.cleanupToken);\n if (timeout) {\n this.timeouts.delete(unregisterToken.cleanupToken);\n clearTimeout(timeout);\n }\n }\n reset() {\n if (this.timeouts) {\n this.timeouts.forEach((value, key) => {\n this.unregister({\n cleanupToken: key\n });\n });\n this.timeouts = undefined;\n }\n }\n}","export class FinalizationRegistryBasedCleanupTracking {\n constructor() {\n this.registry = new FinalizationRegistry(unsubscribe => {\n if (typeof unsubscribe === 'function') {\n unsubscribe();\n }\n });\n }\n register(object, unsubscribe, unregisterToken) {\n this.registry.register(object, unsubscribe, unregisterToken);\n }\n unregister(unregisterToken) {\n this.registry.unregister(unregisterToken);\n }\n\n // eslint-disable-next-line class-methods-use-this\n reset() {}\n}","import * as React from 'react';\nimport { TimerBasedCleanupTracking } from \"../../utils/cleanupTracking/TimerBasedCleanupTracking.js\";\nimport { FinalizationRegistryBasedCleanupTracking } from \"../../utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js\";\n// Based on https://github.com/Bnaya/use-dispose-uncommitted/blob/main/src/finalization-registry-based-impl.ts\n// Check https://github.com/facebook/react/issues/15317 to get more information\n\n// We use class to make it easier to detect in heap snapshots by name\nclass ObjectToBeRetainedByReact {\n static create() {\n return new ObjectToBeRetainedByReact();\n }\n}\nconst registryContainer = {\n current: createRegistry()\n};\nlet cleanupTokensCounter = 0;\nexport function useGridEvent(apiRef, eventName, handler, options) {\n const objectRetainedByReact = React.useState(ObjectToBeRetainedByReact.create)[0];\n const subscription = React.useRef(null);\n const handlerRef = React.useRef(null);\n handlerRef.current = handler;\n const cleanupTokenRef = React.useRef(null);\n if (!subscription.current && handlerRef.current) {\n const enhancedHandler = (params, event, details) => {\n if (!event.defaultMuiPrevented) {\n handlerRef.current?.(params, event, details);\n }\n };\n subscription.current = apiRef.current.subscribeEvent(eventName, enhancedHandler, options);\n cleanupTokensCounter += 1;\n cleanupTokenRef.current = {\n cleanupToken: cleanupTokensCounter\n };\n registryContainer.current.register(objectRetainedByReact,\n // The callback below will be called once this reference stops being retained\n () => {\n subscription.current?.();\n subscription.current = null;\n cleanupTokenRef.current = null;\n }, cleanupTokenRef.current);\n } else if (!handlerRef.current && subscription.current) {\n subscription.current();\n subscription.current = null;\n if (cleanupTokenRef.current) {\n registryContainer.current.unregister(cleanupTokenRef.current);\n cleanupTokenRef.current = null;\n }\n }\n React.useEffect(() => {\n if (!subscription.current && handlerRef.current) {\n const enhancedHandler = (params, event, details) => {\n if (!event.defaultMuiPrevented) {\n handlerRef.current?.(params, event, details);\n }\n };\n subscription.current = apiRef.current.subscribeEvent(eventName, enhancedHandler, options);\n }\n if (cleanupTokenRef.current && registryContainer.current) {\n // If the effect was called, it means that this render was committed\n // so we can trust the cleanup function to remove the listener.\n registryContainer.current.unregister(cleanupTokenRef.current);\n cleanupTokenRef.current = null;\n }\n return () => {\n subscription.current?.();\n subscription.current = null;\n };\n }, [apiRef, eventName, options]);\n}\nconst OPTIONS_IS_FIRST = {\n isFirst: true\n};\nexport function useGridEventPriority(apiRef, eventName, handler) {\n useGridEvent(apiRef, eventName, handler, OPTIONS_IS_FIRST);\n}\n\n// TODO: move to @mui/x-data-grid/internals\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function unstable_resetCleanupTracking() {\n registryContainer.current?.reset();\n registryContainer.current = createRegistry();\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const internal_registryContainer = registryContainer;\nfunction createRegistry() {\n return typeof FinalizationRegistry !== 'undefined' ? new FinalizationRegistryBasedCleanupTracking() : new TimerBasedCleanupTracking();\n}","import { createSelector, createRootSelector } from \"../../../utils/createSelector.js\";\nexport const COMPACT_DENSITY_FACTOR = 0.7;\nexport const COMFORTABLE_DENSITY_FACTOR = 1.3;\nconst DENSITY_FACTORS = {\n compact: COMPACT_DENSITY_FACTOR,\n comfortable: COMFORTABLE_DENSITY_FACTOR,\n standard: 1\n};\nexport const gridDensitySelector = createRootSelector(state => state.density);\nexport const gridDensityFactorSelector = createSelector(gridDensitySelector, density => DENSITY_FACTORS[density]);","export function NotRendered(_props) {\n throw new Error('Failed assertion: should not be rendered');\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// NOTE: Breakpoints can't come from the theme because we need access to them at\n// initialization time and media-queries can't use CSS variables. For users with\n// custom breakpoints, we might want to provide a way to configure them globally\n// instead of through the theme.\nconst breakpoints = {\n values: {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n },\n up: key => {\n const values = breakpoints.values;\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (min-width:${value}px)`;\n }\n};\nconst keys = {\n spacingUnit: '--DataGrid-t-spacing-unit',\n /* Variables */\n colors: {\n border: {\n base: '--DataGrid-t-color-border-base'\n },\n foreground: {\n base: '--DataGrid-t-color-foreground-base',\n muted: '--DataGrid-t-color-foreground-muted',\n accent: '--DataGrid-t-color-foreground-accent',\n disabled: '--DataGrid-t-color-foreground-disabled',\n error: '--DataGrid-t-color-foreground-error'\n },\n background: {\n base: '--DataGrid-t-color-background-base',\n overlay: '--DataGrid-t-color-background-overlay',\n backdrop: '--DataGrid-t-color-background-backdrop'\n },\n interactive: {\n hover: '--DataGrid-t-color-interactive-hover',\n hoverOpacity: '--DataGrid-t-color-interactive-hover-opacity',\n focus: '--DataGrid-t-color-interactive-focus',\n focusOpacity: '--DataGrid-t-color-interactive-focus-opacity',\n disabled: '--DataGrid-t-color-interactive-disabled',\n disabledOpacity: '--DataGrid-t-color-interactive-disabled-opacity',\n selected: '--DataGrid-t-color-interactive-selected',\n selectedOpacity: '--DataGrid-t-color-interactive-selected-opacity'\n }\n },\n header: {\n background: {\n base: '--DataGrid-t-header-background-base'\n }\n },\n cell: {\n background: {\n pinned: '--DataGrid-t-cell-background-pinned'\n }\n },\n radius: {\n base: '--DataGrid-t-radius-base'\n },\n typography: {\n font: {\n body: '--DataGrid-t-typography-font-body',\n small: '--DataGrid-t-typography-font-small',\n large: '--DataGrid-t-typography-font-large'\n },\n fontFamily: {\n base: '--DataGrid-t-typography-font-family-base'\n },\n fontWeight: {\n light: '--DataGrid-t-typography-font-weight-light',\n regular: '--DataGrid-t-typography-font-weight-regular',\n medium: '--DataGrid-t-typography-font-weight-medium',\n bold: '--DataGrid-t-typography-font-weight-bold'\n }\n },\n transitions: {\n easing: {\n easeIn: '--DataGrid-t-transition-easing-ease-in',\n easeOut: '--DataGrid-t-transition-easing-ease-out',\n easeInOut: '--DataGrid-t-transition-easing-ease-in-out'\n },\n duration: {\n short: '--DataGrid-t-transition-duration-short',\n base: '--DataGrid-t-transition-duration-base',\n long: '--DataGrid-t-transition-duration-long'\n }\n },\n shadows: {\n base: '--DataGrid-t-shadow-base',\n overlay: '--DataGrid-t-shadow-overlay'\n },\n zIndex: {\n panel: '--DataGrid-t-z-index-panel',\n menu: '--DataGrid-t-z-index-menu'\n }\n};\nconst values = wrap(keys);\nexport const vars = _extends({\n breakpoints,\n spacing,\n transition,\n keys\n}, values);\nfunction spacing(a, b, c, d) {\n /* eslint-disable prefer-template */\n if (a === undefined) {\n return spacingString(1);\n }\n if (b === undefined) {\n return spacingString(a);\n }\n if (c === undefined) {\n return spacingString(a) + ' ' + spacingString(b);\n }\n if (d === undefined) {\n return spacingString(a) + ' ' + spacingString(b) + ' ' + spacingString(c);\n }\n return spacingString(a) + ' ' + spacingString(b) + ' ' + spacingString(c) + ' ' + spacingString(d);\n /* eslint-enable prefer-template */\n}\nfunction spacingString(value) {\n if (value === 0) {\n return '0';\n }\n return `calc(var(--DataGrid-t-spacing-unit) * ${value})`;\n}\nfunction transition(props, options) {\n const {\n duration = vars.transitions.duration.base,\n easing = vars.transitions.easing.easeInOut,\n delay = 0\n } = options ?? {};\n return props.map(prop => `${prop} ${duration} ${easing} ${delay}ms`).join(', ');\n}\nfunction wrap(input) {\n if (typeof input === 'string') {\n return `var(${input})`;\n }\n const result = {};\n for (const key in input) {\n if (Object.hasOwn(input, key)) {\n result[key] = wrap(input[key]);\n }\n }\n return result;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"id\", \"value\", \"formattedValue\", \"api\", \"field\", \"row\", \"rowNode\", \"colDef\", \"cellMode\", \"isEditable\", \"tabIndex\", \"hasFocus\", \"isValidating\", \"debounceMs\", \"isProcessingProps\", \"onValueChange\", \"slotProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_composeClasses as composeClasses, unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';\nimport { styled } from '@mui/material/styles';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { NotRendered } from \"../../utils/assert.js\";\nimport { vars } from \"../../constants/cssVariables.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['editInputCell']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridEditInputCellRoot = styled(NotRendered, {\n name: 'MuiDataGrid',\n slot: 'EditInputCell'\n})({\n font: vars.typography.font.body,\n padding: '1px 0',\n '& input': {\n padding: '0 16px',\n height: '100%'\n }\n});\nconst GridEditInputCell = forwardRef((props, ref) => {\n const rootProps = useGridRootProps();\n const {\n id,\n value,\n field,\n colDef,\n hasFocus,\n debounceMs = 200,\n isProcessingProps,\n onValueChange,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridApiContext();\n const inputRef = React.useRef(null);\n const [valueState, setValueState] = React.useState(value);\n const classes = useUtilityClasses(rootProps);\n const handleChange = React.useCallback(async event => {\n const newValue = event.target.value;\n const column = apiRef.current.getColumn(field);\n let parsedValue = newValue;\n if (column.valueParser) {\n parsedValue = column.valueParser(newValue, apiRef.current.getRow(id), column, apiRef);\n }\n setValueState(parsedValue);\n apiRef.current.setEditCellValue({\n id,\n field,\n value: parsedValue,\n debounceMs,\n unstable_skipValueParser: true\n }, event);\n if (onValueChange) {\n await onValueChange(event, newValue);\n }\n }, [apiRef, debounceMs, field, id, onValueChange]);\n const meta = apiRef.current.unstable_getEditCellMeta(id, field);\n React.useEffect(() => {\n if (meta?.changeReason !== 'debouncedSetEditCellValue') {\n setValueState(value);\n }\n }, [meta, value]);\n useEnhancedEffect(() => {\n if (hasFocus) {\n inputRef.current.focus();\n }\n }, [hasFocus]);\n return /*#__PURE__*/_jsx(GridEditInputCellRoot, _extends({\n as: rootProps.slots.baseInput,\n inputRef: inputRef,\n className: classes.root,\n ownerState: rootProps,\n fullWidth: true,\n type: colDef.type === 'number' ? colDef.type : 'text',\n value: valueState ?? '',\n onChange: handleChange,\n endAdornment: isProcessingProps ? /*#__PURE__*/_jsx(rootProps.slots.loadIcon, {\n fontSize: \"small\",\n color: \"action\"\n }) : undefined\n }, other, slotProps?.root, {\n ref: ref\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridEditInputCell.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * GridApi that let you manipulate the grid.\n */\n api: PropTypes.object.isRequired,\n /**\n * The mode of the cell.\n */\n cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,\n changeReason: PropTypes.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),\n /**\n * The column of the row that the current cell belongs to.\n */\n colDef: PropTypes.object.isRequired,\n debounceMs: PropTypes.number,\n /**\n * The column field of the cell that triggered the event.\n */\n field: PropTypes.string.isRequired,\n /**\n * The cell value formatted with the column valueFormatter.\n */\n formattedValue: PropTypes.any,\n /**\n * If true, the cell is the active element.\n */\n hasFocus: PropTypes.bool.isRequired,\n /**\n * The grid row id.\n */\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,\n /**\n * If true, the cell is editable.\n */\n isEditable: PropTypes.bool,\n isProcessingProps: PropTypes.bool,\n isValidating: PropTypes.bool,\n /**\n * Callback called when the value is changed by the user.\n * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.\n * @param {Date | null} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.\n * @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`\n */\n onValueChange: PropTypes.func,\n /**\n * The row model of the row that the current cell belongs to.\n */\n row: PropTypes.any.isRequired,\n /**\n * The node of the row that the current cell belongs to.\n */\n rowNode: PropTypes.object.isRequired,\n slotProps: PropTypes.object,\n /**\n * the tabIndex value.\n */\n tabIndex: PropTypes.oneOf([-1, 0]).isRequired,\n /**\n * The cell value.\n * If the column has `valueGetter`, use `params.row` to directly access the fields.\n */\n value: PropTypes.any\n} : void 0;\nexport { GridEditInputCell };\nexport const renderEditInputCell = params => /*#__PURE__*/_jsx(GridEditInputCell, _extends({}, params));","import { createRootSelector, createSelector, createSelectorMemoized } from \"../../../utils/createSelector.js\";\nexport const gridRowsStateSelector = createRootSelector(state => state.rows);\nexport const gridRowCountSelector = createSelector(gridRowsStateSelector, rows => rows.totalRowCount);\nexport const gridRowsLoadingSelector = createSelector(gridRowsStateSelector, rows => rows.loading);\nexport const gridTopLevelRowCountSelector = createSelector(gridRowsStateSelector, rows => rows.totalTopLevelRowCount);\n\n// TODO rows v6: Rename\nexport const gridRowsLookupSelector = createSelector(gridRowsStateSelector, rows => rows.dataRowIdToModelLookup);\nexport const gridRowSelector = createSelector(gridRowsLookupSelector, (rows, id) => rows[id]);\nexport const gridRowTreeSelector = createSelector(gridRowsStateSelector, rows => rows.tree);\nexport const gridRowNodeSelector = createSelector(gridRowTreeSelector, (rowTree, rowId) => rowTree[rowId]);\nexport const gridRowGroupsToFetchSelector = createSelector(gridRowsStateSelector, rows => rows.groupsToFetch);\nexport const gridRowGroupingNameSelector = createSelector(gridRowsStateSelector, rows => rows.groupingName);\nexport const gridRowTreeDepthsSelector = createSelector(gridRowsStateSelector, rows => rows.treeDepths);\nexport const gridRowMaximumTreeDepthSelector = createSelectorMemoized(gridRowsStateSelector, rows => {\n const entries = Object.entries(rows.treeDepths);\n if (entries.length === 0) {\n return 1;\n }\n return (entries.filter(([, nodeCount]) => nodeCount > 0).map(([depth]) => Number(depth)).sort((a, b) => b - a)[0] ?? 0) + 1;\n});\nexport const gridDataRowIdsSelector = createSelector(gridRowsStateSelector, rows => rows.dataRowIds);\nexport const gridDataRowsSelector = createSelectorMemoized(gridDataRowIdsSelector, gridRowsLookupSelector, (dataRowIds, rowsLookup) => dataRowIds.reduce((acc, id) => {\n if (!rowsLookup[id]) {\n return acc;\n }\n acc.push(rowsLookup[id]);\n return acc;\n}, []));\n\n/**\n * @ignore - do not document.\n */\nexport const gridAdditionalRowGroupsSelector = createSelector(gridRowsStateSelector, rows => rows?.additionalRowGroups);\n\n/**\n * @ignore - do not document.\n */\nexport const gridPinnedRowsSelector = createSelectorMemoized(gridAdditionalRowGroupsSelector, additionalRowGroups => {\n const rawPinnedRows = additionalRowGroups?.pinnedRows;\n return {\n bottom: rawPinnedRows?.bottom?.map(rowEntry => ({\n id: rowEntry.id,\n model: rowEntry.model ?? {}\n })) ?? [],\n top: rawPinnedRows?.top?.map(rowEntry => ({\n id: rowEntry.id,\n model: rowEntry.model ?? {}\n })) ?? []\n };\n});\n\n/**\n * @ignore - do not document.\n */\nexport const gridPinnedRowsCountSelector = createSelector(gridPinnedRowsSelector, pinnedRows => {\n return (pinnedRows?.top?.length || 0) + (pinnedRows?.bottom?.length || 0);\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { warnOnce } from '@mui/x-internals/warning';\nimport { gridRowNodeSelector } from \"../rows/gridRowsSelector.js\";\nexport const sanitizeSortModel = (model, disableMultipleColumnsSorting) => {\n if (disableMultipleColumnsSorting && model.length > 1) {\n if (process.env.NODE_ENV !== 'production') {\n warnOnce(['MUI X: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.', 'If you are using the community version of the Data Grid, this prop is always `true`.'], 'error');\n }\n return [model[0]];\n }\n return model;\n};\nexport const mergeStateWithSortModel = (sortModel, disableMultipleColumnsSorting) => state => _extends({}, state, {\n sorting: _extends({}, state.sorting, {\n sortModel: sanitizeSortModel(sortModel, disableMultipleColumnsSorting)\n })\n});\nconst isDesc = direction => direction === 'desc';\n\n/**\n * Transform an item of the sorting model into a method comparing two rows.\n * @param {GridSortItem} sortItem The sort item we want to apply.\n * @param {RefObject<GridApiCommunity>} apiRef The API of the grid.\n * @returns {GridParsedSortItem | null} The parsed sort item. Returns `null` is the sort item is not valid.\n */\nconst parseSortItem = (sortItem, apiRef) => {\n const column = apiRef.current.getColumn(sortItem.field);\n if (!column || sortItem.sort === null) {\n return null;\n }\n let comparator;\n if (column.getSortComparator) {\n comparator = column.getSortComparator(sortItem.sort);\n } else {\n comparator = isDesc(sortItem.sort) ? (...args) => -1 * column.sortComparator(...args) : column.sortComparator;\n }\n if (!comparator) {\n return null;\n }\n const getSortCellParams = id => ({\n id,\n field: column.field,\n rowNode: gridRowNodeSelector(apiRef, id),\n value: apiRef.current.getCellValue(id, column.field),\n api: apiRef.current\n });\n return {\n getSortCellParams,\n comparator\n };\n};\n/**\n * Compare two rows according to a list of valid sort items.\n * The `row1Params` and `row2Params` must have the same length as `parsedSortItems`,\n * and each of their index must contain the `GridSortCellParams` of the sort item with the same index.\n * @param {GridParsedSortItem[]} parsedSortItems All the sort items with which we want to compare the rows.\n * @param {GridRowAggregatedSortingParams} row1 The node and params of the 1st row for each sort item.\n * @param {GridRowAggregatedSortingParams} row2 The node and params of the 2nd row for each sort item.\n */\nconst compareRows = (parsedSortItems, row1, row2) => {\n return parsedSortItems.reduce((res, item, index) => {\n if (res !== 0) {\n // return the results of the first comparator which distinguish the two rows\n return res;\n }\n const sortCellParams1 = row1.params[index];\n const sortCellParams2 = row2.params[index];\n res = item.comparator(sortCellParams1.value, sortCellParams2.value, sortCellParams1, sortCellParams2);\n return res;\n }, 0);\n};\n\n/**\n * Generates a method to easily sort a list of rows according to the current sort model.\n * @param {GridSortModel} sortModel The model with which we want to sort the rows.\n * @param {RefObject<GridApiCommunity>} apiRef The API of the grid.\n * @returns {GridSortingModelApplier | null} A method that generates a list of sorted row ids from a list of rows according to the current sort model. If `null`, we consider that the rows should remain in the order there were provided.\n */\nexport const buildAggregatedSortingApplier = (sortModel, apiRef) => {\n const comparatorList = sortModel.map(item => parseSortItem(item, apiRef)).filter(comparator => !!comparator);\n if (comparatorList.length === 0) {\n return null;\n }\n return rowList => rowList.map(node => ({\n node,\n params: comparatorList.map(el => el.getSortCellParams(node.id))\n })).sort((a, b) => compareRows(comparatorList, a, b)).map(row => row.node.id);\n};\nexport const getNextGridSortDirection = (sortingOrder, current) => {\n const currentIdx = sortingOrder.indexOf(current);\n if (!current || currentIdx === -1 || currentIdx + 1 === sortingOrder.length) {\n return sortingOrder[0];\n }\n return sortingOrder[currentIdx + 1];\n};\nconst gridNillComparator = (v1, v2) => {\n if (v1 == null && v2 != null) {\n return -1;\n }\n if (v2 == null && v1 != null) {\n return 1;\n }\n if (v1 == null && v2 == null) {\n return 0;\n }\n return null;\n};\nconst collator = new Intl.Collator();\nexport const gridStringOrNumberComparator = (value1, value2) => {\n const nillResult = gridNillComparator(value1, value2);\n if (nillResult !== null) {\n return nillResult;\n }\n if (typeof value1 === 'string') {\n return collator.compare(value1.toString(), value2.toString());\n }\n return value1 - value2;\n};\nexport const gridNumberComparator = (value1, value2) => {\n const nillResult = gridNillComparator(value1, value2);\n if (nillResult !== null) {\n return nillResult;\n }\n return Number(value1) - Number(value2);\n};\nexport const gridDateComparator = (value1, value2) => {\n const nillResult = gridNillComparator(value1, value2);\n if (nillResult !== null) {\n return nillResult;\n }\n if (value1 > value2) {\n return 1;\n }\n if (value1 < value2) {\n return -1;\n }\n return 0;\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"item\", \"applyValue\", \"type\", \"apiRef\", \"focusElementRef\", \"tabIndex\", \"disabled\", \"isFilterActive\", \"slotProps\", \"clearButton\", \"headerFilterMenu\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_useId as useId } from '@mui/utils';\nimport { useTimeout } from \"../../../hooks/utils/useTimeout.js\";\nimport { useGridRootProps } from \"../../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction GridFilterInputValue(props) {\n const {\n item,\n applyValue,\n type,\n apiRef,\n focusElementRef,\n tabIndex,\n disabled,\n slotProps,\n clearButton,\n headerFilterMenu\n } = props,\n others = _objectWithoutPropertiesLoose(props, _excluded);\n const textFieldProps = slotProps?.root;\n const filterTimeout = useTimeout();\n const [filterValueState, setFilterValueState] = React.useState(sanitizeFilterItemValue(item.value));\n const [applying, setIsApplying] = React.useState(false);\n const id = useId();\n const rootProps = useGridRootProps();\n const onFilterChange = React.useCallback(event => {\n const value = sanitizeFilterItemValue(event.target.value);\n setFilterValueState(value);\n setIsApplying(true);\n filterTimeout.start(rootProps.filterDebounceMs, () => {\n const newItem = _extends({}, item, {\n value: type === 'number' && !Number.isNaN(Number(value)) ? Number(value) : value,\n fromInput: id\n });\n applyValue(newItem);\n setIsApplying(false);\n });\n }, [filterTimeout, rootProps.filterDebounceMs, item, type, id, applyValue]);\n React.useEffect(() => {\n const itemPlusTag = item;\n if (itemPlusTag.fromInput !== id || item.value == null) {\n setFilterValueState(sanitizeFilterItemValue(item.value));\n }\n }, [id, item]);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(rootProps.slots.baseTextField, _extends({\n id: id,\n label: apiRef.current.getLocaleText('filterPanelInputLabel'),\n placeholder: apiRef.current.getLocaleText('filterPanelInputPlaceholder'),\n value: filterValueState ?? '',\n onChange: onFilterChange,\n type: type || 'text',\n disabled: disabled,\n slotProps: _extends({}, textFieldProps?.slotProps, {\n input: _extends({\n endAdornment: applying ? /*#__PURE__*/_jsx(rootProps.slots.loadIcon, {\n fontSize: \"small\",\n color: \"action\"\n }) : null\n }, textFieldProps?.slotProps?.input),\n htmlInput: _extends({\n tabIndex\n }, textFieldProps?.slotProps?.htmlInput)\n }),\n inputRef: focusElementRef\n }, rootProps.slotProps?.baseTextField, others, textFieldProps)), headerFilterMenu, clearButton]\n });\n}\nfunction sanitizeFilterItemValue(value) {\n if (value == null || value === '') {\n return undefined;\n }\n return String(value);\n}\nprocess.env.NODE_ENV !== \"production\" ? GridFilterInputValue.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n apiRef: PropTypes.shape({\n current: PropTypes.object.isRequired\n }).isRequired,\n applyValue: PropTypes.func.isRequired,\n className: PropTypes.string,\n clearButton: PropTypes.node,\n disabled: PropTypes.bool,\n focusElementRef: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.func, PropTypes.object]),\n headerFilterMenu: PropTypes.node,\n inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: (props, propName) => {\n if (props[propName] == null) {\n return null;\n }\n if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {\n return new Error(`Expected prop '${propName}' to be of type Element`);\n }\n return null;\n }\n })]),\n /**\n * It is `true` if the filter either has a value or an operator with no value\n * required is selected (for example `isEmpty`)\n */\n isFilterActive: PropTypes.bool,\n item: PropTypes.shape({\n field: PropTypes.string.isRequired,\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n operator: PropTypes.string.isRequired,\n value: PropTypes.any\n }).isRequired,\n onBlur: PropTypes.func,\n onFocus: PropTypes.func,\n slotProps: PropTypes.object,\n tabIndex: PropTypes.number,\n type: PropTypes.oneOf(['date', 'datetime-local', 'number', 'text'])\n} : void 0;\nexport { GridFilterInputValue };","export function isNumber(value) {\n return typeof value === 'number' && !Number.isNaN(value);\n}\nexport function isFunction(value) {\n return typeof value === 'function';\n}\nexport function isObject(value) {\n return typeof value === 'object' && value !== null;\n}\nexport function localStorageAvailable() {\n try {\n // Incognito mode might reject access to the localStorage for security reasons.\n // window isn't defined on Node.js\n // https://stackoverflow.com/questions/16427636/check-if-localstorage-is-available\n const key = '__some_random_key_you_are_not_going_to_use__';\n window.localStorage.setItem(key, key);\n window.localStorage.removeItem(key);\n return true;\n } catch (err) {\n return false;\n }\n}\nexport function escapeRegExp(value) {\n return value.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&');\n}\n\n/**\n * Follows the CSS specification behavior for min and max\n * If min > max, then the min have priority\n */\nexport const clamp = (value, min, max) => Math.max(min, Math.min(max, value));\n\n/**\n * Create an array containing the range [from, to[\n */\nexport function range(from, to) {\n return Array.from({\n length: to - from\n }).map((_, i) => from + i);\n}\n\n// Pseudo random number. See https://stackoverflow.com/a/47593316\nfunction mulberry32(a) {\n return () => {\n /* eslint-disable */\n let t = a += 0x6d2b79f5;\n t = Math.imul(t ^ t >>> 15, t | 1);\n t ^= t + Math.imul(t ^ t >>> 7, t | 61);\n return ((t ^ t >>> 14) >>> 0) / 4294967296;\n /* eslint-enable */\n };\n}\n\n/**\n * Create a random number generator from a seed. The seed\n * ensures that the random number generator produces the\n * same sequence of 'random' numbers on every render. It\n * returns a function that generates a random number between\n * a specified min and max.\n */\nexport function createRandomNumberGenerator(seed) {\n const random = mulberry32(seed);\n return (min, max) => min + (max - min) * random();\n}\nexport function deepClone(obj) {\n if (typeof structuredClone === 'function') {\n return structuredClone(obj);\n }\n return JSON.parse(JSON.stringify(obj));\n}\n\n/**\n * Mark a value as used so eslint doesn't complain. Use this instead\n * of a `eslint-disable-next-line react-hooks/exhaustive-deps` because\n * that hint disables checks on all values instead of just one.\n */\nexport function eslintUseValue(_) {}\nexport const runIf = (condition, fn) => params => {\n if (condition) {\n fn(params);\n }\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_useId as useId } from '@mui/utils';\nimport { useGridRootProps } from \"../../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GridFilterInputMultipleValue(props) {\n const {\n item,\n applyValue,\n type,\n apiRef,\n focusElementRef,\n slotProps\n } = props;\n const id = useId();\n const [options, setOptions] = React.useState([]);\n const [filterValueState, setFilterValueState] = React.useState(item.value || []);\n const rootProps = useGridRootProps();\n React.useEffect(() => {\n const itemValue = item.value ?? [];\n setFilterValueState(itemValue.map(String));\n }, [item.value]);\n const handleChange = React.useCallback((event, value) => {\n setFilterValueState(value.map(String));\n applyValue(_extends({}, item, {\n value: [...value.map(filterItemValue => type === 'number' ? Number(filterItemValue) : filterItemValue)]\n }));\n }, [applyValue, item, type]);\n const handleInputChange = React.useCallback((event, value) => {\n if (value === '') {\n setOptions([]);\n } else {\n setOptions([value]);\n }\n }, [setOptions]);\n const BaseAutocomplete = rootProps.slots.baseAutocomplete;\n return /*#__PURE__*/_jsx(BaseAutocomplete, _extends({\n multiple: true,\n freeSolo: true,\n options: options,\n id: id,\n value: filterValueState,\n onChange: handleChange,\n onInputChange: handleInputChange,\n label: apiRef.current.getLocaleText('filterPanelInputLabel'),\n placeholder: apiRef.current.getLocaleText('filterPanelInputPlaceholder'),\n slotProps: {\n textField: {\n type: type || 'text',\n inputRef: focusElementRef\n }\n }\n }, slotProps?.root));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridFilterInputMultipleValue.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n apiRef: PropTypes.shape({\n current: PropTypes.object.isRequired\n }).isRequired,\n applyValue: PropTypes.func.isRequired,\n className: PropTypes.string,\n clearButton: PropTypes.node,\n disabled: PropTypes.bool,\n focusElementRef: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.func, PropTypes.object]),\n headerFilterMenu: PropTypes.node,\n inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: (props, propName) => {\n if (props[propName] == null) {\n return null;\n }\n if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {\n return new Error(`Expected prop '${propName}' to be of type Element`);\n }\n return null;\n }\n })]),\n /**\n * It is `true` if the filter either has a value or an operator with no value\n * required is selected (for example `isEmpty`)\n */\n isFilterActive: PropTypes.bool,\n item: PropTypes.shape({\n field: PropTypes.string.isRequired,\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n operator: PropTypes.string.isRequired,\n value: PropTypes.any\n }).isRequired,\n onBlur: PropTypes.func,\n onFocus: PropTypes.func,\n slotProps: PropTypes.object,\n tabIndex: PropTypes.number,\n type: PropTypes.oneOf(['date', 'datetime-local', 'number', 'text'])\n} : void 0;\nexport { GridFilterInputMultipleValue };","var GridEditModes = /*#__PURE__*/function (GridEditModes) {\n GridEditModes[\"Cell\"] = \"cell\";\n GridEditModes[\"Row\"] = \"row\";\n return GridEditModes;\n}(GridEditModes || {});\nvar GridCellModes = /*#__PURE__*/function (GridCellModes) {\n GridCellModes[\"Edit\"] = \"edit\";\n GridCellModes[\"View\"] = \"view\";\n return GridCellModes;\n}(GridCellModes || {});\nvar GridRowModes = /*#__PURE__*/function (GridRowModes) {\n GridRowModes[\"Edit\"] = \"edit\";\n GridRowModes[\"View\"] = \"view\";\n return GridRowModes;\n}(GridRowModes || {});\nexport { GridEditModes, GridCellModes, GridRowModes };","/**\n * Filter item definition interface.\n * @demos\n * - [Custom filter operator](/x/react-data-grid/filtering/customization/#create-a-custom-operator)\n */\nvar GridLogicOperator = /*#__PURE__*/function (GridLogicOperator) {\n GridLogicOperator[\"And\"] = \"and\";\n GridLogicOperator[\"Or\"] = \"or\";\n return GridLogicOperator;\n}(GridLogicOperator || {});\nexport { GridLogicOperator };","class IncludeManager {\n constructor(model) {\n this.data = void 0;\n this.data = model.ids;\n }\n has(id) {\n return this.data.has(id);\n }\n select(id) {\n this.data.add(id);\n }\n unselect(id) {\n this.data.delete(id);\n }\n}\nclass ExcludeManager {\n constructor(model) {\n this.data = void 0;\n this.data = model.ids;\n }\n has(id) {\n return !this.data.has(id);\n }\n select(id) {\n this.data.delete(id);\n }\n unselect(id) {\n this.data.add(id);\n }\n}\nexport const createRowSelectionManager = model => {\n if (model.type === 'include') {\n return new IncludeManager(model);\n }\n return new ExcludeManager(model);\n};","/**\n * Params passed to `apiRef.current.setEditCellValue`.\n */\nvar GridCellEditStartReasons = /*#__PURE__*/function (GridCellEditStartReasons) {\n GridCellEditStartReasons[\"enterKeyDown\"] = \"enterKeyDown\";\n GridCellEditStartReasons[\"cellDoubleClick\"] = \"cellDoubleClick\";\n GridCellEditStartReasons[\"printableKeyDown\"] = \"printableKeyDown\";\n GridCellEditStartReasons[\"deleteKeyDown\"] = \"deleteKeyDown\";\n GridCellEditStartReasons[\"pasteKeyDown\"] = \"pasteKeyDown\";\n return GridCellEditStartReasons;\n}(GridCellEditStartReasons || {});\n/**\n * Params passed to the `cellEditStart` event.\n */\nvar GridCellEditStopReasons = /*#__PURE__*/function (GridCellEditStopReasons) {\n GridCellEditStopReasons[\"cellFocusOut\"] = \"cellFocusOut\";\n GridCellEditStopReasons[\"escapeKeyDown\"] = \"escapeKeyDown\";\n GridCellEditStopReasons[\"enterKeyDown\"] = \"enterKeyDown\";\n GridCellEditStopReasons[\"tabKeyDown\"] = \"tabKeyDown\";\n GridCellEditStopReasons[\"shiftTabKeyDown\"] = \"shiftTabKeyDown\";\n return GridCellEditStopReasons;\n}(GridCellEditStopReasons || {});\n/**\n * Params passed to the `cellEditStop event.\n */\n// https://github.com/mui/mui-x/pull/3738#discussion_r798504277\nexport { GridCellEditStartReasons, GridCellEditStopReasons };","/**\n * Object passed as parameter in the row callbacks.\n * @demos\n * - [Master detail](/x/react-data-grid/master-detail/)\n */\n/**\n * Object passed as parameter in the row `getRowClassName` callback prop.\n * @demos\n * - [Styling rows](/x/react-data-grid/style/#styling-rows)\n */\n/**\n * Object passed as parameter in the row `getRowHeight` callback prop.\n */\n/**\n * The getRowHeight return value.\n */\nvar GridRowEditStartReasons = /*#__PURE__*/function (GridRowEditStartReasons) {\n GridRowEditStartReasons[\"enterKeyDown\"] = \"enterKeyDown\";\n GridRowEditStartReasons[\"cellDoubleClick\"] = \"cellDoubleClick\";\n GridRowEditStartReasons[\"printableKeyDown\"] = \"printableKeyDown\";\n GridRowEditStartReasons[\"deleteKeyDown\"] = \"deleteKeyDown\";\n return GridRowEditStartReasons;\n}(GridRowEditStartReasons || {});\n/**\n * Params passed to the `rowEditStart` event.\n */\nvar GridRowEditStopReasons = /*#__PURE__*/function (GridRowEditStopReasons) {\n GridRowEditStopReasons[\"rowFocusOut\"] = \"rowFocusOut\";\n GridRowEditStopReasons[\"escapeKeyDown\"] = \"escapeKeyDown\";\n GridRowEditStopReasons[\"enterKeyDown\"] = \"enterKeyDown\";\n GridRowEditStopReasons[\"tabKeyDown\"] = \"tabKeyDown\";\n GridRowEditStopReasons[\"shiftTabKeyDown\"] = \"shiftTabKeyDown\";\n return GridRowEditStopReasons;\n}(GridRowEditStopReasons || {});\n/**\n * Object passed as parameter in the row `getRowSpacing` callback prop.\n * @demos\n * - [Row spacing](/x/react-data-grid/row-height/#row-spacing)\n */\n/**\n * The getRowSpacing return value.\n */\n// https://github.com/mui/mui-x/pull/3738#discussion_r798504277\nexport { GridRowEditStartReasons, GridRowEditStopReasons };","export function isLeaf(node) {\n return node.field !== undefined;\n}\n\n/**\n * A function used to process headerClassName params.\n */\n\n/**\n * The union type representing the [[GridColDef]] column header class type.\n */","import { GridLogicOperator } from \"../../../models/gridFilterItem.js\";\nexport const defaultGridFilterLookup = {\n filteredRowsLookup: {},\n filteredChildrenCountLookup: {},\n filteredDescendantCountLookup: {}\n};\nexport const getDefaultGridFilterModel = () => ({\n items: [],\n logicOperator: GridLogicOperator.And,\n quickFilterValues: [],\n quickFilterLogicOperator: GridLogicOperator.And\n});\n\n/**\n * @param {GridRowId} rowId The id of the row we want to filter.\n * @param {(filterItem: GridFilterItem) => boolean} shouldApplyItem An optional callback to allow the filtering engine to only apply some items.\n */\n\n/**\n * Visibility status for each row.\n * A row is visible if it is passing the filters AND if its parents are expanded.\n * If a row is not registered in this lookup, it is visible.\n */","export function getPublicApiRef(apiRef) {\n return {\n current: apiRef.current.getPublicApi()\n };\n}","export let GridPinnedColumnPosition = /*#__PURE__*/function (GridPinnedColumnPosition) {\n GridPinnedColumnPosition[\"LEFT\"] = \"left\";\n GridPinnedColumnPosition[\"RIGHT\"] = \"right\";\n return GridPinnedColumnPosition;\n}({});\nexport const EMPTY_PINNED_COLUMN_FIELDS = {\n left: [],\n right: []\n};","import { createRootSelector } from \"../../utils/createSelector.js\";\n/**\n * Get the theme state\n * @category Core\n */\nexport const gridIsRtlSelector = createRootSelector(state => state.isRtl);","import { createSelector, createSelectorMemoized, createRootSelector } from \"../../../utils/createSelector.js\";\nimport { EMPTY_PINNED_COLUMN_FIELDS } from \"./gridColumnsInterfaces.js\";\nimport { gridIsRtlSelector } from \"../../core/gridCoreSelector.js\";\n\n/**\n * Get the columns state\n * @category Columns\n */\nexport const gridColumnsStateSelector = createRootSelector(state => state.columns);\n\n/**\n * Get an array of column fields in the order rendered on screen.\n * @category Columns\n */\nexport const gridColumnFieldsSelector = createSelector(gridColumnsStateSelector, columnsState => columnsState.orderedFields);\n\n/**\n * Get the columns as a lookup (an object containing the field for keys and the definition for values).\n * @category Columns\n */\nexport const gridColumnLookupSelector = createSelector(gridColumnsStateSelector, columnsState => columnsState.lookup);\n\n/**\n * Get an array of column definitions in the order rendered on screen..\n * @category Columns\n */\nexport const gridColumnDefinitionsSelector = createSelectorMemoized(gridColumnFieldsSelector, gridColumnLookupSelector, (allFields, lookup) => allFields.map(field => lookup[field]));\n\n/**\n * Get the column visibility model, containing the visibility status of each column.\n * If a column is not registered in the model, it is visible.\n * @category Visible Columns\n */\nexport const gridColumnVisibilityModelSelector = createSelector(gridColumnsStateSelector, columnsState => columnsState.columnVisibilityModel);\n\n/**\n * Get the \"initial\" column visibility model, containing the visibility status of each column.\n * It is updated when the `columns` prop is updated or when `updateColumns` API method is called.\n * If a column is not registered in the model, it is visible.\n * @category Visible Columns\n */\nexport const gridInitialColumnVisibilityModelSelector = createSelector(gridColumnsStateSelector, columnsState => columnsState.initialColumnVisibilityModel);\n\n/**\n * Get the visible columns as a lookup (an object containing the field for keys and the definition for values).\n * @category Visible Columns\n */\nexport const gridVisibleColumnDefinitionsSelector = createSelectorMemoized(gridColumnDefinitionsSelector, gridColumnVisibilityModelSelector, (columns, columnVisibilityModel) => columns.filter(column => columnVisibilityModel[column.field] !== false));\n\n/**\n * Get the field of each visible column.\n * @category Visible Columns\n */\nexport const gridVisibleColumnFieldsSelector = createSelectorMemoized(gridVisibleColumnDefinitionsSelector, visibleColumns => visibleColumns.map(column => column.field));\n\n/**\n * Get the visible pinned columns model.\n * @category Visible Columns\n */\nexport const gridPinnedColumnsSelector = createRootSelector(state => state.pinnedColumns);\n\n/**\n * Get the visible pinned columns.\n * @category Visible Columns\n */\nexport const gridVisiblePinnedColumnDefinitionsSelector = createSelectorMemoized(gridColumnsStateSelector, gridPinnedColumnsSelector, gridVisibleColumnFieldsSelector, gridIsRtlSelector, (columnsState, model, visibleColumnFields, isRtl) => {\n const visiblePinnedFields = filterVisibleColumns(model, visibleColumnFields, isRtl);\n const visiblePinnedColumns = {\n left: visiblePinnedFields.left.map(field => columnsState.lookup[field]),\n right: visiblePinnedFields.right.map(field => columnsState.lookup[field])\n };\n return visiblePinnedColumns;\n});\nfunction filterVisibleColumns(pinnedColumns, columns, invert) {\n if (!Array.isArray(pinnedColumns.left) && !Array.isArray(pinnedColumns.right)) {\n return EMPTY_PINNED_COLUMN_FIELDS;\n }\n if (pinnedColumns.left?.length === 0 && pinnedColumns.right?.length === 0) {\n return EMPTY_PINNED_COLUMN_FIELDS;\n }\n const filter = (newPinnedColumns, remainingColumns) => {\n if (!Array.isArray(newPinnedColumns)) {\n return [];\n }\n return newPinnedColumns.filter(field => remainingColumns.includes(field));\n };\n const leftPinnedColumns = filter(pinnedColumns.left, columns);\n const columnsWithoutLeftPinnedColumns = columns.filter(\n // Filter out from the remaining columns those columns already pinned to the left\n field => !leftPinnedColumns.includes(field));\n const rightPinnedColumns = filter(pinnedColumns.right, columnsWithoutLeftPinnedColumns);\n if (invert) {\n return {\n left: rightPinnedColumns,\n right: leftPinnedColumns\n };\n }\n return {\n left: leftPinnedColumns,\n right: rightPinnedColumns\n };\n}\n\n/**\n * Get the left position in pixel of each visible columns relative to the left of the first column.\n * @category Visible Columns\n */\nexport const gridColumnPositionsSelector = createSelectorMemoized(gridVisibleColumnDefinitionsSelector, visibleColumns => {\n const positions = [];\n let currentPosition = 0;\n for (let i = 0; i < visibleColumns.length; i += 1) {\n positions.push(currentPosition);\n currentPosition += visibleColumns[i].computedWidth;\n }\n return positions;\n});\n\n/**\n * Get the filterable columns as an array.\n * @category Columns\n */\nexport const gridFilterableColumnDefinitionsSelector = createSelectorMemoized(gridColumnDefinitionsSelector, columns => columns.filter(col => col.filterable));\n\n/**\n * Get the filterable columns as a lookup (an object containing the field for keys and the definition for values).\n * @category Columns\n */\nexport const gridFilterableColumnLookupSelector = createSelectorMemoized(gridColumnDefinitionsSelector, columns => columns.reduce((acc, col) => {\n if (col.filterable) {\n acc[col.field] = col;\n }\n return acc;\n}, {}));\n\n/**\n * Checks if some column has a colSpan field.\n * @category Columns\n * @ignore - Do not document\n */\nexport const gridHasColSpanSelector = createSelectorMemoized(gridColumnDefinitionsSelector, columns => columns.some(column => column.colSpan !== undefined));","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { warnOnce } from '@mui/x-internals/warning';\nimport { GridLogicOperator } from \"../../../models/index.js\";\nimport { getDefaultGridFilterModel } from \"./gridFilterState.js\";\nimport { getPublicApiRef } from \"../../../utils/getPublicApiRef.js\";\nimport { gridColumnFieldsSelector, gridColumnLookupSelector, gridVisibleColumnFieldsSelector } from \"../columns/index.js\";\nlet hasEval;\nfunction getHasEval() {\n if (hasEval !== undefined) {\n return hasEval;\n }\n try {\n // eslint-disable-next-line no-new-func\n hasEval = new Function('return true')();\n } catch (_) {\n hasEval = false;\n }\n return hasEval;\n}\n/**\n * Adds default values to the optional fields of a filter items.\n * @param {GridFilterItem} item The raw filter item.\n * @param {RefObject<GridPrivateApiCommunity>} apiRef The API of the grid.\n * @return {GridFilterItem} The clean filter item with an uniq ID and an always-defined operator.\n * TODO: Make the typing reflect the different between GridFilterInputItem and GridFilterItem.\n */\nexport const cleanFilterItem = (item, apiRef) => {\n const cleanItem = _extends({}, item);\n if (cleanItem.id == null) {\n cleanItem.id = Math.round(Math.random() * 1e5);\n }\n if (cleanItem.operator == null) {\n // Selects a default operator\n // We don't use `apiRef.current.getColumn` because it is not ready during state initialization\n const column = gridColumnLookupSelector(apiRef)[cleanItem.field];\n cleanItem.operator = column && column.filterOperators[0].value;\n }\n return cleanItem;\n};\nexport const sanitizeFilterModel = (model, disableMultipleColumnsFiltering, apiRef) => {\n const hasSeveralItems = model.items.length > 1;\n let items;\n if (hasSeveralItems && disableMultipleColumnsFiltering) {\n if (process.env.NODE_ENV !== 'production') {\n warnOnce(['MUI X: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.', 'If you are using the community version of the Data Grid, this prop is always `true`.'], 'error');\n }\n items = [model.items[0]];\n } else {\n items = model.items;\n }\n const hasItemsWithoutIds = hasSeveralItems && items.some(item => item.id == null);\n const hasItemWithoutOperator = items.some(item => item.operator == null);\n if (process.env.NODE_ENV !== 'production') {\n if (hasItemsWithoutIds) {\n warnOnce('MUI X: The `id` field is required on `filterModel.items` when you use multiple filters.', 'error');\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n if (hasItemWithoutOperator) {\n warnOnce('MUI X: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.', 'error');\n }\n }\n if (hasItemWithoutOperator || hasItemsWithoutIds) {\n return _extends({}, model, {\n items: items.map(item => cleanFilterItem(item, apiRef))\n });\n }\n if (model.items !== items) {\n return _extends({}, model, {\n items\n });\n }\n return model;\n};\nexport const mergeStateWithFilterModel = (filterModel, disableMultipleColumnsFiltering, apiRef) => filteringState => _extends({}, filteringState, {\n filterModel: sanitizeFilterModel(filterModel, disableMultipleColumnsFiltering, apiRef)\n});\nexport const removeDiacritics = value => {\n if (typeof value === 'string') {\n return value.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '');\n }\n return value;\n};\nconst getFilterCallbackFromItem = (filterItem, apiRef) => {\n if (!filterItem.field || !filterItem.operator) {\n return null;\n }\n const column = apiRef.current.getColumn(filterItem.field);\n if (!column) {\n return null;\n }\n let parsedValue;\n if (column.valueParser) {\n const parser = column.valueParser;\n parsedValue = Array.isArray(filterItem.value) ? filterItem.value?.map(x => parser(x, undefined, column, apiRef)) : parser(filterItem.value, undefined, column, apiRef);\n } else {\n parsedValue = filterItem.value;\n }\n const {\n ignoreDiacritics\n } = apiRef.current.rootProps;\n if (ignoreDiacritics) {\n parsedValue = removeDiacritics(parsedValue);\n }\n const newFilterItem = _extends({}, filterItem, {\n value: parsedValue\n });\n const filterOperators = column.filterOperators;\n if (!filterOperators?.length) {\n throw new Error(`MUI X: No filter operators found for column '${column.field}'.`);\n }\n const filterOperator = filterOperators.find(operator => operator.value === newFilterItem.operator);\n if (!filterOperator) {\n throw new Error(`MUI X: No filter operator found for column '${column.field}' and operator value '${newFilterItem.operator}'.`);\n }\n const publicApiRef = getPublicApiRef(apiRef);\n const applyFilterOnRow = filterOperator.getApplyFilterFn(newFilterItem, column);\n if (typeof applyFilterOnRow !== 'function') {\n return null;\n }\n return {\n item: newFilterItem,\n fn: row => {\n let value = apiRef.current.getRowValue(row, column);\n if (ignoreDiacritics) {\n value = removeDiacritics(value);\n }\n return applyFilterOnRow(value, row, column, publicApiRef);\n }\n };\n};\nlet filterItemsApplierId = 1;\n\n/**\n * Generates a method to easily check if a row is matching the current filter model.\n * @param {GridFilterModel} filterModel The model with which we want to filter the rows.\n * @param {RefObject<GridPrivateApiCommunity>} apiRef The API of the grid.\n * @returns {GridAggregatedFilterItemApplier | null} A method that checks if a row is matching the current filter model. If `null`, we consider that all the rows are matching the filters.\n */\nconst buildAggregatedFilterItemsApplier = (filterModel, apiRef, disableEval) => {\n const {\n items\n } = filterModel;\n const appliers = items.map(item => getFilterCallbackFromItem(item, apiRef)).filter(callback => !!callback);\n if (appliers.length === 0) {\n return null;\n }\n if (disableEval || !getHasEval()) {\n // This is the original logic, which is used if `eval()` is not supported (aka prevented by CSP).\n return (row, shouldApplyFilter) => {\n const resultPerItemId = {};\n for (let i = 0; i < appliers.length; i += 1) {\n const applier = appliers[i];\n if (!shouldApplyFilter || shouldApplyFilter(applier.item.field)) {\n resultPerItemId[applier.item.id] = applier.fn(row);\n }\n }\n return resultPerItemId;\n };\n }\n\n // We generate a new function with `new Function()` to avoid expensive patterns for JS engines\n // such as a dynamic object assignment, for example `{ [dynamicKey]: value }`.\n // eslint-disable-next-line no-new-func\n const filterItemCore = new Function('appliers', 'row', 'shouldApplyFilter', `\"use strict\";\n${appliers.map((applier, i) => `const shouldApply${i} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(applier.item.field)});`).join('\\n')}\n\nconst result$$ = {\n${appliers.map((applier, i) => ` ${JSON.stringify(String(applier.item.id))}: !shouldApply${i} ? false : appliers[${i}].fn(row),`).join('\\n')}\n};\n\nreturn result$$;`.replaceAll('$$', String(filterItemsApplierId)));\n filterItemsApplierId += 1;\n\n // Assign to the arrow function a name to help debugging\n const filterItem = (row, shouldApplyItem) => filterItemCore(appliers, row, shouldApplyItem);\n return filterItem;\n};\nexport const shouldQuickFilterExcludeHiddenColumns = filterModel => {\n return filterModel.quickFilterExcludeHiddenColumns ?? true;\n};\n\n/**\n * Generates a method to easily check if a row is matching the current quick filter.\n * @param {any[]} filterModel The model with which we want to filter the rows.\n * @param {RefObject<GridPrivateApiCommunity>} apiRef The API of the grid.\n * @returns {GridAggregatedFilterItemApplier | null} A method that checks if a row is matching the current filter model. If `null`, we consider that all the rows are matching the filters.\n */\nconst buildAggregatedQuickFilterApplier = (filterModel, apiRef) => {\n const quickFilterValues = filterModel.quickFilterValues?.filter(Boolean) ?? [];\n if (quickFilterValues.length === 0) {\n return null;\n }\n const columnFields = shouldQuickFilterExcludeHiddenColumns(filterModel) ? gridVisibleColumnFieldsSelector(apiRef) : gridColumnFieldsSelector(apiRef);\n const appliersPerField = [];\n const {\n ignoreDiacritics\n } = apiRef.current.rootProps;\n const publicApiRef = getPublicApiRef(apiRef);\n columnFields.forEach(field => {\n const column = apiRef.current.getColumn(field);\n const getApplyQuickFilterFn = column?.getApplyQuickFilterFn;\n if (getApplyQuickFilterFn) {\n appliersPerField.push({\n column,\n appliers: quickFilterValues.map(quickFilterValue => {\n const value = ignoreDiacritics ? removeDiacritics(quickFilterValue) : quickFilterValue;\n return {\n fn: getApplyQuickFilterFn(value, column, publicApiRef)\n };\n })\n });\n }\n });\n return function isRowMatchingQuickFilter(row, shouldApplyFilter) {\n const result = {};\n\n /* eslint-disable no-labels */\n outer: for (let v = 0; v < quickFilterValues.length; v += 1) {\n const filterValue = quickFilterValues[v];\n for (let i = 0; i < appliersPerField.length; i += 1) {\n const {\n column,\n appliers\n } = appliersPerField[i];\n const {\n field\n } = column;\n if (shouldApplyFilter && !shouldApplyFilter(field)) {\n continue;\n }\n const applier = appliers[v];\n let value = apiRef.current.getRowValue(row, column);\n if (applier.fn === null) {\n continue;\n }\n if (ignoreDiacritics) {\n value = removeDiacritics(value);\n }\n const isMatching = applier.fn(value, row, column, publicApiRef);\n if (isMatching) {\n result[filterValue] = true;\n continue outer;\n }\n }\n result[filterValue] = false;\n }\n return result;\n };\n};\nexport const buildAggregatedFilterApplier = (filterModel, apiRef, disableEval) => {\n const isRowMatchingFilterItems = buildAggregatedFilterItemsApplier(filterModel, apiRef, disableEval);\n const isRowMatchingQuickFilter = buildAggregatedQuickFilterApplier(filterModel, apiRef);\n return function isRowMatchingFilters(row, shouldApplyFilter, result) {\n result.passingFilterItems = isRowMatchingFilterItems?.(row, shouldApplyFilter) ?? null;\n result.passingQuickFilterValues = isRowMatchingQuickFilter?.(row, shouldApplyFilter) ?? null;\n };\n};\nconst isNotNull = result => result != null;\nconst filterModelItems = (cache, apiRef, items) => {\n if (!cache.cleanedFilterItems) {\n cache.cleanedFilterItems = items.filter(item => getFilterCallbackFromItem(item, apiRef) !== null);\n }\n return cache.cleanedFilterItems;\n};\nexport const passFilterLogic = (allFilterItemResults, allQuickFilterResults, filterModel, apiRef, cache) => {\n const cleanedFilterItems = filterModelItems(cache, apiRef, filterModel.items);\n const cleanedFilterItemResults = allFilterItemResults.filter(isNotNull);\n const cleanedQuickFilterResults = allQuickFilterResults.filter(isNotNull);\n\n // get result for filter items model\n if (cleanedFilterItemResults.length > 0) {\n // Return true if the item pass with one of the rows\n const filterItemPredicate = item => {\n return cleanedFilterItemResults.some(filterItemResult => filterItemResult[item.id]);\n };\n const logicOperator = filterModel.logicOperator ?? getDefaultGridFilterModel().logicOperator;\n if (logicOperator === GridLogicOperator.And) {\n const passesAllFilters = cleanedFilterItems.every(filterItemPredicate);\n if (!passesAllFilters) {\n return false;\n }\n } else {\n const passesSomeFilters = cleanedFilterItems.some(filterItemPredicate);\n if (!passesSomeFilters) {\n return false;\n }\n }\n }\n\n // get result for quick filter model\n if (cleanedQuickFilterResults.length > 0 && filterModel.quickFilterValues != null) {\n // Return true if the item pass with one of the rows\n const quickFilterValuePredicate = value => {\n return cleanedQuickFilterResults.some(quickFilterValueResult => quickFilterValueResult[value]);\n };\n const quickFilterLogicOperator = filterModel.quickFilterLogicOperator ?? getDefaultGridFilterModel().quickFilterLogicOperator;\n if (quickFilterLogicOperator === GridLogicOperator.And) {\n const passesAllQuickFilterValues = filterModel.quickFilterValues.every(quickFilterValuePredicate);\n if (!passesAllQuickFilterValues) {\n return false;\n }\n } else {\n const passesSomeQuickFilterValues = filterModel.quickFilterValues.some(quickFilterValuePredicate);\n if (!passesSomeQuickFilterValues) {\n return false;\n }\n }\n }\n return true;\n};","import { GridFilterInputValue } from \"../components/panel/filterPanel/GridFilterInputValue.js\";\nimport { escapeRegExp } from \"../utils/utils.js\";\nimport { GridFilterInputMultipleValue } from \"../components/panel/filterPanel/GridFilterInputMultipleValue.js\";\nimport { removeDiacritics } from \"../hooks/features/filter/gridFilterUtils.js\";\nexport const getGridStringQuickFilterFn = value => {\n if (!value) {\n return null;\n }\n const filterRegex = new RegExp(escapeRegExp(value), 'i');\n return (_, row, column, apiRef) => {\n let columnValue = apiRef.current.getRowFormattedValue(row, column);\n if (apiRef.current.ignoreDiacritics) {\n columnValue = removeDiacritics(columnValue);\n }\n return columnValue != null ? filterRegex.test(columnValue.toString()) : false;\n };\n};\nconst createContainsFilterFn = (disableTrim, negate) => filterItem => {\n if (!filterItem.value) {\n return null;\n }\n const trimmedValue = disableTrim ? filterItem.value : filterItem.value.trim();\n const filterRegex = new RegExp(escapeRegExp(trimmedValue), 'i');\n return value => {\n if (value == null) {\n return negate;\n }\n const matches = filterRegex.test(String(value));\n return negate ? !matches : matches;\n };\n};\nconst createEqualityFilterFn = (disableTrim, negate) => filterItem => {\n if (!filterItem.value) {\n return null;\n }\n const trimmedValue = disableTrim ? filterItem.value : filterItem.value.trim();\n const collator = new Intl.Collator(undefined, {\n sensitivity: 'base',\n usage: 'search'\n });\n return value => {\n if (value == null) {\n return negate;\n }\n const isEqual = collator.compare(trimmedValue, value.toString()) === 0;\n return negate ? !isEqual : isEqual;\n };\n};\nconst createEmptyFilterFn = negate => () => {\n return value => {\n const isEmpty = value === '' || value == null;\n return negate ? !isEmpty : isEmpty;\n };\n};\nexport const getGridStringOperators = (disableTrim = false) => [{\n value: 'contains',\n getApplyFilterFn: createContainsFilterFn(disableTrim, false),\n InputComponent: GridFilterInputValue\n}, {\n value: 'doesNotContain',\n getApplyFilterFn: createContainsFilterFn(disableTrim, true),\n InputComponent: GridFilterInputValue\n}, {\n value: 'equals',\n getApplyFilterFn: createEqualityFilterFn(disableTrim, false),\n InputComponent: GridFilterInputValue\n}, {\n value: 'doesNotEqual',\n getApplyFilterFn: createEqualityFilterFn(disableTrim, true),\n InputComponent: GridFilterInputValue\n}, {\n value: 'startsWith',\n getApplyFilterFn: filterItem => {\n if (!filterItem.value) {\n return null;\n }\n const filterItemValue = disableTrim ? filterItem.value : filterItem.value.trim();\n const filterRegex = new RegExp(`^${escapeRegExp(filterItemValue)}.*$`, 'i');\n return value => {\n return value != null ? filterRegex.test(value.toString()) : false;\n };\n },\n InputComponent: GridFilterInputValue\n}, {\n value: 'endsWith',\n getApplyFilterFn: filterItem => {\n if (!filterItem.value) {\n return null;\n }\n const filterItemValue = disableTrim ? filterItem.value : filterItem.value.trim();\n const filterRegex = new RegExp(`.*${escapeRegExp(filterItemValue)}$`, 'i');\n return value => {\n return value != null ? filterRegex.test(value.toString()) : false;\n };\n },\n InputComponent: GridFilterInputValue\n}, {\n value: 'isEmpty',\n getApplyFilterFn: createEmptyFilterFn(false),\n requiresFilterValue: false\n}, {\n value: 'isNotEmpty',\n getApplyFilterFn: createEmptyFilterFn(true),\n requiresFilterValue: false\n}, {\n value: 'isAnyOf',\n getApplyFilterFn: filterItem => {\n if (!Array.isArray(filterItem.value) || filterItem.value.length === 0) {\n return null;\n }\n const filterItemValue = disableTrim ? filterItem.value : filterItem.value.map(val => val.trim());\n const collator = new Intl.Collator(undefined, {\n sensitivity: 'base',\n usage: 'search'\n });\n return value => value != null ? filterItemValue.some(filterValue => {\n return collator.compare(filterValue, value.toString() || '') === 0;\n }) : false;\n },\n InputComponent: GridFilterInputMultipleValue\n}];","import { renderEditInputCell } from \"../components/cell/GridEditInputCell.js\";\nimport { gridStringOrNumberComparator } from \"../hooks/features/sorting/gridSortingUtils.js\";\nimport { getGridStringOperators, getGridStringQuickFilterFn } from \"./gridStringOperators.js\";\n\n/**\n * TODO: Move pro and premium properties outside of this Community file\n */\nexport const GRID_STRING_COL_DEF = {\n width: 100,\n minWidth: 50,\n maxWidth: Infinity,\n hideable: true,\n sortable: true,\n resizable: true,\n filterable: true,\n groupable: true,\n pinnable: true,\n // @ts-ignore\n aggregable: true,\n editable: false,\n sortComparator: gridStringOrNumberComparator,\n type: 'string',\n align: 'left',\n filterOperators: getGridStringOperators(),\n renderEditCell: renderEditInputCell,\n getApplyQuickFilterFn: getGridStringQuickFilterFn\n};","'use client';\n\nimport * as React from 'react';\nexport const GridConfigurationContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== 'production') {\n GridConfigurationContext.displayName = 'GridConfigurationContext';\n}","import * as React from 'react';\nimport { GridConfigurationContext } from \"../../components/GridConfigurationContext.js\";\nexport const useGridConfiguration = () => {\n const configuration = React.useContext(GridConfigurationContext);\n if (configuration === undefined) {\n throw new Error(['MUI X: Could not find the Data Grid configuration context.', 'It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.', 'This can also happen if you are bundling multiple versions of the Data Grid.'].join('\\n'));\n }\n return configuration;\n};","import * as React from 'react';\nimport { useGridConfiguration } from \"../../hooks/utils/useGridConfiguration.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst CLASSNAME_PREFIX = 'MuiDataGridVariables';\nconst CSSVariablesContext = /*#__PURE__*/React.createContext({\n className: 'unset',\n tag: /*#__PURE__*/_jsx(\"style\", {\n href: \"/unset\"\n })\n});\nexport function useCSSVariablesClass() {\n return React.useContext(CSSVariablesContext).className;\n}\nexport function useCSSVariablesContext() {\n return React.useContext(CSSVariablesContext);\n}\nexport function GridPortalWrapper({\n children\n}) {\n const className = useCSSVariablesClass();\n return /*#__PURE__*/_jsx(\"div\", {\n className: className,\n children: children\n });\n}\nexport function GridCSSVariablesContext(props) {\n const config = useGridConfiguration();\n const description = config.hooks.useCSSVariables();\n const context = React.useMemo(() => {\n const className = `${CLASSNAME_PREFIX}-${description.id}`;\n const cssString = `.${className}{${variablesToString(description.variables)}}`;\n const tag = /*#__PURE__*/_jsx(\"style\", {\n href: `/${className}`,\n children: cssString\n });\n return {\n className,\n tag\n };\n }, [description]);\n return /*#__PURE__*/_jsx(CSSVariablesContext.Provider, {\n value: context,\n children: props.children\n });\n}\nfunction variablesToString(variables) {\n let output = '';\n for (const key in variables) {\n if (Object.hasOwn(variables, key)) {\n output += `${key}:${variables[key]};`;\n }\n }\n return output;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"open\", \"target\", \"onClose\", \"children\", \"position\", \"className\", \"onExited\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses, unstable_useEnhancedEffect as useEnhancedEffect, HTMLElementType } from '@mui/utils';\nimport { styled } from '@mui/material/styles';\nimport { vars } from \"../../constants/cssVariables.js\";\nimport { useCSSVariablesClass } from \"../../utils/css/context.js\";\nimport { getDataGridUtilityClass, gridClasses } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { NotRendered } from \"../../utils/assert.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['menu']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridMenuRoot = styled(NotRendered, {\n name: 'MuiDataGrid',\n slot: 'Menu'\n})({\n zIndex: vars.zIndex.menu,\n [`& .${gridClasses.menuList}`]: {\n outline: 0\n }\n});\nfunction GridMenu(props) {\n const {\n open,\n target,\n onClose,\n children,\n position,\n className,\n onExited\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const classes = useUtilityClasses(rootProps);\n const variablesClass = useCSSVariablesClass();\n const savedFocusRef = React.useRef(null);\n useEnhancedEffect(() => {\n if (open) {\n savedFocusRef.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;\n } else {\n savedFocusRef.current?.focus?.();\n savedFocusRef.current = null;\n }\n }, [open]);\n React.useEffect(() => {\n // Emit menuOpen or menuClose events\n const eventName = open ? 'menuOpen' : 'menuClose';\n apiRef.current.publishEvent(eventName, {\n target\n });\n }, [apiRef, open, target]);\n const handleClickAway = event => {\n if (event.target && (target === event.target || target?.contains(event.target))) {\n return;\n }\n onClose(event);\n };\n return /*#__PURE__*/_jsx(GridMenuRoot, _extends({\n as: rootProps.slots.basePopper,\n className: clsx(classes.root, className, variablesClass),\n ownerState: rootProps,\n open: open,\n target: target,\n transition: true,\n placement: position,\n onClickAway: handleClickAway,\n onExited: onExited,\n clickAwayMouseEvent: \"onMouseDown\"\n }, other, rootProps.slotProps?.basePopper, {\n children: children\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridMenu.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n children: PropTypes.node,\n className: PropTypes.string,\n onClose: PropTypes.func.isRequired,\n onExited: PropTypes.func,\n open: PropTypes.bool.isRequired,\n position: PropTypes.oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n target: HTMLElementType\n} : void 0;\nexport { GridMenu };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"api\", \"colDef\", \"id\", \"hasFocus\", \"isEditable\", \"field\", \"value\", \"formattedValue\", \"row\", \"rowNode\", \"cellMode\", \"tabIndex\", \"position\", \"focusElementRef\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { unstable_useId as useId } from '@mui/utils';\nimport { gridClasses } from \"../../constants/gridClasses.js\";\nimport { GridMenu } from \"../menu/GridMenu.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst hasActions = colDef => typeof colDef.getActions === 'function';\nfunction GridActionsCell(props) {\n const {\n colDef,\n id,\n hasFocus,\n tabIndex,\n position = 'bottom-end',\n focusElementRef\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const [focusedButtonIndex, setFocusedButtonIndex] = React.useState(-1);\n const [open, setOpen] = React.useState(false);\n const apiRef = useGridApiContext();\n const rootRef = React.useRef(null);\n const buttonRef = React.useRef(null);\n const ignoreCallToFocus = React.useRef(false);\n const touchRippleRefs = React.useRef({});\n const isRtl = useRtl();\n const menuId = useId();\n const buttonId = useId();\n const rootProps = useGridRootProps();\n if (!hasActions(colDef)) {\n throw new Error('MUI X: Missing the `getActions` property in the `GridColDef`.');\n }\n const options = colDef.getActions(apiRef.current.getRowParams(id));\n const iconButtons = options.filter(option => !option.props.showInMenu);\n const menuButtons = options.filter(option => option.props.showInMenu);\n const numberOfButtons = iconButtons.length + (menuButtons.length ? 1 : 0);\n React.useLayoutEffect(() => {\n if (!hasFocus) {\n Object.entries(touchRippleRefs.current).forEach(([index, ref]) => {\n ref?.stop({}, () => {\n delete touchRippleRefs.current[index];\n });\n });\n }\n }, [hasFocus]);\n React.useEffect(() => {\n if (focusedButtonIndex < 0 || !rootRef.current) {\n return;\n }\n if (focusedButtonIndex >= rootRef.current.children.length) {\n return;\n }\n const child = rootRef.current.children[focusedButtonIndex];\n child.focus({\n preventScroll: true\n });\n }, [focusedButtonIndex]);\n React.useEffect(() => {\n if (!hasFocus) {\n setFocusedButtonIndex(-1);\n ignoreCallToFocus.current = false;\n }\n }, [hasFocus]);\n React.useImperativeHandle(focusElementRef, () => ({\n focus() {\n // If ignoreCallToFocus is true, then one of the buttons was clicked and the focus is already set\n if (!ignoreCallToFocus.current) {\n // find the first focusable button and pass the index to the state\n const focusableButtonIndex = options.findIndex(o => !o.props.disabled);\n setFocusedButtonIndex(focusableButtonIndex);\n }\n }\n }), [options]);\n React.useEffect(() => {\n if (focusedButtonIndex >= numberOfButtons) {\n setFocusedButtonIndex(numberOfButtons - 1);\n }\n }, [focusedButtonIndex, numberOfButtons]);\n const showMenu = () => {\n setOpen(true);\n setFocusedButtonIndex(numberOfButtons - 1);\n ignoreCallToFocus.current = true;\n };\n const hideMenu = () => {\n setOpen(false);\n };\n const toggleMenu = event => {\n event.stopPropagation();\n event.preventDefault();\n if (open) {\n hideMenu();\n } else {\n showMenu();\n }\n };\n const handleTouchRippleRef = index => instance => {\n touchRippleRefs.current[index] = instance;\n };\n const handleButtonClick = (index, onClick) => event => {\n setFocusedButtonIndex(index);\n ignoreCallToFocus.current = true;\n if (onClick) {\n onClick(event);\n }\n };\n const handleRootKeyDown = event => {\n if (numberOfButtons <= 1) {\n return;\n }\n const getNewIndex = (index, direction) => {\n if (index < 0 || index > options.length) {\n return index;\n }\n\n // for rtl mode we need to reverse the direction\n const rtlMod = isRtl ? -1 : 1;\n const indexMod = (direction === 'left' ? -1 : 1) * rtlMod;\n\n // if the button that should receive focus is disabled go one more step\n return options[index + indexMod]?.props.disabled ? getNewIndex(index + indexMod, direction) : index + indexMod;\n };\n let newIndex = focusedButtonIndex;\n if (event.key === 'ArrowRight') {\n newIndex = getNewIndex(focusedButtonIndex, 'right');\n } else if (event.key === 'ArrowLeft') {\n newIndex = getNewIndex(focusedButtonIndex, 'left');\n }\n if (newIndex < 0 || newIndex >= numberOfButtons) {\n return; // We're already in the first or last item = do nothing and let the grid listen the event\n }\n if (newIndex !== focusedButtonIndex) {\n event.preventDefault(); // Prevent scrolling\n event.stopPropagation(); // Don't stop propagation for other keys, for example ArrowUp\n setFocusedButtonIndex(newIndex);\n }\n };\n const handleListKeyDown = event => {\n if (event.key === 'Tab') {\n event.preventDefault();\n }\n if (['Tab', 'Escape'].includes(event.key)) {\n hideMenu();\n }\n };\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n role: \"menu\",\n ref: rootRef,\n tabIndex: -1,\n className: gridClasses.actionsCell,\n onKeyDown: handleRootKeyDown\n }, other, {\n children: [iconButtons.map((button, index) => /*#__PURE__*/React.cloneElement(button, {\n key: index,\n touchRippleRef: handleTouchRippleRef(index),\n onClick: handleButtonClick(index, button.props.onClick),\n tabIndex: focusedButtonIndex === index ? tabIndex : -1\n })), menuButtons.length > 0 && buttonId && /*#__PURE__*/_jsx(rootProps.slots.baseIconButton, _extends({\n ref: buttonRef,\n id: buttonId,\n \"aria-label\": apiRef.current.getLocaleText('actionsCellMore'),\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": open,\n \"aria-controls\": open ? menuId : undefined,\n role: \"menuitem\",\n size: \"small\",\n onClick: toggleMenu,\n touchRippleRef: handleTouchRippleRef(buttonId),\n tabIndex: focusedButtonIndex === iconButtons.length ? tabIndex : -1\n }, rootProps.slotProps?.baseIconButton, {\n children: /*#__PURE__*/_jsx(rootProps.slots.moreActionsIcon, {\n fontSize: \"small\"\n })\n })), menuButtons.length > 0 && /*#__PURE__*/_jsx(GridMenu, {\n open: open,\n target: buttonRef.current,\n position: position,\n onClose: hideMenu,\n children: /*#__PURE__*/_jsx(rootProps.slots.baseMenuList, {\n id: menuId,\n className: gridClasses.menuList,\n onKeyDown: handleListKeyDown,\n \"aria-labelledby\": buttonId,\n autoFocusItem: true,\n children: menuButtons.map((button, index) => /*#__PURE__*/React.cloneElement(button, {\n key: index,\n closeMenu: hideMenu\n }))\n })\n })]\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridActionsCell.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n api: PropTypes.object,\n /**\n * The mode of the cell.\n */\n cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,\n /**\n * The column of the row that the current cell belongs to.\n */\n colDef: PropTypes.object.isRequired,\n /**\n * The column field of the cell that triggered the event.\n */\n field: PropTypes.string.isRequired,\n /**\n * A ref allowing to set imperative focus.\n * It can be passed to the element that should receive focus.\n * @ignore - do not document.\n */\n focusElementRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n focus: PropTypes.func.isRequired\n })\n })]),\n /**\n * The cell value formatted with the column valueFormatter.\n */\n formattedValue: PropTypes.any,\n /**\n * If true, the cell is the active element.\n */\n hasFocus: PropTypes.bool.isRequired,\n /**\n * The grid row id.\n */\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,\n /**\n * If true, the cell is editable.\n */\n isEditable: PropTypes.bool,\n position: PropTypes.oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * The row model of the row that the current cell belongs to.\n */\n row: PropTypes.any.isRequired,\n /**\n * The node of the row that the current cell belongs to.\n */\n rowNode: PropTypes.object.isRequired,\n /**\n * the tabIndex value.\n */\n tabIndex: PropTypes.oneOf([-1, 0]).isRequired,\n /**\n * The cell value.\n * If the column has `valueGetter`, use `params.row` to directly access the fields.\n */\n value: PropTypes.any\n} : void 0;\nexport { GridActionsCell };\nexport const renderActionsCell = params => /*#__PURE__*/_jsx(GridActionsCell, _extends({}, params));","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { GRID_STRING_COL_DEF } from \"./gridStringColDef.js\";\nimport { renderActionsCell } from \"../components/cell/GridActionsCell.js\";\nexport const GRID_ACTIONS_COLUMN_TYPE = 'actions';\nexport const GRID_ACTIONS_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {\n sortable: false,\n filterable: false,\n // @ts-ignore\n aggregable: false,\n width: 100,\n display: 'flex',\n align: 'center',\n headerAlign: 'center',\n headerName: '',\n disableColumnMenu: true,\n disableExport: true,\n renderCell: renderActionsCell,\n getApplyQuickFilterFn: () => null\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { gridRowNodeSelector } from \"./gridRowsSelector.js\";\nexport const GRID_ROOT_GROUP_ID = `auto-generated-group-node-root`;\nexport const GRID_ID_AUTOGENERATED = Symbol('mui.id_autogenerated');\nexport const buildRootGroup = () => ({\n type: 'group',\n id: GRID_ROOT_GROUP_ID,\n depth: -1,\n groupingField: null,\n groupingKey: null,\n isAutoGenerated: true,\n children: [],\n childrenFromPath: {},\n childrenExpanded: true,\n parent: null\n});\n\n/**\n * A helper function to check if the id provided is valid.\n * @param {GridRowId} id Id as [[GridRowId]].\n * @param {GridRowModel | Partial<GridRowModel>} row Row as [[GridRowModel]].\n * @param {string} detailErrorMessage A custom error message to display for invalid IDs\n */\nexport function checkGridRowIdIsValid(id, row, detailErrorMessage = 'A row was provided without id in the rows prop:') {\n if (id == null) {\n throw new Error(['MUI X: The Data Grid component requires all rows to have a unique `id` property.', 'Alternatively, you can use the `getRowId` prop to specify a custom id for each row.', detailErrorMessage, JSON.stringify(row)].join('\\n'));\n }\n}\nexport const getRowIdFromRowModel = (rowModel, getRowId, detailErrorMessage) => {\n const id = getRowId ? getRowId(rowModel) : rowModel.id;\n checkGridRowIdIsValid(id, rowModel, detailErrorMessage);\n return id;\n};\nexport const getRowValue = (row, colDef, apiRef) => {\n const field = colDef.field;\n if (!colDef || !colDef.valueGetter) {\n return row[field];\n }\n const value = row[colDef.field];\n return colDef.valueGetter(value, row, colDef, apiRef);\n};\nexport const createRowsInternalCache = ({\n rows,\n getRowId,\n loading,\n rowCount\n}) => {\n const updates = {\n type: 'full',\n rows: []\n };\n const dataRowIdToModelLookup = {};\n for (let i = 0; i < rows.length; i += 1) {\n const model = rows[i];\n const id = getRowIdFromRowModel(model, getRowId);\n dataRowIdToModelLookup[id] = model;\n updates.rows.push(id);\n }\n return {\n rowsBeforePartialUpdates: rows,\n loadingPropBeforePartialUpdates: loading,\n rowCountPropBeforePartialUpdates: rowCount,\n updates,\n dataRowIdToModelLookup\n };\n};\nexport const getTopLevelRowCount = ({\n tree,\n rowCountProp = 0\n}) => {\n const rootGroupNode = tree[GRID_ROOT_GROUP_ID];\n return Math.max(rowCountProp, rootGroupNode.children.length + (rootGroupNode.footerId == null ? 0 : 1));\n};\nexport const getRowsStateFromCache = ({\n apiRef,\n rowCountProp = 0,\n loadingProp,\n previousTree,\n previousTreeDepths,\n previousGroupsToFetch\n}) => {\n const cache = apiRef.current.caches.rows;\n\n // 1. Apply the \"rowTreeCreation\" family processing.\n const {\n tree: unProcessedTree,\n treeDepths: unProcessedTreeDepths,\n dataRowIds: unProcessedDataRowIds,\n groupingName,\n groupsToFetch = []\n } = apiRef.current.applyStrategyProcessor('rowTreeCreation', {\n previousTree,\n previousTreeDepths,\n updates: cache.updates,\n dataRowIdToModelLookup: cache.dataRowIdToModelLookup,\n previousGroupsToFetch\n });\n\n // 2. Apply the \"hydrateRows\" pipe-processing.\n const groupingParamsWithHydrateRows = apiRef.current.unstable_applyPipeProcessors('hydrateRows', {\n tree: unProcessedTree,\n treeDepths: unProcessedTreeDepths,\n dataRowIds: unProcessedDataRowIds,\n dataRowIdToModelLookup: cache.dataRowIdToModelLookup\n });\n\n // 3. Reset the cache updates\n apiRef.current.caches.rows.updates = {\n type: 'partial',\n actions: {\n insert: [],\n modify: [],\n remove: []\n },\n idToActionLookup: {}\n };\n return _extends({}, groupingParamsWithHydrateRows, {\n totalRowCount: Math.max(rowCountProp, groupingParamsWithHydrateRows.dataRowIds.length),\n totalTopLevelRowCount: getTopLevelRowCount({\n tree: groupingParamsWithHydrateRows.tree,\n rowCountProp\n }),\n groupingName,\n loading: loadingProp,\n groupsToFetch\n });\n};\nexport const isAutogeneratedRow = row => GRID_ID_AUTOGENERATED in row;\nexport const isAutogeneratedRowNode = rowNode => rowNode.type === 'skeletonRow' || rowNode.type === 'footer' || rowNode.type === 'group' && rowNode.isAutoGenerated || rowNode.type === 'pinnedRow' && rowNode.isAutoGenerated;\nexport const getTreeNodeDescendants = (tree, parentId, skipAutoGeneratedRows) => {\n const node = tree[parentId];\n if (node.type !== 'group') {\n return [];\n }\n const validDescendants = [];\n for (let i = 0; i < node.children.length; i += 1) {\n const child = node.children[i];\n if (!skipAutoGeneratedRows || !isAutogeneratedRowNode(tree[child])) {\n validDescendants.push(child);\n }\n const childDescendants = getTreeNodeDescendants(tree, child, skipAutoGeneratedRows);\n for (let j = 0; j < childDescendants.length; j += 1) {\n validDescendants.push(childDescendants[j]);\n }\n }\n if (!skipAutoGeneratedRows && node.footerId != null) {\n validDescendants.push(node.footerId);\n }\n return validDescendants;\n};\nexport const updateCacheWithNewRows = ({\n previousCache,\n getRowId,\n updates,\n groupKeys\n}) => {\n if (previousCache.updates.type === 'full') {\n throw new Error('MUI X: Unable to prepare a partial update if a full update is not applied yet.');\n }\n\n // Remove duplicate updates.\n // A server can batch updates, and send several updates for the same row in one fn call.\n const uniqueUpdates = new Map();\n updates.forEach(update => {\n const id = getRowIdFromRowModel(update, getRowId, 'A row was provided without id when calling updateRows():');\n if (uniqueUpdates.has(id)) {\n uniqueUpdates.set(id, _extends({}, uniqueUpdates.get(id), update));\n } else {\n uniqueUpdates.set(id, update);\n }\n });\n const partialUpdates = {\n type: 'partial',\n actions: {\n insert: [...(previousCache.updates.actions.insert ?? [])],\n modify: [...(previousCache.updates.actions.modify ?? [])],\n remove: [...(previousCache.updates.actions.remove ?? [])]\n },\n idToActionLookup: _extends({}, previousCache.updates.idToActionLookup),\n groupKeys\n };\n const dataRowIdToModelLookup = _extends({}, previousCache.dataRowIdToModelLookup);\n const alreadyAppliedActionsToRemove = {\n insert: {},\n modify: {},\n remove: {}\n };\n\n // Depending on the action already applied to the data row,\n // We might want drop the already-applied-update.\n // For instance:\n // - if you delete then insert, then you don't want to apply the deletion in the tree.\n // - if you insert, then modify, then you just want to apply the insertion in the tree.\n uniqueUpdates.forEach((partialRow, id) => {\n const actionAlreadyAppliedToRow = partialUpdates.idToActionLookup[id];\n\n // Action === \"delete\"\n // eslint-disable-next-line no-underscore-dangle\n if (partialRow._action === 'delete') {\n // If the data row has been removed since the last state update,\n // Then do nothing.\n if (actionAlreadyAppliedToRow === 'remove' || !dataRowIdToModelLookup[id]) {\n return;\n }\n\n // If the data row has been inserted / modified since the last state update,\n // Then drop this \"insert\" / \"modify\" update.\n if (actionAlreadyAppliedToRow != null) {\n alreadyAppliedActionsToRemove[actionAlreadyAppliedToRow][id] = true;\n }\n\n // Remove the data row from the lookups and add it to the \"delete\" update.\n partialUpdates.actions.remove.push(id);\n delete dataRowIdToModelLookup[id];\n return;\n }\n const oldRow = dataRowIdToModelLookup[id];\n\n // Action === \"modify\"\n if (oldRow) {\n // If the data row has been removed since the last state update,\n // Then drop this \"remove\" update and add it to the \"modify\" update instead.\n if (actionAlreadyAppliedToRow === 'remove') {\n alreadyAppliedActionsToRemove.remove[id] = true;\n partialUpdates.actions.modify.push(id);\n }\n // If the date has not been inserted / modified since the last state update,\n // Then add it to the \"modify\" update (if it has been inserted it should just remain \"inserted\").\n else if (actionAlreadyAppliedToRow == null) {\n partialUpdates.actions.modify.push(id);\n }\n\n // Update the data row lookups.\n dataRowIdToModelLookup[id] = _extends({}, oldRow, partialRow);\n return;\n }\n\n // Action === \"insert\"\n // If the data row has been removed since the last state update,\n // Then drop the \"remove\" update and add it to the \"insert\" update instead.\n if (actionAlreadyAppliedToRow === 'remove') {\n alreadyAppliedActionsToRemove.remove[id] = true;\n partialUpdates.actions.insert.push(id);\n }\n // If the data row has not been inserted since the last state update,\n // Then add it to the \"insert\" update.\n // `actionAlreadyAppliedToRow` can't be equal to \"modify\", otherwise we would have an `oldRow` above.\n else if (actionAlreadyAppliedToRow == null) {\n partialUpdates.actions.insert.push(id);\n }\n\n // Update the data row lookups.\n dataRowIdToModelLookup[id] = partialRow;\n });\n const actionTypeWithActionsToRemove = Object.keys(alreadyAppliedActionsToRemove);\n for (let i = 0; i < actionTypeWithActionsToRemove.length; i += 1) {\n const actionType = actionTypeWithActionsToRemove[i];\n const idsToRemove = alreadyAppliedActionsToRemove[actionType];\n if (Object.keys(idsToRemove).length > 0) {\n partialUpdates.actions[actionType] = partialUpdates.actions[actionType].filter(id => !idsToRemove[id]);\n }\n }\n return {\n dataRowIdToModelLookup,\n updates: partialUpdates,\n rowsBeforePartialUpdates: previousCache.rowsBeforePartialUpdates,\n loadingPropBeforePartialUpdates: previousCache.loadingPropBeforePartialUpdates,\n rowCountPropBeforePartialUpdates: previousCache.rowCountPropBeforePartialUpdates\n };\n};\nexport const minimalContentHeight = 'var(--DataGrid-overlayHeight, calc(var(--height) * 2))';\nexport function computeRowsUpdates(apiRef, updates, getRowId) {\n const nonPinnedRowsUpdates = [];\n updates.forEach(update => {\n const id = getRowIdFromRowModel(update, getRowId, 'A row was provided without id when calling updateRows():');\n const rowNode = gridRowNodeSelector(apiRef, id);\n if (rowNode?.type === 'pinnedRow') {\n // @ts-ignore because otherwise `release:build` doesn't work\n const pinnedRowsCache = apiRef.current.caches.pinnedRows;\n const prevModel = pinnedRowsCache.idLookup[id];\n if (prevModel) {\n pinnedRowsCache.idLookup[id] = _extends({}, prevModel, update);\n }\n } else {\n nonPinnedRowsUpdates.push(update);\n }\n });\n return nonPinnedRowsUpdates;\n}\nlet warnedOnceInvalidRowHeight = false;\nexport const getValidRowHeight = (rowHeightProp, defaultRowHeight, warningMessage) => {\n if (typeof rowHeightProp === 'number' && rowHeightProp > 0) {\n return rowHeightProp;\n }\n if (process.env.NODE_ENV !== 'production' && !warnedOnceInvalidRowHeight && typeof rowHeightProp !== 'undefined' && rowHeightProp !== null) {\n console.warn(warningMessage);\n warnedOnceInvalidRowHeight = true;\n }\n return defaultRowHeight;\n};\nexport const rowHeightWarning = [`MUI X: The \\`rowHeight\\` prop should be a number greater than 0.`, `The default value will be used instead.`].join('\\n');\nexport const getRowHeightWarning = [`MUI X: The \\`getRowHeight\\` prop should return a number greater than 0 or 'auto'.`, `The default value will be used instead.`].join('\\n');","export const GRID_TREE_DATA_GROUPING_FIELD = '__tree_data_group__';\nexport const GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD = '__row_group_by_columns_group__';\nexport const GRID_DETAIL_PANEL_TOGGLE_FIELD = '__detail_panel_toggle__';\nexport let PinnedColumnPosition = /*#__PURE__*/function (PinnedColumnPosition) {\n PinnedColumnPosition[PinnedColumnPosition[\"NONE\"] = 0] = \"NONE\";\n PinnedColumnPosition[PinnedColumnPosition[\"LEFT\"] = 1] = \"LEFT\";\n PinnedColumnPosition[PinnedColumnPosition[\"RIGHT\"] = 2] = \"RIGHT\";\n PinnedColumnPosition[PinnedColumnPosition[\"VIRTUAL\"] = 3] = \"VIRTUAL\";\n return PinnedColumnPosition;\n}({});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"id\", \"value\", \"formattedValue\", \"api\", \"field\", \"row\", \"rowNode\", \"colDef\", \"cellMode\", \"isEditable\", \"hasFocus\", \"tabIndex\", \"hideDescendantCount\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useGridSelector } from \"../../hooks/utils/useGridSelector.js\";\nimport { gridRowMaximumTreeDepthSelector } from \"../../hooks/features/rows/gridRowsSelector.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { isAutogeneratedRowNode } from \"../../hooks/features/rows/gridRowsUtils.js\";\nimport { GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD } from \"../../internals/constants.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['booleanCell']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nfunction GridBooleanCellRaw(props) {\n const {\n value,\n rowNode\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const ownerState = {\n classes: rootProps.classes\n };\n const classes = useUtilityClasses(ownerState);\n const maxDepth = useGridSelector(apiRef, gridRowMaximumTreeDepthSelector);\n const isServerSideRowGroupingRow =\n // @ts-expect-error - Access tree data prop\n maxDepth > 0 && rowNode.type === 'group' && rootProps.treeData === false;\n const Icon = React.useMemo(() => value ? rootProps.slots.booleanCellTrueIcon : rootProps.slots.booleanCellFalseIcon, [rootProps.slots.booleanCellFalseIcon, rootProps.slots.booleanCellTrueIcon, value]);\n if (isServerSideRowGroupingRow && value === undefined) {\n return null;\n }\n return /*#__PURE__*/_jsx(Icon, _extends({\n fontSize: \"small\",\n className: classes.root,\n titleAccess: apiRef.current.getLocaleText(value ? 'booleanCellTrueLabel' : 'booleanCellFalseLabel'),\n \"data-value\": Boolean(value)\n }, other));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridBooleanCellRaw.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * GridApi that let you manipulate the grid.\n */\n api: PropTypes.object.isRequired,\n /**\n * The mode of the cell.\n */\n cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,\n /**\n * The column of the row that the current cell belongs to.\n */\n colDef: PropTypes.object.isRequired,\n /**\n * The column field of the cell that triggered the event.\n */\n field: PropTypes.string.isRequired,\n /**\n * A ref allowing to set imperative focus.\n * It can be passed to the element that should receive focus.\n * @ignore - do not document.\n */\n focusElementRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n focus: PropTypes.func.isRequired\n })\n })]),\n /**\n * The cell value formatted with the column valueFormatter.\n */\n formattedValue: PropTypes.any,\n /**\n * If true, the cell is the active element.\n */\n hasFocus: PropTypes.bool.isRequired,\n hideDescendantCount: PropTypes.bool,\n /**\n * The grid row id.\n */\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,\n /**\n * If true, the cell is editable.\n */\n isEditable: PropTypes.bool,\n /**\n * The row model of the row that the current cell belongs to.\n */\n row: PropTypes.any.isRequired,\n /**\n * The node of the row that the current cell belongs to.\n */\n rowNode: PropTypes.object.isRequired,\n /**\n * the tabIndex value.\n */\n tabIndex: PropTypes.oneOf([-1, 0]).isRequired,\n /**\n * The cell value.\n * If the column has `valueGetter`, use `params.row` to directly access the fields.\n */\n value: PropTypes.any\n} : void 0;\nconst GridBooleanCell = /*#__PURE__*/React.memo(GridBooleanCellRaw);\nexport { GridBooleanCell };\nexport const renderBooleanCell = params => {\n if (params.field !== GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD && isAutogeneratedRowNode(params.rowNode)) {\n return '';\n }\n return /*#__PURE__*/_jsx(GridBooleanCell, _extends({}, params));\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"id\", \"value\", \"formattedValue\", \"api\", \"field\", \"row\", \"rowNode\", \"colDef\", \"cellMode\", \"isEditable\", \"tabIndex\", \"className\", \"hasFocus\", \"isValidating\", \"isProcessingProps\", \"error\", \"onValueChange\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses, unstable_useId as useId, unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['editBooleanCell']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nfunction GridEditBooleanCell(props) {\n const {\n id: idProp,\n value,\n field,\n className,\n hasFocus,\n onValueChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridApiContext();\n const inputRef = React.useRef(null);\n const id = useId();\n const [valueState, setValueState] = React.useState(value);\n const rootProps = useGridRootProps();\n const ownerState = {\n classes: rootProps.classes\n };\n const classes = useUtilityClasses(ownerState);\n const handleChange = React.useCallback(async event => {\n const newValue = event.target.checked;\n if (onValueChange) {\n await onValueChange(event, newValue);\n }\n setValueState(newValue);\n await apiRef.current.setEditCellValue({\n id: idProp,\n field,\n value: newValue\n }, event);\n }, [apiRef, field, idProp, onValueChange]);\n React.useEffect(() => {\n setValueState(value);\n }, [value]);\n useEnhancedEffect(() => {\n if (hasFocus) {\n inputRef.current.focus();\n }\n }, [hasFocus]);\n return /*#__PURE__*/_jsx(\"label\", _extends({\n htmlFor: id,\n className: clsx(classes.root, className)\n }, other, {\n children: /*#__PURE__*/_jsx(rootProps.slots.baseCheckbox, _extends({\n id: id,\n inputRef: inputRef,\n checked: Boolean(valueState),\n onChange: handleChange,\n size: \"small\"\n }, rootProps.slotProps?.baseCheckbox))\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridEditBooleanCell.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * GridApi that let you manipulate the grid.\n */\n api: PropTypes.object.isRequired,\n /**\n * The mode of the cell.\n */\n cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,\n changeReason: PropTypes.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),\n /**\n * The column of the row that the current cell belongs to.\n */\n colDef: PropTypes.object.isRequired,\n /**\n * The column field of the cell that triggered the event.\n */\n field: PropTypes.string.isRequired,\n /**\n * The cell value formatted with the column valueFormatter.\n */\n formattedValue: PropTypes.any,\n /**\n * If true, the cell is the active element.\n */\n hasFocus: PropTypes.bool.isRequired,\n /**\n * The grid row id.\n */\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,\n /**\n * If true, the cell is editable.\n */\n isEditable: PropTypes.bool,\n isProcessingProps: PropTypes.bool,\n isValidating: PropTypes.bool,\n /**\n * Callback called when the value is changed by the user.\n * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.\n * @param {boolean} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.\n * @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`\n */\n onValueChange: PropTypes.func,\n /**\n * The row model of the row that the current cell belongs to.\n */\n row: PropTypes.any.isRequired,\n /**\n * The node of the row that the current cell belongs to.\n */\n rowNode: PropTypes.object.isRequired,\n /**\n * the tabIndex value.\n */\n tabIndex: PropTypes.oneOf([-1, 0]).isRequired,\n /**\n * The cell value.\n * If the column has `valueGetter`, use `params.row` to directly access the fields.\n */\n value: PropTypes.any\n} : void 0;\nexport { GridEditBooleanCell };\nexport const renderEditBooleanCell = params => /*#__PURE__*/_jsx(GridEditBooleanCell, _extends({}, params));","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"item\", \"applyValue\", \"apiRef\", \"focusElementRef\", \"isFilterActive\", \"headerFilterMenu\", \"clearButton\", \"tabIndex\", \"slotProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { refType, unstable_useId as useId } from '@mui/utils';\nimport { useGridRootProps } from \"../../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction GridFilterInputBoolean(props) {\n const {\n item,\n applyValue,\n apiRef,\n focusElementRef,\n headerFilterMenu,\n clearButton,\n tabIndex,\n slotProps\n } = props,\n others = _objectWithoutPropertiesLoose(props, _excluded);\n const [filterValueState, setFilterValueState] = React.useState(sanitizeFilterItemValue(item.value));\n const rootProps = useGridRootProps();\n const labelId = useId();\n const selectId = useId();\n const baseSelectProps = rootProps.slotProps?.baseSelect || {};\n const isSelectNative = baseSelectProps.native ?? false;\n const baseSelectOptionProps = rootProps.slotProps?.baseSelectOption || {};\n const onFilterChange = React.useCallback(event => {\n const value = sanitizeFilterItemValue(event.target.value);\n setFilterValueState(value);\n applyValue(_extends({}, item, {\n value\n }));\n }, [applyValue, item]);\n React.useEffect(() => {\n setFilterValueState(sanitizeFilterItemValue(item.value));\n }, [item.value]);\n const label = slotProps?.root.label ?? apiRef.current.getLocaleText('filterPanelInputLabel');\n const rootSlotProps = slotProps?.root.slotProps;\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsxs(rootProps.slots.baseSelect, _extends({\n fullWidth: true,\n labelId: labelId,\n id: selectId,\n label: label,\n value: filterValueState === undefined ? '' : String(filterValueState),\n onChange: onFilterChange,\n native: isSelectNative,\n slotProps: {\n htmlInput: _extends({\n ref: focusElementRef,\n tabIndex\n }, rootSlotProps?.htmlInput)\n }\n }, baseSelectProps, others, slotProps?.root, {\n children: [/*#__PURE__*/_jsx(rootProps.slots.baseSelectOption, _extends({}, baseSelectOptionProps, {\n native: isSelectNative,\n value: \"\",\n children: apiRef.current.getLocaleText('filterValueAny')\n })), /*#__PURE__*/_jsx(rootProps.slots.baseSelectOption, _extends({}, baseSelectOptionProps, {\n native: isSelectNative,\n value: \"true\",\n children: apiRef.current.getLocaleText('filterValueTrue')\n })), /*#__PURE__*/_jsx(rootProps.slots.baseSelectOption, _extends({}, baseSelectOptionProps, {\n native: isSelectNative,\n value: \"false\",\n children: apiRef.current.getLocaleText('filterValueFalse')\n }))]\n })), headerFilterMenu, clearButton]\n });\n}\nexport function sanitizeFilterItemValue(value) {\n if (String(value).toLowerCase() === 'true') {\n return true;\n }\n if (String(value).toLowerCase() === 'false') {\n return false;\n }\n return undefined;\n}\nprocess.env.NODE_ENV !== \"production\" ? GridFilterInputBoolean.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n apiRef: PropTypes.shape({\n current: PropTypes.object.isRequired\n }).isRequired,\n applyValue: PropTypes.func.isRequired,\n className: PropTypes.string,\n clearButton: PropTypes.node,\n disabled: PropTypes.bool,\n focusElementRef: refType,\n headerFilterMenu: PropTypes.node,\n inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: (props, propName) => {\n if (props[propName] == null) {\n return null;\n }\n if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {\n return new Error(`Expected prop '${propName}' to be of type Element`);\n }\n return null;\n }\n })]),\n /**\n * It is `true` if the filter either has a value or an operator with no value\n * required is selected (for example `isEmpty`)\n */\n isFilterActive: PropTypes.bool,\n item: PropTypes.shape({\n field: PropTypes.string.isRequired,\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n operator: PropTypes.string.isRequired,\n value: PropTypes.any\n }).isRequired,\n onBlur: PropTypes.func,\n onFocus: PropTypes.func,\n slotProps: PropTypes.object,\n tabIndex: PropTypes.number\n} : void 0;\nexport { GridFilterInputBoolean };","import { GridFilterInputBoolean, sanitizeFilterItemValue } from \"../components/panel/filterPanel/GridFilterInputBoolean.js\";\nexport const getGridBooleanOperators = () => [{\n value: 'is',\n getApplyFilterFn: filterItem => {\n const sanitizedValue = sanitizeFilterItemValue(filterItem.value);\n if (sanitizedValue === undefined) {\n return null;\n }\n return value => Boolean(value) === sanitizedValue;\n },\n InputComponent: GridFilterInputBoolean\n}];","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { GRID_STRING_COL_DEF } from \"./gridStringColDef.js\";\nimport { renderBooleanCell } from \"../components/cell/GridBooleanCell.js\";\nimport { renderEditBooleanCell } from \"../components/cell/GridEditBooleanCell.js\";\nimport { gridNumberComparator } from \"../hooks/features/sorting/gridSortingUtils.js\";\nimport { getGridBooleanOperators } from \"./gridBooleanOperators.js\";\nconst gridBooleanFormatter = (value, row, column, apiRef) => {\n return value ? apiRef.current.getLocaleText('booleanCellTrueLabel') : apiRef.current.getLocaleText('booleanCellFalseLabel');\n};\nconst stringToBoolean = value => {\n switch (value.toLowerCase().trim()) {\n case 'true':\n case 'yes':\n case '1':\n return true;\n case 'false':\n case 'no':\n case '0':\n case 'null':\n case 'undefined':\n return false;\n default:\n return undefined;\n }\n};\nexport const GRID_BOOLEAN_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {\n type: 'boolean',\n display: 'flex',\n align: 'center',\n headerAlign: 'center',\n renderCell: renderBooleanCell,\n renderEditCell: renderEditBooleanCell,\n sortComparator: gridNumberComparator,\n valueFormatter: gridBooleanFormatter,\n filterOperators: getGridBooleanOperators(),\n getApplyQuickFilterFn: () => null,\n // @ts-ignore\n aggregable: false,\n // @ts-ignore\n pastedValueParser: value => stringToBoolean(value)\n});","export function isObjectEmpty(object) {\n // eslint-disable-next-line\n for (const _ in object) {\n return false;\n }\n return true;\n}","import { createRootSelector, createSelector, createSelectorMemoized } from \"../../../utils/createSelector.js\";\nimport { gridRowTreeSelector, gridRowsLookupSelector } from \"../rows/gridRowsSelector.js\";\nimport { GRID_ID_AUTOGENERATED, isAutogeneratedRowNode } from \"../rows/gridRowsUtils.js\";\n/**\n * @category Sorting\n * @ignore - do not document.\n */\nconst gridSortingStateSelector = createRootSelector(state => state.sorting);\n\n/**\n * Get the id of the rows after the sorting process.\n * @category Sorting\n */\nexport const gridSortedRowIdsSelector = createSelector(gridSortingStateSelector, sortingState => sortingState.sortedRows);\n\n/**\n * Get the id and the model of the rows after the sorting process.\n * @category Sorting\n */\nexport const gridSortedRowEntriesSelector = createSelectorMemoized(gridSortedRowIdsSelector, gridRowsLookupSelector, gridRowTreeSelector, (sortedIds, idRowsLookup, rowTree) => sortedIds.reduce((acc, id) => {\n const model = idRowsLookup[id];\n if (model) {\n acc.push({\n id,\n model\n });\n } else {\n const rowNode = rowTree[id];\n if (rowNode && isAutogeneratedRowNode(rowNode)) {\n acc.push({\n id,\n model: {\n [GRID_ID_AUTOGENERATED]: id\n }\n });\n }\n }\n return acc;\n}, []));\n\n/**\n * Get the current sorting model.\n * @category Sorting\n */\nexport const gridSortModelSelector = createSelector(gridSortingStateSelector, sorting => sorting.sortModel);\n/**\n * @category Sorting\n * @ignore - do not document.\n */\nexport const gridSortColumnLookupSelector = createSelectorMemoized(gridSortModelSelector, sortModel => {\n const result = sortModel.reduce((res, sortItem, index) => {\n res[sortItem.field] = {\n sortDirection: sortItem.sort,\n sortIndex: sortModel.length > 1 ? index + 1 : undefined\n };\n return res;\n }, {});\n return result;\n});\n\n/**\n * @category Sorting\n * @ignore - do not document.\n */\nexport const gridSortedRowIndexLookupSelector = createSelectorMemoized(gridSortedRowIdsSelector, sortedIds => {\n return sortedIds.reduce((acc, id, index) => {\n acc[id] = index;\n return acc;\n }, Object.create(null));\n});","import { isObjectEmpty } from '@mui/x-internals/isObjectEmpty';\nimport { createSelector, createRootSelector, createSelectorMemoized } from \"../../../utils/createSelector.js\";\nimport { gridSortedRowEntriesSelector } from \"../sorting/gridSortingSelector.js\";\nimport { gridColumnLookupSelector } from \"../columns/gridColumnsSelector.js\";\nimport { gridRowMaximumTreeDepthSelector, gridRowTreeSelector } from \"../rows/gridRowsSelector.js\";\n\n/**\n * @category Filtering\n */\nconst gridFilterStateSelector = createRootSelector(state => state.filter);\n\n/**\n * Get the current filter model.\n * @category Filtering\n */\nexport const gridFilterModelSelector = createSelector(gridFilterStateSelector, filterState => filterState.filterModel);\n\n/**\n * Get the current quick filter values.\n * @category Filtering\n */\nexport const gridQuickFilterValuesSelector = createSelector(gridFilterModelSelector, filterModel => filterModel.quickFilterValues);\n\n/**\n * @category Visible rows\n * @ignore - do not document.\n */\nexport const gridVisibleRowsLookupSelector = createRootSelector(state => state.visibleRowsLookup);\n\n/**\n * @category Filtering\n * @ignore - do not document.\n */\nexport const gridFilteredRowsLookupSelector = createSelector(gridFilterStateSelector, filterState => filterState.filteredRowsLookup);\n\n/**\n * @category Filtering\n * @ignore - do not document.\n */\nexport const gridFilteredChildrenCountLookupSelector = createSelector(gridFilterStateSelector, filterState => filterState.filteredChildrenCountLookup);\n\n/**\n * @category Filtering\n * @ignore - do not document.\n */\nexport const gridFilteredDescendantCountLookupSelector = createSelector(gridFilterStateSelector, filterState => filterState.filteredDescendantCountLookup);\n\n/**\n * Get the id and the model of the rows accessible after the filtering process.\n * Does not contain the collapsed children.\n * @category Filtering\n */\nexport const gridExpandedSortedRowEntriesSelector = createSelectorMemoized(gridVisibleRowsLookupSelector, gridSortedRowEntriesSelector, (visibleRowsLookup, sortedRows) => {\n if (isObjectEmpty(visibleRowsLookup)) {\n return sortedRows;\n }\n return sortedRows.filter(row => visibleRowsLookup[row.id] !== false);\n});\n\n/**\n * Get the id of the rows accessible after the filtering process.\n * Does not contain the collapsed children.\n * @category Filtering\n */\nexport const gridExpandedSortedRowIdsSelector = createSelectorMemoized(gridExpandedSortedRowEntriesSelector, visibleSortedRowEntries => visibleSortedRowEntries.map(row => row.id));\n\n/**\n * Get the id and the model of the rows accessible after the filtering process.\n * Contains the collapsed children.\n * @category Filtering\n */\nexport const gridFilteredSortedRowEntriesSelector = createSelectorMemoized(gridFilteredRowsLookupSelector, gridSortedRowEntriesSelector, (filteredRowsLookup, sortedRows) => isObjectEmpty(filteredRowsLookup) ? sortedRows : sortedRows.filter(row => filteredRowsLookup[row.id] !== false));\n\n/**\n * Get the id of the rows accessible after the filtering process.\n * Contains the collapsed children.\n * @category Filtering\n */\nexport const gridFilteredSortedRowIdsSelector = createSelectorMemoized(gridFilteredSortedRowEntriesSelector, filteredSortedRowEntries => filteredSortedRowEntries.map(row => row.id));\n\n/**\n * Get the ids to position in the current tree level lookup of the rows accessible after the filtering process.\n * Does not contain the collapsed children.\n * @category Filtering\n * @ignore - do not document.\n */\nexport const gridExpandedSortedRowTreeLevelPositionLookupSelector = createSelectorMemoized(gridExpandedSortedRowIdsSelector, gridRowTreeSelector, (visibleSortedRowIds, rowTree) => {\n const depthPositionCounter = {};\n let lastDepth = 0;\n return visibleSortedRowIds.reduce((acc, rowId) => {\n const rowNode = rowTree[rowId];\n if (!depthPositionCounter[rowNode.depth]) {\n depthPositionCounter[rowNode.depth] = 0;\n }\n\n // going deeper in the tree should reset the counter\n // since it might have been used in some other branch at the same level, up in the tree\n // going back up should keep the counter and continue where it left off\n if (rowNode.depth > lastDepth) {\n depthPositionCounter[rowNode.depth] = 0;\n }\n lastDepth = rowNode.depth;\n depthPositionCounter[rowNode.depth] += 1;\n acc[rowId] = depthPositionCounter[rowNode.depth];\n return acc;\n }, {});\n});\n\n/**\n * Get the id and the model of the top level rows accessible after the filtering process.\n * @category Filtering\n */\nexport const gridFilteredSortedTopLevelRowEntriesSelector = createSelectorMemoized(gridExpandedSortedRowEntriesSelector, gridRowTreeSelector, gridRowMaximumTreeDepthSelector, (visibleSortedRows, rowTree, rowTreeDepth) => {\n if (rowTreeDepth < 2) {\n return visibleSortedRows;\n }\n return visibleSortedRows.filter(row => rowTree[row.id]?.depth === 0);\n});\n\n/**\n * Get the amount of rows accessible after the filtering process.\n * @category Filtering\n */\nexport const gridExpandedRowCountSelector = createSelector(gridExpandedSortedRowEntriesSelector, visibleSortedRows => visibleSortedRows.length);\n\n/**\n * Get the amount of top level rows accessible after the filtering process.\n * @category Filtering\n */\nexport const gridFilteredTopLevelRowCountSelector = createSelector(gridFilteredSortedTopLevelRowEntriesSelector, visibleSortedTopLevelRows => visibleSortedTopLevelRows.length);\n\n/**\n * Get the amount of rows accessible after the filtering process.\n * Includes top level and descendant rows.\n * @category Filtering\n */\nexport const gridFilteredRowCountSelector = createSelector(gridFilteredSortedRowEntriesSelector, filteredSortedRowEntries => filteredSortedRowEntries.length);\n\n/**\n * Get the amount of descendant rows accessible after the filtering process.\n * @category Filtering\n */\nexport const gridFilteredDescendantRowCountSelector = createSelector(gridFilteredRowCountSelector, gridFilteredTopLevelRowCountSelector, (totalRowCount, topLevelRowCount) => totalRowCount - topLevelRowCount);\n\n/**\n * @category Filtering\n * @ignore - do not document.\n */\nexport const gridFilterActiveItemsSelector = createSelectorMemoized(gridFilterModelSelector, gridColumnLookupSelector, (filterModel, columnLookup) => filterModel.items?.filter(item => {\n if (!item.field) {\n return false;\n }\n const column = columnLookup[item.field];\n if (!column?.filterOperators || column?.filterOperators?.length === 0) {\n return false;\n }\n const filterOperator = column.filterOperators.find(operator => operator.value === item.operator);\n if (!filterOperator) {\n return false;\n }\n return !filterOperator.InputComponent || item.value != null && item.value?.toString() !== '';\n}));\n/**\n * @category Filtering\n * @ignore - do not document.\n */\nexport const gridFilterActiveItemsLookupSelector = createSelectorMemoized(gridFilterActiveItemsSelector, activeFilters => {\n const result = activeFilters.reduce((res, filterItem) => {\n if (!res[filterItem.field]) {\n res[filterItem.field] = [filterItem];\n } else {\n res[filterItem.field].push(filterItem);\n }\n return res;\n }, {});\n return result;\n});","import { createSelector, createRootSelector, createSelectorMemoized } from \"../../../utils/createSelector.js\";\nimport { gridDataRowIdsSelector, gridRowsLookupSelector } from \"../rows/gridRowsSelector.js\";\nimport { gridFilteredRowCountSelector } from \"../filter/gridFilterSelector.js\";\nimport { createRowSelectionManager } from \"../../../models/gridRowSelectionManager.js\";\nexport const gridRowSelectionStateSelector = createRootSelector(state => state.rowSelection);\nexport const gridRowSelectionManagerSelector = createSelectorMemoized(gridRowSelectionStateSelector, createRowSelectionManager);\nexport const gridRowSelectionCountSelector = createSelector(gridRowSelectionStateSelector, gridFilteredRowCountSelector, (selection, filteredRowCount) => {\n if (selection.type === 'include') {\n return selection.ids.size;\n }\n // In exclude selection, all rows are selectable.\n return filteredRowCount - selection.ids.size;\n});\nexport const gridRowSelectionIdsSelector = createSelectorMemoized(gridRowSelectionStateSelector, gridRowsLookupSelector, gridDataRowIdsSelector, (selectionModel, rowsLookup, rowIds) => {\n const map = new Map();\n if (selectionModel.type === 'include') {\n for (const id of selectionModel.ids) {\n map.set(id, rowsLookup[id]);\n }\n } else {\n for (let i = 0; i < rowIds.length; i += 1) {\n const id = rowIds[i];\n if (!selectionModel.ids.has(id)) {\n map.set(id, rowsLookup[id]);\n }\n }\n }\n return map;\n});","import { GridSignature } from \"../../../constants/signature.js\";\nimport { GRID_ROOT_GROUP_ID } from \"../rows/gridRowsUtils.js\";\nimport { gridFilteredRowsLookupSelector } from \"../filter/gridFilterSelector.js\";\nimport { gridSortedRowIdsSelector } from \"../sorting/gridSortingSelector.js\";\nimport { gridRowSelectionManagerSelector } from \"./gridRowSelectionSelector.js\";\nimport { gridRowTreeSelector } from \"../rows/gridRowsSelector.js\";\nimport { createSelector } from \"../../../utils/createSelector.js\";\nexport const ROW_SELECTION_PROPAGATION_DEFAULT = {\n parents: true,\n descendants: true\n};\nfunction getGridRowGroupSelectableDescendants(apiRef, groupId) {\n const rowTree = gridRowTreeSelector(apiRef);\n const sortedRowIds = gridSortedRowIdsSelector(apiRef);\n const filteredRowsLookup = gridFilteredRowsLookupSelector(apiRef);\n const groupNode = rowTree[groupId];\n if (!groupNode || groupNode.type !== 'group') {\n return [];\n }\n const descendants = [];\n const startIndex = sortedRowIds.findIndex(id => id === groupId) + 1;\n for (let index = startIndex; index < sortedRowIds.length && rowTree[sortedRowIds[index]]?.depth > groupNode.depth; index += 1) {\n const id = sortedRowIds[index];\n if (filteredRowsLookup[id] !== false && apiRef.current.isRowSelectable(id)) {\n descendants.push(id);\n }\n }\n return descendants;\n}\n\n// TODO v8: Use `createSelectorV8`\nexport function getCheckboxPropsSelector(groupId, autoSelectParents) {\n return createSelector(gridRowTreeSelector, gridSortedRowIdsSelector, gridFilteredRowsLookupSelector, gridRowSelectionManagerSelector, (rowTree, sortedRowIds, filteredRowsLookup, rowSelectionManager) => {\n const groupNode = rowTree[groupId];\n if (!groupNode || groupNode.type !== 'group') {\n return {\n isIndeterminate: false,\n isChecked: rowSelectionManager.has(groupId)\n };\n }\n if (rowSelectionManager.has(groupId)) {\n return {\n isIndeterminate: false,\n isChecked: true\n };\n }\n let selectableDescendantsCount = 0;\n let selectedDescendantsCount = 0;\n const startIndex = sortedRowIds.findIndex(id => id === groupId) + 1;\n for (let index = startIndex; index < sortedRowIds.length && rowTree[sortedRowIds[index]]?.depth > groupNode.depth; index += 1) {\n const id = sortedRowIds[index];\n if (filteredRowsLookup[id] !== false) {\n selectableDescendantsCount += 1;\n if (rowSelectionManager.has(id)) {\n selectedDescendantsCount += 1;\n }\n }\n }\n return {\n isIndeterminate: selectedDescendantsCount > 0 && (selectedDescendantsCount < selectableDescendantsCount || !rowSelectionManager.has(groupId)),\n isChecked: autoSelectParents ? selectedDescendantsCount > 0 : rowSelectionManager.has(groupId)\n };\n });\n}\nexport function isMultipleRowSelectionEnabled(props) {\n if (props.signature === GridSignature.DataGrid) {\n // DataGrid Community has multiple row selection enabled only if checkbox selection is enabled.\n return props.checkboxSelection && props.disableMultipleRowSelection !== true;\n }\n return !props.disableMultipleRowSelection;\n}\nconst getRowNodeParents = (tree, id) => {\n const parents = [];\n let parent = id;\n while (parent != null && parent !== GRID_ROOT_GROUP_ID) {\n const node = tree[parent];\n if (!node) {\n return parents;\n }\n parents.push(parent);\n parent = node.parent;\n }\n return parents;\n};\nconst getFilteredRowNodeSiblings = (tree, filteredRows, id) => {\n const node = tree[id];\n if (!node) {\n return [];\n }\n const parent = node.parent;\n if (parent == null) {\n return [];\n }\n const parentNode = tree[parent];\n return parentNode.children.filter(childId => childId !== id && filteredRows[childId] !== false);\n};\nexport const findRowsToSelect = (apiRef, tree, selectedRow, autoSelectDescendants, autoSelectParents, addRow, rowSelectionManager = gridRowSelectionManagerSelector(apiRef)) => {\n const filteredRows = gridFilteredRowsLookupSelector(apiRef);\n const selectedDescendants = new Set([]);\n if (!autoSelectDescendants && !autoSelectParents) {\n return;\n }\n if (autoSelectDescendants) {\n const rowNode = tree[selectedRow];\n if (rowNode?.type === 'group') {\n const descendants = getGridRowGroupSelectableDescendants(apiRef, selectedRow);\n descendants.forEach(rowId => {\n addRow(rowId);\n selectedDescendants.add(rowId);\n });\n }\n }\n if (autoSelectParents) {\n const checkAllDescendantsSelected = rowId => {\n if (!rowSelectionManager.has(rowId) && !selectedDescendants.has(rowId)) {\n return false;\n }\n const node = tree[rowId];\n if (!node) {\n return false;\n }\n if (node.type !== 'group') {\n return true;\n }\n return node.children.every(checkAllDescendantsSelected);\n };\n const traverseParents = rowId => {\n const siblings = getFilteredRowNodeSiblings(tree, filteredRows, rowId);\n if (siblings.length === 0 || siblings.every(checkAllDescendantsSelected)) {\n const rowNode = tree[rowId];\n const parent = rowNode?.parent;\n if (parent != null && parent !== GRID_ROOT_GROUP_ID && apiRef.current.isRowSelectable(parent)) {\n addRow(parent);\n selectedDescendants.add(parent);\n traverseParents(parent);\n }\n }\n };\n traverseParents(selectedRow);\n }\n};\nexport const findRowsToDeselect = (apiRef, tree, deselectedRow, autoSelectDescendants, autoSelectParents, removeRow) => {\n const rowSelectionManager = gridRowSelectionManagerSelector(apiRef);\n if (!autoSelectParents && !autoSelectDescendants) {\n return;\n }\n if (autoSelectParents) {\n const allParents = getRowNodeParents(tree, deselectedRow);\n allParents.forEach(parent => {\n const isSelected = rowSelectionManager.has(parent);\n if (isSelected) {\n removeRow(parent);\n }\n });\n }\n if (autoSelectDescendants) {\n const rowNode = tree[deselectedRow];\n if (rowNode?.type === 'group') {\n const descendants = getGridRowGroupSelectableDescendants(apiRef, deselectedRow);\n descendants.forEach(descendant => {\n removeRow(descendant);\n });\n }\n }\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"field\", \"id\", \"formattedValue\", \"row\", \"rowNode\", \"colDef\", \"isEditable\", \"cellMode\", \"hasFocus\", \"tabIndex\", \"api\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_composeClasses as composeClasses } from '@mui/utils';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { objectShallowCompare, useGridSelector } from \"../../hooks/utils/useGridSelector.js\";\nimport { getCheckboxPropsSelector } from \"../../hooks/features/rowSelection/utils.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['checkboxInput']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridCellCheckboxForwardRef = forwardRef(function GridCellCheckboxRenderer(props, ref) {\n const {\n field,\n id,\n rowNode,\n tabIndex\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const ownerState = {\n classes: rootProps.classes\n };\n const classes = useUtilityClasses(ownerState);\n const handleChange = event => {\n const params = {\n value: event.target.checked,\n id\n };\n apiRef.current.publishEvent('rowSelectionCheckboxChange', params, event);\n };\n React.useLayoutEffect(() => {\n if (tabIndex === 0) {\n const element = apiRef.current.getCellElement(id, field);\n if (element) {\n element.tabIndex = -1;\n }\n }\n }, [apiRef, tabIndex, id, field]);\n const handleKeyDown = React.useCallback(event => {\n if (event.key === ' ') {\n // We call event.stopPropagation to avoid selecting the row and also scrolling to bottom\n // TODO: Remove and add a check inside useGridKeyboardNavigation\n event.stopPropagation();\n }\n }, []);\n const isSelectable = apiRef.current.isRowSelectable(id);\n const checkboxPropsSelector = getCheckboxPropsSelector(id, rootProps.rowSelectionPropagation?.parents ?? false);\n const {\n isIndeterminate,\n isChecked\n } = useGridSelector(apiRef, checkboxPropsSelector, undefined, objectShallowCompare);\n if (rowNode.type === 'footer' || rowNode.type === 'pinnedRow') {\n return null;\n }\n const label = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? 'checkboxSelectionUnselectRow' : 'checkboxSelectionSelectRow');\n return /*#__PURE__*/_jsx(rootProps.slots.baseCheckbox, _extends({\n tabIndex: tabIndex,\n checked: isChecked && !isIndeterminate,\n onChange: handleChange,\n className: classes.root,\n slotProps: {\n htmlInput: {\n 'aria-label': label,\n name: 'select_row'\n }\n },\n onKeyDown: handleKeyDown,\n indeterminate: isIndeterminate,\n disabled: !isSelectable\n }, rootProps.slotProps?.baseCheckbox, other, {\n ref: ref\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridCellCheckboxForwardRef.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * GridApi that let you manipulate the grid.\n */\n api: PropTypes.object.isRequired,\n /**\n * The mode of the cell.\n */\n cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,\n /**\n * The column of the row that the current cell belongs to.\n */\n colDef: PropTypes.object.isRequired,\n /**\n * The column field of the cell that triggered the event.\n */\n field: PropTypes.string.isRequired,\n /**\n * A ref allowing to set imperative focus.\n * It can be passed to the element that should receive focus.\n * @ignore - do not document.\n */\n focusElementRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n focus: PropTypes.func.isRequired\n })\n })]),\n /**\n * The cell value formatted with the column valueFormatter.\n */\n formattedValue: PropTypes.any,\n /**\n * If true, the cell is the active element.\n */\n hasFocus: PropTypes.bool.isRequired,\n /**\n * The grid row id.\n */\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,\n /**\n * If true, the cell is editable.\n */\n isEditable: PropTypes.bool,\n /**\n * The row model of the row that the current cell belongs to.\n */\n row: PropTypes.any.isRequired,\n /**\n * The node of the row that the current cell belongs to.\n */\n rowNode: PropTypes.object.isRequired,\n /**\n * the tabIndex value.\n */\n tabIndex: PropTypes.oneOf([-1, 0]).isRequired,\n /**\n * The cell value.\n * If the column has `valueGetter`, use `params.row` to directly access the fields.\n */\n value: PropTypes.any\n} : void 0;\nexport { GridCellCheckboxForwardRef };\nexport const GridCellCheckboxRenderer = GridCellCheckboxForwardRef;","import { createSelector, createRootSelector } from \"../../../utils/createSelector.js\";\nexport const gridFocusStateSelector = createRootSelector(state => state.focus);\nexport const gridFocusCellSelector = createSelector(gridFocusStateSelector, focusState => focusState.cell);\nexport const gridFocusColumnHeaderSelector = createSelector(gridFocusStateSelector, focusState => focusState.columnHeader);\nexport const gridFocusColumnHeaderFilterSelector = createSelector(gridFocusStateSelector, focusState => focusState.columnHeaderFilter);\nexport const gridFocusColumnGroupHeaderSelector = createSelector(gridFocusStateSelector, focusState => focusState.columnGroupHeader);\nexport const gridTabIndexStateSelector = createRootSelector(state => state.tabIndex);\nexport const gridTabIndexCellSelector = createSelector(gridTabIndexStateSelector, state => state.cell);\nexport const gridTabIndexColumnHeaderSelector = createSelector(gridTabIndexStateSelector, state => state.columnHeader);\nexport const gridTabIndexColumnHeaderFilterSelector = createSelector(gridTabIndexStateSelector, state => state.columnHeaderFilter);\nexport const gridTabIndexColumnGroupHeaderSelector = createSelector(gridTabIndexStateSelector, state => state.columnGroupHeader);","import { GridSignature } from \"../../../constants/signature.js\";\nconst MAX_PAGE_SIZE = 100;\nexport const defaultPageSize = autoPageSize => autoPageSize ? 0 : 100;\nexport const getPageCount = (rowCount, pageSize, page) => {\n if (pageSize > 0 && rowCount > 0) {\n return Math.ceil(rowCount / pageSize);\n }\n if (rowCount === -1) {\n // With unknown row-count, we can assume a page after the current one\n return page + 2;\n }\n return 0;\n};\nexport const getDefaultGridPaginationModel = autoPageSize => ({\n page: 0,\n pageSize: autoPageSize ? 0 : 100\n});\nexport const getValidPage = (page, pageCount = 0) => {\n if (pageCount === 0) {\n return page;\n }\n return Math.max(Math.min(page, pageCount - 1), 0);\n};\nexport const throwIfPageSizeExceedsTheLimit = (pageSize, signatureProp) => {\n if (signatureProp === GridSignature.DataGrid && pageSize > MAX_PAGE_SIZE) {\n throw new Error(['MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.', 'You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature.'].join('\\n'));\n }\n};","import { createSelector, createRootSelector, createSelectorMemoized } from \"../../../utils/createSelector.js\";\nimport { gridExpandedSortedRowEntriesSelector, gridExpandedSortedRowIdsSelector, gridFilteredSortedTopLevelRowEntriesSelector } from \"../filter/gridFilterSelector.js\";\nimport { gridRowMaximumTreeDepthSelector, gridRowTreeSelector } from \"../rows/gridRowsSelector.js\";\nimport { getPageCount } from \"./gridPaginationUtils.js\";\nconst ALL_RESULTS_PAGE_VALUE = -1;\n\n/**\n * @category Pagination\n * @ignore - do not document.\n */\nexport const gridPaginationSelector = createRootSelector(state => state.pagination);\n\n/**\n * @category Pagination\n * @ignore - do not document.\n */\nexport const gridPaginationEnabledClientSideSelector = createSelector(gridPaginationSelector, pagination => pagination.enabled && pagination.paginationMode === 'client');\n\n/**\n * Get the pagination model\n * @category Pagination\n */\nexport const gridPaginationModelSelector = createSelector(gridPaginationSelector, pagination => pagination.paginationModel);\n\n/**\n * Get the row count\n * @category Pagination\n */\nexport const gridPaginationRowCountSelector = createSelector(gridPaginationSelector, pagination => pagination.rowCount);\n\n/**\n * Get the pagination meta\n * @category Pagination\n */\nexport const gridPaginationMetaSelector = createSelector(gridPaginationSelector, pagination => pagination.meta);\n\n/**\n * Get the index of the page to render if the pagination is enabled\n * @category Pagination\n */\nexport const gridPageSelector = createSelector(gridPaginationModelSelector, paginationModel => paginationModel.page);\n\n/**\n * Get the maximum amount of rows to display on a single page if the pagination is enabled\n * @category Pagination\n */\nexport const gridPageSizeSelector = createSelector(gridPaginationModelSelector, paginationModel => paginationModel.pageSize);\n\n/**\n * Get the amount of pages needed to display all the rows if the pagination is enabled\n * @category Pagination\n */\nexport const gridPageCountSelector = createSelector(gridPaginationModelSelector, gridPaginationRowCountSelector, (paginationModel, rowCount) => getPageCount(rowCount, paginationModel.pageSize, paginationModel.page));\n\n/**\n * Get the index of the first and the last row to include in the current page if the pagination is enabled.\n * @category Pagination\n */\nexport const gridPaginationRowRangeSelector = createSelectorMemoized(gridPaginationEnabledClientSideSelector, gridPaginationModelSelector, gridRowTreeSelector, gridRowMaximumTreeDepthSelector, gridExpandedSortedRowEntriesSelector, gridFilteredSortedTopLevelRowEntriesSelector, (clientSidePaginationEnabled, paginationModel, rowTree, rowTreeDepth, visibleSortedRowEntries, visibleSortedTopLevelRowEntries) => {\n if (!clientSidePaginationEnabled) {\n return null;\n }\n const visibleTopLevelRowCount = visibleSortedTopLevelRowEntries.length;\n const topLevelFirstRowIndex = Math.min(paginationModel.pageSize * paginationModel.page, visibleTopLevelRowCount - 1);\n const topLevelLastRowIndex = paginationModel.pageSize === ALL_RESULTS_PAGE_VALUE ? visibleTopLevelRowCount - 1 : Math.min(topLevelFirstRowIndex + paginationModel.pageSize - 1, visibleTopLevelRowCount - 1);\n\n // The range contains no element\n if (topLevelFirstRowIndex === -1 || topLevelLastRowIndex === -1) {\n return null;\n }\n\n // The tree is flat, there is no need to look for children\n if (rowTreeDepth < 2) {\n return {\n firstRowIndex: topLevelFirstRowIndex,\n lastRowIndex: topLevelLastRowIndex\n };\n }\n const topLevelFirstRow = visibleSortedTopLevelRowEntries[topLevelFirstRowIndex];\n const topLevelRowsInCurrentPageCount = topLevelLastRowIndex - topLevelFirstRowIndex + 1;\n const firstRowIndex = visibleSortedRowEntries.findIndex(row => row.id === topLevelFirstRow.id);\n let lastRowIndex = firstRowIndex;\n let topLevelRowAdded = 0;\n while (lastRowIndex < visibleSortedRowEntries.length && topLevelRowAdded <= topLevelRowsInCurrentPageCount) {\n const row = visibleSortedRowEntries[lastRowIndex];\n const depth = rowTree[row.id]?.depth;\n if (depth === undefined) {\n lastRowIndex += 1;\n } else {\n if (topLevelRowAdded < topLevelRowsInCurrentPageCount || depth > 0) {\n lastRowIndex += 1;\n }\n if (depth === 0) {\n topLevelRowAdded += 1;\n }\n }\n }\n return {\n firstRowIndex,\n lastRowIndex: lastRowIndex - 1\n };\n});\n\n/**\n * Get the id and the model of each row to include in the current page if the pagination is enabled.\n * @category Pagination\n */\nexport const gridPaginatedVisibleSortedGridRowEntriesSelector = createSelectorMemoized(gridExpandedSortedRowEntriesSelector, gridPaginationRowRangeSelector, (visibleSortedRowEntries, paginationRange) => {\n if (!paginationRange) {\n return [];\n }\n return visibleSortedRowEntries.slice(paginationRange.firstRowIndex, paginationRange.lastRowIndex + 1);\n});\n\n/**\n * Get the id of each row to include in the current page if the pagination is enabled.\n * @category Pagination\n */\nexport const gridPaginatedVisibleSortedGridRowIdsSelector = createSelectorMemoized(gridExpandedSortedRowIdsSelector, gridPaginationRowRangeSelector, (visibleSortedRowIds, paginationRange) => {\n if (!paginationRange) {\n return [];\n }\n return visibleSortedRowIds.slice(paginationRange.firstRowIndex, paginationRange.lastRowIndex + 1);\n});\n\n/**\n * Get the rows, range and rowIndex lookup map after filtering and sorting.\n * Does not contain the collapsed children.\n * @category Pagination\n */\nexport const gridVisibleRowsSelector = createSelectorMemoized(gridPaginationEnabledClientSideSelector, gridPaginationRowRangeSelector, gridPaginatedVisibleSortedGridRowEntriesSelector, gridExpandedSortedRowEntriesSelector, (clientPaginationEnabled, paginationRowRange, paginationRows, expandedSortedRowEntries) => {\n if (clientPaginationEnabled) {\n return {\n rows: paginationRows,\n range: paginationRowRange,\n rowIdToIndexMap: paginationRows.reduce((lookup, row, index) => {\n lookup.set(row.id, index);\n return lookup;\n }, new Map())\n };\n }\n return {\n rows: expandedSortedRowEntries,\n range: expandedSortedRowEntries.length === 0 ? null : {\n firstRowIndex: 0,\n lastRowIndex: expandedSortedRowEntries.length - 1\n },\n rowIdToIndexMap: expandedSortedRowEntries.reduce((lookup, row, index) => {\n lookup.set(row.id, index);\n return lookup;\n }, new Map())\n };\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"field\", \"colDef\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { isMultipleRowSelectionEnabled } from \"../../hooks/features/rowSelection/utils.js\";\nimport { useGridSelector } from \"../../hooks/utils/useGridSelector.js\";\nimport { gridTabIndexColumnHeaderSelector } from \"../../hooks/features/focus/gridFocusStateSelector.js\";\nimport { gridRowSelectionStateSelector } from \"../../hooks/features/rowSelection/gridRowSelectionSelector.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { gridExpandedSortedRowIdsSelector } from \"../../hooks/features/filter/gridFilterSelector.js\";\nimport { gridPaginatedVisibleSortedGridRowIdsSelector } from \"../../hooks/features/pagination/gridPaginationSelector.js\";\nimport { createRowSelectionManager } from \"../../models/gridRowSelectionManager.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['checkboxInput']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridHeaderCheckbox = forwardRef(function GridHeaderCheckbox(props, ref) {\n const other = _objectWithoutPropertiesLoose(props, _excluded);\n const [, forceUpdate] = React.useState(false);\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const ownerState = {\n classes: rootProps.classes\n };\n const classes = useUtilityClasses(ownerState);\n const tabIndexState = useGridSelector(apiRef, gridTabIndexColumnHeaderSelector);\n const selection = useGridSelector(apiRef, gridRowSelectionStateSelector);\n const visibleRowIds = useGridSelector(apiRef, gridExpandedSortedRowIdsSelector);\n const paginatedVisibleRowIds = useGridSelector(apiRef, gridPaginatedVisibleSortedGridRowIdsSelector);\n const filteredSelection = React.useMemo(() => {\n const isRowSelectable = rootProps.isRowSelectable;\n if (typeof isRowSelectable !== 'function') {\n return selection;\n }\n if (selection.type === 'exclude') {\n return selection;\n }\n\n // selection.type === 'include'\n const selectionModel = {\n type: 'include',\n ids: new Set()\n };\n for (const id of selection.ids) {\n if (rootProps.keepNonExistentRowsSelected) {\n selectionModel.ids.add(id);\n }\n // The row might have been deleted\n if (!apiRef.current.getRow(id)) {\n continue;\n }\n if (isRowSelectable(apiRef.current.getRowParams(id))) {\n selectionModel.ids.add(id);\n }\n }\n return selectionModel;\n }, [apiRef, rootProps.isRowSelectable, rootProps.keepNonExistentRowsSelected, selection]);\n\n // All the rows that could be selected / unselected by toggling this checkbox\n const selectionCandidates = React.useMemo(() => {\n const rowIds = !rootProps.pagination || !rootProps.checkboxSelectionVisibleOnly || rootProps.paginationMode === 'server' ? visibleRowIds : paginatedVisibleRowIds;\n\n // Convert to a Set to make O(1) checking if a row exists or not\n const candidates = new Set();\n for (let i = 0; i < rowIds.length; i += 1) {\n const id = rowIds[i];\n if (apiRef.current.isRowSelectable(id)) {\n candidates.add(id);\n }\n }\n return candidates;\n }, [apiRef, rootProps.pagination, rootProps.paginationMode, rootProps.checkboxSelectionVisibleOnly, paginatedVisibleRowIds, visibleRowIds]);\n\n // Amount of rows selected and that are visible in the current page\n const currentSelectionSize = React.useMemo(() => {\n const selectionManager = createRowSelectionManager(filteredSelection);\n let size = 0;\n for (const id of selectionCandidates) {\n if (selectionManager.has(id)) {\n size += 1;\n }\n }\n return size;\n }, [filteredSelection, selectionCandidates]);\n const isIndeterminate = React.useMemo(() => {\n if (filteredSelection.ids.size === 0) {\n return false;\n }\n const selectionManager = createRowSelectionManager(filteredSelection);\n for (const rowId of selectionCandidates) {\n if (!selectionManager.has(rowId)) {\n return true;\n }\n }\n return false;\n }, [filteredSelection, selectionCandidates]);\n const isChecked = currentSelectionSize > 0;\n const handleChange = event => {\n const params = {\n value: event.target.checked\n };\n apiRef.current.publishEvent('headerSelectionCheckboxChange', params);\n };\n const tabIndex = tabIndexState !== null && tabIndexState.field === props.field ? 0 : -1;\n React.useLayoutEffect(() => {\n const element = apiRef.current.getColumnHeaderElement(props.field);\n if (tabIndex === 0 && element) {\n element.tabIndex = -1;\n }\n }, [tabIndex, apiRef, props.field]);\n const handleKeyDown = React.useCallback(event => {\n if (event.key === ' ') {\n // imperative toggle the checkbox because Space is disable by some preventDefault\n apiRef.current.publishEvent('headerSelectionCheckboxChange', {\n value: !isChecked\n });\n }\n }, [apiRef, isChecked]);\n const handleSelectionChange = React.useCallback(() => {\n forceUpdate(p => !p);\n }, []);\n React.useEffect(() => {\n return apiRef.current.subscribeEvent('rowSelectionChange', handleSelectionChange);\n }, [apiRef, handleSelectionChange]);\n const label = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? 'checkboxSelectionUnselectAllRows' : 'checkboxSelectionSelectAllRows');\n return /*#__PURE__*/_jsx(rootProps.slots.baseCheckbox, _extends({\n indeterminate: isIndeterminate,\n checked: isChecked && !isIndeterminate,\n onChange: handleChange,\n className: classes.root,\n slotProps: {\n htmlInput: {\n 'aria-label': label,\n name: 'select_all_rows'\n }\n },\n tabIndex: tabIndex,\n onKeyDown: handleKeyDown,\n disabled: !isMultipleRowSelectionEnabled(rootProps)\n }, rootProps.slotProps?.baseCheckbox, other, {\n ref: ref\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridHeaderCheckbox.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * The column of the current header component.\n */\n colDef: PropTypes.object.isRequired,\n /**\n * The column field of the column that triggered the event\n */\n field: PropTypes.string.isRequired\n} : void 0;\nexport { GridHeaderCheckbox };","import { GRID_ID_AUTOGENERATED } from \"../features/rows/gridRowsUtils.js\";\nimport { createRootSelector } from \"../../utils/createSelector.js\";\n\n/**\n * Get the row id for a given row\n * @param apiRef - The grid api reference\n * @param {GridRowModel} row - The row to get the id for\n * @returns {GridRowId} The row id\n */\nexport const gridRowIdSelector = createRootSelector((state, row) => {\n if (GRID_ID_AUTOGENERATED in row) {\n return row[GRID_ID_AUTOGENERATED];\n }\n return state.props.getRowId ? state.props.getRowId(row) : row.id;\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { GridCellCheckboxRenderer } from \"../components/columnSelection/GridCellCheckboxRenderer.js\";\nimport { GridHeaderCheckbox } from \"../components/columnSelection/GridHeaderCheckbox.js\";\nimport { GRID_BOOLEAN_COL_DEF } from \"./gridBooleanColDef.js\";\nimport { gridRowIdSelector } from \"../hooks/core/gridPropsSelectors.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const GRID_CHECKBOX_SELECTION_FIELD = '__check__';\nexport const GRID_CHECKBOX_SELECTION_COL_DEF = _extends({}, GRID_BOOLEAN_COL_DEF, {\n type: 'custom',\n field: GRID_CHECKBOX_SELECTION_FIELD,\n width: 50,\n resizable: false,\n sortable: false,\n filterable: false,\n // @ts-ignore\n aggregable: false,\n disableColumnMenu: true,\n disableReorder: true,\n disableExport: true,\n getApplyQuickFilterFn: () => null,\n display: 'flex',\n valueGetter: (value, row, column, apiRef) => {\n const rowId = gridRowIdSelector(apiRef, row);\n return apiRef.current.isRowSelected(rowId);\n },\n renderHeader: params => /*#__PURE__*/_jsx(GridHeaderCheckbox, _extends({}, params)),\n renderCell: params => /*#__PURE__*/_jsx(GridCellCheckboxRenderer, _extends({}, params))\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"item\", \"applyValue\", \"type\", \"apiRef\", \"focusElementRef\", \"slotProps\", \"isFilterActive\", \"headerFilterMenu\", \"clearButton\", \"tabIndex\", \"disabled\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_useId as useId } from '@mui/utils';\nimport { useTimeout } from \"../../../hooks/utils/useTimeout.js\";\nimport { useGridRootProps } from \"../../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction convertFilterItemValueToInputValue(itemValue, inputType) {\n if (itemValue == null) {\n return '';\n }\n const dateCopy = new Date(itemValue);\n if (Number.isNaN(dateCopy.getTime())) {\n return '';\n }\n if (inputType === 'date') {\n return dateCopy.toISOString().substring(0, 10);\n }\n if (inputType === 'datetime-local') {\n // The date picker expects the date to be in the local timezone.\n // But .toISOString() converts it to UTC with zero offset.\n // So we need to subtract the timezone offset.\n dateCopy.setMinutes(dateCopy.getMinutes() - dateCopy.getTimezoneOffset());\n return dateCopy.toISOString().substring(0, 19);\n }\n return dateCopy.toISOString().substring(0, 10);\n}\nfunction GridFilterInputDate(props) {\n const {\n item,\n applyValue,\n type,\n apiRef,\n focusElementRef,\n slotProps,\n headerFilterMenu,\n clearButton,\n tabIndex,\n disabled\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootSlotProps = slotProps?.root.slotProps;\n const filterTimeout = useTimeout();\n const [filterValueState, setFilterValueState] = React.useState(() => convertFilterItemValueToInputValue(item.value, type));\n const [applying, setIsApplying] = React.useState(false);\n const id = useId();\n const rootProps = useGridRootProps();\n const onFilterChange = React.useCallback(event => {\n filterTimeout.clear();\n const value = event.target.value;\n setFilterValueState(value);\n setIsApplying(true);\n filterTimeout.start(rootProps.filterDebounceMs, () => {\n const date = new Date(value);\n applyValue(_extends({}, item, {\n value: Number.isNaN(date.getTime()) ? undefined : date\n }));\n setIsApplying(false);\n });\n }, [applyValue, item, rootProps.filterDebounceMs, filterTimeout]);\n React.useEffect(() => {\n const value = convertFilterItemValueToInputValue(item.value, type);\n setFilterValueState(value);\n }, [item.value, type]);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(rootProps.slots.baseTextField, _extends({\n fullWidth: true,\n id: id,\n label: apiRef.current.getLocaleText('filterPanelInputLabel'),\n placeholder: apiRef.current.getLocaleText('filterPanelInputPlaceholder'),\n value: filterValueState,\n onChange: onFilterChange,\n type: type || 'text',\n disabled: disabled,\n inputRef: focusElementRef,\n slotProps: _extends({}, rootSlotProps, {\n input: _extends({\n endAdornment: applying ? /*#__PURE__*/_jsx(rootProps.slots.loadIcon, {\n fontSize: \"small\",\n color: \"action\"\n }) : null\n }, rootSlotProps?.input),\n htmlInput: _extends({\n max: type === 'datetime-local' ? '9999-12-31T23:59' : '9999-12-31',\n tabIndex\n }, rootSlotProps?.htmlInput)\n })\n }, rootProps.slotProps?.baseTextField, other, slotProps?.root)), headerFilterMenu, clearButton]\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GridFilterInputDate.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n apiRef: PropTypes.shape({\n current: PropTypes.object.isRequired\n }).isRequired,\n applyValue: PropTypes.func.isRequired,\n className: PropTypes.string,\n clearButton: PropTypes.node,\n disabled: PropTypes.bool,\n focusElementRef: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.func, PropTypes.object]),\n headerFilterMenu: PropTypes.node,\n inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: (props, propName) => {\n if (props[propName] == null) {\n return null;\n }\n if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {\n return new Error(`Expected prop '${propName}' to be of type Element`);\n }\n return null;\n }\n })]),\n /**\n * It is `true` if the filter either has a value or an operator with no value\n * required is selected (for example `isEmpty`)\n */\n isFilterActive: PropTypes.bool,\n item: PropTypes.shape({\n field: PropTypes.string.isRequired,\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n operator: PropTypes.string.isRequired,\n value: PropTypes.any\n }).isRequired,\n onBlur: PropTypes.func,\n onFocus: PropTypes.func,\n slotProps: PropTypes.object,\n tabIndex: PropTypes.number,\n type: PropTypes.oneOf(['date', 'datetime-local'])\n} : void 0;\nexport { GridFilterInputDate };","import { GridFilterInputDate } from \"../components/panel/filterPanel/GridFilterInputDate.js\";\nfunction buildApplyFilterFn(filterItem, compareFn, showTime, keepHours) {\n if (!filterItem.value) {\n return null;\n }\n const date = new Date(filterItem.value);\n if (showTime) {\n date.setSeconds(0, 0);\n } else {\n // In GMT-X timezone, the date will be one day behind.\n // For 2022-08-16:\n // GMT+2: Tue Aug 16 2022 02:00:00 GMT+0200\n // GMT-4: Mon Aug 15 2022 20:00:00 GMT-0400\n //\n // We need to add the offset before resetting the hours.\n date.setMinutes(date.getMinutes() + date.getTimezoneOffset());\n date.setHours(0, 0, 0, 0);\n }\n const time = date.getTime();\n return value => {\n if (!value) {\n return false;\n }\n if (keepHours) {\n return compareFn(value.getTime(), time);\n }\n\n // Make a copy of the date to not reset the hours in the original object\n const dateCopy = new Date(value);\n if (showTime) {\n dateCopy.setSeconds(0, 0);\n } else {\n dateCopy.setHours(0, 0, 0, 0);\n }\n return compareFn(dateCopy.getTime(), time);\n };\n}\nexport const getGridDateOperators = showTime => [{\n value: 'is',\n getApplyFilterFn: filterItem => {\n return buildApplyFilterFn(filterItem, (value1, value2) => value1 === value2, showTime);\n },\n InputComponent: GridFilterInputDate,\n InputComponentProps: {\n type: showTime ? 'datetime-local' : 'date'\n }\n}, {\n value: 'not',\n getApplyFilterFn: filterItem => {\n return buildApplyFilterFn(filterItem, (value1, value2) => value1 !== value2, showTime);\n },\n InputComponent: GridFilterInputDate,\n InputComponentProps: {\n type: showTime ? 'datetime-local' : 'date'\n }\n}, {\n value: 'after',\n getApplyFilterFn: filterItem => {\n return buildApplyFilterFn(filterItem, (value1, value2) => value1 > value2, showTime);\n },\n InputComponent: GridFilterInputDate,\n InputComponentProps: {\n type: showTime ? 'datetime-local' : 'date'\n }\n}, {\n value: 'onOrAfter',\n getApplyFilterFn: filterItem => {\n return buildApplyFilterFn(filterItem, (value1, value2) => value1 >= value2, showTime);\n },\n InputComponent: GridFilterInputDate,\n InputComponentProps: {\n type: showTime ? 'datetime-local' : 'date'\n }\n}, {\n value: 'before',\n getApplyFilterFn: filterItem => {\n return buildApplyFilterFn(filterItem, (value1, value2) => value1 < value2, showTime, !showTime);\n },\n InputComponent: GridFilterInputDate,\n InputComponentProps: {\n type: showTime ? 'datetime-local' : 'date'\n }\n}, {\n value: 'onOrBefore',\n getApplyFilterFn: filterItem => {\n return buildApplyFilterFn(filterItem, (value1, value2) => value1 <= value2, showTime);\n },\n InputComponent: GridFilterInputDate,\n InputComponentProps: {\n type: showTime ? 'datetime-local' : 'date'\n }\n}, {\n value: 'isEmpty',\n getApplyFilterFn: () => {\n return value => {\n return value == null;\n };\n },\n requiresFilterValue: false\n}, {\n value: 'isNotEmpty',\n getApplyFilterFn: () => {\n return value => {\n return value != null;\n };\n },\n requiresFilterValue: false\n}];","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"id\", \"value\", \"formattedValue\", \"api\", \"field\", \"row\", \"rowNode\", \"colDef\", \"cellMode\", \"isEditable\", \"tabIndex\", \"hasFocus\", \"inputProps\", \"isValidating\", \"isProcessingProps\", \"onValueChange\", \"slotProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_composeClasses as composeClasses, unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';\nimport { styled } from '@mui/material/styles';\nimport { NotRendered } from \"../../utils/assert.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst StyledInputBase = styled(NotRendered)({\n fontSize: 'inherit'\n});\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['editInputCell']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nfunction GridEditDateCell(props) {\n const {\n id,\n value: valueProp,\n field,\n colDef,\n hasFocus,\n onValueChange,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const isDateTime = colDef.type === 'dateTime';\n const apiRef = useGridApiContext();\n const inputRef = React.useRef(null);\n const valueTransformed = React.useMemo(() => {\n let parsedDate;\n if (valueProp == null) {\n parsedDate = null;\n } else if (valueProp instanceof Date) {\n parsedDate = valueProp;\n } else {\n parsedDate = new Date((valueProp ?? '').toString());\n }\n let formattedDate;\n if (parsedDate == null || Number.isNaN(parsedDate.getTime())) {\n formattedDate = '';\n } else {\n const localDate = new Date(parsedDate.getTime() - parsedDate.getTimezoneOffset() * 60 * 1000);\n formattedDate = localDate.toISOString().substr(0, isDateTime ? 16 : 10);\n }\n return {\n parsed: parsedDate,\n formatted: formattedDate\n };\n }, [valueProp, isDateTime]);\n const [valueState, setValueState] = React.useState(valueTransformed);\n const rootProps = useGridRootProps();\n const ownerState = {\n classes: rootProps.classes\n };\n const classes = useUtilityClasses(ownerState);\n const parseValueToDate = React.useCallback(value => {\n if (value === '') {\n return null;\n }\n const [date, time] = value.split('T');\n const [year, month, day] = date.split('-');\n const parsedDate = new Date();\n parsedDate.setFullYear(Number(year), Number(month) - 1, Number(day));\n parsedDate.setHours(0, 0, 0, 0);\n if (time) {\n const [hours, minutes] = time.split(':');\n parsedDate.setHours(Number(hours), Number(minutes), 0, 0);\n }\n return parsedDate;\n }, []);\n const handleChange = React.useCallback(async event => {\n const newFormattedDate = event.target.value;\n const newParsedDate = parseValueToDate(newFormattedDate);\n if (onValueChange) {\n await onValueChange(event, newParsedDate);\n }\n setValueState({\n parsed: newParsedDate,\n formatted: newFormattedDate\n });\n apiRef.current.setEditCellValue({\n id,\n field,\n value: newParsedDate\n }, event);\n }, [apiRef, field, id, onValueChange, parseValueToDate]);\n React.useEffect(() => {\n setValueState(state => {\n if (valueTransformed.parsed !== state.parsed && valueTransformed.parsed?.getTime() !== state.parsed?.getTime()) {\n return valueTransformed;\n }\n return state;\n });\n }, [valueTransformed]);\n useEnhancedEffect(() => {\n if (hasFocus) {\n inputRef.current.focus();\n }\n }, [hasFocus]);\n return /*#__PURE__*/_jsx(StyledInputBase, _extends({\n as: rootProps.slots.baseInput,\n inputRef: inputRef,\n fullWidth: true,\n className: classes.root,\n type: isDateTime ? 'datetime-local' : 'date',\n value: valueState.formatted,\n onChange: handleChange\n }, other, slotProps?.root, {\n slotProps: {\n htmlInput: _extends({\n max: isDateTime ? '9999-12-31T23:59' : '9999-12-31'\n }, slotProps?.root?.slotProps?.htmlInput)\n }\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridEditDateCell.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * GridApi that let you manipulate the grid.\n */\n api: PropTypes.object.isRequired,\n /**\n * The mode of the cell.\n */\n cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,\n changeReason: PropTypes.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),\n /**\n * The column of the row that the current cell belongs to.\n */\n colDef: PropTypes.object.isRequired,\n /**\n * The column field of the cell that triggered the event.\n */\n field: PropTypes.string.isRequired,\n /**\n * The cell value formatted with the column valueFormatter.\n */\n formattedValue: PropTypes.any,\n /**\n * If true, the cell is the active element.\n */\n hasFocus: PropTypes.bool.isRequired,\n /**\n * The grid row id.\n */\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,\n /**\n * If true, the cell is editable.\n */\n isEditable: PropTypes.bool,\n isProcessingProps: PropTypes.bool,\n isValidating: PropTypes.bool,\n /**\n * Callback called when the value is changed by the user.\n * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.\n * @param {Date | null} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.\n * @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`\n */\n onValueChange: PropTypes.func,\n /**\n * The row model of the row that the current cell belongs to.\n */\n row: PropTypes.any.isRequired,\n /**\n * The node of the row that the current cell belongs to.\n */\n rowNode: PropTypes.object.isRequired,\n slotProps: PropTypes.object,\n /**\n * the tabIndex value.\n */\n tabIndex: PropTypes.oneOf([-1, 0]).isRequired,\n /**\n * The cell value.\n * If the column has `valueGetter`, use `params.row` to directly access the fields.\n */\n value: PropTypes.any\n} : void 0;\nexport { GridEditDateCell };\nexport const renderEditDateCell = params => /*#__PURE__*/_jsx(GridEditDateCell, _extends({}, params));","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { gridDateComparator } from \"../hooks/features/sorting/gridSortingUtils.js\";\nimport { getGridDateOperators } from \"./gridDateOperators.js\";\nimport { GRID_STRING_COL_DEF } from \"./gridStringColDef.js\";\nimport { renderEditDateCell } from \"../components/cell/GridEditDateCell.js\";\nimport { gridRowIdSelector } from \"../hooks/core/gridPropsSelectors.js\";\nfunction throwIfNotDateObject({\n value,\n columnType,\n rowId,\n field\n}) {\n if (!(value instanceof Date)) {\n throw new Error([`MUI X: \\`${columnType}\\` column type only accepts \\`Date\\` objects as values.`, 'Use `valueGetter` to transform the value into a `Date` object.', `Row ID: ${rowId}, field: \"${field}\".`].join('\\n'));\n }\n}\nexport const gridDateFormatter = (value, row, column, apiRef) => {\n if (!value) {\n return '';\n }\n const rowId = gridRowIdSelector(apiRef, row);\n throwIfNotDateObject({\n value,\n columnType: 'date',\n rowId,\n field: column.field\n });\n return value.toLocaleDateString();\n};\nexport const gridDateTimeFormatter = (value, row, column, apiRef) => {\n if (!value) {\n return '';\n }\n const rowId = gridRowIdSelector(apiRef, row);\n throwIfNotDateObject({\n value,\n columnType: 'dateTime',\n rowId,\n field: column.field\n });\n return value.toLocaleString();\n};\nexport const GRID_DATE_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {\n type: 'date',\n sortComparator: gridDateComparator,\n valueFormatter: gridDateFormatter,\n filterOperators: getGridDateOperators(),\n renderEditCell: renderEditDateCell,\n // @ts-ignore\n pastedValueParser: value => new Date(value)\n});\nexport const GRID_DATETIME_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {\n type: 'dateTime',\n sortComparator: gridDateComparator,\n valueFormatter: gridDateTimeFormatter,\n filterOperators: getGridDateOperators(true),\n renderEditCell: renderEditDateCell,\n // @ts-ignore\n pastedValueParser: value => new Date(value)\n});","import { GridFilterInputValue } from \"../components/panel/filterPanel/GridFilterInputValue.js\";\nimport { GridFilterInputMultipleValue } from \"../components/panel/filterPanel/GridFilterInputMultipleValue.js\";\nconst parseNumericValue = value => {\n if (value == null) {\n return null;\n }\n return Number(value);\n};\nexport const getGridNumericQuickFilterFn = value => {\n if (value == null || Number.isNaN(value) || value === '') {\n return null;\n }\n return columnValue => {\n return parseNumericValue(columnValue) === parseNumericValue(value);\n };\n};\nexport const getGridNumericOperators = () => [{\n value: '=',\n getApplyFilterFn: filterItem => {\n if (filterItem.value == null || Number.isNaN(filterItem.value)) {\n return null;\n }\n return value => {\n return parseNumericValue(value) === filterItem.value;\n };\n },\n InputComponent: GridFilterInputValue,\n InputComponentProps: {\n type: 'number'\n }\n}, {\n value: '!=',\n getApplyFilterFn: filterItem => {\n if (filterItem.value == null || Number.isNaN(filterItem.value)) {\n return null;\n }\n return value => {\n return parseNumericValue(value) !== filterItem.value;\n };\n },\n InputComponent: GridFilterInputValue,\n InputComponentProps: {\n type: 'number'\n }\n}, {\n value: '>',\n getApplyFilterFn: filterItem => {\n if (filterItem.value == null || Number.isNaN(filterItem.value)) {\n return null;\n }\n return value => {\n if (value == null) {\n return false;\n }\n return parseNumericValue(value) > filterItem.value;\n };\n },\n InputComponent: GridFilterInputValue,\n InputComponentProps: {\n type: 'number'\n }\n}, {\n value: '>=',\n getApplyFilterFn: filterItem => {\n if (filterItem.value == null || Number.isNaN(filterItem.value)) {\n return null;\n }\n return value => {\n if (value == null) {\n return false;\n }\n return parseNumericValue(value) >= filterItem.value;\n };\n },\n InputComponent: GridFilterInputValue,\n InputComponentProps: {\n type: 'number'\n }\n}, {\n value: '<',\n getApplyFilterFn: filterItem => {\n if (filterItem.value == null || Number.isNaN(filterItem.value)) {\n return null;\n }\n return value => {\n if (value == null) {\n return false;\n }\n return parseNumericValue(value) < filterItem.value;\n };\n },\n InputComponent: GridFilterInputValue,\n InputComponentProps: {\n type: 'number'\n }\n}, {\n value: '<=',\n getApplyFilterFn: filterItem => {\n if (filterItem.value == null || Number.isNaN(filterItem.value)) {\n return null;\n }\n return value => {\n if (value == null) {\n return false;\n }\n return parseNumericValue(value) <= filterItem.value;\n };\n },\n InputComponent: GridFilterInputValue,\n InputComponentProps: {\n type: 'number'\n }\n}, {\n value: 'isEmpty',\n getApplyFilterFn: () => {\n return value => {\n return value == null;\n };\n },\n requiresFilterValue: false\n}, {\n value: 'isNotEmpty',\n getApplyFilterFn: () => {\n return value => {\n return value != null;\n };\n },\n requiresFilterValue: false\n}, {\n value: 'isAnyOf',\n getApplyFilterFn: filterItem => {\n if (!Array.isArray(filterItem.value) || filterItem.value.length === 0) {\n return null;\n }\n return value => {\n return value != null && filterItem.value.includes(Number(value));\n };\n },\n InputComponent: GridFilterInputMultipleValue,\n InputComponentProps: {\n type: 'number'\n }\n}];","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { gridNumberComparator } from \"../hooks/features/sorting/gridSortingUtils.js\";\nimport { isNumber } from \"../utils/utils.js\";\nimport { getGridNumericOperators, getGridNumericQuickFilterFn } from \"./gridNumericOperators.js\";\nimport { GRID_STRING_COL_DEF } from \"./gridStringColDef.js\";\nexport const GRID_NUMERIC_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {\n type: 'number',\n align: 'right',\n headerAlign: 'right',\n sortComparator: gridNumberComparator,\n valueParser: value => value === '' ? null : Number(value),\n valueFormatter: value => isNumber(value) ? value.toLocaleString() : value || '',\n filterOperators: getGridNumericOperators(),\n getApplyQuickFilterFn: getGridNumericQuickFilterFn\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport function isSingleSelectColDef(colDef) {\n return colDef?.type === 'singleSelect';\n}\nexport function getValueOptions(column, additionalParams) {\n if (!column) {\n return undefined;\n }\n return typeof column.valueOptions === 'function' ? column.valueOptions(_extends({\n field: column.field\n }, additionalParams)) : column.valueOptions;\n}\nexport function getValueFromValueOptions(value, valueOptions, getOptionValue) {\n if (valueOptions === undefined) {\n return undefined;\n }\n const result = valueOptions.find(option => {\n const optionValue = getOptionValue(option);\n return String(optionValue) === String(value);\n });\n return getOptionValue(result);\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"id\", \"value\", \"formattedValue\", \"api\", \"field\", \"row\", \"rowNode\", \"colDef\", \"cellMode\", \"isEditable\", \"tabIndex\", \"className\", \"hasFocus\", \"isValidating\", \"isProcessingProps\", \"error\", \"onValueChange\", \"initialOpen\", \"slotProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';\nimport { GridCellEditStopReasons } from \"../../models/params/gridEditCellParams.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { GridEditModes } from \"../../models/gridEditRowModel.js\";\nimport { getValueFromValueOptions, getValueOptions, isSingleSelectColDef } from \"../panel/filterPanel/filterPanelUtils.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { createElement as _createElement } from \"react\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction isKeyboardEvent(event) {\n return !!event.key;\n}\nfunction GridEditSingleSelectCell(props) {\n const rootProps = useGridRootProps();\n const {\n id,\n value: valueProp,\n field,\n row,\n colDef,\n hasFocus,\n error,\n onValueChange,\n initialOpen = rootProps.editMode === GridEditModes.Cell,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridApiContext();\n const ref = React.useRef(null);\n const inputRef = React.useRef(null);\n const [open, setOpen] = React.useState(initialOpen);\n const baseSelectProps = rootProps.slotProps?.baseSelect || {};\n const isSelectNative = baseSelectProps.native ?? false;\n useEnhancedEffect(() => {\n if (hasFocus) {\n inputRef.current?.focus();\n }\n }, [hasFocus]);\n if (!isSingleSelectColDef(colDef)) {\n return null;\n }\n const valueOptions = getValueOptions(colDef, {\n id,\n row\n });\n if (!valueOptions) {\n return null;\n }\n const getOptionValue = colDef.getOptionValue;\n const getOptionLabel = colDef.getOptionLabel;\n const handleChange = async event => {\n if (!isSingleSelectColDef(colDef) || !valueOptions) {\n return;\n }\n setOpen(false);\n const target = event.target;\n // NativeSelect casts the value to a string.\n const formattedTargetValue = getValueFromValueOptions(target.value, valueOptions, getOptionValue);\n if (onValueChange) {\n await onValueChange(event, formattedTargetValue);\n }\n await apiRef.current.setEditCellValue({\n id,\n field,\n value: formattedTargetValue\n }, event);\n };\n const handleClose = (event, reason) => {\n if (rootProps.editMode === GridEditModes.Row) {\n setOpen(false);\n return;\n }\n if (reason === 'backdropClick' || event.key === 'Escape') {\n const params = apiRef.current.getCellParams(id, field);\n apiRef.current.publishEvent('cellEditStop', _extends({}, params, {\n reason: event.key === 'Escape' ? GridCellEditStopReasons.escapeKeyDown : GridCellEditStopReasons.cellFocusOut\n }));\n }\n };\n const handleOpen = event => {\n if (isKeyboardEvent(event) && event.key === 'Enter') {\n return;\n }\n setOpen(true);\n };\n if (!valueOptions || !colDef) {\n return null;\n }\n return /*#__PURE__*/_jsx(rootProps.slots.baseSelect, _extends({\n ref: ref,\n value: valueProp,\n onChange: handleChange,\n open: open,\n onOpen: handleOpen,\n onClose: handleClose,\n error: error,\n native: isSelectNative,\n fullWidth: true,\n slotProps: {\n htmlInput: {\n ref: inputRef\n }\n }\n }, other, slotProps?.root, rootProps.slotProps?.baseSelect, {\n children: valueOptions.map(valueOption => {\n const value = getOptionValue(valueOption);\n return /*#__PURE__*/_createElement(rootProps.slots.baseSelectOption, _extends({}, rootProps.slotProps?.baseSelectOption || {}, {\n native: isSelectNative,\n key: value,\n value: value\n }), getOptionLabel(valueOption));\n })\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridEditSingleSelectCell.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * GridApi that let you manipulate the grid.\n */\n api: PropTypes.object.isRequired,\n /**\n * The mode of the cell.\n */\n cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,\n changeReason: PropTypes.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),\n /**\n * The column of the row that the current cell belongs to.\n */\n colDef: PropTypes.object.isRequired,\n /**\n * The column field of the cell that triggered the event.\n */\n field: PropTypes.string.isRequired,\n /**\n * The cell value formatted with the column valueFormatter.\n */\n formattedValue: PropTypes.any,\n /**\n * If true, the cell is the active element.\n */\n hasFocus: PropTypes.bool.isRequired,\n /**\n * The grid row id.\n */\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,\n /**\n * If true, the select opens by default.\n */\n initialOpen: PropTypes.bool,\n /**\n * If true, the cell is editable.\n */\n isEditable: PropTypes.bool,\n isProcessingProps: PropTypes.bool,\n isValidating: PropTypes.bool,\n /**\n * Callback called when the value is changed by the user.\n * @param {Event<any>} event The event source of the callback.\n * @param {any} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.\n * @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`\n */\n onValueChange: PropTypes.func,\n /**\n * The row model of the row that the current cell belongs to.\n */\n row: PropTypes.any.isRequired,\n /**\n * The node of the row that the current cell belongs to.\n */\n rowNode: PropTypes.object.isRequired,\n /**\n * the tabIndex value.\n */\n tabIndex: PropTypes.oneOf([-1, 0]).isRequired,\n /**\n * The cell value.\n * If the column has `valueGetter`, use `params.row` to directly access the fields.\n */\n value: PropTypes.any\n} : void 0;\nexport { GridEditSingleSelectCell };\nexport const renderEditSingleSelectCell = params => /*#__PURE__*/_jsx(GridEditSingleSelectCell, _extends({}, params));","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"item\", \"applyValue\", \"type\", \"apiRef\", \"focusElementRef\", \"tabIndex\", \"isFilterActive\", \"clearButton\", \"headerFilterMenu\", \"slotProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_useId as useId } from '@mui/utils';\nimport { useGridRootProps } from \"../../../hooks/utils/useGridRootProps.js\";\nimport { getValueFromValueOptions, getValueOptions, isSingleSelectColDef } from \"./filterPanelUtils.js\";\nimport { createElement as _createElement } from \"react\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst renderSingleSelectOptions = ({\n column,\n OptionComponent,\n getOptionLabel,\n getOptionValue,\n isSelectNative,\n baseSelectOptionProps\n}) => {\n const iterableColumnValues = ['', ...(getValueOptions(column) || [])];\n return iterableColumnValues.map(option => {\n const value = getOptionValue(option);\n let label = getOptionLabel(option);\n if (label === '') {\n label = ' '; // To force the height of the empty option\n }\n return /*#__PURE__*/_createElement(OptionComponent, _extends({}, baseSelectOptionProps, {\n native: isSelectNative,\n key: value,\n value: value\n }), label);\n });\n};\nfunction GridFilterInputSingleSelect(props) {\n const {\n item,\n applyValue,\n type,\n apiRef,\n focusElementRef,\n tabIndex,\n clearButton,\n headerFilterMenu,\n slotProps\n } = props,\n others = _objectWithoutPropertiesLoose(props, _excluded);\n const filterValue = item.value ?? '';\n const id = useId();\n const labelId = useId();\n const rootProps = useGridRootProps();\n const isSelectNative = rootProps.slotProps?.baseSelect?.native ?? false;\n let resolvedColumn = null;\n if (item.field) {\n const column = apiRef.current.getColumn(item.field);\n if (isSingleSelectColDef(column)) {\n resolvedColumn = column;\n }\n }\n const getOptionValue = resolvedColumn?.getOptionValue;\n const getOptionLabel = resolvedColumn?.getOptionLabel;\n const currentValueOptions = React.useMemo(() => {\n return getValueOptions(resolvedColumn);\n }, [resolvedColumn]);\n const onFilterChange = React.useCallback(event => {\n let value = event.target.value;\n\n // NativeSelect casts the value to a string.\n value = getValueFromValueOptions(value, currentValueOptions, getOptionValue);\n applyValue(_extends({}, item, {\n value\n }));\n }, [currentValueOptions, getOptionValue, applyValue, item]);\n if (!isSingleSelectColDef(resolvedColumn)) {\n return null;\n }\n const label = slotProps?.root.label ?? apiRef.current.getLocaleText('filterPanelInputLabel');\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(rootProps.slots.baseSelect, _extends({\n fullWidth: true,\n id: id,\n label: label,\n labelId: labelId,\n value: filterValue,\n onChange: onFilterChange,\n slotProps: {\n htmlInput: _extends({\n tabIndex,\n ref: focusElementRef,\n type: type || 'text',\n placeholder: slotProps?.root.placeholder ?? apiRef.current.getLocaleText('filterPanelInputPlaceholder')\n }, slotProps?.root.slotProps?.htmlInput)\n },\n native: isSelectNative\n }, rootProps.slotProps?.baseSelect, others, slotProps?.root, {\n children: renderSingleSelectOptions({\n column: resolvedColumn,\n OptionComponent: rootProps.slots.baseSelectOption,\n getOptionLabel,\n getOptionValue,\n isSelectNative,\n baseSelectOptionProps: rootProps.slotProps?.baseSelectOption\n })\n })), headerFilterMenu, clearButton]\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GridFilterInputSingleSelect.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n apiRef: PropTypes.shape({\n current: PropTypes.object.isRequired\n }).isRequired,\n applyValue: PropTypes.func.isRequired,\n className: PropTypes.string,\n clearButton: PropTypes.node,\n disabled: PropTypes.bool,\n focusElementRef: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.func, PropTypes.object]),\n headerFilterMenu: PropTypes.node,\n inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: (props, propName) => {\n if (props[propName] == null) {\n return null;\n }\n if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {\n return new Error(`Expected prop '${propName}' to be of type Element`);\n }\n return null;\n }\n })]),\n /**\n * It is `true` if the filter either has a value or an operator with no value\n * required is selected (for example `isEmpty`)\n */\n isFilterActive: PropTypes.bool,\n item: PropTypes.shape({\n field: PropTypes.string.isRequired,\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n operator: PropTypes.string.isRequired,\n value: PropTypes.any\n }).isRequired,\n onBlur: PropTypes.func,\n onFocus: PropTypes.func,\n slotProps: PropTypes.object,\n tabIndex: PropTypes.number,\n type: PropTypes.oneOf(['singleSelect'])\n} : void 0;\nexport { GridFilterInputSingleSelect };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"item\", \"applyValue\", \"type\", \"apiRef\", \"focusElementRef\", \"slotProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_useId as useId } from '@mui/utils';\nimport { useGridRootProps } from \"../../../hooks/utils/useGridRootProps.js\";\nimport { getValueOptions, isSingleSelectColDef } from \"./filterPanelUtils.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GridFilterInputMultipleSingleSelect(props) {\n const {\n item,\n applyValue,\n type,\n apiRef,\n focusElementRef,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const id = useId();\n const rootProps = useGridRootProps();\n let resolvedColumn = null;\n if (item.field) {\n const column = apiRef.current.getColumn(item.field);\n if (isSingleSelectColDef(column)) {\n resolvedColumn = column;\n }\n }\n const getOptionValue = resolvedColumn?.getOptionValue;\n const getOptionLabel = resolvedColumn?.getOptionLabel;\n const isOptionEqualToValue = React.useCallback((option, value) => getOptionValue(option) === getOptionValue(value), [getOptionValue]);\n const resolvedValueOptions = React.useMemo(() => {\n return getValueOptions(resolvedColumn) || [];\n }, [resolvedColumn]);\n\n // The value is computed from the item.value and used directly\n // If it was done by a useEffect/useState, the Autocomplete could receive incoherent value and options\n const filteredValues = React.useMemo(() => {\n if (!Array.isArray(item.value)) {\n return [];\n }\n return item.value.reduce((acc, value) => {\n const resolvedValue = resolvedValueOptions.find(v => getOptionValue(v) === value);\n if (resolvedValue != null) {\n acc.push(resolvedValue);\n }\n return acc;\n }, []);\n }, [getOptionValue, item.value, resolvedValueOptions]);\n const handleChange = React.useCallback((event, value) => {\n applyValue(_extends({}, item, {\n value: value.map(getOptionValue)\n }));\n }, [applyValue, item, getOptionValue]);\n const BaseAutocomplete = rootProps.slots.baseAutocomplete;\n return /*#__PURE__*/_jsx(BaseAutocomplete, _extends({\n multiple: true,\n options: resolvedValueOptions,\n isOptionEqualToValue: isOptionEqualToValue,\n id: id,\n value: filteredValues,\n onChange: handleChange,\n getOptionLabel: getOptionLabel,\n label: apiRef.current.getLocaleText('filterPanelInputLabel'),\n placeholder: apiRef.current.getLocaleText('filterPanelInputPlaceholder'),\n slotProps: {\n textField: {\n type: type || 'text',\n inputRef: focusElementRef\n }\n }\n }, other, slotProps?.root));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridFilterInputMultipleSingleSelect.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n apiRef: PropTypes.shape({\n current: PropTypes.object.isRequired\n }).isRequired,\n applyValue: PropTypes.func.isRequired,\n className: PropTypes.string,\n clearButton: PropTypes.node,\n disabled: PropTypes.bool,\n focusElementRef: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.func, PropTypes.object]),\n headerFilterMenu: PropTypes.node,\n inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: (props, propName) => {\n if (props[propName] == null) {\n return null;\n }\n if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {\n return new Error(`Expected prop '${propName}' to be of type Element`);\n }\n return null;\n }\n })]),\n /**\n * It is `true` if the filter either has a value or an operator with no value\n * required is selected (for example `isEmpty`)\n */\n isFilterActive: PropTypes.bool,\n item: PropTypes.shape({\n field: PropTypes.string.isRequired,\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n operator: PropTypes.string.isRequired,\n value: PropTypes.any\n }).isRequired,\n onBlur: PropTypes.func,\n onFocus: PropTypes.func,\n slotProps: PropTypes.object,\n tabIndex: PropTypes.number,\n type: PropTypes.oneOf(['singleSelect'])\n} : void 0;\nexport { GridFilterInputMultipleSingleSelect };","import { GridFilterInputSingleSelect } from \"../components/panel/filterPanel/GridFilterInputSingleSelect.js\";\nimport { GridFilterInputMultipleSingleSelect } from \"../components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js\";\nimport { isObject } from \"../utils/utils.js\";\nconst parseObjectValue = value => {\n if (value == null || !isObject(value)) {\n return value;\n }\n return value.value;\n};\nexport const getGridSingleSelectOperators = () => [{\n value: 'is',\n getApplyFilterFn: filterItem => {\n if (filterItem.value == null || filterItem.value === '') {\n return null;\n }\n return value => parseObjectValue(value) === parseObjectValue(filterItem.value);\n },\n InputComponent: GridFilterInputSingleSelect\n}, {\n value: 'not',\n getApplyFilterFn: filterItem => {\n if (filterItem.value == null || filterItem.value === '') {\n return null;\n }\n return value => parseObjectValue(value) !== parseObjectValue(filterItem.value);\n },\n InputComponent: GridFilterInputSingleSelect\n}, {\n value: 'isAnyOf',\n getApplyFilterFn: filterItem => {\n if (!Array.isArray(filterItem.value) || filterItem.value.length === 0) {\n return null;\n }\n const filterItemValues = filterItem.value.map(parseObjectValue);\n return value => filterItemValues.includes(parseObjectValue(value));\n },\n InputComponent: GridFilterInputMultipleSingleSelect\n}];","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { GRID_STRING_COL_DEF } from \"./gridStringColDef.js\";\nimport { renderEditSingleSelectCell } from \"../components/cell/GridEditSingleSelectCell.js\";\nimport { getGridSingleSelectOperators } from \"./gridSingleSelectOperators.js\";\nimport { getValueOptions, isSingleSelectColDef } from \"../components/panel/filterPanel/filterPanelUtils.js\";\nimport { isObject } from \"../utils/utils.js\";\nimport { gridRowIdSelector } from \"../hooks/core/gridPropsSelectors.js\";\nconst isArrayOfObjects = options => {\n return typeof options[0] === 'object';\n};\nconst defaultGetOptionValue = value => {\n return isObject(value) ? value.value : value;\n};\nconst defaultGetOptionLabel = value => {\n return isObject(value) ? value.label : String(value);\n};\nexport const GRID_SINGLE_SELECT_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {\n type: 'singleSelect',\n getOptionLabel: defaultGetOptionLabel,\n getOptionValue: defaultGetOptionValue,\n valueFormatter(value, row, colDef, apiRef) {\n const rowId = gridRowIdSelector(apiRef, row);\n if (!isSingleSelectColDef(colDef)) {\n return '';\n }\n const valueOptions = getValueOptions(colDef, {\n id: rowId,\n row\n });\n if (value == null) {\n return '';\n }\n if (!valueOptions) {\n return value;\n }\n if (!isArrayOfObjects(valueOptions)) {\n return colDef.getOptionLabel(value);\n }\n const valueOption = valueOptions.find(option => colDef.getOptionValue(option) === value);\n return valueOption ? colDef.getOptionLabel(valueOption) : '';\n },\n renderEditCell: renderEditSingleSelectCell,\n filterOperators: getGridSingleSelectOperators(),\n // @ts-ignore\n pastedValueParser: (value, row, column) => {\n const colDef = column;\n const valueOptions = getValueOptions(colDef) || [];\n const getOptionValue = colDef.getOptionValue;\n const valueOption = valueOptions.find(option => {\n if (getOptionValue(option) === value) {\n return true;\n }\n return false;\n });\n if (valueOption) {\n return value;\n }\n // do not paste the value if it is not in the valueOptions\n return undefined;\n }\n});","import { GRID_STRING_COL_DEF } from \"./gridStringColDef.js\";\nimport { GRID_NUMERIC_COL_DEF } from \"./gridNumericColDef.js\";\nimport { GRID_DATE_COL_DEF, GRID_DATETIME_COL_DEF } from \"./gridDateColDef.js\";\nimport { GRID_BOOLEAN_COL_DEF } from \"./gridBooleanColDef.js\";\nimport { GRID_SINGLE_SELECT_COL_DEF } from \"./gridSingleSelectColDef.js\";\nimport { GRID_ACTIONS_COL_DEF, GRID_ACTIONS_COLUMN_TYPE } from \"./gridActionsColDef.js\";\nexport const DEFAULT_GRID_COL_TYPE_KEY = 'string';\nexport const getGridDefaultColumnTypes = () => {\n const nativeColumnTypes = {\n string: GRID_STRING_COL_DEF,\n number: GRID_NUMERIC_COL_DEF,\n date: GRID_DATE_COL_DEF,\n dateTime: GRID_DATETIME_COL_DEF,\n boolean: GRID_BOOLEAN_COL_DEF,\n singleSelect: GRID_SINGLE_SELECT_COL_DEF,\n [GRID_ACTIONS_COLUMN_TYPE]: GRID_ACTIONS_COL_DEF,\n custom: GRID_STRING_COL_DEF\n };\n return nativeColumnTypes;\n};","import { createSelector, createRootSelector } from \"../../../utils/createSelector.js\";\nexport const gridHeaderFilteringStateSelector = createRootSelector(state => state.headerFiltering);\nexport const gridHeaderFilteringEnabledSelector = createSelector(gridHeaderFilteringStateSelector,\n// No initialization in MIT, so we need to default to false to be used by `getTotalHeaderHeight`\nheaderFilteringState => headerFilteringState?.enabled ?? false);\nexport const gridHeaderFilteringEditFieldSelector = createSelector(gridHeaderFilteringStateSelector, headerFilteringState => headerFilteringState.editing);\nexport const gridHeaderFilteringMenuSelector = createSelector(gridHeaderFilteringStateSelector, headerFilteringState => headerFilteringState.menuOpen);","import { createSelector, createRootSelector, createSelectorMemoized } from \"../../../utils/createSelector.js\";\n/**\n * @category ColumnGrouping\n * @ignore - do not document.\n */\nexport const gridColumnGroupingSelector = createRootSelector(state => state.columnGrouping);\nexport const gridColumnGroupsUnwrappedModelSelector = createSelectorMemoized(gridColumnGroupingSelector, columnGrouping => columnGrouping?.unwrappedGroupingModel ?? {});\nexport const gridColumnGroupsLookupSelector = createSelectorMemoized(gridColumnGroupingSelector, columnGrouping => columnGrouping?.lookup ?? {});\nexport const gridColumnGroupsHeaderStructureSelector = createSelectorMemoized(gridColumnGroupingSelector, columnGrouping => columnGrouping?.headerStructure ?? []);\nexport const gridColumnGroupsHeaderMaxDepthSelector = createSelector(gridColumnGroupingSelector, columnGrouping => columnGrouping?.maxDepth ?? 0);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport resolveProps from '@mui/utils/resolveProps';\nimport { DEFAULT_GRID_COL_TYPE_KEY, GRID_STRING_COL_DEF, getGridDefaultColumnTypes } from \"../../../colDef/index.js\";\nimport { gridColumnsStateSelector, gridColumnVisibilityModelSelector } from \"./gridColumnsSelector.js\";\nimport { clamp } from \"../../../utils/utils.js\";\nimport { gridDensityFactorSelector } from \"../density/densitySelector.js\";\nimport { gridHeaderFilteringEnabledSelector } from \"../headerFiltering/gridHeaderFilteringSelectors.js\";\nimport { gridColumnGroupsHeaderMaxDepthSelector } from \"../columnGrouping/gridColumnGroupsSelector.js\";\nexport const COLUMNS_DIMENSION_PROPERTIES = ['maxWidth', 'minWidth', 'width', 'flex'];\nconst COLUMN_TYPES = getGridDefaultColumnTypes();\n\n/**\n * Computes width for flex columns.\n * Based on CSS Flexbox specification:\n * https://drafts.csswg.org/css-flexbox-1/#resolve-flexible-lengths\n */\nexport function computeFlexColumnsWidth({\n initialFreeSpace,\n totalFlexUnits,\n flexColumns\n}) {\n const uniqueFlexColumns = new Set(flexColumns.map(col => col.field));\n const flexColumnsLookup = {\n all: {},\n frozenFields: [],\n freeze: field => {\n const value = flexColumnsLookup.all[field];\n if (value && value.frozen !== true) {\n flexColumnsLookup.all[field].frozen = true;\n flexColumnsLookup.frozenFields.push(field);\n }\n }\n };\n\n // Step 5 of https://drafts.csswg.org/css-flexbox-1/#resolve-flexible-lengths\n function loopOverFlexItems() {\n // 5a: If all the flex items on the line are frozen, free space has been distributed.\n if (flexColumnsLookup.frozenFields.length === uniqueFlexColumns.size) {\n return;\n }\n const violationsLookup = {\n min: {},\n max: {}\n };\n let remainingFreeSpace = initialFreeSpace;\n let flexUnits = totalFlexUnits;\n let totalViolation = 0;\n\n // 5b: Calculate the remaining free space\n flexColumnsLookup.frozenFields.forEach(field => {\n remainingFreeSpace -= flexColumnsLookup.all[field].computedWidth;\n flexUnits -= flexColumnsLookup.all[field].flex;\n });\n for (let i = 0; i < flexColumns.length; i += 1) {\n const column = flexColumns[i];\n if (flexColumnsLookup.all[column.field] && flexColumnsLookup.all[column.field].frozen === true) {\n continue;\n }\n\n // 5c: Distribute remaining free space proportional to the flex factors\n const widthPerFlexUnit = remainingFreeSpace / flexUnits;\n let computedWidth = widthPerFlexUnit * column.flex;\n\n // 5d: Fix min/max violations\n if (computedWidth < column.minWidth) {\n totalViolation += column.minWidth - computedWidth;\n computedWidth = column.minWidth;\n violationsLookup.min[column.field] = true;\n } else if (computedWidth > column.maxWidth) {\n totalViolation += column.maxWidth - computedWidth;\n computedWidth = column.maxWidth;\n violationsLookup.max[column.field] = true;\n }\n flexColumnsLookup.all[column.field] = {\n frozen: false,\n computedWidth,\n flex: column.flex\n };\n }\n\n // 5e: Freeze over-flexed items\n if (totalViolation < 0) {\n // Freeze all the items with max violations\n Object.keys(violationsLookup.max).forEach(field => {\n flexColumnsLookup.freeze(field);\n });\n } else if (totalViolation > 0) {\n // Freeze all the items with min violations\n Object.keys(violationsLookup.min).forEach(field => {\n flexColumnsLookup.freeze(field);\n });\n } else {\n // Freeze all items\n flexColumns.forEach(({\n field\n }) => {\n flexColumnsLookup.freeze(field);\n });\n }\n\n // 5f: Return to the start of this loop\n loopOverFlexItems();\n }\n loopOverFlexItems();\n return flexColumnsLookup.all;\n}\n\n/**\n * Compute the `computedWidth` (ie: the width the column should have during rendering) based on the `width` / `flex` / `minWidth` / `maxWidth` properties of `GridColDef`.\n * The columns already have been merged with there `type` default values for `minWidth`, `maxWidth` and `width`, thus the `!` for those properties below.\n * TODO: Unit test this function in depth and only keep basic cases for the whole grid testing.\n * TODO: Improve the `GridColDef` typing to reflect the fact that `minWidth` / `maxWidth` and `width` can't be null after the merge with the `type` default values.\n */\nexport const hydrateColumnsWidth = (rawState, dimensions) => {\n const columnsLookup = {};\n let totalFlexUnits = 0;\n let widthAllocatedBeforeFlex = 0;\n const flexColumns = [];\n\n // For the non-flex columns, compute their width\n // For the flex columns, compute their minimum width and how much width must be allocated during the flex allocation\n rawState.orderedFields.forEach(columnField => {\n let column = rawState.lookup[columnField];\n let computedWidth = 0;\n let isFlex = false;\n if (rawState.columnVisibilityModel[columnField] !== false) {\n if (column.flex && column.flex > 0) {\n totalFlexUnits += column.flex;\n isFlex = true;\n } else {\n computedWidth = clamp(column.width || GRID_STRING_COL_DEF.width, column.minWidth || GRID_STRING_COL_DEF.minWidth, column.maxWidth || GRID_STRING_COL_DEF.maxWidth);\n }\n widthAllocatedBeforeFlex += computedWidth;\n }\n if (column.computedWidth !== computedWidth) {\n column = _extends({}, column, {\n computedWidth\n });\n }\n if (isFlex) {\n flexColumns.push(column);\n }\n columnsLookup[columnField] = column;\n });\n const availableWidth = dimensions === undefined ? 0 : dimensions.viewportOuterSize.width - (dimensions.hasScrollY ? dimensions.scrollbarSize : 0);\n const initialFreeSpace = Math.max(availableWidth - widthAllocatedBeforeFlex, 0);\n\n // Allocate the remaining space to the flex columns\n if (totalFlexUnits > 0 && availableWidth > 0) {\n const computedColumnWidths = computeFlexColumnsWidth({\n initialFreeSpace,\n totalFlexUnits,\n flexColumns\n });\n Object.keys(computedColumnWidths).forEach(field => {\n columnsLookup[field].computedWidth = computedColumnWidths[field].computedWidth;\n });\n }\n return _extends({}, rawState, {\n lookup: columnsLookup\n });\n};\n\n/**\n * Apply the order and the dimensions of the initial state.\n * The columns not registered in `orderedFields` will be placed after the imported columns.\n */\nexport const applyInitialState = (columnsState, initialState) => {\n if (!initialState) {\n return columnsState;\n }\n const {\n orderedFields = [],\n dimensions = {}\n } = initialState;\n const columnsWithUpdatedDimensions = Object.keys(dimensions);\n if (columnsWithUpdatedDimensions.length === 0 && orderedFields.length === 0) {\n return columnsState;\n }\n const orderedFieldsLookup = {};\n const cleanOrderedFields = [];\n for (let i = 0; i < orderedFields.length; i += 1) {\n const field = orderedFields[i];\n\n // Ignores the fields in the initialState that matches no field on the current column state\n if (columnsState.lookup[field]) {\n orderedFieldsLookup[field] = true;\n cleanOrderedFields.push(field);\n }\n }\n const newOrderedFields = cleanOrderedFields.length === 0 ? columnsState.orderedFields : [...cleanOrderedFields, ...columnsState.orderedFields.filter(field => !orderedFieldsLookup[field])];\n const newColumnLookup = _extends({}, columnsState.lookup);\n for (let i = 0; i < columnsWithUpdatedDimensions.length; i += 1) {\n const field = columnsWithUpdatedDimensions[i];\n const newColDef = _extends({}, newColumnLookup[field], {\n hasBeenResized: true\n });\n Object.entries(dimensions[field]).forEach(([key, value]) => {\n newColDef[key] = value === -1 ? Infinity : value;\n });\n newColumnLookup[field] = newColDef;\n }\n const newColumnsState = _extends({}, columnsState, {\n orderedFields: newOrderedFields,\n lookup: newColumnLookup\n });\n return newColumnsState;\n};\nexport function getDefaultColTypeDef(type) {\n let colDef = COLUMN_TYPES[DEFAULT_GRID_COL_TYPE_KEY];\n if (type && COLUMN_TYPES[type]) {\n colDef = COLUMN_TYPES[type];\n }\n return colDef;\n}\nexport const createColumnsState = ({\n apiRef,\n columnsToUpsert,\n initialState,\n columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef),\n keepOnlyColumnsToUpsert = false,\n updateInitialVisibilityModel = false\n}) => {\n const isInsideStateInitializer = !apiRef.current.state.columns;\n let columnsState;\n if (isInsideStateInitializer) {\n columnsState = {\n orderedFields: [],\n lookup: {},\n columnVisibilityModel,\n initialColumnVisibilityModel: columnVisibilityModel\n };\n } else {\n const currentState = gridColumnsStateSelector(apiRef);\n columnsState = {\n orderedFields: keepOnlyColumnsToUpsert ? [] : [...currentState.orderedFields],\n lookup: _extends({}, currentState.lookup),\n // Will be cleaned later if keepOnlyColumnsToUpsert=true\n columnVisibilityModel,\n initialColumnVisibilityModel: updateInitialVisibilityModel ? columnVisibilityModel : currentState.initialColumnVisibilityModel\n };\n }\n let columnsToKeep = {};\n if (keepOnlyColumnsToUpsert && !isInsideStateInitializer) {\n columnsToKeep = Object.keys(columnsState.lookup).reduce((acc, key) => _extends({}, acc, {\n [key]: false\n }), {});\n }\n const columnsToUpsertLookup = {};\n columnsToUpsert.forEach(newColumn => {\n const {\n field\n } = newColumn;\n columnsToUpsertLookup[field] = true;\n columnsToKeep[field] = true;\n let existingState = columnsState.lookup[field];\n if (existingState == null) {\n existingState = _extends({}, getDefaultColTypeDef(newColumn.type), {\n field,\n hasBeenResized: false\n });\n columnsState.orderedFields.push(field);\n } else if (keepOnlyColumnsToUpsert) {\n columnsState.orderedFields.push(field);\n }\n\n // If the column type has changed - merge the existing state with the default column type definition\n if (existingState && existingState.type !== newColumn.type) {\n existingState = _extends({}, getDefaultColTypeDef(newColumn.type), {\n field\n });\n }\n let hasBeenResized = existingState.hasBeenResized;\n COLUMNS_DIMENSION_PROPERTIES.forEach(key => {\n if (newColumn[key] !== undefined) {\n hasBeenResized = true;\n if (newColumn[key] === -1) {\n newColumn[key] = Infinity;\n }\n }\n });\n columnsState.lookup[field] = resolveProps(existingState, _extends({}, getDefaultColTypeDef(newColumn.type), newColumn, {\n hasBeenResized\n }));\n });\n if (keepOnlyColumnsToUpsert && !isInsideStateInitializer) {\n Object.keys(columnsState.lookup).forEach(field => {\n if (!columnsToKeep[field]) {\n delete columnsState.lookup[field];\n }\n });\n }\n const columnsStateWithPreProcessing = apiRef.current.unstable_applyPipeProcessors('hydrateColumns', columnsState);\n const columnsStateWithPortableColumns = applyInitialState(columnsStateWithPreProcessing, initialState);\n return hydrateColumnsWidth(columnsStateWithPortableColumns, apiRef.current.getRootDimensions?.() ?? undefined);\n};\nexport function getFirstNonSpannedColumnToRender({\n firstColumnToRender,\n apiRef,\n firstRowToRender,\n lastRowToRender,\n visibleRows\n}) {\n let firstNonSpannedColumnToRender = firstColumnToRender;\n for (let i = firstRowToRender; i < lastRowToRender; i += 1) {\n const row = visibleRows[i];\n if (row) {\n const rowId = visibleRows[i].id;\n const cellColSpanInfo = apiRef.current.unstable_getCellColSpanInfo(rowId, firstColumnToRender);\n if (cellColSpanInfo && cellColSpanInfo.spannedByColSpan) {\n firstNonSpannedColumnToRender = cellColSpanInfo.leftVisibleCellIndex;\n }\n }\n }\n return firstNonSpannedColumnToRender;\n}\nexport function getTotalHeaderHeight(apiRef, props) {\n if (props.listView) {\n return 0;\n }\n const densityFactor = gridDensityFactorSelector(apiRef);\n const maxDepth = gridColumnGroupsHeaderMaxDepthSelector(apiRef);\n const isHeaderFilteringEnabled = gridHeaderFilteringEnabledSelector(apiRef);\n const columnHeadersHeight = Math.floor(props.columnHeaderHeight * densityFactor);\n const columnGroupHeadersHeight = Math.floor((props.columnGroupHeaderHeight ?? props.columnHeaderHeight) * densityFactor);\n const filterHeadersHeight = isHeaderFilteringEnabled ? Math.floor((props.headerFilterHeight ?? props.columnHeaderHeight) * densityFactor) : 0;\n return columnHeadersHeight + columnGroupHeadersHeight * maxDepth + filterHeadersHeight;\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from '@mui/system';\nimport { fastMemo } from '@mui/x-internals/fastMemo';\nimport { useGridRootProps } from \"../hooks/utils/useGridRootProps.js\";\nimport { getDataGridUtilityClass, gridClasses } from \"../constants/index.js\";\nimport { useGridApiContext } from \"../hooks/utils/useGridApiContext.js\";\nimport { useGridEvent } from \"../hooks/utils/useGridEvent.js\";\nimport { useGridSelector } from \"../hooks/utils/useGridSelector.js\";\nimport { gridDimensionsSelector, gridColumnsTotalWidthSelector } from \"../hooks/features/dimensions/gridDimensionsSelectors.js\";\nimport { gridDensityFactorSelector } from \"../hooks/features/density/densitySelector.js\";\nimport { useTimeout } from \"../hooks/utils/useTimeout.js\";\nimport { getTotalHeaderHeight } from \"../hooks/features/columns/gridColumnsUtils.js\";\nimport { createSelector } from \"../utils/createSelector.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst CLIFF = 1;\nconst SLOP = 1.5;\nconst useUtilityClasses = ownerState => {\n const {\n scrollDirection,\n classes\n } = ownerState;\n const slots = {\n root: ['scrollArea', `scrollArea--${scrollDirection}`]\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridScrollAreaRawRoot = styled('div', {\n name: 'MuiDataGrid',\n slot: 'ScrollArea',\n overridesResolver: (props, styles) => [{\n [`&.${gridClasses['scrollArea--left']}`]: styles['scrollArea--left']\n }, {\n [`&.${gridClasses['scrollArea--right']}`]: styles['scrollArea--right']\n }, styles.scrollArea]\n})(() => ({\n position: 'absolute',\n top: 0,\n zIndex: 101,\n width: 20,\n bottom: 0,\n [`&.${gridClasses['scrollArea--left']}`]: {\n left: 0\n },\n [`&.${gridClasses['scrollArea--right']}`]: {\n right: 0\n }\n}));\nconst offsetSelector = createSelector(gridDimensionsSelector, (dimensions, direction) => {\n if (direction === 'left') {\n return dimensions.leftPinnedWidth;\n }\n if (direction === 'right') {\n return dimensions.rightPinnedWidth + (dimensions.hasScrollX ? dimensions.scrollbarSize : 0);\n }\n return 0;\n});\nfunction GridScrollAreaWrapper(props) {\n const apiRef = useGridApiContext();\n const [dragging, setDragging] = React.useState(false);\n useGridEvent(apiRef, 'columnHeaderDragStart', () => setDragging(true));\n useGridEvent(apiRef, 'columnHeaderDragEnd', () => setDragging(false));\n if (!dragging) {\n return null;\n }\n return /*#__PURE__*/_jsx(GridScrollAreaContent, _extends({}, props));\n}\nfunction GridScrollAreaContent(props) {\n const {\n scrollDirection,\n scrollPosition\n } = props;\n const rootRef = React.useRef(null);\n const apiRef = useGridApiContext();\n const timeout = useTimeout();\n const densityFactor = useGridSelector(apiRef, gridDensityFactorSelector);\n const columnsTotalWidth = useGridSelector(apiRef, gridColumnsTotalWidthSelector);\n const sideOffset = useGridSelector(apiRef, offsetSelector, scrollDirection);\n const getCanScrollMore = () => {\n const dimensions = gridDimensionsSelector(apiRef);\n if (scrollDirection === 'left') {\n // Only render if the user has not reached yet the start of the list\n return scrollPosition.current.left > 0;\n }\n if (scrollDirection === 'right') {\n // Only render if the user has not reached yet the end of the list\n const maxScrollLeft = columnsTotalWidth - dimensions.viewportInnerSize.width;\n return scrollPosition.current.left < maxScrollLeft;\n }\n return false;\n };\n const [canScrollMore, setCanScrollMore] = React.useState(getCanScrollMore);\n const rootProps = useGridRootProps();\n const ownerState = _extends({}, rootProps, {\n scrollDirection\n });\n const classes = useUtilityClasses(ownerState);\n const totalHeaderHeight = getTotalHeaderHeight(apiRef, rootProps);\n const headerHeight = Math.floor(rootProps.columnHeaderHeight * densityFactor);\n const style = {\n height: headerHeight,\n top: totalHeaderHeight - headerHeight\n };\n if (scrollDirection === 'left') {\n style.left = sideOffset;\n } else if (scrollDirection === 'right') {\n style.right = sideOffset;\n }\n const handleScrolling = () => {\n setCanScrollMore(getCanScrollMore);\n };\n const handleDragOver = useEventCallback(event => {\n let offset;\n\n // Prevents showing the forbidden cursor\n event.preventDefault();\n if (scrollDirection === 'left') {\n offset = event.clientX - rootRef.current.getBoundingClientRect().right;\n } else if (scrollDirection === 'right') {\n offset = Math.max(1, event.clientX - rootRef.current.getBoundingClientRect().left);\n } else {\n throw new Error('MUI X: Wrong drag direction');\n }\n offset = (offset - CLIFF) * SLOP + CLIFF;\n\n // Avoid freeze and inertia.\n timeout.start(0, () => {\n apiRef.current.scroll({\n left: scrollPosition.current.left + offset,\n top: scrollPosition.current.top\n });\n });\n });\n useGridEvent(apiRef, 'scrollPositionChange', handleScrolling);\n if (!canScrollMore) {\n return null;\n }\n return /*#__PURE__*/_jsx(GridScrollAreaRawRoot, {\n ref: rootRef,\n className: clsx(classes.root),\n ownerState: ownerState,\n onDragOver: handleDragOver,\n style: style\n });\n}\nexport const GridScrollArea = fastMemo(GridScrollAreaWrapper);","import * as React from 'react';\nexport const GridPrivateApiContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== 'production') {\n GridPrivateApiContext.displayName = 'GridPrivateApiContext';\n}\nexport function useGridPrivateApiContext() {\n const privateApiRef = React.useContext(GridPrivateApiContext);\n if (privateApiRef === undefined) {\n throw new Error(['MUI X: Could not find the Data Grid private context.', 'It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.', 'This can also happen if you are bundling multiple versions of the Data Grid.'].join('\\n'));\n }\n return privateApiRef;\n}","import * as React from 'react';\nimport { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';\nconst noop = () => {};\n\n/**\n * Runs an effect once, when `condition` is true.\n */\nexport const useRunOnce = (condition, effect) => {\n const didRun = React.useRef(false);\n useEnhancedEffect(() => {\n if (didRun.current || !condition) {\n return noop;\n }\n didRun.current = true;\n return effect();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [didRun.current || condition]);\n};","import * as React from 'react';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nexport function useGridApiMethod(privateApiRef, apiMethods, visibility) {\n const isFirstRender = React.useRef(true);\n useEnhancedEffect(() => {\n isFirstRender.current = false;\n privateApiRef.current.register(visibility, apiMethods);\n }, [privateApiRef, visibility, apiMethods]);\n if (isFirstRender.current) {\n privateApiRef.current.register(visibility, apiMethods);\n }\n}","import * as React from 'react';\nexport function useGridLogger(privateApiRef, name) {\n const logger = React.useRef(null);\n if (logger.current) {\n return logger.current;\n }\n const newLogger = privateApiRef.current.getLogger(name);\n logger.current = newLogger;\n return newLogger;\n}","import { useGridLogger } from \"./useGridLogger.js\";\nimport { useGridEventPriority } from \"./useGridEvent.js\";\nexport const useGridNativeEventListener = (apiRef, ref, eventName, handler, options) => {\n const logger = useGridLogger(apiRef, 'useNativeEventListener');\n useGridEventPriority(apiRef, 'rootMount', () => {\n const targetElement = ref();\n if (!targetElement || !eventName) {\n return undefined;\n }\n logger.debug(`Binding native ${eventName} event`);\n targetElement.addEventListener(eventName, handler, options);\n return () => {\n logger.debug(`Clearing native ${eventName} event`);\n targetElement.removeEventListener(eventName, handler, options);\n };\n });\n};","import * as React from 'react';\nexport const useFirstRender = callback => {\n const isFirstRender = React.useRef(true);\n if (isFirstRender.current) {\n isFirstRender.current = false;\n callback();\n }\n};","import { gridVisibleRowsSelector } from \"../features/pagination/gridPaginationSelector.js\";\nimport { useGridSelector } from \"./index.js\";\nexport const getVisibleRows = (apiRef, props) => {\n return gridVisibleRowsSelector(apiRef);\n};\n\n/**\n * Computes the list of rows that are reachable by scroll.\n * Depending on whether pagination is enabled, it will return the rows in the current page.\n * - If the pagination is disabled or in server mode, it equals all the visible rows.\n * - If the row tree has several layers, it contains up to `state.pageSize` top level rows and all their descendants.\n * - If the row tree is flat, it only contains up to `state.pageSize` rows.\n */\n\nexport const useGridVisibleRows = (apiRef, props) => {\n return useGridSelector(apiRef, gridVisibleRowsSelector);\n};","const userAgent = typeof navigator !== 'undefined' ? navigator.userAgent.toLowerCase() : 'empty';\nexport const isFirefox = userAgent.includes('firefox');","import { createRootSelector } from \"../../../utils/createSelector.js\";\nexport const gridRowsMetaSelector = createRootSelector(state => state.rowsMeta);","import { createRootSelector, createSelector, createSelectorMemoized } from \"../../../utils/createSelector.js\";\n/**\n * Get the columns state\n * @category Virtualization\n */\nexport const gridVirtualizationSelector = createRootSelector(state => state.virtualization);\n\n/**\n * Get the enabled state for virtualization\n * @category Virtualization\n * @deprecated Use `gridVirtualizationColumnEnabledSelector` and `gridVirtualizationRowEnabledSelector`\n */\nexport const gridVirtualizationEnabledSelector = createSelector(gridVirtualizationSelector, state => state.enabled);\n\n/**\n * Get the enabled state for column virtualization\n * @category Virtualization\n */\nexport const gridVirtualizationColumnEnabledSelector = createSelector(gridVirtualizationSelector, state => state.enabledForColumns);\n\n/**\n * Get the enabled state for row virtualization\n * @category Virtualization\n */\nexport const gridVirtualizationRowEnabledSelector = createSelector(gridVirtualizationSelector, state => state.enabledForRows);\n\n/**\n * Get the render context\n * @category Virtualization\n * @ignore - do not document.\n */\nexport const gridRenderContextSelector = createSelector(gridVirtualizationSelector, state => state.renderContext);\n\n/**\n * Get the render context, with only columns filled in.\n * This is cached, so it can be used to only re-render when the column interval changes.\n * @category Virtualization\n * @ignore - do not document.\n */\nexport const gridRenderContextColumnsSelector = createSelectorMemoized(apiRef => apiRef.current.state.virtualization.renderContext.firstColumnIndex, apiRef => apiRef.current.state.virtualization.renderContext.lastColumnIndex, (firstColumnIndex, lastColumnIndex) => ({\n firstColumnIndex,\n lastColumnIndex\n}));","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nexport const EMPTY_RENDER_CONTEXT = {\n firstRowIndex: 0,\n lastRowIndex: 0,\n firstColumnIndex: 0,\n lastColumnIndex: 0\n};\nexport const virtualizationStateInitializer = (state, props) => {\n const {\n disableVirtualization,\n autoHeight\n } = props;\n const virtualization = {\n enabled: !disableVirtualization,\n enabledForColumns: !disableVirtualization,\n enabledForRows: !disableVirtualization && !autoHeight,\n renderContext: EMPTY_RENDER_CONTEXT\n };\n return _extends({}, state, {\n virtualization\n });\n};\nexport function useGridVirtualization(apiRef, props) {\n /*\n * API METHODS\n */\n\n const setVirtualization = enabled => {\n apiRef.current.setState(state => _extends({}, state, {\n virtualization: _extends({}, state.virtualization, {\n enabled,\n enabledForColumns: enabled,\n enabledForRows: enabled && !props.autoHeight\n })\n }));\n };\n const setColumnVirtualization = enabled => {\n apiRef.current.setState(state => _extends({}, state, {\n virtualization: _extends({}, state.virtualization, {\n enabledForColumns: enabled\n })\n }));\n };\n const api = {\n unstable_setVirtualization: setVirtualization,\n unstable_setColumnVirtualization: setColumnVirtualization\n };\n useGridApiMethod(apiRef, api, 'public');\n\n /*\n * EFFECTS\n */\n\n /* eslint-disable react-hooks/exhaustive-deps */\n React.useEffect(() => {\n setVirtualization(!props.disableVirtualization);\n }, [props.disableVirtualization, props.autoHeight]);\n /* eslint-enable react-hooks/exhaustive-deps */\n}","import { createSelector, createRootSelector } from \"../../../utils/createSelector.js\";\nconst gridRowSpanningStateSelector = createRootSelector(state => state.rowSpanning);\nexport const gridRowSpanningHiddenCellsSelector = createSelector(gridRowSpanningStateSelector, rowSpanning => rowSpanning.hiddenCells);\nexport const gridRowSpanningSpannedCellsSelector = createSelector(gridRowSpanningStateSelector, rowSpanning => rowSpanning.spannedCells);\nexport const gridRowSpanningHiddenCellsOriginMapSelector = createSelector(gridRowSpanningStateSelector, rowSpanning => rowSpanning.hiddenCellOriginMap);","import { createRootSelector } from \"../../../utils/createSelector.js\";\n/**\n * Get the list column definition\n * @category List View\n * @ignore - Do not document\n */\nexport const gridListColumnSelector = createRootSelector(state => state.listViewColumn);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { createSelector, createSelectorMemoized } from \"../../../utils/createSelector.js\";\nimport { gridVisibleColumnDefinitionsSelector } from \"../columns/gridColumnsSelector.js\";\nimport { gridRenderContextSelector } from \"./gridVirtualizationSelectors.js\";\nimport { gridFocusCellSelector } from \"../focus/index.js\";\nimport { gridVisibleRowsSelector } from \"../pagination/index.js\";\nconst gridIsFocusedCellOutOfContext = createSelector(gridFocusCellSelector, gridRenderContextSelector, gridVisibleRowsSelector, gridVisibleColumnDefinitionsSelector, (focusedCell, renderContext, currentPage, visibleColumns) => {\n if (!focusedCell) {\n return false;\n }\n const rowIndex = currentPage.rowIdToIndexMap.get(focusedCell.id);\n const columnIndex = visibleColumns.slice(renderContext.firstColumnIndex, renderContext.lastColumnIndex).findIndex(column => column.field === focusedCell.field);\n const isInRenderContext = rowIndex !== undefined && columnIndex !== -1 && rowIndex >= renderContext.firstRowIndex && rowIndex <= renderContext.lastRowIndex;\n return !isInRenderContext;\n});\nexport const gridFocusedVirtualCellSelector = createSelectorMemoized(gridIsFocusedCellOutOfContext, gridVisibleColumnDefinitionsSelector, gridVisibleRowsSelector, gridFocusCellSelector, (isFocusedCellOutOfRenderContext, visibleColumns, currentPage, focusedCell) => {\n if (!isFocusedCellOutOfRenderContext) {\n return null;\n }\n const rowIndex = currentPage.rowIdToIndexMap.get(focusedCell.id);\n if (rowIndex === undefined) {\n return null;\n }\n const columnIndex = visibleColumns.findIndex(column => column.field === focusedCell.field);\n if (columnIndex === -1) {\n return null;\n }\n return _extends({}, focusedCell, {\n rowIndex,\n columnIndex\n });\n});","export function roundToDecimalPlaces(value, decimals) {\n return Math.round(value * 10 ** decimals) / 10 ** decimals;\n}","export const isJSDOM = typeof window !== 'undefined' && /jsdom|HappyDOM/.test(window.navigator.userAgent);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport useLazyRef from '@mui/utils/useLazyRef';\nimport useTimeout from '@mui/utils/useTimeout';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport reactMajor from '@mui/x-internals/reactMajor';\nimport { gridDimensionsSelector, gridColumnsTotalWidthSelector, gridContentHeightSelector, gridHasFillerSelector, gridRowHeightSelector, gridVerticalScrollbarWidthSelector } from \"../dimensions/gridDimensionsSelectors.js\";\nimport { useGridPrivateApiContext } from \"../../utils/useGridPrivateApiContext.js\";\nimport { useGridRootProps } from \"../../utils/useGridRootProps.js\";\nimport { useGridSelector } from \"../../utils/useGridSelector.js\";\nimport { useRunOnce } from \"../../utils/useRunOnce.js\";\nimport { gridVisibleColumnDefinitionsSelector, gridVisiblePinnedColumnDefinitionsSelector, gridColumnPositionsSelector, gridHasColSpanSelector } from \"../columns/gridColumnsSelector.js\";\nimport { gridPinnedRowsSelector, gridRowTreeSelector } from \"../rows/gridRowsSelector.js\";\nimport { useGridVisibleRows, getVisibleRows } from \"../../utils/useGridVisibleRows.js\";\nimport { useGridEventPriority } from \"../../utils/index.js\";\nimport * as platform from \"../../../utils/platform.js\";\nimport { clamp, range } from \"../../../utils/utils.js\";\nimport { gridRowsMetaSelector } from \"../rows/gridRowsMetaSelector.js\";\nimport { getFirstNonSpannedColumnToRender } from \"../columns/gridColumnsUtils.js\";\nimport { gridRenderContextSelector, gridVirtualizationRowEnabledSelector, gridVirtualizationColumnEnabledSelector } from \"./gridVirtualizationSelectors.js\";\nimport { EMPTY_RENDER_CONTEXT } from \"./useGridVirtualization.js\";\nimport { gridRowSpanningHiddenCellsOriginMapSelector } from \"../rows/gridRowSpanningSelectors.js\";\nimport { gridListColumnSelector } from \"../listView/gridListViewSelectors.js\";\nimport { minimalContentHeight } from \"../rows/gridRowsUtils.js\";\nimport { EMPTY_PINNED_COLUMN_FIELDS } from \"../columns/index.js\";\nimport { gridFocusedVirtualCellSelector } from \"./gridFocusedVirtualCellSelector.js\";\nimport { roundToDecimalPlaces } from \"../../../utils/roundToDecimalPlaces.js\";\nimport { isJSDOM } from \"../../../utils/isJSDOM.js\";\nimport { gridRowSelectionManagerSelector } from \"../rowSelection/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst MINIMUM_COLUMN_WIDTH = 50;\nvar ScrollDirection = /*#__PURE__*/function (ScrollDirection) {\n ScrollDirection[ScrollDirection[\"NONE\"] = 0] = \"NONE\";\n ScrollDirection[ScrollDirection[\"UP\"] = 1] = \"UP\";\n ScrollDirection[ScrollDirection[\"DOWN\"] = 2] = \"DOWN\";\n ScrollDirection[ScrollDirection[\"LEFT\"] = 3] = \"LEFT\";\n ScrollDirection[ScrollDirection[\"RIGHT\"] = 4] = \"RIGHT\";\n return ScrollDirection;\n}(ScrollDirection || {});\nconst EMPTY_SCROLL_POSITION = {\n top: 0,\n left: 0\n};\nexport const EMPTY_DETAIL_PANELS = Object.freeze(new Map());\nconst createScrollCache = (isRtl, rowBufferPx, columnBufferPx, verticalBuffer, horizontalBuffer) => ({\n direction: ScrollDirection.NONE,\n buffer: bufferForDirection(isRtl, ScrollDirection.NONE, rowBufferPx, columnBufferPx, verticalBuffer, horizontalBuffer)\n});\nexport const useGridVirtualScroller = () => {\n const apiRef = useGridPrivateApiContext();\n const rootProps = useGridRootProps();\n const {\n listView\n } = rootProps;\n const visibleColumns = useGridSelector(apiRef, () => listView ? [gridListColumnSelector(apiRef)] : gridVisibleColumnDefinitionsSelector(apiRef));\n const enabledForRows = useGridSelector(apiRef, gridVirtualizationRowEnabledSelector) && !isJSDOM;\n const enabledForColumns = useGridSelector(apiRef, gridVirtualizationColumnEnabledSelector) && !isJSDOM;\n const pinnedRows = useGridSelector(apiRef, gridPinnedRowsSelector);\n const pinnedColumnDefinitions = gridVisiblePinnedColumnDefinitionsSelector(apiRef);\n const pinnedColumns = listView ? EMPTY_PINNED_COLUMN_FIELDS : pinnedColumnDefinitions;\n const hasBottomPinnedRows = pinnedRows.bottom.length > 0;\n const [panels, setPanels] = React.useState(EMPTY_DETAIL_PANELS);\n const isRtl = useRtl();\n const rowSelectionManager = useGridSelector(apiRef, gridRowSelectionManagerSelector);\n const currentPage = useGridVisibleRows(apiRef);\n const mainRef = apiRef.current.mainElementRef;\n const scrollerRef = apiRef.current.virtualScrollerRef;\n const scrollbarVerticalRef = apiRef.current.virtualScrollbarVerticalRef;\n const scrollbarHorizontalRef = apiRef.current.virtualScrollbarHorizontalRef;\n const hasColSpan = useGridSelector(apiRef, gridHasColSpanSelector);\n const isRenderContextReady = React.useRef(false);\n const rowHeight = useGridSelector(apiRef, gridRowHeightSelector);\n const contentHeight = useGridSelector(apiRef, gridContentHeightSelector);\n const columnsTotalWidth = useGridSelector(apiRef, gridColumnsTotalWidthSelector);\n const needsHorizontalScrollbar = useGridSelector(apiRef, needsHorizontalScrollbarSelector);\n const verticalScrollbarWidth = useGridSelector(apiRef, gridVerticalScrollbarWidthSelector);\n const gridHasFiller = useGridSelector(apiRef, gridHasFillerSelector);\n const previousSize = React.useRef(null);\n const mainRefCallback = React.useCallback(node => {\n mainRef.current = node;\n if (!node) {\n return undefined;\n }\n const initialRect = node.getBoundingClientRect();\n let lastSize = {\n width: roundToDecimalPlaces(initialRect.width, 1),\n height: roundToDecimalPlaces(initialRect.height, 1)\n };\n if (!previousSize.current || lastSize.width !== previousSize.current.width && lastSize.height !== previousSize.current.height) {\n previousSize.current = lastSize;\n apiRef.current.publishEvent('resize', lastSize);\n }\n if (typeof ResizeObserver === 'undefined') {\n return undefined;\n }\n const observer = new ResizeObserver(entries => {\n const entry = entries[0];\n if (!entry) {\n return;\n }\n const newSize = {\n width: roundToDecimalPlaces(entry.contentRect.width, 1),\n height: roundToDecimalPlaces(entry.contentRect.height, 1)\n };\n if (newSize.width === lastSize.width && newSize.height === lastSize.height) {\n return;\n }\n apiRef.current.publishEvent('resize', newSize);\n lastSize = newSize;\n });\n observer.observe(node);\n if (reactMajor >= 19) {\n return () => {\n mainRef.current = null;\n observer.disconnect();\n };\n }\n return undefined;\n }, [apiRef, mainRef]);\n\n /*\n * Scroll context logic\n * ====================\n * We only render the cells contained in the `renderContext`. However, when the user starts scrolling the grid\n * in a direction, we want to render as many cells as possible in that direction, as to avoid presenting white\n * areas if the user scrolls too fast/far and the viewport ends up in a region we haven't rendered yet. To render\n * more cells, we store some offsets to add to the viewport in `scrollCache.buffer`. Those offsets make the render\n * context wider in the direction the user is going, but also makes the buffer around the viewport `0` for the\n * dimension (horizontal or vertical) in which the user is not scrolling. So if the normal viewport is 8 columns\n * wide, with a 1 column buffer (10 columns total), then we want it to be exactly 8 columns wide during vertical\n * scroll.\n * However, we don't want the rows in the old context to re-render from e.g. 10 columns to 8 columns, because that's\n * work that's not necessary. Thus we store the context at the start of the scroll in `frozenContext`, and the rows\n * that are part of this old context will keep their same render context as to avoid re-rendering.\n */\n const scrollPosition = React.useRef(rootProps.initialState?.scroll ?? EMPTY_SCROLL_POSITION);\n const ignoreNextScrollEvent = React.useRef(false);\n const previousContextScrollPosition = React.useRef(EMPTY_SCROLL_POSITION);\n const previousRowContext = React.useRef(EMPTY_RENDER_CONTEXT);\n const renderContext = useGridSelector(apiRef, gridRenderContextSelector);\n const focusedVirtualCell = useGridSelector(apiRef, gridFocusedVirtualCellSelector);\n const scrollTimeout = useTimeout();\n const frozenContext = React.useRef(undefined);\n const scrollCache = useLazyRef(() => createScrollCache(isRtl, rootProps.rowBufferPx, rootProps.columnBufferPx, rowHeight * 15, MINIMUM_COLUMN_WIDTH * 6)).current;\n const updateRenderContext = React.useCallback(nextRenderContext => {\n if (areRenderContextsEqual(nextRenderContext, apiRef.current.state.virtualization.renderContext)) {\n return;\n }\n const didRowsIntervalChange = nextRenderContext.firstRowIndex !== previousRowContext.current.firstRowIndex || nextRenderContext.lastRowIndex !== previousRowContext.current.lastRowIndex;\n apiRef.current.setState(state => {\n return _extends({}, state, {\n virtualization: _extends({}, state.virtualization, {\n renderContext: nextRenderContext\n })\n });\n });\n\n // The lazy-loading hook is listening to `renderedRowsIntervalChange`,\n // but only does something if we already have a render context, because\n // otherwise we would call an update directly on mount\n const isReady = gridDimensionsSelector(apiRef).isReady;\n if (isReady && didRowsIntervalChange) {\n previousRowContext.current = nextRenderContext;\n apiRef.current.publishEvent('renderedRowsIntervalChange', nextRenderContext);\n }\n previousContextScrollPosition.current = scrollPosition.current;\n }, [apiRef]);\n const triggerUpdateRenderContext = useEventCallback(() => {\n const scroller = scrollerRef.current;\n if (!scroller) {\n return undefined;\n }\n const dimensions = gridDimensionsSelector(apiRef);\n const maxScrollTop = Math.ceil(dimensions.minimumSize.height - dimensions.viewportOuterSize.height);\n const maxScrollLeft = Math.ceil(dimensions.minimumSize.width - dimensions.viewportInnerSize.width);\n\n // Clamp the scroll position to the viewport to avoid re-calculating the render context for scroll bounce\n const newScroll = {\n top: clamp(scroller.scrollTop, 0, maxScrollTop),\n left: isRtl ? clamp(scroller.scrollLeft, -maxScrollLeft, 0) : clamp(scroller.scrollLeft, 0, maxScrollLeft)\n };\n const dx = newScroll.left - scrollPosition.current.left;\n const dy = newScroll.top - scrollPosition.current.top;\n const isScrolling = dx !== 0 || dy !== 0;\n scrollPosition.current = newScroll;\n const direction = isScrolling ? directionForDelta(dx, dy) : ScrollDirection.NONE;\n\n // Since previous render, we have scrolled...\n const rowScroll = Math.abs(scrollPosition.current.top - previousContextScrollPosition.current.top);\n const columnScroll = Math.abs(scrollPosition.current.left - previousContextScrollPosition.current.left);\n\n // PERF: use the computed minimum column width instead of a static one\n const didCrossThreshold = rowScroll >= rowHeight || columnScroll >= MINIMUM_COLUMN_WIDTH;\n const didChangeDirection = scrollCache.direction !== direction;\n const shouldUpdate = didCrossThreshold || didChangeDirection;\n if (!shouldUpdate) {\n return renderContext;\n }\n\n // Render a new context\n\n if (didChangeDirection) {\n switch (direction) {\n case ScrollDirection.NONE:\n case ScrollDirection.LEFT:\n case ScrollDirection.RIGHT:\n frozenContext.current = undefined;\n break;\n default:\n frozenContext.current = renderContext;\n break;\n }\n }\n scrollCache.direction = direction;\n scrollCache.buffer = bufferForDirection(isRtl, direction, rootProps.rowBufferPx, rootProps.columnBufferPx, rowHeight * 15, MINIMUM_COLUMN_WIDTH * 6);\n const inputs = inputsSelector(apiRef, rootProps, enabledForRows, enabledForColumns);\n const nextRenderContext = computeRenderContext(inputs, scrollPosition.current, scrollCache);\n\n // Prevents batching render context changes\n ReactDOM.flushSync(() => {\n updateRenderContext(nextRenderContext);\n });\n scrollTimeout.start(1000, triggerUpdateRenderContext);\n return nextRenderContext;\n });\n const forceUpdateRenderContext = () => {\n // skip update if dimensions are not ready and virtualization is enabled\n if (!gridDimensionsSelector(apiRef).isReady && (enabledForRows || enabledForColumns)) {\n return;\n }\n const inputs = inputsSelector(apiRef, rootProps, enabledForRows, enabledForColumns);\n const nextRenderContext = computeRenderContext(inputs, scrollPosition.current, scrollCache);\n // Reset the frozen context when the render context changes, see the illustration in https://github.com/mui/mui-x/pull/12353\n frozenContext.current = undefined;\n updateRenderContext(nextRenderContext);\n };\n const handleScroll = useEventCallback(() => {\n if (ignoreNextScrollEvent.current) {\n ignoreNextScrollEvent.current = false;\n return;\n }\n const nextRenderContext = triggerUpdateRenderContext();\n apiRef.current.publishEvent('scrollPositionChange', {\n top: scrollPosition.current.top,\n left: scrollPosition.current.left,\n renderContext: nextRenderContext\n });\n });\n const handleWheel = useEventCallback(event => {\n apiRef.current.publishEvent('virtualScrollerWheel', {}, event);\n });\n const handleTouchMove = useEventCallback(event => {\n apiRef.current.publishEvent('virtualScrollerTouchMove', {}, event);\n });\n const getRows = (params = {}) => {\n if (!params.rows && !currentPage.range) {\n return [];\n }\n const rowTree = gridRowTreeSelector(apiRef);\n let baseRenderContext = renderContext;\n if (params.renderContext) {\n baseRenderContext = params.renderContext;\n baseRenderContext.firstColumnIndex = renderContext.firstColumnIndex;\n baseRenderContext.lastColumnIndex = renderContext.lastColumnIndex;\n }\n const isLastSection = !hasBottomPinnedRows && params.position === undefined || hasBottomPinnedRows && params.position === 'bottom';\n const isPinnedSection = params.position !== undefined;\n let rowIndexOffset;\n // FIXME: Why is the switch check exhaustiveness not validated with typescript-eslint?\n // eslint-disable-next-line default-case\n switch (params.position) {\n case 'top':\n rowIndexOffset = 0;\n break;\n case 'bottom':\n rowIndexOffset = pinnedRows.top.length + currentPage.rows.length;\n break;\n case undefined:\n rowIndexOffset = pinnedRows.top.length;\n break;\n }\n const rowModels = params.rows ?? currentPage.rows;\n const firstRowToRender = baseRenderContext.firstRowIndex;\n const lastRowToRender = Math.min(baseRenderContext.lastRowIndex, rowModels.length);\n const rowIndexes = params.rows ? range(0, params.rows.length) : range(firstRowToRender, lastRowToRender);\n let virtualRowIndex = -1;\n if (!isPinnedSection && focusedVirtualCell) {\n if (focusedVirtualCell.rowIndex < firstRowToRender) {\n rowIndexes.unshift(focusedVirtualCell.rowIndex);\n virtualRowIndex = focusedVirtualCell.rowIndex;\n }\n if (focusedVirtualCell.rowIndex > lastRowToRender) {\n rowIndexes.push(focusedVirtualCell.rowIndex);\n virtualRowIndex = focusedVirtualCell.rowIndex;\n }\n }\n const rows = [];\n const rowProps = rootProps.slotProps?.row;\n const columnPositions = gridColumnPositionsSelector(apiRef);\n rowIndexes.forEach(rowIndexInPage => {\n const {\n id,\n model\n } = rowModels[rowIndexInPage];\n\n // In certain cases, the state might already be updated and `currentPage.rows` (which sets `rowModels`)\n // contains stale data.\n // In that case, skip any further row processing.\n // See:\n // - https://github.com/mui/mui-x/issues/16638\n // - https://github.com/mui/mui-x/issues/17022\n if (!rowTree[id]) {\n return;\n }\n const rowIndex = (currentPage?.range?.firstRowIndex || 0) + rowIndexOffset + rowIndexInPage;\n\n // NOTE: This is an expensive feature, the colSpan code could be optimized.\n if (hasColSpan) {\n const minFirstColumn = pinnedColumns.left.length;\n const maxLastColumn = visibleColumns.length - pinnedColumns.right.length;\n apiRef.current.calculateColSpan({\n rowId: id,\n minFirstColumn,\n maxLastColumn,\n columns: visibleColumns\n });\n if (pinnedColumns.left.length > 0) {\n apiRef.current.calculateColSpan({\n rowId: id,\n minFirstColumn: 0,\n maxLastColumn: pinnedColumns.left.length,\n columns: visibleColumns\n });\n }\n if (pinnedColumns.right.length > 0) {\n apiRef.current.calculateColSpan({\n rowId: id,\n minFirstColumn: visibleColumns.length - pinnedColumns.right.length,\n maxLastColumn: visibleColumns.length,\n columns: visibleColumns\n });\n }\n }\n const baseRowHeight = !apiRef.current.rowHasAutoHeight(id) ? apiRef.current.unstable_getRowHeight(id) : 'auto';\n const isSelected = rowSelectionManager.has(id) && apiRef.current.isRowSelectable(id);\n let isFirstVisible = false;\n if (params.position === undefined) {\n isFirstVisible = rowIndexInPage === 0;\n }\n let isLastVisible = false;\n const isLastVisibleInSection = rowIndexInPage === rowModels.length - 1;\n if (isLastSection) {\n if (!isPinnedSection) {\n const lastIndex = currentPage.rows.length - 1;\n const isLastVisibleRowIndex = rowIndexInPage === lastIndex;\n if (isLastVisibleRowIndex) {\n isLastVisible = true;\n }\n } else {\n isLastVisible = isLastVisibleInSection;\n }\n }\n let currentRenderContext = baseRenderContext;\n if (frozenContext.current && rowIndexInPage >= frozenContext.current.firstRowIndex && rowIndexInPage < frozenContext.current.lastRowIndex) {\n currentRenderContext = frozenContext.current;\n }\n const isVirtualFocusRow = rowIndexInPage === virtualRowIndex;\n const isVirtualFocusColumn = focusedVirtualCell?.rowIndex === rowIndex;\n const offsetLeft = computeOffsetLeft(columnPositions, currentRenderContext, pinnedColumns.left.length);\n const showBottomBorder = isLastVisibleInSection && params.position === 'top';\n const firstColumnIndex = currentRenderContext.firstColumnIndex;\n const lastColumnIndex = currentRenderContext.lastColumnIndex;\n rows.push(/*#__PURE__*/_jsx(rootProps.slots.row, _extends({\n row: model,\n rowId: id,\n index: rowIndex,\n selected: isSelected,\n offsetLeft: offsetLeft,\n columnsTotalWidth: columnsTotalWidth,\n rowHeight: baseRowHeight,\n pinnedColumns: pinnedColumns,\n visibleColumns: visibleColumns,\n firstColumnIndex: firstColumnIndex,\n lastColumnIndex: lastColumnIndex,\n focusedColumnIndex: isVirtualFocusColumn ? focusedVirtualCell.columnIndex : undefined,\n isFirstVisible: isFirstVisible,\n isLastVisible: isLastVisible,\n isNotVisible: isVirtualFocusRow,\n showBottomBorder: showBottomBorder,\n scrollbarWidth: verticalScrollbarWidth,\n gridHasFiller: gridHasFiller\n }, rowProps), id));\n if (isVirtualFocusRow) {\n return;\n }\n const panel = panels.get(id);\n if (panel) {\n rows.push(panel);\n }\n if (params.position === undefined && isLastVisibleInSection) {\n rows.push(apiRef.current.getInfiniteLoadingTriggerElement?.({\n lastRowId: id\n }));\n }\n });\n return rows;\n };\n const scrollerStyle = React.useMemo(() => ({\n overflowX: !needsHorizontalScrollbar || listView ? 'hidden' : undefined,\n overflowY: rootProps.autoHeight ? 'hidden' : undefined\n }), [needsHorizontalScrollbar, rootProps.autoHeight, listView]);\n const contentSize = React.useMemo(() => {\n const size = {\n width: needsHorizontalScrollbar ? columnsTotalWidth : 'auto',\n flexBasis: contentHeight,\n flexShrink: 0\n };\n if (size.flexBasis === 0) {\n size.flexBasis = minimalContentHeight; // Give room to show the overlay when there no rows.\n }\n return size;\n }, [columnsTotalWidth, contentHeight, needsHorizontalScrollbar]);\n const onContentSizeApplied = React.useCallback(node => {\n if (!node) {\n return;\n }\n apiRef.current.publishEvent('virtualScrollerContentSizeChange', {\n columnsTotalWidth,\n contentHeight\n });\n }, [apiRef, columnsTotalWidth, contentHeight]);\n useEnhancedEffect(() => {\n if (!isRenderContextReady.current) {\n return;\n }\n apiRef.current.updateRenderContext?.();\n }, [apiRef, enabledForColumns, enabledForRows]);\n useEnhancedEffect(() => {\n if (listView) {\n scrollerRef.current.scrollLeft = 0;\n }\n }, [listView, scrollerRef]);\n useRunOnce(renderContext !== EMPTY_RENDER_CONTEXT, () => {\n apiRef.current.publishEvent('scrollPositionChange', {\n top: scrollPosition.current.top,\n left: scrollPosition.current.left,\n renderContext\n });\n isRenderContextReady.current = true;\n if (rootProps.initialState?.scroll && scrollerRef.current) {\n const scroller = scrollerRef.current;\n const {\n top,\n left\n } = rootProps.initialState.scroll;\n\n // On initial mount, if we have columns available, we can restore the horizontal scroll immediately, but we need to skip the resulting scroll event, otherwise we would recalculate the render context at position top=0, left=restoredValue, but the initial render context is already calculated based on the initial value of scrollPosition ref.\n const isScrollRestored = {\n top: !(top > 0),\n left: !(left > 0)\n };\n if (!isScrollRestored.left && columnsTotalWidth) {\n scroller.scrollLeft = left;\n ignoreNextScrollEvent.current = true;\n isScrollRestored.left = true;\n }\n\n // For the sake of completeness, but I'm not sure if contentHeight is ever available at this point. Maybe when virtualisation is disabled?\n if (!isScrollRestored.top && contentHeight) {\n scroller.scrollTop = top;\n ignoreNextScrollEvent.current = true;\n isScrollRestored.top = true;\n }\n\n // To restore the vertical scroll, we need to wait until the rows are available in the DOM (otherwise there's nowhere to scroll), but before paint to avoid reflows\n if (!isScrollRestored.top || !isScrollRestored.left) {\n const unsubscribeContentSizeChange = apiRef.current.subscribeEvent('virtualScrollerContentSizeChange', params => {\n if (!isScrollRestored.left && params.columnsTotalWidth) {\n scroller.scrollLeft = left;\n ignoreNextScrollEvent.current = true;\n isScrollRestored.left = true;\n }\n if (!isScrollRestored.top && params.contentHeight) {\n scroller.scrollTop = top;\n ignoreNextScrollEvent.current = true;\n isScrollRestored.top = true;\n }\n if (isScrollRestored.left && isScrollRestored.top) {\n unsubscribeContentSizeChange();\n }\n });\n return unsubscribeContentSizeChange;\n }\n }\n return undefined;\n });\n apiRef.current.register('private', {\n updateRenderContext: forceUpdateRenderContext\n });\n useGridEventPriority(apiRef, 'sortedRowsSet', forceUpdateRenderContext);\n useGridEventPriority(apiRef, 'paginationModelChange', forceUpdateRenderContext);\n useGridEventPriority(apiRef, 'columnsChange', forceUpdateRenderContext);\n return {\n renderContext,\n setPanels,\n getRows,\n getContainerProps: () => ({\n ref: mainRefCallback\n }),\n getScrollerProps: () => ({\n ref: scrollerRef,\n onScroll: handleScroll,\n onWheel: handleWheel,\n onTouchMove: handleTouchMove,\n style: scrollerStyle,\n role: 'presentation',\n // `tabIndex` shouldn't be used along role=presentation, but it fixes a Firefox bug\n // https://github.com/mui/mui-x/pull/13891#discussion_r1683416024\n tabIndex: platform.isFirefox ? -1 : undefined\n }),\n getContentProps: () => ({\n style: contentSize,\n role: 'presentation',\n ref: onContentSizeApplied\n }),\n getRenderZoneProps: () => ({\n role: 'rowgroup'\n }),\n getScrollbarVerticalProps: () => ({\n ref: scrollbarVerticalRef,\n scrollPosition\n }),\n getScrollbarHorizontalProps: () => ({\n ref: scrollbarHorizontalRef,\n scrollPosition\n }),\n getScrollAreaProps: () => ({\n scrollPosition\n })\n };\n};\n// dimension selectors\nfunction needsHorizontalScrollbarSelector(apiRef) {\n return apiRef.current.state.dimensions.viewportOuterSize.width > 0 && apiRef.current.state.dimensions.columnsTotalWidth > apiRef.current.state.dimensions.viewportOuterSize.width;\n}\nfunction inputsSelector(apiRef, rootProps, enabledForRows, enabledForColumns) {\n const dimensions = gridDimensionsSelector(apiRef);\n const currentPage = getVisibleRows(apiRef, rootProps);\n const visibleColumns = rootProps.listView ? [gridListColumnSelector(apiRef)] : gridVisibleColumnDefinitionsSelector(apiRef);\n const hiddenCellsOriginMap = gridRowSpanningHiddenCellsOriginMapSelector(apiRef);\n const lastRowId = apiRef.current.state.rows.dataRowIds.at(-1);\n const lastColumn = visibleColumns.at(-1);\n return {\n enabledForRows,\n enabledForColumns,\n apiRef,\n autoHeight: rootProps.autoHeight,\n rowBufferPx: rootProps.rowBufferPx,\n columnBufferPx: rootProps.columnBufferPx,\n leftPinnedWidth: dimensions.leftPinnedWidth,\n columnsTotalWidth: dimensions.columnsTotalWidth,\n viewportInnerWidth: dimensions.viewportInnerSize.width,\n viewportInnerHeight: dimensions.viewportInnerSize.height,\n lastRowHeight: lastRowId !== undefined ? apiRef.current.unstable_getRowHeight(lastRowId) : 0,\n lastColumnWidth: lastColumn?.computedWidth ?? 0,\n rowsMeta: gridRowsMetaSelector(apiRef),\n columnPositions: gridColumnPositionsSelector(apiRef),\n rows: currentPage.rows,\n range: currentPage.range,\n pinnedColumns: gridVisiblePinnedColumnDefinitionsSelector(apiRef),\n visibleColumns,\n hiddenCellsOriginMap,\n listView: rootProps.listView ?? false,\n virtualizeColumnsWithAutoRowHeight: rootProps.virtualizeColumnsWithAutoRowHeight\n };\n}\nfunction computeRenderContext(inputs, scrollPosition, scrollCache) {\n const renderContext = {\n firstRowIndex: 0,\n lastRowIndex: inputs.rows.length,\n firstColumnIndex: 0,\n lastColumnIndex: inputs.visibleColumns.length\n };\n const {\n top,\n left\n } = scrollPosition;\n const realLeft = Math.abs(left) + inputs.leftPinnedWidth;\n if (inputs.enabledForRows) {\n // Clamp the value because the search may return an index out of bounds.\n // In the last index, this is not needed because Array.slice doesn't include it.\n let firstRowIndex = Math.min(getNearestIndexToRender(inputs, top, {\n atStart: true,\n lastPosition: inputs.rowsMeta.positions[inputs.rowsMeta.positions.length - 1] + inputs.lastRowHeight\n }), inputs.rowsMeta.positions.length - 1);\n\n // If any of the cells in the `firstRowIndex` is hidden due to an extended row span,\n // Make sure the row from where the rowSpan is originated is visible.\n const rowSpanHiddenCellOrigin = inputs.hiddenCellsOriginMap[firstRowIndex];\n if (rowSpanHiddenCellOrigin) {\n const minSpannedRowIndex = Math.min(...Object.values(rowSpanHiddenCellOrigin));\n firstRowIndex = Math.min(firstRowIndex, minSpannedRowIndex);\n }\n const lastRowIndex = inputs.autoHeight ? firstRowIndex + inputs.rows.length : getNearestIndexToRender(inputs, top + inputs.viewportInnerHeight);\n renderContext.firstRowIndex = firstRowIndex;\n renderContext.lastRowIndex = lastRowIndex;\n }\n if (inputs.listView) {\n return _extends({}, renderContext, {\n lastColumnIndex: 1\n });\n }\n if (inputs.enabledForColumns) {\n let firstColumnIndex = 0;\n let lastColumnIndex = inputs.columnPositions.length;\n let hasRowWithAutoHeight = false;\n const [firstRowToRender, lastRowToRender] = getIndexesToRender({\n firstIndex: renderContext.firstRowIndex,\n lastIndex: renderContext.lastRowIndex,\n minFirstIndex: 0,\n maxLastIndex: inputs.rows.length,\n bufferBefore: scrollCache.buffer.rowBefore,\n bufferAfter: scrollCache.buffer.rowAfter,\n positions: inputs.rowsMeta.positions,\n lastSize: inputs.lastRowHeight\n });\n if (!inputs.virtualizeColumnsWithAutoRowHeight) {\n for (let i = firstRowToRender; i < lastRowToRender && !hasRowWithAutoHeight; i += 1) {\n const row = inputs.rows[i];\n hasRowWithAutoHeight = inputs.apiRef.current.rowHasAutoHeight(row.id);\n }\n }\n if (!hasRowWithAutoHeight || inputs.virtualizeColumnsWithAutoRowHeight) {\n firstColumnIndex = binarySearch(realLeft, inputs.columnPositions, {\n atStart: true,\n lastPosition: inputs.columnsTotalWidth\n });\n lastColumnIndex = binarySearch(realLeft + inputs.viewportInnerWidth, inputs.columnPositions);\n }\n renderContext.firstColumnIndex = firstColumnIndex;\n renderContext.lastColumnIndex = lastColumnIndex;\n }\n const actualRenderContext = deriveRenderContext(inputs, renderContext, scrollCache);\n return actualRenderContext;\n}\nfunction getNearestIndexToRender(inputs, offset, options) {\n const lastMeasuredIndexRelativeToAllRows = inputs.apiRef.current.getLastMeasuredRowIndex();\n let allRowsMeasured = lastMeasuredIndexRelativeToAllRows === Infinity;\n if (inputs.range?.lastRowIndex && !allRowsMeasured) {\n // Check if all rows in this page are already measured\n allRowsMeasured = lastMeasuredIndexRelativeToAllRows >= inputs.range.lastRowIndex;\n }\n const lastMeasuredIndexRelativeToCurrentPage = clamp(lastMeasuredIndexRelativeToAllRows - (inputs.range?.firstRowIndex || 0), 0, inputs.rowsMeta.positions.length);\n if (allRowsMeasured || inputs.rowsMeta.positions[lastMeasuredIndexRelativeToCurrentPage] >= offset) {\n // If all rows were measured (when no row has \"auto\" as height) or all rows before the offset\n // were measured, then use a binary search because it's faster.\n return binarySearch(offset, inputs.rowsMeta.positions, options);\n }\n\n // Otherwise, use an exponential search.\n // If rows have \"auto\" as height, their positions will be based on estimated heights.\n // In this case, we can skip several steps until we find a position higher than the offset.\n // Inspired by https://github.com/bvaughn/react-virtualized/blob/master/source/Grid/utils/CellSizeAndPositionManager.js\n return exponentialSearch(offset, inputs.rowsMeta.positions, lastMeasuredIndexRelativeToCurrentPage, options);\n}\n\n/**\n * Accepts as input a raw render context (the area visible in the viewport) and adds\n * computes the actual render context based on pinned elements, buffer dimensions and\n * spanning.\n */\nfunction deriveRenderContext(inputs, nextRenderContext, scrollCache) {\n const [firstRowToRender, lastRowToRender] = getIndexesToRender({\n firstIndex: nextRenderContext.firstRowIndex,\n lastIndex: nextRenderContext.lastRowIndex,\n minFirstIndex: 0,\n maxLastIndex: inputs.rows.length,\n bufferBefore: scrollCache.buffer.rowBefore,\n bufferAfter: scrollCache.buffer.rowAfter,\n positions: inputs.rowsMeta.positions,\n lastSize: inputs.lastRowHeight\n });\n const [initialFirstColumnToRender, lastColumnToRender] = getIndexesToRender({\n firstIndex: nextRenderContext.firstColumnIndex,\n lastIndex: nextRenderContext.lastColumnIndex,\n minFirstIndex: inputs.pinnedColumns.left.length,\n maxLastIndex: inputs.visibleColumns.length - inputs.pinnedColumns.right.length,\n bufferBefore: scrollCache.buffer.columnBefore,\n bufferAfter: scrollCache.buffer.columnAfter,\n positions: inputs.columnPositions,\n lastSize: inputs.lastColumnWidth\n });\n const firstColumnToRender = getFirstNonSpannedColumnToRender({\n firstColumnToRender: initialFirstColumnToRender,\n apiRef: inputs.apiRef,\n firstRowToRender,\n lastRowToRender,\n visibleRows: inputs.rows\n });\n return {\n firstRowIndex: firstRowToRender,\n lastRowIndex: lastRowToRender,\n firstColumnIndex: firstColumnToRender,\n lastColumnIndex: lastColumnToRender\n };\n}\n/**\n * Use binary search to avoid looping through all possible positions.\n * The `options.atStart` provides the possibility to match for the first element that\n * intersects the screen, even if said element's start position is before `offset`. In\n * other words, we search for `offset + width`.\n */\nfunction binarySearch(offset, positions, options = undefined, sliceStart = 0, sliceEnd = positions.length) {\n if (positions.length <= 0) {\n return -1;\n }\n if (sliceStart >= sliceEnd) {\n return sliceStart;\n }\n const pivot = sliceStart + Math.floor((sliceEnd - sliceStart) / 2);\n const position = positions[pivot];\n let isBefore;\n if (options?.atStart) {\n const width = (pivot === positions.length - 1 ? options.lastPosition : positions[pivot + 1]) - position;\n isBefore = offset - width < position;\n } else {\n isBefore = offset <= position;\n }\n return isBefore ? binarySearch(offset, positions, options, sliceStart, pivot) : binarySearch(offset, positions, options, pivot + 1, sliceEnd);\n}\nfunction exponentialSearch(offset, positions, index, options = undefined) {\n let interval = 1;\n while (index < positions.length && Math.abs(positions[index]) < offset) {\n index += interval;\n interval *= 2;\n }\n return binarySearch(offset, positions, options, Math.floor(index / 2), Math.min(index, positions.length));\n}\nfunction getIndexesToRender({\n firstIndex,\n lastIndex,\n bufferBefore,\n bufferAfter,\n minFirstIndex,\n maxLastIndex,\n positions,\n lastSize\n}) {\n const firstPosition = positions[firstIndex] - bufferBefore;\n const lastPosition = positions[lastIndex] + bufferAfter;\n const firstIndexPadded = binarySearch(firstPosition, positions, {\n atStart: true,\n lastPosition: positions[positions.length - 1] + lastSize\n });\n const lastIndexPadded = binarySearch(lastPosition, positions);\n return [clamp(firstIndexPadded, minFirstIndex, maxLastIndex), clamp(lastIndexPadded, minFirstIndex, maxLastIndex)];\n}\nexport function areRenderContextsEqual(context1, context2) {\n if (context1 === context2) {\n return true;\n }\n return context1.firstRowIndex === context2.firstRowIndex && context1.lastRowIndex === context2.lastRowIndex && context1.firstColumnIndex === context2.firstColumnIndex && context1.lastColumnIndex === context2.lastColumnIndex;\n}\nexport function computeOffsetLeft(columnPositions, renderContext, pinnedLeftLength) {\n const left = (columnPositions[renderContext.firstColumnIndex] ?? 0) - (columnPositions[pinnedLeftLength] ?? 0);\n return Math.abs(left);\n}\nfunction directionForDelta(dx, dy) {\n if (dx === 0 && dy === 0) {\n return ScrollDirection.NONE;\n }\n /* eslint-disable */\n if (Math.abs(dy) >= Math.abs(dx)) {\n if (dy > 0) {\n return ScrollDirection.DOWN;\n } else {\n return ScrollDirection.UP;\n }\n } else {\n if (dx > 0) {\n return ScrollDirection.RIGHT;\n } else {\n return ScrollDirection.LEFT;\n }\n }\n /* eslint-enable */\n}\nfunction bufferForDirection(isRtl, direction, rowBufferPx, columnBufferPx, verticalBuffer, horizontalBuffer) {\n if (isRtl) {\n switch (direction) {\n case ScrollDirection.LEFT:\n direction = ScrollDirection.RIGHT;\n break;\n case ScrollDirection.RIGHT:\n direction = ScrollDirection.LEFT;\n break;\n default:\n }\n }\n switch (direction) {\n case ScrollDirection.NONE:\n return {\n rowAfter: rowBufferPx,\n rowBefore: rowBufferPx,\n columnAfter: columnBufferPx,\n columnBefore: columnBufferPx\n };\n case ScrollDirection.LEFT:\n return {\n rowAfter: 0,\n rowBefore: 0,\n columnAfter: 0,\n columnBefore: horizontalBuffer\n };\n case ScrollDirection.RIGHT:\n return {\n rowAfter: 0,\n rowBefore: 0,\n columnAfter: horizontalBuffer,\n columnBefore: 0\n };\n case ScrollDirection.UP:\n return {\n rowAfter: 0,\n rowBefore: verticalBuffer,\n columnAfter: 0,\n columnBefore: 0\n };\n case ScrollDirection.DOWN:\n return {\n rowAfter: verticalBuffer,\n rowBefore: 0,\n columnAfter: 0,\n columnBefore: 0\n };\n default:\n // eslint unable to figure out enum exhaustiveness\n throw new Error('unreachable');\n }\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/system';\nimport composeClasses from '@mui/utils/composeClasses';\nimport clsx from 'clsx';\nimport { minimalContentHeight } from \"../../hooks/features/rows/gridRowsUtils.js\";\nimport { useGridSelector } from \"../../hooks/utils/useGridSelector.js\";\nimport { gridDimensionsSelector } from \"../../hooks/features/dimensions/index.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst GridOverlayWrapperRoot = styled('div', {\n name: 'MuiDataGrid',\n slot: 'OverlayWrapper',\n shouldForwardProp: prop => prop !== 'overlayType' && prop !== 'loadingOverlayVariant' && prop !== 'right'\n})(({\n overlayType,\n loadingOverlayVariant,\n right\n}) =>\n// Skeleton overlay should flow with the scroll container and not be sticky\nloadingOverlayVariant !== 'skeleton' ? {\n position: 'sticky',\n // To stay in place while scrolling\n top: 'var(--DataGrid-headersTotalHeight)',\n // TODO: take pinned rows into account\n left: 0,\n right: `${right}px`,\n width: 0,\n // To stay above the content instead of shifting it down\n height: 0,\n // To stay above the content instead of shifting it down\n zIndex: overlayType === 'loadingOverlay' ? 5 // Should be above pinned columns, pinned rows, and detail panel\n : 4 // Should be above pinned columns and detail panel\n} : {});\nconst GridOverlayWrapperInner = styled('div', {\n name: 'MuiDataGrid',\n slot: 'OverlayWrapperInner',\n shouldForwardProp: prop => prop !== 'overlayType' && prop !== 'loadingOverlayVariant'\n})({});\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['overlayWrapper'],\n inner: ['overlayWrapperInner']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nexport function GridOverlayWrapper(props) {\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const dimensions = useGridSelector(apiRef, gridDimensionsSelector);\n let height = Math.max(dimensions.viewportOuterSize.height - dimensions.topContainerHeight - dimensions.bottomContainerHeight - (dimensions.hasScrollX ? dimensions.scrollbarSize : 0), 0);\n if (height === 0) {\n height = minimalContentHeight;\n }\n const classes = useUtilityClasses(_extends({}, props, {\n classes: rootProps.classes\n }));\n return /*#__PURE__*/_jsx(GridOverlayWrapperRoot, _extends({\n className: clsx(classes.root)\n }, props, {\n right: dimensions.columnsTotalWidth - dimensions.viewportOuterSize.width,\n children: /*#__PURE__*/_jsx(GridOverlayWrapperInner, _extends({\n className: clsx(classes.inner),\n style: {\n height,\n width: dimensions.viewportOuterSize.width\n }\n }, props))\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridOverlayWrapper.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n loadingOverlayVariant: PropTypes.oneOf(['circular-progress', 'linear-progress', 'skeleton']),\n overlayType: PropTypes.oneOf(['loadingOverlay', 'noResultsOverlay', 'noRowsOverlay', 'noColumnsOverlay', 'emptyPivotOverlay'])\n} : void 0;","import { createSelector, createRootSelector } from \"../../../utils/createSelector.js\";\nconst gridPivotingStateSelector = createRootSelector(\n// @ts-ignore\nstate => state.pivoting);\nexport const gridPivotActiveSelector = createSelector(gridPivotingStateSelector, pivoting => pivoting?.active);\nconst emptyColumns = new Map();\nexport const gridPivotInitialColumnsSelector = createSelector(gridPivotingStateSelector, pivoting => pivoting?.initialColumns || emptyColumns);\nexport const gridPivotPanelOpenSelector = createSelector(gridPivotingStateSelector, pivoting => pivoting?.panelOpen);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useGridSelector } from \"../../utils/index.js\";\nimport { useGridApiContext } from \"../../utils/useGridApiContext.js\";\nimport { useGridRootProps } from \"../../utils/useGridRootProps.js\";\nimport { gridExpandedRowCountSelector } from \"../filter/index.js\";\nimport { gridRowCountSelector, gridRowsLoadingSelector } from \"../rows/index.js\";\nimport { gridPinnedRowsCountSelector } from \"../rows/gridRowsSelector.js\";\nimport { GridOverlayWrapper } from \"../../../components/base/GridOverlays.js\";\nimport { gridVisibleColumnDefinitionsSelector } from \"../columns/index.js\";\nimport { gridPivotActiveSelector } from \"../pivoting/index.js\";\n\n/**\n * Uses the grid state to determine which overlay to display.\n * Returns the active overlay type and the active loading overlay variant.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const useGridOverlays = () => {\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const totalRowCount = useGridSelector(apiRef, gridRowCountSelector);\n const visibleRowCount = useGridSelector(apiRef, gridExpandedRowCountSelector);\n const pinnedRowsCount = useGridSelector(apiRef, gridPinnedRowsCountSelector);\n const visibleColumns = useGridSelector(apiRef, gridVisibleColumnDefinitionsSelector);\n const noRows = totalRowCount === 0 && pinnedRowsCount === 0;\n const loading = useGridSelector(apiRef, gridRowsLoadingSelector);\n const pivotActive = useGridSelector(apiRef, gridPivotActiveSelector);\n const showNoRowsOverlay = !loading && noRows;\n const showNoResultsOverlay = !loading && totalRowCount > 0 && visibleRowCount === 0;\n const showNoColumnsOverlay = !loading && visibleColumns.length === 0;\n const showEmptyPivotOverlay = showNoRowsOverlay && pivotActive;\n let overlayType = null;\n let loadingOverlayVariant = null;\n if (showNoRowsOverlay) {\n overlayType = 'noRowsOverlay';\n }\n if (showNoColumnsOverlay) {\n overlayType = 'noColumnsOverlay';\n }\n if (showEmptyPivotOverlay) {\n overlayType = 'emptyPivotOverlay';\n }\n if (showNoResultsOverlay) {\n overlayType = 'noResultsOverlay';\n }\n if (loading) {\n overlayType = 'loadingOverlay';\n loadingOverlayVariant = rootProps.slotProps?.loadingOverlay?.[noRows ? 'noRowsVariant' : 'variant'] ?? (noRows ? 'skeleton' : 'linear-progress');\n }\n const overlaysProps = {\n overlayType: overlayType,\n loadingOverlayVariant\n };\n const getOverlay = () => {\n if (!overlayType) {\n return null;\n }\n const Overlay = rootProps.slots?.[overlayType];\n const overlayProps = rootProps.slotProps?.[overlayType];\n return /*#__PURE__*/_jsx(GridOverlayWrapper, _extends({}, overlaysProps, {\n children: /*#__PURE__*/_jsx(Overlay, _extends({}, overlayProps))\n }));\n };\n return {\n getOverlay,\n overlaysProps\n };\n};","import { createRootSelector } from \"../../../utils/createSelector.js\";\nexport const gridColumnMenuSelector = createRootSelector(state => state.columnMenu);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { fastMemo } from '@mui/x-internals/fastMemo';\nimport { useGridPrivateApiContext } from \"../hooks/utils/useGridPrivateApiContext.js\";\nimport { useGridSelector } from \"../hooks/utils/useGridSelector.js\";\nimport { useGridRootProps } from \"../hooks/utils/useGridRootProps.js\";\nimport { gridColumnVisibilityModelSelector, gridVisibleColumnDefinitionsSelector } from \"../hooks/features/columns/gridColumnsSelector.js\";\nimport { gridFilterActiveItemsLookupSelector } from \"../hooks/features/filter/gridFilterSelector.js\";\nimport { gridSortColumnLookupSelector } from \"../hooks/features/sorting/gridSortingSelector.js\";\nimport { gridTabIndexColumnHeaderSelector, gridTabIndexCellSelector, gridFocusColumnHeaderSelector, gridTabIndexColumnGroupHeaderSelector, gridFocusColumnGroupHeaderSelector } from \"../hooks/features/focus/gridFocusStateSelector.js\";\nimport { gridColumnGroupsHeaderMaxDepthSelector, gridColumnGroupsHeaderStructureSelector } from \"../hooks/features/columnGrouping/gridColumnGroupsSelector.js\";\nimport { gridColumnMenuSelector } from \"../hooks/features/columnMenu/columnMenuSelector.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GridHeaders() {\n const apiRef = useGridPrivateApiContext();\n const rootProps = useGridRootProps();\n const visibleColumns = useGridSelector(apiRef, gridVisibleColumnDefinitionsSelector);\n const filterColumnLookup = useGridSelector(apiRef, gridFilterActiveItemsLookupSelector);\n const sortColumnLookup = useGridSelector(apiRef, gridSortColumnLookupSelector);\n const columnHeaderTabIndexState = useGridSelector(apiRef, gridTabIndexColumnHeaderSelector);\n const hasNoCellTabIndexState = useGridSelector(apiRef, () => gridTabIndexCellSelector(apiRef) === null);\n const columnGroupHeaderTabIndexState = useGridSelector(apiRef, gridTabIndexColumnGroupHeaderSelector);\n const columnHeaderFocus = useGridSelector(apiRef, gridFocusColumnHeaderSelector);\n const columnGroupHeaderFocus = useGridSelector(apiRef, gridFocusColumnGroupHeaderSelector);\n const headerGroupingMaxDepth = useGridSelector(apiRef, gridColumnGroupsHeaderMaxDepthSelector);\n const columnMenuState = useGridSelector(apiRef, gridColumnMenuSelector);\n const columnVisibility = useGridSelector(apiRef, gridColumnVisibilityModelSelector);\n const columnGroupsHeaderStructure = useGridSelector(apiRef, gridColumnGroupsHeaderStructureSelector);\n const hasOtherElementInTabSequence = !(columnGroupHeaderTabIndexState === null && columnHeaderTabIndexState === null && hasNoCellTabIndexState);\n const columnsContainerRef = apiRef.current.columnHeadersContainerRef;\n return /*#__PURE__*/_jsx(rootProps.slots.columnHeaders, _extends({\n ref: columnsContainerRef,\n visibleColumns: visibleColumns,\n filterColumnLookup: filterColumnLookup,\n sortColumnLookup: sortColumnLookup,\n columnHeaderTabIndexState: columnHeaderTabIndexState,\n columnGroupHeaderTabIndexState: columnGroupHeaderTabIndexState,\n columnHeaderFocus: columnHeaderFocus,\n columnGroupHeaderFocus: columnGroupHeaderFocus,\n headerGroupingMaxDepth: headerGroupingMaxDepth,\n columnMenuState: columnMenuState,\n columnVisibility: columnVisibility,\n columnGroupsHeaderStructure: columnGroupsHeaderStructure,\n hasOtherElementInTabSequence: hasOtherElementInTabSequence\n }, rootProps.slotProps?.columnHeaders));\n}\nconst MemoizedGridHeaders = fastMemo(GridHeaders);\nexport { MemoizedGridHeaders as GridHeaders };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { styled } from '@mui/system';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridConfiguration } from \"../../hooks/utils/useGridConfiguration.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst GridPanelAnchor = styled('div')({\n position: 'absolute',\n top: `var(--DataGrid-headersTotalHeight)`,\n left: 0,\n width: 'calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))'\n});\nconst Element = styled('div', {\n name: 'MuiDataGrid',\n slot: 'Main',\n overridesResolver: (props, styles) => {\n const {\n ownerState,\n loadingOverlayVariant,\n overlayType\n } = props;\n const hideContent = loadingOverlayVariant === 'skeleton' || overlayType === 'noColumnsOverlay';\n return [styles.main, ownerState.hasPinnedRight && styles['main--hasPinnedRight'], hideContent && styles['main--hiddenContent']];\n }\n})({\n flexGrow: 1,\n position: 'relative',\n overflow: 'hidden',\n display: 'flex',\n flexDirection: 'column'\n});\nexport const GridMainContainer = forwardRef((props, ref) => {\n const {\n ownerState\n } = props;\n const rootProps = useGridRootProps();\n const configuration = useGridConfiguration();\n const ariaAttributes = configuration.hooks.useGridAriaAttributes();\n return /*#__PURE__*/_jsxs(Element, _extends({\n ownerState: ownerState,\n className: props.className,\n tabIndex: -1\n }, ariaAttributes, rootProps.slotProps?.main, {\n ref: ref,\n children: [/*#__PURE__*/_jsx(GridPanelAnchor, {\n role: \"presentation\",\n \"data-id\": \"gridPanelAnchor\"\n }), props.children]\n }));\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { styled } from '@mui/system';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { gridClasses, getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = () => {\n const slots = {\n root: ['topContainer']\n };\n return composeClasses(slots, getDataGridUtilityClass, {});\n};\nconst Element = styled('div')({\n position: 'sticky',\n zIndex: 40,\n top: 0\n});\nexport function GridTopContainer(props) {\n const classes = useUtilityClasses();\n return /*#__PURE__*/_jsx(Element, _extends({}, props, {\n className: clsx(classes.root, gridClasses['container--top']),\n role: \"presentation\"\n }));\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { styled } from '@mui/system';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = (props, overflowedContent) => {\n const {\n classes\n } = props;\n const slots = {\n root: ['virtualScrollerContent', overflowedContent && 'virtualScrollerContent--overflowed']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst VirtualScrollerContentRoot = styled('div', {\n name: 'MuiDataGrid',\n slot: 'VirtualScrollerContent',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.virtualScrollerContent, ownerState.overflowedContent && styles['virtualScrollerContent--overflowed']];\n }\n})({});\nconst GridVirtualScrollerContent = forwardRef(function GridVirtualScrollerContent(props, ref) {\n const rootProps = useGridRootProps();\n const overflowedContent = !rootProps.autoHeight && props.style?.minHeight === 'auto';\n const classes = useUtilityClasses(rootProps, overflowedContent);\n const ownerState = {\n classes: rootProps.classes,\n overflowedContent\n };\n return /*#__PURE__*/_jsx(VirtualScrollerContentRoot, _extends({}, props, {\n ownerState: ownerState,\n className: clsx(classes.root, props.className),\n ref: ref\n }));\n});\nexport { GridVirtualScrollerContent };","import * as React from 'react';\nimport { styled } from '@mui/system';\nimport { fastMemo } from '@mui/x-internals/fastMemo';\nimport { vars } from \"../../constants/cssVariables.js\";\nimport { useGridSelector } from \"../../hooks/utils/useGridSelector.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { gridDimensionsSelector } from \"../../hooks/features/dimensions/index.js\";\nimport { gridClasses } from \"../../constants/index.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst Filler = styled('div')({\n display: 'flex',\n flexDirection: 'row',\n width: 'var(--DataGrid-rowWidth)',\n boxSizing: 'border-box'\n});\nconst Pinned = styled('div')({\n position: 'sticky',\n height: '100%',\n boxSizing: 'border-box',\n borderTop: '1px solid var(--rowBorderColor)',\n backgroundColor: vars.cell.background.pinned\n});\nconst PinnedLeft = styled(Pinned)({\n left: 0,\n borderRight: '1px solid var(--rowBorderColor)'\n});\nconst PinnedRight = styled(Pinned)({\n right: 0,\n borderLeft: '1px solid var(--rowBorderColor)'\n});\nconst Main = styled('div')({\n flexGrow: 1,\n borderTop: '1px solid var(--rowBorderColor)'\n});\nfunction GridVirtualScrollerFiller({\n rowsLength\n}) {\n const apiRef = useGridApiContext();\n const {\n viewportOuterSize,\n minimumSize,\n hasScrollX,\n hasScrollY,\n scrollbarSize,\n leftPinnedWidth,\n rightPinnedWidth\n } = useGridSelector(apiRef, gridDimensionsSelector);\n const height = hasScrollX ? scrollbarSize : 0;\n const needsLastRowBorder = viewportOuterSize.height - minimumSize.height > 0;\n if (height === 0 && !needsLastRowBorder) {\n return null;\n }\n return /*#__PURE__*/_jsxs(Filler, {\n className: gridClasses.filler,\n role: \"presentation\",\n style: {\n height,\n '--rowBorderColor': rowsLength === 0 ? 'transparent' : 'var(--DataGrid-rowBorderColor)'\n },\n children: [leftPinnedWidth > 0 && /*#__PURE__*/_jsx(PinnedLeft, {\n className: gridClasses['filler--pinnedLeft'],\n style: {\n width: leftPinnedWidth\n }\n }), /*#__PURE__*/_jsx(Main, {}), rightPinnedWidth > 0 && /*#__PURE__*/_jsx(PinnedRight, {\n className: gridClasses['filler--pinnedRight'],\n style: {\n width: rightPinnedWidth + (hasScrollY ? scrollbarSize : 0)\n }\n })]\n });\n}\nconst Memoized = fastMemo(GridVirtualScrollerFiller);\nexport { Memoized as GridVirtualScrollerFiller };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { styled } from '@mui/system';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { useGridSelector } from \"../../hooks/utils/useGridSelector.js\";\nimport { gridRowsMetaSelector } from \"../../hooks/features/rows/index.js\";\nimport { gridRenderContextSelector } from \"../../hooks/features/virtualization/index.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['virtualScrollerRenderZone']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst VirtualScrollerRenderZoneRoot = styled('div', {\n name: 'MuiDataGrid',\n slot: 'VirtualScrollerRenderZone'\n})({\n position: 'absolute',\n display: 'flex',\n // Prevents margin collapsing when using `getRowSpacing`\n flexDirection: 'column'\n});\nconst GridVirtualScrollerRenderZone = forwardRef(function GridVirtualScrollerRenderZone(props, ref) {\n const {\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const classes = useUtilityClasses(rootProps);\n const offsetTop = useGridSelector(apiRef, () => {\n const renderContext = gridRenderContextSelector(apiRef);\n const rowsMeta = gridRowsMetaSelector(apiRef);\n return rowsMeta.positions[renderContext.firstRowIndex] ?? 0;\n });\n return /*#__PURE__*/_jsx(VirtualScrollerRenderZoneRoot, _extends({\n className: clsx(classes.root, className),\n ownerState: rootProps,\n style: {\n transform: `translate3d(0, ${offsetTop}px, 0)`\n }\n }, other, {\n ref: ref\n }));\n});\nexport { GridVirtualScrollerRenderZone };","export const DEFAULT_GRID_AUTOSIZE_OPTIONS = {\n includeHeaders: true,\n includeOutliers: false,\n outliersFactor: 1.5,\n expand: false,\n disableColumnVirtualization: true\n};\n\n/**\n * The Resize API interface that is available in the grid `apiRef`.\n */","import { createSelector, createRootSelector } from \"../../../utils/createSelector.js\";\nimport { GridEditModes } from \"../../../models/gridEditRowModel.js\";\n\n/**\n * Select the row editing state.\n */\nexport const gridEditRowsStateSelector = createRootSelector(state => state.editRows);\nexport const gridRowIsEditingSelector = createSelector(gridEditRowsStateSelector, (editRows, {\n rowId,\n editMode\n}) => editMode === GridEditModes.Row && Boolean(editRows[rowId]));\nexport const gridEditCellStateSelector = createSelector(gridEditRowsStateSelector, (editRows, {\n rowId,\n field\n}) => editRows[rowId]?.[field] ?? null);","import { createSelector, createRootSelector } from \"../../../utils/createSelector.js\";\nexport const gridPreferencePanelStateSelector = createRootSelector(state => state.preferencePanel);\nexport const gridPreferencePanelSelectorWithLabel = createSelector(gridPreferencePanelStateSelector, (panel, labelId) => {\n if (panel.open && panel.labelId === labelId) {\n return true;\n }\n return false;\n});","var GridPreferencePanelsValue = /*#__PURE__*/function (GridPreferencePanelsValue) {\n GridPreferencePanelsValue[\"filters\"] = \"filters\";\n GridPreferencePanelsValue[\"columns\"] = \"columns\";\n GridPreferencePanelsValue[\"aiAssistant\"] = \"aiAssistant\";\n return GridPreferencePanelsValue;\n}(GridPreferencePanelsValue || {});\nexport { GridPreferencePanelsValue };","export function getKeyDefault(params) {\n return JSON.stringify([params.filterModel, params.sortModel, params.start, params.end]);\n}\nexport class GridDataSourceCacheDefault {\n constructor({\n ttl = 300_000,\n getKey = getKeyDefault\n }) {\n this.cache = void 0;\n this.ttl = void 0;\n this.getKey = void 0;\n this.cache = {};\n this.ttl = ttl;\n this.getKey = getKey;\n }\n set(key, value) {\n const keyString = this.getKey(key);\n const expiry = Date.now() + this.ttl;\n this.cache[keyString] = {\n value,\n expiry\n };\n }\n get(key) {\n const keyString = this.getKey(key);\n const entry = this.cache[keyString];\n if (!entry) {\n return undefined;\n }\n if (Date.now() > entry.expiry) {\n delete this.cache[keyString];\n return undefined;\n }\n return entry.value;\n }\n clear() {\n this.cache = {};\n }\n}","export class GridGetRowsError extends Error {\n constructor(options) {\n super(options.message);\n /**\n * The parameters used in the failed request\n */\n this.params = void 0;\n /**\n * The original error that caused this error\n */\n this.cause = void 0;\n this.name = 'GridGetRowsError';\n this.params = options.params;\n this.cause = options.cause;\n }\n}\nexport class GridUpdateRowError extends Error {\n constructor(options) {\n super(options.message);\n /**\n * The parameters used in the failed request\n */\n this.params = void 0;\n /**\n * The original error that caused this error\n */\n this.cause = void 0;\n this.name = 'GridUpdateRowError';\n this.params = options.params;\n this.cause = options.cause;\n }\n}","import * as React from 'react';\nimport { styled } from '@mui/system';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useForkRef from '@mui/utils/useForkRef';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useOnMount } from \"../../hooks/utils/useOnMount.js\";\nimport { useGridPrivateApiContext } from \"../../hooks/utils/useGridPrivateApiContext.js\";\nimport { gridDimensionsSelector, useGridSelector } from \"../../hooks/index.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = (ownerState, position) => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['scrollbar', `scrollbar--${position}`],\n content: ['scrollbarContent']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst Scrollbar = styled('div')({\n position: 'absolute',\n display: 'inline-block',\n zIndex: 60,\n '&:hover': {\n zIndex: 70\n },\n // In macOS Safari and Gnome Web, scrollbars are overlaid and don't affect the layout. So we consider\n // their size to be 0px throughout all the calculations, but the floating scrollbar container does need\n // to appear and have a real size. We set it to 14px because it seems like an acceptable value and we\n // don't have a method to find the required size for scrollbars on those platforms.\n '--size': 'calc(max(var(--DataGrid-scrollbarSize), 14px))'\n});\nconst ScrollbarVertical = styled(Scrollbar)({\n width: 'var(--size)',\n height: 'calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))',\n overflowY: 'auto',\n overflowX: 'hidden',\n // Disable focus-visible style, it's a scrollbar.\n outline: 0,\n '& > div': {\n width: 'var(--size)'\n },\n top: 'var(--DataGrid-topContainerHeight)',\n right: '0px'\n});\nconst ScrollbarHorizontal = styled(Scrollbar)({\n width: '100%',\n height: 'var(--size)',\n overflowY: 'hidden',\n overflowX: 'auto',\n // Disable focus-visible style, it's a scrollbar.\n outline: 0,\n '& > div': {\n height: 'var(--size)'\n },\n bottom: '0px'\n});\nconst GridVirtualScrollbar = forwardRef(function GridVirtualScrollbar(props, ref) {\n const apiRef = useGridPrivateApiContext();\n const rootProps = useGridRootProps();\n const isLocked = React.useRef(false);\n const lastPosition = React.useRef(0);\n const scrollbarRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const classes = useUtilityClasses(rootProps, props.position);\n const dimensions = useGridSelector(apiRef, gridDimensionsSelector);\n const propertyDimension = props.position === 'vertical' ? 'height' : 'width';\n const propertyScroll = props.position === 'vertical' ? 'scrollTop' : 'scrollLeft';\n const propertyScrollPosition = props.position === 'vertical' ? 'top' : 'left';\n const hasScroll = props.position === 'vertical' ? dimensions.hasScrollX : dimensions.hasScrollY;\n const contentSize = dimensions.minimumSize[propertyDimension] + (hasScroll ? dimensions.scrollbarSize : 0);\n const scrollbarSize = props.position === 'vertical' ? dimensions.viewportInnerSize.height : dimensions.viewportOuterSize.width;\n const scrollbarInnerSize = scrollbarSize * (contentSize / dimensions.viewportOuterSize[propertyDimension]);\n const onScrollerScroll = useEventCallback(() => {\n const scrollbar = scrollbarRef.current;\n const scrollPosition = props.scrollPosition.current;\n if (!scrollbar) {\n return;\n }\n if (scrollPosition[propertyScrollPosition] === lastPosition.current) {\n return;\n }\n lastPosition.current = scrollPosition[propertyScrollPosition];\n if (isLocked.current) {\n isLocked.current = false;\n return;\n }\n isLocked.current = true;\n const value = scrollPosition[propertyScrollPosition] / contentSize;\n scrollbar[propertyScroll] = value * scrollbarInnerSize;\n });\n const onScrollbarScroll = useEventCallback(() => {\n const scroller = apiRef.current.virtualScrollerRef.current;\n const scrollbar = scrollbarRef.current;\n if (!scrollbar) {\n return;\n }\n if (isLocked.current) {\n isLocked.current = false;\n return;\n }\n isLocked.current = true;\n const value = scrollbar[propertyScroll] / scrollbarInnerSize;\n scroller[propertyScroll] = value * contentSize;\n });\n useOnMount(() => {\n const scroller = apiRef.current.virtualScrollerRef.current;\n const scrollbar = scrollbarRef.current;\n const options = {\n passive: true\n };\n scroller.addEventListener('scroll', onScrollerScroll, options);\n scrollbar.addEventListener('scroll', onScrollbarScroll, options);\n return () => {\n scroller.removeEventListener('scroll', onScrollerScroll, options);\n scrollbar.removeEventListener('scroll', onScrollbarScroll, options);\n };\n });\n React.useEffect(() => {\n const content = contentRef.current;\n content.style.setProperty(propertyDimension, `${scrollbarInnerSize}px`);\n }, [scrollbarInnerSize, propertyDimension]);\n const Container = props.position === 'vertical' ? ScrollbarVertical : ScrollbarHorizontal;\n return /*#__PURE__*/_jsx(Container, {\n ref: useForkRef(ref, scrollbarRef),\n className: classes.root,\n style: props.position === 'vertical' && rootProps.listView ? {\n height: '100%',\n top: 0\n } : undefined,\n tabIndex: -1,\n \"aria-hidden\": \"true\"\n // tabIndex does not prevent focus with a mouse click, throwing a console error\n // https://github.com/mui/mui-x/issues/16706\n ,\n onFocus: event => {\n event.target.blur();\n },\n children: /*#__PURE__*/_jsx(\"div\", {\n ref: contentRef,\n className: classes.content\n })\n });\n});\nexport { GridVirtualScrollbar };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { styled } from '@mui/system';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { gridHasBottomFillerSelector, gridHasScrollXSelector, gridHasScrollYSelector } from \"../../hooks/features/dimensions/gridDimensionsSelectors.js\";\nimport { GridScrollArea } from \"../GridScrollArea.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { useGridSelector } from \"../../hooks/utils/useGridSelector.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridVirtualScroller } from \"../../hooks/features/virtualization/useGridVirtualScroller.js\";\nimport { useGridOverlays } from \"../../hooks/features/overlays/useGridOverlays.js\";\nimport { GridHeaders } from \"../GridHeaders.js\";\nimport { GridMainContainer as Container } from \"./GridMainContainer.js\";\nimport { GridTopContainer as TopContainer } from \"./GridTopContainer.js\";\nimport { GridVirtualScrollerContent as Content } from \"./GridVirtualScrollerContent.js\";\nimport { GridVirtualScrollerFiller as SpaceFiller } from \"./GridVirtualScrollerFiller.js\";\nimport { GridVirtualScrollerRenderZone as RenderZone } from \"./GridVirtualScrollerRenderZone.js\";\nimport { GridVirtualScrollbar as Scrollbar } from \"./GridVirtualScrollbar.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n hasScrollX,\n hasPinnedRight,\n loadingOverlayVariant,\n overlayType\n } = ownerState;\n const hideContent = loadingOverlayVariant === 'skeleton' || overlayType === 'noColumnsOverlay';\n const slots = {\n root: ['main', hasPinnedRight && 'main--hasPinnedRight', hideContent && 'main--hiddenContent'],\n scroller: ['virtualScroller', hasScrollX && 'virtualScroller--hasScrollX']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst Scroller = styled('div', {\n name: 'MuiDataGrid',\n slot: 'VirtualScroller',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.virtualScroller, ownerState.hasScrollX && styles['virtualScroller--hasScrollX']];\n }\n})({\n position: 'relative',\n height: '100%',\n flexGrow: 1,\n overflow: 'scroll',\n scrollbarWidth: 'none' /* Firefox */,\n display: 'flex',\n flexDirection: 'column',\n '&::-webkit-scrollbar': {\n display: 'none' /* Safari and Chrome */\n },\n '@media print': {\n overflow: 'hidden'\n },\n // See https://github.com/mui/mui-x/issues/10547\n zIndex: 0\n});\nconst hasPinnedRightSelector = apiRef => apiRef.current.state.dimensions.rightPinnedWidth > 0;\nfunction GridVirtualScroller(props) {\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const hasScrollY = useGridSelector(apiRef, gridHasScrollYSelector);\n const hasScrollX = useGridSelector(apiRef, gridHasScrollXSelector);\n const hasPinnedRight = useGridSelector(apiRef, hasPinnedRightSelector);\n const hasBottomFiller = useGridSelector(apiRef, gridHasBottomFillerSelector);\n const {\n getOverlay,\n overlaysProps\n } = useGridOverlays();\n const ownerState = _extends({\n classes: rootProps.classes,\n hasScrollX,\n hasPinnedRight\n }, overlaysProps);\n const classes = useUtilityClasses(ownerState);\n const virtualScroller = useGridVirtualScroller();\n const {\n getContainerProps,\n getScrollerProps,\n getContentProps,\n getRenderZoneProps,\n getScrollbarVerticalProps,\n getScrollbarHorizontalProps,\n getRows,\n getScrollAreaProps\n } = virtualScroller;\n const rows = getRows();\n return /*#__PURE__*/_jsxs(Container, _extends({\n className: classes.root\n }, getContainerProps(), {\n ownerState: ownerState,\n children: [/*#__PURE__*/_jsx(GridScrollArea, _extends({\n scrollDirection: \"left\"\n }, getScrollAreaProps())), /*#__PURE__*/_jsx(GridScrollArea, _extends({\n scrollDirection: \"right\"\n }, getScrollAreaProps())), /*#__PURE__*/_jsxs(Scroller, _extends({\n className: classes.scroller\n }, getScrollerProps(), {\n ownerState: ownerState,\n children: [/*#__PURE__*/_jsxs(TopContainer, {\n children: [!rootProps.listView && /*#__PURE__*/_jsx(GridHeaders, {}), /*#__PURE__*/_jsx(rootProps.slots.pinnedRows, {\n position: \"top\",\n virtualScroller: virtualScroller\n })]\n }), getOverlay(), /*#__PURE__*/_jsx(Content, _extends({}, getContentProps(), {\n children: /*#__PURE__*/_jsxs(RenderZone, _extends({}, getRenderZoneProps(), {\n children: [rows, /*#__PURE__*/_jsx(rootProps.slots.detailPanels, {\n virtualScroller: virtualScroller\n })]\n }))\n })), hasBottomFiller && /*#__PURE__*/_jsx(SpaceFiller, {\n rowsLength: rows.length\n }), /*#__PURE__*/_jsx(rootProps.slots.bottomContainer, {\n children: /*#__PURE__*/_jsx(rootProps.slots.pinnedRows, {\n position: \"bottom\",\n virtualScroller: virtualScroller\n })\n })]\n })), hasScrollX && !rootProps.listView && /*#__PURE__*/_jsx(Scrollbar, _extends({\n position: \"horizontal\"\n }, getScrollbarHorizontalProps())), hasScrollY && /*#__PURE__*/_jsx(Scrollbar, _extends({\n position: \"vertical\"\n }, getScrollbarVerticalProps())), props.children]\n }));\n}\nexport { GridVirtualScroller };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function GridFooterPlaceholder() {\n const rootProps = useGridRootProps();\n if (rootProps.hideFooter) {\n return null;\n }\n return /*#__PURE__*/_jsx(rootProps.slots.footer, _extends({}, rootProps.slotProps?.footer /* FIXME: typing error */));\n}","// Based on https://stackoverflow.com/a/59518678\nlet cachedSupportsPreventScroll;\nexport function doesSupportPreventScroll() {\n if (cachedSupportsPreventScroll === undefined) {\n document.createElement('div').focus({\n get preventScroll() {\n cachedSupportsPreventScroll = true;\n return false;\n }\n });\n }\n return cachedSupportsPreventScroll;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport function computeSlots({\n defaultSlots,\n slots\n}) {\n const overrides = slots;\n if (!overrides || Object.keys(overrides).length === 0) {\n return defaultSlots;\n }\n const result = _extends({}, defaultSlots);\n Object.keys(overrides).forEach(key => {\n const k = key;\n if (overrides[k] !== undefined) {\n result[k] = overrides[k];\n }\n });\n return result;\n}","import { GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD } from \"../constants.js\";\nexport const getRowGroupingCriteriaFromGroupingField = groupingColDefField => {\n const match = groupingColDefField.match(/^__row_group_by_columns_group_(.*)__$/);\n if (!match) {\n return null;\n }\n return match[1];\n};\nexport const isGroupingColumn = field => field === GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD || getRowGroupingCriteriaFromGroupingField(field) !== null;","import { PinnedColumnPosition } from \"../internals/constants.js\";\nexport const rtlFlipSide = (position, isRtl) => {\n if (!position) {\n return undefined;\n }\n if (!isRtl) {\n if (position === PinnedColumnPosition.LEFT) {\n return 'left';\n }\n if (position === PinnedColumnPosition.RIGHT) {\n return 'right';\n }\n } else {\n if (position === PinnedColumnPosition.LEFT) {\n return 'right';\n }\n if (position === PinnedColumnPosition.RIGHT) {\n return 'left';\n }\n }\n return undefined;\n};","import { rtlFlipSide } from \"../../utils/rtlFlipSide.js\";\nexport function attachPinnedStyle(style, isRtl, pinnedPosition, pinnedOffset) {\n const side = rtlFlipSide(pinnedPosition, isRtl);\n if (!side || pinnedOffset === undefined) {\n return style;\n }\n style[side] = pinnedOffset;\n return style;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"column\", \"row\", \"rowId\", \"rowNode\", \"align\", \"children\", \"colIndex\", \"width\", \"className\", \"style\", \"colSpan\", \"disableDragEvents\", \"isNotVisible\", \"pinnedOffset\", \"pinnedPosition\", \"showRightBorder\", \"showLeftBorder\", \"onClick\", \"onDoubleClick\", \"onMouseDown\", \"onMouseUp\", \"onMouseOver\", \"onKeyDown\", \"onKeyUp\", \"onDragEnter\", \"onDragOver\"],\n _excluded2 = [\"changeReason\", \"unstable_updateValueOnRender\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_useForkRef as useForkRef, unstable_composeClasses as composeClasses, unstable_ownerDocument as ownerDocument, unstable_capitalize as capitalize } from '@mui/utils';\nimport { fastMemo } from '@mui/x-internals/fastMemo';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { doesSupportPreventScroll } from \"../../utils/doesSupportPreventScroll.js\";\nimport { getDataGridUtilityClass, gridClasses } from \"../../constants/gridClasses.js\";\nimport { GridCellModes } from \"../../models/index.js\";\nimport { useGridSelector } from \"../../hooks/utils/useGridSelector.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { gridFocusCellSelector, gridTabIndexCellSelector } from \"../../hooks/features/focus/gridFocusStateSelector.js\";\nimport { GridPinnedColumnPosition } from \"../../hooks/features/columns/gridColumnsInterfaces.js\";\nimport { PinnedColumnPosition } from \"../../internals/constants.js\";\nimport { gridRowSpanningHiddenCellsSelector, gridRowSpanningSpannedCellsSelector } from \"../../hooks/features/rows/gridRowSpanningSelectors.js\";\nimport { useGridPrivateApiContext } from \"../../hooks/utils/useGridPrivateApiContext.js\";\nimport { gridEditCellStateSelector } from \"../../hooks/features/editing/gridEditingSelectors.js\";\nimport { attachPinnedStyle } from \"../../internals/utils/index.js\";\nimport { useGridConfiguration } from \"../../hooks/utils/useGridConfiguration.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const gridPinnedColumnPositionLookup = {\n [PinnedColumnPosition.LEFT]: GridPinnedColumnPosition.LEFT,\n [PinnedColumnPosition.RIGHT]: GridPinnedColumnPosition.RIGHT,\n [PinnedColumnPosition.NONE]: undefined,\n [PinnedColumnPosition.VIRTUAL]: undefined\n};\nconst useUtilityClasses = ownerState => {\n const {\n align,\n showLeftBorder,\n showRightBorder,\n pinnedPosition,\n isEditable,\n isSelected,\n isSelectionMode,\n classes\n } = ownerState;\n const slots = {\n root: ['cell', `cell--text${capitalize(align)}`, isSelected && 'selected', isEditable && 'cell--editable', showLeftBorder && 'cell--withLeftBorder', showRightBorder && 'cell--withRightBorder', pinnedPosition === PinnedColumnPosition.LEFT && 'cell--pinnedLeft', pinnedPosition === PinnedColumnPosition.RIGHT && 'cell--pinnedRight', isSelectionMode && !isEditable && 'cell--selectionMode']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nlet warnedOnce = false;\n\n// TODO(v7): Removing the wrapper will break the docs performance visualization demo.\n\nconst GridCell = forwardRef(function GridCell(props, ref) {\n const {\n column,\n row,\n rowId,\n rowNode,\n align,\n colIndex,\n width,\n className,\n style: styleProp,\n colSpan,\n disableDragEvents,\n isNotVisible,\n pinnedOffset,\n pinnedPosition,\n showRightBorder,\n showLeftBorder,\n onClick,\n onDoubleClick,\n onMouseDown,\n onMouseUp,\n onMouseOver,\n onKeyDown,\n onKeyUp,\n onDragEnter,\n onDragOver\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridPrivateApiContext();\n const rootProps = useGridRootProps();\n const isRtl = useRtl();\n const field = column.field;\n const editCellState = useGridSelector(apiRef, gridEditCellStateSelector, {\n rowId,\n field\n });\n const config = useGridConfiguration();\n const cellAggregationResult = config.hooks.useCellAggregationResult(rowId, field);\n const cellMode = editCellState ? GridCellModes.Edit : GridCellModes.View;\n const cellParams = apiRef.current.getCellParamsForRow(rowId, field, row, {\n colDef: column,\n cellMode,\n rowNode: rowNode,\n tabIndex: useGridSelector(apiRef, () => {\n const cellTabIndex = gridTabIndexCellSelector(apiRef);\n return cellTabIndex && cellTabIndex.field === field && cellTabIndex.id === rowId ? 0 : -1;\n }),\n hasFocus: useGridSelector(apiRef, () => {\n const focus = gridFocusCellSelector(apiRef);\n return focus?.id === rowId && focus.field === field;\n })\n });\n cellParams.api = apiRef.current;\n if (cellAggregationResult) {\n cellParams.value = cellAggregationResult.value;\n cellParams.formattedValue = column.valueFormatter ? column.valueFormatter(cellParams.value, row, column, apiRef) : cellParams.value;\n }\n const isSelected = useGridSelector(apiRef, () => apiRef.current.unstable_applyPipeProcessors('isCellSelected', false, {\n id: rowId,\n field\n }));\n const hiddenCells = useGridSelector(apiRef, gridRowSpanningHiddenCellsSelector);\n const spannedCells = useGridSelector(apiRef, gridRowSpanningSpannedCellsSelector);\n const {\n hasFocus,\n isEditable = false,\n value\n } = cellParams;\n const canManageOwnFocus = column.type === 'actions' && column.getActions?.(apiRef.current.getRowParams(rowId)).some(action => !action.props.disabled);\n const tabIndex = (cellMode === 'view' || !isEditable) && !canManageOwnFocus ? cellParams.tabIndex : -1;\n const {\n classes: rootClasses,\n getCellClassName\n } = rootProps;\n\n // There is a hidden grid state access in `applyPipeProcessor('cellClassName', ...)`\n const pipesClassName = useGridSelector(apiRef, () => apiRef.current.unstable_applyPipeProcessors('cellClassName', [], {\n id: rowId,\n field\n }).filter(Boolean).join(' '));\n const classNames = [pipesClassName];\n if (column.cellClassName) {\n classNames.push(typeof column.cellClassName === 'function' ? column.cellClassName(cellParams) : column.cellClassName);\n }\n if (column.display === 'flex') {\n classNames.push(gridClasses['cell--flex']);\n }\n if (getCellClassName) {\n classNames.push(getCellClassName(cellParams));\n }\n const valueToRender = cellParams.formattedValue ?? value;\n const cellRef = React.useRef(null);\n const handleRef = useForkRef(ref, cellRef);\n const focusElementRef = React.useRef(null);\n const isSelectionMode = rootProps.cellSelection ?? false;\n const ownerState = {\n align,\n showLeftBorder,\n showRightBorder,\n isEditable,\n classes: rootProps.classes,\n pinnedPosition,\n isSelected,\n isSelectionMode\n };\n const classes = useUtilityClasses(ownerState);\n const publishMouseUp = React.useCallback(eventName => event => {\n const params = apiRef.current.getCellParams(rowId, field || '');\n apiRef.current.publishEvent(eventName, params, event);\n if (onMouseUp) {\n onMouseUp(event);\n }\n }, [apiRef, field, onMouseUp, rowId]);\n const publishMouseDown = React.useCallback(eventName => event => {\n const params = apiRef.current.getCellParams(rowId, field || '');\n apiRef.current.publishEvent(eventName, params, event);\n if (onMouseDown) {\n onMouseDown(event);\n }\n }, [apiRef, field, onMouseDown, rowId]);\n const publish = React.useCallback((eventName, propHandler) => event => {\n // The row might have been deleted during the click\n if (!apiRef.current.getRow(rowId)) {\n return;\n }\n const params = apiRef.current.getCellParams(rowId, field || '');\n apiRef.current.publishEvent(eventName, params, event);\n if (propHandler) {\n propHandler(event);\n }\n }, [apiRef, field, rowId]);\n const isCellRowSpanned = hiddenCells[rowId]?.[field] ?? false;\n const rowSpan = spannedCells[rowId]?.[field] ?? 1;\n const style = React.useMemo(() => {\n if (isNotVisible) {\n return {\n padding: 0,\n opacity: 0,\n width: 0,\n height: 0,\n border: 0\n };\n }\n const cellStyle = attachPinnedStyle(_extends({\n '--width': `${width}px`\n }, styleProp), isRtl, pinnedPosition, pinnedOffset);\n const isLeftPinned = pinnedPosition === PinnedColumnPosition.LEFT;\n const isRightPinned = pinnedPosition === PinnedColumnPosition.RIGHT;\n if (rowSpan > 1) {\n cellStyle.height = `calc(var(--height) * ${rowSpan})`;\n cellStyle.zIndex = 10;\n if (isLeftPinned || isRightPinned) {\n cellStyle.zIndex = 40;\n }\n }\n return cellStyle;\n }, [width, isNotVisible, styleProp, pinnedOffset, pinnedPosition, isRtl, rowSpan]);\n React.useEffect(() => {\n if (!hasFocus || cellMode === GridCellModes.Edit) {\n return;\n }\n const doc = ownerDocument(apiRef.current.rootElementRef.current);\n if (cellRef.current && !cellRef.current.contains(doc.activeElement)) {\n const focusableElement = cellRef.current.querySelector('[tabindex=\"0\"]');\n const elementToFocus = focusElementRef.current || focusableElement || cellRef.current;\n if (doesSupportPreventScroll()) {\n elementToFocus.focus({\n preventScroll: true\n });\n } else {\n const scrollPosition = apiRef.current.getScrollPosition();\n elementToFocus.focus();\n apiRef.current.scroll(scrollPosition);\n }\n }\n }, [hasFocus, cellMode, apiRef]);\n if (isCellRowSpanned) {\n return /*#__PURE__*/_jsx(\"div\", {\n \"data-colindex\": colIndex,\n role: \"presentation\",\n style: _extends({\n width: 'var(--width)'\n }, style)\n });\n }\n let handleFocus = other.onFocus;\n if (process.env.NODE_ENV === 'test' && rootProps.experimentalFeatures?.warnIfFocusStateIsNotSynced) {\n handleFocus = event => {\n const focusedCell = gridFocusCellSelector(apiRef);\n if (focusedCell?.id === rowId && focusedCell.field === field) {\n if (typeof other.onFocus === 'function') {\n other.onFocus(event);\n }\n return;\n }\n if (!warnedOnce) {\n console.warn([`MUI X: The cell with id=${rowId} and field=${field} received focus.`, `According to the state, the focus should be at id=${focusedCell?.id}, field=${focusedCell?.field}.`, \"Not syncing the state may cause unwanted behaviors since the `cellFocusIn` event won't be fired.\", 'Call `fireEvent.mouseUp` before the `fireEvent.click` to sync the focus with the state.'].join('\\n'));\n warnedOnce = true;\n }\n };\n }\n let children;\n let title;\n if (editCellState === null && column.renderCell) {\n children = column.renderCell(cellParams);\n }\n if (editCellState !== null && column.renderEditCell) {\n const updatedRow = apiRef.current.getRowWithUpdatedValues(rowId, column.field);\n\n // eslint-disable-next-line @typescript-eslint/naming-convention\n const editCellStateRest = _objectWithoutPropertiesLoose(editCellState, _excluded2);\n const formattedValue = column.valueFormatter ? column.valueFormatter(editCellState.value, updatedRow, column, apiRef) : cellParams.formattedValue;\n const params = _extends({}, cellParams, {\n row: updatedRow,\n formattedValue\n }, editCellStateRest);\n children = column.renderEditCell(params);\n classNames.push(gridClasses['cell--editing']);\n classNames.push(rootClasses?.['cell--editing']);\n }\n if (children === undefined) {\n const valueString = valueToRender?.toString();\n children = valueString;\n title = valueString;\n }\n if (/*#__PURE__*/React.isValidElement(children) && canManageOwnFocus) {\n children = /*#__PURE__*/React.cloneElement(children, {\n focusElementRef\n });\n }\n const draggableEventHandlers = disableDragEvents ? null : {\n onDragEnter: publish('cellDragEnter', onDragEnter),\n onDragOver: publish('cellDragOver', onDragOver)\n };\n return /*#__PURE__*/_jsx(\"div\", _extends({\n className: clsx(classes.root, classNames, className),\n role: \"gridcell\",\n \"data-field\": field,\n \"data-colindex\": colIndex,\n \"aria-colindex\": colIndex + 1,\n \"aria-colspan\": colSpan,\n \"aria-rowspan\": rowSpan,\n style: style,\n title: title,\n tabIndex: tabIndex,\n onClick: publish('cellClick', onClick),\n onDoubleClick: publish('cellDoubleClick', onDoubleClick),\n onMouseOver: publish('cellMouseOver', onMouseOver),\n onMouseDown: publishMouseDown('cellMouseDown'),\n onMouseUp: publishMouseUp('cellMouseUp'),\n onKeyDown: publish('cellKeyDown', onKeyDown),\n onKeyUp: publish('cellKeyUp', onKeyUp)\n }, draggableEventHandlers, other, {\n onFocus: handleFocus,\n ref: handleRef,\n children: children\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridCell.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n align: PropTypes.oneOf(['center', 'left', 'right']).isRequired,\n colIndex: PropTypes.number.isRequired,\n colSpan: PropTypes.number,\n column: PropTypes.object.isRequired,\n disableDragEvents: PropTypes.bool,\n isNotVisible: PropTypes.bool.isRequired,\n pinnedOffset: PropTypes.number,\n pinnedPosition: PropTypes.oneOf([0, 1, 2, 3]).isRequired,\n row: PropTypes.object.isRequired,\n rowId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,\n rowNode: PropTypes.object.isRequired,\n showLeftBorder: PropTypes.bool.isRequired,\n showRightBorder: PropTypes.bool.isRequired,\n width: PropTypes.number.isRequired\n} : void 0;\nconst MemoizedGridCell = fastMemo(GridCell);\nexport { MemoizedGridCell as GridCell };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"label\", \"icon\", \"showInMenu\", \"onClick\"],\n _excluded2 = [\"label\", \"icon\", \"showInMenu\", \"onClick\", \"closeMenuOnClick\", \"closeMenu\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst GridActionsCellItem = forwardRef((props, ref) => {\n const rootProps = useGridRootProps();\n if (!props.showInMenu) {\n const {\n label,\n icon,\n onClick\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const handleClick = event => {\n onClick?.(event);\n };\n return /*#__PURE__*/_jsx(rootProps.slots.baseIconButton, _extends({\n size: \"small\",\n role: \"menuitem\",\n \"aria-label\": label\n }, other, {\n onClick: handleClick\n }, rootProps.slotProps?.baseIconButton, {\n ref: ref,\n children: /*#__PURE__*/React.cloneElement(icon, {\n fontSize: 'small'\n })\n }));\n }\n const {\n label,\n icon,\n onClick,\n closeMenuOnClick = true,\n closeMenu\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n const handleClick = event => {\n onClick?.(event);\n if (closeMenuOnClick) {\n closeMenu?.();\n }\n };\n return /*#__PURE__*/_jsx(rootProps.slots.baseMenuItem, _extends({\n ref: ref\n }, other, {\n onClick: handleClick,\n iconStart: icon,\n children: label\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridActionsCellItem.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n className: PropTypes.string,\n /**\n * from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component\n */\n component: PropTypes.elementType,\n disabled: PropTypes.bool,\n icon: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.element, PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.string, PropTypes.bool]),\n label: PropTypes.string.isRequired,\n showInMenu: PropTypes.bool,\n style: PropTypes.object\n} : void 0;\nexport { GridActionsCellItem };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"field\", \"type\", \"align\", \"width\", \"height\", \"empty\", \"style\", \"className\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses, unstable_capitalize as capitalize } from '@mui/utils';\nimport { fastMemo } from '@mui/x-internals/fastMemo';\nimport { createRandomNumberGenerator } from \"../../utils/utils.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst CIRCULAR_CONTENT_SIZE = '1.3em';\nconst CONTENT_HEIGHT = '1.2em';\nconst DEFAULT_CONTENT_WIDTH_RANGE = [40, 80];\nconst CONTENT_WIDTH_RANGE_BY_TYPE = {\n number: [40, 60],\n string: [40, 80],\n date: [40, 60],\n dateTime: [60, 80],\n singleSelect: [40, 80]\n};\nconst useUtilityClasses = ownerState => {\n const {\n align,\n classes,\n empty\n } = ownerState;\n const slots = {\n root: ['cell', 'cellSkeleton', `cell--text${align ? capitalize(align) : 'Left'}`, empty && 'cellEmpty']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst randomNumberGenerator = createRandomNumberGenerator(12345);\nfunction GridSkeletonCell(props) {\n const {\n field,\n type,\n align,\n width,\n height,\n empty = false,\n style,\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const ownerState = {\n classes: rootProps.classes,\n align,\n empty\n };\n const classes = useUtilityClasses(ownerState);\n\n // Memo prevents the non-circular skeleton widths changing to random widths on every render\n const skeletonProps = React.useMemo(() => {\n const isCircularContent = type === 'boolean' || type === 'actions';\n if (isCircularContent) {\n return {\n variant: 'circular',\n width: CIRCULAR_CONTENT_SIZE,\n height: CIRCULAR_CONTENT_SIZE\n };\n }\n\n // The width of the skeleton is a random number between the min and max values\n // The min and max values are determined by the type of the column\n const [min, max] = type ? CONTENT_WIDTH_RANGE_BY_TYPE[type] ?? DEFAULT_CONTENT_WIDTH_RANGE : DEFAULT_CONTENT_WIDTH_RANGE;\n return {\n variant: 'text',\n width: `${Math.round(randomNumberGenerator(min, max))}%`,\n height: CONTENT_HEIGHT\n };\n }, [type]);\n return /*#__PURE__*/_jsx(\"div\", _extends({\n \"data-field\": field,\n className: clsx(classes.root, className),\n style: _extends({\n height,\n maxWidth: width,\n minWidth: width\n }, style)\n }, other, {\n children: !empty && /*#__PURE__*/_jsx(rootProps.slots.baseSkeleton, _extends({}, skeletonProps))\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridSkeletonCell.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n align: PropTypes.string,\n /**\n * If `true`, the cell will not display the skeleton but still reserve the cell space.\n * @default false\n */\n empty: PropTypes.bool,\n field: PropTypes.string,\n height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),\n type: PropTypes.oneOf(['actions', 'boolean', 'custom', 'date', 'dateTime', 'number', 'singleSelect', 'string']),\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string])\n} : void 0;\nconst Memoized = fastMemo(GridSkeletonCell);\nexport { Memoized as GridSkeletonCell };","import { styled } from '@mui/material/styles';\nimport { gridClasses as c } from \"../../constants/gridClasses.js\";\nimport { vars } from \"../../constants/cssVariables.js\";\nimport { useGridSelector } from \"../../hooks/utils/useGridSelector.js\";\nimport { useGridPrivateApiContext } from \"../../hooks/utils/useGridPrivateApiContext.js\";\nconst columnSeparatorTargetSize = 10;\nconst columnSeparatorOffset = -5;\nconst focusOutlineWidth = 1;\nconst separatorIconDragStyles = {\n width: 3,\n rx: 1.5,\n x: 10.5\n};\n\n// Emotion thinks it knows better than us which selector we should use.\n// https://github.com/emotion-js/emotion/issues/1105#issuecomment-1722524968\nconst ignoreSsrWarning = '/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */';\nconst shouldShowBorderTopRightRadiusSelector = apiRef => apiRef.current.state.dimensions.hasScrollX && (!apiRef.current.state.dimensions.hasScrollY || apiRef.current.state.dimensions.scrollbarSize === 0);\nexport const GridRootStyles = styled('div', {\n name: 'MuiDataGrid',\n slot: 'Root',\n overridesResolver: (props, styles) => [\n // Root overrides\n styles.root, {\n [`&.${c.autoHeight}`]: styles.autoHeight\n }, {\n [`&.${c.autosizing}`]: styles.autosizing\n }, {\n [`&.${c['root--densityStandard']}`]: styles['root--densityStandard']\n }, {\n [`&.${c['root--densityComfortable']}`]: styles['root--densityComfortable']\n }, {\n [`&.${c['root--densityCompact']}`]: styles['root--densityCompact']\n }, {\n [`&.${c['root--disableUserSelection']}`]: styles['root--disableUserSelection']\n }, {\n [`&.${c['root--noToolbar']}`]: styles['root--noToolbar']\n }, {\n [`&.${c.withVerticalBorder}`]: styles.withVerticalBorder\n },\n // Child element overrides\n // - Only declare overrides here for class names that are not applied to `styled` components.\n // - For `styled` components, declare overrides in the component itself.\n {\n [`& .${c.actionsCell}`]: styles.actionsCell\n }, {\n [`& .${c.booleanCell}`]: styles.booleanCell\n }, {\n [`& .${c.cell}`]: styles.cell\n }, {\n [`& .${c['cell--editable']}`]: styles['cell--editable']\n }, {\n [`& .${c['cell--editing']}`]: styles['cell--editing']\n }, {\n [`& .${c['cell--flex']}`]: styles['cell--flex']\n }, {\n [`& .${c['cell--pinnedLeft']}`]: styles['cell--pinnedLeft']\n }, {\n [`& .${c['cell--pinnedRight']}`]: styles['cell--pinnedRight']\n }, {\n [`& .${c['cell--rangeBottom']}`]: styles['cell--rangeBottom']\n }, {\n [`& .${c['cell--rangeLeft']}`]: styles['cell--rangeLeft']\n }, {\n [`& .${c['cell--rangeRight']}`]: styles['cell--rangeRight']\n }, {\n [`& .${c['cell--rangeTop']}`]: styles['cell--rangeTop']\n }, {\n [`& .${c['cell--selectionMode']}`]: styles['cell--selectionMode']\n }, {\n [`& .${c['cell--textCenter']}`]: styles['cell--textCenter']\n }, {\n [`& .${c['cell--textLeft']}`]: styles['cell--textLeft']\n }, {\n [`& .${c['cell--textRight']}`]: styles['cell--textRight']\n }, {\n [`& .${c['cell--withLeftBorder']}`]: styles['cell--withLeftBorder']\n }, {\n [`& .${c['cell--withRightBorder']}`]: styles['cell--withRightBorder']\n }, {\n [`& .${c.cellCheckbox}`]: styles.cellCheckbox\n }, {\n [`& .${c.cellEmpty}`]: styles.cellEmpty\n }, {\n [`& .${c.cellOffsetLeft}`]: styles.cellOffsetLeft\n }, {\n [`& .${c.cellSkeleton}`]: styles.cellSkeleton\n }, {\n [`& .${c.checkboxInput}`]: styles.checkboxInput\n }, {\n [`& .${c.columnHeader}`]: styles.columnHeader\n }, {\n [`& .${c['columnHeader--alignCenter']}`]: styles['columnHeader--alignCenter']\n }, {\n [`& .${c['columnHeader--alignLeft']}`]: styles['columnHeader--alignLeft']\n }, {\n [`& .${c['columnHeader--alignRight']}`]: styles['columnHeader--alignRight']\n }, {\n [`& .${c['columnHeader--dragging']}`]: styles['columnHeader--dragging']\n }, {\n [`& .${c['columnHeader--emptyGroup']}`]: styles['columnHeader--emptyGroup']\n }, {\n [`& .${c['columnHeader--filledGroup']}`]: styles['columnHeader--filledGroup']\n }, {\n [`& .${c['columnHeader--filtered']}`]: styles['columnHeader--filtered']\n }, {\n [`& .${c['columnHeader--last']}`]: styles['columnHeader--last']\n }, {\n [`& .${c['columnHeader--lastUnpinned']}`]: styles['columnHeader--lastUnpinned']\n }, {\n [`& .${c['columnHeader--moving']}`]: styles['columnHeader--moving']\n }, {\n [`& .${c['columnHeader--numeric']}`]: styles['columnHeader--numeric']\n }, {\n [`& .${c['columnHeader--pinnedLeft']}`]: styles['columnHeader--pinnedLeft']\n }, {\n [`& .${c['columnHeader--pinnedRight']}`]: styles['columnHeader--pinnedRight']\n }, {\n [`& .${c['columnHeader--siblingFocused']}`]: styles['columnHeader--siblingFocused']\n }, {\n [`& .${c['columnHeader--sortable']}`]: styles['columnHeader--sortable']\n }, {\n [`& .${c['columnHeader--sorted']}`]: styles['columnHeader--sorted']\n }, {\n [`& .${c['columnHeader--withLeftBorder']}`]: styles['columnHeader--withLeftBorder']\n }, {\n [`& .${c['columnHeader--withRightBorder']}`]: styles['columnHeader--withRightBorder']\n }, {\n [`& .${c.columnHeaderCheckbox}`]: styles.columnHeaderCheckbox\n }, {\n [`& .${c.columnHeaderDraggableContainer}`]: styles.columnHeaderDraggableContainer\n }, {\n [`& .${c.columnHeaderTitleContainer}`]: styles.columnHeaderTitleContainer\n }, {\n [`& .${c.columnHeaderTitleContainerContent}`]: styles.columnHeaderTitleContainerContent\n }, {\n [`& .${c.columnSeparator}`]: styles.columnSeparator\n }, {\n [`& .${c['columnSeparator--resizable']}`]: styles['columnSeparator--resizable']\n }, {\n [`& .${c['columnSeparator--resizing']}`]: styles['columnSeparator--resizing']\n }, {\n [`& .${c['columnSeparator--sideLeft']}`]: styles['columnSeparator--sideLeft']\n }, {\n [`& .${c['columnSeparator--sideRight']}`]: styles['columnSeparator--sideRight']\n }, {\n [`& .${c['container--bottom']}`]: styles['container--bottom']\n }, {\n [`& .${c['container--top']}`]: styles['container--top']\n }, {\n [`& .${c.detailPanelToggleCell}`]: styles.detailPanelToggleCell\n }, {\n [`& .${c['detailPanelToggleCell--expanded']}`]: styles['detailPanelToggleCell--expanded']\n }, {\n [`& .${c.editBooleanCell}`]: styles.editBooleanCell\n }, {\n [`& .${c.filterIcon}`]: styles.filterIcon\n }, {\n [`& .${c['filler--borderBottom']}`]: styles['filler--borderBottom']\n }, {\n [`& .${c['filler--pinnedLeft']}`]: styles['filler--pinnedLeft']\n }, {\n [`& .${c['filler--pinnedRight']}`]: styles['filler--pinnedRight']\n }, {\n [`& .${c.groupingCriteriaCell}`]: styles.groupingCriteriaCell\n }, {\n [`& .${c.groupingCriteriaCellLoadingContainer}`]: styles.groupingCriteriaCellLoadingContainer\n }, {\n [`& .${c.groupingCriteriaCellToggle}`]: styles.groupingCriteriaCellToggle\n }, {\n [`& .${c.headerFilterRow}`]: styles.headerFilterRow\n }, {\n [`& .${c.iconSeparator}`]: styles.iconSeparator\n }, {\n [`& .${c.menuIcon}`]: styles.menuIcon\n }, {\n [`& .${c.menuIconButton}`]: styles.menuIconButton\n }, {\n [`& .${c.menuList}`]: styles.menuList\n }, {\n [`& .${c.menuOpen}`]: styles.menuOpen\n }, {\n [`& .${c.overlayWrapperInner}`]: styles.overlayWrapperInner\n }, {\n [`& .${c.pinnedRows}`]: styles.pinnedRows\n }, {\n [`& .${c['pinnedRows--bottom']}`]: styles['pinnedRows--bottom']\n }, {\n [`& .${c['pinnedRows--top']}`]: styles['pinnedRows--top']\n }, {\n [`& .${c.row}`]: styles.row\n }, {\n [`& .${c['row--borderBottom']}`]: styles['row--borderBottom']\n }, {\n [`& .${c['row--detailPanelExpanded']}`]: styles['row--detailPanelExpanded']\n }, {\n [`& .${c['row--dragging']}`]: styles['row--dragging']\n }, {\n [`& .${c['row--dynamicHeight']}`]: styles['row--dynamicHeight']\n }, {\n [`& .${c['row--editable']}`]: styles['row--editable']\n }, {\n [`& .${c['row--editing']}`]: styles['row--editing']\n }, {\n [`& .${c['row--firstVisible']}`]: styles['row--firstVisible']\n }, {\n [`& .${c['row--lastVisible']}`]: styles['row--lastVisible']\n }, {\n [`& .${c.rowReorderCell}`]: styles.rowReorderCell\n }, {\n [`& .${c['rowReorderCell--draggable']}`]: styles['rowReorderCell--draggable']\n }, {\n [`& .${c.rowReorderCellContainer}`]: styles.rowReorderCellContainer\n }, {\n [`& .${c.rowReorderCellPlaceholder}`]: styles.rowReorderCellPlaceholder\n }, {\n [`& .${c.rowSkeleton}`]: styles.rowSkeleton\n }, {\n [`& .${c.scrollbar}`]: styles.scrollbar\n }, {\n [`& .${c['scrollbar--horizontal']}`]: styles['scrollbar--horizontal']\n }, {\n [`& .${c['scrollbar--vertical']}`]: styles['scrollbar--vertical']\n }, {\n [`& .${c.scrollbarFiller}`]: styles.scrollbarFiller\n }, {\n [`& .${c['scrollbarFiller--borderBottom']}`]: styles['scrollbarFiller--borderBottom']\n }, {\n [`& .${c['scrollbarFiller--borderTop']}`]: styles['scrollbarFiller--borderTop']\n }, {\n [`& .${c['scrollbarFiller--header']}`]: styles['scrollbarFiller--header']\n }, {\n [`& .${c['scrollbarFiller--pinnedRight']}`]: styles['scrollbarFiller--pinnedRight']\n }, {\n [`& .${c.sortIcon}`]: styles.sortIcon\n }, {\n [`& .${c.treeDataGroupingCell}`]: styles.treeDataGroupingCell\n }, {\n [`& .${c.treeDataGroupingCellLoadingContainer}`]: styles.treeDataGroupingCellLoadingContainer\n }, {\n [`& .${c.treeDataGroupingCellToggle}`]: styles.treeDataGroupingCellToggle\n }, {\n [`& .${c.withBorderColor}`]: styles.withBorderColor\n }]\n})(() => {\n const apiRef = useGridPrivateApiContext();\n const shouldShowBorderTopRightRadius = useGridSelector(apiRef, shouldShowBorderTopRightRadiusSelector);\n const baseBackground = vars.colors.background.base;\n const headerBackground = vars.header.background.base;\n const pinnedBackground = vars.cell.background.pinned;\n const hoverColor = removeOpacity(vars.colors.interactive.hover);\n const hoverOpacity = vars.colors.interactive.hoverOpacity;\n const selectedColor = vars.colors.interactive.selected;\n const selectedOpacity = vars.colors.interactive.selectedOpacity;\n const selectedHoverColor = selectedColor;\n const selectedHoverOpacity = `calc(${selectedOpacity} + ${hoverOpacity})`;\n const hoverBackground = mix(baseBackground, hoverColor, hoverOpacity);\n const selectedBackground = mix(baseBackground, selectedColor, selectedOpacity);\n const selectedHoverBackground = mix(baseBackground, selectedHoverColor, selectedHoverOpacity);\n const pinnedHoverBackground = mix(pinnedBackground, hoverColor, hoverOpacity);\n const pinnedSelectedBackground = mix(pinnedBackground, selectedColor, selectedOpacity);\n const pinnedSelectedHoverBackground = mix(pinnedBackground, selectedHoverColor, selectedHoverOpacity);\n const getPinnedBackgroundStyles = backgroundColor => ({\n [`& .${c['cell--pinnedLeft']}, & .${c['cell--pinnedRight']}`]: {\n backgroundColor,\n '&.Mui-selected': {\n backgroundColor: mix(backgroundColor, selectedBackground, selectedOpacity),\n '&:hover': {\n backgroundColor: mix(backgroundColor, selectedHoverBackground, selectedHoverOpacity)\n }\n }\n }\n });\n const pinnedHoverStyles = getPinnedBackgroundStyles(pinnedHoverBackground);\n const pinnedSelectedStyles = getPinnedBackgroundStyles(pinnedSelectedBackground);\n const pinnedSelectedHoverStyles = getPinnedBackgroundStyles(pinnedSelectedHoverBackground);\n const selectedStyles = {\n backgroundColor: selectedBackground,\n '&:hover': {\n backgroundColor: selectedHoverBackground,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: selectedBackground\n }\n }\n };\n const gridStyle = {\n '--unstable_DataGrid-radius': vars.radius.base,\n '--unstable_DataGrid-headWeight': vars.typography.fontWeight.medium,\n '--DataGrid-rowBorderColor': vars.colors.border.base,\n '--DataGrid-cellOffsetMultiplier': 2,\n '--DataGrid-width': '0px',\n '--DataGrid-hasScrollX': '0',\n '--DataGrid-hasScrollY': '0',\n '--DataGrid-scrollbarSize': '10px',\n '--DataGrid-rowWidth': '0px',\n '--DataGrid-columnsTotalWidth': '0px',\n '--DataGrid-leftPinnedWidth': '0px',\n '--DataGrid-rightPinnedWidth': '0px',\n '--DataGrid-headerHeight': '0px',\n '--DataGrid-headersTotalHeight': '0px',\n '--DataGrid-topContainerHeight': '0px',\n '--DataGrid-bottomContainerHeight': '0px',\n flex: 1,\n boxSizing: 'border-box',\n position: 'relative',\n borderWidth: '1px',\n borderStyle: 'solid',\n borderColor: vars.colors.border.base,\n borderRadius: 'var(--unstable_DataGrid-radius)',\n backgroundColor: vars.colors.background.base,\n color: vars.colors.foreground.base,\n font: vars.typography.font.body,\n outline: 'none',\n height: '100%',\n display: 'flex',\n minWidth: 0,\n // See https://github.com/mui/mui-x/issues/8547\n minHeight: 0,\n flexDirection: 'column',\n overflow: 'hidden',\n overflowAnchor: 'none',\n // Keep the same scrolling position\n transform: 'translate(0, 0)',\n // Create a stacking context to keep scrollbars from showing on top\n\n [`.${c.main} > *:first-child${ignoreSsrWarning}`]: {\n borderTopLeftRadius: 'var(--unstable_DataGrid-radius)',\n borderTopRightRadius: 'var(--unstable_DataGrid-radius)'\n },\n [`&.${c.autoHeight}`]: {\n height: 'auto'\n },\n [`&.${c.autosizing}`]: {\n [`& .${c.columnHeaderTitleContainerContent} > *`]: {\n overflow: 'visible !important'\n },\n '@media (hover: hover)': {\n [`& .${c.menuIcon}`]: {\n width: '0 !important',\n visibility: 'hidden !important'\n }\n },\n [`& .${c.cell}`]: {\n overflow: 'visible !important',\n whiteSpace: 'nowrap',\n minWidth: 'max-content !important',\n maxWidth: 'max-content !important'\n },\n [`& .${c.groupingCriteriaCell}`]: {\n width: 'unset'\n },\n [`& .${c.treeDataGroupingCell}`]: {\n width: 'unset'\n }\n },\n [`&.${c.withSidePanel}`]: {\n flexDirection: 'row'\n },\n [`& .${c.mainContent}`]: {\n display: 'flex',\n flexDirection: 'column',\n overflow: 'hidden',\n flex: 1\n },\n [`& .${c.columnHeader}, & .${c.cell}`]: {\n WebkitTapHighlightColor: 'transparent',\n padding: '0 10px',\n boxSizing: 'border-box'\n },\n [`& .${c.columnHeader}:focus-within, & .${c.cell}:focus-within`]: {\n outline: `solid ${setOpacity(vars.colors.interactive.focus, 0.5)} ${focusOutlineWidth}px`,\n outlineOffset: focusOutlineWidth * -1\n },\n [`& .${c.columnHeader}:focus, & .${c.cell}:focus`]: {\n outline: `solid ${vars.colors.interactive.focus} ${focusOutlineWidth}px`,\n outlineOffset: focusOutlineWidth * -1\n },\n // Hide the column separator when:\n // - the column is focused and has an outline\n // - the next column is focused and has an outline\n // - the column has a left or right border\n // - the next column is pinned right and has a left border\n [`& .${c.columnHeader}:focus,\n & .${c['columnHeader--withLeftBorder']},\n & .${c['columnHeader--withRightBorder']},\n & .${c['columnHeader--siblingFocused']},\n & .${c['virtualScroller--hasScrollX']} .${c['columnHeader--lastUnpinned']},\n & .${c['virtualScroller--hasScrollX']} .${c['columnHeader--last']}\n `]: {\n [`& .${c.columnSeparator}`]: {\n opacity: 0\n },\n // Show resizable separators at all times on touch devices\n '@media (hover: none)': {\n [`& .${c['columnSeparator--resizable']}`]: {\n opacity: 1\n }\n },\n [`& .${c['columnSeparator--resizable']}:hover`]: {\n opacity: 1\n }\n },\n [`&.${c['root--noToolbar']} [aria-rowindex=\"1\"] [aria-colindex=\"1\"]`]: {\n borderTopLeftRadius: 'calc(var(--unstable_DataGrid-radius) - 1px)'\n },\n [`&.${c['root--noToolbar']} [aria-rowindex=\"1\"] .${c['columnHeader--last']}`]: {\n borderTopRightRadius: shouldShowBorderTopRightRadius ? 'calc(var(--unstable_DataGrid-radius) - 1px)' : undefined\n },\n [`& .${c.columnHeaderCheckbox}, & .${c.cellCheckbox}`]: {\n padding: 0,\n justifyContent: 'center',\n alignItems: 'center'\n },\n [`& .${c.columnHeader}`]: {\n position: 'relative',\n display: 'flex',\n alignItems: 'center',\n backgroundColor: headerBackground\n },\n [`& .${c['columnHeader--filter']}`]: {\n paddingTop: 8,\n paddingBottom: 8,\n paddingRight: 5,\n minHeight: 'min-content',\n overflow: 'hidden'\n },\n [`& .${c['virtualScroller--hasScrollX']} .${c['columnHeader--last']}`]: {\n overflow: 'hidden'\n },\n [`& .${c['pivotPanelField--sorted']} .${c.iconButtonContainer},\n & .${c['columnHeader--sorted']} .${c.iconButtonContainer},\n & .${c['columnHeader--filtered']} .${c.iconButtonContainer}`]: {\n visibility: 'visible',\n width: 'auto'\n },\n [`& .${c.pivotPanelField}:not(.${c['pivotPanelField--sorted']}) .${c.sortButton},\n & .${c.columnHeader}:not(.${c['columnHeader--sorted']}) .${c.sortButton}`]: {\n opacity: 0,\n transition: vars.transition(['opacity'], {\n duration: vars.transitions.duration.short\n })\n },\n [`& .${c.columnHeaderTitleContainer}`]: {\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing(0.25),\n minWidth: 0,\n flex: 1,\n whiteSpace: 'nowrap',\n overflow: 'hidden'\n },\n [`& .${c.columnHeaderTitleContainerContent}`]: {\n overflow: 'hidden',\n display: 'flex',\n alignItems: 'center'\n },\n [`& .${c['columnHeader--filledGroup']} .${c.columnHeaderTitleContainer}`]: {\n borderBottomWidth: '1px',\n borderBottomStyle: 'solid',\n boxSizing: 'border-box'\n },\n [`& .${c.sortIcon}, & .${c.filterIcon}`]: {\n fontSize: 'inherit'\n },\n [`& .${c['columnHeader--sortable']}`]: {\n cursor: 'pointer'\n },\n [`& .${c['columnHeader--alignCenter']} .${c.columnHeaderTitleContainer}`]: {\n justifyContent: 'center'\n },\n [`& .${c['columnHeader--alignRight']} .${c.columnHeaderDraggableContainer}, & .${c['columnHeader--alignRight']} .${c.columnHeaderTitleContainer}`]: {\n flexDirection: 'row-reverse'\n },\n [`& .${c['columnHeader--alignCenter']} .${c.menuIcon}`]: {\n marginLeft: 'auto'\n },\n [`& .${c['columnHeader--alignRight']} .${c.menuIcon}`]: {\n marginRight: 'auto',\n marginLeft: -5\n },\n [`& .${c['columnHeader--moving']}`]: {\n backgroundColor: hoverBackground\n },\n [`& .${c['columnHeader--pinnedLeft']}, & .${c['columnHeader--pinnedRight']}`]: {\n position: 'sticky',\n zIndex: 40,\n // Should be above the column separator\n background: vars.header.background.base\n },\n [`& .${c.columnSeparator}`]: {\n position: 'absolute',\n overflow: 'hidden',\n zIndex: 30,\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center',\n maxWidth: columnSeparatorTargetSize,\n color: vars.colors.border.base\n },\n [`& .${c.columnHeaders}`]: {\n width: 'var(--DataGrid-rowWidth)',\n backgroundColor: headerBackground\n },\n '@media (hover: hover)': {\n [`& .${c.columnHeader}:hover`]: {\n [`& .${c.menuIcon}`]: {\n width: 'auto',\n visibility: 'visible'\n },\n [`& .${c.iconButtonContainer}`]: {\n visibility: 'visible',\n width: 'auto'\n }\n },\n [`& .${c.columnHeader}:not(.${c['columnHeader--sorted']}):hover .${c.sortButton},\n & .${c.pivotPanelField}:not(.${c['pivotPanelField--sorted']}):hover .${c.sortButton},\n & .${c.pivotPanelField}:not(.${c['pivotPanelField--sorted']}) .${c.sortButton}:focus-visible`]: {\n opacity: 0.5\n }\n },\n '@media (hover: none)': {\n [`& .${c.columnHeader} .${c.menuIcon}`]: {\n width: 'auto',\n visibility: 'visible'\n },\n [`& .${c.columnHeader}:focus,\n & .${c['columnHeader--siblingFocused']}`]: {\n [`.${c['columnSeparator--resizable']}`]: {\n color: vars.colors.foreground.accent\n }\n },\n [`& .${c.pivotPanelField}:not(.${c['pivotPanelField--sorted']}) .${c.sortButton}`]: {\n opacity: 0.5\n }\n },\n [`& .${c['columnSeparator--sideLeft']}`]: {\n left: columnSeparatorOffset\n },\n [`& .${c['columnSeparator--sideRight']}`]: {\n right: columnSeparatorOffset\n },\n [`& .${c['columnHeader--withRightBorder']} .${c['columnSeparator--sideLeft']}`]: {\n left: columnSeparatorOffset - 0.5\n },\n [`& .${c['columnHeader--withRightBorder']} .${c['columnSeparator--sideRight']}`]: {\n right: columnSeparatorOffset - 0.5\n },\n [`& .${c['columnSeparator--resizable']}`]: {\n cursor: 'col-resize',\n touchAction: 'none',\n [`&.${c['columnSeparator--resizing']}`]: {\n color: vars.colors.foreground.accent\n },\n // Always appear as draggable on touch devices\n '@media (hover: none)': {\n [`& .${c.iconSeparator} rect`]: separatorIconDragStyles\n },\n '@media (hover: hover)': {\n '&:hover': {\n color: vars.colors.foreground.accent,\n [`& .${c.iconSeparator} rect`]: separatorIconDragStyles\n }\n },\n '& svg': {\n pointerEvents: 'none'\n }\n },\n [`& .${c.iconSeparator}`]: {\n color: 'inherit',\n transition: vars.transition(['color', 'width'], {\n duration: vars.transitions.duration.short\n })\n },\n [`& .${c.menuIcon}`]: {\n width: 0,\n visibility: 'hidden',\n fontSize: 20,\n marginRight: -5,\n display: 'flex',\n alignItems: 'center'\n },\n [`.${c.menuOpen}`]: {\n visibility: 'visible',\n width: 'auto'\n },\n [`& .${c.headerFilterRow}`]: {\n [`& .${c.columnHeader}`]: {\n boxSizing: 'border-box',\n borderBottom: '1px solid var(--DataGrid-rowBorderColor)'\n }\n },\n /* Bottom border of the top-container */\n [`& .${c['row--borderBottom']} .${c.columnHeader},\n & .${c['row--borderBottom']} .${c.filler},\n & .${c['row--borderBottom']} .${c.scrollbarFiller}`]: {\n borderBottom: `1px solid var(--DataGrid-rowBorderColor)`\n },\n [`& .${c['row--borderBottom']} .${c.cell}`]: {\n borderBottom: `1px solid var(--rowBorderColor)`\n },\n /* Row styles */\n [`.${c.row}`]: {\n display: 'flex',\n width: 'var(--DataGrid-rowWidth)',\n breakInside: 'avoid',\n // Avoid the row to be broken in two different print pages.\n\n '--rowBorderColor': 'var(--DataGrid-rowBorderColor)',\n [`&.${c['row--firstVisible']}`]: {\n '--rowBorderColor': 'transparent'\n },\n '&:hover': {\n backgroundColor: hoverBackground,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n [`&.${c.rowSkeleton}:hover`]: {\n backgroundColor: 'transparent'\n },\n '&.Mui-selected': selectedStyles\n },\n [`& .${c['container--top']}, & .${c['container--bottom']}`]: {\n '[role=row]': {\n background: vars.colors.background.base\n }\n },\n /* Cell styles */\n [`& .${c.cell}`]: {\n flex: '0 0 auto',\n height: 'var(--height)',\n width: 'var(--width)',\n lineHeight: 'calc(var(--height) - 1px)',\n // -1px for the border\n\n boxSizing: 'border-box',\n borderTop: `1px solid var(--rowBorderColor)`,\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis',\n '&.Mui-selected': selectedStyles\n },\n [`& .${c['virtualScrollerContent--overflowed']} .${c['row--lastVisible']} .${c.cell}`]: {\n borderTopColor: 'transparent'\n },\n [`& .${c.pinnedRows} .${c.row}, .${c.aggregationRowOverlayWrapper} .${c.row}`]: {\n backgroundColor: pinnedBackground,\n '&:hover': {\n backgroundColor: pinnedHoverBackground\n }\n },\n [`& .${c['pinnedRows--top']} :first-of-type`]: {\n [`& .${c.cell}, .${c.scrollbarFiller}`]: {\n borderTop: 'none'\n }\n },\n [`&.${c['root--disableUserSelection']} .${c.cell}`]: {\n userSelect: 'none'\n },\n [`& .${c['row--dynamicHeight']} > .${c.cell}`]: {\n whiteSpace: 'initial',\n lineHeight: 'inherit'\n },\n [`& .${c.cellEmpty}`]: {\n flex: 1,\n padding: 0,\n height: 'unset'\n },\n [`& .${c.cell}.${c['cell--selectionMode']}`]: {\n cursor: 'default'\n },\n [`& .${c.cell}.${c['cell--editing']}`]: {\n padding: 1,\n display: 'flex',\n boxShadow: vars.shadows.base,\n backgroundColor: vars.colors.background.overlay,\n '&:focus-within': {\n outline: `${focusOutlineWidth}px solid ${vars.colors.interactive.focus}`,\n outlineOffset: focusOutlineWidth * -1\n }\n },\n [`& .${c['row--editing']}`]: {\n boxShadow: vars.shadows.base\n },\n [`& .${c['row--editing']} .${c.cell}`]: {\n boxShadow: 'none',\n backgroundColor: vars.colors.background.overlay\n },\n [`& .${c.editBooleanCell}`]: {\n display: 'flex',\n height: '100%',\n width: '100%',\n alignItems: 'center',\n justifyContent: 'center'\n },\n [`& .${c.booleanCell}[data-value=\"true\"]`]: {\n color: vars.colors.foreground.muted\n },\n [`& .${c.booleanCell}[data-value=\"false\"]`]: {\n color: vars.colors.foreground.disabled\n },\n [`& .${c.actionsCell}`]: {\n display: 'inline-flex',\n alignItems: 'center',\n gridGap: vars.spacing(1)\n },\n [`& .${c.rowReorderCell}`]: {\n display: 'inline-flex',\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n opacity: vars.colors.interactive.disabledOpacity\n },\n [`& .${c['rowReorderCell--draggable']}`]: {\n cursor: 'move',\n opacity: 1\n },\n [`& .${c.rowReorderCellContainer}`]: {\n padding: 0,\n display: 'flex',\n alignItems: 'stretch'\n },\n [`.${c.withBorderColor}`]: {\n borderColor: vars.colors.border.base\n },\n [`& .${c['cell--withLeftBorder']}, & .${c['columnHeader--withLeftBorder']}`]: {\n borderLeftColor: 'var(--DataGrid-rowBorderColor)',\n borderLeftWidth: '1px',\n borderLeftStyle: 'solid'\n },\n [`& .${c['cell--withRightBorder']}, & .${c['columnHeader--withRightBorder']}`]: {\n borderRightColor: 'var(--DataGrid-rowBorderColor)',\n borderRightWidth: '1px',\n borderRightStyle: 'solid'\n },\n [`& .${c['cell--flex']}`]: {\n display: 'flex',\n alignItems: 'center',\n lineHeight: 'inherit'\n },\n [`& .${c['cell--textLeft']}`]: {\n textAlign: 'left',\n justifyContent: 'flex-start'\n },\n [`& .${c['cell--textRight']}`]: {\n textAlign: 'right',\n justifyContent: 'flex-end'\n },\n [`& .${c['cell--textCenter']}`]: {\n textAlign: 'center',\n justifyContent: 'center'\n },\n [`& .${c['cell--pinnedLeft']}, & .${c['cell--pinnedRight']}`]: {\n position: 'sticky',\n zIndex: 30,\n background: vars.cell.background.pinned,\n '&.Mui-selected': {\n backgroundColor: pinnedSelectedBackground\n }\n },\n [`& .${c.row}`]: {\n '&:hover': pinnedHoverStyles,\n '&.Mui-selected': pinnedSelectedStyles,\n '&.Mui-selected:hover': pinnedSelectedHoverStyles\n },\n [`& .${c.cellOffsetLeft}`]: {\n flex: '0 0 auto',\n display: 'inline-block'\n },\n [`& .${c.cellSkeleton}`]: {\n flex: '0 0 auto',\n height: '100%',\n display: 'inline-flex',\n alignItems: 'center'\n },\n [`& .${c.columnHeaderDraggableContainer}`]: {\n display: 'flex',\n width: '100%',\n height: '100%'\n },\n [`& .${c.rowReorderCellPlaceholder}`]: {\n display: 'none'\n },\n [`& .${c['columnHeader--dragging']}, & .${c['row--dragging']}`]: {\n background: vars.colors.background.overlay,\n padding: '0 12px',\n borderRadius: 'var(--unstable_DataGrid-radius)',\n opacity: vars.colors.interactive.disabledOpacity\n },\n [`& .${c['row--dragging']}`]: {\n background: vars.colors.background.overlay,\n padding: '0 12px',\n borderRadius: 'var(--unstable_DataGrid-radius)',\n opacity: vars.colors.interactive.disabledOpacity,\n [`& .${c.rowReorderCellPlaceholder}`]: {\n display: 'flex'\n }\n },\n [`& .${c.treeDataGroupingCell}`]: {\n display: 'flex',\n alignItems: 'center',\n width: '100%'\n },\n [`& .${c.treeDataGroupingCellToggle}`]: {\n flex: '0 0 28px',\n alignSelf: 'stretch',\n marginRight: vars.spacing(2)\n },\n [`& .${c.treeDataGroupingCellLoadingContainer}, .${c.groupingCriteriaCellLoadingContainer}`]: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n height: '100%'\n },\n [`& .${c.groupingCriteriaCell}`]: {\n display: 'flex',\n alignItems: 'center',\n width: '100%'\n },\n [`& .${c.groupingCriteriaCellToggle}`]: {\n flex: '0 0 28px',\n alignSelf: 'stretch',\n marginRight: vars.spacing(2)\n },\n /* ScrollbarFiller styles */\n [`.${c.scrollbarFiller}`]: {\n minWidth: 'calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))',\n alignSelf: 'stretch',\n [`&.${c['scrollbarFiller--borderTop']}`]: {\n borderTop: '1px solid var(--DataGrid-rowBorderColor)'\n },\n [`&.${c['scrollbarFiller--borderBottom']}`]: {\n borderBottom: '1px solid var(--DataGrid-rowBorderColor)'\n },\n [`&.${c['scrollbarFiller--pinnedRight']}`]: {\n backgroundColor: vars.cell.background.pinned,\n position: 'sticky',\n right: 0\n }\n },\n [`& .${c.filler}`]: {\n flex: '1 0 auto'\n },\n [`& .${c['filler--borderBottom']}`]: {\n borderBottom: '1px solid var(--DataGrid-rowBorderColor)'\n },\n /* Hide grid rows, row filler, and vertical scrollbar. Used when skeleton/no columns overlay is visible */\n [`& .${c['main--hiddenContent']}`]: {\n [`& .${c.virtualScrollerContent}`]: {\n // We use visibility hidden so that the virtual scroller content retains its height.\n // Position fixed is used to remove the virtual scroller content from the flow.\n // https://github.com/mui/mui-x/issues/14061\n position: 'fixed',\n visibility: 'hidden'\n },\n [`& .${c['scrollbar--vertical']}, & .${c.pinnedRows}, & .${c.virtualScroller} > .${c.filler}`]: {\n display: 'none'\n }\n }\n };\n return gridStyle;\n});\nfunction setOpacity(color, opacity) {\n return `rgba(from ${color} r g b / ${opacity})`;\n}\nfunction removeOpacity(color) {\n return setOpacity(color, 1);\n}\nfunction mix(background, overlay, opacity) {\n return `color-mix(in srgb,${background}, ${overlay} calc(${opacity} * 100%))`;\n}","import { useSyncExternalStore } from 'use-sync-external-store/shim';\nconst emptySubscribe = () => () => {};\nconst clientSnapshot = () => false;\nconst serverSnapshot = () => true;\nexport const useIsSSR = () => useSyncExternalStore(emptySubscribe, clientSnapshot, serverSnapshot);","import * as React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const GridPanelContext = /*#__PURE__*/React.createContext(undefined);\nexport function useGridPanelContext() {\n const context = React.useContext(GridPanelContext);\n if (context === undefined) {\n throw new Error('MUI X: Missing context.');\n }\n return context;\n}\nexport function GridPanelContextProvider({\n children\n}) {\n const columnsPanelTriggerRef = React.useRef(null);\n const filterPanelTriggerRef = React.useRef(null);\n const aiAssistantPanelTriggerRef = React.useRef(null);\n const value = React.useMemo(() => ({\n columnsPanelTriggerRef,\n filterPanelTriggerRef,\n aiAssistantPanelTriggerRef\n }), []);\n return /*#__PURE__*/_jsx(GridPanelContext.Provider, {\n value: value,\n children: children\n });\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { gridColumnDefinitionsSelector } from \"../../hooks/features/columns/gridColumnsSelector.js\";\nimport { useGridSelector } from \"../../hooks/utils/useGridSelector.js\";\nimport { gridPreferencePanelStateSelector } from \"../../hooks/features/preferencesPanel/gridPreferencePanelSelector.js\";\nimport { GridPreferencePanelsValue } from \"../../hooks/features/preferencesPanel/gridPreferencePanelsValue.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridPanelContext } from \"./GridPanelContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function GridPreferencesPanel() {\n const apiRef = useGridApiContext();\n const columns = useGridSelector(apiRef, gridColumnDefinitionsSelector);\n const rootProps = useGridRootProps();\n const preferencePanelState = useGridSelector(apiRef, gridPreferencePanelStateSelector);\n const {\n columnsPanelTriggerRef,\n filterPanelTriggerRef,\n aiAssistantPanelTriggerRef\n } = useGridPanelContext();\n const panelContent = apiRef.current.unstable_applyPipeProcessors('preferencePanel', null, preferencePanelState.openedPanelValue ?? GridPreferencePanelsValue.filters);\n let target = null;\n switch (preferencePanelState.openedPanelValue) {\n case GridPreferencePanelsValue.filters:\n target = filterPanelTriggerRef.current;\n break;\n case GridPreferencePanelsValue.columns:\n target = columnsPanelTriggerRef.current;\n break;\n case GridPreferencePanelsValue.aiAssistant:\n target = aiAssistantPanelTriggerRef.current;\n break;\n default:\n }\n return /*#__PURE__*/_jsx(rootProps.slots.panel, _extends({\n id: preferencePanelState.panelId,\n open: columns.length > 0 && preferencePanelState.open,\n \"aria-labelledby\": preferencePanelState.labelId,\n target: target,\n onClose: () => apiRef.current.hidePreferences()\n }, rootProps.slotProps?.panel, {\n children: panelContent\n }));\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useGridRootProps } from \"../hooks/utils/useGridRootProps.js\";\nimport { GridPreferencesPanel } from \"./panel/GridPreferencesPanel.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function GridHeader() {\n const rootProps = useGridRootProps();\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(GridPreferencesPanel, {}), rootProps.showToolbar && /*#__PURE__*/_jsx(rootProps.slots.toolbar, _extends({}, rootProps.slotProps?.toolbar))]\n });\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\", \"children\", \"sidePanel\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_useForkRef as useForkRef, unstable_capitalize as capitalize, unstable_composeClasses as composeClasses } from '@mui/utils';\nimport { fastMemo } from '@mui/x-internals/fastMemo';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { GridRootStyles } from \"./GridRootStyles.js\";\nimport { useCSSVariablesContext } from \"../../utils/css/context.js\";\nimport { useGridSelector } from \"../../hooks/utils/useGridSelector.js\";\nimport { useGridPrivateApiContext } from \"../../hooks/utils/useGridPrivateApiContext.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { getDataGridUtilityClass, gridClasses } from \"../../constants/gridClasses.js\";\nimport { gridDensitySelector } from \"../../hooks/features/density/densitySelector.js\";\nimport { useIsSSR } from \"../../hooks/utils/useIsSSR.js\";\nimport { GridHeader } from \"../GridHeader.js\";\nimport { GridBody, GridFooterPlaceholder } from \"../base/index.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = (ownerState, density) => {\n const {\n autoHeight,\n classes,\n showCellVerticalBorder\n } = ownerState;\n const slots = {\n root: ['root', autoHeight && 'autoHeight', `root--density${capitalize(density)}`, ownerState.slots.toolbar === null && 'root--noToolbar', 'withBorderColor', showCellVerticalBorder && 'withVerticalBorder']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridRoot = forwardRef(function GridRoot(props, ref) {\n const rootProps = useGridRootProps();\n const {\n className,\n children,\n sidePanel\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridPrivateApiContext();\n const density = useGridSelector(apiRef, gridDensitySelector);\n const rootElementRef = apiRef.current.rootElementRef;\n const rootMountCallback = React.useCallback(node => {\n if (node === null) {\n return;\n }\n apiRef.current.publishEvent('rootMount', node);\n }, [apiRef]);\n const handleRef = useForkRef(rootElementRef, ref, rootMountCallback);\n const ownerState = rootProps;\n const classes = useUtilityClasses(ownerState, density);\n const cssVariables = useCSSVariablesContext();\n const isSSR = useIsSSR();\n if (isSSR) {\n return null;\n }\n return /*#__PURE__*/_jsxs(GridRootStyles, _extends({\n className: clsx(classes.root, className, cssVariables.className, sidePanel && gridClasses.withSidePanel),\n ownerState: ownerState\n }, other, {\n ref: handleRef,\n children: [/*#__PURE__*/_jsxs(\"div\", {\n className: gridClasses.mainContent,\n role: \"presentation\",\n children: [/*#__PURE__*/_jsx(GridHeader, {}), /*#__PURE__*/_jsx(GridBody, {\n children: children\n }), /*#__PURE__*/_jsx(GridFooterPlaceholder, {})]\n }), sidePanel, cssVariables.tag]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridRoot.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n sidePanel: PropTypes.node,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nconst MemoizedGridRoot = fastMemo(GridRoot);\nexport { MemoizedGridRoot as GridRoot };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from '@mui/system';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['footerContainer', 'withBorderColor']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridFooterContainerRoot = styled('div', {\n name: 'MuiDataGrid',\n slot: 'FooterContainer'\n})({\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n minHeight: 52,\n borderTop: '1px solid'\n});\nconst GridFooterContainer = forwardRef(function GridFooterContainer(props, ref) {\n const {\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const classes = useUtilityClasses(rootProps);\n return /*#__PURE__*/_jsx(GridFooterContainerRoot, _extends({\n className: clsx(classes.root, className),\n ownerState: rootProps\n }, other, {\n ref: ref\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridFooterContainer.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport { GridFooterContainer };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from '@mui/system';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { vars } from \"../../constants/cssVariables.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['overlay']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridOverlayRoot = styled('div', {\n name: 'MuiDataGrid',\n slot: 'Overlay'\n})({\n width: '100%',\n height: '100%',\n display: 'flex',\n gap: vars.spacing(1),\n flexDirection: 'column',\n alignSelf: 'center',\n alignItems: 'center',\n justifyContent: 'center',\n textAlign: 'center',\n textWrap: 'balance',\n backgroundColor: vars.colors.background.backdrop\n});\nconst GridOverlay = forwardRef(function GridOverlay(props, ref) {\n const {\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const classes = useUtilityClasses(rootProps);\n return /*#__PURE__*/_jsx(GridOverlayRoot, _extends({\n className: clsx(classes.root, className),\n ownerState: rootProps\n }, other, {\n ref: ref\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridOverlay.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport { GridOverlay };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport clsx from 'clsx';\n/**\n * Resolves the rendering logic for a component.\n * Handles three scenarios:\n * 1. A render function that receives props and state\n * 2. A React element\n * 3. A default element\n *\n * @ignore - internal hook.\n */\nexport function useGridComponentRenderer(defaultElement, render, props, state = {}) {\n if (typeof render === 'function') {\n return render(props, state);\n }\n if (render) {\n if (render.props.className) {\n props.className = clsx(render.props.className, props.className);\n }\n if (render.props.style || props.style) {\n props.style = _extends({}, props.style, render.props.style);\n }\n if (render.props.sx || props.sx) {\n props.sx = mergeSx(props.sx, render.props.sx);\n }\n return /*#__PURE__*/React.cloneElement(render, props);\n }\n return /*#__PURE__*/React.createElement(defaultElement, props);\n}\nfunction mergeSx(sx1, sx2) {\n if (!sx1 || !sx2) {\n return sx1 || sx2;\n }\n return (Array.isArray(sx1) ? sx1 : [sx1]).concat(Array.isArray(sx2) ? sx2 : [sx2]);\n}","import * as React from 'react';\nexport const ToolbarContext = /*#__PURE__*/React.createContext(undefined);\nexport function useToolbarContext() {\n const context = React.useContext(ToolbarContext);\n if (context === undefined) {\n throw new Error('MUI X: Missing context. Toolbar subcomponents must be placed within a <Toolbar /> component.');\n }\n return context;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"render\", \"className\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/system';\nimport composeClasses from '@mui/utils/composeClasses';\nimport clsx from 'clsx';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { vars } from \"../../constants/cssVariables.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridComponentRenderer } from \"../../hooks/utils/useGridComponentRenderer.js\";\nimport { ToolbarContext } from \"./ToolbarContext.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['toolbar']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst ToolbarRoot = styled('div', {\n name: 'MuiDataGrid',\n slot: 'Toolbar'\n})({\n flex: 0,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'end',\n gap: vars.spacing(0.25),\n padding: vars.spacing(0.75),\n minHeight: 52,\n boxSizing: 'border-box',\n borderBottom: `1px solid ${vars.colors.border.base}`\n});\n\n/**\n * The top level Toolbar component that provides context to child components.\n * It renders a styled `<div />` element.\n *\n * Demos:\n *\n * - [Toolbar](https://mui.com/x/react-data-grid/components/toolbar/)\n *\n * API:\n *\n * - [Toolbar API](https://mui.com/x/api/data-grid/toolbar/)\n */\nconst Toolbar = forwardRef(function Toolbar(props, ref) {\n const {\n render,\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const classes = useUtilityClasses(rootProps);\n const [focusableItemId, setFocusableItemId] = React.useState(null);\n const [items, setItems] = React.useState([]);\n const registerItem = React.useCallback((id, itemRef) => {\n setItems(prevItems => [...prevItems, {\n id,\n ref: itemRef\n }]);\n }, []);\n const unregisterItem = React.useCallback(id => {\n setItems(prevItems => prevItems.filter(i => i.id !== id));\n if (focusableItemId === id) {\n setFocusableItemId(null);\n }\n }, [focusableItemId]);\n const findEnabledItem = React.useCallback((startIndex, step, wrap = true) => {\n let index = startIndex;\n const itemCount = items.length;\n\n // Look for enabled items in the specified direction\n for (let i = 0; i < itemCount; i += 1) {\n index += step;\n\n // Handle wrapping around the ends\n if (index >= itemCount) {\n if (!wrap) {\n return -1;\n }\n index = 0;\n } else if (index < 0) {\n if (!wrap) {\n return -1;\n }\n index = itemCount - 1;\n }\n\n // Return if we found an enabled item\n if (!items[index].ref.current?.disabled && items[index].ref.current?.ariaDisabled !== 'true') {\n return index;\n }\n }\n\n // If we've checked all items and found none enabled\n return -1;\n }, [items]);\n const onItemKeyDown = React.useCallback(event => {\n if (!focusableItemId) {\n return;\n }\n const currentIndex = items.findIndex(item => item.id === focusableItemId);\n let newIndex = -1;\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n newIndex = findEnabledItem(currentIndex, 1);\n } else if (event.key === 'ArrowLeft') {\n event.preventDefault();\n newIndex = findEnabledItem(currentIndex, -1);\n } else if (event.key === 'Home') {\n event.preventDefault();\n newIndex = findEnabledItem(-1, 1, false);\n } else if (event.key === 'End') {\n event.preventDefault();\n newIndex = findEnabledItem(items.length, -1, false);\n }\n if (newIndex >= 0 && newIndex < items.length) {\n const item = items[newIndex];\n setFocusableItemId(item.id);\n item.ref.current?.focus();\n }\n }, [items, focusableItemId, findEnabledItem]);\n const onItemFocus = React.useCallback(id => {\n if (focusableItemId !== id) {\n setFocusableItemId(id);\n }\n }, [focusableItemId]);\n const onItemDisabled = React.useCallback(id => {\n const currentIndex = items.findIndex(item => item.id === id);\n const newIndex = findEnabledItem(currentIndex, 1);\n if (newIndex >= 0 && newIndex < items.length) {\n const item = items[newIndex];\n setFocusableItemId(item.id);\n item.ref.current?.focus();\n }\n }, [items, findEnabledItem]);\n const contextValue = React.useMemo(() => ({\n focusableItemId,\n registerItem,\n unregisterItem,\n onItemKeyDown,\n onItemFocus,\n onItemDisabled\n }), [focusableItemId, registerItem, unregisterItem, onItemKeyDown, onItemFocus, onItemDisabled]);\n const element = useGridComponentRenderer(ToolbarRoot, render, _extends({\n role: 'toolbar',\n 'aria-orientation': 'horizontal',\n 'aria-label': rootProps.label || undefined,\n className: clsx(classes.root, className)\n }, other, {\n ref\n }));\n React.useEffect(() => {\n if (items.length > 0) {\n setFocusableItemId(items[0].id);\n }\n }, [items]);\n return /*#__PURE__*/_jsx(ToolbarContext.Provider, {\n value: contextValue,\n children: element\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Toolbar.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * A function to customize rendering of the component.\n */\n render: PropTypes.oneOfType([PropTypes.element, PropTypes.func])\n} : void 0;\nexport { Toolbar };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"render\", \"onKeyDown\", \"onFocus\", \"disabled\", \"aria-disabled\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nimport useId from '@mui/utils/useId';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridComponentRenderer } from \"../../hooks/utils/useGridComponentRenderer.js\";\nimport { useToolbarContext } from \"./ToolbarContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * A button for performing actions from the toolbar.\n * It renders the `baseIconButton` slot.\n *\n * Demos:\n *\n * - [Toolbar](https://mui.com/x/react-data-grid/components/toolbar/)\n *\n * API:\n *\n * - [ToolbarButton API](https://mui.com/x/api/data-grid/toolbar-button/)\n */\nconst ToolbarButton = forwardRef(function ToolbarButton(props, ref) {\n const {\n render,\n onKeyDown,\n onFocus,\n disabled,\n 'aria-disabled': ariaDisabled\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const id = useId();\n const rootProps = useGridRootProps();\n const buttonRef = React.useRef(null);\n const handleRef = useForkRef(buttonRef, ref);\n const {\n focusableItemId,\n registerItem,\n unregisterItem,\n onItemKeyDown,\n onItemFocus,\n onItemDisabled\n } = useToolbarContext();\n const handleKeyDown = event => {\n onItemKeyDown(event);\n onKeyDown?.(event);\n };\n const handleFocus = event => {\n onItemFocus(id);\n onFocus?.(event);\n };\n React.useEffect(() => {\n registerItem(id, buttonRef);\n return () => unregisterItem(id);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n const previousDisabled = React.useRef(disabled);\n React.useEffect(() => {\n if (previousDisabled.current !== disabled && disabled === true) {\n onItemDisabled(id, disabled);\n }\n previousDisabled.current = disabled;\n }, [disabled, id, onItemDisabled]);\n const previousAriaDisabled = React.useRef(ariaDisabled);\n React.useEffect(() => {\n if (previousAriaDisabled.current !== ariaDisabled && ariaDisabled === true) {\n onItemDisabled(id, true);\n }\n previousAriaDisabled.current = ariaDisabled;\n }, [ariaDisabled, id, onItemDisabled]);\n const element = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends({}, rootProps.slotProps?.baseIconButton, {\n tabIndex: focusableItemId === id ? 0 : -1\n }, other, {\n disabled,\n 'aria-disabled': ariaDisabled,\n onKeyDown: handleKeyDown,\n onFocus: handleFocus,\n ref: handleRef\n }));\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: element\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? ToolbarButton.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n className: PropTypes.string,\n color: PropTypes.oneOf(['default', 'inherit', 'primary']),\n disabled: PropTypes.bool,\n edge: PropTypes.oneOf(['end', 'start', false]),\n id: PropTypes.string,\n label: PropTypes.string,\n /**\n * A function to customize rendering of the component.\n */\n render: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),\n role: PropTypes.string,\n size: PropTypes.oneOf(['large', 'medium', 'small']),\n style: PropTypes.object,\n tabIndex: PropTypes.number,\n title: PropTypes.string,\n touchRippleRef: PropTypes.any\n} : void 0;\nexport { ToolbarButton };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n open\n } = ownerState;\n const slots = {\n root: ['menuIcon', open && 'menuOpen'],\n button: ['menuIconButton']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nexport const ColumnHeaderMenuIcon = /*#__PURE__*/React.memo(props => {\n const {\n colDef,\n open,\n columnMenuId,\n columnMenuButtonId,\n iconButtonRef\n } = props;\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const ownerState = _extends({}, props, {\n classes: rootProps.classes\n });\n const classes = useUtilityClasses(ownerState);\n const handleMenuIconClick = React.useCallback(event => {\n event.preventDefault();\n event.stopPropagation();\n apiRef.current.toggleColumnMenu(colDef.field);\n }, [apiRef, colDef.field]);\n const columnName = colDef.headerName ?? colDef.field;\n return /*#__PURE__*/_jsx(\"div\", {\n className: classes.root,\n children: /*#__PURE__*/_jsx(rootProps.slots.baseTooltip, _extends({\n title: apiRef.current.getLocaleText('columnMenuLabel'),\n enterDelay: 1000\n }, rootProps.slotProps?.baseTooltip, {\n children: /*#__PURE__*/_jsx(rootProps.slots.baseIconButton, _extends({\n ref: iconButtonRef,\n tabIndex: -1,\n className: classes.button,\n \"aria-label\": apiRef.current.getLocaleText('columnMenuAriaLabel')(columnName),\n size: \"small\",\n onClick: handleMenuIconClick,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": open,\n \"aria-controls\": open ? columnMenuId : undefined,\n id: columnMenuButtonId\n }, rootProps.slotProps?.baseIconButton, {\n children: /*#__PURE__*/_jsx(rootProps.slots.columnMenuIcon, {\n fontSize: \"inherit\"\n })\n }))\n }))\n });\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport HTMLElementType from '@mui/utils/HTMLElementType';\nimport { useGridApiContext } from \"../../../hooks/utils/useGridApiContext.js\";\nimport { GridMenu } from \"../GridMenu.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GridColumnHeaderMenu({\n columnMenuId,\n columnMenuButtonId,\n ContentComponent,\n contentComponentProps,\n field,\n open,\n target,\n onExited\n}) {\n const apiRef = useGridApiContext();\n const colDef = apiRef.current.getColumn(field);\n const hideMenu = useEventCallback(event => {\n if (event) {\n // Prevent triggering the sorting\n event.stopPropagation();\n if (target?.contains(event.target)) {\n return;\n }\n }\n apiRef.current.hideColumnMenu();\n });\n if (!target || !colDef) {\n return null;\n }\n return /*#__PURE__*/_jsx(GridMenu, {\n position: `bottom-${colDef.align === 'right' ? 'start' : 'end'}`,\n open: open,\n target: target,\n onClose: hideMenu,\n onExited: onExited,\n children: /*#__PURE__*/_jsx(ContentComponent, _extends({\n colDef: colDef,\n hideMenu: hideMenu,\n open: open,\n id: columnMenuId,\n labelledby: columnMenuButtonId\n }, contentComponentProps))\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GridColumnHeaderMenu.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n columnMenuButtonId: PropTypes.string,\n columnMenuId: PropTypes.string,\n ContentComponent: PropTypes.elementType.isRequired,\n contentComponentProps: PropTypes.any,\n field: PropTypes.string.isRequired,\n onExited: PropTypes.func,\n open: PropTypes.bool.isRequired,\n target: HTMLElementType\n} : void 0;\nexport { GridColumnHeaderMenu };","import { gridClasses } from \"../constants/gridClasses.js\";\nexport function isOverflown(element) {\n return element.scrollHeight > element.clientHeight || element.scrollWidth > element.clientWidth;\n}\nexport function findParentElementFromClassName(elem, className) {\n return elem.closest(`.${className}`);\n}\n\n// TODO, eventually replaces this function with CSS.escape, once available in jsdom, either added manually or built in\n// https://github.com/jsdom/jsdom/issues/1550#issuecomment-236734471\nexport function escapeOperandAttributeSelector(operand) {\n return operand.replace(/[\"\\\\]/g, '\\\\$&');\n}\nexport function getGridColumnHeaderElement(root, field) {\n return root.querySelector(`[role=\"columnheader\"][data-field=\"${escapeOperandAttributeSelector(field)}\"]`);\n}\nfunction getGridRowElementSelector(id) {\n return `.${gridClasses.row}[data-id=\"${escapeOperandAttributeSelector(String(id))}\"]`;\n}\nexport function getGridRowElement(root, id) {\n return root.querySelector(getGridRowElementSelector(id));\n}\nexport function getGridCellElement(root, {\n id,\n field\n}) {\n const rowSelector = getGridRowElementSelector(id);\n const cellSelector = `.${gridClasses.cell}[data-field=\"${escapeOperandAttributeSelector(field)}\"]`;\n const selector = `${rowSelector} ${cellSelector}`;\n return root.querySelector(selector);\n}\n\n// https://www.abeautifulsite.net/posts/finding-the-active-element-in-a-shadow-root/\nexport const getActiveElement = (root = document) => {\n const activeEl = root.activeElement;\n if (!activeEl) {\n return null;\n }\n if (activeEl.shadowRoot) {\n return getActiveElement(activeEl.shadowRoot);\n }\n return activeEl;\n};\nexport function isEventTargetInPortal(event) {\n if (\n // The target is not an element when triggered by a Select inside the cell\n // See https://github.com/mui/material-ui/issues/10534\n event.target.nodeType === 1 && !event.currentTarget.contains(event.target)) {\n return true;\n }\n return false;\n}\nexport function getFieldFromHeaderElem(colCellEl) {\n return colCellEl.getAttribute('data-field');\n}\nexport function findHeaderElementFromField(elem, field) {\n return elem.querySelector(`[data-field=\"${escapeOperandAttributeSelector(field)}\"]`);\n}\nexport function getFieldsFromGroupHeaderElem(colCellEl) {\n return colCellEl.getAttribute('data-fields').slice(2, -2).split('-|-');\n}\nexport function findGroupHeaderElementsFromField(elem, field) {\n return Array.from(elem.querySelectorAll(`[data-fields*=\"|-${escapeOperandAttributeSelector(field)}-|\"]`) ?? []);\n}\nexport function findGridCellElementsFromCol(col, api) {\n const root = findParentElementFromClassName(col, gridClasses.root);\n if (!root) {\n throw new Error('MUI X: The root element is not found.');\n }\n const ariaColIndex = col.getAttribute('aria-colindex');\n if (!ariaColIndex) {\n return [];\n }\n const colIndex = Number(ariaColIndex) - 1;\n const cells = [];\n if (!api.virtualScrollerRef?.current) {\n return [];\n }\n queryRows(api).forEach(rowElement => {\n const rowId = rowElement.getAttribute('data-id');\n if (!rowId) {\n return;\n }\n let columnIndex = colIndex;\n const cellColSpanInfo = api.unstable_getCellColSpanInfo(rowId, colIndex);\n if (cellColSpanInfo && cellColSpanInfo.spannedByColSpan) {\n columnIndex = cellColSpanInfo.leftVisibleCellIndex;\n }\n const cell = rowElement.querySelector(`[data-colindex=\"${columnIndex}\"]`);\n if (cell) {\n cells.push(cell);\n }\n });\n return cells;\n}\nexport function findGridElement(api, klass) {\n return api.rootElementRef.current.querySelector(`.${gridClasses[klass]}`);\n}\nconst findPinnedCells = ({\n api,\n colIndex,\n position,\n filterFn\n}) => {\n if (colIndex === null) {\n return [];\n }\n const cells = [];\n queryRows(api).forEach(rowElement => {\n const rowId = rowElement.getAttribute('data-id');\n if (!rowId) {\n return;\n }\n rowElement.querySelectorAll(`.${gridClasses[position === 'left' ? 'cell--pinnedLeft' : 'cell--pinnedRight']}`).forEach(cell => {\n const currentColIndex = parseCellColIndex(cell);\n if (currentColIndex !== null && filterFn(currentColIndex)) {\n cells.push(cell);\n }\n });\n });\n return cells;\n};\nexport function findLeftPinnedCellsAfterCol(api, col, isRtl) {\n const colIndex = parseCellColIndex(col);\n return findPinnedCells({\n api,\n colIndex,\n position: isRtl ? 'right' : 'left',\n filterFn: index => isRtl ? index < colIndex : index > colIndex\n });\n}\nexport function findRightPinnedCellsBeforeCol(api, col, isRtl) {\n const colIndex = parseCellColIndex(col);\n return findPinnedCells({\n api,\n colIndex,\n position: isRtl ? 'left' : 'right',\n filterFn: index => isRtl ? index > colIndex : index < colIndex\n });\n}\nconst findPinnedHeaders = ({\n api,\n colIndex,\n position,\n filterFn\n}) => {\n if (!api.columnHeadersContainerRef?.current) {\n return [];\n }\n if (colIndex === null) {\n return [];\n }\n const elements = [];\n api.columnHeadersContainerRef.current.querySelectorAll(`.${gridClasses[position === 'left' ? 'columnHeader--pinnedLeft' : 'columnHeader--pinnedRight']}`).forEach(element => {\n const currentColIndex = parseCellColIndex(element);\n if (currentColIndex !== null && filterFn(currentColIndex, element)) {\n elements.push(element);\n }\n });\n return elements;\n};\nexport function findLeftPinnedHeadersAfterCol(api, col, isRtl) {\n const colIndex = parseCellColIndex(col);\n return findPinnedHeaders({\n api,\n position: isRtl ? 'right' : 'left',\n colIndex,\n filterFn: index => isRtl ? index < colIndex : index > colIndex\n });\n}\nexport function findRightPinnedHeadersBeforeCol(api, col, isRtl) {\n const colIndex = parseCellColIndex(col);\n return findPinnedHeaders({\n api,\n position: isRtl ? 'left' : 'right',\n colIndex,\n filterFn: (index, element) => {\n if (element.classList.contains(gridClasses['columnHeader--last'])) {\n return false;\n }\n return isRtl ? index > colIndex : index < colIndex;\n }\n });\n}\nexport function findGridHeader(api, field) {\n const headers = api.columnHeadersContainerRef.current;\n return headers.querySelector(`:scope > div > [data-field=\"${escapeOperandAttributeSelector(field)}\"][role=\"columnheader\"]`);\n}\nexport function findGridCells(api, field) {\n const container = api.virtualScrollerRef.current;\n return Array.from(container.querySelectorAll(`:scope > div > div > div > [data-field=\"${escapeOperandAttributeSelector(field)}\"][role=\"gridcell\"]`));\n}\nfunction queryRows(api) {\n return api.virtualScrollerRef.current.querySelectorAll(\n // Use > to ignore rows from nested Data Grids (for example in detail panel)\n `:scope > div > div > .${gridClasses.row}`);\n}\nfunction parseCellColIndex(col) {\n const ariaColIndex = col.getAttribute('aria-colindex');\n if (!ariaColIndex) {\n return null;\n }\n return Number(ariaColIndex) - 1;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\", \"aria-label\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from '@mui/system';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { isOverflown } from \"../../utils/domUtils.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['columnHeaderTitle']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridColumnHeaderTitleRoot = styled('div', {\n name: 'MuiDataGrid',\n slot: 'ColumnHeaderTitle'\n})({\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n fontWeight: 'var(--unstable_DataGrid-headWeight)',\n lineHeight: 'normal'\n});\nconst ColumnHeaderInnerTitle = forwardRef(function ColumnHeaderInnerTitle(props, ref) {\n // Tooltip adds aria-label to the props, which is not needed since the children prop is a string\n // See https://github.com/mui/mui-x/pull/14482\n const {\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const classes = useUtilityClasses(rootProps);\n return /*#__PURE__*/_jsx(GridColumnHeaderTitleRoot, _extends({\n className: clsx(classes.root, className),\n ownerState: rootProps\n }, other, {\n ref: ref\n }));\n});\n// No React.memo here as if we display the sort icon, we need to recalculate the isOver\nfunction GridColumnHeaderTitle(props) {\n const {\n label,\n description\n } = props;\n const rootProps = useGridRootProps();\n const titleRef = React.useRef(null);\n const [tooltip, setTooltip] = React.useState('');\n const handleMouseOver = React.useCallback(() => {\n if (!description && titleRef?.current) {\n const isOver = isOverflown(titleRef.current);\n if (isOver) {\n setTooltip(label);\n } else {\n setTooltip('');\n }\n }\n }, [description, label]);\n return /*#__PURE__*/_jsx(rootProps.slots.baseTooltip, _extends({\n title: description || tooltip\n }, rootProps.slotProps?.baseTooltip, {\n children: /*#__PURE__*/_jsx(ColumnHeaderInnerTitle, {\n onMouseOver: handleMouseOver,\n ref: titleRef,\n children: label\n })\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridColumnHeaderTitle.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n columnWidth: PropTypes.number.isRequired,\n description: PropTypes.node,\n label: PropTypes.string.isRequired\n} : void 0;\nexport { GridColumnHeaderTitle };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"resizable\", \"resizing\", \"height\", \"side\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_composeClasses as composeClasses, unstable_capitalize as capitalize } from '@mui/utils';\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar GridColumnHeaderSeparatorSides = /*#__PURE__*/function (GridColumnHeaderSeparatorSides) {\n GridColumnHeaderSeparatorSides[\"Left\"] = \"left\";\n GridColumnHeaderSeparatorSides[\"Right\"] = \"right\";\n return GridColumnHeaderSeparatorSides;\n}(GridColumnHeaderSeparatorSides || {});\nconst useUtilityClasses = ownerState => {\n const {\n resizable,\n resizing,\n classes,\n side\n } = ownerState;\n const slots = {\n root: ['columnSeparator', resizable && 'columnSeparator--resizable', resizing && 'columnSeparator--resizing', side && `columnSeparator--side${capitalize(side)}`],\n icon: ['iconSeparator']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nfunction GridColumnHeaderSeparatorRaw(props) {\n const {\n height,\n side = GridColumnHeaderSeparatorSides.Right\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const ownerState = _extends({}, props, {\n side,\n classes: rootProps.classes\n });\n const classes = useUtilityClasses(ownerState);\n const stopClick = React.useCallback(event => {\n event.preventDefault();\n event.stopPropagation();\n }, []);\n return (\n /*#__PURE__*/\n // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions\n _jsx(\"div\", _extends({\n className: classes.root,\n style: {\n minHeight: height\n }\n }, other, {\n onClick: stopClick,\n children: /*#__PURE__*/_jsx(rootProps.slots.columnResizeIcon, {\n className: classes.icon\n })\n }))\n );\n}\nconst GridColumnHeaderSeparator = /*#__PURE__*/React.memo(GridColumnHeaderSeparatorRaw);\nprocess.env.NODE_ENV !== \"production\" ? GridColumnHeaderSeparatorRaw.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n height: PropTypes.number.isRequired,\n resizable: PropTypes.bool.isRequired,\n resizing: PropTypes.bool.isRequired,\n side: PropTypes.oneOf(['left', 'right'])\n} : void 0;\nexport { GridColumnHeaderSeparator, GridColumnHeaderSeparatorSides };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"classes\", \"columnMenuOpen\", \"colIndex\", \"height\", \"isResizing\", \"sortDirection\", \"hasFocus\", \"tabIndex\", \"separatorSide\", \"isDraggable\", \"headerComponent\", \"description\", \"elementId\", \"width\", \"columnMenuIconButton\", \"columnMenu\", \"columnTitleIconButtons\", \"headerClassName\", \"label\", \"resizable\", \"draggableContainerProps\", \"columnHeaderSeparatorProps\", \"style\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridPrivateApiContext } from \"../../hooks/utils/useGridPrivateApiContext.js\";\nimport { GridColumnHeaderTitle } from \"./GridColumnHeaderTitle.js\";\nimport { GridColumnHeaderSeparator } from \"./GridColumnHeaderSeparator.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst GridGenericColumnHeaderItem = forwardRef(function GridGenericColumnHeaderItem(props, ref) {\n const {\n classes,\n colIndex,\n height,\n isResizing,\n sortDirection,\n hasFocus,\n tabIndex,\n separatorSide,\n isDraggable,\n headerComponent,\n description,\n width,\n columnMenuIconButton = null,\n columnMenu = null,\n columnTitleIconButtons = null,\n headerClassName,\n label,\n resizable,\n draggableContainerProps,\n columnHeaderSeparatorProps,\n style\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridPrivateApiContext();\n const rootProps = useGridRootProps();\n const headerCellRef = React.useRef(null);\n const handleRef = useForkRef(headerCellRef, ref);\n let ariaSort = 'none';\n if (sortDirection != null) {\n ariaSort = sortDirection === 'asc' ? 'ascending' : 'descending';\n }\n React.useLayoutEffect(() => {\n const columnMenuState = apiRef.current.state.columnMenu;\n if (hasFocus && !columnMenuState.open) {\n const focusableElement = headerCellRef.current.querySelector('[tabindex=\"0\"]');\n const elementToFocus = focusableElement || headerCellRef.current;\n elementToFocus?.focus();\n if (apiRef.current.columnHeadersContainerRef?.current) {\n apiRef.current.columnHeadersContainerRef.current.scrollLeft = 0;\n }\n }\n }, [apiRef, hasFocus]);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n className: clsx(classes.root, headerClassName),\n style: _extends({}, style, {\n width\n }),\n role: \"columnheader\",\n tabIndex: tabIndex,\n \"aria-colindex\": colIndex + 1,\n \"aria-sort\": ariaSort\n }, other, {\n ref: handleRef,\n children: [/*#__PURE__*/_jsxs(\"div\", _extends({\n className: classes.draggableContainer,\n draggable: isDraggable,\n role: \"presentation\"\n }, draggableContainerProps, {\n children: [/*#__PURE__*/_jsxs(\"div\", {\n className: classes.titleContainer,\n role: \"presentation\",\n children: [/*#__PURE__*/_jsx(\"div\", {\n className: classes.titleContainerContent,\n children: headerComponent !== undefined ? headerComponent : /*#__PURE__*/_jsx(GridColumnHeaderTitle, {\n label: label,\n description: description,\n columnWidth: width\n })\n }), columnTitleIconButtons]\n }), columnMenuIconButton]\n })), /*#__PURE__*/_jsx(GridColumnHeaderSeparator, _extends({\n resizable: !rootProps.disableColumnResize && !!resizable,\n resizing: isResizing,\n height: height,\n side: separatorSide\n }, columnHeaderSeparatorProps)), columnMenu]\n }));\n});\nexport { GridGenericColumnHeaderItem };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses, unstable_useId as useId } from '@mui/utils';\nimport { fastMemo } from '@mui/x-internals/fastMemo';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { useGridPrivateApiContext } from \"../../hooks/utils/useGridPrivateApiContext.js\";\nimport { ColumnHeaderMenuIcon } from \"./ColumnHeaderMenuIcon.js\";\nimport { GridColumnHeaderMenu } from \"../menu/columnMenu/GridColumnHeaderMenu.js\";\nimport { gridClasses, getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { GridGenericColumnHeaderItem } from \"./GridGenericColumnHeaderItem.js\";\nimport { isEventTargetInPortal } from \"../../utils/domUtils.js\";\nimport { PinnedColumnPosition } from \"../../internals/constants.js\";\nimport { attachPinnedStyle } from \"../../internals/utils/index.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n colDef,\n classes,\n isDragging,\n sortDirection,\n showRightBorder,\n showLeftBorder,\n filterItemsCounter,\n pinnedPosition,\n isLastUnpinned,\n isSiblingFocused\n } = ownerState;\n const isColumnSorted = sortDirection != null;\n const isColumnFiltered = filterItemsCounter != null && filterItemsCounter > 0;\n // todo refactor to a prop on col isNumeric or ?? ie: coltype===price wont work\n const isColumnNumeric = colDef.type === 'number';\n const slots = {\n root: ['columnHeader', colDef.headerAlign === 'left' && 'columnHeader--alignLeft', colDef.headerAlign === 'center' && 'columnHeader--alignCenter', colDef.headerAlign === 'right' && 'columnHeader--alignRight', colDef.sortable && 'columnHeader--sortable', isDragging && 'columnHeader--moving', isColumnSorted && 'columnHeader--sorted', isColumnFiltered && 'columnHeader--filtered', isColumnNumeric && 'columnHeader--numeric', 'withBorderColor', showRightBorder && 'columnHeader--withRightBorder', showLeftBorder && 'columnHeader--withLeftBorder', pinnedPosition === PinnedColumnPosition.LEFT && 'columnHeader--pinnedLeft', pinnedPosition === PinnedColumnPosition.RIGHT && 'columnHeader--pinnedRight',\n // TODO: Remove classes below and restore `:has` selectors when they are supported in jsdom\n // See https://github.com/mui/mui-x/pull/14559\n isLastUnpinned && 'columnHeader--lastUnpinned', isSiblingFocused && 'columnHeader--siblingFocused'],\n draggableContainer: ['columnHeaderDraggableContainer'],\n titleContainer: ['columnHeaderTitleContainer'],\n titleContainerContent: ['columnHeaderTitleContainerContent']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nfunction GridColumnHeaderItem(props) {\n const {\n colDef,\n columnMenuOpen,\n colIndex,\n headerHeight,\n isResizing,\n isLast,\n sortDirection,\n sortIndex,\n filterItemsCounter,\n hasFocus,\n tabIndex,\n disableReorder,\n separatorSide,\n showLeftBorder,\n showRightBorder,\n pinnedPosition,\n pinnedOffset\n } = props;\n const apiRef = useGridPrivateApiContext();\n const rootProps = useGridRootProps();\n const isRtl = useRtl();\n const headerCellRef = React.useRef(null);\n const columnMenuId = useId();\n const columnMenuButtonId = useId();\n const iconButtonRef = React.useRef(null);\n const [showColumnMenuIcon, setShowColumnMenuIcon] = React.useState(columnMenuOpen);\n const isDraggable = React.useMemo(() => !rootProps.disableColumnReorder && !disableReorder && !colDef.disableReorder, [rootProps.disableColumnReorder, disableReorder, colDef.disableReorder]);\n let headerComponent;\n if (colDef.renderHeader) {\n headerComponent = colDef.renderHeader(apiRef.current.getColumnHeaderParams(colDef.field));\n }\n const ownerState = _extends({}, props, {\n classes: rootProps.classes,\n showRightBorder,\n showLeftBorder\n });\n const classes = useUtilityClasses(ownerState);\n const publish = React.useCallback(eventName => event => {\n // Ignore portal\n // See https://github.com/mui/mui-x/issues/1721\n if (isEventTargetInPortal(event)) {\n return;\n }\n apiRef.current.publishEvent(eventName, apiRef.current.getColumnHeaderParams(colDef.field), event);\n }, [apiRef, colDef.field]);\n const mouseEventsHandlers = React.useMemo(() => ({\n onClick: publish('columnHeaderClick'),\n onContextMenu: publish('columnHeaderContextMenu'),\n onDoubleClick: publish('columnHeaderDoubleClick'),\n onMouseOver: publish('columnHeaderOver'),\n // TODO remove as it's not used\n onMouseOut: publish('columnHeaderOut'),\n // TODO remove as it's not used\n onMouseEnter: publish('columnHeaderEnter'),\n // TODO remove as it's not used\n onMouseLeave: publish('columnHeaderLeave'),\n // TODO remove as it's not used\n onKeyDown: publish('columnHeaderKeyDown'),\n onFocus: publish('columnHeaderFocus'),\n onBlur: publish('columnHeaderBlur')\n }), [publish]);\n const draggableEventHandlers = React.useMemo(() => isDraggable ? {\n onDragStart: publish('columnHeaderDragStart'),\n onDragEnter: publish('columnHeaderDragEnter'),\n onDragOver: publish('columnHeaderDragOver'),\n onDragEnd: publish('columnHeaderDragEnd')\n } : {}, [isDraggable, publish]);\n const columnHeaderSeparatorProps = React.useMemo(() => ({\n onMouseDown: publish('columnSeparatorMouseDown'),\n onDoubleClick: publish('columnSeparatorDoubleClick')\n }), [publish]);\n React.useEffect(() => {\n if (!showColumnMenuIcon) {\n setShowColumnMenuIcon(columnMenuOpen);\n }\n }, [showColumnMenuIcon, columnMenuOpen]);\n const handleExited = React.useCallback(() => {\n setShowColumnMenuIcon(false);\n }, []);\n const columnMenuIconButton = !rootProps.disableColumnMenu && !colDef.disableColumnMenu && /*#__PURE__*/_jsx(ColumnHeaderMenuIcon, {\n colDef: colDef,\n columnMenuId: columnMenuId,\n columnMenuButtonId: columnMenuButtonId,\n open: showColumnMenuIcon,\n iconButtonRef: iconButtonRef\n });\n const columnMenu = /*#__PURE__*/_jsx(GridColumnHeaderMenu, {\n columnMenuId: columnMenuId,\n columnMenuButtonId: columnMenuButtonId,\n field: colDef.field,\n open: columnMenuOpen,\n target: iconButtonRef.current,\n ContentComponent: rootProps.slots.columnMenu,\n contentComponentProps: rootProps.slotProps?.columnMenu,\n onExited: handleExited\n });\n const sortingOrder = colDef.sortingOrder ?? rootProps.sortingOrder;\n const showSortIcon = (colDef.sortable || sortDirection != null) && !colDef.hideSortIcons && !rootProps.disableColumnSorting;\n const columnTitleIconButtons = /*#__PURE__*/_jsxs(React.Fragment, {\n children: [!rootProps.disableColumnFilter && /*#__PURE__*/_jsx(rootProps.slots.columnHeaderFilterIconButton, _extends({\n field: colDef.field,\n counter: filterItemsCounter\n }, rootProps.slotProps?.columnHeaderFilterIconButton)), showSortIcon && /*#__PURE__*/_jsx(rootProps.slots.columnHeaderSortIcon, _extends({\n field: colDef.field,\n direction: sortDirection,\n index: sortIndex,\n sortingOrder: sortingOrder,\n disabled: !colDef.sortable\n }, rootProps.slotProps?.columnHeaderSortIcon))]\n });\n React.useLayoutEffect(() => {\n const columnMenuState = apiRef.current.state.columnMenu;\n if (hasFocus && !columnMenuState.open) {\n const focusableElement = headerCellRef.current.querySelector('[tabindex=\"0\"]');\n const elementToFocus = focusableElement || headerCellRef.current;\n elementToFocus?.focus();\n if (apiRef.current.columnHeadersContainerRef?.current) {\n apiRef.current.columnHeadersContainerRef.current.scrollLeft = 0;\n }\n }\n }, [apiRef, hasFocus]);\n const headerClassName = typeof colDef.headerClassName === 'function' ? colDef.headerClassName({\n field: colDef.field,\n colDef\n }) : colDef.headerClassName;\n const label = colDef.headerName ?? colDef.field;\n const style = React.useMemo(() => attachPinnedStyle(_extends({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);\n return /*#__PURE__*/_jsx(GridGenericColumnHeaderItem, _extends({\n ref: headerCellRef,\n classes: classes,\n columnMenuOpen: columnMenuOpen,\n colIndex: colIndex,\n height: headerHeight,\n isResizing: isResizing,\n sortDirection: sortDirection,\n hasFocus: hasFocus,\n tabIndex: tabIndex,\n separatorSide: separatorSide,\n isDraggable: isDraggable,\n headerComponent: headerComponent,\n description: colDef.description,\n elementId: colDef.field,\n width: colDef.computedWidth,\n columnMenuIconButton: columnMenuIconButton,\n columnTitleIconButtons: columnTitleIconButtons,\n headerClassName: clsx(headerClassName, isLast && gridClasses['columnHeader--last']),\n label: label,\n resizable: !rootProps.disableColumnResize && !!colDef.resizable,\n \"data-field\": colDef.field,\n columnMenu: columnMenu,\n draggableContainerProps: draggableEventHandlers,\n columnHeaderSeparatorProps: columnHeaderSeparatorProps,\n style: style\n }, mouseEventsHandlers));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridColumnHeaderItem.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n colDef: PropTypes.object.isRequired,\n colIndex: PropTypes.number.isRequired,\n columnMenuOpen: PropTypes.bool.isRequired,\n disableReorder: PropTypes.bool,\n filterItemsCounter: PropTypes.number,\n hasFocus: PropTypes.bool,\n headerHeight: PropTypes.number.isRequired,\n isDragging: PropTypes.bool.isRequired,\n isLast: PropTypes.bool.isRequired,\n isLastUnpinned: PropTypes.bool.isRequired,\n isResizing: PropTypes.bool.isRequired,\n isSiblingFocused: PropTypes.bool.isRequired,\n pinnedOffset: PropTypes.number,\n pinnedPosition: PropTypes.oneOf([0, 1, 2, 3]),\n separatorSide: PropTypes.oneOf(['left', 'right']),\n showLeftBorder: PropTypes.bool.isRequired,\n showRightBorder: PropTypes.bool.isRequired,\n sortDirection: PropTypes.oneOf(['asc', 'desc']),\n sortIndex: PropTypes.number,\n style: PropTypes.object,\n tabIndex: PropTypes.oneOf([-1, 0]).isRequired\n} : void 0;\nconst Memoized = fastMemo(GridColumnHeaderItem);\nexport { Memoized as GridColumnHeaderItem };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from '@mui/system';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['iconButtonContainer']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridIconButtonContainerRoot = styled('div', {\n name: 'MuiDataGrid',\n slot: 'IconButtonContainer'\n})(() => ({\n display: 'flex',\n visibility: 'hidden',\n width: 0\n}));\nexport const GridIconButtonContainer = forwardRef(function GridIconButtonContainer(props, ref) {\n const {\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const classes = useUtilityClasses(rootProps);\n return /*#__PURE__*/_jsx(GridIconButtonContainerRoot, _extends({\n className: clsx(classes.root, className),\n ownerState: rootProps\n }, other, {\n ref: ref\n }));\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"sortingOrder\"];\nimport * as React from 'react';\nimport { useGridRootProps } from \"../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const GridColumnUnsortedIcon = /*#__PURE__*/React.memo(function GridColumnHeaderSortIcon(props) {\n const {\n sortingOrder\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const [nextSortDirection] = sortingOrder;\n const Icon = nextSortDirection === 'asc' ? rootProps.slots.columnSortedAscendingIcon : rootProps.slots.columnSortedDescendingIcon;\n return Icon ? /*#__PURE__*/_jsx(Icon, _extends({}, other)) : null;\n});","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"direction\", \"index\", \"sortingOrder\", \"disabled\", \"className\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from '@mui/system';\nimport clsx from 'clsx';\nimport { useGridApiContext } from \"../hooks/utils/useGridApiContext.js\";\nimport { getDataGridUtilityClass } from \"../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../hooks/utils/useGridRootProps.js\";\nimport { vars } from \"../constants/cssVariables.js\";\nimport { GridColumnUnsortedIcon } from \"./GridColumnUnsortedIcon.js\";\nimport { NotRendered } from \"../utils/assert.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['sortButton'],\n icon: ['sortIcon']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridColumnSortButtonRoot = styled(NotRendered, {\n name: 'MuiDataGrid',\n slot: 'SortButton'\n})({\n transition: vars.transition(['opacity'], {\n duration: vars.transitions.duration.short,\n easing: vars.transitions.easing.easeInOut\n })\n});\nfunction getIcon(icons, direction, className, sortingOrder) {\n let Icon;\n const iconProps = {};\n if (direction === 'asc') {\n Icon = icons.columnSortedAscendingIcon;\n } else if (direction === 'desc') {\n Icon = icons.columnSortedDescendingIcon;\n } else {\n Icon = GridColumnUnsortedIcon;\n iconProps.sortingOrder = sortingOrder;\n }\n return Icon ? /*#__PURE__*/_jsx(Icon, _extends({\n fontSize: \"small\",\n className: className\n }, iconProps)) : null;\n}\nfunction GridColumnSortButton(props) {\n const {\n direction,\n index,\n sortingOrder,\n disabled,\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const ownerState = _extends({}, props, {\n classes: rootProps.classes\n });\n const classes = useUtilityClasses(ownerState);\n const iconElement = getIcon(rootProps.slots, direction, classes.icon, sortingOrder);\n if (!iconElement) {\n return null;\n }\n const iconButton = /*#__PURE__*/_jsx(GridColumnSortButtonRoot, _extends({\n as: rootProps.slots.baseIconButton,\n ownerState: ownerState,\n \"aria-label\": apiRef.current.getLocaleText('columnHeaderSortIconLabel'),\n title: apiRef.current.getLocaleText('columnHeaderSortIconLabel'),\n size: \"small\",\n disabled: disabled,\n className: clsx(classes.root, className)\n }, rootProps.slotProps?.baseIconButton, other, {\n children: iconElement\n }));\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [index != null && /*#__PURE__*/_jsx(rootProps.slots.baseBadge, {\n badgeContent: index,\n color: \"default\",\n overlap: \"circular\",\n children: iconButton\n }), index == null && iconButton]\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GridColumnSortButton.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n direction: PropTypes.oneOf(['asc', 'desc']),\n disabled: PropTypes.bool,\n field: PropTypes.string.isRequired,\n index: PropTypes.number,\n onClick: PropTypes.func,\n sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])).isRequired\n} : void 0;\nexport { GridColumnSortButton };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GridIconButtonContainer } from \"./GridIconButtonContainer.js\";\nimport { GridColumnSortButton } from \"../GridColumnSortButton.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GridColumnHeaderSortIconRaw(props) {\n return /*#__PURE__*/_jsx(GridIconButtonContainer, {\n children: /*#__PURE__*/_jsx(GridColumnSortButton, _extends({}, props, {\n tabIndex: -1\n }))\n });\n}\nconst GridColumnHeaderSortIcon = /*#__PURE__*/React.memo(GridColumnHeaderSortIconRaw);\nprocess.env.NODE_ENV !== \"production\" ? GridColumnHeaderSortIconRaw.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n className: PropTypes.string,\n color: PropTypes.oneOf(['default', 'inherit', 'primary']),\n direction: PropTypes.oneOf(['asc', 'desc']),\n disabled: PropTypes.bool,\n edge: PropTypes.oneOf(['end', 'start', false]),\n field: PropTypes.string.isRequired,\n id: PropTypes.string,\n index: PropTypes.number,\n label: PropTypes.string,\n role: PropTypes.string,\n size: PropTypes.oneOf(['large', 'medium', 'small']),\n sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])).isRequired,\n style: PropTypes.object,\n tabIndex: PropTypes.number,\n title: PropTypes.string,\n touchRippleRef: PropTypes.any\n} : void 0;\nexport { GridColumnHeaderSortIcon };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_composeClasses as composeClasses, unstable_useId as useId } from '@mui/utils';\nimport { useGridSelector } from \"../../hooks/index.js\";\nimport { gridPreferencePanelSelectorWithLabel, gridPreferencePanelStateSelector } from \"../../hooks/features/preferencesPanel/gridPreferencePanelSelector.js\";\nimport { GridPreferencePanelsValue } from \"../../hooks/features/preferencesPanel/gridPreferencePanelsValue.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { GridIconButtonContainer } from \"./GridIconButtonContainer.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n icon: ['filterIcon']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nfunction GridColumnHeaderFilterIconButtonWrapped(props) {\n if (!props.counter) {\n return null;\n }\n return /*#__PURE__*/_jsx(GridColumnHeaderFilterIconButton, _extends({}, props));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridColumnHeaderFilterIconButtonWrapped.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n counter: PropTypes.number,\n field: PropTypes.string.isRequired,\n onClick: PropTypes.func\n} : void 0;\nfunction GridColumnHeaderFilterIconButton(props) {\n const {\n counter,\n field,\n onClick\n } = props;\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const ownerState = _extends({}, props, {\n classes: rootProps.classes\n });\n const classes = useUtilityClasses(ownerState);\n const labelId = useId();\n const isOpen = useGridSelector(apiRef, gridPreferencePanelSelectorWithLabel, labelId);\n const panelId = useId();\n const toggleFilter = React.useCallback(event => {\n event.preventDefault();\n event.stopPropagation();\n const {\n open,\n openedPanelValue\n } = gridPreferencePanelStateSelector(apiRef);\n if (open && openedPanelValue === GridPreferencePanelsValue.filters) {\n apiRef.current.hideFilterPanel();\n } else {\n apiRef.current.showFilterPanel(undefined, panelId, labelId);\n }\n if (onClick) {\n onClick(apiRef.current.getColumnHeaderParams(field), event);\n }\n }, [apiRef, field, onClick, panelId, labelId]);\n if (!counter) {\n return null;\n }\n const iconButton = /*#__PURE__*/_jsx(rootProps.slots.baseIconButton, _extends({\n id: labelId,\n onClick: toggleFilter,\n \"aria-label\": apiRef.current.getLocaleText('columnHeaderFiltersLabel'),\n size: \"small\",\n tabIndex: -1,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": isOpen,\n \"aria-controls\": isOpen ? panelId : undefined\n }, rootProps.slotProps?.baseIconButton, {\n children: /*#__PURE__*/_jsx(rootProps.slots.columnFilteredIcon, {\n className: classes.icon,\n fontSize: \"small\"\n })\n }));\n return /*#__PURE__*/_jsx(rootProps.slots.baseTooltip, _extends({\n title: apiRef.current.getLocaleText('columnHeaderFiltersTooltipActive')(counter),\n enterDelay: 1000\n }, rootProps.slotProps?.baseTooltip, {\n children: /*#__PURE__*/_jsxs(GridIconButtonContainer, {\n children: [counter > 1 && /*#__PURE__*/_jsx(rootProps.slots.baseBadge, {\n badgeContent: counter,\n color: \"default\",\n children: iconButton\n }), counter === 1 && iconButton]\n })\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridColumnHeaderFilterIconButton.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n counter: PropTypes.number,\n field: PropTypes.string.isRequired,\n onClick: PropTypes.func\n} : void 0;\nexport { GridColumnHeaderFilterIconButtonWrapped as GridColumnHeaderFilterIconButton };","import { createSvgIcon as createSvgIconMaterial } from '@mui/material/utils';\nexport const createSvgIcon = createSvgIconMaterial;","import * as React from 'react';\nimport { createSvgIcon } from \"./createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const GridArrowUpwardIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z\"\n}), 'ArrowUpward');\nexport const GridArrowDownwardIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z\"\n}), 'ArrowDownward');\nexport const GridKeyboardArrowRight = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z\"\n}), 'KeyboardArrowRight');\nexport const GridExpandMoreIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z\"\n}), 'ExpandMore');\nexport const GridFilterListIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z\"\n}), 'FilterList');\nexport const GridFilterAltIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z\"\n}), 'FilterAlt');\nexport const GridSearchIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z\"\n}), 'Search');\nexport const GridMenuIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z\"\n}), 'Menu');\nexport const GridCheckCircleIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z\"\n}), 'CheckCircle');\nexport const GridColumnIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z\"\n}), 'ColumnIcon');\nexport const GridSeparatorIcon = createSvgIcon(/*#__PURE__*/_jsx(\"rect\", {\n width: \"1\",\n height: \"24\",\n x: \"11.5\",\n rx: \"0.5\"\n}), 'Separator');\nexport const GridViewHeadlineIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z\"\n}), 'ViewHeadline');\nexport const GridTableRowsIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z\"\n}), 'TableRows');\nexport const GridViewStreamIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M4 18h17v-6H4v6zM4 5v6h17V5H4z\"\n}), 'ViewStream');\nexport const GridTripleDotsVerticalIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z\"\n}), 'TripleDotsVertical');\nexport const GridCloseIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n}), 'Close');\nexport const GridAddIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z\"\n}), 'Add');\nexport const GridRemoveIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 13H5v-2h14v2z\"\n}), 'Remove');\nexport const GridLoadIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z\"\n}), 'Load');\nexport const GridDragIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z\"\n}), 'Drag');\nexport const GridCheckIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\"\n}), 'Check');\nexport const GridMoreVertIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z\"\n}), 'MoreVert');\nexport const GridVisibilityOffIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z\"\n}), 'VisibilityOff');\nexport const GridViewColumnIcon = createSvgIcon(/*#__PURE__*/_jsx(\"g\", {\n children: /*#__PURE__*/_jsx(\"path\", {\n d: \"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z\"\n })\n}), 'ViewColumn');\nexport const GridClearIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z\"\n}), 'Clear');\nexport const GridDeleteIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z\"\n}), 'Delete');\nexport const GridDeleteForeverIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z\"\n}), 'Delete');\nexport const GridDownloadIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z\"\n}), 'Download');","// Non printable keys have a name, for example \"ArrowRight\", see the whole list:\n// https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values\n// So event.key.length === 1 is often enough.\n//\n// However, we also need to ignore shortcuts, for example: select all:\n// - Windows: Ctrl+A, event.ctrlKey is true\n// - macOS: ⌘ Command+A, event.metaKey is true\nexport function isPrintableKey(event) {\n return event.key.length === 1 && !event.ctrlKey && !event.metaKey;\n}\nexport const GRID_MULTIPLE_SELECTION_KEYS = ['Meta', 'Control', 'Shift'];\nexport const GRID_CELL_EXIT_EDIT_MODE_KEYS = ['Enter', 'Escape', 'Tab'];\nexport const GRID_CELL_EDIT_COMMIT_KEYS = ['Enter', 'Tab'];\nexport const isMultipleKey = key => GRID_MULTIPLE_SELECTION_KEYS.indexOf(key) > -1;\nexport const isCellEnterEditModeKeys = event => isPrintableKey(event) || event.key === 'Enter' || event.key === 'Backspace' || event.key === 'Delete';\nexport const isCellExitEditModeKeys = key => GRID_CELL_EXIT_EDIT_MODE_KEYS.indexOf(key) > -1;\nexport const isCellEditCommitKeys = key => GRID_CELL_EDIT_COMMIT_KEYS.indexOf(key) > -1;\nexport const isNavigationKey = key => key.indexOf('Arrow') === 0 || key.indexOf('Page') === 0 || key === ' ' || key === 'Home' || key === 'End';\nexport const isKeyboardEvent = event => !!event.key;\nexport const isHideMenuKey = key => key === 'Tab' || key === 'Escape';\n\n// In theory, on macOS, ctrl + v doesn't trigger a paste, so the function should return false.\n// However, maybe it's overkill to fix, so let's be lazy.\nexport function isPasteShortcut(event) {\n return (event.ctrlKey || event.metaKey) &&\n // We can't use event.code === 'KeyV' as event.code assumes a QWERTY keyboard layout,\n // for example, it would be another letter on a Dvorak physical keyboard.\n // We can't use event.key === 'v' as event.key is not stable with key modifiers and keyboard layouts,\n // for example, it would be ה on a Hebrew keyboard layout.\n // https://github.com/w3c/uievents/issues/377 could be a long-term solution\n String.fromCharCode(event.keyCode) === 'V' && !event.shiftKey && !event.altKey;\n}\n\n// Checks if the keyboard event corresponds to the copy shortcut (CTRL+C or CMD+C) across different localization keyboards.\nexport function isCopyShortcut(event) {\n return (event.ctrlKey || event.metaKey) && String.fromCharCode(event.keyCode) === 'C' && !event.shiftKey && !event.altKey;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"hideMenu\", \"colDef\", \"id\", \"labelledby\", \"className\", \"children\", \"open\"];\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { styled } from '@mui/material/styles';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { isHideMenuKey } from \"../../../utils/keyboardUtils.js\";\nimport { NotRendered } from \"../../../utils/assert.js\";\nimport { gridClasses } from \"../../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst StyledMenuList = styled(NotRendered)(() => ({\n minWidth: 248\n}));\nconst GridColumnMenuContainer = forwardRef(function GridColumnMenuContainer(props, ref) {\n const {\n hideMenu,\n id,\n labelledby,\n className,\n children,\n open\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const handleListKeyDown = React.useCallback(event => {\n if (event.key === 'Tab') {\n event.preventDefault();\n }\n if (isHideMenuKey(event.key)) {\n hideMenu(event);\n }\n }, [hideMenu]);\n return /*#__PURE__*/_jsx(StyledMenuList, _extends({\n as: rootProps.slots.baseMenuList,\n id: id,\n className: clsx(gridClasses.menuList, className),\n \"aria-labelledby\": labelledby,\n onKeyDown: handleListKeyDown,\n autoFocus: open\n }, other, {\n ref: ref,\n children: children\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridColumnMenuContainer.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n colDef: PropTypes.object.isRequired,\n hideMenu: PropTypes.func.isRequired,\n id: PropTypes.string,\n labelledby: PropTypes.string,\n open: PropTypes.bool.isRequired\n} : void 0;\nexport { GridColumnMenuContainer };","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"displayOrder\"];\nimport * as React from 'react';\nimport { useGridRootProps } from \"../../utils/useGridRootProps.js\";\nimport { useGridPrivateApiContext } from \"../../utils/useGridPrivateApiContext.js\";\nconst useGridColumnMenuSlots = props => {\n const apiRef = useGridPrivateApiContext();\n const rootProps = useGridRootProps();\n const {\n defaultSlots,\n defaultSlotProps,\n slots = {},\n slotProps = {},\n hideMenu,\n colDef,\n addDividers = true\n } = props;\n const processedComponents = React.useMemo(() => _extends({}, defaultSlots, slots), [defaultSlots, slots]);\n const processedSlotProps = React.useMemo(() => {\n if (!slotProps || Object.keys(slotProps).length === 0) {\n return defaultSlotProps;\n }\n const mergedProps = _extends({}, slotProps);\n Object.entries(defaultSlotProps).forEach(([key, currentSlotProps]) => {\n mergedProps[key] = _extends({}, currentSlotProps, slotProps[key] || {});\n });\n return mergedProps;\n }, [defaultSlotProps, slotProps]);\n const defaultItems = apiRef.current.unstable_applyPipeProcessors('columnMenu', [], props.colDef);\n const userItems = React.useMemo(() => {\n const defaultComponentKeys = Object.keys(defaultSlots);\n return Object.keys(slots).filter(key => !defaultComponentKeys.includes(key));\n }, [slots, defaultSlots]);\n return React.useMemo(() => {\n const uniqueItems = Array.from(new Set([...defaultItems, ...userItems]));\n const cleansedItems = uniqueItems.filter(key => processedComponents[key] != null);\n const sorted = cleansedItems.sort((a, b) => {\n const leftItemProps = processedSlotProps[a];\n const rightItemProps = processedSlotProps[b];\n const leftDisplayOrder = Number.isFinite(leftItemProps?.displayOrder) ? leftItemProps.displayOrder : 100;\n const rightDisplayOrder = Number.isFinite(rightItemProps?.displayOrder) ? rightItemProps.displayOrder : 100;\n return leftDisplayOrder - rightDisplayOrder;\n });\n return sorted.reduce((acc, key, index) => {\n let itemProps = {\n colDef,\n onClick: hideMenu\n };\n const processedComponentProps = processedSlotProps[key];\n if (processedComponentProps) {\n const customProps = _objectWithoutPropertiesLoose(processedComponentProps, _excluded);\n itemProps = _extends({}, itemProps, customProps);\n }\n return addDividers && index !== sorted.length - 1 ? [...acc, [processedComponents[key], itemProps], [rootProps.slots.baseDivider, {}]] : [...acc, [processedComponents[key], itemProps]];\n }, []);\n }, [addDividers, colDef, defaultItems, hideMenu, processedComponents, processedSlotProps, userItems, rootProps.slots.baseDivider]);\n};\nexport { useGridColumnMenuSlots };","import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useGridApiContext } from \"../../../../hooks/utils/useGridApiContext.js\";\nimport { useGridRootProps } from \"../../../../hooks/utils/useGridRootProps.js\";\nimport { gridVisibleColumnDefinitionsSelector } from \"../../../../hooks/features/columns/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GridColumnMenuHideItem(props) {\n const {\n colDef,\n onClick\n } = props;\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const visibleColumns = gridVisibleColumnDefinitionsSelector(apiRef);\n const columnsWithMenu = visibleColumns.filter(col => col.disableColumnMenu !== true);\n // do not allow to hide the last column with menu\n const disabled = columnsWithMenu.length === 1;\n const toggleColumn = React.useCallback(event => {\n /**\n * Disabled `MenuItem` would trigger `click` event\n * after imperative `.click()` call on HTML element.\n * Also, click is triggered in testing environment as well.\n */\n if (disabled) {\n return;\n }\n apiRef.current.setColumnVisibility(colDef.field, false);\n onClick(event);\n }, [apiRef, colDef.field, onClick, disabled]);\n if (rootProps.disableColumnSelector) {\n return null;\n }\n if (colDef.hideable === false) {\n return null;\n }\n return /*#__PURE__*/_jsx(rootProps.slots.baseMenuItem, {\n onClick: toggleColumn,\n disabled: disabled,\n iconStart: /*#__PURE__*/_jsx(rootProps.slots.columnMenuHideIcon, {\n fontSize: \"small\"\n }),\n children: apiRef.current.getLocaleText('columnMenuHideColumn')\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GridColumnMenuHideItem.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n colDef: PropTypes.object.isRequired,\n onClick: PropTypes.func.isRequired\n} : void 0;\nexport { GridColumnMenuHideItem };","import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GridPreferencePanelsValue } from \"../../../../hooks/features/preferencesPanel/gridPreferencePanelsValue.js\";\nimport { useGridApiContext } from \"../../../../hooks/utils/useGridApiContext.js\";\nimport { useGridRootProps } from \"../../../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GridColumnMenuManageItem(props) {\n const {\n onClick\n } = props;\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const showColumns = React.useCallback(event => {\n onClick(event); // hide column menu\n apiRef.current.showPreferences(GridPreferencePanelsValue.columns);\n }, [apiRef, onClick]);\n if (rootProps.disableColumnSelector) {\n return null;\n }\n return /*#__PURE__*/_jsx(rootProps.slots.baseMenuItem, {\n onClick: showColumns,\n iconStart: /*#__PURE__*/_jsx(rootProps.slots.columnMenuManageColumnsIcon, {\n fontSize: \"small\"\n }),\n children: apiRef.current.getLocaleText('columnMenuManageColumns')\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GridColumnMenuManageItem.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n colDef: PropTypes.object.isRequired,\n onClick: PropTypes.func.isRequired\n} : void 0;\nexport { GridColumnMenuManageItem };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GridColumnMenuHideItem } from \"./GridColumnMenuHideItem.js\";\nimport { GridColumnMenuManageItem } from \"./GridColumnMenuManageItem.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction GridColumnMenuColumnsItem(props) {\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(GridColumnMenuHideItem, _extends({}, props)), /*#__PURE__*/_jsx(GridColumnMenuManageItem, _extends({}, props))]\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GridColumnMenuColumnsItem.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n colDef: PropTypes.object.isRequired,\n onClick: PropTypes.func.isRequired\n} : void 0;\nexport { GridColumnMenuColumnsItem };","import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useGridApiContext } from \"../../../../hooks/utils/useGridApiContext.js\";\nimport { useGridRootProps } from \"../../../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GridColumnMenuFilterItem(props) {\n const {\n colDef,\n onClick\n } = props;\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const showFilter = React.useCallback(event => {\n onClick(event);\n apiRef.current.showFilterPanel(colDef.field);\n }, [apiRef, colDef.field, onClick]);\n if (rootProps.disableColumnFilter || !colDef.filterable) {\n return null;\n }\n return /*#__PURE__*/_jsx(rootProps.slots.baseMenuItem, {\n onClick: showFilter,\n iconStart: /*#__PURE__*/_jsx(rootProps.slots.columnMenuFilterIcon, {\n fontSize: \"small\"\n }),\n children: apiRef.current.getLocaleText('columnMenuFilter')\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GridColumnMenuFilterItem.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n colDef: PropTypes.object.isRequired,\n onClick: PropTypes.func.isRequired\n} : void 0;\nexport { GridColumnMenuFilterItem };","import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useGridSelector } from \"../../../../hooks/utils/useGridSelector.js\";\nimport { gridSortModelSelector } from \"../../../../hooks/features/sorting/gridSortingSelector.js\";\nimport { useGridApiContext } from \"../../../../hooks/utils/useGridApiContext.js\";\nimport { useGridRootProps } from \"../../../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction GridColumnMenuSortItem(props) {\n const {\n colDef,\n onClick\n } = props;\n const apiRef = useGridApiContext();\n const sortModel = useGridSelector(apiRef, gridSortModelSelector);\n const rootProps = useGridRootProps();\n const sortDirection = React.useMemo(() => {\n if (!colDef) {\n return null;\n }\n const sortItem = sortModel.find(item => item.field === colDef.field);\n return sortItem?.sort;\n }, [colDef, sortModel]);\n const sortingOrder = colDef.sortingOrder ?? rootProps.sortingOrder;\n const onSortMenuItemClick = React.useCallback(event => {\n onClick(event);\n const direction = event.currentTarget.getAttribute('data-value') || null;\n apiRef.current.sortColumn(colDef.field, direction === sortDirection ? null : direction);\n }, [apiRef, colDef, onClick, sortDirection]);\n if (rootProps.disableColumnSorting || !colDef || !colDef.sortable || !sortingOrder.some(item => !!item)) {\n return null;\n }\n const getLabel = key => {\n const label = apiRef.current.getLocaleText(key);\n return typeof label === 'function' ? label(colDef) : label;\n };\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [sortingOrder.includes('asc') && sortDirection !== 'asc' ? /*#__PURE__*/_jsx(rootProps.slots.baseMenuItem, {\n onClick: onSortMenuItemClick,\n \"data-value\": \"asc\",\n iconStart: /*#__PURE__*/_jsx(rootProps.slots.columnMenuSortAscendingIcon, {\n fontSize: \"small\"\n }),\n children: getLabel('columnMenuSortAsc')\n }) : null, sortingOrder.includes('desc') && sortDirection !== 'desc' ? /*#__PURE__*/_jsx(rootProps.slots.baseMenuItem, {\n onClick: onSortMenuItemClick,\n \"data-value\": \"desc\",\n iconStart: /*#__PURE__*/_jsx(rootProps.slots.columnMenuSortDescendingIcon, {\n fontSize: \"small\"\n }),\n children: getLabel('columnMenuSortDesc')\n }) : null, sortingOrder.includes(null) && sortDirection != null ? /*#__PURE__*/_jsx(rootProps.slots.baseMenuItem, {\n onClick: onSortMenuItemClick,\n iconStart: rootProps.slots.columnMenuUnsortIcon ? /*#__PURE__*/_jsx(rootProps.slots.columnMenuUnsortIcon, {\n fontSize: \"small\"\n }) : /*#__PURE__*/_jsx(\"span\", {}),\n children: apiRef.current.getLocaleText('columnMenuUnsort')\n }) : null]\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GridColumnMenuSortItem.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n colDef: PropTypes.object.isRequired,\n onClick: PropTypes.func.isRequired\n} : void 0;\nexport { GridColumnMenuSortItem };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"defaultSlots\", \"defaultSlotProps\", \"slots\", \"slotProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridColumnMenuSlots } from \"../../../hooks/features/columnMenu/useGridColumnMenuSlots.js\";\nimport { GridColumnMenuContainer } from \"./GridColumnMenuContainer.js\";\nimport { GridColumnMenuColumnsItem } from \"./menuItems/GridColumnMenuColumnsItem.js\";\nimport { GridColumnMenuFilterItem } from \"./menuItems/GridColumnMenuFilterItem.js\";\nimport { GridColumnMenuSortItem } from \"./menuItems/GridColumnMenuSortItem.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const GRID_COLUMN_MENU_SLOTS = {\n columnMenuSortItem: GridColumnMenuSortItem,\n columnMenuFilterItem: GridColumnMenuFilterItem,\n columnMenuColumnsItem: GridColumnMenuColumnsItem\n};\nexport const GRID_COLUMN_MENU_SLOT_PROPS = {\n columnMenuSortItem: {\n displayOrder: 10\n },\n columnMenuFilterItem: {\n displayOrder: 20\n },\n columnMenuColumnsItem: {\n displayOrder: 30\n }\n};\nconst GridGenericColumnMenu = forwardRef(function GridGenericColumnMenu(props, ref) {\n const {\n defaultSlots,\n defaultSlotProps,\n slots,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const orderedSlots = useGridColumnMenuSlots(_extends({}, other, {\n defaultSlots,\n defaultSlotProps,\n slots,\n slotProps\n }));\n return /*#__PURE__*/_jsx(GridColumnMenuContainer, _extends({}, other, {\n ref: ref,\n children: orderedSlots.map(([Component, otherProps], index) => /*#__PURE__*/_jsx(Component, _extends({}, otherProps), index))\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridGenericColumnMenu.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n colDef: PropTypes.object.isRequired,\n /**\n * Initial `slotProps` - it is internal, to be overrriden by Pro or Premium packages\n * @ignore - do not document.\n */\n defaultSlotProps: PropTypes.object.isRequired,\n /**\n * Initial `slots` - it is internal, to be overrriden by Pro or Premium packages\n * @ignore - do not document.\n */\n defaultSlots: PropTypes.object.isRequired,\n hideMenu: PropTypes.func.isRequired,\n id: PropTypes.string,\n labelledby: PropTypes.string,\n open: PropTypes.bool.isRequired,\n /**\n * Could be used to pass new props or override props specific to a column menu component\n * e.g. `displayOrder`\n */\n slotProps: PropTypes.object,\n /**\n * `slots` could be used to add new and (or) override default column menu items\n * If you register a nee component you must pass it's `displayOrder` in `slotProps`\n * or it will be placed in the end of the list\n */\n slots: PropTypes.object\n} : void 0;\nconst GridColumnMenu = forwardRef(function GridColumnMenu(props, ref) {\n return /*#__PURE__*/_jsx(GridGenericColumnMenu, _extends({}, props, {\n ref: ref,\n defaultSlots: GRID_COLUMN_MENU_SLOTS,\n defaultSlotProps: GRID_COLUMN_MENU_SLOT_PROPS\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridColumnMenu.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n colDef: PropTypes.object.isRequired,\n hideMenu: PropTypes.func.isRequired,\n id: PropTypes.string,\n labelledby: PropTypes.string,\n open: PropTypes.bool.isRequired,\n /**\n * Could be used to pass new props or override props specific to a column menu component\n * e.g. `displayOrder`\n */\n slotProps: PropTypes.object,\n /**\n * `slots` could be used to add new and (or) override default column menu items\n * If you register a nee component you must pass it's `displayOrder` in `slotProps`\n * or it will be placed in the end of the list\n */\n slots: PropTypes.object\n} : void 0;\nexport { GridColumnMenu, GridGenericColumnMenu };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { styled } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['panelWrapper']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridPanelWrapperRoot = styled('div', {\n name: 'MuiDataGrid',\n slot: 'PanelWrapper'\n})({\n display: 'flex',\n flexDirection: 'column',\n flex: 1,\n '&:focus': {\n outline: 0\n }\n});\nconst GridPanelWrapper = forwardRef(function GridPanelWrapper(props, ref) {\n const {\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const classes = useUtilityClasses(rootProps);\n return /*#__PURE__*/_jsx(GridPanelWrapperRoot, _extends({\n tabIndex: -1,\n className: clsx(classes.root, className),\n ownerState: rootProps\n }, other, {\n ref: ref\n }));\n});\nexport { GridPanelWrapper };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { GridPanelWrapper } from \"./GridPanelWrapper.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GridColumnsPanel(props) {\n const rootProps = useGridRootProps();\n return /*#__PURE__*/_jsx(GridPanelWrapper, _extends({}, props, {\n children: /*#__PURE__*/_jsx(rootProps.slots.columnsManagement, _extends({}, rootProps.slotProps?.columnsManagement))\n }));\n}\nexport { GridColumnsPanel };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"classes\", \"onClose\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { styled } from '@mui/material/styles';\nimport { unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { vars } from \"../../constants/cssVariables.js\";\nimport { useCSSVariablesClass } from \"../../utils/css/context.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { NotRendered } from \"../../utils/assert.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const gridPanelClasses = generateUtilityClasses('MuiDataGrid', ['panel', 'paper']);\nconst GridPanelRoot = styled(NotRendered, {\n name: 'MuiDataGrid',\n slot: 'panel'\n})({\n zIndex: vars.zIndex.panel\n});\nconst GridPanelContent = styled('div', {\n name: 'MuiDataGrid',\n slot: 'panelContent'\n})({\n backgroundColor: vars.colors.background.overlay,\n borderRadius: vars.radius.base,\n boxShadow: vars.shadows.overlay,\n display: 'flex',\n maxWidth: `calc(100vw - ${vars.spacing(2)})`,\n overflow: 'auto'\n});\nconst GridPanel = forwardRef((props, ref) => {\n const {\n children,\n className,\n onClose\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const classes = gridPanelClasses;\n const [isPlaced, setIsPlaced] = React.useState(false);\n const variablesClass = useCSSVariablesClass();\n const onDidShow = useEventCallback(() => setIsPlaced(true));\n const onDidHide = useEventCallback(() => setIsPlaced(false));\n const handleClickAway = useEventCallback(() => {\n onClose?.();\n });\n const handleKeyDown = useEventCallback(event => {\n if (event.key === 'Escape') {\n onClose?.();\n }\n });\n const [fallbackTarget, setFallbackTarget] = React.useState(null);\n React.useEffect(() => {\n const panelAnchor = apiRef.current.rootElementRef?.current?.querySelector('[data-id=\"gridPanelAnchor\"]');\n if (panelAnchor) {\n setFallbackTarget(panelAnchor);\n }\n }, [apiRef]);\n if (!fallbackTarget) {\n return null;\n }\n return /*#__PURE__*/_jsx(GridPanelRoot, _extends({\n as: rootProps.slots.basePopper,\n ownerState: rootProps,\n placement: \"bottom-end\",\n className: clsx(classes.panel, className, variablesClass),\n flip: true,\n onDidShow: onDidShow,\n onDidHide: onDidHide,\n onClickAway: handleClickAway,\n clickAwayMouseEvent: \"onPointerUp\",\n clickAwayTouchEvent: false,\n focusTrap: true\n }, other, rootProps.slotProps?.basePopper, {\n target: props.target ?? fallbackTarget,\n ref: ref,\n children: /*#__PURE__*/_jsx(GridPanelContent, {\n className: classes.paper,\n ownerState: rootProps,\n onKeyDown: handleKeyDown,\n children: isPlaced && children\n })\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridPanel.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n flip: PropTypes.bool,\n id: PropTypes.string,\n onClose: PropTypes.func,\n open: PropTypes.bool.isRequired,\n target: PropTypes /* @typescript-to-proptypes-ignore */.any\n} : void 0;\nexport { GridPanel };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { styled } from '@mui/system';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { vars } from \"../../constants/cssVariables.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['panelContent']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridPanelContentRoot = styled('div', {\n name: 'MuiDataGrid',\n slot: 'PanelContent'\n})({\n display: 'flex',\n flexDirection: 'column',\n overflow: 'auto',\n flex: '1 1',\n maxHeight: 400,\n padding: vars.spacing(2.5, 1.5, 2, 1),\n gap: vars.spacing(2.5)\n});\nfunction GridPanelContent(props) {\n const {\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const classes = useUtilityClasses(rootProps);\n return /*#__PURE__*/_jsx(GridPanelContentRoot, _extends({\n className: clsx(classes.root, className),\n ownerState: rootProps\n }, other));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridPanelContent.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport { GridPanelContent };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { styled } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { vars } from \"../../constants/cssVariables.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['panelFooter']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridPanelFooterRoot = styled('div', {\n name: 'MuiDataGrid',\n slot: 'PanelFooter'\n})({\n padding: vars.spacing(1),\n display: 'flex',\n justifyContent: 'space-between',\n borderTop: `1px solid ${vars.colors.border.base}`\n});\nfunction GridPanelFooter(props) {\n const {\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const classes = useUtilityClasses(rootProps);\n return /*#__PURE__*/_jsx(GridPanelFooterRoot, _extends({\n className: clsx(classes.root, className),\n ownerState: rootProps\n }, other));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridPanelFooter.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport { GridPanelFooter };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"item\", \"hasMultipleFilters\", \"deleteFilter\", \"applyFilterChanges\", \"showMultiFilterOperators\", \"disableMultiFilterOperator\", \"applyMultiFilterOperatorChanges\", \"focusElementRef\", \"logicOperators\", \"columnsSort\", \"filterColumns\", \"deleteIconProps\", \"logicOperatorInputProps\", \"operatorInputProps\", \"columnInputProps\", \"valueInputProps\", \"readOnly\", \"children\"],\n _excluded2 = [\"InputComponentProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses, unstable_useId as useId, unstable_capitalize as capitalize } from '@mui/utils';\nimport { styled } from '@mui/material/styles';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { vars } from \"../../../constants/cssVariables.js\";\nimport { gridFilterableColumnDefinitionsSelector, gridColumnLookupSelector } from \"../../../hooks/features/columns/gridColumnsSelector.js\";\nimport { gridFilterModelSelector } from \"../../../hooks/features/filter/gridFilterSelector.js\";\nimport { useGridSelector } from \"../../../hooks/utils/useGridSelector.js\";\nimport { GridLogicOperator } from \"../../../models/gridFilterItem.js\";\nimport { useGridApiContext } from \"../../../hooks/utils/useGridApiContext.js\";\nimport { useGridRootProps } from \"../../../hooks/utils/useGridRootProps.js\";\nimport { getDataGridUtilityClass } from \"../../../constants/gridClasses.js\";\nimport { getValueFromValueOptions, getValueOptions } from \"./filterPanelUtils.js\";\nimport { gridPivotActiveSelector, gridPivotInitialColumnsSelector } from \"../../../hooks/features/pivoting/index.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { createElement as _createElement } from \"react\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['filterForm'],\n deleteIcon: ['filterFormDeleteIcon'],\n logicOperatorInput: ['filterFormLogicOperatorInput'],\n columnInput: ['filterFormColumnInput'],\n operatorInput: ['filterFormOperatorInput'],\n valueInput: ['filterFormValueInput']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridFilterFormRoot = styled('div', {\n name: 'MuiDataGrid',\n slot: 'FilterForm'\n})({\n display: 'flex',\n gap: vars.spacing(1.5)\n});\nconst FilterFormDeleteIcon = styled('div', {\n name: 'MuiDataGrid',\n slot: 'FilterFormDeleteIcon'\n})({\n flexShrink: 0,\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n});\nconst FilterFormLogicOperatorInput = styled('div', {\n name: 'MuiDataGrid',\n slot: 'FilterFormLogicOperatorInput'\n})({\n minWidth: 75,\n justifyContent: 'end'\n});\nconst FilterFormColumnInput = styled('div', {\n name: 'MuiDataGrid',\n slot: 'FilterFormColumnInput'\n})({\n width: 150\n});\nconst FilterFormOperatorInput = styled('div', {\n name: 'MuiDataGrid',\n slot: 'FilterFormOperatorInput'\n})({\n width: 150\n});\nconst FilterFormValueInput = styled('div', {\n name: 'MuiDataGrid',\n slot: 'FilterFormValueInput'\n})({\n width: 190\n});\nconst getLogicOperatorLocaleKey = logicOperator => {\n switch (logicOperator) {\n case GridLogicOperator.And:\n return 'filterPanelOperatorAnd';\n case GridLogicOperator.Or:\n return 'filterPanelOperatorOr';\n default:\n throw new Error('MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.');\n }\n};\nconst getColumnLabel = col => col.headerName || col.field;\nconst collator = new Intl.Collator();\nconst GridFilterForm = forwardRef(function GridFilterForm(props, ref) {\n const {\n item,\n hasMultipleFilters,\n deleteFilter,\n applyFilterChanges,\n showMultiFilterOperators,\n disableMultiFilterOperator,\n applyMultiFilterOperatorChanges,\n focusElementRef,\n logicOperators = [GridLogicOperator.And, GridLogicOperator.Or],\n columnsSort,\n filterColumns,\n deleteIconProps = {},\n logicOperatorInputProps = {},\n operatorInputProps = {},\n columnInputProps = {},\n valueInputProps = {},\n readOnly\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridApiContext();\n const columnLookup = useGridSelector(apiRef, gridColumnLookupSelector);\n const filterableColumns = useGridSelector(apiRef, gridFilterableColumnDefinitionsSelector);\n const filterModel = useGridSelector(apiRef, gridFilterModelSelector);\n const columnSelectId = useId();\n const columnSelectLabelId = useId();\n const operatorSelectId = useId();\n const operatorSelectLabelId = useId();\n const rootProps = useGridRootProps();\n const classes = useUtilityClasses(rootProps);\n const valueRef = React.useRef(null);\n const filterSelectorRef = React.useRef(null);\n const multiFilterOperator = filterModel.logicOperator ?? GridLogicOperator.And;\n const hasLogicOperatorColumn = hasMultipleFilters && logicOperators.length > 0;\n const baseSelectProps = rootProps.slotProps?.baseSelect || {};\n const isBaseSelectNative = baseSelectProps.native ?? false;\n const baseSelectOptionProps = rootProps.slotProps?.baseSelectOption || {};\n const {\n InputComponentProps\n } = valueInputProps,\n valueInputPropsOther = _objectWithoutPropertiesLoose(valueInputProps, _excluded2);\n const pivotActive = useGridSelector(apiRef, gridPivotActiveSelector);\n const initialColumns = useGridSelector(apiRef, gridPivotInitialColumnsSelector);\n const {\n filteredColumns,\n selectedField\n } = React.useMemo(() => {\n let itemField = item.field;\n\n // Yields a valid value if the current filter belongs to a column that is not filterable\n const selectedNonFilterableColumn = columnLookup[item.field].filterable === false ? columnLookup[item.field] : null;\n if (selectedNonFilterableColumn) {\n return {\n filteredColumns: [selectedNonFilterableColumn],\n selectedField: itemField\n };\n }\n if (pivotActive) {\n return {\n filteredColumns: filterableColumns.filter(column => initialColumns.get(column.field) !== undefined),\n selectedField: itemField\n };\n }\n if (filterColumns === undefined || typeof filterColumns !== 'function') {\n return {\n filteredColumns: filterableColumns,\n selectedField: itemField\n };\n }\n const filteredFields = filterColumns({\n field: item.field,\n columns: filterableColumns,\n currentFilters: filterModel?.items || []\n });\n return {\n filteredColumns: filterableColumns.filter(column => {\n const isFieldIncluded = filteredFields.includes(column.field);\n if (column.field === item.field && !isFieldIncluded) {\n itemField = undefined;\n }\n return isFieldIncluded;\n }),\n selectedField: itemField\n };\n }, [item.field, columnLookup, pivotActive, filterColumns, filterableColumns, filterModel?.items, initialColumns]);\n const sortedFilteredColumns = React.useMemo(() => {\n switch (columnsSort) {\n case 'asc':\n return filteredColumns.sort((a, b) => collator.compare(getColumnLabel(a), getColumnLabel(b)));\n case 'desc':\n return filteredColumns.sort((a, b) => -collator.compare(getColumnLabel(a), getColumnLabel(b)));\n default:\n return filteredColumns;\n }\n }, [filteredColumns, columnsSort]);\n const currentColumn = item.field ? apiRef.current.getColumn(item.field) : null;\n const currentOperator = React.useMemo(() => {\n if (!item.operator || !currentColumn) {\n return null;\n }\n return currentColumn.filterOperators?.find(operator => operator.value === item.operator);\n }, [item, currentColumn]);\n const changeColumn = React.useCallback(event => {\n const field = event.target.value;\n const column = apiRef.current.getColumn(field);\n if (column.field === currentColumn.field) {\n // column did not change\n return;\n }\n\n // try to keep the same operator when column change\n const newOperator = column.filterOperators.find(operator => operator.value === item.operator) || column.filterOperators[0];\n\n // Erase filter value if the input component or filtered column type is modified\n const eraseFilterValue = !newOperator.InputComponent || newOperator.InputComponent !== currentOperator?.InputComponent || column.type !== currentColumn.type;\n let filterValue = eraseFilterValue ? undefined : item.value;\n\n // Check filter value against the new valueOptions\n if (column.type === 'singleSelect' && filterValue !== undefined) {\n const colDef = column;\n const valueOptions = getValueOptions(colDef);\n if (Array.isArray(filterValue)) {\n filterValue = filterValue.filter(val => {\n return (\n // Only keep values that are in the new value options\n getValueFromValueOptions(val, valueOptions, colDef?.getOptionValue) !== undefined\n );\n });\n } else if (getValueFromValueOptions(item.value, valueOptions, colDef?.getOptionValue) === undefined) {\n // Reset the filter value if it is not in the new value options\n filterValue = undefined;\n }\n }\n applyFilterChanges(_extends({}, item, {\n field,\n operator: newOperator.value,\n value: filterValue\n }));\n }, [apiRef, applyFilterChanges, item, currentColumn, currentOperator]);\n const changeOperator = React.useCallback(event => {\n const operator = event.target.value;\n const newOperator = currentColumn?.filterOperators.find(op => op.value === operator);\n const eraseItemValue = !newOperator?.InputComponent || newOperator?.InputComponent !== currentOperator?.InputComponent;\n applyFilterChanges(_extends({}, item, {\n operator,\n value: eraseItemValue ? undefined : item.value\n }));\n }, [applyFilterChanges, item, currentColumn, currentOperator]);\n const changeLogicOperator = React.useCallback(event => {\n const logicOperator = event.target.value === GridLogicOperator.And.toString() ? GridLogicOperator.And : GridLogicOperator.Or;\n applyMultiFilterOperatorChanges(logicOperator);\n }, [applyMultiFilterOperatorChanges]);\n const handleDeleteFilter = () => {\n deleteFilter(item);\n };\n React.useImperativeHandle(focusElementRef, () => ({\n focus: () => {\n if (currentOperator?.InputComponent) {\n valueRef?.current?.focus();\n } else {\n filterSelectorRef.current.focus();\n }\n }\n }), [currentOperator]);\n return /*#__PURE__*/_jsxs(GridFilterFormRoot, _extends({\n className: classes.root,\n \"data-id\": item.id,\n ownerState: rootProps\n }, other, {\n ref: ref,\n children: [/*#__PURE__*/_jsx(FilterFormDeleteIcon, _extends({}, deleteIconProps, {\n className: clsx(classes.deleteIcon, deleteIconProps.className),\n ownerState: rootProps,\n children: /*#__PURE__*/_jsx(rootProps.slots.baseIconButton, _extends({\n \"aria-label\": apiRef.current.getLocaleText('filterPanelDeleteIconLabel'),\n title: apiRef.current.getLocaleText('filterPanelDeleteIconLabel'),\n onClick: handleDeleteFilter,\n size: \"small\",\n disabled: readOnly\n }, rootProps.slotProps?.baseIconButton, {\n children: /*#__PURE__*/_jsx(rootProps.slots.filterPanelDeleteIcon, {\n fontSize: \"small\"\n })\n }))\n })), /*#__PURE__*/_jsx(FilterFormLogicOperatorInput, _extends({\n as: rootProps.slots.baseSelect,\n sx: [hasLogicOperatorColumn ? {\n display: 'flex'\n } : {\n display: 'none'\n }, showMultiFilterOperators ? {\n visibility: 'visible'\n } : {\n visibility: 'hidden'\n }, logicOperatorInputProps.sx],\n className: clsx(classes.logicOperatorInput, logicOperatorInputProps.className),\n ownerState: rootProps\n }, logicOperatorInputProps, {\n size: \"small\",\n slotProps: {\n htmlInput: {\n 'aria-label': apiRef.current.getLocaleText('filterPanelLogicOperator')\n }\n },\n value: multiFilterOperator ?? '',\n onChange: changeLogicOperator,\n disabled: !!disableMultiFilterOperator || logicOperators.length === 1,\n native: isBaseSelectNative\n }, rootProps.slotProps?.baseSelect, {\n children: logicOperators.map(logicOperator => /*#__PURE__*/_createElement(rootProps.slots.baseSelectOption, _extends({}, baseSelectOptionProps, {\n native: isBaseSelectNative,\n key: logicOperator.toString(),\n value: logicOperator.toString()\n }), apiRef.current.getLocaleText(getLogicOperatorLocaleKey(logicOperator))))\n })), /*#__PURE__*/_jsx(FilterFormColumnInput, _extends({\n as: rootProps.slots.baseSelect\n }, columnInputProps, {\n className: clsx(classes.columnInput, columnInputProps.className),\n ownerState: rootProps,\n size: \"small\",\n labelId: columnSelectLabelId,\n id: columnSelectId,\n label: apiRef.current.getLocaleText('filterPanelColumns'),\n value: selectedField ?? '',\n onChange: changeColumn,\n native: isBaseSelectNative,\n disabled: readOnly\n }, rootProps.slotProps?.baseSelect, {\n children: sortedFilteredColumns.map(col => /*#__PURE__*/_createElement(rootProps.slots.baseSelectOption, _extends({}, baseSelectOptionProps, {\n native: isBaseSelectNative,\n key: col.field,\n value: col.field\n }), getColumnLabel(col)))\n })), /*#__PURE__*/_jsx(FilterFormOperatorInput, _extends({\n as: rootProps.slots.baseSelect,\n size: \"small\"\n }, operatorInputProps, {\n className: clsx(classes.operatorInput, operatorInputProps.className),\n ownerState: rootProps,\n labelId: operatorSelectLabelId,\n label: apiRef.current.getLocaleText('filterPanelOperator'),\n id: operatorSelectId,\n value: item.operator,\n onChange: changeOperator,\n native: isBaseSelectNative,\n inputRef: filterSelectorRef,\n disabled: readOnly\n }, rootProps.slotProps?.baseSelect, {\n children: currentColumn?.filterOperators?.map(operator => /*#__PURE__*/_createElement(rootProps.slots.baseSelectOption, _extends({}, baseSelectOptionProps, {\n native: isBaseSelectNative,\n key: operator.value,\n value: operator.value\n }), operator.label || apiRef.current.getLocaleText(`filterOperator${capitalize(operator.value)}`)))\n })), /*#__PURE__*/_jsx(FilterFormValueInput, _extends({}, valueInputPropsOther, {\n className: clsx(classes.valueInput, valueInputPropsOther.className),\n ownerState: rootProps,\n children: currentOperator?.InputComponent ? /*#__PURE__*/_jsx(currentOperator.InputComponent, _extends({\n apiRef: apiRef,\n item: item,\n applyValue: applyFilterChanges,\n focusElementRef: valueRef,\n disabled: readOnly,\n slotProps: {\n root: {\n size: 'small'\n }\n }\n }, currentOperator.InputComponentProps, InputComponentProps), item.field) : null\n }))]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridFilterForm.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Callback called when the operator, column field or value is changed.\n * @param {GridFilterItem} item The updated [[GridFilterItem]].\n */\n applyFilterChanges: PropTypes.func.isRequired,\n /**\n * Callback called when the logic operator is changed.\n * @param {GridLogicOperator} operator The new logic operator.\n */\n applyMultiFilterOperatorChanges: PropTypes.func.isRequired,\n /**\n * @ignore - do not document.\n */\n children: PropTypes.node,\n /**\n * Props passed to the column input component.\n * @default {}\n */\n columnInputProps: PropTypes.any,\n /**\n * Changes how the options in the columns selector should be ordered.\n * If not specified, the order is derived from the `columns` prop.\n */\n columnsSort: PropTypes.oneOf(['asc', 'desc']),\n /**\n * Callback called when the delete button is clicked.\n * @param {GridFilterItem} item The deleted [[GridFilterItem]].\n */\n deleteFilter: PropTypes.func.isRequired,\n /**\n * Props passed to the delete icon.\n * @default {}\n */\n deleteIconProps: PropTypes.any,\n /**\n * If `true`, disables the logic operator field but still renders it.\n */\n disableMultiFilterOperator: PropTypes.bool,\n /**\n * Allows to filter the columns displayed in the filter form.\n * @param {FilterColumnsArgs} args The columns of the grid and name of field.\n * @returns {GridColDef['field'][]} The filtered fields array.\n */\n filterColumns: PropTypes.func,\n /**\n * A ref allowing to set imperative focus.\n * It can be passed to the el\n */\n focusElementRef: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.func, PropTypes.object]),\n /**\n * If `true`, the logic operator field is rendered.\n * The field will be invisible if `showMultiFilterOperators` is also `true`.\n */\n hasMultipleFilters: PropTypes.bool.isRequired,\n /**\n * The [[GridFilterItem]] representing this form.\n */\n item: PropTypes.shape({\n field: PropTypes.string.isRequired,\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n operator: PropTypes.string.isRequired,\n value: PropTypes.any\n }).isRequired,\n /**\n * Props passed to the logic operator input component.\n * @default {}\n */\n logicOperatorInputProps: PropTypes.any,\n /**\n * Sets the available logic operators.\n * @default [GridLogicOperator.And, GridLogicOperator.Or]\n */\n logicOperators: PropTypes.arrayOf(PropTypes.oneOf(['and', 'or']).isRequired),\n /**\n * Props passed to the operator input component.\n * @default {}\n */\n operatorInputProps: PropTypes.any,\n /**\n * `true` if the filter is disabled/read only.\n * i.e. `colDef.fiterable = false` but passed in `filterModel`\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, the logic operator field is visible.\n */\n showMultiFilterOperators: PropTypes.bool,\n /**\n * Props passed to the value input component.\n * @default {}\n */\n valueInputProps: PropTypes.any\n} : void 0;\n\n/**\n * Demos:\n * - [Filtering - overview](https://mui.com/x/react-data-grid/filtering/)\n *\n * API:\n * - [GridFilterForm API](https://mui.com/x/api/data-grid/grid-filter-form/)\n */\nexport { GridFilterForm };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"logicOperators\", \"columnsSort\", \"filterFormProps\", \"getColumnForNewFilter\", \"children\", \"disableAddFilterButton\", \"disableRemoveAllButton\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { GridLogicOperator } from \"../../../models/gridFilterItem.js\";\nimport { useGridApiContext } from \"../../../hooks/utils/useGridApiContext.js\";\nimport { GridPanelContent } from \"../GridPanelContent.js\";\nimport { GridPanelFooter } from \"../GridPanelFooter.js\";\nimport { GridPanelWrapper } from \"../GridPanelWrapper.js\";\nimport { GridFilterForm } from \"./GridFilterForm.js\";\nimport { useGridRootProps } from \"../../../hooks/utils/useGridRootProps.js\";\nimport { useGridSelector } from \"../../../hooks/utils/useGridSelector.js\";\nimport { gridFilterModelSelector } from \"../../../hooks/features/filter/gridFilterSelector.js\";\nimport { gridFilterableColumnDefinitionsSelector, gridFilterableColumnLookupSelector } from \"../../../hooks/features/columns/gridColumnsSelector.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst getGridFilter = col => ({\n field: col.field,\n operator: col.filterOperators[0].value,\n id: Math.round(Math.random() * 1e5)\n});\nconst GridFilterPanel = forwardRef(function GridFilterPanel(props, ref) {\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const filterModel = useGridSelector(apiRef, gridFilterModelSelector);\n const filterableColumns = useGridSelector(apiRef, gridFilterableColumnDefinitionsSelector);\n const filterableColumnsLookup = useGridSelector(apiRef, gridFilterableColumnLookupSelector);\n const lastFilterRef = React.useRef(null);\n const placeholderFilter = React.useRef(null);\n const {\n logicOperators = [GridLogicOperator.And, GridLogicOperator.Or],\n columnsSort,\n filterFormProps,\n getColumnForNewFilter,\n disableAddFilterButton = false,\n disableRemoveAllButton = false\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const applyFilter = apiRef.current.upsertFilterItem;\n const applyFilterLogicOperator = React.useCallback(operator => {\n apiRef.current.setFilterLogicOperator(operator);\n }, [apiRef]);\n const getDefaultFilter = React.useCallback(() => {\n let nextColumnWithOperator;\n if (getColumnForNewFilter && typeof getColumnForNewFilter === 'function') {\n // To allow override the column for default (first) filter\n const nextFieldName = getColumnForNewFilter({\n currentFilters: filterModel?.items || [],\n columns: filterableColumns\n });\n if (nextFieldName === null) {\n return null;\n }\n nextColumnWithOperator = filterableColumns.find(({\n field\n }) => field === nextFieldName);\n } else {\n nextColumnWithOperator = filterableColumns.find(colDef => colDef.filterOperators?.length);\n }\n if (!nextColumnWithOperator) {\n return null;\n }\n return getGridFilter(nextColumnWithOperator);\n }, [filterModel?.items, filterableColumns, getColumnForNewFilter]);\n const getNewFilter = React.useCallback(() => {\n if (getColumnForNewFilter === undefined || typeof getColumnForNewFilter !== 'function') {\n return getDefaultFilter();\n }\n const currentFilters = filterModel.items.length ? filterModel.items : [getDefaultFilter()].filter(Boolean);\n\n // If no items are there in filterModel, we have to pass defaultFilter\n const nextColumnFieldName = getColumnForNewFilter({\n currentFilters: currentFilters,\n columns: filterableColumns\n });\n if (nextColumnFieldName === null) {\n return null;\n }\n const nextColumnWithOperator = filterableColumns.find(({\n field\n }) => field === nextColumnFieldName);\n if (!nextColumnWithOperator) {\n return null;\n }\n return getGridFilter(nextColumnWithOperator);\n }, [filterModel.items, filterableColumns, getColumnForNewFilter, getDefaultFilter]);\n const items = React.useMemo(() => {\n if (filterModel.items.length) {\n return filterModel.items;\n }\n if (!placeholderFilter.current) {\n placeholderFilter.current = getDefaultFilter();\n }\n return placeholderFilter.current ? [placeholderFilter.current] : [];\n }, [filterModel.items, getDefaultFilter]);\n const hasMultipleFilters = items.length > 1;\n const {\n readOnlyFilters,\n validFilters\n } = React.useMemo(() => items.reduce((acc, item) => {\n if (filterableColumnsLookup[item.field]) {\n acc.validFilters.push(item);\n } else {\n acc.readOnlyFilters.push(item);\n }\n return acc;\n }, {\n readOnlyFilters: [],\n validFilters: []\n }), [items, filterableColumnsLookup]);\n const addNewFilter = React.useCallback(() => {\n const newFilter = getNewFilter();\n if (!newFilter) {\n return;\n }\n apiRef.current.upsertFilterItems([...items, newFilter]);\n }, [apiRef, getNewFilter, items]);\n const deleteFilter = React.useCallback(item => {\n const shouldCloseFilterPanel = validFilters.length === 1;\n apiRef.current.deleteFilterItem(item);\n if (shouldCloseFilterPanel) {\n apiRef.current.hideFilterPanel();\n }\n }, [apiRef, validFilters.length]);\n const handleRemoveAll = React.useCallback(() => {\n if (validFilters.length === 1 && validFilters[0].value === undefined) {\n apiRef.current.deleteFilterItem(validFilters[0]);\n return apiRef.current.hideFilterPanel();\n }\n return apiRef.current.setFilterModel(_extends({}, filterModel, {\n items: readOnlyFilters\n }), 'removeAllFilterItems');\n }, [apiRef, readOnlyFilters, filterModel, validFilters]);\n React.useEffect(() => {\n if (logicOperators.length > 0 && filterModel.logicOperator && !logicOperators.includes(filterModel.logicOperator)) {\n applyFilterLogicOperator(logicOperators[0]);\n }\n }, [logicOperators, applyFilterLogicOperator, filterModel.logicOperator]);\n React.useEffect(() => {\n if (validFilters.length > 0) {\n lastFilterRef.current.focus();\n }\n }, [validFilters.length]);\n return /*#__PURE__*/_jsxs(GridPanelWrapper, _extends({}, other, {\n ref: ref,\n children: [/*#__PURE__*/_jsxs(GridPanelContent, {\n children: [readOnlyFilters.map((item, index) => /*#__PURE__*/_jsx(GridFilterForm, _extends({\n item: item,\n applyFilterChanges: applyFilter,\n deleteFilter: deleteFilter,\n hasMultipleFilters: hasMultipleFilters,\n showMultiFilterOperators: index > 0,\n disableMultiFilterOperator: index !== 1,\n applyMultiFilterOperatorChanges: applyFilterLogicOperator,\n focusElementRef: null,\n readOnly: true,\n logicOperators: logicOperators,\n columnsSort: columnsSort\n }, filterFormProps), item.id == null ? index : item.id)), validFilters.map((item, index) => /*#__PURE__*/_jsx(GridFilterForm, _extends({\n item: item,\n applyFilterChanges: applyFilter,\n deleteFilter: deleteFilter,\n hasMultipleFilters: hasMultipleFilters,\n showMultiFilterOperators: readOnlyFilters.length + index > 0,\n disableMultiFilterOperator: readOnlyFilters.length + index !== 1,\n applyMultiFilterOperatorChanges: applyFilterLogicOperator,\n focusElementRef: index === validFilters.length - 1 ? lastFilterRef : null,\n logicOperators: logicOperators,\n columnsSort: columnsSort\n }, filterFormProps), item.id == null ? index + readOnlyFilters.length : item.id))]\n }), !rootProps.disableMultipleColumnsFiltering && !(disableAddFilterButton && disableRemoveAllButton) ? /*#__PURE__*/_jsxs(GridPanelFooter, {\n children: [!disableAddFilterButton ? /*#__PURE__*/_jsx(rootProps.slots.baseButton, _extends({\n onClick: addNewFilter,\n startIcon: /*#__PURE__*/_jsx(rootProps.slots.filterPanelAddIcon, {})\n }, rootProps.slotProps?.baseButton, {\n children: apiRef.current.getLocaleText('filterPanelAddFilter')\n })) : /*#__PURE__*/_jsx(\"span\", {}), !disableRemoveAllButton && validFilters.length > 0 ? /*#__PURE__*/_jsx(rootProps.slots.baseButton, _extends({\n onClick: handleRemoveAll,\n startIcon: /*#__PURE__*/_jsx(rootProps.slots.filterPanelRemoveAllIcon, {})\n }, rootProps.slotProps?.baseButton, {\n children: apiRef.current.getLocaleText('filterPanelRemoveAll')\n })) : null]\n }) : null]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridFilterPanel.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * @ignore - do not document.\n */\n children: PropTypes.node,\n /**\n * Changes how the options in the columns selector should be ordered.\n * If not specified, the order is derived from the `columns` prop.\n */\n columnsSort: PropTypes.oneOf(['asc', 'desc']),\n /**\n * If `true`, the `Add filter` button will not be displayed.\n * @default false\n */\n disableAddFilterButton: PropTypes.bool,\n /**\n * If `true`, the `Remove all` button will be disabled\n * @default false\n */\n disableRemoveAllButton: PropTypes.bool,\n /**\n * Props passed to each filter form.\n */\n filterFormProps: PropTypes.shape({\n columnInputProps: PropTypes.any,\n columnsSort: PropTypes.oneOf(['asc', 'desc']),\n deleteIconProps: PropTypes.any,\n filterColumns: PropTypes.func,\n logicOperatorInputProps: PropTypes.any,\n operatorInputProps: PropTypes.any,\n valueInputProps: PropTypes.any\n }),\n /**\n * Function that returns the next filter item to be picked as default filter.\n * @param {GetColumnForNewFilterArgs} args Currently configured filters and columns.\n * @returns {GridColDef['field']} The field to be used for the next filter or `null` to prevent adding a filter.\n */\n getColumnForNewFilter: PropTypes.func,\n /**\n * Sets the available logic operators.\n * @default [GridLogicOperator.And, GridLogicOperator.Or]\n */\n logicOperators: PropTypes.arrayOf(PropTypes.oneOf(['and', 'or']).isRequired),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\n\n/**\n * Demos:\n * - [Filtering - overview](https://mui.com/x/react-data-grid/filtering/)\n *\n * API:\n * - [GridFilterPanel API](https://mui.com/x/api/data-grid/grid-filter-panel/)\n */\nexport { GridFilterPanel, getGridFilter };","export const checkColumnVisibilityModelsSame = (a, b) => {\n // Filter `false` values only, as `true` and not having a key are the same\n const aFalseValues = new Set(Object.keys(a).filter(key => a[key] === false));\n const bFalseValues = new Set(Object.keys(b).filter(key => b[key] === false));\n if (aFalseValues.size !== bFalseValues.size) {\n return false;\n }\n let result = true;\n aFalseValues.forEach(key => {\n if (!bFalseValues.has(key)) {\n result = false;\n }\n });\n return result;\n};\nexport const defaultSearchPredicate = (column, searchValue) => (column.headerName || column.field).toLowerCase().indexOf(searchValue) > -1;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled, keyframes } from '@mui/system';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst reveal = keyframes({\n from: {\n opacity: 0\n },\n to: {\n opacity: 1\n }\n});\nconst detectScroll = keyframes({\n 'from, to': {\n '--scrollable': '\" \"'\n }\n});\n\n// This `styled()` function invokes keyframes. `styled-components` only supports keyframes\n// in string templates. Do not convert these styles in JS object as it will break.\nconst ShadowScrollArea = styled('div', {\n name: 'MuiDataGrid',\n slot: 'ShadowScrollArea'\n})`\n flex: 1;\n display: flex;\n flex-direction: column;\n animation: ${detectScroll};\n animation-timeline: --scroll-timeline;\n animation-fill-mode: none;\n box-sizing: border-box;\n overflow: auto;\n scrollbar-width: thin;\n scroll-timeline: --scroll-timeline block;\n\n &::before,\n &::after {\n content: '';\n flex-shrink: 0;\n display: block;\n position: sticky;\n left: 0;\n width: 100%;\n height: 4px;\n animation: ${reveal} linear both;\n animation-timeline: --scroll-timeline;\n\n // Custom property toggle trick:\n // - Detects if the element is scrollable\n // - https://css-tricks.com/the-css-custom-property-toggle-trick/\n --visibility-scrollable: var(--scrollable) visible;\n --visibility-not-scrollable: hidden;\n visibility: var(--visibility-scrollable, var(--visibility-not-scrollable));\n }\n\n &::before {\n top: 0;\n background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0, transparent 100%);\n animation-range: 0 4px;\n }\n\n &::after {\n bottom: 0;\n background: linear-gradient(to top, rgba(0, 0, 0, 0.05) 0, transparent 100%);\n animation-direction: reverse;\n animation-range: calc(100% - 4px) 100%;\n }\n`;\n\n/**\n * Adds scroll shadows above and below content in a scrollable container.\n */\nconst GridShadowScrollArea = forwardRef(function GridShadowScrollArea(props, ref) {\n const {\n children\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded);\n return /*#__PURE__*/_jsx(ShadowScrollArea, _extends({}, rest, {\n ref: ref,\n children: children\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridShadowScrollArea.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n children: PropTypes.node\n} : void 0;\nexport { GridShadowScrollArea };","import _extends from \"@babel/runtime/helpers/esm/extends\";\n/* eslint-disable @typescript-eslint/no-use-before-define */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from '@mui/material/styles';\nimport { inputBaseClasses } from '@mui/material/InputBase';\nimport { vars } from \"../../constants/cssVariables.js\";\nimport { gridColumnDefinitionsSelector, gridColumnVisibilityModelSelector, gridInitialColumnVisibilityModelSelector } from \"../../hooks/features/columns/gridColumnsSelector.js\";\nimport { useGridSelector } from \"../../hooks/utils/useGridSelector.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { checkColumnVisibilityModelsSame, defaultSearchPredicate } from \"./utils.js\";\nimport { NotRendered } from \"../../utils/assert.js\";\nimport { GridShadowScrollArea } from \"../GridShadowScrollArea.js\";\nimport { gridPivotActiveSelector, gridPivotInitialColumnsSelector } from \"../../hooks/features/pivoting/gridPivotingSelectors.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['columnsManagement'],\n header: ['columnsManagementHeader'],\n searchInput: ['columnsManagementSearchInput'],\n footer: ['columnsManagementFooter'],\n row: ['columnsManagementRow']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst collator = new Intl.Collator();\nfunction GridColumnsManagement(props) {\n const apiRef = useGridApiContext();\n const searchInputRef = React.useRef(null);\n const initialColumnVisibilityModel = useGridSelector(apiRef, gridInitialColumnVisibilityModelSelector);\n const columnVisibilityModel = useGridSelector(apiRef, gridColumnVisibilityModelSelector);\n const rootProps = useGridRootProps();\n const [searchValue, setSearchValue] = React.useState('');\n const classes = useUtilityClasses(rootProps);\n const columnDefinitions = useGridSelector(apiRef, gridColumnDefinitionsSelector);\n const pivotActive = useGridSelector(apiRef, gridPivotActiveSelector);\n const pivotInitialColumns = useGridSelector(apiRef, gridPivotInitialColumnsSelector);\n const columns = React.useMemo(() => pivotActive ? Array.from(pivotInitialColumns.values()) : columnDefinitions, [pivotActive, pivotInitialColumns, columnDefinitions]);\n const {\n sort,\n searchPredicate = defaultSearchPredicate,\n autoFocusSearchField = true,\n disableShowHideToggle = false,\n disableResetButton = false,\n toggleAllMode = 'all',\n getTogglableColumns,\n searchInputProps\n } = props;\n const isResetDisabled = React.useMemo(() => checkColumnVisibilityModelsSame(columnVisibilityModel, initialColumnVisibilityModel), [columnVisibilityModel, initialColumnVisibilityModel]);\n const sortedColumns = React.useMemo(() => {\n switch (sort) {\n case 'asc':\n return [...columns].sort((a, b) => collator.compare(a.headerName || a.field, b.headerName || b.field));\n case 'desc':\n return [...columns].sort((a, b) => -collator.compare(a.headerName || a.field, b.headerName || b.field));\n default:\n return columns;\n }\n }, [columns, sort]);\n const toggleColumn = event => {\n const {\n name: field\n } = event.target;\n apiRef.current.setColumnVisibility(field, columnVisibilityModel[field] === false);\n };\n const currentColumns = React.useMemo(() => {\n const togglableColumns = getTogglableColumns ? getTogglableColumns(sortedColumns) : null;\n const togglableSortedColumns = togglableColumns ? sortedColumns.filter(({\n field\n }) => togglableColumns.includes(field)) : sortedColumns;\n if (!searchValue) {\n return togglableSortedColumns;\n }\n return togglableSortedColumns.filter(column => searchPredicate(column, searchValue.toLowerCase()));\n }, [sortedColumns, searchValue, searchPredicate, getTogglableColumns]);\n const toggleAllColumns = React.useCallback(isVisible => {\n const currentModel = gridColumnVisibilityModelSelector(apiRef);\n const newModel = _extends({}, currentModel);\n const togglableColumns = getTogglableColumns ? getTogglableColumns(columns) : null;\n (toggleAllMode === 'filteredOnly' ? currentColumns : columns).forEach(col => {\n if (col.hideable && (togglableColumns == null || togglableColumns.includes(col.field))) {\n if (isVisible) {\n // delete the key from the model instead of setting it to `true`\n delete newModel[col.field];\n } else {\n newModel[col.field] = false;\n }\n }\n });\n return apiRef.current.setColumnVisibilityModel(newModel);\n }, [apiRef, columns, getTogglableColumns, toggleAllMode, currentColumns]);\n const handleSearchValueChange = React.useCallback(event => {\n setSearchValue(event.target.value);\n }, []);\n const hideableColumns = React.useMemo(() => currentColumns.filter(col => col.hideable), [currentColumns]);\n const allHideableColumnsVisible = React.useMemo(() => hideableColumns.every(column => columnVisibilityModel[column.field] == null || columnVisibilityModel[column.field] !== false), [columnVisibilityModel, hideableColumns]);\n const allHideableColumnsHidden = React.useMemo(() => hideableColumns.every(column => columnVisibilityModel[column.field] === false), [columnVisibilityModel, hideableColumns]);\n const firstSwitchRef = React.useRef(null);\n React.useEffect(() => {\n if (autoFocusSearchField) {\n searchInputRef.current?.focus();\n } else if (firstSwitchRef.current && typeof firstSwitchRef.current.focus === 'function') {\n firstSwitchRef.current.focus();\n }\n }, [autoFocusSearchField]);\n let firstHideableColumnFound = false;\n const isFirstHideableColumn = column => {\n if (firstHideableColumnFound === false && column.hideable !== false) {\n firstHideableColumnFound = true;\n return true;\n }\n return false;\n };\n const handleSearchReset = React.useCallback(() => {\n setSearchValue('');\n searchInputRef.current?.focus();\n }, []);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(GridColumnsManagementHeader, {\n className: classes.header,\n ownerState: rootProps,\n children: /*#__PURE__*/_jsx(SearchInput, _extends({\n as: rootProps.slots.baseTextField,\n ownerState: rootProps,\n placeholder: apiRef.current.getLocaleText('columnsManagementSearchTitle'),\n inputRef: searchInputRef,\n className: classes.searchInput,\n value: searchValue,\n onChange: handleSearchValueChange,\n size: \"small\",\n type: \"search\",\n slotProps: {\n input: {\n startAdornment: /*#__PURE__*/_jsx(rootProps.slots.quickFilterIcon, {\n fontSize: \"small\"\n }),\n endAdornment: /*#__PURE__*/_jsx(rootProps.slots.baseIconButton, _extends({\n size: \"small\",\n \"aria-label\": apiRef.current.getLocaleText('columnsManagementDeleteIconLabel'),\n style: searchValue ? {\n visibility: 'visible'\n } : {\n visibility: 'hidden'\n },\n tabIndex: -1,\n onClick: handleSearchReset,\n edge: \"end\"\n }, rootProps.slotProps?.baseIconButton, {\n children: /*#__PURE__*/_jsx(rootProps.slots.quickFilterClearIcon, {\n fontSize: \"small\"\n })\n }))\n },\n htmlInput: {\n 'aria-label': apiRef.current.getLocaleText('columnsManagementSearchTitle')\n }\n },\n autoComplete: \"off\",\n fullWidth: true\n }, rootProps.slotProps?.baseTextField, searchInputProps))\n }), /*#__PURE__*/_jsx(GridColumnsManagementScrollArea, {\n ownerState: rootProps,\n children: /*#__PURE__*/_jsxs(GridColumnsManagementBody, {\n className: classes.root,\n ownerState: rootProps,\n children: [currentColumns.map(column => /*#__PURE__*/_jsx(rootProps.slots.baseCheckbox, _extends({\n className: classes.row,\n disabled: column.hideable === false || pivotActive,\n checked: columnVisibilityModel[column.field] !== false,\n onClick: toggleColumn,\n name: column.field,\n inputRef: isFirstHideableColumn(column) ? firstSwitchRef : undefined,\n label: column.headerName || column.field,\n density: \"compact\",\n fullWidth: true\n }, rootProps.slotProps?.baseCheckbox), column.field)), currentColumns.length === 0 && /*#__PURE__*/_jsx(GridColumnsManagementEmptyText, {\n ownerState: rootProps,\n children: apiRef.current.getLocaleText('columnsManagementNoColumns')\n })]\n })\n }), !disableShowHideToggle || !disableResetButton ? /*#__PURE__*/_jsxs(GridColumnsManagementFooter, {\n ownerState: rootProps,\n className: classes.footer,\n children: [!disableShowHideToggle ? /*#__PURE__*/_jsx(rootProps.slots.baseCheckbox, _extends({\n disabled: hideableColumns.length === 0 || pivotActive,\n checked: allHideableColumnsVisible,\n indeterminate: !allHideableColumnsVisible && !allHideableColumnsHidden,\n onClick: () => toggleAllColumns(!allHideableColumnsVisible),\n name: apiRef.current.getLocaleText('columnsManagementShowHideAllText'),\n label: apiRef.current.getLocaleText('columnsManagementShowHideAllText'),\n density: \"compact\"\n }, rootProps.slotProps?.baseCheckbox)) : /*#__PURE__*/_jsx(\"span\", {}), !disableResetButton ? /*#__PURE__*/_jsx(rootProps.slots.baseButton, _extends({\n onClick: () => apiRef.current.setColumnVisibilityModel(initialColumnVisibilityModel),\n disabled: isResetDisabled || pivotActive\n }, rootProps.slotProps?.baseButton, {\n children: apiRef.current.getLocaleText('columnsManagementReset')\n })) : null]\n }) : null]\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GridColumnsManagement.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * If `true`, the column search field will be focused automatically.\n * If `false`, the first column switch input will be focused automatically.\n * This helps to avoid input keyboard panel to popup automatically on touch devices.\n * @default true\n */\n autoFocusSearchField: PropTypes.bool,\n /**\n * If `true`, the `Reset` button will not be disabled\n * @default false\n */\n disableResetButton: PropTypes.bool,\n /**\n * If `true`, the `Show/Hide all` toggle checkbox will not be displayed.\n * @default false\n */\n disableShowHideToggle: PropTypes.bool,\n /**\n * Returns the list of togglable columns.\n * If used, only those columns will be displayed in the panel\n * which are passed as the return value of the function.\n * @param {GridColDef[]} columns The `ColDef` list of all columns.\n * @returns {GridColDef['field'][]} The list of togglable columns' field names.\n */\n getTogglableColumns: PropTypes.func,\n searchInputProps: PropTypes.object,\n searchPredicate: PropTypes.func,\n sort: PropTypes.oneOf(['asc', 'desc']),\n /**\n * Changes the behavior of the `Show/Hide All` toggle when the search field is used:\n * - `all`: Will toggle all columns.\n * - `filteredOnly`: Will only toggle columns that match the search criteria.\n * @default 'all'\n */\n toggleAllMode: PropTypes.oneOf(['all', 'filteredOnly'])\n} : void 0;\nconst GridColumnsManagementBody = styled('div', {\n name: 'MuiDataGrid',\n slot: 'ColumnsManagement'\n})({\n display: 'flex',\n flexDirection: 'column',\n padding: vars.spacing(0.5, 1.5)\n});\nconst GridColumnsManagementScrollArea = styled(GridShadowScrollArea, {\n name: 'MuiDataGrid',\n slot: 'ColumnsManagementScrollArea'\n})({\n maxHeight: 300\n});\nconst GridColumnsManagementHeader = styled('div', {\n name: 'MuiDataGrid',\n slot: 'ColumnsManagementHeader'\n})({\n padding: vars.spacing(1.5, 2),\n borderBottom: `1px solid ${vars.colors.border.base}`\n});\nconst SearchInput = styled(NotRendered, {\n name: 'MuiDataGrid',\n slot: 'ColumnsManagementSearchInput'\n})({\n [`& .${inputBaseClasses.input}::-webkit-search-decoration,\n & .${inputBaseClasses.input}::-webkit-search-cancel-button,\n & .${inputBaseClasses.input}::-webkit-search-results-button,\n & .${inputBaseClasses.input}::-webkit-search-results-decoration`]: {\n /* clears the 'X' icon from Chrome */\n display: 'none'\n }\n});\nconst GridColumnsManagementFooter = styled('div', {\n name: 'MuiDataGrid',\n slot: 'ColumnsManagementFooter'\n})({\n padding: vars.spacing(1, 1, 1, 1.5),\n display: 'flex',\n justifyContent: 'space-between',\n borderTop: `1px solid ${vars.colors.border.base}`\n});\nconst GridColumnsManagementEmptyText = styled('div', {\n name: 'MuiDataGrid',\n slot: 'ColumnsManagementEmptyText'\n})({\n padding: vars.spacing(1, 0),\n alignSelf: 'center',\n font: vars.typography.font.body\n});\nexport { GridColumnsManagement };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_useId as useId, unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { isHideMenuKey } from \"../../utils/keyboardUtils.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { GridMenu } from \"../menu/GridMenu.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { gridClasses } from \"../../constants/gridClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst GridToolbarExportContainer = forwardRef(function GridToolbarExportContainer(props, ref) {\n const {\n children,\n slotProps = {}\n } = props;\n const buttonProps = slotProps.button || {};\n const tooltipProps = slotProps.tooltip || {};\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const exportButtonId = useId();\n const exportMenuId = useId();\n const [open, setOpen] = React.useState(false);\n const buttonRef = React.useRef(null);\n const handleRef = useForkRef(ref, buttonRef);\n const handleMenuOpen = event => {\n setOpen(prevOpen => !prevOpen);\n buttonProps.onClick?.(event);\n };\n const handleMenuClose = () => setOpen(false);\n const handleListKeyDown = event => {\n if (event.key === 'Tab') {\n event.preventDefault();\n }\n if (isHideMenuKey(event.key)) {\n handleMenuClose();\n }\n };\n if (children == null) {\n return null;\n }\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(rootProps.slots.baseTooltip, _extends({\n title: apiRef.current.getLocaleText('toolbarExportLabel'),\n enterDelay: 1000\n }, rootProps.slotProps?.baseTooltip, tooltipProps, {\n children: /*#__PURE__*/_jsx(rootProps.slots.baseButton, _extends({\n size: \"small\",\n startIcon: /*#__PURE__*/_jsx(rootProps.slots.exportIcon, {}),\n \"aria-expanded\": open,\n \"aria-label\": apiRef.current.getLocaleText('toolbarExportLabel'),\n \"aria-haspopup\": \"menu\",\n \"aria-controls\": open ? exportMenuId : undefined,\n id: exportButtonId\n }, rootProps.slotProps?.baseButton, buttonProps, {\n onClick: handleMenuOpen,\n ref: handleRef,\n children: apiRef.current.getLocaleText('toolbarExport')\n }))\n })), /*#__PURE__*/_jsx(GridMenu, {\n open: open,\n target: buttonRef.current,\n onClose: handleMenuClose,\n position: \"bottom-end\",\n children: /*#__PURE__*/_jsx(rootProps.slots.baseMenuList, {\n id: exportMenuId,\n className: gridClasses.menuList,\n \"aria-labelledby\": exportButtonId,\n onKeyDown: handleListKeyDown,\n autoFocusItem: open,\n children: React.Children.map(children, child => {\n if (! /*#__PURE__*/React.isValidElement(child)) {\n return child;\n }\n return /*#__PURE__*/React.cloneElement(child, {\n hideMenu: handleMenuClose\n });\n })\n })\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? GridToolbarExportContainer.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.object\n} : void 0;\nexport { GridToolbarExportContainer };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"hideMenu\", \"options\"],\n _excluded2 = [\"hideMenu\", \"options\"],\n _excluded3 = [\"csvOptions\", \"printOptions\", \"excelOptions\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { GridToolbarExportContainer } from \"./GridToolbarExportContainer.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GridCsvExportMenuItem(props) {\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const {\n hideMenu,\n options\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n return /*#__PURE__*/_jsx(rootProps.slots.baseMenuItem, _extends({\n onClick: () => {\n apiRef.current.exportDataAsCsv(options);\n hideMenu?.();\n }\n }, other, {\n children: apiRef.current.getLocaleText('toolbarExportCSV')\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridCsvExportMenuItem.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n hideMenu: PropTypes.func,\n options: PropTypes.shape({\n allColumns: PropTypes.bool,\n delimiter: PropTypes.string,\n disableToolbarButton: PropTypes.bool,\n escapeFormulas: PropTypes.bool,\n fields: PropTypes.arrayOf(PropTypes.string),\n fileName: PropTypes.string,\n getRowsToExport: PropTypes.func,\n includeColumnGroupsHeaders: PropTypes.bool,\n includeHeaders: PropTypes.bool,\n shouldAppendQuotes: PropTypes.bool,\n utf8WithBom: PropTypes.bool\n })\n} : void 0;\nfunction GridPrintExportMenuItem(props) {\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const {\n hideMenu,\n options\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n return /*#__PURE__*/_jsx(rootProps.slots.baseMenuItem, _extends({\n onClick: () => {\n apiRef.current.exportDataAsPrint(options);\n hideMenu?.();\n }\n }, other, {\n children: apiRef.current.getLocaleText('toolbarExportPrint')\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridPrintExportMenuItem.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n hideMenu: PropTypes.func,\n options: PropTypes.shape({\n allColumns: PropTypes.bool,\n bodyClassName: PropTypes.string,\n copyStyles: PropTypes.bool,\n disableToolbarButton: PropTypes.bool,\n fields: PropTypes.arrayOf(PropTypes.string),\n fileName: PropTypes.string,\n getRowsToExport: PropTypes.func,\n hideFooter: PropTypes.bool,\n hideToolbar: PropTypes.bool,\n includeCheckboxes: PropTypes.bool,\n pageStyle: PropTypes.oneOfType([PropTypes.func, PropTypes.string])\n })\n} : void 0;\n\n/**\n * @deprecated Use the {@link https://mui.com/x/react-data-grid/components/export/ Export} components instead. This component will be removed in a future major release.\n */\nconst GridToolbarExport = forwardRef(function GridToolbarExport(props, ref) {\n const _ref = props,\n {\n csvOptions = {},\n printOptions = {},\n excelOptions\n } = _ref,\n other = _objectWithoutPropertiesLoose(_ref, _excluded3);\n const apiRef = useGridApiContext();\n const preProcessedButtons = apiRef.current.unstable_applyPipeProcessors('exportMenu', [], {\n excelOptions,\n csvOptions,\n printOptions\n }).sort((a, b) => a.componentName > b.componentName ? 1 : -1);\n if (preProcessedButtons.length === 0) {\n return null;\n }\n return /*#__PURE__*/_jsx(GridToolbarExportContainer, _extends({}, other, {\n ref: ref,\n children: preProcessedButtons.map((button, index) => /*#__PURE__*/React.cloneElement(button.component, {\n key: index\n }))\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridToolbarExport.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n csvOptions: PropTypes.object,\n printOptions: PropTypes.object,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.object\n} : void 0;\nexport { GridToolbarExport, GridCsvExportMenuItem, GridPrintExportMenuItem };","/**\n * Based on `fast-deep-equal`\n *\n * MIT License\n *\n * Copyright (c) 2017 Evgeny Poberezkin\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\n/**\n * Check if two values are deeply equal.\n */\n\nexport function isDeepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (a && b && typeof a === 'object' && typeof b === 'object') {\n if (a.constructor !== b.constructor) {\n return false;\n }\n if (Array.isArray(a)) {\n const length = a.length;\n if (length !== b.length) {\n return false;\n }\n for (let i = 0; i < length; i += 1) {\n if (!isDeepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n if (a instanceof Map && b instanceof Map) {\n if (a.size !== b.size) {\n return false;\n }\n const entriesA = Array.from(a.entries());\n for (let i = 0; i < entriesA.length; i += 1) {\n if (!b.has(entriesA[i][0])) {\n return false;\n }\n }\n for (let i = 0; i < entriesA.length; i += 1) {\n const entryA = entriesA[i];\n if (!isDeepEqual(entryA[1], b.get(entryA[0]))) {\n return false;\n }\n }\n return true;\n }\n if (a instanceof Set && b instanceof Set) {\n if (a.size !== b.size) {\n return false;\n }\n const entries = Array.from(a.entries());\n for (let i = 0; i < entries.length; i += 1) {\n if (!b.has(entries[i][0])) {\n return false;\n }\n }\n return true;\n }\n if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {\n const length = a.length;\n if (length !== b.length) {\n return false;\n }\n for (let i = 0; i < length; i += 1) {\n if (a[i] !== b[i]) {\n return false;\n }\n }\n return true;\n }\n if (a.constructor === RegExp) {\n return a.source === b.source && a.flags === b.flags;\n }\n if (a.valueOf !== Object.prototype.valueOf) {\n return a.valueOf() === b.valueOf();\n }\n if (a.toString !== Object.prototype.toString) {\n return a.toString() === b.toString();\n }\n const keys = Object.keys(a);\n const length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (let i = 0; i < length; i += 1) {\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (let i = 0; i < length; i += 1) {\n const key = keys[i];\n if (!isDeepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n\n // true if both NaN, false otherwise\n // eslint-disable-next-line no-self-compare\n return a !== a && b !== b;\n}","import * as React from 'react';\nexport const QuickFilterContext = /*#__PURE__*/React.createContext(undefined);\nexport function useQuickFilterContext() {\n const context = React.useContext(QuickFilterContext);\n if (context === undefined) {\n throw new Error('MUI X: Missing context. Quick Filter subcomponents must be placed within a <QuickFilter /> component.');\n }\n return context;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"render\", \"className\", \"parser\", \"formatter\", \"debounceMs\", \"defaultExpanded\", \"expanded\", \"onExpandedChange\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_debounce as debounce } from '@mui/utils';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport useId from '@mui/utils/useId';\nimport { isDeepEqual } from '@mui/x-internals/isDeepEqual';\nimport { QuickFilterContext } from \"./QuickFilterContext.js\";\nimport { useGridComponentRenderer } from \"../../hooks/utils/useGridComponentRenderer.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { useGridSelector } from \"../../hooks/utils/useGridSelector.js\";\nimport { gridQuickFilterValuesSelector } from \"../../hooks/features/filter/index.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DEFAULT_PARSER = searchText => searchText.split(' ').filter(word => word !== '');\nconst DEFAULT_FORMATTER = values => values.join(' ');\n\n/**\n * The top level Quick Filter component that provides context to child components.\n * It renders a `<div />` element.\n *\n * Demos:\n *\n * - [Quick Filter](https://mui.com/x/react-data-grid/components/quick-filter/)\n *\n * API:\n *\n * - [QuickFilter API](https://mui.com/x/api/data-grid/quick-filter/)\n */\nfunction QuickFilter(props) {\n const rootProps = useGridRootProps();\n const {\n render,\n className,\n parser = DEFAULT_PARSER,\n formatter = DEFAULT_FORMATTER,\n debounceMs = rootProps.filterDebounceMs,\n defaultExpanded,\n expanded,\n onExpandedChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridApiContext();\n const controlRef = React.useRef(null);\n const triggerRef = React.useRef(null);\n const quickFilterValues = useGridSelector(apiRef, gridQuickFilterValuesSelector);\n const [value, setValue] = React.useState(formatter(quickFilterValues ?? []));\n const [internalExpanded, setInternalExpanded] = React.useState(defaultExpanded ?? value.length > 0);\n const expandedValue = expanded ?? internalExpanded;\n const state = React.useMemo(() => ({\n value,\n expanded: expandedValue\n }), [value, expandedValue]);\n const resolvedClassName = typeof className === 'function' ? className(state) : className;\n const ref = React.useRef(null);\n const controlId = useId();\n const handleExpandedChange = React.useCallback(newExpanded => {\n if (onExpandedChange) {\n onExpandedChange(newExpanded);\n }\n if (expanded === undefined) {\n setInternalExpanded(newExpanded);\n }\n }, [onExpandedChange, expanded]);\n const prevQuickFilterValuesRef = React.useRef(quickFilterValues);\n React.useEffect(() => {\n if (!isDeepEqual(prevQuickFilterValuesRef.current, quickFilterValues)) {\n // The model of quick filter value has been updated\n prevQuickFilterValuesRef.current = quickFilterValues;\n\n // Update the input value if needed to match the new model\n setValue(prevSearchValue => isDeepEqual(parser(prevSearchValue), quickFilterValues) ? prevSearchValue : formatter(quickFilterValues ?? []));\n }\n }, [quickFilterValues, formatter, parser]);\n const isFirstRender = React.useRef(true);\n const previousExpandedValue = React.useRef(expandedValue);\n React.useEffect(() => {\n if (isFirstRender.current) {\n isFirstRender.current = false;\n return;\n }\n\n // Ensure the expanded state has actually changed before focusing\n if (previousExpandedValue.current !== expandedValue) {\n if (expandedValue) {\n // Ensures the focus does not interupt CSS transitions and animations on the control\n requestAnimationFrame(() => {\n controlRef.current?.focus({\n preventScroll: true\n });\n });\n } else {\n triggerRef.current?.focus({\n preventScroll: true\n });\n }\n previousExpandedValue.current = expandedValue;\n }\n }, [expandedValue]);\n const setQuickFilterValueDebounced = React.useMemo(() => debounce(newValue => {\n const newQuickFilterValues = parser(newValue);\n prevQuickFilterValuesRef.current = newQuickFilterValues;\n apiRef.current.setQuickFilterValues(newQuickFilterValues);\n }, debounceMs), [apiRef, debounceMs, parser]);\n React.useEffect(() => setQuickFilterValueDebounced.clear, [setQuickFilterValueDebounced]);\n const handleValueChange = React.useCallback(event => {\n const newValue = event.target.value;\n setValue(newValue);\n setQuickFilterValueDebounced(newValue);\n }, [setQuickFilterValueDebounced]);\n const handleClearValue = React.useCallback(() => {\n setValue('');\n apiRef.current.setQuickFilterValues([]);\n controlRef.current?.focus();\n }, [apiRef, controlRef]);\n const contextValue = React.useMemo(() => ({\n controlRef,\n triggerRef,\n state,\n controlId,\n clearValue: handleClearValue,\n onValueChange: handleValueChange,\n onExpandedChange: handleExpandedChange\n }), [controlId, state, handleValueChange, handleClearValue, handleExpandedChange]);\n useEnhancedEffect(() => {\n if (ref.current && triggerRef.current) {\n ref.current.style.setProperty('--trigger-width', `${triggerRef.current?.offsetWidth}px`);\n }\n }, []);\n const element = useGridComponentRenderer('div', render, _extends({\n className: resolvedClassName\n }, other, {\n ref\n }), state);\n return /*#__PURE__*/_jsx(QuickFilterContext.Provider, {\n value: contextValue,\n children: element\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? QuickFilter.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Override or extend the styles applied to the component.\n */\n className: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n /**\n * The debounce time in milliseconds.\n * @default 150\n */\n debounceMs: PropTypes.number,\n /**\n * The default expanded state of the quick filter control.\n * @default false\n */\n defaultExpanded: PropTypes.bool,\n /**\n * The expanded state of the quick filter control.\n */\n expanded: PropTypes.bool,\n /**\n * Function responsible for formatting values of quick filter in a string when the model is modified\n * @param {any[]} values The new values passed to the quick filter model\n * @returns {string} The string to display in the text field\n * @default (values: string[]) => values.join(' ')\n */\n formatter: PropTypes.func,\n /**\n * Callback function that is called when the quick filter input is expanded or collapsed.\n * @param {boolean} expanded The new expanded state of the quick filter control\n */\n onExpandedChange: PropTypes.func,\n /**\n * Function responsible for parsing text input in an array of independent values for quick filtering.\n * @param {string} input The value entered by the user\n * @returns {any[]} The array of value on which quick filter is applied\n * @default (searchText: string) => searchText.split(' ').filter((word) => word !== '')\n */\n parser: PropTypes.func,\n /**\n * A function to customize rendering of the component.\n */\n render: PropTypes.oneOfType([PropTypes.element, PropTypes.func])\n} : void 0;\nexport { QuickFilter };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"render\", \"className\", \"slotProps\", \"onKeyDown\", \"onChange\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridComponentRenderer } from \"../../hooks/utils/useGridComponentRenderer.js\";\nimport { useQuickFilterContext } from \"./QuickFilterContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * A component that takes user input and filters row data.\n * It renders the `baseTextField` slot.\n *\n * Demos:\n *\n * - [Quick Filter](https://mui.com/x/react-data-grid/components/quick-filter/)\n *\n * API:\n *\n * - [QuickFilterControl API](https://mui.com/x/api/data-grid/quick-filter-control/)\n */\nconst QuickFilterControl = forwardRef(function QuickFilterControl(props, ref) {\n const {\n render,\n className,\n slotProps,\n onKeyDown,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const {\n state,\n controlId,\n controlRef,\n onValueChange,\n onExpandedChange,\n clearValue\n } = useQuickFilterContext();\n const resolvedClassName = typeof className === 'function' ? className(state) : className;\n const handleRef = useForkRef(controlRef, ref);\n const handleKeyDown = event => {\n if (event.key === 'Escape') {\n if (state.value === '') {\n onExpandedChange(false);\n } else {\n clearValue();\n }\n }\n onKeyDown?.(event);\n };\n const handleBlur = event => {\n if (state.value === '') {\n onExpandedChange(false);\n }\n slotProps?.htmlInput?.onBlur?.(event);\n };\n const handleChange = event => {\n if (!state.expanded) {\n onExpandedChange(true);\n }\n onValueChange(event);\n onChange?.(event);\n };\n const element = useGridComponentRenderer(rootProps.slots.baseTextField, render, _extends({}, rootProps.slotProps?.baseTextField, {\n slotProps: _extends({\n htmlInput: _extends({\n role: 'searchbox',\n id: controlId,\n tabIndex: state.expanded ? undefined : -1\n }, slotProps?.htmlInput, {\n onBlur: handleBlur\n })\n }, slotProps),\n value: state.value,\n className: resolvedClassName\n }, other, {\n onChange: handleChange,\n onKeyDown: handleKeyDown,\n ref: handleRef\n }), state);\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: element\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? QuickFilterControl.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n autoComplete: PropTypes.string,\n autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n className: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n color: PropTypes.oneOf(['error', 'primary']),\n disabled: PropTypes.bool,\n error: PropTypes.bool,\n fullWidth: PropTypes.bool,\n helperText: PropTypes.string,\n id: PropTypes.string,\n inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.object\n })]),\n label: PropTypes.node,\n multiline: PropTypes.bool,\n placeholder: PropTypes.string,\n /**\n * A function to customize rendering of the component.\n */\n render: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),\n role: PropTypes.string,\n size: PropTypes.oneOf(['medium', 'small']),\n slotProps: PropTypes.object,\n style: PropTypes.object,\n tabIndex: PropTypes.number,\n type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'checkbox', 'color', 'date', 'datetime-local', 'email', 'file', 'hidden', 'image', 'month', 'number', 'password', 'radio', 'range', 'reset', 'search', 'submit', 'tel', 'text', 'time', 'url', 'week']), PropTypes.object]),\n value: PropTypes.string\n} : void 0;\nexport { QuickFilterControl };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"render\", \"className\", \"onClick\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridComponentRenderer } from \"../../hooks/utils/useGridComponentRenderer.js\";\nimport { useQuickFilterContext } from \"./QuickFilterContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * A button that resets the filter value.\n * It renders the `baseIconButton` slot.\n *\n * Demos:\n *\n * - [Quick Filter](https://mui.com/x/react-data-grid/components/quick-filter/)\n *\n * API:\n *\n * - [QuickFilterClear API](https://mui.com/x/api/data-grid/quick-filter-clear/)\n */\nconst QuickFilterClear = forwardRef(function QuickFilterClear(props, ref) {\n const {\n render,\n className,\n onClick\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const {\n state,\n clearValue\n } = useQuickFilterContext();\n const resolvedClassName = typeof className === 'function' ? className(state) : className;\n const handleClick = event => {\n clearValue();\n onClick?.(event);\n };\n const element = useGridComponentRenderer(rootProps.slots.baseIconButton, render, _extends({}, rootProps.slotProps?.baseIconButton, {\n className: resolvedClassName,\n tabIndex: -1\n }, other, {\n onClick: handleClick,\n ref\n }), state);\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: element\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? QuickFilterClear.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Override or extend the styles applied to the component.\n */\n className: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n color: PropTypes.oneOf(['default', 'inherit', 'primary']),\n disabled: PropTypes.bool,\n edge: PropTypes.oneOf(['end', 'start', false]),\n id: PropTypes.string,\n label: PropTypes.string,\n /**\n * A function to customize rendering of the component.\n */\n render: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),\n role: PropTypes.string,\n size: PropTypes.oneOf(['large', 'medium', 'small']),\n style: PropTypes.object,\n tabIndex: PropTypes.number,\n title: PropTypes.string,\n touchRippleRef: PropTypes.any\n} : void 0;\nexport { QuickFilterClear };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"render\", \"className\", \"onClick\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridComponentRenderer } from \"../../hooks/utils/useGridComponentRenderer.js\";\nimport { useQuickFilterContext } from \"./QuickFilterContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * A button that expands/collapses the quick filter.\n * It renders the `baseButton` slot.\n *\n * Demos:\n *\n * - [Quick Filter](https://mui.com/x/react-data-grid/components/quick-filter/)\n *\n * API:\n *\n * - [QuickFilterTrigger API](https://mui.com/x/api/data-grid/quick-filter-trigger/)\n */\nconst QuickFilterTrigger = forwardRef(function QuickFilterTrigger(props, ref) {\n const {\n render,\n className,\n onClick\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const {\n state,\n controlId,\n onExpandedChange,\n triggerRef\n } = useQuickFilterContext();\n const resolvedClassName = typeof className === 'function' ? className(state) : className;\n const handleRef = useForkRef(triggerRef, ref);\n const handleClick = event => {\n onExpandedChange(!state.expanded);\n onClick?.(event);\n };\n const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends({}, rootProps.slotProps?.baseButton, {\n className: resolvedClassName,\n 'aria-controls': controlId,\n 'aria-expanded': state.expanded\n }, other, {\n onClick: handleClick,\n ref: handleRef\n }), state);\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: element\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? QuickFilterTrigger.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Override or extend the styles applied to the component.\n */\n className: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n disabled: PropTypes.bool,\n id: PropTypes.string,\n /**\n * A function to customize rendering of the component.\n */\n render: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),\n role: PropTypes.string,\n size: PropTypes.oneOf(['large', 'medium', 'small']),\n startIcon: PropTypes.node,\n style: PropTypes.object,\n tabIndex: PropTypes.number,\n title: PropTypes.string,\n touchRippleRef: PropTypes.any\n} : void 0;\nexport { QuickFilterTrigger };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"quickFilterParser\", \"quickFilterFormatter\", \"debounceMs\", \"className\", \"slotProps\"],\n _excluded2 = [\"ref\", \"slotProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from '@mui/system';\nimport clsx from 'clsx';\nimport { getDataGridUtilityClass } from \"../../constants/index.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { QuickFilter, QuickFilterClear, QuickFilterControl, QuickFilterTrigger } from \"../quickFilter/index.js\";\nimport { ToolbarButton } from \"../toolbarV8/index.js\";\nimport { vars } from \"../../constants/cssVariables.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['toolbarQuickFilter'],\n trigger: ['toolbarQuickFilterTrigger'],\n control: ['toolbarQuickFilterControl']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridQuickFilterRoot = styled('div', {\n name: 'MuiDataGrid',\n slot: 'ToolbarQuickFilter'\n})({\n display: 'grid',\n alignItems: 'center'\n});\nconst GridQuickFilterTrigger = styled(ToolbarButton, {\n name: 'MuiDataGrid',\n slot: 'ToolbarQuickFilterTrigger'\n})(({\n ownerState\n}) => ({\n gridArea: '1 / 1',\n width: 'min-content',\n height: 'min-content',\n zIndex: 1,\n opacity: ownerState.expanded ? 0 : 1,\n pointerEvents: ownerState.expanded ? 'none' : 'auto',\n transition: vars.transition(['opacity'])\n}));\n\n// TODO: Use NotRendered from /utils/assert\n// Currently causes react-docgen to fail\nconst GridQuickFilterTextField = styled(_props => {\n throw new Error('Failed assertion: should not be rendered');\n}, {\n name: 'MuiDataGrid',\n slot: 'ToolbarQuickFilterControl'\n})(({\n ownerState\n}) => ({\n gridArea: '1 / 1',\n overflowX: 'clip',\n width: ownerState.expanded ? 260 : 'var(--trigger-width)',\n opacity: ownerState.expanded ? 1 : 0,\n transition: vars.transition(['width', 'opacity'])\n}));\n\n/**\n * @deprecated Use the {@link https://mui.com/x/react-data-grid/components/quick-filter/ Quick Filter} component instead. This component will be removed in a future major release.\n */\nfunction GridToolbarQuickFilter(props) {\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const ownerState = {\n classes: rootProps.classes,\n expanded: false\n };\n const classes = useUtilityClasses(ownerState);\n const {\n quickFilterParser,\n quickFilterFormatter,\n debounceMs,\n className,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n return /*#__PURE__*/_jsx(QuickFilter, {\n parser: quickFilterParser,\n formatter: quickFilterFormatter,\n debounceMs: debounceMs,\n render: (quickFilterProps, state) => {\n const currentOwnerState = _extends({}, ownerState, {\n expanded: state.expanded\n });\n return /*#__PURE__*/_jsxs(GridQuickFilterRoot, _extends({}, quickFilterProps, {\n className: clsx(classes.root, className),\n children: [/*#__PURE__*/_jsx(QuickFilterTrigger, {\n render: triggerProps => /*#__PURE__*/_jsx(rootProps.slots.baseTooltip, {\n title: apiRef.current.getLocaleText('toolbarQuickFilterLabel'),\n enterDelay: 0 // Prevents tooltip lagging behind transitioning trigger element\n ,\n children: /*#__PURE__*/_jsx(GridQuickFilterTrigger, _extends({\n className: classes.trigger\n }, triggerProps, {\n ownerState: currentOwnerState,\n color: \"default\",\n \"aria-disabled\": state.expanded,\n children: /*#__PURE__*/_jsx(rootProps.slots.quickFilterIcon, {\n fontSize: \"small\"\n })\n }))\n })\n }), /*#__PURE__*/_jsx(QuickFilterControl, {\n render: _ref => {\n let {\n ref,\n slotProps: controlSlotProps\n } = _ref,\n controlProps = _objectWithoutPropertiesLoose(_ref, _excluded2);\n return /*#__PURE__*/_jsx(GridQuickFilterTextField, _extends({\n as: rootProps.slots.baseTextField,\n className: classes.control,\n ownerState: currentOwnerState,\n inputRef: ref,\n \"aria-label\": apiRef.current.getLocaleText('toolbarQuickFilterLabel'),\n placeholder: apiRef.current.getLocaleText('toolbarQuickFilterPlaceholder'),\n size: \"small\",\n slotProps: _extends({\n input: _extends({\n startAdornment: /*#__PURE__*/_jsx(rootProps.slots.quickFilterIcon, {\n fontSize: \"small\"\n }),\n endAdornment: controlProps.value ? /*#__PURE__*/_jsx(QuickFilterClear, {\n render: /*#__PURE__*/_jsx(rootProps.slots.baseIconButton, {\n size: \"small\",\n edge: \"end\",\n \"aria-label\": apiRef.current.getLocaleText('toolbarQuickFilterDeleteIconLabel'),\n children: /*#__PURE__*/_jsx(rootProps.slots.quickFilterClearIcon, {\n fontSize: \"small\"\n })\n })\n }) : null\n }, controlSlotProps?.input)\n }, controlSlotProps)\n }, rootProps.slotProps?.baseTextField, controlProps, slotProps?.root, other));\n }\n })]\n }));\n }\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GridToolbarQuickFilter.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n className: PropTypes.string,\n /**\n * The debounce time in milliseconds.\n * @default 150\n */\n debounceMs: PropTypes.number,\n /**\n * Function responsible for formatting values of quick filter in a string when the model is modified\n * @param {any[]} values The new values passed to the quick filter model\n * @returns {string} The string to display in the text field\n * @default (values: string[]) => values.join(' ')\n */\n quickFilterFormatter: PropTypes.func,\n /**\n * Function responsible for parsing text input in an array of independent values for quick filtering.\n * @param {string} input The value entered by the user\n * @returns {any[]} The array of value on which quick filter is applied\n * @default (searchText: string) => searchText\n * .split(' ')\n * .filter((word) => word !== '')\n */\n quickFilterParser: PropTypes.func,\n slotProps: PropTypes.object\n} : void 0;\n\n/**\n * Demos:\n * - [Filtering - overview](https://mui.com/x/react-data-grid/filtering/)\n * - [Filtering - quick filter](https://mui.com/x/react-data-grid/filtering/quick-filter/)\n *\n * API:\n * - [GridToolbarQuickFilter API](https://mui.com/x/api/data-grid/grid-toolbar-quick-filter/)\n */\nexport { GridToolbarQuickFilter };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"render\", \"className\", \"onClick\", \"onPointerUp\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useId from '@mui/utils/useId';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport useForkRef from '@mui/utils/useForkRef';\nimport { useGridPanelContext } from \"../panel/GridPanelContext.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { gridFilterActiveItemsSelector, gridPreferencePanelStateSelector, GridPreferencePanelsValue, useGridSelector } from \"../../hooks/index.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridComponentRenderer } from \"../../hooks/utils/useGridComponentRenderer.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * A button that opens and closes the filter panel.\n * It renders the `baseButton` slot.\n *\n * Demos:\n *\n * - [Filter Panel](https://mui.com/x/react-data-grid/components/filter-panel/)\n *\n * API:\n *\n * - [FilterPanelTrigger API](https://mui.com/x/api/data-grid/filter-panel-trigger/)\n */\nconst FilterPanelTrigger = forwardRef(function FilterPanelTrigger(props, ref) {\n const {\n render,\n className,\n onClick,\n onPointerUp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const buttonId = useId();\n const panelId = useId();\n const apiRef = useGridApiContext();\n const panelState = useGridSelector(apiRef, gridPreferencePanelStateSelector);\n const open = panelState.open && panelState.openedPanelValue === GridPreferencePanelsValue.filters;\n const activeFilters = useGridSelector(apiRef, gridFilterActiveItemsSelector);\n const filterCount = activeFilters.length;\n const state = {\n open,\n filterCount\n };\n const resolvedClassName = typeof className === 'function' ? className(state) : className;\n const {\n filterPanelTriggerRef\n } = useGridPanelContext();\n const handleRef = useForkRef(ref, filterPanelTriggerRef);\n const handleClick = event => {\n if (open) {\n apiRef.current.hidePreferences();\n } else {\n apiRef.current.showPreferences(GridPreferencePanelsValue.filters, panelId, buttonId);\n }\n onClick?.(event);\n };\n const handlePointerUp = event => {\n if (open) {\n event.stopPropagation();\n }\n onPointerUp?.(event);\n };\n const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends({}, rootProps.slotProps?.baseButton, {\n id: buttonId,\n 'aria-haspopup': 'true',\n 'aria-expanded': open ? 'true' : undefined,\n 'aria-controls': open ? panelId : undefined,\n onClick: handleClick,\n onPointerUp: handlePointerUp,\n className: resolvedClassName\n }, other, {\n ref: handleRef\n }), state);\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: element\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? FilterPanelTrigger.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * A function to customize rendering of the component.\n */\n className: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n disabled: PropTypes.bool,\n id: PropTypes.string,\n /**\n * A function to customize rendering of the component.\n */\n render: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),\n role: PropTypes.string,\n size: PropTypes.oneOf(['large', 'medium', 'small']),\n startIcon: PropTypes.node,\n style: PropTypes.object,\n tabIndex: PropTypes.number,\n title: PropTypes.string,\n touchRippleRef: PropTypes.any\n} : void 0;\nexport { FilterPanelTrigger };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"render\", \"className\", \"onClick\", \"onPointerUp\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useId from '@mui/utils/useId';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport useForkRef from '@mui/utils/useForkRef';\nimport { useGridPanelContext } from \"../panel/GridPanelContext.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { gridPreferencePanelStateSelector, GridPreferencePanelsValue, useGridSelector } from \"../../hooks/index.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridComponentRenderer } from \"../../hooks/utils/useGridComponentRenderer.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * A button that opens and closes the columns panel.\n * It renders the `baseButton` slot.\n *\n * Demos:\n *\n * - [Columns Panel](https://mui.com/x/react-data-grid/components/columns-panel/)\n *\n * API:\n *\n * - [ColumnsPanelTrigger API](https://mui.com/x/api/data-grid/columns-panel-trigger/)\n */\nconst ColumnsPanelTrigger = forwardRef(function ColumnsPanelTrigger(props, ref) {\n const {\n render,\n className,\n onClick,\n onPointerUp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const buttonId = useId();\n const panelId = useId();\n const apiRef = useGridApiContext();\n const panelState = useGridSelector(apiRef, gridPreferencePanelStateSelector);\n const open = panelState.open && panelState.openedPanelValue === GridPreferencePanelsValue.columns;\n const state = {\n open\n };\n const resolvedClassName = typeof className === 'function' ? className(state) : className;\n const {\n columnsPanelTriggerRef\n } = useGridPanelContext();\n const handleRef = useForkRef(ref, columnsPanelTriggerRef);\n const handleClick = event => {\n if (open) {\n apiRef.current.hidePreferences();\n } else {\n apiRef.current.showPreferences(GridPreferencePanelsValue.columns, panelId, buttonId);\n }\n onClick?.(event);\n };\n const handlePointerUp = event => {\n if (open) {\n event.stopPropagation();\n }\n onPointerUp?.(event);\n };\n const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends({}, rootProps.slotProps?.baseButton, {\n id: buttonId,\n 'aria-haspopup': 'true',\n 'aria-expanded': open ? 'true' : undefined,\n 'aria-controls': open ? panelId : undefined,\n className: resolvedClassName\n }, other, {\n onPointerUp: handlePointerUp,\n onClick: handleClick,\n ref: handleRef\n }), state);\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: element\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? ColumnsPanelTrigger.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Override or extend the styles applied to the component.\n */\n className: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n disabled: PropTypes.bool,\n id: PropTypes.string,\n /**\n * A function to customize rendering of the component.\n */\n render: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),\n role: PropTypes.string,\n size: PropTypes.oneOf(['large', 'medium', 'small']),\n startIcon: PropTypes.node,\n style: PropTypes.object,\n tabIndex: PropTypes.number,\n title: PropTypes.string,\n touchRippleRef: PropTypes.any\n} : void 0;\nexport { ColumnsPanelTrigger };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"render\", \"options\", \"onClick\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridComponentRenderer } from \"../../hooks/utils/useGridComponentRenderer.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * A button that triggers a CSV export.\n * It renders the `baseButton` slot.\n *\n * Demos:\n *\n * - [Export](https://mui.com/x/react-data-grid/components/export/)\n *\n * API:\n *\n * - [ExportCsv API](https://mui.com/x/api/data-grid/export-csv/)\n */\nconst ExportCsv = forwardRef(function ExportCsv(props, ref) {\n const {\n render,\n options,\n onClick\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const apiRef = useGridApiContext();\n const handleClick = event => {\n apiRef.current.exportDataAsCsv(options);\n onClick?.(event);\n };\n const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends({}, rootProps.slotProps?.baseButton, {\n onClick: handleClick\n }, other, {\n ref\n }));\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: element\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? ExportCsv.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n className: PropTypes.string,\n disabled: PropTypes.bool,\n id: PropTypes.string,\n /**\n * The options to apply on the CSV export.\n * @demos\n * - [CSV export](/x/react-data-grid/export/#csv-export)\n */\n options: PropTypes.shape({\n allColumns: PropTypes.bool,\n delimiter: PropTypes.string,\n escapeFormulas: PropTypes.bool,\n fields: PropTypes.arrayOf(PropTypes.string),\n fileName: PropTypes.string,\n getRowsToExport: PropTypes.func,\n includeColumnGroupsHeaders: PropTypes.bool,\n includeHeaders: PropTypes.bool,\n shouldAppendQuotes: PropTypes.bool,\n utf8WithBom: PropTypes.bool\n }),\n /**\n * A function to customize rendering of the component.\n */\n render: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),\n role: PropTypes.string,\n size: PropTypes.oneOf(['large', 'medium', 'small']),\n startIcon: PropTypes.node,\n style: PropTypes.object,\n tabIndex: PropTypes.number,\n title: PropTypes.string,\n touchRippleRef: PropTypes.any\n} : void 0;\nexport { ExportCsv };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"render\", \"options\", \"onClick\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridComponentRenderer } from \"../../hooks/utils/useGridComponentRenderer.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * A button that triggers a print export.\n * It renders the `baseButton` slot.\n *\n * Demos:\n *\n * - [Export](https://mui.com/x/react-data-grid/components/export/)\n *\n * API:\n *\n * - [ExportPrint API](https://mui.com/x/api/data-grid/export-print/)\n */\nconst ExportPrint = forwardRef(function ExportPrint(props, ref) {\n const {\n render,\n options,\n onClick\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const apiRef = useGridApiContext();\n const handleClick = event => {\n apiRef.current.exportDataAsPrint(options);\n onClick?.(event);\n };\n const element = useGridComponentRenderer(rootProps.slots.baseButton, render, _extends({}, rootProps.slotProps?.baseButton, {\n onClick: handleClick\n }, other, {\n ref\n }));\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: element\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? ExportPrint.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n className: PropTypes.string,\n disabled: PropTypes.bool,\n id: PropTypes.string,\n /**\n * The options to apply on the Print export.\n * @demos\n * - [Print export](/x/react-data-grid/export/#print-export)\n */\n options: PropTypes.shape({\n allColumns: PropTypes.bool,\n bodyClassName: PropTypes.string,\n copyStyles: PropTypes.bool,\n fields: PropTypes.arrayOf(PropTypes.string),\n fileName: PropTypes.string,\n getRowsToExport: PropTypes.func,\n hideFooter: PropTypes.bool,\n hideToolbar: PropTypes.bool,\n includeCheckboxes: PropTypes.bool,\n pageStyle: PropTypes.oneOfType([PropTypes.func, PropTypes.string])\n }),\n /**\n * A function to customize rendering of the component.\n */\n render: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),\n role: PropTypes.string,\n size: PropTypes.oneOf(['large', 'medium', 'small']),\n startIcon: PropTypes.node,\n style: PropTypes.object,\n tabIndex: PropTypes.number,\n title: PropTypes.string,\n touchRippleRef: PropTypes.any\n} : void 0;\nexport { ExportPrint };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\"],\n _excluded2 = [\"className\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useId from '@mui/utils/useId';\nimport { styled } from '@mui/system';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { GridMenu } from \"../menu/GridMenu.js\";\nimport { Toolbar } from \"./Toolbar.js\";\nimport { ToolbarButton } from \"./ToolbarButton.js\";\nimport { FilterPanelTrigger } from \"../filterPanel/index.js\";\nimport { ColumnsPanelTrigger } from \"../columnsPanel/index.js\";\nimport { ExportCsv, ExportPrint } from \"../export/index.js\";\nimport { GridToolbarQuickFilter } from \"../toolbar/GridToolbarQuickFilter.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { NotRendered } from \"../../utils/assert.js\";\nimport { vars } from \"../../constants/cssVariables.js\";\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n divider: ['toolbarDivider'],\n label: ['toolbarLabel']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst Divider = styled(NotRendered, {\n name: 'MuiDataGrid',\n slot: 'ToolbarDivider'\n})({\n height: '50%',\n margin: vars.spacing(0, 0.5)\n});\nconst Label = styled('span', {\n name: 'MuiDataGrid',\n slot: 'ToolbarLabel'\n})({\n flex: 1,\n font: vars.typography.font.large,\n fontWeight: vars.typography.fontWeight.medium,\n margin: vars.spacing(0, 0.5),\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n whiteSpace: 'nowrap'\n});\nfunction GridToolbarDivider(props) {\n const other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const classes = useUtilityClasses(rootProps);\n return /*#__PURE__*/_jsx(Divider, _extends({\n as: rootProps.slots.baseDivider,\n orientation: \"vertical\",\n className: classes.divider\n }, other));\n}\nprocess.env.NODE_ENV !== \"production\" ? GridToolbarDivider.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n className: PropTypes.string,\n orientation: PropTypes.oneOf(['horizontal', 'vertical'])\n} : void 0;\nfunction GridToolbarLabel(props) {\n const other = _objectWithoutPropertiesLoose(props, _excluded2);\n const rootProps = useGridRootProps();\n const classes = useUtilityClasses(rootProps);\n return /*#__PURE__*/_jsx(Label, _extends({\n className: classes.label\n }, other));\n}\nfunction GridToolbar(props) {\n const {\n showQuickFilter = true,\n quickFilterProps,\n csvOptions,\n printOptions,\n additionalItems,\n additionalExportMenuItems\n } = props;\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const [exportMenuOpen, setExportMenuOpen] = React.useState(false);\n const exportMenuTriggerRef = React.useRef(null);\n const exportMenuId = useId();\n const exportMenuTriggerId = useId();\n const showExportMenu = !csvOptions?.disableToolbarButton || !printOptions?.disableToolbarButton || additionalExportMenuItems;\n const closeExportMenu = () => setExportMenuOpen(false);\n return /*#__PURE__*/_jsxs(Toolbar, {\n children: [rootProps.label && /*#__PURE__*/_jsx(GridToolbarLabel, {\n children: rootProps.label\n }), !rootProps.disableColumnSelector && /*#__PURE__*/_jsx(rootProps.slots.baseTooltip, {\n title: apiRef.current.getLocaleText('toolbarColumns'),\n children: /*#__PURE__*/_jsx(ColumnsPanelTrigger, {\n render: /*#__PURE__*/_jsx(ToolbarButton, {}),\n children: /*#__PURE__*/_jsx(rootProps.slots.columnSelectorIcon, {\n fontSize: \"small\"\n })\n })\n }), !rootProps.disableColumnFilter && /*#__PURE__*/_jsx(rootProps.slots.baseTooltip, {\n title: apiRef.current.getLocaleText('toolbarFilters'),\n children: /*#__PURE__*/_jsx(FilterPanelTrigger, {\n render: (triggerProps, state) => /*#__PURE__*/_jsx(ToolbarButton, _extends({}, triggerProps, {\n color: state.filterCount > 0 ? 'primary' : 'default',\n children: /*#__PURE__*/_jsx(rootProps.slots.baseBadge, {\n badgeContent: state.filterCount,\n color: \"primary\",\n variant: \"dot\",\n children: /*#__PURE__*/_jsx(rootProps.slots.openFilterButtonIcon, {\n fontSize: \"small\"\n })\n })\n }))\n })\n }), additionalItems, showExportMenu && (!rootProps.disableColumnFilter || !rootProps.disableColumnSelector) && /*#__PURE__*/_jsx(GridToolbarDivider, {}), showExportMenu && /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(rootProps.slots.baseTooltip, {\n title: apiRef.current.getLocaleText('toolbarExport'),\n children: /*#__PURE__*/_jsx(ToolbarButton, {\n ref: exportMenuTriggerRef,\n id: exportMenuTriggerId,\n \"aria-controls\": exportMenuId,\n \"aria-haspopup\": \"true\",\n \"aria-expanded\": exportMenuOpen ? 'true' : undefined,\n onClick: () => setExportMenuOpen(!exportMenuOpen),\n children: /*#__PURE__*/_jsx(rootProps.slots.exportIcon, {\n fontSize: \"small\"\n })\n })\n }), /*#__PURE__*/_jsx(GridMenu, {\n target: exportMenuTriggerRef.current,\n open: exportMenuOpen,\n onClose: closeExportMenu,\n position: \"bottom-end\",\n children: /*#__PURE__*/_jsxs(rootProps.slots.baseMenuList, _extends({\n id: exportMenuId,\n \"aria-labelledby\": exportMenuTriggerId,\n autoFocusItem: true\n }, rootProps.slotProps?.baseMenuList, {\n children: [!printOptions?.disableToolbarButton && /*#__PURE__*/_jsx(ExportPrint, {\n render: /*#__PURE__*/_jsx(rootProps.slots.baseMenuItem, _extends({}, rootProps.slotProps?.baseMenuItem)),\n options: printOptions,\n onClick: closeExportMenu,\n children: apiRef.current.getLocaleText('toolbarExportPrint')\n }), !csvOptions?.disableToolbarButton && /*#__PURE__*/_jsx(ExportCsv, {\n render: /*#__PURE__*/_jsx(rootProps.slots.baseMenuItem, _extends({}, rootProps.slotProps?.baseMenuItem)),\n options: csvOptions,\n onClick: closeExportMenu,\n children: apiRef.current.getLocaleText('toolbarExportCSV')\n }), additionalExportMenuItems?.(closeExportMenu)]\n }))\n })]\n }), showQuickFilter && /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(GridToolbarDivider, {}), /*#__PURE__*/_jsx(GridToolbarQuickFilter, _extends({}, quickFilterProps))]\n })]\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GridToolbar.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n additionalExportMenuItems: PropTypes.func,\n additionalItems: PropTypes.node,\n csvOptions: PropTypes.object,\n printOptions: PropTypes.object,\n /**\n * Props passed to the quick filter component.\n */\n quickFilterProps: PropTypes.shape({\n className: PropTypes.string,\n debounceMs: PropTypes.number,\n quickFilterFormatter: PropTypes.func,\n quickFilterParser: PropTypes.func,\n slotProps: PropTypes.object\n }),\n /**\n * Show the quick filter component.\n * @default true\n */\n showQuickFilter: PropTypes.bool,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.object,\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport { GridToolbar, GridToolbarDivider, GridToolbarLabel };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\", \"selectedRowCount\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from '@mui/system';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { vars } from \"../constants/cssVariables.js\";\nimport { useGridApiContext } from \"../hooks/utils/useGridApiContext.js\";\nimport { getDataGridUtilityClass } from \"../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['selectedRowCount']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridSelectedRowCountRoot = styled('div', {\n name: 'MuiDataGrid',\n slot: 'SelectedRowCount'\n})({\n alignItems: 'center',\n display: 'flex',\n margin: vars.spacing(0, 2),\n visibility: 'hidden',\n width: 0,\n height: 0,\n [vars.breakpoints.up('sm')]: {\n visibility: 'visible',\n width: 'auto',\n height: 'auto'\n }\n});\nconst GridSelectedRowCount = forwardRef(function GridSelectedRowCount(props, ref) {\n const {\n className,\n selectedRowCount\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridApiContext();\n const ownerState = useGridRootProps();\n const classes = useUtilityClasses(ownerState);\n const rowSelectedText = apiRef.current.getLocaleText('footerRowSelected')(selectedRowCount);\n return /*#__PURE__*/_jsx(GridSelectedRowCountRoot, _extends({\n className: clsx(classes.root, className),\n ownerState: ownerState\n }, other, {\n ref: ref,\n children: rowSelectedText\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridSelectedRowCount.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n selectedRowCount: PropTypes.number.isRequired,\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport { GridSelectedRowCount };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridSelector } from \"../hooks/utils/useGridSelector.js\";\nimport { gridTopLevelRowCountSelector } from \"../hooks/features/rows/gridRowsSelector.js\";\nimport { gridRowSelectionCountSelector } from \"../hooks/features/rowSelection/gridRowSelectionSelector.js\";\nimport { gridFilteredTopLevelRowCountSelector } from \"../hooks/features/filter/gridFilterSelector.js\";\nimport { useGridApiContext } from \"../hooks/utils/useGridApiContext.js\";\nimport { GridSelectedRowCount } from \"./GridSelectedRowCount.js\";\nimport { GridFooterContainer } from \"./containers/GridFooterContainer.js\";\nimport { useGridRootProps } from \"../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst GridFooter = forwardRef(function GridFooter(props, ref) {\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const totalTopLevelRowCount = useGridSelector(apiRef, gridTopLevelRowCountSelector);\n const selectedRowCount = useGridSelector(apiRef, gridRowSelectionCountSelector);\n const visibleTopLevelRowCount = useGridSelector(apiRef, gridFilteredTopLevelRowCountSelector);\n const selectedRowCountElement = !rootProps.hideFooterSelectedRowCount && selectedRowCount > 0 ? /*#__PURE__*/_jsx(GridSelectedRowCount, {\n selectedRowCount: selectedRowCount\n }) : /*#__PURE__*/_jsx(\"div\", {});\n const rowCountElement = !rootProps.hideFooterRowCount && !rootProps.pagination ? /*#__PURE__*/_jsx(rootProps.slots.footerRowCount, _extends({}, rootProps.slotProps?.footerRowCount, {\n rowCount: totalTopLevelRowCount,\n visibleRowCount: visibleTopLevelRowCount\n })) : null;\n const paginationElement = rootProps.pagination && !rootProps.hideFooterPagination && rootProps.slots.pagination && /*#__PURE__*/_jsx(rootProps.slots.pagination, {});\n return /*#__PURE__*/_jsxs(GridFooterContainer, _extends({}, props, {\n ref: ref,\n children: [selectedRowCountElement, rowCountElement, paginationElement]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridFooter.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport { GridFooter };","import { PinnedColumnPosition } from \"../constants.js\";\nexport const getPinnedCellOffset = (pinnedPosition, computedWidth, columnIndex, columnPositions, columnsTotalWidth, scrollbarWidth) => {\n let pinnedOffset;\n switch (pinnedPosition) {\n case PinnedColumnPosition.LEFT:\n pinnedOffset = columnPositions[columnIndex];\n break;\n case PinnedColumnPosition.RIGHT:\n pinnedOffset = columnsTotalWidth - columnPositions[columnIndex] - computedWidth + scrollbarWidth;\n break;\n default:\n pinnedOffset = undefined;\n break;\n }\n return pinnedOffset;\n};","import { PinnedColumnPosition } from \"../internals/constants.js\";\nexport const shouldCellShowRightBorder = (pinnedPosition, indexInSection, sectionLength, showCellVerticalBorderRootProp, gridHasFiller) => {\n const isSectionLastCell = indexInSection === sectionLength - 1;\n if (pinnedPosition === PinnedColumnPosition.LEFT && isSectionLastCell) {\n return true;\n }\n if (showCellVerticalBorderRootProp) {\n if (pinnedPosition === PinnedColumnPosition.LEFT) {\n return true;\n }\n if (pinnedPosition === PinnedColumnPosition.RIGHT) {\n return !isSectionLastCell;\n }\n // pinnedPosition === undefined, middle section\n return !isSectionLastCell || gridHasFiller;\n }\n return false;\n};\nexport const shouldCellShowLeftBorder = (pinnedPosition, indexInSection) => {\n return pinnedPosition === PinnedColumnPosition.RIGHT && indexInSection === 0;\n};","import * as React from 'react';\nimport clsx from 'clsx';\nimport { gridClasses } from \"../constants/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst classes = {\n root: gridClasses.scrollbarFiller,\n header: gridClasses['scrollbarFiller--header'],\n borderTop: gridClasses['scrollbarFiller--borderTop'],\n borderBottom: gridClasses['scrollbarFiller--borderBottom'],\n pinnedRight: gridClasses['scrollbarFiller--pinnedRight']\n};\nfunction GridScrollbarFillerCell({\n header,\n borderTop = true,\n borderBottom,\n pinnedRight\n}) {\n return /*#__PURE__*/_jsx(\"div\", {\n role: \"presentation\",\n className: clsx(classes.root, header && classes.header, borderTop && classes.borderTop, borderBottom && classes.borderBottom, pinnedRight && classes.pinnedRight)\n });\n}\nexport { GridScrollbarFillerCell };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"skeletonRowsCount\", \"visibleColumns\", \"showFirstRowBorder\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { styled } from '@mui/system';\nimport useForkRef from '@mui/utils/useForkRef';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridApiContext } from \"../hooks/utils/useGridApiContext.js\";\nimport { useGridRootProps } from \"../hooks/utils/useGridRootProps.js\";\nimport { gridColumnPositionsSelector, gridDimensionsSelector, gridVisibleColumnDefinitionsSelector, gridVisiblePinnedColumnDefinitionsSelector, useGridEvent, useGridSelector } from \"../hooks/index.js\";\nimport { PinnedColumnPosition } from \"../internals/constants.js\";\nimport { gridColumnsTotalWidthSelector } from \"../hooks/features/dimensions/gridDimensionsSelectors.js\";\nimport { getDataGridUtilityClass, gridClasses } from \"../constants/gridClasses.js\";\nimport { getPinnedCellOffset } from \"../internals/utils/getPinnedCellOffset.js\";\nimport { shouldCellShowLeftBorder, shouldCellShowRightBorder } from \"../utils/cellBorderUtils.js\";\nimport { escapeOperandAttributeSelector } from \"../utils/domUtils.js\";\nimport { GridScrollbarFillerCell } from \"./GridScrollbarFillerCell.js\";\nimport { rtlFlipSide } from \"../utils/rtlFlipSide.js\";\nimport { attachPinnedStyle } from \"../internals/utils/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst SkeletonOverlay = styled('div', {\n name: 'MuiDataGrid',\n slot: 'SkeletonLoadingOverlay'\n})({\n minWidth: '100%',\n width: 'max-content',\n // prevents overflow: clip; cutting off the x axis\n height: '100%',\n overflow: 'clip' // y axis is hidden while the x axis is allowed to overflow\n});\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['skeletonLoadingOverlay']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst getColIndex = el => parseInt(el.getAttribute('data-colindex'), 10);\nexport const GridSkeletonLoadingOverlayInner = forwardRef(function GridSkeletonLoadingOverlayInner(props, forwardedRef) {\n const rootProps = useGridRootProps();\n const {\n slots\n } = rootProps;\n const isRtl = useRtl();\n const classes = useUtilityClasses({\n classes: rootProps.classes\n });\n const ref = React.useRef(null);\n const handleRef = useForkRef(ref, forwardedRef);\n const apiRef = useGridApiContext();\n const dimensions = useGridSelector(apiRef, gridDimensionsSelector);\n const totalWidth = useGridSelector(apiRef, gridColumnsTotalWidthSelector);\n const positions = useGridSelector(apiRef, gridColumnPositionsSelector);\n const inViewportCount = React.useMemo(() => positions.filter(value => value <= totalWidth).length, [totalWidth, positions]);\n const {\n skeletonRowsCount,\n visibleColumns,\n showFirstRowBorder\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded);\n const allVisibleColumns = useGridSelector(apiRef, gridVisibleColumnDefinitionsSelector);\n const columns = React.useMemo(() => allVisibleColumns.slice(0, inViewportCount), [allVisibleColumns, inViewportCount]);\n const pinnedColumns = useGridSelector(apiRef, gridVisiblePinnedColumnDefinitionsSelector);\n const getPinnedPosition = React.useCallback(field => {\n if (pinnedColumns.left.findIndex(col => col.field === field) !== -1) {\n return PinnedColumnPosition.LEFT;\n }\n if (pinnedColumns.right.findIndex(col => col.field === field) !== -1) {\n return PinnedColumnPosition.RIGHT;\n }\n return undefined;\n }, [pinnedColumns.left, pinnedColumns.right]);\n const children = React.useMemo(() => {\n const array = [];\n for (let i = 0; i < skeletonRowsCount; i += 1) {\n const rowCells = [];\n for (let colIndex = 0; colIndex < columns.length; colIndex += 1) {\n const column = columns[colIndex];\n const pinnedPosition = getPinnedPosition(column.field);\n const isPinnedLeft = pinnedPosition === PinnedColumnPosition.LEFT;\n const isPinnedRight = pinnedPosition === PinnedColumnPosition.RIGHT;\n const pinnedSide = rtlFlipSide(pinnedPosition, isRtl);\n const sectionLength = pinnedSide ? pinnedColumns[pinnedSide].length // pinned section\n : columns.length - pinnedColumns.left.length - pinnedColumns.right.length; // middle section\n const sectionIndex = pinnedSide ? pinnedColumns[pinnedSide].findIndex(col => col.field === column.field) // pinned section\n : colIndex - pinnedColumns.left.length; // middle section\n const scrollbarWidth = dimensions.hasScrollY ? dimensions.scrollbarSize : 0;\n const pinnedStyle = attachPinnedStyle({}, isRtl, pinnedPosition, getPinnedCellOffset(pinnedPosition, column.computedWidth, colIndex, positions, dimensions.columnsTotalWidth, scrollbarWidth));\n const gridHasFiller = dimensions.columnsTotalWidth < dimensions.viewportOuterSize.width;\n const showRightBorder = shouldCellShowRightBorder(pinnedPosition, sectionIndex, sectionLength, rootProps.showCellVerticalBorder, gridHasFiller);\n const showLeftBorder = shouldCellShowLeftBorder(pinnedPosition, sectionIndex);\n const isLastColumn = colIndex === columns.length - 1;\n const isFirstPinnedRight = isPinnedRight && sectionIndex === 0;\n const hasFillerBefore = isFirstPinnedRight && gridHasFiller;\n const hasFillerAfter = isLastColumn && !isFirstPinnedRight && gridHasFiller;\n const expandedWidth = dimensions.viewportOuterSize.width - dimensions.columnsTotalWidth;\n const emptyCellWidth = Math.max(0, expandedWidth);\n const emptyCell = /*#__PURE__*/_jsx(slots.skeletonCell, {\n width: emptyCellWidth,\n empty: true\n }, `skeleton-filler-column-${i}`);\n const hasScrollbarFiller = isLastColumn && scrollbarWidth !== 0;\n if (hasFillerBefore) {\n rowCells.push(emptyCell);\n }\n rowCells.push(/*#__PURE__*/_jsx(slots.skeletonCell, {\n field: column.field,\n type: column.type,\n align: column.align,\n width: \"var(--width)\",\n height: dimensions.rowHeight,\n \"data-colindex\": colIndex,\n empty: visibleColumns && !visibleColumns.has(column.field),\n className: clsx(isPinnedLeft && gridClasses['cell--pinnedLeft'], isPinnedRight && gridClasses['cell--pinnedRight'], showRightBorder && gridClasses['cell--withRightBorder'], showLeftBorder && gridClasses['cell--withLeftBorder']),\n style: _extends({\n '--width': `${column.computedWidth}px`\n }, pinnedStyle)\n }, `skeleton-column-${i}-${column.field}`));\n if (hasFillerAfter) {\n rowCells.push(emptyCell);\n }\n if (hasScrollbarFiller) {\n rowCells.push(/*#__PURE__*/_jsx(GridScrollbarFillerCell, {\n pinnedRight: pinnedColumns.right.length > 0\n }, `skeleton-scrollbar-filler-${i}`));\n }\n }\n array.push(/*#__PURE__*/_jsx(\"div\", {\n className: clsx(gridClasses.row, gridClasses.rowSkeleton, i === 0 && !showFirstRowBorder && gridClasses['row--firstVisible']),\n children: rowCells\n }, `skeleton-row-${i}`));\n }\n return array;\n }, [skeletonRowsCount, columns, getPinnedPosition, isRtl, pinnedColumns, dimensions.hasScrollY, dimensions.scrollbarSize, dimensions.columnsTotalWidth, dimensions.viewportOuterSize.width, dimensions.rowHeight, positions, rootProps.showCellVerticalBorder, slots, visibleColumns, showFirstRowBorder]);\n\n // Sync the column resize of the overlay columns with the grid\n const handleColumnResize = params => {\n const {\n colDef,\n width\n } = params;\n const cells = ref.current?.querySelectorAll(`[data-field=\"${escapeOperandAttributeSelector(colDef.field)}\"]`);\n if (!cells) {\n throw new Error('MUI X: Expected skeleton cells to be defined with `data-field` attribute.');\n }\n const resizedColIndex = columns.findIndex(col => col.field === colDef.field);\n const pinnedPosition = getPinnedPosition(colDef.field);\n const isPinnedLeft = pinnedPosition === PinnedColumnPosition.LEFT;\n const isPinnedRight = pinnedPosition === PinnedColumnPosition.RIGHT;\n const currentWidth = getComputedStyle(cells[0]).getPropertyValue('--width');\n const delta = parseInt(currentWidth, 10) - width;\n if (cells) {\n cells.forEach(element => {\n element.style.setProperty('--width', `${width}px`);\n });\n }\n if (isPinnedLeft) {\n const pinnedCells = ref.current?.querySelectorAll(`.${gridClasses['cell--pinnedLeft']}`);\n pinnedCells?.forEach(element => {\n const colIndex = getColIndex(element);\n if (colIndex > resizedColIndex) {\n element.style.left = `${parseInt(getComputedStyle(element).left, 10) - delta}px`;\n }\n });\n }\n if (isPinnedRight) {\n const pinnedCells = ref.current?.querySelectorAll(`.${gridClasses['cell--pinnedRight']}`);\n pinnedCells?.forEach(element => {\n const colIndex = getColIndex(element);\n if (colIndex < resizedColIndex) {\n element.style.right = `${parseInt(getComputedStyle(element).right, 10) + delta}px`;\n }\n });\n }\n };\n useGridEvent(apiRef, 'columnResize', handleColumnResize);\n return /*#__PURE__*/_jsx(SkeletonOverlay, _extends({\n className: classes.root\n }, rest, {\n ref: handleRef,\n children: children\n }));\n});\nexport const GridSkeletonLoadingOverlay = forwardRef(function GridSkeletonLoadingOverlay(props, forwardedRef) {\n const apiRef = useGridApiContext();\n const dimensions = useGridSelector(apiRef, gridDimensionsSelector);\n const viewportHeight = dimensions?.viewportInnerSize.height ?? 0;\n const skeletonRowsCount = Math.ceil(viewportHeight / dimensions.rowHeight);\n return /*#__PURE__*/_jsx(GridSkeletonLoadingOverlayInner, _extends({}, props, {\n skeletonRowsCount: skeletonRowsCount,\n ref: forwardedRef\n }));\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"variant\", \"noRowsVariant\", \"style\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridRootProps } from \"../hooks/utils/useGridRootProps.js\";\nimport { GridOverlay } from \"./containers/GridOverlay.js\";\nimport { GridSkeletonLoadingOverlay } from \"./GridSkeletonLoadingOverlay.js\";\nimport { useGridApiContext } from \"../hooks/utils/useGridApiContext.js\";\nimport { gridRowCountSelector, useGridSelector } from \"../hooks/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst LOADING_VARIANTS = {\n 'circular-progress': {\n component: rootProps => rootProps.slots.baseCircularProgress,\n style: {}\n },\n 'linear-progress': {\n component: rootProps => rootProps.slots.baseLinearProgress,\n style: {\n display: 'block'\n }\n },\n skeleton: {\n component: () => GridSkeletonLoadingOverlay,\n style: {\n display: 'block'\n }\n }\n};\nconst GridLoadingOverlay = forwardRef(function GridLoadingOverlay(props, ref) {\n const {\n variant = 'linear-progress',\n noRowsVariant = 'skeleton',\n style\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const rowsCount = useGridSelector(apiRef, gridRowCountSelector);\n const activeVariant = LOADING_VARIANTS[rowsCount === 0 ? noRowsVariant : variant];\n const Component = activeVariant.component(rootProps);\n return /*#__PURE__*/_jsx(GridOverlay, _extends({\n style: _extends({}, activeVariant.style, style)\n }, other, {\n ref: ref,\n children: /*#__PURE__*/_jsx(Component, {})\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridLoadingOverlay.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * The variant of the overlay when no rows are displayed.\n * @default 'skeleton'\n */\n noRowsVariant: PropTypes.oneOf(['circular-progress', 'linear-progress', 'skeleton']),\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The variant of the overlay.\n * @default 'linear-progress'\n */\n variant: PropTypes.oneOf(['circular-progress', 'linear-progress', 'skeleton'])\n} : void 0;\nexport { GridLoadingOverlay };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridApiContext } from \"../hooks/utils/useGridApiContext.js\";\nimport { GridOverlay } from \"./containers/GridOverlay.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst GridNoRowsOverlay = forwardRef(function GridNoRowsOverlay(props, ref) {\n const apiRef = useGridApiContext();\n const noRowsLabel = apiRef.current.getLocaleText('noRowsLabel');\n return /*#__PURE__*/_jsx(GridOverlay, _extends({}, props, {\n ref: ref,\n children: noRowsLabel\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridNoRowsOverlay.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport { GridNoRowsOverlay };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridRootProps } from \"../hooks/utils/useGridRootProps.js\";\nimport { useGridApiContext } from \"../hooks/utils/useGridApiContext.js\";\nimport { GridOverlay } from \"./containers/GridOverlay.js\";\nimport { GridPreferencePanelsValue } from \"../hooks/features/preferencesPanel/gridPreferencePanelsValue.js\";\nimport { gridColumnFieldsSelector, useGridSelector } from \"../hooks/index.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst GridNoColumnsOverlay = forwardRef(function GridNoColumnsOverlay(props, ref) {\n const rootProps = useGridRootProps();\n const apiRef = useGridApiContext();\n const columns = useGridSelector(apiRef, gridColumnFieldsSelector);\n const handleOpenManageColumns = () => {\n apiRef.current.showPreferences(GridPreferencePanelsValue.columns);\n };\n const showManageColumnsButton = !rootProps.disableColumnSelector && columns.length > 0;\n return /*#__PURE__*/_jsxs(GridOverlay, _extends({}, props, {\n ref: ref,\n children: [apiRef.current.getLocaleText('noColumnsOverlayLabel'), showManageColumnsButton && /*#__PURE__*/_jsx(rootProps.slots.baseButton, _extends({\n size: \"small\"\n }, rootProps.slotProps?.baseButton, {\n onClick: handleOpenManageColumns,\n children: apiRef.current.getLocaleText('noColumnsOverlayManageColumns')\n }))]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridNoColumnsOverlay.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport { GridNoColumnsOverlay };","import * as React from 'react';\nimport { styled } from '@mui/material/styles';\nimport PropTypes from 'prop-types';\nimport { NotRendered } from \"../utils/assert.js\";\nimport { useGridSelector } from \"../hooks/utils/useGridSelector.js\";\nimport { useGridApiContext } from \"../hooks/utils/useGridApiContext.js\";\nimport { useGridRootProps } from \"../hooks/utils/useGridRootProps.js\";\nimport { gridPaginationModelSelector, gridPaginationRowCountSelector, gridPageCountSelector } from \"../hooks/features/pagination/gridPaginationSelector.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst GridPaginationRoot = styled(NotRendered)({\n maxHeight: 'calc(100% + 1px)',\n // border width\n flexGrow: 1\n});\nfunction GridPagination() {\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const paginationModel = useGridSelector(apiRef, gridPaginationModelSelector);\n const rowCount = useGridSelector(apiRef, gridPaginationRowCountSelector);\n const pageCount = useGridSelector(apiRef, gridPageCountSelector);\n const {\n paginationMode,\n loading\n } = rootProps;\n const disabled = rowCount === -1 && paginationMode === 'server' && loading;\n const lastPage = React.useMemo(() => Math.max(0, pageCount - 1), [pageCount]);\n const computedPage = React.useMemo(() => {\n if (rowCount === -1) {\n return paginationModel.page;\n }\n return paginationModel.page <= lastPage ? paginationModel.page : lastPage;\n }, [lastPage, paginationModel.page, rowCount]);\n const handlePageSizeChange = React.useCallback(pageSize => {\n apiRef.current.setPageSize(pageSize);\n }, [apiRef]);\n const handlePageChange = React.useCallback((_, page) => {\n apiRef.current.setPage(page);\n }, [apiRef]);\n const isPageSizeIncludedInPageSizeOptions = pageSize => {\n for (let i = 0; i < rootProps.pageSizeOptions.length; i += 1) {\n const option = rootProps.pageSizeOptions[i];\n if (typeof option === 'number') {\n if (option === pageSize) {\n return true;\n }\n } else if (option.value === pageSize) {\n return true;\n }\n }\n return false;\n };\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const warnedOnceMissingInPageSizeOptions = React.useRef(false);\n const pageSize = rootProps.paginationModel?.pageSize ?? paginationModel.pageSize;\n if (!warnedOnceMissingInPageSizeOptions.current && !rootProps.autoPageSize && !isPageSizeIncludedInPageSizeOptions(pageSize)) {\n console.warn([`MUI X: The page size \\`${paginationModel.pageSize}\\` is not present in the \\`pageSizeOptions\\`.`, `Add it to show the pagination select.`].join('\\n'));\n warnedOnceMissingInPageSizeOptions.current = true;\n }\n }\n const pageSizeOptions = isPageSizeIncludedInPageSizeOptions(paginationModel.pageSize) ? rootProps.pageSizeOptions : [];\n return /*#__PURE__*/_jsx(GridPaginationRoot, {\n as: rootProps.slots.basePagination,\n count: rowCount,\n page: computedPage,\n rowsPerPageOptions: pageSizeOptions,\n rowsPerPage: paginationModel.pageSize,\n onPageChange: handlePageChange,\n onRowsPerPageChange: handlePageSizeChange,\n disabled: disabled\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GridPagination.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n component: PropTypes.elementType\n} : void 0;\nexport { GridPagination };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\", \"rowCount\", \"visibleRowCount\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from '@mui/system';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { vars } from \"../constants/cssVariables.js\";\nimport { useGridApiContext } from \"../hooks/utils/useGridApiContext.js\";\nimport { getDataGridUtilityClass } from \"../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../hooks/utils/useGridRootProps.js\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['rowCount']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridRowCountRoot = styled('div', {\n name: 'MuiDataGrid',\n slot: 'RowCount'\n})({\n alignItems: 'center',\n display: 'flex',\n margin: vars.spacing(0, 2)\n});\nconst GridRowCount = forwardRef(function GridRowCount(props, ref) {\n const {\n className,\n rowCount,\n visibleRowCount\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridApiContext();\n const ownerState = useGridRootProps();\n const classes = useUtilityClasses(ownerState);\n if (rowCount === 0) {\n return null;\n }\n const text = visibleRowCount < rowCount ? apiRef.current.getLocaleText('footerTotalVisibleRows')(visibleRowCount, rowCount) : rowCount.toLocaleString();\n return /*#__PURE__*/_jsxs(GridRowCountRoot, _extends({\n className: clsx(classes.root, className),\n ownerState: ownerState\n }, other, {\n ref: ref,\n children: [apiRef.current.getLocaleText('footerTotalRows'), \" \", text]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridRowCount.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n rowCount: PropTypes.number.isRequired,\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n visibleRowCount: PropTypes.number.isRequired\n} : void 0;\nexport { GridRowCount };","import { unstable_composeClasses as composeClasses } from '@mui/utils';\nimport { getDataGridUtilityClass } from \"../constants/gridClasses.js\";\nexport function composeGridClasses(classes, slots) {\n return composeClasses(slots, getDataGridUtilityClass, classes);\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"selected\", \"rowId\", \"row\", \"index\", \"style\", \"rowHeight\", \"className\", \"visibleColumns\", \"pinnedColumns\", \"offsetLeft\", \"columnsTotalWidth\", \"firstColumnIndex\", \"lastColumnIndex\", \"focusedColumnIndex\", \"isFirstVisible\", \"isLastVisible\", \"isNotVisible\", \"showBottomBorder\", \"scrollbarWidth\", \"gridHasFiller\", \"onClick\", \"onDoubleClick\", \"onMouseEnter\", \"onMouseLeave\", \"onMouseOut\", \"onMouseOver\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { fastMemo } from '@mui/x-internals/fastMemo';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { isObjectEmpty } from '@mui/x-internals/isObjectEmpty';\nimport { GridEditModes, GridCellModes } from \"../models/gridEditRowModel.js\";\nimport { gridClasses } from \"../constants/gridClasses.js\";\nimport { composeGridClasses } from \"../utils/composeGridClasses.js\";\nimport { useGridRootProps } from \"../hooks/utils/useGridRootProps.js\";\nimport { shouldCellShowLeftBorder, shouldCellShowRightBorder } from \"../utils/cellBorderUtils.js\";\nimport { gridColumnPositionsSelector } from \"../hooks/features/columns/gridColumnsSelector.js\";\nimport { useGridSelector, objectShallowCompare } from \"../hooks/utils/useGridSelector.js\";\nimport { useGridVisibleRows } from \"../hooks/utils/useGridVisibleRows.js\";\nimport { findParentElementFromClassName, isEventTargetInPortal } from \"../utils/domUtils.js\";\nimport { GRID_CHECKBOX_SELECTION_COL_DEF } from \"../colDef/gridCheckboxSelectionColDef.js\";\nimport { GRID_ACTIONS_COLUMN_TYPE } from \"../colDef/gridActionsColDef.js\";\nimport { GRID_DETAIL_PANEL_TOGGLE_FIELD, PinnedColumnPosition } from \"../internals/constants.js\";\nimport { gridSortModelSelector } from \"../hooks/features/sorting/gridSortingSelector.js\";\nimport { gridRowMaximumTreeDepthSelector, gridRowNodeSelector } from \"../hooks/features/rows/gridRowsSelector.js\";\nimport { gridEditRowsStateSelector, gridRowIsEditingSelector } from \"../hooks/features/editing/gridEditingSelectors.js\";\nimport { GridScrollbarFillerCell as ScrollbarFiller } from \"./GridScrollbarFillerCell.js\";\nimport { getPinnedCellOffset } from \"../internals/utils/getPinnedCellOffset.js\";\nimport { useGridConfiguration } from \"../hooks/utils/useGridConfiguration.js\";\nimport { useGridPrivateApiContext } from \"../hooks/utils/useGridPrivateApiContext.js\";\nimport { createSelector } from \"../utils/createSelector.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst isRowReorderingEnabledSelector = createSelector(gridEditRowsStateSelector, (editRows, rowReordering) => {\n if (!rowReordering) {\n return false;\n }\n const isEditingRows = !isObjectEmpty(editRows);\n return !isEditingRows;\n});\nconst GridRow = forwardRef(function GridRow(props, refProp) {\n const {\n selected,\n rowId,\n row,\n index,\n style: styleProp,\n rowHeight,\n className,\n visibleColumns,\n pinnedColumns,\n offsetLeft,\n columnsTotalWidth,\n firstColumnIndex,\n lastColumnIndex,\n focusedColumnIndex,\n isFirstVisible,\n isLastVisible,\n isNotVisible,\n showBottomBorder,\n scrollbarWidth,\n gridHasFiller,\n onClick,\n onDoubleClick,\n onMouseEnter,\n onMouseLeave,\n onMouseOut,\n onMouseOver\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const apiRef = useGridPrivateApiContext();\n const configuration = useGridConfiguration();\n const ref = React.useRef(null);\n const rootProps = useGridRootProps();\n const currentPage = useGridVisibleRows(apiRef, rootProps);\n const sortModel = useGridSelector(apiRef, gridSortModelSelector);\n const treeDepth = useGridSelector(apiRef, gridRowMaximumTreeDepthSelector);\n const columnPositions = useGridSelector(apiRef, gridColumnPositionsSelector);\n const rowReordering = rootProps.rowReordering;\n const isRowReorderingEnabled = useGridSelector(apiRef, isRowReorderingEnabledSelector, rowReordering);\n const handleRef = useForkRef(ref, refProp);\n const rowNode = gridRowNodeSelector(apiRef, rowId);\n const editing = useGridSelector(apiRef, gridRowIsEditingSelector, {\n rowId,\n editMode: rootProps.editMode\n });\n const editable = rootProps.editMode === GridEditModes.Row;\n const hasFocusCell = focusedColumnIndex !== undefined;\n const hasVirtualFocusCellLeft = hasFocusCell && focusedColumnIndex >= pinnedColumns.left.length && focusedColumnIndex < firstColumnIndex;\n const hasVirtualFocusCellRight = hasFocusCell && focusedColumnIndex < visibleColumns.length - pinnedColumns.right.length && focusedColumnIndex >= lastColumnIndex;\n const classes = composeGridClasses(rootProps.classes, {\n root: ['row', selected && 'selected', editable && 'row--editable', editing && 'row--editing', isFirstVisible && 'row--firstVisible', isLastVisible && 'row--lastVisible', showBottomBorder && 'row--borderBottom', rowHeight === 'auto' && 'row--dynamicHeight']\n });\n const getRowAriaAttributes = configuration.hooks.useGridRowAriaAttributes();\n React.useLayoutEffect(() => {\n if (currentPage.range) {\n const rowIndex = apiRef.current.getRowIndexRelativeToVisibleRows(rowId);\n // Pinned rows are not part of the visible rows\n if (rowIndex !== undefined) {\n apiRef.current.unstable_setLastMeasuredRowIndex(rowIndex);\n }\n }\n if (ref.current && rowHeight === 'auto') {\n return apiRef.current.observeRowHeight(ref.current, rowId);\n }\n return undefined;\n }, [apiRef, currentPage.range, rowHeight, rowId]);\n const publish = React.useCallback((eventName, propHandler) => event => {\n // Ignore portal\n if (isEventTargetInPortal(event)) {\n return;\n }\n\n // The row might have been deleted\n if (!apiRef.current.getRow(rowId)) {\n return;\n }\n apiRef.current.publishEvent(eventName, apiRef.current.getRowParams(rowId), event);\n if (propHandler) {\n propHandler(event);\n }\n }, [apiRef, rowId]);\n const publishClick = React.useCallback(event => {\n const cell = findParentElementFromClassName(event.target, gridClasses.cell);\n const field = cell?.getAttribute('data-field');\n\n // Check if the field is available because the cell that fills the empty\n // space of the row has no field.\n if (field) {\n // User clicked in the checkbox added by checkboxSelection\n if (field === GRID_CHECKBOX_SELECTION_COL_DEF.field) {\n return;\n }\n\n // User opened a detail panel\n if (field === GRID_DETAIL_PANEL_TOGGLE_FIELD) {\n return;\n }\n\n // User reorders a row\n if (field === '__reorder__') {\n return;\n }\n\n // User is editing a cell\n if (apiRef.current.getCellMode(rowId, field) === GridCellModes.Edit) {\n return;\n }\n\n // User clicked a button from the \"actions\" column type\n const column = apiRef.current.getColumn(field);\n if (column?.type === GRID_ACTIONS_COLUMN_TYPE) {\n return;\n }\n }\n publish('rowClick', onClick)(event);\n }, [apiRef, onClick, publish, rowId]);\n const {\n slots,\n slotProps,\n disableColumnReorder\n } = rootProps;\n const heightEntry = useGridSelector(apiRef, () => _extends({}, apiRef.current.getRowHeightEntry(rowId)), undefined, objectShallowCompare);\n const style = React.useMemo(() => {\n if (isNotVisible) {\n return {\n opacity: 0,\n width: 0,\n height: 0\n };\n }\n const rowStyle = _extends({}, styleProp, {\n maxHeight: rowHeight === 'auto' ? 'none' : rowHeight,\n // max-height doesn't support \"auto\"\n minHeight: rowHeight,\n '--height': typeof rowHeight === 'number' ? `${rowHeight}px` : rowHeight\n });\n if (heightEntry.spacingTop) {\n const property = rootProps.rowSpacingType === 'border' ? 'borderTopWidth' : 'marginTop';\n rowStyle[property] = heightEntry.spacingTop;\n }\n if (heightEntry.spacingBottom) {\n const property = rootProps.rowSpacingType === 'border' ? 'borderBottomWidth' : 'marginBottom';\n let propertyValue = rowStyle[property];\n // avoid overriding existing value\n if (typeof propertyValue !== 'number') {\n propertyValue = parseInt(propertyValue || '0', 10);\n }\n propertyValue += heightEntry.spacingBottom;\n rowStyle[property] = propertyValue;\n }\n return rowStyle;\n }, [isNotVisible, rowHeight, styleProp, heightEntry, rootProps.rowSpacingType]);\n const rowClassNames = apiRef.current.unstable_applyPipeProcessors('rowClassName', [], rowId);\n const ariaAttributes = getRowAriaAttributes(rowNode, index);\n if (typeof rootProps.getRowClassName === 'function') {\n const indexRelativeToCurrentPage = index - (currentPage.range?.firstRowIndex || 0);\n const rowParams = _extends({}, apiRef.current.getRowParams(rowId), {\n isFirstVisible: indexRelativeToCurrentPage === 0,\n isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,\n indexRelativeToCurrentPage\n });\n rowClassNames.push(rootProps.getRowClassName(rowParams));\n }\n const getCell = (column, indexInSection, indexRelativeToAllColumns, sectionLength, pinnedPosition = PinnedColumnPosition.NONE) => {\n const cellColSpanInfo = apiRef.current.unstable_getCellColSpanInfo(rowId, indexRelativeToAllColumns);\n if (cellColSpanInfo?.spannedByColSpan) {\n return null;\n }\n const width = cellColSpanInfo?.cellProps.width ?? column.computedWidth;\n const colSpan = cellColSpanInfo?.cellProps.colSpan ?? 1;\n const pinnedOffset = getPinnedCellOffset(pinnedPosition, column.computedWidth, indexRelativeToAllColumns, columnPositions, columnsTotalWidth, scrollbarWidth);\n if (rowNode.type === 'skeletonRow') {\n return /*#__PURE__*/_jsx(slots.skeletonCell, {\n type: column.type,\n width: width,\n height: rowHeight,\n field: column.field,\n align: column.align\n }, column.field);\n }\n\n // when the cell is a reorder cell we are not allowing to reorder the col\n // fixes https://github.com/mui/mui-x/issues/11126\n const isReorderCell = column.field === '__reorder__';\n const canReorderColumn = !(disableColumnReorder || column.disableReorder);\n const canReorderRow = isRowReorderingEnabled && !sortModel.length && treeDepth <= 1;\n const disableDragEvents = !(canReorderColumn || isReorderCell && canReorderRow);\n const cellIsNotVisible = pinnedPosition === PinnedColumnPosition.VIRTUAL;\n const showLeftBorder = shouldCellShowLeftBorder(pinnedPosition, indexInSection);\n const showRightBorder = shouldCellShowRightBorder(pinnedPosition, indexInSection, sectionLength, rootProps.showCellVerticalBorder, gridHasFiller);\n return /*#__PURE__*/_jsx(slots.cell, _extends({\n column: column,\n width: width,\n rowId: rowId,\n align: column.align || 'left',\n colIndex: indexRelativeToAllColumns,\n colSpan: colSpan,\n disableDragEvents: disableDragEvents,\n isNotVisible: cellIsNotVisible,\n pinnedOffset: pinnedOffset,\n pinnedPosition: pinnedPosition,\n showLeftBorder: showLeftBorder,\n showRightBorder: showRightBorder,\n row: row,\n rowNode: rowNode\n }, slotProps?.cell), column.field);\n };\n const leftCells = pinnedColumns.left.map((column, i) => {\n const indexRelativeToAllColumns = i;\n return getCell(column, i, indexRelativeToAllColumns, pinnedColumns.left.length, PinnedColumnPosition.LEFT);\n });\n const rightCells = pinnedColumns.right.map((column, i) => {\n const indexRelativeToAllColumns = visibleColumns.length - pinnedColumns.right.length + i;\n return getCell(column, i, indexRelativeToAllColumns, pinnedColumns.right.length, PinnedColumnPosition.RIGHT);\n });\n const middleColumnsLength = visibleColumns.length - pinnedColumns.left.length - pinnedColumns.right.length;\n const cells = [];\n if (hasVirtualFocusCellLeft) {\n cells.push(getCell(visibleColumns[focusedColumnIndex], focusedColumnIndex - pinnedColumns.left.length, focusedColumnIndex, middleColumnsLength, PinnedColumnPosition.VIRTUAL));\n }\n for (let i = firstColumnIndex; i < lastColumnIndex; i += 1) {\n const column = visibleColumns[i];\n const indexInSection = i - pinnedColumns.left.length;\n if (!column) {\n continue;\n }\n cells.push(getCell(column, indexInSection, i, middleColumnsLength));\n }\n if (hasVirtualFocusCellRight) {\n cells.push(getCell(visibleColumns[focusedColumnIndex], focusedColumnIndex - pinnedColumns.left.length, focusedColumnIndex, middleColumnsLength, PinnedColumnPosition.VIRTUAL));\n }\n const eventHandlers = row ? {\n onClick: publishClick,\n onDoubleClick: publish('rowDoubleClick', onDoubleClick),\n onMouseEnter: publish('rowMouseEnter', onMouseEnter),\n onMouseLeave: publish('rowMouseLeave', onMouseLeave),\n onMouseOut: publish('rowMouseOut', onMouseOut),\n onMouseOver: publish('rowMouseOver', onMouseOver)\n } : null;\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n \"data-id\": rowId,\n \"data-rowindex\": index,\n role: \"row\",\n className: clsx(...rowClassNames, classes.root, className),\n style: style\n }, ariaAttributes, eventHandlers, other, {\n ref: handleRef,\n children: [leftCells, /*#__PURE__*/_jsx(\"div\", {\n role: \"presentation\",\n className: gridClasses.cellOffsetLeft,\n style: {\n width: offsetLeft\n }\n }), cells, /*#__PURE__*/_jsx(\"div\", {\n role: \"presentation\",\n className: clsx(gridClasses.cell, gridClasses.cellEmpty)\n }), rightCells, scrollbarWidth !== 0 && /*#__PURE__*/_jsx(ScrollbarFiller, {\n pinnedRight: pinnedColumns.right.length > 0,\n borderTop: !isFirstVisible\n })]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridRow.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n columnsTotalWidth: PropTypes.number.isRequired,\n firstColumnIndex: PropTypes.number.isRequired,\n /**\n * Determines which cell has focus.\n * If `null`, no cell in this row has focus.\n */\n focusedColumnIndex: PropTypes.number,\n gridHasFiller: PropTypes.bool.isRequired,\n /**\n * Index of the row in the whole sorted and filtered dataset.\n * If some rows above have expanded children, this index also take those children into account.\n */\n index: PropTypes.number.isRequired,\n isFirstVisible: PropTypes.bool.isRequired,\n isLastVisible: PropTypes.bool.isRequired,\n isNotVisible: PropTypes.bool.isRequired,\n lastColumnIndex: PropTypes.number.isRequired,\n offsetLeft: PropTypes.number.isRequired,\n onClick: PropTypes.func,\n onDoubleClick: PropTypes.func,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n pinnedColumns: PropTypes.object.isRequired,\n row: PropTypes.object.isRequired,\n rowHeight: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]).isRequired,\n rowId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,\n scrollbarWidth: PropTypes.number.isRequired,\n selected: PropTypes.bool.isRequired,\n showBottomBorder: PropTypes.bool.isRequired,\n visibleColumns: PropTypes.arrayOf(PropTypes.object).isRequired\n} : void 0;\nconst MemoizedGridRow = fastMemo(GridRow);\nexport { MemoizedGridRow as GridRow };","import { gridVisibleColumnDefinitionsSelector } from \"../features/columns/gridColumnsSelector.js\";\nimport { useGridSelector } from \"./useGridSelector.js\";\nimport { useGridRootProps } from \"./useGridRootProps.js\";\nimport { gridColumnGroupsHeaderMaxDepthSelector } from \"../features/columnGrouping/gridColumnGroupsSelector.js\";\nimport { gridPinnedRowsCountSelector } from \"../features/rows/gridRowsSelector.js\";\nimport { useGridPrivateApiContext } from \"./useGridPrivateApiContext.js\";\nimport { isMultipleRowSelectionEnabled } from \"../features/rowSelection/utils.js\";\nimport { gridExpandedRowCountSelector } from \"../features/filter/gridFilterSelector.js\";\nexport const useGridAriaAttributes = () => {\n const apiRef = useGridPrivateApiContext();\n const rootProps = useGridRootProps();\n const visibleColumns = useGridSelector(apiRef, gridVisibleColumnDefinitionsSelector);\n const accessibleRowCount = useGridSelector(apiRef, gridExpandedRowCountSelector);\n const headerGroupingMaxDepth = useGridSelector(apiRef, gridColumnGroupsHeaderMaxDepthSelector);\n const pinnedRowsCount = useGridSelector(apiRef, gridPinnedRowsCountSelector);\n const ariaLabel = rootProps['aria-label'];\n const ariaLabelledby = rootProps['aria-labelledby'];\n // `aria-label` and `aria-labelledby` should take precedence over `label`\n const shouldUseLabelAsAriaLabel = !ariaLabel && !ariaLabelledby && rootProps.label;\n return {\n role: 'grid',\n 'aria-label': shouldUseLabelAsAriaLabel ? rootProps.label : ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-colcount': visibleColumns.length,\n 'aria-rowcount': headerGroupingMaxDepth + 1 + pinnedRowsCount + accessibleRowCount,\n 'aria-multiselectable': isMultipleRowSelectionEnabled(rootProps)\n };\n};","import * as React from 'react';\nimport { useGridSelector } from \"../../utils/useGridSelector.js\";\nimport { gridColumnGroupsHeaderMaxDepthSelector } from \"../columnGrouping/gridColumnGroupsSelector.js\";\nimport { useGridPrivateApiContext } from \"../../utils/useGridPrivateApiContext.js\";\nexport const useGridRowAriaAttributes = () => {\n const apiRef = useGridPrivateApiContext();\n const headerGroupingMaxDepth = useGridSelector(apiRef, gridColumnGroupsHeaderMaxDepthSelector);\n return React.useCallback((rowNode, index) => {\n const ariaAttributes = {};\n const ariaRowIndex = index + headerGroupingMaxDepth + 2; // 1 for the header row and 1 as it's 1-based\n ariaAttributes['aria-rowindex'] = ariaRowIndex;\n if (apiRef.current.isRowSelectable(rowNode.id)) {\n ariaAttributes['aria-selected'] = apiRef.current.isRowSelected(rowNode.id);\n }\n return ariaAttributes;\n }, [apiRef, headerGroupingMaxDepth]);\n};","import * as React from 'react';\nimport { GridApiContext } from \"../components/GridApiContext.js\";\nimport { GridPrivateApiContext } from \"../hooks/utils/useGridPrivateApiContext.js\";\nimport { GridRootPropsContext } from \"./GridRootPropsContext.js\";\nimport { GridConfigurationContext } from \"../components/GridConfigurationContext.js\";\nimport { GridPanelContextProvider } from \"../components/panel/GridPanelContext.js\";\nimport { GridCSSVariablesContext } from \"../utils/css/context.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function GridContextProvider({\n privateApiRef,\n configuration,\n props,\n children\n}) {\n const apiRef = React.useRef(privateApiRef.current.getPublicApi());\n return /*#__PURE__*/_jsx(GridConfigurationContext.Provider, {\n value: configuration,\n children: /*#__PURE__*/_jsx(GridRootPropsContext.Provider, {\n value: props,\n children: /*#__PURE__*/_jsx(GridPrivateApiContext.Provider, {\n value: privateApiRef,\n children: /*#__PURE__*/_jsx(GridApiContext.Provider, {\n value: apiRef,\n children: /*#__PURE__*/_jsx(GridPanelContextProvider, {\n children: /*#__PURE__*/_jsx(GridCSSVariablesContext, {\n children: children\n })\n })\n })\n })\n })\n });\n}","import * as React from 'react';\nexport const useGridRefs = apiRef => {\n const rootElementRef = React.useRef(null);\n const mainElementRef = React.useRef(null);\n const virtualScrollerRef = React.useRef(null);\n const virtualScrollbarVerticalRef = React.useRef(null);\n const virtualScrollbarHorizontalRef = React.useRef(null);\n const columnHeadersContainerRef = React.useRef(null);\n apiRef.current.register('public', {\n rootElementRef\n });\n apiRef.current.register('private', {\n mainElementRef,\n virtualScrollerRef,\n virtualScrollbarVerticalRef,\n virtualScrollbarHorizontalRef,\n columnHeadersContainerRef\n });\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useRtl } from '@mui/system/RtlProvider';\nexport const useGridIsRtl = apiRef => {\n const isRtl = useRtl();\n if (apiRef.current.state.isRtl === undefined) {\n apiRef.current.state.isRtl = isRtl;\n }\n const isFirstEffect = React.useRef(true);\n React.useEffect(() => {\n if (isFirstEffect.current) {\n isFirstEffect.current = false;\n } else {\n apiRef.current.setState(state => _extends({}, state, {\n isRtl\n }));\n }\n }, [apiRef, isRtl]);\n};","import * as React from 'react';\nimport { localStorageAvailable } from \"../../utils/utils.js\";\nimport { useGridApiMethod } from \"../utils/index.js\";\nconst forceDebug = localStorageAvailable() && window.localStorage.getItem('DEBUG') != null;\nconst noop = () => {};\nconst noopLogger = {\n debug: noop,\n info: noop,\n warn: noop,\n error: noop\n};\nconst LOG_LEVELS = ['debug', 'info', 'warn', 'error'];\nfunction getAppender(name, logLevel, appender = console) {\n const minLogLevelIdx = LOG_LEVELS.indexOf(logLevel);\n if (minLogLevelIdx === -1) {\n throw new Error(`MUI X: Log level ${logLevel} not recognized.`);\n }\n const logger = LOG_LEVELS.reduce((loggerObj, method, idx) => {\n if (idx >= minLogLevelIdx) {\n loggerObj[method] = (...args) => {\n const [message, ...other] = args;\n appender[method](`MUI X: ${name} - ${message}`, ...other);\n };\n } else {\n loggerObj[method] = noop;\n }\n return loggerObj;\n }, {});\n return logger;\n}\nexport const useGridLoggerFactory = (apiRef, props) => {\n const getLogger = React.useCallback(name => {\n if (forceDebug) {\n return getAppender(name, 'debug', props.logger);\n }\n if (!props.logLevel) {\n return noopLogger;\n }\n return getAppender(name, props.logLevel.toString(), props.logger);\n }, [props.logLevel, props.logger]);\n useGridApiMethod(apiRef, {\n getLogger\n }, 'private');\n};","import * as React from 'react';\nexport const useGridLocaleText = (apiRef, props) => {\n const getLocaleText = React.useCallback(key => {\n if (props.localeText[key] == null) {\n throw new Error(`Missing translation for key ${key}.`);\n }\n return props.localeText[key];\n }, [props.localeText]);\n apiRef.current.register('public', {\n getLocaleText\n });\n};","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };","import _typeof from \"./typeof.js\";\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nexport { toPrimitive as default };","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nexport { toPropertyKey as default };","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _toPropertyKey from \"@babel/runtime/helpers/esm/toPropertyKey\";\nimport * as React from 'react';\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\n/**\n * Implement the Pipeline Pattern\n *\n * More information and detailed example in (TODO add link to technical doc when ready)\n *\n * Some plugins contains custom logic to enrich data provided by other plugins or components.\n * For instance, the row grouping plugin needs to add / remove the grouping columns when the grid columns are updated.\n *\n * =====================================================================================================================\n *\n * The plugin containing the custom logic must use:\n *\n * - `useGridRegisterPipeProcessor` to register their processor.\n *\n * - `apiRef.current.requestPipeProcessorsApplication` to imperatively re-apply a group.\n * This method should be used in last resort.\n * Most of the time, the application should be triggered by an update on the deps of the processor.\n *\n * =====================================================================================================================\n *\n * The plugin or component that needs to enrich its data must use:\n *\n * - `apiRef.current.unstable_applyPipeProcessors` to run in chain all the processors of a given group.\n *\n * - `useGridRegisterPipeApplier` to re-apply the whole pipe when requested.\n * The applier will be called when:\n * * a processor is registered.\n * * `apiRef.current.requestPipeProcessorsApplication` is called for the given group.\n */\nexport const useGridPipeProcessing = apiRef => {\n const cache = React.useRef({});\n const isRunning = React.useRef(false);\n const runAppliers = React.useCallback(groupCache => {\n if (isRunning.current || !groupCache) {\n return;\n }\n isRunning.current = true;\n Object.values(groupCache.appliers).forEach(callback => {\n callback();\n });\n isRunning.current = false;\n }, []);\n const registerPipeProcessor = React.useCallback((group, id, processor) => {\n if (!cache.current[group]) {\n cache.current[group] = {\n processors: new Map(),\n processorsAsArray: [],\n appliers: {}\n };\n }\n const groupCache = cache.current[group];\n const oldProcessor = groupCache.processors.get(id);\n if (oldProcessor !== processor) {\n groupCache.processors.set(id, processor);\n groupCache.processorsAsArray = Array.from(cache.current[group].processors.values());\n runAppliers(groupCache);\n }\n return () => {\n cache.current[group].processors.delete(id);\n cache.current[group].processorsAsArray = Array.from(cache.current[group].processors.values());\n };\n }, [runAppliers]);\n const registerPipeApplier = React.useCallback((group, id, applier) => {\n if (!cache.current[group]) {\n cache.current[group] = {\n processors: new Map(),\n processorsAsArray: [],\n appliers: {}\n };\n }\n cache.current[group].appliers[id] = applier;\n return () => {\n const _appliers = cache.current[group].appliers,\n otherAppliers = _objectWithoutPropertiesLoose(_appliers, [id].map(_toPropertyKey));\n cache.current[group].appliers = otherAppliers;\n };\n }, []);\n const requestPipeProcessorsApplication = React.useCallback(group => {\n runAppliers(cache.current[group]);\n }, [runAppliers]);\n const applyPipeProcessors = React.useCallback((...args) => {\n const [group, value, context] = args;\n if (!cache.current[group]) {\n return value;\n }\n const processors = cache.current[group].processorsAsArray;\n let result = value;\n for (let i = 0; i < processors.length; i += 1) {\n result = processors[i](result, context);\n }\n return result;\n }, []);\n const preProcessingPrivateApi = {\n registerPipeProcessor,\n registerPipeApplier,\n requestPipeProcessorsApplication\n };\n const preProcessingPublicApi = {\n unstable_applyPipeProcessors: applyPipeProcessors\n };\n useGridApiMethod(apiRef, preProcessingPrivateApi, 'private');\n useGridApiMethod(apiRef, preProcessingPublicApi, 'public');\n};","import * as React from 'react';\nimport { useFirstRender } from \"../../utils/useFirstRender.js\";\nexport const useGridRegisterPipeProcessor = (apiRef, group, callback, enabled = true) => {\n const cleanup = React.useRef(null);\n const id = React.useRef(`mui-${Math.round(Math.random() * 1e9)}`);\n const registerPreProcessor = React.useCallback(() => {\n cleanup.current = apiRef.current.registerPipeProcessor(group, id.current, callback);\n }, [apiRef, callback, group]);\n useFirstRender(() => {\n if (enabled) {\n registerPreProcessor();\n }\n });\n const isFirstRender = React.useRef(true);\n React.useEffect(() => {\n if (isFirstRender.current) {\n isFirstRender.current = false;\n } else if (enabled) {\n registerPreProcessor();\n }\n return () => {\n if (cleanup.current) {\n cleanup.current();\n cleanup.current = null;\n }\n };\n }, [registerPreProcessor, enabled]);\n};","import * as React from 'react';\nimport { useFirstRender } from \"../../utils/useFirstRender.js\";\nexport const useGridRegisterPipeApplier = (apiRef, group, callback) => {\n const cleanup = React.useRef(null);\n const id = React.useRef(`mui-${Math.round(Math.random() * 1e9)}`);\n const registerPreProcessor = React.useCallback(() => {\n cleanup.current = apiRef.current.registerPipeApplier(group, id.current, callback);\n }, [apiRef, callback, group]);\n useFirstRender(() => {\n registerPreProcessor();\n });\n const isFirstRender = React.useRef(true);\n React.useEffect(() => {\n if (isFirstRender.current) {\n isFirstRender.current = false;\n } else {\n registerPreProcessor();\n }\n return () => {\n if (cleanup.current) {\n cleanup.current();\n cleanup.current = null;\n }\n };\n }, [registerPreProcessor]);\n};","export let GridStrategyGroup = /*#__PURE__*/function (GridStrategyGroup) {\n GridStrategyGroup[\"DataSource\"] = \"dataSource\";\n GridStrategyGroup[\"RowTree\"] = \"rowTree\";\n return GridStrategyGroup;\n}({});","import * as React from 'react';\nimport { useFirstRender } from \"../../utils/useFirstRender.js\";\nexport const useGridRegisterStrategyProcessor = (apiRef, strategyName, group, processor) => {\n const registerPreProcessor = React.useCallback(() => {\n apiRef.current.registerStrategyProcessor(strategyName, group, processor);\n }, [apiRef, processor, group, strategyName]);\n useFirstRender(() => {\n registerPreProcessor();\n });\n const isFirstRender = React.useRef(true);\n React.useEffect(() => {\n if (isFirstRender.current) {\n isFirstRender.current = false;\n } else {\n registerPreProcessor();\n }\n }, [registerPreProcessor]);\n};","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _toPropertyKey from \"@babel/runtime/helpers/esm/toPropertyKey\";\nimport * as React from 'react';\nimport { GridStrategyGroup } from \"./gridStrategyProcessingApi.js\";\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nexport const GRID_DEFAULT_STRATEGY = 'none';\nexport const GRID_STRATEGIES_PROCESSORS = {\n dataSourceRowsUpdate: GridStrategyGroup.DataSource,\n rowTreeCreation: GridStrategyGroup.RowTree,\n filtering: GridStrategyGroup.RowTree,\n sorting: GridStrategyGroup.RowTree,\n visibleRowsLookupCreation: GridStrategyGroup.RowTree\n};\n/**\n * Implements a variant of the Strategy Pattern (see https://en.wikipedia.org/wiki/Strategy_pattern)\n *\n * More information and detailed example in (TODO add link to technical doc when ready)\n *\n * Some plugins contains custom logic that must only be applied if the right strategy is active.\n * For instance, the row grouping plugin has a custom filtering algorithm.\n * This algorithm must be applied by the filtering plugin if the row grouping is the current way of grouping rows,\n * but not if the tree data is the current way of grouping rows.\n *\n * =====================================================================================================================\n *\n * The plugin containing the custom logic must use:\n *\n * - `useGridRegisterStrategyProcessor` to register their processor.\n * When the processor of the active strategy changes, it will fire `\"activeStrategyProcessorChange\"` to re-apply the processor.\n *\n * - `apiRef.current.setStrategyAvailability` to tell if their strategy can be used.\n *\n * =====================================================================================================================\n *\n * The plugin or component that needs to apply the custom logic of the current strategy must use:\n *\n * - `apiRef.current.applyStrategyProcessor` to run the processor of the active strategy for a given processor name.\n *\n * - the \"strategyAvailabilityChange\" event to update something when the active strategy changes.\n * Warning: Be careful not to apply the processor several times.\n * For instance \"rowsSet\" is fired by `useGridRows` whenever the active strategy changes.\n * So listening to both would most likely run your logic twice.\n *\n * - The \"activeStrategyProcessorChange\" event to update something when the processor of the active strategy changes.\n *\n * =====================================================================================================================\n *\n * Each processor name is part of a strategy group which can only have one active strategy at the time.\n * There are two active groups named `rowTree` and `dataSource`.\n */\nexport const useGridStrategyProcessing = apiRef => {\n const availableStrategies = React.useRef(new Map());\n const strategiesCache = React.useRef({});\n const registerStrategyProcessor = React.useCallback((strategyName, processorName, processor) => {\n const cleanup = () => {\n const _ref = strategiesCache.current[processorName],\n otherProcessors = _objectWithoutPropertiesLoose(_ref, [strategyName].map(_toPropertyKey));\n strategiesCache.current[processorName] = otherProcessors;\n };\n if (!strategiesCache.current[processorName]) {\n strategiesCache.current[processorName] = {};\n }\n const groupPreProcessors = strategiesCache.current[processorName];\n const previousProcessor = groupPreProcessors[strategyName];\n groupPreProcessors[strategyName] = processor;\n if (!previousProcessor || previousProcessor === processor) {\n return cleanup;\n }\n if (strategyName === apiRef.current.getActiveStrategy(GRID_STRATEGIES_PROCESSORS[processorName])) {\n apiRef.current.publishEvent('activeStrategyProcessorChange', processorName);\n }\n return cleanup;\n }, [apiRef]);\n const applyStrategyProcessor = React.useCallback((processorName, params) => {\n const activeStrategy = apiRef.current.getActiveStrategy(GRID_STRATEGIES_PROCESSORS[processorName]);\n if (activeStrategy == null) {\n throw new Error(\"Can't apply a strategy processor before defining an active strategy\");\n }\n const groupCache = strategiesCache.current[processorName];\n if (!groupCache || !groupCache[activeStrategy]) {\n throw new Error(`No processor found for processor \"${processorName}\" on strategy \"${activeStrategy}\"`);\n }\n const processor = groupCache[activeStrategy];\n return processor(params);\n }, [apiRef]);\n const getActiveStrategy = React.useCallback(strategyGroup => {\n const strategyEntries = Array.from(availableStrategies.current.entries());\n const availableStrategyEntry = strategyEntries.find(([, strategy]) => {\n if (strategy.group !== strategyGroup) {\n return false;\n }\n return strategy.isAvailable();\n });\n return availableStrategyEntry?.[0] ?? GRID_DEFAULT_STRATEGY;\n }, []);\n const setStrategyAvailability = React.useCallback((strategyGroup, strategyName, isAvailable) => {\n availableStrategies.current.set(strategyName, {\n group: strategyGroup,\n isAvailable\n });\n apiRef.current.publishEvent('strategyAvailabilityChange');\n }, [apiRef]);\n const strategyProcessingApi = {\n registerStrategyProcessor,\n applyStrategyProcessor,\n getActiveStrategy,\n setStrategyAvailability\n };\n useGridApiMethod(apiRef, strategyProcessingApi, 'private');\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useGridApiMethod } from \"../utils/index.js\";\nimport { isFunction } from \"../../utils/utils.js\";\nexport const useGridStateInitialization = apiRef => {\n const controlStateMapRef = React.useRef({});\n const registerControlState = React.useCallback(controlStateItem => {\n controlStateMapRef.current[controlStateItem.stateId] = controlStateItem;\n }, []);\n const setState = React.useCallback((state, reason) => {\n let newState;\n if (isFunction(state)) {\n newState = state(apiRef.current.state);\n } else {\n newState = state;\n }\n if (apiRef.current.state === newState) {\n return false;\n }\n const apiRefWithNewState = {\n current: {\n state: newState\n }\n };\n let ignoreSetState = false;\n\n // Apply the control state constraints\n const updatedControlStateIds = [];\n Object.keys(controlStateMapRef.current).forEach(stateId => {\n const controlState = controlStateMapRef.current[stateId];\n const oldSubState = controlState.stateSelector(apiRef);\n const newSubState = controlState.stateSelector(apiRefWithNewState);\n if (newSubState === oldSubState) {\n return;\n }\n updatedControlStateIds.push({\n stateId: controlState.stateId,\n hasPropChanged: newSubState !== controlState.propModel\n });\n\n // The state is controlled, the prop should always win\n if (controlState.propModel !== undefined && newSubState !== controlState.propModel) {\n ignoreSetState = true;\n }\n });\n if (updatedControlStateIds.length > 1) {\n // Each hook modify its own state, and it should not leak\n // Events are here to forward to other hooks and apply changes.\n // You are trying to update several states in a no isolated way.\n throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${updatedControlStateIds[0].stateId}, therefore, you're not allowed to update ${updatedControlStateIds.map(el => el.stateId).join(', ')} in the same transaction.`);\n }\n if (!ignoreSetState) {\n // We always assign it as we mutate rows for perf reason.\n apiRef.current.state = newState;\n apiRef.current.publishEvent('stateChange', newState);\n apiRef.current.store.update(newState);\n }\n if (updatedControlStateIds.length === 1) {\n const {\n stateId,\n hasPropChanged\n } = updatedControlStateIds[0];\n const controlState = controlStateMapRef.current[stateId];\n const model = controlState.stateSelector(apiRefWithNewState);\n if (controlState.propOnChange && hasPropChanged) {\n controlState.propOnChange(model, {\n reason,\n api: apiRef.current\n });\n }\n if (!ignoreSetState) {\n apiRef.current.publishEvent(controlState.changeEvent, model, {\n reason\n });\n }\n }\n return !ignoreSetState;\n }, [apiRef]);\n const updateControlState = React.useCallback((key, state, reason) => {\n return apiRef.current.setState(previousState => {\n return _extends({}, previousState, {\n [key]: state(previousState[key])\n });\n }, reason);\n }, [apiRef]);\n const publicStateApi = {\n setState\n };\n const privateStateApi = {\n updateControlState,\n registerControlState\n };\n useGridApiMethod(apiRef, publicStateApi, 'public');\n useGridApiMethod(apiRef, privateStateApi, 'private');\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nexport const propsStateInitializer = (state, props) => {\n return _extends({}, state, {\n props: {\n getRowId: props.getRowId\n }\n });\n};\nexport const useGridProps = (apiRef, props) => {\n React.useEffect(() => {\n apiRef.current.setState(state => _extends({}, state, {\n props: {\n getRowId: props.getRowId\n }\n }));\n }, [apiRef, props.getRowId]);\n};","import { useGridRefs } from \"./useGridRefs.js\";\nimport { useGridIsRtl } from \"./useGridIsRtl.js\";\nimport { useGridLoggerFactory } from \"./useGridLoggerFactory.js\";\nimport { useGridLocaleText } from \"./useGridLocaleText.js\";\nimport { useGridPipeProcessing } from \"./pipeProcessing/index.js\";\nimport { useGridStrategyProcessing } from \"./strategyProcessing/index.js\";\nimport { useGridStateInitialization } from \"./useGridStateInitialization.js\";\nimport { useGridProps } from \"./useGridProps.js\";\n\n/**\n * Initialize the technical pieces of the DataGrid (logger, state, ...) that any DataGrid implementation needs\n */\nexport const useGridInitialization = (privateApiRef, props) => {\n useGridRefs(privateApiRef);\n useGridProps(privateApiRef, props);\n useGridIsRtl(privateApiRef);\n useGridLoggerFactory(privateApiRef, props);\n useGridStateInitialization(privateApiRef);\n useGridPipeProcessing(privateApiRef);\n useGridStrategyProcessing(privateApiRef);\n useGridLocaleText(privateApiRef, props);\n privateApiRef.current.register('private', {\n rootProps: props\n });\n};","import * as React from 'react';\nexport const useGridInitializeState = (initializer, privateApiRef, props) => {\n const isInitialized = React.useRef(false);\n if (!isInitialized.current) {\n privateApiRef.current.state = initializer(privateApiRef.current.state, props, privateApiRef);\n isInitialized.current = true;\n }\n};","import { warnOnce } from '@mui/x-internals/warning';\nimport { GRID_CHECKBOX_SELECTION_COL_DEF } from \"../../../../colDef/index.js\";\nfunction sanitizeCellValue(value, csvOptions) {\n if (value === null || value === undefined) {\n return '';\n }\n const valueStr = typeof value === 'string' ? value : `${value}`;\n if (csvOptions.shouldAppendQuotes || csvOptions.escapeFormulas) {\n const escapedValue = valueStr.replace(/\"/g, '\"\"');\n if (csvOptions.escapeFormulas) {\n // See https://owasp.org/www-community/attacks/CSV_Injection\n if (['=', '+', '-', '@', '\\t', '\\r'].includes(escapedValue[0])) {\n return `\"'${escapedValue}\"`;\n }\n }\n // Make sure value containing delimiter or line break won't be split into multiple cells\n if ([csvOptions.delimiter, '\\n', '\\r', '\"'].some(delimiter => valueStr.includes(delimiter))) {\n return `\"${escapedValue}\"`;\n }\n return escapedValue;\n }\n return valueStr;\n}\nexport const serializeCellValue = (cellParams, options) => {\n const {\n csvOptions,\n ignoreValueFormatter\n } = options;\n let value;\n if (ignoreValueFormatter) {\n const columnType = cellParams.colDef.type;\n if (columnType === 'number') {\n value = String(cellParams.value);\n } else if (columnType === 'date' || columnType === 'dateTime') {\n value = cellParams.value?.toISOString();\n } else if (typeof cellParams.value?.toString === 'function') {\n value = cellParams.value.toString();\n } else {\n value = cellParams.value;\n }\n } else {\n value = cellParams.formattedValue;\n }\n return sanitizeCellValue(value, csvOptions);\n};\nclass CSVRow {\n constructor(options) {\n this.options = void 0;\n this.rowString = '';\n this.isEmpty = true;\n this.options = options;\n }\n addValue(value) {\n if (!this.isEmpty) {\n this.rowString += this.options.csvOptions.delimiter;\n }\n if (typeof this.options.sanitizeCellValue === 'function') {\n this.rowString += this.options.sanitizeCellValue(value, this.options.csvOptions);\n } else {\n this.rowString += value;\n }\n this.isEmpty = false;\n }\n getRowString() {\n return this.rowString;\n }\n}\nconst serializeRow = ({\n id,\n columns,\n getCellParams,\n csvOptions,\n ignoreValueFormatter\n}) => {\n const row = new CSVRow({\n csvOptions\n });\n columns.forEach(column => {\n const cellParams = getCellParams(id, column.field);\n if (process.env.NODE_ENV !== 'production') {\n if (String(cellParams.formattedValue) === '[object Object]') {\n warnOnce(['MUI X: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.', 'You can provide a `valueFormatter` with a string representation to be used.']);\n }\n }\n row.addValue(serializeCellValue(cellParams, {\n ignoreValueFormatter,\n csvOptions\n }));\n });\n return row.getRowString();\n};\nexport function buildCSV(options) {\n const {\n columns,\n rowIds,\n csvOptions,\n ignoreValueFormatter,\n apiRef\n } = options;\n const CSVBody = rowIds.reduce((acc, id) => `${acc}${serializeRow({\n id,\n columns,\n getCellParams: apiRef.current.getCellParams,\n ignoreValueFormatter,\n csvOptions\n })}\\r\\n`, '').trim();\n if (!csvOptions.includeHeaders) {\n return CSVBody;\n }\n const filteredColumns = columns.filter(column => column.field !== GRID_CHECKBOX_SELECTION_COL_DEF.field);\n const headerRows = [];\n if (csvOptions.includeColumnGroupsHeaders) {\n const columnGroupLookup = apiRef.current.getAllGroupDetails();\n let maxColumnGroupsDepth = 0;\n const columnGroupPathsLookup = filteredColumns.reduce((acc, column) => {\n const columnGroupPath = apiRef.current.getColumnGroupPath(column.field);\n acc[column.field] = columnGroupPath;\n maxColumnGroupsDepth = Math.max(maxColumnGroupsDepth, columnGroupPath.length);\n return acc;\n }, {});\n for (let i = 0; i < maxColumnGroupsDepth; i += 1) {\n const headerGroupRow = new CSVRow({\n csvOptions,\n sanitizeCellValue\n });\n headerRows.push(headerGroupRow);\n filteredColumns.forEach(column => {\n const columnGroupId = (columnGroupPathsLookup[column.field] || [])[i];\n const columnGroup = columnGroupLookup[columnGroupId];\n headerGroupRow.addValue(columnGroup ? columnGroup.headerName || columnGroup.groupId : '');\n });\n }\n }\n const mainHeaderRow = new CSVRow({\n csvOptions,\n sanitizeCellValue\n });\n filteredColumns.forEach(column => {\n mainHeaderRow.addValue(column.headerName || column.field);\n });\n headerRows.push(mainHeaderRow);\n const CSVHead = `${headerRows.map(row => row.getRowString()).join('\\r\\n')}\\r\\n`;\n return `${CSVHead}${CSVBody}`.trim();\n}","import * as React from 'react';\nimport { useGridEventPriority, useGridNativeEventListener } from \"../../utils/index.js\";\nimport { gridFocusCellSelector } from \"../focus/gridFocusStateSelector.js\";\nimport { serializeCellValue } from \"../export/serializers/csvSerializer.js\";\nimport { isCopyShortcut } from \"../../../utils/keyboardUtils.js\";\nimport { gridRowSelectionCountSelector } from \"../rowSelection/index.js\";\nfunction writeToClipboardPolyfill(data) {\n const span = document.createElement('span');\n span.style.whiteSpace = 'pre';\n span.style.userSelect = 'all';\n span.style.opacity = '0px';\n span.textContent = data;\n document.body.appendChild(span);\n const range = document.createRange();\n range.selectNode(span);\n const selection = window.getSelection();\n selection.removeAllRanges();\n selection.addRange(range);\n try {\n document.execCommand('copy');\n } finally {\n document.body.removeChild(span);\n }\n}\nfunction copyToClipboard(data) {\n if (navigator.clipboard) {\n navigator.clipboard.writeText(data).catch(() => {\n writeToClipboardPolyfill(data);\n });\n } else {\n writeToClipboardPolyfill(data);\n }\n}\nfunction hasNativeSelection(element) {\n // When getSelection is called on an <iframe> that is not displayed Firefox will return null.\n if (window.getSelection()?.toString()) {\n return true;\n }\n\n // window.getSelection() returns an empty string in Firefox for selections inside a form element.\n // See: https://bugzilla.mozilla.org/show_bug.cgi?id=85686.\n // Instead, we can use element.selectionStart that is only defined on form elements.\n if (element && (element.selectionEnd || 0) - (element.selectionStart || 0) > 0) {\n return true;\n }\n return false;\n}\n\n/**\n * @requires useGridCsvExport (method)\n * @requires useGridSelection (method)\n */\nexport const useGridClipboard = (apiRef, props) => {\n const ignoreValueFormatterProp = props.ignoreValueFormatterDuringExport;\n const ignoreValueFormatter = (typeof ignoreValueFormatterProp === 'object' ? ignoreValueFormatterProp?.clipboardExport : ignoreValueFormatterProp) || false;\n const clipboardCopyCellDelimiter = props.clipboardCopyCellDelimiter;\n const handleCopy = React.useCallback(event => {\n if (!isCopyShortcut(event)) {\n return;\n }\n\n // Do nothing if there's a native selection\n if (hasNativeSelection(event.target)) {\n return;\n }\n let textToCopy = '';\n const selectedRowsCount = gridRowSelectionCountSelector(apiRef);\n if (selectedRowsCount > 0) {\n textToCopy = apiRef.current.getDataAsCsv({\n includeHeaders: false,\n delimiter: clipboardCopyCellDelimiter,\n shouldAppendQuotes: false,\n escapeFormulas: false\n });\n } else {\n const focusedCell = gridFocusCellSelector(apiRef);\n if (focusedCell) {\n const cellParams = apiRef.current.getCellParams(focusedCell.id, focusedCell.field);\n textToCopy = serializeCellValue(cellParams, {\n csvOptions: {\n delimiter: clipboardCopyCellDelimiter,\n shouldAppendQuotes: false,\n escapeFormulas: false\n },\n ignoreValueFormatter\n });\n }\n }\n textToCopy = apiRef.current.unstable_applyPipeProcessors('clipboardCopy', textToCopy);\n if (textToCopy) {\n copyToClipboard(textToCopy);\n apiRef.current.publishEvent('clipboardCopy', textToCopy);\n }\n }, [apiRef, ignoreValueFormatter, clipboardCopyCellDelimiter]);\n useGridNativeEventListener(apiRef, () => apiRef.current.rootElementRef.current, 'keydown', handleCopy);\n useGridEventPriority(apiRef, 'clipboardCopy', props.onClipboardCopy);\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useGridLogger, useGridApiMethod, useGridEvent } from \"../../utils/index.js\";\nimport { gridColumnMenuSelector } from \"./columnMenuSelector.js\";\nimport { gridColumnLookupSelector, gridColumnVisibilityModelSelector, gridColumnFieldsSelector } from \"../columns/gridColumnsSelector.js\";\nexport const columnMenuStateInitializer = state => _extends({}, state, {\n columnMenu: {\n open: false\n }\n});\n\n/**\n * @requires useGridColumnResize (event)\n * @requires useGridInfiniteLoader (event)\n */\nexport const useGridColumnMenu = apiRef => {\n const logger = useGridLogger(apiRef, 'useGridColumnMenu');\n\n /**\n * API METHODS\n */\n const showColumnMenu = React.useCallback(field => {\n const columnMenuState = gridColumnMenuSelector(apiRef);\n const newState = {\n open: true,\n field\n };\n const shouldUpdate = newState.open !== columnMenuState.open || newState.field !== columnMenuState.field;\n if (shouldUpdate) {\n apiRef.current.setState(state => {\n if (state.columnMenu.open && state.columnMenu.field === field) {\n return state;\n }\n logger.debug('Opening Column Menu');\n return _extends({}, state, {\n columnMenu: {\n open: true,\n field\n }\n });\n });\n apiRef.current.hidePreferences();\n }\n }, [apiRef, logger]);\n const hideColumnMenu = React.useCallback(() => {\n const columnMenuState = gridColumnMenuSelector(apiRef);\n if (columnMenuState.field) {\n const columnLookup = gridColumnLookupSelector(apiRef);\n const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef);\n const orderedFields = gridColumnFieldsSelector(apiRef);\n let fieldToFocus = columnMenuState.field;\n\n // If the column was removed from the grid, we need to find the closest visible field\n if (!columnLookup[fieldToFocus]) {\n fieldToFocus = orderedFields[0];\n }\n\n // If the field to focus is hidden, we need to find the closest visible field\n if (columnVisibilityModel[fieldToFocus] === false) {\n // contains visible column fields + the field that was just hidden\n const visibleOrderedFields = orderedFields.filter(field => {\n if (field === fieldToFocus) {\n return true;\n }\n return columnVisibilityModel[field] !== false;\n });\n const fieldIndex = visibleOrderedFields.indexOf(fieldToFocus);\n fieldToFocus = visibleOrderedFields[fieldIndex + 1] || visibleOrderedFields[fieldIndex - 1];\n }\n apiRef.current.setColumnHeaderFocus(fieldToFocus);\n }\n const newState = {\n open: false,\n field: undefined\n };\n const shouldUpdate = newState.open !== columnMenuState.open || newState.field !== columnMenuState.field;\n if (shouldUpdate) {\n apiRef.current.setState(state => {\n logger.debug('Hiding Column Menu');\n return _extends({}, state, {\n columnMenu: newState\n });\n });\n }\n }, [apiRef, logger]);\n const toggleColumnMenu = React.useCallback(field => {\n logger.debug('Toggle Column Menu');\n const columnMenu = gridColumnMenuSelector(apiRef);\n if (!columnMenu.open || columnMenu.field !== field) {\n showColumnMenu(field);\n } else {\n hideColumnMenu();\n }\n }, [apiRef, logger, showColumnMenu, hideColumnMenu]);\n const columnMenuApi = {\n showColumnMenu,\n hideColumnMenu,\n toggleColumnMenu\n };\n useGridApiMethod(apiRef, columnMenuApi, 'public');\n useGridEvent(apiRef, 'columnResizeStart', hideColumnMenu);\n useGridEvent(apiRef, 'virtualScrollerWheel', apiRef.current.hideColumnMenu);\n useGridEvent(apiRef, 'virtualScrollerTouchMove', apiRef.current.hideColumnMenu);\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { useGridLogger } from \"../../utils/useGridLogger.js\";\nimport { gridColumnFieldsSelector, gridColumnDefinitionsSelector, gridColumnLookupSelector, gridColumnsStateSelector, gridColumnVisibilityModelSelector, gridVisibleColumnDefinitionsSelector, gridColumnPositionsSelector } from \"./gridColumnsSelector.js\";\nimport { GridSignature } from \"../../../constants/signature.js\";\nimport { useGridEvent } from \"../../utils/useGridEvent.js\";\nimport { useGridRegisterPipeProcessor, useGridRegisterPipeApplier } from \"../../core/pipeProcessing/index.js\";\nimport { EMPTY_PINNED_COLUMN_FIELDS } from \"./gridColumnsInterfaces.js\";\nimport { hydrateColumnsWidth, createColumnsState, COLUMNS_DIMENSION_PROPERTIES } from \"./gridColumnsUtils.js\";\nimport { GridPreferencePanelsValue } from \"../preferencesPanel/index.js\";\nimport { gridPivotActiveSelector } from \"../pivoting/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const columnsStateInitializer = (state, props, apiRef) => {\n const columnsState = createColumnsState({\n apiRef,\n columnsToUpsert: props.columns,\n initialState: props.initialState?.columns,\n columnVisibilityModel: props.columnVisibilityModel ?? props.initialState?.columns?.columnVisibilityModel ?? {},\n keepOnlyColumnsToUpsert: true\n });\n return _extends({}, state, {\n columns: columnsState,\n // In pro/premium, this part of the state is defined. We give it an empty but defined value\n // for the community version.\n pinnedColumns: state.pinnedColumns ?? EMPTY_PINNED_COLUMN_FIELDS\n });\n};\n\n/**\n * @requires useGridParamsApi (method)\n * @requires useGridDimensions (method, event) - can be after\n * TODO: Impossible priority - useGridParamsApi also needs to be after useGridColumns\n */\nexport function useGridColumns(apiRef, props) {\n const logger = useGridLogger(apiRef, 'useGridColumns');\n const previousColumnsProp = React.useRef(props.columns);\n apiRef.current.registerControlState({\n stateId: 'visibleColumns',\n propModel: props.columnVisibilityModel,\n propOnChange: props.onColumnVisibilityModelChange,\n stateSelector: gridColumnVisibilityModelSelector,\n changeEvent: 'columnVisibilityModelChange'\n });\n const setGridColumnsState = React.useCallback(columnsState => {\n logger.debug('Updating columns state.');\n apiRef.current.setState(mergeColumnsState(columnsState));\n apiRef.current.publishEvent('columnsChange', columnsState.orderedFields);\n }, [logger, apiRef]);\n\n /**\n * API METHODS\n */\n const getColumn = React.useCallback(field => gridColumnLookupSelector(apiRef)[field], [apiRef]);\n const getAllColumns = React.useCallback(() => gridColumnDefinitionsSelector(apiRef), [apiRef]);\n const getVisibleColumns = React.useCallback(() => gridVisibleColumnDefinitionsSelector(apiRef), [apiRef]);\n const getColumnIndex = React.useCallback((field, useVisibleColumns = true) => {\n const columns = useVisibleColumns ? gridVisibleColumnDefinitionsSelector(apiRef) : gridColumnDefinitionsSelector(apiRef);\n return columns.findIndex(col => col.field === field);\n }, [apiRef]);\n const getColumnPosition = React.useCallback(field => {\n const index = getColumnIndex(field);\n return gridColumnPositionsSelector(apiRef)[index];\n }, [apiRef, getColumnIndex]);\n const setColumnVisibilityModel = React.useCallback(model => {\n const currentModel = gridColumnVisibilityModelSelector(apiRef);\n if (currentModel !== model) {\n apiRef.current.setState(state => _extends({}, state, {\n columns: createColumnsState({\n apiRef,\n columnsToUpsert: [],\n initialState: undefined,\n columnVisibilityModel: model,\n keepOnlyColumnsToUpsert: false\n })\n }));\n apiRef.current.updateRenderContext?.();\n }\n }, [apiRef]);\n const updateColumns = React.useCallback(columns => {\n if (gridPivotActiveSelector(apiRef)) {\n apiRef.current.updateNonPivotColumns(columns);\n return;\n }\n const columnsState = createColumnsState({\n apiRef,\n columnsToUpsert: columns,\n initialState: undefined,\n keepOnlyColumnsToUpsert: false,\n updateInitialVisibilityModel: true\n });\n setGridColumnsState(columnsState);\n }, [apiRef, setGridColumnsState]);\n const setColumnVisibility = React.useCallback((field, isVisible) => {\n const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef);\n const isCurrentlyVisible = columnVisibilityModel[field] ?? true;\n if (isVisible !== isCurrentlyVisible) {\n const newModel = _extends({}, columnVisibilityModel, {\n [field]: isVisible\n });\n apiRef.current.setColumnVisibilityModel(newModel);\n }\n }, [apiRef]);\n const getColumnIndexRelativeToVisibleColumns = React.useCallback(field => {\n const allColumns = gridColumnFieldsSelector(apiRef);\n return allColumns.findIndex(col => col === field);\n }, [apiRef]);\n const setColumnIndex = React.useCallback((field, targetIndexPosition) => {\n const allColumns = gridColumnFieldsSelector(apiRef);\n const oldIndexPosition = getColumnIndexRelativeToVisibleColumns(field);\n if (oldIndexPosition === targetIndexPosition) {\n return;\n }\n logger.debug(`Moving column ${field} to index ${targetIndexPosition}`);\n const updatedColumns = [...allColumns];\n const fieldRemoved = updatedColumns.splice(oldIndexPosition, 1)[0];\n updatedColumns.splice(targetIndexPosition, 0, fieldRemoved);\n setGridColumnsState(_extends({}, gridColumnsStateSelector(apiRef), {\n orderedFields: updatedColumns\n }));\n const params = {\n column: apiRef.current.getColumn(field),\n targetIndex: apiRef.current.getColumnIndexRelativeToVisibleColumns(field),\n oldIndex: oldIndexPosition\n };\n apiRef.current.publishEvent('columnIndexChange', params);\n }, [apiRef, logger, setGridColumnsState, getColumnIndexRelativeToVisibleColumns]);\n const setColumnWidth = React.useCallback((field, width) => {\n logger.debug(`Updating column ${field} width to ${width}`);\n const columnsState = gridColumnsStateSelector(apiRef);\n const column = columnsState.lookup[field];\n const newColumn = _extends({}, column, {\n width,\n hasBeenResized: true\n });\n setGridColumnsState(hydrateColumnsWidth(_extends({}, columnsState, {\n lookup: _extends({}, columnsState.lookup, {\n [field]: newColumn\n })\n }), apiRef.current.getRootDimensions()));\n apiRef.current.publishEvent('columnWidthChange', {\n element: apiRef.current.getColumnHeaderElement(field),\n colDef: newColumn,\n width\n });\n }, [apiRef, logger, setGridColumnsState]);\n const columnApi = {\n getColumn,\n getAllColumns,\n getColumnIndex,\n getColumnPosition,\n getVisibleColumns,\n getColumnIndexRelativeToVisibleColumns,\n updateColumns,\n setColumnVisibilityModel,\n setColumnVisibility,\n setColumnWidth\n };\n const columnReorderApi = {\n setColumnIndex\n };\n useGridApiMethod(apiRef, columnApi, 'public');\n useGridApiMethod(apiRef, columnReorderApi, props.signature === GridSignature.DataGrid ? 'private' : 'public');\n\n /**\n * PRE-PROCESSING\n */\n const stateExportPreProcessing = React.useCallback((prevState, context) => {\n const columnsStateToExport = {};\n const columnVisibilityModelToExport = gridColumnVisibilityModelSelector(apiRef);\n const shouldExportColumnVisibilityModel =\n // Always export if the `exportOnlyDirtyModels` property is not activated\n !context.exportOnlyDirtyModels ||\n // Always export if the model is controlled\n props.columnVisibilityModel != null ||\n // Always export if the model has been initialized\n // TODO v6 Do a nullish check instead to export even if the initial model equals \"{}\"\n Object.keys(props.initialState?.columns?.columnVisibilityModel ?? {}).length > 0 ||\n // Always export if the model is not empty\n Object.keys(columnVisibilityModelToExport).length > 0;\n if (shouldExportColumnVisibilityModel) {\n columnsStateToExport.columnVisibilityModel = columnVisibilityModelToExport;\n }\n columnsStateToExport.orderedFields = gridColumnFieldsSelector(apiRef);\n const columns = gridColumnDefinitionsSelector(apiRef);\n const dimensions = {};\n columns.forEach(colDef => {\n if (colDef.hasBeenResized) {\n const colDefDimensions = {};\n COLUMNS_DIMENSION_PROPERTIES.forEach(propertyName => {\n let propertyValue = colDef[propertyName];\n if (propertyValue === Infinity) {\n propertyValue = -1;\n }\n colDefDimensions[propertyName] = propertyValue;\n });\n dimensions[colDef.field] = colDefDimensions;\n }\n });\n if (Object.keys(dimensions).length > 0) {\n columnsStateToExport.dimensions = dimensions;\n }\n return _extends({}, prevState, {\n columns: columnsStateToExport\n });\n }, [apiRef, props.columnVisibilityModel, props.initialState?.columns]);\n const stateRestorePreProcessing = React.useCallback((params, context) => {\n const columnVisibilityModelToImport = context.stateToRestore.columns?.columnVisibilityModel;\n const initialState = context.stateToRestore.columns;\n if (columnVisibilityModelToImport == null && initialState == null) {\n return params;\n }\n const columnsState = createColumnsState({\n apiRef,\n columnsToUpsert: [],\n initialState,\n columnVisibilityModel: columnVisibilityModelToImport,\n keepOnlyColumnsToUpsert: false\n });\n apiRef.current.setState(mergeColumnsState(columnsState));\n if (initialState != null) {\n apiRef.current.publishEvent('columnsChange', columnsState.orderedFields);\n }\n return params;\n }, [apiRef]);\n const preferencePanelPreProcessing = React.useCallback((initialValue, value) => {\n if (value === GridPreferencePanelsValue.columns) {\n const ColumnsPanel = props.slots.columnsPanel;\n return /*#__PURE__*/_jsx(ColumnsPanel, _extends({}, props.slotProps?.columnsPanel));\n }\n return initialValue;\n }, [props.slots.columnsPanel, props.slotProps?.columnsPanel]);\n const addColumnMenuItems = React.useCallback(columnMenuItems => {\n const isPivotActive = gridPivotActiveSelector(apiRef);\n if (props.disableColumnSelector || isPivotActive) {\n return columnMenuItems;\n }\n return [...columnMenuItems, 'columnMenuColumnsItem'];\n }, [props.disableColumnSelector, apiRef]);\n useGridRegisterPipeProcessor(apiRef, 'columnMenu', addColumnMenuItems);\n useGridRegisterPipeProcessor(apiRef, 'exportState', stateExportPreProcessing);\n useGridRegisterPipeProcessor(apiRef, 'restoreState', stateRestorePreProcessing);\n useGridRegisterPipeProcessor(apiRef, 'preferencePanel', preferencePanelPreProcessing);\n\n /*\n * EVENTS\n */\n\n const prevInnerWidth = React.useRef(null);\n const handleGridSizeChange = size => {\n if (prevInnerWidth.current !== size.width) {\n prevInnerWidth.current = size.width;\n const hasFlexColumns = gridVisibleColumnDefinitionsSelector(apiRef).some(col => col.flex && col.flex > 0);\n if (!hasFlexColumns) {\n return;\n }\n setGridColumnsState(hydrateColumnsWidth(gridColumnsStateSelector(apiRef), apiRef.current.getRootDimensions()));\n }\n };\n useGridEvent(apiRef, 'viewportInnerSizeChange', handleGridSizeChange);\n\n /**\n * APPLIERS\n */\n const hydrateColumns = React.useCallback(() => {\n logger.info(`Columns pipe processing have changed, regenerating the columns`);\n const columnsState = createColumnsState({\n apiRef,\n columnsToUpsert: [],\n initialState: undefined,\n keepOnlyColumnsToUpsert: false\n });\n setGridColumnsState(columnsState);\n }, [apiRef, logger, setGridColumnsState]);\n useGridRegisterPipeApplier(apiRef, 'hydrateColumns', hydrateColumns);\n\n /*\n * EFFECTS\n */\n // The effect do not track any value defined synchronously during the 1st render by hooks called after `useGridColumns`\n // As a consequence, the state generated by the 1st run of this useEffect will always be equal to the initialization one\n const isFirstRender = React.useRef(true);\n React.useEffect(() => {\n if (isFirstRender.current) {\n isFirstRender.current = false;\n return;\n }\n logger.info(`GridColumns have changed, new length ${props.columns.length}`);\n if (previousColumnsProp.current === props.columns) {\n return;\n }\n const columnsState = createColumnsState({\n apiRef,\n initialState: undefined,\n // If the user provides a model, we don't want to set it in the state here because it has it's dedicated `useEffect` which calls `setColumnVisibilityModel`\n columnsToUpsert: props.columns,\n keepOnlyColumnsToUpsert: true,\n updateInitialVisibilityModel: true\n });\n previousColumnsProp.current = props.columns;\n setGridColumnsState(columnsState);\n }, [logger, apiRef, setGridColumnsState, props.columns]);\n React.useEffect(() => {\n if (props.columnVisibilityModel !== undefined) {\n apiRef.current.setColumnVisibilityModel(props.columnVisibilityModel);\n }\n }, [apiRef, logger, props.columnVisibilityModel]);\n}\nfunction mergeColumnsState(columnsState) {\n return state => _extends({}, state, {\n columns: columnsState\n });\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { useGridLogger } from \"../../utils/useGridLogger.js\";\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { gridDensitySelector } from \"./densitySelector.js\";\nimport { useGridRegisterPipeProcessor } from \"../../core/pipeProcessing/index.js\";\nexport const densityStateInitializer = (state, props) => _extends({}, state, {\n density: props.initialState?.density ?? props.density ?? 'standard'\n});\nexport const useGridDensity = (apiRef, props) => {\n const logger = useGridLogger(apiRef, 'useDensity');\n apiRef.current.registerControlState({\n stateId: 'density',\n propModel: props.density,\n propOnChange: props.onDensityChange,\n stateSelector: gridDensitySelector,\n changeEvent: 'densityChange'\n });\n const setDensity = useEventCallback(newDensity => {\n const currentDensity = gridDensitySelector(apiRef);\n if (currentDensity === newDensity) {\n return;\n }\n logger.debug(`Set grid density to ${newDensity}`);\n apiRef.current.setState(state => _extends({}, state, {\n density: newDensity\n }));\n });\n const densityApi = {\n setDensity\n };\n useGridApiMethod(apiRef, densityApi, 'public');\n const stateExportPreProcessing = React.useCallback((prevState, context) => {\n const exportedDensity = gridDensitySelector(apiRef);\n const shouldExportRowCount =\n // Always export if the `exportOnlyDirtyModels` property is not activated\n !context.exportOnlyDirtyModels ||\n // Always export if the `density` is controlled\n props.density != null ||\n // Always export if the `density` has been initialized\n props.initialState?.density != null;\n if (!shouldExportRowCount) {\n return prevState;\n }\n return _extends({}, prevState, {\n density: exportedDensity\n });\n }, [apiRef, props.density, props.initialState?.density]);\n const stateRestorePreProcessing = React.useCallback((params, context) => {\n const restoredDensity = context.stateToRestore?.density ? context.stateToRestore.density : gridDensitySelector(apiRef);\n apiRef.current.setState(state => _extends({}, state, {\n density: restoredDensity\n }));\n return params;\n }, [apiRef]);\n useGridRegisterPipeProcessor(apiRef, 'exportState', stateExportPreProcessing);\n useGridRegisterPipeProcessor(apiRef, 'restoreState', stateRestorePreProcessing);\n React.useEffect(() => {\n if (props.density) {\n apiRef.current.setDensity(props.density);\n }\n }, [apiRef, props.density]);\n};","/**\n * I have hesitated to use https://github.com/eligrey/FileSaver.js.\n * If we get bug reports that this project solves, we should consider using it.\n *\n * Related resources.\n * https://blog.logrocket.com/programmatic-file-downloads-in-the-browser-9a5186298d5c/\n * https://github.com/mbrn/filefy/blob/ec4ed0b7415d93be7158c23029f2ea1fa0b8e2d9/src/core/BaseBuilder.ts\n * https://unpkg.com/browse/@progress/[email protected]/dist/es/save-as.js\n * https://github.com/ag-grid/ag-grid/blob/9565c219b6210aa85fa833c929d0728f9d163a91/community-modules/csv-export/src/csvExport/downloader.ts\n */\n\nexport function exportAs(blob, extension = 'csv', filename = document.title || 'untitled') {\n const fullName = `${filename}.${extension}`;\n\n // Test download attribute first\n // https://github.com/eligrey/FileSaver.js/issues/193\n if ('download' in HTMLAnchorElement.prototype) {\n // Create an object URL for the blob object\n const url = URL.createObjectURL(blob);\n\n // Create a new anchor element\n const a = document.createElement('a');\n a.href = url;\n a.download = fullName;\n\n // Programmatically trigger a click on the anchor element\n // Useful if you want the download to happen automatically\n // Without attaching the anchor element to the DOM\n a.click();\n\n // https://github.com/eligrey/FileSaver.js/issues/205\n setTimeout(() => {\n URL.revokeObjectURL(url);\n });\n return;\n }\n throw new Error('MUI X: exportAs not supported.');\n}","import { gridColumnDefinitionsSelector, gridVisibleColumnDefinitionsSelector } from \"../columns/index.js\";\nimport { gridFilteredSortedRowIdsSelector } from \"../filter/index.js\";\nimport { gridPinnedRowsSelector, gridRowTreeSelector } from \"../rows/gridRowsSelector.js\";\nimport { gridRowSelectionCountSelector, gridRowSelectionIdsSelector } from \"../rowSelection/gridRowSelectionSelector.js\";\nexport const getColumnsToExport = ({\n apiRef,\n options\n}) => {\n const columns = gridColumnDefinitionsSelector(apiRef);\n if (options.fields) {\n return options.fields.reduce((currentColumns, field) => {\n const column = columns.find(col => col.field === field);\n if (column) {\n currentColumns.push(column);\n }\n return currentColumns;\n }, []);\n }\n const validColumns = options.allColumns ? columns : gridVisibleColumnDefinitionsSelector(apiRef);\n return validColumns.filter(column => !column.disableExport);\n};\nexport const defaultGetRowsToExport = ({\n apiRef\n}) => {\n const filteredSortedRowIds = gridFilteredSortedRowIdsSelector(apiRef);\n const rowTree = gridRowTreeSelector(apiRef);\n const selectedRowsCount = gridRowSelectionCountSelector(apiRef);\n const bodyRows = filteredSortedRowIds.filter(id => rowTree[id].type !== 'footer');\n const pinnedRows = gridPinnedRowsSelector(apiRef);\n const topPinnedRowsIds = pinnedRows?.top?.map(row => row.id) || [];\n const bottomPinnedRowsIds = pinnedRows?.bottom?.map(row => row.id) || [];\n bodyRows.unshift(...topPinnedRowsIds);\n bodyRows.push(...bottomPinnedRowsIds);\n if (selectedRowsCount > 0) {\n const selectedRows = gridRowSelectionIdsSelector(apiRef);\n return bodyRows.filter(id => selectedRows.has(id));\n }\n return bodyRows;\n};","import * as React from 'react';\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { useGridLogger } from \"../../utils/useGridLogger.js\";\nimport { exportAs } from \"../../../utils/exportAs.js\";\nimport { buildCSV } from \"./serializers/csvSerializer.js\";\nimport { getColumnsToExport, defaultGetRowsToExport } from \"./utils.js\";\nimport { useGridRegisterPipeProcessor } from \"../../core/pipeProcessing/index.js\";\nimport { GridCsvExportMenuItem } from \"../../../components/toolbar/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * @requires useGridColumns (state)\n * @requires useGridFilter (state)\n * @requires useGridSorting (state)\n * @requires useGridSelection (state)\n * @requires useGridParamsApi (method)\n */\nexport const useGridCsvExport = (apiRef, props) => {\n const logger = useGridLogger(apiRef, 'useGridCsvExport');\n const ignoreValueFormatterProp = props.ignoreValueFormatterDuringExport;\n const ignoreValueFormatter = (typeof ignoreValueFormatterProp === 'object' ? ignoreValueFormatterProp?.csvExport : ignoreValueFormatterProp) || false;\n const getDataAsCsv = React.useCallback((options = {}) => {\n logger.debug(`Get data as CSV`);\n const exportedColumns = getColumnsToExport({\n apiRef,\n options\n });\n const getRowsToExport = options.getRowsToExport ?? defaultGetRowsToExport;\n const exportedRowIds = getRowsToExport({\n apiRef\n });\n return buildCSV({\n columns: exportedColumns,\n rowIds: exportedRowIds,\n csvOptions: {\n delimiter: options.delimiter || ',',\n shouldAppendQuotes: options.shouldAppendQuotes ?? true,\n includeHeaders: options.includeHeaders ?? true,\n includeColumnGroupsHeaders: options.includeColumnGroupsHeaders ?? true,\n escapeFormulas: options.escapeFormulas ?? true\n },\n ignoreValueFormatter,\n apiRef\n });\n }, [logger, apiRef, ignoreValueFormatter]);\n const exportDataAsCsv = React.useCallback(options => {\n logger.debug(`Export data as CSV`);\n const csv = getDataAsCsv(options);\n const blob = new Blob([options?.utf8WithBom ? new Uint8Array([0xef, 0xbb, 0xbf]) : '', csv], {\n type: 'text/csv'\n });\n exportAs(blob, 'csv', options?.fileName);\n }, [logger, getDataAsCsv]);\n const csvExportApi = {\n getDataAsCsv,\n exportDataAsCsv\n };\n useGridApiMethod(apiRef, csvExportApi, 'public');\n\n /**\n * PRE-PROCESSING\n */\n const addExportMenuButtons = React.useCallback((initialValue, options) => {\n if (options.csvOptions?.disableToolbarButton) {\n return initialValue;\n }\n return [...initialValue, {\n component: /*#__PURE__*/_jsx(GridCsvExportMenuItem, {\n options: options.csvOptions\n }),\n componentName: 'csvExport'\n }];\n }, []);\n useGridRegisterPipeProcessor(apiRef, 'exportMenu', addExportMenuButtons);\n};","/**\n * Loads all stylesheets from the given root element into the document.\n * @returns an array of promises that resolve when each stylesheet is loaded\n * @param document Document to load stylesheets into\n * @param root Document or ShadowRoot to load stylesheets from\n */\nexport function loadStyleSheets(document, root) {\n const stylesheetLoadPromises = [];\n const headStyleElements = root.querySelectorAll(\"style, link[rel='stylesheet']\");\n for (let i = 0; i < headStyleElements.length; i += 1) {\n const node = headStyleElements[i];\n if (node.tagName === 'STYLE') {\n const newHeadStyleElements = document.createElement(node.tagName);\n const sheet = node.sheet;\n if (sheet) {\n let styleCSS = '';\n for (let j = 0; j < sheet.cssRules.length; j += 1) {\n if (typeof sheet.cssRules[j].cssText === 'string') {\n styleCSS += `${sheet.cssRules[j].cssText}\\r\\n`;\n }\n }\n newHeadStyleElements.appendChild(document.createTextNode(styleCSS));\n document.head.appendChild(newHeadStyleElements);\n }\n } else if (node.getAttribute('href')) {\n // If `href` tag is empty, avoid loading these links\n\n const newHeadStyleElements = document.createElement(node.tagName);\n for (let j = 0; j < node.attributes.length; j += 1) {\n const attr = node.attributes[j];\n if (attr) {\n newHeadStyleElements.setAttribute(attr.nodeName, attr.nodeValue || '');\n }\n }\n stylesheetLoadPromises.push(new Promise(resolve => {\n newHeadStyleElements.addEventListener('load', () => resolve());\n }));\n document.head.appendChild(newHeadStyleElements);\n }\n }\n return stylesheetLoadPromises;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { isDeepEqual } from '@mui/x-internals/isDeepEqual';\nimport { gridFilterModelSelector, gridFilterActiveItemsSelector } from \"../filter/gridFilterSelector.js\";\nimport { gridDensityFactorSelector } from \"../density/index.js\";\nimport { useGridLogger, useGridSelector, useGridApiMethod, useGridEvent } from \"../../utils/index.js\";\nimport { useGridRegisterPipeProcessor } from \"../../core/pipeProcessing/index.js\";\nimport { gridPageCountSelector, gridPaginationModelSelector } from \"./gridPaginationSelector.js\";\nimport { getPageCount, defaultPageSize, throwIfPageSizeExceedsTheLimit, getDefaultGridPaginationModel, getValidPage } from \"./gridPaginationUtils.js\";\nexport const getDerivedPaginationModel = (paginationState, signature, paginationModelProp) => {\n let paginationModel = paginationState.paginationModel;\n const rowCount = paginationState.rowCount;\n const pageSize = paginationModelProp?.pageSize ?? paginationModel.pageSize;\n const page = paginationModelProp?.page ?? paginationModel.page;\n const pageCount = getPageCount(rowCount, pageSize, page);\n if (paginationModelProp && (paginationModelProp?.page !== paginationModel.page || paginationModelProp?.pageSize !== paginationModel.pageSize)) {\n paginationModel = paginationModelProp;\n }\n const validPage = pageSize === -1 ? 0 : getValidPage(paginationModel.page, pageCount);\n if (validPage !== paginationModel.page) {\n paginationModel = _extends({}, paginationModel, {\n page: validPage\n });\n }\n throwIfPageSizeExceedsTheLimit(paginationModel.pageSize, signature);\n return paginationModel;\n};\n\n/**\n * @requires useGridFilter (state)\n * @requires useGridDimensions (event) - can be after\n */\nexport const useGridPaginationModel = (apiRef, props) => {\n const logger = useGridLogger(apiRef, 'useGridPaginationModel');\n const densityFactor = useGridSelector(apiRef, gridDensityFactorSelector);\n const previousFilterModel = React.useRef(gridFilterModelSelector(apiRef));\n const rowHeight = Math.floor(props.rowHeight * densityFactor);\n apiRef.current.registerControlState({\n stateId: 'paginationModel',\n propModel: props.paginationModel,\n propOnChange: props.onPaginationModelChange,\n stateSelector: gridPaginationModelSelector,\n changeEvent: 'paginationModelChange'\n });\n\n /**\n * API METHODS\n */\n const setPage = React.useCallback(page => {\n const currentModel = gridPaginationModelSelector(apiRef);\n if (page === currentModel.page) {\n return;\n }\n logger.debug(`Setting page to ${page}`);\n apiRef.current.setPaginationModel({\n page,\n pageSize: currentModel.pageSize\n });\n }, [apiRef, logger]);\n const setPageSize = React.useCallback(pageSize => {\n const currentModel = gridPaginationModelSelector(apiRef);\n if (pageSize === currentModel.pageSize) {\n return;\n }\n logger.debug(`Setting page size to ${pageSize}`);\n apiRef.current.setPaginationModel({\n pageSize,\n page: currentModel.page\n });\n }, [apiRef, logger]);\n const setPaginationModel = React.useCallback(paginationModel => {\n const currentModel = gridPaginationModelSelector(apiRef);\n if (paginationModel === currentModel) {\n return;\n }\n logger.debug(\"Setting 'paginationModel' to\", paginationModel);\n apiRef.current.setState(state => _extends({}, state, {\n pagination: _extends({}, state.pagination, {\n paginationModel: getDerivedPaginationModel(state.pagination, props.signature, paginationModel)\n })\n }), 'setPaginationModel');\n }, [apiRef, logger, props.signature]);\n const paginationModelApi = {\n setPage,\n setPageSize,\n setPaginationModel\n };\n useGridApiMethod(apiRef, paginationModelApi, 'public');\n\n /**\n * PRE-PROCESSING\n */\n const stateExportPreProcessing = React.useCallback((prevState, context) => {\n const paginationModel = gridPaginationModelSelector(apiRef);\n const shouldExportPaginationModel =\n // Always export if the `exportOnlyDirtyModels` property is not activated\n !context.exportOnlyDirtyModels ||\n // Always export if the `paginationModel` is controlled\n props.paginationModel != null ||\n // Always export if the `paginationModel` has been initialized\n props.initialState?.pagination?.paginationModel != null ||\n // Export if `page` or `pageSize` is not equal to the default value\n paginationModel.page !== 0 && paginationModel.pageSize !== defaultPageSize(props.autoPageSize);\n if (!shouldExportPaginationModel) {\n return prevState;\n }\n return _extends({}, prevState, {\n pagination: _extends({}, prevState.pagination, {\n paginationModel\n })\n });\n }, [apiRef, props.paginationModel, props.initialState?.pagination?.paginationModel, props.autoPageSize]);\n const stateRestorePreProcessing = React.useCallback((params, context) => {\n const paginationModel = context.stateToRestore.pagination?.paginationModel ? _extends({}, getDefaultGridPaginationModel(props.autoPageSize), context.stateToRestore.pagination?.paginationModel) : gridPaginationModelSelector(apiRef);\n apiRef.current.setState(state => _extends({}, state, {\n pagination: _extends({}, state.pagination, {\n paginationModel: getDerivedPaginationModel(state.pagination, props.signature, paginationModel)\n })\n }), 'stateRestorePreProcessing');\n return params;\n }, [apiRef, props.autoPageSize, props.signature]);\n useGridRegisterPipeProcessor(apiRef, 'exportState', stateExportPreProcessing);\n useGridRegisterPipeProcessor(apiRef, 'restoreState', stateRestorePreProcessing);\n\n /**\n * EVENTS\n */\n const handlePaginationModelChange = () => {\n const paginationModel = gridPaginationModelSelector(apiRef);\n if (apiRef.current.virtualScrollerRef?.current) {\n apiRef.current.scrollToIndexes({\n rowIndex: paginationModel.page * paginationModel.pageSize\n });\n }\n };\n const handleUpdateAutoPageSize = React.useCallback(() => {\n if (!props.autoPageSize) {\n return;\n }\n const dimensions = apiRef.current.getRootDimensions();\n const maximumPageSizeWithoutScrollBar = Math.floor(dimensions.viewportInnerSize.height / rowHeight);\n apiRef.current.setPageSize(maximumPageSizeWithoutScrollBar);\n }, [apiRef, props.autoPageSize, rowHeight]);\n const handleRowCountChange = React.useCallback(newRowCount => {\n if (newRowCount == null) {\n return;\n }\n const paginationModel = gridPaginationModelSelector(apiRef);\n if (paginationModel.page === 0) {\n return;\n }\n const pageCount = gridPageCountSelector(apiRef);\n if (paginationModel.page > pageCount - 1) {\n apiRef.current.setPage(Math.max(0, pageCount - 1));\n }\n }, [apiRef]);\n\n /**\n * Goes to the first row of the grid\n */\n const navigateToStart = React.useCallback(() => {\n const paginationModel = gridPaginationModelSelector(apiRef);\n if (paginationModel.page !== 0) {\n apiRef.current.setPage(0);\n }\n\n // If the page was not changed it might be needed to scroll to the top\n const scrollPosition = apiRef.current.getScrollPosition();\n if (scrollPosition.top !== 0) {\n apiRef.current.scroll({\n top: 0\n });\n }\n }, [apiRef]);\n\n /**\n * Resets the page only if the active items or quick filter has changed from the last time.\n * This is to avoid resetting the page when the filter model is changed\n * because of and update of the operator from an item that does not have the value\n * or reseting when the filter panel is just opened\n */\n const handleFilterModelChange = React.useCallback(filterModel => {\n const currentActiveFilters = _extends({}, filterModel, {\n // replace items with the active items\n items: gridFilterActiveItemsSelector(apiRef)\n });\n if (isDeepEqual(currentActiveFilters, previousFilterModel.current)) {\n return;\n }\n previousFilterModel.current = currentActiveFilters;\n navigateToStart();\n }, [apiRef, navigateToStart]);\n useGridEvent(apiRef, 'viewportInnerSizeChange', handleUpdateAutoPageSize);\n useGridEvent(apiRef, 'paginationModelChange', handlePaginationModelChange);\n useGridEvent(apiRef, 'rowCountChange', handleRowCountChange);\n useGridEvent(apiRef, 'sortModelChange', navigateToStart);\n useGridEvent(apiRef, 'filterModelChange', handleFilterModelChange);\n\n /**\n * EFFECTS\n */\n const isFirstRender = React.useRef(true);\n React.useEffect(() => {\n if (isFirstRender.current) {\n isFirstRender.current = false;\n return;\n }\n if (!props.pagination) {\n return;\n }\n apiRef.current.setState(state => _extends({}, state, {\n pagination: _extends({}, state.pagination, {\n paginationModel: getDerivedPaginationModel(state.pagination, props.signature, props.paginationModel)\n })\n }));\n }, [apiRef, props.paginationModel, props.signature, props.pagination]);\n React.useEffect(() => {\n apiRef.current.setState(state => {\n const isEnabled = props.pagination === true;\n if (state.pagination.paginationMode === props.paginationMode || state.pagination.enabled === isEnabled) {\n return state;\n }\n return _extends({}, state, {\n pagination: _extends({}, state.pagination, {\n paginationMode: props.paginationMode,\n enabled: props.pagination === true\n })\n });\n });\n }, [apiRef, props.paginationMode, props.pagination]);\n React.useEffect(handleUpdateAutoPageSize, [handleUpdateAutoPageSize]);\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { unstable_ownerDocument as ownerDocument } from '@mui/utils';\nimport { loadStyleSheets } from '@mui/x-internals/export';\nimport { useGridLogger } from \"../../utils/useGridLogger.js\";\nimport { gridExpandedRowCountSelector } from \"../filter/gridFilterSelector.js\";\nimport { gridColumnDefinitionsSelector, gridColumnVisibilityModelSelector } from \"../columns/gridColumnsSelector.js\";\nimport { gridClasses } from \"../../../constants/gridClasses.js\";\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { gridRowsMetaSelector } from \"../rows/gridRowsMetaSelector.js\";\nimport { GRID_ID_AUTOGENERATED } from \"../rows/gridRowsUtils.js\";\nimport { defaultGetRowsToExport, getColumnsToExport } from \"./utils.js\";\nimport { getDerivedPaginationModel } from \"../pagination/useGridPaginationModel.js\";\nimport { useGridRegisterPipeProcessor } from \"../../core/pipeProcessing/index.js\";\nimport { GridPrintExportMenuItem } from \"../../../components/toolbar/index.js\";\nimport { getTotalHeaderHeight } from \"../columns/gridColumnsUtils.js\";\nimport { GRID_CHECKBOX_SELECTION_COL_DEF } from \"../../../colDef/gridCheckboxSelectionColDef.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction raf() {\n return new Promise(resolve => {\n requestAnimationFrame(() => {\n resolve();\n });\n });\n}\nfunction buildPrintWindow(title) {\n const iframeEl = document.createElement('iframe');\n iframeEl.style.position = 'absolute';\n iframeEl.style.width = '0px';\n iframeEl.style.height = '0px';\n iframeEl.title = title || document.title;\n return iframeEl;\n}\n\n/**\n * @requires useGridColumns (state)\n * @requires useGridFilter (state)\n * @requires useGridSorting (state)\n * @requires useGridParamsApi (method)\n */\nexport const useGridPrintExport = (apiRef, props) => {\n const hasRootReference = apiRef.current.rootElementRef.current !== null;\n const logger = useGridLogger(apiRef, 'useGridPrintExport');\n const doc = React.useRef(null);\n const previousGridState = React.useRef(null);\n const previousColumnVisibility = React.useRef({});\n const previousRows = React.useRef([]);\n const previousVirtualizationState = React.useRef(null);\n React.useEffect(() => {\n doc.current = ownerDocument(apiRef.current.rootElementRef.current);\n }, [apiRef, hasRootReference]);\n\n // Returns a promise because updateColumns triggers state update and\n // the new state needs to be in place before the grid can be sized correctly\n const updateGridColumnsForPrint = React.useCallback((fields, allColumns, includeCheckboxes) => new Promise(resolve => {\n const exportedColumnFields = getColumnsToExport({\n apiRef,\n options: {\n fields,\n allColumns\n }\n }).map(column => column.field);\n const columns = gridColumnDefinitionsSelector(apiRef);\n const newColumnVisibilityModel = {};\n columns.forEach(column => {\n newColumnVisibilityModel[column.field] = exportedColumnFields.includes(column.field);\n });\n if (includeCheckboxes) {\n newColumnVisibilityModel[GRID_CHECKBOX_SELECTION_COL_DEF.field] = true;\n }\n apiRef.current.setColumnVisibilityModel(newColumnVisibilityModel);\n resolve();\n }), [apiRef]);\n const updateGridRowsForPrint = React.useCallback(getRowsToExport => {\n const rowsToExportIds = getRowsToExport({\n apiRef\n });\n const newRows = rowsToExportIds.reduce((acc, id) => {\n const row = apiRef.current.getRow(id);\n if (!row[GRID_ID_AUTOGENERATED]) {\n acc.push(row);\n }\n return acc;\n }, []);\n apiRef.current.setRows(newRows);\n }, [apiRef]);\n const handlePrintWindowLoad = React.useCallback((printWindow, options) => {\n const normalizeOptions = _extends({\n copyStyles: true,\n hideToolbar: false,\n hideFooter: false,\n includeCheckboxes: false\n }, options);\n const printDoc = printWindow.contentDocument;\n if (!printDoc) {\n return;\n }\n const rowsMeta = gridRowsMetaSelector(apiRef);\n const gridRootElement = apiRef.current.rootElementRef.current;\n const gridClone = gridRootElement.cloneNode(true);\n\n // Allow to overflow to not hide the border of the last row\n const gridMain = gridClone.querySelector(`.${gridClasses.main}`);\n gridMain.style.overflow = 'visible';\n\n // See https://support.google.com/chrome/thread/191619088?hl=en&msgid=193009642\n gridClone.style.contain = 'size';\n let gridToolbarElementHeight = gridRootElement.querySelector(`.${gridClasses.toolbarContainer}`)?.offsetHeight || 0;\n let gridFooterElementHeight = gridRootElement.querySelector(`.${gridClasses.footerContainer}`)?.offsetHeight || 0;\n const gridFooterElement = gridClone.querySelector(`.${gridClasses.footerContainer}`);\n if (normalizeOptions.hideToolbar) {\n gridClone.querySelector(`.${gridClasses.toolbarContainer}`)?.remove();\n gridToolbarElementHeight = 0;\n }\n if (normalizeOptions.hideFooter && gridFooterElement) {\n gridFooterElement.remove();\n gridFooterElementHeight = 0;\n }\n\n // Expand container height to accommodate all rows\n const computedTotalHeight = rowsMeta.currentPageTotalHeight + getTotalHeaderHeight(apiRef, props) + gridToolbarElementHeight + gridFooterElementHeight;\n gridClone.style.height = `${computedTotalHeight}px`;\n // The height above does not include grid border width, so we need to exclude it\n gridClone.style.boxSizing = 'content-box';\n if (!normalizeOptions.hideFooter && gridFooterElement) {\n // the footer is always being placed at the bottom of the page as if all rows are exported\n // so if getRowsToExport is being used to only export a subset of rows then we need to\n // adjust the footer position to be correctly placed at the bottom of the grid\n gridFooterElement.style.position = 'absolute';\n gridFooterElement.style.width = '100%';\n gridFooterElement.style.top = `${computedTotalHeight - gridFooterElementHeight}px`;\n }\n\n // printDoc.body.appendChild(gridClone); should be enough but a clone isolation bug in Safari\n // prevents us to do it\n const container = document.createElement('div');\n container.appendChild(gridClone);\n // To avoid an empty page in start on Chromium based browsers\n printDoc.body.style.marginTop = '0px';\n printDoc.body.innerHTML = container.innerHTML;\n const defaultPageStyle = typeof normalizeOptions.pageStyle === 'function' ? normalizeOptions.pageStyle() : normalizeOptions.pageStyle;\n if (typeof defaultPageStyle === 'string') {\n // TODO custom styles should always win\n const styleElement = printDoc.createElement('style');\n styleElement.appendChild(printDoc.createTextNode(defaultPageStyle));\n printDoc.head.appendChild(styleElement);\n }\n if (normalizeOptions.bodyClassName) {\n printDoc.body.classList.add(...normalizeOptions.bodyClassName.split(' '));\n }\n let stylesheetLoadPromises = [];\n if (normalizeOptions.copyStyles) {\n const rootCandidate = gridRootElement.getRootNode();\n const root = rootCandidate.constructor.name === 'ShadowRoot' ? rootCandidate : doc.current;\n stylesheetLoadPromises = loadStyleSheets(printDoc, root);\n }\n\n // Trigger print\n if (process.env.NODE_ENV !== 'test') {\n // wait for remote stylesheets to load\n Promise.all(stylesheetLoadPromises).then(() => {\n printWindow.contentWindow.print();\n });\n }\n }, [apiRef, doc, props]);\n const handlePrintWindowAfterPrint = React.useCallback(printWindow => {\n // Remove the print iframe\n doc.current.body.removeChild(printWindow);\n\n // Revert grid to previous state\n apiRef.current.restoreState(previousGridState.current || {});\n if (!previousGridState.current?.columns?.columnVisibilityModel) {\n // if the apiRef.current.exportState(); did not exported the column visibility, we update it\n apiRef.current.setColumnVisibilityModel(previousColumnVisibility.current);\n }\n apiRef.current.setState(state => _extends({}, state, {\n virtualization: previousVirtualizationState.current\n }));\n apiRef.current.setRows(previousRows.current);\n\n // Clear local state\n previousGridState.current = null;\n previousColumnVisibility.current = {};\n previousRows.current = [];\n }, [apiRef]);\n const exportDataAsPrint = React.useCallback(async options => {\n logger.debug(`Export data as Print`);\n if (!apiRef.current.rootElementRef.current) {\n throw new Error('MUI X: No grid root element available.');\n }\n previousGridState.current = apiRef.current.exportState();\n // It appends that the visibility model is not exported, especially if columnVisibility is not controlled\n previousColumnVisibility.current = gridColumnVisibilityModelSelector(apiRef);\n previousRows.current = apiRef.current.getSortedRows().filter(row => !row[GRID_ID_AUTOGENERATED]);\n if (props.pagination) {\n const visibleRowCount = gridExpandedRowCountSelector(apiRef);\n const paginationModel = {\n page: 0,\n pageSize: visibleRowCount\n };\n apiRef.current.setState(state => _extends({}, state, {\n pagination: _extends({}, state.pagination, {\n paginationModel: getDerivedPaginationModel(state.pagination,\n // Using signature `DataGridPro` to allow more than 100 rows in the print export\n 'DataGridPro', paginationModel)\n })\n }));\n }\n previousVirtualizationState.current = apiRef.current.state.virtualization;\n apiRef.current.setState(state => _extends({}, state, {\n virtualization: _extends({}, state.virtualization, {\n enabled: false,\n enabledForColumns: false\n })\n }));\n await updateGridColumnsForPrint(options?.fields, options?.allColumns, options?.includeCheckboxes);\n updateGridRowsForPrint(options?.getRowsToExport ?? defaultGetRowsToExport);\n await raf(); // wait for the state changes to take action\n const printWindow = buildPrintWindow(options?.fileName);\n if (process.env.NODE_ENV === 'test') {\n doc.current.body.appendChild(printWindow);\n // In test env, run the all pipeline without waiting for loading\n handlePrintWindowLoad(printWindow, options);\n handlePrintWindowAfterPrint(printWindow);\n } else {\n printWindow.onload = () => {\n handlePrintWindowLoad(printWindow, options);\n const mediaQueryList = printWindow.contentWindow.matchMedia('print');\n mediaQueryList.addEventListener('change', mql => {\n const isAfterPrint = mql.matches === false;\n if (isAfterPrint) {\n handlePrintWindowAfterPrint(printWindow);\n }\n });\n };\n doc.current.body.appendChild(printWindow);\n }\n }, [props, logger, apiRef, handlePrintWindowLoad, handlePrintWindowAfterPrint, updateGridColumnsForPrint, updateGridRowsForPrint]);\n const printExportApi = {\n exportDataAsPrint\n };\n useGridApiMethod(apiRef, printExportApi, 'public');\n\n /**\n * PRE-PROCESSING\n */\n const addExportMenuButtons = React.useCallback((initialValue, options) => {\n if (options.printOptions?.disableToolbarButton) {\n return initialValue;\n }\n return [...initialValue, {\n component: /*#__PURE__*/_jsx(GridPrintExportMenuItem, {\n options: options.printOptions\n }),\n componentName: 'printExport'\n }];\n }, []);\n useGridRegisterPipeProcessor(apiRef, 'exportMenu', addExportMenuButtons);\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { lruMemoize } from 'reselect';\nimport { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';\nimport { isDeepEqual } from '@mui/x-internals/isDeepEqual';\nimport { useLazyRef } from \"../../utils/useLazyRef.js\";\nimport { useGridEvent } from \"../../utils/useGridEvent.js\";\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { useGridLogger } from \"../../utils/useGridLogger.js\";\nimport { gridColumnLookupSelector } from \"../columns/gridColumnsSelector.js\";\nimport { GridPreferencePanelsValue } from \"../preferencesPanel/gridPreferencePanelsValue.js\";\nimport { defaultGridFilterLookup, getDefaultGridFilterModel } from \"./gridFilterState.js\";\nimport { gridFilterModelSelector } from \"./gridFilterSelector.js\";\nimport { useFirstRender } from \"../../utils/useFirstRender.js\";\nimport { gridRowsLookupSelector } from \"../rows/index.js\";\nimport { useGridRegisterPipeProcessor } from \"../../core/pipeProcessing/index.js\";\nimport { GRID_DEFAULT_STRATEGY, useGridRegisterStrategyProcessor } from \"../../core/strategyProcessing/index.js\";\nimport { buildAggregatedFilterApplier, sanitizeFilterModel, mergeStateWithFilterModel, cleanFilterItem, passFilterLogic, shouldQuickFilterExcludeHiddenColumns } from \"./gridFilterUtils.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const filterStateInitializer = (state, props, apiRef) => {\n const filterModel = props.filterModel ?? props.initialState?.filter?.filterModel ?? getDefaultGridFilterModel();\n return _extends({}, state, {\n filter: _extends({\n filterModel: sanitizeFilterModel(filterModel, props.disableMultipleColumnsFiltering, apiRef)\n }, defaultGridFilterLookup),\n visibleRowsLookup: {}\n });\n};\nconst getVisibleRowsLookup = params => {\n // For flat tree, the `visibleRowsLookup` and the `filteredRowsLookup` are equals since no row is collapsed.\n return params.filteredRowsLookup;\n};\nfunction getVisibleRowsLookupState(apiRef, state) {\n return apiRef.current.applyStrategyProcessor('visibleRowsLookupCreation', {\n tree: state.rows.tree,\n filteredRowsLookup: state.filter.filteredRowsLookup\n });\n}\nfunction createMemoizedValues() {\n return lruMemoize(Object.values);\n}\n\n/**\n * @requires useGridColumns (method, event)\n * @requires useGridParamsApi (method)\n * @requires useGridRows (event)\n */\nexport const useGridFilter = (apiRef, props) => {\n const logger = useGridLogger(apiRef, 'useGridFilter');\n apiRef.current.registerControlState({\n stateId: 'filter',\n propModel: props.filterModel,\n propOnChange: props.onFilterModelChange,\n stateSelector: gridFilterModelSelector,\n changeEvent: 'filterModelChange'\n });\n const updateFilteredRows = React.useCallback(() => {\n apiRef.current.setState(state => {\n const filterModel = gridFilterModelSelector(apiRef);\n const filterState = apiRef.current.getFilterState(filterModel);\n const newState = _extends({}, state, {\n filter: _extends({}, state.filter, filterState)\n });\n const visibleRowsLookupState = getVisibleRowsLookupState(apiRef, newState);\n return _extends({}, newState, {\n visibleRowsLookup: visibleRowsLookupState\n });\n });\n apiRef.current.publishEvent('filteredRowsSet');\n }, [apiRef]);\n const addColumnMenuItem = React.useCallback((columnMenuItems, colDef) => {\n if (colDef == null || colDef.filterable === false || props.disableColumnFilter) {\n return columnMenuItems;\n }\n return [...columnMenuItems, 'columnMenuFilterItem'];\n }, [props.disableColumnFilter]);\n\n /**\n * API METHODS\n */\n const upsertFilterItem = React.useCallback(item => {\n const filterModel = gridFilterModelSelector(apiRef);\n const items = [...filterModel.items];\n const itemIndex = items.findIndex(filterItem => filterItem.id === item.id);\n if (itemIndex === -1) {\n items.push(item);\n } else {\n items[itemIndex] = item;\n }\n apiRef.current.setFilterModel(_extends({}, filterModel, {\n items\n }), 'upsertFilterItem');\n }, [apiRef]);\n const upsertFilterItems = React.useCallback(items => {\n const filterModel = gridFilterModelSelector(apiRef);\n const existingItems = [...filterModel.items];\n items.forEach(item => {\n const itemIndex = existingItems.findIndex(filterItem => filterItem.id === item.id);\n if (itemIndex === -1) {\n existingItems.push(item);\n } else {\n existingItems[itemIndex] = item;\n }\n });\n apiRef.current.setFilterModel(_extends({}, filterModel, {\n items: existingItems\n }), 'upsertFilterItems');\n }, [apiRef]);\n const deleteFilterItem = React.useCallback(itemToDelete => {\n const filterModel = gridFilterModelSelector(apiRef);\n const items = filterModel.items.filter(item => item.id !== itemToDelete.id);\n if (items.length === filterModel.items.length) {\n return;\n }\n apiRef.current.setFilterModel(_extends({}, filterModel, {\n items\n }), 'deleteFilterItem');\n }, [apiRef]);\n const showFilterPanel = React.useCallback((targetColumnField, panelId, labelId) => {\n logger.debug('Displaying filter panel');\n if (targetColumnField) {\n const filterModel = gridFilterModelSelector(apiRef);\n const filterItemsWithValue = filterModel.items.filter(item => {\n if (item.value !== undefined) {\n // Some filters like `isAnyOf` support array as `item.value`.\n // If array is empty, we want to remove it from the filter model.\n if (Array.isArray(item.value) && item.value.length === 0) {\n return false;\n }\n return true;\n }\n const column = apiRef.current.getColumn(item.field);\n const filterOperator = column.filterOperators?.find(operator => operator.value === item.operator);\n const requiresFilterValue = typeof filterOperator?.requiresFilterValue === 'undefined' ? true : filterOperator?.requiresFilterValue;\n\n // Operators like `isEmpty` don't have and don't require `item.value`.\n // So we don't want to remove them from the filter model if `item.value === undefined`.\n // See https://github.com/mui/mui-x/issues/5402\n if (requiresFilterValue) {\n return false;\n }\n return true;\n });\n let newFilterItems;\n const filterItemOnTarget = filterItemsWithValue.find(item => item.field === targetColumnField);\n const targetColumn = apiRef.current.getColumn(targetColumnField);\n if (filterItemOnTarget) {\n newFilterItems = filterItemsWithValue;\n } else if (props.disableMultipleColumnsFiltering) {\n newFilterItems = [cleanFilterItem({\n field: targetColumnField,\n operator: targetColumn.filterOperators[0].value\n }, apiRef)];\n } else {\n newFilterItems = [...filterItemsWithValue, cleanFilterItem({\n field: targetColumnField,\n operator: targetColumn.filterOperators[0].value\n }, apiRef)];\n }\n apiRef.current.setFilterModel(_extends({}, filterModel, {\n items: newFilterItems\n }));\n }\n apiRef.current.showPreferences(GridPreferencePanelsValue.filters, panelId, labelId);\n }, [apiRef, logger, props.disableMultipleColumnsFiltering]);\n const hideFilterPanel = React.useCallback(() => {\n logger.debug('Hiding filter panel');\n apiRef.current.hidePreferences();\n }, [apiRef, logger]);\n const setFilterLogicOperator = React.useCallback(logicOperator => {\n const filterModel = gridFilterModelSelector(apiRef);\n if (filterModel.logicOperator === logicOperator) {\n return;\n }\n apiRef.current.setFilterModel(_extends({}, filterModel, {\n logicOperator\n }), 'changeLogicOperator');\n }, [apiRef]);\n const setQuickFilterValues = React.useCallback(values => {\n const filterModel = gridFilterModelSelector(apiRef);\n if (isDeepEqual(filterModel.quickFilterValues, values)) {\n return;\n }\n apiRef.current.setFilterModel(_extends({}, filterModel, {\n quickFilterValues: [...values]\n }));\n }, [apiRef]);\n const setFilterModel = React.useCallback((model, reason) => {\n const currentModel = gridFilterModelSelector(apiRef);\n if (currentModel !== model) {\n logger.debug('Setting filter model');\n apiRef.current.updateControlState('filter', mergeStateWithFilterModel(model, props.disableMultipleColumnsFiltering, apiRef), reason);\n apiRef.current.unstable_applyFilters();\n }\n }, [apiRef, logger, props.disableMultipleColumnsFiltering]);\n const getFilterState = React.useCallback(inputFilterModel => {\n const filterModel = sanitizeFilterModel(inputFilterModel, props.disableMultipleColumnsFiltering, apiRef);\n const isRowMatchingFilters = props.filterMode === 'client' ? buildAggregatedFilterApplier(filterModel, apiRef, props.disableEval) : null;\n const filterResult = apiRef.current.applyStrategyProcessor('filtering', {\n isRowMatchingFilters,\n filterModel: filterModel ?? getDefaultGridFilterModel()\n });\n return _extends({}, filterResult, {\n filterModel\n });\n }, [props.disableMultipleColumnsFiltering, props.filterMode, props.disableEval, apiRef]);\n const filterApi = {\n setFilterLogicOperator,\n unstable_applyFilters: updateFilteredRows,\n deleteFilterItem,\n upsertFilterItem,\n upsertFilterItems,\n setFilterModel,\n showFilterPanel,\n hideFilterPanel,\n setQuickFilterValues,\n ignoreDiacritics: props.ignoreDiacritics,\n getFilterState\n };\n useGridApiMethod(apiRef, filterApi, 'public');\n\n /**\n * PRE-PROCESSING\n */\n const stateExportPreProcessing = React.useCallback((prevState, context) => {\n const filterModelToExport = gridFilterModelSelector(apiRef);\n\n // Remove the additional `fromInput` property from the filter model\n filterModelToExport.items.forEach(item => {\n delete item.fromInput;\n });\n const shouldExportFilterModel =\n // Always export if the `exportOnlyDirtyModels` property is not activated\n !context.exportOnlyDirtyModels ||\n // Always export if the model is controlled\n props.filterModel != null ||\n // Always export if the model has been initialized\n props.initialState?.filter?.filterModel != null ||\n // Export if the model is not equal to the default value\n !isDeepEqual(filterModelToExport, getDefaultGridFilterModel());\n if (!shouldExportFilterModel) {\n return prevState;\n }\n return _extends({}, prevState, {\n filter: {\n filterModel: filterModelToExport\n }\n });\n }, [apiRef, props.filterModel, props.initialState?.filter?.filterModel]);\n const stateRestorePreProcessing = React.useCallback((params, context) => {\n const filterModel = context.stateToRestore.filter?.filterModel;\n if (filterModel == null) {\n return params;\n }\n apiRef.current.updateControlState('filter', mergeStateWithFilterModel(filterModel, props.disableMultipleColumnsFiltering, apiRef), 'restoreState');\n return _extends({}, params, {\n callbacks: [...params.callbacks, apiRef.current.unstable_applyFilters]\n });\n }, [apiRef, props.disableMultipleColumnsFiltering]);\n const preferencePanelPreProcessing = React.useCallback((initialValue, value) => {\n if (value === GridPreferencePanelsValue.filters) {\n const FilterPanel = props.slots.filterPanel;\n return /*#__PURE__*/_jsx(FilterPanel, _extends({}, props.slotProps?.filterPanel));\n }\n return initialValue;\n }, [props.slots.filterPanel, props.slotProps?.filterPanel]);\n const {\n getRowId\n } = props;\n const getRowsRef = useLazyRef(createMemoizedValues);\n const flatFilteringMethod = React.useCallback(params => {\n if (props.filterMode !== 'client' || !params.isRowMatchingFilters || !params.filterModel.items.length && !params.filterModel.quickFilterValues?.length) {\n return defaultGridFilterLookup;\n }\n const dataRowIdToModelLookup = gridRowsLookupSelector(apiRef);\n const filteredRowsLookup = {};\n const {\n isRowMatchingFilters\n } = params;\n const filterCache = {};\n const result = {\n passingFilterItems: null,\n passingQuickFilterValues: null\n };\n const rows = getRowsRef.current(apiRef.current.state.rows.dataRowIdToModelLookup);\n for (let i = 0; i < rows.length; i += 1) {\n const row = rows[i];\n const id = getRowId ? getRowId(row) : row.id;\n isRowMatchingFilters(row, undefined, result);\n const isRowPassing = passFilterLogic([result.passingFilterItems], [result.passingQuickFilterValues], params.filterModel, apiRef, filterCache);\n if (!isRowPassing) {\n filteredRowsLookup[id] = isRowPassing;\n }\n }\n const footerId = 'auto-generated-group-footer-root';\n const footer = dataRowIdToModelLookup[footerId];\n if (footer) {\n filteredRowsLookup[footerId] = true;\n }\n return {\n filteredRowsLookup,\n filteredChildrenCountLookup: {},\n filteredDescendantCountLookup: {}\n };\n }, [apiRef, props.filterMode, getRowId, getRowsRef]);\n useGridRegisterPipeProcessor(apiRef, 'columnMenu', addColumnMenuItem);\n useGridRegisterPipeProcessor(apiRef, 'exportState', stateExportPreProcessing);\n useGridRegisterPipeProcessor(apiRef, 'restoreState', stateRestorePreProcessing);\n useGridRegisterPipeProcessor(apiRef, 'preferencePanel', preferencePanelPreProcessing);\n useGridRegisterStrategyProcessor(apiRef, GRID_DEFAULT_STRATEGY, 'filtering', flatFilteringMethod);\n useGridRegisterStrategyProcessor(apiRef, GRID_DEFAULT_STRATEGY, 'visibleRowsLookupCreation', getVisibleRowsLookup);\n\n /**\n * EVENTS\n */\n const handleColumnsChange = React.useCallback(() => {\n logger.debug('onColUpdated - GridColumns changed, applying filters');\n const filterModel = gridFilterModelSelector(apiRef);\n const columnsLookup = gridColumnLookupSelector(apiRef);\n const newFilterItems = filterModel.items.filter(item => item.field && columnsLookup[item.field]);\n if (newFilterItems.length < filterModel.items.length) {\n apiRef.current.setFilterModel(_extends({}, filterModel, {\n items: newFilterItems\n }));\n }\n }, [apiRef, logger]);\n const handleStrategyProcessorChange = React.useCallback(methodName => {\n if (methodName === 'filtering') {\n apiRef.current.unstable_applyFilters();\n }\n }, [apiRef]);\n const updateVisibleRowsLookupState = React.useCallback(() => {\n apiRef.current.setState(state => {\n return _extends({}, state, {\n visibleRowsLookup: getVisibleRowsLookupState(apiRef, state)\n });\n });\n }, [apiRef]);\n useGridEvent(apiRef, 'rowsSet', updateFilteredRows);\n useGridEvent(apiRef, 'columnsChange', handleColumnsChange);\n useGridEvent(apiRef, 'activeStrategyProcessorChange', handleStrategyProcessorChange);\n useGridEvent(apiRef, 'rowExpansionChange', updateVisibleRowsLookupState);\n useGridEvent(apiRef, 'columnVisibilityModelChange', () => {\n const filterModel = gridFilterModelSelector(apiRef);\n if (filterModel.quickFilterValues && shouldQuickFilterExcludeHiddenColumns(filterModel)) {\n // re-apply filters because the quick filter results may have changed\n apiRef.current.unstable_applyFilters();\n }\n });\n\n /**\n * 1ST RENDER\n */\n useFirstRender(() => {\n apiRef.current.unstable_applyFilters();\n });\n\n /**\n * EFFECTS\n */\n useEnhancedEffect(() => {\n if (props.filterModel !== undefined) {\n apiRef.current.setFilterModel(props.filterModel);\n }\n }, [apiRef, logger, props.filterModel]);\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport ownerDocument from '@mui/utils/ownerDocument';\nimport { gridClasses } from \"../../../constants/gridClasses.js\";\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { useGridLogger } from \"../../utils/useGridLogger.js\";\nimport { useGridEvent } from \"../../utils/useGridEvent.js\";\nimport { isNavigationKey } from \"../../../utils/keyboardUtils.js\";\nimport { gridFocusCellSelector, gridFocusColumnGroupHeaderSelector } from \"./gridFocusStateSelector.js\";\nimport { gridVisibleColumnDefinitionsSelector } from \"../columns/gridColumnsSelector.js\";\nimport { getVisibleRows } from \"../../utils/useGridVisibleRows.js\";\nimport { clamp } from \"../../../utils/utils.js\";\nimport { gridPinnedRowsSelector } from \"../rows/gridRowsSelector.js\";\nexport const focusStateInitializer = state => _extends({}, state, {\n focus: {\n cell: null,\n columnHeader: null,\n columnHeaderFilter: null,\n columnGroupHeader: null\n },\n tabIndex: {\n cell: null,\n columnHeader: null,\n columnHeaderFilter: null,\n columnGroupHeader: null\n }\n});\n\n/**\n * @requires useGridParamsApi (method)\n * @requires useGridRows (method)\n * @requires useGridEditing (event)\n */\nexport const useGridFocus = (apiRef, props) => {\n const logger = useGridLogger(apiRef, 'useGridFocus');\n const lastClickedCell = React.useRef(null);\n const hasRootReference = apiRef.current.rootElementRef.current !== null;\n const publishCellFocusOut = React.useCallback((cell, event) => {\n if (cell) {\n // The row might have been deleted\n if (apiRef.current.getRow(cell.id)) {\n apiRef.current.publishEvent('cellFocusOut', apiRef.current.getCellParams(cell.id, cell.field), event);\n }\n }\n }, [apiRef]);\n const setCellFocus = React.useCallback((id, field) => {\n const focusedCell = gridFocusCellSelector(apiRef);\n if (focusedCell?.id === id && focusedCell?.field === field) {\n return;\n }\n apiRef.current.setState(state => {\n logger.debug(`Focusing on cell with id=${id} and field=${field}`);\n return _extends({}, state, {\n tabIndex: {\n cell: {\n id,\n field\n },\n columnHeader: null,\n columnHeaderFilter: null,\n columnGroupHeader: null\n },\n focus: {\n cell: {\n id,\n field\n },\n columnHeader: null,\n columnHeaderFilter: null,\n columnGroupHeader: null\n }\n });\n });\n\n // The row might have been deleted\n if (!apiRef.current.getRow(id)) {\n return;\n }\n if (focusedCell) {\n // There's a focused cell but another cell was clicked\n // Publishes an event to notify that the focus was lost\n publishCellFocusOut(focusedCell, {});\n }\n apiRef.current.publishEvent('cellFocusIn', apiRef.current.getCellParams(id, field));\n }, [apiRef, logger, publishCellFocusOut]);\n const setColumnHeaderFocus = React.useCallback((field, event = {}) => {\n const cell = gridFocusCellSelector(apiRef);\n publishCellFocusOut(cell, event);\n apiRef.current.setState(state => {\n logger.debug(`Focusing on column header with colIndex=${field}`);\n return _extends({}, state, {\n tabIndex: {\n columnHeader: {\n field\n },\n columnHeaderFilter: null,\n cell: null,\n columnGroupHeader: null\n },\n focus: {\n columnHeader: {\n field\n },\n columnHeaderFilter: null,\n cell: null,\n columnGroupHeader: null\n }\n });\n });\n }, [apiRef, logger, publishCellFocusOut]);\n const setColumnHeaderFilterFocus = React.useCallback((field, event = {}) => {\n const cell = gridFocusCellSelector(apiRef);\n publishCellFocusOut(cell, event);\n apiRef.current.setState(state => {\n logger.debug(`Focusing on column header filter with colIndex=${field}`);\n return _extends({}, state, {\n tabIndex: {\n columnHeader: null,\n columnHeaderFilter: {\n field\n },\n cell: null,\n columnGroupHeader: null\n },\n focus: {\n columnHeader: null,\n columnHeaderFilter: {\n field\n },\n cell: null,\n columnGroupHeader: null\n }\n });\n });\n }, [apiRef, logger, publishCellFocusOut]);\n const setColumnGroupHeaderFocus = React.useCallback((field, depth, event = {}) => {\n const cell = gridFocusCellSelector(apiRef);\n if (cell) {\n apiRef.current.publishEvent('cellFocusOut', apiRef.current.getCellParams(cell.id, cell.field), event);\n }\n apiRef.current.setState(state => {\n return _extends({}, state, {\n tabIndex: {\n columnGroupHeader: {\n field,\n depth\n },\n columnHeader: null,\n columnHeaderFilter: null,\n cell: null\n },\n focus: {\n columnGroupHeader: {\n field,\n depth\n },\n columnHeader: null,\n columnHeaderFilter: null,\n cell: null\n }\n });\n });\n }, [apiRef]);\n const getColumnGroupHeaderFocus = React.useCallback(() => gridFocusColumnGroupHeaderSelector(apiRef), [apiRef]);\n const moveFocusToRelativeCell = React.useCallback((id, field, direction) => {\n let columnIndexToFocus = apiRef.current.getColumnIndex(field);\n const visibleColumns = gridVisibleColumnDefinitionsSelector(apiRef);\n const currentPage = getVisibleRows(apiRef, {\n pagination: props.pagination,\n paginationMode: props.paginationMode\n });\n const pinnedRows = gridPinnedRowsSelector(apiRef);\n\n // Include pinned rows as well\n const currentPageRows = [].concat(pinnedRows.top || [], currentPage.rows, pinnedRows.bottom || []);\n let rowIndexToFocus = currentPageRows.findIndex(row => row.id === id);\n if (direction === 'right') {\n columnIndexToFocus += 1;\n } else if (direction === 'left') {\n columnIndexToFocus -= 1;\n } else {\n rowIndexToFocus += 1;\n }\n if (columnIndexToFocus >= visibleColumns.length) {\n // Go to next row if we are after the last column\n rowIndexToFocus += 1;\n if (rowIndexToFocus < currentPageRows.length) {\n // Go to first column of the next row if there's one more row\n columnIndexToFocus = 0;\n }\n } else if (columnIndexToFocus < 0) {\n // Go to previous row if we are before the first column\n rowIndexToFocus -= 1;\n if (rowIndexToFocus >= 0) {\n // Go to last column of the previous if there's one more row\n columnIndexToFocus = visibleColumns.length - 1;\n }\n }\n rowIndexToFocus = clamp(rowIndexToFocus, 0, currentPageRows.length - 1);\n const rowToFocus = currentPageRows[rowIndexToFocus];\n if (!rowToFocus) {\n return;\n }\n const colSpanInfo = apiRef.current.unstable_getCellColSpanInfo(rowToFocus.id, columnIndexToFocus);\n if (colSpanInfo && colSpanInfo.spannedByColSpan) {\n if (direction === 'left' || direction === 'below') {\n columnIndexToFocus = colSpanInfo.leftVisibleCellIndex;\n } else if (direction === 'right') {\n columnIndexToFocus = colSpanInfo.rightVisibleCellIndex;\n }\n }\n columnIndexToFocus = clamp(columnIndexToFocus, 0, visibleColumns.length - 1);\n const columnToFocus = visibleColumns[columnIndexToFocus];\n apiRef.current.setCellFocus(rowToFocus.id, columnToFocus.field);\n }, [apiRef, props.pagination, props.paginationMode]);\n const handleCellDoubleClick = React.useCallback(({\n id,\n field\n }) => {\n apiRef.current.setCellFocus(id, field);\n }, [apiRef]);\n const handleCellKeyDown = React.useCallback((params, event) => {\n // GRID_CELL_NAVIGATION_KEY_DOWN handles the focus on Enter, Tab and navigation keys\n if (event.key === 'Enter' || event.key === 'Tab' || event.key === 'Shift' || isNavigationKey(event.key)) {\n return;\n }\n apiRef.current.setCellFocus(params.id, params.field);\n }, [apiRef]);\n const handleColumnHeaderFocus = React.useCallback(({\n field\n }, event) => {\n if (event.target !== event.currentTarget) {\n return;\n }\n apiRef.current.setColumnHeaderFocus(field, event);\n }, [apiRef]);\n const handleColumnGroupHeaderFocus = React.useCallback(({\n fields,\n depth\n }, event) => {\n if (event.target !== event.currentTarget) {\n return;\n }\n const focusedColumnGroup = gridFocusColumnGroupHeaderSelector(apiRef);\n if (focusedColumnGroup !== null && focusedColumnGroup.depth === depth && fields.includes(focusedColumnGroup.field)) {\n // This group cell has already been focused\n return;\n }\n apiRef.current.setColumnGroupHeaderFocus(fields[0], depth, event);\n }, [apiRef]);\n const handleBlur = React.useCallback((_, event) => {\n if (event.relatedTarget?.getAttribute('class')?.includes(gridClasses.columnHeader)) {\n return;\n }\n logger.debug(`Clearing focus`);\n apiRef.current.setState(state => _extends({}, state, {\n focus: {\n cell: null,\n columnHeader: null,\n columnHeaderFilter: null,\n columnGroupHeader: null\n }\n }));\n }, [logger, apiRef]);\n const handleCellMouseDown = React.useCallback(params => {\n lastClickedCell.current = params;\n }, []);\n const handleDocumentClick = React.useCallback(event => {\n const cellParams = lastClickedCell.current;\n lastClickedCell.current = null;\n const focusedCell = gridFocusCellSelector(apiRef);\n const canUpdateFocus = apiRef.current.unstable_applyPipeProcessors('canUpdateFocus', true, {\n event,\n cell: cellParams\n });\n if (!canUpdateFocus) {\n return;\n }\n if (!focusedCell) {\n if (cellParams) {\n apiRef.current.setCellFocus(cellParams.id, cellParams.field);\n }\n return;\n }\n if (cellParams?.id === focusedCell.id && cellParams?.field === focusedCell.field) {\n return;\n }\n const cellElement = apiRef.current.getCellElement(focusedCell.id, focusedCell.field);\n if (cellElement?.contains(event.target)) {\n return;\n }\n if (cellParams) {\n apiRef.current.setCellFocus(cellParams.id, cellParams.field);\n } else {\n apiRef.current.setState(state => _extends({}, state, {\n focus: {\n cell: null,\n columnHeader: null,\n columnHeaderFilter: null,\n columnGroupHeader: null\n }\n }));\n\n // There's a focused cell but another element (not a cell) was clicked\n // Publishes an event to notify that the focus was lost\n publishCellFocusOut(focusedCell, event);\n }\n }, [apiRef, publishCellFocusOut]);\n const handleCellModeChange = React.useCallback(params => {\n if (params.cellMode === 'view') {\n return;\n }\n const cell = gridFocusCellSelector(apiRef);\n if (cell?.id !== params.id || cell?.field !== params.field) {\n apiRef.current.setCellFocus(params.id, params.field);\n }\n }, [apiRef]);\n const handleRowSet = React.useCallback(() => {\n const cell = gridFocusCellSelector(apiRef);\n\n // If the focused cell is in a row which does not exist anymore,\n // focus previous row or remove the focus\n if (cell && !apiRef.current.getRow(cell.id)) {\n const lastFocusedRowId = cell.id;\n let nextRowId = null;\n if (typeof lastFocusedRowId !== 'undefined') {\n const rowEl = apiRef.current.getRowElement(lastFocusedRowId);\n const lastFocusedRowIndex = rowEl?.dataset.rowindex ? Number(rowEl?.dataset.rowindex) : 0;\n const currentPage = getVisibleRows(apiRef, {\n pagination: props.pagination,\n paginationMode: props.paginationMode\n });\n const nextRow = currentPage.rows[clamp(lastFocusedRowIndex, 0, currentPage.rows.length - 1)];\n nextRowId = nextRow?.id ?? null;\n }\n apiRef.current.setState(state => _extends({}, state, {\n focus: {\n cell: nextRowId === null ? null : {\n id: nextRowId,\n field: cell.field\n },\n columnHeader: null,\n columnHeaderFilter: null,\n columnGroupHeader: null\n }\n }));\n }\n }, [apiRef, props.pagination, props.paginationMode]);\n const handlePaginationModelChange = useEventCallback(() => {\n const currentFocusedCell = gridFocusCellSelector(apiRef);\n if (!currentFocusedCell) {\n return;\n }\n const currentPage = getVisibleRows(apiRef, {\n pagination: props.pagination,\n paginationMode: props.paginationMode\n });\n const rowIsInCurrentPage = currentPage.rows.find(row => row.id === currentFocusedCell.id);\n if (rowIsInCurrentPage) {\n return;\n }\n const visibleColumns = gridVisibleColumnDefinitionsSelector(apiRef);\n apiRef.current.setState(state => {\n return _extends({}, state, {\n tabIndex: {\n cell: {\n id: currentPage.rows[0].id,\n field: visibleColumns[0].field\n },\n columnGroupHeader: null,\n columnHeader: null,\n columnHeaderFilter: null\n }\n });\n });\n });\n const focusApi = {\n setCellFocus,\n setColumnHeaderFocus,\n setColumnHeaderFilterFocus\n };\n const focusPrivateApi = {\n moveFocusToRelativeCell,\n setColumnGroupHeaderFocus,\n getColumnGroupHeaderFocus\n };\n useGridApiMethod(apiRef, focusApi, 'public');\n useGridApiMethod(apiRef, focusPrivateApi, 'private');\n React.useEffect(() => {\n const doc = ownerDocument(apiRef.current.rootElementRef.current);\n doc.addEventListener('mouseup', handleDocumentClick);\n return () => {\n doc.removeEventListener('mouseup', handleDocumentClick);\n };\n }, [apiRef, hasRootReference, handleDocumentClick]);\n useGridEvent(apiRef, 'columnHeaderBlur', handleBlur);\n useGridEvent(apiRef, 'cellDoubleClick', handleCellDoubleClick);\n useGridEvent(apiRef, 'cellMouseDown', handleCellMouseDown);\n useGridEvent(apiRef, 'cellKeyDown', handleCellKeyDown);\n useGridEvent(apiRef, 'cellModeChange', handleCellModeChange);\n useGridEvent(apiRef, 'columnHeaderFocus', handleColumnHeaderFocus);\n useGridEvent(apiRef, 'columnGroupHeaderFocus', handleColumnGroupHeaderFocus);\n useGridEvent(apiRef, 'rowsSet', handleRowSet);\n useGridEvent(apiRef, 'paginationModelChange', handlePaginationModelChange);\n};","import { gridFilteredSortedRowIdsSelector } from \"../filter/gridFilterSelector.js\";\nimport { gridRowSpanningHiddenCellsSelector } from \"../rows/gridRowSpanningSelectors.js\";\nexport const getLeftColumnIndex = ({\n currentColIndex,\n firstColIndex,\n lastColIndex,\n isRtl\n}) => {\n if (isRtl) {\n if (currentColIndex < lastColIndex) {\n return currentColIndex + 1;\n }\n } else if (!isRtl) {\n if (currentColIndex > firstColIndex) {\n return currentColIndex - 1;\n }\n }\n return null;\n};\nexport const getRightColumnIndex = ({\n currentColIndex,\n firstColIndex,\n lastColIndex,\n isRtl\n}) => {\n if (isRtl) {\n if (currentColIndex > firstColIndex) {\n return currentColIndex - 1;\n }\n } else if (!isRtl) {\n if (currentColIndex < lastColIndex) {\n return currentColIndex + 1;\n }\n }\n return null;\n};\nexport function findNonRowSpannedCell(apiRef, rowId, field, rowSpanScanDirection) {\n const rowSpanHiddenCells = gridRowSpanningHiddenCellsSelector(apiRef);\n if (!rowSpanHiddenCells[rowId]?.[field]) {\n return rowId;\n }\n const filteredSortedRowIds = gridFilteredSortedRowIdsSelector(apiRef);\n // find closest non row spanned cell in the given `rowSpanScanDirection`\n let nextRowIndex = filteredSortedRowIds.indexOf(rowId) + (rowSpanScanDirection === 'down' ? 1 : -1);\n while (nextRowIndex >= 0 && nextRowIndex < filteredSortedRowIds.length) {\n const nextRowId = filteredSortedRowIds[nextRowIndex];\n if (!rowSpanHiddenCells[nextRowId]?.[field]) {\n return nextRowId;\n }\n nextRowIndex += rowSpanScanDirection === 'down' ? 1 : -1;\n }\n return rowId;\n}","import * as React from 'react';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { GRID_TREE_DATA_GROUPING_FIELD, GRID_DETAIL_PANEL_TOGGLE_FIELD } from \"../../../internals/constants.js\";\nimport { isGroupingColumn } from \"../../../internals/utils/gridRowGroupingUtils.js\";\nimport { gridVisibleColumnDefinitionsSelector, gridVisibleColumnFieldsSelector } from \"../columns/gridColumnsSelector.js\";\nimport { useGridLogger } from \"../../utils/useGridLogger.js\";\nimport { useGridEvent } from \"../../utils/useGridEvent.js\";\nimport { gridExpandedSortedRowEntriesSelector } from \"../filter/gridFilterSelector.js\";\nimport { GRID_CHECKBOX_SELECTION_COL_DEF } from \"../../../colDef/gridCheckboxSelectionColDef.js\";\nimport { gridClasses } from \"../../../constants/gridClasses.js\";\nimport { GridCellModes } from \"../../../models/gridEditRowModel.js\";\nimport { isNavigationKey } from \"../../../utils/keyboardUtils.js\";\nimport { gridFocusColumnGroupHeaderSelector } from \"../focus/index.js\";\nimport { gridColumnGroupsHeaderMaxDepthSelector } from \"../columnGrouping/gridColumnGroupsSelector.js\";\nimport { gridHeaderFilteringEditFieldSelector, gridHeaderFilteringMenuSelector } from \"../headerFiltering/gridHeaderFilteringSelectors.js\";\nimport { useGridRegisterPipeProcessor } from \"../../core/pipeProcessing/index.js\";\nimport { isEventTargetInPortal } from \"../../../utils/domUtils.js\";\nimport { getLeftColumnIndex, getRightColumnIndex, findNonRowSpannedCell } from \"./utils.js\";\nimport { gridListColumnSelector } from \"../listView/gridListViewSelectors.js\";\nimport { createSelectorMemoized } from \"../../../utils/createSelector.js\";\nimport { gridVisibleRowsSelector } from \"../pagination/index.js\";\nimport { gridPinnedRowsSelector } from \"../rows/gridRowsSelector.js\";\nconst gridVisibleRowsWithPinnedRowsSelector = createSelectorMemoized(gridVisibleRowsSelector, gridPinnedRowsSelector, (visibleRows, pinnedRows) => {\n return (pinnedRows.top || []).concat(visibleRows.rows, pinnedRows.bottom || []);\n});\n\n/**\n * @requires useGridSorting (method) - can be after\n * @requires useGridFilter (state) - can be after\n * @requires useGridColumns (state, method) - can be after\n * @requires useGridDimensions (method) - can be after\n * @requires useGridFocus (method) - can be after\n * @requires useGridScroll (method) - can be after\n * @requires useGridColumnSpanning (method) - can be after\n */\nexport const useGridKeyboardNavigation = (apiRef, props) => {\n const logger = useGridLogger(apiRef, 'useGridKeyboardNavigation');\n const isRtl = useRtl();\n const listView = props.listView;\n const getCurrentPageRows = React.useCallback(() => {\n return gridVisibleRowsWithPinnedRowsSelector(apiRef);\n }, [apiRef]);\n const headerFilteringEnabled = props.signature !== 'DataGrid' && props.headerFilters;\n\n /**\n * @param {number} colIndex Index of the column to focus\n * @param {GridRowId} rowId index of the row to focus\n * @param {string} closestColumnToUse Which closest column cell to use when the cell is spanned by `colSpan`.\n * @param {string} rowSpanScanDirection Which direction to search to find the next cell not hidden by `rowSpan`.\n * TODO replace with apiRef.current.moveFocusToRelativeCell()\n */\n const goToCell = React.useCallback((colIndex, rowId, closestColumnToUse = 'left', rowSpanScanDirection = 'up') => {\n const visibleSortedRows = gridExpandedSortedRowEntriesSelector(apiRef);\n const nextCellColSpanInfo = apiRef.current.unstable_getCellColSpanInfo(rowId, colIndex);\n if (nextCellColSpanInfo && nextCellColSpanInfo.spannedByColSpan) {\n if (closestColumnToUse === 'left') {\n colIndex = nextCellColSpanInfo.leftVisibleCellIndex;\n } else if (closestColumnToUse === 'right') {\n colIndex = nextCellColSpanInfo.rightVisibleCellIndex;\n }\n }\n const field = listView ? gridListColumnSelector(apiRef).field : gridVisibleColumnFieldsSelector(apiRef)[colIndex];\n const nonRowSpannedRowId = findNonRowSpannedCell(apiRef, rowId, field, rowSpanScanDirection);\n // `scrollToIndexes` requires a rowIndex relative to all visible rows.\n // Those rows do not include pinned rows, but pinned rows do not need scroll anyway.\n const rowIndexRelativeToAllRows = visibleSortedRows.findIndex(row => row.id === nonRowSpannedRowId);\n logger.debug(`Navigating to cell row ${rowIndexRelativeToAllRows}, col ${colIndex}`);\n apiRef.current.scrollToIndexes({\n colIndex,\n rowIndex: rowIndexRelativeToAllRows\n });\n apiRef.current.setCellFocus(nonRowSpannedRowId, field);\n }, [apiRef, logger, listView]);\n const goToHeader = React.useCallback((colIndex, event) => {\n logger.debug(`Navigating to header col ${colIndex}`);\n apiRef.current.scrollToIndexes({\n colIndex\n });\n const field = apiRef.current.getVisibleColumns()[colIndex].field;\n apiRef.current.setColumnHeaderFocus(field, event);\n }, [apiRef, logger]);\n const goToHeaderFilter = React.useCallback((colIndex, event) => {\n logger.debug(`Navigating to header filter col ${colIndex}`);\n apiRef.current.scrollToIndexes({\n colIndex\n });\n const field = apiRef.current.getVisibleColumns()[colIndex].field;\n apiRef.current.setColumnHeaderFilterFocus(field, event);\n }, [apiRef, logger]);\n const goToGroupHeader = React.useCallback((colIndex, depth, event) => {\n logger.debug(`Navigating to header col ${colIndex}`);\n apiRef.current.scrollToIndexes({\n colIndex\n });\n const {\n field\n } = apiRef.current.getVisibleColumns()[colIndex];\n apiRef.current.setColumnGroupHeaderFocus(field, depth, event);\n }, [apiRef, logger]);\n const getRowIdFromIndex = React.useCallback(rowIndex => {\n return getCurrentPageRows()[rowIndex]?.id;\n }, [getCurrentPageRows]);\n const handleColumnHeaderKeyDown = React.useCallback((params, event) => {\n const headerTitleNode = event.currentTarget.querySelector(`.${gridClasses.columnHeaderTitleContainerContent}`);\n const isFromInsideContent = !!headerTitleNode && headerTitleNode.contains(event.target);\n if (isFromInsideContent && params.field !== GRID_CHECKBOX_SELECTION_COL_DEF.field) {\n // When focus is on a nested input, keyboard events have no effect to avoid conflicts with native events.\n // There is one exception for the checkBoxHeader\n return;\n }\n const currentPageRows = getCurrentPageRows();\n const viewportPageSize = apiRef.current.getViewportPageSize();\n const colIndexBefore = params.field ? apiRef.current.getColumnIndex(params.field) : 0;\n const firstRowIndexInPage = currentPageRows.length > 0 ? 0 : null;\n const lastRowIndexInPage = currentPageRows.length - 1;\n const firstColIndex = 0;\n const lastColIndex = gridVisibleColumnDefinitionsSelector(apiRef).length - 1;\n const columnGroupMaxDepth = gridColumnGroupsHeaderMaxDepthSelector(apiRef);\n let shouldPreventDefault = true;\n switch (event.key) {\n case 'ArrowDown':\n {\n if (headerFilteringEnabled) {\n goToHeaderFilter(colIndexBefore, event);\n } else if (firstRowIndexInPage !== null) {\n goToCell(colIndexBefore, getRowIdFromIndex(firstRowIndexInPage));\n }\n break;\n }\n case 'ArrowRight':\n {\n const rightColIndex = getRightColumnIndex({\n currentColIndex: colIndexBefore,\n firstColIndex,\n lastColIndex,\n isRtl\n });\n if (rightColIndex !== null) {\n goToHeader(rightColIndex, event);\n }\n break;\n }\n case 'ArrowLeft':\n {\n const leftColIndex = getLeftColumnIndex({\n currentColIndex: colIndexBefore,\n firstColIndex,\n lastColIndex,\n isRtl\n });\n if (leftColIndex !== null) {\n goToHeader(leftColIndex, event);\n }\n break;\n }\n case 'ArrowUp':\n {\n if (columnGroupMaxDepth > 0) {\n goToGroupHeader(colIndexBefore, columnGroupMaxDepth - 1, event);\n }\n break;\n }\n case 'PageDown':\n {\n if (firstRowIndexInPage !== null && lastRowIndexInPage !== null) {\n goToCell(colIndexBefore, getRowIdFromIndex(Math.min(firstRowIndexInPage + viewportPageSize, lastRowIndexInPage)));\n }\n break;\n }\n case 'Home':\n {\n goToHeader(firstColIndex, event);\n break;\n }\n case 'End':\n {\n goToHeader(lastColIndex, event);\n break;\n }\n case 'Enter':\n {\n if (event.ctrlKey || event.metaKey) {\n apiRef.current.toggleColumnMenu(params.field);\n }\n break;\n }\n case ' ':\n {\n // prevent Space event from scrolling\n break;\n }\n default:\n {\n shouldPreventDefault = false;\n }\n }\n if (shouldPreventDefault) {\n event.preventDefault();\n }\n }, [apiRef, getCurrentPageRows, headerFilteringEnabled, goToHeaderFilter, goToCell, getRowIdFromIndex, isRtl, goToHeader, goToGroupHeader]);\n const handleHeaderFilterKeyDown = React.useCallback((params, event) => {\n const isEditing = gridHeaderFilteringEditFieldSelector(apiRef) === params.field;\n const isHeaderMenuOpen = gridHeaderFilteringMenuSelector(apiRef) === params.field;\n if (isEditing || isHeaderMenuOpen || !isNavigationKey(event.key)) {\n return;\n }\n const currentPageRows = getCurrentPageRows();\n const viewportPageSize = apiRef.current.getViewportPageSize();\n const colIndexBefore = params.field ? apiRef.current.getColumnIndex(params.field) : 0;\n const firstRowIndexInPage = 0;\n const lastRowIndexInPage = currentPageRows.length - 1;\n const firstColIndex = 0;\n const lastColIndex = gridVisibleColumnDefinitionsSelector(apiRef).length - 1;\n let shouldPreventDefault = true;\n switch (event.key) {\n case 'ArrowDown':\n {\n const rowId = getRowIdFromIndex(firstRowIndexInPage);\n if (firstRowIndexInPage !== null && rowId != null) {\n goToCell(colIndexBefore, rowId);\n }\n break;\n }\n case 'ArrowRight':\n {\n const rightColIndex = getRightColumnIndex({\n currentColIndex: colIndexBefore,\n firstColIndex,\n lastColIndex,\n isRtl\n });\n if (rightColIndex !== null) {\n goToHeaderFilter(rightColIndex, event);\n }\n break;\n }\n case 'ArrowLeft':\n {\n const leftColIndex = getLeftColumnIndex({\n currentColIndex: colIndexBefore,\n firstColIndex,\n lastColIndex,\n isRtl\n });\n if (leftColIndex !== null) {\n goToHeaderFilter(leftColIndex, event);\n } else {\n apiRef.current.setColumnHeaderFilterFocus(params.field, event);\n }\n break;\n }\n case 'ArrowUp':\n {\n goToHeader(colIndexBefore, event);\n break;\n }\n case 'PageDown':\n {\n if (firstRowIndexInPage !== null && lastRowIndexInPage !== null) {\n goToCell(colIndexBefore, getRowIdFromIndex(Math.min(firstRowIndexInPage + viewportPageSize, lastRowIndexInPage)));\n }\n break;\n }\n case 'Home':\n {\n goToHeaderFilter(firstColIndex, event);\n break;\n }\n case 'End':\n {\n goToHeaderFilter(lastColIndex, event);\n break;\n }\n case ' ':\n {\n // prevent Space event from scrolling\n break;\n }\n default:\n {\n shouldPreventDefault = false;\n }\n }\n if (shouldPreventDefault) {\n event.preventDefault();\n }\n }, [apiRef, getCurrentPageRows, goToHeaderFilter, isRtl, goToHeader, goToCell, getRowIdFromIndex]);\n const handleColumnGroupHeaderKeyDown = React.useCallback((params, event) => {\n const focusedColumnGroup = gridFocusColumnGroupHeaderSelector(apiRef);\n if (focusedColumnGroup === null) {\n return;\n }\n const {\n field: currentField,\n depth: currentDepth\n } = focusedColumnGroup;\n const {\n fields,\n depth,\n maxDepth\n } = params;\n const currentPageRows = getCurrentPageRows();\n const viewportPageSize = apiRef.current.getViewportPageSize();\n const currentColIndex = apiRef.current.getColumnIndex(currentField);\n const colIndexBefore = currentField ? apiRef.current.getColumnIndex(currentField) : 0;\n const firstRowIndexInPage = 0;\n const lastRowIndexInPage = currentPageRows.length - 1;\n const firstColIndex = 0;\n const lastColIndex = gridVisibleColumnDefinitionsSelector(apiRef).length - 1;\n let shouldPreventDefault = true;\n switch (event.key) {\n case 'ArrowDown':\n {\n if (depth === maxDepth - 1) {\n goToHeader(currentColIndex, event);\n } else {\n goToGroupHeader(currentColIndex, currentDepth + 1, event);\n }\n break;\n }\n case 'ArrowUp':\n {\n if (depth > 0) {\n goToGroupHeader(currentColIndex, currentDepth - 1, event);\n }\n break;\n }\n case 'ArrowRight':\n {\n const remainingRightColumns = fields.length - fields.indexOf(currentField) - 1;\n if (currentColIndex + remainingRightColumns + 1 <= lastColIndex) {\n goToGroupHeader(currentColIndex + remainingRightColumns + 1, currentDepth, event);\n }\n break;\n }\n case 'ArrowLeft':\n {\n const remainingLeftColumns = fields.indexOf(currentField);\n if (currentColIndex - remainingLeftColumns - 1 >= firstColIndex) {\n goToGroupHeader(currentColIndex - remainingLeftColumns - 1, currentDepth, event);\n }\n break;\n }\n case 'PageDown':\n {\n if (firstRowIndexInPage !== null && lastRowIndexInPage !== null) {\n goToCell(colIndexBefore, getRowIdFromIndex(Math.min(firstRowIndexInPage + viewportPageSize, lastRowIndexInPage)));\n }\n break;\n }\n case 'Home':\n {\n goToGroupHeader(firstColIndex, currentDepth, event);\n break;\n }\n case 'End':\n {\n goToGroupHeader(lastColIndex, currentDepth, event);\n break;\n }\n case ' ':\n {\n // prevent Space event from scrolling\n break;\n }\n default:\n {\n shouldPreventDefault = false;\n }\n }\n if (shouldPreventDefault) {\n event.preventDefault();\n }\n }, [apiRef, getCurrentPageRows, goToHeader, goToGroupHeader, goToCell, getRowIdFromIndex]);\n const handleCellKeyDown = React.useCallback((params, event) => {\n // Ignore portal\n if (isEventTargetInPortal(event)) {\n return;\n }\n\n // Get the most recent params because the cell mode may have changed by another listener\n const cellParams = apiRef.current.getCellParams(params.id, params.field);\n if (cellParams.cellMode === GridCellModes.Edit || !isNavigationKey(event.key)) {\n return;\n }\n const canUpdateFocus = apiRef.current.unstable_applyPipeProcessors('canUpdateFocus', true, {\n event,\n cell: cellParams\n });\n if (!canUpdateFocus) {\n return;\n }\n const currentPageRows = getCurrentPageRows();\n if (currentPageRows.length === 0) {\n return;\n }\n const viewportPageSize = apiRef.current.getViewportPageSize();\n const getColumnIndexFn = listView ? () => 0 : apiRef.current.getColumnIndex;\n const colIndexBefore = params.field ? getColumnIndexFn(params.field) : 0;\n const rowIndexBefore = currentPageRows.findIndex(row => row.id === params.id);\n const firstRowIndexInPage = 0;\n const lastRowIndexInPage = currentPageRows.length - 1;\n const firstColIndex = 0;\n const visibleColumns = listView ? [gridListColumnSelector(apiRef)] : gridVisibleColumnDefinitionsSelector(apiRef);\n const lastColIndex = visibleColumns.length - 1;\n let shouldPreventDefault = true;\n switch (event.key) {\n case 'ArrowDown':\n {\n // \"Enter\" is only triggered by the row / cell editing feature\n if (rowIndexBefore < lastRowIndexInPage) {\n goToCell(colIndexBefore, getRowIdFromIndex(rowIndexBefore + 1), isRtl ? 'right' : 'left', 'down');\n }\n break;\n }\n case 'ArrowUp':\n {\n if (rowIndexBefore > firstRowIndexInPage) {\n goToCell(colIndexBefore, getRowIdFromIndex(rowIndexBefore - 1));\n } else if (headerFilteringEnabled) {\n goToHeaderFilter(colIndexBefore, event);\n } else {\n goToHeader(colIndexBefore, event);\n }\n break;\n }\n case 'ArrowRight':\n {\n const rightColIndex = getRightColumnIndex({\n currentColIndex: colIndexBefore,\n firstColIndex,\n lastColIndex,\n isRtl\n });\n if (rightColIndex !== null) {\n goToCell(rightColIndex, getRowIdFromIndex(rowIndexBefore), isRtl ? 'left' : 'right');\n }\n break;\n }\n case 'ArrowLeft':\n {\n const leftColIndex = getLeftColumnIndex({\n currentColIndex: colIndexBefore,\n firstColIndex,\n lastColIndex,\n isRtl\n });\n if (leftColIndex !== null) {\n goToCell(leftColIndex, getRowIdFromIndex(rowIndexBefore), isRtl ? 'right' : 'left');\n }\n break;\n }\n case 'Tab':\n {\n // \"Tab\" is only triggered by the row / cell editing feature\n if (event.shiftKey && colIndexBefore > firstColIndex) {\n goToCell(colIndexBefore - 1, getRowIdFromIndex(rowIndexBefore), 'left');\n } else if (!event.shiftKey && colIndexBefore < lastColIndex) {\n goToCell(colIndexBefore + 1, getRowIdFromIndex(rowIndexBefore), 'right');\n }\n break;\n }\n case ' ':\n {\n const field = params.field;\n if (field === GRID_DETAIL_PANEL_TOGGLE_FIELD) {\n break;\n }\n const colDef = params.colDef;\n if (colDef && (colDef.field === GRID_TREE_DATA_GROUPING_FIELD || isGroupingColumn(colDef.field))) {\n break;\n }\n if (!event.shiftKey && rowIndexBefore < lastRowIndexInPage) {\n goToCell(colIndexBefore, getRowIdFromIndex(Math.min(rowIndexBefore + viewportPageSize, lastRowIndexInPage)));\n }\n break;\n }\n case 'PageDown':\n {\n if (rowIndexBefore < lastRowIndexInPage) {\n goToCell(colIndexBefore, getRowIdFromIndex(Math.min(rowIndexBefore + viewportPageSize, lastRowIndexInPage)));\n }\n break;\n }\n case 'PageUp':\n {\n // Go to the first row before going to header\n const nextRowIndex = Math.max(rowIndexBefore - viewportPageSize, firstRowIndexInPage);\n if (nextRowIndex !== rowIndexBefore && nextRowIndex >= firstRowIndexInPage) {\n goToCell(colIndexBefore, getRowIdFromIndex(nextRowIndex));\n } else {\n goToHeader(colIndexBefore, event);\n }\n break;\n }\n case 'Home':\n {\n if (event.ctrlKey || event.metaKey || event.shiftKey) {\n goToCell(firstColIndex, getRowIdFromIndex(firstRowIndexInPage));\n } else {\n goToCell(firstColIndex, getRowIdFromIndex(rowIndexBefore));\n }\n break;\n }\n case 'End':\n {\n if (event.ctrlKey || event.metaKey || event.shiftKey) {\n goToCell(lastColIndex, getRowIdFromIndex(lastRowIndexInPage));\n } else {\n goToCell(lastColIndex, getRowIdFromIndex(rowIndexBefore));\n }\n break;\n }\n default:\n {\n shouldPreventDefault = false;\n }\n }\n if (shouldPreventDefault) {\n event.preventDefault();\n }\n }, [apiRef, getCurrentPageRows, isRtl, goToCell, getRowIdFromIndex, headerFilteringEnabled, goToHeaderFilter, goToHeader, listView]);\n const checkIfCanStartEditing = React.useCallback((initialValue, {\n event\n }) => {\n if (event.key === ' ') {\n // Space scrolls to the last row\n return false;\n }\n return initialValue;\n }, []);\n useGridRegisterPipeProcessor(apiRef, 'canStartEditing', checkIfCanStartEditing);\n useGridEvent(apiRef, 'columnHeaderKeyDown', handleColumnHeaderKeyDown);\n useGridEvent(apiRef, 'headerFilterKeyDown', handleHeaderFilterKeyDown);\n useGridEvent(apiRef, 'columnGroupHeaderKeyDown', handleColumnGroupHeaderKeyDown);\n useGridEvent(apiRef, 'cellKeyDown', handleCellKeyDown);\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useLazyRef from '@mui/utils/useLazyRef';\nimport { gridFilteredTopLevelRowCountSelector } from \"../filter/index.js\";\nimport { useGridLogger, useGridSelector, useGridApiMethod, useGridEvent } from \"../../utils/index.js\";\nimport { useGridRegisterPipeProcessor } from \"../../core/pipeProcessing/index.js\";\nimport { gridPaginationRowCountSelector, gridPaginationMetaSelector, gridPaginationModelSelector } from \"./gridPaginationSelector.js\";\nexport const useGridRowCount = (apiRef, props) => {\n const logger = useGridLogger(apiRef, 'useGridRowCount');\n const visibleTopLevelRowCount = useGridSelector(apiRef, gridFilteredTopLevelRowCountSelector);\n const rowCountState = useGridSelector(apiRef, gridPaginationRowCountSelector);\n const paginationMeta = useGridSelector(apiRef, gridPaginationMetaSelector);\n const paginationModel = useGridSelector(apiRef, gridPaginationModelSelector);\n const previousPageSize = useLazyRef(() => gridPaginationModelSelector(apiRef).pageSize);\n apiRef.current.registerControlState({\n stateId: 'paginationRowCount',\n propModel: props.rowCount,\n propOnChange: props.onRowCountChange,\n stateSelector: gridPaginationRowCountSelector,\n changeEvent: 'rowCountChange'\n });\n\n /**\n * API METHODS\n */\n const setRowCount = React.useCallback(newRowCount => {\n if (rowCountState === newRowCount) {\n return;\n }\n logger.debug(\"Setting 'rowCount' to\", newRowCount);\n apiRef.current.setState(state => _extends({}, state, {\n pagination: _extends({}, state.pagination, {\n rowCount: newRowCount\n })\n }));\n }, [apiRef, logger, rowCountState]);\n const paginationRowCountApi = {\n setRowCount\n };\n useGridApiMethod(apiRef, paginationRowCountApi, 'public');\n\n /**\n * PRE-PROCESSING\n */\n const stateExportPreProcessing = React.useCallback((prevState, context) => {\n const exportedRowCount = gridPaginationRowCountSelector(apiRef);\n const shouldExportRowCount =\n // Always export if the `exportOnlyDirtyModels` property is not activated\n !context.exportOnlyDirtyModels ||\n // Always export if the `rowCount` is controlled\n props.rowCount != null ||\n // Always export if the `rowCount` has been initialized\n props.initialState?.pagination?.rowCount != null;\n if (!shouldExportRowCount) {\n return prevState;\n }\n return _extends({}, prevState, {\n pagination: _extends({}, prevState.pagination, {\n rowCount: exportedRowCount\n })\n });\n }, [apiRef, props.rowCount, props.initialState?.pagination?.rowCount]);\n const stateRestorePreProcessing = React.useCallback((params, context) => {\n const restoredRowCount = context.stateToRestore.pagination?.rowCount ? context.stateToRestore.pagination.rowCount : gridPaginationRowCountSelector(apiRef);\n apiRef.current.setState(state => _extends({}, state, {\n pagination: _extends({}, state.pagination, {\n rowCount: restoredRowCount\n })\n }));\n return params;\n }, [apiRef]);\n useGridRegisterPipeProcessor(apiRef, 'exportState', stateExportPreProcessing);\n useGridRegisterPipeProcessor(apiRef, 'restoreState', stateRestorePreProcessing);\n\n /**\n * EVENTS\n */\n const handlePaginationModelChange = React.useCallback(model => {\n if (props.paginationMode === 'client' || !previousPageSize.current) {\n return;\n }\n if (model.pageSize !== previousPageSize.current) {\n previousPageSize.current = model.pageSize;\n if (rowCountState === -1) {\n // Row count unknown and page size changed, reset the page\n apiRef.current.setPage(0);\n }\n }\n }, [props.paginationMode, previousPageSize, rowCountState, apiRef]);\n useGridEvent(apiRef, 'paginationModelChange', handlePaginationModelChange);\n\n /**\n * EFFECTS\n */\n React.useEffect(() => {\n if (props.paginationMode === 'client') {\n apiRef.current.setRowCount(visibleTopLevelRowCount);\n } else if (props.rowCount != null) {\n apiRef.current.setRowCount(props.rowCount);\n }\n }, [apiRef, props.paginationMode, visibleTopLevelRowCount, props.rowCount]);\n const isLastPage = paginationMeta.hasNextPage === false;\n React.useEffect(() => {\n if (isLastPage && rowCountState === -1) {\n apiRef.current.setRowCount(paginationModel.pageSize * paginationModel.page + visibleTopLevelRowCount);\n }\n }, [apiRef, visibleTopLevelRowCount, isLastPage, rowCountState, paginationModel]);\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useGridLogger, useGridSelector, useGridApiMethod } from \"../../utils/index.js\";\nimport { useGridRegisterPipeProcessor } from \"../../core/pipeProcessing/index.js\";\nimport { gridPaginationMetaSelector } from \"./gridPaginationSelector.js\";\nexport const useGridPaginationMeta = (apiRef, props) => {\n const logger = useGridLogger(apiRef, 'useGridPaginationMeta');\n const paginationMeta = useGridSelector(apiRef, gridPaginationMetaSelector);\n apiRef.current.registerControlState({\n stateId: 'paginationMeta',\n propModel: props.paginationMeta,\n propOnChange: props.onPaginationMetaChange,\n stateSelector: gridPaginationMetaSelector,\n changeEvent: 'paginationMetaChange'\n });\n\n /**\n * API METHODS\n */\n const setPaginationMeta = React.useCallback(newPaginationMeta => {\n if (paginationMeta === newPaginationMeta) {\n return;\n }\n logger.debug(\"Setting 'paginationMeta' to\", newPaginationMeta);\n apiRef.current.setState(state => _extends({}, state, {\n pagination: _extends({}, state.pagination, {\n meta: newPaginationMeta\n })\n }));\n }, [apiRef, logger, paginationMeta]);\n const paginationMetaApi = {\n setPaginationMeta\n };\n useGridApiMethod(apiRef, paginationMetaApi, 'public');\n\n /**\n * PRE-PROCESSING\n */\n const stateExportPreProcessing = React.useCallback((prevState, context) => {\n const exportedPaginationMeta = gridPaginationMetaSelector(apiRef);\n const shouldExportRowCount =\n // Always export if the `exportOnlyDirtyModels` property is not activated\n !context.exportOnlyDirtyModels ||\n // Always export if the `paginationMeta` is controlled\n props.paginationMeta != null ||\n // Always export if the `paginationMeta` has been initialized\n props.initialState?.pagination?.meta != null;\n if (!shouldExportRowCount) {\n return prevState;\n }\n return _extends({}, prevState, {\n pagination: _extends({}, prevState.pagination, {\n meta: exportedPaginationMeta\n })\n });\n }, [apiRef, props.paginationMeta, props.initialState?.pagination?.meta]);\n const stateRestorePreProcessing = React.useCallback((params, context) => {\n const restoredPaginationMeta = context.stateToRestore.pagination?.meta ? context.stateToRestore.pagination.meta : gridPaginationMetaSelector(apiRef);\n apiRef.current.setState(state => _extends({}, state, {\n pagination: _extends({}, state.pagination, {\n meta: restoredPaginationMeta\n })\n }));\n return params;\n }, [apiRef]);\n useGridRegisterPipeProcessor(apiRef, 'exportState', stateExportPreProcessing);\n useGridRegisterPipeProcessor(apiRef, 'restoreState', stateRestorePreProcessing);\n\n /**\n * EFFECTS\n */\n React.useEffect(() => {\n if (props.paginationMeta) {\n apiRef.current.setPaginationMeta(props.paginationMeta);\n }\n }, [apiRef, props.paginationMeta]);\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { throwIfPageSizeExceedsTheLimit, getDefaultGridPaginationModel } from \"./gridPaginationUtils.js\";\nimport { useGridPaginationModel } from \"./useGridPaginationModel.js\";\nimport { useGridRowCount } from \"./useGridRowCount.js\";\nimport { useGridPaginationMeta } from \"./useGridPaginationMeta.js\";\nexport const paginationStateInitializer = (state, props) => {\n const paginationModel = _extends({}, getDefaultGridPaginationModel(props.autoPageSize), props.paginationModel ?? props.initialState?.pagination?.paginationModel);\n throwIfPageSizeExceedsTheLimit(paginationModel.pageSize, props.signature);\n const rowCount = props.rowCount ?? props.initialState?.pagination?.rowCount ?? (props.paginationMode === 'client' ? state.rows?.totalRowCount : undefined);\n const meta = props.paginationMeta ?? props.initialState?.pagination?.meta ?? {};\n return _extends({}, state, {\n pagination: _extends({}, state.pagination, {\n paginationModel,\n rowCount,\n meta,\n enabled: props.pagination === true,\n paginationMode: props.paginationMode\n })\n });\n};\n\n/**\n * @requires useGridFilter (state)\n * @requires useGridDimensions (event) - can be after\n */\nexport const useGridPagination = (apiRef, props) => {\n useGridPaginationMeta(apiRef, props);\n useGridPaginationModel(apiRef, props);\n useGridRowCount(apiRef, props);\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { useGridLogger } from \"../../utils/useGridLogger.js\";\nimport { useGridRegisterPipeProcessor } from \"../../core/pipeProcessing/index.js\";\nimport { gridPreferencePanelStateSelector } from \"./gridPreferencePanelSelector.js\";\nexport const preferencePanelStateInitializer = (state, props) => _extends({}, state, {\n preferencePanel: props.initialState?.preferencePanel ?? {\n open: false\n }\n});\n\n/**\n * TODO: Add a single `setPreferencePanel` method to avoid multiple `setState`\n */\nexport const useGridPreferencesPanel = (apiRef, props) => {\n const logger = useGridLogger(apiRef, 'useGridPreferencesPanel');\n\n /**\n * API METHODS\n */\n const hidePreferences = React.useCallback(() => {\n apiRef.current.setState(state => {\n if (!state.preferencePanel.open) {\n return state;\n }\n logger.debug('Hiding Preferences Panel');\n const preferencePanelState = gridPreferencePanelStateSelector(apiRef);\n apiRef.current.publishEvent('preferencePanelClose', {\n openedPanelValue: preferencePanelState.openedPanelValue\n });\n return _extends({}, state, {\n preferencePanel: {\n open: false\n }\n });\n });\n }, [apiRef, logger]);\n const showPreferences = React.useCallback((newValue, panelId, labelId) => {\n logger.debug('Opening Preferences Panel');\n apiRef.current.setState(state => _extends({}, state, {\n preferencePanel: _extends({}, state.preferencePanel, {\n open: true,\n openedPanelValue: newValue,\n panelId,\n labelId\n })\n }));\n apiRef.current.publishEvent('preferencePanelOpen', {\n openedPanelValue: newValue\n });\n }, [logger, apiRef]);\n useGridApiMethod(apiRef, {\n showPreferences,\n hidePreferences\n }, 'public');\n\n /**\n * PRE-PROCESSING\n */\n const stateExportPreProcessing = React.useCallback((prevState, context) => {\n const preferencePanelToExport = gridPreferencePanelStateSelector(apiRef);\n const shouldExportPreferencePanel =\n // Always export if the `exportOnlyDirtyModels` property is not activated\n !context.exportOnlyDirtyModels ||\n // Always export if the panel was initialized\n props.initialState?.preferencePanel != null ||\n // Always export if the panel is opened\n preferencePanelToExport.open;\n if (!shouldExportPreferencePanel) {\n return prevState;\n }\n return _extends({}, prevState, {\n preferencePanel: preferencePanelToExport\n });\n }, [apiRef, props.initialState?.preferencePanel]);\n const stateRestorePreProcessing = React.useCallback((params, context) => {\n const preferencePanel = context.stateToRestore.preferencePanel;\n if (preferencePanel != null) {\n apiRef.current.setState(state => _extends({}, state, {\n preferencePanel\n }));\n }\n return params;\n }, [apiRef]);\n useGridRegisterPipeProcessor(apiRef, 'exportState', stateExportPreProcessing);\n useGridRegisterPipeProcessor(apiRef, 'restoreState', stateRestorePreProcessing);\n};","export const getDefaultCellValue = colDef => {\n switch (colDef.type) {\n case 'boolean':\n return false;\n case 'date':\n case 'dateTime':\n case 'number':\n return undefined;\n case 'singleSelect':\n return null;\n case 'string':\n default:\n return '';\n }\n};","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _toPropertyKey from \"@babel/runtime/helpers/esm/toPropertyKey\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"id\", \"field\"],\n _excluded2 = [\"id\", \"field\"];\nimport * as React from 'react';\nimport { warnOnce } from '@mui/x-internals/warning';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport { useGridEvent, useGridEventPriority } from \"../../utils/useGridEvent.js\";\nimport { GridEditModes, GridCellModes } from \"../../../models/gridEditRowModel.js\";\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { gridEditRowsStateSelector } from \"./gridEditingSelectors.js\";\nimport { isPrintableKey, isPasteShortcut } from \"../../../utils/keyboardUtils.js\";\nimport { gridRowsLookupSelector } from \"../rows/gridRowsSelector.js\";\nimport { deepClone } from \"../../../utils/utils.js\";\nimport { GridCellEditStartReasons, GridCellEditStopReasons } from \"../../../models/params/gridEditCellParams.js\";\nimport { getDefaultCellValue } from \"./utils.js\";\nexport const useGridCellEditing = (apiRef, props) => {\n const [cellModesModel, setCellModesModel] = React.useState({});\n const cellModesModelRef = React.useRef(cellModesModel);\n const prevCellModesModel = React.useRef({});\n const {\n processRowUpdate,\n onProcessRowUpdateError,\n cellModesModel: cellModesModelProp,\n onCellModesModelChange\n } = props;\n const runIfEditModeIsCell = callback => (...args) => {\n if (props.editMode === GridEditModes.Cell) {\n callback(...args);\n }\n };\n const throwIfNotEditable = React.useCallback((id, field) => {\n const params = apiRef.current.getCellParams(id, field);\n if (!apiRef.current.isCellEditable(params)) {\n throw new Error(`MUI X: The cell with id=${id} and field=${field} is not editable.`);\n }\n }, [apiRef]);\n const throwIfNotInMode = React.useCallback((id, field, mode) => {\n if (apiRef.current.getCellMode(id, field) !== mode) {\n throw new Error(`MUI X: The cell with id=${id} and field=${field} is not in ${mode} mode.`);\n }\n }, [apiRef]);\n const handleCellDoubleClick = React.useCallback((params, event) => {\n if (!params.isEditable) {\n return;\n }\n if (params.cellMode === GridCellModes.Edit) {\n return;\n }\n const newParams = _extends({}, params, {\n reason: GridCellEditStartReasons.cellDoubleClick\n });\n apiRef.current.publishEvent('cellEditStart', newParams, event);\n }, [apiRef]);\n const handleCellFocusOut = React.useCallback((params, event) => {\n if (params.cellMode === GridCellModes.View) {\n return;\n }\n if (apiRef.current.getCellMode(params.id, params.field) === GridCellModes.View) {\n return;\n }\n const newParams = _extends({}, params, {\n reason: GridCellEditStopReasons.cellFocusOut\n });\n apiRef.current.publishEvent('cellEditStop', newParams, event);\n }, [apiRef]);\n const handleCellKeyDown = React.useCallback((params, event) => {\n if (params.cellMode === GridCellModes.Edit) {\n // Wait until IME is settled for Asian languages like Japanese and Chinese\n // TODO: to replace at one point. See https://github.com/mui/material-ui/pull/39713#discussion_r1381678957.\n if (event.which === 229) {\n return;\n }\n let reason;\n if (event.key === 'Escape') {\n reason = GridCellEditStopReasons.escapeKeyDown;\n } else if (event.key === 'Enter') {\n reason = GridCellEditStopReasons.enterKeyDown;\n } else if (event.key === 'Tab') {\n reason = event.shiftKey ? GridCellEditStopReasons.shiftTabKeyDown : GridCellEditStopReasons.tabKeyDown;\n event.preventDefault(); // Prevent going to the next element in the tab sequence\n }\n if (reason) {\n const newParams = _extends({}, params, {\n reason\n });\n apiRef.current.publishEvent('cellEditStop', newParams, event);\n }\n } else if (params.isEditable) {\n let reason;\n const canStartEditing = apiRef.current.unstable_applyPipeProcessors('canStartEditing', true, {\n event,\n cellParams: params,\n editMode: 'cell'\n });\n if (!canStartEditing) {\n return;\n }\n if (isPrintableKey(event)) {\n reason = GridCellEditStartReasons.printableKeyDown;\n } else if (isPasteShortcut(event)) {\n reason = GridCellEditStartReasons.pasteKeyDown;\n } else if (event.key === 'Enter') {\n reason = GridCellEditStartReasons.enterKeyDown;\n } else if (event.key === 'Backspace' || event.key === 'Delete') {\n reason = GridCellEditStartReasons.deleteKeyDown;\n }\n if (reason) {\n const newParams = _extends({}, params, {\n reason,\n key: event.key\n });\n apiRef.current.publishEvent('cellEditStart', newParams, event);\n }\n }\n }, [apiRef]);\n const handleCellEditStart = React.useCallback(params => {\n const {\n id,\n field,\n reason\n } = params;\n const startCellEditModeParams = {\n id,\n field\n };\n if (reason === GridCellEditStartReasons.printableKeyDown || reason === GridCellEditStartReasons.deleteKeyDown || reason === GridCellEditStartReasons.pasteKeyDown) {\n startCellEditModeParams.deleteValue = true;\n }\n apiRef.current.startCellEditMode(startCellEditModeParams);\n }, [apiRef]);\n const handleCellEditStop = React.useCallback(params => {\n const {\n id,\n field,\n reason\n } = params;\n apiRef.current.runPendingEditCellValueMutation(id, field);\n let cellToFocusAfter;\n if (reason === GridCellEditStopReasons.enterKeyDown) {\n cellToFocusAfter = 'below';\n } else if (reason === GridCellEditStopReasons.tabKeyDown) {\n cellToFocusAfter = 'right';\n } else if (reason === GridCellEditStopReasons.shiftTabKeyDown) {\n cellToFocusAfter = 'left';\n }\n const ignoreModifications = reason === 'escapeKeyDown';\n apiRef.current.stopCellEditMode({\n id,\n field,\n ignoreModifications,\n cellToFocusAfter\n });\n }, [apiRef]);\n const runIfNoFieldErrors = callback => async (...args) => {\n if (callback) {\n const {\n id,\n field\n } = args[0];\n const editRowsState = apiRef.current.state.editRows;\n const hasFieldErrors = editRowsState[id][field]?.error;\n if (!hasFieldErrors) {\n callback(...args);\n }\n }\n };\n useGridEvent(apiRef, 'cellDoubleClick', runIfEditModeIsCell(handleCellDoubleClick));\n useGridEvent(apiRef, 'cellFocusOut', runIfEditModeIsCell(handleCellFocusOut));\n useGridEvent(apiRef, 'cellKeyDown', runIfEditModeIsCell(handleCellKeyDown));\n useGridEvent(apiRef, 'cellEditStart', runIfEditModeIsCell(handleCellEditStart));\n useGridEvent(apiRef, 'cellEditStop', runIfEditModeIsCell(handleCellEditStop));\n useGridEventPriority(apiRef, 'cellEditStart', props.onCellEditStart);\n useGridEventPriority(apiRef, 'cellEditStop', runIfNoFieldErrors(props.onCellEditStop));\n const getCellMode = React.useCallback((id, field) => {\n const editingState = gridEditRowsStateSelector(apiRef);\n const isEditing = editingState[id] && editingState[id][field];\n return isEditing ? GridCellModes.Edit : GridCellModes.View;\n }, [apiRef]);\n const updateCellModesModel = useEventCallback(newModel => {\n const isNewModelDifferentFromProp = newModel !== props.cellModesModel;\n if (onCellModesModelChange && isNewModelDifferentFromProp) {\n onCellModesModelChange(newModel, {\n api: apiRef.current\n });\n }\n if (props.cellModesModel && isNewModelDifferentFromProp) {\n return; // The prop always win\n }\n setCellModesModel(newModel);\n cellModesModelRef.current = newModel;\n apiRef.current.publishEvent('cellModesModelChange', newModel);\n });\n const updateFieldInCellModesModel = React.useCallback((id, field, newProps) => {\n // We use the ref because it always contain the up-to-date value, different from the state\n // that needs a rerender to reflect the new value\n const newModel = _extends({}, cellModesModelRef.current);\n if (newProps !== null) {\n newModel[id] = _extends({}, newModel[id], {\n [field]: _extends({}, newProps)\n });\n } else {\n const _newModel$id = newModel[id],\n otherFields = _objectWithoutPropertiesLoose(_newModel$id, [field].map(_toPropertyKey)); // Ensure that we have a new object, not a reference\n newModel[id] = otherFields;\n if (Object.keys(newModel[id]).length === 0) {\n delete newModel[id];\n }\n }\n updateCellModesModel(newModel);\n }, [updateCellModesModel]);\n const updateOrDeleteFieldState = React.useCallback((id, field, newProps) => {\n apiRef.current.setState(state => {\n const newEditingState = _extends({}, state.editRows);\n if (newProps !== null) {\n newEditingState[id] = _extends({}, newEditingState[id], {\n [field]: _extends({}, newProps)\n });\n } else {\n delete newEditingState[id][field];\n if (Object.keys(newEditingState[id]).length === 0) {\n delete newEditingState[id];\n }\n }\n return _extends({}, state, {\n editRows: newEditingState\n });\n });\n }, [apiRef]);\n const startCellEditMode = React.useCallback(params => {\n const {\n id,\n field\n } = params,\n other = _objectWithoutPropertiesLoose(params, _excluded);\n throwIfNotEditable(id, field);\n throwIfNotInMode(id, field, GridCellModes.View);\n updateFieldInCellModesModel(id, field, _extends({\n mode: GridCellModes.Edit\n }, other));\n }, [throwIfNotEditable, throwIfNotInMode, updateFieldInCellModesModel]);\n const updateStateToStartCellEditMode = useEventCallback(async params => {\n const {\n id,\n field,\n deleteValue,\n initialValue\n } = params;\n const value = apiRef.current.getCellValue(id, field);\n let newValue = value;\n if (deleteValue) {\n newValue = getDefaultCellValue(apiRef.current.getColumn(field));\n } else if (initialValue) {\n newValue = initialValue;\n }\n const column = apiRef.current.getColumn(field);\n const shouldProcessEditCellProps = !!column.preProcessEditCellProps && deleteValue;\n let newProps = {\n value: newValue,\n error: false,\n isProcessingProps: shouldProcessEditCellProps\n };\n updateOrDeleteFieldState(id, field, newProps);\n apiRef.current.setCellFocus(id, field);\n if (shouldProcessEditCellProps) {\n newProps = await Promise.resolve(column.preProcessEditCellProps({\n id,\n row: apiRef.current.getRow(id),\n props: newProps,\n hasChanged: newValue !== value\n }));\n // Check if still in edit mode before updating\n if (apiRef.current.getCellMode(id, field) === GridCellModes.Edit) {\n const editingState = gridEditRowsStateSelector(apiRef);\n updateOrDeleteFieldState(id, field, _extends({}, newProps, {\n value: editingState[id][field].value,\n isProcessingProps: false\n }));\n }\n }\n });\n const stopCellEditMode = React.useCallback(params => {\n const {\n id,\n field\n } = params,\n other = _objectWithoutPropertiesLoose(params, _excluded2);\n throwIfNotInMode(id, field, GridCellModes.Edit);\n updateFieldInCellModesModel(id, field, _extends({\n mode: GridCellModes.View\n }, other));\n }, [throwIfNotInMode, updateFieldInCellModesModel]);\n const updateStateToStopCellEditMode = useEventCallback(async params => {\n const {\n id,\n field,\n ignoreModifications,\n cellToFocusAfter = 'none'\n } = params;\n throwIfNotInMode(id, field, GridCellModes.Edit);\n apiRef.current.runPendingEditCellValueMutation(id, field);\n const finishCellEditMode = () => {\n updateOrDeleteFieldState(id, field, null);\n updateFieldInCellModesModel(id, field, null);\n if (cellToFocusAfter !== 'none') {\n apiRef.current.moveFocusToRelativeCell(id, field, cellToFocusAfter);\n }\n };\n if (ignoreModifications) {\n finishCellEditMode();\n return;\n }\n const editingState = gridEditRowsStateSelector(apiRef);\n const {\n error,\n isProcessingProps\n } = editingState[id][field];\n const row = apiRef.current.getRow(id);\n if (error || isProcessingProps) {\n // Attempt to change cell mode to \"view\" was not successful\n // Update previous mode to allow another attempt\n prevCellModesModel.current[id][field].mode = GridCellModes.Edit;\n // Revert the mode in the cellModesModel prop back to \"edit\"\n updateFieldInCellModesModel(id, field, {\n mode: GridCellModes.Edit\n });\n return;\n }\n const rowUpdate = apiRef.current.getRowWithUpdatedValuesFromCellEditing(id, field);\n if (props.dataSource?.updateRow) {\n if (row[field] === rowUpdate[field]) {\n finishCellEditMode();\n return;\n }\n const handleError = () => {\n prevCellModesModel.current[id][field].mode = GridCellModes.Edit;\n // Revert the mode in the cellModesModel prop back to \"edit\"\n updateFieldInCellModesModel(id, field, {\n mode: GridCellModes.Edit\n });\n };\n const updateRowParams = {\n rowId: id,\n updatedRow: rowUpdate,\n previousRow: row\n };\n try {\n await apiRef.current.dataSource.editRow(updateRowParams);\n finishCellEditMode();\n } catch {\n handleError();\n }\n } else if (processRowUpdate) {\n const handleError = errorThrown => {\n prevCellModesModel.current[id][field].mode = GridCellModes.Edit;\n // Revert the mode in the cellModesModel prop back to \"edit\"\n updateFieldInCellModesModel(id, field, {\n mode: GridCellModes.Edit\n });\n if (onProcessRowUpdateError) {\n onProcessRowUpdateError(errorThrown);\n } else if (process.env.NODE_ENV !== 'production') {\n warnOnce(['MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.', 'To handle the error pass a callback to the `onProcessRowUpdateError` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.', 'For more detail, see https://mui.com/x/react-data-grid/editing/persistence/.'], 'error');\n }\n };\n try {\n Promise.resolve(processRowUpdate(rowUpdate, row, {\n rowId: id\n })).then(finalRowUpdate => {\n apiRef.current.updateRows([finalRowUpdate]);\n finishCellEditMode();\n }).catch(handleError);\n } catch (errorThrown) {\n handleError(errorThrown);\n }\n } else {\n apiRef.current.updateRows([rowUpdate]);\n finishCellEditMode();\n }\n });\n const setCellEditingEditCellValue = React.useCallback(async params => {\n const {\n id,\n field,\n value,\n debounceMs,\n unstable_skipValueParser: skipValueParser\n } = params;\n throwIfNotEditable(id, field);\n throwIfNotInMode(id, field, GridCellModes.Edit);\n const column = apiRef.current.getColumn(field);\n const row = apiRef.current.getRow(id);\n let parsedValue = value;\n if (column.valueParser && !skipValueParser) {\n parsedValue = column.valueParser(value, row, column, apiRef);\n }\n let editingState = gridEditRowsStateSelector(apiRef);\n let newProps = _extends({}, editingState[id][field], {\n value: parsedValue,\n changeReason: debounceMs ? 'debouncedSetEditCellValue' : 'setEditCellValue'\n });\n if (column.preProcessEditCellProps) {\n const hasChanged = value !== editingState[id][field].value;\n newProps = _extends({}, newProps, {\n isProcessingProps: true\n });\n updateOrDeleteFieldState(id, field, newProps);\n newProps = await Promise.resolve(column.preProcessEditCellProps({\n id,\n row,\n props: newProps,\n hasChanged\n }));\n }\n\n // Check again if the cell is in edit mode because the user may have\n // discarded the changes while the props were being processed.\n if (apiRef.current.getCellMode(id, field) === GridCellModes.View) {\n return false;\n }\n editingState = gridEditRowsStateSelector(apiRef);\n newProps = _extends({}, newProps, {\n isProcessingProps: false\n });\n // We don't update the value with the one coming from the props pre-processing\n // because when the promise resolves it may be already outdated. The only\n // exception to this rule is when there's no pre-processing.\n newProps.value = column.preProcessEditCellProps ? editingState[id][field].value : parsedValue;\n updateOrDeleteFieldState(id, field, newProps);\n editingState = gridEditRowsStateSelector(apiRef);\n return !editingState[id]?.[field]?.error;\n }, [apiRef, throwIfNotEditable, throwIfNotInMode, updateOrDeleteFieldState]);\n const getRowWithUpdatedValuesFromCellEditing = React.useCallback((id, field) => {\n const column = apiRef.current.getColumn(field);\n const editingState = gridEditRowsStateSelector(apiRef);\n const row = apiRef.current.getRow(id);\n if (!editingState[id] || !editingState[id][field]) {\n return apiRef.current.getRow(id);\n }\n const {\n value\n } = editingState[id][field];\n return column.valueSetter ? column.valueSetter(value, row, column, apiRef) : _extends({}, row, {\n [field]: value\n });\n }, [apiRef]);\n const editingApi = {\n getCellMode,\n startCellEditMode,\n stopCellEditMode\n };\n const editingPrivateApi = {\n setCellEditingEditCellValue,\n getRowWithUpdatedValuesFromCellEditing\n };\n useGridApiMethod(apiRef, editingApi, 'public');\n useGridApiMethod(apiRef, editingPrivateApi, 'private');\n React.useEffect(() => {\n if (cellModesModelProp) {\n updateCellModesModel(cellModesModelProp);\n }\n }, [cellModesModelProp, updateCellModesModel]);\n\n // Run this effect synchronously so that the keyboard event can impact the yet-to-be-rendered input.\n useEnhancedEffect(() => {\n const rowsLookup = gridRowsLookupSelector(apiRef);\n\n // Update the ref here because updateStateToStopCellEditMode may change it later\n const copyOfPrevCellModes = prevCellModesModel.current;\n prevCellModesModel.current = deepClone(cellModesModel); // Do a deep-clone because the attributes might be changed later\n\n Object.entries(cellModesModel).forEach(([id, fields]) => {\n Object.entries(fields).forEach(([field, params]) => {\n const prevMode = copyOfPrevCellModes[id]?.[field]?.mode || GridCellModes.View;\n const originalId = rowsLookup[id] ? apiRef.current.getRowId(rowsLookup[id]) : id;\n if (params.mode === GridCellModes.Edit && prevMode === GridCellModes.View) {\n updateStateToStartCellEditMode(_extends({\n id: originalId,\n field\n }, params));\n } else if (params.mode === GridCellModes.View && prevMode === GridCellModes.Edit) {\n updateStateToStopCellEditMode(_extends({\n id: originalId,\n field\n }, params));\n }\n });\n });\n }, [apiRef, cellModesModel, updateStateToStartCellEditMode, updateStateToStopCellEditMode]);\n};","import _toPropertyKey from \"@babel/runtime/helpers/esm/toPropertyKey\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"id\"],\n _excluded2 = [\"id\"];\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport { warnOnce } from '@mui/x-internals/warning';\nimport { isDeepEqual } from '@mui/x-internals/isDeepEqual';\nimport { useGridEvent, useGridEventPriority } from \"../../utils/useGridEvent.js\";\nimport { GridEditModes, GridRowModes } from \"../../../models/gridEditRowModel.js\";\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { gridEditRowsStateSelector, gridRowIsEditingSelector } from \"./gridEditingSelectors.js\";\nimport { isPrintableKey, isPasteShortcut } from \"../../../utils/keyboardUtils.js\";\nimport { gridColumnFieldsSelector, gridVisibleColumnFieldsSelector } from \"../columns/gridColumnsSelector.js\";\nimport { gridRowsLookupSelector } from \"../rows/gridRowsSelector.js\";\nimport { deepClone } from \"../../../utils/utils.js\";\nimport { GridRowEditStopReasons, GridRowEditStartReasons } from \"../../../models/params/gridRowParams.js\";\nimport { GRID_ACTIONS_COLUMN_TYPE } from \"../../../colDef/index.js\";\nimport { getDefaultCellValue } from \"./utils.js\";\nexport const useGridRowEditing = (apiRef, props) => {\n const [rowModesModel, setRowModesModel] = React.useState({});\n const rowModesModelRef = React.useRef(rowModesModel);\n const prevRowModesModel = React.useRef({});\n const prevRowValuesLookup = React.useRef({});\n const focusTimeout = React.useRef(undefined);\n const nextFocusedCell = React.useRef(null);\n const {\n processRowUpdate,\n onProcessRowUpdateError,\n rowModesModel: rowModesModelProp,\n onRowModesModelChange\n } = props;\n const runIfEditModeIsRow = callback => (...args) => {\n if (props.editMode === GridEditModes.Row) {\n callback(...args);\n }\n };\n const throwIfNotEditable = React.useCallback((id, field) => {\n const params = apiRef.current.getCellParams(id, field);\n if (!apiRef.current.isCellEditable(params)) {\n throw new Error(`MUI X: The cell with id=${id} and field=${field} is not editable.`);\n }\n }, [apiRef]);\n const throwIfNotInMode = React.useCallback((id, mode) => {\n if (apiRef.current.getRowMode(id) !== mode) {\n throw new Error(`MUI X: The row with id=${id} is not in ${mode} mode.`);\n }\n }, [apiRef]);\n const hasFieldsWithErrors = React.useCallback(rowId => {\n const editingState = gridEditRowsStateSelector(apiRef);\n return Object.values(editingState[rowId]).some(fieldProps => fieldProps.error);\n }, [apiRef]);\n const handleCellDoubleClick = React.useCallback((params, event) => {\n if (!params.isEditable) {\n return;\n }\n if (apiRef.current.getRowMode(params.id) === GridRowModes.Edit) {\n return;\n }\n const rowParams = apiRef.current.getRowParams(params.id);\n const newParams = _extends({}, rowParams, {\n field: params.field,\n reason: GridRowEditStartReasons.cellDoubleClick\n });\n apiRef.current.publishEvent('rowEditStart', newParams, event);\n }, [apiRef]);\n const handleCellFocusIn = React.useCallback(params => {\n nextFocusedCell.current = params;\n }, []);\n const handleCellFocusOut = React.useCallback((params, event) => {\n if (!params.isEditable) {\n return;\n }\n if (apiRef.current.getRowMode(params.id) === GridRowModes.View) {\n return;\n }\n // The mechanism to detect if we can stop editing a row is different from\n // the cell editing. Instead of triggering it when clicking outside a cell,\n // we must check if another cell in the same row was not clicked. To achieve\n // that, first we keep track of all cells that gained focus. When a cell loses\n // focus we check if the next cell that received focus is from a different row.\n nextFocusedCell.current = null;\n focusTimeout.current = setTimeout(() => {\n if (nextFocusedCell.current?.id !== params.id) {\n // The row might have been deleted during the click\n if (!apiRef.current.getRow(params.id)) {\n return;\n }\n\n // The row may already changed its mode\n if (apiRef.current.getRowMode(params.id) === GridRowModes.View) {\n return;\n }\n if (hasFieldsWithErrors(params.id)) {\n return;\n }\n const rowParams = apiRef.current.getRowParams(params.id);\n const newParams = _extends({}, rowParams, {\n field: params.field,\n reason: GridRowEditStopReasons.rowFocusOut\n });\n apiRef.current.publishEvent('rowEditStop', newParams, event);\n }\n });\n }, [apiRef, hasFieldsWithErrors]);\n React.useEffect(() => {\n return () => {\n clearTimeout(focusTimeout.current);\n };\n }, []);\n const handleCellKeyDown = React.useCallback((params, event) => {\n if (params.cellMode === GridRowModes.Edit) {\n // Wait until IME is settled for Asian languages like Japanese and Chinese\n // TODO: to replace at one point. See https://github.com/mui/material-ui/pull/39713#discussion_r1381678957.\n if (event.which === 229) {\n return;\n }\n let reason;\n if (event.key === 'Escape') {\n reason = GridRowEditStopReasons.escapeKeyDown;\n } else if (event.key === 'Enter') {\n reason = GridRowEditStopReasons.enterKeyDown;\n } else if (event.key === 'Tab') {\n const columnFields = gridVisibleColumnFieldsSelector(apiRef).filter(field => {\n const column = apiRef.current.getColumn(field);\n if (column.type === GRID_ACTIONS_COLUMN_TYPE) {\n return true;\n }\n return apiRef.current.isCellEditable(apiRef.current.getCellParams(params.id, field));\n });\n if (event.shiftKey) {\n if (params.field === columnFields[0]) {\n // Exit if user pressed Shift+Tab on the first field\n reason = GridRowEditStopReasons.shiftTabKeyDown;\n }\n } else if (params.field === columnFields[columnFields.length - 1]) {\n // Exit if user pressed Tab on the last field\n reason = GridRowEditStopReasons.tabKeyDown;\n }\n\n // Always prevent going to the next element in the tab sequence because the focus is\n // handled manually to support edit components rendered inside Portals\n event.preventDefault();\n if (!reason) {\n const index = columnFields.findIndex(field => field === params.field);\n const nextFieldToFocus = columnFields[event.shiftKey ? index - 1 : index + 1];\n apiRef.current.setCellFocus(params.id, nextFieldToFocus);\n }\n }\n if (reason) {\n if (reason !== GridRowEditStopReasons.escapeKeyDown && hasFieldsWithErrors(params.id)) {\n return;\n }\n const newParams = _extends({}, apiRef.current.getRowParams(params.id), {\n reason,\n field: params.field\n });\n apiRef.current.publishEvent('rowEditStop', newParams, event);\n }\n } else if (params.isEditable) {\n let reason;\n const canStartEditing = apiRef.current.unstable_applyPipeProcessors('canStartEditing', true, {\n event,\n cellParams: params,\n editMode: 'row'\n });\n if (!canStartEditing) {\n return;\n }\n if (isPrintableKey(event)) {\n reason = GridRowEditStartReasons.printableKeyDown;\n } else if (isPasteShortcut(event)) {\n reason = GridRowEditStartReasons.printableKeyDown;\n } else if (event.key === 'Enter') {\n reason = GridRowEditStartReasons.enterKeyDown;\n } else if (event.key === 'Backspace' || event.key === 'Delete') {\n reason = GridRowEditStartReasons.deleteKeyDown;\n }\n if (reason) {\n const rowParams = apiRef.current.getRowParams(params.id);\n const newParams = _extends({}, rowParams, {\n field: params.field,\n reason\n });\n apiRef.current.publishEvent('rowEditStart', newParams, event);\n }\n }\n }, [apiRef, hasFieldsWithErrors]);\n const handleRowEditStart = React.useCallback(params => {\n const {\n id,\n field,\n reason\n } = params;\n const startRowEditModeParams = {\n id,\n fieldToFocus: field\n };\n if (reason === GridRowEditStartReasons.printableKeyDown || reason === GridRowEditStartReasons.deleteKeyDown) {\n startRowEditModeParams.deleteValue = !!field;\n }\n apiRef.current.startRowEditMode(startRowEditModeParams);\n }, [apiRef]);\n const handleRowEditStop = React.useCallback(params => {\n const {\n id,\n reason,\n field\n } = params;\n apiRef.current.runPendingEditCellValueMutation(id);\n let cellToFocusAfter;\n if (reason === GridRowEditStopReasons.enterKeyDown) {\n cellToFocusAfter = 'below';\n } else if (reason === GridRowEditStopReasons.tabKeyDown) {\n cellToFocusAfter = 'right';\n } else if (reason === GridRowEditStopReasons.shiftTabKeyDown) {\n cellToFocusAfter = 'left';\n }\n const ignoreModifications = reason === 'escapeKeyDown';\n apiRef.current.stopRowEditMode({\n id,\n ignoreModifications,\n field,\n cellToFocusAfter\n });\n }, [apiRef]);\n useGridEvent(apiRef, 'cellDoubleClick', runIfEditModeIsRow(handleCellDoubleClick));\n useGridEvent(apiRef, 'cellFocusIn', runIfEditModeIsRow(handleCellFocusIn));\n useGridEvent(apiRef, 'cellFocusOut', runIfEditModeIsRow(handleCellFocusOut));\n useGridEvent(apiRef, 'cellKeyDown', runIfEditModeIsRow(handleCellKeyDown));\n useGridEvent(apiRef, 'rowEditStart', runIfEditModeIsRow(handleRowEditStart));\n useGridEvent(apiRef, 'rowEditStop', runIfEditModeIsRow(handleRowEditStop));\n useGridEventPriority(apiRef, 'rowEditStart', props.onRowEditStart);\n useGridEventPriority(apiRef, 'rowEditStop', props.onRowEditStop);\n const getRowMode = React.useCallback(id => {\n const isEditing = gridRowIsEditingSelector(apiRef, {\n rowId: id,\n editMode: props.editMode\n });\n return isEditing ? GridRowModes.Edit : GridRowModes.View;\n }, [apiRef, props.editMode]);\n const updateRowModesModel = useEventCallback(newModel => {\n const isNewModelDifferentFromProp = newModel !== props.rowModesModel;\n if (onRowModesModelChange && isNewModelDifferentFromProp) {\n onRowModesModelChange(newModel, {\n api: apiRef.current\n });\n }\n if (props.rowModesModel && isNewModelDifferentFromProp) {\n return; // The prop always win\n }\n setRowModesModel(newModel);\n rowModesModelRef.current = newModel;\n apiRef.current.publishEvent('rowModesModelChange', newModel);\n });\n const updateRowInRowModesModel = React.useCallback((id, newProps) => {\n const newModel = _extends({}, rowModesModelRef.current);\n if (newProps !== null) {\n newModel[id] = _extends({}, newProps);\n } else {\n delete newModel[id];\n }\n updateRowModesModel(newModel);\n }, [updateRowModesModel]);\n const updateOrDeleteRowState = React.useCallback((id, newProps) => {\n apiRef.current.setState(state => {\n const newEditingState = _extends({}, state.editRows);\n if (newProps !== null) {\n newEditingState[id] = newProps;\n } else {\n delete newEditingState[id];\n }\n return _extends({}, state, {\n editRows: newEditingState\n });\n });\n }, [apiRef]);\n const updateOrDeleteFieldState = React.useCallback((id, field, newProps) => {\n apiRef.current.setState(state => {\n const newEditingState = _extends({}, state.editRows);\n if (newProps !== null) {\n newEditingState[id] = _extends({}, newEditingState[id], {\n [field]: _extends({}, newProps)\n });\n } else {\n delete newEditingState[id][field];\n if (Object.keys(newEditingState[id]).length === 0) {\n delete newEditingState[id];\n }\n }\n return _extends({}, state, {\n editRows: newEditingState\n });\n });\n }, [apiRef]);\n const startRowEditMode = React.useCallback(params => {\n const {\n id\n } = params,\n other = _objectWithoutPropertiesLoose(params, _excluded);\n throwIfNotInMode(id, GridRowModes.View);\n updateRowInRowModesModel(id, _extends({\n mode: GridRowModes.Edit\n }, other));\n }, [throwIfNotInMode, updateRowInRowModesModel]);\n const updateStateToStartRowEditMode = useEventCallback(params => {\n const {\n id,\n fieldToFocus,\n deleteValue,\n initialValue\n } = params;\n const row = apiRef.current.getRow(id);\n const columnFields = gridColumnFieldsSelector(apiRef);\n const newProps = columnFields.reduce((acc, field) => {\n const cellParams = apiRef.current.getCellParams(id, field);\n if (!cellParams.isEditable) {\n return acc;\n }\n const column = apiRef.current.getColumn(field);\n let newValue = apiRef.current.getCellValue(id, field);\n if (fieldToFocus === field && (deleteValue || initialValue)) {\n if (deleteValue) {\n newValue = getDefaultCellValue(column);\n } else if (initialValue) {\n newValue = initialValue;\n }\n }\n acc[field] = {\n value: newValue,\n error: false,\n isProcessingProps: !!column.preProcessEditCellProps && deleteValue\n };\n return acc;\n }, {});\n prevRowValuesLookup.current[id] = row;\n updateOrDeleteRowState(id, newProps);\n if (fieldToFocus) {\n apiRef.current.setCellFocus(id, fieldToFocus);\n }\n columnFields.filter(field => !!apiRef.current.getColumn(field).preProcessEditCellProps && deleteValue).forEach(field => {\n const column = apiRef.current.getColumn(field);\n const value = apiRef.current.getCellValue(id, field);\n const newValue = deleteValue ? getDefaultCellValue(column) : initialValue ?? value;\n Promise.resolve(column.preProcessEditCellProps({\n id,\n row,\n props: newProps[field],\n hasChanged: newValue !== value\n })).then(processedProps => {\n // Check if still in edit mode before updating\n if (apiRef.current.getRowMode(id) === GridRowModes.Edit) {\n const editingState = gridEditRowsStateSelector(apiRef);\n updateOrDeleteFieldState(id, field, _extends({}, processedProps, {\n value: editingState[id][field].value,\n isProcessingProps: false\n }));\n }\n });\n });\n });\n const stopRowEditMode = React.useCallback(params => {\n const {\n id\n } = params,\n other = _objectWithoutPropertiesLoose(params, _excluded2);\n throwIfNotInMode(id, GridRowModes.Edit);\n updateRowInRowModesModel(id, _extends({\n mode: GridRowModes.View\n }, other));\n }, [throwIfNotInMode, updateRowInRowModesModel]);\n const updateStateToStopRowEditMode = useEventCallback(async params => {\n const {\n id,\n ignoreModifications,\n field: focusedField,\n cellToFocusAfter = 'none'\n } = params;\n apiRef.current.runPendingEditCellValueMutation(id);\n const finishRowEditMode = () => {\n if (cellToFocusAfter !== 'none' && focusedField) {\n apiRef.current.moveFocusToRelativeCell(id, focusedField, cellToFocusAfter);\n }\n updateOrDeleteRowState(id, null);\n updateRowInRowModesModel(id, null);\n delete prevRowValuesLookup.current[id];\n };\n if (ignoreModifications) {\n finishRowEditMode();\n return;\n }\n const editingState = gridEditRowsStateSelector(apiRef);\n const row = prevRowValuesLookup.current[id];\n const isSomeFieldProcessingProps = Object.values(editingState[id]).some(fieldProps => fieldProps.isProcessingProps);\n if (isSomeFieldProcessingProps) {\n prevRowModesModel.current[id].mode = GridRowModes.Edit;\n return;\n }\n if (hasFieldsWithErrors(id)) {\n prevRowModesModel.current[id].mode = GridRowModes.Edit;\n // Revert the mode in the rowModesModel prop back to \"edit\"\n updateRowInRowModesModel(id, {\n mode: GridRowModes.Edit\n });\n return;\n }\n const rowUpdate = apiRef.current.getRowWithUpdatedValuesFromRowEditing(id);\n if (props.dataSource?.updateRow) {\n if (isDeepEqual(row, rowUpdate)) {\n finishRowEditMode();\n return;\n }\n const handleError = () => {\n prevRowModesModel.current[id].mode = GridRowModes.Edit;\n // Revert the mode in the rowModesModel prop back to \"edit\"\n updateRowInRowModesModel(id, {\n mode: GridRowModes.Edit\n });\n };\n const updateRowParams = {\n rowId: id,\n updatedRow: rowUpdate,\n previousRow: row\n };\n try {\n await apiRef.current.dataSource.editRow(updateRowParams);\n finishRowEditMode();\n } catch {\n handleError();\n }\n } else if (processRowUpdate) {\n const handleError = errorThrown => {\n // The row might have been deleted\n if (prevRowModesModel.current[id]) {\n prevRowModesModel.current[id].mode = GridRowModes.Edit;\n // Revert the mode in the rowModesModel prop back to \"edit\"\n updateRowInRowModesModel(id, {\n mode: GridRowModes.Edit\n });\n }\n if (onProcessRowUpdateError) {\n onProcessRowUpdateError(errorThrown);\n } else if (process.env.NODE_ENV !== 'production') {\n warnOnce(['MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.', 'To handle the error pass a callback to the `onProcessRowUpdateError` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.', 'For more detail, see https://mui.com/x/react-data-grid/editing/persistence/.'], 'error');\n }\n };\n try {\n Promise.resolve(processRowUpdate(rowUpdate, row, {\n rowId: id\n })).then(finalRowUpdate => {\n apiRef.current.updateRows([finalRowUpdate]);\n finishRowEditMode();\n }).catch(handleError);\n } catch (errorThrown) {\n handleError(errorThrown);\n }\n } else {\n apiRef.current.updateRows([rowUpdate]);\n finishRowEditMode();\n }\n });\n const setRowEditingEditCellValue = React.useCallback(params => {\n const {\n id,\n field,\n value,\n debounceMs,\n unstable_skipValueParser: skipValueParser\n } = params;\n throwIfNotEditable(id, field);\n const column = apiRef.current.getColumn(field);\n const row = apiRef.current.getRow(id);\n let parsedValue = value;\n if (column.valueParser && !skipValueParser) {\n parsedValue = column.valueParser(value, row, column, apiRef);\n }\n let editingState = gridEditRowsStateSelector(apiRef);\n let newProps = _extends({}, editingState[id][field], {\n value: parsedValue,\n changeReason: debounceMs ? 'debouncedSetEditCellValue' : 'setEditCellValue'\n });\n if (!column.preProcessEditCellProps) {\n updateOrDeleteFieldState(id, field, newProps);\n }\n return new Promise(resolve => {\n const promises = [];\n if (column.preProcessEditCellProps) {\n const hasChanged = newProps.value !== editingState[id][field].value;\n newProps = _extends({}, newProps, {\n isProcessingProps: true\n });\n updateOrDeleteFieldState(id, field, newProps);\n const _editingState$id = editingState[id],\n otherFieldsProps = _objectWithoutPropertiesLoose(_editingState$id, [field].map(_toPropertyKey));\n const promise = Promise.resolve(column.preProcessEditCellProps({\n id,\n row,\n props: newProps,\n hasChanged,\n otherFieldsProps\n })).then(processedProps => {\n // Check again if the row is in edit mode because the user may have\n // discarded the changes while the props were being processed.\n if (apiRef.current.getRowMode(id) === GridRowModes.View) {\n resolve(false);\n return;\n }\n editingState = gridEditRowsStateSelector(apiRef);\n processedProps = _extends({}, processedProps, {\n isProcessingProps: false\n });\n // We don't reuse the value from the props pre-processing because when the\n // promise resolves it may be already outdated. The only exception to this rule\n // is when there's no pre-processing.\n processedProps.value = column.preProcessEditCellProps ? editingState[id][field].value : parsedValue;\n updateOrDeleteFieldState(id, field, processedProps);\n });\n promises.push(promise);\n }\n Object.entries(editingState[id]).forEach(([thisField, fieldProps]) => {\n if (thisField === field) {\n return;\n }\n const fieldColumn = apiRef.current.getColumn(thisField);\n if (!fieldColumn.preProcessEditCellProps) {\n return;\n }\n fieldProps = _extends({}, fieldProps, {\n isProcessingProps: true\n });\n updateOrDeleteFieldState(id, thisField, fieldProps);\n editingState = gridEditRowsStateSelector(apiRef);\n const _editingState$id2 = editingState[id],\n otherFieldsProps = _objectWithoutPropertiesLoose(_editingState$id2, [thisField].map(_toPropertyKey));\n const promise = Promise.resolve(fieldColumn.preProcessEditCellProps({\n id,\n row,\n props: fieldProps,\n hasChanged: false,\n otherFieldsProps\n })).then(processedProps => {\n // Check again if the row is in edit mode because the user may have\n // discarded the changes while the props were being processed.\n if (apiRef.current.getRowMode(id) === GridRowModes.View) {\n resolve(false);\n return;\n }\n processedProps = _extends({}, processedProps, {\n isProcessingProps: false\n });\n updateOrDeleteFieldState(id, thisField, processedProps);\n });\n promises.push(promise);\n });\n Promise.all(promises).then(() => {\n if (apiRef.current.getRowMode(id) === GridRowModes.Edit) {\n editingState = gridEditRowsStateSelector(apiRef);\n resolve(!editingState[id][field].error);\n } else {\n resolve(false);\n }\n });\n });\n }, [apiRef, throwIfNotEditable, updateOrDeleteFieldState]);\n const getRowWithUpdatedValuesFromRowEditing = React.useCallback(id => {\n const editingState = gridEditRowsStateSelector(apiRef);\n const row = apiRef.current.getRow(id);\n if (!editingState[id]) {\n return apiRef.current.getRow(id);\n }\n let rowUpdate = _extends({}, prevRowValuesLookup.current[id], row);\n Object.entries(editingState[id]).forEach(([field, fieldProps]) => {\n const column = apiRef.current.getColumn(field);\n // Column might have been removed\n // see https://github.com/mui/mui-x/pull/16888\n if (column?.valueSetter) {\n rowUpdate = column.valueSetter(fieldProps.value, rowUpdate, column, apiRef);\n } else {\n rowUpdate[field] = fieldProps.value;\n }\n });\n return rowUpdate;\n }, [apiRef]);\n const editingApi = {\n getRowMode,\n startRowEditMode,\n stopRowEditMode\n };\n const editingPrivateApi = {\n setRowEditingEditCellValue,\n getRowWithUpdatedValuesFromRowEditing\n };\n useGridApiMethod(apiRef, editingApi, 'public');\n useGridApiMethod(apiRef, editingPrivateApi, 'private');\n React.useEffect(() => {\n if (rowModesModelProp) {\n updateRowModesModel(rowModesModelProp);\n }\n }, [rowModesModelProp, updateRowModesModel]);\n\n // Run this effect synchronously so that the keyboard event can impact the yet-to-be-rendered input.\n useEnhancedEffect(() => {\n const rowsLookup = gridRowsLookupSelector(apiRef);\n\n // Update the ref here because updateStateToStopRowEditMode may change it later\n const copyOfPrevRowModesModel = prevRowModesModel.current;\n prevRowModesModel.current = deepClone(rowModesModel); // Do a deep-clone because the attributes might be changed later\n\n const ids = new Set([...Object.keys(rowModesModel), ...Object.keys(copyOfPrevRowModesModel)]);\n Array.from(ids).forEach(id => {\n const params = rowModesModel[id] ?? {\n mode: GridRowModes.View\n };\n const prevMode = copyOfPrevRowModesModel[id]?.mode || GridRowModes.View;\n const originalId = rowsLookup[id] ? apiRef.current.getRowId(rowsLookup[id]) : id;\n if (params.mode === GridRowModes.Edit && prevMode === GridRowModes.View) {\n updateStateToStartRowEditMode(_extends({\n id: originalId\n }, params));\n } else if (params.mode === GridRowModes.View && prevMode === GridRowModes.Edit) {\n updateStateToStopRowEditMode(_extends({\n id: originalId\n }, params));\n }\n });\n }, [apiRef, rowModesModel, updateStateToStartRowEditMode, updateStateToStopRowEditMode]);\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { useGridCellEditing } from \"./useGridCellEditing.js\";\nimport { GridCellModes, GridEditModes } from \"../../../models/gridEditRowModel.js\";\nimport { useGridRowEditing } from \"./useGridRowEditing.js\";\nimport { gridEditRowsStateSelector } from \"./gridEditingSelectors.js\";\nimport { isAutogeneratedRowNode } from \"../rows/gridRowsUtils.js\";\nexport const editingStateInitializer = state => _extends({}, state, {\n editRows: {}\n});\nexport const useGridEditing = (apiRef, props) => {\n useGridCellEditing(apiRef, props);\n useGridRowEditing(apiRef, props);\n const debounceMap = React.useRef({});\n const {\n isCellEditable: isCellEditableProp\n } = props;\n const isCellEditable = React.useCallback(params => {\n if (isAutogeneratedRowNode(params.rowNode)) {\n return false;\n }\n if (!params.colDef.editable) {\n return false;\n }\n if (!params.colDef.renderEditCell) {\n return false;\n }\n if (isCellEditableProp) {\n return isCellEditableProp(params);\n }\n return true;\n }, [isCellEditableProp]);\n const maybeDebounce = (id, field, debounceMs, callback) => {\n if (!debounceMs) {\n callback();\n return;\n }\n if (!debounceMap.current[id]) {\n debounceMap.current[id] = {};\n }\n if (debounceMap.current[id][field]) {\n const [timeout] = debounceMap.current[id][field];\n clearTimeout(timeout);\n }\n\n // To run the callback immediately without waiting the timeout\n const runImmediately = () => {\n const [timeout] = debounceMap.current[id][field];\n clearTimeout(timeout);\n callback();\n delete debounceMap.current[id][field];\n };\n const timeout = setTimeout(() => {\n callback();\n delete debounceMap.current[id][field];\n }, debounceMs);\n debounceMap.current[id][field] = [timeout, runImmediately];\n };\n React.useEffect(() => {\n const debounces = debounceMap.current;\n return () => {\n Object.entries(debounces).forEach(([id, fields]) => {\n Object.keys(fields).forEach(field => {\n const [timeout] = debounces[id][field];\n clearTimeout(timeout);\n delete debounces[id][field];\n });\n });\n };\n }, []);\n const runPendingEditCellValueMutation = React.useCallback((id, field) => {\n if (!debounceMap.current[id]) {\n return;\n }\n if (!field) {\n Object.keys(debounceMap.current[id]).forEach(debouncedField => {\n const [, runCallback] = debounceMap.current[id][debouncedField];\n runCallback();\n });\n } else if (debounceMap.current[id][field]) {\n const [, runCallback] = debounceMap.current[id][field];\n runCallback();\n }\n }, []);\n const setEditCellValue = React.useCallback(params => {\n const {\n id,\n field,\n debounceMs\n } = params;\n return new Promise(resolve => {\n maybeDebounce(id, field, debounceMs, async () => {\n const setEditCellValueToCall = props.editMode === GridEditModes.Row ? apiRef.current.setRowEditingEditCellValue : apiRef.current.setCellEditingEditCellValue;\n\n // Check if the cell is in edit mode\n // By the time this callback runs the user may have cancelled the editing\n if (apiRef.current.getCellMode(id, field) === GridCellModes.Edit) {\n const result = await setEditCellValueToCall(params);\n resolve(result);\n }\n });\n });\n }, [apiRef, props.editMode]);\n const getRowWithUpdatedValues = React.useCallback((id, field) => {\n return props.editMode === GridEditModes.Cell ? apiRef.current.getRowWithUpdatedValuesFromCellEditing(id, field) : apiRef.current.getRowWithUpdatedValuesFromRowEditing(id);\n }, [apiRef, props.editMode]);\n const getEditCellMeta = React.useCallback((id, field) => {\n const editingState = gridEditRowsStateSelector(apiRef);\n return editingState[id]?.[field] ?? null;\n }, [apiRef]);\n const editingSharedApi = {\n isCellEditable,\n setEditCellValue,\n getRowWithUpdatedValues,\n unstable_getEditCellMeta: getEditCellMeta\n };\n const editingSharedPrivateApi = {\n runPendingEditCellValueMutation\n };\n useGridApiMethod(apiRef, editingSharedApi, 'public');\n useGridApiMethod(apiRef, editingSharedPrivateApi, 'private');\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useLazyRef from '@mui/utils/useLazyRef';\nimport { isObjectEmpty } from '@mui/x-internals/isObjectEmpty';\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { useGridLogger } from \"../../utils/useGridLogger.js\";\nimport { gridRowCountSelector, gridRowsLookupSelector, gridRowTreeSelector, gridRowGroupingNameSelector, gridRowTreeDepthsSelector, gridDataRowIdsSelector, gridRowMaximumTreeDepthSelector, gridRowGroupsToFetchSelector, gridRowNodeSelector, gridDataRowsSelector } from \"./gridRowsSelector.js\";\nimport { gridRowIdSelector } from \"../../core/gridPropsSelectors.js\";\nimport { useTimeout } from \"../../utils/useTimeout.js\";\nimport { GridSignature } from \"../../../constants/signature.js\";\nimport { useGridEvent } from \"../../utils/useGridEvent.js\";\nimport { getVisibleRows } from \"../../utils/useGridVisibleRows.js\";\nimport { gridSortedRowIdsSelector } from \"../sorting/gridSortingSelector.js\";\nimport { gridFilteredRowsLookupSelector } from \"../filter/gridFilterSelector.js\";\nimport { getTreeNodeDescendants, createRowsInternalCache, getRowsStateFromCache, isAutogeneratedRowNode, GRID_ROOT_GROUP_ID, GRID_ID_AUTOGENERATED, updateCacheWithNewRows, getTopLevelRowCount, getRowIdFromRowModel, computeRowsUpdates } from \"./gridRowsUtils.js\";\nimport { useGridRegisterPipeApplier } from \"../../core/pipeProcessing/index.js\";\nimport { GridStrategyGroup } from \"../../core/strategyProcessing/index.js\";\nimport { gridPivotActiveSelector } from \"../pivoting/index.js\";\nexport const rowsStateInitializer = (state, props, apiRef) => {\n const isDataSourceAvailable = !!props.dataSource;\n apiRef.current.caches.rows = createRowsInternalCache({\n rows: isDataSourceAvailable ? [] : props.rows,\n getRowId: props.getRowId,\n loading: props.loading,\n rowCount: props.rowCount\n });\n return _extends({}, state, {\n rows: getRowsStateFromCache({\n apiRef,\n rowCountProp: props.rowCount,\n loadingProp: isDataSourceAvailable ? true : props.loading,\n previousTree: null,\n previousTreeDepths: null\n })\n });\n};\nexport const useGridRows = (apiRef, props) => {\n if (process.env.NODE_ENV !== 'production') {\n try {\n // Freeze the `rows` prop so developers have a fast failure if they try to use Array.prototype.push().\n Object.freeze(props.rows);\n } catch (error) {\n // Sometimes, it's impossible to freeze, so we give up on it.\n }\n }\n const logger = useGridLogger(apiRef, 'useGridRows');\n const lastUpdateMs = React.useRef(Date.now());\n const lastRowCount = React.useRef(props.rowCount);\n const timeout = useTimeout();\n const getRow = React.useCallback(id => {\n const model = gridRowsLookupSelector(apiRef)[id];\n if (model) {\n return model;\n }\n const node = gridRowNodeSelector(apiRef, id);\n if (node && isAutogeneratedRowNode(node)) {\n return {\n [GRID_ID_AUTOGENERATED]: id\n };\n }\n return null;\n }, [apiRef]);\n const getRowId = React.useCallback(row => gridRowIdSelector(apiRef, row), [apiRef]);\n const throttledRowsChange = React.useCallback(({\n cache,\n throttle\n }) => {\n const run = () => {\n lastUpdateMs.current = Date.now();\n apiRef.current.setState(state => _extends({}, state, {\n rows: getRowsStateFromCache({\n apiRef,\n rowCountProp: props.rowCount,\n loadingProp: props.loading,\n previousTree: gridRowTreeSelector(apiRef),\n previousTreeDepths: gridRowTreeDepthsSelector(apiRef),\n previousGroupsToFetch: gridRowGroupsToFetchSelector(apiRef)\n })\n }));\n apiRef.current.publishEvent('rowsSet');\n };\n timeout.clear();\n apiRef.current.caches.rows = cache;\n if (!throttle) {\n run();\n return;\n }\n const throttleRemainingTimeMs = props.throttleRowsMs - (Date.now() - lastUpdateMs.current);\n if (throttleRemainingTimeMs > 0) {\n timeout.start(throttleRemainingTimeMs, run);\n return;\n }\n run();\n }, [props.throttleRowsMs, props.rowCount, props.loading, apiRef, timeout]);\n\n /**\n * API METHODS\n */\n const setRows = React.useCallback(rows => {\n logger.debug(`Updating all rows, new length ${rows.length}`);\n if (gridPivotActiveSelector(apiRef)) {\n apiRef.current.updateNonPivotRows(rows, false);\n return;\n }\n const cache = createRowsInternalCache({\n rows,\n getRowId: props.getRowId,\n loading: props.loading,\n rowCount: props.rowCount\n });\n const prevCache = apiRef.current.caches.rows;\n cache.rowsBeforePartialUpdates = prevCache.rowsBeforePartialUpdates;\n throttledRowsChange({\n cache,\n throttle: true\n });\n }, [logger, props.getRowId, props.loading, props.rowCount, throttledRowsChange, apiRef]);\n const updateRows = React.useCallback(updates => {\n if (props.signature === GridSignature.DataGrid && updates.length > 1) {\n throw new Error(['MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.', 'You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature.'].join('\\n'));\n }\n if (gridPivotActiveSelector(apiRef)) {\n apiRef.current.updateNonPivotRows(updates);\n return;\n }\n const nonPinnedRowsUpdates = computeRowsUpdates(apiRef, updates, props.getRowId);\n const cache = updateCacheWithNewRows({\n updates: nonPinnedRowsUpdates,\n getRowId: props.getRowId,\n previousCache: apiRef.current.caches.rows\n });\n throttledRowsChange({\n cache,\n throttle: true\n });\n }, [props.signature, props.getRowId, throttledRowsChange, apiRef]);\n const updateNestedRows = React.useCallback((updates, groupKeys) => {\n const nonPinnedRowsUpdates = computeRowsUpdates(apiRef, updates, props.getRowId);\n const cache = updateCacheWithNewRows({\n updates: nonPinnedRowsUpdates,\n getRowId: props.getRowId,\n previousCache: apiRef.current.caches.rows,\n groupKeys: groupKeys ?? []\n });\n throttledRowsChange({\n cache,\n throttle: false\n });\n }, [props.getRowId, throttledRowsChange, apiRef]);\n const setLoading = React.useCallback(loading => {\n logger.debug(`Setting loading to ${loading}`);\n apiRef.current.setState(state => _extends({}, state, {\n rows: _extends({}, state.rows, {\n loading\n })\n }));\n apiRef.current.caches.rows.loadingPropBeforePartialUpdates = loading;\n }, [apiRef, logger]);\n const getRowModels = React.useCallback(() => {\n const dataRows = gridDataRowIdsSelector(apiRef);\n const idRowsLookup = gridRowsLookupSelector(apiRef);\n return new Map(dataRows.map(id => [id, idRowsLookup[id] ?? {}]));\n }, [apiRef]);\n const getRowsCount = React.useCallback(() => gridRowCountSelector(apiRef), [apiRef]);\n const getAllRowIds = React.useCallback(() => gridDataRowIdsSelector(apiRef), [apiRef]);\n const getRowIndexRelativeToVisibleRows = React.useCallback(id => {\n const {\n rowIdToIndexMap\n } = getVisibleRows(apiRef);\n return rowIdToIndexMap.get(id);\n }, [apiRef]);\n const setRowChildrenExpansion = React.useCallback((id, isExpanded) => {\n const currentNode = gridRowNodeSelector(apiRef, id);\n if (!currentNode) {\n throw new Error(`MUI X: No row with id #${id} found.`);\n }\n if (currentNode.type !== 'group') {\n throw new Error('MUI X: Only group nodes can be expanded or collapsed.');\n }\n const newNode = _extends({}, currentNode, {\n childrenExpanded: isExpanded\n });\n apiRef.current.setState(state => {\n return _extends({}, state, {\n rows: _extends({}, state.rows, {\n tree: _extends({}, state.rows.tree, {\n [id]: newNode\n })\n })\n });\n });\n apiRef.current.publishEvent('rowExpansionChange', newNode);\n }, [apiRef]);\n const getRowNode = React.useCallback(id => gridRowNodeSelector(apiRef, id) ?? null, [apiRef]);\n const getRowGroupChildren = React.useCallback(({\n skipAutoGeneratedRows = true,\n groupId,\n applySorting,\n applyFiltering\n }) => {\n const tree = gridRowTreeSelector(apiRef);\n let children;\n if (applySorting) {\n const groupNode = tree[groupId];\n if (!groupNode) {\n return [];\n }\n const sortedRowIds = gridSortedRowIdsSelector(apiRef);\n children = [];\n const startIndex = sortedRowIds.findIndex(id => id === groupId) + 1;\n for (let index = startIndex; index < sortedRowIds.length && tree[sortedRowIds[index]].depth > groupNode.depth; index += 1) {\n const id = sortedRowIds[index];\n if (!skipAutoGeneratedRows || !isAutogeneratedRowNode(tree[id])) {\n children.push(id);\n }\n }\n } else {\n children = getTreeNodeDescendants(tree, groupId, skipAutoGeneratedRows);\n }\n if (applyFiltering) {\n const filteredRowsLookup = gridFilteredRowsLookupSelector(apiRef);\n children = isObjectEmpty(filteredRowsLookup) ? children : children.filter(childId => filteredRowsLookup[childId] !== false);\n }\n return children;\n }, [apiRef]);\n const setRowIndex = React.useCallback((rowId, targetIndex) => {\n const node = gridRowNodeSelector(apiRef, rowId);\n if (!node) {\n throw new Error(`MUI X: No row with id #${rowId} found.`);\n }\n if (node.parent !== GRID_ROOT_GROUP_ID) {\n throw new Error(`MUI X: The row reordering do not support reordering of grouped rows yet.`);\n }\n if (node.type !== 'leaf') {\n throw new Error(`MUI X: The row reordering do not support reordering of footer or grouping rows.`);\n }\n apiRef.current.setState(state => {\n const group = gridRowTreeSelector(apiRef)[GRID_ROOT_GROUP_ID];\n const allRows = group.children;\n const oldIndex = allRows.findIndex(row => row === rowId);\n if (oldIndex === -1 || oldIndex === targetIndex) {\n return state;\n }\n logger.debug(`Moving row ${rowId} to index ${targetIndex}`);\n const updatedRows = [...allRows];\n updatedRows.splice(targetIndex, 0, updatedRows.splice(oldIndex, 1)[0]);\n return _extends({}, state, {\n rows: _extends({}, state.rows, {\n tree: _extends({}, state.rows.tree, {\n [GRID_ROOT_GROUP_ID]: _extends({}, group, {\n children: updatedRows\n })\n })\n })\n });\n });\n apiRef.current.publishEvent('rowsSet');\n }, [apiRef, logger]);\n const replaceRows = React.useCallback((firstRowToRender, newRows) => {\n if (props.signature === GridSignature.DataGrid && newRows.length > 1) {\n throw new Error(['MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.', 'You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature.'].join('\\n'));\n }\n if (newRows.length === 0) {\n return;\n }\n const treeDepth = gridRowMaximumTreeDepthSelector(apiRef);\n if (treeDepth > 1) {\n throw new Error('`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping');\n }\n const tree = _extends({}, gridRowTreeSelector(apiRef));\n const dataRowIdToModelLookup = _extends({}, gridRowsLookupSelector(apiRef));\n const rootGroup = tree[GRID_ROOT_GROUP_ID];\n const rootGroupChildren = [...rootGroup.children];\n const seenIds = new Set();\n for (let i = 0; i < newRows.length; i += 1) {\n const rowModel = newRows[i];\n const rowId = getRowIdFromRowModel(rowModel, props.getRowId, 'A row was provided without id when calling replaceRows().');\n const [removedRowId] = rootGroupChildren.splice(firstRowToRender + i, 1, rowId);\n if (!seenIds.has(removedRowId)) {\n delete dataRowIdToModelLookup[removedRowId];\n delete tree[removedRowId];\n }\n const rowTreeNodeConfig = {\n id: rowId,\n depth: 0,\n parent: GRID_ROOT_GROUP_ID,\n type: 'leaf',\n groupingKey: null\n };\n dataRowIdToModelLookup[rowId] = rowModel;\n tree[rowId] = rowTreeNodeConfig;\n seenIds.add(rowId);\n }\n tree[GRID_ROOT_GROUP_ID] = _extends({}, rootGroup, {\n children: rootGroupChildren\n });\n\n // Removes potential remaining skeleton rows from the dataRowIds.\n const dataRowIds = rootGroupChildren.filter(childId => tree[childId]?.type === 'leaf');\n apiRef.current.caches.rows.dataRowIdToModelLookup = dataRowIdToModelLookup;\n apiRef.current.setState(state => _extends({}, state, {\n rows: _extends({}, state.rows, {\n loading: props.loading,\n totalRowCount: Math.max(props.rowCount || 0, rootGroupChildren.length),\n dataRowIdToModelLookup,\n dataRowIds,\n tree\n })\n }));\n apiRef.current.publishEvent('rowsSet');\n }, [apiRef, props.signature, props.getRowId, props.loading, props.rowCount]);\n const rowApi = {\n getRow,\n setLoading,\n getRowId,\n getRowModels,\n getRowsCount,\n getAllRowIds,\n setRows,\n updateRows,\n getRowNode,\n getRowIndexRelativeToVisibleRows,\n unstable_replaceRows: replaceRows\n };\n const rowProApi = {\n setRowIndex,\n setRowChildrenExpansion,\n getRowGroupChildren\n };\n const rowProPrivateApi = {\n updateNestedRows\n };\n\n /**\n * EVENTS\n */\n const groupRows = React.useCallback(() => {\n logger.info(`Row grouping pre-processing have changed, regenerating the row tree`);\n let cache;\n if (apiRef.current.caches.rows.rowsBeforePartialUpdates === props.rows) {\n // The `props.rows` did not change since the last row grouping\n // We can use the current rows cache which contains the partial updates done recently.\n cache = _extends({}, apiRef.current.caches.rows, {\n updates: {\n type: 'full',\n rows: gridDataRowIdsSelector(apiRef)\n }\n });\n } else {\n // The `props.rows` has changed since the last row grouping\n // We must use the new `props.rows` on the new grouping\n // This occurs because this event is triggered before the `useEffect` on the rows when both the grouping pre-processing and the rows changes on the same render\n cache = createRowsInternalCache({\n rows: props.rows,\n getRowId: props.getRowId,\n loading: props.loading,\n rowCount: props.rowCount\n });\n }\n throttledRowsChange({\n cache,\n throttle: false\n });\n }, [logger, apiRef, props.rows, props.getRowId, props.loading, props.rowCount, throttledRowsChange]);\n const previousDataSource = useLazyRef(() => props.dataSource);\n const handleStrategyProcessorChange = React.useCallback(methodName => {\n if (props.dataSource && props.dataSource !== previousDataSource.current) {\n previousDataSource.current = props.dataSource;\n return;\n }\n if (methodName === 'rowTreeCreation') {\n groupRows();\n }\n }, [groupRows, previousDataSource, props.dataSource]);\n const handleStrategyActivityChange = React.useCallback(() => {\n // `rowTreeCreation` is the only processor ran when `strategyAvailabilityChange` is fired.\n // All the other processors listen to `rowsSet` which will be published by the `groupRows` method below.\n if (apiRef.current.getActiveStrategy(GridStrategyGroup.RowTree) !== gridRowGroupingNameSelector(apiRef)) {\n groupRows();\n }\n }, [apiRef, groupRows]);\n useGridEvent(apiRef, 'activeStrategyProcessorChange', handleStrategyProcessorChange);\n useGridEvent(apiRef, 'strategyAvailabilityChange', handleStrategyActivityChange);\n\n /**\n * APPLIERS\n */\n const applyHydrateRowsProcessor = React.useCallback(() => {\n apiRef.current.setState(state => {\n const response = apiRef.current.unstable_applyPipeProcessors('hydrateRows', {\n tree: gridRowTreeSelector(apiRef),\n treeDepths: gridRowTreeDepthsSelector(apiRef),\n dataRowIds: gridDataRowIdsSelector(apiRef),\n dataRowIdToModelLookup: gridRowsLookupSelector(apiRef)\n });\n return _extends({}, state, {\n rows: _extends({}, state.rows, response, {\n totalTopLevelRowCount: getTopLevelRowCount({\n tree: response.tree,\n rowCountProp: props.rowCount\n })\n })\n });\n });\n apiRef.current.publishEvent('rowsSet');\n }, [apiRef, props.rowCount]);\n useGridRegisterPipeApplier(apiRef, 'hydrateRows', applyHydrateRowsProcessor);\n useGridApiMethod(apiRef, rowApi, 'public');\n useGridApiMethod(apiRef, rowProApi, props.signature === GridSignature.DataGrid ? 'private' : 'public');\n useGridApiMethod(apiRef, rowProPrivateApi, 'private');\n\n // The effect do not track any value defined synchronously during the 1st render by hooks called after `useGridRows`\n // As a consequence, the state generated by the 1st run of this useEffect will always be equal to the initialization one\n const isFirstRender = React.useRef(true);\n React.useEffect(() => {\n if (isFirstRender.current) {\n isFirstRender.current = false;\n return;\n }\n let isRowCountPropUpdated = false;\n if (props.rowCount !== lastRowCount.current) {\n isRowCountPropUpdated = true;\n lastRowCount.current = props.rowCount;\n }\n const currentRows = props.dataSource ? gridDataRowsSelector(apiRef) : props.rows;\n const areNewRowsAlreadyInState = apiRef.current.caches.rows.rowsBeforePartialUpdates === currentRows;\n const isNewLoadingAlreadyInState = apiRef.current.caches.rows.loadingPropBeforePartialUpdates === props.loading;\n const isNewRowCountAlreadyInState = apiRef.current.caches.rows.rowCountPropBeforePartialUpdates === props.rowCount;\n\n // The new rows have already been applied (most likely in the `'rowGroupsPreProcessingChange'` listener)\n if (areNewRowsAlreadyInState) {\n // If the loading prop has changed, we need to update its value in the state because it won't be done by `throttledRowsChange`\n if (!isNewLoadingAlreadyInState) {\n apiRef.current.setState(state => _extends({}, state, {\n rows: _extends({}, state.rows, {\n loading: props.loading\n })\n }));\n apiRef.current.caches.rows.loadingPropBeforePartialUpdates = props.loading;\n }\n if (!isNewRowCountAlreadyInState) {\n apiRef.current.setState(state => _extends({}, state, {\n rows: _extends({}, state.rows, {\n totalRowCount: Math.max(props.rowCount || 0, state.rows.totalRowCount),\n totalTopLevelRowCount: Math.max(props.rowCount || 0, state.rows.totalTopLevelRowCount)\n })\n }));\n apiRef.current.caches.rows.rowCountPropBeforePartialUpdates = props.rowCount;\n }\n if (!isRowCountPropUpdated) {\n return;\n }\n }\n logger.debug(`Updating all rows, new length ${currentRows?.length}`);\n throttledRowsChange({\n cache: createRowsInternalCache({\n rows: currentRows,\n getRowId: props.getRowId,\n loading: props.loading,\n rowCount: props.rowCount\n }),\n throttle: false\n });\n }, [props.rows, props.rowCount, props.getRowId, props.loading, props.dataSource, logger, throttledRowsChange, apiRef]);\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { GRID_DEFAULT_STRATEGY, useGridRegisterStrategyProcessor } from \"../../core/strategyProcessing/index.js\";\nimport { buildRootGroup, GRID_ROOT_GROUP_ID } from \"./gridRowsUtils.js\";\nconst createFlatRowTree = rows => {\n const tree = {\n [GRID_ROOT_GROUP_ID]: _extends({}, buildRootGroup(), {\n children: rows\n })\n };\n for (let i = 0; i < rows.length; i += 1) {\n const rowId = rows[i];\n tree[rowId] = {\n id: rowId,\n depth: 0,\n parent: GRID_ROOT_GROUP_ID,\n type: 'leaf',\n groupingKey: null\n };\n }\n return {\n groupingName: GRID_DEFAULT_STRATEGY,\n tree,\n treeDepths: {\n 0: rows.length\n },\n dataRowIds: rows\n };\n};\nconst updateFlatRowTree = ({\n previousTree,\n actions\n}) => {\n const tree = _extends({}, previousTree);\n const idsToRemoveFromRootGroup = {};\n for (let i = 0; i < actions.remove.length; i += 1) {\n const idToDelete = actions.remove[i];\n idsToRemoveFromRootGroup[idToDelete] = true;\n delete tree[idToDelete];\n }\n for (let i = 0; i < actions.insert.length; i += 1) {\n const idToInsert = actions.insert[i];\n tree[idToInsert] = {\n id: idToInsert,\n depth: 0,\n parent: GRID_ROOT_GROUP_ID,\n type: 'leaf',\n groupingKey: null\n };\n }\n\n // TODO rows v6: Support row unpinning\n\n const rootGroup = tree[GRID_ROOT_GROUP_ID];\n let rootGroupChildren = [...rootGroup.children, ...actions.insert];\n if (Object.values(idsToRemoveFromRootGroup).length) {\n rootGroupChildren = rootGroupChildren.filter(id => !idsToRemoveFromRootGroup[id]);\n }\n tree[GRID_ROOT_GROUP_ID] = _extends({}, rootGroup, {\n children: rootGroupChildren\n });\n return {\n groupingName: GRID_DEFAULT_STRATEGY,\n tree,\n treeDepths: {\n 0: rootGroupChildren.length\n },\n dataRowIds: rootGroupChildren\n };\n};\nconst flatRowTreeCreationMethod = params => {\n if (params.updates.type === 'full') {\n return createFlatRowTree(params.updates.rows);\n }\n return updateFlatRowTree({\n previousTree: params.previousTree,\n actions: params.updates.actions\n });\n};\nexport const useGridRowsPreProcessors = apiRef => {\n useGridRegisterStrategyProcessor(apiRef, GRID_DEFAULT_STRATEGY, 'rowTreeCreation', flatRowTreeCreationMethod);\n};","import * as React from 'react';\nimport { getGridCellElement, getGridColumnHeaderElement, getGridRowElement } from \"../../../utils/domUtils.js\";\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { gridFocusCellSelector, gridTabIndexCellSelector } from \"../focus/gridFocusStateSelector.js\";\nimport { gridListColumnSelector } from \"../listView/gridListViewSelectors.js\";\nimport { gridRowNodeSelector } from \"./gridRowsSelector.js\";\nimport { getRowValue as getRowValueFn } from \"./gridRowsUtils.js\";\nexport class MissingRowIdError extends Error {}\n\n/**\n * @requires useGridColumns (method)\n * @requires useGridRows (method)\n * @requires useGridFocus (state)\n * @requires useGridEditing (method)\n * TODO: Impossible priority - useGridEditing also needs to be after useGridParamsApi\n * TODO: Impossible priority - useGridFocus also needs to be after useGridParamsApi\n */\nexport function useGridParamsApi(apiRef, props) {\n const getColumnHeaderParams = React.useCallback(field => ({\n field,\n colDef: apiRef.current.getColumn(field)\n }), [apiRef]);\n const getRowParams = React.useCallback(id => {\n const row = apiRef.current.getRow(id);\n if (!row) {\n throw new MissingRowIdError(`No row with id #${id} found`);\n }\n const params = {\n id,\n columns: apiRef.current.getAllColumns(),\n row\n };\n return params;\n }, [apiRef]);\n const getCellParamsForRow = React.useCallback((id, field, row, {\n cellMode,\n colDef,\n hasFocus,\n rowNode,\n tabIndex\n }) => {\n const rawValue = row[field];\n const value = colDef?.valueGetter ? colDef.valueGetter(rawValue, row, colDef, apiRef) : rawValue;\n const params = {\n id,\n field,\n row,\n rowNode,\n colDef,\n cellMode,\n hasFocus,\n tabIndex,\n value,\n formattedValue: value,\n isEditable: false,\n api: apiRef.current\n };\n if (colDef && colDef.valueFormatter) {\n params.formattedValue = colDef.valueFormatter(value, row, colDef, apiRef);\n }\n params.isEditable = colDef && apiRef.current.isCellEditable(params);\n return params;\n }, [apiRef]);\n const getCellParams = React.useCallback((id, field) => {\n const row = apiRef.current.getRow(id);\n const rowNode = gridRowNodeSelector(apiRef, id);\n if (!row || !rowNode) {\n throw new MissingRowIdError(`No row with id #${id} found`);\n }\n const cellFocus = gridFocusCellSelector(apiRef);\n const cellTabIndex = gridTabIndexCellSelector(apiRef);\n const cellMode = apiRef.current.getCellMode(id, field);\n return apiRef.current.getCellParamsForRow(id, field, row, {\n colDef: props.listView && props.listViewColumn?.field === field ? gridListColumnSelector(apiRef) : apiRef.current.getColumn(field),\n rowNode,\n hasFocus: cellFocus !== null && cellFocus.field === field && cellFocus.id === id,\n tabIndex: cellTabIndex && cellTabIndex.field === field && cellTabIndex.id === id ? 0 : -1,\n cellMode\n });\n }, [apiRef, props.listView, props.listViewColumn?.field]);\n const getCellValue = React.useCallback((id, field) => {\n const colDef = apiRef.current.getColumn(field);\n const row = apiRef.current.getRow(id);\n if (!row) {\n throw new MissingRowIdError(`No row with id #${id} found`);\n }\n if (!colDef || !colDef.valueGetter) {\n return row[field];\n }\n return colDef.valueGetter(row[colDef.field], row, colDef, apiRef);\n }, [apiRef]);\n const getRowValue = React.useCallback((row, colDef) => getRowValueFn(row, colDef, apiRef), [apiRef]);\n const getRowFormattedValue = React.useCallback((row, colDef) => {\n const value = getRowValue(row, colDef);\n if (!colDef || !colDef.valueFormatter) {\n return value;\n }\n return colDef.valueFormatter(value, row, colDef, apiRef);\n }, [apiRef, getRowValue]);\n const getColumnHeaderElement = React.useCallback(field => {\n if (!apiRef.current.rootElementRef.current) {\n return null;\n }\n return getGridColumnHeaderElement(apiRef.current.rootElementRef.current, field);\n }, [apiRef]);\n const getRowElement = React.useCallback(id => {\n if (!apiRef.current.rootElementRef.current) {\n return null;\n }\n return getGridRowElement(apiRef.current.rootElementRef.current, id);\n }, [apiRef]);\n const getCellElement = React.useCallback((id, field) => {\n if (!apiRef.current.rootElementRef.current) {\n return null;\n }\n return getGridCellElement(apiRef.current.rootElementRef.current, {\n id,\n field\n });\n }, [apiRef]);\n const paramsApi = {\n getCellValue,\n getCellParams,\n getCellElement,\n getRowValue,\n getRowFormattedValue,\n getRowParams,\n getRowElement,\n getColumnHeaderParams,\n getColumnHeaderElement\n };\n const paramsPrivateApi = {\n getCellParamsForRow\n };\n useGridApiMethod(apiRef, paramsApi, 'public');\n useGridApiMethod(apiRef, paramsPrivateApi, 'private');\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { GridSignature } from \"../../../constants/signature.js\";\nimport { useGridEvent } from \"../../utils/useGridEvent.js\";\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { useGridLogger } from \"../../utils/useGridLogger.js\";\nimport { useGridSelector } from \"../../utils/useGridSelector.js\";\nimport { gridRowsLookupSelector, gridRowMaximumTreeDepthSelector, gridRowNodeSelector, gridRowTreeSelector } from \"../rows/gridRowsSelector.js\";\nimport { gridRowSelectionManagerSelector, gridRowSelectionStateSelector, gridRowSelectionCountSelector, gridRowSelectionIdsSelector } from \"./gridRowSelectionSelector.js\";\nimport { gridFocusCellSelector } from \"../focus/gridFocusStateSelector.js\";\nimport { gridExpandedSortedRowIdsSelector, gridFilteredRowsLookupSelector, gridFilterModelSelector, gridQuickFilterValuesSelector } from \"../filter/gridFilterSelector.js\";\nimport { GRID_CHECKBOX_SELECTION_COL_DEF, GRID_ACTIONS_COLUMN_TYPE } from \"../../../colDef/index.js\";\nimport { GridCellModes } from \"../../../models/gridEditRowModel.js\";\nimport { isKeyboardEvent, isNavigationKey } from \"../../../utils/keyboardUtils.js\";\nimport { getVisibleRows } from \"../../utils/useGridVisibleRows.js\";\nimport { GRID_DETAIL_PANEL_TOGGLE_FIELD } from \"../../../internals/constants.js\";\nimport { gridClasses } from \"../../../constants/gridClasses.js\";\nimport { isEventTargetInPortal } from \"../../../utils/domUtils.js\";\nimport { isMultipleRowSelectionEnabled, findRowsToSelect, findRowsToDeselect } from \"./utils.js\";\nimport { createRowSelectionManager } from \"../../../models/gridRowSelectionManager.js\";\nimport { gridPaginatedVisibleSortedGridRowIdsSelector } from \"../pagination/index.js\";\nconst emptyModel = {\n type: 'include',\n ids: new Set()\n};\nexport const rowSelectionStateInitializer = (state, props) => _extends({}, state, {\n rowSelection: props.rowSelection ? props.rowSelectionModel ?? emptyModel : emptyModel\n});\n\n/**\n * @requires useGridRows (state, method) - can be after\n * @requires useGridParamsApi (method) - can be after\n * @requires useGridFocus (state) - can be after\n * @requires useGridKeyboardNavigation (`cellKeyDown` event must first be consumed by it)\n */\nexport const useGridRowSelection = (apiRef, props) => {\n const logger = useGridLogger(apiRef, 'useGridSelection');\n const runIfRowSelectionIsEnabled = React.useCallback(callback => (...args) => {\n if (props.rowSelection) {\n callback(...args);\n }\n }, [props.rowSelection]);\n const applyAutoSelection = props.signature !== GridSignature.DataGrid && (props.rowSelectionPropagation?.parents || props.rowSelectionPropagation?.descendants);\n const propRowSelectionModel = React.useMemo(() => {\n return props.rowSelectionModel;\n }, [props.rowSelectionModel]);\n const lastRowToggled = React.useRef(null);\n apiRef.current.registerControlState({\n stateId: 'rowSelection',\n propModel: propRowSelectionModel,\n propOnChange: props.onRowSelectionModelChange,\n stateSelector: gridRowSelectionStateSelector,\n changeEvent: 'rowSelectionChange'\n });\n const {\n checkboxSelection,\n disableRowSelectionOnClick,\n isRowSelectable: propIsRowSelectable\n } = props;\n const canHaveMultipleSelection = isMultipleRowSelectionEnabled(props);\n const tree = useGridSelector(apiRef, gridRowTreeSelector);\n const isNestedData = useGridSelector(apiRef, gridRowMaximumTreeDepthSelector) > 1;\n const expandMouseRowRangeSelection = React.useCallback(id => {\n let endId = id;\n const startId = lastRowToggled.current ?? id;\n const isSelected = apiRef.current.isRowSelected(id);\n if (isSelected) {\n const visibleRowIds = gridExpandedSortedRowIdsSelector(apiRef);\n const startIndex = visibleRowIds.findIndex(rowId => rowId === startId);\n const endIndex = visibleRowIds.findIndex(rowId => rowId === endId);\n if (startIndex === endIndex) {\n return;\n }\n if (startIndex > endIndex) {\n endId = visibleRowIds[endIndex + 1];\n } else {\n endId = visibleRowIds[endIndex - 1];\n }\n }\n lastRowToggled.current = id;\n apiRef.current.selectRowRange({\n startId,\n endId\n }, !isSelected);\n }, [apiRef]);\n const getRowsToBeSelected = useEventCallback(() => {\n const rowsToBeSelected = props.pagination && props.checkboxSelectionVisibleOnly && props.paginationMode === 'client' ? gridPaginatedVisibleSortedGridRowIdsSelector(apiRef) : gridExpandedSortedRowIdsSelector(apiRef);\n return rowsToBeSelected;\n });\n\n /*\n * API METHODS\n */\n const setRowSelectionModel = React.useCallback(model => {\n if (props.signature === GridSignature.DataGrid && !canHaveMultipleSelection && (model.type !== 'include' || model.ids.size > 1)) {\n throw new Error(['MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.', 'You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection.'].join('\\n'));\n }\n const currentModel = gridRowSelectionStateSelector(apiRef);\n if (currentModel !== model) {\n logger.debug(`Setting selection model`);\n apiRef.current.setState(state => _extends({}, state, {\n rowSelection: props.rowSelection ? model : emptyModel\n }));\n }\n }, [apiRef, logger, props.rowSelection, props.signature, canHaveMultipleSelection]);\n const isRowSelected = React.useCallback(id => {\n const selectionManager = gridRowSelectionManagerSelector(apiRef);\n return selectionManager.has(id);\n }, [apiRef]);\n const isRowSelectable = React.useCallback(id => {\n if (props.rowSelection === false) {\n return false;\n }\n if (propIsRowSelectable && !propIsRowSelectable(apiRef.current.getRowParams(id))) {\n return false;\n }\n const rowNode = gridRowNodeSelector(apiRef, id);\n if (rowNode?.type === 'footer' || rowNode?.type === 'pinnedRow') {\n return false;\n }\n return true;\n }, [apiRef, props.rowSelection, propIsRowSelectable]);\n const getSelectedRows = React.useCallback(() => gridRowSelectionIdsSelector(apiRef), [apiRef]);\n const selectRow = React.useCallback((id, isSelected = true, resetSelection = false) => {\n if (!apiRef.current.isRowSelectable(id)) {\n return;\n }\n lastRowToggled.current = id;\n if (resetSelection) {\n logger.debug(`Setting selection for row ${id}`);\n const newSelectionModel = {\n type: 'include',\n ids: new Set()\n };\n const addRow = rowId => {\n newSelectionModel.ids.add(rowId);\n };\n if (isSelected) {\n addRow(id);\n if (applyAutoSelection) {\n findRowsToSelect(apiRef, tree, id, props.rowSelectionPropagation?.descendants ?? false, props.rowSelectionPropagation?.parents ?? false, addRow);\n }\n }\n apiRef.current.setRowSelectionModel(newSelectionModel);\n } else {\n logger.debug(`Toggling selection for row ${id}`);\n const selectionModel = gridRowSelectionStateSelector(apiRef);\n const newSelectionModel = {\n type: selectionModel.type,\n ids: new Set(selectionModel.ids)\n };\n const selectionManager = createRowSelectionManager(newSelectionModel);\n selectionManager.unselect(id);\n const addRow = rowId => {\n selectionManager.select(rowId);\n };\n const removeRow = rowId => {\n selectionManager.unselect(rowId);\n };\n if (isSelected) {\n addRow(id);\n if (applyAutoSelection) {\n findRowsToSelect(apiRef, tree, id, props.rowSelectionPropagation?.descendants ?? false, props.rowSelectionPropagation?.parents ?? false, addRow);\n }\n } else if (applyAutoSelection) {\n findRowsToDeselect(apiRef, tree, id, props.rowSelectionPropagation?.descendants ?? false, props.rowSelectionPropagation?.parents ?? false, removeRow);\n }\n const isSelectionValid = newSelectionModel.type === 'include' && newSelectionModel.ids.size < 2 || canHaveMultipleSelection;\n if (isSelectionValid) {\n apiRef.current.setRowSelectionModel(newSelectionModel);\n }\n }\n }, [apiRef, logger, applyAutoSelection, tree, props.rowSelectionPropagation?.descendants, props.rowSelectionPropagation?.parents, canHaveMultipleSelection]);\n const selectRows = React.useCallback((ids, isSelected = true, resetSelection = false) => {\n logger.debug(`Setting selection for several rows`);\n if (props.rowSelection === false) {\n return;\n }\n const selectableIds = new Set();\n for (let i = 0; i < ids.length; i += 1) {\n const id = ids[i];\n if (apiRef.current.isRowSelectable(id)) {\n selectableIds.add(id);\n }\n }\n const currentSelectionModel = gridRowSelectionStateSelector(apiRef);\n let newSelectionModel;\n if (resetSelection) {\n newSelectionModel = {\n type: 'include',\n ids: selectableIds\n };\n if (isSelected) {\n const selectionManager = createRowSelectionManager(newSelectionModel);\n if (applyAutoSelection) {\n const addRow = rowId => {\n selectionManager.select(rowId);\n };\n for (const id of selectableIds) {\n findRowsToSelect(apiRef, tree, id, props.rowSelectionPropagation?.descendants ?? false, props.rowSelectionPropagation?.parents ?? false, addRow);\n }\n }\n } else {\n newSelectionModel.ids = new Set();\n }\n if (currentSelectionModel.type === newSelectionModel.type && newSelectionModel.ids.size === currentSelectionModel.ids.size && Array.from(newSelectionModel.ids).every(id => currentSelectionModel.ids.has(id))) {\n return;\n }\n } else {\n newSelectionModel = {\n type: currentSelectionModel.type,\n ids: new Set(currentSelectionModel.ids)\n };\n const selectionManager = createRowSelectionManager(newSelectionModel);\n const addRow = rowId => {\n selectionManager.select(rowId);\n };\n const removeRow = rowId => {\n selectionManager.unselect(rowId);\n };\n for (const id of selectableIds) {\n if (isSelected) {\n selectionManager.select(id);\n if (applyAutoSelection) {\n findRowsToSelect(apiRef, tree, id, props.rowSelectionPropagation?.descendants ?? false, props.rowSelectionPropagation?.parents ?? false, addRow);\n }\n } else {\n removeRow(id);\n if (applyAutoSelection) {\n findRowsToDeselect(apiRef, tree, id, props.rowSelectionPropagation?.descendants ?? false, props.rowSelectionPropagation?.parents ?? false, removeRow);\n }\n }\n }\n }\n const isSelectionValid = newSelectionModel.type === 'include' && newSelectionModel.ids.size < 2 || canHaveMultipleSelection;\n if (isSelectionValid) {\n apiRef.current.setRowSelectionModel(newSelectionModel);\n }\n }, [logger, applyAutoSelection, canHaveMultipleSelection, apiRef, tree, props.rowSelectionPropagation?.descendants, props.rowSelectionPropagation?.parents, props.rowSelection]);\n const getPropagatedRowSelectionModel = React.useCallback(inputSelectionModel => {\n if (!isNestedData || !applyAutoSelection || inputSelectionModel.ids.size === 0 && inputSelectionModel.type === 'include') {\n return inputSelectionModel;\n }\n const propagatedSelectionModel = {\n type: inputSelectionModel.type,\n ids: new Set(inputSelectionModel.ids)\n };\n const selectionManager = createRowSelectionManager(propagatedSelectionModel);\n const addRow = rowId => {\n selectionManager.select(rowId);\n };\n for (const id of inputSelectionModel.ids) {\n findRowsToSelect(apiRef, tree, id, props.rowSelectionPropagation?.descendants ?? false, props.rowSelectionPropagation?.parents ?? false, addRow, selectionManager);\n }\n return propagatedSelectionModel;\n }, [apiRef, tree, props.rowSelectionPropagation?.descendants, props.rowSelectionPropagation?.parents, isNestedData, applyAutoSelection]);\n const selectRowRange = React.useCallback(({\n startId,\n endId\n }, isSelected = true, resetSelection = false) => {\n if (!apiRef.current.getRow(startId) || !apiRef.current.getRow(endId)) {\n return;\n }\n logger.debug(`Expanding selection from row ${startId} to row ${endId}`);\n\n // Using rows from all pages allow to select a range across several pages\n const allPagesRowIds = gridExpandedSortedRowIdsSelector(apiRef);\n const startIndex = allPagesRowIds.indexOf(startId);\n const endIndex = allPagesRowIds.indexOf(endId);\n const [start, end] = startIndex > endIndex ? [endIndex, startIndex] : [startIndex, endIndex];\n const rowsBetweenStartAndEnd = allPagesRowIds.slice(start, end + 1);\n apiRef.current.selectRows(rowsBetweenStartAndEnd, isSelected, resetSelection);\n }, [apiRef, logger]);\n const selectionPublicApi = {\n selectRow,\n setRowSelectionModel,\n getSelectedRows,\n isRowSelected,\n isRowSelectable\n };\n const selectionPrivateApi = {\n selectRows,\n selectRowRange,\n getPropagatedRowSelectionModel\n };\n useGridApiMethod(apiRef, selectionPublicApi, 'public');\n useGridApiMethod(apiRef, selectionPrivateApi, props.signature === GridSignature.DataGrid ? 'private' : 'public');\n\n /*\n * EVENTS\n */\n const isFirstRender = React.useRef(true);\n const removeOutdatedSelection = React.useCallback((sortModelUpdated = false) => {\n if (isFirstRender.current) {\n return;\n }\n const currentSelection = gridRowSelectionStateSelector(apiRef);\n const rowsLookup = gridRowsLookupSelector(apiRef);\n const filteredRowsLookup = gridFilteredRowsLookupSelector(apiRef);\n const isNonExistent = id => {\n if (props.filterMode === 'server') {\n return !rowsLookup[id];\n }\n return !rowsLookup[id] || filteredRowsLookup[id] === false;\n };\n const newSelectionModel = {\n type: currentSelection.type,\n ids: new Set(currentSelection.ids)\n };\n const selectionManager = createRowSelectionManager(newSelectionModel);\n let hasChanged = false;\n for (const id of currentSelection.ids) {\n if (isNonExistent(id)) {\n if (props.keepNonExistentRowsSelected) {\n continue;\n }\n selectionManager.unselect(id);\n hasChanged = true;\n continue;\n }\n if (!props.rowSelectionPropagation?.parents) {\n continue;\n }\n const node = tree[id];\n if (node?.type === 'group') {\n const isAutoGenerated = node.isAutoGenerated;\n if (isAutoGenerated) {\n selectionManager.unselect(id);\n hasChanged = true;\n continue;\n }\n // Keep previously selected tree data parents selected if all their children are filtered out\n if (!node.children.every(childId => filteredRowsLookup[childId] === false)) {\n selectionManager.unselect(id);\n hasChanged = true;\n }\n }\n }\n\n // For nested data, on row tree updation (filtering, adding rows, etc.) when the selection is\n // not empty, we need to re-run scanning of the tree to propagate the selection changes\n // Example: A parent whose de-selected children are filtered out should now be selected\n const shouldReapplyPropagation = isNestedData && props.rowSelectionPropagation?.parents && (newSelectionModel.ids.size > 0 ||\n // In case of exclude selection, newSelectionModel.ids.size === 0 means all rows are selected\n newSelectionModel.type === 'exclude');\n if (hasChanged || shouldReapplyPropagation && !sortModelUpdated) {\n if (shouldReapplyPropagation) {\n if (newSelectionModel.type === 'exclude') {\n const unfilteredSelectedRowIds = getRowsToBeSelected();\n const selectedRowIds = [];\n for (let i = 0; i < unfilteredSelectedRowIds.length; i += 1) {\n const rowId = unfilteredSelectedRowIds[i];\n if ((props.keepNonExistentRowsSelected || !isNonExistent(rowId)) && selectionManager.has(rowId)) {\n selectedRowIds.push(rowId);\n }\n }\n apiRef.current.selectRows(selectedRowIds, true, true);\n } else {\n apiRef.current.selectRows(Array.from(newSelectionModel.ids), true, true);\n }\n } else {\n apiRef.current.setRowSelectionModel(newSelectionModel);\n }\n }\n }, [apiRef, isNestedData, props.rowSelectionPropagation?.parents, props.keepNonExistentRowsSelected, props.filterMode, tree, getRowsToBeSelected]);\n const handleSingleRowSelection = React.useCallback((id, event) => {\n const hasCtrlKey = event.metaKey || event.ctrlKey;\n\n // multiple selection is only allowed if:\n // - it is a checkboxSelection\n // - it is a keyboard selection\n // - Ctrl is pressed\n\n const isMultipleSelectionDisabled = !checkboxSelection && !hasCtrlKey && !isKeyboardEvent(event);\n const resetSelection = !canHaveMultipleSelection || isMultipleSelectionDisabled;\n const isSelected = apiRef.current.isRowSelected(id);\n const selectedRowsCount = gridRowSelectionCountSelector(apiRef);\n\n // Clicking on a row should toggle the selection except when a range of rows is already selected and the selection should reset\n // In that case, we want to keep the current row selected (https://github.com/mui/mui-x/pull/15509#discussion_r1878082687)\n const shouldStaySelected = selectedRowsCount > 1 && resetSelection;\n const newSelectionState = shouldStaySelected || !isSelected;\n apiRef.current.selectRow(id, newSelectionState, resetSelection);\n }, [apiRef, canHaveMultipleSelection, checkboxSelection]);\n const handleRowClick = React.useCallback((params, event) => {\n if (disableRowSelectionOnClick) {\n return;\n }\n const field = event.target.closest(`.${gridClasses.cell}`)?.getAttribute('data-field');\n if (field === GRID_CHECKBOX_SELECTION_COL_DEF.field) {\n // click on checkbox should not trigger row selection\n return;\n }\n if (field === GRID_DETAIL_PANEL_TOGGLE_FIELD) {\n // click to open the detail panel should not select the row\n return;\n }\n if (field) {\n const column = apiRef.current.getColumn(field);\n if (column?.type === GRID_ACTIONS_COLUMN_TYPE) {\n return;\n }\n }\n const rowNode = gridRowNodeSelector(apiRef, params.id);\n if (rowNode.type === 'pinnedRow') {\n return;\n }\n if (event.shiftKey && canHaveMultipleSelection) {\n expandMouseRowRangeSelection(params.id);\n } else {\n handleSingleRowSelection(params.id, event);\n }\n }, [disableRowSelectionOnClick, canHaveMultipleSelection, apiRef, expandMouseRowRangeSelection, handleSingleRowSelection]);\n const preventSelectionOnShift = React.useCallback((params, event) => {\n if (canHaveMultipleSelection && event.shiftKey) {\n window.getSelection()?.removeAllRanges();\n }\n }, [canHaveMultipleSelection]);\n const handleRowSelectionCheckboxChange = React.useCallback((params, event) => {\n if (canHaveMultipleSelection && event.nativeEvent.shiftKey) {\n expandMouseRowRangeSelection(params.id);\n } else {\n apiRef.current.selectRow(params.id, params.value, !canHaveMultipleSelection);\n }\n }, [apiRef, expandMouseRowRangeSelection, canHaveMultipleSelection]);\n const toggleAllRows = React.useCallback(value => {\n const filterModel = gridFilterModelSelector(apiRef);\n const quickFilterModel = gridQuickFilterValuesSelector(apiRef);\n const hasFilters = filterModel.items.length > 0 || (quickFilterModel?.length || 0) > 0;\n if (!props.isRowSelectable && !props.checkboxSelectionVisibleOnly && applyAutoSelection && !hasFilters) {\n apiRef.current.setRowSelectionModel({\n type: value ? 'exclude' : 'include',\n ids: new Set()\n });\n } else {\n apiRef.current.selectRows(getRowsToBeSelected(), value);\n }\n }, [apiRef, applyAutoSelection, getRowsToBeSelected, props.checkboxSelectionVisibleOnly, props.isRowSelectable]);\n const handleHeaderSelectionCheckboxChange = React.useCallback(params => {\n toggleAllRows(params.value);\n }, [toggleAllRows]);\n const handleCellKeyDown = React.useCallback((params, event) => {\n // Get the most recent cell mode because it may have been changed by another listener\n if (apiRef.current.getCellMode(params.id, params.field) === GridCellModes.Edit) {\n return;\n }\n\n // Ignore portal\n // Do not apply shortcuts if the focus is not on the cell root component\n if (isEventTargetInPortal(event)) {\n return;\n }\n if (isNavigationKey(event.key) && event.shiftKey) {\n // The cell that has focus after the keyboard navigation\n const focusCell = gridFocusCellSelector(apiRef);\n if (focusCell && focusCell.id !== params.id) {\n event.preventDefault();\n const isNextRowSelected = apiRef.current.isRowSelected(focusCell.id);\n if (!canHaveMultipleSelection) {\n apiRef.current.selectRow(focusCell.id, !isNextRowSelected, true);\n return;\n }\n const newRowIndex = apiRef.current.getRowIndexRelativeToVisibleRows(focusCell.id);\n const previousRowIndex = apiRef.current.getRowIndexRelativeToVisibleRows(params.id);\n let start;\n let end;\n if (newRowIndex > previousRowIndex) {\n if (isNextRowSelected) {\n // We are navigating to the bottom of the page and adding selected rows\n start = previousRowIndex;\n end = newRowIndex - 1;\n } else {\n // We are navigating to the bottom of the page and removing selected rows\n start = previousRowIndex;\n end = newRowIndex;\n }\n } else {\n // eslint-disable-next-line no-lonely-if\n if (isNextRowSelected) {\n // We are navigating to the top of the page and removing selected rows\n start = newRowIndex + 1;\n end = previousRowIndex;\n } else {\n // We are navigating to the top of the page and adding selected rows\n start = newRowIndex;\n end = previousRowIndex;\n }\n }\n const visibleRows = getVisibleRows(apiRef);\n const rowsBetweenStartAndEnd = [];\n for (let i = start; i <= end; i += 1) {\n rowsBetweenStartAndEnd.push(visibleRows.rows[i].id);\n }\n apiRef.current.selectRows(rowsBetweenStartAndEnd, !isNextRowSelected);\n return;\n }\n }\n if (event.key === ' ' && event.shiftKey) {\n event.preventDefault();\n handleSingleRowSelection(params.id, event);\n return;\n }\n if (String.fromCharCode(event.keyCode) === 'A' && (event.ctrlKey || event.metaKey)) {\n event.preventDefault();\n toggleAllRows(true);\n }\n }, [apiRef, canHaveMultipleSelection, handleSingleRowSelection, toggleAllRows]);\n const syncControlledState = useEventCallback(() => {\n if (!props.rowSelection) {\n apiRef.current.setRowSelectionModel(emptyModel);\n return;\n }\n if (propRowSelectionModel === undefined) {\n return;\n }\n if (!applyAutoSelection || !isNestedData || propRowSelectionModel.type === 'include' && propRowSelectionModel.ids.size === 0) {\n apiRef.current.setRowSelectionModel(propRowSelectionModel);\n return;\n }\n const newSelectionModel = apiRef.current.getPropagatedRowSelectionModel(propRowSelectionModel);\n if (newSelectionModel.type !== propRowSelectionModel.type || newSelectionModel.ids.size !== propRowSelectionModel.ids.size || !Array.from(propRowSelectionModel.ids).every(id => newSelectionModel.ids.has(id))) {\n apiRef.current.setRowSelectionModel(newSelectionModel);\n return;\n }\n apiRef.current.setRowSelectionModel(propRowSelectionModel);\n });\n useGridEvent(apiRef, 'sortedRowsSet', runIfRowSelectionIsEnabled(() => removeOutdatedSelection(true)));\n useGridEvent(apiRef, 'filteredRowsSet', runIfRowSelectionIsEnabled(() => removeOutdatedSelection()));\n useGridEvent(apiRef, 'rowClick', runIfRowSelectionIsEnabled(handleRowClick));\n useGridEvent(apiRef, 'rowSelectionCheckboxChange', runIfRowSelectionIsEnabled(handleRowSelectionCheckboxChange));\n useGridEvent(apiRef, 'headerSelectionCheckboxChange', handleHeaderSelectionCheckboxChange);\n useGridEvent(apiRef, 'cellMouseDown', runIfRowSelectionIsEnabled(preventSelectionOnShift));\n useGridEvent(apiRef, 'cellKeyDown', runIfRowSelectionIsEnabled(handleCellKeyDown));\n\n /*\n * EFFECTS\n */\n React.useEffect(() => {\n syncControlledState();\n }, [apiRef, propRowSelectionModel, props.rowSelection, syncControlledState]);\n const isStateControlled = propRowSelectionModel != null;\n React.useEffect(() => {\n if (isStateControlled || !props.rowSelection || typeof isRowSelectable !== 'function') {\n return;\n }\n\n // props.isRowSelectable changed\n const currentSelection = gridRowSelectionStateSelector(apiRef);\n if (currentSelection.type !== 'include') {\n return;\n }\n const selectableIds = new Set();\n for (const id of currentSelection.ids) {\n if (isRowSelectable(id)) {\n selectableIds.add(id);\n }\n }\n if (selectableIds.size < currentSelection.ids.size) {\n apiRef.current.setRowSelectionModel({\n type: currentSelection.type,\n ids: selectableIds\n });\n }\n }, [apiRef, isRowSelectable, isStateControlled, props.rowSelection]);\n React.useEffect(() => {\n if (!props.rowSelection || isStateControlled) {\n return;\n }\n const currentSelection = gridRowSelectionStateSelector(apiRef);\n if (!canHaveMultipleSelection && (currentSelection.type === 'include' && currentSelection.ids.size > 1 || currentSelection.type === 'exclude')) {\n // See https://github.com/mui/mui-x/issues/8455\n apiRef.current.setRowSelectionModel(emptyModel);\n }\n }, [apiRef, canHaveMultipleSelection, checkboxSelection, isStateControlled, props.rowSelection]);\n React.useEffect(() => {\n runIfRowSelectionIsEnabled(removeOutdatedSelection);\n }, [removeOutdatedSelection, runIfRowSelectionIsEnabled]);\n React.useEffect(() => {\n if (isFirstRender.current) {\n isFirstRender.current = false;\n }\n }, []);\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useGridRegisterPipeProcessor } from \"../../core/pipeProcessing/index.js\";\nimport { getDataGridUtilityClass } from \"../../../constants/index.js\";\nimport { GRID_CHECKBOX_SELECTION_COL_DEF, GRID_CHECKBOX_SELECTION_FIELD } from \"../../../colDef/index.js\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n return React.useMemo(() => {\n const slots = {\n cellCheckbox: ['cellCheckbox'],\n columnHeaderCheckbox: ['columnHeaderCheckbox']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n }, [classes]);\n};\nexport const useGridRowSelectionPreProcessors = (apiRef, props) => {\n const ownerState = {\n classes: props.classes\n };\n const classes = useUtilityClasses(ownerState);\n const updateSelectionColumn = React.useCallback(columnsState => {\n const selectionColumn = _extends({}, GRID_CHECKBOX_SELECTION_COL_DEF, {\n cellClassName: classes.cellCheckbox,\n headerClassName: classes.columnHeaderCheckbox,\n headerName: apiRef.current.getLocaleText('checkboxSelectionHeaderName')\n });\n const shouldHaveSelectionColumn = props.checkboxSelection;\n const haveSelectionColumn = columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] != null;\n if (shouldHaveSelectionColumn && !haveSelectionColumn) {\n columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] = selectionColumn;\n columnsState.orderedFields = [GRID_CHECKBOX_SELECTION_FIELD, ...columnsState.orderedFields];\n } else if (!shouldHaveSelectionColumn && haveSelectionColumn) {\n delete columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD];\n columnsState.orderedFields = columnsState.orderedFields.filter(field => field !== GRID_CHECKBOX_SELECTION_FIELD);\n } else if (shouldHaveSelectionColumn && haveSelectionColumn) {\n columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] = _extends({}, selectionColumn, columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD]);\n }\n return columnsState;\n }, [apiRef, classes, props.checkboxSelection]);\n useGridRegisterPipeProcessor(apiRef, 'hydrateColumns', updateSelectionColumn);\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';\nimport { useGridEvent } from \"../../utils/useGridEvent.js\";\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { useGridLogger } from \"../../utils/useGridLogger.js\";\nimport { gridColumnLookupSelector } from \"../columns/gridColumnsSelector.js\";\nimport { gridSortedRowEntriesSelector, gridSortedRowIdsSelector, gridSortModelSelector } from \"./gridSortingSelector.js\";\nimport { GRID_ROOT_GROUP_ID, gridRowTreeSelector } from \"../rows/index.js\";\nimport { useFirstRender } from \"../../utils/useFirstRender.js\";\nimport { useGridRegisterStrategyProcessor, GRID_DEFAULT_STRATEGY } from \"../../core/strategyProcessing/index.js\";\nimport { buildAggregatedSortingApplier, mergeStateWithSortModel, getNextGridSortDirection, sanitizeSortModel } from \"./gridSortingUtils.js\";\nimport { useGridRegisterPipeProcessor } from \"../../core/pipeProcessing/index.js\";\nimport { getTreeNodeDescendants } from \"../rows/gridRowsUtils.js\";\nexport const sortingStateInitializer = (state, props) => {\n const sortModel = props.sortModel ?? props.initialState?.sorting?.sortModel ?? [];\n return _extends({}, state, {\n sorting: {\n sortModel: sanitizeSortModel(sortModel, props.disableMultipleColumnsSorting),\n sortedRows: []\n }\n });\n};\n\n/**\n * @requires useGridRows (event)\n * @requires useGridColumns (event)\n */\nexport const useGridSorting = (apiRef, props) => {\n const logger = useGridLogger(apiRef, 'useGridSorting');\n apiRef.current.registerControlState({\n stateId: 'sortModel',\n propModel: props.sortModel,\n propOnChange: props.onSortModelChange,\n stateSelector: gridSortModelSelector,\n changeEvent: 'sortModelChange'\n });\n const upsertSortModel = React.useCallback((field, sortItem) => {\n const sortModel = gridSortModelSelector(apiRef);\n const existingIdx = sortModel.findIndex(c => c.field === field);\n let newSortModel = [...sortModel];\n if (existingIdx > -1) {\n if (sortItem?.sort == null) {\n newSortModel.splice(existingIdx, 1);\n } else {\n newSortModel.splice(existingIdx, 1, sortItem);\n }\n } else {\n newSortModel = [...sortModel, sortItem];\n }\n return newSortModel;\n }, [apiRef]);\n const createSortItem = React.useCallback((col, directionOverride) => {\n const sortModel = gridSortModelSelector(apiRef);\n const existing = sortModel.find(c => c.field === col.field);\n if (existing) {\n const nextSort = directionOverride === undefined ? getNextGridSortDirection(col.sortingOrder ?? props.sortingOrder, existing.sort) : directionOverride;\n return nextSort === undefined ? undefined : _extends({}, existing, {\n sort: nextSort\n });\n }\n return {\n field: col.field,\n sort: directionOverride === undefined ? getNextGridSortDirection(col.sortingOrder ?? props.sortingOrder) : directionOverride\n };\n }, [apiRef, props.sortingOrder]);\n const addColumnMenuItem = React.useCallback((columnMenuItems, colDef) => {\n if (colDef == null || colDef.sortable === false || props.disableColumnSorting) {\n return columnMenuItems;\n }\n const sortingOrder = colDef.sortingOrder || props.sortingOrder;\n if (sortingOrder.some(item => !!item)) {\n return [...columnMenuItems, 'columnMenuSortItem'];\n }\n return columnMenuItems;\n }, [props.sortingOrder, props.disableColumnSorting]);\n\n /**\n * API METHODS\n */\n const applySorting = React.useCallback(() => {\n apiRef.current.setState(state => {\n if (props.sortingMode === 'server') {\n logger.debug('Skipping sorting rows as sortingMode = server');\n return _extends({}, state, {\n sorting: _extends({}, state.sorting, {\n sortedRows: getTreeNodeDescendants(gridRowTreeSelector(apiRef), GRID_ROOT_GROUP_ID, false)\n })\n });\n }\n const sortModel = gridSortModelSelector(apiRef);\n const sortRowList = buildAggregatedSortingApplier(sortModel, apiRef);\n const sortedRows = apiRef.current.applyStrategyProcessor('sorting', {\n sortRowList\n });\n return _extends({}, state, {\n sorting: _extends({}, state.sorting, {\n sortedRows\n })\n });\n });\n apiRef.current.publishEvent('sortedRowsSet');\n }, [apiRef, logger, props.sortingMode]);\n const setSortModel = React.useCallback(model => {\n const currentModel = gridSortModelSelector(apiRef);\n if (currentModel !== model) {\n logger.debug(`Setting sort model`);\n apiRef.current.setState(mergeStateWithSortModel(model, props.disableMultipleColumnsSorting));\n apiRef.current.applySorting();\n }\n }, [apiRef, logger, props.disableMultipleColumnsSorting]);\n const sortColumn = React.useCallback((field, direction, allowMultipleSorting) => {\n const column = apiRef.current.getColumn(field);\n const sortItem = createSortItem(column, direction);\n let sortModel;\n if (!allowMultipleSorting || props.disableMultipleColumnsSorting) {\n sortModel = sortItem?.sort == null ? [] : [sortItem];\n } else {\n sortModel = upsertSortModel(column.field, sortItem);\n }\n apiRef.current.setSortModel(sortModel);\n }, [apiRef, upsertSortModel, createSortItem, props.disableMultipleColumnsSorting]);\n const getSortModel = React.useCallback(() => gridSortModelSelector(apiRef), [apiRef]);\n const getSortedRows = React.useCallback(() => {\n const sortedRows = gridSortedRowEntriesSelector(apiRef);\n return sortedRows.map(row => row.model);\n }, [apiRef]);\n const getSortedRowIds = React.useCallback(() => gridSortedRowIdsSelector(apiRef), [apiRef]);\n const getRowIdFromRowIndex = React.useCallback(index => apiRef.current.getSortedRowIds()[index], [apiRef]);\n const sortApi = {\n getSortModel,\n getSortedRows,\n getSortedRowIds,\n getRowIdFromRowIndex,\n setSortModel,\n sortColumn,\n applySorting\n };\n useGridApiMethod(apiRef, sortApi, 'public');\n\n /**\n * PRE-PROCESSING\n */\n const stateExportPreProcessing = React.useCallback((prevState, context) => {\n const sortModelToExport = gridSortModelSelector(apiRef);\n const shouldExportSortModel =\n // Always export if the `exportOnlyDirtyModels` property is not activated\n !context.exportOnlyDirtyModels ||\n // Always export if the model is controlled\n props.sortModel != null ||\n // Always export if the model has been initialized\n props.initialState?.sorting?.sortModel != null ||\n // Export if the model is not empty\n sortModelToExport.length > 0;\n if (!shouldExportSortModel) {\n return prevState;\n }\n return _extends({}, prevState, {\n sorting: {\n sortModel: sortModelToExport\n }\n });\n }, [apiRef, props.sortModel, props.initialState?.sorting?.sortModel]);\n const stateRestorePreProcessing = React.useCallback((params, context) => {\n const sortModel = context.stateToRestore.sorting?.sortModel;\n if (sortModel == null) {\n return params;\n }\n apiRef.current.setState(mergeStateWithSortModel(sortModel, props.disableMultipleColumnsSorting));\n return _extends({}, params, {\n callbacks: [...params.callbacks, apiRef.current.applySorting]\n });\n }, [apiRef, props.disableMultipleColumnsSorting]);\n const flatSortingMethod = React.useCallback(params => {\n const rowTree = gridRowTreeSelector(apiRef);\n const rootGroupNode = rowTree[GRID_ROOT_GROUP_ID];\n const sortedChildren = params.sortRowList ? params.sortRowList(rootGroupNode.children.map(childId => rowTree[childId])) : [...rootGroupNode.children];\n if (rootGroupNode.footerId != null) {\n sortedChildren.push(rootGroupNode.footerId);\n }\n return sortedChildren;\n }, [apiRef]);\n useGridRegisterPipeProcessor(apiRef, 'exportState', stateExportPreProcessing);\n useGridRegisterPipeProcessor(apiRef, 'restoreState', stateRestorePreProcessing);\n useGridRegisterStrategyProcessor(apiRef, GRID_DEFAULT_STRATEGY, 'sorting', flatSortingMethod);\n\n /**\n * EVENTS\n */\n const handleColumnHeaderClick = React.useCallback(({\n field,\n colDef\n }, event) => {\n if (!colDef.sortable || props.disableColumnSorting) {\n return;\n }\n const allowMultipleSorting = event.shiftKey || event.metaKey || event.ctrlKey;\n sortColumn(field, undefined, allowMultipleSorting);\n }, [sortColumn, props.disableColumnSorting]);\n const handleColumnHeaderKeyDown = React.useCallback(({\n field,\n colDef\n }, event) => {\n if (!colDef.sortable || props.disableColumnSorting) {\n return;\n }\n // Ctrl + Enter opens the column menu\n if (event.key === 'Enter' && !event.ctrlKey && !event.metaKey) {\n sortColumn(field, undefined, event.shiftKey);\n }\n }, [sortColumn, props.disableColumnSorting]);\n const handleColumnsChange = React.useCallback(() => {\n // When the columns change we check that the sorted columns are still part of the dataset\n const sortModel = gridSortModelSelector(apiRef);\n const latestColumns = gridColumnLookupSelector(apiRef);\n if (sortModel.length > 0) {\n const newModel = sortModel.filter(sortItem => latestColumns[sortItem.field]);\n if (newModel.length < sortModel.length) {\n apiRef.current.setSortModel(newModel);\n }\n }\n }, [apiRef]);\n const handleStrategyProcessorChange = React.useCallback(methodName => {\n if (methodName === 'sorting') {\n apiRef.current.applySorting();\n }\n }, [apiRef]);\n useGridRegisterPipeProcessor(apiRef, 'columnMenu', addColumnMenuItem);\n useGridEvent(apiRef, 'columnHeaderClick', handleColumnHeaderClick);\n useGridEvent(apiRef, 'columnHeaderKeyDown', handleColumnHeaderKeyDown);\n useGridEvent(apiRef, 'rowsSet', apiRef.current.applySorting);\n useGridEvent(apiRef, 'columnsChange', handleColumnsChange);\n useGridEvent(apiRef, 'activeStrategyProcessorChange', handleStrategyProcessorChange);\n\n /**\n * 1ST RENDER\n */\n useFirstRender(() => {\n apiRef.current.applySorting();\n });\n\n /**\n * EFFECTS\n */\n useEnhancedEffect(() => {\n if (props.sortModel !== undefined) {\n apiRef.current.setSortModel(props.sortModel);\n }\n }, [apiRef, props.sortModel]);\n};","import * as React from 'react';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { useGridLogger } from \"../../utils/useGridLogger.js\";\nimport { gridColumnPositionsSelector, gridVisibleColumnDefinitionsSelector } from \"../columns/gridColumnsSelector.js\";\nimport { useGridSelector } from \"../../utils/useGridSelector.js\";\nimport { gridPageSelector, gridPageSizeSelector } from \"../pagination/gridPaginationSelector.js\";\nimport { gridRowCountSelector } from \"../rows/gridRowsSelector.js\";\nimport { gridRowsMetaSelector } from \"../rows/gridRowsMetaSelector.js\";\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { gridExpandedSortedRowEntriesSelector } from \"../filter/gridFilterSelector.js\";\nimport { gridDimensionsSelector } from \"../dimensions/index.js\";\nimport { gridListColumnSelector } from \"../listView/gridListViewSelectors.js\";\n\n// Logic copied from https://www.w3.org/TR/wai-aria-practices/examples/listbox/js/listbox.js\n// Similar to https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView\nfunction scrollIntoView(dimensions) {\n const {\n containerSize,\n scrollPosition,\n elementSize,\n elementOffset\n } = dimensions;\n const elementEnd = elementOffset + elementSize;\n // Always scroll to top when cell is higher than viewport to avoid scroll jump\n // See https://github.com/mui/mui-x/issues/4513 and https://github.com/mui/mui-x/issues/4514\n if (elementSize > containerSize) {\n return elementOffset;\n }\n if (elementEnd - containerSize > scrollPosition) {\n return elementEnd - containerSize;\n }\n if (elementOffset < scrollPosition) {\n return elementOffset;\n }\n return undefined;\n}\n\n/**\n * @requires useGridPagination (state) - can be after, async only\n * @requires useGridColumns (state) - can be after, async only\n * @requires useGridRows (state) - can be after, async only\n * @requires useGridRowsMeta (state) - can be after, async only\n * @requires useGridFilter (state)\n * @requires useGridColumnSpanning (method)\n */\nexport const useGridScroll = (apiRef, props) => {\n const isRtl = useRtl();\n const logger = useGridLogger(apiRef, 'useGridScroll');\n const colRef = apiRef.current.columnHeadersContainerRef;\n const virtualScrollerRef = apiRef.current.virtualScrollerRef;\n const visibleSortedRows = useGridSelector(apiRef, gridExpandedSortedRowEntriesSelector);\n const scrollToIndexes = React.useCallback(params => {\n const dimensions = gridDimensionsSelector(apiRef);\n const totalRowCount = gridRowCountSelector(apiRef);\n const visibleColumns = props.listView ? [gridListColumnSelector(apiRef)] : gridVisibleColumnDefinitionsSelector(apiRef);\n const scrollToHeader = params.rowIndex == null;\n if (!scrollToHeader && totalRowCount === 0 || visibleColumns.length === 0) {\n return false;\n }\n logger.debug(`Scrolling to cell at row ${params.rowIndex}, col: ${params.colIndex} `);\n let scrollCoordinates = {};\n if (params.colIndex !== undefined) {\n const columnPositions = gridColumnPositionsSelector(apiRef);\n let cellWidth;\n if (typeof params.rowIndex !== 'undefined') {\n const rowId = visibleSortedRows[params.rowIndex]?.id;\n const cellColSpanInfo = apiRef.current.unstable_getCellColSpanInfo(rowId, params.colIndex);\n if (cellColSpanInfo && !cellColSpanInfo.spannedByColSpan) {\n cellWidth = cellColSpanInfo.cellProps.width;\n }\n }\n if (typeof cellWidth === 'undefined') {\n cellWidth = visibleColumns[params.colIndex].computedWidth;\n }\n // When using RTL, `scrollLeft` becomes negative, so we must ensure that we only compare values.\n scrollCoordinates.left = scrollIntoView({\n containerSize: dimensions.viewportOuterSize.width,\n scrollPosition: Math.abs(virtualScrollerRef.current.scrollLeft),\n elementSize: cellWidth,\n elementOffset: columnPositions[params.colIndex]\n });\n }\n if (params.rowIndex !== undefined) {\n const rowsMeta = gridRowsMetaSelector(apiRef);\n const page = gridPageSelector(apiRef);\n const pageSize = gridPageSizeSelector(apiRef);\n const elementIndex = !props.pagination ? params.rowIndex : params.rowIndex - page * pageSize;\n const targetOffsetHeight = rowsMeta.positions[elementIndex + 1] ? rowsMeta.positions[elementIndex + 1] - rowsMeta.positions[elementIndex] : rowsMeta.currentPageTotalHeight - rowsMeta.positions[elementIndex];\n scrollCoordinates.top = scrollIntoView({\n containerSize: dimensions.viewportInnerSize.height,\n scrollPosition: virtualScrollerRef.current.scrollTop,\n elementSize: targetOffsetHeight,\n elementOffset: rowsMeta.positions[elementIndex]\n });\n }\n scrollCoordinates = apiRef.current.unstable_applyPipeProcessors('scrollToIndexes', scrollCoordinates, params);\n if (typeof scrollCoordinates.left !== undefined || typeof scrollCoordinates.top !== undefined) {\n apiRef.current.scroll(scrollCoordinates);\n return true;\n }\n return false;\n }, [logger, apiRef, virtualScrollerRef, props.pagination, visibleSortedRows, props.listView]);\n const scroll = React.useCallback(params => {\n if (virtualScrollerRef.current && params.left !== undefined && colRef.current) {\n const direction = isRtl ? -1 : 1;\n colRef.current.scrollLeft = params.left;\n virtualScrollerRef.current.scrollLeft = direction * params.left;\n logger.debug(`Scrolling left: ${params.left}`);\n }\n if (virtualScrollerRef.current && params.top !== undefined) {\n virtualScrollerRef.current.scrollTop = params.top;\n logger.debug(`Scrolling top: ${params.top}`);\n }\n logger.debug(`Scrolling, updating container, and viewport`);\n }, [virtualScrollerRef, isRtl, colRef, logger]);\n const getScrollPosition = React.useCallback(() => {\n if (!virtualScrollerRef?.current) {\n return {\n top: 0,\n left: 0\n };\n }\n return {\n top: virtualScrollerRef.current.scrollTop,\n left: virtualScrollerRef.current.scrollLeft\n };\n }, [virtualScrollerRef]);\n const scrollApi = {\n scroll,\n scrollToIndexes,\n getScrollPosition\n };\n useGridApiMethod(apiRef, scrollApi, 'public');\n};","import { useGridEventPriority } from \"../../utils/useGridEvent.js\";\n/**\n * @requires useGridFocus (event) - can be after, async only\n * @requires useGridColumns (event) - can be after, async only\n */\nexport function useGridEvents(apiRef, props) {\n useGridEventPriority(apiRef, 'columnHeaderClick', props.onColumnHeaderClick);\n useGridEventPriority(apiRef, 'columnHeaderContextMenu', props.onColumnHeaderContextMenu);\n useGridEventPriority(apiRef, 'columnHeaderDoubleClick', props.onColumnHeaderDoubleClick);\n useGridEventPriority(apiRef, 'columnHeaderOver', props.onColumnHeaderOver);\n useGridEventPriority(apiRef, 'columnHeaderOut', props.onColumnHeaderOut);\n useGridEventPriority(apiRef, 'columnHeaderEnter', props.onColumnHeaderEnter);\n useGridEventPriority(apiRef, 'columnHeaderLeave', props.onColumnHeaderLeave);\n useGridEventPriority(apiRef, 'cellClick', props.onCellClick);\n useGridEventPriority(apiRef, 'cellDoubleClick', props.onCellDoubleClick);\n useGridEventPriority(apiRef, 'cellKeyDown', props.onCellKeyDown);\n useGridEventPriority(apiRef, 'preferencePanelClose', props.onPreferencePanelClose);\n useGridEventPriority(apiRef, 'preferencePanelOpen', props.onPreferencePanelOpen);\n useGridEventPriority(apiRef, 'menuOpen', props.onMenuOpen);\n useGridEventPriority(apiRef, 'menuClose', props.onMenuClose);\n useGridEventPriority(apiRef, 'rowDoubleClick', props.onRowDoubleClick);\n useGridEventPriority(apiRef, 'rowClick', props.onRowClick);\n useGridEventPriority(apiRef, 'stateChange', props.onStateChange);\n}","export function throttle(func, wait = 166) {\n let timeout;\n let lastArgs;\n const later = () => {\n timeout = undefined;\n func(...lastArgs);\n };\n function throttled(...args) {\n lastArgs = args;\n if (timeout === undefined) {\n timeout = setTimeout(later, wait);\n }\n }\n throttled.clear = () => {\n clearTimeout(timeout);\n timeout = undefined;\n };\n return throttled;\n}","import { GridEditModes } from \"../models/gridEditRowModel.js\";\n/**\n * The default values of `DataGridPropsWithDefaultValues` to inject in the props of DataGrid.\n */\nexport const DATA_GRID_PROPS_DEFAULT_VALUES = {\n autoHeight: false,\n autoPageSize: false,\n autosizeOnMount: false,\n checkboxSelection: false,\n checkboxSelectionVisibleOnly: false,\n clipboardCopyCellDelimiter: '\\t',\n columnBufferPx: 150,\n columnHeaderHeight: 56,\n disableAutosize: false,\n disableColumnFilter: false,\n disableColumnMenu: false,\n disableColumnReorder: false,\n disableColumnResize: false,\n disableColumnSelector: false,\n disableColumnSorting: false,\n disableDensitySelector: false,\n disableEval: false,\n disableMultipleColumnsFiltering: false,\n disableMultipleColumnsSorting: false,\n disableMultipleRowSelection: false,\n disableRowSelectionOnClick: false,\n disableVirtualization: false,\n editMode: GridEditModes.Cell,\n filterDebounceMs: 150,\n filterMode: 'client',\n hideFooter: false,\n hideFooterPagination: false,\n hideFooterRowCount: false,\n hideFooterSelectedRowCount: false,\n ignoreDiacritics: false,\n ignoreValueFormatterDuringExport: false,\n keepColumnPositionIfDraggedOutside: false,\n keepNonExistentRowsSelected: false,\n loading: false,\n logger: console,\n logLevel: process.env.NODE_ENV === 'production' ? 'error' : 'warn',\n pageSizeOptions: [25, 50, 100],\n pagination: false,\n paginationMode: 'client',\n resizeThrottleMs: 60,\n rowBufferPx: 150,\n rowHeight: 52,\n rows: [],\n rowSelection: true,\n rowSpacingType: 'margin',\n rowSpanning: false,\n showCellVerticalBorder: false,\n showColumnVerticalBorder: false,\n showToolbar: false,\n sortingMode: 'client',\n sortingOrder: ['asc', 'desc', null],\n throttleRowsMs: 0,\n virtualizeColumnsWithAutoRowHeight: false\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport ownerDocument from '@mui/utils/ownerDocument';\nimport { throttle } from '@mui/x-internals/throttle';\nimport { isDeepEqual } from '@mui/x-internals/isDeepEqual';\nimport { useGridEventPriority } from \"../../utils/useGridEvent.js\";\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { createSelector } from \"../../../utils/createSelector.js\";\nimport { useGridLogger } from \"../../utils/useGridLogger.js\";\nimport { gridColumnPositionsSelector, gridVisibleColumnDefinitionsSelector, gridVisiblePinnedColumnDefinitionsSelector } from \"../columns/index.js\";\nimport { gridDimensionsSelector } from \"./gridDimensionsSelectors.js\";\nimport { gridDensityFactorSelector } from \"../density/index.js\";\nimport { gridRenderContextSelector } from \"../virtualization/index.js\";\nimport { useGridSelector } from \"../../utils/index.js\";\nimport { getVisibleRows } from \"../../utils/useGridVisibleRows.js\";\nimport { gridRowsMetaSelector } from \"../rows/gridRowsMetaSelector.js\";\nimport { getValidRowHeight, rowHeightWarning } from \"../rows/gridRowsUtils.js\";\nimport { getTotalHeaderHeight } from \"../columns/gridColumnsUtils.js\";\nimport { DATA_GRID_PROPS_DEFAULT_VALUES } from \"../../../constants/dataGridPropsDefaultValues.js\";\nimport { roundToDecimalPlaces } from \"../../../utils/roundToDecimalPlaces.js\";\nimport { isJSDOM } from \"../../../utils/isJSDOM.js\";\nconst EMPTY_SIZE = {\n width: 0,\n height: 0\n};\nconst EMPTY_DIMENSIONS = {\n isReady: false,\n root: EMPTY_SIZE,\n viewportOuterSize: EMPTY_SIZE,\n viewportInnerSize: EMPTY_SIZE,\n contentSize: EMPTY_SIZE,\n minimumSize: EMPTY_SIZE,\n hasScrollX: false,\n hasScrollY: false,\n scrollbarSize: 0,\n headerHeight: 0,\n groupHeaderHeight: 0,\n headerFilterHeight: 0,\n rowWidth: 0,\n rowHeight: 0,\n columnsTotalWidth: 0,\n leftPinnedWidth: 0,\n rightPinnedWidth: 0,\n headersTotalHeight: 0,\n topContainerHeight: 0,\n bottomContainerHeight: 0\n};\nexport const dimensionsStateInitializer = (state, props, apiRef) => {\n const dimensions = EMPTY_DIMENSIONS;\n const density = gridDensityFactorSelector(apiRef);\n return _extends({}, state, {\n dimensions: _extends({}, dimensions, getStaticDimensions(props, apiRef, density, gridVisiblePinnedColumnDefinitionsSelector(apiRef)))\n });\n};\nconst columnsTotalWidthSelector = createSelector(gridVisibleColumnDefinitionsSelector, gridColumnPositionsSelector, (visibleColumns, positions) => {\n const colCount = visibleColumns.length;\n if (colCount === 0) {\n return 0;\n }\n return roundToDecimalPlaces(positions[colCount - 1] + visibleColumns[colCount - 1].computedWidth, 1);\n});\nexport function useGridDimensions(apiRef, props) {\n const logger = useGridLogger(apiRef, 'useResizeContainer');\n const errorShown = React.useRef(false);\n const rootDimensionsRef = React.useRef(EMPTY_SIZE);\n const pinnedColumns = useGridSelector(apiRef, gridVisiblePinnedColumnDefinitionsSelector);\n const densityFactor = useGridSelector(apiRef, gridDensityFactorSelector);\n const columnsTotalWidth = useGridSelector(apiRef, columnsTotalWidthSelector);\n const isFirstSizing = React.useRef(true);\n const {\n rowHeight,\n headerHeight,\n groupHeaderHeight,\n headerFilterHeight,\n headersTotalHeight,\n leftPinnedWidth,\n rightPinnedWidth\n } = getStaticDimensions(props, apiRef, densityFactor, pinnedColumns);\n const getRootDimensions = React.useCallback(() => gridDimensionsSelector(apiRef), [apiRef]);\n const setDimensions = React.useCallback(dimensions => {\n apiRef.current.setState(state => _extends({}, state, {\n dimensions\n }));\n if (apiRef.current.rootElementRef.current) {\n setCSSVariables(apiRef.current.rootElementRef.current, gridDimensionsSelector(apiRef));\n }\n }, [apiRef]);\n const getViewportPageSize = React.useCallback(() => {\n const dimensions = gridDimensionsSelector(apiRef);\n if (!dimensions.isReady) {\n return 0;\n }\n const currentPage = getVisibleRows(apiRef);\n\n // TODO: Use a combination of scrollTop, dimensions.viewportInnerSize.height and rowsMeta.possitions\n // to find out the maximum number of rows that can fit in the visible part of the grid\n if (props.getRowHeight) {\n const renderContext = gridRenderContextSelector(apiRef);\n const viewportPageSize = renderContext.lastRowIndex - renderContext.firstRowIndex;\n return Math.min(viewportPageSize - 1, currentPage.rows.length);\n }\n const maximumPageSizeWithoutScrollBar = Math.floor(dimensions.viewportInnerSize.height / rowHeight);\n return Math.min(maximumPageSizeWithoutScrollBar, currentPage.rows.length);\n }, [apiRef, props.getRowHeight, rowHeight]);\n const updateDimensions = React.useCallback(() => {\n if (isFirstSizing.current) {\n return;\n }\n // All the floating point dimensions should be rounded to .1 decimal places to avoid subpixel rendering issues\n // https://github.com/mui/mui-x/issues/9550#issuecomment-1619020477\n // https://github.com/mui/mui-x/issues/15721\n const scrollbarSize = measureScrollbarSize(apiRef.current.mainElementRef.current, props.scrollbarSize);\n const rowsMeta = gridRowsMetaSelector(apiRef);\n const topContainerHeight = headersTotalHeight + rowsMeta.pinnedTopRowsTotalHeight;\n const bottomContainerHeight = rowsMeta.pinnedBottomRowsTotalHeight;\n const contentSize = {\n width: columnsTotalWidth,\n height: roundToDecimalPlaces(rowsMeta.currentPageTotalHeight, 1)\n };\n let viewportOuterSize;\n let viewportInnerSize;\n let hasScrollX = false;\n let hasScrollY = false;\n if (props.autoHeight) {\n hasScrollY = false;\n hasScrollX = Math.round(columnsTotalWidth) > Math.round(rootDimensionsRef.current.width);\n viewportOuterSize = {\n width: rootDimensionsRef.current.width,\n height: topContainerHeight + bottomContainerHeight + contentSize.height\n };\n viewportInnerSize = {\n width: Math.max(0, viewportOuterSize.width - (hasScrollY ? scrollbarSize : 0)),\n height: Math.max(0, viewportOuterSize.height - (hasScrollX ? scrollbarSize : 0))\n };\n } else {\n viewportOuterSize = {\n width: rootDimensionsRef.current.width,\n height: rootDimensionsRef.current.height\n };\n viewportInnerSize = {\n width: Math.max(0, viewportOuterSize.width),\n height: Math.max(0, viewportOuterSize.height - topContainerHeight - bottomContainerHeight)\n };\n const content = contentSize;\n const container = viewportInnerSize;\n const hasScrollXIfNoYScrollBar = content.width > container.width;\n const hasScrollYIfNoXScrollBar = content.height > container.height;\n if (hasScrollXIfNoYScrollBar || hasScrollYIfNoXScrollBar) {\n hasScrollY = hasScrollYIfNoXScrollBar;\n hasScrollX = content.width + (hasScrollY ? scrollbarSize : 0) > container.width;\n\n // We recalculate the scroll y to consider the size of the x scrollbar.\n if (hasScrollX) {\n hasScrollY = content.height + scrollbarSize > container.height;\n }\n }\n if (hasScrollY) {\n viewportInnerSize.width -= scrollbarSize;\n }\n if (hasScrollX) {\n viewportInnerSize.height -= scrollbarSize;\n }\n }\n const rowWidth = Math.max(viewportOuterSize.width, columnsTotalWidth + (hasScrollY ? scrollbarSize : 0));\n const minimumSize = {\n width: columnsTotalWidth,\n height: topContainerHeight + contentSize.height + bottomContainerHeight\n };\n const newDimensions = {\n isReady: true,\n root: rootDimensionsRef.current,\n viewportOuterSize,\n viewportInnerSize,\n contentSize,\n minimumSize,\n hasScrollX,\n hasScrollY,\n scrollbarSize,\n headerHeight,\n groupHeaderHeight,\n headerFilterHeight,\n rowWidth,\n rowHeight,\n columnsTotalWidth,\n leftPinnedWidth,\n rightPinnedWidth,\n headersTotalHeight,\n topContainerHeight,\n bottomContainerHeight\n };\n const prevDimensions = apiRef.current.state.dimensions;\n if (isDeepEqual(prevDimensions, newDimensions)) {\n return;\n }\n setDimensions(newDimensions);\n if (!areElementSizesEqual(newDimensions.viewportInnerSize, prevDimensions.viewportInnerSize)) {\n apiRef.current.publishEvent('viewportInnerSizeChange', newDimensions.viewportInnerSize);\n }\n apiRef.current.updateRenderContext?.();\n }, [apiRef, setDimensions, props.scrollbarSize, props.autoHeight, rowHeight, headerHeight, groupHeaderHeight, headerFilterHeight, columnsTotalWidth, headersTotalHeight, leftPinnedWidth, rightPinnedWidth]);\n const updateDimensionCallback = useEventCallback(updateDimensions);\n const debouncedUpdateDimensions = React.useMemo(() => props.resizeThrottleMs > 0 ? throttle(() => {\n updateDimensionCallback();\n apiRef.current.publishEvent('debouncedResize', rootDimensionsRef.current);\n }, props.resizeThrottleMs) : undefined, [apiRef, props.resizeThrottleMs, updateDimensionCallback]);\n React.useEffect(() => debouncedUpdateDimensions?.clear, [debouncedUpdateDimensions]);\n const apiPublic = {\n getRootDimensions\n };\n const apiPrivate = {\n updateDimensions,\n getViewportPageSize\n };\n useEnhancedEffect(updateDimensions, [updateDimensions]);\n useGridApiMethod(apiRef, apiPublic, 'public');\n useGridApiMethod(apiRef, apiPrivate, 'private');\n const handleRootMount = React.useCallback(root => {\n setCSSVariables(root, gridDimensionsSelector(apiRef));\n }, [apiRef]);\n const handleResize = React.useCallback(size => {\n rootDimensionsRef.current = size;\n if (size.height === 0 && !errorShown.current && !props.autoHeight && !isJSDOM) {\n logger.error(['The parent DOM element of the Data Grid has an empty height.', 'Please make sure that this element has an intrinsic height.', 'The grid displays with a height of 0px.', '', 'More details: https://mui.com/r/x-data-grid-no-dimensions.'].join('\\n'));\n errorShown.current = true;\n }\n if (size.width === 0 && !errorShown.current && !isJSDOM) {\n logger.error(['The parent DOM element of the Data Grid has an empty width.', 'Please make sure that this element has an intrinsic width.', 'The grid displays with a width of 0px.', '', 'More details: https://mui.com/r/x-data-grid-no-dimensions.'].join('\\n'));\n errorShown.current = true;\n }\n if (isFirstSizing.current || !debouncedUpdateDimensions) {\n // We want to initialize the grid dimensions as soon as possible to avoid flickering\n isFirstSizing.current = false;\n updateDimensions();\n return;\n }\n debouncedUpdateDimensions();\n }, [updateDimensions, props.autoHeight, debouncedUpdateDimensions, logger]);\n useGridEventPriority(apiRef, 'rootMount', handleRootMount);\n useGridEventPriority(apiRef, 'resize', handleResize);\n useGridEventPriority(apiRef, 'debouncedResize', props.onResize);\n}\nfunction setCSSVariables(root, dimensions) {\n const set = (k, v) => root.style.setProperty(k, v);\n set('--DataGrid-hasScrollX', `${Number(dimensions.hasScrollX)}`);\n set('--DataGrid-hasScrollY', `${Number(dimensions.hasScrollY)}`);\n set('--DataGrid-scrollbarSize', `${dimensions.scrollbarSize}px`);\n set('--DataGrid-rowWidth', `${dimensions.rowWidth}px`);\n set('--DataGrid-columnsTotalWidth', `${dimensions.columnsTotalWidth}px`);\n set('--DataGrid-leftPinnedWidth', `${dimensions.leftPinnedWidth}px`);\n set('--DataGrid-rightPinnedWidth', `${dimensions.rightPinnedWidth}px`);\n set('--DataGrid-headerHeight', `${dimensions.headerHeight}px`);\n set('--DataGrid-headersTotalHeight', `${dimensions.headersTotalHeight}px`);\n set('--DataGrid-topContainerHeight', `${dimensions.topContainerHeight}px`);\n set('--DataGrid-bottomContainerHeight', `${dimensions.bottomContainerHeight}px`);\n set('--height', `${dimensions.rowHeight}px`);\n}\nfunction getStaticDimensions(props, apiRef, density, pinnedColumnns) {\n const validRowHeight = getValidRowHeight(props.rowHeight, DATA_GRID_PROPS_DEFAULT_VALUES.rowHeight, rowHeightWarning);\n return {\n rowHeight: Math.floor(validRowHeight * density),\n headerHeight: Math.floor(props.columnHeaderHeight * density),\n groupHeaderHeight: Math.floor((props.columnGroupHeaderHeight ?? props.columnHeaderHeight) * density),\n headerFilterHeight: Math.floor((props.headerFilterHeight ?? props.columnHeaderHeight) * density),\n columnsTotalWidth: columnsTotalWidthSelector(apiRef),\n headersTotalHeight: getTotalHeaderHeight(apiRef, props),\n leftPinnedWidth: pinnedColumnns.left.reduce((w, col) => w + col.computedWidth, 0),\n rightPinnedWidth: pinnedColumnns.right.reduce((w, col) => w + col.computedWidth, 0)\n };\n}\nconst scrollbarSizeCache = new WeakMap();\nfunction measureScrollbarSize(element, scrollbarSize) {\n if (scrollbarSize !== undefined) {\n return scrollbarSize;\n }\n if (element === null) {\n return 0;\n }\n const cachedSize = scrollbarSizeCache.get(element);\n if (cachedSize !== undefined) {\n return cachedSize;\n }\n const doc = ownerDocument(element);\n const scrollDiv = doc.createElement('div');\n scrollDiv.style.width = '99px';\n scrollDiv.style.height = '99px';\n scrollDiv.style.position = 'absolute';\n scrollDiv.style.overflow = 'scroll';\n scrollDiv.className = 'scrollDiv';\n element.appendChild(scrollDiv);\n const size = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n element.removeChild(scrollDiv);\n scrollbarSizeCache.set(element, size);\n return size;\n}\nfunction areElementSizesEqual(a, b) {\n return a.width === b.width && a.height === b.height;\n}","/* eslint-disable */\n\n/**\n * HACK: Minimal shim to get jsdom to work.\n */\nexport const ResizeObserver = typeof globalThis.ResizeObserver !== 'undefined' ? globalThis.ResizeObserver : class ResizeObserver {\n observe() {}\n unobserve() {}\n disconnect() {}\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useLazyRef from '@mui/utils/useLazyRef';\nimport { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';\nimport { ResizeObserver } from \"../../../utils/ResizeObserver.js\";\nimport { useGridVisibleRows } from \"../../utils/useGridVisibleRows.js\";\nimport { eslintUseValue } from \"../../../utils/utils.js\";\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { useGridSelector } from \"../../utils/useGridSelector.js\";\nimport { gridDensityFactorSelector } from \"../density/densitySelector.js\";\nimport { gridPaginationSelector } from \"../pagination/gridPaginationSelector.js\";\nimport { useGridRegisterPipeApplier } from \"../../core/pipeProcessing/index.js\";\nimport { gridPinnedRowsSelector, gridRowCountSelector } from \"./gridRowsSelector.js\";\nimport { gridDimensionsSelector, gridRowHeightSelector } from \"../dimensions/gridDimensionsSelectors.js\";\nimport { getValidRowHeight, getRowHeightWarning } from \"./gridRowsUtils.js\";\nimport { gridFocusedVirtualCellSelector } from \"../virtualization/gridFocusedVirtualCellSelector.js\";\n/* eslint-disable no-underscore-dangle */\n\nexport const rowsMetaStateInitializer = (state, props, apiRef) => {\n apiRef.current.caches.rowsMeta = {\n heights: new Map()\n };\n const baseRowHeight = gridRowHeightSelector(apiRef);\n const dataRowCount = gridRowCountSelector(apiRef);\n const pagination = gridPaginationSelector(apiRef);\n const rowCount = Math.min(pagination.enabled ? pagination.paginationModel.pageSize : dataRowCount, dataRowCount);\n return _extends({}, state, {\n rowsMeta: {\n currentPageTotalHeight: rowCount * baseRowHeight,\n positions: Array.from({\n length: rowCount\n }, (_, i) => i * baseRowHeight),\n pinnedTopRowsTotalHeight: 0,\n pinnedBottomRowsTotalHeight: 0\n }\n });\n};\n\n/**\n * @requires useGridPageSize (method)\n * @requires useGridPage (method)\n */\nexport const useGridRowsMeta = (apiRef, props) => {\n const {\n getRowHeight: getRowHeightProp,\n getRowSpacing,\n getEstimatedRowHeight\n } = props;\n const heightCache = apiRef.current.caches.rowsMeta.heights;\n const lastMeasuredRowIndex = React.useRef(-1);\n const hasRowWithAutoHeight = React.useRef(false);\n const isHeightMetaValid = React.useRef(false);\n const densityFactor = useGridSelector(apiRef, gridDensityFactorSelector);\n const currentPage = useGridVisibleRows(apiRef, props);\n const pinnedRows = useGridSelector(apiRef, gridPinnedRowsSelector);\n const rowHeight = useGridSelector(apiRef, gridRowHeightSelector);\n const getRowHeightEntry = rowId => {\n let entry = heightCache.get(rowId);\n if (entry === undefined) {\n entry = {\n content: rowHeight,\n spacingTop: 0,\n spacingBottom: 0,\n detail: 0,\n autoHeight: false,\n needsFirstMeasurement: true\n };\n heightCache.set(rowId, entry);\n }\n return entry;\n };\n const processHeightEntry = React.useCallback(row => {\n // HACK: rowHeight trails behind the most up-to-date value just enough to\n // mess the initial rowsMeta hydration :/\n const baseRowHeight = gridDimensionsSelector(apiRef).rowHeight;\n eslintUseValue(rowHeight);\n const entry = apiRef.current.getRowHeightEntry(row.id);\n if (!getRowHeightProp) {\n entry.content = baseRowHeight;\n entry.needsFirstMeasurement = false;\n } else {\n const rowHeightFromUser = getRowHeightProp(_extends({}, row, {\n densityFactor\n }));\n if (rowHeightFromUser === 'auto') {\n if (entry.needsFirstMeasurement) {\n const estimatedRowHeight = getEstimatedRowHeight ? getEstimatedRowHeight(_extends({}, row, {\n densityFactor\n })) : baseRowHeight;\n\n // If the row was not measured yet use the estimated row height\n entry.content = estimatedRowHeight ?? baseRowHeight;\n }\n hasRowWithAutoHeight.current = true;\n entry.autoHeight = true;\n } else {\n // Default back to base rowHeight if getRowHeight returns invalid value.\n entry.content = getValidRowHeight(rowHeightFromUser, baseRowHeight, getRowHeightWarning);\n entry.needsFirstMeasurement = false;\n entry.autoHeight = false;\n }\n }\n if (getRowSpacing) {\n const indexRelativeToCurrentPage = apiRef.current.getRowIndexRelativeToVisibleRows(row.id);\n const spacing = getRowSpacing(_extends({}, row, {\n isFirstVisible: indexRelativeToCurrentPage === 0,\n isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,\n indexRelativeToCurrentPage\n }));\n entry.spacingTop = spacing.top ?? 0;\n entry.spacingBottom = spacing.bottom ?? 0;\n } else {\n entry.spacingTop = 0;\n entry.spacingBottom = 0;\n }\n apiRef.current.unstable_applyPipeProcessors('rowHeight', entry, row);\n return entry;\n }, [apiRef, currentPage.rows, getRowHeightProp, getEstimatedRowHeight, rowHeight, getRowSpacing, densityFactor]);\n const hydrateRowsMeta = React.useCallback(() => {\n hasRowWithAutoHeight.current = false;\n const pinnedTopRowsTotalHeight = pinnedRows.top.reduce((acc, row) => {\n const entry = processHeightEntry(row);\n return acc + entry.content + entry.spacingTop + entry.spacingBottom + entry.detail;\n }, 0);\n const pinnedBottomRowsTotalHeight = pinnedRows.bottom.reduce((acc, row) => {\n const entry = processHeightEntry(row);\n return acc + entry.content + entry.spacingTop + entry.spacingBottom + entry.detail;\n }, 0);\n const positions = [];\n const currentPageTotalHeight = currentPage.rows.reduce((acc, row) => {\n positions.push(acc);\n const entry = processHeightEntry(row);\n const total = entry.content + entry.spacingTop + entry.spacingBottom + entry.detail;\n return acc + total;\n }, 0);\n if (!hasRowWithAutoHeight.current) {\n // No row has height=auto, so all rows are already measured\n lastMeasuredRowIndex.current = Infinity;\n }\n const didHeightsChange = pinnedTopRowsTotalHeight !== apiRef.current.state.rowsMeta.pinnedTopRowsTotalHeight || pinnedBottomRowsTotalHeight !== apiRef.current.state.rowsMeta.pinnedBottomRowsTotalHeight || currentPageTotalHeight !== apiRef.current.state.rowsMeta.currentPageTotalHeight;\n const rowsMeta = {\n currentPageTotalHeight,\n positions,\n pinnedTopRowsTotalHeight,\n pinnedBottomRowsTotalHeight\n };\n apiRef.current.setState(state => {\n return _extends({}, state, {\n rowsMeta\n });\n });\n if (didHeightsChange) {\n apiRef.current.updateDimensions();\n }\n isHeightMetaValid.current = true;\n }, [apiRef, pinnedRows, currentPage.rows, processHeightEntry]);\n const getRowHeight = rowId => {\n return heightCache.get(rowId)?.content ?? rowHeight;\n };\n const storeRowHeightMeasurement = (id, height) => {\n const entry = apiRef.current.getRowHeightEntry(id);\n const didChange = entry.content !== height;\n entry.needsFirstMeasurement = false;\n entry.content = height;\n isHeightMetaValid.current &&= !didChange;\n };\n const rowHasAutoHeight = id => {\n return heightCache.get(id)?.autoHeight ?? false;\n };\n const getLastMeasuredRowIndex = () => {\n return lastMeasuredRowIndex.current;\n };\n const setLastMeasuredRowIndex = index => {\n if (hasRowWithAutoHeight.current && index > lastMeasuredRowIndex.current) {\n lastMeasuredRowIndex.current = index;\n }\n };\n const resetRowHeights = () => {\n heightCache.clear();\n hydrateRowsMeta();\n };\n const resizeObserver = useLazyRef(() => new ResizeObserver(entries => {\n for (let i = 0; i < entries.length; i += 1) {\n const entry = entries[i];\n const height = entry.borderBoxSize && entry.borderBoxSize.length > 0 ? entry.borderBoxSize[0].blockSize : entry.contentRect.height;\n const rowId = entry.target.__mui_id;\n const focusedVirtualRowId = gridFocusedVirtualCellSelector(apiRef)?.id;\n if (focusedVirtualRowId === rowId && height === 0) {\n // Focused virtual row has 0 height.\n // We don't want to store it to avoid scroll jumping.\n // https://github.com/mui/mui-x/issues/14726\n return;\n }\n apiRef.current.unstable_storeRowHeightMeasurement(rowId, height);\n }\n if (!isHeightMetaValid.current) {\n apiRef.current.requestPipeProcessorsApplication('rowHeight');\n }\n })).current;\n const observeRowHeight = (element, rowId) => {\n element.__mui_id = rowId;\n resizeObserver.observe(element);\n return () => resizeObserver.unobserve(element);\n };\n useGridRegisterPipeApplier(apiRef, 'rowHeight', hydrateRowsMeta);\n\n // The effect is used to build the rows meta data - currentPageTotalHeight and positions.\n // Because of variable row height this is needed for the virtualization\n useEnhancedEffect(() => {\n hydrateRowsMeta();\n }, [hydrateRowsMeta]);\n const rowsMetaApi = {\n unstable_getRowHeight: getRowHeight,\n unstable_setLastMeasuredRowIndex: setLastMeasuredRowIndex,\n unstable_storeRowHeightMeasurement: storeRowHeightMeasurement,\n resetRowHeights\n };\n const rowsMetaPrivateApi = {\n hydrateRowsMeta,\n observeRowHeight,\n rowHasAutoHeight,\n getRowHeightEntry,\n getLastMeasuredRowIndex\n };\n useGridApiMethod(apiRef, rowsMetaApi, 'public');\n useGridApiMethod(apiRef, rowsMetaPrivateApi, 'private');\n};","import * as React from 'react';\nimport { useGridApiMethod } from \"../../utils/index.js\";\nexport const useGridStatePersistence = apiRef => {\n const exportState = React.useCallback((params = {}) => {\n const stateToExport = apiRef.current.unstable_applyPipeProcessors('exportState', {}, params);\n return stateToExport;\n }, [apiRef]);\n const restoreState = React.useCallback(stateToRestore => {\n const response = apiRef.current.unstable_applyPipeProcessors('restoreState', {\n callbacks: []\n }, {\n stateToRestore\n });\n response.callbacks.forEach(callback => {\n callback();\n });\n }, [apiRef]);\n const statePersistenceApi = {\n exportState,\n restoreState\n };\n useGridApiMethod(apiRef, statePersistenceApi, 'public');\n};","import * as React from 'react';\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { useGridEvent } from \"../../utils/useGridEvent.js\";\n/**\n * @requires useGridColumns (method, event)\n * @requires useGridParamsApi (method)\n */\nexport const useGridColumnSpanning = apiRef => {\n const lookup = React.useRef({});\n const getCellColSpanInfo = (rowId, columnIndex) => {\n return lookup.current[rowId]?.[columnIndex];\n };\n const resetColSpan = () => {\n lookup.current = {};\n };\n\n // Calculate `colSpan` for each cell in the row\n const calculateColSpan = React.useCallback(({\n rowId,\n minFirstColumn,\n maxLastColumn,\n columns\n }) => {\n for (let i = minFirstColumn; i < maxLastColumn; i += 1) {\n const cellProps = calculateCellColSpan({\n apiRef,\n lookup: lookup.current,\n columnIndex: i,\n rowId,\n minFirstColumnIndex: minFirstColumn,\n maxLastColumnIndex: maxLastColumn,\n columns\n });\n if (cellProps.colSpan > 1) {\n i += cellProps.colSpan - 1;\n }\n }\n }, [apiRef]);\n const columnSpanningPublicApi = {\n unstable_getCellColSpanInfo: getCellColSpanInfo\n };\n const columnSpanningPrivateApi = {\n resetColSpan,\n calculateColSpan\n };\n useGridApiMethod(apiRef, columnSpanningPublicApi, 'public');\n useGridApiMethod(apiRef, columnSpanningPrivateApi, 'private');\n useGridEvent(apiRef, 'columnOrderChange', resetColSpan);\n};\nfunction calculateCellColSpan(params) {\n const {\n apiRef,\n lookup,\n columnIndex,\n rowId,\n minFirstColumnIndex,\n maxLastColumnIndex,\n columns\n } = params;\n const columnsLength = columns.length;\n const column = columns[columnIndex];\n const row = apiRef.current.getRow(rowId);\n const value = apiRef.current.getRowValue(row, column);\n const colSpan = typeof column.colSpan === 'function' ? column.colSpan(value, row, column, apiRef) : column.colSpan;\n if (!colSpan || colSpan === 1) {\n setCellColSpanInfo(lookup, rowId, columnIndex, {\n spannedByColSpan: false,\n cellProps: {\n colSpan: 1,\n width: column.computedWidth\n }\n });\n return {\n colSpan: 1\n };\n }\n let width = column.computedWidth;\n for (let j = 1; j < colSpan; j += 1) {\n const nextColumnIndex = columnIndex + j;\n // Cells should be spanned only within their column section (left-pinned, right-pinned and unpinned).\n if (nextColumnIndex >= minFirstColumnIndex && nextColumnIndex < maxLastColumnIndex) {\n const nextColumn = columns[nextColumnIndex];\n width += nextColumn.computedWidth;\n setCellColSpanInfo(lookup, rowId, columnIndex + j, {\n spannedByColSpan: true,\n rightVisibleCellIndex: Math.min(columnIndex + colSpan, columnsLength - 1),\n leftVisibleCellIndex: columnIndex\n });\n }\n setCellColSpanInfo(lookup, rowId, columnIndex, {\n spannedByColSpan: false,\n cellProps: {\n colSpan,\n width\n }\n });\n }\n return {\n colSpan\n };\n}\nfunction setCellColSpanInfo(lookup, rowId, columnIndex, cellColSpanInfo) {\n if (!lookup[rowId]) {\n lookup[rowId] = {};\n }\n lookup[rowId][columnIndex] = cellColSpanInfo;\n}","import { isDeepEqual } from '@mui/x-internals/isDeepEqual';\nimport { isLeaf } from \"../../../models/gridColumnGrouping.js\";\n// This is the recurrence function that help writing `unwrapGroupingColumnModel()`\nconst recurrentUnwrapGroupingColumnModel = (columnGroupNode, parents, unwrappedGroupingModelToComplete) => {\n if (isLeaf(columnGroupNode)) {\n if (unwrappedGroupingModelToComplete[columnGroupNode.field] !== undefined) {\n throw new Error([`MUI X: columnGroupingModel contains duplicated field`, `column field ${columnGroupNode.field} occurs two times in the grouping model:`, `- ${unwrappedGroupingModelToComplete[columnGroupNode.field].join(' > ')}`, `- ${parents.join(' > ')}`].join('\\n'));\n }\n unwrappedGroupingModelToComplete[columnGroupNode.field] = parents;\n return;\n }\n const {\n groupId,\n children\n } = columnGroupNode;\n children.forEach(child => {\n recurrentUnwrapGroupingColumnModel(child, [...parents, groupId], unwrappedGroupingModelToComplete);\n });\n};\n\n/**\n * This is a function that provide for each column the array of its parents.\n * Parents are ordered from the root to the leaf.\n * @param columnGroupingModel The model such as provided in DataGrid props\n * @returns An object `{[field]: groupIds}` where `groupIds` is the parents of the column `field`\n */\nexport const unwrapGroupingColumnModel = columnGroupingModel => {\n if (!columnGroupingModel) {\n return {};\n }\n const unwrappedSubTree = {};\n columnGroupingModel.forEach(columnGroupNode => {\n recurrentUnwrapGroupingColumnModel(columnGroupNode, [], unwrappedSubTree);\n });\n return unwrappedSubTree;\n};\nexport const getColumnGroupsHeaderStructure = (orderedColumns, unwrappedGroupingModel, pinnedFields) => {\n const getParents = field => unwrappedGroupingModel[field] ?? [];\n const groupingHeaderStructure = [];\n const maxDepth = Math.max(...orderedColumns.map(field => getParents(field).length));\n const haveSameParents = (field1, field2, depth) => isDeepEqual(getParents(field1).slice(0, depth + 1), getParents(field2).slice(0, depth + 1));\n const haveDifferentContainers = (field1, field2) => {\n if (pinnedFields?.left && pinnedFields.left.includes(field1) && !pinnedFields.left.includes(field2)) {\n return true;\n }\n if (pinnedFields?.right && !pinnedFields.right.includes(field1) && pinnedFields.right.includes(field2)) {\n return true;\n }\n return false;\n };\n for (let depth = 0; depth < maxDepth; depth += 1) {\n const depthStructure = orderedColumns.reduce((structure, newField) => {\n const groupId = getParents(newField)[depth] ?? null;\n if (structure.length === 0) {\n return [{\n columnFields: [newField],\n groupId\n }];\n }\n const lastGroup = structure[structure.length - 1];\n const prevField = lastGroup.columnFields[lastGroup.columnFields.length - 1];\n const prevGroupId = lastGroup.groupId;\n if (prevGroupId !== groupId || !haveSameParents(prevField, newField, depth) ||\n // Fix for https://github.com/mui/mui-x/issues/7041\n haveDifferentContainers(prevField, newField)) {\n // It's a new group\n return [...structure, {\n columnFields: [newField],\n groupId\n }];\n }\n\n // It extends the previous group\n return [...structure.slice(0, structure.length - 1), {\n columnFields: [...lastGroup.columnFields, newField],\n groupId\n }];\n }, []);\n groupingHeaderStructure.push(depthStructure);\n }\n return groupingHeaderStructure;\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"groupId\", \"children\"];\nimport * as React from 'react';\nimport { isLeaf } from \"../../../models/gridColumnGrouping.js\";\nimport { gridColumnGroupsLookupSelector, gridColumnGroupsUnwrappedModelSelector } from \"./gridColumnGroupsSelector.js\";\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { getColumnGroupsHeaderStructure, unwrapGroupingColumnModel } from \"./gridColumnGroupsUtils.js\";\nimport { useGridEvent } from \"../../utils/useGridEvent.js\";\nimport { gridColumnFieldsSelector, gridVisibleColumnFieldsSelector } from \"../columns/index.js\";\nconst createGroupLookup = columnGroupingModel => {\n let groupLookup = {};\n columnGroupingModel.forEach(node => {\n if (isLeaf(node)) {\n return;\n }\n const {\n groupId,\n children\n } = node,\n other = _objectWithoutPropertiesLoose(node, _excluded);\n if (!groupId) {\n throw new Error('MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.');\n }\n if (process.env.NODE_ENV !== 'production') {\n if (!children) {\n console.warn(`MUI X: group groupId=${groupId} has no children.`);\n }\n }\n const groupParam = _extends({}, other, {\n groupId\n });\n const subTreeLookup = createGroupLookup(children);\n if (subTreeLookup[groupId] !== undefined || groupLookup[groupId] !== undefined) {\n throw new Error(`MUI X: The groupId ${groupId} is used multiple times in the columnGroupingModel.`);\n }\n groupLookup = _extends({}, groupLookup, subTreeLookup, {\n [groupId]: groupParam\n });\n });\n return _extends({}, groupLookup);\n};\nexport const columnGroupsStateInitializer = (state, props, apiRef) => {\n if (!props.columnGroupingModel) {\n return state;\n }\n const columnFields = gridColumnFieldsSelector(apiRef);\n const visibleColumnFields = gridVisibleColumnFieldsSelector(apiRef);\n const groupLookup = createGroupLookup(props.columnGroupingModel ?? []);\n const unwrappedGroupingModel = unwrapGroupingColumnModel(props.columnGroupingModel ?? []);\n const columnGroupsHeaderStructure = getColumnGroupsHeaderStructure(columnFields, unwrappedGroupingModel, apiRef.current.state.pinnedColumns ?? {});\n const maxDepth = visibleColumnFields.length === 0 ? 0 : Math.max(...visibleColumnFields.map(field => unwrappedGroupingModel[field]?.length ?? 0));\n return _extends({}, state, {\n columnGrouping: {\n lookup: groupLookup,\n unwrappedGroupingModel,\n headerStructure: columnGroupsHeaderStructure,\n maxDepth\n }\n });\n};\n\n/**\n * @requires useGridColumns (method, event)\n * @requires useGridParamsApi (method)\n */\nexport const useGridColumnGrouping = (apiRef, props) => {\n /**\n * API METHODS\n */\n const getColumnGroupPath = React.useCallback(field => {\n const unwrappedGroupingModel = gridColumnGroupsUnwrappedModelSelector(apiRef);\n return unwrappedGroupingModel[field] ?? [];\n }, [apiRef]);\n const getAllGroupDetails = React.useCallback(() => {\n const columnGroupLookup = gridColumnGroupsLookupSelector(apiRef);\n return columnGroupLookup;\n }, [apiRef]);\n const columnGroupingApi = {\n getColumnGroupPath,\n getAllGroupDetails\n };\n useGridApiMethod(apiRef, columnGroupingApi, 'public');\n const handleColumnIndexChange = React.useCallback(() => {\n const unwrappedGroupingModel = unwrapGroupingColumnModel(props.columnGroupingModel ?? []);\n apiRef.current.setState(state => {\n const orderedFields = state.columns?.orderedFields ?? [];\n const pinnedColumns = state.pinnedColumns ?? {};\n const columnGroupsHeaderStructure = getColumnGroupsHeaderStructure(orderedFields, unwrappedGroupingModel, pinnedColumns);\n return _extends({}, state, {\n columnGrouping: _extends({}, state.columnGrouping, {\n headerStructure: columnGroupsHeaderStructure\n })\n });\n });\n }, [apiRef, props.columnGroupingModel]);\n const updateColumnGroupingState = React.useCallback(columnGroupingModel => {\n // @ts-expect-error Move this logic to `Pro` package\n const pinnedColumns = apiRef.current.getPinnedColumns?.() ?? {};\n const columnFields = gridColumnFieldsSelector(apiRef);\n const visibleColumnFields = gridVisibleColumnFieldsSelector(apiRef);\n const groupLookup = createGroupLookup(columnGroupingModel ?? []);\n const unwrappedGroupingModel = unwrapGroupingColumnModel(columnGroupingModel ?? []);\n const columnGroupsHeaderStructure = getColumnGroupsHeaderStructure(columnFields, unwrappedGroupingModel, pinnedColumns);\n const maxDepth = visibleColumnFields.length === 0 ? 0 : Math.max(...visibleColumnFields.map(field => unwrappedGroupingModel[field]?.length ?? 0));\n apiRef.current.setState(state => {\n return _extends({}, state, {\n columnGrouping: {\n lookup: groupLookup,\n unwrappedGroupingModel,\n headerStructure: columnGroupsHeaderStructure,\n maxDepth\n }\n });\n });\n }, [apiRef]);\n useGridEvent(apiRef, 'columnIndexChange', handleColumnIndexChange);\n useGridEvent(apiRef, 'columnsChange', () => {\n updateColumnGroupingState(props.columnGroupingModel);\n });\n useGridEvent(apiRef, 'columnVisibilityModelChange', () => {\n updateColumnGroupingState(props.columnGroupingModel);\n });\n\n /**\n * EFFECTS\n */\n React.useEffect(() => {\n updateColumnGroupingState(props.columnGroupingModel);\n }, [updateColumnGroupingState, props.columnGroupingModel]);\n};","export function createControllablePromise() {\n let resolve;\n let reject;\n const promise = new Promise((_resolve, _reject) => {\n resolve = _resolve;\n reject = _reject;\n });\n promise.resolve = resolve;\n promise.reject = reject;\n return promise;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport ownerDocument from '@mui/utils/ownerDocument';\nimport useLazyRef from '@mui/utils/useLazyRef';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { findGridCellElementsFromCol, findGridElement, findLeftPinnedCellsAfterCol, findRightPinnedCellsBeforeCol, getFieldFromHeaderElem, findHeaderElementFromField, getFieldsFromGroupHeaderElem, findGroupHeaderElementsFromField, findGridHeader, findGridCells, findParentElementFromClassName, findLeftPinnedHeadersAfterCol, findRightPinnedHeadersBeforeCol, escapeOperandAttributeSelector } from \"../../../utils/domUtils.js\";\nimport { DEFAULT_GRID_AUTOSIZE_OPTIONS } from \"./gridColumnResizeApi.js\";\nimport { gridClasses } from \"../../../constants/gridClasses.js\";\nimport { useGridEvent, useGridApiMethod, useGridEventPriority, useGridLogger, useGridNativeEventListener, useGridSelector, useOnMount } from \"../../utils/index.js\";\nimport { gridVirtualizationColumnEnabledSelector } from \"../virtualization/index.js\";\nimport { createControllablePromise } from \"../../../utils/createControllablePromise.js\";\nimport { clamp } from \"../../../utils/utils.js\";\nimport { useTimeout } from \"../../utils/useTimeout.js\";\nimport { GridPinnedColumnPosition } from \"../columns/gridColumnsInterfaces.js\";\nimport { gridColumnsStateSelector } from \"../columns/index.js\";\nfunction trackFinger(event, currentTouchId) {\n if (currentTouchId !== undefined && event.changedTouches) {\n for (let i = 0; i < event.changedTouches.length; i += 1) {\n const touch = event.changedTouches[i];\n if (touch.identifier === currentTouchId) {\n return {\n x: touch.clientX,\n y: touch.clientY\n };\n }\n }\n return false;\n }\n return {\n x: event.clientX,\n y: event.clientY\n };\n}\nfunction computeNewWidth(initialOffsetToSeparator, clickX, columnBounds, resizeDirection) {\n let newWidth = initialOffsetToSeparator;\n if (resizeDirection === 'Right') {\n newWidth += clickX - columnBounds.left;\n } else {\n newWidth += columnBounds.right - clickX;\n }\n return newWidth;\n}\nfunction computeOffsetToSeparator(clickX, columnBounds, resizeDirection) {\n if (resizeDirection === 'Left') {\n return clickX - columnBounds.left;\n }\n return columnBounds.right - clickX;\n}\nfunction flipResizeDirection(side) {\n if (side === 'Right') {\n return 'Left';\n }\n return 'Right';\n}\nfunction getResizeDirection(separator, isRtl) {\n const side = separator.classList.contains(gridClasses['columnSeparator--sideRight']) ? 'Right' : 'Left';\n if (isRtl) {\n // Resizing logic should be mirrored in the RTL case\n return flipResizeDirection(side);\n }\n return side;\n}\nfunction preventClick(event) {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n\n/**\n * Checker that returns a promise that resolves when the column virtualization\n * is disabled.\n */\nfunction useColumnVirtualizationDisabled(apiRef) {\n const promise = React.useRef(undefined);\n const selector = () => gridVirtualizationColumnEnabledSelector(apiRef);\n const value = useGridSelector(apiRef, selector);\n React.useEffect(() => {\n if (promise.current && value === false) {\n promise.current.resolve();\n promise.current = undefined;\n }\n });\n const asyncCheck = () => {\n if (!promise.current) {\n if (selector() === false) {\n return Promise.resolve();\n }\n promise.current = createControllablePromise();\n }\n return promise.current;\n };\n return asyncCheck;\n}\n\n/**\n * Basic statistical outlier detection, checks if the value is `F * IQR` away from\n * the Q1 and Q3 boundaries. IQR: interquartile range.\n */\nfunction excludeOutliers(inputValues, factor) {\n if (inputValues.length < 4) {\n return inputValues;\n }\n const values = inputValues.slice();\n values.sort((a, b) => a - b);\n const q1 = values[Math.floor(values.length * 0.25)];\n const q3 = values[Math.floor(values.length * 0.75) - 1];\n const iqr = q3 - q1;\n\n // We make a small adjustment if `iqr < 5` for the cases where the IQR is\n // very small (for example zero) due to very close by values in the input data.\n // Otherwise, with an IQR of `0`, anything outside that would be considered\n // an outlier, but it makes more sense visually to allow for this 5px variance\n // rather than showing a cropped cell.\n const deviation = iqr < 5 ? 5 : iqr * factor;\n return values.filter(v => v > q1 - deviation && v < q3 + deviation);\n}\nfunction extractColumnWidths(apiRef, options, columns) {\n const widthByField = {};\n const root = apiRef.current.rootElementRef.current;\n root.classList.add(gridClasses.autosizing);\n columns.forEach(column => {\n const cells = findGridCells(apiRef.current, column.field);\n const widths = cells.map(cell => {\n return cell.getBoundingClientRect().width ?? 0;\n });\n const filteredWidths = options.includeOutliers ? widths : excludeOutliers(widths, options.outliersFactor);\n if (options.includeHeaders) {\n const header = findGridHeader(apiRef.current, column.field);\n if (header) {\n const title = header.querySelector(`.${gridClasses.columnHeaderTitle}`);\n const content = header.querySelector(`.${gridClasses.columnHeaderTitleContainerContent}`);\n const iconContainer = header.querySelector(`.${gridClasses.iconButtonContainer}`);\n const menuContainer = header.querySelector(`.${gridClasses.menuIcon}`);\n const element = title ?? content;\n const style = window.getComputedStyle(header, null);\n const paddingWidth = parseInt(style.paddingLeft, 10) + parseInt(style.paddingRight, 10);\n const contentWidth = element.scrollWidth + 1;\n const width = contentWidth + paddingWidth + (iconContainer?.clientWidth ?? 0) + (menuContainer?.clientWidth ?? 0);\n filteredWidths.push(width);\n }\n }\n const hasColumnMin = column.minWidth !== -Infinity && column.minWidth !== undefined;\n const hasColumnMax = column.maxWidth !== Infinity && column.maxWidth !== undefined;\n const min = hasColumnMin ? column.minWidth : 0;\n const max = hasColumnMax ? column.maxWidth : Infinity;\n const maxContent = filteredWidths.length === 0 ? 0 : Math.max(...filteredWidths);\n widthByField[column.field] = clamp(maxContent, min, max);\n });\n root.classList.remove(gridClasses.autosizing);\n return widthByField;\n}\nexport const columnResizeStateInitializer = state => _extends({}, state, {\n columnResize: {\n resizingColumnField: ''\n }\n});\nfunction createResizeRefs() {\n return {\n colDef: undefined,\n initialColWidth: 0,\n initialTotalWidth: 0,\n previousMouseClickEvent: undefined,\n columnHeaderElement: undefined,\n headerFilterElement: undefined,\n groupHeaderElements: [],\n cellElements: [],\n leftPinnedCellsAfter: [],\n rightPinnedCellsBefore: [],\n fillerLeft: undefined,\n fillerRight: undefined,\n leftPinnedHeadersAfter: [],\n rightPinnedHeadersBefore: []\n };\n}\n\n/**\n * @requires useGridColumns (method, event)\n * TODO: improve experience for last column\n */\nexport const useGridColumnResize = (apiRef, props) => {\n const isRtl = useRtl();\n const logger = useGridLogger(apiRef, 'useGridColumnResize');\n const refs = useLazyRef(createResizeRefs).current;\n\n // To improve accessibility, the separator has padding on both sides.\n // Clicking inside the padding area should be treated as a click in the separator.\n // This ref stores the offset between the click and the separator.\n const initialOffsetToSeparator = React.useRef(null);\n const resizeDirection = React.useRef(null);\n const stopResizeEventTimeout = useTimeout();\n const touchId = React.useRef(undefined);\n const updateWidth = newWidth => {\n logger.debug(`Updating width to ${newWidth} for col ${refs.colDef.field}`);\n const prevWidth = refs.columnHeaderElement.offsetWidth;\n const widthDiff = newWidth - prevWidth;\n const columnWidthDiff = newWidth - refs.initialColWidth;\n if (columnWidthDiff > 0) {\n const newTotalWidth = refs.initialTotalWidth + columnWidthDiff;\n apiRef.current.rootElementRef?.current?.style.setProperty('--DataGrid-rowWidth', `${newTotalWidth}px`);\n }\n refs.colDef.computedWidth = newWidth;\n refs.colDef.width = newWidth;\n refs.colDef.flex = 0;\n refs.columnHeaderElement.style.width = `${newWidth}px`;\n const headerFilterElement = refs.headerFilterElement;\n if (headerFilterElement) {\n headerFilterElement.style.width = `${newWidth}px`;\n }\n refs.groupHeaderElements.forEach(element => {\n const div = element;\n let finalWidth;\n if (div.getAttribute('aria-colspan') === '1') {\n finalWidth = `${newWidth}px`;\n } else {\n // Cell with colspan > 1 cannot be just updated width new width.\n // Instead, we add width diff to the current width.\n finalWidth = `${div.offsetWidth + widthDiff}px`;\n }\n div.style.width = finalWidth;\n });\n refs.cellElements.forEach(element => {\n const div = element;\n let finalWidth;\n if (div.getAttribute('aria-colspan') === '1') {\n finalWidth = `${newWidth}px`;\n } else {\n // Cell with colspan > 1 cannot be just updated width new width.\n // Instead, we add width diff to the current width.\n finalWidth = `${div.offsetWidth + widthDiff}px`;\n }\n div.style.setProperty('--width', finalWidth);\n });\n const pinnedPosition = apiRef.current.unstable_applyPipeProcessors('isColumnPinned', false, refs.colDef.field);\n if (pinnedPosition === GridPinnedColumnPosition.LEFT) {\n updateProperty(refs.fillerLeft, 'width', widthDiff);\n refs.leftPinnedCellsAfter.forEach(cell => {\n updateProperty(cell, 'left', widthDiff);\n });\n refs.leftPinnedHeadersAfter.forEach(header => {\n updateProperty(header, 'left', widthDiff);\n });\n }\n if (pinnedPosition === GridPinnedColumnPosition.RIGHT) {\n updateProperty(refs.fillerRight, 'width', widthDiff);\n refs.rightPinnedCellsBefore.forEach(cell => {\n updateProperty(cell, 'right', widthDiff);\n });\n refs.rightPinnedHeadersBefore.forEach(header => {\n updateProperty(header, 'right', widthDiff);\n });\n }\n };\n const finishResize = nativeEvent => {\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n stopListening();\n\n // Prevent double-clicks from being interpreted as two separate clicks\n if (refs.previousMouseClickEvent) {\n const prevEvent = refs.previousMouseClickEvent;\n const prevTimeStamp = prevEvent.timeStamp;\n const prevClientX = prevEvent.clientX;\n const prevClientY = prevEvent.clientY;\n\n // Check if the current event is part of a double-click\n if (nativeEvent.timeStamp - prevTimeStamp < 300 && nativeEvent.clientX === prevClientX && nativeEvent.clientY === prevClientY) {\n refs.previousMouseClickEvent = undefined;\n apiRef.current.publishEvent('columnResizeStop', null, nativeEvent);\n return;\n }\n }\n if (refs.colDef) {\n apiRef.current.setColumnWidth(refs.colDef.field, refs.colDef.width);\n logger.debug(`Updating col ${refs.colDef.field} with new width: ${refs.colDef.width}`);\n\n // Since during resizing we update the columns width outside of React, React is unable to\n // reapply the right style properties. We need to sync the state manually.\n // So we reapply the same logic as in https://github.com/mui/mui-x/blob/0511bf65543ca05d2602a5a3e0a6156f2fc8e759/packages/x-data-grid/src/hooks/features/columnHeaders/useGridColumnHeaders.tsx#L405\n const columnsState = gridColumnsStateSelector(apiRef);\n refs.groupHeaderElements.forEach(element => {\n const fields = getFieldsFromGroupHeaderElem(element);\n const div = element;\n const newWidth = fields.reduce((acc, field) => {\n if (columnsState.columnVisibilityModel[field] !== false) {\n return acc + columnsState.lookup[field].computedWidth;\n }\n return acc;\n }, 0);\n const finalWidth = `${newWidth}px`;\n div.style.width = finalWidth;\n });\n }\n stopResizeEventTimeout.start(0, () => {\n apiRef.current.publishEvent('columnResizeStop', null, nativeEvent);\n });\n };\n const storeReferences = (colDef, separator, xStart) => {\n const root = apiRef.current.rootElementRef.current;\n refs.initialColWidth = colDef.computedWidth;\n refs.initialTotalWidth = apiRef.current.getRootDimensions().rowWidth;\n refs.colDef = colDef;\n refs.columnHeaderElement = findHeaderElementFromField(apiRef.current.columnHeadersContainerRef.current, colDef.field);\n const headerFilterElement = root.querySelector(`.${gridClasses.headerFilterRow} [data-field=\"${escapeOperandAttributeSelector(colDef.field)}\"]`);\n if (headerFilterElement) {\n refs.headerFilterElement = headerFilterElement;\n }\n refs.groupHeaderElements = findGroupHeaderElementsFromField(apiRef.current.columnHeadersContainerRef?.current, colDef.field);\n refs.cellElements = findGridCellElementsFromCol(refs.columnHeaderElement, apiRef.current);\n refs.fillerLeft = findGridElement(apiRef.current, isRtl ? 'filler--pinnedRight' : 'filler--pinnedLeft');\n refs.fillerRight = findGridElement(apiRef.current, isRtl ? 'filler--pinnedLeft' : 'filler--pinnedRight');\n const pinnedPosition = apiRef.current.unstable_applyPipeProcessors('isColumnPinned', false, refs.colDef.field);\n refs.leftPinnedCellsAfter = pinnedPosition !== GridPinnedColumnPosition.LEFT ? [] : findLeftPinnedCellsAfterCol(apiRef.current, refs.columnHeaderElement, isRtl);\n refs.rightPinnedCellsBefore = pinnedPosition !== GridPinnedColumnPosition.RIGHT ? [] : findRightPinnedCellsBeforeCol(apiRef.current, refs.columnHeaderElement, isRtl);\n refs.leftPinnedHeadersAfter = pinnedPosition !== GridPinnedColumnPosition.LEFT ? [] : findLeftPinnedHeadersAfterCol(apiRef.current, refs.columnHeaderElement, isRtl);\n refs.rightPinnedHeadersBefore = pinnedPosition !== GridPinnedColumnPosition.RIGHT ? [] : findRightPinnedHeadersBeforeCol(apiRef.current, refs.columnHeaderElement, isRtl);\n resizeDirection.current = getResizeDirection(separator, isRtl);\n initialOffsetToSeparator.current = computeOffsetToSeparator(xStart, refs.columnHeaderElement.getBoundingClientRect(), resizeDirection.current);\n };\n const handleResizeMouseUp = useEventCallback(finishResize);\n const handleResizeMouseMove = useEventCallback(nativeEvent => {\n // Cancel move in case some other element consumed a mouseup event and it was not fired.\n if (nativeEvent.buttons === 0) {\n handleResizeMouseUp(nativeEvent);\n return;\n }\n let newWidth = computeNewWidth(initialOffsetToSeparator.current, nativeEvent.clientX, refs.columnHeaderElement.getBoundingClientRect(), resizeDirection.current);\n newWidth = clamp(newWidth, refs.colDef.minWidth, refs.colDef.maxWidth);\n updateWidth(newWidth);\n const params = {\n element: refs.columnHeaderElement,\n colDef: refs.colDef,\n width: newWidth\n };\n apiRef.current.publishEvent('columnResize', params, nativeEvent);\n });\n const handleTouchEnd = useEventCallback(nativeEvent => {\n const finger = trackFinger(nativeEvent, touchId.current);\n if (!finger) {\n return;\n }\n finishResize(nativeEvent);\n });\n const handleTouchMove = useEventCallback(nativeEvent => {\n const finger = trackFinger(nativeEvent, touchId.current);\n if (!finger) {\n return;\n }\n\n // Cancel move in case some other element consumed a touchmove event and it was not fired.\n if (nativeEvent.type === 'mousemove' && nativeEvent.buttons === 0) {\n handleTouchEnd(nativeEvent);\n return;\n }\n let newWidth = computeNewWidth(initialOffsetToSeparator.current, finger.x, refs.columnHeaderElement.getBoundingClientRect(), resizeDirection.current);\n newWidth = clamp(newWidth, refs.colDef.minWidth, refs.colDef.maxWidth);\n updateWidth(newWidth);\n const params = {\n element: refs.columnHeaderElement,\n colDef: refs.colDef,\n width: newWidth\n };\n apiRef.current.publishEvent('columnResize', params, nativeEvent);\n });\n const handleTouchStart = useEventCallback(event => {\n const cellSeparator = findParentElementFromClassName(event.target, gridClasses['columnSeparator--resizable']);\n // Let the event bubble if the target is not a col separator\n if (!cellSeparator) {\n return;\n }\n const touch = event.changedTouches[0];\n if (touch != null) {\n // A number that uniquely identifies the current finger in the touch session.\n touchId.current = touch.identifier;\n }\n const columnHeaderElement = findParentElementFromClassName(event.target, gridClasses.columnHeader);\n const field = getFieldFromHeaderElem(columnHeaderElement);\n const colDef = apiRef.current.getColumn(field);\n logger.debug(`Start Resize on col ${colDef.field}`);\n apiRef.current.publishEvent('columnResizeStart', {\n field\n }, event);\n storeReferences(colDef, cellSeparator, touch.clientX);\n const doc = ownerDocument(event.currentTarget);\n doc.addEventListener('touchmove', handleTouchMove);\n doc.addEventListener('touchend', handleTouchEnd);\n });\n const stopListening = React.useCallback(() => {\n const doc = ownerDocument(apiRef.current.rootElementRef.current);\n doc.body.style.removeProperty('cursor');\n doc.removeEventListener('mousemove', handleResizeMouseMove);\n doc.removeEventListener('mouseup', handleResizeMouseUp);\n doc.removeEventListener('touchmove', handleTouchMove);\n doc.removeEventListener('touchend', handleTouchEnd);\n // The click event runs right after the mouseup event, we want to wait until it\n // has been canceled before removing our handler.\n setTimeout(() => {\n doc.removeEventListener('click', preventClick, true);\n }, 100);\n if (refs.columnHeaderElement) {\n refs.columnHeaderElement.style.pointerEvents = 'unset';\n }\n }, [apiRef, refs, handleResizeMouseMove, handleResizeMouseUp, handleTouchMove, handleTouchEnd]);\n const handleResizeStart = React.useCallback(({\n field\n }) => {\n apiRef.current.setState(state => _extends({}, state, {\n columnResize: _extends({}, state.columnResize, {\n resizingColumnField: field\n })\n }));\n }, [apiRef]);\n const handleResizeStop = React.useCallback(() => {\n apiRef.current.setState(state => _extends({}, state, {\n columnResize: _extends({}, state.columnResize, {\n resizingColumnField: ''\n })\n }));\n }, [apiRef]);\n const handleColumnResizeMouseDown = useEventCallback(({\n colDef\n }, event) => {\n // Only handle left clicks\n if (event.button !== 0) {\n return;\n }\n\n // Skip if the column isn't resizable\n if (!event.currentTarget.classList.contains(gridClasses['columnSeparator--resizable'])) {\n return;\n }\n\n // Avoid text selection\n event.preventDefault();\n logger.debug(`Start Resize on col ${colDef.field}`);\n apiRef.current.publishEvent('columnResizeStart', {\n field: colDef.field\n }, event);\n storeReferences(colDef, event.currentTarget, event.clientX);\n const doc = ownerDocument(apiRef.current.rootElementRef.current);\n doc.body.style.cursor = 'col-resize';\n refs.previousMouseClickEvent = event.nativeEvent;\n doc.addEventListener('mousemove', handleResizeMouseMove);\n doc.addEventListener('mouseup', handleResizeMouseUp);\n\n // Prevent the click event if we have resized the column.\n // Fixes https://github.com/mui/mui-x/issues/4777\n doc.addEventListener('click', preventClick, true);\n });\n const handleColumnSeparatorDoubleClick = useEventCallback((params, event) => {\n if (props.disableAutosize) {\n return;\n }\n\n // Only handle left clicks\n if (event.button !== 0) {\n return;\n }\n const column = apiRef.current.state.columns.lookup[params.field];\n if (column.resizable === false) {\n return;\n }\n apiRef.current.autosizeColumns(_extends({}, props.autosizeOptions, {\n disableColumnVirtualization: false,\n columns: [column.field]\n }));\n });\n\n /**\n * API METHODS\n */\n\n const columnVirtualizationDisabled = useColumnVirtualizationDisabled(apiRef);\n const isAutosizingRef = React.useRef(false);\n const autosizeColumns = React.useCallback(async userOptions => {\n const root = apiRef.current.rootElementRef?.current;\n if (!root) {\n return;\n }\n if (isAutosizingRef.current) {\n return;\n }\n isAutosizingRef.current = true;\n const state = gridColumnsStateSelector(apiRef);\n const options = _extends({}, DEFAULT_GRID_AUTOSIZE_OPTIONS, userOptions, {\n columns: userOptions?.columns ?? state.orderedFields\n });\n options.columns = options.columns.filter(c => state.columnVisibilityModel[c] !== false);\n const columns = options.columns.map(c => apiRef.current.state.columns.lookup[c]);\n try {\n if (!props.disableVirtualization && options.disableColumnVirtualization) {\n apiRef.current.unstable_setColumnVirtualization(false);\n await columnVirtualizationDisabled();\n }\n const widthByField = extractColumnWidths(apiRef, options, columns);\n const newColumns = columns.map(column => _extends({}, column, {\n width: widthByField[column.field],\n computedWidth: widthByField[column.field],\n flex: 0\n }));\n if (options.expand) {\n const visibleColumns = state.orderedFields.map(field => state.lookup[field]).filter(c => state.columnVisibilityModel[c.field] !== false);\n const totalWidth = visibleColumns.reduce((total, column) => total + (widthByField[column.field] ?? column.computedWidth ?? column.width), 0);\n const dimensions = apiRef.current.getRootDimensions();\n const availableWidth = dimensions.viewportInnerSize.width;\n const remainingWidth = availableWidth - totalWidth;\n if (remainingWidth > 0) {\n const widthPerColumn = remainingWidth / (newColumns.length || 1);\n newColumns.forEach(column => {\n column.width += widthPerColumn;\n column.computedWidth += widthPerColumn;\n });\n }\n }\n apiRef.current.updateColumns(newColumns);\n newColumns.forEach((newColumn, index) => {\n if (newColumn.width !== columns[index].width) {\n const width = newColumn.width;\n apiRef.current.publishEvent('columnWidthChange', {\n element: apiRef.current.getColumnHeaderElement(newColumn.field),\n colDef: newColumn,\n width\n });\n }\n });\n } finally {\n if (!props.disableVirtualization) {\n apiRef.current.unstable_setColumnVirtualization(true);\n }\n isAutosizingRef.current = false;\n }\n }, [apiRef, columnVirtualizationDisabled, props.disableVirtualization]);\n\n /**\n * EFFECTS\n */\n\n React.useEffect(() => stopListening, [stopListening]);\n useOnMount(() => {\n if (props.autosizeOnMount) {\n Promise.resolve().then(() => {\n apiRef.current.autosizeColumns(props.autosizeOptions);\n });\n }\n });\n useGridNativeEventListener(apiRef, () => apiRef.current.columnHeadersContainerRef?.current, 'touchstart', handleTouchStart, {\n passive: true\n });\n useGridApiMethod(apiRef, {\n autosizeColumns\n }, 'public');\n useGridEvent(apiRef, 'columnResizeStop', handleResizeStop);\n useGridEvent(apiRef, 'columnResizeStart', handleResizeStart);\n useGridEvent(apiRef, 'columnSeparatorMouseDown', handleColumnResizeMouseDown);\n useGridEvent(apiRef, 'columnSeparatorDoubleClick', handleColumnSeparatorDoubleClick);\n useGridEventPriority(apiRef, 'columnResize', props.onColumnResize);\n useGridEventPriority(apiRef, 'columnWidthChange', props.onColumnWidthChange);\n};\nfunction updateProperty(element, property, delta) {\n if (!element) {\n return;\n }\n element.style[property] = `${parseInt(element.style[property], 10) + delta}px`;\n}","export function getUnprocessedRange(testRange, processedRange) {\n if (testRange.firstRowIndex >= processedRange.firstRowIndex && testRange.lastRowIndex <= processedRange.lastRowIndex) {\n return null;\n }\n // Overflowing at the end\n // Example: testRange={ firstRowIndex: 10, lastRowIndex: 20 }, processedRange={ firstRowIndex: 0, lastRowIndex: 15 }\n // Unprocessed Range={ firstRowIndex: 16, lastRowIndex: 20 }\n if (testRange.firstRowIndex >= processedRange.firstRowIndex && testRange.lastRowIndex > processedRange.lastRowIndex) {\n return {\n firstRowIndex: processedRange.lastRowIndex,\n lastRowIndex: testRange.lastRowIndex\n };\n }\n // Overflowing at the beginning\n // Example: testRange={ firstRowIndex: 0, lastRowIndex: 20 }, processedRange={ firstRowIndex: 16, lastRowIndex: 30 }\n // Unprocessed Range={ firstRowIndex: 0, lastRowIndex: 15 }\n if (testRange.firstRowIndex < processedRange.firstRowIndex && testRange.lastRowIndex <= processedRange.lastRowIndex) {\n return {\n firstRowIndex: testRange.firstRowIndex,\n lastRowIndex: processedRange.firstRowIndex - 1\n };\n }\n // TODO: Should return two ranges handle overflowing at both ends ?\n return testRange;\n}\nexport function isRowContextInitialized(renderContext) {\n return renderContext.firstRowIndex !== 0 || renderContext.lastRowIndex !== 0;\n}\nexport function isRowRangeUpdated(range1, range2) {\n return range1.firstRowIndex !== range2.firstRowIndex || range1.lastRowIndex !== range2.lastRowIndex;\n}\nexport const getCellValue = (row, colDef, apiRef) => {\n if (!row) {\n return null;\n }\n let cellValue = row[colDef.field];\n const valueGetter = colDef.rowSpanValueGetter ?? colDef.valueGetter;\n if (valueGetter) {\n cellValue = valueGetter(cellValue, row, colDef, apiRef);\n }\n return cellValue;\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useLazyRef from '@mui/utils/useLazyRef';\nimport { GRID_DETAIL_PANEL_TOGGLE_FIELD } from \"../../../internals/constants.js\";\nimport { gridVisibleColumnDefinitionsSelector } from \"../columns/gridColumnsSelector.js\";\nimport { getVisibleRows } from \"../../utils/useGridVisibleRows.js\";\nimport { gridRenderContextSelector } from \"../virtualization/gridVirtualizationSelectors.js\";\nimport { getUnprocessedRange, isRowContextInitialized, getCellValue } from \"./gridRowSpanningUtils.js\";\nimport { GRID_CHECKBOX_SELECTION_FIELD } from \"../../../colDef/gridCheckboxSelectionColDef.js\";\nimport { useGridEvent } from \"../../utils/useGridEvent.js\";\nimport { runIf } from \"../../../utils/utils.js\";\nimport { gridPageSizeSelector } from \"../pagination/index.js\";\nimport { gridDataRowIdsSelector } from \"./gridRowsSelector.js\";\nconst EMPTY_STATE = {\n spannedCells: {},\n hiddenCells: {},\n hiddenCellOriginMap: {}\n};\nconst EMPTY_RANGE = {\n firstRowIndex: 0,\n lastRowIndex: 0\n};\nconst skippedFields = new Set([GRID_CHECKBOX_SELECTION_FIELD, '__reorder__', GRID_DETAIL_PANEL_TOGGLE_FIELD]);\n/**\n * Default number of rows to process during state initialization to avoid flickering.\n * Number `20` is arbitrarily chosen to be large enough to cover most of the cases without\n * compromising performance.\n */\nconst DEFAULT_ROWS_TO_PROCESS = 20;\nconst computeRowSpanningState = (apiRef, colDefs, visibleRows, range, rangeToProcess, resetState, processedRange) => {\n const spannedCells = resetState ? {} : _extends({}, apiRef.current.state.rowSpanning.spannedCells);\n const hiddenCells = resetState ? {} : _extends({}, apiRef.current.state.rowSpanning.hiddenCells);\n const hiddenCellOriginMap = resetState ? {} : _extends({}, apiRef.current.state.rowSpanning.hiddenCellOriginMap);\n if (resetState) {\n processedRange = EMPTY_RANGE;\n }\n colDefs.forEach(colDef => {\n if (skippedFields.has(colDef.field)) {\n return;\n }\n for (let index = rangeToProcess.firstRowIndex; index < rangeToProcess.lastRowIndex; index += 1) {\n const row = visibleRows[index];\n if (hiddenCells[row.id]?.[colDef.field]) {\n continue;\n }\n const cellValue = getCellValue(row.model, colDef, apiRef);\n if (cellValue == null) {\n continue;\n }\n let spannedRowId = row.id;\n let spannedRowIndex = index;\n let rowSpan = 0;\n\n // For first index, also scan in the previous rows to handle the reset state case e.g by sorting\n const backwardsHiddenCells = [];\n if (index === rangeToProcess.firstRowIndex) {\n let prevIndex = index - 1;\n let prevRowEntry = visibleRows[prevIndex];\n while (prevIndex >= range.firstRowIndex && prevRowEntry && getCellValue(prevRowEntry.model, colDef, apiRef) === cellValue) {\n const currentRow = visibleRows[prevIndex + 1];\n if (hiddenCells[currentRow.id]) {\n hiddenCells[currentRow.id][colDef.field] = true;\n } else {\n hiddenCells[currentRow.id] = {\n [colDef.field]: true\n };\n }\n backwardsHiddenCells.push(index);\n rowSpan += 1;\n spannedRowId = prevRowEntry.id;\n spannedRowIndex = prevIndex;\n prevIndex -= 1;\n prevRowEntry = visibleRows[prevIndex];\n }\n }\n backwardsHiddenCells.forEach(hiddenCellIndex => {\n if (hiddenCellOriginMap[hiddenCellIndex]) {\n hiddenCellOriginMap[hiddenCellIndex][colDef.field] = spannedRowIndex;\n } else {\n hiddenCellOriginMap[hiddenCellIndex] = {\n [colDef.field]: spannedRowIndex\n };\n }\n });\n\n // Scan the next rows\n let relativeIndex = index + 1;\n while (relativeIndex <= range.lastRowIndex && visibleRows[relativeIndex] && getCellValue(visibleRows[relativeIndex].model, colDef, apiRef) === cellValue) {\n const currentRow = visibleRows[relativeIndex];\n if (hiddenCells[currentRow.id]) {\n hiddenCells[currentRow.id][colDef.field] = true;\n } else {\n hiddenCells[currentRow.id] = {\n [colDef.field]: true\n };\n }\n if (hiddenCellOriginMap[relativeIndex]) {\n hiddenCellOriginMap[relativeIndex][colDef.field] = spannedRowIndex;\n } else {\n hiddenCellOriginMap[relativeIndex] = {\n [colDef.field]: spannedRowIndex\n };\n }\n relativeIndex += 1;\n rowSpan += 1;\n }\n if (rowSpan > 0) {\n if (spannedCells[spannedRowId]) {\n spannedCells[spannedRowId][colDef.field] = rowSpan + 1;\n } else {\n spannedCells[spannedRowId] = {\n [colDef.field]: rowSpan + 1\n };\n }\n }\n }\n processedRange = {\n firstRowIndex: Math.min(processedRange.firstRowIndex, rangeToProcess.firstRowIndex),\n lastRowIndex: Math.max(processedRange.lastRowIndex, rangeToProcess.lastRowIndex)\n };\n });\n return {\n spannedCells,\n hiddenCells,\n hiddenCellOriginMap,\n processedRange\n };\n};\nconst getInitialRangeToProcess = (props, apiRef) => {\n const rowCount = gridDataRowIdsSelector(apiRef).length;\n if (props.pagination) {\n const pageSize = gridPageSizeSelector(apiRef);\n let paginationLastRowIndex = DEFAULT_ROWS_TO_PROCESS;\n if (pageSize > 0) {\n paginationLastRowIndex = pageSize - 1;\n }\n return {\n firstRowIndex: 0,\n lastRowIndex: Math.min(paginationLastRowIndex, rowCount)\n };\n }\n return {\n firstRowIndex: 0,\n lastRowIndex: Math.min(DEFAULT_ROWS_TO_PROCESS, rowCount)\n };\n};\n\n/**\n * @requires columnsStateInitializer (method) - should be initialized before\n * @requires rowsStateInitializer (method) - should be initialized before\n * @requires filterStateInitializer (method) - should be initialized before\n */\nexport const rowSpanningStateInitializer = (state, props, apiRef) => {\n if (!props.rowSpanning) {\n return _extends({}, state, {\n rowSpanning: EMPTY_STATE\n });\n }\n const rowIds = state.rows.dataRowIds || [];\n const orderedFields = state.columns.orderedFields || [];\n const dataRowIdToModelLookup = state.rows.dataRowIdToModelLookup;\n const columnsLookup = state.columns.lookup;\n const isFilteringPending = Boolean(state.filter.filterModel.items.length) || Boolean(state.filter.filterModel.quickFilterValues?.length);\n if (!rowIds.length || !orderedFields.length || !dataRowIdToModelLookup || !columnsLookup || isFilteringPending) {\n return _extends({}, state, {\n rowSpanning: EMPTY_STATE\n });\n }\n const rangeToProcess = getInitialRangeToProcess(props, apiRef);\n const rows = rowIds.map(id => ({\n id,\n model: dataRowIdToModelLookup[id]\n }));\n const colDefs = orderedFields.map(field => columnsLookup[field]);\n const {\n spannedCells,\n hiddenCells,\n hiddenCellOriginMap\n } = computeRowSpanningState(apiRef, colDefs, rows, rangeToProcess, rangeToProcess, true, EMPTY_RANGE);\n return _extends({}, state, {\n rowSpanning: {\n spannedCells,\n hiddenCells,\n hiddenCellOriginMap\n }\n });\n};\nexport const useGridRowSpanning = (apiRef, props) => {\n const processedRange = useLazyRef(() => {\n return apiRef.current.state.rowSpanning !== EMPTY_STATE ? getInitialRangeToProcess(props, apiRef) : EMPTY_RANGE;\n });\n const updateRowSpanningState = React.useCallback((renderContext, resetState = false) => {\n const {\n range,\n rows: visibleRows\n } = getVisibleRows(apiRef, {\n pagination: props.pagination,\n paginationMode: props.paginationMode\n });\n if (range === null || !isRowContextInitialized(renderContext)) {\n return;\n }\n if (resetState) {\n processedRange.current = EMPTY_RANGE;\n }\n const rangeToProcess = getUnprocessedRange({\n firstRowIndex: renderContext.firstRowIndex,\n lastRowIndex: Math.min(renderContext.lastRowIndex, range.lastRowIndex + 1)\n }, processedRange.current);\n if (rangeToProcess === null) {\n return;\n }\n const colDefs = gridVisibleColumnDefinitionsSelector(apiRef);\n const {\n spannedCells,\n hiddenCells,\n hiddenCellOriginMap,\n processedRange: newProcessedRange\n } = computeRowSpanningState(apiRef, colDefs, visibleRows, range, rangeToProcess, resetState, processedRange.current);\n processedRange.current = newProcessedRange;\n const newSpannedCellsCount = Object.keys(spannedCells).length;\n const newHiddenCellsCount = Object.keys(hiddenCells).length;\n const currentSpannedCellsCount = Object.keys(apiRef.current.state.rowSpanning.spannedCells).length;\n const currentHiddenCellsCount = Object.keys(apiRef.current.state.rowSpanning.hiddenCells).length;\n const shouldUpdateState = resetState || newSpannedCellsCount !== currentSpannedCellsCount || newHiddenCellsCount !== currentHiddenCellsCount;\n const hasNoSpannedCells = newSpannedCellsCount === 0 && currentSpannedCellsCount === 0;\n if (!shouldUpdateState || hasNoSpannedCells) {\n return;\n }\n apiRef.current.setState(state => {\n return _extends({}, state, {\n rowSpanning: {\n spannedCells,\n hiddenCells,\n hiddenCellOriginMap\n }\n });\n });\n }, [apiRef, processedRange, props.pagination, props.paginationMode]);\n\n // Reset events trigger a full re-computation of the row spanning state:\n // - The `unstable_rowSpanning` prop is updated (feature flag)\n // - The filtering is applied\n // - The sorting is applied\n // - The `paginationModel` is updated\n // - The rows are updated\n const resetRowSpanningState = React.useCallback(() => {\n const renderContext = gridRenderContextSelector(apiRef);\n if (!isRowContextInitialized(renderContext)) {\n return;\n }\n updateRowSpanningState(renderContext, true);\n }, [apiRef, updateRowSpanningState]);\n useGridEvent(apiRef, 'renderedRowsIntervalChange', runIf(props.rowSpanning, updateRowSpanningState));\n useGridEvent(apiRef, 'sortedRowsSet', runIf(props.rowSpanning, resetRowSpanningState));\n useGridEvent(apiRef, 'paginationModelChange', runIf(props.rowSpanning, resetRowSpanningState));\n useGridEvent(apiRef, 'filteredRowsSet', runIf(props.rowSpanning, resetRowSpanningState));\n useGridEvent(apiRef, 'columnsChange', runIf(props.rowSpanning, resetRowSpanningState));\n React.useEffect(() => {\n if (!props.rowSpanning) {\n if (apiRef.current.state.rowSpanning !== EMPTY_STATE) {\n apiRef.current.setState(state => _extends({}, state, {\n rowSpanning: EMPTY_STATE\n }));\n }\n } else if (apiRef.current.state.rowSpanning === EMPTY_STATE) {\n resetRowSpanningState();\n }\n }, [apiRef, resetRowSpanningState, props.rowSpanning]);\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport { warnOnce } from '@mui/x-internals/warning';\nimport { gridDimensionsSelector } from \"../dimensions/index.js\";\nimport { useGridEvent } from \"../../utils/useGridEvent.js\";\nexport const listViewStateInitializer = (state, props, apiRef) => _extends({}, state, {\n listViewColumn: props.listViewColumn ? _extends({}, props.listViewColumn, {\n computedWidth: getListColumnWidth(apiRef)\n }) : undefined\n});\nexport function useGridListView(apiRef, props) {\n /*\n * EVENTS\n */\n const updateListColumnWidth = () => {\n apiRef.current.setState(state => {\n if (!state.listViewColumn) {\n return state;\n }\n return _extends({}, state, {\n listViewColumn: _extends({}, state.listViewColumn, {\n computedWidth: getListColumnWidth(apiRef)\n })\n });\n });\n };\n const prevInnerWidth = React.useRef(null);\n const handleGridSizeChange = viewportInnerSize => {\n if (prevInnerWidth.current !== viewportInnerSize.width) {\n prevInnerWidth.current = viewportInnerSize.width;\n updateListColumnWidth();\n }\n };\n useGridEvent(apiRef, 'viewportInnerSizeChange', handleGridSizeChange);\n useGridEvent(apiRef, 'columnVisibilityModelChange', updateListColumnWidth);\n\n /*\n * EFFECTS\n */\n useEnhancedEffect(() => {\n const listColumn = props.listViewColumn;\n if (listColumn) {\n apiRef.current.setState(state => {\n return _extends({}, state, {\n listViewColumn: _extends({}, listColumn, {\n computedWidth: getListColumnWidth(apiRef)\n })\n });\n });\n }\n }, [apiRef, props.listViewColumn]);\n React.useEffect(() => {\n if (props.listView && !props.listViewColumn) {\n warnOnce(['MUI X: The `listViewColumn` prop must be set if `listView` is enabled.', 'To fix, pass a column definition to the `listViewColumn` prop, e.g. `{ field: \"example\", renderCell: (params) => <div>{params.row.id}</div> }`.', 'For more details, see https://mui.com/x/react-data-grid/list-view/']);\n }\n }, [props.listView, props.listViewColumn]);\n}\nfunction getListColumnWidth(apiRef) {\n return gridDimensionsSelector(apiRef).viewportInnerSize.width;\n}","import { gridFilterModelSelector } from \"../filter/gridFilterSelector.js\";\nimport { gridSortModelSelector } from \"../sorting/gridSortingSelector.js\";\nimport { gridPaginationModelSelector } from \"../pagination/gridPaginationSelector.js\";\nimport { createSelector } from \"../../../utils/createSelector.js\";\nexport const gridGetRowsParamsSelector = createSelector(gridFilterModelSelector, gridSortModelSelector, gridPaginationModelSelector, (filterModel, sortModel, paginationModel) => ({\n groupKeys: [],\n paginationModel,\n sortModel,\n filterModel,\n start: paginationModel.page * paginationModel.pageSize,\n end: paginationModel.page * paginationModel.pageSize + paginationModel.pageSize - 1\n}));","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport let DataSourceRowsUpdateStrategy = /*#__PURE__*/function (DataSourceRowsUpdateStrategy) {\n DataSourceRowsUpdateStrategy[\"Default\"] = \"set-new-rows\";\n DataSourceRowsUpdateStrategy[\"LazyLoading\"] = \"replace-row-range\";\n return DataSourceRowsUpdateStrategy;\n}({});\n\n/**\n * Provides better cache hit rate by:\n * 1. Splitting the data into smaller chunks to be stored in the cache (cache `set`)\n * 2. Merging multiple cache entries into a single response to get the required chunk (cache `get`)\n */\nexport class CacheChunkManager {\n /**\n * @param chunkSize The number of rows to store in each cache entry.\n * If not set, the whole array will be stored in a single cache entry.\n * Setting this value to smallest page size will result in better cache hit rate.\n * Has no effect if cursor pagination is used.\n */\n constructor(chunkSize) {\n this.chunkSize = void 0;\n this.getCacheKeys = key => {\n if (this.chunkSize < 1 || typeof key.start !== 'number') {\n return [key];\n }\n\n // split the range into chunks\n const chunkedKeys = [];\n for (let i = key.start; i < key.end; i += this.chunkSize) {\n const end = Math.min(i + this.chunkSize - 1, key.end);\n chunkedKeys.push(_extends({}, key, {\n start: i,\n end\n }));\n }\n return chunkedKeys;\n };\n this.splitResponse = (key, response) => {\n const cacheKeys = this.getCacheKeys(key);\n const responses = new Map();\n cacheKeys.forEach(chunkKey => {\n const isLastChunk = chunkKey.end === key.end;\n const responseSlice = _extends({}, response, {\n pageInfo: _extends({}, response.pageInfo, {\n // If the original response had page info, update that information for all but last chunk and keep the original value for the last chunk\n hasNextPage: response.pageInfo?.hasNextPage !== undefined && !isLastChunk ? true : response.pageInfo?.hasNextPage,\n nextCursor: response.pageInfo?.nextCursor !== undefined && !isLastChunk ? response.rows[chunkKey.end + 1].id : response.pageInfo?.nextCursor\n }),\n rows: typeof chunkKey.start !== 'number' || typeof key.start !== 'number' ? response.rows : response.rows.slice(chunkKey.start - key.start, chunkKey.end - key.start + 1)\n });\n responses.set(chunkKey, responseSlice);\n });\n return responses;\n };\n this.chunkSize = chunkSize;\n }\n}\nCacheChunkManager.mergeResponses = responses => {\n if (responses.length === 1) {\n return responses[0];\n }\n return responses.reduce((acc, response) => ({\n rows: [...acc.rows, ...response.rows],\n rowCount: response.rowCount,\n pageInfo: response.pageInfo\n }), {\n rows: [],\n rowCount: 0,\n pageInfo: {}\n });\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useLazyRef from '@mui/utils/useLazyRef';\nimport { unstable_debounce as debounce } from '@mui/utils';\nimport { warnOnce } from '@mui/x-internals/warning';\nimport { isDeepEqual } from '@mui/x-internals/isDeepEqual';\nimport { GRID_ROOT_GROUP_ID } from \"../rows/gridRowsUtils.js\";\nimport { runIf } from \"../../../utils/utils.js\";\nimport { GridStrategyGroup } from \"../../core/strategyProcessing/index.js\";\nimport { useGridSelector } from \"../../utils/useGridSelector.js\";\nimport { gridPaginationModelSelector } from \"../pagination/gridPaginationSelector.js\";\nimport { gridGetRowsParamsSelector } from \"./gridDataSourceSelector.js\";\nimport { CacheChunkManager, DataSourceRowsUpdateStrategy } from \"./utils.js\";\nimport { GridDataSourceCacheDefault } from \"./cache.js\";\nimport { GridGetRowsError, GridUpdateRowError } from \"./gridDataSourceError.js\";\nconst noopCache = {\n clear: () => {},\n get: () => undefined,\n set: () => {}\n};\nfunction getCache(cacheProp, options = {}) {\n if (cacheProp === null) {\n return noopCache;\n }\n return cacheProp ?? new GridDataSourceCacheDefault(options);\n}\nexport const useGridDataSourceBase = (apiRef, props, options = {}) => {\n const setStrategyAvailability = React.useCallback(() => {\n apiRef.current.setStrategyAvailability(GridStrategyGroup.DataSource, DataSourceRowsUpdateStrategy.Default, props.dataSource ? () => true : () => false);\n }, [apiRef, props.dataSource]);\n const [defaultRowsUpdateStrategyActive, setDefaultRowsUpdateStrategyActive] = React.useState(false);\n const paginationModel = useGridSelector(apiRef, gridPaginationModelSelector);\n const lastRequestId = React.useRef(0);\n const onDataSourceErrorProp = props.onDataSourceError;\n const cacheChunkManager = useLazyRef(() => {\n const sortedPageSizeOptions = props.pageSizeOptions.map(option => typeof option === 'number' ? option : option.value).sort((a, b) => a - b);\n const cacheChunkSize = Math.min(paginationModel.pageSize, sortedPageSizeOptions[0]);\n return new CacheChunkManager(cacheChunkSize);\n }).current;\n const [cache, setCache] = React.useState(() => getCache(props.dataSourceCache, options.cacheOptions));\n const fetchRows = React.useCallback(async (parentId, params) => {\n const getRows = props.dataSource?.getRows;\n if (!getRows) {\n return;\n }\n if (parentId && parentId !== GRID_ROOT_GROUP_ID && props.signature !== 'DataGrid') {\n options.fetchRowChildren?.([parentId]);\n return;\n }\n options.clearDataSourceState?.();\n const fetchParams = _extends({}, gridGetRowsParamsSelector(apiRef), apiRef.current.unstable_applyPipeProcessors('getRowsParams', {}), params);\n const cacheKeys = cacheChunkManager.getCacheKeys(fetchParams);\n const responses = cacheKeys.map(cacheKey => cache.get(cacheKey));\n if (responses.every(response => response !== undefined)) {\n apiRef.current.applyStrategyProcessor('dataSourceRowsUpdate', {\n response: CacheChunkManager.mergeResponses(responses),\n fetchParams\n });\n return;\n }\n\n // Manage loading state only for the default strategy\n if (defaultRowsUpdateStrategyActive || apiRef.current.getRowsCount() === 0) {\n apiRef.current.setLoading(true);\n }\n const requestId = lastRequestId.current + 1;\n lastRequestId.current = requestId;\n try {\n const getRowsResponse = await getRows(fetchParams);\n const cacheResponses = cacheChunkManager.splitResponse(fetchParams, getRowsResponse);\n cacheResponses.forEach((response, key) => cache.set(key, response));\n if (lastRequestId.current === requestId) {\n apiRef.current.applyStrategyProcessor('dataSourceRowsUpdate', {\n response: getRowsResponse,\n fetchParams\n });\n }\n } catch (originalError) {\n if (lastRequestId.current === requestId) {\n apiRef.current.applyStrategyProcessor('dataSourceRowsUpdate', {\n error: originalError,\n fetchParams\n });\n if (typeof onDataSourceErrorProp === 'function') {\n onDataSourceErrorProp(new GridGetRowsError({\n message: originalError?.message,\n params: fetchParams,\n cause: originalError\n }));\n } else if (process.env.NODE_ENV !== 'production') {\n warnOnce(['MUI X: A call to `dataSource.getRows()` threw an error which was not handled because `onDataSourceError()` is missing.', 'To handle the error pass a callback to the `onDataSourceError` prop, for example `<DataGrid onDataSourceError={(error) => ...} />`.', 'For more detail, see https://mui.com/x/react-data-grid/server-side-data/#error-handling.'], 'error');\n }\n }\n } finally {\n if (defaultRowsUpdateStrategyActive && lastRequestId.current === requestId) {\n apiRef.current.setLoading(false);\n }\n }\n }, [cacheChunkManager, cache, apiRef, defaultRowsUpdateStrategyActive, props.dataSource?.getRows, onDataSourceErrorProp, options, props.signature]);\n const handleStrategyActivityChange = React.useCallback(() => {\n setDefaultRowsUpdateStrategyActive(apiRef.current.getActiveStrategy(GridStrategyGroup.DataSource) === DataSourceRowsUpdateStrategy.Default);\n }, [apiRef]);\n const handleDataUpdate = React.useCallback(params => {\n if ('error' in params) {\n apiRef.current.setRows([]);\n return;\n }\n const {\n response\n } = params;\n if (response.rowCount !== undefined) {\n apiRef.current.setRowCount(response.rowCount);\n }\n apiRef.current.setRows(response.rows);\n apiRef.current.unstable_applyPipeProcessors('processDataSourceRows', {\n params: params.fetchParams,\n response\n }, true);\n }, [apiRef]);\n const dataSourceUpdateRow = props.dataSource?.updateRow;\n const handleEditRowOption = options.handleEditRow;\n const editRow = React.useCallback(async params => {\n if (!dataSourceUpdateRow) {\n return undefined;\n }\n try {\n const finalRowUpdate = await dataSourceUpdateRow(params);\n if (typeof handleEditRowOption === 'function') {\n handleEditRowOption(params, finalRowUpdate);\n return finalRowUpdate;\n }\n apiRef.current.updateNestedRows([finalRowUpdate], []);\n if (finalRowUpdate && !isDeepEqual(finalRowUpdate, params.previousRow)) {\n // Reset the outdated cache, only if the row is _actually_ updated\n apiRef.current.dataSource.cache.clear();\n }\n return finalRowUpdate;\n } catch (errorThrown) {\n if (typeof onDataSourceErrorProp === 'function') {\n onDataSourceErrorProp(new GridUpdateRowError({\n message: errorThrown?.message,\n params,\n cause: errorThrown\n }));\n } else if (process.env.NODE_ENV !== 'production') {\n warnOnce(['MUI X: A call to `dataSource.updateRow()` threw an error which was not handled because `onDataSourceError()` is missing.', 'To handle the error pass a callback to the `onDataSourceError` prop, for example `<DataGrid onDataSourceError={(error) => ...} />`.', 'For more detail, see https://mui.com/x/react-data-grid/server-side-data/#error-handling.'], 'error');\n }\n throw errorThrown; // Let the caller handle the error further\n }\n }, [apiRef, dataSourceUpdateRow, onDataSourceErrorProp, handleEditRowOption]);\n const dataSourceApi = {\n dataSource: {\n fetchRows,\n cache,\n editRow\n }\n };\n const debouncedFetchRows = React.useMemo(() => debounce(fetchRows, 0), [fetchRows]);\n const isFirstRender = React.useRef(true);\n React.useEffect(() => {\n if (isFirstRender.current) {\n isFirstRender.current = false;\n return;\n }\n if (props.dataSourceCache === undefined) {\n return;\n }\n const newCache = getCache(props.dataSourceCache, options.cacheOptions);\n setCache(prevCache => prevCache !== newCache ? newCache : prevCache);\n }, [props.dataSourceCache, options.cacheOptions]);\n React.useEffect(() => {\n if (props.dataSource) {\n apiRef.current.dataSource.cache.clear();\n apiRef.current.dataSource.fetchRows();\n }\n }, [apiRef, props.dataSource]);\n return {\n api: {\n public: dataSourceApi\n },\n debouncedFetchRows,\n strategyProcessor: {\n strategyName: DataSourceRowsUpdateStrategy.Default,\n group: 'dataSourceRowsUpdate',\n processor: handleDataUpdate\n },\n setStrategyAvailability,\n cacheChunkManager,\n cache,\n events: {\n strategyAvailabilityChange: handleStrategyActivityChange,\n sortModelChange: runIf(defaultRowsUpdateStrategyActive, () => debouncedFetchRows()),\n filterModelChange: runIf(defaultRowsUpdateStrategyActive, () => debouncedFetchRows()),\n paginationModelChange: runIf(defaultRowsUpdateStrategyActive, () => debouncedFetchRows())\n }\n };\n};","import * as React from 'react';\nimport { useGridApiMethod } from \"../../utils/useGridApiMethod.js\";\nimport { useGridRegisterStrategyProcessor } from \"../../core/strategyProcessing/useGridRegisterStrategyProcessor.js\";\nimport { useGridEvent as addEventHandler } from \"../../utils/useGridEvent.js\";\nimport { useGridDataSourceBase } from \"./useGridDataSourceBase.js\";\n/**\n * Community version of the data source hook. Contains implementation of the `useGridDataSourceBase` hook.\n */\nexport const useGridDataSource = (apiRef, props) => {\n const {\n api,\n strategyProcessor,\n events,\n setStrategyAvailability\n } = useGridDataSourceBase(apiRef, props);\n useGridApiMethod(apiRef, api.public, 'public');\n useGridRegisterStrategyProcessor(apiRef, strategyProcessor.strategyName, strategyProcessor.group, strategyProcessor.processor);\n Object.entries(events).forEach(([event, handler]) => {\n addEventHandler(apiRef, event, handler);\n });\n React.useEffect(() => {\n setStrategyAvailability();\n }, [setStrategyAvailability]);\n};","import { useGridInitialization } from \"../hooks/core/useGridInitialization.js\";\nimport { useGridInitializeState } from \"../hooks/utils/useGridInitializeState.js\";\nimport { useGridClipboard } from \"../hooks/features/clipboard/useGridClipboard.js\";\nimport { columnMenuStateInitializer, useGridColumnMenu } from \"../hooks/features/columnMenu/useGridColumnMenu.js\";\nimport { useGridColumns, columnsStateInitializer } from \"../hooks/features/columns/useGridColumns.js\";\nimport { densityStateInitializer, useGridDensity } from \"../hooks/features/density/useGridDensity.js\";\nimport { useGridCsvExport } from \"../hooks/features/export/useGridCsvExport.js\";\nimport { useGridPrintExport } from \"../hooks/features/export/useGridPrintExport.js\";\nimport { useGridFilter, filterStateInitializer } from \"../hooks/features/filter/useGridFilter.js\";\nimport { focusStateInitializer, useGridFocus } from \"../hooks/features/focus/useGridFocus.js\";\nimport { useGridKeyboardNavigation } from \"../hooks/features/keyboardNavigation/useGridKeyboardNavigation.js\";\nimport { useGridPagination, paginationStateInitializer } from \"../hooks/features/pagination/useGridPagination.js\";\nimport { useGridPreferencesPanel, preferencePanelStateInitializer } from \"../hooks/features/preferencesPanel/useGridPreferencesPanel.js\";\nimport { useGridEditing, editingStateInitializer } from \"../hooks/features/editing/useGridEditing.js\";\nimport { useGridRows, rowsStateInitializer } from \"../hooks/features/rows/useGridRows.js\";\nimport { useGridRowsPreProcessors } from \"../hooks/features/rows/useGridRowsPreProcessors.js\";\nimport { useGridParamsApi } from \"../hooks/features/rows/useGridParamsApi.js\";\nimport { rowSelectionStateInitializer, useGridRowSelection } from \"../hooks/features/rowSelection/useGridRowSelection.js\";\nimport { useGridRowSelectionPreProcessors } from \"../hooks/features/rowSelection/useGridRowSelectionPreProcessors.js\";\nimport { useGridSorting, sortingStateInitializer } from \"../hooks/features/sorting/useGridSorting.js\";\nimport { useGridScroll } from \"../hooks/features/scroll/useGridScroll.js\";\nimport { useGridEvents } from \"../hooks/features/events/useGridEvents.js\";\nimport { dimensionsStateInitializer, useGridDimensions } from \"../hooks/features/dimensions/useGridDimensions.js\";\nimport { rowsMetaStateInitializer, useGridRowsMeta } from \"../hooks/features/rows/useGridRowsMeta.js\";\nimport { useGridStatePersistence } from \"../hooks/features/statePersistence/useGridStatePersistence.js\";\nimport { useGridColumnSpanning } from \"../hooks/features/columns/useGridColumnSpanning.js\";\nimport { useGridColumnGrouping, columnGroupsStateInitializer } from \"../hooks/features/columnGrouping/useGridColumnGrouping.js\";\nimport { useGridVirtualization, virtualizationStateInitializer } from \"../hooks/features/virtualization/index.js\";\nimport { columnResizeStateInitializer, useGridColumnResize } from \"../hooks/features/columnResize/useGridColumnResize.js\";\nimport { rowSpanningStateInitializer, useGridRowSpanning } from \"../hooks/features/rows/useGridRowSpanning.js\";\nimport { listViewStateInitializer, useGridListView } from \"../hooks/features/listView/useGridListView.js\";\nimport { propsStateInitializer } from \"../hooks/core/useGridProps.js\";\nimport { useGridDataSource } from \"../hooks/features/dataSource/useGridDataSource.js\";\nexport const useDataGridComponent = (apiRef, props) => {\n useGridInitialization(apiRef, props);\n\n /**\n * Register all pre-processors called during state initialization here.\n */\n useGridRowSelectionPreProcessors(apiRef, props);\n useGridRowsPreProcessors(apiRef);\n\n /**\n * Register all state initializers here.\n */\n useGridInitializeState(propsStateInitializer, apiRef, props);\n useGridInitializeState(rowSelectionStateInitializer, apiRef, props);\n useGridInitializeState(columnsStateInitializer, apiRef, props);\n useGridInitializeState(rowsStateInitializer, apiRef, props);\n useGridInitializeState(paginationStateInitializer, apiRef, props);\n useGridInitializeState(editingStateInitializer, apiRef, props);\n useGridInitializeState(focusStateInitializer, apiRef, props);\n useGridInitializeState(sortingStateInitializer, apiRef, props);\n useGridInitializeState(preferencePanelStateInitializer, apiRef, props);\n useGridInitializeState(filterStateInitializer, apiRef, props);\n useGridInitializeState(rowSpanningStateInitializer, apiRef, props);\n useGridInitializeState(densityStateInitializer, apiRef, props);\n useGridInitializeState(columnResizeStateInitializer, apiRef, props);\n useGridInitializeState(columnMenuStateInitializer, apiRef, props);\n useGridInitializeState(columnGroupsStateInitializer, apiRef, props);\n useGridInitializeState(virtualizationStateInitializer, apiRef, props);\n useGridInitializeState(dimensionsStateInitializer, apiRef, props);\n useGridInitializeState(rowsMetaStateInitializer, apiRef, props);\n useGridInitializeState(listViewStateInitializer, apiRef, props);\n useGridKeyboardNavigation(apiRef, props);\n useGridRowSelection(apiRef, props);\n useGridColumns(apiRef, props);\n useGridRows(apiRef, props);\n useGridRowSpanning(apiRef, props);\n useGridParamsApi(apiRef, props);\n useGridColumnSpanning(apiRef);\n useGridColumnGrouping(apiRef, props);\n useGridEditing(apiRef, props);\n useGridFocus(apiRef, props);\n useGridPreferencesPanel(apiRef, props);\n useGridFilter(apiRef, props);\n useGridSorting(apiRef, props);\n useGridDensity(apiRef, props);\n useGridColumnResize(apiRef, props);\n useGridPagination(apiRef, props);\n useGridRowsMeta(apiRef, props);\n useGridScroll(apiRef, props);\n useGridColumnMenu(apiRef);\n useGridCsvExport(apiRef, props);\n useGridPrintExport(apiRef, props);\n useGridClipboard(apiRef, props);\n useGridDimensions(apiRef, props);\n useGridEvents(apiRef, props);\n useGridStatePersistence(apiRef);\n useGridVirtualization(apiRef, props);\n useGridListView(apiRef, props);\n useGridDataSource(apiRef, props);\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { unstable_useId as useId, unstable_composeClasses as composeClasses } from '@mui/utils';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { gridColumnGroupsLookupSelector } from \"../../hooks/features/columnGrouping/gridColumnGroupsSelector.js\";\nimport { useGridApiContext } from \"../../hooks/utils/useGridApiContext.js\";\nimport { useGridSelector } from \"../../hooks/utils/useGridSelector.js\";\nimport { GridGenericColumnHeaderItem } from \"./GridGenericColumnHeaderItem.js\";\nimport { isEventTargetInPortal } from \"../../utils/domUtils.js\";\nimport { PinnedColumnPosition } from \"../../internals/constants.js\";\nimport { attachPinnedStyle } from \"../../internals/utils/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n headerAlign,\n isDragging,\n isLastColumn,\n showLeftBorder,\n showRightBorder,\n groupId,\n pinnedPosition\n } = ownerState;\n const slots = {\n root: ['columnHeader', headerAlign === 'left' && 'columnHeader--alignLeft', headerAlign === 'center' && 'columnHeader--alignCenter', headerAlign === 'right' && 'columnHeader--alignRight', isDragging && 'columnHeader--moving', showRightBorder && 'columnHeader--withRightBorder', showLeftBorder && 'columnHeader--withLeftBorder', 'withBorderColor', groupId === null ? 'columnHeader--emptyGroup' : 'columnHeader--filledGroup', pinnedPosition === PinnedColumnPosition.LEFT && 'columnHeader--pinnedLeft', pinnedPosition === PinnedColumnPosition.RIGHT && 'columnHeader--pinnedRight', isLastColumn && 'columnHeader--last'],\n draggableContainer: ['columnHeaderDraggableContainer'],\n titleContainer: ['columnHeaderTitleContainer', 'withBorderColor'],\n titleContainerContent: ['columnHeaderTitleContainerContent']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nfunction GridColumnGroupHeader(props) {\n const {\n groupId,\n width,\n depth,\n maxDepth,\n fields,\n height,\n colIndex,\n hasFocus,\n tabIndex,\n isLastColumn,\n pinnedPosition,\n pinnedOffset\n } = props;\n const rootProps = useGridRootProps();\n const isRtl = useRtl();\n const headerCellRef = React.useRef(null);\n const apiRef = useGridApiContext();\n const columnGroupsLookup = useGridSelector(apiRef, gridColumnGroupsLookupSelector);\n const group = groupId ? columnGroupsLookup[groupId] : {};\n const {\n headerName = groupId ?? '',\n description = '',\n headerAlign = undefined\n } = group;\n let headerComponent;\n const render = groupId && columnGroupsLookup[groupId]?.renderHeaderGroup;\n const renderParams = React.useMemo(() => ({\n groupId,\n headerName,\n description,\n depth,\n maxDepth,\n fields,\n colIndex,\n isLastColumn\n }), [groupId, headerName, description, depth, maxDepth, fields, colIndex, isLastColumn]);\n if (groupId && render) {\n headerComponent = render(renderParams);\n }\n const ownerState = _extends({}, props, {\n classes: rootProps.classes,\n headerAlign,\n depth,\n isDragging: false\n });\n const label = headerName ?? groupId;\n const id = useId();\n const elementId = groupId === null ? `empty-group-cell-${id}` : groupId;\n const classes = useUtilityClasses(ownerState);\n React.useLayoutEffect(() => {\n if (hasFocus) {\n const focusableElement = headerCellRef.current.querySelector('[tabindex=\"0\"]');\n const elementToFocus = focusableElement || headerCellRef.current;\n elementToFocus?.focus();\n }\n }, [apiRef, hasFocus]);\n const publish = React.useCallback(eventName => event => {\n // Ignore portal\n // See https://github.com/mui/mui-x/issues/1721\n if (isEventTargetInPortal(event)) {\n return;\n }\n apiRef.current.publishEvent(eventName, renderParams, event);\n },\n // For now this is stupid, because renderParams change all the time.\n // Need to move it's computation in the api, such that for a given depth+columnField, I can get the group parameters\n [apiRef, renderParams]);\n const mouseEventsHandlers = React.useMemo(() => ({\n onKeyDown: publish('columnGroupHeaderKeyDown'),\n onFocus: publish('columnGroupHeaderFocus'),\n onBlur: publish('columnGroupHeaderBlur')\n }), [publish]);\n const headerClassName = typeof group.headerClassName === 'function' ? group.headerClassName(renderParams) : group.headerClassName;\n const style = React.useMemo(() => attachPinnedStyle(_extends({}, props.style), isRtl, pinnedPosition, pinnedOffset), [pinnedPosition, pinnedOffset, props.style, isRtl]);\n return /*#__PURE__*/_jsx(GridGenericColumnHeaderItem, _extends({\n ref: headerCellRef,\n classes: classes,\n columnMenuOpen: false,\n colIndex: colIndex,\n height: height,\n isResizing: false,\n sortDirection: null,\n hasFocus: false,\n tabIndex: tabIndex,\n isDraggable: false,\n headerComponent: headerComponent,\n headerClassName: headerClassName,\n description: description,\n elementId: elementId,\n width: width,\n columnMenuIconButton: null,\n columnTitleIconButtons: null,\n resizable: false,\n label: label,\n \"aria-colspan\": fields.length\n // The fields are wrapped between |-...-| to avoid confusion between fields \"id\" and \"id2\" when using selector data-fields~=\n ,\n \"data-fields\": `|-${fields.join('-|-')}-|`,\n style: style\n }, mouseEventsHandlers));\n}\nexport { GridColumnGroupHeader };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { styled } from '@mui/material/styles';\nimport { useGridSelector } from \"../../utils/index.js\";\nimport { useGridRootProps } from \"../../utils/useGridRootProps.js\";\nimport { useGridPrivateApiContext } from \"../../utils/useGridPrivateApiContext.js\";\nimport { useGridEvent } from \"../../utils/useGridEvent.js\";\nimport { GridColumnHeaderItem } from \"../../../components/columnHeaders/GridColumnHeaderItem.js\";\nimport { gridColumnsTotalWidthSelector, gridGroupHeaderHeightSelector, gridHasFillerSelector, gridHeaderHeightSelector, gridVerticalScrollbarWidthSelector } from \"../dimensions/gridDimensionsSelectors.js\";\nimport { gridRenderContextColumnsSelector } from \"../virtualization/index.js\";\nimport { computeOffsetLeft } from \"../virtualization/useGridVirtualScroller.js\";\nimport { GridColumnGroupHeader } from \"../../../components/columnHeaders/GridColumnGroupHeader.js\";\nimport { gridColumnPositionsSelector, gridVisiblePinnedColumnDefinitionsSelector, gridColumnLookupSelector } from \"../columns/index.js\";\nimport { gridColumnGroupsUnwrappedModelSelector } from \"../columnGrouping/gridColumnGroupsSelector.js\";\nimport { GridScrollbarFillerCell as ScrollbarFiller } from \"../../../components/GridScrollbarFillerCell.js\";\nimport { getPinnedCellOffset } from \"../../../internals/utils/getPinnedCellOffset.js\";\nimport { GridColumnHeaderSeparatorSides } from \"../../../components/columnHeaders/GridColumnHeaderSeparator.js\";\nimport { gridClasses } from \"../../../constants/gridClasses.js\";\nimport { shouldCellShowLeftBorder, shouldCellShowRightBorder } from \"../../../utils/cellBorderUtils.js\";\nimport { PinnedColumnPosition } from \"../../../internals/constants.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const GridColumnHeaderRow = styled('div', {\n name: 'MuiDataGrid',\n slot: 'ColumnHeaderRow'\n})({\n display: 'flex'\n});\nexport const useGridColumnHeaders = props => {\n const {\n visibleColumns,\n sortColumnLookup,\n filterColumnLookup,\n columnHeaderTabIndexState,\n columnGroupHeaderTabIndexState,\n columnHeaderFocus,\n columnGroupHeaderFocus,\n headerGroupingMaxDepth,\n columnMenuState,\n columnVisibility,\n columnGroupsHeaderStructure,\n hasOtherElementInTabSequence\n } = props;\n const [dragCol, setDragCol] = React.useState('');\n const [resizeCol, setResizeCol] = React.useState('');\n const apiRef = useGridPrivateApiContext();\n const rootProps = useGridRootProps();\n const columnGroupsModel = useGridSelector(apiRef, gridColumnGroupsUnwrappedModelSelector);\n const columnPositions = useGridSelector(apiRef, gridColumnPositionsSelector);\n const renderContext = useGridSelector(apiRef, gridRenderContextColumnsSelector);\n const pinnedColumns = useGridSelector(apiRef, gridVisiblePinnedColumnDefinitionsSelector);\n const columnsLookup = useGridSelector(apiRef, gridColumnLookupSelector);\n const offsetLeft = computeOffsetLeft(columnPositions, renderContext, pinnedColumns.left.length);\n const columnsTotalWidth = useGridSelector(apiRef, gridColumnsTotalWidthSelector);\n const gridHasFiller = useGridSelector(apiRef, gridHasFillerSelector);\n const headerHeight = useGridSelector(apiRef, gridHeaderHeightSelector);\n const groupHeaderHeight = useGridSelector(apiRef, gridGroupHeaderHeightSelector);\n const scrollbarWidth = useGridSelector(apiRef, gridVerticalScrollbarWidthSelector);\n const handleColumnResizeStart = React.useCallback(params => setResizeCol(params.field), []);\n const handleColumnResizeStop = React.useCallback(() => setResizeCol(''), []);\n const handleColumnReorderStart = React.useCallback(params => setDragCol(params.field), []);\n const handleColumnReorderStop = React.useCallback(() => setDragCol(''), []);\n const leftRenderContext = React.useMemo(() => {\n return pinnedColumns.left.length ? {\n firstColumnIndex: 0,\n lastColumnIndex: pinnedColumns.left.length\n } : null;\n }, [pinnedColumns.left.length]);\n const rightRenderContext = React.useMemo(() => {\n return pinnedColumns.right.length ? {\n firstColumnIndex: visibleColumns.length - pinnedColumns.right.length,\n lastColumnIndex: visibleColumns.length\n } : null;\n }, [pinnedColumns.right.length, visibleColumns.length]);\n useGridEvent(apiRef, 'columnResizeStart', handleColumnResizeStart);\n useGridEvent(apiRef, 'columnResizeStop', handleColumnResizeStop);\n useGridEvent(apiRef, 'columnHeaderDragStart', handleColumnReorderStart);\n useGridEvent(apiRef, 'columnHeaderDragEnd', handleColumnReorderStop);\n\n // Helper for computation common between getColumnHeaders and getColumnGroupHeaders\n const getColumnsToRender = params => {\n const {\n renderContext: currentContext = renderContext\n } = params || {};\n const firstColumnToRender = currentContext.firstColumnIndex;\n const lastColumnToRender = currentContext.lastColumnIndex;\n const renderedColumns = visibleColumns.slice(firstColumnToRender, lastColumnToRender);\n return {\n renderedColumns,\n firstColumnToRender,\n lastColumnToRender\n };\n };\n const getFillers = (params, children, leftOverflow, borderBottom = false) => {\n const isPinnedRight = params?.position === PinnedColumnPosition.RIGHT;\n const isNotPinned = params?.position === undefined;\n const hasScrollbarFiller = pinnedColumns.right.length > 0 && isPinnedRight || pinnedColumns.right.length === 0 && isNotPinned;\n const leftOffsetWidth = offsetLeft - leftOverflow;\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [isNotPinned && /*#__PURE__*/_jsx(\"div\", {\n role: \"presentation\",\n style: {\n width: leftOffsetWidth\n }\n }), children, isNotPinned && /*#__PURE__*/_jsx(\"div\", {\n role: \"presentation\",\n className: clsx(gridClasses.filler, borderBottom && gridClasses['filler--borderBottom'])\n }), hasScrollbarFiller && /*#__PURE__*/_jsx(ScrollbarFiller, {\n header: true,\n pinnedRight: isPinnedRight,\n borderBottom: borderBottom,\n borderTop: false\n })]\n });\n };\n const getColumnHeaders = (params, other = {}) => {\n const {\n renderedColumns,\n firstColumnToRender\n } = getColumnsToRender(params);\n const columns = [];\n for (let i = 0; i < renderedColumns.length; i += 1) {\n const colDef = renderedColumns[i];\n const columnIndex = firstColumnToRender + i;\n const isFirstColumn = columnIndex === 0;\n const tabIndex = columnHeaderTabIndexState !== null && columnHeaderTabIndexState.field === colDef.field || isFirstColumn && !hasOtherElementInTabSequence ? 0 : -1;\n const hasFocus = columnHeaderFocus !== null && columnHeaderFocus.field === colDef.field;\n const open = columnMenuState.open && columnMenuState.field === colDef.field;\n const pinnedPosition = params?.position;\n const pinnedOffset = getPinnedCellOffset(pinnedPosition, colDef.computedWidth, columnIndex, columnPositions, columnsTotalWidth, scrollbarWidth);\n const siblingWithBorderingSeparator = pinnedPosition === PinnedColumnPosition.RIGHT ? renderedColumns[i - 1] : renderedColumns[i + 1];\n const isSiblingFocused = siblingWithBorderingSeparator ? columnHeaderFocus !== null && columnHeaderFocus.field === siblingWithBorderingSeparator.field : false;\n const isLastUnpinned = columnIndex + 1 === columnPositions.length - pinnedColumns.right.length;\n const indexInSection = i;\n const sectionLength = renderedColumns.length;\n const showLeftBorder = shouldCellShowLeftBorder(pinnedPosition, indexInSection);\n const showRightBorder = shouldCellShowRightBorder(pinnedPosition, indexInSection, sectionLength, rootProps.showColumnVerticalBorder, gridHasFiller);\n columns.push(/*#__PURE__*/_jsx(GridColumnHeaderItem, _extends({}, sortColumnLookup[colDef.field], {\n columnMenuOpen: open,\n filterItemsCounter: filterColumnLookup[colDef.field] && filterColumnLookup[colDef.field].length,\n headerHeight: headerHeight,\n isDragging: colDef.field === dragCol,\n colDef: colDef,\n colIndex: columnIndex,\n isResizing: resizeCol === colDef.field,\n isLast: columnIndex === columnPositions.length - 1,\n hasFocus: hasFocus,\n tabIndex: tabIndex,\n pinnedPosition: pinnedPosition,\n pinnedOffset: pinnedOffset,\n isLastUnpinned: isLastUnpinned,\n isSiblingFocused: isSiblingFocused,\n showLeftBorder: showLeftBorder,\n showRightBorder: showRightBorder\n }, other), colDef.field));\n }\n return getFillers(params, columns, 0);\n };\n const getColumnHeadersRow = () => {\n return /*#__PURE__*/_jsxs(GridColumnHeaderRow, {\n role: \"row\",\n \"aria-rowindex\": headerGroupingMaxDepth + 1,\n ownerState: rootProps,\n className: gridClasses['row--borderBottom'],\n style: {\n height: headerHeight\n },\n children: [leftRenderContext && getColumnHeaders({\n position: PinnedColumnPosition.LEFT,\n renderContext: leftRenderContext\n }, {\n disableReorder: true\n }), getColumnHeaders({\n renderContext\n }), rightRenderContext && getColumnHeaders({\n position: PinnedColumnPosition.RIGHT,\n renderContext: rightRenderContext\n }, {\n disableReorder: true,\n separatorSide: GridColumnHeaderSeparatorSides.Left\n })]\n });\n };\n const getColumnGroupHeaders = ({\n depth,\n params\n }) => {\n const columnsToRender = getColumnsToRender(params);\n if (columnsToRender.renderedColumns.length === 0) {\n return null;\n }\n const {\n firstColumnToRender,\n lastColumnToRender\n } = columnsToRender;\n const rowStructure = columnGroupsHeaderStructure[depth];\n const firstColumnFieldToRender = visibleColumns[firstColumnToRender].field;\n const firstGroupToRender = columnGroupsModel[firstColumnFieldToRender]?.[depth] ?? null;\n const firstGroupIndex = rowStructure.findIndex(({\n groupId,\n columnFields\n }) => groupId === firstGroupToRender && columnFields.includes(firstColumnFieldToRender));\n const lastColumnFieldToRender = visibleColumns[lastColumnToRender - 1].field;\n const lastGroupToRender = columnGroupsModel[lastColumnFieldToRender]?.[depth] ?? null;\n const lastGroupIndex = rowStructure.findIndex(({\n groupId,\n columnFields\n }) => groupId === lastGroupToRender && columnFields.includes(lastColumnFieldToRender));\n const visibleColumnGroupHeader = rowStructure.slice(firstGroupIndex, lastGroupIndex + 1).map(groupStructure => {\n return _extends({}, groupStructure, {\n columnFields: groupStructure.columnFields.filter(field => columnVisibility[field] !== false)\n });\n }).filter(groupStructure => groupStructure.columnFields.length > 0);\n const firstVisibleColumnIndex = visibleColumnGroupHeader[0].columnFields.indexOf(firstColumnFieldToRender);\n const hiddenGroupColumns = visibleColumnGroupHeader[0].columnFields.slice(0, firstVisibleColumnIndex);\n const leftOverflow = hiddenGroupColumns.reduce((acc, field) => {\n const column = columnsLookup[field];\n return acc + (column.computedWidth ?? 0);\n }, 0);\n let columnIndex = firstColumnToRender;\n const children = visibleColumnGroupHeader.map(({\n groupId,\n columnFields\n }, index) => {\n const hasFocus = columnGroupHeaderFocus !== null && columnGroupHeaderFocus.depth === depth && columnFields.includes(columnGroupHeaderFocus.field);\n const tabIndex = columnGroupHeaderTabIndexState !== null && columnGroupHeaderTabIndexState.depth === depth && columnFields.includes(columnGroupHeaderTabIndexState.field) ? 0 : -1;\n const headerInfo = {\n groupId,\n width: columnFields.reduce((acc, field) => acc + columnsLookup[field].computedWidth, 0),\n fields: columnFields,\n colIndex: columnIndex,\n hasFocus,\n tabIndex\n };\n const pinnedPosition = params.position;\n const pinnedOffset = getPinnedCellOffset(pinnedPosition, headerInfo.width, columnIndex, columnPositions, columnsTotalWidth, scrollbarWidth);\n columnIndex += columnFields.length;\n let indexInSection = index;\n if (pinnedPosition === PinnedColumnPosition.LEFT) {\n // Group headers can expand to multiple columns, we need to adjust the index\n indexInSection = columnIndex - 1;\n }\n return /*#__PURE__*/_jsx(GridColumnGroupHeader, {\n groupId: groupId,\n width: headerInfo.width,\n fields: headerInfo.fields,\n colIndex: headerInfo.colIndex,\n depth: depth,\n isLastColumn: index === visibleColumnGroupHeader.length - 1,\n maxDepth: headerGroupingMaxDepth,\n height: groupHeaderHeight,\n hasFocus: hasFocus,\n tabIndex: tabIndex,\n pinnedPosition: pinnedPosition,\n pinnedOffset: pinnedOffset,\n showLeftBorder: shouldCellShowLeftBorder(pinnedPosition, indexInSection),\n showRightBorder: shouldCellShowRightBorder(pinnedPosition, indexInSection, visibleColumnGroupHeader.length, rootProps.showColumnVerticalBorder, gridHasFiller)\n }, index);\n });\n return getFillers(params, children, leftOverflow);\n };\n const getColumnGroupHeadersRows = () => {\n if (headerGroupingMaxDepth === 0) {\n return null;\n }\n const headerRows = [];\n for (let depth = 0; depth < headerGroupingMaxDepth; depth += 1) {\n headerRows.push(/*#__PURE__*/_jsxs(GridColumnHeaderRow, {\n role: \"row\",\n \"aria-rowindex\": depth + 1,\n ownerState: rootProps,\n style: {\n height: groupHeaderHeight\n },\n children: [leftRenderContext && getColumnGroupHeaders({\n depth,\n params: {\n position: PinnedColumnPosition.LEFT,\n renderContext: leftRenderContext,\n maxLastColumn: leftRenderContext.lastColumnIndex\n }\n }), getColumnGroupHeaders({\n depth,\n params: {\n renderContext\n }\n }), rightRenderContext && getColumnGroupHeaders({\n depth,\n params: {\n position: PinnedColumnPosition.RIGHT,\n renderContext: rightRenderContext,\n maxLastColumn: rightRenderContext.lastColumnIndex\n }\n })]\n }, depth));\n }\n return headerRows;\n };\n return {\n renderContext,\n leftRenderContext,\n rightRenderContext,\n pinnedColumns,\n visibleColumns,\n columnPositions,\n getFillers,\n getColumnHeadersRow,\n getColumnsToRender,\n getColumnGroupHeadersRows,\n getPinnedCellOffset,\n isDragging: !!dragCol,\n getInnerProps: () => ({\n role: 'rowgroup'\n })\n };\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from '@mui/system';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { useGridRootProps } from \"../../hooks/utils/useGridRootProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['columnHeaders']\n };\n return composeClasses(slots, getDataGridUtilityClass, classes);\n};\nconst GridColumnHeadersRoot = styled('div', {\n name: 'MuiDataGrid',\n slot: 'ColumnHeaders'\n})({\n display: 'flex',\n flexDirection: 'column',\n borderTopLeftRadius: 'var(--unstable_DataGrid-radius)',\n borderTopRightRadius: 'var(--unstable_DataGrid-radius)'\n});\nexport const GridBaseColumnHeaders = forwardRef(function GridColumnHeaders(props, ref) {\n const {\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootProps = useGridRootProps();\n const classes = useUtilityClasses(rootProps);\n return /*#__PURE__*/_jsx(GridColumnHeadersRoot, _extends({\n className: clsx(classes.root, className),\n ownerState: rootProps\n }, other, {\n role: \"presentation\",\n ref: ref\n }));\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\", \"visibleColumns\", \"sortColumnLookup\", \"filterColumnLookup\", \"columnHeaderTabIndexState\", \"columnGroupHeaderTabIndexState\", \"columnHeaderFocus\", \"columnGroupHeaderFocus\", \"headerGroupingMaxDepth\", \"columnMenuState\", \"columnVisibility\", \"columnGroupsHeaderStructure\", \"hasOtherElementInTabSequence\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { fastMemo } from '@mui/x-internals/fastMemo';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridColumnHeaders } from \"../hooks/features/columnHeaders/useGridColumnHeaders.js\";\nimport { GridBaseColumnHeaders } from \"./columnHeaders/GridBaseColumnHeaders.js\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst GridColumnHeaders = forwardRef(function GridColumnHeaders(props, ref) {\n const {\n visibleColumns,\n sortColumnLookup,\n filterColumnLookup,\n columnHeaderTabIndexState,\n columnGroupHeaderTabIndexState,\n columnHeaderFocus,\n columnGroupHeaderFocus,\n headerGroupingMaxDepth,\n columnMenuState,\n columnVisibility,\n columnGroupsHeaderStructure,\n hasOtherElementInTabSequence\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n getInnerProps,\n getColumnHeadersRow,\n getColumnGroupHeadersRows\n } = useGridColumnHeaders({\n visibleColumns,\n sortColumnLookup,\n filterColumnLookup,\n columnHeaderTabIndexState,\n columnGroupHeaderTabIndexState,\n columnHeaderFocus,\n columnGroupHeaderFocus,\n headerGroupingMaxDepth,\n columnMenuState,\n columnVisibility,\n columnGroupsHeaderStructure,\n hasOtherElementInTabSequence\n });\n return /*#__PURE__*/_jsxs(GridBaseColumnHeaders, _extends({}, other, getInnerProps(), {\n ref: ref,\n children: [getColumnGroupHeadersRows(), getColumnHeadersRow()]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridColumnHeaders.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n columnGroupHeaderFocus: PropTypes.shape({\n depth: PropTypes.number.isRequired,\n field: PropTypes.string.isRequired\n }),\n columnGroupHeaderTabIndexState: PropTypes.shape({\n depth: PropTypes.number.isRequired,\n field: PropTypes.string.isRequired\n }),\n columnGroupsHeaderStructure: PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.shape({\n columnFields: PropTypes.arrayOf(PropTypes.string).isRequired,\n groupId: PropTypes.string\n }))).isRequired,\n columnHeaderFocus: PropTypes.shape({\n field: PropTypes.string.isRequired\n }),\n columnHeaderTabIndexState: PropTypes.shape({\n field: PropTypes.string.isRequired\n }),\n columnMenuState: PropTypes.shape({\n field: PropTypes.string,\n open: PropTypes.bool.isRequired\n }).isRequired,\n columnVisibility: PropTypes.object.isRequired,\n filterColumnLookup: PropTypes.object.isRequired,\n hasOtherElementInTabSequence: PropTypes.bool.isRequired,\n headerGroupingMaxDepth: PropTypes.number.isRequired,\n sortColumnLookup: PropTypes.object.isRequired,\n visibleColumns: PropTypes.arrayOf(PropTypes.object).isRequired\n} : void 0;\nconst MemoizedGridColumnHeaders = fastMemo(GridColumnHeaders);\nexport { MemoizedGridColumnHeaders as GridColumnHeaders };","export function GridDetailPanels(_) {\n return null;\n}","export function GridPinnedRows(_) {\n return null;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { useGridApiContext } from \"../hooks/utils/useGridApiContext.js\";\nimport { GridOverlay } from \"./containers/GridOverlay.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const GridNoResultsOverlay = forwardRef(function GridNoResultsOverlay(props, ref) {\n const apiRef = useGridApiContext();\n const noResultsOverlayLabel = apiRef.current.getLocaleText('noResultsOverlayLabel');\n return /*#__PURE__*/_jsx(GridOverlay, _extends({}, props, {\n ref: ref,\n children: noResultsOverlayLabel\n }));\n});","const encoder = new TextEncoder();\n\n// bufferLength must be a multiple of 4 to satisfy Int32Array constraints\nlet bufferLength = 2 * 1024;\nlet buffer = new ArrayBuffer(bufferLength);\nlet uint8View = new Uint8Array(buffer);\nlet int32View = new Int32Array(buffer);\nexport const hash = xxh;\n\n/**\n * Returns an xxh hash of `input` formatted as a decimal string.\n */\n// prettier-ignore\nfunction xxh(input) {\n /* eslint-disable no-bitwise */\n\n // Worst-case scenario: full string of 2-byte characters\n const requiredLength = input.length * 2;\n if (requiredLength > bufferLength) {\n // buffer.resize() is only available in recent browsers, so we re-allocate\n // a new and views\n bufferLength = requiredLength + (4 - requiredLength % 4);\n buffer = new ArrayBuffer(bufferLength);\n uint8View = new Uint8Array(buffer);\n int32View = new Int32Array(buffer);\n }\n const length8 = encoder.encodeInto(input, uint8View).written;\n const seed = 0;\n const len = length8 | 0;\n let i = 0;\n let h = (seed + len | 0) + 0x165667B1 | 0;\n if (len < 16) {\n for (; (i + 3 | 0) < len; i = i + 4 | 0) {\n h = Math.imul(rotl32(h + Math.imul(int32View[i] | 0, 0xC2B2AE3D) | 0, 17) | 0, 0x27D4EB2F);\n }\n } else {\n let v0 = seed + 0x24234428 | 0;\n let v1 = seed + 0x85EBCA77 | 0;\n let v2 = seed;\n let v3 = seed - 0x9E3779B1 | 0;\n for (; (i + 15 | 0) < len; i = i + 16 | 0) {\n v0 = Math.imul(rotl32(v0 + Math.imul(int32View[i + 0 | 0] | 0, 0x85EBCA77) | 0, 13) | 0, 0x9E3779B1);\n v1 = Math.imul(rotl32(v1 + Math.imul(int32View[i + 4 | 0] | 0, 0x85EBCA77) | 0, 13) | 0, 0x9E3779B1);\n v2 = Math.imul(rotl32(v2 + Math.imul(int32View[i + 8 | 0] | 0, 0x85EBCA77) | 0, 13) | 0, 0x9E3779B1);\n v3 = Math.imul(rotl32(v3 + Math.imul(int32View[i + 12 | 0] | 0, 0x85EBCA77) | 0, 13) | 0, 0x9E3779B1);\n }\n h = (((rotl32(v0, 1) | 0 + rotl32(v1, 7) | 0) + rotl32(v2, 12) | 0) + rotl32(v3, 18) | 0) + len | 0;\n for (; (i + 3 | 0) < len; i = i + 4 | 0) {\n h = Math.imul(rotl32(h + Math.imul(int32View[i] | 0, 0xC2B2AE3D) | 0, 17) | 0, 0x27D4EB2F);\n }\n }\n for (; i < len; i = i + 1 | 0) {\n h = Math.imul(rotl32(h + Math.imul(uint8View[i] | 0, 0x165667B1) | 0, 11) | 0, 0x9E3779B1);\n }\n h = Math.imul(h ^ h >>> 15, 0x85EBCA77);\n h = Math.imul(h ^ h >>> 13, 0xC2B2AE3D);\n return ((h ^ h >>> 16) >>> 0).toString();\n}\nfunction rotl32(x, r) {\n return x << r | x >>> 32 - r;\n}","/**\n * A JSON.stringify that handles circular references safely.\n * Fixes: https://github.com/mui/mui-x/issues/17521\n * Source: https://www.30secondsofcode.org/js/s/stringify-circular-json/\n */\nexport function stringify(input) {\n const seen = new WeakSet();\n return JSON.stringify(input, (_, v) => {\n if (v !== null && typeof v === 'object') {\n if (seen.has(v)) {\n return null;\n }\n seen.add(v);\n }\n return v;\n });\n}","import * as React from 'react';\nimport { alpha, darken, lighten } from '@mui/material/styles';\nimport { useTheme } from '@mui/material/styles';\nimport { hash, stringify } from '@mui/x-internals/hash';\nimport { vars } from \"../constants/cssVariables.js\";\nexport function useMaterialCSSVariables() {\n const theme = useTheme();\n return React.useMemo(() => {\n const id = hash(stringify(theme));\n const variables = transformTheme(theme);\n return {\n id,\n variables\n };\n }, [theme]);\n}\nfunction transformTheme(t) {\n const borderColor = getBorderColor(t);\n const dataGridPalette = t.palette.DataGrid; // FIXME: docs typecheck error\n\n const backgroundBase = dataGridPalette?.bg ?? (t.vars || t).palette.background.default;\n const backgroundHeader = dataGridPalette?.headerBg ?? backgroundBase;\n const backgroundPinned = dataGridPalette?.pinnedBg ?? backgroundBase;\n const backgroundBackdrop = t.vars ? `rgba(${t.vars.palette.background.defaultChannel} / ${t.vars.palette.action.disabledOpacity})` : alpha(t.palette.background.default, t.palette.action.disabledOpacity);\n const backgroundOverlay = t.palette.mode === 'dark' ? `color-mix(in srgb, ${(t.vars || t).palette.background.paper} 95%, #fff)` : (t.vars || t).palette.background.paper;\n const selectedColor = t.vars ? `rgb(${t.vars.palette.primary.mainChannel})` : t.palette.primary.main;\n const radius = getRadius(t);\n const fontBody = t.vars?.font?.body2 ?? formatFont(t.typography.body2);\n const fontSmall = t.vars?.font?.caption ?? formatFont(t.typography.caption);\n const fontLarge = t.vars?.font?.body1 ?? formatFont(t.typography.body1);\n const k = vars.keys;\n return {\n [k.spacingUnit]: t.vars ? t.vars.spacing ?? t.spacing(1) : t.spacing(1),\n [k.colors.border.base]: borderColor,\n [k.colors.background.base]: backgroundBase,\n [k.colors.background.overlay]: backgroundOverlay,\n [k.colors.background.backdrop]: backgroundBackdrop,\n [k.colors.foreground.base]: (t.vars || t).palette.text.primary,\n [k.colors.foreground.muted]: (t.vars || t).palette.text.secondary,\n [k.colors.foreground.accent]: (t.vars || t).palette.primary.dark,\n [k.colors.foreground.disabled]: (t.vars || t).palette.text.disabled,\n [k.colors.foreground.error]: (t.vars || t).palette.error.dark,\n [k.colors.interactive.hover]: (t.vars || t).palette.action.hover,\n [k.colors.interactive.hoverOpacity]: (t.vars || t).palette.action.hoverOpacity,\n [k.colors.interactive.focus]: removeOpacity((t.vars || t).palette.primary.main),\n [k.colors.interactive.focusOpacity]: (t.vars || t).palette.action.focusOpacity,\n [k.colors.interactive.disabled]: removeOpacity((t.vars || t).palette.action.disabled),\n [k.colors.interactive.disabledOpacity]: (t.vars || t).palette.action.disabledOpacity,\n [k.colors.interactive.selected]: selectedColor,\n [k.colors.interactive.selectedOpacity]: (t.vars || t).palette.action.selectedOpacity,\n [k.header.background.base]: backgroundHeader,\n [k.cell.background.pinned]: backgroundPinned,\n [k.radius.base]: radius,\n [k.typography.fontFamily.base]: t.typography.fontFamily,\n [k.typography.fontWeight.light]: t.typography.fontWeightLight,\n [k.typography.fontWeight.regular]: t.typography.fontWeightRegular,\n [k.typography.fontWeight.medium]: t.typography.fontWeightMedium,\n [k.typography.fontWeight.bold]: t.typography.fontWeightBold,\n [k.typography.font.body]: fontBody,\n [k.typography.font.small]: fontSmall,\n [k.typography.font.large]: fontLarge,\n [k.transitions.easing.easeIn]: t.transitions.easing.easeIn,\n [k.transitions.easing.easeOut]: t.transitions.easing.easeOut,\n [k.transitions.easing.easeInOut]: t.transitions.easing.easeInOut,\n [k.transitions.duration.short]: `${t.transitions.duration.shorter}ms`,\n [k.transitions.duration.base]: `${t.transitions.duration.short}ms`,\n [k.transitions.duration.long]: `${t.transitions.duration.standard}ms`,\n [k.shadows.base]: (t.vars || t).shadows[2],\n [k.shadows.overlay]: (t.vars || t).shadows[8],\n [k.zIndex.panel]: (t.vars || t).zIndex.modal,\n [k.zIndex.menu]: (t.vars || t).zIndex.modal\n };\n}\nfunction getRadius(theme) {\n if (theme.vars) {\n return theme.vars.shape.borderRadius;\n }\n return typeof theme.shape.borderRadius === 'number' ? `${theme.shape.borderRadius}px` : theme.shape.borderRadius;\n}\nfunction getBorderColor(theme) {\n if (theme.vars) {\n return theme.vars.palette.TableCell.border;\n }\n if (theme.palette.mode === 'light') {\n return lighten(alpha(theme.palette.divider, 1), 0.88);\n }\n return darken(alpha(theme.palette.divider, 1), 0.68);\n}\nfunction setOpacity(color, opacity) {\n return `rgba(from ${color} r g b / ${opacity})`;\n}\nfunction removeOpacity(color) {\n return setOpacity(color, 1);\n}\nfunction formatFont(font) {\n return `${font.fontWeight} ${font.fontSize} / ${font.lineHeight} ${font.fontFamily}`;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"id\", \"label\", \"labelId\", \"material\", \"disabled\", \"slotProps\", \"onChange\", \"onKeyDown\", \"onOpen\", \"onClose\", \"size\", \"style\", \"fullWidth\"],\n _excluded2 = [\"onRowsPerPageChange\", \"material\", \"disabled\"],\n _excluded3 = [\"material\"],\n _excluded4 = [\"autoFocus\", \"label\", \"fullWidth\", \"slotProps\", \"className\", \"material\"],\n _excluded5 = [\"material\"],\n _excluded6 = [\"material\"],\n _excluded7 = [\"material\"],\n _excluded8 = [\"material\"],\n _excluded9 = [\"material\"],\n _excluded10 = [\"material\"],\n _excluded11 = [\"material\"],\n _excluded12 = [\"material\"],\n _excluded13 = [\"material\", \"label\", \"className\"],\n _excluded14 = [\"material\"],\n _excluded15 = [\"inert\", \"iconStart\", \"iconEnd\", \"children\", \"material\"],\n _excluded16 = [\"slotProps\", \"material\"],\n _excluded17 = [\"id\", \"multiple\", \"freeSolo\", \"options\", \"getOptionLabel\", \"isOptionEqualToValue\", \"value\", \"onChange\", \"label\", \"placeholder\", \"slotProps\", \"material\"],\n _excluded18 = [\"key\"],\n _excluded19 = [\"inputProps\", \"InputProps\", \"InputLabelProps\"],\n _excluded20 = [\"slotProps\", \"material\"],\n _excluded21 = [\"ref\", \"open\", \"children\", \"className\", \"clickAwayTouchEvent\", \"clickAwayMouseEvent\", \"flip\", \"focusTrap\", \"onExited\", \"onClickAway\", \"onDidShow\", \"onDidHide\", \"id\", \"target\", \"transition\", \"placement\", \"material\"],\n _excluded22 = [\"native\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport useForkRef from '@mui/utils/useForkRef';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { styled } from '@mui/material/styles';\nimport MUIAutocomplete from '@mui/material/Autocomplete';\nimport MUIBadge from '@mui/material/Badge';\nimport MUICheckbox from '@mui/material/Checkbox';\nimport MUIChip from '@mui/material/Chip';\nimport MUICircularProgress from '@mui/material/CircularProgress';\nimport MUIDivider from '@mui/material/Divider';\nimport MUIInputBase from '@mui/material/InputBase';\nimport MUIFocusTrap from '@mui/material/Unstable_TrapFocus';\nimport MUILinearProgress from '@mui/material/LinearProgress';\nimport MUIListItemIcon from '@mui/material/ListItemIcon';\nimport MUIListItemText, { listItemTextClasses } from '@mui/material/ListItemText';\nimport MUIMenuList from '@mui/material/MenuList';\nimport MUIMenuItem from '@mui/material/MenuItem';\nimport MUITextField from '@mui/material/TextField';\nimport MUIFormControl from '@mui/material/FormControl';\nimport MUIFormControlLabel, { formControlLabelClasses } from '@mui/material/FormControlLabel';\nimport MUISelect from '@mui/material/Select';\nimport MUISwitch from '@mui/material/Switch';\nimport MUIButton from '@mui/material/Button';\nimport MUIIconButton, { iconButtonClasses } from '@mui/material/IconButton';\nimport MUIInputAdornment, { inputAdornmentClasses } from '@mui/material/InputAdornment';\nimport MUITooltip from '@mui/material/Tooltip';\nimport MUIPagination, { tablePaginationClasses } from '@mui/material/TablePagination';\nimport MUIPopper from '@mui/material/Popper';\nimport ClickAwayListener from '@mui/material/ClickAwayListener';\nimport MUIGrow from '@mui/material/Grow';\nimport MUIPaper from '@mui/material/Paper';\nimport MUIInputLabel from '@mui/material/InputLabel';\nimport MUISkeleton from '@mui/material/Skeleton';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { GridAddIcon, GridArrowDownwardIcon, GridArrowUpwardIcon, GridCheckIcon, GridCloseIcon, GridColumnIcon, GridDragIcon, GridExpandMoreIcon, GridFilterAltIcon, GridFilterListIcon, GridKeyboardArrowRight, GridMoreVertIcon, GridRemoveIcon, GridSearchIcon, GridSeparatorIcon, GridTableRowsIcon, GridTripleDotsVerticalIcon, GridViewHeadlineIcon, GridViewStreamIcon, GridVisibilityOffIcon, GridViewColumnIcon, GridClearIcon, GridLoadIcon, GridDeleteForeverIcon, GridDownloadIcon } from \"./icons/index.js\";\nimport { useGridApiContext } from \"../hooks/utils/useGridApiContext.js\";\nimport { useGridRootProps } from \"../hooks/utils/useGridRootProps.js\";\nimport \"./augmentation.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport { useMaterialCSSVariables } from \"./variables.js\";\n\n/* eslint-disable material-ui/disallow-react-api-in-server-components */\n\nconst InputAdornment = styled(MUIInputAdornment)(({\n theme\n}) => ({\n [`&.${inputAdornmentClasses.positionEnd} .${iconButtonClasses.sizeSmall}`]: {\n marginRight: theme.spacing(-0.75)\n }\n}));\nconst FormControlLabel = styled(MUIFormControlLabel, {\n shouldForwardProp: prop => prop !== 'fullWidth'\n})(({\n theme\n}) => ({\n gap: theme.spacing(0.5),\n margin: 0,\n overflow: 'hidden',\n [`& .${formControlLabelClasses.label}`]: {\n fontSize: theme.typography.pxToRem(14),\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n },\n variants: [{\n props: {\n fullWidth: true\n },\n style: {\n width: '100%'\n }\n }]\n}));\nconst Checkbox = styled(MUICheckbox, {\n shouldForwardProp: prop => prop !== 'density'\n})(({\n theme\n}) => ({\n variants: [{\n props: {\n density: 'compact'\n },\n style: {\n padding: theme.spacing(0.5)\n }\n }]\n}));\nconst ListItemText = styled(MUIListItemText)({\n [`& .${listItemTextClasses.primary}`]: {\n overflowX: 'clip',\n textOverflow: 'ellipsis',\n maxWidth: '300px'\n }\n});\nconst BaseSelect = forwardRef(function BaseSelect(props, ref) {\n const {\n id,\n label,\n labelId,\n material,\n disabled,\n slotProps,\n onChange,\n onKeyDown,\n onOpen,\n onClose,\n size,\n style,\n fullWidth\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded);\n const menuProps = {\n PaperProps: {\n onKeyDown\n }\n };\n if (onClose) {\n menuProps.onClose = onClose;\n }\n return /*#__PURE__*/_jsxs(MUIFormControl, {\n size: size,\n fullWidth: fullWidth,\n style: style,\n disabled: disabled,\n ref: ref,\n children: [/*#__PURE__*/_jsx(MUIInputLabel, {\n id: labelId,\n htmlFor: id,\n shrink: true,\n variant: \"outlined\",\n children: label\n }), /*#__PURE__*/_jsx(MUISelect, _extends({\n id: id,\n labelId: labelId,\n label: label,\n displayEmpty: true,\n onChange: onChange\n }, rest, {\n variant: \"outlined\",\n notched: true,\n inputProps: slotProps?.htmlInput,\n onOpen: onOpen,\n MenuProps: menuProps,\n size: size\n }, material))]\n });\n});\nconst StyledPagination = styled(MUIPagination)(({\n theme\n}) => ({\n [`& .${tablePaginationClasses.selectLabel}`]: {\n display: 'none',\n [theme.breakpoints.up('sm')]: {\n display: 'block'\n }\n },\n [`& .${tablePaginationClasses.input}`]: {\n display: 'none',\n [theme.breakpoints.up('sm')]: {\n display: 'inline-flex'\n }\n }\n}));\nconst BasePagination = forwardRef(function BasePagination(props, ref) {\n const {\n onRowsPerPageChange,\n material,\n disabled\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded2);\n const computedProps = React.useMemo(() => {\n if (!disabled) {\n return undefined;\n }\n return {\n backIconButtonProps: {\n disabled: true\n },\n nextIconButtonProps: {\n disabled: true\n }\n };\n }, [disabled]);\n const apiRef = useGridApiContext();\n const rootProps = useGridRootProps();\n const {\n estimatedRowCount\n } = rootProps;\n return /*#__PURE__*/_jsx(StyledPagination, _extends({\n component: \"div\",\n onRowsPerPageChange: useEventCallback(event => {\n onRowsPerPageChange?.(Number(event.target.value));\n }),\n labelRowsPerPage: apiRef.current.getLocaleText('paginationRowsPerPage'),\n labelDisplayedRows: params => apiRef.current.getLocaleText('paginationDisplayedRows')(_extends({}, params, {\n estimated: estimatedRowCount\n })),\n getItemAriaLabel: apiRef.current.getLocaleText('paginationItemAriaLabel')\n }, computedProps, rest, material, {\n ref: ref\n }));\n});\nconst BaseBadge = forwardRef(function BaseBadge(props, ref) {\n const {\n material\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded3);\n return /*#__PURE__*/_jsx(MUIBadge, _extends({}, rest, material, {\n ref: ref\n }));\n});\nconst BaseCheckbox = forwardRef(function BaseCheckbox(props, ref) {\n const {\n autoFocus,\n label,\n fullWidth,\n slotProps,\n className,\n material\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded4);\n const elementRef = React.useRef(null);\n const handleRef = useForkRef(elementRef, ref);\n const rippleRef = React.useRef(null);\n React.useEffect(() => {\n if (autoFocus) {\n const input = elementRef.current?.querySelector('input');\n input?.focus({\n preventScroll: true\n });\n } else if (autoFocus === false && rippleRef.current) {\n // Only available in @mui/material v5.4.1 or later\n // @ts-ignore\n rippleRef.current.stop({});\n }\n }, [autoFocus]);\n if (!label) {\n return /*#__PURE__*/_jsx(Checkbox, _extends({}, other, material, {\n className: clsx(className, material?.className),\n inputProps: slotProps?.htmlInput,\n ref: handleRef,\n touchRippleRef: rippleRef\n }));\n }\n return /*#__PURE__*/_jsx(FormControlLabel, {\n className: className,\n control: /*#__PURE__*/_jsx(Checkbox, _extends({}, other, material, {\n inputProps: slotProps?.htmlInput,\n ref: handleRef,\n touchRippleRef: rippleRef\n })),\n label: label,\n fullWidth: fullWidth\n });\n});\nconst BaseCircularProgress = forwardRef(function BaseCircularProgress(props, ref) {\n const {\n material\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded5);\n return /*#__PURE__*/_jsx(MUICircularProgress, _extends({}, rest, material, {\n ref: ref\n }));\n});\nconst BaseDivider = forwardRef(function BaseDivider(props, ref) {\n const {\n material\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded6);\n return /*#__PURE__*/_jsx(MUIDivider, _extends({}, rest, material, {\n ref: ref\n }));\n});\nconst BaseLinearProgress = forwardRef(function BaseLinearProgress(props, ref) {\n const {\n material\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded7);\n return /*#__PURE__*/_jsx(MUILinearProgress, _extends({}, rest, material, {\n ref: ref\n }));\n});\nconst BaseButton = forwardRef(function BaseButton(props, ref) {\n const {\n material\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded8);\n return /*#__PURE__*/_jsx(MUIButton, _extends({}, rest, material, {\n ref: ref\n }));\n});\nconst BaseChip = forwardRef(function BaseChip(props, ref) {\n const {\n material\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded9);\n return /*#__PURE__*/_jsx(MUIChip, _extends({}, rest, material, {\n ref: ref\n }));\n});\nconst BaseIconButton = forwardRef(function BaseIconButton(props, ref) {\n const {\n material\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded10);\n return /*#__PURE__*/_jsx(MUIIconButton, _extends({}, rest, material, {\n ref: ref\n }));\n});\nconst BaseTooltip = forwardRef(function BaseTooltip(props, ref) {\n const {\n material\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded11);\n return /*#__PURE__*/_jsx(MUITooltip, _extends({}, rest, material, {\n ref: ref\n }));\n});\nconst BaseSkeleton = forwardRef(function BaseSkeleton(props, ref) {\n const {\n material\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded12);\n return /*#__PURE__*/_jsx(MUISkeleton, _extends({}, rest, material, {\n ref: ref\n }));\n});\nconst BaseSwitch = forwardRef(function BaseSwitch(props, ref) {\n const {\n material,\n label,\n className\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded13);\n if (!label) {\n return /*#__PURE__*/_jsx(MUISwitch, _extends({}, rest, material, {\n className: className,\n ref: ref\n }));\n }\n return /*#__PURE__*/_jsx(FormControlLabel, {\n className: className,\n control: /*#__PURE__*/_jsx(MUISwitch, _extends({}, rest, material, {\n ref: ref\n })),\n label: label\n });\n});\nconst BaseMenuList = forwardRef(function BaseMenuList(props, ref) {\n const {\n material\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded14);\n return /*#__PURE__*/_jsx(MUIMenuList, _extends({}, rest, material, {\n ref: ref\n }));\n});\nfunction BaseMenuItem(props) {\n const {\n inert,\n iconStart,\n iconEnd,\n children,\n material\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded15);\n if (inert) {\n other.disableRipple = true;\n }\n return /*#__PURE__*/React.createElement(MUIMenuItem, _extends({}, other, material), [iconStart && /*#__PURE__*/_jsx(MUIListItemIcon, {\n children: iconStart\n }, \"1\"), /*#__PURE__*/_jsx(ListItemText, {\n children: children\n }, \"2\"), iconEnd && /*#__PURE__*/_jsx(MUIListItemIcon, {\n children: iconEnd\n }, \"3\")]);\n}\nfunction BaseTextField(props) {\n // MaterialUI v5 doesn't support slotProps, until we drop v5 support we need to\n // translate the pattern.\n const {\n slotProps,\n material\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded16);\n return /*#__PURE__*/_jsx(MUITextField, _extends({\n variant: \"outlined\"\n }, rest, material, {\n inputProps: slotProps?.htmlInput,\n InputProps: transformInputProps(slotProps?.input),\n InputLabelProps: _extends({\n shrink: true\n }, slotProps?.inputLabel)\n }));\n}\nfunction BaseAutocomplete(props) {\n const rootProps = useGridRootProps();\n const {\n id,\n multiple,\n freeSolo,\n options,\n getOptionLabel,\n isOptionEqualToValue,\n value,\n onChange,\n label,\n placeholder,\n slotProps,\n material\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded17);\n return /*#__PURE__*/_jsx(MUIAutocomplete, _extends({\n id: id,\n multiple: multiple,\n freeSolo: freeSolo,\n options: options,\n getOptionLabel: getOptionLabel,\n isOptionEqualToValue: isOptionEqualToValue,\n value: value,\n onChange: onChange,\n renderTags: (currentValue, getTagProps) => currentValue.map((option, index) => {\n const _getTagProps = getTagProps({\n index\n }),\n {\n key\n } = _getTagProps,\n tagProps = _objectWithoutPropertiesLoose(_getTagProps, _excluded18);\n return /*#__PURE__*/_jsx(MUIChip, _extends({\n variant: \"outlined\",\n size: \"small\",\n label: typeof option === 'string' ? option : getOptionLabel?.(option)\n }, tagProps), key);\n }),\n renderInput: params => {\n const {\n inputProps,\n InputProps,\n InputLabelProps\n } = params,\n inputRest = _objectWithoutPropertiesLoose(params, _excluded19);\n return /*#__PURE__*/_jsx(MUITextField, _extends({}, inputRest, {\n label: label,\n placeholder: placeholder,\n inputProps: inputProps,\n InputProps: transformInputProps(InputProps, false),\n InputLabelProps: _extends({\n shrink: true\n }, InputLabelProps)\n }, slotProps?.textField, rootProps.slotProps?.baseTextField));\n }\n }, rest, material));\n}\nfunction BaseInput(props) {\n return /*#__PURE__*/_jsx(MUIInputBase, _extends({}, transformInputProps(props)));\n}\nfunction transformInputProps(props, wrapAdornments = true) {\n if (!props) {\n return undefined;\n }\n const {\n slotProps,\n material\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded20);\n const result = rest;\n if (wrapAdornments) {\n if (result.startAdornment) {\n result.startAdornment = /*#__PURE__*/_jsx(InputAdornment, {\n position: \"start\",\n children: result.startAdornment\n });\n }\n if (result.endAdornment) {\n result.endAdornment = /*#__PURE__*/_jsx(InputAdornment, {\n position: \"end\",\n children: result.endAdornment\n });\n }\n }\n for (const k in material) {\n if (Object.hasOwn(material, k)) {\n result[k] = material[k];\n }\n }\n if (slotProps?.htmlInput) {\n if (result.inputProps) {\n result.inputProps = _extends({}, result.inputProps, slotProps?.htmlInput);\n } else {\n result.inputProps = slotProps?.htmlInput;\n }\n }\n return result;\n}\nconst transformOrigin = {\n 'bottom-start': 'top left',\n 'bottom-end': 'top right'\n};\nfunction BasePopper(props) {\n const {\n open,\n children,\n className,\n flip,\n onExited,\n onDidShow,\n onDidHide,\n id,\n target,\n transition,\n placement,\n material\n } = props,\n rest = _objectWithoutPropertiesLoose(props, _excluded21);\n const modifiers = React.useMemo(() => {\n const result = [{\n name: 'preventOverflow',\n options: {\n padding: 8\n }\n }];\n if (flip) {\n result.push({\n name: 'flip',\n enabled: true,\n options: {\n rootBoundary: 'document'\n }\n });\n }\n if (onDidShow || onDidHide) {\n result.push({\n name: 'isPlaced',\n enabled: true,\n phase: 'main',\n fn: () => {\n onDidShow?.();\n },\n effect: () => () => {\n onDidHide?.();\n }\n });\n }\n return result;\n }, [flip, onDidShow, onDidHide]);\n let content;\n if (!transition) {\n content = wrappers(props, children);\n } else {\n const handleExited = popperOnExited => node => {\n if (popperOnExited) {\n popperOnExited();\n }\n if (onExited) {\n onExited(node);\n }\n };\n content = p => wrappers(props, /*#__PURE__*/_jsx(MUIGrow, _extends({}, p.TransitionProps, {\n style: {\n transformOrigin: transformOrigin[p.placement]\n },\n onExited: handleExited(p.TransitionProps?.onExited),\n children: /*#__PURE__*/_jsx(MUIPaper, {\n children: children\n })\n })));\n }\n return /*#__PURE__*/_jsx(MUIPopper, _extends({\n id: id,\n className: className,\n open: open,\n anchorEl: target,\n transition: transition,\n placement: placement,\n modifiers: modifiers\n }, rest, material, {\n children: content\n }));\n}\nfunction wrappers(props, content) {\n return focusTrapWrapper(props, clickAwayWrapper(props, content));\n}\nfunction clickAwayWrapper(props, content) {\n if (props.onClickAway === undefined) {\n return content;\n }\n return /*#__PURE__*/_jsx(ClickAwayListener, {\n onClickAway: props.onClickAway,\n touchEvent: props.clickAwayTouchEvent,\n mouseEvent: props.clickAwayMouseEvent,\n children: content\n });\n}\nfunction focusTrapWrapper(props, content) {\n if (props.focusTrap === undefined) {\n return content;\n }\n return /*#__PURE__*/_jsx(MUIFocusTrap, {\n open: true,\n disableEnforceFocus: true,\n disableAutoFocus: true,\n children: /*#__PURE__*/_jsx(\"div\", {\n tabIndex: -1,\n children: content\n })\n });\n}\nfunction BaseSelectOption(_ref) {\n let {\n native\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded22);\n if (native) {\n return /*#__PURE__*/_jsx(\"option\", _extends({}, props));\n }\n return /*#__PURE__*/_jsx(MUIMenuItem, _extends({}, props));\n}\nconst iconSlots = {\n booleanCellTrueIcon: GridCheckIcon,\n booleanCellFalseIcon: GridCloseIcon,\n columnMenuIcon: GridTripleDotsVerticalIcon,\n openFilterButtonIcon: GridFilterListIcon,\n filterPanelDeleteIcon: GridCloseIcon,\n columnFilteredIcon: GridFilterAltIcon,\n columnSelectorIcon: GridColumnIcon,\n columnSortedAscendingIcon: GridArrowUpwardIcon,\n columnSortedDescendingIcon: GridArrowDownwardIcon,\n columnResizeIcon: GridSeparatorIcon,\n densityCompactIcon: GridViewHeadlineIcon,\n densityStandardIcon: GridTableRowsIcon,\n densityComfortableIcon: GridViewStreamIcon,\n exportIcon: GridDownloadIcon,\n moreActionsIcon: GridMoreVertIcon,\n treeDataCollapseIcon: GridExpandMoreIcon,\n treeDataExpandIcon: GridKeyboardArrowRight,\n groupingCriteriaCollapseIcon: GridExpandMoreIcon,\n groupingCriteriaExpandIcon: GridKeyboardArrowRight,\n detailPanelExpandIcon: GridAddIcon,\n detailPanelCollapseIcon: GridRemoveIcon,\n rowReorderIcon: GridDragIcon,\n quickFilterIcon: GridSearchIcon,\n quickFilterClearIcon: GridClearIcon,\n columnMenuHideIcon: GridVisibilityOffIcon,\n columnMenuSortAscendingIcon: GridArrowUpwardIcon,\n columnMenuSortDescendingIcon: GridArrowDownwardIcon,\n columnMenuUnsortIcon: null,\n columnMenuFilterIcon: GridFilterAltIcon,\n columnMenuManageColumnsIcon: GridViewColumnIcon,\n columnMenuClearIcon: GridClearIcon,\n loadIcon: GridLoadIcon,\n filterPanelAddIcon: GridAddIcon,\n filterPanelRemoveAllIcon: GridDeleteForeverIcon,\n columnReorderIcon: GridDragIcon,\n menuItemCheckIcon: GridCheckIcon\n};\nconst baseSlots = {\n baseAutocomplete: BaseAutocomplete,\n baseBadge: BaseBadge,\n baseCheckbox: BaseCheckbox,\n baseChip: BaseChip,\n baseCircularProgress: BaseCircularProgress,\n baseDivider: BaseDivider,\n baseInput: BaseInput,\n baseLinearProgress: BaseLinearProgress,\n baseMenuList: BaseMenuList,\n baseMenuItem: BaseMenuItem,\n baseTextField: BaseTextField,\n baseButton: BaseButton,\n baseIconButton: BaseIconButton,\n baseTooltip: BaseTooltip,\n basePagination: BasePagination,\n basePopper: BasePopper,\n baseSelect: BaseSelect,\n baseSelectOption: BaseSelectOption,\n baseSkeleton: BaseSkeleton,\n baseSwitch: BaseSwitch\n};\nconst materialSlots = _extends({}, baseSlots, iconSlots);\nexport default materialSlots;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { styled } from '@mui/system';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { gridClasses, getDataGridUtilityClass } from \"../../constants/gridClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = () => {\n const slots = {\n root: ['bottomContainer']\n };\n return composeClasses(slots, getDataGridUtilityClass, {});\n};\nconst Element = styled('div')({\n position: 'sticky',\n zIndex: 40,\n bottom: 'calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))'\n});\nexport function GridBottomContainer(props) {\n const classes = useUtilityClasses();\n return /*#__PURE__*/_jsx(Element, _extends({}, props, {\n className: clsx(classes.root, gridClasses['container--bottom']),\n role: \"presentation\"\n }));\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { GridSkeletonCell, GridColumnsPanel, GridFilterPanel, GridFooter, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridPanel, GridRow, GridColumnHeaderFilterIconButton, GridRowCount, GridColumnsManagement, GridColumnHeaderSortIcon, GridNoColumnsOverlay } from \"../components/index.js\";\nimport { GridCell } from \"../components/cell/GridCell.js\";\nimport { GridColumnHeaders } from \"../components/GridColumnHeaders.js\";\nimport { GridColumnMenu } from \"../components/menu/columnMenu/GridColumnMenu.js\";\nimport { GridDetailPanels } from \"../components/GridDetailPanels.js\";\nimport { GridPinnedRows } from \"../components/GridPinnedRows.js\";\nimport { GridNoResultsOverlay } from \"../components/GridNoResultsOverlay.js\";\nimport materialSlots from \"../material/index.js\";\nimport { GridBottomContainer } from \"../components/virtualization/GridBottomContainer.js\";\nimport { GridToolbar } from \"../components/toolbarV8/GridToolbar.js\";\n\n// TODO: camelCase these key. It's a private helper now.\n// Remove then need to call `uncapitalizeObjectKeys`.\nexport const DATA_GRID_DEFAULT_SLOTS_COMPONENTS = _extends({}, materialSlots, {\n cell: GridCell,\n skeletonCell: GridSkeletonCell,\n columnHeaderFilterIconButton: GridColumnHeaderFilterIconButton,\n columnHeaderSortIcon: GridColumnHeaderSortIcon,\n columnMenu: GridColumnMenu,\n columnHeaders: GridColumnHeaders,\n detailPanels: GridDetailPanels,\n bottomContainer: GridBottomContainer,\n footer: GridFooter,\n footerRowCount: GridRowCount,\n toolbar: GridToolbar,\n pinnedRows: GridPinnedRows,\n loadingOverlay: GridLoadingOverlay,\n noResultsOverlay: GridNoResultsOverlay,\n noRowsOverlay: GridNoRowsOverlay,\n noColumnsOverlay: GridNoColumnsOverlay,\n pagination: GridPagination,\n filterPanel: GridFilterPanel,\n columnsPanel: GridColumnsPanel,\n columnsManagement: GridColumnsManagement,\n panel: GridPanel,\n row: GridRow\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useTheme } from '@mui/material/styles';\nimport { getThemeProps } from '@mui/system';\nimport { GRID_DEFAULT_LOCALE_TEXT } from \"../constants/index.js\";\nimport { DATA_GRID_DEFAULT_SLOTS_COMPONENTS } from \"../constants/defaultGridSlotsComponents.js\";\nimport { computeSlots } from \"../internals/utils/index.js\";\nimport { DATA_GRID_PROPS_DEFAULT_VALUES } from \"../constants/dataGridPropsDefaultValues.js\";\nconst DATA_GRID_FORCED_PROPS = {\n disableMultipleColumnsFiltering: true,\n disableMultipleColumnsSorting: true,\n throttleRowsMs: undefined,\n hideFooterRowCount: false,\n pagination: true,\n checkboxSelectionVisibleOnly: false,\n disableColumnReorder: true,\n keepColumnPositionIfDraggedOutside: false,\n signature: 'DataGrid',\n listView: false\n};\nconst getDataGridForcedProps = themedProps => _extends({}, DATA_GRID_FORCED_PROPS, themedProps.dataSource ? {\n filterMode: 'server',\n sortingMode: 'server',\n paginationMode: 'server'\n} : {});\nconst defaultSlots = DATA_GRID_DEFAULT_SLOTS_COMPONENTS;\nexport const useDataGridProps = inProps => {\n const theme = useTheme();\n const themedProps = React.useMemo(() => getThemeProps({\n props: inProps,\n theme,\n name: 'MuiDataGrid'\n }), [theme, inProps]);\n const localeText = React.useMemo(() => _extends({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);\n const slots = React.useMemo(() => computeSlots({\n defaultSlots,\n slots: themedProps.slots\n }), [themedProps.slots]);\n const injectDefaultProps = React.useMemo(() => {\n return Object.keys(DATA_GRID_PROPS_DEFAULT_VALUES).reduce((acc, key) => {\n // @ts-ignore\n acc[key] = themedProps[key] ?? DATA_GRID_PROPS_DEFAULT_VALUES[key];\n return acc;\n }, {});\n }, [themedProps]);\n return React.useMemo(() => _extends({}, themedProps, injectDefaultProps, {\n localeText,\n slots\n }, getDataGridForcedProps(themedProps)), [themedProps, localeText, slots, injectDefaultProps]);\n};","// Used https://gist.github.com/mudge/5830382 as a starting point.\n// See https://github.com/browserify/events/blob/master/events.js for\n// the Node.js (https://nodejs.org/api/events.html) polyfill used by webpack.\nexport class EventManager {\n constructor() {\n this.maxListeners = 20;\n this.warnOnce = false;\n this.events = {};\n }\n on(eventName, listener, options = {}) {\n let collection = this.events[eventName];\n if (!collection) {\n collection = {\n highPriority: new Map(),\n regular: new Map()\n };\n this.events[eventName] = collection;\n }\n if (options.isFirst) {\n collection.highPriority.set(listener, true);\n } else {\n collection.regular.set(listener, true);\n }\n if (process.env.NODE_ENV !== 'production') {\n const collectionSize = collection.highPriority.size + collection.regular.size;\n if (collectionSize > this.maxListeners && !this.warnOnce) {\n this.warnOnce = true;\n console.warn([`Possible EventEmitter memory leak detected. ${collectionSize} ${eventName} listeners added.`].join('\\n'));\n }\n }\n }\n removeListener(eventName, listener) {\n if (this.events[eventName]) {\n this.events[eventName].regular.delete(listener);\n this.events[eventName].highPriority.delete(listener);\n }\n }\n removeAllListeners() {\n this.events = {};\n }\n emit(eventName, ...args) {\n const collection = this.events[eventName];\n if (!collection) {\n return;\n }\n const highPriorityListeners = Array.from(collection.highPriority.keys());\n const regularListeners = Array.from(collection.regular.keys());\n for (let i = highPriorityListeners.length - 1; i >= 0; i -= 1) {\n const listener = highPriorityListeners[i];\n if (collection.highPriority.has(listener)) {\n listener.apply(this, args);\n }\n }\n for (let i = 0; i < regularListeners.length; i += 1) {\n const listener = regularListeners[i];\n if (collection.regular.has(listener)) {\n listener.apply(this, args);\n }\n }\n }\n once(eventName, listener) {\n // eslint-disable-next-line consistent-this\n const that = this;\n this.on(eventName, function oneTimeListener(...args) {\n that.removeListener(eventName, oneTimeListener);\n listener.apply(that, args);\n });\n }\n}","export class Store {\n static create(value) {\n return new Store(value);\n }\n constructor(_value) {\n this.value = void 0;\n this.listeners = void 0;\n this.subscribe = fn => {\n this.listeners.add(fn);\n return () => {\n this.listeners.delete(fn);\n };\n };\n this.getSnapshot = () => {\n return this.value;\n };\n this.update = value => {\n this.value = value;\n this.listeners.forEach(l => l(value));\n };\n this.value = _value;\n this.listeners = new Set();\n }\n}","import * as React from 'react';\nimport { EventManager } from '@mui/x-internals/EventManager';\nimport { Store } from \"../../utils/Store.js\";\nimport { useGridApiMethod } from \"../utils/useGridApiMethod.js\";\nimport { GridSignature } from \"../../constants/signature.js\";\nconst SYMBOL_API_PRIVATE = Symbol('mui.api_private');\nconst isSyntheticEvent = event => {\n return event.isPropagationStopped !== undefined;\n};\nexport function unwrapPrivateAPI(publicApi) {\n return publicApi[SYMBOL_API_PRIVATE];\n}\nlet globalId = 0;\nfunction createPrivateAPI(publicApiRef) {\n const existingPrivateApi = publicApiRef.current?.[SYMBOL_API_PRIVATE];\n if (existingPrivateApi) {\n return existingPrivateApi;\n }\n const state = {};\n const privateApi = {\n state,\n store: Store.create(state),\n instanceId: {\n id: globalId\n }\n };\n globalId += 1;\n privateApi.getPublicApi = () => publicApiRef.current;\n privateApi.register = (visibility, methods) => {\n Object.keys(methods).forEach(methodName => {\n const method = methods[methodName];\n const currentPrivateMethod = privateApi[methodName];\n if (currentPrivateMethod?.spying === true) {\n currentPrivateMethod.target = method;\n } else {\n privateApi[methodName] = method;\n }\n if (visibility === 'public') {\n const publicApi = publicApiRef.current;\n const currentPublicMethod = publicApi[methodName];\n if (currentPublicMethod?.spying === true) {\n currentPublicMethod.target = method;\n } else {\n publicApi[methodName] = method;\n }\n }\n });\n };\n privateApi.register('private', {\n caches: {},\n eventManager: new EventManager()\n });\n return privateApi;\n}\nfunction createPublicAPI(privateApiRef) {\n const publicApi = {\n get state() {\n return privateApiRef.current.state;\n },\n get store() {\n return privateApiRef.current.store;\n },\n get instanceId() {\n return privateApiRef.current.instanceId;\n },\n [SYMBOL_API_PRIVATE]: privateApiRef.current\n };\n return publicApi;\n}\nexport function useGridApiInitialization(inputApiRef, props) {\n const publicApiRef = React.useRef(null);\n const privateApiRef = React.useRef(null);\n if (!privateApiRef.current) {\n privateApiRef.current = createPrivateAPI(publicApiRef);\n }\n if (!publicApiRef.current) {\n publicApiRef.current = createPublicAPI(privateApiRef);\n }\n const publishEvent = React.useCallback((...args) => {\n const [name, params, event = {}] = args;\n event.defaultMuiPrevented = false;\n if (isSyntheticEvent(event) && event.isPropagationStopped()) {\n return;\n }\n const details = props.signature === GridSignature.DataGridPro || props.signature === GridSignature.DataGridPremium ? {\n api: privateApiRef.current.getPublicApi()\n } : {};\n privateApiRef.current.eventManager.emit(name, params, event, details);\n }, [privateApiRef, props.signature]);\n const subscribeEvent = React.useCallback((event, handler, options) => {\n privateApiRef.current.eventManager.on(event, handler, options);\n const api = privateApiRef.current;\n return () => {\n api.eventManager.removeListener(event, handler);\n };\n }, [privateApiRef]);\n useGridApiMethod(privateApiRef, {\n subscribeEvent,\n publishEvent\n }, 'public');\n if (inputApiRef && !inputApiRef.current?.state) {\n inputApiRef.current = publicApiRef.current;\n }\n React.useImperativeHandle(inputApiRef, () => publicApiRef.current, [publicApiRef]);\n React.useEffect(() => {\n const api = privateApiRef.current;\n return () => {\n api.publishEvent('unmount');\n };\n }, [privateApiRef]);\n return privateApiRef;\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { forwardRef } from '@mui/x-internals/forwardRef';\nimport { GridRoot } from \"../components/index.js\";\nimport { useGridAriaAttributes } from \"../hooks/utils/useGridAriaAttributes.js\";\nimport { useGridRowAriaAttributes } from \"../hooks/features/rows/useGridRowAriaAttributes.js\";\nimport { GridContextProvider } from \"../context/GridContextProvider.js\";\nimport { useDataGridComponent } from \"./useDataGridComponent.js\";\nimport { useDataGridProps } from \"./useDataGridProps.js\";\nimport { propValidatorsDataGrid, validateProps } from \"../internals/utils/propValidation.js\";\nimport { useMaterialCSSVariables } from \"../material/variables.js\";\nimport { useGridApiInitialization } from \"../hooks/core/useGridApiInitialization.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst configuration = {\n hooks: {\n useCSSVariables: useMaterialCSSVariables,\n useGridAriaAttributes,\n useGridRowAriaAttributes,\n useCellAggregationResult: () => null\n }\n};\nconst DataGridRaw = forwardRef(function DataGrid(inProps, ref) {\n const props = useDataGridProps(inProps);\n const privateApiRef = useGridApiInitialization(props.apiRef, props);\n useDataGridComponent(privateApiRef, props);\n if (process.env.NODE_ENV !== 'production') {\n validateProps(props, propValidatorsDataGrid);\n }\n return /*#__PURE__*/_jsx(GridContextProvider, {\n privateApiRef: privateApiRef,\n configuration: configuration,\n props: props,\n children: /*#__PURE__*/_jsx(GridRoot, _extends({\n className: props.className,\n style: props.style,\n sx: props.sx\n }, props.slotProps?.root, {\n ref: ref\n }))\n });\n});\n/**\n * Features:\n * - [DataGrid](https://mui.com/x/react-data-grid/features/)\n *\n * API:\n * - [DataGrid API](https://mui.com/x/api/data-grid/data-grid/)\n */\nexport const DataGrid = /*#__PURE__*/React.memo(DataGridRaw);\nDataGridRaw.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"pnpm proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * The ref object that allows Data Grid manipulation. Can be instantiated with `useGridApiRef()`.\n */\n apiRef: PropTypes.shape({\n current: PropTypes.object\n }),\n /**\n * The `aria-label` of the Data Grid.\n */\n 'aria-label': PropTypes.string,\n /**\n * The `id` of the element containing a label for the Data Grid.\n */\n 'aria-labelledby': PropTypes.string,\n /**\n * If `true`, the Data Grid height is dynamic and follows the number of rows in the Data Grid.\n * @default false\n * @deprecated Use flex parent container instead: https://mui.com/x/react-data-grid/layout/#flex-parent-container\n * @example\n * <div style={{ display: 'flex', flexDirection: 'column' }}>\n * <DataGrid />\n * </div>\n */\n autoHeight: PropTypes.bool,\n /**\n * If `true`, the pageSize is calculated according to the container size and the max number of rows to avoid rendering a vertical scroll bar.\n * @default false\n */\n autoPageSize: PropTypes.bool,\n /**\n * If `true`, columns are autosized after the datagrid is mounted.\n * @default false\n */\n autosizeOnMount: PropTypes.bool,\n /**\n * The options for autosize when user-initiated.\n */\n autosizeOptions: PropTypes.shape({\n columns: PropTypes.arrayOf(PropTypes.string),\n disableColumnVirtualization: PropTypes.bool,\n expand: PropTypes.bool,\n includeHeaders: PropTypes.bool,\n includeOutliers: PropTypes.bool,\n outliersFactor: PropTypes.number\n }),\n /**\n * Controls the modes of the cells.\n */\n cellModesModel: PropTypes.object,\n /**\n * If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.\n * @default false\n */\n checkboxSelection: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * The character used to separate cell values when copying to the clipboard.\n * @default '\\t'\n */\n clipboardCopyCellDelimiter: PropTypes.string,\n /**\n * Column region in pixels to render before/after the viewport\n * @default 150\n */\n columnBufferPx: PropTypes.number,\n /**\n * Sets the height in pixels of the column group headers in the Data Grid.\n * Inherits the `columnHeaderHeight` value if not set.\n */\n columnGroupHeaderHeight: PropTypes.number,\n columnGroupingModel: PropTypes.arrayOf(PropTypes.object),\n /**\n * Sets the height in pixel of the column headers in the Data Grid.\n * @default 56\n */\n columnHeaderHeight: PropTypes.number,\n /**\n * Set of columns of type [[GridColDef]][].\n */\n columns: PropTypes.arrayOf(PropTypes.object).isRequired,\n /**\n * Set the column visibility model of the Data Grid.\n * If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].\n */\n columnVisibilityModel: PropTypes.object,\n /**\n * The data source object.\n */\n dataSource: PropTypes.shape({\n getRows: PropTypes.func.isRequired,\n updateRow: PropTypes.func\n }),\n /**\n * Data source cache object.\n */\n dataSourceCache: PropTypes.shape({\n clear: PropTypes.func.isRequired,\n get: PropTypes.func.isRequired,\n set: PropTypes.func.isRequired\n }),\n /**\n * Set the density of the Data Grid.\n * @default \"standard\"\n */\n density: PropTypes.oneOf(['comfortable', 'compact', 'standard']),\n /**\n * If `true`, column autosizing on header separator double-click is disabled.\n * @default false\n */\n disableAutosize: PropTypes.bool,\n /**\n * If `true`, column filters are disabled.\n * @default false\n */\n disableColumnFilter: PropTypes.bool,\n /**\n * If `true`, the column menu is disabled.\n * @default false\n */\n disableColumnMenu: PropTypes.bool,\n /**\n * If `true`, resizing columns is disabled.\n * @default false\n */\n disableColumnResize: PropTypes.bool,\n /**\n * If `true`, hiding/showing columns is disabled.\n * @default false\n */\n disableColumnSelector: PropTypes.bool,\n /**\n * If `true`, the column sorting feature will be disabled.\n * @default false\n */\n disableColumnSorting: PropTypes.bool,\n /**\n * If `true`, the density selector is disabled.\n * @default false\n */\n disableDensitySelector: PropTypes.bool,\n /**\n * If `true`, `eval()` is not used for performance optimization.\n * @default false\n */\n disableEval: PropTypes.bool,\n /**\n * If `true`, multiple selection using the Ctrl/CMD or Shift key is disabled.\n * The MIT DataGrid will ignore this prop, unless `checkboxSelection` is enabled.\n * @default false (`!props.checkboxSelection` for MIT Data Grid)\n */\n disableMultipleRowSelection: PropTypes.bool,\n /**\n * If `true`, the selection on click on a row or cell is disabled.\n * @default false\n */\n disableRowSelectionOnClick: PropTypes.bool,\n /**\n * If `true`, the virtualization is disabled.\n * @default false\n */\n disableVirtualization: PropTypes.bool,\n /**\n * Controls whether to use the cell or row editing.\n * @default \"cell\"\n */\n editMode: PropTypes.oneOf(['cell', 'row']),\n /**\n * Use if the actual rowCount is not known upfront, but an estimation is available.\n * If some rows have children (for instance in the tree data), this number represents the amount of top level rows.\n * Applicable only with `paginationMode=\"server\"` and when `rowCount=\"-1\"`\n */\n estimatedRowCount: PropTypes.number,\n /**\n * Unstable features, breaking changes might be introduced.\n * For each feature, if the flag is not explicitly set to `true`, the feature will be fully disabled and any property / method call will not have any effect.\n */\n experimentalFeatures: PropTypes.shape({\n warnIfFocusStateIsNotSynced: PropTypes.bool\n }),\n /**\n * The milliseconds delay to wait after a keystroke before triggering filtering.\n * @default 150\n */\n filterDebounceMs: PropTypes.number,\n /**\n * Filtering can be processed on the server or client-side.\n * Set it to 'server' if you would like to handle filtering on the server-side.\n * @default \"client\"\n */\n filterMode: PropTypes.oneOf(['client', 'server']),\n /**\n * Set the filter model of the Data Grid.\n */\n filterModel: PropTypes.shape({\n items: PropTypes.arrayOf(PropTypes.shape({\n field: PropTypes.string.isRequired,\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n operator: PropTypes.string.isRequired,\n value: PropTypes.any\n })).isRequired,\n logicOperator: PropTypes.oneOf(['and', 'or']),\n quickFilterExcludeHiddenColumns: PropTypes.bool,\n quickFilterLogicOperator: PropTypes.oneOf(['and', 'or']),\n quickFilterValues: PropTypes.array\n }),\n /**\n * Function that applies CSS classes dynamically on cells.\n * @param {GridCellParams} params With all properties from [[GridCellParams]].\n * @returns {string} The CSS class to apply to the cell.\n */\n getCellClassName: PropTypes.func,\n /**\n * Function that returns the element to render in row detail.\n * @param {GridRowParams} params With all properties from [[GridRowParams]].\n * @returns {React.JSX.Element} The row detail element.\n */\n getDetailPanelContent: PropTypes.func,\n /**\n * Function that returns the estimated height for a row.\n * Only works if dynamic row height is used.\n * Once the row height is measured this value is discarded.\n * @param {GridRowHeightParams} params With all properties from [[GridRowHeightParams]].\n * @returns {number | null} The estimated row height value. If `null` or `undefined` then the default row height, based on the density, is applied.\n */\n getEstimatedRowHeight: PropTypes.func,\n /**\n * Function that applies CSS classes dynamically on rows.\n * @param {GridRowClassNameParams} params With all properties from [[GridRowClassNameParams]].\n * @returns {string} The CSS class to apply to the row.\n */\n getRowClassName: PropTypes.func,\n /**\n * Function that sets the row height per row.\n * @param {GridRowHeightParams} params With all properties from [[GridRowHeightParams]].\n * @returns {GridRowHeightReturnValue} The row height value. If `null` or `undefined` then the default row height is applied. If \"auto\" then the row height is calculated based on the content.\n */\n getRowHeight: PropTypes.func,\n /**\n * Return the id of a given [[GridRowModel]].\n * Ensure the reference of this prop is stable to avoid performance implications.\n * It could be done by either defining the prop outside of the component or by memoizing it.\n */\n getRowId: PropTypes.func,\n /**\n * Function that allows to specify the spacing between rows.\n * @param {GridRowSpacingParams} params With all properties from [[GridRowSpacingParams]].\n * @returns {GridRowSpacing} The row spacing values.\n */\n getRowSpacing: PropTypes.func,\n /**\n * If `true`, the footer component is hidden.\n * @default false\n */\n hideFooter: PropTypes.bool,\n /**\n * If `true`, the pagination component in the footer is hidden.\n * @default false\n */\n hideFooterPagination: PropTypes.bool,\n /**\n * If `true`, the selected row count in the footer is hidden.\n * @default false\n */\n hideFooterSelectedRowCount: PropTypes.bool,\n /**\n * If `true`, the diacritics (accents) are ignored when filtering or quick filtering.\n * E.g. when filter value is `cafe`, the rows with `café` will be visible.\n * @default false\n */\n ignoreDiacritics: PropTypes.bool,\n /**\n * If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.\n * If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.\n * @default false\n */\n ignoreValueFormatterDuringExport: PropTypes.oneOfType([PropTypes.shape({\n clipboardExport: PropTypes.bool,\n csvExport: PropTypes.bool\n }), PropTypes.bool]),\n /**\n * The initial state of the DataGrid.\n * The data in it will be set in the state on initialization but will not be controlled.\n * If one of the data in `initialState` is also being controlled, then the control state wins.\n */\n initialState: PropTypes.object,\n /**\n * Callback fired when a cell is rendered, returns true if the cell is editable.\n * @param {GridCellParams} params With all properties from [[GridCellParams]].\n * @returns {boolean} A boolean indicating if the cell is editable.\n */\n isCellEditable: PropTypes.func,\n /**\n * Determines if a row can be selected.\n * @param {GridRowParams} params With all properties from [[GridRowParams]].\n * @returns {boolean} A boolean indicating if the row is selectable.\n */\n isRowSelectable: PropTypes.func,\n /**\n * If `true`, the selection model will retain selected rows that do not exist.\n * Useful when using server side pagination and row selections need to be retained\n * when changing pages.\n * @default false\n */\n keepNonExistentRowsSelected: PropTypes.bool,\n /**\n * The label of the Data Grid.\n * If the `showToolbar` prop is `true`, the label will be displayed in the toolbar and applied to the `aria-label` attribute of the grid.\n * If the `showToolbar` prop is `false`, the label will not be visible but will be applied to the `aria-label` attribute of the grid.\n */\n label: PropTypes.string,\n /**\n * If `true`, a loading overlay is displayed.\n * @default false\n */\n loading: PropTypes.bool,\n /**\n * Set the locale text of the Data Grid.\n * You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.\n */\n localeText: PropTypes.object,\n /**\n * Pass a custom logger in the components that implements the [[Logger]] interface.\n * @default console\n */\n logger: PropTypes.shape({\n debug: PropTypes.func.isRequired,\n error: PropTypes.func.isRequired,\n info: PropTypes.func.isRequired,\n warn: PropTypes.func.isRequired\n }),\n /**\n * Allows to pass the logging level or false to turn off logging.\n * @default \"error\" (\"warn\" in dev mode)\n */\n logLevel: PropTypes.oneOf(['debug', 'error', 'info', 'warn', false]),\n /**\n * Nonce of the inline styles for [Content Security Policy](https://www.w3.org/TR/2016/REC-CSP2-20161215/#script-src-the-nonce-attribute).\n */\n nonce: PropTypes.string,\n /**\n * Callback fired when any cell is clicked.\n * @param {GridCellParams} params With all properties from [[GridCellParams]].\n * @param {MuiEvent<React.MouseEvent>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onCellClick: PropTypes.func,\n /**\n * Callback fired when a double click event comes from a cell element.\n * @param {GridCellParams} params With all properties from [[GridCellParams]].\n * @param {MuiEvent<React.MouseEvent>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onCellDoubleClick: PropTypes.func,\n /**\n * Callback fired when the cell turns to edit mode.\n * @param {GridCellParams} params With all properties from [[GridCellParams]].\n * @param {MuiEvent<React.KeyboardEvent | React.MouseEvent>} event The event that caused this prop to be called.\n */\n onCellEditStart: PropTypes.func,\n /**\n * Callback fired when the cell turns to view mode.\n * @param {GridCellParams} params With all properties from [[GridCellParams]].\n * @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.\n */\n onCellEditStop: PropTypes.func,\n /**\n * Callback fired when a keydown event comes from a cell element.\n * @param {GridCellParams} params With all properties from [[GridCellParams]].\n * @param {MuiEvent<React.KeyboardEvent>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onCellKeyDown: PropTypes.func,\n /**\n * Callback fired when the `cellModesModel` prop changes.\n * @param {GridCellModesModel} cellModesModel Object containing which cells are in \"edit\" mode.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onCellModesModelChange: PropTypes.func,\n /**\n * Callback called when the data is copied to the clipboard.\n * @param {string} data The data copied to the clipboard.\n */\n onClipboardCopy: PropTypes.func,\n /**\n * Callback fired when a click event comes from a column header element.\n * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].\n * @param {MuiEvent<React.MouseEvent>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onColumnHeaderClick: PropTypes.func,\n /**\n * Callback fired when a contextmenu event comes from a column header element.\n * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].\n * @param {MuiEvent<React.MouseEvent>} event The event object.\n */\n onColumnHeaderContextMenu: PropTypes.func,\n /**\n * Callback fired when a double click event comes from a column header element.\n * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].\n * @param {MuiEvent<React.MouseEvent>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onColumnHeaderDoubleClick: PropTypes.func,\n /**\n * Callback fired when a mouse enter event comes from a column header element.\n * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].\n * @param {MuiEvent<React.MouseEvent>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onColumnHeaderEnter: PropTypes.func,\n /**\n * Callback fired when a mouse leave event comes from a column header element.\n * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].\n * @param {MuiEvent<React.MouseEvent>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onColumnHeaderLeave: PropTypes.func,\n /**\n * Callback fired when a mouseout event comes from a column header element.\n * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].\n * @param {MuiEvent<React.MouseEvent>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onColumnHeaderOut: PropTypes.func,\n /**\n * Callback fired when a mouseover event comes from a column header element.\n * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].\n * @param {MuiEvent<React.MouseEvent>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onColumnHeaderOver: PropTypes.func,\n /**\n * Callback fired when a column is reordered.\n * @param {GridColumnOrderChangeParams} params With all properties from [[GridColumnOrderChangeParams]].\n * @param {MuiEvent<{}>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onColumnOrderChange: PropTypes.func,\n /**\n * Callback fired while a column is being resized.\n * @param {GridColumnResizeParams} params With all properties from [[GridColumnResizeParams]].\n * @param {MuiEvent<React.MouseEvent>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onColumnResize: PropTypes.func,\n /**\n * Callback fired when the column visibility model changes.\n * @param {GridColumnVisibilityModel} model The new model.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onColumnVisibilityModelChange: PropTypes.func,\n /**\n * Callback fired when the width of a column is changed.\n * @param {GridColumnResizeParams} params With all properties from [[GridColumnResizeParams]].\n * @param {MuiEvent<React.MouseEvent>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onColumnWidthChange: PropTypes.func,\n /**\n * Callback fired when a data source request fails.\n * @param {GridGetRowsError | GridUpdateRowError} error The data source error object.\n */\n onDataSourceError: PropTypes.func,\n /**\n * Callback fired when the density changes.\n * @param {GridDensity} density New density value.\n */\n onDensityChange: PropTypes.func,\n /**\n * Callback fired when the Filter model changes before the filters are applied.\n * @param {GridFilterModel} model With all properties from [[GridFilterModel]].\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onFilterModelChange: PropTypes.func,\n /**\n * Callback fired when the menu is closed.\n * @param {GridMenuParams} params With all properties from [[GridMenuParams]].\n * @param {MuiEvent<{}>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onMenuClose: PropTypes.func,\n /**\n * Callback fired when the menu is opened.\n * @param {GridMenuParams} params With all properties from [[GridMenuParams]].\n * @param {MuiEvent<{}>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onMenuOpen: PropTypes.func,\n /**\n * Callback fired when the pagination meta has changed.\n * @param {GridPaginationMeta} paginationMeta Updated pagination meta.\n */\n onPaginationMetaChange: PropTypes.func,\n /**\n * Callback fired when the pagination model has changed.\n * @param {GridPaginationModel} model Updated pagination model.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onPaginationModelChange: PropTypes.func,\n /**\n * Callback fired when the preferences panel is closed.\n * @param {GridPreferencePanelParams} params With all properties from [[GridPreferencePanelParams]].\n * @param {MuiEvent<{}>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onPreferencePanelClose: PropTypes.func,\n /**\n * Callback fired when the preferences panel is opened.\n * @param {GridPreferencePanelParams} params With all properties from [[GridPreferencePanelParams]].\n * @param {MuiEvent<{}>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onPreferencePanelOpen: PropTypes.func,\n /**\n * Callback called when `processRowUpdate` throws an error or rejects.\n * @param {any} error The error thrown.\n */\n onProcessRowUpdateError: PropTypes.func,\n /**\n * Callback fired when the Data Grid is resized.\n * @param {ElementSize} containerSize With all properties from [[ElementSize]].\n * @param {MuiEvent<{}>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onResize: PropTypes.func,\n /**\n * Callback fired when a row is clicked.\n * Not called if the target clicked is an interactive element added by the built-in columns.\n * @param {GridRowParams} params With all properties from [[GridRowParams]].\n * @param {MuiEvent<React.MouseEvent>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onRowClick: PropTypes.func,\n /**\n * Callback fired when the row count has changed.\n * @param {number} count Updated row count.\n */\n onRowCountChange: PropTypes.func,\n /**\n * Callback fired when a double click event comes from a row container element.\n * @param {GridRowParams} params With all properties from [[RowParams]].\n * @param {MuiEvent<React.MouseEvent>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onRowDoubleClick: PropTypes.func,\n /**\n * Callback fired when the row turns to edit mode.\n * @param {GridRowParams} params With all properties from [[GridRowParams]].\n * @param {MuiEvent<React.KeyboardEvent | React.MouseEvent>} event The event that caused this prop to be called.\n */\n onRowEditStart: PropTypes.func,\n /**\n * Callback fired when the row turns to view mode.\n * @param {GridRowParams} params With all properties from [[GridRowParams]].\n * @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.\n */\n onRowEditStop: PropTypes.func,\n /**\n * Callback fired when the `rowModesModel` prop changes.\n * @param {GridRowModesModel} rowModesModel Object containing which rows are in \"edit\" mode.\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onRowModesModelChange: PropTypes.func,\n /**\n * Callback fired when the selection state of one or multiple rows changes.\n * @param {GridRowSelectionModel} rowSelectionModel With all the row ids [[GridSelectionModel]].\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onRowSelectionModelChange: PropTypes.func,\n /**\n * Callback fired when the sort model changes before a column is sorted.\n * @param {GridSortModel} model With all properties from [[GridSortModel]].\n * @param {GridCallbackDetails} details Additional details for this callback.\n */\n onSortModelChange: PropTypes.func,\n /**\n * Callback fired when the state of the Data Grid is updated.\n * @param {GridState} state The new state.\n * @param {MuiEvent<{}>} event The event object.\n * @param {GridCallbackDetails} details Additional details for this callback.\n * @ignore - do not document.\n */\n onStateChange: PropTypes.func,\n /**\n * Select the pageSize dynamically using the component UI.\n * @default [25, 50, 100]\n */\n pageSizeOptions: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n label: PropTypes.string.isRequired,\n value: PropTypes.number.isRequired\n })]).isRequired),\n pagination: PropTypes.oneOf([true]),\n /**\n * The extra information about the pagination state of the Data Grid.\n * Only applicable with `paginationMode=\"server\"`.\n */\n paginationMeta: PropTypes.shape({\n hasNextPage: PropTypes.bool\n }),\n /**\n * Pagination can be processed on the server or client-side.\n * Set it to 'client' if you would like to handle the pagination on the client-side.\n * Set it to 'server' if you would like to handle the pagination on the server-side.\n * @default \"client\"\n */\n paginationMode: PropTypes.oneOf(['client', 'server']),\n /**\n * The pagination model of type [[GridPaginationModel]] which refers to current `page` and `pageSize`.\n */\n paginationModel: PropTypes.shape({\n page: PropTypes.number.isRequired,\n pageSize: PropTypes.number.isRequired\n }),\n /**\n * Callback called before updating a row with new values in the row and cell editing.\n * @template R\n * @param {R} newRow Row object with the new values.\n * @param {R} oldRow Row object with the old values.\n * @param {{ rowId: GridRowId }} params Additional parameters.\n * @returns {Promise<R> | R} The final values to update the row.\n */\n processRowUpdate: PropTypes.func,\n /**\n * The milliseconds throttle delay for resizing the grid.\n * @default 60\n */\n resizeThrottleMs: PropTypes.number,\n /**\n * Row region in pixels to render before/after the viewport\n * @default 150\n */\n rowBufferPx: PropTypes.number,\n /**\n * Set the total number of rows, if it is different from the length of the value `rows` prop.\n * If some rows have children (for instance in the tree data), this number represents the amount of top level rows.\n * Only works with `paginationMode=\"server\"`, ignored when `paginationMode=\"client\"`.\n */\n rowCount: PropTypes.number,\n /**\n * Sets the height in pixel of a row in the Data Grid.\n * @default 52\n */\n rowHeight: PropTypes.number,\n /**\n * Controls the modes of the rows.\n */\n rowModesModel: PropTypes.object,\n /**\n * Set of rows of type [[GridRowsProp]].\n * @default []\n */\n rows: PropTypes.arrayOf(PropTypes.object),\n /**\n * If `false`, the row selection mode is disabled.\n * @default true\n */\n rowSelection: PropTypes.bool,\n /**\n * Sets the row selection model of the Data Grid.\n */\n rowSelectionModel: PropTypes /* @typescript-to-proptypes-ignore */.shape({\n ids: PropTypes.instanceOf(Set).isRequired,\n type: PropTypes.oneOf(['exclude', 'include']).isRequired\n }),\n /**\n * Sets the type of space between rows added by `getRowSpacing`.\n * @default \"margin\"\n */\n rowSpacingType: PropTypes.oneOf(['border', 'margin']),\n /**\n * If `true`, the Data Grid will auto span the cells over the rows having the same value.\n * @default false\n */\n rowSpanning: PropTypes.bool,\n /**\n * Override the height/width of the Data Grid inner scrollbar.\n */\n scrollbarSize: PropTypes.number,\n /**\n * If `true`, vertical borders will be displayed between cells.\n * @default false\n */\n showCellVerticalBorder: PropTypes.bool,\n /**\n * If `true`, vertical borders will be displayed between column header items.\n * @default false\n */\n showColumnVerticalBorder: PropTypes.bool,\n /**\n * If `true`, the toolbar is displayed.\n * @default false\n */\n showToolbar: PropTypes.bool,\n /**\n * Overridable components props dynamically passed to the component at rendering.\n */\n slotProps: PropTypes.object,\n /**\n * Overridable components.\n */\n slots: PropTypes.object,\n /**\n * Sorting can be processed on the server or client-side.\n * Set it to 'client' if you would like to handle sorting on the client-side.\n * Set it to 'server' if you would like to handle sorting on the server-side.\n * @default \"client\"\n */\n sortingMode: PropTypes.oneOf(['client', 'server']),\n /**\n * The order of the sorting sequence.\n * @default ['asc', 'desc', null]\n */\n sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])),\n /**\n * Set the sort model of the Data Grid.\n */\n sortModel: PropTypes.arrayOf(PropTypes.shape({\n field: PropTypes.string.isRequired,\n sort: PropTypes.oneOf(['asc', 'desc'])\n })),\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * If `true`, the Data Grid enables column virtualization when `getRowHeight` is set to `() => 'auto'`.\n * By default, column virtualization is disabled when dynamic row height is enabled to measure the row height correctly.\n * For datasets with a large number of columns, this can cause performance issues.\n * The downside of enabling this prop is that the row height will be estimated based the cells that are currently rendered, which can cause row height change when scrolling horizontally.\n * @default false\n */\n virtualizeColumnsWithAutoRowHeight: PropTypes.bool\n};","import CancelIcon from \"@mui/icons-material/Close\";\nimport DeleteIcon from \"@mui/icons-material/DeleteOutlined\";\nimport EditIcon from \"@mui/icons-material/Edit\";\nimport SaveIcon from \"@mui/icons-material/Save\";\nimport { Box } from \"@mui/material\";\nimport {\n DataGrid,\n GridActionsCellItem,\n GridColDef,\n GridEventListener,\n GridRowEditStopReasons,\n GridRowId,\n GridRowModel,\n GridRowModes,\n GridRowModesModel,\n GridRowsProp,\n} from \"@mui/x-data-grid\";\nimport { MeasurementCategory } from \"components/Measurements/models/Category\";\nimport { MeasurementEntry } from \"components/Measurements/models/Entry\";\nimport { useDeleteMeasurementsQuery, useEditMeasurementEntryQuery } from \"components/Measurements/queries\";\nimport { DateTime } from \"luxon\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { PAGINATION_OPTIONS } from \"utils/consts\";\n\nconst convertEntriesToObj = (entries: MeasurementEntry[]): GridRowsProp => {\n return entries.map((entry) => {\n return {\n id: entry.id,\n category: entry.category,\n date: entry.date,\n value: entry.value,\n notes: entry.notes\n };\n });\n};\n\n\nexport const CategoryDetailDataGrid = (props: { category: MeasurementCategory }) => {\n\n const [t] = useTranslation();\n const data: GridRowsProp = convertEntriesToObj(props.category.entries);\n const updateEntryQuery = useEditMeasurementEntryQuery();\n const deleteEntryQuery = useDeleteMeasurementsQuery();\n const [rows, setRows] = useState(data);\n const [rowModesModel, setRowModesModel] = useState<GridRowModesModel>({});\n\n\n const handleRowEditStop: GridEventListener<'rowEditStop'> = (params, event) => {\n if (params.reason === GridRowEditStopReasons.rowFocusOut) {\n event.defaultMuiPrevented = true;\n }\n };\n\n const handleEditClick = (id: GridRowId) => () => {\n setRowModesModel({ ...rowModesModel, [id]: { mode: GridRowModes.Edit } });\n };\n\n const handleSaveClick = (id: GridRowId) => () => {\n setRowModesModel({ ...rowModesModel, [id]: { mode: GridRowModes.View } });\n };\n\n const handleDeleteClick = (id: GridRowId) => async () => {\n console.log('deleting entry', id);\n deleteEntryQuery.mutate(parseInt(id.toString()));\n setRows(rows.filter((row) => row.id !== id));\n };\n\n const handleCancelClick = (id: GridRowId) => () => {\n setRowModesModel({\n ...rowModesModel,\n [id]: { mode: GridRowModes.View, ignoreModifications: true },\n });\n\n const editedRow = rows.find((row) => row.id === id);\n //if (editedRow!.isNew) {\n if (editedRow?.id === null) {\n setRows(rows.filter((row) => row.id !== id));\n }\n };\n\n\n const processRowUpdate = async (newRow: GridRowModel) => {\n\n updateEntryQuery.mutate({\n id: newRow.id,\n categoryId: newRow.category,\n date: newRow.date,\n value: newRow.value,\n notes: newRow.notes\n });\n\n const updatedRow = { ...newRow, isNew: false };\n setRows(rows.map((row) => (row.id === newRow.id ? updatedRow : row)));\n return updatedRow;\n };\n\n const onProcessRowUpdateError = (error: any) => {\n console.log(error);\n //setRows(rows.map((row) => (row.id === newRow.id ? newRow : row)));\n };\n\n const handleRowModesModelChange = (newRowModesModel: GridRowModesModel) => {\n setRowModesModel(newRowModesModel);\n };\n\n // @ts-ignore\n const columns: GridColDef[] = [\n {\n field: 'value',\n headerName: t('value'),\n width: 80,\n editable: true,\n valueFormatter: (value?: number) => {\n if (value == null) {\n return '';\n }\n return value + props.category.unit;\n },\n },\n {\n field: 'date',\n headerName: t('date'),\n type: 'date',\n width: 120,\n editable: true,\n valueFormatter: (value?: Date) => {\n if (value == null) {\n return '';\n }\n return DateTime.fromJSDate(value).toLocaleString(DateTime.DATE_MED);\n },\n },\n {\n field: 'notes',\n headerName: t('notes'),\n type: 'string',\n flex: 1,\n editable: true,\n },\n {\n field: 'actions',\n type: 'actions',\n headerName: t('actions'),\n width: 100,\n cellClassName: 'actions',\n getActions: ({ id }) => {\n const isInEditMode = rowModesModel[id]?.mode === GridRowModes.Edit;\n\n if (isInEditMode) {\n return [\n <GridActionsCellItem\n icon={<SaveIcon />}\n label=\"Save\"\n onClick={handleSaveClick(id)}\n />,\n <GridActionsCellItem\n icon={<CancelIcon />}\n label=\"Cancel\"\n className=\"textPrimary\"\n onClick={handleCancelClick(id)}\n color=\"inherit\"\n />,\n ];\n }\n\n return [\n <GridActionsCellItem\n icon={<EditIcon />}\n label=\"Edit\"\n className=\"textPrimary\"\n onClick={handleEditClick(id)}\n color=\"inherit\"\n />,\n <GridActionsCellItem\n icon={<DeleteIcon />}\n label=\"Delete\"\n onClick={handleDeleteClick(id)}\n color=\"inherit\"\n />,\n ];\n },\n },\n ];\n\n\n return <Box sx={{ width: '100%' }}>\n <DataGrid\n editMode=\"row\"\n rows={data}\n columns={columns}\n initialState={{\n pagination: {\n paginationModel: {\n pageSize: PAGINATION_OPTIONS.pageSize,\n },\n },\n }}\n pageSizeOptions={PAGINATION_OPTIONS.pageSizeOptions}\n disableRowSelectionOnClick\n rowModesModel={rowModesModel}\n onRowModesModelChange={handleRowModesModelChange}\n onRowEditStop={handleRowEditStop}\n processRowUpdate={processRowUpdate}\n onProcessRowUpdateError={onProcessRowUpdateError}\n />\n </Box>;\n};","import CloseIcon from '@mui/icons-material/Close';\nimport { Button, Card, CardActions, CardContent, CardHeader, Modal, Typography } from \"@mui/material\";\nimport { FunctionComponent } from 'react';\nimport { useTranslation } from \"react-i18next\";\n\nexport interface DeleteConfirmationModalProps {\n title: string,\n subtitle?: string,\n message?: string,\n isOpen: boolean,\n closeFn: any,\n deleteFn: any\n}\n\nexport const DeleteConfirmationModal: FunctionComponent<DeleteConfirmationModalProps> = (\n {\n title,\n subtitle,\n isOpen,\n message,\n deleteFn,\n closeFn\n }) => {\n\n const [t] = useTranslation();\n\n const style = {\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)',\n // width: 500,\n bgcolor: 'background.paper',\n borderWidth: 0,\n boxShadow: 24,\n p: 2,\n };\n\n const handleDelete = () => {\n deleteFn();\n closeFn();\n };\n\n return (\n <Modal\n open={isOpen}\n onClose={closeFn}\n aria-labelledby=\"modal-modal-title\"\n aria-describedby=\"modal-modal-description\"\n >\n <Card sx={style}>\n <CardHeader\n title={title}\n titleTypographyProps={{ variant: 'h6' }}\n subheader={subtitle}\n action={<CloseIcon onClick={closeFn} />}\n />\n <CardContent>\n <Typography variant=\"body1\">\n {message}\n </Typography>\n </CardContent>\n <CardActions>\n <Button color=\"error\" variant=\"contained\" onClick={handleDelete}>\n {t('delete')}\n </Button>\n <Button color=\"primary\" onClick={closeFn}>\n {t('close')}\n </Button>\n </CardActions>\n </Card>\n </Modal>\n );\n};\n","import { Button, Stack, TextField } from \"@mui/material\";\nimport { MeasurementCategory } from \"components/Measurements/models/Category\";\nimport { useAddMeasurementCategoryQuery, useEditMeasurementCategoryQuery } from \"components/Measurements/queries\";\nimport { Form, Formik } from \"formik\";\nimport React from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport * as yup from 'yup';\n\ninterface CategoryFormProps {\n category?: MeasurementCategory,\n closeFn?: Function,\n}\n\nexport const CategoryForm = ({ category, closeFn }: CategoryFormProps) => {\n\n const [t] = useTranslation();\n const useAddCategoryQuery = useAddMeasurementCategoryQuery();\n const useEditCategoryQuery = useEditMeasurementCategoryQuery(category?.id!);\n const validationSchema = yup.object({\n name: yup\n .string()\n .required(t('forms.fieldRequired'))\n .max(20, t('forms.maxLength', { chars: '20' }))\n .min(3, t('forms.minLength', { chars: '3' })),\n unit: yup\n .string()\n .required(t('forms.fieldRequired'))\n .max(5, t('forms.maxLength', { chars: '5' }))\n });\n\n\n return (\n <Formik\n initialValues={{\n name: category ? category.name : \"\",\n unit: category ? category.unit : \"\",\n }}\n validationSchema={validationSchema}\n onSubmit={async (values) => {\n\n // Edit existing weight entry\n if (category) {\n useEditCategoryQuery.mutate({ ...values, id: category.id });\n } else {\n useAddCategoryQuery.mutate(values);\n }\n\n // if closeFn is defined, close the modal (this form does not have to\n // be displayed in a modal)\n if (closeFn) {\n closeFn();\n }\n }}\n >\n {formik => (\n <Form>\n <Stack spacing={2}>\n <TextField\n fullWidth\n id=\"name\"\n label={t('name')}\n error={formik.touched.name && Boolean(formik.touched.name)}\n helperText={formik.touched.name && formik.errors.name}\n {...formik.getFieldProps('name')}\n />\n <TextField\n fullWidth\n id=\"unit\"\n label={t('unit')}\n error={formik.touched.unit && Boolean(formik.errors.unit)}\n helperText={\n formik.touched.unit && formik.errors.unit\n ? formik.errors.unit\n : t('measurements.unitFormHelpText')\n }\n {...formik.getFieldProps('unit')}\n />\n <Stack direction=\"row\" justifyContent=\"end\" sx={{ mt: 2 }}>\n <Button color=\"primary\" variant=\"contained\" type=\"submit\" sx={{ mt: 2 }}>\n {t('submit')}\n </Button>\n </Stack>\n </Stack>\n </Form>\n )}\n </Formik>\n );\n};\n","import MenuIcon from '@mui/icons-material/Menu';\nimport { Button, Menu, MenuItem } from \"@mui/material\";\nimport { DeleteConfirmationModal } from \"components/Core/Modals/DeleteConfirmationModal\";\nimport { WgerModal } from \"components/Core/Modals/WgerModal\";\nimport { MeasurementCategory } from \"components/Measurements/models/Category\";\nimport { useDeleteMeasurementCategoryQuery } from \"components/Measurements/queries\";\nimport { CategoryForm } from \"components/Measurements/widgets/CategoryForm\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useNavigate } from \"react-router-dom\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\nexport const CategoryDetailDropdown = (props: { category: MeasurementCategory }) => {\n\n const deleteCategoryQuery = useDeleteMeasurementCategoryQuery(props.category.id);\n const navigate = useNavigate();\n\n const [t] = useTranslation();\n const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);\n const [openEditModal, setOpenEditModal] = React.useState(false);\n const [openDeleteModal, setOpenDeleteModal] = React.useState(false);\n const open = Boolean(anchorEl);\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleEdit = () => {\n handleClose();\n handleOpenEditModal();\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n const handleDelete = () => {\n handleOpenDeleteModal();\n setAnchorEl(null);\n };\n\n const performDelete = () => {\n deleteCategoryQuery.mutate(props.category.id);\n navigate((makeLink(WgerLink.MEASUREMENT_OVERVIEW)));\n };\n\n\n const handleOpenEditModal = () => setOpenEditModal(true);\n const handleCloseEditModal = () => setOpenEditModal(false);\n const handleOpenDeleteModal = () => setOpenDeleteModal(true);\n const handleCloseDeleteModal = () => setOpenDeleteModal(false);\n\n\n return (\n <div>\n <Button onClick={handleClick}>\n <MenuIcon />\n </Button>\n <Menu\n anchorEl={anchorEl}\n open={open}\n onClose={handleClose}\n MenuListProps={{\n 'aria-labelledby': 'basic-button',\n }}\n >\n <MenuItem onClick={handleEdit}>{t(\"edit\")}</MenuItem>\n <MenuItem onClick={handleDelete}>{t(\"delete\")}</MenuItem>\n </Menu>\n\n <WgerModal title={t('edit')} isOpen={openEditModal} closeFn={handleCloseEditModal}>\n <CategoryForm category={props.category} closeFn={handleCloseEditModal} />\n </WgerModal>\n\n <DeleteConfirmationModal\n title={t('deleteConfirmation', { name: props.category.name })}\n message={t('measurements.deleteInfo')}\n isOpen={openDeleteModal}\n closeFn={handleCloseDeleteModal}\n deleteFn={performDelete}\n />\n </div>\n );\n};\n","import { Button, Stack, TextField } from \"@mui/material\";\nimport { DatePicker, LocalizationProvider } from \"@mui/x-date-pickers\";\nimport { AdapterLuxon } from \"@mui/x-date-pickers/AdapterLuxon\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { MeasurementEntry } from \"components/Measurements/models/Entry\";\nimport {\n useAddMeasurementEntryQuery,\n useEditMeasurementEntryQuery,\n useMeasurementsQuery\n} from \"components/Measurements/queries\";\nimport { Form, Formik } from \"formik\";\nimport { DateTime, Settings } from \"luxon\";\nimport React from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { TIMEZONE } from \"utils/consts\";\nimport { dateToYYYYMMDD } from \"utils/date\";\nimport * as yup from 'yup';\n\nSettings.defaultZone = TIMEZONE;\n\ninterface EntryFormProps {\n entry?: MeasurementEntry,\n closeFn?: Function,\n categoryId: number,\n}\n\nexport const EntryForm = ({ entry, closeFn, categoryId }: EntryFormProps) => {\n\n const [t, i18n] = useTranslation();\n const useAddEntryQuery = useAddMeasurementEntryQuery();\n const useEditEntryQuery = useEditMeasurementEntryQuery();\n const categoryQuery = useMeasurementsQuery(categoryId);\n\n const [dateValue, setDateValue] = React.useState<DateTime | null>(entry ? DateTime.fromJSDate(entry.date) : DateTime.now());\n\n const validationSchema = yup.object({\n value: yup\n .number()\n .required(t('forms.fieldRequired'))\n .min(0, t('forms.minValue', { value: '0' }))\n .max(1000, t('forms.maxValue', { value: '1000' })),\n date: yup\n .date()\n .required(t('forms.fieldRequired')),\n notes: yup\n .string()\n .max(500, t('forms.maxLength', { value: '500' })),\n });\n\n\n return (\n (<Formik\n initialValues={{\n value: entry ? entry.value : 0,\n date: entry ? entry.date : new Date(),\n notes: entry ? entry.notes : \"\",\n }}\n validationSchema={validationSchema}\n onSubmit={async (values) => {\n\n // Edit existing weight entry\n if (entry) {\n useEditEntryQuery.mutate({ ...values, id: entry.id! });\n } else {\n useAddEntryQuery.mutate({ ...values, categoryId: categoryId });\n }\n\n // if closeFn is defined, close the modal (this form does not have to\n // be displayed in a modal)\n if (closeFn) {\n closeFn();\n }\n }}\n >\n {formik => (\n <Form>\n <Stack spacing={2}>\n <TextField\n fullWidth\n id=\"value\"\n type={\"number\"}\n label={t('value')}\n error={formik.touched.value && Boolean(formik.errors.value)}\n helperText={formik.touched.value && formik.errors.value}\n {...formik.getFieldProps('value')}\n />\n {categoryQuery.isLoading\n ? <LoadingPlaceholder />\n : <LocalizationProvider dateAdapter={AdapterLuxon} adapterLocale={i18n.language}>\n <DatePicker\n format=\"yyyy-MM-dd\"\n label={t('date')}\n value={dateValue}\n disableFuture={true}\n\n onChange={(newValue) => {\n if (newValue) {\n formik.setFieldValue('date', newValue.toJSDate());\n }\n setDateValue(newValue);\n }}\n shouldDisableDate={(date) => {\n // Allow the date of the current weight entry, since we are editing it\n if (entry && dateToYYYYMMDD(entry.date) === dateToYYYYMMDD(date.toJSDate())) {\n return false;\n }\n\n // if date is in list of existing entries, disable it\n if (date) {\n return categoryQuery.data!.entries.some(entry => dateToYYYYMMDD(entry.date) === dateToYYYYMMDD(date.toJSDate()));\n }\n\n // all other dates are allowed\n return false;\n }}\n />\n </LocalizationProvider>}\n\n <TextField\n fullWidth\n id=\"notes\"\n label={t('notes')}\n multiline\n error={formik.touched.notes && Boolean(formik.errors.notes)}\n helperText={formik.touched.notes && formik.errors.notes}\n {...formik.getFieldProps('notes')}\n />\n\n <Stack direction=\"row\" justifyContent=\"end\" sx={{ mt: 2 }}>\n <Button color=\"primary\" variant=\"contained\" type=\"submit\" sx={{ mt: 2 }}>\n {t('submit')}\n </Button>\n </Stack>\n </Stack>\n </Form>\n )}\n </Formik>)\n );\n};\n","import React from \"react\";\nimport { Fab } from \"@mui/material\";\nimport AddIcon from \"@mui/icons-material/Add\";\nimport { useTranslation } from \"react-i18next\";\nimport { WgerModal } from \"components/Core/Modals/WgerModal\";\nimport { CategoryForm } from \"components/Measurements/widgets/CategoryForm\";\nimport { EntryForm } from \"components/Measurements/widgets/EntryForm\";\nimport { useParams } from \"react-router-dom\";\n\nexport const AddMeasurementCategoryFab = () => {\n const [t] = useTranslation();\n const [openModal, setOpenModal] = React.useState(false);\n const handleOpenModal = () => setOpenModal(true);\n const handleCloseModal = () => setOpenModal(false);\n\n\n return (\n <div>\n <Fab\n color=\"secondary\"\n aria-label=\"add\"\n onClick={handleOpenModal}\n sx={{\n position: 'fixed',\n bottom: '5rem',\n right: (theme) => `max(${theme.spacing(2)}, calc((100vw - ${theme.breakpoints.values.lg}px) / 2 + ${theme.spacing(2)}))`,\n zIndex: 9,\n }}>\n <AddIcon />\n </Fab>\n <WgerModal title={t('add')} isOpen={openModal} closeFn={handleCloseModal}>\n <CategoryForm closeFn={handleCloseModal} />\n </WgerModal>\n </div>\n );\n};\n\nexport const AddMeasurementEntryFab = () => {\n const [t] = useTranslation();\n const [openModal, setOpenModal] = React.useState(false);\n const handleOpenModal = () => setOpenModal(true);\n const handleCloseModal = () => setOpenModal(false);\n\n const params = useParams<{ categoryId: string }>();\n const categoryId = parseInt(params.categoryId!);\n\n\n return (<>\n <Fab\n color=\"secondary\"\n aria-label=\"add\"\n onClick={handleOpenModal}\n sx={{\n position: 'fixed',\n bottom: '5rem',\n right: (theme) => `max(${theme.spacing(2)}, calc((100vw - ${theme.breakpoints.values.lg}px) / 2 + ${theme.spacing(2)}))`,\n zIndex: 9,\n }}>\n <AddIcon />\n </Fab>\n <WgerModal title={t('add')} isOpen={openModal} closeFn={handleCloseModal}>\n <EntryForm closeFn={handleCloseModal} categoryId={categoryId} />\n </WgerModal>\n </>);\n};","import { createTheme } from '@mui/material/styles';\nimport { ThemeOptions } from '@mui/material/styles/createTheme';\n\nconst fontFamilyBold = [\n '\"Open Sans Bold\"',\n 'sans-serif'\n].join(',');\n\nconst fontFamilyLight = [\n '\"Open Sans Light\"',\n 'sans-serif'\n].join(',');\n\nconst themeOptions: ThemeOptions = {\n\n spacing: 8,\n typography: {\n h3: {\n fontFamily: fontFamilyBold,\n },\n h4: {\n fontFamily: fontFamilyBold,\n },\n h5: {\n fontFamily: fontFamilyBold,\n },\n h6: {\n fontFamily: fontFamilyBold,\n },\n fontFamily: fontFamilyLight,\n },\n palette: {\n primary: {\n main: '#2A4C7D',\n },\n secondary: {\n main: '#e63946',\n },\n warning: {\n main: '#cba328',\n },\n info: {\n main: '#457b9d',\n },\n success: {\n main: '#307916',\n },\n }\n};\n\nexport const theme = createTheme(themeOptions);\nexport const makeTheme = (element: HTMLDivElement) => createTheme(\n {\n ...themeOptions,\n components: {\n MuiPopover: {\n defaultProps: {\n container: element,\n },\n },\n MuiPopper: {\n defaultProps: {\n container: element,\n },\n },\n MuiModal: {\n defaultProps: {\n container: element,\n },\n },\n },\n }\n);\n","import { MeasurementCategory } from \"components/Measurements/models/Category\";\nimport { useTranslation } from \"react-i18next\";\nimport { CartesianGrid, Line, LineChart, ResponsiveContainer, XAxis, YAxis } from \"recharts\";\nimport { theme } from \"theme\";\nimport React from \"react\";\nimport { Box } from \"@mui/material\";\n\nexport const MeasurementChart = (props: { category: MeasurementCategory }) => {\n const { i18n } = useTranslation();\n const NR_OF_ENTRIES_CHART_DOT = 30;\n\n // map the list of weights to an array of objects with the date and weight\n const entryData = [...props.category.entries].sort((a, b) => a.date.getTime() - b.date.getTime()).map(entry => {\n return {\n date: entry.date.getTime(),\n value: entry.value,\n entry: entry\n };\n });\n\n\n return <Box alignItems={'center'} display={'flex'} flexDirection={'column'}>\n <ResponsiveContainer width=\"90%\" height={200}>\n\n <LineChart data={entryData}>\n <Line\n type=\"monotone\"\n dataKey=\"value\"\n stroke={theme.palette.secondary.main}\n strokeWidth={2}\n dot={entryData.length > NR_OF_ENTRIES_CHART_DOT ? false : { strokeWidth: 1, r: 4 }}\n activeDot={{\n stroke: 'black',\n strokeWidth: 1,\n r: 6,\n //onClick: handleClick\n }} />\n <CartesianGrid\n stroke=\"#ccc\"\n strokeDasharray=\"5 5\" />\n <XAxis\n dataKey=\"date\"\n type={'number'}\n domain={['dataMin', 'dataMax']}\n tickFormatter={timeStr => new Date(timeStr).toLocaleDateString(i18n.language)}\n tickCount={10}\n />\n <YAxis domain={['auto', 'auto']} unit={props.category.unit} />\n {/*<Tooltip content={<CustomTooltip />} />*/}\n </LineChart>\n </ResponsiveContainer>\n </Box>;\n};","import { Stack, } from \"@mui/material\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { WgerContainerRightSidebar } from \"components/Core/Widgets/Container\";\nimport { useMeasurementsQuery } from \"components/Measurements/queries\";\nimport { CategoryDetailDataGrid } from \"components/Measurements/widgets/CategoryDetailDataGrid\";\nimport { CategoryDetailDropdown } from \"components/Measurements/widgets/CategoryDetailDropdown\";\nimport { AddMeasurementEntryFab } from \"components/Measurements/widgets/fab\";\nimport { MeasurementChart } from \"components/Measurements/widgets/MeasurementChart\";\nimport React from \"react\";\nimport { useParams } from \"react-router-dom\";\n\nexport const MeasurementCategoryDetail = () => {\n const params = useParams<{ categoryId: string }>();\n const categoryId = parseInt(params.categoryId ?? '');\n if (Number.isNaN(categoryId)) {\n return <p>Please pass an integer as the category id.</p>;\n }\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const categoryQuery = useMeasurementsQuery(categoryId);\n\n if (categoryQuery.isLoading) {\n return <LoadingPlaceholder />;\n }\n\n return <WgerContainerRightSidebar\n title={categoryQuery.data!.name}\n optionsMenu={<CategoryDetailDropdown category={categoryQuery.data!} />}\n mainContent={\n <Stack spacing={2}>\n <MeasurementChart category={categoryQuery.data!} />\n <CategoryDetailDataGrid category={categoryQuery.data!} />\n </Stack>\n }\n fab={<AddMeasurementEntryFab />}\n />;\n};\n","import React from \"react\";\nimport { Button, Card, CardActions, CardContent, CardHeader, IconButton, Stack, } from \"@mui/material\";\nimport AddIcon from '@mui/icons-material/Add';\nimport { useTranslation } from \"react-i18next\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { useMeasurementsCategoryQuery } from \"components/Measurements/queries\";\nimport { MeasurementCategory } from \"components/Measurements/models/Category\";\nimport { MeasurementChart } from \"components/Measurements/widgets/MeasurementChart\";\nimport { OverviewEmpty } from \"components/Core/Widgets/OverviewEmpty\";\nimport { AddMeasurementCategoryFab } from \"components/Measurements/widgets/fab\";\nimport { WgerContainerRightSidebar } from \"components/Core/Widgets/Container\";\nimport { makeLink, WgerLink } from \"utils/url\";\nimport { Link } from \"react-router-dom\";\nimport { EntryForm } from \"components/Measurements/widgets/EntryForm\";\nimport { WgerModal } from \"components/Core/Modals/WgerModal\";\n\n\nconst CategoryList = (props: { category: MeasurementCategory }) => {\n\n const [t, i18n] = useTranslation();\n const [openModal, setOpenModal] = React.useState(false);\n const handleOpenModal = () => setOpenModal(true);\n const handleCloseModal = () => setOpenModal(false);\n\n return <>\n <Card>\n <CardHeader title={props.category.name} subheader={props.category.unit} />\n <CardContent>\n <MeasurementChart category={props.category} />\n </CardContent>\n <CardActions disableSpacing sx={{ justifyContent: \"space-between\" }}>\n <Button size=\"small\">\n <Link to={makeLink(WgerLink.MEASUREMENT_DETAIL, i18n.language, { id: props.category.id })}>\n {t(\"seeDetails\")}\n </Link>\n </Button>\n\n <IconButton onClick={handleOpenModal}>\n <AddIcon />\n </IconButton>\n </CardActions>\n </Card>\n <WgerModal title={t('add')} isOpen={openModal} closeFn={handleCloseModal}>\n <EntryForm closeFn={handleCloseModal} categoryId={props.category.id} />\n </WgerModal>\n </>;\n};\n\nexport const MeasurementCategoryOverview = () => {\n const categoryQuery = useMeasurementsCategoryQuery();\n const [t] = useTranslation();\n\n return categoryQuery.isLoading\n ? <LoadingPlaceholder />\n : <WgerContainerRightSidebar\n title={t(\"measurements.measurements\")}\n mainContent={<Stack spacing={2}>\n {categoryQuery.data!.length === 0 && <OverviewEmpty />}\n {categoryQuery.data!.map(c => <CategoryList category={c} key={c.id} />)}\n </Stack>\n }\n fab={<AddMeasurementCategoryFab />}\n />;\n};\n","import { useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { EditProfileParams } from \"components/User/models/profile\";\nimport { editProfile, getProfile } from \"services\";\nimport { QueryKey } from \"utils/consts\";\n\nexport function useProfileQuery() {\n return useQuery({\n queryKey: [QueryKey.QUERY_PROFILE],\n queryFn: getProfile\n });\n}\n\nexport const useEditProfileQuery = () => {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationFn: (data: Partial<EditProfileParams>) => editProfile(data),\n onSuccess: async () => {\n await queryClient.invalidateQueries({ queryKey: [QueryKey.QUERY_PROFILE] });\n }\n });\n};","import { Box, Stack, TextField, Typography } from \"@mui/material\";\nimport Grid from \"@mui/material/Grid\";\nimport { useBodyWeightQuery } from \"components/BodyWeight/queries\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { WgerContainerRightSidebar } from \"components/Core/Widgets/Container\";\nimport { useProfileQuery } from \"components/User/queries/profile\";\nimport React, { useEffect, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Area, AreaChart, CartesianGrid, ReferenceDot, ResponsiveContainer, Tooltip, XAxis, YAxis, } from \"recharts\";\n\nconst bmiRanges = [\n { range: \"obese\", color: \"#FF5733\", min: 30, max: 100 },\n { range: \"overweight\", color: \"#FFC107\", min: 25, max: 30 },\n { range: \"normal\", color: \"#90EE90\", min: 18.5, max: 25 },\n { range: \"underweight\", color: \"#FFC300\", min: 0, max: 18.5 },\n];\n\nconst getRangeColor = (name: string) => {\n const range = bmiRanges.find((bmiRange) => bmiRange.range === name);\n return range ? range.color : 'gray';\n};\n\nexport const BmiCalculator = () => {\n const [t] = useTranslation();\n\n const weightQuery = useBodyWeightQuery();\n const profileQuery = useProfileQuery();\n\n const [height, setHeight] = useState<number | null>();\n const [weight, setWeight] = useState<number | null>();\n\n // Set default weight from last weight entry\n useEffect(() => {\n if (weightQuery.data && weightQuery.data.length > 0) {\n const lastWeightEntry = weightQuery.data[0];\n const weightInKg = profileQuery.data?.useMetric\n ? lastWeightEntry.weight\n : lastWeightEntry.weight * 0.453592; // Convert lb to kg\n setWeight(weightInKg);\n }\n }, [weightQuery.data, profileQuery.data]);\n\n useEffect(() => {\n if (profileQuery.data?.height) {\n setHeight(profileQuery.data.height);\n }\n }, [profileQuery.data]);\n\n\n const calculateBMI = () => {\n if (height && weight) {\n const heightInMeters = height / 100;\n return weight / (heightInMeters * heightInMeters);\n }\n return null;\n };\n\n const bmi = calculateBMI();\n\n if (weightQuery.isLoading || profileQuery.isLoading) {\n return <LoadingPlaceholder />;\n }\n\n\n // Generate chart data with BMI values for different heights\n const chartData: { height: number; [key: string]: number }[] = [];\n for (let h = 140; h <= 220; h += 10) {\n const heightInMeters = h / 100;\n const dataPoint: { height: number; [key: string]: number } = { height: h };\n let cumulativeWeight = 0;\n\n bmiRanges.forEach((range, index) => {\n const bmiValue = range.max > 100 ? 100 : range.max;\n let weightForRange =\n bmiValue * heightInMeters * heightInMeters - cumulativeWeight;\n\n // Cap the weightForRange at 150kg\n weightForRange = Math.min(weightForRange, 150 - cumulativeWeight);\n\n // Correctly set the data point for the stacked area chart\n if (index === 0) {\n dataPoint[range.range] = weightForRange;\n } else {\n dataPoint[range.range] =\n dataPoint[bmiRanges[index - 1].range] + weightForRange;\n }\n\n cumulativeWeight = Math.min(bmiValue * heightInMeters * heightInMeters, 150); // Cap cumulative weight as well\n });\n chartData.push(dataPoint);\n }\n\n\n return (\n <WgerContainerRightSidebar\n title={t('bmi.calculator')}\n mainContent={<>\n <Stack spacing={2}>\n <Grid container spacing={2}>\n <Grid size={{ xs: 12, sm: 6 }}>\n <TextField\n label={t('height')}\n fullWidth\n slotProps={{\n input: { endAdornment: <Typography>{t('cm')}</Typography> }\n }}\n type=\"number\"\n value={height ?? \"\"}\n onChange={(e) => setHeight(parseFloat(e.target.value))}\n />\n </Grid>\n <Grid size={{ xs: 12, sm: 6 }}>\n <TextField\n label={t('weight')}\n slotProps={{\n input: { endAdornment: <Typography>{t('server.kg')}</Typography> }\n }}\n fullWidth\n type=\"number\"\n value={weight ?? \"\"}\n onChange={(e) => setWeight(parseFloat(e.target.value))}\n />\n </Grid>\n </Grid>\n\n\n {bmi !== null && <Typography variant=\"h6\">\n {t('bmi.result', { value: bmi.toFixed(1) })}\n </Typography>\n }\n <ResponsiveContainer width=\"100%\" height={400}>\n <AreaChart data={chartData}>\n <XAxis\n dataKey=\"height\"\n type=\"number\"\n domain={[140, 220]}\n unit=\"cm\"\n />\n <YAxis\n domain={[40, 150]}\n tickFormatter={(value) => Math.round(value).toString()} // Format as integers\n unit=\"kg\"\n />\n <CartesianGrid strokeDasharray=\"3 3\" />\n <Tooltip\n // @ts-ignore\n formatter={(value, name) => [Math.round(value as number), t('bmi.' + (name as string))]}\n />\n\n {bmiRanges.map((range) => (\n <Area\n key={range.range}\n type=\"monotone\"\n dataKey={range.range}\n stroke={\"black\"}\n // stroke={range.color}\n fill={range.color}\n fillOpacity={0.8}\n />\n ))}\n\n {bmi !== null &&\n <ReferenceDot\n x={height!}\n y={weight!}\n r={8}\n fill=\"black\"\n stroke=\"none\"\n />}\n\n </AreaChart>\n </ResponsiveContainer>\n <Stack direction={\"row\"} justifyContent=\"center\">\n <Box\n height={20}\n width={20}\n sx={{ backgroundColor: getRangeColor('obese') }} />\n {t('bmi.obese')}\n\n <Box\n height={20}\n width={20}\n sx={{ backgroundColor: getRangeColor('overweight'), marginLeft: 2 }} />\n {t('bmi.overweight')}\n\n <Box\n height={20}\n width={20}\n sx={{ backgroundColor: getRangeColor('normal'), marginLeft: 2 }} />\n {t('bmi.normal')}\n\n <Box\n height={20}\n width={20}\n sx={{ backgroundColor: getRangeColor('underweight'), marginLeft: 2 }} />\n {t('bmi.underweight')}\n </Stack>\n\n </Stack>\n </>}\n />\n );\n};","import PhotoIcon from \"@mui/icons-material/Photo\";\nimport { Avatar, Table, TableBody, TableCell, TableContainer, TableHead, TableRow } from \"@mui/material\";\nimport { NutritionalValues } from \"components/Nutrition/helpers/nutritionalValues\";\nimport { DiaryEntry } from \"components/Nutrition/models/diaryEntry\";\nimport { MealItem } from \"components/Nutrition/models/mealItem\";\nimport { useTranslation } from \"react-i18next\";\nimport { numberGramLocale, numberLocale } from \"utils/numbers\";\n\nconst IngredientTableRow = (props: { item: MealItem | DiaryEntry }) => {\n const [t, i18n] = useTranslation();\n\n return <TableRow key={props.item.id}>\n <TableCell sx={{ paddingX: 1 }}>\n <Avatar\n alt={props.item.ingredient?.name}\n src={props.item.ingredient?.image?.url}\n sx={{ width: 45, height: 45 }}\n >\n <PhotoIcon />\n </Avatar>\n\n </TableCell>\n <TableCell sx={{ paddingX: 1 }}>\n {props.item.amountString} {props.item.ingredient?.name}\n </TableCell>\n <TableCell align={'right'} sx={{ paddingX: 1 }}>\n {t('nutrition.valueEnergyKcalKj', {\n kcal: numberLocale(props.item.nutritionalValues.energy, i18n.language),\n kj: numberLocale(props.item.nutritionalValues.energyKj, i18n.language)\n })}\n </TableCell>\n <TableCell align=\"right\" sx={{ paddingX: 1 }}>\n {numberGramLocale(props.item.nutritionalValues.protein, i18n.language)}\n </TableCell>\n <TableCell align=\"right\" sx={{ paddingX: 1 }}>\n {numberGramLocale(props.item.nutritionalValues.carbohydrates, i18n.language)}\n </TableCell>\n <TableCell align=\"right\" sx={{ paddingX: 1 }}>\n {numberGramLocale(props.item.nutritionalValues.fat, i18n.language)}\n </TableCell>\n </TableRow>;\n};\n\nexport const IngredientDetailTable = (props: {\n items: MealItem[] | DiaryEntry[],\n values: NutritionalValues,\n showSum: boolean\n}) => {\n const [t, i18n] = useTranslation();\n\n return <TableContainer>\n <Table>\n <TableHead>\n <TableRow>\n <TableCell></TableCell>\n <TableCell></TableCell>\n <TableCell align={'right'} sx={{ paddingX: 1 }}>{t('nutrition.energy')}</TableCell>\n <TableCell align={'right'} sx={{ paddingX: 1 }}>{t('nutrition.protein')}</TableCell>\n <TableCell align={'right'} sx={{ paddingX: 1 }}>{t('nutrition.carbohydrates')}</TableCell>\n <TableCell align={'right'} sx={{ paddingX: 1 }}>{t('nutrition.fat')}</TableCell>\n </TableRow>\n </TableHead>\n <TableBody>\n {props.items.map((item) => (\n <IngredientTableRow item={item} key={item.id} />\n ))}\n {props.showSum && <TableRow>\n <TableCell sx={{ paddingX: 1 }}> </TableCell>\n <TableCell sx={{ paddingX: 1 }}>\n {t('total')}\n </TableCell>\n <TableCell align={'right'} sx={{ paddingX: 1 }}>\n {t('nutrition.valueEnergyKcalKj', {\n kcal: numberLocale(props.values.energy, i18n.language),\n kj: numberLocale(props.values.energyKj, i18n.language)\n })}\n </TableCell>\n <TableCell align={'right'} sx={{ paddingX: 1 }}>\n {numberGramLocale(props.values.protein, i18n.language)}\n </TableCell>\n <TableCell align={'right'} sx={{ paddingX: 1 }}>\n {numberGramLocale(props.values.carbohydrates, i18n.language)}\n </TableCell>\n <TableCell align={'right'} sx={{ paddingX: 1 }}>\n {numberGramLocale(props.values.fat, i18n.language)}\n </TableCell>\n </TableRow>}\n </TableBody>\n </Table>\n </TableContainer>;\n};","import { Table, TableBody, TableCell, TableContainer, TableHead, TableRow } from \"@mui/material\";\nimport { NutritionalValues } from \"components/Nutrition/helpers/nutritionalValues\";\nimport { useTranslation } from \"react-i18next\";\nimport { numberGramLocale, numberLocale } from \"utils/numbers\";\n\nexport const LoggedPlannedNutritionalValuesTable = (props: {\n planned: NutritionalValues,\n logged: NutritionalValues\n}) => {\n const [t, i18n] = useTranslation();\n\n return <TableContainer>\n <Table size=\"small\">\n <TableHead>\n <TableRow>\n <TableCell>{t('nutrition.macronutrient')}</TableCell>\n <TableCell align=\"right\">{t('nutrition.planned')}</TableCell>\n <TableCell align=\"right\">{t('nutrition.logged')}</TableCell>\n <TableCell align=\"right\">{t('nutrition.difference')}</TableCell>\n </TableRow>\n </TableHead>\n <TableBody>\n <TableRow>\n <TableCell>{t('nutrition.energy')}</TableCell>\n <TableCell align=\"right\">\n {t('nutrition.valueEnergyKcalKj', {\n kcal: numberLocale(props.planned.energy, i18n.language),\n kj: numberLocale(props.planned.energyKj, i18n.language)\n })}\n </TableCell>\n <TableCell align=\"right\">\n {t('nutrition.valueEnergyKcalKj', {\n kcal: numberLocale(props.logged.energy, i18n.language),\n kj: numberLocale(props.logged.energyKj, i18n.language)\n })}\n </TableCell>\n <TableCell align=\"right\">\n {t('nutrition.valueEnergyKcalKj', {\n kcal: numberLocale(props.logged.energy - props.planned.energy, i18n.language),\n kj: numberLocale(props.logged.energyKj - props.planned.energyKj, i18n.language)\n })}\n </TableCell>\n </TableRow>\n <TableRow>\n <TableCell>{t('nutrition.protein')}</TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.planned.protein, i18n.language)}\n </TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.logged.protein, i18n.language)}\n </TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.logged.protein - props.planned.protein, i18n.language)}\n </TableCell>\n </TableRow>\n <TableRow>\n <TableCell>{t('nutrition.carbohydrates')}</TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.planned.carbohydrates, i18n.language)}\n </TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.logged.carbohydrates, i18n.language)}\n </TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.logged.carbohydrates - props.planned.carbohydrates, i18n.language)}\n </TableCell>\n </TableRow>\n <TableRow>\n <TableCell sx={{ pl: 5 }}>{t('nutrition.ofWhichSugars')}</TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.planned.carbohydratesSugar, i18n.language)}\n </TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.logged.carbohydratesSugar, i18n.language)}\n </TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.logged.carbohydratesSugar - props.planned.carbohydratesSugar, i18n.language)}\n </TableCell>\n </TableRow>\n <TableRow>\n <TableCell>{t('nutrition.fat')}</TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.planned.fat, i18n.language)}\n </TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.logged.fat, i18n.language)}\n </TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.logged.fat - props.planned.fat, i18n.language)}\n </TableCell>\n </TableRow>\n <TableRow>\n <TableCell sx={{ paddingLeft: 5 }}>{t('nutrition.ofWhichSaturated')}</TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.planned.fatSaturated, i18n.language)}\n </TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.logged.fatSaturated, i18n.language)}\n </TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.logged.fatSaturated - props.planned.fatSaturated, i18n.language)}\n </TableCell>\n </TableRow>\n\n <TableRow>\n <TableCell>{t('nutrition.others')}</TableCell>\n <TableCell></TableCell>\n <TableCell></TableCell>\n <TableCell></TableCell>\n </TableRow>\n <TableRow>\n <TableCell>{t('nutrition.fibres')}</TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.planned.fiber, i18n.language)}\n </TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.logged.fiber, i18n.language)}\n </TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.logged.fiber - props.planned.fiber, i18n.language)}\n </TableCell>\n </TableRow>\n <TableRow>\n <TableCell>{t('nutrition.sodium')}</TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.planned.sodium, i18n.language)}\n </TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.logged.sodium, i18n.language)}\n </TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.logged.sodium - props.planned.sodium, i18n.language)}\n </TableCell>\n </TableRow>\n </TableBody>\n </Table>\n </TableContainer>;\n};","import { Stack, Typography } from \"@mui/material\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { WgerContainerRightSidebar } from \"components/Core/Widgets/Container\";\nimport { useFetchNutritionalPlanDateQuery } from \"components/Nutrition/queries\";\nimport { IngredientDetailTable } from \"components/Nutrition/widgets/IngredientDetailTable\";\nimport { LoggedPlannedNutritionalValuesTable } from \"components/Nutrition/widgets/LoggedPlannedNutritionalValuesTable\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useParams } from \"react-router-dom\";\n\n\nexport const NutritionDiaryOverview = () => {\n const [t] = useTranslation();\n const params = useParams<{ planId: string, date: string }>();\n\n const planId = parseInt(params.planId!);\n if (Number.isNaN(planId)) {\n return <p>Please pass an integer as the nutritional plan id.</p>;\n }\n\n const date = new Date(params.date!);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const planQuery = useFetchNutritionalPlanDateQuery(planId, params.date!);\n\n return planQuery.isLoading\n ? <LoadingPlaceholder />\n : <WgerContainerRightSidebar\n title={t('nutrition.nutritionalDiary')}\n mainContent={<>\n <Stack spacing={2}>\n <Typography gutterBottom variant=\"h4\">\n {date.toLocaleDateString()}\n </Typography>\n <LoggedPlannedNutritionalValuesTable\n logged={planQuery.data!.loggedNutritionalValuesDate(date)}\n planned={planQuery.data!.plannedNutritionalValues}\n />\n <IngredientDetailTable\n values={planQuery.data!.loggedNutritionalValuesDate(date)}\n items={planQuery.data!.loggedEntriesDate(date)}\n showSum={true} />\n\n </Stack>\n </>}\n />;\n};","import { LIST_OF_COLORS3, LIST_OF_COLORS5, LIST_OF_COLORS8 } from \"utils/consts\";\n\nexport function* generateChartColors(nrOfItems: number) {\n\n let colors;\n if (nrOfItems <= 3) {\n colors = LIST_OF_COLORS3;\n } else if (nrOfItems <= 5) {\n colors = LIST_OF_COLORS5;\n } else {\n colors = LIST_OF_COLORS8;\n }\n\n for (const i of colors) {\n yield i;\n }\n}\n","import { NutritionalValues } from \"components/Nutrition/helpers/nutritionalValues\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Cell, Legend, Pie, PieChart, ResponsiveContainer } from 'recharts';\nimport { generateChartColors } from \"utils/colors\";\nimport { numberGramLocale } from \"utils/numbers\";\n\nexport const MacrosPieChart = (props: { data: NutritionalValues }) => {\n const [t, i18n] = useTranslation();\n const colorGenerator = generateChartColors(3);\n\n const data = [\n { name: t('nutrition.carbohydrates'), value: props.data.carbohydrates },\n { name: t('nutrition.protein'), value: props.data.protein },\n { name: t('nutrition.fat'), value: props.data.fat },\n ];\n\n const RADIAN = Math.PI / 180;\n const renderCustomizedLabel = ({\n cx,\n cy,\n midAngle,\n innerRadius,\n outerRadius,\n payload,\n }: any) => {\n\n\n const radius = innerRadius + (outerRadius - innerRadius) * 0.4;\n const x = cx + radius * Math.cos(-midAngle * RADIAN);\n const y = cy + radius * Math.sin(-midAngle * RADIAN);\n\n return <text\n x={x}\n y={y}\n fill=\"white\"\n textAnchor=\"middle\"\n dominantBaseline=\"central\"\n >\n {numberGramLocale(payload.value, i18n.language)}\n </text>;\n };\n\n\n return <ResponsiveContainer width={\"100%\"} height={300}>\n <PieChart>\n <Pie\n data={data}\n labelLine={false}\n // outerRadius={80}\n label={renderCustomizedLabel}\n fill=\"#8884d8\"\n dataKey=\"value\"\n >\n {data.map((entry, index) => (\n <Cell key={`cell-${index}`} fill={colorGenerator.next().value!} />\n ))}\n </Pie>\n {/*<Tooltip />*/}\n <Legend />\n </PieChart>\n </ResponsiveContainer>;\n};\n","import { NutritionalValues } from \"components/Nutrition/helpers/nutritionalValues\";\nimport React from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { Bar, BarChart, CartesianGrid, Legend, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts';\nimport { generateChartColors } from \"utils/colors\";\nimport { numberLocale } from \"utils/numbers\";\n\ntype NutritionDiaryChartProps = {\n showPlanned: boolean,\n planned: NutritionalValues;\n today: NutritionalValues;\n avg7Days: NutritionalValues;\n}\n\nexport const NutritionDiaryChart = ({ showPlanned, planned, today, avg7Days }: NutritionDiaryChartProps) => {\n const [t, i18n] = useTranslation();\n const colorGenerator = generateChartColors(3);\n\n const data = [\n {\n name: t('nutrition.protein'),\n planned: planned.protein,\n today: today.protein,\n avg7Days: avg7Days.protein,\n },\n {\n name: t('nutrition.carbohydrates'),\n planned: planned.carbohydrates,\n today: today.carbohydrates,\n avg7Days: avg7Days.carbohydrates,\n },\n {\n name: t('nutrition.sugar'),\n planned: planned.carbohydratesSugar,\n today: today.carbohydratesSugar,\n avg7Days: avg7Days.carbohydratesSugar,\n },\n {\n name: t('nutrition.fat'),\n planned: planned.fat,\n today: today.fat,\n avg7Days: avg7Days.fat,\n },\n {\n name: t('nutrition.saturatedFat'),\n planned: planned.fatSaturated,\n today: today.fatSaturated,\n avg7Days: avg7Days.fatSaturated,\n },\n ];\n\n return (\n <ResponsiveContainer width={\"100%\"} height={300}>\n <BarChart\n data={data}\n margin={{\n top: 20,\n right: 30,\n left: 20,\n bottom: 5,\n }}\n >\n <CartesianGrid strokeDasharray=\"3 4\" />\n <XAxis dataKey=\"name\" />\n <YAxis\n type=\"number\"\n orientation=\"left\"\n unit={t('nutrition.gramShort')}\n />\n <Tooltip formatter={(value: number) => numberLocale(value, i18n.language)} />\n <Legend />\n {showPlanned &&\n <Bar\n dataKey=\"planned\"\n unit={t('nutrition.gramShort')}\n name={t('nutrition.planned')}\n fill={colorGenerator.next().value!}\n />\n }\n <Bar\n dataKey=\"today\"\n unit={t('nutrition.gramShort')}\n name={t('nutrition.today')}\n fill={colorGenerator.next().value!}\n />\n <Bar\n dataKey=\"avg7Days\"\n unit={t('nutrition.gramShort')}\n name={t('nutrition.7dayAvg')}\n fill={colorGenerator.next().value!}\n />\n </BarChart>\n </ResponsiveContainer>\n );\n};\n","import { Table, TableBody, TableCell, TableContainer, TableHead, TableRow } from \"@mui/material\";\nimport { NutritionalValues } from \"components/Nutrition/helpers/nutritionalValues\";\nimport { GroupedDiaryEntries } from \"components/Nutrition/models/nutritionalPlan\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\nimport { numberLocale } from \"utils/numbers\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\nexport const DiaryOverview = (props: {\n planId: number,\n logged: Map<string, GroupedDiaryEntries>,\n planned: NutritionalValues\n}) => {\n\n const [t, i18n] = useTranslation();\n\n\n return <TableContainer>\n <Table size=\"small\">\n <TableHead>\n <TableRow>\n <TableCell>{t('date')}</TableCell>\n <TableCell align=\"right\">{t('nutrition.logged')}</TableCell>\n <TableCell align=\"right\">{t('nutrition.difference')}</TableCell>\n </TableRow>\n </TableHead>\n <TableBody>\n {Array.from(props.logged).map(([key]) =>\n <TableRow key={key}>\n <TableCell>\n <Link\n to={makeLink(WgerLink.NUTRITION_DIARY, i18n.language, { id: props.planId, date: key })}>\n {new Date(key).toLocaleDateString(i18n.language)}\n </Link>\n </TableCell>\n <TableCell align=\"right\">\n {t('nutrition.valueEnergyKcal',\n { value: numberLocale(props.logged.get(key)?.nutritionalValues.energy!, i18n.language) }\n )}\n </TableCell>\n <TableCell align=\"right\">\n {numberLocale(props.logged.get(key)?.nutritionalValues.energy! - props.planned.energy, i18n.language)}\n </TableCell>\n </TableRow>)\n }\n </TableBody>\n </Table>\n </TableContainer>;\n};","import AddIcon from \"@mui/icons-material/Add\";\nimport HistoryEduIcon from '@mui/icons-material/HistoryEdu';\nimport { Fab } from \"@mui/material\";\nimport { WgerModal } from \"components/Core/Modals/WgerModal\";\nimport { NutritionalPlan } from \"components/Nutrition/models/nutritionalPlan\";\nimport { NutritionDiaryEntryForm } from \"components/Nutrition/widgets/forms/NutritionDiaryEntryForm\";\nimport { PlanForm } from \"components/Nutrition/widgets/forms/PlanForm\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\nexport const AddNutritionalPlanFab = () => {\n const [t] = useTranslation();\n const [openModal, setOpenModal] = React.useState(false);\n const handleOpenModal = () => setOpenModal(true);\n const handleCloseModal = () => setOpenModal(false);\n\n\n return (\n <div>\n <Fab\n color=\"secondary\"\n aria-label=\"add\"\n onClick={handleOpenModal}\n sx={{\n position: 'fixed',\n bottom: '5rem',\n right: (theme) => `max(${theme.spacing(2)}, calc((100vw - ${theme.breakpoints.values.lg}px) / 2 + ${theme.spacing(2)}))`,\n zIndex: 9,\n }}>\n <AddIcon />\n </Fab>\n <WgerModal title={t('add')} isOpen={openModal} closeFn={handleCloseModal}>\n <PlanForm closeFn={handleCloseModal} />\n </WgerModal>\n </div>\n );\n};\n\nexport const AddNutritionDiaryEntryFab = (props: { plan: NutritionalPlan }) => {\n const [t] = useTranslation();\n const [openModal, setOpenModal] = React.useState(false);\n const handleOpenModal = () => setOpenModal(true);\n const handleCloseModal = () => setOpenModal(false);\n\n\n return (\n <div>\n <Fab\n color=\"secondary\"\n aria-label=\"add\"\n onClick={handleOpenModal}\n sx={{\n position: 'fixed',\n bottom: '5rem',\n right: (theme) => `max(${theme.spacing(2)}, calc((100vw - ${theme.breakpoints.values.lg}px) / 2 + ${theme.spacing(2)}))`,\n zIndex: 9,\n }}>\n <HistoryEduIcon />\n </Fab>\n <WgerModal title={t('nutrition.addNutritionalDiary')} isOpen={openModal} closeFn={handleCloseModal}>\n <NutritionDiaryEntryForm closeFn={handleCloseModal} planId={props.plan.id!} meals={props.plan.meals} />\n </WgerModal>\n </div>\n );\n};\n","import { Button, Stack, TextField } from \"@mui/material\";\nimport { LocalizationProvider, TimePicker } from \"@mui/x-date-pickers\";\nimport { AdapterLuxon } from \"@mui/x-date-pickers/AdapterLuxon\";\nimport { Meal } from \"components/Nutrition/models/meal\";\nimport { useAddMealQuery, useEditMealQuery } from \"components/Nutrition/queries\";\nimport { Form, Formik } from \"formik\";\nimport { DateTime } from \"luxon\";\nimport React from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport * as yup from \"yup\";\n\ninterface MealFormProps {\n planId: number,\n meal?: Meal,\n closeFn?: Function,\n}\n\nexport const MealForm = ({ meal, planId, closeFn }: MealFormProps) => {\n\n const [t, i18n] = useTranslation();\n const addMealQuery = useAddMealQuery(planId);\n const editMealQuery = useEditMealQuery(planId);\n const validationSchema = yup.object({\n name: yup\n .string()\n .required()\n .max(25, t('forms.maxLength', { chars: '25' }))\n .min(3, t('forms.minLength', { chars: '3' })),\n time: yup\n .date()\n .required()\n });\n\n\n return (\n <Formik\n initialValues={{\n name: meal ? meal.name : \"\",\n time: meal ? meal.time : new Date()\n }}\n validationSchema={validationSchema}\n onSubmit={async (values) => {\n if (!(values.time instanceof Date)) {\n // @ts-ignore - The result from the datepicker is a Luxon DateTime object, not a JS DateTime\n values.time = values.time.toJSDate();\n }\n\n if (meal) {\n // Edit\n const newMeal = Meal.clone(meal, { name: values.name, time: values.time });\n editMealQuery.mutate(newMeal);\n\n } else {\n // Add\n addMealQuery.mutate(new Meal({\n planId: planId,\n name: values.name,\n time: values.time,\n }));\n }\n\n if (closeFn) {\n closeFn();\n }\n }}\n >\n {formik => (\n <Form>\n <Stack spacing={2}>\n <TextField\n fullWidth\n id=\"name\"\n label={t('description')}\n error={formik.touched.name && Boolean(formik.errors.name)}\n helperText={formik.touched.name && formik.errors.name}\n {...formik.getFieldProps('name')}\n />\n\n <LocalizationProvider dateAdapter={AdapterLuxon} adapterLocale={i18n.language}>\n <TimePicker\n label={t('timeOfDay')}\n value={formik.values.time !== null ? DateTime.fromJSDate(formik.values.time) : null}\n onChange={(newValue) => formik.setFieldValue('time', newValue ? newValue.toJSDate() : null)}\n />\n </LocalizationProvider>\n <Stack direction=\"row\" justifyContent=\"end\" spacing={2}>\n {closeFn !== undefined\n && <Button color=\"primary\" variant=\"outlined\" onClick={() => closeFn()}>\n {t('close')}\n </Button>}\n <Button\n disabled={addMealQuery.isPending || editMealQuery.isPending}\n color=\"primary\"\n variant=\"contained\"\n type=\"submit\"\n >\n {t('submit')}\n </Button>\n </Stack>\n </Stack>\n </Form>\n )}\n </Formik>\n );\n};\n","import { NutritionalValues } from \"components/Nutrition/helpers/nutritionalValues\";\nimport React from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { Bar, BarChart, CartesianGrid, ResponsiveContainer, XAxis, YAxis } from 'recharts';\nimport { generateChartColors } from \"utils/colors\";\n\n\nexport const NutritionalValuesPlannedLoggedChart = (props: {\n logged: NutritionalValues,\n planned: NutritionalValues\n}) => {\n const [t] = useTranslation();\n const colorGenerator = generateChartColors(3);\n const data = [\n {\n name: t('nutrition.energy'),\n value: props.logged.energy / props.planned.energy * 100,\n },\n {\n name: t('nutrition.protein'),\n value: props.logged.protein / props.planned.protein * 100,\n },\n {\n name: t('nutrition.carbohydrates'),\n value: props.logged.carbohydrates / props.planned.carbohydrates * 100,\n },\n {\n name: t('nutrition.fat'),\n value: props.logged.fat / props.planned.fat * 100,\n },\n ];\n\n\n return (\n <ResponsiveContainer width={\"100%\"} height={150}>\n <BarChart\n data={data}\n layout=\"vertical\"\n margin={{\n left: 60,\n }}\n >\n <CartesianGrid strokeDasharray=\"3 4\" />\n <XAxis type={'number'} unit={'%'} />\n <YAxis type={'category'} dataKey={'name'} />\n <Bar\n dataKey=\"value\"\n unit={'%'}\n fill={colorGenerator.next().value!}\n />\n </BarChart>\n </ResponsiveContainer>\n );\n};\n","import { Button, InputAdornment, Stack, TextField } from \"@mui/material\";\nimport { Ingredient } from \"components/Nutrition/models/Ingredient\";\nimport { MealItem } from \"components/Nutrition/models/mealItem\";\nimport { useAddMealItemQuery, useDeleteMealItemQuery, useEditMealItemQuery } from \"components/Nutrition/queries\";\nimport { IngredientAutocompleter } from \"components/Nutrition/widgets/IngredientAutcompleter\";\nimport { Form, Formik } from \"formik\";\nimport { useTranslation } from \"react-i18next\";\nimport * as yup from \"yup\";\n\ntype MealItemFormProps =\n | { planId: number; item: MealItem; closeFn?: () => void; mealId?: number }\n | { planId: number; mealId: number; item?: undefined; closeFn?: () => void };\n\nexport const MealItemForm = ({ planId, item, mealId, closeFn }: MealItemFormProps) => {\n\n const [t] = useTranslation();\n const addMealItemQuery = useAddMealItemQuery(planId);\n const editMealItemQuery = useEditMealItemQuery(planId);\n const deleteMealItemQuery = useDeleteMealItemQuery(planId);\n\n const handleDelete = () => {\n if (item) {\n deleteMealItemQuery.mutate(item.id!);\n }\n\n if (closeFn) {\n closeFn();\n }\n };\n\n const validationSchema = yup.object({\n amount: yup\n .number()\n .required(t('forms.fieldRequired'))\n .max(1000, t('forms.maxValue', { value: '1000' }))\n .min(1, t('forms.minValue', { value: '1' })),\n ingredient: yup\n .number()\n .required(t('forms.fieldRequired')),\n });\n\n\n return (\n <Formik\n initialValues={{\n amount: item ? item.amount : 0,\n ingredient: item ? item.ingredientId : 0,\n }}\n validationSchema={validationSchema}\n onSubmit={async (values) => {\n\n // Just to make sure we get a number\n const newAmount = Math.round(values.amount);\n\n if (item) {\n // Edit\n const newMealItem = MealItem.clone(item, {\n amount: newAmount,\n ingredientId: values.ingredient,\n weightUnitId: null,\n });\n editMealItemQuery.mutate(newMealItem);\n } else {\n // Add\n addMealItemQuery.mutate(new MealItem({\n mealId: mealId,\n amount: newAmount,\n ingredientId: values.ingredient,\n order: 1,\n }));\n }\n\n if (closeFn) {\n closeFn();\n }\n }}\n >\n {formik => (\n <Form>\n <Stack spacing={2}>\n <IngredientAutocompleter\n callback={(value: Ingredient | null) => formik.setFieldValue('ingredient', value ? value.id : null)}\n initialIngredient={item ? item.ingredient : null}\n />\n <TextField\n fullWidth\n id=\"amount\"\n label={'amount'}\n InputProps={{\n endAdornment: <InputAdornment position=\"end\">{t('nutrition.gramShort')}</InputAdornment>\n }}\n\n error={formik.touched.amount && Boolean(formik.errors.amount)}\n helperText={formik.touched.amount && formik.errors.amount}\n {...formik.getFieldProps('amount')}\n />\n\n <Stack direction=\"row\" justifyContent=\"end\" spacing={2}>\n {(closeFn !== undefined && item !== undefined)\n && <Button color=\"error\" variant=\"outlined\" onClick={handleDelete}>\n {t('delete')}\n </Button>}\n\n {closeFn !== undefined\n && <Button color=\"primary\" variant=\"outlined\" onClick={() => closeFn()}>\n {t('close')}\n </Button>}\n\n <Button color=\"primary\" variant=\"contained\" type=\"submit\">\n {t('submit')}\n </Button>\n </Stack>\n </Stack>\n </Form>\n )}\n </Formik>\n );\n};\n","import HistoryEduIcon from \"@mui/icons-material/HistoryEdu\";\nimport InfoIcon from '@mui/icons-material/Info';\nimport InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';\nimport MoreVertIcon from \"@mui/icons-material/MoreVert\";\nimport { Alert, IconButton, Menu, MenuItem, Snackbar } from \"@mui/material\";\nimport Tooltip from \"@mui/material/Tooltip\";\nimport { DeleteConfirmationModal } from \"components/Core/Modals/DeleteConfirmationModal\";\nimport { WgerModal } from \"components/Core/Modals/WgerModal\";\nimport { Meal } from \"components/Nutrition/models/meal\";\nimport { useDeleteMealQuery } from \"components/Nutrition/queries\";\nimport { useAddDiaryEntriesQuery } from \"components/Nutrition/queries/diary\";\nimport { MealForm } from \"components/Nutrition/widgets/forms/MealForm\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { SNACKBAR_AUTO_HIDE_DURATION } from \"utils/consts\";\n\n\nexport const MealDetailDropdown = (props: {\n meal: Meal,\n planId: number,\n onlyLogging: boolean,\n isExpanded: boolean,\n handleExpanded: () => void,\n}) => {\n\n const addDiaryEntriesQuery = useAddDiaryEntriesQuery(props.planId);\n const deleteMealQuery = useDeleteMealQuery(props.planId);\n\n const [t] = useTranslation();\n const [openSnackbar, setOpenSnackbar] = React.useState(false);\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);\n const [openEditModal, setOpenEditModal] = useState(false);\n const [openDeleteModal, setOpenDeleteModal] = useState(false);\n const open = Boolean(anchorEl);\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleEdit = () => {\n handleClose();\n handleOpenEditModal();\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n const handleDelete = () => {\n handleOpenDeleteModal();\n setAnchorEl(null);\n };\n\n const performDelete = () => {\n deleteMealQuery.mutate(props.meal.id!);\n };\n\n\n const handleOpenEditModal = () => setOpenEditModal(true);\n const handleCloseEditModal = () => setOpenEditModal(false);\n const handleOpenDeleteModal = () => setOpenDeleteModal(true);\n const handleCloseDeleteModal = () => setOpenDeleteModal(false);\n\n const handleCloseSnackbar = (event?: React.SyntheticEvent | Event, reason?: string) => {\n if (reason === 'clickaway') {\n return;\n }\n setOpenSnackbar(false);\n };\n\n\n const handleAddDiaryEntry = () => {\n const diaryEntries = props.meal.items.map(item => item.diaryEntry(props.planId));\n addDiaryEntriesQuery.mutate(diaryEntries);\n setOpenSnackbar(true);\n };\n\n\n return <>\n {props.meal.isRealMeal && !props.onlyLogging && <Tooltip title={t('nutrition.logThisMeal')}>\n <IconButton aria-label=\"settings\" onClick={handleAddDiaryEntry}>\n <HistoryEduIcon />\n </IconButton>\n </Tooltip>}\n {props.meal.isRealMeal && <IconButton aria-label=\"settings\" onClick={handleClick}>\n <MoreVertIcon />\n </IconButton>}\n <IconButton aria-label=\"settings\" onClick={props.handleExpanded}>\n {props.isExpanded ? <InfoIcon /> : <InfoOutlinedIcon />}\n </IconButton>\n <Menu\n anchorEl={anchorEl}\n open={open}\n onClose={handleClose}\n >\n <MenuItem onClick={handleEdit}>{t(\"edit\")}</MenuItem>\n <MenuItem onClick={handleDelete}>{t(\"delete\")}</MenuItem>\n </Menu>\n\n <WgerModal title={t('edit')} isOpen={openEditModal} closeFn={handleCloseEditModal}>\n <MealForm meal={props.meal} closeFn={handleCloseEditModal} planId={props.planId} />\n </WgerModal>\n\n <DeleteConfirmationModal\n title={t('deleteConfirmation', { name: props.meal.name })}\n message={t('nutrition.mealDeleteInfo')}\n isOpen={openDeleteModal}\n closeFn={handleCloseDeleteModal}\n deleteFn={performDelete}\n />\n\n <Snackbar open={openSnackbar} autoHideDuration={SNACKBAR_AUTO_HIDE_DURATION} onClose={handleCloseSnackbar}>\n <Alert onClose={handleCloseSnackbar} severity=\"success\" sx={{ width: '100%' }}>\n {t('nutrition.diaryEntrySaved')}\n </Alert>\n </Snackbar>\n </>;\n};\n","import { Add } from \"@mui/icons-material\";\nimport HistoryEduIcon from \"@mui/icons-material/HistoryEdu\";\nimport PhotoIcon from \"@mui/icons-material/Photo\";\nimport {\n Avatar,\n Card,\n CardActions,\n CardContent,\n CardHeader,\n Collapse,\n IconButton,\n List,\n ListItem,\n ListItemAvatar,\n ListItemText,\n Typography,\n useTheme\n} from \"@mui/material\";\nimport Tooltip from \"@mui/material/Tooltip\";\nimport { Meal } from \"components/Nutrition/models/meal\";\nimport { MealItem } from \"components/Nutrition/models/mealItem\";\nimport {\n NutritionalValuesPlannedLoggedChart\n} from \"components/Nutrition/widgets/charts/NutritionalValuesPlannedLoggedChart\";\nimport { MealItemForm } from \"components/Nutrition/widgets/forms/MealItemForm\";\nimport { NutritionDiaryEntryForm } from \"components/Nutrition/widgets/forms/NutritionDiaryEntryForm\";\nimport { IngredientDetailTable } from \"components/Nutrition/widgets/IngredientDetailTable\";\nimport { MealDetailDropdown } from \"components/Nutrition/widgets/MealDetailDropdown\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\nconst MealItemListItem = (props: { mealItem: MealItem, planId: number, mealId: number }) => {\n const [expandForm, setExpandForm] = useState(false);\n const handleToggleForm = () => setExpandForm(!expandForm);\n\n\n return <>\n <ListItem>\n <ListItemAvatar onClick={handleToggleForm} sx={{ '&:hover': { cursor: 'pointer' } }}>\n <Avatar\n alt={props.mealItem.ingredient?.name}\n src={props.mealItem.ingredient?.image?.url}\n sx={{ width: 45, height: 45 }}\n >\n <PhotoIcon />\n </Avatar>\n </ListItemAvatar>\n <ListItemText primary={`${props.mealItem.amountString} ${props.mealItem.ingredient?.name}`} />\n\n </ListItem>\n <Collapse in={expandForm} timeout=\"auto\" unmountOnExit sx={{ width: '100%' }}>\n <ListItem>\n <ListItemText>\n <MealItemForm\n planId={props.planId}\n mealId={props.mealId}\n item={props.mealItem}\n closeFn={handleToggleForm}\n />\n </ListItemText>\n </ListItem>\n </Collapse>\n </>;\n};\n\nexport const MealDetail = (props: { meal: Meal, planId: number, onlyLogging: boolean }) => {\n const theme = useTheme();\n const [t] = useTranslation();\n const [expandViewStats, setExpandViewStats] = useState(false);\n const handleToggleExpandStats = () => setExpandViewStats(!expandViewStats);\n\n const [expandItemForm, setExpandItemForm] = useState(false);\n const handleToggleExpandItemForm = () => {\n setExpandItemForm(!expandItemForm);\n setExpandDiaryForm(false);\n };\n\n const [expandDiaryForm, setExpandDiaryForm] = useState(false);\n const handleToggleExpandDiaryForm = () => {\n setExpandDiaryForm(!expandDiaryForm);\n setExpandItemForm(false);\n };\n\n return <Card>\n <CardHeader\n sx={{ bgcolor: theme.palette.grey[\"300\"] }}\n action={<MealDetailDropdown\n meal={props.meal}\n planId={props.planId}\n onlyLogging={props.onlyLogging}\n isExpanded={expandViewStats}\n handleExpanded={handleToggleExpandStats}\n />}\n title={props.meal.name}\n subheader={props.meal.timeHHMMLocale}\n />\n <CardContent sx={{ paddingY: 0 }}>\n <Collapse in={expandViewStats} timeout=\"auto\" unmountOnExit>\n {!props.onlyLogging && <IngredientDetailTable\n showSum={props.meal.isRealMeal}\n items={props.meal.items}\n values={props.meal.plannedNutritionalValues}\n />}\n\n <Typography gutterBottom variant=\"h6\" sx={{ my: 2 }}>\n {t('nutrition.loggedToday')}\n </Typography>\n\n {!props.meal.plannedNutritionalValues.isEmpty &&\n <NutritionalValuesPlannedLoggedChart\n logged={props.meal.loggedNutritionalValuesToday}\n planned={props.meal.plannedNutritionalValues}\n />}\n\n <IngredientDetailTable\n showSum={props.meal.isRealMeal}\n items={props.meal.diaryEntriesToday}\n values={props.meal.loggedNutritionalValuesToday}\n />\n\n </Collapse>\n\n {!expandViewStats &&\n <List>\n {props.meal.items.map((item) => (\n <MealItemListItem\n mealItem={item}\n planId={props.planId}\n mealId={props.meal.id!}\n key={item.id}\n />\n ))}\n </List>}\n\n </CardContent>\n <CardActions>\n {!props.onlyLogging && <Tooltip title={t('nutrition.addMealItem')}>\n <IconButton onClick={handleToggleExpandItemForm}>\n <Add />\n </IconButton>\n </Tooltip>}\n\n <Tooltip title={t('nutrition.addNutritionalDiary')}>\n <IconButton onClick={handleToggleExpandDiaryForm}>\n <HistoryEduIcon />\n </IconButton>\n </Tooltip>\n </CardActions>\n\n <Collapse in={expandItemForm} timeout=\"auto\" unmountOnExit>\n <CardContent sx={{ paddingY: 0 }}>\n <p><b>{t('nutrition.addMealItem')}</b></p>\n <MealItemForm\n planId={props.planId}\n mealId={props.meal.id!}\n closeFn={handleToggleExpandItemForm} />\n </CardContent>\n </Collapse>\n <Collapse in={expandDiaryForm} timeout=\"auto\" unmountOnExit>\n <CardContent sx={{ paddingY: 0 }}>\n <p><b>{t('nutrition.addNutritionalDiary')}</b></p>\n <NutritionDiaryEntryForm\n closeFn={handleToggleExpandDiaryForm}\n planId={props.planId}\n mealId={props.meal.isRealMeal ? props.meal.id : null} />\n </CardContent>\n </Collapse>\n\n </Card>;\n};","import { Table, TableBody, TableCell, TableContainer, TableHead, TableRow } from \"@mui/material\";\nimport { NutritionalValues } from \"components/Nutrition/helpers/nutritionalValues\";\nimport { useTranslation } from \"react-i18next\";\nimport { numberGramLocale, numberLocale, numberPercentLocale } from \"utils/numbers\";\n\nexport const NutritionalValuesTable = (props: { values: NutritionalValues }) => {\n const [t, i18n] = useTranslation();\n\n return <TableContainer>\n <Table size=\"small\">\n <TableHead>\n <TableRow>\n <TableCell>{t('nutrition.macronutrient')}</TableCell>\n <TableCell align=\"right\">{t('total')}</TableCell>\n <TableCell align=\"right\">{t('nutrition.percentEnergy')}</TableCell>\n {/*<TableCell align=\"right\">{t('nutrition.gPerBodyKg')}</TableCell>*/}\n </TableRow>\n </TableHead>\n <TableBody>\n <TableRow>\n <TableCell>{t('nutrition.energy')}</TableCell>\n <TableCell align=\"right\">\n {t('nutrition.valueEnergyKcalKj', {\n kcal: numberLocale(props.values.energy, i18n.language),\n kj: numberLocale(props.values.energyKj, i18n.language)\n })}\n </TableCell>\n <TableCell align=\"right\"></TableCell>\n {/*<TableCell align=\"right\"></TableCell>*/}\n </TableRow>\n <TableRow>\n <TableCell>{t('nutrition.protein')}</TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.values.protein, i18n.language)}\n </TableCell>\n <TableCell align=\"right\">\n {numberPercentLocale(props.values.percent.protein, i18n.language)}\n </TableCell>\n {/*<TableCell align=\"right\">...</TableCell>*/}\n </TableRow>\n <TableRow>\n <TableCell>{t('nutrition.carbohydrates')}</TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.values.carbohydrates, i18n.language)}\n </TableCell>\n <TableCell align=\"right\">\n {numberPercentLocale(props.values.percent.carbohydrates, i18n.language)}\n </TableCell>\n {/*<TableCell align=\"right\">...</TableCell>*/}\n </TableRow>\n <TableRow>\n <TableCell sx={{ pl: 5 }}>{t('nutrition.ofWhichSugars')}</TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.values.carbohydratesSugar, i18n.language)}\n </TableCell>\n <TableCell align=\"right\"></TableCell>\n {/*<TableCell align=\"right\"></TableCell>*/}\n </TableRow>\n <TableRow>\n <TableCell>{t('nutrition.fat')}</TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.values.fat, i18n.language)}\n </TableCell>\n <TableCell align=\"right\">\n {numberPercentLocale(props.values.percent.fat, i18n.language)}\n </TableCell>\n {/*<TableCell align=\"right\">...</TableCell>*/}\n </TableRow>\n <TableRow>\n <TableCell sx={{ pl: 5 }}>{t('nutrition.ofWhichSaturated')}</TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.values.fatSaturated, i18n.language)}\n </TableCell>\n <TableCell align=\"right\"></TableCell>\n {/*<TableCell align=\"right\"></TableCell>*/}\n </TableRow>\n\n <TableRow>\n <TableCell>{t('nutrition.others')}</TableCell>\n <TableCell> </TableCell>\n <TableCell align=\"right\"></TableCell>\n {/*<TableCell align=\"right\"></TableCell>*/}\n </TableRow>\n <TableRow>\n <TableCell>{t('nutrition.fibres')}</TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.values.fiber, i18n.language)}\n </TableCell>\n <TableCell align=\"right\"></TableCell>\n {/*<TableCell align=\"right\"></TableCell>*/}\n </TableRow>\n <TableRow>\n <TableCell>{t('nutrition.sodium')}</TableCell>\n <TableCell align=\"right\">\n {numberGramLocale(props.values.sodium, i18n.language)}\n </TableCell>\n <TableCell align=\"right\"></TableCell>\n {/*<TableCell align=\"right\"></TableCell>*/}\n </TableRow>\n </TableBody>\n </Table>\n </TableContainer>;\n};","import MenuIcon from '@mui/icons-material/Menu';\nimport { Button, Menu, MenuItem } from \"@mui/material\";\nimport { DeleteConfirmationModal } from \"components/Core/Modals/DeleteConfirmationModal\";\nimport { WgerModal } from \"components/Core/Modals/WgerModal\";\nimport { NutritionalPlan } from \"components/Nutrition/models/nutritionalPlan\";\nimport { useDeleteNutritionalPlanQuery } from \"components/Nutrition/queries\";\nimport { PlanForm } from \"components/Nutrition/widgets/forms/PlanForm\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useNavigate } from \"react-router-dom\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\n\nexport const PlanDetailDropdown = (props: { plan: NutritionalPlan }) => {\n\n const deletePlanQuery = useDeleteNutritionalPlanQuery(props.plan.id!);\n const navigate = useNavigate();\n\n const [t, i18n] = useTranslation();\n const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);\n const [openEditModal, setOpenEditModal] = React.useState(false);\n const [openDeleteModal, setOpenDeleteModal] = React.useState(false);\n const open = Boolean(anchorEl);\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleEdit = () => {\n handleClose();\n handleOpenEditModal();\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n const handleDelete = () => {\n handleOpenDeleteModal();\n setAnchorEl(null);\n };\n\n const performDelete = () => {\n deletePlanQuery.mutate(props.plan.id!);\n navigate((makeLink(WgerLink.NUTRITION_OVERVIEW)));\n };\n\n const navigateToPdfDownload = () => window.location.href = makeLink(WgerLink.NUTRITION_PLAN_PDF, i18n.language, { id: props.plan.id! });\n const navigateToCopyPlan = () => window.location.href = makeLink(WgerLink.NUTRITION_PLAN_COPY, i18n.language, { id: props.plan.id! });\n\n const handleOpenEditModal = () => setOpenEditModal(true);\n const handleCloseEditModal = () => setOpenEditModal(false);\n const handleOpenDeleteModal = () => setOpenDeleteModal(true);\n const handleCloseDeleteModal = () => setOpenDeleteModal(false);\n\n return <>\n <Button onClick={handleClick}>\n <MenuIcon />\n </Button>\n <Menu\n anchorEl={anchorEl}\n open={open}\n onClose={handleClose}\n >\n <MenuItem onClick={handleEdit}>{t(\"edit\")}</MenuItem>\n <MenuItem onClick={navigateToPdfDownload}>{t(\"downloadAsPdf\")}</MenuItem>\n <MenuItem onClick={navigateToCopyPlan}>{t(\"nutrition.copyPlan\")}</MenuItem>\n <MenuItem onClick={handleDelete}>{t(\"delete\")}</MenuItem>\n </Menu>\n\n <WgerModal title={t('edit')} isOpen={openEditModal} closeFn={handleCloseEditModal}>\n <PlanForm plan={props.plan} closeFn={handleCloseEditModal} />\n </WgerModal>\n\n <DeleteConfirmationModal\n title={t('deleteConfirmation', { name: props.plan.description })}\n message={t('nutrition.planDeleteInfo')}\n isOpen={openDeleteModal}\n closeFn={handleCloseDeleteModal}\n deleteFn={performDelete}\n />\n </>;\n};\n","import { Stack, Typography } from \"@mui/material\";\nimport { NutritionalPlan } from \"components/Nutrition/models/nutritionalPlan\";\nimport { LinearPlannedLoggedChart } from \"components/Nutrition/widgets/charts/LinearPlannedLoggedChart\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\n\nexport const PlanSidebar = (props: { plan: NutritionalPlan }) => {\n const [t] = useTranslation();\n\n const planned = props.plan.plannedNutritionalValues;\n const loggedToday = props.plan.loggedNutritionalValuesToday;\n const percentages = props.plan.percentageValuesLoggedToday;\n\n\n return <>\n <Stack direction=\"column\" spacing={1}>\n <Typography gutterBottom variant=\"h6\">\n {t('nutrition.goalsTitle')}\n </Typography>\n\n <LinearPlannedLoggedChart\n title={t('nutrition.protein')}\n percentage={percentages.protein}\n logged={loggedToday.protein}\n planned={planned.protein}\n />\n\n <LinearPlannedLoggedChart\n title={t('nutrition.carbohydrates')}\n percentage={percentages.carbohydrates}\n logged={loggedToday.carbohydrates}\n planned={planned.carbohydrates}\n />\n\n <LinearPlannedLoggedChart\n title={t('nutrition.fat')}\n percentage={percentages.fat}\n logged={loggedToday.fat}\n planned={planned.fat}\n />\n </Stack>\n </>;\n};","import { Add } from \"@mui/icons-material\";\nimport { Collapse, IconButton, Stack, Typography } from \"@mui/material\";\nimport Tooltip from \"@mui/material/Tooltip\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { WgerContainerRightSidebar } from \"components/Core/Widgets/Container\";\nimport { useFetchNutritionalPlanQuery } from \"components/Nutrition/queries\";\nimport { MacrosPieChart } from \"components/Nutrition/widgets/charts/MacrosPieChart\";\nimport { NutritionDiaryChart } from \"components/Nutrition/widgets/charts/NutritionDiaryChart\";\nimport { DiaryOverview } from \"components/Nutrition/widgets/DiaryOverview\";\nimport { AddNutritionDiaryEntryFab } from \"components/Nutrition/widgets/Fab\";\nimport { MealForm } from \"components/Nutrition/widgets/forms/MealForm\";\nimport { MealDetail } from \"components/Nutrition/widgets/MealDetail\";\nimport { NutritionalValuesTable } from \"components/Nutrition/widgets/NutritionalValuesTable\";\nimport { PlanDetailDropdown } from \"components/Nutrition/widgets/PlanDetailDropdown\";\nimport { PlanSidebar } from \"components/Nutrition/widgets/PlanSidebar\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useParams } from \"react-router-dom\";\n\n\nexport const PlanDetail = () => {\n const [t] = useTranslation();\n const params = useParams<{ planId: string }>();\n const planId = parseInt(params.planId ?? '');\n if (Number.isNaN(planId)) {\n return <p>Please pass an integer as the nutritional plan id.</p>;\n }\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const planQuery = useFetchNutritionalPlanQuery(planId);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const [expandedForm, setExpandedForm] = useState(false);\n const handleToggleExpandedForm = () => setExpandedForm(!expandedForm);\n\n const plan = planQuery.data!;\n\n if (planQuery.isLoading) {\n return <LoadingPlaceholder />;\n }\n\n return <WgerContainerRightSidebar\n title={plan.description}\n optionsMenu={<PlanDetailDropdown plan={plan} />}\n mainContent={<>\n <Stack spacing={2}>\n {/*<Typography gutterBottom variant=\"h4\">*/}\n {/* {t('nutrition.planned')}*/}\n {/*</Typography>*/}\n {plan.meals.map(meal => <MealDetail\n meal={meal}\n planId={plan.id!}\n key={meal.id}\n onlyLogging={plan.onlyLogging} />)}\n <MealDetail\n meal={planQuery.data!.pseudoMealOthers(t('nutrition.pseudoMealTitle'))}\n planId={plan.id!}\n key={-1}\n onlyLogging={true}\n />\n\n {!plan.onlyLogging && <>\n <Tooltip title={t('nutrition.addMeal')}>\n <IconButton onClick={handleToggleExpandedForm}>\n <Add />\n </IconButton>\n </Tooltip>\n <Collapse in={expandedForm} timeout=\"auto\" unmountOnExit>\n <p><b>{t('nutrition.addMeal')}</b></p>\n <MealForm planId={plan.id!} closeFn={handleToggleExpandedForm} />\n </Collapse>\n </>}\n\n <NutritionalValuesTable values={plan.plannedNutritionalValues} />\n\n {plan.hasAnyPlanned &&\n <MacrosPieChart data={plan.plannedNutritionalValues} />\n }\n <Typography gutterBottom variant=\"h4\">\n {t('nutrition.logged')}\n </Typography>\n <NutritionDiaryChart\n showPlanned={plan.hasAnyPlanned}\n planned={plan.plannedNutritionalValues}\n today={plan.loggedNutritionalValuesToday}\n avg7Days={plan.loggedNutritionalValues7DayAvg}\n />\n <NutritionalValuesTable\n values={plan.loggedNutritionalValuesToday}\n />\n <DiaryOverview\n planId={plan.id!}\n logged={plan.groupDiaryEntries}\n planned={plan.plannedNutritionalValues}\n />\n </Stack>\n </>}\n sideBar={<PlanSidebar plan={plan} />}\n fab={<AddNutritionDiaryEntryFab plan={plan} />}\n />;\n};","import ChevronRightIcon from \"@mui/icons-material/ChevronRight\";\nimport { Divider, List, ListItem, ListItemButton, ListItemText, Paper, Stack } from \"@mui/material\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { WgerContainerRightSidebar } from \"components/Core/Widgets/Container\";\nimport { OverviewEmpty } from \"components/Core/Widgets/OverviewEmpty\";\nimport { NutritionalPlan } from \"components/Nutrition/models/nutritionalPlan\";\nimport { useFetchNutritionalPlansQuery } from \"components/Nutrition/queries\";\nimport { AddNutritionalPlanFab } from \"components/Nutrition/widgets/Fab\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\nexport const PlansOverview = () => {\n const plansQuery = useFetchNutritionalPlansQuery();\n const [t] = useTranslation();\n\n\n return plansQuery.isLoading\n ? <LoadingPlaceholder />\n : <WgerContainerRightSidebar\n title={t(\"nutrition.plans\")}\n mainContent={<Stack spacing={2}>\n {plansQuery.data?.length === 0 && <OverviewEmpty />}\n <PlanList plans={plansQuery.data!} />\n </Stack>\n }\n fab={<AddNutritionalPlanFab />}\n />;\n};\n\n\nconst PlanListItem = (props: { plan: NutritionalPlan }) => {\n const [t, i18n] = useTranslation();\n const detailUrl = makeLink(WgerLink.NUTRITION_DETAIL, i18n.language, { id: props.plan.id! });\n\n return <>\n <ListItem sx={{ p: 0 }}>\n <ListItemButton component=\"a\" href={detailUrl}>\n <ListItemText\n primary={props.plan.description !== '' ? props.plan.description : t('routines.routine')}\n secondary={\n props.plan.end\n ? `${props.plan.start.toLocaleDateString()} – ${props.plan.end.toLocaleDateString()}`\n : `${props.plan.start.toLocaleDateString()}`\n }\n />\n <ChevronRightIcon />\n </ListItemButton>\n </ListItem>\n <Divider component=\"li\" />\n </>;\n};\n\nconst PlanList = (props: { plans: NutritionalPlan[] }) => {\n\n return <Paper>\n <List sx={{ py: 0 }} key={'abc'}>\n {props.plans.map((plan) => <PlanListItem plan={plan} key={plan.id} />)}\n </List>\n </Paper>;\n};","import { TextField } from \"@mui/material\";\nimport { TextFieldProps } from \"@mui/material/TextField/TextField\";\nimport { useField } from \"formik\";\nimport React from \"react\";\n\ninterface WgerTextFieldProps {\n fieldName: string,\n title: string,\n fieldProps?: TextFieldProps,\n fullwidth?: boolean,\n}\n\nexport function WgerTextField(props: WgerTextFieldProps) {\n const [field, meta] = useField(props.fieldName);\n const fullwidth = props.fullwidth ?? true;\n\n return <TextField\n fullWidth={fullwidth}\n id={props.fieldName}\n label={props.title}\n variant=\"standard\"\n error={meta.touched && Boolean(meta.error)}\n helperText={meta.touched && meta.error}\n {...field}\n {...props.fieldProps}\n />;\n}","import { MenuItem, TextField } from \"@mui/material\";\nimport { LoadingProgressIcon } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { useEditProfileQuery, useProfileQuery } from \"components/User/queries/profile\";\nimport { SlotEntry, SlotEntryType } from \"components/WorkoutRoutines/models/SlotEntry\";\nimport {\n useEditSlotEntryQuery,\n useFetchRoutineRepUnitsQuery,\n useFetchRoutineWeighUnitsQuery\n} from \"components/WorkoutRoutines/queries\";\nimport React, { useCallback, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { DEBOUNCE_ROUTINE_FORMS } from \"utils/consts\";\n\nexport const SlotEntryTypeField = (props: { slotEntry: SlotEntry, routineId: number }) => {\n const { t } = useTranslation();\n const editQuery = useEditSlotEntryQuery(props.routineId);\n\n const options = [\n {\n value: 'normal',\n label: t('routines.set.normalSet'),\n },\n {\n value: 'dropset',\n label: t('routines.set.dropSet'),\n },\n {\n value: 'myo',\n label: t('routines.set.myo'),\n },\n {\n value: 'partial',\n label: t('routines.set.partial'),\n },\n {\n value: 'forced',\n label: t('routines.set.forced'),\n },\n {\n value: 'tut',\n label: t('routines.set.tut'),\n },\n {\n value: 'iso',\n label: t('routines.set.iso'),\n },\n {\n value: 'jump',\n label: t('routines.set.jump'),\n }\n ] as const;\n\n const handleOnChange = (newValue: string) => {\n editQuery.mutate(SlotEntry.clone(props.slotEntry, { type: newValue as SlotEntryType }));\n };\n\n return <>\n <TextField\n fullWidth\n select\n label={t('routines.set.type')}\n variant=\"standard\"\n value={props.slotEntry.type}\n disabled={editQuery.isPending}\n onChange={e => handleOnChange(e.target.value)}\n >\n {options!.map((option) => (\n <MenuItem key={option.value} value={option.value}>\n {option.label}\n </MenuItem>\n ))}\n </TextField>\n </>;\n};\n\n\nexport const SlotEntryRepetitionUnitField = (props: { slotEntry: SlotEntry, routineId: number }) => {\n const { t } = useTranslation();\n const editSlotEntryQuery = useEditSlotEntryQuery(props.routineId);\n const repUnitsQuery = useFetchRoutineRepUnitsQuery();\n\n if (repUnitsQuery.isLoading) {\n return <LoadingProgressIcon />;\n }\n\n const options = repUnitsQuery.data?.map((unit) => ({\n value: unit.id,\n label: unit.name,\n }));\n\n const handleOnChange = (newValue: string) => {\n editSlotEntryQuery.mutate(SlotEntry.clone(props.slotEntry, { repetitionUnitId: parseInt(newValue) }));\n };\n\n\n return <>\n <TextField\n fullWidth\n select\n label={t('unit')}\n variant=\"standard\"\n value={props.slotEntry.repetitionUnitId}\n disabled={editSlotEntryQuery.isPending}\n onChange={e => handleOnChange(e.target.value)}\n >\n {options!.map((option) => (\n <MenuItem key={option.value} value={option.value ?? ''}>\n {option.label}\n </MenuItem>\n ))}\n </TextField>\n </>;\n};\n\nexport const SlotEntryWeightUnitField = (props: { slotEntry: SlotEntry, routineId: number }) => {\n const { t } = useTranslation();\n const editSlotEntryQuery = useEditSlotEntryQuery(props.routineId);\n const weightUnitsQuery = useFetchRoutineWeighUnitsQuery();\n const userProfileQuery = useProfileQuery();\n\n\n if (weightUnitsQuery.isLoading || userProfileQuery.isLoading) {\n return <LoadingProgressIcon />;\n }\n\n const options = weightUnitsQuery.data?.map((unit) => ({\n value: unit.id,\n label: unit.name,\n }));\n\n\n const handleOnChange = (newValue: string) => {\n editSlotEntryQuery.mutate(SlotEntry.clone(props.slotEntry, { weightUnitId: parseInt(newValue) }));\n };\n\n return <>\n <TextField\n fullWidth\n select\n label={t('unit')}\n variant=\"standard\"\n value={props.slotEntry.weightUnitId}\n disabled={editSlotEntryQuery.isPending}\n onChange={e => handleOnChange(e.target.value)}\n >\n {options!.map((option) => (\n <MenuItem key={option.value} value={option.value ?? ''}>\n {option.label}\n </MenuItem>\n ))}\n </TextField>\n </>;\n};\n\n\nfunction debounce(func: (...args: any[]) => void, wait: number) {\n let timeout: NodeJS.Timeout;\n return (...args: any[]) => {\n clearTimeout(timeout);\n timeout = setTimeout(() => func(...args), wait);\n };\n}\n\ntype BaseSlotEntryRoundingFieldProps = {\n initialValue: number | null;\n rounding: 'weight' | 'reps';\n routineId: number;\n};\n\ntype SlotEntryRoundingFieldProps =\n | (BaseSlotEntryRoundingFieldProps & { editProfile: true })\n | (BaseSlotEntryRoundingFieldProps & { editProfile: false; slotEntry: SlotEntry });\n\nexport const SlotEntryRoundingField = (props: SlotEntryRoundingFieldProps) => {\n const { t } = useTranslation();\n\n const editSlotEntryQuery = useEditSlotEntryQuery(props.routineId);\n const editProfileQuery = useEditProfileQuery();\n\n const [value, setValue] = useState<string | number | null>(props.initialValue === null ? '' : props.initialValue);\n\n const debouncedSave = useCallback(\n debounce((newValue: string) => {\n const parsedValue = isNaN(Number(newValue)) ? null : parseFloat(newValue);\n\n const data = props.rounding === 'weight'\n ? { weightRounding: parsedValue }\n : { repetitionRounding: parsedValue };\n\n if (props.editProfile) {\n editProfileQuery.mutate(data);\n } else {\n editSlotEntryQuery.mutate(SlotEntry.clone(props.slotEntry, data));\n }\n }, DEBOUNCE_ROUTINE_FORMS),\n []\n );\n\n const handleOnChange = (newValue: string) => {\n setValue(newValue);\n debouncedSave(newValue);\n };\n\n return (\n <TextField\n fullWidth\n label={props.rounding === 'weight' ? t('weight') : t('routines.reps')}\n variant=\"standard\"\n value={value}\n disabled={editSlotEntryQuery.isPending || editProfileQuery.isPending}\n onChange={e => handleOnChange(e.target.value)}\n />\n );\n};","import HelpOutlineIcon from \"@mui/icons-material/HelpOutline\";\nimport { Button, FormControlLabel, IconButton, Menu, MenuItem, Stack, Switch } from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport Tooltip from \"@mui/material/Tooltip\";\nimport { DatePicker, LocalizationProvider } from \"@mui/x-date-pickers\";\nimport { AdapterLuxon } from \"@mui/x-date-pickers/AdapterLuxon\";\nimport { WgerTextField } from \"components/Common/forms/WgerTextField\";\nimport { useProfileQuery } from \"components/User/queries/profile\";\nimport {\n DEFAULT_WORKOUT_DURATION,\n DESCRIPTION_MAX_LENGTH,\n MAX_WORKOUT_DURATION,\n MIN_WORKOUT_DURATION,\n NAME_MAX_LENGTH,\n NAME_MIN_LENGTH,\n Routine\n} from \"components/WorkoutRoutines/models/Routine\";\nimport { useAddRoutineQuery, useEditRoutineQuery } from \"components/WorkoutRoutines/queries/routines\";\nimport { SlotEntryRoundingField } from \"components/WorkoutRoutines/widgets/forms/SlotEntryForm\";\nimport { Form, Formik } from \"formik\";\nimport { DateTime } from \"luxon\";\nimport React, { useState } from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { useNavigate } from \"react-router-dom\";\nimport { makeLink, WgerLink } from \"utils/url\";\nimport * as yup from 'yup';\n\ninterface RoutineFormProps {\n routine?: Routine,\n isTemplate?: boolean,\n isPublicTemplate?: boolean,\n closeFn?: Function,\n}\n\nexport const RoutineForm = ({ routine, isTemplate = false, isPublicTemplate = false, closeFn }: RoutineFormProps) => {\n\n const [t, i18n] = useTranslation();\n const addRoutineQuery = useAddRoutineQuery();\n const editRoutineQuery = useEditRoutineQuery(routine?.id ?? -1);\n const navigate = useNavigate();\n\n /*\n * Note: Controlling the state of the dates manually, otherwise some undebuggable errors\n * about missing properties occur deep within formik.\n */\n const [startDate, setStartDate] = useState<DateTime>(routine ? DateTime.fromJSDate(routine.start) : DateTime.now());\n const [endDate, setEndDate] = useState<DateTime>(routine ? DateTime.fromJSDate(routine.end) : DateTime.now().plus({ weeks: DEFAULT_WORKOUT_DURATION }));\n\n const duration = endDate.diff(startDate, ['weeks', 'days']);\n const durationWeeks = Math.floor(duration.weeks);\n const durationDays = Math.floor(duration.days);\n\n const validationSchema = yup.object({\n name: yup\n .string()\n .required()\n .max(NAME_MAX_LENGTH, t('forms.maxLength', { chars: NAME_MAX_LENGTH }))\n .min(NAME_MIN_LENGTH, t('forms.minLength', { chars: NAME_MIN_LENGTH })),\n description: yup\n .string()\n .max(DESCRIPTION_MAX_LENGTH, t('forms.maxLength', { chars: DESCRIPTION_MAX_LENGTH })),\n start: yup\n .date()\n .required(),\n end: yup\n .date()\n .required()\n .min(\n yup.ref('start'),\n t('forms.endBeforeStart')\n )\n .test(\n 'hasMinimumDuration',\n t('routines.minLengthRoutine', { number: MIN_WORKOUT_DURATION }),\n function (value) {\n const startDate = this.parent.start;\n if (startDate && value) {\n const startDateTime = DateTime.fromJSDate(startDate);\n const endDateTime = DateTime.fromJSDate(value);\n\n return endDateTime.diff(startDateTime, 'weeks').weeks >= MIN_WORKOUT_DURATION;\n }\n return true;\n }\n )\n .test(\n 'hasMaximumDuration',\n t('routines.maxLengthRoutine', { number: MAX_WORKOUT_DURATION }),\n function (value) {\n const startDate = this.parent.start;\n if (startDate && value) {\n const startDateTime = DateTime.fromJSDate(startDate);\n const endDateTime = DateTime.fromJSDate(value);\n\n return endDateTime.diff(startDateTime, 'weeks').weeks <= MAX_WORKOUT_DURATION;\n }\n return true;\n }\n ),\n fitInWeek: yup.boolean()\n });\n\n\n return (\n (<Formik\n initialValues={{\n name: routine ? routine.name : '',\n description: routine ? routine.description : '',\n start: startDate,\n end: endDate,\n fitInWeek: routine ? routine.fitInWeek : true\n }}\n\n validationSchema={validationSchema}\n onSubmit={async (values) => {\n if (routine) {\n const newRoutine = Routine.clone(routine);\n newRoutine.fitInWeek = values.fitInWeek;\n newRoutine.name = values.name;\n newRoutine.description = values.description;\n newRoutine.start = values.start!.toJSDate();\n newRoutine.end = values.end!.toJSDate();\n editRoutineQuery.mutate(newRoutine);\n\n } else {\n const result = await addRoutineQuery.mutateAsync(new Routine({\n id: null,\n name: values.name,\n description: values.description,\n start: values.start!.toJSDate(),\n end: values.end?.toJSDate(),\n fitInWeek: values.fitInWeek,\n isTemplate: isTemplate,\n isPublic: isPublicTemplate\n }));\n\n navigate(makeLink(WgerLink.ROUTINE_EDIT, i18n.language, { id: result.id! }));\n\n if (closeFn) {\n closeFn();\n }\n }\n }}\n >\n {formik => (\n <Form>\n <Grid container spacing={2}>\n\n <Grid size={{ xs: 12 }}>\n <WgerTextField fieldName=\"name\" title={t('name')} />\n </Grid>\n <Grid size={12}>\n <WgerTextField\n fieldName=\"description\"\n title={t('description')}\n fieldProps={{ multiline: true, rows: 4 }}\n />\n </Grid>\n <Grid size={{ xs: 6 }}>\n <LocalizationProvider dateAdapter={AdapterLuxon} adapterLocale={i18n.language}>\n <DatePicker\n defaultValue={DateTime.now()}\n label={t('start')}\n value={startDate}\n onChange={(newValue) => {\n if (newValue) {\n formik.setFieldValue('start', newValue);\n setStartDate(newValue);\n }\n }}\n slotProps={{\n textField: {\n variant: \"standard\",\n fullWidth: true,\n error: formik.touched.start && Boolean(formik.errors.start),\n helperText: formik.touched.start && formik.errors.start ? String(formik.errors.start) : ''\n }\n }}\n />\n </LocalizationProvider>\n </Grid>\n <Grid size={{ xs: 5 }}>\n <LocalizationProvider dateAdapter={AdapterLuxon} adapterLocale={i18n.language}>\n <DatePicker\n defaultValue={DateTime.now()}\n label={t('end')}\n value={endDate}\n onChange={(newValue) => {\n if (newValue) {\n formik.setFieldValue('end', newValue);\n setEndDate(newValue);\n }\n }}\n slotProps={{\n textField: {\n variant: \"standard\",\n fullWidth: true,\n error: formik.touched.end && Boolean(formik.errors.end),\n helperText: formik.touched.end && formik.errors.end ? String(formik.errors.end) : ''\n }\n }}\n />\n </LocalizationProvider>\n </Grid>\n <Grid\n size={{ xs: 1 }}\n sx={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n textAlign: \"center\"\n }}\n >\n {durationDays === 0 ? t('durationWeeks', { number: durationWeeks }) : t('durationWeeksDays', {\n nrWeeks: durationWeeks,\n nrDays: durationDays\n })}\n </Grid>\n <Grid size={12}>\n <FormControlLabel\n control={\n <Switch checked={formik.values.fitInWeek} {...formik.getFieldProps('fitInWeek')} />\n }\n label={t('routines.fitDaysInWeek')} />\n <Tooltip title={t('routines.fitDaysInWeekHelpText')}>\n <IconButton size=\"small\">\n <HelpOutlineIcon fontSize=\"inherit\" />\n </IconButton>\n </Tooltip>\n </Grid>\n <Grid size={12}>\n <Button\n disabled={formik.isSubmitting}\n color=\"primary\"\n variant=\"contained\"\n type=\"submit\"\n sx={{ mt: 2 }}>\n {t('save')}\n </Button>\n </Grid>\n </Grid>\n </Form>\n )}\n </Formik>)\n );\n};\n\n\nexport const DefaultRoundingMenu = (props: { routineId: number }) => {\n const userProfileQuery = useProfileQuery();\n const { t } = useTranslation();\n\n const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);\n const open = Boolean(anchorEl);\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget);\n };\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n return (\n <Stack direction={\"row\"}>\n <Button\n variant=\"text\"\n id=\"basic-button\"\n aria-controls={open ? 'basic-menu' : undefined}\n aria-haspopup=\"true\"\n aria-expanded={open ? 'true' : undefined}\n onClick={handleClick}\n >\n {t('routines.defaultRounding')}\n </Button>\n <Menu\n id=\"basic-menu\"\n anchorEl={anchorEl}\n open={open}\n onClose={handleClose}\n MenuListProps={{\n 'aria-labelledby': 'basic-button',\n }}\n >\n\n <MenuItem>\n <SlotEntryRoundingField\n routineId={props.routineId}\n rounding=\"weight\"\n editProfile={true}\n initialValue={userProfileQuery.data!.weightRounding}\n />\n </MenuItem>\n <MenuItem>\n <SlotEntryRoundingField\n routineId={props.routineId}\n rounding=\"reps\"\n editProfile={true}\n initialValue={userProfileQuery.data!.repetitionsRounding}\n />\n </MenuItem>\n </Menu>\n <Tooltip title={t('routines.roundingHelp')}>\n <IconButton onClick={() => {\n }}>\n <HelpOutlineIcon fontSize=\"small\" />\n </IconButton>\n </Tooltip>\n </Stack>\n );\n};","import Grid from \"@mui/material/Grid\";\nimport { RoutineForm } from \"components/WorkoutRoutines/widgets/forms/RoutineForm\";\nimport React from \"react\";\n\nexport const RoutineAdd = () => {\n\n return <Grid container>\n <Grid size={6} offset={3}>\n <RoutineForm />\n </Grid>\n </Grid>;\n};","import { FormControlLabel, Stack, Switch, Typography } from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport { Routine } from \"components/WorkoutRoutines/models/Routine\";\nimport { useEditRoutineQuery } from \"components/WorkoutRoutines/queries/routines\";\nimport React, { useState } from 'react';\nimport { useTranslation } from \"react-i18next\";\n\n\nexport const RoutineTemplateForm = (props: { routine: Routine }) => {\n\n const { t } = useTranslation();\n const editRoutineQuery = useEditRoutineQuery(props.routine.id!);\n\n const [isTemplate, setIsTemplate] = useState<boolean>(props.routine.isTemplate);\n const [isPublic, setIsPublic] = useState<boolean>(props.routine.isPublic);\n\n const handleSetTemplate = (isTemplate: boolean) => {\n const newIsPublic = isTemplate && isPublic;\n setIsTemplate(isTemplate);\n setIsPublic(newIsPublic);\n\n handleSave(isTemplate, newIsPublic);\n };\n\n const handleSetPublic = (isPublic: boolean) => {\n const newIsPublic = isPublic && isTemplate;\n setIsPublic(newIsPublic);\n handleSave(isTemplate, newIsPublic);\n };\n\n const handleSave = (isTemplate: boolean, isPublic: boolean) => {\n\n const routine = Routine.clone(props.routine);\n routine.isTemplate = isTemplate;\n routine.isPublic = isPublic;\n\n editRoutineQuery.mutate(routine);\n };\n\n return (\n <Grid container spacing={2}>\n <Grid size={12}>\n <Stack>\n <FormControlLabel\n disabled={editRoutineQuery.isPending}\n control={<Switch checked={isTemplate} onChange={async () => handleSetTemplate(!isTemplate)} />}\n label={t('routines.template')}\n />\n <Typography variant=\"caption\">\n {t('routines.templatesHelpText')}\n </Typography>\n </Stack>\n </Grid>\n <Grid size={12}>\n <Stack>\n <FormControlLabel\n disabled={editRoutineQuery.isPending || !isTemplate}\n control={<Switch checked={isPublic} onChange={async () => handleSetPublic(!isPublic)} />}\n label={t('routines.publicTemplate')}\n />\n <Typography variant=\"caption\">\n {t('routines.publicTemplateHelpText')}\n </Typography>\n </Stack>\n </Grid>\n </Grid>\n );\n};\n","import MenuIcon from '@mui/icons-material/Menu';\nimport {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n Divider,\n Menu,\n MenuItem\n} from \"@mui/material\";\nimport { Routine } from \"components/WorkoutRoutines/models/Routine\";\nimport { useDeleteRoutineQuery } from \"components/WorkoutRoutines/queries\";\nimport { RoutineTemplateForm } from \"components/WorkoutRoutines/widgets/forms/RoutineTemplateForm\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Link, useNavigate } from \"react-router-dom\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\n\nexport enum DialogToOpen {\n NONE,\n DELETE_CONFIRMATION,\n EDIT_TEMPLATE\n}\n\nexport const RoutineDetailDropdown = (props: { routine: Routine }) => {\n\n const navigate = useNavigate();\n const useDeleteQuery = useDeleteRoutineQuery(props.routine.id!);\n\n const [t, i18n] = useTranslation();\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);\n const [deleteConfirmationOpen, setConfirmationOpen] = useState<DialogToOpen>(DialogToOpen.NONE);\n\n const open = Boolean(anchorEl);\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleDelete = () => {\n setConfirmationOpen(DialogToOpen.DELETE_CONFIRMATION);\n handleClose(); // Close the dropdown menu\n };\n\n const handleTemplate = () => {\n setConfirmationOpen(DialogToOpen.EDIT_TEMPLATE);\n handleClose();\n };\n\n const handleConfirmDelete = async () => {\n await useDeleteQuery.mutateAsync();\n navigate(makeLink(WgerLink.ROUTINE_OVERVIEW, i18n.language));\n };\n\n const handleCloseDialogs = () => {\n setConfirmationOpen(DialogToOpen.NONE);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n /*\n * Note: this is a workaround. Instead of just using the navigate function we need to\n * force a reload of the page, otherwise the drag-and-drop doesn't work properly\n * when loaded from within the django application. This has probably to do with\n * the way we add the components there. If we find a solution for that one day,\n * this can be removed.\n *\n * See also: https://github.com/wger-project/wger/issues/1943\n */\n const navigateEdit = () => window.location.href = makeLink(\n WgerLink.ROUTINE_EDIT,\n i18n.language,\n { id: props.routine.id! }\n );\n\n\n return (\n <div>\n <Button onClick={handleClick}>\n <MenuIcon />\n </Button>\n <Menu\n anchorEl={anchorEl}\n open={open}\n onClose={handleClose}\n >\n <MenuItem\n // disabled={props.routine.isTemplate}\n onClick={navigateEdit}>\n {t(\"edit\")}\n </MenuItem>\n <MenuItem\n component={Link}\n to={makeLink(WgerLink.ROUTINE_DETAIL_TABLE, i18n.language, { id: props.routine.id! })}>\n Table view\n </MenuItem>\n {props.routine.isNotTemplate && <MenuItem\n component={Link}\n to={makeLink(WgerLink.ROUTINE_LOGS_OVERVIEW, i18n.language, { id: props.routine.id! })}>\n {t(\"routines.logsOverview\")}\n </MenuItem>}\n {props.routine.isNotTemplate && <MenuItem\n component={Link}\n to={makeLink(WgerLink.ROUTINE_STATS_OVERVIEW, i18n.language, { id: props.routine.id! })}>\n {t(\"routines.statsOverview\")}\n </MenuItem>}\n <MenuItem\n component=\"a\"\n href={makeLink(WgerLink.ROUTINE_COPY, i18n.language, { id: props.routine.id! })}\n >\n {t(\"routines.duplicate\")}\n </MenuItem>\n <MenuItem onClick={handleTemplate}>\n {t(\"routines.markAsTemplate\")}\n </MenuItem>\n <MenuItem\n component=\"a\"\n href={makeLink(WgerLink.ROUTINE_PDF_TABLE, i18n.language, { id: props.routine.id! })}\n download={`Routine-${props.routine.id}-table.pdf`}>\n {t(\"routines.downloadPdfTable\")}\n </MenuItem>\n <MenuItem\n component=\"a\"\n href={makeLink(WgerLink.ROUTINE_PDF_LOGS, i18n.language, { id: props.routine.id! })}\n download={`Routine-${props.routine.id}-logs.pdf`}>\n {t(\"routines.downloadPdfLogs\")}\n </MenuItem>\n <MenuItem\n component=\"a\"\n href={makeLink(WgerLink.ROUTINE_ICAL, i18n.language, { id: props.routine.id! })}\n download={`Routine-${props.routine.id}-calendar.ics`}>\n {t(\"routines.downloadIcal\")}\n </MenuItem>\n <Divider />\n <MenuItem onClick={handleDelete}>{t(\"delete\")}</MenuItem>\n </Menu>\n\n <Dialog\n open={deleteConfirmationOpen === DialogToOpen.DELETE_CONFIRMATION}\n onClose={handleCloseDialogs}\n >\n <DialogTitle id=\"alert-dialog-title\">\n {t('delete')}\n </DialogTitle>\n <DialogContent>\n <DialogContentText id=\"alert-dialog-description\">\n {t('deleteConfirmation', { name: props.routine.name })}\n </DialogContentText>\n </DialogContent>\n <DialogActions>\n <Button onClick={handleCloseDialogs}>\n {t(\"cancel\")}\n </Button>\n <Button onClick={handleConfirmDelete} color=\"error\" autoFocus>\n {t(\"delete\")}\n </Button>\n </DialogActions>\n </Dialog>\n\n <Dialog\n open={deleteConfirmationOpen === DialogToOpen.EDIT_TEMPLATE}\n onClose={handleCloseDialogs}\n >\n <DialogTitle>\n {t(\"routines.markAsTemplate\")}\n </DialogTitle>\n <DialogContent>\n <DialogContentText>\n <RoutineTemplateForm routine={props.routine} />\n </DialogContentText>\n </DialogContent>\n <DialogActions>\n <Button onClick={handleCloseDialogs}>\n {t(\"close\")}\n </Button>\n </DialogActions>\n </Dialog>\n </div>\n );\n};\n","import { Box, Button, Chip, Stack, Typography } from \"@mui/material\";\nimport Grid from \"@mui/material/Grid\";\nimport { WgerContainerRightSidebar } from \"components/Core/Widgets/Container\";\nimport { RenderLoadingQuery } from \"components/Core/Widgets/RenderLoadingQuery\";\nimport { MuscleOverview } from \"components/Muscles/MuscleOverview\";\nimport { useRoutineDetailQuery } from \"components/WorkoutRoutines/queries\";\nimport { RoutineDetailDropdown } from \"components/WorkoutRoutines/widgets/RoutineDetailDropdown\";\nimport { DayDetailsCard } from \"components/WorkoutRoutines/widgets/RoutineDetailsCard\";\nimport i18n from \"i18n\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useParams } from \"react-router-dom\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\nexport const RoutineDetail = () => {\n const { t } = useTranslation();\n const params = useParams<{ routineId: string }>();\n const routineId = parseInt(params.routineId ?? '');\n if (Number.isNaN(routineId)) {\n return <p>Please pass an integer as the routine id.</p>;\n }\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const routineQuery = useRoutineDetailQuery(routineId);\n\n const routine = routineQuery.data;\n const subtitle = `${routine?.start.toLocaleDateString()} - ${routine?.end.toLocaleDateString()} (${routine?.durationText})`;\n const chip = routine?.isTemplate\n ? <Chip color=\"info\" size=\"small\" label={t('routines.template')} />\n : null;\n\n return <RenderLoadingQuery\n query={routineQuery}\n child={routineQuery.isSuccess\n && <WgerContainerRightSidebar\n title={<>{routine!.name} {chip}</>}\n subTitle={subtitle}\n optionsMenu={<RoutineDetailDropdown routine={routineQuery.data!} />}\n mainContent={\n <Stack spacing={2}>\n\n {routine!.description !== ''\n && <Typography variant={\"body2\"} sx={{ whiteSpace: 'pre-line' }}>\n {routine?.description}\n </Typography>\n }\n\n {routine!.isTemplate && <Button\n component=\"a\"\n href={makeLink(WgerLink.ROUTINE_COPY, i18n.language, { id: routineId })}\n variant={\"contained\"}\n >{t('routines.copyAndUseTemplate')}</Button>}\n\n {routine!.dayDataCurrentIteration.filter((dayData) => dayData.day !== null).map((dayData, index) =>\n // {routine!.dayDataCurrentIteration.map((dayData, index) =>\n <DayDetailsCard routineId={routineId} dayData={dayData} key={index}\n readOnly={routine!.isTemplate} />\n )}\n </Stack>\n }\n sideBar={\n <Stack>\n <Box height={40} />\n <Grid container>\n <Grid size={6}>\n <MuscleOverview\n primaryMuscles={routine!.mainMuscles.filter(m => m.isFront)}\n secondaryMuscles={routine!.secondaryMuscles.filter(m => m.isFront)}\n isFront={true}\n />\n </Grid>\n <Grid size={6}>\n <MuscleOverview\n primaryMuscles={routine!.mainMuscles.filter(m => !m.isFront)}\n secondaryMuscles={routine!.secondaryMuscles.filter(m => !m.isFront)}\n isFront={false}\n />\n </Grid>\n </Grid>\n </Stack>\n }\n />}\n />;\n};","import FlagCircleIcon from '@mui/icons-material/FlagCircle';\nimport NorthEastIcon from \"@mui/icons-material/NorthEast\";\nimport SouthEastIcon from \"@mui/icons-material/SouthEast\";\nimport {\n Container,\n FormControlLabel,\n Stack,\n Switch,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n Typography,\n useTheme\n} from \"@mui/material\";\nimport { styled } from '@mui/material/styles';\nimport { WgerContainerFullWidth } from \"components/Core/Widgets/Container\";\nimport { RenderLoadingQuery } from \"components/Core/Widgets/RenderLoadingQuery\";\nimport { Language } from \"components/Exercises/models/language\";\nimport { useLanguageQuery } from \"components/Exercises/queries\";\nimport { Day } from \"components/WorkoutRoutines/models/Day\";\nimport { Routine } from \"components/WorkoutRoutines/models/Routine\";\nimport { RoutineLogData } from \"components/WorkoutRoutines/models/RoutineLogData\";\nimport { SetConfigData } from \"components/WorkoutRoutines/models/SetConfigData\";\nimport { SlotEntry } from \"components/WorkoutRoutines/models/SlotEntry\";\nimport { WorkoutLog } from \"components/WorkoutRoutines/models/WorkoutLog\";\nimport { useRoutineDetailQuery, useRoutineLogData } from \"components/WorkoutRoutines/queries\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useParams } from \"react-router-dom\";\nimport { getLanguageByShortName } from \"services\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\n\nconst PREFIX = 'RoutineDetailsTable';\n\nconst classes = {\n stickyColumn: `${PREFIX}-stickyColumn`,\n stickyHeader: `${PREFIX}-stickyHeader`,\n whiteBg: `${PREFIX}-whiteBg`\n};\n\nconst StyledContainer = styled(Container)({\n [`& .${classes.stickyColumn}`]: {\n position: 'sticky',\n left: 0,\n // background: 'white',\n zIndex: 1,\n },\n [`& .${classes.stickyHeader}`]: {\n position: 'sticky',\n top: 0,\n zIndex: 2,\n background: 'white',\n },\n\n [`& .${classes.whiteBg}`]: {\n backgroundColor: 'white',\n }\n});\n\n\nexport const RoutineDetailsTable = () => {\n const { t, i18n } = useTranslation();\n const params = useParams<{ routineId: string }>();\n const routineId = params.routineId ? parseInt(params.routineId) : 0;\n const routineQuery = useRoutineDetailQuery(routineId);\n const routineLogDataQuery = useRoutineLogData(routineId);\n const [showLogs, setShowLogs] = React.useState(false);\n\n return <RenderLoadingQuery\n query={routineQuery}\n child={routineQuery.isSuccess\n && <WgerContainerFullWidth\n title={routineQuery.data!.name}\n backToUrl={makeLink(WgerLink.ROUTINE_DETAIL, i18n.language, { id: routineId })}\n maxWidth={false}\n >\n <Stack>\n <FormControlLabel\n control={<Switch checked={showLogs}\n onChange={(event, checked) => setShowLogs(checked)} />}\n label={t('routines.alsoShowLogs')} />\n <RoutineTable\n routine={routineQuery.data!}\n showLogs={showLogs}\n logData={routineLogDataQuery.data!}\n />\n </Stack>\n </WgerContainerFullWidth>\n } />;\n};\n\n\nexport function compareValue(value: number | null | undefined, from: number | null | undefined, to: number | null | undefined): 'lower' | 'higher' | 'match' | null {\n if (value === null || value === undefined) {\n return null;\n }\n\n if (from !== null && from !== undefined && to !== null && to !== undefined) {\n if (value < from) {\n return 'lower';\n } else if (value > to) {\n return 'higher';\n } else {\n return 'match';\n }\n } else if (from !== null && from !== undefined) {\n if (value < from) {\n return 'lower';\n } else if (value > from) {\n return 'higher';\n } else {\n return 'match';\n }\n }\n\n return null;\n}\n\nexport const RoutineTable = (props: {\n routine: Routine,\n showLogs?: boolean,\n logData?: RoutineLogData[]\n}) => {\n const { t, i18n } = useTranslation();\n const theme = useTheme();\n\n const languageQuery = useLanguageQuery();\n const showLogs = props.showLogs ?? false;\n const routineLogData = props.logData ?? [];\n\n let language: Language | undefined = undefined;\n if (languageQuery.isSuccess) {\n language = getLanguageByShortName(\n i18n.language,\n languageQuery.data!\n );\n }\n\n const groupedLogs: { [key: number]: WorkoutLog[] } = {};\n for (const logData of routineLogData) {\n for (const log of logData.logs) {\n if (log.iteration === null) {\n continue;\n }\n\n if (!groupedLogs[log.iteration]) {\n groupedLogs[log.iteration] = [];\n }\n groupedLogs[log.iteration].push(log);\n }\n }\n\n const iterations = Object.keys(props.routine.groupedDayDataByIteration).map((iteration) => parseInt(iteration));\n\n function getTableRowHeader() {\n return <TableRow>\n {iterations.map((iteration) => {\n\n const out = iteration === 1\n ? <TableCell className={classes.stickyColumn}></TableCell>\n : null;\n\n return <React.Fragment key={`header-${iteration}`}>\n {out}\n <TableCell align={'center'}>{t('routines.sets')}</TableCell>\n <TableCell align={'center'} sx={{ minWidth: 40 }}>{t('routines.reps')}</TableCell>\n <TableCell align={'center'} sx={{ minWidth: 40 }}>{t('weight')}</TableCell>\n <TableCell align={'center'} sx={{ minWidth: 60 }}>{t('routines.restTime')}</TableCell>\n <TableCell align={'center'} sx={{ minWidth: 40 }}>{t('routines.rir')}</TableCell>\n </React.Fragment>;\n })}\n </TableRow>;\n }\n\n function getTableRowWeekTitle() {\n return <TableRow>\n {iterations.map((iteration) => {\n const placeholder = iteration === 1\n ? <TableCell className={classes.stickyColumn}></TableCell>\n : null;\n\n return <React.Fragment key={`header-iteration-${iteration}`}>\n {placeholder}\n <TableCell colSpan={5}>\n <Typography variant={'h6'}>\n {t('routines.weekNr', { number: iteration })}\n </Typography>\n </TableCell>\n </React.Fragment>;\n })}\n </TableRow>;\n }\n\n function getTableRowPlanned(slotEntry: SlotEntry, day: Day) {\n const sx = { borderBottomWidth: showLogs ? 0 : null, minWidth: 40 };\n\n function formatContent(setConfig: SetConfigData | null, value: number | undefined | null, maxValue: number | undefined | null) {\n return <>\n {setConfig === null || value === null ? '-/-' : value}\n {setConfig !== null && maxValue !== null && <> - {maxValue}</>}\n </>;\n }\n\n return <TableRow>\n <TableCell className={classes.stickyColumn} sx={{\n minWidth: 150,\n backgroundColor: \"white\",\n borderBottomWidth: showLogs ? 0 : null\n }}>{slotEntry.exercise?.getTranslation(language).name}</TableCell>\n {iterations.map((iteration) => {\n const setConfig = props.routine.getSetConfigData(day.id, iteration, slotEntry.id);\n\n return <React.Fragment key={iteration}>\n <TableCell align={'center'} sx={sx}>\n {formatContent(setConfig, setConfig?.nrOfSets, setConfig?.maxNrOfSets)}\n </TableCell>\n <TableCell align={'center'} sx={sx}>\n {formatContent(setConfig, setConfig?.repetitions, setConfig?.maxRepetitions)}\n </TableCell>\n <TableCell align={'center'} sx={sx}>\n {formatContent(setConfig, setConfig?.weight, setConfig?.maxWeight)}\n </TableCell>\n <TableCell align={'center'} sx={sx}>\n {formatContent(setConfig, setConfig?.restTime, setConfig?.maxRestTime)}\n </TableCell>\n <TableCell align={'center'} sx={sx}>\n {formatContent(setConfig, setConfig?.rir, setConfig?.maxRir)}\n </TableCell>\n </React.Fragment>;\n })}\n </TableRow>;\n }\n\n function getComparisonIcon(loggedValue: number | null, plannedValue: number | null | undefined, maxPlannedValue: number | null | undefined, higherIsBetter?: boolean) {\n\n const comparison = compareValue(loggedValue, plannedValue, maxPlannedValue);\n if (loggedValue === 105) {\n console.log(loggedValue, plannedValue, maxPlannedValue, higherIsBetter, comparison);\n }\n\n const fontSize = 17;\n\n // Switch the comparison color since e.g. for RiR lower is better\n higherIsBetter = higherIsBetter ?? true;\n\n if (comparison === null) {\n return null;\n }\n\n\n if (comparison === 'lower') {\n return <SouthEastIcon sx={{ fontSize: fontSize }} color={higherIsBetter ? \"error\" : \"success\"} />;\n }\n if (comparison === 'higher') {\n return <NorthEastIcon sx={{ fontSize: fontSize }} color={higherIsBetter ? \"success\" : \"error\"} />;\n }\n return <FlagCircleIcon sx={{ fontSize: fontSize }} color={\"success\"} />;\n\n }\n\n function getTableRowLogged(slotEntry: SlotEntry, day: Day) {\n return <TableRow>\n <TableCell sx={{ verticalAlign: \"top\", backgroundColor: \"white\" }} className={classes.stickyColumn}>\n <small>{t('nutrition.logged')}</small>\n </TableCell>\n {iterations.map((iteration) => {\n const setConfig = props.routine.getSetConfigData(day.id, iteration, slotEntry.id);\n const iterationLogs = groupedLogs[iteration] ?? [];\n\n const logs = iterationLogs.filter((log) => log.slotEntryId === slotEntry.id);\n\n return <React.Fragment key={iteration}>\n <TableCell align={'center'} sx={{ verticalAlign: \"top\" }}>\n </TableCell>\n <TableCell align={'center'} sx={{ verticalAlign: \"top\" }}>\n {logs.map((log, index) =>\n <Stack key={index}>\n <span>\n {log.repetitions ?? '-/-'}\n {getComparisonIcon(log.repetitions, setConfig?.repetitions, setConfig?.maxRepetitions)}\n </span>\n </Stack>\n )}\n </TableCell>\n <TableCell align={'center'} sx={{ verticalAlign: \"top\" }}>\n {logs.map((log, index) =>\n <Stack key={index}>\n <span>\n {log.weight ?? '-/-'}\n {getComparisonIcon(log.weight, setConfig?.weight, setConfig?.maxWeight)}\n </span>\n </Stack>\n )}\n </TableCell>\n <TableCell align={'center'} sx={{ verticalAlign: \"top\" }}>\n {logs.map((log, index) =>\n <Stack key={index}>\n <span>\n {log.restTime ?? '-/-'}\n {getComparisonIcon(log.restTime, setConfig?.restTime, setConfig?.maxRestTime)}\n </span>\n </Stack>\n )}\n </TableCell>\n <TableCell align={'center'} sx={{ verticalAlign: \"top\" }}>\n {logs.map((log, index) =>\n <Stack key={index}>\n <span>\n {log.rir ?? '-/-'}\n {getComparisonIcon(log.rir, setConfig?.rir, setConfig?.maxRir, false)}\n </span>\n </Stack>\n )}\n </TableCell>\n </React.Fragment>;\n })}\n </TableRow>;\n }\n\n function getTableContent() {\n return <>\n {props.routine.days.map((day) => {\n return <React.Fragment key={day.id}>\n <TableRow>\n <TableCell\n sx={{ backgroundColor: theme.palette.action.hover }}\n className={classes.stickyColumn}\n >\n <b>{day.getDisplayName()}</b>\n </TableCell>\n <TableCell sx={{ backgroundColor: theme.palette.action.hover }} colSpan={5 * iterations.length}>\n </TableCell>\n </TableRow>\n\n {day.slots.map((slot, slotIndex) => {\n return <React.Fragment key={slotIndex}>\n {slot.entries.map((slotEntry, configIndex) => {\n return <React.Fragment key={configIndex}>\n {getTableRowPlanned(slotEntry, day)}\n {showLogs && getTableRowLogged(slotEntry, day)}\n </React.Fragment>;\n })}\n </React.Fragment>;\n })}\n </React.Fragment>;\n })}\n </>;\n }\n\n\n return (\n <StyledContainer maxWidth={false} sx={{ overflowX: 'scroll', display: 'flex', height: \"80vh\" }}>\n <TableContainer>\n <Table size=\"small\">\n <TableHead className={classes.stickyHeader}>\n {getTableRowWeekTitle()}\n {getTableRowHeader()}\n </TableHead>\n <TableBody>\n {getTableContent()}\n </TableBody>\n </Table>\n </TableContainer>\n </StyledContainer>\n );\n};\n\n","import invariant from 'tiny-invariant';\n\nvar getRect = function getRect(_ref) {\n var top = _ref.top,\n right = _ref.right,\n bottom = _ref.bottom,\n left = _ref.left;\n var width = right - left;\n var height = bottom - top;\n var rect = {\n top: top,\n right: right,\n bottom: bottom,\n left: left,\n width: width,\n height: height,\n x: left,\n y: top,\n center: {\n x: (right + left) / 2,\n y: (bottom + top) / 2\n }\n };\n return rect;\n};\nvar expand = function expand(target, expandBy) {\n return {\n top: target.top - expandBy.top,\n left: target.left - expandBy.left,\n bottom: target.bottom + expandBy.bottom,\n right: target.right + expandBy.right\n };\n};\nvar shrink = function shrink(target, shrinkBy) {\n return {\n top: target.top + shrinkBy.top,\n left: target.left + shrinkBy.left,\n bottom: target.bottom - shrinkBy.bottom,\n right: target.right - shrinkBy.right\n };\n};\n\nvar shift = function shift(target, shiftBy) {\n return {\n top: target.top + shiftBy.y,\n left: target.left + shiftBy.x,\n bottom: target.bottom + shiftBy.y,\n right: target.right + shiftBy.x\n };\n};\n\nvar noSpacing = {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n};\nvar createBox = function createBox(_ref2) {\n var borderBox = _ref2.borderBox,\n _ref2$margin = _ref2.margin,\n margin = _ref2$margin === void 0 ? noSpacing : _ref2$margin,\n _ref2$border = _ref2.border,\n border = _ref2$border === void 0 ? noSpacing : _ref2$border,\n _ref2$padding = _ref2.padding,\n padding = _ref2$padding === void 0 ? noSpacing : _ref2$padding;\n var marginBox = getRect(expand(borderBox, margin));\n var paddingBox = getRect(shrink(borderBox, border));\n var contentBox = getRect(shrink(paddingBox, padding));\n return {\n marginBox: marginBox,\n borderBox: getRect(borderBox),\n paddingBox: paddingBox,\n contentBox: contentBox,\n margin: margin,\n border: border,\n padding: padding\n };\n};\n\nvar parse = function parse(raw) {\n var value = raw.slice(0, -2);\n var suffix = raw.slice(-2);\n\n if (suffix !== 'px') {\n return 0;\n }\n\n var result = Number(value);\n !!isNaN(result) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"Could not parse value [raw: \" + raw + \", without suffix: \" + value + \"]\") : invariant(false) : void 0;\n return result;\n};\n\nvar getWindowScroll = function getWindowScroll() {\n return {\n x: window.pageXOffset,\n y: window.pageYOffset\n };\n};\n\nvar offset = function offset(original, change) {\n var borderBox = original.borderBox,\n border = original.border,\n margin = original.margin,\n padding = original.padding;\n var shifted = shift(borderBox, change);\n return createBox({\n borderBox: shifted,\n border: border,\n margin: margin,\n padding: padding\n });\n};\nvar withScroll = function withScroll(original, scroll) {\n if (scroll === void 0) {\n scroll = getWindowScroll();\n }\n\n return offset(original, scroll);\n};\nvar calculateBox = function calculateBox(borderBox, styles) {\n var margin = {\n top: parse(styles.marginTop),\n right: parse(styles.marginRight),\n bottom: parse(styles.marginBottom),\n left: parse(styles.marginLeft)\n };\n var padding = {\n top: parse(styles.paddingTop),\n right: parse(styles.paddingRight),\n bottom: parse(styles.paddingBottom),\n left: parse(styles.paddingLeft)\n };\n var border = {\n top: parse(styles.borderTopWidth),\n right: parse(styles.borderRightWidth),\n bottom: parse(styles.borderBottomWidth),\n left: parse(styles.borderLeftWidth)\n };\n return createBox({\n borderBox: borderBox,\n margin: margin,\n padding: padding,\n border: border\n });\n};\nvar getBox = function getBox(el) {\n var borderBox = el.getBoundingClientRect();\n var styles = window.getComputedStyle(el);\n return calculateBox(borderBox, styles);\n};\n\nexport { calculateBox, createBox, expand, getBox, getRect, offset, shrink, withScroll };\n","var rafSchd = function rafSchd(fn) {\n var lastArgs = [];\n var frameId = null;\n\n var wrapperFn = function wrapperFn() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n lastArgs = args;\n\n if (frameId) {\n return;\n }\n\n frameId = requestAnimationFrame(function () {\n frameId = null;\n fn.apply(void 0, lastArgs);\n });\n };\n\n wrapperFn.cancel = function () {\n if (!frameId) {\n return;\n }\n\n cancelAnimationFrame(frameId);\n frameId = null;\n };\n\n return wrapperFn;\n};\n\nexport default rafSchd;\n","import React, { useState, useRef, useEffect, useLayoutEffect, useContext } from 'react';\nimport ReactDOM, { flushSync } from 'react-dom';\nimport { createStore as createStore$1, compose, applyMiddleware, bindActionCreators } from 'redux';\nimport { Provider, connect } from 'react-redux';\nimport { getRect, expand, offset, withScroll, calculateBox, getBox, createBox } from 'css-box-model';\nimport rafSchd from 'raf-schd';\nimport _extends from '@babel/runtime/helpers/esm/extends';\n\nconst isProduction$1 = process.env.NODE_ENV === 'production';\nconst spacesAndTabs = /[ \\t]{2,}/g;\nconst lineStartWithSpaces = /^[ \\t]*/gm;\nconst clean$2 = value => value.replace(spacesAndTabs, ' ').replace(lineStartWithSpaces, '').trim();\nconst getDevMessage = message => clean$2(`\n %c@hello-pangea/dnd\n\n %c${clean$2(message)}\n\n %c👷‍ This is a development only message. It will be removed in production builds.\n`);\nconst getFormattedMessage = message => [getDevMessage(message), 'color: #00C584; font-size: 1.2em; font-weight: bold;', 'line-height: 1.5', 'color: #723874;'];\nconst isDisabledFlag = '__@hello-pangea/dnd-disable-dev-warnings';\nfunction log(type, message) {\n if (isProduction$1) {\n return;\n }\n if (typeof window !== 'undefined' && window[isDisabledFlag]) {\n return;\n }\n console[type](...getFormattedMessage(message));\n}\nconst warning = log.bind(null, 'warn');\nconst error = log.bind(null, 'error');\n\nfunction noop$2() {}\n\nfunction getOptions(shared, fromBinding) {\n return {\n ...shared,\n ...fromBinding\n };\n}\nfunction bindEvents(el, bindings, sharedOptions) {\n const unbindings = bindings.map(binding => {\n const options = getOptions(sharedOptions, binding.options);\n el.addEventListener(binding.eventName, binding.fn, options);\n return function unbind() {\n el.removeEventListener(binding.eventName, binding.fn, options);\n };\n });\n return function unbindAll() {\n unbindings.forEach(unbind => {\n unbind();\n });\n };\n}\n\nconst isProduction = process.env.NODE_ENV === 'production';\nconst prefix$1 = 'Invariant failed';\nclass RbdInvariant extends Error {}\nRbdInvariant.prototype.toString = function toString() {\n return this.message;\n};\nfunction invariant(condition, message) {\n if (isProduction) {\n throw new RbdInvariant(prefix$1);\n } else {\n throw new RbdInvariant(`${prefix$1}: ${message || ''}`);\n }\n}\n\nclass ErrorBoundary extends React.Component {\n constructor(...args) {\n super(...args);\n this.callbacks = null;\n this.unbind = noop$2;\n this.onWindowError = event => {\n const callbacks = this.getCallbacks();\n if (callbacks.isDragging()) {\n callbacks.tryAbort();\n process.env.NODE_ENV !== \"production\" ? warning(`\n An error was caught by our window 'error' event listener while a drag was occurring.\n The active drag has been aborted.\n `) : void 0;\n }\n const err = event.error;\n if (err instanceof RbdInvariant) {\n event.preventDefault();\n if (process.env.NODE_ENV !== 'production') {\n error(err.message);\n }\n }\n };\n this.getCallbacks = () => {\n if (!this.callbacks) {\n throw new Error('Unable to find AppCallbacks in <ErrorBoundary/>');\n }\n return this.callbacks;\n };\n this.setCallbacks = callbacks => {\n this.callbacks = callbacks;\n };\n }\n componentDidMount() {\n this.unbind = bindEvents(window, [{\n eventName: 'error',\n fn: this.onWindowError\n }]);\n }\n componentDidCatch(err) {\n if (err instanceof RbdInvariant) {\n if (process.env.NODE_ENV !== 'production') {\n error(err.message);\n }\n this.setState({});\n return;\n }\n throw err;\n }\n componentWillUnmount() {\n this.unbind();\n }\n render() {\n return this.props.children(this.setCallbacks);\n }\n}\n\nconst dragHandleUsageInstructions = `\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n`;\nconst position = index => index + 1;\nconst onDragStart = start => `\n You have lifted an item in position ${position(start.source.index)}\n`;\nconst withLocation = (source, destination) => {\n const isInHomeList = source.droppableId === destination.droppableId;\n const startPosition = position(source.index);\n const endPosition = position(destination.index);\n if (isInHomeList) {\n return `\n You have moved the item from position ${startPosition}\n to position ${endPosition}\n `;\n }\n return `\n You have moved the item from position ${startPosition}\n in list ${source.droppableId}\n to list ${destination.droppableId}\n in position ${endPosition}\n `;\n};\nconst withCombine = (id, source, combine) => {\n const inHomeList = source.droppableId === combine.droppableId;\n if (inHomeList) {\n return `\n The item ${id}\n has been combined with ${combine.draggableId}`;\n }\n return `\n The item ${id}\n in list ${source.droppableId}\n has been combined with ${combine.draggableId}\n in list ${combine.droppableId}\n `;\n};\nconst onDragUpdate = update => {\n const location = update.destination;\n if (location) {\n return withLocation(update.source, location);\n }\n const combine = update.combine;\n if (combine) {\n return withCombine(update.draggableId, update.source, combine);\n }\n return 'You are over an area that cannot be dropped on';\n};\nconst returnedToStart = source => `\n The item has returned to its starting position\n of ${position(source.index)}\n`;\nconst onDragEnd = result => {\n if (result.reason === 'CANCEL') {\n return `\n Movement cancelled.\n ${returnedToStart(result.source)}\n `;\n }\n const location = result.destination;\n const combine = result.combine;\n if (location) {\n return `\n You have dropped the item.\n ${withLocation(result.source, location)}\n `;\n }\n if (combine) {\n return `\n You have dropped the item.\n ${withCombine(result.draggableId, result.source, combine)}\n `;\n }\n return `\n The item has been dropped while not over a drop area.\n ${returnedToStart(result.source)}\n `;\n};\nconst preset = {\n dragHandleUsageInstructions,\n onDragStart,\n onDragUpdate,\n onDragEnd\n};\n\nfunction isEqual$2(first, second) {\n if (first === second) {\n return true;\n }\n if (Number.isNaN(first) && Number.isNaN(second)) {\n return true;\n }\n return false;\n}\nfunction areInputsEqual(newInputs, lastInputs) {\n if (newInputs.length !== lastInputs.length) {\n return false;\n }\n for (let i = 0; i < newInputs.length; i++) {\n if (!isEqual$2(newInputs[i], lastInputs[i])) {\n return false;\n }\n }\n return true;\n}\n\nfunction useMemo(getResult, inputs) {\n const initial = useState(() => ({\n inputs,\n result: getResult()\n }))[0];\n const isFirstRun = useRef(true);\n const committed = useRef(initial);\n const useCache = isFirstRun.current || Boolean(inputs && committed.current.inputs && areInputsEqual(inputs, committed.current.inputs));\n const cache = useCache ? committed.current : {\n inputs,\n result: getResult()\n };\n useEffect(() => {\n isFirstRun.current = false;\n committed.current = cache;\n }, [cache]);\n return cache.result;\n}\nfunction useCallback(callback, inputs) {\n return useMemo(() => callback, inputs);\n}\n\nconst origin = {\n x: 0,\n y: 0\n};\nconst add = (point1, point2) => ({\n x: point1.x + point2.x,\n y: point1.y + point2.y\n});\nconst subtract = (point1, point2) => ({\n x: point1.x - point2.x,\n y: point1.y - point2.y\n});\nconst isEqual$1 = (point1, point2) => point1.x === point2.x && point1.y === point2.y;\nconst negate = point => ({\n x: point.x !== 0 ? -point.x : 0,\n y: point.y !== 0 ? -point.y : 0\n});\nconst patch = (line, value, otherValue = 0) => {\n if (line === 'x') {\n return {\n x: value,\n y: otherValue\n };\n }\n return {\n x: otherValue,\n y: value\n };\n};\nconst distance = (point1, point2) => Math.sqrt((point2.x - point1.x) ** 2 + (point2.y - point1.y) ** 2);\nconst closest$1 = (target, points) => Math.min(...points.map(point => distance(target, point)));\nconst apply = fn => point => ({\n x: fn(point.x),\n y: fn(point.y)\n});\n\nvar executeClip = (frame, subject) => {\n const result = getRect({\n top: Math.max(subject.top, frame.top),\n right: Math.min(subject.right, frame.right),\n bottom: Math.min(subject.bottom, frame.bottom),\n left: Math.max(subject.left, frame.left)\n });\n if (result.width <= 0 || result.height <= 0) {\n return null;\n }\n return result;\n};\n\nconst offsetByPosition = (spacing, point) => ({\n top: spacing.top + point.y,\n left: spacing.left + point.x,\n bottom: spacing.bottom + point.y,\n right: spacing.right + point.x\n});\nconst getCorners = spacing => [{\n x: spacing.left,\n y: spacing.top\n}, {\n x: spacing.right,\n y: spacing.top\n}, {\n x: spacing.left,\n y: spacing.bottom\n}, {\n x: spacing.right,\n y: spacing.bottom\n}];\nconst noSpacing = {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n};\n\nconst scroll$1 = (target, frame) => {\n if (!frame) {\n return target;\n }\n return offsetByPosition(target, frame.scroll.diff.displacement);\n};\nconst increase = (target, axis, withPlaceholder) => {\n if (withPlaceholder && withPlaceholder.increasedBy) {\n return {\n ...target,\n [axis.end]: target[axis.end] + withPlaceholder.increasedBy[axis.line]\n };\n }\n return target;\n};\nconst clip = (target, frame) => {\n if (frame && frame.shouldClipSubject) {\n return executeClip(frame.pageMarginBox, target);\n }\n return getRect(target);\n};\nvar getSubject = ({\n page,\n withPlaceholder,\n axis,\n frame\n}) => {\n const scrolled = scroll$1(page.marginBox, frame);\n const increased = increase(scrolled, axis, withPlaceholder);\n const clipped = clip(increased, frame);\n return {\n page,\n withPlaceholder,\n active: clipped\n };\n};\n\nvar scrollDroppable = (droppable, newScroll) => {\n !droppable.frame ? process.env.NODE_ENV !== \"production\" ? invariant() : invariant() : void 0;\n const scrollable = droppable.frame;\n const scrollDiff = subtract(newScroll, scrollable.scroll.initial);\n const scrollDisplacement = negate(scrollDiff);\n const frame = {\n ...scrollable,\n scroll: {\n initial: scrollable.scroll.initial,\n current: newScroll,\n diff: {\n value: scrollDiff,\n displacement: scrollDisplacement\n },\n max: scrollable.scroll.max\n }\n };\n const subject = getSubject({\n page: droppable.subject.page,\n withPlaceholder: droppable.subject.withPlaceholder,\n axis: droppable.axis,\n frame\n });\n const result = {\n ...droppable,\n frame,\n subject\n };\n return result;\n};\n\nfunction memoizeOne(resultFn, isEqual = areInputsEqual) {\n let cache = null;\n function memoized(...newArgs) {\n if (cache && cache.lastThis === this && isEqual(newArgs, cache.lastArgs)) {\n return cache.lastResult;\n }\n const lastResult = resultFn.apply(this, newArgs);\n cache = {\n lastResult,\n lastArgs: newArgs,\n lastThis: this\n };\n return lastResult;\n }\n memoized.clear = function clear() {\n cache = null;\n };\n return memoized;\n}\n\nconst toDroppableMap = memoizeOne(droppables => droppables.reduce((previous, current) => {\n previous[current.descriptor.id] = current;\n return previous;\n}, {}));\nconst toDraggableMap = memoizeOne(draggables => draggables.reduce((previous, current) => {\n previous[current.descriptor.id] = current;\n return previous;\n}, {}));\nconst toDroppableList = memoizeOne(droppables => Object.values(droppables));\nconst toDraggableList = memoizeOne(draggables => Object.values(draggables));\n\nvar getDraggablesInsideDroppable = memoizeOne((droppableId, draggables) => {\n const result = toDraggableList(draggables).filter(draggable => droppableId === draggable.descriptor.droppableId).sort((a, b) => a.descriptor.index - b.descriptor.index);\n return result;\n});\n\nfunction tryGetDestination(impact) {\n if (impact.at && impact.at.type === 'REORDER') {\n return impact.at.destination;\n }\n return null;\n}\nfunction tryGetCombine(impact) {\n if (impact.at && impact.at.type === 'COMBINE') {\n return impact.at.combine;\n }\n return null;\n}\n\nvar removeDraggableFromList = memoizeOne((remove, list) => list.filter(item => item.descriptor.id !== remove.descriptor.id));\n\nvar moveToNextCombine = ({\n isMovingForward,\n draggable,\n destination,\n insideDestination,\n previousImpact\n}) => {\n if (!destination.isCombineEnabled) {\n return null;\n }\n const location = tryGetDestination(previousImpact);\n if (!location) {\n return null;\n }\n function getImpact(target) {\n const at = {\n type: 'COMBINE',\n combine: {\n draggableId: target,\n droppableId: destination.descriptor.id\n }\n };\n return {\n ...previousImpact,\n at\n };\n }\n const all = previousImpact.displaced.all;\n const closestId = all.length ? all[0] : null;\n if (isMovingForward) {\n return closestId ? getImpact(closestId) : null;\n }\n const withoutDraggable = removeDraggableFromList(draggable, insideDestination);\n if (!closestId) {\n if (!withoutDraggable.length) {\n return null;\n }\n const last = withoutDraggable[withoutDraggable.length - 1];\n return getImpact(last.descriptor.id);\n }\n const indexOfClosest = withoutDraggable.findIndex(d => d.descriptor.id === closestId);\n !(indexOfClosest !== -1) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Could not find displaced item in set') : invariant() : void 0;\n const proposedIndex = indexOfClosest - 1;\n if (proposedIndex < 0) {\n return null;\n }\n const before = withoutDraggable[proposedIndex];\n return getImpact(before.descriptor.id);\n};\n\nvar isHomeOf = (draggable, destination) => draggable.descriptor.droppableId === destination.descriptor.id;\n\nconst noDisplacedBy = {\n point: origin,\n value: 0\n};\nconst emptyGroups = {\n invisible: {},\n visible: {},\n all: []\n};\nconst noImpact = {\n displaced: emptyGroups,\n displacedBy: noDisplacedBy,\n at: null\n};\n\nvar isWithin = (lowerBound, upperBound) => value => lowerBound <= value && value <= upperBound;\n\nvar isPartiallyVisibleThroughFrame = frame => {\n const isWithinVertical = isWithin(frame.top, frame.bottom);\n const isWithinHorizontal = isWithin(frame.left, frame.right);\n return subject => {\n const isContained = isWithinVertical(subject.top) && isWithinVertical(subject.bottom) && isWithinHorizontal(subject.left) && isWithinHorizontal(subject.right);\n if (isContained) {\n return true;\n }\n const isPartiallyVisibleVertically = isWithinVertical(subject.top) || isWithinVertical(subject.bottom);\n const isPartiallyVisibleHorizontally = isWithinHorizontal(subject.left) || isWithinHorizontal(subject.right);\n const isPartiallyContained = isPartiallyVisibleVertically && isPartiallyVisibleHorizontally;\n if (isPartiallyContained) {\n return true;\n }\n const isBiggerVertically = subject.top < frame.top && subject.bottom > frame.bottom;\n const isBiggerHorizontally = subject.left < frame.left && subject.right > frame.right;\n const isTargetBiggerThanFrame = isBiggerVertically && isBiggerHorizontally;\n if (isTargetBiggerThanFrame) {\n return true;\n }\n const isTargetBiggerOnOneAxis = isBiggerVertically && isPartiallyVisibleHorizontally || isBiggerHorizontally && isPartiallyVisibleVertically;\n return isTargetBiggerOnOneAxis;\n };\n};\n\nvar isTotallyVisibleThroughFrame = frame => {\n const isWithinVertical = isWithin(frame.top, frame.bottom);\n const isWithinHorizontal = isWithin(frame.left, frame.right);\n return subject => {\n const isContained = isWithinVertical(subject.top) && isWithinVertical(subject.bottom) && isWithinHorizontal(subject.left) && isWithinHorizontal(subject.right);\n return isContained;\n };\n};\n\nconst vertical = {\n direction: 'vertical',\n line: 'y',\n crossAxisLine: 'x',\n start: 'top',\n end: 'bottom',\n size: 'height',\n crossAxisStart: 'left',\n crossAxisEnd: 'right',\n crossAxisSize: 'width'\n};\nconst horizontal = {\n direction: 'horizontal',\n line: 'x',\n crossAxisLine: 'y',\n start: 'left',\n end: 'right',\n size: 'width',\n crossAxisStart: 'top',\n crossAxisEnd: 'bottom',\n crossAxisSize: 'height'\n};\n\nvar isTotallyVisibleThroughFrameOnAxis = axis => frame => {\n const isWithinVertical = isWithin(frame.top, frame.bottom);\n const isWithinHorizontal = isWithin(frame.left, frame.right);\n return subject => {\n if (axis === vertical) {\n return isWithinVertical(subject.top) && isWithinVertical(subject.bottom);\n }\n return isWithinHorizontal(subject.left) && isWithinHorizontal(subject.right);\n };\n};\n\nconst getDroppableDisplaced = (target, destination) => {\n const displacement = destination.frame ? destination.frame.scroll.diff.displacement : origin;\n return offsetByPosition(target, displacement);\n};\nconst isVisibleInDroppable = (target, destination, isVisibleThroughFrameFn) => {\n if (!destination.subject.active) {\n return false;\n }\n return isVisibleThroughFrameFn(destination.subject.active)(target);\n};\nconst isVisibleInViewport = (target, viewport, isVisibleThroughFrameFn) => isVisibleThroughFrameFn(viewport)(target);\nconst isVisible$1 = ({\n target: toBeDisplaced,\n destination,\n viewport,\n withDroppableDisplacement,\n isVisibleThroughFrameFn\n}) => {\n const displacedTarget = withDroppableDisplacement ? getDroppableDisplaced(toBeDisplaced, destination) : toBeDisplaced;\n return isVisibleInDroppable(displacedTarget, destination, isVisibleThroughFrameFn) && isVisibleInViewport(displacedTarget, viewport, isVisibleThroughFrameFn);\n};\nconst isPartiallyVisible = args => isVisible$1({\n ...args,\n isVisibleThroughFrameFn: isPartiallyVisibleThroughFrame\n});\nconst isTotallyVisible = args => isVisible$1({\n ...args,\n isVisibleThroughFrameFn: isTotallyVisibleThroughFrame\n});\nconst isTotallyVisibleOnAxis = args => isVisible$1({\n ...args,\n isVisibleThroughFrameFn: isTotallyVisibleThroughFrameOnAxis(args.destination.axis)\n});\n\nconst getShouldAnimate = (id, last, forceShouldAnimate) => {\n if (typeof forceShouldAnimate === 'boolean') {\n return forceShouldAnimate;\n }\n if (!last) {\n return true;\n }\n const {\n invisible,\n visible\n } = last;\n if (invisible[id]) {\n return false;\n }\n const previous = visible[id];\n return previous ? previous.shouldAnimate : true;\n};\nfunction getTarget(draggable, displacedBy) {\n const marginBox = draggable.page.marginBox;\n const expandBy = {\n top: displacedBy.point.y,\n right: 0,\n bottom: 0,\n left: displacedBy.point.x\n };\n return getRect(expand(marginBox, expandBy));\n}\nfunction getDisplacementGroups({\n afterDragging,\n destination,\n displacedBy,\n viewport,\n forceShouldAnimate,\n last\n}) {\n return afterDragging.reduce(function process(groups, draggable) {\n const target = getTarget(draggable, displacedBy);\n const id = draggable.descriptor.id;\n groups.all.push(id);\n const isVisible = isPartiallyVisible({\n target,\n destination,\n viewport,\n withDroppableDisplacement: true\n });\n if (!isVisible) {\n groups.invisible[draggable.descriptor.id] = true;\n return groups;\n }\n const shouldAnimate = getShouldAnimate(id, last, forceShouldAnimate);\n const displacement = {\n draggableId: id,\n shouldAnimate\n };\n groups.visible[id] = displacement;\n return groups;\n }, {\n all: [],\n visible: {},\n invisible: {}\n });\n}\n\nfunction getIndexOfLastItem(draggables, options) {\n if (!draggables.length) {\n return 0;\n }\n const indexOfLastItem = draggables[draggables.length - 1].descriptor.index;\n return options.inHomeList ? indexOfLastItem : indexOfLastItem + 1;\n}\nfunction goAtEnd({\n insideDestination,\n inHomeList,\n displacedBy,\n destination\n}) {\n const newIndex = getIndexOfLastItem(insideDestination, {\n inHomeList\n });\n return {\n displaced: emptyGroups,\n displacedBy,\n at: {\n type: 'REORDER',\n destination: {\n droppableId: destination.descriptor.id,\n index: newIndex\n }\n }\n };\n}\nfunction calculateReorderImpact({\n draggable,\n insideDestination,\n destination,\n viewport,\n displacedBy,\n last,\n index,\n forceShouldAnimate\n}) {\n const inHomeList = isHomeOf(draggable, destination);\n if (index == null) {\n return goAtEnd({\n insideDestination,\n inHomeList,\n displacedBy,\n destination\n });\n }\n const match = insideDestination.find(item => item.descriptor.index === index);\n if (!match) {\n return goAtEnd({\n insideDestination,\n inHomeList,\n displacedBy,\n destination\n });\n }\n const withoutDragging = removeDraggableFromList(draggable, insideDestination);\n const sliceFrom = insideDestination.indexOf(match);\n const impacted = withoutDragging.slice(sliceFrom);\n const displaced = getDisplacementGroups({\n afterDragging: impacted,\n destination,\n displacedBy,\n last,\n viewport: viewport.frame,\n forceShouldAnimate\n });\n return {\n displaced,\n displacedBy,\n at: {\n type: 'REORDER',\n destination: {\n droppableId: destination.descriptor.id,\n index\n }\n }\n };\n}\n\nfunction didStartAfterCritical(draggableId, afterCritical) {\n return Boolean(afterCritical.effected[draggableId]);\n}\n\nvar fromCombine = ({\n isMovingForward,\n destination,\n draggables,\n combine,\n afterCritical\n}) => {\n if (!destination.isCombineEnabled) {\n return null;\n }\n const combineId = combine.draggableId;\n const combineWith = draggables[combineId];\n const combineWithIndex = combineWith.descriptor.index;\n const didCombineWithStartAfterCritical = didStartAfterCritical(combineId, afterCritical);\n if (didCombineWithStartAfterCritical) {\n if (isMovingForward) {\n return combineWithIndex;\n }\n return combineWithIndex - 1;\n }\n if (isMovingForward) {\n return combineWithIndex + 1;\n }\n return combineWithIndex;\n};\n\nvar fromReorder = ({\n isMovingForward,\n isInHomeList,\n insideDestination,\n location\n}) => {\n if (!insideDestination.length) {\n return null;\n }\n const currentIndex = location.index;\n const proposedIndex = isMovingForward ? currentIndex + 1 : currentIndex - 1;\n const firstIndex = insideDestination[0].descriptor.index;\n const lastIndex = insideDestination[insideDestination.length - 1].descriptor.index;\n const upperBound = isInHomeList ? lastIndex : lastIndex + 1;\n if (proposedIndex < firstIndex) {\n return null;\n }\n if (proposedIndex > upperBound) {\n return null;\n }\n return proposedIndex;\n};\n\nvar moveToNextIndex = ({\n isMovingForward,\n isInHomeList,\n draggable,\n draggables,\n destination,\n insideDestination,\n previousImpact,\n viewport,\n afterCritical\n}) => {\n const wasAt = previousImpact.at;\n !wasAt ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot move in direction without previous impact location') : invariant() : void 0;\n if (wasAt.type === 'REORDER') {\n const newIndex = fromReorder({\n isMovingForward,\n isInHomeList,\n location: wasAt.destination,\n insideDestination\n });\n if (newIndex == null) {\n return null;\n }\n return calculateReorderImpact({\n draggable,\n insideDestination,\n destination,\n viewport,\n last: previousImpact.displaced,\n displacedBy: previousImpact.displacedBy,\n index: newIndex\n });\n }\n const newIndex = fromCombine({\n isMovingForward,\n destination,\n displaced: previousImpact.displaced,\n draggables,\n combine: wasAt.combine,\n afterCritical\n });\n if (newIndex == null) {\n return null;\n }\n return calculateReorderImpact({\n draggable,\n insideDestination,\n destination,\n viewport,\n last: previousImpact.displaced,\n displacedBy: previousImpact.displacedBy,\n index: newIndex\n });\n};\n\nvar getCombinedItemDisplacement = ({\n displaced,\n afterCritical,\n combineWith,\n displacedBy\n}) => {\n const isDisplaced = Boolean(displaced.visible[combineWith] || displaced.invisible[combineWith]);\n if (didStartAfterCritical(combineWith, afterCritical)) {\n return isDisplaced ? origin : negate(displacedBy.point);\n }\n return isDisplaced ? displacedBy.point : origin;\n};\n\nvar whenCombining = ({\n afterCritical,\n impact,\n draggables\n}) => {\n const combine = tryGetCombine(impact);\n !combine ? process.env.NODE_ENV !== \"production\" ? invariant() : invariant() : void 0;\n const combineWith = combine.draggableId;\n const center = draggables[combineWith].page.borderBox.center;\n const displaceBy = getCombinedItemDisplacement({\n displaced: impact.displaced,\n afterCritical,\n combineWith,\n displacedBy: impact.displacedBy\n });\n return add(center, displaceBy);\n};\n\nconst distanceFromStartToBorderBoxCenter = (axis, box) => box.margin[axis.start] + box.borderBox[axis.size] / 2;\nconst distanceFromEndToBorderBoxCenter = (axis, box) => box.margin[axis.end] + box.borderBox[axis.size] / 2;\nconst getCrossAxisBorderBoxCenter = (axis, target, isMoving) => target[axis.crossAxisStart] + isMoving.margin[axis.crossAxisStart] + isMoving.borderBox[axis.crossAxisSize] / 2;\nconst goAfter = ({\n axis,\n moveRelativeTo,\n isMoving\n}) => patch(axis.line, moveRelativeTo.marginBox[axis.end] + distanceFromStartToBorderBoxCenter(axis, isMoving), getCrossAxisBorderBoxCenter(axis, moveRelativeTo.marginBox, isMoving));\nconst goBefore = ({\n axis,\n moveRelativeTo,\n isMoving\n}) => patch(axis.line, moveRelativeTo.marginBox[axis.start] - distanceFromEndToBorderBoxCenter(axis, isMoving), getCrossAxisBorderBoxCenter(axis, moveRelativeTo.marginBox, isMoving));\nconst goIntoStart = ({\n axis,\n moveInto,\n isMoving\n}) => patch(axis.line, moveInto.contentBox[axis.start] + distanceFromStartToBorderBoxCenter(axis, isMoving), getCrossAxisBorderBoxCenter(axis, moveInto.contentBox, isMoving));\n\nvar whenReordering = ({\n impact,\n draggable,\n draggables,\n droppable,\n afterCritical\n}) => {\n const insideDestination = getDraggablesInsideDroppable(droppable.descriptor.id, draggables);\n const draggablePage = draggable.page;\n const axis = droppable.axis;\n if (!insideDestination.length) {\n return goIntoStart({\n axis,\n moveInto: droppable.page,\n isMoving: draggablePage\n });\n }\n const {\n displaced,\n displacedBy\n } = impact;\n const closestAfter = displaced.all[0];\n if (closestAfter) {\n const closest = draggables[closestAfter];\n if (didStartAfterCritical(closestAfter, afterCritical)) {\n return goBefore({\n axis,\n moveRelativeTo: closest.page,\n isMoving: draggablePage\n });\n }\n const withDisplacement = offset(closest.page, displacedBy.point);\n return goBefore({\n axis,\n moveRelativeTo: withDisplacement,\n isMoving: draggablePage\n });\n }\n const last = insideDestination[insideDestination.length - 1];\n if (last.descriptor.id === draggable.descriptor.id) {\n return draggablePage.borderBox.center;\n }\n if (didStartAfterCritical(last.descriptor.id, afterCritical)) {\n const page = offset(last.page, negate(afterCritical.displacedBy.point));\n return goAfter({\n axis,\n moveRelativeTo: page,\n isMoving: draggablePage\n });\n }\n return goAfter({\n axis,\n moveRelativeTo: last.page,\n isMoving: draggablePage\n });\n};\n\nvar withDroppableDisplacement = (droppable, point) => {\n const frame = droppable.frame;\n if (!frame) {\n return point;\n }\n return add(point, frame.scroll.diff.displacement);\n};\n\nconst getResultWithoutDroppableDisplacement = ({\n impact,\n draggable,\n droppable,\n draggables,\n afterCritical\n}) => {\n const original = draggable.page.borderBox.center;\n const at = impact.at;\n if (!droppable) {\n return original;\n }\n if (!at) {\n return original;\n }\n if (at.type === 'REORDER') {\n return whenReordering({\n impact,\n draggable,\n draggables,\n droppable,\n afterCritical\n });\n }\n return whenCombining({\n impact,\n draggables,\n afterCritical\n });\n};\nvar getPageBorderBoxCenterFromImpact = args => {\n const withoutDisplacement = getResultWithoutDroppableDisplacement(args);\n const droppable = args.droppable;\n const withDisplacement = droppable ? withDroppableDisplacement(droppable, withoutDisplacement) : withoutDisplacement;\n return withDisplacement;\n};\n\nvar scrollViewport = (viewport, newScroll) => {\n const diff = subtract(newScroll, viewport.scroll.initial);\n const displacement = negate(diff);\n const frame = getRect({\n top: newScroll.y,\n bottom: newScroll.y + viewport.frame.height,\n left: newScroll.x,\n right: newScroll.x + viewport.frame.width\n });\n const updated = {\n frame,\n scroll: {\n initial: viewport.scroll.initial,\n max: viewport.scroll.max,\n current: newScroll,\n diff: {\n value: diff,\n displacement\n }\n }\n };\n return updated;\n};\n\nfunction getDraggables$1(ids, draggables) {\n return ids.map(id => draggables[id]);\n}\nfunction tryGetVisible(id, groups) {\n for (let i = 0; i < groups.length; i++) {\n const displacement = groups[i].visible[id];\n if (displacement) {\n return displacement;\n }\n }\n return null;\n}\nvar speculativelyIncrease = ({\n impact,\n viewport,\n destination,\n draggables,\n maxScrollChange\n}) => {\n const scrolledViewport = scrollViewport(viewport, add(viewport.scroll.current, maxScrollChange));\n const scrolledDroppable = destination.frame ? scrollDroppable(destination, add(destination.frame.scroll.current, maxScrollChange)) : destination;\n const last = impact.displaced;\n const withViewportScroll = getDisplacementGroups({\n afterDragging: getDraggables$1(last.all, draggables),\n destination,\n displacedBy: impact.displacedBy,\n viewport: scrolledViewport.frame,\n last,\n forceShouldAnimate: false\n });\n const withDroppableScroll = getDisplacementGroups({\n afterDragging: getDraggables$1(last.all, draggables),\n destination: scrolledDroppable,\n displacedBy: impact.displacedBy,\n viewport: viewport.frame,\n last,\n forceShouldAnimate: false\n });\n const invisible = {};\n const visible = {};\n const groups = [last, withViewportScroll, withDroppableScroll];\n last.all.forEach(id => {\n const displacement = tryGetVisible(id, groups);\n if (displacement) {\n visible[id] = displacement;\n return;\n }\n invisible[id] = true;\n });\n const newImpact = {\n ...impact,\n displaced: {\n all: last.all,\n invisible,\n visible\n }\n };\n return newImpact;\n};\n\nvar withViewportDisplacement = (viewport, point) => add(viewport.scroll.diff.displacement, point);\n\nvar getClientFromPageBorderBoxCenter = ({\n pageBorderBoxCenter,\n draggable,\n viewport\n}) => {\n const withoutPageScrollChange = withViewportDisplacement(viewport, pageBorderBoxCenter);\n const offset = subtract(withoutPageScrollChange, draggable.page.borderBox.center);\n return add(draggable.client.borderBox.center, offset);\n};\n\nvar isTotallyVisibleInNewLocation = ({\n draggable,\n destination,\n newPageBorderBoxCenter,\n viewport,\n withDroppableDisplacement,\n onlyOnMainAxis = false\n}) => {\n const changeNeeded = subtract(newPageBorderBoxCenter, draggable.page.borderBox.center);\n const shifted = offsetByPosition(draggable.page.borderBox, changeNeeded);\n const args = {\n target: shifted,\n destination,\n withDroppableDisplacement,\n viewport\n };\n return onlyOnMainAxis ? isTotallyVisibleOnAxis(args) : isTotallyVisible(args);\n};\n\nvar moveToNextPlace = ({\n isMovingForward,\n draggable,\n destination,\n draggables,\n previousImpact,\n viewport,\n previousPageBorderBoxCenter,\n previousClientSelection,\n afterCritical\n}) => {\n if (!destination.isEnabled) {\n return null;\n }\n const insideDestination = getDraggablesInsideDroppable(destination.descriptor.id, draggables);\n const isInHomeList = isHomeOf(draggable, destination);\n const impact = moveToNextCombine({\n isMovingForward,\n draggable,\n destination,\n insideDestination,\n previousImpact\n }) || moveToNextIndex({\n isMovingForward,\n isInHomeList,\n draggable,\n draggables,\n destination,\n insideDestination,\n previousImpact,\n viewport,\n afterCritical\n });\n if (!impact) {\n return null;\n }\n const pageBorderBoxCenter = getPageBorderBoxCenterFromImpact({\n impact,\n draggable,\n droppable: destination,\n draggables,\n afterCritical\n });\n const isVisibleInNewLocation = isTotallyVisibleInNewLocation({\n draggable,\n destination,\n newPageBorderBoxCenter: pageBorderBoxCenter,\n viewport: viewport.frame,\n withDroppableDisplacement: false,\n onlyOnMainAxis: true\n });\n if (isVisibleInNewLocation) {\n const clientSelection = getClientFromPageBorderBoxCenter({\n pageBorderBoxCenter,\n draggable,\n viewport\n });\n return {\n clientSelection,\n impact,\n scrollJumpRequest: null\n };\n }\n const distance = subtract(pageBorderBoxCenter, previousPageBorderBoxCenter);\n const cautious = speculativelyIncrease({\n impact,\n viewport,\n destination,\n draggables,\n maxScrollChange: distance\n });\n return {\n clientSelection: previousClientSelection,\n impact: cautious,\n scrollJumpRequest: distance\n };\n};\n\nconst getKnownActive = droppable => {\n const rect = droppable.subject.active;\n !rect ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot get clipped area from droppable') : invariant() : void 0;\n return rect;\n};\nvar getBestCrossAxisDroppable = ({\n isMovingForward,\n pageBorderBoxCenter,\n source,\n droppables,\n viewport\n}) => {\n const active = source.subject.active;\n if (!active) {\n return null;\n }\n const axis = source.axis;\n const isBetweenSourceClipped = isWithin(active[axis.start], active[axis.end]);\n const candidates = toDroppableList(droppables).filter(droppable => droppable !== source).filter(droppable => droppable.isEnabled).filter(droppable => Boolean(droppable.subject.active)).filter(droppable => isPartiallyVisibleThroughFrame(viewport.frame)(getKnownActive(droppable))).filter(droppable => {\n const activeOfTarget = getKnownActive(droppable);\n if (isMovingForward) {\n return active[axis.crossAxisEnd] < activeOfTarget[axis.crossAxisEnd];\n }\n return activeOfTarget[axis.crossAxisStart] < active[axis.crossAxisStart];\n }).filter(droppable => {\n const activeOfTarget = getKnownActive(droppable);\n const isBetweenDestinationClipped = isWithin(activeOfTarget[axis.start], activeOfTarget[axis.end]);\n return isBetweenSourceClipped(activeOfTarget[axis.start]) || isBetweenSourceClipped(activeOfTarget[axis.end]) || isBetweenDestinationClipped(active[axis.start]) || isBetweenDestinationClipped(active[axis.end]);\n }).sort((a, b) => {\n const first = getKnownActive(a)[axis.crossAxisStart];\n const second = getKnownActive(b)[axis.crossAxisStart];\n if (isMovingForward) {\n return first - second;\n }\n return second - first;\n }).filter((droppable, index, array) => getKnownActive(droppable)[axis.crossAxisStart] === getKnownActive(array[0])[axis.crossAxisStart]);\n if (!candidates.length) {\n return null;\n }\n if (candidates.length === 1) {\n return candidates[0];\n }\n const contains = candidates.filter(droppable => {\n const isWithinDroppable = isWithin(getKnownActive(droppable)[axis.start], getKnownActive(droppable)[axis.end]);\n return isWithinDroppable(pageBorderBoxCenter[axis.line]);\n });\n if (contains.length === 1) {\n return contains[0];\n }\n if (contains.length > 1) {\n return contains.sort((a, b) => getKnownActive(a)[axis.start] - getKnownActive(b)[axis.start])[0];\n }\n return candidates.sort((a, b) => {\n const first = closest$1(pageBorderBoxCenter, getCorners(getKnownActive(a)));\n const second = closest$1(pageBorderBoxCenter, getCorners(getKnownActive(b)));\n if (first !== second) {\n return first - second;\n }\n return getKnownActive(a)[axis.start] - getKnownActive(b)[axis.start];\n })[0];\n};\n\nconst getCurrentPageBorderBoxCenter = (draggable, afterCritical) => {\n const original = draggable.page.borderBox.center;\n return didStartAfterCritical(draggable.descriptor.id, afterCritical) ? subtract(original, afterCritical.displacedBy.point) : original;\n};\nconst getCurrentPageBorderBox = (draggable, afterCritical) => {\n const original = draggable.page.borderBox;\n return didStartAfterCritical(draggable.descriptor.id, afterCritical) ? offsetByPosition(original, negate(afterCritical.displacedBy.point)) : original;\n};\n\nvar getClosestDraggable = ({\n pageBorderBoxCenter,\n viewport,\n destination,\n insideDestination,\n afterCritical\n}) => {\n const sorted = insideDestination.filter(draggable => isTotallyVisible({\n target: getCurrentPageBorderBox(draggable, afterCritical),\n destination,\n viewport: viewport.frame,\n withDroppableDisplacement: true\n })).sort((a, b) => {\n const distanceToA = distance(pageBorderBoxCenter, withDroppableDisplacement(destination, getCurrentPageBorderBoxCenter(a, afterCritical)));\n const distanceToB = distance(pageBorderBoxCenter, withDroppableDisplacement(destination, getCurrentPageBorderBoxCenter(b, afterCritical)));\n if (distanceToA < distanceToB) {\n return -1;\n }\n if (distanceToB < distanceToA) {\n return 1;\n }\n return a.descriptor.index - b.descriptor.index;\n });\n return sorted[0] || null;\n};\n\nvar getDisplacedBy = memoizeOne(function getDisplacedBy(axis, displaceBy) {\n const displacement = displaceBy[axis.line];\n return {\n value: displacement,\n point: patch(axis.line, displacement)\n };\n});\n\nconst getRequiredGrowthForPlaceholder = (droppable, placeholderSize, draggables) => {\n const axis = droppable.axis;\n if (droppable.descriptor.mode === 'virtual') {\n return patch(axis.line, placeholderSize[axis.line]);\n }\n const availableSpace = droppable.subject.page.contentBox[axis.size];\n const insideDroppable = getDraggablesInsideDroppable(droppable.descriptor.id, draggables);\n const spaceUsed = insideDroppable.reduce((sum, dimension) => sum + dimension.client.marginBox[axis.size], 0);\n const requiredSpace = spaceUsed + placeholderSize[axis.line];\n const needsToGrowBy = requiredSpace - availableSpace;\n if (needsToGrowBy <= 0) {\n return null;\n }\n return patch(axis.line, needsToGrowBy);\n};\nconst withMaxScroll = (frame, max) => ({\n ...frame,\n scroll: {\n ...frame.scroll,\n max\n }\n});\nconst addPlaceholder = (droppable, draggable, draggables) => {\n const frame = droppable.frame;\n !!isHomeOf(draggable, droppable) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Should not add placeholder space to home list') : invariant() : void 0;\n !!droppable.subject.withPlaceholder ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot add placeholder size to a subject when it already has one') : invariant() : void 0;\n const placeholderSize = getDisplacedBy(droppable.axis, draggable.displaceBy).point;\n const requiredGrowth = getRequiredGrowthForPlaceholder(droppable, placeholderSize, draggables);\n const added = {\n placeholderSize,\n increasedBy: requiredGrowth,\n oldFrameMaxScroll: droppable.frame ? droppable.frame.scroll.max : null\n };\n if (!frame) {\n const subject = getSubject({\n page: droppable.subject.page,\n withPlaceholder: added,\n axis: droppable.axis,\n frame: droppable.frame\n });\n return {\n ...droppable,\n subject\n };\n }\n const maxScroll = requiredGrowth ? add(frame.scroll.max, requiredGrowth) : frame.scroll.max;\n const newFrame = withMaxScroll(frame, maxScroll);\n const subject = getSubject({\n page: droppable.subject.page,\n withPlaceholder: added,\n axis: droppable.axis,\n frame: newFrame\n });\n return {\n ...droppable,\n subject,\n frame: newFrame\n };\n};\nconst removePlaceholder = droppable => {\n const added = droppable.subject.withPlaceholder;\n !added ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot remove placeholder form subject when there was none') : invariant() : void 0;\n const frame = droppable.frame;\n if (!frame) {\n const subject = getSubject({\n page: droppable.subject.page,\n axis: droppable.axis,\n frame: null,\n withPlaceholder: null\n });\n return {\n ...droppable,\n subject\n };\n }\n const oldMaxScroll = added.oldFrameMaxScroll;\n !oldMaxScroll ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected droppable with frame to have old max frame scroll when removing placeholder') : invariant() : void 0;\n const newFrame = withMaxScroll(frame, oldMaxScroll);\n const subject = getSubject({\n page: droppable.subject.page,\n axis: droppable.axis,\n frame: newFrame,\n withPlaceholder: null\n });\n return {\n ...droppable,\n subject,\n frame: newFrame\n };\n};\n\nvar moveToNewDroppable = ({\n previousPageBorderBoxCenter,\n moveRelativeTo,\n insideDestination,\n draggable,\n draggables,\n destination,\n viewport,\n afterCritical\n}) => {\n if (!moveRelativeTo) {\n if (insideDestination.length) {\n return null;\n }\n const proposed = {\n displaced: emptyGroups,\n displacedBy: noDisplacedBy,\n at: {\n type: 'REORDER',\n destination: {\n droppableId: destination.descriptor.id,\n index: 0\n }\n }\n };\n const proposedPageBorderBoxCenter = getPageBorderBoxCenterFromImpact({\n impact: proposed,\n draggable,\n droppable: destination,\n draggables,\n afterCritical\n });\n const withPlaceholder = isHomeOf(draggable, destination) ? destination : addPlaceholder(destination, draggable, draggables);\n const isVisibleInNewLocation = isTotallyVisibleInNewLocation({\n draggable,\n destination: withPlaceholder,\n newPageBorderBoxCenter: proposedPageBorderBoxCenter,\n viewport: viewport.frame,\n withDroppableDisplacement: false,\n onlyOnMainAxis: true\n });\n return isVisibleInNewLocation ? proposed : null;\n }\n const isGoingBeforeTarget = Boolean(previousPageBorderBoxCenter[destination.axis.line] <= moveRelativeTo.page.borderBox.center[destination.axis.line]);\n const proposedIndex = (() => {\n const relativeTo = moveRelativeTo.descriptor.index;\n if (moveRelativeTo.descriptor.id === draggable.descriptor.id) {\n return relativeTo;\n }\n if (isGoingBeforeTarget) {\n return relativeTo;\n }\n return relativeTo + 1;\n })();\n const displacedBy = getDisplacedBy(destination.axis, draggable.displaceBy);\n return calculateReorderImpact({\n draggable,\n insideDestination,\n destination,\n viewport,\n displacedBy,\n last: emptyGroups,\n index: proposedIndex\n });\n};\n\nvar moveCrossAxis = ({\n isMovingForward,\n previousPageBorderBoxCenter,\n draggable,\n isOver,\n draggables,\n droppables,\n viewport,\n afterCritical\n}) => {\n const destination = getBestCrossAxisDroppable({\n isMovingForward,\n pageBorderBoxCenter: previousPageBorderBoxCenter,\n source: isOver,\n droppables,\n viewport\n });\n if (!destination) {\n return null;\n }\n const insideDestination = getDraggablesInsideDroppable(destination.descriptor.id, draggables);\n const moveRelativeTo = getClosestDraggable({\n pageBorderBoxCenter: previousPageBorderBoxCenter,\n viewport,\n destination,\n insideDestination,\n afterCritical\n });\n const impact = moveToNewDroppable({\n previousPageBorderBoxCenter,\n destination,\n draggable,\n draggables,\n moveRelativeTo,\n insideDestination,\n viewport,\n afterCritical\n });\n if (!impact) {\n return null;\n }\n const pageBorderBoxCenter = getPageBorderBoxCenterFromImpact({\n impact,\n draggable,\n droppable: destination,\n draggables,\n afterCritical\n });\n const clientSelection = getClientFromPageBorderBoxCenter({\n pageBorderBoxCenter,\n draggable,\n viewport\n });\n return {\n clientSelection,\n impact,\n scrollJumpRequest: null\n };\n};\n\nvar whatIsDraggedOver = impact => {\n const at = impact.at;\n if (!at) {\n return null;\n }\n if (at.type === 'REORDER') {\n return at.destination.droppableId;\n }\n return at.combine.droppableId;\n};\n\nconst getDroppableOver$1 = (impact, droppables) => {\n const id = whatIsDraggedOver(impact);\n return id ? droppables[id] : null;\n};\nvar moveInDirection = ({\n state,\n type\n}) => {\n const isActuallyOver = getDroppableOver$1(state.impact, state.dimensions.droppables);\n const isMainAxisMovementAllowed = Boolean(isActuallyOver);\n const home = state.dimensions.droppables[state.critical.droppable.id];\n const isOver = isActuallyOver || home;\n const direction = isOver.axis.direction;\n const isMovingOnMainAxis = direction === 'vertical' && (type === 'MOVE_UP' || type === 'MOVE_DOWN') || direction === 'horizontal' && (type === 'MOVE_LEFT' || type === 'MOVE_RIGHT');\n if (isMovingOnMainAxis && !isMainAxisMovementAllowed) {\n return null;\n }\n const isMovingForward = type === 'MOVE_DOWN' || type === 'MOVE_RIGHT';\n const draggable = state.dimensions.draggables[state.critical.draggable.id];\n const previousPageBorderBoxCenter = state.current.page.borderBoxCenter;\n const {\n draggables,\n droppables\n } = state.dimensions;\n return isMovingOnMainAxis ? moveToNextPlace({\n isMovingForward,\n previousPageBorderBoxCenter,\n draggable,\n destination: isOver,\n draggables,\n viewport: state.viewport,\n previousClientSelection: state.current.client.selection,\n previousImpact: state.impact,\n afterCritical: state.afterCritical\n }) : moveCrossAxis({\n isMovingForward,\n previousPageBorderBoxCenter,\n draggable,\n isOver,\n draggables,\n droppables,\n viewport: state.viewport,\n afterCritical: state.afterCritical\n });\n};\n\nfunction isMovementAllowed(state) {\n return state.phase === 'DRAGGING' || state.phase === 'COLLECTING';\n}\n\nfunction isPositionInFrame(frame) {\n const isWithinVertical = isWithin(frame.top, frame.bottom);\n const isWithinHorizontal = isWithin(frame.left, frame.right);\n return function run(point) {\n return isWithinVertical(point.y) && isWithinHorizontal(point.x);\n };\n}\n\nfunction getHasOverlap(first, second) {\n return first.left < second.right && first.right > second.left && first.top < second.bottom && first.bottom > second.top;\n}\nfunction getFurthestAway({\n pageBorderBox,\n draggable,\n candidates\n}) {\n const startCenter = draggable.page.borderBox.center;\n const sorted = candidates.map(candidate => {\n const axis = candidate.axis;\n const target = patch(candidate.axis.line, pageBorderBox.center[axis.line], candidate.page.borderBox.center[axis.crossAxisLine]);\n return {\n id: candidate.descriptor.id,\n distance: distance(startCenter, target)\n };\n }).sort((a, b) => b.distance - a.distance);\n return sorted[0] ? sorted[0].id : null;\n}\nfunction getDroppableOver({\n pageBorderBox,\n draggable,\n droppables\n}) {\n const candidates = toDroppableList(droppables).filter(item => {\n if (!item.isEnabled) {\n return false;\n }\n const active = item.subject.active;\n if (!active) {\n return false;\n }\n if (!getHasOverlap(pageBorderBox, active)) {\n return false;\n }\n if (isPositionInFrame(active)(pageBorderBox.center)) {\n return true;\n }\n const axis = item.axis;\n const childCenter = active.center[axis.crossAxisLine];\n const crossAxisStart = pageBorderBox[axis.crossAxisStart];\n const crossAxisEnd = pageBorderBox[axis.crossAxisEnd];\n const isContained = isWithin(active[axis.crossAxisStart], active[axis.crossAxisEnd]);\n const isStartContained = isContained(crossAxisStart);\n const isEndContained = isContained(crossAxisEnd);\n if (!isStartContained && !isEndContained) {\n return true;\n }\n if (isStartContained) {\n return crossAxisStart < childCenter;\n }\n return crossAxisEnd > childCenter;\n });\n if (!candidates.length) {\n return null;\n }\n if (candidates.length === 1) {\n return candidates[0].descriptor.id;\n }\n return getFurthestAway({\n pageBorderBox,\n draggable,\n candidates\n });\n}\n\nconst offsetRectByPosition = (rect, point) => getRect(offsetByPosition(rect, point));\n\nvar withDroppableScroll = (droppable, area) => {\n const frame = droppable.frame;\n if (!frame) {\n return area;\n }\n return offsetRectByPosition(area, frame.scroll.diff.value);\n};\n\nfunction getIsDisplaced({\n displaced,\n id\n}) {\n return Boolean(displaced.visible[id] || displaced.invisible[id]);\n}\n\nfunction atIndex({\n draggable,\n closest,\n inHomeList\n}) {\n if (!closest) {\n return null;\n }\n if (!inHomeList) {\n return closest.descriptor.index;\n }\n if (closest.descriptor.index > draggable.descriptor.index) {\n return closest.descriptor.index - 1;\n }\n return closest.descriptor.index;\n}\nvar getReorderImpact = ({\n pageBorderBoxWithDroppableScroll: targetRect,\n draggable,\n destination,\n insideDestination,\n last,\n viewport,\n afterCritical\n}) => {\n const axis = destination.axis;\n const displacedBy = getDisplacedBy(destination.axis, draggable.displaceBy);\n const displacement = displacedBy.value;\n const targetStart = targetRect[axis.start];\n const targetEnd = targetRect[axis.end];\n const withoutDragging = removeDraggableFromList(draggable, insideDestination);\n const closest = withoutDragging.find(child => {\n const id = child.descriptor.id;\n const childCenter = child.page.borderBox.center[axis.line];\n const didStartAfterCritical$1 = didStartAfterCritical(id, afterCritical);\n const isDisplaced = getIsDisplaced({\n displaced: last,\n id\n });\n if (didStartAfterCritical$1) {\n if (isDisplaced) {\n return targetEnd <= childCenter;\n }\n return targetStart < childCenter - displacement;\n }\n if (isDisplaced) {\n return targetEnd <= childCenter + displacement;\n }\n return targetStart < childCenter;\n }) || null;\n const newIndex = atIndex({\n draggable,\n closest,\n inHomeList: isHomeOf(draggable, destination)\n });\n return calculateReorderImpact({\n draggable,\n insideDestination,\n destination,\n viewport,\n last,\n displacedBy,\n index: newIndex\n });\n};\n\nconst combineThresholdDivisor = 4;\nvar getCombineImpact = ({\n draggable,\n pageBorderBoxWithDroppableScroll: targetRect,\n previousImpact,\n destination,\n insideDestination,\n afterCritical\n}) => {\n if (!destination.isCombineEnabled) {\n return null;\n }\n const axis = destination.axis;\n const displacedBy = getDisplacedBy(destination.axis, draggable.displaceBy);\n const displacement = displacedBy.value;\n const targetStart = targetRect[axis.start];\n const targetEnd = targetRect[axis.end];\n const withoutDragging = removeDraggableFromList(draggable, insideDestination);\n const combineWith = withoutDragging.find(child => {\n const id = child.descriptor.id;\n const childRect = child.page.borderBox;\n const childSize = childRect[axis.size];\n const threshold = childSize / combineThresholdDivisor;\n const didStartAfterCritical$1 = didStartAfterCritical(id, afterCritical);\n const isDisplaced = getIsDisplaced({\n displaced: previousImpact.displaced,\n id\n });\n if (didStartAfterCritical$1) {\n if (isDisplaced) {\n return targetEnd > childRect[axis.start] + threshold && targetEnd < childRect[axis.end] - threshold;\n }\n return targetStart > childRect[axis.start] - displacement + threshold && targetStart < childRect[axis.end] - displacement - threshold;\n }\n if (isDisplaced) {\n return targetEnd > childRect[axis.start] + displacement + threshold && targetEnd < childRect[axis.end] + displacement - threshold;\n }\n return targetStart > childRect[axis.start] + threshold && targetStart < childRect[axis.end] - threshold;\n });\n if (!combineWith) {\n return null;\n }\n const impact = {\n displacedBy,\n displaced: previousImpact.displaced,\n at: {\n type: 'COMBINE',\n combine: {\n draggableId: combineWith.descriptor.id,\n droppableId: destination.descriptor.id\n }\n }\n };\n return impact;\n};\n\nvar getDragImpact = ({\n pageOffset,\n draggable,\n draggables,\n droppables,\n previousImpact,\n viewport,\n afterCritical\n}) => {\n const pageBorderBox = offsetRectByPosition(draggable.page.borderBox, pageOffset);\n const destinationId = getDroppableOver({\n pageBorderBox,\n draggable,\n droppables\n });\n if (!destinationId) {\n return noImpact;\n }\n const destination = droppables[destinationId];\n const insideDestination = getDraggablesInsideDroppable(destination.descriptor.id, draggables);\n const pageBorderBoxWithDroppableScroll = withDroppableScroll(destination, pageBorderBox);\n return getCombineImpact({\n pageBorderBoxWithDroppableScroll,\n draggable,\n previousImpact,\n destination,\n insideDestination,\n afterCritical\n }) || getReorderImpact({\n pageBorderBoxWithDroppableScroll,\n draggable,\n destination,\n insideDestination,\n last: previousImpact.displaced,\n viewport,\n afterCritical\n });\n};\n\nvar patchDroppableMap = (droppables, updated) => ({\n ...droppables,\n [updated.descriptor.id]: updated\n});\n\nconst clearUnusedPlaceholder = ({\n previousImpact,\n impact,\n droppables\n}) => {\n const last = whatIsDraggedOver(previousImpact);\n const now = whatIsDraggedOver(impact);\n if (!last) {\n return droppables;\n }\n if (last === now) {\n return droppables;\n }\n const lastDroppable = droppables[last];\n if (!lastDroppable.subject.withPlaceholder) {\n return droppables;\n }\n const updated = removePlaceholder(lastDroppable);\n return patchDroppableMap(droppables, updated);\n};\nvar recomputePlaceholders = ({\n draggable,\n draggables,\n droppables,\n previousImpact,\n impact\n}) => {\n const cleaned = clearUnusedPlaceholder({\n previousImpact,\n impact,\n droppables\n });\n const isOver = whatIsDraggedOver(impact);\n if (!isOver) {\n return cleaned;\n }\n const droppable = droppables[isOver];\n if (isHomeOf(draggable, droppable)) {\n return cleaned;\n }\n if (droppable.subject.withPlaceholder) {\n return cleaned;\n }\n const patched = addPlaceholder(droppable, draggable, draggables);\n return patchDroppableMap(cleaned, patched);\n};\n\nvar update = ({\n state,\n clientSelection: forcedClientSelection,\n dimensions: forcedDimensions,\n viewport: forcedViewport,\n impact: forcedImpact,\n scrollJumpRequest\n}) => {\n const viewport = forcedViewport || state.viewport;\n const dimensions = forcedDimensions || state.dimensions;\n const clientSelection = forcedClientSelection || state.current.client.selection;\n const offset = subtract(clientSelection, state.initial.client.selection);\n const client = {\n offset,\n selection: clientSelection,\n borderBoxCenter: add(state.initial.client.borderBoxCenter, offset)\n };\n const page = {\n selection: add(client.selection, viewport.scroll.current),\n borderBoxCenter: add(client.borderBoxCenter, viewport.scroll.current),\n offset: add(client.offset, viewport.scroll.diff.value)\n };\n const current = {\n client,\n page\n };\n if (state.phase === 'COLLECTING') {\n return {\n ...state,\n dimensions,\n viewport,\n current\n };\n }\n const draggable = dimensions.draggables[state.critical.draggable.id];\n const newImpact = forcedImpact || getDragImpact({\n pageOffset: page.offset,\n draggable,\n draggables: dimensions.draggables,\n droppables: dimensions.droppables,\n previousImpact: state.impact,\n viewport,\n afterCritical: state.afterCritical\n });\n const withUpdatedPlaceholders = recomputePlaceholders({\n draggable,\n impact: newImpact,\n previousImpact: state.impact,\n draggables: dimensions.draggables,\n droppables: dimensions.droppables\n });\n const result = {\n ...state,\n current,\n dimensions: {\n draggables: dimensions.draggables,\n droppables: withUpdatedPlaceholders\n },\n impact: newImpact,\n viewport,\n scrollJumpRequest: scrollJumpRequest || null,\n forceShouldAnimate: scrollJumpRequest ? false : null\n };\n return result;\n};\n\nfunction getDraggables(ids, draggables) {\n return ids.map(id => draggables[id]);\n}\nvar recompute = ({\n impact,\n viewport,\n draggables,\n destination,\n forceShouldAnimate\n}) => {\n const last = impact.displaced;\n const afterDragging = getDraggables(last.all, draggables);\n const displaced = getDisplacementGroups({\n afterDragging,\n destination,\n displacedBy: impact.displacedBy,\n viewport: viewport.frame,\n forceShouldAnimate,\n last\n });\n return {\n ...impact,\n displaced\n };\n};\n\nvar getClientBorderBoxCenter = ({\n impact,\n draggable,\n droppable,\n draggables,\n viewport,\n afterCritical\n}) => {\n const pageBorderBoxCenter = getPageBorderBoxCenterFromImpact({\n impact,\n draggable,\n draggables,\n droppable,\n afterCritical\n });\n return getClientFromPageBorderBoxCenter({\n pageBorderBoxCenter,\n draggable,\n viewport\n });\n};\n\nvar refreshSnap = ({\n state,\n dimensions: forcedDimensions,\n viewport: forcedViewport\n}) => {\n !(state.movementMode === 'SNAP') ? process.env.NODE_ENV !== \"production\" ? invariant() : invariant() : void 0;\n const needsVisibilityCheck = state.impact;\n const viewport = forcedViewport || state.viewport;\n const dimensions = forcedDimensions || state.dimensions;\n const {\n draggables,\n droppables\n } = dimensions;\n const draggable = draggables[state.critical.draggable.id];\n const isOver = whatIsDraggedOver(needsVisibilityCheck);\n !isOver ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Must be over a destination in SNAP movement mode') : invariant() : void 0;\n const destination = droppables[isOver];\n const impact = recompute({\n impact: needsVisibilityCheck,\n viewport,\n destination,\n draggables\n });\n const clientSelection = getClientBorderBoxCenter({\n impact,\n draggable,\n droppable: destination,\n draggables,\n viewport,\n afterCritical: state.afterCritical\n });\n return update({\n impact,\n clientSelection,\n state,\n dimensions,\n viewport\n });\n};\n\nvar getHomeLocation = descriptor => ({\n index: descriptor.index,\n droppableId: descriptor.droppableId\n});\n\nvar getLiftEffect = ({\n draggable,\n home,\n draggables,\n viewport\n}) => {\n const displacedBy = getDisplacedBy(home.axis, draggable.displaceBy);\n const insideHome = getDraggablesInsideDroppable(home.descriptor.id, draggables);\n const rawIndex = insideHome.indexOf(draggable);\n !(rawIndex !== -1) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected draggable to be inside home list') : invariant() : void 0;\n const afterDragging = insideHome.slice(rawIndex + 1);\n const effected = afterDragging.reduce((previous, item) => {\n previous[item.descriptor.id] = true;\n return previous;\n }, {});\n const afterCritical = {\n inVirtualList: home.descriptor.mode === 'virtual',\n displacedBy,\n effected\n };\n const displaced = getDisplacementGroups({\n afterDragging,\n destination: home,\n displacedBy,\n last: null,\n viewport: viewport.frame,\n forceShouldAnimate: false\n });\n const impact = {\n displaced,\n displacedBy,\n at: {\n type: 'REORDER',\n destination: getHomeLocation(draggable.descriptor)\n }\n };\n return {\n impact,\n afterCritical\n };\n};\n\nvar patchDimensionMap = (dimensions, updated) => ({\n draggables: dimensions.draggables,\n droppables: patchDroppableMap(dimensions.droppables, updated)\n});\n\nconst start = key => {\n if (process.env.NODE_ENV !== 'production') {\n {\n return;\n }\n }\n};\nconst finish = key => {\n if (process.env.NODE_ENV !== 'production') {\n {\n return;\n }\n }\n};\n\nvar offsetDraggable = ({\n draggable,\n offset: offset$1,\n initialWindowScroll\n}) => {\n const client = offset(draggable.client, offset$1);\n const page = withScroll(client, initialWindowScroll);\n const moved = {\n ...draggable,\n placeholder: {\n ...draggable.placeholder,\n client\n },\n client,\n page\n };\n return moved;\n};\n\nvar getFrame = droppable => {\n const frame = droppable.frame;\n !frame ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected Droppable to have a frame') : invariant() : void 0;\n return frame;\n};\n\nvar adjustAdditionsForScrollChanges = ({\n additions,\n updatedDroppables,\n viewport\n}) => {\n const windowScrollChange = viewport.scroll.diff.value;\n return additions.map(draggable => {\n const droppableId = draggable.descriptor.droppableId;\n const modified = updatedDroppables[droppableId];\n const frame = getFrame(modified);\n const droppableScrollChange = frame.scroll.diff.value;\n const totalChange = add(windowScrollChange, droppableScrollChange);\n const moved = offsetDraggable({\n draggable,\n offset: totalChange,\n initialWindowScroll: viewport.scroll.initial\n });\n return moved;\n });\n};\n\nvar publishWhileDraggingInVirtual = ({\n state,\n published\n}) => {\n start();\n const withScrollChange = published.modified.map(update => {\n const existing = state.dimensions.droppables[update.droppableId];\n const scrolled = scrollDroppable(existing, update.scroll);\n return scrolled;\n });\n const droppables = {\n ...state.dimensions.droppables,\n ...toDroppableMap(withScrollChange)\n };\n const updatedAdditions = toDraggableMap(adjustAdditionsForScrollChanges({\n additions: published.additions,\n updatedDroppables: droppables,\n viewport: state.viewport\n }));\n const draggables = {\n ...state.dimensions.draggables,\n ...updatedAdditions\n };\n published.removals.forEach(id => {\n delete draggables[id];\n });\n const dimensions = {\n droppables,\n draggables\n };\n const wasOverId = whatIsDraggedOver(state.impact);\n const wasOver = wasOverId ? dimensions.droppables[wasOverId] : null;\n const draggable = dimensions.draggables[state.critical.draggable.id];\n const home = dimensions.droppables[state.critical.droppable.id];\n const {\n impact: onLiftImpact,\n afterCritical\n } = getLiftEffect({\n draggable,\n home,\n draggables,\n viewport: state.viewport\n });\n const previousImpact = wasOver && wasOver.isCombineEnabled ? state.impact : onLiftImpact;\n const impact = getDragImpact({\n pageOffset: state.current.page.offset,\n draggable: dimensions.draggables[state.critical.draggable.id],\n draggables: dimensions.draggables,\n droppables: dimensions.droppables,\n previousImpact,\n viewport: state.viewport,\n afterCritical\n });\n finish();\n const draggingState = {\n ...state,\n phase: 'DRAGGING',\n impact,\n onLiftImpact,\n dimensions,\n afterCritical,\n forceShouldAnimate: false\n };\n if (state.phase === 'COLLECTING') {\n return draggingState;\n }\n const dropPending = {\n ...draggingState,\n phase: 'DROP_PENDING',\n reason: state.reason,\n isWaiting: false\n };\n return dropPending;\n};\n\nconst isSnapping = state => state.movementMode === 'SNAP';\nconst postDroppableChange = (state, updated, isEnabledChanging) => {\n const dimensions = patchDimensionMap(state.dimensions, updated);\n if (!isSnapping(state) || isEnabledChanging) {\n return update({\n state,\n dimensions\n });\n }\n return refreshSnap({\n state,\n dimensions\n });\n};\nfunction removeScrollJumpRequest(state) {\n if (state.isDragging && state.movementMode === 'SNAP') {\n return {\n ...state,\n scrollJumpRequest: null\n };\n }\n return state;\n}\nconst idle$2 = {\n phase: 'IDLE',\n completed: null,\n shouldFlush: false\n};\nvar reducer = (state = idle$2, action) => {\n if (action.type === 'FLUSH') {\n return {\n ...idle$2,\n shouldFlush: true\n };\n }\n if (action.type === 'INITIAL_PUBLISH') {\n !(state.phase === 'IDLE') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'INITIAL_PUBLISH must come after a IDLE phase') : invariant() : void 0;\n const {\n critical,\n clientSelection,\n viewport,\n dimensions,\n movementMode\n } = action.payload;\n const draggable = dimensions.draggables[critical.draggable.id];\n const home = dimensions.droppables[critical.droppable.id];\n const client = {\n selection: clientSelection,\n borderBoxCenter: draggable.client.borderBox.center,\n offset: origin\n };\n const initial = {\n client,\n page: {\n selection: add(client.selection, viewport.scroll.initial),\n borderBoxCenter: add(client.selection, viewport.scroll.initial),\n offset: add(client.selection, viewport.scroll.diff.value)\n }\n };\n const isWindowScrollAllowed = toDroppableList(dimensions.droppables).every(item => !item.isFixedOnPage);\n const {\n impact,\n afterCritical\n } = getLiftEffect({\n draggable,\n home,\n draggables: dimensions.draggables,\n viewport\n });\n const result = {\n phase: 'DRAGGING',\n isDragging: true,\n critical,\n movementMode,\n dimensions,\n initial,\n current: initial,\n isWindowScrollAllowed,\n impact,\n afterCritical,\n onLiftImpact: impact,\n viewport,\n scrollJumpRequest: null,\n forceShouldAnimate: null\n };\n return result;\n }\n if (action.type === 'COLLECTION_STARTING') {\n if (state.phase === 'COLLECTING' || state.phase === 'DROP_PENDING') {\n return state;\n }\n !(state.phase === 'DRAGGING') ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Collection cannot start from phase ${state.phase}`) : invariant() : void 0;\n const result = {\n ...state,\n phase: 'COLLECTING'\n };\n return result;\n }\n if (action.type === 'PUBLISH_WHILE_DRAGGING') {\n !(state.phase === 'COLLECTING' || state.phase === 'DROP_PENDING') ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Unexpected ${action.type} received in phase ${state.phase}`) : invariant() : void 0;\n return publishWhileDraggingInVirtual({\n state,\n published: action.payload\n });\n }\n if (action.type === 'MOVE') {\n if (state.phase === 'DROP_PENDING') {\n return state;\n }\n !isMovementAllowed(state) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `${action.type} not permitted in phase ${state.phase}`) : invariant() : void 0;\n const {\n client: clientSelection\n } = action.payload;\n if (isEqual$1(clientSelection, state.current.client.selection)) {\n return state;\n }\n return update({\n state,\n clientSelection,\n impact: isSnapping(state) ? state.impact : null\n });\n }\n if (action.type === 'UPDATE_DROPPABLE_SCROLL') {\n if (state.phase === 'DROP_PENDING') {\n return removeScrollJumpRequest(state);\n }\n if (state.phase === 'COLLECTING') {\n return removeScrollJumpRequest(state);\n }\n !isMovementAllowed(state) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `${action.type} not permitted in phase ${state.phase}`) : invariant() : void 0;\n const {\n id,\n newScroll\n } = action.payload;\n const target = state.dimensions.droppables[id];\n if (!target) {\n return state;\n }\n const scrolled = scrollDroppable(target, newScroll);\n return postDroppableChange(state, scrolled, false);\n }\n if (action.type === 'UPDATE_DROPPABLE_IS_ENABLED') {\n if (state.phase === 'DROP_PENDING') {\n return state;\n }\n !isMovementAllowed(state) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Attempting to move in an unsupported phase ${state.phase}`) : invariant() : void 0;\n const {\n id,\n isEnabled\n } = action.payload;\n const target = state.dimensions.droppables[id];\n !target ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Cannot find Droppable[id: ${id}] to toggle its enabled state`) : invariant() : void 0;\n !(target.isEnabled !== isEnabled) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Trying to set droppable isEnabled to ${String(isEnabled)}\n but it is already ${String(target.isEnabled)}`) : invariant() : void 0;\n const updated = {\n ...target,\n isEnabled\n };\n return postDroppableChange(state, updated, true);\n }\n if (action.type === 'UPDATE_DROPPABLE_IS_COMBINE_ENABLED') {\n if (state.phase === 'DROP_PENDING') {\n return state;\n }\n !isMovementAllowed(state) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Attempting to move in an unsupported phase ${state.phase}`) : invariant() : void 0;\n const {\n id,\n isCombineEnabled\n } = action.payload;\n const target = state.dimensions.droppables[id];\n !target ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Cannot find Droppable[id: ${id}] to toggle its isCombineEnabled state`) : invariant() : void 0;\n !(target.isCombineEnabled !== isCombineEnabled) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Trying to set droppable isCombineEnabled to ${String(isCombineEnabled)}\n but it is already ${String(target.isCombineEnabled)}`) : invariant() : void 0;\n const updated = {\n ...target,\n isCombineEnabled\n };\n return postDroppableChange(state, updated, true);\n }\n if (action.type === 'MOVE_BY_WINDOW_SCROLL') {\n if (state.phase === 'DROP_PENDING' || state.phase === 'DROP_ANIMATING') {\n return state;\n }\n !isMovementAllowed(state) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Cannot move by window in phase ${state.phase}`) : invariant() : void 0;\n !state.isWindowScrollAllowed ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Window scrolling is currently not supported for fixed lists') : invariant() : void 0;\n const newScroll = action.payload.newScroll;\n if (isEqual$1(state.viewport.scroll.current, newScroll)) {\n return removeScrollJumpRequest(state);\n }\n const viewport = scrollViewport(state.viewport, newScroll);\n if (isSnapping(state)) {\n return refreshSnap({\n state,\n viewport\n });\n }\n return update({\n state,\n viewport\n });\n }\n if (action.type === 'UPDATE_VIEWPORT_MAX_SCROLL') {\n if (!isMovementAllowed(state)) {\n return state;\n }\n const maxScroll = action.payload.maxScroll;\n if (isEqual$1(maxScroll, state.viewport.scroll.max)) {\n return state;\n }\n const withMaxScroll = {\n ...state.viewport,\n scroll: {\n ...state.viewport.scroll,\n max: maxScroll\n }\n };\n return {\n ...state,\n viewport: withMaxScroll\n };\n }\n if (action.type === 'MOVE_UP' || action.type === 'MOVE_DOWN' || action.type === 'MOVE_LEFT' || action.type === 'MOVE_RIGHT') {\n if (state.phase === 'COLLECTING' || state.phase === 'DROP_PENDING') {\n return state;\n }\n !(state.phase === 'DRAGGING') ? process.env.NODE_ENV !== \"production\" ? invariant(false, `${action.type} received while not in DRAGGING phase`) : invariant() : void 0;\n const result = moveInDirection({\n state,\n type: action.type\n });\n if (!result) {\n return state;\n }\n return update({\n state,\n impact: result.impact,\n clientSelection: result.clientSelection,\n scrollJumpRequest: result.scrollJumpRequest\n });\n }\n if (action.type === 'DROP_PENDING') {\n const reason = action.payload.reason;\n !(state.phase === 'COLLECTING') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Can only move into the DROP_PENDING phase from the COLLECTING phase') : invariant() : void 0;\n const newState = {\n ...state,\n phase: 'DROP_PENDING',\n isWaiting: true,\n reason\n };\n return newState;\n }\n if (action.type === 'DROP_ANIMATE') {\n const {\n completed,\n dropDuration,\n newHomeClientOffset\n } = action.payload;\n !(state.phase === 'DRAGGING' || state.phase === 'DROP_PENDING') ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Cannot animate drop from phase ${state.phase}`) : invariant() : void 0;\n const result = {\n phase: 'DROP_ANIMATING',\n completed,\n dropDuration,\n newHomeClientOffset,\n dimensions: state.dimensions\n };\n return result;\n }\n if (action.type === 'DROP_COMPLETE') {\n const {\n completed\n } = action.payload;\n return {\n phase: 'IDLE',\n completed,\n shouldFlush: false\n };\n }\n return state;\n};\n\nfunction guard(action, predicate) {\n return action instanceof Object && 'type' in action && action.type === predicate;\n}\nconst beforeInitialCapture = args => ({\n type: 'BEFORE_INITIAL_CAPTURE',\n payload: args\n});\nconst lift$1 = args => ({\n type: 'LIFT',\n payload: args\n});\nconst initialPublish = args => ({\n type: 'INITIAL_PUBLISH',\n payload: args\n});\nconst publishWhileDragging = args => ({\n type: 'PUBLISH_WHILE_DRAGGING',\n payload: args\n});\nconst collectionStarting = () => ({\n type: 'COLLECTION_STARTING',\n payload: null\n});\nconst updateDroppableScroll = args => ({\n type: 'UPDATE_DROPPABLE_SCROLL',\n payload: args\n});\nconst updateDroppableIsEnabled = args => ({\n type: 'UPDATE_DROPPABLE_IS_ENABLED',\n payload: args\n});\nconst updateDroppableIsCombineEnabled = args => ({\n type: 'UPDATE_DROPPABLE_IS_COMBINE_ENABLED',\n payload: args\n});\nconst move = args => ({\n type: 'MOVE',\n payload: args\n});\nconst moveByWindowScroll = args => ({\n type: 'MOVE_BY_WINDOW_SCROLL',\n payload: args\n});\nconst updateViewportMaxScroll = args => ({\n type: 'UPDATE_VIEWPORT_MAX_SCROLL',\n payload: args\n});\nconst moveUp = () => ({\n type: 'MOVE_UP',\n payload: null\n});\nconst moveDown = () => ({\n type: 'MOVE_DOWN',\n payload: null\n});\nconst moveRight = () => ({\n type: 'MOVE_RIGHT',\n payload: null\n});\nconst moveLeft = () => ({\n type: 'MOVE_LEFT',\n payload: null\n});\nconst flush = () => ({\n type: 'FLUSH',\n payload: null\n});\nconst animateDrop = args => ({\n type: 'DROP_ANIMATE',\n payload: args\n});\nconst completeDrop = args => ({\n type: 'DROP_COMPLETE',\n payload: args\n});\nconst drop = args => ({\n type: 'DROP',\n payload: args\n});\nconst dropPending = args => ({\n type: 'DROP_PENDING',\n payload: args\n});\nconst dropAnimationFinished = () => ({\n type: 'DROP_ANIMATION_FINISHED',\n payload: null\n});\n\nfunction checkIndexes(insideDestination) {\n if (insideDestination.length <= 1) {\n return;\n }\n const indexes = insideDestination.map(d => d.descriptor.index);\n const errors = {};\n for (let i = 1; i < indexes.length; i++) {\n const current = indexes[i];\n const previous = indexes[i - 1];\n if (current !== previous + 1) {\n errors[current] = true;\n }\n }\n if (!Object.keys(errors).length) {\n return;\n }\n const formatted = indexes.map(index => {\n const hasError = Boolean(errors[index]);\n return hasError ? `[🔥${index}]` : `${index}`;\n }).join(', ');\n process.env.NODE_ENV !== \"production\" ? warning(`\n Detected non-consecutive <Draggable /> indexes.\n\n (This can cause unexpected bugs)\n\n ${formatted}\n `) : void 0;\n}\nfunction validateDimensions(critical, dimensions) {\n if (process.env.NODE_ENV !== 'production') {\n const insideDestination = getDraggablesInsideDroppable(critical.droppable.id, dimensions.draggables);\n checkIndexes(insideDestination);\n }\n}\n\nvar lift = marshal => ({\n getState,\n dispatch\n}) => next => action => {\n if (!guard(action, 'LIFT')) {\n next(action);\n return;\n }\n const {\n id,\n clientSelection,\n movementMode\n } = action.payload;\n const initial = getState();\n if (initial.phase === 'DROP_ANIMATING') {\n dispatch(completeDrop({\n completed: initial.completed\n }));\n }\n !(getState().phase === 'IDLE') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Unexpected phase to start a drag') : invariant() : void 0;\n dispatch(flush());\n dispatch(beforeInitialCapture({\n draggableId: id,\n movementMode\n }));\n const scrollOptions = {\n shouldPublishImmediately: movementMode === 'SNAP'\n };\n const request = {\n draggableId: id,\n scrollOptions\n };\n const {\n critical,\n dimensions,\n viewport\n } = marshal.startPublishing(request);\n validateDimensions(critical, dimensions);\n dispatch(initialPublish({\n critical,\n dimensions,\n clientSelection,\n movementMode,\n viewport\n }));\n};\n\nvar style = marshal => () => next => action => {\n if (guard(action, 'INITIAL_PUBLISH')) {\n marshal.dragging();\n }\n if (guard(action, 'DROP_ANIMATE')) {\n marshal.dropping(action.payload.completed.result.reason);\n }\n if (guard(action, 'FLUSH') || guard(action, 'DROP_COMPLETE')) {\n marshal.resting();\n }\n next(action);\n};\n\nconst curves = {\n outOfTheWay: 'cubic-bezier(0.2, 0, 0, 1)',\n drop: 'cubic-bezier(.2,1,.1,1)'\n};\nconst combine = {\n opacity: {\n drop: 0,\n combining: 0.7\n },\n scale: {\n drop: 0.75\n }\n};\nconst timings = {\n outOfTheWay: 0.2,\n minDropTime: 0.33,\n maxDropTime: 0.55\n};\nconst outOfTheWayTiming = `${timings.outOfTheWay}s ${curves.outOfTheWay}`;\nconst transitions = {\n fluid: `opacity ${outOfTheWayTiming}`,\n snap: `transform ${outOfTheWayTiming}, opacity ${outOfTheWayTiming}`,\n drop: duration => {\n const timing = `${duration}s ${curves.drop}`;\n return `transform ${timing}, opacity ${timing}`;\n },\n outOfTheWay: `transform ${outOfTheWayTiming}`,\n placeholder: `height ${outOfTheWayTiming}, width ${outOfTheWayTiming}, margin ${outOfTheWayTiming}`\n};\nconst moveTo = offset => isEqual$1(offset, origin) ? undefined : `translate(${offset.x}px, ${offset.y}px)`;\nconst transforms = {\n moveTo,\n drop: (offset, isCombining) => {\n const translate = moveTo(offset);\n if (!translate) {\n return undefined;\n }\n if (!isCombining) {\n return translate;\n }\n return `${translate} scale(${combine.scale.drop})`;\n }\n};\n\nconst {\n minDropTime,\n maxDropTime\n} = timings;\nconst dropTimeRange = maxDropTime - minDropTime;\nconst maxDropTimeAtDistance = 1500;\nconst cancelDropModifier = 0.6;\nvar getDropDuration = ({\n current,\n destination,\n reason\n}) => {\n const distance$1 = distance(current, destination);\n if (distance$1 <= 0) {\n return minDropTime;\n }\n if (distance$1 >= maxDropTimeAtDistance) {\n return maxDropTime;\n }\n const percentage = distance$1 / maxDropTimeAtDistance;\n const duration = minDropTime + dropTimeRange * percentage;\n const withDuration = reason === 'CANCEL' ? duration * cancelDropModifier : duration;\n return Number(withDuration.toFixed(2));\n};\n\nvar getNewHomeClientOffset = ({\n impact,\n draggable,\n dimensions,\n viewport,\n afterCritical\n}) => {\n const {\n draggables,\n droppables\n } = dimensions;\n const droppableId = whatIsDraggedOver(impact);\n const destination = droppableId ? droppables[droppableId] : null;\n const home = droppables[draggable.descriptor.droppableId];\n const newClientCenter = getClientBorderBoxCenter({\n impact,\n draggable,\n draggables,\n afterCritical,\n droppable: destination || home,\n viewport\n });\n const offset = subtract(newClientCenter, draggable.client.borderBox.center);\n return offset;\n};\n\nvar getDropImpact = ({\n draggables,\n reason,\n lastImpact,\n home,\n viewport,\n onLiftImpact\n}) => {\n if (!lastImpact.at || reason !== 'DROP') {\n const recomputedHomeImpact = recompute({\n draggables,\n impact: onLiftImpact,\n destination: home,\n viewport,\n forceShouldAnimate: true\n });\n return {\n impact: recomputedHomeImpact,\n didDropInsideDroppable: false\n };\n }\n if (lastImpact.at.type === 'REORDER') {\n return {\n impact: lastImpact,\n didDropInsideDroppable: true\n };\n }\n const withoutMovement = {\n ...lastImpact,\n displaced: emptyGroups\n };\n return {\n impact: withoutMovement,\n didDropInsideDroppable: true\n };\n};\n\nconst dropMiddleware = ({\n getState,\n dispatch\n}) => next => action => {\n if (!guard(action, 'DROP')) {\n next(action);\n return;\n }\n const state = getState();\n const reason = action.payload.reason;\n if (state.phase === 'COLLECTING') {\n dispatch(dropPending({\n reason\n }));\n return;\n }\n if (state.phase === 'IDLE') {\n return;\n }\n const isWaitingForDrop = state.phase === 'DROP_PENDING' && state.isWaiting;\n !!isWaitingForDrop ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'A DROP action occurred while DROP_PENDING and still waiting') : invariant() : void 0;\n !(state.phase === 'DRAGGING' || state.phase === 'DROP_PENDING') ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Cannot drop in phase: ${state.phase}`) : invariant() : void 0;\n const critical = state.critical;\n const dimensions = state.dimensions;\n const draggable = dimensions.draggables[state.critical.draggable.id];\n const {\n impact,\n didDropInsideDroppable\n } = getDropImpact({\n reason,\n lastImpact: state.impact,\n afterCritical: state.afterCritical,\n onLiftImpact: state.onLiftImpact,\n home: state.dimensions.droppables[state.critical.droppable.id],\n viewport: state.viewport,\n draggables: state.dimensions.draggables\n });\n const destination = didDropInsideDroppable ? tryGetDestination(impact) : null;\n const combine = didDropInsideDroppable ? tryGetCombine(impact) : null;\n const source = {\n index: critical.draggable.index,\n droppableId: critical.droppable.id\n };\n const result = {\n draggableId: draggable.descriptor.id,\n type: draggable.descriptor.type,\n source,\n reason,\n mode: state.movementMode,\n destination,\n combine\n };\n const newHomeClientOffset = getNewHomeClientOffset({\n impact,\n draggable,\n dimensions,\n viewport: state.viewport,\n afterCritical: state.afterCritical\n });\n const completed = {\n critical: state.critical,\n afterCritical: state.afterCritical,\n result,\n impact\n };\n const isAnimationRequired = !isEqual$1(state.current.client.offset, newHomeClientOffset) || Boolean(result.combine);\n if (!isAnimationRequired) {\n dispatch(completeDrop({\n completed\n }));\n return;\n }\n const dropDuration = getDropDuration({\n current: state.current.client.offset,\n destination: newHomeClientOffset,\n reason\n });\n const args = {\n newHomeClientOffset,\n dropDuration,\n completed\n };\n dispatch(animateDrop(args));\n};\n\nvar getWindowScroll = () => ({\n x: window.pageXOffset,\n y: window.pageYOffset\n});\n\nfunction getWindowScrollBinding(update) {\n return {\n eventName: 'scroll',\n options: {\n passive: true,\n capture: false\n },\n fn: event => {\n if (event.target !== window && event.target !== window.document) {\n return;\n }\n update();\n }\n };\n}\nfunction getScrollListener({\n onWindowScroll\n}) {\n function updateScroll() {\n onWindowScroll(getWindowScroll());\n }\n const scheduled = rafSchd(updateScroll);\n const binding = getWindowScrollBinding(scheduled);\n let unbind = noop$2;\n function isActive() {\n return unbind !== noop$2;\n }\n function start() {\n !!isActive() ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot start scroll listener when already active') : invariant() : void 0;\n unbind = bindEvents(window, [binding]);\n }\n function stop() {\n !isActive() ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot stop scroll listener when not active') : invariant() : void 0;\n scheduled.cancel();\n unbind();\n unbind = noop$2;\n }\n return {\n start,\n stop,\n isActive\n };\n}\n\nconst shouldStop$1 = action => guard(action, 'DROP_COMPLETE') || guard(action, 'DROP_ANIMATE') || guard(action, 'FLUSH');\nconst scrollListener = store => {\n const listener = getScrollListener({\n onWindowScroll: newScroll => {\n store.dispatch(moveByWindowScroll({\n newScroll\n }));\n }\n });\n return next => action => {\n if (!listener.isActive() && guard(action, 'INITIAL_PUBLISH')) {\n listener.start();\n }\n if (listener.isActive() && shouldStop$1(action)) {\n listener.stop();\n }\n next(action);\n };\n};\n\nvar getExpiringAnnounce = announce => {\n let wasCalled = false;\n let isExpired = false;\n const timeoutId = setTimeout(() => {\n isExpired = true;\n });\n const result = message => {\n if (wasCalled) {\n process.env.NODE_ENV !== \"production\" ? warning('Announcement already made. Not making a second announcement') : void 0;\n return;\n }\n if (isExpired) {\n process.env.NODE_ENV !== \"production\" ? warning(`\n Announcements cannot be made asynchronously.\n Default message has already been announced.\n `) : void 0;\n return;\n }\n wasCalled = true;\n announce(message);\n clearTimeout(timeoutId);\n };\n result.wasCalled = () => wasCalled;\n return result;\n};\n\nvar getAsyncMarshal = () => {\n const entries = [];\n const execute = timerId => {\n const index = entries.findIndex(item => item.timerId === timerId);\n !(index !== -1) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Could not find timer') : invariant() : void 0;\n const [entry] = entries.splice(index, 1);\n entry.callback();\n };\n const add = fn => {\n const timerId = setTimeout(() => execute(timerId));\n const entry = {\n timerId,\n callback: fn\n };\n entries.push(entry);\n };\n const flush = () => {\n if (!entries.length) {\n return;\n }\n const shallow = [...entries];\n entries.length = 0;\n shallow.forEach(entry => {\n clearTimeout(entry.timerId);\n entry.callback();\n });\n };\n return {\n add,\n flush\n };\n};\n\nconst areLocationsEqual = (first, second) => {\n if (first == null && second == null) {\n return true;\n }\n if (first == null || second == null) {\n return false;\n }\n return first.droppableId === second.droppableId && first.index === second.index;\n};\nconst isCombineEqual = (first, second) => {\n if (first == null && second == null) {\n return true;\n }\n if (first == null || second == null) {\n return false;\n }\n return first.draggableId === second.draggableId && first.droppableId === second.droppableId;\n};\nconst isCriticalEqual = (first, second) => {\n if (first === second) {\n return true;\n }\n const isDraggableEqual = first.draggable.id === second.draggable.id && first.draggable.droppableId === second.draggable.droppableId && first.draggable.type === second.draggable.type && first.draggable.index === second.draggable.index;\n const isDroppableEqual = first.droppable.id === second.droppable.id && first.droppable.type === second.droppable.type;\n return isDraggableEqual && isDroppableEqual;\n};\n\nconst withTimings = (key, fn) => {\n start();\n fn();\n finish();\n};\nconst getDragStart = (critical, mode) => ({\n draggableId: critical.draggable.id,\n type: critical.droppable.type,\n source: {\n droppableId: critical.droppable.id,\n index: critical.draggable.index\n },\n mode\n});\nfunction execute(responder, data, announce, getDefaultMessage) {\n if (!responder) {\n announce(getDefaultMessage(data));\n return;\n }\n const willExpire = getExpiringAnnounce(announce);\n const provided = {\n announce: willExpire\n };\n responder(data, provided);\n if (!willExpire.wasCalled()) {\n announce(getDefaultMessage(data));\n }\n}\nvar getPublisher = (getResponders, announce) => {\n const asyncMarshal = getAsyncMarshal();\n let dragging = null;\n const beforeCapture = (draggableId, mode) => {\n !!dragging ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot fire onBeforeCapture as a drag start has already been published') : invariant() : void 0;\n withTimings('onBeforeCapture', () => {\n const fn = getResponders().onBeforeCapture;\n if (fn) {\n const before = {\n draggableId,\n mode\n };\n fn(before);\n }\n });\n };\n const beforeStart = (critical, mode) => {\n !!dragging ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot fire onBeforeDragStart as a drag start has already been published') : invariant() : void 0;\n withTimings('onBeforeDragStart', () => {\n const fn = getResponders().onBeforeDragStart;\n if (fn) {\n fn(getDragStart(critical, mode));\n }\n });\n };\n const start = (critical, mode) => {\n !!dragging ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot fire onBeforeDragStart as a drag start has already been published') : invariant() : void 0;\n const data = getDragStart(critical, mode);\n dragging = {\n mode,\n lastCritical: critical,\n lastLocation: data.source,\n lastCombine: null\n };\n asyncMarshal.add(() => {\n withTimings('onDragStart', () => execute(getResponders().onDragStart, data, announce, preset.onDragStart));\n });\n };\n const update = (critical, impact) => {\n const location = tryGetDestination(impact);\n const combine = tryGetCombine(impact);\n !dragging ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot fire onDragMove when onDragStart has not been called') : invariant() : void 0;\n const hasCriticalChanged = !isCriticalEqual(critical, dragging.lastCritical);\n if (hasCriticalChanged) {\n dragging.lastCritical = critical;\n }\n const hasLocationChanged = !areLocationsEqual(dragging.lastLocation, location);\n if (hasLocationChanged) {\n dragging.lastLocation = location;\n }\n const hasGroupingChanged = !isCombineEqual(dragging.lastCombine, combine);\n if (hasGroupingChanged) {\n dragging.lastCombine = combine;\n }\n if (!hasCriticalChanged && !hasLocationChanged && !hasGroupingChanged) {\n return;\n }\n const data = {\n ...getDragStart(critical, dragging.mode),\n combine,\n destination: location\n };\n asyncMarshal.add(() => {\n withTimings('onDragUpdate', () => execute(getResponders().onDragUpdate, data, announce, preset.onDragUpdate));\n });\n };\n const flush = () => {\n !dragging ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Can only flush responders while dragging') : invariant() : void 0;\n asyncMarshal.flush();\n };\n const drop = result => {\n !dragging ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot fire onDragEnd when there is no matching onDragStart') : invariant() : void 0;\n dragging = null;\n withTimings('onDragEnd', () => execute(getResponders().onDragEnd, result, announce, preset.onDragEnd));\n };\n const abort = () => {\n if (!dragging) {\n return;\n }\n const result = {\n ...getDragStart(dragging.lastCritical, dragging.mode),\n combine: null,\n destination: null,\n reason: 'CANCEL'\n };\n drop(result);\n };\n return {\n beforeCapture,\n beforeStart,\n start,\n update,\n flush,\n drop,\n abort\n };\n};\n\nvar responders = (getResponders, announce) => {\n const publisher = getPublisher(getResponders, announce);\n return store => next => action => {\n if (guard(action, 'BEFORE_INITIAL_CAPTURE')) {\n publisher.beforeCapture(action.payload.draggableId, action.payload.movementMode);\n return;\n }\n if (guard(action, 'INITIAL_PUBLISH')) {\n const critical = action.payload.critical;\n publisher.beforeStart(critical, action.payload.movementMode);\n next(action);\n publisher.start(critical, action.payload.movementMode);\n return;\n }\n if (guard(action, 'DROP_COMPLETE')) {\n const result = action.payload.completed.result;\n publisher.flush();\n next(action);\n publisher.drop(result);\n return;\n }\n next(action);\n if (guard(action, 'FLUSH')) {\n publisher.abort();\n return;\n }\n const state = store.getState();\n if (state.phase === 'DRAGGING') {\n publisher.update(state.critical, state.impact);\n }\n };\n};\n\nconst dropAnimationFinishMiddleware = store => next => action => {\n if (!guard(action, 'DROP_ANIMATION_FINISHED')) {\n next(action);\n return;\n }\n const state = store.getState();\n !(state.phase === 'DROP_ANIMATING') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot finish a drop animating when no drop is occurring') : invariant() : void 0;\n store.dispatch(completeDrop({\n completed: state.completed\n }));\n};\n\nconst dropAnimationFlushOnScrollMiddleware = store => {\n let unbind = null;\n let frameId = null;\n function clear() {\n if (frameId) {\n cancelAnimationFrame(frameId);\n frameId = null;\n }\n if (unbind) {\n unbind();\n unbind = null;\n }\n }\n return next => action => {\n if (guard(action, 'FLUSH') || guard(action, 'DROP_COMPLETE') || guard(action, 'DROP_ANIMATION_FINISHED')) {\n clear();\n }\n next(action);\n if (!guard(action, 'DROP_ANIMATE')) {\n return;\n }\n const binding = {\n eventName: 'scroll',\n options: {\n capture: true,\n passive: false,\n once: true\n },\n fn: function flushDropAnimation() {\n const state = store.getState();\n if (state.phase === 'DROP_ANIMATING') {\n store.dispatch(dropAnimationFinished());\n }\n }\n };\n frameId = requestAnimationFrame(() => {\n frameId = null;\n unbind = bindEvents(window, [binding]);\n });\n };\n};\n\nvar dimensionMarshalStopper = marshal => () => next => action => {\n if (guard(action, 'DROP_COMPLETE') || guard(action, 'FLUSH') || guard(action, 'DROP_ANIMATE')) {\n marshal.stopPublishing();\n }\n next(action);\n};\n\nvar focus = marshal => {\n let isWatching = false;\n return () => next => action => {\n if (guard(action, 'INITIAL_PUBLISH')) {\n isWatching = true;\n marshal.tryRecordFocus(action.payload.critical.draggable.id);\n next(action);\n marshal.tryRestoreFocusRecorded();\n return;\n }\n next(action);\n if (!isWatching) {\n return;\n }\n if (guard(action, 'FLUSH')) {\n isWatching = false;\n marshal.tryRestoreFocusRecorded();\n return;\n }\n if (guard(action, 'DROP_COMPLETE')) {\n isWatching = false;\n const result = action.payload.completed.result;\n if (result.combine) {\n marshal.tryShiftRecord(result.draggableId, result.combine.draggableId);\n }\n marshal.tryRestoreFocusRecorded();\n }\n };\n};\n\nconst shouldStop = action => guard(action, 'DROP_COMPLETE') || guard(action, 'DROP_ANIMATE') || guard(action, 'FLUSH');\nvar autoScroll = autoScroller => store => next => action => {\n if (shouldStop(action)) {\n autoScroller.stop();\n next(action);\n return;\n }\n if (guard(action, 'INITIAL_PUBLISH')) {\n next(action);\n const state = store.getState();\n !(state.phase === 'DRAGGING') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected phase to be DRAGGING after INITIAL_PUBLISH') : invariant() : void 0;\n autoScroller.start(state);\n return;\n }\n next(action);\n autoScroller.scroll(store.getState());\n};\n\nconst pendingDrop = store => next => action => {\n next(action);\n if (!guard(action, 'PUBLISH_WHILE_DRAGGING')) {\n return;\n }\n const postActionState = store.getState();\n if (postActionState.phase !== 'DROP_PENDING') {\n return;\n }\n if (postActionState.isWaiting) {\n return;\n }\n store.dispatch(drop({\n reason: postActionState.reason\n }));\n};\n\nconst composeEnhancers = process.env.NODE_ENV !== 'production' && typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({\n name: '@hello-pangea/dnd'\n}) : compose;\nvar createStore = ({\n dimensionMarshal,\n focusMarshal,\n styleMarshal,\n getResponders,\n announce,\n autoScroller\n}) => createStore$1(reducer, composeEnhancers(applyMiddleware(style(styleMarshal), dimensionMarshalStopper(dimensionMarshal), lift(dimensionMarshal), dropMiddleware, dropAnimationFinishMiddleware, dropAnimationFlushOnScrollMiddleware, pendingDrop, autoScroll(autoScroller), scrollListener, focus(focusMarshal), responders(getResponders, announce))));\n\nconst clean$1 = () => ({\n additions: {},\n removals: {},\n modified: {}\n});\nfunction createPublisher({\n registry,\n callbacks\n}) {\n let staging = clean$1();\n let frameId = null;\n const collect = () => {\n if (frameId) {\n return;\n }\n callbacks.collectionStarting();\n frameId = requestAnimationFrame(() => {\n frameId = null;\n start();\n const {\n additions,\n removals,\n modified\n } = staging;\n const added = Object.keys(additions).map(id => registry.draggable.getById(id).getDimension(origin)).sort((a, b) => a.descriptor.index - b.descriptor.index);\n const updated = Object.keys(modified).map(id => {\n const entry = registry.droppable.getById(id);\n const scroll = entry.callbacks.getScrollWhileDragging();\n return {\n droppableId: id,\n scroll\n };\n });\n const result = {\n additions: added,\n removals: Object.keys(removals),\n modified: updated\n };\n staging = clean$1();\n finish();\n callbacks.publish(result);\n });\n };\n const add = entry => {\n const id = entry.descriptor.id;\n staging.additions[id] = entry;\n staging.modified[entry.descriptor.droppableId] = true;\n if (staging.removals[id]) {\n delete staging.removals[id];\n }\n collect();\n };\n const remove = entry => {\n const descriptor = entry.descriptor;\n staging.removals[descriptor.id] = true;\n staging.modified[descriptor.droppableId] = true;\n if (staging.additions[descriptor.id]) {\n delete staging.additions[descriptor.id];\n }\n collect();\n };\n const stop = () => {\n if (!frameId) {\n return;\n }\n cancelAnimationFrame(frameId);\n frameId = null;\n staging = clean$1();\n };\n return {\n add,\n remove,\n stop\n };\n}\n\nvar getMaxScroll = ({\n scrollHeight,\n scrollWidth,\n height,\n width\n}) => {\n const maxScroll = subtract({\n x: scrollWidth,\n y: scrollHeight\n }, {\n x: width,\n y: height\n });\n const adjustedMaxScroll = {\n x: Math.max(0, maxScroll.x),\n y: Math.max(0, maxScroll.y)\n };\n return adjustedMaxScroll;\n};\n\nvar getDocumentElement = () => {\n const doc = document.documentElement;\n !doc ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot find document.documentElement') : invariant() : void 0;\n return doc;\n};\n\nvar getMaxWindowScroll = () => {\n const doc = getDocumentElement();\n const maxScroll = getMaxScroll({\n scrollHeight: doc.scrollHeight,\n scrollWidth: doc.scrollWidth,\n width: doc.clientWidth,\n height: doc.clientHeight\n });\n return maxScroll;\n};\n\nvar getViewport = () => {\n const scroll = getWindowScroll();\n const maxScroll = getMaxWindowScroll();\n const top = scroll.y;\n const left = scroll.x;\n const doc = getDocumentElement();\n const width = doc.clientWidth;\n const height = doc.clientHeight;\n const right = left + width;\n const bottom = top + height;\n const frame = getRect({\n top,\n left,\n right,\n bottom\n });\n const viewport = {\n frame,\n scroll: {\n initial: scroll,\n current: scroll,\n max: maxScroll,\n diff: {\n value: origin,\n displacement: origin\n }\n }\n };\n return viewport;\n};\n\nvar getInitialPublish = ({\n critical,\n scrollOptions,\n registry\n}) => {\n start();\n const viewport = getViewport();\n const windowScroll = viewport.scroll.current;\n const home = critical.droppable;\n const droppables = registry.droppable.getAllByType(home.type).map(entry => entry.callbacks.getDimensionAndWatchScroll(windowScroll, scrollOptions));\n const draggables = registry.draggable.getAllByType(critical.draggable.type).map(entry => entry.getDimension(windowScroll));\n const dimensions = {\n draggables: toDraggableMap(draggables),\n droppables: toDroppableMap(droppables)\n };\n finish();\n const result = {\n dimensions,\n critical,\n viewport\n };\n return result;\n};\n\nfunction shouldPublishUpdate(registry, dragging, entry) {\n if (entry.descriptor.id === dragging.id) {\n return false;\n }\n if (entry.descriptor.type !== dragging.type) {\n return false;\n }\n const home = registry.droppable.getById(entry.descriptor.droppableId);\n if (home.descriptor.mode !== 'virtual') {\n process.env.NODE_ENV !== \"production\" ? warning(`\n You are attempting to add or remove a Draggable [id: ${entry.descriptor.id}]\n while a drag is occurring. This is only supported for virtual lists.\n\n See https://github.com/hello-pangea/dnd/blob/main/docs/patterns/virtual-lists.md\n `) : void 0;\n return false;\n }\n return true;\n}\nvar createDimensionMarshal = (registry, callbacks) => {\n let collection = null;\n const publisher = createPublisher({\n callbacks: {\n publish: callbacks.publishWhileDragging,\n collectionStarting: callbacks.collectionStarting\n },\n registry\n });\n const updateDroppableIsEnabled = (id, isEnabled) => {\n !registry.droppable.exists(id) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Cannot update is enabled flag of Droppable ${id} as it is not registered`) : invariant() : void 0;\n if (!collection) {\n return;\n }\n callbacks.updateDroppableIsEnabled({\n id,\n isEnabled\n });\n };\n const updateDroppableIsCombineEnabled = (id, isCombineEnabled) => {\n if (!collection) {\n return;\n }\n !registry.droppable.exists(id) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Cannot update isCombineEnabled flag of Droppable ${id} as it is not registered`) : invariant() : void 0;\n callbacks.updateDroppableIsCombineEnabled({\n id,\n isCombineEnabled\n });\n };\n const updateDroppableScroll = (id, newScroll) => {\n if (!collection) {\n return;\n }\n !registry.droppable.exists(id) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Cannot update the scroll on Droppable ${id} as it is not registered`) : invariant() : void 0;\n callbacks.updateDroppableScroll({\n id,\n newScroll\n });\n };\n const scrollDroppable = (id, change) => {\n if (!collection) {\n return;\n }\n registry.droppable.getById(id).callbacks.scroll(change);\n };\n const stopPublishing = () => {\n if (!collection) {\n return;\n }\n publisher.stop();\n const home = collection.critical.droppable;\n registry.droppable.getAllByType(home.type).forEach(entry => entry.callbacks.dragStopped());\n collection.unsubscribe();\n collection = null;\n };\n const subscriber = event => {\n !collection ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Should only be subscribed when a collection is occurring') : invariant() : void 0;\n const dragging = collection.critical.draggable;\n if (event.type === 'ADDITION') {\n if (shouldPublishUpdate(registry, dragging, event.value)) {\n publisher.add(event.value);\n }\n }\n if (event.type === 'REMOVAL') {\n if (shouldPublishUpdate(registry, dragging, event.value)) {\n publisher.remove(event.value);\n }\n }\n };\n const startPublishing = request => {\n !!collection ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot start capturing critical dimensions as there is already a collection') : invariant() : void 0;\n const entry = registry.draggable.getById(request.draggableId);\n const home = registry.droppable.getById(entry.descriptor.droppableId);\n const critical = {\n draggable: entry.descriptor,\n droppable: home.descriptor\n };\n const unsubscribe = registry.subscribe(subscriber);\n collection = {\n critical,\n unsubscribe\n };\n return getInitialPublish({\n critical,\n registry,\n scrollOptions: request.scrollOptions\n });\n };\n const marshal = {\n updateDroppableIsEnabled,\n updateDroppableIsCombineEnabled,\n scrollDroppable,\n updateDroppableScroll,\n startPublishing,\n stopPublishing\n };\n return marshal;\n};\n\nvar canStartDrag = (state, id) => {\n if (state.phase === 'IDLE') {\n return true;\n }\n if (state.phase !== 'DROP_ANIMATING') {\n return false;\n }\n if (state.completed.result.draggableId === id) {\n return false;\n }\n return state.completed.result.reason === 'DROP';\n};\n\nvar scrollWindow = change => {\n window.scrollBy(change.x, change.y);\n};\n\nconst getScrollableDroppables = memoizeOne(droppables => toDroppableList(droppables).filter(droppable => {\n if (!droppable.isEnabled) {\n return false;\n }\n if (!droppable.frame) {\n return false;\n }\n return true;\n}));\nconst getScrollableDroppableOver = (target, droppables) => {\n const maybe = getScrollableDroppables(droppables).find(droppable => {\n !droppable.frame ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Invalid result') : invariant() : void 0;\n return isPositionInFrame(droppable.frame.pageMarginBox)(target);\n }) || null;\n return maybe;\n};\nvar getBestScrollableDroppable = ({\n center,\n destination,\n droppables\n}) => {\n if (destination) {\n const dimension = droppables[destination];\n if (!dimension.frame) {\n return null;\n }\n return dimension;\n }\n const dimension = getScrollableDroppableOver(center, droppables);\n return dimension;\n};\n\nconst defaultAutoScrollerOptions = {\n startFromPercentage: 0.25,\n maxScrollAtPercentage: 0.05,\n maxPixelScroll: 28,\n ease: percentage => percentage ** 2,\n durationDampening: {\n stopDampeningAt: 1200,\n accelerateAt: 360\n },\n disabled: false\n};\n\nvar getDistanceThresholds = (container, axis, getAutoScrollerOptions = () => defaultAutoScrollerOptions) => {\n const autoScrollerOptions = getAutoScrollerOptions();\n const startScrollingFrom = container[axis.size] * autoScrollerOptions.startFromPercentage;\n const maxScrollValueAt = container[axis.size] * autoScrollerOptions.maxScrollAtPercentage;\n const thresholds = {\n startScrollingFrom,\n maxScrollValueAt\n };\n return thresholds;\n};\n\nvar getPercentage = ({\n startOfRange,\n endOfRange,\n current\n}) => {\n const range = endOfRange - startOfRange;\n if (range === 0) {\n process.env.NODE_ENV !== \"production\" ? warning(`\n Detected distance range of 0 in the fluid auto scroller\n This is unexpected and would cause a divide by 0 issue.\n Not allowing an auto scroll\n `) : void 0;\n return 0;\n }\n const currentInRange = current - startOfRange;\n const percentage = currentInRange / range;\n return percentage;\n};\n\nvar minScroll = 1;\n\nvar getValueFromDistance = (distanceToEdge, thresholds, getAutoScrollerOptions = () => defaultAutoScrollerOptions) => {\n const autoScrollerOptions = getAutoScrollerOptions();\n if (distanceToEdge > thresholds.startScrollingFrom) {\n return 0;\n }\n if (distanceToEdge <= thresholds.maxScrollValueAt) {\n return autoScrollerOptions.maxPixelScroll;\n }\n if (distanceToEdge === thresholds.startScrollingFrom) {\n return minScroll;\n }\n const percentageFromMaxScrollValueAt = getPercentage({\n startOfRange: thresholds.maxScrollValueAt,\n endOfRange: thresholds.startScrollingFrom,\n current: distanceToEdge\n });\n const percentageFromStartScrollingFrom = 1 - percentageFromMaxScrollValueAt;\n const scroll = autoScrollerOptions.maxPixelScroll * autoScrollerOptions.ease(percentageFromStartScrollingFrom);\n return Math.ceil(scroll);\n};\n\nvar dampenValueByTime = (proposedScroll, dragStartTime, getAutoScrollerOptions) => {\n const autoScrollerOptions = getAutoScrollerOptions();\n const accelerateAt = autoScrollerOptions.durationDampening.accelerateAt;\n const stopAt = autoScrollerOptions.durationDampening.stopDampeningAt;\n const startOfRange = dragStartTime;\n const endOfRange = stopAt;\n const now = Date.now();\n const runTime = now - startOfRange;\n if (runTime >= stopAt) {\n return proposedScroll;\n }\n if (runTime < accelerateAt) {\n return minScroll;\n }\n const betweenAccelerateAtAndStopAtPercentage = getPercentage({\n startOfRange: accelerateAt,\n endOfRange,\n current: runTime\n });\n const scroll = proposedScroll * autoScrollerOptions.ease(betweenAccelerateAtAndStopAtPercentage);\n return Math.ceil(scroll);\n};\n\nvar getValue = ({\n distanceToEdge,\n thresholds,\n dragStartTime,\n shouldUseTimeDampening,\n getAutoScrollerOptions\n}) => {\n const scroll = getValueFromDistance(distanceToEdge, thresholds, getAutoScrollerOptions);\n if (scroll === 0) {\n return 0;\n }\n if (!shouldUseTimeDampening) {\n return scroll;\n }\n return Math.max(dampenValueByTime(scroll, dragStartTime, getAutoScrollerOptions), minScroll);\n};\n\nvar getScrollOnAxis = ({\n container,\n distanceToEdges,\n dragStartTime,\n axis,\n shouldUseTimeDampening,\n getAutoScrollerOptions\n}) => {\n const thresholds = getDistanceThresholds(container, axis, getAutoScrollerOptions);\n const isCloserToEnd = distanceToEdges[axis.end] < distanceToEdges[axis.start];\n if (isCloserToEnd) {\n return getValue({\n distanceToEdge: distanceToEdges[axis.end],\n thresholds,\n dragStartTime,\n shouldUseTimeDampening,\n getAutoScrollerOptions\n });\n }\n return -1 * getValue({\n distanceToEdge: distanceToEdges[axis.start],\n thresholds,\n dragStartTime,\n shouldUseTimeDampening,\n getAutoScrollerOptions\n });\n};\n\nvar adjustForSizeLimits = ({\n container,\n subject,\n proposedScroll\n}) => {\n const isTooBigVertically = subject.height > container.height;\n const isTooBigHorizontally = subject.width > container.width;\n if (!isTooBigHorizontally && !isTooBigVertically) {\n return proposedScroll;\n }\n if (isTooBigHorizontally && isTooBigVertically) {\n return null;\n }\n return {\n x: isTooBigHorizontally ? 0 : proposedScroll.x,\n y: isTooBigVertically ? 0 : proposedScroll.y\n };\n};\n\nconst clean = apply(value => value === 0 ? 0 : value);\nvar getScroll$1 = ({\n dragStartTime,\n container,\n subject,\n center,\n shouldUseTimeDampening,\n getAutoScrollerOptions\n}) => {\n const distanceToEdges = {\n top: center.y - container.top,\n right: container.right - center.x,\n bottom: container.bottom - center.y,\n left: center.x - container.left\n };\n const y = getScrollOnAxis({\n container,\n distanceToEdges,\n dragStartTime,\n axis: vertical,\n shouldUseTimeDampening,\n getAutoScrollerOptions\n });\n const x = getScrollOnAxis({\n container,\n distanceToEdges,\n dragStartTime,\n axis: horizontal,\n shouldUseTimeDampening,\n getAutoScrollerOptions\n });\n const required = clean({\n x,\n y\n });\n if (isEqual$1(required, origin)) {\n return null;\n }\n const limited = adjustForSizeLimits({\n container,\n subject,\n proposedScroll: required\n });\n if (!limited) {\n return null;\n }\n return isEqual$1(limited, origin) ? null : limited;\n};\n\nconst smallestSigned = apply(value => {\n if (value === 0) {\n return 0;\n }\n return value > 0 ? 1 : -1;\n});\nconst getOverlap = (() => {\n const getRemainder = (target, max) => {\n if (target < 0) {\n return target;\n }\n if (target > max) {\n return target - max;\n }\n return 0;\n };\n return ({\n current,\n max,\n change\n }) => {\n const targetScroll = add(current, change);\n const overlap = {\n x: getRemainder(targetScroll.x, max.x),\n y: getRemainder(targetScroll.y, max.y)\n };\n if (isEqual$1(overlap, origin)) {\n return null;\n }\n return overlap;\n };\n})();\nconst canPartiallyScroll = ({\n max: rawMax,\n current,\n change\n}) => {\n const max = {\n x: Math.max(current.x, rawMax.x),\n y: Math.max(current.y, rawMax.y)\n };\n const smallestChange = smallestSigned(change);\n const overlap = getOverlap({\n max,\n current,\n change: smallestChange\n });\n if (!overlap) {\n return true;\n }\n if (smallestChange.x !== 0 && overlap.x === 0) {\n return true;\n }\n if (smallestChange.y !== 0 && overlap.y === 0) {\n return true;\n }\n return false;\n};\nconst canScrollWindow = (viewport, change) => canPartiallyScroll({\n current: viewport.scroll.current,\n max: viewport.scroll.max,\n change\n});\nconst getWindowOverlap = (viewport, change) => {\n if (!canScrollWindow(viewport, change)) {\n return null;\n }\n const max = viewport.scroll.max;\n const current = viewport.scroll.current;\n return getOverlap({\n current,\n max,\n change\n });\n};\nconst canScrollDroppable = (droppable, change) => {\n const frame = droppable.frame;\n if (!frame) {\n return false;\n }\n return canPartiallyScroll({\n current: frame.scroll.current,\n max: frame.scroll.max,\n change\n });\n};\nconst getDroppableOverlap = (droppable, change) => {\n const frame = droppable.frame;\n if (!frame) {\n return null;\n }\n if (!canScrollDroppable(droppable, change)) {\n return null;\n }\n return getOverlap({\n current: frame.scroll.current,\n max: frame.scroll.max,\n change\n });\n};\n\nvar getWindowScrollChange = ({\n viewport,\n subject,\n center,\n dragStartTime,\n shouldUseTimeDampening,\n getAutoScrollerOptions\n}) => {\n const scroll = getScroll$1({\n dragStartTime,\n container: viewport.frame,\n subject,\n center,\n shouldUseTimeDampening,\n getAutoScrollerOptions\n });\n return scroll && canScrollWindow(viewport, scroll) ? scroll : null;\n};\n\nvar getDroppableScrollChange = ({\n droppable,\n subject,\n center,\n dragStartTime,\n shouldUseTimeDampening,\n getAutoScrollerOptions\n}) => {\n const frame = droppable.frame;\n if (!frame) {\n return null;\n }\n const scroll = getScroll$1({\n dragStartTime,\n container: frame.pageMarginBox,\n subject,\n center,\n shouldUseTimeDampening,\n getAutoScrollerOptions\n });\n return scroll && canScrollDroppable(droppable, scroll) ? scroll : null;\n};\n\nvar scroll = ({\n state,\n dragStartTime,\n shouldUseTimeDampening,\n scrollWindow,\n scrollDroppable,\n getAutoScrollerOptions\n}) => {\n const center = state.current.page.borderBoxCenter;\n const draggable = state.dimensions.draggables[state.critical.draggable.id];\n const subject = draggable.page.marginBox;\n if (state.isWindowScrollAllowed) {\n const viewport = state.viewport;\n const change = getWindowScrollChange({\n dragStartTime,\n viewport,\n subject,\n center,\n shouldUseTimeDampening,\n getAutoScrollerOptions\n });\n if (change) {\n scrollWindow(change);\n return;\n }\n }\n const droppable = getBestScrollableDroppable({\n center,\n destination: whatIsDraggedOver(state.impact),\n droppables: state.dimensions.droppables\n });\n if (!droppable) {\n return;\n }\n const change = getDroppableScrollChange({\n dragStartTime,\n droppable,\n subject,\n center,\n shouldUseTimeDampening,\n getAutoScrollerOptions\n });\n if (change) {\n scrollDroppable(droppable.descriptor.id, change);\n }\n};\n\nvar createFluidScroller = ({\n scrollWindow,\n scrollDroppable,\n getAutoScrollerOptions = () => defaultAutoScrollerOptions\n}) => {\n const scheduleWindowScroll = rafSchd(scrollWindow);\n const scheduleDroppableScroll = rafSchd(scrollDroppable);\n let dragging = null;\n const tryScroll = state => {\n !dragging ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot fluid scroll if not dragging') : invariant() : void 0;\n const {\n shouldUseTimeDampening,\n dragStartTime\n } = dragging;\n scroll({\n state,\n scrollWindow: scheduleWindowScroll,\n scrollDroppable: scheduleDroppableScroll,\n dragStartTime,\n shouldUseTimeDampening,\n getAutoScrollerOptions\n });\n };\n const start$1 = state => {\n start();\n !!dragging ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot start auto scrolling when already started') : invariant() : void 0;\n const dragStartTime = Date.now();\n let wasScrollNeeded = false;\n const fakeScrollCallback = () => {\n wasScrollNeeded = true;\n };\n scroll({\n state,\n dragStartTime: 0,\n shouldUseTimeDampening: false,\n scrollWindow: fakeScrollCallback,\n scrollDroppable: fakeScrollCallback,\n getAutoScrollerOptions\n });\n dragging = {\n dragStartTime,\n shouldUseTimeDampening: wasScrollNeeded\n };\n finish();\n if (wasScrollNeeded) {\n tryScroll(state);\n }\n };\n const stop = () => {\n if (!dragging) {\n return;\n }\n scheduleWindowScroll.cancel();\n scheduleDroppableScroll.cancel();\n dragging = null;\n };\n return {\n start: start$1,\n stop,\n scroll: tryScroll\n };\n};\n\nvar createJumpScroller = ({\n move,\n scrollDroppable,\n scrollWindow\n}) => {\n const moveByOffset = (state, offset) => {\n const client = add(state.current.client.selection, offset);\n move({\n client\n });\n };\n const scrollDroppableAsMuchAsItCan = (droppable, change) => {\n if (!canScrollDroppable(droppable, change)) {\n return change;\n }\n const overlap = getDroppableOverlap(droppable, change);\n if (!overlap) {\n scrollDroppable(droppable.descriptor.id, change);\n return null;\n }\n const whatTheDroppableCanScroll = subtract(change, overlap);\n scrollDroppable(droppable.descriptor.id, whatTheDroppableCanScroll);\n const remainder = subtract(change, whatTheDroppableCanScroll);\n return remainder;\n };\n const scrollWindowAsMuchAsItCan = (isWindowScrollAllowed, viewport, change) => {\n if (!isWindowScrollAllowed) {\n return change;\n }\n if (!canScrollWindow(viewport, change)) {\n return change;\n }\n const overlap = getWindowOverlap(viewport, change);\n if (!overlap) {\n scrollWindow(change);\n return null;\n }\n const whatTheWindowCanScroll = subtract(change, overlap);\n scrollWindow(whatTheWindowCanScroll);\n const remainder = subtract(change, whatTheWindowCanScroll);\n return remainder;\n };\n const jumpScroller = state => {\n const request = state.scrollJumpRequest;\n if (!request) {\n return;\n }\n const destination = whatIsDraggedOver(state.impact);\n !destination ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot perform a jump scroll when there is no destination') : invariant() : void 0;\n const droppableRemainder = scrollDroppableAsMuchAsItCan(state.dimensions.droppables[destination], request);\n if (!droppableRemainder) {\n return;\n }\n const viewport = state.viewport;\n const windowRemainder = scrollWindowAsMuchAsItCan(state.isWindowScrollAllowed, viewport, droppableRemainder);\n if (!windowRemainder) {\n return;\n }\n moveByOffset(state, windowRemainder);\n };\n return jumpScroller;\n};\n\nvar createAutoScroller = ({\n scrollDroppable,\n scrollWindow,\n move,\n getAutoScrollerOptions\n}) => {\n const fluidScroller = createFluidScroller({\n scrollWindow,\n scrollDroppable,\n getAutoScrollerOptions\n });\n const jumpScroll = createJumpScroller({\n move,\n scrollWindow,\n scrollDroppable\n });\n const scroll = state => {\n const autoScrollerOptions = getAutoScrollerOptions();\n if (autoScrollerOptions.disabled || state.phase !== 'DRAGGING') {\n return;\n }\n if (state.movementMode === 'FLUID') {\n fluidScroller.scroll(state);\n return;\n }\n if (!state.scrollJumpRequest) {\n return;\n }\n jumpScroll(state);\n };\n const scroller = {\n scroll,\n start: fluidScroller.start,\n stop: fluidScroller.stop\n };\n return scroller;\n};\n\nconst prefix = 'data-rfd';\nconst dragHandle = (() => {\n const base = `${prefix}-drag-handle`;\n return {\n base,\n draggableId: `${base}-draggable-id`,\n contextId: `${base}-context-id`\n };\n})();\nconst draggable = (() => {\n const base = `${prefix}-draggable`;\n return {\n base,\n contextId: `${base}-context-id`,\n id: `${base}-id`\n };\n})();\nconst droppable = (() => {\n const base = `${prefix}-droppable`;\n return {\n base,\n contextId: `${base}-context-id`,\n id: `${base}-id`\n };\n})();\nconst scrollContainer = {\n contextId: `${prefix}-scroll-container-context-id`\n};\n\nconst makeGetSelector = context => attribute => `[${attribute}=\"${context}\"]`;\nconst getStyles = (rules, property) => rules.map(rule => {\n const value = rule.styles[property];\n if (!value) {\n return '';\n }\n return `${rule.selector} { ${value} }`;\n}).join(' ');\nconst noPointerEvents = 'pointer-events: none;';\nvar getStyles$1 = contextId => {\n const getSelector = makeGetSelector(contextId);\n const dragHandle$1 = (() => {\n const grabCursor = `\n cursor: -webkit-grab;\n cursor: grab;\n `;\n return {\n selector: getSelector(dragHandle.contextId),\n styles: {\n always: `\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n `,\n resting: grabCursor,\n dragging: noPointerEvents,\n dropAnimating: grabCursor\n }\n };\n })();\n const draggable$1 = (() => {\n const transition = `\n transition: ${transitions.outOfTheWay};\n `;\n return {\n selector: getSelector(draggable.contextId),\n styles: {\n dragging: transition,\n dropAnimating: transition,\n userCancel: transition\n }\n };\n })();\n const droppable$1 = {\n selector: getSelector(droppable.contextId),\n styles: {\n always: `overflow-anchor: none;`\n }\n };\n const body = {\n selector: 'body',\n styles: {\n dragging: `\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n `\n }\n };\n const rules = [draggable$1, dragHandle$1, droppable$1, body];\n return {\n always: getStyles(rules, 'always'),\n resting: getStyles(rules, 'resting'),\n dragging: getStyles(rules, 'dragging'),\n dropAnimating: getStyles(rules, 'dropAnimating'),\n userCancel: getStyles(rules, 'userCancel')\n };\n};\n\nconst useIsomorphicLayoutEffect = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? useLayoutEffect : useEffect;\n\nconst getHead = () => {\n const head = document.querySelector('head');\n !head ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot find the head to append a style to') : invariant() : void 0;\n return head;\n};\nconst createStyleEl = nonce => {\n const el = document.createElement('style');\n if (nonce) {\n el.setAttribute('nonce', nonce);\n }\n el.type = 'text/css';\n return el;\n};\nfunction useStyleMarshal(contextId, nonce) {\n const styles = useMemo(() => getStyles$1(contextId), [contextId]);\n const alwaysRef = useRef(null);\n const dynamicRef = useRef(null);\n const setDynamicStyle = useCallback(memoizeOne(proposed => {\n const el = dynamicRef.current;\n !el ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot set dynamic style element if it is not set') : invariant() : void 0;\n el.textContent = proposed;\n }), []);\n const setAlwaysStyle = useCallback(proposed => {\n const el = alwaysRef.current;\n !el ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot set dynamic style element if it is not set') : invariant() : void 0;\n el.textContent = proposed;\n }, []);\n useIsomorphicLayoutEffect(() => {\n !(!alwaysRef.current && !dynamicRef.current) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'style elements already mounted') : invariant() : void 0;\n const always = createStyleEl(nonce);\n const dynamic = createStyleEl(nonce);\n alwaysRef.current = always;\n dynamicRef.current = dynamic;\n always.setAttribute(`${prefix}-always`, contextId);\n dynamic.setAttribute(`${prefix}-dynamic`, contextId);\n getHead().appendChild(always);\n getHead().appendChild(dynamic);\n setAlwaysStyle(styles.always);\n setDynamicStyle(styles.resting);\n return () => {\n const remove = ref => {\n const current = ref.current;\n !current ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot unmount ref as it is not set') : invariant() : void 0;\n getHead().removeChild(current);\n ref.current = null;\n };\n remove(alwaysRef);\n remove(dynamicRef);\n };\n }, [nonce, setAlwaysStyle, setDynamicStyle, styles.always, styles.resting, contextId]);\n const dragging = useCallback(() => setDynamicStyle(styles.dragging), [setDynamicStyle, styles.dragging]);\n const dropping = useCallback(reason => {\n if (reason === 'DROP') {\n setDynamicStyle(styles.dropAnimating);\n return;\n }\n setDynamicStyle(styles.userCancel);\n }, [setDynamicStyle, styles.dropAnimating, styles.userCancel]);\n const resting = useCallback(() => {\n if (!dynamicRef.current) {\n return;\n }\n setDynamicStyle(styles.resting);\n }, [setDynamicStyle, styles.resting]);\n const marshal = useMemo(() => ({\n dragging,\n dropping,\n resting\n }), [dragging, dropping, resting]);\n return marshal;\n}\n\nfunction querySelectorAll(parentNode, selector) {\n return Array.from(parentNode.querySelectorAll(selector));\n}\n\nvar getWindowFromEl = el => {\n if (el && el.ownerDocument && el.ownerDocument.defaultView) {\n return el.ownerDocument.defaultView;\n }\n return window;\n};\n\nfunction isHtmlElement(el) {\n return el instanceof getWindowFromEl(el).HTMLElement;\n}\n\nfunction findDragHandle(contextId, draggableId) {\n const selector = `[${dragHandle.contextId}=\"${contextId}\"]`;\n const possible = querySelectorAll(document, selector);\n if (!possible.length) {\n process.env.NODE_ENV !== \"production\" ? warning(`Unable to find any drag handles in the context \"${contextId}\"`) : void 0;\n return null;\n }\n const handle = possible.find(el => {\n return el.getAttribute(dragHandle.draggableId) === draggableId;\n });\n if (!handle) {\n process.env.NODE_ENV !== \"production\" ? warning(`Unable to find drag handle with id \"${draggableId}\" as no handle with a matching id was found`) : void 0;\n return null;\n }\n if (!isHtmlElement(handle)) {\n process.env.NODE_ENV !== \"production\" ? warning('drag handle needs to be a HTMLElement') : void 0;\n return null;\n }\n return handle;\n}\n\nfunction useFocusMarshal(contextId) {\n const entriesRef = useRef({});\n const recordRef = useRef(null);\n const restoreFocusFrameRef = useRef(null);\n const isMountedRef = useRef(false);\n const register = useCallback(function register(id, focus) {\n const entry = {\n id,\n focus\n };\n entriesRef.current[id] = entry;\n return function unregister() {\n const entries = entriesRef.current;\n const current = entries[id];\n if (current !== entry) {\n delete entries[id];\n }\n };\n }, []);\n const tryGiveFocus = useCallback(function tryGiveFocus(tryGiveFocusTo) {\n const handle = findDragHandle(contextId, tryGiveFocusTo);\n if (handle && handle !== document.activeElement) {\n handle.focus();\n }\n }, [contextId]);\n const tryShiftRecord = useCallback(function tryShiftRecord(previous, redirectTo) {\n if (recordRef.current === previous) {\n recordRef.current = redirectTo;\n }\n }, []);\n const tryRestoreFocusRecorded = useCallback(function tryRestoreFocusRecorded() {\n if (restoreFocusFrameRef.current) {\n return;\n }\n if (!isMountedRef.current) {\n return;\n }\n restoreFocusFrameRef.current = requestAnimationFrame(() => {\n restoreFocusFrameRef.current = null;\n const record = recordRef.current;\n if (record) {\n tryGiveFocus(record);\n }\n });\n }, [tryGiveFocus]);\n const tryRecordFocus = useCallback(function tryRecordFocus(id) {\n recordRef.current = null;\n const focused = document.activeElement;\n if (!focused) {\n return;\n }\n if (focused.getAttribute(dragHandle.draggableId) !== id) {\n return;\n }\n recordRef.current = id;\n }, []);\n useIsomorphicLayoutEffect(() => {\n isMountedRef.current = true;\n return function clearFrameOnUnmount() {\n isMountedRef.current = false;\n const frameId = restoreFocusFrameRef.current;\n if (frameId) {\n cancelAnimationFrame(frameId);\n }\n };\n }, []);\n const marshal = useMemo(() => ({\n register,\n tryRecordFocus,\n tryRestoreFocusRecorded,\n tryShiftRecord\n }), [register, tryRecordFocus, tryRestoreFocusRecorded, tryShiftRecord]);\n return marshal;\n}\n\nfunction createRegistry() {\n const entries = {\n draggables: {},\n droppables: {}\n };\n const subscribers = [];\n function subscribe(cb) {\n subscribers.push(cb);\n return function unsubscribe() {\n const index = subscribers.indexOf(cb);\n if (index === -1) {\n return;\n }\n subscribers.splice(index, 1);\n };\n }\n function notify(event) {\n if (subscribers.length) {\n subscribers.forEach(cb => cb(event));\n }\n }\n function findDraggableById(id) {\n return entries.draggables[id] || null;\n }\n function getDraggableById(id) {\n const entry = findDraggableById(id);\n !entry ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Cannot find draggable entry with id [${id}]`) : invariant() : void 0;\n return entry;\n }\n const draggableAPI = {\n register: entry => {\n entries.draggables[entry.descriptor.id] = entry;\n notify({\n type: 'ADDITION',\n value: entry\n });\n },\n update: (entry, last) => {\n const current = entries.draggables[last.descriptor.id];\n if (!current) {\n return;\n }\n if (current.uniqueId !== entry.uniqueId) {\n return;\n }\n delete entries.draggables[last.descriptor.id];\n entries.draggables[entry.descriptor.id] = entry;\n },\n unregister: entry => {\n const draggableId = entry.descriptor.id;\n const current = findDraggableById(draggableId);\n if (!current) {\n return;\n }\n if (entry.uniqueId !== current.uniqueId) {\n return;\n }\n delete entries.draggables[draggableId];\n if (entries.droppables[entry.descriptor.droppableId]) {\n notify({\n type: 'REMOVAL',\n value: entry\n });\n }\n },\n getById: getDraggableById,\n findById: findDraggableById,\n exists: id => Boolean(findDraggableById(id)),\n getAllByType: type => Object.values(entries.draggables).filter(entry => entry.descriptor.type === type)\n };\n function findDroppableById(id) {\n return entries.droppables[id] || null;\n }\n function getDroppableById(id) {\n const entry = findDroppableById(id);\n !entry ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Cannot find droppable entry with id [${id}]`) : invariant() : void 0;\n return entry;\n }\n const droppableAPI = {\n register: entry => {\n entries.droppables[entry.descriptor.id] = entry;\n },\n unregister: entry => {\n const current = findDroppableById(entry.descriptor.id);\n if (!current) {\n return;\n }\n if (entry.uniqueId !== current.uniqueId) {\n return;\n }\n delete entries.droppables[entry.descriptor.id];\n },\n getById: getDroppableById,\n findById: findDroppableById,\n exists: id => Boolean(findDroppableById(id)),\n getAllByType: type => Object.values(entries.droppables).filter(entry => entry.descriptor.type === type)\n };\n function clean() {\n entries.draggables = {};\n entries.droppables = {};\n subscribers.length = 0;\n }\n return {\n draggable: draggableAPI,\n droppable: droppableAPI,\n subscribe,\n clean\n };\n}\n\nfunction useRegistry() {\n const registry = useMemo(createRegistry, []);\n useEffect(() => {\n return function unmount() {\n registry.clean();\n };\n }, [registry]);\n return registry;\n}\n\nvar StoreContext = React.createContext(null);\n\nvar getBodyElement = () => {\n const body = document.body;\n !body ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot find document.body') : invariant() : void 0;\n return body;\n};\n\nconst visuallyHidden = {\n position: 'absolute',\n width: '1px',\n height: '1px',\n margin: '-1px',\n border: '0',\n padding: '0',\n overflow: 'hidden',\n clip: 'rect(0 0 0 0)',\n 'clip-path': 'inset(100%)'\n};\n\nconst getId = contextId => `rfd-announcement-${contextId}`;\nfunction useAnnouncer(contextId) {\n const id = useMemo(() => getId(contextId), [contextId]);\n const ref = useRef(null);\n useEffect(function setup() {\n const el = document.createElement('div');\n ref.current = el;\n el.id = id;\n el.setAttribute('aria-live', 'assertive');\n el.setAttribute('aria-atomic', 'true');\n _extends(el.style, visuallyHidden);\n getBodyElement().appendChild(el);\n return function cleanup() {\n setTimeout(function remove() {\n const body = getBodyElement();\n if (body.contains(el)) {\n body.removeChild(el);\n }\n if (el === ref.current) {\n ref.current = null;\n }\n });\n };\n }, [id]);\n const announce = useCallback(message => {\n const el = ref.current;\n if (el) {\n el.textContent = message;\n return;\n }\n process.env.NODE_ENV !== \"production\" ? warning(`\n A screen reader message was trying to be announced but it was unable to do so.\n This can occur if you unmount your <DragDropContext /> in your onDragEnd.\n Consider calling provided.announce() before the unmount so that the instruction will\n not be lost for users relying on a screen reader.\n\n Message not passed to screen reader:\n\n \"${message}\"\n `) : void 0;\n }, []);\n return announce;\n}\n\nconst defaults = {\n separator: '::'\n};\nfunction useUniqueId(prefix, options = defaults) {\n const id = React.useId();\n return useMemo(() => `${prefix}${options.separator}${id}`, [options.separator, prefix, id]);\n}\n\nfunction getElementId({\n contextId,\n uniqueId\n}) {\n return `rfd-hidden-text-${contextId}-${uniqueId}`;\n}\nfunction useHiddenTextElement({\n contextId,\n text\n}) {\n const uniqueId = useUniqueId('hidden-text', {\n separator: '-'\n });\n const id = useMemo(() => getElementId({\n contextId,\n uniqueId\n }), [uniqueId, contextId]);\n useEffect(function mount() {\n const el = document.createElement('div');\n el.id = id;\n el.textContent = text;\n el.style.display = 'none';\n getBodyElement().appendChild(el);\n return function unmount() {\n const body = getBodyElement();\n if (body.contains(el)) {\n body.removeChild(el);\n }\n };\n }, [id, text]);\n return id;\n}\n\nvar AppContext = React.createContext(null);\n\nvar peerDependencies = {\n\treact: \"^18.0.0 || ^19.0.0\"};\n\nconst semver = /(\\d+)\\.(\\d+)\\.(\\d+)/;\nconst getVersion = value => {\n const result = semver.exec(value);\n !(result != null) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Unable to parse React version ${value}`) : invariant() : void 0;\n const major = Number(result[1]);\n const minor = Number(result[2]);\n const patch = Number(result[3]);\n return {\n major,\n minor,\n patch,\n raw: value\n };\n};\nconst isSatisfied = (expected, actual) => {\n if (actual.major > expected.major) {\n return true;\n }\n if (actual.major < expected.major) {\n return false;\n }\n if (actual.minor > expected.minor) {\n return true;\n }\n if (actual.minor < expected.minor) {\n return false;\n }\n return actual.patch >= expected.patch;\n};\nvar checkReactVersion = (peerDepValue, actualValue) => {\n const peerDep = getVersion(peerDepValue);\n const actual = getVersion(actualValue);\n if (isSatisfied(peerDep, actual)) {\n return;\n }\n process.env.NODE_ENV !== \"production\" ? warning(`\n React version: [${actual.raw}]\n does not satisfy expected peer dependency version: [${peerDep.raw}]\n\n This can result in run time bugs, and even fatal crashes\n `) : void 0;\n};\n\nconst suffix = `\n We expect a html5 doctype: <!doctype html>\n This is to ensure consistent browser layout and measurement\n\n More information: https://github.com/hello-pangea/dnd/blob/main/docs/guides/doctype.md\n`;\nvar checkDoctype = doc => {\n const doctype = doc.doctype;\n if (!doctype) {\n process.env.NODE_ENV !== \"production\" ? warning(`\n No <!doctype html> found.\n\n ${suffix}\n `) : void 0;\n return;\n }\n if (doctype.name.toLowerCase() !== 'html') {\n process.env.NODE_ENV !== \"production\" ? warning(`\n Unexpected <!doctype> found: (${doctype.name})\n\n ${suffix}\n `) : void 0;\n }\n if (doctype.publicId !== '') {\n process.env.NODE_ENV !== \"production\" ? warning(`\n Unexpected <!doctype> publicId found: (${doctype.publicId})\n A html5 doctype does not have a publicId\n\n ${suffix}\n `) : void 0;\n }\n};\n\nfunction useDev(useHook) {\n if (process.env.NODE_ENV !== 'production') {\n useHook();\n }\n}\n\nfunction useDevSetupWarning(fn, inputs) {\n useDev(() => {\n useEffect(() => {\n try {\n fn();\n } catch (e) {\n error(`\n A setup problem was encountered.\n\n > ${e.message}\n `);\n }\n }, inputs);\n });\n}\n\nfunction useStartupValidation() {\n useDevSetupWarning(() => {\n checkReactVersion(peerDependencies.react, React.version);\n checkDoctype(document);\n }, []);\n}\n\nfunction usePrevious(current) {\n const ref = useRef(current);\n useEffect(() => {\n ref.current = current;\n });\n return ref;\n}\n\nfunction create() {\n let lock = null;\n function isClaimed() {\n return Boolean(lock);\n }\n function isActive(value) {\n return value === lock;\n }\n function claim(abandon) {\n !!lock ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot claim lock as it is already claimed') : invariant() : void 0;\n const newLock = {\n abandon\n };\n lock = newLock;\n return newLock;\n }\n function release() {\n !lock ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot release lock when there is no lock') : invariant() : void 0;\n lock = null;\n }\n function tryAbandon() {\n if (lock) {\n lock.abandon();\n release();\n }\n }\n return {\n isClaimed,\n isActive,\n claim,\n release,\n tryAbandon\n };\n}\n\nfunction isDragging(state) {\n if (state.phase === 'IDLE' || state.phase === 'DROP_ANIMATING') {\n return false;\n }\n return state.isDragging;\n}\n\nconst tab = 9;\nconst enter = 13;\nconst escape = 27;\nconst space = 32;\nconst pageUp = 33;\nconst pageDown = 34;\nconst end = 35;\nconst home = 36;\nconst arrowLeft = 37;\nconst arrowUp = 38;\nconst arrowRight = 39;\nconst arrowDown = 40;\n\nconst preventedKeys = {\n [enter]: true,\n [tab]: true\n};\nvar preventStandardKeyEvents = event => {\n if (preventedKeys[event.keyCode]) {\n event.preventDefault();\n }\n};\n\nconst supportedEventName = (() => {\n const base = 'visibilitychange';\n if (typeof document === 'undefined') {\n return base;\n }\n const candidates = [base, `ms${base}`, `webkit${base}`, `moz${base}`, `o${base}`];\n const supported = candidates.find(eventName => `on${eventName}` in document);\n return supported || base;\n})();\n\nconst primaryButton = 0;\nconst sloppyClickThreshold = 5;\nfunction isSloppyClickThresholdExceeded(original, current) {\n return Math.abs(current.x - original.x) >= sloppyClickThreshold || Math.abs(current.y - original.y) >= sloppyClickThreshold;\n}\nconst idle$1 = {\n type: 'IDLE'\n};\nfunction getCaptureBindings({\n cancel,\n completed,\n getPhase,\n setPhase\n}) {\n return [{\n eventName: 'mousemove',\n fn: event => {\n const {\n button,\n clientX,\n clientY\n } = event;\n if (button !== primaryButton) {\n return;\n }\n const point = {\n x: clientX,\n y: clientY\n };\n const phase = getPhase();\n if (phase.type === 'DRAGGING') {\n event.preventDefault();\n phase.actions.move(point);\n return;\n }\n !(phase.type === 'PENDING') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot be IDLE') : invariant() : void 0;\n const pending = phase.point;\n if (!isSloppyClickThresholdExceeded(pending, point)) {\n return;\n }\n event.preventDefault();\n const actions = phase.actions.fluidLift(point);\n setPhase({\n type: 'DRAGGING',\n actions\n });\n }\n }, {\n eventName: 'mouseup',\n fn: event => {\n const phase = getPhase();\n if (phase.type !== 'DRAGGING') {\n cancel();\n return;\n }\n event.preventDefault();\n phase.actions.drop({\n shouldBlockNextClick: true\n });\n completed();\n }\n }, {\n eventName: 'mousedown',\n fn: event => {\n if (getPhase().type === 'DRAGGING') {\n event.preventDefault();\n }\n cancel();\n }\n }, {\n eventName: 'keydown',\n fn: event => {\n const phase = getPhase();\n if (phase.type === 'PENDING') {\n cancel();\n return;\n }\n if (event.keyCode === escape) {\n event.preventDefault();\n cancel();\n return;\n }\n preventStandardKeyEvents(event);\n }\n }, {\n eventName: 'resize',\n fn: cancel\n }, {\n eventName: 'scroll',\n options: {\n passive: true,\n capture: false\n },\n fn: () => {\n if (getPhase().type === 'PENDING') {\n cancel();\n }\n }\n }, {\n eventName: 'webkitmouseforcedown',\n fn: event => {\n const phase = getPhase();\n !(phase.type !== 'IDLE') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Unexpected phase') : invariant() : void 0;\n if (phase.actions.shouldRespectForcePress()) {\n cancel();\n return;\n }\n event.preventDefault();\n }\n }, {\n eventName: supportedEventName,\n fn: cancel\n }];\n}\nfunction useMouseSensor(api) {\n const phaseRef = useRef(idle$1);\n const unbindEventsRef = useRef(noop$2);\n const startCaptureBinding = useMemo(() => ({\n eventName: 'mousedown',\n fn: function onMouseDown(event) {\n if (event.defaultPrevented) {\n return;\n }\n if (event.button !== primaryButton) {\n return;\n }\n if (event.ctrlKey || event.metaKey || event.shiftKey || event.altKey) {\n return;\n }\n const draggableId = api.findClosestDraggableId(event);\n if (!draggableId) {\n return;\n }\n const actions = api.tryGetLock(draggableId, stop, {\n sourceEvent: event\n });\n if (!actions) {\n return;\n }\n event.preventDefault();\n const point = {\n x: event.clientX,\n y: event.clientY\n };\n unbindEventsRef.current();\n startPendingDrag(actions, point);\n }\n }), [api]);\n const preventForcePressBinding = useMemo(() => ({\n eventName: 'webkitmouseforcewillbegin',\n fn: event => {\n if (event.defaultPrevented) {\n return;\n }\n const id = api.findClosestDraggableId(event);\n if (!id) {\n return;\n }\n const options = api.findOptionsForDraggable(id);\n if (!options) {\n return;\n }\n if (options.shouldRespectForcePress) {\n return;\n }\n if (!api.canGetLock(id)) {\n return;\n }\n event.preventDefault();\n }\n }), [api]);\n const listenForCapture = useCallback(function listenForCapture() {\n const options = {\n passive: false,\n capture: true\n };\n unbindEventsRef.current = bindEvents(window, [preventForcePressBinding, startCaptureBinding], options);\n }, [preventForcePressBinding, startCaptureBinding]);\n const stop = useCallback(() => {\n const current = phaseRef.current;\n if (current.type === 'IDLE') {\n return;\n }\n phaseRef.current = idle$1;\n unbindEventsRef.current();\n listenForCapture();\n }, [listenForCapture]);\n const cancel = useCallback(() => {\n const phase = phaseRef.current;\n stop();\n if (phase.type === 'DRAGGING') {\n phase.actions.cancel({\n shouldBlockNextClick: true\n });\n }\n if (phase.type === 'PENDING') {\n phase.actions.abort();\n }\n }, [stop]);\n const bindCapturingEvents = useCallback(function bindCapturingEvents() {\n const options = {\n capture: true,\n passive: false\n };\n const bindings = getCaptureBindings({\n cancel,\n completed: stop,\n getPhase: () => phaseRef.current,\n setPhase: phase => {\n phaseRef.current = phase;\n }\n });\n unbindEventsRef.current = bindEvents(window, bindings, options);\n }, [cancel, stop]);\n const startPendingDrag = useCallback(function startPendingDrag(actions, point) {\n !(phaseRef.current.type === 'IDLE') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected to move from IDLE to PENDING drag') : invariant() : void 0;\n phaseRef.current = {\n type: 'PENDING',\n point,\n actions\n };\n bindCapturingEvents();\n }, [bindCapturingEvents]);\n useIsomorphicLayoutEffect(function mount() {\n listenForCapture();\n return function unmount() {\n unbindEventsRef.current();\n };\n }, [listenForCapture]);\n}\n\nfunction noop$1() {}\nconst scrollJumpKeys = {\n [pageDown]: true,\n [pageUp]: true,\n [home]: true,\n [end]: true\n};\nfunction getDraggingBindings(actions, stop) {\n function cancel() {\n stop();\n actions.cancel();\n }\n function drop() {\n stop();\n actions.drop();\n }\n return [{\n eventName: 'keydown',\n fn: event => {\n if (event.keyCode === escape) {\n event.preventDefault();\n cancel();\n return;\n }\n if (event.keyCode === space) {\n event.preventDefault();\n drop();\n return;\n }\n if (event.keyCode === arrowDown) {\n event.preventDefault();\n actions.moveDown();\n return;\n }\n if (event.keyCode === arrowUp) {\n event.preventDefault();\n actions.moveUp();\n return;\n }\n if (event.keyCode === arrowRight) {\n event.preventDefault();\n actions.moveRight();\n return;\n }\n if (event.keyCode === arrowLeft) {\n event.preventDefault();\n actions.moveLeft();\n return;\n }\n if (scrollJumpKeys[event.keyCode]) {\n event.preventDefault();\n return;\n }\n preventStandardKeyEvents(event);\n }\n }, {\n eventName: 'mousedown',\n fn: cancel\n }, {\n eventName: 'mouseup',\n fn: cancel\n }, {\n eventName: 'click',\n fn: cancel\n }, {\n eventName: 'touchstart',\n fn: cancel\n }, {\n eventName: 'resize',\n fn: cancel\n }, {\n eventName: 'wheel',\n fn: cancel,\n options: {\n passive: true\n }\n }, {\n eventName: supportedEventName,\n fn: cancel\n }];\n}\nfunction useKeyboardSensor(api) {\n const unbindEventsRef = useRef(noop$1);\n const startCaptureBinding = useMemo(() => ({\n eventName: 'keydown',\n fn: function onKeyDown(event) {\n if (event.defaultPrevented) {\n return;\n }\n if (event.keyCode !== space) {\n return;\n }\n const draggableId = api.findClosestDraggableId(event);\n if (!draggableId) {\n return;\n }\n const preDrag = api.tryGetLock(draggableId, stop, {\n sourceEvent: event\n });\n if (!preDrag) {\n return;\n }\n event.preventDefault();\n let isCapturing = true;\n const actions = preDrag.snapLift();\n unbindEventsRef.current();\n function stop() {\n !isCapturing ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot stop capturing a keyboard drag when not capturing') : invariant() : void 0;\n isCapturing = false;\n unbindEventsRef.current();\n listenForCapture();\n }\n unbindEventsRef.current = bindEvents(window, getDraggingBindings(actions, stop), {\n capture: true,\n passive: false\n });\n }\n }), [api]);\n const listenForCapture = useCallback(function tryStartCapture() {\n const options = {\n passive: false,\n capture: true\n };\n unbindEventsRef.current = bindEvents(window, [startCaptureBinding], options);\n }, [startCaptureBinding]);\n useIsomorphicLayoutEffect(function mount() {\n listenForCapture();\n return function unmount() {\n unbindEventsRef.current();\n };\n }, [listenForCapture]);\n}\n\nconst idle = {\n type: 'IDLE'\n};\nconst timeForLongPress = 120;\nconst forcePressThreshold = 0.15;\nfunction getWindowBindings({\n cancel,\n getPhase\n}) {\n return [{\n eventName: 'orientationchange',\n fn: cancel\n }, {\n eventName: 'resize',\n fn: cancel\n }, {\n eventName: 'contextmenu',\n fn: event => {\n event.preventDefault();\n }\n }, {\n eventName: 'keydown',\n fn: event => {\n if (getPhase().type !== 'DRAGGING') {\n cancel();\n return;\n }\n if (event.keyCode === escape) {\n event.preventDefault();\n }\n cancel();\n }\n }, {\n eventName: supportedEventName,\n fn: cancel\n }];\n}\nfunction getHandleBindings({\n cancel,\n completed,\n getPhase\n}) {\n return [{\n eventName: 'touchmove',\n options: {\n capture: false\n },\n fn: event => {\n const phase = getPhase();\n if (phase.type !== 'DRAGGING') {\n cancel();\n return;\n }\n phase.hasMoved = true;\n const {\n clientX,\n clientY\n } = event.touches[0];\n const point = {\n x: clientX,\n y: clientY\n };\n event.preventDefault();\n phase.actions.move(point);\n }\n }, {\n eventName: 'touchend',\n fn: event => {\n const phase = getPhase();\n if (phase.type !== 'DRAGGING') {\n cancel();\n return;\n }\n event.preventDefault();\n phase.actions.drop({\n shouldBlockNextClick: true\n });\n completed();\n }\n }, {\n eventName: 'touchcancel',\n fn: event => {\n if (getPhase().type !== 'DRAGGING') {\n cancel();\n return;\n }\n event.preventDefault();\n cancel();\n }\n }, {\n eventName: 'touchforcechange',\n fn: event => {\n const phase = getPhase();\n !(phase.type !== 'IDLE') ? process.env.NODE_ENV !== \"production\" ? invariant() : invariant() : void 0;\n const touch = event.touches[0];\n if (!touch) {\n return;\n }\n const isForcePress = touch.force >= forcePressThreshold;\n if (!isForcePress) {\n return;\n }\n const shouldRespect = phase.actions.shouldRespectForcePress();\n if (phase.type === 'PENDING') {\n if (shouldRespect) {\n cancel();\n }\n return;\n }\n if (shouldRespect) {\n if (phase.hasMoved) {\n event.preventDefault();\n return;\n }\n cancel();\n return;\n }\n event.preventDefault();\n }\n }, {\n eventName: supportedEventName,\n fn: cancel\n }];\n}\nfunction useTouchSensor(api) {\n const phaseRef = useRef(idle);\n const unbindEventsRef = useRef(noop$2);\n const getPhase = useCallback(function getPhase() {\n return phaseRef.current;\n }, []);\n const setPhase = useCallback(function setPhase(phase) {\n phaseRef.current = phase;\n }, []);\n const startCaptureBinding = useMemo(() => ({\n eventName: 'touchstart',\n fn: function onTouchStart(event) {\n if (event.defaultPrevented) {\n return;\n }\n const draggableId = api.findClosestDraggableId(event);\n if (!draggableId) {\n return;\n }\n const actions = api.tryGetLock(draggableId, stop, {\n sourceEvent: event\n });\n if (!actions) {\n return;\n }\n const touch = event.touches[0];\n const {\n clientX,\n clientY\n } = touch;\n const point = {\n x: clientX,\n y: clientY\n };\n unbindEventsRef.current();\n startPendingDrag(actions, point);\n }\n }), [api]);\n const listenForCapture = useCallback(function listenForCapture() {\n const options = {\n capture: true,\n passive: false\n };\n unbindEventsRef.current = bindEvents(window, [startCaptureBinding], options);\n }, [startCaptureBinding]);\n const stop = useCallback(() => {\n const current = phaseRef.current;\n if (current.type === 'IDLE') {\n return;\n }\n if (current.type === 'PENDING') {\n clearTimeout(current.longPressTimerId);\n }\n setPhase(idle);\n unbindEventsRef.current();\n listenForCapture();\n }, [listenForCapture, setPhase]);\n const cancel = useCallback(() => {\n const phase = phaseRef.current;\n stop();\n if (phase.type === 'DRAGGING') {\n phase.actions.cancel({\n shouldBlockNextClick: true\n });\n }\n if (phase.type === 'PENDING') {\n phase.actions.abort();\n }\n }, [stop]);\n const bindCapturingEvents = useCallback(function bindCapturingEvents() {\n const options = {\n capture: true,\n passive: false\n };\n const args = {\n cancel,\n completed: stop,\n getPhase\n };\n const unbindTarget = bindEvents(window, getHandleBindings(args), options);\n const unbindWindow = bindEvents(window, getWindowBindings(args), options);\n unbindEventsRef.current = function unbindAll() {\n unbindTarget();\n unbindWindow();\n };\n }, [cancel, getPhase, stop]);\n const startDragging = useCallback(function startDragging() {\n const phase = getPhase();\n !(phase.type === 'PENDING') ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Cannot start dragging from phase ${phase.type}`) : invariant() : void 0;\n const actions = phase.actions.fluidLift(phase.point);\n setPhase({\n type: 'DRAGGING',\n actions,\n hasMoved: false\n });\n }, [getPhase, setPhase]);\n const startPendingDrag = useCallback(function startPendingDrag(actions, point) {\n !(getPhase().type === 'IDLE') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected to move from IDLE to PENDING drag') : invariant() : void 0;\n const longPressTimerId = setTimeout(startDragging, timeForLongPress);\n setPhase({\n type: 'PENDING',\n point,\n actions,\n longPressTimerId\n });\n bindCapturingEvents();\n }, [bindCapturingEvents, getPhase, setPhase, startDragging]);\n useIsomorphicLayoutEffect(function mount() {\n listenForCapture();\n return function unmount() {\n unbindEventsRef.current();\n const phase = getPhase();\n if (phase.type === 'PENDING') {\n clearTimeout(phase.longPressTimerId);\n setPhase(idle);\n }\n };\n }, [getPhase, listenForCapture, setPhase]);\n useIsomorphicLayoutEffect(function webkitHack() {\n const unbind = bindEvents(window, [{\n eventName: 'touchmove',\n fn: () => {},\n options: {\n capture: false,\n passive: false\n }\n }]);\n return unbind;\n }, []);\n}\n\nfunction useValidateSensorHooks(sensorHooks) {\n useDev(() => {\n const previousRef = usePrevious(sensorHooks);\n useDevSetupWarning(() => {\n !(previousRef.current.length === sensorHooks.length) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot change the amount of sensor hooks after mounting') : invariant(false) : void 0;\n });\n });\n}\n\nconst interactiveTagNames = ['input', 'button', 'textarea', 'select', 'option', 'optgroup', 'video', 'audio'];\nfunction isAnInteractiveElement(parent, current) {\n if (current == null) {\n return false;\n }\n const hasAnInteractiveTag = interactiveTagNames.includes(current.tagName.toLowerCase());\n if (hasAnInteractiveTag) {\n return true;\n }\n const attribute = current.getAttribute('contenteditable');\n if (attribute === 'true' || attribute === '') {\n return true;\n }\n if (current === parent) {\n return false;\n }\n return isAnInteractiveElement(parent, current.parentElement);\n}\nfunction isEventInInteractiveElement(draggable, event) {\n const target = event.target;\n if (!isHtmlElement(target)) {\n return false;\n }\n return isAnInteractiveElement(draggable, target);\n}\n\nvar getBorderBoxCenterPosition = el => getRect(el.getBoundingClientRect()).center;\n\nfunction isElement(el) {\n return el instanceof getWindowFromEl(el).Element;\n}\n\nconst supportedMatchesName = (() => {\n const base = 'matches';\n if (typeof document === 'undefined') {\n return base;\n }\n const candidates = [base, 'msMatchesSelector', 'webkitMatchesSelector'];\n const value = candidates.find(name => name in Element.prototype);\n return value || base;\n})();\nfunction closestPonyfill(el, selector) {\n if (el == null) {\n return null;\n }\n if (el[supportedMatchesName](selector)) {\n return el;\n }\n return closestPonyfill(el.parentElement, selector);\n}\nfunction closest(el, selector) {\n if (el.closest) {\n return el.closest(selector);\n }\n return closestPonyfill(el, selector);\n}\n\nfunction getSelector(contextId) {\n return `[${dragHandle.contextId}=\"${contextId}\"]`;\n}\nfunction findClosestDragHandleFromEvent(contextId, event) {\n const target = event.target;\n if (!isElement(target)) {\n process.env.NODE_ENV !== \"production\" ? warning('event.target must be a Element') : void 0;\n return null;\n }\n const selector = getSelector(contextId);\n const handle = closest(target, selector);\n if (!handle) {\n return null;\n }\n if (!isHtmlElement(handle)) {\n process.env.NODE_ENV !== \"production\" ? warning('drag handle must be a HTMLElement') : void 0;\n return null;\n }\n return handle;\n}\nfunction tryGetClosestDraggableIdFromEvent(contextId, event) {\n const handle = findClosestDragHandleFromEvent(contextId, event);\n if (!handle) {\n return null;\n }\n return handle.getAttribute(dragHandle.draggableId);\n}\n\nfunction findDraggable(contextId, draggableId) {\n const selector = `[${draggable.contextId}=\"${contextId}\"]`;\n const possible = querySelectorAll(document, selector);\n const draggable$1 = possible.find(el => {\n return el.getAttribute(draggable.id) === draggableId;\n });\n if (!draggable$1) {\n return null;\n }\n if (!isHtmlElement(draggable$1)) {\n process.env.NODE_ENV !== \"production\" ? warning('Draggable element is not a HTMLElement') : void 0;\n return null;\n }\n return draggable$1;\n}\n\nfunction preventDefault(event) {\n event.preventDefault();\n}\nfunction isActive({\n expected,\n phase,\n isLockActive,\n shouldWarn\n}) {\n if (!isLockActive()) {\n if (shouldWarn) {\n process.env.NODE_ENV !== \"production\" ? warning(`\n Cannot perform action.\n The sensor no longer has an action lock.\n\n Tips:\n\n - Throw away your action handlers when forceStop() is called\n - Check actions.isActive() if you really need to\n `) : void 0;\n }\n return false;\n }\n if (expected !== phase) {\n if (shouldWarn) {\n process.env.NODE_ENV !== \"production\" ? warning(`\n Cannot perform action.\n The actions you used belong to an outdated phase\n\n Current phase: ${expected}\n You called an action from outdated phase: ${phase}\n\n Tips:\n\n - Do not use preDragActions actions after calling preDragActions.lift()\n `) : void 0;\n }\n return false;\n }\n return true;\n}\nfunction canStart({\n lockAPI,\n store,\n registry,\n draggableId\n}) {\n if (lockAPI.isClaimed()) {\n return false;\n }\n const entry = registry.draggable.findById(draggableId);\n if (!entry) {\n process.env.NODE_ENV !== \"production\" ? warning(`Unable to find draggable with id: ${draggableId}`) : void 0;\n return false;\n }\n if (!entry.options.isEnabled) {\n return false;\n }\n if (!canStartDrag(store.getState(), draggableId)) {\n return false;\n }\n return true;\n}\nfunction tryStart({\n lockAPI,\n contextId,\n store,\n registry,\n draggableId,\n forceSensorStop,\n sourceEvent\n}) {\n const shouldStart = canStart({\n lockAPI,\n store,\n registry,\n draggableId\n });\n if (!shouldStart) {\n return null;\n }\n const entry = registry.draggable.getById(draggableId);\n const el = findDraggable(contextId, entry.descriptor.id);\n if (!el) {\n process.env.NODE_ENV !== \"production\" ? warning(`Unable to find draggable element with id: ${draggableId}`) : void 0;\n return null;\n }\n if (sourceEvent && !entry.options.canDragInteractiveElements && isEventInInteractiveElement(el, sourceEvent)) {\n return null;\n }\n const lock = lockAPI.claim(forceSensorStop || noop$2);\n let phase = 'PRE_DRAG';\n function getShouldRespectForcePress() {\n return entry.options.shouldRespectForcePress;\n }\n function isLockActive() {\n return lockAPI.isActive(lock);\n }\n function tryDispatch(expected, getAction) {\n if (isActive({\n expected,\n phase,\n isLockActive,\n shouldWarn: true\n })) {\n store.dispatch(getAction());\n }\n }\n const tryDispatchWhenDragging = tryDispatch.bind(null, 'DRAGGING');\n function lift(args) {\n function completed() {\n lockAPI.release();\n phase = 'COMPLETED';\n }\n if (phase !== 'PRE_DRAG') {\n completed();\n process.env.NODE_ENV !== \"production\" ? invariant(false, `Cannot lift in phase ${phase}`) : invariant() ;\n }\n store.dispatch(lift$1(args.liftActionArgs));\n phase = 'DRAGGING';\n function finish(reason, options = {\n shouldBlockNextClick: false\n }) {\n args.cleanup();\n if (options.shouldBlockNextClick) {\n const unbind = bindEvents(window, [{\n eventName: 'click',\n fn: preventDefault,\n options: {\n once: true,\n passive: false,\n capture: true\n }\n }]);\n setTimeout(unbind);\n }\n completed();\n store.dispatch(drop({\n reason\n }));\n }\n return {\n isActive: () => isActive({\n expected: 'DRAGGING',\n phase,\n isLockActive,\n shouldWarn: false\n }),\n shouldRespectForcePress: getShouldRespectForcePress,\n drop: options => finish('DROP', options),\n cancel: options => finish('CANCEL', options),\n ...args.actions\n };\n }\n function fluidLift(clientSelection) {\n const move$1 = rafSchd(client => {\n tryDispatchWhenDragging(() => move({\n client\n }));\n });\n const api = lift({\n liftActionArgs: {\n id: draggableId,\n clientSelection,\n movementMode: 'FLUID'\n },\n cleanup: () => move$1.cancel(),\n actions: {\n move: move$1\n }\n });\n return {\n ...api,\n move: move$1\n };\n }\n function snapLift() {\n const actions = {\n moveUp: () => tryDispatchWhenDragging(moveUp),\n moveRight: () => tryDispatchWhenDragging(moveRight),\n moveDown: () => tryDispatchWhenDragging(moveDown),\n moveLeft: () => tryDispatchWhenDragging(moveLeft)\n };\n return lift({\n liftActionArgs: {\n id: draggableId,\n clientSelection: getBorderBoxCenterPosition(el),\n movementMode: 'SNAP'\n },\n cleanup: noop$2,\n actions\n });\n }\n function abortPreDrag() {\n const shouldRelease = isActive({\n expected: 'PRE_DRAG',\n phase,\n isLockActive,\n shouldWarn: true\n });\n if (shouldRelease) {\n lockAPI.release();\n }\n }\n const preDrag = {\n isActive: () => isActive({\n expected: 'PRE_DRAG',\n phase,\n isLockActive,\n shouldWarn: false\n }),\n shouldRespectForcePress: getShouldRespectForcePress,\n fluidLift,\n snapLift,\n abort: abortPreDrag\n };\n return preDrag;\n}\nconst defaultSensors = [useMouseSensor, useKeyboardSensor, useTouchSensor];\nfunction useSensorMarshal({\n contextId,\n store,\n registry,\n customSensors,\n enableDefaultSensors\n}) {\n const useSensors = [...(enableDefaultSensors ? defaultSensors : []), ...(customSensors || [])];\n const lockAPI = useState(() => create())[0];\n const tryAbandonLock = useCallback(function tryAbandonLock(previous, current) {\n if (isDragging(previous) && !isDragging(current)) {\n lockAPI.tryAbandon();\n }\n }, [lockAPI]);\n useIsomorphicLayoutEffect(function listenToStore() {\n let previous = store.getState();\n const unsubscribe = store.subscribe(() => {\n const current = store.getState();\n tryAbandonLock(previous, current);\n previous = current;\n });\n return unsubscribe;\n }, [lockAPI, store, tryAbandonLock]);\n useIsomorphicLayoutEffect(() => {\n return lockAPI.tryAbandon;\n }, [lockAPI.tryAbandon]);\n const canGetLock = useCallback(draggableId => {\n return canStart({\n lockAPI,\n registry,\n store,\n draggableId\n });\n }, [lockAPI, registry, store]);\n const tryGetLock = useCallback((draggableId, forceStop, options) => tryStart({\n lockAPI,\n registry,\n contextId,\n store,\n draggableId,\n forceSensorStop: forceStop || null,\n sourceEvent: options && options.sourceEvent ? options.sourceEvent : null\n }), [contextId, lockAPI, registry, store]);\n const findClosestDraggableId = useCallback(event => tryGetClosestDraggableIdFromEvent(contextId, event), [contextId]);\n const findOptionsForDraggable = useCallback(id => {\n const entry = registry.draggable.findById(id);\n return entry ? entry.options : null;\n }, [registry.draggable]);\n const tryReleaseLock = useCallback(function tryReleaseLock() {\n if (!lockAPI.isClaimed()) {\n return;\n }\n lockAPI.tryAbandon();\n if (store.getState().phase !== 'IDLE') {\n store.dispatch(flush());\n }\n }, [lockAPI, store]);\n const isLockClaimed = useCallback(() => lockAPI.isClaimed(), [lockAPI]);\n const api = useMemo(() => ({\n canGetLock,\n tryGetLock,\n findClosestDraggableId,\n findOptionsForDraggable,\n tryReleaseLock,\n isLockClaimed\n }), [canGetLock, tryGetLock, findClosestDraggableId, findOptionsForDraggable, tryReleaseLock, isLockClaimed]);\n useValidateSensorHooks(useSensors);\n for (let i = 0; i < useSensors.length; i++) {\n useSensors[i](api);\n }\n}\n\nconst createResponders = props => ({\n onBeforeCapture: t => {\n const onBeforeCapureCallback = () => {\n if (props.onBeforeCapture) {\n props.onBeforeCapture(t);\n }\n };\n flushSync(onBeforeCapureCallback);\n },\n onBeforeDragStart: props.onBeforeDragStart,\n onDragStart: props.onDragStart,\n onDragEnd: props.onDragEnd,\n onDragUpdate: props.onDragUpdate\n});\nconst createAutoScrollerOptions = props => ({\n ...defaultAutoScrollerOptions,\n ...props.autoScrollerOptions,\n durationDampening: {\n ...defaultAutoScrollerOptions.durationDampening,\n ...props.autoScrollerOptions\n }\n});\nfunction getStore(lazyRef) {\n !lazyRef.current ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Could not find store from lazy ref') : invariant() : void 0;\n return lazyRef.current;\n}\nfunction App(props) {\n const {\n contextId,\n setCallbacks,\n sensors,\n nonce,\n dragHandleUsageInstructions\n } = props;\n const lazyStoreRef = useRef(null);\n useStartupValidation();\n const lastPropsRef = usePrevious(props);\n const getResponders = useCallback(() => {\n return createResponders(lastPropsRef.current);\n }, [lastPropsRef]);\n const getAutoScrollerOptions = useCallback(() => {\n return createAutoScrollerOptions(lastPropsRef.current);\n }, [lastPropsRef]);\n const announce = useAnnouncer(contextId);\n const dragHandleUsageInstructionsId = useHiddenTextElement({\n contextId,\n text: dragHandleUsageInstructions\n });\n const styleMarshal = useStyleMarshal(contextId, nonce);\n const lazyDispatch = useCallback(action => {\n getStore(lazyStoreRef).dispatch(action);\n }, []);\n const marshalCallbacks = useMemo(() => bindActionCreators({\n publishWhileDragging,\n updateDroppableScroll,\n updateDroppableIsEnabled,\n updateDroppableIsCombineEnabled,\n collectionStarting\n }, lazyDispatch), [lazyDispatch]);\n const registry = useRegistry();\n const dimensionMarshal = useMemo(() => {\n return createDimensionMarshal(registry, marshalCallbacks);\n }, [registry, marshalCallbacks]);\n const autoScroller = useMemo(() => createAutoScroller({\n scrollWindow,\n scrollDroppable: dimensionMarshal.scrollDroppable,\n getAutoScrollerOptions,\n ...bindActionCreators({\n move\n }, lazyDispatch)\n }), [dimensionMarshal.scrollDroppable, lazyDispatch, getAutoScrollerOptions]);\n const focusMarshal = useFocusMarshal(contextId);\n const store = useMemo(() => createStore({\n announce,\n autoScroller,\n dimensionMarshal,\n focusMarshal,\n getResponders,\n styleMarshal\n }), [announce, autoScroller, dimensionMarshal, focusMarshal, getResponders, styleMarshal]);\n if (process.env.NODE_ENV !== 'production') {\n if (lazyStoreRef.current && lazyStoreRef.current !== store) {\n process.env.NODE_ENV !== \"production\" ? warning('unexpected store change') : void 0;\n }\n }\n lazyStoreRef.current = store;\n const tryResetStore = useCallback(() => {\n const current = getStore(lazyStoreRef);\n const state = current.getState();\n if (state.phase !== 'IDLE') {\n current.dispatch(flush());\n }\n }, []);\n const isDragging = useCallback(() => {\n const state = getStore(lazyStoreRef).getState();\n if (state.phase === 'DROP_ANIMATING') {\n return true;\n }\n if (state.phase === 'IDLE') {\n return false;\n }\n return state.isDragging;\n }, []);\n const appCallbacks = useMemo(() => ({\n isDragging,\n tryAbort: tryResetStore\n }), [isDragging, tryResetStore]);\n setCallbacks(appCallbacks);\n const getCanLift = useCallback(id => canStartDrag(getStore(lazyStoreRef).getState(), id), []);\n const getIsMovementAllowed = useCallback(() => isMovementAllowed(getStore(lazyStoreRef).getState()), []);\n const appContext = useMemo(() => ({\n marshal: dimensionMarshal,\n focus: focusMarshal,\n contextId,\n canLift: getCanLift,\n isMovementAllowed: getIsMovementAllowed,\n dragHandleUsageInstructionsId,\n registry\n }), [contextId, dimensionMarshal, dragHandleUsageInstructionsId, focusMarshal, getCanLift, getIsMovementAllowed, registry]);\n useSensorMarshal({\n contextId,\n store,\n registry,\n customSensors: sensors || null,\n enableDefaultSensors: props.enableDefaultSensors !== false\n });\n useEffect(() => {\n return tryResetStore;\n }, [tryResetStore]);\n return React.createElement(AppContext.Provider, {\n value: appContext\n }, React.createElement(Provider, {\n context: StoreContext,\n store: store\n }, props.children));\n}\n\nfunction useUniqueContextId() {\n return React.useId();\n}\n\nfunction DragDropContext(props) {\n const contextId = useUniqueContextId();\n const dragHandleUsageInstructions = props.dragHandleUsageInstructions || preset.dragHandleUsageInstructions;\n return React.createElement(ErrorBoundary, null, setCallbacks => React.createElement(App, {\n nonce: props.nonce,\n contextId: contextId,\n setCallbacks: setCallbacks,\n dragHandleUsageInstructions: dragHandleUsageInstructions,\n enableDefaultSensors: props.enableDefaultSensors,\n sensors: props.sensors,\n onBeforeCapture: props.onBeforeCapture,\n onBeforeDragStart: props.onBeforeDragStart,\n onDragStart: props.onDragStart,\n onDragUpdate: props.onDragUpdate,\n onDragEnd: props.onDragEnd,\n autoScrollerOptions: props.autoScrollerOptions\n }, props.children));\n}\n\nconst zIndexOptions = {\n dragging: 5000,\n dropAnimating: 4500\n};\nconst getDraggingTransition = (shouldAnimateDragMovement, dropping) => {\n if (dropping) {\n return transitions.drop(dropping.duration);\n }\n if (shouldAnimateDragMovement) {\n return transitions.snap;\n }\n return transitions.fluid;\n};\nconst getDraggingOpacity = (isCombining, isDropAnimating) => {\n if (!isCombining) {\n return undefined;\n }\n return isDropAnimating ? combine.opacity.drop : combine.opacity.combining;\n};\nconst getShouldDraggingAnimate = dragging => {\n if (dragging.forceShouldAnimate != null) {\n return dragging.forceShouldAnimate;\n }\n return dragging.mode === 'SNAP';\n};\nfunction getDraggingStyle(dragging) {\n const dimension = dragging.dimension;\n const box = dimension.client;\n const {\n offset,\n combineWith,\n dropping\n } = dragging;\n const isCombining = Boolean(combineWith);\n const shouldAnimate = getShouldDraggingAnimate(dragging);\n const isDropAnimating = Boolean(dropping);\n const transform = isDropAnimating ? transforms.drop(offset, isCombining) : transforms.moveTo(offset);\n const style = {\n position: 'fixed',\n top: box.marginBox.top,\n left: box.marginBox.left,\n boxSizing: 'border-box',\n width: box.borderBox.width,\n height: box.borderBox.height,\n transition: getDraggingTransition(shouldAnimate, dropping),\n transform,\n opacity: getDraggingOpacity(isCombining, isDropAnimating),\n zIndex: isDropAnimating ? zIndexOptions.dropAnimating : zIndexOptions.dragging,\n pointerEvents: 'none'\n };\n return style;\n}\nfunction getSecondaryStyle(secondary) {\n return {\n transform: transforms.moveTo(secondary.offset),\n transition: secondary.shouldAnimateDisplacement ? undefined : 'none'\n };\n}\nfunction getStyle$1(mapped) {\n return mapped.type === 'DRAGGING' ? getDraggingStyle(mapped) : getSecondaryStyle(mapped);\n}\n\nfunction getDimension$1(descriptor, el, windowScroll = origin) {\n const computedStyles = window.getComputedStyle(el);\n const borderBox = el.getBoundingClientRect();\n const client = calculateBox(borderBox, computedStyles);\n const page = withScroll(client, windowScroll);\n const placeholder = {\n client,\n tagName: el.tagName.toLowerCase(),\n display: computedStyles.display\n };\n const displaceBy = {\n x: client.marginBox.width,\n y: client.marginBox.height\n };\n const dimension = {\n descriptor,\n placeholder,\n displaceBy,\n client,\n page\n };\n return dimension;\n}\n\nfunction useDraggablePublisher(args) {\n const uniqueId = useUniqueId('draggable');\n const {\n descriptor,\n registry,\n getDraggableRef,\n canDragInteractiveElements,\n shouldRespectForcePress,\n isEnabled\n } = args;\n const options = useMemo(() => ({\n canDragInteractiveElements,\n shouldRespectForcePress,\n isEnabled\n }), [canDragInteractiveElements, isEnabled, shouldRespectForcePress]);\n const getDimension = useCallback(windowScroll => {\n const el = getDraggableRef();\n !el ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot get dimension when no ref is set') : invariant() : void 0;\n return getDimension$1(descriptor, el, windowScroll);\n }, [descriptor, getDraggableRef]);\n const entry = useMemo(() => ({\n uniqueId,\n descriptor,\n options,\n getDimension\n }), [descriptor, getDimension, options, uniqueId]);\n const publishedRef = useRef(entry);\n const isFirstPublishRef = useRef(true);\n useIsomorphicLayoutEffect(() => {\n registry.draggable.register(publishedRef.current);\n return () => registry.draggable.unregister(publishedRef.current);\n }, [registry.draggable]);\n useIsomorphicLayoutEffect(() => {\n if (isFirstPublishRef.current) {\n isFirstPublishRef.current = false;\n return;\n }\n const last = publishedRef.current;\n publishedRef.current = entry;\n registry.draggable.update(entry, last);\n }, [entry, registry.draggable]);\n}\n\nvar DroppableContext = React.createContext(null);\n\nfunction checkIsValidInnerRef(el) {\n !(el && isHtmlElement(el)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `\n provided.innerRef has not been provided with a HTMLElement.\n\n You can find a guide on using the innerRef callback functions at:\n https://github.com/hello-pangea/dnd/blob/main/docs/guides/using-inner-ref.md\n `) : invariant() : void 0;\n}\n\nfunction useValidation$1(props, contextId, getRef) {\n useDevSetupWarning(() => {\n function prefix(id) {\n return `Draggable[id: ${id}]: `;\n }\n const id = props.draggableId;\n !id ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Draggable requires a draggableId') : invariant(false) : void 0;\n !(typeof id === 'string') ? process.env.NODE_ENV !== \"production\" ? invariant(false, `Draggable requires a [string] draggableId.\n Provided: [type: ${typeof id}] (value: ${id})`) : invariant(false) : void 0;\n !Number.isInteger(props.index) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `${prefix(id)} requires an integer index prop`) : invariant(false) : void 0;\n if (props.mapped.type === 'DRAGGING') {\n return;\n }\n checkIsValidInnerRef(getRef());\n if (props.isEnabled) {\n !findDragHandle(contextId, id) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `${prefix(id)} Unable to find drag handle`) : invariant(false) : void 0;\n }\n });\n}\nfunction useClonePropValidation(isClone) {\n useDev(() => {\n const initialRef = useRef(isClone);\n useDevSetupWarning(() => {\n !(isClone === initialRef.current) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Draggable isClone prop value changed during component life') : invariant(false) : void 0;\n }, [isClone]);\n });\n}\n\nfunction useRequiredContext(Context) {\n const result = useContext(Context);\n !result ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Could not find required context') : invariant() : void 0;\n return result;\n}\n\nfunction preventHtml5Dnd(event) {\n event.preventDefault();\n}\nconst Draggable = props => {\n const ref = useRef(null);\n const setRef = useCallback((el = null) => {\n ref.current = el;\n }, []);\n const getRef = useCallback(() => ref.current, []);\n const {\n contextId,\n dragHandleUsageInstructionsId,\n registry\n } = useRequiredContext(AppContext);\n const {\n type,\n droppableId\n } = useRequiredContext(DroppableContext);\n const descriptor = useMemo(() => ({\n id: props.draggableId,\n index: props.index,\n type,\n droppableId\n }), [props.draggableId, props.index, type, droppableId]);\n const {\n children,\n draggableId,\n isEnabled,\n shouldRespectForcePress,\n canDragInteractiveElements,\n isClone,\n mapped,\n dropAnimationFinished: dropAnimationFinishedAction\n } = props;\n useValidation$1(props, contextId, getRef);\n useClonePropValidation(isClone);\n if (!isClone) {\n const forPublisher = useMemo(() => ({\n descriptor,\n registry,\n getDraggableRef: getRef,\n canDragInteractiveElements,\n shouldRespectForcePress,\n isEnabled\n }), [descriptor, registry, getRef, canDragInteractiveElements, shouldRespectForcePress, isEnabled]);\n useDraggablePublisher(forPublisher);\n }\n const dragHandleProps = useMemo(() => isEnabled ? {\n tabIndex: 0,\n role: 'button',\n 'aria-describedby': dragHandleUsageInstructionsId,\n 'data-rfd-drag-handle-draggable-id': draggableId,\n 'data-rfd-drag-handle-context-id': contextId,\n draggable: false,\n onDragStart: preventHtml5Dnd\n } : null, [contextId, dragHandleUsageInstructionsId, draggableId, isEnabled]);\n const onMoveEnd = useCallback(event => {\n if (mapped.type !== 'DRAGGING') {\n return;\n }\n if (!mapped.dropping) {\n return;\n }\n if (event.propertyName !== 'transform') {\n return;\n }\n flushSync(dropAnimationFinishedAction);\n }, [dropAnimationFinishedAction, mapped]);\n const provided = useMemo(() => {\n const style = getStyle$1(mapped);\n const onTransitionEnd = mapped.type === 'DRAGGING' && mapped.dropping ? onMoveEnd : undefined;\n const result = {\n innerRef: setRef,\n draggableProps: {\n 'data-rfd-draggable-context-id': contextId,\n 'data-rfd-draggable-id': draggableId,\n style,\n onTransitionEnd\n },\n dragHandleProps\n };\n return result;\n }, [contextId, dragHandleProps, draggableId, mapped, onMoveEnd, setRef]);\n const rubric = useMemo(() => ({\n draggableId: descriptor.id,\n type: descriptor.type,\n source: {\n index: descriptor.index,\n droppableId: descriptor.droppableId\n }\n }), [descriptor.droppableId, descriptor.id, descriptor.index, descriptor.type]);\n return React.createElement(React.Fragment, null, children(provided, mapped.snapshot, rubric));\n};\n\nvar isStrictEqual = (a, b) => a === b;\n\nvar whatIsDraggedOverFromResult = result => {\n const {\n combine,\n destination\n } = result;\n if (destination) {\n return destination.droppableId;\n }\n if (combine) {\n return combine.droppableId;\n }\n return null;\n};\n\nconst getCombineWithFromResult = result => {\n return result.combine ? result.combine.draggableId : null;\n};\nconst getCombineWithFromImpact = impact => {\n return impact.at && impact.at.type === 'COMBINE' ? impact.at.combine.draggableId : null;\n};\nfunction getDraggableSelector() {\n const memoizedOffset = memoizeOne((x, y) => ({\n x,\n y\n }));\n const getMemoizedSnapshot = memoizeOne((mode, isClone, draggingOver = null, combineWith = null, dropping = null) => ({\n isDragging: true,\n isClone,\n isDropAnimating: Boolean(dropping),\n dropAnimation: dropping,\n mode,\n draggingOver,\n combineWith,\n combineTargetFor: null\n }));\n const getMemoizedProps = memoizeOne((offset, mode, dimension, isClone, draggingOver = null, combineWith = null, forceShouldAnimate = null) => ({\n mapped: {\n type: 'DRAGGING',\n dropping: null,\n draggingOver,\n combineWith,\n mode,\n offset,\n dimension,\n forceShouldAnimate,\n snapshot: getMemoizedSnapshot(mode, isClone, draggingOver, combineWith, null)\n }\n }));\n const selector = (state, ownProps) => {\n if (isDragging(state)) {\n if (state.critical.draggable.id !== ownProps.draggableId) {\n return null;\n }\n const offset = state.current.client.offset;\n const dimension = state.dimensions.draggables[ownProps.draggableId];\n const draggingOver = whatIsDraggedOver(state.impact);\n const combineWith = getCombineWithFromImpact(state.impact);\n const forceShouldAnimate = state.forceShouldAnimate;\n return getMemoizedProps(memoizedOffset(offset.x, offset.y), state.movementMode, dimension, ownProps.isClone, draggingOver, combineWith, forceShouldAnimate);\n }\n if (state.phase === 'DROP_ANIMATING') {\n const completed = state.completed;\n if (completed.result.draggableId !== ownProps.draggableId) {\n return null;\n }\n const isClone = ownProps.isClone;\n const dimension = state.dimensions.draggables[ownProps.draggableId];\n const result = completed.result;\n const mode = result.mode;\n const draggingOver = whatIsDraggedOverFromResult(result);\n const combineWith = getCombineWithFromResult(result);\n const duration = state.dropDuration;\n const dropping = {\n duration,\n curve: curves.drop,\n moveTo: state.newHomeClientOffset,\n opacity: combineWith ? combine.opacity.drop : null,\n scale: combineWith ? combine.scale.drop : null\n };\n return {\n mapped: {\n type: 'DRAGGING',\n offset: state.newHomeClientOffset,\n dimension,\n dropping,\n draggingOver,\n combineWith,\n mode,\n forceShouldAnimate: null,\n snapshot: getMemoizedSnapshot(mode, isClone, draggingOver, combineWith, dropping)\n }\n };\n }\n return null;\n };\n return selector;\n}\nfunction getSecondarySnapshot(combineTargetFor = null) {\n return {\n isDragging: false,\n isDropAnimating: false,\n isClone: false,\n dropAnimation: null,\n mode: null,\n draggingOver: null,\n combineTargetFor,\n combineWith: null\n };\n}\nconst atRest = {\n mapped: {\n type: 'SECONDARY',\n offset: origin,\n combineTargetFor: null,\n shouldAnimateDisplacement: true,\n snapshot: getSecondarySnapshot(null)\n }\n};\nfunction getSecondarySelector() {\n const memoizedOffset = memoizeOne((x, y) => ({\n x,\n y\n }));\n const getMemoizedSnapshot = memoizeOne(getSecondarySnapshot);\n const getMemoizedProps = memoizeOne((offset, combineTargetFor = null, shouldAnimateDisplacement) => ({\n mapped: {\n type: 'SECONDARY',\n offset,\n combineTargetFor,\n shouldAnimateDisplacement,\n snapshot: getMemoizedSnapshot(combineTargetFor)\n }\n }));\n const getFallback = combineTargetFor => {\n return combineTargetFor ? getMemoizedProps(origin, combineTargetFor, true) : null;\n };\n const getProps = (ownId, draggingId, impact, afterCritical) => {\n const visualDisplacement = impact.displaced.visible[ownId];\n const isAfterCriticalInVirtualList = Boolean(afterCritical.inVirtualList && afterCritical.effected[ownId]);\n const combine = tryGetCombine(impact);\n const combineTargetFor = combine && combine.draggableId === ownId ? draggingId : null;\n if (!visualDisplacement) {\n if (!isAfterCriticalInVirtualList) {\n return getFallback(combineTargetFor);\n }\n if (impact.displaced.invisible[ownId]) {\n return null;\n }\n const change = negate(afterCritical.displacedBy.point);\n const offset = memoizedOffset(change.x, change.y);\n return getMemoizedProps(offset, combineTargetFor, true);\n }\n if (isAfterCriticalInVirtualList) {\n return getFallback(combineTargetFor);\n }\n const displaceBy = impact.displacedBy.point;\n const offset = memoizedOffset(displaceBy.x, displaceBy.y);\n return getMemoizedProps(offset, combineTargetFor, visualDisplacement.shouldAnimate);\n };\n const selector = (state, ownProps) => {\n if (isDragging(state)) {\n if (state.critical.draggable.id === ownProps.draggableId) {\n return null;\n }\n return getProps(ownProps.draggableId, state.critical.draggable.id, state.impact, state.afterCritical);\n }\n if (state.phase === 'DROP_ANIMATING') {\n const completed = state.completed;\n if (completed.result.draggableId === ownProps.draggableId) {\n return null;\n }\n return getProps(ownProps.draggableId, completed.result.draggableId, completed.impact, completed.afterCritical);\n }\n return null;\n };\n return selector;\n}\nconst makeMapStateToProps$1 = () => {\n const draggingSelector = getDraggableSelector();\n const secondarySelector = getSecondarySelector();\n const selector = (state, ownProps) => draggingSelector(state, ownProps) || secondarySelector(state, ownProps) || atRest;\n return selector;\n};\nconst mapDispatchToProps$1 = {\n dropAnimationFinished: dropAnimationFinished\n};\nconst ConnectedDraggable = connect(makeMapStateToProps$1, mapDispatchToProps$1, null, {\n context: StoreContext,\n areStatePropsEqual: isStrictEqual\n})(Draggable);\n\nfunction PrivateDraggable(props) {\n const droppableContext = useRequiredContext(DroppableContext);\n const isUsingCloneFor = droppableContext.isUsingCloneFor;\n if (isUsingCloneFor === props.draggableId && !props.isClone) {\n return null;\n }\n return React.createElement(ConnectedDraggable, props);\n}\nfunction PublicDraggable(props) {\n const isEnabled = typeof props.isDragDisabled === 'boolean' ? !props.isDragDisabled : true;\n const canDragInteractiveElements = Boolean(props.disableInteractiveElementBlocking);\n const shouldRespectForcePress = Boolean(props.shouldRespectForcePress);\n return React.createElement(PrivateDraggable, _extends({}, props, {\n isClone: false,\n isEnabled: isEnabled,\n canDragInteractiveElements: canDragInteractiveElements,\n shouldRespectForcePress: shouldRespectForcePress\n }));\n}\n\nconst isEqual = base => value => base === value;\nconst isScroll = isEqual('scroll');\nconst isAuto = isEqual('auto');\nconst isVisible = isEqual('visible');\nconst isEither = (overflow, fn) => fn(overflow.overflowX) || fn(overflow.overflowY);\nconst isBoth = (overflow, fn) => fn(overflow.overflowX) && fn(overflow.overflowY);\nconst isElementScrollable = el => {\n const style = window.getComputedStyle(el);\n const overflow = {\n overflowX: style.overflowX,\n overflowY: style.overflowY\n };\n return isEither(overflow, isScroll) || isEither(overflow, isAuto);\n};\nconst isBodyScrollable = () => {\n if (process.env.NODE_ENV === 'production') {\n return false;\n }\n const body = getBodyElement();\n const html = document.documentElement;\n !html ? process.env.NODE_ENV !== \"production\" ? invariant() : invariant() : void 0;\n if (!isElementScrollable(body)) {\n return false;\n }\n const htmlStyle = window.getComputedStyle(html);\n const htmlOverflow = {\n overflowX: htmlStyle.overflowX,\n overflowY: htmlStyle.overflowY\n };\n if (isBoth(htmlOverflow, isVisible)) {\n return false;\n }\n process.env.NODE_ENV !== \"production\" ? warning(`\n We have detected that your <body> element might be a scroll container.\n We have found no reliable way of detecting whether the <body> element is a scroll container.\n Under most circumstances a <body> scroll bar will be on the <html> element (document.documentElement)\n\n Because we cannot determine if the <body> is a scroll container, and generally it is not one,\n we will be treating the <body> as *not* a scroll container\n\n More information: https://github.com/hello-pangea/dnd/blob/main/docs/guides/how-we-detect-scroll-containers.md\n `) : void 0;\n return false;\n};\nconst getClosestScrollable = el => {\n if (el == null) {\n return null;\n }\n if (el === document.body) {\n return isBodyScrollable() ? el : null;\n }\n if (el === document.documentElement) {\n return null;\n }\n if (!isElementScrollable(el)) {\n return getClosestScrollable(el.parentElement);\n }\n return el;\n};\n\nvar checkForNestedScrollContainers = scrollable => {\n if (!scrollable) {\n return;\n }\n const anotherScrollParent = getClosestScrollable(scrollable.parentElement);\n if (!anotherScrollParent) {\n return;\n }\n process.env.NODE_ENV !== \"production\" ? warning(`\n Droppable: unsupported nested scroll container detected.\n A Droppable can only have one scroll parent (which can be itself)\n Nested scroll containers are currently not supported.\n\n We hope to support nested scroll containers soon: https://github.com/atlassian/react-beautiful-dnd/issues/131\n `) : void 0;\n};\n\nvar getScroll = el => ({\n x: el.scrollLeft,\n y: el.scrollTop\n});\n\nconst getIsFixed = el => {\n if (!el) {\n return false;\n }\n const style = window.getComputedStyle(el);\n if (style.position === 'fixed') {\n return true;\n }\n return getIsFixed(el.parentElement);\n};\nvar getEnv = start => {\n const closestScrollable = getClosestScrollable(start);\n const isFixedOnPage = getIsFixed(start);\n return {\n closestScrollable,\n isFixedOnPage\n };\n};\n\nvar getDroppableDimension = ({\n descriptor,\n isEnabled,\n isCombineEnabled,\n isFixedOnPage,\n direction,\n client,\n page,\n closest\n}) => {\n const frame = (() => {\n if (!closest) {\n return null;\n }\n const {\n scrollSize,\n client: frameClient\n } = closest;\n const maxScroll = getMaxScroll({\n scrollHeight: scrollSize.scrollHeight,\n scrollWidth: scrollSize.scrollWidth,\n height: frameClient.paddingBox.height,\n width: frameClient.paddingBox.width\n });\n return {\n pageMarginBox: closest.page.marginBox,\n frameClient,\n scrollSize,\n shouldClipSubject: closest.shouldClipSubject,\n scroll: {\n initial: closest.scroll,\n current: closest.scroll,\n max: maxScroll,\n diff: {\n value: origin,\n displacement: origin\n }\n }\n };\n })();\n const axis = direction === 'vertical' ? vertical : horizontal;\n const subject = getSubject({\n page,\n withPlaceholder: null,\n axis,\n frame\n });\n const dimension = {\n descriptor,\n isCombineEnabled,\n isFixedOnPage,\n axis,\n isEnabled,\n client,\n page,\n frame,\n subject\n };\n return dimension;\n};\n\nconst getClient = (targetRef, closestScrollable) => {\n const base = getBox(targetRef);\n if (!closestScrollable) {\n return base;\n }\n if (targetRef !== closestScrollable) {\n return base;\n }\n const top = base.paddingBox.top - closestScrollable.scrollTop;\n const left = base.paddingBox.left - closestScrollable.scrollLeft;\n const bottom = top + closestScrollable.scrollHeight;\n const right = left + closestScrollable.scrollWidth;\n const paddingBox = {\n top,\n right,\n bottom,\n left\n };\n const borderBox = expand(paddingBox, base.border);\n const client = createBox({\n borderBox,\n margin: base.margin,\n border: base.border,\n padding: base.padding\n });\n return client;\n};\nvar getDimension = ({\n ref,\n descriptor,\n env,\n windowScroll,\n direction,\n isDropDisabled,\n isCombineEnabled,\n shouldClipSubject\n}) => {\n const closestScrollable = env.closestScrollable;\n const client = getClient(ref, closestScrollable);\n const page = withScroll(client, windowScroll);\n const closest = (() => {\n if (!closestScrollable) {\n return null;\n }\n const frameClient = getBox(closestScrollable);\n const scrollSize = {\n scrollHeight: closestScrollable.scrollHeight,\n scrollWidth: closestScrollable.scrollWidth\n };\n return {\n client: frameClient,\n page: withScroll(frameClient, windowScroll),\n scroll: getScroll(closestScrollable),\n scrollSize,\n shouldClipSubject\n };\n })();\n const dimension = getDroppableDimension({\n descriptor,\n isEnabled: !isDropDisabled,\n isCombineEnabled,\n isFixedOnPage: env.isFixedOnPage,\n direction,\n client,\n page,\n closest\n });\n return dimension;\n};\n\nconst immediate = {\n passive: false\n};\nconst delayed = {\n passive: true\n};\nvar getListenerOptions = options => options.shouldPublishImmediately ? immediate : delayed;\n\nconst getClosestScrollableFromDrag = dragging => dragging && dragging.env.closestScrollable || null;\nfunction useDroppablePublisher(args) {\n const whileDraggingRef = useRef(null);\n const appContext = useRequiredContext(AppContext);\n const uniqueId = useUniqueId('droppable');\n const {\n registry,\n marshal\n } = appContext;\n const previousRef = usePrevious(args);\n const descriptor = useMemo(() => ({\n id: args.droppableId,\n type: args.type,\n mode: args.mode\n }), [args.droppableId, args.mode, args.type]);\n const publishedDescriptorRef = useRef(descriptor);\n const memoizedUpdateScroll = useMemo(() => memoizeOne((x, y) => {\n !whileDraggingRef.current ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Can only update scroll when dragging') : invariant() : void 0;\n const scroll = {\n x,\n y\n };\n marshal.updateDroppableScroll(descriptor.id, scroll);\n }), [descriptor.id, marshal]);\n const getClosestScroll = useCallback(() => {\n const dragging = whileDraggingRef.current;\n if (!dragging || !dragging.env.closestScrollable) {\n return origin;\n }\n return getScroll(dragging.env.closestScrollable);\n }, []);\n const updateScroll = useCallback(() => {\n const scroll = getClosestScroll();\n memoizedUpdateScroll(scroll.x, scroll.y);\n }, [getClosestScroll, memoizedUpdateScroll]);\n const scheduleScrollUpdate = useMemo(() => rafSchd(updateScroll), [updateScroll]);\n const onClosestScroll = useCallback(() => {\n const dragging = whileDraggingRef.current;\n const closest = getClosestScrollableFromDrag(dragging);\n !(dragging && closest) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Could not find scroll options while scrolling') : invariant() : void 0;\n const options = dragging.scrollOptions;\n if (options.shouldPublishImmediately) {\n updateScroll();\n return;\n }\n scheduleScrollUpdate();\n }, [scheduleScrollUpdate, updateScroll]);\n const getDimensionAndWatchScroll = useCallback((windowScroll, options) => {\n !!whileDraggingRef.current ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot collect a droppable while a drag is occurring') : invariant() : void 0;\n const previous = previousRef.current;\n const ref = previous.getDroppableRef();\n !ref ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot collect without a droppable ref') : invariant() : void 0;\n const env = getEnv(ref);\n const dragging = {\n ref,\n descriptor,\n env,\n scrollOptions: options\n };\n whileDraggingRef.current = dragging;\n const dimension = getDimension({\n ref,\n descriptor,\n env,\n windowScroll,\n direction: previous.direction,\n isDropDisabled: previous.isDropDisabled,\n isCombineEnabled: previous.isCombineEnabled,\n shouldClipSubject: !previous.ignoreContainerClipping\n });\n const scrollable = env.closestScrollable;\n if (scrollable) {\n scrollable.setAttribute(scrollContainer.contextId, appContext.contextId);\n scrollable.addEventListener('scroll', onClosestScroll, getListenerOptions(dragging.scrollOptions));\n if (process.env.NODE_ENV !== 'production') {\n checkForNestedScrollContainers(scrollable);\n }\n }\n return dimension;\n }, [appContext.contextId, descriptor, onClosestScroll, previousRef]);\n const getScrollWhileDragging = useCallback(() => {\n const dragging = whileDraggingRef.current;\n const closest = getClosestScrollableFromDrag(dragging);\n !(dragging && closest) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Can only recollect Droppable client for Droppables that have a scroll container') : invariant() : void 0;\n return getScroll(closest);\n }, []);\n const dragStopped = useCallback(() => {\n const dragging = whileDraggingRef.current;\n !dragging ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot stop drag when no active drag') : invariant() : void 0;\n const closest = getClosestScrollableFromDrag(dragging);\n whileDraggingRef.current = null;\n if (!closest) {\n return;\n }\n scheduleScrollUpdate.cancel();\n closest.removeAttribute(scrollContainer.contextId);\n closest.removeEventListener('scroll', onClosestScroll, getListenerOptions(dragging.scrollOptions));\n }, [onClosestScroll, scheduleScrollUpdate]);\n const scroll = useCallback(change => {\n const dragging = whileDraggingRef.current;\n !dragging ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot scroll when there is no drag') : invariant() : void 0;\n const closest = getClosestScrollableFromDrag(dragging);\n !closest ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Cannot scroll a droppable with no closest scrollable') : invariant() : void 0;\n closest.scrollTop += change.y;\n closest.scrollLeft += change.x;\n }, []);\n const callbacks = useMemo(() => {\n return {\n getDimensionAndWatchScroll,\n getScrollWhileDragging,\n dragStopped,\n scroll\n };\n }, [dragStopped, getDimensionAndWatchScroll, getScrollWhileDragging, scroll]);\n const entry = useMemo(() => ({\n uniqueId,\n descriptor,\n callbacks\n }), [callbacks, descriptor, uniqueId]);\n useIsomorphicLayoutEffect(() => {\n publishedDescriptorRef.current = entry.descriptor;\n registry.droppable.register(entry);\n return () => {\n if (whileDraggingRef.current) {\n process.env.NODE_ENV !== \"production\" ? warning('Unsupported: changing the droppableId or type of a Droppable during a drag') : void 0;\n dragStopped();\n }\n registry.droppable.unregister(entry);\n };\n }, [callbacks, descriptor, dragStopped, entry, marshal, registry.droppable]);\n useIsomorphicLayoutEffect(() => {\n if (!whileDraggingRef.current) {\n return;\n }\n marshal.updateDroppableIsEnabled(publishedDescriptorRef.current.id, !args.isDropDisabled);\n }, [args.isDropDisabled, marshal]);\n useIsomorphicLayoutEffect(() => {\n if (!whileDraggingRef.current) {\n return;\n }\n marshal.updateDroppableIsCombineEnabled(publishedDescriptorRef.current.id, args.isCombineEnabled);\n }, [args.isCombineEnabled, marshal]);\n}\n\nfunction noop() {}\nconst empty = {\n width: 0,\n height: 0,\n margin: noSpacing\n};\nconst getSize = ({\n isAnimatingOpenOnMount,\n placeholder,\n animate\n}) => {\n if (isAnimatingOpenOnMount) {\n return empty;\n }\n if (animate === 'close') {\n return empty;\n }\n return {\n height: placeholder.client.borderBox.height,\n width: placeholder.client.borderBox.width,\n margin: placeholder.client.margin\n };\n};\nconst getStyle = ({\n isAnimatingOpenOnMount,\n placeholder,\n animate\n}) => {\n const size = getSize({\n isAnimatingOpenOnMount,\n placeholder,\n animate\n });\n return {\n display: placeholder.display,\n boxSizing: 'border-box',\n width: size.width,\n height: size.height,\n marginTop: size.margin.top,\n marginRight: size.margin.right,\n marginBottom: size.margin.bottom,\n marginLeft: size.margin.left,\n flexShrink: '0',\n flexGrow: '0',\n pointerEvents: 'none',\n transition: animate !== 'none' ? transitions.placeholder : null\n };\n};\nconst Placeholder = props => {\n const animateOpenTimerRef = useRef(null);\n const tryClearAnimateOpenTimer = useCallback(() => {\n if (!animateOpenTimerRef.current) {\n return;\n }\n clearTimeout(animateOpenTimerRef.current);\n animateOpenTimerRef.current = null;\n }, []);\n const {\n animate,\n onTransitionEnd,\n onClose,\n contextId\n } = props;\n const [isAnimatingOpenOnMount, setIsAnimatingOpenOnMount] = useState(props.animate === 'open');\n useEffect(() => {\n if (!isAnimatingOpenOnMount) {\n return noop;\n }\n if (animate !== 'open') {\n tryClearAnimateOpenTimer();\n setIsAnimatingOpenOnMount(false);\n return noop;\n }\n if (animateOpenTimerRef.current) {\n return noop;\n }\n animateOpenTimerRef.current = setTimeout(() => {\n animateOpenTimerRef.current = null;\n setIsAnimatingOpenOnMount(false);\n });\n return tryClearAnimateOpenTimer;\n }, [animate, isAnimatingOpenOnMount, tryClearAnimateOpenTimer]);\n const onSizeChangeEnd = useCallback(event => {\n if (event.propertyName !== 'height') {\n return;\n }\n onTransitionEnd();\n if (animate === 'close') {\n onClose();\n }\n }, [animate, onClose, onTransitionEnd]);\n const style = getStyle({\n isAnimatingOpenOnMount,\n animate: props.animate,\n placeholder: props.placeholder\n });\n return React.createElement(props.placeholder.tagName, {\n style,\n 'data-rfd-placeholder-context-id': contextId,\n onTransitionEnd: onSizeChangeEnd,\n ref: props.innerRef\n });\n};\nvar Placeholder$1 = React.memo(Placeholder);\n\nfunction isBoolean(value) {\n return typeof value === 'boolean';\n}\nfunction runChecks(args, checks) {\n checks.forEach(check => check(args));\n}\nconst shared = [function required({\n props\n}) {\n !props.droppableId ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'A Droppable requires a droppableId prop') : invariant() : void 0;\n !(typeof props.droppableId === 'string') ? process.env.NODE_ENV !== \"production\" ? invariant(false, `A Droppable requires a [string] droppableId. Provided: [${typeof props.droppableId}]`) : invariant() : void 0;\n}, function boolean({\n props\n}) {\n !isBoolean(props.isDropDisabled) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'isDropDisabled must be a boolean') : invariant() : void 0;\n !isBoolean(props.isCombineEnabled) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'isCombineEnabled must be a boolean') : invariant() : void 0;\n !isBoolean(props.ignoreContainerClipping) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'ignoreContainerClipping must be a boolean') : invariant() : void 0;\n}, function ref({\n getDroppableRef\n}) {\n checkIsValidInnerRef(getDroppableRef());\n}];\nconst standard = [function placeholder({\n props,\n getPlaceholderRef\n}) {\n if (!props.placeholder) {\n return;\n }\n const ref = getPlaceholderRef();\n if (ref) {\n return;\n }\n process.env.NODE_ENV !== \"production\" ? warning(`\n Droppable setup issue [droppableId: \"${props.droppableId}\"]:\n DroppableProvided > placeholder could not be found.\n\n Please be sure to add the {provided.placeholder} React Node as a child of your Droppable.\n More information: https://github.com/hello-pangea/dnd/blob/main/docs/api/droppable.md\n `) : void 0;\n}];\nconst virtual = [function hasClone({\n props\n}) {\n !props.renderClone ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Must provide a clone render function (renderClone) for virtual lists') : invariant() : void 0;\n}, function hasNoPlaceholder({\n getPlaceholderRef\n}) {\n !!getPlaceholderRef() ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Expected virtual list to not have a placeholder') : invariant() : void 0;\n}];\nfunction useValidation(args) {\n useDevSetupWarning(() => {\n runChecks(args, shared);\n if (args.props.mode === 'standard') {\n runChecks(args, standard);\n }\n if (args.props.mode === 'virtual') {\n runChecks(args, virtual);\n }\n });\n}\n\nclass AnimateInOut extends React.PureComponent {\n constructor(...args) {\n super(...args);\n this.state = {\n isVisible: Boolean(this.props.on),\n data: this.props.on,\n animate: this.props.shouldAnimate && this.props.on ? 'open' : 'none'\n };\n this.onClose = () => {\n if (this.state.animate !== 'close') {\n return;\n }\n this.setState({\n isVisible: false\n });\n };\n }\n static getDerivedStateFromProps(props, state) {\n if (!props.shouldAnimate) {\n return {\n isVisible: Boolean(props.on),\n data: props.on,\n animate: 'none'\n };\n }\n if (props.on) {\n return {\n isVisible: true,\n data: props.on,\n animate: 'open'\n };\n }\n if (state.isVisible) {\n return {\n isVisible: true,\n data: state.data,\n animate: 'close'\n };\n }\n return {\n isVisible: false,\n animate: 'close',\n data: null\n };\n }\n render() {\n if (!this.state.isVisible) {\n return null;\n }\n const provided = {\n onClose: this.onClose,\n data: this.state.data,\n animate: this.state.animate\n };\n return this.props.children(provided);\n }\n}\n\nconst Droppable = props => {\n const appContext = useContext(AppContext);\n !appContext ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Could not find app context') : invariant() : void 0;\n const {\n contextId,\n isMovementAllowed\n } = appContext;\n const droppableRef = useRef(null);\n const placeholderRef = useRef(null);\n const {\n children,\n droppableId,\n type,\n mode,\n direction,\n ignoreContainerClipping,\n isDropDisabled,\n isCombineEnabled,\n snapshot,\n useClone,\n updateViewportMaxScroll,\n getContainerForClone\n } = props;\n const getDroppableRef = useCallback(() => droppableRef.current, []);\n const setDroppableRef = useCallback((value = null) => {\n droppableRef.current = value;\n }, []);\n const getPlaceholderRef = useCallback(() => placeholderRef.current, []);\n const setPlaceholderRef = useCallback((value = null) => {\n placeholderRef.current = value;\n }, []);\n useValidation({\n props,\n getDroppableRef,\n getPlaceholderRef\n });\n const onPlaceholderTransitionEnd = useCallback(() => {\n if (isMovementAllowed()) {\n updateViewportMaxScroll({\n maxScroll: getMaxWindowScroll()\n });\n }\n }, [isMovementAllowed, updateViewportMaxScroll]);\n useDroppablePublisher({\n droppableId,\n type,\n mode,\n direction,\n isDropDisabled,\n isCombineEnabled,\n ignoreContainerClipping,\n getDroppableRef\n });\n const placeholder = useMemo(() => React.createElement(AnimateInOut, {\n on: props.placeholder,\n shouldAnimate: props.shouldAnimatePlaceholder\n }, ({\n onClose,\n data,\n animate\n }) => React.createElement(Placeholder$1, {\n placeholder: data,\n onClose: onClose,\n innerRef: setPlaceholderRef,\n animate: animate,\n contextId: contextId,\n onTransitionEnd: onPlaceholderTransitionEnd\n })), [contextId, onPlaceholderTransitionEnd, props.placeholder, props.shouldAnimatePlaceholder, setPlaceholderRef]);\n const provided = useMemo(() => ({\n innerRef: setDroppableRef,\n placeholder,\n droppableProps: {\n 'data-rfd-droppable-id': droppableId,\n 'data-rfd-droppable-context-id': contextId\n }\n }), [contextId, droppableId, placeholder, setDroppableRef]);\n const isUsingCloneFor = useClone ? useClone.dragging.draggableId : null;\n const droppableContext = useMemo(() => ({\n droppableId,\n type,\n isUsingCloneFor\n }), [droppableId, isUsingCloneFor, type]);\n function getClone() {\n if (!useClone) {\n return null;\n }\n const {\n dragging,\n render\n } = useClone;\n const node = React.createElement(PrivateDraggable, {\n draggableId: dragging.draggableId,\n index: dragging.source.index,\n isClone: true,\n isEnabled: true,\n shouldRespectForcePress: false,\n canDragInteractiveElements: true\n }, (draggableProvided, draggableSnapshot) => render(draggableProvided, draggableSnapshot, dragging));\n return ReactDOM.createPortal(node, getContainerForClone());\n }\n return React.createElement(DroppableContext.Provider, {\n value: droppableContext\n }, children(provided, snapshot), getClone());\n};\n\nfunction getBody() {\n !document.body ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'document.body is not ready') : invariant() : void 0;\n return document.body;\n}\nconst defaultProps = {\n mode: 'standard',\n type: 'DEFAULT',\n direction: 'vertical',\n isDropDisabled: false,\n isCombineEnabled: false,\n ignoreContainerClipping: false,\n renderClone: null,\n getContainerForClone: getBody\n};\nconst attachDefaultPropsToOwnProps = ownProps => {\n let mergedProps = {\n ...ownProps\n };\n let defaultPropKey;\n for (defaultPropKey in defaultProps) {\n if (ownProps[defaultPropKey] === undefined) {\n mergedProps = {\n ...mergedProps,\n [defaultPropKey]: defaultProps[defaultPropKey]\n };\n }\n }\n return mergedProps;\n};\nconst isMatchingType = (type, critical) => type === critical.droppable.type;\nconst getDraggable = (critical, dimensions) => dimensions.draggables[critical.draggable.id];\nconst makeMapStateToProps = () => {\n const idleWithAnimation = {\n placeholder: null,\n shouldAnimatePlaceholder: true,\n snapshot: {\n isDraggingOver: false,\n draggingOverWith: null,\n draggingFromThisWith: null,\n isUsingPlaceholder: false\n },\n useClone: null\n };\n const idleWithoutAnimation = {\n ...idleWithAnimation,\n shouldAnimatePlaceholder: false\n };\n const getDraggableRubric = memoizeOne(descriptor => ({\n draggableId: descriptor.id,\n type: descriptor.type,\n source: {\n index: descriptor.index,\n droppableId: descriptor.droppableId\n }\n }));\n const getMapProps = memoizeOne((id, isEnabled, isDraggingOverForConsumer, isDraggingOverForImpact, dragging, renderClone) => {\n const draggableId = dragging.descriptor.id;\n const isHome = dragging.descriptor.droppableId === id;\n if (isHome) {\n const useClone = renderClone ? {\n render: renderClone,\n dragging: getDraggableRubric(dragging.descriptor)\n } : null;\n const snapshot = {\n isDraggingOver: isDraggingOverForConsumer,\n draggingOverWith: isDraggingOverForConsumer ? draggableId : null,\n draggingFromThisWith: draggableId,\n isUsingPlaceholder: true\n };\n return {\n placeholder: dragging.placeholder,\n shouldAnimatePlaceholder: false,\n snapshot,\n useClone\n };\n }\n if (!isEnabled) {\n return idleWithoutAnimation;\n }\n if (!isDraggingOverForImpact) {\n return idleWithAnimation;\n }\n const snapshot = {\n isDraggingOver: isDraggingOverForConsumer,\n draggingOverWith: draggableId,\n draggingFromThisWith: null,\n isUsingPlaceholder: true\n };\n return {\n placeholder: dragging.placeholder,\n shouldAnimatePlaceholder: true,\n snapshot,\n useClone: null\n };\n });\n const selector = (state, ownProps) => {\n const ownPropsWithDefaultProps = attachDefaultPropsToOwnProps(ownProps);\n const id = ownPropsWithDefaultProps.droppableId;\n const type = ownPropsWithDefaultProps.type;\n const isEnabled = !ownPropsWithDefaultProps.isDropDisabled;\n const renderClone = ownPropsWithDefaultProps.renderClone;\n if (isDragging(state)) {\n const critical = state.critical;\n if (!isMatchingType(type, critical)) {\n return idleWithoutAnimation;\n }\n const dragging = getDraggable(critical, state.dimensions);\n const isDraggingOver = whatIsDraggedOver(state.impact) === id;\n return getMapProps(id, isEnabled, isDraggingOver, isDraggingOver, dragging, renderClone);\n }\n if (state.phase === 'DROP_ANIMATING') {\n const completed = state.completed;\n if (!isMatchingType(type, completed.critical)) {\n return idleWithoutAnimation;\n }\n const dragging = getDraggable(completed.critical, state.dimensions);\n return getMapProps(id, isEnabled, whatIsDraggedOverFromResult(completed.result) === id, whatIsDraggedOver(completed.impact) === id, dragging, renderClone);\n }\n if (state.phase === 'IDLE' && state.completed && !state.shouldFlush) {\n const completed = state.completed;\n if (!isMatchingType(type, completed.critical)) {\n return idleWithoutAnimation;\n }\n const wasOver = whatIsDraggedOver(completed.impact) === id;\n const wasCombining = Boolean(completed.impact.at && completed.impact.at.type === 'COMBINE');\n const isHome = completed.critical.droppable.id === id;\n if (wasOver) {\n return wasCombining ? idleWithAnimation : idleWithoutAnimation;\n }\n if (isHome) {\n return idleWithAnimation;\n }\n return idleWithoutAnimation;\n }\n return idleWithoutAnimation;\n };\n return selector;\n};\nconst mapDispatchToProps = {\n updateViewportMaxScroll: updateViewportMaxScroll\n};\nconst ConnectedDroppable = connect(makeMapStateToProps, mapDispatchToProps, (stateProps, dispatchProps, ownProps) => {\n return {\n ...attachDefaultPropsToOwnProps(ownProps),\n ...stateProps,\n ...dispatchProps\n };\n}, {\n context: StoreContext,\n areStatePropsEqual: isStrictEqual\n})(Droppable);\n\nexport { DragDropContext, PublicDraggable as Draggable, ConnectedDroppable as Droppable, useKeyboardSensor, useMouseSensor, useTouchSensor };\n","'use client';\n\nimport * as React from 'react';\nimport Button from '@mui/material/Button';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nlet warnedOnce = false;\nconst warn = () => {\n if (!warnedOnce) {\n console.warn(['MUI: The LoadingButton component functionality is now part of the Button component from Material UI.', '', \"You should use `import Button from '@mui/material/Button'`\", \"or `import { Button } from '@mui/material'`\"].join('\\n'));\n warnedOnce = true;\n }\n};\n\n/**\n * @ignore - do not document.\n */\nexport default /*#__PURE__*/React.forwardRef(function DeprecatedLoadingButton(props, ref) {\n warn();\n return /*#__PURE__*/_jsx(Button, {\n ref: ref,\n ...props\n });\n});","import DeleteIcon from \"@mui/icons-material/Delete\";\nimport HelpOutlineIcon from \"@mui/icons-material/HelpOutline\";\nimport { LoadingButton } from \"@mui/lab\";\nimport {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n FormControlLabel,\n IconButton,\n Switch,\n Tooltip\n} from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport { WgerTextField } from \"components/Common/forms/WgerTextField\";\nimport { DeleteConfirmationModal } from \"components/Core/Modals/DeleteConfirmationModal\";\nimport { Day } from \"components/WorkoutRoutines/models/Day\";\nimport { useDeleteDayQuery, useEditDayQuery } from \"components/WorkoutRoutines/queries\";\nimport { DefaultRoundingMenu } from \"components/WorkoutRoutines/widgets/forms/RoutineForm\";\nimport { Form, Formik } from \"formik\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport * as Yup from 'yup';\n\nexport const DayForm = (props: {\n day: Day,\n routineId: number,\n setSelectedDayIndex: (day: number | null) => void\n}) => {\n const { t } = useTranslation();\n const editDayQuery = useEditDayQuery(props.routineId);\n const deleteDayQuery = useDeleteDayQuery(props.routineId);\n\n const [openDeleteDialog, setOpenDeleteDialog] = useState(false);\n const [openDialog, setOpenDialog] = useState(false);\n const [isRest, setIsRest] = useState(props.day.isRest);\n\n const handleRestChange = () => {\n if (!isRest) {\n setOpenDialog(true);\n } else {\n setIsRest(false);\n handleSubmit({ isRest: false });\n }\n };\n const handleDialogClose = () => setOpenDialog(false);\n const handleConfirmRestChange = () => {\n handleSubmit({ isRest: !isRest });\n setIsRest(!isRest);\n setOpenDialog(false);\n };\n\n const handleDeleteDay = () => setOpenDeleteDialog(true);\n\n const handleConfirmDeleteDay = () => {\n props.setSelectedDayIndex(null);\n deleteDayQuery.mutate(props.day.id!);\n setOpenDeleteDialog(false);\n };\n\n const handleCancelDeleteDay = () => setOpenDeleteDialog(false);\n\n\n const nameMinLength = 3;\n const nameMaxLength = 20;\n const descriptionMaxLength = 1000;\n\n const validationSchema = Yup.object().shape({\n name: Yup.string()\n .max(nameMaxLength, t('forms.maxLength', { chars: nameMaxLength }))\n .min(nameMinLength, t('forms.minLength', { chars: nameMinLength }))\n .required('Name is required'),\n description: Yup.string()\n .max(descriptionMaxLength, t('forms.maxLength', { chars: descriptionMaxLength })),\n isRest: Yup.boolean(),\n needsLogsToAdvance: Yup.boolean()\n });\n\n const handleSubmit = (values: Partial<{\n name: string,\n description: string,\n isRest: boolean,\n needsLogsToAdvance: boolean\n }>) =>\n editDayQuery.mutate(Day.clone(\n props.day,\n {\n ...(values.name !== undefined && { name: values.name }),\n ...(values.description !== undefined && { description: values.description }),\n ...(values.isRest !== undefined && { isRest: isRest }),\n ...(values.needsLogsToAdvance !== undefined && { needLogsToAdvance: values.needsLogsToAdvance }),\n })\n );\n\n return <>\n <Formik\n initialValues={{\n name: props.day.name,\n description: props.day.description,\n isRest: props.day.isRest,\n needsLogsToAdvance: props.day.needLogsToAdvance\n }}\n validationSchema={validationSchema}\n onSubmit={(values, { setSubmitting }) => {\n handleSubmit(values);\n setSubmitting(false);\n }}\n initialTouched={{ name: true, description: true, isRest: true, needsLogsToAdvance: true }}\n >\n {(formik) => (\n <Form>\n <Grid container spacing={2}>\n <Grid size={{ xs: 12, sm: 6 }}>\n <WgerTextField\n fieldName=\"name\"\n title=\"Name\"\n fieldProps={{ disabled: isRest }}\n />\n </Grid>\n <Grid size={{ xs: 6, sm: 2 }}>\n <FormControlLabel\n control={<Switch checked={isRest} onChange={handleRestChange} />}\n label={t('routines.restDay')} />\n </Grid>\n <Grid size={{ xs: 6, sm: 4 }}>\n <FormControlLabel\n disabled={isRest}\n control={<Switch\n checked={formik.values.needsLogsToAdvance}\n {...formik.getFieldProps('needsLogsToAdvance')}\n />}\n label={t('routines.needsLogsToAdvance')} />\n <Tooltip title={t('routines.needsLogsToAdvanceHelpText')}>\n <IconButton onClick={() => {\n }}>\n <HelpOutlineIcon fontSize=\"small\" />\n </IconButton>\n </Tooltip>\n </Grid>\n <Grid size={12}>\n <WgerTextField\n fieldName=\"description\"\n title=\"Description\"\n fieldProps={{ multiline: true, rows: 4, disabled: isRest }}\n />\n </Grid>\n\n <Grid size={8}>\n {editDayQuery.isPending\n ? <LoadingButton loading variant=\"contained\" color=\"primary\">\n {t('save')}\n </LoadingButton>\n : <Button\n variant=\"contained\"\n color=\"primary\"\n type=\"submit\"\n disabled={isRest}\n >\n {t('save')}\n </Button>\n }\n\n &nbsp;\n\n <Button\n variant=\"outlined\"\n startIcon={<DeleteIcon />}\n onClick={handleDeleteDay}\n disabled={editDayQuery.isPending}\n >\n {t('delete')}\n </Button>\n </Grid>\n <Grid size={4} sx={{ display: \"flex\", justifyContent: \"flex-end\" }}>\n <DefaultRoundingMenu routineId={props.routineId} />\n </Grid>\n </Grid>\n\n <Dialog open={openDialog} onClose={handleDialogClose}>\n <DialogTitle>{t('routines.confirmRestDay')}</DialogTitle>\n <DialogContent>\n {t('routines.confirmRestDayHelpText')}\n </DialogContent>\n <DialogActions>\n <Button onClick={handleDialogClose}>{t('cancel')}</Button>\n <Button onClick={handleConfirmRestChange}>{t('continue')}</Button>\n </DialogActions>\n </Dialog>\n\n <DeleteConfirmationModal\n title={t('deleteConfirmation', { name: props.day.getDisplayName() })}\n message={t('routines.deleteDayConfirmation')}\n isOpen={openDeleteDialog}\n closeFn={handleCancelDeleteDay}\n deleteFn={handleConfirmDeleteDay}\n />\n </Form>\n )}\n </Formik>\n </>;\n};\n\n","import { TextField } from \"@mui/material\";\nimport { LoadingProgressIcon } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { Slot } from \"components/WorkoutRoutines/models/Slot\";\nimport { useEditSlotQuery } from \"components/WorkoutRoutines/queries\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\nexport const SlotForm = (props: { slot: Slot, routineId: number }) => {\n const { t } = useTranslation();\n const editSlotQuery = useEditSlotQuery(props.routineId);\n const [slotComment, setSlotComment] = useState<string>(props.slot.comment);\n const [isEditing, setIsEditing] = useState(false);\n\n const handleChange = (value: string) => {\n setIsEditing(true);\n setSlotComment(value);\n };\n\n const handleBlur = () => {\n if (isEditing) {\n editSlotQuery.mutate(Slot.clone(props.slot, { comment: slotComment }));\n setIsEditing(false);\n }\n };\n\n return (\n <>\n <TextField\n label={t('comment')}\n variant=\"standard\"\n fullWidth\n size={\"small\"}\n value={slotComment}\n disabled={editSlotQuery.isPending}\n onChange={(e) => handleChange(e.target.value)}\n onBlur={handleBlur}\n InputProps={{\n endAdornment: editSlotQuery.isPending && <LoadingProgressIcon />,\n }}\n />\n </>\n );\n};\n","interface ValidationErrorResponseSubList {\n [key: string]: ValidationErrorResponseList[];\n}\n\ninterface ValidationErrorResponseList {\n [key: string]: string[];\n}\n\ninterface ValidationErrorResponse {\n [key: string]: string;\n}\n\nexport function collectValidationErrors(\n errors: ValidationErrorResponseList | ValidationErrorResponseSubList | ValidationErrorResponse | undefined | null,\n parentKey?: string\n): string[] {\n const allErrors: string[] = [];\n if (!errors) {\n return allErrors;\n }\n\n for (const field in errors) {\n if (Object.hasOwn(errors, field)) {\n const value = errors[field];\n const key = parentKey ? `${parentKey}.${field}` : field;\n\n if (Array.isArray(value)) {\n if (value.length > 0 && typeof value[0] === \"object\" && value[0] !== null) {\n // If value is an array of objects, treat as sublist and recurse\n for (const sub of value) {\n if (typeof sub === \"object\" && sub !== null) {\n allErrors.push(...collectValidationErrors(sub, key));\n } else {\n allErrors.push(`${key}: ${sub}`);\n }\n }\n } else {\n // If value is an array of strings, treat as error messages\n allErrors.push(...value.map(error => `${key}: ${error}`));\n }\n } else if (typeof value === \"string\") {\n // If value is a string, treat as a single error message\n allErrors.push(`${key}: ${value}`);\n }\n }\n }\n\n return allErrors;\n}\n\nexport function errorsToString(errors: ValidationErrorResponse): string {\n const allErrors = collectValidationErrors(errors);\n return allErrors.length > 0 ? allErrors.join(\" | \") : \"\";\n}","import { CheckBoxOutlineBlank } from \"@mui/icons-material\";\nimport ArrowDropUpIcon from '@mui/icons-material/ArrowDropUp';\nimport CheckBoxIcon from '@mui/icons-material/CheckBox';\n\n\nimport SettingsIcon from '@mui/icons-material/Settings';\nimport { Button, Divider, IconButton, ListItemIcon, ListItemText, Menu, MenuItem, TextField } from \"@mui/material\";\nimport { LoadingProgressIcon } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport {\n BaseConfig,\n OPERATION_REPLACE,\n REQUIREMENTS_VALUES,\n RequirementsType,\n RIR_VALUES_SELECT\n} from \"components/WorkoutRoutines/models/BaseConfig\";\nimport {\n useAddMaxRepsConfigQuery,\n useAddMaxRestConfigQuery,\n useAddMaxRiRConfigQuery,\n useAddMaxWeightConfigQuery,\n useAddNrOfSetsConfigQuery,\n useAddRepsConfigQuery,\n useAddRestConfigQuery,\n useAddRiRConfigQuery,\n useAddWeightConfigQuery,\n useDeleteMaxRepsConfigQuery,\n useDeleteMaxRestConfigQuery,\n useDeleteMaxRiRConfigQuery,\n useDeleteMaxWeightConfigQuery,\n useDeleteNrOfSetsConfigQuery,\n useDeleteRepsConfigQuery,\n useDeleteRestConfigQuery,\n useDeleteRiRConfigQuery,\n useDeleteWeightConfigQuery,\n useEditMaxRepsConfigQuery,\n useEditMaxRestConfigQuery,\n useEditMaxRiRConfigQuery,\n useEditMaxWeightConfigQuery,\n useEditNrOfSetsConfigQuery,\n useEditRepsConfigQuery,\n useEditRestConfigQuery,\n useEditRiRConfigQuery,\n useEditWeightConfigQuery\n} from \"components/WorkoutRoutines/queries\";\nimport {\n useAddMaxNrOfSetsConfigQuery,\n useEditMaxNrOfSetsConfigQuery\n} from \"components/WorkoutRoutines/queries/configs\";\nimport { useFormikContext } from \"formik\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { DEBOUNCE_ROUTINE_FORMS } from \"utils/consts\";\nimport { errorsToString } from \"utils/forms\";\n\nexport const QUERY_MAP: { [key: string]: any } = {\n 'weight': {\n edit: useEditWeightConfigQuery,\n add: useAddWeightConfigQuery,\n delete: useDeleteWeightConfigQuery\n },\n 'max-weight': {\n edit: useEditMaxWeightConfigQuery,\n add: useAddMaxWeightConfigQuery,\n delete: useDeleteMaxWeightConfigQuery\n },\n 'reps': {\n edit: useEditRepsConfigQuery,\n add: useAddRepsConfigQuery,\n delete: useDeleteRepsConfigQuery\n },\n 'max-reps': {\n edit: useEditMaxRepsConfigQuery,\n add: useAddMaxRepsConfigQuery,\n delete: useDeleteMaxRepsConfigQuery\n },\n 'sets': {\n edit: useEditNrOfSetsConfigQuery,\n add: useAddNrOfSetsConfigQuery,\n delete: useDeleteNrOfSetsConfigQuery\n },\n 'max-sets': {\n edit: useEditMaxNrOfSetsConfigQuery,\n add: useAddMaxNrOfSetsConfigQuery,\n delete: useAddMaxRepsConfigQuery\n },\n 'rest': {\n edit: useEditRestConfigQuery,\n add: useAddRestConfigQuery,\n delete: useDeleteRestConfigQuery\n },\n 'max-rest': {\n edit: useEditMaxRestConfigQuery,\n add: useAddMaxRestConfigQuery,\n delete: useDeleteMaxRestConfigQuery\n },\n 'rir': {\n edit: useEditRiRConfigQuery,\n add: useAddRiRConfigQuery,\n delete: useDeleteRiRConfigQuery\n },\n 'max-rir': {\n edit: useEditMaxRiRConfigQuery,\n add: useAddMaxRiRConfigQuery,\n delete: useDeleteMaxRiRConfigQuery\n },\n};\n\n\nexport type ConfigType =\n 'weight'\n | 'max-weight'\n | 'reps'\n | 'max-reps'\n | 'sets'\n | 'max-sets'\n | 'rest'\n | 'max-rest'\n | 'rir'\n | 'max-rir';\n\nexport const SlotBaseConfigValueField = (props: {\n config?: BaseConfig,\n routineId: number,\n slotEntryId?: number,\n type: ConfigType,\n}) => {\n const { t } = useTranslation();\n const { edit: editQuery, add: addQuery, delete: deleteQuery } = QUERY_MAP[props.type];\n const editQueryHook = editQuery(props.routineId);\n const addQueryHook = addQuery(props.routineId);\n const deleteQueryHook = deleteQuery(props.routineId);\n\n const [value, setValue] = useState(props.config?.value || '');\n const [manualValidationError, setManualValidationError] = useState<string | null>(null);\n const [timer, setTimer] = useState<NodeJS.Timeout | null>(null);\n\n const isInt = ['sets', 'max-sets', 'rest', 'max-rest'].includes(props.type);\n const parseFunction = isInt ? parseInt : parseFloat;\n\n let title = '';\n switch (props.type) {\n case \"weight\":\n title = t('weight');\n break;\n case \"max-weight\":\n title = 'max ' + t('weight');\n break;\n case \"reps\":\n title = t('server.repetitions');\n break;\n case \"max-reps\":\n title = t('server.max_reps');\n break;\n case \"sets\":\n title = t('routines.sets');\n break;\n case \"max-sets\":\n title = 'max ' + t('routines.sets');\n break;\n case \"rest\":\n title = t('routines.restTime');\n break;\n case \"max-rest\":\n title = 'max ' + t('routines.restTime');\n break;\n case \"rir\":\n title = t('routines.rir');\n break;\n case \"max-rir\":\n title = 'max ' + t('routines.rir');\n break;\n }\n\n const handleData = (value: string) => {\n\n const data = {\n // eslint-disable-next-line camelcase\n slot_entry: props.slotEntryId,\n value: parseFunction(value),\n };\n\n if (value === '' && props.config) {\n deleteQueryHook.mutate(props.config.id);\n } else if (props.config) {\n editQueryHook.mutate({ id: props.config.id, ...data });\n } else {\n addQueryHook.mutate({\n iteration: 1,\n operation: OPERATION_REPLACE,\n step: 'abs',\n requirements: null,\n ...data\n });\n }\n };\n\n const onChange = (text: string) => {\n setValue(text);\n\n if (text !== '' && Number.isNaN(parseFunction(text))) {\n setManualValidationError(t(isInt ? 'forms.enterInteger' : 'forms.enterNumber'));\n return;\n } else {\n setManualValidationError(null);\n }\n\n if (timer) {\n clearTimeout(timer);\n }\n setTimer(setTimeout(() => handleData(text), DEBOUNCE_ROUTINE_FORMS));\n };\n\n const isPending = editQueryHook.isPending || addQueryHook.isPending || deleteQueryHook.isPending;\n const isError = editQueryHook.isError || addQueryHook.isError || deleteQueryHook.isError;\n const errorMessage = errorsToString(editQueryHook.error?.response?.data) || errorsToString(addQueryHook.error?.response?.data) || errorsToString(deleteQueryHook.error?.response?.data);\n\n return (\n <TextField\n slotProps={{\n input: { endAdornment: isPending && <LoadingProgressIcon /> }\n }}\n inputProps={{\n \"data-testid\": `${props.type}-field`,\n }}\n label={title}\n value={value}\n fullWidth\n variant=\"standard\"\n disabled={isPending}\n onChange={e => onChange(e.target.value)}\n error={!!manualValidationError || isError}\n helperText={manualValidationError || errorMessage}\n />\n );\n};\n\n\nexport const ConfigDetailsRequirementsField = (props: {\n fieldName: string,\n values: RequirementsType[],\n disabled?: boolean\n}) => {\n\n const { setFieldValue } = useFormikContext();\n const { t } = useTranslation();\n const disable = props.disabled ?? false;\n\n const [selectedElements, setSelectedElements] = useState<RequirementsType[]>(props.values);\n const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);\n\n const handleSelection = (value: RequirementsType) => {\n // if the value is not in selectedElements, add it\n if (!selectedElements.includes(value)) {\n setSelectedElements([...selectedElements, value]);\n } else {\n setSelectedElements(selectedElements.filter((e) => e !== value));\n }\n };\n\n const handleSubmit = async () => {\n await setFieldValue(props.fieldName, selectedElements);\n setAnchorEl(null);\n };\n\n\n return <>\n <IconButton\n disabled={disable}\n onClick={(event) => setAnchorEl(event.currentTarget)}\n >\n {anchorEl ? <ArrowDropUpIcon fontSize=\"small\" /> : <SettingsIcon fontSize=\"small\" />}\n </IconButton>\n <Menu\n anchorEl={anchorEl}\n open={Boolean(anchorEl)}\n onClose={() => setAnchorEl(null)}\n >\n {...REQUIREMENTS_VALUES.map((e, index) => <MenuItem\n key={index}\n onClick={() => handleSelection(e as unknown as RequirementsType)}>\n <ListItemIcon>\n {selectedElements.includes(e as unknown as RequirementsType)\n ? <CheckBoxIcon fontSize=\"small\" />\n : <CheckBoxOutlineBlank fontSize=\"small\" />\n }\n </ListItemIcon>\n <ListItemText>\n {e}\n </ListItemText>\n </MenuItem>)}\n <Divider />\n <MenuItem>\n\n <Button color=\"primary\" variant=\"contained\" type=\"submit\" size=\"small\" onClick={handleSubmit}>\n {t('save')}\n </Button>\n </MenuItem>\n </Menu></>;\n};\n\n\nexport const ConfigDetailsRiRField = (props: { config?: BaseConfig, slotEntryId?: number, routineId: number }) => {\n\n const editRiRQuery = useEditRiRConfigQuery(props.routineId);\n const deleteRiRQuery = useDeleteRiRConfigQuery(props.routineId);\n const addRiRQuery = useAddRiRConfigQuery(props.routineId);\n\n const handleData = (value: string) => {\n\n const data = {\n value: parseFloat(value),\n };\n\n if (value === '' && props.config) {\n deleteRiRQuery.mutate(props.config.id);\n } else if (props.config !== undefined) {\n editRiRQuery.mutate({ id: props.config.id, ...data });\n } else {\n addRiRQuery.mutate({\n // eslint-disable-next-line camelcase\n slot_entry: props.slotEntryId!,\n iteration: 1,\n operation: OPERATION_REPLACE,\n ...data\n });\n }\n };\n\n return <TextField\n fullWidth\n select\n label=\"RiR\"\n variant=\"standard\"\n defaultValue=\"\"\n value={props.config?.value}\n disabled={editRiRQuery.isPending}\n onChange={e => handleData(e.target.value)}\n >\n {RIR_VALUES_SELECT.map((option) => (\n <MenuItem key={option.value} value={option.value}>\n {option.label}\n </MenuItem>\n ))}\n </TextField>;\n};\n\n\n/*\n * ---> These components are not needed anymore but are kept here in case we need\n * to edit these fields individually in the future\n */\n\n/*\nexport const AddEntryDetailsButton = (props: {\n iteration: number,\n routineId: number,\n slotEntryId: number,\n type: ConfigType\n}) => {\n\n const { add: addQuery } = QUERY_MAP[props.type];\n const addQueryHook = addQuery(props.routineId);\n\n\n const handleData = () => {\n addQueryHook.mutate({\n slot_entry: props.slotEntryId!,\n iteration: props.iteration,\n value: 0,\n operation: OPERATION_REPLACE,\n });\n };\n\n return (<>\n <IconButton size=\"small\" onClick={handleData} disabled={addQueryHook.isPending}>\n <AddIcon />\n </IconButton>\n </>);\n};\n\nexport const DeleteEntryDetailsButton = (props: {\n configId: number,\n routineId: number,\n type: ConfigType,\n disable?: boolean\n}) => {\n const disable = props.disable ?? false;\n const { delete: deleteQuery } = QUERY_MAP[props.type];\n const deleteQueryHook = deleteQuery(props.routineId);\n\n const handleData = () => {\n deleteQueryHook.mutate(props.configId);\n };\n\n return (\n <IconButton size=\"small\" onClick={handleData} disabled={disable || deleteQueryHook.isPending}>\n <DeleteIcon />\n </IconButton>\n );\n};\n\n\nexport const EntryDetailsOperationField = (props: {\n config: BaseConfig,\n routineId: number,\n slotEntryId: number,\n type: ConfigType,\n disable?: boolean\n}) => {\n\n const disable = props.disable ?? false;\n const options = [\n {\n value: '+',\n label: 'Add',\n },\n {\n value: '-',\n label: 'Subtract',\n },\n {\n value: OPERATION_REPLACE,\n label: 'Replace',\n },\n ];\n\n const { edit: editQuery } = QUERY_MAP[props.type];\n const editQueryHook = editQuery(props.routineId);\n\n const handleData = (newValue: string) => {\n editQueryHook.mutate({ id: props.config.id, operation: newValue, });\n };\n\n return (<>\n <TextField\n sx={{ width: 100 }}\n select\n label=\"Operation\"\n value={props.config?.operation}\n variant=\"standard\"\n disabled={disable || editQueryHook.isPending}\n onChange={e => handleData(e.target.value)}\n >\n {options.map((option) => (\n <MenuItem key={option.value} value={option.value} selected={option.value === props.config.operation}>\n {option.label}\n </MenuItem>\n ))}\n </TextField>\n </>);\n};\n\nexport const EntryDetailsStepField = (props: {\n config: BaseConfig,\n routineId: number,\n slotEntryId: number,\n type: ConfigType,\n disable?: boolean\n}) => {\n\n const disable = props.disable ?? false;\n\n const options = [\n {\n value: 'abs',\n label: 'absolute',\n },\n {\n value: 'percent',\n label: 'percent',\n },\n ];\n\n if (props.config.iteration === 1) {\n options.push({\n value: 'na',\n label: 'n/a',\n });\n }\n\n const { edit: editQuery } = QUERY_MAP[props.type];\n const editQueryHook = editQuery(props.routineId);\n\n const handleData = (newValue: string) => {\n editQueryHook.mutate({ id: props.config.id, step: newValue, });\n };\n\n return (<>\n <TextField\n sx={{ width: 100 }}\n select\n // label=\"Operation\"\n value={props.config?.step}\n variant=\"standard\"\n disabled={disable || editQueryHook.isPending}\n onChange={e => handleData(e.target.value)}\n >\n {options.map((option) => (\n <MenuItem key={option.value} value={option.value} selected={option.value === props.config.step}>\n {option.label}\n </MenuItem>\n ))}\n </TextField>\n </>);\n};\n\n*/","import DeleteIcon from \"@mui/icons-material/DeleteOutlined\";\nimport EditIcon from \"@mui/icons-material/Edit\";\nimport EditOffIcon from '@mui/icons-material/EditOff';\nimport { Alert, AlertTitle, IconButton, Typography } from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport { NameAutocompleter } from \"components/Exercises/Filter/NameAutcompleter\";\nimport { useLanguageQuery } from \"components/Exercises/queries\";\nimport { BaseConfig } from \"components/WorkoutRoutines/models/BaseConfig\";\nimport { Slot } from \"components/WorkoutRoutines/models/Slot\";\nimport { SlotEntry } from \"components/WorkoutRoutines/models/SlotEntry\";\nimport { useDeleteSlotEntryQuery, useEditSlotEntryQuery } from \"components/WorkoutRoutines/queries\";\nimport {\n ConfigDetailsRiRField,\n SlotBaseConfigValueField\n} from \"components/WorkoutRoutines/widgets/forms/BaseConfigForm\";\nimport {\n SlotEntryRepetitionUnitField,\n SlotEntryTypeField,\n SlotEntryWeightUnitField\n} from \"components/WorkoutRoutines/widgets/forms/SlotEntryForm\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { getLanguageByShortName } from \"services\";\nimport { ExerciseSearchResponse } from \"services/responseType\";\n\n/*\n * Converts a number to an alphabetic string, useful for counting\n */\nfunction toAlphabetic(num: number) {\n let result = \"\";\n while (num > 0) {\n num--; // Adjust for 0-based index\n result = String.fromCharCode(97 + (num % 26)) + result;\n num = Math.floor(num / 26);\n }\n return result;\n}\n\nconst configTypes = [\"weight\", \"max-weight\", \"reps\", \"max-reps\", \"max-sets\", \"sets\", \"rest\", \"max-rest\", \"rir\"] as const;\ntype ConfigType = typeof configTypes[number];\n\nconst getConfigComponent = (type: ConfigType, configs: BaseConfig[], routineId: number, slotEntryId: number) => {\n return configs.length > 0\n ?\n <SlotBaseConfigValueField\n config={configs[0]}\n type={type}\n routineId={routineId} />\n\n : <SlotBaseConfigValueField\n type={type}\n routineId={routineId}\n slotEntryId={slotEntryId} />\n ;\n};\n\nexport const SlotDetails = (props: { slot: Slot, routineId: number, simpleMode: boolean }) => {\n const { t } = useTranslation();\n\n return (<>\n {props.slot.entries.length === 0 && (\n <Alert severity=\"warning\">\n <AlertTitle>{t('routines.setHasNoExercises')}</AlertTitle>\n {t('nothingHereYetAction')}\n </Alert>\n )}\n {props.slot.entries.map((slotEntry: SlotEntry, index) => (\n <SlotEntryDetails\n key={slotEntry.id}\n slotEntry={slotEntry}\n routineId={props.routineId}\n simpleMode={props.simpleMode}\n index={index}\n total={props.slot.entries.length}\n />\n ))}\n </>);\n};\n\nexport const SlotEntryDetails = (props: {\n slotEntry: SlotEntry,\n routineId: number,\n simpleMode: boolean,\n index: number,\n total: number\n}) => {\n const { t, i18n } = useTranslation();\n\n const [editExercise, setEditExercise] = useState(false);\n const toggleEditExercise = () => setEditExercise(!editExercise);\n\n const languageQuery = useLanguageQuery();\n const editSlotEntryQuery = useEditSlotEntryQuery(props.routineId);\n const deleteSlotEntryQuery = useDeleteSlotEntryQuery(props.routineId);\n\n const isPending = editSlotEntryQuery.isPending || deleteSlotEntryQuery.isPending;\n\n const handleExerciseChange = (searchResponse: ExerciseSearchResponse | null) => {\n if (searchResponse === null) {\n return;\n }\n\n editSlotEntryQuery.mutate({ id: props.slotEntry.id, exercise: searchResponse.data.base_id });\n setEditExercise(false);\n };\n\n let language = undefined;\n if (languageQuery.isSuccess) {\n language = getLanguageByShortName(\n i18n.language,\n languageQuery.data!\n );\n }\n\n const getForm = () => (props.simpleMode\n ? <React.Fragment>\n <Grid\n key={`sets-config-${props.slotEntry.id}`}\n size={{ xs: 12, sm: 2, }}>\n {getConfigComponent('sets', props.slotEntry.nrOfSetsConfigs, props.routineId, props.slotEntry.id)}\n </Grid>\n <Grid\n key={`weight-config-${props.slotEntry.id}`}\n size={{ xs: 12, sm: 3 }}>\n {getConfigComponent('weight', props.slotEntry.weightConfigs, props.routineId, props.slotEntry.id)}\n </Grid>\n <Grid\n key={`reps-config-${props.slotEntry.id}`}\n size={{ xs: 12, sm: 3 }}>\n {getConfigComponent('reps', props.slotEntry.repetitionsConfigs, props.routineId, props.slotEntry.id)}\n </Grid>\n </React.Fragment>\n\n // Show all config details in advanced mode, also in a grid\n : <React.Fragment>\n\n <Grid size={{ xs: 6, sm: 1 }}>\n {getConfigComponent('sets', props.slotEntry.nrOfSetsConfigs, props.routineId, props.slotEntry.id)}\n </Grid>\n <Grid size={{ xs: 6, sm: 1 }}>\n {getConfigComponent('max-sets', props.slotEntry.maxNrOfSetsConfigs, props.routineId, props.slotEntry.id)}\n </Grid>\n <Grid size={{ xs: 6, sm: 2 }}>\n <SlotEntryTypeField routineId={props.routineId} slotEntry={props.slotEntry} />\n </Grid>\n <Grid size={{ xs: 12, sm: 2 }}>\n <ConfigDetailsRiRField\n routineId={props.routineId}\n config={props.slotEntry.rirConfigs.length > 0 ? props.slotEntry.rirConfigs[0] : undefined}\n slotEntryId={props.slotEntry.id}\n />\n </Grid>\n\n <Grid size={{ xs: 6, sm: 1 }}>\n {getConfigComponent('rest', props.slotEntry.restTimeConfigs, props.routineId, props.slotEntry.id)}\n </Grid>\n <Grid size={{ xs: 6, sm: 1 }}>\n {getConfigComponent('max-rest', props.slotEntry.maxRestTimeConfigs, props.routineId, props.slotEntry.id)}\n </Grid>\n\n\n <Grid size={{ xs: 6, sm: 2 }} offset={{ sm: 4 }}>\n {getConfigComponent('weight', props.slotEntry.weightConfigs, props.routineId, props.slotEntry.id)}\n </Grid>\n <Grid size={{ xs: 6, sm: 2 }}>\n {getConfigComponent('max-weight', props.slotEntry.maxWeightConfigs, props.routineId, props.slotEntry.id)}\n </Grid>\n <Grid size={{ xs: 12, sm: 4 }}>\n <SlotEntryWeightUnitField slotEntry={props.slotEntry} routineId={props.routineId} />\n </Grid>\n\n\n <Grid size={{ xs: 6, sm: 2 }} offset={{ sm: 4 }}>\n {getConfigComponent('reps', props.slotEntry.repetitionsConfigs, props.routineId, props.slotEntry.id)}\n </Grid>\n <Grid size={{ xs: 6, sm: 2 }}>\n {getConfigComponent('max-reps', props.slotEntry.maxRepetitionsConfigs, props.routineId, props.slotEntry.id)}\n </Grid>\n <Grid size={{ xs: 12, sm: 4 }}>\n <SlotEntryRepetitionUnitField slotEntry={props.slotEntry} routineId={props.routineId} />\n </Grid>\n\n </React.Fragment>\n );\n\n const counter = props.total > 1 ? toAlphabetic(props.index + 1) + ') ' : '';\n\n return (\n (<React.Fragment>\n <Grid container paddingTop={1} spacing={1}>\n <Grid size={{ xs: 3, sm: 1 }} alignContent={\"center\"}>\n {/*<IconButton size={\"small\"} onClick={toggleEditExercise} disabled={true}>*/}\n {/* <DragHandle />*/}\n {/*</IconButton>*/}\n <IconButton size={\"small\"} onClick={toggleEditExercise} disabled={isPending}>\n {editExercise ? <EditOffIcon /> : <EditIcon />}\n </IconButton>\n <IconButton\n size={\"small\"}\n onClick={() => deleteSlotEntryQuery.mutate(props.slotEntry.id)}\n disabled={isPending}\n >\n <DeleteIcon />\n </IconButton>\n </Grid>\n\n <Grid size={{ xs: 9, sm: 3 }} alignContent={\"center\"}>\n <Typography variant={\"body1\"}>\n {counter} {props.slotEntry.exercise?.getTranslation(language).name}\n </Typography>\n </Grid>\n\n {editExercise\n && <React.Fragment>\n <Grid size={{ xs: 12, sm: 8 }}>\n <NameAutocompleter callback={handleExerciseChange} />\n </Grid>\n <Grid size={{ xs: 12, sm: 4 }} />\n </React.Fragment>\n }\n\n {props.slotEntry.hasProgressionRules\n ? <Grid size={8}>\n <Alert severity=\"info\" variant=\"standard\" sx={{ mt: 2 }}>\n {t('routines.exerciseHasProgression')}\n </Alert>\n </Grid>\n : getForm()\n }\n </Grid>\n </React.Fragment>)\n );\n};","import { DragDropContext, Draggable, DraggableStyle, Droppable, DropResult } from \"@hello-pangea/dnd\";\nimport { SsidChart } from \"@mui/icons-material\";\nimport AddIcon from \"@mui/icons-material/Add\";\nimport DeleteIcon from \"@mui/icons-material/Delete\";\nimport DragIndicatorIcon from '@mui/icons-material/DragIndicator';\n\nimport {\n Alert,\n AlertTitle,\n Box,\n Button,\n ButtonGroup,\n FormControlLabel,\n IconButton,\n Snackbar,\n SnackbarCloseReason,\n Stack,\n Switch,\n Tab,\n Tabs,\n Typography,\n useTheme\n} from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport { LoadingPlaceholder, LoadingProgressIcon } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { NameAutocompleter } from \"components/Exercises/Filter/NameAutcompleter\";\nimport { useProfileQuery } from \"components/User/queries/profile\";\nimport { Day } from \"components/WorkoutRoutines/models/Day\";\nimport { Slot } from \"components/WorkoutRoutines/models/Slot\";\nimport {\n useAddDayQuery,\n useAddSlotEntryQuery,\n useAddSlotQuery,\n useDeleteSlotQuery,\n useEditDayOrderQuery,\n useEditSlotsQuery,\n useRoutineDetailQuery\n} from \"components/WorkoutRoutines/queries\";\nimport { DayForm } from \"components/WorkoutRoutines/widgets/forms/DayForm\";\nimport { SlotForm } from \"components/WorkoutRoutines/widgets/forms/SlotForm\";\nimport { SlotDetails } from \"components/WorkoutRoutines/widgets/SlotDetails\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\nimport { ExerciseSearchResponse } from \"services/responseType\";\nimport { SNACKBAR_AUTO_HIDE_DURATION, WEIGHT_UNIT_KG, WEIGHT_UNIT_LB } from \"utils/consts\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\n\nexport const DayDragAndDropGrid = (props: {\n routineId: number,\n selectedDayIndex: number | null,\n setSelectedDayIndex: (day: number | null) => void\n}) => {\n\n const { t } = useTranslation();\n\n const routineQuery = useRoutineDetailQuery(props.routineId);\n const editDayOrderQuery = useEditDayOrderQuery(props.routineId);\n const addDayQuery = useAddDayQuery(props.routineId);\n\n const getListStyle = (isDraggingOver: boolean) => ({\n background: isDraggingOver ? \"lightblue\" : undefined,\n });\n\n const getItemStyle = (isDragging: boolean, draggableStyle: DraggableStyle) => ({\n backgroundColor: \"white\",\n margin: 4,\n\n ...draggableStyle,\n opacity: 1,\n });\n\n const onDragStart = () => {\n props.setSelectedDayIndex(null);\n };\n\n const onDragEnd = (result: DropResult) => {\n\n // Item was dropped outside the list\n if (!result.destination) {\n return;\n }\n\n\n const updatedDays = Array.from(routineQuery.data!.days);\n const [movedDay] = updatedDays.splice(result.source.index, 1);\n updatedDays.splice(result.destination.index, 0, movedDay);\n props.setSelectedDayIndex(result.destination.index);\n\n routineQuery.data!.days = updatedDays;\n editDayOrderQuery.mutate(updatedDays.map((day, index) => (Day.clone(day, { order: index + 1 }))));\n };\n\n const handleAddDay = async () => {\n const newDay = new Day({\n routineId: props.routineId,\n name: `${t('routines.newDay')} ${routineQuery.data!.days.length + 1}`,\n order: routineQuery.data!.days.length + 1,\n });\n await addDayQuery.mutateAsync(newDay);\n props.setSelectedDayIndex(routineQuery.data!.days.length);\n };\n\n if (routineQuery.isLoading) {\n return <LoadingPlaceholder />;\n }\n\n\n return (\n <Grid container direction=\"row\" spacing={1}>\n <Grid size={12}>\n <Stack direction={\"row\"}>\n <DragDropContext onDragEnd={onDragEnd} onDragStart={onDragStart}>\n <Droppable droppableId=\"dayDroppable\" direction=\"horizontal\">\n {(provided, snapshot) => (\n <Tabs\n ref={provided.innerRef}\n {...provided.droppableProps}\n value={props.selectedDayIndex}\n variant=\"scrollable\"\n scrollButtons=\"auto\"\n style={getListStyle(snapshot.isDraggingOver)}\n >\n {routineQuery.data!.days.map((day, index) =>\n <Draggable key={day.id} draggableId={day.id!.toString()} index={index}>\n {(provided, snapshot) => (\n <Tab\n ref={provided.innerRef}\n {...provided.draggableProps}\n {...provided.dragHandleProps}\n style={getItemStyle(\n snapshot.isDragging,\n provided.draggableProps.style ?? {}\n )}\n\n label={day.getDisplayName()}\n value={day.id}\n icon={<DragIndicatorIcon />}\n iconPosition=\"start\"\n onClick={() => props.setSelectedDayIndex(index)}\n />\n )}\n </Draggable>\n )}\n\n {provided.placeholder}\n </Tabs>\n )}\n </Droppable>\n <Button\n startIcon={addDayQuery.isPending ? <LoadingProgressIcon /> : <AddIcon />}\n onClick={handleAddDay}\n disabled={addDayQuery.isPending}\n >\n {t('routines.addDay')}\n </Button>\n\n </DragDropContext>\n </Stack>\n </Grid>\n\n {routineQuery.data!.days.length === 0 && <Grid size={12}>\n <Alert severity=\"info\">\n <AlertTitle>{t('routines.routineHasNoDays')}</AlertTitle>\n {t('nothingHereYetAction')}\n </Alert>\n </Grid>}\n </Grid>\n );\n};\n\n\nexport const DayDetails = (props: {\n day: Day,\n routineId: number,\n setSelectedDayIndex: (day: number | null) => void\n}) => {\n // TODO: refactor this component and split it up!\n\n const [t, i18n] = useTranslation();\n const deleteSlotQuery = useDeleteSlotQuery(props.routineId);\n const addSlotEntryQuery = useAddSlotEntryQuery(props.routineId);\n const addSlotQuery = useAddSlotQuery(props.routineId);\n const editSlotOrderQuery = useEditSlotsQuery(props.routineId);\n const userProfileQuery = useProfileQuery();\n const theme = useTheme();\n\n const [openSnackbar, setOpenSnackbar] = useState(false);\n const [showAutocompleterForSlot, setShowAutocompleterForSlot] = useState<number | null>(null);\n const [slotToDelete, setSlotToDelete] = useState<Slot | null>(null);\n const [simpleMode, setSimpleMode] = useState(true);\n\n const handleCloseSnackbar = (\n event: React.SyntheticEvent | Event,\n reason?: SnackbarCloseReason,\n ) => {\n if (slotToDelete !== null) {\n if (reason === 'timeout') {\n // Delete on the server\n deleteSlotQuery.mutate(slotToDelete.id!);\n setSlotToDelete(null);\n } else if (reason !== 'clickaway') {\n // Undo the deletion - re-add the slot using its sort value\n props.day.slots = [...props.day.slots, slotToDelete].sort((a, b) => a.order - b.order);\n setSlotToDelete(null);\n }\n }\n\n setOpenSnackbar(false);\n };\n\n const handleDeleteSlot = (slotId: number) => {\n const slotIndex = props.day.slots.findIndex(slot => slot.id === slotId);\n\n if (slotIndex !== -1) {\n const updatedSlots = [...props.day.slots];\n const [deletedSlot] = updatedSlots.splice(slotIndex, 1);\n props.day.slots = updatedSlots;\n\n setSlotToDelete(deletedSlot);\n setOpenSnackbar(true);\n }\n };\n\n const handleAddSlotEntry = (slotId: number) => {\n const slot = props.day.slots.find(s => s.id === slotId);\n if (slot === undefined) {\n console.info(`Could not find slot with id ${slotId} to add config`);\n return;\n }\n\n if (showAutocompleterForSlot === slotId) {\n setShowAutocompleterForSlot(null);\n } else {\n setShowAutocompleterForSlot(slotId);\n }\n return;\n };\n\n const handleAddSlot = () => addSlotQuery.mutate(new Slot({\n dayId: props.day.id!,\n order: props.day.slots.length + 1\n }));\n\n /*\n * Drag'n'drop\n */\n const grid = 8;\n const onDragEnd = (result: DropResult) => {\n\n // Item was dropped outside the list\n if (!result.destination) {\n return;\n }\n\n const updatedSlots = Array.from(props.day.slots);\n const [movedSlot] = updatedSlots.splice(result.source.index, 1);\n updatedSlots.splice(result.destination.index, 0, movedSlot);\n\n editSlotOrderQuery.mutate(updatedSlots.map((slot, index) => (Slot.clone(slot, { order: index + 1 }))));\n props.day.slots = updatedSlots;\n };\n\n const getListStyle = (isDraggingOver: boolean) => ({\n background: isDraggingOver ? \"lightblue\" : undefined,\n });\n\n const getItemStyle = (isDragging: boolean, draggableStyle: DraggableStyle) => ({\n border: isDragging ? `1px solid ${theme.palette.grey[900]}` : `1px solid ${theme.palette.grey[300]}`,\n backgroundColor: \"white\",\n marginBottom: grid,\n\n ...draggableStyle\n });\n\n\n return (<>\n <DayForm\n routineId={props.routineId}\n day={props.day}\n key={`day-form-${props.day.id}`}\n setSelectedDayIndex={props.setSelectedDayIndex}\n />\n\n\n {(!props.day.isRest && props.day.slots.length > 0) && <>\n <Box height={40} />\n <FormControlLabel\n control={<Switch checked={simpleMode} onChange={() => setSimpleMode(!simpleMode)} />}\n label={t('routines.simpleMode')} />\n </>}\n\n <Box height={20} />\n <DragDropContext onDragEnd={onDragEnd}>\n <Droppable droppableId=\"setDroppable\" direction=\"vertical\">\n {(provided, snapshot) => (\n <div\n {...provided.droppableProps}\n ref={provided.innerRef}\n style={getListStyle(snapshot.isDraggingOver)}\n >\n {props.day.slots.map((slot, index) => <React.Fragment key={`slot-${slot.id}-${index}`}>\n <Draggable key={slot.id} draggableId={slot.id!.toString()} index={index}>\n {(provided, snapshot) => (\n <Grid container padding={1}\n ref={provided.innerRef}\n {...provided.draggableProps}\n\n style={getItemStyle(\n snapshot.isDragging,\n provided.draggableProps.style ?? {}\n )}\n >\n <Grid\n sx={{\n backgroundColor: theme.palette.common.white /*theme.palette.grey[200]*/,\n }}\n size={12}>\n <Grid container justifyContent=\"space-between\" alignItems=\"center\">\n <Grid>\n <Typography variant={\"h6\"}>\n <IconButton {...provided.dragHandleProps}>\n <DragIndicatorIcon />\n </IconButton>\n\n <IconButton onClick={() => handleDeleteSlot(slot.id!)}>\n <DeleteIcon />\n </IconButton>\n {slot.entries.length > 1 ? t('routines.supersetNr', { number: index + 1 }) : t('routines.exerciseNr', { number: index + 1 })}\n </Typography>\n </Grid>\n\n <Grid>\n {slot.entries.length > 0 && <ButtonGroup variant=\"outlined\">\n <Button\n onClick={() => handleAddSlotEntry(slot.id!)}\n size={\"small\"}\n disabled={addSlotEntryQuery.isPending}\n startIcon={addSlotEntryQuery.isPending ?\n <LoadingProgressIcon /> :\n <AddIcon />}\n >\n {t('routines.addSuperset')}\n </Button>\n\n {slot.entries.length > 0 &&\n <Button\n startIcon={<SsidChart />}\n component={Link}\n size={\"small\"}\n to={makeLink(WgerLink.ROUTINE_EDIT_PROGRESSION, i18n.language, {\n id: props.routineId,\n id2: slot.id!\n })}\n >\n {t('routines.editProgression')}\n </Button>\n }\n </ButtonGroup>}\n </Grid>\n </Grid>\n </Grid>\n {!simpleMode && <Grid size={12}>\n <SlotForm\n routineId={props.routineId}\n slot={slot}\n key={`slot-form-${slot.id}`} />\n <Box height={10} />\n </Grid>}\n <Grid size={12}>\n <SlotDetails\n slot={slot}\n routineId={props.routineId}\n simpleMode={simpleMode}\n />\n </Grid>\n\n {(showAutocompleterForSlot === slot.id || slot.entries.length === 0)\n && <Grid size={12}>\n <Box height={20} />\n <NameAutocompleter\n callback={(exercise: ExerciseSearchResponse | null) => {\n if (exercise === null) {\n return;\n }\n addSlotEntryQuery.mutate({\n slot: slot.id!,\n exercise: exercise.data.base_id,\n type: 'normal',\n order: slot.entries.length + 1,\n // eslint-disable-next-line camelcase\n weight_unit: userProfileQuery.data!.useMetric ? WEIGHT_UNIT_KG : WEIGHT_UNIT_LB,\n });\n setShowAutocompleterForSlot(null);\n }}\n />\n </Grid>}\n </Grid>\n )}\n </Draggable>\n </React.Fragment>)}\n {provided.placeholder}\n </div>\n )}\n </Droppable>\n </DragDropContext>\n <Snackbar\n open={openSnackbar}\n autoHideDuration={SNACKBAR_AUTO_HIDE_DURATION}\n onClose={handleCloseSnackbar}\n >\n <Alert\n severity=\"success\"\n variant=\"filled\"\n sx={{ width: '100%' }}\n action={\n <Button\n color={\"warning\"}\n variant={\"contained\"}\n size=\"small\"\n onClick={handleCloseSnackbar}>\n {t('undo')}\n </Button>\n }\n >\n Set successfully deleted\n </Alert>\n </Snackbar>\n {!props.day.isRest && <Button\n variant=\"contained\"\n color=\"primary\"\n startIcon={addSlotQuery.isPending ? <LoadingProgressIcon /> : <AddIcon />}\n onClick={handleAddSlot}\n >\n {t('routines.addExercise')}\n </Button>}\n </>);\n};\n\n\n","import { Box, Divider, Stack, Typography, useTheme } from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { WgerContainerFullWidth } from \"components/Core/Widgets/Container\";\nimport { useProfileQuery } from \"components/User/queries/profile\";\nimport { RoutineTable } from \"components/WorkoutRoutines/Detail/RoutineDetailsTable\";\nimport { useRoutineDetailQuery } from \"components/WorkoutRoutines/queries\";\nimport { DayDetails, DayDragAndDropGrid } from \"components/WorkoutRoutines/widgets/DayDetails\";\nimport { RoutineForm } from \"components/WorkoutRoutines/widgets/forms/RoutineForm\";\nimport { RoutineTemplateForm } from \"components/WorkoutRoutines/widgets/forms/RoutineTemplateForm\";\nimport { RoutineDetailsCard } from \"components/WorkoutRoutines/widgets/RoutineDetailsCard\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useParams } from \"react-router-dom\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\nexport const RoutineEdit = () => {\n\n const { t, i18n } = useTranslation();\n const theme = useTheme();\n\n const profileQuery = useProfileQuery();\n const params = useParams<{ routineId: string }>();\n const routineId = params.routineId ? parseInt(params.routineId) : 0;\n const routineQuery = useRoutineDetailQuery(routineId);\n const [selectedDayIndex, setSelectedDayIndex] = useState<number | null>(null);\n\n if (routineQuery.isLoading || profileQuery.isLoading) {\n return <LoadingPlaceholder />;\n }\n\n if (routineQuery.isError) {\n return <p>Error: {routineQuery.error.message}</p>;\n }\n\n const routine = routineQuery.data!;\n\n if (selectedDayIndex === null && routine.days.length > 0) {\n setSelectedDayIndex(0);\n }\n\n\n return <WgerContainerFullWidth\n title={t('editName', { name: routine.name })}\n backToUrl={makeLink(WgerLink.ROUTINE_DETAIL, i18n.language, { id: routineId })}\n >\n <Grid container spacing={2}>\n\n <Grid size={routine.isTemplate ? 8 : 12}>\n <RoutineForm routine={routine} />\n </Grid>\n {routine.isTemplate && <Grid size={4}>\n <Box height={20} />\n <RoutineTemplateForm routine={routine} />\n </Grid>}\n\n <Grid size={12}>\n <Box height={20} />\n <DayDragAndDropGrid\n routineId={routineId}\n selectedDayIndex={selectedDayIndex}\n setSelectedDayIndex={setSelectedDayIndex}\n />\n </Grid>\n {selectedDayIndex !== null && <>\n <Grid size={12} sx={{ backgroundColor: theme.palette.grey[100], padding: 1 }}>\n <Box>\n <DayDetails\n day={routine.days[selectedDayIndex]}\n routineId={routineId}\n setSelectedDayIndex={setSelectedDayIndex}\n />\n </Box>\n </Grid>\n </>}\n </Grid>\n\n\n {routineQuery.data!.days.length > 0 && <Stack spacing={2} sx={{ mt: 2 }}>\n <Box height={40} />\n <Typography variant={\"h4\"}>\n {t('routines.resultingRoutine')}\n </Typography>\n <Divider />\n\n <Box>\n <RoutineDetailsCard />\n <Box height={20} />\n <RoutineTable routine={routineQuery.data!} />\n </Box>\n </Stack>}\n </WgerContainerFullWidth>;\n};\n\n\n","import { SentimentNeutral, SentimentSatisfiedAlt, SentimentVeryDissatisfied } from \"@mui/icons-material\";\nimport { Button, ButtonGroup, Typography } from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport { DatePicker, LocalizationProvider, TimePicker } from \"@mui/x-date-pickers\";\nimport { AdapterLuxon } from \"@mui/x-date-pickers/AdapterLuxon\";\nimport { WgerTextField } from \"components/Common/forms/WgerTextField\";\nimport {\n IMPRESSION_BAD,\n IMPRESSION_GOOD,\n IMPRESSION_NEUTRAL,\n NOTES_MAX_LENGTH,\n WorkoutSession\n} from \"components/WorkoutRoutines/models/WorkoutSession\";\nimport { useAddSessionQuery, useEditSessionQuery, useFindSessionQuery } from \"components/WorkoutRoutines/queries\";\nimport { Form, Formik, FormikProps } from \"formik\";\nimport { DateTime } from \"luxon\";\nimport React, { useEffect } from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { dateTimeToHHMM, dateToYYYYMMDD } from \"utils/date\";\nimport * as yup from 'yup';\n\ninterface SessionFormProps {\n initialSession?: WorkoutSession;\n dayId: number,\n routineId: number,\n selectedDate: DateTime,\n setSelectedDate: React.Dispatch<React.SetStateAction<DateTime>>\n}\n\nexport const SessionForm = ({ initialSession, dayId, routineId, selectedDate, setSelectedDate }: SessionFormProps) => {\n\n let formik: FormikProps<any> | null;\n\n const [t, i18n] = useTranslation();\n const [session, setSession] = React.useState<WorkoutSession | undefined>(initialSession);\n\n const addSessionQuery = useAddSessionQuery();\n const editSessionQuery = useEditSessionQuery(session?.id!);\n const findSessionQuery = useFindSessionQuery(\n routineId,\n {\n routine: routineId,\n date: dateToYYYYMMDD(selectedDate.toJSDate()),\n day: dayId\n }\n );\n\n const isLoading = addSessionQuery.isPending || editSessionQuery.isPending || findSessionQuery.isLoading;\n\n const validationSchema = yup.object({\n notes: yup\n .string()\n .max(NOTES_MAX_LENGTH, t('forms.maxLength', { chars: NOTES_MAX_LENGTH })),\n date: yup\n .date()\n .required(),\n start: yup\n .date()\n .nullable(),\n end: yup\n .date()\n .nullable()\n .min(\n yup.ref('start'),\n t('forms.endBeforeStart')\n ),\n fitInWeek: yup.boolean()\n });\n\n\n useEffect(() => {\n if (findSessionQuery.data) {\n formik!.setValues({\n notes: findSessionQuery.data.notes || '',\n impression: findSessionQuery.data.impression || IMPRESSION_NEUTRAL,\n date: findSessionQuery.data.date,\n start: findSessionQuery.data.timeStart ? DateTime.fromJSDate(findSessionQuery.data.timeStart) : null,\n end: findSessionQuery.data.timeEnd ? DateTime.fromJSDate(findSessionQuery.data.timeEnd) : null,\n });\n setSession(findSessionQuery.data);\n } else if (findSessionQuery.isSuccess && !findSessionQuery.data) {\n formik!.setValues({\n notes: '',\n impression: IMPRESSION_NEUTRAL,\n date: initialSession?.date || DateTime.now().toJSDate(), //JS Date, not DateTime\n start: initialSession?.timeStart ? DateTime.fromJSDate(initialSession.timeStart) : null,\n end: initialSession?.timeEnd ? DateTime.fromJSDate(initialSession.timeEnd) : null,\n });\n setSession(undefined);\n }\n\n }, [findSessionQuery.data, findSessionQuery.isSuccess, initialSession, selectedDate]);\n\n\n return (\n <Formik\n enableReinitialize\n initialValues={{\n notes: session !== undefined ? session.notes : '',\n date: session !== undefined ? session.date : new Date(),\n start: session !== undefined && session.timeStart !== null ? DateTime.fromJSDate(session.timeStart!) : null,\n end: session !== undefined && session.timeEnd !== null ? DateTime.fromJSDate(session.timeEnd!) : null,\n impression: session !== undefined ? session.impression : IMPRESSION_NEUTRAL,\n }}\n innerRef={ref => formik = ref}\n validationSchema={validationSchema}\n onSubmit={async (values) => {\n const data = {\n day: dayId,\n routine: routineId,\n date: dateToYYYYMMDD(selectedDate.toJSDate()),\n notes: values.notes!,\n impression: values.impression,\n // eslint-disable-next-line camelcase\n time_start: values.start ? dateTimeToHHMM(values.start.toJSDate()) : null,\n // eslint-disable-next-line camelcase\n time_end: values.end ? dateTimeToHHMM(values.end.toJSDate()) : null\n };\n\n if (session !== undefined) {\n // @ts-ignore String vs string\n await editSessionQuery.mutateAsync({\n ...data,\n id: session.id\n });\n } else {\n // @ts-ignore String vs string\n await addSessionQuery.mutateAsync(data);\n // navigate(makeLink(WgerLink.ROUTINE_EDIT, i18n.language, { id: routineId }));\n }\n }}\n >\n {formik => (\n <Form>\n <Grid container spacing={2}>\n <Grid size={{ xs: 12, sm: 6 }}>\n <LocalizationProvider dateAdapter={AdapterLuxon} adapterLocale={i18n.language}>\n <DatePicker\n value={selectedDate}\n defaultValue={DateTime.now()}\n label={t('date')}\n onChange={(newValue) => {\n if (!newValue) {\n return;\n }\n formik.setFieldValue('date', newValue);\n setSelectedDate(newValue);\n }}\n disableFuture={true}\n slotProps={{\n textField: {\n variant: \"standard\",\n fullWidth: true,\n error: formik.touched.date && Boolean(formik.errors.date),\n // helperText: formik.touched.date && formik.errors.date\n }\n }}\n />\n </LocalizationProvider>\n </Grid>\n <Grid size={{ xs: 6, sm: 3 }}>\n <LocalizationProvider dateAdapter={AdapterLuxon} adapterLocale={i18n.language}>\n <TimePicker\n label={t('start')}\n {...formik.getFieldProps('start')}\n onChange={(newValue) => {\n if (newValue) {\n formik.setFieldValue('start', newValue);\n }\n }}\n slotProps={{\n textField: {\n variant: \"standard\",\n fullWidth: true,\n error: formik.touched.start && Boolean(formik.errors.start),\n helperText: formik.touched.start && formik.errors.start\n }\n }}\n />\n </LocalizationProvider>\n </Grid>\n <Grid size={{ xs: 6, sm: 3 }}>\n <LocalizationProvider dateAdapter={AdapterLuxon} adapterLocale={i18n.language}>\n <TimePicker\n label={t('end')}\n {...formik.getFieldProps('end')}\n onChange={(newValue) => {\n if (newValue) {\n formik.setFieldValue('end', newValue);\n }\n }}\n slotProps={{\n textField: {\n variant: \"standard\",\n fullWidth: true,\n error: formik.touched.end && Boolean(formik.errors.end),\n helperText: formik.touched.end && formik.errors.end\n }\n }}\n />\n </LocalizationProvider>\n </Grid>\n <Grid size={12}>\n <WgerTextField\n fieldName=\"notes\"\n title={t('notes')}\n fieldProps={{ multiline: true, rows: 4 }}\n />\n </Grid>\n\n <Grid size={12}>\n <Typography variant=\"caption\">{t('routines.impression')}</Typography>\n <ButtonGroup\n fullWidth\n color=\"primary\"\n >\n <Button\n size=\"small\"\n color=\"info\"\n variant={formik.values.impression === IMPRESSION_BAD ? 'contained' : 'outlined'}\n onClick={() => formik.setFieldValue('impression', IMPRESSION_BAD)}\n >\n <SentimentVeryDissatisfied />\n {t('routines.impressionBad')}\n </Button>\n <Button\n size=\"small\"\n color=\"info\"\n variant={formik.values.impression === IMPRESSION_NEUTRAL ? 'contained' : 'outlined'}\n onClick={() => formik.setFieldValue('impression', IMPRESSION_NEUTRAL)}\n >\n <SentimentNeutral />\n {t('routines.impressionNeutral')}\n </Button>\n <Button\n size=\"small\"\n color=\"info\"\n variant={formik.values.impression === IMPRESSION_GOOD ? 'contained' : 'outlined'}\n onClick={() => formik.setFieldValue('impression', IMPRESSION_GOOD)}\n >\n <SentimentSatisfiedAlt />\n {t('routines.impressionGood')}\n </Button>\n\n </ButtonGroup>\n </Grid>\n <Grid size={12} display={\"flex\"} justifyContent={\"end\"}>\n <Button\n disabled={isLoading}\n color=\"primary\"\n variant=\"contained\"\n type=\"submit\"\n sx={{ mt: 2 }}>\n {t('submit')}\n </Button>\n </Grid>\n </Grid>\n </Form>\n )}\n </Formik>\n );\n};\n","import { SwapHoriz } from \"@mui/icons-material\";\nimport AddIcon from \"@mui/icons-material/Add\";\nimport DeleteIcon from \"@mui/icons-material/DeleteOutlined\";\nimport { Alert, Button, IconButton, InputAdornment, MenuItem, Snackbar, TextField, Typography } from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport { WgerTextField } from \"components/Common/forms/WgerTextField\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { NameAutocompleter } from \"components/Exercises/Filter/NameAutcompleter\";\nimport { useLanguageQuery } from \"components/Exercises/queries\";\nimport { RIR_VALUES_SELECT } from \"components/WorkoutRoutines/models/BaseConfig\";\nimport { LogEntryForm } from \"components/WorkoutRoutines/models/WorkoutLog\";\nimport { useAddRoutineLogsQuery, useRoutineDetailQuery } from \"components/WorkoutRoutines/queries\";\nimport { FieldArray, Form, Formik, FormikProps } from \"formik\";\nimport { DateTime } from \"luxon\";\nimport React, { useState } from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { getLanguageByShortName } from \"services\";\nimport { ExerciseSearchResponse } from \"services/responseType\";\nimport { REP_UNIT_REPETITIONS, SNACKBAR_AUTO_HIDE_DURATION } from \"utils/consts\";\nimport * as yup from \"yup\";\n\ninterface SessionLogsFormProps {\n dayId: number,\n routineId: number,\n selectedDate: DateTime,\n}\n\nexport const SessionLogsForm = ({ dayId, routineId, selectedDate }: SessionLogsFormProps) => {\n\n const { t, i18n } = useTranslation();\n const [snackbarOpen, setSnackbarOpen] = useState(false);\n const routineQuery = useRoutineDetailQuery(routineId);\n const addLogsQuery = useAddRoutineLogsQuery(routineId);\n const languageQuery = useLanguageQuery();\n const handleSnackbarClose = () => setSnackbarOpen(false);\n const [exerciseIdToSwap, setExerciseIdToSwap] = useState<number | null>(null);\n\n let language = undefined;\n if (languageQuery.isSuccess) {\n language = getLanguageByShortName(\n i18n.language,\n languageQuery.data!\n );\n }\n\n if (routineQuery.isLoading) {\n return <LoadingPlaceholder />;\n }\n\n const routine = routineQuery.data!;\n const iterationDayData = routine?.getDayData(dayId, selectedDate.toJSDate()) ?? [];\n const hasNoIterationData = iterationDayData.length === 0;\n\n const validationSchema = yup.object({\n logs: yup.array().of(\n yup.object().shape({\n rir: yup.number().nullable(),\n repetitions: yup.number().typeError(t('forms.enterNumber')).nullable(),\n weight: yup.number().typeError(t('forms.enterNumber')).nullable()\n })\n ),\n });\n\n const handleSubmit = async (values: { logs: LogEntryForm[] }) => {\n const iteration = hasNoIterationData ? null : iterationDayData[0].iteration;\n const data = values.logs\n .filter(l => l.rir !== '' || l.repetitions !== '' || l.weight !== '')\n .map(l => ({\n date: selectedDate.toISO(),\n iteration: iteration,\n exercise: l.exercise?.id,\n day: dayId,\n routine: routineId,\n // eslint-disable-next-line camelcase\n slot_entry: l.slotEntry,\n\n rir: l.rir !== '' ? l.rir : null,\n // eslint-disable-next-line camelcase\n rir_target: l.rirTarget !== '' ? l.rirTarget : null,\n\n // eslint-disable-next-line camelcase\n repetitions_unit: l.repetitionsUnit?.id,\n repetitions: l.repetitions !== '' ? l.repetitions : null,\n // eslint-disable-next-line camelcase\n repetitions_target: l.repetitionsTarget !== '' ? l.repetitionsTarget : null,\n\n // eslint-disable-next-line camelcase\n weight_unit: l.weightUnit?.id,\n weight: l.weight !== '' ? l.weight : null,\n // eslint-disable-next-line camelcase\n weight_target: l.weightTarget !== '' ? l.weightTarget : null,\n }\n ));\n\n await addLogsQuery.mutateAsync(data);\n setSnackbarOpen(true);\n };\n\n const handleCallback = async (exerciseResponse: ExerciseSearchResponse | null, formik: FormikProps<{\n logs: LogEntryForm[]\n }>) => {\n\n if (exerciseResponse === null) {\n return;\n }\n\n const updatedLogs = formik.values.logs.map((log) => {\n if (exerciseIdToSwap === log.exercise!.id) {\n // Empty the rest of the values, this is a new exercise not in the routine\n return {\n ...log,\n weight: '',\n weightTarget: '',\n repetitions: '',\n repetitionsTarget: '',\n rir: '',\n rirTarget: '',\n exercise: exerciseResponse.exercise!,\n };\n }\n return log;\n });\n\n await formik.setValues({\n ...formik.values,\n logs: updatedLogs\n });\n\n setExerciseIdToSwap(null);\n };\n\n // Compute initial values\n const initialValues = {\n logs: [] as LogEntryForm[]\n };\n\n const dayDataList = hasNoIterationData ? routine.dayDataCurrentIteration.filter(dayData => dayData.day?.id === dayId) : iterationDayData;\n\n for (const dayData of dayDataList) {\n for (const slot of dayData.slots) {\n for (const config of slot.setConfigs) {\n for (let i = 0; i < config.nrOfSets; i++) {\n\n initialValues.logs.push({\n exercise: config.exercise!,\n repetitionsUnit: config.repetitionsUnit!,\n weightUnit: config.weightUnit!,\n slotEntry: config.slotEntryId,\n\n rir: !hasNoIterationData && config.rir !== null ? config.rir : '',\n rirTarget: !hasNoIterationData && config.rir !== null ? config.rir : '',\n repetitions: !hasNoIterationData && config.repetitions !== null ? config.repetitions : '',\n repetitionsTarget: !hasNoIterationData && config.repetitions !== null ? config.repetitions : '',\n weight: !hasNoIterationData && config.weight !== null ? config.weight : '',\n weightTarget: !hasNoIterationData && config.weight !== null ? config.weight : ''\n });\n }\n }\n }\n }\n\n return (<>\n {hasNoIterationData &&\n <Alert severity={'info'} sx={{ marginTop: 2 }}>{t('routines.weightLogNotPlanned')}</Alert>\n }\n\n\n <Formik\n enableReinitialize\n initialValues={initialValues}\n validationSchema={validationSchema}\n onSubmit={handleSubmit}\n >\n {formik => (\n <Form>\n <FieldArray name={\"logs\"}>\n {({ insert, remove }) => (<>\n\n {formik.values.logs.map((log, index) => (\n <Grid container key={index} spacing={1} sx={{ mt: 2 }}>\n\n {/* Only show the exercise name the first time it appears */}\n {(index === 0 || (index > 0 && formik.values.logs[index - 1].exercise!.id != formik.values.logs[index].exercise!.id)) && <>\n <Grid size={12}>\n {exerciseIdToSwap !== formik.values.logs[index].exercise!.id &&\n <Typography variant=\"h6\">\n {formik.values.logs[index].exercise?.getTranslation(language).name}\n </Typography>}\n\n {exerciseIdToSwap === formik.values.logs[index].exercise!.id &&\n <NameAutocompleter\n loadExercise={true}\n callback={(searchResponse) => handleCallback(searchResponse, formik)}\n />}\n\n </Grid>\n <Grid size={12}>\n <Button\n type=\"button\"\n size=\"small\"\n onClick={() => insert(index, {\n exercise: formik.values.logs[index].exercise,\n repetitions: formik.values.logs[index].repetitions,\n weight: formik.values.logs[index].weight\n })}\n >\n <AddIcon />\n {t('routines.addAdditionalLog')}\n </Button>\n <Button\n type=\"button\"\n size=\"small\"\n onClick={() => {\n if (exerciseIdToSwap === formik.values.logs[index].exercise!.id) {\n setExerciseIdToSwap(null);\n } else {\n setExerciseIdToSwap(formik.values.logs[index].exercise!.id);\n }\n }}\n >\n <SwapHoriz />\n {t('exercises.swapExercise')}\n </Button>\n <Button\n type=\"button\"\n size=\"small\"\n onClick={async () => await formik.setValues({\n ...formik.values,\n logs: formik.values.logs.filter(l => l.exercise!.id !== formik.values.logs[index].exercise!.id)\n })}\n >\n <DeleteIcon />\n {t('delete')}\n </Button>\n\n </Grid>\n </>}\n <Grid size={4}>\n <WgerTextField\n fieldName={`logs.${index}.repetitions`}\n title={t('server.repetitions')}\n fieldProps={{\n slotProps: {\n input: {\n endAdornment:\n <InputAdornment position=\"end\">\n {/* Only show reps that are not \"repetitions\" */}\n {formik.values.logs[index].repetitionsUnit?.id !== REP_UNIT_REPETITIONS\n ? <Typography variant={'caption'}>\n {formik.values.logs[index].repetitionsUnit?.name}\n </Typography>\n : null}\n </InputAdornment>\n\n }\n }\n }}\n />\n </Grid>\n <Grid size={4}>\n <WgerTextField\n fieldName={`logs.${index}.weight`}\n title={t('weight')}\n fieldProps={{\n slotProps: {\n input: {\n endAdornment:\n <InputAdornment position=\"end\">\n <Typography variant={'caption'}>\n {formik.values.logs[index].weightUnit?.name}\n </Typography>\n </InputAdornment>\n }\n }\n }}\n />\n </Grid>\n\n <Grid size={3}>\n <TextField\n fullWidth\n select\n label={t('routines.rir')}\n variant=\"standard\"\n {...formik.getFieldProps(`logs.${index}.rir`)}\n >\n {RIR_VALUES_SELECT.map((option) => (\n <MenuItem key={option.value} value={option.value}>\n {option.label}\n </MenuItem>\n ))}\n </TextField>\n </Grid>\n <Grid size={1}>\n <IconButton size={\"small\"} onClick={() => remove(index)}>\n <DeleteIcon />\n </IconButton>\n </Grid>\n </Grid>\n ))}\n </>\n )}\n </FieldArray>\n <Grid container spacing={2}>\n <Grid size={12} display={\"flex\"} justifyContent={\"end\"}>\n <Button\n color=\"primary\"\n // disabled={!formik.isValid || formik.isSubmitting || !formik.dirty}\n disabled={!formik.isValid || formik.isSubmitting || addLogsQuery.isPending}\n variant=\"contained\"\n type=\"submit\"\n sx={{ mt: 2 }}>\n {t('submit')}\n </Button>\n </Grid>\n </Grid>\n </Form>\n )}\n </Formik>\n <Snackbar\n open={snackbarOpen}\n autoHideDuration={SNACKBAR_AUTO_HIDE_DURATION}\n onClose={handleSnackbarClose}\n >\n <Alert onClose={handleSnackbarClose} severity=\"success\" sx={{ width: '100%' }}>\n {t('success')}\n </Alert>\n </Snackbar>\n </>);\n};\n","import { Stack, Typography } from \"@mui/material\";\nimport { WgerContainerRightSidebar } from \"components/Core/Widgets/Container\";\nimport { SessionForm } from \"components/WorkoutRoutines/widgets/forms/SessionForm\";\nimport { SessionLogsForm } from \"components/WorkoutRoutines/widgets/forms/SessionLogsForm\";\nimport { DateTime } from \"luxon\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useParams } from \"react-router-dom\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\nexport const SessionAdd = () => {\n const params = useParams<{ routineId: string, dayId: string }>();\n const { t, i18n } = useTranslation();\n const [selectedDate, setSelectedDate] = useState<DateTime>(DateTime.now());\n\n const routineId = parseInt(params.routineId ?? '');\n if (Number.isNaN(routineId)) {\n return <p>Please pass an integer as the routine id.</p>;\n }\n\n const dayId = parseInt(params.dayId ?? '');\n if (Number.isNaN(dayId)) {\n return <p>Please pass an integer as the day id.</p>;\n }\n\n return <WgerContainerRightSidebar\n title={t('routines.addWeightLog')}\n backToUrl={makeLink(WgerLink.ROUTINE_DETAIL, i18n.language, { id: routineId })}\n mainContent={\n <Stack>\n <SessionForm\n routineId={routineId}\n dayId={dayId}\n selectedDate={selectedDate}\n setSelectedDate={setSelectedDate}\n />\n\n <Typography variant={\"h5\"}>{t('exercises.exercises')}</Typography>\n <Typography variant={\"body2\"}>\n {t('routines.impressionHelpText')}\n </Typography>\n <SessionLogsForm\n routineId={routineId}\n dayId={dayId}\n selectedDate={selectedDate}\n />\n </Stack>\n }\n />;\n};","import { Alert, AlertTitle, Box, Collapse, Snackbar } from \"@mui/material\";\nimport { useState } from 'react';\nimport { SNACKBAR_AUTO_HIDE_DURATION } from \"utils/consts\";\nimport { collectValidationErrors } from \"utils/forms\";\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const FormQueryErrors = (props: { mutationQuery: any }) => {\n const [openAlert, setOpenAlert] = useState(true);\n\n const handleCloseAlert = (event?: React.SyntheticEvent | Event, reason?: string) => {\n if (reason === 'clickaway') {\n return;\n }\n setOpenAlert(false);\n };\n\n if (!props.mutationQuery?.isError) {\n return null;\n }\n\n return <>\n <Box sx={{ width: '100%' }}>\n <Collapse in={openAlert}>\n <Alert severity=\"error\" sx={{ mb: 1 }} /*onClose={handleCloseAlert}*/>\n <AlertTitle>{props.mutationQuery.error?.message}</AlertTitle>\n <ul>\n {/* TODO: how to properly type this */}\n {collectValidationErrors((props.mutationQuery.error as any).response?.data).map((error, index) =>\n <li key={index}>{error}</li>\n )}\n </ul>\n </Alert>\n </Collapse>\n </Box>\n </>;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const FormQueryErrorsSnackbar = (props: { mutationQuery: any }) => {\n const [openSnackbar, setOpenSnackbar] = useState(true);\n\n if (!props.mutationQuery?.isError) {\n return null;\n }\n\n const handleCloseSnackbar = (event?: React.SyntheticEvent | Event, reason?: string) => {\n if (reason === 'clickaway') {\n return;\n }\n setOpenSnackbar(false);\n };\n\n return <>\n <Snackbar open={openSnackbar} autoHideDuration={SNACKBAR_AUTO_HIDE_DURATION} /* onClose={handleCloseSnackbar}*/>\n <Alert /* onClose={handleCloseSnackbar} */ severity=\"error\" sx={{ width: '100%' }}>\n <AlertTitle>{props.mutationQuery.error?.message}</AlertTitle>\n <ul>\n {/* TODO: how to properly type this */}\n {collectValidationErrors((props.mutationQuery.error as any).response?.data).map((error, index) =>\n <li key={index}>{error}</li>\n )}\n </ul>\n </Alert>\n </Snackbar>\n </>;\n};","import AddIcon from \"@mui/icons-material/Add\";\nimport DeleteIcon from \"@mui/icons-material/Delete\";\nimport HelpOutlineIcon from \"@mui/icons-material/HelpOutline\";\nimport { Box, Button, Divider, IconButton, MenuItem, Stack, Switch, TextField, Typography } from \"@mui/material\";\nimport Grid from \"@mui/material/Grid\";\nimport Tooltip from \"@mui/material/Tooltip\";\nimport { WgerTextField } from \"components/Common/forms/WgerTextField\";\nimport { FormQueryErrors } from \"components/Core/Widgets/FormError\";\nimport {\n BaseConfig,\n BaseConfigEntryForm,\n OPERATION_REPLACE,\n OPERATION_VALUES_SELECT,\n REQUIREMENTS_VALUES,\n STEP_VALUES_SELECT\n} from \"components/WorkoutRoutines/models/BaseConfig\";\nimport { useProcessConfigsQuery } from \"components/WorkoutRoutines/queries/configs\";\nimport { ConfigDetailsRequirementsField, ConfigType } from \"components/WorkoutRoutines/widgets/forms/BaseConfigForm\";\nimport { FieldArray, Form, Formik } from \"formik\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { AddBaseConfigParams, EditBaseConfigParams } from \"services/base_config\";\nimport { ApiPath } from \"utils/consts\";\nimport * as yup from \"yup\";\n\nexport const ProgressionForm = (props: {\n configs: BaseConfig[],\n configsMax: BaseConfig[],\n type: ConfigType,\n slotEntryId: number,\n routineId: number,\n iterations: number[],\n forceInteger?: boolean;\n cycleLength: number;\n}) => {\n const { t } = useTranslation();\n const [linkMinMax, setLinkMinMax] = useState<boolean>(true);\n const [iterationsToDelete, setIterationsToDelete] = useState<number[]>([]);\n const processEntriesQuery = useProcessConfigsQuery(props.routineId);\n\n const forceInteger = props.forceInteger ?? false;\n\n let apiPath: ApiPath;\n let apiPathMax: ApiPath;\n let title = '';\n switch (props.type) {\n case \"weight\":\n apiPath = ApiPath.WEIGHT_CONFIG;\n apiPathMax = ApiPath.MAX_WEIGHT_CONFIG;\n title = t('weight');\n break;\n case \"reps\":\n apiPath = ApiPath.REPETITIONS_CONFIG;\n apiPathMax = ApiPath.MAX_REPS_CONFIG;\n title = t('server.repetitions');\n break;\n case \"sets\":\n apiPath = ApiPath.NR_OF_SETS_CONFIG;\n apiPathMax = ApiPath.MAX_NR_OF_SETS_CONFIG;\n title = t('routines.sets');\n break;\n case \"rest\":\n apiPath = ApiPath.REST_CONFIG;\n apiPathMax = ApiPath.MAX_REST_CONFIG;\n title = t('routines.restTime');\n break;\n case \"rir\":\n apiPath = ApiPath.RIR_CONFIG;\n apiPathMax = ApiPath.MAX_RIR_CONFIG;\n title = t('routines.rir');\n break;\n }\n\n const validationSchema = yup.object({\n entries: yup.array().of(\n yup.object().shape({\n edited: yup.boolean(),\n iteration: yup.number().required(),\n\n // Conditionally apply integer validation e.g. for sets\n value: yup.number()\n .when('forceInteger', {\n is: true,\n then: schema => schema.integer(t('forms.enterInteger')).typeError(t('forms.enterNumber')),\n otherwise: schema => schema.typeError(t('forms.enterNumber')).nullable().notRequired(),\n }),\n\n // only check that the max number is higher when replacing. In other cases allow the max\n // weight to e.g. increase less than the min weight\n valueMax: yup.number().typeError(t('forms.enterNumber')).nullable()\n .when('forceInteger', {\n is: true,\n then: schema => schema.integer(t('forms.enterInteger')).typeError(t('forms.enterNumber')),\n otherwise: schema => schema.typeError(t('forms.enterNumber')).nullable().notRequired(),\n })\n // Conditionally apply integer validation e.g. for sets\n .when('operation', {\n is: OPERATION_REPLACE,\n then: schema => schema.min(yup.ref('value'), t('forms.maxLessThanMin')),\n otherwise: schema => schema,\n }),\n operation: yup.string().required(),\n operationMax: yup.string().required(),\n requirements: yup.array().of(yup.string().oneOf(REQUIREMENTS_VALUES)),\n requirementsMax: yup.array().of(yup.string().oneOf(REQUIREMENTS_VALUES)),\n repeat: yup.boolean(),\n repeatMax: yup.boolean()\n })\n )\n .test(\n 'inter-entry-validation',\n 'Your error message here',\n function (entries) { // Use 'function' to access 'this'\n const { createError } = this;\n\n const data = entries as unknown as BaseConfigEntryForm[];\n\n for (let i = 0; i < data.length; i++) {\n const entry = data[i];\n\n // If there is an entry down the line\n // if (entry.iteration === 1 && data.length > 1 && !entry.value && entry.edited) {\n // return createError({\n // path: `entries[${i}].value`,\n // message: 'Value is required at workout nr 1 when other entries exist'\n // });\n // }\n\n if (entry.iteration > 1 && entry.operation !== OPERATION_REPLACE) {\n let hasValuePreviousReplace = false;\n let hasMaxValuePreviousReplace = false;\n\n for (let j = 0; j < i; j++) {\n if (data[j].operation === OPERATION_REPLACE && data[j].value !== '' && data[j].edited) {\n hasValuePreviousReplace = true;\n }\n\n if (data[j].operation === OPERATION_REPLACE && data[j].valueMax !== '' && data[j].edited) {\n hasMaxValuePreviousReplace = true;\n }\n }\n\n if (!hasValuePreviousReplace) {\n return createError({\n path: `entries[${i}].value`,\n message: t('routines.progressionNeedsReplace')\n });\n }\n if (!hasMaxValuePreviousReplace) {\n return createError({\n path: `entries[${i}].valueMax`,\n message: t('routines.progressionNeedsReplace')\n });\n }\n }\n }\n\n // All entries valid\n return true;\n }\n )\n ,\n });\n\n const getEmptyConfig = (iter: number, edited: boolean): BaseConfigEntryForm => ({\n forceInteger: forceInteger,\n\n edited: edited,\n iteration: iter,\n\n id: null,\n idMax: null,\n value: '',\n valueMax: '',\n operation: OPERATION_REPLACE,\n operationMax: OPERATION_REPLACE,\n step: \"abs\",\n stepMax: \"abs\",\n requirements: [],\n requirementsMax: [],\n repeat: false,\n repeatMax: false,\n });\n\n const initialValues = { entries: [] as BaseConfigEntryForm[] };\n for (const iteration of props.iterations) {\n const config: BaseConfig | undefined = props.configs.find((c) => c.iteration === iteration);\n const configMax: BaseConfig | undefined = props.configsMax.find((c) => c.iteration === iteration);\n\n if (config === undefined) {\n initialValues.entries.push(getEmptyConfig(iteration, false));\n } else {\n initialValues.entries.push({\n forceInteger: forceInteger,\n\n edited: true,\n id: config.id,\n idMax: configMax === undefined ? null : configMax.id,\n iteration: iteration,\n value: String(config.value),\n valueMax: configMax === undefined ? '' : String(configMax.value),\n operation: config.operation,\n operationMax: configMax === undefined ? OPERATION_REPLACE : config.operation,\n step: config.step,\n stepMax: configMax === undefined ? \"abs\" : configMax.step,\n requirements: config.requirements?.rules ?? [],\n requirementsMax: configMax === undefined ? [] : configMax.requirements?.rules ?? [],\n repeat: config.repeat,\n repeatMax: configMax === undefined ? false : config.repeat,\n });\n }\n }\n\n const handleSubmit = (values: { entries: BaseConfigEntryForm[] }) => {\n // Remove empty entries\n const data = values.entries.filter(e => e.edited);\n\n // Split between min and max values\n const editList: EditBaseConfigParams[] = data.filter(data => data.id !== null).map(data => ({\n id: data.id!,\n // eslint-disable-next-line camelcase\n slot_entry: props.slotEntryId,\n value: data.value as number,\n iteration: data.iteration,\n operation: data.operation,\n step: data.step,\n repeat: data.repeat,\n requirements: { rules: data.requirements ?? [] }\n }));\n const addList: AddBaseConfigParams[] = data.filter(data => data.id === null && data.value !== '').map(data => ({\n // eslint-disable-next-line camelcase\n slot_entry: props.slotEntryId,\n value: data.value as number,\n iteration: data.iteration,\n operation: data.operation,\n step: data.step,\n repeat: data.repeat,\n requirements: { rules: data.requirements ?? [] }\n }));\n // Items to delete, also includes all where the value is empty\n const deleteList = props.configs.filter(c => iterationsToDelete.includes(c.iteration)).map(c => c.id);\n data.forEach(entry => {\n if (entry.value === \"\" && entry.id !== null && !deleteList.includes(entry.id)) {\n deleteList.push(entry.id);\n }\n });\n\n // Max values\n const editListMax: EditBaseConfigParams[] = data.filter(data => data.idMax !== null && data.valueMax !== '').map(data => ({\n id: data.idMax!,\n // eslint-disable-next-line camelcase\n slot_entry: props.slotEntryId,\n value: data.valueMax as number,\n iteration: data.iteration,\n operation: data.operation,\n step: data.step,\n repeat: data.repeat,\n requirements: { rules: data.requirements ?? [] }\n }));\n const addListMax: AddBaseConfigParams[] = data.filter(data => data.idMax === null && data.valueMax !== '').map(data => ({\n iteration: data.iteration,\n // eslint-disable-next-line camelcase\n slot_entry: props.slotEntryId,\n value: data.valueMax as number,\n operation: data.operation,\n step: data.stepMax,\n repeat: data.repeat,\n requirements: { rules: data.requirements ?? [] }\n }));\n // Items to delete, also includes all where the value is empty\n const deleteListMax = props.configsMax.filter(c => iterationsToDelete.includes(c.iteration)).map(c => c.id);\n data.forEach(entry => {\n if (entry.valueMax === \"\" && entry.idMax !== null && !deleteList.includes(entry.idMax)) {\n deleteListMax.push(entry.idMax);\n }\n });\n\n // Save to server\n processEntriesQuery.mutate({\n values: {\n toAdd: addList,\n toDelete: deleteList,\n toEdit: editList,\n apiPath: apiPath\n },\n maxValues: {\n toAdd: addListMax,\n toDelete: deleteListMax,\n toEdit: editListMax,\n apiPath: apiPathMax\n }\n });\n };\n\n\n return <>\n <Stack sx={{ width: '100%' }}>\n <Typography variant={\"h6\"}>{title}</Typography>\n <Formik\n enableReinitialize\n initialValues={initialValues}\n validationSchema={validationSchema}\n onSubmit={(values, { setSubmitting }) => {\n handleSubmit(values);\n setSubmitting(false);\n }}\n >\n {formik => (\n <Form>\n <Grid container spacing={1}>\n <Grid size={4} offset={2} textAlign={\"center\"}>\n {t('value')}\n {/*<IconButton onClick={() => setLinkMinMax(!linkMinMax)}>*/}\n {/* {linkMinMax ? <LinkIcon /> : <LinkOffIcon />}*/}\n {/*</IconButton>*/}\n </Grid>\n <Grid size={6}>\n <Grid container spacing={1}>\n <Grid size={3}>\n {t('routines.operation')}\n </Grid>\n <Grid size={3}>\n {t('routines.step')}\n </Grid>\n <Grid size={3} textAlign={'center'}>\n {t('routines.requirements')}\n <br />\n <Tooltip title={t('routines.requirementsHelpText')}>\n <IconButton onClick={() => {\n }}>\n <HelpOutlineIcon fontSize=\"small\" />\n </IconButton>\n </Tooltip>\n </Grid>\n <Grid size={3} textAlign={'center'}>\n {t('routines.repeat')}\n <br />\n <Tooltip title={t('routines.repeatHelpText')}>\n <IconButton onClick={() => {\n }}>\n <HelpOutlineIcon fontSize=\"small\" />\n </IconButton>\n </Tooltip>\n </Grid>\n </Grid>\n </Grid>\n <Grid size={12}>\n <Divider />\n </Grid>\n\n\n <FieldArray name={\"entries\"} validateOnChange={true}>\n {({ insert, remove }) => (<>\n\n {formik.values.entries.map((log, index) => (\n <React.Fragment key={index}>\n <Grid size={2} display={'flex'} justifyContent={'space-around'}\n alignItems={'center'}>\n {props.cycleLength === 7 ? t('routines.weekNr', { number: log.iteration }) : t('routines.workoutNr', { number: log.iteration })}\n {log.edited\n ? <IconButton\n // Allow deleting the first element if it's not the only one\n disabled={log.iteration === 1 && formik.values.entries.filter(e => e.edited && e.iteration !== 1).length > 0}\n size=\"small\"\n onClick={() => {\n if (log.id !== null) {\n setIterationsToDelete([...iterationsToDelete, log.iteration]);\n }\n remove(index);\n insert(index, getEmptyConfig(log.iteration, false));\n }}>\n <DeleteIcon />\n </IconButton>\n : <IconButton size=\"small\" onClick={() => {\n remove(index);\n insert(index, getEmptyConfig(log.iteration, true));\n }}>\n <AddIcon />\n </IconButton>\n }\n </Grid>\n\n\n <Grid size={2}>\n {log.edited &&\n <WgerTextField\n fieldName={`entries.${index}.value`}\n title={t('min')}\n fullwidth={true}\n />}\n </Grid>\n <Grid size={2}>\n {log.edited && <WgerTextField\n fieldName={`entries.${index}.valueMax`}\n title={t('max')}\n fullwidth={true}\n />\n }\n\n </Grid>\n <Grid size={6}>\n <Grid container spacing={1}>\n <Grid size={3}>\n {log.edited && <TextField\n disabled={log.iteration === 1}\n fullWidth\n select\n label={t('routines.operation')}\n variant=\"standard\"\n {...formik.getFieldProps(`entries.${index}.operation`)}\n onChange={async (e) => {\n formik.handleChange(e);\n if (e.target.value === OPERATION_REPLACE) {\n await formik.setFieldValue(`entries.${index}.requirements`, []);\n await formik.setFieldValue(`entries.${index}.repeat`, false);\n }\n }}\n >\n {OPERATION_VALUES_SELECT.map((option) => (\n <MenuItem key={option.value} value={option.value}>\n {option.label}\n </MenuItem>\n ))}\n </TextField>}\n\n </Grid>\n <Grid size={3}>\n {log.edited && <TextField\n disabled={log.iteration === 1 || log.operation === OPERATION_REPLACE}\n fullWidth\n select\n label={t('routines.step')}\n variant=\"standard\"\n {...formik.getFieldProps(`entries.${index}.step`)}\n >\n {STEP_VALUES_SELECT.map((option) => (\n <MenuItem key={option.value} value={option.value}>\n {option.label}\n </MenuItem>\n ))}\n {/* \"not applicable\" is set automatically by the server */}\n {(log.iteration === 1 || log.operation === OPERATION_REPLACE) &&\n <MenuItem key=\"na\" value=\"na\">\n n/a\n </MenuItem>}\n </TextField>}\n </Grid>\n <Grid size={3} textAlign={'center'}>\n {log.edited &&\n <ConfigDetailsRequirementsField\n disabled={log.iteration === 1 || log.operation === OPERATION_REPLACE}\n values={log.requirements}\n fieldName={`entries.${index}.requirements`} />}\n {log.requirements.length >= 0 && <br />}\n {log.requirements.length >= 0 && log.requirements.map((requirement, index) => (\n <Typography key={index} variant={'caption'}>\n {requirement} &nbsp;\n </Typography>\n ))}\n </Grid>\n <Grid size={3} textAlign={'center'}>\n {log.edited && <Switch\n checked={formik.values.entries[index].repeat}\n {...formik.getFieldProps(`entries.${index}.repeat`)}\n disabled={log.iteration === 1 || log.operation === OPERATION_REPLACE}\n />}\n </Grid>\n </Grid>\n </Grid>\n </React.Fragment>\n ))}\n </>\n )}\n </FieldArray>\n {processEntriesQuery.isError && <Grid size={12}>\n <FormQueryErrors mutationQuery={processEntriesQuery} />\n </Grid>}\n\n <Grid size={12} display={\"flex\"} justifyContent={\"end\"}>\n <Button\n color=\"primary\"\n disabled={!formik.isValid || formik.isSubmitting || !formik.dirty}\n variant=\"contained\"\n type=\"submit\"\n sx={{ mt: 2 }}>\n {t('save')}\n </Button>\n </Grid>\n <Grid size={12}>\n <Box height={20}></Box>\n </Grid>\n </Grid>\n </Form>\n )}\n </Formik>\n </Stack>\n </>;\n};\n","import { Typography } from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { WgerContainerFullWidth } from \"components/Core/Widgets/Container\";\nimport { Language } from \"components/Exercises/models/language\";\nimport { useLanguageQuery } from \"components/Exercises/queries\";\nimport { Slot } from \"components/WorkoutRoutines/models/Slot\";\nimport { useRoutineDetailQuery } from \"components/WorkoutRoutines/queries\";\nimport { ProgressionForm } from \"components/WorkoutRoutines/widgets/forms/ProgressionForm\";\nimport { SlotEntryRoundingField } from \"components/WorkoutRoutines/widgets/forms/SlotEntryForm\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useParams } from \"react-router-dom\";\nimport { getLanguageByShortName } from \"services\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\nexport const SlotProgressionEdit = () => {\n\n const { t, i18n } = useTranslation();\n const params = useParams<{ routineId: string, slotId: string }>();\n const routineId = params.routineId ? parseInt(params.routineId) : -1;\n const slotId = params.slotId ? parseInt(params.slotId) : -1;\n const routineQuery = useRoutineDetailQuery(routineId);\n const languageQuery = useLanguageQuery();\n\n if (routineQuery.isLoading) {\n return <LoadingPlaceholder />;\n }\n\n const routine = routineQuery.data!;\n\n let language: Language | undefined = undefined;\n if (languageQuery.isSuccess) {\n language = getLanguageByShortName(\n i18n.language,\n languageQuery.data!\n );\n }\n\n\n let slot: Slot | null = null;\n for (const day of routine.days) {\n const foundSlot = day.slots.find((s) => s.id === slotId);\n if (foundSlot) {\n slot = foundSlot;\n break;\n }\n }\n\n if (slot === null) {\n return <p>Slot not found!</p>;\n }\n\n const iterations = Object.keys(routine.groupedDayDataByIteration).map(Number);\n\n return <>\n <WgerContainerFullWidth\n title={t('routines.editProgression')}\n backToUrl={makeLink(WgerLink.ROUTINE_EDIT, i18n.language, { id: routineId })}\n >\n {slot.entries.map((slotEntry) =>\n <React.Fragment key={slotEntry.id}>\n <Typography variant=\"h5\" gutterBottom>\n {slotEntry.exercise?.getTranslation(language).name}\n </Typography>\n <Grid container spacing={1}>\n <Grid size={2} display=\"flex\" alignItems=\"end\">\n <Typography variant={\"body2\"}>\n {t('routines.rounding')}\n </Typography>\n </Grid>\n\n <Grid size={5}>\n <SlotEntryRoundingField\n routineId={routineId}\n slotEntry={slotEntry}\n initialValue={slotEntry.weightRounding}\n rounding=\"weight\"\n editProfile={false}\n />\n </Grid>\n <Grid size={5}>\n <SlotEntryRoundingField\n routineId={routineId}\n slotEntry={slotEntry}\n initialValue={slotEntry.repetitionRounding}\n rounding=\"reps\"\n editProfile={false}\n />\n </Grid>\n\n <ProgressionForm\n type=\"sets\"\n configs={slotEntry.nrOfSetsConfigs}\n configsMax={slotEntry.maxNrOfSetsConfigs}\n slotEntryId={slotEntry.id!}\n routineId={routineId}\n iterations={iterations}\n forceInteger={true}\n cycleLength={routine.cycleLength}\n />\n <ProgressionForm\n type=\"weight\"\n configs={slotEntry.weightConfigs}\n configsMax={slotEntry.maxWeightConfigs}\n slotEntryId={slotEntry.id!}\n routineId={routineId}\n iterations={iterations}\n cycleLength={routine.cycleLength}\n />\n <ProgressionForm\n type=\"reps\"\n configs={slotEntry.repetitionsConfigs}\n configsMax={slotEntry.maxRepetitionsConfigs}\n slotEntryId={slotEntry.id!}\n routineId={routineId}\n iterations={iterations}\n cycleLength={routine.cycleLength}\n />\n <ProgressionForm\n type=\"rir\"\n configs={slotEntry.rirConfigs}\n configsMax={slotEntry.maxRirConfigs}\n slotEntryId={slotEntry.id!}\n routineId={routineId}\n iterations={iterations}\n cycleLength={routine.cycleLength}\n />\n <ProgressionForm\n type=\"rest\"\n configs={slotEntry.restTimeConfigs}\n configsMax={slotEntry.maxRestTimeConfigs}\n slotEntryId={slotEntry.id!}\n routineId={routineId}\n iterations={iterations}\n cycleLength={routine.cycleLength}\n />\n </Grid>\n </React.Fragment>\n )}\n </WgerContainerFullWidth>\n </>;\n};\n\n\n","import { Box, Button, Stack, Typography } from \"@mui/material\";\nimport Grid from \"@mui/material/Grid\";\nimport { WgerContainerRightSidebar } from \"components/Core/Widgets/Container\";\nimport { RenderLoadingQuery } from \"components/Core/Widgets/RenderLoadingQuery\";\nimport { MuscleOverview } from \"components/Muscles/MuscleOverview\";\nimport { useRoutineDetailQuery } from \"components/WorkoutRoutines/queries\";\nimport { DayDetailsCard } from \"components/WorkoutRoutines/widgets/RoutineDetailsCard\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useParams } from \"react-router-dom\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\nexport const TemplateDetail = () => {\n const { t, i18n } = useTranslation();\n\n const params = useParams<{ routineId: string }>();\n const routineId = parseInt(params.routineId ?? '');\n if (Number.isNaN(routineId)) {\n return <p>Please pass an integer as the routine id.</p>;\n }\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const routineQuery = useRoutineDetailQuery(routineId);\n\n const routine = routineQuery.data;\n\n return <RenderLoadingQuery\n query={routineQuery}\n child={routineQuery.isSuccess\n && <WgerContainerRightSidebar\n title={routine?.isPublic ? t('routines.publicTemplate') : t('routines.template')}\n subTitle={routine!.name}\n mainContent={\n <Stack spacing={2}>\n <Typography variant={\"subtitle1\"}>\n {routine!.start.toLocaleDateString()} - {routine!.end.toLocaleDateString()} ({routine!.durationText})\n </Typography>\n\n {routine!.description !== ''\n && <Typography variant={\"body2\"} sx={{ whiteSpace: 'pre-line' }}>\n {routine?.description}\n </Typography>}\n\n <Button\n component=\"a\"\n href={makeLink(WgerLink.ROUTINE_COPY, i18n.language, { id: routineId })}\n variant={\"contained\"}\n >{t('routines.copyAndUseTemplate')}</Button>\n\n {routine!.dayDataCurrentIteration.filter((dayData) => dayData.day !== null).map((dayData, index) =>\n <DayDetailsCard\n dayData={dayData}\n routineId={routineId}\n readOnly={true}\n key={`dayDetails-${index}`}\n />\n )}\n </Stack>\n }\n sideBar={\n <Stack>\n <Box height={40} />\n <Grid container>\n <Grid size={6}>\n <MuscleOverview\n primaryMuscles={routine!.mainMuscles.filter(m => m.isFront)}\n secondaryMuscles={routine!.secondaryMuscles.filter(m => m.isFront)}\n isFront={true}\n />\n </Grid>\n <Grid size={6}>\n <MuscleOverview\n primaryMuscles={routine!.mainMuscles.filter(m => !m.isFront)}\n secondaryMuscles={routine!.secondaryMuscles.filter(m => !m.isFront)}\n isFront={false}\n />\n </Grid>\n </Grid>\n </Stack>\n }\n />}\n />;\n};","import CancelIcon from \"@mui/icons-material/Cancel\";\nimport DeleteIcon from \"@mui/icons-material/DeleteOutlined\";\nimport EditIcon from \"@mui/icons-material/Edit\";\nimport SaveIcon from \"@mui/icons-material/Save\";\nimport { Box, Card, CardContent, Typography } from '@mui/material';\nimport Grid from \"@mui/material/Grid\";\nimport {\n DataGrid,\n GridActionsCellItem,\n GridColDef,\n GridEventListener,\n GridRowEditStopReasons,\n GridRowId,\n GridRowModel,\n GridRowModes,\n GridRowModesModel,\n GridRowsProp\n} from \"@mui/x-data-grid\";\nimport { FormQueryErrors } from \"components/Core/Widgets/FormError\";\nimport { Exercise } from \"components/Exercises/models/exercise\";\nimport { RIR_VALUES_SELECT_LIST } from \"components/WorkoutRoutines/models/BaseConfig\";\nimport { WorkoutLog } from \"components/WorkoutRoutines/models/WorkoutLog\";\nimport { useDeleteRoutineLogQuery, useEditRoutineLogQuery } from \"components/WorkoutRoutines/queries\";\nimport { DateTime } from \"luxon\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport {\n CartesianGrid,\n Legend,\n ResponsiveContainer,\n Scatter,\n ScatterChart,\n Tooltip,\n TooltipProps,\n XAxis,\n YAxis\n} from \"recharts\";\nimport { NameType, ValueType } from \"recharts/types/component/DefaultTooltipContent\";\nimport { generateChartColors } from \"utils/colors\";\nimport { PAGINATION_OPTIONS } from \"utils/consts\";\n\n\nexport const ExerciseLog = (props: { exercise: Exercise, routineId: number, logEntries: WorkoutLog[] | undefined }) => {\n const { t } = useTranslation();\n const logEntries = props.logEntries ?? [];\n const deleteLogQuery = useDeleteRoutineLogQuery(props.routineId);\n const editLogQuery = useEditRoutineLogQuery(props.routineId);\n\n const initialRows: GridRowsProp = logEntries.map((logEntry: WorkoutLog) => ({\n id: logEntry.id,\n date: logEntry.date,\n repetitions: logEntry.repetitions,\n weight: logEntry.weight,\n rir: logEntry.rir,\n entry: logEntry\n }));\n\n\n const [rows, setRows] = React.useState(initialRows);\n const [rowModesModel, setRowModesModel] = React.useState<GridRowModesModel>({});\n\n const handleRowEditStop: GridEventListener<'rowEditStop'> = (params, event) => {\n if (params.reason === GridRowEditStopReasons.rowFocusOut) {\n event.defaultMuiPrevented = true;\n }\n };\n\n const handleEditClick = (id: GridRowId) => () => {\n setRowModesModel({ ...rowModesModel, [id]: { mode: GridRowModes.Edit } });\n };\n\n const handleSaveClick = (id: GridRowId) => () => {\n setRowModesModel({ ...rowModesModel, [id]: { mode: GridRowModes.View } });\n };\n\n const handleDeleteClick = (id: GridRowId) => () => {\n deleteLogQuery.mutate(id as number);\n setRows(rows.filter((row) => row.id !== id));\n };\n\n const handleCancelClick = (id: GridRowId) => () => {\n setRowModesModel({\n ...rowModesModel,\n [id]: { mode: GridRowModes.View, ignoreModifications: true },\n });\n\n const editedRow = rows.find((row) => row.id === id);\n if (editedRow!.isNew) {\n setRows(rows.filter((row) => row.id !== id));\n }\n };\n\n const processRowUpdate = (newRow: GridRowModel) => {\n\n const log = newRow.entry;\n if (log !== undefined) {\n log.date = newRow.date;\n log.repetitions = newRow.repetitions;\n log.weight = newRow.weight;\n log.rir = newRow.rir;\n\n editLogQuery.mutate(log);\n }\n\n const updatedRow = { ...newRow, isNew: false };\n setRows(rows.map((row) => (row.id === newRow.id ? updatedRow : row)));\n return updatedRow;\n };\n\n const handleRowModesModelChange = (newRowModesModel: GridRowModesModel) => {\n setRowModesModel(newRowModesModel);\n };\n\n const columns: GridColDef[] = [\n {\n field: 'date',\n type: 'dateTime',\n flex: 1,\n editable: true,\n disableColumnMenu: true,\n headerName: t('date'),\n valueFormatter: (value?: Date) => {\n if (value == null) {\n return '';\n }\n return `${value.toLocaleDateString()}`;\n },\n },\n {\n field: 'repetitions',\n type: 'number',\n disableColumnMenu: true,\n editable: true,\n headerName: t('routines.reps'),\n },\n {\n field: 'weight',\n type: 'number',\n disableColumnMenu: true,\n editable: true,\n headerName: t('weight'),\n },\n {\n field: 'rir',\n type: 'singleSelect',\n disableColumnMenu: true,\n\n editable: true,\n headerName: t('routines.rir'),\n getOptionValue: (value: any) => value.value,\n getOptionLabel: (value: any) => value.label,\n valueOptions: RIR_VALUES_SELECT_LIST,\n },\n {\n field: 'actions',\n type: 'actions',\n headerName: 'Actions',\n width: 100,\n cellClassName: 'actions',\n getActions: ({ id }) => {\n const isInEditMode = rowModesModel[id]?.mode === GridRowModes.Edit;\n\n if (isInEditMode) {\n return [\n <GridActionsCellItem\n icon={<SaveIcon />}\n sx={{ color: 'primary.main' }}\n label={t('save')}\n onClick={handleSaveClick(id)}\n />,\n <GridActionsCellItem\n icon={<CancelIcon />}\n label={t('cancel')}\n className=\"textPrimary\"\n onClick={handleCancelClick(id)}\n color=\"inherit\"\n />,\n ];\n }\n\n return [\n <GridActionsCellItem\n icon={<EditIcon />}\n label={t('edit')}\n className=\"textPrimary\"\n onClick={handleEditClick(id)}\n color=\"inherit\"\n />,\n <GridActionsCellItem\n icon={<DeleteIcon />}\n label={t('delete')}\n onClick={handleDeleteClick(id)}\n color=\"inherit\"\n />,\n ];\n },\n },\n ];\n\n const initialState = {\n pagination: {\n paginationModel: {\n pageSize: 5,\n },\n },\n };\n\n return <>\n <Typography variant={\"h6\"} sx={{ mt: 4 }}>\n {props.exercise.getTranslation().name}\n </Typography>\n\n <Grid container spacing={2}>\n <Grid size={{ xs: 12, md: 6 }}>\n <FormQueryErrors mutationQuery={editLogQuery} />\n\n <DataGrid\n initialState={initialState}\n pageSizeOptions={PAGINATION_OPTIONS.pageSizeOptions}\n disableRowSelectionOnClick\n rows={rows}\n columns={columns}\n editMode=\"row\"\n rowModesModel={rowModesModel}\n onRowModesModelChange={handleRowModesModelChange}\n onRowEditStop={handleRowEditStop}\n processRowUpdate={processRowUpdate}\n />\n\n </Grid>\n <Grid size={{ xs: 12, md: 6 }}>\n <TimeSeriesChart data={logEntries} key={props.exercise.id} />\n </Grid>\n </Grid>\n </>;\n};\n/*\n * Format the log entries so that they can be passed to the chart\n *\n * This is mostly due to the time, which needs to be a number to be shown\n * in the scatter plot\n */\nconst formatData = (data: WorkoutLog[]) =>\n data.map((log) => {\n return {\n id: log.id,\n value: log.weight,\n time: log.date.getTime(),\n entry: log,\n };\n });\n\nconst ExerciseLogTooltip = ({ active, payload, label, }: TooltipProps<ValueType, NameType>) => {\n if (active) {\n // TODO: translate rir\n let rir = '';\n if (payload?.[1].payload?.entry.rir) {\n rir = `, ${payload?.[1].payload?.entry.rir} RiR`;\n }\n\n return <Card>\n <CardContent>\n <Typography variant=\"body1\">\n {DateTime.fromMillis(payload?.[0].value as number).toLocaleString(DateTime.DATE_MED)}\n </Typography>\n\n <Typography variant=\"body2\">\n {payload?.[1].payload?.entry.repetitions} × {payload?.[1].value}{payload?.[1].unit}{rir}\n </Typography>\n\n </CardContent>\n </Card>;\n }\n return null;\n};\n\nexport const TimeSeriesChart = (props: { data: WorkoutLog[] }) => {\n\n // Group by rep count\n //\n // We draw series based on the same reps, as otherwise the chart wouldn't\n // make much sense\n const result: Map<number, WorkoutLog[]> = props.data.reduce(function (r, a) {\n r.set(a.repetitions, r.get(a.repetitions) || []);\n r.get(a.repetitions)!.push(a);\n return r;\n }, new Map());\n\n const colorGenerator = generateChartColors(result.size);\n\n return (\n <Box>\n <ResponsiveContainer width={\"100%\"} height={250}>\n <ScatterChart>\n <XAxis\n dataKey=\"time\"\n domain={[\"auto\", \"auto\"]}\n name=\"Time\"\n tickFormatter={unixTime => DateTime.fromMillis(unixTime).toLocaleString(DateTime.DATE_MED)}\n type=\"number\"\n />\n <YAxis\n domain={[\"auto\", \"auto\"]}\n dataKey=\"value\"\n name=\"Value\"\n unit=\"kg\"\n />\n\n {Array.from(result).map(([key, value]) => {\n const color = colorGenerator.next().value!;\n const formattedData = formatData(value);\n\n return <Scatter\n key={key}\n data={formattedData}\n fill={color}\n line={{ stroke: color }}\n lineType=\"joint\"\n lineJointType=\"monotoneX\"\n name={key?.toString()}\n />;\n }\n )}\n\n <Tooltip content={<ExerciseLogTooltip />} />\n <CartesianGrid strokeDasharray=\"3 3\" />\n <Legend />\n </ScatterChart>\n </ResponsiveContainer>\n </Box>\n );\n};","import BarChartIcon from \"@mui/icons-material/BarChart\";\nimport { Button, IconButton, Stack, Tooltip as MuiTooltip, Typography } from \"@mui/material\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { WgerContainerFullWidth } from \"components/Core/Widgets/Container\";\nimport { WorkoutLog } from \"components/WorkoutRoutines/models/WorkoutLog\";\nimport { useRoutineDetailQuery, useRoutineLogData } from \"components/WorkoutRoutines/queries\";\nimport { ExerciseLog } from \"components/WorkoutRoutines/widgets/LogWidgets\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Link, useParams } from \"react-router-dom\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\n\nexport const WorkoutLogs = () => {\n\n const params = useParams<{ routineId: string }>();\n const routineId = params.routineId ? parseInt(params.routineId) : 0;\n const [t, i18n] = useTranslation();\n const routineLogDataQuery = useRoutineLogData(routineId);\n const routineQuery = useRoutineDetailQuery(routineId);\n\n if (routineLogDataQuery.isLoading || routineQuery.isLoading) {\n return <LoadingPlaceholder />;\n }\n\n // Group by exercise\n let groupedWorkoutLogs: Map<number, WorkoutLog[]> = new Map();\n\n groupedWorkoutLogs = routineLogDataQuery.data!.reduce((r, routineLogData) => {\n routineLogData.logs.forEach(log => {\n const exerciseId = log.exerciseId;\n r.set(exerciseId, r.get(exerciseId) || []);\n r.get(exerciseId)!.push(log);\n });\n return r;\n }, groupedWorkoutLogs);\n\n\n return (\n <WgerContainerFullWidth\n title={t(\"routines.logsHeader\")}\n backToUrl={makeLink(WgerLink.ROUTINE_DETAIL, i18n.language, { id: routineId })}\n optionsMenu={\n <MuiTooltip title={t('routines.statsOverview')}>\n <IconButton\n component=\"a\"\n href={makeLink(WgerLink.ROUTINE_STATS_OVERVIEW, i18n.language, { id: routineId })}>\n <BarChartIcon />\n </IconButton>\n </MuiTooltip>\n }\n >\n\n <Typography variant={\"body1\"}>\n {t('routines.logsFilterNote')}\n </Typography>\n\n {routineQuery.data!.dayDataCurrentIteration.filter((dayData) => dayData.day !== null && !dayData.day.isRest).map((dayData, index) =>\n <React.Fragment key={index}>\n <Stack\n direction={{ xs: 'column', sm: 'row' }}\n justifyContent=\"space-between\"\n alignItems=\"center\"\n sx={{ mt: 4 }}\n >\n <Typography variant={\"h4\"}>\n {dayData.day!.name}\n </Typography>\n <Button\n component={Link}\n to={makeLink(\n WgerLink.ROUTINE_ADD_LOG,\n i18n.language,\n { id: routineId, id2: dayData.day!.id! }\n )}\n variant=\"contained\"\n >\n {t('routines.addLogToDay')}\n </Button>\n </Stack>\n\n {dayData.slots.map(slot =>\n slot.exercises.map(exercise =>\n <ExerciseLog\n key={exercise.id}\n routineId={routineId}\n exercise={exercise}\n logEntries={groupedWorkoutLogs.get(exercise.id!)!}\n />)\n )}\n </React.Fragment>\n )}\n\n </WgerContainerFullWidth>\n );\n};\n\n\n","import { FormControl, MenuItem, Select } from \"@mui/material\";\nimport InputLabel from \"@mui/material/InputLabel\";\nimport { SelectChangeEvent } from \"@mui/material/Select\";\nimport { Exercise } from \"components/Exercises/models/exercise\";\nimport { Language } from \"components/Exercises/models/language\";\nimport { Muscle } from \"components/Exercises/models/muscle\";\nimport { GroupedLogData, LogData, RoutineStatsData } from \"components/WorkoutRoutines/models/LogStats\";\nimport i18n from 'i18next';\nimport React from \"react\";\n\nexport const enum StatType {\n Volume = \"volume\",\n Sets = \"sets\",\n Intensity = \"intensity\",\n}\n\nexport const enum StatSubType {\n Mesocycle = 'mesocycle',\n Weekly = 'weekly',\n Iteration = 'iteration',\n Daily = 'daily'\n}\n\nexport const enum StatGroupBy {\n Exercises = 'exercises',\n Muscles = 'muscles',\n Total = 'total',\n}\n\nexport interface DropdownOption {\n value: string | number;\n label: string;\n}\n\ninterface DropdownProps {\n label: string;\n options: DropdownOption[];\n value: string;\n onChange: (event: SelectChangeEvent) => void;\n}\n\ninterface FullStatsData {\n headers: string[],\n data: { key: string | number, values: (number | undefined)[] }[],\n totals: { [p: string]: number }\n}\n\n\nexport const StatsOptionDropdown: React.FC<DropdownProps> = ({ label, options, value, onChange }) => {\n\n return (\n <FormControl fullWidth>\n <InputLabel id={`${label}-label`}>{label}</InputLabel>\n <Select\n labelId={`${label}-label`}\n id={`${label}-select`}\n value={value}\n label={label}\n onChange={onChange}\n >\n {options.map((option) => (\n <MenuItem key={option.value} value={option.value}>\n {option.label}\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n );\n};\n\nexport function getHumanReadableHeaders(exerciseList: Exercise[], language: Language, muscleList: Muscle[], groupBy: StatGroupBy, logData: LogData,) {\n switch (groupBy) {\n case StatGroupBy.Exercises: {\n const exercises = Object.keys(logData.exercises).map(e => exerciseList.find(ex => ex.id === parseInt(e))?.getTranslation(language)?.name);\n const exercisesIds = Object.keys(logData.exercises).map(Number);\n return { headers: exercises as string[], data: exercisesIds.map(ex => logData.exercises[ex]) };\n }\n case StatGroupBy.Muscles: {\n const muscles = Object.keys(logData.muscle).map(e => muscleList.find(m => m.id === parseInt(e))?.translatedName ?? '');\n const musclesIds = Object.keys(logData.muscle).map(Number);\n return { headers: muscles as string[], data: musclesIds.map(ms => logData.muscle[ms]) };\n\n }\n case StatGroupBy.Total:\n return { headers: [i18n.t('total')], data: [logData.total] };\n\n default:\n return { headers: [], data: [] };\n }\n}\n\nexport const getFullStatsData = (\n stats: RoutineStatsData,\n selectedValueType: StatType,\n selectedValueSubType: StatSubType,\n selectedValueGroupBy: StatGroupBy,\n exerciseList: Exercise[],\n muscleList: Muscle[],\n language: Language,\n languageCode: string,\n): FullStatsData => {\n const columnTotals: { [header: string]: number } = {};\n\n const statsData = stats[selectedValueType];\n let dataToDisplay: { key: string | number; values: (number | undefined)[] }[] = [];\n let allHeaders: string[] = [];\n\n const calculateStatsData = (groupBy: StatGroupBy, logData: LogData) => getHumanReadableHeaders(\n exerciseList,\n language,\n muscleList,\n groupBy,\n logData\n );\n\n\n const getAllHeaders = (data: GroupedLogData) => {\n let headers: string[] = [];\n\n switch (selectedValueSubType) {\n case StatSubType.Mesocycle:\n headers = calculateStatsData(selectedValueGroupBy, statsData.mesocycle).headers;\n break;\n case StatSubType.Iteration:\n for (const iteration in data.iteration) {\n headers = headers.concat(calculateStatsData(selectedValueGroupBy, data.iteration[iteration]).headers);\n }\n break;\n case StatSubType.Weekly:\n for (const week in data.weekly) {\n headers = headers.concat(calculateStatsData(selectedValueGroupBy, data.weekly[week]).headers);\n }\n break;\n case StatSubType.Daily:\n for (const date in data.daily) {\n headers = headers.concat(calculateStatsData(selectedValueGroupBy, data.daily[date]).headers);\n }\n break;\n }\n\n // Create a set to remove duplicate values\n return [...new Set(headers)];\n };\n allHeaders = getAllHeaders(statsData);\n\n // Initialize column totals\n allHeaders.forEach(header => {\n columnTotals[header] = 0;\n });\n\n\n /*\n * Accumulates the totals within a loop\n */\n function calculateLoopSum(data: (number | undefined)[], logData: LogData) {\n const values = allHeaders.map(header => data[calculateStatsData(selectedValueGroupBy, logData).headers.indexOf(header)]);\n\n values.forEach((value, index) => {\n if (value === undefined) {\n return;\n }\n\n columnTotals[allHeaders[index]] += value;\n });\n }\n\n //Data\n switch (selectedValueSubType) {\n case StatSubType.Mesocycle: {\n const { data } = calculateStatsData(selectedValueGroupBy, statsData.mesocycle);\n\n dataToDisplay = [{\n key: i18n.t(\"total\"),\n values: allHeaders.map(header => data[allHeaders.indexOf(header)])\n }];\n break;\n }\n case StatSubType.Iteration: {\n dataToDisplay = Object.entries(statsData.iteration).map(([iteration, logData]) => {\n const { data } = calculateStatsData(selectedValueGroupBy, logData);\n calculateLoopSum(data, logData);\n\n return {\n key: `iteration ${iteration}`,\n values: allHeaders.map(header => data[calculateStatsData(selectedValueGroupBy, logData).headers.indexOf(header)])\n };\n });\n break;\n }\n case StatSubType.Weekly: {\n dataToDisplay = Object.entries(statsData.weekly).map(([week, logData]) => {\n const { data } = calculateStatsData(selectedValueGroupBy, logData);\n calculateLoopSum(data, logData);\n\n return {\n key: `week ${week}`,\n values: allHeaders.map(header => data[calculateStatsData(selectedValueGroupBy, logData).headers.indexOf(header)])\n };\n });\n break;\n }\n case StatSubType.Daily: {\n dataToDisplay = Object.entries(statsData.daily).map(([date, logData]) => {\n const { data } = calculateStatsData(selectedValueGroupBy, logData);\n calculateLoopSum(data, logData);\n\n return {\n key: new Date(date).toLocaleDateString(languageCode),\n values: allHeaders.map(header => data[calculateStatsData(selectedValueGroupBy, logData).headers.indexOf(header)])\n };\n });\n break;\n }\n }\n\n return { headers: allHeaders, data: dataToDisplay, totals: columnTotals };\n};\n\ninterface StatsChartData {\n name: string,\n data: { category: string, value: number | undefined }[];\n}\n\n/*\n * Converts the data from getFullStatsData to a format that can be directly\n * used by the recharts library\n */\nexport function formatStatsData(fullStatsData: FullStatsData): StatsChartData[] {\n const formattedData: StatsChartData[] = [];\n\n fullStatsData.headers.forEach((header) => {\n formattedData.push({ name: header, data: [] });\n });\n\n fullStatsData.data.forEach((row) => {\n row.values.forEach((value, index) => {\n const header = fullStatsData.headers[index];\n\n if (header) {\n formattedData.find(item => item.name === header)?.data.push({\n category: row.key.toString(),\n value: value\n });\n }\n });\n });\n\n return formattedData;\n}","import BarChartIcon from '@mui/icons-material/BarChart';\nimport {\n Box,\n IconButton,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n Tooltip as MuiTooltip,\n useTheme\n} from \"@mui/material\";\nimport Grid from \"@mui/material/Grid\";\nimport { SelectChangeEvent } from '@mui/material/Select';\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { WgerContainerFullWidth } from \"components/Core/Widgets/Container\";\nimport { useLanguageQuery, useMusclesQuery } from \"components/Exercises/queries\";\nimport { useRoutineDetailQuery } from \"components/WorkoutRoutines/queries\";\nimport { useRoutineStatsQuery } from \"components/WorkoutRoutines/queries/routines\";\nimport {\n DropdownOption,\n formatStatsData,\n getFullStatsData,\n StatGroupBy,\n StatsOptionDropdown,\n StatSubType,\n StatType\n} from \"components/WorkoutRoutines/widgets/RoutineStatistics\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useParams } from \"react-router-dom\";\nimport { CartesianGrid, Legend, Line, LineChart, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts';\nimport { getLanguageByShortName } from \"services\";\nimport { generateChartColors } from \"utils/colors\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\n\nexport const WorkoutStats = () => {\n\n const theme = useTheme();\n const [t, i18n] = useTranslation();\n const params = useParams<{ routineId: string }>();\n\n const [selectedValueType, setSelectedValueType] = useState<StatType>(StatType.Volume);\n const [selectedValueSubType, setSelectedValueSubType] = useState<StatSubType>(StatSubType.Daily);\n const [selectedValueGroupBy, setSelectedValueGroupBy] = useState<StatGroupBy>(StatGroupBy.Exercises);\n\n const routineId = parseInt(params.routineId ?? '');\n if (Number.isNaN(routineId)) {\n return <p>Please pass an integer as the routine id.</p>;\n }\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const routineQuery = useRoutineDetailQuery(routineId);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const routineStatsQuery = useRoutineStatsQuery(routineId);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const musclesQuery = useMusclesQuery();\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const languageQuery = useLanguageQuery();\n\n\n if (routineStatsQuery.isLoading || routineQuery.isLoading || musclesQuery.isLoading || languageQuery.isLoading) {\n return <LoadingPlaceholder />;\n }\n\n // TODO: find a better solution for this...\n const language = getLanguageByShortName(\n i18n.language,\n languageQuery.data!\n )!;\n\n const routine = routineQuery.data!;\n\n\n const dropdownOptionsType: DropdownOption[] = [\n { value: StatType.Volume, label: t('routines.volume') },\n { value: StatType.Sets, label: t('routines.sets') },\n { value: StatType.Intensity, label: t('routines.intensity') },\n ];\n\n const dropdownOptionsSubType: DropdownOption[] = [\n { value: StatSubType.Mesocycle, label: t('routines.currentRoutine') },\n { value: StatSubType.Weekly, label: t('routines.weekly') },\n { value: StatSubType.Iteration, label: t('routines.iteration') },\n { value: StatSubType.Daily, label: t('routines.daily') },\n ];\n const dropdownOptionsGroupBy: DropdownOption[] = [\n { value: StatGroupBy.Exercises, label: t('exercises.exercises') },\n { value: StatGroupBy.Muscles, label: t('exercises.muscles') },\n { value: StatGroupBy.Total, label: t('total') },\n ];\n\n const handleChangeType = (event: SelectChangeEvent) => {\n setSelectedValueType(event.target.value as StatType);\n };\n\n const handleChangeSubType = (event: SelectChangeEvent) => {\n setSelectedValueSubType(event.target.value as StatSubType);\n };\n\n const handleChangeGroupBy = (event: SelectChangeEvent) => {\n setSelectedValueGroupBy(event.target.value as StatGroupBy);\n };\n\n const statsData = getFullStatsData(\n routineStatsQuery.data!,\n selectedValueType,\n selectedValueSubType,\n selectedValueGroupBy,\n routine.exercises,\n musclesQuery.data!,\n language,\n i18n.language,\n );\n\n const chartData = formatStatsData(statsData);\n\n const renderStatistics = () => {\n\n\n return (\n <TableContainer>\n <Table size={\"small\"}>\n <TableHead>\n <TableRow>\n <TableCell></TableCell>\n {statsData.headers.map(header => <TableCell\n key={header}\n sx={{ textAlign: 'right', }}\n >{header}</TableCell>)}\n </TableRow>\n </TableHead>\n <TableBody>\n {statsData.data.map((row) => (\n <TableRow key={row.key}>\n <TableCell>{row.key}</TableCell>\n {row.values.map((value, index) => (\n <TableCell\n key={index}\n sx={{ textAlign: 'right', }}\n >{value?.toFixed(selectedValueType === StatType.Intensity ? 2 : 0) || \"\"}\n </TableCell>\n ))}\n </TableRow>\n ))}\n {selectedValueSubType !== StatSubType.Mesocycle && <TableRow>\n <TableCell sx={{\n fontWeight: 'bold',\n backgroundColor: theme.palette.grey.A200\n }}>{t(\"total\")}</TableCell>\n {statsData.headers.map(header => (\n <TableCell key={header}\n sx={{\n fontWeight: 'bold',\n backgroundColor: theme.palette.grey.A200,\n textAlign: 'right',\n }}>\n {statsData.totals[header?.toString()]?.toFixed(selectedValueType === StatType.Intensity ? 2 : 0)}\n </TableCell>\n ))}\n </TableRow>}\n </TableBody>\n </Table>\n </TableContainer>\n );\n\n };\n\n const colorGenerator = generateChartColors(chartData.length);\n\n return (\n <WgerContainerFullWidth\n title={`${t(\"routines.statsOverview\")} - ${routine.name}`}\n backToUrl={makeLink(WgerLink.ROUTINE_DETAIL, i18n.language, { id: routineId })}\n optionsMenu={\n <MuiTooltip title={t('routines.logsOverview')}>\n <IconButton component=\"a\"\n href={makeLink(WgerLink.ROUTINE_LOGS_OVERVIEW, i18n.language, { id: routineId })}>\n <BarChartIcon />\n </IconButton>\n </MuiTooltip>\n }\n >\n <Grid container spacing={1}>\n <Grid size={2} offset={3}>\n <StatsOptionDropdown\n label={\"type\"}\n options={dropdownOptionsType}\n value={selectedValueType}\n onChange={handleChangeType}\n />\n </Grid>\n <Grid size={2}>\n <StatsOptionDropdown\n label={\"sub type\"}\n options={dropdownOptionsSubType}\n value={selectedValueSubType}\n onChange={handleChangeSubType}\n />\n </Grid>\n <Grid size={2}>\n <StatsOptionDropdown\n label={\"group by\"}\n options={dropdownOptionsGroupBy}\n value={selectedValueGroupBy}\n onChange={handleChangeGroupBy}\n />\n </Grid>\n\n <Grid size={12}>\n <Box width=\"100%\" height={400}>\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n <LineChart width={500} height={300}>\n <CartesianGrid strokeDasharray=\"3 3\" />\n <XAxis dataKey=\"category\" type=\"category\" allowDuplicatedCategory={false} />\n <YAxis dataKey=\"value\" />\n <Tooltip\n formatter={(value: number) => Number.isInteger(value) ? value.toFixed(0) : value.toFixed(2)} />\n <Legend\n layout={\"vertical\"}\n verticalAlign=\"middle\"\n align=\"right\"\n wrapperStyle={{ paddingLeft: \"20px\" }}\n />\n {chartData.map((s) => (\n <Line dataKey=\"value\" data={s.data} name={s.name} key={s.name}\n stroke={colorGenerator.next()!.value!} />\n ))}\n </LineChart>\n </ResponsiveContainer>\n </Box>\n </Grid>\n\n <Grid size={12}>\n <Box height={20} />\n {renderStatistics()}\n </Grid>\n </Grid>\n </WgerContainerFullWidth>\n );\n};\n\n\n\n","import AddIcon from \"@mui/icons-material/Add\";\nimport { Fab } from \"@mui/material\";\nimport { WgerModal } from \"components/Core/Modals/WgerModal\";\nimport { RoutineForm } from \"components/WorkoutRoutines/widgets/forms/RoutineForm\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\nexport const AddRoutineFab = () => {\n\n const [t] = useTranslation();\n const [openModal, setOpenModal] = React.useState(false);\n const handleOpenModal = () => setOpenModal(true);\n const handleCloseModal = () => setOpenModal(false);\n\n\n return (\n <div>\n <Fab\n color=\"secondary\"\n aria-label=\"add\"\n onClick={handleOpenModal}\n sx={{\n position: 'fixed',\n bottom: '5rem',\n right: (theme) => `max(${theme.spacing(2)}, calc((100vw - ${theme.breakpoints.values.lg}px) / 2 + ${theme.spacing(2)}))`,\n zIndex: 9,\n }}>\n <AddIcon />\n </Fab>\n <WgerModal title={t('add')} isOpen={openModal} closeFn={handleCloseModal}>\n <RoutineForm closeFn={handleCloseModal} />\n </WgerModal>\n </div>\n );\n};\n\nexport const AddPublicTemplateFab = () => {\n\n const [t] = useTranslation();\n const [openModal, setOpenModal] = React.useState(false);\n const handleOpenModal = () => setOpenModal(true);\n const handleCloseModal = () => setOpenModal(false);\n\n return (\n <div>\n <Fab\n color=\"secondary\"\n aria-label=\"add\"\n onClick={handleOpenModal}\n sx={{\n position: 'fixed',\n bottom: '5rem',\n right: (theme) => `max(${theme.spacing(2)}, calc((100vw - ${theme.breakpoints.values.lg}px) / 2 + ${theme.spacing(2)}))`,\n zIndex: 9,\n }}>\n <AddIcon />\n </Fab>\n <WgerModal title={t('add')} isOpen={openModal} closeFn={handleCloseModal}>\n <RoutineForm closeFn={handleCloseModal} isTemplate={true} isPublicTemplate={true} />\n </WgerModal>\n </div>\n );\n};\n\nexport const AddPrivateTemplateFab = () => {\n\n const [t] = useTranslation();\n const [openModal, setOpenModal] = React.useState(false);\n const handleOpenModal = () => setOpenModal(true);\n const handleCloseModal = () => setOpenModal(false);\n\n return (\n <div>\n <Fab\n color=\"secondary\"\n aria-label=\"add\"\n onClick={handleOpenModal}\n sx={{\n position: 'fixed',\n bottom: '5rem',\n right: (theme) => `max(${theme.spacing(2)}, calc((100vw - ${theme.breakpoints.values.lg}px) / 2 + ${theme.spacing(2)}))`,\n zIndex: 9,\n }}>\n <AddIcon />\n </Fab>\n <WgerModal title={t('add')} isOpen={openModal} closeFn={handleCloseModal}>\n <RoutineForm closeFn={handleCloseModal} isTemplate={true} isPublicTemplate={false} />\n </WgerModal>\n </div>\n );\n};","import ChevronRightIcon from '@mui/icons-material/ChevronRight';\nimport { Chip, Divider, List, ListItem, ListItemButton, ListItemText, Paper, } from \"@mui/material\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { WgerContainerRightSidebar } from \"components/Core/Widgets/Container\";\nimport { OverviewEmpty } from \"components/Core/Widgets/OverviewEmpty\";\nimport { Routine } from \"components/WorkoutRoutines/models/Routine\";\nimport { AddRoutineFab } from \"components/WorkoutRoutines/Overview/Fab\";\nimport { useRoutinesShallowQuery } from \"components/WorkoutRoutines/queries\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\nexport const RoutineList = (props: {\n routine: Routine,\n linkDestination?: WgerLink,\n showTemplateChip?: boolean,\n showTemplateVisibility?: boolean\n}) => {\n const [t, i18n] = useTranslation();\n\n const showTemplateChip = props.showTemplateChip ?? true;\n const showTemplateVisibility = props.showTemplateVisibility ?? false;\n\n const destination = props.linkDestination ?? WgerLink.ROUTINE_DETAIL;\n const detailUrl = makeLink(destination, i18n.language, { id: props.routine.id! });\n\n const primaryText = props.routine.name !== '' ? props.routine.name : t('routines.routine');\n\n const chipTemplate = props.routine.isTemplate && showTemplateChip\n ? <Chip color=\"info\" size=\"small\" label={t('routines.template')} />\n : null;\n\n const chipVisibility = props.routine.isTemplate && showTemplateVisibility\n ? <Chip color=\"info\" size=\"small\"\n label={t(props.routine.isPublic ? 'public' : 'private')} />\n : null;\n\n\n return <>\n <ListItem sx={{ p: 0 }}>\n <ListItemButton component=\"a\" href={detailUrl}>\n <ListItemText\n primary={<>{primaryText} {chipTemplate} {chipVisibility}</>}\n secondary={`${props.routine.durationText} (${props.routine.start.toLocaleDateString()} - ${props.routine.end.toLocaleDateString()})`}\n />\n <ChevronRightIcon />\n </ListItemButton>\n </ListItem>\n <Divider component=\"li\" />\n </>;\n};\n\nexport const RoutineOverview = () => {\n const routineQuery = useRoutinesShallowQuery();\n const [t] = useTranslation();\n\n if (routineQuery.isLoading) {\n return <LoadingPlaceholder />;\n }\n\n\n return <WgerContainerRightSidebar\n title={t(\"routines.routines\")}\n mainContent={<>\n {routineQuery.data!.length === 0\n ? <OverviewEmpty />\n : <Paper>\n <List sx={{ py: 0 }} key={'abc'}>\n {routineQuery.data!.map(r => <RoutineList routine={r} key={r.id} />)}\n </List>\n </Paper>}\n </>}\n fab={<AddRoutineFab />}\n />;\n};\n","import { List, Paper, } from \"@mui/material\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { WgerContainerRightSidebar } from \"components/Core/Widgets/Container\";\nimport { OverviewEmpty } from \"components/Core/Widgets/OverviewEmpty\";\nimport { AddPrivateTemplateFab } from \"components/WorkoutRoutines/Overview/Fab\";\nimport { RoutineList } from \"components/WorkoutRoutines/Overview/RoutineOverview\";\nimport { usePrivateRoutinesShallowQuery } from \"components/WorkoutRoutines/queries/routines\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { WgerLink } from \"utils/url\";\n\n\nexport const PrivateTemplateOverview = () => {\n const routineQuery = usePrivateRoutinesShallowQuery();\n const [t] = useTranslation();\n\n if (routineQuery.isLoading) {\n return <LoadingPlaceholder />;\n }\n\n\n return <WgerContainerRightSidebar\n title={t(\"routines.templates\")}\n mainContent={<>\n {routineQuery.data!.length === 0\n ? <OverviewEmpty />\n : <Paper>\n <List sx={{ py: 0 }} key={'abc'}>\n {routineQuery.data!.map(r => <RoutineList\n routine={r}\n key={r.id}\n showTemplateChip={false}\n showTemplateVisibility={true}\n linkDestination={WgerLink.ROUTINE_DETAIL} />\n )}\n </List>\n </Paper>}\n </>}\n fab={<AddPrivateTemplateFab />}\n />;\n};\n","import { List, Paper, } from \"@mui/material\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { WgerContainerRightSidebar } from \"components/Core/Widgets/Container\";\nimport { OverviewEmpty } from \"components/Core/Widgets/OverviewEmpty\";\nimport { AddPublicTemplateFab } from \"components/WorkoutRoutines/Overview/Fab\";\nimport { RoutineList } from \"components/WorkoutRoutines/Overview/RoutineOverview\";\nimport { usePublicRoutinesShallowQuery } from \"components/WorkoutRoutines/queries\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { WgerLink } from \"utils/url\";\n\n\nexport const PublicTemplateOverview = () => {\n const routineQuery = usePublicRoutinesShallowQuery();\n const [t] = useTranslation();\n\n if (routineQuery.isLoading) {\n return <LoadingPlaceholder />;\n }\n\n\n return <WgerContainerRightSidebar\n title={t(\"routines.publicTemplates\")}\n mainContent={<>\n {routineQuery.data!.length === 0\n ? <OverviewEmpty />\n : <Paper>\n <List sx={{ py: 0 }} key={'abc'}>\n {routineQuery.data!.map(r => <RoutineList\n routine={r}\n linkDestination={WgerLink.TEMPLATE_DETAIL}\n showTemplateChip={false}\n key={r.id} />\n )}\n </List>\n </Paper>}\n </>}\n fab={<AddPublicTemplateFab />}\n />;\n};\n","import React from 'react';\n\nexport const About = () => {\n return (\n <div>\n About Page\n </div>\n );\n};","import { Autocomplete, Chip, TextField } from \"@mui/material\";\nimport { useField } from \"formik\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\nexport function ExerciseAliases(props: { fieldName: string }) {\n const [t] = useTranslation();\n const [field, meta, helpers] = useField(props.fieldName);\n\n return <Autocomplete\n multiple\n freeSolo\n id={props.fieldName}\n value={field.value}\n options={field.value}\n onChange={(event, newValue) => {\n helpers.setValue(newValue);\n }}\n renderValue={(value: readonly string[], getTagProps) => {\n return value.map((option: string, index: number) => (\n <Chip label={option} {...getTagProps({ index })} key={index} />\n ));\n }}\n onBlur={field.onBlur}\n renderInput={params => (\n <TextField\n {...params}\n id=\"exerciseAliases\"\n variant=\"standard\"\n label={t(\"exercises.alternativeNames\")}\n error={meta.touched && Boolean(meta.error)}\n helperText={meta.touched && meta.error}\n value={field.value}\n />\n )}\n />;\n}","import { Autocomplete, TextField } from \"@mui/material\";\nimport { useField } from \"formik\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\nexport function ExerciseEquipmentSelect(props: { fieldName: string, options: any[] }) {\n const [t] = useTranslation();\n const [field, meta, helpers] = useField(props.fieldName);\n\n return <Autocomplete\n multiple\n id={props.fieldName}\n options={props.options.map(e => e.id)}\n getOptionLabel={option => props.options.find(e => e.id === option)!.translatedName}\n {...field}\n onChange={(event, newValue) => {\n helpers.setValue(newValue);\n }}\n renderInput={params => (\n <TextField\n variant=\"standard\"\n label={t(\"exercises.equipment\")}\n value={field.value}\n {...params}\n />\n )}\n />;\n}","import { useTranslation } from \"react-i18next\";\nimport { TextField } from \"@mui/material\";\nimport React from \"react\";\nimport { useField } from \"formik\";\n\nexport function ExerciseName(props: { fieldName: string }) {\n const [t] = useTranslation();\n const [field, meta] = useField(props.fieldName);\n\n return <TextField\n fullWidth\n id={props.fieldName}\n label={t(\"name\")}\n variant=\"standard\"\n error={meta.touched && Boolean(meta.error)}\n helperText={meta.touched && meta.error}\n {...field}\n />;\n}","import { useTranslation } from \"react-i18next\";\nimport { FormControl, FormHelperText, InputLabel, Select } from \"@mui/material\";\nimport React from \"react\";\nimport { useField } from \"formik\";\n\nexport function ExerciseSelect(props: { fieldName: string, options: any }) {\n const [t] = useTranslation();\n const [field, meta] = useField(props.fieldName);\n\n return <FormControl fullWidth>\n <InputLabel id=\"label-category\">{t(\"category\")}</InputLabel>\n <Select\n labelId=\"label-category\"\n id=\"category\"\n label={t(\"category\")}\n error={meta.touched && Boolean(meta.error)}\n {...field}\n >\n {props.options}\n </Select>\n {\n meta.touched\n && Boolean(meta.error)\n && <FormHelperText error>{meta.error}</FormHelperText>\n }\n </FormControl>;\n}","import i18n from 'i18next';\nimport * as yup from \"yup\";\n\nconst MIN_CHAR_NAME = 5;\nconst MAX_CHAR_NAME = 40;\n\nconst MIN_DESC_LENGTH = 40;\n\nconst MIN_NOTE_LENGTH = 15;\n\n\nexport const nameValidator = () => yup\n .string()\n .min(MIN_CHAR_NAME, i18n.t(\"forms.minLength\", { 'chars': MIN_CHAR_NAME }))\n .max(MAX_CHAR_NAME, i18n.t(\"forms.maxLength\", { 'chars': MAX_CHAR_NAME }))\n .required(i18n.t(\"forms.fieldRequired\"));\n\nexport const alternativeNameValidator = () => yup\n .array()\n .ensure()\n .compact()\n .of(\n yup\n .string()\n .min(MIN_CHAR_NAME, i18n.t(\"forms.minLength\", { 'chars': MIN_CHAR_NAME }))\n .max(MAX_CHAR_NAME, i18n.t(\"forms.maxLength\", { 'chars': MAX_CHAR_NAME }))\n );\n\nexport const descriptionValidator = () => yup\n .string()\n .min(MIN_DESC_LENGTH, i18n.t(\"forms.minLength\", { 'chars': MIN_DESC_LENGTH }))\n .required(i18n.t(\"forms.fieldRequired\"));\n\nexport const noteValidator = () => yup\n .array()\n .ensure()\n .compact()\n .of(\n yup\n .string()\n .min(MIN_NOTE_LENGTH, i18n.t(\"forms.minLength\", { 'chars': MIN_NOTE_LENGTH }))\n );\n\nexport const categoryValidator = () => yup\n .number()\n .required(i18n.t(\"forms.fieldRequired\"));","export enum SetNotificationState {\n SET_NOTIFICATION\n}\n\nexport enum SetExerciseSubmissionState {\n RESET,\n\n SET_NAME_EN,\n SET_ALIASES_EN,\n SET_DESCRIPTION_EN,\n SET_NOTES_EN,\n SET_CATEGORY,\n SET_EQUIPMENT,\n SET_PRIMARY_MUSCLES,\n SET_MUSCLES_SECONDARY,\n SET_VARIATION_ID,\n SET_NEW_VARIATION_BASE_ID,\n SET_LANGUAGE,\n SET_NAME_I18N,\n SET_ALIASES_I18N,\n SET_DESCRIPTION_I18N,\n SET_NOTES_I18N,\n SET_IMAGES\n}\n","import { NotificationState } from 'state';\nimport { Notification } from \"types\";\nimport { SetNotificationState } from \"./stateTypes\";\n\nexport type WeightAction = {\n type: SetNotificationState,\n payload: Notification\n}\n\n\nexport const setNotification = (notification: Notification): WeightAction => {\n return { type: SetNotificationState.SET_NOTIFICATION, payload: notification };\n};\n\n\nexport const notificationReducer = (state: NotificationState, action: WeightAction): NotificationState => {\n\n switch (action.type) {\n\n case SetNotificationState.SET_NOTIFICATION:\n return {\n ...state,\n notification: action.payload as Notification\n };\n\n default:\n return state;\n }\n};\n","import React, { createContext, useContext, useReducer } from \"react\";\nimport { notificationReducer, WeightAction } from \"state/notificationReducer\";\nimport { Notification } from \"types\";\n\nexport type NotificationState = {\n notification: Notification\n};\n\nconst initialState: NotificationState = {\n notification: { notify: false, message: \"\", severity: undefined, title: \"\", type: undefined }\n};\n\nexport const WeightStateContext = createContext<[NotificationState, React.Dispatch<WeightAction>]>([\n initialState,\n () => initialState\n]);\n\ntype StateProp = {\n children: React.ReactElement\n};\n\nexport const NotificationStateProvider: React.FC<StateProp> = ({ children }: StateProp) => {\n const [state, dispatch] = useReducer(notificationReducer, initialState);\n\n return (\n <WeightStateContext.Provider value={[state, dispatch]}>\n {children}\n </WeightStateContext.Provider>\n );\n};\n\nexport const useWeightStateValue = () => useContext(WeightStateContext);\n","import { ImageFormData } from \"components/Exercises/models/exercise\";\nimport { exerciseSubmissionInitialState, SetExerciseSubmissionState } from 'state';\nimport { ExerciseSubmissionAction, ExerciseSubmissionState } from \"state/exerciseSubmissionState\";\n\n\nexport const reset = (): ExerciseSubmissionAction => {\n return { type: SetExerciseSubmissionState.RESET };\n};\n\nexport const setNameEn = (name: string): ExerciseSubmissionAction => {\n return { type: SetExerciseSubmissionState.SET_NAME_EN, payload: name };\n};\nexport const setDescriptionEn = (description: string): ExerciseSubmissionAction => {\n return { type: SetExerciseSubmissionState.SET_DESCRIPTION_EN, payload: description };\n};\nexport const setNotesEn = (notes: string[]): ExerciseSubmissionAction => {\n return { type: SetExerciseSubmissionState.SET_NOTES_EN, payload: notes };\n};\nexport const setAlternativeNamesEn = (names: string[]): ExerciseSubmissionAction => {\n return { type: SetExerciseSubmissionState.SET_ALIASES_EN, payload: names };\n};\n\nexport const setNameI18n = (name: string): ExerciseSubmissionAction => {\n return { type: SetExerciseSubmissionState.SET_NAME_I18N, payload: name };\n};\nexport const setDescriptionI18n = (description: string): ExerciseSubmissionAction => {\n return { type: SetExerciseSubmissionState.SET_DESCRIPTION_I18N, payload: description };\n};\nexport const setNotesI18n = (notes: string[]): ExerciseSubmissionAction => {\n return { type: SetExerciseSubmissionState.SET_NOTES_I18N, payload: notes };\n};\nexport const setAlternativeNamesI18n = (names: string[]): ExerciseSubmissionAction => {\n return { type: SetExerciseSubmissionState.SET_ALIASES_I18N, payload: names };\n};\nexport const setCategory = (id: number | null): ExerciseSubmissionAction => {\n return { type: SetExerciseSubmissionState.SET_CATEGORY, payload: id };\n};\nexport const setEquipment = (ids: number[]): ExerciseSubmissionAction => {\n return { type: SetExerciseSubmissionState.SET_EQUIPMENT, payload: ids };\n};\nexport const setPrimaryMuscles = (ids: number[]): ExerciseSubmissionAction => {\n return { type: SetExerciseSubmissionState.SET_PRIMARY_MUSCLES, payload: ids };\n};\nexport const setSecondaryMuscles = (ids: number[]): ExerciseSubmissionAction => {\n return { type: SetExerciseSubmissionState.SET_MUSCLES_SECONDARY, payload: ids };\n};\nexport const setVariationId = (id: number | null): ExerciseSubmissionAction => {\n return { type: SetExerciseSubmissionState.SET_VARIATION_ID, payload: id };\n};\nexport const setNewBaseVariationId = (id: number | null): ExerciseSubmissionAction => {\n return { type: SetExerciseSubmissionState.SET_NEW_VARIATION_BASE_ID, payload: id };\n};\nexport const setLanguageId = (id: number | null): ExerciseSubmissionAction => {\n return { type: SetExerciseSubmissionState.SET_LANGUAGE, payload: id };\n};\nexport const setImages = (images: ImageFormData[]): ExerciseSubmissionAction => {\n return { type: SetExerciseSubmissionState.SET_IMAGES, payload: images };\n};\n\n\nexport const exerciseSubmissionReducer = (state: ExerciseSubmissionState, action: ExerciseSubmissionAction): ExerciseSubmissionState => {\n\n if (action === undefined) {\n return state;\n }\n\n switch (action.type) {\n case SetExerciseSubmissionState.RESET:\n return exerciseSubmissionInitialState;\n\n case SetExerciseSubmissionState.SET_NAME_EN:\n return {\n ...state,\n nameEn: action.payload as string\n };\n\n case SetExerciseSubmissionState.SET_DESCRIPTION_EN:\n return {\n ...state,\n descriptionEn: action.payload as string\n };\n\n case SetExerciseSubmissionState.SET_NOTES_EN:\n return {\n ...state,\n notesEn: action.payload as string[]\n };\n\n case SetExerciseSubmissionState.SET_ALIASES_EN:\n return {\n ...state,\n alternativeNamesEn: action.payload as string[]\n };\n\n case SetExerciseSubmissionState.SET_CATEGORY:\n return {\n ...state,\n category: action.payload as number\n };\n\n case SetExerciseSubmissionState.SET_EQUIPMENT:\n return {\n ...state,\n equipment: action.payload as number[]\n };\n\n case SetExerciseSubmissionState.SET_PRIMARY_MUSCLES:\n return {\n ...state,\n muscles: action.payload as number[]\n };\n\n case SetExerciseSubmissionState.SET_MUSCLES_SECONDARY:\n return {\n ...state,\n musclesSecondary: action.payload as number[]\n };\n\n case SetExerciseSubmissionState.SET_VARIATION_ID:\n return {\n ...state,\n variationId: action.payload as number\n };\n\n case SetExerciseSubmissionState.SET_NEW_VARIATION_BASE_ID:\n return {\n ...state,\n newVariationExerciseId: action.payload as number\n };\n\n case SetExerciseSubmissionState.SET_LANGUAGE:\n return {\n ...state,\n languageId: action.payload as number\n };\n\n case SetExerciseSubmissionState.SET_NAME_I18N:\n return {\n ...state,\n nameI18n: action.payload as string\n };\n\n case SetExerciseSubmissionState.SET_DESCRIPTION_I18N:\n return {\n ...state,\n descriptionI18n: action.payload as string\n };\n\n case SetExerciseSubmissionState.SET_NOTES_I18N:\n return {\n ...state,\n notesI18n: action.payload as string[]\n };\n\n case SetExerciseSubmissionState.SET_ALIASES_I18N:\n return {\n ...state,\n alternativeNamesI18n: action.payload as string[]\n };\n\n case SetExerciseSubmissionState.SET_IMAGES:\n return {\n ...state,\n images: action.payload as ImageFormData[]\n };\n\n default:\n return state;\n }\n};\n","import { ImageFormData } from \"components/Exercises/models/exercise\";\nimport React, { createContext, useContext, useReducer } from \"react\";\nimport { exerciseSubmissionReducer } from \"state/exerciseSubmissionReducer\";\nimport { SetExerciseSubmissionState } from \"state/stateTypes\";\n\nexport type ExerciseSubmissionAction = {\n type: SetExerciseSubmissionState,\n payload?: number | number[] | string | string[] | null | ImageFormData[],\n}\n\nexport type ExerciseSubmissionState = {\n nameEn: string;\n descriptionEn: string;\n alternativeNamesEn: string[];\n notesEn: string[];\n\n languageId: number | null;\n nameI18n: string;\n alternativeNamesI18n: string[];\n descriptionI18n: string;\n notesI18n: string[];\n\n category: number | null;\n muscles: number[];\n musclesSecondary: number[];\n equipment: number[];\n variationId: number | null;\n newVariationExerciseId: number | null;\n\n images: ImageFormData[];\n}\n\nexport const exerciseSubmissionInitialState: ExerciseSubmissionState = {\n category: null,\n muscles: [],\n musclesSecondary: [],\n variationId: null,\n newVariationExerciseId: null,\n languageId: null,\n equipment: [],\n\n nameEn: \"\",\n descriptionEn: \"\",\n alternativeNamesEn: [],\n notesEn: [],\n\n nameI18n: \"\",\n alternativeNamesI18n: [],\n descriptionI18n: \"\",\n notesI18n: [],\n\n images: [],\n};\n\n\nexport const ExerciseSubmissionStateContext = createContext<[ExerciseSubmissionState, React.Dispatch<ExerciseSubmissionAction>]>([\n exerciseSubmissionInitialState,\n () => exerciseSubmissionInitialState\n]);\n\ntype StateProp = {\n children: React.ReactElement\n};\n\nexport const ExerciseSubmissionStateProvider: React.FC<StateProp> = ({ children }: StateProp) => {\n const [state, dispatch] = useReducer(exerciseSubmissionReducer, exerciseSubmissionInitialState);\n\n return (\n <ExerciseSubmissionStateContext.Provider value={[state, dispatch]}>\n {children}\n </ExerciseSubmissionStateContext.Provider>\n );\n};\n\nexport const useExerciseSubmissionStateValue = () => useContext(ExerciseSubmissionStateContext);","import { Autocomplete, Box, Button, MenuItem, Stack, TextField, } from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport { LoadingWidget } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { StepProps } from \"components/Exercises/Add/AddExerciseStepper\";\nimport { ExerciseAliases } from \"components/Exercises/forms/ExerciseAliases\";\nimport { ExerciseEquipmentSelect } from \"components/Exercises/forms/ExerciseEquipmentSelect\";\nimport { ExerciseName } from \"components/Exercises/forms/ExerciseName\";\nimport { ExerciseSelect } from \"components/Exercises/forms/ExerciseSelect\";\nimport { alternativeNameValidator, categoryValidator, nameValidator } from \"components/Exercises/forms/yupValidators\";\nimport { useCategoriesQuery, useEquipmentQuery, useMusclesQuery, } from \"components/Exercises/queries\";\nimport { MuscleOverview } from \"components/Muscles/MuscleOverview\";\nimport { Form, Formik } from \"formik\";\nimport React, { useEffect, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useExerciseSubmissionStateValue } from \"state\";\nimport * as exerciseReducer from \"state/exerciseSubmissionReducer\";\nimport * as yup from \"yup\";\n\nexport const Step1Basics = ({ onContinue }: StepProps) => {\n const [t] = useTranslation();\n const [state, dispatch] = useExerciseSubmissionStateValue();\n const [primaryMuscles, setPrimaryMuscles] = useState<number[]>(state.muscles);\n const [secondaryMuscles, setSecondaryMuscles] = useState<number[]>(state.musclesSecondary);\n\n useEffect(() => {\n dispatch(exerciseReducer.setPrimaryMuscles(primaryMuscles));\n }, [dispatch, primaryMuscles]);\n\n useEffect(() => {\n dispatch(exerciseReducer.setSecondaryMuscles(secondaryMuscles));\n }, [dispatch, secondaryMuscles]);\n\n\n // Load data from server\n const categoryQuery = useCategoriesQuery();\n const musclesQuery = useMusclesQuery();\n const equipmentQuery = useEquipmentQuery();\n\n const validationSchema = yup.object({\n nameEn: nameValidator(),\n newAlternativeNameEn: alternativeNameValidator(),\n category: categoryValidator(),\n });\n\n return (\n <Formik\n initialValues={{\n nameEn: state.nameEn,\n newAlternativeNameEn: state.alternativeNamesEn,\n category: state.category !== null ? state.category : '',\n muscles: state.muscles,\n equipment: state.equipment,\n musclesSecondary: state.musclesSecondary,\n }}\n validationSchema={validationSchema}\n onSubmit={values => {\n dispatch(exerciseReducer.setNameEn(values.nameEn));\n dispatch(exerciseReducer.setCategory(values.category as number));\n dispatch(exerciseReducer.setAlternativeNamesEn(values.newAlternativeNameEn));\n dispatch(exerciseReducer.setEquipment(values.equipment));\n\n onContinue!();\n }}\n >\n {formik => {\n return (\n (<Form>\n <Stack spacing={2}>\n <ExerciseName fieldName={'nameEn'} />\n <ExerciseAliases fieldName={'newAlternativeNameEn'} />\n\n {categoryQuery.isLoading\n ? <Box> <LoadingWidget /> </Box>\n : <ExerciseSelect\n fieldName={'category'}\n options={categoryQuery.data!.map(category => (\n <MenuItem key={category.id} value={category.id}>\n {category.translatedName}\n </MenuItem>\n ))}\n />\n }\n\n {equipmentQuery.isLoading\n ? <Box> <LoadingWidget /> </Box>\n : <ExerciseEquipmentSelect fieldName={'equipment'} options={equipmentQuery.data!} />\n }\n\n {musclesQuery.isLoading\n ? <Box> <LoadingWidget /> </Box>\n : <>\n <Autocomplete\n multiple\n id=\"muscles\"\n options={musclesQuery.data!.map(m => m.id)}\n getOptionDisabled={(option) =>\n secondaryMuscles.includes(option)\n }\n getOptionLabel={option => musclesQuery.data!.find(m => m.id === option)!.getName()}\n value={primaryMuscles}\n onChange={(event, newValue) => {\n setPrimaryMuscles(newValue);\n }}\n renderInput={params => (\n <TextField\n {...params}\n variant=\"standard\"\n label={t(\"exercises.muscles\")}\n value={formik.getFieldProps(\"muscles\").value}\n onChange={e => {\n formik.setFieldValue(\n formik.getFieldProps(\"muscles\").name,\n e.target.value\n );\n }}\n />\n )}\n />\n <Autocomplete\n multiple\n id=\"secondary-muscles\"\n options={musclesQuery.data!.map(m => m.id)}\n getOptionDisabled={(option) =>\n primaryMuscles.includes(option)\n }\n getOptionLabel={option => musclesQuery.data!.find(m => m.id === option)!.getName()}\n value={secondaryMuscles}\n onChange={(event, newValue) => {\n setSecondaryMuscles(newValue);\n }}\n renderInput={params => (\n <TextField\n {...params}\n variant=\"standard\"\n label={t(\"exercises.secondaryMuscles\")}\n value={formik.getFieldProps(\"muscles\").value}\n />\n )}\n />\n </>\n }\n <Grid container>\n <Grid display=\"flex\" justifyContent={\"center\"} size={6}>\n <MuscleOverview\n primaryMuscles={primaryMuscles.map(m => musclesQuery.data!.find(mq => mq.id === m)!)}\n secondaryMuscles={secondaryMuscles.map(m => musclesQuery.data!.find(mq => mq.id === m)!)}\n isFront={true}\n />\n </Grid>\n <Grid display=\"flex\" justifyContent={\"center\"} size={6}>\n <MuscleOverview\n primaryMuscles={primaryMuscles.map(m => musclesQuery.data!.find(mq => mq.id === m)!)}\n secondaryMuscles={secondaryMuscles.map(m => musclesQuery.data!.find(mq => mq.id === m)!)}\n isFront={false}\n />\n </Grid>\n </Grid>\n </Stack>\n <Grid container>\n <Grid display=\"flex\" justifyContent={\"end\"} size={12}>\n <Box sx={{ mb: 2 }}>\n <div>\n <Button\n variant=\"contained\"\n type=\"submit\"\n sx={{ mt: 1, mr: 1 }}\n >\n {t('continue')}\n </Button>\n </div>\n </Box>\n </Grid>\n </Grid>\n </Form>)\n );\n }}\n </Formik>\n );\n};\n","import ExpandMoreIcon from '@mui/icons-material/ExpandMore';\nimport PhotoIcon from '@mui/icons-material/Photo';\nimport SearchIcon from '@mui/icons-material/Search';\nimport {\n Alert,\n AlertTitle,\n Avatar,\n AvatarGroup,\n Box,\n Button,\n InputAdornment,\n List,\n ListItem,\n ListItemButton,\n ListItemIcon,\n ListItemText,\n Paper,\n Switch,\n TextField,\n Typography\n} from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { StepProps } from \"components/Exercises/Add/AddExerciseStepper\";\nimport { Exercise } from \"components/Exercises/models/exercise\";\n\nimport { useExercisesQuery } from \"components/Exercises/queries\";\nimport React, { useEffect, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useExerciseSubmissionStateValue } from \"state\";\nimport { setNewBaseVariationId, setVariationId } from \"state/exerciseSubmissionReducer\";\n\n/*\n * Groups a list of objects by a property\n */\nfunction groupBy(list: any[], keyGetter: Function) {\n const map = new Map();\n list.forEach((item: any) => {\n const key = keyGetter(item);\n const collection = map.get(key);\n if (!collection) {\n map.set(key, [item]);\n } else {\n collection.push(item);\n }\n });\n return map;\n}\n\n// New component that displays the exercise info in a ListItem\nconst ExerciseInfoListItem = ({ exercises }: { exercises: Exercise[] }) => {\n const MAX_EXERCISE_IMAGES = 4;\n const MAX_EXERCISE_NAMES = 5;\n const variationId = exercises[0].variationId;\n const exerciseId = exercises[0].id;\n\n const [state, dispatch] = useExerciseSubmissionStateValue();\n const [showMore, setShowMore] = useState<boolean>(false);\n\n const [stateVariationId, setStateVariationId] = useState<number | null>(state.variationId);\n const [stateNewVariationId, setStateNewVariationId] = useState<number | null>(state.newVariationExerciseId);\n\n useEffect(() => {\n dispatch(setVariationId(stateVariationId));\n }, [dispatch, stateVariationId]);\n\n useEffect(() => {\n dispatch(setNewBaseVariationId(stateNewVariationId));\n }, [dispatch, stateNewVariationId]);\n\n\n const handleToggle = (variationId: number | null, newVariationId: number | null) => () => {\n\n if (variationId !== null) {\n newVariationId = null;\n if (variationId === state.variationId) {\n variationId = null;\n }\n } else {\n variationId = null;\n if (newVariationId === state.newVariationExerciseId) {\n newVariationId = null;\n }\n }\n\n setStateVariationId(variationId);\n setStateNewVariationId(newVariationId);\n };\n\n let isChecked;\n if (variationId === null) {\n isChecked = state.newVariationExerciseId === exerciseId;\n } else {\n isChecked = variationId === state.variationId;\n }\n\n return (\n <ListItem disableGutters>\n <ListItemButton onClick={handleToggle(variationId, exerciseId)}>\n <ListItemIcon>\n <AvatarGroup max={MAX_EXERCISE_IMAGES} spacing={\"small\"}>\n {exercises.map((base) =>\n base.mainImage\n ? <Avatar key={base.id} src={base.mainImage.url} />\n : <Avatar key={base.id} children={<PhotoIcon />} />\n )}\n </AvatarGroup>\n </ListItemIcon>\n <ListItemText\n primary={exercises.slice(0, showMore ? exercises.length : MAX_EXERCISE_NAMES).map((exercise) =>\n <p style={{ margin: 0 }} key={exercise.id}>{exercise.getTranslation().name}</p>\n )} />\n\n <Switch\n key={`variation-${variationId}`}\n edge=\"start\"\n checked={isChecked}\n tabIndex={-1}\n disableRipple\n />\n\n {!showMore && exercises.length > MAX_EXERCISE_NAMES\n ? <ExpandMoreIcon onMouseEnter={() => setShowMore(true)} />\n : null\n }\n\n </ListItemButton>\n </ListItem>\n );\n};\n\n\nexport const Step2Variations = ({ onContinue, onBack }: StepProps) => {\n const [t] = useTranslation();\n const exercisesQuery = useExercisesQuery();\n const [state, dispatch] = useExerciseSubmissionStateValue();\n\n const [searchTerm, setSearchTerms] = useState<string>('');\n\n // Group exercises by variationId\n let exercises: Exercise[] = [];\n let groupedExercises = new Map<number, Exercise[]>();\n if (exercisesQuery.isSuccess) {\n exercises = exercisesQuery.data;\n if (searchTerm !== '') {\n exercises = exercises.filter((base) => base.getTranslation().name.toLowerCase().includes(searchTerm.toLowerCase()));\n }\n }\n groupedExercises = groupBy(exercises.filter(b => b.variationId !== null), (b: Exercise) => b.variationId);\n\n return <>\n <Grid container>\n <Grid\n size={{\n xs: 12,\n sm: 6\n }}>\n <Typography>{t('exercises.whatVariationsExist')}</Typography>\n </Grid>\n <Grid\n display=\"flex\"\n justifyContent={\"end\"}\n size={{\n xs: 12,\n sm: 6\n }}>\n <TextField\n label={t('name')}\n helperText={t('exercises.filterVariations')}\n // defaultValue={state.nameEn}\n variant=\"standard\"\n onChange={(event) => setSearchTerms(event.target.value)}\n slotProps={{\n input: {\n startAdornment: (\n <InputAdornment position=\"start\">\n <SearchIcon />\n </InputAdornment>\n ),\n }\n }}\n />\n </Grid>\n </Grid>\n\n {exercisesQuery.isLoading\n ? <LoadingPlaceholder />\n : <Paper elevation={2} sx={{ mt: 2 }}>\n <List style={{ height: \"400px\", overflowY: \"scroll\" }}>\n {exercises.filter(b => b.variationId === null).map(exercise =>\n <ExerciseInfoListItem\n exercises={[exercise]}\n key={'exercise-' + exercise.id}\n />\n )}\n {[...groupedExercises.keys()].map(variationId =>\n <ExerciseInfoListItem\n exercises={groupedExercises.get(variationId)!}\n key={'variation-' + variationId}\n />\n )}\n </List>\n </Paper>\n }\n\n <Alert severity=\"info\" variant=\"filled\" sx={{ mt: 2 }}>\n <AlertTitle>{t(\"exercises.identicalExercise\")}</AlertTitle>\n {t('exercises.identicalExercisePleaseDiscard')}\n </Alert>\n\n <Grid container>\n <Grid display=\"flex\" justifyContent={\"end\"} size={12}>\n <Box sx={{ mb: 2 }}>\n <div>\n <Button\n disabled={false}\n onClick={onBack}\n sx={{ mt: 1, mr: 1 }}\n >\n {t('goBack')}\n </Button>\n <Button\n variant=\"contained\"\n onClick={onContinue}\n sx={{ mt: 1, mr: 1 }}\n >\n {t('continue')}\n </Button>\n </div>\n </Box>\n </Grid>\n </Grid>\n </>;\n};","import { useMutation } from \"@tanstack/react-query\";\nimport axios, { AxiosError } from \"axios\";\nimport { checkLanguage } from \"services\";\nimport { LanguageCheckInput } from \"services/languageCheck\";\n\n\n/*\n * Custom hook to check if an input string is in a particular language.\n * Either languageId or languageCode must be provided in the input.\n */\nexport function useLanguageCheckQuery() {\n return useMutation({\n mutationFn: async (data: LanguageCheckInput) => {\n try {\n const result = await checkLanguage(data);\n return { success: true, data: result };\n } catch (error) {\n if (axios.isAxiosError(error)) {\n const axiosError = error as AxiosError;\n // Bei 400 Fehler, geben wir die Fehlerdaten zurück anstatt den Fehler zu werfen\n if (axiosError.response?.status === 400) {\n return axiosError.response.data;\n }\n }\n // Bei anderen Fehlern werfen wir den Fehler erneut\n throw error;\n }\n },\n });\n}\n\n","import { FormControl, InputLabel, MenuItem, Select, SelectChangeEvent } from \"@mui/material\";\nimport { useCategoriesQuery } from \"components/Exercises/queries\";\nimport { useProfileQuery } from \"components/User/queries/profile\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { editExercise } from \"services\";\n\nexport function EditExerciseCategory(props: { exerciseId: number, initial: number }) {\n const { t } = useTranslation();\n const [value, setValue] = React.useState<string>(props.initial.toString());\n const categoryQuery = useCategoriesQuery();\n const profileQuery = useProfileQuery();\n\n const handleOnChange = async (e: SelectChangeEvent) => {\n setValue(e.target.value);\n await editExercise(props.exerciseId, {\n category: parseInt(e.target.value),\n\n // eslint-disable-next-line camelcase\n license_author: profileQuery.data!.username\n });\n };\n\n return categoryQuery.isSuccess\n ? <FormControl fullWidth>\n <InputLabel id=\"label-category\">{t(\"category\")}</InputLabel><Select\n labelId=\"label-category\"\n id=\"category\"\n label={t(\"category\")}\n value={value}\n onChange={handleOnChange}\n >\n {categoryQuery.data!.map(category => (\n <MenuItem key={category.id} value={category.id}>\n {category.translatedName}\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n : null;\n}","import { Autocomplete, TextField } from \"@mui/material\";\nimport { useEquipmentQuery } from \"components/Exercises/queries\";\nimport { useProfileQuery } from \"components/User/queries/profile\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { editExercise } from \"services\";\n\nexport function EditExerciseEquipment(props: { exerciseId: number, initial: number[] }) {\n const { t } = useTranslation();\n const [value, setValue] = React.useState<number[]>(props.initial);\n const equipmentQuery = useEquipmentQuery();\n const profileQuery = useProfileQuery();\n\n const handleOnChange = async (newValue: number[]) => {\n setValue(newValue);\n\n // eslint-disable-next-line camelcase\n await editExercise(props.exerciseId, { equipment: newValue, license_author: profileQuery.data!.username });\n };\n\n return equipmentQuery.isSuccess\n ? <Autocomplete\n multiple\n value={value}\n options={equipmentQuery.data.map(e => e.id)}\n getOptionLabel={option => equipmentQuery.data.find(e => e.id === option)!.translatedName}\n onChange={(event, newValue) => handleOnChange(newValue)}\n renderInput={params => (\n <TextField\n variant=\"standard\"\n label={t(\"exercises.equipment\")}\n value={value}\n {...params}\n />\n )}\n />\n : null;\n}","import React from 'react';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol */\r\n\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\ntypeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\n\nfunction autoconfigureTextDirection(el) {\n if (el) {\n var text = el.textContent;\n var rtlPattern = /[\\u0591-\\u07FF\\uFB1D-\\uFDFD\\uFE70-\\uFEFC]/;\n el.style.direction = text && rtlPattern.test(text[0]) ? 'rtl' : 'ltr';\n }\n}\nfunction cls() {\n var classNames = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n classNames[_i] = arguments[_i];\n }\n return classNames.filter(Boolean).join(' ');\n}\nfunction getSelectedNode() {\n if (document.selection) {\n return document.selection.createRange().parentElement();\n }\n var selection = window.getSelection();\n if (selection && selection.rangeCount > 0) {\n return selection.getRangeAt(0).startContainer.parentNode || undefined;\n }\n return undefined;\n}\nfunction normalizeHtml(str) {\n return typeof str === 'string'\n ? str.replace(/&nbsp;|\\u202F|\\u00A0/g, ' ').replace(/<br \\/>/g, '<br>')\n : String(str);\n}\nfunction replaceCaret(el) {\n // Place the caret at the end of the element\n var target = document.createTextNode('');\n el.appendChild(target);\n // do not move caret if element was not focused\n var isTargetFocused = document.activeElement === el;\n if (target !== null && target.nodeValue !== null && isTargetFocused) {\n var sel = window.getSelection();\n if (sel !== null) {\n var range = document.createRange();\n range.setStart(target, target.nodeValue.length);\n range.collapse(true);\n sel.removeAllRanges();\n sel.addRange(range);\n }\n if (el instanceof HTMLElement)\n el.focus();\n }\n}\nfunction setForwardRef(el, ref) {\n if (typeof ref === 'function') {\n ref(el);\n }\n else if (typeof ref === 'object' && ref) {\n // eslint-disable-next-line no-param-reassign\n ref.current = el;\n }\n}\n\n/**\n * Based on https://github.com/lovasoa/react-contenteditable\n * A simple component for a html element with editable contents.\n */\nvar ContentEditable = React.memo(React.forwardRef(function ContentEditable(_a, ref) {\n var \n // Some properties are used here only as useMemo dependencies\n className = _a.className, disabled = _a.disabled, tagName = _a.tagName, _b = _a.value, value = _b === void 0 ? '' : _b, placeholder = _a.placeholder, rest = __rest(_a, [\"className\", \"disabled\", \"tagName\", \"value\", \"placeholder\"]);\n var elRef = React.useRef(null);\n var htmlRef = React.useRef(value);\n var restRef = React.useRef(rest);\n React.useEffect(function () {\n restRef.current = rest;\n var el = elRef.current;\n if (el && normalizeHtml(htmlRef.current) !== normalizeHtml(value)) {\n htmlRef.current = value;\n el.innerHTML = value;\n replaceCaret(el);\n }\n });\n return React.useMemo(function () {\n function onSetRef($el) {\n elRef.current = $el;\n autoconfigureTextDirection($el);\n setForwardRef($el, ref);\n }\n function onChange(event) {\n var _a, _b;\n var el = elRef.current;\n if (!el) {\n return;\n }\n var elementHtml = el.innerHTML;\n if (elementHtml !== htmlRef.current) {\n (_b = (_a = restRef.current).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, __assign(__assign({}, event), { target: {\n value: elementHtml,\n name: rest.name,\n } }));\n }\n autoconfigureTextDirection(el);\n htmlRef.current = elementHtml;\n }\n var cssClass = cls('rsw-ce', className);\n return React.createElement(tagName || 'div', __assign(__assign({}, rest), { className: cssClass, contentEditable: !disabled, dangerouslySetInnerHTML: { __html: value }, onBlur: function (e) {\n return (restRef.current.onBlur || onChange)(e);\n }, onInput: onChange, onKeyDown: function (e) {\n return (restRef.current.onKeyDown || onChange)(e);\n }, onKeyUp: function (e) {\n return (restRef.current.onKeyUp || onChange)(e);\n }, placeholder: placeholder, ref: onSetRef }));\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [className, disabled, placeholder, tagName]);\n}));\n\nvar EditorContext = React.createContext(undefined);\nfunction EditorProvider(_a) {\n var children = _a.children;\n var _b = React.useState({\n htmlMode: false,\n update: update,\n }), state = _b[0], setState = _b[1];\n function update(attrs) {\n setState(function (prevState) {\n return __assign(__assign({}, prevState), attrs);\n });\n }\n return (React.createElement(EditorContext.Provider, { value: state }, children));\n}\nfunction useEditorState() {\n var context = React.useContext(EditorContext);\n if (!context) {\n throw new Error('You should wrap your component by EditorProvider');\n }\n return context;\n}\n\nvar e=[],t=[];function n(n,r){if(n&&\"undefined\"!=typeof document){var a,s=true===r.prepend?\"prepend\":\"append\",d=true===r.singleTag,i=\"string\"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName(\"head\")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement(\"style\");if(e.setAttribute(\"type\",\"text/css\"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a=\"prepend\"===s?\"afterbegin\":\"beforeend\";return i.insertAdjacentElement(a,e),e}}\n\nvar css = \".rsw-editor{border:1px solid #ddd;border-radius:.375rem;display:flex;flex-direction:column;min-height:100px;overflow:hidden}.rsw-ce{flex:1 1 auto;overflow:auto;padding:.5rem}.rsw-ce:focus{outline:1px solid #668}.rsw-ce[contentEditable=true]:empty:not(:focus):before{color:grey;content:attr(placeholder);pointer-events:none}.rsw-html{background:transparent;border:none;font-family:monospace,Courier New}.rsw-separator{align-self:stretch;border-right:1px solid #ddd;display:flex;margin:0 3px}.rsw-dd{box-sizing:border-box;outline:none}.rsw-btn{background:transparent;border:0;color:#222;cursor:pointer;font-size:1em;height:2em;outline:none;padding:0;width:2em}.rsw-btn:hover{background:#eaeaea}.rsw-btn[data-active=true]{background:#e0e0e0}.rsw-toolbar{align-items:center;background-color:#f5f5f5;border-bottom:1px solid #ddd;display:flex}\";\nn(css,{});\n\nvar Editor = React.forwardRef(function Editor(_a, ref) {\n var autoFocus = _a.autoFocus, children = _a.children, containerProps = _a.containerProps, onSelect = _a.onSelect, rest = __rest(_a, [\"autoFocus\", \"children\", \"containerProps\", \"onSelect\"]);\n var editorState = useEditorState();\n React.useEffect(function () {\n document.addEventListener('click', onClickOutside);\n return function () { return document.removeEventListener('click', onClickOutside); };\n });\n function onClickOutside(event) {\n var _a;\n if (event.target === editorState.$el) {\n return;\n }\n if ((_a = editorState.$el) === null || _a === void 0 ? void 0 : _a.contains(event.target)) {\n return;\n }\n editorState.update({ $selection: undefined });\n }\n function onTextSelect(event) {\n onSelect === null || onSelect === void 0 ? void 0 : onSelect(event);\n editorState.update({ $selection: getSelectedNode() });\n }\n function setContentEditableRef($el) {\n editorState.update({ $el: $el });\n setForwardRef($el, ref);\n if (autoFocus && $el && editorState.$el === undefined) {\n $el.focus();\n }\n }\n var cssClass = cls('rsw-editor', containerProps === null || containerProps === void 0 ? void 0 : containerProps.className);\n if (editorState.htmlMode) {\n return (React.createElement(\"div\", __assign({}, containerProps, { className: cssClass }),\n children,\n React.createElement(\"textarea\", __assign({}, rest, { className: \"rsw-ce rsw-html\" }))));\n }\n return (React.createElement(\"div\", __assign({}, containerProps, { className: cssClass }),\n children,\n React.createElement(ContentEditable, __assign({}, rest, { ref: setContentEditableRef, onSelect: onTextSelect }))));\n});\n\nfunction OrderedListIcon() {\n return (React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"20\", height: \"20\", viewBox: \"0 0 24 24\", style: { verticalAlign: 'text-top' } },\n React.createElement(\"path\", { fill: \"currentColor\", d: \"M6.99938 12.998v-2H20.9994v2H6.99938zm0 6.0001v-2H20.9994v2H6.99938zm0-12.00001v-2H20.9994v2H6.99938zm-4 1v-3h-1v-1h2v4h-1zm-1 9.00001v-1h3v4h-3v-1h2v-.5h-1v-1h1v-.5h-2zM4.25 10c.41421 0 .75.3358.75.75 0 .2024-.08017.3861-.2105.521L3.11983 13H5v1H2v-.9218L4 11H2v-1h2.25z\" })));\n}\n\nfunction UnorderedListIcon() {\n return (React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"20\", height: \"20\", viewBox: \"0 0 24 24\", style: { verticalAlign: 'text-top' } },\n React.createElement(\"path\", { fill: \"currentColor\", d: \"M7 5h14v2H7V5zm0 8v-2h14v2H7zM4 4.50001c.83 0 1.5.66992 1.5 1.5 0 .83007-.67 1.5-1.5 1.5s-1.5-.66993-1.5-1.5c0-.83008.67-1.5 1.5-1.5zM4 10.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zM7 19v-2h14v2H7zm-3-2.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z\" })));\n}\n\nvar BtnBold = createButton('Bold', '𝐁', 'bold');\nvar BtnBulletList = createButton('Bullet list', React.createElement(UnorderedListIcon, null), 'insertUnorderedList');\nvar BtnClearFormatting = createButton('Clear formatting', 'T̲ₓ', 'removeFormat');\nvar BtnItalic = createButton('Italic', '𝑰', 'italic');\nvar BtnStrikeThrough = createButton('Strike through', React.createElement(\"s\", null, \"ab\"), 'strikeThrough');\nvar BtnLink = createButton('Link', '🔗', function (_a) {\n var $selection = _a.$selection;\n if (($selection === null || $selection === void 0 ? void 0 : $selection.nodeName) === 'A') {\n document.execCommand('unlink');\n }\n else {\n // eslint-disable-next-line no-alert\n document.execCommand('createLink', false, prompt('URL', '') || undefined);\n }\n});\nvar BtnNumberedList = createButton('Numbered list', React.createElement(OrderedListIcon, null), 'insertOrderedList');\nvar BtnRedo = createButton('Redo', '↷', 'redo');\nvar BtnUnderline = createButton('Underline', React.createElement(\"span\", { style: { textDecoration: 'underline' } }, \"\\uD835\\uDC14\"), 'underline');\nvar BtnUndo = createButton('Undo', '↶', 'undo');\nfunction createButton(title, content, command) {\n ButtonFactory.displayName = title.replace(/\\s/g, '');\n return ButtonFactory;\n function ButtonFactory(props) {\n var editorState = useEditorState();\n var $el = editorState.$el;\n var isElFocused = function () { return Boolean($el === null || $el === void 0 ? void 0 : $el.contains(document.activeElement)); };\n var active = false;\n if (typeof command === 'string') {\n active = isElFocused() && document.queryCommandState(command);\n }\n function onAction(e) {\n e.preventDefault();\n if (!isElFocused()) {\n $el === null || $el === void 0 ? void 0 : $el.focus();\n }\n if (typeof command === 'function') {\n command(editorState);\n }\n else {\n document.execCommand(command);\n }\n }\n if (editorState.htmlMode) {\n return null;\n }\n return (React.createElement(\"button\", __assign({ className: \"rsw-btn\", \"data-active\": active, onMouseDown: onAction, tabIndex: -1, title: title, type: \"button\" }, props), content));\n }\n}\n\nvar BtnStyles = createDropdown('Styles', [\n ['Normal', 'formatBlock', 'DIV'],\n ['𝗛𝗲𝗮𝗱𝗲𝗿 𝟭', 'formatBlock', 'H1'],\n ['Header 2', 'formatBlock', 'H2'],\n ['𝙲𝚘𝚍𝚎', 'formatBlock', 'PRE'],\n]);\nfunction createDropdown(title, items) {\n DropdownFactory.displayName = title;\n return DropdownFactory;\n function DropdownFactory(props) {\n var editorState = useEditorState();\n var $el = editorState.$el, $selection = editorState.$selection, htmlMode = editorState.htmlMode;\n if (htmlMode) {\n return null;\n }\n var activeIndex = items.findIndex(function (item) { return item[1] === 'formatBlock' && ($selection === null || $selection === void 0 ? void 0 : $selection.nodeName) === item[2]; });\n return (React.createElement(Dropdown, __assign({}, props, { items: items, onChange: onChange, selected: activeIndex, tabIndex: -1, title: title })));\n function onChange(e) {\n var target = e.target;\n var selectedValue = target.value;\n var selectedIndex = parseInt(selectedValue, 10);\n var _a = items[selectedIndex] || [], command = _a[1], commandArgument = _a[2];\n e.preventDefault();\n if (document.activeElement !== $el) {\n $el === null || $el === void 0 ? void 0 : $el.focus();\n }\n if (typeof command === 'function') {\n command(editorState);\n }\n else if (command) {\n document.execCommand(command, false, commandArgument);\n }\n setTimeout(function () { return (target.value = selectedValue); }, 10);\n }\n }\n}\nfunction Dropdown(_a) {\n var items = _a.items, selected = _a.selected, inputProps = __rest(_a, [\"items\", \"selected\"]);\n return (React.createElement(\"select\", __assign({ className: \"rsw-dd\" }, inputProps, { value: selected }),\n React.createElement(\"option\", { hidden: true }, inputProps.title),\n items.map(function (item, index) { return (React.createElement(\"option\", { key: item[2], value: index }, item[0])); })));\n}\n\nfunction HtmlButton(_a) {\n var rest = __rest(_a, []);\n var editorState = useEditorState();\n function onClick() {\n editorState.update({\n htmlMode: !editorState.htmlMode,\n });\n }\n return (React.createElement(\"button\", __assign({ className: \"rsw-btn\", \"data-active\": editorState.htmlMode, onClick: onClick, tabIndex: -1, title: \"HTML mode\", type: \"button\" }, rest), \"</>\"));\n}\n\nfunction Separator(props) {\n var editorState = useEditorState();\n if (editorState.htmlMode) {\n return null;\n }\n return React.createElement(\"div\", __assign({ className: \"rsw-separator\" }, props));\n}\n\nfunction Toolbar(props) {\n return React.createElement(\"div\", __assign({ className: \"rsw-toolbar\" }, props));\n}\n\nvar DefaultEditor = React.forwardRef(function DefaultEditor(props, ref) {\n return (React.createElement(EditorProvider, null,\n React.createElement(Editor, __assign({}, props, { ref: ref }), props.children || (React.createElement(Toolbar, null,\n React.createElement(BtnUndo, null),\n React.createElement(BtnRedo, null),\n React.createElement(Separator, null),\n React.createElement(BtnBold, null),\n React.createElement(BtnItalic, null),\n React.createElement(BtnUnderline, null),\n React.createElement(BtnStrikeThrough, null),\n React.createElement(Separator, null),\n React.createElement(BtnNumberedList, null),\n React.createElement(BtnBulletList, null),\n React.createElement(Separator, null),\n React.createElement(BtnLink, null),\n React.createElement(BtnClearFormatting, null),\n React.createElement(HtmlButton, null),\n React.createElement(Separator, null),\n React.createElement(BtnStyles, null))))));\n});\n\nexport { BtnBold, BtnBulletList, BtnClearFormatting, BtnItalic, BtnLink, BtnNumberedList, BtnRedo, BtnStrikeThrough, BtnStyles, BtnUnderline, BtnUndo, ContentEditable, DefaultEditor, Dropdown, Editor, EditorContext, EditorProvider, HtmlButton, Separator, Toolbar, createButton, createDropdown, DefaultEditor as default, useEditorState };\n//# sourceMappingURL=index.es.mjs.map\n","import React from \"react\";\nimport { useField } from \"formik\";\nimport { FormHelperText } from \"@mui/material\";\nimport {\n BtnBold,\n BtnBulletList,\n BtnItalic,\n BtnNumberedList,\n BtnRedo,\n BtnUnderline,\n BtnUndo,\n Editor,\n EditorProps,\n EditorProvider,\n Separator,\n Toolbar,\n} from \"react-simple-wysiwyg\";\n\nexport function ExerciseEditor(props: EditorProps) {\n return (\n <EditorProvider>\n <Editor {...props}>\n <Toolbar>\n <BtnBold />\n <BtnItalic />\n <BtnUnderline />\n <Separator />\n <BtnBulletList />\n <BtnNumberedList />\n <Separator />\n <BtnUndo />\n <BtnRedo />\n { /* <HtmlButton /> */}\n </Toolbar>\n </Editor>\n </EditorProvider>\n );\n}\n\n\nexport function ExerciseDescription(props: { fieldName: string }) {\n\n const [field, meta, helpers] = useField(props.fieldName);\n\n return <>\n <div data-testid={'jodit-editor'}>\n <ExerciseEditor\n value={field.value}\n onChange={(newValue) => helpers.setValue(newValue.target.value)}\n />\n </div>\n {meta.touched\n && Boolean(meta.error)\n && <FormHelperText error>{meta.error}</FormHelperText>\n }\n </>;\n}","import AddCircleIcon from '@mui/icons-material/AddCircle';\nimport { Box, Button, Card, CardActions, CardMedia } from \"@mui/material\";\nimport { FormQueryErrorsSnackbar } from \"components/Core/Widgets/FormError\";\nimport { ExerciseImage } from \"components/Exercises/models/image\";\nimport { useAddExerciseImageQuery, useDeleteExerciseImageQuery } from \"components/Exercises/queries\";\nimport { useProfileQuery } from \"components/User/queries/profile\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\ntype ImageCardProps = {\n exerciseId: number;\n image: ExerciseImage;\n canDelete: boolean\n};\n\nexport const ImageEditCard = ({ exerciseId, image, canDelete }: ImageCardProps) => {\n const [t] = useTranslation();\n const deleteImageQuery = useDeleteExerciseImageQuery(exerciseId);\n\n return <Card>\n <CardMedia\n component=\"img\"\n image={image.url}\n sx={{ height: 120 }}\n alt=\"\"\n />\n <CardActions>\n {canDelete &&\n <Button\n color=\"primary\"\n onClick={() => deleteImageQuery.mutate(image.id)}\n >\n {t('delete')}\n </Button>}\n </CardActions>\n </Card>;\n};\n\ntype AddImageCardProps = {\n exerciseId: number;\n};\n\nexport const AddImageCard = ({ exerciseId }: AddImageCardProps) => {\n\n const [t] = useTranslation();\n const profileQuery = useProfileQuery();\n const addImageQuery = useAddExerciseImageQuery(exerciseId);\n\n const handleFileInputChange = async (e: React.ChangeEvent<HTMLInputElement>) => {\n if (!e.target.files?.length) {\n return;\n }\n const [uploadedFile] = e.target.files;\n if (profileQuery.isSuccess) {\n\n addImageQuery.mutate({\n exerciseId: exerciseId,\n image: uploadedFile,\n imageData: {\n url: '',\n file: uploadedFile,\n author: '',\n authorUrl: '',\n title: '',\n objectUrl: '',\n derivativeSourceUrl: '',\n style: ''\n },\n });\n }\n };\n\n return <>\n <Card>\n <CardMedia>\n <Box sx={{ backgroundColor: \"lightgray\", height: 120 }}\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\">\n <AddCircleIcon sx={{ fontSize: 80, color: \"gray\" }} />\n </Box>\n </CardMedia>\n <CardActions>\n <Button component=\"label\">\n {t('add')}\n <input\n style={{ display: \"none\" }}\n id=\"camera-input\"\n type=\"file\"\n accept=\"image/*\"\n capture=\"environment\"\n onChange={handleFileInputChange}\n />\n </Button>\n </CardActions>\n </Card>\n {addImageQuery.isError &&\n <FormQueryErrorsSnackbar mutationQuery={addImageQuery} />\n }\n </>;\n};\n","import { Autocomplete, TextField } from \"@mui/material\";\nimport { useMusclesQuery } from \"components/Exercises/queries\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { editExercise } from \"services\";\n\nexport function EditExerciseMuscle(props: {\n exerciseId: number,\n value: number[],\n setValue: React.Dispatch<React.SetStateAction<number[]>>,\n blocked: number[],\n isMain: boolean\n}) {\n const { t } = useTranslation();\n const musclesQuery = useMusclesQuery();\n\n const handleOnChange = async (newValue: number[]) => {\n props.setValue(newValue);\n // eslint-disable-next-line camelcase\n await editExercise(props.exerciseId, props.isMain ? { muscles: newValue } : { muscles_secondary: newValue });\n };\n\n return musclesQuery.isSuccess\n ? <Autocomplete\n multiple\n options={musclesQuery.data!.map(m => m.id)}\n getOptionDisabled={(option) => props.blocked.includes(option)}\n getOptionLabel={option => musclesQuery.data!.find(m => m.id === option)!.getName()}\n value={props.value}\n onChange={(event, newValue) => handleOnChange(newValue)}\n renderInput={params => (\n <TextField\n {...params}\n variant=\"standard\"\n label={t(props.isMain ? \"exercises.muscles\" : \"exercises.secondaryMuscles\")}\n value={props.value}\n />\n )}\n />\n : null;\n}","import AddCircleIcon from '@mui/icons-material/AddCircle';\nimport { Box, Button, Card, CardActions, CardMedia } from \"@mui/material\";\nimport { ExerciseVideo } from \"components/Exercises/models/video\";\nimport { useProfileQuery } from \"components/User/queries/profile\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { deleteExerciseVideo, postExerciseVideo } from \"services\";\n\ntype VideoCardProps = {\n video: ExerciseVideo;\n canDelete: boolean;\n};\n\nexport const VideoEditCard = ({ video, canDelete }: VideoCardProps) => {\n const [t] = useTranslation();\n\n return <Card>\n <CardMedia\n component={'video'}\n src={video.url}\n sx={{ height: 120 }}\n controls\n preload=\"metadata\"\n />\n <CardActions>\n {canDelete &&\n <Button\n color=\"primary\"\n onClick={() => deleteExerciseVideo(video.id)}\n >\n {t('delete')}\n </Button>\n }\n </CardActions>\n </Card>;\n};\n\n\ntype AddVideoCardProps = {\n exerciseId: number;\n};\n\nexport const AddVideoCard = ({ exerciseId }: AddVideoCardProps) => {\n\n const [t] = useTranslation();\n const profileQuery = useProfileQuery();\n\n const handleFileInputChange = async (e: React.ChangeEvent<HTMLInputElement>) => {\n if (!e.target.files?.length) {\n return;\n }\n const [uploadedFile] = e.target.files;\n if (profileQuery.isSuccess) {\n await postExerciseVideo(exerciseId, profileQuery.data!.username, uploadedFile);\n }\n };\n\n return <Card>\n <CardMedia>\n <Box sx={{ backgroundColor: \"lightgray\", height: 120 }}\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\">\n <AddCircleIcon sx={{ fontSize: 80, color: \"gray\" }} />\n </Box>\n </CardMedia>\n <CardActions>\n <Button component=\"label\">\n {t('add')}\n <input\n style={{ display: \"none\" }}\n id=\"camera-input\"\n type=\"file\"\n accept=\"video/*\"\n capture=\"environment\"\n onChange={handleFileInputChange}\n />\n </Button>\n </CardActions>\n </Card>;\n};\n","import axios from 'axios';\nimport { makeHeader, makeUrl } from \"utils/url\";\n\nexport const PERMISSION_PATH = 'check-permission';\n\n\n/*\n * Checks if the user has a given permission\n */\nexport const checkPermission = async (permission: string): Promise<boolean> => {\n const url = makeUrl(PERMISSION_PATH, { query: { 'permission': permission } });\n const response = await axios.get(\n url,\n { headers: makeHeader() }\n );\n\n // User is logged out, etc.\n if (response.status === 400) {\n return false;\n }\n\n return response.data.result;\n};\n\n\n\n","import { useQuery } from \"@tanstack/react-query\";\nimport { WgerPermissions } from \"permissions\";\nimport { checkPermission } from \"services/permission\";\nimport { QUERY_PERMISSION } from \"utils/consts\";\n\nexport function usePermissionQuery(permission: WgerPermissions) {\n return useQuery({\n queryKey: [QUERY_PERMISSION, permission],\n queryFn: () => checkPermission(permission.valueOf())\n });\n}","export enum WgerPermissions {\n // Exercises\n EDIT_EXERCISE = 'exercises.change_exercise',\n DELETE_EXERCISE = 'exercises.delete_exercise',\n\n ADD_IMAGE = 'exercises.add_exerciseimage',\n EDIT_IMAGE = 'exercises.change_exerciseimage',\n DELETE_IMAGE = 'exercises.delete_exerciseimage',\n\n ADD_VIDEO = 'exercises.add_exercisevideo',\n EDIT_VIDEO = 'exercises.change_exercisevideo',\n DELETE_VIDEO = 'exercises.delete_exercisevideo',\n}\n","import CloseIcon from '@mui/icons-material/Close';\nimport { Alert, Box, Button, IconButton, Typography } from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport { LoadingWidget } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { PaddingBox } from \"components/Exercises/Detail/ExerciseDetails\";\nimport { EditExerciseCategory } from \"components/Exercises/forms/Category\";\nimport { EditExerciseEquipment } from \"components/Exercises/forms/Equipment\";\nimport { ExerciseAliases } from \"components/Exercises/forms/ExerciseAliases\";\nimport { ExerciseDescription } from \"components/Exercises/forms/ExerciseDescription\";\nimport { ExerciseName } from \"components/Exercises/forms/ExerciseName\";\nimport { AddImageCard, ImageEditCard } from \"components/Exercises/forms/ImageCard\";\nimport { EditExerciseMuscle } from \"components/Exercises/forms/Muscle\";\nimport { AddVideoCard, VideoEditCard } from \"components/Exercises/forms/VideoCard\";\nimport {\n alternativeNameValidator,\n descriptionValidator,\n nameValidator\n} from \"components/Exercises/forms/yupValidators\";\nimport { Language } from \"components/Exercises/models/language\";\nimport { Translation } from \"components/Exercises/models/translation\";\nimport {\n useAddTranslationQuery,\n useEditTranslationQuery,\n useExerciseQuery,\n useMusclesQuery\n} from \"components/Exercises/queries\";\nimport { MuscleOverview } from \"components/Muscles/MuscleOverview\";\nimport { usePermissionQuery } from \"components/User/queries/permission\";\nimport { useProfileQuery } from \"components/User/queries/profile\";\nimport { Form, Formik } from \"formik\";\nimport { WgerPermissions } from \"permissions\";\nimport React, { useEffect, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { deleteAlias, postAlias } from \"services\";\nimport * as yup from \"yup\";\n\nexport interface ViewProps {\n exerciseId: number;\n language: Language;\n}\n\nexport const ExerciseDetailEdit = ({ exerciseId, language }: ViewProps) => {\n const [t] = useTranslation();\n\n const [alertIsVisible, setAlertIsVisible] = useState(false);\n const [mainMuscles, setMainMuscles] = useState<number[]>([]);\n const [secondaryMuscles, setSecondaryMuscles] = useState<number[]>([]);\n\n const exerciseQuery = useExerciseQuery(exerciseId);\n const addTranslationQuery = useAddTranslationQuery(exerciseId);\n const editTranslationQuery = useEditTranslationQuery(exerciseId);\n const addImagePermissionQuery = usePermissionQuery(WgerPermissions.ADD_IMAGE);\n const deleteImagePermissionQuery = usePermissionQuery(WgerPermissions.DELETE_IMAGE);\n const addVideoPermissionQuery = usePermissionQuery(WgerPermissions.ADD_VIDEO);\n const deleteVideoPermissionQuery = usePermissionQuery(WgerPermissions.DELETE_VIDEO);\n const editExercisePermissionQuery = usePermissionQuery(WgerPermissions.EDIT_EXERCISE);\n const musclesQuery = useMusclesQuery();\n const profileQuery = useProfileQuery();\n\n const exercise = exerciseQuery.data!;\n\n useEffect(() => {\n if (exerciseQuery.data !== undefined) {\n setMainMuscles(exercise.muscles.map((m) => m.id));\n setSecondaryMuscles(exercise.musclesSecondary.map((m) => m.id));\n }\n }, [exerciseQuery.data]);\n\n\n if (exerciseQuery.isLoading || musclesQuery.isLoading || exerciseQuery.isLoading || profileQuery.isLoading || addImagePermissionQuery.isLoading || deleteImagePermissionQuery.isLoading || addVideoPermissionQuery.isLoading || deleteVideoPermissionQuery.isLoading || editExercisePermissionQuery.isLoading) {\n return <LoadingWidget />;\n }\n\n const translationFromBase = exercise.getTranslation(language);\n const isNewTranslation = language.id !== translationFromBase?.language;\n const exerciseTranslation =\n isNewTranslation\n ? new Translation(null, null, '', '', language.id)\n : translationFromBase;\n const exerciseEnglish = exercise.getTranslation();\n\n const validationSchema = yup.object({\n name: nameValidator(),\n alternativeNames: alternativeNameValidator(),\n description: descriptionValidator()\n });\n\n return <>\n <Formik\n initialValues={{\n name: exerciseTranslation.name,\n alternativeNames: exerciseTranslation.aliases.map(a => a.alias),\n description: exerciseTranslation.description,\n }}\n enableReinitialize\n validationSchema={validationSchema}\n onSubmit={async values => {\n\n // Exercise translation\n const translation = exerciseTranslation.id\n ? await editTranslationQuery.mutateAsync({\n id: exerciseTranslation.id,\n exerciseId: exercise.id!,\n languageId: language.id,\n name: values.name,\n description: values.description,\n author: ''\n })\n : await addTranslationQuery.mutateAsync({\n exerciseId: exercise.id!,\n languageId: language.id,\n name: values.name,\n description: values.description,\n author: profileQuery.data!.username\n });\n\n // Edit aliases (this is currently really hacky)\n // Since we only get the string from the form, we need to compare them to the list of\n // current aliases and decide which stay the same and which will be updated (which we\n // can't directly do, so the old one gets deleted and a new one created)\n\n // https://stackoverflow.com/questions/1187518/\n const aliasOrig = exerciseTranslation.aliases.map(a => a.alias);\n const aliasNew = values.alternativeNames;\n const aliasToCreate = aliasNew.filter(x => !aliasOrig.includes(x));\n const aliasToDelete = aliasOrig.filter(x => !aliasNew.includes(x));\n\n aliasToCreate.forEach(alias => {\n postAlias(translation.id!, alias);\n });\n\n aliasToDelete.forEach(alias => {\n deleteAlias(exerciseTranslation.aliases.find(a => a.alias === alias)!.id);\n });\n\n // Notify the user\n setAlertIsVisible(true);\n }}\n >\n <Form>\n <Grid container spacing={1}>\n {alertIsVisible &&\n <Grid size={12}>\n <Alert\n severity=\"success\"\n action={\n <IconButton\n aria-label=\"close\"\n size=\"small\"\n color=\"inherit\"\n onClick={() => {\n setAlertIsVisible(false);\n }}\n >\n <CloseIcon fontSize=\"inherit\" />\n </IconButton>\n }\n >\n {t('exercises.successfullyUpdated')}\n </Alert>\n <PaddingBox />\n </Grid>}\n\n <Grid size={6}>\n <Typography variant={'h5'}>{t('English')}</Typography>\n </Grid>\n <Grid size={6}>\n <Typography variant={'h5'}>\n {language.nameLong} ({language.nameShort})\n </Typography>\n </Grid>\n <Grid size={12}>\n <PaddingBox />\n <Typography variant={'h6'}>{t('name')}</Typography>\n </Grid>\n <Grid size={6}>\n {exerciseEnglish.name}\n <ul>\n {exerciseEnglish.aliases.map((alias) => (\n <li key={alias.id}>{alias.alias}</li>\n ))}\n </ul>\n </Grid>\n <Grid size={6}>\n <Box mb={2}>\n <ExerciseName fieldName={'name'} />\n </Box>\n <ExerciseAliases fieldName={'alternativeNames'} />\n </Grid>\n <Grid size={12}>\n <PaddingBox />\n </Grid>\n\n\n <Grid size={12}>\n <Typography variant={'h6'}>{t('exercises.description')}</Typography>\n </Grid>\n <Grid size={{ xs: 12, md: 6 }}>\n <div dangerouslySetInnerHTML={{ __html: exerciseEnglish.description! }} />\n </Grid>\n <Grid size={{ xs: 12, md: 6 }}>\n <ExerciseDescription fieldName={\"description\"} />\n </Grid>\n\n {editExercisePermissionQuery.data && <>\n <Grid size={12}>\n <PaddingBox />\n </Grid>\n <Grid size={{ xs: 12, md: 6 }}>\n <EditExerciseCategory exerciseId={exercise.id!} initial={exercise.category.id} />\n </Grid>\n <Grid size={{ xs: 12, md: 6 }}>\n <EditExerciseEquipment exerciseId={exercise.id!}\n initial={exercise.equipment.map(e => e.id)} />\n </Grid>\n </>}\n\n {/*\n <Grid item xs={12}>\n <PaddingBox />\n </Grid>\n\n <Grid item xs={12}>\n <Typography variant={'h6'}>{t('exercises.notes')}</Typography>\n </Grid>\n <Grid item sm={6}>\n <ul>\n {exerciseEnglish.notes.map((note: Note) => (\n <li key={note.id}>{note.note}</li>\n ))}\n </ul>\n </Grid>\n <Grid item sm={6}>\n <ul>\n {exerciseTranslation.notes.map((note: Note) => (\n <li key={note.id}>{note.note}</li>\n ))}\n </ul>\n </Grid>\n */}\n\n <Grid size={12}>\n <PaddingBox />\n <Button\n variant=\"contained\"\n type=\"submit\"\n sx={{ mt: 1, mr: 1 }}\n disabled={exerciseQuery.isLoading || addTranslationQuery.isPending || editTranslationQuery.isPending}\n >\n {t('save')}\n </Button>\n </Grid>\n </Grid>\n </Form>\n </Formik>\n\n {/* Images */}\n <PaddingBox />\n <Typography variant={'h6'}>{t('images')}</Typography>\n <Grid container spacing={2} mt={2}>\n {addImagePermissionQuery.data && <Grid key={'add'} size={{ md: 3 }}>\n <AddImageCard exerciseId={exercise.id!} />\n </Grid>}\n\n {exercise.images.map(img => (\n <Grid key={img.id} size={{ md: 3 }}>\n <ImageEditCard\n exerciseId={exercise.id!}\n image={img}\n canDelete={deleteImagePermissionQuery.data!}\n />\n </Grid>\n ))}\n </Grid>\n\n {/* Videos */}\n <PaddingBox />\n <Typography variant={'h6'}>{t('videos')}</Typography>\n <Grid container spacing={2} mt={2}>\n {addVideoPermissionQuery.data\n && <Grid key={'add'} size={{ md: 3 }}>\n <AddVideoCard exerciseId={exercise.id!} />\n </Grid>\n }\n\n {exercise.videos.map(video => (\n <Grid key={video.id} size={{ md: 3 }}>\n <VideoEditCard video={video} canDelete={deleteVideoPermissionQuery.data!} />\n </Grid>\n ))}\n </Grid>\n\n {/* Base data */}\n {editExercisePermissionQuery.data\n && <>\n <PaddingBox />\n <Typography variant={'h6'}>{t('exercises.muscles')}</Typography>\n <Grid container spacing={1} mt={2}>\n\n <Grid size={{ xs: 12, md: 6 }}>\n <EditExerciseMuscle\n exerciseId={exercise.id!}\n value={mainMuscles}\n setValue={setMainMuscles}\n blocked={secondaryMuscles}\n isMain\n />\n </Grid>\n <Grid size={{ xs: 12, md: 6 }}>\n <EditExerciseMuscle\n exerciseId={exercise.id!}\n value={secondaryMuscles}\n setValue={setSecondaryMuscles}\n blocked={mainMuscles}\n isMain={false}\n />\n </Grid>\n <Grid size={{ sm: 6 }} offset={{ md: 3 }}>\n <Grid container>\n <Grid display=\"flex\" justifyContent={\"center\"} size={6}>\n <MuscleOverview\n primaryMuscles={mainMuscles.map(m => musclesQuery.data!.find(mq => mq.id === m)!)}\n secondaryMuscles={secondaryMuscles.map(m => musclesQuery.data!.find(mq => mq.id === m)!)}\n isFront={true}\n />\n </Grid>\n <Grid display=\"flex\" justifyContent={\"center\"} size={6}>\n <MuscleOverview\n primaryMuscles={mainMuscles.map(m => musclesQuery.data!.find(mq => mq.id === m)!)}\n secondaryMuscles={secondaryMuscles.map(m => musclesQuery.data!.find(mq => mq.id === m)!)}\n isFront={false}\n />\n </Grid>\n </Grid>\n </Grid>\n </Grid>\n </>\n }\n </>;\n};\n","import { Card, CardMedia } from '@mui/material';\nimport Grid from '@mui/material/Grid';\nimport { ExerciseImage } from \"components/Exercises/models/image\";\nimport { ExerciseVideo } from \"components/Exercises/models/video\";\nimport React from 'react';\n\ntype SideGalleryProps = {\n mainImage: ExerciseImage | undefined;\n sideImages: ExerciseImage[];\n}\n\nexport const SideGallery = ({ mainImage, sideImages }: SideGalleryProps) => {\n\n return (\n (<Grid container spacing={1}>\n {mainImage && <Grid size={12}>\n <Card>\n <CardMedia\n component=\"img\"\n image={mainImage.url}\n alt=\"\"\n />\n </Card>\n </Grid>}\n {sideImages.map(img => (\n <Grid key={img.id} size={6}>\n <Card>\n <CardMedia\n component=\"img\"\n image={img.url}\n sx={{ height: 120 }}\n alt=\"\"\n />\n </Card>\n </Grid>\n ))}\n </Grid>)\n );\n};\n\ntype VideoGalleryProps = {\n videos: ExerciseVideo[]\n}\n\nexport const SideVideoGallery = ({ videos }: VideoGalleryProps) => {\n\n return (\n (<Grid container spacing={1}>\n {videos.map(video => (\n <Grid key={video.id} size={6}>\n <Card>\n <CardMedia\n component={'video'}\n src={video.url}\n sx={{ height: 120 }}\n controls\n muted\n preload=\"metadata\"\n />\n </Card>\n </Grid>\n ))}\n </Grid>)\n );\n};\n","import { useProfileQuery } from \"components/User/queries/profile\";\nimport { usePermissionQuery } from \"components/User/queries/permission\";\nimport { WgerPermissions } from \"permissions\";\n\nexport function useCanContributeExercises() {\n const profileQuery = useProfileQuery();\n const permissionQuery = usePermissionQuery(WgerPermissions.EDIT_EXERCISE);\n\n const result = { canContribute: false, anonymous: true, emailVerified: false, admin: false };\n\n if (profileQuery.isSuccess && permissionQuery.isSuccess) {\n\n // Profile is null, user is not logged in\n if (profileQuery.data === null) {\n return result;\n }\n\n result.anonymous = false;\n\n if (profileQuery.data?.emailVerified) {\n result.emailVerified = true;\n }\n\n if (permissionQuery.data) {\n result.admin = true;\n }\n\n if (result.admin || profileQuery.data?.isTrustworthy) {\n result.canContribute = true;\n }\n }\n return result;\n}","import { Box, Button, Divider, Typography } from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport { PaddingBox } from \"components/Exercises/Detail/ExerciseDetails\";\nimport { OverviewCard } from \"components/Exercises/Detail/OverviewCard\";\nimport { SideGallery, SideVideoGallery } from \"components/Exercises/Detail/SideGallery\";\nimport { Exercise } from \"components/Exercises/models/exercise\";\nimport { Language } from \"components/Exercises/models/language\";\nimport { Muscle } from \"components/Exercises/models/muscle\";\nimport { Note } from \"components/Exercises/models/note\";\nimport { MuscleOverview } from \"components/Muscles/MuscleOverview\";\nimport { useCanContributeExercises } from \"components/User/queries/contribute\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\n\nconst TranslateExerciseBanner = ({ setEditMode }: { setEditMode: (mode: boolean) => void }) => {\n const [t] = useTranslation();\n\n return (\n <Box\n mb={2}\n paddingY={2}\n sx={{\n width: \"100%\",\n backgroundColor: \"#ebebeb\",\n textAlign: \"center\",\n }}\n >\n <Typography variant={\"h5\"}>\n {t(\"exercises.exerciseNotTranslated\")}\n </Typography>\n\n <Typography gutterBottom variant=\"body1\" component=\"div\">\n {t(\"exercises.exerciseNotTranslatedBody\")}\n </Typography>\n\n <Button variant=\"contained\" onClick={() => setEditMode(true)}>\n {t(\"exercises.translateExerciseNow\")}\n </Button>\n\n </Box>\n );\n};\n\nexport interface ViewProps {\n exercise: Exercise\n variations: Exercise[],\n language: Language,\n setEditMode: (mode: boolean) => void\n}\n\nexport const ExerciseDetailView = ({\n exercise,\n variations,\n language,\n setEditMode\n }: ViewProps) => {\n const [t] = useTranslation();\n const contributeQuery = useCanContributeExercises();\n const currentTranslation = exercise.getTranslation(language);\n const isNewTranslation = language && language.id !== currentTranslation.language;\n\n return (\n <Grid container>\n {isNewTranslation\n && contributeQuery.canContribute\n && <Grid\n order={{ xs: 2, sm: 1 }}\n size={{\n xs: 12,\n sm: 7,\n md: 12\n }}>\n <TranslateExerciseBanner setEditMode={setEditMode} />\n </Grid>\n }\n <Grid\n order={{ xs: 2, sm: 1 }}\n size={{\n xs: 12,\n sm: 7,\n md: 8\n }}>\n\n {currentTranslation?.aliases.length > 0\n && <>\n <p>\n {t(\"exercises.alsoKnownAs\")} &nbsp;\n {currentTranslation?.aliases?.map(e => e.alias).join(\", \")}\n </p>\n <PaddingBox />\n </>}\n\n <Typography variant=\"h5\">{t(\"exercises.description\")}</Typography>\n <div\n dangerouslySetInnerHTML={{ __html: currentTranslation?.description! }} />\n <PaddingBox />\n\n {currentTranslation?.notes.length > 0 && <Typography variant=\"h5\">{t(\"exercises.notes\")}</Typography>}\n <ul>\n {currentTranslation?.notes.map((note: Note) => (\n <li key={note.id}>{note.note}</li>\n ))}\n </ul>\n <PaddingBox />\n\n <Typography variant=\"h5\">{t(\"exercises.muscles\")}</Typography>\n <Grid container>\n <Grid\n order={{ xs: 1 }}\n size={{\n xs: 6,\n md: 3\n }}>\n <MuscleOverview\n primaryMuscles={exercise.muscles}\n secondaryMuscles={exercise.musclesSecondary}\n isFront={true}\n />\n </Grid>\n <Grid\n order={{ xs: 2, md: 3 }}\n size={{\n xs: 6,\n md: 3\n }}>\n <h3>{t(\"exercises.primaryMuscles\")}</h3>\n <ul>\n {exercise.muscles.map((m: Muscle) => (\n <li key={m.id}>{m.getName()}</li>\n ))}\n </ul>\n </Grid>\n\n <Grid\n order={{ xs: 3, md: 2 }}\n size={{\n xs: 6,\n md: 3\n }}>\n <MuscleOverview\n primaryMuscles={exercise.muscles}\n secondaryMuscles={exercise.musclesSecondary}\n isFront={false}\n />\n </Grid>\n\n\n <Grid\n order={{ xs: 4 }}\n size={{\n xs: 6,\n md: 3\n }}>\n <h3>{t(\"exercises.secondaryMuscles\")}</h3>\n <ul>\n {exercise.musclesSecondary.map((m: Muscle) => (\n <li key={m.id}>{m.getName()}</li>\n ))}\n </ul>\n </Grid>\n\n </Grid>\n <PaddingBox />\n </Grid>\n <Grid\n order={{ xs: 1, sm: 2 }}\n size={{\n xs: 12,\n sm: 5,\n md: 4\n }}>\n { /*\n <Carousel>\n <CarouselItem>\n <img\n style={{width: \"100%\"}}\n src=\"https://images.unsplash.com/photo-1434682881908-b43d0467b798?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1174&q=80\"\n alt=\"detail\"\n />\n </CarouselItem>\n <CarouselItem>\n <img\n style={{width: \"100%\"}}\n src=\"https://images.unsplash.com/photo-1434682881908-b43d0467b798?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1174&q=80\"\n alt=\"detail\"\n />\n </CarouselItem>\n <CarouselItem>\n <img\n style={{width: \"100%\"}}\n src=\"https://images.unsplash.com/photo-1434682881908-b43d0467b798?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1174&q=80\"\n alt=\"detail\"\n />\n </CarouselItem>\n </Carousel>\n */}\n\n {/* This gallery only displays on medium screens upwards */}\n <SideGallery\n mainImage={exercise.mainImage}\n sideImages={exercise.sideImages}\n />\n\n <PaddingBox />\n <SideVideoGallery videos={exercise.videos} />\n </Grid>\n\n\n <Grid order={{ xs: 3 }} size={12}>\n\n <Divider />\n <PaddingBox />\n\n {variations.length > 0 && <Typography variant={\"h5\"}>{t('exercises.variations')}</Typography>}\n <Grid container spacing={2}>\n {variations.map((variation: Exercise) =>\n <Grid\n key={variation.id}\n size={{\n xs: 6,\n md: 2\n }}>\n <OverviewCard\n key={variation.id}\n exercise={variation}\n language={language}\n />\n </Grid>\n )}\n </Grid>\n </Grid>\n <Grid order={{ xs: 4 }} size={12}>\n <Typography variant=\"caption\" display=\"block\" mt={2}>\n The text on this page is available under the <a\n href=\"https://creativecommons.org/licenses/by-sa/4.0/deed\">CC BY-SA 4\n License</a>.\n </Typography>\n </Grid>\n </Grid>\n );\n};\n","import { ContentCopy } from \"@mui/icons-material\";\nimport CachedIcon from \"@mui/icons-material/Cached\";\nimport ClearIcon from \"@mui/icons-material/Clear\";\nimport PhotoIcon from \"@mui/icons-material/Photo\";\nimport {\n Avatar,\n Button,\n DialogActions,\n DialogContent,\n DialogTitle,\n IconButton,\n InputAdornment,\n ListItem,\n ListItemAvatar,\n ListItemText,\n TextField,\n Tooltip\n} from \"@mui/material\";\nimport { NameAutocompleter } from \"components/Exercises/Filter/NameAutcompleter\";\nimport { Exercise } from \"components/Exercises/models/exercise\";\nimport { Language } from \"components/Exercises/models/language\";\nimport { SERVER_URL } from \"config\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useNavigate } from \"react-router-dom\";\nimport { deleteExercise, deleteExerciseTranslation, getExercise } from \"services\";\nimport { ExerciseSearchResponse } from \"services/responseType\";\n\nexport function ExerciseDeleteDialog(props: {\n onClose: Function,\n onChangeLanguage: Function,\n currentExercise: Exercise,\n currentLanguage: Language | undefined,\n}) {\n const [replacementId, setReplacementId] = React.useState<number | null>(null);\n const [replacementExercise, setReplacementExercise] = React.useState<Exercise | null>(null);\n\n const [t] = useTranslation();\n const navigate = useNavigate();\n\n const resetReplacement = () => {\n setReplacementExercise(null);\n setReplacementId(null);\n };\n\n const handleDeleteTranslation = async () => {\n await deleteExerciseTranslation(props.currentExercise.getTranslation(props.currentLanguage)?.id!);\n props.onClose();\n props.onChangeLanguage();\n };\n\n const handleDeleteBase = async (handleReplacement: boolean = false) => {\n if (handleReplacement) {\n await deleteExercise(props.currentExercise.id!, replacementExercise?.uuid!);\n } else {\n await deleteExercise(props.currentExercise.id!);\n }\n props.onClose();\n navigate('../overview');\n };\n\n const loadCurrentReplacement = async (exerciseId?: number) => {\n const id = exerciseId !== undefined ? exerciseId : replacementId;\n\n if (id !== null) {\n try {\n const exercise = await getExercise(id);\n setReplacementExercise(exercise);\n } catch (e) {\n setReplacementExercise(null);\n }\n }\n };\n\n\n return <>\n <DialogTitle id=\"alert-dialog-title\">\n {t('delete')}\n </DialogTitle>\n <DialogContent>\n <p>{t('exercises.deleteExerciseBody',\n {\n name: props.currentExercise.getTranslation(props.currentLanguage)?.name,\n language: props.currentLanguage?.nameLong\n })\n }</p>\n <p>{t('cannotBeUndone')}</p>\n\n <p><b>{t('exercises.replacements')}</b></p>\n <p>{t('exercises.replacementsInfoText')}</p>\n <p>{t('exercises.replacementsSearch')}</p>\n\n <NameAutocompleter\n callback={(exercise: ExerciseSearchResponse | null) => {\n if (exercise !== null) {\n setReplacementId(exercise.data.base_id);\n loadCurrentReplacement(exercise.data.base_id);\n }\n }}\n />\n\n <TextField\n data-testid=\"exercise-id-field\"\n id=\"foo\"\n label=\"Exercise ID\"\n onBlur={() => loadCurrentReplacement()}\n onChange={async (event) => {\n setReplacementId(event.target.value !== '' ? parseInt(event.target.value) : null);\n }}\n value={replacementId ?? \"\"}\n InputProps={{\n endAdornment:\n <InputAdornment position=\"start\">\n <IconButton onClick={() => loadCurrentReplacement()}>\n <CachedIcon />\n </IconButton>\n </InputAdornment>\n }}\n fullWidth={true}\n variant=\"standard\"\n />\n {replacementExercise === null && <>\n <p><i>{t('exercises.noReplacementSelected')}</i></p>\n </>}\n\n {replacementExercise !== null && <>\n <p>Selected exercise for replacement:\n <Tooltip title={t('copyToClipboard')}>\n <IconButton\n onClick={() => navigator.clipboard.writeText(replacementExercise!.id!.toString())}>\n <ContentCopy />\n </IconButton>\n </Tooltip>\n </p>\n\n <ListItem disablePadding>\n <ListItemAvatar>\n <Avatar>\n {replacementExercise.mainImage ?\n <Avatar\n alt=\"\" src={`${SERVER_URL}${replacementExercise.mainImage.url}`}\n variant=\"rounded\" />\n : <PhotoIcon />}\n </Avatar>\n </ListItemAvatar>\n <ListItemText\n primary={replacementExercise.getTranslation().name}\n secondary={`${replacementExercise.id} (${replacementExercise.uuid})`}\n />\n <IconButton onClick={resetReplacement}>\n <ClearIcon />\n </IconButton>\n </ListItem>\n </>}\n </DialogContent>\n <DialogActions>\n <Button onClick={() => props.onClose()}>{t('cancel')}</Button>\n <Button\n data-testid=\"button-delete-translation\"\n size={\"small\"}\n onClick={handleDeleteTranslation}\n variant=\"contained\"\n >\n {t('exercises.deleteTranslation')}\n </Button>\n <Button\n data-testid=\"button-delete-all\"\n size={\"small\"}\n onClick={() => handleDeleteBase()}\n variant=\"contained\"\n >\n {t('exercises.deleteExerciseFull')}\n </Button>\n <Button\n data-testid=\"button-delete-and-replace\"\n size={\"small\"}\n disabled={replacementExercise === null}\n onClick={() => handleDeleteBase(true)}\n variant=\"contained\"\n >\n {t('exercises.deleteExerciseReplace')}\n </Button>\n </DialogActions>\n </>;\n}","import AddIcon from '@mui/icons-material/Add';\nimport MoreVertIcon from '@mui/icons-material/MoreVert';\nimport RedoIcon from '@mui/icons-material/Redo';\nimport {\n Button,\n Chip,\n Dialog,\n Divider,\n ListItemIcon,\n ListItemText,\n Menu,\n MenuItem,\n Stack,\n Typography\n} from '@mui/material';\nimport Grid from '@mui/material/Grid';\nimport { ExerciseDeleteDialog } from \"components/Exercises/Detail/Head/ExerciseDeleteDialog\";\nimport { Exercise } from 'components/Exercises/models/exercise';\nimport { Language } from 'components/Exercises/models/language';\nimport { usePermissionQuery } from \"components/User/queries/permission\";\nimport { useProfileQuery } from \"components/User/queries/profile\";\nimport { WgerPermissions } from \"permissions\";\nimport React, { useState } from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { Link } from 'react-router-dom';\nimport styles from './head.module.css';\n\nexport interface HeadProp {\n exercise: Exercise\n languages: Language[]\n changeLanguage: (lang: Language) => void,\n language: Language | undefined // language displayed in the head since it's not found in the translations\n setEditMode: Function,\n editMode: boolean\n}\n\nexport const Head = ({\n exercise,\n languages,\n changeLanguage,\n language,\n setEditMode,\n editMode\n }: HeadProp) => {\n const [anchorMenuEl, setAnchorMenuEl] = useState<null | HTMLElement>(null);\n const [openDialog, setOpenDialog] = React.useState(false);\n const openLanguageMenu = Boolean(anchorMenuEl);\n const [t] = useTranslation();\n\n const deletePermissionQuery = usePermissionQuery(WgerPermissions.DELETE_EXERCISE);\n const editPermissionQuery = usePermissionQuery(WgerPermissions.EDIT_EXERCISE);\n const profileQuery = useProfileQuery();\n const userIsAnonymous = profileQuery.isSuccess && profileQuery.data === null;\n\n\n let canUserContribute = false;\n if (profileQuery.isSuccess && editPermissionQuery.isSuccess) {\n canUserContribute = editPermissionQuery.data || (profileQuery.data !== null && profileQuery.data!.isTrustworthy);\n }\n\n const handleLanguageButtonClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorMenuEl(event.currentTarget);\n };\n const handleMenuClose = () => {\n setAnchorMenuEl(null);\n };\n const handleLanguageClick = (lang: Language) => {\n changeLanguage(lang);\n handleMenuClose();\n };\n\n const languagesList = languages.map(l => {\n return <MenuItem\n key={l.nameShort}\n onClick={() => handleLanguageClick(l)}\n selected={language?.id === l.id}>\n <ListItemText>{l.nameLong}</ListItemText>\n <ListItemIcon>\n {exercise.availableLanguages.includes(l.id)\n ? <RedoIcon />\n : <AddIcon />}\n </ListItemIcon>\n </MenuItem>;\n });\n\n return (\n (<Grid container>\n <Grid size={12}>\n <div className={styles.root}>\n <Dialog\n open={openDialog}\n onClose={() => setOpenDialog(false)}>\n <ExerciseDeleteDialog\n onClose={() => setOpenDialog(false)}\n onChangeLanguage={() => changeLanguage(languages[0])}\n currentExercise={exercise}\n currentLanguage={language}\n />\n </Dialog>\n\n <div className={styles.detail_language}>\n <div className={styles.detail}>\n <Link\n to=\"../overview\">{t('exercises.exercises')}</Link> &gt; {exercise.getTranslation(language)?.name}\n </div>\n <div className={styles.languages}>\n <div className={styles.language}>\n <Button\n size=\"small\"\n id=\"basic-button\"\n onClick={handleLanguageButtonClick}\n startIcon={<MoreVertIcon />}\n >\n {language?.nameLong}\n </Button>\n\n <Menu\n id=\"basic-menu\"\n anchorEl={anchorMenuEl}\n open={openLanguageMenu}\n onClose={handleMenuClose}\n MenuListProps={{\n 'aria-labelledby': 'basic-button',\n }}\n sx={{ padding: 20 }}\n >\n <MenuItem disabled>{t('exercises.changeExerciseLanguage')}</MenuItem>\n <Divider />\n {languagesList}\n </Menu>\n </div>\n </div>\n </div>\n <div className={styles.header}>\n <Typography gutterBottom variant=\"h2\" margin={0} sx={{ mt: 2 }}>\n {exercise.getTranslation(language)?.name}\n </Typography>\n {!userIsAnonymous &&\n <nav className={styles.toolbar}>\n {\n deletePermissionQuery.isSuccess\n && deletePermissionQuery.data\n && language?.id === exercise.getTranslation(language)?.language\n && <Button onClick={() => setOpenDialog(true)}>\n {t('delete')}\n </Button>\n }\n {\n canUserContribute\n && <Button onClick={() => setEditMode(true)}\n disabled={editMode}>EDIT</Button>\n }\n <Button onClick={() => setEditMode(false)}\n disabled={!editMode}>VIEW</Button>\n </nav>\n }\n </div>\n <Stack direction=\"row\" spacing={1} mt={2}>\n <Chip\n label={exercise.category.translatedName}\n size=\"small\" />\n {exercise.equipment.map(e => {\n return <Chip\n key={e.id}\n label={e.translatedName}\n variant=\"outlined\"\n size=\"small\"\n />;\n })}\n </Stack>\n </div>\n </Grid>\n </Grid>)\n );\n};\n","import { Box, Container } from \"@mui/material\";\nimport { useQuery } from \"@tanstack/react-query\";\nimport { LoadingWidget } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { ExerciseDetailEdit } from \"components/Exercises/Detail/ExerciseDetailEdit\";\nimport { ExerciseDetailView } from \"components/Exercises/Detail/ExerciseDetailView\";\nimport { Language } from \"components/Exercises/models/language\";\nimport { useLanguageQuery } from \"components/Exercises/queries\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useNavigate, useParams } from \"react-router-dom\";\nimport { getExercise, getExercisesForVariation, getLanguageByShortName, } from \"services\";\nimport { ENGLISH_LANGUAGE_OBJ, QUERY_EXERCISE_DETAIL, QUERY_EXERCISE_VARIATIONS, } from \"utils/consts\";\nimport { Head } from \"./Head\";\n\nexport const PaddingBox = () => {\n return <Box sx={{ height: 20 }} />;\n};\n\nexport const ExerciseDetails = () => {\n const [language, setLanguage] = useState<Language>(ENGLISH_LANGUAGE_OBJ);\n const [editMode, setEditMode] = useState<boolean>(false);\n const { i18n } = useTranslation();\n const navigate = useNavigate();\n const languageQuery = useLanguageQuery();\n\n const params = useParams<{ exerciseId: string }>();\n const exerciseId = parseInt(params.exerciseId ?? '');\n if (Number.isNaN(exerciseId)) {\n return <p>Please pass an integer as the exercise id.</p>;\n }\n\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const exerciseQuery = useQuery({\n queryKey: [QUERY_EXERCISE_DETAIL, exerciseId],\n queryFn: () => getExercise(exerciseId),\n enabled: languageQuery.isSuccess,\n });\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const variationsQuery = useQuery({\n queryKey: [QUERY_EXERCISE_VARIATIONS, exerciseQuery.data?.variationId],\n queryFn: () => getExercisesForVariation(exerciseQuery.data?.variationId),\n enabled: exerciseQuery.isSuccess\n });\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (languageQuery.data === undefined) {\n return;\n }\n\n // Set the currently selected language\n const currentUserLanguage = getLanguageByShortName(\n i18n.language,\n languageQuery.data!\n );\n setLanguage(currentUserLanguage!);\n }, [languageQuery.data]);\n\n if (exerciseQuery.isError || languageQuery.isError || variationsQuery.isError) {\n navigate(\"/not-found\");\n return null;\n }\n\n const changeUserLanguage = (lang: Language) => {\n const language = getLanguageByShortName(\n lang.nameShort,\n languageQuery.data!\n );\n if (language !== undefined) {\n setLanguage(language);\n }\n };\n\n const variations = variationsQuery.isSuccess\n ? variationsQuery.data!.filter((b) => b.id !== exerciseId)\n : [];\n\n let out;\n if (exerciseQuery.isSuccess && languageQuery.isSuccess) {\n out = editMode\n ? <ExerciseDetailEdit\n exerciseId={exerciseQuery.data.id!}\n language={language!} />\n : <ExerciseDetailView\n exercise={exerciseQuery.data}\n language={language!}\n variations={variations}\n setEditMode={setEditMode} />;\n }\n\n return (\n <>\n {\n exerciseQuery.isSuccess\n && languageQuery.isSuccess\n && <Container>\n <Head\n exercise={exerciseQuery.data}\n languages={languageQuery.data}\n changeLanguage={changeUserLanguage}\n language={language}\n setEditMode={setEditMode}\n editMode={editMode} />\n </Container>\n }\n <PaddingBox />\n <Container maxWidth=\"lg\">\n {\n exerciseQuery.isLoading\n && languageQuery.isLoading\n && <LoadingWidget />\n }\n {out}\n </Container>\n </>\n );\n};\n","import AddIcon from '@mui/icons-material/Add';\nimport DeleteIcon from '@mui/icons-material/Delete';\nimport { IconButton, InputAdornment, TextField } from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport { useField } from \"formik\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\nexport function ExerciseNotes(props: { fieldName: string }) {\n const [t] = useTranslation();\n const [field, meta, helpers] = useField(props.fieldName);\n const [newNoteValue, setNewNoteValue] = useState<string>('');\n\n const deleteAtIndex = (index: number) => {\n helpers.setValue(field.value.filter((_: string, b: number) => b !== index));\n };\n\n const setNoteValueIndex = (index: number, note: string) => {\n field.value[index] = note;\n helpers.setValue(field.value);\n };\n const addEntry = () => {\n field.value.push(newNoteValue);\n helpers.setValue(field.value);\n setNewNoteValue('');\n };\n\n return <>\n <Grid size={12}>\n <TextField\n fullWidth\n label={t('exercises.newNote')}\n sx={{ mb: 3 }}\n variant=\"standard\"\n value={newNoteValue}\n onChange={event => setNewNoteValue(event.target.value)}\n error={meta.touched && Boolean(meta.error)}\n helperText={meta.touched && meta.error ? meta.error : t('exercises.notesHelpText')}\n InputProps={{\n endAdornment: (\n <InputAdornment position=\"end\">\n <IconButton onClick={addEntry}>\n <AddIcon />\n </IconButton>\n </InputAdornment>\n ),\n }}\n />\n </Grid>\n {field.value.map((note: string, index: number) =>\n <TextField\n key={index}\n fullWidth\n value={note}\n onChange={(event) => setNoteValueIndex(index, event.target.value)}\n sx={{ mt: 2 }}\n variant=\"standard\"\n error={meta.touched && Boolean(meta.error)}\n InputProps={{\n endAdornment: (\n <InputAdornment position=\"end\">\n <IconButton onClick={() => deleteAtIndex(index)}>\n <DeleteIcon />\n </IconButton>\n </InputAdornment>\n ),\n }}\n\n />\n )}\n </>;\n}","import { Box, Button, Stack } from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport { useLanguageCheckQuery } from \"components/Core/queries\";\nimport { StepProps } from \"components/Exercises/Add/AddExerciseStepper\";\nimport { PaddingBox } from \"components/Exercises/Detail/ExerciseDetails\";\nimport { ExerciseDescription } from \"components/Exercises/forms/ExerciseDescription\";\nimport { ExerciseNotes } from \"components/Exercises/forms/ExerciseNotes\";\nimport { descriptionValidator, noteValidator } from \"components/Exercises/forms/yupValidators\";\nimport { Form, Formik } from \"formik\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useExerciseSubmissionStateValue } from \"state\";\nimport { setDescriptionEn, setNotesEn } from \"state/exerciseSubmissionReducer\";\nimport { ENGLISH_LANGUAGE_ID } from \"utils/consts\";\nimport * as yup from \"yup\";\n\n\nexport const Step3Description = ({ onContinue, onBack }: StepProps) => {\n const [t] = useTranslation();\n const [state, dispatch] = useExerciseSubmissionStateValue();\n const languageCheckQuery = useLanguageCheckQuery();\n\n const validationSchema = yup.object({\n description: descriptionValidator(),\n notes: noteValidator()\n });\n\n return (\n (<Formik\n initialValues={{\n description: state.descriptionEn,\n notes: state.notesEn,\n }}\n validationSchema={validationSchema}\n onSubmit={async (values, { setFieldError }) => {\n let canContinue = false;\n\n const validationResult = await languageCheckQuery.mutateAsync({\n input: values.description,\n languageId: ENGLISH_LANGUAGE_ID\n });\n\n // @ts-ignore - validationResult contains the message from the backend\n if (\"success\" in validationResult) {\n canContinue = true;\n } else {\n canContinue = false;\n\n // @ts-ignore - validationResult contains the message from the backend\n setFieldError('description', validationResult.check.message);\n }\n\n dispatch(setDescriptionEn(values.description));\n dispatch(setNotesEn(values.notes));\n\n if (canContinue) {\n onContinue!();\n }\n\n }}\n >\n <Form>\n <Stack>\n <ExerciseDescription fieldName={\"description\"} />\n\n <PaddingBox />\n\n <ExerciseNotes fieldName={'notes'} />\n\n <Grid container>\n <Grid display=\"flex\" justifyContent={\"end\"} size={12}>\n <Box sx={{ mb: 2 }}>\n <div>\n <Button\n onClick={onBack}\n sx={{ mt: 1, mr: 1 }}\n >\n {t('goBack')}\n </Button>\n <Button\n variant=\"contained\"\n type=\"submit\"\n disabled={languageCheckQuery.isPending}\n sx={{ mt: 1, mr: 1 }}\n >\n {t('continue')}\n </Button>\n </div>\n </Box>\n </Grid>\n </Grid>\n </Stack>\n </Form>\n </Formik>)\n );\n};\n","import {\n Box,\n Button,\n FormControl,\n FormControlLabel,\n FormGroup,\n InputLabel,\n MenuItem,\n Select,\n Stack,\n Switch\n} from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport { LoadingWidget } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { useLanguageCheckQuery } from \"components/Core/queries\";\nimport { StepProps } from \"components/Exercises/Add/AddExerciseStepper\";\nimport { PaddingBox } from \"components/Exercises/Detail/ExerciseDetails\";\nimport { ExerciseAliases } from \"components/Exercises/forms/ExerciseAliases\";\nimport { ExerciseDescription } from \"components/Exercises/forms/ExerciseDescription\";\nimport { ExerciseName } from \"components/Exercises/forms/ExerciseName\";\nimport { ExerciseNotes } from \"components/Exercises/forms/ExerciseNotes\";\nimport {\n alternativeNameValidator,\n descriptionValidator,\n nameValidator,\n noteValidator\n} from \"components/Exercises/forms/yupValidators\";\nimport { useLanguageQuery } from \"components/Exercises/queries\";\nimport { Form, Formik } from \"formik\";\nimport React, { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useExerciseSubmissionStateValue } from \"state\";\nimport {\n setAlternativeNamesI18n,\n setDescriptionI18n,\n setLanguageId,\n setNameI18n,\n setNotesI18n\n} from \"state/exerciseSubmissionReducer\";\nimport { ENGLISH_LANGUAGE_ID } from \"utils/consts\";\nimport * as yup from \"yup\";\n\nexport const Step4Translations = ({ onContinue, onBack }: StepProps) => {\n const [t] = useTranslation();\n const languageQuery = useLanguageQuery();\n const languageCheckQuery = useLanguageCheckQuery();\n const [state, dispatch] = useExerciseSubmissionStateValue();\n\n const [translateExercise, setTranslateExercise] = useState<boolean>(state.languageId !== null);\n\n\n const validationSchema = yup.object(\n translateExercise ? {\n description: descriptionValidator(),\n name: nameValidator(),\n alternativeNames: alternativeNameValidator(),\n notes: noteValidator(),\n language: yup\n .number()\n .required(),\n } : {}\n );\n\n return (\n <Formik\n initialValues={{\n name: state.nameI18n,\n alternativeNames: state.alternativeNamesI18n,\n description: state.descriptionI18n,\n language: state.languageId === null ? '' : state.languageId,\n notes: state.notesI18n\n }}\n validationSchema={validationSchema}\n onSubmit={async (values, { setFieldError }) => {\n let canContinue = true;\n\n if (values.description !== '') {\n const validationResult = await languageCheckQuery.mutateAsync({\n input: values.description,\n languageId: values.language! as unknown as number\n });\n\n // @ts-ignore - validationResult contains the message from the backend\n if (\"success\" in validationResult) {\n canContinue = true;\n } else {\n canContinue = false;\n\n // @ts-ignore - validationResult contains the message from the backend\n setFieldError('description', validationResult.check.message);\n }\n }\n\n\n dispatch(setNameI18n(values.name));\n dispatch(setDescriptionI18n(values.description));\n dispatch(setAlternativeNamesI18n(values.alternativeNames));\n dispatch(setLanguageId(values.language === '' ? null : values.language as unknown as number));\n dispatch(setNotesI18n(values.notes));\n\n if (canContinue) {\n onContinue!();\n }\n }}\n >{formik => (\n <Form>\n <Stack spacing={2}>\n <FormGroup>\n <FormControlLabel checked={translateExercise}\n onClick={() => setTranslateExercise(!translateExercise)}\n control={<Switch />}\n label={t('exercises.translateExerciseNow')} />\n </FormGroup>\n {translateExercise && (\n <>\n {languageQuery.isLoading ? (\n <Box>\n <LoadingWidget />\n </Box>\n ) : (\n <FormControl fullWidth>\n <InputLabel id=\"label-language\">{t('language')}</InputLabel>\n <Select\n labelId=\"label-language\"\n id=\"language\"\n value={formik.getFieldProps(\"language\").value}\n onChange={e => {\n formik.setFieldValue(\n formik.getFieldProps(\"language\").name,\n e.target.value\n );\n }}\n label={t('language')}\n error={Boolean(\n formik.touched.language && formik.errors.language\n )}\n >\n {languageQuery.data!.filter(language => language.id !== ENGLISH_LANGUAGE_ID).map(language => (\n <MenuItem key={language.id} value={language.id}>\n {language.nameShort} - {language.nameLong}\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n )}\n <ExerciseName fieldName={'name'} />\n\n <ExerciseAliases fieldName={'alternativeNames'} />\n\n <ExerciseDescription fieldName={\"description\"} />\n\n <PaddingBox />\n <ExerciseNotes fieldName={'notes'} />\n </>\n )}\n </Stack>\n\n <Grid container>\n <Grid display=\"flex\" justifyContent={\"end\"} size={12}>\n <Box sx={{ mb: 2 }}>\n <div>\n <Button\n onClick={onBack}\n sx={{ mt: 1, mr: 1 }}\n >\n {t('goBack')}\n </Button>\n <Button\n variant=\"contained\"\n type=\"submit\"\n sx={{ mt: 1, mr: 1 }}\n >\n {t('continue')}\n </Button>\n </div>\n </Box>\n </Grid>\n </Grid>\n </Form>\n )}\n </Formik>\n );\n};","import { useTranslation } from \"react-i18next\";\nimport { TextField } from \"@mui/material\";\nimport React from \"react\";\nimport { useField } from \"formik\";\n\nexport function LicenseAuthor(props: { fieldName: string }) {\n const [t] = useTranslation();\n const [field, meta] = useField(props.fieldName);\n\n return <TextField\n fullWidth\n id={props.fieldName}\n label={t(\"licenses.authors\")}\n variant=\"standard\"\n error={meta.touched && Boolean(meta.error)}\n helperText={meta.touched && meta.error}\n {...field}\n />;\n}","import { useTranslation } from \"react-i18next\";\nimport { TextField } from \"@mui/material\";\nimport React from \"react\";\nimport { useField } from \"formik\";\n\nexport function LicenseAuthorUrl(props: { fieldName: string }) {\n const [t] = useTranslation();\n const [field, meta] = useField(props.fieldName);\n\n return <TextField\n fullWidth\n id={props.fieldName}\n label={t(\"licenses.authorProfile\")}\n variant=\"standard\"\n placeholder={\"https://\"}\n error={meta.touched && Boolean(meta.error)}\n helperText={meta.touched && meta.error}\n {...field}\n />;\n}","import { useTranslation } from \"react-i18next\";\nimport { TextField } from \"@mui/material\";\nimport React from \"react\";\nimport { useField } from \"formik\";\n\nexport function LicenseDerivativeSourceUrl(props: { fieldName: string }) {\n const [t] = useTranslation();\n const [field, meta] = useField(props.fieldName);\n\n return <TextField\n fullWidth\n id={props.fieldName}\n label={t(\"licenses.derivativeSourceUrl\")}\n variant=\"standard\"\n placeholder={\"https://\"}\n error={meta.touched && Boolean(meta.error)}\n helperText={t(\"licenses.derivativeSourceUrlHelper\") || meta.touched && meta.error}\n {...field}\n />;\n}","import { useTranslation } from \"react-i18next\";\nimport { TextField } from \"@mui/material\";\nimport React from \"react\";\nimport { useField } from \"formik\";\n\nexport function LicenseObjectUrl(props: { fieldName: string }) {\n const [t] = useTranslation();\n const [field, meta] = useField(props.fieldName);\n\n return <TextField\n fullWidth\n id={props.fieldName}\n label={t(\"licenses.originalObjectUrl\")}\n variant=\"standard\"\n placeholder={\"https://\"}\n error={meta.touched && Boolean(meta.error)}\n helperText={meta.touched && meta.error}\n {...field}\n />;\n}","import { useTranslation } from \"react-i18next\";\nimport { TextField } from \"@mui/material\";\nimport React from \"react\";\nimport { useField } from \"formik\";\n\nexport function LicenseTitle(props: { fieldName: string }) {\n const [t] = useTranslation();\n const [field, meta] = useField(props.fieldName);\n\n return <TextField\n fullWidth\n id={props.fieldName}\n label={t(\"licenses.originalTitle\")}\n variant=\"standard\"\n error={meta.touched && Boolean(meta.error)}\n helperText={meta.touched && meta.error}\n {...field}\n />;\n}","import LandscapeIcon from '@mui/icons-material/Landscape';\nimport LandscapeOutlinedIcon from '@mui/icons-material/LandscapeOutlined';\nimport LandscapeTwoToneIcon from '@mui/icons-material/LandscapeTwoTone';\nimport MoreHorizIcon from '@mui/icons-material/MoreHoriz';\nimport PhotoCameraIcon from '@mui/icons-material/PhotoCamera';\nimport { Stack, Typography } from \"@mui/material\";\nimport ToggleButton from '@mui/material/ToggleButton';\nimport ToggleButtonGroup from '@mui/material/ToggleButtonGroup';\nimport { ImageStyle } from \"components/Exercises/models/image\";\nimport { useField } from \"formik\";\nimport * as React from 'react';\nimport { useTranslation } from \"react-i18next\";\n\nexport function ImageStyleToggle(props: { fieldName: string }) {\n const [t] = useTranslation();\n\n const [style, setStyle] = React.useState<number | null>(ImageStyle.PHOTO);\n\n const [field, meta, helpers] = useField(props.fieldName);\n\n\n const handleAlignment = (\n event: React.MouseEvent<HTMLElement>,\n newStyle: number | null,\n ) => {\n setStyle(newStyle);\n helpers.setValue(newStyle);\n };\n\n return (\n <ToggleButtonGroup\n value={style}\n exclusive\n fullWidth\n onChange={handleAlignment}\n aria-label=\"text alignment\"\n >\n <ToggleButton value={ImageStyle.PHOTO}>\n <Stack justifyContent=\"center\" alignItems=\"center\">\n <PhotoCameraIcon />\n <Typography variant=\"caption\">{t('exercises.imageStylePhoto')}</Typography>\n </Stack>\n </ToggleButton>\n\n <ToggleButton value={ImageStyle.THREE_D}>\n <Stack justifyContent=\"center\" alignItems=\"center\">\n <LandscapeIcon />\n <Typography variant=\"caption\">{t('exercises.imageStyle3D')}</Typography>\n </Stack>\n </ToggleButton>\n\n <ToggleButton value={ImageStyle.LINE_ART}>\n <Stack justifyContent=\"center\" alignItems=\"center\">\n <LandscapeOutlinedIcon />\n <Typography variant=\"caption\">{t('exercises.imageStyleLine')}</Typography>\n </Stack>\n </ToggleButton>\n\n <ToggleButton value={ImageStyle.LOW_POLY}>\n <Stack justifyContent=\"center\" alignItems=\"center\">\n <LandscapeTwoToneIcon />\n <Typography variant=\"caption\">{t('exercises.imageStyleLowPoly')}</Typography>\n </Stack>\n </ToggleButton>\n\n <ToggleButton value={ImageStyle.OTHER}>\n <Stack justifyContent=\"center\" alignItems=\"center\">\n <MoreHorizIcon />\n <Typography variant=\"caption\">{t('exercises.imageStyleOther')}</Typography>\n </Stack>\n </ToggleButton>\n </ToggleButtonGroup>\n );\n}","import CameraAltIcon from '@mui/icons-material/CameraAlt';\nimport CollectionsIcon from '@mui/icons-material/Collections';\nimport DeleteOutlineIcon from '@mui/icons-material/DeleteOutline';\nimport InfoIcon from '@mui/icons-material/Info';\nimport {\n Alert,\n Box,\n Button,\n IconButton,\n ImageListItem,\n ImageListItemBar,\n Modal,\n Stack,\n Typography\n} from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport ImageList from '@mui/material/ImageList';\nimport { LicenseAuthor } from \"components/Common/forms/LicenseAuthor\";\nimport { LicenseAuthorUrl } from \"components/Common/forms/LicenseAuthorUrl\";\nimport { LicenseDerivativeSourceUrl } from \"components/Common/forms/LicenseDerivativeSourceUrl\";\nimport { LicenseObjectUrl } from \"components/Common/forms/LicenseObjectUrl\";\nimport { LicenseTitle } from \"components/Common/forms/LicenseTitle\";\nimport { StepProps } from \"components/Exercises/Add/AddExerciseStepper\";\nimport { ImageStyleToggle } from \"components/Exercises/forms/ImageStyle\";\nimport { ImageFormData } from \"components/Exercises/models/exercise\";\nimport { ImageStyle } from \"components/Exercises/models/image\";\nimport { useProfileQuery } from \"components/User/queries/profile\";\nimport { Form, Formik } from \"formik\";\nimport React, { useEffect, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useExerciseSubmissionStateValue } from \"state\";\nimport { setImages } from \"state/exerciseSubmissionReducer\";\n\nexport const Step5Images = ({ onContinue, onBack }: StepProps) => {\n const [t] = useTranslation();\n const profileQuery = useProfileQuery();\n\n const [state, dispatch] = useExerciseSubmissionStateValue();\n const [localImages, setLocalImages] = useState<ImageFormData[]>(state.images);\n const [popupImage, setPopupImage] = useState<ImageFormData | undefined>(undefined);\n\n const [openModal, setOpenModal] = React.useState(false);\n const handleOpenModal = () => setOpenModal(true);\n const handleCloseModal = () => setOpenModal(false);\n\n useEffect(() => {\n dispatch(setImages(localImages));\n }, [dispatch, localImages]);\n\n const handleFileInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n if (!e.target.files?.length) {\n return;\n }\n const [uploadedFile] = e.target.files;\n const objectURL = URL.createObjectURL(uploadedFile);\n\n setOpenModal(true);\n\n setPopupImage({\n url: objectURL,\n file: uploadedFile,\n\n author: \"\",\n authorUrl: \"\",\n title: \"\",\n derivativeSourceUrl: \"\",\n objectUrl: \"\",\n style: ImageStyle.PHOTO.toString()\n });\n };\n\n const handleAddFullImage = (data: {\n title: string,\n objectUrl: string,\n author: string,\n authorUrl: string,\n derivativeSourceUrl: string,\n imageStyle: number\n }) => {\n setLocalImages(localImages.concat({\n url: popupImage?.url!,\n file: popupImage?.file!,\n\n author: data.author,\n authorUrl: data.authorUrl,\n title: data.title,\n derivativeSourceUrl: data.derivativeSourceUrl,\n objectUrl: data.objectUrl,\n style: data.imageStyle.toString()\n }));\n handleCloseModal();\n };\n\n const handleDeleteImage = (imageURL: string) => {\n const updatedImagesURLS = localImages.filter(i => i.url !== imageURL);\n setLocalImages(updatedImagesURLS);\n };\n\n const handleContinue = () => {\n onContinue!();\n };\n\n const style = {\n position: 'absolute' as const,\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)',\n width: 600,\n bgcolor: 'background.paper',\n //border: '2px solid #000',\n boxShadow: 24,\n p: 4,\n };\n\n return (\n (<div>\n <Modal\n open={openModal}\n onClose={handleCloseModal}\n aria-labelledby=\"modal-modal-title\"\n aria-describedby=\"modal-modal-description\"\n >\n\n <Box sx={style}>\n <Typography id=\"modal-modal-title\" variant=\"h6\" component=\"h2\">\n {t('exercises.imageDetails')}\n </Typography>\n\n <Grid container spacing={2}>\n <Grid size={4}>\n {popupImage && <img\n style={{ width: \"100%\", }}\n src={popupImage.url}\n alt=\"\"\n loading=\"lazy\"\n />}\n </Grid>\n <Grid size={8}>\n <Formik\n initialValues={{\n title: '',\n objectUrl: '',\n author: profileQuery.isSuccess ? profileQuery.data!.username : '',\n authorUrl: '',\n derivativeSourceUrl: '',\n imageStyle: ImageStyle.PHOTO,\n }}\n onSubmit={values => {\n console.log(values);\n handleAddFullImage(values);\n }}\n >\n {formik => {\n return (<Form>\n <Stack spacing={2}>\n <LicenseTitle fieldName={'title'} />\n <LicenseObjectUrl fieldName={'objectUrl'} />\n <LicenseAuthor fieldName={'author'} />\n <LicenseAuthorUrl fieldName={'authorUrl'} />\n <LicenseDerivativeSourceUrl fieldName={'derivativeSourceUrl'} />\n <ImageStyleToggle fieldName={'imageStyle'} />\n <Alert icon={<InfoIcon fontSize=\"inherit\" />} severity=\"info\">\n By submitting this image, you agree to release it under the <a\n href=\"https://creativecommons.org/licenses/by-sa/4.0/\" target=\"_blank\"\n rel=\"noreferrer\">CC\n BY-SA 4.0</a> license. The image must be either your own work or the\n author must have released in under\n a license compatible with CC BY-SA 4.0.\n </Alert>\n </Stack>\n <Stack direction=\"row\" justifyContent=\"end\"\n sx={{ mt: 2 }}>\n\n <Button color=\"primary\" variant=\"contained\" type=\"submit\" sx={{ mt: 2 }}>\n {t('add')}\n </Button>\n\n </Stack>\n </Form>);\n }}\n </Formik>\n </Grid>\n </Grid>\n </Box>\n </Modal>\n <Typography>\n {t(\"exercises.compatibleImagesCC\")}\n\n </Typography>\n <Stack direction={\"row\"} justifyContent=\"center\">\n <div>\n <label htmlFor=\"camera-input\">\n <CameraAltIcon fontSize=\"large\" sx={{ m: 2 }} />\n </label>\n <input\n style={{ display: \"none\" }}\n id=\"camera-input\"\n type=\"file\"\n accept=\"image/*\"\n capture=\"environment\"\n onChange={handleFileInputChange}\n />\n </div>\n <div>\n <label htmlFor=\"image-input\">\n <CollectionsIcon fontSize=\"large\" sx={{ m: 2 }} />\n </label>\n <input\n type=\"file\"\n accept=\"image/*\"\n name=\"image-file\"\n id=\"image-input\"\n style={{ display: \"none\" }}\n onChange={handleFileInputChange}\n />\n </div>\n </Stack>\n <ImageList\n cols={3}\n style={{ maxHeight: \"400px\", }}>\n {localImages.map(imageEntry => (\n <ImageListItem key={imageEntry.url}>\n <img\n style={{ maxHeight: \"400px\", maxWidth: \"400px\" }}\n src={imageEntry.url}\n alt=\"\"\n loading=\"lazy\"\n />\n <ImageListItemBar\n title={imageEntry.title}\n subtitle={imageEntry.author}\n actionIcon={\n <IconButton\n onClick={() => handleDeleteImage(imageEntry.url)}\n sx={{ color: 'white' }}\n >\n <DeleteOutlineIcon />\n </IconButton>\n }\n />\n </ImageListItem>\n ))}\n </ImageList>\n <Typography>\n {t(\"forms.supportedImageFormats\")}\n </Typography>\n <Grid container>\n <Grid display=\"flex\" justifyContent={\"end\"} size={12}>\n <Box sx={{ mb: 2 }}>\n <>\n <Button\n onClick={onBack}\n sx={{ mt: 1, mr: 1 }}\n >\n {t('goBack')}\n </Button>\n <Button\n variant=\"contained\"\n onClick={handleContinue}\n sx={{ mt: 1, mr: 1 }}\n >\n {t('continue')}\n </Button>\n </>\n </Box>\n </Grid>\n </Grid>\n </div>)\n );\n};\n","import NavigateNextIcon from '@mui/icons-material/NavigateNext';\nimport {\n Alert,\n AlertTitle,\n Box,\n Button,\n ImageListItem,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableRow,\n Typography\n} from \"@mui/material\";\nimport Grid from '@mui/material/Grid';\nimport ImageList from \"@mui/material/ImageList\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { FormQueryErrors } from \"components/Core/Widgets/FormError\";\nimport { StepProps } from \"components/Exercises/Add/AddExerciseStepper\";\nimport {\n useAddExerciseFullQuery,\n useCategoriesQuery,\n useEquipmentQuery,\n useLanguageQuery,\n useMusclesQuery\n} from \"components/Exercises/queries\";\nimport { useProfileQuery } from \"components/User/queries/profile\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useNavigate } from \"react-router-dom\";\nimport { postExerciseImage } from \"services\";\nimport { useExerciseSubmissionStateValue } from \"state\";\nimport { ENGLISH_LANGUAGE_ID } from \"utils/consts\";\nimport { makeLink, WgerLink } from \"utils/url\";\n\nexport const Step6Overview = ({ onBack }: StepProps) => {\n const [t, i18n] = useTranslation();\n const [state] = useExerciseSubmissionStateValue();\n\n const navigate = useNavigate();\n const categoryQuery = useCategoriesQuery();\n const languageQuery = useLanguageQuery();\n const musclesQuery = useMusclesQuery();\n const equipmentQuery = useEquipmentQuery();\n const profileQuery = useProfileQuery();\n\n const addExerciseSubmissionMutation = useAddExerciseFullQuery();\n\n const submitExercise = async () => {\n\n // Create the exercise\n const exerciseId = await addExerciseSubmissionMutation.mutateAsync({\n exercise: {\n categoryId: state.category as number,\n equipmentIds: state.equipment,\n muscleIds: state.muscles,\n secondaryMuscleIds: state.musclesSecondary,\n },\n author: profileQuery.data!.username,\n variations: state.variationId,\n variationsConnectTo: state.newVariationExerciseId,\n translations: [\n {\n language: ENGLISH_LANGUAGE_ID,\n name: state.nameEn,\n description: state.descriptionEn,\n aliases: [\n ...state.alternativeNamesEn.map(name => ({ alias: name }))\n ],\n comments: [\n ...state.notesEn.map(name => ({ comment: name }))\n ]\n },\n ...(state.languageId !== null ? [{\n language: state.languageId,\n name: state.nameI18n,\n description: state.descriptionI18n,\n aliases: [\n ...state.alternativeNamesI18n.map(name => ({ alias: name }))\n ],\n comments: [\n ...state.notesI18n.map(name => ({ comment: name }))\n ]\n }] : [])\n ],\n });\n\n // Post the images individually, it seems to be more reliable this way\n // and most problems were happening when creating the exercise itself\n for (const image of state.images) {\n await postExerciseImage({\n exerciseId: exerciseId,\n image: image.file,\n imageData: image,\n });\n }\n\n };\n\n const variationText =\n state.variationId !== null\n ? `Using variation ID ${state.variationId}`\n : state.newVariationExerciseId !== null\n ? `Connecting to exercise ${state.newVariationExerciseId}`\n : '';\n\n return equipmentQuery.isLoading || languageQuery.isLoading || musclesQuery.isLoading || categoryQuery.isLoading\n ? <LoadingPlaceholder />\n : <>\n <Typography variant={\"h6\"}>\n {t('exercises.step1HeaderBasics')}\n </Typography>\n <TableContainer>\n <Table>\n <TableBody>\n <TableRow>\n <TableCell>{t('name')}</TableCell>\n <TableCell>{state.nameEn}</TableCell>\n </TableRow>\n <TableRow>\n <TableCell>{t('exercises.alternativeNames')}</TableCell>\n <TableCell>{state.alternativeNamesEn.join(\", \")}</TableCell>\n </TableRow>\n <TableRow>\n <TableCell>{t('description')}</TableCell>\n <TableCell>{state.descriptionEn}</TableCell>\n </TableRow>\n <TableRow>\n <TableCell>{t('exercises.notes')}</TableCell>\n <TableCell>{state.notesEn.map(note => <>{note}<br /></>)}</TableCell>\n </TableRow>\n <TableRow>\n <TableCell>{t('category')}</TableCell>\n <TableCell>{categoryQuery.data!.find(c => c.id === state.category)!.translatedName}</TableCell>\n </TableRow>\n <TableRow>\n <TableCell>{t('exercises.equipment')}</TableCell>\n <TableCell>{state.equipment.map(e => equipmentQuery.data!.find(value => value.id === e)!.translatedName).join(', ')}</TableCell>\n </TableRow>\n <TableRow>\n <TableCell>{t('exercises.muscles')}</TableCell>\n <TableCell>{state.muscles.map(m => musclesQuery.data!.find(value => value.id === m)!.getName()).join(', ')}</TableCell>\n </TableRow>\n <TableRow>\n <TableCell>{t('exercises.secondaryMuscles')}</TableCell>\n <TableCell>{state.musclesSecondary.map(m => musclesQuery.data!.find(value => value.id === m)!.getName()).join(', ')}</TableCell>\n </TableRow>\n <TableRow>\n <TableCell>{t('exercises.variations')}</TableCell>\n <TableCell>{variationText}</TableCell>\n </TableRow>\n </TableBody>\n </Table>\n </TableContainer>\n {state.images.length > 0 && (\n <ImageList\n cols={3}\n style={{ maxHeight: \"200px\", }}>\n {state.images.map(imageEntry => (\n <ImageListItem key={imageEntry.url}>\n <img\n style={{ maxHeight: \"200px\", maxWidth: \"200px\" }}\n src={imageEntry.url}\n alt=\"\"\n loading=\"lazy\"\n />\n </ImageListItem>\n ))}\n </ImageList>\n )}\n\n\n {state.languageId !== null && (\n <>\n <Typography variant={\"h6\"} sx={{ mt: 3 }}>\n {languageQuery.data!.find(l => l.id === state.languageId)!.nameLong}\n </Typography>\n <TableContainer>\n <Table>\n <TableBody>\n <TableRow>\n <TableCell>{t('name')}</TableCell>\n <TableCell>\n {state.nameI18n}\n </TableCell>\n </TableRow>\n\n <TableRow>\n <TableCell>{t('exercises.alternativeNames')}</TableCell>\n <TableCell>{state.alternativeNamesI18n.join(\", \")}</TableCell>\n </TableRow>\n\n\n <TableRow>\n <TableCell>{t('description')}</TableCell>\n <TableCell>{state.descriptionI18n}</TableCell>\n </TableRow>\n\n\n <TableRow>\n <TableCell>{t('exercises.notes')}</TableCell>\n <TableCell>{state.notesI18n.map(note => <>{note}<br /></>)}</TableCell>\n </TableRow>\n </TableBody>\n </Table>\n </TableContainer>\n </>\n )}\n\n <Box sx={{ mt: 2 }}>\n {addExerciseSubmissionMutation.isIdle && <Alert severity=\"info\">\n {t('exercises.checkInformationBeforeSubmitting')}\n </Alert>}\n\n {addExerciseSubmissionMutation.isSuccess && <Alert severity=\"success\">\n <AlertTitle>{t('success')}</AlertTitle>\n {t('exercises.cacheWarning')}\n </Alert>}\n\n <FormQueryErrors mutationQuery={addExerciseSubmissionMutation} />\n </Box>\n\n <Grid container>\n <Grid display=\"flex\" justifyContent={\"end\"} size={12}>\n <Box sx={{ mb: 2 }}>\n <div>\n {!addExerciseSubmissionMutation.isSuccess &&\n <Button\n onClick={onBack}\n sx={{ mt: 1, mr: 1 }}\n >\n {t('goBack')}\n </Button>\n }\n {!addExerciseSubmissionMutation.isSuccess\n && <Button\n variant=\"contained\"\n disabled={addExerciseSubmissionMutation.isError || addExerciseSubmissionMutation.isPending}\n onClick={submitExercise}\n sx={{ mt: 1, mr: 1 }}\n color=\"info\"\n >\n {t('exercises.submitExercise')}\n </Button>\n }\n {addExerciseSubmissionMutation.isSuccess\n && <Button\n variant=\"contained\"\n onClick={() => navigate(makeLink(WgerLink.EXERCISE_DETAIL, i18n.language, { id: addExerciseSubmissionMutation.data! }))}\n sx={{ mt: 1, mr: 1 }}\n color=\"success\"\n >\n {t('seeDetails')}\n <NavigateNextIcon />\n </Button>\n }\n </div>\n </Box>\n </Grid>\n </Grid>\n </>;\n};\n","import { Box, Container, Stack, Step, StepContent, StepLabel, Stepper, Typography, } from \"@mui/material\";\nimport { Step1Basics } from \"components/Exercises/Add/Step1Basics\";\nimport { Step2Variations } from \"components/Exercises/Add/Step2Variations\";\nimport { Step3Description } from \"components/Exercises/Add/Step3Description\";\nimport { Step4Translations } from \"components/Exercises/Add/Step4Translations\";\nimport { Step5Images } from \"components/Exercises/Add/Step5Images\";\nimport { Step6Overview } from \"components/Exercises/Add/Step6Overview\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport * as exerciseState from \"state\";\n\nexport type StepProps = {\n onContinue?: () => void;\n onBack?: React.MouseEventHandler<HTMLButtonElement>;\n};\n\nexport const AddExerciseStepper = () => {\n const [t] = useTranslation();\n const [activeStep, setActiveStep] = React.useState(0);\n\n const handleNext = () => {\n setActiveStep(prevActiveStep => prevActiveStep + 1);\n };\n\n const handleBack = () => {\n setActiveStep(prevActiveStep => prevActiveStep - 1);\n };\n\n return (\n <exerciseState.ExerciseSubmissionStateProvider>\n <Container maxWidth=\"md\">\n <Stack direction={\"row\"}>\n <Typography gutterBottom variant=\"h3\" component=\"div\">\n {t(\"exercises.contributeExercise\")}\n </Typography>\n </Stack>\n <Box>\n <Stepper activeStep={activeStep} orientation=\"vertical\">\n <Step key={1}>\n <StepLabel>{t(\"exercises.step1HeaderBasics\")}</StepLabel>\n <StepContent>\n <Step1Basics\n onContinue={handleNext}\n onBack={handleBack}\n />\n </StepContent>\n </Step>\n <Step key={2}>\n <StepLabel>{t(\"exercises.variations\")}</StepLabel>\n <StepContent>\n <Step2Variations\n onContinue={handleNext}\n onBack={handleBack}\n />\n </StepContent>\n </Step>\n <Step key={3}>\n <StepLabel>{t(\"description\")}</StepLabel>\n <StepContent>\n <Step3Description\n onContinue={handleNext}\n onBack={handleBack}\n />\n </StepContent>\n </Step>\n <Step key={4}>\n <StepLabel>{t(\"translation\")}</StepLabel>\n <StepContent>\n <Step4Translations\n onContinue={handleNext}\n onBack={handleBack}\n />\n </StepContent>\n </Step>\n <Step key={5}>\n <StepLabel>{t(\"images\")}</StepLabel>\n <StepContent>\n <Step5Images\n onContinue={handleNext}\n onBack={handleBack}\n />\n </StepContent>\n </Step>\n <Step key={6}>\n <StepLabel>{t(\"overview\")}</StepLabel>\n <StepContent>\n <Step6Overview\n onBack={handleBack}\n />\n </StepContent>\n </Step>\n </Stepper>\n </Box>\n </Container>\n </exerciseState.ExerciseSubmissionStateProvider>\n );\n};\n","import React from \"react\";\nimport { Box, Button, Container, Typography } from \"@mui/material\";\nimport { useTranslation } from \"react-i18next\";\nimport { useCanContributeExercises } from \"components/User/queries/contribute\";\nimport { MIN_ACCOUNT_AGE } from \"utils/consts\";\nimport ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';\n\nexport const NotEnoughRights = () => {\n const [t] = useTranslation();\n const contributeQuery = useCanContributeExercises();\n\n return (\n <Container maxWidth=\"md\">\n <Typography variant={\"h3\"}>{t('exercises.notEnoughRightsHeader')}</Typography>\n <Box\n marginTop={4}\n padding={4}\n sx={{\n width: \"100%\",\n backgroundColor: \"#ebebeb\",\n textAlign: \"center\",\n }}\n >\n <Typography mb={2}>{t('exercises.notEnoughRights', { days: MIN_ACCOUNT_AGE })}</Typography>\n\n {!contributeQuery.anonymous && !contributeQuery.emailVerified\n &&\n <Button variant=\"contained\"\n href={'/user/preferences'}\n endIcon={<ArrowForwardIosIcon />}>\n {t('preferences')}\n </Button>\n }\n </Box>\n </Container>\n );\n};\n","import React from 'react';\nimport { AddExerciseStepper } from \"components/Exercises/Add/AddExerciseStepper\";\nimport { useCanContributeExercises } from \"components/User/queries/contribute\";\nimport { NotEnoughRights } from \"components/Exercises/Add/NotEnoughRights\";\n\nexport const AddExercise = () => {\n const contributeQuery = useCanContributeExercises();\n\n return <>\n {contributeQuery.canContribute\n ? <AddExerciseStepper />\n : <NotEnoughRights />}\n\n </>;\n};","import React from 'react';\n\nexport const AddWeight = () => {\n return (\n <div>\n Add Weight Page\n </div>\n );\n};","import { useMediaQuery, useTheme } from '@mui/material';\nimport React from 'react';\nimport { dateToYYYYMMDD, isSameDay } from \"../../../utils/date\";\nimport { DayProps } from \"./CalendarComponent\";\n\ninterface CalendarDayProps {\n day: DayProps;\n currentMonth: number;\n currentDate: Date;\n selectedDay: DayProps;\n onClick: (day: DayProps) => void;\n}\n\nconst CalendarDay: React.FC<CalendarDayProps> = ({ day, currentMonth, currentDate, selectedDay, onClick }) => {\n const theme = useTheme();\n const isMobile = useMediaQuery(theme.breakpoints.down('sm'));\n const isTablet = useMediaQuery(theme.breakpoints.down('md'));\n\n const isSelected = isSameDay(day.date, selectedDay.date);\n const isToday = isSameDay(day.date, currentDate);\n const isClickable = day.date.getTime() <= currentDate.getTime();\n const isWeekend = day.date.getDay() === 6 || day.date.getDay() === 0;\n\n const getDayColor = (): string => {\n if (isSelected || isToday) return 'white';\n if (!isClickable) return 'gray';\n return isWeekend ? '#E53945' : 'black';\n };\n\n const getDaySize = () => {\n if (isMobile) return 35;\n if (isTablet) return 40;\n return 50;\n };\n\n const getDotSize = () => {\n if (isMobile) return 8;\n if (isTablet) return 9;\n return 10;\n };\n\n const hasDayEntry = () => {\n return day.measurements.length > 0 ||\n day.weightEntry !== undefined ||\n day.workoutSession !== undefined;\n };\n\n const handleClick = () => {\n if (isClickable) {\n onClick(day);\n }\n };\n\n const daySize = getDaySize();\n const dotSize = getDotSize();\n\n return (\n <div style={{\n position: 'relative',\n width: `${daySize}px`,\n height: `${daySize + (dotSize / 2)}px`,\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center'\n }}>\n <div\n style={{\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n width: `${daySize}px`,\n height: `${daySize}px`,\n fontSize: isMobile ? '0.8rem' : isTablet ? '0.9rem' : '1rem',\n color: isSelected ? 'white' : isToday ? 'white' : getDayColor(),\n backgroundColor: isSelected ? '#E53945' : isToday ? '#FEC107' : 'transparent',\n borderRadius: '50%',\n fontWeight: 'bold',\n cursor: isClickable ? 'pointer' : 'default',\n opacity: day.date.getMonth() !== currentMonth ? 0.25 : 1,\n }}\n data-testid={`day-${dateToYYYYMMDD(day.date)}`}\n onClick={handleClick}\n >\n {day.date.getDate()}\n </div>\n {hasDayEntry() && (\n <div\n style={{\n width: `${dotSize}px`,\n height: `${dotSize}px`,\n backgroundColor: 'black',\n borderRadius: '50%',\n position: 'absolute',\n bottom: 0,\n left: '50%',\n transform: 'translateX(-50%)',\n zIndex: 2\n }}\n />\n )}\n </div>\n );\n};\n\nexport default CalendarDay;","import { Typography } from '@mui/material';\nimport Grid from \"@mui/material/Grid\";\nimport React from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { DayProps } from \"./CalendarComponent\";\nimport CalendarDay from './CalendarDay';\n\ninterface CalendarDayGridProps {\n days: DayProps[];\n currentMonth: number;\n currentDate: Date;\n selectedDay: DayProps;\n onDayClick: (day: DayProps) => void;\n}\n\nconst CalendarDayGrid: React.FC<CalendarDayGridProps> = ({\n days,\n currentMonth,\n currentDate,\n selectedDay,\n onDayClick\n }) => {\n const { i18n } = useTranslation();\n const weekDays = Array.from({ length: 7 }, (_, i) =>\n new Date(1970, 0, i + 5).toLocaleString(i18n.language, { weekday: 'short' })\n );\n\n return (\n <Grid container spacing={1} rowSpacing={2}>\n {weekDays.map((day, index) => (\n <Grid size={12 / 7} key={`weekday-${index}`}>\n <Typography variant=\"body1\" sx={{ fontWeight: 'bold', textAlign: 'center' }}>\n {day}\n </Typography>\n </Grid>\n ))}\n\n {days.map((day, index) => (\n <Grid size={12 / 7} key={`day-${index}`} sx={{ display: 'flex', justifyContent: 'center' }}>\n <CalendarDay\n day={day}\n currentMonth={currentMonth}\n currentDate={currentDate}\n selectedDay={selectedDay}\n onClick={onDayClick}\n />\n </Grid>\n ))}\n </Grid>\n );\n};\n\nexport default CalendarDayGrid;","import React from 'react';\nimport { Button, Typography } from '@mui/material';\nimport {useTranslation} from \"react-i18next\";\n\ninterface CalendarHeaderProps {\n currentMonth: number;\n currentYear: number;\n onPrevMonth: () => void;\n onNextMonth: () => void;\n}\n\nconst CalendarHeader: React.FC<CalendarHeaderProps> = ({currentMonth, currentYear, onPrevMonth, onNextMonth,}) => {\n const { i18n } = useTranslation();\n const months = Array.from({ length: 12 }, (_, index) =>\n new Date(2024, index, 1).toLocaleString(i18n.language, { month: \"long\" })\n );\n\n return (\n <div style={{\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n width: '100%',\n paddingBottom: '3%'\n }}>\n <Button variant=\"outlined\" onClick={onPrevMonth}>\n &lt;\n </Button>\n <Typography variant=\"h5\">\n {months[currentMonth]} {currentYear}\n </Typography>\n <Button variant=\"outlined\" onClick={onNextMonth}>\n &gt;\n </Button>\n </div>\n );\n};\n\nexport default CalendarHeader;","export class CalendarMeasurement {\n\n constructor(\n public name: string,\n public unit: string,\n public value: number,\n public date: Date,\n ) {\n }\n}","import { ExpandLess, ExpandMore } from '@mui/icons-material';\nimport {\n Card,\n CardContent,\n CardHeader,\n Collapse,\n List,\n ListItem,\n ListItemButton,\n ListItemText,\n Typography\n} from '@mui/material';\nimport React from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { DayProps } from \"./CalendarComponent\";\n\ninterface LogProps {\n selectedDay: DayProps;\n}\n\nconst Entries: React.FC<LogProps> = ({ selectedDay }) => {\n const [t] = useTranslation();\n\n const [openMeasurements, setOpenMeasurements] = React.useState(false);\n const [openSession, setOpenSession] = React.useState(false);\n const [openNutritionDiary, setOpenNutritionDiary] = React.useState(false);\n\n return (\n <Card\n sx={{\n width: { xs: 'auto', md: '45%' },\n height: { xs: '60%', md: '100%' },\n m: { xs: 0, sm: 1, md: 2 },\n p: { xs: 1, sm: 1.5, md: 2 }\n }}\n >\n <CardHeader\n title={\n <Typography variant=\"h5\" component=\"div\" sx={{ fontWeight: 'bold' }}>\n {t(\"entries\")} - {selectedDay.date.toLocaleDateString()}\n </Typography>\n }\n />\n <CardContent sx={{\n flex: 1,\n height: '100%',\n overflow: 'auto',\n display: 'flex',\n flexDirection: 'column',\n gap: 2\n }}>\n <List>\n {/* Weight entries */}\n {selectedDay.weightEntry &&\n <ListItem>\n <ListItemText\n primary={t(\"weight\")}\n secondary={selectedDay.weightEntry.weight.toFixed(1)}\n sx={{ pl: 2 }}\n />\n </ListItem>}\n\n {/* One measurement */}\n {selectedDay.measurements.length === 1 &&\n <ListItem>\n <ListItemText\n primary={t(\"measurements.measurements\")}\n secondary={`${selectedDay.measurements[0].name}: ${selectedDay.measurements[0].value} ${selectedDay.measurements[0].unit}`}\n sx={{ pl: 2 }}\n />\n </ListItem>}\n\n {/* Measurements */}\n {selectedDay.measurements.length > 1 && <>\n <ListItem>\n <ListItemButton\n onClick={() => setOpenMeasurements(!openMeasurements)}\n selected={openMeasurements}\n >\n <ListItemText primary={t(\"measurements.measurements\")} />\n {openMeasurements ? <ExpandLess /> : <ExpandMore />}\n </ListItemButton>\n </ListItem>\n <Collapse in={openMeasurements} timeout=\"auto\" unmountOnExit>\n <List sx={{ pl: 4, pt: 0 }}>\n {selectedDay.measurements.map((measurement, key) => (\n <ListItem key={key} dense>\n <ListItemText\n primary={measurement.name}\n secondary={`${measurement.value} ${measurement.unit}`}\n />\n </ListItem>))}\n </List>\n </Collapse>\n </>}\n\n {/* Workout session */}\n {selectedDay.workoutSession && <>\n <ListItem>\n <ListItemButton\n onClick={() => setOpenSession(!openSession)}\n selected={openSession}\n >\n <ListItemText\n primary={t(\"routines.workoutSession\")}\n secondary={selectedDay.workoutSession.textRepresentation}\n sx={{\n '& .MuiListItemText-secondary': {\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis'\n }\n }}\n />\n {openSession ? <ExpandLess /> : <ExpandMore />}\n </ListItemButton>\n </ListItem>\n <Collapse in={openSession} timeout=\"auto\" unmountOnExit>\n <List sx={{ pl: 4, pt: 0 }}>\n {selectedDay.workoutSession.logs.map((log, key) => (\n <ListItem key={key} dense>\n <ListItemText\n primary={log.exerciseObj?.getTranslation().name}\n secondary={`${log.repetitions} × ${log.weight} `}\n />\n </ListItem>))}\n </List>\n </Collapse>\n\n </>}\n\n {/* Nutrition diary */}\n {selectedDay.nutritionLogs.length > 0 && <>\n <ListItem>\n <ListItemButton\n onClick={() => setOpenNutritionDiary(!openNutritionDiary)}\n selected={openNutritionDiary}\n >\n <ListItemText primary={t(\"nutrition.nutritionalDiary\")} />\n {openNutritionDiary ? <ExpandLess /> : <ExpandMore />}\n </ListItemButton>\n </ListItem>\n <Collapse in={openNutritionDiary} timeout=\"auto\" unmountOnExit>\n <List sx={{ pl: 4, pt: 0 }}>\n {selectedDay.nutritionLogs.map((log, key) => (\n <ListItem key={key} dense>\n <ListItemText\n primary={log.ingredient?.name}\n secondary={`${log.amount} ${t('nutrition.gramShort')}`}\n />\n </ListItem>))}\n </List>\n </Collapse>\n </>}\n </List>\n\n </CardContent>\n </Card>\n );\n};\n\nexport default Entries;","import CalendarMonthIcon from '@mui/icons-material/CalendarMonth';\nimport { Box, Card, CardContent, CardHeader, useMediaQuery, useTheme } from '@mui/material';\nimport { WeightEntry } from \"components/BodyWeight/model\";\nimport { useBodyWeightQuery } from \"components/BodyWeight/queries\";\nimport CalendarDayGrid from \"components/Calendar/Components/CalendarDayGrid\";\nimport CalendarHeader from \"components/Calendar/Components/CalendarHeader\";\nimport { CalendarMeasurement } from \"components/Calendar/Helpers/CalendarMeasurement\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { useMeasurementsCategoryQuery } from \"components/Measurements/queries\";\nimport { DiaryEntry } from \"components/Nutrition/models/diaryEntry\";\nimport { useNutritionDiaryQuery } from \"components/Nutrition/queries\";\nimport { WorkoutSession } from \"components/WorkoutRoutines/models/WorkoutSession\";\nimport { useSessionsQuery } from \"components/WorkoutRoutines/queries\";\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { dateToYYYYMMDD, isSameDay } from \"utils/date\";\nimport Entries from './Entries';\n\nexport interface DayProps {\n date: Date,\n weightEntry: WeightEntry | undefined,\n measurements: CalendarMeasurement[],\n nutritionLogs: DiaryEntry[],\n workoutSession: WorkoutSession | undefined,\n}\n\n\nconst CalendarComponent = () => {\n const [t] = useTranslation();\n\n const currentDate = new Date();\n const [currentMonth, setCurrentMonth] = useState(currentDate.getMonth());\n const [currentYear, setCurrentYear] = useState(currentDate.getFullYear());\n\n const startOfMonth = new Date(currentYear, currentMonth, 1);\n const endOfMonth = new Date(currentYear, currentMonth + 1, 0);\n\n\n const weightsQuery = useBodyWeightQuery();\n const sessionQuery = useSessionsQuery({\n filtersetQuerySessions: {\n \"date__gte\": dateToYYYYMMDD(startOfMonth),\n \"date__lte\": dateToYYYYMMDD(endOfMonth),\n },\n filtersetQueryLogs: {\n \"date__gte\": dateToYYYYMMDD(startOfMonth),\n \"date__lte\": dateToYYYYMMDD(endOfMonth),\n }\n });\n const measurementQuery = useMeasurementsCategoryQuery({\n filtersetQueryEntries: {\n \"date__gte\": dateToYYYYMMDD(startOfMonth),\n \"date__lte\": dateToYYYYMMDD(endOfMonth),\n }\n });\n const nutritionDiaryQuery = useNutritionDiaryQuery({\n filtersetQuery: {\n \"datetime__gte\": dateToYYYYMMDD(startOfMonth),\n \"datetime__lte\": dateToYYYYMMDD(endOfMonth),\n }\n });\n\n const isLoading = weightsQuery.isLoading || sessionQuery.isLoading || measurementQuery.isLoading || nutritionDiaryQuery.isLoading;\n const isSuccess = weightsQuery.isSuccess && sessionQuery.isSuccess && measurementQuery.isSuccess && nutritionDiaryQuery.isSuccess;\n\n const categories = measurementQuery.data;\n const measurements = categories?.flatMap(category =>\n category.entries.map(entry => new CalendarMeasurement(category.name, category.unit, entry.value, entry.date))\n ) ?? [];\n\n const getDaysInMonth = (year: number, month: number): DayProps[] => {\n const date = new Date(year, month, 1);\n const days: DayProps[] = [];\n\n const firstDayOfMonth = new Date(year, month, 1);\n let dayOfWeek = firstDayOfMonth.getDay();\n dayOfWeek = dayOfWeek === 0 ? 6 : dayOfWeek - 1;\n\n for (let i = 0; i < dayOfWeek; i++) {\n days.push({\n date: new Date(year, month, -dayOfWeek + i + 1),\n weightEntry: undefined,\n measurements: [],\n nutritionLogs: [],\n workoutSession: undefined\n });\n }\n\n while (date.getMonth() === month) {\n days.push({\n date: new Date(date),\n weightEntry: weightsQuery.data?.find(w => isSameDay(w.date, date)),\n measurements: measurements.filter(m => isSameDay(m.date, date)) || [],\n workoutSession: sessionQuery.data?.find(m => isSameDay(m.date, date)) || undefined,\n nutritionLogs: nutritionDiaryQuery.data?.filter(m => isSameDay(m.datetime, date)) || [],\n });\n date.setDate(date.getDate() + 1);\n }\n\n const lastDayOfMonth = new Date(year, month + 1, 0);\n dayOfWeek = lastDayOfMonth.getDay();\n const remainingDays = dayOfWeek === 0 ? 0 : 7 - dayOfWeek;\n\n for (let i = 1; i <= remainingDays; i++) {\n days.push({\n date: new Date(year, month + 1, i),\n weightEntry: undefined,\n workoutSession: undefined,\n measurements: [],\n nutritionLogs: []\n });\n }\n\n return days;\n };\n\n const defaultDay: DayProps = {\n date: currentDate,\n weightEntry: undefined,\n workoutSession: undefined,\n measurements: [],\n nutritionLogs: []\n };\n\n const days = useMemo(() =>\n getDaysInMonth(currentYear, currentMonth),\n [currentYear, currentMonth, weightsQuery.data, sessionQuery.data, measurementQuery.data, nutritionDiaryQuery.data]\n );\n const [selectedDay, setSelectedDay] = useState<DayProps>(days.find(day => isSameDay(day.date, currentDate)) || defaultDay);\n\n const theme = useTheme();\n const isMobile = useMediaQuery(theme.breakpoints.down('sm'));\n\n useEffect(() => {\n if (isSuccess) {\n const todayWithData = days.find(day => isSameDay(day.date, currentDate));\n if (todayWithData) {\n setSelectedDay(todayWithData);\n }\n }\n }, [isSuccess]);\n\n\n useEffect(() => {\n setCurrentMonth(selectedDay.date.getMonth());\n setCurrentYear(selectedDay.date.getFullYear());\n }, [selectedDay]);\n\n const handleDayClick = (day: DayProps) => {\n setSelectedDay(day);\n };\n\n const handlePrevMonth = () => {\n if (currentMonth === 0) {\n setCurrentMonth(11);\n setCurrentYear(currentYear - 1);\n } else {\n setCurrentMonth(currentMonth - 1);\n }\n };\n\n const handleNextMonth = () => {\n if (currentMonth < currentDate.getMonth() || currentYear < currentDate.getFullYear()) {\n if (currentMonth === 11) {\n setCurrentMonth(0);\n setCurrentYear(currentYear + 1);\n } else {\n setCurrentMonth(currentMonth + 1);\n }\n }\n };\n\n return (\n <Box sx={{\n display: 'flex',\n gap: 2,\n flexDirection: { xs: 'column', md: 'row' },\n height: { xs: 'auto', md: 'calc(100vh - 130px)' },\n width: '100%',\n }}>\n <Card sx={{\n width: { xs: 'auto', md: '65%' },\n height: { xs: 'auto', md: '100%' },\n m: { xs: 0, sm: 1, md: 2 },\n p: { xs: 1, sm: 1.5, md: 2 },\n display: 'flex',\n flexDirection: 'column'\n }}>\n <CardHeader\n sx={{ '& .MuiCardHeader-content': { width: '100%' } }}\n title={\n <div style={{ display: 'flex', flexDirection: 'column', width: '100%' }}>\n <div style={{\n display: 'flex',\n alignItems: 'center',\n marginBottom: '16px'\n }}>\n <CalendarMonthIcon style={{\n width: isMobile ? '28px' : '32px',\n height: isMobile ? '28px' : '32px',\n marginRight: '12px'\n }} />\n <span style={{\n fontSize: isMobile ? '1.5rem' : '1.8rem',\n fontWeight: 'bold'\n }}>\n {t(\"calendar\")}\n </span>\n </div>\n </div>\n }\n />\n <CardContent sx={{\n overflow: 'auto',\n flex: 1,\n '&:last-child': { paddingBottom: 2 }\n }}>\n <CalendarHeader\n currentMonth={currentMonth}\n currentYear={currentYear}\n onPrevMonth={handlePrevMonth}\n onNextMonth={handleNextMonth}\n />\n <CalendarDayGrid\n days={days}\n currentMonth={currentMonth}\n currentDate={currentDate}\n selectedDay={selectedDay}\n onDayClick={handleDayClick}\n />\n </CardContent>\n </Card>\n {isLoading &&\n <Card\n sx={{\n width: { xs: 'auto', md: '65%' },\n height: { xs: '60%', md: '100%' },\n m: { xs: 0, sm: 1, md: 2 },\n p: { xs: 1, sm: 1.5, md: 2 }\n }}\n >\n <LoadingPlaceholder />\n </Card>}\n\n {isSuccess && <Entries selectedDay={selectedDay} />}\n </Box>\n );\n};\n\nexport default CalendarComponent;","import React from 'react';\nimport CalendarComponent from \"../../components/Calendar/Components/CalendarComponent\";\n\nexport const Calendar = () => {\n return (\n <div>\n <CalendarComponent/>\n </div>\n );\n};","import React from 'react';\n\nexport const CaloriesCalculator = () => {\n return (\n <div>\n Calories Calculator Page\n </div>\n );\n};","import React from 'react';\n\nexport const Equipments = () => {\n return (\n <div>\n Equipments Page\n </div>\n );\n};","import React from 'react';\n\nexport const Ingredients = () => {\n return (\n <div>\n Ingredients Page\n </div>\n );\n};","import React from 'react';\n\nexport const Login = () => {\n return (\n <div>\n Login Page\n </div>\n );\n};","import React from 'react';\n\nexport const Preferences = () => {\n return (\n <div>\n Preferences Page\n </div>\n );\n};","import React from 'react';\n\nexport const ApiPage = () => {\n return (\n <div>\n RestApi Page\n </div>\n );\n};","import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown';\n\nimport { Button, Menu, MenuItem } from \"@mui/material\";\nimport { WeightForm } from \"components/BodyWeight/Form/WeightForm\";\nimport { WeightEntry } from \"components/BodyWeight/model\";\nimport { useDeleteWeightEntryQuery } from \"components/BodyWeight/queries\";\nimport { WgerModal } from \"components/Core/Modals/WgerModal\";\nimport React from 'react';\nimport { useTranslation } from \"react-i18next\";\n\ninterface ActionButtonProps {\n weight: WeightEntry;\n}\n\nexport const ActionButton = ({ weight }: ActionButtonProps) => {\n const deleteWeightEntryQuery = useDeleteWeightEntryQuery();\n\n\n const [t] = useTranslation();\n const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);\n const [openModal, setOpenModal] = React.useState(false);\n const open = Boolean(anchorEl);\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleEdit = () => {\n handleClose();\n handleOpenModal();\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n const handleDelete = () => {\n deleteWeightEntryQuery.mutate(weight.id!);\n setAnchorEl(null);\n };\n\n const handleOpenModal = () => setOpenModal(true);\n const handleCloseModal = () => setOpenModal(false);\n\n\n return (\n <div>\n <Button onClick={handleClick}>\n <ArrowDropDownIcon />\n </Button>\n <Menu\n anchorEl={anchorEl}\n open={open}\n onClose={handleClose}\n MenuListProps={{\n 'aria-labelledby': 'basic-button',\n }}\n >\n <MenuItem onClick={handleEdit}>{t(\"edit\")}</MenuItem>\n <MenuItem onClick={handleDelete}>{t(\"delete\")}</MenuItem>\n </Menu>\n\n <WgerModal title={t('edit')} isOpen={openModal} closeFn={handleCloseModal}>\n <WeightForm weightEntry={weight} closeFn={handleCloseModal} />\n </WgerModal>\n </div>\n );\n};\n","import React from 'react';\nimport { Fab } from '@mui/material';\nimport AddIcon from '@mui/icons-material/Add';\nimport { WeightForm } from \"components/BodyWeight/Form/WeightForm\";\nimport { WgerModal } from \"components/Core/Modals/WgerModal\";\nimport { useTranslation } from \"react-i18next\";\n\n\nexport const WeightEntryFab = () => {\n\n const [t] = useTranslation();\n const [openModal, setOpenModal] = React.useState(false);\n const handleOpenModal = () => setOpenModal(true);\n const handleCloseModal = () => setOpenModal(false);\n\n return (\n <div>\n <Fab\n color=\"primary\"\n aria-label=\"add\"\n onClick={handleOpenModal}\n sx={{\n position: 'fixed',\n bottom: '5rem',\n right: (theme) => `max(${theme.spacing(2)}, calc((100vw - ${theme.breakpoints.values.lg}px) / 2 + ${theme.spacing(2)}))`,\n zIndex: 9,\n }}>\n <AddIcon />\n </Fab>\n <WgerModal title={t('add')} isOpen={openModal} closeFn={handleCloseModal}>\n <WeightForm closeFn={handleCloseModal} />\n </WgerModal>\n </div>\n );\n};","import { WeightEntry } from \"components/BodyWeight/model\";\n\nexport const processWeight = (weights: WeightEntry[]) => {\n // go through weights, referencing the same weights to have days and weight changes\n return weights.map((entry, i) => {\n\n // since there is no day before day 1, changes are 0\n if (i === 0) {\n return {\n entry,\n change: 0,\n days: Math.abs(entry.date.getTime() - entry.date.getTime()) / (1000 * 60 * 60 * 24)\n };\n }\n\n return {\n entry,\n change: weights[i].weight - weights[i - 1].weight,\n days: Math.abs(entry.date.getTime() - weights[i - 1].date.getTime()) / (1000 * 60 * 60 * 24)\n };\n });\n};","import { Table, TableBody, TableCell, TableContainer, TableHead, TablePagination, TableRow } from '@mui/material';\nimport { styled } from '@mui/material/styles';\nimport { WeightEntry } from \"components/BodyWeight/model\";\nimport { ActionButton } from 'components/BodyWeight/Table/ActionButton/ActionButton';\nimport { WeightEntryFab } from \"components/BodyWeight/Table/Fab/Fab\";\nimport React, { useState } from 'react';\nimport { useTranslation } from \"react-i18next\";\nimport { dateTimeToLocale } from \"utils/date\";\nimport { processWeight } from '../utils';\n\n\nconst PREFIX = 'WeightTable';\n\nconst classes = {\n table: `${PREFIX}-table`\n};\n\nconst Root = styled('div')((\n {\n theme: Theme\n }\n) => {\n return {\n [`&.${classes.table}`]: {\n \"& .MuiPaper-root\": {\n border: \"1px solid #bababa\",\n\n }\n },\n };\n});\n\n\nexport interface WeightTableProps {\n weights: WeightEntry[];\n}\n\nexport const WeightTable = ({ weights }: WeightTableProps) => {\n\n const availableResultsPerPage = [10, 50, 100];\n\n const { t } = useTranslation();\n\n const processedWeights = processWeight(weights);\n const [rowsPerPage, setRowsPerPage] = useState(availableResultsPerPage[0]);\n const [page, setPage] = useState(0);\n\n const handleChangePage = (event: unknown, newPage: number) => {\n setPage(newPage);\n };\n\n const handleChangeRowsPerPage = (event: React.ChangeEvent<HTMLInputElement>) => {\n setRowsPerPage(parseInt(event.target.value, 10));\n setPage(0);\n };\n\n return (\n <Root className={classes.table}>\n <TableContainer>\n <Table sx={{ minWidth: 650 }} aria-label=\"simple table\">\n <TableHead>\n <TableRow>\n <TableCell align=\"center\">{t('date')}</TableCell>\n <TableCell align=\"center\">{t('weight')}</TableCell>\n <TableCell align=\"center\">{t('difference')}</TableCell>\n <TableCell align=\"center\">{t('days')}</TableCell>\n <TableCell align=\"center\" />\n </TableRow>\n </TableHead>\n <TableBody>\n {processedWeights.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((row) => (\n <TableRow\n key={row.entry.date.toISOString()}\n sx={{ '&:last-child td, &:last-child th': { border: 0 } }}\n >\n <TableCell component=\"th\" scope=\"row\" align=\"center\">\n {dateTimeToLocale(row.entry.date)}\n </TableCell>\n <TableCell align=\"center\">{row.entry.weight}</TableCell>\n <TableCell align=\"center\">{+row.change.toFixed(2)}</TableCell>\n <TableCell align=\"center\">{row.days.toFixed(1)}</TableCell>\n <TableCell align=\"center\">\n <ActionButton weight={row.entry} />\n </TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n <TablePagination\n rowsPerPageOptions={availableResultsPerPage}\n component=\"div\"\n count={processedWeights.length}\n rowsPerPage={rowsPerPage}\n page={page}\n onPageChange={handleChangePage}\n onRowsPerPageChange={handleChangeRowsPerPage}\n />\n </TableContainer>\n <WeightEntryFab />\n </Root>\n );\n};","import AddIcon from \"@mui/icons-material/Add\";\nimport { Fab } from \"@mui/material\";\nimport { WeightForm } from \"components/BodyWeight/Form/WeightForm\";\nimport { WgerModal } from \"components/Core/Modals/WgerModal\";\nimport { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\nexport const AddBodyWeightEntryFab = () => {\n const [t] = useTranslation();\n const [openModal, setOpenModal] = useState(false);\n const handleOpenModal = () => setOpenModal(true);\n const handleCloseModal = () => setOpenModal(false);\n\n return (\n <div>\n <Fab\n color=\"secondary\"\n aria-label=\"add\"\n onClick={handleOpenModal}\n sx={{\n position: 'fixed',\n bottom: '5rem',\n right: (theme) => `max(${theme.spacing(2)}, calc((100vw - ${theme.breakpoints.values.lg}px) / 2 + ${theme.spacing(2)}))`,\n zIndex: 9,\n }}>\n <AddIcon />\n </Fab>\n <WgerModal title={t('add')} isOpen={openModal} closeFn={handleCloseModal}>\n <WeightForm closeFn={handleCloseModal} />\n </WgerModal>\n </div>\n );\n};\n","import { Button, ButtonGroup } from \"@mui/material\";\nimport { useTheme } from '@mui/material/styles';\nimport { useTranslation } from \"react-i18next\";\n\nexport type FilterType = 'lastYear' | 'lastHalfYear' | 'lastMonth' | 'lastWeek' | '';\n\nexport interface FilterButtonsProps {\n currentFilter: FilterType;\n onFilterChange: (newFilter: FilterType) => void;\n}\n\nexport const FilterButtons = ({ currentFilter, onFilterChange }: FilterButtonsProps) => {\n\n const [t] = useTranslation();\n\n const theme = useTheme();\n\n // Won't call onFilterChange if the filter stays the same \n const handleFilterChange = (newFilter: FilterType) => {\n if (currentFilter !== newFilter) {\n onFilterChange(newFilter);\n }\n };\n\n return (\n <ButtonGroup variant=\"outlined\" sx={{ mb: 2 }}>\n <Button\n onClick={() => handleFilterChange('')}\n color={currentFilter === '' ? 'primary' : 'inherit'}\n variant={currentFilter === '' ? 'contained' : 'outlined'}\n sx={{ fontFamily: theme.typography.fontFamily }}\n >\n {t('all')}\n </Button>\n <Button\n onClick={() => handleFilterChange('lastYear')}\n color={currentFilter === 'lastYear' ? 'primary' : 'inherit'}\n variant={currentFilter === 'lastYear' ? 'contained' : 'outlined'}\n sx={{ fontFamily: theme.typography.fontFamily }}\n >\n {t('lastYear')}\n </Button>\n <Button\n onClick={() => handleFilterChange('lastHalfYear')}\n color={currentFilter === 'lastHalfYear' ? 'primary' : 'inherit'}\n variant={currentFilter === 'lastHalfYear' ? 'contained' : 'outlined'}\n sx={{ fontFamily: theme.typography.fontFamily }}\n >\n {t('lastHalfYear')}\n </Button>\n <Button\n onClick={() => handleFilterChange('lastMonth')}\n color={currentFilter === 'lastMonth' ? 'primary' : 'inherit'}\n variant={currentFilter === 'lastMonth' ? 'contained' : 'outlined'}\n sx={{ fontFamily: theme.typography.fontFamily }}\n >\n {t('lastMonth')}\n </Button>\n <Button\n onClick={() => handleFilterChange('lastWeek')}\n color={currentFilter === 'lastWeek' ? 'primary' : 'inherit'}\n variant={currentFilter === 'lastWeek' ? 'contained' : 'outlined'}\n sx={{ fontFamily: theme.typography.fontFamily }}\n >\n {t('lastWeek')}\n </Button>\n </ButtonGroup>\n );\n};\n","import { Box, Stack } from \"@mui/material\";\nimport { useBodyWeightQuery } from \"components/BodyWeight/queries\";\nimport { WeightTable } from \"components/BodyWeight/Table\";\nimport { WeightChart } from \"components/BodyWeight/WeightChart\";\nimport { AddBodyWeightEntryFab } from \"components/BodyWeight/widgets/fab\";\nimport { FilterButtons, FilterType } from \"components/BodyWeight/widgets/FilterButtons\";\nimport { LoadingPlaceholder } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { WgerContainerRightSidebar } from \"components/Core/Widgets/Container\";\nimport { OverviewEmpty } from \"components/Core/Widgets/OverviewEmpty\";\nimport { useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\n\nexport const BodyWeight = () => {\n const [t] = useTranslation();\n const [filter, setFilter] = useState<FilterType>('lastYear');\n const weightyQuery = useBodyWeightQuery(filter);\n const handleFilterChange = (newFilter: FilterType) => {\n setFilter(newFilter);\n };\n\n if (weightyQuery.isLoading) {\n return <LoadingPlaceholder />;\n }\n\n return <WgerContainerRightSidebar\n title={t(\"weight\")}\n mainContent={<Stack spacing={2}>\n <FilterButtons currentFilter={filter} onFilterChange={handleFilterChange} />\n {weightyQuery.data!.length === 0 && <OverviewEmpty />}\n {weightyQuery.data!.length !== 0 && <>\n <WeightChart weights={weightyQuery.data!} />\n <Box sx={{ mt: 4 }} />\n <WeightTable weights={weightyQuery.data!} />\n </>}\n </Stack>\n }\n fab={<AddBodyWeightEntryFab />}\n />;\n};","import { Button, Menu, MenuItem } from \"@mui/material\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Link } from 'react-router-dom';\nimport { makeLink, WgerLink } from \"utils/url\";\n\nexport const BodyWeightSubMenu = () => {\n const { i18n } = useTranslation();\n const [anchorElWeight, setAnchorElWeight] = React.useState<null | HTMLElement>(null);\n\n return (\n <>\n <Button color=\"inherit\" onClick={(event) => setAnchorElWeight(event.currentTarget)}>\n Weight\n </Button>\n <Menu\n anchorEl={anchorElWeight}\n open={Boolean(anchorElWeight)}\n onClose={() => setAnchorElWeight(null)}\n >\n <MenuItem component={Link} to={makeLink(WgerLink.WEIGHT_OVERVIEW, i18n.language)}>\n Weight overview\n </MenuItem>\n </Menu>\n </>\n );\n};\n","import { Link } from 'react-router-dom';\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Menu, MenuItem } from \"@mui/material\";\nimport { makeLink, WgerLink } from \"utils/url\";\nimport React from \"react\";\n\nexport const MeasurementsSubMenu = () => {\n\n const { i18n } = useTranslation();\n const [anchorElMeasurements, setAnchorElMeasurements] = React.useState<null | HTMLElement>(null);\n\n return (\n <>\n <Button color=\"inherit\" onClick={(event) => setAnchorElMeasurements(event.currentTarget)}>\n Measurements\n </Button>\n <Menu\n anchorEl={anchorElMeasurements}\n open={Boolean(anchorElMeasurements)}\n onClose={() => setAnchorElMeasurements(null)}\n >\n <MenuItem component={Link} to={makeLink(WgerLink.MEASUREMENT_OVERVIEW, i18n.language)}>\n Overview\n </MenuItem>\n </Menu>\n </>\n );\n};\n","import { Link } from 'react-router-dom';\nimport { useTranslation } from \"react-i18next\";\nimport { Button, Menu, MenuItem } from \"@mui/material\";\nimport { makeLink, WgerLink } from \"utils/url\";\nimport React from \"react\";\n\nexport const NutritionSubMenu = () => {\n\n const { i18n } = useTranslation();\n const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);\n\n return (\n <>\n <Button color=\"inherit\" onClick={(event) => setAnchorEl(event.currentTarget)}>\n Nutrition\n </Button>\n <Menu\n anchorEl={anchorEl}\n open={Boolean(anchorEl)}\n onClose={() => setAnchorEl(null)}\n >\n <MenuItem component={Link} to={makeLink(WgerLink.NUTRITION_OVERVIEW, i18n.language)}>\n Overview\n </MenuItem>\n </Menu>\n </>\n );\n};\n","import { Button, Menu, MenuItem } from \"@mui/material\";\nimport React from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { Link } from 'react-router-dom';\nimport { makeLink, WgerLink } from \"utils/url\";\n\nexport const TrainingSubMenu = () => {\n\n const { i18n } = useTranslation();\n const [anchorElRoutine, setAnchorElRoutine] = React.useState<null | HTMLElement>(null);\n\n return (\n <>\n <Button color=\"inherit\" onClick={(event) => setAnchorElRoutine(event.currentTarget)}>\n Routines\n </Button>\n <Menu\n anchorEl={anchorElRoutine}\n open={Boolean(anchorElRoutine)}\n onClose={() => setAnchorElRoutine(null)}\n >\n <MenuItem component={Link} to={makeLink(WgerLink.ROUTINE_OVERVIEW, i18n.language)}>\n Routine overview\n </MenuItem>\n <MenuItem component={Link} to={makeLink(WgerLink.PRIVATE_TEMPLATE_OVERVIEW, i18n.language)}>\n Private template overview\n </MenuItem>\n <MenuItem component={Link} to={makeLink(WgerLink.PUBLIC_TEMPLATE_OVERVIEW, i18n.language)}>\n Public template overview\n </MenuItem>\n <MenuItem component={Link} to={makeLink(WgerLink.EXERCISE_OVERVIEW, i18n.language)}>\n Exercise overview\n </MenuItem>\n <MenuItem component={Link} to={makeLink(WgerLink.EXERCISE_CONTRIBUTE, i18n.language)}>\n Contribute exercise\n </MenuItem>\n <MenuItem component={Link} to={makeLink(WgerLink.CALENDAR, i18n.language)}>\n Calendar\n </MenuItem>\n </Menu>\n </>\n );\n};\n","import { AppBar, Toolbar, Typography } from \"@mui/material\";\nimport { BodyWeightSubMenu } from \"components/Header/SubMenus/BodyWeightSubMenu\";\nimport { MeasurementsSubMenu } from \"components/Header/SubMenus/MeasurementsSubMenu\";\nimport { NutritionSubMenu } from \"components/Header/SubMenus/NutritionSubMenu\";\nimport { TrainingSubMenu } from \"components/Header/SubMenus/TrainingSubMenu\";\nimport React from 'react';\n\n\nexport const Header = () => {\n\n return (\n <AppBar position=\"static\">\n <Toolbar>\n <Typography variant=\"h6\" component=\"div\" mr={3}>\n wger\n </Typography>\n\n <TrainingSubMenu />\n <BodyWeightSubMenu />\n <MeasurementsSubMenu />\n <NutritionSubMenu />\n\n\n </Toolbar>\n </AppBar>\n );\n};","import React from 'react';\nimport { BodyWeight } from 'components';\n\nexport const WeightOverview = () => {\n return <BodyWeight />;\n};","import React from 'react';\nimport { ExerciseDetails } from \"components/Exercises/Detail/ExerciseDetails\";\n\nexport const ExerciseDetailPage = () => {\n return <ExerciseDetails />;\n};","import { Dashboard } from \"components/Dashboard/Dashboard\";\nimport { ExerciseOverview } from \"components/Exercises/ExerciseOverview\";\nimport { MeasurementCategoryDetail } from \"components/Measurements/Screens/MeasurementCategoryDetail\";\nimport { MeasurementCategoryOverview } from \"components/Measurements/Screens/MeasurementCategoryOverview\";\nimport { BmiCalculator } from \"components/Nutrition/components/BmiCalculator\";\nimport { NutritionDiaryOverview } from \"components/Nutrition/components/NutritionDiaryOverview\";\nimport { PlanDetail } from \"components/Nutrition/components/PlanDetail\";\nimport { PlansOverview } from \"components/Nutrition/components/PlansOverview\";\nimport { RoutineAdd } from \"components/WorkoutRoutines/Detail/RoutineAdd\";\nimport { RoutineDetail } from \"components/WorkoutRoutines/Detail/RoutineDetail\";\nimport { RoutineDetailsTable } from \"components/WorkoutRoutines/Detail/RoutineDetailsTable\";\nimport { RoutineEdit } from \"components/WorkoutRoutines/Detail/RoutineEdit\";\nimport { SessionAdd } from \"components/WorkoutRoutines/Detail/SessionAdd\";\nimport { SlotProgressionEdit } from \"components/WorkoutRoutines/Detail/SlotProgressionEdit\";\nimport { TemplateDetail } from \"components/WorkoutRoutines/Detail/TemplateDetail\";\nimport { WorkoutLogs } from \"components/WorkoutRoutines/Detail/WorkoutLogs\";\nimport { WorkoutStats } from \"components/WorkoutRoutines/Detail/WorkoutStats\";\nimport { PrivateTemplateOverview } from \"components/WorkoutRoutines/Overview/PrivateTemplateOverview\";\nimport { PublicTemplateOverview } from \"components/WorkoutRoutines/Overview/PublicTemplateOverview\";\nimport { RoutineOverview } from \"components/WorkoutRoutines/Overview/RoutineOverview\";\nimport {\n About,\n AddExercise,\n AddWeight,\n ApiPage,\n Calendar,\n CaloriesCalculator,\n Equipments,\n Ingredients,\n Login,\n Preferences,\n WeightOverview,\n} from \"pages\";\nimport { ExerciseDetailPage } from \"pages/ExerciseDetails\";\nimport React from \"react\";\nimport { Route, Routes } from \"react-router-dom\";\n\n/*\n * Routes for the application\n *\n * Don't change the routes of the elements which are also used in the django application\n * See also src/utils/url.ts\n */\nexport const WgerRoutes = () => {\n return <Routes>\n <Route path=\"/:lang\">\n\n <Route path=\"routine\">\n <Route index element={<RoutineOverview />} />\n <Route path=\"overview\" element={<RoutineOverview />} />\n <Route path=\"calendar\" element={<Calendar />} />\n <Route path=\"add\" element={<RoutineAdd />} />\n\n <Route path=\":routineId\">\n <Route path=\"day/:dayId\">\n <Route path=\"add-logs\" element={<SessionAdd />} />\n </Route>\n <Route path=\"edit\">\n <Route index element={<RoutineEdit />} />\n <Route path=\"progression/:slotId\" element={<SlotProgressionEdit />} />\n </Route>\n\n <Route path=\"view\" element={<RoutineDetail />} />\n <Route path=\"table\" element={<RoutineDetailsTable />} />\n <Route path=\"logs\" element={<WorkoutLogs />} />\n <Route path=\"statistics\" element={<WorkoutStats />} />\n </Route>\n\n <Route path=\"templates\">\n <Route path=\":routineId\">\n <Route path=\"view\" element={<TemplateDetail />} />\n </Route>\n <Route path=\"overview\">\n <Route path=\"private\" element={<PrivateTemplateOverview />} />\n <Route path=\"public\" element={<PublicTemplateOverview />} />\n </Route>\n </Route>\n\n </Route>\n <Route path=\"measurement\">\n <Route index element={<MeasurementCategoryOverview />} />\n <Route path=\"overview\" element={<MeasurementCategoryOverview />} />\n <Route path=\"category/:categoryId\" element={<MeasurementCategoryDetail />}>\n </Route>\n </Route>\n <Route path=\"exercise\">\n <Route index element={<ExerciseOverview />} />\n <Route path=\"overview\" element={<ExerciseOverview />} />\n <Route path=\":exerciseId\" element={<ExerciseDetailPage />}>\n <Route path=\"view\" element={<ExerciseDetailPage />}>\n <Route path=\":slug\" element={<ExerciseDetailPage />} />\n </Route>\n </Route>\n <Route path=\"contribute\" element={<AddExercise />} />\n </Route>\n <Route path=\"weight\">\n <Route path=\"overview\" element={<WeightOverview />} />\n <Route path=\"add\" element={<AddWeight />} />\n </Route>\n <Route path=\"nutrition\">\n <Route path=\"overview\" element={<PlansOverview />} />\n <Route path=\":planId\">\n <Route path=\"view\" element={<PlanDetail />} />\n <Route path=\":date\" element={<NutritionDiaryOverview />} />\n <Route path=\"diary\" element={<NutritionDiaryOverview />} />\n </Route>\n <Route path=\"calculator\">\n <Route path=\"bmi\" element={<BmiCalculator />} />\n <Route path=\"calories\" element={<CaloriesCalculator />} />\n </Route>\n <Route path=\"ingredient\">\n <Route path=\"overview\" element={<Ingredients />} />\n </Route>\n </Route>\n <Route path=\"software\">\n <Route path=\"about-us\" element={<About />} />\n <Route path=\"api\" element={<ApiPage />} />\n <Route path=\"equipment\" element={<Equipments />} />\n </Route>\n <Route path=\"login\" element={<Login />} />\n <Route path=\"user\">\n <Route path=\"preferences\" element={<Preferences />} />\n </Route>\n </Route>\n <Route path=\"/\" element={<Dashboard />} />\n\n {/* This route matches when no other route match, so a 404 */}\n <Route\n path=\"*\"\n element={\n <main style={{ padding: \"1rem\" }}>\n <p>404, Page NOT FOUND</p>\n </main>\n }\n />\n </Routes>;\n};","import { Alert, AlertTitle, Button } from '@mui/material';\nimport React from 'react';\nimport { setNotification, useWeightStateValue } from 'state';\nimport styles from './notifications.module.css';\n\nexport const Notifications = () => {\n const [state, dispatch] = useWeightStateValue();\n\n const closeNotification = () => {\n dispatch(setNotification({ notify: false, message: \"\", severity: undefined, title: \"\", type: undefined }));\n };\n\n const undoDelete = () => {\n dispatch(setNotification({\n notify: false,\n message: \"\",\n severity: undefined,\n title: \"\",\n type: undefined,\n undo: true\n }));\n };\n\n if (!state.notification.notify) {\n return null;\n }\n\n if (state.notification.type === \"delete\") {\n return (\n <Alert\n className={styles.notification}\n severity={state.notification.severity}\n action={\n <Button color=\"inherit\" size=\"small\" onClick={undoDelete}>\n UNDO\n </Button>\n }\n variant=\"filled\"\n >\n <AlertTitle>{state.notification.title}</AlertTitle>\n <strong>{state.notification.message}</strong>\n </Alert>\n );\n }\n\n return (\n <Alert\n className={styles.notification}\n severity={state.notification.severity}\n onClose={() => closeNotification()}\n variant=\"filled\"\n >\n <AlertTitle>{state.notification.title}</AlertTitle>\n <strong>{state.notification.message}</strong>\n </Alert>\n );\n};\n","import Grid from '@mui/material/Grid';\nimport { Header, } from 'components';\nimport { Notifications } from 'components/Core/Notifications';\nimport React from 'react';\nimport { WgerRoutes } from \"routes\";\n\n\nfunction App() {\n\n return (\n (<Grid container>\n <Grid size={12}>\n <Header />\n </Grid>\n <Grid size={12}>\n <Notifications />\n </Grid>\n <Grid size={12}>\n <WgerRoutes />\n </Grid>\n </Grid>)\n );\n}\n\nexport default App;\n","import createCache from '@emotion/cache';\nimport { CacheProvider } from \"@emotion/react\";\nimport { ThemeProvider } from '@mui/material/styles';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { ReactQueryDevtools } from '@tanstack/react-query-devtools';\nimport { LoadingWidget } from \"components/Core/LoadingWidget/LoadingWidget\";\nimport { NutritionCard } from \"components/Dashboard/NutritionCard\";\nimport { RoutineCard } from \"components/Dashboard/RoutineCard\";\nimport { WeightCard } from \"components/Dashboard/WeightCard\";\nimport { IngredientSearch } from \"components/Nutrition/components/IngredientSearch\";\nimport React, { Suspense } from 'react';\nimport { createRoot } from \"react-dom/client\";\nimport { BrowserRouter as Router } from 'react-router-dom';\nimport { WgerRoutes } from \"routes\";\nimport { makeTheme, theme } from 'theme';\n\nimport App from './App';\nimport './i18n';\nimport './index.css';\nimport reportWebVitals from './reportWebVitals';\n\n\nconst queryClient = new QueryClient({\n // -> https://tanstack.com/query/latest/docs/reference/QueryClient\n // time in milliseconds, so 1000 * 30 = 30s\n\n defaultOptions: {\n queries: {\n retry: 3,\n staleTime: 1000 * 60 * 5,\n refetchOnMount: true,\n refetchOnWindowFocus: true,\n refetchOnReconnect: \"always\"\n },\n }\n});\n\n\nconst renderComponentShadowDom = (divId: string) => {\n\n const rootElement = document.getElementById(divId);\n if (rootElement === null) {\n return;\n }\n\n const shadow = rootElement.attachShadow({ mode: 'open' });\n const shadowRoot = document.createElement('div');\n const styleElement = document.createElement('style');\n\n const djangoReactStyle = document.getElementById('react-css');\n if (djangoReactStyle) {\n const djangoStyleElement = document.createElement('link');\n djangoStyleElement.setAttribute('rel', 'stylesheet');\n // @ts-ignore\n djangoStyleElement.setAttribute('href', djangoReactStyle.href);\n shadow.appendChild(djangoReactStyle);\n }\n\n shadow.appendChild(shadowRoot);\n shadow.appendChild(styleElement);\n\n\n const cache = createCache({\n key: 'css',\n prepend: true,\n container: styleElement,\n });\n\n const root = createRoot(shadowRoot);\n root.render(\n <CacheProvider value={cache}>\n <Suspense fallback={<LoadingWidget />}>\n <Router>\n <ThemeProvider theme={makeTheme(shadowRoot)}>\n <QueryClientProvider client={queryClient}>\n <WgerRoutes />\n </QueryClientProvider>\n </ThemeProvider>\n </Router>\n </Suspense>\n </CacheProvider>\n );\n};\n\nconst rootElement = document.getElementById(\"root\");\nif (rootElement) {\n const root = createRoot(rootElement);\n root.render(\n <React.StrictMode>\n <Suspense fallback={<LoadingWidget />}>\n <Router>\n <ThemeProvider theme={theme}>\n <QueryClientProvider client={queryClient}>\n <App />\n <ReactQueryDevtools />\n </QueryClientProvider>\n </ThemeProvider>\n </Router>\n </Suspense>\n </React.StrictMode>\n );\n}\n\n\nconst rootNoShadowDom = document.getElementById(\"react-page-no-shadow-dom\");\nif (rootNoShadowDom) {\n const root = createRoot(rootNoShadowDom);\n root.render(\n <Suspense fallback={<LoadingWidget />}>\n <Router>\n <ThemeProvider theme={theme}>\n <QueryClientProvider client={queryClient}>\n <WgerRoutes />\n </QueryClientProvider>\n </ThemeProvider>\n </Router>\n </Suspense>\n );\n}\n\nrenderComponentShadowDom('react-page');\n\n/*\n * Components used in the wger django app, don't change the IDs here\n */\nconst weightDashboard = document.getElementById(\"react-weight-dashboard\");\nif (weightDashboard) {\n const root = createRoot(weightDashboard);\n root.render(\n <Suspense fallback={<LoadingWidget />}>\n <ThemeProvider theme={theme}>\n <QueryClientProvider client={queryClient}>\n <WeightCard />\n </QueryClientProvider>\n </ThemeProvider>\n </Suspense>\n );\n}\n\nconst nutritionDashboard = document.getElementById('react-nutrition-dashboard');\nif (nutritionDashboard) {\n const root = createRoot(nutritionDashboard);\n root.render(\n <Suspense fallback={<LoadingWidget />}>\n <ThemeProvider theme={theme}>\n <QueryClientProvider client={queryClient}>\n <NutritionCard />\n </QueryClientProvider>\n </ThemeProvider>\n </Suspense>\n );\n}\n\nconst routineDashboard = document.getElementById('react-routine-dashboard');\nif (routineDashboard) {\n const root = createRoot(routineDashboard);\n root.render(\n <Suspense fallback={<LoadingWidget />}>\n <ThemeProvider theme={theme}>\n <QueryClientProvider client={queryClient}>\n <RoutineCard />\n </QueryClientProvider>\n </ThemeProvider>\n </Suspense>\n );\n}\n\n\nconst ingredientSearchBox = document.getElementById(\"react-ingredient-search\");\nif (ingredientSearchBox) {\n const root = createRoot(ingredientSearchBox);\n root.render(\n <Suspense fallback={<LoadingWidget />}>\n <ThemeProvider theme={theme}>\n <IngredientSearch />\n </ThemeProvider>\n </Suspense>\n );\n}\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n"],"file":"main.js"}
\ No newline at end of file
diff --git a/wger/core/static/react/muscles/SOURCES b/wger/core/static/react/muscles/SOURCES
deleted file mode 100644
index 9393351f8..000000000
--- a/wger/core/static/react/muscles/SOURCES
+++ /dev/null
@@ -1,2 +0,0 @@
-https://commons.wikimedia.org/wiki/File:Muscular_system-back.svg
-https://commons.wikimedia.org/wiki/File:Muscular_system.svg
diff --git a/wger/core/static/react/muscles/main/muscle-1.svg b/wger/core/static/react/muscles/main/muscle-1.svg
deleted file mode 100644
index 978cbb073..000000000
--- a/wger/core/static/react/muscles/main/muscle-1.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="362"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="Muscular_system-small.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.979899"
- inkscape:cx="155.35481"
- inkscape:cy="205.55431"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="954"
- inkscape:window-height="767"
- inkscape:window-x="714"
- inkscape:window-y="135"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-323.50506)">
- <path
- sodipodi:nodetypes="caazccsc"
- inkscape:connector-curvature="0"
- id="path2992"
- d="m 531.54658,419.32035 c -1.66702,1.72091 -1.36035,8.07119 -0.96047,12.0961 0.48201,4.85145 1.48196,9.89493 4.00392,14.0673 1.93253,3.19721 5.88888,6.82248 8.11807,7.72711 2.22918,0.90463 3.49786,-6.77307 2.98965,-9.2699 -0.0486,-4.08929 0.0901,-8.62941 -0.70841,-14.0304 -0.85269,-5.60328 -2.91091,-8.13876 -5.79988,-10.75663 -1.88829,-1.7111 -6.11492,-2.96833 -7.64288,0.16642 z"
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none" />
- <path
- sodipodi:nodetypes="caazccsc"
- inkscape:connector-curvature="0"
- id="path2992-9"
- d="m 456.65005,420.35548 c 1.66702,1.72091 1.36035,8.07119 0.96047,12.0961 -0.48201,4.85145 -1.48196,9.89493 -4.00392,14.0673 -1.93253,3.19721 -5.88888,6.82248 -8.11807,7.72711 -2.22918,0.90463 -3.49786,-6.77307 -2.98965,-9.2699 0.0486,-4.08929 -0.0901,-8.62941 0.70841,-14.0304 0.85269,-5.60328 2.91091,-8.13876 5.79988,-10.75663 1.88829,-1.7111 6.11492,-2.96833 7.64288,0.16642 z"
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/main/muscle-10.svg b/wger/core/static/react/muscles/main/muscle-10.svg
deleted file mode 100644
index a2e583a83..000000000
--- a/wger/core/static/react/muscles/main/muscle-10.svg
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_front.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.979899"
- inkscape:cx="180.17271"
- inkscape:cy="118.17094"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="910"
- inkscape:window-height="624"
- inkscape:window-x="169"
- inkscape:window-y="137"
- inkscape:window-maximized="0"
- height="524.41px" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-316.50506)">
- <path
- sodipodi:nodetypes="cssszacsc"
- inkscape:connector-curvature="0"
- id="path2992"
- d="m 520.2455,501.96347 c -1.66702,1.72091 -9.04566,17.0447 -10.99886,26.3645 -2.03299,9.70052 -5.11378,23.09955 -4.48703,30.75514 0.18671,2.28058 1.71644,5.12395 3.81899,6.48252 4.03864,2.60959 11.57099,-3.7841 13.04257,-6.16247 1.47158,-2.37837 2.99174,-8.38181 4.12606,-12.67917 1.95283,-7.39828 5.39338,-17.08945 4.5949,-22.49044 -3.88315,-2.57282 -5.35165,-3.5051 -6.55749,-6.96854 -1.58244,-4.54509 -3.337,-15.59524 -3.53914,-15.30154 z"
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none" />
- <path
- sodipodi:nodetypes="cssszacsc"
- inkscape:connector-curvature="0"
- id="path2992-4"
- d="m 469.80904,501.37145 c 1.66702,1.72091 9.04566,17.0447 10.99886,26.3645 2.03299,9.70052 5.11378,23.09955 4.48703,30.75514 -0.18671,2.28058 -1.71644,5.12395 -3.81899,6.48252 -4.03864,2.60959 -11.57099,-3.7841 -13.04257,-6.16247 -1.47158,-2.37837 -2.99174,-8.38181 -4.12606,-12.67917 -1.95283,-7.39828 -5.39338,-17.08945 -4.5949,-22.49044 3.88315,-2.57282 5.35165,-3.5051 6.55749,-6.96854 1.58244,-4.54509 3.337,-15.59524 3.53914,-15.30154 z"
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/main/muscle-11.svg b/wger/core/static/react/muscles/main/muscle-11.svg
deleted file mode 100644
index 6f964f9bc..000000000
--- a/wger/core/static/react/muscles/main/muscle-11.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369.03"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_back.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="0.9899495"
- inkscape:cx="12.249371"
- inkscape:cy="222.62521"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="663"
- inkscape:window-height="739"
- inkscape:window-x="902"
- inkscape:window-y="63"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-54.28571,-335.71492)">
- <path
- sodipodi:nodetypes="cssszaasc"
- inkscape:connector-curvature="0"
- id="path2992"
- d="m 130.51664,546.66621 c -1.66702,1.72091 -0.65329,16.56398 -1.14987,25.85942 -0.5571,10.42819 0.18952,12.74549 -0.9515,20.90616 -0.31685,2.26616 -0.30386,10.17471 -0.34789,13.55358 -0.0626,4.80798 2.35335,-0.5011 3.82493,-2.87947 1.47158,-2.37837 2.69818,-7.33515 3.36845,-11.16394 1.27278,-7.27057 1.14177,-14.73063 1.18563,-22.11163 0.0476,-8.01178 0.20419,-20.55143 -1.00165,-24.01487 -1.58244,-4.54509 -4.72596,-0.44295 -4.9281,-0.14925 z"
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none" />
- <path
- sodipodi:nodetypes="cssszaasc"
- inkscape:connector-curvature="0"
- id="path2992-7"
- d="m 178.26043,546.55155 c 1.66702,1.72091 0.65329,16.56398 1.14987,25.85942 0.5571,10.42819 -0.18952,12.74549 0.9515,20.90616 0.31685,2.26616 0.30386,10.17471 0.34789,13.55358 0.0626,4.80798 -2.35335,-0.5011 -3.82493,-2.87947 -1.47158,-2.37837 -2.69818,-7.33515 -3.36845,-11.16394 -1.27278,-7.27057 -1.14177,-14.73063 -1.18563,-22.11163 -0.0476,-8.01178 -0.20419,-20.55143 1.00165,-24.01487 1.58244,-4.54509 4.72596,-0.44295 4.9281,-0.14925 z"
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/main/muscle-12.svg b/wger/core/static/react/muscles/main/muscle-12.svg
deleted file mode 100644
index a1d198548..000000000
--- a/wger/core/static/react/muscles/main/muscle-12.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369.03"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_back.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.4"
- inkscape:cx="107.63794"
- inkscape:cy="278.23728"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="844"
- inkscape:window-height="577"
- inkscape:window-x="392"
- inkscape:window-y="244"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-54.28571,-335.71492)">
- <path
- sodipodi:nodetypes="csscccsc"
- inkscape:connector-curvature="0"
- id="path2992"
- d="m 118.2971,433.23148 c -1.66702,1.72091 -0.41996,16.06091 0.11282,25.35434 0.45305,7.90281 5.37207,13.58301 8.39241,16.86555 2.6401,2.86931 4.24182,4.87141 5.96556,7.99774 6.27792,-6.98998 11.67715,-13.36645 14.51699,-25.40762 1.45421,-8.08311 -1.34647,-9.50395 -9.16844,-22.86925 -6.82053,0.62685 -8.3821,1.67193 -13.12348,0.48133 -4.66777,-1.17211 -3.96834,-2.71579 -6.69586,-2.42209 z"
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none" />
- <path
- sodipodi:nodetypes="csscccsc"
- inkscape:connector-curvature="0"
- id="path2992-7"
- d="m 190.2688,433.68217 c 1.66702,1.72091 0.41996,16.06091 -0.11282,25.35434 -0.45305,7.90281 -5.37207,13.58301 -8.39241,16.86555 -2.6401,2.86931 -4.24182,4.87141 -5.96556,7.99774 -6.27792,-6.98998 -11.67715,-13.36645 -14.51699,-25.40762 -1.45421,-8.08311 1.34647,-9.50395 9.16844,-22.86925 6.82053,0.62685 8.3821,1.67193 13.12348,0.48133 4.66777,-1.17211 3.96834,-2.71579 6.69586,-2.42209 z"
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/main/muscle-13.svg b/wger/core/static/react/muscles/main/muscle-13.svg
deleted file mode 100644
index 24b8b3e4a..000000000
--- a/wger/core/static/react/muscles/main/muscle-13.svg
+++ /dev/null
@@ -1,92 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscle-13.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="0.98994949"
- inkscape:cx="392.27036"
- inkscape:cy="172.33272"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="910"
- inkscape:window-height="624"
- inkscape:window-x="593"
- inkscape:window-y="77"
- inkscape:window-maximized="0"
- height="524.41px" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title />
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-316.50506)">
- <g
- id="g3021">
- <path
- sodipodi:nodetypes="cssc"
- inkscape:connector-curvature="0"
- id="path2992-9-5-6"
- d="m 444.70857,445.05695 c -4.92777,-3.55571 -4.87537,-6.74571 -4.20323,-11.98404 0.70445,-5.49015 0.0274,-6.01827 2.95018,-10.58218 4.34954,-6.79174 -1.87623,-1.26849 1.25305,22.56622 z"
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline" />
- <path
- sodipodi:nodetypes="cssc"
- inkscape:connector-curvature="0"
- id="path2992-9-5-6-5"
- d="m 447.66963,445.34485 c 4.92777,-3.55571 8.44247,-5.29361 8.49638,-10.34254 0.0591,-5.53485 0.98278,-6.14454 0.20654,-11.46606 -1.16407,-7.98068 2.50757,8.07542 -8.70292,21.8086 z"
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline" />
- </g>
- <g
- transform="matrix(-1,0,0,1,987.71404,-0.61367048)"
- id="g3021-5">
- <path
- sodipodi:nodetypes="cssc"
- inkscape:connector-curvature="0"
- id="path2992-9-5-6-3"
- d="m 444.70857,445.05695 c -4.92777,-3.55571 -4.87537,-6.74571 -4.20323,-11.98404 0.70445,-5.49015 0.0274,-6.01827 2.95018,-10.58218 4.34954,-6.79174 -1.87623,-1.26849 1.25305,22.56622 z"
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline" />
- <path
- sodipodi:nodetypes="cssc"
- inkscape:connector-curvature="0"
- id="path2992-9-5-6-5-8"
- d="m 447.66963,445.34485 c 4.92777,-3.55571 8.44247,-5.29361 8.49638,-10.34254 0.0591,-5.53485 0.98278,-6.14454 0.20654,-11.46606 -1.16407,-7.98068 2.50757,8.07542 -8.70292,21.8086 z"
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline" />
- </g>
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/main/muscle-14.svg b/wger/core/static/react/muscles/main/muscle-14.svg
deleted file mode 100644
index f3bc05071..000000000
--- a/wger/core/static/react/muscles/main/muscle-14.svg
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscle-14.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="0.98994949"
- inkscape:cx="-33.854548"
- inkscape:cy="118.46731"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="1055"
- inkscape:window-height="624"
- inkscape:window-x="732"
- inkscape:window-y="116"
- inkscape:window-maximized="0"
- height="524.41px" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title />
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-316.50506)">
- <path
- sodipodi:nodetypes="czszaasc"
- inkscape:connector-curvature="0"
- id="path2992"
- d="m 463.34788,436.83405 c -1.66702,1.72091 1.94058,-0.85823 2.08236,15.56356 0.14179,16.4218 -1.53044,1.46344 1.87157,19.37308 1.28332,6.75597 14.52159,23.09571 15.99317,20.71734 1.47158,-2.37837 -3.45627,-13.04831 -4.13155,-19.73537 -0.75251,-7.45179 0.296,-14.98129 0.1142,-22.46877 -0.15118,-6.22636 0.20419,-15.19429 -1.00165,-18.65773 -1.58244,-4.54509 -14.72596,4.91419 -14.9281,5.20789 z"
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none" />
- <path
- sodipodi:nodetypes="czszaasc"
- inkscape:connector-curvature="0"
- id="path2992-3"
- d="m 526.31803,436.83405 c 1.66702,1.72091 -1.94058,-0.85823 -2.08236,15.56356 -0.14179,16.4218 1.53044,1.46344 -1.87157,19.37308 -1.28332,6.75597 -14.52159,23.09571 -15.99317,20.71734 -1.47158,-2.37837 3.45627,-13.04831 4.13155,-19.73537 0.75251,-7.45179 -0.296,-14.98129 -0.1142,-22.46877 0.15118,-6.22636 -0.20419,-15.19429 1.00165,-18.65773 1.58244,-4.54509 14.72596,4.91419 14.9281,5.20789 z"
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/main/muscle-15.svg b/wger/core/static/react/muscles/main/muscle-15.svg
deleted file mode 100644
index f57dd5be4..000000000
--- a/wger/core/static/react/muscles/main/muscle-15.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369.03"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscle-15.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="0.7"
- inkscape:cx="196.7602"
- inkscape:cy="37.965661"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="844"
- inkscape:window-height="577"
- inkscape:window-x="867"
- inkscape:window-y="81"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title />
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-54.28571,-335.71492)">
- <path
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline"
- d="m 138.64274,667.76525 c 1.92234,6.09379 2.43161,13.69837 2.93313,19.74399 -1.91818,-6.10327 -5.62207,-11.84939 -7.54025,-17.95266 -1.74736,-6.91174 -4.03043,-15.25206 -5.77779,-22.1638 3.16402,6.96939 6.49829,15.35011 10.38491,20.37247 z"
- id="path2992-9-5-1-4"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccc" />
- <path
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline"
- d="m 170.38125,667.76525 c -1.92234,6.09379 -2.43161,13.69837 -2.93313,19.74399 1.91818,-6.10327 5.62207,-11.84939 7.54025,-17.95266 1.74736,-6.91174 4.03043,-15.25206 5.77779,-22.1638 -3.16402,6.96939 -6.49829,15.35011 -10.38491,20.37247 z"
- id="path2992-9-5-1-4-3"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccc" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/main/muscle-16.svg b/wger/core/static/react/muscles/main/muscle-16.svg
deleted file mode 100644
index ade03edce..000000000
--- a/wger/core/static/react/muscles/main/muscle-16.svg
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_back.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.4"
- inkscape:cx="43.443717"
- inkscape:cy="150.28664"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="910"
- inkscape:window-height="624"
- inkscape:window-x="479"
- inkscape:window-y="100"
- inkscape:window-maximized="0"
- height="524.41px" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-316.50506)">
- <path
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline"
- d="m 498.36277,434.58481 c -1.55631,1.52025 -0.13048,3.98753 -0.1711,5.9819 -0.052,2.55449 -0.0434,5.10996 -0.093,7.66451 -0.0875,4.50962 -0.22147,9.01828 -0.36082,13.5266 -0.16948,5.48319 0.15327,9.90598 -0.57803,16.44726 -0.95978,8.58488 -1.33969,19.65754 -0.5009,20.05568 1.58892,0.91978 5.5552,-3.03663 7.45027,-5.46433 1.5127,-1.93786 1.48305,-0.70542 2.78771,-6.82793 0.90275,-4.23642 1.43029,-9.25519 1.67209,-9.72652 0.60636,-1.09903 0.9424,-4.81204 1.38902,-9.40737 0.41377,-4.25735 0.28622,-7.00608 0.23245,-10.50979 -0.092,-5.99405 0.0362,-15.57164 -0.94915,-17.95919 -0.0822,-3.20813 -1.11029,-3.60426 -3.2829,-5.17335 -2.55028,-0.64249 -6.11949,-0.63047 -7.5956,1.39249 z"
- id="path2992-9-5"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="caaascascsacccc" />
- <path
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline"
- d="m 490.21813,434.48339 c 1.55631,1.52025 0.13048,3.98753 0.1711,5.9819 0.052,2.55449 0.0434,5.10996 0.093,7.66451 0.0875,4.50962 0.22147,9.01828 0.36082,13.5266 0.16948,5.48319 -0.15327,9.90598 0.57803,16.44726 0.95978,8.58488 1.33969,19.65754 0.5009,20.05568 -1.58892,0.91978 -5.5552,-3.03663 -7.45027,-5.46433 -1.5127,-1.93786 -1.48305,-0.70542 -2.78771,-6.82793 -0.90275,-4.23642 -1.43029,-9.25519 -1.67209,-9.72652 -0.60636,-1.09903 -0.9424,-4.81204 -1.38902,-9.40737 -0.41377,-4.25735 -0.28622,-7.00608 -0.23245,-10.50979 0.092,-5.99405 -0.0362,-15.57164 0.94915,-17.95919 0.0822,-3.20813 1.11029,-3.60426 3.2829,-5.17335 2.55028,-0.64249 6.11949,-0.63047 7.5956,1.39249 z"
- id="path2992-9-5-5"
- inkscape:connector-curvature="00"
- sodipodi:nodetypes="caaascascsacccc" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/main/muscle-2.svg b/wger/core/static/react/muscles/main/muscle-2.svg
deleted file mode 100644
index 486b25391..000000000
--- a/wger/core/static/react/muscles/main/muscle-2.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="362"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="Muscular_system-small.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="0.98994949"
- inkscape:cx="265.81673"
- inkscape:cy="163.65381"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="910"
- inkscape:window-height="624"
- inkscape:window-x="308"
- inkscape:window-y="114"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-323.50506)">
- <path
- sodipodi:nodetypes="caazccac"
- inkscape:connector-curvature="0"
- id="path2992"
- d="m 518.74726,391.26389 c -1.66702,1.72091 4.14667,4.86002 6.04747,7.42414 2.14217,2.88973 3.84239,6.09351 6.02422,8.9534 3.14045,4.11642 7.90919,10.8631 10.13838,11.76773 2.22918,0.90463 2.61397,1.68695 2.10576,-0.80988 -0.0486,-4.08929 0.46888,-10.39718 -0.3296,-15.79817 -0.85269,-5.60328 -4.22913,-9.95851 -8.70407,-12.14559 -4.58031,-2.23858 -15.08002,0.31467 -15.28216,0.60837 z"
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none" />
- <path
- sodipodi:nodetypes="caazccac"
- inkscape:connector-curvature="0"
- id="path2992-1"
- d="m 469.94763,392.44977 c 1.66702,1.72091 -4.14667,4.86002 -6.04747,7.42414 -2.14217,2.88973 -3.84239,6.09351 -6.02421,8.9534 -3.14045,4.11642 -7.9092,10.8631 -10.13838,11.76773 -2.22919,0.90463 -2.61397,1.68695 -2.10577,-0.80988 0.0486,-4.08929 -0.46888,-10.39718 0.32961,-15.79817 0.85269,-5.60328 4.22913,-9.95851 8.70407,-12.14559 4.58031,-2.23858 15.08001,0.31467 15.28215,0.60837 z"
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/main/muscle-3.svg b/wger/core/static/react/muscles/main/muscle-3.svg
deleted file mode 100644
index c155a4dc4..000000000
--- a/wger/core/static/react/muscles/main/muscle-3.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="362"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="Muscular_system-small.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.4"
- inkscape:cx="216.88503"
- inkscape:cy="225.31721"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="910"
- inkscape:window-height="624"
- inkscape:window-x="248"
- inkscape:window-y="122"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-323.50506)">
- <path
- sodipodi:nodetypes="cssssssscccc"
- inkscape:connector-curvature="0"
- id="path2992"
- d="m 517.82599,424.19421 c -0.48916,0.78934 2.89077,0.99122 2.70983,1.91809 -0.17283,0.88532 -2.52633,2.44538 -2.55228,3.56965 -0.0273,1.18223 2.40506,-0.0843 2.45526,1.13441 0.0477,1.15763 -3.74052,6.13027 -3.69954,7.11544 0.0605,1.45328 4.6749,0.46385 4.5579,2.23717 -0.12135,1.83909 -3.52179,5.11873 -3.42929,6.81101 0.0926,1.6943 1.9109,0.79061 2.63119,1.83626 0.43784,0.63563 -0.48538,3.50418 0.30725,3.75107 2.72142,-4.80332 7.36232,-10.43996 6.94084,-12.65447 -0.16995,-2.23726 1.64472,-16.08653 -0.88932,-18.59985 -2.0865,0.41346 -6.01996,1.94692 -9.03184,2.88122 z"
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none" />
- <path
- sodipodi:nodetypes="cssssssscccc"
- inkscape:connector-curvature="0"
- id="path2992-3"
- d="m 468.06573,428.23907 c 0.48916,0.78934 -4.09033,1.05436 -3.90939,1.98123 0.17283,0.88532 2.96828,3.51866 2.99423,4.64293 0.0273,1.18223 -3.66776,-0.39997 -3.71796,0.81874 -0.0477,1.15763 4.37187,6.95102 4.33089,7.93619 -0.0605,1.45328 -3.28594,-3.00855 -3.16894,-1.23523 0.12135,1.83909 2.4485,5.75008 2.356,7.44236 -0.0926,1.6943 -0.83761,0.15926 -1.5579,1.20491 -0.43784,0.63563 0.48538,3.50418 -0.30725,3.75107 -2.72142,-4.80332 -7.36232,-10.43996 -6.94084,-12.65447 0.16995,-2.23726 -1.64472,-16.08653 0.88932,-18.59985 1.70769,0.666 6.01996,3.77782 9.03184,4.71212 z"
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/main/muscle-4.svg b/wger/core/static/react/muscles/main/muscle-4.svg
deleted file mode 100644
index 91c77a6a7..000000000
--- a/wger/core/static/react/muscles/main/muscle-4.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="362"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="Muscular_system-small.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.979899"
- inkscape:cx="80.312997"
- inkscape:cy="304.21851"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="910"
- inkscape:window-height="624"
- inkscape:window-x="707"
- inkscape:window-y="45"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-323.50506)">
- <path
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline"
- d="m 496.71569,400.4595 c -1.55631,1.52025 -1.10288,3.85607 -1.4211,5.80333 -0.3625,2.35132 -0.80068,4.79415 -0.093,7.12879 0.81079,11.41842 4.2154,10.19708 8.2193,10.89959 12.2635,2.15171 15.18392,0.30379 22.10382,-2.34424 3.55323,-1.35971 6.39202,-3.72964 9.25399,-6.68073 -3.82356,-5.55838 -5.1382,-9.45509 -8.75855,-13.3601 -3.74892,-4.04369 -7.62508,-9.52034 -13.10984,-10.08881 -5.37765,-0.55737 -13.05255,6.83988 -14.60926,7.04537 -0.71523,0.30386 -1.16231,0.98036 -1.58532,1.59676 z"
- id="path2992-9-5"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cccsacaaccc" />
- <path
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline"
- d="m 492.21306,400.04042 c 1.55631,1.52025 1.10288,3.85607 1.4211,5.80333 0.3625,2.35132 0.80068,4.79415 0.093,7.12879 -0.81079,11.41842 -4.2154,10.19708 -8.2193,10.89959 -12.2635,2.15171 -15.18392,0.30379 -22.10382,-2.34424 -3.55323,-1.35971 -6.39202,-3.72964 -9.25399,-6.68073 3.82356,-5.55838 5.1382,-9.45509 8.75855,-13.3601 3.74892,-4.04369 7.62508,-9.52034 13.10984,-10.08881 5.37765,-0.55737 13.05255,6.83988 14.60926,7.04537 0.71523,0.30386 1.16231,0.98036 1.58532,1.59676 z"
- id="path2992-9-5-6"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cccsacaaccc" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/main/muscle-5.svg b/wger/core/static/react/muscles/main/muscle-5.svg
deleted file mode 100644
index 1e3d20ce5..000000000
--- a/wger/core/static/react/muscles/main/muscle-5.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369.0256"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_back.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="0.7"
- inkscape:cx="420.23066"
- inkscape:cy="94.1613"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="844"
- inkscape:window-height="577"
- inkscape:window-x="318"
- inkscape:window-y="157"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-54.28571,-335.71932)">
- <path
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline"
- d="m 191.55063,438.91472 c -0.3625,2.35132 -0.62211,10.687 0.0856,13.02164 3.8465,9.09699 3.62452,11.21449 7.14787,12.86388 6.10219,2.85662 4.81236,1.08698 6.92525,0.15576 2.05497,-0.9057 4.7139,-2.75842 4.43256,-5.07359 -0.87122,-7.16941 1.00012,-14.25906 -1.07998,-20.8601 -16.47188,-16.75749 -16.00743,-10.16063 -17.51127,-0.10759 z"
- id="path2992-9-5"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccsascc" />
- <path
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline"
- d="m 116.92894,439.13084 c 0.3625,2.35132 0.62211,10.687 -0.0856,13.02164 -3.8465,9.09699 -3.62452,11.21449 -7.14787,12.86388 -6.10219,2.85662 -4.81236,1.08698 -6.92525,0.15576 -2.05497,-0.9057 -4.713898,-2.75842 -4.432558,-5.07359 0.87122,-7.16941 -1.00012,-14.25906 1.07998,-20.8601 16.471878,-16.75749 16.007428,-10.16063 17.511268,-0.10759 z"
- id="path2992-9-5-1"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccsascc" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/main/muscle-6.svg b/wger/core/static/react/muscles/main/muscle-6.svg
deleted file mode 100644
index 5541fea35..000000000
--- a/wger/core/static/react/muscles/main/muscle-6.svg
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_front.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.4"
- inkscape:cx="43.443717"
- inkscape:cy="150.28664"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="910"
- inkscape:window-height="624"
- inkscape:window-x="479"
- inkscape:window-y="100"
- inkscape:window-maximized="0"
- height="524.41px" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-316.50506)">
- <path
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline"
- d="m 498.36277,434.58481 c -1.55631,1.52025 -0.13048,3.98753 -0.1711,5.9819 -0.052,2.55449 -0.0434,5.10996 -0.093,7.66451 -0.0875,4.50962 -0.22147,9.01828 -0.36082,13.5266 -0.16948,5.48319 0.15327,9.90598 -0.57803,16.44726 -0.95978,8.58488 -1.33969,19.65754 -0.5009,20.05568 1.58892,0.91978 5.5552,-3.03663 7.45027,-5.46433 1.5127,-1.93786 1.48305,-0.70542 2.78771,-6.82793 0.90275,-4.23642 1.43029,-9.25519 1.67209,-9.72652 0.60636,-1.09903 0.9424,-4.81204 1.38902,-9.40737 0.41377,-4.25735 0.28622,-7.00608 0.23245,-10.50979 -0.092,-5.99405 0.0362,-15.57164 -0.94915,-17.95919 -0.0822,-3.20813 -1.11029,-3.60426 -3.2829,-5.17335 -2.55028,-0.64249 -6.11949,-0.63047 -7.5956,1.39249 z"
- id="path2992-9-5"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="caaascascsacccc" />
- <path
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline"
- d="m 490.21813,434.48339 c 1.55631,1.52025 0.13048,3.98753 0.1711,5.9819 0.052,2.55449 0.0434,5.10996 0.093,7.66451 0.0875,4.50962 0.22147,9.01828 0.36082,13.5266 0.16948,5.48319 -0.15327,9.90598 0.57803,16.44726 0.95978,8.58488 1.33969,19.65754 0.5009,20.05568 -1.58892,0.91978 -5.5552,-3.03663 -7.45027,-5.46433 -1.5127,-1.93786 -1.48305,-0.70542 -2.78771,-6.82793 -0.90275,-4.23642 -1.43029,-9.25519 -1.67209,-9.72652 -0.60636,-1.09903 -0.9424,-4.81204 -1.38902,-9.40737 -0.41377,-4.25735 -0.28622,-7.00608 -0.23245,-10.50979 0.092,-5.99405 -0.0362,-15.57164 0.94915,-17.95919 0.0822,-3.20813 1.11029,-3.60426 3.2829,-5.17335 2.55028,-0.64249 6.11949,-0.63047 7.5956,1.39249 z"
- id="path2992-9-5-5"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="caaascascsacccc" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/main/muscle-7.svg b/wger/core/static/react/muscles/main/muscle-7.svg
deleted file mode 100644
index 20d92b204..000000000
--- a/wger/core/static/react/muscles/main/muscle-7.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369.03"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_back.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.4"
- inkscape:cx="187.27864"
- inkscape:cy="81.858086"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="844"
- inkscape:window-height="577"
- inkscape:window-x="484"
- inkscape:window-y="65"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-54.28571,-335.71492)">
- <path
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline"
- d="m 157.84649,628.07391 c 0.18417,4.50671 0.628,11.65178 1.91202,17.31467 0.83063,3.6633 2.37474,5.09284 3.71512,10.63888 2.14383,8.8704 -0.81431,29.19307 0.0245,29.59121 1.58892,0.91978 1.82319,-0.28511 2.39951,-0.91864 4.22119,-4.64016 2.74914,-12.29168 5.04025,-18.13123 2.62168,-6.6821 4.96173,-6.44129 9.87964,-19.13389 0.41377,-4.25735 2.33285,-10.64845 2.50529,-16.06563 0.14015,-4.40301 -0.21634,-10.77342 -1.20169,-13.16097 -0.0822,-3.20813 -7.17121,-16.98878 -9.34382,-18.55787 -2.55028,-0.64249 -5.10933,-3.66092 -6.58544,-1.63796 -3.4339,1.48689 -3.36742,1.68575 -4.67162,4.03725 -2.30927,4.16367 -0.88234,14.44818 -3.67374,26.02418 z"
- id="path2992-9-5"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cascaacacccsc" />
- <path
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline"
- d="m 151.38626,628.55089 c -0.18417,4.50671 -0.628,11.65178 -1.91202,17.31467 -0.83063,3.6633 -2.37474,5.09284 -3.71512,10.63888 -2.14383,8.8704 0.81431,29.19307 -0.0245,29.59121 -1.58892,0.91978 -1.82319,-0.28511 -2.39951,-0.91864 -4.22119,-4.64016 -2.74914,-12.29168 -5.04025,-18.13123 -2.62168,-6.6821 -4.96173,-6.44129 -9.87964,-19.13389 -0.41377,-4.25735 -2.33285,-10.64845 -2.50529,-16.06563 -0.14015,-4.40301 0.21634,-10.77342 1.20169,-13.16097 0.0822,-3.20813 7.17121,-16.98878 9.34382,-18.55787 2.55028,-0.64249 5.10933,-3.66092 6.58544,-1.63796 3.4339,1.48689 3.36742,1.68575 4.67162,4.03725 2.30927,4.16367 0.88234,14.44818 3.67374,26.02418 z"
- id="path2992-9-5-1"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cascaacacccsc" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/main/muscle-8.svg b/wger/core/static/react/muscles/main/muscle-8.svg
deleted file mode 100644
index 6b559f222..000000000
--- a/wger/core/static/react/muscles/main/muscle-8.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369.03"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_back.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="2.8"
- inkscape:cx="152.38763"
- inkscape:cy="162.95615"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="844"
- inkscape:window-height="577"
- inkscape:window-x="643"
- inkscape:window-y="68"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-54.28571,-335.71492)">
- <path
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline"
- d="m 164.02666,497.12852 c -1.55631,1.52025 -1.56504,4.09871 -2.31396,6.16047 -1.07519,2.95998 -2.07652,5.94628 -3.12871,8.91451 -0.94527,2.6666 -2.81581,5.50344 -2.86083,7.99088 -0.12727,7.03248 5.37882,9.33869 8.71656,12.20652 3.33774,2.86783 6.9498,5.51311 9.32708,7.83922 2.37728,2.32611 6.07419,4.2694 9.30355,7.71468 2.2591,2.41015 4.83843,5.12955 5.17102,9.6188 0.46426,6.26654 -1.41009,15.04789 -0.92068,14.42208 3.2937,-4.21159 5.83554,-31.16875 4.06336,-40.6264 -0.62961,-3.36009 -0.57506,-9.6715 -2.31541,-14.10789 -2.41369,-6.1528 -6.45379,-11.68558 -10.94915,-16.53062 -2.83801,-3.05877 -7.71744,-6.10426 -9.89005,-7.67335 -2.55028,-0.64249 -2.72663,2.0481 -4.20274,4.07106 z"
- id="path2992-9-5"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="caaszzssssaaccc" />
- <path
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline"
- d="m 144.10239,497.59374 c 1.55631,1.52025 1.56504,4.09871 2.31396,6.16047 1.07519,2.95998 2.07652,5.94628 3.12871,8.91451 0.94527,2.6666 2.81581,5.50344 2.86083,7.99088 0.12727,7.03248 -5.37882,9.33869 -8.71656,12.20652 -3.33774,2.86783 -6.9498,5.51311 -9.32708,7.83922 -2.37728,2.32611 -6.07419,4.2694 -9.30355,7.71468 -2.2591,2.41015 -4.83843,5.12955 -5.17102,9.6188 -0.46426,6.26654 1.41009,15.04789 0.92068,14.42208 -3.2937,-4.21159 -5.83554,-31.16875 -4.06336,-40.6264 0.62961,-3.36009 0.57506,-9.6715 2.31541,-14.10789 2.41369,-6.1528 6.45379,-11.68558 10.94915,-16.53062 2.83801,-3.05877 7.71744,-6.10426 9.89005,-7.67335 2.55028,-0.64249 2.72663,2.0481 4.20274,4.07106 z"
- id="path2992-9-5-8"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="caaszzssssaaccc" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/main/muscle-9.svg b/wger/core/static/react/muscles/main/muscle-9.svg
deleted file mode 100644
index 3ba511af7..000000000
--- a/wger/core/static/react/muscles/main/muscle-9.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369.03"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_back.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.4"
- inkscape:cx="132.1017"
- inkscape:cy="240.25278"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="844"
- inkscape:window-height="577"
- inkscape:window-x="558"
- inkscape:window-y="41"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-54.28571,-335.71492)">
- <path
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline"
- d="m 133.87398,415.10147 c 3.8465,9.09699 4.87096,25.50048 14.82644,36.25673 -0.0143,-4.0028 1.59476,-25.62206 1.53638,-26.52497 -0.87122,-7.16941 0.64298,-37.65192 -1.43712,-44.25296 -2.73371,-2.7811 -1.12578,-1.74427 -2.21898,-0.14255 -6.90139,10.11167 -15.08205,15.48176 -25.82801,19.49925 6.10446,3.54937 10.82182,8.1217 13.12129,15.1645 z"
- id="path2992-9-5"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccscc" />
- <path
- style="opacity:0.52424239;fill:#fc0000;fill-opacity:1;stroke:none;display:inline"
- d="m 176.08582,415.27863 c -3.8465,9.09699 -4.87096,25.50048 -14.82644,36.25673 0.0143,-4.0028 -1.59476,-25.62206 -1.53638,-26.52497 0.87122,-7.16941 -0.64298,-37.65192 1.43712,-44.25296 2.73371,-2.7811 1.12578,-1.74427 2.21898,-0.14255 6.90139,10.11167 15.08205,15.48176 25.82801,19.49925 -6.10446,3.54937 -10.82182,8.1217 -13.12129,15.1645 z"
- id="path2992-9-5-7"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccscc" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/muscular_system_back.svg b/wger/core/static/react/muscles/muscular_system_back.svg
deleted file mode 100644
index 67130348b..000000000
--- a/wger/core/static/react/muscles/muscular_system_back.svg
+++ /dev/null
@@ -1,118 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369.03"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_back.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0"
- inkscape:pageshadow="2"
- inkscape:zoom="0.35"
- inkscape:cx="570.65203"
- inkscape:cy="99.557377"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="844"
- inkscape:window-height="577"
- inkscape:window-x="748"
- inkscape:window-y="66"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title />
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-54.28571,-335.71492)">
- <g
- id="g3011">
- <path
- style="fill:#d5d5d5"
- d="m 132.28571,702.06294 c -9.78718,-3.71781 -13,-5.22829 -13,-6.11183 0,-1.19497 5.88171,-4.52861 10.99507,-6.23179 4.11423,-1.37039 4.57973,-1.86354 5.38722,-5.70733 0.73739,-3.51006 0.37219,-5.83024 -2.20362,-14 -8.16429,-25.89489 -10.17988,-38.59553 -7.79156,-49.09617 0.93277,-4.10104 1.61289,-11.53152 1.61289,-17.62108 0,-8.90468 -0.39841,-11.57503 -2.58151,-17.30259 -6.11635,-16.04679 -8.46391,-25.64583 -9.6157,-39.31819 -1.05656,-12.54186 -0.978,-14.431 1.06039,-25.5 1.21082,-6.57505 2.86465,-17.80464 3.67516,-24.95464 0.81052,-7.15 1.88073,-15.02287 2.37824,-17.49527 0.67818,-3.37022 0.52734,-5.49755 -0.60271,-8.5 -0.82901,-2.2026 -2.05079,-5.9302 -2.71508,-8.28356 -1.46815,-5.20116 -2.58361,-4.4854 -2.64234,1.6955 -0.0499,5.24874 -0.8404,9.45023 -3.80543,20.22509 -3.06757,11.14748 -8.02286,21.27866 -14.84862,30.35824 -3.30779,4.4 -6.50029,8.92925 -7.09445,10.06499 -0.59736,1.14187 -1.02994,6.7298 -0.96767,12.5 0.0888,8.2273 -0.34537,11.82755 -2.05212,17.01701 -2.08873,6.35088 -2.36135,6.67828 -7.76366,9.32353 -3.46862,1.69842 -6.23158,2.4629 -7.26171,2.00924 -0.91453,-0.40276 -2.04766,-0.64506 -2.51805,-0.53844 -0.47039,0.10661 -1.52838,-0.3648 -2.35109,-1.04758 -1.21837,-1.01116 -1.36986,-2.82616 -0.81669,-9.78509 0.37353,-4.69901 0.92713,-9.66866 1.23024,-11.04366 0.51869,-2.353 0.323,-2.28347 -3.32805,1.18252 -3.97094,3.76965 -8.70013,5.72517 -9.74745,4.03057 -0.32258,-0.52193 1.70185,-4.81907 4.49872,-9.54919 3.97958,-6.73036 6.05858,-9.17066 9.56213,-11.22388 3.71181,-2.17526 5.04843,-3.847 7.82093,-9.78183 1.8392,-3.93701 4.98069,-13.98735 6.98108,-22.33411 3.1681,-13.21908 4.24108,-16.12032 8.32126,-22.5 l 4.68418,-7.32408 0.0936,-23.11115 c 0.087,-21.4829 0.24474,-23.42342 2.23915,-27.54332 3.87013,-7.99462 9.07092,-11.48087 27.16727,-18.21107 2.475,-0.92047 6.69259,-3.28413 9.37242,-5.25258 4.75393,-3.49196 4.85843,-3.68102 4.29729,-7.77497 -0.31632,-2.30779 -1.26864,-5.52594 -2.11626,-7.15145 -0.84762,-1.6255 -1.5439,-3.60088 -1.54729,-4.38974 -0.003,-0.78885 -0.95181,-3.38773 -2.10761,-5.77529 -1.37564,-2.8417 -1.77981,-4.76401 -1.17019,-5.56572 0.5122,-0.67359 0.98786,-4.08569 1.05703,-7.58244 0.14558,-7.35985 1.30752,-9.54866 7.2581,-13.67241 3.68063,-2.55069 5.35614,-3.01142 11.871,-3.26431 6.92663,-0.26888 8.04017,-0.029 12.81985,2.76128 7.16007,4.17996 8.62071,6.72153 8.7004,15.13911 0.0359,3.7912 0.40276,6.89331 0.81526,6.89358 1.19296,7.7e-4 0.87377,2.59629 -0.69722,5.66944 -2.75507,5.38948 -4.83708,12.85217 -4.9447,17.72366 -0.10458,4.73438 0.0416,4.99607 4.52092,8.09137 2.54595,1.75931 9.48355,5.14981 15.41688,7.53445 11.8195,4.75032 16.47285,8.15287 19.67561,14.38688 1.93682,3.76991 2.12659,5.9901 2.39263,27.99245 l 0.28897,23.89777 4.5409,6.82889 c 3.75566,5.64798 5.0631,8.95129 7.56062,19.10223 4.37632,17.78712 4.77317,19.09163 7.9875,26.25577 2.37867,5.3016 3.79714,7.06215 7.66759,9.51671 4.04272,2.56382 10.2887,10.24757 10.36254,12.74791 0.0122,0.41412 0.90222,1.87795 1.97776,3.25295 1.07554,1.375 1.96553,3.0625 1.97776,3.75 0.0451,2.53602 -5.01955,1.20704 -8.95721,-2.3504 l -3.98521,-3.6004 0.63359,11.07374 c 0.58977,10.30771 0.50208,11.11522 -1.26767,11.6734 -1.04569,0.32981 -2.59871,0.96438 -3.45114,1.41015 -0.99674,0.52124 -3.70491,-0.19925 -7.58824,-2.01881 l -6.03836,-2.8293 -2.24769,-7.57137 c -1.61414,-5.43724 -2.1943,-9.751 -2.05829,-15.30419 0.10417,-4.25305 0.14283,-8.87054 0.0859,-10.26108 -0.0592,-1.44715 -3.10162,-6.57845 -7.11491,-12 -3.85628,-5.20946 -8.3402,-12.25139 -9.96424,-15.64873 -3.8878,-8.1329 -8.06207,-22.74987 -9.5163,-33.32301 -0.99482,-7.23299 -1.28865,-8.05282 -1.9712,-5.5 -0.44116,1.65 -1.68345,4.97788 -2.76064,7.39529 -1.26608,2.84128 -1.78687,5.66977 -1.473,8 0.26704,1.98259 1.43653,11.1995 2.59886,20.48202 1.16233,9.28253 2.78487,19.77295 3.60564,23.31206 1.70197,7.33873 1.93444,24.47883 0.46944,34.61104 -1.08872,7.52978 -3.56416,16.14843 -8.07913,28.12882 -3.71829,9.8664 -4.62428,20.06525 -2.76011,31.07077 0.7453,4.4 1.32164,12.275 1.28076,17.5 -0.0747,9.55133 -2.27339,19.68179 -8.90036,41.00868 -3.36736,10.8368 -1.93706,16.05756 4.76647,17.39827 4.06755,0.81351 11.21055,5.50275 10.07707,6.61539 -1.89315,1.85835 -21.12723,7.97708 -25.07664,7.97736 -5.4682,3.9e-4 -6.16677,-1.40112 -5.7319,-11.4997 1.57561,-36.5892 1.61402,-40.26645 0.4753,-45.5 -2.07494,-9.53639 -2.33284,-19.93735 -0.69099,-27.86654 1.44854,-6.99561 1.42197,-7.70056 -0.52771,-14 -1.77497,-5.73492 -2.02865,-8.97369 -1.87279,-23.91011 0.0992,-9.50215 -0.15854,-22.77715 -0.57263,-29.5 -1.18032,-19.16228 -2.43654,-9.03725 -2.70185,21.77665 -0.1904,22.11309 -0.49537,26.79224 -2.04,31.29938 -1.92727,5.62364 -1.86473,8.69007 0.42715,20.94277 1.22484,6.54819 1.17544,7.9618 -0.51549,14.75222 -2.10924,8.47026 -2.49893,23.01241 -1.24241,46.36433 0.55949,10.398 0.4541,14.74247 -0.38207,15.75 -1.7581,2.11841 -9.53415,1.53666 -16.90976,-1.26508 z m 16.22257,-2.89953 c 0.98985,-0.98984 -1.51617,-7.44409 -2.89035,-7.44409 -0.73272,0 -1.33222,-0.47656 -1.33222,-1.05902 0,-0.58246 -0.46193,-0.77352 -1.02652,-0.42459 -0.56459,0.34893 -0.96127,1.16299 -0.88152,1.80902 0.37615,3.04699 -0.1904,5.73178 -1.09196,5.17459 -0.55,-0.33992 -1,-0.35198 -1,-0.0268 0,1.45388 7.0498,3.14366 8.22257,1.97088 z m 20.19112,-1.46703 c 0.78565,-0.79233 0.55746,-0.89408 -0.82443,-0.36764 -1.59701,0.6084 -1.81762,0.37184 -1.34362,-1.44075 0.31192,-1.19277 0.17039,-2.16867 -0.31451,-2.16867 -0.4849,0 -0.41336,-1.2375 0.15896,-2.75 l 1.04058,-2.75 -2.11635,2.26295 c -1.22253,1.3072 -1.80256,2.7854 -1.37338,3.5 0.5632,0.93772 0.36312,0.92948 -0.82684,-0.034 -1.32643,-1.074 -1.66416,-0.91896 -2.1783,1 -1.22112,4.55763 -0.87094,5.07092 3.02789,4.43823 2.01503,-0.327 4.15253,-1.08753 4.75,-1.69009 z m 65.94794,-135.47706 c -0.31659,-0.825 -0.75246,-1.5 -0.96862,-1.5 -0.21615,0 -0.39301,0.675 -0.39301,1.5 0,0.825 0.43588,1.5 0.96862,1.5 0.53273,0 0.70959,-0.675 0.39301,-1.5 z M 229.7,554.73361 c -0.64762,-0.64762 -0.98572,-0.30953 -0.98572,0.98571 0,1.29524 0.3381,1.63333 0.98572,0.98571 0.64761,-0.64761 0.64761,-1.32381 0,-1.97142 z m 0.0857,-10.01429 c 0.33992,-0.55 0.14148,-1 -0.44098,-1 -0.58246,0 -1.05902,0.45 -1.05902,1 0,0.55 0.19844,1 0.44098,1 0.24254,0 0.7191,-0.45 1.05902,-1 z M 79.9787,540.98835 c -0.25354,-0.97297 -0.47766,-0.41903 -0.49804,1.23097 -0.0204,1.65 0.18706,2.44606 0.46099,1.76903 0.27392,-0.67703 0.29059,-2.02703 0.0371,-3 z m -4.69299,1.73097 c 0,-0.55 -0.47656,-1 -1.05902,-1 -0.58246,0 -0.7809,0.45 -0.44098,1 0.33992,0.55 0.81648,1 1.05902,1 0.24254,0 0.44098,-0.45 0.44098,-1 z m 10.00442,-2.49467 c -0.68226,-0.82207 -1.00449,-2.39707 -0.71606,-3.5 0.28842,-1.10293 0.11653,-2.00533 -0.38198,-2.00533 -1.38927,0 -1.07672,5.7646 0.34362,6.33772 2.00266,0.80809 2.06177,0.74287 0.75442,-0.83239 z M 63.8185,535.65591 c 2.12922,-4.11745 1.09701,-3.6692 -1.43574,0.62349 -1.15527,1.95805 -1.64652,3.27951 -1.09166,2.93659 0.55486,-0.34292 1.69219,-1.94496 2.5274,-3.56008 z m 161.15032,-0.12409 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 6.43896,-0.4875 c -1.17884,-2.02721 -1.46351,-1.37835 -0.49853,1.13634 0.34294,0.8937 0.83419,1.41426 1.09166,1.15679 0.25747,-0.25747 -0.009,-1.28938 -0.59313,-2.29313 z M 74.8256,533.78387 c -0.271,-0.43849 0.38605,-1.59254 1.46011,-2.56455 2.02298,-1.83077 1.76423,-4.09674 -0.3191,-2.79443 -0.64949,0.406 -1.76577,0.82681 -2.48061,0.93512 -1.83142,0.2775 -4.20317,2.39239 -4.18498,3.73175 0.01,0.72156 0.27986,0.76749 0.75,0.12756 0.40408,-0.55 1.56327,-1.65169 2.57597,-2.4482 1.72061,-1.35329 1.80819,-1.23823 1.33635,1.75565 -0.29095,1.84611 -0.11083,2.96028 0.42503,2.6291 0.51148,-0.31611 0.70824,-0.93351 0.43723,-1.372 z m 159.97582,-1.99304 c -0.37104,-1.68933 -1.31387,-3.07151 -2.09517,-3.07151 -1.76596,0 -1.76594,3.4e-4 0.1838,3.90869 1.91497,3.83866 2.84854,3.42976 1.91137,-0.83718 z m 6.48429,1.92849 c 0,-0.55 -0.47656,-1 -1.05902,-1 -0.58246,0 -0.7809,0.45 -0.44098,1 0.33992,0.55 0.81648,1 1.05902,1 0.24254,0 0.44098,-0.45 0.44098,-1 z m -3,-1.89301 c 0,-0.49116 -0.73865,-1.17646 -1.64144,-1.52289 -1.37248,-0.52667 -1.43434,-0.38034 -0.37756,0.89301 1.44013,1.73524 2.019,1.91584 2.019,0.62988 z M 87.68515,527.12078 c 0.3166,-0.82504 -0.0905,-1.40146 -0.98984,-1.40146 -0.85617,0 -1.22888,-0.4834 -0.84794,-1.09977 0.49424,-0.79969 0.11899,-0.79969 -1.37524,0 -2.81949,1.50895 -4.18642,1.37826 -4.18642,-0.40023 0,-0.825 -0.47656,-1.5 -1.05902,-1.5 -0.58246,0 -0.80465,0.41157 -0.49377,0.91459 0.31089,0.50302 -5e-5,1.11642 -0.69098,1.3631 -1.86131,0.66453 -0.26066,1.90414 2.67814,2.07405 1.41032,0.0815 2.56453,0.66863 2.56492,1.30464 9.6e-4,1.56979 3.72362,0.50808 4.40015,-1.25492 z m 137.11957,0.62931 c -0.25216,-0.40802 0.5404,-0.57121 1.76125,-0.36264 2.70997,0.46297 5.22748,-1.03757 4.28884,-2.55633 -0.37792,-0.61149 -1.44808,-1.08017 -2.37812,-1.04151 -1.37849,0.0573 -1.32139,0.2291 0.30902,0.92971 1.88733,0.81101 1.86954,0.86339 -0.31574,0.92971 -1.27366,0.0387 -3.24046,-0.42461 -4.37068,-1.02948 -1.43951,-0.7704 -1.8552,-0.77659 -1.38801,-0.0207 0.3668,0.5935 0.20392,1.94423 -0.36198,3.00161 -0.87745,1.63953 -0.73872,1.84663 0.94251,1.40697 1.08427,-0.28354 1.76508,-0.84936 1.51291,-1.25738 z m 7.48099,-5.40833 c 0,-0.20765 -0.7875,-0.99515 -1.75,-1.75 -1.58606,-1.24387 -1.62143,-1.2085 -0.37756,0.37756 1.30637,1.66575 2.12756,2.19548 2.12756,1.37244 z m -79,-22.22943 c 0,-0.21615 -0.675,-0.39301 -1.5,-0.39301 -0.825,0 -1.5,0.43588 -1.5,0.96862 0,0.53273 0.675,0.70959 1.5,0.39301 0.825,-0.31659 1.5,-0.75246 1.5,-0.96862 z m 1,-2.39301 c 1.29937,-0.83971 1.27845,-0.97142 -0.15638,-0.98469 -1.12823,-0.0104 -1.49903,-0.61704 -1.16288,-1.90245 0.27142,-1.03793 0.11679,-2.11908 -0.34362,-2.40255 -0.46042,-0.28347 -0.94935,1.01574 -1.08652,2.88714 -0.26091,3.55952 0.25777,4.01276 2.7494,2.40255 z m 2.66228,-2.25 c -0.27741,-0.6875 -0.50439,-0.125 -0.50439,1.25 0,1.375 0.22698,1.9375 0.50439,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m -4.20499,-5.6809 c 0.31644,-0.512 0.11799,-1.21356 -0.44098,-1.55902 -0.55897,-0.34546 -1.01631,0.0734 -1.01631,0.9309 0,1.75653 0.60005,2.01516 1.45729,0.62812 z m 51.11728,-21.75054 c 2.34551,0.31608 3.09943,0.0261 3.12246,-1.20093 0.0489,-2.60491 -1.73087,-4.11763 -4.84447,-4.11763 -2.42156,0 -3.00145,0.49446 -3.49931,2.98377 -0.32822,1.64107 -0.99197,2.73951 -1.475,2.44098 -0.48304,-0.29853 -0.87825,0.4013 -0.87825,1.55519 l 0,2.09797 2.24123,-2.08803 c 1.57213,-1.46465 3.16437,-1.96362 5.33334,-1.67132 z m -91.92628,0.16621 c -1.01671,-0.74343 -1.54981,-1.83509 -1.18467,-2.42591 1.11853,-1.80981 -2.19581,-4.27581 -4.71055,-3.50483 -4.9441,1.51577 -5.85676,4.37186 -1.44405,4.51906 1.20504,0.0402 3.54098,0.87949 5.19098,1.86508 3.35359,2.00321 5.02537,1.65038 2.14829,-0.4534 z m 53.35171,-25.29364 c 0,-0.44488 -0.68231,-1.68238 -1.51625,-2.75 -1.406,-1.79999 -1.43069,-1.74117 -0.33949,0.80887 1.17741,2.75149 1.85574,3.46104 1.85574,1.94113 z m -20.5,-1.19113 c 0.33992,-0.55 0.14148,-1 -0.44098,-1 -0.58246,0 -1.05902,0.45 -1.05902,1 0,0.55 0.19844,1 0.44098,1 0.24254,0 0.7191,-0.45 1.05902,-1 z m 13.16228,-5.25 c -0.27741,-0.6875 -0.50439,-0.125 -0.50439,1.25 0,1.375 0.22698,1.9375 0.50439,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m -0.20499,-6.6809 c 0.31644,-0.512 0.19299,-1.1672 -0.27431,-1.45601 -0.46731,-0.28881 -0.84965,0.13009 -0.84965,0.9309 0,1.68617 0.31534,1.83349 1.12396,0.52511 z m -5.79501,-12.3191 c -0.27741,-0.6875 -0.50439,-0.125 -0.50439,1.25 0,1.375 0.22698,1.9375 0.50439,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m 5.02083,0.0625 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36781,-1.19479 0.0789,-1.91667 z m 25.91135,-12.31128 c 1.59805,-1.37433 3.54304,-2.49933 4.32221,-2.5 0.77916,-6.7e-4 1.09849,-0.31939 0.70961,-0.70827 -0.79412,-0.79413 -9.62628,3.73483 -9.62628,4.93616 0,1.41834 1.66354,0.79272 4.59446,-1.72789 z m -51.59446,1.09975 c 0,-0.21947 -1.77888,-1.32624 -3.95307,-2.45949 -2.99025,-1.55861 -3.81666,-1.70498 -3.39301,-0.60097 0.30803,0.80272 1.18691,1.45949 1.95307,1.45949 0.76616,0 1.39301,0.45 1.39301,1 0,0.55 0.9,1 2,1 1.1,0 2,-0.17956 2,-0.39903 z m 20.55905,-1.89426 c 0.27296,-0.71132 0.84169,-5.23269 1.26384,-10.04751 0.58462,-6.66776 0.46167,-9.00807 -0.51584,-9.81933 -1.5047,-1.24879 -2.54596,0.74108 -2.70612,5.17148 -0.0555,1.53562 -0.38727,2.61634 -0.73724,2.40159 -0.88258,-0.54156 -1.83368,3.38464 -1.85004,7.63706 -0.0181,4.69533 3.24699,8.04033 4.5454,4.65671 z m 9.54139,-1.45671 c 0.79998,-2.09329 0.64068,-4.30222 -0.66703,-9.25 -0.94489,-3.575 -2.15829,-7.35946 -2.69646,-8.4099 -0.89315,-1.74336 -1.05986,-1.76447 -1.91183,-0.24208 -0.51335,0.9173 -0.70273,2.04099 -0.42085,2.49709 0.28188,0.45609 0.59055,4.39003 0.68594,8.74208 0.15861,7.23707 0.87525,9.35186 3.18454,9.3975 0.42611,0.008 1.24768,-1.22219 1.82569,-2.73469 z m -6.03593,-23.75 c 0.55814,1.40428 0.81585,1.53567 0.8652,0.44113 0.0387,-0.85738 -0.5904,-2.43238 -1.39791,-3.5 -1.37863,-1.82272 -1.46306,-1.72763 -1.384,1.55887 0.0528,2.1936 0.27785,2.75349 0.60299,1.5 0.51879,-2 0.51879,-2 1.31372,0 z m 2.06783,-7.5 c 0.54213,0 0.70304,-0.45734 0.35758,-1.01631 -0.98235,-1.58947 -2.50236,-0.10057 -2.37392,2.32533 0.0896,1.69179 0.2202,1.79226 0.57333,0.44098 0.25152,-0.9625 0.90088,-1.75 1.44301,-1.75 z m -3.7782,-1.04586 c -0.49448,-0.49448 -1.51554,-0.46328 -2.3625,0.0722 -1.26571,0.80021 -1.22658,0.94537 0.25836,0.95836 0.9625,0.008 1.78553,0.57781 1.82895,1.26531 0.0576,0.91158 0.2234,0.88789 0.6125,-0.0875 0.29345,-0.73562 0.14166,-1.72938 -0.33731,-2.20836 z m 8.07443,-3.52557 c 0.86429,-0.86428 1.57143,-3.13474 1.57143,-5.04545 0,-9.59581 -14.45312,-11.70249 -16.49534,-2.40435 -0.86969,3.95966 0.18854,6.9561 2.83328,8.0226 3.61968,1.45965 10.37838,1.13945 12.09063,-0.5728 z"
- id="path3046"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#c7c7c7"
- d="m 138.00983,704.1101 c -0.33507,-0.33506 -4.50586,-2.02256 -9.26842,-3.75 -4.76256,-1.72743 -8.69931,-3.59078 -8.74834,-4.14078 -0.12066,-1.35358 6.06265,-5.43082 9.23324,-6.08835 4.41188,-0.91494 5.53308,-1.99744 6.44171,-6.21936 0.71953,-3.34328 0.37715,-5.71982 -1.85586,-12.88184 -3.89648,-12.49739 -8.37323,-30.86609 -9.09315,-37.31045 -0.39838,-3.56613 -0.0552,-7.89521 0.97614,-12.31205 0.96321,-4.12525 1.59056,-11.31314 1.59056,-18.22397 0,-10.28188 -0.29097,-12.1444 -2.93844,-18.80901 -8.7723,-22.08299 -12.50131,-51.40787 -8.0376,-63.20766 0.42708,-1.12898 1.48936,-8.32898 2.36064,-16 0.87127,-7.67102 2.33268,-17.99735 3.24758,-22.9474 1.63738,-8.859 1.6302,-9.06528 -0.45787,-13.15823 -1.16673,-2.28698 -2.42401,-6.051 -2.79395,-8.36449 -0.89673,-5.60782 -1.96728,-3.33015 -2.6838,5.70994 -0.31331,3.95292 -1.26108,9.35292 -2.10616,12 -0.84508,2.64708 -2.26235,7.28787 -3.14949,10.31287 -2.57223,8.77091 -6.88066,16.83282 -14.16204,26.5 l -6.77887,9 -0.027,11 c -0.0213,8.67061 -0.50868,12.48234 -2.30145,18 -2.25066,6.92693 -2.33649,7.03 -8.22121,9.87389 -4.86088,2.34911 -6.22104,2.64631 -7.44855,1.62756 -0.826,-0.68549 -1.50179,-0.95041 -1.50179,-0.58871 0,0.36169 -0.90159,0.17511 -2.00354,-0.41463 -1.80566,-0.96637 -1.9498,-1.78461 -1.45944,-8.28519 0.29926,-3.9671 0.77385,-9.01099 1.05465,-11.20862 l 0.51054,-3.9957 -3.3011,3.1257 c -4.1769,3.95497 -7.22332,5.52465 -9.22867,4.75513 -0.86484,-0.33188 -1.57244,-0.70844 -1.57244,-0.83681 0,-0.12837 2.27064,-4.01138 5.04586,-8.62892 5.07144,-8.4381 7.10536,-10.56631 8.98684,-9.40349 0.55927,0.34565 0.8932,0.0888 0.74208,-0.57088 -0.15113,-0.65963 0.35036,-1.42646 1.11442,-1.70406 0.95581,-0.34727 1.13977,-0.0743 0.58967,0.875 -0.47204,0.81459 -0.42665,1.0384 0.1108,0.5464 0.50068,-0.45834 0.91103,-1.13334 0.91188,-1.5 8.5e-4,-0.36667 0.93347,-2.01667 2.07247,-3.66667 3.60964,-5.22904 6.30516,-12.89414 10.02664,-28.51219 3.25816,-13.67361 4.07726,-15.83921 8.25812,-21.8335 l 4.64122,-6.65431 0.10924,-23.50547 c 0.10787,-23.20909 0.14192,-23.56996 2.70084,-28.61974 1.42538,-2.81285 3.87598,-6.18538 5.44577,-7.49453 2.96281,-2.47085 11.3674,-6.51741 19.37855,-9.3302 7.2823,-2.55688 15.30675,-8.60349 15.68069,-11.81575 0.28967,-2.48832 -3.65312,-16.05435 -5.77228,-19.86082 -0.49804,-0.89459 -0.67724,-5.39459 -0.39823,-10 0.57572,-9.50283 2.63962,-14.30503 6.22761,-14.49015 1.24362,-0.0642 2.79364,-0.68175 3.44447,-1.37241 0.94649,-1.0044 0.733,-1.02405 -1.06666,-0.0981 -1.2375,0.63667 -2.25,0.93259 -2.25,0.65759 0,-0.84104 4.26783,-2.8414 7.72647,-3.62145 2.03636,-0.45927 3.27353,-0.35389 3.27353,0.27884 0,0.59895 0.60248,0.51711 1.46541,-0.19906 1.67397,-1.38926 9.53459,-0.46737 9.53459,1.11821 0,0.53412 0.45821,0.68794 1.01824,0.34182 1.38113,-0.85359 7.71361,3.17239 9.65836,6.14045 1.02407,1.56294 1.58954,4.75694 1.61759,9.13688 0.0237,3.70367 0.50099,7.03726 1.06059,7.40799 0.66485,0.44044 0.47692,2 -0.54224,4.5 -3.56318,8.74046 -5.65302,15.04262 -6.14941,18.54428 -0.46243,3.26208 -0.13667,4.04846 2.65488,6.40874 3.07206,2.59746 10.0395,6.08887 23.68199,11.86715 7.75036,3.28268 11.25784,6.34123 14.16954,12.356 2.00233,4.13627 2.18415,6.22474 2.42737,27.88318 l 0.26292,23.41203 4.0281,6.18256 c 4.85458,7.4511 6.02348,10.62903 9.62654,26.17201 3.24248,13.98756 8.15933,25.58494 11.88085,28.02337 1.42313,0.93247 2.35903,2.06508 2.07978,2.51692 -0.27925,0.45183 0.0191,1.14714 0.6631,1.54512 0.78484,0.48506 0.90097,0.28698 0.35226,-0.60084 -0.60203,-0.97412 -0.35676,-1.14724 0.92728,-0.65451 0.96021,0.36847 1.91201,0.66994 2.11511,0.66994 0.2031,0 2.03877,3.0375 4.07927,6.75 2.04051,3.7125 4.35661,7.50914 5.1469,8.43699 0.7903,0.92784 1.14126,2.16534 0.77992,2.75 -1.22014,1.97423 -4.15813,1.08083 -8.40776,-2.5567 l -4.22882,-3.61971 0.29882,11.28919 0.29882,11.28919 -3.3331,0.88064 c -3.40152,0.89868 -10.1669,-0.55778 -10.1669,-2.18879 0,-0.44773 -1.03869,-1.07474 -2.30821,-1.39337 -3.54516,-0.88978 -6.10042,-9.80549 -6.34463,-22.13749 -0.10891,-5.5 -0.23158,-10.9149 -0.27259,-12.03311 -0.041,-1.11821 -3.06686,-6.06821 -6.72411,-11 -3.65725,-4.93179 -8.37119,-12.6096 -10.47543,-17.06181 -4.65925,-9.85818 -6.31026,-15.99572 -9.79302,-36.40508 -0.59634,-3.49462 -0.92872,-4.05316 -1.48772,-2.5 -0.3959,1.1 -1.59157,4.2587 -2.65705,7.01933 -2.12982,5.51829 -2.42316,10.13452 -0.98372,15.48067 0.5183,1.925 1.66365,10.25 2.54521,18.5 0.88157,8.25 2.25499,17.53996 3.05206,20.64434 1.68929,6.5794 1.88807,21.55566 0.42566,32.06997 -0.95342,6.85489 -4.92958,20.55131 -9.87352,34.01071 -2.55586,6.95807 -2.85599,22.02679 -0.62293,31.27498 0.79682,3.3 1.46479,8.48629 1.48438,11.52509 0.0381,5.91284 -4.34602,25.42563 -8.62498,38.38778 -1.43667,4.35208 -2.61213,9.54179 -2.61213,11.53268 0,6.44915 0.94453,7.8137 6.57216,9.49475 5.83106,1.74182 10.31167,4.7619 9.35685,6.30684 -1.04704,1.69415 -20.0531,8.25286 -23.91542,8.25286 -5.68155,0 -6.56982,-1.62674 -6.1188,-11.20567 1.40988,-29.94389 1.50782,-43.54749 0.34407,-47.79433 -2.06785,-7.54614 -2.25591,-16.62422 -0.52507,-25.34675 1.56165,-7.86994 1.5469,-8.37515 -0.41061,-14.06476 -1.78909,-5.20005 -2.03106,-8.40902 -2.03562,-26.99504 -0.003,-11.6014 -0.31775,-25.59345 -0.69979,-31.09345 -1.16797,-16.81477 -2.38721,-5.59331 -2.72545,25.08407 -0.24886,22.57031 -0.59065,27.96324 -2.05082,32.35943 -1.7957,5.40633 -1.75545,7.54238 0.39993,21.22692 0.71041,4.51042 0.72793,8.23433 0.0541,11.5 -2.85417,13.83238 -3.20653,18.30041 -2.47073,31.32958 1.37383,24.32708 1.45239,32.34996 0.33002,33.70233 -1.07827,1.29924 -9.94748,1.84894 -11.10796,0.68845 z m 3.99067,-3.37343 c -0.42652,-1.63102 -0.20985,-1.81748 1.22169,-1.05134 0.9571,0.51222 2.74634,0.66819 3.97611,0.3466 1.83331,-0.47942 2.12001,-1.05541 1.59218,-3.19866 -0.86809,-3.5249 -3.73737,-8.35815 -5.26394,-8.86701 -0.87861,-0.29287 -1.24083,1.06113 -1.24083,4.63834 0,4.30113 -0.24731,4.95705 -1.66404,4.4134 -1.19536,-0.4587 -1.43781,-0.27249 -0.86081,0.66111 0.51287,0.82984 0.36431,1.15336 -0.41095,0.89494 -0.66781,-0.2226 -1.2073,-0.84348 -1.19887,-1.37973 0.008,-0.53625 -0.88672,-1.30869 -1.98924,-1.71654 -1.10252,-0.40785 -1.72411,-1.19535 -1.38132,-1.75 1.08087,-1.74888 -0.51002,-3.2407 -2.07279,-1.94371 -0.76998,0.63902 -1.15336,1.56088 -0.85195,2.04856 0.3014,0.48768 -0.43365,0.88669 -1.63346,0.88669 -1.8194,0 -1.97618,0.24735 -0.94459,1.49033 0.77278,0.93115 2.22577,1.29773 3.87244,0.977 l 2.63558,-0.51333 -2.5,1.16087 -2.5,1.16088 3,0.74073 c 1.65,0.4074 4.125,1.21683 5.5,1.79874 3.37194,1.42702 3.30199,1.44758 2.71479,-0.79787 z m 33.54539,-2.87078 c -1.59532,-1.22666 -1.53771,-1.28687 0.61505,-0.64286 1.78845,0.53502 2.18025,0.39507 1.58595,-0.56651 -0.55807,-0.90299 -0.3112,-1.09363 0.84275,-0.65081 0.89761,0.34444 1.89799,0.19592 2.22306,-0.33006 0.32508,-0.52598 -0.36207,-0.95633 -1.52699,-0.95633 -1.16492,0 -1.91371,-0.3375 -1.66398,-0.75 0.24973,-0.4125 -0.12529,-1.28501 -0.83339,-1.93892 -0.99909,-0.92264 -1.70348,-0.86609 -3.14504,0.25246 -1.63992,1.27247 -1.65253,1.36995 -0.10759,0.83192 0.9625,-0.33519 1.75,-0.14162 1.75,0.43016 0,1.34497 -3.61073,2.49189 -5.24105,1.66477 -0.69242,-0.35129 -0.47844,0.002 0.47551,0.78433 1.82287,1.49557 1.38963,2.72528 -0.96014,2.72528 -0.7658,0 -1.11424,-0.45 -0.77432,-1 0.33992,-0.55 0.029,-0.99942 -0.69098,-0.99871 -0.86852,8.6e-4 -1.30902,-1.39458 -1.30902,-4.14675 0,-3.06494 -0.42524,-4.21252 -1.62858,-4.39498 -1.19094,-0.18059 -1.48452,0.30396 -1.09248,1.80312 0.32408,1.23925 0.13614,1.80287 -0.47519,1.42505 -1.13225,-0.69977 -3.30375,3.40979 -3.30375,6.25233 0,2.37356 2.5774,3.35648 5.16707,1.97053 1.76351,-0.94381 1.94249,-0.83115 1.39916,0.88073 -0.60945,1.92021 -0.50234,1.92753 4.91555,0.33583 4.97585,-1.46183 5.35974,-1.76466 3.7784,-2.98058 z m -48.9151,-1.6897 c -0.32569,-0.84872 -0.80663,-1.32866 -1.06875,-1.06653 -0.26213,0.26213 -0.17998,0.95654 0.18255,1.54313 0.98605,1.59546 1.56238,1.28551 0.8862,-0.4766 z m 56.65492,0.0431 c 0.71755,-0.86459 0.81474,-1.5 0.22943,-1.5 -0.5585,0 -1.27447,0.675 -1.59106,1.5 -0.31658,0.825 -0.41982,1.5 -0.22943,1.5 0.19039,0 0.90637,-0.675 1.59106,-1.5 z m -38.65492,-11.04313 c -0.32569,-0.84872 -0.80663,-1.32866 -1.06875,-1.06653 -0.26213,0.26213 -0.17998,0.95654 0.18255,1.54313 0.98605,1.59546 1.56238,1.28551 0.8862,-0.4766 z m -0.98345,-4.95687 c -0.31659,-0.825 -0.75246,-1.5 -0.96862,-1.5 -0.21616,0 -0.39301,0.675 -0.39301,1.5 0,0.825 0.43588,1.5 0.96861,1.5 0.53274,0 0.7096,-0.675 0.39302,-1.5 z m 22.32148,-0.6875 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36781,-1.1948 0.0789,-1.91667 z m -22.89368,-5.21164 c -0.70919,-0.76953 -1.44699,-1.24947 -1.63957,-1.06653 -0.59314,0.56346 0.91014,2.46567 1.94858,2.46567 0.53923,0 0.40017,-0.62961 -0.30901,-1.39914 z m 1.21057,-4.43419 c 0,-2.74074 -0.42754,-3.83334 -1.5,-3.83334 -1.8278,0 -1.907,0.82803 -0.25,2.61385 1.02134,1.10075 0.92396,1.23226 -0.53238,0.71896 -1.70985,-0.60266 -1.70985,-0.52853 0,1.82139 0.98031,1.34729 1.89488,2.46376 2.03238,2.48105 0.1375,0.0173 0.25,-1.69358 0.25,-3.80191 z m 23.39014,-1.59237 c -0.66729,-1.73892 -2.39014,-2.15288 -2.39014,-0.5743 0,0.55 0.5625,1.03553 1.25,1.07895 1,0.0632 1,0.17982 0,0.58333 -0.6875,0.27741 -1.25,1.17403 -1.25,1.99248 0,1.31344 0.17572,1.31238 1.49713,-0.009 0.82342,-0.82342 1.22527,-2.20556 0.89301,-3.07143 z m -1.70703,-4.7618 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36781,-1.1948 0.0789,-1.91667 z m -22.18311,0.1875 c 0.33992,-0.55 0.14148,-1 -0.44098,-1 -0.58246,0 -1.05902,0.45 -1.05902,1 0,0.55 0.19844,1 0.44098,1 0.24254,0 0.7191,-0.45 1.05902,-1 z m -0.83333,-49.5 c 0,-0.64167 -0.525,-1.16667 -1.16667,-1.16667 -0.64167,0 -1.16667,0.525 -1.16667,1.16667 0,0.64167 0.525,1.16667 1.16667,1.16667 0.64167,0 1.16667,-0.525 1.16667,-1.16667 z m 24.69496,0 c 0.31658,-0.825 0.13972,-1.5 -0.39301,-1.5 -0.53274,0 -0.96862,0.675 -0.96862,1.5 0,0.825 0.17686,1.5 0.39301,1.5 0.21616,0 0.65203,-0.675 0.96862,-1.5 z m 0.36754,-3.10417 c -0.3323,-0.33229 -1.1948,-0.36781 -1.91667,-0.0789 -0.79773,0.31922 -0.56078,0.55618 0.60417,0.60416 1.05416,0.0434 1.64479,-0.19293 1.3125,-0.52522 z m -38.06689,-6.64583 c -0.27741,-0.6875 -0.50439,-0.125 -0.50439,1.25 0,1.375 0.22698,1.9375 0.50439,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m 105.70056,-43.44046 c -0.35447,-1.41233 -0.69362,-4.38413 -0.75367,-6.60399 -0.06,-2.21986 -0.60889,-4.20331 -1.21966,-4.40766 -0.74295,-0.24858 -0.99021,1.21275 -0.74707,4.41528 0.19989,2.63276 0.39987,5.46183 0.4444,6.28683 0.14955,2.77078 0.89153,4.1314 1.90977,3.5021 0.5559,-0.34357 0.72071,-1.78022 0.36623,-3.19256 z m -160.36284,0.69046 c 0,-1.1 -0.45,-2 -1,-2 -0.55,0 -1,0.9 -1,2 0,1.1 0.45,2 1,2 0.55,0 1,-0.9 1,-2 z m 163.56008,-7.21769 c -1.22892,-1.75452 -1.56008,-1.87421 -1.56008,-0.56383 0,0.91492 0.45734,1.94614 1.01631,2.2916 0.55897,0.34546 0.74161,1.0726 0.40586,1.61585 -0.33575,0.54326 -0.24726,2.19966 0.19665,3.68091 0.77619,2.58998 0.82041,2.54967 1.15423,-1.05202 0.21148,-2.28184 -0.26246,-4.61546 -1.21297,-5.97251 z m -168.54643,5.96769 c 0.008,-1.2375 0.29373,-3.375 0.63605,-4.75 0.4685,-1.88185 0.33251,-2.2314 -0.54996,-1.41369 -1.66041,1.53854 -2.66596,8.41369 -1.23058,8.41369 0.62196,0 1.13698,-1.0125 1.14449,-2.25 z m 10.41679,-3.40036 c 0.50852,-4.01807 -0.93727,-6.45074 -1.79729,-3.02412 -0.34725,1.38355 -0.37609,3.18079 -0.0641,3.99387 0.312,0.81307 0.0866,1.77538 -0.50089,2.13848 -0.5875,0.36309 -1.06818,1.18003 -1.06818,1.81543 0,2.40611 3.05834,-1.98348 3.43044,-4.92366 z m 150.56956,4.15036 c 0,-0.825 -0.3375,-1.50027 -0.75,-1.50059 -0.4125,-3.3e-4 -0.75,-3.71283 -0.75,-8.25 0,-4.53718 -0.76005,-11.39941 -1.68899,-15.24941 l -1.689,-7 0.48148,7 c 0.26481,3.85 0.57486,9.76456 0.68899,13.14347 0.11414,3.37891 0.59323,5.91005 1.06465,5.62477 0.47143,-0.28528 0.5536,0.43765 0.18262,1.60653 -0.77349,2.43705 0.14635,6.12523 1.52764,6.12523 0.51293,0 0.93261,-0.675 0.93261,-1.5 z m -145.8886,-6.25 c 1.59076,-5.51008 1.51151,-14.79451 -0.1433,-16.78844 -0.62716,-0.75567 -0.8692,-1.81257 -0.53788,-2.34866 0.33132,-0.53609 0.14506,-1.25736 -0.41391,-1.60282 -1.37061,-0.84708 -1.33183,8.28638 0.052,12.25616 0.82612,2.3698 0.71275,4.11211 -0.5,7.68417 -1.82582,5.37784 -1.84743,5.54959 -0.69831,5.54959 0.47852,0 1.48713,-2.1375 2.24136,-4.75 z m 140.03634,0.81799 c -0.38453,-1.88015 -1.25039,-3.60221 -1.92412,-3.82678 -0.68183,-0.22728 -1.01614,0.18297 -0.75397,0.92523 2.79902,7.92481 3.96349,9.18644 2.67809,2.90155 z M 76.4755,555.21932 c 0.22474,-1.925 0.0631,-3.5 -0.35921,-3.5 -0.42229,0 -0.50879,-0.675 -0.19221,-1.5 0.31724,-0.8267 0.0296,-1.5 -0.64079,-1.5 -0.80133,0 -1.07697,1.19429 -0.80779,3.5 0.22474,1.925 0.049,3.5 -0.39059,3.5 -0.43956,0 -0.7992,0.675 -0.7992,1.5 0,3.17228 2.7902,1.42283 3.18979,-2 z m 4.87382,-7.25 c 0.035,-1.5125 0.21575,-6.125 0.4017,-10.25 0.18596,-4.125 0.12582,-6.375 -0.13364,-5 -0.25945,1.375 -1.11629,4.72278 -1.90408,7.43951 -1.06073,3.65797 -1.13508,5.12324 -0.28657,5.64764 0.63018,0.38948 0.89838,1.6542 0.596,2.81049 -0.30238,1.1563 -0.14191,2.10236 0.3566,2.10236 0.49851,0 0.935,-1.2375 0.96999,-2.75 z m 142.81797,2 c -0.39113,-2.47713 0.26782,-5.2757 1.11842,-4.75 0.59607,0.36839 0.95974,-0.71858 0.90032,-2.69098 -0.13721,-4.55484 -1.13579,-7.25191 -2.81959,-7.61544 -1.12202,-0.24225 -1.17077,-0.007 -0.23275,1.12325 1.42179,1.71315 0.49907,4.68317 -1.45497,4.68317 -0.76615,0 -1.38612,0.7875 -1.3777,1.75 0.0132,1.50477 0.159,1.5398 1.04065,0.25 0.79506,-1.16313 0.98233,-0.82626 0.83388,1.5 -0.29643,4.6453 0.0203,6.5 1.11016,6.5 0.55,0 0.94671,-0.3375 0.88158,-0.75 z m 9.61842,-3.25 c -0.45047,-1.41932 -0.1797,-2 0.93261,-2 1.95635,0 2.0128,-1.41173 0.13168,-3.29286 -1.11257,-1.11256 -1.16884,-1.72436 -0.25,-2.71813 0.83665,-0.90489 0.84655,-1.09248 0.0336,-0.6372 -1.597,0.89437 -5.78744,-6.31227 -4.44878,-7.65093 0.67351,-0.67351 1.4202,-0.0476 2.26319,1.89699 0.69193,1.59617 2.05543,3.96509 3.02999,5.26426 l 1.77194,2.36213 1.05188,-2.76665 1.05187,-2.76665 3.11587,2.90452 3.11586,2.90452 -1.89986,-3.37603 c -2.52845,-4.49303 -8.253,-8.24313 -12.132,-7.94756 -2.94337,0.22428 -3.03334,0.37281 -2.59127,4.27797 0.25188,2.22509 0.88049,4.19655 1.39692,4.38103 0.51642,0.18448 0.69886,0.72389 0.40541,1.1987 -0.7772,1.25754 1.58838,9.96589 2.70718,9.96589 0.52177,0 0.66303,-0.9 0.3139,-2 z m -155.2358,-6.25104 c 2.04865,-8.41776 2.10369,-9.09436 0.66763,-8.20683 -0.5875,0.3631 -0.81765,1.31303 -0.51146,2.11096 0.3062,0.79793 0.15593,1.20308 -0.33393,0.90034 -1.00808,-0.62304 -5.08644,5.79443 -5.08644,8.00373 0,0.79356 0.49815,1.44284 1.10699,1.44284 0.60884,0 0.84797,0.675 0.53138,1.5 -0.31766,0.82781 -0.0295,1.49953 0.64301,1.49896 0.68355,-5.8e-4 1.99325,-3.18393 2.98282,-7.25 z m 9.41891,1.06354 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19293,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36782,-1.1948 0.0789,-1.91667 z m -25.68311,-1.38509 c 0,-1.59082 1.70051,-4.93204 3.91054,-7.68354 0.77579,-0.96587 1.14257,-2.02409 0.81507,-2.3516 -0.82881,-0.8288 -6.68334,8.70096 -6.70661,10.91675 -0.0104,0.99496 0.431,1.5309 0.981,1.19098 0.55,-0.33992 1,-1.27258 1,-2.07259 z m 187,1.87268 c 0,-1.08313 -5.1252,-10.25943 -6.04905,-10.83041 -0.5979,-0.36952 0.006,1.51114 1.34098,4.17923 1.33544,2.6681 2.25357,5.33859 2.04029,5.93442 -0.21328,0.59584 0.29972,1.08334 1.14,1.08334 0.84028,0 1.52778,-0.16496 1.52778,-0.36658 z m -124,-5.79428 c 0,-1.7935 -0.63333,-3.78654 -1.4074,-4.42896 -1.14358,-0.94908 -1.61731,-0.532 -2.52718,2.22493 -1.39897,4.23893 -0.59215,6.64872 1.99916,5.97108 1.41474,-0.36996 1.93542,-1.3834 1.93542,-3.76705 z m 62.98469,1.24419 c -0.0218,-4.61695 -1.36294,-6.5109 -3.40847,-4.81325 -2.37431,1.97049 -1.992,5.96058 0.67378,7.03209 1.2375,0.49741 2.3625,0.93291 2.5,0.96777 0.1375,0.0349 0.24311,-1.39911 0.23469,-3.18661 z M 70.07282,536.30339 c 0.54346,0.97111 1.71583,1.87247 2.60527,2.00301 0.88943,0.13054 1.41714,-0.0863 1.17269,-0.48179 -0.24445,-0.39553 0.66394,-2.67049 2.01864,-5.05548 1.3547,-2.38499 2.19141,-4.60802 1.85936,-4.94008 -1.27446,-1.27445 -9.91412,4.6908 -12.26237,8.46655 l -2.44029,3.92372 3.02929,-2.8408 c 2.77804,-2.60519 3.11124,-2.69436 4.01741,-1.07513 z m 151.896,1.22843 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 6.44535,-9.34071 c 1.65367,-0.36321 3.24843,-1.29036 3.54389,-2.06034 0.29547,-0.76998 1.00947,-1.1081 1.58666,-0.75137 0.57719,0.35672 -0.39158,-1.44586 -2.15283,-4.00575 -1.76124,-2.55988 -3.43629,-4.65433 -3.72231,-4.65433 -0.28603,0 0.41002,1.30618 1.54678,2.90261 l 2.06684,2.90261 -3.09921,1.08039 c -2.61031,0.90996 -3.00944,0.84645 -2.53013,-0.40261 0.31299,-0.81565 0.1332,-1.483 -0.39953,-1.483 -0.53274,0 -1.00025,0.7875 -1.03891,1.75 -0.0601,1.49644 -0.19481,1.46022 -0.92971,-0.25 -0.82005,-1.90836 -0.86265,-1.8969 -0.92971,0.25 -0.0387,1.2375 -0.47816,2.25 -0.97667,2.25 -0.49851,0 -0.67917,0.86886 -0.40146,1.9308 0.30022,1.14804 1.07308,1.71278 1.90638,1.39301 0.93974,-0.36061 1.44633,0.23874 1.53764,1.8192 0.13026,2.25444 0.15466,2.26197 0.56089,0.17307 0.2836,-1.4583 1.42369,-2.40333 3.43139,-2.84429 z m -142.05514,0.52821 c 1.05968,0 1.92668,-0.675 1.92668,-1.5 0,-0.825 -0.45857,-1.5 -1.01905,-1.5 -0.56048,0 -0.85109,-1.0125 -0.6458,-2.25 0.20529,-1.2375 0.18086,-1.6875 -0.0543,-1 -0.52912,1.54705 -1.93552,1.61781 -2.84686,0.14324 -0.48103,-0.77833 -0.88011,-0.78949 -1.3448,-0.0376 -0.36343,0.58804 -1.64289,0.81233 -2.84326,0.49843 l -2.18248,-0.57073 2.5755,-3.64167 2.57551,-3.64167 -3.08107,3.43088 c -4.07129,4.53351 -3.85602,7.71098 0.57877,8.54295 2.48254,0.46573 3.31622,1.15678 3.40381,2.82148 0.089,1.69215 0.22232,1.79786 0.57333,0.45469 0.25152,-0.9625 1.32432,-1.75 2.384,-1.75 z m 150.92668,-1 c -1.95837,-1.2656 -3.28218,-1.2656 -2.5,0 0.33992,0.55 1.37898,0.99311 2.30902,0.98469 1.45727,-0.0132 1.48367,-0.14929 0.19098,-0.98469 z m -152.33772,-8.25 c -0.27741,-0.6875 -0.50439,-0.125 -0.50439,1.25 0,1.375 0.22698,1.9375 0.50439,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m 136.42259,-2.85482 c -0.52695,-1.31735 -0.98662,-1.86948 -1.02148,-1.22697 -0.0847,1.56062 1.08023,4.52151 1.58163,4.0201 0.21887,-0.21887 -0.0332,-1.47578 -0.56015,-2.79313 z M 87.96882,516.5318 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19293,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36782,-1.1948 0.0789,-1.91667 z m 65.68395,-12.0625 c -0.5355,-0.89133 -0.27807,-0.86663 0.89718,0.0861 2.57281,2.08568 3.48288,0.66091 3.23268,-5.06093 -0.12687,-2.90134 -0.29058,-7.66422 -0.3638,-10.58418 -0.0732,-2.91996 -0.47062,-5.09938 -0.88312,-4.84317 -0.4125,0.25622 -0.59585,-1.96722 -0.40745,-4.94098 0.21872,-3.45226 -0.0524,-5.40684 -0.75,-5.40684 -0.6009,0 -1.09255,-0.47656 -1.09255,-1.05902 0,-0.58246 0.51953,-0.73793 1.15451,-0.34549 0.7153,0.44208 0.88306,0.27432 0.44098,-0.44098 -1.82173,-2.94762 -2.71424,-0.67341 -2.58839,6.59549 0.16346,9.44156 0.0217,10.46233 -1.0071,7.25 -0.54888,-1.71386 -0.84199,0.17286 -0.93212,6 -0.11916,7.70301 -0.26915,8.31799 -1.59968,6.55887 -1.70099,-2.24891 -1.95126,-1.32999 -0.41803,1.53488 0.5776,1.07925 1.41259,1.73828 1.85555,1.46452 0.44295,-0.27376 0.59291,0.61364 0.33325,1.97199 -0.35012,1.83153 -0.0391,2.46974 1.20347,2.46974 1.07433,0 1.40612,-0.44855 0.92462,-1.25 z m 5.75703,-8.01667 c -0.98762,-0.98026 -1.10248,-0.8654 -0.5598,0.5598 0.37553,0.98622 0.93469,1.54122 1.24258,1.23333 0.30789,-0.30789 6.4e-4,-1.11479 -0.68278,-1.79313 z m -11.12409,-3.73331 c 0,-0.55 -0.7875,-0.99311 -1.75,-0.98469 -1.49555,0.0131 -1.5319,0.15626 -0.25,0.98469 1.88721,1.21961 2,1.21961 2,0 z m 15.13671,-0.78776 c -0.72144,-0.24048 -1.78716,0.0382 -2.36826,0.61931 -0.74207,0.74207 -0.35164,0.87221 1.31171,0.43724 1.3522,-0.35361 1.8055,-0.8069 1.05655,-1.05655 z m -69.4536,-1.39974 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19293,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36782,-1.1948 0.0789,-1.91667 z m 56.31689,-1.59821 c 0,-0.43215 -0.9,-0.78572 -2,-0.78572 -1.1,0 -2,0.35357 -2,0.78572 0,0.43214 0.9,0.78571 2,0.78571 1.1,0 2,-0.35357 2,-0.78571 z m 12,-0.0476 c 0,-0.45834 -0.675,-0.83334 -1.5,-0.83334 -0.825,0 -1.5,0.375 -1.5,0.83334 0,0.45833 0.675,0.83333 1.5,0.83333 0.825,0 1.5,-0.375 1.5,-0.83333 z m -16.76103,-2.63641 c 0.25966,-1.35835 0.0871,-2.2318 -0.38343,-1.94098 -0.82856,0.51206 -1.24587,4.4107 -0.47212,4.4107 0.21088,0 0.59588,-1.11138 0.85555,-2.46974 z m 19.10611,0.92661 c -0.32569,-0.84872 -0.80663,-1.32866 -1.06875,-1.06653 -0.26213,0.26213 -0.17998,0.95654 0.18255,1.54313 0.98605,1.59546 1.56238,1.28551 0.8862,-0.4766 z m -62.85216,-0.44542 c 0.35034,-0.56686 -0.0511,-0.7345 -0.94098,-0.39301 -1.73242,0.66477 -2.04939,1.38154 -0.61096,1.38154 0.51754,0 1.21592,-0.44485 1.55194,-0.98855 z m 107.06221,-3.68047 c -0.26619,-1.46794 -1.06249,-3.08198 -1.76955,-3.58674 -0.89893,-0.64173 -0.65425,-0.78131 0.8135,-0.46409 2.04163,0.44124 2.42134,-0.99605 1.52704,-5.78017 -0.17876,-0.95623 -2.04931,1.62205 -2.34253,3.22882 -0.3054,1.67353 -2.98296,3.49453 -5.33636,3.62925 -2.28354,0.13071 -2.33992,0.24563 -0.71336,1.45402 0.97137,0.72165 3.00363,1.5654 4.51613,1.875 1.5125,0.3096 2.75,0.95666 2.75,1.43791 0,0.48125 0.2338,0.875 0.51956,0.875 0.28575,0 0.30176,-1.20105 0.0356,-2.669 z M 105.1253,479.31676 c -1.82946,-1.96369 -1.85081,-1.96251 -3.87854,0.214 -1.12143,1.20371 -1.51633,2.18856 -0.87756,2.18856 0.85674,0 0.84225,0.38455 -0.0552,1.46597 -0.98359,1.18515 -0.46311,1.14416 2.71714,-0.214 3.85656,-1.64698 3.89767,-1.71873 2.0942,-3.65453 z m -3.25141,-3.1976 c -0.25803,-1.75808 -2.54068,-4.15339 -2.7158,-2.84984 -0.6375,4.74539 -0.53166,5.17366 1.16874,4.729 0.96552,-0.25249 1.66169,-1.09811 1.54706,-1.87916 z m 11.41182,-3.96327 c 0,-2.37519 -0.45,-4.59665 -1,-4.93657 -0.55,-0.33992 -1,-1.84135 -1,-3.33651 0,-3.10945 -2.49219,-7.16349 -4.40369,-7.16349 -2.685,0 -5.10909,3.50425 -5.36114,7.75 -0.14862,2.50357 0.1864,4.25 0.81529,4.25 0.58716,0 0.7422,0.52647 0.34451,1.16994 -0.50132,0.81115 -0.15327,0.95129 1.13492,0.45696 1.77861,-0.68251 1.78283,-0.62994 0.0989,1.23079 -1.16845,1.29111 -1.39597,2.16817 -0.67762,2.61213 0.5948,0.36761 0.82255,1.08728 0.50612,1.59928 -0.31643,0.51199 0.12623,0.9309 0.98369,0.9309 1.97898,0 1.96031,-0.45585 -0.10322,-2.51938 -1.54966,-1.54966 -1.49886,-1.63913 0.75,-1.32095 1.48347,0.20989 2.36699,0.96551 2.29473,1.96255 -0.0839,1.15797 0.46433,1.46909 1.91867,1.08877 1.63994,-0.42885 1.9016,-0.18176 1.34462,1.26971 -0.5845,1.52317 -0.45579,1.60651 0.83133,0.5383 0.93365,-0.77486 1.52289,-2.93483 1.52289,-5.58243 z m 84.61328,4.99804 c -0.46288,-1.20626 -0.13753,-1.41839 1.41813,-0.92464 2.11148,0.67016 2.44641,-1.29158 0.46859,-2.74466 -0.55,-0.40408 0.575,-0.73468 2.5,-0.73468 1.925,0 3.01718,0.3306 2.42706,0.73468 -1.67861,1.14942 -2.66296,4.47999 -1.17774,3.98492 0.68787,-0.22929 1.30693,-0.9419 1.37568,-1.58356 0.0687,-0.64167 0.18125,-1.39167 0.25,-1.66667 0.0687,-0.275 0.0866,-0.78719 0.0396,-1.1382 -0.047,-0.351 0.51552,-1.05548 1.25,-1.5655 0.91026,-0.63209 0.53949,-0.7456 -1.16459,-0.35654 -2.46707,0.56326 -2.47037,0.55553 -0.25,-0.5873 1.86117,-0.95796 2.25,-1.98967 2.25,-5.97009 -1e-5,-5.07458 -1.53839,-6.88237 -5.85672,-6.88237 -2.17696,0 -4.85411,6.04085 -3.58627,8.09225 0.38456,0.62225 0.13778,1.47834 -0.54841,1.90243 -1.26879,0.78415 -1.64691,8.16352 -0.51236,9.99926 0.97635,1.57976 1.7829,1.17589 1.11703,-0.55933 z M 151.9787,466.98835 c -0.25354,-0.97297 -0.47766,-0.41903 -0.49804,1.23097 -0.0204,1.65 0.18706,2.44606 0.46099,1.76903 0.27392,-0.67703 0.29059,-2.02703 0.0371,-3 z m -1.69299,1.73097 c 0,-0.55 -0.45,-1 -1,-1 -0.55,0 -1,0.45 -1,1 0,0.55 0.45,1 1,1 0.55,0 1,-0.45 1,-1 z m 6,-2.83333 c 0,-0.45834 -0.675,-0.83334 -1.5,-0.83334 -0.825,0 -1.5,0.375 -1.5,0.83334 0,0.45833 0.675,0.83333 1.5,0.83333 0.825,0 1.5,-0.375 1.5,-0.83333 z m -0.38448,-4.56241 c -0.40708,-1.62194 -0.1191,-2.58078 0.8916,-2.96862 0.82108,-0.31508 1.49288,-1.68544 1.49288,-3.04524 0,-1.3598 0.45,-2.75048 1,-3.0904 0.55,-0.33992 1,-1.51803 1,-2.61803 0,-1.1 -0.34147,-1.78896 -0.75883,-1.53102 -0.41736,0.25794 -0.78557,-1.178 -0.81825,-3.19098 -0.16756,-10.3218 -0.44932,-12.15997 -1.8639,-12.15997 -0.79254,0 -1.76291,-0.52089 -2.15637,-1.15752 -0.49016,-0.79309 -0.0365,-0.97998 1.44098,-0.59362 1.97407,0.51623 2.15637,0.18104 2.15637,-3.96492 0,-3.91224 -0.20422,-4.35934 -1.5,-3.28394 -1.22209,1.01424 -1.5,0.96164 -1.5,-0.28394 0,-1.03649 -0.64406,-1.3604 -2,-1.00581 -1.1,0.28766 -2.00615,1.25803 -2.01365,2.15638 -0.008,0.89835 -0.30485,2.72177 -0.66074,4.05204 -0.52826,1.97452 -0.34212,2.30164 1.01365,1.78138 1.07292,-0.41171 1.66074,-0.12857 1.66074,0.79995 0,0.81991 -0.60031,1.20687 -1.39762,0.90091 -1.07893,-0.41402 -1.39376,0.56225 -1.38069,4.28139 0.009,2.64973 -0.23947,6.84391 -0.55285,9.32038 -0.54678,4.32092 0.45559,11.45508 1.79809,12.79758 0.353,0.353 1.04288,-0.007 1.53307,-0.80026 0.49019,-0.79314 1.20485,-1.12849 1.58813,-0.74521 0.38328,0.38328 0.12765,1.38275 -0.56807,2.22104 -0.86505,1.04232 -0.9101,1.52417 -0.1425,1.52417 0.61734,0 1.12244,0.675 1.12244,1.5 0,0.825 0.27378,1.5 0.60841,1.5 0.33462,0 0.33782,-1.07808 0.007,-2.39574 z m -3.11552,-6.60426 c -0.33992,-0.55 0.0835,-1 0.94098,-1 0.85746,0 1.55902,0.45 1.55902,1 0,0.55 -0.42344,1 -0.94098,1 -0.51754,0 -1.2191,-0.45 -1.55902,-1 z m 3.06429,-1.70687 c -0.54268,-1.4252 -0.42782,-1.54006 0.5598,-0.5598 0.68342,0.67834 0.99067,1.48524 0.68278,1.79313 -0.30789,0.30789 -0.86705,-0.24711 -1.24258,-1.23333 z m -3.06429,-1.29313 c -0.33992,-0.55 -0.14148,-1 0.44098,-1 0.58246,0 1.05902,0.45 1.05902,1 0,0.55 -0.19844,1 -0.44098,1 -0.24254,0 -0.7191,-0.45 -1.05902,-1 z m -1,-3 c 0.33992,-0.55 0.81648,-1 1.05902,-1 0.24254,0 0.44098,0.45 0.44098,1 0,0.55 -0.47656,1 -1.05902,1 -0.58246,0 -0.7809,-0.45 -0.44098,-1 z m 1.1875,-2.64583 c -0.37813,-0.37813 -0.67382,-1.4 -0.65709,-2.27084 0.0245,-1.27745 0.24029,-1.22207 1.11683,0.28665 0.88681,1.52639 1.26268,1.61826 2.04572,0.5 0.79696,-1.13814 0.89353,-1.12671 0.57067,0.0675 -0.45001,1.66455 -2.07834,2.41445 -3.07613,1.41667 z m -0.35417,-9.83829 c 0,-1.16351 0.30451,-1.23141 1.40955,-0.31431 1.0927,0.90687 1.61376,0.8471 2.31802,-0.26587 0.74608,-1.17906 0.91121,-1.12288 0.92379,0.3143 0.0102,1.17104 -0.75663,1.75 -2.31802,1.75 -1.39632,0 -2.33334,-0.59599 -2.33334,-1.48412 z m 1.41667,-8.26514 c -0.9625,-0.21856 -1.75,-0.73919 -1.75,-1.15694 0,-0.8662 3.65668,-0.77046 4.54616,0.11903 0.87276,0.87276 -0.79585,1.49214 -2.79616,1.03791 z m 9.82302,11.17942 c -1.87893,-1.87893 -2.08283,-0.22692 -0.32302,2.61706 0.99774,1.61241 1.31519,1.7109 1.57302,0.48802 0.17766,-0.84263 -0.38484,-2.23992 -1.25,-3.10508 z m -18.18001,1.98805 c 1.05872,-2.75898 0.6972,-3.73796 -0.89301,-2.41821 -1.63697,1.35856 -2.0378,4 -0.60699,4 0.49116,0 1.16616,-0.7118 1.5,-1.58179 z m -0.14301,-25.41127 c 1.88563,-2.64198 2.21456,-4.00694 0.96561,-4.00694 -1.15739,0 -3.85504,5.05219 -4.53863,8.5 -0.58925,2.97198 -0.58351,2.97646 0.61411,0.47945 0.6649,-1.38631 1.99641,-3.62393 2.95891,-4.97251 z m 21.17968,3.40278 c -0.70356,-3.50413 -3.12762,-7.04511 -4.13398,-6.03875 -0.39873,0.39872 -0.17188,1.49087 0.50412,2.42699 0.67599,0.93612 1.7246,2.96251 2.33025,4.50309 1.36782,3.47933 2.07919,2.99144 1.29961,-0.89133 z m -11.65056,0.75291 c 0.21315,-0.63945 -0.0999,-1.16263 -0.69579,-1.16263 -0.59583,0 -1.07644,-0.7875 -1.06802,-1.75 0.0131,-1.49555 0.15626,-1.5319 0.98469,-0.25 0.53316,0.825 1.02951,1.05 1.103,0.5 0.0735,-0.55 0.47715,0.35 0.897,2 0.75665,2.97359 0.76441,2.9667 0.88169,-0.78222 0.0958,-3.06406 -0.30892,-3.94233 -2.13169,-4.62543 -2.52512,-0.9463 -3.55845,0.47721 -3.67972,5.06917 -0.0516,1.955 0.37988,2.59544 1.62551,2.41262 0.93269,-0.13689 1.87019,-0.77207 2.08333,-1.41151 z m -31.37918,-7.39732 c 0.67854,-0.45317 0.42949,-0.74055 -0.64994,-0.75 -1.17572,-0.0103 -1.72409,0.72305 -1.67105,2.23469 0.0528,1.50344 0.2684,1.7523 0.64994,0.75 0.31405,-0.825 1.06602,-1.83061 1.67105,-2.23469 z m 65.02281,0.35969 c 0.29742,-0.48125 -0.62406,-0.875 -2.04775,-0.875 -1.8295,0 -2.19069,0.25208 -1.23176,0.85969 1.73951,1.10221 2.60527,1.10625 3.27951,0.0153 z m -31.10036,-4.24981 c 0.51787,-1.98034 0.4639,-1.99176 -1.40784,-0.29786 -1.8619,1.685 -2.00937,1.67815 -3.39865,-0.15795 -1.71934,-2.27231 -1.8924,-3.41938 -0.5159,-3.41938 0.55,0 1,0.45 1,1 0,0.55 0.70156,1 1.55902,1 0.88527,0 1.26331,-0.47846 0.87477,-1.10713 -0.46271,-0.74867 0.0194,-0.88381 1.48897,-0.41739 2.75469,0.87431 5.07724,-0.99515 5.07724,-4.08677 0,-2.85489 -3.6808,-17.1845 -5.04453,-19.63871 -0.66972,-1.20526 -0.6227,-1.75 0.15107,-1.75 0.69247,0 0.49166,-0.96428 -0.52345,-2.51353 -1.5742,-2.40253 -1.53938,-2.62109 0.7884,-4.94887 1.52899,-1.52899 2.00607,-2.61106 1.28192,-2.90752 -0.63438,-0.2597 0.20896,-0.50771 1.87408,-0.55113 5.13966,-0.13403 7.07807,-2.26767 7.34342,-8.08307 0.42211,-9.25072 -2.94846,-14.72232 -10.18848,-16.53945 -6.75309,-1.69492 -14.8242,2.77577 -16.59601,9.19273 -0.53464,1.93634 -0.71141,5.72158 -0.39281,8.41164 0.44898,3.79095 1.05465,5.05347 2.69283,5.61324 1.16246,0.39722 2.5182,0.61067 3.01276,0.47435 0.49456,-0.13632 1.57614,0.0119 2.4035,0.32939 1.26703,0.48621 1.20407,0.8212 -0.3992,2.1239 -1.04693,0.85065 -1.38161,1.2868 -0.74374,0.96923 2.72519,-1.35677 6.21477,2.26115 4.60014,4.76933 -0.41063,0.63787 -0.82898,2.05976 -0.92967,3.15976 -0.10069,1.1 -1.44895,6.5879 -2.99612,12.19533 l -2.81305,10.19533 2.73947,2.85939 c 1.50671,1.57266 2.73947,3.36512 2.73947,3.98324 0,0.61812 0.72268,1.84653 1.60595,2.7298 1.8552,1.85521 3.83922,0.76658 4.71644,-2.5879 z m -4.32239,-10.8438 c 0,-1.33904 0.47971,-1.78454 1.5,-1.39302 0.825,0.31659 1.5,1.20246 1.5,1.96862 0,0.76616 -0.675,1.39301 -1.5,1.39301 -0.82536,0 -1.5,-0.8854 -1.5,-1.96861 z m 0,-5.53139 c 0,-1.375 0.45,-2.5 1,-2.5 0.55,0 1,1.125 1,2.5 0,1.375 -0.45,2.5 -1,2.5 -0.55,0 -1,-1.125 -1,-2.5 z m 0.0375,-8.42989 c -1.39539,-2.60732 -1.3084,-3.53981 0.21248,-2.27759 0.6875,0.57057 1.625,1.03817 2.08333,1.03911 1.46704,0.003 1.50101,0.63515 0.10334,1.92274 -1.1053,1.01825 -1.55693,0.88944 -2.39915,-0.68426 z m -21.5375,22.99702 c 0.55,-0.0472 -1.37423,-1.44747 -4.27605,-3.11162 -4.01771,-2.30408 -5.68723,-2.7861 -7,-2.02103 -1.61391,0.94057 -1.60946,1.00664 0.0697,1.03511 0.98651,0.0167 2.95509,1.10736 4.37463,2.42363 1.41955,1.31628 3.31241,2.25071 4.20636,2.07652 0.89395,-0.1742 2.07537,-0.35537 2.62537,-0.40261 z m 51.9769,-1.0416 c 0.98278,-1.08596 2.70082,-2.26455 3.81788,-2.61909 1.77382,-0.56299 1.82804,-0.7582 0.42819,-1.5416 -1.13758,-0.63662 -2.91892,-0.0623 -6.13689,1.97843 -2.49373,1.58148 -4.24576,3.16371 -3.8934,3.51607 1.25141,1.25142 4.02301,0.6123 5.78422,-1.33381 z m 9.35695,1.09832 c 1.06752,-0.6767 1.00723,-0.97085 -0.30194,-1.47323 -0.89968,-0.34524 -1.3819,-0.21692 -1.0716,0.28515 0.31029,0.50208 -0.22883,1.11972 -1.19807,1.37255 -1.23492,0.32213 -1.31339,0.48981 -0.26224,0.56037 0.825,0.0554 2.10023,-0.2798 2.83385,-0.74484 z m -75.10468,-0.72802 c -0.33229,-0.33229 -1.1948,-0.36782 -1.91667,-0.079 -0.79773,0.31923 -0.56078,0.55619 0.60417,0.60417 1.05416,0.0434 1.64479,-0.19293 1.3125,-0.52522 z m 57.50096,-3.05358 c 2.05157,-1.28824 4.22657,-2.34225 4.83333,-2.34225 2.24755,0 0.18972,-2.51103 -2.30102,-2.80778 -1.42082,-0.16928 -5.12481,-2.53178 -8.23107,-5.25 -3.10626,-2.71822 -5.85514,-4.94222 -6.10861,-4.94222 -0.70482,0 0.72775,5.34063 1.79775,6.70201 0.5196,0.66111 0.65222,2.12361 0.29472,3.25 -0.5078,1.59993 -0.21062,2.04799 1.35837,2.04799 1.1046,0 2.28648,0.45 2.6264,1 0.33992,0.55 -0.32436,1 -1.47617,1 -1.72086,0 -1.91928,0.32683 -1.11303,1.83333 1.32133,2.46892 3.84241,2.32011 8.31933,-0.49108 z m -33.38782,-0.73526 c 0.2837,-1.49421 -0.0835,-1.77719 -1.74282,-1.34326 -1.15624,0.30237 -1.85007,0.14172 -1.54185,-0.35699 0.30821,-0.49871 1.48632,-0.90674 2.61801,-0.90674 1.57286,0 1.93302,-0.47644 1.52876,-2.02232 -0.29086,-1.11228 0.14233,-3.36774 0.96266,-5.01213 2.57632,-5.16436 0.95189,-5.35449 -4.67941,-0.54769 -2.99078,2.55288 -6.6886,4.96572 -8.2174,5.36187 -3.8327,0.99315 -3.53694,1.96191 1.44537,4.73423 5.03324,2.80066 9.10513,2.84001 9.62668,0.093 z m 27.15769,-59.10699 c 0,-0.825 -0.43588,-1.5 -0.96862,-1.5 -0.53273,0 -0.70959,0.675 -0.39301,1.5 0.31659,0.825 0.75246,1.5 0.96862,1.5 0.21615,0 0.39301,-0.675 0.39301,-1.5 z"
- id="path3044"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#aeaeae"
- d="m 131.05862,701.2641 c -4.7999,-1.82227 -9.5249,-3.62498 -10.5,-4.00602 -1.55919,-0.60928 -1.41127,-0.98676 1.22709,-3.1314 1.65,-1.34124 4.8,-2.96037 7,-3.59807 5.58696,-1.61946 6.31272,-2.37759 7.06251,-7.37755 0.50261,-3.35169 0.05,-6.26073 -1.8934,-12.16823 -3.42185,-10.40187 -8.35946,-30.45751 -9.17935,-37.28479 -0.45073,-3.75328 -0.15498,-7.48197 0.92359,-11.64434 1.02337,-3.94931 1.58665,-10.41148 1.58665,-18.20269 0,-10.948 -0.26914,-12.76125 -2.87293,-19.35566 -9.8399,-24.92073 -11.31659,-40.88213 -6.68671,-72.27603 0.89223,-6.05 2.02402,-14.6 2.51508,-19 0.49105,-4.4 1.44853,-10.48581 2.12773,-13.52402 1.15772,-5.17877 1.06871,-5.93942 -1.42414,-12.17055 -1.46246,-3.6556 -2.65903,-7.65729 -2.65903,-8.89265 0,-4.85963 -1.3703,-0.47153 -2.59903,8.32287 -3.02276,21.63468 -8.15786,33.97652 -21.32962,51.26413 l -4.57135,5.99979 -0.0646,10.50021 c -0.0489,7.94216 -0.62147,12.32737 -2.35029,18.00022 l -2.28564,7.5 -5.9553,2.89442 c -4.47121,2.17311 -6.24049,2.60922 -7.09971,1.75 -0.62943,-0.62943 -1.90628,-1.14442 -2.83743,-1.14442 -2.24571,0 -2.95754,-2.14152 -2.41767,-7.27353 0.24454,-2.32456 0.70063,-6.91789 1.01353,-10.20741 l 0.56891,-5.98094 -3.28588,3.1696 c -6.52352,6.29269 -12.99241,6.21583 -8.42144,-0.10005 1.237,-1.70922 3.12355,-4.82821 4.19233,-6.9311 2.2635,-4.45359 3.40589,-5.65566 9.30911,-9.79537 2.77904,-1.94883 4.92011,-4.47255 5.89072,-6.94347 0.83865,-2.13501 1.81508,-3.70245 2.16983,-3.4832 0.35475,0.21925 0.71138,-0.35583 0.79251,-1.27795 0.18868,-2.14451 7.80973,-32.02354 8.84473,-34.67658 0.42913,-1.1 2.61536,-4.7 4.85828,-8 l 4.07805,-6 0.12733,-23.54117 c 0.12479,-23.07085 0.17776,-23.64025 2.65102,-28.5 1.38802,-2.72736 3.58072,-5.92169 4.87267,-7.09852 2.75068,-2.50559 10.65786,-6.54906 16.34898,-8.36031 5.78772,-1.84199 12.72458,-5.47664 16.47454,-8.63203 3.01517,-2.5371 3.21891,-3.085 2.71647,-7.30539 -0.29875,-2.50942 -1.24867,-5.91258 -2.11094,-7.56258 -0.86226,-1.65 -1.57329,-3.675 -1.58007,-4.5 -0.007,-0.825 -0.61607,-2.65694 -1.35398,-4.07099 -1.54357,-2.95788 -1.19442,-18.0358 0.49054,-21.18417 1.53765,-2.87314 1.79794,-1.77639 0.82033,3.45653 -1.34036,7.17457 -0.37413,11.77293 3.26207,15.52454 1.74536,1.80075 3.67409,3.27409 4.28608,3.27409 0.61198,0 1.98621,0.70837 3.05383,1.57416 1.06762,0.86578 1.37863,1.28923 0.69113,0.94098 -0.6875,-0.34824 -1.25,-0.15662 -1.25,0.42584 0,1.02313 2.05587,1.4941 4.84915,1.1109 1.63537,-0.22436 1.06785,3.90682 -2.46248,17.92519 -3.01153,11.95826 -2.98807,12.9681 0.36333,15.64134 2.632,2.09941 2.73824,2.53012 2.47581,10.03756 -0.3106,8.88585 -1.9159,31.34256 -2.34826,32.85015 -0.44236,1.54245 2.22736,11.49388 3.08352,11.49388 0.41887,0 0.55263,1.09309 0.29724,2.42908 -0.28055,1.46762 -0.97669,2.23248 -1.75874,1.93238 -0.71191,-0.27318 -1.90305,0.22435 -2.64698,1.10562 -0.74392,0.88128 -1.84402,2.1585 -2.44465,2.83826 -2.48534,2.81275 -3.34003,5.36257 -2.18477,6.51784 0.83943,0.83942 0.63476,1.69351 -0.7968,3.32509 -1.0595,1.20753 -1.36387,1.86661 -0.67637,1.46461 0.6875,-0.402 1.25,-0.26549 1.25,0.30335 0,0.69702 0.83642,0.71626 2.5651,0.059 3.22762,-1.22714 3.70612,-1.22311 2.9349,0.0248 -0.33992,0.55 0.0835,1 0.94098,1 1.25956,0 1.55608,1.29655 1.54371,6.75 -0.009,4.07456 -0.35083,6.22069 -0.86181,5.41459 -0.46557,-0.73448 -1.13367,-1.29698 -1.48468,-1.25 -0.35101,0.047 -1.6507,0.0395 -2.8882,-0.0167 -1.79854,-0.0816 -1.5979,-0.31128 1,-1.14466 3.16433,-1.0151 4.45852,-2.75326 2.05,-2.75326 -0.93333,0 -0.93333,-0.26667 0,-1.2 1.48742,-1.48742 1.57894,-4.8 0.13261,-4.8 -0.63328,0 -0.79306,0.86434 -0.39286,2.12523 0.42507,1.33929 0.29667,1.89171 -0.34721,1.49377 -0.56194,-0.3473 -1.28957,-0.0662 -1.61694,0.62477 -0.32738,0.69093 -0.39626,-0.31877 -0.15308,-2.24377 0.24318,-1.925 0.21761,-2.96004 -0.0568,-2.30009 -0.33752,0.81167 -1.23243,0.92106 -2.76581,0.33807 -2.51819,-0.95742 -5.60905,0.22029 -3.69034,1.40612 0.61769,0.38175 0.86418,1.113 0.54775,1.625 -0.31643,0.51199 0.26926,0.9309 1.30153,0.9309 1.53083,0 1.82605,0.6453 1.60123,3.5 -0.21505,2.73064 0.0998,3.50779 1.43215,3.53544 0.93929,0.0195 2.79811,0.63946 4.13072,1.37772 l 2.42292,1.3423 -2.22557,0.70637 c -1.64779,0.52298 -1.95455,1.03294 -1.1816,1.96428 0.57418,0.69185 0.75847,1.54341 0.40952,1.89236 -0.34895,0.34895 0.11644,0.9226 1.0342,1.27477 1.38255,0.53054 1.44995,0.9104 0.39313,2.2155 -0.98606,1.21771 -0.99185,1.40475 -0.0255,0.8242 0.79439,-0.47725 1.25,-0.16122 1.25,0.86706 0,0.88992 0.41049,1.36433 0.91221,1.05425 0.50172,-0.31008 0.79498,0.22587 0.6517,1.19099 -0.14328,0.96512 0.22259,2.53126 0.81306,3.48031 0.92082,1.48001 1.32794,1.07802 2.86103,-2.82491 0.98309,-2.50275 1.48719,-5.03628 1.12021,-5.63006 -0.36697,-0.59378 -0.22185,-0.80434 0.32249,-0.46792 0.54435,0.33643 1.73888,-0.95931 2.65451,-2.87942 1.80102,-3.77677 2.21785,-5.84647 0.69112,-3.4316 -0.68943,1.09049 -1.24074,1.19395 -2.04998,0.38471 -0.80925,-0.80925 -0.0572,-1.52698 2.7966,-2.66883 3.86785,-1.5476 4.72339,-3.47737 2.87069,-6.4751 -0.44175,-0.71477 -0.25815,-1.23242 0.4371,-1.23242 0.65933,0 1.75943,-0.76675 2.44468,-1.70388 1.83117,-2.50427 -0.16497,-6.5453 -2.81733,-5.70347 -1.15702,0.36722 -2.30947,0.0663 -2.81762,-0.73564 -0.65361,-1.03153 -0.86352,-0.89729 -0.87516,0.55966 -0.008,1.05416 -0.31141,1.62057 -0.6733,1.25867 -0.3619,-0.36189 -1.20916,-0.20056 -1.88281,0.35852 -0.91066,0.75578 -1.33869,0.24058 -1.66881,-2.00868 -0.2442,-1.66385 -0.0861,-3.02518 0.35142,-3.02518 0.43748,0 0.55111,-0.63666 0.25251,-1.41481 -0.43264,-1.12743 0.28465,-1.30381 3.53138,-0.86833 2.89421,0.3882 4.0743,0.18249 4.0743,-0.71019 0,-0.85877 -0.93583,-1.0695 -2.95562,-0.66555 -2.27887,0.45578 -2.83234,0.26989 -2.41724,-0.81185 0.30179,-0.78645 1.22115,-1.14098 2.09207,-0.80678 1.04347,0.40042 1.39813,0.13339 1.07999,-0.81314 -0.28999,-0.86278 -1.50637,-1.28464 -3.13645,-1.08778 -2.67621,0.32319 -2.98217,-0.14353 -2.83302,-4.32157 0.064,-1.79241 0.69406,-5.17102 1.21218,-6.5 0.10721,-0.275 0.13557,-0.85573 0.063,-1.29051 -0.0726,-0.43478 0.35886,-1.70755 0.95871,-2.82838 0.77159,-1.44172 0.79248,-3.98954 0.0714,-8.70949 -0.56057,-3.66939 -1.29011,-13.08474 -1.6212,-20.923 -0.59976,-14.19875 -0.59283,-14.26054 1.87568,-16.72905 1.36272,-1.36271 2.6117,-3.27459 2.77552,-4.24862 0.28236,-1.67881 -3.17756,-17.89196 -5.36587,-25.14435 -0.77836,-2.57962 -0.70924,-3.56414 0.29373,-4.18402 0.72139,-0.44584 1.67059,-0.58875 2.10935,-0.31758 0.43876,0.27117 1.31592,0.17279 1.94924,-0.21863 0.79787,-0.4931 0.58562,-1.12543 -0.69113,-2.05901 -1.71814,-1.25635 -1.66635,-1.34736 0.76673,-1.34736 1.43514,0 3.39497,-0.30147 4.35518,-0.66994 1.08916,-0.41795 1.50426,-0.27906 1.10358,0.36924 -0.42296,0.68437 0.45999,0.81511 2.58596,0.38292 2.37093,-0.482 3.31692,-1.27342 3.5623,-2.98024 0.22363,-1.5556 -0.0469,-2.08851 -0.81818,-1.61182 -0.63375,0.39168 -0.91071,1.34162 -0.61548,2.11099 0.3735,0.97333 -0.23972,1.39885 -2.01585,1.39885 l -2.55265,0 3.05751,-3.86042 c 4.04645,-5.10905 4.28349,-13.14414 0.55623,-18.8544 -1.75053,-2.68185 -1.80177,-3.28518 -0.27901,-3.28518 0.64166,0 0.90416,0.2625 0.58333,0.58333 -0.32083,0.32084 0.27917,1.44584 1.33333,2.5 1.88428,1.88429 2.34809,5.27629 1.93709,14.16667 -0.10117,2.1884 0.28957,3.75 0.93829,3.75 0.78665,0 0.811,0.56179 0.0833,1.92156 -1.8305,3.42032 -5.80567,15.47495 -6.36337,19.29677 -0.82807,5.67472 2.63736,8.10422 25.82139,18.10257 8.06021,3.47605 11.82922,6.662 14.56373,12.31076 2.1696,4.48179 2.29241,5.91217 2.38882,27.82245 0.0931,21.16865 0.2664,23.3586 2.07454,26.22086 1.0851,1.7177 3.22166,5.13976 4.74791,7.60458 1.8063,2.91707 4.1465,10.02122 6.70389,20.35096 5.38377,21.74596 9.99444,30.63931 17.04475,32.87699 1.0223,0.32447 3.52296,3.60551 5.55704,7.29122 2.03408,3.6857 4.38991,7.49941 5.23519,8.47491 1.15764,1.33597 1.25329,2.05721 0.38763,2.92287 -1.37325,1.37325 -3.97601,0.26068 -9.03237,-3.86097 l -3.32887,-2.7135 0.32887,11.38525 0.32887,11.38525 -3.54878,0.85549 c -3.67618,0.8862 -5.84513,0.30112 -11.43271,-3.08398 -4.69605,-2.84499 -7.51094,-12.84354 -7.25258,-25.76135 0.22515,-11.25769 1.23229,-8.80684 -10.23349,-24.90269 -8.86437,-12.44395 -13.53935,-25.97485 -16.75695,-48.5 l -0.78564,-5.5 -2.3946,6.5 c -1.43278,3.8892 -2.40077,8.70914 -2.40997,12 -0.0215,7.68342 4.01337,39.21028 5.98527,46.7667 2.71488,10.40361 1.38475,30.48567 -3.02914,45.7333 -1.91057,6.6 -4.48741,14.25 -5.7263,17 -3.04975,6.76962 -3.81345,23.92414 -1.50527,33.81205 0.87459,3.74663 1.59016,9.15792 1.59016,12.02509 0,5.70953 -4.39857,24.90293 -9.02296,39.37217 -4.00585,12.5339 -2.96933,18.54342 3.37598,19.57313 3.92293,0.6366 10.77214,4.74176 10.31246,6.1809 -0.49548,1.55122 -19.83504,8.50006 -23.66548,8.50318 -4.85843,0.004 -6.35919,-1.22884 -6.2469,-5.13149 0.0528,-1.83426 0.0951,-4.91003 0.0941,-6.83503 -0.002,-4.16091 -0.0619,-2.20738 0.74858,-24.5 0.54199,-14.90819 0.37526,-19.08742 -0.9707,-24.33077 -2.05816,-8.01778 -2.05562,-14.62006 0.009,-24.22924 1.5904,-7.401 1.57694,-7.75925 -0.5,-13.31036 -1.93371,-5.16883 -2.13419,-7.70597 -2.13419,-27.01158 0,-11.71881 -0.3149,-26.21443 -0.69978,-32.21249 -1.14817,-17.89328 -2.33716,-6.97269 -2.79828,25.70147 -0.3345,23.7022 -0.68963,29.32157 -2.07124,32.77457 -1.69532,4.237 -1.68878,4.68847 0.32013,22.1184 0.73114,6.34356 0.57618,8.11409 -1.79415,20.5 -0.75712,3.95623 -0.91604,10.93912 -0.46656,20.5 1.59399,33.90549 1.59427,33.88447 -0.47059,34.98955 -3.19716,1.71107 -8.14901,1.00912 -17.24662,-2.44477 z m 16.58848,-1.14687 c 1.79281,-1.06148 1.76517,-1.38087 -0.75,-8.66797 -2.25087,-6.52135 -2.61139,-9.22576 -2.61139,-19.58889 0,-6.61266 -0.38219,-12.25923 -0.84932,-12.54793 -1.25353,-0.77472 -5.33201,4.30446 -4.51626,5.62438 0.38385,0.62108 0.79064,2.28873 0.90398,3.70587 0.11333,1.41715 0.89589,6.17663 1.73903,10.57663 0.99787,5.2075 1.19622,8.40987 0.56823,9.1742 -0.5306,0.64581 -0.66286,2.78331 -0.2939,4.75 0.73291,3.90676 -0.91971,5.10078 -1.89547,1.36947 -0.31733,-1.21348 -0.89091,-1.89239 -1.27462,-1.50868 -0.38371,0.38371 -1.32394,0.17789 -2.0894,-0.45739 -1.3373,-1.10986 -7.85316,-2.05516 -6.78189,-0.98389 0.28761,0.28761 -0.83457,1.09371 -2.49373,1.79134 -1.65916,0.69762 -3.01665,1.65352 -3.01665,2.12423 0,1.00282 7.59329,4.51005 10.5,4.8498 1.1,0.12857 3.11236,0.6535 4.47192,1.16651 2.55176,0.96287 5.15968,0.53461 8.38947,-1.37768 z m -9.86139,-2.39791 c -0.33992,-0.55 -0.16803,-1 0.38197,-1 0.55,0 1.27811,0.45 1.61803,1 0.33992,0.55 0.16803,1 -0.38197,1 -0.55,0 -1.27811,-0.45 -1.61803,-1 z m -0.6875,-2.68311 c 0.72187,-0.28887 1.58438,-0.25335 1.91667,0.0789 0.33229,0.33229 -0.25834,0.56864 -1.3125,0.52522 -1.16495,-0.048 -1.4019,-0.28494 -0.60417,-0.60416 z m 34.75936,6.10351 c 2.71048,-0.86878 5.82814,-1.95297 6.92814,-2.40932 4.2427,-1.76013 6.02998,-2.32192 6.82433,-2.14506 1.93532,0.43089 -0.53565,-1.71091 -3.29016,-2.85187 -1.65482,-0.68544 -2.83244,-1.53154 -2.61695,-1.88021 0.76092,-1.23119 -5.13215,-0.61542 -6.71972,0.70215 -0.88544,0.73485 -2.02844,1.07741 -2.54001,0.76125 -0.51156,-0.31617 -1.28134,0.43259 -1.71062,1.66391 -0.63546,1.8227 -0.8552,1.40611 -1.18244,-2.24163 -0.22107,-2.46421 -0.8761,-5.05171 -1.45563,-5.75 -0.75051,-0.90432 -0.71375,-1.26962 0.12777,-1.26962 0.64981,0 0.94018,-0.3904 0.64529,-0.86755 -0.2949,-0.47716 0.13951,-4.39905 0.96535,-8.71532 0.82583,-4.31626 1.27968,-8.42587 1.00854,-9.13244 -0.27114,-0.70658 -0.0571,-1.28469 0.47563,-1.28469 0.53274,0 0.96862,-0.65747 0.96862,-1.46104 0,-1.81838 -3.99914,-5.65753 -5.15144,-4.94536 -0.46671,0.28844 -0.84856,6.11343 -0.84856,12.94442 0,10.05799 -0.41389,13.68079 -2.17636,19.04962 -2.39284,7.28912 -1.94669,9.35975 2.271,10.53994 1.32295,0.37018 2.4377,0.71792 2.47722,0.77274 0.0395,0.0548 2.28952,-0.61114 5,-1.47992 z m -3.57186,-2.81341 c 0,-0.21616 0.69837,-0.661 1.55194,-0.98855 0.88992,-0.34149 1.29132,-0.17385 0.94098,0.39301 -0.58726,0.95021 -2.49292,1.40545 -2.49292,0.59554 z m -24,-79.02366 c 0,-0.77916 0.5625,-1.6449 1.25,-1.92387 0.85205,-0.34572 0.91503,-0.77021 0.19782,-1.33333 -0.5787,-0.45437 -0.98101,-2.27513 -0.89403,-4.04614 0.087,-1.771 -0.18859,-3.00569 -0.6124,-2.74376 -0.42382,0.26193 -0.94806,-0.0562 -1.165,-0.70705 -0.21693,-0.65081 -0.91972,-0.85863 -1.56175,-0.46183 -0.69522,0.42967 -1.13343,3.1301 -1.0835,6.67705 0.0725,5.14665 0.3409,5.9556 1.97635,5.9556 1.04088,0 1.89251,-0.6375 1.89251,-1.41667 z m 24.16118,-4.681 c 0.18635,-3.35372 0.007,-6.30168 -0.39823,-6.55102 -0.40538,-0.24934 -1.75538,0.52625 -3,1.72353 -1.55243,1.49337 -1.87047,2.32051 -1.01295,2.63435 1.76161,0.64472 1.56058,3.29081 -0.25,3.29081 -0.825,0 -1.5,0.45 -1.5,1 0,0.55 0.675,1 1.5,1 0.825,0 1.5,0.675 1.5,1.5 0,0.825 0.63503,1.5 1.41118,1.5 1.02357,0 1.50424,-1.67483 1.75,-6.09767 z m -38.45392,-12.14067 c -0.23919,-1.24391 -0.44398,-0.46166 -0.45508,1.73834 -0.0111,2.2 0.18461,3.21775 0.4349,2.26166 0.25029,-0.95609 0.25937,-2.75609 0.0202,-4 z m 48.98573,-0.49263 c -0.25354,-0.97297 -0.47766,-0.41903 -0.49804,1.23097 -0.0204,1.65 0.18706,2.44606 0.46099,1.76903 0.27392,-0.67703 0.29059,-2.02703 0.037,-3 z m 56.7881,-43.01903 c -0.26688,-3.1625 -0.75826,-7.49318 -1.09197,-9.62374 -0.41144,-2.62693 -0.19559,-4.12784 0.67066,-4.6632 0.96374,-0.59563 0.36487,-2.32131 -2.43911,-7.02836 -2.59093,-4.34941 -3.39912,-6.55625 -2.66858,-7.28679 0.73055,-0.73055 1.08577,-0.68448 1.17291,0.15209 0.0687,0.66 0.18125,1.63541 0.25,2.16758 0.0687,0.53217 1.01696,1.99467 2.10714,3.25 1.09017,1.25533 1.89206,2.57676 1.78197,2.93651 -0.11009,0.35975 0.46044,1.20235 1.26786,1.87244 1.22577,1.01731 1.46803,0.79534 1.46803,-1.34507 0,-3.79864 2.01125,-4.40511 4.45308,-1.34277 2.86968,3.59893 4.2074,3.39761 1.61501,-0.24306 -1.13745,-1.5974 -2.07156,-3.2849 -2.07579,-3.75 -0.0138,-1.51122 -7.80737,-5.34563 -10.86523,-5.34563 -2.77036,0 -2.95516,0.23163 -2.66612,3.34163 0.17081,1.83789 0.5892,4.87539 0.92974,6.75 0.46722,2.57195 0.39245,2.88862 -0.30468,1.29043 -0.50812,-1.16487 -1.23257,-4.17659 -1.60989,-6.69273 -0.68125,-4.54293 -0.66058,-4.58542 2.97,-6.10237 4.12368,-1.72299 4.05436,-2.18331 -1.35157,-8.97446 -3.66338,-4.6021 -4.21097,-3.76498 -0.61831,0.94524 2.21978,2.91028 2.30019,3.31407 0.77638,3.89881 -1.06047,0.40695 -2.19205,-0.0208 -3.00838,-1.13721 -1.22412,-1.67408 -1.34882,-1.63543 -1.93318,0.59916 -0.53858,2.05955 -0.87583,1.64414 -2.44763,-3.01491 -1.67906,-4.97701 -1.71212,-4.29243 -0.16848,3.48846 0.39934,2.01295 0.22894,2.67894 -0.5606,2.19098 -1.33583,-0.82559 -1.48571,1.31389 -0.23084,3.29509 0.48009,0.75796 1.37319,1.0689 1.98469,0.69098 0.70827,-0.43774 1.14798,0.33241 1.21148,2.12188 l 0.0997,2.80902 0.80064,-2.5 0.80064,-2.5 0.0997,2.75 c 0.0548,1.5125 -0.35032,2.80625 -0.90032,2.875 -0.55,0.0687 -1.51715,0.18125 -2.14922,0.25 -1.40015,0.15229 -2.69085,3.24464 -2.76518,6.625 -0.0445,2.02263 0.14463,2.21358 0.99039,1 0.79113,-1.13521 0.90895,-0.77042 0.48445,1.5 -0.59234,3.16808 1.36649,11.92804 3.37922,15.11201 1.01556,1.60653 1.10505,1.36621 0.60032,-1.61201 -1.7579,-10.37267 -1.76958,-10.91326 -0.26808,-12.41475 1.34929,-1.34929 1.52293,-1.27383 1.61384,0.70139 0.54033,11.73861 1.48735,16.71336 3.18165,16.71336 1.21284,0 1.17645,-1.76458 -0.16542,-8.02148 -1.02268,-4.76861 -0.47267,-12.88255 0.78782,-11.62207 0.30845,0.30845 0.66813,2.49194 0.79929,4.85219 0.56814,10.22365 1.78975,16.79136 3.12325,16.79136 1.03793,0 1.24072,-1.34222 0.86876,-5.75 z m -9.34491,-17.91821 c -0.0749,-1.19252 -0.39516,-2.99252 -0.71169,-4 -0.54481,-1.73409 -0.51463,-1.73692 0.56579,-0.053 0.62771,0.97831 0.94797,2.77831 0.71168,4 -0.42917,2.21904 -0.42973,2.21909 -0.56578,0.053 z m -4.38316,-2.82014 c 0.26162,-1.36859 0.87544,-2.24128 1.36403,-1.93931 0.50306,0.31091 0.4382,1.39017 -0.14953,2.48835 -1.39944,2.61487 -1.78592,2.44016 -1.2145,-0.54904 z M 75.7641,559.46932 c 0.4037,-2.3375 0.9188,-6.5 1.14466,-9.25 0.22585,-2.75 0.85356,-6.35 1.39491,-8 l 0.98426,-3 -0.46205,3.17969 c -0.25412,1.74883 -0.0298,3.32383 0.49858,3.5 0.585,0.19506 0.36928,3.4109 -0.55171,8.22434 -1.47507,7.70937 -1.35806,9.92401 0.42426,8.0293 1.32099,-1.40429 3.05114,-10.52815 1.85643,-9.78978 -1.32956,0.82171 0.0824,-3.57388 1.9735,-6.14355 1.34144,-1.82281 1.42135,-1.51274 0.90196,3.5 -0.31343,3.025 -0.86385,6.5125 -1.22316,7.75 -0.37059,1.27635 -0.21749,2.25 0.35379,2.25 1.27213,0 5.2313,-14.48779 5.21087,-19.0681 -0.008,-1.88754 -0.4578,-4.1069 -0.99861,-4.9319 -0.70544,-1.07616 -0.83963,-0.51103 -0.47487,2 0.49461,3.40492 0.34211,3.2391 -1.8393,-2 -1.00643,-2.41715 -1.06325,-2.36745 -1.71451,1.5 -0.60567,3.59668 -0.6762,3.39502 -0.69949,-2 -0.0143,-3.3 0.17989,-5.2125 0.43142,-4.25 0.25152,0.9625 1.21182,1.71447 2.13399,1.67105 1.0401,-0.049 1.2021,-0.27044 0.42668,-0.58333 -1.92132,-0.77527 -1.4816,-3.33772 0.57277,-3.33772 1.58417,0 1.81324,-0.85068 1.75,-6.4988 -0.0566,-5.0589 -0.2565,-5.88977 -0.902,-3.75 -1.82215,6.04022 -1.70253,5.89974 -3.24219,3.80767 -1.32209,-1.79644 -1.42858,-1.8071 -1.42858,-0.14301 0,1.22881 -0.50082,1.60594 -1.58179,1.19113 -0.86998,-0.33385 -2.01788,-0.60699 -2.55089,-0.60699 -0.53301,0 0.1788,-1.50498 1.58179,-3.34439 1.40299,-1.83942 2.55089,-3.75048 2.55089,-4.2468 0,-0.49633 -1.575,1.31286 -3.5,4.02041 -1.925,2.70755 -3.5,5.30475 -3.5,5.77155 0,0.4668 1.125,1.27646 2.5,1.79923 2.97501,1.1311 3.38757,2.41648 0.47934,1.49344 -1.28038,-0.40637 -3.70785,0.30166 -6.62596,1.93261 -5.6301,3.14673 -6.20263,3.20126 -3.75837,0.35798 l 1.90499,-2.21597 -2.42283,1.53671 c -2.23346,1.41658 -10.85017,15.89523 -9.45978,15.89523 0.33762,0 2.75979,-2.25 5.38261,-5 2.62282,-2.75 5.26222,-5 5.86533,-5 0.60311,0 1.37892,1.125 1.72403,2.5 0.3451,1.375 1.07682,2.5 1.62604,2.5 0.54922,0 0.77373,-0.58594 0.49892,-1.30209 -0.27482,-0.71616 0.57704,-2.33839 1.89301,-3.60496 1.31597,-1.26658 2.39267,-3.05988 2.39267,-3.98511 0,-0.96535 0.8523,-1.74643 2,-1.83289 1.55655,-0.11725 1.98442,0.44531 1.92971,2.5372 -0.0609,2.32868 -0.17357,2.42347 -0.84322,0.70938 -0.68454,-1.75218 -1.09127,-1.47421 -3.55608,2.43029 -3.55716,5.63491 -5.82433,11.04818 -4.62716,11.04818 0.51154,0 1.13098,-0.5625 1.37651,-1.25 0.98399,-2.75517 1.55436,0.0565 0.76622,3.77711 -1.58992,7.50554 -1.84362,14.47289 -0.527,14.47289 0.67397,0 1.55571,-1.9125 1.95941,-4.25 z M 62.30256,540.41966 c -0.0309,-1.46781 3.12259,-6.89423 3.68163,-6.33519 0.30305,0.30305 -0.39755,2.03237 -1.55689,3.84293 -1.15934,1.81056 -2.11548,2.93207 -2.12474,2.49226 z m 17.0621,-3.28367 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z M 240.56441,558.951 c -0.32429,-2.05243 -0.90425,-3.85988 -1.28882,-4.01657 -0.38456,-0.15668 -0.50437,-1.50668 -0.26625,-3 0.34439,-2.15974 0.20856,-2.40829 -0.66408,-1.21511 -1.00694,1.37681 -0.55404,10.28145 0.62388,12.26631 1.12356,1.89327 2.12979,-0.65162 1.59527,-4.03463 z m -170.15108,2.51832 c 0.0702,-0.6875 0.24987,-2.15 0.39929,-3.25 1.25251,-9.22115 1.36772,-10.87995 0.55565,-8 -0.54362,1.92788 -0.88821,2.31503 -0.96425,1.08333 -0.21783,-3.52877 -1.00786,-1.08071 -1.67748,5.19798 -0.45773,4.2919 -0.31893,6.21869 0.44797,6.21869 0.61116,0 1.16863,-0.5625 1.23882,-1.25 z m 166.53466,-15 c -0.27741,-0.6875 -0.50439,-0.125 -0.50439,1.25 0,1.375 0.22698,1.9375 0.50439,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m -46.79465,-0.99734 c -0.83767,-1.5652 -1.34064,-1.83363 -1.65707,-0.88434 -0.24988,0.74964 0.16302,1.75405 0.91756,2.23202 1.99838,1.2659 2.06919,1.13686 0.73951,-1.34768 z m -69.0593,0.17234 c -0.19708,-0.59125 -0.78583,-1.075 -1.30833,-1.075 -0.5225,0 -1.11125,0.48375 -1.30833,1.075 -0.19709,0.59125 0.39166,1.075 1.30833,1.075 0.91667,0 1.50542,-0.48375 1.30833,-1.075 z m 130.30475,-0.28875 c -0.6225,-0.75006 -2.5901,-4.23756 -4.37245,-7.75 -2.5501,-5.02544 -4.15884,-6.88861 -7.54976,-8.74379 -2.37002,-1.29665 -4.55615,-2.11051 -4.85808,-1.80858 -0.30193,0.30193 1.04732,1.21593 2.99833,2.03111 3.51812,1.46996 9.00221,8.52527 9.00221,11.58137 0,0.80193 1.11571,2.49207 2.47936,3.75585 2.72922,2.52936 4.07935,3.07756 2.30039,0.93404 z m -127.79966,-4.43008 c 2.0514,-2.26677 2.49651,-7.52534 0.80908,-9.55857 -0.71921,-0.86659 -1.00076,-2.4558 -0.63773,-3.59961 0.37292,-1.17497 0.20312,-2.04799 -0.39833,-2.04799 -0.57658,0 -1.30788,1.2375 -1.62511,2.75 -0.31722,1.5125 -1.00079,4.63677 -1.51905,6.94282 -0.51825,2.30605 -0.94228,4.89355 -0.94228,5.75 0,2.09769 2.31586,1.97063 4.31342,-0.23665 z m 66.02073,-1.45617 c -0.33872,-1.7875 -0.98407,-3.97353 -1.4341,-4.85784 -0.45004,-0.88431 -0.92863,-3.24681 -1.06354,-5.25 -0.29203,-4.3363 -1.83651,-4.92598 -1.83651,-0.70118 0,1.61754 -0.45,3.2191 -1,3.55902 -2.95359,1.82542 0.3772,10.5 4.0317,10.5 1.6239,0 1.82378,-0.49878 1.30245,-3.25 z M 74.14247,527.82901 c 0.78202,-0.49552 0.95033,-1.11088 0.39732,-1.45266 -0.52769,-0.32613 -1.81323,0.0533 -2.85676,0.8432 -1.45908,1.10444 -1.55086,1.43997 -0.39732,1.45265 0.825,0.009 2.11054,-0.37036 2.85676,-0.84319 z m 10.83623,-8.84066 c -0.25354,-0.97297 -0.47766,-0.41903 -0.49804,1.23097 -0.0204,1.65 0.18706,2.44606 0.46099,1.76903 0.27392,-0.67703 0.29059,-2.02703 0.0371,-3 z m 138.99012,-1.45653 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z M 90.721,507.82128 c -0.62769,-0.62769 -2.41268,1.9121 -2.38817,3.39804 0.009,0.55 0.67253,0.13285 1.47435,-0.927 0.80183,-1.05985 1.21305,-2.17182 0.91382,-2.47104 z m 129.56471,1.89804 c 0,-0.55 -0.45,-1 -1,-1 -0.55,0 -1,0.45 -1,1 0,0.55 0.45,1 1,1 0.55,0 1,-0.45 1,-1 z M 101.83306,490.82745 c 1.14483,-3.43898 1.20149,-4.70584 0.26113,-5.8389 -0.95741,-1.1536 -0.90767,-1.39119 0.2453,-1.17167 1.91436,0.36449 8.73879,-3.84145 9.97206,-6.14584 1.28991,-2.41022 1.2493,-9.66364 -0.0586,-10.47199 -0.5829,-0.36025 -0.90961,-3.32633 -0.75,-6.80902 0.27669,-6.0376 0.22472,-6.17742 -2.40951,-6.48157 -1.48077,-0.17097 -3.8773,0.46558 -5.32561,1.41456 -2.48325,1.62708 -2.61475,2.11503 -2.30769,8.5631 0.17908,3.76074 0.0427,6.83669 -0.30308,6.83545 -0.34577,-10e-4 -1.19127,1.35598 -1.87889,3.01604 -0.91827,2.21689 -0.98868,4.341 -0.26521,8 0.54176,2.73994 0.65857,4.98171 0.25959,4.98171 -0.39898,0 -0.57875,2.54106 -0.3995,5.64681 0.17926,3.10574 -0.0437,6.36824 -0.49556,7.25 -0.45182,0.88175 -0.56401,2.27819 -0.2493,3.10319 0.32369,0.84856 0.93496,-0.45431 1.40752,-3 0.45944,-2.475 1.49326,-6.47634 2.29739,-8.89187 z m 3.60628,-11.99202 c -0.98306,-0.62301 -0.47055,-1.15858 1.89922,-1.98469 4.21157,-1.46816 4.19962,-1.47168 2.94715,0.86858 -1.14435,2.13824 -2.67671,2.49114 -4.84637,1.11611 z m -4.07468,-5.69944 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 109.92105,27.88333 c 0,-2.01099 -0.28907,-2.41093 -1.13278,-1.56722 -0.62303,0.62303 -0.86216,1.83803 -0.53139,2.7 0.91543,2.38558 1.66417,1.87592 1.66417,-1.13278 z m -119.31689,-1.4875 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19293,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36782,-1.1948 0.0789,-1.91667 z m 118.31689,-3.87152 c 0,-0.51754 -0.45,-0.94098 -1,-0.94098 -0.55,0 -1,0.70156 -1,1.55902 0,0.85746 0.45,1.2809 1,0.94098 0.55,-0.33992 1,-1.04148 1,-1.55902 z m -63.5,-0.94098 c -0.33992,-0.55 -1.15398,-0.99311 -1.80902,-0.98469 -0.71561,0.009 -0.59227,0.40223 0.30902,0.98469 1.92112,1.24153 2.2673,1.24153 1.5,0 z m 62.97807,-6.25 c -0.0812,-2.8875 0.16008,-6.375 0.53615,-7.75 0.80835,-2.95548 -1.32995,-10.32393 -2.31902,-7.99121 -0.34775,0.82016 -0.47954,-2.26325 -0.29288,-6.85202 l 0.3394,-8.34324 -3.12086,-1.90303 c -6.36673,-3.88228 -9.21113,-1.38523 -7.68773,6.74894 0.71927,3.84048 0.61322,5.00578 -0.51328,5.64025 -1.72197,0.96985 -1.84891,5.66453 -0.24814,9.17782 0.64443,1.41438 2.66943,3.49726 4.5,4.62861 1.83056,1.13135 3.33518,2.5828 3.3436,3.22544 0.009,0.69132 0.45282,0.55593 1.08675,-0.33156 0.86643,-1.213 0.98032,-1.08187 0.59522,0.68531 -0.26191,1.20192 0.17457,3.11442 0.96996,4.25 0.79539,1.13558 1.16909,2.06469 0.83045,2.06469 -0.33865,0 -0.33761,0.45 0.002,1 1.39459,2.25649 2.11734,0.70361 1.97807,-4.25 z m -11.55922,-10.90163 c -1.02073,-1.90726 -0.93955,-2.06473 0.71482,-1.38655 1.02648,0.4208 2.65383,0.99152 3.61633,1.26826 2.59817,0.74706 2.1186,2.26992 -0.71482,2.26992 -1.49926,0 -2.9159,-0.84287 -3.61633,-2.15163 z m 17.8845,12.29746 c -1.45356,-0.55453 -1.91451,0.40092 -1.15202,2.38793 0.6636,1.72932 0.73283,1.72399 1.38938,-0.10687 0.38004,-1.05979 0.27323,-2.08627 -0.23736,-2.28106 z M 95.75609,483.46932 c 0.41106,-3.42146 -0.59838,-3.53644 -2.1263,-0.2422 -0.7535,1.62459 -0.79791,2.4922 -0.12755,2.4922 0.65405,0 0.68847,0.45499 0.0946,1.25 -0.87314,1.16881 -0.91541,1.80202 -0.33373,5 0.26555,1.45994 2.01167,-4.49349 2.49302,-8.5 z m 119.94583,3 c -0.13725,-1.2375 -0.34033,-2.475 -0.4513,-2.75 -0.11096,-0.275 -0.14846,-0.8375 -0.0833,-1.25 0.21191,-1.34208 -1.65232,-0.78983 -2.20619,0.65355 -0.77907,2.03021 0.35146,5.59645 1.77412,5.59645 0.66894,0 1.10396,-1.0125 0.9667,-2.25 z m -53.83288,-10.75 c 0.77917,0 1.41667,0.45 1.41667,1 0,0.55 0.49814,1 1.10699,1 0.60884,0 0.85878,-0.64681 0.55542,-1.43735 -0.31851,-0.83003 0.16445,-1.64173 1.14302,-1.92105 0.93201,-0.26604 -0.21231,-0.37486 -2.54293,-0.24182 -4.76262,0.27187 -5.81973,0.88958 -4.67955,2.73443 0.59344,0.96022 0.8802,0.97634 1.18347,0.0665 0.22013,-0.66037 1.03775,-1.20071 1.81691,-1.20071 z m -0.58333,-10 c 0,-0.55 -0.92656,-1 -2.05902,-1 -1.13246,0 -1.7809,0.45 -1.44098,1 0.33992,0.55 1.26648,1 2.05902,1 0.79254,0 1.44098,-0.45 1.44098,-1 z m 24,-5.12244 c 0,-0.48266 -0.62686,-0.87756 -1.39301,-0.87756 -1.50158,0 -2.84635,2.4273 -1.8801,3.39356 0.70522,0.70522 3.27311,-1.26869 3.27311,-2.516 z m -57.5,0.12244 c -0.33992,-0.55 -1.26648,-1 -2.05902,-1 -0.79254,0 -1.44098,0.45 -1.44098,1 0,0.55 0.92656,1 2.05902,1 1.13246,0 1.7809,-0.45 1.44098,-1 z m 18.99408,-22.83926 c -1.11417,-1.11416 -3.76002,2.70384 -3.08778,4.45569 0.58475,1.52381 0.88601,1.37403 2.15463,-1.07124 0.81116,-1.56351 1.23108,-3.08652 0.93315,-3.38445 z m 17.73091,1.53537 c -2.02661,-2.23937 -2.81061,-0.65887 -1.18236,2.38355 0.91755,1.71445 1.35533,1.89447 2.01427,0.82828 0.5311,-0.85934 0.22397,-2.04509 -0.83191,-3.21183 z m 2.58631,-19.44611 c -1.43468,-5.23608 -2.64237,-7.25 -4.34763,-7.25 -1.13066,0 -0.83671,1.24591 1.28518,5.44719 3.21041,6.35651 4.52165,7.12841 3.06245,1.80281 z m -23.8113,1.30716 c 0,-0.79356 0.95579,-3.06278 2.12397,-5.0427 2.10568,-3.56887 2.05258,-5.35964 -0.11912,-4.01746 -2.19385,1.35588 -4.82782,10.503 -3.02441,10.503 0.56076,0 1.01956,-0.64928 1.01956,-1.44284 z m -19.25,-7.34926 c 0.6875,-0.87459 1.25,-1.90601 1.25,-2.29204 0,-1.16953 -2.89436,-1.8958 -3.52012,-0.8833 -0.33619,0.54396 -1.63655,0.25566 -3.06324,-0.67913 -1.36348,-0.89339 -2.76501,-1.33839 -3.11452,-0.98889 -0.3495,0.3495 -0.0623,0.63546 0.6382,0.63546 0.76041,0 1.02449,0.64932 0.65533,1.61134 -0.43243,1.12689 -0.18593,1.44541 0.8199,1.05944 0.79102,-0.30354 1.97622,0.0963 2.63378,0.88866 1.09347,1.31755 0.63739,1.86478 -1.29933,1.55898 -0.4125,-0.0651 -0.75,0.3619 -0.75,0.94897 0,1.4776 4.19255,0.12178 5.75,-1.85949 z m 64.25,0.17547 c 0,-1.1243 0.60908,-1.45735 2,-1.09362 1.48349,0.38794 2,0.0307 2,-1.38337 0,-1.04851 0.525,-1.90638 1.16667,-1.90638 0.64166,0 0.88071,-0.28596 0.5312,-0.63546 -0.3495,-0.3495 -1.75866,0.1005 -3.13148,1 -2.77332,1.81715 -5.01693,2.17346 -4.07347,0.64691 0.35034,-0.56686 -0.0511,-0.7345 -0.94098,-0.39301 -0.85357,0.32755 -1.55194,1.47395 -1.55194,2.54757 0,1.07361 0.45,1.67391 1,1.33399 0.55,-0.33992 1,-0.14148 1,0.44098 0,0.58246 0.45,1.05902 1,1.05902 0.55,0 1,-0.72748 1,-1.61663 z m -56.28208,-6.47797 c -0.30851,-4.09558 -12.0706,-8.29899 -15.28662,-5.46297 -1.93218,1.70387 -0.94708,5.03243 1.5992,5.40361 2.15238,0.31377 2.23908,0.18371 0.92949,-1.39424 -1.32255,-1.59359 -1.23422,-1.67726 1.04785,-0.99262 2.41983,0.72598 2.43411,0.70206 0.49216,-0.82395 -1.1,-0.86439 -1.46964,-1.58593 -0.82143,-1.60343 0.64822,-0.0175 1.83214,0.62177 2.63095,1.42058 0.79881,0.79881 1.72036,1.1844 2.04789,0.85687 0.32753,-0.32753 0.87925,0.1439 1.22604,1.04762 0.34679,0.90372 1.45582,1.64313 2.46452,1.64313 1.0087,0 2.11211,0.45 2.45203,1 0.96708,1.56477 1.38964,1.18501 1.21792,-1.0946 z m 49.59225,-0.25909 c 2.55702,-1.29452 4.35828,-2.64452 4.00281,-3 -0.35547,-0.35547 -0.15812,-0.64631 0.43857,-0.64631 0.59668,0 1.75732,-0.25804 2.5792,-0.57342 2.05801,-0.78974 2.66483,2.75147 0.72467,4.2289 -1.23179,0.93801 -1.00059,1.0567 1.22837,0.6306 2.74066,-0.52391 4.83438,-2.28608 2.71621,-2.28608 -0.61492,0 -0.83992,-0.45 -0.5,-1 0.33992,-0.55 0.11492,-1 -0.5,-1 -0.61492,0 -0.87378,-0.39521 -0.57525,-0.87825 0.29853,-0.48303 -0.84584,-1.15597 -2.54305,-1.49541 -2.15327,-0.43065 -3.88607,-0.0633 -5.73377,1.21552 -1.45636,1.00798 -3.37299,2.09283 -4.25917,2.41078 -0.88618,0.31795 -1.85655,1.51618 -2.15638,2.66273 -0.66578,2.54595 -1.02417,2.56702 4.57779,-0.26906 z m -4.54407,-4.39615 c 5.15023,-2.84699 5.22313,-2.94994 3.31301,-4.67856 -1.07419,-0.97214 -2.40982,-1.48524 -2.96806,-1.14023 -0.55824,0.34501 -4.01773,-1.92003 -7.68776,-5.03341 l -6.67277,-5.66069 0.54932,3.38136 c 1.04879,6.4558 2.6507,12.92044 3.67667,14.83747 1.26174,2.35759 2.98045,2.05809 9.78959,-1.70594 z m -34.29991,-0.82015 c 0.93174,-1.9635 1.42525,-4.27053 1.09669,-5.12675 -0.32856,-0.85622 -0.20294,-2.06222 0.27915,-2.68001 1.21522,-1.55726 2.27999,-7.62325 1.33812,-7.62325 -0.42342,0 -3.20449,2.25 -6.18015,5 -2.97566,2.75 -6.33048,5.01431 -7.45515,5.0318 -1.12467,0.0175 -2.868,0.65567 -3.87406,1.41817 -1.69309,1.28319 -1.49804,1.53285 2.62095,3.35488 2.44759,1.08269 4.75979,2.46951 5.13823,3.08184 0.37843,0.61232 1.73523,1.11331 3.01511,1.11331 1.68514,0 2.79433,-0.98475 4.02111,-3.56999 z m -1.54656,-34.47968 c -0.72828,-0.4501 -1.68397,-0.59598 -2.12376,-0.32417 -0.43979,0.2718 -1.23764,-0.65789 -1.77299,-2.06599 -1.29523,-3.40671 -1.77565,-3.23578 -1.23619,0.43983 0.34818,2.37229 0.93966,3 2.82681,3 1.31257,0 2.42203,0.5625 2.46545,1.25 0.0559,0.8852 0.2374,0.85144 0.62188,-0.11565 0.29862,-0.75111 -0.0529,-1.73392 -0.7812,-2.18402 z m 17.13186,123.70116 c -0.57832,-0.57832 -1.05149,-2.9319 -1.05149,-5.23017 0,-3.6811 0.35004,-4.32367 2.93964,-5.39632 1.61681,-0.6697 3.41681,-0.92274 4,-0.5623 0.5832,0.36043 1.06036,0.15222 1.06036,-0.4627 0,-0.61492 0.43035,-0.85207 0.95633,-0.52699 1.72743,1.06761 0.004,3.57416 -1.80629,2.62684 -0.96105,-0.50295 -2.69393,-0.44767 -4.15004,0.13239 -1.52335,0.60684 -1.99854,1.1836 -1.21638,1.47637 0.70599,0.26426 1.89094,-0.0236 2.63322,-0.63959 1.02889,-0.85391 1.49886,-0.7311 1.97772,0.5168 0.45238,1.17889 0.20527,1.4746 -0.88322,1.05691 -0.83124,-0.31898 -1.51134,-0.0959 -1.51134,0.49564 0,0.59159 -0.73865,0.79216 -1.64144,0.44573 -1.37248,-0.52667 -1.43434,-0.38034 -0.37756,0.89301 0.86479,1.042 0.90945,1.52289 0.14144,1.52289 -0.61734,0 -1.12244,0.45 -1.12244,1 0,0.55 0.7875,1.00689 1.75,1.01531 0.9625,0.008 2.35388,0.39806 3.09195,0.86585 0.98299,0.62302 0.6624,0.98044 -1.19851,1.33617 -1.39726,0.2671 -3.01364,0.0125 -3.59195,-0.56584 z m 4.14851,-2.85149 c -1.52396,-1.52396 -1.53915,-2.8 -0.0333,-2.8 0.64166,0 0.87057,0.2961 0.50867,0.65799 -0.36189,0.3619 -0.15679,1.2619 0.45578,2 1.38293,1.66632 0.6977,1.77083 -0.93112,0.14201 z m -12.38148,-9.84443 c -0.19148,-0.57444 -1.35398,-1.1202 -2.58333,-1.21281 -1.22936,-0.0926 -2.23519,-0.54963 -2.23519,-1.01561 0,-0.46598 1.35254,-0.63407 3.00565,-0.37354 1.67855,0.26454 2.75633,0.0703 2.44099,-0.43996 -0.31057,-0.50251 -0.0881,-0.91365 0.49434,-0.91365 0.58246,0 1.05902,1.125 1.05902,2.5 0,2.47097 -1.50768,3.47695 -2.18148,1.45557 z m -5.61488,-5.06649 c 0.22108,-0.66324 1.48367,-1.37098 2.80575,-1.57274 1.32209,-0.20177 2.75393,-0.91798 3.18189,-1.59159 0.50431,-0.7938 0.78348,-0.43305 0.79341,1.02525 0.008,1.2375 -0.32219,2.287 -0.73469,2.33223 -0.4125,0.0452 -2.03212,0.2916 -3.59916,0.54749 -1.93508,0.31599 -2.72021,0.0784 -2.4472,-0.74064 z m 1.54636,-3.55136 c 0.6875,-0.27741 1.25,-1.14189 1.25,-1.92105 0,-0.83684 0.9209,-1.36919 2.25,-1.30067 1.80449,0.093 1.88896,0.20935 0.42658,0.58747 -1.07214,0.27721 -1.6001,1.05346 -1.28139,1.88399 0.37082,0.96635 -0.15878,1.3876 -1.67658,1.33359 -1.22023,-0.0434 -1.65611,-0.30592 -0.96861,-0.58333 z m 7.25,-12.33772 c 0,-0.55 0.45,-1 1,-1 0.55,0 1,0.45 1,1 0,0.55 -0.45,1 -1,1 -0.55,0 -1,-0.45 -1,-1 z m 0,-3 c 0,-0.55 0.45,-1 1,-1 0.55,0 1,0.45 1,1 0,0.55 -0.45,1 -1,1 -0.55,0 -1,-0.45 -1,-1 z m -1.5,-23 c -0.33992,-0.55 -0.14148,-1 0.44098,-1 0.58246,0 1.05902,0.45 1.05902,1 0,0.55 -0.19844,1 -0.44098,1 -0.24254,0 -0.7191,-0.45 -1.05902,-1 z m 2.16667,-37.66667 c -1.03197,-1.03196 -0.78655,-4.33333 0.32213,-4.33333 0.54384,0 0.89569,1.125 0.78189,2.5 -0.2322,2.80564 -0.19443,2.74292 -1.10402,1.83333 z m -16.12397,-51.26423 c -0.31643,-0.512 -0.11798,-1.21356 0.44099,-1.55902 0.55897,-0.34546 1.01631,0.0734 1.01631,0.9309 0,1.75653 -0.60006,2.01516 -1.4573,0.62812 z m 8.9573,-5.0691 c 0.33992,-0.55 1.60398,-0.96837 2.80902,-0.92971 2.11236,0.0678 2.11922,0.10112 0.19098,0.92971 -2.75248,1.18278 -3.731,1.18278 -3,0 z m 11.5,0.16667 c 0,-0.45834 0.675,-0.83334 1.5,-0.83334 0.825,0 1.5,0.375 1.5,0.83334 0,0.45833 -0.675,0.83333 -1.5,0.83333 -0.825,0 -1.5,-0.375 -1.5,-0.83333 z m -5.25,-0.82895 c 0.6875,-0.27741 1.8125,-0.27741 2.5,0 0.6875,0.27741 0.125,0.50439 -1.25,0.50439 -1.375,0 -1.9375,-0.22698 -1.25,-0.50439 z"
- id="path3042"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#969696"
- d="m 129.98208,700.74531 c -5.392,-2.08996 -10.03949,-4.03578 -10.32777,-4.32406 -0.55308,-0.55308 6.54769,-5.70193 7.86353,-5.70193 0.42233,0 0.76787,0.45 0.76787,1 0,0.55 -0.48214,1 -1.07143,1 -1.18035,0 -4.3868,2.89576 -3.79762,3.42965 1.04775,0.94941 9.96484,4.57035 11.25517,4.57035 0.82272,0 1.7419,0.39812 2.04262,0.8847 0.68954,1.1157 6.57126,2.03007 6.57126,1.02156 0,-0.41104 1.35,-1.04386 3,-1.40626 3.62549,-0.79629 3.79157,-2.45628 0.89983,-8.99354 -1.72507,-3.89981 -2.15794,-7.18198 -2.42368,-18.37711 -0.17794,-7.49614 -0.35786,-14.57471 -0.39984,-15.73014 -0.0702,-1.93363 -0.35176,-2.01458 -3.5379,-1.01734 -3.22832,1.01046 -3.43122,1.32048 -3.01105,4.6008 0.24779,1.93453 0.90551,5.08936 1.46159,7.01073 0.55608,1.92137 1.01105,4.88387 1.01105,6.58333 0,1.69947 0.32028,3.41021 0.71173,3.80166 0.39144,0.39145 0.7422,4.51645 0.77946,9.16667 0.0654,8.15929 -0.66432,10.72489 -1.80725,6.35432 -0.30213,-1.15533 -1.01489,-1.81287 -1.58393,-1.46119 -0.56903,0.35168 -1.58659,-0.24447 -2.26125,-1.32477 -1.10312,-1.76637 -1.49248,-1.82673 -3.86604,-0.59931 -2.24365,1.16023 -2.63939,1.15564 -2.63939,-0.0306 0,-0.76753 0.32813,-1.19271 0.72917,-0.94485 0.40104,0.24786 1.70439,-0.33904 2.89633,-1.30421 3.63165,-2.94073 3.69559,-8.61958 0.22366,-19.86298 -4.01632,-13.00631 -6.82875,-24.28383 -8.17817,-32.79349 -0.90107,-5.68223 -0.80714,-8.27936 0.52438,-14.5 1.17967,-5.5112 1.5091,-10.9871 1.20788,-20.07795 -0.38593,-11.64788 -0.6965,-13.27057 -4.55584,-23.8038 -6.07668,-16.58501 -7.36581,-24.21174 -6.89117,-40.76975 0.38054,-13.27544 2.98247,-35.49051 6.21442,-53.05824 1.86166,-10.11934 1.8555,-11.1586 -0.0882,-14.86821 -0.86454,-1.65 -2.16279,-5.25 -2.88501,-8 -1.47164,-5.60364 -1.89293,-4.8309 -2.99851,5.5 -0.97299,9.09192 -6.27511,26.87358 -10.3978,34.87102 -1.44896,2.81074 -5.55947,9.05212 -9.13447,13.8697 l -6.5,8.75925 -0.16099,11 c -0.19207,13.12401 -3.00779,23.95667 -6.6432,25.5578 -1.2077,0.53189 -3.75753,1.90777 -5.66629,3.0575 -2.71214,1.63363 -3.85636,1.84943 -5.23643,0.98756 -0.97127,-0.60657 -2.39891,-1.10286 -3.17253,-1.10286 -2.2651,0 -2.54228,-2.2317 -1.5629,-12.58358 0.50828,-5.37237 0.781,-9.91109 0.60606,-10.08604 -0.17495,-0.17494 -2.15489,1.25415 -4.39987,3.17577 -3.83907,3.2861 -7.07517,4.3492 -8.59937,2.825 -0.36786,-0.36787 -0.0376,-1.38037 0.7339,-2.25 0.7715,-0.86963 2.6445,-3.83115 4.16221,-6.58115 4.33147,-7.84838 4.67883,-8.29261 7.38551,-9.44517 2.49972,-1.06442 2.4947,-1.04233 -0.23639,1.0416 -1.53466,1.171 -3.94846,4.44084 -5.364,7.26633 -1.41554,2.82548 -3.26965,5.9275 -4.12025,6.89337 -0.85059,0.96587 -1.2776,2.02506 -0.94891,2.35376 0.3287,0.32869 3.18044,-1.92407 6.3372,-5.00613 3.15677,-3.08207 6.05759,-5.60376 6.44628,-5.60376 1.12973,0 1.80274,3.76365 1.2735,7.12173 -0.34367,2.18064 -0.14564,2.88018 0.67224,2.3747 0.65523,-0.40495 0.46568,0.62499 -0.43588,2.36843 -2.05256,3.9692 -3.31584,15.13514 -1.71235,15.13514 0.62836,0 1.14307,-0.1125 1.14383,-0.25 7.5e-4,-0.1375 0.67513,-4.075 1.49863,-8.75 0.8235,-4.675 1.49788,-8.6125 1.49863,-8.75 7.6e-4,-0.1375 0.39327,-0.25 0.87227,-0.25 0.47998,0 0.52158,1.90763 0.0927,4.25 -2.1384,11.67808 -1.67209,18.81092 0.91386,13.97903 1.16366,-2.17433 2.71729,-13.73051 2.30011,-17.10862 -0.25874,-2.09509 -0.11788,-2.2036 1.17814,-0.90758 1.28705,1.28705 1.29451,2.40281 0.0593,8.87959 -1.68814,8.85206 -1.69057,8.90758 -0.39027,8.90758 1.59621,0 3.08935,-4.94567 3.13138,-10.37199 0.0229,-2.9528 0.36403,-4.4044 0.85024,-3.6177 0.61375,0.99306 0.92714,0.84699 1.28338,-0.5982 0.25923,-1.05166 0.30874,8e-5 0.11002,2.3372 -0.19873,2.33712 -0.64376,5.37462 -0.98895,6.75 -1.19448,4.75919 1.49771,2.5478 2.98165,-2.44916 3.21497,-10.826 3.23951,-23.05015 0.0463,-23.05015 -2.1655,0 -1.72821,-2.11154 0.56127,-2.71025 1.1,-0.28766 2,-1.10872 2,-1.82459 0,-0.71587 0.30147,-2.08721 0.66994,-3.04742 0.45675,-1.19028 0.29765,-1.51574 -0.5,-1.02277 -1.72066,1.06342 -1.42339,-1.99028 0.85749,-8.8088 1.08803,-3.2526 1.78191,-6.11017 1.54194,-6.35013 -0.9405,-0.94051 -2.57017,0.99714 -2.58455,3.07298 -0.008,1.20504 -0.65325,4.21598 -1.43311,6.69098 -1.31965,4.18814 -1.43199,4.29209 -1.621,1.5 -0.16394,-2.42183 -0.28659,-2.56637 -0.63644,-0.75 -0.23836,1.2375 -0.85207,2.25 -1.36382,2.25 -0.51175,0 -0.93045,0.69083 -0.93045,1.53518 0,1.21497 -0.40891,1.31635 -1.96038,0.48603 -1.91582,-1.02532 -1.90445,-1.13157 0.5,-4.67474 1.35321,-1.99406 2.4587,-4.12527 2.45664,-4.73602 -0.002,-0.61075 -0.89488,0.23955 -1.98406,1.88955 -1.08917,1.65 -3.05795,4.575 -4.37505,6.5 -2.19422,3.20694 -2.25306,3.58373 -0.70278,4.5 1.41688,0.83743 0.82818,1.42063 -3.62121,3.58739 -2.92224,1.42307 -5.31316,2.24312 -5.31316,1.82235 0,-0.42077 1.77881,-1.54985 3.95292,-2.50907 2.1741,-0.95921 3.72179,-2.11798 3.43931,-2.57505 -0.28249,-0.45707 -1.4988,-0.30413 -2.70292,0.33985 -1.73844,0.92976 -1.5418,0.43312 0.95483,-2.41152 1.72928,-1.97033 3.67804,-5.20015 4.33059,-7.17739 0.65255,-1.97724 1.50376,-3.39887 1.89158,-3.15919 0.38781,0.23969 0.72917,-0.31867 0.75855,-1.24079 0.0294,-0.92212 1.74787,-8.53118 3.81884,-16.90902 2.80528,-11.34843 4.66567,-16.70308 7.29612,-21 1.9419,-3.17216 4.15655,-6.89256 4.92143,-8.26756 1.08655,-1.95322 1.3512,-7.313 1.21006,-24.50614 -0.17012,-20.72441 -0.0523,-22.29628 2.02287,-26.98754 1.21193,-2.73977 3.19403,-6.04651 4.40467,-7.3483 2.41549,-2.59738 11.7212,-7.4713 12.59552,-6.59698 0.30124,0.30124 0.11074,0.86074 -0.42333,1.24333 -1.54599,1.10751 -1.6931,3.43846 -0.27383,4.33868 0.85943,0.54511 0.3102,0.83154 -1.61388,0.84164 -1.60416,0.008 -2.57916,0.35281 -2.16666,0.76531 0.74292,0.74292 1.24175,0.88275 4.01352,1.125 1.10809,0.0968 1.23518,0.805 0.56428,3.1443 -0.53101,1.85151 -0.50401,2.79561 0.0698,2.44098 0.51464,-0.31807 0.93572,-0.12831 0.93572,0.42169 0,0.55 -0.45,1.27811 -1,1.61803 -0.55,0.33992 -0.98632,1.15398 -0.96959,1.80902 0.0167,0.65504 0.50012,0.38376 1.07422,-0.60285 0.66367,-1.14056 1.71449,-1.58097 2.88543,-1.20932 1.01289,0.32148 2.14821,0.0884 2.52292,-0.51786 0.37471,-0.60629 1.76259,-1.51346 3.08416,-2.01592 2.37038,-0.90122 3.34656,-2.96307 1.40286,-2.96307 -0.55,0 -1,-0.60277 -1,-1.33949 0,-0.73671 -1.2375,-1.94783 -2.75,-2.69138 l -2.75,-1.3519 2.36534,-0.39328 c 1.30093,-0.2163 2.85343,0.0948 3.44999,0.69138 0.59657,0.59657 1.80982,1.08467 2.69611,1.08467 0.88629,0 2.55587,0.87987 3.71017,1.95527 1.78004,1.65836 2.18657,1.7264 2.67711,0.44806 0.32796,-0.85465 0.15038,-1.24269 -0.41017,-0.89625 -0.86965,0.53747 -1.12369,-0.0328 -0.93441,-2.09768 0.13051,-1.42364 -10.63441,-7.03533 -12.10802,-6.31184 -0.85464,0.41959 -2.18117,0.37521 -2.94785,-0.0986 -1.03583,-0.64018 -0.63661,-1.04461 1.55389,-1.57416 4.33663,-1.04839 13.66913,-5.89865 17.41592,-9.05137 3.02577,-2.54602 3.2254,-3.08398 2.7129,-7.31083 -0.30427,-2.50942 -1.2047,-5.91258 -2.00097,-7.56258 -0.79627,-1.65 -1.75469,-4.35 -2.12983,-6 -0.64234,-2.82529 -0.59603,-2.88417 0.7952,-1.01103 0.8125,1.09394 1.26561,2.33144 1.00693,2.75 -0.85818,1.38856 3.38125,0.787 4.57292,-0.64887 0.92724,-1.11726 0.71126,-1.73131 -1.04053,-2.9583 -1.21585,-0.85162 -2.53614,-1.34722 -2.93398,-1.10134 -0.39784,0.24587 -1.02572,-0.56039 -1.39531,-1.79171 -0.63553,-2.11739 -0.71353,-2.13429 -1.43882,-0.31187 -0.71178,1.78849 -0.81533,1.80057 -1.44172,0.16822 -0.91735,-2.39057 -0.85045,-2.82165 0.32513,-2.0951 0.55,0.33992 1,0.14148 1,-0.44098 0,-0.58246 -0.34951,-1.05902 -0.77668,-1.05902 -0.86002,0 0.10832,-14.66498 1.02915,-15.5858 0.31806,-0.31807 0.50388,3.02478 0.41292,7.42855 -0.15747,7.62334 -0.0217,8.15998 2.83461,11.20384 1.65,1.75834 4.35,3.79956 6,4.53605 2.34121,1.04502 2.56081,1.35646 1,1.41826 -1.69309,0.067 -1.57437,0.31002 0.77371,1.5835 1.52555,0.82738 3.18195,1.25202 3.6809,0.94365 0.49896,-0.30837 1.16804,-0.13861 1.48685,0.37724 0.57476,0.92997 -2.42195,14.62816 -5.00858,22.89457 -1.56237,4.99304 -0.6651,8.47031 2.64242,10.24044 2.13085,1.1404 2.15814,1.44233 1.47416,16.3108 -0.38328,8.3319 -1.09018,18.03494 -1.57089,21.56232 -0.57207,4.19779 -0.51461,7.08499 0.16635,8.35736 0.73014,1.36429 0.71455,2.26975 -0.0523,3.03658 -0.7902,0.79019 -1.09265,0.76047 -1.09265,-0.10736 0,-0.66 -0.47656,-1.2 -1.05902,-1.2 -0.58246,0 -0.7809,0.45 -0.44098,1 0.33992,0.55 0.14148,1 -0.44098,1 -0.58246,0 -1.05902,0.45 -1.05902,1 0,0.55 1.35,1 3,1 1.65,0 3,0.35524 3,0.78942 0,0.43418 -1.2375,0.77168 -2.75,0.75 -1.55436,-0.0223 -2.75,0.50405 -2.75,1.21058 0,0.6875 0.45,1.1375 1,1 0.55,-0.1375 0.8875,-0.5875 0.75,-1 -0.1375,-0.4125 0.24815,-0.75 0.85699,-0.75 0.60884,0 0.84797,0.675 0.53138,1.5 -0.64614,1.68383 1.88337,2.12829 2.7033,0.475 0.27958,-0.56375 0.39208,-0.45125 0.25,0.25 -0.14209,0.70125 -1.12084,1.275 -2.175,1.275 -1.05417,0 -2.22254,0.675 -2.59639,1.5 -0.55634,1.22776 -0.69247,1.18238 -0.75,-0.25 -0.0387,-0.9625 -0.54684,-1.75 -1.1293,-1.75 -0.58246,0 -0.80465,0.41157 -0.49377,0.91459 0.31089,0.50302 -5e-5,1.1425 -0.69098,1.42105 -0.99831,0.40248 -0.99959,0.52267 -0.006,0.58541 0.6875,0.0434 1.25,0.75395 1.25,1.57895 0,0.825 -0.3375,1.44671 -0.75,1.38158 -1.97547,-0.31192 -2.59942,0.24636 -1.25,1.11842 1.26406,0.8169 1.20791,0.97178 -0.35699,0.98469 -1.23693,0.0102 -1.66479,0.51617 -1.28138,1.51531 0.35062,0.91371 0.002,1.5 -0.89301,1.5 -0.99338,0 -1.46366,1.05169 -1.45331,3.25 0.0122,2.58741 0.2353,2.94419 1.09434,1.75 0.89739,-1.24751 0.97898,-1.19167 0.48468,0.33179 -0.32691,1.00748 -0.59436,2.04654 -0.59436,2.30901 0,0.26248 -0.51953,0.15615 -1.15451,-0.23629 -0.79041,-0.4885 -0.87838,-0.27059 -0.27893,0.69098 0.48157,0.77248 1.00872,2.26048 1.17146,3.30666 0.16273,1.04618 0.99501,2.41337 1.84952,3.0382 0.85451,0.62484 1.47322,1.56887 1.37491,2.09786 -0.0983,0.52898 0.14988,1.98377 0.55154,3.23287 0.50846,1.58122 1.08374,1.97774 1.89387,1.30539 0.81174,-0.67369 1.22116,-0.3777 1.35405,0.97893 0.42317,4.3203 0.60799,4.9446 1.46377,4.9446 0.4908,0 0.63666,0.41372 0.32415,0.91938 -0.31252,0.50566 0.14307,1.63066 1.01241,2.5 0.86934,0.86934 1.3131,1.58062 0.98614,1.58062 -0.32697,0 0.14264,1.125 1.04358,2.5 0.90093,1.375 1.3062,2.5 0.90061,2.5 -0.4056,0 -0.15699,0.69943 0.55248,1.55428 1.12735,1.35837 1.47255,1.13779 2.73866,-1.75 0.7968,-1.81735 1.47142,-3.84742 1.49917,-4.51125 0.0277,-0.66383 0.65045,-1.43721 1.38379,-1.71861 0.73314,-0.28143 1.33314,-1.20079 1.33314,-2.04306 0,-0.84226 0.5625,-1.53827 1.25,-1.54669 0.83333,-0.0102 0.75,-0.33844 -0.25,-0.98469 -1.37276,-0.88714 -0.69741,-1.44485 1.32433,-1.09364 0.45338,0.0787 0.56175,-0.28168 0.24081,-0.80096 -0.32094,-0.51929 0.12776,-1.65544 0.9971,-2.52478 0.86934,-0.86934 1.26837,-1.58062 0.88674,-1.58062 -0.38163,0 -0.0763,-0.74416 0.67858,-1.65369 0.75484,-0.90954 1.25994,-1.80954 1.12244,-2 -0.72491,-1.00416 -0.0766,-2.34631 1.13337,-2.34631 0.76085,0 1.61872,-0.9 1.90638,-2 0.28766,-1.1 0.0401,-2 -0.55004,-2 -0.59017,0 -0.80177,-0.27127 -0.47022,-0.60282 0.33155,-0.33156 0.17893,-1.79406 -0.33916,-3.25 -0.89604,-2.51805 -0.86713,-2.55056 0.59277,-0.66648 1.49016,1.92312 1.52155,1.90859 1.08014,-0.5 -0.25004,-1.36439 -0.48806,-3.06976 -0.52893,-3.78972 -0.0409,-0.71996 -0.53165,-1.02636 -1.09062,-0.6809 -0.55897,0.34546 -0.71444,1.11655 -0.34549,1.71353 0.40094,0.64873 0.20525,0.79767 -0.4864,0.37021 -0.82641,-0.51075 -0.86052,-1.26957 -0.11932,-2.65451 0.98011,-1.83136 0.59632,-2.38222 -1.40516,-2.01684 -0.47998,0.0876 -0.6066,-0.53408 -0.28139,-1.38158 0.37989,-0.98997 0.0224,-1.54089 -0.99976,-1.54089 -1.27782,0 -1.35372,-0.28598 -0.3855,-1.4526 0.96883,-1.16738 0.76755,-1.90373 -1.02505,-3.75 -1.57333,-1.62044 -2.05681,-1.80193 -1.64079,-0.61593 0.45472,1.29635 0.10448,1.58801 -1.5291,1.27341 -2.98019,-0.57393 -3.8554,-1.72653 -2.62976,-3.46324 0.87988,-1.24677 0.96028,-1.20436 0.48975,0.25836 -0.3695,1.14863 -0.038,1.75 0.96468,1.75 0.8934,0 1.23362,-0.47572 0.81946,-1.14584 -0.49838,-0.80641 0.0766,-0.94888 1.94099,-0.48095 1.47692,0.37068 2.64915,0.24336 2.64915,-0.28774 0,-0.52394 -1.2028,-1.09502 -2.67288,-1.26905 -1.47009,-0.17403 -2.87634,-0.99142 -3.125,-1.81642 -0.34271,-1.137 -0.15946,-1.22549 0.75721,-0.36567 1.30032,1.21968 5.04067,0.68573 5.04067,-0.71958 0,-0.46859 -0.6801,-0.591 -1.51134,-0.27202 -1.08145,0.41499 -1.33546,0.12161 -0.89301,-1.03139 0.34008,-0.88624 0.15768,-1.61134 -0.40533,-1.61134 -0.56301,0 -1.22455,0.5625 -1.47008,1.25 -0.24554,0.6875 -0.7695,0.95104 -1.16436,0.58565 -0.39485,-0.3654 -0.17171,-1.68495 0.49587,-2.93235 0.93262,-1.74262 0.9561,-4.13687 0.10138,-10.33565 -0.61184,-4.43721 -1.36843,-13.80639 -1.68132,-20.82041 -0.55646,-12.4742 -0.51706,-12.80185 1.80416,-15 3.72955,-3.53182 3.84918,-5.1516 1.1839,-16.03063 -4.83233,-19.72447 -4.72172,-17.71661 -0.97598,-17.71661 3.4265,0 6.71942,-2.43223 4.35841,-3.21923 -0.8211,-0.2737 -0.666,-0.63444 0.45826,-1.06587 1.22226,-0.46902 1.69944,-0.1321 1.69944,1.19991 0,2.81499 4.54083,3.33682 5.92148,0.6805 1.00696,-1.93735 1.04259,-1.90684 0.47256,0.40469 -0.33908,1.375 -1.19939,3.85 -1.9118,5.5 -0.71242,1.65 -1.5553,4.83508 -1.87307,7.07795 -0.50309,3.5508 -0.22433,4.4022 2.15653,6.58636 3.48956,3.20129 10.59939,7.20113 15.7343,8.85177 6.56995,2.11195 16.15896,6.98963 18.30646,9.31202 1.10458,1.19455 3.0625,4.1969 4.35094,6.6719 2.25651,4.33462 2.32978,5.18777 1.9938,23.21391 -0.4519,24.24514 -0.0303,27.04143 5.30092,35.15836 3.68963,5.61755 4.88924,8.93001 8.62874,23.82619 2.38883,9.51585 4.21779,17.9092 4.06435,18.65189 -0.15343,0.7427 0.13831,1.09246 0.64832,0.77725 0.51002,-0.3152 1.74618,1.24285 2.74703,3.46234 1.85593,4.11573 6.01373,8.31643 9.2473,9.34273 0.98926,0.31398 3.54266,3.60757 5.67422,7.3191 2.13156,3.71153 4.51867,7.50737 5.3047,8.43522 1.58083,1.86604 0.90534,3.81301 -1.32292,3.81301 -0.79095,0 -3.18144,-1.575 -5.31218,-3.5 -2.13074,-1.925 -4.18794,-3.5 -4.57155,-3.5 -0.38361,0 -0.55407,5.03832 -0.3788,11.19626 l 0.31867,11.19627 -3.68459,0.8876 c -3.1504,0.75893 -4.44254,0.47342 -8.91239,-1.96925 -4.60072,-2.51419 -5.46858,-3.51384 -7.23511,-8.33387 -1.45839,-3.97928 -2.06211,-8.34832 -2.20771,-15.97701 -0.11023,-5.775 -0.25886,-11.20068 -0.3303,-12.05706 -0.0714,-0.85638 -3.4969,-6.25638 -7.61211,-12 -4.11522,-5.74362 -8.80353,-13.59294 -10.41848,-17.44294 -3.58593,-8.5488 -8.06342,-25.45331 -8.19899,-30.95483 -0.0548,-2.22484 -0.40943,-5.1567 -0.78802,-6.51524 -1.12083,-4.02204 -5.41377,8.95911 -5.44675,16.47007 -0.0298,6.78403 4.68524,43.15459 6.28661,48.4934 1.33093,4.43718 1.34446,17.19346 0.0294,27.68155 -1.04845,8.36155 -4.73151,21.6329 -9.35078,33.69411 -2.24968,5.87405 -2.62903,8.40898 -2.61888,17.5 0.007,6.18474 0.62929,12.93122 1.48813,16.13094 0.81194,3.025 1.4816,7.78209 1.48813,10.57131 0.0111,4.74699 -5.04074,26.66531 -9.96633,43.24059 -1.94423,6.54262 -2.03337,7.74901 -0.84732,11.46644 1.1123,3.48625 1.85062,4.26074 4.58993,4.81475 1.79542,0.36311 5.13843,1.90038 7.42891,3.41615 5.1346,3.39791 4.82375,3.69332 -8.83488,8.39597 -11.9125,4.10145 -16.80479,3.89201 -17.82725,-0.7632 -0.33758,-1.53701 -0.21904,-3.88524 0.26344,-5.21829 0.48247,-1.33304 0.59244,-3.54872 0.24437,-4.92372 -0.34807,-1.375 -0.25591,-4.975 0.2048,-8 1.48188,-9.73008 1.07614,-33.92731 -0.66233,-39.5 -2.04464,-6.55409 -2.00766,-14.28756 0.11165,-23.34794 1.69328,-7.23909 1.68606,-7.43907 -0.48739,-13.5 -2.01685,-5.6242 -2.20612,-8.00491 -2.20594,-27.7465 1.2e-4,-11.87694 -0.31469,-26.50194 -0.69957,-32.5 -1.14555,-17.8524 -2.30684,-7.01473 -2.81554,26.27575 -0.36588,23.94434 -0.73983,29.91591 -2.08371,33.27458 -1.25896,3.14646 -1.46583,5.53324 -0.89434,10.31869 1.17207,9.81447 0.94696,25.70944 -0.44929,31.72542 -0.91526,3.94351 -1.087,9.74497 -0.60686,20.5 1.61308,36.1325 1.6343,34.38426 -0.43095,35.48955 -3.27553,1.75301 -8.21627,0.9539 -18.32316,-2.96356 z m 48.80363,-1.34695 c 1.1,-0.60949 2.225,-1.18465 2.5,-1.27813 0.275,-0.0935 1.53049,-0.50411 2.78998,-0.91252 2.16979,-0.70359 2.20102,-0.84085 0.59501,-2.61548 -0.93223,-1.0301 -2.55178,-1.87291 -3.59899,-1.87291 -1.18459,0 -1.63443,-0.43623 -1.19051,-1.15451 0.42212,-0.683 0.27629,-0.88428 -0.35707,-0.49284 -0.58882,0.36391 -2.20945,0.22867 -3.60138,-0.30055 -2.13044,-0.80999 -2.63259,-0.64149 -3.17426,1.06517 -0.37087,1.16852 -1.21895,1.80654 -2.00193,1.50608 -0.7923,-0.30403 -1.686,0.39517 -2.14437,1.67768 -0.62542,1.74996 -0.89647,1.17801 -1.32744,-2.80103 -0.29785,-2.75 -0.20337,-6.0125 0.20996,-7.25 0.50629,-1.51585 0.35171,-2.255 -0.47375,-2.26531 -0.78395,-0.01 -0.68499,-0.36446 0.27475,-0.98469 0.825,-0.53316 1.2274,-0.97627 0.89423,-0.98469 -0.33317,-0.008 0.0296,-3.50281 0.80616,-7.76531 2.35685,-12.93661 2.4662,-15.25 0.72089,-15.25 -0.84662,0 -1.2612,0.45 -0.92128,1 0.33992,0.55 0.14148,1 -0.44098,1 -0.58246,0 -1.05902,-0.675 -1.05902,-1.5 0,-2.34453 -1.90705,-1.75826 -2.43967,0.75 -0.26278,1.2375 -0.65579,8.325 -0.87337,15.75 -0.33336,11.37577 -0.76253,14.34611 -2.72749,18.87726 -2.26682,5.2272 -2.2795,5.41556 -0.45455,6.75 1.03254,0.755 2.69133,1.37274 3.68621,1.37274 0.99488,0 1.80887,0.42574 1.80887,0.9461 0,0.99759 9.09199,-1.37874 12.5,-3.26706 z m -44.5,-68.17904 c 0,-0.86218 -0.90249,-1.5 -2.12244,-1.5 -1.77324,0 -1.91763,0.2468 -0.87756,1.5 0.68469,0.825 1.63979,1.5 2.12244,1.5 0.48266,0 0.87756,-0.675 0.87756,-1.5 z m 43.55887,0.0318 c 1.89117,-1.4304 1.89215,-1.46901 0.0381,-1.5 -1.81141,-0.0303 -1.80345,-0.11815 0.16532,-1.82565 1.84529,-1.60041 1.94456,-2.18926 0.92061,-5.46072 -0.97461,-3.11382 -1.48973,-3.58104 -3.41532,-3.09775 -1.38688,0.34809 -2.2676,0.11572 -2.2676,-0.59829 0,-0.66779 0.53497,-0.84602 1.25,-0.41645 0.93662,0.5627 0.98476,0.38947 0.19204,-0.69098 -0.58188,-0.79308 -0.98083,-2.45446 -0.88654,-3.69196 0.0943,-1.2375 -0.21713,-2.25 -0.69204,-2.25 -0.4749,0 -0.9167,1.0125 -0.98177,2.25 -0.17724,3.37046 -1.61308,-2.7365 -1.76338,-7.5 -0.0651,-2.0625 -0.57688,-3.75 -1.13736,-3.75 -0.57525,0 -0.75771,-1.04126 -0.41897,-2.39091 0.35836,-1.42782 0.0962,-2.70233 -0.65089,-3.16404 -0.87052,-0.53801 -1.06271,-0.28255 -0.63196,0.83998 0.46368,1.20832 0.19265,1.45344 -1.08006,0.97681 -1.48267,-0.55526 -1.52427,-0.42141 -0.32663,1.05093 1.2258,1.50695 1.06553,1.70178 -1.5,1.82341 -2.35843,0.11182 -2.46982,0.21373 -0.62244,0.56955 1.57897,0.30413 2.25,1.14061 2.25,2.8048 0,1.30429 -0.44485,2.64637 -0.98855,2.98239 -0.57701,0.35662 -0.75373,-0.13919 -0.42449,-1.19098 0.48497,-1.54932 0.41937,-1.57995 -0.46792,-0.21852 -1.42697,2.18949 -2.25276,11.7159 -1.07849,12.44164 0.5277,0.32614 0.95945,1.07152 0.95945,1.6564 0,0.67059 -0.55411,0.60356 -1.5,-0.18146 -1.22851,-1.01957 -1.5,-0.95124 -1.5,0.37756 0,1.13604 0.89937,1.62244 3,1.62244 1.72517,0 3.00651,-0.53118 3.01531,-1.25 0.0102,-0.83333 0.33844,-0.75 0.98469,0.25 0.73365,1.13525 0.9731,0.69536 0.98469,-1.80902 0.009,-2.03458 0.41612,-3.0613 1.05599,-2.66584 0.57237,0.35375 0.76942,1.49781 0.43789,2.54237 -0.40263,1.26858 0.26312,2.76509 2.00501,4.50698 1.95931,1.95931 2.49378,3.33112 2.14934,5.51664 -0.51508,3.26823 0.10563,3.57386 2.92595,1.44067 z m -1.82651,-5.44727 c -0.36166,-1.38298 -0.0718,-2.08453 0.86126,-2.08453 1.59508,0 1.76166,0.89122 0.5298,2.83453 -0.64317,1.01464 -0.97661,0.83486 -1.39106,-0.75 z m -2.20441,-3.99579 c -1.77045,-0.69191 -1.69378,-0.82389 0.75,-1.29104 1.88452,-0.36025 2.72205,-0.1015 2.72205,0.84097 0,1.50973 -0.57114,1.58377 -3.47205,0.45007 z m -24.52795,6.41126 c 0,-0.825 -0.76101,-1.5 -1.69113,-1.5 -1.47466,0 -1.44265,-0.18794 0.25,-1.4682 1.09342,-0.82702 1.39524,-1.48208 0.69113,-1.5 -0.6875,-0.0175 -1.25,-0.95836 -1.25,-2.09082 0,-1.17169 -0.44848,-1.78184 -1.04068,-1.41584 -0.57237,0.35375 -0.74916,1.56166 -0.39286,2.68425 0.43195,1.36096 0.2789,1.81307 -0.45933,1.35682 -1.65459,-1.02259 -1.33625,0.99875 0.38186,2.42465 0.81894,0.67967 1.24239,1.63477 0.94098,2.12245 -0.3014,0.48768 0.15355,0.88669 1.01101,0.88669 0.85746,0 1.55902,-0.675 1.55902,-1.5 z m 13.79333,-0.54068 c 1.55592,-2.49143 0.79832,-3.95932 -2.04348,-3.95932 -2.08943,0 -2.09325,0.0294 -0.19098,1.4682 1.7564,1.32847 1.77459,1.47122 0.19113,1.5 -0.9625,0.0175 -1.75,0.7068 -1.75,1.5318 0,2.17 2.30572,1.84136 3.79333,-0.54068 z m -28.79333,-0.40963 c 0,-0.79767 0.71532,-1.85062 1.5896,-2.33989 0.87428,-0.48928 1.59428,-1.29914 1.6,-1.79969 0.006,-0.50056 0.4154,-0.79761 0.9104,-0.66011 1.25277,0.34799 1.1255,-1.1245 -0.21287,-2.46287 -0.61208,-0.61207 -0.81052,-1.60207 -0.44098,-2.2 1.26697,-2.05 2.55385,-1.08612 2.55385,1.91287 0,4.17885 3.05309,4.02515 4.96593,-0.25 1.37422,-3.07135 1.46202,-4.50799 0.5653,-9.25 -0.20802,-1.1 -0.45749,-2.9 -0.5544,-4 -0.14758,-1.67528 -0.29242,-1.5941 -0.89205,0.5 l -0.71587,2.5 -0.56069,-2.82801 c -0.4453,-2.24597 -0.1231,-3.00471 1.56554,-3.68661 1.92588,-0.7777 1.85556,-0.86458 -0.7462,-0.92199 -2.17255,-0.048 -2.62339,-0.36797 -1.85029,-1.31339 0.71144,-0.87002 0.62399,-1.61644 -0.28766,-2.45545 -1.02937,-0.94735 -1.42941,-0.89382 -1.86833,0.25 -0.30718,0.8005 -0.29949,2.13045 0.0171,2.95545 0.31685,0.82569 0.0299,1.5 -0.63837,1.5 -0.66769,0 -0.98401,0.5625 -0.70293,1.25 1.95051,4.77079 2.00776,5.05643 0.87286,4.35503 -0.81985,-0.5067 -1.16993,0.49153 -1.16993,3.33595 0,2.23246 -0.45,4.05902 -1,4.05902 -0.55,0 -1,-0.9 -1,-2 0,-1.1 -0.3748,-2 -0.83288,-2 -0.45809,0 -0.74451,1.0125 -0.63649,2.25 0.10802,1.2375 -0.30469,2.89888 -0.91712,3.69196 -0.83416,1.0802 -0.81725,1.26427 0.0674,0.73369 0.6495,-0.38955 1.46356,-0.25093 1.80902,0.30804 0.34546,0.55897 0.0391,1.0232 -0.6809,1.03162 -0.95119,0.0111 -0.89899,0.2803 0.19098,0.98469 1.26406,0.8169 1.20791,0.97178 -0.35699,0.98469 -1.26469,0.0104 -1.66704,0.51031 -1.26145,1.56725 0.34149,0.88992 0.17385,1.29132 -0.39301,0.94098 -0.5437,-0.33602 -0.99544,0.2031 -1.00386,1.19806 -0.0127,1.50434 -0.172,1.56126 -0.94563,0.33798 -0.51167,-0.80907 -1.24391,-1.15745 -1.62719,-0.77417 -0.9333,0.93331 1.4772,3.74521 3.21057,3.74521 0.75766,0 1.37756,-0.65264 1.37756,-1.45031 z m 5.07895,-15.13302 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58438 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 0.42105,-7.41667 c -0.33992,-0.55 -0.14148,-1 0.44098,-1 0.58246,0 1.05902,0.45 1.05902,1 0,0.55 -0.19844,1 -0.44098,1 -0.24254,0 -0.7191,-0.45 -1.05902,-1 z m -8.13837,17.5 c -0.31659,-0.825 -0.70432,-1.5 -0.86163,-1.5 -0.15731,0 -0.54504,0.675 -0.86163,1.5 -0.3471,0.90455 -0.005,1.5 0.86163,1.5 0.86669,0 1.20873,-0.59545 0.86163,-1.5 z m -1.65437,-19.73834 c -0.23919,-1.24391 -0.44398,-0.46166 -0.45508,1.73834 -0.0111,2.2 0.18461,3.21775 0.4349,2.26166 0.25029,-0.95609 0.25937,-2.75609 0.0202,-4 z m 48.98207,-0.51166 c -0.25153,-0.9625 -0.45733,-0.175 -0.45733,1.75 0,1.925 0.2058,2.7125 0.45733,1.75 0.25152,-0.9625 0.25152,-2.5375 0,-3.5 z M 133.01622,590.1165 c -0.33155,-0.33156 -0.22118,-1.60662 0.24527,-2.83348 0.46712,-1.22861 0.4626,-2.85438 -0.01,-3.61915 -0.7228,-1.16951 -0.93581,-1.15634 -1.35062,0.0835 -0.27086,0.80958 -0.3525,2.59697 -0.18142,3.97197 0.36983,2.97234 0.3812,3 1.23298,3 0.36666,0 0.39539,-0.27127 0.0638,-0.60282 z m 44.26949,-3.9562 c 0,-1.89254 -0.39695,-3.44098 -0.88212,-3.44098 -0.48516,0 -0.90708,1.8092 -0.9376,4.02045 -0.0312,2.2603 0.355,3.76676 0.88212,3.44099 0.51568,-0.31871 0.9376,-2.12792 0.9376,-4.02046 z m -31.33772,-0.69098 c -0.27741,-0.6875 -0.50439,-0.125 -0.50439,1.25 0,1.375 0.22698,1.9375 0.50439,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m 18.30709,-0.25 c 0,-0.55 -0.43621,-0.325 -0.96937,0.5 -0.53316,0.825 -0.96937,1.95 -0.96937,2.5 0,0.55 0.43621,0.325 0.96937,-0.5 0.53316,-0.825 0.96937,-1.95 0.96937,-2.5 z m -18.58733,-2.69087 c -0.4048,-0.65498 -0.65741,-3.24248 -0.56134,-5.75 0.16763,-4.37564 0.11855,-4.46022 -1.21933,-2.1015 -0.94065,1.6584 -1.11055,3.20313 -0.52243,4.75 0.47936,1.26081 0.63114,2.29237 0.33729,2.29237 -0.29384,0 -0.25615,0.45 0.0838,1 0.33992,0.55 1.06804,1 1.61804,1 0.55,0 0.6688,-0.53589 0.264,-1.19087 z m 19.61796,-0.86815 c 0,-0.51754 -0.45,-0.94098 -1,-0.94098 -0.55,0 -1,0.70156 -1,1.55902 0,0.85746 0.45,1.2809 1,0.94098 0.55,-0.33992 1,-1.04148 1,-1.55902 z m 0.90148,-4.77431 c -0.49581,-0.18334 -0.90148,-1.19584 -0.90148,-2.25 0,-1.05417 -0.45,-1.91667 -1,-1.91667 -1.0726,0 -1.40275,5.26392 -0.39344,6.27322 0.3336,0.33361 1.18927,0.0711 1.90147,-0.58333 0.71221,-0.65444 0.88926,-1.33989 0.39345,-1.52322 z m -40.90148,-12.66667 c 0,-0.825 -0.43588,-1.5 -0.96862,-1.5 -0.53273,0 -0.70959,0.675 -0.39301,1.5 0.31659,0.825 0.75246,1.5 0.96862,1.5 0.21615,0 0.39301,-0.675 0.39301,-1.5 z m 110.6643,-5.75 c -0.3437,-3.4375 -0.91765,-7.9375 -1.27545,-10 -0.50582,-2.91577 -0.32626,-3.75 0.80711,-3.75 1.06544,0 1.33357,0.84544 0.9965,3.14205 -0.25364,1.72813 -0.0632,2.90096 0.42319,2.60629 0.48639,-0.29466 0.95705,1.91317 1.04591,4.90629 0.19124,6.44213 0.99833,9.08548 2.35869,7.72512 1.15309,-1.15309 -0.72811,-13.18193 -2.39617,-15.32171 -0.73791,-0.94658 -0.75361,-1.2204 -0.0457,-0.79705 0.73743,0.44101 0.93878,-1.03834 0.63686,-4.67911 -0.26284,-3.16949 -0.01,-5.59075 0.62505,-5.98317 0.58661,-0.36254 3.78752,2.15622 7.11314,5.59726 3.35463,3.47105 6.04658,5.57696 6.04658,4.73023 0,-0.83941 -0.53637,-2.06257 -1.19194,-2.71814 -0.65556,-0.65556 -2.56806,-3.77909 -4.25,-6.94118 -2.23876,-4.20894 -4.17016,-6.35986 -7.20902,-8.02836 -2.3918,-1.31323 -5.9862,-4.78583 -8.48144,-8.19404 -2.38176,-3.25321 -4.50042,-5.74499 -4.70813,-5.53728 -0.20771,0.20771 0.62677,1.78823 1.85439,3.51227 1.72236,2.41882 1.96025,3.40247 1.04177,4.30757 -0.9124,0.89913 -1.49211,0.76442 -2.48319,-0.57704 -0.71111,-0.9625 -1.54782,-1.75 -1.85936,-1.75 -0.31154,0 -0.72256,0.7875 -0.91338,1.75 -0.19083,0.9625 -1.14888,-1.4 -2.12901,-5.25 -0.98013,-3.85 -2.46017,-9.475 -3.28897,-12.5 -0.82881,-3.025 -1.61572,-6.04948 -1.74871,-6.72106 -0.13298,-0.67158 -0.62126,-1.57158 -1.08505,-2 -0.46379,-0.42842 -0.55158,0.34606 -0.19508,1.72106 0.35651,1.375 0.93046,4.1875 1.27546,6.25 0.345,2.0625 0.90726,3.75 1.24947,3.75 0.3422,0 0.66672,1.0125 0.72114,2.25 0.0544,1.2375 0.80837,5.08976 1.67544,8.56057 1.28558,5.14608 1.32186,6.09923 0.19658,5.16533 -1.1542,-0.9579 -1.22379,-0.60085 -0.42545,2.18284 0.52497,1.83043 0.95448,3.44353 0.95448,3.58466 0,0.14113 0.675,0.2566 1.5,0.2566 0.825,0 1.5,0.675 1.5,1.5 0,0.825 -0.5625,1.3875 -1.25,1.25 -0.6875,-0.1375 -1.12557,0.50357 -0.97348,1.42459 0.15209,0.92103 -0.18541,1.96009 -0.75,2.30902 -1.56138,0.96498 -1.20974,6.16728 1.01328,14.99083 2.12894,8.45017 4.60403,12.87097 3.65349,6.52556 -1.93029,-12.8858 -1.92102,-12.6148 -0.36624,-10.70352 0.80377,0.98806 1.24497,2.78806 0.98043,4 -0.39444,1.80709 -0.27999,1.93366 0.63615,0.70352 0.88332,-1.18607 0.98622,-0.93558 0.49167,1.19689 -0.68362,2.9477 1.16413,9.80311 2.64225,9.80311 1.21603,0 1.16398,-2.46378 -0.19503,-9.23078 -0.81769,-4.0716 -0.82085,-6.32957 -0.0118,-8.41678 l 1.10571,-2.85244 -0.56768,3.25 c -0.36611,2.09596 -0.16343,3.25 0.57078,3.25 0.62616,0 0.88227,0.41455 0.56913,0.92122 -0.31314,0.50667 -0.0231,4.10667 0.64453,8 0.84632,4.93533 1.65023,7.07878 2.65493,7.07878 1.16769,0 1.32251,-1.18563 0.81615,-6.25 z m -1.52004,-18.5 c -1.0912,-2.55004 -1.06651,-2.60886 0.33949,-0.80887 0.83394,1.06762 1.51625,2.30512 1.51625,2.75 0,1.51991 -0.67833,0.81036 -1.85574,-1.94113 z m 9.50747,-2.91633 c -1.01655,-1.35875 -1.64001,-2.67872 -1.38546,-2.93327 0.25455,-0.25455 1.23473,0.71527 2.17817,2.15516 2.22274,3.39233 1.61179,3.99203 -0.79271,0.77811 z m -15.57278,-0.917 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 2.43494,-2.38981 c -1.3878,-2.68371 -1.3861,-2.91505 0.0174,-2.37646 0.8552,0.32817 1.32634,0.82525 1.04697,1.10462 -0.27937,0.27937 -0.0579,1.34878 0.49206,2.37646 0.55,1.02769 0.77072,1.86852 0.49049,1.86852 -0.28022,0 -1.20136,-1.33791 -2.04697,-2.97314 z m -5.356,-1.02686 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m 1.92106,-1.58333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 9.56807,-0.89038 c -2.11913,-1.25686 -4.81913,-2.10945 -6,-1.89465 -1.24871,0.22714 -1.51942,0.12052 -0.64702,-0.25482 0.825,-0.35495 2.14888,-1.14744 2.94196,-1.76109 1.10014,-0.85125 1.26394,-0.81942 0.69098,0.13427 -0.41304,0.6875 -0.38692,1.25231 0.058,1.25512 0.44496,0.003 2.60902,1.11378 4.80902,2.46879 2.2,1.35502 3.55,2.4353 3,2.40062 -0.55,-0.0347 -2.73384,-1.09139 -4.85298,-2.34824 z m -115.47361,17.47371 c 0.57231,0 0.80207,-0.62152 0.51057,-1.38116 -0.29151,-0.75964 0.4893,-2.89714 1.73512,-4.75 3.45846,-5.14364 3.91604,-9.1374 1.30322,-11.37457 -1.26976,-1.0872 -1.69247,-2.00422 -1.02624,-2.2263 0.75624,-0.25208 0.85923,-1.33172 0.30978,-3.24752 -0.45269,-1.57845 -0.5642,-3.12878 -0.2478,-3.44518 0.3164,-0.3164 0.0768,-0.57527 -0.53238,-0.57527 -0.6092,0 -1.38576,0.45 -1.72568,1 -0.33992,0.55 -0.10933,1 0.51241,1 0.63241,0 0.40626,0.72419 -0.51331,1.64376 -1.05169,1.05168 -1.42996,2.49556 -1.05021,4.00863 0.32645,1.30068 -0.0669,3.64204 -0.87412,5.20302 -0.80722,1.56098 -1.19588,3.87747 -0.86369,5.14774 0.36849,1.40914 0.21703,2.07045 -0.3885,1.69622 -0.64354,-0.39773 -0.71987,1.04148 -0.21713,4.09363 0.42643,2.58885 0.86958,5.607 0.98477,6.707 0.14291,1.36467 0.34178,1.12642 0.62603,-0.75 0.22913,-1.5125 0.88485,-2.75 1.45716,-2.75 z m 69.25133,-4.33076 c -1.05371,-6.06987 -1.38579,-8.68765 -1.67056,-13.16924 -0.1398,-2.2 -0.79756,-4.57552 -1.46169,-5.27894 -0.66413,-0.70342 -0.95349,-1.94092 -0.64301,-2.75 0.31047,-0.80908 0.10211,-1.47106 -0.46304,-1.47106 -1.28643,0 -2.35223,4.74639 -1.74626,7.77671 0.2504,1.25219 0.0612,2.03316 -0.42046,1.73548 -0.48165,-0.29768 -1.10474,0.2528 -1.38465,1.22329 -0.85001,2.94712 0.0675,7.0381 2.27324,10.13575 1.15043,1.61563 2.09169,3.62899 2.09169,4.47412 0,0.84514 0.40775,1.78862 0.90612,2.09663 0.49837,0.30801 0.6975,1.57206 0.44252,2.80902 -0.38872,1.88573 -0.20004,1.79176 1.16813,-0.58176 1.20383,-2.08842 1.44193,-3.92411 0.90797,-7 z m 33.23754,-25.91924 c -0.27741,-0.6875 -0.50439,-0.125 -0.50439,1.25 0,1.375 0.22698,1.9375 0.50439,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m -99.66228,1.28138 c 0,-0.53273 -0.675,-0.70959 -1.5,-0.39301 -0.825,0.31659 -1.5,0.75246 -1.5,0.96862 0,0.21615 0.675,0.39301 1.5,0.39301 0.825,0 1.5,-0.43588 1.5,-0.96862 z m 62.72917,0.36445 c -0.3323,-0.33229 -1.1948,-0.36781 -1.91667,-0.0789 -0.79773,0.31922 -0.56078,0.55618 0.60417,0.60416 1.05416,0.0434 1.64479,-0.19293 1.3125,-0.52522 z M 91.77113,503.96932 c 0.38623,-1.5125 0.87204,-3.425 1.07958,-4.25 0.20754,-0.825 0.89309,-3.3 1.52345,-5.5 0.63036,-2.2 1.35982,-6.25 1.62102,-9 0.51408,-5.41254 2.2145,-8.56198 2.4026,-4.45 0.27073,5.91826 0.004,14.87697 -0.59341,19.95 -0.87216,7.40295 0.64546,4.83778 3.54975,-6 2.02534,-7.55784 2.81284,-9.01648 7.1047,-13.15959 4.33955,-4.18915 4.82689,-5.10622 4.82689,-9.08333 0,-2.43306 -0.3375,-4.76823 -0.75,-5.18927 -0.4125,-0.42104 -0.75,-3.53354 -0.75,-6.91667 0,-5.93943 -0.0929,-6.16187 -2.70055,-6.46279 -1.4853,-0.17141 -3.68883,0.21727 -4.89674,0.86372 l -2.1962,1.17537 0.70689,-8.86372 c 0.65818,-8.25278 0.59248,-8.75098 -0.95325,-7.22801 -1.18596,1.16851 -1.64641,3.31074 -1.61204,7.5 0.0706,8.60947 1.03488,21.36595 1.69588,22.43547 0.31572,0.51085 0.0878,0.92882 -0.50641,0.92882 -0.59425,0 -1.60946,1.2375 -2.25602,2.75 -0.64656,1.5125 -2.67059,4.84711 -4.49784,7.41024 -2.32779,3.26525 -2.94233,4.81315 -2.053,5.17105 0.7812,0.31439 0.59634,0.54117 -0.48072,0.58976 -0.9625,0.0434 -1.67733,0.41645 -1.58852,0.82895 0.0888,0.4125 -0.37791,2.06078 -1.03716,3.66284 -0.78429,1.90591 -0.85924,3.25224 -0.21684,3.89464 0.64241,0.64241 1.22979,-0.006 1.69917,-1.87638 0.63116,-2.51475 0.80056,-2.62225 1.40977,-0.89465 0.38083,1.07995 -0.11031,4.77605 -1.09142,8.21355 -0.98111,3.4375 -1.41438,6.25 -0.96283,6.25 0.45156,0 1.13702,-1.2375 1.52325,-2.75 z m 14.07478,-25.15259 c -0.3068,-0.49642 0.86258,-1.39774 2.59863,-2.00293 3.1163,-1.08635 3.1334,-1.07487 1.34383,0.90258 -1.97801,2.18567 -3.08137,2.49362 -3.94246,1.10035 z m 105.94868,25.15259 c -1.15014,-2.8546 -1.80232,-24.25 -0.73918,-24.25 0.52277,0 1.20195,2.43638 1.50929,5.41419 0.30733,2.9778 1.11596,6.45526 1.79694,7.72769 1.19429,2.23154 1.26596,2.24344 2.02284,0.33582 0.75401,-1.90041 0.81106,-1.88977 1.45959,0.2723 1.04076,3.46971 2.78732,2.72838 2.06624,-0.87702 -0.52411,-2.62051 -9.83792,-19.27935 -11.6699,-20.87298 -0.70029,-0.60918 -0.65779,-9.99131 0.0453,-9.99933 1.15144,-0.0131 0.46004,-19.93691 -0.73333,-21.13211 -1.90008,-1.903 -2.05681,-0.95239 -1.16843,7.08705 0.45313,4.10059 0.65493,7.62455 0.44846,7.83102 -0.20647,0.20648 -1.28436,-0.11105 -2.39531,-0.70561 -2.9494,-1.57847 -6.84542,-1.32075 -7.54373,0.49902 -0.33347,0.86902 -0.31966,4.01902 0.0307,7 0.44159,3.7572 0.28799,5.41996 -0.50067,5.41996 -0.68734,0 -1.13768,1.84301 -1.13768,4.65593 0,4.29565 0.3831,5.01142 4.9508,9.25 4.44056,4.12059 5.16637,5.41858 7.04234,12.59407 2.95576,11.30558 3.02644,11.5 4.18124,11.5 0.59203,0 0.73604,-0.7534 0.3345,-1.75 z m -12.47992,-25.21094 c -0.80907,-0.51167 -1.23942,-1.16193 -0.95633,-1.44502 0.77481,-0.77481 4.92737,0.50836 4.92737,1.52259 0,1.147 -2.09956,1.10599 -3.97104,-0.0776 z m 18.32869,-0.41525 c -0.95044,-1.9931 -2.09473,-3.62381 -2.54286,-3.62381 -1.18829,0 -1.04237,0.49996 1.30918,4.48554 2.6809,4.54379 3.52892,3.95145 1.23368,-0.86173 z m -125.67427,1.62619 c 0.34134,-0.9625 1.25653,-2.49283 2.03376,-3.40072 0.91304,-1.06655 1.04977,-1.8753 0.38634,-2.28532 -0.56474,-0.34903 -1.9532,1.18129 -3.08546,3.40072 -1.13227,2.21943 -1.5854,4.03532 -1.00696,4.03532 0.57844,0 1.33099,-0.7875 1.67232,-1.75 z m 95.52747,-21.57267 c 0.38065,-1.99123 0.0989,-2.69534 -1.09952,-2.74762 -1.22,-0.0532 -1.12561,-0.279 0.38867,-0.92971 1.1,-0.47269 1.43139,-0.89106 0.73643,-0.92971 -0.69496,-0.0387 -2.11061,0.4587 -3.14589,1.10524 -1.5157,0.94657 -2.2083,0.84957 -3.55588,-0.49801 -1.22163,-1.22163 -2.15937,-1.41355 -3.47262,-0.71072 -0.98949,0.52956 -2.18091,0.64117 -2.64759,0.24802 -0.46668,-0.39315 -0.23672,0.0836 0.51102,1.05935 0.74774,0.97579 1.10066,2.03303 0.78427,2.34943 -0.3164,0.31639 0.63198,1.79425 2.1075,3.28412 3.27256,3.30441 3.75692,5.05958 1.43276,5.19196 -1.11165,0.0633 -0.84318,0.35214 0.736,0.79178 2.05044,0.57084 2.8563,0.14643 4.59952,-2.42235 1.16244,-1.71295 2.34384,-4.31925 2.62533,-5.79178 z m -58.57248,6.82267 c -0.31658,-0.825 -0.0272,-1.50689 0.64301,-1.51531 0.77072,-0.01 0.66729,-0.37161 -0.28138,-0.98469 -1.24531,-0.80478 -1.16041,-0.97737 0.5,-1.01649 2,-0.0471 2,-0.0471 0,-1.64985 -1.56903,-1.25736 -1.6298,-1.4754 -0.28202,-1.01187 0.94488,0.32498 1.98847,0.15318 2.31909,-0.38178 0.33062,-0.53495 1.01397,-0.71748 1.51856,-0.40563 0.54437,0.33644 0.57825,-0.34988 0.0833,-1.68784 -0.45877,-1.24017 -2.03071,-2.57486 -3.4932,-2.96599 -1.72565,-0.46151 -2.43625,-0.3506 -2.02429,0.31595 1.25005,2.02263 -1.98566,2.72853 -3.38028,0.73744 -0.74502,-1.06367 -1.83416,-1.93394 -2.42032,-1.93394 -0.6747,0 -0.60897,0.55038 0.17915,1.5 1.01425,1.22209 0.96163,1.5 -0.28396,1.5 -1.28203,0 -1.35729,0.55897 -0.46618,3.46245 0.58446,1.90434 1.39433,3.25745 1.79972,3.00691 0.40539,-0.25055 1.01865,0.66635 1.3628,2.03755 0.41704,1.66163 1.32206,2.49309 2.71366,2.49309 1.4451,0 1.91072,-0.46182 1.51233,-1.5 z m 50.36163,-1.5 c 0,-0.55 -0.19844,-1 -0.44098,-1 -0.24254,0 -0.7191,0.45 -1.05902,1 -0.33992,0.55 -0.14148,1 0.44098,1 0.58246,0 1.05902,-0.45 1.05902,-1 z m -68.00659,-21.08333 c 0.009,3.21189 0.99119,2.08549 1.9713,-2.26018 0.73589,-3.26284 -0.1342,-5.65649 -2.05613,-5.65649 -0.90162,0 -3.91051,7.534 -3.90199,9.77024 0.005,1.21751 0.59496,0.84135 1.99341,-1.27024 1.94118,-2.93109 1.98697,-2.94449 1.99341,-0.58333 z m 53.79725,-2.88027 c -1.1961,-1.91525 -3.79066,-2.84434 -3.79066,-1.3574 0,0.37345 0.5335,2.15437 1.18555,3.95759 1.1213,3.1009 1.25849,3.17447 2.53121,1.3574 1.09649,-1.56545 1.11017,-2.29825 0.0739,-3.95759 z m 36.65764,3.8007 c -0.37756,-1.18959 -1.34056,-3.72834 -2.14,-5.64167 -1.31485,-3.14688 -1.60188,-3.33042 -3.00847,-1.92383 -1.18675,1.18674 -1.36747,2.46347 -0.7632,5.39167 0.46848,2.2702 0.9588,3.12221 1.20089,2.08673 0.54856,-2.34642 1.97951,-2.21692 2.76248,0.25 0.34913,1.1 1.08478,2 1.63478,2 0.57002,0 0.70483,-0.92998 0.31352,-2.1629 z m -54.6361,-5.32775 c -0.26456,-1.16527 -0.59777,-1.16426 -2.18343,0.007 -1.4224,1.05035 -1.7016,2.05366 -1.16399,4.18289 l 0.70725,2.80111 1.47618,-2.80776 c 0.81191,-1.54427 1.3357,-3.42657 1.16399,-4.18289 z m 26.6878,-4.50935 c 0.33992,-0.55 0.14148,-1 -0.44098,-1 -0.58246,0 -1.05902,0.45 -1.05902,1 0,0.55 0.19844,1 0.44098,1 0.24254,0 0.7191,-0.45 1.05902,-1 z m -45.50632,-0.75 c -0.003,-0.4125 -1.35348,-1.51657 -3,-2.45349 -1.64653,-0.93692 -2.99368,-1.28879 -2.99368,-0.78194 0,0.50686 1.2375,1.59291 2.75,2.41346 3.27863,1.77868 3.25168,1.77185 3.24368,0.82197 z m 7.68943,-1.4375 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19293,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36782,-1.19479 0.0789,-1.91667 z m 48.45948,0.61376 c 1.6738,-0.86555 2.81827,-1.79873 2.54327,-2.07373 -0.5366,-0.5366 -6.68586,2.38188 -6.68586,3.17315 0,0.79866 0.96987,0.54126 4.14259,-1.09942 z m -41.43596,-10.17626 c 0.35412,-0.9625 1.33486,-2.8283 2.17943,-4.14622 2.01483,-3.14408 2.50385,-6.40042 0.87989,-5.8591 -1.65784,0.55262 -4.52314,5.57305 -5.1396,9.00532 -0.54298,3.02322 1.05354,3.79067 2.08028,1 z m 25.29337,0.68538 c 0,-2.76049 -4.38511,-10.93669 -5.87314,-10.95069 -1.42439,-0.0134 -1.44017,-0.14961 -0.12686,-1.09433 1.24751,-0.8974 1.19167,-0.97898 -0.33179,-0.48469 -1.00748,0.32688 -2.13248,0.60122 -2.5,0.60964 -0.36751,0.008 -0.0758,0.39097 0.64827,0.85011 0.72407,0.45914 1.41554,1.50967 1.5366,2.33452 0.12106,0.82485 0.91229,2.5798 1.75828,3.89989 0.84599,1.3201 1.82789,3.18767 2.18201,4.15017 0.69992,1.90237 2.70663,2.41052 2.70663,0.68538 z m 27,-2.82839 c 0,-0.49116 -0.675,-1.15203 -1.5,-1.46862 -1.52428,-0.58492 -2.04799,0.4803 -0.83333,1.69496 0.95569,0.9557 2.33333,0.82206 2.33333,-0.22634 z m -65,-3.22502 c 0,-0.55 -0.45,-0.72189 -1,-0.38197 -0.55,0.33992 -1,1.06803 -1,1.61803 0,0.55 0.45,0.72189 1,0.38197 0.55,-0.33992 1,-1.06803 1,-1.61803 z m 49.18333,-0.0986 c -0.71756,-0.7176 -1.18333,-0.77664 -1.18333,-0.15004 0,1.33478 1.18261,2.51739 1.85,1.85 0.28417,-0.28416 -0.0158,-1.04916 -0.66667,-1.7 z m 12.21025,0.33426 c 1.20402,-1.33043 1.49993,-2.6937 1.00914,-4.64916 -0.49206,-1.96052 -0.36051,-2.56038 0.45144,-2.05857 0.63021,0.38949 1.14584,0.23161 1.14584,-0.35085 0,-0.58246 -0.5625,-1.07333 -1.25,-1.09082 -0.70412,-0.0179 -0.40229,-0.67298 0.69113,-1.5 1.06762,-0.80751 1.37856,-1.4682 0.69098,-1.4682 -0.68758,0 -1.00354,-0.39901 -0.70214,-0.88669 0.72632,-1.17521 -1.28769,-2.68417 -4.65607,-3.48848 -3.45465,-0.8249 -12.73784,3.99525 -12.75949,6.62517 -0.0147,1.79186 1.10675,2.29551 2.34787,1.05439 0.38258,-0.38259 1.46192,-0.80808 2.39851,-0.94554 0.9366,-0.13747 1.86107,-0.72444 2.05439,-1.30439 0.19332,-0.57995 2.00149,-1.03413 4.01815,-1.00927 l 3.66667,0.0452 -4.29172,2.24642 c -2.36045,1.23553 -3.97295,2.5652 -3.58334,2.95481 0.38962,0.38962 0.25839,0.70839 -0.29161,0.70839 -0.55,0 -1,0.675 -1,1.5 0,0.825 0.55015,1.5 1.22255,1.5 0.6724,0 2.2849,0.88503 3.58334,1.96673 2.94334,2.45206 3.16603,2.45845 5.25436,0.15087 z m -3.39358,-6.49518 c 0,-0.20766 0.7875,-0.99516 1.75,-1.75 1.58606,-1.24388 1.62143,-1.20851 0.37756,0.37755 -1.30637,1.66575 -2.12756,2.19548 -2.12756,1.37245 z m -50.18695,1.87755 c 1.44538,-1.66233 1.72712,-2.5 0.84085,-2.5 -0.73308,0 -1.84545,1.125 -2.47195,2.5 -0.62649,1.375 -1.00487,2.5 -0.84085,2.5 0.16403,0 1.2764,-1.125 2.47195,-2.5 z m 33.68695,-1.5 c -0.33992,-0.55 -1.04148,-1 -1.55902,-1 -0.51754,0 -0.94098,0.45 -0.94098,1 0,0.55 0.70156,1 1.55902,1 0.85746,0 1.2809,-0.45 0.94098,-1 z m 25,0 c -0.33992,-0.55 -0.0515,-1 0.64098,-1 0.96939,0 0.9868,-0.27222 0.0757,-1.18333 -0.65084,-0.65084 -1.47143,-0.89524 -1.82354,-0.54313 -0.71164,0.71163 0.20621,3.72646 1.13449,3.72646 0.32472,0 0.31229,-0.45 -0.0276,-1 z m -49,-1 c -0.33992,-0.55 -1.06803,-1 -1.61803,-1 -0.55,0 -0.72189,0.45 -0.38197,1 0.33992,0.55 1.06803,1 1.61803,1 0.55,0 0.72189,-0.45 0.38197,-1 z m 31.00957,-7.56845 c 1.91974,-0.80211 3.49043,-1.88652 3.49043,-2.40979 0,-1.25652 -3.37545,-3.02176 -5.77817,-3.02176 -2.45925,0 -12.21706,-9.3244 -12.23714,-11.69362 -0.008,-0.99351 -0.46792,-2.48138 -1.0211,-3.30638 -0.70561,-1.05232 -0.88276,0.54173 -0.59356,5.34112 0.22672,3.76262 0.87605,7.30496 1.44295,7.87186 0.5669,0.5669 0.81291,1.59837 0.54668,2.29214 -0.26623,0.69378 0.19598,2.88894 1.02712,4.87815 0.83114,1.9892 1.08413,3.61673 0.56219,3.61673 -0.52193,0 -0.94897,0.49878 -0.94897,1.10841 0,0.68296 0.9596,0.86756 2.5,0.48095 1.38445,-0.34748 2.5,-0.19303 2.5,0.34613 0,0.53548 1.12931,-0.15571 2.50957,-1.53597 1.38027,-1.38026 4.08027,-3.16585 6,-3.96797 z m -35.00957,4.63647 c 0.55,-0.0543 0.42899,-0.46107 -0.2689,-0.90403 -1.02373,-0.64977 -1.01816,-1.5646 0.0288,-4.73469 0.71374,-2.16111 1.30819,-4.3793 1.321,-4.9293 0.0128,-0.55 0.32364,-2.575 0.69074,-4.5 1.32188,-6.93175 1.6712,-12.08271 0.78213,-11.53324 -0.49495,0.3059 -1.20692,1.95399 -1.58216,3.66244 -0.90442,4.11781 -8.81698,11.61744 -13.62228,12.91137 -2.07069,0.55758 -4.0089,1.40859 -4.30713,1.89114 -0.29823,0.48254 1.89564,2.25321 4.87526,3.9348 2.97963,1.6816 5.66058,3.45076 5.95768,3.93147 0.29709,0.48071 1.57172,0.76032 2.83251,0.62135 1.26079,-0.13896 2.74234,-0.29705 3.29234,-0.35131 z m -4.5,252.53897 c 0,-0.21616 0.69837,-0.661 1.55194,-0.98855 0.88992,-0.34149 1.29132,-0.17385 0.94098,0.39301 -0.58726,0.95021 -2.49292,1.40545 -2.49292,0.59554 z m -67,-117.54797 c 0,-0.51754 0.44485,-1.21592 0.98855,-1.55194 0.56686,-0.35034 0.7345,0.0511 0.39301,0.94098 -0.66479,1.73242 -1.38156,2.04939 -1.38156,0.61096 z m -8.53451,-4.80902 c 0.87223,-1.7875 1.79931,-3.25 2.06019,-3.25 0.99447,0 0.35405,1.59298 -1.60811,4 l -2.03796,2.5 1.58588,-3.25 z m 9.93902,0.59549 c -0.44208,-0.7153 -0.27432,-0.88306 0.44098,-0.44098 0.63498,0.39244 1.15451,0.32297 1.15451,-0.15436 0,-0.47734 0.69678,-1.7414 1.54841,-2.80902 1.36766,-1.71454 1.36466,-1.56175 -0.0257,1.30887 -1.73079,3.57353 -2.06566,3.79857 -3.11822,2.09549 z m 5.67444,-0.42882 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 3.07894,-0.41667 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m -2.07894,-4.21862 c -0.0538,-1.17104 -0.63652,-1.53925 -1.82895,-1.15566 -1.46272,0.47053 -1.50513,0.39013 -0.25836,-0.48975 1.74599,-1.23219 3.48042,0.0697 2.69981,2.02653 -0.36577,0.91691 -0.55838,0.79706 -0.6125,-0.38112 z M 149.85,485.42619 c 0.37553,-0.98622 0.93469,-1.54122 1.24258,-1.23333 0.30789,0.30789 6.4e-4,1.11479 -0.68278,1.79313 -0.98762,0.98026 -1.10248,0.8654 -0.5598,-0.5598 z m 8.41565,-1.23104 c -0.69572,-0.83829 -1.07128,-1.71782 -0.83459,-1.95452 0.2367,-0.23669 0.97964,0.44918 1.65098,1.52417 1.45181,2.32472 0.96763,2.57996 -0.81639,0.43035 z m -17.24661,-8.59992 c 0.67834,-0.68342 1.48524,-0.99067 1.79313,-0.68278 0.30789,0.30789 -0.24711,0.86705 -1.23333,1.24258 -1.4252,0.54268 -1.54006,0.42782 -0.5598,-0.5598 z m 5.26667,-1.81689 c 0,-0.51754 0.44485,-1.21592 0.98855,-1.55194 0.56686,-0.35034 0.7345,0.0511 0.39301,0.94098 -0.66479,1.73242 -1.38156,2.04939 -1.38156,0.61096 z m 15.8125,-7.74213 c 0.72187,-0.28887 1.58437,-0.25335 1.91667,0.0789 0.33229,0.33229 -0.25834,0.56864 -1.3125,0.52522 -1.16495,-0.048 -1.4019,-0.28494 -0.60417,-0.60416 z m -8.8125,-8.31689 c 0,-0.55 0.45,-1 1,-1 0.55,0 1,0.45 1,1 0,0.55 -0.45,1 -1,1 -0.55,0 -1,-0.45 -1,-1 z m -35,-49 c -0.90129,-0.58246 -1.02463,-0.97549 -0.30902,-0.98469 0.65504,-0.008 1.4691,0.43469 1.80902,0.98469 0.7673,1.24152 0.42112,1.24152 -1.5,0 z m 35,-17.44098 c 0,-0.85746 0.45,-1.55902 1,-1.55902 0.55,0 1,0.42344 1,0.94098 0,0.51754 -0.45,1.2191 -1,1.55902 -0.55,0.33992 -1,-0.0835 -1,-0.94098 z m 16.98754,-27.54328 c 1.65685,-2.09195 3.06466,-4.86379 3.12846,-6.15964 0.0932,-1.89401 0.21057,-1.98759 0.59816,-0.47715 0.64865,2.52777 -2.77802,9.39679 -4.97662,9.97601 -1.33348,0.3513 -1.02923,-0.46146 1.25,-3.33922 z m 3.02777,1.79328 c -0.008,-0.93004 0.43469,-1.9691 0.98469,-2.30902 1.2656,-0.78218 1.2656,0.54163 0,2.5 -0.8354,1.29269 -0.97149,1.26629 -0.98469,-0.19098 z m -0.59535,-16.26897 c -0.57934,-2.49703 -0.70622,-4.54005 -0.28196,-4.54005 0.89027,0 2.24321,6.35638 1.69987,7.98638 -0.20051,0.60154 -0.83857,-0.94931 -1.41791,-3.44633 z"
- id="path3040"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#878787"
- d="m 129.98208,700.74531 c -5.392,-2.08996 -10.04701,-4.0433 -10.34448,-4.34077 -0.49464,-0.49464 6.9264,-5.68522 8.12824,-5.68522 0.28593,0 0.51987,0.45 0.51987,1 0,0.55 -0.48214,1 -1.07143,1 -0.58928,0 -1.76918,0.69775 -2.62199,1.55056 -1.40074,1.40074 -1.36968,1.68454 0.32143,2.93723 2.89087,2.14142 17.60096,6.75228 18.27466,5.72818 0.32853,-0.49942 1.83483,-1.21089 3.34733,-1.58105 3.3145,-0.81118 3.43555,-2.32858 0.7495,-9.39565 -1.60787,-4.23033 -1.9995,-7.68245 -1.9995,-17.625 0,-18.50349 -0.65397,-20.2292 -6.41958,-16.94004 -1.85524,1.05837 -1.86579,1.35867 -0.31469,8.96042 0.88268,4.32594 1.9086,9.66535 2.27981,11.86535 0.95712,5.67233 1.0989,18.50091 0.20446,18.50041 -0.4125,-2.2e-4 -0.75,-0.87385 -0.75,-1.94139 0,-1.06754 -0.45,-2.2191 -1,-2.55902 -0.55,-0.33992 -1,-0.0864 -1,0.56343 0,0.88431 -0.3745,0.87065 -1.48899,-0.0543 -0.81894,-0.67967 -1.24239,-1.63477 -0.94098,-2.12245 0.3014,-0.48767 0.1494,-0.88668 -0.33777,-0.88668 -0.49574,0 -0.43412,-2.20482 0.13992,-5.00713 0.87299,-4.26163 0.69345,-6.0855 -1.20584,-12.25 -3.0264,-9.82269 -8.80955,-33.20673 -9.58158,-38.74287 -0.41382,-2.9675 0.095,-7.90555 1.49409,-14.5 1.69995,-8.01244 1.99688,-11.85889 1.49399,-19.35264 -0.3452,-5.14396 -1.23712,-10.54396 -1.98205,-12 -2.36534,-4.62334 -8.45211,-24.55929 -9.53379,-31.22592 -1.29518,-7.98255 -1.37659,-29.3203 -0.12846,-33.67228 0.5107,-1.78069 1.64423,-9.42772 2.51896,-16.99339 0.87473,-7.56568 2.34268,-17.90384 3.26211,-22.9737 l 1.67169,-9.21794 -2.69065,-6.55187 c -1.47986,-3.60352 -2.70433,-7.55545 -2.72106,-8.78206 -0.0615,-4.50729 -1.75575,0.66207 -2.38273,7.2698 -0.33921,3.575 -1.26551,8.75 -2.05845,11.5 -0.79293,2.75 -2.14883,7.58768 -3.0131,10.75039 -2.15669,7.89219 -7.91843,18.64849 -15.31252,28.5862 l -6.20279,8.3366 -0.1377,7.6634 -0.1377,7.66341 -1.03734,-4.78982 c -0.7147,-3.30009 -1.44943,-4.63169 -2.3623,-4.28138 -0.72873,0.27963 -1.32496,0.0304 -1.32496,-0.5538 0,-0.58423 0.79796,-1.27091 1.77326,-1.52596 0.97529,-0.25504 2.25788,-2.01207 2.8502,-3.9045 0.89449,-2.85783 0.84819,-3.25094 -0.27325,-2.32022 -1.90724,1.58286 -1.76648,-0.48142 0.52569,-7.70916 1.03174,-3.25334 2.64223,-9.29016 3.57887,-13.41516 0.93664,-4.125 2.11749,-8.88195 2.62411,-10.571 0.50661,-1.68905 0.92801,-4.38905 0.93643,-6 0.008,-1.61095 0.45153,-3.604 0.98469,-4.429 0.69783,-1.07982 1.01606,0.0407 1.13602,4 0.24839,8.19748 0.15232,9.96167 -0.88486,16.25 -0.52161,3.1625 -0.6211,5.75 -0.22109,5.75 0.91516,0 2.16098,-3.36427 4.99918,-13.5 1.92595,-6.8779 2.84606,-8.54072 6.55994,-11.85509 3.49404,-3.11817 4.45042,-4.72625 5.00322,-8.41256 0.56008,-3.73493 0.3607,-4.79347 -1.10472,-5.86501 -1.70851,-1.24929 -1.69238,-1.55777 0.36208,-6.92642 2.49186,-6.51162 2.47988,-6.44092 1.09121,-6.44092 -0.58246,0 -0.80012,0.41891 -0.48369,0.9309 0.31644,0.512 0.11799,1.21356 -0.44098,1.55902 -0.55897,0.34546 -1.01631,-0.0649 -1.01631,-0.91185 0,-2.01226 -4.25562,-3.04682 -6.84112,-1.6631 -1.11507,0.59677 -2.31291,1.08503 -2.66186,1.08503 -0.34896,0 -0.32044,-3.6 0.0634,-8 0.47989,-5.50134 0.35986,-8 -0.38427,-8 -1.61846,0 -3.16344,6.73177 -2.6161,11.39879 0.26454,2.25567 0.62399,7.28895 0.79879,11.18508 0.17479,3.89614 0.68509,7.67817 1.134,8.40451 0.50977,0.82484 0.42634,1.07969 -0.22226,0.67884 -0.57115,-0.35299 -1.62098,0.81498 -2.33296,2.59549 -0.71198,1.78051 -2.54942,4.85838 -4.0832,6.8397 -4.32526,5.58736 -7.83995,13.23685 -7.20229,15.67529 0.31077,1.18836 0.0896,3.52452 -0.49152,5.19148 -0.5811,1.66695 -0.71503,3.03082 -0.29762,3.03082 0.41741,0 1.33533,-2.24898 2.03981,-4.99774 1.34205,-5.2364 3.09722,-7.5577 3.09722,-4.09622 0,1.11323 -0.63314,3.95229 -1.40699,6.30901 -0.77384,2.35672 -2.22265,8.10995 -3.21959,12.78495 -1.54594,7.24952 -1.91001,8.05865 -2.4747,5.5 -0.36415,-1.65 -0.71533,-2.18036 -0.78041,-1.17857 -0.1621,2.49558 -2.8513,4.99501 -4.637,4.30977 -1.19871,-0.45998 -1.01096,-1.23549 1.0257,-4.23667 1.37115,-2.02049 2.47931,-4.17333 2.46258,-4.78408 -0.0167,-0.61075 -0.54235,-0.22776 -1.16806,0.85107 -0.62571,1.07884 -2.67821,3.97976 -4.56112,6.4465 -3.05895,4.00744 -3.25087,4.61116 -1.80254,5.67021 1.48959,1.08921 1.48541,1.23723 -0.0516,1.82704 -0.91989,0.35299 -1.90811,0.40621 -2.19606,0.11827 -0.28794,-0.28795 0.028,-0.52354 0.70215,-0.52354 0.67413,0 0.94682,-0.45122 0.60598,-1.0027 -0.40517,-0.65557 -1.37764,-0.59735 -2.80902,0.16817 -1.73844,0.92976 -1.5418,0.43312 0.95483,-2.41152 1.72928,-1.97033 3.67804,-5.20015 4.33059,-7.17739 0.65255,-1.97724 1.54938,-3.37068 1.99296,-3.09653 0.44357,0.27414 0.74985,-0.0592 0.6806,-0.74079 -0.0692,-0.68158 1.58285,-8.28436 3.67132,-16.89507 2.90086,-11.96021 4.64154,-17.03537 7.37407,-21.5 1.96728,-3.21429 4.19923,-6.96917 4.9599,-8.34417 1.07409,-1.94156 1.35135,-7.46731 1.24119,-24.73736 -0.1407,-22.05794 -0.12085,-22.28025 2.45998,-27.55528 3.12791,-6.39323 5.61276,-8.80206 11.89525,-11.53136 4.77187,-2.07304 6.45871,-1.7242 2.77794,0.57448 -1.15624,0.72208 -1.73251,1.85581 -1.39301,2.74054 0.66292,1.72755 -1.66902,2.07489 -3.25856,0.48535 -0.69817,-0.69817 -1.60766,-0.37828 -2.86054,1.00613 -2.30728,2.54953 -1.57519,3.37077 1.84548,2.07023 2.06536,-0.78525 2.63869,-0.70192 2.63869,0.38354 0,1.47897 1.6356,1.54704 3.85693,0.1605 1.08028,-0.6743 1.21699,-0.20983 0.67055,2.27812 -0.47737,2.17347 -0.31322,3.12511 0.53909,3.12511 0.67401,0 0.0348,1.10351 -1.42055,2.45225 -1.45531,1.34874 -2.64602,2.94127 -2.64602,3.53896 0,0.59768 0.98485,0.16917 2.18856,-0.95226 1.20371,-1.12142 2.93397,-2.03895 3.84501,-2.03895 0.91105,0 2.47094,-0.9 3.46643,-2 0.99549,-1.1 2.61367,-2 3.59597,-2 2.11779,0 3.77526,-2.20959 2.08108,-2.77432 -0.64741,-0.21579 -1.17708,-0.95761 -1.17708,-1.6485 0,-0.69088 -1.2375,-1.83738 -2.75,-2.54778 -1.65262,-0.7762 -2.23778,-1.47655 -1.46638,-1.75505 0.70599,-0.25489 1.83099,-0.0295 2.5,0.50079 0.66901,0.53032 2.90388,1.50776 4.96638,2.17209 2.238,0.72086 3.75,1.8439 3.75,2.78531 0,1.3348 0.33001,1.28442 2.14551,-0.32755 2.12998,-1.8912 2.13722,-1.88918 1,0.27927 -2.01588,3.84388 -1.21782,4.91488 1.35301,1.81574 1.36872,-1.65 2.33432,-3.68922 2.14577,-4.5316 -0.27083,-1.20996 0.41304,-1.44557 3.25644,-1.12194 3.57451,0.40685 3.58656,0.39546 1.75131,-1.65538 -1.01638,-1.13578 -1.55232,-2.54341 -1.19098,-3.12807 0.96658,-1.56397 2.53894,-1.29334 2.53894,0.43699 0,0.825 0.41786,1.5 0.92857,1.5 0.51072,0 1.63572,0.70714 2.5,1.57143 1.78955,1.78955 2.14103,7.42857 0.46302,7.42857 -0.65583,0 -0.87374,-0.93497 -0.53369,-2.28986 0.50346,-2.00594 0.17593,-2.31457 -2.64159,-2.48919 -3.11459,-0.19302 -3.15306,-0.14797 -1.21631,1.42439 1.43933,1.16854 1.5397,1.46626 0.35804,1.06204 -1.23739,-0.4233 -2.07924,0.5833 -3.41667,4.08531 -0.97609,2.55585 -1.7747,5.22307 -1.7747,5.92715 0,0.70409 -0.4875,1.31179 -1.08334,1.35045 -0.59583,0.0386 -0.18333,0.45702 0.91667,0.92971 2.76406,1.18776 4.31813,1.17822 2.5,-0.0153 -1.26743,-0.83203 -1.18222,-1.07219 0.54955,-1.5489 2.97164,-0.81801 5.05551,-4.40278 3.29262,-5.66411 -0.99325,-0.71066 -0.86596,-0.80581 0.48962,-0.36598 1.00748,0.32688 2.18641,0.59433 2.61984,0.59433 0.96977,0 0.31564,17.0477 -1.00866,26.28783 -0.68106,4.75198 -0.64414,7.40202 0.12311,8.83565 1.48105,2.76737 0.40945,3.61082 -1.23734,0.9739 -1.65197,-2.64523 -2.83094,-2.70507 -2.33279,-0.11841 0.20961,1.08844 -0.0412,2.23999 -0.55742,2.55902 -1.48984,0.92077 -1.09355,2.27485 0.81147,2.77268 1.5017,0.39244 1.51688,0.47379 0.10699,0.57333 -1.8158,0.1282 -3.2033,2.74663 -2.26227,4.26926 0.33066,0.53502 -0.0824,1.73191 -0.918,2.65975 -0.83557,0.92785 -1.66715,2.36199 -1.84797,3.18699 -0.18081,0.825 -0.73109,1.79163 -1.22285,2.14807 -0.49175,0.35644 -0.94744,2.60644 -1.01264,5 -0.0652,2.39356 -0.42703,4.83372 -0.80408,5.42258 -0.81497,1.27281 2.71117,7.42935 4.25514,7.42935 0.59054,0 0.82454,0.40316 0.52,0.89592 -0.30454,0.49276 0.11613,2.18026 0.93483,3.75 0.81869,1.56974 1.4913,3.41658 1.49469,4.10408 0.003,0.6875 0.79366,1.25689 1.75616,1.26531 1.49555,0.0131 1.5319,0.15626 0.25,0.98469 -1.2718,0.8219 -1.22479,0.9717 0.30902,0.98469 1.10818,0.009 1.53326,0.46149 1.09722,1.16701 -0.39216,0.63454 0.14264,1.77648 1.19098,2.54305 1.04653,0.76524 1.73851,1.48447 1.53774,1.5983 -0.59225,0.33576 2.12135,8.70695 2.82244,8.70695 0.35245,0 1.24506,-1.67098 1.98356,-3.71328 0.73851,-2.0423 1.95391,-4.32445 2.70089,-5.07143 0.74698,-0.74698 1.35815,-2.226 1.35815,-3.28672 0,-1.06071 0.47656,-1.92857 1.05902,-1.92857 0.58246,0 0.81004,-0.40285 0.50574,-0.89522 -0.3043,-0.49236 0.18355,-1.17796 1.08411,-1.52353 0.90056,-0.34558 1.36387,-0.90185 1.02956,-1.23615 -0.3343,-0.3343 0.0513,-1.54884 0.85688,-2.69897 0.80558,-1.15013 1.46469,-2.86865 1.46469,-3.81895 0,-0.95029 0.56323,-2.08766 1.25163,-2.52749 2.46151,-1.5727 3.81924,-5.67311 2.91375,-8.79969 -0.47785,-1.65 -0.73329,-3.9 -0.56765,-5 0.16565,-1.1 -0.36145,-3.0125 -1.17133,-4.25 -0.80988,-1.2375 -1.16828,-2.25 -0.79644,-2.25 0.37183,0 -0.18029,-0.7875 -1.22695,-1.75 -1.04666,-0.9625 -1.87501,-2.65 -1.84078,-3.75 0.0342,-1.1 -0.35837,-2.5625 -0.87244,-3.25 -0.62148,-0.83114 -0.51753,-1.25 0.31021,-1.25 0.92805,0 0.96142,-0.34156 0.13112,-1.34201 -0.61257,-0.7381 -0.81767,-1.6381 -0.45578,-2 0.3619,-0.36189 -0.31701,-0.65799 -1.50867,-0.65799 -1.19167,0 -2.16667,0.45 -2.16667,1 0,0.55 -0.46583,1 -1.03518,1 -0.66331,0 -0.71072,-0.62867 -0.13197,-1.75 1.24338,-2.40909 2.12071,-11.33933 1.04892,-10.67693 -0.47765,0.2952 -0.88537,-0.50047 -0.90604,-1.76817 -0.0207,-1.26769 -0.22887,-7.60672 -0.46267,-14.08673 -0.26513,-7.34849 -0.0653,-11.5595 0.53093,-11.19098 0.52581,0.32496 0.95601,1.14226 0.95601,1.81622 0,0.67396 1.35794,2.02753 3.01764,3.00794 1.6597,0.98041 2.78255,2.16293 2.49523,2.62782 -0.5721,0.92568 2.069,0.7723 3.01648,-0.17519 0.32298,-0.32298 -0.5919,-3.38875 -2.03307,-6.81281 -2.9259,-6.95163 -2.78144,-8.79093 0.66083,-8.41423 3.42417,0.37472 3.44721,0.38731 2.18257,1.19197 -0.80918,0.51485 -0.41537,1.60435 1.30128,3.60007 1.35388,1.57398 2.74603,2.57737 3.09366,2.22974 0.34762,-0.34763 0.0995,-1.16455 -0.55129,-1.81539 -1.5984,-1.5984 -1.54431,-3.29788 0.0667,-2.09442 1.87208,1.39852 4.25,1.01307 4.25,-0.68891 0,-0.825 0.45,-1.52212 1,-1.54916 2.16141,-0.10625 5.5,-1.63485 5.5,-2.51823 -3e-5,-0.51293 0.67497,-0.93261 1.49997,-0.93261 0.825,0 1.5,0.45 1.5,1 0,0.55 -0.42682,1 -0.94848,1 -0.52166,0 -2.02822,1.0125 -3.3479,2.25 -2.46772,2.31405 -2.56876,4.75 -0.19701,4.75 0.73697,0 2.68477,1.1316 4.32844,2.51466 1.64368,1.38306 3.14736,2.0381 3.34152,1.45564 0.19415,-0.58246 1.77101,0.32734 3.50413,2.02178 2.63245,2.57371 3.0621,2.7404 2.6103,1.0127 -0.29745,-1.13746 -1.44541,-2.55223 -2.55101,-3.14393 -1.46043,-0.7816 -1.67152,-1.28513 -0.77184,-1.84116 0.93133,-0.5756 0.96483,-1.27641 0.1351,-2.82678 -1.57313,-2.93941 -1.40628,-3.28697 1.33898,-2.78916 1.34323,0.24357 2.64159,-0.0851 2.88525,-0.73045 0.28597,-0.75738 1.04171,-0.46433 2.13193,0.8267 0.9289,1.1 1.40398,1.4375 1.05573,0.75 -0.34825,-0.6875 -0.19412,-1.25 0.34251,-1.25 0.53663,0 1.20266,0.5625 1.48007,1.25 0.27741,0.6875 0.53991,0.3275 0.58333,-0.8 0.11749,-3.05075 -1.80038,-4.42413 -5.22237,-3.73973 -2.13808,0.42761 -2.80274,0.26713 -2.29515,-0.55417 0.39298,-0.63586 0.21139,-1.1561 -0.40353,-1.1561 -0.61492,0 -0.87143,-0.39901 -0.57003,-0.88669 0.81621,-1.32065 -1.47267,-2.77028 -5.52497,-3.49915 -2.82489,-0.50811 -4.60968,-0.0795 -8.33172,2.00077 -2.60519,1.45608 -4.97309,3.26338 -5.26199,4.01624 -0.6409,1.67016 -4.63867,1.85097 -4.08324,0.18468 0.2171,-0.65129 2.99379,-2.62332 6.17043,-4.3823 l 5.77571,-3.19814 -2.3096,-1.6177 c -1.27028,-0.88974 -2.88837,-1.61771 -3.59576,-1.61771 -1.71854,0 -8.91287,-5.26869 -11.16419,-8.17598 -0.98981,-1.27821 -2.10647,-3.57992 -2.48147,-5.11492 -0.88617,-3.62746 -2.78615,-2.47227 -2.12317,1.2909 0.27883,1.58271 0.0443,3.16363 -0.52129,3.51316 -0.56555,0.34952 -0.96382,0.26455 -0.88507,-0.18883 0.0788,-0.45338 0.0555,-1.04933 -0.0517,-1.32433 -0.20281,-0.52021 -0.30598,-0.91126 -1.9787,-7.5 -1.44701,-5.69972 -1.36136,-6.03911 1.58568,-6.28301 2.97142,-0.24593 5.59226,-2.01778 4.82379,-3.2612 -0.27792,-0.44968 -0.048,-1.10024 0.51101,-1.44571 0.55897,-0.34546 1.01631,0.24598 1.01631,1.31433 0,2.15591 4.60315,3.67736 5.38617,1.78025 0.25076,-0.60756 0.49146,-0.31716 0.53488,0.64534 0.0434,0.9625 -0.59605,1.75 -1.42105,1.75 -0.825,0 -1.49311,0.7875 -1.48469,1.75 0.0131,1.49555 0.15626,1.5319 0.98469,0.25 0.53316,-0.825 0.97627,-1.0275 0.98469,-0.45 0.008,0.5775 -0.37636,1.4775 -0.85506,2 -0.47871,0.5225 -1.1359,3.02037 -1.46042,5.55083 -0.52596,4.10102 -0.29562,4.87666 2.12037,7.13996 3.21998,3.01653 13.26369,8.75921 15.31946,8.75921 1.97887,0 15.9522,6.75881 18.24902,8.82693 1.02194,0.92019 3.03456,3.92307 4.47248,6.67307 2.58829,4.95007 2.61135,5.18799 2.30827,23.82408 -0.39651,24.3809 -0.0137,26.87646 5.41761,35.3192 3.75511,5.83713 4.94226,9.08869 8.15789,22.34398 2.0698,8.53201 3.70581,16.07524 3.63558,16.76274 -0.0702,0.6875 0.25818,1.25 0.72981,1.25 0.47162,0 0.57015,0.74882 0.21895,1.66404 -0.40761,1.06222 -0.24458,1.42056 0.45079,0.9908 0.64939,-0.40135 1.55043,0.72383 2.23099,2.78597 1.06203,3.21798 4.30069,6.59401 10.35473,10.79393 1.37531,0.95411 3.95736,4.32911 5.73787,7.5 1.78052,3.17089 3.88656,6.5244 4.68009,7.45225 1.60085,1.87182 0.92145,3.81301 -1.33451,3.81301 -0.80483,0 -3.54377,-1.9125 -6.08654,-4.25 l -4.62322,-4.25 0.71406,11.68933 0.71407,11.68934 -3.8185,1.13831 c -3.45886,1.0311 -4.33653,0.86752 -9.31851,-1.73685 -5.48678,-2.86825 -5.5056,-2.89429 -7.82824,-10.82765 -1.90724,-6.51446 -2.22898,-9.39909 -1.77932,-15.95248 0.65107,-9.48858 -0.22055,-11.71626 -9.39049,-24 -3.28464,-4.4 -7.29211,-11.15 -8.90549,-15 -3.68177,-8.78579 -8.0921,-25.61924 -8.11011,-30.95483 -0.0173,-5.12441 -0.95438,-8.68296 -2.10004,-7.97491 -0.48747,0.30128 -0.88631,1.42612 -0.88631,2.49966 0,1.07353 -0.85131,3.85947 -1.8918,6.19098 -2.98907,6.69782 -3.04028,7.15249 -1.62018,14.38538 0.74011,3.76955 2.11461,13.60372 3.05445,21.85372 0.93985,8.25 2.32727,17.45704 3.08317,20.4601 3.25704,12.93968 1.05588,32.06764 -6.19609,53.84349 -5.22564,15.6913 -5.4291,16.70531 -5.41768,27 0.007,6.24255 0.62657,12.98655 1.48813,16.19641 0.81194,3.025 1.4816,7.54863 1.48813,10.05251 0.0118,4.53273 -4.70104,24.79011 -9.51951,40.91794 -2.6403,8.83733 -2.59042,12.45188 0.23327,16.90267 0.85326,1.34494 0.99274,2.05618 0.32192,1.6416 -0.68807,-0.42525 -1.80686,0.15823 -2.67215,1.3936 -0.81868,1.16883 -1.91152,1.8637 -2.42854,1.54417 -0.51702,-0.31954 -1.39226,0.46043 -1.94497,1.73327 -1.76375,4.06173 0.0532,-19.98839 2.12086,-28.07288 2.2882,-8.9468 2.29551,-9.11288 0.40099,-9.11288 -0.825,0 -1.50032,-0.3375 -1.50071,-0.75 -3.8e-4,-0.4125 -1.06834,-0.81134 -2.37324,-0.88632 l -2.37253,-0.13632 -0.4936,16.13632 c -0.41576,13.59163 -0.83,16.89847 -2.62676,20.96923 -2.7143,6.14953 -2.68969,6.46546 0.61684,7.91817 1.5125,0.66452 3.00774,1.56487 3.32275,2.00078 0.6756,0.93491 12.85681,-2.67425 17.59265,-5.21251 3.07489,-1.64804 3.17915,-1.86792 1.56452,-3.2993 -0.95146,-0.84346 -2.62992,-1.70583 -3.72992,-1.91636 -1.69345,-0.32411 -1.74999,-0.48141 -0.36884,-1.02625 1.92662,-0.76002 9.48912,4.01557 8.21646,5.18855 -0.46619,0.42967 -5.47692,2.46475 -11.13495,4.5224 -7.69666,2.79903 -11.19054,3.59461 -13.8739,3.15916 -1.97262,-0.32011 -3.78459,-0.78003 -4.0266,-1.02205 -0.75688,-0.75687 -0.67962,-6.66896 0.2698,-20.6455 1.23657,-18.20356 0.76336,-34.36003 -1.17901,-40.25456 -1.76394,-5.35304 -1.53487,-14.3778 0.62214,-24.51107 1.24051,-5.82772 1.17997,-6.70137 -0.86619,-12.5 -1.99756,-5.66092 -2.18199,-7.93605 -2.00508,-24.73437 0.10716,-10.175 -0.18547,-24.8 -0.65028,-32.5 -1.29626,-21.47334 -2.52733,-12.31982 -3.03355,22.55555 -0.37433,25.78917 -0.67762,30.33381 -2.37998,35.66266 -1.80797,5.65945 -1.84613,6.60825 -0.5205,12.94407 1.87753,8.97365 1.81019,17.69903 -0.19687,25.50695 -1.34194,5.22049 -1.50797,9.22451 -0.94667,22.83077 1.61741,39.20729 1.74198,34.98564 -1.06384,36.05241 -4.05687,1.54242 -7.32106,0.98322 -17.66577,-3.02642 z m 42.64871,-12.56912 c -0.32569,-0.84872 -0.80663,-1.32866 -1.06875,-1.06653 -0.26213,0.26213 -0.17998,0.95654 0.18255,1.54313 0.98605,1.59546 1.56238,1.28551 0.8862,-0.4766 z m -39.8697,-54.70633 c 2.20582,0.42167 2.3711,0.18722 1.99013,-2.82302 -0.66869,-5.28372 3.55749,-8.407 4.97613,-3.67752 0.65574,2.18608 0.69966,2.19318 1.54635,0.25 1.23478,-2.83389 1.19089,-3.72859 -0.1425,-2.90451 -0.7153,0.44208 -0.88306,0.27432 -0.44098,-0.44098 0.39244,-0.63498 1.6028,-1.15451 2.68969,-1.15451 1.61165,0 1.79385,0.34066 0.98779,1.8468 -0.68605,1.2819 -0.6229,2.21229 0.20646,3.04164 0.92644,0.92645 0.86628,1.3979 -0.26785,2.09883 -0.80447,0.49719 -1.13071,1.23595 -0.72497,1.64169 0.40573,0.40574 1.2702,0.20521 1.92104,-0.44563 0.65083,-0.65083 2.02365,-1.18333 3.05072,-1.18333 1.29468,0 1.72015,-0.53671 1.38732,-1.75 -0.26404,-0.9625 -0.7671,-3.45001 -1.11792,-5.52779 -0.35081,-2.07778 -0.95261,-3.5837 -1.33732,-3.34648 -0.38471,0.23722 -0.74126,-1.21278 -0.79234,-3.22221 -0.0511,-2.00944 -0.37297,-5.5491 -0.71533,-7.86593 -0.35378,-2.39411 -0.19874,-4.47428 0.35918,-4.8191 1.49381,-0.92322 -0.0412,-2.68621 -1.76347,-2.02532 -1.00816,0.38686 -1.33294,0.11761 -0.977,-0.80997 0.51829,-1.35065 -0.99748,-3.6332 -2.41269,-3.6332 -1.24785,0 -2.8974,6.17161 -2.91313,10.89922 -0.008,2.53043 -0.45153,5.27578 -0.98469,6.10078 -0.70991,1.09851 -0.97347,0.36246 -0.98469,-2.75 -0.008,-2.3375 -0.40143,-4.25 -0.87334,-4.25 -0.47192,0 -0.82643,1.0125 -0.78778,2.25 0.14569,4.66594 -1.53223,9.56329 -3.44821,10.06434 -1.0868,0.2842 -1.90598,1.37288 -1.90598,2.53302 0,1.11903 -0.40775,2.28661 -0.90612,2.59462 -0.98516,0.60886 -0.33423,4.37696 1.06781,6.18127 0.48005,0.61779 0.7138,1.74279 0.51946,2.5 -0.19435,0.75721 -0.18641,1.10465 0.0176,0.77209 0.20404,-0.33256 1.45351,-0.39772 2.7766,-0.1448 z m -3.47538,-4.71916 c 0,-0.53273 0.675,-0.70959 1.5,-0.39301 0.825,0.31659 1.5,0.75246 1.5,0.96862 0,0.21615 -0.675,0.39301 -1.5,0.39301 -0.825,0 -1.5,-0.43588 -1.5,-0.96862 z m 49,3.46862 c 0,-0.825 0.45,-1.5 1,-1.5 0.55,0 1,-0.87344 1,-1.94098 0,-1.06754 0.49804,-2.24879 1.10676,-2.625 0.78025,-0.48222 0.72726,-0.91857 -0.17962,-1.47905 -0.70752,-0.43727 -1.40403,-1.59657 -1.54782,-2.57624 -0.14378,-0.97966 -1.20851,-2.49559 -2.36607,-3.36874 -1.95364,-1.47363 -2.77386,-4.19252 -2.94435,-9.75999 -0.1344,-4.38885 -2.07077,-2.17413 -2.1858,2.5 l -0.11691,4.75 -0.80331,-5 c -0.44182,-2.75 -1.00616,-6.62371 -1.25408,-8.60825 -0.52552,-4.20663 -2.62643,-8.63198 -2.67839,-5.64175 -0.0167,0.9625 -0.46629,1.75 -0.99903,1.75 -0.53273,0 -0.68966,0.72693 -0.34872,1.6154 0.48032,1.2517 0.17677,1.47476 -1.34823,0.99074 -1.78386,-0.56617 -1.97219,-0.1323 -2.01173,4.63461 -0.068,8.20265 -0.57608,12.75925 -1.42258,12.75925 -0.4267,0 -0.79843,0.7875 -0.82607,1.75 -0.0276,0.9625 -0.30753,3.325 -0.62198,5.25 -0.50649,3.10067 -0.25945,3.64142 2.16525,4.73952 1.50534,0.68173 2.99476,0.95762 3.30983,0.61309 0.31507,-0.34453 0.0336,-0.81958 -0.62558,-1.05566 -0.91356,-0.32721 -0.92708,-1.02476 -0.0568,-2.9347 0.91429,-2.00666 0.85425,-2.68726 -0.30158,-3.41855 -1.12021,-0.70876 -0.93966,-0.9165 0.80686,-0.92839 2.13573,-0.0145 2.77285,1.28312 2.32465,4.73469 -0.26486,2.03965 1.73636,1.42081 2.42535,-0.75 0.34913,-1.1 0.99935,-2 1.44494,-2 1.69347,0 3.4565,3.31468 3.24429,6.09961 -0.1764,2.31443 0.18622,2.90039 1.79484,2.90039 1.12523,0 2.01588,-0.66273 2.01588,-1.5 z m 1.12282,-29.06711 c -0.89799,-3.83081 -0.92452,-3.85066 -1.02237,-0.76468 -0.10661,3.36238 1.03498,7.42551 1.60544,5.71411 0.18637,-0.5591 -0.076,-2.78635 -0.58307,-4.94943 z m -48.2225,-1.68289 c 0.0548,-0.9625 -0.35032,-1.75 -0.90032,-1.75 -0.55,0 -0.95514,1.9125 -0.90032,4.25 0.0847,3.61042 0.22017,3.87378 0.90032,1.75 0.44035,-1.375 0.8455,-3.2875 0.90032,-4.25 z m 1.42758,-9.02847 c -0.32127,-0.51983 -0.0632,-1.26706 0.57339,-1.66052 0.68578,-0.42384 1.24742,-3.94429 1.37812,-8.6382 0.12132,-4.35755 0.59613,-8.19788 1.05512,-8.53407 0.459,-0.3362 -0.009,-0.83185 -1.03991,-1.10144 -1.62098,-0.4239 -1.86792,0.086 -1.82616,3.77094 0.027,2.37829 -0.3619,4.00762 -0.88002,3.6874 -0.51296,-0.31703 -0.64261,0.17081 -0.28976,1.09032 0.3512,0.91522 0.31517,1.66404 -0.0801,1.66404 -0.39523,0 -0.71861,2.4 -0.71861,5.33333 0,3.49625 0.41541,5.33334 1.20601,5.33334 0.66331,0 0.94316,-0.42531 0.62189,-0.94514 z m 45.17823,-4.99065 c 0.31234,-2.60198 0.21374,-4.73088 -0.21912,-4.73088 -0.43285,0 -0.84772,-1.0125 -0.92192,-2.25 -0.31006,-5.17129 -0.90195,-8.74615 -1.44842,-8.74801 -1.35256,-0.005 -1.82429,1.40439 -0.85944,2.56697 0.72481,0.87335 0.70245,1.46153 -0.0738,1.94129 -0.76232,0.47113 -0.541,1.34151 0.70144,2.75859 1.7584,2.00558 1.75602,2.04865 -0.0763,1.37783 -1.60511,-0.58763 -1.70011,-0.46191 -0.62756,0.83044 0.83381,1.00468 0.89037,1.52289 0.1662,1.52289 -0.77657,0 -0.80045,0.78183 -0.0816,2.67245 0.55884,1.46985 0.78682,3.26985 0.50664,4 -0.28019,0.73015 -0.0254,1.32755 0.56617,1.32755 0.61153,0 0.78815,0.75506 0.40937,1.75 -0.45511,1.19545 -0.34036,1.42706 0.36213,0.73088 0.5656,-0.56051 1.28392,-3.14801 1.59626,-5.75 z m -13.37933,-2.40166 c 0.52355,-2.10607 1.05936,-4.27922 1.19068,-4.82922 0.13132,-0.55 0.59016,-1.5625 1.01966,-2.25 0.44997,-0.72028 0.3071,-1.25 -0.33714,-1.25 -0.61492,0 -0.83538,-0.45734 -0.48992,-1.01631 0.34546,-0.55897 0.95486,-0.81437 1.35422,-0.56756 0.39936,0.24682 0.60338,-4.58334 0.45338,-10.73369 -0.15,-6.15034 -0.27102,-12.61108 -0.26894,-14.35719 0.005,-3.92939 -1.60765,-5.22603 -1.89242,-1.5219 -0.91794,11.94026 -0.85952,17.76414 0.18488,18.42868 0.869,0.55295 0.86152,0.74117 -0.0299,0.75266 -1.22332,0.0158 -1.83354,3.44697 -2.74016,15.40764 -0.56015,7.38984 0.0204,8.11269 1.55569,1.93689 z M 145.902,582.46932 c -0.29661,-3.4375 -0.55663,-7.51406 -0.5778,-9.05902 -0.0212,-1.54496 -0.37599,-2.60057 -0.78849,-2.34581 -0.4125,0.25476 -0.75,-1.25074 -0.75,-3.34555 0,-2.09482 0.3345,-3.60199 0.74334,-3.34928 0.40884,0.2527 0.64819,-0.69024 0.53189,-2.09544 -0.11629,-1.40519 -0.6758,-2.56179 -1.24334,-2.57021 -0.70083,-0.0104 -0.69776,-0.25103 0.01,-0.75 0.68863,-0.4858 0.7469,-2.51691 0.17201,-5.9955 -0.89013,-5.38602 -2.61476,-6.33606 -2.64425,-1.45663 -0.009,1.49459 -0.0868,7.15471 -0.17287,12.57804 -0.11086,6.98726 0.21018,10.08719 1.10173,10.6382 0.69199,0.42768 0.99018,1.21122 0.66263,1.7412 -0.59366,0.96056 2.22333,12.26 3.05646,12.26 0.24115,0 0.19576,-2.8125 -0.10086,-6.25 z m 39.75019,-18.53397 c 0.46729,-0.75609 0.16188,-1.21603 -0.80746,-1.21603 -1.20936,0 -1.53323,1.06535 -1.44402,4.75 0.11135,4.59946 0.13694,4.638 0.80747,1.21603 0.38085,-1.94368 1.03066,-4.08118 1.44401,-4.75 z m -10.23892,5.03397 c 1.24387,-1.58606 1.2085,-1.62143 -0.37756,-0.37756 -0.9625,0.75485 -1.75,1.54235 -1.75,1.75 0,0.82304 0.82119,0.29331 2.12756,-1.37244 z m -50.53916,-5.99494 c -1.07549,-1.07549 -1.64645,0.43075 -0.89148,2.35181 0.7082,1.80207 0.76169,1.80519 1.11193,0.0649 0.20237,-1.00555 0.10317,-2.09305 -0.22045,-2.41667 z m 111.4116,-2.11857 c 0,-2.12493 -0.45456,-6.26037 -1.01012,-9.18988 -0.55557,-2.9295 -0.63844,-5.69805 -0.18415,-6.15234 0.45429,-0.45429 1.34049,3.01943 1.96934,7.71937 1.22437,9.15086 1.92065,11.19064 3.3366,9.77469 0.51457,-0.51457 0.22777,-5.62006 -0.68423,-12.17999 -2.25619,-16.22872 -1.51314,-17.17342 6.72141,-8.54546 2.92008,3.05959 5.4737,5.06946 5.67473,4.46638 0.20103,-0.60308 -0.19493,-1.77178 -0.8799,-2.59712 -0.68496,-0.82533 -2.4696,-3.8477 -3.96586,-6.71637 -2.76358,-5.29845 -11.21718,-12.3039 -13.29654,-11.01879 -0.53932,0.33332 0.66176,1.44861 2.66907,2.47842 2.00731,1.02981 3.64965,2.09577 3.64965,2.36881 0,0.27304 -1.83338,-0.43888 -4.07417,-1.58205 -3.08224,-1.57244 -3.8177,-2.38752 -3.02077,-3.34776 0.7747,-0.93346 0.0927,-2.64168 -2.57785,-6.45648 -1.99719,-2.85297 -3.86838,-4.95008 -4.1582,-4.66027 -0.28982,0.28982 0.47419,1.88105 1.6978,3.53607 2.12197,2.87012 2.13967,4.96628 0.042,4.96628 -0.53527,0 -1.36467,-1.0125 -1.84313,-2.25 l -0.86993,-2.25 -1.04182,2.5 c -0.8692,2.08579 -0.97387,1.67158 -0.63172,-2.5 0.28409,-3.46369 0.18621,-4.07821 -0.31854,-2 -0.62312,2.56555 -1.13338,1.33462 -3.52351,-8.5 -1.53718,-6.325 -3.02438,-12.2875 -3.30488,-13.25 -0.2805,-0.9625 -0.11186,-1.75 0.37476,-1.75 0.48662,0 1.6774,2.51454 2.64619,5.58787 0.96878,3.07333 1.93634,5.41294 2.15014,5.19915 0.21379,-0.2138 -0.1323,-2.08636 -0.7691,-4.16124 -0.95277,-3.10442 -0.90274,-3.93663 0.28248,-4.69915 1.01104,-0.65046 1.10793,-1.15016 0.32508,-1.67663 -0.61337,-0.4125 -1.45456,-1.875 -1.86932,-3.25 -0.41475,-1.375 -2.44188,-4.99667 -4.50472,-8.04816 -4.16575,-6.16224 -7.50167,-12.14188 -7.27195,-13.03501 0.0825,-0.32074 0.43578,-6.24598 0.78509,-13.16721 0.42902,-8.50058 0.2734,-13.25989 -0.47957,-14.66683 -2.10801,-3.93884 -2.83357,-2.06587 -2.38907,6.16721 0.35638,6.60102 0.1955,8.00015 -0.80492,7 -1.8395,-1.83898 -8.85037,-1.64094 -8.85037,0.25 0,0.825 -0.5625,1.50689 -1.25,1.51531 -0.9593,0.0118 -0.97023,0.19314 -0.047,0.77997 1.96552,1.24934 2.73707,8.59461 1.04985,9.99487 -1.08602,0.90132 -1.26242,2.35218 -0.72029,5.92437 0.5569,3.66959 1.4988,5.4098 4.19911,7.75811 4.23569,3.68354 6.04818,7.09258 8.14487,15.31937 0.88198,3.4606 2.30663,7.5106 3.1659,9 1.54683,2.6812 1.55564,2.66346 0.8894,-1.792 -1.128,-7.54356 -1.35119,-20.51452 -0.37941,-22.0506 0.67571,-1.06808 0.92276,-0.66013 0.93905,1.5506 0.0122,1.65 1.8572,10.2 4.10007,19 5.09168,19.97733 5.47929,21.97083 4.10707,21.12275 -0.74736,-0.46189 -0.78787,0.32264 -0.13435,2.60135 0.51465,1.79448 0.93573,3.37817 0.93573,3.5193 0,0.14113 0.675,0.2566 1.5,0.2566 0.825,0 1.49311,0.7875 1.48469,1.75 -0.0124,1.41493 -0.18634,1.47984 -0.90854,0.33898 -0.66024,-1.04298 -1.17646,-0.39089 -1.97911,2.5 -1.55416,5.5976 -1.36807,8.97318 0.95729,17.36452 2.32086,8.3751 2.74075,9.29118 3.92356,8.56017 0.46183,-0.28543 0.21107,-2.88027 -0.55723,-5.76632 -0.76831,-2.88604 -1.40226,-6.12086 -1.40879,-7.18848 -0.0115,-1.88276 0.0291,-1.88513 1.34978,-0.079 0.74891,1.02419 1.15987,2.7977 0.91326,3.94113 -0.27639,1.28146 -0.12742,1.63699 0.38834,0.92682 0.4945,-0.68089 0.86683,0.86257 0.91029,3.77354 0.0698,4.67612 1.6205,8.01789 3.05493,6.58346 0.364,-0.36399 0.1103,-3.93399 -0.56376,-7.93333 -0.90789,-5.38667 -0.9382,-7.91956 -0.11693,-9.77153 l 1.10864,-2.5 -0.50591,2.5 c -0.77083,3.80914 2.58342,20 4.14338,20 0.84944,0 1.30611,-1.35085 1.30611,-3.86351 z m 7.45888,-24.20302 c -0.36253,-0.58659 -0.44468,-1.281 -0.18255,-1.54313 0.26212,-0.26213 0.74306,0.21781 1.06875,1.06653 0.67618,1.76211 0.0999,2.07206 -0.8862,0.4766 z m -12.95888,-2.93347 c -0.85325,-1.65 -1.32636,-3 -1.05136,-3 0.275,0 1.19811,1.35 2.05136,3 0.85325,1.65 1.32636,3 1.05136,3 -0.275,0 -1.19811,-1.35 -2.05136,-3 z m -31.03985,-55.40548 c -1.79788,-1.31464 -1.7456,-1.37174 0.80887,-0.88343 1.50204,0.28714 2.73098,0.9196 2.73098,1.40549 0,1.2828 -1.34229,1.08483 -3.53985,-0.52206 z m -40.74257,75.66923 c -0.22985,-1.52006 -0.42406,-0.51375 -0.43157,2.23625 -0.008,2.75 0.18056,3.99369 0.41792,2.76375 0.23736,-1.22994 0.24351,-3.47994 0.0136,-5 z m -36.56049,-7.26375 c 0.5976,-1.375 1.79595,-3.84546 2.66298,-5.48991 0.86704,-1.64445 1.49411,-3.98464 1.39349,-5.20044 -0.10063,-1.21579 0.25516,-2.4813 0.79063,-2.81224 0.59829,-0.36976 0.44551,-1.44892 -0.39634,-2.79956 -1.76343,-2.8292 -2.89781,-7.69785 -1.79357,-7.69785 0.46881,0 0.85239,-0.58606 0.85239,-1.30235 0,-0.86009 -0.95868,-1.16164 -2.82313,-0.88799 -1.55272,0.22789 -2.62977,0.72721 -2.39344,1.1096 0.49226,0.7965 -0.83795,9.83117 -2.23946,15.21023 -0.575,2.20688 -0.59669,5.9305 -0.0553,9.5 1.15524,7.61722 2.11698,9.81379 2.57033,5.87051 0.18969,-1.65 0.83385,-4.125 1.43145,-5.5 z m 68.44269,-0.86286 c 0.17587,-3.04704 -0.17667,-7.36192 -0.78342,-9.58861 -0.60675,-2.22669 -1.08361,-5.73603 -1.05968,-7.79853 0.0239,-2.0625 -0.39186,-3.75 -0.92397,-3.75 -0.5332,0 -0.66291,-0.95963 -0.28897,-2.13782 0.5949,-1.87435 0.36102,-2.07713 -1.89772,-1.64534 -1.41694,0.27086 -2.73436,0.0181 -2.92761,-0.56162 -0.19325,-0.57975 -0.61732,-0.36104 -0.94237,0.48603 -0.32505,0.84706 -0.14018,2.17431 0.41081,2.94943 0.78478,1.104 0.87554,1.01894 0.41894,-0.39262 -0.34184,-1.05676 -0.17408,-1.54928 0.40566,-1.19098 1.17064,0.72349 1.33957,4.49292 0.20135,4.49292 -0.43295,0 -0.86296,1.00584 -0.95556,2.23519 -0.0926,1.22935 -0.65715,2.39811 -1.25455,2.59725 -0.76466,0.25488 -0.7447,0.77349 0.0674,1.75207 0.63449,0.76451 0.89739,2.05773 0.58423,2.87382 -0.31317,0.81608 0.0227,2.07584 0.74627,2.79945 0.72361,0.72361 1.91989,2.98664 2.6584,5.02894 0.7385,2.0423 1.61075,3.71328 1.93831,3.71328 0.32757,0 0.54755,1.2375 0.48884,2.75 -0.29978,7.72298 2.65419,3.34661 3.11359,-4.61286 z m -39.91667,1.67536 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19293,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36782,-1.1948 0.0789,-1.91667 z m 7.00988,-2.54347 c -0.25354,-0.97297 -0.47766,-0.41903 -0.49804,1.23097 -0.0204,1.65 0.18706,2.44606 0.46099,1.76903 0.27392,-0.67703 0.29059,-2.02703 0.037,-3 z m -15.52991,-2.50595 c -0.97649,-0.97649 -0.98448,-0.73493 -0.12359,3.73692 0.10588,0.55 0.40751,0.1647 0.67029,-0.85622 0.26278,-1.02092 0.0168,-2.31724 -0.5467,-2.8807 z m -17.74718,-24.40452 c 0.49781,-1.29726 0.34369,-1.40393 -0.73502,-0.50868 -0.75069,0.62302 -1.61593,0.88173 -1.92275,0.57491 -0.30682,-0.30682 -0.85448,-0.0779 -1.21701,0.50868 -0.38086,0.61624 0.16499,1.06653 1.29287,1.06653 1.07362,0 2.23548,-0.73865 2.58191,-1.64144 z m 63.36032,0.47011 c -0.21474,-0.64423 -1.33301,-1.24076 -2.48504,-1.32564 -1.36584,-0.10062 -1.91761,0.30691 -1.5859,1.17133 0.62674,1.63324 4.61431,1.7844 4.07094,0.15431 z M 85.28571,502.27834 c 0,-0.24254 -0.45,-0.7191 -1,-1.05902 -0.55,-0.33992 -1,-0.14148 -1,0.44098 0,0.58246 0.45,1.05902 1,1.05902 0.55,0 1,-0.19844 1,-0.44098 z m 7.86256,-23.01048 c 2.30856,-3.42064 2.65581,-4.51938 1.5611,-4.93946 -1.37864,-0.52903 -3.27356,2.23574 -5.44281,7.94128 -1.3643,3.5884 0.30553,2.29708 3.88171,-3.00182 z m 126.10225,2.32877 c -1.35558,-4.72665 -3.75003,-7.89696 -5.4668,-7.23817 -1.82295,0.69953 -1.83727,0.86856 -0.2151,2.53943 0.7056,0.72679 2.31125,2.78393 3.5681,4.57143 2.85002,4.05332 3.24662,4.0772 2.1138,0.12731 z m -86.02063,-19.01568 c 2.32447,-3.14402 2.32612,-3.16558 0.19983,-2.60954 -1.17921,0.30837 -2.14401,0.1528 -2.14401,-0.34571 0,-0.49851 1.35,-0.90638 3,-0.90638 3.01371,0 3.96057,-1.2883 1.8882,-2.5691 -0.6115,-0.37792 -1.5046,-0.067 -1.98469,0.69098 -0.48009,0.75797 -0.87978,0.89406 -0.8882,0.30243 -0.008,-0.59162 1.09582,-2.11954 2.45387,-3.39536 1.35805,-1.27582 2.23468,-2.6991 1.94806,-3.16286 -0.28661,-0.46375 0.28976,-0.5866 1.28082,-0.273 1.57007,0.49681 1.54607,0.36221 -0.18652,-1.04607 -1.1734,-0.95375 -2.12983,-1.19216 -2.33334,-0.58163 -0.18968,0.56904 -1.09487,1.0246 -2.01153,1.01237 -1.29878,-0.0173 -1.13706,-0.42941 0.73261,-1.8669 1.77277,-1.36298 2.03389,-1.96912 1,-2.32125 -0.7696,-0.26211 -2.07428,0.28862 -2.89928,1.22386 -0.825,0.93524 -2.48948,2.01283 -3.69885,2.39464 -1.20936,0.38181 -2.47719,1.57118 -2.81739,2.64304 -0.63089,1.98779 -3.48376,2.7648 -3.48376,0.94885 0,-0.55 -0.94815,-1 -2.10699,-1 -1.59848,0 -1.94322,0.42235 -1.42844,1.75 0.3732,0.9625 0.87173,3.23702 1.10784,5.05449 0.23611,1.81748 1.63324,4.81337 3.10474,6.65754 2.45532,3.07715 2.85021,3.23854 4.79932,1.96143 1.16813,-0.76539 3.17859,-2.81821 4.46771,-4.56183 z m -0.19418,-10.52391 c 0.6875,-0.27741 1.8125,-0.27741 2.5,0 0.6875,0.27741 0.125,0.50439 -1.25,0.50439 -1.375,0 -1.9375,-0.22698 -1.25,-0.50439 z m -3.75,-1.33772 c 0,-0.55 0.70156,-1 1.55902,-1 0.85746,0 1.2809,0.45 0.94098,1 -0.33992,0.55 -1.04148,1 -1.55902,1 -0.51754,0 -0.94098,-0.45 -0.94098,-1 z m 55.11452,15.75 c 0.65169,-1.2375 1.57806,-2.50807 2.05861,-2.82349 0.48055,-0.31543 1.08645,-1.66543 1.34646,-3 0.26,-1.33458 0.73385,-3.80537 1.05299,-5.49064 0.70477,-3.7216 -1.94813,-6.93178 -2.85682,-3.45695 -0.69605,2.66171 -3.71576,2.65024 -3.71576,-0.0141 0,-1.75987 -0.28508,-1.88262 -2.10736,-0.90736 -1.57203,0.84132 -2.39762,0.83521 -3.25,-0.0241 -0.86022,-0.86718 -0.64831,-0.99349 0.85736,-0.51101 1.73883,0.55719 1.80412,0.46485 0.5,-0.7071 -2.29604,-2.06334 -5.70237,-6.43569 -3.99717,-5.13074 1.63978,1.25488 4.99717,-0.40903 4.99717,-2.47657 0,-1.21019 4.60224,-0.98032 5.7516,0.28728 0.41162,0.45396 0.2984,0.58108 -0.2516,0.28248 -1.4919,-0.80997 -5.7246,1.04983 -5.01231,2.20235 0.37035,0.59924 -0.10272,0.73852 -1.18575,0.34913 -0.99107,-0.35634 -1.49686,-0.3086 -1.12398,0.10608 0.37288,0.41467 2.04249,0.84842 3.71024,0.96388 2.39252,0.16564 2.80385,-0.0653 1.9496,-1.09462 -1.19374,-1.43837 -0.80281,-1.6121 1.57467,-0.69978 0.86682,0.33264 1.26725,1.12014 0.88983,1.75 -0.37742,0.62987 0.12451,0.48667 1.11539,-0.31823 1.07785,-0.87553 1.35583,-1.61204 0.69196,-1.83333 -0.61031,-0.2034 -1.10965,-1.07709 -1.10965,-1.9415 0,-1.33223 0.34277,-1.28254 2.25,0.32618 l 2.25,1.89783 -2.25915,-2.56703 c -1.24253,-1.41187 -2.06844,-2.75865 -1.83536,-2.99285 0.23309,-0.23419 -1.37266,-0.55175 -3.56832,-0.70567 -2.19772,-0.15406 -3.74074,0.12687 -3.43288,0.625 0.30758,0.49767 -0.54935,0.90486 -1.90429,0.90486 -1.35494,0 -2.2705,-0.31233 -2.03458,-0.69406 0.81068,-1.3117 -5.4015,0.16211 -6.55825,1.55592 -0.63644,0.76686 -1.15717,2.50971 -1.15717,3.87298 0,1.36328 -0.39375,2.23533 -0.875,1.93791 -0.48125,-0.29743 -0.875,0.11864 -0.875,0.92461 0,1.00372 0.67229,1.28959 2.13388,0.90738 1.52959,-0.4 2.00278,-0.16473 1.67095,0.83077 -0.25461,0.76383 0.80806,2.74457 2.36149,4.40164 1.55343,1.65707 2.81962,3.46285 2.81374,4.01285 -0.006,0.55 -0.40348,0.37985 -0.88357,-0.37812 -0.9115,-1.43907 -3.09649,-0.73615 -3.09649,0.99615 0,0.55 0.45,0.72189 1,0.38197 0.55,-0.33992 1,-0.14148 1,0.44098 0,0.58246 1.0125,1.1203 2.25,1.1952 2.23969,0.13556 2.24003,0.13813 0.0736,0.55991 -2.06099,0.40126 -1.98143,0.6309 1.5,4.32966 4.24932,4.51458 5.6474,4.84521 7.29095,1.72425 z m 1.69798,-11.43311 c 0.72187,-0.28887 1.58437,-0.25335 1.91667,0.0789 0.33229,0.3323 -0.25834,0.56864 -1.3125,0.52522 -1.16495,-0.048 -1.4019,-0.28494 -0.60417,-0.60416 z m -12.8125,-2.28926 c 0,-1.35555 1.7771,-2.19731 2.42516,-1.14873 0.30984,0.50134 -0.10906,1.16956 -0.9309,1.48493 -0.82184,0.31537 -1.49426,0.16408 -1.49426,-0.3362 z m -2.19291,-4.77763 c -2.75839,-3.21195 -2.95107,-4.13655 -0.8287,-3.97667 1.11188,0.0837 2.02161,0.79441 2.02161,1.57923 0,0.78483 0.7875,2.02475 1.75,2.75539 1.52039,1.15415 1.54073,1.33262 0.15499,1.36025 -0.87726,0.0175 -2.27131,-0.7557 -3.0979,-1.7182 z m -1.36214,-5.33907 c -0.30964,-0.50101 -0.33874,-1.27376 -0.0647,-1.71722 0.67973,-1.09983 7.61972,-0.21207 7.61972,0.97471 0,0.52229 -0.45,0.6715 -1,0.33158 -0.55,-0.33992 -1.5625,-0.26663 -2.25,0.16286 -1.8702,1.16835 -3.67211,1.27218 -4.30505,0.24807 z m -6.44495,9.08907 c 0,-0.55 -0.19844,-1 -0.44098,-1 -0.24254,0 -0.7191,0.45 -1.05902,1 -0.33992,0.55 -0.14148,1 0.44098,1 0.58246,0 1.05902,-0.45 1.05902,-1 z m -19.26224,-3.69168 c -0.96924,-0.25283 -1.50518,-0.87563 -1.19099,-1.384 0.3142,-0.50838 0.0682,-0.92432 -0.54677,-0.92432 -0.61492,0 -0.80384,-0.50838 -0.41982,-1.12973 0.42762,-0.69191 0.15983,-0.93412 -0.69098,-0.625 -0.76406,0.2776 -1.2767,1.01098 -1.1392,1.62973 0.1375,0.61875 -0.3125,1.16986 -1,1.22468 -1.62654,0.12971 3.28584,1.70601 5.25,1.68464 0.97221,-0.0106 0.87994,-0.17807 -0.26224,-0.476 z m -22.73776,-0.7493 c 0,-0.24254 -0.45,-0.7191 -1,-1.05902 -0.55,-0.33992 -1,-0.14148 -1,0.44098 0,0.58246 0.45,1.05902 1,1.05902 0.55,0 1,-0.19844 1,-0.44098 z m 6.56922,-0.44702 c -0.46474,-0.75197 2.43503,-1.69136 7.08544,-2.29536 1.8033,-0.23422 0.34094,-2.81664 -1.59498,-2.81664 -0.94949,0 -1.72635,-0.675 -1.72635,-1.5 0,-1.71224 1.32293,-2.03122 1.85122,-0.44636 0.2335,0.70052 1.18309,0.7402 2.83333,0.11841 2.18046,-0.82157 1.81369,-1.01295 -3.01788,-1.57472 -7.90966,-0.91966 -11.48829,-0.2928 -11.49473,2.01352 -0.003,1.03903 0.44473,2.21976 0.99473,2.62384 0.55,0.40408 -0.125,0.75959 -1.5,0.79003 l -2.5,0.0554 2.77371,1.50432 c 1.52555,0.82738 3.21305,1.2328 3.75,0.90094 0.53696,-0.33189 0.97629,-0.12686 0.97629,0.4556 0,0.58246 0.47656,1.05902 1.05902,1.05902 0.58246,0 0.81205,-0.3996 0.5102,-0.888 z m -4.06922,-2.112 c 0.33992,-0.55 1.37898,-0.99311 2.30902,-0.98469 1.45727,0.0132 1.48367,0.14929 0.19098,0.98469 -1.95837,1.2656 -3.28218,1.2656 -2.5,0 z m -0.0226,-2.85599 c -0.90118,-0.90118 0.66305,-2.02737 2.06741,-1.48846 0.81439,0.31251 2.05355,0.0928 2.75369,-0.48828 0.9564,-0.79374 1.27298,-0.57298 1.27298,0.88768 0,1.51926 -0.61973,1.89694 -2.83555,1.7281 -1.55956,-0.11883 -3.02589,-0.4064 -3.25853,-0.63904 z m -14.03405,1.63348 c 1.43175,-2.04412 1.5567,-2.06819 1.5567,-0.3 0,3.51995 1.85578,0.16991 2.18377,-3.94212 0.24027,-3.01228 -0.0714,-4.04448 -1.29749,-4.29707 -1.55818,-0.32102 -3.71467,3.11475 -5.34244,8.5117 -0.87714,2.90822 0.87011,2.92479 2.89946,0.0275 z m 38.12409,-6.99815 c 0.40174,-5.6052 0.3066,-5.99543 -1.03059,-4.22729 -1.81718,2.4028 -1.95767,3.80372 -0.2868,2.8599 0.6875,-0.38835 0.2375,0.27763 -1,1.47994 -2.50959,2.43823 -2.78656,4.23701 -1.12924,7.33375 1.01519,1.89691 1.20946,1.93567 2.0624,0.41156 0.5179,-0.92544 1.1408,-4.46148 1.38423,-7.85786 z m 17.45753,7.17409 c 0.85035,-1.58888 0.69049,-2.92494 -0.71481,-5.9742 -3.00885,-6.52869 -4.6331,-5.06821 -3.08289,2.77204 1.11511,5.6397 2.06467,6.44036 3.7977,3.20216 z m 32.68816,-0.95343 c 0.31154,0 1.14175,0.78679 1.84492,1.74843 2.20452,3.01486 2.80675,0.49518 1.00761,-4.21579 -1.99152,-5.21472 -3.07207,-6.17939 -4.86852,-4.3464 -0.97154,0.99131 -1.05008,2.41823 -0.31997,5.81376 0.53218,2.475 1.14803,3.7125 1.36856,2.75 0.22053,-0.9625 0.65586,-1.75 0.9674,-1.75 z m -57.43113,-1.70762 c -0.40228,-1.04833 -0.82104,-0.95235 -1.86841,0.42823 -1.93484,2.55038 -1.71878,3.48696 0.48668,2.10963 1.04512,-0.65269 1.6669,-1.79473 1.38173,-2.53786 z m -3.99246,-9.29338 c -0.28751,-1.09945 -1.25777,-1.96347 -2.15612,-1.92005 -1.04645,0.0506 -1.18196,0.26093 -0.37714,0.58541 0.69093,0.27855 1.00187,0.91803 0.69098,1.42105 -0.74121,1.19931 0.45114,3.09545 1.52801,2.42991 0.46036,-0.28452 0.60178,-1.41686 0.31427,-2.51632 z m 38.20767,1.00995 c 0.81904,-2.58057 -0.40467,-4.76299 -1.60685,-2.86571 -1.14896,1.8133 -1.12245,4.85676 0.0423,4.85676 0.51294,0 1.21699,-0.89597 1.56455,-1.99105 z m -46.00156,-0.0161 c -0.98032,-1.5862 -6.61024,-4.21739 -7.33853,-3.42972 -0.36139,0.39085 -0.15839,0.89026 0.45112,1.1098 0.6095,0.21954 1.9595,1.04362 3,1.83129 2.17923,1.64972 4.80932,1.98031 3.88741,0.48863 z m 56.28189,-0.54959 c 2.1598,-1.51278 2.98874,-3.44837 1.47251,-3.43833 -0.4125,0.003 -2.1,1.11155 -3.75,2.46403 -3.36887,2.76144 -1.4475,3.58338 2.27749,0.9743 z m -22.77754,0.11576 c 0,-0.24254 -0.45,-0.7191 -1,-1.05902 -0.55,-0.33992 -1,-0.14148 -1,0.44098 0,0.58246 0.45,1.05902 1,1.05902 0.55,0 1,-0.19844 1,-0.44098 z M 139.7,425.73361 c -0.64762,-0.64762 -0.98572,-0.30953 -0.98572,0.98571 0,1.29524 0.3381,1.63333 0.98572,0.98571 0.64762,-0.64761 0.64762,-1.3238 0,-1.97142 z m 31.58571,1.81904 c 0,-0.45833 -1.2375,-0.82644 -2.75,-0.81802 -1.81339,0.0101 -2.31087,0.29392 -1.46066,0.83334 1.67356,1.06178 4.21066,1.05255 4.21066,-0.0153 z m -41,-10.33333 c 1.01957,-1.22851 0.95123,-1.5 -0.37756,-1.5 -0.89234,0 -1.62244,0.675 -1.62244,1.5 0,0.825 0.1699,1.5 0.37756,1.5 0.20765,0 0.93775,-0.675 1.62244,-1.5 z m 49.60417,-1.22917 c -1.01652,-1.01651 -1.85525,0.51389 -1.02122,1.86338 0.63003,1.01942 0.86558,1.02021 1.2043,0.004 0.2316,-0.69479 0.14921,-1.53513 -0.18308,-1.86742 z M 71.78571,564.71932 c -0.33992,-0.55 -1.46018,-1 -2.48947,-1 -2.41144,0 -2.7038,-2.24132 -1.74856,-13.4047 0.41908,-4.89758 0.52332,-9.14334 0.23164,-9.43502 -0.29168,-0.29168 -2.22854,1.12793 -4.30413,3.1547 -3.49571,3.41346 -6.91717,4.62399 -8.525,3.01617 -0.36786,-0.36787 -0.0376,-1.38037 0.7339,-2.25 0.7715,-0.86963 2.63082,-3.83115 4.1318,-6.58115 3.23166,-5.92083 5.22804,-8.34094 7.95863,-9.64783 1.10615,-0.52942 0.75556,0.013 -0.7791,1.20538 -1.53466,1.19238 -3.94846,4.47972 -5.364,7.30521 -1.41554,2.82548 -3.26965,5.9275 -4.12025,6.89337 -0.85059,0.96587 -1.22247,2.0802 -0.82639,2.47628 0.39609,0.39608 3.2162,-1.85668 6.26692,-5.00613 3.05072,-3.14946 5.9159,-5.72628 6.36706,-5.72628 1.44155,0 1.52233,3.27445 0.28347,11.49123 -1.49763,9.9331 -1.61828,15.50877 -0.33557,15.50877 1.04639,0 1.24862,-0.74113 3.08205,-11.29495 1.6746,-9.6396 2.40036,-7.51401 0.94208,2.75916 -0.96082,6.76872 -0.95845,8.88706 0.0113,10.0555 0.78197,0.94222 0.84198,1.48029 0.1651,1.48029 -0.58488,0 -1.34154,-0.45 -1.68146,-1 z m 3.86032,-1.75629 c 0.27011,-0.95904 1.01493,-5.00461 1.65515,-8.99016 0.64022,-3.98555 1.50464,-7.45696 1.92094,-7.71425 0.4163,-0.25728 0.12883,3.16905 -0.6388,7.61408 -1.39525,8.07925 -1.29642,9.58195 0.55492,8.43776 1.37674,-0.85087 3.25026,-10.1597 2.45951,-12.22037 -0.44102,-1.14928 -0.27344,-1.46495 0.51802,-0.9758 0.75837,0.4687 1.19771,-0.0892 1.24889,-1.58595 0.046,-1.34634 0.30814,-1.73114 0.62868,-0.92297 0.30235,0.76233 0.002,3.83474 -0.66803,6.82759 -1.15463,5.15943 -0.89344,7.47353 0.66737,5.91273 0.38883,-0.38884 1.71551,-4.62634 2.94818,-9.41667 1.23266,-4.79034 2.26453,-7.63322 2.29303,-6.31751 0.0935,4.31572 -3.96904,16.18147 -5.75654,16.81359 -0.9304,0.32902 -2.36664,1.13642 -3.19164,1.79422 -0.825,0.6578 -2.31693,1.48657 -3.31539,1.84171 -1.39131,0.49487 -1.70067,0.23837 -1.32429,-1.098 z M 63.18511,538.21932 c 1.68572,-3.26177 3.07046,-5.07007 3.06305,-4 -0.004,0.55 -0.92712,2.125 -2.0518,3.5 -1.35822,1.66051 -1.69779,1.82841 -1.01125,0.5 z m 13.1006,-3.5 c 0.5887,-1.1 1.29537,-2 1.57037,-2 0.275,0 0.0183,0.9 -0.57037,2 -0.5887,1.1 -1.29537,2 -1.57037,2 -0.275,0 -0.0183,-0.9 0.57037,-2 z m -7,-4.39301 c 0,-0.21616 0.69837,-0.661 1.55194,-0.98855 0.88992,-0.34149 1.29132,-0.17385 0.94098,0.39301 -0.58726,0.95021 -2.49292,1.40545 -2.49292,0.59554 z m 37.5,-52.60699 c 2.74908,-1.18132 4.32797,-1.18132 2.5,0 -0.825,0.53316 -2.175,0.94464 -3,0.9144 -0.98906,-0.0362 -0.81874,-0.34772 0.5,-0.9144 z m 55.95888,-58.06653 c -1.02606,-1.66021 -0.10511,-1.89042 1.33055,-0.33261 0.70918,0.76953 0.84824,1.39914 0.30901,1.39914 -0.53922,0 -1.27702,-0.47994 -1.63956,-1.06653 z m -5.00129,-8.23895 c 0.3698,-3.97896 5.79646,-10.04047 7.48087,-8.35606 1.56094,1.56094 1.292,2.68721 -0.47935,2.00747 -0.8475,-0.32521 -1.46921,-0.19859 -1.38158,0.28139 0.37401,2.04875 -0.15005,3.4459 -1.07753,2.87268 -0.55,-0.33992 -1,-0.14148 -1,0.44098 0,0.58246 -0.5625,0.94652 -1.25,0.80902 -0.80941,-0.16188 -1.14854,0.71929 -0.96215,2.5 0.15832,1.5125 -0.14535,2.75 -0.67481,2.75 -0.52947,0 -0.82442,-1.48746 -0.65545,-3.30548 z m 42.04241,-2.69452 c -0.33992,-0.55 -0.14148,-1 0.44098,-1 0.58246,0 1.05902,0.45 1.05902,1 0,0.55 -0.19844,1 -0.44098,1 -0.24254,0 -0.7191,-0.45 -1.05902,-1 z m -91.98992,-1.01631 c 0.34546,-0.55897 1.04702,-0.75742 1.55902,-0.44098 1.38704,0.85724 1.12841,1.45729 -0.62812,1.45729 -0.85746,0 -1.27636,-0.45734 -0.9309,-1.01631 z m 25.96778,0.0521 c 0.60404,-0.97737 -6.53383,-6.03583 -8.51701,-6.03583 -0.59338,0 -0.80077,-0.45 -0.46085,-1 0.77693,-1.2571 -1.07927,-1.29554 -3.36962,-0.0698 -1.05451,0.56435 -2.30692,0.57038 -3.18426,0.0153 -1.24102,-0.78515 -1.22938,-0.91708 0.0821,-0.93022 2.58803,-0.0259 16.3129,-7.00347 19.22179,-9.7721 3.36473,-3.20249 3.60062,-7.77182 0.72803,-14.10242 -2.01009,-4.42986 -2.69631,-7.97409 -0.97284,-5.02465 0.61877,1.05894 1.81099,1.45048 3.45793,1.13565 1.38246,-0.26427 2.26725,-0.87904 1.9662,-1.36615 -0.92603,-1.49835 1.2486,-0.97864 2.57068,0.61436 0.68469,0.825 2.57011,1.5 4.18983,1.5 2.33696,0 2.83714,0.36129 2.42278,1.75 -0.2872,0.9625 -1.0537,4 -1.70335,6.75 -1.10676,4.68499 -3.34026,8.95873 -2.87435,5.5 0.84976,-6.30833 -1.2293,-8.9444 -2.49814,-3.16742 -0.9619,4.37953 -9.72938,12.51741 -13.76875,12.78002 -1.7899,0.11637 -4.76983,2.15473 -4.76564,3.25985 0.001,0.34515 2.4763,1.92022 5.5,3.50014 5.55669,2.90346 7.22115,5.62741 3.4386,5.62741 -1.13246,0 -1.79086,-0.43388 -1.46312,-0.96418 z m 35.60007,-42.86456 c 1.33214,-1.68333 2.76338,-3.08551 3.18054,-3.11594 1.25214,-0.0913 -1.40346,3.55413 -3.57862,4.91254 -1.75349,1.09507 -1.70029,0.85497 0.39808,-1.7966 z m -32.54188,-1.90341 c -1.39483,-2.05267 -2.51812,-4.41517 -2.4962,-5.25 0.0219,-0.83482 0.93035,0.28214 2.01876,2.48214 1.0884,2.2 2.73148,4.5625 3.65128,5.25 0.9198,0.6875 1.15258,1.25 0.51729,1.25 -0.63529,0 -2.2963,-1.67946 -3.69113,-3.73214 z m -2.93605,1.13218 c -0.35589,-0.92744 -0.42208,-1.91126 -0.14708,-2.18626 0.275,-0.275 0.79119,0.25882 1.14708,1.18626 0.35589,0.92744 0.42208,1.91126 0.14708,2.18626 -0.275,0.275 -0.79119,-0.25882 -1.14708,-1.18626 z m 39.4,0.71803 c 0,-0.55 0.45,-1.27811 1,-1.61803 0.55,-0.33992 1,-0.16803 1,0.38197 0,0.55 -0.45,1.27811 -1,1.61803 -0.55,0.33992 -1,0.16803 -1,-0.38197 z m 0.15789,-6.11803 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m -39.08761,-7.08333 c 0.0387,-1.87917 0.47992,-4.31667 0.98059,-5.41667 0.61277,-1.34632 0.71135,-0.3658 0.30158,3 -0.72482,5.95371 -1.38034,7.18926 -1.28217,2.41667 z m 38.26683,-2.94818 c -0.58259,-2.18267 -0.69216,-3.96849 -0.24349,-3.96849 0.87134,0 2.4333,6.80641 1.7246,7.51511 -0.23202,0.23203 -0.89852,-1.36396 -1.48111,-3.54662 z"
- id="path3038"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#777777"
- d="m 134.97321,702.58668 c -7.66397,-2.73687 -6.81979,-3.32128 1.19452,-0.82695 6.69764,2.08454 10.68776,2.60714 8.28732,1.08541 -0.94131,-0.59673 -0.42926,-1.02384 1.75,-1.45969 3.69201,-0.7384 3.85194,-2.13421 1.08016,-9.42686 -1.60787,-4.23033 -1.9995,-7.68245 -1.9995,-17.625 0,-15.95139 -0.51858,-18.61427 -3.625,-18.61427 -1.30625,0 -2.375,0.43588 -2.375,0.96862 0,0.53273 -0.675,0.70959 -1.5,0.39301 -1.93773,-0.74358 -1.89361,0.14386 0.44135,8.87721 2.72344,10.18643 4.60221,30.76365 2.80865,30.7619 -0.4125,-4.1e-4 -0.76431,-0.78824 -0.7818,-1.75074 -0.0175,-0.9625 -0.73904,-2.65 -1.60343,-3.75 -1.52601,-1.94195 -1.54993,-1.92767 -0.82395,0.49216 0.66715,2.22375 0.57177,2.34617 -0.88556,1.13669 -0.89828,-0.7455 -1.38664,-1.75448 -1.08523,-2.24216 0.3014,-0.48768 0.1494,-0.88669 -0.33777,-0.88669 -0.49577,0 -0.43429,-2.20401 0.13963,-5.00572 0.87677,-4.28008 0.68824,-6.12833 -1.30057,-12.75 -8.72252,-29.04128 -10.92706,-43.33162 -7.9885,-51.78325 0.89526,-2.57487 1.3638,-8.3354 1.33888,-16.46103 -0.0331,-10.79512 -0.34708,-13.18195 -2.30203,-17.5 -1.24503,-2.75 -3.84756,-10.175 -5.78339,-16.5 -3.12215,-10.20109 -3.58157,-13.14781 -4.06754,-26.08898 -0.41642,-11.08906 -0.16362,-16.60681 1.05379,-23 0.8809,-4.62606 2.08501,-12.91102 2.67579,-18.41102 0.59078,-5.5 1.82706,-13.97849 2.74728,-18.84109 1.59071,-8.40564 1.58421,-9.07057 -0.13198,-13.5 -0.99281,-2.5624 -2.37284,-6.67808 -3.06674,-9.14596 -1.48764,-5.29087 -2.11911,-4.08323 -3.13061,5.98705 -0.35908,3.575 -1.23362,8.3 -1.9434,10.5 -0.70979,2.2 -1.61483,5.56506 -2.01121,7.4779 -1.36022,6.56423 -7.17831,18.78521 -12.56773,26.39874 -10.24841,14.47772 -10.20725,14.42686 -9.40367,11.62336 0.6961,-2.42849 0.67164,-2.44279 -0.85503,-0.5 -2.36156,3.00525 -2.23374,2.32845 3.21061,-17 1.08445,-3.85 2.23246,-8.575 2.55113,-10.5 2.46874,-14.91317 3.53323,-17.46206 3.72386,-8.91667 0.0665,2.97917 0.0977,6.31667 0.0695,7.41667 -0.0651,2.53402 -1.9104,13.04273 -2.76076,15.72198 -1.3231,4.1687 1.32763,0.69466 3.00574,-3.93932 0.95258,-2.63047 1.99695,-5.45766 2.32083,-6.28266 0.32388,-0.825 0.70805,-2.49635 0.85371,-3.71411 0.5142,-4.29892 4.29304,-11.26171 7.76766,-14.31246 4.42371,-3.88407 6.12013,-11.40518 3.07476,-13.632 -1.75534,-1.28354 -1.74179,-1.53079 0.36208,-6.60676 2.4826,-5.98972 2.60723,-6.73467 1.12665,-6.73467 -0.58245,0 -0.7301,0.5625 -0.3281,1.25 0.402,0.6875 -0.16937,0.4625 -1.26972,-0.5 -1.22425,-1.07087 -3.71641,-1.7746 -6.4219,-1.81339 -3.74622,-0.0537 -4.06792,-0.20509 -2.10701,-0.99154 1.27283,-0.51048 2.02549,-1.39537 1.67256,-1.96641 -0.35292,-0.57104 0.74317,-2.6155 2.43576,-4.54325 2.33521,-2.65965 3.0851,-3.07454 3.10924,-1.72021 0.0175,0.98164 0.69249,2.65831 1.5,3.72593 1.32557,1.75257 1.46819,1.77112 1.46819,0.19098 0,-0.96258 0.37326,-1.51946 0.82946,-1.23751 0.67413,0.41663 0.78496,-1.6251 0.23856,-4.3946 -0.0543,-0.275 -0.57543,0.175 -1.15815,1 -0.78627,1.11315 -0.89591,0.51332 -0.42516,-2.3258 0.63899,-3.85373 -0.80138,-7.21456 -2.61231,-6.09534 -1.36449,0.8433 -4.86938,8.09799 -4.89464,10.1313 -0.0122,0.98441 -0.88406,2.91157 -1.9374,4.28258 l -1.91516,2.49274 0.49698,-4.49274 c 0.27335,-2.47101 0.65305,-5.28024 0.84379,-6.24274 0.62348,-3.14624 -2.28279,-1.83508 -3.39372,1.53107 -1.37254,4.15886 -0.40756,25.59484 1.24421,27.6385 0.90038,1.11401 0.90171,1.29533 0.005,0.75787 -0.69779,-0.41848 -1.43098,0.0906 -1.79857,1.24873 -0.34131,1.07537 -3.07371,5.64143 -6.072,10.14681 -2.99828,4.50537 -5.51673,8.91956 -5.59654,9.8093 -0.0798,0.88975 -0.22053,3.19272 -0.31271,5.11772 -0.0922,1.925 -0.52503,4.2875 -0.96188,5.25 -0.49178,1.08351 -0.37816,1.75 0.29831,1.75 0.60093,0 1.60442,-2.03265 2.22999,-4.517 0.62556,-2.48435 1.58025,-4.7907 2.12153,-5.12523 0.57412,-0.35483 0.75314,0.17304 0.42969,1.267 -0.68622,2.32088 -2.96658,11.89229 -4.73522,19.87523 -0.84314,3.80565 -1.4636,5.17712 -1.69651,3.75 -0.20195,-1.2375 -0.74377,-2.25 -1.20402,-2.25 -0.46026,0 -0.58307,0.97037 -0.27293,2.15637 0.38637,1.47745 0.19947,1.93114 -0.59362,1.44098 -0.68759,-0.42498 -1.15748,-0.0825 -1.15748,0.84363 0,0.85746 -0.675,1.55902 -1.5,1.55902 -2.01385,0 -1.88912,-1.31344 0.49626,-5.22583 3.70286,-6.07325 2.03922,-5.09515 -3.1282,1.83915 -2.82256,3.78767 -4.94832,6.43668 -4.72391,5.88668 1.47849,-3.62352 4.35256,-8.5 5.00968,-8.5 0.43087,0 0.49605,-0.74882 0.14485,-1.66404 -0.39796,-1.03707 -0.24029,-1.41791 0.41848,-1.01077 0.58136,0.35931 1.0039,0.0956 0.93895,-0.58595 -0.0649,-0.68158 1.5826,-8.2351 3.66121,-16.78558 2.68369,-11.03956 4.70743,-17.08145 6.98098,-20.84174 7.22424,-11.94841 6.74741,-9.50776 6.62475,-33.90859 -0.1118,-22.24173 -0.1055,-22.31014 2.56005,-27.75831 2.77401,-5.66987 6.19481,-8.77798 13.0169,-11.82702 l 4,-1.78775 -2.25,2.12383 c -1.2375,1.16811 -2.25689,2.6688 -2.26531,3.33487 -0.0113,0.8935 -0.22825,0.87549 -0.82738,-0.0687 -1.10242,-1.73727 -6.15731,2.19781 -6.15731,4.79326 0,1.02762 -0.44758,2.14503 -0.99462,2.48312 -1.46196,0.90353 -3.22141,4.50332 -2.20108,4.50332 0.48107,0 1.36498,-1.07612 1.96425,-2.39137 0.59927,-1.31526 2.4715,-3.08077 4.16052,-3.92336 2.93881,-1.46607 3.07093,-1.44173 3.07093,0.56569 0,2.0633 0.041,2.05919 2.5,-0.25096 3.08923,-2.90218 3.25148,-1.25292 0.47804,4.8592 -2.55291,5.62611 -2.49863,6.70372 0.21052,4.17975 1.20371,-1.12142 2.97715,-2.03895 3.94098,-2.03895 0.96384,0 2.05892,-0.49592 2.43352,-1.10203 0.3746,-0.60612 2.20116,-1.73716 4.05902,-2.51342 3.27062,-1.36656 4.58905,-3.38455 2.21125,-3.38455 -0.64166,0 -0.86255,-0.30412 -0.49085,-0.67581 0.3717,-0.3717 -0.3408,-1.78085 -1.58333,-3.13145 l -2.25915,-2.45563 2.48003,1.38145 c 1.36401,0.75979 3.0372,2.05644 3.71819,2.88144 0.99058,1.20005 1.24453,1.22556 1.26998,0.12755 0.0555,-2.395 2.83121,0.68269 3.54446,3.93008 0.69746,3.17553 2.48734,5.00055 2.48734,2.53618 0,-1.64751 5.68082,-8.59381 7.02819,-8.59381 2.37887,0 -2.21462,12.96234 -5.36537,15.14049 -0.512,0.35396 -0.60827,2.33673 -0.21519,4.43202 l 0.71129,3.79152 3.31112,-3.43202 c 1.82112,-1.8876 3.26476,-3.65701 3.20809,-3.93201 -0.29922,-1.45205 2.6289,-5 4.12649,-5 1.52171,0 1.6983,0.94976 1.4409,7.75 -0.37831,9.99495 -1.22713,16.60173 -2.0298,15.79905 -0.70761,-0.7076 -0.40876,-8.01885 0.44653,-10.92428 1.03626,-3.52021 -1.57896,-0.63638 -3.98829,4.39792 -2.1774,4.54968 -2.24446,5.15402 -0.88369,7.9637 1.16476,2.40496 1.75855,2.80302 2.84112,1.90456 1.09747,-0.91081 1.36861,-0.62919 1.36861,1.42151 0,1.40654 0.47597,3.82414 1.05771,5.37244 0.92353,2.45798 0.8758,2.62481 -0.37627,1.3151 -3.52292,-3.68509 -8.66834,-12.46592 -10.81929,-18.46345 -1.2904,-3.59803 -2.77164,-6.40005 -3.29166,-6.22671 -1.85245,0.61748 -1.66317,2.59748 0.45034,4.71099 1.18021,1.18021 1.92143,2.37024 1.64715,2.64452 -0.82842,0.82842 -17.53474,0.92807 -17.02391,0.10155 0.26068,-0.4218 -0.0335,-0.7669 -0.65378,-0.7669 -2.36093,0 1.15516,28.73485 3.63242,29.68546 0.75119,0.28826 1.11683,0.92696 0.81253,1.41932 -0.3043,0.49237 0.17484,0.89522 1.06476,0.89522 0.95978,0 1.33041,0.46538 0.91103,1.14395 -0.38885,0.62918 0.70959,0.30715 2.44098,-0.7156 1.7314,-1.02276 3.14799,-2.21254 3.14799,-2.64396 0,-0.43141 0.70156,-0.78439 1.55902,-0.78439 0.85746,0 1.28213,-0.44801 0.94371,-0.99558 -0.33842,-0.54757 0.62768,-2.14754 2.14688,-3.55549 2.34619,-2.17438 2.58278,-2.84718 1.57092,-4.46742 -0.9725,-1.55721 -0.93257,-1.80824 0.21741,-1.36695 0.81216,0.31165 1.91013,-0.39642 2.59285,-1.6721 0.94205,-1.76023 1.36355,-1.92945 2.06138,-0.82756 0.66165,1.04474 0.88097,1.07002 0.89252,0.10288 0.008,-0.70523 -0.99719,-1.71065 -2.23469,-2.23427 -2.0798,-0.88002 -2.03017,-0.93432 0.65623,-0.71777 3.67348,0.29611 4.24332,3.03732 1.67757,8.0699 -1.02128,2.00318 -1.34543,3.33576 -0.72034,2.9613 0.6251,-0.37447 0.48126,0.12592 -0.31963,1.11198 -1.75805,2.16452 -2.23179,4.59108 -0.89633,4.59108 0.53379,0 0.69242,0.45 0.3525,1 -0.33992,0.55 -1.50261,1 -2.58377,1 -2.25107,0 -3.97921,3.5103 -4.61937,9.38316 -0.3837,3.52001 -0.23033,3.83271 1.63993,3.34362 1.13476,-0.29675 2.06321,-0.13167 2.06321,0.36684 0,0.49851 -0.7875,0.92998 -1.75,0.95883 -1.46914,0.044 -1.3889,0.30435 0.5,1.62197 1.2375,0.86324 2.25,2.14149 2.25,2.84056 0,0.69907 0.5625,1.49199 1.25,1.76203 0.6875,0.27005 2.33023,3.24319 3.6505,6.60699 1.32028,3.3638 2.80934,6.116 3.30902,6.116 0.49968,0 0.64943,0.41921 0.33277,0.93158 -0.31666,0.51237 0.23216,1.52487 1.2196,2.25 0.98744,0.72513 1.76742,1.99342 1.73327,2.81842 -0.0341,0.825 0.26115,1.73343 0.6562,2.01873 0.39505,0.28531 0.89445,1.83425 1.10977,3.44211 0.47222,3.52618 2.65514,4.57536 3.42157,1.64452 0.30281,-1.15795 0.97464,-2.10536 1.49295,-2.10536 0.51831,0 0.72149,-0.35742 0.45151,-0.79426 -0.26999,-0.43684 0.35646,-2.68684 1.39209,-5 1.03563,-2.31316 1.68437,-4.20574 1.44165,-4.20574 -0.24273,0 0.23295,-0.7875 1.05707,-1.75 0.82412,-0.9625 1.548,-2.2 1.60862,-2.75 0.0606,-0.55 0.73193,-1.88763 1.49181,-2.97251 0.75988,-1.08487 1.3816,-2.66413 1.3816,-3.50945 0,-0.84532 0.94382,-2.12637 2.09738,-2.84678 1.15356,-0.72041 1.84382,-1.5634 1.53391,-1.8733 -0.30991,-0.30991 0.59745,-1.47664 2.01634,-2.59274 2.2617,-1.77906 2.50864,-2.54846 2.00267,-6.2399 -0.75713,-5.52386 -2.58942,-9.42591 -4.14571,-8.82871 -1.54207,0.59175 -2.19535,-1.14058 -2.04141,-5.41325 0.0851,-2.36182 -0.25678,-3.1328 -1.2245,-2.76146 -0.73841,0.28336 -1.09657,0.11718 -0.79592,-0.36928 0.30064,-0.48645 -0.12321,-2.1688 -0.94191,-3.73854 -1.99161,-3.81868 -1.88459,-4.68769 0.50053,-4.06397 1.10076,0.28785 1.7492,0.11534 1.44098,-0.38337 -1.06805,-1.72814 -3.87836,-0.89367 -6.20766,1.84326 -1.81608,2.1339 -2.10454,2.26065 -1.28756,0.56574 0.57907,-1.20134 1.05286,-3.78884 1.05286,-5.75 0,-3.42988 1.39451,-4.8822 2.24319,-2.33617 0.23956,0.71868 1.1797,0.0547 2.26262,-1.59809 1.49615,-2.28342 1.62578,-3.19113 0.67347,-4.71601 -0.64812,-1.03853 -1.1788,-2.51954 -1.1788,-3.29107 0,-0.77153 -0.91872,-2.46513 -2.0416,-3.76357 l -2.04159,-2.36078 0.2988,4.75 c 0.16434,2.6125 -0.0419,4.75 -0.4584,4.75 -0.41647,0 -0.80329,-1.6875 -0.85961,-3.75 -0.0563,-2.0625 -0.25132,-6.7875 -0.43334,-10.5 -0.18202,-3.7125 0.0234,-6.75 0.45638,-6.75 1.06755,0 6.13375,4.75423 6.09994,5.72431 -0.0554,1.58951 4.2129,6.43909 4.94941,5.62347 0.42104,-0.46628 1.03376,-2.28512 1.36159,-4.04188 0.46187,-2.47504 0.21024,-3.31714 -1.11776,-3.74069 -2.13196,-0.67996 -6.11713,-10.21894 -5.40575,-12.93928 0.46604,-1.78213 0.95516,-1.52353 4.34647,2.29799 2.10173,2.36836 3.5752,4.70435 3.27438,5.19109 -0.30083,0.48675 -0.11918,0.88499 0.40365,0.88499 0.52284,0 1.23297,-1.125 1.57807,-2.5 0.34511,-1.375 1.26837,-2.5 2.05171,-2.5 0.78333,0 2.01226,-0.82859 2.73095,-1.8413 0.71868,-1.01272 2.4317,-2.42819 3.8067,-3.14551 l 2.5,-1.30421 -2,2.39551 c -1.1,1.31753 -2.37075,2.66762 -2.82389,3.00019 -1.0213,0.74958 1.99927,3.89532 3.74033,3.89532 0.70047,0 2.04133,0.84835 2.97969,1.88522 0.93836,1.03688 3.0331,2.15063 4.65499,2.475 1.71822,0.34365 2.94888,1.22621 2.94888,2.11478 0,0.83875 0.42659,1.525 0.94798,1.525 0.57565,0 0.53739,-1.17781 -0.0974,-2.99881 -0.57497,-1.64935 -1.4464,-2.75098 -1.93653,-2.44807 -0.49012,0.30292 -0.65292,-0.07 -0.36177,-0.82873 0.29115,-0.75872 0.0721,-2.58209 -0.48671,-4.05194 -1.07004,-2.81443 -0.28076,-3.48765 1.73069,-1.4762 0.92834,0.92834 1.49702,0.78494 2.53918,-0.6403 1.24405,-1.70133 1.39105,-1.71112 1.99668,-0.13287 0.35957,0.93703 1.10658,1.42383 1.66002,1.08178 0.55345,-0.34204 1.96241,0.99865 3.13104,2.97932 3.16223,5.35958 3.33129,3.59122 0.24816,-2.59577 -2.96593,-5.95179 -3.81768,-6.8112 -6.23203,-6.28808 -0.93146,0.20182 -2.67781,-0.9718 -4.0444,-2.71801 l -2.4051,-3.0732 5.4051,2.70944 c 7.07655,3.5473 8.61895,4.99804 11.67526,10.98144 2.51533,4.92433 2.55531,5.35563 2.64191,28.5 l 0.0879,23.5 4.06623,6 c 2.23642,3.3 4.59224,7.35 5.23515,9 1.72595,4.42959 7.50056,28.63883 7.45245,31.24338 -0.0228,1.23386 0.35562,1.99799 0.84091,1.69806 0.4853,-0.29992 0.58603,0.22688 0.22387,1.17067 -0.37994,0.9901 -0.25298,1.46536 0.30014,1.12351 0.52725,-0.32585 1.93028,1.51283 3.11785,4.08596 1.56272,3.38598 3.421,5.43388 6.72666,7.41307 2.83541,1.69764 5.60445,4.49599 7.30209,7.37938 1.50406,2.55461 3.77868,6.22797 5.05473,8.16303 1.72948,2.62267 2.00712,3.7117 1.09068,4.27809 -1.80457,1.11529 -3.93846,0.0984 -8.28514,-3.94823 l -3.87438,-3.60692 0.57456,12 c 0.64759,13.52517 0.26058,13.99948 -1.22394,1.5 -0.55523,-4.675 -1.2675,-9.85 -1.58282,-11.5 -0.31532,-1.65 -0.12662,-3.675 0.41932,-4.5 0.81554,-1.23241 2.06916,-0.43521 7.02713,4.4687 3.31898,3.28278 6.03451,5.45981 6.03451,4.83784 0,-0.62197 -1.864,-4.36392 -4.14223,-8.31546 -3.15285,-5.46853 -5.28688,-7.88891 -8.93451,-10.13332 -2.63575,-1.62179 -5.60925,-4.20363 -6.60777,-5.73741 -0.99852,-1.53378 -2.88378,-4.45753 -4.18946,-6.49722 -3.31775,-5.18287 -3.94277,-3.6925 -0.74197,1.76925 1.58439,2.70355 2.22795,4.72938 1.6215,5.10419 -1.55541,0.96129 -3.00395,-0.38401 -3.02087,-2.80559 -0.0125,-1.78123 -0.1966,-1.91046 -0.98469,-0.69098 -0.70463,1.09033 -1.01458,0.13444 -1.13488,-3.5 l -0.16551,-5 -0.65151,4.5 -0.65152,4.5 -0.80712,-4 c -0.44391,-2.2 -1.69146,-7.50003 -2.77234,-11.77785 -2.1791,-8.62435 -1.93001,-13.08 0.29641,-5.30183 0.77461,2.70617 2.00965,5.12074 2.74453,5.3657 1.08354,0.36118 1.10821,0.0195 0.13046,-1.80747 -0.66313,-1.23907 -0.96012,-3.76614 -0.65998,-5.6157 0.30017,-1.84957 0.18028,-3.36285 -0.26639,-3.36285 -0.44667,0 -1.06202,-1.2375 -1.36745,-2.75 -0.30543,-1.5125 -2.94918,-6.30488 -5.875,-10.64973 l -5.31968,-7.89974 0,-15.88299 c 0,-12.80572 -0.28137,-16.05761 -1.45225,-16.78428 -2.40485,-1.49249 -2.82954,-0.33487 -1.85142,5.04665 0.92527,5.0907 0.25183,8.34988 -0.85262,4.12642 -0.31734,-1.21348 -0.97449,-2.20633 -1.46034,-2.20633 -0.48585,0 -0.88337,-0.89691 -0.88337,-1.99314 0,-2.796 -3.19782,-9.86879 -4.72734,-10.45573 -0.69996,-0.2686 -1.27266,0.17252 -1.27266,0.98026 0,0.80773 -0.37206,1.46861 -0.82681,1.46861 -0.45474,0 -0.61928,1.41392 -0.36565,3.14205 0.36281,2.47199 0.16593,2.97094 -0.92319,2.33967 -0.76139,-0.4413 -1.06268,-0.44606 -0.66953,-0.0106 0.39315,0.43549 0.33843,1.52014 -0.1216,2.41032 -0.57103,1.10499 -0.20707,2.25309 1.14711,3.61852 1.98069,1.99713 1.98267,1.99498 1.38337,-1.5 -0.33009,-1.925 -0.3367,-2.91872 -0.0147,-2.20826 0.41094,0.90664 0.9552,0.98489 1.82565,0.26248 0.89523,-0.74297 1.88913,-0.33846 3.57337,1.45432 1.28325,1.36597 2.05055,2.76621 1.7051,3.11166 -0.34544,0.34545 0.2953,1.37579 1.42387,2.28966 1.90995,1.54658 1.92431,1.66693 0.20748,1.7391 -9.29983,0.3909 -11.38698,0.79791 -10.87908,2.12148 0.29403,0.76622 0.5346,1.83289 0.5346,2.37036 0,0.53748 0.46115,0.69223 1.02478,0.34389 0.56362,-0.34834 0.9279,-0.2624 0.8095,0.19098 -0.1184,0.45338 0.14869,2.36644 0.59353,4.25124 0.62046,2.62887 0.44624,3.69202 -0.74812,4.56535 -0.85631,0.62615 -1.39397,2.00904 -1.19482,3.0731 0.19916,1.06405 0.39654,2.98248 0.43862,4.26317 0.043,1.30804 1.87243,4.15669 4.1744,6.5 3.69147,3.75775 7.08173,8.79102 6.85694,10.18001 -0.27903,1.72418 6.02703,20.84293 6.6645,20.20547 0.18182,-0.18182 -0.26521,-4.0748 -0.9934,-8.65107 -1.1284,-7.09138 -1.31973,-13.44263 -0.60438,-20.06294 0.0891,-0.825 0.95619,2.325 1.92678,7 0.97058,4.675 3.19042,13.89628 4.93298,20.49173 1.74256,6.59546 2.77253,12.12366 2.28883,12.28489 -0.4837,0.16123 -0.67569,1.51495 -0.42664,3.00827 0.37541,2.25093 0.0514,1.99658 -1.89534,-1.48776 -1.29149,-2.31158 -5.08313,-8.01507 -8.42586,-12.67442 -8.38285,-11.68463 -14.81576,-29.26117 -16.3768,-44.74608 -0.79653,-7.90128 -1.59551,-10.45187 -2.43389,-7.76976 -0.68479,2.19077 -2.72167,8.0435 -4.20952,12.09555 -1.02758,2.79855 -1.11516,4.87365 -0.35874,8.5 0.55039,2.63867 2.10554,13.12258 3.45589,23.29758 1.35034,10.175 2.99217,21.40359 3.6485,24.95242 0.91079,4.92466 0.92541,9.57418 0.0617,19.63715 -1.00361,11.69347 -1.71585,14.86581 -6.2971,28.04759 -4.86582,14.00057 -5.19074,15.5554 -5.60067,26.80047 -0.32884,9.02055 -0.022,13.62367 1.25569,18.83741 2.52065,10.28573 1.07723,19.33511 -8.05728,50.51409 -2.57281,8.78184 -2.64123,9.53275 -1.25286,13.75 0.80772,2.45348 1.06902,4.46087 0.58066,4.46087 -0.48836,0 -1.16802,-1.4005 -1.51036,-3.11222 -0.52356,-2.6178 -0.77435,-2.84079 -1.57863,-1.40363 -0.62096,1.1096 -0.59666,2.06812 0.0693,2.73408 0.56401,0.56401 0.75917,1.71947 0.43369,2.56767 -0.43069,1.12236 -0.20525,1.31777 0.82814,0.71782 0.84201,-0.48885 1.08077,-0.45386 0.58661,0.086 -0.45834,0.50068 -1.34505,0.91033 -1.97047,0.91033 -0.62542,0 -1.74281,1.125 -2.48307,2.5 -1.1708,2.17468 -1.26152,1.13364 -0.69713,-8 0.35685,-5.775 1.34312,-13.65 2.19171,-17.5 2.64216,-11.98732 2.69457,-12.5916 1.03672,-11.95542 -0.81803,0.3139 -1.74168,-0.095 -2.05422,-0.90949 -0.35449,-0.92378 -1.34236,-1.27731 -2.62904,-0.94084 -2.33268,0.61001 -2.48188,1.61073 -2.13289,14.30575 0.26382,9.5969 -1.00909,18.90797 -3.28603,24.03665 -1.4455,3.25589 -1.49646,2.68461 -0.85081,-9.53665 0.98936,-18.72715 0.45486,-36.12909 -1.29475,-42.15391 -1.88774,-6.50051 -1.88664,-13.30485 0.003,-20.34609 1.97592,-7.36154 1.87708,-10.50522 -0.52934,-16.83663 -1.80758,-4.75581 -1.99799,-7.25902 -1.7495,-23 0.15336,-9.71485 -0.13149,-24.41337 -0.633,-32.66337 -1.36063,-22.38266 -2.58697,-13.976 -3.13637,21.5 -0.40704,26.2834 -0.67971,30.16996 -2.50068,35.6443 -1.94102,5.83525 -1.96604,6.47968 -0.49747,12.81205 1.99153,8.58728 1.9644,17.75094 -0.0761,25.71288 -1.63399,6.37572 -1.63177,9.55732 0.0335,47.94591 0.20554,4.73832 0.037,9.15995 -0.37454,9.82582 -1.32721,2.14748 -8.2285,2.11208 -14.34898,-0.0736 z m 2.95671,-16.2714 c -0.0793,-1.32222 -0.48171,-2.19567 -0.89421,-1.94098 -1.05886,0.65375 -0.93635,4.34502 0.14421,4.34502 0.49182,0 0.82932,-1.08182 0.75,-2.40404 z m 10.0389,-0.78346 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36782,-1.1948 0.0789,-1.91667 z m 24,-10 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36781,-1.1948 0.0789,-1.91667 z m -35,-1 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36782,-1.1948 0.0789,-1.91667 z m 7.31689,-25.27732 c 0,-0.25565 -1.0125,-0.95547 -2.25,-1.55516 -2.16063,-1.04704 -2.17289,-1.02858 -0.30887,0.46481 2.04026,1.63459 2.55887,1.85557 2.55887,1.09035 z m 25,-0.97616 c 0,-1.05548 -1.91911,-1.49891 -2.48992,-0.57533 -0.34546,0.55897 0.0734,1.01631 0.9309,1.01631 0.85746,0 1.55902,-0.19844 1.55902,-0.44098 z m 2.43524,-0.45424 c 0.3043,-0.49236 -0.0962,-1.14445 -0.89006,-1.44907 -0.96277,-0.36945 -1.25818,-0.0714 -0.88726,0.89522 0.6446,1.67981 1.01089,1.79396 1.77732,0.55385 z m -27.43524,-2.10478 c 0,-0.55 -0.47656,-1 -1.05902,-1 -0.58246,0 -0.7809,0.45 -0.44098,1 0.33992,0.55 0.81648,1 1.05902,1 0.24254,0 0.44098,-0.45 0.44098,-1 z m 22,0 c 0,-0.55 -0.45,-1 -1,-1 -0.55,0 -1,0.45 -1,1 0,0.55 0.45,1 1,1 0.55,0 1,-0.45 1,-1 z m -25,-1.87756 c 0,-0.48265 -0.63887,-1.40776 -1.41971,-2.0558 -1.14602,-0.95112 -1.35355,-0.83015 -1.07651,0.62755 0.18876,0.9932 0.37763,1.91831 0.41971,2.05581 0.21187,0.6923 2.07651,0.12877 2.07651,-0.62756 z m 28.77083,-0.93494 c 0.59996,-1.79986 -1.467,-1.42165 -2.16452,0.39606 -0.37373,0.97391 -0.15024,1.43108 0.58051,1.1875 0.6535,-0.21783 1.3663,-0.93044 1.58401,-1.58356 z m -38.21804,-4.10209 c -0.31089,-0.50302 5e-5,-1.1425 0.69098,-1.42105 0.75786,-0.30554 0.56198,-0.53778 -0.49377,-0.58541 -1.77074,-0.0799 -2.30527,1.03245 -1.08333,2.25438 0.97365,0.97366 1.54269,0.81445 0.88612,-0.24792 z m 48.97364,-2.20274 c 0.0145,-0.76047 0.42157,-2.0147 0.90451,-2.78718 0.58189,-0.93075 0.51195,-1.17823 -0.20733,-0.73369 -0.59698,0.36895 -1.36807,0.21348 -1.71353,-0.34549 -0.34546,-0.55897 0.18594,-1.05184 1.1809,-1.09526 1.0495,-0.0458 1.2842,-0.29071 0.55902,-0.58333 -0.6875,-0.27741 -1.25,-0.94344 -1.25,-1.48007 0,-0.53663 0.45,-0.69757 1,-0.35765 0.56481,0.34907 1,-0.46994 1,-1.88197 0,-1.375 -0.45734,-2.78265 -1.01631,-3.12811 -0.55897,-0.34546 -0.7579,-1.04623 -0.44207,-1.55726 0.79601,-1.28798 -1.71654,-4.43266 -3.54162,-4.43266 -1.36367,0 -2.42461,-4.46197 -3.2694,-13.75 -0.0875,-0.9625 -0.51274,-1.75 -0.94489,-1.75 -0.43214,0 -0.84479,2.8125 -0.91701,6.25 l -0.1313,6.25 -1.22399,-8 c -0.6732,-4.4 -1.57294,-8.81533 -1.99943,-9.81185 -0.71078,-1.66081 -1.01463,-1.58268 -3.6447,0.93709 -2.59894,2.48994 -2.86928,3.379 -2.86928,9.43612 0,3.67795 -0.675,8.60034 -1.5,10.93864 -0.825,2.3383 -1.5,5.99488 -1.5,8.12573 0,2.77713 0.42478,3.87427 1.5,3.87427 0.825,0 1.5,0.4024 1.5,0.89421 0,0.49182 1.12468,0.82932 2.49929,0.75 1.65837,-0.0957 2.49954,-0.73303 2.5,-1.89421 3.9e-4,-0.9625 0.42039,-1.75 0.93332,-1.75 0.51294,0 1.22613,-0.92477 1.58486,-2.05505 0.75075,-2.3654 3.05066,-2.04054 2.84543,0.40192 -0.0754,0.89738 0.23227,1.40333 0.68371,1.12432 0.45144,-0.279 0.68562,0.73834 0.5204,2.26077 -0.39265,3.61813 0.41232,5.91952 1.47123,4.20617 1.00377,-1.62414 3.96176,-0.43737 3.96176,1.5895 0,0.87472 -0.45,1.31229 -1,0.97237 -1.29369,-0.79955 -3.19854,0.36974 -2.48449,1.5251 0.79384,1.28445 4.97962,-0.50519 5.01092,-2.14243 z m -48.13288,-2.71994 c 1.14121,-0.21978 1.58528,0.0625 1.16586,0.74114 -0.37259,0.60287 -0.20089,1.09613 0.38157,1.09613 0.58246,0 1.11527,-0.9 1.18402,-2 0.0688,-1.1 0.2375,-2.45 0.375,-3 0.1375,-0.55 0.30625,-2.125 0.375,-3.5 0.1493,-2.98602 2.09539,-3.32921 2.83525,-0.5 0.28766,1.1 1.14553,2 1.90638,2 0.76085,0 1.38337,0.62252 1.38337,1.38337 0,0.76085 0.9,1.61872 2,1.90638 1.1,0.28766 2,0.16762 2,-0.26674 0,-0.43436 0.9,-1.0251 2,-1.31276 2.4295,-0.63533 2.50693,-2.65253 0.37532,-9.77875 -0.89357,-2.98732 -1.68107,-8.5815 -1.75,-12.4315 -0.10964,-6.12402 -0.43817,-7.27761 -2.62532,-9.2184 -1.375,-1.22012 -2.76527,-2.23262 -3.08948,-2.25 -1.20415,-0.0646 -2.91372,5.19755 -3.0102,9.26545 -0.0548,2.31162 -0.45997,5.32795 -0.90032,6.70295 -0.65256,2.03762 -0.81908,1.62148 -0.90032,-2.25 -0.13996,-6.66967 -1.76756,-5.91958 -2.59331,1.19515 -0.55067,4.74454 -1.17634,6.26381 -3.09819,7.52306 -1.3245,0.86784 -2.40818,2.46752 -2.40818,3.55484 0,1.08732 -0.35803,1.97695 -0.79561,1.97695 -0.43759,0 -0.86733,1.6875 -0.95497,3.75 -0.12479,2.93644 0.0326,3.3161 0.72533,1.75 0.88468,-2 0.88468,-2 1.05628,0 0.0944,1.1 0.10823,3.575 0.0308,5.5 -0.13957,3.46845 -0.12899,3.47755 1.1738,1.00886 0.72305,-1.37013 2.14413,-2.65089 3.15795,-2.84613 z m 46.7111,-31.16273 -0.88552,-4.5 -0.10956,3.66821 c -0.0603,2.01752 0.19801,4.46977 0.57395,5.44944 1.1226,2.92544 1.37052,0.20694 0.42113,-4.61765 z m -48.17494,-1.25 c 0.0387,-1.5125 -0.37971,-2.75 -0.92971,-2.75 -0.55,0 -0.96837,2.1375 -0.92972,4.75 0.0529,3.57396 0.28307,4.25483 0.92972,2.75 0.47269,-1.1 0.89106,-3.2375 0.92971,-4.75 z m 15.73257,-8 c -0.27741,-0.6875 -0.50439,-0.125 -0.50439,1.25 0,1.375 0.22698,1.9375 0.50439,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m -13.27135,-2 c 1.8218,-3.98774 2.71594,-18.50824 1.17925,-19.15048 -0.66141,-0.27642 -0.49724,-0.85245 0.42982,-1.50808 1.24009,-0.877 1.25453,-1.06347 0.0833,-1.07613 -0.77917,-0.008 -1.12057,-0.31141 -0.75868,-0.6733 0.3619,-0.3619 0.12833,-1.29619 -0.51903,-2.07622 -0.91609,-1.10382 -0.85874,-1.61962 0.25868,-2.32669 0.78963,-0.49966 1.135,-0.91537 0.76748,-0.92379 -0.36751,-0.008 -1.34531,-0.27514 -2.17287,-0.5927 -1.52236,-0.58419 -1.74594,1.04951 -0.43115,3.15042 0.36934,0.59017 0.1879,4.19017 -0.40321,8 -0.5911,3.80983 -1.1447,9.04073 -1.23022,11.62422 -0.0855,2.58349 -0.44823,4.98998 -0.80602,5.34777 -0.82355,0.82355 0.14506,3.45498 1.27176,3.45498 0.46535,0 1.51424,-1.4625 2.33086,-3.25 z m 10.05223,1 c -0.89432,-2.90944 -1.08771,-3.08771 -2.44177,-2.25086 -0.79167,0.48928 -0.61488,1.27047 0.58846,2.60014 2.2476,2.48357 2.69799,2.39869 1.85331,-0.34928 z m 24.55684,-1.90499 c 0,-1.74896 -1.54479,-0.73292 -2.71345,1.7847 -1.18654,2.55616 -1.16992,2.57472 0.75,0.83721 1.0799,-0.97729 1.96345,-2.15715 1.96345,-2.62191 z m 10.39594,0.98662 c -0.65698,-1.06302 -1.76427,-16.15077 -1.68842,-23.00617 0.045,-4.07003 -0.28175,-5.54234 -1.1557,-5.20697 -0.67017,0.25717 -1.21849,-0.18389 -1.21849,-0.98012 0,-0.79623 0.55449,-1.23491 1.23219,-0.97486 0.6777,0.26006 1.57223,-0.0774 1.98784,-0.74984 0.48322,-0.78187 0.33942,-0.96544 -0.39885,-0.50916 -0.63498,0.39244 -1.15451,0.23697 -1.15451,-0.34549 0,-0.58246 0.48214,-1.05902 1.07143,-1.05902 0.58928,0 0.32345,-0.74798 -0.59075,-1.66218 -1.38522,-1.38522 -1.80489,-1.43127 -2.51864,-0.27639 -0.50982,0.82489 -0.42988,1.64943 0.19751,2.03718 0.72881,0.45043 0.71252,0.86242 -0.0528,1.33541 -0.60872,0.37621 -1.10676,1.80901 -1.10676,3.18401 0,1.41203 0.43519,2.23104 1,1.88197 0.55,-0.33992 1,0.28197 1,1.38197 0,1.1 -0.3375,2.20865 -0.75,2.46367 -0.64941,0.40148 -0.87982,11.66866 -0.40559,19.83293 0.19642,3.38153 3.07439,6.57084 4.23492,4.69306 0.43379,-0.70187 0.57626,-1.61988 0.31661,-2.04 z m -15.71283,-0.0191 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36781,-1.1948 0.0789,-1.91667 z m -16.97254,-7.32784 c -0.33975,-3.2919 -0.19458,-5.2838 0.3601,-4.94098 1.20933,0.74741 1.20531,-0.86314 -0.005,-2.09368 -0.51401,-0.5225 -1.15824,-7.025 -1.43163,-14.45 -0.44998,-12.22135 -1.24664,-19.90681 -2.16126,-20.85014 -0.18672,-0.19257 -0.82793,-0.0483 -1.42491,0.3207 -1.48926,0.92041 -0.96349,33.70189 0.5714,35.62636 0.61548,0.77169 1.67286,3.76558 2.34974,6.65308 0.67689,2.8875 1.47377,5.25 1.77086,5.25 0.29709,0 0.28401,-2.4819 -0.0291,-5.51534 z m 18.38821,1.26531 c 0.64673,-2.3375 1.18908,-4.8125 1.20521,-5.5 0.0161,-0.6875 0.45683,-1.25 0.97931,-1.25 0.52248,0 0.71445,-0.90062 0.42659,-2.00138 -0.28785,-1.10076 -0.11534,-1.7492 0.38337,-1.44098 1.11362,0.68825 1.01938,1.76386 1.31928,-15.05764 0.27288,-15.30558 -0.0672,-18.78101 -1.78188,-18.21173 -1.36285,0.45246 -2.28733,7.30732 -3.06302,22.71173 -0.31849,6.325 -0.75682,14.5375 -0.97406,18.25 -0.21724,3.7125 -0.23201,6.75 -0.0328,6.75 0.19918,0 0.89129,-1.9125 1.53802,-4.25 z m -38.4365,-12 c -0.27741,-0.6875 -0.50439,-0.125 -0.50439,1.25 0,1.375 0.22698,1.9375 0.50439,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m 22,-2 c -0.27741,-0.6875 -0.50439,-0.125 -0.50439,1.25 0,1.375 0.22698,1.9375 0.50439,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m 37.88409,-7.63388 c 0.57638,-1.81528 0.4226,-2.27339 -0.64473,-1.92063 -0.98712,0.32625 -1.44411,2.36206 -1.54524,6.88388 -0.13585,6.07389 -0.10103,6.17761 0.64473,1.92063 0.43358,-2.475 1.12894,-5.57275 1.54524,-6.88388 z m -61.47815,-1.4479 c -1.27263,-1.27263 -1.45116,2.43893 -0.30456,6.33178 0.65447,2.22203 0.77172,2.06839 1.05456,-1.38178 0.17502,-2.13498 -0.16248,-4.36248 -0.75,-4.95 z m 34.4301,-13.4892 c -0.37933,-4.57655 -0.88952,-8.12115 -1.13377,-7.87691 -0.24424,0.24425 -0.0968,5.33869 0.32776,11.32099 0.42452,5.98229 0.93471,9.5269 1.13377,7.8769 0.19906,-1.65 0.0516,-6.74444 -0.32776,-11.32098 z m -24.49832,11.82098 c 1.29269,-0.8354 1.26629,-0.97149 -0.19098,-0.98469 -0.93004,-0.008 -1.9691,0.43469 -2.30902,0.98469 -0.78218,1.2656 0.54163,1.2656 2.5,0 z m -0.22917,-3.8125 c 0.59996,-1.79986 -1.467,-1.42165 -2.16452,0.39606 -0.37373,0.97391 -0.15024,1.43108 0.58051,1.1875 0.6535,-0.21783 1.36631,-0.93044 1.58401,-1.58356 z m -11.69403,-8.16649 c 0.73466,-3.31156 1.64415,-6.02101 2.02107,-6.02101 0.37692,0 0.96767,-1.125 1.31277,-2.5 0.34511,-1.375 0.99243,-2.5 1.43849,-2.5 1.24453,0 0.7303,-17.22055 -0.58488,-19.58673 -1.26699,-2.27947 -4.92707,-2.57687 -6.20791,-0.50443 -0.43106,0.69747 -0.62796,4.2292 -0.43756,7.84829 0.19101,3.63052 -0.11966,7.14147 -0.69304,7.83235 -1.28767,1.55155 -2.27617,16.74513 -1.03973,15.98097 0.4885,-0.30191 0.8681,0.009 0.84355,0.69031 -0.27307,7.58234 1.53895,6.9112 3.34724,-1.23975 z m 68.94752,-9.86121 c -0.37078,-2.01289 -1.13504,-4.5598 -1.69834,-5.6598 -0.5633,-1.1 -0.95807,-5.23218 -0.87725,-9.18261 0.0808,-3.95044 -0.0996,-7.15965 -0.40089,-7.13158 -2.65482,0.24731 -4.06889,-0.34724 -3.4149,-1.43581 0.51028,-0.84936 0.20868,-0.81011 -0.94098,0.12244 -0.93058,0.75485 -1.69196,2.21735 -1.69196,3.25 0,1.03266 -0.41859,1.87756 -0.93019,1.87756 -0.55715,0 -0.5867,1.19772 -0.0737,2.98652 0.5058,1.76361 0.47722,3.22094 -0.0698,3.55901 -1.21721,0.75228 -1.19485,5.17048 0.03,5.92748 0.52598,0.32507 0.70429,1.24783 0.39624,2.05058 -0.30804,0.80275 0.38661,3.06406 1.54368,5.02514 1.15706,1.96107 2.10375,4.41331 2.10375,5.44941 0,1.03611 0.45,2.16194 1,2.50186 0.55,0.33992 1,1.62648 1,2.85902 0,1.23254 0.5625,2.80486 1.25,3.49404 1.00049,1.00294 1.46941,-0.073 2.34923,-5.39021 0.60458,-3.65379 0.79587,-8.29017 0.42509,-10.30305 z m -40.29959,7.60811 c -0.22256,-1.79735 -0.40925,-0.56791 -0.41486,2.73209 -0.006,3.3 0.17648,4.77056 0.40466,3.26791 0.22817,-1.50265 0.23276,-4.20265 0.0102,-6 z m -10.19193,-29.80415 c 1.59042,-1.7574 1.68011,-2.48605 0.65498,-5.321 -0.65328,-1.80661 -1.18778,-4.04031 -1.18778,-4.96376 0,-2.21072 -1.71482,-2.16025 -2.41216,0.071 -0.6973,2.23108 -0.28251,12.24914 0.50717,12.24963 0.32726,2e-4 1.42426,-0.91594 2.43779,-2.03587 z m 30.66988,0.43392 c -0.49319,-0.88128 -0.5844,-3.31024 -0.20268,-5.39768 0.69231,-3.78595 -0.24881,-7 -2.04969,-7 -0.52267,0 -0.95031,1.32344 -0.95031,2.94098 0,1.61754 -0.45,3.2191 -1,3.55902 -1.74853,1.08065 -1.07901,4.20094 1.25,5.82558 2.93146,2.04488 4.07229,2.07273 2.95268,0.0721 z m -84.6848,-11.21313 c -0.78979,-0.78979 -1.29137,0.0326 -2.02337,3.3175 l -0.66805,2.99795 1.60465,-2.89878 c 0.88257,-1.59433 1.37161,-3.13183 1.08677,-3.41667 z m 137.48212,3.43789 c 0,-0.75765 -0.74867,-1.99515 -1.66372,-2.75 -1.49903,-1.23658 -1.55201,-1.16273 -0.53518,0.74608 0.62069,1.16518 0.84437,2.40268 0.49705,2.75 -0.34732,0.34731 -0.10648,0.63148 0.53518,0.63148 0.64167,0 1.16667,-0.6199 1.16667,-1.37756 z m 1.68311,-4.80994 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z M 85.28571,501.6603 c 0,-0.51754 -0.45,-0.94098 -1,-0.94098 -0.55,0 -1,0.70156 -1,1.55902 0,0.85746 0.45,1.2809 1,0.94098 0.55,-0.33992 1,-1.04148 1,-1.55902 z m 139.16845,-2.17253 c -0.74207,-0.74207 -0.87221,-0.35164 -0.43724,1.31171 0.35361,1.3522 0.8069,1.8055 1.05655,1.05655 0.24048,-0.72144 -0.0382,-1.78716 -0.61931,-2.36826 z m -19.80682,-3.26845 c -0.31659,-0.825 -1.03256,-1.5 -1.59106,-1.5 -0.58531,0 -0.48812,0.63541 0.22943,1.5 0.68469,0.825 1.40067,1.5 1.59106,1.5 0.19039,0 0.0872,-0.675 -0.22943,-1.5 z m -98.86163,-0.5 c 0.33992,-0.55 0.14148,-1 -0.44098,-1 -0.58246,0 -1.05902,0.45 -1.05902,1 0,0.55 0.19844,1 0.44098,1 0.24254,0 0.7191,-0.45 1.05902,-1 z m 97.5,-3.55902 c 0,-0.85746 -0.45,-1.2809 -1,-0.94098 -0.55,0.33992 -1,1.04148 -1,1.55902 0,0.51754 0.45,0.94098 1,0.94098 0.55,0 1,-0.70156 1,-1.55902 z m -94.31689,-5.62848 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19293,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36782,-1.1948 0.0789,-1.91667 z m 109.9709,-6.06018 c -2.68246,-6.06551 -3.60278,-7.02005 -5.58637,-5.79413 -1.02099,0.63101 -0.30087,2.11971 3.04775,6.30059 2.41153,3.0109 4.51617,5.36534 4.67697,5.23209 0.1608,-0.13324 -0.80146,-2.71559 -2.13835,-5.73855 z M 95.44457,476.75711 c 1.32014,-1.57191 1.65335,-2.60039 0.92151,-2.84433 -2.20274,-0.73425 -3.79181,0.66122 -5.92801,5.20579 -2.79522,5.94657 -2.67786,6.80329 0.42475,3.10075 1.38265,-1.65 3.44444,-4.108 4.58175,-5.46221 z m 35.84114,6.52123 c 0,-0.24254 -0.45,-0.7191 -1,-1.05902 -0.55,-0.33992 -1,-0.14148 -1,0.44098 0,0.58246 0.45,1.05902 1,1.05902 0.55,0 1,-0.19844 1,-0.44098 z m 53.81648,-15.42444 c 0.72407,-0.45914 1.41172,-1.46475 1.52812,-2.23469 0.1164,-0.76994 0.59202,-2.00928 1.05693,-2.75408 0.46491,-0.74481 1.06888,-4.00731 1.34215,-7.25 0.38422,-4.55909 0.18619,-5.9027 -0.87341,-5.92622 -0.92642,-0.0206 -0.80343,-0.36056 0.37973,-1.04969 1.34911,-0.78579 1.75,-2.35109 1.75,-6.83308 l 0,-5.81379 -5.24866,0.95397 c -5.04386,0.91675 -9.39928,0.6769 -12.90117,-0.71047 -1.24872,-0.49472 -1.9322,0.202 -2.81131,2.86573 -0.63882,1.93565 -2.25922,5.13695 -3.60088,7.114 l -2.43939,3.59463 3.25071,-0.40575 c 1.78788,-0.22316 2.47774,-0.21422 1.53302,0.0199 -1.4563,0.36085 -1.53239,0.75807 -0.5,2.61031 1.56288,2.80401 2.85611,3.71168 4.16993,2.92674 0.57626,-0.34429 0.44403,0.11869 -0.29386,1.02883 -1.1569,1.42697 -0.9848,1.98549 1.25,4.05663 1.42539,1.321 2.59161,2.74786 2.59161,3.1708 0,1.27567 5.39131,5.50026 7,5.48515 0.825,-0.008 2.09242,-0.38975 2.81648,-0.84889 z m -15.81648,-15.1936 c 0,-0.58246 0.45,-0.7809 1,-0.44098 0.55,0.33992 1,0.81648 1,1.05902 0,0.24254 -0.45,0.44098 -1,0.44098 -0.55,0 -1,-0.47656 -1,-1.05902 z m 12.66856,-2.66824 c -0.7348,-1.18893 3.0271,-2.91041 4.07347,-1.86405 0.32522,0.32522 -0.1212,0.59131 -0.99203,0.59131 -0.87083,0 -1.76345,0.54034 -1.98358,1.20075 -0.29158,0.87473 -0.58966,0.89428 -1.09786,0.072 z m -6.79612,-4.02274 c -1.24387,-1.58606 -1.2085,-1.62143 0.37756,-0.37756 0.9625,0.75485 1.75,1.54235 1.75,1.75 0,0.82304 -0.82119,0.29331 -2.12756,-1.37244 z m -4.37244,-4.25 c -0.33992,-0.55 0.0835,-1 0.94098,-1 0.85746,0 1.55902,0.45 1.55902,1 0,0.55 -0.42344,1 -0.94098,1 -0.51754,0 -1.2191,-0.45 -1.55902,-1 z m 4.13837,-8.5 c 0.31659,-0.825 0.27825,-2.27489 -0.0852,-3.22197 -0.56605,-1.47512 -0.79423,-1.51096 -1.59167,-0.25 -1.25113,1.97837 -1.20906,4.97197 0.0699,4.97197 0.56727,0 1.29041,-0.675 1.60699,-1.5 z m 16.36163,0.5 c 0,-0.55 -0.19844,-1 -0.44098,-1 -0.24254,0 -0.7191,0.45 -1.05902,1 -0.33992,0.55 -0.14148,1 0.44098,1 0.58246,0 1.05902,-0.45 1.05902,-1 z m -65.87809,-4 c -2.35929,-2.2 -4.41448,-4 -4.56709,-4 -0.15261,0 -0.0781,1.0431 0.16564,2.31801 0.45161,2.36243 4.60294,5.60727 7.2353,5.65538 0.80067,0.0146 -0.47457,-1.77339 -2.83385,-3.97339 z m 59.33104,2.83949 c 1.40088,-0.63829 2.54705,-1.76329 2.54705,-2.5 0,-1.84587 -0.5612,-1.70976 -4.78519,1.16051 -3.85987,2.62285 -2.44154,3.47169 2.23814,1.33949 z m 3.27622,-5.44366 c -0.3323,-0.33229 -1.1948,-0.36782 -1.91667,-0.079 -0.79773,0.31923 -0.56078,0.55619 0.60417,0.60417 1.05416,0.0434 1.64479,-0.19293 1.3125,-0.52522 z m -63.54584,-5.6125 c -0.71756,-0.71756 -1.18333,-0.7766 -1.18333,-0.15 0,1.33478 1.18261,2.51739 1.85,1.85 0.28417,-0.28416 -0.0158,-1.04916 -0.66667,-1.7 z m 60.81667,1.21667 c 0,-0.55 -0.19844,-1 -0.44098,-1 -0.24254,0 -0.7191,0.45 -1.05902,1 -0.33992,0.55 -0.14148,1 0.44098,1 0.58246,0 1.05902,-0.45 1.05902,-1 z m -5.38393,-6.8125 c -1.39847,-1.39847 -1.61607,-1.41218 -1.61607,-0.10179 0,2.05451 2.33994,4.39446 2.85357,2.85358 0.20822,-0.62465 -0.34866,-1.86295 -1.2375,-2.75179 z m -48.85906,-0.76383 c -0.98419,-0.98418 -2.75701,0.52669 -2.75701,2.34963 0,1.52648 0.13153,1.52374 1.69048,-0.0352 0.92976,-0.92976 1.4097,-1.97125 1.06653,-2.31442 z m 30.49299,288.91375 c -1.2375,-0.26209 -2.25,-1.08342 -2.25,-1.82518 0,-0.74177 -0.28037,-2.17297 -0.62304,-3.18045 -0.465,-1.36713 -0.19695,-1.26104 1.0567,0.41821 0.92386,1.2375 2.51673,2.25 3.53971,2.25 1.02298,0 2.0414,0.5443 2.26315,1.20956 0.29023,0.87068 2.60553,0.45437 8.26406,-1.48594 9.2653,-3.17708 11.29316,-3.01025 2.47814,0.20387 -6.58488,2.40096 -11.2031,3.1566 -14.72872,2.40993 z m -38.49432,-5.99364 c -4.18969,-1.7379 -4.1217,-2.51584 0.41784,-4.78046 4.1078,-2.04924 4.60477,-1.97292 1.97949,0.30398 -2.76343,2.3967 -2.71538,2.76373 0.59699,4.56073 3.58862,1.94685 1.7795,1.89596 -2.99432,-0.0842 z m 61.54977,-0.45491 c 1.4413,-0.83847 1.56383,-1.34145 0.6075,-2.49376 -1.90676,-2.2975 -0.42705,-2.63302 2.19539,-0.49779 l 2.39166,1.94732 -2.8151,1.07768 c -3.5461,1.35752 -4.74159,1.34072 -2.37945,-0.0335 z M 70.97587,564.28352 c -1.14375,-0.86718 -1.41978,-1.61327 -0.75,-2.02722 0.58291,-0.36026 1.05984,-1.6041 1.05984,-2.76408 0,-3.46469 2.18329,-14.92294 2.73781,-14.36843 0.28243,0.28243 -0.0797,4.16649 -0.80479,8.63124 -1.03105,6.34899 -1.05659,8.53678 -0.11718,10.04101 1.39597,2.2353 0.46207,2.44947 -2.12568,0.48748 z m 157.80984,-1.44388 c -4.82489,-2.60403 -5.07666,-2.95982 -7.18885,-10.15943 -2.24161,-7.64074 -2.74932,-13.6785 -1.6892,-20.08826 0.48535,-2.93456 0.96073,-3.53302 2.48899,-3.13337 2.00733,0.52493 2.69847,2.43496 0.72759,2.01074 -1.43485,-0.30884 -2.60678,3.44381 -2.73885,8.7701 -0.10545,4.25262 3.39363,18.33332 4.94847,19.91323 1.75309,1.78136 1.86324,-0.0528 0.38398,-6.39383 -0.8179,-3.50604 -1.31655,-6.86171 -1.1081,-7.45706 0.20844,-0.59534 1.24658,2.73895 2.30698,7.40955 1.33462,5.87843 2.41266,8.58532 3.50279,8.79526 1.41812,0.27311 1.43755,-0.42258 0.19535,-6.99198 -0.75871,-4.0124 -1.23072,-7.97027 -1.04892,-8.79527 0.1818,-0.825 1.17565,2.8875 2.20855,8.25 1.35522,7.03587 2.28536,9.75 3.34135,9.75 1.20902,0 1.35159,-1.26 0.82034,-7.25 -0.35364,-3.9875 -0.92216,-8.2625 -1.26336,-9.5 -0.34827,-1.26312 -0.17512,-2.25 0.39477,-2.25 0.55832,0 1.32692,3.10462 1.70799,6.89916 0.38107,3.79454 1.27927,8.02947 1.996,9.41096 1.18132,2.27701 1.10268,2.56558 -0.84137,3.08718 -3.10154,0.83217 -3.62533,0.70175 -9.1445,-2.27698 z m -152.83826,-1.4147 c 0.32669,-1.76309 1.20454,-5.90562 1.95077,-9.20562 1.15291,-5.09843 1.28632,-5.32382 0.88782,-1.5 -0.25792,2.475 -0.76969,6.24789 -1.13726,8.38421 -0.52653,3.06014 -0.37539,3.78657 0.71234,3.42399 1.81141,-0.60381 4.13359,-8.61766 3.42167,-11.8082 -0.42517,-1.90544 -0.31643,-2.14326 0.45723,-1 0.7984,1.17983 1.01833,0.87744 1.03038,-1.41667 0.008,-1.60416 0.31294,-2.61903 0.67671,-2.25527 0.36377,0.36377 0.0676,3.80844 -0.65817,7.65482 -1.28005,6.78402 -2.64968,9.05685 -6.21935,10.32074 -1.46017,0.51699 -1.62754,0.12951 -1.12214,-2.598 z m -8.14587,-10.45562 c 0.22025,-5.6375 0.13633,-10.25 -0.1865,-10.25 -0.32283,0 -2.33031,1.575 -4.46105,3.5 -5.82226,5.26006 -10.93099,4.59931 -6.27655,-0.81179 1.32453,-1.53986 2.40823,-2.37974 2.40823,-1.86642 0,0.51333 -0.675,1.49352 -1.5,2.17821 -1.65177,1.37085 -1.99281,3 -0.62801,3 0.47959,0 3.27753,-2.475 6.21764,-5.5 2.94011,-3.025 5.75459,-5.5 6.25439,-5.5 0.90606,0 0.27184,9.13787 -1.38811,20 -0.66717,4.36574 -0.75792,3.38616 -0.44004,-4.75 z M 83.85,559.42619 c 0.37553,-0.98622 0.93469,-1.54122 1.24258,-1.23333 0.30789,0.30789 6.4e-4,1.11479 -0.68278,1.79313 -0.98762,0.98026 -1.10248,0.8654 -0.5598,-0.5598 z m 1.4777,-2.7902 c 0.25444,-2.52485 3.82669,-14.9012 3.87253,-13.41667 0.07,2.26587 -2.49213,12.41094 -3.3513,13.27011 -0.30977,0.30977 -0.54433,0.37572 -0.52123,0.14656 z M 60.28571,537.71932 c 0.5887,-1.1 1.29537,-2 1.57037,-2 0.275,0 0.0183,0.9 -0.57037,2 -0.5887,1.1 -1.29537,2 -1.57037,2 -0.275,0 -0.0183,-0.9 0.57037,-2 z m 3,0.059 c 0,-0.51754 0.44485,-1.21592 0.98855,-1.55194 0.56686,-0.35034 0.7345,0.0511 0.39301,0.94098 -0.66479,1.73244 -1.38156,2.04941 -1.38156,0.61098 z m 24.99384,-1.809 c -0.003,-0.9625 -0.6517,-2.9875 -1.4407,-4.5 -1.19622,-2.29315 -1.20738,-2.75 -0.0672,-2.75 0.75206,0 1.54774,-0.7875 1.76818,-1.75 0.22044,-0.9625 0.46807,1.0625 0.55029,4.5 0.0822,3.4375 -0.0651,6.25 -0.32748,6.25 -0.26233,0 -0.47974,-0.7875 -0.48313,-1.75 z m 155.46504,0.68347 c -0.36253,-0.58659 -0.44468,-1.281 -0.18255,-1.54313 0.26212,-0.26213 0.74306,0.21781 1.06875,1.06653 0.67618,1.76211 0.0999,2.07206 -0.8862,0.4766 z M 64.20347,531.35587 c 1.3317,-1.63978 5.08224,-4.1192 5.08224,-3.35979 0,0.19092 -1.4625,1.41777 -3.25,2.72633 -2.0111,1.47225 -2.70955,1.71373 -1.83224,0.63346 z m 173.08224,-1.13655 c -1.375,-0.78602 -2.02351,-1.44508 -1.44113,-1.46456 0.58238,-0.0195 1.93238,0.62525 3,1.43276 2.46898,1.86744 1.68038,1.88353 -1.55887,0.0318 z m -66.5,-49.5 c -0.33992,-0.55 -0.16803,-1 0.38197,-1 0.55,0 1.27811,0.45 1.61803,1 0.33992,0.55 0.16803,1 -0.38197,1 -0.55,0 -1.27811,-0.45 -1.61803,-1 z m 30.5,-2 c 0,-0.55 0.47656,-1 1.05902,-1 0.58246,0 0.7809,0.45 0.44098,1 -0.33992,0.55 -0.81648,1 -1.05902,1 -0.24254,0 -0.44098,-0.45 -0.44098,-1 z m -65.40732,-0.85004 c -0.30004,-0.48547 0.31257,-1.65923 1.36135,-2.60836 1.82245,-1.6493 1.88247,-1.63239 1.35572,0.38194 -0.63838,2.44116 -1.93016,3.49967 -2.71707,2.22642 z m 34.72174,-0.89996 c -0.34254,-0.9625 -0.82551,-2.12072 -1.07326,-2.57382 -0.24774,-0.45311 0.49664,-0.23236 1.6542,0.49054 1.15755,0.72291 2.10464,1.88113 2.10464,2.57383 0,1.88004 -1.96997,1.52021 -2.68558,-0.49055 z m -46.89983,-26.3882 c -0.45192,-0.73122 -0.29014,-0.90292 0.4309,-0.45729 0.63498,0.39244 1.15451,0.23697 1.15451,-0.34549 0,-0.58246 -0.45,-1.05902 -1,-1.05902 -0.55,0 -1,-0.43588 -1,-0.96862 0,-0.53273 0.675,-0.70959 1.5,-0.39301 1.66876,0.64037 2.00974,2.92856 0.5691,3.81892 -0.512,0.31644 -1.25653,0.0485 -1.65451,-0.59549 z m 12.08541,-8.8618 c -0.33992,-0.55 0.11008,-1 1,-1 0.88992,0 1.33992,0.45 1,1 -0.33992,0.55 -0.78992,1 -1,1 -0.21008,0 -0.66008,-0.45 -1,-1 z m 40.5,-30.40894 c 0,-0.19039 0.675,-0.90637 1.5,-1.59106 0.86459,-0.71755 1.5,-0.81474 1.5,-0.22943 0,0.5585 -0.675,1.27447 -1.5,1.59106 -0.825,0.31658 -1.5,0.41982 -1.5,0.22943 z m -18,-3.09106 c 0,-0.825 0.7301,-1.5 1.62244,-1.5 1.3288,0 1.39713,0.27149 0.37756,1.5 -0.68469,0.825 -1.41479,1.5 -1.62244,1.5 -0.20766,0 -0.37756,-0.675 -0.37756,-1.5 z m -10.5,-1.5 c -0.33992,-0.55 -0.16803,-1 0.38197,-1 0.55,0 1.27811,0.45 1.61803,1 0.33992,0.55 0.16803,1 -0.38197,1 -0.55,0 -1.27811,-0.45 -1.61803,-1 z m 38.27678,-6.05991 c -1.49777,-0.41404 -3.91316,-1.68881 -5.36754,-2.83282 -1.45437,-1.14401 -3.03877,-1.83623 -3.52089,-1.53826 -0.88519,0.54707 -7.2908,-3.79817 -9.68381,-6.56901 -0.7125,-0.825 -2.26296,-3.525 -3.44547,-6 -2.10746,-4.41095 -2.15756,-4.44336 -2.53179,-1.63778 -0.35421,2.65553 -0.47427,2.72774 -1.66265,1 -2.00286,-2.91191 -2.92037,-9.33105 -1.35994,-9.51453 2.88823,-0.33963 3.38242,-0.48815 5.49192,-1.65053 1.84682,-1.01764 2.35951,-0.93065 3.21959,0.54623 0.82152,1.41068 1.05227,1.46121 1.17171,0.25661 0.0818,-0.825 0.44759,-0.15 0.81288,1.5 0.36528,1.65 0.2556,5.43049 -0.24374,8.40109 -0.84663,5.03663 -0.7476,5.52664 1.46753,7.26155 4.2576,3.3346 13.01691,8.09014 17.14817,9.30996 2.27265,0.67103 3.42523,1.41784 2.63403,1.7067 -0.77373,0.28248 -2.63223,0.17483 -4.13,-0.23921 z m -17.77678,-21.94009 c 0,-0.55 -0.47656,-1 -1.05902,-1 -0.58246,0 -0.7809,0.45 -0.44098,1 0.33992,0.55 0.81648,1 1.05902,1 0.24254,0 0.44098,-0.45 0.44098,-1 z m -47.98931,20.64565 c 5.50019,-2.15461 15.26221,-7.39925 17.73931,-9.53043 2.37389,-2.04239 3.13329,-8.48194 1.407,-11.93096 -0.46365,-0.92634 -0.52559,-2.80926 -0.13765,-4.18426 0.79081,-2.80288 1.56772,-1.64657 2.35159,3.5 0.27224,1.78743 0.37998,1.28219 0.26657,-1.25 -0.1047,-2.3375 0.18559,-4.25 0.64508,-4.25 0.45949,0 0.56051,-0.44485 0.22449,-0.98855 -0.35034,-0.56686 0.0511,-0.7345 0.94098,-0.39301 0.85357,0.32755 1.55194,0.99739 1.55194,1.48855 0,0.49115 1.275,0.89301 2.83333,0.89301 1.55834,0 3.05226,0.21892 3.31983,0.48649 0.7496,0.7496 -1.49772,9.51351 -2.43954,9.51351 -0.45741,0 -0.51057,0.51953 -0.11813,1.15451 0.44208,0.7153 0.27432,0.88306 -0.44098,0.44098 -0.63498,-0.39244 -1.15451,-1.61352 -1.15451,-2.71352 0,-2.87623 -1.72801,-1.39684 -2.50603,2.14548 -0.66898,3.04584 -9.2705,11.45404 -11.75564,11.49142 -0.68987,0.0104 -2.82571,0.98509 -4.74632,2.16604 -1.9206,1.18094 -5.29201,2.41465 -7.49201,2.74158 l -4,0.59442 3.51069,-1.37526 z m 50.62768,-27.14565 c 0.31659,-0.825 0.75246,-1.5 0.96862,-1.5 0.21615,0 0.39301,0.675 0.39301,1.5 0,0.825 -0.43588,1.5 -0.96862,1.5 -0.53273,0 -0.70959,-0.675 -0.39301,-1.5 z m -34.17949,-0.56653 c -0.36253,-0.58659 -0.44468,-1.281 -0.18255,-1.54313 0.26212,-0.26213 0.74306,0.21781 1.06875,1.06653 0.67618,1.76211 0.0999,2.07206 -0.8862,0.4766 z m -2.95888,-7.93347 c -0.33992,-0.55 -0.14148,-1 0.44098,-1 0.58246,0 1.05902,0.45 1.05902,1 0,0.55 -0.19844,1 -0.44098,1 -0.24254,0 -0.7191,-0.45 -1.05902,-1 z m 36.5,0.62245 c 0,-0.20766 0.7875,-0.99516 1.75,-1.75 1.58606,-1.24388 1.62143,-1.20851 0.37756,0.37755 -1.30637,1.66575 -2.12756,2.19548 -2.12756,1.37245 z m -35.02967,-3.67789 c -0.60502,-1.13049 -0.95186,-2.49997 -0.77076,-3.04328 0.18111,-0.54331 0.8462,0.38164 1.47799,2.05544 1.31392,3.48097 0.92087,4.02997 -0.70723,0.98784 z m 38.18756,-1.94456 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m -38.92589,-7 c 0,-1.925 0.2058,-2.7125 0.45733,-1.75 0.25152,0.9625 0.25152,2.5375 0,3.5 -0.25153,0.9625 -0.45733,0.175 -0.45733,-1.75 z m 38.90418,-0.66821 c -0.0749,-1.19252 -0.39516,-2.99252 -0.71169,-4 -0.54481,-1.73409 -0.51463,-1.73692 0.56579,-0.053 0.62771,0.97831 0.94797,2.77831 0.71168,4 -0.42917,2.21904 -0.42973,2.21909 -0.56578,0.053 z"
- id="path3036"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#676767"
- d="m 136.47321,703.08083 c -2.37188,-0.86341 -4.12957,-1.75277 -3.90599,-1.97635 0.22358,-0.22358 2.33328,0.27329 4.68823,1.10416 4.8432,1.70878 9.48943,2.08711 7.10593,0.57861 -1.06688,-0.67522 -0.70036,-0.98507 1.46046,-1.23469 2.05022,-0.23683 3.10928,-1.05648 3.66079,-2.83324 0.59438,-1.91485 0.65971,-1.69785 0.27913,0.92708 -0.27329,1.8849 -0.62159,3.55179 -0.77401,3.70421 -1.20209,1.20209 -8.92875,1.03552 -12.51454,-0.26978 z m 25.0625,0.65265 c -2.51542,-1.06175 -3.15637,-3.57595 -0.66821,-2.62115 0.86998,0.33385 2.33248,0.61388 3.25,0.6223 1.45275,0.0133 1.47448,0.15293 0.16821,1.08078 -1.1171,0.79348 -0.43744,0.91776 2.66258,0.48685 2.28942,-0.31824 4.98942,-0.83857 6,-1.15628 1.57795,-0.4961 1.61202,-0.43094 0.2413,0.46141 -2.39092,1.55649 -9.09864,2.20465 -11.65388,1.12609 z m -40.17974,-6.43097 -2.42973,-1.34594 3.42973,-1.77315 c 3.03792,-1.57059 3.27295,-1.58414 2.0573,-0.11863 -1.10076,1.327 -1.12601,1.95147 -0.12756,3.15453 1.52845,1.84167 0.30733,1.87634 -2.92974,0.0832 z m 63.23519,0.30568 c 1.4413,-0.83847 1.56383,-1.34145 0.6075,-2.49376 -1.90676,-2.2975 -0.42705,-2.63302 2.19539,-0.49779 l 2.39166,1.94732 -2.8151,1.07768 c -3.5461,1.35752 -4.74159,1.34072 -2.37945,-0.0335 z m -44.50964,-3.13887 c -0.18881,-1.2375 -0.91438,-2.13108 -1.61237,-1.98573 -0.97969,0.20401 -1.0161,-0.20843 -0.15969,-1.80865 1.33285,-2.49045 0.26583,-9.02239 -1.11714,-6.83876 -0.48179,0.76073 -0.88288,2.39564 -0.8913,3.63314 -0.008,1.2375 -0.38735,2.25 -0.84207,2.25 -0.45472,0 -0.36532,-2.25257 0.19865,-5.00572 0.87795,-4.28583 0.68903,-6.11944 -1.31364,-12.75 -4.93445,-16.33729 -9.05825,-34.81845 -9.05825,-40.59534 0,-3.27216 0.72732,-9.53883 1.61626,-13.92594 2.47234,-12.20152 1.58454,-22.95756 -2.86605,-34.723 -6.30438,-16.6661 -7.8828,-24.12223 -8.46777,-40 -0.40572,-11.01215 -0.15677,-16.30406 1.03495,-22 0.86305,-4.125 2.04952,-12 2.63661,-17.5 0.58708,-5.5 1.81301,-14.18771 2.72428,-19.30603 l 1.65685,-9.30603 -3.11071,-9.1739 c -1.7109,-5.04565 -3.35815,-8.50794 -3.66057,-7.69397 -0.30242,0.81396 -0.94608,4.62993 -1.43035,8.47993 -0.48428,3.85 -0.93743,5.78486 -1.007,4.29969 -0.0696,-1.48517 -0.90055,-3.13349 -1.8466,-3.66293 -1.60456,-0.89795 -1.57098,-1.32242 0.5,-6.31901 2.70895,-6.53585 2.76416,-7.81775 0.33668,-7.81775 -1.25991,0 -2.05831,-0.9104 -2.4117,-2.75 -0.70934,-3.6926 -0.0499,-4.10141 1.41819,-0.87923 1.15521,2.53541 3.87693,3.67917 3.87693,1.62923 0,-0.55 -0.5625,-1.00689 -1.25,-1.01531 -0.80715,-0.01 -0.88282,-0.2756 -0.21358,-0.75 0.57003,-0.40408 1.17477,-2.51235 1.34388,-4.68505 0.26715,-3.43243 0.1088,-3.78549 -1.20775,-2.69285 -1.28397,1.06561 -1.43375,0.94603 -0.98144,-0.78359 0.79745,-3.04947 -0.5131,-7.0732 -2.30378,-7.0732 -0.86601,0 -1.80993,0.9 -2.09758,2 -0.28766,1.1 -0.92053,2 -1.40638,2 -0.48585,0 -0.90851,0.7875 -0.93924,1.75 -0.0307,0.9625 -0.92623,3.775 -1.98999,6.25 l -1.93412,4.5 0.28153,-4.50819 c 0.15483,-2.4795 0.62689,-5.067 1.049,-5.75 0.5175,-0.83733 0.0888,-1.24181 -1.31628,-1.24181 -3.48626,0 -4.31488,4.16194 -3.6375,18.27025 0.67654,14.09072 0.0701,16.81121 -5.25359,23.56795 -4.30646,5.46567 -9.55313,16.25634 -7.52599,15.47845 1.27067,-0.4876 1.48282,-0.16198 0.99821,1.53208 -0.33847,1.1832 -0.87072,3.05127 -1.18279,4.15127 -0.31206,1.1 -0.0935,2 0.4856,2 0.57915,0 1.58832,-2.12596 2.2426,-4.72437 0.65429,-2.5984 1.37696,-4.16233 1.60594,-3.47539 0.38275,1.14825 -2.68851,15.6337 -4.8129,22.69976 l -0.90194,3 0.28564,-3.14632 c 0.20543,-2.26287 -0.0826,-3.00499 -1.02596,-2.64301 -0.76206,0.29243 -1.31159,-0.20209 -1.31159,-1.18028 0,-1.00007 -1.47166,0.27594 -3.62493,3.14301 -5.10722,6.80027 -5.79148,7.35828 -3.77272,3.0766 0.97244,-2.0625 2.12061,-3.75 2.55148,-3.75 0.43087,0 0.49605,-0.74882 0.14485,-1.66404 -0.39796,-1.03707 -0.24029,-1.41791 0.41848,-1.01077 0.58136,0.35931 1.0039,0.0956 0.93895,-0.58595 -0.0649,-0.68158 1.5826,-8.2351 3.66121,-16.78558 2.68369,-11.03956 4.70743,-17.08145 6.98098,-20.84174 7.22164,-11.9441 6.74729,-9.5296 6.62581,-33.72629 -0.11043,-21.99426 -0.0965,-22.14501 2.55838,-27.75704 2.75848,-5.83094 6.08869,-8.90622 13.01751,-12.02101 l 4,-1.79816 -2.5,2.4019 c -1.375,1.32105 -2.98834,2.24425 -3.58519,2.05155 -1.6897,-0.54553 -5.40883,2.97869 -5.89828,5.58916 -0.24255,1.29361 -0.90196,2.90746 -1.46538,3.58633 -2.20918,2.6619 -4.06251,9.72447 -2.99541,11.41471 0.87295,1.38272 0.94878,1.31024 0.47263,-0.45179 -0.34463,-1.27539 0.51931,-4.17474 2.20226,-7.3906 2.20134,-4.20646 3.33343,-5.35161 5.51937,-5.58306 3.09182,-0.32737 3.18264,-0.17021 1.66886,2.88812 -0.60842,1.22922 0.0791,0.76324 1.57248,-1.06574 4.0432,-4.95188 4.67054,-3.9182 1.97244,3.25 -1.34563,3.575 -2.02282,6.5 -1.50488,6.5 0.51795,0 1.30158,-0.60707 1.74141,-1.34905 0.43983,-0.74198 1.97824,-1.97948 3.41869,-2.75 11.80335,-6.31382 12.52479,-7.1143 9.30957,-10.32952 -2.82536,-2.82536 -0.28108,-1.64847 3.43941,1.59095 1.99761,1.7393 4.16029,4.5518 4.80594,6.25 0.64566,1.69819 1.24259,2.63762 1.32651,2.08762 0.53482,-3.50493 1.09508,-4.72656 3.61753,-7.88784 3.04922,-3.82146 4.69168,-3.17861 3.39858,1.33018 -1.63125,5.68781 -6.01654,12.21123 -6.01654,8.95001 0,-0.67413 -0.24526,-0.98042 -0.54503,-0.68066 -0.29976,0.29977 -0.014,2.65411 0.63513,5.23186 l 1.18016,4.68684 3.36487,-3.26136 c 1.85068,-1.79375 3.36487,-3.77834 3.36487,-4.41021 0,-0.63186 0.82293,-1.89359 1.82874,-2.80383 2.02012,-1.82819 4.66652,-2.26536 3.63787,-0.60096 -0.35829,0.57971 -0.67671,4.51721 -0.70762,8.75 -0.0411,5.62511 -0.21801,6.62779 -0.65759,3.72629 l -0.6014,-3.96969 -1.60587,2.46969 c -0.88323,1.35832 -1.95638,3.59468 -2.38478,4.96968 -0.4284,1.375 -1.27976,2.82047 -1.89192,3.21216 -0.77781,0.49768 -0.54387,1.76896 0.77678,4.22126 1.03938,1.93 2.27906,3.26851 2.75485,2.97446 0.47578,-0.29406 1.01866,0.0564 1.20639,0.77874 0.18773,0.72236 0.84531,2.88838 1.4613,4.81338 l 1.11998,3.5 -2.03,-2.4369 c -2.95911,-3.55224 -8.90673,-13.94114 -8.90673,-15.55766 0,-0.76307 -0.41538,-1.64412 -0.92306,-1.95789 -0.50769,-0.31377 -1.21844,-1.91532 -1.57946,-3.55902 -0.70947,-3.23022 -2.2034,-3.91848 -3.15015,-1.45129 -0.32444,0.84549 0.13968,2.34342 1.03139,3.32875 2.05764,2.27366 2.03672,2.75803 -0.12872,2.98032 -7.0832,0.7271 -15.25,-0.57648 -15.25,-2.43421 0,-0.77665 -0.3375,-1.41281 -0.75,-1.41367 -1.03226,-0.002 0.64178,23.51154 2.04695,28.75157 0.62682,2.3375 1.56644,4.25 2.08803,4.25 0.52159,0 0.65535,0.29301 0.29723,0.65112 -0.35812,0.35812 0.1211,1.21579 1.06492,1.90593 1.39489,1.01997 2.27176,0.96742 4.68556,-0.2808 3.25833,-1.68495 5.24946,-3.40771 5.13874,-4.44613 -0.0393,-0.36843 1.04716,-1.94343 2.41433,-3.5 1.36717,-1.55657 2.49217,-3.12426 2.5,-3.48376 0.0235,-1.07952 5.34895,-5.67832 5.91734,-5.10993 0.28959,0.2896 0.0765,1.36737 -0.47347,2.39505 -0.55,1.02769 -0.68072,1.86852 -0.2905,1.86852 0.39022,0 -0.34739,1.125 -1.63913,2.5 -1.63415,1.73947 -1.91534,2.50466 -0.92431,2.51531 0.84886,0.009 1.02029,0.31214 0.42431,0.75 -2.7949,2.05338 -7.08981,11.15386 -7.4108,15.70275 -0.23405,3.31671 0.18706,4.36065 2.56539,6.35975 1.56498,1.31543 2.17041,2.08099 1.34541,1.70126 -0.825,-0.37973 -0.2625,0.4493 1.25,1.84229 1.5125,1.39299 2.76527,2.89179 2.78393,3.33067 0.0187,0.43889 0.90339,2.59797 1.96607,4.79797 2.24094,4.6393 2.45852,5.90141 0.84549,4.90451 -0.72104,-0.44563 -0.88282,-0.27393 -0.4309,0.45729 0.39798,0.64395 1.05994,0.96296 1.47102,0.70889 0.99118,-0.61258 3.89936,4.38985 4.34891,7.48065 0.50605,3.47923 2.59993,6.94866 4.19367,6.94866 1.43618,0 2.44747,-1.88485 3.21923,-6 0.25787,-1.375 1.2185,-3.625 2.13473,-5 0.91623,-1.375 1.67756,-2.9071 1.69186,-3.40467 0.0342,-1.18968 3.52599,-1.69161 3.52599,-0.50685 0,0.50134 0.76101,0.91152 1.69113,0.91152 1.47529,0 1.44479,-0.18013 -0.23897,-1.41132 -1.06156,-0.77623 -2.32078,-1.16988 -2.79827,-0.87478 -1.91133,1.18128 2.61445,-9.86179 4.77732,-11.65681 0.85072,-0.70604 1.34208,-1.61489 1.09191,-2.01968 -0.25017,-0.40479 0.631,-1.31712 1.95816,-2.02739 1.39173,-0.74483 2.5558,-2.39579 2.75037,-3.90072 0.50956,-3.94151 -1.70522,-10.69496 -4.65837,-14.20458 -2.05992,-2.44808 -2.3819,-3.43039 -1.48042,-4.51661 0.90225,-1.08714 0.80025,-1.38811 -0.47042,-1.38811 -0.89234,0 -1.62244,-0.675 -1.62244,-1.5 0,-0.825 -0.45,-1.5 -1,-1.5 -0.55,0 -1,-1.13847 -1,-2.52994 l 0,-2.52993 3,2.21799 c 1.65,1.2199 3.00777,2.69587 3.01728,3.27994 0.01,0.58407 1.13285,2.12008 2.49633,3.41337 1.36348,1.29328 2.22915,2.75578 1.9237,3.25 -0.30544,0.49421 -0.0522,0.89857 0.56269,0.89857 0.61492,0 0.83992,0.45 0.5,1 -0.33992,0.55 0.10234,1 0.9828,1 0.88045,0 2.51299,0.84981 3.62785,1.88846 1.98999,1.85395 2.06844,1.84939 4.29411,-0.25 3.23601,-3.05239 4.38737,-7.22334 5.06766,-18.35824 0.32864,-5.37912 0.8174,-11.50084 1.08614,-13.60381 0.31951,-2.50029 0.12871,-3.60117 -0.55129,-3.1809 -0.57194,0.35348 -0.78915,1.0484 -0.48268,1.54427 1.18209,1.91267 -11.32588,3.19285 -16.67853,1.70703 -2.35342,-0.65328 -2.77983,-0.37557 -3.7657,2.45252 -1.16824,3.3512 -8.20257,14.7769 -9.10679,14.79192 -0.28953,0.005 -0.35983,-1.73809 -0.15623,-3.87311 0.29734,-3.11791 0.71522,-3.79163 2.12338,-3.42339 2.48755,0.65051 4.88589,-5.14148 3.22814,-7.79596 -0.64287,-1.02941 -1.16886,-2.34359 -1.16886,-2.9204 0,-0.57682 -0.7875,-2.25803 -1.75,-3.73603 l -1.75,-2.68727 -0.62358,4.97245 -0.62357,4.97246 -0.0567,-5.5 c -0.0312,-3.025 -0.36006,-7.6375 -0.73087,-10.25 -0.39808,-2.80482 -0.28536,-4.75 0.27529,-4.75 1.11248,0 4.25943,3.29332 4.25943,4.45754 0,0.44003 1.55853,2.52516 3.46339,4.63362 l 3.46339,3.83356 1.03103,-3.71236 c 1.34224,-4.8329 1.3083,-6.26859 -0.14094,-5.96236 -1.63809,0.34613 -5.79744,-8.09388 -5.79057,-11.75 l 0.006,-3 3.09601,3.5 c 1.70281,1.925 3.54197,4.625 4.08701,6 l 0.991,2.5 0.91269,-2.37949 c 0.98076,-2.55786 7.63736,-9.12051 9.25072,-9.12051 0.53839,0 -0.11204,1.16127 -1.44542,2.58059 -2.37496,2.52807 -2.3848,2.60948 -0.48318,4 1.06762,0.78068 2.46038,1.41941 3.09501,1.41941 0.63464,0 1.96837,0.9 2.96386,2 0.99549,1.1 2.3977,2 3.11603,2 0.71833,0 2.21884,0.97975 3.33445,2.17723 2.36743,2.54113 3.69693,1.90098 2.13054,-1.02584 -1.41669,-2.64711 -1.37935,-4.4538 0.0735,-3.5559 0.72104,0.44563 0.88282,0.27393 0.4309,-0.45729 -0.39798,-0.64396 -1.14251,-0.91193 -1.65451,-0.59549 -0.51199,0.31643 -0.98715,0.0988 -1.0559,-0.48369 -0.23866,-2.02197 -0.40986,-2.56568 -1.19933,-3.80902 -1.27761,-2.01211 0.49384,-1.43924 3.09226,1 1.61638,1.51735 2.28861,1.76157 2.06445,0.75 -0.18281,-0.825 0.23012,-1.455 0.91762,-1.4 0.6875,0.055 1.91344,0.1675 2.72432,0.25 0.81088,0.0825 2.23341,1.6125 3.1612,3.4 0.99189,1.91101 1.86874,2.71116 2.1283,1.94214 0.24278,-0.71933 -0.27976,-2.10476 -1.1612,-3.07874 -0.88144,-0.97399 -1.61263,-2.41045 -1.62486,-3.19214 -0.0352,-2.24781 -3.58129,-6.27806 -5.0998,-5.79603 -0.75789,0.24057 -2.72797,-0.87336 -4.37797,-2.47541 l -3,-2.91281 5.5,2.74549 c 7.17618,3.58222 8.70898,5.0188 11.75542,11.0175 2.52446,4.97088 2.53897,5.14709 2.49119,30.25233 -0.0264,13.88879 0.3521,25.49966 0.8412,25.80194 0.48911,0.30228 0.62755,-0.26127 0.30765,-1.25233 -0.98596,-3.05457 3.26469,2.66663 6.46235,8.69806 2.86296,5.4001 9.84453,31.68559 9.37803,35.30809 -0.12807,0.99445 0.21133,1.53358 0.7542,1.19806 0.58548,-0.36184 0.71916,0.0881 0.32857,1.10596 -0.41923,1.09248 -0.26879,1.47513 0.41404,1.05312 0.61809,-0.382 1.53194,0.65502 2.1568,2.4475 0.94116,2.69982 0.88948,2.94869 -0.39157,1.88551 -0.81172,-0.67367 -1.18628,-1.69339 -0.83236,-2.26606 0.3649,-0.59042 0.16211,-0.74368 -0.46842,-0.35399 -0.64746,0.40015 -1.78708,-0.61841 -2.72825,-2.43842 -0.88898,-1.7191 -1.86281,-2.87914 -2.16408,-2.57787 -0.30127,0.30126 0.63441,2.56498 2.07929,5.03048 1.7873,3.04979 2.26988,4.70346 1.50969,5.17328 -1.19263,0.73709 -2.85311,-1.20965 -2.87844,-3.37468 -0.008,-0.71996 -0.44444,-1.0438 -0.96893,-0.71965 -0.55858,0.34523 -1.07639,-2.18635 -1.25,-6.11128 -0.20678,-4.67491 -0.72246,-6.84158 -1.70573,-7.1668 -1.04241,-0.34478 -1.20369,0.025 -0.61946,1.4203 0.43444,1.03755 0.94889,4.36145 1.14323,7.38645 0.40501,6.30454 0.0213,5.25964 -3.60035,-9.80519 -2.32105,-9.65468 -2.19444,-13.96243 0.16486,-5.60913 0.73864,2.61523 1.94425,4.95538 2.67913,5.20034 1.05179,0.3506 1.10266,0.009 0.23905,-1.60458 -1.42381,-2.6604 -1.51355,-8.37323 -0.0971,-6.18144 0.61372,0.94967 0.97499,1.05269 0.98469,0.28079 0.0247,-1.96981 -3.97052,-9.23657 -9.41542,-17.12518 -5.60753,-8.12422 -5.76853,-9.05903 -4.41854,-25.65561 0.72992,-8.97351 -0.57149,-14.76871 -3.44009,-15.31872 -1.40438,-0.26927 -1.68571,0.1584 -1.30761,1.98782 0.26496,1.28199 0.71887,4.1309 1.0087,6.3309 l 0.52697,4 -2.45649,-5 c -1.35106,-2.75 -2.46227,-5.70265 -2.46934,-6.56144 -0.007,-0.85879 -0.93745,-2.55385 -2.06749,-3.76681 -1.85371,-1.98972 -2.20582,-2.05416 -3.60099,-0.659 -1.028,1.02801 -1.32788,2.41689 -0.89458,4.14329 0.48746,1.9422 0.31232,2.46666 -0.69467,2.08024 -1.79241,-0.68781 -2.29109,5.30655 -0.53421,6.42143 0.99958,0.63431 1.00593,0.81501 0.0291,0.82698 -0.6875,0.008 -1.25,0.69031 -1.25,1.51531 0,2.2177 2.75817,1.82038 4.04419,-0.58258 0.95707,-1.78829 1.27998,-1.8752 2.28519,-0.61503 0.64384,0.80715 1.84562,1.69067 2.67062,1.96338 2.09993,0.69415 -3.89566,2.99478 -6.22032,2.38687 -2.27169,-0.59406 -2.21786,0.78491 0.24228,6.20656 2.33035,5.13564 2.45952,6.75692 0.62467,7.84111 -0.74435,0.43983 -1.60882,1.47469 -1.92105,2.29969 -0.31223,0.825 -0.63484,-0.75 -0.71692,-3.5 -0.0821,-2.75 -0.5193,-5.9 -0.97161,-7 -0.82238,-2 -0.82238,-2 -1.50284,0 -0.37425,1.1 -1.82711,4.99531 -3.22858,8.65623 -2.5259,6.59822 -2.5344,6.72025 -0.97465,14 0.8654,4.03908 2.29452,13.64377 3.17582,21.34377 0.88129,7.7 2.30373,17.53773 3.16097,21.86163 1.32694,6.69308 1.3887,9.94838 0.41553,21.9006 -1.04261,12.80516 -1.59338,15.32204 -6.26689,28.63837 -4.87555,13.89199 -5.14329,15.1877 -5.52568,26.74061 -0.29308,8.85452 0.0192,13.7663 1.1537,18.14435 2.21054,8.53074 1.98256,11.89353 -1.91281,28.21444 -3.5734,14.97194 -8.87876,32.18857 -8.01198,26 0.43994,-3.14103 0.38298,-3.24904 -0.55534,-1.05306 -0.7259,1.69885 -0.72741,3.9304 -0.005,7.29922 1.29578,6.042 1.23692,6.95211 -0.24278,3.75384 -1.08684,-2.34912 -1.17682,-2.2139 -1.49102,2.24056 -0.18391,2.60731 -0.98213,5.98231 -1.77381,7.5 l -1.43944,2.75944 0.002,-4 c 0.004,-6.90082 1.96052,-21.76762 3.61997,-27.5 0.8757,-3.025 1.67819,-6.04948 1.78331,-6.72106 0.10512,-0.67158 0.50415,-1.53408 0.88674,-1.91666 1.40179,-1.40179 0.644,-2.40503 -1.10827,-1.46724 -0.99214,0.53098 -2.39195,0.60196 -3.1107,0.15775 -1.91196,-1.18165 -5.0698,-0.0769 -5.18454,1.81384 -0.0545,0.89835 -0.19459,7.70837 -0.31127,15.13337 -0.1945,12.37707 -1.42561,19.9693 -3.62678,22.36636 -0.43756,0.4765 -0.50933,-4.2485 -0.15949,-10.5 1.11428,-19.91187 0.68273,-35.83083 -1.13912,-42.02027 -2.04786,-6.95756 -2.10044,-13.63213 -0.16413,-20.84609 1.96955,-7.33781 1.87681,-10.50594 -0.4898,-16.73256 -1.76673,-4.64829 -1.96207,-7.32811 -1.7495,-24 0.13162,-10.32209 -0.16386,-25.06744 -0.65661,-32.76744 -1.38846,-21.69675 -2.66383,-12.94407 -3.20566,22 -0.4217,27.19652 -0.66241,30.57325 -2.57589,36.13433 -2.06899,6.01301 -2.0764,6.28009 -0.37497,13.50497 1.85263,7.86694 1.73758,18.10335 -0.28505,25.3607 -1.38147,4.95681 -1.4891,27.89513 -0.16904,36.027 0.53826,3.3158 0.62556,8.03913 0.19407,10.5 l -0.78429,4.473 -1.70163,-4.92814 c -1.31372,-3.80466 -1.70164,-8.42109 -1.70164,-20.25 0,-12.42975 -0.26294,-15.32186 -1.39301,-15.32186 -0.76616,0 -1.71123,-0.7875 -2.10016,-1.75 -0.62526,-1.54736 -0.80949,-1.4844 -1.59095,0.54377 -0.75745,1.96582 -1.18429,2.13295 -2.98549,1.16897 -1.15593,-0.61863 -2.36314,-0.86332 -2.6827,-0.54376 -0.31956,0.31956 -0.13102,0.58102 0.41898,0.58102 0.55,0 1.03129,0.5625 1.06954,1.25 0.0382,0.6875 0.99492,4.73781 2.12593,9.00068 1.93347,7.2874 4.11122,30.74932 2.85417,30.74932 -0.31747,0 -0.73169,-1.0125 -0.9205,-2.25 z m 7.90992,-13 c -0.23835,-1.2375 -0.43337,-0.225 -0.43337,2.25 0,2.475 0.19502,3.4875 0.43337,2.25 0.23836,-1.2375 0.23836,-3.2625 0,-4.5 z m 14.29427,4.30902 c 0,-0.51754 -0.45,-1.2191 -1,-1.55902 -0.55,-0.33992 -1,0.0835 -1,0.94098 0,0.85746 0.45,1.55902 1,1.55902 0.55,0 1,-0.42344 1,-0.94098 z m -25,-11.05902 c -0.67396,-2.80937 -1.4073,-4.92604 -1.62964,-4.70369 -0.22234,0.22234 0.13023,2.71977 0.78349,5.54984 0.65326,2.83008 1.38659,4.94674 1.62963,4.7037 0.24305,-0.24304 -0.10952,-2.74048 -0.78348,-5.54985 z m 8,-21 c 0,-0.55 -0.7875,-1.00689 -1.75,-1.01531 -1.09017,-0.01 -1.33078,-0.29233 -0.63815,-0.75 1.536,-1.01495 2.34171,-7.23469 0.9372,-7.23469 -0.60751,0 -1.95393,-0.99198 -2.99203,-2.20439 -1.8341,-2.14208 -1.90719,-2.14915 -2.58575,-0.25 -0.39368,1.10184 -0.21255,2.27488 0.41522,2.68908 0.61243,0.40408 0.81281,0.74158 0.4453,0.75 -0.36752,0.008 -1.45384,0.31678 -2.41405,0.68525 -1.27051,0.48754 -1.52714,0.31609 -0.94259,-0.62973 0.53956,-0.87303 0.34721,-1.14782 -0.58595,-0.83708 -0.76406,0.25443 -1.54496,1.26611 -1.73533,2.24817 -0.23303,1.20208 0.0545,1.53799 0.87973,1.02793 0.79736,-0.49279 1.04943,-0.27202 0.72113,0.63157 -0.2776,0.76406 -1.01098,1.2767 -1.62973,1.1392 -1.53612,-0.34136 -1.41229,0.60557 0.30357,2.32143 1.3087,1.3087 4.57143,2.01791 4.57143,0.99367 0,-0.2392 -0.4454,-1.60639 -0.98978,-3.03821 -0.9239,-2.43006 -0.74733,-2.36785 2.65341,0.9349 3.68376,3.57763 5.33637,4.36368 5.33637,2.53821 z m 23.62968,-0.52266 c -0.22006,-0.57345 0.52295,-2.15295 1.65112,-3.50999 1.93257,-2.32464 1.9469,-2.00125 0.11221,2.53265 -0.44918,1.11003 0.0861,1.5 2.05902,1.5 1.52269,0 2.40096,-0.42885 2.04797,-1 -0.33992,-0.55 -0.14148,-1 0.44098,-1 0.58246,0 1.05902,-0.45 1.05902,-1 0,-0.55 -0.50625,-0.8875 -1.125,-0.75 -0.61875,0.1375 -1.35213,-0.37514 -1.62973,-1.1392 -0.3283,-0.90359 -0.0762,-1.12436 0.72113,-0.63157 0.82528,0.51006 1.11276,0.17415 0.87973,-1.02793 -0.19037,-0.98206 -0.97127,-1.99374 -1.73533,-2.24817 -0.91406,-0.30437 -1.12296,-0.0318 -0.6108,0.79687 0.5122,0.82876 0.30332,1.10111 -0.6108,0.7964 -0.76406,-0.25469 -1.3892,-1.40057 -1.3892,-2.5464 0,-3.11118 -1.19372,-3.71329 -2.67126,-1.34738 -0.72041,1.15356 -1.87659,2.09738 -2.56929,2.09738 -1.93821,0 -1.54624,6.06475 0.49055,7.59002 1.59179,1.19203 1.54659,1.25926 -0.5,0.74361 -1.2375,-0.31179 -2.25,-0.11697 -2.25,0.43294 0,0.5499 1.3567,0.94438 3.01489,0.87662 1.65819,-0.0678 2.83484,-0.5924 2.61479,-1.16585 z m -35.77491,-13.80235 c 0.60482,-0.72876 1.61137,-3.76626 2.23678,-6.75 1.80847,-8.62789 1.80526,-8.6238 3.97331,-5.05872 1.08838,1.78968 1.71747,3.67691 1.39799,4.19385 -0.59636,0.96492 0.70458,1.30574 3.78715,0.99218 0.9625,-0.0979 1.75,0.30027 1.75,0.88484 0,0.58457 0.43588,1.06286 0.96861,1.06286 0.53274,0 0.73188,-0.61693 0.44254,-1.37096 -0.28935,-0.75402 0.17477,-1.6399 1.03138,-1.96861 1.99072,-0.76392 1.97819,-4.75243 -0.0351,-11.16043 -0.864,-2.75 -1.56336,-8.2299 -1.55414,-12.17756 0.0156,-6.67754 -0.17029,-7.30451 -2.66828,-9 -1.47676,-1.00234 -3.36003,-1.82303 -4.18503,-1.82376 -0.825,-7.2e-4 -1.5,-0.52572 -1.5,-1.16667 0,-0.64094 -0.3375,-1.50284 -0.75,-1.91534 -0.4125,-0.4125 -0.75,-0.0266 -0.75,0.85765 0,0.8842 0.38524,1.84574 0.85608,2.13673 1.03929,0.64232 0.25237,10.49255 -1.00571,12.58895 -0.80015,1.33333 -0.88423,1.33333 -0.75678,0 0.0789,-0.825 0.0764,-2.85 -0.006,-4.5 -0.2402,-4.83994 -1.99173,-0.71511 -2.74121,6.45554 -0.35104,3.35858 -1.02269,6.34411 -1.49256,6.63451 -0.46986,0.29039 -0.85726,-0.0611 -0.86089,-0.78103 -0.004,-0.71996 -0.878,0.0129 -1.94306,1.6286 -1.06506,1.61569 -1.72976,3.27209 -1.4771,3.6809 0.25266,0.40881 0.002,1.02594 -0.55694,1.3714 -0.55898,0.34546 -1.01632,2.6 -1.01632,5.01008 0,2.41008 0.45734,4.66462 1.01631,5.01008 0.55897,0.34546 0.73812,1.07824 0.39811,1.62839 -0.5759,0.93182 2.31429,4.66962 3.71314,4.8021 0.34515,0.0327 1.1224,-0.53683 1.72721,-1.26558 z m -2.85477,-3.21921 c 0,-0.11599 0.675,-0.77109 1.5,-1.45578 1.21651,-1.00961 1.5,-0.96975 1.5,0.21089 0,0.80068 -0.675,1.45578 -1.5,1.45578 -0.825,0 -1.5,-0.0949 -1.5,-0.21089 z m 49.11791,3.48112 c 1.09253,-0.58471 1.89379,-1.82221 1.78057,-2.75 -0.11322,-0.9278 0.15388,-2.51982 0.59355,-3.53782 0.52627,-1.21852 0.32253,-2.15289 -0.59631,-2.73469 -0.99765,-0.63171 -1.03921,-0.88813 -0.14572,-0.89908 1.4576,-0.0179 1.70369,-4.61688 0.29367,-5.48832 -0.52598,-0.32507 -0.7203,-1.20611 -0.43182,-1.95786 0.28847,-0.75176 0.0438,-1.6639 -0.54368,-2.027 -0.58749,-0.36309 -1.06817,-1.56016 -1.06817,-2.66016 0,-1.10009 -0.45729,-1.71738 -1.01631,-1.37189 -0.55897,0.34546 -0.75742,1.04702 -0.44098,1.55902 0.31643,0.51199 0.10734,0.9309 -0.46464,0.9309 -1.17335,0 -1.71902,-2.15743 -2.4675,-9.75584 -0.89328,-9.06844 -2.52544,-9.815 -2.72003,-1.24416 l -0.17028,7.5 -0.73188,-7.64786 c -0.40254,-4.20632 -1.38853,-8.58534 -2.19109,-9.73116 -1.45667,-2.07969 -1.46388,-2.07842 -4.15851,0.73417 -2.37638,2.4804 -2.74379,3.76422 -3.07114,10.73116 -0.2045,4.35253 -0.86588,9.18048 -1.46973,10.72879 -0.60385,1.5483 -1.09791,4.85895 -1.09791,7.35699 0,3.71071 0.28647,4.43196 1.56539,3.94119 1.23668,-0.47456 1.42307,-0.12955 0.88761,1.64301 -0.55292,1.83034 -0.436,2.01342 0.63461,0.99371 0.72181,-0.6875 2.32155,-1.25 3.55497,-1.25 1.71416,0 2.15062,-0.47756 1.85228,-2.02671 -0.21467,-1.11469 0.023,-1.77129 0.5281,-1.4591 0.50512,0.31218 1.20538,-0.5758 1.55613,-1.97329 0.35075,-1.3975 1.03894,-2.5409 1.52932,-2.5409 0.76149,0 1.38634,3.86658 1.01001,6.25 -0.0651,0.4125 0.35814,0.75 0.9406,0.75 0.58246,0 0.79314,0.43019 0.46818,0.95598 -0.63689,1.03052 1.96789,8.04402 2.98751,8.04402 0.33923,0 1.51066,-0.4784 2.6032,-1.0631 z m -3.78458,-4.39291 c 0,-0.80081 0.38234,-1.21971 0.84965,-0.9309 0.4673,0.28881 0.59075,0.94401 0.27431,1.45601 -0.80862,1.30838 -1.12396,1.16106 -1.12396,-0.52511 z m 4.16667,-32.54399 c -0.38791,-2.82043 -0.97135,-4.86198 -1.29654,-4.53679 -0.70055,0.70055 -0.34352,8.50116 0.44769,9.78136 1.1659,1.88647 1.52472,-0.33044 0.84885,-5.24457 z m -48.57029,-1.25 c 0.0387,-1.5125 -0.37971,-2.75 -0.92971,-2.75 -0.55,0 -0.96837,2.1375 -0.92972,4.75 0.0529,3.57396 0.28307,4.25483 0.92972,2.75 0.47269,-1.1 0.89106,-3.2375 0.92971,-4.75 z m 16.28882,-7.92985 c 0.19992,-2.02392 0.008,-3.45987 -0.42752,-3.19099 -0.43506,0.26888 -0.79101,-1.52588 -0.79101,-3.98836 0,-2.46247 -0.15125,-5.07653 -0.3361,-5.80901 -0.18486,-0.73249 -0.14736,-0.99429 0.0833,-0.58179 1.11113,1.98683 1.77599,0.23141 1.89374,-5 0.12664,-5.62678 0.11454,-5.65357 -0.56506,-1.25 -1.08523,7.03204 -1.84822,2.89996 -2.5851,-14 -0.86244,-19.77969 -0.78418,-18.93672 -1.7051,-18.36756 -0.43214,0.26707 -0.78571,-0.081 -0.78571,-0.77342 0,-1.00661 -0.25038,-1.00864 -1.24887,-0.0101 -1.82062,1.82062 -1.34085,33.58743 0.55169,36.52872 1.68825,2.62378 4.66944,14.37592 4.77613,18.82793 0.0934,3.89732 0.62993,2.77424 1.13958,-2.38537 z m 24.23876,2.24895 c 0.31644,-0.512 0.19299,-1.1672 -0.27431,-1.45601 -0.46731,-0.28881 -0.84965,0.13009 -0.84965,0.9309 0,1.68617 0.31534,1.83349 1.12396,0.52511 z m -28.88498,-5.51892 c -1.38862,-3.63605 -1.968,-4.261 -3.0337,-3.27229 -0.72451,0.67216 -1.02958,1.44711 -0.67795,1.72211 0.35164,0.275 0.78829,1.17186 0.97035,1.99302 0.36261,1.63559 3.43151,4.95893 4.06336,4.40026 0.21691,-0.19178 -0.37802,-2.37118 -1.32206,-4.8431 z m 24.48413,3.19982 c 1.03236,-1.2375 1.87795,-3.6 1.87908,-5.25 l 0.002,-3 -2.46367,4 c -3.62932,5.89256 -3.22833,8.8181 0.58253,4.25 z m -33.27969,0 c 1.56779,-1.91823 2.54586,-24.65635 1.13377,-26.35781 -0.72173,-0.86964 -0.76982,-1.39219 -0.12812,-1.39219 1.23364,0 0.40539,-7.91965 -1.01676,-9.72212 -1.59744,-2.02463 -3.76911,0.98394 -3.144,4.3556 1.06729,5.75665 0.9853,12.16567 -0.28028,21.90794 -1.37792,10.60709 -1.22859,12.45858 1.00481,12.45858 0.77492,0 1.86868,-0.5625 2.43058,-1.25 z m 44.74355,-6 c -0.28456,-3.9875 -0.92876,-10.02649 -1.43157,-13.41998 -0.50281,-3.39349 -0.56245,-7.72961 -0.13253,-9.63583 0.67066,-2.9736 0.72079,-5.59949 0.17142,-8.97937 -0.0702,-0.43185 -0.95376,-0.34305 -1.96349,0.19734 -1.3264,0.70987 -1.88435,2.26415 -2.01056,5.60073 -0.10951,2.89528 0.20233,4.38519 0.83587,3.99363 0.55581,-0.3435 1.01056,-0.19614 1.01056,0.32747 0,0.52362 -0.63581,1.19601 -1.41291,1.49422 -1.11223,0.4268 -1.32933,2.418 -1.02021,9.35698 0.63278,14.20422 1.77169,18.31481 5.0744,18.31481 1.11436,0 1.29189,-1.4643 0.87902,-7.25 z m -12.36529,-7.59685 c 1.78241,-4.52614 2.27923,-8.04546 2.49208,-17.65315 0.14622,-6.6 0.0281,-14.36229 -0.26251,-17.24953 -0.44231,-4.3944 -0.74722,-5.03069 -1.87184,-3.90607 -1.83581,1.83581 -2.39309,5.82499 -3.0951,22.1556 -0.331,7.7 -1.01038,14.4275 -1.50973,14.95 -0.49935,0.5225 -0.90102,1.4225 -0.8926,2 0.008,0.5775 0.42071,0.40946 0.9162,-0.37342 0.56221,-0.88831 0.75965,1.55522 0.52521,6.5 -0.31925,6.73346 -0.23692,7.2706 0.54819,3.57657 0.50813,-2.39077 1.92567,-6.89077 3.1501,-10 z m -16.44775,-5.39149 c -0.23919,-1.24391 -0.44398,-0.46166 -0.45508,1.73834 -0.0111,2.2 0.18461,3.21775 0.4349,2.26166 0.25029,-0.95609 0.25937,-2.75609 0.0202,-4 z m -24.18628,-7.44008 c -0.36569,-2.92687 -1.08251,-5.32158 -1.59294,-5.32158 -1.28249,0 -1.16043,3.85721 0.32196,10.17371 1.50502,6.41293 2.2995,3.37989 1.27098,-4.85213 z m 59.14922,2.86068 c 1.56809,-7.41663 1.57828,-8.4308 0.0798,-7.93705 -0.77607,0.25572 -1.43957,3.10055 -1.75,7.50331 -0.58303,8.2691 -0.0175,8.41597 1.6702,0.43374 z m -25.97721,1.08677 c -0.25354,-0.97297 -0.47766,-0.41903 -0.49804,1.23097 -0.0204,1.65 0.18706,2.44606 0.46099,1.76903 0.27392,-0.67703 0.29059,-2.02703 0.037,-3 z m 1.96929,-0.51903 c -0.27741,-0.6875 -0.50439,-0.125 -0.50439,1.25 0,1.375 0.22698,1.9375 0.50439,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m 0.0271,-7.5 c -0.25153,-0.9625 -0.45733,-0.175 -0.45733,1.75 0,1.925 0.2058,2.7125 0.45733,1.75 0.25152,-0.9625 0.25152,-2.5375 0,-3.5 z m 29.1407,-1.75 c -0.0236,-1.60779 -0.1864,-1.50973 -0.83003,0.5 -1.09501,3.41917 -1.09501,6.04822 0,3.5 0.47269,-1.1 0.8462,-2.9 0.83003,-4 z m -70.02158,1.56919 c -0.12283,-1.61195 -0.51963,-2.74769 -0.88178,-2.52387 -0.67199,0.41531 -0.0199,5.45468 0.70579,5.45468 0.21962,0 0.29882,-1.31887 0.17599,-2.93081 z m 38.67669,-14.89357 c -1.08808,-11.89974 -1.68719,-7.43308 -0.80126,5.97383 0.57842,8.75338 0.91149,10.74864 1.14355,6.85055 0.18009,-3.025 0.0261,-8.79597 -0.34229,-12.82438 z m -38.48519,8.8834 c 0,-1.06754 0.42137,-2.2014 0.93637,-2.51969 0.515,-0.31829 0.9256,-1.35735 0.91245,-2.30902 -0.0304,-2.20052 2.94532,-10.27733 4.45799,-12.09999 0.6324,-0.762 1.25195,-4.86766 1.37677,-9.12368 0.12482,-4.25603 0.30037,-8.13612 0.39011,-8.62244 0.6789,-3.67923 -2.97893,-8.74153 -5.59182,-7.73887 -2.1966,0.84292 -3.52868,5.57437 -3.33841,11.85781 0.0999,3.29827 -0.33672,7.87778 -0.9702,10.17668 -1.66524,6.04309 -1.63842,15.18835 0.0495,16.87626 0.33769,0.33769 0.41691,1.70071 0.17606,3.02895 -0.24086,1.32823 0.0209,2.41497 0.58163,2.41497 0.56076,0 1.01956,-0.87344 1.01956,-1.94098 z m 70.6104,-5.55902 c 1.08898,-9.51529 0.78206,-14.84039 -1.06073,-18.40396 -1.2665,-2.44913 -1.35434,-3.9084 -0.48051,-7.9829 0.76687,-3.57583 0.76041,-5.56307 -0.0229,-7.02662 -1.28153,-2.39465 -5.04626,-4.72356 -5.04626,-3.1217 0,0.56935 -0.62492,1.03518 -1.38871,1.03518 -1.77646,0 -2.50085,4.57733 -2.13645,13.5 0.35074,8.588 0.68469,10.03752 2.91179,12.63858 0.96612,1.12835 1.54369,2.26443 1.2835,2.52463 -0.2602,0.26019 0.40246,2.80492 1.47257,5.65494 1.07011,2.85002 2.20792,5.9872 2.52848,6.97151 0.84476,2.59398 1.04981,1.98182 1.93922,-5.78966 z m -39.33675,-3.49426 c 0.23313,-4.67184 0.0736,-7.59684 -0.3546,-6.5 -0.42816,1.09684 -0.77458,5.36926 -0.76982,9.49426 0.011,9.52469 0.57458,8.02392 1.12442,-2.99426 z M 142.743,514.88807 c 0.29827,-0.73219 -0.13261,-2.29482 -0.9575,-3.47251 -0.82488,-1.17769 -1.50276,-3.72862 -1.50638,-5.66875 l -0.007,-3.52749 -1.84917,2.80452 c -1.43742,2.18006 -1.68479,3.70341 -1.11095,6.84149 0.40601,2.22033 0.49388,4.97128 0.19526,6.11323 -0.53996,2.06481 -0.52852,2.06568 2.07504,0.15851 1.4399,-1.05476 2.86203,-2.51681 3.16029,-3.249 z m 29.02606,-2.53511 c -0.0101,-3.86534 -0.54928,-7.00816 -1.37245,-8.00001 -2.10774,-2.53968 -2.69521,-1.96351 -2.29345,2.24934 0.20379,2.13698 -0.12156,4.18695 -0.72358,4.55901 -1.59653,0.98672 -1.33753,3.6313 0.56112,5.72928 2.93698,3.24532 3.8459,2.16801 3.82836,-4.53762 z m -85.89757,-1.13364 c -0.24934,-1.375 -0.0331,-2.5 0.48044,-2.5 0.51358,0 0.93378,-0.9 0.93378,-2 0,-1.1 -0.39992,-2 -0.88871,-2 -1.10121,0 -2.43308,6.67031 -1.60078,8.01701 1.06784,1.7278 1.54229,1.05844 1.07527,-1.51701 z m -1.00752,-10.25507 c -0.8184,-0.81841 -1.20606,-0.16823 -1.94077,3.25507 l -0.64387,3 1.58145,-2.83841 c 0.8698,-1.56112 1.32123,-3.09862 1.00319,-3.41666 z m 141.10485,3.56757 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m -48.98887,-4.3441 c -1.54317,-1.35762 -3.5558,-2.4684 -4.47251,-2.4684 -1.38649,0 -1.33315,0.21018 0.31719,1.25 6.96024,4.38538 8.15251,4.73497 4.15532,1.2184 z m 48.30576,1.09062 c 0,-2.22691 -1.56602,-2.67016 -1.73027,-0.48974 -0.08,1.0619 0.2766,1.93072 0.79242,1.93072 0.51582,0 0.93785,-0.64844 0.93785,-1.44098 z m -89.22521,-2.19095 c 2.2358,-2.23581 -0.62049,-1.63887 -3.61706,0.75593 l -2.65773,2.124 2.45336,-0.75593 c 1.34935,-0.41576 3.06899,-1.37156 3.82143,-2.124 z m 6.95438,2.02776 c -0.33229,-0.33229 -1.1948,-0.36781 -1.91667,-0.0789 -0.79773,0.31922 -0.56078,0.55618 0.60417,0.60416 1.05416,0.0434 1.64479,-0.19293 1.3125,-0.52522 z m -56.72917,-2.39583 c 0,-0.55 -0.19844,-1 -0.44098,-1 -0.24254,0 -0.7191,0.45 -1.05902,1 -0.33992,0.55 -0.14148,1 0.44098,1 0.58246,0 1.05902,-0.45 1.05902,-1 z m 10.10115,-23.82465 c 3.19874,-6.43555 0.99611,-7.57437 -2.86962,-1.48368 -2.82579,4.45221 -6.25137,11.71508 -6.21665,13.18045 0.0333,1.40579 7.08699,-7.67444 9.08627,-11.69677 z m -0.89748,-3.12987 c 0.67134,-1.07499 1.36075,-1.8144 1.53201,-1.64313 0.59277,0.59277 -0.95337,3.59765 -1.85114,3.59765 -0.49582,0 -0.35221,-0.87953 0.31913,-1.95452 z m 86.28797,13.58969 c 0.95976,0.36829 1.2071,-0.0712 0.83686,-1.48701 -0.72102,-2.75716 -3.0915,-3.45952 -4.26644,-1.26412 -0.66228,1.23748 -0.59201,2.18601 0.22224,3.00026 0.70757,0.70757 1.32342,0.79253 1.51781,0.20938 0.17991,-0.53973 0.9402,-0.74606 1.68953,-0.45851 z m 36.58665,-6.48007 c -2.96001,-5.86375 -5.6492,-9.13563 -4.4852,-5.45704 0.50933,1.60965 0.4014,1.59479 -1.01145,-0.13919 -1.21337,-1.48916 -1.58164,-1.59108 -1.58164,-0.43774 0,1.9825 9.30238,14.47173 9.7589,13.10216 0.19411,-0.58233 -1.01216,-3.76302 -2.68061,-7.06819 z m -86.7816,5.92823 c 0.43817,-0.0458 -0.006,-1.14795 -0.98787,-2.44916 -1.60638,-2.12963 -1.90738,-2.20451 -3.01488,-0.75 -1.8867,2.47785 -1.52681,3.80742 0.95606,3.53204 1.2375,-0.13725 2.60851,-0.28704 3.04669,-0.33288 z m 66.38642,-34.27083 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m -66.5553,-16.57369 c -1.59003,-2.971 -4.92531,-5.482 -6.21931,-4.68226 -0.71122,0.43956 -0.95973,0.33535 -0.59759,-0.2506 0.34096,-0.55168 -0.30927,-2.00045 -1.44497,-3.21947 -1.96206,-2.10603 -2.15954,-2.13075 -3.96542,-0.49645 -2.56145,2.31808 -2.44843,2.66009 1.59948,4.84004 1.925,1.03668 3.5,2.31508 3.5,2.8409 0,0.52582 1.35,0.75789 3,0.51572 2.04719,-0.30046 3,-0.0189 3,0.8865 0,0.72975 0.46583,1.32681 1.03518,1.32681 0.67852,0 0.71043,-0.60681 0.0926,-1.76119 z m 43.70449,-1.60651 c 0.66231,-3.43912 -1.52207,-3.96098 -2.6797,-0.6402 -0.96171,2.75876 -0.88651,3.1033 0.61428,2.81428 0.94058,-0.18114 1.87002,-1.15948 2.06542,-2.17408 z m 10.56488,0.93154 c 0.33155,0.23989 0.43116,0.1895 0.22136,-0.11197 -0.20981,-0.30147 0.57169,-1.61822 1.73665,-2.9261 1.47885,-1.66028 2.34388,-2.02302 2.86615,-1.20187 0.51837,0.81502 0.75274,0.70705 0.76335,-0.35166 0.008,-0.84027 -0.79094,-2.21809 -1.77636,-3.06183 -1.63645,-1.40118 -2.02188,-1.30049 -4.44893,1.16216 -1.46149,1.48293 -2.38024,2.97326 -2.04166,3.31183 0.33858,0.33858 -0.10785,0.6156 -0.99206,0.6156 -1.88825,0 -3.0965,1.59098 -2.2493,2.96179 0.36595,0.59211 1.50221,0.61665 2.9562,0.0638 1.29898,-0.49387 2.63304,-0.70168 2.9646,-0.46179 z m 16.72489,-9.23884 c -1.17884,-2.02721 -1.46351,-1.37835 -0.49853,1.13634 0.34294,0.8937 0.83419,1.41426 1.09166,1.15679 0.25747,-0.25747 -0.009,-1.28938 -0.59313,-2.29313 z m 6.6848,0.14854 c -0.30789,-0.30789 -0.86705,0.24711 -1.24258,1.23333 -0.54268,1.4252 -0.42782,1.54006 0.5598,0.5598 0.68342,-0.67834 0.99067,-1.48524 0.68278,-1.79313 z m -100.8375,-2.97354 c 0,-0.55 -0.43621,-0.325 -0.96937,0.5 -0.53316,0.825 -0.96937,1.95 -0.96937,2.5 0,0.55 0.43621,0.325 0.96937,-0.5 0.53316,-0.825 0.96937,-1.95 0.96937,-2.5 z m 77.01532,0.69098 c -0.0132,-1.45727 -0.14929,-1.48367 -0.98469,-0.19098 -1.2656,1.95837 -1.2656,3.28218 0,2.5 0.55,-0.33992 0.99311,-1.37898 0.98469,-2.30902 z m -60.38052,-0.92015 c -1.01652,-1.01651 -1.85525,0.51389 -1.02122,1.86338 0.63003,1.01942 0.86558,1.02021 1.2043,0.004 0.2316,-0.69479 0.14921,-1.53513 -0.18308,-1.86742 z m 73.57916,-0.4875 c -0.71756,-0.71756 -1.18333,-0.7766 -1.18333,-0.15 0,1.33478 1.18261,2.51739 1.85,1.85 0.28417,-0.28416 -0.0158,-1.04916 -0.66667,-1.7 z m 10.1783,0.71667 c -0.31659,-0.825 -0.75246,-1.5 -0.96862,-1.5 -0.21615,0 -0.39301,0.675 -0.39301,1.5 0,0.825 0.43588,1.5 0.96862,1.5 0.53273,0 0.70959,-0.675 0.39301,-1.5 z m -28.64722,-5.21416 c -2.18134,-2.18134 -2.90919,-0.008 -0.93825,2.80119 1.53009,2.18108 1.72751,2.23343 2.05439,0.54477 0.19889,-1.02751 -0.30337,-2.53319 -1.11614,-3.34596 z m -49.29786,1.07103 c 0.34679,-0.90372 0.42487,-1.84878 0.17352,-2.10013 -0.79473,-0.79474 -2.59007,0.80111 -2.59007,2.30228 0,1.96152 1.63888,1.82443 2.41655,-0.20215 z m 42.58345,271.58411 c 0,-0.58246 0.45,-0.7809 1,-0.44098 0.55,0.33992 1,0.81648 1,1.05902 0,0.24254 -0.45,0.44098 -1,0.44098 -0.55,0 -1,-0.47656 -1,-1.05902 z m 55.58277,-125.78326 c -2.70448,-1.46362 -5.11862,-3.33536 -5.36476,-4.15942 -0.2594,-0.8685 0.19687,-0.65827 1.08548,0.50013 2.47397,3.2251 2.92425,1.16915 1.2007,-5.48225 -0.88434,-3.41279 -1.4352,-6.72315 -1.22413,-7.35636 0.21107,-0.63322 1.25018,2.66625 2.30913,7.33215 1.36961,6.0347 2.39657,8.57419 3.55778,8.79782 1.49635,0.28817 1.51183,-0.32427 0.18573,-7.34738 -0.79568,-4.21397 -1.25498,-7.85346 -1.02068,-8.08776 0.2343,-0.23431 1.21577,3.64005 2.18105,8.60967 1.29381,6.66105 2.1556,9.03568 3.2792,9.03568 1.28662,0 1.43047,-1.21498 0.92301,-7.79556 -0.33063,-4.28755 -0.89547,-8.56255 -1.2552,-9.5 -0.35973,-0.93744 -0.25562,-1.70444 0.23135,-1.70444 0.48698,0 1.4172,3.89987 2.06717,8.66637 0.64996,4.7665 1.76217,9.08395 2.47157,9.59433 0.92946,0.6687 0.80089,0.77068 -0.46017,0.36502 -0.9625,-0.30962 -1.75,-0.12707 -1.75,0.40566 0,1.63994 -3.26969,0.91211 -8.41723,-1.87366 z m -157.72401,1.34228 c -0.34442,-0.55 -0.0171,-4.78426 0.72733,-9.40947 1.51765,-9.42898 2.75061,-13.29278 1.78396,-5.59053 -0.34513,2.75 -0.91046,7.475 -1.25629,10.5 -0.34583,3.025 -0.91058,5.05 -1.255,4.5 z m 5.80635,-7.33354 c 0.7663,-4.21655 1.59108,-8.34146 1.83284,-9.16646 0.56085,-1.91394 -0.25506,6.27069 -1.13488,11.38421 -0.53064,3.08403 -0.37936,3.78958 0.73431,3.42489 0.77144,-0.25263 1.93972,-2.00052 2.59618,-3.88421 1.08847,-3.12335 1.19852,-3.19642 1.25,-0.82988 0.0563,2.58749 -1.99631,5.09129 -5.05765,6.16945 -1.47216,0.51848 -1.49157,-0.10565 -0.2208,-7.098 z m 163.40757,-4.84447 c -0.66414,-5.90213 -1.40364,-11.04848 -1.64335,-11.43633 -0.60426,-0.97772 0.60272,-3.88566 1.6128,-3.88566 0.45549,0 2.09485,1.79039 3.64302,3.97865 1.54817,2.18826 3.30761,3.98826 3.90986,4 0.60226,0.0117 1.88118,0.89005 2.84205,1.9518 3.27328,3.61693 -1.83216,1.28887 -5.52188,-2.51796 -1.81913,-1.87687 -3.56895,-3.41249 -3.88849,-3.41249 -0.31954,0 -0.22571,4.79444 0.20852,10.65432 0.43422,5.85987 0.62198,10.82182 0.41724,11.02656 -0.20474,0.20474 -0.91563,-4.45676 -1.57977,-10.35889 z m -172.65736,-1.98887 0.6816,-11.16688 -4.41688,4.41688 c -4.30425,4.30425 -8.68004,5.83644 -8.68004,3.03932 0,-0.75765 0.7875,-1.99515 1.75,-2.75 1.59128,-1.24796 1.62371,-1.21153 0.3575,0.40173 -0.76588,0.97579 -1.11742,2.04924 -0.78121,2.38545 0.97144,0.97145 5.27086,-2.2756 8.75682,-6.61342 3.83575,-4.77308 5.37569,-4.31532 4.47217,1.32939 -0.36309,2.26843 -0.91613,7.49941 -1.22896,11.62441 -0.31285,4.125 -0.79916,7.725 -1.0807,8 -0.28155,0.275 -0.20518,-4.5251 0.1697,-10.66688 z M 83.85,559.42619 c 0.37553,-0.98622 0.93469,-1.54122 1.24258,-1.23333 0.30789,0.30789 6.4e-4,1.11479 -0.68278,1.79313 -0.98762,0.98026 -1.10248,0.8654 -0.5598,-0.5598 z m 138.00714,-5.2783 c -0.36782,-1.46551 -0.47591,-2.85742 -0.24019,-3.09314 0.23571,-0.23571 0.72951,0.77049 1.09733,2.236 0.36782,1.46551 0.47591,2.85742 0.24019,3.09314 -0.23571,0.23571 -0.72951,-0.77049 -1.09733,-2.236 z M 82.5037,553.21932 c 0.0103,-1.1 0.36216,-3.35 0.78201,-5 0.68569,-2.69472 0.76527,-2.7456 0.78201,-0.5 0.0102,1.375 -0.34166,3.625 -0.78201,5 -0.62738,1.95899 -0.79661,2.0672 -0.78201,0.5 z m 4.86096,-4.08333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 132.54605,-2.54167 c -0.78178,-3.90891 -0.78295,-9.28689 -0.003,-14.00237 0.48535,-2.93456 0.96073,-3.53302 2.48899,-3.13337 1.03898,0.2717 1.88906,0.91808 1.88906,1.43639 0,0.51831 -0.42742,0.67822 -0.94983,0.35536 -2.04746,-1.2654 -3.31075,3.84054 -2.75811,11.14769 0.58972,7.79743 0.35211,9.29216 -0.66706,4.1963 z m 31.98095,-1.72294 -1.89405,-2.65206 2.3385,2.22222 c 1.28617,1.22222 2.13849,2.41565 1.89404,2.65206 -0.24444,0.23641 -1.29676,-0.76359 -2.33849,-2.22222 z M 88.4436,544.71932 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z M 245.59655,534.6094 c -1.75404,-2.7131 -2.74831,-4.66045 -2.20948,-4.32744 1.20372,0.74395 6.16752,8.50381 5.72083,8.94334 -0.17721,0.17436 -1.75731,-1.90279 -3.51135,-4.6159 z m -157.23189,0.58243 c -0.0434,-1.11513 -0.77532,-3.0217 -1.62643,-4.23684 -1.39816,-1.99615 -1.39733,-2.15172 0.009,-1.61221 1.71649,0.65868 3.02838,4.55724 2.21543,6.58363 -0.29229,0.72858 -0.55315,0.40795 -0.59764,-0.73458 z m -23.57895,-4.47251 c 0.99549,-1.1 2.03497,-2 2.30997,-2 0.275,0 -0.31448,0.9 -1.30997,2 -0.99549,1.1 -2.03498,2 -2.30998,2 -0.275,0 0.31449,-0.9 1.30998,-2 z m 172.00708,-0.98855 c -0.35034,-0.56686 0.0511,-0.7345 0.94098,-0.39301 1.73242,0.66479 2.04939,1.38156 0.61096,1.38156 -0.51754,0 -1.21592,-0.44485 -1.55194,-0.98855 z m 0.22505,-2.5475 c -2.05267,-1.39483 -3.73213,-3.01706 -3.73213,-3.60496 0,-0.5879 1.0125,-0.12037 2.25,1.03896 1.2375,1.15932 3.15,2.76724 4.25,3.57315 3.38647,2.48108 1.18859,1.68133 -2.76787,-1.00715 z m -18.08938,-1.71395 c -0.31573,-1.2375 -3.73038,-6.525 -7.5881,-11.75 -8.64764,-11.71259 -14.85433,-26.48366 -16.59758,-39.5 -0.33141,-2.47447 -0.24514,-2.38941 0.49246,0.48561 0.49184,1.91709 2.3157,4.75568 4.05303,6.30799 3.32579,2.97159 7.24623,10.81282 8.35284,16.7064 0.82466,4.39203 4.64488,14 5.56652,14 0.3793,0 -0.066,-3.73222 -0.98949,-8.29383 -0.92353,-4.56161 -1.56856,-9.39911 -1.43341,-10.75 0.13516,-1.35089 0.3378,-4.48117 0.45032,-6.95617 0.17545,-3.85929 0.53291,-2.93382 2.51059,6.5 1.26831,6.05 3.48308,15.275 4.92171,20.5 1.55659,5.65345 2.21202,9.63473 1.61874,9.83276 -0.54832,0.18302 -0.72393,1.42052 -0.39025,2.75 0.33368,1.32948 0.38169,2.41724 0.10669,2.41724 -0.275,0 -0.75833,-1.0125 -1.07407,-2.25 z M 204.1906,494.26278 c -0.73783,-2.4989 -1.66295,-4.54346 -2.05582,-4.54346 -0.39286,0 -1.01071,-0.93391 -1.37299,-2.07536 -0.93073,-2.93247 -1.70937,-1.70232 -0.91807,1.45045 0.3669,1.46187 1.11652,2.32606 1.70317,1.96349 0.58749,-0.36309 0.75301,-0.17055 0.37676,0.43823 -0.68484,1.1081 2.35698,8.5616 3.16449,7.75409 0.24419,-0.24419 -0.1597,-2.48854 -0.89754,-4.98744 z M 88.89457,523.14241 c -0.70202,-1.82943 0.0295,-7.69936 1.3613,-10.92309 1.08654,-2.63011 3.91876,-14.26462 4.31173,-17.71219 0.17004,-1.4917 0.62617,-3.0292 1.01363,-3.41666 0.38746,-0.38747 0.70448,-2.40293 0.70448,-4.4788 0,-2.07587 0.45,-4.05243 1,-4.39235 1.47748,-0.91314 1.18681,11.55984 -0.48852,20.96303 -0.78032,4.37967 -1.22721,8.15457 -0.9931,8.38869 0.39202,0.39201 1.03339,-1.08276 3.41466,-7.85172 0.48372,-1.375 1.23345,-3.4 1.66607,-4.5 0.43262,-1.1 0.84808,-2.45 0.92324,-3 0.70028,-5.12464 3.25685,-10.4212 6.93522,-14.36802 2.3743,-2.54759 4.57649,-5.53198 4.89376,-6.63198 0.90104,-3.12405 -0.0673,2.31193 -1.42118,7.97829 -2.08205,8.71381 -7.49163,20.10019 -13.55211,28.52521 -3.23292,4.49427 -6.60749,9.28285 -7.49905,10.64129 -1.4032,2.13802 -1.70823,2.2426 -2.27013,0.7783 z m 18.45117,-30.256 c 1.06699,-2.38309 1.90444,-5.08309 1.86102,-6 -0.0651,-1.3744 -0.17919,-1.40374 -0.64994,-0.16709 -0.31405,0.825 -0.86413,1.725 -1.22239,2 -0.77872,0.59773 -4.05525,9.15455 -4.03341,10.53343 0.0225,1.42235 1.83426,-1.42928 4.04472,-6.36634 z m -28.06003,28.79773 c 0,-0.56935 0.74435,-2.1712 1.65411,-3.55967 1.24852,-1.9055 1.85776,-2.20336 2.48468,-1.21482 1.16025,1.82948 1.06692,4.05484 -0.13879,3.30967 -0.55,-0.33992 -1,0.0835 -1,0.94098 0,0.85746 -0.675,1.55902 -1.5,1.55902 -0.825,0 -1.5,-0.46583 -1.5,-1.03518 z m 91.50708,-40.95337 c -0.35034,-0.56686 0.0511,-0.7345 0.94098,-0.39301 1.73242,0.66479 2.04939,1.38156 0.61096,1.38156 -0.51754,0 -1.21592,-0.44485 -1.55194,-0.98855 z m -34.50708,-3.57047 c 0,-0.85746 0.45734,-1.27636 1.01631,-0.9309 0.55897,0.34546 0.75742,1.04702 0.44098,1.55902 -0.85724,1.38704 -1.45729,1.12841 -1.45729,-0.62812 z m 34.8125,-0.12409 c 0.72187,-0.28887 1.58437,-0.25335 1.91667,0.0789 0.33229,0.33229 -0.25834,0.56864 -1.3125,0.52522 -1.16495,-0.048 -1.4019,-0.28494 -0.60417,-0.60416 z m -31.8125,-10.31689 c 0,-0.55 0.47656,-1 1.05902,-1 0.58246,0 0.7809,0.45 0.44098,1 -0.33992,0.55 -0.81648,1 -1.05902,1 -0.24254,0 -0.44098,-0.45 -0.44098,-1 z m -32.24475,-16.5 c -0.316,-1.65304 -0.0273,-2.5 0.85204,-2.5 0.77133,0 1.08817,0.63004 0.75434,1.5 -0.31659,0.825 -0.0775,1.5 0.53138,1.5 0.60884,0 1.10699,0.45 1.10699,1 0,2.14876 -2.79417,0.85706 -3.24475,-1.5 z m 93.24475,-0.89301 c 0,-0.21616 0.69837,-0.661 1.55194,-0.98855 0.88992,-0.34149 1.29132,-0.17385 0.94098,0.39301 -0.58726,0.95021 -2.49292,1.40545 -2.49292,0.59554 z m -70,-39.66601 c 0,-0.58246 0.45,-0.7809 1,-0.44098 0.55,0.33992 1,0.81648 1,1.05902 0,0.24254 -0.45,0.44098 -1,0.44098 -0.55,0 -1,-0.47656 -1,-1.05902 z m 55.64255,-9.03678 c -1.5716,-0.43379 -3.71566,-1.56538 -4.76459,-2.51465 -1.04893,-0.94926 -2.76131,-1.78887 -3.80529,-1.86578 -3.324,-0.24488 -11.14889,-7.54558 -13.31376,-12.42185 -1.86464,-4.20002 -2.09768,-4.39383 -2.66839,-2.21919 -0.50718,1.93255 -0.83198,2.12148 -1.71916,1 -0.60161,-0.7605 -1.35299,-3.07023 -1.66973,-5.13273 -0.55483,-3.61288 -0.46849,-3.75 2.36124,-3.75 1.61542,0 2.93713,-0.42203 2.93713,-0.93785 0,-0.51582 0.79935,-0.87764 1.77632,-0.80405 1.36914,0.10314 1.69675,0.83389 1.42919,3.18785 -0.19092,1.67973 0.14368,4.17905 0.74355,5.55405 0.94232,2.15992 1.03643,1.85169 0.69187,-2.2658 -0.22227,-2.65607 0.0597,-5.04916 0.6369,-5.40591 0.70185,-0.43376 0.82119,1.9324 0.37021,7.34 l -0.66552,7.98012 4.25874,3.03794 c 5.42024,3.86649 10.22168,6.3406 15.16552,7.81457 4.40715,1.31397 2.73394,2.64484 -1.76423,1.40328 z m -64.64255,-1.65823 c 5.9097,-2.31139 13.90192,-6.68471 16.87792,-9.23553 2.25406,-1.93202 2.34238,-2.44546 1.69581,-9.85765 -0.53561,-6.14006 -0.39974,-7.81946 0.63262,-7.81946 0.86431,0 1.27305,1.22759 1.1931,3.58334 -0.10096,2.97459 -0.0482,3.07369 0.31076,0.58333 0.54079,-3.75217 1.78898,-5.12608 3.49741,-3.84965 0.71081,0.53107 2.30034,0.88865 3.53229,0.79463 2.07419,-0.15829 2.1942,0.13334 1.62214,3.94204 -0.64745,4.3106 -2.36205,7.38088 -2.36205,4.22965 0,-2.84458 -2.25588,-1.31174 -3.49776,2.37667 -1.15232,3.42243 -10.07458,12.18997 -11.96829,11.76076 -0.56867,-0.12889 -2.60895,0.73593 -4.53395,1.92181 -1.925,1.18589 -5.3,2.4203 -7.5,2.74313 l -4,0.58697 4.5,-1.76004 z m 52.07895,-39.8293 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72188 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -39,-1 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72188 0.25335,1.58438 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 0.0789,-6.41667 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m 38.92106,-1.58333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72188 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z"
- id="path3034"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#575757"
- d="m 138.78571,703.69319 c -1.33453,-0.59091 -0.53492,-0.68321 2.40314,-0.27742 3.17797,0.43893 4.20613,0.28937 3.6951,-0.5375 -0.47139,-0.76272 0.1459,-1.07496 1.84686,-0.93418 3.50244,0.28987 3.20962,1.39429 -0.5701,2.15023 -3.85989,0.77198 -4.84682,0.7183 -7.375,-0.40113 z m 22.75,-0.005 c -1.2375,-0.49742 -2.25,-1.39545 -2.25,-1.99563 0,-0.62449 0.53466,-0.75588 1.25,-0.30719 0.6875,0.43124 2.15,0.66266 3.25,0.51427 1.5559,-0.20988 1.68644,-0.058 0.58789,0.68417 -1.11236,0.75146 -0.90009,1.05045 1,1.40856 1.82346,0.34367 1.92403,0.47238 0.41211,0.52741 -1.1,0.04 -3.0125,-0.33418 -4.25,-0.83159 z m 7.5625,-0.65195 c 0.72187,-0.28887 1.58437,-0.25335 1.91667,0.0789 0.33229,0.33229 -0.25834,0.56864 -1.3125,0.52522 -1.16495,-0.048 -1.4019,-0.28494 -0.60417,-0.60416 z m -19.73355,-3.90022 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58438 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -27.34998,-1.50854 c -2.03272,-1.18339 -1.55707,-2.40463 1.57672,-4.04826 2.15196,-1.12868 2.15913,-1.11123 0.37128,0.90406 -1.76404,1.98846 -1.76404,2.08925 0,3.1151 1.00267,0.58308 1.37303,1.06015 0.82303,1.06015 -0.55,0 -1.79697,-0.46397 -2.77103,-1.03105 z m 62.57648,-0.0193 c 1.42616,-0.82966 1.558,-1.34848 0.62756,-2.46959 -0.92821,-1.11842 -0.85993,-1.41927 0.3221,-1.41927 0.825,0 2.00158,0.60437 2.61463,1.34305 0.86566,1.04306 0.54746,1.60146 -1.42461,2.5 -3.14927,1.4349 -4.58014,1.46554 -2.13968,0.0458 z m -16.73665,-9.88886 c 0.6718,-11.95304 2.02435,-19.83758 4.5704,-26.64249 1.09715,-2.93241 1.66752,-5.89996 1.26748,-6.59458 -0.40003,-0.69461 -0.36218,-0.93242 0.0841,-0.52847 0.44629,0.40395 1.40413,-0.0461 2.12852,-1 1.77017,-2.33114 1.70265,-3.23446 -0.24176,-3.23446 -1.23281,0 -1.3586,-0.31791 -0.5238,-1.32379 0.80229,-0.9667 0.78137,-1.64108 -0.0775,-2.5 -1.42669,-1.42669 -3.13587,-1.56717 -2.28329,-0.18766 0.3653,0.59107 -0.0932,0.71832 -1.14042,0.31648 -0.96326,-0.36964 -1.2594,-0.83606 -0.6581,-1.0365 1.11365,-0.37121 0.59414,-4.29456 -0.56103,-4.23693 -0.34835,0.0174 -1.87087,1.1208 -3.38337,2.45204 -2.63775,2.32163 -3.86976,7.72347 -2,8.76913 0.4125,0.23069 0.3,0.32549 -0.25,0.21067 -0.63217,-0.13197 -1.04766,6.13371 -1.12957,17.03397 -0.13458,17.90968 -1.53185,26.75244 -3.63375,22.99655 -0.68889,-1.23098 -0.60189,-6.03001 0.27379,-15.10242 1.41395,-14.64914 0.79584,-28.85477 -1.54411,-35.48688 -1.59385,-4.51745 -1.7946,-13.91335 -0.38254,-17.90466 0.68601,-1.93909 0.77575,-1.56255 0.39997,1.67823 -0.34384,2.96538 -0.0305,4.63226 1.07963,5.74233 0.86025,0.86025 1.28385,2.01755 0.94132,2.57177 -0.34253,0.55422 0.0788,1.00767 0.93624,1.00767 0.85746,0 1.55902,-0.40787 1.55902,-0.90638 0,-0.49851 0.84921,-0.68431 1.88714,-0.41288 1.60144,0.41878 3.31419,-0.82844 3.68134,-2.68074 0.0545,-0.275 0.695,-1.85 1.42332,-3.5 l 1.32422,-3 0.81368,5.11044 c 1.06986,6.71938 2.49087,10.30673 4.36803,11.02706 2.27061,0.87132 3.85846,-0.93581 5.39514,-6.14023 1.41197,-4.78205 0.89699,-8.45157 -2.20997,-15.74727 -1.22392,-2.87397 -2.63277,-3.64155 -2.75319,-1.5 -0.16971,3.01835 -1.8004,-3.18921 -1.90453,-7.25 -0.0635,-2.475 -0.73354,-5.85 -1.48907,-7.5 -1.34498,-2.93735 -1.37823,-2.86425 -1.59172,3.5 l -0.21804,6.5 -0.69077,-6 c -0.37993,-3.3 -1.26487,-7.06983 -1.96655,-8.3774 l -1.27576,-2.3774 -3.12104,3.12103 c -2.86999,2.87 -3.13631,3.70472 -3.31094,10.37741 -0.10445,3.991 -0.64557,8.38136 -1.20249,9.75636 -0.80408,1.98523 -0.89934,1.44718 -0.46262,-2.61309 0.40808,-3.79394 0.007,-6.56554 -1.55642,-10.74292 -1.91117,-5.10806 -2.08477,-7.41461 -1.87308,-24.88692 0.12833,-10.59139 -0.17687,-25.55707 -0.67821,-33.25707 -1.3782,-21.16746 -2.55875,-12.6322 -3.18124,23 -0.44999,25.75842 -0.78847,30.77762 -2.39404,35.5 -1.02847,3.025 -2.0659,6.625 -2.30539,8 -0.23949,1.375 -0.49672,-0.80696 -0.57162,-4.84879 -0.12565,-6.78066 -0.36635,-7.5638 -3.11339,-10.12992 -3.39761,-3.17384 -4.70391,-2.47346 -6.03343,3.23487 l -0.75555,3.24384 -0.79669,-3.5 -0.79669,-3.5 -1.30094,5 c -0.71552,2.75 -1.30962,7.1375 -1.32023,9.75 -0.0188,4.62856 -1.45265,6.50598 -2.29121,3 -0.37349,-1.56153 -0.49694,-1.53461 -1.14632,0.25 -0.40027,1.1 -1.17018,2.82186 -1.71092,3.82635 -1.39842,2.59777 -2.27732,11.20797 -1.36367,13.35933 0.42379,0.99787 0.86088,2.64317 0.97132,3.6562 0.32444,2.9759 4.6444,4.88633 6.01919,2.66188 0.73306,-1.18611 1.91355,-6.33216 2.91904,-12.72482 0.52619,-3.34538 2.01444,-1.51893 2.62462,3.22106 0.25945,2.01544 2.3668,3.62653 4.13781,3.1634 1.00037,-0.2616 2.07086,-0.0679 2.37887,0.43048 0.9317,1.50752 2.69761,1.01467 2.08496,-0.58188 -0.32998,-0.85991 -0.0586,-1.38754 0.64301,-1.25 0.85368,0.16736 1.17915,-1.54283 1.09654,-5.762 -0.076,-3.8843 0.16363,-5.29477 0.67972,-4 1.34088,3.36406 1.00235,15.71569 -0.57307,20.90893 -1.69539,5.58869 -2.05978,29.49031 -0.58834,38.59107 0.4891,3.025 0.59625,7.26987 0.23813,9.43305 l -0.65113,3.93305 -1.46255,-2.93305 c -1.07113,-2.1481 -1.56047,-7.74846 -1.82843,-20.92627 -0.24904,-12.24666 -0.73812,-18.23002 -1.53138,-18.73468 -0.8647,-0.55012 -0.86869,-0.74543 -0.0155,-0.75679 0.64471,-0.009 1.15,-1.55317 1.15,-3.51531 0,-2.17427 -0.48409,-3.5 -1.27802,-3.5 -0.70292,0 -1.96176,-1.0125 -2.79743,-2.25 l -1.5194,-2.25 -3.15671,2.98896 c -1.94954,1.84594 -2.98061,3.66241 -2.6962,4.75 0.26736,1.02238 -0.0913,1.76104 -0.85511,1.76104 -0.97328,0 -0.78515,1.09798 0.72298,4.21943 4.98049,10.30845 7.74893,23.55885 7.77169,37.19724 0.0126,7.5694 -1.01659,4.83242 -2.53752,-6.74794 -0.7583,-5.77369 -2.07733,-11.99861 -2.93118,-13.83317 -0.85385,-1.83456 -1.28221,-2.43556 -0.95192,-1.33556 2.15145,7.16523 2.67739,12.25372 1.65477,16.01001 l -1.08625,3.98999 0.5319,-5.04589 c 0.42023,-3.98641 -0.30599,-7.9758 -3.45868,-19 -7.64595,-26.73599 -8.51677,-34.64311 -5.3363,-48.45411 1.83771,-7.98017 1.37025,-21.3746 -0.96934,-27.77498 -4.77961,-13.07554 -8.92147,-27.25891 -9.86338,-33.77615 -1.44445,-9.99446 -1.27037,-25.54442 0.38454,-34.34909 0.78564,-4.17988 1.94281,-11.87478 2.57149,-17.09978 0.62868,-5.225 1.65284,-12.65 2.2759,-16.5 1.6781,-10.36916 1.3051,-16.21946 -1.51955,-23.83347 -1.39429,-3.7584 -2.75075,-6.4584 -3.01434,-6 -0.88782,1.54398 -2.03971,8.8057 -1.95639,12.33347 l 0.0827,3.5 -0.8264,-4 c -0.45452,-2.2 -0.61649,-4.45 -0.35995,-5 0.25655,-0.55 -0.24192,-0.12649 -1.10771,0.94113 -2.21367,2.72973 -1.96033,0.86066 0.81578,-6.01872 2.88766,-7.15579 3.86998,-16.01964 1.98432,-17.9053 -0.71828,-0.71828 -1.14105,-2.60902 -0.93949,-4.20165 0.30812,-2.43463 -0.007,-2.92658 -1.97737,-3.08968 -2.80679,-0.23229 -5.86019,3.62376 -6.94782,8.77422 -1.12254,5.31574 -2.75267,7.33953 -2.01371,2.5 0.33593,-2.2 0.83027,-4.75021 1.09854,-5.66712 0.83158,-2.84226 -3.61143,-0.9183 -4.74114,2.05305 -0.54912,1.44432 -0.85019,8.9461 -0.67327,16.77651 l 0.32001,14.16395 -4.34372,6.17084 c -2.38904,3.39396 -6.10154,9.60808 -8.25,13.80916 -2.14845,4.20109 -3.90628,7.28754 -3.90628,6.85879 0,-2.93282 2.64332,-10.2506 4.39337,-12.1626 5.56028,-6.07487 9.79132,-12.68831 9.30567,-14.54544 -0.28189,-1.07795 -0.15228,-1.73726 0.28802,-1.46514 0.4403,0.27212 0.73583,-0.62694 0.65674,-1.99791 -0.0791,-1.37097 -0.20455,-2.493 -0.27879,-2.49338 -0.0742,-3.9e-4 -0.90921,1.1809 -1.85548,2.62508 -1.42492,2.17471 -1.48762,2.79219 -0.36501,3.59434 1.03224,0.73757 0.93902,0.83462 -0.39091,0.40697 -1.80657,-0.58091 -4.40027,3.43877 -7.30312,11.31822 -0.72026,1.95508 -1.34127,2.80449 -1.38003,1.88759 -0.10809,-2.55729 3.39841,-10.10899 7.38483,-15.90424 l 3.58906,-5.21756 -0.0829,-22.78922 c -0.0823,-22.62809 -0.0642,-22.82862 2.55377,-28.36259 2.69526,-5.69731 6.08572,-8.84962 12.73473,-11.84025 5.12877,-2.30684 4.7495,-1.26223 -0.5,1.37714 -5.59071,2.81092 -7.75,4.79408 -7.75,7.11781 0,1.18459 -0.43623,1.63443 -1.15451,1.19051 -0.73036,-0.45139 -0.88242,-0.27329 -0.41391,0.48479 0.40733,0.65907 0.33292,1.7411 -0.16536,2.40451 -1.58096,2.10488 -3.54322,9.44898 -2.83209,10.59961 1.21412,1.9645 2.72052,1.26407 1.63673,-0.76102 -0.76092,-1.42179 -0.36435,-3.1003 1.66131,-7.03159 1.47183,-2.85645 3.18884,-4.96136 3.84247,-4.71054 0.64991,0.24939 1.68648,-0.0514 2.30351,-0.66841 1.61577,-1.61579 1.41401,2.12305 -0.27949,5.17897 -1.27142,2.29426 -1.37945,2.31646 -2.43415,0.5 -1.03617,-1.78454 -1.10555,-1.75957 -1.1341,0.40819 -0.017,1.29042 0.41073,2.03638 0.96959,1.69098 0.55,-0.33992 1.0044,0.19602 1.00977,1.19098 0.005,0.99496 1.08412,-0.49834 2.39722,-3.31844 2.32468,-4.99265 4.59301,-7.63983 4.59301,-5.36013 0,0.62175 -0.675,1.80545 -1.5,2.63045 -1.6778,1.6778 -2.05205,3.81636 -0.5,2.85714 0.55,-0.33992 1,-0.14148 1,0.44098 0,0.58246 -0.69672,1.05902 -1.54827,1.05902 -0.85156,0 -2.18394,1.4625 -2.96086,3.25 -0.86797,1.99697 -1.42768,2.55254 -1.45173,1.44098 -0.024,-1.10761 -0.48678,-1.53236 -1.19365,-1.09549 -0.7153,0.44208 -0.88306,0.27432 -0.44098,-0.44098 0.39244,-0.63498 0.28511,-1.15451 -0.2385,-1.15451 -0.52362,0 -1.21658,0.68941 -1.53992,1.53201 -0.3952,1.02987 0.27009,1.85822 2.02975,2.52724 2.26103,0.85964 3.23445,0.51468 7.14501,-2.53201 2.49005,-1.93998 4.90352,-3.52724 5.36326,-3.52724 0.45974,0 1.66541,-0.7875 2.67928,-1.75 1.01386,-0.9625 3.31295,-2.54474 5.10908,-3.5161 2.88032,-1.55768 3.10532,-1.96565 1.90662,-3.45711 -0.7475,-0.93006 0.28465,-0.45278 2.29368,1.06062 2.00902,1.5134 3.94397,3.91191 4.29989,5.33001 0.61351,2.44439 0.71787,2.48162 2.00856,0.7165 0.74879,-1.02402 1.13048,-2.23555 0.84821,-2.69227 -0.28227,-0.45672 0.22832,-1.58668 1.13464,-2.51102 0.90632,-0.92435 2.27582,-2.58063 3.04334,-3.68063 1.27629,-1.82916 1.36436,-1.64633 1.03101,2.14032 -0.50348,5.71928 -3.62449,11.0302 -5.72067,9.73468 -1.01847,-0.62945 -1.00995,-0.4629 0.28521,5.57621 l 1.08295,5.04965 3.41705,-3.51862 c 1.87937,-1.93525 3.41704,-4.1596 3.41704,-4.94301 0,-0.88612 0.7558,-1.27884 2,-1.03923 1.1,0.21184 2,-0.039 2,-0.55742 0,-0.51842 -0.47656,-0.94258 -1.05902,-0.94258 -0.58246,0 -0.7809,-0.45 -0.44098,-1 2.06541,-3.3419 3.4331,1.38797 1.46482,5.06574 -0.71358,1.33333 -0.71358,1.93426 0,1.93426 0.57756,0 0.96087,1.87877 0.86708,4.25 l -0.16811,4.25 -0.39427,-3.78375 -0.39428,-3.78375 -2.0138,2.28375 c -1.1076,1.25606 -1.685,1.65172 -1.28312,0.87924 0.50158,-0.96411 0.34137,-1.16389 -0.51093,-0.63714 -0.68289,0.42205 -1.01026,1.65213 -0.72747,2.7335 0.34287,1.31116 0.0943,1.80501 -0.74622,1.48248 -0.6932,-0.26601 -1.26037,0.12865 -1.26037,0.87702 0,0.74837 0.375,1.12891 0.83334,0.84564 1.2443,-0.76902 1.00587,1.03047 -0.31104,2.34738 -1.4052,1.4052 0.52048,6.69212 3.11256,8.54546 0.9309,0.66559 1.95848,2.24839 2.28351,3.51732 0.47215,1.84335 0.32269,2.08452 -0.74348,1.19967 -1.88168,-1.56168 -8.50819,-12.86997 -8.50819,-14.51947 0,-0.75313 -0.39188,-1.61151 -0.87084,-1.90752 -0.47896,-0.29602 -1.14271,-1.89757 -1.475,-3.55902 -0.35528,-1.77639 -1.23238,-3.02081 -2.12916,-3.02081 -1.97735,0 -1.96668,3.41547 0.0169,5.39901 1.38916,1.38916 1.28832,1.60551 -1.01813,2.18439 -3.86825,0.97087 -13.55671,-0.50574 -14.1927,-2.1631 -0.29976,-0.78116 -0.84323,-1.4203 -1.2077,-1.4203 -0.99672,0 1.43078,28.08846 2.69727,31.21007 1.41813,3.49534 4.9223,7.01493 5.71201,5.73714 0.33307,-0.53891 0.97733,-0.75008 1.43169,-0.46927 0.45437,0.28082 1.10887,-0.22625 1.45444,-1.12681 0.34558,-0.90056 0.88024,-1.38548 1.18812,-1.07759 0.74099,0.74099 4.19025,-2.55909 3.67821,-3.51912 -0.21871,-0.41007 0.79349,-1.8495 2.24934,-3.19873 1.45584,-1.34924 2.35579,-2.92431 1.99989,-3.50017 -0.3559,-0.57586 0.50329,-1.57116 1.9093,-2.21178 1.40601,-0.64062 2.55639,-1.54254 2.55639,-2.00426 0,-0.46171 0.44272,-0.83948 0.98382,-0.83948 0.5411,0 0.23276,1.575 -0.68521,3.5 -0.91797,1.925 -1.97944,3.5 -2.35882,3.5 -0.63809,0 -0.99298,2.61003 -1.01809,7.48739 -0.008,1.46862 -0.22708,1.63653 -0.84097,0.64324 -0.55302,-0.89482 -1.05037,-0.98877 -1.48775,-0.28107 -0.36137,0.5847 -1.43012,0.8153 -2.375,0.51243 -1.45462,-0.46624 -1.48803,-0.38757 -0.21798,0.51317 1.27199,0.90211 1.29733,1.39068 0.16667,3.2142 -2.0664,3.33265 -1.69776,10.37955 0.66666,12.74397 1.1,1.1 2.15,1.925 2.33334,1.83334 0.18333,-0.0917 0.21671,0.0249 0.0742,0.25914 -0.14253,0.2342 0.7019,1.4488 1.87651,2.69912 1.37709,1.46584 1.89435,2.90214 1.45629,4.04371 -0.37365,0.97372 -0.34827,1.43931 0.0564,1.03464 0.89244,-0.89244 8.36995,13.03005 8.36995,15.58411 0,2.27118 2.75907,7.71261 3.91067,7.71261 1.40645,0 4.08933,-4.75144 4.08933,-7.24231 0,-2.7791 2.76545,-7.02068 4.05697,-6.22248 0.50607,0.31277 0.683,-0.0493 0.39319,-0.8045 -0.7905,-2.06001 5.0144,-14.24227 7.67425,-16.1053 1.27633,-0.89398 1.90947,-1.62541 1.40697,-1.62541 -0.5025,0 -0.0687,-0.61783 0.96398,-1.37295 1.25187,-0.91539 1.89889,-2.66507 1.94142,-5.25 0.0351,-2.13238 0.42453,-4.4344 0.86544,-5.1156 0.55185,-0.85259 0.32284,-1.0548 -0.73488,-0.64892 -1.24852,0.47911 -1.49256,-0.17812 -1.30194,-3.50627 0.12903,-2.25274 0.5721,-4.09823 0.9846,-4.10108 0.4125,-0.003 0.75,0.44482 0.75,0.99482 0,0.55 0.49303,1 1.09563,1 0.6026,0 2.39952,0.92846 3.99318,2.06323 1.59365,1.13478 3.4016,1.75171 4.01768,1.37096 2.98316,-1.8437 4.93215,-9.55842 5.83259,-23.08725 0.50595,-7.6017 0.79878,-13.94241 0.65074,-14.09045 -0.14805,-0.14805 -1.31017,0.63368 -2.58251,1.73717 -1.27233,1.10349 -3.25698,2.04384 -4.41032,2.08967 -1.15334,0.0458 -3.22199,0.21381 -4.59699,0.37328 -1.375,0.15946 -3.26018,-0.10425 -4.1893,-0.58603 -1.5048,-0.78031 -1.53498,-1.17342 -0.27628,-3.59956 0.8215,-1.58345 1.04187,-3.09473 0.52643,-3.61017 -1.12938,-1.12937 -3.06085,0.0303 -3.06085,1.83772 0,1.86215 -8.89584,19.17009 -10.56489,20.55528 -1.05667,0.87696 -1.274,0.52508 -1.06613,-1.72617 0.1436,-1.55523 0.78447,-2.71847 1.42415,-2.58498 1.76372,0.36804 4.45881,-5.60276 3.76919,-8.3504 -0.33023,-1.31577 -0.21098,-2.3923 0.26502,-2.3923 0.47599,0 -0.81777,-1.82325 -2.87503,-4.05166 -3.89595,-4.22007 -5.52241,-9.52109 -3.53197,-11.51153 1.22197,-1.22197 3.57966,0.45007 3.57966,2.53865 0,1.38179 6.86586,8.05153 7.39795,7.18662 0.22402,-0.36414 0.71658,-2.72866 1.09459,-5.25449 0.80273,-5.36385 4.0865,-11.5927 7.18277,-13.62473 1.99678,-1.31045 2.13355,-1.26795 1.66655,0.51785 -0.37686,1.44113 0.22579,2.24339 2.3247,3.09469 3.8555,1.56376 8.31592,4.22762 10.78494,6.441 3.25878,2.92136 7.5485,5.85775 7.5485,5.16708 0,-0.348 -0.96794,-2.88276 -2.15099,-5.63282 -1.55988,-3.62606 -2.40229,-4.63881 -3.0655,-3.68538 -0.614,0.88269 -0.70655,0.57535 -0.28163,-0.93528 0.37223,-1.32333 0.19329,-2.25 -0.43449,-2.25 -0.58707,0 -1.06739,-0.77143 -1.06739,-1.71429 0,-3.05825 2.75219,0.68461 5.7792,7.85946 2.23072,5.28741 3.00754,6.30855 3.99499,5.25147 1.50628,-1.61247 1.59389,-3.39664 0.16679,-3.39664 -0.58246,0 -0.73793,0.51953 -0.34549,1.15451 0.45236,0.73193 0.27317,0.88235 -0.48954,0.41097 -0.90174,-0.55731 -0.91888,-1.08596 -0.0684,-2.1107 1.30054,-1.56706 0.34998,-3.75236 -1.37917,-3.17069 -0.6371,0.21431 -1.72086,-0.9386 -2.40836,-2.56203 -1.59899,-3.77577 -1.6551,-5.52716 -0.12814,-4.0002 0.61702,0.61701 1.69432,0.90217 2.394,0.63368 1.85817,-0.71305 6.83222,9.89092 6.01941,12.83252 -0.60619,2.19382 -0.56253,2.21685 0.85452,0.45072 1.33473,-1.66352 1.28562,-2.38823 -0.46229,-6.82272 -1.07561,-2.72883 -1.71697,-5.34769 -1.42526,-5.81968 0.29171,-0.472 0.004,-1.18381 -0.64044,-1.58179 -0.78056,-0.4824 -0.90116,-0.28727 -0.36182,0.58541 0.53532,0.86617 0.41844,1.06763 -0.34549,0.59549 -0.63503,-0.39244 -1.15456,-1.55431 -1.15456,-2.58193 0,-1.89326 -4.33895,-5.995 -6.38486,-6.0358 -0.61333,-0.0122 -2.24014,-0.91918 -3.61514,-2.01546 -1.70313,-1.3579 -0.53163,-1.035 3.67535,1.01302 6.34944,3.09101 9.1759,6.08617 12.00037,12.71667 1.32825,3.11808 1.64046,7.99962 1.72321,26.94307 l 0.10107,23.13506 3.11214,4.36494 c 4.54264,6.37128 6.07024,9.71649 8.38988,18.37248 2.6508,9.89178 2.09736,11.57357 -1.33874,4.06814 -1.47831,-3.22905 -4.22759,-8.01423 -6.10952,-10.63374 -6.24392,-8.69108 -7.85801,-12.76494 -7.08041,-17.87055 2.34336,-15.38622 1.10721,-26.07139 -3.01616,-26.07139 -1.38832,0 -1.55802,0.81883 -1.08807,5.25 0.53115,5.00813 0.50344,5.08875 -0.6014,1.75 -2.33911,-7.06864 -5.21037,-11.49561 -7.5323,-11.61346 -1.95325,-0.0992 -2.23542,0.38166 -2.23542,3.80901 0,2.36035 -0.39825,3.67635 -1,3.30445 -1.7922,-1.10764 -1.02386,9.75855 1.096,15.5 2.89206,7.83291 3.32295,10 1.98835,10 -0.63184,0 -1.55577,1.0125 -2.05319,2.25 -0.71039,1.76735 -0.92127,1.07019 -0.98309,-3.25 -0.089,-6.21775 -1.50966,-9.79908 -2.5674,-6.47197 -0.34481,1.08458 -1.76856,4.95481 -3.16389,8.60051 -2.52806,6.60526 -2.53136,6.65618 -0.93967,14.5 1.48062,7.29648 4.90973,32.19122 6.52516,47.37146 1.74847,16.43054 -1.46685,36.08362 -8.96968,54.82556 -2.68535,6.70797 -2.93159,8.35194 -2.92072,19.5 0.007,7.5474 0.57294,14.26478 1.48813,17.67444 2.11054,7.86307 1.90226,10.76683 -1.93666,27 -3.07169,12.98887 -8.40642,30.02627 -7.04518,22.5 0.40064,-2.21516 0.27997,-2.60758 -0.46127,-1.5 -1.31773,1.969 -2.9566,10.1099 -3.42232,17 -0.20446,3.025 -0.87304,6.625 -1.48573,8 -0.87658,1.96725 -1.00019,0.47556 -0.58004,-7 z m -20.32088,-9.15208 c -0.50714,-0.50714 -0.76944,0.92826 -0.61873,3.38586 0.38615,6.29689 0.67417,6.78494 1.10965,1.88036 0.21419,-2.41223 -0.007,-4.78203 -0.49092,-5.26622 z m 14.6524,3.34306 c -0.0816,-3.84078 -0.24479,-4.23787 -0.90032,-2.19098 -1.17439,3.66703 -1.17439,8.22581 0,7.5 0.55,-0.33992 0.95514,-2.72898 0.90032,-5.30902 z m -30.97061,-79.94098 c 0.0387,-1.7875 0.56844,-3.25 1.17728,-3.25 0.60884,0 0.85296,-0.66198 0.54249,-1.47106 -0.31048,-0.80908 0.1994,-2.23496 1.13305,-3.16861 1.47016,-1.47016 1.69888,-4.10829 1.70751,-19.69453 0.007,-13.56294 -0.29955,-18.10041 -1.24627,-18.4168 -0.69093,-0.2309 -1.02109,-0.80029 -0.73369,-1.26531 0.2874,-0.46502 -0.0473,-1.17373 -0.74377,-1.57492 -0.69647,-0.40118 -0.95591,-0.38437 -0.57653,0.0374 0.37938,0.42173 -0.1523,1.67065 -1.18151,2.77537 -1.32508,1.42232 -1.64171,2.63176 -1.08477,4.14356 0.43258,1.17422 0.70056,3.1665 0.59551,4.42729 -0.10506,1.26079 0.18684,2.52587 0.64866,2.81129 0.46182,0.28542 0.62474,1.50386 0.36205,2.70766 -1.75252,8.03112 -3.12006,40.72262 -1.55566,37.18871 0.48696,-1.1 0.917,-3.4625 0.95565,-5.25 z m 48.68421,1 c -1.47648,-13.17438 -2.27414,-35.2346 -1.47345,-40.75 0.40665,-2.80114 0.086,-4.8012 -1.06977,-6.67321 l -1.65046,-2.67321 -1.2714,2.87228 c -2.08293,4.70567 -2.04583,34.88215 0.0462,37.61888 0.4813,0.62961 0.80601,1.52961 0.72159,2 -0.0844,0.47039 -0.0859,1.75526 -0.003,2.85526 0.13409,1.78511 0.28112,1.82822 1.36842,0.40124 1.02051,-1.33932 1.23326,-0.91429 1.31099,2.61914 0.0981,4.45985 0.9076,7.47962 2.00499,7.47962 0.3633,0 0.37057,-2.5875 0.0161,-5.75 z m -32.26156,-9.75 c 0.41191,-3.24793 0.30692,-4.48745 -0.2996,-3.53729 -0.63654,0.99717 -0.87309,-0.16587 -0.74324,-3.65428 0.10476,-2.81434 0.46887,-4.94503 0.80911,-4.73488 0.34025,0.21016 0.69729,-3.30246 0.79342,-7.80581 0.22653,-10.61139 1.04595,-11.39875 1.23266,-1.18441 0.13128,7.18227 0.21595,6.80348 0.91274,-4.08333 0.42242,-6.6 1.03191,-15.825 1.35442,-20.5 0.37084,-5.37536 0.2455,-7.9696 -0.34095,-7.05714 -0.51004,0.79358 -1.24255,6.30608 -1.62779,12.25 -0.38524,5.94393 -1.09254,10.80714 -1.57178,10.80714 -0.47924,0 -0.87135,3 -0.87135,6.66667 0,12.3422 -1.23183,5.56713 -2.1509,-11.82993 -0.85971,-16.27347 -1.38893,-18.76037 -4.00526,-18.82143 -1.62245,-0.0379 -2.54499,19.60776 -1.43152,30.48469 0.49638,4.84896 1.72603,8.5 2.86276,8.5 0.58204,0 0.82184,0.23641 0.5329,0.52535 -0.28894,0.28895 0.31105,3.54171 1.33333,7.22836 1.02228,3.68665 1.85869,8.02524 1.85869,9.64131 0,4.22337 0.61713,2.90226 1.35236,-2.89502 z m -8.72176,1.97975 c -0.33906,-0.88358 -1.0915,-1.31293 -1.6721,-0.9541 -0.72494,0.44804 -0.68251,1.10197 0.13544,2.08754 1.45303,1.7508 2.38084,1.06645 1.53666,-1.13344 z m 33.3694,-0.0388 c 0,-1.65007 -1.58044,-1.92885 -2.5,-0.44098 -0.81551,1.31952 0.38021,3.19207 1.5691,2.45729 0.51199,-0.31643 0.9309,-1.22377 0.9309,-2.01631 z m -27.85328,-1.56175 c -3.19345,-8.18596 -4.53104,-10.75974 -5.33393,-10.26353 -1.64825,1.01868 0.20054,7.78878 2.89499,10.60117 3.03389,3.1667 3.76646,3.06529 2.43894,-0.33764 z m 25.63194,-5.7155 c 0.18008,-1.3447 0.0444,-3.16915 -0.30149,-4.05432 -0.71427,-1.82787 -5.37603,7.95853 -5.42592,11.39059 -0.0237,1.63302 0.46902,1.36775 2.68546,-1.44568 1.49299,-1.89512 2.86187,-4.54589 3.04195,-5.89059 z m -3.55856,-8.16373 c 1.33437,-3.575 2.56658,-8.525 2.73824,-11 0.86165,-12.42355 -0.1362,-29.01907 -1.74278,-28.98469 -1.44672,0.031 -2.7217,1.53713 -2.94982,3.48469 -0.12885,1.1 -0.53702,9.09183 -0.90704,17.75963 -0.37003,8.66779 -0.93961,15.49428 -1.26574,15.16997 -0.32613,-0.32431 -0.88208,-3.59114 -1.23545,-7.25962 -0.36975,-3.83855 -0.43635,-2.2127 -0.1569,3.83002 0.26707,5.775 0.63213,11.625 0.81124,13 0.17912,1.375 0.41515,4.075 0.52453,6 0.19275,3.3925 0.22279,3.36179 0.97823,-1 0.42865,-2.475 1.87112,-7.425 3.20549,-11 z m 16.6943,1.5 c 0.0302,-0.55 -0.38124,-0.325 -0.9144,0.5 -0.53316,0.825 -0.94464,2.175 -0.9144,3 0.058,1.58385 1.72467,-1.60578 1.8288,-3.5 z m -56.25212,0.25 c -0.27741,-0.6875 -0.50439,-0.125 -0.50439,1.25 0,1.375 0.22698,1.9375 0.50439,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m -0.0292,-2.53465 c -0.26672,-0.43155 -0.59193,-4.14405 -0.72269,-8.25 -0.27055,-8.49539 -0.74044,-10.96535 -2.08606,-10.96535 -0.51831,0 -0.68802,0.41157 -0.37714,0.91459 0.31089,0.50302 0.15448,1.06552 -0.34757,1.25 -1.15454,0.42423 1.89158,17.83541 3.12035,17.83541 0.49392,0 0.67982,-0.35309 0.41311,-0.78465 z m 32.31896,-18.95626 c -0.3303,-10.5825 -0.9237,-19.56406 -1.31865,-19.95903 -0.74179,-0.74177 0.18676,36.11349 0.97231,38.59307 0.88765,2.80179 0.93532,0.23617 0.34634,-18.63404 z m 25.17751,13.12736 c 0.58801,-3.23755 1.30049,-7.12395 1.58328,-8.63645 0.38818,-2.07619 0.11882,-2.75 -1.09934,-2.75 -1.10768,0 -1.61351,0.8945 -1.61351,2.85331 0,1.56932 -0.28797,5.73182 -0.63995,9.25 -0.78004,7.79684 0.3029,7.35812 1.76952,-0.71686 z m 6.40898,-17.38645 c 1.23061,-11.58691 0.93081,-19.19167 -0.89583,-22.724 -1.23969,-2.39731 -1.39455,-3.79853 -0.63934,-5.7849 1.52917,-4.02201 1.19853,-7.42833 -1.07869,-11.11295 -2.04673,-3.31169 -2.10866,-3.33396 -4.49868,-1.61803 -2.99707,2.15177 -3.83078,5.03018 -3.69001,12.73988 0.14248,7.80283 0.73138,10.75749 2.76173,13.85619 0.91476,1.3961 1.68428,2.89959 1.71005,3.34109 0.0258,0.44149 0.20822,1.25272 0.40545,1.80272 2.94765,8.22014 4.32804,14.4155 3.88168,17.42144 -0.38486,2.59172 -0.28617,3.02703 0.35785,1.57856 0.48908,-1.1 1.24769,-5.375 1.68579,-9.5 z m -70.39087,5.38891 c -0.20171,-2.53609 0.0907,-5.57359 0.64978,-6.75 2.10942,-4.43852 4.16096,-10.63891 3.52013,-10.63891 -0.36642,0 0.39066,-1.125 1.68241,-2.5 1.29174,-1.375 1.99009,-2.5 1.55187,-2.5 -0.43822,0 -0.29792,-0.60107 0.31178,-1.33571 1.35325,-1.63057 1.23878,-17.63847 -0.13884,-19.41429 -0.53333,-0.6875 -0.5771,-1.25297 -0.0973,-1.25659 0.47985,-0.004 -0.43857,-0.87085 -2.04093,-1.92716 -2.90014,-1.91185 -2.92099,-1.91069 -4.59102,0.25659 -2.43191,3.15598 -2.95967,6.22342 -1.79592,10.43817 0.81487,2.95123 0.66244,4.72113 -0.74332,8.6304 -2.11699,5.88716 -2.40411,19.90481 -0.43266,21.12324 0.48892,0.30217 0.63416,1.21338 0.32275,2.0249 -0.68728,1.79102 0.46055,8.46045 1.45607,8.46045 0.39154,0 0.54686,-2.07499 0.34516,-4.61109 z m 4.85234,-2.82989 c 0,-0.24254 -0.45,-0.7191 -1,-1.05902 -0.55,-0.33992 -1,-0.14148 -1,0.44098 0,0.58246 0.45,1.05902 1,1.05902 0.55,0 1,-0.19844 1,-0.44098 z m 60,-0.55902 c 0,-0.55 -0.19844,-1 -0.44098,-1 -0.24254,0 -0.7191,0.45 -1.05902,1 -0.33992,0.55 -0.14148,1 0.44098,1 0.58246,0 1.05902,-0.45 1.05902,-1 z m -42,-42.95328 c 0,-0.44941 -0.62338,-2.29969 -1.38529,-4.11174 -2.04713,-4.86867 -0.14959,-9.63224 3.60975,-9.06192 0.39845,0.0605 -0.0516,-1.41358 -1,-3.27563 -0.94846,-1.86205 -2.11227,-3.15057 -2.58626,-2.86337 -0.474,0.28719 -1.24522,-0.098 -1.71384,-0.85594 -0.70321,-1.13741 -1.15778,-1.07246 -2.60248,0.37188 -1.66721,1.66678 -1.62287,1.75 0.93245,1.75 1.9829,0 2.53158,0.39432 2.10295,1.51134 -0.43289,1.12808 -0.10795,1.34755 1.28138,0.86547 1.67558,-0.58142 1.70216,-0.5077 0.2664,0.73866 -4.21092,3.65542 -5.6453,7.2724 -5.30787,13.38453 0.18219,3.3 0.34735,6.14314 0.36703,6.31809 0.0786,0.69879 6.03578,-4.01045 6.03578,-4.77137 z m 28.71114,-1.67515 c 0.25236,-4.32274 -0.14825,-6.34276 -1.78218,-8.98652 -2.18623,-3.53739 -5.20118,-5.7795 -6.29748,-4.6832 -0.87258,0.87258 -0.79368,2.32376 0.11852,2.17973 3.72966,-0.58889 5.54517,5.49279 2.86212,9.58765 -0.88667,1.35322 -1.61212,2.68302 -1.61212,2.95512 0,0.9173 5.39899,5.51 5.89465,5.01434 0.27002,-0.27003 0.63745,-3.00024 0.81649,-6.06712 z m -36.66418,-12.88188 c 3.14274,-0.69026 3.84249,-1.9344 1.57695,-2.80377 -0.75685,-0.29043 -3.34435,1.28284 -5.75,3.49614 -2.40565,2.21331 -3.11528,3.10891 -1.57695,1.99021 1.53833,-1.11869 4.12583,-2.32586 5.75,-2.68258 z m 44.82075,2.30793 c -4.12707,-3.90791 -10.86771,-8.78587 -10.86771,-7.86457 0,0.58682 -0.9,1.06695 -2,1.06695 -1.11111,0 -2,0.66667 -2,1.5 0,0.91228 0.88158,1.46907 2.25,1.42105 1.29597,-0.0455 1.672,-0.3088 0.88685,-0.62105 -1.0855,-0.43168 -1.10397,-0.70229 -0.0907,-1.32853 1.75519,-1.08477 3.93739,-0.0922 3.32215,1.51111 -0.31904,0.8314 0.781,1.74162 2.98315,2.4684 1.91871,0.63323 4.03868,1.81418 4.71105,2.62434 0.67237,0.81016 1.43694,1.25857 1.69904,0.99647 0.2621,-0.26211 -0.14013,-1.06048 -0.89384,-1.77417 z m -51.86824,-4.79663 c 1.03676,-1.9372 0.33917,-2.13518 -3.7889,-1.0753 -0.28822,0.074 2.09526,2.96385 2.50425,3.03627 0.11814,0.0209 0.69624,-0.86152 1.28465,-1.96097 z m 55.00053,0.16568 c 0,-1.00834 -0.675,-1.83334 -1.5,-1.83334 -1.53289,0 -2.03298,1.80035 -0.83333,3 1.23203,1.23204 2.33333,0.68139 2.33333,-1.16666 z m -48.57484,-3.28777 c -0.64806,-1.04858 -2.42516,-0.20682 -2.42516,1.14873 0,0.50028 0.67241,0.65157 1.49426,0.3362 0.82184,-0.31537 1.24074,-0.98359 0.9309,-1.48493 z m 40.69102,-2.47797 c -0.60767,-2.58989 -0.94904,-3.10878 -1.01573,-1.54394 -0.0769,1.80476 -0.50495,2.20177 -1.82692,1.69448 -1.25618,-0.48204 -1.0735,0.0326 0.67061,1.88907 1.31839,1.40336 2.55238,2.39627 2.7422,2.20645 0.18982,-0.18982 -0.0667,-2.10054 -0.57016,-4.24606 z m -39.62173,-0.40706 c -1.98964,-2.19852 -3.08052,-1.96353 -2.14937,0.463 0.32568,0.84872 1.35102,1.54313 2.27852,1.54313 1.53891,0 1.52762,-0.17542 -0.12915,-2.00613 z m 84.92605,-7.57628 c -2.35125,-6.92546 -8.94979,-17.08663 -9.7469,-15.00939 -0.90424,2.35641 0.82877,6.15533 5.86307,12.85242 2.45483,3.26565 4.46333,6.41796 4.46333,7.00513 0,0.58717 0.24002,0.82756 0.53339,0.5342 0.29336,-0.29336 -0.20744,-2.71543 -1.11289,-5.38236 z m -35.84245,1.12503 c 0.36287,-2.00111 0.15675,-2.5141 -0.79397,-1.97599 -0.97188,0.55007 -1.00829,0.42747 -0.14975,-0.50425 1.14666,-1.24442 0.7214,-5.06238 -0.56387,-5.06238 -0.38295,0 -1.99565,1.35625 -3.58377,3.01389 -2.7179,2.83688 -2.78762,3.11375 -1.18709,4.71428 0.93522,0.93522 1.7004,1.1961 1.7004,0.57974 0,-0.61637 0.86886,-0.89346 1.9308,-0.61575 1.28335,0.3356 1.73292,1.05869 1.34067,2.15638 -0.32457,0.9083 -0.27364,1.36917 0.11317,1.02415 0.38682,-0.34501 0.92385,-1.84355 1.19341,-3.33007 z m -53.22947,-0.29762 c 0.25664,-0.41525 -0.3918,-1.8151 -1.44098,-3.11078 -1.16943,-1.44419 -1.93213,-1.82922 -1.97099,-0.995 -0.0349,0.74843 -0.51587,0.23578 -1.06891,-1.13922 -0.98763,-2.45547 -1.03164,-2.46459 -2.47106,-0.51177 -1.30723,1.77348 -1.27278,2.13905 0.31892,3.38453 1.65917,1.29828 1.66159,1.35396 0.0344,0.79316 -1.97203,-0.67967 -2.44106,0.88857 -0.5,1.6718 1.97704,0.79775 6.58544,0.73756 7.09858,-0.0927 z m 7.65142,-21.68598 c 0,-0.24254 -0.45,-0.7191 -1,-1.05902 -0.55,-0.33992 -1,-0.14148 -1,0.44098 0,0.58246 0.45,1.05902 1,1.05902 0.55,0 1,-0.19844 1,-0.44098 z m -11.65928,-33.61432 c -4.14014,-4.25712 -6.37849,-5.86744 -7.5375,-5.42268 -2.01271,0.77235 -3.32216,3.805 -1.85422,4.29431 0.5849,0.19497 0.80221,0.77721 0.4829,1.29386 -0.31931,0.51665 -0.20961,0.87955 0.24377,0.80644 1.74037,-0.28065 5.27563,1.35315 4.75407,2.19706 -0.50652,0.81956 2.38591,1.342 5.32026,0.96096 0.6875,-0.0893 1.25,0.3074 1.25,0.88151 0,0.57411 0.72667,1.04384 1.61482,1.04384 1.01588,0 -0.56943,-2.24597 -4.2741,-6.0553 z m 55.82609,4.52318 c 1.27962,-0.24644 2.47807,-0.90252 2.66322,-1.45797 0.18515,-0.55545 1.02228,-1.00991 1.86029,-1.00991 0.91972,0 1.30325,-0.57437 0.9676,-1.44907 -0.37166,-0.96852 -0.0755,-1.26467 0.89301,-0.89301 2.16082,0.82918 1.82835,-2.93996 -0.38104,-4.31975 -1.54228,-0.96317 -2.40362,-0.56849 -5.47666,2.50945 -7.33677,7.34851 -8.22196,8.77235 -4.77312,7.67774 1.05607,-0.33519 2.96708,-0.81105 4.2467,-1.05748 z m -18.21265,-1.55353 c -0.61391,-1.1471 -1.36887,-1.83298 -1.67768,-1.52416 -0.30882,0.30881 0.008,1.24735 0.70346,2.08564 1.79782,2.16624 2.28407,1.88599 0.97422,-0.56148 z m -32.95416,-5.30736 c 0,-0.21616 -0.675,-0.65203 -1.5,-0.96862 -0.825,-0.31658 -1.5,-0.13972 -1.5,0.39302 0,0.53273 0.675,0.96861 1.5,0.96861 0.825,0 1.5,-0.17685 1.5,-0.39301 z m 53,-5.22502 c 0,-0.825 -0.45,-1.22189 -1,-0.88197 -0.55,0.33992 -1,1.29303 -1,2.11803 0,0.825 0.45,1.22189 1,0.88197 0.55,-0.33992 1,-1.29303 1,-2.11803 z m -60.39583,-1.11114 c -1.01652,-1.01651 -1.85525,0.51389 -1.02122,1.86338 0.63003,1.01942 0.86558,1.02021 1.2043,0.004 0.2316,-0.69479 0.14921,-1.53513 -0.18308,-1.86742 z m 6.84583,-2.34978 c 1.1275,-0.0434 1.4875,-0.30592 0.8,-0.58333 -0.6875,-0.27741 -1.25,-1.14189 -1.25,-1.92105 0,-0.77917 -0.36,-1.41667 -0.8,-1.41667 -1.4706,0 -3.2,2.37792 -3.2,4.4 0,1.55556 0.26667,1.73333 1.2,0.8 0.66,-0.66 2.1225,-1.23553 3.25,-1.27895 z m 49.86338,0.32895 c -1.32038,-3.70387 -2.60874,-4.56655 -3.9929,-2.67361 -1.10047,1.50499 -0.96458,1.93417 0.94739,2.99226 3.15223,1.74444 3.75836,1.68102 3.04551,-0.31865 z m -9.67272,265.53966 c -0.33734,-1.25931 -0.57429,-3.18966 -0.52655,-4.28966 0.0477,-1.1 0.49867,-0.24458 1.00207,1.90093 0.97494,4.1552 0.55831,6.24809 -0.47552,2.38873 z m 0.43829,-8.37299 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -33.94609,-21.55432 c 0.16799,-1.29929 -0.0653,-2.95807 -0.51836,-3.68617 -0.68313,-1.0978 -0.46275,-1.09836 1.29073,-0.003 1.16298,0.72629 1.68535,1.46358 1.16082,1.63843 -0.52453,0.17484 -0.7233,0.9183 -0.4417,1.65214 0.2816,0.73383 -0.007,1.65531 -0.64246,2.04774 -0.77315,0.47783 -1.05358,-0.0668 -0.84903,-1.64885 z m 30.59738,-0.78592 c -0.29107,-1.11304 0.12473,-2.5411 0.93588,-3.21429 1.2429,-1.03152 1.35517,-0.77713 0.75609,1.71323 -0.90737,3.77186 -1.06222,3.90923 -1.69197,1.50106 z m -32.18754,-9.00733 c -0.31643,-0.512 -0.19298,-1.1672 0.27432,-1.45601 0.46731,-0.28881 0.84965,0.13009 0.84965,0.9309 0,1.68617 -0.31534,1.83349 -1.12397,0.52511 z m 11.53625,-26.65243 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58438 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z M 230.118,563.4983 c -2.49853,-1.39263 -3.48082,-2.53133 -3.08143,-3.57211 0.4572,-1.19145 0.77151,-1.02706 1.42766,0.74669 0.60372,1.632 1.40354,2.12749 2.83144,1.75409 1.32459,-0.34639 1.99004,-0.0256 1.99004,0.95929 0,0.87226 0.71841,1.33996 1.75,1.1393 1.44125,-0.28034 1.71689,-1.30774 1.56234,-5.82332 l -0.18766,-5.48292 0.84757,4.69972 c 0.46616,2.58485 1.18264,5.24188 1.59217,5.90451 0.4555,0.73702 0.32318,0.94434 -0.34081,0.53397 -0.59698,-0.36895 -1.36807,-0.21348 -1.71353,0.34549 -0.8844,1.43098 -2.45856,1.147 -6.67779,-1.20471 z M 70.95435,560.46932 c 0.86748,-4.55729 1.33136,-4.70246 1.33136,-0.41667 0,2.01667 -0.43875,3.66667 -0.975,3.66667 -0.56023,0 -0.71183,-1.38255 -0.35636,-3.25 z m 5.46754,0.5 c 0.12096,-2.44251 0.18548,-2.49197 0.5771,-0.44237 0.6046,3.16426 2.54056,2.24851 3.98028,-1.88274 1.08847,-3.12335 1.19852,-3.19642 1.25,-0.82988 0.0569,2.61478 -2.60221,5.90499 -4.7723,5.90499 -0.64419,0 -1.10998,-1.2375 -1.03508,-2.75 z m 165.116,-1.75 c 0.0111,-2.2 0.21589,-2.98225 0.45508,-1.73834 0.23919,1.24391 0.23011,3.04391 -0.0202,4 -0.25029,0.95609 -0.446,-0.0617 -0.4349,-2.26166 z M 83.85,559.42619 c 0.37553,-0.98622 0.93469,-1.54122 1.24258,-1.23333 0.30789,0.30789 6.4e-4,1.11479 -0.68278,1.79313 -0.98762,0.98026 -1.10248,0.8654 -0.5598,-0.5598 z m 147.03571,-2.80687 c -0.36648,-2.29185 -0.47108,-4.36225 -0.23245,-4.60089 0.23864,-0.23863 0.74824,1.42677 1.13245,3.70089 0.38421,2.27412 0.48881,4.34452 0.23245,4.60089 -0.25637,0.25636 -0.76597,-1.40904 -1.13245,-3.70089 z m -5.04444,-2.45556 c -0.37649,-2.00684 -0.48453,-3.84881 -0.24008,-4.09325 0.24444,-0.24445 0.75248,1.19752 1.12896,3.20437 0.37649,2.00684 0.48453,3.84881 0.24008,4.09325 -0.24444,0.24445 -0.75248,-1.19752 -1.12896,-3.20437 z M 67.57172,552.21932 c 0.008,-2.75 0.20172,-3.75631 0.43157,-2.23625 0.22986,1.52006 0.22371,3.77006 -0.0136,5 -0.23736,1.22994 -0.42542,-0.0137 -0.41792,-2.76375 z m 9.87188,2.5 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m -4.92126,-2 c 0,-1.375 0.34352,-3.85 0.76337,-5.5 0.68093,-2.67601 0.76337,-2.73001 0.76337,-0.5 0,1.375 -0.34352,3.85 -0.76337,5.5 -0.68093,2.67601 -0.76337,2.73001 -0.76337,0.5 z m 9.84232,0.41667 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 153.07088,-2.08488 c -0.0824,-1.19252 -0.44106,-2.99252 -0.79701,-4 -0.49774,-1.40881 -0.36423,-1.57128 0.57818,-0.70361 0.67395,0.6205 1.0326,2.4205 0.79701,4 -0.3018,2.02337 -0.47261,2.23124 -0.57818,0.70361 z m 4.24812,-5.08472 c -0.5568,-3.98911 -0.63998,-7.81411 -0.18484,-8.5 0.86441,-1.30266 1.21713,-0.98966 6.75326,5.9928 1.3565,1.71089 2.819,2.89278 3.25,2.62641 0.431,-0.26637 0.78363,-0.008 0.78363,0.5747 0,1.8836 -1.53458,1.13442 -5,-2.44098 -1.86578,-1.925 -3.6448,-3.5 -3.95337,-3.5 -0.30857,0 -0.40359,1.97974 -0.21114,4.39942 0.61684,7.75576 -0.39039,8.34968 -1.43754,0.84765 z M 78.4436,549.71932 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m 5.03706,-1.5 c 0.0204,-1.65 0.2445,-2.20394 0.49804,-1.23097 0.25354,0.97297 0.23687,2.32297 -0.0371,3 -0.27393,0.67703 -0.48137,-0.11903 -0.46099,-1.76903 z m 145.884,-0.0833 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -174,-1.54426 c -0.0434,-0.89515 0.70855,-2.24515 1.67105,-3 1.5207,-1.19261 1.60381,-1.1759 0.63427,0.12756 -0.61365,0.825 -1.36562,2.175 -1.67105,3 -0.46453,1.25475 -0.56823,1.23389 -0.63427,-0.12756 z m 3.32864,-0.18125 c 1.04918,-0.65515 3.41168,-2.74744 5.25,-4.64953 1.83833,-1.90208 3.34241,-2.96695 3.34241,-2.36636 0,1.47345 -7.68619,8.33977 -9.25288,8.26589 -0.68592,-0.0323 -0.3887,-0.59484 0.66047,-1.25 z m 193.19836,-1.53913 -1.89405,-2.65206 2.3385,2.22222 c 1.28617,1.22222 2.13849,2.41565 1.89404,2.65206 -0.24444,0.23641 -1.29676,-0.76359 -2.33849,-2.22222 z M 68.28571,541.88599 c 0,-2.29167 0.40054,-4.16667 0.89009,-4.16667 0.48954,0 0.66752,1.6875 0.3955,3.75 -0.68531,5.19611 -1.28559,5.39066 -1.28559,0.41667 z m 20.07895,2.25 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 131.22071,-4.41667 c 0,-3.025 0.18747,-4.2625 0.41659,-2.75 0.22913,1.5125 0.22913,3.9875 0,5.5 -0.22912,1.5125 -0.41659,0.275 -0.41659,-2.75 z m 26.01118,-5.10992 c -1.75404,-2.7131 -2.74831,-4.66045 -2.20948,-4.32744 1.20372,0.74395 6.16752,8.50381 5.72083,8.94334 -0.17721,0.17436 -1.75731,-1.90279 -3.51135,-4.6159 z M 88.36466,534.13599 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 131.93636,-2.16667 c -0.0114,-1.67568 0.55901,-2.24609 2.23469,-2.23469 1.65753,0.0113 1.88977,0.24352 0.88197,0.88197 -0.75242,0.47666 -1.75803,1.48227 -2.23469,2.23469 -0.63845,1.0078 -0.87069,0.77556 -0.88197,-0.88197 z M 86.26671,530.19643 c -1.05678,-1.27335 -0.99492,-1.41968 0.37756,-0.89301 0.90279,0.34643 1.64144,1.03173 1.64144,1.52289 0,1.28596 -0.57887,1.10536 -2.019,-0.62988 z m 133.09795,-4.06044 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -129.5877,-3.2919 c 0.49553,-1.6279 0.37467,-2.15994 -0.38412,-1.69098 -1.53474,0.94852 -1.5229,0.88076 2.33266,-13.34951 1.89188,-6.98265 3.75067,-15.14566 4.13065,-18.14001 1.05967,-8.35046 2.17503,-9.02709 2.21974,-1.3466 0.0429,7.37308 -2.07439,19.66082 -4.3771,25.40233 -1.30615,3.25672 -1.29195,3.36099 0.20422,1.5 2.39342,-2.97702 6.32482,-12.0686 7.78359,-18 1.83776,-7.4724 4.13196,-12.29882 7.60546,-16 2.06466,-2.2 4.03786,-4.675 4.38488,-5.5 0.34702,-0.825 0.37039,-0.375 0.0519,1 -3.34762,14.45416 -7.65081,24.69299 -14.18106,33.74182 -3.07936,4.267 -6.70022,9.33318 -8.04636,11.25818 -1.84718,2.64151 -2.27018,2.9174 -1.7245,1.12477 z m 4.29651,-15.26148 c -0.24965,-0.74895 -0.70294,-0.29565 -1.05655,1.05655 -0.43497,1.66335 -0.30483,2.05378 0.43724,1.31171 0.5811,-0.5811 0.85979,-1.64682 0.61931,-2.36826 z m 0.89535,-4.05079 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 1,-4 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 10.0728,-3.5625 c 1.62722,-3.1625 3.25476,-7.1 3.61675,-8.75 l 0.65817,-3 -2.26541,2.9514 c -1.90116,2.47683 -6.28902,14.5486 -5.28814,14.5486 0.17602,0 1.6514,-2.5875 3.27863,-5.75 z m 106.65483,19.56842 c -3.25091,-4.49986 -6.76043,-9.56236 -7.79894,-11.25 -2.47325,-4.01918 -6.51998,-14.6902 -8.12116,-21.41512 l -1.27303,-5.34671 3.87559,3.78442 c 2.13158,2.08143 4.39171,5.38745 5.02251,7.3467 0.63081,1.95926 1.41393,4.01229 1.74028,4.56229 0.32635,0.55 0.73524,2.125 0.90864,3.5 0.55564,4.40612 7.43726,20 8.82605,20 0.21622,0 -0.25797,-1.6875 -1.05374,-3.75 -1.85576,-4.80975 -4.4571,-17.74895 -4.02324,-20.01178 0.1833,-0.95602 0.42403,-3.98822 0.53496,-6.73822 l 0.20167,-5 0.787,4 c 0.43285,2.2 1.2409,6.7 1.79566,10 0.55477,3.3 1.89818,8.925 2.98538,12.5 1.08719,3.575 2.18995,7.625 2.45057,9 0.26063,1.375 0.80684,3.2926 1.2138,4.26134 0.58873,1.4014 0.37713,1.62212 -1.03544,1.08006 -1.21609,-0.46665 -1.5476,-0.31271 -1.05233,0.48866 0.39769,0.64347 0.54384,1.16994 0.32478,1.16994 -0.21905,0 -3.05811,-3.68171 -6.30901,-8.18158 z m 2.75771,-7.04997 c -0.74207,-0.74207 -0.87221,-0.35164 -0.43724,1.31171 0.35361,1.3522 0.8069,1.8055 1.05655,1.05655 0.24048,-0.72144 -0.0382,-1.78716 -0.61931,-2.36826 z m -10.76467,-12.85415 c -0.85453,-3.00386 -2.40995,-6.57593 -3.4565,-7.93794 -1.82259,-2.37196 -1.90375,-2.38743 -1.92504,-0.36682 -0.0211,2.00525 5.96736,14.73419 6.6233,14.07825 0.17156,-0.17155 -0.38724,-2.76962 -1.24176,-5.77349 z m 21.99801,25.5504 c -0.34024,-1.35558 -0.92982,-2.4647 -1.3102,-2.4647 -0.38037,0 -0.69159,-1.125 -0.69159,-2.5 0,-2.80948 0.36679,-2.52919 3.45244,2.63822 1.84355,3.08732 1.94503,3.72552 0.67023,4.21471 -1.0139,0.38907 -1.70339,-0.22477 -2.12088,-1.88823 z m -147.40179,0.44303 c 0,-0.60075 0.85199,-2.1754 1.89331,-3.49922 1.51531,-1.92642 2.00817,-2.10764 2.46861,-0.90773 0.31642,0.82457 0.13943,1.49922 -0.39331,1.49922 -0.53273,0 -0.96861,0.9 -0.96861,2 0,1.11111 -0.66667,2 -1.5,2 -0.825,0 -1.5,-0.49152 -1.5,-1.09227 z m 149.26324,-5.15773 c -3.64828,-5.04059 -8.33027,-19.0163 -6.86239,-20.48419 0.32953,-0.32953 0.61095,0.26336 0.62537,1.31752 0.0401,2.92665 3.7764,10.39673 3.95973,7.91667 0.0838,-1.1341 0.73658,-0.1127 1.50767,2.35915 0.74791,2.39754 1.09134,5.05886 0.76317,5.91405 -0.39007,1.01652 -0.19555,1.30698 0.56182,0.83891 0.78071,-0.48251 0.94376,-0.15642 0.5,1 -0.48521,1.26441 -0.30589,1.49807 0.68139,0.88789 0.97915,-0.60515 1.16796,-0.38009 0.70132,0.83596 -0.3512,0.91522 -0.25082,1.66404 0.22308,1.66404 0.47389,0 1.12064,0.675 1.43723,1.5 1.05777,2.7565 -0.26535,1.54586 -4.09839,-3.75 z m -152.26324,3.39286 c 0,-0.55 0.5625,-1.59465 1.25,-2.32143 0.6875,-0.72679 1.295,-1.88393 1.35,-2.57143 0.2302,-2.87749 0.44544,-3.33995 1.30674,-2.80764 0.49871,0.30822 0.65282,-0.41059 0.34248,-1.59735 -0.38666,-1.47859 -0.19993,-1.93258 0.59326,-1.44236 0.63663,0.39346 1.15948,0.57633 1.16188,0.40637 0.002,-0.16996 1.07982,-3.38052 2.39428,-7.13458 2.90765,-8.30414 4.14921,-7.588 1.43126,0.82556 -1.06605,3.3 -1.98313,7.26451 -2.03797,8.81002 -0.0548,1.54552 -0.41111,2.30617 -0.79171,1.69034 -0.43624,-0.70585 -1.37117,-0.0812 -2.52952,1.68997 -2.37857,3.63698 -4.4707,5.72061 -4.4707,4.45253 z m 9.39233,-5.28656 c 0.0592,-3.10404 0.44517,-5.43998 0.85767,-5.19099 0.4125,0.249 0.75663,-0.36133 0.76473,-1.35629 0.0186,-2.27942 3.8585,-14.33345 3.93149,-12.34141 0.0296,0.80718 -0.86992,5.30718 -1.9989,10 -3.61314,15.01882 -3.67488,15.17318 -3.55499,8.88869 z m 136.05179,0.3937 c -0.35558,-2.0625 -1.52385,-7.28961 -2.59617,-11.61581 -1.07232,-4.32619 -1.75582,-8.05965 -1.51891,-8.29657 0.23692,-0.23692 0.7134,0.69535 1.05885,2.07171 0.34544,1.37635 1.13814,3.75981 1.76154,5.29657 1.27161,3.13462 1.38996,3.67802 2.40541,11.0441 0.82166,5.96031 -0.12204,7.23475 -1.11072,1.5 z M 82.36466,503.13599 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 143,-2 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -30.884,-26.91667 c 0.0204,-1.65 0.2445,-2.20394 0.49804,-1.23097 0.25354,0.97297 0.23687,2.32297 -0.0371,3 -0.27393,0.67703 -0.48137,-0.11903 -0.46099,-1.76903 z m -24.53046,-8.66945 c -1.80182,-2.3023 -2.21471,-3.49049 -1.39004,-4.00017 0.83144,-0.51386 0.5589,-1.39573 -0.93572,-3.02771 -1.15987,-1.26647 -2.44495,-3.40668 -2.85573,-4.75603 -0.68734,-2.25783 -0.61822,-2.32472 0.86721,-0.83929 0.88774,0.88775 2.09662,1.77493 2.68639,1.97152 0.58977,0.19659 1.18348,1.11488 1.31935,2.04065 0.13588,0.92576 1.45427,2.80203 2.92976,4.16947 2.58293,2.39377 2.60695,2.5103 0.64586,3.13273 -1.64284,0.52142 -1.80567,0.92505 -0.84172,2.08654 0.65733,0.79204 0.95725,1.67797 0.66648,1.96874 -0.29077,0.29077 -1.6821,-0.94513 -3.09184,-2.74645 z m -1.68443,-47.03105 c -1.12791,-1.81473 -1.87484,-4.29838 -1.65986,-5.51924 0.21499,-1.22085 0.006,-1.9818 -0.46466,-1.69098 -0.47055,0.29081 -0.85554,-0.15868 -0.85554,-0.99888 0,-0.94705 0.57008,-1.30887 1.5,-0.95203 0.825,0.31659 1.5,1.04035 1.5,1.60838 0,0.56802 0.69826,1.54334 1.55168,2.16738 1.87028,1.36759 2.95598,7.15409 1.50996,8.04777 -0.56696,0.3504 -1.95367,-0.84768 -3.08158,-2.6624 z m -46.35008,-19.69016 c 5.10935,-1.89829 7.42094,-3.15013 14.69892,-7.96016 l 3.82889,-2.53053 -0.37734,-7.74378 c -0.20754,-4.25907 -0.018,-7.52171 0.4211,-7.2503 0.43915,0.2714 0.79845,2.56691 0.79845,5.10111 0,5.52688 0.70134,5.38206 1.09296,-0.22568 0.35034,-5.01671 1.63214,-6.97304 3.53439,-5.39431 0.7491,0.6217 2.27753,0.89094 3.39651,0.59832 1.84552,-0.48261 1.97811,-0.19169 1.42741,3.13198 -1.01837,6.14615 -1.53446,6.96594 -2.62143,4.16401 l -0.96984,-2.5 -1.39456,2.5 c -0.76701,1.375 -1.41051,3.24088 -1.43001,4.14641 -0.0307,1.42598 -1.76499,3.184 -9.0151,9.13837 -0.81381,0.66837 -1.94241,1.22371 -2.50798,1.23409 -0.56558,0.0104 -2.59973,0.98509 -4.52034,2.16604 -1.9206,1.18094 -5.29201,2.41339 -7.49201,2.73878 -3.9129,0.57873 -3.88829,0.55011 1.12998,-1.31435 z m 59.62002,-0.67548 c -4.9979,-2.99547 -5.69027,-4.23582 -1,-1.79147 1.7875,0.93156 5.05,2.26302 7.25,2.95879 3.79458,1.20006 3.84593,1.26798 1,1.32246 -1.65,0.0316 -4.9125,-1.08881 -7.25,-2.48978 z m -7.75,-3.45409 c -0.55,-0.50612 -2.68194,-2.32536 -4.73765,-4.04274 -2.26657,-1.89355 -4.19839,-4.66035 -4.90828,-7.02977 -1.15938,-3.86964 -2.85407,-5.29903 -2.85407,-2.40726 0,2.5762 -1.9311,1.63837 -2.57389,-1.25 -0.3366,-1.5125 -0.80765,-3.48125 -1.04677,-4.375 -0.32095,-1.1996 0.25672,-1.625 2.20667,-1.625 1.4528,0 2.96749,-0.52755 3.36599,-1.17233 1.25445,-2.02974 2.63488,0.92229 4.04202,8.64375 1.2105,6.64252 1.62423,7.43503 5.16099,9.886 2.11474,1.46552 3.84499,3.05338 3.84499,3.52858 0,1.10389 -1.21302,1.02809 -2.5,-0.15623 z m -5.66341,-16.56654 c -0.20064,-2.52273 -0.021,-4.79928 0.3993,-5.05902 0.42026,-0.25973 0.76411,1.80431 0.76411,4.58677 0,6.31057 -0.67721,6.58546 -1.16341,0.47225 z"
- id="path3032"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#464646"
- d="m 142.09821,704.03621 c 0.72187,-0.28887 1.58438,-0.25335 1.91667,0.0789 0.33229,0.33229 -0.25834,0.56864 -1.3125,0.52522 -1.16495,-0.048 -1.4019,-0.28494 -0.60417,-0.60416 z m 23,0 c 0.72187,-0.28887 1.58437,-0.25335 1.91667,0.0789 0.33229,0.33229 -0.25834,0.56864 -1.3125,0.52522 -1.16495,-0.048 -1.4019,-0.28494 -0.60417,-0.60416 z m -19.71579,-1.23596 c -1.00411,-0.63571 -0.64872,-0.84471 1.24929,-0.73469 1.45892,0.0846 2.65291,0.49126 2.65329,0.90376 9.6e-4,1.0157 -2.18052,0.92119 -3.90258,-0.16907 z m 14.55827,0.16907 c -0.25469,-0.4125 0.68774,-0.81919 2.09427,-0.90376 1.84381,-0.11085 2.1658,0.0941 1.15404,0.73469 -1.73174,1.09639 -2.64638,1.144 -3.24831,0.16907 z m 25.18111,-5.54248 c 0.73485,-0.89095 1.04579,-2.08962 0.69098,-2.66372 -0.95162,-1.53975 0.0415,-1.26851 1.41505,0.38646 0.95431,1.14988 0.73327,1.67207 -1.12755,2.66372 -2.08383,1.11049 -2.18137,1.07197 -0.97848,-0.38646 z m -64.16075,-0.36551 c -0.79427,-0.79427 1.1646,-3.34201 2.56955,-3.34201 0.61015,0 0.5658,0.52318 -0.11377,1.34201 -0.61257,0.7381 -0.81767,1.6381 -0.45578,2 0.3619,0.36189 0.20799,0.65799 -0.34201,0.65799 -0.55,0 -1.29609,-0.2961 -1.65799,-0.65799 z m 46.98506,-8.84201 c 0.25822,-4.95 1.14654,-12.6 1.97405,-17 1.61318,-8.57763 6.06018,-19.80676 7.4932,-18.92111 0.47979,0.29653 0.87235,-0.41397 0.87235,-1.57889 0,-1.34635 -0.42063,-1.85807 -1.15451,-1.40451 -0.73775,0.45596 -0.88209,0.27275 -0.39986,-0.50751 0.41505,-0.67157 1.00277,-0.97291 1.30604,-0.66965 0.96843,0.96844 3.10068,-4.24402 3.54025,-8.65441 0.23373,-2.34516 0.69432,-4.93892 1.02353,-5.76392 0.32921,-0.825 0.7904,-2.625 1.02488,-4 0.23447,-1.375 0.26573,0.0396 0.0695,3.14356 -0.3783,5.98259 -6.21061,30.62673 -8.84081,37.35644 l -1.56334,4 0.46345,-3.5 c 0.32597,-2.46174 -0.12486,-1.73831 -1.51978,2.4387 -1.09077,3.26629 -2.16454,8.66629 -2.38614,12 -0.2216,3.33372 -0.62831,6.7363 -0.90381,7.5613 -0.27549,0.825 -0.71859,2.175 -0.98467,3 -0.26608,0.825 -0.27251,-2.55 -0.0143,-7.5 z m -27.9104,5.16821 c -0.4125,-1.00748 -0.75,-3.51233 -0.75,-5.56634 0,-5.18537 -1.81531,-14.48715 -3.58349,-18.36209 l -1.47836,-3.23978 0.5059,3.5 c 0.79091,5.47174 -3.00654,-6.78352 -6.5069,-20.99934 -2.39987,-9.74644 -2.98701,-14.04118 -2.66585,-19.5 0.47736,-8.11385 2.72426,-19.72947 3.98431,-20.59736 0.47648,-0.32818 1.23596,-2.80318 1.68774,-5.5 0.45178,-2.69681 0.89195,-4.2283 0.97817,-3.4033 0.0862,0.825 0.87272,-0.075 1.74777,-2 1.267,-2.78722 1.59726,-7.26755 1.62169,-22 0.0368,-22.16945 -0.0812,-23.17859 -2.66475,-22.79147 -2.75815,0.41328 -3.19534,3.58112 -2.59342,18.79147 0.0979,2.475 0.064,4.95 -0.0754,5.5 -0.54449,2.14784 -0.67152,4.46364 -0.96,17.5 l -0.29873,13.5 -0.68063,-9 c -0.37435,-4.95 -1.36997,-10.35 -2.21249,-12 -3.05088,-5.97489 -8.82298,-25.17135 -9.77228,-32.5 -1.40801,-10.86985 -1.245,-25.16698 0.38651,-33.90022 1.34303,-7.18906 2.7527,-17.43219 4.17678,-30.34978 0.34865,-3.1625 1.03205,-5.75 1.51868,-5.75 0.48663,0 0.88475,0.3375 0.88471,0.75 -8e-5,0.88874 7.71302,0.87038 8.60388,-0.0205 0.83879,-0.83879 -3.2902,-6.49131 -5.67336,-7.76674 -1.5623,-0.83612 -1.9573,-0.6927 -2.07125,0.75204 -0.0774,0.98185 -0.48861,-0.46482 -0.91371,-3.21482 -0.89829,-5.81109 -5.50177,-19.05957 -6.19663,-17.83347 -0.25979,0.45841 -0.76814,2.07097 -1.12966,3.58347 -0.36152,1.5125 -1.12529,2.75 -1.69727,2.75 -0.57198,0 -0.71888,0.51953 -0.32644,1.15451 0.42173,0.68238 0.27633,0.8843 -0.35558,0.49377 -0.588,-0.36341 -1.297,-0.0954 -1.57556,0.59549 -0.38358,0.95143 -0.52561,0.95986 -0.58541,0.0347 -0.0434,-0.67181 0.98479,-3.62678 2.28492,-6.5666 2.64503,-5.98088 4.38922,-18.12845 2.74853,-19.14244 -0.56377,-0.34844 -0.78902,-1.24859 -0.50055,-2.00034 0.28848,-0.75176 0.0635,-1.65176 -0.5,-2 -0.56347,-0.34825 -0.76417,-1.31157 -0.446,-2.14071 0.45838,-1.19451 -0.16625,-1.45737 -3.00834,-1.26597 -1.97275,0.13286 -3.41612,0.41227 -3.20748,0.62091 0.20864,0.20864 -0.47238,2.25524 -1.51338,4.54799 -1.04099,2.29276 -1.9026,5.15459 -1.91468,6.35963 -0.0121,1.20504 -0.52017,2.4989 -1.1291,2.87523 -0.73239,0.45265 -0.89506,0.0161 -0.48058,-1.28983 1.04502,-3.29252 1.50382,-10.27632 0.67509,-10.27632 -1.43572,0 -3.82418,3.46783 -5.07997,7.37568 -0.99437,3.09432 -0.99348,6.06336 0.004,14.72698 1.42164,12.34249 1.04576,14.06387 -4.8652,22.28087 -1.93216,2.68595 -5.27419,8.31095 -7.42675,12.5 -2.15256,4.18906 -3.62337,6.32647 -3.26848,4.74981 0.3549,-1.57667 0.90331,-4.15686 1.21869,-5.73377 0.31538,-1.57691 0.94605,-2.63681 1.40149,-2.35533 0.45544,0.28148 1.35706,-0.51333 2.00361,-1.76623 0.64654,-1.25291 2.86348,-4.52801 4.92652,-7.27801 3.98146,-5.3072 6.58199,-11.74654 5.47028,-13.54532 -0.6897,-1.11596 -8.62522,10.80204 -9.93023,14.91376 -0.3984,1.25525 -0.93464,2.07201 -1.19164,1.81501 -0.75605,-0.75605 2.12066,-6.78969 5.87136,-12.31465 l 3.48338,-5.1312 0.5085,-15.3688 c 0.2797,-8.45284 0.20489,-17.70713 -0.16623,-20.5651 -1.48467,-11.43339 3.48698,-21.52532 12.9599,-26.30723 3.29615,-1.66389 5.993,-2.80136 5.993,-2.52771 0,0.27365 -2.19138,1.60801 -4.86974,2.96523 -5.09201,2.58032 -10.54927,8.07903 -9.57793,9.65068 0.31114,0.50343 0.0609,0.91533 -0.55617,0.91533 -0.61703,0 -1.02325,0.7875 -0.90271,1.75 0.12054,0.9625 -0.28855,2.98359 -0.90909,4.49132 -1.27459,3.09685 -0.74252,5.33052 1.4722,6.18038 1.20351,0.46183 1.37458,-0.003 0.86102,-2.34165 -0.65583,-2.98599 2.18732,-10.1616 4.62264,-11.66671 0.66978,-0.41394 0.90217,-0.29095 0.54431,0.28808 -2.90602,4.70205 -3.913,9.93645 -2.44634,12.7164 0.96681,1.83253 1.07603,1.8103 2.45588,-0.5 0.79424,-1.3298 1.20211,-1.63032 0.90638,-0.66782 -0.85784,2.79202 1.66321,2.07213 6.12852,-1.75 2.24892,-1.925 4.43842,-3.5 4.86554,-3.5 0.42712,0 1.89065,-1.0125 3.25229,-2.25 1.36163,-1.2375 2.14477,-1.575 1.74029,-0.75 -0.59963,1.22307 -0.49094,1.21162 0.58875,-0.062 0.72829,-0.85908 2.15835,-1.87538 3.17791,-2.25843 1.11861,-0.42026 1.62627,-1.28929 1.28011,-2.19135 -0.49557,-1.29146 -0.24905,-1.28222 1.81146,0.0679 2.60455,1.70656 4.60827,6.06909 6.51931,14.19387 0.67917,2.8875 1.54421,5.25 1.92231,5.25 0.3781,0 0.75808,0.93756 0.84439,2.08347 0.18858,2.50339 5.34197,13.91653 6.28376,13.91653 0.36513,0 1.19193,1.2375 1.83733,2.75 l 1.17346,2.75 -2.52442,-3 c -5.13616,-6.10378 -9.95419,-17.34541 -12.00048,-28 -0.31689,-1.65 -1.38899,-4.06593 -2.38244,-5.36874 -1.54148,-2.02149 -2.12236,-2.19958 -3.96241,-1.21482 -3.60428,1.92896 -2.38003,7.78665 2.87933,13.77673 5.578,6.35298 2.97293,6.17295 -3.71491,-0.25673 -6.30153,-6.05828 -6.78246,-6.32839 -8.5,-4.77404 -1.0013,0.90617 -1.82055,2.47145 -1.82055,3.4784 0,2.43171 7.34045,7.26494 9.98377,6.57369 1.11045,-0.29038 1.78669,-0.15211 1.50278,0.30727 -0.28392,0.45939 0.50296,1.03114 1.74862,1.27056 1.73808,0.33407 1.5436,0.46699 -0.83623,0.5715 -1.70558,0.0749 -5.24654,-1.00458 -7.8688,-2.39885 l -4.76773,-2.53503 0.59091,4.28503 c 0.325,2.35677 0.88275,8.78503 1.23945,14.28503 0.67302,10.3775 3.24902,18.84158 6.06298,19.92139 0.80906,0.31047 1.22245,0.96667 0.91864,1.45824 -0.3038,0.49157 0.13675,1.46567 0.979,2.16468 1.15992,0.96265 1.81217,0.99013 2.68899,0.11331 0.63669,-0.63669 1.63012,-1.15073 2.20762,-1.14231 0.5775,0.008 0.375,0.45153 -0.45,0.98469 -0.825,0.53316 -0.98998,0.97627 -0.36663,0.98469 1.75626,0.0237 2.43981,4.05 0.79475,4.68127 -0.77915,0.29898 -1.16312,0.9538 -0.85328,1.45514 0.30985,0.50134 1.0122,0.63412 1.56079,0.29507 1.12682,-0.69641 3.94199,2.64923 3.21668,3.8228 -0.25869,0.41857 0.15277,0.76103 0.91436,0.76103 0.76159,0 2.47353,1.159 3.80431,2.57556 l 2.41961,2.57556 -3.49529,2.95175 c -1.92242,1.62346 -5.40432,4.36324 -7.73756,6.0884 -2.41744,1.78741 -5.24972,5.15837 -6.58437,7.83667 -1.28817,2.58501 -3.37898,6.3777 -4.64626,8.42819 -2.13996,3.46254 -2.21889,4.10904 -1.10781,9.07388 1.04256,4.65863 0.97209,5.77143 -0.54824,8.65786 -2.60563,4.94689 -2.26308,19.69377 0.72152,31.06213 1.36649,5.20498 2.30903,4.6967 1.55066,-0.83622 -0.67349,-4.91365 0.79261,-12.52897 3.1018,-16.11161 0.77914,-1.20881 1.51912,-2.89622 1.6444,-3.74981 0.12528,-0.85359 0.99421,-2.11456 1.93097,-2.80217 1.39203,-1.0218 1.7467,-3.21415 1.94139,-12.0006 0.14387,-6.49296 -0.15783,-10.88385 -0.7618,-11.08737 -0.57302,-0.1931 -0.35953,-1.12885 0.5,-2.19156 0.825,-1.02002 1.05,-1.59603 0.5,-1.28003 -1.5334,0.88101 -5.5,-0.94793 -5.5,-2.53596 0,-0.77538 0.675,-1.96998 1.5,-2.65467 1.2014,-0.99708 1.5,-0.98827 1.5,0.0442 0,0.70901 0.28913,0.99999 0.6425,0.64661 0.35338,-0.35337 0.0733,-1.32837 -0.62244,-2.16666 -1.02206,-1.23148 -1.01742,-1.52415 0.0242,-1.52415 0.70901,0 0.99515,-0.29396 0.63587,-0.65324 -0.95718,-0.95718 5.08447,-5.13614 8.5147,-5.88954 1.62152,-0.35615 3.13028,-0.46548 3.3528,-0.24296 0.22253,0.22252 -0.44319,1.98636 -1.47937,3.91964 -1.32852,2.47873 -1.8421,5.33575 -1.74199,9.69057 0.0781,3.39654 0.42594,6.17553 0.77301,6.17553 0.34707,0 1.84204,-0.95257 3.32216,-2.11683 1.93067,-1.51867 2.60559,-2.86089 2.38847,-4.75 -0.16645,-1.44824 -0.66491,-2.89903 -1.10769,-3.22398 -0.44279,-0.32494 0.90559,-0.52378 2.99638,-0.44185 2.59072,0.10152 4.01792,-0.34729 4.48115,-1.40919 0.46604,-1.06832 0.70181,-0.71161 0.75,1.13469 0.067,2.56521 3.63783,9.80716 4.83573,9.80716 0.31234,0 0.26691,-0.30098 -0.10096,-0.66885 -0.36786,-0.36787 0.0499,-1.46308 0.92842,-2.4338 0.87849,-0.97073 2.20972,-3.48225 2.95829,-5.58115 l 1.36102,-3.8162 0.0439,3.19098 c 0.0241,1.75504 0.45451,3.44476 0.95637,3.75493 0.50187,0.31017 0.78708,-0.57853 0.6338,-1.97489 -0.26922,-2.45252 -0.21274,-2.47914 1.66149,-0.78299 1.41987,1.28496 1.8533,1.37703 1.61621,0.3433 -0.18148,-0.79126 0.55569,-1.5449 1.67602,-1.71345 1.45102,-0.21831 1.58827,-0.0974 0.5,0.44061 -2.64317,1.30662 -2.36916,5.95352 0.46037,7.8075 1.38735,0.90903 2.29398,2.02246 2.01473,2.4743 -0.27925,0.45183 0.0191,1.14714 0.6631,1.54512 0.73122,0.45192 0.90292,0.29014 0.45729,-0.4309 -0.39244,-0.63498 -0.27447,-1.15451 0.26216,-1.15451 0.53663,0 0.97568,-2.00729 0.97568,-4.46066 0,-2.45336 0.23947,-4.84812 0.53216,-5.3217 0.29268,-0.47357 -0.1602,-2.17878 -1.00642,-3.78934 -0.84621,-1.61057 -1.70758,-3.76893 -1.91414,-4.79636 -0.32069,-1.59513 0.07,-1.77896 2.67391,-1.25817 3.60547,0.72109 9.12704,4.41937 8.38669,5.61729 -0.2849,0.46096 0.0473,1.10155 0.73824,1.42353 1.00308,0.46744 1.00434,0.70296 0.006,1.16874 -0.6875,0.32084 -1.25,1.05094 -1.25,1.62245 0,0.65362 0.52652,0.60214 1.41928,-0.13879 1.12111,-0.93044 1.63993,-0.7986 2.46959,0.62756 0.70123,1.20538 1.06042,1.34614 1.08072,0.42348 0.0604,-2.746 -3.98176,-7.7689 -10.37485,-12.892 -3.58685,-2.87432 -6.87551,-5.22145 -7.30814,-5.21586 -0.43263,0.006 -1.56208,1.8557 -2.50989,4.11134 -1.69529,4.03455 -1.68717,4.13152 0.5,5.96951 1.87338,1.5743 1.99276,2.01977 0.75849,2.83044 -1.1223,0.73712 -1.75581,0.26999 -2.70934,-1.99778 -1.11099,-2.64227 -0.9233,-3.65387 1.74922,-9.42786 1.77304,-3.83067 3.97734,-6.98337 5.406,-7.73191 1.32674,-0.69515 2.49354,-1.71391 2.5929,-2.26391 0.46965,-2.59971 1.30908,-3.5024 3.28301,-3.53041 1.94137,-0.0276 1.97773,-0.12666 0.3864,-1.05339 -1.38015,-0.80374 -1.53334,-1.44016 -0.71482,-2.96959 0.57299,-1.07064 0.71096,-1.94661 0.30661,-1.94661 -0.40435,0 -0.17644,-0.55874 0.50646,-1.24164 0.98886,-0.98886 1.41086,-0.96784 2.07283,0.10324 0.65986,1.06768 1.28729,1.10079 3.044,0.16062 1.21705,-0.65134 1.97638,-1.4207 1.68739,-1.70969 -0.28898,-0.28899 0.2637,-1.37245 1.22818,-2.4077 2.79669,-3.0019 5.12099,-11.96314 5.18557,-19.99272 0.0328,-4.07666 0.41145,-9.54961 0.84147,-12.16211 0.43002,-2.6125 0.62656,-4.75 0.43676,-4.75 -0.1898,0 -2.02429,0.9 -4.07666,2 -2.05236,1.1 -5.08823,1.95551 -6.74637,1.90113 -2.84998,-0.0935 -2.78849,-0.17025 1.12463,-1.4045 5.97946,-1.88593 9.36079,-4.38263 9.36079,-6.91164 0,-2.19952 -1.68402,-4.58499 -3.23677,-4.58499 -1.32979,0 -12.8533,11.55667 -12.28894,12.32429 0.27997,0.38081 0.0209,0.28673 -0.57572,-0.20905 -0.76436,-0.63518 -0.61318,-1.62116 0.51184,-3.33816 0.87813,-1.3402 1.29503,-2.73831 0.92643,-3.10691 -0.36859,-0.36859 0.0683,-0.67017 0.97081,-0.67017 1.93302,0 4.69235,-4.87808 4.69235,-8.29535 0,-2.15713 -3.48085,-6.62067 -4.37895,-5.61519 -1.48528,1.66287 -3.61394,7.30158 -3.8001,10.06627 -0.12385,1.83935 -0.48647,3.56927 -0.80583,3.84427 -0.31935,0.275 -1.81028,3.65 -3.31317,7.5 -3.01902,7.7339 -8.4873,17.04798 -9.44599,16.0893 -0.33764,-0.33765 0.30715,-1.85967 1.43286,-3.38228 4.34618,-5.87852 8.73057,-16.5141 10.80353,-26.20702 1.04746,-4.89778 3.1774,-8.75289 5.53227,-10.01318 1.46315,-0.78305 1.93261,-0.76594 1.73965,0.0634 -0.14535,0.62473 0.63573,1.65651 1.73573,2.29282 1.1,0.63632 2.33061,1.60695 2.73469,2.15695 0.40408,0.55 0.74158,0.58405 0.75,0.0757 0.008,-0.50838 1.14031,0.13257 2.51531,1.42431 1.375,1.29175 2.50689,1.93269 2.51531,1.42431 0.008,-0.50837 0.34592,-0.46268 0.75,0.10153 0.40408,0.56421 2.6892,2.5478 5.07804,4.40797 3.50484,2.72918 4.51544,3.1103 5.23469,1.97416 0.63143,-0.99742 0.8958,-1.04348 0.90665,-0.15797 0.008,0.6875 0.49187,1.25 1.07433,1.25 0.58246,0 0.81004,-0.40285 0.50574,-0.89521 -0.3043,-0.49237 0.047,-1.12557 0.78071,-1.40712 1.87012,-0.71763 1.43395,-3.71148 -1.18819,-8.15567 -2.96502,-5.02534 -1.98169,-5.82245 1.09359,-0.88648 3.62701,5.82152 3.99681,7.41332 2.18686,9.41329 -1.46783,1.62194 -1.46907,1.75882 -0.014,1.54526 3.27395,-0.48051 3.68721,-2.08957 2.10484,-8.19532 -1.75607,-6.776 -3.82507,-9.97449 -8.5184,-13.16875 -1.81827,-1.2375 -2.85594,-2.25 -2.30594,-2.25 2.74777,0 8.03483,5.09398 10.70395,10.31303 l 2.94476,5.758 0.0735,23.36764 c 0.0404,12.8522 -0.21682,23.18881 -0.57169,22.97023 -1.46386,-0.90165 -1.73779,2.93534 -0.43257,6.05917 1.92518,4.6076 11.55666,18.17808 11.66721,16.43876 0.0961,-1.51218 2.89198,7.9249 2.84211,9.59317 -0.0164,0.55 -1.64062,-2.15 -3.60929,-6 -1.96866,-3.85 -4.88101,-8.65172 -6.47188,-10.6705 -1.59087,-2.01877 -3.81818,-5.76317 -4.94957,-8.32088 -1.87942,-4.24875 -1.95324,-5.23146 -0.85473,-11.37838 0.6613,-3.7004 1.02144,-9.9299 0.80031,-13.84333 -0.35357,-6.2574 -0.7511,-7.45724 -3.29692,-9.95111 -1.59218,-1.55969 -2.58481,-2.30439 -2.20585,-1.6549 0.37896,0.6495 0.27892,1.43436 -0.22231,1.74414 -0.54745,0.33834 -0.54011,2.21541 0.0184,4.70107 0.51134,2.27581 0.711,4.35655 0.44369,4.62386 -0.26731,0.26732 -0.76042,-0.80457 -1.09578,-2.38197 -0.33537,-1.5774 -1.26473,-4.36141 -2.06524,-6.18668 -0.80052,-1.82527 -1.15088,-3.85027 -0.77859,-4.5 0.3723,-0.64972 0.33348,-0.87255 -0.0863,-0.49516 -0.41973,0.37738 -1.82847,0.28112 -3.13053,-0.21392 -2.08637,-0.79324 -2.56403,-0.48567 -4.02408,2.59116 -2.03674,4.2921 -1.55986,17.34286 0.80158,21.9366 0.84819,1.65 1.88908,4.12147 2.31309,5.49216 0.67201,2.17237 0.57243,2.32741 -0.77607,1.20826 -1.26,-1.04571 -1.64315,-1.04426 -2.0653,0.008 -0.28506,0.71046 -0.56071,-0.0583 -0.61256,-1.70826 -0.0518,-1.65 -0.51316,-3.66239 -1.02515,-4.47197 -0.77879,-1.23148 -1.03754,-1.14978 -1.58361,0.5 -0.35899,1.08458 -1.77183,4.8857 -3.13964,8.44693 -2.30945,6.01289 -2.40166,6.90493 -1.29212,12.5 3.94124,19.87446 6.40284,43.52594 6.35136,61.02504 -0.0526,17.88348 -0.0769,18.0768 -3.75187,29.86464 -2.03441,6.52555 -4.62181,13.67364 -5.74978,15.88465 -1.869,3.66355 -2.00801,5.31597 -1.56774,18.63536 0.26572,8.03844 0.75397,15.96535 1.08502,17.61535 0.56919,2.837 0.55362,2.85484 -0.28667,0.32834 -0.48871,-1.46941 -1.26047,-3.26941 -1.71503,-4 -0.45455,-0.73059 -0.88375,-2.45334 -0.95376,-3.82834 -0.27451,-5.39097 -0.36774,-5.65091 -1.43464,-4 -0.53316,0.825 -1.01179,2.625 -1.06363,4 -0.13911,3.68935 -0.65232,1.53718 -1.96731,-8.25 -1.15982,-8.63228 -2.91567,-11.82421 -3.0255,-5.5 l -0.0564,3.25 -1.20866,-3.5 c -1.06472,-3.08318 -0.98622,-3.68368 0.65911,-5.04235 1.69671,-1.40109 1.72191,-1.6634 0.2751,-2.86414 -1.36636,-1.13398 -1.71694,-0.98587 -2.46722,1.04235 -0.48101,1.30027 -1.27301,2.3063 -1.76,2.23561 -0.487,-0.0707 -2.12295,0.91275 -3.63545,2.18544 -2.56889,2.16157 -2.75864,2.86156 -2.88112,10.62853 -0.12877,8.16596 -0.14468,8.21626 -0.89018,2.81456 -0.41748,-3.025 -1.48348,-7.17305 -2.36888,-9.21788 -1.07055,-2.4734 -1.60947,-6.62622 -1.60947,-12.40514 0,-8.36025 0.069,-8.62468 1.83318,-7.0281 1.72287,1.55917 1.82394,1.5336 1.67964,-0.42497 -0.0844,-1.14618 -0.6177,-2.38549 -1.18502,-2.75402 -0.56732,-0.36852 -1.32799,-6.74504 -1.69038,-14.17004 -0.36238,-7.425 -0.94938,-17.97464 -1.30444,-23.44365 -1.17405,-18.0839 -2.47771,-6.7648 -2.98802,25.94365 -0.41966,26.89729 -0.73255,31.7279 -2.36426,36.5 -1.03432,3.025 -2.07591,6.4 -2.31464,7.5 -0.23873,1.1 -0.48626,-1.17831 -0.55006,-5.06291 -0.10617,-6.4645 -0.36929,-7.30558 -3.10557,-9.9271 -3.36472,-3.2236 -3.38399,-3.21813 -5.40029,1.53572 -1.45564,3.43196 -1.47098,3.43864 -2.37294,1.03332 -1.3815,-3.68412 -2.35815,-1.07368 -2.97716,7.95755 -0.29809,4.34897 -0.92854,7.6683 -1.40101,7.3763 -0.47246,-0.292 -0.85903,-1.3778 -0.85903,-2.41288 0,-1.03508 -0.51525,-2.2004 -1.14499,-2.58961 -0.79035,-0.48846 -0.98817,0.11271 -0.63867,1.94099 0.27847,1.45674 0.0922,2.64862 -0.41403,2.64862 -0.50619,0 -0.63005,0.46971 -0.27524,1.0438 0.35481,0.5741 0.0439,1.76826 -0.69098,2.6537 -0.88281,1.06372 -1.31945,4.35665 -1.28704,9.70619 0.0756,12.47413 2.31453,20.91692 5.27758,19.90099 1.32926,-0.45576 1.28465,-0.27069 -0.21693,0.89996 -1.76821,1.37853 -1.77766,1.51693 -0.14625,2.14296 1.05874,0.40628 1.51132,1.27577 1.15176,2.21277 -0.32577,0.84893 -0.17985,1.2886 0.32425,0.97705 1.18865,-0.73463 2.40907,3.08963 1.47058,4.60814 -0.42973,0.69531 -0.28457,0.89493 0.36076,0.4961 1.50999,-0.93323 4.14092,8.66255 5.35396,19.52751 1.09732,9.82852 0.90842,16.63305 -0.37476,13.49904 z m 39.72528,-98.91821 c -0.30002,-7.8375 -0.57387,-20.19619 -0.60854,-27.46377 -0.0585,-12.25534 -0.20646,-13.25928 -2.04026,-13.8413 -1.08746,-0.34515 -2.22207,-0.38268 -2.52135,-0.0834 -0.29928,0.29928 -0.96826,4.50287 -1.48661,9.3413 -1.53897,14.36515 0.51258,38.44663 3.13717,36.82455 0.43698,-0.27007 1.09216,1.37036 1.45595,3.6454 0.65714,4.10954 1.29318,5.82721 2.15777,5.82721 0.24825,0 0.20589,-6.4125 -0.0941,-14.25 z m -31.93434,0.55712 c -0.3416,-1.36109 -0.26557,-2.25418 0.16898,-1.98467 0.43454,0.26952 0.73546,-5.43027 0.6687,-12.66621 -0.0859,-9.31278 0.066,-11.25733 0.51998,-6.65624 0.62116,6.29537 0.66511,6.12221 1.39608,-5.5 1.77845,-28.27709 1.82288,-30.05768 0.70524,-28.26575 -0.59492,0.95383 -1.39918,6.35383 -1.78725,12 -0.654,9.51528 -0.74875,9.86368 -1.29613,4.76575 -0.45124,-4.20259 -0.65691,-2.66929 -0.87186,6.5 -0.33615,14.33937 -1.74566,11.3318 -1.92637,-4.11043 -0.0651,-5.56073 -0.40761,-12.22111 -0.7612,-14.80082 -0.55352,-4.03834 -0.93582,-4.64858 -2.75,-4.38958 -1.75425,0.25045 -2.15832,1.10039 -2.4129,5.07536 -0.17105,2.67067 -0.72186,4.5174 -1.25,4.19099 -0.51932,-0.32096 -0.94421,-0.107 -0.94421,0.47546 0,0.58246 0.45,1.05902 1,1.05902 0.55,0 1,0.92656 1,2.05902 0,1.13246 -0.41224,1.80424 -0.91609,1.49284 -2.0974,-1.29627 0.94859,19.14159 3.85241,25.8487 1.16693,2.69531 2.64557,7.95564 3.28588,11.68962 0.6403,3.73398 1.56371,6.54213 2.05202,6.24034 0.48831,-0.30179 0.60834,-1.66232 0.26672,-3.0234 z m 15.445,-2.24825 c -0.008,-1.40738 1.3087,-6.60887 2.9254,-11.55887 4.06181,-12.43643 4.7777,-16.22025 4.56634,-24.13544 -0.31815,-11.91471 -1.4599,-17.36456 -3.6379,-17.36456 -1.0464,0 -2.0796,0.5625 -2.296,1.25 -0.63781,2.02632 -1.47929,15.51593 -1.60628,25.75 -0.0998,8.0446 -0.26952,8.9717 -1.10771,6.05154 -0.5444,-1.89665 -0.80463,-6.50915 -0.57829,-10.25 0.22635,-3.74085 0.0609,-6.80154 -0.36772,-6.80154 -0.42859,0 -0.94454,2.3625 -1.14654,5.25 -0.22365,3.1969 -0.48588,1.14381 -0.67057,-5.25 -0.16682,-5.775 -0.6685,-11.85 -1.11486,-13.5 -0.44635,-1.65 -0.56167,5.775 -0.25626,16.5 0.30541,10.725 0.75495,19.84484 0.99897,20.26631 0.24402,0.42147 0.86258,0.50742 1.37458,0.19098 0.52159,-0.32236 0.9309,1.39328 0.9309,3.90191 0,2.46247 0.26745,5.30153 0.59433,6.30901 0.50573,1.5587 0.41913,1.60816 -0.58088,0.33179 -0.95032,-1.21294 -1.05638,-0.9577 -0.55425,1.33379 0.34153,1.55858 0.23435,2.59485 -0.23817,2.30281 -0.47253,-0.29204 -0.65321,0.8721 -0.40153,2.58696 0.4261,2.90316 0.5514,2.98968 1.81906,1.25606 0.74879,-1.02403 1.35511,-3.01337 1.34738,-4.42075 z m -3.71358,-22.05887 c 0,-2.475 0.19502,-3.4875 0.43337,-2.25 0.23836,1.2375 0.23836,3.2625 0,4.5 -0.23835,1.2375 -0.43337,0.225 -0.43337,-2.25 z m -20.27236,24.53138 c 0,-1.78348 -0.41631,-2.30886 -1.5,-1.89301 -1.55611,0.59714 -1.99319,2.53511 -0.83333,3.69496 1.35442,1.35443 2.33333,0.59846 2.33333,-1.80195 z m 18.68311,0.28112 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36781,-1.1948 0.0789,-1.91667 z m -12.73471,-0.0625 c -0.10424,-2.52544 -4.64028,-13.14729 -5.77622,-13.52594 -2.33321,-0.77774 -1.29715,6.98811 1.46382,10.97219 2.65359,3.82913 4.40793,4.86803 4.3124,2.55375 z m 22.89533,-2.69297 c 2.84983,-3.93408 3.78973,-10.0172 1.65627,-10.71959 -1.10679,-0.36438 -4.11181,6.34734 -5.10971,11.41256 -0.8403,4.26522 -0.0188,4.10038 3.45344,-0.69297 z m -8.91402,-4.86605 c 0.0387,-0.71996 -0.37971,-1.0309 -0.92971,-0.69098 -0.55,0.33992 -0.96837,1.82898 -0.92971,3.30902 0.0627,2.40282 0.16231,2.47681 0.92971,0.69098 0.47269,-1.1 0.89106,-2.58906 0.92971,-3.30902 z m -8.33654,-1.23788 c -0.43472,-6.20418 -1.59317,-7.80501 -1.59317,-2.20155 0,3.82512 0.74639,7.24845 1.58039,7.24845 0.20152,0 0.20727,-2.2711 0.0128,-5.0469 z m 33.86595,-13.26708 c 1.70609,-9.5744 1.48264,-18.68602 -0.45824,-18.68602 -0.48212,0 -0.86319,0.7875 -0.84682,1.75 0.0164,0.9625 -0.23196,5.125 -0.55185,9.25 -1.41584,18.25758 -1.53421,21.42636 -0.72844,19.5 0.46012,-1.1 1.62353,-6.41629 2.58535,-11.81398 z m -58.05356,0.064 c -0.40966,-6.7375 -0.79544,-13.48985 -0.8573,-15.00523 -0.0619,-1.51537 -0.54803,-2.77237 -1.08037,-2.79334 -1.80495,-0.0711 -2.28832,7.51564 -0.95877,15.04857 0.72806,4.125 1.60673,9.1875 1.95262,11.25 1.24297,7.41176 1.67483,3.52252 0.94382,-8.5 z m 64.14933,-14.07828 c 1.45651,-12.52093 1.53638,-17.48102 0.34896,-21.67172 -0.70128,-2.475 -1.18959,-7.8028 -1.08513,-11.83956 0.15397,-5.95031 -0.19039,-7.87367 -1.81932,-10.16128 -1.84709,-2.594 -2.27113,-2.73594 -5.25432,-1.75883 -1.78479,0.58459 -3.80758,1.20555 -4.49508,1.3799 -0.6875,0.17435 -1.24311,0.89362 -1.23469,1.59839 0.0118,0.98516 0.21405,0.96773 0.875,-0.0754 0.62503,-0.98642 1.05379,-1.0427 1.57078,-0.2062 0.3911,0.63281 0.13879,1.84015 -0.5607,2.68298 -0.75477,0.90945 -0.8914,1.80632 -0.33609,2.2062 1.16926,0.84197 1.39122,5.17378 0.2651,5.17378 -0.45617,0 -0.8294,0.47656 -0.8294,1.05902 0,0.58246 0.375,0.82725 0.83333,0.54399 0.45834,-0.28327 0.83334,0.0973 0.83334,0.84564 0,0.807 -0.64428,1.13612 -1.58334,0.80883 -1.28562,-0.44808 -1.34829,-0.29853 -0.33333,0.79534 0.6875,0.74095 1.25,3.06158 1.25,5.15697 0,2.5723 0.64963,4.36602 2,5.52224 1.1,0.94185 2,2.13152 2,2.64372 0,0.5122 1.17177,3.40818 2.60393,6.43553 2.22188,4.69666 2.54576,6.5338 2.20744,12.52123 -0.37401,6.619 -0.32121,6.83248 0.93087,3.76396 0.73006,-1.78916 1.54575,-5.1303 1.81265,-7.42475 z m -42.05489,-22.67174 c 0.33992,-0.55 0.14148,-1 -0.44098,-1 -0.58246,0 -1.05902,0.45 -1.05902,1 0,0.55 0.19844,1 0.44098,1 0.24254,0 0.7191,-0.45 1.05902,-1 z m -17.80701,-8.73097 c -0.25354,-0.97297 -0.47766,-0.41903 -0.49804,1.23097 -0.0204,1.65 0.18706,2.44606 0.46099,1.76903 0.27392,-0.67703 0.29059,-2.02703 0.0371,-3 z m -2.69299,-15.26903 c 0,-0.55 -0.45,-1 -1,-1 -0.55,0 -1,0.45 -1,1 0,0.55 0.45,1 1,1 0.55,0 1,-0.45 1,-1 z m 20.5,-1 c 0,-0.73333 -0.5625,-1.52083 -1.25,-1.75 -0.74359,-0.24786 -1.25,0.46111 -1.25,1.75 0,1.28889 0.50641,1.99786 1.25,1.75 0.6875,-0.22917 1.25,-1.01667 1.25,-1.75 z m 34,1 c 0.33992,-0.55 0.16803,-1 -0.38197,-1 -0.55,0 -1.27811,0.45 -1.61803,1 -0.33992,0.55 -0.16803,1 0.38197,1 0.55,0 1.27811,-0.45 1.61803,-1 z m 3.03434,-13.9336 c -0.87214,-1.68652 -2.0507,-3.0664 -2.61904,-3.0664 -0.56833,0 -0.75522,-0.45 -0.4153,-1 0.33992,-0.55 0.11492,-1 -0.5,-1 -0.61492,0 -0.80046,-0.5625 -0.41231,-1.25 0.54347,-0.96263 0.41408,-0.98059 -0.56284,-0.0781 -0.69771,0.64452 -1.95013,0.91031 -2.78315,0.59065 -1.01306,-0.38875 -1.34524,-0.11452 -1.00315,0.82814 0.2813,0.77514 1.0177,1.29685 1.63645,1.15935 0.61875,-0.1375 1.07171,0.0875 1.00658,0.5 -0.29657,1.87829 0.32172,3.1175 3.11842,6.25 1.65,1.84812 3.06742,3.84167 3.14983,4.43011 0.0824,0.58844 0.33442,-0.13773 0.56002,-1.61371 0.2256,-1.47598 -0.30338,-4.06348 -1.17551,-5.75 z m -61.53434,4.97905 c 0,-0.525 1.0125,-2.05715 2.25,-3.40479 4.82265,-5.25187 6.02063,-7.64066 3.83179,-7.64066 -0.50502,0 -1.70384,-0.30147 -2.66405,-0.66994 -1.08945,-0.41806 -1.50429,-0.27911 -1.10337,0.36958 0.35335,0.57174 -0.43145,2.28931 -1.74402,3.81684 -2.76808,3.22141 -3.94484,8.48352 -1.89716,8.48352 0.72975,0 1.32681,-0.42955 1.32681,-0.95455 z m 12.07703,-9.69601 c 1.68213,-1.43607 1.48134,-7.34944 -0.24955,-7.34944 -0.52003,0 -0.6674,0.45 -0.32748,1 0.33992,0.55 -0.0835,1 -0.94098,1 -0.98223,0 -1.55902,0.89467 -1.55902,2.41821 0,1.33002 -0.30147,3.20384 -0.66994,4.16405 -0.71904,1.87378 0.62675,1.43099 3.74697,-1.23282 z m 39.26131,-1.65195 c -0.60624,-3.73579 -3.32419,-5.31413 -3.35365,-1.94749 -0.0131,1.49555 -0.15626,1.5319 -0.98469,0.25 -0.69149,-1.07 -0.97376,-1.12864 -0.98469,-0.20455 -0.0165,1.39548 4.83803,6.68455 5.51447,6.0081 0.22472,-0.22471 0.13857,-2.07244 -0.19144,-4.10606 z m -43.60917,-1.30166 c -0.33229,-0.33229 -1.1948,-0.36781 -1.91667,-0.0789 -0.79773,0.31922 -0.56078,0.55618 0.60417,0.60416 1.05416,0.0434 1.64479,-0.19293 1.3125,-0.52522 z m 47.27083,-0.89583 c 0,-0.825 -0.7875,-1.46447 -1.75,-1.42105 -1.05575,0.0476 -1.25163,0.27987 -0.49377,0.58541 0.69093,0.27855 1.00187,0.91803 0.69098,1.42105 -0.31088,0.50302 -0.0887,0.91459 0.49377,0.91459 0.58246,0 1.05902,-0.675 1.05902,-1.5 z m -38,-0.10765 c 0,-0.82763 -1.94173,-1.29565 -2.38691,-0.57533 -0.28881,0.46731 0.13009,0.84965 0.9309,0.84965 0.8008,0 1.45601,-0.12345 1.45601,-0.27432 z m -14,-1.83333 c 0,-1.05548 -1.91911,-1.49891 -2.48992,-0.57533 -0.34546,0.55897 0.0734,1.01631 0.9309,1.01631 0.85746,0 1.55902,-0.19844 1.55902,-0.44098 z m 56.65066,-1.02699 c -0.30982,-0.80739 -0.0634,-1.77692 0.54752,-2.15451 0.67266,-0.41573 0.82938,-0.23113 0.39731,0.46797 -0.39244,0.63498 -0.23697,1.15451 0.34549,1.15451 1.33524,0 1.32877,-1.48832 -0.0277,-6.3737 l -1.07558,-3.8737 -3.91735,3.82519 c -4.07026,3.97451 -3.99907,5.5569 0.26301,5.84606 1.27416,0.0865 2.20416,0.70145 2.06666,1.36666 -0.1375,0.66522 0.24814,1.20949 0.85699,1.20949 0.60884,0 0.8535,-0.66059 0.54367,-1.46797 z m 16.34934,-54.9154 c 0,-0.21085 -0.90062,-0.61888 -2.00138,-0.90674 -1.10076,-0.28785 -1.7492,-0.11534 -1.44098,0.38337 0.53825,0.87091 3.44236,1.31245 3.44236,0.52337 z m -88.27083,-1.2208 c -0.33229,-0.33229 -1.1948,-0.36782 -1.91667,-0.079 -0.79773,0.31923 -0.56078,0.55619 0.60417,0.60417 1.05416,0.0434 1.64479,-0.19293 1.3125,-0.52522 z m 73.27083,-9.01386 c 0,-0.825 -0.45,-1.22189 -1,-0.88197 -0.55,0.33992 -1,1.29303 -1,2.11803 0,0.825 0.45,1.22189 1,0.88197 0.55,-0.33992 1,-1.29303 1,-2.11803 z m -60,0.11803 c 0,-0.825 -0.45,-1.5 -1,-1.5 -0.55,0 -1,0.675 -1,1.5 0,0.825 0.45,1.5 1,1.5 0.55,0 1,-0.675 1,-1.5 z m 34.68989,270.13425 c -0.37944,-0.9888 -0.62247,-3.67352 -0.54006,-5.96604 0.10751,-2.99071 0.26752,-3.39135 0.56642,-1.41821 0.63118,4.16651 2.12,3.29126 2.55154,-1.5 l 0.3828,-4.25 0.1296,4.5 c 0.15709,5.45446 -1.99892,11.47833 -3.0903,8.63425 z m -13.0829,-1.21604 c -0.93626,-2.43984 -0.71903,-4.60549 0.39301,-3.91821 0.60803,0.37578 1.04906,-1.26695 1.12517,-4.19098 l 0.12516,-4.80902 0.69662,4.28425 c 1.1472,7.05544 -0.54695,13.30648 -2.33996,8.63396 z m -11.52804,-4.00154 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58438 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 37,-2 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -35.82677,-3.91667 c 0.0111,-2.2 0.21589,-2.98225 0.45508,-1.73834 0.23919,1.24391 0.23011,3.04391 -0.0202,4 -0.25029,0.95609 -0.446,-0.0617 -0.4349,-2.26166 z m 9.28862,-15.69401 0.28274,-18.69401 -2.92047,-3.05599 c -3.48851,-3.65039 -4.47679,-3.76407 -7.00716,-0.80599 -1.21699,1.42269 -1.82747,1.69846 -1.6603,0.75 0.19155,-1.08672 -0.49329,-1.42069 -2.48561,-1.21215 -1.5125,0.15832 -2.75,-0.16506 -2.75,-0.71862 0,-0.55355 0.5625,-0.80031 1.25,-0.54835 2.54825,0.93391 4.09299,-1.52526 5.76162,-9.1723 l 1.7126,-7.84858 0.75144,4.75 c 0.47796,3.02135 1.256,4.75 2.13788,4.75 0.76256,0 2.28646,0.9 3.38646,2 1.1,1.1 2.43194,2 2.95986,2 1.01738,0 2.78745,-5.49321 3.38339,-10.5 0.1964,-1.65 0.41964,0.15 0.49609,4 0.0765,3.85 -0.53112,9.20902 -1.35016,11.90893 -0.98567,3.24914 -1.55433,10.01147 -1.68186,20 -0.12721,9.96353 -0.37213,12.88254 -0.72083,8.59107 l -0.52816,-6.5 -0.65014,9.5 c -0.42913,6.27061 -0.55402,3.14524 -0.36739,-9.19401 z m 2.14231,-21.99349 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19293,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36782,-1.1948 0.0789,-1.91667 z m -4.01644,-1.26851 c 0,-0.80081 -0.38234,-1.21971 -0.84965,-0.9309 -0.4673,0.28881 -0.59075,0.94401 -0.27432,1.45601 0.80863,1.30838 1.12397,1.16106 1.12397,-0.52511 z m 27.49122,38.45601 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m -10.90571,-3.5 c 0.0111,-2.2 0.21589,-2.98225 0.45508,-1.73834 0.23919,1.24391 0.23011,3.04391 -0.0202,4 -0.25029,0.95609 -0.446,-0.0617 -0.4349,-2.26166 z m 11.82677,-1.08333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -9.76339,-3.84232 c -0.75593,-0.86132 -1.29861,-6.42037 -1.5,-15.36568 -0.17356,-7.70885 -0.62873,-13.8229 -1.01149,-13.58678 -2.00812,1.23879 -3.65882,-14.60606 -1.96712,-18.8821 0.38301,-0.96811 0.69638,1.02189 0.69638,4.42222 0,4.0293 0.4317,6.32633 1.23957,6.59562 0.68176,0.22726 0.9852,0.82476 0.67431,1.32778 -0.31088,0.50302 0.13631,0.91459 0.99377,0.91459 0.85746,0 1.55902,-0.41968 1.55902,-0.93261 0,-0.51294 0.89734,-1.21742 1.99408,-1.56551 2.9991,-0.95188 5.00592,-3.36294 5.00592,-6.01429 0,-3.63113 1.55312,-3.77448 1.82452,-0.1684 0.65742,8.73528 3.74584,14.1122 6.69837,11.66181 1.26656,-1.05115 1.42134,-0.99924 0.91956,0.30839 -0.6475,1.68734 -6.11239,2.10004 -8.01334,0.60515 -1.56612,-1.23157 -7.09366,-0.59936 -7.0948,0.81147 -5.4e-4,0.66331 0.48652,0.96744 1.08236,0.67584 0.59583,-0.29159 0.2638,0.13874 -0.73785,0.95628 -1.54454,1.26065 -1.81353,2.98083 -1.77079,11.32416 0.0277,5.41074 0.33584,11.75021 0.68472,14.08771 0.68366,4.58048 0.54098,4.89601 -1.27719,2.82435 z m 12.18444,-27.57435 c -0.33992,-0.55 -0.14148,-1 0.44098,-1 0.58246,0 1.05902,0.45 1.05902,1 0,0.55 -0.19844,1 -0.44098,1 -0.24254,0 -0.7191,-0.45 -1.05902,-1 z M 236.3861,564.0148 c 0.72815,-1.21249 1.53915,-1.98927 1.80223,-1.72619 0.26308,0.26308 -0.33267,1.25511 -1.3239,2.20452 -1.72194,1.64929 -1.74325,1.62798 -0.47833,-0.47833 z m -4.60039,-0.29548 c -0.33992,-0.55 -0.14148,-1 0.44098,-1 0.58246,0 1.05902,0.45 1.05902,1 0,0.55 -0.19844,1 -0.44098,1 -0.24254,0 -0.7191,-0.45 -1.05902,-1 z m -3.67795,-1.33936 c -0.92288,-0.70167 -1.36747,-1.77813 -0.988,-2.39213 0.43003,-0.6958 1.1209,-0.2032 1.83387,1.30756 0.62915,1.33316 1.07375,2.40962 0.98799,2.39213 -0.0858,-0.0175 -0.91099,-0.6059 -1.83386,-1.30756 z m -148.82205,-0.0382 c 0,-0.20765 0.7875,-0.99515 1.75,-1.75 1.58606,-1.24387 1.62143,-1.2085 0.37756,0.37756 -1.30637,1.66575 -2.12756,2.19548 -2.12756,1.37244 z m 162.232,-2.62244 c 0,-1.925 0.2058,-2.7125 0.45733,-1.75 0.25152,0.9625 0.25152,2.5375 0,3.5 -0.25153,0.9625 -0.45733,0.175 -0.45733,-1.75 z m -170.07411,0 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m 4.92106,0.41667 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 155,-2 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 5.07894,-1.41667 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m -168.92589,-6 c 0,-1.925 0.2058,-2.7125 0.45733,-1.75 0.25152,0.9625 0.25152,2.5375 0,3.5 -0.25153,0.9625 -0.45733,0.175 -0.45733,-1.75 z m 4.84695,1.41667 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 153,-1 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 10.116,-0.91667 c 0.0204,-1.65 0.2445,-2.20394 0.49804,-1.23097 0.25354,0.97297 0.23687,2.32297 -0.0371,3 -0.27393,0.67703 -0.48137,-0.11903 -0.46099,-1.76903 z m 4.7914,-1.75 c -0.008,-2.3375 -0.285,-5.2625 -0.61664,-6.5 -0.99157,-3.70006 2.72043,-2.77817 6.0399,1.50003 l 2.90961,3.74997 -3.45722,-3.25 c -1.90147,-1.7875 -3.68951,-3.25 -3.97342,-3.25 -0.28391,0 -0.3209,2.7 -0.0822,6 0.2387,3.3 0.15492,6 -0.18619,6 -0.3411,0 -0.62633,-1.9125 -0.63384,-4.25 z m -161.9074,1.66667 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 151,-2 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z M 73.4436,546.71932 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m 9.92106,0.41667 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -24.57895,-0.047 c 0.55,-0.48135 2.79906,-2.44893 4.9979,-4.3724 l 3.99791,-3.49723 -2.99791,3.33606 c -1.64884,1.83483 -3.8979,3.80241 -4.9979,4.3724 -1.1,0.57 -1.55,0.64252 -1,0.16117 z m 160.57895,-9.95296 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 1,-5.16667 c -0.053,-1.51164 0.49533,-2.24497 1.67105,-2.23469 1.07943,0.009 1.32848,0.29683 0.64994,0.75 -0.60503,0.40408 -1.357,1.40969 -1.67105,2.23469 -0.38154,1.00229 -0.59719,0.75344 -0.64994,-0.75 z M 89.29187,524.07851 c 0.003,-0.47255 0.63592,-2.06627 1.40563,-3.54159 1.21487,-2.3286 1.20736,-2.60869 -0.057,-2.12352 -1.63436,0.62716 -1.64552,0.69731 2.24083,-14.08956 1.28587,-4.89251 2.63772,-11.54517 3.00412,-14.78368 0.36639,-3.23852 0.77499,-5.76056 0.908,-5.60453 0.133,0.15603 0.54297,2.98369 0.91105,6.28369 0.36807,3.3 0.30441,5.46834 -0.14147,4.81852 -0.46046,-0.67105 -0.8385,1.27303 -0.87506,4.5 -0.0354,3.12482 -1.00634,8.26898 -2.15765,11.43148 -1.1513,3.1625 -1.90798,5.75 -1.68151,5.75 1.26253,0 5.58077,-8.73879 7.93507,-16.05813 4.89931,-15.2316 5.49032,-16.53842 9.03181,-19.97097 l 3.50529,-3.39746 -0.66122,3.46328 c -1.46489,7.67269 -6.92791,20.61353 -11.54118,27.33882 -8.32367,12.13436 -11.83316,16.87737 -11.82675,15.98365 z m 4.87266,-16.35919 c -0.017,-0.825 -0.63751,0.075 -1.37882,2 -1.75824,4.5657 -1.73229,6.36206 0.0361,2.5 0.75552,-1.65 1.35974,-3.675 1.3427,-4.5 z m 1.95121,-7.5 c -0.0236,-1.60779 -0.1864,-1.50973 -0.83003,0.5 -1.09501,3.41917 -1.09501,6.04822 0,3.5 0.47269,-1.1 0.8462,-2.9 0.83003,-4 z m 10.20594,-4.6971 c 2.18022,-4.50841 3.96403,-8.78341 3.96403,-9.5 0,-2.43569 -1.90051,-1.31482 -3.5055,2.06745 -1.87732,3.95615 -5.51228,15.62965 -4.86685,15.62965 0.24436,0 2.22811,-3.6887 4.40832,-8.1971 z m 120.54679,26.55217 c -1.62921,-4.24564 0.27459,-5.35865 2.39355,-1.39934 0.72511,1.35488 0.6158,1.98681 -0.41186,2.38117 -0.76942,0.29525 -1.66117,-0.14657 -1.98169,-0.98183 z M 79.2923,521.96932 c 0.004,-0.4125 0.94743,-2.1 2.09734,-3.75 1.98281,-2.84513 2.06061,-2.87094 1.50706,-0.5 -0.32102,1.375 -0.58983,3.0625 -0.59733,3.75 -0.008,0.6875 -0.68866,1.25 -1.51366,1.25 -0.825,0 -1.49703,-0.3375 -1.49341,-0.75 z m 133.25128,-6.95865 c -9.27596,-12.61755 -11.55865,-17.18484 -15.25446,-30.52161 l -1.98293,-7.15564 3.97058,3.87717 c 3.79381,3.70455 5.93302,8.34724 7.54208,16.36846 0.76779,3.82742 4.6773,13.00562 7.14231,16.7677 2.98482,4.5554 3.36401,0.34429 0.82704,-9.18453 -1.30954,-4.91859 -2.46156,-7.8179 -2.56005,-6.4429 -0.17193,2.40029 -0.20426,2.38592 -0.81075,-0.36005 -0.34743,-1.57303 -0.44346,-6.07303 -0.2134,-10 l 0.41828,-7.13995 0.7866,5.67668 c 1.04741,7.55897 7.00375,31.60162 8.38112,33.83025 1.02545,1.65923 -0.57569,1.10999 -2.344,-0.80406 -0.91316,-0.98842 -1.25866,-1.20255 -0.76779,-0.47583 0.49088,0.72671 0.65977,1.55403 0.37531,1.83848 -0.28445,0.28445 -2.76392,-2.53892 -5.50994,-6.27417 z m -7.12788,-17.84305 c -0.9937,-3.27157 -2.6541,-7.5233 -3.68975,-9.4483 -1.77755,-3.30397 -1.90349,-3.36659 -2.24848,-1.11802 -0.33442,2.17969 6.47341,17.78618 7.36829,16.8913 0.20718,-0.20717 -0.43635,-3.05342 -1.43006,-6.32498 z m 25.87001,23.0517 c -0.71755,-0.86459 -0.81474,-1.5 -0.22943,-1.5 0.5585,0 1.27447,0.675 1.59106,1.5 0.31658,0.825 0.41982,1.5 0.22943,1.5 -0.19039,0 -0.90637,-0.675 -1.59106,-1.5 z m -154.96937,0 c 0,-0.55 0.43621,-1.675 0.96937,-2.5 0.53316,-0.825 0.96937,-1.05 0.96937,-0.5 0,0.55 -0.43621,1.675 -0.96937,2.5 -0.53316,0.825 -0.96937,1.05 -0.96937,0.5 z m 146.04832,-3.08333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 4.94213,-2.38706 c -1.16331,-1.63372 -2.76895,-5.48067 -3.56809,-8.54879 -1.96577,-7.54709 -1.75152,-8.02939 0.71458,-1.60863 1.51198,3.93659 2.30785,5.0055 2.97827,4 0.59541,-0.893 0.67877,-0.35975 0.23869,1.52696 -0.47619,2.04157 -0.34066,2.69177 0.45817,2.19807 0.75328,-0.46555 0.91316,-0.12459 0.47591,1.01489 -0.44376,1.15641 -0.28072,1.4825 0.5,1 0.78071,-0.48251 0.94376,-0.15642 0.5,1 -0.48212,1.25638 -0.30375,1.49674 0.66596,0.89743 0.88124,-0.54464 1.08567,-0.43221 0.61092,0.33595 -1.00134,1.6202 -1.19931,1.51963 -3.57441,-1.81588 z m -147.3643,0.55635 c 0.46985,-1.31654 0.32145,-1.69054 -0.47539,-1.19807 -0.76966,0.47568 -0.94781,0.16697 -0.53077,-0.9198 0.34795,-0.90676 0.89994,-1.19698 1.23854,-0.6512 0.33596,0.54152 1.91028,-2.35881 3.49847,-6.44518 1.5882,-4.08638 3.01968,-7.29774 3.18106,-7.13636 0.16138,0.16138 -0.50833,3.21195 -1.48825,6.77904 -0.97991,3.56708 -1.65764,7.05936 -1.50605,7.76061 0.18598,0.86035 0.0941,0.89311 -0.28248,0.10072 -0.35986,-0.75716 -1.22592,-0.32203 -2.43816,1.225 -1.43079,1.82593 -1.71683,1.94189 -1.19697,0.48524 z m 6.27632,-2.25184 c -0.25845,-2.29124 -0.20482,-4.00205 0.11917,-3.80182 0.32399,0.20024 1.4041,-2.77828 2.40024,-6.61894 0.99614,-3.84067 1.99473,-6.79946 2.21909,-6.5751 0.22436,0.22436 -0.48684,3.95254 -1.58044,8.28484 -1.09361,4.33229 -2.14582,9.0019 -2.33827,10.3769 -0.24626,1.75955 -0.48907,1.26614 -0.81979,-1.66588 z m 127.63493,-3.41699 c -0.86242,-2.90407 -1.53597,-5.98596 -1.49679,-6.84863 0.0392,-0.86268 0.90537,1.35281 1.92486,4.92331 1.01949,3.57049 1.69305,6.65238 1.49679,6.84863 -0.19625,0.19626 -1.06244,-2.01923 -1.92486,-4.92331 z m 7.58986,1.08287 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m -2.49122,-8.66667 c -0.89327,-3.14006 -1.45033,-5.883 -1.23792,-6.09542 0.21242,-0.21242 1.12948,2.17052 2.03792,5.29542 0.90843,3.1249 1.46549,5.86784 1.23791,6.09542 -0.22758,0.22759 -1.14464,-2.15535 -2.03791,-5.29542 z m -75.91667,3.97734 c -0.9625,-0.25152 -1.75,-0.81922 -1.75,-1.26155 0,-1.38724 2.8632,-3.2517 3.95619,-2.57619 1.50986,0.93314 1.2993,-0.0518 -0.95619,-4.47293 -1.1,-2.15618 -1.97905,-4.27575 -1.95344,-4.71016 0.0256,-0.43441 1.20082,1.42948 2.61158,4.14199 2.38735,4.59024 2.44645,5.01852 0.8533,6.18347 -0.94145,0.68839 -1.4151,1.73157 -1.05256,2.31817 0.36253,0.58659 0.5201,1.01433 0.35014,0.95053 -0.16996,-0.0638 -1.09652,-0.3218 -2.05902,-0.57333 z m 3.86309,-1.49365 c 0.28881,-0.4673 0.94401,-0.59075 1.45601,-0.27431 1.30838,0.80862 1.16106,1.12396 -0.52511,1.12396 -0.80081,0 -1.21971,-0.38234 -0.9309,-0.84965 z m 12.38691,0.63876 c 0,-0.11599 0.6,-0.70885 1.33333,-1.31746 0.99637,-0.82691 1.33334,-0.77361 1.33334,0.21089 0,0.7246 -0.6,1.31746 -1.33334,1.31746 -0.73333,0 -1.33333,-0.0949 -1.33333,-0.21089 z M 86.36466,486.13599 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 135,-0.56512 c -0.0434,-0.90665 -1.43773,-4.23154 -3.09846,-7.38864 -1.66073,-3.1571 -2.38505,-5.21363 -1.6096,-4.57006 1.89467,1.57243 5.86957,10.95278 5.26715,12.42989 -0.26731,0.65542 -0.51514,0.44655 -0.55909,-0.47119 z m -99,-3.43488 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 72,-8 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -79.884,-4.91667 c 0.0204,-1.65 0.2445,-2.20394 0.49804,-1.23097 0.25354,0.97297 0.23687,2.32297 -0.0371,3 -0.27393,0.67703 -0.48137,-0.11903 -0.46099,-1.76903 z m 60.32076,1.52542 c -0.80811,-1.30755 1.49346,-2.41625 2.63864,-1.27107 0.64011,0.64011 0.44756,1.18443 -0.55511,1.56919 -0.84435,0.32401 -1.78194,0.18986 -2.08353,-0.29812 z m 38.46423,-0.54959 c -0.69572,-0.83829 -1.07128,-1.71782 -0.83459,-1.95452 0.2367,-0.23669 0.97964,0.44918 1.65098,1.52417 1.45181,2.32472 0.96763,2.57996 -0.81639,0.43035 z m -81.97994,-0.47583 c 1.93876,-1.25292 3,-1.25292 3,0 0,0.55 -1.0125,0.99311 -2.25,0.98469 -1.81944,-0.0124 -1.96296,-0.20082 -0.75,-0.98469 z m 62.07895,-1.58333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -55.57895,-3.41667 c 0.33992,-0.55 0.81648,-1 1.05902,-1 0.24254,0 0.44098,0.45 0.44098,1 0,0.55 -0.47656,1 -1.05902,1 -0.58246,0 -0.7809,-0.45 -0.44098,-1 z m 60.40296,-45.46548 c -1.37239,-2.97032 -2.086,-5.14765 -1.5858,-4.8385 1.09828,0.67877 5.00964,9.31051 4.46551,9.85464 -0.21145,0.21145 -1.50731,-2.04581 -2.87971,-5.01614 z m -89.46001,1.96548 c 0.41889,-1.1 1.20961,-3.2375 1.75716,-4.75 0.54755,-1.5125 1.41066,-2.75 1.91804,-2.75 0.50737,0 -0.042,1.9125 -1.22075,4.25 -2.35695,4.67378 -3.64724,6.38229 -2.45445,3.25 z M 107.85,417.42619 c 0.37553,-0.98622 0.93469,-1.54122 1.24258,-1.23333 0.30789,0.30789 6.4e-4,1.11479 -0.68278,1.79313 -0.98762,0.98026 -1.10248,0.8654 -0.5598,-0.5598 z m 74.68571,-19.17063 c -2.8875,-1.34433 -5.25,-2.70149 -5.25,-3.01591 0,-0.31443 1.4625,0.1905 3.25,1.12206 1.7875,0.93156 5.05,2.26302 7.25,2.95879 2.2,0.69576 3.1,1.29074 2,1.32216 -1.1,0.0314 -4.3625,-1.04278 -7.25,-2.3871 z m -59.0948,-0.0215 c 3.68233,-1.35435 6.21229,-2.76683 13.0948,-7.31086 3.38941,-2.23778 3.76138,-2.91952 3.86831,-7.08985 0.10699,-4.172 0.19145,-4.32661 0.88169,-1.614 0.72153,2.83559 0.76985,2.77065 0.88168,-1.1849 0.0651,-2.3017 0.56049,-5.3479 1.10092,-6.76934 0.87152,-2.29227 1.21096,-2.44183 3.00261,-1.32292 1.111,0.69383 1.86684,1.71503 1.67963,2.26934 -0.18721,0.5543 0.33473,1.50525 1.15987,2.11321 0.96686,0.71239 1.24081,1.77899 0.77052,3 -0.7122,1.84911 -0.75589,1.84799 -1.81911,-0.0465 -0.97741,-1.74158 -1.35592,-1.38619 -3.68275,3.45773 -1.83444,3.81889 -3.98343,6.36464 -7.34337,8.69916 -2.6125,1.8152 -4.75,3.08438 -4.75,2.82041 0,-0.26397 -2.09202,0.6324 -4.64894,1.99192 -2.55692,1.35953 -5.36942,2.44016 -6.25,2.40141 -0.88058,-0.0387 0.0438,-0.67543 2.05414,-1.41484 z m 21.52791,-21.70221 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19293,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36782,-1.19479 0.0789,-1.91667 z m 25.81689,15.39851 c -3.56183,-2.69194 -5.42258,-4.99157 -6.46917,-7.99496 -1.42378,-4.08584 -3.4375,-5.49606 -4.27223,-2.99187 -0.22444,0.67332 -0.66981,0.22331 -0.98972,-1 -0.3199,-1.22332 -0.17377,-2.22421 0.32474,-2.22421 0.49851,0 0.90638,-0.56675 0.90638,-1.25945 0,-0.6927 0.96031,-1.85918 2.13402,-2.59217 1.77988,-1.11156 2.27519,-1.10999 2.98469,0.01 0.76704,1.21023 0.97392,2.45843 1.33238,8.03887 0.0599,0.93319 0.43297,2.02069 0.82895,2.41667 0.39598,0.39598 0.71996,1.53858 0.71996,2.53911 0,1.01449 1.7693,2.99001 4,4.46622 2.2,1.45589 4,3.03727 4,3.51418 0,1.2367 0.008,1.24089 -5.5,-2.92184 z m -2.20034,-14.21104 c 0,-3.025 0.18747,-4.2625 0.41659,-2.75 0.22913,1.5125 0.22913,3.9875 0,5.5 -0.22912,1.5125 -0.41659,0.275 -0.41659,-2.75 z"
- id="path3030"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#323232"
- d="m 147.78571,702.71932 c 0.33992,-0.55 0.81648,-1 1.05902,-1 0.24254,0 0.44098,0.45 0.44098,1 0,0.55 -0.47656,1 -1.05902,1 -0.58246,0 -0.7809,-0.45 -0.44098,-1 z m 19.57895,-8.58333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -27.5259,-2.06131 c -0.36646,-1.4601 -0.19106,-3.11735 0.39159,-3.7 0.74048,-0.74048 1.05536,0.0486 1.05536,2.64464 0,4.35507 -0.52303,4.73655 -1.44695,1.05536 z m 20.07049,0.10598 c -0.34295,-0.8937 -0.56341,-3.27561 -0.48993,-5.29313 0.11938,-3.27734 0.21048,-3.13543 0.85495,1.33179 0.76777,5.32186 0.64952,6.60519 -0.36502,3.96134 z m -12.62354,-0.52036 c 0,-0.58246 0.45,-0.7809 1,-0.44098 0.55,0.33992 1,0.81648 1,1.05902 0,0.24254 -0.45,0.44098 -1,0.44098 -0.55,0 -1,-0.47656 -1,-1.05902 z m 21.30171,-8.44098 c 0.62168,-9.71244 2.58443,-19.6884 3.73388,-18.978 0.39112,0.24172 2.18321,-2.93675 3.98241,-7.06328 1.7992,-4.12653 3.45832,-7.31573 3.68693,-7.08712 0.46519,0.46519 -4.63796,19.84438 -5.4321,20.6284 -0.27856,0.275 -0.17633,-1.075 0.22717,-3 0.4035,-1.925 0.36804,-3.14948 -0.0788,-2.72106 -0.44683,0.42842 -0.90471,1.32842 -1.01752,2 -0.1128,0.67158 -0.76342,2.57106 -1.44584,4.22106 -1.554,3.75742 -1.68307,4.43602 -2.47184,12.996 -0.9459,10.26511 -1.85609,9.49962 -1.18429,-0.996 z m -7.21611,6.5 c -0.0302,-0.825 0.38124,-2.175 0.9144,-3 1.18132,-1.82797 1.18132,-0.24909 0,2.5 -0.56668,1.31874 -0.87815,1.48906 -0.9144,0.5 z m -15.00665,-1.66667 c 0.0531,-1.23358 0.25628,-1.3874 0.62105,-0.47018 0.45768,1.15087 0.69083,1.15087 1.49718,0 0.78954,-1.12688 0.88772,-1.11399 0.56645,0.0743 -0.58683,2.17061 -2.775,2.49324 -2.68468,0.39583 z m -11,-0.91666 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58438 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 37,-2 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -23.884,-1.91667 c 0.0204,-1.65 0.2445,-2.20394 0.49804,-1.23097 0.25354,0.97297 0.23687,2.32297 -0.0371,3 -0.27393,0.67703 -0.48137,-0.11903 -0.46099,-1.76903 z m -11.96295,-2.5 c 0,-1.925 0.2058,-2.7125 0.45733,-1.75 0.25152,0.9625 0.25152,2.5375 0,3.5 -0.25153,0.9625 -0.45733,0.175 -0.45733,-1.75 z m 2.92804,1.35534 c -0.224,-3.00185 -4.16382,-15.66286 -5.21852,-16.77027 -0.47926,-0.50322 -0.40436,0.77648 0.16644,2.84377 0.57081,2.06729 0.8537,3.94284 0.62864,4.16789 -0.45861,0.45861 -6.75439,-21.95645 -6.70509,-23.87234 0.0173,-0.67342 1.64455,2.48239 3.61606,7.0129 1.9715,4.53051 3.95014,8.01134 4.39698,7.73518 1.17245,-0.72462 4.17687,13.65575 3.68814,17.6529 -0.22694,1.85605 -0.48463,2.40953 -0.57265,1.22997 z m 31.91891,-0.93867 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -25.884,-1.91667 c 0.0204,-1.65 0.2445,-2.20394 0.49804,-1.23097 0.25354,0.97297 0.23687,2.32297 -0.0371,3 -0.27393,0.67703 -0.48137,-0.11903 -0.46099,-1.76903 z m 15,-2 c 0.0204,-1.65 0.2445,-2.20394 0.49804,-1.23097 0.25354,0.97297 0.23687,2.32297 -0.037,3 -0.27393,0.67703 -0.48137,-0.11903 -0.46099,-1.76903 z m 11.884,-1.08333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -24.99973,-5.41667 c -0.34994,-6.26568 -0.39156,-6.3558 -1.15429,-2.5 -0.45714,2.31092 -0.51262,0.4107 -0.1314,-4.5 0.36292,-4.675 0.58529,-10.70006 0.49415,-13.38901 -0.10667,-3.14718 0.17872,-4.54459 0.80103,-3.92228 0.56451,0.56451 0.83917,7.17532 0.66013,15.88901 -0.16862,8.20725 -0.46996,11.99728 -0.66962,8.42228 z m 14.05109,-10.5 c 0.0827,-7.46693 0.24062,-8.31863 0.92706,-5 1.13108,5.46829 1.10707,10.69815 -0.0574,12.5 -0.66171,1.02392 -0.93774,-1.35645 -0.86969,-7.5 z m -1.115,-11.19098 c 0.008,-0.99496 0.45153,-2.48402 0.98469,-3.30902 0.7582,-1.17323 0.97271,-0.91378 0.98469,1.19098 0.008,1.48004 -0.43469,2.9691 -0.98469,3.30902 -0.55,0.33992 -0.99311,-0.19602 -0.98469,-1.19098 z m -33.01531,-3.36804 c 0,-0.58246 0.45,-0.7809 1,-0.44098 0.55,0.33992 1,0.81648 1,1.05902 0,0.24254 -0.45,0.44098 -1,0.44098 -0.55,0 -1,-0.47656 -1,-1.05902 z m 54.07895,-3.52431 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -54.92106,-1.41667 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m 32.50171,0.55531 c -0.96091,-2.50409 -1.99035,-12.11072 -1.22144,-11.39835 0.70109,0.64954 2.57088,12.06998 2.06884,12.63617 -0.14296,0.16122 -0.52429,-0.3958 -0.8474,-1.23782 z m -8.94083,-7.05531 c 0.56686,-10.39531 1.12103,-11.86395 1.132,-3 0.005,3.85 -0.34615,7.9 -0.7798,9 -0.43694,1.10836 -0.59396,-1.56655 -0.3522,-6 z m -14.26416,4.64299 c 0.33781,-1.06433 0.99941,-3.89442 1.47023,-6.28907 0.57788,-2.93918 0.89163,-3.50014 0.96559,-1.72636 0.0603,1.44515 0.77962,3.18364 1.59856,3.8633 0.81894,0.67967 1.24239,1.63477 0.94098,2.12245 -0.3014,0.48768 0.0185,0.88669 0.71101,0.88669 2.05699,0 -0.35383,1.67398 -3.47077,2.40997 -2.47611,0.58467 -2.75302,0.42632 -2.2156,-1.26698 z m 33.79539,0.68161 c -1.7875,-0.48498 -3.25,-1.34548 -3.25,-1.91221 0,-0.56673 0.41834,-0.77187 0.92965,-0.45587 0.51131,0.31601 1.50161,-1.00714 2.20066,-2.94033 1.35891,-3.758 2.53633,-3.57324 3.08329,0.48381 0.18537,1.375 0.67049,3.03141 1.07803,3.6809 1.08751,1.73314 -0.3597,2.14268 -4.04163,1.1437 z m 12.90789,-1.8246 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m -56.82975,-7.5 c 0.004,-3.85 0.18518,-5.30246 0.40166,-3.2277 0.21647,2.07477 0.21284,5.22477 -0.008,7 -0.22091,1.77524 -0.39803,0.0777 -0.39359,-3.7723 z m 1.75081,-13.08333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58438 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 32.92105,-4.80747 c 0,-1.86493 -0.89012,-5.35243 -1.97804,-7.75 -1.5336,-3.37975 -1.94111,-6.26904 -1.81369,-12.8592 l 0.16434,-8.5 0.62739,8.5 c 0.34507,4.675 0.76305,7.825 0.92885,7 0.1658,-0.825 0.21073,-2.4 0.0999,-3.5 -0.15249,-1.51261 0.0846,-1.72262 0.97306,-0.86178 1.22912,1.19102 2.78113,21.36178 1.6436,21.36178 -0.35497,0 -0.64541,-1.52586 -0.64541,-3.3908 z m -0.78204,-10.79124 c -0.62614,-0.62614 -0.76551,0.0314 -0.39346,1.85622 0.42673,2.09296 0.67819,2.34442 0.96961,0.9696 0.2164,-1.02092 -0.0429,-2.29254 -0.57615,-2.82582 z m 16.5207,7.68204 c -1.03682,-9.68508 -1.68863,-11.73317 -3.51153,-11.03367 -1.24926,0.47939 -1.29176,0.31648 -0.24613,-0.94344 1.00921,-1.21602 1.01304,-1.82515 0.019,-3.02289 -1.7437,-2.10103 -3,-1.86693 -3,0.55902 0,1.13246 -0.41891,1.80012 -0.9309,1.48369 -0.512,-0.31644 -1.21206,-0.12041 -1.5557,0.4356 -0.34363,0.55601 -1.49972,1.47919 -2.56909,2.0515 -1.54782,0.82836 -1.94431,0.71546 -1.94431,-0.55364 0,-0.87681 0.40467,-1.34411 0.89926,-1.03843 1.19421,0.73806 6.91424,-5.8465 7.65997,-8.81771 0.79701,-3.17555 0.15799,-9.12003 -0.9804,-9.12003 -0.50664,0 -2.18381,3.6 -3.72705,8 -1.54324,4.4 -2.81134,7.1 -2.81801,6 -0.0159,-2.62063 2.51813,-10.95916 4.86228,-16 2.65748,-5.71463 4.42128,-24.97267 2.89341,-31.59175 -1.18396,-5.12922 -4.0331,-8.06461 -5.95865,-6.13906 -0.52496,0.52496 -1.30874,8.10415 -1.74173,16.84264 -0.71376,14.40488 -0.80134,14.93888 -0.93817,5.71996 -0.17118,-11.53385 -1.26624,-16.30664 -2.25578,-9.83179 -0.60256,3.94269 -0.61335,3.92548 -0.75322,-1.20078 -0.078,-2.86043 -0.6943,-7.58543 -1.36945,-10.5 l -1.22753,-5.29922 -0.61536,5 -0.61536,5 -0.22049,-6 c -0.18873,-5.13566 -0.36583,-5.63986 -1.22937,-3.5 -0.55488,1.375 -1.27115,14.3177 -1.59171,28.76157 -0.32056,14.44386 -0.76569,26.07871 -0.98919,25.85522 -0.60998,-0.60999 -0.5166,-24.91395 0.15539,-40.44347 0.4184,-9.6689 0.29391,-12.98769 -0.42507,-11.33219 -0.55921,1.28763 -1.33248,5.56263 -1.71838,9.5 -0.56339,5.74838 -0.83533,6.56779 -1.3802,4.15887 -0.40214,-1.77792 -0.76736,1.68463 -0.89655,8.5 -0.285,15.03465 -1.77882,10.78339 -1.93261,-5.5 -0.15801,-16.73015 -1.19259,-19.352 -5.68104,-14.397 -1.5152,1.67269 -1.9737,3.97462 -2.24078,11.25 -0.38804,10.57044 1.45918,21.25531 5.22582,30.2277 1.40399,3.34439 2.85323,8.74439 3.22053,12 l 0.66783,5.9193 -2.8605,-2.5 c -1.57327,-1.375 -3.36764,-3.13125 -3.98749,-3.90278 -1.56111,-1.94312 -3.71338,-0.35788 -3.1951,2.35333 0.27097,1.41749 -0.071,2.21612 -0.94886,2.21612 -0.87204,0 -1.12431,-0.57735 -0.69185,-1.58334 1.2077,-2.80933 1.92307,-21.26096 1.27964,-33.0059 -0.50265,-9.17535 -0.96501,-11.67064 -2.35013,-12.68347 -0.94841,-0.69349 -1.42776,-1.74083 -1.06522,-2.32743 0.36253,-0.58659 0.1826,-1.06653 -0.39986,-1.06653 -0.58246,0 -1.05902,0.81 -1.05902,1.8 0,0.99 -0.5625,2.36294 -1.25,3.05098 -0.94254,0.94329 -1.21631,7.57218 -1.11302,26.95 0.0804,15.07385 -0.14888,22.59817 -0.55444,18.19902 -0.38029,-4.125 -1.28287,-8.58277 -2.00574,-9.90616 -1.60414,-2.93674 -8.10718,-22.0739 -7.9993,-23.54032 0.0426,-0.57944 0.90775,1.19648 1.9225,3.94648 2.13927,5.79749 2.29434,5.31345 1.05137,-3.28164 -1.03979,-7.19015 0.57187,-13.68059 4.60501,-18.54509 1.28899,-1.55469 2.34362,-3.22466 2.34362,-3.71104 0,-0.48638 0.93268,-1.75325 2.07263,-2.81527 1.94313,-1.8103 2.64691,-3.56521 2.86617,-7.14696 0.0796,-1.29981 0.21444,-1.30618 1.01053,-0.0478 0.50529,0.79874 0.75643,1.71482 0.55811,2.03572 -0.19833,0.3209 0.43136,0.58346 1.39931,0.58346 0.96795,0 1.75992,-0.59794 1.75992,-1.32875 0,-0.73563 -0.63247,-1.08605 -1.4169,-0.78503 -0.85248,0.32712 -1.24011,0.0455 -0.9731,-0.70697 0.24409,-0.68787 1.51919,-1.13682 2.83356,-0.99765 1.31437,0.13916 1.89352,-0.0858 1.28698,-0.5 -0.73902,-0.50464 -0.3267,-1.57074 1.25,-3.232 1.29404,-1.36338 2.35279,-1.96338 2.35279,-1.33328 0,0.6301 -0.5625,1.37261 -1.25,1.65002 -0.74674,0.30132 -0.54544,0.53617 0.5,0.58333 0.9625,0.0434 1.75,-0.2862 1.75,-0.73249 0,-0.44629 0.82348,-1.69534 1.82996,-2.77567 1.00648,-1.08033 2.69398,-3.29091 3.75,-4.9124 l 1.92004,-2.94816 -2.47251,1.72384 c -2.89079,2.01546 -5.38293,2.26369 -4.75708,0.47383 0.24039,-0.6875 1.0823,-1.13973 1.8709,-1.00495 0.83283,0.14234 1.50039,-0.63855 1.59262,-1.86303 0.21807,-2.89487 0.75987,-3.2233 3.18042,-1.92786 1.24818,0.66801 2.08565,2.10592 2.08565,3.58102 0,1.35565 0.45,2.46482 1,2.46482 0.55,0 1,-0.81885 1,-1.81966 0,-1.00082 1.08287,-2.76121 2.40638,-3.91199 l 2.40639,-2.09233 0.70177,2.16199 c 0.38597,1.1891 0.65309,2.49949 0.59361,2.91199 -0.0595,0.4125 0.22935,0.69671 0.64185,0.63158 1.83331,-0.28947 3.25,0.19806 3.25,1.11842 0,1.5309 -3.66865,1.18849 -5.35714,-0.5 -0.825,-0.825 -1.81056,-1.5 -2.19012,-1.5 -0.80732,0 4.5867,7.34091 5.75584,7.83333 0.43528,0.18334 0.79142,0.93508 0.79142,1.67055 0,0.73546 1.35393,1.63458 3.00873,1.99804 1.6548,0.36345 2.75642,1.06905 2.44806,1.568 -0.30837,0.49894 0.0922,0.65665 0.89012,0.35045 0.79793,-0.30619 1.7524,-0.0687 2.12104,0.52777 0.36863,0.59647 1.04115,0.85525 1.49447,0.57508 0.45333,-0.28017 1.12924,0.70586 1.50204,2.19118 0.37279,1.48532 1.77079,3.79358 3.10667,5.12946 1.33588,1.33588 2.42887,2.88753 2.42887,3.44811 0,0.56059 1.04599,2.41172 2.32443,4.11364 4.51716,6.01344 5.27854,12.06006 3.09691,24.59439 -0.23932,1.375 0.65784,-0.425 1.99369,-4 1.33585,-3.575 2.46395,-6.02892 2.50689,-5.45316 0.0997,1.33655 -7.31212,23.44523 -8.77832,26.18484 -0.6092,1.1383 -1.18631,7.82678 -1.28702,14.91599 -0.10041,7.06878 -0.44673,11.53945 -0.76958,9.93483 -0.83746,-4.16233 -2.88237,-4.40784 -3.2751,-0.3932 -0.21525,2.20039 -0.57518,0.96311 -1.07324,-3.6893 z m 4.06535,-28.54034 c -0.3321,-29.42014 -0.49796,-30.4454 -4.80401,-29.69616 -1.94353,0.33817 -2.26416,3.51727 -2.39403,23.7365 -0.10186,15.86068 1.35482,26.7603 3.40689,25.49205 0.41971,-0.2594 1.06609,1.54878 1.4364,4.01816 0.37031,2.46938 1.12283,4.48979 1.67228,4.48979 0.64911,0 0.88814,-9.82099 0.68247,-28.04034 z m -38.09244,4.44231 -3.39803,-8.82319 -0.6743,5.08313 c -0.79256,5.97462 -0.34036,7.50802 3.7769,12.80725 2.71086,3.48908 3.12073,3.71437 3.38866,1.86258 0.16764,-1.15862 -1.22432,-6.07702 -3.09323,-10.92977 z m 42.87588,-10.96717 c 1.38394,-8.11906 1.43665,-12.03598 0.27339,-20.31711 -0.14291,-1.01739 -0.54617,-0.90093 -1.52751,0.44113 -0.83114,1.13665 -1.33559,4.67046 -1.33932,9.38231 -0.003,4.15738 -0.23968,11.38387 -0.52528,16.05887 -0.6502,10.64296 0.79575,8.06273 3.11872,-5.5652 z m -58.32802,-10.4348 c -0.77795,-9.73169 -2.01209,-11.72103 -3.69042,-5.94865 -0.85238,2.93162 1.0435,18.56744 3.26758,26.94865 1.02243,3.85291 1.30153,-10.00821 0.42284,-21 z m 50.9239,-15.21667 c -0.71756,-0.71756 -1.18333,-0.7766 -1.18333,-0.15 0,1.33478 1.18261,2.51739 1.85,1.85 0.28417,-0.28416 -0.0158,-1.04916 -0.66667,-1.7 z m -28.22843,-10.03333 c 0.0248,-2.0625 -0.4049,-3.75 -0.9549,-3.75 -1.04278,0 -1.10089,0.336 -1.46989,8.5 -0.2219,4.90934 -0.20237,4.9456 1.07684,2 0.71656,-1.65 1.32314,-4.6875 1.34795,-6.75 z m 13.0451,1.80902 c 0,-4.05387 -1.30684,-6.58552 -2.687,-5.20535 -0.88025,0.88024 0.70849,9.64633 1.74827,9.64633 0.5163,0 0.93873,-1.99844 0.93873,-4.44098 z m 10.97994,-6.08319 c -0.69572,-0.83829 -1.52528,-1.26382 -1.84348,-0.94562 -0.3182,0.31819 0.0834,0.99718 0.8925,1.50885 2.11697,1.33881 2.39358,1.17499 0.95098,-0.56323 z m -41.94953,77.65173 c -0.0256,-1.99438 -0.26945,-2.17407 -1.53041,-1.12756 -1.1339,0.94106 -1.5,0.95351 -1.5,0.051 0,-0.65663 0.675,-1.86888 1.5,-2.69388 0.825,-0.825 1.5,-2.76971 1.5,-4.32158 0,-1.58999 0.65704,-3.07371 1.50529,-3.39921 1.27537,-0.48941 1.4077,0.29612 0.86641,5.14301 -0.69541,6.22694 -2.28752,10.54378 -2.34129,6.3482 z m 16.04854,0.28911 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58438 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 0.61222,-4.77909 c -1.03332,-2.69279 -0.83337,-7.63758 0.30883,-7.63758 0.55,0 1.00689,-1.0125 1.01531,-2.25 0.0117,-1.72509 0.22562,-1.91771 0.91676,-0.82567 0.67828,1.07171 1.00874,0.70037 1.33485,-1.5 0.31133,-2.10061 0.46823,-1.65678 0.55702,1.57567 0.14737,5.36497 -3.02382,13.52747 -4.13277,10.63758 z m 0.99194,-4.82508 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19293,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36782,-1.1948 0.0789,-1.91667 z m -0.38345,-17.8125 c 0,-3.025 0.18747,-4.2625 0.41659,-2.75 0.22913,1.5125 0.22913,3.9875 0,5.5 -0.22912,1.5125 -0.41659,0.275 -0.41659,-2.75 z m 8.19129,-21.34229 c -0.39762,-7.95395 -0.51446,-15.06833 -0.25965,-15.80972 0.25482,-0.74139 0.80137,5.54515 1.21457,13.97011 0.4132,8.42495 0.53004,15.53932 0.25965,15.80972 -0.2704,0.27039 -0.81695,-6.01616 -1.21457,-13.97011 z m 71.48899,-1.18188 c -0.69572,-0.83829 -1.07128,-1.71782 -0.83459,-1.95452 0.2367,-0.23669 0.97964,0.44918 1.65098,1.52417 1.45181,2.32472 0.96763,2.57996 -0.81639,0.43035 z m -111.47994,-4.47583 c -0.38791,-2.82043 -0.48029,-5.35305 -0.20529,-5.62805 0.275,-0.275 0.81738,1.80762 1.20529,4.62805 0.38791,2.82043 0.48029,5.35305 0.20529,5.62805 -0.275,0.275 -0.81738,-1.80762 -1.20529,-4.62805 z m 124.57895,2.41667 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -49.84695,-2.41667 c 0,-1.925 0.2058,-2.7125 0.45733,-1.75 0.25152,0.9625 0.25152,2.5375 0,3.5 -0.25153,0.9625 -0.45733,0.175 -0.45733,-1.75 z m 0.96295,-7.5 c 0.0204,-1.65 0.2445,-2.20394 0.49804,-1.23097 0.25354,0.97297 0.23687,2.32297 -0.0371,3 -0.27393,0.67703 -0.48137,-0.11903 -0.46099,-1.76903 z m 42.884,-0.0833 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 5.17323,-2.9167 c 0.0111,-2.2 0.21589,-2.98225 0.45508,-1.73834 0.23919,1.24391 0.23011,3.04391 -0.0202,4 -0.25029,0.95609 -0.446,-0.0617 -0.4349,-2.26166 z M 115.4382,541.39789 c -0.11289,-5.0498 0.25952,-7.23344 1.43392,-8.40783 1.08084,-1.08085 1.36869,-2.41249 0.90324,-4.17857 -1.05532,-4.00429 -0.97956,-6.83127 0.45808,-17.09217 0.73207,-5.225 1.88222,-13.55 2.55589,-18.5 0.67366,-4.95 1.28594,-8.18594 1.36061,-7.19098 0.0747,0.99496 0.53862,1.56004 1.03098,1.25574 0.49237,-0.3043 1.16516,0.15017 1.49508,1.00993 0.41034,1.06934 1.31227,1.36676 2.85478,0.9414 l 2.25493,-0.6218 -2.17148,1.89956 c -3.54266,3.09905 -6.32078,8.46343 -6.32478,12.21275 -0.002,1.92863 -0.44604,5.04883 -0.98664,6.93377 -1.59903,5.57548 -0.46317,4.61001 2.81302,-2.39104 1.68564,-3.60213 3.45558,-6.54933 3.9332,-6.54933 1.70073,0 5.44759,-8.1096 5.03758,-10.90319 -0.26264,-1.78949 0.0454,-2.76348 0.87398,-2.76348 1.30315,0 1.11255,2.13865 -0.70554,7.91667 -1.11932,3.55728 -0.044,3.48114 3.53066,-0.25 1.5808,-1.65 3.42749,-3 4.10376,-3 0.67626,0 1.45832,-0.46125 1.73791,-1.025 0.27958,-0.56375 0.42958,-0.59863 0.33333,-0.0775 -0.0962,0.52111 -3.63431,3.66945 -7.86234,6.9963 -6.8675,5.40372 -8.14111,6.96455 -11.94201,14.63509 -4.11472,8.30385 -4.21525,8.73362 -3.05643,13.06632 1.03055,3.85312 0.95681,4.92958 -0.52697,7.69242 -0.94886,1.76681 -2.00804,5.91238 -2.35374,9.21238 l -0.62854,6 -0.15248,-6.82143 z m 128.6122,1.79437 c -2.05443,-1.91012 -3.3802,-3.47294 -2.94617,-3.47294 0.43403,0 2.3157,1.575 4.18148,3.5 4.3532,4.49137 3.60688,4.47502 -1.23531,-0.0271 z m -51.58998,-2.75506 c -0.0961,-1.53016 -0.86935,-4.44463 -1.71836,-6.47658 -1.10384,-2.64188 -1.35425,-5.21031 -0.8789,-9.0149 0.61457,-4.91881 0.34731,-5.93963 -3.54044,-13.52341 -3.60265,-7.02765 -5.21969,-8.99104 -11.28571,-13.70299 -3.89429,-3.025 -7.4103,-5.40288 -7.81336,-5.28419 -0.40305,0.1187 -0.45967,-0.7813 -0.12582,-2 0.41099,-1.50029 0.72361,-1.73144 0.96812,-0.71581 0.35706,1.48317 8.19929,8.35381 8.8231,7.72999 0.17765,-0.17765 -0.31235,-2.73149 -1.08889,-5.67521 -0.77654,-2.94372 -1.06082,-4.94779 -0.63175,-4.4535 0.42908,0.4943 1.34662,2.92372 2.03898,5.39872 0.69236,2.475 2.51857,5.85 4.05824,7.5 1.53967,1.65 3.75088,4.8 4.91379,7 l 2.11439,4 -0.40474,-6.10763 c -0.46401,-7.0018 -2.35308,-11.2737 -6.32536,-14.30398 l -2.778,-2.11922 2.59182,0.58412 c 2.18859,0.49325 2.859,0.0678 4.30915,-2.73458 l 1.71733,-3.31871 -0.38484,3.24235 c -0.21165,1.78329 -0.13752,2.99504 0.16474,2.69278 0.49902,-0.49902 4.58023,27.70272 5.58091,38.56487 0.37818,4.10504 0.34302,4.19281 -0.40063,1 l -0.8152,-3.5 -0.13164,3.55 c -0.0724,1.9525 0.34722,4.02886 0.9325,4.61414 0.58527,0.58527 0.88889,3.03777 0.6747,5.45 -0.21495,2.4209 -0.4677,3.13941 -0.56413,1.60374 z m -76.94271,-10.71788 c 0,-1.925 0.2058,-2.7125 0.45733,-1.75 0.25152,0.9625 0.25152,2.5375 0,3.5 -0.25153,0.9625 -0.45733,0.175 -0.45733,-1.75 z m 104.768,1.66667 c 0,-0.92647 0.77721,-1.65987 1.75,-1.65136 0.99868,0.009 1.32068,0.33573 0.75,0.76164 -0.55,0.41047 -1.3375,1.15358 -1.75,1.65135 -0.4125,0.49777 -0.75,0.15503 -0.75,-0.76163 z m -86.884,-2.41667 c -0.0638,-1.2375 0.334,-2.25 0.884,-2.25 0.55,0 1,-0.49814 1,-1.10699 0,-0.60884 -0.7251,-0.82874 -1.61134,-0.48866 -1.10795,0.42516 -1.44477,0.18425 -1.07815,-0.77115 0.29326,-0.76422 0.01,-1.91306 -0.6303,-2.55299 -0.8262,-0.8262 -0.84899,-1.36884 -0.0786,-1.87185 0.59668,-0.3896 1.1492,-2.73336 1.22782,-5.20836 0.0979,-3.0826 -0.14689,-4.04257 -0.77725,-3.04775 -0.5061,0.79874 -0.65274,1.92374 -0.32585,2.5 0.3341,0.58898 0.19574,0.68286 -0.31598,0.21442 -0.50068,-0.45834 -0.94919,-1.13334 -0.9967,-1.5 -0.0993,-0.76616 -1.48225,-4.23321 -2.22233,-5.57118 -0.28208,-0.50997 0.0774,-0.54746 0.82413,-0.086 0.94068,0.58137 1.15297,0.37169 0.73266,-0.72364 -0.32549,-0.8482 -0.087,-2.04702 0.53006,-2.66404 1.59819,-1.5982 2.76089,-1.38717 2.08348,0.37814 -0.32598,0.84948 -0.0232,1.5 0.69805,1.5 0.70051,0 0.9916,0.28205 0.64687,0.62678 -0.34473,0.34474 0.0303,1.89739 0.83333,3.45034 1.78789,3.45739 1.83972,4.26897 0.21012,3.28994 -0.95306,-0.57258 -0.98544,-0.40844 -0.13631,0.69098 0.61254,0.79308 1.10004,3.55548 1.08334,6.13868 -0.0167,2.58319 0.57081,5.42108 1.30558,6.30642 0.73476,0.88534 0.92226,1.53103 0.41666,1.43486 -2.12508,-0.40419 -3.29994,0.16656 -3.72994,1.812 -0.34415,1.31691 -0.48603,1.19317 -0.57333,-0.5 z m 40.56794,-0.35062 c -0.30213,-1.15533 -0.96461,-1.84395 -1.47218,-1.53026 -1.07557,0.66475 -0.33842,-4.36417 0.86523,-5.90266 0.44473,-0.56844 0.39124,-1.69344 -0.11888,-2.5 -1.20097,-1.89887 -1.21555,-3.2436 -0.0272,-2.50917 0.512,0.31644 1.21356,0.11799 1.55902,-0.44098 0.34545,-0.55897 0.15155,-1.01631 -0.43091,-1.01631 -0.58246,0 -1.05902,-1.125 -1.05902,-2.5 0,-1.375 0.42416,-2.5 0.94258,-2.5 0.51842,0 0.76926,-0.9 0.55742,-2 -0.25269,-1.31212 0.15311,-2 1.17986,-2 1.27776,0 1.33652,-0.27534 0.32014,-1.5 -1.01957,-1.22851 -0.95124,-1.5 0.37756,-1.5 1.57898,0 2.05294,1.09012 1.67404,3.85035 -0.10195,0.7427 0.25277,1.07957 0.78826,0.74862 1.34867,-0.83352 0.12211,3.70749 -1.25214,4.63572 -0.70628,0.47705 -0.58235,0.74005 0.35341,0.75 1.05978,0.0113 0.95261,0.37252 -0.40501,1.36524 -1.39878,1.02281 -1.69536,2.10388 -1.22389,4.46123 0.34224,1.71121 0.20665,3.36815 -0.30131,3.68209 -0.50796,0.31394 -0.66812,1.23649 -0.35591,2.05012 0.40228,1.04832 0.0982,1.29916 -1.04367,0.86098 -0.88624,-0.34008 -1.61134,-0.15768 -1.61134,0.40533 0,0.56301 0.52318,1.19805 1.16263,1.4112 1.3194,0.4398 2.0842,3.77912 0.86552,3.77912 -0.43719,0 -1.04208,-0.94528 -1.34421,-2.10062 z m 1.99917,-17.08688 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m -9.53987,16.29719 c -0.83426,-0.52861 -0.97089,-1.09817 -0.35479,-1.47895 0.55109,-0.34059 1.26001,0.0532 1.57538,0.875 0.66263,1.72679 0.60022,1.75767 -1.22059,0.60395 z m -85.6813,-6.91205 c 0.22831,-1.18554 0.89896,-2.95251 1.49033,-3.92659 0.86304,-1.42158 0.94836,-1.17908 0.43236,1.22895 -0.73723,3.44046 -2.55762,5.99457 -1.92269,2.69764 z m 146.01414,-0.273 c -0.96385,-3.03684 0.01,-3.34845 1.34004,-0.42887 0.62755,1.37733 0.73097,2.50423 0.22983,2.50423 -0.50115,0 -1.20759,-0.93391 -1.56987,-2.07536 z M 90.71428,519.79042 c 0,-1.05834 0.30351,-1.73669 0.67446,-1.50742 0.71753,0.44346 5.69351,-5.61814 5.50718,-6.70869 -0.0606,-0.35476 0.61752,-1.47976 1.50697,-2.5 0.88944,-1.02025 1.61706,-2.52999 1.61692,-3.35499 -3.3e-4,-1.9808 4.80797,-18.28237 6.09063,-20.64905 0.55174,-1.01802 2.36578,-3.14763 4.03121,-4.73247 l 3.02805,-2.88151 -1.45761,6.24821 c -0.80169,3.43651 -1.93456,6.9832 -2.5175,7.88152 -0.89519,1.3795 -0.95958,1.32252 -0.41435,-0.3667 2.58944,-8.02261 0.86155,-10.41041 -2.3518,-3.25 -2.4109,5.37226 -5.42284,15.80322 -4.7558,16.47026 0.27791,0.27792 1.47742,-1.00795 2.66558,-2.85748 1.18815,-1.84953 1.88555,-2.53364 1.54976,-1.52024 -0.63672,1.9216 -8.98315,14.14602 -12.9078,18.90514 -1.95089,2.3657 -2.2659,2.48017 -2.2659,0.82342 z m 121.88806,-4.8211 c -6.40151,-8.51356 -9.45993,-13.56838 -11.60329,-19.17742 -2.62712,-6.875 -1.34713,-5.85788 1.72511,1.37084 1.51163,3.55673 3.46563,7.04949 4.34222,7.76168 1.38491,1.12519 1.48885,1.03278 0.79311,-0.7051 -1.53922,-3.84476 -1.67019,-5.97131 -0.16808,-2.729 0.83348,1.79905 1.26002,3.93655 0.94787,4.75 -0.31215,0.81345 -0.0997,1.479 0.47205,1.479 0.57178,0 1.35968,1.0125 1.75088,2.25 0.91796,2.90382 5.44306,8.85594 6.32047,8.31368 0.37095,-0.22927 0.67446,0.45012 0.67446,1.50974 0,1.05962 -0.0403,1.92658 -0.0897,1.92658 -0.0493,0 -2.37363,-3.0375 -5.16513,-6.75 z M 81.83181,511.01916 c 2.75261,-6.22413 4.13611,-8.24082 2.94982,-4.29984 -0.94349,3.13434 -4.37881,10 -5.00363,10 -0.25689,0 0.66733,-2.56507 2.05381,-5.70016 z m 145.91278,4.63363 c -0.36253,-0.58659 -0.44468,-1.281 -0.18255,-1.54313 0.26212,-0.26213 0.74306,0.21781 1.06875,1.06653 0.67618,1.76211 0.0999,2.07206 -0.8862,0.4766 z m -137.45888,-0.5853 c 0,-0.54184 0.73034,-3.42934 1.62299,-6.41667 0.89264,-2.98732 2.42526,-9.7065 3.40581,-14.9315 1.06062,-5.65158 1.8199,-8.08216 1.87432,-6 0.0503,1.925 -1.26641,8.87162 -2.92608,15.43693 -2.74972,10.87734 -3.97704,14.55317 -3.97704,11.91124 z m 125.05838,-9.07883 c -1.22996,-4.82314 -2.64626,-9.80301 -3.14733,-11.06639 -1.19465,-3.01212 -1.1572,-5.20295 0.089,-5.20295 0.55,0 1.00058,0.7875 1.00129,1.75 7.2e-4,0.9625 1.13475,6.42847 2.52008,12.1466 1.38532,5.71812 2.35104,10.56433 2.14603,10.76934 -0.20501,0.205 -1.37907,-3.57346 -2.60902,-8.3966 z m -0.7133,6.18753 c -0.32569,-0.84872 -0.36872,-1.76657 -0.0956,-2.03966 0.27309,-0.2731 0.73656,0.42131 1.02992,1.54313 0.62315,2.38293 -0.0692,2.75089 -0.9343,0.49653 z m 10.89143,-1.45687 c -0.5332,-1.375 -1.27,-3.625 -1.63734,-5 -0.49897,-1.86775 -0.164,-1.61486 1.32456,1 1.09584,1.925 2.0113,2.8625 2.03435,2.08333 0.0231,-0.77916 0.27659,-1.182 0.5634,-0.89518 0.28682,0.28682 0.10816,1.59932 -0.39701,2.91667 l -0.9185,2.39518 -0.96946,-2.5 z m -66.23651,-5.37756 c 0,-0.20765 0.7875,-0.99515 1.75,-1.75 1.58606,-1.24387 1.62143,-1.2085 0.37756,0.37756 -1.30637,1.66575 -2.12756,2.19548 -2.12756,1.37244 z m -62.92105,-5.20577 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 65.99192,1.08333 c 0,-0.55 0.64311,-2.125 1.42913,-3.5 0.78602,-1.375 1.42913,-2.05 1.42913,-1.5 0,0.55 -0.64311,2.125 -1.42913,3.5 -0.78602,1.375 -1.42913,2.05 -1.42913,1.5 z m 61.0437,-5.1479 c -0.72744,-1.59656 -0.84711,-3.01956 -0.29994,-3.56673 0.54716,-0.54716 1.16748,0.37519 1.55481,2.31185 0.82353,4.11765 0.29178,4.64941 -1.25487,1.25488 z m -117.08394,1.1479 c 0,-0.55 0.43621,-1.675 0.96937,-2.5 0.53316,-0.825 0.96937,-1.05 0.96937,-0.5 0,0.55 -0.43621,1.675 -0.96937,2.5 -0.53316,0.825 -0.96937,1.05 -0.96937,0.5 z m 98.42679,-2.75 c -1.6812,-7.78894 -7.3205,-14.78139 -6.04864,-7.5 0.7689,4.40197 -0.0991,2.41458 -1.77419,-4.06221 l -1.37389,-5.31221 2.96123,2.81221 c 3.5723,3.39252 6.36531,8.5951 7.30587,13.60872 0.85472,4.55601 -0.0978,4.95955 -1.07038,0.45349 z m -120.43471,0.5 c -0.0125,-1.2375 0.38516,-2.25 0.88367,-2.25 0.49851,0 0.71852,-1.0125 0.48891,-2.25 -0.22961,-1.2375 -0.14739,-1.67975 0.1827,-0.98278 0.36733,0.77561 2.10894,-1.06715 4.48928,-4.75 2.13901,-3.30947 4.15457,-6.01722 4.47902,-6.01722 0.32444,0 -0.4447,1.45296 -1.70921,3.2288 -1.26451,1.77584 -3.75993,5.93834 -5.54538,9.25 -2.28072,4.23029 -3.25303,5.35197 -3.26899,3.7712 z m 58.60083,0.21134 c -0.96498,-2.51469 -0.68031,-3.16355 0.49853,-1.13634 0.58369,1.00375 0.8506,2.03566 0.59313,2.29313 -0.25747,0.25747 -0.74871,-0.26309 -1.09166,-1.15679 z m 76.97654,-6.76572 -1.76688,-3.19562 1.95031,2.39928 c 1.47772,1.81791 2.08458,2.06022 2.50445,1 0.41271,-1.04215 0.57429,-0.9677 0.63309,0.2917 0.1411,3.02209 -1.51252,2.77543 -3.32097,-0.49536 z m -83.10008,-1.37171 c -1.65,-0.8778 -5.11707,-3.89729 -7.70461,-6.70996 -3.84332,-4.17772 -4.73738,-4.7478 -4.88361,-3.11395 -0.0985,1.1 -0.49986,-0.025 -0.89201,-2.5 -0.39215,-2.475 -1.0478,-5.4 -1.457,-6.5 -0.4092,-1.1 0.30928,-0.36479 1.59661,1.63379 2.81838,4.37553 7.28244,10.76736 9.05305,12.96253 0.70816,0.87798 2.75007,2.35204 4.53757,3.27568 1.7875,0.92365 3.25,1.8928 3.25,2.15368 0,0.64467 -0.0826,0.61633 -3.5,-1.20177 z m 74.75218,-1.82391 c 0.0111,-2.2 0.21589,-2.98225 0.45508,-1.73834 0.23919,1.24391 0.23011,3.04391 -0.0202,4 -0.25029,0.95609 -0.446,-0.0617 -0.4349,-2.26166 z m -125.17323,0.91667 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 85.36218,0.1385 c 1.06762,-0.85535 2.27293,-1.55517 2.67847,-1.55517 1.00157,0 8.9158,-10.61872 11.33654,-15.21052 2.57997,-4.89383 2.93474,-4.27427 0.72701,1.26966 -1.90952,4.7951 -10.12959,14.0036 -14.18315,15.88862 -2.36119,1.09802 -2.39222,1.07622 -0.55887,-0.39259 z m 43.55578,-4.80517 c -1.47225,-2.0111 -1.71373,-2.70955 -0.63346,-1.83224 1.63978,1.3317 4.1192,5.08224 3.35979,5.08224 -0.19092,0 -1.41777,-1.4625 -2.72633,-3.25 z m -92.91796,0.66667 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 63.07894,-2.41667 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m -97.15789,0.3578 c 0,-0.53655 0.69982,-1.84905 1.55517,-2.91667 1.46637,-1.83031 1.48719,-1.7984 0.36454,0.55887 -1.45781,3.06103 -1.91971,3.62834 -1.91971,2.3578 z m 128.51128,-4.98092 c -0.9453,-1.44272 -1.22448,-2.31766 -0.62038,-1.94431 1.15439,0.71346 3.48267,4.56743 2.75929,4.56743 -0.23109,0 -1.1936,-1.18041 -2.13891,-2.62312 z m -6.88774,-1.91554 c -0.34295,-0.8937 -0.59502,-2.15061 -0.56015,-2.79313 0.0349,-0.64251 0.49453,-0.0904 1.02148,1.22697 0.52695,1.31735 0.77902,2.57426 0.56015,2.79313 -0.21887,0.21887 -0.67854,-0.33327 -1.02148,-1.22697 z m -95.54459,-3.04467 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z M 95.85,467.42619 c 0.37553,-0.98622 0.93469,-1.54122 1.24258,-1.23333 0.30789,0.30789 6.4e-4,1.11479 -0.68278,1.79313 -0.98762,0.98026 -1.10248,0.8654 -0.5598,-0.5598 z m 3.43571,-1.59922 c 0,-1.22915 -0.44775,-1.94896 -1,-1.60765 -0.63757,0.39404 -0.95796,-2.21216 -0.884,-7.19098 0.0638,-4.29496 0.24825,-7.13402 0.40989,-6.30902 1.49851,7.64842 2.56507,16.24237 2.07643,16.73102 -0.33128,0.33127 -0.60232,-0.39924 -0.60232,-1.62337 z m 109.5322,0.14235 c 0.41039,-0.9625 0.96033,-6.93447 1.22207,-13.27104 l 0.47591,-11.52104 -3.31786,-3.47896 -3.31785,-3.47896 -0.59795,3 -0.59794,3 -0.73685,-3.70865 c -0.49121,-2.47235 -1.74358,-4.42551 -3.75686,-5.85909 -3.41337,-2.43053 -3.26106,-2.48146 -4.68902,1.56774 -0.67463,1.91302 -1.08656,2.33014 -1.1369,1.15122 -0.0749,-1.75461 -0.26012,-1.74188 -3.63611,0.25 -5.12212,3.02213 -5.40976,2.58184 -0.59288,-0.90749 4.57499,-3.3141 5.06314,-4.85741 2.3213,-7.33874 -2.58011,-2.33497 -3.34143,-2.13097 -7.81875,2.09501 -6.62604,6.2541 -8.06511,7.20127 -5.39154,3.54862 1.28879,-1.76076 2.94981,-3.43414 3.69114,-3.71862 0.74134,-0.28448 1.35478,-1.54385 1.3632,-2.79861 0.0122,-1.81905 0.20643,-1.9791 0.95836,-0.78975 0.77661,1.22839 1.17101,1.26063 2.23469,0.18268 1.05686,-1.07103 0.97354,-1.54398 -0.45836,-2.60188 -0.9625,-0.71111 -1.75,-1.73607 -1.75,-2.2777 0,-1.30073 -3.34838,-4.29474 -4.80306,-4.29474 -1.65543,0 -3.67188,4.48513 -5.6198,12.5 -0.93571,3.85 -2.37943,8.125 -3.20828,9.5 -0.94643,1.57005 -1.23977,1.75604 -0.78859,0.5 0.39512,-1.1 1.71417,-5.6 2.93122,-10 2.68684,-9.71378 4.00986,-13.08614 5.49356,-14.00312 0.62319,-0.38516 3.3056,1.13842 5.99109,3.40286 2.67447,2.25514 5.41919,4.10026 6.09938,4.10026 0.68019,0 1.94945,0.68605 2.82059,1.52457 2.19507,2.11285 8.98043,6.47543 10.0716,6.47543 0.49438,0 1.55839,0.94159 2.36446,2.09241 1.37473,1.9627 1.49504,1.9782 1.94071,0.25 0.43256,-1.67739 0.48551,-1.6646 0.59112,0.14278 0.0857,1.46716 0.65603,0.97761 2.1855,-1.87605 1.84031,-3.43361 1.94196,-4.39288 0.91791,-8.66163 -1.50548,-6.27554 -5.54366,-12.39359 -9.63437,-14.59659 -1.80075,-0.96976 -3.076,-1.9613 -2.83389,-2.2034 0.24211,-0.24211 2.20502,0.72771 4.36202,2.15515 2.64407,1.74976 4.83886,4.46967 6.73645,8.3482 l 2.81461,5.75286 -0.29398,21.43784 c -0.26754,19.50977 -0.95901,26.15843 -2.72049,26.15843 -0.34745,0 -0.29596,-0.7875 0.11444,-1.75 z m -89.41658,-3.34818 c -0.61359,-1.76015 -1.15233,-4.14562 -1.19719,-5.30104 -0.0665,-1.71151 -0.33121,-1.5322 -1.42879,0.96768 -1.1845,2.69784 -4.48964,6.51202 -4.48964,5.1811 0,-0.27243 0.89575,-2.52032 1.99056,-4.99533 1.09482,-2.475 2.34999,-7.5947 2.78929,-11.37711 l 0.79872,-6.87712 0.67316,9.58612 c 0.37024,5.27237 1.15265,10.84728 1.73869,12.38869 0.58605,1.54141 0.87998,2.98813 0.65318,3.21492 -0.2268,0.2268 -0.91439,-1.02776 -1.52798,-2.78791 z m 76.45412,1.41933 c -0.57791,-1.50602 -0.81397,-1.54904 -1.60822,-0.29312 -0.71018,1.12297 -0.93453,0.83689 -0.94621,-1.2066 -0.008,-1.47322 -0.69031,-3.35357 -1.51531,-4.17857 -1.63695,-1.63695 -1.95159,-12.11025 -0.5,-16.64286 0.5805,-1.81262 0.82805,-0.63578 0.90032,4.28013 0.0713,4.85042 0.8278,8.51008 2.65798,12.85837 1.40706,3.34304 2.36265,6.27388 2.12353,6.513 -0.23911,0.23912 -0.73955,-0.35954 -1.11209,-1.33035 z m -6.49079,-3.90448 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -29.07895,-8.35765 c 0,-0.51754 0.44485,-1.21592 0.98855,-1.55194 0.56686,-0.35034 0.7345,0.0511 0.39301,0.94098 -0.66479,1.73242 -1.38156,2.04939 -1.38156,0.61096 z M 146.85,450.01245 c -0.54268,-1.4252 -0.42782,-1.54006 0.5598,-0.5598 0.68342,0.67834 0.99067,1.48524 0.68278,1.79313 -0.30789,0.30789 -0.86705,-0.24711 -1.24258,-1.23333 z m 56.93571,-5.29313 c -0.37968,-1.72866 -0.48187,-3.35146 -0.22711,-3.60623 0.25477,-0.25477 0.75072,0.97429 1.10211,2.73123 0.83365,4.16825 0.0258,4.97614 -0.875,0.875 z m -98.87624,-3 c 0.28729,-2.475 0.75691,-5.32568 1.04361,-6.33485 0.49889,-1.75608 0.40803,-1.76066 -2.11618,-0.10673 -1.4506,0.95046 -3.24322,2.88427 -3.98361,4.29735 -1.23367,2.35454 -1.40577,1.69454 -2.05963,-7.89845 -0.58726,-8.61593 -0.42735,-11.08592 0.90396,-13.9625 0.88959,-1.92215 1.3415,-2.59482 1.00423,-1.49482 -1.43571,4.68262 -1.58767,9.67167 -0.38317,12.57961 l 1.29125,3.11735 1.40056,-2.34848 1.40056,-2.34848 -0.51293,2.5 c -0.49694,2.42202 -0.46636,2.43762 0.98037,0.5 0.82132,-1.1 1.74016,-1.8228 2.04187,-1.60621 0.80515,0.57798 12.36535,-6.96944 12.36535,-8.0731 0,-0.5163 0.40358,-0.6893 0.89685,-0.38444 0.49326,0.30485 3.07251,-1.24359 5.73167,-3.44098 2.65915,-2.1974 5.42853,-3.99527 6.15418,-3.99527 1.57744,0 3.99659,5.438 5.78318,13 0.71468,3.025 1.62095,6.4 2.01395,7.5 0.48845,1.36719 0.38724,1.6836 -0.31986,1 -0.56891,-0.55 -1.80818,-4.15 -2.75392,-8 -0.94574,-3.85 -2.36196,-8.24506 -3.14715,-9.76679 -1.19623,-2.31834 -1.74251,-2.59827 -3.37035,-1.72708 -2.38344,1.27558 -3.88712,4.0197 -3.22369,5.88307 0.30225,0.84893 0.0553,1.11766 -0.63513,0.69098 -0.62135,-0.38402 -1.60158,-0.40659 -2.17829,-0.0502 -1.53408,0.94812 0.84023,3.48716 2.62167,2.80356 0.7857,-0.3015 1.42689,0.0377 1.42689,0.75472 0,0.71625 1.20919,2.5644 2.68709,4.10699 1.4779,1.5426 2.26229,2.80472 1.74308,2.80472 -0.51921,0 -2.36524,-1.4625 -4.10229,-3.25 -5.76944,-5.93699 -6.21676,-6.16054 -8.39072,-4.19313 -2.87033,2.59761 -2.37606,4.88262 1.81284,8.38075 l 3.75,3.1316 -3.5,-2.03087 c -4.70521,-2.7302 -5.25027,-2.58718 -4.61794,1.21165 0.34398,2.06658 -0.0124,1.52038 -0.97867,-1.5 -0.8358,-2.6125 -1.83098,-4.73999 -2.21151,-4.72776 -0.38054,0.0122 -1.79593,0.87071 -3.14532,1.90775 -1.70447,1.30993 -2.98639,3.97424 -4.19929,8.72776 -1.35867,5.3248 -1.63002,5.84426 -1.22351,2.34225 z M 166.85,441.42619 c 0.37553,-0.98622 0.93469,-1.54122 1.24258,-1.23333 0.30789,0.30789 6.4e-4,1.11479 -0.68278,1.79313 -0.98762,0.98026 -1.10248,0.8654 -0.5598,-0.5598 z m -26.40185,-2.2497 c -1.67549,-3.67729 -1.35583,-4.46179 0.45586,-1.11876 0.84602,1.56112 1.3511,3.02552 1.1224,3.25422 -0.2287,0.2287 -0.93892,-0.73225 -1.57826,-2.13546 z M 196.85,416.01245 c -0.54268,-1.4252 -0.42782,-1.54006 0.5598,-0.5598 0.68342,0.67834 0.99067,1.48524 0.68278,1.79313 -0.30789,0.30789 -0.86705,-0.24711 -1.24258,-1.23333 z m -93.94573,-6.83374 c 0.91557,-1.39733 2.60493,-3.04381 3.75413,-3.65885 1.35013,-0.72257 0.86832,0.1764 -1.36166,2.54061 -4.0652,4.30989 -4.66847,4.59186 -2.39247,1.11824 z m 29.38144,-14.28396 c 0,-0.49689 1.8,-2.15083 4,-3.67543 3.35064,-2.322 4.01921,-3.3587 4.11831,-6.386 l 0.11832,-3.614 0.76337,3 c 0.73742,2.898 0.76758,2.864 0.88726,-1 0.0681,-2.2 0.58796,-5.67093 1.15515,-7.71317 0.98236,-3.53712 1.11681,-3.63194 2.8358,-2 0.99249,0.94225 1.61218,2.07038 1.37707,2.50698 -0.2351,0.43659 0.0771,1.40172 0.69371,2.14473 0.87079,1.04924 0.73646,1.31861 -0.60149,1.2062 -1.13968,-0.0957 -2.04736,0.95789 -2.68208,3.11339 -1.02304,3.47425 -12.66542,14.88854 -12.66542,12.4173 z m 12.83003,-18.17543 -0.0294,-2.5 -0.80064,2.5 c -0.44035,1.375 -0.81387,3.4 -0.83004,4.5 -0.0294,2 -0.0294,2 0.83004,0 0.47269,-1.1 0.8462,-3.125 0.83003,-4.5 z m 25.97548,15.15403 c -3.58033,-2.7868 -5.301,-5.13986 -7.25,-9.91455 -2.85913,-7.00434 -2.91327,-7.23948 -1.6668,-7.23948 0.48879,0 1.24671,1.6875 1.68426,3.75 0.60448,2.84936 0.88646,3.22201 1.17408,1.55158 0.20819,-1.20912 -0.10094,-3.09431 -0.68696,-4.18931 -0.63366,-1.18399 -0.69209,-2.22167 -0.14417,-2.56031 1.16306,-0.71881 2.41672,4.75593 2.23356,9.75396 -0.0843,2.30049 0.2541,3.56269 0.85553,3.19099 0.54724,-0.33822 0.99499,0.0332 0.99499,0.82538 0,0.79219 1.6875,2.696 3.75,4.23071 2.0625,1.53471 3.9375,2.93812 4.16667,3.11869 0.22916,0.18057 0.22916,0.51013 0,0.73234 -0.22917,0.22222 -2.52919,-1.24028 -5.11116,-3.25 z m -2.53315,-14.15403 c 0,-2.475 0.19502,-3.4875 0.43337,-2.25 0.23836,1.2375 0.23836,3.2625 0,4.5 -0.23835,1.2375 -0.43337,0.225 -0.43337,-2.25 z m -8.77236,1 c -0.33992,-0.55 -0.14148,-1 0.44098,-1 0.58246,0 1.05902,0.45 1.05902,1 0,0.55 -0.19844,1 -0.44098,1 -0.24254,0 -0.7191,-0.45 -1.05902,-1 z"
- id="path3028"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#191919"
- d="m 167.36466,694.13599 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -7.92106,-7.41667 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m 0.92106,-9.58333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -12.92106,-4.41667 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m -0.38644,-13.76597 c -0.25399,-0.97128 -0.11311,-2.65878 0.31309,-3.75 0.59024,-1.51126 0.79164,-1.09044 0.84517,1.76597 0.0753,4.0182 -0.40925,4.84824 -1.15826,1.98403 z m 31.25918,-4.73403 c 0,-0.55 0.43621,-1.675 0.96937,-2.5 0.53316,-0.825 0.96937,-1.05 0.96937,-0.5 0,0.55 -0.43621,1.675 -0.96937,2.5 -0.53316,0.825 -0.96937,1.05 -0.96937,0.5 z m -30.01532,-46.69098 c -0.008,-0.93004 0.43469,-1.9691 0.98469,-2.30902 1.2656,-0.78218 1.2656,0.54163 0,2.5 -0.8354,1.29269 -0.97149,1.26629 -0.98469,-0.19098 z m 10.56594,-1.45789 c -0.34558,-0.90056 -0.39273,-1.87298 -0.10479,-2.16092 0.28795,-0.28795 0.53043,0.11396 0.53885,0.89312 0.0126,1.16647 0.18652,1.15175 0.98469,-0.0833 0.8354,-1.29269 0.97149,-1.26629 0.98469,0.19098 0.0212,2.3462 -1.64051,3.14833 -2.40344,1.16015 z m -2.22629,-13.85113 c -0.003,-4.95 0.16605,-7.10108 0.37577,-4.78017 0.20972,2.3209 0.21222,6.3709 0.006,9 -0.20713,2.62909 -0.37873,0.73017 -0.38177,-4.21983 z m -14.10496,4.55644 c -1.2375,-1.03236 -2.25,-2.22083 -2.25,-2.64105 0,-0.42021 1.08427,0.2546 2.40948,1.49957 2.24745,2.11137 2.4414,2.1399 2.884,0.42432 0.38544,-1.49399 0.49629,-1.41689 0.59052,0.41072 0.14,2.71551 -0.66488,2.78338 -3.634,0.30644 z m -14.018,-2.05644 c 0,-1.925 0.2058,-2.7125 0.45733,-1.75 0.25152,0.9625 0.25152,2.5375 0,3.5 -0.25153,0.9625 -0.45733,0.175 -0.45733,-1.75 z m 34.84695,-2.58333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 16.92105,-9.41667 c 0,-5.68333 0.20526,-10.12808 0.45613,-9.87721 0.71277,0.71277 0.86923,18.88519 0.16863,19.58579 -0.34362,0.34361 -0.62476,-4.02525 -0.62476,-9.70858 z m -35.92105,7.41667 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 25.92105,0.64235 c 0,-0.51754 0.45,-1.2191 1,-1.55902 0.55,-0.33992 1,0.0835 1,0.94098 0,0.85746 -0.45,1.55902 -1,1.55902 -0.55,0 -1,-0.42344 -1,-0.94098 z M 126.85,589.01245 c -0.54268,-1.4252 -0.42782,-1.54006 0.5598,-0.5598 0.68342,0.67834 0.99067,1.48524 0.68278,1.79313 -0.30789,0.30789 -0.86705,-0.24711 -1.24258,-1.23333 z m 37.90068,-1.35148 c 0.56882,-3.05128 3.36462,-9.94165 4.03386,-9.94165 0.25959,0 -0.35826,2.1375 -1.373,4.75 -2.8241,7.27078 -3.17671,7.95876 -2.66086,5.19165 z m -22.7983,-4.10832 c -0.90484,-2.30349 -1.48133,-4.352 -1.2811,-4.55224 0.20024,-0.20023 1.11423,1.51077 2.0311,3.80224 0.91686,2.29147 1.49335,4.33998 1.28109,4.55224 -0.21226,0.21227 -1.12626,-1.49874 -2.03109,-3.80224 z m 9.72187,-11.33333 c 0.002,-7.15 0.16103,-9.94379 0.35396,-6.20841 0.19293,3.73537 0.19149,9.58537 -0.003,13 -0.19466,3.41462 -0.35251,0.35841 -0.35076,-6.79159 z m 32.09678,11.16821 c 0.28308,-1.00748 0.51468,-3.00998 0.51468,-4.45 0,-1.84427 0.31333,-2.30488 1.06,-1.55821 0.74666,0.74666 0.59452,2.06208 -0.51468,4.45 -0.86607,1.8645 -1.34307,2.5657 -1.06,1.55821 z m -60.35672,-2.72915 c -0.63044,-1.80849 -0.74285,-3.80594 -0.26248,-4.66431 0.59215,-1.05811 1.01216,-0.21891 1.42283,2.84284 0.71627,5.34025 0.29619,5.99969 -1.16035,1.82147 z m 47.8714,-1.49808 c 0,-3.19145 -0.34632,-4.34498 -1.15451,-3.84549 -0.79642,0.49221 -0.87518,0.27789 -0.25393,-0.69098 0.49531,-0.77248 1.17122,-4.10451 1.50202,-7.40451 0.48852,-4.87344 0.63008,-3.88769 0.75393,5.25 0.0839,6.1875 -0.0725,11.25 -0.34751,11.25 -0.275,0 -0.5,-2.05156 -0.5,-4.55902 z m -43.62183,-8.44098 c 0,-6.325 0.16237,-8.9125 0.36082,-5.75 0.19845,3.1625 0.19845,8.3375 0,11.5 -0.19845,3.1625 -0.36082,0.575 -0.36082,-5.75 z m 9.47931,2.67593 c -0.37578,-4.72476 0.43535,-5.0927 1.4718,-0.66762 0.32313,1.37957 0.20617,3.12531 -0.2599,3.87943 -0.55974,0.90567 -0.97114,-0.18464 -1.2119,-3.21181 z m 48.76606,1.78541 c -0.34295,-0.8937 -0.57748,-2.60061 -0.52118,-3.79313 0.0647,-1.37069 0.40438,-0.88332 0.92345,1.32501 0.87352,3.71632 0.63598,5.17376 -0.40227,2.46812 z m -63.46565,-5.46134 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m 40.0212,-9.5 c -0.17239,-7.81369 -0.66798,-11.56228 -1.71089,-12.94113 -0.80751,-1.06762 -1.46785,-2.64262 -1.46741,-3.5 4.3e-4,-0.85738 0.91686,0.29178 2.0365,2.55369 1.73587,3.50682 1.98775,5.6425 1.71011,14.5 l -0.32561,10.38744 -0.2427,-11 z m -25.85902,1.5 c 0,-3.575 0.1815,-5.0375 0.40333,-3.25 0.22182,1.7875 0.22182,4.7125 0,6.5 -0.22183,1.7875 -0.40333,0.325 -0.40333,-3.25 z m 49.83782,4 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m -64.92589,-3 c 0,-1.925 0.2058,-2.7125 0.45733,-1.75 0.25152,0.9625 0.25152,2.5375 0,3.5 -0.25153,0.9625 -0.45733,0.175 -0.45733,-1.75 z m 59.95057,-4 c -0.21228,-8.37738 -2.81405,-14.40631 -5.95933,-13.8092 -1.34501,0.25535 -1.84997,1.75185 -2.30064,6.81817 l -0.5774,6.49103 -0.1726,-6.81574 c -0.18583,-7.33817 -1.19216,-10.20046 -4.53964,-12.91202 -3.02083,-2.44697 -3.61974,-2.20976 -3.73114,1.47776 -0.0925,3.06327 -0.16703,2.99172 -1.29668,-1.2453 -1.17371,-4.40229 -3.94718,-6.56986 -4.8773,-3.81179 -0.24244,0.7189 -0.32251,0.51959 -0.17794,-0.44291 0.14458,-0.9625 -0.12354,-1.75 -0.5958,-1.75 -0.47227,0 -1.01843,2.8125 -1.2137,6.25 l -0.35504,6.25 -0.26297,-6.5 c -0.18935,-4.6806 -0.50352,-5.94019 -1.12239,-4.5 -0.71694,1.6684 -0.87108,1.71505 -0.92972,0.28138 -0.0417,-1.01836 -0.62105,-1.50726 -1.42203,-1.19989 -0.74346,0.28529 -1.25541,1.50867 -1.13765,2.71861 0.12038,1.23687 0.0249,1.43285 -0.21809,0.44771 -0.2377,-0.96371 -1.297,-2.21503 -2.35399,-2.78071 -1.85153,-0.99091 -1.91991,-0.54814 -1.8702,12.1089 0.0284,7.22558 -0.20039,13.3894 -0.50837,13.69738 -0.30797,0.30797 -0.59158,-3.90255 -0.63024,-9.35671 -0.0387,-5.45417 -0.39847,-10.751 -0.79959,-11.77074 -0.68141,-1.73232 -0.93194,-1.68357 -3.81508,0.74243 -2.43322,2.04743 -3.29434,3.81406 -4.07205,8.35407 -0.79988,4.66946 -1.01054,5.08667 -1.11463,2.20757 -0.0706,-1.9525 -0.63526,-4.0569 -1.25481,-4.67645 -1.72716,-1.72716 -5.9429,3.92349 -6.70362,8.9853 l -0.63737,4.24115 -0.52594,-4.5 -0.52594,-4.5 -1.7003,3 c -0.93517,1.65 -1.71832,2.45316 -1.74034,1.7848 -0.0717,-2.17692 6.01627,-8.18676 15.5588,-15.35909 5.1436,-3.86601 10.9823,-9.0187 12.97491,-11.45041 l 3.62292,-4.42129 5.15166,5.64495 c 2.83342,3.10472 8.35275,8.01486 12.26517,10.91141 8.9224,6.60568 14.3865,11.72556 14.3865,13.48021 0,0.74494 -0.7875,0.2418 -1.75,-1.11807 -1.73517,-2.45156 -1.75478,-2.40047 -2.3137,6.02749 l -0.56369,8.5 -0.19004,-7.5 z m -27.82495,-27.30905 c 0.59931,0.59931 7.64238,1.02146 7.64238,0.45807 0,-0.5552 -6.39337,-6.114 -7.05383,-6.13305 -0.30461,-0.009 -2.0722,1.55059 -3.92799,3.46527 l -3.37415,3.48124 3.10271,-0.88985 c 1.70649,-0.48941 3.33139,-0.66117 3.61088,-0.38168 z m 0.14238,-2.69095 c -0.33992,-0.55 -0.14148,-1 0.44098,-1 0.58246,0 1.05902,0.45 1.05902,1 0,0.55 -0.19844,1 -0.44098,1 -0.24254,0 -0.7191,-0.45 -1.05902,-1 z m 2.78601,29.5 c 0.008,-2.75 0.20172,-3.75631 0.43157,-2.23625 0.22986,1.52006 0.22371,3.77006 -0.0136,5 -0.23736,1.22994 -0.42542,-0.0137 -0.41792,-2.76375 z m 30.33899,0.375 c -0.83365,-4.16825 -0.0258,-4.97614 0.875,-0.875 0.37968,1.72866 0.48187,3.35146 0.22711,3.60623 -0.25477,0.25477 -0.75072,-0.97429 -1.10211,-2.73123 z m -65.54605,-1.45833 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 31.19341,-10.41667 c 0,-2.475 0.19502,-3.4875 0.43337,-2.25 0.23836,1.2375 0.23836,3.2625 0,4.5 -0.23835,1.2375 -0.43337,0.225 -0.43337,-2.25 z m -4.15108,-2.02283 c 1.51392,-4.47773 2.36633,-5.34694 1.44863,-1.47717 -0.39129,1.65 -1.14182,3.43973 -1.66785,3.97717 -0.52602,0.53745 -0.42737,-0.58755 0.21922,-2.5 z m 10.03661,-4.97717 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m -41.33949,-19.57015 c 0.22023,-1.88642 0.72324,-3.42985 1.11781,-3.42985 0.87301,0 0.10726,5.8551 -0.84252,6.44209 -0.37164,0.22969 -0.49552,-1.12582 -0.27529,-3.01224 z m 71.82623,-4.67985 c -1.0668,-1.94063 -1.18878,-2.51598 -0.30278,-1.42809 1.43546,1.76255 1.49916,1.76255 1.95498,0 0.26497,-1.0246 0.52193,-0.39964 0.58717,1.42809 0.0638,1.7875 -0.012,3.25 -0.16839,3.25 -0.15642,0 -1.08836,-1.4625 -2.07098,-3.25 z m 24.76036,1 -1.90499,-2.25 2.25,1.90499 c 2.11444,1.79022 2.70524,2.59501 1.90499,2.59501 -0.18976,0 -1.20226,-1.0125 -2.25,-2.25 z m -92.70959,-4.23744 c 0.91468,-1.9181 1.84058,-3.30991 2.05756,-3.09293 0.45746,0.45746 -2.5782,6.58037 -3.26246,6.58037 -0.25198,0 0.29023,-1.56935 1.2049,-3.48744 z m -2.50045,-2.01256 c 0.0204,-1.65 0.2445,-2.20394 0.49804,-1.23097 0.25354,0.97297 0.23687,2.32297 -0.0371,3 -0.27393,0.67703 -0.48137,-0.11903 -0.46099,-1.76903 z m 67.42859,-0.0387 c -0.96498,-2.51469 -0.68031,-3.16355 0.49853,-1.13634 0.58369,1.00375 0.8506,2.03566 0.59313,2.29313 -0.25747,0.25747 -0.74872,-0.26309 -1.09166,-1.15679 z m 3.57141,-2.9613 c 0.0204,-1.65 0.2445,-2.20394 0.49804,-1.23097 0.25354,0.97297 0.23687,2.32297 -0.0371,3 -0.27393,0.67703 -0.48137,-0.11903 -0.46099,-1.76903 z m -65.19495,-1.79963 c 0,-0.28113 1.575,-2.3963 3.5,-4.70037 1.925,-2.30407 3.5,-3.64155 3.5,-2.97217 0,0.7797 0.46808,0.90354 1.30254,0.34461 0.7164,-0.47984 0.42889,-0.19744 -0.63892,0.62756 -1.06781,0.825 -3.22895,2.78509 -4.80254,4.35576 -1.5736,1.57066 -2.86108,2.62574 -2.86108,2.34461 z m 56.5,-3.53005 c -1.65,-1.52409 -3.1237,-3.64839 -3.2749,-4.72069 -0.26637,-1.88914 -0.23894,-1.88757 0.88385,0.0504 0.63731,1.1 2.3077,3.2375 3.71199,4.75 3.2824,3.53535 2.54458,3.49084 -1.32094,-0.0797 z m 33.57895,0.24635 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -120,-3 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 25.98444,-2.22569 c -0.0376,-1.96465 0.34288,-3.05792 0.93661,-2.69098 0.55,0.33992 1,0.19323 1,-0.32597 0,-0.51921 1.2375,-1.7327 2.75,-2.69665 l 2.75,-1.75264 -2.69266,2.88763 c -1.48096,1.5882 -3.13994,4.01263 -3.68661,5.38763 -0.96655,2.43105 -0.99571,2.40874 -1.05734,-0.80902 z m 93.01556,1.22569 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -111,-1 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 71.32604,-0.66667 -1.90499,-2.25 2.25,1.90499 c 2.11444,1.79022 2.70524,2.59501 1.90499,2.59501 -0.18976,0 -1.20226,-1.0125 -2.25,-2.25 z m 13.67396,1.07692 c -0.0434,-0.92019 -1.53748,-3.13161 -3.32014,-4.91426 -2.375,-2.375 -2.64224,-2.92064 -0.99999,-2.04174 2.81905,1.50871 5.59333,5.65648 4.91414,7.34704 -0.3355,0.83509 -0.54259,0.69876 -0.59401,-0.39104 z M 223.85,496.01245 c -0.54268,-1.4252 -0.42782,-1.54006 0.5598,-0.5598 0.68342,0.67834 0.99067,1.48524 0.68278,1.79313 -0.30789,0.30789 -0.86705,-0.24711 -1.24258,-1.23333 z M 84.28571,494.1603 c 0,-0.85746 0.45734,-1.27636 1.01631,-0.9309 0.55897,0.34546 0.75742,1.04702 0.44098,1.55902 -0.85724,1.38704 -1.45729,1.12841 -1.45729,-0.62812 z m 11.15789,-0.44098 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m 40.84211,1.62244 c 0,-0.20765 0.7875,-0.99515 1.75,-1.75 1.58606,-1.24387 1.62143,-1.2085 0.37756,0.37756 -1.30637,1.66575 -2.12756,2.19548 -2.12756,1.37244 z m 68.07895,-3.20577 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 8.07894,-0.41667 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m 10.34211,1 c 0.33992,-0.55 0.81648,-1 1.05902,-1 0.24254,0 0.44098,0.45 0.44098,1 0,0.55 -0.47656,1 -1.05902,1 -0.58246,0 -0.7809,-0.45 -0.44098,-1 z m -35.42105,-1.58333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 15.54459,-2.95533 c -0.96498,-2.51469 -0.68031,-3.16355 0.49853,-1.13634 0.58369,1.00375 0.8506,2.03566 0.59313,2.29313 -0.25747,0.25747 -0.74872,-0.26309 -1.09166,-1.15679 z M 96.36466,487.13599 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 8.92105,-0.13922 c 0,-0.58073 0.92671,-2.11823 2.05935,-3.41667 l 2.05935,-2.36078 -1.75669,3 c -2.31206,3.94843 -2.36201,4.00717 -2.36201,2.77745 z m 16.07895,-0.86078 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 90.07894,-1.41667 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m -11.28545,-1.75 c -1.24387,-1.58606 -1.2085,-1.62143 0.37756,-0.37756 0.9625,0.75485 1.75,1.54235 1.75,1.75 0,0.82304 -0.82119,0.29331 -2.12756,-1.37244 z m -88.79349,-1.83333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z M 195.85,479.01245 c -0.54268,-1.4252 -0.42782,-1.54006 0.5598,-0.5598 0.68342,0.67834 0.99067,1.48524 0.68278,1.79313 -0.30789,0.30789 -0.86705,-0.24711 -1.24258,-1.23333 z m -14.12703,-2.62198 c 1.54006,-2.01913 3.00235,-3.67115 3.24952,-3.67115 0.69466,0 -3.63455,5.84969 -4.91477,6.64091 -0.62418,0.38576 0.12518,-0.95063 1.66525,-2.96976 z m -55.47654,-0.21848 c -1.02571,-1.2359 -1.44982,-1.28622 -2.10714,-0.25 -0.54015,0.8515 -0.82822,0.29503 -0.83827,-1.61934 -0.008,-1.60416 0.0972,-2.72916 0.23469,-2.5 0.1375,0.22917 1.34094,1.65417 2.67431,3.16667 1.33338,1.5125 2.17598,2.75 1.87245,2.75 -0.30353,0 -1.12975,-0.6963 -1.83604,-1.54733 z m 83.11823,-13.036 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -97.01127,0.38038 c -0.0372,-0.38662 0.45455,-1.84912 1.09284,-3.25 1.15505,-2.53507 2.83948,-3.45281 2.83948,-1.54705 0,0.55 -0.38123,1 -0.84719,1 -0.46595,0 -1.33549,1.0125 -1.93231,2.25 -0.59683,1.2375 -1.1156,1.93367 -1.15282,1.54705 z m 80.93232,-2.46372 c 0,-0.73333 0.40186,-1.33333 0.89301,-1.33333 0.49116,0 1.12325,0.6 1.40466,1.33333 0.28141,0.73334 -0.12045,1.33334 -0.89301,1.33334 -0.77256,0 -1.40466,-0.6 -1.40466,-1.33334 z m -95.72764,-3.33333 c 0,-2.475 0.19502,-3.4875 0.43337,-2.25 0.23836,1.2375 0.23836,3.2625 0,4.5 -0.23835,1.2375 -0.43337,0.225 -0.43337,-2.25 z m 112.97982,-0.5 c 0.0111,-2.2 0.21589,-2.98225 0.45508,-1.73834 0.23919,1.24391 0.23011,3.04391 -0.0202,4 -0.25029,0.95609 -0.446,-0.0617 -0.4349,-2.26166 z m -20.19455,-1.28138 c 0.0317,-0.94524 0.46546,-3.51862 0.96391,-5.71862 l 0.90629,-4 -0.33903,4.73183 c -0.18647,2.60251 0.0548,4.48845 0.53608,4.19099 0.48132,-0.29747 0.87512,-0.11244 0.87512,0.41117 0,0.52362 -0.675,1.21105 -1.5,1.52764 -0.98403,0.37761 -1.48018,-0.0156 -1.44237,-1.14301 z m -74.23843,-2.44008 c 0.44738,-3.0482 0.51884,-3.09702 1.32874,-0.90765 0.85776,2.31873 0.40451,4.12911 -1.03376,4.12911 -0.42229,0 -0.55503,-1.44966 -0.29498,-3.22146 z m 1.43298,-7.27854 c 0.0111,-2.2 0.21589,-2.98225 0.45508,-1.73834 0.23919,1.24391 0.23011,3.04391 -0.0202,4 -0.25029,0.95609 -0.446,-0.0617 -0.4349,-2.26166 z m 92.74782,-4.30383 c 0,-2.1991 -6.44293,-8.65849 -7.7999,-7.81984 -0.535,0.33065 -1.17799,-0.18126 -1.42888,-1.13758 -0.25088,-0.95631 -1.68131,-2.39295 -3.17872,-3.19254 -2.3816,-1.27171 -2.83775,-1.27171 -3.64222,0 -0.74334,1.17508 -0.94251,1.07036 -1.03888,-0.54621 -0.0663,-1.11189 -3.43002,-5.04598 -7.57503,-8.85946 -7.06627,-6.50109 -7.53393,-6.76232 -8.95125,-5 -1.40078,1.74174 -1.42643,1.71702 -0.4051,-0.39054 0.59969,-1.2375 1.31733,-2.25 1.59475,-2.25 0.27742,0 3.56957,2.87879 7.31589,6.39731 3.74632,3.51852 8.21941,7.12537 9.94019,8.01522 1.72078,0.88985 5.62204,3.64877 8.66947,6.13093 5.8524,4.76685 6.12539,4.7049 6.80111,-1.54346 0.20817,-1.925 0.45051,-0.0125 0.53853,4.25 0.088,4.2625 -0.065,7.75 -0.33996,7.75 -0.275,0 -0.5,-0.81172 -0.5,-1.80383 z m -104.92105,-2.7795 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -6.94277,-2.66667 c 0.10606,-2.53098 0.23516,-2.72854 0.58358,-0.89298 l 0.44739,2.35702 3.16642,-2.85492 c 3.00176,-2.70646 2.98721,-2.66002 -0.27974,0.89298 -1.89539,2.06134 -3.58289,3.7479 -3.75,3.7479 -0.1671,0 -0.24255,-1.4625 -0.16765,-3.25 z m 103.94277,1.66667 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -96,-4.17323 c -0.0603,-1.72364 1.51515,-3.2908 6.67105,-6.63593 3.7125,-2.40865 8.98308,-6.6807 11.71241,-9.49344 5.24752,-5.4079 6.92912,-6.14211 7.95349,-3.47263 0.53148,1.38501 0.38729,1.44011 -0.92297,0.3527 -1.32604,-1.10052 -2.62991,-0.28135 -8.92708,5.60855 -5.22264,4.88487 -7.2788,7.48085 -7.04714,8.89731 0.29345,1.79426 0.21113,1.82658 -0.80019,0.3142 -1.04905,-1.56879 -1.32035,-1.57176 -3.90863,-0.0428 -1.52974,0.90364 -3.20224,2.78725 -3.71667,4.1858 -0.89625,2.43658 -0.93862,2.44855 -1.01427,0.28627 z m 31,-2.82677 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72188 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -40,-3 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72188 0.25335,1.58437 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 114.07894,-2.41667 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m -71.48604,-36.92008 c 0.64452,-0.728 0.93388,-1.94379 0.64302,-2.70177 -0.29087,-0.75799 -0.30385,-1.37815 -0.0288,-1.37815 1.43557,0 1.36558,3.02686 -0.0955,4.12866 -1.39413,1.05134 -1.48508,1.04279 -0.5187,-0.0487 z m 27.78703,-0.14645 c -0.36253,-0.58659 -0.44468,-1.281 -0.18255,-1.54313 0.26212,-0.26213 0.74306,0.21781 1.06875,1.06653 0.67618,1.76211 0.0999,2.07206 -0.8862,0.4766 z m -2.72767,-3.85331 c -0.43497,-1.66335 -0.30483,-2.05378 0.43724,-1.31171 0.5811,0.5811 0.85979,1.64682 0.61931,2.36826 -0.24965,0.74895 -0.70294,0.29565 -1.05655,-1.05655 z m -22.06454,0.25317 c -0.36667,-0.36666 -0.66667,-1.13166 -0.66667,-1.7 0,-0.6266 0.46577,-0.56756 1.18333,0.15 0.65084,0.65084 0.95084,1.41584 0.66667,1.7 -0.28417,0.28417 -0.81667,0.21667 -1.18333,-0.15 z m -0.58772,-4.91666 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72188 0.25335,1.58438 -0.079,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 26.15305,-1.41667 c 0,-1.925 0.2058,-2.7125 0.45733,-1.75 0.25152,0.9625 0.25152,2.5375 0,3.5 -0.25153,0.9625 -0.45733,0.175 -0.45733,-1.75 z m -3.15305,-0.58333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72188 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z"
- id="path3026"
- inkscape:connector-curvature="0" />
- </g>
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/muscular_system_front.svg b/wger/core/static/react/muscles/muscular_system_front.svg
deleted file mode 100644
index 5024d2825..000000000
--- a/wger/core/static/react/muscles/muscular_system_front.svg
+++ /dev/null
@@ -1,99 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_front.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0"
- inkscape:pageshadow="2"
- inkscape:zoom="0.98994949"
- inkscape:cx="93.552734"
- inkscape:cy="165.08135"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="910"
- inkscape:window-height="624"
- inkscape:window-x="493"
- inkscape:window-y="165"
- inkscape:window-maximized="0"
- height="524.41px" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title />
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-316.50506)">
- <g
- id="g2999">
- <path
- style="fill:#cfcfcf"
- d="m 471.96431,672.53199 c -2.98944,-1.35695 -4.25,-2.53685 -4.25,-3.97804 0,-1.12689 0.47656,-2.04889 1.05902,-2.04889 0.58246,0 0.77401,0.46115 0.42567,1.02478 -0.34834,0.56362 -0.2624,0.94096 0.19098,0.83852 0.45338,-0.10245 2.09113,0.3364 3.63943,0.97522 3.6796,1.51817 6.68102,1.47851 6.70021,-0.0885 0.0102,-0.83335 0.33844,-0.75002 0.98469,0.24998 0.53316,0.825 0.97626,1.1074 0.98469,0.62756 0.008,-0.47985 0.57781,-0.41917 1.26531,0.13483 2.11634,1.7054 5.28284,-0.3336 6.45642,-4.15747 0.60899,-1.98429 0.73762,-3.37935 0.28583,-3.10013 -0.45179,0.27922 -1.04934,-0.0576 -1.32789,-0.74856 -0.35057,-0.86955 -0.53548,-0.79451 -0.60073,0.24377 -0.0838,1.33333 -0.20779,1.33333 -1.11604,0 -0.73736,-1.08245 -0.8413,-0.45611 -0.3734,2.25 0.44593,2.57905 0.28035,3.75 -0.53029,3.75 -0.70634,0 -0.93501,-0.76774 -0.57061,-1.91584 0.81228,-2.55928 -1.05952,-3.59061 -2.45958,-1.35519 -0.942,1.50405 -1.01676,1.39415 -0.49595,-0.72897 0.33999,-1.38601 0.24987,-1.99673 -0.20225,-1.37056 -0.44853,0.62119 -2.39051,1.09953 -4.31551,1.06297 -1.925,-0.0366 -3.41964,0.37125 -3.32143,0.90627 0.0982,0.53501 -0.67714,0.97275 -1.723,0.97275 -1.85124,0 -1.85265,-0.0539 -0.0535,-2.03572 1.01642,-1.11964 2.39073,-3.08675 3.05402,-4.37136 1.55997,-3.02121 2.56761,-2.07818 1.0685,1 l -1.13748,2.33565 1.93232,-2.20748 c 1.06278,-1.21411 2.23697,-1.90282 2.60932,-1.53048 0.37234,0.37235 0.38006,-0.0968 0.0172,-1.04252 -0.36292,-0.94574 -0.99902,-1.71952 -1.41357,-1.71952 -0.41454,0 -1.02191,-2.1375 -1.3497,-4.75 -0.32779,-2.6125 -3.39913,-13.3 -6.8252,-23.75 -7.02358,-21.42293 -7.4916,-25.88635 -3.96705,-37.83288 2.96395,-10.04637 2.06934,-23.49459 -2.52863,-38.01163 -4.61234,-14.56238 -5.50376,-22.34619 -5.43148,-47.42748 0.0477,-16.56427 0.3942,-22.06874 1.56553,-24.87212 0.82733,-1.98008 1.50423,-5.32323 1.50423,-7.42922 0,-2.106 0.675,-6.42059 1.5,-9.58798 2.07638,-7.97177 1.8775,-13.57709 -0.69733,-19.65331 -3.82557,-9.02776 -5.27941,-8.52809 -6.82009,2.344 -0.58227,4.10884 -1.82905,9.72062 -2.77062,12.47062 -2.18996,6.39606 -9.93635,20.74191 -16.73919,31 -4.13889,6.24108 -5.46101,9.20926 -6.01332,13.5 -0.92611,7.19474 -2.0488,10 -4.00209,10 -1.14119,0 -1.41094,-0.57091 -0.95238,-2.0157 0.80184,-2.52638 -1.42839,-9.72626 -2.48382,-8.01853 -0.40962,0.66278 -1.02379,1.18616 -1.36481,1.16308 -0.6071,-0.0411 -6.18884,2.07073 -10.15635,3.8426 -1.73717,0.77581 -1.60576,0.90159 1,0.95713 1.65,0.0352 4.4625,-0.82776 6.25,-1.91762 3.85447,-2.35012 4.43006,-0.83027 0.62882,1.66039 -2.40627,1.57666 -2.46776,1.77775 -0.75,2.45277 1.68622,0.66263 1.64877,0.75461 -0.37882,0.93059 -3.98558,0.34593 -4.24608,0.42959 -4.5,1.44529 -0.3752,1.50081 6.29244,4.49667 10.01182,4.49845 l 3.26181,0.002 -0.65917,4.25 c -1.13409,7.31205 -2.30754,8.71417 -1.88305,2.25 l 0.39401,-6 -1.09957,5.75 c -0.60476,3.16205 -1.47673,5.74955 -1.93771,5.74955 -0.46098,0 -0.83814,0.64844 -0.83814,1.44098 0,0.79254 -0.39364,1.68427 -0.87476,1.98161 -1.00098,0.61864 1.05313,-11.28415 2.29377,-13.29155 0.58622,-0.94852 0.28868,-1.22188 -1.05058,-0.96518 -1.44628,0.2772 -2.07191,1.71101 -2.76906,6.34603 -1.07869,7.17178 -2.69179,8.78758 -6.75121,6.76248 -2.9129,-1.45315 -3.94726,-2.63336 -1.4772,-1.68551 1.82164,0.69902 2.96881,-2.47454 1.52385,-4.21561 -0.83418,-1.00512 -0.8388,-1.37325 -0.0172,-1.37325 1.64664,0 1.37045,-3.69085 -0.32488,-4.34141 -1.10866,-0.42543 -1.53446,0.54398 -1.81975,4.14301 -0.2156,2.71985 -0.44834,0.98311 -0.55268,-4.12418 l -0.18025,-8.82258 -2.63486,2.07258 c -4.86458,3.82648 -7.82369,1.92967 -4.42837,-2.83861 1.13477,-1.59366 2.06323,-3.17013 2.06323,-3.50327 0,-1.09167 8.4248,-9.58633 9.47517,-9.55374 0.56365,0.0175 0.34983,0.58 -0.47517,1.25 -0.825,0.67001 -2.175,2.11347 -3,3.20769 -1.1416,1.51413 -0.75547,1.39466 1.61604,-0.5 1.71381,-1.36922 3.96381,-3.06876 5,-3.77676 1.03618,-0.708 1.34046,-1.03069 0.67618,-0.71708 -0.82961,0.39166 -0.75327,-0.30115 0.24384,-2.21273 0.79839,-1.53061 1.46507,-3.90792 1.48151,-5.28292 0.0164,-1.375 1.19137,-5.2 2.61095,-8.5 1.41958,-3.3 3.85167,-10.1115 5.40466,-15.13667 2.74763,-8.89081 7.43055,-19.29719 10.9636,-24.36333 0.99559,-1.4276 2.04489,-5.50273 2.44615,-9.5 0.38648,-3.85 1.34039,-9.52248 2.11982,-12.60551 0.81406,-3.22005 1.37186,-9.93458 1.31076,-15.77824 -0.10067,-9.62826 0.0454,-10.39179 2.72992,-14.2655 3.58645,-5.17524 5.31048,-6.27877 16.10544,-10.3089 10.12935,-3.78162 15.92655,-6.99211 17.31697,-9.59013 2.10932,-3.9413 0.29607,-13.72856 -3.27437,-17.67385 -3.04155,-3.36087 -4.26978,-13.27787 -1.64448,-13.27787 0.49115,0 0.89469,-2.3625 0.89675,-5.25 0.005,-6.44431 2.41762,-10.77301 7.29586,-13.08788 8.43838,-4.00427 18.26359,-2.93463 24.32374,2.64806 3.15272,2.90433 3.468,3.70114 3.52263,8.90284 0.0379,3.60755 0.57485,6.14032 1.45701,6.87245 0.76836,0.63768 1.37162,2.34182 1.34058,3.78698 -0.0799,3.71765 -2.27288,9.72351 -3.3329,9.12755 -1.41792,-0.79717 -3.16466,7.98789 -2.78363,14 l 0.34858,5.5 6.16219,2.87422 c 3.38921,1.58082 8.5456,3.70127 11.45864,4.71212 7.83117,2.71746 13.06733,5.95437 15.16632,9.37557 2.15936,3.5196 4.0244,12.67945 4.06646,19.97175 0.0161,2.78649 0.83951,9.83846 1.82987,15.67105 1.45365,8.5611 2.60914,12.07781 5.99606,18.24895 4.38507,7.98982 7.71463,16.39264 14.12462,35.64634 l 3.82861,11.5 -2.51957,2.30128 c -2.65742,2.42719 -2.454,4.41063 0.22437,2.18778 2.64538,-2.19547 10.46983,2.26176 17.05395,9.71485 3.11179,3.52248 5.42763,6.63466 5.14632,6.91597 -0.28131,0.28132 -1.73533,-1.09308 -3.23115,-3.0542 -1.49582,-1.96112 -3.18601,-3.56568 -3.75598,-3.56568 -0.56996,0 -0.29155,0.82293 0.61869,1.82874 0.91025,1.00581 1.65499,2.37753 1.65499,3.04827 0,0.67075 1.4625,1.89118 3.25,2.71207 l 3.25,1.49253 -3,-0.44731 c -1.65,-0.24603 -4.08095,-0.78477 -5.4021,-1.19722 l -2.40211,-0.7499 0.59463,7.90641 c 0.44558,5.92468 0.35122,7.0918 -0.37649,4.65641 -1.0737,-3.59334 -2.91393,-4.38275 -2.91393,-1.25 0,1.1 0.3876,2 0.86133,2 0.47373,0 0.65422,1.08343 0.40108,2.40763 -0.33298,1.74188 0.051,2.53935 1.38867,2.88399 1.65226,0.42571 1.66278,0.48872 0.0989,0.59238 -0.9625,0.0638 -1.75,0.5737 -1.75,1.13311 0,0.55942 -1.6785,0.88831 -3.73,0.73088 -2.67066,-0.20494 -4.04189,-0.91182 -4.82817,-2.48894 -0.78928,-1.58314 -1.40327,-1.89761 -2.18287,-1.11801 -2.35841,2.35841 -2.71041,1.37409 -7.42865,-20.77367 -0.60138,-2.82294 -0.78841,-5.62614 -0.41562,-6.22933 0.93754,-1.51698 -0.6274,-4.14869 -8.04564,-13.53011 -8.66422,-10.95713 -18.62517,-31.37465 -20.25077,-41.50916 -1.3847,-8.63265 -1.81893,-9.5921 -3.6525,-8.07037 -2.55255,2.11843 -4.67048,10.67968 -4.14215,16.7437 0.6088,6.98764 2.98738,20.62001 5.01246,28.7279 3.94645,15.80058 2.76147,41.88571 -2.99083,65.83718 -3.76684,15.68442 -4.35556,33.65202 -1.41461,43.17371 3.28319,10.62972 2.95097,15.12951 -2.30415,31.20887 -2.54457,7.78579 -4.63339,14.97144 -4.64181,15.96811 -0.0109,1.28489 -0.24704,1.44716 -0.81174,0.55773 -0.43804,-0.68993 -0.87913,2.59148 -0.98021,7.29201 -0.19881,9.24513 0.44005,11.02346 6.18352,17.21239 1.65884,1.7875 2.49533,3.25 1.85886,3.25 -1.3161,0 -5.23512,-3.92834 -5.23512,-5.24758 0,-0.47875 -0.46115,-0.58545 -1.02478,-0.23711 -0.56362,0.34834 -0.90112,0.0579 -0.75,-0.64553 0.15113,-0.70338 -0.25022,-1.29933 -0.89189,-1.32433 -0.64166,-0.025 -1.54166,-0.4551 -2,-0.95578 -0.48416,-0.52889 -0.30957,-0.60891 0.41667,-0.19098 1.77556,1.02179 1.55081,-0.95502 -0.32143,-2.82726 -0.86428,-0.86429 -1.08928,-1.57143 -0.5,-1.57143 0.58929,0 1.0359,-0.7875 0.99248,-1.75 -0.0472,-1.04544 -0.28201,-1.24674 -0.58333,-0.5 -0.69114,1.71283 -2.92422,1.56704 -5.90411,-0.38546 -3.09302,-2.02662 -4.36249,-1.04842 -2.01118,1.54974 1.66543,1.84028 1.64897,1.97714 -0.36747,3.05631 -1.16104,0.62137 -1.86603,1.52608 -1.56666,2.01048 0.29938,0.48441 0.0417,1.1914 -0.57273,1.57111 -1.37983,0.85278 -0.46568,5.9593 1.64291,9.17741 0.84116,1.28378 2.02914,2.02527 2.63996,1.64777 0.69931,-0.4322 0.8271,-0.2277 0.34508,0.55223 -0.54257,0.8779 -0.0779,1.14131 1.59549,0.90451 1.29854,-0.18376 2.13599,-0.7841 1.86099,-1.3341 -0.275,-0.55 -0.7625,-0.9125 -1.08333,-0.80556 -0.32084,0.10695 -0.58334,-0.45555 -0.58334,-1.25 0,-2.25937 1.59505,-1.69572 2.82205,0.99724 0.92263,2.02495 1.77231,2.41536 4.97856,2.2875 3.78514,-0.15094 5.09936,-1.16072 2.61606,-2.01006 -0.6875,-0.23513 -0.1998,-0.25009 1.08379,-0.0332 1.28358,0.21686 2.09088,10e-4 1.79399,-0.47913 -0.29689,-0.48038 0.1154,-0.87342 0.91621,-0.87342 2.00806,0 1.82305,0.90792 -0.60942,2.99067 -3.0808,2.63786 -15.45989,3.41556 -17.9855,1.12991 -2.6338,-2.38356 -5.37493,-9.9667 -4.39779,-12.1662 1.19573,-2.69156 3.51869,-12.24913 4.10755,-16.90006 0.28636,-2.26179 -0.19472,-10.31203 -1.06908,-17.88943 -1.89233,-16.39934 -2.00095,-24.56422 -0.418,-31.42193 1.25361,-5.43096 1.83443,-5.92725 4.18539,-3.57629 1.99207,1.99207 2.72864,1.89637 1.92424,-0.25 -0.56414,-1.50531 -0.42968,-1.56619 0.96165,-0.43543 1.37493,1.11743 1.78239,1.00644 2.71709,-0.74005 0.60478,-1.13004 1.64866,-1.94659 2.31974,-1.81457 0.67108,0.13203 1.08924,-0.37766 0.92925,-1.13263 -0.17203,-0.81178 0.27064,-1.1572 1.08333,-0.84534 0.75582,0.29004 1.37423,-0.085 1.37423,-0.83333 0,-0.74837 -0.375,-1.12891 -0.83334,-0.84564 -0.45833,0.28326 -0.8363,-0.52403 -0.83992,-1.79399 -0.006,-2.23934 -0.0621,-2.22487 -1.8454,0.47972 -1.51273,2.2942 -2.04203,2.54389 -2.98474,1.40799 -0.63025,-0.75941 -0.81232,-1.77451 -0.40459,-2.25577 0.40772,-0.48126 -0.0751,-0.24825 -1.07297,0.5178 -1.24184,0.95337 -1.64876,2.20505 -1.28968,3.96704 0.28853,1.41581 0.28022,2.01247 -0.0185,1.32592 -0.32536,-0.74783 -1.46866,-1.01598 -2.85178,-0.66883 -2.09281,0.52526 -2.50884,-0.022 -4.44904,-5.8523 -2.88996,-8.6843 -3.98247,-19.594 -3.363,-33.58226 0.56258,-12.70344 -0.92859,-33.73177 -2.75837,-38.89833 -1.2356,-3.48883 -4.28479,-4.4399 -5.34838,-1.66821 -0.33379,0.86994 -0.60694,13.64568 -0.60694,28.39048 0,25.60622 -0.11576,27.25099 -2.58079,36.66821 -2.78737,10.64871 -2.87239,17.5808 -0.34976,28.51824 1.09025,4.72703 1.06849,7.52611 -0.13215,17 -2.24014,17.67622 -1.83741,27.83457 1.46938,37.06322 3.03399,8.46732 2.73826,11.78146 -1.53619,17.21554 -1.70494,2.16747 -2.81375,2.55909 -7.19307,2.54052 -2.93399,-0.0125 -7.01899,-0.85788 -9.42742,-1.95111 z m 11.25,-13.02693 c 0.33992,-0.55 0.14148,-1 -0.44098,-1 -0.58246,0 -1.05902,0.45 -1.05902,1 0,0.55 0.19844,1 0.44098,1 0.24254,0 0.7191,-0.45 1.05902,-1 z m 4.02495,-2.55661 c -1.66271,-1.25689 -1.78132,-1.80323 -0.75,-3.45463 1.92266,-3.07868 1.43253,-4.534 -0.69921,-2.07608 -1.05835,1.22028 -2.18335,2.18913 -2.5,2.15301 -2.74314,-0.31297 -2.49166,0.35647 0.92426,2.4604 4.43254,2.73007 6.08652,3.23164 3.02495,0.9173 z m 23.16438,-43.19339 c -0.25153,-0.9625 -0.45733,-0.175 -0.45733,1.75 0,1.925 0.2058,2.7125 0.45733,1.75 0.25152,-0.9625 0.25152,-2.5375 0,-3.5 z m -40.68933,-4.30902 c 0,-4.45136 -0.36941,-6.83071 -1,-6.44098 -1.12943,0.69803 -1.31019,5.69904 -0.375,10.375 0.97502,4.87512 1.375,3.73075 1.375,-3.93402 z m 47.80223,2.28008 c 1.1199,-4.68941 1.34983,-10.43307 0.39402,-9.84235 -0.56399,0.34856 -1.25334,0.0684 -1.53189,-0.62248 -0.27856,-0.69093 -0.54199,2.08127 -0.58541,6.16044 -0.0721,6.76829 0.68393,8.65655 1.72328,4.30439 z m -40.80223,-6.78008 c 0,-2.9701 -0.37116,-4.32962 -1.06496,-3.90083 -1.4134,0.87353 -0.85385,8.45985 0.62398,8.45985 0.24254,0 0.44098,-2.05156 0.44098,-4.55902 z m -1.31689,-7.62848 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36781,-1.1948 0.0789,-1.91667 z m 7.43568,-7.94534 c -1.16316,-4.17147 -2.08677,-10.50823 -1.68444,-11.55669 0.26497,-0.69048 -0.10456,-0.99052 -0.86195,-0.69988 -0.72916,0.27981 -1.55347,2.52912 -1.8318,4.99847 -0.59924,5.31641 -1.17465,6.10553 -3.21643,4.411 -1.06374,-0.88282 -1.52417,-0.92143 -1.52417,-0.12781 0,1.55132 5.8009,4.96887 7.84592,4.62235 0.90974,-0.15415 1.48253,-0.8955 1.27287,-1.64744 z m 39.54101,-28.30973 c -0.37541,-1.22788 -3.38943,9.77913 -4.09167,14.94257 -0.29921,2.2 0.56385,-0.05 1.91792,-5 1.35407,-4.95 2.33226,-9.42416 2.17375,-9.94257 z m -40.41807,9.03507 c -0.26502,-5.03575 -1.73142,-8.02592 -3.42321,-6.98034 -0.52518,0.32458 -0.70048,1.25306 -0.38957,2.06329 0.31092,0.81023 -0.0893,2.12774 -0.88933,2.92779 -0.80005,0.80005 -1.24876,2.11662 -0.99713,2.9257 0.25163,0.80908 0.6805,2.17762 0.95304,3.0412 0.30342,0.96141 1.36956,1.44602 2.75,1.25 2.03191,-0.28854 2.22897,-0.80461 1.9962,-5.22764 z m 33.32425,3.00064 c 0.33224,-1.32377 0.11743,-3.31617 -0.47736,-4.42756 -0.5948,-1.11138 -0.8322,-2.67023 -0.52756,-3.4641 0.30463,-0.79387 -0.14698,-1.71234 -1.00359,-2.04105 -1.49456,-0.57352 -1.98755,0.36657 -1.62848,3.10539 0.0913,0.69621 -0.39119,1.14621 -1.07213,1 -1.52727,-0.32791 -2.23933,2.57416 -1.42636,5.81327 0.85083,3.39001 5.28562,3.40017 6.13548,0.014 z m -43.20884,-4.45028 c -0.85197,-2.90636 -1.72934,-5.104 -1.94969,-4.88364 -0.22036,0.22036 0.30343,2.77157 1.16398,5.66935 0.86055,2.89779 1.73791,5.09542 1.94969,4.88364 0.21179,-0.21179 -0.312,-2.76299 -1.16398,-5.66935 z m 7.05477,-10.13095 c -0.65079,-0.65079 -1.04305,-0.25853 -1.14908,1.14908 -0.12125,1.60963 0.12265,1.85353 0.98809,0.98809 0.75682,-0.75682 0.81178,-1.48638 0.16099,-2.13717 z m 44.2712,-1.19941 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19293,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 1,-4 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 2,-9 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m -50.90517,-16.5625 c -0.33467,-2.59318 -0.42229,-2.52569 -1.53651,1.18358 -0.91957,3.0613 -0.91104,4.26266 0.0385,5.41753 1.03269,1.25602 1.26868,1.07423 1.53651,-1.18358 0.17403,-1.46714 0.15671,-3.90503 -0.0385,-5.41753 z m -60.00863,0.63158 c -0.23261,-1.58487 -0.0509,-2.88158 0.40388,-2.88158 0.45475,0 0.82681,-0.675 0.82681,-1.5 0,-0.825 -0.62773,-1.5 -1.39497,-1.5 -1.33836,0 -2.85272,7.46337 -1.88019,9.26631 0.94411,1.75026 2.4357,-0.71914 2.04447,-3.38473 z m 158.1321,-2.81632 c -0.90986,-3.03684 -1.52353,-3.8233 -2.31931,-2.97236 -0.78059,0.8347 -0.73207,1.28539 0.17413,1.61751 0.69093,0.25323 1.00762,0.86268 0.70376,1.35433 -0.62679,1.01416 1.43894,5.36967 2.19034,4.61826 0.26856,-0.26856 -0.0685,-2.34654 -0.74892,-4.61774 z m 4.62571,2.18679 c -0.79488,-3.16706 -1.27811,-3.8344 -2.14722,-2.96529 -0.9472,0.94721 0.51063,5.71324 1.74756,5.71324 0.68885,0 0.83579,-1.0103 0.39966,-2.74795 z m -10.43334,-4.55827 c -0.79171,-0.79171 -1.09378,-0.53223 -1.09378,0.93955 0,2.64375 1.39845,4.04704 1.84378,1.85016 0.18908,-0.93276 -0.14842,-2.18813 -0.75,-2.78971 z m 9.19597,-1.69378 c -0.28766,-1.1 -0.90641,-2 -1.375,-2 -0.46859,0 -0.59296,-0.675 -0.27638,-1.5 0.36449,-0.94984 -0.0138,-1.5 -1.03138,-1.5 -0.94032,0 -1.60699,0.82971 -1.60699,2 0,1.1 0.66088,2 1.46862,2 0.89459,0 1.24363,0.58629 0.89301,1.5 -0.35539,0.92612 0.003,1.5 0.93776,1.5 1.02104,0 1.34322,-0.65064 0.99036,-2 z m -159.28975,-2.60699 c 0,-0.76615 -0.675,-1.39301 -1.5,-1.39301 -0.82536,0 -1.5,0.8854 -1.5,1.96862 0,1.33903 0.47971,1.78453 1.5,1.39301 0.825,-0.31659 1.5,-1.20246 1.5,-1.96862 z m 149.49511,-1.40093 c -0.33723,-0.54564 -0.13659,-0.99208 0.44587,-0.99208 0.58246,0 1.06591,-0.7875 1.07433,-1.75 0.0122,-1.39097 0.19532,-1.46578 0.89267,-0.36465 0.94511,1.49233 6.09202,0.80733 6.09202,-0.81078 0,-0.48803 0.9759,-0.63213 2.16867,-0.32021 1.72027,0.44986 2.0369,0.22374 1.53139,-1.09362 -0.35051,-0.91341 -0.17486,-1.66074 0.39034,-1.66074 0.5652,0 0.74952,-0.45 0.4096,-1 -0.33992,-0.55 -2.36492,-1 -4.5,-1 -2.13508,0 -4.16008,0.45 -4.5,1 -0.33992,0.55 -1.11122,1 -1.714,1 -0.60279,0 -0.28149,-0.9 0.714,-2 1.77323,-1.95939 1.74663,-2 -1.30983,-2 -4.7475,0 -6.67819,4.733 -3.19017,7.82054 0.825,0.73028 1.0344,1.10273 0.46533,0.82768 -0.59347,-0.28684 -0.97989,0.64097 -0.90622,2.17585 0.20751,4.3232 0.44385,4.77529 1.52542,2.91801 0.56304,-0.96686 0.7478,-2.20436 0.41058,-2.75 z m 4.50489,2.06694 c 0,-0.51754 -0.45,-1.2191 -1,-1.55902 -0.55,-0.33992 -1,0.0835 -1,0.94098 0,0.85746 0.45,1.55902 1,1.55902 0.55,0 1,-0.42344 1,-0.94098 z m -158.17668,-2.39189 c 0.19138,-0.98676 -0.31876,-1.66713 -1.25,-1.66713 -0.92763,0 -1.57332,0.855 -1.57332,2.08333 0,2.43705 2.33677,2.09257 2.82332,-0.4162 z m 167,-0.33426 c -0.48655,-2.50877 -2.82332,-2.85325 -2.82332,-0.4162 0,1.22833 0.64569,2.08333 1.57332,2.08333 0.93124,0 1.44138,-0.68037 1.25,-1.66713 z m -175.21408,-6.08971 c 0.0601,-1.13694 0.38346,-2.78176 0.71862,-3.65516 1.03614,-2.70015 -0.0296,-1.75866 -2.22908,1.96916 -2.53805,4.30167 -2.54057,4.33059 -0.34878,4.00952 0.97386,-0.14266 1.79845,-1.17316 1.85924,-2.32352 z m 6.89076,0.75684 c 0.33992,-0.55 0.14148,-1 -0.44098,-1 -0.58246,0 -1.05902,0.45 -1.05902,1 0,0.55 0.19844,1 0.44098,1 0.24254,0 0.7191,-0.45 1.05902,-1 z m 101.96332,-6.49665 c 1.28995,-3.69162 1.97263,-6.32758 1.51705,-5.85769 -0.92813,0.95728 -4.97908,11.34608 -4.97987,12.77101 -10e-4,1.95038 1.2115,-0.47045 3.46282,-6.91332 z m -36.46332,2.68778 c 0,-0.44488 -0.63247,-1.67382 -1.40548,-2.73098 -1.31464,-1.79788 -1.37174,-1.7456 -0.88343,0.80887 0.46553,2.43525 2.28891,3.96644 2.28891,1.92211 z m 48.65582,-9.32383 c -1.3078,-3.04621 -1.44475,-3.12891 -1.43617,-0.8673 0.005,1.375 0.52043,3.58234 1.14492,4.90519 1.75805,3.7241 2.0264,0.004 0.29125,-4.03789 z m 44.34418,5.69172 c 0,-0.24254 -0.45,-0.7191 -1,-1.05902 -0.55,-0.33992 -1,-0.14148 -1,0.44098 0,0.58246 0.45,1.05902 1,1.05902 0.55,0 1,-0.19844 1,-0.44098 z m -72.32833,-2.05902 c 0.1823,-0.55523 -1.4589,-1 -3.69002,-1 -3.52254,0 -3.80105,0.15889 -2.25725,1.28774 1.95612,1.43035 5.43849,1.26187 5.94727,-0.28774 z m 82.91909,-1.67388 c -1.84436,-2.6332 -10.06965,-6.76622 -11.59256,-5.82501 -0.73884,0.45663 -0.59161,1.09144 0.45447,1.95961 0.85103,0.70629 1.56164,0.89157 1.57913,0.41172 0.0175,-0.47984 0.58,-0.17679 1.25,0.67345 1.91659,2.43216 5.98778,4.95411 7.99741,4.95411 1.68339,0 1.709,-0.17874 0.31155,-2.17388 z m -150.60854,-5.57612 c 1.11257,-2.0625 2.75161,-4.7625 3.64229,-6 0.89069,-1.2375 1.37848,-2.25 1.08397,-2.25 -0.2945,0 -1.94193,1.9125 -3.66094,4.25 -1.71902,2.3375 -3.66429,4.25 -4.32282,4.25 -0.65853,0 -1.34899,0.7875 -1.53435,1.75 -0.62279,3.23387 2.72148,1.83806 4.79185,-2 z m -6.6794,0.35899 c 0.10845,-0.49006 -0.60313,-1.39006 -1.58129,-2 -1.37387,-0.8567 -1.98748,-0.77375 -2.69721,0.36462 -0.59993,0.96224 -0.50329,1.74259 0.27847,2.24874 1.46342,0.9475 3.73158,0.5997 4.00003,-0.61336 z m 16.00372,-14.53211 c 2.66988,-4.54733 1.39332,-3.73507 -1.8437,1.17312 -1.54161,2.3375 -2.16391,3.7221 -1.38288,3.07688 0.78102,-0.64521 2.23298,-2.55771 3.22658,-4.25 z m 39.19346,-1.07688 c 0.33992,-0.55 0.14148,-1 -0.44098,-1 -0.58246,0 -1.05902,0.45 -1.05902,1 0,0.55 0.19844,1 0.44098,1 0.24254,0 0.7191,-0.45 1.05902,-1 z m 13.5,0 c 0,-0.55 -0.47656,-1 -1.05902,-1 -0.58246,0 -0.7809,0.45 -0.44098,1 0.33992,0.55 0.81648,1 1.05902,1 0.24254,0 0.44098,-0.45 0.44098,-1 z m 11.96238,-1.52325 c 0.83833,0.51812 3.62779,-2.23766 2.93012,-2.89475 -0.83456,-0.78602 -7.26652,1.992 -7.70384,3.32735 -0.31689,0.96762 0.0513,1.21253 1.17489,0.78138 0.94527,-0.36273 1.68545,-0.11326 1.75245,0.59065 0.0638,0.67024 0.32286,0.42561 0.57568,-0.54362 0.25283,-0.96924 0.82464,-1.53669 1.2707,-1.26101 z m -16.23321,-1.08092 c -0.3323,-0.33229 -1.1948,-0.36781 -1.91667,-0.0789 -0.79773,0.31922 -0.56078,0.55618 0.60417,0.60416 1.05416,0.0434 1.64479,-0.19293 1.3125,-0.52522 z m -11.42015,-3.70485 c -0.30746,-0.49748 -0.92308,-0.31545 -1.36804,0.40451 -0.44496,0.71996 -0.55746,1.71605 -0.25,2.21353 0.30746,0.49748 0.92308,0.31545 1.36804,-0.40451 0.44496,-0.71996 0.55746,-1.71605 0.25,-2.21353 z m 36.98109,1.30764 c 0.28785,-1.10076 0.11534,-1.7492 -0.38337,-1.44098 -0.49871,0.30822 -0.90674,1.20884 -0.90674,2.00138 0,2.06975 0.6795,1.77459 1.29011,-0.5604 z m 8.21997,-0.98231 c -0.2874,-0.46502 0.0428,-1.10477 0.73369,-1.42167 0.69093,-0.3169 0.13123,-0.30475 -1.24377,0.027 -1.375,0.33174 -2.95,1.06881 -3.5,1.63794 -0.68122,0.70492 -0.44213,0.83848 0.75,0.41899 0.9625,-0.33868 1.75,-0.15336 1.75,0.41184 0,0.5652 0.45734,0.74498 1.01631,0.39952 0.55897,-0.34546 0.78117,-1.00859 0.49377,-1.47361 z m -44.14845,-10.51631 c -0.31659,-0.825 -1.31496,-1.48569 -2.21862,-1.4682 -1.39458,0.027 -1.3495,0.2538 0.29812,1.5 2.4262,1.83509 2.63556,1.83163 1.9205,-0.0318 z m 8.63837,0.5 c 0,-0.55 -0.7875,-0.99311 -1.75,-0.98469 -1.49555,0.0131 -1.5319,0.15626 -0.25,0.98469 1.88721,1.21961 2,1.21961 2,0 z m 19.25,0.33772 c -0.6875,-0.27741 -1.8125,-0.27741 -2.5,0 -0.6875,0.27741 -0.125,0.50439 1.25,0.50439 1.375,0 1.9375,-0.22698 1.25,-0.50439 z m -56.25,-1.33772 c 0,-0.55 -0.47656,-1 -1.05902,-1 -0.58246,0 -0.7809,0.45 -0.44098,1 0.33992,0.55 0.81648,1 1.05902,1 0.24254,0 0.44098,-0.45 0.44098,-1 z m 46.36163,-0.5 c -0.31659,-0.825 -0.75246,-1.5 -0.96862,-1.5 -0.21616,0 -0.39301,0.675 -0.39301,1.5 0,0.825 0.43588,1.5 0.96862,1.5 0.53273,0 0.70959,-0.675 0.39301,-1.5 z m 19.21526,-4.04968 c -0.64179,-2.55709 -0.74785,-2.59954 -2.0569,-0.82321 -0.75912,1.03009 -0.96167,2.02289 -0.4501,2.20622 0.51156,0.18334 0.93011,1.06084 0.93011,1.95 0,1.19905 0.29107,1.3256 1.12678,0.48989 0.65778,-0.65778 0.84513,-2.249 0.45011,-3.8229 z m -65.57689,1.54968 c 0,-0.55 -0.19844,-1 -0.44098,-1 -0.24254,0 -0.7191,0.45 -1.05902,1 -0.33992,0.55 -0.14148,1 0.44098,1 0.58246,0 1.05902,-0.45 1.05902,-1 z m 0.70394,-2.75 c 1.10548,-0.9625 2.341,-2.875 2.7456,-4.25 l 0.73563,-2.5 -1.61995,2.20811 c -1.86465,2.54166 -4.1192,2.10546 -4.91865,-0.95164 -0.34584,-1.32247 0.12019,-2.69101 1.25344,-3.68083 0.99218,-0.8666 2.56783,-3.15064 3.50144,-5.07564 l 1.69748,-3.5 -2.16518,2.5 c -1.19085,1.375 -2.78306,3.38042 -3.53824,4.45648 -1.36288,1.94197 -1.38403,1.94197 -2.85248,0 -1.45138,-1.9194 -1.48003,-1.91495 -1.51123,0.2345 -0.0175,1.20504 -0.42748,2.43553 -0.91109,2.73442 -0.48362,0.29889 -1.11444,1.44264 -1.40185,2.54167 -0.446,1.70553 -0.24257,1.8484 1.38875,0.97534 1.59493,-0.85358 2.07525,-0.59166 2.90184,1.58245 0.5448,1.43294 0.99055,3.02604 0.99055,3.54024 0,1.44111 1.48889,1.11346 3.70394,-0.8151 z m 91.6454,0.28203 c 0.30982,-0.80739 0.13297,-1.73395 -0.39301,-2.05902 -0.52598,-0.32508 -0.95633,0.33551 -0.95633,1.46797 0,2.41457 0.55611,2.65816 1.34934,0.59105 z m -24.66623,-2.71953 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 19.91689,-0.4125 c -0.35589,-0.92744 -0.87208,-1.46126 -1.14708,-1.18626 -0.275,0.275 -0.20881,1.25882 0.14708,2.18626 0.35589,0.92744 0.87208,1.46126 1.14708,1.18626 0.275,-0.275 0.20881,-1.25882 -0.14708,-2.18626 z m 10.32971,-2.65 c -0.0527,-3.18673 -0.27239,-3.74964 -0.87812,-2.25 -0.75754,1.87546 -0.8877,1.82876 -2.09023,-0.75 -0.70532,-1.5125 -1.80672,-2.75 -2.44756,-2.75 -0.64085,0 -2.22039,-1.12323 -3.5101,-2.49606 -3.13744,-3.33965 -3.55878,-2.55906 -0.97889,1.81353 1.46761,2.48741 2.61676,3.40649 3.79063,3.0317 0.98774,-0.31536 1.27091,-0.18857 0.68456,0.3065 -1.20934,1.02108 -1.25356,3.35441 -0.0986,5.20109 0.71447,1.14235 0.98974,1.14235 1.74187,0 0.72512,-1.10134 1.08746,-1.02731 1.92469,0.39324 1.56415,2.65395 1.93864,2.15106 1.86172,-2.5 z m -70.74638,0.0333 c -0.71756,-0.71753 -1.18333,-0.77657 -1.18333,-0.14997 0,1.33478 1.18261,2.51739 1.85,1.85 0.28417,-0.28416 -0.0158,-1.04916 -0.66667,-1.7 z m 5.81667,-2.7833 c 0,-0.55 -0.47656,-1 -1.05902,-1 -0.58246,0 -0.7809,0.45 -0.44098,1 0.33992,0.55 0.81648,1 1.05902,1 0.24254,0 0.44098,-0.45 0.44098,-1 z m 34.48276,-2.0279 c -0.27237,-0.4407 0.0701,-1.00311 0.76101,-1.24979 0.69093,-0.24667 0.88498,-0.84386 0.43123,-1.32707 -0.82185,-0.87522 -2.90595,1.90527 -3.30594,4.41057 -0.16153,1.01174 0.10876,1.04252 1.20022,0.13669 0.77479,-0.64301 1.18585,-1.52969 0.91348,-1.9704 z m -74.79965,-3.1596 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 65.30158,-4.62152 c -0.0132,-1.45727 -0.14929,-1.48367 -0.98469,-0.19098 -1.2656,1.95837 -1.2656,3.28218 0,2.5 0.55,-0.33992 0.99311,-1.37898 0.98469,-2.30902 z m -20.41326,-1.19098 c 0,-1.1 -0.55202,-2 -1.2267,-2 -2.09139,0 -2.47764,1.82419 -0.61576,2.90813 0.97407,0.56708 1.7871,1.04474 1.80674,1.06146 0.0196,0.0167 0.0357,-0.86959 0.0357,-1.96959 z m 48.42857,1.55902 c 0,-0.24254 -0.45,-0.7191 -1,-1.05902 -0.55,-0.33992 -1,-0.14148 -1,0.44098 0,0.58246 0.45,1.05902 1,1.05902 0.55,0 1,-0.19844 1,-0.44098 z m -20,-2.55902 c 0,-0.55 -0.19844,-1 -0.44098,-1 -0.24254,0 -0.7191,0.45 -1.05902,1 -0.33992,0.55 -0.14148,1 0.44098,1 0.58246,0 1.05902,-0.45 1.05902,-1 z m -19.64817,-2.52552 c -0.45142,-1.17639 -0.90196,-1.2628 -1.96861,-0.37756 -1.85707,1.54123 -1.74576,1.90308 0.5854,1.90308 1.35367,0 1.78575,-0.47653 1.38321,-1.52552 z m 4.64817,-5.47448 c 0,-2.16058 2.76625,-3.99099 4.8892,-3.23514 0.79357,0.28254 1.11247,0.0469 0.74377,-0.54972 -0.35499,-0.57437 -0.23696,-1.19525 0.26228,-1.37973 0.49924,-0.18448 0.27704,-0.91565 -0.49377,-1.62484 -1.1556,-1.0632 -1.40148,-1.00681 -1.40148,0.32143 0,1.33074 -0.22309,1.38107 -1.28291,0.28943 -2.34288,-2.41321 -5.86522,-7.82143 -5.09405,-7.82143 0.41757,0 -0.11429,-0.71174 -1.18191,-1.58164 -1.46236,-1.19153 -1.53943,-1.4574 -0.31247,-1.07794 0.89577,0.27703 3.25827,0.13615 5.25,-0.31305 2.07198,-0.46731 3.62134,-0.43396 3.62134,0.0779 0,0.49208 1.125,0.89469 2.5,0.89469 1.808,0 2.5,-0.53727 2.5,-1.94098 0,-2.13225 -1.73631,-3.68714 -2.81653,-2.52225 -0.37591,0.40537 -0.12097,0.93793 0.56653,1.18347 1.73752,0.62054 1.56723,1.94643 -0.25,1.94643 -0.825,0 -1.5,-0.43125 -1.5,-0.95834 0,-0.52869 -1.32758,-0.69281 -2.96123,-0.36609 -1.62867,0.32574 -3.23023,0.15699 -3.55901,-0.375 -0.32879,-0.53198 0.52721,-0.96724 1.90221,-0.96724 1.375,0 2.71165,-0.34246 2.97034,-0.76103 0.60665,-0.98158 -1.41781,-3.73007 -3.35231,-4.55125 -0.89683,-0.38069 -0.53209,-0.54646 0.90705,-0.41223 1.32387,0.12348 2.59887,-0.33799 2.83333,-1.02549 0.23446,-0.6875 -0.33436,-1.25 -1.26404,-1.25 -1.09166,0 -1.48646,-0.53125 -1.11471,-1.5 0.36703,-0.95648 -0.0169,-1.5 -1.05968,-1.5 -0.89941,0 -1.32117,-0.31411 -0.93725,-0.69803 0.38391,-0.38392 -0.32859,-1.315 -1.58334,-2.06907 -1.27182,-0.76433 -1.50695,-1.1331 -0.53136,-0.83336 0.9625,0.29573 1.75,0.12227 1.75,-0.38547 0,-0.50774 1.10455,0.18138 2.45455,1.53139 2.93182,2.93182 6.10513,3.40591 4.71576,0.70454 -0.49503,-0.9625 -0.71684,-2.25706 -0.49292,-2.87679 0.22393,-0.61974 -0.33698,-1.41234 -1.24647,-1.76134 -1.13054,-0.43383 -1.49038,-0.20921 -1.1376,0.71012 0.2838,0.73957 -0.0963,1.34468 -0.84467,1.34468 -0.74837,0 -1.08835,-0.44063 -0.75551,-0.97918 0.37277,-0.60315 -0.41218,-0.72384 -2.04399,-0.31428 -3.33838,0.83788 -3.33909,0.17071 -0.003,-2.92096 1.45519,-1.34874 2.20457,-2.45225 1.66517,-2.45225 -0.5394,0 -2.18358,1.35 -3.65374,3 -3.25715,3.6556 -4.65758,3.80594 -4.65758,0.5 0,-1.375 -0.45,-2.5 -1,-2.5 -0.55,0 -1,1.125 -1,2.5 0,3.54671 -3.4889,3.36952 -4.92265,-0.25 l -1.08931,-2.75 0.58011,3 c 0.31906,1.65 1.44675,3.929 2.50598,5.06445 2.16271,2.31834 2.66109,6.86158 0.67587,6.16126 -0.6875,-0.24253 -1.18831,-1.17519 -1.11291,-2.07258 0.0754,-0.89738 -0.26209,-1.38489 -0.75,-1.08335 -0.4879,0.30154 -0.88709,0.0858 -0.88709,-0.47938 0,-0.5652 -0.64021,-0.78196 -1.42268,-0.4817 -1.16185,0.44585 -1.08379,0.88483 0.42579,2.39441 1.02221,1.02221 1.63141,2.67849 1.36287,3.70537 -0.35596,1.36122 0.0958,1.9007 1.69254,2.02097 2.08763,0.15726 2.1005,0.10529 0.3098,-1.25088 -1.02757,-0.77823 -1.36092,-1.42928 -0.74077,-1.44677 1.93179,-0.0545 3.08492,2.35759 2.37512,4.9682 -0.37384,1.375 -1.20239,2.3875 -1.84119,2.25 -1.32827,-0.2859 -1.3957,-0.024 -0.5567,2.16247 0.33264,0.86682 1.00764,1.32707 1.5,1.02277 0.49237,-0.3043 0.89522,0.14828 0.89522,1.00574 0,0.85746 -0.43417,1.55902 -0.96482,1.55902 -2.02474,0 -3.01134,3.65348 -1.51544,5.61186 1.2582,1.64718 1.58201,1.69671 2.53739,0.38814 0.97345,-1.33333 1.04933,-1.33333 0.68291,0 -0.43343,1.57718 -0.82738,1.68138 -7.24004,1.91506 -3.25972,0.11878 -3.67239,0.33649 -2.22982,1.17633 0.9736,0.56682 2.7736,0.707 4,0.31153 5.29494,-1.70746 7.34226,-1.08068 8.48308,2.59708 l 1.08568,3.5 -2.20704,-2.75 c -1.21386,-1.5125 -2.58273,-2.75 -3.04191,-2.75 -0.45918,0 -0.29104,0.65529 0.37365,1.4562 0.6647,0.8009 0.942,1.88747 0.61622,2.41458 -0.8796,1.42323 4.58901,3.02927 6.67014,1.95891 0.9625,-0.49503 1.75,-1.76839 1.75,-2.82969 z m -9.41705,-9.86579 c -0.43077,-0.697 -0.51316,-1.53733 -0.18309,-1.86741 0.89496,-0.89496 1.87077,0.4213 1.38739,1.87145 -0.33872,1.01617 -0.57427,1.01538 -1.2043,-0.004 z m 4.08372,-8.80088 c -1.30834,-1.30833 -0.6341,-2.13757 1.32208,-1.62602 1.09382,0.28604 1.74226,0.91891 1.44099,1.40638 -0.65005,1.05179 -1.8366,1.14612 -2.76307,0.21964 z m 5.83333,-3.33333 c -0.33992,-0.55 0.0835,-1 0.94098,-1 0.85746,0 1.55902,0.45 1.55902,1 0,0.55 -0.42344,1 -0.94098,1 -0.51754,0 -1.2191,-0.45 -1.55902,-1 z m -7.5,-8.5 c 0,-0.825 0.45,-1.5 1,-1.5 0.55,0 1,0.675 1,1.5 0,0.825 -0.45,1.5 -1,1.5 -0.55,0 -1,-0.675 -1,-1.5 z m -3,9.5 c 0,-0.55 -0.7875,-0.99311 -1.75,-0.98469 -1.49555,0.0131 -1.5319,0.15626 -0.25,0.98469 1.88721,1.21961 2,1.21961 2,0 z m -10.61192,-2.56895 c 0.38933,-1.01456 1.28078,-1.35354 2.52284,-0.95932 2.2451,0.71256 3.71071,-0.96562 1.85539,-2.12451 -1.54143,-0.96283 -4.18625,-1.43383 -3.3488,-0.59637 0.33043,0.33043 -0.38178,1.64666 -1.58268,2.92496 -1.2009,1.27831 -1.70316,2.32419 -1.11613,2.32419 0.58703,0 1.33825,-0.70603 1.66938,-1.56895 z m -8.97384,-14.67049 c 1.06712,-0.95669 1.7172,-1.96245 1.44463,-2.23502 -0.27257,-0.27257 -2.03982,1.16559 -3.92722,3.19591 -3.21807,3.46173 -1.86736,2.93894 2.48259,-0.96089 z m 10.25243,0.73944 c 0,-1.6636 -1.23598,-2.00588 -2.11388,-0.58541 -0.31089,0.50302 5e-5,1.1425 0.69098,1.42105 0.69093,0.27856 1.29373,0.54199 1.33956,0.58541 0.0458,0.0434 0.0833,-0.59605 0.0833,-1.42105 z m 32.83333,-1.5 c -0.33992,-0.55 -0.17898,-1 0.35765,-1 0.53663,0 1.18193,0.5625 1.43402,1.25 0.33992,0.92706 0.7674,0.96031 1.65465,0.12868 0.91517,-0.8578 0.57602,-1.60925 -1.44314,-3.19752 -2.16238,-1.70093 -3.06906,-1.88045 -5.0163,-0.99323 -1.30727,0.59564 -2.62146,1.72039 -2.92041,2.49946 -0.29896,0.77907 -0.18973,1.19781 0.24273,0.93053 0.43246,-0.26727 1.43981,-0.0725 2.23855,0.43275 1.94676,1.23153 4.22404,1.19811 3.45225,-0.0507 z m -28.92178,-4.33197 c 0.13767,-0.93805 -1.12644,-1.40232 -4.12733,-1.51583 -2.37919,-0.09 -4.53471,0.17645 -4.79004,0.59209 -0.25533,0.41564 0.86829,0.80498 2.49694,0.8652 1.62866,0.0602 3.49692,0.65103 4.1517,1.31291 0.92683,0.93688 0.61832,0.98751 -1.39296,0.22858 -1.70031,-0.6416 -3.06772,-0.63086 -4,0.0314 -1.1956,0.84933 -1.18258,0.93516 0.0835,0.55033 0.825,-0.25077 2.4,-0.11932 3.5,0.29212 2.12956,0.79654 3.75311,-0.14171 4.07821,-2.35681 z m -13.6925,-1.73866 c -1.60476,-0.99179 -2.33522,-0.46569 -1.41676,1.02041 0.36808,0.59556 1.13619,0.79425 1.7069,0.44153 0.67187,-0.41524 0.56959,-0.9306 -0.29014,-1.46194 z m 57.61428,0.0706 c 0.33992,-0.55 0.14148,-1 -0.44098,-1 -0.58246,0 -1.05902,0.45 -1.05902,1 0,0.55 0.19844,1 0.44098,1 0.24254,0 0.7191,-0.45 1.05902,-1 z m -63,-1 c -0.33992,-0.55 -2.05398,-0.95514 -3.80902,-0.90032 -3.04737,0.0952 -3.07847,0.13571 -0.69098,0.90032 3.59081,1.14998 5.21073,1.14998 4.5,0 z m 10.519,-0.52289 c 1.05777,-1.27454 0.99412,-1.41937 -0.39029,-0.88813 -0.9098,0.34913 -2.39712,0.0219 -3.30516,-0.7271 -1.4928,-1.23139 -1.53612,-1.1463 -0.45209,0.88812 1.40672,2.64001 2.41349,2.81651 4.14754,0.72711 z m 39.731,-0.46345 c 1.2375,-0.008 2.25,-0.49941 2.25,-1.09311 0,-1.2016 -5.48697,-0.33533 -8,1.26302 -1.09887,0.69891 -0.83145,0.80558 1,0.39889 1.375,-0.30533 3.5125,-0.5613 4.75,-0.5688 z m -46.75,-1.01366 c -0.825,-0.53316 -1.95,-0.96937 -2.5,-0.96937 -0.55,0 -0.325,0.43621 0.5,0.96937 0.825,0.53316 1.95,0.96937 2.5,0.96937 0.55,0 0.325,-0.43621 -0.5,-0.96937 z m 46.63617,289.50574 c 0.31537,-0.82184 0.98359,-1.24074 1.48493,-0.9309 1.04858,0.64806 0.20682,2.42516 -1.14873,2.42516 -0.50028,0 -0.65157,-0.67242 -0.3362,-1.49426 z m -37.17729,-3.57227 c -0.36253,-0.58659 -0.44468,-1.281 -0.18255,-1.54313 0.26212,-0.26213 0.74306,0.21781 1.06875,1.06653 0.67618,1.76211 0.0998,2.07206 -0.8862,0.4766 z m 36.13001,-2.0102 c -1.42389,-1.69219 -2.58889,-3.91564 -2.58889,-4.94098 0,-1.02534 -0.45,-2.14237 -1,-2.48229 -1.12092,-0.69277 -1.40008,3.76658 -0.30439,4.86228 1.04204,1.04204 1.26292,3.73013 0.25534,3.1074 -0.48042,-0.29691 -1.16526,-2.09512 -1.52187,-3.99601 -0.82098,-4.37619 -2.40674,-3.52896 -2.49937,1.33535 -0.0523,2.74742 -0.26364,3.19727 -0.82667,1.7597 -1.23089,-3.14282 -0.14976,-6.00536 2.93727,-7.77707 l 2.89363,-1.66071 0.65773,3.506 c 0.36175,1.9283 1.76662,4.82384 3.12192,6.43453 1.35531,1.61069 2.2392,2.92853 1.9642,2.92853 -0.275,0 -1.665,-1.38453 -3.0889,-3.07673 z"
- id="path3028"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#afafaf"
- d="m 474.65591,673.55683 c -6.20626,-1.88323 -8.75624,-4.81223 -5.78709,-6.64726 0.68856,-0.42556 0.88408,-0.27597 0.48446,0.37063 -0.39458,0.63845 0.75335,1.59887 2.79225,2.33615 1.97712,0.71494 3.18832,1.71027 2.82358,2.32035 -0.35129,0.5876 0.0471,0.51349 0.88529,-0.16469 1.21946,-0.98666 1.90726,-0.94306 3.44195,0.21819 1.05488,0.79819 2.81796,1.44755 3.91796,1.44302 1.66875,-0.007 1.54453,-0.25533 -0.75,-1.50013 -1.5125,-0.82055 -2.75,-1.70253 -2.75,-1.95997 0,-0.74678 2.43778,-0.0533 3.12515,0.88895 1.24426,1.70572 5.08931,-0.62603 6.46614,-3.92125 2.17766,-5.21189 1.81625,-8.29295 -1.13028,-9.63548 -2.81715,-1.28358 -2.93833,-4.08468 -0.19953,-4.61212 1.20753,-0.23255 1.73852,0.30918 1.73852,1.7737 0,1.15968 0.73268,3.22672 1.62818,4.59342 1.51067,2.30558 1.50101,2.81791 -0.13381,7.09863 -2.50235,6.55232 -4.63885,8.36339 -9.74437,8.26014 -2.3375,-0.0473 -5.40128,-0.4353 -6.8084,-0.86228 z m 30.68818,-2.79671 c -3.1338,-4.89238 -3.90723,-8.49337 -2.29716,-10.69527 1.13272,-1.54908 1.24655,-1.35589 0.93587,1.58831 -0.38267,3.62645 2.19096,9.56774 4.84559,11.18616 0.88774,0.54122 2.46274,0.62832 3.5,0.19355 1.03725,-0.43476 3.68592,-0.81706 5.88592,-0.84953 2.2,-0.0325 4.61607,-0.66981 5.36905,-1.41629 0.75297,-0.74647 1.59405,-1.13223 1.86905,-0.85723 0.275,0.275 -0.20635,1.20634 -1.06965,2.06965 -1.03792,1.03792 -4.12112,1.73328 -9.10151,2.05268 l -7.53187,0.48302 -2.40529,-3.75505 z m 17.67475,-4.75431 c -2.15081,-1.50649 -6.30453,-7.49626 -6.30453,-9.09129 0,-0.46996 0.74301,0.25816 1.65112,1.61803 0.90812,1.35988 3.0214,3.93501 4.69617,5.72251 3.31184,3.53476 3.29826,4.09089 -0.0428,1.75075 z m -44.8064,-1.50377 c -0.51048,-0.82598 -0.41421,-1.06315 0.26195,-0.64526 0.5987,0.37002 1.43812,-0.44633 1.9078,-1.85536 0.8373,-2.51188 0.84091,-2.51256 2.15923,-0.40159 0.81538,1.30562 0.8843,1.84491 0.18018,1.40974 -0.6272,-0.38763 -1.71673,0.0835 -2.42118,1.04684 -1.00686,1.37696 -1.45347,1.47228 -2.08798,0.44563 z m 35.88946,-1.52819 c -0.91218,-1.39216 -1.4766,-2.71311 -1.25427,-2.93544 0.22233,-0.22233 1.16235,0.91671 2.08895,2.53121 2.06367,3.59573 1.45092,3.89249 -0.83468,0.40423 z m -39.38759,-1.46879 c 0.5887,-1.1 1.29537,-2 1.57037,-2 0.275,0 0.0183,0.9 -0.57037,2 -0.5887,1.1 -1.29537,2 -1.57037,2 -0.275,0 -0.0183,-0.9 0.57037,-2 z m 11.55836,-1.25 c -0.65574,-2.18608 -0.69967,-2.19318 -1.54635,-0.25 -0.76898,1.76485 -0.8797,1.66973 -0.94173,-0.80902 -0.0401,-1.60428 -0.49916,-2.54395 -1.07028,-2.19098 -0.55,0.33992 -1,0.14148 -1,-0.44098 0,-0.58246 0.45,-1.05902 1,-1.05902 1.53371,0 5,3.81292 5,5.5 0,2.18297 -0.66577,1.83661 -1.44164,-0.75 z m 18.01762,-6.5 c 0.36663,-2.0625 1.06202,-4.1775 1.54531,-4.7 1.33822,-1.44679 1.05435,-11.54649 -0.73104,-26.00967 -1.65935,-13.44209 -1.44535,-25.79644 0.53529,-30.90246 l 1.11022,-2.86213 2.0547,2.61213 c 2.55984,3.25431 3.22438,3.26088 4.94341,0.0488 0.75451,-1.40981 2.63055,-3.30684 4.16898,-4.21561 1.53843,-0.90877 2.79715,-2.45529 2.79715,-3.43671 0,-4.07588 1.96417,-1.27345 4.39968,6.27736 3.64194,11.29107 3.4172,16.60891 -1.29941,30.74798 -2.14485,6.42965 -4.21876,13.21268 -4.6087,15.07341 -0.43897,2.09473 -0.99381,2.92225 -1.45692,2.17293 -1.02715,-1.66197 -2.02466,4.9909 -1.45347,9.69393 0.34974,2.87972 0.23543,3.28585 -0.49258,1.75 -0.87315,-1.84202 -0.95358,-1.79595 -1.01831,0.58333 -0.0435,1.5984 -0.64219,2.58334 -1.57029,2.58334 -0.91109,0 -1.55347,-1.01423 -1.63618,-2.58334 -0.12254,-2.32446 -0.17934,-2.35994 -0.56684,-0.35407 -0.40981,2.12142 -0.54836,2.15214 -2.86381,0.63499 -2.112,-1.38383 -2.43317,-1.39726 -2.43317,-0.1017 0,0.82091 0.67999,2.0569 1.51109,2.74665 1.33799,1.11044 1.30935,1.4072 -0.25,2.59065 -2.8234,2.14276 -3.39483,1.64268 -2.68511,-2.34985 z m 11.10713,-19.4375 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36781,-1.1948 0.0789,-1.91667 z m -5,-8 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36781,-1.1948 0.0789,-1.91667 z m 0.0331,-12.5625 c -0.22912,-1.5125 -0.41659,-0.275 -0.41659,2.75 0,3.025 0.18747,4.2625 0.41659,2.75 0.22913,-1.5125 0.22913,-3.9875 0,-5.5 z m 7.70253,-1.59655 c 1.2115,-8.07385 1.37721,-10.52413 0.75386,-11.14748 -0.68109,-0.68109 -0.79116,-1.11177 -1.08768,-4.25597 -0.1261,-1.33711 -0.50879,-1.1169 -1.62201,0.93335 -1.31505,2.42195 -1.61703,5.96154 -1.32144,15.48923 0.12872,4.14916 2.61791,3.3751 3.27727,-1.01913 z m 5.64337,-7.12199 c -0.74845,-2.57311 -0.88241,-2.12428 -0.88601,2.96854 -0.004,5.04856 0.13626,5.52927 0.88178,3.03146 0.51262,-1.71754 0.51441,-4.24606 0.004,-6 z m -46.06211,46.91022 c 0,-2.77975 -3.43247,-14.1647 -9.78089,-32.44168 -4.25721,-12.25641 -4.53572,-18.23855 -1.33639,-28.70486 3.18488,-10.41905 2.43153,-23.28958 -2.25878,-38.58954 -1.9886,-6.48693 -4.10308,-15.93693 -4.69883,-21 -1.46211,-12.42588 -0.86165,-50.17384 0.82489,-51.85764 0.6875,-0.68638 1.25703,-3.07046 1.26562,-5.29796 0.009,-2.2275 0.66756,-6.75 1.46438,-10.05 2.03195,-8.4153 1.86031,-14.43275 -0.59468,-20.84803 -1.80665,-4.72108 -4.28812,-7.58251 -5.51321,-6.35741 -0.1879,0.1879 -0.82401,3.91099 -1.41357,8.27354 -0.58956,4.36254 -1.90631,10.2041 -2.92611,12.98123 -2.35591,6.41558 -12.82619,25.6399 -17.9419,32.94281 -2.82824,4.03745 -4.09367,7.0322 -4.56245,10.79746 -0.78233,6.28364 -2.43626,10.88518 -3.64414,10.13867 -0.48616,-0.30047 -0.88394,-1.5003 -0.88394,-2.66629 0,-1.16599 -0.52236,-3.56455 -1.1608,-5.33013 -1.14183,-3.15767 -1.19354,-3.17964 -3.16338,-1.34446 -1.10141,1.02613 -4.51655,2.64797 -7.5892,3.6041 -5.21071,1.62144 -5.37222,1.76153 -2.4003,2.08207 1.75248,0.18901 4.56498,-0.36927 6.25,-1.24063 3.4676,-1.79317 4.20464,-0.72657 0.9168,1.32673 -1.73351,1.08259 -1.87792,1.51105 -0.75,2.22523 2.02456,1.28192 -1.65735,1.22404 -4.06386,-0.0639 -1.33313,-0.71347 -2.16759,-0.57131 -3.07675,0.52417 -0.68613,0.82673 -1.07089,1.61375 -0.85501,1.74894 3.40084,2.12959 10.77764,4.73179 13.66925,4.82188 2.04779,0.0638 2.95048,0.31896 2.00599,0.56702 -1.0641,0.27947 -1.9531,1.85185 -2.33732,4.134 -0.93946,5.58012 -1.51613,7.25731 -2.3237,6.75821 -0.97586,-0.60312 -0.14543,-7.44255 0.98877,-8.14352 1.55764,-0.96265 0.95723,-2.43169 -0.99386,-2.43169 -2.11084,0 -3.08216,2.564 -3.10298,8.19098 -0.0168,4.53648 -1.62932,5.88102 -2.2207,1.85163 -0.23709,-1.61534 -0.0625,-2.70919 0.38799,-2.43078 0.45048,0.27841 0.81906,-0.38285 0.81906,-1.46948 0,-1.08663 -0.5625,-2.20266 -1.25,-2.48007 -0.74674,-0.30132 -0.54544,-0.53617 0.5,-0.58333 2.08482,-0.094 2.443,-4.07895 0.36663,-4.07895 -1.52433,0 -2.58191,2.97236 -2.60298,7.31574 -0.0158,3.25606 -1.6161,6.68426 -3.12026,6.68426 -0.56994,0 -0.38062,-0.65563 0.42071,-1.45695 0.90568,-0.90569 1.39909,-3.17592 1.30403,-6 -0.0841,-2.49868 0.1924,-4.54305 0.61447,-4.54305 0.42207,0 0.7674,-0.9 0.7674,-2 0,-2.52911 -3.65962,-2.74135 -4.31067,-0.25 -0.25153,0.9625 -0.50953,0.037 -0.57333,-2.0567 -0.1136,-3.728 -0.16196,-3.77452 -2.33851,-2.25 -1.22237,0.85618 -3.27282,1.5567 -4.55653,1.5567 -2.31514,0 -2.31983,-0.024 -0.58006,-2.96923 0.96468,-1.63308 1.95425,-2.76896 2.19903,-2.52417 0.24479,0.24479 -0.13318,1.14182 -0.83993,1.9934 -1.54614,1.86298 -0.71562,2.98859 1.56063,2.11511 0.90578,-0.34758 1.41186,-1.24442 1.12461,-1.99297 -0.28724,-0.74855 0.30859,-2.72723 1.32408,-4.39707 1.01549,-1.66984 1.65382,-3.3036 1.41851,-3.63057 -0.2353,-0.32698 -0.14559,-0.38726 0.19937,-0.13397 0.34495,0.25329 2.56353,-0.87171 4.93017,-2.5 2.36664,-1.62829 5.03596,-2.96053 5.93182,-2.96053 0.89586,0 1.37666,-0.40803 1.06845,-0.90674 -0.76349,-1.23534 3.42299,-0.0993 6.17717,1.67616 2.07873,1.34007 2.30449,1.2574 3.23263,-1.18379 0.54881,-1.44347 3.17606,-5.87824 5.83835,-9.85506 2.66228,-3.97681 5.17938,-7.90557 5.59355,-8.73057 1.23204,-2.45415 -2.57883,2.37587 -7.39934,9.37815 -3.18259,4.62303 -5.14143,6.54917 -6.69098,6.57928 -1.20504,0.0234 -2.4691,-0.40743 -2.80902,-0.95743 -0.99531,-1.61044 -4.31433,-1.15006 -5.40693,0.75 -1.46681,2.5508 -0.21639,-5.1987 1.65387,-10.25 0.81457,-2.2 3.4339,-9.71134 5.82074,-16.69188 4.2479,-12.42333 7.9564,-20.80492 11.41901,-25.80812 1.01642,-1.46864 2.2105,-6.31379 2.89443,-11.74454 0.64033,-5.0845 1.60403,-10.4013 2.14156,-11.8151 0.53752,-1.41381 0.97732,-7.42355 0.97732,-13.35498 0,-10.14887 0.1648,-11.02979 2.79638,-14.94813 3.65044,-5.43537 5.02055,-6.31703 17.09054,-10.99769 5.59094,-2.16812 11.7672,-5.16384 13.72502,-6.65714 3.42276,-2.61067 3.54105,-2.91254 3.07559,-7.84876 -0.68562,-7.27098 -1.69557,-10.95492 -3.37001,-12.29259 -0.79788,-0.63742 -1.3891,-1.31242 -1.31381,-1.5 0.0753,-0.18759 -0.34475,-1.60787 -0.93341,-3.15617 -1.37727,-3.62248 -1.34934,-5.3096 0.1324,-8.00064 0.66149,-1.20134 1.25587,-4.43426 1.32085,-7.18426 0.14173,-5.99762 1.67729,-8.69967 6.4199,-11.29677 8.04118,-4.40344 18.56384,-3.41985 24.63114,2.30234 3.16405,2.98409 3.42541,3.69028 3.42541,9.25552 0,4.14578 0.42252,6.18707 1.35469,6.54478 1.05485,0.40478 1.16006,1.59047 0.47533,5.35698 -0.48365,2.66043 -0.94326,5.39965 -1.02136,6.08715 -0.0781,0.6875 -0.69092,1.25 -1.36183,1.25 -1.42913,0 -2.42929,4.07127 -3.11778,12.69123 l -0.4945,6.19124 4.83272,2.41517 c 2.658,1.32834 9.15103,4.07446 14.42896,6.1025 15.26961,5.86733 17.50186,9.33362 18.94873,29.42408 1.41071,19.58838 2.53764,24.75895 7.10848,32.61519 5.95522,10.23565 18.41646,44.3628 17.65067,48.33923 -0.177,0.91912 -1.37015,2.19377 -2.65142,2.83256 -1.38217,0.68908 -1.89534,1.42982 -1.26181,1.82136 0.58728,0.36296 1.97709,0.17329 3.08845,-0.4215 1.36312,-0.72952 2.02067,-0.74457 2.02067,-0.0462 0,0.56935 -0.50489,1.03518 -1.12197,1.03518 -2.72946,0 2.10029,4.34577 8.11886,7.30528 3.98312,1.95862 6.63202,3.91765 6.84613,5.06315 0.21658,1.15869 -0.0671,1.61109 -0.74689,1.19098 -0.60287,-0.37263 -1.09613,-0.40392 -1.09613,-0.0696 0,0.33434 1.9125,1.47602 4.25,2.53705 2.3375,1.06103 3.44015,1.93903 2.45034,1.95111 -0.98981,0.0121 -3.10382,-0.65245 -4.69779,-1.47672 l -2.89812,-1.49868 -0.36723,5.24868 -0.36724,5.24868 -0.18498,-5.59087 -0.18498,-5.59087 -5.57125,-1.24679 c -4.49758,-1.00652 -5.29238,-1.47079 -4.12423,-2.40913 1.21718,-0.97773 0.91084,-1.61476 -1.92876,-4.01083 -3.44881,-2.91013 -4.63852,-3.05713 -1.80433,-0.22294 1.00691,1.00691 1.14254,1.57143 0.37755,1.57143 -0.90249,0 -0.89004,0.3661 0.051,1.5 1.04007,1.2532 0.89568,1.5 -0.87756,1.5 -1.43426,0 -2.12244,0.62934 -2.12244,1.94098 0,1.06754 -0.51953,2.26207 -1.15451,2.65451 -0.68238,0.42174 -0.8843,0.27633 -0.49377,-0.35557 0.36341,-0.58801 0.1649,-1.23438 -0.44112,-1.43639 -0.60603,-0.20201 -1.22582,-2.66454 -1.37731,-5.4723 -0.32142,-5.957 -0.0883,-5.50071 -8.08936,-15.83123 -9.1459,-11.80862 -17.85278,-29.82835 -19.96429,-41.31799 -0.92806,-5.05011 -2.05851,-9.18201 -2.51208,-9.18201 -3.35138,0 -6.50903,10.24548 -5.71247,18.535 0.43834,4.56168 3.17302,19.78455 5.74228,31.965 0.58007,2.75 1.12109,11.75 1.20227,20 0.15594,15.84744 -1.20305,26.69304 -5.79425,46.24177 -1.32295,5.63298 -2.41151,13.05798 -2.41902,16.5 -0.008,3.44203 -0.30812,7.35913 -0.66801,8.70468 -0.60603,2.26579 -0.7106,2.30271 -1.41606,0.5 -0.64948,-1.65966 -0.77207,-1.54996 -0.83199,0.74453 -0.0387,1.48004 -0.52029,2.9691 -1.07029,3.30902 -1.81307,1.12054 -1.06202,-5.37132 2.04539,-17.67977 1.67496,-6.63454 2.86636,-12.24181 2.64755,-12.46062 -0.52675,-0.52675 -5.433,17.90519 -6.29264,23.64039 -1.20048,8.0091 -4.4003,11.22082 -4.4003,4.41667 0,-4.86642 -2.1781,-3.97459 -2.69923,1.1052 -0.39305,3.8314 -1.56808,5.4319 -4.01059,5.46282 -0.6654,0.008 -2.18714,-3.02219 -3.38165,-6.73469 -1.91845,-5.96253 -2.26823,-10.13321 -2.99816,-35.75 -0.45449,-15.95 -1.22487,-30.58559 -1.71197,-32.52353 -1.08104,-4.30101 -2.9754,-7.97647 -4.11114,-7.97647 -2.73955,0 -3.1368,3.71607 -3.43437,32.12623 -0.28099,26.82749 -0.49599,29.98029 -2.48027,36.37059 -2.59769,8.36572 -2.79461,17.33297 -0.56788,25.85884 1.48724,5.69444 1.47433,7.35336 -0.1763,22.65615 -1.35854,12.59487 -1.54503,17.9773 -0.78615,22.68953 0.54719,3.39775 0.73903,6.13349 0.4263,6.07943 -0.8567,-0.14809 -4.49842,1.47677 -5.06859,2.26151 -0.275,0.37849 -1.5125,1.00413 -2.75,1.39033 -1.95017,0.6086 -2.25,0.34329 -2.25,-1.99093 z m 5.42857,-11.87025 c -0.36782,-1.46551 -0.86162,-2.47171 -1.09733,-2.236 -0.23572,0.23572 -0.12763,1.62763 0.24019,3.09314 0.36782,1.46551 0.86162,2.47171 1.09733,2.236 0.23572,-0.23572 0.12763,-1.62763 -0.24019,-3.09314 z m -7.42857,-3.57143 c -0.67396,-2.80937 -1.4073,-4.92604 -1.62964,-4.70369 -0.22234,0.22234 0.13023,2.71977 0.78349,5.54984 0.65326,2.83008 1.38659,4.94674 1.62963,4.7037 0.24305,-0.24304 -0.10952,-2.74048 -0.78348,-5.54985 z m 3.57143,1.42857 c -0.36782,-1.46551 -0.89377,-2.43957 -1.16877,-2.16457 -0.275,0.275 -0.19905,1.69906 0.16877,3.16457 0.36782,1.46551 0.89376,2.43957 1.16876,2.16457 0.275,-0.275 0.19906,-1.69906 -0.16876,-3.16457 z m 3.09085,-18.67857 c -0.27741,-0.6875 -0.50438,-0.125 -0.50438,1.25 0,1.375 0.22697,1.9375 0.50438,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m -12.46044,-11 c -0.52941,-11.82525 -2.20184,-14.01602 -2.20184,-2.88426 0,6.83401 1.02349,12.13426 2.34316,12.13426 0.15004,0 0.0864,-4.1625 -0.14132,-9.25 z m 6.91522,-1.62312 c 0.0248,-7.85918 -0.86046,-12.16011 -2.09263,-10.1664 -0.74388,1.20362 -0.51293,9.61403 0.37179,13.53952 0.24792,1.1 0.48519,2.6375 0.52727,3.41667 0.0421,0.77916 0.32279,1.17038 0.6238,0.86937 0.30101,-0.30101 0.55741,-3.74763 0.56977,-7.65916 z m 8.97913,-3.84812 c -0.87653,-1.50586 -1.04004,-1.30572 -1.06578,1.30457 -0.0167,1.69584 0.30709,3.42606 0.71959,3.84494 1.19384,1.2123 1.48948,-3.18536 0.34619,-5.14951 z m -2.02188,-12.52876 c 0.0409,-0.6875 0.27227,-2.32291 0.51421,-3.63424 0.35734,-1.93674 0.18071,-2.16913 -0.94105,-1.23815 -1.12657,0.93497 -1.48229,0.3906 -1.93104,-2.95512 -0.30255,-2.25567 -0.089,-5.4239 0.47456,-7.04052 1.18688,-3.40468 -0.61716,-15.13121 -2.82076,-18.33532 -1.20102,-1.74633 -1.33138,-1.42003 -1.23002,3.07883 0.0623,2.7677 -0.43195,6.05112 -1.09845,7.29649 -1.61002,3.00834 -0.51518,6.95004 2.23816,8.05794 1.22104,0.49132 1.65758,0.92184 0.97008,0.9567 -0.75444,0.0383 -1.25,1.47701 -1.25,3.62913 0,1.96116 -0.47145,4.44665 -1.04766,5.52332 -0.96055,1.7948 -1.22851,1.83091 -3.22251,0.43426 -2.5218,-1.76634 -3.72983,-1.93583 -3.72983,-0.52332 0,0.55 0.49754,1 1.10564,1 0.60811,0 2.44263,1.125 4.07673,2.5 3.13018,2.63388 7.76602,3.36814 7.89194,1.25 z m -7.79493,-6.78966 c -0.29336,-1.12182 -0.75683,-1.81623 -1.02992,-1.54313 -0.541,0.54099 0.41459,3.58279 1.12554,3.58279 0.24077,0 0.19774,-0.91785 -0.0956,-2.03966 z m -5.19451,-3.06516 c -0.88096,-2.20233 -0.9632,-2.22744 -1.02148,-0.31185 -0.0349,1.14584 0.23661,2.38334 0.60328,2.75 1.19437,1.19438 1.39751,0.0101 0.4182,-2.43815 z m 2.41443,-8.05073 c -1.65811,-6.55687 -6.58803,-20.08906 -7.12354,-19.55354 -0.16686,0.16686 1.46703,5.68217 3.63088,12.25624 2.16384,6.57407 3.98308,12.85285 4.04276,13.95285 0.0597,1.1 0.3213,1.48 0.5814,0.84445 0.2601,-0.63556 -0.24908,-4.01056 -1.1315,-7.5 z m 41.5082,2.14154 c 1.35638,-2.53442 -0.15867,-12.98599 -1.88244,-12.98599 -1.13192,0 -4.12506,7.35469 -4.12506,10.13602 0,4.58542 4.05036,6.50692 6.0075,2.84997 z m 10.67561,-25.17349 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 0.97917,-5.0625 c -0.27741,-0.6875 -0.50439,-0.125 -0.50439,1.25 0,1.375 0.22698,1.9375 0.50439,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m -49.66228,-2.75 c 0,-0.55 -0.19844,-1 -0.44098,-1 -0.24254,0 -0.7191,0.45 -1.05902,1 -0.33992,0.55 -0.14148,1 0.44098,1 0.58246,0 1.05902,-0.45 1.05902,-1 z m 0.11515,-7.25 c 0.2577,-7.27308 -0.73867,-12.0403 -2.40203,-11.49271 -0.66722,0.21965 -1.36648,1.44957 -1.55391,2.73315 -0.271,1.8558 -0.54332,2.04457 -1.32966,0.92167 -0.69451,-0.99177 -0.84903,-0.17974 -0.5191,2.72799 0.424,3.73681 3.0051,8.06163 4.93955,8.27657 0.4125,0.0458 0.80182,-1.37917 0.86515,-3.16667 z m 39.72609,2.5 c -0.0873,-0.4125 0.0981,-1.425 0.41193,-2.25 1.99803,-5.25166 2.73225,-8.85718 2.62674,-12.89922 l -0.12009,-4.60078 -0.93265,4.5 c -0.51296,2.475 -1.24641,6.26963 -1.62991,8.43251 -0.65473,3.69266 -0.80026,3.82928 -2.38587,2.23997 -1.58609,-1.5898 -1.67941,-1.57053 -1.53719,0.31748 0.0833,1.10552 0.49152,2.01004 0.90722,2.01004 0.4157,0 0.49679,0.675 0.18021,1.5 -0.36449,0.94984 0.0138,1.5 1.03138,1.5 0.88385,0 1.53555,-0.3375 1.44823,-0.75 z m -4.84124,-24.42856 c 0,-1.00179 0.41968,-1.82144 0.93261,-1.82144 0.87236,0 2.41829,-3.25373 2.6132,-5.5 0.20942,-2.41349 1.75144,-8.08713 2.44608,-9 0.41852,-0.55 0.39818,-1.9 -0.0452,-3 -0.77744,-1.92881 -0.80863,-1.9228 -0.87641,0.16896 -0.0387,1.19293 -0.71878,3.44293 -1.51137,5 -3.16075,6.20936 -5.4342,12.16798 -6.06743,15.90248 -0.36637,2.16071 -0.86788,4.82856 -1.11447,5.92856 -0.24659,1.1 0.4677,0.23215 1.58732,-1.92856 1.11961,-2.16071 2.03566,-4.74821 2.03566,-5.75 z m -8.91513,5.07374 c -0.88096,-2.20233 -0.9632,-2.22744 -1.02148,-0.31185 -0.0349,1.14584 0.23661,2.38334 0.60328,2.75 1.19437,1.19438 1.39751,0.0101 0.4182,-2.43815 z m -21.48672,-2.6733 c -1.47503,-0.36345 -3.84432,-7.98935 -2.96089,-9.53005 0.37586,-0.6555 0.31824,-0.86132 -0.12806,-0.45737 -1.40031,1.26744 -3.43326,-2.50784 -2.39506,-4.44774 0.7507,-1.40269 0.60373,-1.61569 -0.75505,-1.09428 -1.07417,0.4122 -1.44473,0.25515 -1.01989,-0.43226 0.78527,-1.27059 -0.18548,-4.26018 -1.38332,-4.26018 -1.63938,0 0.41638,7.65699 4.29571,16 3.21465,6.91353 4.09445,8.12671 4.71382,6.5 0.47145,-1.23825 0.33158,-2.10593 -0.36726,-2.27812 z m 98.13102,-8.82605 c -0.3323,-0.33229 -1.1948,-0.36781 -1.91667,-0.0789 -0.79773,0.31922 -0.56078,0.55618 0.60417,0.60416 1.05416,0.0434 1.64479,-0.19293 1.3125,-0.52522 z m -52.91926,-8.59962 c -1.29688,-2.27336 -1.31299,-2.26433 -1.61982,0.90758 -0.17045,1.76209 0.27955,4.23709 1,5.5 1.29688,2.27336 1.31299,2.26433 1.61982,-0.90758 0.17045,-1.76209 -0.27955,-4.23709 -1,-5.5 z m -63.02605,3.10109 c 0.089,-3.12958 -0.96657,-3.26009 -1.41929,-0.17549 -0.22326,1.52113 0.33538,3.27819 1.04227,3.27819 0.15884,0 0.3285,-1.39622 0.37702,-3.1027 z m 19.44136,1.15337 c -0.15112,-0.65963 0.18956,-0.91236 0.75707,-0.56162 0.56751,0.35074 1.31173,-0.0917 1.65381,-0.98314 0.34209,-0.89147 1.23892,-1.38411 1.99294,-1.09477 4.04688,1.55294 -1.26118,-4.24769 -7.62904,-8.33699 -3.23596,-2.07806 -3.3114,-2.08713 -1,-0.1202 1.375,1.17008 3.71107,3.09484 5.19127,4.27725 2.74676,2.19415 2.92229,4.13334 0.28245,3.12034 -0.80423,-0.30861 -1.1738,-1.07646 -0.82127,-1.70632 0.4366,-0.7801 0.29305,-0.82639 -0.45027,-0.14522 -1.70466,1.56216 -2.5531,7.79306 -0.98293,7.21858 0.70441,-0.25772 1.1571,-1.00828 1.00597,-1.66791 z m 15.83936,-0.17135 c 0.62423,-1.16637 0.71389,-1.86044 0.19924,-1.54237 -0.51464,0.31807 -2.58454,0.68934 -4.59977,0.82506 -3.66964,0.24714 -4.75943,1.22933 -2.41405,2.17571 2.88919,1.16581 5.73624,0.55651 6.81458,-1.4584 z m 6.41062,-2.72753 c -0.96631,-0.90849 -1.53793,-1.20179 -1.27026,-0.65179 0.26767,0.55 0.83345,1.9 1.25729,3 0.54304,1.40935 0.91818,1.60184 1.27027,0.65179 0.2748,-0.74152 -0.29098,-2.09152 -1.2573,-3 z m 58.45816,-2.5715 c 1.11033,-1.33786 0.55015,-1.47202 -2.74238,-0.6568 -0.38292,0.0948 0.8058,2.07651 1.24559,2.07651 0.1752,0 0.84875,-0.63887 1.49679,-1.41971 z m -83.43336,-1.58029 c 0.33992,-0.55 0.14148,-1 -0.44098,-1 -0.58246,0 -1.05902,0.45 -1.05902,1 0,0.55 0.19844,1 0.44098,1 0.24254,0 0.7191,-0.45 1.05902,-1 z m 28.5,-2.57037 c 0,-0.275 -0.9,-0.0183 -2,0.57037 -1.1,0.5887 -2,1.29537 -2,1.57037 0,0.275 0.9,0.0183 2,-0.57037 1.1,-0.5887 2,-1.29537 2,-1.57037 z m -35.63837,0.0704 c -0.31659,-0.825 -0.97746,-1.5 -1.46862,-1.5 -0.49116,0 -0.89301,0.675 -0.89301,1.5 0,0.825 0.66088,1.5 1.46862,1.5 0.89459,0 1.24363,-0.58629 0.89301,-1.5 z m 40.53003,-2.55827 c 3.46308,-2.88399 2.1728,-3.21504 -1.39166,-0.35706 -1.65,1.32297 -2.55,2.39266 -2,2.37709 0.55,-0.0156 2.07625,-0.92458 3.39166,-2.02003 z m -85.76411,-1.69173 c 1.24388,-1.58606 1.20851,-1.62143 -0.37755,-0.37756 -0.9625,0.75485 -1.75,1.54235 -1.75,1.75 0,0.82304 0.82119,0.29331 2.12755,-1.37244 z m 46.66878,-2.20452 c -0.67134,-1.07499 -1.41428,-1.76086 -1.65098,-1.52417 -0.42859,0.4286 1.75074,3.47869 2.48557,3.47869 0.21231,0 -0.16325,-0.87953 -0.83459,-1.95452 z m 36.20236,-2.80231 c 1.37427,-2.05874 3.03513,-4.31117 3.69079,-5.00539 0.81132,-0.85904 1.0068,-3.47258 0.61197,-8.18209 -0.46626,-5.56158 -0.26575,-7.23425 1.02152,-8.52152 1.74736,-1.74736 3.96078,-8.58375 3.06816,-9.47637 -0.30506,-0.30506 -1.12997,0.23214 -1.83313,1.19377 -1.89528,2.59195 -3.56008,2.12129 -3.54269,-1.00157 0.0116,-2.08643 0.2398,-2.39504 0.94563,-1.27896 0.51167,0.80907 1.06728,1.25907 1.23469,1 0.1674,-0.25907 1.08136,-1.9517 2.03102,-3.76139 1.47475,-2.81033 1.51497,-3.37157 0.27569,-3.84712 -1.84432,-0.70774 -4.86806,2.23671 -3.90205,3.79974 0.50246,0.81299 0.17097,0.96393 -1.07062,0.48749 -1.59556,-0.61228 -1.7376,-0.23665 -1.2592,3.33006 0.29657,2.2111 0.17943,4.02018 -0.26032,4.02018 -0.43974,0 -0.44377,1.5774 -0.009,3.50533 0.44071,1.95403 0.3941,3.75036 -0.10531,4.05901 -0.49274,0.30453 -0.86036,1.08964 -0.81694,1.74468 0.0565,0.85244 0.22291,0.83389 0.58541,-0.0652 0.96567,-2.39526 1.97796,-0.32723 1.69128,3.45516 -0.44094,5.81769 -1.2613,8.30107 -2.74218,8.30107 -0.81964,0 -1.73613,1.96077 -2.33706,5 -0.54374,2.75 -0.71587,4.99693 -0.38251,4.99317 0.33336,-0.004 1.73052,-1.69126 3.1048,-3.75 z m 47.7914,-3.4508 c -1.25955,-1.90688 -3.30259,-3.94792 -4.54009,-4.53563 -3.07188,-1.4589 -2.87063,-1.04202 1.75,3.62502 2.2,2.2221 4.03553,4.62024 4.07895,5.32921 0.0506,0.82667 0.24435,0.8872 0.54009,0.16875 0.25363,-0.61615 -0.5694,-2.68046 -1.82895,-4.58735 z m -77.76197,-1.38051 c -0.53983,-2.70152 -1.25325,-5.8623 -1.58538,-7.02395 -0.82485,-2.88497 2.11938,-3.90484 5.28493,-1.83069 2.74873,1.80103 2.76143,1.79656 3.71549,-1.30722 0.41804,-1.36 0.2694,-2.25 -0.37577,-2.25 -0.58707,0 -1.06739,-0.675 -1.06739,-1.5 0,-0.825 -0.6382,-1.5 -1.41821,-1.5 -0.78002,0 -2.24252,-0.26689 -3.25,-0.59309 -1.41655,-0.45864 -1.31154,-0.16661 0.46326,1.28829 2.41439,1.9792 2.0605,3.3048 -0.88226,3.3048 -2.69438,0 -3.4932,-6.43325 -2.91801,-23.5 0.0371,-1.1 0.10374,-3.29234 0.14814,-4.87187 0.0444,-1.57953 -0.43484,-3.19051 -1.06497,-3.57995 -0.63013,-0.38944 -0.8573,-1.4596 -0.50483,-2.37813 0.59124,-1.54076 1.9717,-2.05773 5.17688,-1.9387 0.6875,0.0255 1.25,-0.40172 1.25,-0.94945 0,-0.54983 0.78382,-0.68074 1.75,-0.29227 0.9625,0.38699 2.40077,0.81197 3.19616,0.94442 0.79539,0.13244 1.77542,0.87646 2.17785,1.65338 1.10668,2.13652 2.20798,5.33494 2.07764,6.0339 -0.91738,4.91928 -0.91957,5.87867 -0.0135,5.87867 0.62618,0 0.47573,0.87356 -0.36977,2.14695 -1.09343,1.64678 -1.24363,3.65782 -0.64475,8.63235 0.42942,3.56697 0.50836,6.92615 0.17543,7.46485 -0.33293,0.5387 0.0148,1.42159 0.77278,1.96199 1.08219,0.77154 1.01621,0.86696 -0.30728,0.44437 -2.28936,-0.73101 -2.75339,1.15344 -1.31729,5.34949 2.60459,7.61015 2.69427,9 0.58075,9 -1.07801,0 -2.23815,-0.45 -2.57807,-1 -0.33991,-0.55 -1.34147,-1 -2.22568,-1 -0.88421,0 -1.27015,0.3375 -0.85765,0.75 0.4125,0.4125 1.06106,0.75 1.44125,0.75 0.65783,0 2.27613,1.24006 5.79878,4.44342 3.12015,2.83734 3.92058,-0.6787 3.66142,-16.08347 -0.13288,-7.89797 -0.25881,-14.66445 -0.27986,-15.03663 -0.021,-0.37217 -0.60075,-0.86906 -1.28825,-1.1042 -0.6875,-0.23513 -0.21391,-0.25364 1.05242,-0.0411 2.0777,0.34869 2.18995,0.17624 1.15,-1.76691 -0.63384,-1.18433 -1.15242,-3.67664 -1.15242,-5.53848 0,-2.10481 -0.62407,-3.73558 -1.65001,-4.31164 -1.51569,-0.85107 -1.50754,-0.98136 0.1,-1.60072 0.9625,-0.37083 1.75,-1.47723 1.75,-2.45867 0,-1.14992 1.42952,-2.35641 4.02024,-3.39301 5.09588,-2.03897 5.9639,-2.01867 6.04744,0.14142 0.0526,1.36147 0.3161,1.23366 1.18659,-0.57567 0.84531,-1.75702 0.82299,-2.50855 -0.0913,-3.07362 -0.89383,-0.55243 -0.74654,-1.16757 0.56342,-2.35307 0.97549,-0.88282 2.21238,-1.60344 2.74863,-1.60138 0.53625,0.002 1.16016,-0.55172 1.38645,-1.23061 0.25744,-0.77231 -0.17373,-1.00979 -1.15188,-0.63444 -1.8073,0.69352 -4.19195,-1.69169 -3.23664,-3.23741 0.39789,-0.6438 -0.62296,-1.04967 -2.66391,-1.05911 -4.82039,-0.0223 -7.37719,-1.91561 -2.80902,-2.08007 1.925,-0.0693 4.56306,-0.0374 5.86235,0.071 1.38502,0.11549 2.10226,-0.22384 1.73368,-0.82021 -0.34576,-0.55945 -0.20241,-1.28062 0.31856,-1.6026 0.52098,-0.32197 1.22988,-0.12807 1.57533,0.4309 0.34546,0.55897 1.38907,1.00942 2.3191,1.001 1.4671,-0.0133 1.49238,-0.15423 0.19098,-1.06451 -1.1338,-0.79307 -0.58451,-0.96042 2.25,-0.68549 2.0625,0.20004 3.75,0.004 3.75,-0.43549 0,-0.43956 -0.47656,-0.7992 -1.05902,-0.7992 -0.58246,0 -0.80012,-0.41891 -0.48369,-0.9309 1.05579,-1.7083 -1.46794,-2.75128 -7.12396,-2.9441 -4.33028,-0.14762 -3.90894,-1.21397 0.52954,-1.34016 2.95828,-0.0841 3.50915,-1.78484 0.57811,-1.78484 -0.79254,0 -1.44098,-0.36026 -1.44098,-0.80059 0,-0.44032 -2.02302,-2.07932 -4.49559,-3.64222 -4.29432,-2.71441 -9.05131,-7.1091 -5.50441,-5.08518 0.825,0.47076 2.7375,1.71278 4.25,2.76005 1.5125,1.04727 2.75,1.57874 2.75,1.18105 0,-0.3977 0.87164,0.0657 1.93699,1.02986 1.06534,0.96413 2.3769,1.48107 2.91459,1.14876 0.53768,-0.3323 1.18478,-0.0389 1.43801,0.65204 0.36838,1.00512 0.72526,1.00637 1.78541,0.006 1.09118,-1.02938 1.025,-1.24997 -0.375,-1.24997 -1.51875,0 -2.14679,-1.10612 -1.82837,-3.22014 0.19428,-1.28991 -3.69415,-2.87605 -4.36996,-1.78256 -0.34515,0.55846 0.40329,1.00948 1.68931,1.01801 1.74229,0.0115 1.96311,0.23429 0.8997,0.90748 -0.77512,0.49069 -1.96828,0.67767 -2.65145,0.41551 -1.47969,-0.5678 -2.64918,-4.3383 -1.34561,-4.3383 1.97703,0 0.74318,-1.82496 -2.00289,-2.96242 -2.26156,-0.93677 -3.43041,-0.93846 -5.25,-0.008 l -2.34073,1.19745 2.24584,-2.33177 c 2.16858,-2.25155 2.34374,-2.27395 5.09134,-0.6509 1.56502,0.92448 4.69869,1.97721 6.96371,2.3394 2.26502,0.36219 4.02392,1.14141 3.90866,1.7316 -0.11525,0.59018 1.14045,1.38234 2.79045,1.76034 1.74083,0.39882 2.19553,0.73694 1.08333,0.8056 -1.05416,0.0651 -1.65416,0.38081 -1.33333,0.70165 0.32083,0.32083 0.73333,0.46979 0.91667,0.33102 0.86036,-0.65126 4.83333,2.32505 4.83333,3.62081 0,0.80565 0.1882,1.46482 0.41821,1.46482 0.23002,0 1.24252,0.26174 2.25,0.58164 1.62642,0.51642 1.60756,0.39948 -0.16821,-1.04305 -1.1,-0.89358 -1.82212,-1.87743 -1.60472,-2.18635 0.91845,-1.30505 -6.96872,-10.69184 -10.96946,-13.05513 -2.17195,-1.283 -2.59198,-1.99444 -1.76547,-2.99032 0.5965,-0.71874 2.181,-1.30679 3.52111,-1.30679 1.36974,0 2.16597,-0.43784 1.81854,-1 -1.12669,-1.82302 -5.7629,-1.03686 -9.15833,1.55297 -1.84092,1.40413 -4.62573,2.9987 -6.18848,3.54347 -1.56274,0.54478 -3.82499,2.32094 -5.02721,3.94703 -2.68185,3.62739 -4.52891,3.84466 -3.88123,0.45653 0.31028,-1.62309 0.0248,-2.5 -0.81387,-2.5 -0.71048,0 -1.43558,1.0079 -1.61133,2.23978 -0.57429,4.02529 -3.46378,3.27172 -4.95841,-1.29314 -1.034,-3.15805 -2.15172,-4.48478 -4.65057,-5.52022 -1.80918,-0.74967 -3.02013,-0.92729 -2.69098,-0.39472 0.32914,0.53256 -0.10311,0.9683 -0.96057,0.9683 -0.85746,0 -1.44652,-0.54427 -1.30902,-1.20949 0.1375,-0.66521 -0.65,-1.33133 -1.75,-1.48025 -1.1,-0.14893 -3.72303,-0.51917 -5.82895,-0.82277 -2.61407,-0.37686 -3.61631,-0.20793 -3.15875,0.53241 0.41923,0.67832 -0.20654,1.00664 -1.67105,0.87673 -4.16615,-0.36955 -5.84125,0.0733 -5.84125,1.54435 0,2.12803 1.92574,2.95442 6.28524,2.69719 l 3.88205,-0.22906 -3.00177,3.79545 c -4.68798,5.9275 -9.2907,14.29544 -7.8631,14.29544 1.34452,0 14.59029,-10.23088 15.88543,-12.26971 0.42984,-0.67666 0.78841,-0.86215 0.79684,-0.4122 0.008,0.44996 1.47781,-0.15597 3.26531,-1.3465 l 3.25,-2.16459 -3.5,3.23757 c -8.03287,7.43057 -10.69302,9.68755 -14.29773,12.13077 -3.20085,2.16949 -3.51819,2.68132 -2.01908,3.25658 0.97826,0.3754 1.92882,0.23207 2.11234,-0.31851 0.18353,-0.55058 0.97961,-0.75319 1.76908,-0.45024 0.78946,0.30294 1.43539,0.0261 1.43539,-0.6152 0,-0.6413 0.45834,-0.88273 1.01854,-0.53651 1.05359,0.65115 16.52729,-8.00502 17.77643,-9.94435 0.46243,-0.71792 1.45905,-0.32343 2.89629,1.14645 1.20519,1.23256 1.76769,2.50279 1.25,2.82274 -0.51769,0.31995 -0.94126,0.091 -0.94126,-0.50867 0,-2.70193 -3.37513,-1.86125 -9.19855,2.29119 -3.4658,2.47131 -9.00145,5.4205 -12.30145,6.55375 -6.11772,2.10087 -5.97282,2.46087 0.86124,2.13982 2.55634,-0.12009 3.63473,0.18511 3.19098,0.90311 -0.36864,0.59648 -0.22669,1.0845 0.31544,1.0845 0.54213,0 1.14939,-0.7875 1.34946,-1.75 0.29854,-1.43625 0.47259,-1.35274 0.97076,0.46581 0.33385,1.2187 0.31565,2.17791 -0.0404,2.13158 -2.23318,-0.29054 -4.14744,0.31837 -4.14744,1.31928 0,0.64166 0.28411,0.88255 0.63136,0.5353 0.34725,-0.34725 1.57238,0.0277 2.72251,0.83333 2.3725,1.66177 7.28847,1.84768 13.11806,0.4961 2.18455,-0.50648 4.13887,-0.75393 4.34293,-0.54988 0.95509,0.9551 -6.15932,3.51848 -9.7652,3.51848 -2.22731,0 -4.04966,0.45 -4.04966,1 0,0.55 -0.60551,1 -1.34557,1 -1.3957,0 -1.6787,4.30907 -0.36901,5.61875 0.95435,0.95436 0.92149,5.62704 -0.0354,5.03623 -0.4125,-0.25469 -0.8149,0.61876 -0.89422,1.94098 -0.0793,1.32222 0.30633,2.40404 0.85699,2.40404 0.55066,0 0.74218,0.675 0.4256,1.5 -0.31658,0.825 -0.0272,1.53553 0.64301,1.57895 0.67024,0.0434 0.76546,0.26947 0.2116,0.50234 -0.55387,0.23286 -0.85934,2.33484 -0.67884,4.67105 0.18049,2.33621 -0.12532,5.37266 -0.6796,6.74766 -0.901,2.23514 -1.01449,2.27928 -1.07116,0.41667 -0.0682,-2.24053 -2.73005,-2.9718 -2.73005,-0.75 0,0.73333 0.33287,1.33333 0.73971,1.33333 0.40685,0 0.50568,0.89494 0.21965,1.98875 -0.28604,1.09382 -0.84391,1.78861 -1.23972,1.54399 -0.3958,-0.24462 -0.71964,0.21044 -0.71964,1.01125 0,2.11224 1.3218,1.78646 3.10996,-0.7665 0.85619,-1.22237 1.55671,-1.69893 1.55671,-1.05901 0,0.63992 -0.45734,1.44614 -1.01631,1.7916 -0.55897,0.34546 -0.73109,1.08961 -0.38249,1.65366 0.3486,0.56405 0.70844,5.14546 0.79964,10.1809 0.16281,8.98916 0.96822,11.88156 4.21166,15.125 2.28449,2.2845 2.53784,1.55829 1.41562,-4.05778 z m 1.47188,-67.41186 c 0.33992,-0.55 0.81648,-1 1.05902,-1 0.24254,0 0.44098,0.45 0.44098,1 0,0.55 -0.47656,1 -1.05902,1 -0.58246,0 -0.7809,-0.45 -0.44098,-1 z m -12.5,-9.03139 c 0,-0.53273 0.675,-0.96861 1.5,-0.96861 0.825,0 1.5,0.17685 1.5,0.39301 0,0.21616 -0.675,0.65203 -1.5,0.96862 -0.825,0.31658 -1.5,0.13972 -1.5,-0.39302 z m 15.5427,-10.89951 c -0.31643,-0.512 -0.11798,-1.21355 0.44099,-1.55902 0.55897,-0.34546 1.01631,0.0734 1.01631,0.9309 0,1.75653 -0.60005,2.01516 -1.4573,0.62812 z m 21.4573,-3.88553 c 0,-0.4744 1.125,-1.37512 2.5,-2.00162 1.375,-0.62649 2.5,-0.97547 2.5,-0.77552 0,0.19995 -1.125,1.10068 -2.5,2.00161 -1.375,0.90094 -2.5,1.24992 -2.5,0.77553 z m -35,-3.18357 c -0.90129,-0.58246 -1.02463,-0.97549 -0.30902,-0.98469 0.65504,-0.008 1.4691,0.43469 1.80902,0.98469 0.7673,1.24152 0.42112,1.24152 -1.5,0 z m 34.22776,94.6435 c 2.22001,-2.75419 2.22792,-3.91365 0.0222,-3.25838 -0.9625,0.28595 -2.97844,0.81278 -4.47987,1.17075 -2.23267,0.5323 -2.55781,0.97234 -1.78518,2.416 0.51957,0.97084 0.62302,2.10523 0.22987,2.52087 -0.39315,0.41565 0.41018,0.42689 1.78518,0.025 1.375,-0.4019 3.27749,-1.6953 4.22776,-2.87423 z m -71.17132,-0.8935 c 2.11267,-2.53248 2.41902,-3.75 0.94356,-3.75 -0.55,0 -1,0.52707 -1,1.17126 0,0.64419 -0.74474,1.99419 -1.65499,3 -0.91024,1.00581 -1.31987,1.82874 -0.91029,1.82874 0.40958,0 1.58935,-1.0125 2.62172,-2.25 z m 89.26594,-5.05194 c 0.36009,-0.99106 0.2747,-1.56708 -0.18976,-1.28002 -0.46446,0.28705 -2.0989,0.99884 -3.63209,1.58176 -2.7253,1.03616 -2.74529,1.10038 -0.89408,2.87222 1.71407,1.64058 1.99628,1.66145 2.97739,0.22018 0.59611,-0.87571 1.37845,-2.40307 1.73854,-3.39414 z m -84.82238,0.30194 c -0.33992,-0.55 0.0391,-1 0.84221,-1 1.4754,0 6.14242,-6.8487 5.26496,-7.72617 -0.80854,-0.80854 -2.60717,0.76796 -2.60717,2.28519 0,0.79254 -0.43588,1.44098 -0.96861,1.44098 -0.53274,0 -0.71585,-0.7875 -0.40692,-1.75 0.36782,-1.14595 -0.15309,-0.88707 -1.50915,0.75 -2.08771,2.52036 -2.67855,5.10344 -1.44865,6.33333 1.00826,1.00826 1.5328,0.79844 0.83333,-0.33333 z m 30.5,-5.44098 c 0,-0.24254 -0.45,-0.7191 -1,-1.05902 -0.55,-0.33992 -1,-0.14148 -1,0.44098 0,0.58246 0.45,1.05902 1,1.05902 0.55,0 1,-0.19844 1,-0.44098 z m 38.5,-2.55902 c -0.33992,-0.55 -1.82898,-0.94676 -3.30902,-0.88169 l -2.69098,0.11832 3,0.76337 c 1.65,0.41985 3.13906,0.81661 3.30902,0.88169 0.16996,0.0651 0.0309,-0.33169 -0.30902,-0.88169 z m -57.34817,-5.5 c 0.19149,-1.65 0.91067,-3.59464 1.59817,-4.32143 0.6875,-0.72678 1.25,-2.01414 1.25,-2.86078 0,-1.12185 -0.49762,-0.92483 -1.83473,0.72643 l -1.83472,2.26579 -1.65045,-2.35634 c -1.54709,-2.20878 -1.53345,-2.48463 0.21776,-4.405 1.02751,-1.12677 2.65309,-3.62367 3.6124,-5.54867 l 1.7442,-3.5 -2.61004,2.40817 c -1.43553,1.32449 -2.8731,3.23699 -3.19462,4.25 -0.70182,2.21122 -2.4498,2.45513 -2.4498,0.34183 0,-1.80341 -1.9495,-2.03349 -2.11832,-0.25 -0.0651,0.6875 -0.47433,-0.1 -0.90946,-1.75 -0.74709,-2.83291 -0.78703,-2.77721 -0.71716,1 0.0407,2.2 -0.25536,5.0125 -0.65792,6.25 -0.78902,2.42556 0.2871,2.96576 2.1657,1.08716 0.88378,-0.88379 1.37969,-0.58382 2.06647,1.25 1.97617,5.27669 2.3757,7.15758 1.39113,6.54908 -0.5466,-0.33782 -1.60731,0.16833 -2.35713,1.12477 -1.22134,1.5579 -1.18834,1.6021 0.31695,0.42442 1.4417,-1.12792 1.84929,-0.99873 2.87076,0.90991 1.39947,2.61493 2.53254,1.30116 3.10081,-3.59534 z m -18.15183,3 c 0,-0.825 -0.17686,-1.5 -0.39301,-1.5 -0.21616,0 -0.65203,0.675 -0.96862,1.5 -0.31658,0.825 -0.13972,1.5 0.39302,1.5 0.53273,0 0.96861,-0.675 0.96861,-1.5 z m 110.15895,-6.32777 1.04749,-3.32777 1.93573,2.07777 c 1.06466,1.14277 2.05942,2.07777 2.2106,2.07777 0.85765,0 -0.83534,-12.69648 -1.985,-14.88638 -1.29531,-2.46732 -1.34575,-2.33375 -0.90119,2.38638 0.25901,2.75 0.22699,4.2125 -0.0711,3.25 -0.29814,-0.9625 -1.36225,-1.75 -2.36469,-1.75 -1.00243,0 -3.6897,-2.1375 -5.9717,-4.75 l -4.14909,-4.75 1.99723,4.11647 c 1.09847,2.26406 3.16896,5.509 4.60109,7.21098 2.1436,2.54754 2.41097,3.45493 1.51261,5.13353 -0.60019,1.12146 -0.79531,2.03902 -0.43362,2.03902 0.3617,0 0.1213,0.64623 -0.53421,1.43608 -0.88467,1.06596 -0.90716,1.96801 -0.0873,3.5 0.60752,1.13515 0.83719,2.06392 0.51038,2.06392 -0.32681,0 -0.2307,0.5625 0.21358,1.25 0.54713,0.84665 0.90683,0.44331 1.11475,-1.25 0.16883,-1.375 0.77834,-3.9975 1.35445,-5.82777 z m -4.87799,-1.70874 c -2.10198,-1.537 -2.54767,-1.32209 -1.72174,0.83024 0.33398,0.87033 1.25606,1.33065 2.05293,1.02486 1.19353,-0.458 1.13559,-0.78256 -0.33119,-1.8551 z m 14.61472,-3.65842 c -0.83735,-1.5646 -1.37421,-1.86949 -1.67944,-0.95379 -0.24676,0.74027 0.16614,2.49641 0.91756,3.90253 1.01962,1.90802 1.44566,2.14998 1.67943,0.95379 0.17228,-0.88153 -0.24062,-2.63767 -0.91755,-3.90253 z m -51.21257,-0.99257 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m -18.68311,-0.8125 c 0,-0.55 -0.47656,-1 -1.05902,-1 -0.58246,0 -0.7809,0.45 -0.44098,1 0.33992,0.55 0.81648,1 1.05902,1 0.24254,0 0.44098,-0.45 0.44098,-1 z m -8.43026,-9.20389 c -1.33895,-1.91162 -1.56974,-1.97821 -1.56974,-0.45287 0,0.98353 0.54281,2.77116 1.20626,3.9725 1.04405,1.89055 1.25513,1.95145 1.56973,0.45287 0.19992,-0.95226 -0.34289,-2.73989 -1.20625,-3.9725 z m 41.06181,0.5021 c -0.30348,-0.30348 0.11386,-1.83899 0.92742,-3.41225 l 1.47921,-2.86048 -2.51909,1.14777 c -2.58284,1.17682 -2.9659,2.55552 -1.85899,6.69076 0.55599,2.0771 0.74751,2.15902 1.57801,0.675 0.51987,-0.92896 0.69692,-1.93732 0.39344,-2.2408 z m -6.63155,-0.1898 c 0,-2.78116 -4.99176,-3.83734 -6.76027,-1.43037 -1.19739,1.62966 -1.04322,1.88863 1.46079,2.45365 4.68966,1.05819 5.29948,0.94044 5.29948,-1.02328 z m -18.47301,-1.06474 c -0.32507,-0.52598 -1.25163,-0.70283 -2.05901,-0.39301 -0.80739,0.30983 -1.46798,0.0652 -1.46798,-0.54367 0,-0.60885 0.675,-1.10699 1.5,-1.10699 0.825,0 1.5,-0.45 1.5,-1 0,-1.51733 -3.2751,-1.19604 -5.79422,0.56842 -3.0286,2.12132 -1.91663,3.43158 2.91225,3.43158 2.29024,0 3.74737,-0.40877 3.40896,-0.95633 z m 23.47301,-5.04367 c 0,-0.55 -0.47656,-1 -1.05902,-1 -0.58246,0 -0.7809,0.45 -0.44098,1 0.33992,0.55 0.81648,1 1.05902,1 0.24254,0 0.44098,-0.45 0.44098,-1 z m 2.52646,-5.80687 c -0.30789,-0.30789 -1.11479,-6.4e-4 -1.79313,0.68278 -0.98026,0.98762 -0.8654,1.10248 0.5598,0.5598 0.98622,-0.37553 1.54122,-0.93469 1.23333,-1.24258 z m 8.47354,-16.80012 c 0,-0.21616 -0.675,-0.39301 -1.5,-0.39301 -0.825,0 -1.5,0.43588 -1.5,0.96861 0,0.53274 0.675,0.7096 1.5,0.39302 0.825,-0.31659 1.5,-0.75246 1.5,-0.96862 z m -55,-0.39301 c 0,-0.55 -0.7875,-0.99311 -1.75,-0.98469 -1.49555,0.0131 -1.5319,0.15626 -0.25,0.98469 1.88721,1.21961 2,1.21961 2,0 z m 63.5,-24 c -0.33992,-0.55 -1.06803,-1 -1.61803,-1 -0.55,0 -0.72189,0.45 -0.38197,1 0.33992,0.55 1.06803,1 1.61803,1 0.55,0 0.72189,-0.45 0.38197,-1 z m -2.06704,-3.10847 c -0.73226,-1.18483 -9.43296,-1.15241 -9.43296,0.0351 0,1.20875 2.69227,1.70062 6.74198,1.23174 1.78309,-0.20645 2.99403,-0.77655 2.69098,-1.26689 z m -7.70379,-3.4957 c -0.33229,-0.33229 -1.1948,-0.36781 -1.91667,-0.079 -0.79773,0.31923 -0.56078,0.55619 0.60417,0.60417 1.05416,0.0434 1.64479,-0.19293 1.3125,-0.52522 z m -27.84407,-30.30369 c 1.11366,-0.70529 0.98726,-1.09011 -0.645,-1.96367 -1.54679,-0.82782 -2.30309,-0.75752 -3.17683,0.29527 -0.87187,1.05054 -0.83712,1.50597 0.14499,1.90004 1.87761,0.75337 2.14846,0.73631 3.67684,-0.23164 z M 508.699,331.69604 c 0.008,-0.71996 -0.43469,-1.0309 -0.98469,-0.69098 -0.55,0.33992 -0.99311,1.60398 -0.98469,2.80902 0.0125,1.78123 0.1966,1.91046 0.98469,0.69098 0.53316,-0.825 0.97627,-2.08906 0.98469,-2.80902 z m -27.98469,1.5e-4 c 0,-4.05793 2.04132,-6.33667 5.53094,-6.17423 8.09613,0.37687 10.17058,0.31224 12.56073,-0.39134 2.03485,-0.59899 3.27022,-0.19193 5.75,1.89466 3.55156,2.98845 4.37508,1.69126 0.9513,-1.49847 -4.5668,-4.25462 -15.02343,-5.02242 -21.66016,-1.59043 -3.04988,1.57715 -6.26971,7.04834 -5.43229,9.23062 0.8975,2.33887 2.29948,1.44212 2.29948,-1.47081 z m 90.76997,197.20334 c -0.77712,-1.70558 -1.42644,-2.09454 -2.29425,-1.37432 -1.4819,1.22987 -2.92241,-0.35778 -3.8502,-4.24351 -0.47907,-2.00643 -0.30863,-2.59227 0.64746,-2.22538 0.79112,0.30358 1.36056,-0.33649 1.45873,-1.63968 0.19789,-2.62708 0.16783,-2.59728 3.45048,-3.42117 2.36621,-0.59388 2.61378,-0.4262 2.12581,1.43979 -0.43981,1.68183 -0.83782,1.87498 -1.95431,0.94837 -1.64772,-1.36748 -2.82846,-0.55819 -2.06986,1.4187 0.3588,0.93501 1.61456,1.23547 3.87354,0.92681 2.70734,-0.36991 3.10958,-0.21106 2.11642,0.83581 -0.7317,0.77128 -0.87116,1.72556 -0.34581,2.36632 0.48421,0.59058 1.036,2.16354 1.2262,3.49546 0.1902,1.33192 0.95695,2.62313 1.70388,2.86936 1.0765,0.35486 1.20548,-0.45547 0.6221,-3.90847 -0.40478,-2.39587 -1.32087,-6.01393 -2.03575,-8.04011 -1.11916,-3.17205 -1.09002,-3.76446 0.20969,-4.26321 2.48355,-0.95303 3.97865,-0.59574 2.0959,0.50086 -0.9625,0.5606 -1.75,1.67192 -1.75,2.46959 0,0.79767 0.7875,1.4572 1.75,1.46562 1.2871,0.0113 1.4104,0.2308 0.46613,0.82995 -1.28224,0.81361 -0.67735,4.15474 0.75219,4.15474 0.41488,0 0.53928,1.125 0.27643,2.5 -0.31971,1.67244 -0.0255,2.51007 0.88867,2.53041 2.45911,0.0547 -2.5158,2.40435 -5.4565,2.57708 -2.0937,0.12298 -3.10311,-0.44878 -3.90695,-2.21302 z m 2.23291,-3.88575 c -1.47759,-4.47713 -3.41224,-4.68003 -2.46686,-0.25872 0.80032,3.74289 2.69116,6.56846 3.25786,4.86837 0.20184,-0.60552 -0.15411,-2.67986 -0.791,-4.60965 z m -5.00288,-0.009 c 0,-1.375 -0.45,-2.5 -1,-2.5 -1.11717,0 -1.3707,3.29596 -0.33333,4.33333 1.10234,1.10234 1.33333,0.78473 1.33333,-1.83333 z m 13.07895,-3.08333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -17.92106,-5.41667 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m 6.34211,-8 c 0.33992,-0.55 1.06803,-1 1.61803,-1 0.55,0 0.72189,0.45 0.38197,1 -0.33992,0.55 -1.06803,1 -1.61803,1 -0.55,0 -0.72189,-0.45 -0.38197,-1 z m 13.37244,-5.75 c -1.24387,-1.58606 -1.2085,-1.62143 0.37756,-0.37756 0.9625,0.75485 1.75,1.54235 1.75,1.75 0,0.82304 -0.82119,0.29331 -2.12756,-1.37244 z m -173.15022,-3.3004 c 1.22222,-1.28617 2.41565,-2.13849 2.65206,-1.89404 0.23641,0.24444 -0.76359,1.29676 -2.22222,2.33849 l -2.65206,1.89405 2.22222,-2.3385 z m 169.68277,-1.1996 -1.90499,-2.25 2.25,1.90499 c 2.11444,1.79022 2.70524,2.59501 1.90499,2.59501 -0.18976,0 -1.20226,-1.0125 -2.25,-2.25 z m -7.89791,-3.73855 c -0.35034,-0.56686 0.0511,-0.7345 0.94098,-0.39301 1.73242,0.66479 2.04939,1.38156 0.61096,1.38156 -0.51754,0 -1.21592,-0.44485 -1.55194,-0.98855 z"
- id="path3026"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#909090"
- d="m 474.92335,673.52062 c -3.27022,-0.7748 -7.20904,-3.5827 -7.20904,-5.13916 0,-0.4475 0.67242,-0.5556 1.49426,-0.24023 0.82184,0.31537 1.19802,1.05272 0.83595,1.63855 -0.41682,0.67443 -0.0288,0.82361 1.05768,0.40667 1.11069,-0.42621 1.47712,-0.27199 1.03882,0.4372 -0.45689,0.73926 0.0955,0.87687 1.69806,0.42304 1.83155,-0.51868 2.03188,-0.43226 0.87523,0.37755 -1.23423,0.86412 -1.09088,1.05291 0.80902,1.06551 1.26996,0.008 2.03635,-0.42588 1.70308,-0.9651 -0.33326,-0.53923 0.7249,-0.21663 2.35146,0.71689 2.61321,1.49978 3.26732,1.53143 5.62057,0.27201 3.27913,-1.75494 5.7792,-7.37871 5.27258,-11.86039 -0.33583,-2.97092 -0.22988,-3.1481 0.93219,-1.55887 0.72111,0.98617 1.3067,2.26952 1.30133,2.8519 -0.0217,2.35473 -4.87115,11.2992 -6.45578,11.90728 -2.14267,0.82222 -7.06019,0.6777 -11.32541,-0.33285 z m 33.01422,0.29561 c -1.44148,-0.55962 -5.24509,-7.54826 -5.18204,-9.52133 0.0227,-0.70941 1.03517,0.70586 2.25,3.14505 2.69955,5.42028 4.95152,7.01912 7.57699,5.37948 1.29955,-0.81158 2.19473,-0.85143 2.91633,-0.12983 0.59698,0.59698 1.61167,0.68371 2.37833,0.20329 0.73542,-0.46085 2.12463,-0.70836 3.08713,-0.55001 0.9625,0.15834 1.75,-0.14224 1.75,-0.66797 0,-0.52573 0.7875,-1.25203 1.75,-1.61401 1.48581,-0.55878 1.44807,-0.35314 -0.25,1.36215 -1.47562,1.49058 -3.70423,2.13414 -8.5,2.45456 -3.575,0.23885 -7.07453,0.21123 -7.77674,-0.0614 z m 15.64918,-8.06117 c -1.24387,-1.58606 -1.2085,-1.62143 0.37756,-0.37756 1.66575,1.30637 2.19548,2.12756 1.37244,2.12756 -0.20765,0 -0.99515,-0.7875 -1.75,-1.75 z m -4.28834,-3.89144 c -0.52667,-1.37248 -0.38034,-1.43434 0.89301,-0.37756 1.73524,1.44013 1.91584,2.019 0.62988,2.019 -0.49116,0 -1.17646,-0.73865 -1.52289,-1.64144 z m -32.50515,-0.94189 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 30.37993,-2.4832 c -0.36253,-0.58659 -0.44468,-1.281 -0.18255,-1.54313 0.26212,-0.26213 0.74306,0.21781 1.06875,1.06653 0.67618,1.76211 0.0999,2.07206 -0.8862,0.4766 z m -31.15379,-4.35014 c 0.19835,-0.59583 1.22335,-1.18789 2.27778,-1.3157 1.05442,-0.1278 1.35183,0.0231 0.6609,0.33541 -0.69093,0.31228 -1.04822,0.90435 -0.79399,1.3157 0.25423,0.41136 -0.20546,0.74793 -1.02155,0.74793 -0.81608,0 -1.3215,-0.4875 -1.12314,-1.08334 z m 20.44491,0.0246 c -0.9625,-0.73064 -1.71447,-2.17883 -1.67105,-3.21819 0.059,-1.41229 0.2183,-1.51077 0.63049,-0.38976 0.30334,0.825 1.23756,2.2875 2.07604,3.25 1.80045,2.06677 1.3986,2.20569 -1.03548,0.35795 z m -28.16457,-1.46971 c -0.29292,-0.47397 -0.64281,-2.30818 -0.77751,-4.07603 -0.13471,-1.76784 -0.57694,-3.41946 -0.98275,-3.67026 -0.4058,-0.2508 -0.49487,-1.08912 -0.19793,-1.86294 0.67482,-1.75856 -1.45369,-12.30372 -2.63025,-13.03087 -0.47764,-0.2952 -0.44737,0.93148 0.0673,2.72596 0.51465,1.79448 0.91861,3.94067 0.89768,4.7693 -0.0209,0.82863 -2.27093,-5.17164 -5,-13.33393 -5.65743,-16.9206 -6.10945,-21.93432 -2.98378,-33.09566 3.08723,-11.02409 2.26746,-24.80558 -2.33391,-39.23619 -4.58771,-14.38776 -5.64426,-23.29494 -5.64426,-47.58348 0,-15.3452 0.33797,-20.61725 1.5,-23.39836 0.825,-1.97451 1.52173,-5.22255 1.54828,-7.21788 0.0266,-1.99534 0.85497,-7.44611 1.84091,-12.11284 1.99183,-9.42782 1.57968,-13.39451 -2.17886,-20.97014 -3.43644,-6.92641 -4.36053,-6.26992 -5.84638,4.15342 -1.19211,8.36272 -1.38926,8.8979 -1.95305,5.30168 -0.56477,-3.60246 -0.64119,-3.68917 -0.769,-0.87244 -0.20543,4.52779 -2.5034,6.11745 -4.58261,3.17011 -1.51576,-2.14862 -1.49416,-2.40133 0.33297,-3.89567 1.07463,-0.8789 2.65719,-3.3539 3.51679,-5.5 l 1.56291,-3.902 -3.48598,3.91661 c -2.41472,2.71302 -3.48598,3.39364 -3.48598,2.21482 0,-1.39192 -0.36418,-1.5069 -2,-0.63143 -1.79176,0.95892 -2,0.76049 -2,-1.9058 0,-1.63689 -0.3375,-3.18425 -0.75,-3.43859 -0.4125,-0.25433 -0.7695,3.07969 -0.79332,7.40894 -0.0402,7.30563 0.0773,7.76221 1.63456,6.35288 1.52848,-1.38326 1.77721,-1.23355 2.79332,1.68127 1.36524,3.91633 1.41333,5.20344 0.16561,4.43231 -0.5224,-0.32287 -1.49591,0.43808 -2.16334,1.69098 -0.66743,1.25291 -1.78074,2.72801 -2.47402,3.27801 -2.10403,1.6692 -10.86994,17.37621 -10.11743,18.12871 0.23642,0.23642 1.83638,-1.72083 3.55547,-4.34943 1.71909,-2.6286 3.13092,-4.2514 3.13739,-3.6062 0.0207,2.05982 6.19982,-4.9302 8.06919,-9.12807 0.99071,-2.22475 1.83308,-3.25751 1.87193,-2.29501 0.12446,3.08336 1.95955,1.87281 3.03183,-2 0.95058,-3.43323 2.98715,-7.57524 3.0235,-6.14922 0.0792,3.10659 -13.04732,28.16742 -19.4895,37.20891 -1.88482,2.64532 -3.67768,6.47032 -3.98412,8.5 -1.13086,7.49014 -2.04188,10.5485 -3.26107,10.9477 -0.77743,0.25455 -1.25,-0.54275 -1.25,-2.10896 0,-1.38503 -0.46744,-3.74769 -1.03875,-5.25036 -0.78292,-2.05923 -0.72135,-2.93352 0.25,-3.54979 0.70881,-0.44971 0.83875,-0.80626 0.28875,-0.79233 -0.55,0.0139 -2.558,1.35704 -4.46223,2.98469 -1.90422,1.62765 -4.28465,2.95936 -5.28983,2.95936 -2.37146,0 -10.12866,3.95262 -9.32818,4.75309 0.33747,0.33747 1.14607,0.0811 1.79691,-0.56976 0.65083,-0.65083 2.7932,-1.18333 4.76082,-1.18333 1.96762,0 4.69012,-0.70924 6.05,-1.57609 1.75593,-1.11932 1.60305,-0.83094 -0.52749,0.99503 -1.72543,1.47877 -2.39812,2.57324 -1.58333,2.57609 0.77916,0.003 1.17907,0.24256 0.88868,0.53295 -0.29038,0.29039 -1.77779,0.0528 -3.30535,-0.52798 -3.34782,-1.27284 -3.61066,-1.05641 -4.54062,3.73896 l -0.72938,3.76104 -0.115,-3.3067 c -0.11171,-3.212 -0.17865,-3.26212 -2.33751,-1.75 -1.22237,0.85618 -3.13487,1.51184 -4.25,1.45702 -1.68114,-0.0827 -1.60043,-0.2226 0.47251,-0.81926 1.52232,-0.43818 2.44287,-1.39379 2.3539,-2.44357 -0.2338,-2.75896 8.67818,-11.7081 11.99123,-12.04122 1.56482,-0.15735 3.18698,-0.83921 3.6048,-1.51526 0.58943,-0.95371 1.60396,-0.87642 4.527,0.3449 2.07202,0.86575 3.88858,1.57409 4.03679,1.57409 0.1482,0 0.57828,-1.2375 0.95573,-2.75 0.37745,-1.5125 1.71274,-4.1 2.96731,-5.75 2.96848,-3.90412 10.56382,-16.3225 10.56123,-17.26761 -10e-4,-0.40282 -2.04889,2.38162 -4.55063,6.18763 -6.85348,10.42651 -10.04943,14.1244 -12.35748,14.29826 -2.72778,0.20547 -2.63646,-1.02002 0.41012,-5.50347 1.375,-2.02349 2.5,-4.11272 2.5,-4.64273 0,-0.53 -1.34009,1.14946 -2.97798,3.73214 -1.9029,3.00057 -3.69,4.69578 -4.95031,4.69578 -1.08478,0 -2.43698,0.7875 -3.00488,1.75 -1.72366,2.92131 -0.14356,-4.38067 2.65082,-12.25 1.36713,-3.85 4.24651,-12.21431 6.39863,-18.58737 2.15212,-6.37305 5.64175,-14.47305 7.75472,-18 3.23456,-5.39908 4.02612,-7.87378 5.00806,-15.65717 0.64146,-5.0845 1.60609,-10.4013 2.14362,-11.8151 0.53752,-1.41381 0.97732,-7.42375 0.97732,-13.35542 0,-10.28242 0.13294,-10.96656 2.8536,-14.6849 4.2012,-5.74181 5.70427,-6.73943 16.19649,-10.74996 5.25256,-2.00773 11.47072,-4.88784 13.81815,-6.40025 l 4.26806,-2.74983 -0.5032,-5.5 c -0.8464,-9.25127 -1.75481,-12.80017 -3.7352,-14.5924 -2.37824,-2.15228 -2.53194,-4.58813 -0.23386,-3.70628 1.11889,0.42936 1.42717,0.25527 0.94099,-0.53138 -0.39769,-0.64347 -1.37151,-1.16994 -2.16405,-1.16994 -1.91094,0 -1.83774,-2.74609 0.12553,-4.70937 0.92649,-0.92649 1.49975,-3.04225 1.40311,-5.17857 -0.0899,-1.98663 -0.0636,-3.94956 0.0585,-4.36206 0.12204,-0.4125 0.29534,-1.0875 0.38511,-1.5 0.8884,-4.08223 1.79351,-6.37661 2.31126,-5.85885 0.34493,0.34493 1.70871,-0.38947 3.03062,-1.632 1.97318,-1.85469 3.68726,-2.29794 9.57419,-2.47581 8.10649,-0.24494 10.67071,0.27184 10.67071,2.15053 0,0.9849 -1.63319,1.18224 -6.75285,0.81593 -8.03581,-0.57496 -13.2012,1.18515 -15.89627,5.41667 -0.99258,1.55844 -2.10976,3.05863 -2.48263,3.33374 -0.37287,0.27512 0.16037,2.07512 1.18498,4 l 1.86294,3.49979 0.0419,-4.59501 c 0.0643,-7.04373 4.14764,-9.63646 10.56896,-6.71072 2.03168,0.9257 3.0512,0.9257 4.53347,0 5.43926,-3.39686 10.87617,-0.0488 11.00716,6.77824 0.0615,3.20721 0.16363,3.32898 1.12439,1.34118 1.38639,-2.86839 0.29432,-6.95195 -2.58041,-9.64892 -2.78268,-2.61061 -2.44948,-5.18352 0.46901,-3.6216 1.05563,0.56496 1.91933,1.63822 1.91933,2.38503 0,0.7468 0.77489,1.65517 1.72197,2.01861 1.47512,0.56605 1.51096,0.79423 0.25,1.59167 -0.97731,0.61807 -1.05587,0.93604 -0.23376,0.94621 0.68102,0.008 1.17222,0.80281 1.09156,1.76531 -0.40162,4.79243 0.26086,10.31202 1.17023,9.75 0.56716,-0.35052 1,0.48962 1,1.94098 0,1.66788 -0.55137,2.55902 -1.58333,2.55902 -0.87084,0 -1.37709,0.5625 -1.125,1.25 0.25208,0.6875 0.94839,1.1429 1.54734,1.012 0.59896,-0.13091 0.83206,0.43159 0.51801,1.25 -0.31405,0.8184 -0.94092,1.488 -1.39305,1.488 -1.35773,0 -3.96397,10.44545 -3.96397,15.88706 l 0,5.07925 5.12699,2.59804 c 2.81984,1.42892 9.23234,4.16434 14.25,6.07871 14.93958,5.69985 17.0706,9.02276 18.58961,28.98686 1.55953,20.49658 2.36014,24.13738 7.35408,33.44275 5.89718,10.98841 13.91352,32.53385 13.13844,35.31205 -0.40528,1.45269 -0.30344,1.70309 0.32511,0.79939 0.64404,-0.92596 1.40918,0.44447 2.58214,4.62488 1.8623,6.63718 1.3568,9.61339 -1.50566,8.86484 -1.02491,-0.26802 -1.66754,-0.17029 -1.42807,0.21717 0.78494,1.27007 -1.2295,3.46511 -3.32147,3.61923 -2.42838,0.1789 -8.58637,-6.93232 -7.51051,-8.6731 0.40952,-0.66262 0.2691,-0.87467 -0.33284,-0.50265 -1.41303,0.8733 -3.62422,-1.9488 -2.6994,-3.44518 0.43391,-0.70209 0.31785,-0.93705 -0.28026,-0.56739 -1.62428,1.00386 -3.66452,-2.00473 -10.0951,-14.88655 -4.8292,-9.67393 -6.33676,-13.88489 -7.60785,-21.25045 -0.87187,-5.05219 -1.58521,-9.41441 -1.58521,-9.69383 0,-0.27941 -0.91703,0.0583 -2.03784,0.75045 -2.87567,1.77588 -5.23271,10.59501 -4.69338,17.56083 0.53762,6.94374 3.28355,23.40819 4.70278,28.19764 0.57042,1.925 1.48635,9.40476 2.0354,16.6217 0.85577,11.24862 0.72012,15.2032 -0.95027,27.70358 -1.0717,8.02004 -3.1662,19.66528 -4.65446,25.87831 -1.48826,6.21302 -2.7501,14.33049 -2.80408,18.03881 -0.0925,6.35409 -0.79167,8.34324 -1.93587,5.5076 -0.27741,-0.6875 -0.53991,0.41094 -0.58333,2.44098 -0.0434,2.03004 -0.52895,3.9691 -1.07895,4.30902 -1.97512,1.22069 -0.91165,-6.18393 3.01607,-21 2.18706,-8.25 3.95254,-15.9 3.92329,-17 -0.0761,-2.85964 -7.76124,25.00581 -8.54969,31 -0.73691,5.60243 -1.93874,8.5 -3.52555,8.5 -0.6943,0 -0.84252,-1.65483 -0.42544,-4.75 1.17251,-8.70141 0.8665,-21.36183 -0.46428,-19.20858 -0.3839,0.62117 -1.0977,1.09771 -1.5862,1.05898 -1.21769,-0.0966 -3.2194,5.70099 -3.31212,9.5929 -0.053,2.22301 0.59923,3.66629 2.14643,4.75 1.22237,0.85618 1.67237,1.5567 1,1.5567 -0.74887,0 -1.22251,1.47225 -1.22251,3.8 0,3.86057 -1.38095,6.2 -3.65982,6.2 -0.6929,0 -2.23347,-3.0375 -3.42349,-6.75 -1.9169,-5.98015 -2.25483,-10.11455 -2.96299,-36.25 -0.43963,-16.225 -1.23466,-30.89978 -1.76673,-32.61061 -2.21289,-7.11538 -4.99068,-9.41121 -6.82324,-5.63939 -0.46764,0.9625 -0.88233,14.35 -0.92154,29.75 -0.0496,19.47846 -0.4702,29.63016 -1.382,33.35635 -0.72088,2.94599 -1.59183,4.90233 -1.93544,4.34742 -1.55885,-2.51747 -1.18182,18.44246 0.45164,25.10795 1.61196,6.57774 1.60969,7.75309 -0.0411,21.3174 -0.96093,7.89571 -1.58697,17.83533 -1.3912,22.08806 0.32609,7.08399 0.18826,7.76464 -1.64407,8.11899 -1.1,0.21272 -2.35986,1.01161 -2.79969,1.7753 -0.89125,1.54751 -3.29393,1.85509 -4.11488,0.52677 z m 4.75695,-12.88822 c -0.80727,-3.1625 -1.91055,-7.45108 -2.45174,-9.53017 -0.54119,-2.0791 -1.41419,-3.51429 -1.94001,-3.18932 -0.59692,0.36892 -0.55313,1.34372 0.11658,2.59508 0.58994,1.10231 1.25346,2.7625 1.47449,3.68931 1.92924,8.08967 2.61306,10.62649 3.05894,11.34794 1.19863,1.93942 1.12284,0.49768 -0.25826,-4.91284 z m -3.82366,-1.26428 -1.4908,-4.48572 0.52258,4.40462 c 0.54364,4.58209 1.56917,7.23636 2.13735,5.53184 0.17692,-0.53076 -0.34919,-2.9836 -1.16913,-5.45074 z m -0.51872,-14.98572 c 0,-1.1 -0.17252,-2 -0.38337,-2 -0.21085,0 -0.61872,0.9 -0.90638,2 -0.28765,1.1 -0.11514,2 0.38337,2 0.49851,0 0.90638,-0.9 0.90638,-2 z m 3.70726,-4.23834 c -0.23919,-1.24391 -0.44398,-0.46166 -0.45508,1.73834 -0.0111,2.2 0.18461,3.21775 0.4349,2.26166 0.25029,-0.95609 0.25937,-2.75609 0.0202,-4 z m -12.42436,-12.01166 c -0.29059,-5.6375 -0.95526,-10.7 -1.47705,-11.25 -0.63247,-0.66667 -0.85874,-0.66667 -0.67882,0 0.14844,0.55 -0.0738,3.14961 -0.49388,5.77692 -0.7925,4.95661 0.81213,15.72308 2.34337,15.72308 0.45909,0 0.59696,-4.6125 0.30638,-10.25 z m 7.06303,6.70911 c -0.37028,-0.96496 -0.0957,-1.43217 0.73468,-1.25 1.27695,0.28013 1.99973,-3.16914 0.882,-4.20911 -0.29556,-0.275 -1.05295,-3.59739 -1.68308,-7.38309 -0.63014,-3.78569 -1.672,-7.38569 -2.31524,-8 -0.89104,-0.85094 -1.03763,1.6216 -0.61559,10.38309 0.30468,6.325 0.57586,11.6125 0.60263,11.75 0.0268,0.1375 0.70955,0.25 1.51729,0.25 0.91191,0 1.24447,-0.5841 0.87731,-1.54089 z m 9.50129,-7.17498 c 0.0817,-3.18127 -0.29354,-6.45913 -0.83398,-7.28413 -0.68821,-1.05058 -0.9872,0.83966 -0.99793,6.30902 -0.0175,8.91214 1.60575,9.77616 1.83191,0.97511 z m -3.40392,-14.50664 c 0.85618,-1.22237 1.52117,-3.80987 1.47775,-5.75 -0.0434,-1.94012 -0.30592,-2.96499 -0.58333,-2.27749 -1.37506,3.40775 -2.24492,0.44332 -1.90731,-6.5 0.33837,-6.9591 -0.57036,-15.15115 -2.13537,-19.25 -0.315,-0.825 -0.66122,-2.30347 -0.76938,-3.2855 -0.21786,-1.97803 -2.21002,-4.36347 -2.99147,-3.58203 -0.27453,0.27453 -0.002,3.32134 0.60557,6.77068 0.84769,4.81241 0.81906,6.80527 -0.12303,8.56559 -1.8089,3.37996 -0.43949,8.50017 2.31273,8.64726 1.4525,0.0776 1.64034,0.25791 0.56781,0.54496 -1.09517,0.29312 -1.45523,1.2006 -1.13696,2.86553 0.59313,3.10277 -0.48201,7.47351 -1.83838,7.47351 -0.57198,0 -0.83403,-0.3375 -0.58234,-0.75 1.0801,-1.77019 -9.72727,-37.19565 -10.96869,-35.95424 -0.16953,0.16953 1.65331,6.35984 4.05075,13.75624 2.39743,7.3964 4.67615,15.37982 5.06381,17.74093 l 0.70484,4.29294 -2.84515,-0.68361 c -3.34331,-0.80331 -3.27363,-0.70751 2.88325,3.96394 3.07412,2.33245 5.34821,3.37369 6.5,2.97617 1.471,-0.50769 1.43225,-0.33949 -0.2284,0.99129 -1.1,0.88151 -1.46302,1.61704 -0.8067,1.63454 0.65631,0.0175 1.89381,-0.96833 2.75,-2.19071 z m -12.46905,-15.27749 -0.68021,-6 -0.14702,5.58333 c -0.0809,3.07084 0.15298,5.88334 0.51965,6.25 1.018,1.01801 1.03905,0.61884 0.30758,-5.83333 z m 17.70886,-8.6875 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 30.31689,-0.3125 c 0,-0.825 -0.17686,-1.5 -0.39301,-1.5 -0.21616,0 -0.65203,0.675 -0.96862,1.5 -0.31658,0.825 -0.13972,1.5 0.39301,1.5 0.53274,0 0.96862,-0.675 0.96862,-1.5 z m -29.33772,-18.75 c -0.27741,-0.6875 -0.50438,-0.125 -0.50438,1.25 0,1.375 0.22697,1.9375 0.50438,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m -25.97917,-5.9375 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 52.74779,0.0757 c -0.37792,-0.6115 -0.0986,-1.47551 0.62061,-1.92004 0.71926,-0.44452 1.4019,-1.40671 1.51699,-2.13819 0.11509,-0.73148 0.76561,-4.02997 1.44561,-7.32997 0.67999,-3.3 1.17597,-7.575 1.10218,-9.5 -0.0738,-1.925 -0.15306,-4.35459 -0.17615,-5.39908 -0.0939,-4.24588 -2.30227,0.59243 -3.47217,7.607 -1.15118,6.90237 -1.2229,7.03822 -1.34207,2.54208 -0.0692,-2.6125 -0.53188,-4.75 -1.02807,-4.75 -1.46312,0 -2.98188,5.59206 -2.49334,9.18043 0.90458,6.64422 2.7976,12.81957 3.92978,12.81957 0.32107,0 0.27455,-0.50031 -0.10337,-1.1118 z m -0.33051,-4.59272 c 0.72815,-1.21249 1.53915,-1.98927 1.80223,-1.72619 0.26308,0.26308 -0.33267,1.25511 -1.3239,2.20452 -1.72194,1.64929 -1.74325,1.62798 -0.47833,-0.47833 z m -37.75005,3.20486 c 0.36648,0.26565 0.21258,-0.0533 -0.34201,-0.70867 -1.30333,-1.54031 -1.31215,-4.09748 -0.0114,-3.29354 0.64856,0.40083 0.68344,-0.20851 0.0998,-1.74361 -0.53794,-1.41489 -0.5253,-3.02429 0.0316,-4.01935 0.51081,-0.91277 0.5976,-2.91409 0.19285,-4.44737 -0.40474,-1.53329 -0.61273,-3.39438 -0.4622,-4.13576 0.34076,-1.67827 -2.70279,-5.15204 -4.51396,-5.15204 -2.01155,0 -1.62439,1.9874 0.40499,2.07895 1.04544,0.0472 1.24674,0.28201 0.5,0.58333 -0.6875,0.27741 -1.25,1.45689 -1.25,2.62105 0,3.20456 -1.77918,0.84586 -2.86682,-3.8006 l -0.93228,-3.98273 -0.0949,4.5 c -0.11473,5.44181 1.53036,11.86733 3.64835,14.25 0.85558,0.9625 1.14835,1.76431 0.65061,1.7818 -0.49775,0.0175 -0.005,0.74413 1.09501,1.61476 1.30967,1.03656 1.58793,1.73822 0.80618,2.0328 -0.65661,0.24742 -0.94155,1.10727 -0.63322,1.91077 0.39434,1.02764 0.92398,1.15934 1.78583,0.44407 0.67388,-0.55927 1.52507,-0.7995 1.89155,-0.53386 z m 49.33277,-1.68784 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m -65,-1 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 59.97917,-3.0625 c -0.27741,-0.6875 -0.50439,-0.125 -0.50439,1.25 0,1.375 0.22698,1.9375 0.50439,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m -16.66228,-3.98028 c 0,-1.71173 0.61701,-3.82267 1.37114,-4.69098 0.75413,-0.86831 2.35556,-4.50374 3.55874,-8.07874 1.20318,-3.575 3.29267,-9.293 4.6433,-12.70666 1.35064,-3.41367 2.37777,-6.56367 2.28251,-7 -0.0953,-0.43634 0.15494,-1.538 0.55601,-2.44814 0.40107,-0.91015 0.58501,-3.16015 0.40876,-5 -0.28186,-2.94222 -0.83406,-2.04028 -4.58394,7.4872 -2.34491,5.95782 -4.66545,12.48282 -5.15676,14.5 -0.4913,2.01718 -1.83524,7.22708 -2.98652,11.57756 -2.33108,8.80871 -2.56871,11.00193 -1.09324,10.09004 0.55,-0.33992 1,-2.01854 1,-3.73028 z m 17.68311,0.0428 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19293,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m -35.68311,0.18748 c 0,-0.55 -0.19844,-1 -0.44098,-1 -0.24254,0 -0.7191,0.45 -1.05902,1 -0.33992,0.55 -0.14148,1 0.44098,1 0.58246,0 1.05902,-0.45 1.05902,-1 z m 16.3336,-9.66831 c 0.41372,-2.54946 0.009,-4.91326 -1.32642,-7.75 l -1.92171,-4.08169 0.61935,6.5 c 0.34065,3.575 0.62142,7.0625 0.62393,7.75 0.0101,2.75372 1.44677,1.02076 2.00485,-2.41831 z m -21.86049,-8.22889 c -1.64072,-5.06834 -3.03463,-7.87379 -3.706,-7.45887 -0.62962,0.38913 -0.78696,0.1972 -0.3792,-0.46256 0.85842,-1.38896 -4.11466,-15.70971 -5.99829,-17.27297 -4.68642,-3.88939 0.69965,14.94865 8.60364,30.0916 4.29222,8.22329 4.98502,5.93063 1.47985,-4.8972 z m 3.21988,-4.83377 c -0.25354,-0.97297 -0.47766,-0.41903 -0.49804,1.23097 -0.0204,1.65 0.18706,2.44606 0.46099,1.76903 0.27392,-0.67703 0.29059,-2.02703 0.037,-3 z m 19.60728,-1.33786 c -2.40788,-4.07622 -3.62536,-3.68074 -1.6193,0.526 0.90673,1.90145 2.0316,3.22047 2.4997,2.93117 0.46809,-0.2893 0.0719,-1.84503 -0.8804,-3.45717 z m 22.00472,-11.2389 c -1.44952,-4.84651 -1.6147,-5.02736 -2.48052,-2.71578 -0.96342,2.57216 -0.57565,5.4548 1.40639,10.45482 l 1.16199,2.93132 0.73253,-2.73905 c 0.44625,-1.66859 0.12563,-4.76824 -0.82039,-7.93131 z m -20.2265,1.23382 -2.07323,-3.97759 2.61506,-0.99425 c 4.06249,-1.54455 7.81194,-4.87457 8.56061,-7.60297 0.56126,-2.0454 0.43626,-2.27846 -0.71127,-1.3261 -0.76571,0.63549 -1.63087,1.90229 -1.92257,2.81513 -0.2917,0.91283 -2.76802,2.91409 -5.50292,4.44725 -5.04451,2.82789 -7.68403,5.26557 -4.34611,4.01375 1.56438,-0.58668 1.62624,-0.45964 0.46918,0.96364 -1.12641,1.38559 -1.049,2.029 0.5,4.1558 1.00802,1.38402 2.17026,2.53054 2.58276,2.54783 0.4125,0.0173 0.81128,0.81892 0.88618,1.78142 0.0873,1.12181 0.29401,0.92504 0.57586,-0.54816 0.24183,-1.26399 -0.49327,-4.08808 -1.63355,-6.27575 z m -18.73265,2.07391 c 0.94431,0 1.97595,0.675 2.29253,1.5 1.03788,2.70465 9.36163,1.409 9.36163,-1.45721 0,-0.30646 -1.92348,-0.40422 -4.27439,-0.21725 -4.57191,0.36362 -4.81864,0.18769 -19.60389,-13.97848 -2.87487,-2.7545 -3.95252,-3.39943 -3.13839,-1.8782 0.68194,1.27422 2.63706,3.68253 4.34471,5.35181 1.9118,1.86885 2.6374,3.19085 1.88838,3.44052 -1.44453,0.48151 -1.65326,4.23881 -0.23547,4.23881 0.53952,0 1.25752,-1.10196 1.59556,-2.4488 0.51286,-2.04343 0.90534,-2.26723 2.37097,-1.35192 1.66136,1.03753 1.652,1.20124 -0.17287,3.02611 -1.06109,1.06109 -1.68358,2.56945 -1.38331,3.35193 0.30026,0.78247 0.055,1.42268 -0.54513,1.42268 -0.70918,0 -0.64566,0.53668 0.18148,1.53331 1.13121,1.36303 1.51289,1.3075 3.43689,-0.5 1.1904,-1.11832 2.93698,-2.03331 3.8813,-2.03331 z m -23.80045,-0.53705 c -0.39508,-3.5991 -1.35581,-4.14079 -2.40874,-1.35813 -0.5677,1.50028 -0.53339,2.8581 0.0918,3.63417 1.45325,1.80391 2.63712,0.64093 2.31692,-2.27604 z m 48.88458,-5.57626 c -1.00883,-1.63232 -2.42997,-0.90961 -2.42997,1.23575 0,1.76626 0.24988,1.91507 1.48899,0.8867 0.81894,-0.67967 1.24239,-1.63477 0.94098,-2.12245 z m 50.57003,-1.26425 c 0,-0.20765 -0.6853,-0.9463 -1.52289,-1.64144 -1.27335,-1.05678 -1.41968,-0.99492 -0.89301,0.37756 0.53789,1.40173 2.4159,2.38422 2.4159,1.26388 z m -66.82745,-10.31321 c 0.62784,-1.24813 0.82687,-3.91139 0.46256,-6.18964 -0.35759,-2.23625 -0.21445,-4.26154 0.32474,-4.59477 0.53359,-0.32978 0.69558,-2.47801 0.36272,-4.81036 -0.9022,-6.32181 -1.14321,-16.72165 -0.37654,-16.24782 0.3702,0.2288 0.47458,-2.32846 0.23195,-5.6828 -0.41004,-5.66873 -0.30846,-6.04225 1.44044,-5.29677 1.03487,0.44112 2.66908,0.83341 3.63158,0.87177 0.9625,0.0383 1.75,0.38117 1.75,0.76183 0,0.38065 0.9,0.45674 2,0.16908 1.1,-0.28766 2,-1.36196 2,-2.38733 0,-2.16737 -3.74723,-3.43481 -7.05306,-2.38558 -1.69104,0.53672 -2.00909,0.3847 -1.38021,-0.65971 0.66464,-1.10379 0.53083,-1.12541 -0.71678,-0.11581 -0.84368,0.68273 -1.83006,0.94523 -2.19196,0.58334 -0.36189,-0.3619 -0.65799,-0.13299 -0.65799,0.50867 0,0.64167 -0.51974,1.16667 -1.15499,1.16667 -0.69049,0 -0.48852,-0.73643 0.50218,-1.83115 0.91145,-1.00713 1.39265,-2.09568 1.06935,-2.41898 -0.32331,-0.32331 0.29154,-1.05846 1.36633,-1.63367 1.07479,-0.57521 2.15548,-0.84452 2.40154,-0.59846 0.89089,0.89089 7.86798,1.37604 7.33265,0.50987 -0.30232,-0.48918 -0.19747,-1.10709 0.23302,-1.37315 0.43048,-0.26605 1.29574,0.6034 1.9228,1.93213 0.62706,1.32873 0.73219,2.16375 0.23361,1.85562 -0.49857,-0.30813 -0.90649,0.36631 -0.90649,1.49877 0,1.13246 0.5625,2.09455 1.25,2.13797 0.99826,0.063 0.99855,0.18043 10e-4,0.58285 -0.85808,0.34632 -1.05294,1.72729 -0.62306,4.41564 0.40184,2.51292 0.17874,4.45005 -0.62387,5.41714 -0.68717,0.82798 -0.82838,1.50542 -0.31381,1.50542 1.26412,0 1.51543,7.31731 0.47098,13.71311 -0.46823,2.86722 -0.47792,4.98235 -0.0216,4.70029 1.00185,-0.61917 0.0561,4.63056 -1.79473,9.96233 -1.55718,4.48584 -1.75775,8.62427 -0.41797,8.62427 0.51008,0 1.85518,-1.2375 2.98912,-2.75 1.13393,-1.5125 2.51659,-3.29351 3.07258,-3.95779 0.55598,-0.66429 1.01088,-1.67679 1.01088,-2.25 0,-0.57322 0.47656,-1.04221 1.05902,-1.04221 0.58246,0 0.7809,-0.45 0.44098,-1 -1.05493,-1.70692 1.70886,-1.09663 2.99419,0.66117 1.07884,1.4754 1.51053,1.22578 3.86024,-2.23214 1.45506,-2.14131 2.64557,-4.27731 2.64557,-4.74666 0,-0.46935 -2.09343,0.31668 -4.65207,1.74673 -2.55864,1.43005 -4.90579,2.34637 -5.21589,2.03627 -1.22972,-1.22972 -0.68307,-10.42368 0.6502,-10.9353 0.73949,-0.28377 1.08366,-0.93803 0.76483,-1.45391 -0.31883,-0.51588 -0.18048,-1.18469 0.30746,-1.48625 0.48793,-0.30156 1.13876,-1.79516 1.44628,-3.3191 0.30752,-1.52395 0.90649,-3.66959 1.33104,-4.7681 0.7556,-1.95508 0.71415,-1.95943 -1.96171,-0.20615 l -2.73362,1.79114 1.62255,-3.79385 c 0.8924,-2.08662 1.85483,-4.35635 2.13873,-5.04385 0.66719,-1.61569 -2.89253,-1.65527 -4.4978,-0.05 -2.32157,2.32157 -1.11064,-0.74457 1.82782,-4.62814 1.6347,-2.16048 2.96529,-4.41048 2.95687,-5 -0.008,-0.58952 -0.49746,-0.39686 -1.08675,0.42814 -0.86479,1.2107 -0.97865,1.07496 -0.59039,-0.70379 0.46067,-2.11045 0.37963,-2.13735 -1.91325,-0.63499 -2.84983,1.86728 -3.03222,0.90654 -0.59102,-3.1132 1.697,-2.79433 1.70068,-3.04406 0.069,-4.67579 -1.02087,-1.02087 -2.67158,-1.53952 -4.04802,-1.2719 -2.19302,0.42641 -2.21132,0.38889 -0.32421,-0.66467 1.1,-0.61413 3.10478,-2.49598 4.45507,-4.1819 l 2.45507,-3.06532 -2.45507,0.56716 c -1.35029,0.31194 -3.46757,0.8062 -4.70507,1.09836 -1.2375,0.29216 -2.25,0.16456 -2.25,-0.28357 0,-0.44813 -1.9125,-1.17236 -4.25,-1.60942 -4.01276,-0.75029 -3.77552,-0.83618 4.25,-1.53869 8.67291,-0.75918 18.03642,-3.53154 18.70534,-5.5383 0.22085,-0.66254 -1.40007,-1.3149 -3.99341,-1.6072 -3.19743,-0.3604 -6.81912,-2.14207 -13.53854,-6.66019 -9.90847,-6.66244 -12.64428,-9.31205 -3.72143,-3.60417 2.99901,1.91817 5.92401,3.48758 6.50043,3.48758 0.57642,0 1.04804,0.37777 1.04804,0.83949 0,1.33256 5.14466,3.49116 9.36046,3.92746 2.5997,0.26905 3.64182,0.0458 3.19098,-0.68371 -0.36821,-0.59578 -1.39292,-1.08324 -2.27712,-1.08324 -0.88421,0 -1.33543,-0.27223 -1.00271,-0.60495 1.19467,-1.19466 -12.72838,-12.43337 -18.00266,-14.53179 -1.52292,-0.60591 -2.23947,-1.29951 -1.59234,-1.54133 0.64714,-0.24182 3.12214,0.78848 5.5,2.28956 2.37787,1.50108 4.34973,2.54007 4.38193,2.30887 0.0655,-0.47029 4.98582,3.46256 10.74578,8.58917 4.76121,4.23768 7.56998,3.81502 4.94025,-0.7434 -2.56063,-4.43863 -10.2562,-12.80183 -13.72819,-14.91916 -2.0861,-1.27218 -2.47667,-1.84065 -1.26638,-1.84323 0.9625,-0.002 1.75,-0.45374 1.75,-1.00374 0,-2.27686 2.55554,-0.65114 8.22213,5.23056 3.30148,3.42681 6.42549,7.13931 6.94225,8.25 2.45088,5.26779 4.06495,7.51944 5.39019,7.51944 2.14006,0 1.78858,-1.12801 -1.65211,-5.30217 -2.5759,-3.12501 -2.88502,-4.01392 -1.83555,-5.27845 1.05483,-1.271 0.90669,-1.61352 -0.90246,-2.08663 -1.19045,-0.3113 -2.16445,-0.99009 -2.16445,-1.5084 0,-0.51831 -0.49668,-0.63542 -1.10373,-0.26024 -0.60705,0.37517 -0.33029,-0.49827 0.61501,-1.94099 0.94531,-1.44271 2.14354,-2.62312 2.66275,-2.62312 0.5192,0 0.66589,-0.45 0.32597,-1 -0.33992,-0.55 -1.52362,-1 -2.63045,-1 -1.10682,0 -2.68741,-0.675 -3.51241,-1.5 -0.825,-0.825 -2.8402,-1.5 -4.47823,-1.5 -1.63803,0 -4.41838,-0.74454 -6.17857,-1.65453 -2.75508,-1.42433 -3.02105,-1.43838 -1.91167,-0.10094 1.09946,1.32548 0.8425,1.7511 -1.75,2.89864 -1.67127,0.73978 -3.03867,1.7752 -3.03867,2.30094 0,0.52574 -0.54,0.41589 -1.2,-0.24411 -1.48358,-1.48358 -2.8,-1.54987 -2.8,-0.14098 0,0.58246 0.45,0.7809 1,0.44098 0.55,-0.33992 1,-0.19607 1,0.31966 0,0.51574 -1.36168,1.50172 -3.02595,2.19109 -1.66427,0.68936 -3.94491,2.54396 -5.06809,4.12132 -2.51745,3.53542 -4.30098,3.71466 -3.66121,0.36793 0.26285,-1.375 0.35211,-2.5 0.19837,-2.5 -0.15375,0 -1.06947,-0.30312 -2.03494,-0.67361 -1.35341,-0.51935 -1.60833,-0.29035 -1.11317,1 0.35322,0.92049 0.3832,2.34861 0.0666,3.17361 -1.04512,2.72354 -3.02629,1.56264 -4.2386,-2.48368 -1.06978,-3.57061 -4.37003,-6.79616 -6.37303,-6.22877 -0.4125,0.11685 -0.75689,-0.35005 -0.76531,-1.03755 -0.0102,-0.83333 -0.33844,-0.75 -0.98469,0.25 -0.75639,1.17043 -0.97274,1.19973 -0.98469,0.13337 -0.01,-0.88164 -0.74032,-1.17704 -2.05828,-0.83238 -1.34212,0.35097 -2.45381,-0.1236 -3.24055,-1.38337 -0.65867,-1.05469 -1.56589,-1.91762 -2.01604,-1.91762 -0.45016,0 -0.49739,0.51953 -0.10495,1.15451 0.39806,0.64407 0.27832,0.88554 -0.27082,0.54615 -0.54139,-0.3346 -4.05637,0.31327 -7.81108,1.43971 -4.36309,1.30896 -6.36311,2.3346 -5.54204,2.84204 0.70657,0.43669 0.97547,1.29429 0.59755,1.90579 -0.37792,0.61149 -0.1223,1.1118 0.56805,1.1118 0.69035,0 -0.13345,1.4625 -1.83067,3.25 -1.69722,1.7875 -3.41027,4.32378 -3.80677,5.63617 -0.67078,2.22019 -0.52195,2.33677 2.13968,1.67606 1.57334,-0.39056 3.01061,-1.12683 3.19394,-1.63617 0.18334,-0.50933 1.08334,-0.93295 2,-0.94137 1.45295,-0.0134 1.47432,-0.15368 0.16667,-1.09434 -1.30729,-0.94039 -1.29582,-1.01461 0.0894,-0.57772 1.01435,0.31994 2.20906,-0.54778 3.30228,-2.39846 0.94211,-1.59487 2.67912,-3.41685 3.86002,-4.04885 1.59334,-0.85273 1.25747,-0.10271 -1.30228,2.90808 -1.89715,2.23144 -5.00395,6.90738 -6.904,10.39097 l -3.45463,6.33381 2.95463,-1.88872 c 1.62505,-1.03879 4.75463,-3.29918 6.95463,-5.02308 2.2,-1.72391 5.8,-4.40285 8,-5.9532 l 4,-2.81883 -4.56836,4.34282 c -4.6838,4.45258 -7.18568,6.43858 -12.43164,9.8683 l -3,1.96135 3.12427,0.007 c 4.33835,0.009 10.57577,-2.34694 15.88671,-6.00097 2.46896,-1.69868 4.48821,-2.7294 4.48723,-2.29048 -0.006,2.493 -14.79485,9.29803 -20.20727,9.29803 -1.82602,0 -2.8073,0.45092 -2.56475,1.17856 1.44867,4.34602 20.79502,8.29016 29.23423,5.95998 2.12819,-0.58762 3.45773,-0.6956 2.95451,-0.23995 -1.62729,1.47348 -7.61596,3.10141 -11.40917,3.10141 -2.38689,0 -4.31718,0.68663 -5.45036,1.93878 -1.61907,1.78906 -1.63104,2.11514 -0.15498,4.22251 1.71073,2.44242 2.17796,5.3142 0.71777,4.41175 -0.485,-0.29974 -0.84002,1.0237 -0.78892,2.94099 0.0638,2.39363 0.57511,3.51071 1.63181,3.56492 1.03819,0.0533 1.13017,0.24374 0.28269,0.58541 -0.69093,0.27855 -0.95108,1.03053 -0.57811,1.67105 0.37297,0.64052 -0.29922,0.30735 -1.49377,-0.7404 -1.19454,-1.04774 -2.20632,-1.72274 -2.2484,-1.5 -0.0421,0.22275 -0.22727,1.19249 -0.41152,2.15499 -0.18425,0.9625 0.0447,1.75 0.5089,1.75 0.46415,0 0.60302,1.9125 0.30861,4.25 -0.78136,6.20369 -0.77391,6.99487 0.0918,9.75 0.71696,2.28168 0.66454,2.34171 -0.60027,0.68734 -1.24004,-1.62197 -1.34572,-1.39205 -1.00453,2.18566 0.29158,3.05744 -0.12347,4.54012 -1.76377,6.30078 -1.51153,1.62244 -2.05759,3.31548 -1.84889,5.73243 0.25539,2.95775 0.66985,3.44559 3.01037,3.54334 2.41154,0.10072 2.64814,-0.16892 2.12178,-2.4181 -0.77987,-3.33246 -0.7856,-3.09572 0.1567,-6.47394 l 0.82076,-2.94249 0.90245,2.43956 c 0.49635,1.34176 0.8544,4.69088 0.79566,7.44249 -0.0587,2.75161 -0.10953,5.84078 -0.11289,6.86483 -0.003,1.02404 0.7125,2.65594 1.59079,3.62644 1.4628,1.61639 1.46199,1.81631 -0.01,2.38104 -0.88361,0.33907 -1.29679,1.11772 -0.91818,1.73032 0.49494,0.80082 0.89993,0.77154 1.44115,-0.10417 0.51242,-0.82912 1.33952,-0.22467 2.5906,1.89324 2.12518,3.59756 3.40668,3.99338 3.40668,1.05221 0,-1.30174 -0.42461,-1.79659 -1.15451,-1.34549 -0.72904,0.45057 -0.88248,0.27338 -0.41636,-0.48081 0.40597,-0.65689 0.20489,-4.3558 -0.44686,-8.21981 -0.65175,-3.86401 -0.92882,-7.28166 -0.6157,-7.59477 0.31311,-0.31312 1.91443,-0.0121 3.55847,0.66885 1.64405,0.68099 3.12098,1.11552 3.28207,0.96562 0.92339,-0.8592 4.79289,2.45139 4.79289,4.10061 0,1.08065 0.5625,1.97171 1.25,1.98013 0.845,0.0103 0.77255,0.31725 -0.22361,0.94722 -0.81048,0.51254 -1.71048,0.57868 -2,0.14697 -0.80472,-1.19996 -5.02486,-2.04732 -6.80131,-1.36563 -1.10575,0.42431 0.0431,1.38435 3.81628,3.18896 4.96623,2.37523 5.47723,2.94145 6.38454,7.07452 0.89895,4.09496 1.01539,4.22709 1.31545,1.49265 0.18105,-1.65 0.82509,-3.98585 1.4312,-5.19077 z m -8.66247,-15.32554 c 0.34547,-0.55897 1.04702,-0.75742 1.55902,-0.44098 1.38704,0.85723 1.12841,1.45729 -0.62812,1.45729 -0.85746,0 -1.27636,-0.45734 -0.9309,-1.01631 z m -7.51008,-2.98369 c 0,-0.55 0.675,-1 1.5,-1 0.825,0 1.5,0.45 1.5,1 0,0.55 -0.675,1 -1.5,1 -0.825,0 -1.5,-0.45 -1.5,-1 z m 7.25569,-0.5076 c -0.50072,-0.89472 -2.54723,-1.60614 -5.0342,-1.75 l -4.1905,-0.2424 0.0574,-10.23602 c 0.0316,-5.62982 0.41484,-10.45695 0.85173,-10.72696 0.43689,-0.27001 0.3046,-2.32575 -0.29398,-4.56831 -1.14307,-4.28254 -0.20801,-5.93808 3.35388,-5.93808 1.22226,0 1.24878,0.15918 0.14324,0.85968 -0.95751,0.60671 -0.58968,0.85969 1.25,0.85969 1.43372,0 2.60676,-0.39375 2.60676,-0.875 0,-0.48125 -0.525,-0.875 -1.16667,-0.875 -0.64166,0 -0.93963,-0.22703 -0.66215,-0.50451 0.27748,-0.27748 1.83748,-0.0398 3.46666,0.52811 2.0297,0.70755 2.99073,1.73204 3.05292,3.2545 0.0499,1.22205 0.30497,4.2469 0.56677,6.7219 0.26181,2.475 0.0621,5.02483 -0.44372,5.66628 -0.55567,0.70463 -0.56385,3.82254 -0.0207,7.87673 1.13126,8.44348 -1.00994,14.46581 -3.53746,9.94939 z m -2.80039,-14.83606 c 1.68529,-1.23231 1.57683,-1.35107 -1.30887,-1.43311 -3.01136,-0.0856 -3.91044,0.67943 -2.47976,2.1101 0.96727,0.96728 1.72517,0.83185 3.78863,-0.67699 z m 1.13634,-9.59071 c 2.14831,0.40492 4.40836,-0.14141 4.40836,-1.06563 0,-0.55 -0.7875,-1.03163 -1.75,-1.07029 -1.48945,-0.0598 -1.45223,-0.19272 0.25,-0.89266 1.92693,-0.79233 1.93129,-0.85031 0.11944,-1.58681 -2.41299,-0.98085 -9.32679,2.48382 -7.39842,3.70752 0.70344,0.44639 0.82898,0.8254 0.27898,0.84224 -0.55,0.0168 -0.33688,0.44998 0.47361,0.96253 0.92959,0.58786 1.70177,0.56272 2.09164,-0.0681 0.33992,-0.55 1.02679,-0.92296 1.52639,-0.8288 z m -10.39669,3.43437 c 0.0204,-1.65 0.2445,-2.20394 0.49804,-1.23097 0.25354,0.97297 0.23687,2.32297 -0.037,3 -0.27393,0.67703 -0.48137,-0.11903 -0.46099,-1.76903 z m 6.80505,-45.89301 c 0,-0.21616 0.69837,-0.661 1.55194,-0.98855 0.88992,-0.34149 1.29132,-0.17385 0.94098,0.39301 -0.58726,0.95021 -2.49292,1.40545 -2.49292,0.59554 z m 38.75,-16.26927 c 0.6875,-0.27741 1.8125,-0.27741 2.5,0 0.6875,0.27741 0.125,0.50439 -1.25,0.50439 -1.375,0 -1.9375,-0.22698 -1.25,-0.50439 z m 40.52167,104.03268 c -1.42314,-2.54628 -2.68686,-5.89232 -2.80827,-7.43565 -0.24066,-3.05924 -3.49825,-8.90756 -6.16744,-11.07233 -1.15672,-0.93813 -1.446,-0.97314 -0.9289,-0.11242 0.92584,1.54107 0.13254,1.58774 -2.55348,0.15023 -1.58944,-0.85064 -1.88193,-0.81984 -1.2912,0.13598 0.42006,0.67967 0.81186,2.03499 0.87068,3.01184 0.0588,0.97685 2.35694,4.35323 5.10694,7.50307 2.75,3.14984 6.02872,7.23941 7.28605,9.08793 3.26506,4.80029 3.51406,4.14981 0.48562,-1.26865 z m -9.27167,-15.42942 c 0,-0.58246 0.45,-0.7809 1,-0.44098 0.55,0.33992 1,0.81648 1,1.05902 0,0.24254 -0.45,0.44098 -1,0.44098 -0.55,0 -1,-0.47656 -1,-1.05902 z m 15.16801,18.66285 c 0.54845,0.33897 0.27346,-0.78323 -0.61109,-2.49377 -0.88456,-1.71053 -1.83756,-3.11006 -2.11778,-3.11006 -0.28023,0 -0.0437,0.87042 0.52568,1.93426 1.30272,2.43416 1.31949,3.35949 0.0466,2.57282 -0.59107,-0.3653 -0.71832,0.0932 -0.31648,1.14042 0.41683,1.08622 0.8247,1.29348 1.07396,0.54571 0.22104,-0.66312 0.85062,-0.92834 1.39908,-0.58938 z m -144.2483,-3.60383 c 1.12265,-2.35727 1.10183,-2.38918 -0.36454,-0.55887 -0.85535,1.06762 -1.55517,2.38012 -1.55517,2.91667 0,1.27054 0.4619,0.70323 1.91971,-2.3578 z m 37.7634,-2.1875 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m -36.33803,-2.35563 c -0.32569,-0.84872 -0.80663,-1.32866 -1.06875,-1.06653 -0.26213,0.26213 -0.17998,0.95654 0.18255,1.54313 0.98605,1.59546 1.56238,1.28551 0.8862,-0.4766 z m 79.89712,-0.43275 c 1.38156,-1.08673 2.72849,-2.80405 2.9932,-3.81628 0.45623,-1.74463 0.24145,-1.76363 -4.12706,-0.36518 -5.68856,1.82102 -5.42388,1.58779 -4.63226,4.08198 0.82582,2.60193 2.54702,2.63163 5.76612,0.0995 z M 432.3351,469.8702 c 0.83531,-1.99917 2.41875,-4.85218 3.51876,-6.34002 1.3185,-1.78337 2.18063,-4.93347 2.53005,-9.24444 0.58773,-7.25107 -0.6144,-9.32076 -3.1585,-5.43797 -1.86316,2.84355 -6.77532,22.42075 -5.95761,23.74383 0.94952,1.53636 1.48787,1.05872 3.0673,-2.7214 z m 68.78808,0.4874 c -0.38459,-0.62226 0.62562,-0.88335 2.63457,-0.6809 2.81565,0.28375 3.38897,-0.0571 4.21994,-2.50914 1.25207,-3.69455 0.0634,-4.72572 -4.26338,-3.69831 l -3.5,0.83109 4,0.13416 c 3.60634,0.12096 3.82256,0.26872 2.197,1.50136 -1.34922,1.0231 -1.47506,1.49859 -0.5,1.88925 0.71665,0.28713 0.31706,0.55758 -0.88798,0.601 -1.20504,0.0434 -2.4691,-0.37105 -2.80902,-0.92105 -1.22689,-1.98515 -2.5,-0.9366 -2.5,2.05902 0,1.81743 0.4125,2.80408 1.01631,2.4309 0.55897,-0.34546 0.73562,-1.08228 0.39256,-1.63738 z m 19.59113,-1.86785 c 0.94075,-0.61757 1.12717,-1.26432 0.5,-1.73469 -0.55,-0.4125 -1,-1.5375 -1,-2.5 0,-3.45747 -1.8411,-2.16832 -2.14222,1.5 -0.32089,3.90906 0.13481,4.3807 2.64222,2.73469 z m 39,-1.3297 c 0,-0.18976 -0.96548,-1.20226 -2.14551,-2.25 -2.13401,-1.89478 -2.13918,-1.89293 -0.96482,0.34501 0.97478,1.85759 3.11033,3.16556 3.11033,1.90499 z m -15.94004,-13.10499 c 0.59242,-0.5987 0.94004,-0.51926 0.94004,0.21482 0,0.64065 0.87398,1.63255 1.94217,2.20423 1.86203,0.99653 1.91833,0.74006 1.36425,-6.21481 -0.31786,-3.98983 -0.94801,-7.72766 -1.40032,-8.30628 -0.45232,-0.57862 -0.60699,-2.15362 -0.34372,-3.5 0.42385,-2.16763 0.36985,-2.21893 -0.47157,-0.44796 -0.52263,1.1 -0.98187,3.2375 -1.02052,4.75 -0.10835,4.23923 -3.32898,3.49127 -7.64461,-1.7754 -5.21525,-6.36451 -5.61463,-4.64433 -0.60668,2.61299 4.16557,6.03656 5.12037,9.21381 3.1372,10.43948 -0.5741,0.35481 -1.6991,0.10127 -2.5,-0.56342 -2.30274,-1.91111 -1.7984,0.41999 1.2938,5.98007 l 2.75,4.94476 0.80996,-4.69424 c 0.44548,-2.58183 1.23298,-5.12174 1.75,-5.64424 z m 12.94004,7.61667 c 0,-0.45834 -0.32589,-1.15923 -0.7242,-1.55754 -0.39832,-0.39831 -0.80796,-2.2098 -0.91032,-4.02553 -0.10237,-1.81573 -1.61386,-5.50234 -3.35889,-8.19246 -2.08585,-3.21554 -2.95834,-4.03469 -2.54684,-2.39114 0.34426,1.375 0.8608,3.62475 1.14788,4.99945 1.18216,5.66093 6.39237,14.76296 6.39237,11.16722 z m -53,-12.43778 c 1.02084,-0.3886 0.80011,-0.59621 -0.69098,-0.64994 -1.20504,-0.0434 -2.43031,0.30828 -2.72282,0.78157 -0.70517,1.141 0.6132,2.41916 1.34549,1.30445 0.31257,-0.47579 1.24331,-1.12203 2.06831,-1.43608 z m 4,-0.28791 c 0,-0.85746 -0.45,-1.2809 -1,-0.94098 -0.55,0.33992 -1,1.04148 -1,1.55902 0,0.51754 0.45,0.94098 1,0.94098 0.55,0 1,-0.70156 1,-1.55902 z m 29.34934,-0.90895 c 0.30982,-0.80739 0.13297,-1.73395 -0.39301,-2.05902 -0.52598,-0.32508 -0.95633,0.33551 -0.95633,1.46797 0,2.41457 0.55611,2.65816 1.34934,0.59105 z m 6.31294,-6.78203 c -0.27741,-0.6875 -0.50439,-0.125 -0.50439,1.25 0,1.375 0.22698,1.9375 0.50439,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m -1.66228,1.80902 c 0,-0.24254 -0.45,-0.7191 -1,-1.05902 -0.55,-0.33992 -1,-0.14148 -1,0.44098 0,0.58246 0.45,1.05902 1,1.05902 0.55,0 1,-0.19844 1,-0.44098 z m -20,-13.02764 c 0,-0.92914 -0.5818,-1.24535 -1.58385,-0.86083 -1.27522,0.48935 -1.32393,0.77253 -0.25,1.4533 1.77612,1.12588 1.83385,1.10723 1.83385,-0.59247 z m -71.116,-7.38837 c -0.0638,-3.10365 -0.32286,-4.85 -0.57568,-3.88077 -0.25283,0.96924 -0.9521,1.45792 -1.55394,1.08596 -0.69662,-0.43054 -0.86668,-0.0832 -0.46799,0.95573 0.34444,0.89761 0.19592,1.89799 -0.33006,2.22306 -1.05101,0.64956 -1.30955,4.78646 -0.35856,5.73744 0.32877,0.32877 1.22877,0.35563 2,0.0597 0.99435,-0.38157 1.36849,-2.1795 1.28623,-6.1811 z m 91.388,5.60699 c 0.7236,-2.06192 -1.99606,-9.82775 -3.93942,-11.24876 -2.82147,-2.06311 -3.32416,-0.84104 -1.33566,3.24709 1.00058,2.05707 1.61479,4.07093 1.36491,4.47523 -0.6003,0.97131 1.46303,4.77644 2.59002,4.77644 0.48482,0 1.07888,-0.5625 1.32015,-1.25 z m -21.50094,-5.56318 c 0.24358,-0.73075 -0.21359,-0.95424 -1.1875,-0.58051 -0.87096,0.33422 -1.58356,1.04702 -1.58356,1.58401 0,1.31439 2.27278,0.49134 2.77106,-1.0035 z m -22.80169,-34.68682 c 0,-0.55 -0.43621,-0.325 -0.96937,0.5 -0.53316,0.825 -0.96937,1.95 -0.96937,2.5 0,0.55 0.43621,0.325 0.96937,-0.5 0.53316,-0.825 0.96937,-1.95 0.96937,-2.5 z m -41.96937,-0.0276 c 0,-0.81461 -0.6065,-1.17686 -1.43686,-0.85823 -0.79027,0.30326 -1.19312,1.18655 -0.89521,1.96288 0.64802,1.68871 2.33207,0.89102 2.33207,-1.10465 z m 35.28975,0.52763 c -0.28766,-1.1 -0.93636,-2 -1.44156,-2 -0.50747,0 -0.43953,0.89508 0.15181,2 0.5887,1.1 1.23741,2 1.44156,2 0.20416,0 0.13585,-0.9 -0.15181,-2 z m 44.15647,-0.27955 c -0.60414,-1.57436 -3.36689,-3.13312 -4.15546,-2.34454 -0.23265,0.23264 0.58651,1.36348 1.82035,2.51298 2.46494,2.29644 3.259,2.23916 2.33511,-0.16844 z m -31.95386,-17.22045 c 0.43777,-2.07184 0.34239,-2.53592 -0.30828,-1.5 -1.52772,2.43228 -2.57968,6.66398 -1.36724,5.5 0.5729,-0.55 1.32688,-2.35 1.67552,-4 z m -18.49709,-2.21232 c -1.08961,-1.69929 -1.11783,-1.69711 -0.57078,0.0441 0.31653,1.00748 0.61104,2.35748 0.65446,3 0.057,0.84316 0.21579,0.83088 0.57077,-0.0441 0.27051,-0.66678 -0.024,-2.01678 -0.65445,-3 z m -3.8732,-16.96268 c -1.17884,-2.02721 -1.46351,-1.37835 -0.49853,1.13634 0.34294,0.8937 0.83419,1.41426 1.09166,1.15679 0.25747,-0.25747 -0.009,-1.28938 -0.59313,-2.29313 z m 15.87793,-2.26598 c 0,-0.51754 -0.48153,-1.23859 -1.07008,-1.60233 -0.58854,-0.36374 -1.46002,-1.6278 -1.93661,-2.80902 l -0.86654,-2.14767 -0.0634,2.25 c -0.0349,1.2375 -0.51339,2.25 -1.06339,2.25 -0.55,0 -1,0.675 -1,1.5 0,1 1,1.5 3,1.5 1.65,0 3,-0.42344 3,-0.94098 z m -17.33772,-4.30902 c -0.27741,-0.6875 -0.50438,-0.125 -0.50438,1.25 0,1.375 0.22697,1.9375 0.50438,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m 29,-6 c -0.27741,-0.6875 -0.50439,-0.125 -0.50439,1.25 0,1.375 0.22698,1.9375 0.50439,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m -28.66228,1.30902 c 0,-0.51754 -0.45,-1.2191 -1,-1.55902 -0.55,-0.33992 -1,0.0835 -1,0.94098 0,0.85746 0.45,1.55902 1,1.55902 0.55,0 1,-0.42344 1,-0.94098 z m 11,-3.66667 c 0,-0.82763 -1.94173,-1.29565 -2.38691,-0.57533 -0.28881,0.46731 0.13009,0.84965 0.9309,0.84965 0.8008,0 1.45601,-0.12345 1.45601,-0.27432 z m 7.5,-0.39235 c 0.33992,-0.55 0.14148,-1 -0.44098,-1 -0.58246,0 -1.05902,0.45 -1.05902,1 0,0.55 0.19844,1 0.44098,1 0.24254,0 0.7191,-0.45 1.05902,-1 z m -7.5,-6 c 0,-1.19413 -2.72111,-1.19413 -5.5,0 -1.60437,0.68942 -1.2582,0.87333 1.75,0.92971 2.0625,0.0387 3.75,-0.37971 3.75,-0.92971 z m 11,0 c -1.96549,-1.2702 -5,-1.2702 -5,0 0,0.55 1.4625,0.99311 3.25,0.98469 2.46622,-0.0116 2.88826,-0.24909 1.75,-0.98469 z m 10.01365,320 c -0.19219,-2.35185 -0.42353,-2.79736 -0.70522,-1.3581 -0.30379,1.55224 -0.95455,2.0019 -2.36381,1.63337 -1.71297,-0.44796 -1.94462,-1.42237 -1.94462,-8.17991 0,-4.21926 -0.6714,-13.05427 -1.49201,-19.63337 -0.82061,-6.57909 -1.49561,-14.29016 -1.5,-17.1357 -0.009,-5.95284 1.93473,-15.32629 3.17846,-15.32629 0.46362,0 1.69833,1.40656 2.7438,3.1257 l 1.90085,3.1257 2.06768,-4.05299 c 1.13722,-2.22914 3.001,-4.34922 4.14173,-4.71127 1.14073,-0.36205 2.53508,-1.85727 3.09854,-3.32271 l 1.02449,-2.66443 1.51078,4 c 2.82249,7.47289 4.32574,13.92384 4.30355,18.46793 -0.0247,5.0509 -9.3614,35.36652 -10.16343,32.99982 -0.75892,-2.23949 -2.0307,7.73896 -1.31217,10.29533 0.49301,1.75401 0.40202,1.91309 -0.42145,0.73692 -0.82518,-1.17861 -1.07883,-0.75008 -1.18382,2 l -0.13363,3.5 -0.71708,-3 -0.71708,-3 -0.51477,3 -0.51478,3 -0.28601,-3.5 z m 4.55714,-20.76254 c -0.62661,-0.62662 -2.56849,8.73255 -2.48054,11.95536 0.0547,2.00642 0.62208,0.36745 1.44243,-4.16706 0.7437,-4.11083 1.21085,-7.61556 1.03811,-7.7883 z m 2.11232,3.57504 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36781,-1.1948 0.0789,-1.91667 z m -7.99012,-6.54347 c -0.25354,-0.97297 -0.47766,-0.41903 -0.49804,1.23097 -0.0204,1.65 0.18706,2.44606 0.46099,1.76903 0.27392,-0.67703 0.29059,-2.02703 0.037,-3 z M 510.439,613.273 c -0.22256,-1.79735 -0.40925,-0.56791 -0.41486,2.73209 -0.006,3.3 0.17648,4.77056 0.40466,3.26791 0.22817,-1.50265 0.23276,-4.20265 0.0102,-6 z m 7.53613,1.46951 c -0.39274,-1.02347 -0.20087,-1.31838 0.55414,-0.85175 0.82258,0.50838 0.99112,-0.2357 0.58575,-2.58596 -0.4427,-2.56667 -0.32254,-2.96648 0.5409,-1.79971 0.84918,1.14752 1.04548,0.12907 0.83535,-4.33407 -0.15107,-3.20874 -0.83769,-6.30134 -1.52583,-6.87244 -0.68811,-0.57111 -1.25113,-1.65828 -1.25113,-2.41593 0,-0.75766 -0.39037,-1.37756 -0.86749,-1.37756 -1.06084,0 -2.90843,8.90482 -2.64029,12.72542 0.1071,1.52602 0.26517,4.41995 0.35126,6.43096 0.13212,3.08635 0.45753,3.57766 2.08732,3.15146 1.25838,-0.32907 1.72159,-1.05012 1.33006,-2.07042 z m 6.64779,-7.73742 c 0.0334,-2.2 -0.37545,-4.675 -0.90861,-5.5 -0.68945,-1.06684 -0.9738,0.12434 -0.98469,4.125 -0.008,3.09375 -0.24608,7.14375 -0.52814,9 l -0.51283,3.375 1.43675,-3.5 c 0.79022,-1.925 1.4641,-5.3 1.49752,-7.5 z M 507.699,603.08842 c 0.0216,-2.70515 -0.98031,-1.3841 -1.5502,2.04398 -0.35833,2.15548 -0.22634,2.49819 0.52866,1.37269 0.55342,-0.825 1.01312,-2.3625 1.02154,-3.41667 z m -91.72991,-76.52013 c 0.13487,-2.77688 0.58272,-5.05211 0.99522,-5.05606 1.12894,-0.0108 0.90176,8.781 -0.24522,9.48987 -0.62129,0.38398 -0.90308,-1.2819 -0.75,-4.43381 z m 155.69938,2.85112 c -0.61391,-1.1471 -0.85474,-2.3471 -0.53518,-2.66666 0.31956,-0.31956 0.58102,-0.0882 0.58102,0.51421 0,0.60239 0.70714,1.80239 1.57143,2.66667 0.86428,0.86429 1.10512,1.57143 0.53518,1.57143 -0.56993,0 -1.53853,-0.93854 -2.15245,-2.08565 z m 4.55292,1.0971 c -0.35034,-0.56686 0.0511,-0.7345 0.94098,-0.39301 1.10553,0.42423 1.55194,-0.0219 1.55194,-1.55088 0,-1.77096 0.23906,-1.92309 1.36668,-0.86974 1.15157,1.07572 1.11222,1.47042 -0.25,2.50762 -1.98867,1.51419 -2.81938,1.58461 -3.6096,0.30601 z m -155.18316,-4.77997 c 0.20888,-2.34768 0.67145,-4.56018 1.02793,-4.91667 1.06738,-1.06738 0.70088,6.06172 -0.39509,7.68519 -0.73829,1.09363 -0.90973,0.34359 -0.63284,-2.76852 z m -8.25546,2.26852 c -0.59607,-2.79676 -0.47425,-8.50112 0.18154,-8.5006 0.4125,3.3e-4 0.75,-1.13596 0.75,-2.52508 0,-2.47494 0.0593,-2.49503 2.95034,-1 1.62269,0.83912 4.43519,1.53257 6.25,1.54099 2.14971,0.01 2.8415,0.30585 1.98501,0.84897 -0.72305,0.45851 -2.41055,0.62416 -3.75,0.36811 -1.60318,-0.30646 -2.45701,10e-4 -2.49874,0.90103 -0.0349,0.75162 -0.49858,0.2778 -1.03048,-1.05294 -1.41778,-3.54704 -3.21192,-1.21142 -3.98989,5.19407 -0.34905,2.874 -0.73055,4.77545 -0.84778,4.22545 z m 154.20855,-0.72546 c -1.29899,-1.64147 -2.25838,-6.88106 -1.13255,-6.18526 0.47055,0.29081 0.85554,1.60064 0.85554,2.91072 0,1.31008 0.45,2.66008 1,3 1.22318,0.75596 1.30765,-3.46609 0.10726,-5.3607 -0.89695,-1.41566 -0.34611,-5.14149 0.75937,-5.13636 0.34835,0.002 0.66873,1.61489 0.71194,3.58504 0.0432,1.97015 0.54005,3.88132 1.10407,4.24705 0.64494,0.4182 0.39046,1.3235 -0.68576,2.43951 -1.35661,1.40678 -1.92029,1.5104 -2.71987,0.5 z m 7.32998,-0.35633 c -0.81872,-2.13354 -0.769,-3.91355 0.0855,-3.05911 0.76461,0.76462 1.52324,4.6409 0.90827,4.6409 -0.2127,0 -0.65988,-0.7118 -0.99372,-1.58179 z m 3.39301,-2.97723 c 0,-0.85746 0.45,-1.2809 1,-0.94098 0.55,0.33992 1,1.04148 1,1.55902 0,0.51754 -0.45,0.94098 -1,0.94098 -0.55,0 -1,-0.70156 -1,-1.55902 z m -5,-2.44098 c 0,-0.55 0.70156,-1 1.55902,-1 0.85746,0 1.2809,0.45 0.94098,1 -0.33992,0.55 -1.04148,1 -1.55902,1 -0.51754,0 -0.94098,-0.45 -0.94098,-1 z m 3.25292,-3.52758 c -0.83824,-2.73123 -0.74585,-3.45302 0.50332,-3.93238 0.84151,-0.32291 1.76561,-0.35152 2.05355,-0.0636 0.28795,0.28795 -10e-4,0.52354 -0.64312,0.52354 -1.66325,0 -1.45017,3.78795 0.23494,4.17668 1.12305,0.25906 1.15083,0.55364 0.13981,1.48215 -0.98672,0.90619 -1.48565,0.42951 -2.2885,-2.18641 z m -5.25292,-0.29096 c 0,-1.20855 1.8972,-2.61759 2.5907,-1.9241 0.2517,0.2517 -0.22824,1.02686 -1.06653,1.72258 -0.95039,0.78875 -1.52417,0.86462 -1.52417,0.20152 z m 10.15789,-1.18146 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m -17.07894,-0.58333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 24.73355,-4.09978 c 0.72187,-0.28887 1.58437,-0.25335 1.91667,0.0789 0.33229,0.33229 -0.25834,0.56864 -1.3125,0.52522 -1.16495,-0.048 -1.4019,-0.28494 -0.60417,-0.60416 z m -7.79719,-1.52158 c -0.0196,-2.18674 -5.97239,-3.42383 -8.91001,-1.85166 -3.22679,1.72692 -2.50104,0.51608 1.1447,-1.90982 2.59819,-1.72886 2.77363,-2.0279 0.87477,-1.49107 -1.30638,0.36933 -2.18927,0.2858 -1.96198,-0.18563 0.22728,-0.47142 -1.06636,-2.28107 -2.87477,-4.02145 -3.23728,-3.11549 -4.15638,-3.25732 -2.3233,-0.35852 0.62358,0.98612 0.48259,1.98339 -0.42413,3 -0.74703,0.83756 -1.54393,2.64784 -1.77089,4.02284 l -0.41265,2.5 -1.39021,-3 c -2.08675,-4.50308 -1.81593,-8.71687 0.69089,-10.75 1.18675,-0.9625 2.78425,-1.75 3.55,-1.75 0.76575,0 2.03283,-0.5625 2.81574,-1.25 0.7829,-0.6875 0.64858,-0.31531 -0.29851,0.82709 -1.6443,1.9834 -1.62055,2.17237 0.52653,4.18945 1.23668,1.1618 2.69851,2.18058 3.24851,2.26395 1.33619,0.20254 7.62098,2.72819 9.5,3.81772 0.825,0.47837 1.5,1.84963 1.5,3.04725 0,1.19762 0.675,2.60418 1.5,3.1257 0.825,0.52152 1.05,0.94821 0.5,0.94821 -0.55,0 -1.66312,-0.41935 -2.47361,-0.9319 -0.97187,-0.6146 -1.73274,-0.52427 -2.23468,0.26532 -0.51968,0.81747 -0.76594,0.65651 -0.7764,-0.50748 z m 1.54356,-3.32711 c -1.06762,-0.80751 -2.86762,-1.43396 -4,-1.39212 -1.45213,0.0537 -1.02743,0.47328 1.44113,1.42392 4.5387,1.74785 4.90575,1.74328 2.55887,-0.0318 z"
- id="path3024"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#6e6e6e"
- d="m 474.84372,673.50434 c -3.35147,-0.79149 -8.69751,-4.99928 -6.35163,-4.99928 0.67222,0 1.22222,0.46114 1.22222,1.02475 0,1.37631 3.87641,2.76635 9.64587,3.45892 2.60707,0.31295 4.95328,0.78215 5.2138,1.04267 0.72807,0.72807 -5.94642,0.36653 -9.73026,-0.52706 z m 33.09385,0.31189 c -1.43577,-0.5574 -5.24082,-7.5371 -5.19065,-9.52133 0.0179,-0.70941 0.97814,0.8542 2.13378,3.47468 2.17707,4.93666 5.82644,7.14265 8.08303,4.88606 0.78082,-0.78082 1.47686,-0.79271 2.38298,-0.0407 0.7075,0.58717 1.85866,0.69951 2.5738,0.25117 0.71159,-0.44612 2.0813,-0.68158 3.0438,-0.52323 0.9625,0.15834 1.75,-0.19039 1.75,-0.77496 0,-0.58457 0.54643,-1.06286 1.21429,-1.06286 0.83721,0 0.75847,0.45581 -0.25357,1.46785 -1.46214,1.46214 -13.18306,2.835 -15.73746,1.84332 z m -21.04294,-2.06117 c 0.81966,-0.9625 2.07497,-3.22693 2.78959,-5.03206 0.71461,-1.80514 1.50132,-3.08004 1.74825,-2.83311 0.82083,0.82082 -3.58488,9.61517 -4.81692,9.61517 -0.84197,0 -0.7569,-0.53349 0.27908,-1.75 z m -1.18032,-17.25 c 0,-0.55 0.47656,-1 1.05902,-1 0.58246,0 0.7809,0.45 0.44098,1 -0.33992,0.55 -0.81648,1 -1.05902,1 -0.24254,0 -0.44098,-0.45 -0.44098,-1 z m -7.40862,-3.25 c -0.35304,-1.2375 -0.90748,-4.72333 -1.2321,-7.74628 -0.32462,-3.02296 -1.42906,-7.97296 -2.45432,-11 -1.58684,-4.68509 -1.78406,-4.93538 -1.3259,-1.68271 0.29601,2.10156 0.80852,4.57656 1.1389,5.5 0.33039,0.92345 0.34691,1.45399 0.0367,1.17899 -0.31018,-0.275 -2.63188,-6.83647 -5.15933,-14.58103 -5.24669,-16.07688 -5.70893,-21.67262 -2.59535,-31.41897 1.15748,-3.62323 2,-9.01406 2,-12.79694 0,-8.23172 0.86328,-7.73644 1.11461,0.63948 0.15283,5.09357 0.55429,6.44507 2.17154,7.3106 1.618,0.86593 1.7285,1.23859 0.59895,2.01985 -1.01617,0.70285 -0.83455,0.80492 0.68186,0.38322 3.01141,-0.83744 6.12676,3.00165 7.25771,8.94379 l 0.95165,5 0.11184,-4.28518 c 0.0615,-2.35685 0.73326,-5.28185 1.49278,-6.5 0.75952,-1.21815 1.62092,-4.68982 1.91421,-7.71482 0.52406,-5.40519 0.51095,-5.43966 -0.76057,-2 l -1.29383,3.5 -0.74214,-2.80323 c -0.40818,-1.54178 -0.44579,-5.03726 -0.0836,-7.76774 0.42326,-3.19075 0.0753,-7.72715 -0.97388,-12.69677 -0.89785,-4.25274 -1.71562,-9.08226 -1.81727,-10.73226 -0.10979,-1.78213 -0.74047,-3 -1.55357,-3 -0.75281,0 -1.74098,-0.9 -2.19594,-2 -0.91664,-2.21627 -0.4824,1.90402 1.29872,12.323 0.8468,4.95349 0.80505,6.57792 -0.19279,7.5 -0.98353,0.90885 -1.11293,0.89222 -0.56799,-0.073 0.38815,-0.6875 0.22059,-1.25 -0.37235,-1.25 -1.17189,0 -0.80303,2.29662 1.70919,10.64179 1.49918,4.98004 1.09696,9.67473 -0.66617,7.77543 -0.46831,-0.50447 -2.03289,-5.56457 -3.47685,-11.24466 -1.44396,-5.68009 -3.90105,-13.33009 -5.46019,-17 -1.55914,-3.66991 -3.41117,-9.08292 -4.11562,-12.02891 -0.92033,-3.84875 -1.54365,-4.97459 -2.21462,-4 -0.60483,0.87852 -0.71604,-0.22895 -0.3157,-3.14365 0.39383,-2.86725 0.2838,-4.01518 -0.30325,-3.16379 -2.49631,3.62036 -3.07975,-45.28042 -0.62429,-52.32448 0.76914,-2.20645 1.41203,-5.36173 1.42865,-7.01173 0.0166,-1.65 0.90874,-7.16184 1.98248,-12.24853 1.94033,-9.19207 1.94018,-9.28761 -0.0253,-15.65112 -1.9244,-6.23046 -5.20821,-11.67546 -6.35379,-10.53543 -0.31222,0.31071 -0.97335,3.01071 -1.46918,6 -0.68529,4.1315 -0.96755,4.71554 -1.17685,2.43508 -0.15145,-1.65 -0.20462,-3.81421 -0.11818,-4.80935 0.10247,-1.17965 -1.23449,-0.20141 -3.84156,2.81082 -2.4693,2.85307 -3.99872,3.99742 -3.99872,2.99196 0,-1.17313 -0.55899,-1.45079 -2,-0.99343 -1.72395,0.54716 -2.00211,0.17689 -2.01531,-2.68261 -0.008,-1.82457 -0.45153,-3.99239 -0.98469,-4.81739 -0.66214,-1.02459 -0.97423,1.62895 -0.98469,8.37244 -0.0136,8.78368 0.15479,9.73128 1.52707,8.59239 1.89008,-1.56863 3.09167,-0.49803 3.96774,3.53517 0.41059,1.89022 0.31811,2.53058 -0.24997,1.73105 -1.10181,-1.55072 -5.68808,4.93203 -13.2782,18.76895 -6.25917,11.41057 -6.72976,12.034 -8.55506,11.33357 -0.78479,-0.30115 -1.42689,-0.0228 -1.42689,0.61846 0,0.6413 0.50838,0.85181 1.12973,0.46779 0.68713,-0.42467 0.94455,-0.15396 0.65705,0.69098 -0.25998,0.76406 -1.36769,1.26123 -2.46158,1.10483 -1.26002,-0.18016 -2.39657,0.55279 -3.10131,2 -0.98013,2.01273 -1.04466,1.86818 -0.54268,-1.21563 0.31334,-1.925 1.45351,-5.975 2.53369,-9 1.08019,-3.025 3.95606,-11.33617 6.39084,-18.46928 2.43478,-7.1331 6.19821,-15.95089 8.36319,-19.59508 3.24101,-5.45543 4.1209,-8.11045 4.98126,-15.03073 0.57472,-4.6227 1.49604,-9.97694 2.04738,-11.89831 0.55133,-1.92137 1.00243,-8.26635 1.00243,-14.09996 0,-10.08634 0.13996,-10.79785 2.8536,-14.5066 4.19551,-5.73403 5.70094,-6.73629 16.1464,-10.74961 5.225,-2.00754 11.4125,-4.80066 13.75,-6.20693 3.96737,-2.38683 4.25,-2.8491 4.25,-6.95139 0,-2.41699 -0.70438,-7.00398 -1.56528,-10.19332 -0.8609,-3.18933 -1.67443,-7.03982 -1.80785,-8.55664 -0.13342,-1.51682 -0.84506,-3.31682 -1.58143,-4 -1.08408,-1.00579 -1.18787,-0.95672 -0.54544,0.25785 0.61836,1.16906 0.51551,1.24344 -0.46616,0.33713 -1.39129,-1.28446 -0.46231,-3.71997 1.06004,-2.77911 0.52562,0.32485 0.89123,0.21969 0.81248,-0.23369 -0.0788,-0.45338 -0.0532,-2.84933 0.0568,-5.32433 l 0.19999,-4.5 1.6111,3.5 1.61111,3.5 0.61708,-4.87431 c 0.83868,-6.62465 4.29854,-9.14053 9.0633,-6.59051 2.51389,1.3454 2.5114,3.28277 -0.003,2.48467 -1.83843,-0.5835 -6.06254,1.2309 -6.06254,2.60407 0,1.07347 3.9582,1.75273 4.55802,0.7822 0.68167,-1.10297 10.44198,-1.22295 10.44198,-0.12836 0,0.42777 -0.94278,1.58499 -2.09506,2.5716 -2.42213,2.0739 -1.95953,3.12013 0.96867,2.19075 1.11338,-0.35337 1.80491,-1.2143 1.53672,-1.91318 -0.26983,-0.70319 0.71467,-1.81848 2.20439,-2.49725 l 2.69199,-1.22655 -2.16385,-1.51562 c -1.29464,-0.9068 -3.01056,-1.24689 -4.27167,-0.84663 -2.44099,0.77474 -2.23815,-1.27604 0.28355,-2.86669 3.94517,-2.48855 7.97007,1.1651 9.1718,8.32581 0.41696,2.48447 0.42416,2.48609 1.1602,0.26125 1.04146,-3.14804 2.51326,-1.80243 2.51326,2.29777 0,1.89254 0.45,3.44098 1,3.44098 1.66322,0 1.12106,2.83287 -0.74167,3.87531 -0.95792,0.53607 -1.44664,1.26971 -1.08605,1.6303 0.36059,0.3606 -0.20566,3.76365 -1.25833,7.56235 -1.05267,3.7987 -1.91395,9.15676 -1.91395,11.90681 l 0,5.00009 6.75,3.35758 c 3.7125,1.84668 10.24678,4.616 14.52062,6.15404 12.94354,4.65806 15.07903,8.44413 16.78614,29.76056 1.55941,19.47209 2.28136,22.53537 7.85276,33.31963 6.35658,12.30407 13.30523,31.09027 12.53069,33.87765 -0.38335,1.37957 -0.27746,1.63463 0.32195,0.77551 1.10873,-1.58914 4.51153,9.90336 3.6201,12.2264 -0.8889,2.31643 -2.38446,1.87651 -2.36695,-0.69623 0.0124,-1.81944 0.20082,-1.96296 0.98469,-0.75 1.5521,2.4017 1.1476,0.18611 -0.57374,-3.14259 -0.86555,-1.6738 -1.84805,-2.76895 -2.18333,-2.43367 -0.33528,0.33527 -0.0771,1.14209 0.57374,1.79293 1.43215,1.43215 1.57783,3.14518 0.19478,2.29041 -0.56686,-0.35034 -0.7345,0.0511 -0.39301,0.94098 1.03304,2.69204 -0.37261,1.68577 -2.53688,-1.81609 -2.29157,-3.70784 -2.64055,-5.09548 -1.03136,-4.10094 0.57762,0.35698 0.12762,-1.0723 -1,-3.17618 -1.12761,-2.10388 -2.0502,-4.37874 -2.0502,-5.05524 0,-1.84388 -6.05814,-8.38171 -7.14455,-7.71027 -1.21812,0.75284 -4.00445,-1.53924 -3.28542,-2.70265 0.3014,-0.48768 -0.127,-0.88669 -0.952,-0.88669 -1.71541,0 -3.06843,1.65949 -1.76483,2.16459 1.27424,0.49372 5.22233,9.90418 4.58671,10.93264 -0.29908,0.48392 0.13325,0.62006 0.96074,0.30252 1.6032,-0.6152 5.58735,3.41829 11.26622,11.40573 3.39406,4.77383 3.51094,7.5704 0.19082,4.56573 -1.70739,-1.54516 -1.86695,-1.55891 -1.31211,-0.11303 0.3474,0.90533 0.32671,2.13945 -0.046,2.74249 -0.92394,1.49496 -3.76309,-0.87161 -3.10454,-2.58777 0.26734,-0.69667 -0.27468,-1.86207 -1.20449,-2.58979 -1.5368,-1.20277 -1.56639,-1.14121 -0.32535,0.67689 0.75086,1.1 -0.25495,0.2 -2.23513,-2 -3.54414,-3.93757 -4.73797,-6.30275 -2.47557,-4.90451 0.72104,0.44563 0.88282,0.27393 0.4309,-0.45729 -0.39798,-0.64395 -1.1081,-0.93319 -1.57804,-0.64275 -1.25383,0.77491 -4.07499,-3.6239 -10.29891,-16.05826 -4.35184,-8.69424 -5.87687,-13.0299 -7.12293,-20.25045 -0.87203,-5.05319 -1.58552,-9.42826 -1.58552,-9.72237 0,-0.29411 -0.86241,-0.0732 -1.91647,0.49093 -1.92538,1.03043 -4.42228,7.34392 -5.639,14.25842 -0.40241,2.28682 -0.0602,5.74482 0.8907,9 0.8493,2.90745 1.80265,7.53277 2.11855,10.27848 0.31589,2.74571 1.23077,7.69571 2.03305,11 0.80229,3.30429 1.87924,11.60109 2.39323,18.43733 0.77941,10.36651 0.615,14.9191 -0.99054,27.42893 -1.9322,15.05502 -4.34187,26.7335 -3.33054,16.14154 0.35743,-3.74359 -0.19219,-2.43229 -2.1873,5.21847 -1.61105,6.17798 -3.06937,9.96837 -3.68813,9.58595 -0.62701,-0.38751 -0.76824,0.0325 -0.36461,1.08433 0.36235,0.94427 -0.23618,4.94654 -1.33006,8.89395 -1.09389,3.94741 -1.98888,8.56264 -1.98888,10.25607 0,1.69343 -0.64286,3.95248 -1.42858,5.0201 -1.3372,1.81697 -1.47227,1.82841 -2.1117,0.17886 -0.37571,-0.96925 -0.37803,-3.21925 -0.005,-5 0.9619,-4.59364 1.19482,-21.72981 0.29542,-21.73413 -0.4125,-0.002 -0.75,0.6714 -0.75,1.4964 0,0.825 -0.675,1.5 -1.5,1.5 -0.825,0 -1.50655,0.7875 -1.51455,1.75 -0.008,0.9625 -0.69939,3.71648 -1.53641,6.11996 -1.36932,3.93195 -1.36555,4.60852 0.0376,6.75 0.85771,1.30902 2.11159,2.38693 2.78641,2.39535 0.91559,0.0114 0.93087,0.20368 0.0602,0.75758 -0.64172,0.40824 -1.35644,2.31385 -1.58826,4.23469 -0.29154,2.41566 -0.90945,3.45366 -2.00415,3.36671 -0.95822,-0.0761 -1.37437,0.41708 -1.05475,1.25 0.84697,2.20719 -0.50434,1.58379 -1.79518,-0.82816 -3.31268,-6.18981 -4.09715,-12.81083 -4.89281,-41.29613 -0.83564,-29.9168 -1.60749,-35.69621 -5.17517,-38.75 -2.03873,-1.74508 -2.03743,-1.75 0.45932,-1.75 2.04661,0 3.71777,-1.58504 3.71777,-3.52617 0,-0.19942 -1.87109,-0.13706 -4.15798,0.13859 -3.8422,0.46312 -4.50673,0.16681 -8.75,-3.90151 -2.52561,-2.42148 -6.09905,-5.4344 -7.94098,-6.69536 -1.84193,-1.26097 -4.20275,-3.69282 -5.24627,-5.40411 -1.04351,-1.71129 -1.89729,-2.66144 -1.89729,-2.11144 0,1.60611 3.88415,7.52119 5.2941,8.06223 0.82844,0.3179 1.1451,1.73734 0.88487,3.96642 -0.47233,4.04579 1.44286,4.79646 2.40965,0.94447 0.51641,-2.05754 0.90022,-2.3061 2.06639,-1.33827 0.7877,0.65374 1.02824,1.45333 0.53455,1.77688 -1.94614,1.27542 -3.30081,5.33933 -2.69669,8.08986 0.71479,3.25443 2.5275,3.13237 4.02077,-0.27075 1.34106,-3.05623 4.60417,-3.24296 6.65855,-0.38102 1.34097,1.86808 1.49322,3.12741 0.755,6.24506 -0.50857,2.14781 -0.87045,15.15947 -0.80418,28.91479 0.084,17.42458 -0.27829,26.79169 -1.19442,30.88538 -1.0202,4.55873 -1.50005,5.45312 -2.14086,3.99033 -0.6356,-1.45087 -0.714,-1.29629 -0.34019,0.67073 0.26717,1.40586 0.0829,5.00586 -0.40949,8 -0.69701,4.23842 -0.45305,7.61559 1.10174,15.25125 1.93869,9.52101 1.9478,10.19256 0.31217,23 -0.92803,7.26669 -1.48488,16.65681 -1.2397,20.90475 0.5128,8.88454 -0.14303,10.86923 -2.89353,8.75656 -1.00441,-0.77151 -1.50454,-1.0209 -1.11139,-0.55422 0.98368,1.16786 -0.97902,4.58555 -2.63353,4.58555 -0.7415,0 -1.63704,-1.0125 -1.99007,-2.25 z m 3.95623,-15.56217 c -2.00046,-7.89176 -2.54761,-12.52224 -2.54761,-21.56003 0,-6.33037 -0.37637,-11.74238 -0.83639,-12.02668 -0.46001,-0.28431 -0.89647,-2.11514 -0.9699,-4.06853 -0.23417,-6.22894 -3.09099,-9.50808 -5.03786,-5.78259 -0.84839,1.62347 0.77719,18.79417 2.39046,25.25 0.34361,1.375 0.97219,4.075 1.39684,6 1.57302,7.13067 7.10261,23.28758 7.74883,22.64135 0.22179,-0.22178 -0.74318,-4.92587 -2.14437,-10.45352 z m -2.99882,1.332 c -0.88256,-3.03591 -1.82241,-5.51983 -2.08854,-5.51983 -0.67956,0 0.63054,7.98817 1.80405,11 1.72878,4.43689 1.94675,0.23783 0.28449,-5.48017 z m 3.15694,-17.76983 c -0.23835,-1.2375 -0.43337,-0.225 -0.43337,2.25 0,2.475 0.19502,3.4875 0.43337,2.25 0.23836,-1.2375 0.23836,-3.2625 0,-4.5 z m -12.08944,-7 c -0.29662,-3.4375 -0.55663,-8.9275 -0.5778,-12.2 -0.0308,-4.76 -0.28849,-5.7 -1.28849,-4.7 -1.70327,1.70326 -1.67449,17.89888 0.0371,20.9 2.02343,3.54783 2.40791,2.70705 1.82916,-4 z m 16.4944,1 c 0.0609,-0.6875 0.0221,-2.31306 -0.0863,-3.61235 -0.14288,-1.71349 0.17005,-2.15386 1.13931,-1.60329 1.07602,0.61121 1.09283,0.49675 0.0863,-0.58766 -0.6875,-0.74068 -1.25,-3.03014 -1.25,-5.08768 0,-2.05754 -0.45,-4.0191 -1,-4.35902 -0.63692,-0.39364 -1,2.48962 -1,7.94098 0,5.03935 0.41122,8.55902 1,8.55902 0.55,0 1.04981,-0.5625 1.11069,-1.25 z m 1.57242,-44.9375 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 30.31689,-0.8125 c 0,-1.1 -0.17252,-2 -0.38337,-2 -0.21085,0 -0.61872,0.9 -0.90638,2 -0.28766,1.1 -0.11514,2 0.38337,2 0.49851,0 0.90638,-0.9 0.90638,-2 z m -29.33772,-4.25 c -0.27741,-0.6875 -0.50438,-0.125 -0.50438,1.25 0,1.375 0.22697,1.9375 0.50438,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m -0.40336,-18.89108 c -0.83968,-0.83968 -0.84863,-0.3682 -0.2116,11.14108 l 0.35977,6.5 0.33943,-8.40702 c 0.18669,-4.62386 -0.0327,-8.77919 -0.4876,-9.23406 z m -10.01002,-3.32132 c 0.0207,-3.07143 -0.23602,-5.85806 -0.57046,-6.1925 -0.33444,-0.33443 -0.18974,-1.38973 0.32156,-2.3451 0.5113,-0.95537 0.77004,-1.9087 0.57499,-2.11852 -0.19505,-0.20981 -0.63009,-2.39486 -0.96676,-4.85565 -0.6738,-4.92492 -3.0892,-8.0357 -6.43512,-8.28774 -1.35913,-0.10238 -2.17311,-0.83313 -2.17311,-1.95089 0,-0.98296 -0.36488,-1.7872 -0.81085,-1.7872 -1.62379,0 -0.32896,13.87188 1.82321,19.53251 0.55107,1.44943 0.7042,3.11709 0.34029,3.70591 -0.39144,0.63336 -0.19016,0.77919 0.49284,0.35707 1.04033,-0.64296 1.61225,0.58087 1.25943,2.69502 -0.0726,0.43478 0.35553,1.70134 0.95131,2.81457 0.86557,1.61732 1.37066,1.78553 2.51351,0.83704 1.4979,-1.24315 1.93508,-0.32353 1.45367,3.05788 -0.11745,0.825 0.10177,1.18996 0.48717,0.81102 0.3854,-0.37895 0.71764,-3.20198 0.73832,-6.27342 z m 24.43421,3.2749 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 13.7641,0.27291 c 0.31089,-0.50302 -5e-5,-1.1425 -0.69098,-1.42105 -0.83134,-0.33516 -0.72403,-0.53317 0.31726,-0.58541 1.53855,-0.0772 3.38284,-6.55974 4.65189,-16.35106 0.94985,-7.32846 -1.8835,-14.59923 -3.20633,-8.22789 -0.28548,1.375 -0.81706,3.7375 -1.18129,5.25 l -0.66223,2.75 -0.60897,-3 c -0.434,-2.13807 -0.8511,-2.61532 -1.45173,-1.66109 -1.3968,2.21912 -3.49422,11.16109 -2.61794,11.16109 0.44873,0 0.5938,0.84921 0.32237,1.88714 -0.27142,1.03793 -0.0239,2.17734 0.54995,2.53203 0.57389,0.35468 0.78995,1.30547 0.48013,2.11286 -0.30983,0.80738 -0.1048,1.46797 0.45562,1.46797 0.56041,0 0.89543,1.125 0.7445,2.5 -0.26933,2.4535 1.69652,3.52905 2.89775,1.58541 z m -12.03498,-8.12723 c 1.50963,-5.51064 1.8909,-6.60498 7.6503,-21.95818 5.86993,-15.64785 8.50859,-28 5.98134,-28 -0.57413,0 -0.93687,0.3375 -0.8061,0.75 0.22021,0.69462 -1.23591,4.98388 -3.30993,9.75 -4.75321,10.9229 -10.22854,30.51243 -11.28788,40.38561 -0.70255,6.54781 -0.20411,6.28698 1.77227,-0.92743 z m 17.97915,-0.95818 c 0.39545,-2.88606 0.30752,-3.78269 -0.24516,-2.5 -1.27676,2.96316 -2.38508,10.32669 -1.27938,8.5 0.49938,-0.825 1.18542,-3.525 1.52454,-6 z m -35.15873,0.25 c -0.28692,-2.6125 -0.96429,-5.03719 -1.50528,-5.3882 -0.54098,-0.351 -0.67439,-1.1385 -0.29647,-1.75 0.37792,-0.61149 0.21058,-1.1118 -0.37188,-1.1118 -1.2094,0 -1.42672,2.29896 -0.32177,3.40391 0.78634,0.78635 0.87311,1.28226 1.11044,6.34609 0.0838,1.7875 0.54703,3.25 1.02947,3.25 0.48244,0 0.64241,-2.1375 0.35549,-4.75 z m 40.45046,-1.4375 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m -38.88691,-13.75885 c -0.27588,-9.9151 -1.31997,-11.59786 -1.89467,-3.05365 -0.29709,4.41689 0.84039,13 1.72284,13 0.24672,0 0.32404,-4.47586 0.17183,-9.94635 z m 14.64975,1.94635 c 0.49332,-3.6364 0.12157,-5.45956 -1.93711,-9.5 -1.40117,-2.75 -2.31361,-4.17503 -2.02765,-3.16674 0.28597,1.0083 0.81276,5.64272 1.17065,10.29873 0.68687,8.93595 1.77767,9.8604 2.79411,2.36801 z m -19.05152,0.25 c -0.35401,-1.5125 -3.2387,-9.725 -6.41042,-18.25 -3.82292,-10.27532 -6.30899,-15.60898 -7.37538,-15.82332 -1.9241,-0.38674 -1.94909,0.60194 -0.20009,7.91466 1.40446,5.87215 8.56917,23.00412 11.17837,26.72928 2.12283,3.03076 3.5811,2.73437 2.80752,-0.57062 z m 0.92387,-12.25 c 0.58704,-5.47951 0.58377,-5.4878 -0.87742,-2.22544 -0.83232,1.8583 -1.19289,4.36534 -0.83367,5.79657 0.83345,3.32072 1.01285,2.94629 1.71109,-3.57113 z m 18.49046,-3.412 c -3.67406,-5.67038 -5.10004,-4.18969 -1.51746,1.57566 2.01022,3.23498 3.32403,4.57051 3.51746,3.57562 0.16982,-0.87342 -0.73018,-3.1915 -2,-5.15128 z m -38.80876,-2.20603 c 0,-0.825 -0.45,-1.22189 -1,-0.88197 -1.12676,0.69637 -1.37404,-0.79263 -0.30858,-1.85809 0.38028,-0.38028 0.71778,-2.42305 0.75,-4.53948 0.0732,-4.80736 -1.9768,-4.44467 -3.36859,0.59597 -0.9523,3.44894 0.22263,7.3016 2.22673,7.3016 0.45016,0 0.49739,0.51953 0.10495,1.15451 -0.44208,0.7153 -0.27432,0.88306 0.44098,0.44098 0.63498,-0.39244 1.15451,-1.38852 1.15451,-2.21352 z m 62.6417,-3.47839 c -0.30733,-1.60366 -0.768,-3.70051 -1.02373,-4.65967 -0.25572,-0.95915 -0.49938,-2.30641 -0.54146,-2.99391 -0.0421,-0.6875 -0.68014,-1.25 -1.41791,-1.25 -1.72288,0 -2.1873,9.65802 -0.55878,11.62028 0.62979,0.75884 0.75247,1.38661 0.27262,1.39503 -0.47984,0.008 -0.20391,0.43801 0.61319,0.95465 2.0242,1.27985 3.37756,-1.30163 2.65607,-5.06638 z m -18.79756,3.41045 c 1.04723,-1.8713 -0.43986,-6.2716 -2.57308,-7.61372 -0.69908,-0.43983 -1.27106,-1.21577 -1.27106,-1.72432 0,-1.10539 5.90994,-4.44663 7.90536,-4.46937 0.77295,-0.009 1.51368,-0.6889 1.64608,-1.51132 0.1324,-0.82241 0.55921,-2.8453 0.94848,-4.4953 l 0.70776,-3 -2.76181,3.74756 c -1.519,2.06115 -4.6391,4.84772 -6.93356,6.19236 -5.81618,3.40851 -6.97127,4.95826 -5.09445,6.83509 0.8178,0.81779 1.20833,1.76547 0.86785,2.10594 -0.34047,0.34048 0.12238,0.61905 1.02857,0.61905 0.92347,0 1.92339,1.09878 2.27508,2.5 0.72913,2.90512 1.91813,3.20249 3.25478,0.81403 z m 3.51749,-7.81403 c 1.07431,-2.79962 -1.3205,-5.99361 -2.75438,-3.67354 -0.68235,1.10407 0.42076,5.17354 1.40239,5.17354 0.42701,0 1.0354,-0.675 1.35199,-1.5 z m -17.36163,-9.53138 c 0,-2.65408 0.51051,-4.22729 1.49426,-4.60479 0.82184,-0.31537 1.2645,-0.94515 0.98368,-1.39952 -0.28081,-0.45436 0.0163,-1.15174 0.66026,-1.54972 0.73122,-0.45192 0.90292,-0.29014 0.45729,0.4309 -1.40193,2.26838 3.78771,1.16157 6.43193,-1.37176 l 2.63686,-2.52627 -1.02438,5.00069 c -1.08541,5.29861 -0.78703,6.42928 1.46827,5.56384 1.34137,-0.51474 1.98409,-1.35258 6.39183,-8.33231 2.00382,-3.17308 3.71904,-4.22283 3.25,-1.98907 -0.54687,2.60441 2.84635,1.66604 4.49067,-1.24187 0.95737,-1.69307 2.1529,-2.82353 2.65674,-2.51214 0.50384,0.31139 0.68495,-0.31767 0.40246,-1.39791 -0.49723,-1.90141 -0.6742,-1.88269 -5.54758,0.58684 -3.90477,1.97869 -4.89726,2.19464 -4.42451,0.96268 0.3352,-0.87351 0.20499,-1.58821 -0.28936,-1.58821 -0.50204,0 -0.55613,-1.21396 -0.12253,-2.75 0.42695,-1.5125 0.59678,-3.27126 0.3774,-3.90836 -0.21937,-0.6371 0.12781,-1.48386 0.77152,-1.88169 0.84299,-0.521 1.06016,0.4324 0.77636,3.40836 -0.27562,2.8901 -0.0105,4.13169 0.8824,4.13169 0.70204,0 1.27643,-0.45 1.27643,-1 0,-0.55 0.675,-1 1.5,-1 1.93004,0 1.89869,-0.29817 -0.53225,-5.06321 -1.74704,-3.42449 -1.87816,-4.55579 -0.93427,-8.06111 1.22823,-4.56131 0.7573,-5.77686 -1.50931,-3.89574 -1.94405,1.61342 -1.93002,0.70558 0.0482,-3.11986 0.8648,-1.67233 1.31021,-3.72373 0.98982,-4.55867 -0.51155,-1.33307 -0.90099,-1.30943 -3.19548,0.19398 -2.8981,1.89891 -2.71218,1.38625 1.83273,-5.05353 1.57523,-2.23198 3.14955,-5.83198 3.4985,-8 0.57857,-3.59471 0.48771,-3.82099 -1.03174,-2.56942 -1.87458,1.54411 -2.29722,3.6356 -0.51167,2.53207 0.67688,-0.41834 0.88449,-0.27664 0.50184,0.34252 -0.35897,0.58082 -2.03184,1.53682 -3.71749,2.12444 l -3.06482,1.0684 2.2279,-3.71994 c 1.22534,-2.04596 2.82868,-4.43036 3.56297,-5.29867 1.28262,-1.5167 1.82356,-3.92126 0.88214,-3.92126 -1.29416,0 -5.42892,2.38212 -5.08911,2.93194 0.21737,0.35172 -0.42001,0.63949 -1.41641,0.63949 -1.6949,0 -1.70628,-0.14063 -0.17658,-2.18268 0.89928,-1.20048 1.87263,-2.03924 2.16301,-1.86393 0.29038,0.17532 1.64038,-0.55735 3,-1.62813 1.35962,-1.07079 2.02204,-1.88231 1.47204,-1.80337 -2.42941,0.34868 -15.7864,-0.14025 -15.36425,-0.56241 0.258,-0.25799 3.50596,-0.73286 7.21768,-1.05526 6.08715,-0.52872 14.1326,-3.57162 16.99723,-6.42859 0.99844,-0.99577 -2.89219,-2.44844 -4.27261,-1.5953 -0.51692,0.31948 -1.25987,0.0631 -1.651,-0.5698 -0.49939,-0.80802 0.24243,-1.0107 2.49122,-0.68065 l 3.20236,0.47001 -2.49054,-2.08566 c -1.3698,-1.14711 -4.20944,-3.53981 -6.31032,-5.3171 -2.10089,-1.77729 -4.71979,-3.90047 -5.81979,-4.71819 -1.55876,-1.15876 -1.65796,-1.49378 -0.44962,-1.51857 0.85271,-0.0175 4.10068,2.24124 7.2177,5.0194 5.4283,4.83816 9.73192,6.97034 9.73192,4.82156 0,-3.07924 -12.11526,-17.04809 -16.49852,-19.02274 -1.44077,-0.64906 -0.8809,-0.76231 1.99852,-0.40424 2.94767,0.36655 4.78925,1.39858 7,3.92284 4.92919,5.62818 6.04311,7.08095 6.23477,8.13138 0.10035,0.55 1.40091,2.92766 2.89015,5.28369 1.82282,2.88379 3.03773,3.95366 3.71759,3.2738 0.67987,-0.67987 1.51692,-0.60918 2.56137,0.2163 0.8533,0.67442 -0.19275,-1.24879 -2.32456,-4.27379 -2.13181,-3.025 -2.96486,-4.69307 -1.85122,-3.70683 1.77531,1.57223 2.09775,1.60304 2.61696,0.25 0.32569,-0.84874 0.10119,-1.54317 -0.49889,-1.54317 -0.7768,0 -0.77026,-0.38654 0.0227,-1.34201 1.23896,-1.49284 0.53453,-2.65799 -1.60697,-2.65799 -1.3984,0 -4.2619,-2.31909 -4.2619,-3.45162 0,-0.32697 1.125,0.14264 2.5,1.04358 2.1517,1.40984 2.5,1.43012 2.5,0.1455 0,-0.82092 -0.67005,-2.04866 -1.48899,-2.72832 -0.81894,-0.67967 -1.25054,-1.62157 -0.9591,-2.09313 0.29144,-0.47156 -0.72602,-1.16486 -2.26101,-1.54067 -1.535,-0.3758 -3.05231,-1.07994 -3.37182,-1.56474 -0.3195,-0.48481 -2.3445,-1.13914 -4.5,-1.45407 -2.15549,-0.31493 -5.85507,-1.4755 -8.22127,-2.57904 -4.39637,-2.05036 -7.11176,-1.87217 -3.21889,0.21123 1.72302,0.92213 1.91439,1.43491 0.9632,2.58102 -0.65285,0.78664 -1.80691,1.43026 -2.56456,1.43026 -0.75766,0 -1.39124,0.5625 -1.40797,1.25 -0.0169,0.69372 -0.48401,0.47121 -1.04969,-0.5 -1.40891,-2.41895 -3.27133,-2.20188 -2.6158,0.30489 0.3939,1.50626 -0.082,2.29037 -1.78245,2.93688 -1.2759,0.4851 -3.04023,1.91053 -3.92074,3.16762 -1.34683,1.92287 -1.60091,2.00287 -1.60091,0.5041 0,-1.02822 -0.45968,-1.49743 -1.08712,-1.10965 -0.59791,0.36953 -0.86504,1.52109 -0.59362,2.55902 0.27143,1.03793 0.0534,1.88714 -0.48445,1.88714 -0.53787,0 -0.83324,-1.22915 -0.65638,-2.73145 0.23954,-2.03469 -0.16205,-2.82582 -1.57434,-3.10142 -1.44748,-0.28247 -1.73905,0.0388 -1.23275,1.3582 0.63592,1.65718 -0.83463,4.47467 -2.3355,4.47467 -0.39559,0 -1.25179,-1.7774 -1.90265,-3.94977 -0.69827,-2.33063 -2.38438,-4.80497 -4.11311,-6.03593 -1.97055,-1.40315 -2.72519,-2.6192 -2.30497,-3.71427 0.41732,-1.08752 0.2363,-1.38804 -0.54517,-0.90506 -0.64347,0.39769 -1.16994,1.27387 -1.16994,1.94707 0,1.50105 -4.63618,1.42178 -6.16334,-0.10538 -0.81078,-0.81078 -0.66922,-1.54696 0.52763,-2.7438 2.61704,-2.61704 1.91396,-2.68877 -2.11429,-0.21571 -2.0625,1.26623 -6.3375,3.09487 -9.5,4.06364 -3.2683,1.00119 -5.75,2.34058 -5.75,3.10332 0,1.31858 -2.7366,3.04002 -4.29282,2.70037 -0.43606,-0.0952 -0.33939,0.67423 0.21481,1.70976 0.5542,1.03554 0.68597,2.26463 0.29283,2.73131 -0.39315,0.46668 0.0727,0.24575 1.03518,-0.49096 1.10565,-0.84628 1.75,-0.93915 1.75,-0.25222 0,0.59799 -0.84709,1.54061 -1.88243,2.09471 -1.03534,0.55409 -2.08531,2.38974 -2.33327,4.07921 -0.47917,3.26477 0.61744,4.98513 1.57953,2.47797 0.65958,-1.71884 4.63617,-2.05102 4.63617,-0.38727 0,0.60884 -0.64022,0.86131 -1.42271,0.56104 -1.06096,-0.40713 -1.30656,0.0946 -0.96592,1.97309 0.33387,1.84117 0.11124,2.32503 -0.82729,1.79809 -0.70625,-0.39652 -0.55252,0.0579 0.3416,1.00989 1.50931,1.60694 1.84836,1.61568 4.7365,0.12217 1.71095,-0.88477 4.6919,-2.99687 6.62432,-4.69356 1.93243,-1.69669 3.5135,-2.76554 3.5135,-2.37522 0,0.82553 -3.74252,3.91545 -9.15284,7.55681 -3.61864,2.43549 -3.72837,2.66529 -2.26818,4.75 0.84394,1.20489 2.18391,2.1907 2.97772,2.1907 0.79382,0 1.4433,0.45 1.4433,1 0,0.55 0.3375,0.92856 0.75,0.84124 0.87649,-0.18553 3.98255,0.89237 6.55583,2.2751 1.65801,0.89091 10.67495,0.48828 16.69417,-0.74545 1.7722,-0.36324 2.19356,-0.19993 1.44736,0.56098 -1.6104,1.64217 -15.25985,3.08992 -18.28569,1.9395 -2.52785,-0.96109 -2.53869,-0.94545 -0.73016,1.05295 1.00968,1.11568 2.29517,1.7446 2.85664,1.39759 0.56148,-0.34701 0.73247,-0.16429 0.37998,0.40604 -0.35248,0.57034 0.25299,2.17335 1.34549,3.56224 2.61192,3.32051 2.6391,5.13439 0.0527,3.51918 -1.06349,-0.66416 -1.85099,-1.62423 -1.75,-2.13347 0.101,-0.50925 -0.3318,-1.11646 -0.96177,-1.34937 -0.6986,-0.25828 -0.33672,1.91611 0.92771,5.57419 1.14022,3.2987 2.51268,5.72599 3.04992,5.39396 0.5849,-0.36149 0.65011,-0.0751 0.16253,0.71382 -0.61271,0.99137 -1.51735,0.53063 -3.65451,-1.86127 -1.56213,-1.74833 -2.84024,-2.74824 -2.84024,-2.22202 0,0.52621 0.39812,1.20281 0.8847,1.50353 0.48659,0.30073 1.09795,1.78979 1.35857,3.30902 0.26063,1.51923 0.8044,3.66224 1.20839,4.76224 0.58854,1.60253 0.32417,1.50316 -1.33026,-0.5 l -2.06477,-2.5 0.50637,2.5 c 0.27851,1.375 0.71712,3.99461 0.9747,5.82137 0.25757,1.82675 0.91696,4.15966 1.46531,5.18425 1.87597,3.50529 0.91664,3.50041 -1.10628,-0.006 -1.11069,-1.925 -1.79322,-2.74446 -1.51672,-1.82101 1.80723,6.03579 1.70966,8.43729 -0.45457,11.18866 -1.28807,1.63752 -2.25774,4.3437 -2.31943,6.47313 -0.1001,3.45522 0.076,3.66834 3.15802,3.82277 3.13336,0.15701 3.24929,0.0298 2.89589,-3.17704 -0.46737,-4.24115 0.94512,-6.92792 1.80552,-3.43436 0.75831,3.07903 0.27159,13.26912 -0.66761,13.9773 -1.0444,0.78752 1.67966,5.50999 3.015,5.22686 0.63213,-0.13403 1.8846,0.87847 2.78326,2.25 2.59892,3.96645 3.72559,3.07841 2.86259,-2.25631 -0.42263,-2.6125 -0.87659,-5.95421 -1.00881,-7.42603 -0.13222,-1.47181 -0.53909,-3.15931 -0.90415,-3.75 -0.36507,-0.59068 -0.0747,-1.1095 0.64526,-1.15292 1.00674,-0.0607 1.02037,-0.19542 0.059,-0.58333 -0.6875,-0.27741 -1.25,-0.92293 -1.25,-1.43447 0,-0.51155 1.60557,-0.25924 3.56793,0.56069 1.96236,0.81992 3.87486,1.42952 4.25,1.35466 1.77651,-0.35453 4.18207,1.60227 4.18207,3.40189 0,1.97649 -1.79544,2.15376 -6.875,0.67878 -3.22454,-0.93633 -1.90809,2.09673 1.56655,3.6093 6.73386,2.93134 6.79554,2.99935 7.11324,7.84386 0.37355,5.6964 2.19521,6.20773 2.19521,0.61657 z m 2.53835,-12.31692 c -2.22837,-1.62943 -1.13953,-3.97728 1.46165,-3.1517 1.00743,0.31975 2.12842,0.10123 2.49109,-0.48558 0.36267,-0.58682 2.1095,-0.96928 3.88184,-0.84992 2.57217,0.17323 3.261,0.68301 3.41355,2.52626 0.10511,1.27008 -0.2804,2.30924 -0.8567,2.30924 -0.5763,0 -0.7697,-0.45 -0.42978,-1 0.81938,-1.32579 0.39052,-1.27003 -3.84576,0.5 -4.3305,1.8094 -3.86465,1.79784 -6.11589,0.1517 z m 3.91952,-7.71987 c -0.3631,-0.5875 -1.26674,-0.83542 -2.00809,-0.55093 -0.86729,0.33281 -1.14965,5.4e-4 -0.79186,-0.93183 0.62769,-1.63574 4.90027,-1.97295 5.835,-0.46052 0.35034,0.56686 -0.0511,0.7345 -0.94098,0.39301 -0.85357,-0.32755 -1.55194,-0.13489 -1.55194,0.42812 0,0.56301 0.5625,1.25063 1.25,1.52804 0.90131,0.36368 0.91777,0.52641 0.059,0.58333 -0.65504,0.0434 -1.48806,-0.40173 -1.85115,-0.98922 z m -4.9308,-5.80857 c -0.35703,-1.62557 -0.35851,-4.50484 -0.003,-6.39837 0.59386,-3.16554 0.90077,-3.41468 3.81104,-3.09375 2.25444,0.24861 2.7419,0.0798 1.69413,-0.58667 -2.13454,-1.35777 -0.56058,-2.39935 1.75391,-1.16067 2.03918,1.09133 3.21713,0.59032 3.21713,-1.36831 0,-1.04173 -4.00366,-1.20058 -8.0842,-0.32076 -1.03387,0.22292 -1.49791,-0.97327 -1.72016,-4.43421 -0.25993,-4.04761 -0.0652,-4.6477 1.33384,-4.11083 1.30849,0.50211 1.36975,0.79585 0.30437,1.45942 -0.78936,0.49164 0.29899,0.66246 2.66615,0.41845 2.2,-0.22678 4.5625,-0.43826 5.25,-0.46994 0.6875,-0.0317 1.25,-1.18262 1.25,-2.55762 0,-2.52519 -0.98508,-2.86752 -8.21012,-2.85317 -2.11121,0.004 -3.24466,-2.53508 -1.44059,-3.22737 0.72357,-0.27766 3.17093,-0.088 5.43858,0.42154 2.91535,0.65504 4.25938,0.59432 4.58862,-0.20731 0.25609,-0.62353 0.50114,1.48037 0.54456,4.67533 0.0596,4.38577 -0.22731,5.62994 -1.17105,5.0781 -0.6875,-0.402 -0.40039,0.238 0.63801,1.42223 1.54722,1.76449 1.66063,2.42711 0.62831,3.67099 -1.00519,1.21118 -1.00996,2.1208 -0.0236,4.50209 0.71143,1.71753 0.96268,4.44177 0.59193,6.41804 -0.58558,3.12143 -1.02808,3.49346 -4.86442,4.08971 -2.32113,0.36076 -4.96808,0.86579 -5.88212,1.12229 -1.19595,0.33562 -1.84388,-0.36226 -2.31104,-2.48921 z m -12.02707,0.77492 c -1.65,-0.51145 -3.80802,-0.73454 -4.7956,-0.49574 -1.60221,0.38741 -1.76376,-0.22549 -1.5,-5.69101 l 0.2956,-6.12519 3.8674,-0.24385 c 4.34707,-0.2741 5.45456,-0.92044 4.02561,-2.34938 -0.61307,-0.61307 -2.15737,-0.63418 -4.16985,-0.057 -3.1903,0.91497 -4.94579,0.0422 -3.76339,-1.87091 0.88223,-1.42748 1.0638,-10.40898 0.23746,-11.74599 -0.40142,-0.6495 -0.27251,-1.46356 0.28646,-1.80902 0.55897,-0.34547 1.01631,-0.14299 1.01631,0.44995 0,1.26516 5.31041,0.21486 5.84725,-1.15649 0.19098,-0.48786 1.06486,-0.30574 1.94195,0.40471 1.32779,1.07552 1.45303,1.05665 0.74825,-0.11277 -0.57458,-0.95338 -0.47564,-1.17532 0.30804,-0.69098 2.04471,1.2637 1.29503,3.58444 -1.09549,3.39123 -3.26688,-0.26404 -8.01396,3.10875 -7.18112,5.10218 0.36814,0.88114 0.69074,2.16458 0.7169,2.85208 0.066,1.73596 4.71422,1.59495 4.71422,-0.14301 0,-1.31026 2.0303,-2.60699 4.08179,-2.60699 1.20217,0 1.19487,6.71098 -0.008,7.45447 -0.54404,0.33623 -0.57652,1.79221 -0.0787,3.52796 1.19802,4.17726 1.53428,10.35222 0.64232,11.79544 -0.86561,1.40059 -1.9391,1.42163 -6.13729,0.12031 z m 0.0528,-5.81277 c -0.31089,-0.50302 -0.10119,-1.14427 0.46598,-1.425 0.56718,-0.28073 0.48561,-0.40354 -0.18127,-0.27291 -1.58579,0.31062 -2.34514,2.6125 -0.86181,2.6125 0.62829,0 0.88799,-0.41157 0.5771,-0.91459 z m -0.0528,-4.08541 c -0.33992,-0.55 -1.15398,-0.99311 -1.80902,-0.98469 -0.71561,0.009 -0.59227,0.40223 0.30902,0.98469 1.92112,1.24153 2.2673,1.24153 1.5,0 z m 16.3125,-36.68311 c 0.72187,-0.28887 1.58437,-0.25335 1.91667,0.0789 0.33229,0.3323 -0.25834,0.56864 -1.3125,0.52522 -1.16495,-0.048 -1.4019,-0.28494 -0.60417,-0.60416 z m -37.8125,-8.60451 c 0.74912,-0.80316 11,-4.59159 11,-4.06528 0,0.50592 -5.13763,2.70787 -9,3.85734 -1.375,0.40921 -2.275,0.50278 -2,0.20794 z m -7.29666,-4.46238 c 1.08857,-2.97393 7.92539,-12.64237 10.42507,-14.74285 l 2.37159,-1.99284 -2.12473,2.49284 c -1.1686,1.37107 -4.02143,5.53035 -6.33964,9.24285 -4.22374,6.76413 -5.52977,8.27146 -4.33229,5 z m 56.32562,0.78906 c -0.80907,-0.51167 -1.2107,-1.19066 -0.8925,-1.50885 0.3182,-0.3182 1.14776,0.10733 1.84348,0.94562 1.4426,1.73822 1.16599,1.90204 -0.95098,0.56323 z m -37.02896,-1.41661 c 0,-0.20766 0.7875,-0.99516 1.75,-1.75 1.58606,-1.24388 1.62143,-1.20851 0.37755,0.37755 -1.30636,1.66575 -2.12755,2.19548 -2.12755,1.37245 z m 32.44113,-2.17762 c -1.86402,-1.49339 -1.85176,-1.51185 0.30887,-0.46481 1.2375,0.59969 2.25,1.29952 2.25,1.55516 0,0.76522 -0.51861,0.54424 -2.55887,-1.09035 z m 26.37137,-7.12794 c 0.72187,-0.28888 1.58437,-0.25335 1.91667,0.0789 0.33229,0.33229 -0.25834,0.56864 -1.3125,0.52522 -1.16495,-0.048 -1.4019,-0.28494 -0.60417,-0.60417 z m -26.25363,-1.84869 c -1.06762,-0.80751 -1.51762,-1.45389 -1,-1.4364 0.51762,0.0175 1.81464,0.69249 2.88226,1.5 1.06762,0.80751 1.51762,1.45389 1,1.4364 -0.51762,-0.0175 -1.81464,-0.69249 -2.88226,-1.5 z m -84.14437,92.90585 c 3.05115,-5.4591 2.96336,-5.04072 1.05772,-5.04072 -0.84028,0 -1.35274,0.4875 -1.13881,1.08334 0.21393,0.59583 -0.45771,2.77083 -1.49255,4.83333 -2.65839,5.29839 -1.52449,4.66721 1.57364,-0.87595 z m 131.5855,3.24839 c 0,-0.20765 -0.7875,-0.99515 -1.75,-1.75 -1.58606,-1.24387 -1.62143,-1.2085 -0.37756,0.37756 1.30637,1.66575 2.12756,2.19548 2.12756,1.37244 z m -85.88438,-4.72062 c -0.61359,-1.76015 -1.11562,-4.25812 -1.11562,-5.55104 0,-1.29293 -0.45,-2.35078 -1,-2.35078 -1.33192,0 -1.27298,0.71777 0.56803,6.91713 0.86242,2.90408 1.81445,5.03372 2.11562,4.73255 0.30118,-0.30117 0.0456,-1.98771 -0.56803,-3.74786 z m 87.29242,1.59818 c -0.90093,-1.375 -1.83786,-2.5 -2.08207,-2.5 -0.49007,0 0.45299,1.81156 1.95217,3.75 1.72185,2.22635 1.81574,1.32291 0.1299,-1.25 z m -95.74576,-1.75 c -0.27741,-0.6875 -0.50438,-0.125 -0.50438,1.25 0,1.375 0.22697,1.9375 0.50438,1.25 0.27741,-0.6875 0.27741,-1.8125 0,-2.5 z m 42.87884,1.31653 c -0.36254,-0.58659 -1.3936,-1.06653 -2.29127,-1.06653 -1.36496,0 -1.31464,0.23214 0.30745,1.41824 2.09456,1.53158 3.04375,1.3633 1.98382,-0.35171 z m 57.95888,-8.06653 c 0.33992,-0.55 0.14148,-1 -0.44098,-1 -0.58246,0 -1.05902,0.45 -1.05902,1 0,0.55 0.19844,1 0.44098,1 0.24254,0 0.7191,-0.45 1.05902,-1 z m -133,-1 c -0.33992,-0.55 -0.0102,-1 0.73264,-1 0.74287,0 2.0592,-1.4625 2.92519,-3.25 0.86599,-1.7875 2.58057,-5.23561 3.81018,-7.66247 2.21567,-4.37301 3.36172,-13.76571 1.79757,-14.73241 -0.43901,-0.27132 -0.54249,-0.90707 -0.22995,-1.41276 0.31253,-0.5057 -0.0737,-0.6731 -0.85838,-0.372 -2.00561,0.76962 -4.32977,6.51224 -6.64942,16.42964 -1.09347,4.675 -2.27454,9.5125 -2.62461,10.75 -0.40123,1.41837 -0.20195,2.25 0.53917,2.25 0.6466,0 0.89753,-0.45 0.55761,-1 z m 133.5,-2 c 0,-0.55 -0.7875,-1.03553 -1.75,-1.07895 -0.9625,-0.0434 -1.21278,-0.29749 -0.55618,-0.56461 1.11934,-0.45535 0.69682,-3.24733 -0.65928,-4.35644 -0.33624,-0.275 -1.43268,-3.2 -2.43654,-6.5 -2.21195,-7.27135 -4.02021,-11.18919 -6.69238,-14.5 l -2.01777,-2.5 0.46564,4 c 0.79345,6.81607 1.10491,7.96725 2.44004,9.01841 0.71144,0.56013 1.45264,2.36013 1.64711,4 0.19446,1.63988 0.84988,2.86909 1.45647,2.73159 0.60659,-0.1375 1.10289,0.6188 1.10289,1.68066 0,2.4949 4.12577,8.97202 5.75,9.02701 0.6875,0.0233 1.25,-0.40767 1.25,-0.95767 z m -17,-5 c 0,-0.55 -0.47656,-1 -1.05902,-1 -0.58246,0 -0.7809,0.45 -0.44098,1 0.33992,0.55 0.81648,1 1.05902,1 0.24254,0 0.44098,-0.45 0.44098,-1 z m -2.01434,-13 c 0.3874,0 1.56161,0.9763 2.60935,2.16957 1.7102,1.94772 1.72605,2.10431 0.15499,1.53138 -2.52773,-0.9218 -2.17488,-0.3853 1.5,2.2807 2.79925,2.03075 2.99881,2.07122 1.43887,0.29176 -0.99612,-1.13629 -1.36297,-2.22516 -0.81522,-2.4197 0.64748,-0.22996 0.67053,-1.75318 0.0659,-4.35371 -0.51153,-2.2 -1.23442,-7.6 -1.60643,-12 -0.37201,-4.4 -0.86907,-7.1 -1.10457,-6 -0.23551,1.1 -1.34536,2.9951 -2.46635,4.21133 -1.68671,1.83002 -2.40235,2.02048 -4.15017,1.10449 -2.09209,-1.0964 -2.09404,-1.0866 -0.20702,1.03867 2.30802,2.59944 4.28802,2.75907 4.90568,0.39551 0.34415,-1.31691 0.48604,-1.19317 0.57333,0.5 0.19577,3.79723 -3.32359,2.66122 -7.74502,-2.5 -5.2486,-6.12679 -5.2842,-4.19288 -0.0667,3.62046 2.84108,4.25454 3.87892,6.70778 3.43262,8.11396 -0.73295,2.30931 -1.5978,2.52273 -3.30495,0.81558 -2.10382,-2.10382 -1.41445,0.85384 1.51112,6.48324 l 2.71112,5.21676 0.92952,-5.25 c 0.51124,-2.8875 1.24649,-5.25 1.6339,-5.25 z m -6.17603,-6.75 c -0.40593,-2.10784 -2.18068,-1.97493 -2.63295,0.19718 -0.18865,0.90598 0.36259,1.55282 1.32332,1.55282 1.02996,0 1.52043,-0.6554 1.30963,-1.75 z m 6.60627,-12.89144 c 0.52667,-1.37248 0.38034,-1.43434 -0.89301,-0.37756 -1.73524,1.44013 -1.91584,2.019 -0.62988,2.019 0.49116,0 1.17646,-0.73865 1.52289,-1.64144 z m -93.79933,-4.88109 c 0.70038,-2.82499 1.38432,-16.47747 0.82546,-16.47747 -0.14499,0 -1.20156,1.93753 -2.34794,4.30563 -2.68104,5.5383 -2.93436,11.65422 -0.59409,14.34351 1.23996,1.42488 1.21977,1.44559 2.11657,-2.17167 z m 92.38343,2.52253 c 0,-0.55 -0.45,-1 -1,-1 -0.55,0 -1,0.45 -1,1 0,0.55 0.45,1 1,1 0.55,0 1,-0.45 1,-1 z m 2.68311,-3.1875 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m -19.63727,-0.89815 c 1.63452,-3.05412 0.50567,-3.40501 -1.43343,-0.44556 -0.91219,1.39217 -1.21397,2.53121 -0.67065,2.53121 0.54333,0 1.49016,-0.93854 2.10408,-2.08565 z m 16.89617,-2.91435 c -0.0356,-3.25062 -5.07294,-13.22247 -6.97201,-13.80167 -1.18532,-0.36151 -1.22793,-0.19173 -0.22,0.87667 1.49155,1.58105 1.66897,3.30197 0.25,2.425 -0.6102,-0.37712 -1,1.13972 -1,3.89129 0,3.23964 0.49275,4.79633 1.75,5.52861 1.37534,0.80106 1.42886,1.02605 0.25,1.05091 -0.97201,0.0205 -0.46912,0.91819 1.42869,2.5503 3.23024,2.77801 4.56318,2.03344 4.51332,-2.52111 z m -3.52546,-25.35687 c -0.34679,-0.90372 -1.04822,-1.64313 -1.55872,-1.64313 -0.51083,0 -0.42629,0.93781 0.18801,2.08565 1.27334,2.37925 2.32344,2.04024 1.37071,-0.44252 z m -89.05492,-1.14313 c 0.31658,-0.825 0.13972,-1.5 -0.39301,-1.5 -0.53274,0 -0.96862,0.675 -0.96862,1.5 0,0.825 0.17685,1.5 0.39301,1.5 0.21616,0 0.65203,-0.675 0.96862,-1.5 z m 41.06416,-10.83278 c -1.00093,-2.60839 -2.20316,-1.95341 -1.65715,0.90282 0.29227,1.52892 0.85702,2.2043 1.39411,1.66721 0.49655,-0.49655 0.61492,-1.65306 0.26304,-2.57003 z m -3.42579,-8.66722 c 0,-0.55 -0.19844,-1 -0.44098,-1 -0.24254,0 -0.7191,0.45 -1.05902,1 -0.33992,0.55 -0.14148,1 0.44098,1 0.58246,0 1.05902,-0.45 1.05902,-1 z m 8.68311,-2.1875 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.19479 0.0789,-1.91667 z m 7.26244,-6.8125 -0.0238,-3.5 -1.49377,3.44306 c -1.62313,3.74127 -1.13225,7.78469 0.61053,5.02891 0.51196,-0.80958 0.92014,-3.04697 0.90704,-4.97197 z m -16.99065,3.75 c -0.0248,-0.6875 -0.65815,-2.6 -1.40743,-4.25 l -1.36233,-3 0.15743,3.24801 c 0.0866,1.78641 0.52149,3.24891 0.96645,3.25 0.44496,0.001 0.5309,0.45199 0.19098,1.00199 -0.33992,0.55 -0.14148,1 0.44098,1 0.58246,0 1.03872,-0.5625 1.01392,-1.25 z m 9.6856,-19.29876 c -0.74242,-0.80062 -1.36326,-0.87478 -1.7787,-0.21246 -0.351,0.5596 -1.13494,0.71044 -1.74208,0.33521 -0.60713,-0.37523 -1.79106,-0.29767 -2.63094,0.17235 -1.03196,0.57751 -0.0974,0.86759 2.88259,0.8947 3.44201,0.0313 4.15937,-0.22977 3.26913,-1.1898 z m -14.95537,-1.82939 c -0.29086,-0.75797 -0.001,-1.90963 0.64302,-2.55924 0.89844,-0.90554 0.77283,-1.02922 -0.5384,-0.53012 -1.30401,0.49635 -1.6221,0.19327 -1.33915,-1.27598 0.20411,-1.05984 -0.0413,-2.56362 -0.54539,-3.34174 -1.118,-1.72583 -0.6564,4.675 0.52898,7.33523 0.91719,2.05836 2.02442,2.38749 1.25094,0.37185 z m 26.28307,-1.9943 c -0.0175,-0.62015 -0.62449,-0.34704 -1.34888,0.60691 -0.72439,0.95395 -1.68223,1.40395 -2.12852,1 -0.4463,-0.40395 -0.47424,-0.15011 -0.0621,0.5641 0.57734,1.00047 1.07324,1.02975 2.16033,0.12755 0.77603,-0.64405 1.39666,-1.6784 1.37917,-2.29856 z m -10.9682,-1.67794 c 0,-0.45737 -0.45,-1.10969 -1,-1.44961 -0.55,-0.33992 -1,-1.71648 -1,-3.05902 0,-1.34254 -0.45,-2.44098 -1,-2.44098 -0.85214,0 -1.13167,1.02494 -0.96429,3.53571 0.0196,0.29465 -0.65535,1.22679 -1.5,2.07143 -2.36233,2.36234 -1.85559,3.0286 1.96429,2.58265 1.925,-0.22473 3.5,-0.78281 3.5,-1.24018 z m 12.29258,-7.60916 c 0.40571,-2.06339 0.19858,-3.32173 -0.59704,-3.62704 -0.87155,-0.33444 -1.23885,1.27628 -1.29057,5.65955 -0.0701,5.93601 0.42578,5.40212 1.88761,-2.03251 z m -29.69382,-3.53608 c -1.58835,-1.06154 -1.91576,-0.1788 -1.07529,2.89906 l 0.76366,2.79657 0.67624,-2.5 c 0.37926,-1.4021 0.21914,-2.80549 -0.36461,-3.19563 z m 25.40124,-1.30437 c -0.68469,-0.825 -1.97729,-1.4478 -2.87244,-1.384 -1.37316,0.0979 -1.35402,0.18749 0.12244,0.57333 0.9625,0.25152 1.75,0.87432 1.75,1.38399 0,0.50968 0.5051,0.92668 1.12244,0.92668 0.77551,0 0.73766,-0.46364 -0.12244,-1.5 z m -13.27973,-0.79184 c -0.24954,-0.72038 -1.79158,-1.07434 -3.81939,-0.87672 -5.17635,0.50449 -5.33892,1.64247 -0.2681,1.87672 3.15505,0.14575 4.38052,-0.15406 4.08749,-1 z m 20.34109,314.29184 c -0.16374,-2.83809 -0.35226,-3.12177 -0.99685,-1.5 -0.79493,2 -0.79493,2 -1.31372,0 -0.44772,-1.72602 -0.53468,-1.75218 -0.63479,-0.19098 -0.0638,0.99496 -0.566,1.5309 -1.116,1.19098 -0.55,-0.33992 -1.00879,-4.30398 -1.01952,-8.80902 -0.0107,-4.50504 -0.682,-13.14098 -1.4917,-19.19098 -0.80969,-6.05 -1.4759,-13.32817 -1.48047,-16.17371 -0.009,-5.84314 1.92623,-15.32629 3.12825,-15.32629 1.25198,0 2.86344,3.62103 2.86344,6.43426 0,1.41116 0.525,2.56574 1.16667,2.56574 0.64166,0 0.88594,-0.28072 0.54284,-0.62382 -0.3431,-0.3431 0.24601,-2.32882 1.30913,-4.41271 1.60959,-3.15506 2.31339,-3.68479 4.20715,-3.16662 1.72122,0.47096 1.86939,0.70674 0.60935,0.96964 -0.91567,0.19105 -1.98671,1.10925 -2.38009,2.04044 -0.71664,1.69638 -1.80628,35.93506 -1.11782,35.12405 0.89474,-1.054 2.49802,-6.94719 1.76715,-6.49549 -0.44851,0.27719 -0.60615,-0.59096 -0.35033,-1.92922 0.25583,-1.33826 0.9434,-2.33715 1.52794,-2.21974 1.89332,0.38028 3.62414,-7.57517 3.54336,-16.28653 -0.0829,-8.94362 -0.93885,-12 -3.36053,-12 -0.80565,0 -1.46482,-0.49814 -1.46482,-1.10699 0,-0.60884 0.69837,-0.839 1.55194,-0.51145 0.85356,0.32754 1.30615,0.19784 1.00574,-0.28823 -0.30041,-0.48607 0.12622,-1.14179 0.94806,-1.45716 0.82184,-0.31537 1.49426,-1.23597 1.49426,-2.04577 0,-0.8098 0.52089,-1.79429 1.15752,-2.18775 0.79309,-0.49016 0.97999,-0.0365 0.59362,1.44098 -0.31014,1.186 -0.17411,2.15637 0.3023,2.15637 1.40434,0 4.94733,12.81231 4.93754,17.85534 -0.009,4.69027 -8.8263,33.55752 -9.05464,29.64466 -0.15403,-2.63935 -1.7774,3.04132 -3.42926,12 -0.86363,4.68381 -1.37006,6.00735 -1.53053,4 l -0.23983,-3 -0.73672,3.5 -0.73672,3.5 -0.20192,-3.5 z m 5.26574,-21.5 c 0.55898,-3.56976 0.4203,-3.40842 -1.28928,1.5 -1.0536,3.025 -1.89267,7.75 -1.8646,10.5 l 0.051,5 1.23825,-6.5 c 0.68104,-3.575 1.52011,-8.3 1.8646,-10.5 z m -6.30599,-11.60125 -0.72636,-8.39875 -0.0229,11 c -0.0135,6.48827 0.28442,9.93308 0.72636,8.39875 0.41209,-1.43069 0.42239,-6.38069 0.0229,-11 z M 524.8678,604.4534 c -0.44688,-6.38162 -2.15349,-6.45129 -2.15349,-0.0879 0,2.67323 -0.2462,7.06073 -0.5471,9.75 l -0.5471,4.88957 1.7971,-4.80166 c 1.12497,-3.0058 1.6675,-6.65239 1.45059,-9.75 z m -17.15349,0.55166 c 0,-2.475 -0.45,-4.5 -1,-4.5 -1.10443,0 -1.39528,7.27138 -0.33333,8.33333 1.18152,1.18153 1.33333,0.74507 1.33333,-3.83333 z M 472.93788,584.6644 c -0.70204,-0.44553 -1.52506,-3.25114 -1.82894,-6.23469 -0.30388,-2.98356 -0.93111,-6.32465 -1.39384,-7.42465 -0.9147,-2.17441 -2.09199,-9.5 -1.52674,-9.5 0.52499,0 5.31781,15.95967 6.08125,20.25 0.71252,4.00422 0.64072,4.16108 -1.33173,2.90934 z m 45.8188,-3.65934 c 0.0123,-3.15393 7.72217,-34.09292 7.84962,-31.5 0.0406,0.825 -0.81084,4.875 -1.89199,9 -1.08115,4.125 -1.97344,9.88906 -1.98286,12.80902 -0.0106,3.28085 -0.39916,5.07291 -1.01714,4.69098 -0.57494,-0.35533 -1.00651,0.57598 -1.01531,2.19098 -0.008,1.54496 -0.45153,3.48402 -0.98469,4.30902 -0.74303,1.14976 -0.96663,0.79952 -0.95763,-1.5 z m -52.92675,-23.59818 c -0.61359,-1.76015 -1.08391,-3.69562 -1.04516,-4.30104 0.0388,-0.60543 0.71555,0.65993 1.50398,2.81191 0.78843,2.15198 1.25875,4.08745 1.04516,4.30105 -0.2136,0.21359 -0.89039,-1.05177 -1.50398,-2.81192 z m -3.03667,-10.48515 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -47.06364,-17.60765 c -0.008,-1.48004 0.43469,-2.9691 0.98469,-3.30902 1.2769,-0.78917 1.2769,2.52414 0,4.5 -0.7582,1.17323 -0.97271,0.91378 -0.98469,-1.19098 z m 162.692,0.20223 c 0.28604,-1.09382 0.94076,-1.72875 1.45494,-1.41097 0.55165,0.34094 0.45486,1.15615 -0.23614,1.98875 -1.57743,1.90069 -1.835,1.77858 -1.2188,-0.57778 z m -7.08377,-0.54991 c -0.96498,-2.51469 -0.68031,-3.16355 0.49853,-1.13634 0.58369,1.00375 0.8506,2.03566 0.59313,2.29313 -0.25747,0.25747 -0.74872,-0.26309 -1.09166,-1.15679 z m -158.7094,-1.96134 c -0.83828,-1.50621 1.09196,-11.5 2.22115,-11.5 0.54051,0 0.67649,0.49553 0.30218,1.10118 -0.37432,0.60565 -0.96997,3.41815 -1.32368,6.25 -0.35371,2.83185 -0.89355,4.69882 -1.19965,4.14882 z m 153.43094,-1.04313 c -0.32569,-0.84872 -0.36872,-1.76657 -0.0956,-2.03966 0.27309,-0.2731 0.73656,0.42131 1.02992,1.54313 0.62315,2.38293 -0.0692,2.75089 -0.9343,0.49653 z m 2.0005,-3.35228 c -0.63327,-1.67772 -0.73191,-3.46509 -0.23455,-4.25 0.60238,-0.95064 0.86291,-0.55583 0.87366,1.32398 0.008,1.47322 0.72245,3.38572 1.58674,4.25 1.21239,1.21239 1.26248,1.57143 0.21924,1.57143 -0.74371,0 -1.844,-1.30293 -2.44509,-2.89541 z m -146.84558,-0.10459 c 0.33992,-0.55 0.81648,-1 1.05902,-1 0.24254,0 0.44098,0.45 0.44098,1 0,0.55 -0.47656,1 -1.05902,1 -0.58246,0 -0.7809,-0.45 -0.44098,-1 z m 151.5,-1 c 0,-0.55 0.45,-1 1,-1 0.55,0 1,0.45 1,1 0,0.55 -0.45,1 -1,1 -0.55,0 -1,-0.45 -1,-1 z m 4.07895,-1.58333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -159.44498,-1.92814 c -0.25511,-0.6648 0.94977,-0.9267 3.22955,-0.702 5.64957,0.55684 5.99303,0.88423 1.40693,1.34108 -2.44488,0.24356 -4.40126,-0.0261 -4.63648,-0.63908 z m 153.86603,-1.48853 c 0.33992,-0.55 1.06803,-1 1.61803,-1 0.55,0 0.72189,0.45 0.38197,1 -0.33992,0.55 -1.06803,1 -1.61803,1 -0.55,0 -0.72189,-0.45 -0.38197,-1 z m 4.76763,-0.41713 c 0.12781,-1.05443 0.90737,-2.10119 1.73237,-2.32613 0.96478,-0.26307 1.10748,-0.11423 0.39994,0.41713 -0.60503,0.45437 -1.38459,1.50113 -1.73236,2.32613 -0.44428,1.05395 -0.56321,0.92991 -0.39995,-0.41713 z m -167.1178,-2.44788 c -0.14594,-2.30368 -0.2162,-2.32152 -2.70913,-0.6881 -1.40761,0.92231 -3.32011,1.47626 -4.25,1.23102 -1.30278,-0.3436 -1.21444,-0.47252 0.38499,-0.56191 1.14162,-0.0638 3.13256,-1.241 4.42431,-2.616 1.6098,-1.71355 3.4155,-2.5 5.74005,-2.5 1.86529,0 4.37435,-0.47482 5.57569,-1.05517 2.14941,-1.03833 2.15235,-1.02922 0.18426,0.57059 -1.1,0.89416 -1.88108,2.06325 -1.73573,2.59799 0.15213,0.55967 -0.62364,0.49704 -1.82814,-0.14759 -2.89209,-1.5478 -4.71505,-0.59506 -5.21418,2.72512 -0.36153,2.40491 -0.44384,2.46879 -0.57212,0.44405 z m 179.66267,-1.8181 c 0.72187,-0.28887 1.58437,-0.25335 1.91667,0.0789 0.33229,0.33229 -0.25834,0.56864 -1.3125,0.52522 -1.16495,-0.048 -1.4019,-0.28494 -0.60417,-0.60416 z m -162.8125,-2.75179 c 0,-1.3392 -0.43886,-3.5892 -0.97525,-5 -0.63367,-1.66667 -0.63367,-2.5651 0,-2.5651 0.53639,0 0.97525,-0.45 0.97525,-1 0,-1.78428 -2.44281,-1.02574 -4.8416,1.5034 -1.28788,1.35786 -4.20876,2.97162 -6.49083,3.58612 -2.28208,0.61449 -5.50336,2.05582 -7.1584,3.20294 l -3.00917,2.08566 2,-2.35281 c 4.64085,-5.45952 8.25601,-8.60664 9.43513,-8.2136 0.69307,0.23102 2.47157,-0.47561 3.95222,-1.57031 2.55193,-1.88672 2.87225,-1.90559 6.15237,-0.36249 3.93356,1.85051 4.93333,5.35773 2.91575,10.22858 -1.46146,3.5283 -2.95547,3.75962 -2.95547,0.45761 z m 155.01531,1.29189 c -0.0166,-1.77905 -1.98591,-2.85699 -5.21954,-2.85699 -1.70054,0 -1.83317,-0.25001 -0.79577,-1.5 1.02462,-1.23459 0.94012,-1.5 -0.47756,-1.5 -0.94734,0 -3.28559,-1.56315 -5.19611,-3.47367 l -3.47368,-3.47368 0.65313,2.97368 c 0.5231,2.38167 0.31711,2.97367 -1.03473,2.97367 -1.32585,0 -1.55408,0.58982 -1.06412,2.75 0.59249,2.61217 0.5478,2.65271 -0.89159,0.80887 -1.74814,-2.23935 -2.06083,-9.55887 -0.40835,-9.55887 0.60884,0 0.865,-0.63061 0.56924,-1.40135 -0.34819,-0.90738 0.0547,-1.30566 1.14301,-1.12986 0.92442,0.14932 2.58076,-0.1449 3.68076,-0.65381 1.84602,-0.85407 1.86598,-0.81686 0.25931,0.48329 -1.64882,1.33425 -1.64154,1.49833 0.13779,3.1086 1.03316,0.935 4.29147,2.6158 7.24069,3.73511 2.94921,1.11931 5.92471,2.50036 6.61221,3.06901 1.96901,1.62861 1.46432,2.97408 -0.68426,1.82419 -1.06384,-0.56935 -2.75134,-1.01875 -3.75,-0.99866 -0.99866,0.0201 0.57426,1.19258 3.49537,2.60555 2.92112,1.41297 5.06949,2.81066 4.77417,3.10598 -0.29532,0.29533 -1.25712,-0.0607 -2.13733,-0.79125 -1.33726,-1.10983 -1.74974,-1.09215 -2.50885,0.1075 -0.75901,1.19949 -0.91099,1.16538 -0.92379,-0.20731 z M 429.72636,498.2054 c -0.0208,-1.38231 3.15076,-7.05713 5.98027,-10.70034 3.12597,-4.02492 5.34547,-7.99555 4.78348,-8.55754 -0.21244,-0.21243 -2.80995,3.00273 -5.77225,7.14481 -5.54464,7.75288 -7.90426,10.20232 -6.63045,6.88284 0.69373,-1.80785 0.65784,-1.80809 -1.33007,-0.009 -3.81728,3.4546 -2.14132,-0.47795 4.06625,-9.54125 3.36011,-4.90595 6.26215,-8.91986 6.44898,-8.91986 0.18683,0 -0.31839,1.575 -1.12271,3.5 -1.96992,4.71469 -0.96114,4.45057 1.51123,-0.39567 2.52609,-4.95155 4.93444,-7.36389 6.68216,-6.69323 0.75408,0.28937 1.37106,0.0903 1.37106,-0.44248 0,-0.53274 -0.40766,-0.96862 -0.90592,-0.96862 -0.49825,0 -0.38575,-1.10447 0.25,-2.45437 0.89646,-1.90345 1.27812,-2.10786 1.70034,-0.91067 0.57052,1.6177 2.53676,-1.68141 5.01649,-8.41702 1.60717,-4.36553 2.18458,-3.61133 0.64404,0.84123 -1.41094,4.07796 -8.59291,17.94083 -9.29466,17.94083 -0.26436,0 0.0216,-0.93854 0.63555,-2.08565 0.61391,-1.1471 0.88792,-2.31392 0.60892,-2.59293 -0.27901,-0.279 -1.21547,0.86219 -2.08102,2.53599 -1.8498,3.57711 -1.97738,4.51009 -0.49114,3.59154 1.43548,-0.88718 -1.67736,5.19446 -4.77931,9.33745 -1.35333,1.80752 -3.54478,5.18252 -4.8699,7.5 -1.32511,2.31748 -2.41472,3.85375 -2.42134,3.41394 z m 18.30017,-46.57201 c -0.86788,-1.3897 -0.87832,-2.16223 -0.0406,-3 2.4651,-2.46511 5.40099,-0.0448 4.08995,3.37167 -0.7879,2.05324 -2.64126,1.88313 -4.04941,-0.37167 z m 5.91978,-1.12833 c 0,-1.925 0.2058,-2.7125 0.45733,-1.75 0.25152,0.9625 0.25152,2.5375 0,3.5 -0.25153,0.9625 -0.45733,0.175 -0.45733,-1.75 z m -2.09091,-6.36342 c 0.70581,-1.57488 1.46504,-2.31819 1.68717,-1.65179 0.22214,0.6664 -0.35534,1.95494 -1.28329,2.86342 -1.57938,1.54626 -1.60519,1.46885 -0.40388,-1.21163 z m 54.42218,-118.51183 c -1.90253,-2.59286 -1.90246,-2.60507 0.005,-1.00524 1.06223,0.89073 2.58358,1.82065 3.38077,2.06648 1.26344,0.38961 1.26275,0.51861 -0.005,1.00524 -0.8602,0.3301 -2.24202,-0.51453 -3.38076,-2.06648 z m -28.56327,0.81623 c 0,-0.58246 0.45,-0.7809 1,-0.44098 0.55,0.33992 1,0.81648 1,1.05902 0,0.24254 -0.45,0.44098 -1,0.44098 -0.55,0 -1,-0.47656 -1,-1.05902 z m 2.03644,-1.6653 c 0.02,-0.42662 1.70755,-2.04907 3.75,-3.60543 3.70434,-2.82273 6.17575,-3.04383 18.96356,-1.69659 0.1375,0.0145 0.25689,0.81384 0.26531,1.77634 0.0131,1.49555 0.15626,1.5319 0.98469,0.25 0.53316,-0.825 0.97627,-1.0125 0.98469,-0.41667 0.008,0.59584 -0.25368,1.35233 -0.58246,1.6811 -0.76736,0.76737 -3.52141,-0.26334 -2.99055,-1.11921 0.86987,-1.40246 -15.06283,0.49031 -18.16168,2.15756 -1.7875,0.96172 -3.2336,1.39952 -3.21356,0.9729 z"
- id="path3022"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#565656"
- d="m 474.96431,673.38628 c -1.7875,-0.51612 -3.25,-1.19868 -3.25,-1.5168 0,-0.31812 0.72315,-0.3009 1.60701,0.0383 0.88385,0.33917 3.68801,0.86647 6.23146,1.17178 2.54345,0.30532 4.8203,0.75097 5.05966,0.99033 0.78128,0.78128 -6.31649,0.2784 -9.64813,-0.68358 z m 32.75,0.11878 c -0.825,-0.53316 -1.05,-0.96937 -0.5,-0.96937 0.55,0 1.675,0.43621 2.5,0.96937 0.825,0.53316 1.05,0.96937 0.5,0.96937 -0.55,0 -1.675,-0.43621 -2.5,-0.96937 z m -20.66748,-1.81493 c 0.90337,-0.99822 2.15014,-3.27119 2.7706,-5.05105 0.62047,-1.77986 1.33869,-3.02554 1.59606,-2.76818 0.83406,0.83406 -3.54851,9.63416 -4.79794,9.63416 -0.78987,0 -0.63984,-0.63136 0.43128,-1.81493 z m 31.14049,0.8586 c 0.32507,-0.52598 1.25163,-0.70283 2.05902,-0.39301 2.06711,0.79323 1.82352,1.34934 -0.59105,1.34934 -1.13246,0 -1.79305,-0.43035 -1.46797,-0.95633 z m -14.84947,-5.58233 c -0.34295,-0.8937 -0.59502,-2.15061 -0.56015,-2.79313 0.0349,-0.64251 0.49453,-0.0904 1.02148,1.22697 0.52695,1.31735 0.77902,2.57426 0.56015,2.79313 -0.21887,0.21887 -0.67854,-0.33327 -1.02148,-1.22697 z m -25.0941,-16.71134 c -0.39631,-1.7875 -0.91474,-5.275 -1.15208,-7.75 -0.23734,-2.475 -1.17217,-6.975 -2.07741,-10 -0.90524,-3.025 -1.54833,-6.0625 -1.42909,-6.75 0.11925,-0.6875 -0.2733,-1.25 -0.87234,-1.25 -0.69717,0 -0.87605,1.34961 -0.49704,3.75 0.32566,2.0625 -1.22257,-1.425 -3.44051,-7.75 -3.88421,-11.07676 -5.34745,-21.38018 -3.32372,-23.40391 0.40548,-0.40549 0.75065,-1.26799 0.76703,-1.91667 0.0164,-0.64868 0.64817,-3.45792 1.40396,-6.24276 l 1.37418,-5.06333 2.18631,2.06333 c 1.20248,1.13484 3.57517,3.22622 5.27266,4.64753 2.37212,1.98617 3.25076,3.72176 3.79688,7.5 1.07193,7.41595 2.29334,8.5855 1.9912,1.90664 -0.17926,-3.96272 0.1821,-6.34525 1.10189,-7.26505 0.75275,-0.75275 1.36864,-2.63024 1.36864,-4.17221 0,-1.54196 0.23077,-4.32232 0.51283,-6.17857 l 0.51283,-3.375 -1.35911,3.5 c -1.3077,3.36759 -1.38769,3.41079 -2.11454,1.14186 -0.41549,-1.29698 -0.45943,-4.72727 -0.0977,-7.62285 0.4095,-3.27756 0.0761,-8.42664 -0.8833,-13.64186 -0.8476,-4.60743 -1.77382,-15.30063 -2.05827,-23.76267 -0.44629,-13.27643 -0.80223,-15.84672 -2.59655,-18.75 -2.02351,-3.27411 -2.93332,-3.80851 -5.80202,-3.40795 -0.86929,0.12139 -1.1651,-0.38157 -0.79367,-1.34949 0.32565,-0.84864 0.15441,-1.8135 -0.38054,-2.14411 -0.53495,-0.33062 -0.71374,-1.02003 -0.39731,-1.53203 0.31643,-0.51199 0.0465,-0.9309 -0.59977,-0.9309 -1.88628,0 -0.38012,17.44045 2.11649,24.5079 1.16421,3.29565 2.17354,6.74656 2.24295,7.66868 0.0694,0.92212 0.38876,1.51431 0.70966,1.31598 0.3209,-0.19832 1.23697,0.0528 2.03571,0.55811 1.21548,0.76892 1.17629,0.9212 -0.24032,0.93402 -1.07466,0.01 -1.56509,0.6542 -1.34336,1.76531 0.19208,0.9625 1.11529,5.50345 2.05159,10.09099 1.24646,6.10724 1.40536,8.63799 0.59335,9.45 -1.54068,1.54069 -1.38779,4.15564 0.56432,9.65193 0.92174,2.59523 1.35617,5.53783 0.96722,6.55143 -1.09059,2.84204 -2.8013,0.38547 -2.98396,-4.28495 -0.0861,-2.20208 -0.49408,-3.79848 -0.90658,-3.54757 -0.4125,0.25091 -0.75,-0.20855 -0.75,-1.02103 0,-0.81247 -0.30147,-2.26285 -0.66994,-3.22306 -0.45371,-1.18234 -0.29602,-1.51474 0.48855,-1.02985 0.75689,0.46779 0.95204,0.178 0.56295,-0.83595 -0.32755,-0.85357 -0.92615,-1.55194 -1.33022,-1.55194 -0.71897,0 -4.7814,-12.22246 -4.24965,-12.78571 0.14836,-0.15715 -0.40437,-0.95983 -1.22829,-1.78375 -1.66187,-1.66186 -3.76934,-8.30449 -3.0196,-9.5176 0.26335,-0.42611 0.0215,-1.0574 -0.53749,-1.40286 -0.55897,-0.34546 -1.04794,-1.61406 -1.0866,-2.8191 -0.0678,-2.11347 -0.10094,-2.12023 -0.93695,-0.19098 -0.57972,1.3378 -0.71596,0.34451 -0.41146,-3 0.31181,-3.42479 0.17546,-4.36992 -0.4328,-3 -1.26284,2.8442 -2.24256,-15.43775 -1.79523,-33.5 0.44292,-17.88438 0.61808,-19.505 1.67524,-15.5 0.72602,2.75049 0.79812,2.62574 0.86691,-1.5 0.0955,-5.72769 1.69731,-19.15495 2.98236,-25 1.06115,-4.82663 0.81207,-6.96602 -1.6299,-14 -1.58505,-4.56564 -4.73161,-8.84961 -5.75116,-7.83006 -0.30735,0.30736 -0.85476,2.98236 -1.21646,5.94445 -0.64355,5.27038 -0.67323,5.3114 -1.38729,1.9173 -0.41776,-1.98574 -0.28479,-4.33677 0.31109,-5.5 1.29915,-2.53611 0.2143,-1.52137 -4.61089,4.31292 -2.27353,2.749 -3.59317,3.73423 -3.59317,2.68262 0,-1.20693 -0.54762,-1.4882 -2,-1.02723 -1.79812,0.5707 -2,0.1797 -2,-3.8736 0,-2.4796 -0.45,-4.78648 -1,-5.1264 -0.64166,-0.39657 -1,3.03043 -1,9.56343 0,9.06114 0.16972,10.04061 1.54238,8.9014 1.89008,-1.56863 3.09167,-0.49803 3.96774,3.53517 0.4789,2.20473 0.37953,2.61004 -0.37486,1.52896 -1.16894,-1.67514 -1.03381,-1.78289 -4.04701,3.22727 -1.24249,2.06593 -2.67064,3.50187 -3.17366,3.19098 -0.50302,-0.31088 -0.91235,0.0238 -0.90961,0.74377 0.007,1.86495 -8.63587,18.82315 -11.11523,21.80902 -1.36183,1.64003 -1.88271,1.89802 -1.51422,0.75 0.71185,-2.21778 -0.94415,-2.31654 -1.79208,-0.10687 -0.34679,0.90372 -0.89961,1.37405 -1.22848,1.04517 -0.32888,-0.32888 0.58016,-2.60827 2.02009,-5.06532 2.04861,-3.49568 2.41508,-4.97369 1.68488,-6.79518 -0.9354,-2.33336 -1.10155,-2.0577 -1.45994,2.4222 -0.055,0.6875 -0.51798,1.5513 -1.02884,1.91955 -0.51086,0.36825 -1.7319,3.06825 -2.71341,6 -1.24375,3.71504 -1.61057,4.26976 -1.21043,1.83045 0.31578,-1.925 2.02754,-7.30409 3.80392,-11.95354 2.89805,-7.5853 3.30065,-8.17114 3.91986,-5.70401 0.37955,1.51224 0.47112,3.10383 0.20348,3.53687 -0.26763,0.43304 0.13018,0.78735 0.88404,0.78735 0.75385,0 3.48332,-3.76388 6.0655,-8.36417 4.21863,-7.51573 4.74786,-9.17255 5.21723,-16.33334 0.35416,-5.40302 0.17147,-7.96916 -0.56734,-7.96916 -2.1313,0 -5.95924,8.64772 -8.18908,18.5 -1.67611,7.40571 -2.46836,9.48114 -3.05382,8 -1.15377,-2.91893 -1.06418,-4.22917 0.17095,-2.5 0.84698,1.18576 0.95858,0.99215 0.53275,-0.92421 -0.74068,-3.33324 2.71779,-13.24717 7.38544,-21.17088 3.22748,-5.4789 4.07073,-8.08975 4.98243,-15.42648 0.60359,-4.85727 1.40983,-9.31448 1.79164,-9.90491 0.38182,-0.59044 0.9218,-6.99469 1.19995,-14.23168 0.49578,-12.89937 0.56682,-13.23373 3.61175,-17 3.2746,-4.05036 7.23732,-6.73773 11.39398,-7.72701 2.31365,-0.55065 2.29325,-0.49811 -0.27361,0.70481 -1.52549,0.71489 -2.58338,1.49793 -2.35086,1.74008 0.23251,0.24215 -0.20686,1.02052 -0.97639,1.72971 -0.90044,0.82983 -1.39914,0.8979 -1.39914,0.19098 0,-0.60414 -0.46193,-0.81295 -1.02652,-0.46402 -0.56459,0.34893 -0.90209,1.38799 -0.75,2.30902 0.1599,0.96834 -0.2902,1.55597 -1.06723,1.39334 -0.73906,-0.15469 -1.13281,0.29531 -0.875,1 0.25781,0.70469 0.975,1.16875 1.59375,1.03125 0.61875,-0.1375 1.125,0.45156 1.125,1.30902 0,0.85746 -0.40285,1.31004 -0.89522,1.00574 -0.49236,-0.3043 -1.16221,0.14252 -1.48854,0.99292 -0.32633,0.85041 -0.24491,1.33086 0.18093,1.06768 0.42584,-0.26319 0.77426,0.35266 0.77426,1.36856 0,1.36929 -0.40649,1.62954 -1.57143,1.00608 -1.17502,-0.62885 -1.57143,-0.35654 -1.57143,1.0795 0,1.05627 0.35357,1.9205 0.78572,1.9205 0.43214,0 0.78571,0.92656 0.78571,2.05902 0,1.13246 0.45345,1.77876 1.00767,1.43624 0.55422,-0.34253 1.73724,0.1068 2.62894,0.99849 0.8917,0.8917 2.23285,1.38659 2.98033,1.09975 1.52484,-0.58514 1.43239,1.50291 -0.11694,2.64119 -0.60966,0.44791 -0.48603,0.74066 0.31672,0.75 0.7242,0.008 2.7492,1.0828 4.5,2.38751 4.31033,3.21209 7.68355,3.96762 17.68328,3.96068 5.97442,-0.004 7.63327,0.23023 5.58297,0.7888 -4.01788,1.0946 -11.61838,1.343 -14.33297,0.46843 -2.8163,-0.90733 -2.92354,0.48809 -0.18744,2.43913 2.01102,1.43401 5.93744,6.99918 5.93744,8.41552 0,0.38978 -1.18099,-0.69484 -2.62443,-2.41027 -1.44344,-1.71543 -2.78398,-2.95942 -2.97897,-2.76442 -0.195,0.195 0.75534,3.4765 2.11187,7.29224 2.5879,7.27941 2.61422,7.27997 -2.8558,-0.0607 -0.84175,-1.12962 -1.85075,-1.61353 -2.32091,-1.11309 -0.45747,0.48693 -0.26926,1.08622 0.41824,1.33176 0.6875,0.24553 1.25,1.30893 1.25,2.36309 0,1.05417 0.375,1.91667 0.83333,1.91667 0.45834,0 0.83761,0.5625 0.84282,1.25 0.005,0.6875 0.35177,2.375 0.7701,3.75 0.73984,2.43175 0.71704,2.4454 -0.83511,0.5 -1.5236,-1.90961 -1.57711,-1.83239 -1.18398,1.70854 0.22646,2.03969 0.69629,4.73969 1.04407,6 0.61321,2.22219 0.58542,2.23278 -0.91945,0.35033 -1.52084,-1.90246 -1.55178,-1.89748 -1.55178,0.24996 0,1.20512 0.35428,2.19113 0.78729,2.19113 0.43301,0 0.89264,1.38251 1.02139,3.07224 0.16818,2.20719 -0.12388,2.89023 -1.03729,2.42584 -0.69927,-0.35552 -0.47066,0.009 0.508,0.8095 1.64141,1.34299 1.6497,1.50565 0.10687,2.09769 -0.91988,0.35299 -1.399,0.91533 -1.06469,1.24963 0.3343,0.3343 -0.0513,1.54884 -0.85688,2.69897 -0.80558,1.15013 -1.46469,3.56601 -1.46469,5.36864 0,3.09722 1.01339,3.90695 4.25,3.39591 0.4125,-0.0651 0.75,0.33158 0.75,0.88158 0,0.55 0.50805,0.8875 1.12901,0.75 0.62096,-0.1375 1.22075,0.7625 1.33288,2 0.11213,1.2375 -0.17474,2.25 -0.63748,2.25 -0.46275,0 -0.3176,1.0125 0.32254,2.25 0.64015,1.2375 1.49374,2.925 1.89687,3.75 0.40313,0.825 1.47135,1.43531 2.37383,1.35624 0.91193,-0.0799 2.37517,1.25281 3.29382,3 l 1.65296,3.14376 0.64475,-2.5 c 0.35461,-1.375 0.2881,-3.625 -0.14781,-5 -1.18724,-3.74494 -1.67712,-11 -0.74276,-11 0.45024,0 0.52962,-0.75312 0.1764,-1.67361 -0.51669,-1.34647 -0.26622,-1.51368 1.28138,-0.85545 1.05799,0.44999 2.72225,0.84954 3.69837,0.8879 0.97612,0.0384 1.57229,0.59737 1.32482,1.24226 -0.2832,0.73799 0.26352,0.98595 1.47524,0.66908 1.46864,-0.38406 1.92518,0.0173 1.92518,1.69264 0,1.95232 -0.36076,2.1196 -3.25,1.50704 -4.96596,-1.05285 -4.96964,-1.05266 -5.45816,0.27961 -0.25199,0.68721 0.36676,1.55439 1.375,1.92706 1.00824,0.37267 2.05816,0.94126 2.33316,1.26352 0.275,0.32226 1.85,1.03898 3.5,1.5927 2.81381,0.94429 3.01867,1.36414 3.30073,6.76468 0.17281,3.30863 0.70452,5.50834 1.25,5.17122 0.5221,-0.32268 0.94927,-1.71168 0.94927,-3.08668 0,-1.41203 0.43519,-2.23104 1,-1.88197 0.55,0.33992 1,0.0826 1,-0.57183 0,-0.79619 1.13218,-1.00613 3.42199,-0.63454 2.56395,0.41607 3.57515,0.1562 4.03279,-1.03638 0.33593,-0.87543 0.19793,-2.00454 -0.30666,-2.50913 -1.18836,-1.18836 -5.70352,-0.51279 -5.46732,0.81803 0.0994,0.56027 -0.71696,1.08629 -1.81423,1.16895 -1.1663,0.0879 -1.81258,-0.34516 -1.5558,-1.04241 0.24158,-0.65598 0.94548,-1.08019 1.56423,-0.94269 0.61875,0.1375 1.125,-0.2 1.125,-0.75 0,-0.55 1.29511,-1 2.87803,-1 1.85291,0 3.43707,-0.80142 4.44755,-2.25 1.1402,-1.63455 1.58386,-1.82602 1.62197,-0.7 0.0288,0.8525 -0.36293,1.9775 -0.87062,2.5 -1.2716,1.30869 -0.13601,6.45 1.42464,6.45 0.69762,0 2.02525,-1.15509 2.95028,-2.56686 0.92503,-1.41178 2.55179,-3.43678 3.61501,-4.5 1.06323,-1.06323 1.93314,-2.65799 1.93314,-3.54392 0,-1.25274 0.40119,-1.11535 1.80484,0.61809 l 1.80484,2.22889 3.14398,-4.83325 c 2.04573,-3.14489 3.30278,-4.32144 3.59857,-3.3681 2.84217,9.16051 4.94972,27.28075 4.75702,40.89976 -0.0981,6.93113 -2.9369,29.24308 -3.82532,30.06539 -0.2971,0.275 -0.23594,-1.5976 0.13592,-4.16133 0.37185,-2.56373 0.31701,-4.87997 -0.12187,-5.14719 -0.43889,-0.26722 -0.86612,1.27775 -0.94941,3.43327 -0.0833,2.15552 -0.48327,4.69676 -0.88884,5.64719 -0.40558,0.95043 -0.82919,2.40306 -0.94135,3.22806 -0.7574,5.57116 -2.97993,12.83278 -3.77691,12.34022 -0.57366,-0.35454 -0.67019,0.30899 -0.24147,1.65978 0.5188,1.63461 0.38198,2.04509 -0.5,1.5 -0.84728,-0.52365 -1.03556,-0.18372 -0.62298,1.12477 0.32521,1.03138 0.1871,3.22523 -0.30691,4.87523 -0.7936,2.65061 -0.90821,2.7237 -0.98416,0.62756 -0.0728,-2.01001 -0.31896,-2.17907 -1.61118,-1.10662 -1.34347,1.11498 -1.35,1.45944 -0.0548,2.89063 1.1485,1.26907 1.29902,2.88799 0.68749,7.39436 -0.8495,6.25996 -2.5781,9.23713 -3.68638,6.34902 -0.35446,-0.92372 -0.35269,-3.13647 0.004,-4.91722 0.35662,-1.78075 0.81034,-8.26789 1.00826,-14.41586 0.19792,-6.14797 0.65796,-11.66047 1.02231,-12.25 0.36435,-0.58953 0.1859,-1.07187 -0.39656,-1.07187 -0.58246,0 -1.06591,1.2375 -1.07433,2.75 -0.0112,2.0117 -0.25604,2.3697 -0.91194,1.33347 -0.52448,-0.8286 -0.5284,-2.38502 -0.009,-3.75 0.48796,-1.28341 0.50081,-2.33347 0.0286,-2.33347 -1.5011,0 -1.99959,4.10846 -0.81415,6.7102 0.94779,2.08018 0.85085,2.72261 -0.5673,3.75959 -0.94074,0.68788 -1.71043,1.86104 -1.71043,2.60702 0,0.74598 -0.69992,3.18903 -1.55537,5.42901 -1.57223,4.11683 -0.76496,9.49418 1.42531,9.49418 0.74114,0 0.28708,3.94401 -0.92101,8 -0.24443,0.82062 -2.37355,-0.0716 -3.17415,-1.33018 -0.5639,-0.88645 -0.74786,-0.88133 -0.75947,0.0212 -0.008,0.65504 0.43469,1.4691 0.98469,1.80902 0.55,0.33992 1,1.06803 1,1.61803 0,2.76521 -2.18424,-0.96357 -4.04791,-6.91028 -1.65118,-5.26869 -2.19544,-10.14034 -2.53692,-22.70775 -0.23911,-8.8 -0.61431,-22.22147 -0.83377,-29.82548 -0.43256,-14.98725 0.14609,-17.69668 1.07885,-5.05159 0.31957,4.33239 0.71167,8.02448 0.87132,8.20466 0.15965,0.18017 0.8377,-2.11858 1.50677,-5.10833 1.03772,-4.63699 0.97278,-6.16971 -0.44185,-10.42876 -0.9121,-2.74607 -2.2517,-5.80429 -2.97689,-6.79605 -1.17218,-1.60306 -1.27893,-1.42534 -0.96178,1.60118 l 0.35676,3.40437 -1.52481,-3.95181 c -0.83865,-2.1735 -2.07943,-4.30411 -2.75729,-4.73469 -0.81725,-0.51912 -0.51532,-0.78803 0.8962,-0.79819 1.44068,-0.0104 2.55335,-1.04056 3.44262,-3.18745 0.82088,-1.98178 1.48449,-2.63847 1.76842,-1.75 0.24996,0.78218 1.73828,2.9003 3.30738,4.70694 1.56909,1.80663 2.87092,3.83163 2.89294,4.5 0.022,0.66836 0.73385,-0.0652 1.58185,-1.63007 1.26375,-2.33213 1.32483,-3.36915 0.33865,-5.75 -0.66229,-1.59764 -1.62568,-2.90477 -2.14142,-2.90477 -0.51573,0 -0.65958,-0.45 -0.31966,-1 0.33992,-0.55 0.11492,-1 -0.5,-1 -0.61492,0 -0.83992,-0.45 -0.5,-1 1.13968,-1.84403 3.27712,-1.02418 3.91064,1.5 0.34511,1.375 1.03857,2.5 1.54102,2.5 1.54885,0 2.28246,-4.01297 1.0132,-5.54234 -0.96326,-1.16065 -0.77931,-1.79317 0.93117,-3.20201 1.17235,-0.96561 2.56921,-3.30631 3.10414,-5.20156 l 0.97259,-3.44592 -2.94574,3.44592 c -1.62016,1.89525 -2.96403,3.68887 -2.98638,3.98583 -0.0224,0.29696 -2.29064,1.85399 -5.04064,3.46008 -2.75,1.60609 -5.01431,3.16312 -5.0318,3.46008 -0.10996,1.86672 -3.20229,4.08801 -6.3981,4.59591 -3.37863,0.53695 -4.08891,0.22505 -7.40363,-3.25106 -2.01656,-2.11474 -5.2723,-4.83469 -7.23498,-6.04435 -1.96268,-1.20965 -4.77518,-3.89529 -6.25,-5.96809 -2.96791,-4.17128 -3.20236,-4.0851 -1.57631,0.5794 0.60785,1.74368 1.97128,3.63385 3.02983,4.20037 1.12493,0.60204 1.84763,1.9437 1.7393,3.22889 -0.10195,1.20937 -0.10537,3.09885 -0.008,4.19885 0.16536,1.86054 0.31412,1.82567 2.13328,-0.5 2.26075,-2.89019 2.61362,-1.69957 0.62551,2.11051 -1.12963,2.16487 -1.13943,3.14024 -0.0574,5.71359 l 1.30475,3.10307 3.56841,-3.56841 3.56841,-3.56841 1.83207,2.26251 c 1.47095,1.81655 1.67569,3.06913 1.03872,6.35482 -0.43634,2.25078 -0.81294,15.97982 -0.83689,30.50899 -0.0239,14.52916 -0.21823,26.22916 -0.43172,26 -0.21348,-0.22917 -0.6093,-6.94167 -0.8796,-14.91667 -0.51602,-15.22527 -3.02633,-27.49064 -8.18667,-40 -1.24786,-3.025 -3.51258,-8.875 -5.03271,-13 -1.52013,-4.125 -3.37539,-7.99449 -4.12281,-8.59888 -0.74742,-0.60438 -1.15928,-1.29854 -0.91525,-1.54257 0.64916,-0.64916 -2.47673,-12.13764 -3.70932,-13.63272 -1.81043,-2.19598 -1.86872,-0.71095 -0.21123,5.38186 0.88162,3.24077 1.82734,7.46731 2.10161,9.39231 1.40864,9.88688 3.48511,15.76406 11.6592,33 4.27032,9.0044 5.04202,12.06368 6.3063,25 0.93121,9.52836 0.46471,31.15798 -0.65725,30.47353 -1.16342,-0.70974 -0.0592,16.42187 1.46997,22.80728 1.49408,6.23868 1.49604,7.75774 0.0245,19 -0.87969,6.72055 -1.52412,16.04419 -1.43208,20.71919 0.21182,10.75885 0.18802,11 -1.08548,11 -0.58246,0 -0.81837,-0.38939 -0.52424,-0.8653 0.29414,-0.47592 -0.80431,-6.20501 -2.44098,-12.73132 -2.37565,-9.473 -2.97577,-14.02237 -2.97577,-22.55841 0,-5.88082 -0.52599,-13.08922 -1.16886,-16.01868 -1.06716,-4.86287 -4.0647,-9.82629 -5.93435,-9.82629 -0.7393,0 -0.45215,8.57366 0.61961,18.5 0.90148,8.34932 3.44427,18.73162 7.43585,30.36089 2.08728,6.08117 3.43566,11.18772 2.9964,11.34789 -0.43926,0.16017 -0.9449,0.96622 -1.12365,1.79122 -0.32429,1.49673 -1.76629,2.95569 -2.95,2.98469 -0.34375,0.008 -0.94925,-1.44719 -1.34556,-3.23469 z m 0.52277,-14.27102 -2.00623,-5.97898 0.56207,4.90863 c 0.65806,5.7469 2.50907,10.8999 3.07857,8.57035 0.20451,-0.83656 -0.53098,-4.21156 -1.63441,-7.5 z m 3.6309,-8.66648 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36781,-1.1948 0.0789,-1.91667 z m 0.31689,-6.0125 c 0,-3.05723 -0.29961,-3.90039 -1.10116,-3.09884 -0.65319,0.65319 -0.82428,2.36183 -0.42055,4.2 0.94254,4.29135 1.52171,3.87224 1.52171,-1.10116 z m -10.89638,-1.09638 c -1.47122,-1.47122 -1.42944,-4.02302 0.0509,-3.10813 0.77464,0.47875 0.88024,0.26974 0.32095,-0.63521 -0.45847,-0.74181 -0.80859,-3.06134 -0.77807,-5.15451 0.0305,-2.09317 -0.28285,-3.80577 -0.69639,-3.80577 -0.41354,0 -0.69121,-3.375 -0.61704,-7.5 0.0742,-4.125 -0.19275,-7.5 -0.59316,-7.5 -0.40041,0 -0.44545,-0.7875 -0.10008,-1.75 0.34537,-0.9625 0.29599,-1.45224 -0.10974,-1.0883 -0.93068,0.83479 -1.55304,4.47824 -2.2649,13.25909 -0.45002,5.55098 -0.10369,8.37918 1.74977,14.28915 1.76961,5.64259 2.52521,6.9853 3.22612,5.73284 0.58584,-1.04684 0.51805,-2.03277 -0.18834,-2.73916 z m 15.3217,-7.43343 c -0.16482,-1.5014 0.19243,-3.03395 0.79388,-3.40567 0.78162,-0.48306 0.71973,-2.05765 -0.217,-5.52018 -1.68476,-6.22761 -2.06012,-6.84623 -3.15593,-5.2011 -0.84127,1.26299 -0.16547,14.43746 0.82621,16.10676 1.01594,1.71013 2.03192,0.56259 1.75284,-1.97981 z m -10.06369,-34.77019 c -0.31659,-0.825 -0.75246,-1.5 -0.96862,-1.5 -0.21616,0 -0.39301,0.675 -0.39301,1.5 0,0.825 0.43588,1.5 0.96862,1.5 0.53273,0 0.70959,-0.675 0.39301,-1.5 z m -0.59057,-12.31318 c 0.24358,-0.73075 -0.21359,-0.95424 -1.1875,-0.58051 -0.87096,0.33422 -1.58356,1.04702 -1.58356,1.58401 0,1.31439 2.27278,0.49134 2.77106,-1.0035 z m 25.91205,-15.37432 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 1.61714,-7.3125 c 0.5468,-4.21916 4.66022,-17.27123 9.13949,-29 5.9377,-15.54756 8.34867,-26.83867 6.33258,-29.65675 -0.73481,-1.0271 -0.83433,-0.94658 -0.42283,0.34214 0.29599,0.92697 0.20065,1.82697 -0.21185,2 -0.4125,0.17304 -3.30271,7.39725 -6.42268,16.05381 -5.91046,16.39892 -9.71496,32.19443 -9.71496,40.33455 0,5.59348 0.56998,5.56115 1.30025,-0.0737 z m 15.26818,-3.29504 c 0.43011,-2.58773 0.84368,-4.92996 0.91905,-5.20496 2.21307,-8.07467 3.01275,-20.4029 1.25406,-19.33294 -0.41715,0.25379 -1.21734,-0.57998 -1.77821,-1.85282 -1.01708,-2.30818 -1.01861,-2.30835 -0.58516,-0.0642 0.23903,1.2375 0.0267,2.25 -0.47179,2.25 -0.49851,0 -0.90638,1.575 -0.90638,3.5 0,1.925 -0.50248,3.5 -1.11663,3.5 -0.66145,0 -0.8798,-0.90566 -0.53564,-2.22173 0.49867,-1.90691 0.24095,-1.80063 -1.81874,0.75 -3.07467,3.80754 -3.93877,8.87841 -2.47276,14.51123 0.98938,3.80152 1.33233,5.86519 1.8668,11.23355 0.0423,0.42518 1.15391,0.0674 2.47018,-0.79504 1.68856,-1.10638 2.62346,-2.9534 3.17522,-6.27305 z m -6.88532,1.60754 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 10.77781,-5.86546 c 0.40824,-3.82021 0.30122,-4.81449 -0.35834,-3.3291 -1.38699,3.12365 -2.46622,12.28125 -1.21728,10.3291 0.54644,-0.85412 1.25548,-4.00412 1.57562,-7 z m -55.03235,-0.37561 c -0.36782,-1.46551 -0.86162,-2.47171 -1.09733,-2.236 -0.23572,0.23572 -0.12763,1.62763 0.24019,3.09314 0.36782,1.46551 0.86162,2.47171 1.09733,2.236 0.23572,-0.23572 0.12763,-1.62763 -0.24019,-3.09314 z m 21.54102,-15.32143 c -0.0304,-11.74911 -1.2524,-13.79074 -2.24452,-3.75 -0.41529,4.2029 1.02882,15.5 1.98137,15.5 0.16146,0 0.27988,-5.2875 0.26315,-11.75 z m -3.05902,-12.25 c 0.0249,-2.41204 -0.0258,-2.43171 -1.44237,-0.55887 -1.57606,2.08373 -1.91497,6.25677 -0.74938,9.22708 0.54652,1.39274 0.89224,0.87305 1.44237,-2.16821 0.39795,-2.2 0.73517,-5.125 0.74938,-6.5 z m 17.91851,-0.55705 c -2.28763,-3.35091 -4.82908,-5.20706 -4.82908,-3.52692 0,0.4693 1.4625,3.12445 3.25,5.90034 2.5784,4.00411 3.318,4.63286 3.57908,3.04264 0.18099,-1.10244 -0.71901,-3.53967 -2,-5.41606 z m -38.51421,-0.82109 c 0.29086,-0.75798 0.024,-1.88298 -0.59302,-2.5 -0.82914,-0.82915 -0.80875,-1.43496 0.0781,-2.32186 1.36177,-1.36177 1.63714,-3.1882 0.36186,-2.40003 -0.46099,0.2849 -0.75607,-1.71354 -0.65575,-4.44098 0.10032,-2.72745 -0.085,-4.95514 -0.41185,-4.95044 -0.32684,0.005 -1.42095,2.66105 -2.43135,5.903 -1.43965,4.61918 -1.5919,6.3526 -0.70376,8.01211 0.62334,1.16472 0.86098,2.55837 0.52808,3.09701 -0.33289,0.53863 0.27316,0.97933 1.34677,0.97933 1.07362,0 2.19001,-0.62017 2.48088,-1.37814 z m 62.38659,0.58381 c 1.54619,-0.98283 -0.83525,-13.41693 -2.68797,-14.03451 -0.9475,-0.31583 -0.91841,-0.63843 0.12336,-1.36834 1.12443,-0.78782 1.11001,-0.88656 -0.0823,-0.56379 -2.96567,0.80281 -3.50602,9.93987 -0.88771,15.01097 0.98971,1.91685 1.71431,2.11277 3.53465,0.95567 z m -13.3199,-15.75761 c 0.34149,-0.88992 0.17385,-1.29132 -0.39301,-0.94098 -0.5437,0.33602 -0.98855,1.0344 -0.98855,1.55194 0,1.43843 0.71677,1.12146 1.38156,-0.61096 z m -23.01993,-2.94806 c -0.35795,-0.9328 -1.7641,-1.45614 -3.71862,-1.384 -2.10004,0.0775 -2.47934,0.27564 -1.14301,0.59707 1.1,0.26458 2.4275,0.88738 2.95,1.38399 1.47428,1.40125 2.54957,1.0654 1.91163,-0.59706 z m -13.01655,-1.04313 c -0.32569,-0.84872 -0.80663,-1.32866 -1.06875,-1.06653 -0.26213,0.26213 -0.17998,0.95654 0.18255,1.54313 0.98605,1.59546 1.56238,1.28551 0.8862,-0.4766 z m 41.65492,-4.89785 c 0,-0.24254 -0.45,-0.7191 -1,-1.05902 -0.55,-0.33992 -1,-0.14148 -1,0.44098 0,0.58246 0.45,1.05902 1,1.05902 0.55,0 1,-0.19844 1,-0.44098 z m -56.30701,-8.28999 c -0.25354,-0.97297 -0.47766,-0.41903 -0.49804,1.23097 -0.0204,1.65 0.18706,2.44606 0.46099,1.76903 0.27392,-0.67703 0.29059,-2.02703 0.037,-3 z m 62.30701,-0.38706 c 0,-0.55 -0.45,-0.72189 -1,-0.38197 -0.55,0.33992 -1,1.06803 -1,1.61803 0,0.55 0.45,0.72189 1,0.38197 0.55,-0.33992 1,-1.06803 1,-1.61803 z m -79,-36.94099 c 0,-1.13246 -0.43035,-1.79305 -0.95633,-1.46797 -0.52597,0.32507 -0.70283,1.25163 -0.39301,2.05902 0.79323,2.06711 1.34934,1.82352 1.34934,-0.59105 z m 2.86122,-4.65935 c 1.43385,-1.43385 2.13092,-18.62282 0.80883,-19.94491 -0.92318,-0.92318 -5.87648,10.68296 -5.25286,12.30808 0.28602,0.74536 0.0738,1.3552 -0.47163,1.3552 -0.54542,0 -0.25454,1.125 0.6464,2.5 1.47948,2.25798 1.48475,2.5 0.0544,2.5 -0.90885,0 -1.36562,0.56813 -1.07198,1.33333 0.66613,1.7359 3.52719,1.70792 5.28681,-0.0517 z m -7.17811,-9.46913 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 68.3616,227.1875 c -0.14987,-2.83111 -0.3372,-3.11778 -0.9802,-1.5 -0.79493,2 -0.79493,2 -1.31372,0 -0.46343,-1.7866 -0.53116,-1.75362 -0.63479,0.30902 -0.0638,1.26996 -0.566,2.0309 -1.116,1.69098 -0.55,-0.33992 -1,-4.32267 -1,-8.85055 0,-4.52789 -0.71835,-13.61383 -1.59632,-20.19099 -1.64152,-12.297 -1.4217,-22.68483 0.59164,-27.95846 1.08808,-2.85009 1.20242,-2.90006 2.288,-1 1.238,2.16684 1.33571,2.59212 1.56437,6.80902 0.19545,3.60457 1.73486,2.67751 2.57047,-1.54797 0.35469,-1.79358 1.35913,-4.16105 2.2321,-5.26105 1.52948,-1.92727 1.56316,-1.89661 0.92603,0.84319 -1.24029,5.33351 -1.62213,10.15404 -1.99272,25.15681 -0.20379,8.25 -0.65666,16.125 -1.00639,17.5 -0.34973,1.375 1.4266,-3.575 3.94739,-11 4.45548,-13.12361 4.56988,-13.76487 4.10316,-23 -0.26405,-5.225 -0.62581,-10.61096 -0.80391,-11.96879 -0.22622,-1.72467 0.21026,-2.57693 1.44811,-2.82755 1.29411,-0.26201 2.32664,0.89528 3.82902,4.29166 1.13141,2.55773 1.81067,5.29262 1.50946,6.07755 -0.3012,0.78492 -0.11176,1.42713 0.42097,1.42713 2.18174,0 0.81881,10.06812 -2.91774,21.55381 -2.1375,6.5704 -4.10441,12.62119 -4.37092,13.44619 -0.2665,0.825 -0.34915,0.375 -0.18367,-1 0.16549,-1.375 0.6291,-3.4 1.03025,-4.5 0.43073,-1.18112 0.35704,-1.66416 -0.17997,-1.17976 -0.50013,0.45113 -1.65331,3.60113 -2.56262,7 -2.04608,7.64792 -2.35606,4.41861 -0.36671,-3.82024 2.08793,-8.64711 1.72426,-9.01105 -1.05443,-1.05521 -1.33407,3.81963 -2.4515,8.99463 -2.4832,11.5 -0.0317,2.50536 -0.42995,6.35521 -0.885,8.55521 l -0.82737,4 -0.18529,-3.5 z m -1.3616,-6.1875 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36781,-1.1948 0.0789,-1.91667 z m 1,-4 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36781,-1.1948 0.0789,-1.91667 z m -0.43818,-11.5625 c 0.2753,-2.0625 0.18061,-8.025 -0.21043,-13.25 -0.78436,-10.4805 -1.14274,-8.72557 -1.37841,6.74996 -0.15624,10.25992 0.64787,13.5496 1.58884,6.50004 z m 13.30356,-14.75 c 0.95297,-4.73554 0.60737,-13.37934 -0.61972,-15.5 -0.56771,-0.98113 -0.87847,0.43827 -0.89836,4.10331 -0.0167,3.08182 -0.28451,8.48182 -0.59507,12 -0.60868,6.89539 0.67807,6.52802 2.11315,-0.60331 z m -16.54849,-8.05902 c 0,-7.17588 -1.53242,-8.00361 -2.21654,-1.19725 -0.34754,3.45773 0.73708,7.75627 1.95709,7.75627 0.1427,0 0.25945,-2.95156 0.25945,-6.55902 z m 0,-8.44098 c 0,-0.55 -0.45,-1 -1,-1 -0.55,0 -1,0.45 -1,1 0,0.55 0.45,1 1,1 0.55,0 1,-0.45 1,-1 z m 6.232,53 c 0,-1.925 0.2058,-2.7125 0.45733,-1.75 0.25152,0.9625 0.25152,2.5375 0,3.5 -0.25153,0.9625 -0.45733,0.175 -0.45733,-1.75 z m 0.96295,-6.5 c 0.0204,-1.65 0.2445,-2.20394 0.49804,-1.23097 0.25354,0.97297 0.23687,2.32297 -0.037,3 -0.27393,0.67703 -0.48137,-0.11903 -0.46099,-1.76903 z m -42.00778,-58.38432 c -0.6902,-0.42657 -0.96652,-1.5271 -0.61405,-2.44563 0.36081,-0.94025 0.15711,-1.67005 -0.46613,-1.67005 -0.65996,0 -1.10699,-1.9953 -1.10699,-4.94098 0,-2.71754 -0.45,-5.2191 -1,-5.55902 -0.55,-0.33992 -0.96829,-1.82898 -0.92954,-3.30902 0.0625,-2.3862 0.23847,-2.23794 1.55387,1.30902 1.72824,4.66019 4.62528,16.58372 4.14582,17.06319 -0.18044,0.18043 -0.89278,-0.021 -1.58298,-0.44751 z m 48.89178,-0.69901 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -3.0408,-2.91667 c 0.004,-1.65 0.85663,-6.15 1.89442,-10 l 1.8869,-7 0.075,6 c 0.0527,4.21697 -0.21312,5.55424 -0.89442,4.5 -0.716,-1.10792 -0.97738,-0.45447 -1,2.5 -0.0168,2.2 -0.46684,4.675 -1,5.5 -0.74329,1.15016 -0.96762,0.80032 -0.96185,-1.5 z m -49.80615,-3.5 c 0,-1.925 0.2058,-2.7125 0.45733,-1.75 0.25152,0.9625 0.25152,2.5375 0,3.5 -0.25153,0.9625 -0.45733,0.175 -0.45733,-1.75 z m 18.84695,-4.58333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 1.07895,-4.41667 c 0,-1.375 0.22697,-1.9375 0.50438,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50438,0.125 -0.50438,-1.25 z m -26.07895,-21.58333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 64.07894,-1.41667 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z M 415.72962,529.31408 c 0.008,-0.71996 0.45153,-1.98402 0.98469,-2.80902 0.78809,-1.21948 0.97224,-1.09025 0.98469,0.69098 0.008,1.20504 -0.43469,2.4691 -0.98469,2.80902 -0.55,0.33992 -0.99311,0.029 -0.98469,-0.69098 z m 163.31802,-0.26503 c 0,-0.80081 0.38234,-1.21971 0.84965,-0.9309 0.4673,0.28881 0.59075,0.94401 0.27431,1.45601 -0.80862,1.30838 -1.12396,1.16106 -1.12396,-0.52511 z M 413.71431,517.00506 c 0,-0.825 0.43588,-1.5 0.96862,-1.5 0.53273,0 0.70959,0.675 0.39301,1.5 -0.31659,0.825 -0.75246,1.5 -0.96862,1.5 -0.21616,0 -0.39301,-0.675 -0.39301,-1.5 z m 3.50708,0.51145 c -0.35034,-0.56686 0.0511,-0.7345 0.94098,-0.39301 1.73242,0.66479 2.04939,1.38156 0.61096,1.38156 -0.51754,0 -1.21592,-0.44485 -1.55194,-0.98855 z m 4.76195,0.29556 c 0.97297,-0.25354 2.32297,-0.23687 3,0.0371 0.67703,0.27393 -0.11903,0.48137 -1.76903,0.46099 -1.65,-0.0204 -2.20394,-0.2445 -1.23097,-0.49804 z m 153.73097,-1.74799 c 0,-0.79254 0.40803,-1.69316 0.90674,-2.00138 0.49871,-0.30822 0.67122,0.34022 0.38337,1.44098 -0.61061,2.33499 -1.29011,2.63015 -1.29011,0.5604 z m -174.25,-2.2213 c 0.6875,-0.27741 1.8125,-0.27741 2.5,0 0.6875,0.27741 0.125,0.50439 -1.25,0.50439 -1.375,0 -1.9375,-0.22698 -1.25,-0.50439 z m 5.80214,-2.61301 c 1.04002,-2.71022 7.86192,-3.69402 8.79287,-1.26802 0.457,1.19093 0.13421,1.26315 -1.76927,0.39587 -1.82294,-0.83059 -2.90139,-0.68529 -4.96903,0.66948 -2.20508,1.44482 -2.54406,1.47826 -2.05457,0.20267 z m 18.44786,-2.57617 c 0,-1.80401 -0.46583,-4.15044 -1.03518,-5.21428 -0.82812,-1.54735 -0.70671,-1.93426 0.60698,-1.93426 1.04887,0 1.43422,-0.54194 1.06657,-1.5 -0.74143,-1.93215 0.0931,-1.9114 2.05561,0.0511 1.87034,1.87034 1.18258,8.00089 -1.16044,10.34391 -1.37805,1.37807 -1.53354,1.201 -1.53354,-1.74647 z m -18.61812,-0.96821 c 1.03504,-1.1711 2.782,-2.41496 3.88213,-2.76412 1.5872,-0.50376 1.71484,-0.81562 0.61812,-1.51022 -0.86773,-0.54957 -0.94735,-0.88106 -0.21392,-0.89068 0.64252,-0.008 1.99252,-0.28276 3,-0.60964 1.56286,-0.50708 1.61157,-0.41982 0.33179,0.59433 -1.27978,1.01415 -1.23107,1.10141 0.33179,0.59433 1.00748,-0.32688 2.04654,-0.59433 2.30901,-0.59433 0.26248,0 0.19912,-0.45 -0.1408,-1 -0.33992,-0.55 -0.15901,-1 0.40203,-1 0.56103,0 1.8901,-0.93387 2.95347,-2.07528 2.99182,-3.21133 3.5156,-0.5192 0.57819,2.97172 -1.55496,1.84796 -4.23894,3.50286 -6.75669,4.16607 -2.29735,0.60516 -5.302,1.80832 -6.677,2.67369 l -2.5,1.5734 1.88188,-2.12927 z m 172.61812,0.81967 c -1.29269,-0.8354 -1.26629,-0.97149 0.19098,-0.98469 0.93004,-0.008 1.9691,0.43469 2.30902,0.98469 0.78218,1.2656 -0.54163,1.2656 -2.5,0 z m -163,-0.39301 c 0,-0.21616 0.69837,-0.661 1.55194,-0.98855 0.88992,-0.34149 1.29132,-0.17385 0.94098,0.39301 -0.58726,0.95021 -2.49292,1.40545 -2.49292,0.59554 z m 146.03518,-1.54125 c -1.50414,-2.81053 -1.28845,-8.75457 0.34036,-9.37961 0.81533,-0.31287 1.83868,0.48862 2.51271,1.96795 1.23203,2.70402 0.62288,4.77985 -1.0917,3.72018 -0.69982,-0.43251 -0.90705,0.4195 -0.60409,2.48369 0.53375,3.63665 0.28278,3.89857 -1.15728,1.20779 z m 11.96482,-0.0344 c 0,-0.53273 0.675,-0.70959 1.5,-0.39301 0.825,0.31659 1.5,0.75246 1.5,0.96862 0,0.21615 -0.675,0.39301 -1.5,0.39301 -0.825,0 -1.5,-0.43588 -1.5,-0.96862 z m 4,-0.8089 c -6.72598,-2.05802 -8.95861,-3.35561 -11.20734,-6.51367 -1.63448,-2.29541 -1.7869,-3.0954 -0.76891,-4.03585 0.97239,-0.89834 1.11386,-0.89556 0.60422,0.0119 -0.90762,1.61603 4.8719,5.82469 10.13391,7.37954 3.77631,1.11586 7.21018,3.50167 6.13062,4.2595 -0.21587,0.15154 -2.4175,-0.34408 -4.8925,-1.10138 z M 431.26382,494.50506 c 1.12758,-2.00658 9.52856,-14.36706 10.19496,-15 1.26081,-1.1975 -2.32121,4.9285 -5.55488,9.5 -3.77172,5.33214 -6.0898,8.07982 -4.64008,5.5 z m -6.52261,-1.25 c -0.0165,-1.07437 -0.79905,-1.75 -2.0269,-1.75 -1.1,0 -2,-0.4 -2,-0.88889 0,-1.09539 3.27205,-0.92198 4.10772,0.21769 0.33424,0.45584 2.68336,-2.32183 5.22026,-6.17261 5.41851,-8.22477 7.70898,-10.18387 4.68912,-4.01073 -2.05603,4.20291 -2.05938,4.26749 -0.0961,1.85454 1.11878,-1.375 2.73272,-3.94643 3.58653,-5.71429 1.74517,-3.61347 5.30209,-6.52138 6.82534,-5.57996 0.60817,0.37587 0.74619,-0.0573 0.34849,-1.09364 -0.39113,-1.01928 -0.25712,-1.46793 0.33006,-1.10503 0.5437,0.33602 0.98855,0.2204 0.98855,-0.25693 0,-0.47734 0.69418,-1.7414 1.54261,-2.80902 0.84844,-1.06762 0.39086,0.42137 -1.01684,3.30887 -2.3522,4.82486 -4.24139,7.27843 -2.8874,3.75 1.15532,-3.01071 -0.65029,-1.39736 -2.51812,2.25 -2.60053,5.07812 -13.21067,19.49291 -13.86576,18.83783 -0.28897,-0.28898 0.24091,-1.77696 1.17751,-3.30662 1.33529,-2.1808 1.04652,-2.02563 -1.33764,0.71879 -2.25077,2.59086 -3.04755,3.04543 -3.06746,1.75 z m 134.61395,-0.25645 c 0.24759,-0.64522 -0.35781,-1.80772 -1.34534,-2.58334 -1.67379,-1.31461 -1.69499,-1.27463 -0.31274,0.58979 1.46796,1.98003 1.46047,1.98098 -0.75,0.095 -2.28745,-1.95164 -3.02279,-3.2013 -1.23277,-2.09501 1.93313,1.19474 0.97464,-1.21166 -1.23277,-3.09501 -2.21047,-1.88597 -2.21796,-1.88502 -0.75,0.095 1.33027,1.7943 1.32244,1.87516 -0.0761,0.78619 -3.80232,-2.96069 -16.28833,-24.85487 -13.02388,-22.83733 0.52491,0.32442 1.26019,-1.44939 1.63395,-3.9418 0.8129,-5.4208 1.59547,-6.10744 3.97013,-3.48348 1.71521,1.89529 0.92388,2.78362 -1.0925,1.22642 -0.53413,-0.4125 -0.0985,0.0583 0.96798,1.04631 1.83432,1.69922 1.84605,1.8884 0.21712,3.5 -1.55104,1.53453 -1.66024,1.53997 -1.0998,0.0548 0.34221,-0.90687 0.14017,-1.94676 -0.44898,-2.31088 -0.68162,-0.42127 -0.91528,0.17839 -0.64249,1.64885 0.23579,1.27098 0.46215,2.67494 0.50302,3.1199 0.0409,0.44496 0.59384,0.48793 1.22882,0.0955 0.68238,-0.42174 0.8843,-0.27633 0.49377,0.35557 -0.36341,0.58801 -0.0954,1.31468 0.59549,1.61483 0.69093,0.30014 -0.0938,0.34842 -1.74377,0.10728 l -3,-0.43845 2.779,1.18137 c 1.66904,0.70952 2.57228,1.72005 2.26145,2.53007 -0.28465,0.74178 -0.1385,1.11443 0.32478,0.82811 0.46327,-0.28631 1.36153,0.61898 1.99613,2.01177 0.6346,1.3928 0.75665,2.28689 0.27123,1.98688 -0.48543,-0.3 -0.88259,0.59115 -0.88259,1.98034 0,2.52075 0.003,2.52156 1.48735,0.40231 l 1.48736,-2.12349 2.84601,2.72665 c 4.53439,4.34423 11.2713,14.43225 9.63804,14.43225 -0.78044,0 -3.31292,-2.7 -5.62774,-6 -2.31482,-3.3 -4.33002,-6 -4.47822,-6 -0.14821,0 -0.26947,0.675 -0.26947,1.5 0,0.825 0.21408,1.28592 0.47574,1.02427 0.60581,-0.60582 7.19093,8.60288 7.19093,10.05587 0,0.59759 -0.6321,1.08653 -1.40466,1.08653 -0.77256,0 -1.20208,-0.52791 -0.95449,-1.17312 z m -6.64085,-9.87111 c 0,-0.20765 -0.7875,-0.99515 -1.75,-1.75 -1.58606,-1.24387 -1.62143,-1.2085 -0.37756,0.37756 1.30637,1.66575 2.12756,2.19548 2.12756,1.37244 z m 1,-4.06342 c 0,-0.24254 -0.45,-0.7191 -1,-1.05902 -0.55,-0.33992 -1,-0.14148 -1,0.44098 0,0.58246 0.45,1.05902 1,1.05902 0.55,0 1,-0.19844 1,-0.44098 z m 13,10.06342 c 0,-0.75765 -0.74867,-1.99515 -1.66372,-2.75 -1.5086,-1.24448 -1.55194,-1.16266 -0.46482,0.87756 2.18482,4.10027 0.3655,2.33005 -2.3268,-2.26401 -1.45496,-2.4827 -2.37691,-4.9484 -2.04878,-5.47933 0.32814,-0.53093 0.0521,-1.98713 -0.61336,-3.23599 -1.05571,-1.9812 -1.01801,-2.11242 0.29577,-1.02935 0.82815,0.68273 1.68932,1.05808 1.91372,0.83411 0.22439,-0.22398 0.4727,0.67695 0.55179,2.00205 0.0791,1.32511 -0.25841,2.16071 -0.75,1.85689 -0.49159,-0.30382 -0.8938,-0.1024 -0.8938,0.4476 0,1.41612 1.76114,2.33385 2.16459,1.12797 0.18448,-0.55139 1.59887,1.24581 3.1431,3.99377 1.54422,2.74796 2.33172,4.99629 1.75,4.99629 -0.58173,0 -1.05769,-0.6199 -1.05769,-1.37756 z m -0.81149,-6.10415 c -1.77575,-2.96886 -3.16632,-5.7625 -3.09015,-6.2081 0.0762,-0.44561 0.0593,-1.03519 -0.0376,-1.31019 -0.0968,-0.275 -0.35813,-2.23797 -0.58068,-4.36216 -0.22255,-2.12419 -1.00613,-4.37419 -1.74128,-5 -1.68019,-1.43029 -5.10263,-11.24021 -4.34763,-12.46183 0.30889,-0.49979 -0.32777,-1.7136 -1.4148,-2.69735 -1.08703,-0.98375 -1.98643,-2.28139 -1.99866,-2.88365 -0.0122,-0.60225 -0.91891,-2.22001 -2.01486,-3.59501 l -1.99263,-2.5 0.19358,5.25 c 0.10646,2.8875 0.6113,5.25 1.12185,5.25 0.51055,0 0.67479,0.66059 0.36496,1.46797 -0.30982,0.80739 -0.13297,1.73395 0.39301,2.05902 0.52598,0.32508 0.95633,1.39472 0.95633,2.37699 0,0.98227 1.82348,4.60723 4.05219,8.05547 4.21744,6.52521 4.9843,9.63637 0.90938,3.68942 -2.08047,-3.03626 -7.16023,-7.39735 -5.51428,-4.73415 0.39537,0.63972 0.0643,0.83509 -0.83221,0.49107 -0.81884,-0.31422 -1.24506,-1.20648 -0.94715,-1.98281 0.2979,-0.77632 1.05699,-1.1027 1.68685,-0.72528 0.62987,0.37742 0.54545,-0.0537 -0.18759,-0.95799 -1.54006,-1.89987 -1.8631,-3.69216 -3.07386,-17.05436 -0.48912,-5.39807 -1.16021,-10.08557 -1.49132,-10.41667 -0.3311,-0.33111 -0.60201,0.30324 -0.60201,1.40967 0,1.10642 -0.82293,2.75642 -1.82874,3.66666 -2.09543,1.89634 -5.68082,2.2885 -4.57577,0.50048 0.45742,-0.74013 0.27257,-0.88198 -0.51501,-0.39523 -0.72509,0.44813 -2.22269,-0.17468 -3.65451,-1.51981 -3.60578,-3.38745 -2.94333,-0.9331 1.57403,5.83169 4.3768,6.55431 4.64316,7.4592 2.67621,9.09162 -0.9667,0.80229 -1.64108,0.78137 -2.5,-0.0776 -1.90349,-1.90349 -1.46052,0.74618 0.89745,5.36817 1.14051,2.23558 1.66865,3.81439 1.17365,3.50847 -1.80856,-1.11775 -4.21477,-8.36558 -5.6438,-16.99988 -0.80534,-4.86587 -1.70971,-9.0925 -2.00971,-9.39251 -1.27783,-1.27783 -3.72668,2.42993 -5.59063,8.46469 -2.39485,7.75362 -2.50198,11.14526 -0.50317,15.92909 2.32198,5.55728 1.94259,8.62463 -1.2578,10.16919 -5.43003,2.62062 -7.2422,3.15121 -7.2422,2.12043 0,-0.55364 0.7875,-1.30483 1.75,-1.66929 0.9625,-0.36446 2.29603,-1.20172 2.96339,-1.86058 1.33989,-1.3228 0.86899,-5.71986 -0.66742,-6.232 -0.59597,-0.19866 -0.52615,-1.04149 0.17993,-2.1721 0.88086,-1.41049 0.86215,-2.19887 -0.0791,-3.33304 -0.72438,-0.87282 -0.9642,-2.55614 -0.58143,-4.0812 0.70133,-2.79432 -0.34644,-3.35549 -2.51253,-1.34565 -1.51076,1.40179 -1.41256,1.00204 1.32454,-5.39169 1.48358,-3.46558 1.46367,-3.66662 -0.41155,-4.157 -1.20342,-0.3147 -2.34706,0.12974 -2.93776,1.14169 -0.53198,0.91135 -0.9684,1.207 -0.96982,0.657 -10e-4,-0.55 1.33489,-2.76766 2.96959,-4.92814 1.6347,-2.16048 2.97218,-4.52298 2.97218,-5.25 0,-0.72702 0.47656,-1.32186 1.05902,-1.32186 0.58246,0 0.73793,-0.51953 0.34549,-1.15451 -0.42296,-0.68437 -0.27622,-0.88423 0.36036,-0.49081 1.29441,0.79999 4.23513,-1.92616 4.23513,-3.92611 0,-1.92908 -1.9134,-1.81783 -2.67055,0.15528 -0.44224,1.15247 -0.81009,1.2565 -1.35058,0.38196 -0.53537,-0.86625 -1.34445,-0.60023 -2.89731,0.95263 -1.18498,1.18498 -1.91568,2.54094 -1.62378,3.01325 0.5082,0.82229 -2.3789,2.48052 -3.0866,1.77282 -0.18841,-0.18841 1.16738,-2.73734 3.01288,-5.66429 1.84549,-2.92695 3.52655,-4.83983 3.73569,-4.25086 0.24836,0.69945 1.04861,0.57843 2.30725,-0.34891 1.05985,-0.78088 1.63322,-1.71356 1.27417,-2.07262 -0.35906,-0.35906 -1.26762,-0.14261 -2.01901,0.48099 -0.7514,0.62361 -1.64361,0.8564 -1.98268,0.51732 -0.33908,-0.33907 -2.43517,0.11119 -4.65799,1.00058 -5.13505,2.05464 -5.15052,1.35847 -0.0415,-1.86672 2.2,-1.3888 4.00105,-2.85694 4.00233,-3.26254 10e-4,-0.40561 -3.48622,-0.58614 -7.75,-0.40119 -4.26378,0.18496 -7.45988,0.0425 -7.10244,-0.31655 0.35744,-0.35906 3.05744,-0.7004 6,-0.75854 5.79282,-0.11446 12.61386,-2.53153 15.97138,-5.65953 l 2.10768,-1.96361 -2.36819,-2.31902 c -1.30247,-1.27541 -5.04381,-4.68147 -8.31405,-7.56897 -3.27025,-2.8875 -5.61147,-5.25 -5.20272,-5.25 0.40874,0 2.41107,1.53841 4.44961,3.4187 5.26481,4.85608 9.06084,7.73591 10.4813,7.95155 0.67383,0.1023 1.83254,0.56514 2.57491,1.02855 4.43961,2.7713 -8.81293,-15.46328 -14.02319,-19.29495 -2.32132,-1.70712 -3.70766,-3.10385 -3.08074,-3.10385 1.89623,0 7.65578,3.76701 9.25416,6.05264 0.825,1.17973 3.16547,4.463 5.20104,7.29616 2.03557,2.83316 4.41908,6.1637 5.29668,7.4012 1.53326,2.16202 4.27021,3.30156 3.00228,1.25 -0.79944,-1.29352 0.74778,-1.29352 2.3,0 0.87273,0.72727 0.92727,0.67273 0.2,-0.2 -1.18636,-1.42364 -1.33633,-3.12589 -0.21429,-2.43244 0.43215,0.26708 0.78572,-0.34832 0.78572,-1.36756 0,-1.01924 -0.32634,-1.65148 -0.72519,-1.40497 -0.39886,0.24651 -0.69117,-0.34903 -0.64959,-1.32342 0.11,-2.5775 -1.96966,-7.27161 -3.22159,-7.27161 -0.71236,0 -0.75781,-0.56578 -0.13489,-1.67889 0.696,-1.24367 0.38484,-2.17268 -1.20031,-3.5837 -1.69788,-1.51138 -1.7784,-1.79074 -0.38986,-1.3525 3.60286,1.1371 1.56496,-0.58478 -3.5,-2.95725 -2.8875,-1.35254 -4.125,-2.16933 -2.75,-1.8151 4.44612,1.14543 9.75911,4.26574 11.90208,6.99009 2.69676,3.42837 3.86547,7.99148 4.58389,17.89735 1.65173,22.77485 2.43138,26.36177 8.15089,37.5 5.05983,9.85356 14.44812,33.70969 14.29285,36.31888 -0.0387,0.64962 -0.45702,0.28112 -0.92971,-0.81888 -0.70617,-1.64336 -0.87196,-1.6968 -0.92971,-0.29969 -0.0387,0.93517 0.53229,2.06017 1.26878,2.5 1.25005,0.74653 4.02759,7.26636 3.37401,7.91995 -0.16277,0.16276 -1.74883,-2.13312 -3.52457,-5.10197 z m -28.29347,-35.71441 c -0.53097,-0.99213 -1.39957,-1.80388 -1.93022,-1.80388 -1.37606,0 -1.19342,2.83805 0.28518,4.43154 1.68026,1.81082 2.94191,-0.20444 1.64504,-2.62766 z m -15.364,1.24634 c -0.36808,-0.59556 -1.13619,-0.79425 -1.7069,-0.44153 -0.67187,0.41524 -0.56959,0.93059 0.29014,1.46194 1.60476,0.99179 2.33522,0.46569 1.41676,-1.02041 z m 21.85724,-14.37757 c -0.0614,-1.99087 0.27606,-3.3801 0.75,-3.08719 0.47395,0.29292 0.86172,-0.46284 0.86172,-1.67945 0,-2.20573 -0.005,-2.2063 -1.75,-0.20207 -0.9625,1.10548 -2.875,2.29518 -4.25,2.64378 -1.375,0.3486 -1.9347,0.37454 -1.24377,0.0576 0.69093,-0.3169 0.9589,-1.05727 0.59549,-1.64528 -0.39915,-0.64585 -0.18633,-0.7759 0.53758,-0.3285 1.85563,1.14685 4.00646,-1.27603 3.51902,-3.96412 -1.0318,-5.68998 -5.4831,-15.46742 -7.04175,-15.46742 -1.95223,0 -2.66691,1.94752 -0.95565,2.60419 1.33428,0.51201 1.34829,0.77946 0.10587,2.02188 -0.7875,0.78749 -1.17559,2.09952 -0.86242,2.9156 0.31316,0.81609 -0.0435,2.23945 -0.79249,3.16302 -0.74904,0.92358 -0.84653,1.37043 -0.21666,0.99301 1.59947,-0.9584 2.63498,2.25975 1.26016,3.91631 -0.64304,0.77481 -0.79737,2.11939 -0.3585,3.12326 0.42385,0.9695 0.6992,2.10023 0.61188,2.51273 -0.0873,0.4125 0.17874,0.69671 0.59124,0.63158 2.10687,-0.33266 2.39778,0.29764 0.90083,1.95175 -1.16509,1.28741 -1.28568,1.86552 -0.40499,1.9414 2.49907,0.21534 4.71124,0.84902 5.41272,1.55049 1.53712,1.53713 2.83624,-0.20118 2.72972,-3.65257 z m -6.04108,-0.13577 c 1.01596,-0.76973 2.51619,-1.1428 3.33384,-0.82903 1.21169,0.46496 1.23995,0.72686 0.15281,1.416 -0.73362,0.46504 -2.23385,0.8381 -3.33385,0.82903 -1.9274,-0.0159 -1.93295,-0.0673 -0.1528,-1.416 z m -3.33189,-6.28688 c 0.009,-0.99868 0.33573,-1.32068 0.76164,-0.75 0.41047,0.55 1.15358,1.3375 1.65135,1.75 0.49777,0.4125 0.15503,0.75 -0.76163,0.75 -0.92647,0 -1.65987,-0.77721 -1.65136,-1.75 z m -10.47419,-10.31653 c 1.07627,-1.74144 -0.14952,-2.11024 -1.52106,-0.45764 -0.78875,0.95039 -0.86462,1.52417 -0.20152,1.52417 0.58488,0 1.36004,-0.47994 1.72258,-1.06653 z m -25.29112,58.33348 c -1.42949,-0.49588 -1.72409,-4.26695 -0.33333,-4.26695 0.50416,0 1.08817,0.51453 1.2978,1.1434 0.28456,0.85368 0.93393,0.84755 2.56281,-0.0242 2.32741,-1.2456 7.22272,-0.53514 7.22272,1.04823 0,0.52283 -0.40208,0.7021 -0.89352,0.39838 -0.49144,-0.30373 -2.62894,0.0523 -4.75,0.79126 -2.12106,0.73892 -4.41898,1.14837 -5.10648,0.90988 z m -25.82053,-8.8838 c -0.0414,-2.59314 0.26233,-3.89599 0.73469,-3.15177 1.01961,1.60641 1.0787,6.50138 0.0858,7.11137 -0.4125,0.25344 -0.78174,-1.52838 -0.82053,-3.9596 z m 42.57053,2.17587 c 0,-0.85746 0.45,-1.55902 1,-1.55902 0.55,0 1,0.42344 1,0.94098 0,0.51754 -0.45,1.2191 -1,1.55902 -0.55,0.33992 -1,-0.0835 -1,-0.94098 z m 1.07895,-4.14235 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -17.81579,-0.66667 c -1.78508,-2.27286 -2.14775,-7.17794 -0.7209,-9.75 0.76278,-1.375 1.40282,-1.9375 1.4223,-1.25 0.0195,0.6875 0.37294,1.19671 0.78544,1.13158 0.4125,-0.0651 0.975,-0.0281 1.25,0.0822 0.275,0.11036 1.74287,0.40476 3.26194,0.65423 2.7609,0.45341 3.48068,-1.2051 1.23806,-2.85273 -0.61931,-0.45499 -0.52413,-0.74051 0.25,-0.75 0.6875,-0.008 1.25,-0.91255 1.25,-2.00918 0,-1.96767 -1.94711,-2.16911 -8.0271,-0.83043 -1.06415,0.2343 -1.56203,-0.76674 -1.79409,-3.60722 -0.27961,-3.42268 -0.12435,-3.76817 1.19964,-2.66936 0.83646,0.6942 2.8855,1.11903 4.55342,0.94408 3.608,-0.37846 8.21724,2.82858 6.01842,4.18752 -1.03933,0.64234 -1.09812,1.79577 -0.27488,5.39332 1.75134,7.65339 0.96661,9.23313 -4.97828,10.02175 -3.67891,0.48802 -4.70486,0.93734 -3.65566,1.601 0.80219,0.50742 0.95113,0.92948 0.33097,0.9379 -0.62015,0.008 -1.56933,-0.54719 -2.10928,-1.23469 z m -11.76316,-1.78812 c -1.1,-0.45172 -3.4001,-0.85294 -5.11133,-0.89159 -2.75832,-0.0623 -3.05764,-0.35113 -2.63814,-2.54561 0.39012,-2.0408 0.79309,-2.30411 2.29559,-1.5 3.0688,1.64237 4.74167,1.10707 6.29955,-2.01578 0.82069,-1.6451 1.19115,-3.16048 0.82324,-3.3675 -1.38717,-0.7806 -7.18191,-0.47145 -6.6706,0.35587 0.29387,0.47549 0.007,1.19016 -0.63651,1.58814 -0.68951,0.42615 -0.90412,0.29208 -0.52205,-0.32612 0.35682,-0.57734 -0.0881,-1.33247 -0.98862,-1.67804 -2.35543,-0.90387 -0.97954,-1.80999 3.12692,-2.0593 3.993,-0.24243 5.03491,-0.88294 4.04411,-2.4861 -0.41737,-0.67532 -2.02712,-0.84414 -4.1864,-0.43906 -3.26352,0.61224 -3.48481,0.49342 -3.17202,-1.70318 0.29967,-2.1044 0.78411,-2.32862 4.45216,-2.06069 3.57905,0.26144 4.19861,-0.002 4.74998,-2.01613 0.52692,-1.9253 0.80046,-2.06332 1.61878,-0.81679 1.27147,1.93682 1.29731,5.73678 0.0419,6.16667 -0.62163,0.21287 -0.5648,2.79329 0.15728,7.14034 0.93531,5.63079 0.88752,7.03762 -0.27659,8.1416 -0.91474,0.86749 -2.10725,1.04713 -3.40727,0.51327 z m 31.83333,-3.46188 c 0,-0.825 0.375,-1.5 0.83334,-1.5 0.45833,0 0.83333,0.675 0.83333,1.5 0,0.825 -0.375,1.5 -0.83333,1.5 -0.45834,0 -0.83334,-0.675 -0.83334,-1.5 z m -70.83049,-7.49105 c -0.75583,-2.3814 0.0789,-4.00895 2.05618,-4.00895 0.93442,0 1.44098,1.05461 1.44098,3 0,3.45628 -2.4922,4.17529 -3.49716,1.00895 z m 2.18027,-1.19645 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 3.51184,0.6875 c 0.0204,-1.65 0.2445,-2.20394 0.49804,-1.23097 0.25354,0.97297 0.23687,2.32297 -0.037,3 -0.27393,0.67703 -0.48137,-0.11903 -0.46099,-1.76903 z m -2.16432,-6 c 0,-0.55 0.43621,-1.675 0.96937,-2.5 0.53316,-0.825 0.96937,-1.05 0.96937,-0.5 0,0.55 -0.43621,1.675 -0.96937,2.5 -0.53316,0.825 -0.96937,1.05 -0.96937,0.5 z m 91.17994,-0.89914 c 0.70919,-0.76953 1.44699,-1.24947 1.63957,-1.06653 0.59314,0.56346 -0.91014,2.46567 -1.94858,2.46567 -0.53923,0 -0.40017,-0.62961 0.30901,-1.39914 z m -34.66786,-1.53176 c -0.31644,-0.512 -0.11799,-1.21356 0.44098,-1.55902 0.55897,-0.34546 1.01631,0.0734 1.01631,0.9309 0,1.75653 -0.60006,2.01516 -1.45729,0.62812 z m -28.20938,-6.98964 c 0,-1.99647 0.41185,-2.73074 1.33334,-2.37713 0.73333,0.28141 1.33333,1.0834 1.33333,1.78221 0,0.69882 -0.6,1.76853 -1.33333,2.37714 -1.05878,0.87871 -1.33334,0.51172 -1.33334,-1.78222 z m 21.16667,-0.5832 -3,-1.33382 4.05887,-0.0812 c 2.23238,-0.0447 4.88577,0.52343 5.89643,1.26244 1.69675,1.24069 1.61561,1.34912 -1.05887,1.41504 -1.59304,0.0393 -4.24643,-0.52883 -5.89643,-1.26244 z m -15,-1.49626 c -1.78583,-0.7674 -1.71184,-0.86696 0.69098,-0.92971 1.48004,-0.0387 2.9691,0.37971 3.30902,0.92971 0.73784,1.19384 -1.22178,1.19384 -4,0 z m -31.5,-28.37755 c 0,-0.20766 0.7875,-0.99516 1.75,-1.75 1.58606,-1.24388 1.62143,-1.20851 0.37755,0.37755 -1.30636,1.66575 -2.12755,2.19548 -2.12755,1.37245 z m 3,-3.92138 c 0,-0.96055 5.11336,-8.70107 5.7479,-8.70107 0.44709,0 -1.14427,2.70185 -4.40125,7.47251 -0.74066,1.08488 -1.34665,1.63773 -1.34665,1.22856 z m -4.43524,-1.59629 c -0.3043,-0.49236 0.0962,-1.14445 0.89006,-1.44907 0.96277,-0.36945 1.25818,-0.0714 0.88726,0.89522 -0.6446,1.67981 -1.01089,1.79396 -1.77732,0.55385 z m 12.43524,0.51767 c 0,-0.20766 0.7875,-0.99516 1.75,-1.75 1.58606,-1.24388 1.62143,-1.20851 0.37755,0.37755 -1.30636,1.66575 -2.12755,2.19548 -2.12755,1.37245 z m -2,-9 c 0,-0.20766 0.7875,-0.99516 1.75,-1.75 1.58606,-1.24388 1.62143,-1.20851 0.37755,0.37755 -1.30636,1.66575 -2.12755,2.19548 -2.12755,1.37245 z m 24.0264,-3.04246 c -0.62079,-1.881 -1.82757,-4.00001 -2.68173,-4.7089 -0.85416,-0.70889 -1.945,-2.31989 -2.4241,-3.57999 -1.05594,-2.77736 -2.92057,-3.02298 -2.92057,-0.38472 0,1.45707 -0.53029,1.78965 -2.25,1.41109 -5.28431,-1.16324 -5.37232,-1.37985 -1.78777,-4.40019 4.38945,-3.69857 3.201,-3.71397 -3.3405,-0.0433 -2.81695,1.58069 -6.47173,3.17334 -8.12173,3.53922 -1.65,0.36587 1.275,-1.48992 6.5,-4.12399 l 9.5,-4.78922 -0.10398,-6 c -0.13041,-7.52504 -2.53631,-20.04029 -4.16573,-21.66971 -0.67666,-0.67666 -1.2234,-1.70279 -1.21498,-2.28029 0.008,-0.5775 0.45153,-0.375 0.98469,0.45 0.69257,1.07167 0.98387,-0.0706 1.02012,-4 0.0487,-5.27673 0.10876,-5.39852 1.47988,-3 1.75045,3.06208 1.88093,4.35346 0.3439,3.40353 -0.83051,-0.51329 -0.97132,0.20936 -0.5,2.56598 0.36086,1.80427 0.6561,4.93823 0.6561,6.96436 0,2.02613 0.64471,4.55738 1.43268,5.625 1.21992,1.65286 1.62831,1.73371 2.75,0.54443 1.09502,-1.16101 1.0798,-1.26119 -0.0902,-0.59363 -1.07049,0.61078 -1.27718,0.30464 -0.86319,-1.27848 0.34444,-1.31713 0.12669,-1.92128 -0.59295,-1.64513 -0.7444,0.28565 -1.23524,-1.44054 -1.42081,-4.99665 -0.24629,-4.7198 -0.0165,-5.51781 1.75048,-6.07862 1.11869,-0.35506 2.03399,-1.06524 2.03399,-1.57818 0,-0.51293 0.9,-0.93261 2,-0.93261 1.1,0 2,0.40787 2,0.90638 0,0.49851 0.92291,0.66503 2.05091,0.37005 1.67424,-0.43782 1.93514,-1.06344 1.42055,-3.40638 -0.56396,-2.56766 -0.36482,-2.87005 1.89007,-2.87005 3.51392,0 4.38351,1.97829 1.792,4.07676 -2.67921,2.1695 -0.91553,3.05119 3.24314,1.6213 2.03254,-0.69885 3.44549,-0.65322 4.73643,0.15299 2.44102,1.52444 2.91931,1.4491 2.22853,-0.35105 -0.31659,-0.825 -1.20246,-1.5 -1.96862,-1.5 -1.73131,0 -1.84722,-2.6671 -0.14301,-3.29081 2.1239,-0.77732 -2.4623,-4.25789 -5.11099,-3.87886 -3.16556,0.453 -1.88738,-1.45412 1.39513,-2.08161 4.50047,-0.86032 6.55034,1.91108 7.44556,10.06631 0.43756,3.98613 0.44861,8.78592 0.0245,10.66618 -0.42407,1.88026 -0.49972,3.68997 -0.16812,4.02158 0.33161,0.3316 -0.13616,0.3193 -1.03948,-0.0273 -1.12531,-0.43183 -1.57084,-0.14274 -1.41513,0.9182 0.63165,4.30341 3.56022,2.36614 3.61853,-2.39366 0.022,-1.79629 0.27386,-2.11607 0.89475,-1.13607 0.5121,0.80832 0.30701,3.4562 -0.50345,6.5 -0.75216,2.82484 -1.3729,7.4882 -1.37943,10.36302 -0.0138,6.0563 0.4275,6.47822 11.45092,10.94909 5.66558,2.29784 6.47269,2.88143 4.33218,3.13245 -1.44683,0.16967 -4.96233,-0.87308 -7.81222,-2.31723 -5.13789,-2.60357 -8.10994,-2.83666 -4.08013,-0.32 2.72993,1.70487 2.6673,3.66775 -0.15262,4.7832 -1.74189,0.68903 -2.6452,0.43091 -4,-1.143 -1.65255,-1.91982 -1.75659,-1.92941 -1.86842,-0.17224 -0.0651,1.02343 -0.0467,2.25349 0.0409,2.73346 0.0876,0.47998 -0.53408,0.6066 -1.38158,0.28139 -0.8475,-0.32522 -1.5409,-0.15542 -1.5409,0.37731 0,0.53274 0.7875,0.99714 1.75,1.03201 1.39873,0.0507 1.31984,0.23697 -0.393,0.92819 -1.17865,0.47564 -2.91748,1.90962 -3.86406,3.18661 l -1.72106,2.32181 0.52044,-2.25 c 0.54552,-2.35842 -0.75898,-3.15871 -1.63004,-1 -0.40351,1 -0.52017,1 -0.58333,0 -0.0434,-0.6875 -0.94145,-1.25 -1.99562,-1.25 -1.05416,0 -2.14364,0.5625 -2.42105,1.25 -0.30132,0.74674 -0.53617,0.54544 -0.58333,-0.5 -0.0434,-0.9625 -0.56471,-1.75 -1.1584,-1.75 -0.67916,0 -0.83511,1.11251 -0.42055,3 0.89555,4.07743 -0.0812,3.79903 -1.4736,-0.42001 z m 13.33137,-10.09003 c -0.48673,-1.2684 -0.98054,-0.73148 -1.98764,2.16117 -1.74372,5.0084 -1.725,5.06973 0.63257,2.07256 1.18648,-1.50836 1.73876,-3.23387 1.35507,-4.23373 z m -9.78253,-2.24805 c -1.08623,-1.08624 -1.39787,0.26161 -0.75331,3.25809 l 0.64532,3 0.34162,-2.84142 c 0.18789,-1.56278 0.0828,-3.10029 -0.23363,-3.41667 z m -4.31423,0.50809 c -0.30177,-2.3375 -0.95978,-5.35975 -1.46226,-6.71612 -0.72704,-1.96256 -1.09527,-2.17214 -1.80338,-1.02639 -0.56667,0.9169 -0.45504,1.7161 0.30742,2.2008 0.88168,0.5605 0.8355,0.76512 -0.17523,0.7764 -1.10647,0.0123 -1.13119,0.30601 -0.12756,1.51531 0.68469,0.825 0.95441,1.5 0.59939,1.5 -0.35502,0 0.0414,1.04842 0.88106,2.32983 0.83961,1.2814 1.22499,2.6314 0.85639,3 -0.3686,0.36859 -0.18799,0.67017 0.40134,0.67017 0.68,0 0.87103,-1.55287 0.52283,-4.25 z m 8.72745,-2.4745 c -1.07707,-1.67827 -1.10795,-1.67518 -0.56397,0.0563 0.31653,1.00749 0.64293,3.03249 0.72534,4.5 l 0.14983,2.66822 0.41413,-2.7245 c 0.22777,-1.49848 -0.0986,-3.52348 -0.72533,-4.5 z m 8.8235,-3.65741 c -0.0748,-1.98995 -0.28207,-3.61809 -0.46057,-3.61809 -1.00125,0 -3.28757,7.62573 -2.77269,9.24797 0.6003,1.89138 0.63593,1.89061 1.99026,-0.043 0.75846,-1.08285 1.31781,-3.59696 1.243,-5.58691 z m 0.18804,-10.22574 c 0,-0.82763 -1.94173,-1.29565 -2.38691,-0.57533 -0.28881,0.46731 0.13009,0.84965 0.9309,0.84965 0.8008,0 1.45601,-0.12345 1.45601,-0.27432 z m -15,-2.39235 c -1.08346,-0.70019 -0.16458,-0.97363 3.30902,-0.98469 3.55997,-0.0113 4.62572,0.30935 4.10329,1.23469 -0.50865,0.90095 -0.3157,0.88356 0.69099,-0.0623 1.18754,-1.11576 1.09719,-1.48232 -0.6033,-2.44773 -2.93336,-1.66534 -5.6024,-1.63274 -7.61797,0.093 -1.85009,1.5841 -1.63413,3.17816 0.42699,3.15166 0.71561,-0.009 0.59227,-0.40223 -0.30902,-0.98469 z m 6.80903,-7.47569 c 0.26178,-0.26179 -0.0656,-1.12847 -0.7274,-1.92595 -0.66186,-0.79749 -1.06348,-2.27087 -0.8925,-3.27417 0.17848,-1.04736 -0.28731,-1.82419 -1.0938,-1.82419 -0.77257,0 -1.52888,0.84631 -1.6807,1.8807 -0.15182,1.03438 -0.75721,2.36188 -1.34533,2.95 -2.06951,2.06951 -1.14058,3.41525 2.09723,3.03827 1.74159,-0.20278 3.38071,-0.58288 3.6425,-0.84466 z m -12.07986,-4.12848 c -0.3323,-0.33229 -1.1948,-0.36782 -1.91667,-0.079 -0.79773,0.31923 -0.56078,0.55619 0.60417,0.60417 1.05416,0.0434 1.64479,-0.19293 1.3125,-0.52522 z m 20.52083,-0.0581 c -0.6875,-0.27741 -1.8125,-0.27741 -2.5,0 -0.6875,0.27741 -0.125,0.50439 1.25,0.50439 1.375,0 1.9375,-0.22698 1.25,-0.50439 z m -0.85301,-3.17105 c 0.28327,-0.45834 -0.12038,-0.83334 -0.89699,-0.83334 -0.77661,0 -1.18026,0.375 -0.89699,0.83334 0.28326,0.45833 0.68691,0.83333 0.89699,0.83333 0.21008,0 0.61373,-0.375 0.89699,-0.83333 z m 5.06562,-0.41667 c 0.27452,-2.6125 0.0999,-4.75 -0.38812,-4.75 -0.48799,0 -0.64195,-0.93804 -0.34213,-2.08454 0.41445,-1.58485 0.74789,-1.76463 1.39106,-0.75 0.46528,0.734 0.85285,2.30954 0.86127,3.50121 0.008,1.19166 0.53722,2.34063 1.1751,2.55326 0.86808,0.28936 0.87573,0.87623 0.0304,2.33333 -0.62116,1.07071 -1.17469,1.49674 -1.23008,0.94674 -0.0554,-0.55 -0.52728,-0.1 -1.04867,1 -0.68712,1.44967 -0.81063,0.69296 -0.44884,-2.75 z m -28.4322,-7.56574 c -0.045,-6.38219 1.27721,-8.18426 6.00477,-8.18426 3.7636,0 5.89728,1.96087 2.21482,2.03544 -0.9625,0.0195 -2.81092,0.62373 -4.10761,1.34277 l -2.35761,1.30734 2.74247,2.15722 2.74247,2.15723 -2.58517,0 c -1.42184,0 -3.04385,0.7875 -3.60445,1.75 -0.80723,1.38593 -1.02561,0.85215 -1.04969,-2.56574 z m 24.84203,-9.93426 c -1.24387,-1.58606 -1.2085,-1.62143 0.37756,-0.37756 1.66575,1.30637 2.19548,2.12756 1.37244,2.12756 -0.20765,0 -0.99515,-0.7875 -1.75,-1.75 z m -22.36577,-2.61983 c 1.87979,-2.86892 4.8945,-3.65613 11.99333,-3.13174 2.75,0.20315 5.5625,0.39911 6.25,0.43546 0.6875,0.0364 1.25,0.45275 1.25,0.92532 0,0.47256 -3.7125,0.94697 -8.25,1.05423 -5.38695,0.12735 -9.05404,0.71997 -10.56686,1.70766 -2.31321,1.51024 -2.31428,1.50868 -0.67647,-0.99093 z"
- id="path3020"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#464646"
- d="m 479.96431,673.81573 c 0.9625,-0.25152 2.5375,-0.25152 3.5,0 0.9625,0.25153 0.175,0.45733 -1.75,0.45733 -1.925,0 -2.7125,-0.2058 -1.75,-0.45733 z m -7.25,-1.31067 c -1.82797,-1.18132 -0.24909,-1.18132 2.5,0 1.31874,0.56668 1.48905,0.87815 0.5,0.9144 -0.825,0.0302 -2.175,-0.38124 -3,-0.9144 z m 14.5,-1 c 0.99549,-1.1 1.98106,-2 2.19017,-2 0.20911,0 -0.10147,0.9 -0.69017,2 -0.5887,1.1 -1.57428,2 -2.19017,2 -0.61589,0 -0.30532,-0.9 0.69017,-2 z m 2.5856,-4 c -0.0302,-0.825 0.38124,-2.175 0.9144,-3 1.18132,-1.82797 1.18132,-0.24909 0,2.5 -0.56668,1.31874 -0.87816,1.48906 -0.9144,0.5 z m 13.53794,-0.53866 c -0.96498,-2.51469 -0.68031,-3.16355 0.49853,-1.13634 0.58369,1.00375 0.8506,2.03566 0.59313,2.29313 -0.25747,0.25747 -0.74872,-0.26309 -1.09166,-1.15679 z m -25.17056,-18.21134 c -0.36826,-2.6125 -1.54123,-9.025 -2.60659,-14.25 -2.21973,-10.88658 -4.79141,-32.04515 -4.82416,-39.69098 -0.0279,-6.52064 -1.62185,-7.72648 -2.74836,-2.0792 -0.47561,2.38425 -1.08987,3.6077 -1.39083,2.77018 -0.29647,-0.825 0.25608,-3.975 1.22787,-7 0.9718,-3.025 1.7944,-4.7125 1.828,-3.75 0.0336,0.9625 0.41471,1.75 0.84691,1.75 0.4322,0 1.33499,6.1875 2.0062,13.75 1.0571,11.91037 3.29108,23.83113 5.76261,30.75 0.70574,1.97564 0.69593,1.97621 -0.80532,0.0467 -1.36909,-1.75963 -1.39528,-1.26392 -0.26421,5 0.69056,3.8243 1.73539,8.07828 2.32184,9.45328 1.00185,2.34892 1.07226,2.25828 1.16511,-1.5 0.0983,-3.97936 0.1062,-3.9871 1.52795,-1.5 1.65077,2.88773 1.89683,4.36329 0.59326,3.55764 -0.49871,-0.30822 -0.68325,0.29422 -0.4101,1.33875 0.54248,2.07447 -1.21152,6.10363 -2.65707,6.10363 -0.49695,0 -1.20485,-2.1375 -1.57311,-4.75 z m 35.74197,1.25 c 0.0204,-1.65 0.2445,-2.20394 0.49804,-1.23097 0.25354,0.97297 0.23687,2.32297 -0.037,3 -0.27393,0.67703 -0.48137,-0.11903 -0.46099,-1.76903 z m -2.15024,-1 c -0.1019,-1.65 -0.55942,-3.9 -1.0167,-5 -0.68583,-1.64979 -0.95805,-1.25899 -1.55462,2.23182 -0.92337,5.40319 -2.62829,4.48025 -2.33105,-1.26188 0.12415,-2.39828 0.57017,-4.14762 0.99116,-3.88743 0.421,0.26019 1.07254,-1.22694 1.44787,-3.30472 0.37534,-2.07778 0.90063,-4.67779 1.16731,-5.77779 0.26669,-1.1 0.6054,-7.06711 0.7527,-13.26023 0.34357,-14.44511 1.38067,-24.04884 2.68402,-24.85435 0.68203,-0.42152 0.76863,0.50125 0.25709,2.73947 -0.42426,1.85631 -0.88616,10.57511 -1.02645,19.37511 -0.14028,8.8 -0.73055,17.8 -1.31169,20 -1.44304,5.46275 -1.23981,6.74686 0.39565,2.5 l 1.34784,-3.5 0.0185,4.5 c 0.0101,2.475 -0.35387,6.3 -0.80892,8.5 -0.75875,3.66822 -0.84274,3.75116 -1.01266,1 z m -27.4292,-5.97965 c -0.90516,-3.60345 -1.40702,-7.78217 -1.11526,-9.28604 0.41024,-2.11452 0.33638,-2.2873 -0.32586,-0.76226 -0.76989,1.77296 -0.9267,1.672 -1.5533,-1 -0.38332,-1.63463 -1.07264,-10.23587 -1.53182,-19.11388 -0.57639,-11.14426 -1.31492,-17.10414 -2.38542,-19.25 -0.85281,-1.70949 -1.15088,-3.10817 -0.66239,-3.10817 1.5948,0 2.96742,3.79156 3.61475,9.98494 0.85673,8.19674 2.45946,8.76307 2.24015,0.79156 -0.0966,-3.51233 0.33716,-7.34432 0.96398,-8.51554 0.62681,-1.17121 1.18027,-3.84656 1.22991,-5.94522 0.0718,-3.03346 0.36255,-2.38065 1.41845,3.18426 0.7305,3.85 1.65453,8.575 2.05339,10.5 0.39885,1.925 0.42144,3.22339 0.0502,2.88531 -0.59358,-0.54054 -1.08343,-2.17899 -1.97513,-6.60637 -0.60682,-3.0129 -1.5435,-2.08631 -2.17971,2.15625 -0.38092,2.54017 -0.18968,7.9998 0.42499,12.1325 0.61466,4.1327 1.18142,9.40812 1.25947,11.72316 l 0.14191,4.20915 0.63803,-4 c 0.35092,-2.2 0.50091,2.72365 0.33331,10.94145 -0.16759,8.21779 -0.45978,15.09651 -0.64931,15.28604 -0.18952,0.18952 -1.08518,-2.60369 -1.99033,-6.20714 z m -0.7416,-18.73047 c 0.10666,-2.90944 -0.13271,-7.76488 -0.53193,-10.78988 l -0.72587,-5.5 -0.81112,5 c -0.87456,5.39111 -0.0389,17.76259 1.15019,17.0277 0.39864,-0.24637 0.81207,-2.82839 0.91873,-5.73782 z m 26.28398,23.21012 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m 5,-4 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m -35.58646,-6.57143 c -0.36782,-1.46551 -0.47591,-2.85742 -0.24019,-3.09314 0.23571,-0.23571 0.72951,0.77049 1.09733,2.236 0.36782,1.46551 0.47591,2.85742 0.24019,3.09314 -0.23571,0.23571 -0.72951,-0.77049 -1.09733,-2.236 z m 26.41034,-10.18736 c -1.92744,-16.95322 -1.84447,-29.85301 0.2168,-33.71001 l 1.5866,-2.96879 0.98922,3.58268 c 1.12542,4.07592 0.63817,42.29529 -0.56666,44.4482 -0.44603,0.79701 -1.39484,-4.04178 -2.22596,-11.35208 z m 2.15623,-30.48101 c -0.37985,-2.87487 -2.35312,-2.80018 -2.0707,0.0784 0.0897,0.91378 0.0715,1.88641 -0.0403,2.16141 -0.8851,2.17635 -0.86583,12 0.0235,12 0.59138,0 0.99512,0.7875 0.89721,1.75 -0.0979,0.9625 -0.04,2.65 0.12856,3.75 0.44681,2.91488 1.4907,-16.49318 1.06174,-19.7398 z m 8.01989,41.2398 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m 2.92106,-3.58333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -5,-1 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 3.50924,-1.91667 c 0.3016,-2.2 0.77903,-5.125 1.06097,-6.5 0.40342,-1.9675 0.28564,-2.1805 -0.55296,-1 -1.57836,2.22184 -1.27129,0.18337 0.9038,-6 2.11274,-6.0061 2.72801,-20.97477 1.09605,-26.66509 -0.7795,-2.71796 -0.63064,-3.22335 1.08129,-3.67103 1.57138,-0.41093 2.38065,0.35174 3.88199,3.65848 2.14717,4.72921 2.36191,6.29926 0.9785,7.15426 -0.5292,0.32706 -1.38861,-0.88388 -1.90981,-2.69098 -0.78439,-2.71962 -0.97002,-1.73521 -1.07752,5.71436 -0.0714,4.95 -0.70243,12.2625 -1.40221,16.25 -0.69977,3.9875 -0.90691,7.25 -0.4603,7.25 0.4466,0 0.84644,-0.5625 0.88852,-1.25 0.10899,-1.78064 0.56155,-3.5878 2.28415,-9.12102 0.94339,-3.03029 1.30495,-6.65675 0.95678,-9.59653 -0.44764,-3.77962 -0.23517,-4.85004 1.06144,-5.3476 2.85495,-1.09554 2.00726,7.76838 -1.80302,18.85345 -1.88328,5.47894 -3.45828,9.3242 -3.5,8.54503 -0.12349,-2.30615 -1.48626,-0.24874 -2.80594,4.23622 l -1.23009,4.18045 0.54836,-4 z m -45.50924,-1.08333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 48,0 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -52.30732,-13.60088 c -2.61449,-8.0989 -3.55784,-18.81579 -1.65624,-18.81579 0.48653,0 0.88461,3.07955 0.88461,6.84345 0,4.25699 0.76187,9.05787 2.01582,12.70254 1.1087,3.22249 1.88633,6.24755 1.72807,6.72234 -0.15826,0.47479 -1.49578,-2.87885 -2.97226,-7.45254 z m 20.46037,-0.81579 c 0,-1.925 0.2058,-2.7125 0.45733,-1.75 0.25152,0.9625 0.25152,2.5375 0,3.5 -0.25153,0.9625 -0.45733,0.175 -0.45733,-1.75 z m 0.9259,-9 c 0,-1.375 0.22697,-1.9375 0.50438,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50438,0.125 -0.50438,-1.25 z m -15.66963,-23.632 c -0.33499,-1.5774 -1.0319,-3.64939 -1.54867,-4.60443 -0.51678,-0.95504 -0.9396,-3.06598 -0.9396,-4.69098 0,-1.62501 -0.45,-3.23267 -1,-3.57259 -0.55,-0.33992 -0.96829,-1.82898 -0.92954,-3.30902 0.0625,-2.3862 0.23847,-2.23794 1.55387,1.30902 2.01067,5.42178 4.59167,16.61733 3.97344,17.23556 -0.27524,0.27524 -0.77452,-0.79016 -1.10951,-2.36756 z m 4.33623,-1.04218 c 0.42673,-2.09296 0.67819,-2.34442 0.96961,-0.9696 0.2164,1.02092 -0.0429,2.29254 -0.57615,2.82582 -0.62614,0.62614 -0.76551,-0.0314 -0.39346,-1.85622 z m 4.8006,1.13958 c -0.40473,-1.05469 -0.4435,-4.64766 -0.0862,-7.98438 0.41359,-3.86211 0.18371,-7.6865 -0.63258,-10.5239 -0.72215,-2.51019 -1.35322,-10.5725 -1.4447,-18.45712 -0.0894,-7.7 -0.50877,-16.25 -0.93205,-19 -0.82751,-5.37616 -4.6549,-11.5 -7.18749,-11.5 -0.97235,0 -1.34017,-0.5627 -0.98049,-1.5 0.31658,-0.825 0.13972,-1.5 -0.39301,-1.5 -0.53274,0 -0.96862,-0.7125 -0.96862,-1.58333 0,-0.87084 -0.5625,-1.39203 -1.25,-1.15821 -1.91566,0.65151 -1.05085,16.84058 1.26389,23.65968 2.69718,7.94576 6.98611,25.46985 6.98611,28.54447 0,1.43009 -0.675,2.85918 -1.5,3.17576 -0.825,0.31659 -1.5,1.02561 -1.5,1.57561 0,0.55 0.5625,0.78415 1.25,0.52033 0.85692,-0.32883 1.25422,0.65953 1.26343,3.14301 0.007,1.99247 0.37437,4.74768 0.81551,6.12268 0.54488,1.69835 0.49288,2.05263 -0.16216,1.10485 -0.82488,-1.19353 -1.02872,-1.19353 -1.41052,0 -0.24547,0.76733 -0.24292,0.10135 0.006,-1.47996 0.30067,-1.91271 0.0865,-2.64922 -0.63993,-2.20028 -0.74272,0.45902 -0.89781,-0.29548 -0.48501,-2.3595 0.45882,-2.29407 0.19716,-3.19153 -1.07253,-3.67875 -0.92366,-0.35445 -1.44265,-1.26138 -1.1533,-2.0154 0.2893,-0.75403 0.14865,-1.37096 -0.31261,-1.37096 -0.85359,0 -3.73305,-8.88138 -3.32318,-10.25 0.12353,-0.4125 -0.2254,-0.75 -0.7754,-0.75 -0.55,0 -1.01595,-1.4625 -1.03544,-3.25 l -0.0354,-3.25 -1.38672,2.5 c -1.38608,2.49887 -1.38663,2.49842 -1.21456,-1 0.0947,-1.925 0.5429,-3.77211 0.99603,-4.10468 0.45314,-0.33258 0.0674,-1.3612 -0.85726,-2.28584 -1.03434,-1.03434 -1.46664,-2.53303 -1.12362,-3.89531 0.51336,-2.0388 0.45214,-2.0734 -0.77299,-0.43681 -1.15431,1.54199 -1.2701,1.14471 -0.87437,-3 0.34577,-3.6214 0.19177,-4.41441 -0.63643,-3.27736 -0.85856,1.17874 -1.09576,0.64332 -1.10751,-2.5 -0.008,-2.2 -0.26046,-7.825 -0.56051,-12.5 -0.30005,-4.675 -0.11849,-11.65 0.40345,-15.5 0.62618,-4.61886 0.60851,-7.2173 -0.0519,-7.63881 -0.63353,-0.40433 -0.70717,-2.79025 -0.20062,-6.5 0.69237,-5.07058 0.88582,-5.45652 1.43412,-2.86119 l 0.6338,3 0.51822,-3.22559 c 0.29734,-1.85075 0.0608,-3.39583 -0.555,-3.625 -0.72297,-0.26906 -0.66528,-0.83184 0.17678,-1.72441 0.6875,-0.72875 1.25036,-3.5975 1.25081,-6.375 4.5e-4,-2.7775 0.70129,-8.40764 1.55743,-12.51141 1.49784,-7.17978 1.47519,-7.71461 -0.60019,-14.16904 -1.18623,-3.68919 -3.23707,-7.7225 -4.55742,-8.9629 l -2.40063,-2.25528 0,2.67432 c 0,1.47087 -0.37206,2.67431 -0.82681,2.67431 -0.45474,0 -0.69074,1.4625 -0.52444,3.25 0.26667,2.86622 0.208,2.95479 -0.49676,0.75 l -0.79913,-2.5 -0.76773,2.32536 c -0.42226,1.27895 -0.98305,2.11006 -1.2462,1.84691 -0.26315,-0.26315 0.46209,-2.32207 1.61163,-4.57536 1.14955,-2.2533 1.89422,-4.09691 1.65483,-4.09691 -0.23939,0 -2.27354,2.30878 -4.52032,5.13063 -3.09734,3.89009 -4.08507,4.6381 -4.08507,3.09362 0,-1.54468 -0.48338,-1.9106 -2,-1.514 -1.78395,0.46652 -2,0.0307 -2,-4.0346 0,-2.50669 -0.45,-4.83573 -1,-5.17565 -0.55,-0.33992 -0.99311,-2.27898 -0.98469,-4.30902 0.0108,-2.60255 0.28311,-3.26777 0.92344,-2.25585 0.68913,1.08906 1.13224,0.60677 1.83751,-2 0.58329,-2.15586 0.57266,-3.89286 -0.0285,-4.66424 -0.61386,-0.78764 -0.58709,-2.29291 0.0745,-4.19085 0.57589,-1.65198 0.78385,-6.24905 0.47027,-10.39534 -0.30921,-4.08848 -0.26987,-8.99188 0.0874,-10.89643 0.63459,-3.38265 7.32482,-12.41683 8.39944,-11.34222 0.29793,0.29793 -0.18839,1.34842 -1.08071,2.33442 -2.91922,3.2257 -4.45374,8.50449 -3.98819,13.71953 0.24549,2.75 0.88491,5.15795 1.42093,5.351 0.53603,0.19305 0.16324,0.98166 -0.82841,1.75245 -1.7042,1.32466 -1.6934,1.36463 0.197,0.72944 1.9725,-0.66278 1.9738,-0.64219 0.095,1.49755 -1.04775,1.19326 -1.42275,2.16956 -0.83334,2.16956 0.58941,0 1.22597,-0.3375 1.41458,-0.75 0.18861,-0.4125 1.8707,-2.1 3.73799,-3.75 1.86729,-1.65 3.15331,-2.55 2.85782,-2 -2.28702,4.25692 7.81845,10.37439 19.10201,11.56363 l 7.62592,0.80374 -7.94025,-0.29571 -7.94025,-0.29571 2.44025,2.11398 c 2.87596,2.49142 6.94025,7.554 6.94025,8.64493 0,0.42083 -1.53,-0.76486 -3.4,-2.63486 -1.97778,-1.97778 -4.40392,-3.4 -5.8,-3.4 -1.32,0 -3.04056,-0.5625 -3.82347,-1.25 -0.7829,-0.6875 -0.58776,-0.24811 0.43365,0.97642 1.02141,1.22453 2.13943,2.05193 2.48449,1.83867 0.93314,-0.57671 4.22288,2.06388 4.48604,3.60083 0.12563,0.73374 0.99137,2.77423 1.92386,4.53442 2.5889,4.88688 2.02832,5.05928 -1.33843,0.41161 -4.38151,-6.04849 -5.49418,-4.10547 -1.82667,3.18981 2.64185,5.25505 2.79223,5.90836 0.98827,4.29325 -2.09563,-1.87624 -2.12774,-1.87498 -2.12774,0.0833 0,1.09357 0.31702,2.30533 0.70448,2.6928 0.38746,0.38746 0.84283,1.92496 1.01193,3.41666 l 0.30745,2.71219 -1.74355,-2.75 c -0.95895,-1.5125 -2.03668,-2.75 -2.39496,-2.75 -0.82142,0 1.93202,8.1704 3.18467,9.45 1.33349,1.3622 1.14771,3.59519 -0.27456,3.3 -0.6625,-0.1375 -1.26271,0.2 -1.3338,0.75 -0.0711,0.55 -0.67148,2.31266 -1.33421,3.91703 -0.9601,2.32427 -0.94308,3.08319 0.0838,3.73469 0.92452,0.58657 0.72351,0.84429 -0.71125,0.91191 -1.09999,0.0519 -1.4375,0.32124 -0.75,0.59865 1.6081,0.64888 1.6081,3.55193 0,5.28442 -1.00195,1.07948 -0.99704,1.20363 0.0248,0.62567 0.70112,-0.39656 1.17553,-0.35008 1.05424,0.1033 -0.21969,0.82119 1.59674,9.3753 5.32848,25.09336 1.07977,4.54797 4.57726,13.99797 7.77219,21 7.27175,15.93677 9.40269,27.1914 8.90027,47.00703 -0.18148,7.15776 -0.68416,12.49881 -1.11706,11.86902 -0.43291,-0.62979 -0.60827,0.42992 -0.3897,2.35492 0.21858,1.925 0.17667,2.6 -0.0931,1.5 -0.40304,-1.6433 -0.70264,-1.38621 -1.67983,1.4415 -1.01756,2.94455 -1.29555,3.1646 -1.92515,1.5239 z m 1.05801,-3.6529 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.33229 0.36782,-1.1948 0.0789,-1.91667 z m 1.31689,-2.8125 c 0,-0.55 -0.19844,-1 -0.44098,-1 -0.24254,0 -0.7191,0.45 -1.05902,1 -0.33992,0.55 -0.14148,1 0.44098,1 0.58246,0 1.05902,-0.45 1.05902,-1 z m -0.28675,-16.70825 c -0.0409,-2.58953 -0.25659,-4.16173 -0.47924,-3.49377 -0.22266,0.66797 -0.88728,0.91631 -1.47694,0.55188 -0.70853,-0.43789 -0.85376,0.15348 -0.42825,1.74377 0.35413,1.3235 0.65001,3.19387 0.65752,4.15637 0.007,0.9625 0.41589,1.75 0.9075,1.75 0.49161,0 0.86034,-2.11871 0.81941,-4.70825 z m -14.57534,-19.41252 c -0.51534,-1.30858 -1.46338,-4.33554 -2.10675,-6.72659 -0.64338,-2.39104 -1.3448,-4.17233 -1.55872,-3.95842 -0.50795,0.50795 1.94828,11.05947 2.95285,12.68489 1.23911,2.00493 1.73819,0.60432 0.71262,-1.99988 z m -7.13791,-20.32021 c 0,-0.24254 -0.45,-0.7191 -1,-1.05902 -0.55,-0.33992 -1,-0.14148 -1,0.44098 0,0.58246 0.45,1.05902 1,1.05902 0.55,0 1,-0.19844 1,-0.44098 z m 3.53296,-12.93024 c 0.86983,-5.80043 0.15877,-17.8982 -1.07619,-18.30986 -1.1098,-0.36993 -4.21231,10.52925 -4.37241,15.36036 -0.0782,2.36124 0.41196,3.34347 1.90514,3.81739 1.10578,0.35096 2.0105,1.08434 2.0105,1.62973 0,0.5454 -0.41891,0.73274 -0.9309,0.41631 -0.512,-0.31644 -1.21356,-0.11799 -1.55902,0.44098 -0.34546,0.55897 0.27087,1.01631 1.36963,1.01631 1.59234,0 2.13077,-0.88706 2.65325,-4.37122 z m -1.28365,-32.10491 c -0.65596,-3.43145 -1.24931,-3.17728 -1.24931,0.53515 0,1.68246 0.38965,2.8182 0.86589,2.52386 0.47624,-0.29433 0.64878,-1.67089 0.38342,-3.05901 z m -16.68333,-37.02387 c 0.66642,-3.55235 2.43402,-4.88373 2.43402,-1.83333 0,1.87577 1.04035,1.24146 1.35316,-0.82504 0.11169,-0.7379 0.58729,-1.95721 1.05687,-2.70958 1.16963,-1.87398 2.51166,-8.07504 1.7261,-7.97567 -2.51644,0.3183 -3.14958,-0.26273 -2.2065,-2.0249 0.55,-1.02768 0.67833,-2.25035 0.28519,-2.71703 -0.39315,-0.46668 0.15906,-0.18835 1.22714,0.61852 1.06808,0.80687 1.69996,1.01703 1.40419,0.46703 -1.01817,-1.89333 -2.14741,-5.00414 -2.51899,-6.93928 -0.48496,-2.52554 -0.94518,-2.92128 -2.64067,-2.27066 -2.90869,1.11617 -8.18675,23.70994 -5.5388,23.70994 0.43425,0 0.53052,0.675 0.21394,1.5 -0.70501,1.83721 0.21908,4.5 1.56167,4.5 0.54234,0 1.28155,-1.575 1.64268,-3.5 z m 16.11713,1.3125 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.1948 0.0789,-1.91667 z m 0.36962,-10.17381 c -0.55178,-1.45128 -1.45024,-2.63869 -1.99659,-2.63869 -1.10071,0 -0.24425,2.85756 1.39343,4.64914 1.53411,1.67827 1.74207,0.9851 0.60316,-2.01045 z m 2.1306,-4.85536 c -0.71756,-0.71756 -1.18333,-0.7766 -1.18333,-0.15 0,1.33478 1.18261,2.51739 1.85,1.85 0.28417,-0.28416 -0.0158,-1.04916 -0.66667,-1.7 z m -1.18333,-6.28333 c -0.68469,-0.825 -1.65753,-1.5 -2.16187,-1.5 -1.1482,0 1.34163,2.90996 2.53431,2.96196 0.47985,0.0209 0.31225,-0.63696 -0.37244,-1.46196 z m 42.36595,165.69563 c -0.59187,-0.3826 -1.62623,-2.38313 -2.29859,-4.44563 -1.50378,-4.61296 -2.18527,-4.83777 -1.51568,-0.5 0.4323,2.8005 0.36392,2.93821 -0.49436,0.9957 -1.96226,-4.44106 -3.05471,-19.02588 -2.90022,-38.71947 0.0864,-11.01442 0.42391,-17.77623 0.75,-15.02623 l 0.5929,5 1.25,-4.69282 c 1.74489,-6.55078 1.57716,-8.5625 -1.21376,-14.55718 -2.81117,-6.03816 -3.68694,-6.62005 -3.01013,-2 0.41916,2.86124 0.37283,2.94397 -0.38728,0.6916 -0.47486,-1.40712 -1.39119,-3.54462 -2.03629,-4.75 -0.95859,-1.79114 -0.90565,-2.1916 0.2897,-2.1916 1.74534,0 4.84403,3.74198 6.59081,7.95907 1.35198,3.26399 2.49263,3.84967 3.31643,1.70287 0.75247,-1.9609 -2.25969,-7.58976 -5.0344,-9.40782 -1.86844,-1.22425 -2.26155,-2.13204 -1.77051,-4.08852 0.5016,-1.99852 0.36164,-2.29328 -0.68169,-1.43562 -1.1713,0.96285 -5.45063,1.66421 -8.39552,1.37598 -2.09288,-0.20484 -7.85862,-8.52174 -8.02266,-11.57244 -0.0897,-1.66844 -0.42532,-5.05852 -0.74578,-7.53352 -0.32046,-2.475 -0.33851,-3.70699 -0.0401,-2.73776 0.2984,0.96924 0.96195,1.50305 1.47454,1.18625 0.51259,-0.31681 1.61656,0.10857 2.45326,0.94526 0.83669,0.8367 2.12522,1.28951 2.86339,1.00625 2.66399,-1.02227 6.08034,4.56706 3.69326,6.04236 -0.49871,0.30822 -0.67123,-0.34022 -0.38337,-1.44098 0.28785,-1.10076 0.13339,-2.03888 -0.34326,-2.08471 -2.81704,-0.27088 -5.07766,-0.74737 -6.61663,-1.39463 -1.83104,-0.7701 -2.50719,0.89196 -0.79368,1.95097 0.52598,0.32507 0.69254,1.27847 0.37012,2.11867 -0.38501,1.00331 0.14096,1.71779 1.53243,2.08167 1.16525,0.30471 1.87632,0.94609 1.58017,1.42528 -0.29616,0.47919 0.8339,0.59678 2.51125,0.26131 2.76574,-0.55315 3.04971,-0.37101 3.04971,1.95604 0,1.41129 0.45,2.8441 1,3.18402 0.55355,0.34211 1.01582,-0.41283 1.03544,-1.69098 0.0195,-1.26996 0.58198,-3.20902 1.25,-4.30902 1.31877,-2.17159 4.71456,-3.25824 4.71456,-1.50865 0,0.75341 0.64191,0.73548 2.12717,-0.0594 1.6456,-0.8807 2.30953,-0.84337 2.93266,0.16487 0.59013,0.95484 1.91357,0.11352 4.94999,-3.14676 2.27948,-2.44753 4.53126,-5.35005 5.00396,-6.45005 0.83364,-1.93995 0.86135,-1.93525 0.92283,0.15638 0.0921,3.13327 3.58067,1.92322 5.11172,-1.77306 1.6219,-3.91562 2.74628,-4.45417 2.30295,-1.10306 l -0.3598,2.71974 1.32375,-2.79751 c 1.29335,-2.73326 1.36119,-2.61843 2.954,5 2.43018,11.62357 3.21851,32.85084 1.69684,45.69053 -1.1521,9.72134 -1.39749,10.52976 -2.42972,8.00445 -1.08306,-2.6497 -1.15264,-2.51329 -1.22684,2.40521 -0.0433,2.86783 -0.51926,5.77293 -1.05778,6.45578 -0.53851,0.68285 -0.96697,1.91654 -0.95213,2.74154 0.0148,0.825 -0.52923,3.81181 -1.20903,6.63736 -1.025,4.26031 -1.55696,5.05344 -3.11597,4.64575 -1.92484,-0.50336 -1.98113,0.41044 -0.44456,7.21689 0.24832,1.1 0.20253,1.46562 -0.10177,0.8125 -0.82469,-1.77005 -4.52091,2.28252 -3.7986,4.16482 0.32137,0.83747 0.97755,1.52268 1.45819,1.52268 0.9896,0 0.0975,8.20586 -1.30464,12 -0.85495,2.31355 -1.00062,2.36284 -1.95309,0.66091 -0.56607,-1.0115 -0.71592,-3.0365 -0.333,-4.5 0.38292,-1.4635 0.79844,-6.93591 0.92337,-12.16091 0.15045,-6.29228 1.11961,-13.04588 2.87028,-20.0015 3.67293,-14.59297 5.59518,-26.271 4.54665,-27.62175 -0.47957,-0.61779 -0.58273,-1.87691 -0.22926,-2.79805 0.39574,-1.03127 -0.0443,-2.17712 -1.14522,-2.98214 -1.13065,-0.82674 -1.54412,-1.94265 -1.12475,-3.03551 0.44045,-1.1478 0.24315,-1.58131 -0.58752,-1.29087 -0.68787,0.24052 -1.11845,1.17812 -0.95684,2.08356 0.16161,0.90544 -0.0855,1.64626 -0.5492,1.64626 -0.46367,0 -0.67937,1.6875 -0.47932,3.75 0.21464,2.21301 0.0191,3.25931 -0.4772,2.55279 -1.01888,-1.4506 -2.63398,-0.51184 -3.78026,2.19721 -1.56932,3.70886 -3.32677,10.984 -2.84262,11.76736 1.55135,2.51014 1.91383,23.81577 0.48032,28.23264 l -0.97365,3 -0.086,-3.91667 c -0.0473,-2.15416 -0.34143,-3.66118 -0.65368,-3.34893 -0.87954,0.87954 -1.2466,8.76889 -0.38316,8.23525 0.42041,-0.25983 0.53018,0.42315 0.24394,1.51772 -0.28624,1.09458 -0.85426,1.78381 -1.26228,1.53164 -0.40802,-0.25216 -0.5294,0.6529 -0.26974,2.01125 0.27406,1.43362 0.004,2.46974 -0.64445,2.46974 -0.61408,-1e-5 -1.11654,-0.52501 -1.11654,-1.16668 0,-0.64166 -0.23559,-0.93107 -0.52354,-0.64312 -0.90563,0.90563 0.72734,3.9434 1.90258,3.5393 1.09465,-0.37638 4.8036,2.75452 4.09843,3.45968 -0.19572,0.19573 -0.58843,1.63844 -0.87269,3.20603 -0.62024,3.42042 -0.84492,3.70145 -2.23883,2.80041 z m 0.13405,-5.19563 c 0.33992,-0.55 0.14148,-1 -0.44098,-1 -0.58246,0 -1.05902,0.45 -1.05902,1 0,0.55 0.19844,1 0.44098,1 0.24254,0 0.7191,-0.45 1.05902,-1 z m -4.56756,-28 c 1.01675,-10.58791 2.67424,-16.60154 11.00465,-39.92647 2.2445,-6.28455 4.53485,-14.38455 5.08966,-18 0.55481,-3.61544 1.24504,-7.73603 1.53385,-9.15686 0.38385,-1.88842 0.11007,-2.58334 -1.01775,-2.58334 -0.84857,0 -1.57728,0.4875 -1.61936,1.08334 -0.25268,3.57777 -2.02353,9.23878 -6.47274,20.6919 -6.58821,16.95933 -10.25795,35.68003 -10.27008,52.39143 -0.008,10.68357 0.39242,9.6556 1.75177,-4.5 z m 19.85833,-13.77279 c 0.51947,-2.90004 0.59201,-5.49064 0.1612,-5.75689 -0.75705,-0.46788 -2.95197,7.9185 -2.95197,11.2789 0,3.34655 1.86221,-0.33815 2.79077,-5.52201 z m -14.07401,-37.36268 c -1.91584,-4.58525 -2.02186,-5.26283 -0.88285,-5.6425 0.54115,-0.18038 1.28566,1.04587 1.65446,2.725 0.3688,1.67913 1.036,3.05297 1.48268,3.05297 1.37585,0 2.18009,-5.11297 1.02345,-6.50663 -0.75571,-0.91057 -0.76896,-1.51473 -0.0431,-1.96336 0.57671,-0.35642 1.04856,-0.0965 1.04856,0.57764 0,2.64565 1.55882,-0.54026 2.66187,-5.44031 l 1.16322,-5.16734 -1.96761,2.5 c -4.4273,5.62523 -7.20194,8.0818 -8.54578,7.56612 -0.77857,-0.29877 -1.18131,-0.16417 -0.89499,0.29911 0.28631,0.46327 -0.59031,1.34847 -1.94807,1.9671 -1.35775,0.61864 -2.52055,1.69694 -2.58399,2.39623 -0.0634,0.69929 -0.17594,1.92683 -0.25,2.72787 -0.0741,0.80103 1.10516,2.81635 2.62048,4.47847 1.51532,1.66213 3.03677,3.90944 3.38101,4.99404 0.53216,1.67668 0.84006,1.435 2.05615,-1.61395 1.23204,-3.08896 1.23543,-4.05222 0.0245,-6.95046 z m 20.04795,2.17397 c 0,-3.64387 -0.50086,-6.40456 -1.27912,-7.05046 -0.70352,-0.58387 -1.06137,-1.89424 -0.79524,-2.91195 0.58233,-2.22684 -0.87688,-3.32548 -3.22175,-2.42567 -1.46881,0.56364 -1.64332,1.72541 -1.22898,8.1817 0.40109,6.24978 0.86295,7.83252 2.72581,9.34097 1.23359,0.9989 2.59308,1.59976 3.02109,1.33524 0.428,-0.26452 0.77819,-3.17594 0.77819,-6.46983 z m -0.5532,-15.05074 c -0.24316,-1.65673 -0.85826,-3.26944 -1.36689,-3.58379 -0.54039,-0.33398 -0.64283,0.60634 -0.24644,2.26224 1.21308,5.0677 2.29298,5.95229 1.61333,1.32155 z m -9.71827,92.01224 c 0.2437,-2.475 1.08793,-6.525 1.87606,-9 l 1.43296,-4.5 0.0989,4.16667 c 0.0544,2.29166 -0.35565,4.31817 -0.91117,4.50334 -0.55552,0.18518 -1.44424,2.36018 -1.97492,4.83334 l -0.96489,4.49665 0.44309,-4.5 z m -50.33534,0 c 0,-1.375 0.22697,-1.9375 0.50438,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50438,0.125 -0.50438,-1.25 z m 19.92105,-9.58333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 30,-1 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -28.82677,-5.91667 c 0.0111,-2.2 0.21589,-2.98225 0.45508,-1.73834 0.23919,1.24391 0.23011,3.04391 -0.0202,4 -0.25029,0.95609 -0.446,-0.0617 -0.4349,-2.26166 z m -0.0496,-12.61351 c -0.31436,-13.36886 -2.66849,-23.42957 -9.8508,-42.09879 -3.32972,-8.65506 -4.12662,-11.55968 -2.44134,-8.89843 0.68245,1.07766 1.23078,0.74121 2.44465,-1.5 2.01674,-3.72356 2.13103,-2.22992 0.12605,1.64728 -1.36713,2.64374 -1.35763,3.31323 0.0951,6.70034 1.48153,3.45423 1.68188,3.58857 2.44095,1.63671 0.45482,-1.16953 2.17936,-3.08941 3.8323,-4.26641 2.99075,-2.1296 3.00846,-2.1302 3.64534,-0.12359 0.35199,1.10902 1.08621,2.0164 1.63161,2.0164 0.55811,0 0.63794,0.54647 0.18261,1.25 -0.44496,0.6875 -1.05537,12.725 -1.35648,26.75 -0.3011,14.025 -0.6386,21.62392 -0.75,16.88649 z m -0.20258,-30.05316 c 0,-7.24166 -0.25246,-12.9142 -0.56102,-12.60564 -1.60389,1.60388 -2.38401,13.65115 -1.26416,19.52231 0.65565,3.4375 1.33454,6.25 1.50864,6.25 0.1741,0 0.31654,-5.925 0.31654,-13.16667 z m -3.17576,-8.65641 c 0.9374,-6.85447 -0.12304,-8.09938 -2.35301,-2.7623 -1.10455,2.64355 -1.17982,4.12286 -0.33336,6.55104 0.60136,1.72504 1.26173,2.96808 1.46749,2.76231 0.20577,-0.20577 0.75427,-3.15374 1.21888,-6.55105 z m 40.25471,35.23975 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 1.07894,-5.41667 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z M 416.44552,528.4249 c 0.35361,-1.3522 0.8069,-1.8055 1.05655,-1.05655 0.24048,0.72144 -0.0382,1.78716 -0.61931,2.36826 -0.74207,0.74207 -0.87221,0.35164 -0.43724,-1.31171 z m 83.46374,-12.41984 c 0.0204,-1.65 0.2445,-2.20394 0.49804,-1.23097 0.25354,0.97297 0.23687,2.32297 -0.037,3 -0.27393,0.67703 -0.48137,-0.11903 -0.46099,-1.76903 z m 75.884,-0.0833 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -168.44058,-4.9167 c 0.31659,-0.825 1.03256,-1.5 1.59106,-1.5 0.58531,0 0.48812,0.63541 -0.22943,1.5 -0.68469,0.825 -1.40067,1.5 -1.59106,1.5 -0.19039,0 -0.0872,-0.675 0.22943,-1.5 z m 0.72041,-3.84276 c 1.57233,-1.32322 4.49733,-2.90924 6.5,-3.52451 2.11579,-0.65001 4.53793,-2.41264 5.78169,-4.20743 1.32404,-1.91064 2.40143,-2.66651 2.82467,-1.98171 1.01063,1.63524 -5.85198,8.05575 -8.61514,8.06015 -1.2925,0.002 -3.925,0.91625 -5.85,2.03154 l -3.5,2.02781 2.85878,-2.40585 z m 4.39122,1.68048 c 0.6875,-0.27741 1.8125,-0.27741 2.5,0 0.6875,0.27741 0.125,0.50439 -1.25,0.50439 -1.375,0 -1.9375,-0.22698 -1.25,-0.50439 z m 13.25152,-2.83312 c -0.91707,-2.77875 -0.87989,-3.76909 0.18138,-4.83035 2.95045,-2.95046 4.70784,0.40005 3.18681,6.07575 -0.86227,3.21757 -2.03886,2.78253 -3.36819,-1.2454 z m 154.49848,2.4954 c -0.33992,-0.55 -0.16803,-1 0.38197,-1 0.55,0 1.27811,0.45 1.61803,1 0.33992,0.55 0.16803,1 -0.38197,1 -0.55,0 -1.27811,-0.45 -1.61803,-1 z m -17.73635,-3 c -1.10863,-3.76398 -0.91307,-6.6311 0.53422,-7.83224 0.99231,-0.82355 1.5537,-0.39934 2.38457,1.80187 0.86659,2.29588 0.82031,2.77679 -0.22852,2.37432 -0.89247,-0.34248 -1.41786,0.56578 -1.63457,2.82567 -0.30227,3.1523 -0.35872,3.1967 -1.0557,0.83038 z m 19.23635,0.97556 c -0.825,-0.43443 -3.3,-1.27022 -5.5,-1.8573 -2.2,-0.58708 -5.26697,-2.2494 -6.81548,-3.69403 -3.53226,-3.2953 -2.82177,-4.39983 0.80291,-1.24821 1.47005,1.27819 2.97426,2.33087 3.34269,2.33929 0.36843,0.008 1.23238,0.37248 1.91988,0.80902 0.6875,0.43654 1.7,0.51559 2.25,0.17567 0.55,-0.33992 1,-0.11492 1,0.5 0,0.61492 0.38371,0.88089 0.85268,0.59105 0.96292,-0.59512 4.91807,1.99019 4.14575,2.70991 -0.27414,0.25546 -1.17343,0.10903 -1.99843,-0.3254 z M 473.96414,491.2428 c -1.15941,-2.88076 -2.91517,-7.93774 -3.90169,-11.23774 -0.98651,-3.3 -2.24288,-6.31303 -2.79194,-6.69563 -1.95196,-1.36017 0.31228,-1.94438 2.60815,-0.67294 1.28461,0.71141 2.7066,1.18672 3.15998,1.05625 0.45338,-0.13048 0.53479,0.23126 0.1809,0.80386 -0.35388,0.57259 -1.17483,0.77537 -1.82433,0.45061 -0.64949,-0.32475 -0.36955,0.0725 0.6221,0.88269 0.99165,0.81024 1.36484,1.63111 0.82931,1.82416 -0.5464,0.19697 -0.15091,2.0337 0.90123,4.18546 1.34995,2.76082 1.46774,3.49653 0.42069,2.62755 -1.79608,-1.49061 -1.91569,-0.0689 -0.29371,3.49094 0.63828,1.40088 1.77185,2.54705 2.51905,2.54705 0.97531,0 1.17243,0.77575 0.69881,2.75 -0.36285,1.5125 -0.74091,2.85698 -0.84013,2.98774 -0.0992,0.13075 -1.129,-2.11925 -2.28842,-5 z m -42.7375,3.26226 c 1.08089,-2.01225 7.58643,-11.24471 8.80797,-12.5 1.55631,-1.59931 -0.25824,1.45923 -4.15292,7 -3.80148,5.40818 -6.00285,8.00913 -4.65505,5.5 z m -6.78653,-1.94055 c -0.30886,-1.18107 0.0737,-3.36512 0.85016,-4.85343 0.77644,-1.48831 1.41449,-3.07008 1.41788,-3.51504 0.0125,-1.63939 -2.06596,0.54272 -3.87431,4.06757 -1.78779,3.48475 -1.891,3.53685 -2.59738,1.31123 -0.9672,-3.04736 5.55046,-21.09475 6.63046,-18.35975 1.07834,2.73081 0.94383,3.96883 -0.24881,2.28997 -0.8118,-1.14278 -0.92,-0.78556 -0.45431,1.5 0.42736,2.09743 0.32194,2.56441 -0.3504,1.55215 -0.75572,-1.13777 -1.113,-0.81652 -1.66827,1.5 -0.38863,1.62132 -1.04258,3.39785 -1.45324,3.94785 -0.41065,0.55 -1.05801,2.575 -1.43859,4.5 -0.75027,3.79502 -1.40901,4.72146 11.33417,-15.94031 5.13063,-8.3188 6.97319,-13.05883 7.21459,-18.55969 l 0.17553,-4 0.65036,3.5 c 0.3657,1.96809 1.18346,3.39058 1.86836,3.25 1.80498,-0.37048 1.48016,1.09148 -0.782,3.51963 -1.1,1.18071 -2,3.06556 -2,4.18856 0,1.12299 -0.39942,2.04181 -0.8876,2.04181 -0.48818,0 -2.34128,3.60626 -4.11801,8.01392 -2.95317,7.32613 -4.99439,10.63831 -4.99439,8.10411 0,-0.55 0.39568,-1.24454 0.87929,-1.54343 0.48361,-0.29889 1.14064,-1.56295 1.46006,-2.80902 0.56465,-2.20273 0.527,-2.19622 -1.35706,0.23442 -1.0658,1.375 -1.94782,3.025 -1.96005,3.66667 -0.0122,0.64166 -0.58474,1.36756 -1.27224,1.61309 -0.6875,0.24554 -0.88803,0.83251 -0.44563,1.30437 0.44241,0.47187 1.22302,0.19598 1.73469,-0.61309 0.51167,-0.80907 0.9372,-1.013 0.94563,-0.45317 0.008,0.55982 -1.14969,2.73232 -2.57359,4.82777 -1.42389,2.09544 -2.35944,4.03935 -2.079,4.31979 0.28044,0.28044 2.60953,-2.67715 5.17575,-6.57243 5.3882,-8.17878 7.60873,-10.202 4.49215,-4.093 -3.10471,6.08574 -0.75701,4.0078 3.62855,-3.21162 2.06008,-3.39126 3.93852,-5.58716 4.17432,-4.87978 0.40593,1.21781 -11.91056,20.42189 -13.87697,21.6372 -1.70439,1.05336 -0.95041,-1.12402 1.5741,-4.5458 2.48775,-3.37196 3.5409,-5.91401 1.2182,-2.94044 -6.66685,8.53503 -6.39128,8.29858 -6.9924,5.99989 z m 135.67823,0.0466 c 1.75658,-1.941 1.37572,-4.70599 -0.48944,-3.55326 -0.52097,0.32197 -0.70753,0.97322 -0.41459,1.44721 1.22796,1.98688 -1.3871,1.77177 -3.11635,-0.25635 -1.5672,-1.83805 -1.58966,-1.98151 -0.13365,-0.85397 1.61335,1.24939 2.20401,0.86046 1.84364,-1.21401 -0.0787,-0.45338 0.31796,-0.53932 0.88158,-0.19098 1.8513,1.14416 1.07728,-0.64392 -2.31619,-5.35071 -4.70219,-6.52201 -5.40772,-7.98753 -2.71231,-5.63398 2.47705,2.16289 11.05328,13.78894 11.05328,14.98398 0,0.4015 -0.675,0.47098 -1.5,0.15439 -0.825,-0.31658 -1.5,-0.18787 -1.5,0.28603 0,0.47389 -0.76227,1.15413 -1.69393,1.51165 -1.52199,0.58404 -1.51205,0.44903 0.098,-1.33 z m -79.15403,-1.76833 c -0.6875,-0.27741 -1.25689,-1.25439 -1.26531,-2.17105 -0.0132,-1.44151 -0.14628,-1.46402 -0.98469,-0.16667 -0.58246,0.90129 -0.97549,1.02463 -0.98469,0.30902 -0.0302,-2.35182 1.79693,-2.24452 3.39836,0.19957 0.89784,1.37027 1.50956,2.45588 1.35938,2.41246 -0.15018,-0.0434 -0.83555,-0.30592 -1.52305,-0.58333 z m 85.75,-2.33772 c -0.5887,-1.1 -0.84537,-2 -0.57037,-2 0.275,0 0.98167,0.9 1.57037,2 0.5887,1.1 0.84537,2 0.57037,2 -0.275,0 -0.98167,-0.9 -1.57037,-2 z m -0.58834,-5.23474 c -3.74783,-6.75095 -3.75334,-6.76526 -2.6034,-6.76526 0.53621,0 1.2619,1.1434 1.61265,2.5409 0.35075,1.39749 1.00422,2.31439 1.45215,2.03755 0.75678,-0.46771 3.43227,6.44955 2.75612,7.12571 -0.16823,0.16822 -1.61611,-2.05428 -3.21752,-4.9389 z m -13.67754,2.37611 c -1.00503,-1.24215 -0.978,-1.371 0.14561,-0.69413 0.95924,0.57785 1.22591,0.40778 0.875,-0.55804 -0.2776,-0.76406 -0.99339,-1.28256 -1.59065,-1.15223 -1.36549,0.29799 -6.61612,-7.2585 -8.99051,-12.93876 -1.51358,-3.62093 -1.62941,-5.11459 -0.73513,-9.47915 1.32055,-6.44495 1.77261,-6.89161 4.12449,-4.07519 1.0362,1.24087 1.24344,1.69363 0.46054,1.00613 -2.17284,-1.90805 -2.58374,-1.56386 -2.98461,2.5 -0.67429,6.83575 -0.33554,9.50447 1.32439,10.43341 0.90021,0.50378 1.63675,1.9326 1.63675,3.17515 0,1.24255 0.66645,3.13269 1.481,4.20031 1.28188,1.68015 1.61594,1.73946 2.48468,0.44113 0.55203,-0.825 1.01059,-1.0275 1.01901,-0.45 0.008,0.5775 -0.52469,1.59 -1.18469,2.25 -0.66,0.66 -0.7725,1.24783 -0.25,1.3063 0.5225,0.0585 1.85,0.17096 2.95,0.25 1.31164,0.0942 1.89887,0.74602 1.70616,1.8937 -0.16161,0.9625 0.17589,1.75 0.75,1.75 0.57411,0 1.04384,0.375 1.04384,0.83333 0,1.40463 -2.95769,0.92487 -4.26588,-0.69196 z m 10.43619,0.10863 c -0.49503,-0.9625 -0.70853,-2.28199 -0.47445,-2.93221 0.23409,-0.65021 -0.28827,-2.56271 -1.1608,-4.25 -0.87253,-1.68728 -1.35744,-3.06779 -1.07759,-3.06779 0.27986,0 1.67205,2.29549 3.09375,5.10109 1.42171,2.80559 2.02782,4.75677 1.34691,4.33595 -0.86376,-0.53383 -1.04497,-0.26209 -0.59945,0.89892 0.84493,2.20186 0.0158,2.1387 -1.12837,-0.086 z m -56.96664,-6.20452 c 0.67134,-1.07499 1.36075,-1.8144 1.53201,-1.64313 0.59277,0.59277 -0.95337,3.59765 -1.85114,3.59765 -0.49582,0 -0.35221,-0.87953 0.31913,-1.95452 z m -24.67177,-5.82294 c -0.43025,-1.12123 -0.0318,-1.30841 1.70324,-0.80022 5.22079,1.52912 7.12184,1.61957 7.91042,0.37641 0.61167,-0.96428 0.82776,-0.84334 0.83913,0.46964 0.0128,1.47853 -0.79651,1.73963 -4.93793,1.59305 -3.30087,-0.11683 -5.14059,-0.66355 -5.51486,-1.63888 z m 17.97518,0.78891 c -0.35836,-0.57984 0.0724,-0.72631 1.04191,-0.35428 0.93031,0.35699 2.02212,0.0368 2.49756,-0.73249 0.46459,-0.75172 1.13923,-1.07223 1.49921,-0.71225 1.06287,1.06287 -0.51222,2.78757 -2.54576,2.78757 -1.03508,0 -2.1569,-0.44485 -2.49292,-0.98855 z m 63.59942,-3.50278 c -0.62201,-2.47024 -2.03128,-6.09432 -3.1317,-8.05353 -1.68154,-2.99385 -3.77265,-11.58633 -2.5132,-10.32688 0.22307,0.22307 1.96575,4.67297 3.87263,9.88866 1.90688,5.21569 3.78491,10.27058 4.1734,11.23308 0.38855,0.96264 0.26171,1.75 -0.28193,1.75 -0.54355,0 -1.49719,-2.0211 -2.1192,-4.49133 z m -45.88174,1.31704 c 0.24305,-0.72914 0.85441,-1.34166 1.35857,-1.36115 1.86006,-0.0719 5.45511,-2.59335 4.92365,-3.45327 -0.30198,-0.4886 0.18468,-1.29898 1.08145,-1.80084 1.49291,-0.83548 1.49469,-0.96458 0.021,-1.53007 -0.88517,-0.33969 -1.60943,-1.10829 -1.60943,-1.70801 0,-0.59972 0.5625,-0.77283 1.25,-0.38468 1,0.56457 1,0.43638 0,-0.64099 -0.6875,-0.74068 -1.25,-2.42984 -1.25,-3.75369 0,-1.7287 -0.4227,-2.24478 -1.5,-1.83138 -2.09837,0.80522 -1.86805,-1.07827 0.5,-4.08876 l 2,-2.54259 0.0354,4.38486 c 0.0195,2.41167 0.67854,5.50986 1.46456,6.88486 1.49296,2.61165 2.05019,9.14829 0.75,8.79786 -0.4125,-0.11118 -2.71136,0.82289 -5.10857,2.07571 -2.84653,1.48764 -4.20527,1.81795 -3.91667,0.95214 z m 38.72999,-3.57571 c -5.99251,-8.29806 -6.80668,-9.87372 -5.86793,-11.35623 0.75123,-1.18638 0.88483,-1.18703 0.89787,-0.004 0.0134,1.21746 3.09165,6.70647 7.77302,13.8606 2.6958,4.11976 0.67767,2.31976 -2.80296,-2.5 z m -108.95475,-0.25 c 1.12236,-2.2 2.26565,-4 2.54065,-4 0.275,0 -0.41829,1.8 -1.54065,4 -1.12236,2.2 -2.26565,4 -2.54065,4 -0.275,0 0.41829,-1.8 1.54065,-4 z m -17.92105,-0.66821 c -0.0434,-0.64252 -0.33793,-1.99252 -0.65446,-3 -0.54705,-1.74122 -0.51883,-1.7434 0.57078,-0.0441 0.63045,0.98322 0.92496,2.33322 0.65445,3 -0.35498,0.87499 -0.51379,0.88727 -0.57077,0.0441 z m 70.12934,-4.08179 c -0.82264,-1.66996 -0.85464,-2.50553 -0.31595,-8.25 l 0.23443,-2.5 0.93494,2.33258 c 0.51422,1.28292 0.66063,3.42551 0.32537,4.76131 -0.48961,1.95075 -0.29248,2.30704 1.00167,1.81043 0.88619,-0.34007 1.61125,-1.20302 1.61125,-1.91769 0,-0.83719 0.7646,-1.09944 2.14954,-0.73727 1.41614,0.37033 2.6103,-0.068 3.5,-1.28475 1.2555,-1.71701 1.35046,-1.65544 1.35046,0.87565 0,2.89783 -0.38668,3.15236 -6.27779,4.13235 -2.07778,0.34565 -3.51373,1.05571 -3.19098,1.57792 0.32274,0.52221 0.35108,0.94947 0.063,0.94947 -0.28811,0 -0.91177,-0.7875 -1.38591,-1.75 z m -69.55836,-0.88479 c -0.7277,-2.18317 2.48194,-11.92475 4.56829,-13.86521 0.75052,-0.69803 0.82303,-0.55934 0.24012,0.45929 -0.45929,0.80261 -1.56896,4.62761 -2.46595,8.5 -1.24643,5.381 -1.79862,6.53748 -2.34246,4.90592 z m 53.2078,-1.08726 c -3.06161,-0.32432 -3.55948,-0.70246 -3.12292,-2.37187 0.45322,-1.73311 0.72604,-1.80788 2.14228,-0.58709 2.11712,1.82496 5.96848,2.73989 6.68093,1.58713 0.95897,-1.55164 3.42636,-1.02898 2.80361,0.59388 -0.56707,1.47776 -1.28118,1.54308 -8.5039,0.77795 z m 53.71893,-4.1297 c -1.52776,-2.95436 -1.74123,-7.14825 -0.36386,-7.14825 0.43296,0 0.7872,0.45 0.7872,1 0,0.55 0.49814,1 1.10699,1 0.60884,0 0.8535,-0.66059 0.54367,-1.46797 -0.30982,-0.80739 -0.12979,-1.73591 0.40008,-2.06339 1.53406,-0.9481 2.301,2.40261 0.92846,4.05643 -0.94616,1.14005 -1.57239,1.22752 -2.61188,0.36482 -1.88509,-1.56449 -1.81224,0.34904 0.15836,4.15977 0.83912,1.62269 1.30068,2.95034 1.02568,2.95034 -0.275,0 -1.16361,-1.28329 -1.9747,-2.85175 z m -48.57666,1.00357 c 0,-0.50521 0.9,-1.15391 2,-1.44157 1.1,-0.28766 2,-0.35597 2,-0.15181 0,0.20415 -0.9,0.85286 -2,1.44156 -1.10492,0.59134 -2,0.65928 -2,0.15182 z m -42.97015,-2.57331 c -0.62862,-1.6534 -1.47405,-2.42201 -2.18249,-1.98418 -0.71712,0.44321 -0.88534,0.27615 -0.44285,-0.43982 0.39244,-0.63498 1.06474,-1.15451 1.49399,-1.15451 0.99403,0 3.34666,5.08817 2.66692,5.76791 -0.28021,0.28021 -0.97121,-0.70502 -1.53557,-2.1894 z m 44.00078,-0.0785 c 0,-0.55 0.43621,-1.675 0.96937,-2.5 0.53316,-0.825 0.96937,-1.05 0.96937,-0.5 0,0.55 -0.43621,1.675 -0.96937,2.5 -0.53316,0.825 -0.96937,1.05 -0.96937,0.5 z m 19.46937,-1.5 c -0.33992,-0.55 -0.14148,-1 0.44098,-1 0.58246,0 1.05902,0.45 1.05902,1 0,0.55 -0.19844,1 -0.44098,1 -0.24254,0 -0.7191,-0.45 -1.05902,-1 z m 40.57895,-0.58333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -100.57611,-2.40772 c -0.34756,-1.09508 -0.35133,-2.44508 -0.008,-3 1.0327,-1.67094 3.51121,-1.13492 3.42658,0.74105 -0.0476,1.05575 -0.27987,1.25163 -0.58541,0.49377 -0.27855,-0.69093 -0.89837,-1.01402 -1.37738,-0.71798 -0.479,0.29605 -0.61841,1.19626 -0.3098,2.00049 0.30861,0.80423 1.03349,1.17029 1.61083,0.81347 0.61299,-0.37885 0.75286,-0.16843 0.3362,0.50574 -1.07744,1.74333 -2.38619,1.38932 -3.09265,-0.83654 z m 5.57611,0.40772 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 26.39406,-0.46034 c -0.32508,-0.52598 0.33551,-0.95633 1.46797,-0.95633 2.41457,0 2.65816,0.55611 0.59104,1.34934 -0.80738,0.30982 -1.73394,0.13297 -2.05901,-0.39301 z m 5.01168,-0.98111 c -0.34834,-0.56362 -0.2624,-0.96033 0.19098,-0.88158 2.95346,0.51306 3.57946,-0.15425 1.89293,-2.01783 -1.65893,-1.8331 -1.65443,-1.91172 0.095,-1.66051 1.15422,0.16574 1.95393,1.252 2.15281,2.9242 0.25002,2.10219 -0.10483,2.6605 -1.69098,2.6605 -1.10408,0 -2.29241,-0.46115 -2.64076,-1.02478 z m 33.41866,-2.82712 c 1.01202,-2.00645 2.14607,-4.7731 2.52012,-6.1481 0.58694,-2.15758 0.50179,-2.28257 -0.62169,-0.91256 -1.32485,1.61557 -5.1478,2.28145 -4.18869,0.72958 0.28881,-0.4673 1.01354,-0.54777 1.61052,-0.17882 0.63811,0.39437 0.79856,0.20668 0.38934,-0.45545 -0.83818,-1.3562 1.70899,-5.49261 6.13705,-9.96608 3.08858,-3.12026 4.27025,-6.21667 2.37244,-6.21667 -0.48265,0 -1.41555,0.64825 -2.07311,1.44056 -0.65756,0.79231 -1.78348,1.21495 -2.50205,0.93921 -1.22264,-0.46917 -4.88381,3.24001 -5.84377,5.92041 -0.23634,0.6599 -0.70439,0.94924 -1.04012,0.64297 -1.23546,-1.12703 4.51908,-7.99255 7.87422,-9.39442 1.90431,-0.79567 3.46239,-2.14464 3.46239,-2.9977 0,-2.11969 -0.94798,-1.94853 -3.74107,0.67544 -1.82705,1.71643 -2.2182,1.83097 -1.70746,0.5 0.81982,-2.13641 0.20753,-2.15617 -3.85113,-0.12428 l -3.20034,1.60219 3.45495,-2.95497 c 1.90022,-1.62524 4.18166,-2.76494 5.06986,-2.53267 0.8882,0.23227 2.17108,-0.24785 2.85085,-1.06692 0.98821,-1.19072 0.97421,-1.44958 -0.0699,-1.29141 -0.7182,0.10881 -1.75581,0.44565 -2.30581,0.74853 -0.55,0.30288 -4.825,0.57655 -9.5,0.60814 l -8.5,0.0574 7,-0.70173 c 7.71196,-0.7731 9.23931,-1.27906 14.75785,-4.88885 2.99924,-1.96187 3.52562,-2.7379 2.6075,-3.84418 -1.6465,-1.9839 -0.42279,-2.70645 2.20336,-1.30097 l 2.24001,1.19881 -2.32527,-3.86779 c -4.27583,-7.11238 -9.11055,-13.32616 -12.81373,-16.46876 -2.01832,-1.71279 -2.99467,-2.84104 -2.16967,-2.50723 0.825,0.33381 2.175,0.85865 3,1.1663 0.825,0.30766 4.65,4.88843 8.5,10.17951 7.14302,9.81669 12.21134,15.31177 14,15.17884 0.55,-0.0409 0.4347,-0.30223 -0.25623,-0.58079 -0.69093,-0.27855 -1.00187,-0.91803 -0.69098,-1.42105 0.31088,-0.50303 0.0663,-0.91459 -0.54346,-0.91459 -0.75202,0 -0.80115,-0.54959 -0.15271,-1.70827 0.69435,-1.24075 0.50269,-2.06246 -0.70031,-3.00245 -1.52373,-1.19059 -1.51623,-1.2454 0.0937,-0.68475 0.9625,0.3352 1.73014,0.2238 1.70587,-0.24754 -0.078,-1.51491 -2.81839,-10.89291 -2.88838,-9.88448 -0.0371,0.53487 -0.79457,-0.0655 -1.68322,-1.33427 -1.29529,-1.8493 -1.36527,-2.53797 -0.35282,-3.47251 0.98807,-0.91204 1.13157,-0.79186 0.6594,0.55224 -0.33193,0.94489 -0.23516,1.94563 0.21503,2.22386 0.4502,0.27824 0.76805,-0.39923 0.70633,-1.50549 -0.0617,-1.10625 -0.78721,-2.4376 -1.61221,-2.95854 -0.825,-0.52095 -1.07649,-0.95407 -0.55887,-0.96249 0.51762,-0.008 0.0676,-0.71513 -1,-1.57048 -1.87717,-1.50392 -1.86955,-1.5206 0.23132,-0.50632 3.07137,1.48284 6.15895,5.7054 7.26972,9.94204 0.52193,1.9907 1.41787,9.46945 1.99099,16.61945 1.58018,19.71376 2.36947,23.06118 7.61326,32.28832 2.59065,4.55858 4.4381,8.56049 4.10546,8.89313 -0.33264,0.33264 -0.89111,-0.1413 -1.24105,-1.05322 -0.34993,-0.91191 -1.91004,-3.02163 -3.4669,-4.68825 l -2.83066,-3.03024 -0.37639,4.79513 c -0.32132,4.09365 -0.41733,3.7711 -0.65631,-2.20487 -0.15396,-3.85 -0.59964,-8.125 -0.9904,-9.5 -0.68378,-2.40606 -0.73666,-2.37187 -1.40727,0.90972 -0.38323,1.87535 -0.86971,3.22535 -1.08107,3 -0.21135,-0.22534 0.11128,-2.79975 0.71696,-5.72091 0.89666,-4.32453 0.84461,-5.46979 -0.28021,-6.16496 -0.75979,-0.46958 -1.4168,-2.42815 -1.46001,-4.35237 -0.0432,-1.92423 -0.51462,-3.42499 -1.04758,-3.33504 -0.53296,0.09 -1.46273,-1.82653 -2.06615,-4.25886 -0.99591,-4.01436 -2.69022,-5.75551 -5.84568,-6.0073 -0.48447,-0.0387 -0.62526,1.50472 -0.31287,3.42972 0.43997,2.71124 0.22616,3.5 -0.94875,3.5 -1.27335,0 -1.40366,1.05577 -0.81213,6.5794 0.38752,3.61867 0.70459,7.66867 0.70459,9 0,1.33133 0.50625,2.42749 1.125,2.43591 0.81085,0.011 0.81781,0.22047 0.0249,0.75 -0.60503,0.40408 -1.357,1.40969 -1.67105,2.23469 -0.45482,1.1948 -0.58706,1.14393 -0.64994,-0.25 -0.20988,-4.65229 -5.34645,1.53189 -6.5351,7.86795 -0.62878,3.35171 -1.85264,4.30947 -3.04385,2.38205 -1.08452,-1.75479 -2.75218,-1.07232 -2.23281,0.91375 0.33692,1.28835 -0.10481,2.07203 -1.3517,2.3981 -1.801,0.47097 -1.80134,0.38357 -0.0121,-3.16375 z m 6.09665,-11.1481 c 0,-0.55 -0.19844,-1 -0.44098,-1 -0.24254,0 -0.7191,0.45 -1.05902,1 -0.33992,0.55 -0.14148,1 0.44098,1 0.58246,0 1.05902,-0.45 1.05902,-1 z m 9.116,11.375 c -0.0638,-1.16875 -0.37811,-3.64375 -0.69847,-5.5 l -0.58247,-3.375 2.01206,2.48238 c 1.1438,1.41117 1.65735,2.92151 1.19007,3.5 -0.45208,0.55969 -1.0432,1.91762 -1.31358,3.01762 -0.46741,1.90154 -0.49732,1.89539 -0.60761,-0.125 z m -35.5188,-0.11114 c -0.32846,-0.32846 -0.56674,-1.75969 -0.52952,-3.18053 0.0676,-2.57845 0.0697,-2.57908 1.15281,-0.33333 0.59683,1.2375 1.69137,2.25 2.43232,2.25 0.74096,0 1.34719,0.35424 1.34719,0.7872 0,0.9423 -3.55255,1.32692 -4.4028,0.47666 z m 6.4028,-0.40253 c 0,-0.47373 0.4132,-0.86133 0.91821,-0.86133 0.50502,0 1.63002,-0.27314 2.5,-0.60699 0.86999,-0.33384 1.58179,-0.1613 1.58179,0.38342 0,0.54473 -1.125,1.20547 -2.5,1.46832 -1.375,0.26285 -2.5,0.0903 -2.5,-0.38342 z m -67.94373,-3.36133 c 1.2337,-2.2 2.57968,-5.35 2.99105,-7 0.57853,-2.32045 0.74487,-1.64091 0.73432,3 -0.007,3.3 -0.21944,5.2125 -0.47097,4.25 -0.45376,-1.73638 -2.31067,-2.4927 -2.31067,-0.94113 0,0.44488 -0.71704,1.68238 -1.59341,2.75 -0.87638,1.06762 -0.58402,0.14113 0.64968,-2.05887 z m 42.94373,1.5 c 0,-1.24393 0.66156,-1.99421 1.75,-1.98469 1.3762,0.012 1.45737,0.20069 0.38002,0.88317 -1.10617,0.70074 -1.00989,1.07706 0.5,1.95428 1.74728,1.01513 1.72234,1.08842 -0.38002,1.11683 -1.59347,0.0215 -2.25,-0.55317 -2.25,-1.96959 z m 10,-0.5 c 0,-0.825 0.45,-1.5 1,-1.5 0.55,0 1,0.675 1,1.5 0,0.825 -0.45,1.5 -1,1.5 -0.55,0 -1,-0.675 -1,-1.5 z m 16.5,-0.5 c 0.33992,-0.55 0.81648,-1 1.05902,-1 0.24254,0 0.44098,0.45 0.44098,1 0,0.55 -0.47656,1 -1.05902,1 -0.58246,0 -0.7809,-0.45 -0.44098,-1 z m 37.06429,-0.29313 c 0.37553,-0.98622 0.93469,-1.54122 1.24258,-1.23333 0.30789,0.30789 6.4e-4,1.11479 -0.68278,1.79313 -0.98762,0.98026 -1.10248,0.8654 -0.5598,-0.5598 z m -8.1593,-5.95687 -1.90499,-2.25 2.5,1.98934 c 1.375,1.09414 2.6875,2.10664 2.91667,2.25 0.22916,0.14336 -0.0386,0.26066 -0.59502,0.26066 -0.55642,0 -1.86892,-1.0125 -2.91666,-2.25 z m -33.40499,-3.80902 c 0,-0.58246 0.45,-0.7809 1,-0.44098 0.55,0.33992 1,0.81648 1,1.05902 0,0.24254 -0.45,0.44098 -1,0.44098 -0.55,0 -1,-0.47656 -1,-1.05902 z m -13.5,-0.94098 c -0.33992,-0.55 -0.16803,-1 0.38197,-1 0.55,0 1.27811,0.45 1.61803,1 0.33992,0.55 0.16803,1 -0.38197,1 -0.55,0 -1.27811,-0.45 -1.61803,-1 z m -46.3421,-10 c 0,-1.375 0.22697,-1.9375 0.50438,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50438,0.125 -0.50438,-1.25 z m 83.71454,-19.75 c -1.24387,-1.58606 -1.2085,-1.62143 0.37756,-0.37755 1.66575,1.30636 2.19548,2.12755 1.37244,2.12755 -0.20765,0 -0.99515,-0.7875 -1.75,-1.75 z m -5.94813,-5 -2.42431,-2.75 2.75,2.42431 c 2.57029,2.26589 3.20859,3.07569 2.42431,3.07569 -0.17912,0 -1.41662,-1.2375 -2.75,-2.75 z M 488.2576,388.70216 c -0.35587,-1.62026 -1.74869,-3.98088 -3.09516,-5.24582 -1.34647,-1.26494 -2.44813,-3.12146 -2.44813,-4.12558 0,-1.00413 -0.675,-1.82569 -1.5,-1.82569 -0.825,0 -1.5,0.82206 -1.5,1.82681 0,1.46096 -0.60079,1.73863 -3,1.3865 -3.73557,-0.54827 -3.74144,-1.12878 -0.0473,-4.66802 1.624,-1.5559 2.90256,-3.10259 2.84124,-3.4371 -0.0613,-0.3345 0.23933,-1.41193 0.66811,-2.39428 0.78364,-1.79535 0.23954,-9.62885 -1.05674,-15.21391 -0.68435,-2.94857 -0.66163,-2.96926 1.32563,-1.20683 1.81278,1.6077 2.08523,1.62818 2.63402,0.19806 0.33666,-0.87731 0.20922,-1.34611 -0.28319,-1.04179 -0.4924,0.30433 -0.64136,-0.41767 -0.33102,-1.60443 0.38666,-1.47859 0.19993,-1.93258 -0.59326,-1.44236 -0.76677,0.47389 -1.15752,-0.18981 -1.15752,-1.96608 0,-2.06915 0.29309,-2.43821 1.28354,-1.61622 0.81367,0.67529 1.82036,0.72572 2.75,0.13776 1.14094,-0.72161 0.91152,-0.95717 -1.03354,-1.06122 -1.375,-0.0736 -2.8375,-0.0804 -3.25,-0.0153 -0.95288,0.15046 -0.98744,-4.3108 -0.0407,-5.25751 0.39009,-0.39009 0.57896,-2.51394 0.4197,-4.71965 -0.17593,-2.43666 0.33962,-4.97062 1.31379,-6.4574 1.87357,-2.85943 3.56376,-3.19204 3.54193,-0.69702 -0.0117,1.34018 -0.21332,1.43764 -0.86083,0.41616 -1.10821,-1.74825 -2.3054,0.88865 -2.76216,6.08384 -0.31253,3.55475 0.78099,4.94618 2.14839,2.73369 0.34546,-0.55897 1.07273,-0.74152 1.61615,-0.40567 1.73117,1.06992 5.87376,1.1842 5.87376,0.16202 0,-0.63406 0.4453,-0.64242 1.25,-0.0235 1.42922,1.09932 5.74203,1.02442 7.61351,-0.13222 0.74556,-0.46078 2.10681,-0.0236 3.32445,1.06769 2.29413,2.05606 2.27269,2.86888 0.20511,-7.77715 -0.38439,-1.97923 -0.23842,-2.89735 0.39811,-2.50395 0.89268,0.5517 2.88793,13.90527 2.37928,15.92376 -0.11014,0.43709 -0.29081,1.88876 -0.40148,3.22594 -0.11067,1.33718 -0.82964,2.67239 -1.59772,2.96713 -1.18116,0.45325 -1.18638,0.79498 -0.0339,2.21602 0.7884,0.9721 0.86498,1.38165 0.18172,0.97185 -0.6495,-0.38955 -1.40582,-0.34434 -1.68072,0.10046 -0.2749,0.4448 0.36349,0.87376 1.41865,0.95324 1.3402,0.10095 2.21923,-0.8161 2.91628,-3.04242 l 0.99782,-3.18692 -0.51502,3.5 c -0.28327,1.925 -0.77964,7.14478 -1.10306,11.59951 l -0.58804,8.09951 9.24586,3.90049 c 5.61417,2.36841 8.46616,4.01863 7.26082,4.20126 -1.09177,0.16542 -4.5937,-0.8529 -7.78207,-2.26295 -6.52449,-2.88544 -7.87357,-2.6399 -4.60596,0.83832 1.95776,2.08394 2.02845,2.44362 0.58882,2.99605 -2.90099,1.11322 -4.22434,0.67691 -4.92015,-1.62219 -0.64215,-2.12179 -0.74851,-2.06566 -1.86663,0.98501 -0.65212,1.77926 -1.56068,3.20426 -2.01901,3.16667 -0.45834,-0.0376 -1.09584,0.19415 -1.41667,0.51499 -0.32083,0.32083 0.50417,0.61886 1.83333,0.66228 l 2.41667,0.079 -2.61417,0.95911 c -1.43779,0.5275 -3.12766,1.95448 -3.75527,3.17105 -1.09931,2.13093 -1.11632,2.12038 -0.46441,-0.28806 0.37218,-1.375 0.62752,-3.2875 0.56742,-4.25 -0.0601,-0.9625 0.25131,-1.75 0.69202,-1.75 1.31418,0 6.48047,-12.36464 5.32694,-12.74915 -0.57212,-0.19071 -0.83712,-1.33767 -0.58889,-2.5488 1.01246,-4.93986 -2.49629,2.89465 -4.71278,10.52292 -1.2327,4.24247 -2.58397,7.50178 -3.00281,7.24292 -0.41884,-0.25885 -0.53946,0.54247 -0.26804,1.78073 0.36767,1.67739 0.24251,1.89613 -0.49091,0.85798 -0.57803,-0.81821 -1.86938,-1.16196 -3.12829,-0.83275 -1.76169,0.46069 -2.25016,0.0294 -2.73986,-2.4191 -0.3852,-1.92598 -0.93914,-2.63656 -1.56639,-2.00931 -0.62724,0.62725 -0.54337,2.26444 0.23717,4.6295 0.66418,2.01249 0.98057,3.88609 0.7031,4.16357 -0.27748,0.27748 -0.79567,-0.82116 -1.15154,-2.44142 z m -0.91886,-13.27834 c -1.90061,-7.16169 -2.64735,-8.91875 -3.79044,-8.91875 -0.52361,0 -0.69313,-0.41891 -0.3767,-0.9309 0.31644,-0.512 0.18,-1.17523 -0.30319,-1.47386 -0.48319,-0.29863 -0.77296,0.45778 -0.64393,1.6809 0.12902,1.22312 0.31858,2.22386 0.42123,2.22386 0.10266,0 0.33294,1.575 0.51175,3.5 0.45428,4.89082 3.4467,11.51015 4.6565,10.30035 0.61712,-0.61712 0.44649,-2.90851 -0.47522,-6.3816 z m 3.45375,-0.24057 c -1.28647,-1.28647 -1.5095,2.1048 -0.32818,4.99003 0.61557,1.50346 0.80882,1.31705 1.07818,-1.04003 0.18049,-1.57951 -0.15701,-3.35701 -0.75,-3.95 z m 5.44405,-2.41136 c -1.01958,-5.43483 -1.71024,-3.11609 -0.8538,2.86644 0.46964,3.28057 0.91148,4.44119 1.13665,2.98575 0.20259,-1.30955 0.0753,-3.94303 -0.28285,-5.85219 z m -8.60556,-7.52748 c -0.22917,-0.14336 -1.54167,-1.15586 -2.91667,-2.25 l -2.5,-1.98934 1.90499,2.25 c 1.04774,1.2375 2.36024,2.25 2.91666,2.25 0.55643,0 0.82418,-0.1173 0.59502,-0.26066 z m 15.60979,-2.54621 c -0.30789,-0.30789 -1.11479,-6.4e-4 -1.79313,0.68278 -0.98026,0.98762 -0.8654,1.10248 0.5598,0.5598 0.98622,-0.37553 1.54122,-0.9347 1.23333,-1.24258 z m -12.52646,-0.19313 c 0,-0.55 -0.47656,-1 -1.05902,-1 -0.58246,0 -0.7809,0.45 -0.44098,1 0.33992,0.55 0.81648,1 1.05902,1 0.24254,0 0.44098,-0.45 0.44098,-1 z m 13.67917,-3.65416 c -0.29104,-0.29104 -1.35042,-0.004 -2.35417,0.638 -1.62411,1.0387 -1.63237,1.10728 -0.075,0.62305 0.99082,-0.30807 1.78425,-0.0155 1.82895,0.67449 0.0559,0.86224 0.23254,0.83478 0.60416,-0.0939 0.28887,-0.72188 0.2871,-1.55063 -0.004,-1.84167 z m -5.67917,-1.73885 c 0,-2.82418 -6.43027,-4.07523 -9.11797,-1.77396 -2.61255,2.23695 -1.38592,3.16697 4.17699,3.16697 3.55665,0 4.94098,-0.39028 4.94098,-1.39301 z m -7.73625,-0.32457 c 1.52006,-0.22986 3.77006,-0.22371 5,0.0136 1.22994,0.23736 -0.0138,0.42542 -2.76375,0.41792 -2.75,-0.007 -3.75631,-0.20172 -2.23625,-0.43157 z m 11.40292,-5.73843 c 0,-0.80081 -0.38234,-1.21971 -0.84965,-0.9309 -0.4673,0.28881 -0.59075,0.94401 -0.27431,1.45601 0.80862,1.30838 1.12396,1.16106 1.12396,-0.52511 z m -5.66667,-1.55667 c 0,-0.90969 -0.33176,-1.98575 -0.73725,-2.39123 -0.40548,-0.40549 -0.74298,-1.48563 -0.75,-2.40031 -0.007,-0.91469 -0.86591,-1.82857 -1.90866,-2.03085 -1.35226,-0.26232 -1.73039,0.0636 -1.31868,1.13645 0.31747,0.82732 -0.0526,2.33546 -0.82229,3.35142 -2.2126,2.92039 -1.72274,3.86532 2.03688,3.92912 2.61321,0.0444 3.5,-0.35967 3.5,-1.5946 z m 8.7446,-3.72113 c 0.22507,-0.6752 -0.43046,-0.89959 -1.67625,-0.57381 -1.12522,0.29425 -1.78468,0.95759 -1.46546,1.4741 0.71437,1.15587 2.64029,0.60398 3.14171,-0.90029 z m -20.34761,-3.09952 c 0.28327,-0.45834 -0.12038,-0.83334 -0.89699,-0.83334 -0.77661,0 -1.18026,0.375 -0.89699,0.83334 0.28326,0.45833 0.68691,0.83333 0.89699,0.83333 0.21008,0 0.61373,-0.375 0.89699,-0.83333 z m 19.10301,-0.16667 c 0.33992,-0.55 -0.11008,-1 -1,-1 -0.88992,0 -1.33992,0.45 -1,1 0.33992,0.55 0.78992,1 1,1 0.21008,0 0.66008,-0.45 1,-1 z m -49.5,40 c 0.825,-0.53316 1.95,-0.96937 2.5,-0.96937 0.55,0 0.325,0.43621 -0.5,0.96937 -0.825,0.53316 -1.95,0.96937 -2.5,0.96937 -0.55,0 -0.325,-0.43621 0.5,-0.96937 z m 75,-1 c -0.825,-0.53316 -1.05,-0.96937 -0.5,-0.96937 0.55,0 1.675,0.43621 2.5,0.96937 0.825,0.53316 1.05,0.96937 0.5,0.96937 -0.55,0 -1.675,-0.43621 -2.5,-0.96937 z m -66,-2.18455 c 1.375,-0.6573 5.2,-2.50722 8.5,-4.11094 3.3,-1.60371 5.55,-2.46563 5,-1.91538 -1.44936,1.45004 -10.57288,5.92761 -13.5,6.62542 l -2.5,0.59599 2.5,-1.19509 z m 14,-31.81545 c 0,-2.2 -0.3375,-3.99939 -0.75,-3.99864 -0.4125,7.5e-4 -0.59403,-2.50577 -0.40339,-5.57005 0.19064,-3.06428 0.5911,-5.32693 0.88993,-5.02811 0.70959,0.7096 1.46336,18.5968 0.78366,18.5968 -0.28611,0 -0.5202,-1.8 -0.5202,-4 z m 31,-3.90601 c 0,-1.43424 0.41137,-1.95778 1.16994,-1.48896 0.81809,0.5056 0.9474,0.14743 0.42997,-1.19099 -0.40699,-1.05272 -0.93193,-3.26404 -1.16655,-4.91404 -0.38284,-2.69235 -0.31485,-2.64123 0.663,0.49844 0.59927,1.92414 1.50739,3.75667 2.01805,4.07227 0.51066,0.31561 0.0188,1.62266 -1.09297,2.90457 l -2.02144,2.33074 0,-2.21203 z m -17.00794,-9.10883 c -0.85601,-1.59947 -0.74633,-2.14222 0.53203,-2.63278 2.05691,-0.78931 3.92267,1.041 3.14008,3.0804 -0.82635,2.15343 -2.38153,1.96386 -3.67211,-0.44762 z m 9.64631,-6.48516 c -0.31658,-0.825 -0.13972,-1.5 0.39301,-1.5 0.53274,0 0.96862,0.675 0.96862,1.5 0,0.825 -0.17686,1.5 -0.39301,1.5 -0.21616,0 -0.65203,-0.675 -0.96862,-1.5 z m -12.63837,-0.5 c -1.2819,-0.82843 -1.24555,-0.9716 0.25,-0.98469 0.9625,-0.008 1.75,0.43469 1.75,0.98469 0,1.21961 -0.11279,1.21961 -2,0 z"
- id="path3018"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#303030"
- d="m 479.52681,673.82195 c 0.72187,-0.28887 1.58437,-0.25335 1.91667,0.0789 0.33229,0.33229 -0.25834,0.56864 -1.3125,0.52522 -1.16495,-0.048 -1.4019,-0.28494 -0.60417,-0.60416 z m -1.65837,-27.21365 c -1.65027,-9.99273 -1.33974,-10.73276 0.90542,-2.15772 1.07218,4.09503 1.56676,7.82817 1.09906,8.29587 -0.4677,0.4677 -1.36971,-2.29447 -2.00448,-6.13815 z m 36.00376,3.89676 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m -7.12609,-3.25 c 0.0175,-1.2375 0.74873,-3.15 1.62498,-4.25 1.55403,-1.95087 1.57815,-1.93859 0.98185,0.5 -0.33623,1.375 -0.61747,3.2875 -0.62498,4.25 -0.008,0.9625 -0.46365,1.75 -1.01365,1.75 -0.55,0 -0.98569,-1.0125 -0.9682,-2.25 z m -24.52287,-0.89885 c 0.34508,-0.90687 0.14674,-1.94592 -0.44076,-2.30902 -0.58749,-0.36309 -1.05015,-1.42111 -1.02813,-2.35115 0.0265,-1.11742 0.56567,-0.72081 1.58972,1.1693 1.1664,2.15286 1.26551,3.14216 0.40071,4 -0.86256,0.85562 -0.99256,0.72871 -0.52154,-0.50913 z m 2.95228,0.0861 c -0.36125,-0.58452 -0.80068,-5.87202 -0.97652,-11.75 -0.17583,-5.87799 -0.54724,-16.76225 -0.82535,-24.18725 -0.42183,-11.26209 -0.36527,-12.09095 0.3412,-5 0.46576,4.675 0.93503,12.1 1.04282,16.5 0.10779,4.4 0.46218,8.44831 0.78752,8.99625 0.58235,0.98078 1.11732,16.50375 0.56877,16.50375 -0.15489,0 -0.57719,-0.47824 -0.93844,-1.06276 z m 26.11946,-3.85391 c 0.36671,-0.87083 1.01501,-2.93333 1.44068,-4.58333 0.70264,-2.72369 0.78335,-2.57786 0.87629,1.58333 0.0784,3.50845 -0.25951,4.58334 -1.44067,4.58334 -1.02175,0 -1.31779,-0.53491 -0.8763,-1.58334 z m -1.12416,-6.08334 c 0.32892,-1.375 1.02399,-4.525 1.54459,-7 0.90204,-4.28835 0.92256,-4.21844 0.43619,1.48654 -0.2807,3.29259 -0.97576,6.44259 -1.54459,7 -0.70925,0.69501 -0.84631,0.22791 -0.43619,-1.48654 z m -3.03897,-2 c 0.30533,-1.375 0.5613,-8.3125 0.56881,-15.41667 0.008,-7.10416 0.2456,-12.68471 0.5291,-12.40121 1.06068,1.06068 0.58118,26.82091 -0.53167,28.56271 -0.95932,1.5015 -1.04115,1.39385 -0.56624,-0.74483 z m -31.25964,-1 c 0,-1.375 0.22697,-1.9375 0.50438,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50438,0.125 -0.50438,-1.25 z m 40.92105,-1.58333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -42.84574,-7.51762 c -0.64208,-3.51948 -1.39789,-10.22405 -1.67958,-14.89905 l -0.51217,-8.5 1.41468,9.5 c 0.77808,5.225 2.07446,11.63669 2.88086,14.2482 0.8064,2.6115 1.0989,4.5212 0.65,4.24377 -0.4489,-0.27744 -0.98947,0.0155 -1.20127,0.65085 -0.21181,0.63541 -0.91044,-1.72429 -1.55252,-5.24377 z m 6.92469,3.10095 c 0,-1.375 0.22697,-1.9375 0.50438,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50438,0.125 -0.50438,-1.25 z m 37.39371,-2.72819 c 0.18297,-2.87551 1.09639,-7.95005 2.02982,-11.27677 1.68863,-6.01823 1.63635,-19.95405 -0.091,-24.24504 -0.53125,-1.31974 -0.21047,-1.75 1.30472,-1.75 1.35449,0 2.36688,1.02615 3.10698,3.14922 1.45605,4.17681 1.3855,4.61337 -0.37037,2.29191 -1.32871,-1.75671 -1.47158,-1.1336 -1.5038,6.55887 -0.0363,8.67363 -2.06342,23.49762 -3.82882,28 -0.79316,2.02284 -0.91676,1.50214 -0.64757,-2.72819 z m -31.39371,-1.27181 c 0,-1.375 0.22697,-1.9375 0.50438,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50438,0.125 -0.50438,-1.25 z m -6.83783,-5 c 0,-3.575 0.1815,-5.0375 0.40333,-3.25 0.22182,1.7875 0.22182,4.7125 0,6.5 -0.22183,1.7875 -0.40333,0.325 -0.40333,-3.25 z m 7.87488,-2.5 c 0.0204,-1.65 0.2445,-2.20394 0.49804,-1.23097 0.25354,0.97297 0.23687,2.32297 -0.037,3 -0.27393,0.67703 -0.48137,-0.11903 -0.46099,-1.76903 z m 16.80505,0.5 c 0,-1.1 0.17252,-2 0.38337,-2 0.21085,0 0.61872,0.9 0.90638,2 0.28766,1.1 0.11514,2 -0.38337,2 -0.49851,0 -0.90638,-0.9 -0.90638,-2 z m 20.08122,-3.31574 c -0.0447,-0.99866 0.40001,-2.71492 0.98817,-3.81392 0.65102,-1.21645 0.71475,-2.46221 0.1629,-3.18426 -0.5622,-0.7356 -0.40425,-2.13559 0.41587,-3.68608 1.26914,-2.39939 1.32113,-2.3189 1.29199,2 -0.0298,4.42018 -2.68843,12.49594 -2.85893,8.68426 z m -12.82904,-3.18426 c 0.0111,-2.2 0.21589,-2.98225 0.45508,-1.73834 0.23919,1.24391 0.23011,3.04391 -0.0202,4 -0.25029,0.95609 -0.446,-0.0617 -0.4349,-2.26166 z m -46.64726,-0.25 c -0.3047,-1.5125 -0.16151,-4.325 0.31818,-6.25 0.79012,-3.1707 0.88181,-2.91197 0.97454,2.75 0.109,6.65562 -0.38667,7.99763 -1.29272,3.5 z m 38.71515,-3.25 c 0,-3.575 0.1815,-5.0375 0.40333,-3.25 0.22182,1.7875 0.22182,4.7125 0,6.5 -0.22183,1.7875 -0.40333,0.325 -0.40333,-3.25 z m -15.24112,-0.58333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -9.37925,-4.77183 c -0.40804,-3.22033 -1.19823,-6.70783 -1.75598,-7.75 -0.63259,-1.18201 -0.65133,-1.89484 -0.0498,-1.89484 1.17284,0 3.38333,10.10727 2.89695,13.24602 -0.19211,1.23969 -0.68313,-0.38084 -1.09117,-3.60118 z m 33.18146,-1.86342 c 0.46036,-2.77692 0.60121,-2.91777 0.91609,-0.91608 0.20464,1.30093 -0.0402,2.77757 -0.544,3.28141 -0.55478,0.55478 -0.70153,-0.37811 -0.37209,-2.36533 z m -4.31687,0.92545 c 0.37553,-0.98622 0.93469,-1.54122 1.24258,-1.23333 0.30789,0.30789 6.4e-4,1.11479 -0.68278,1.79313 -0.98762,0.98026 -1.10248,0.8654 -0.5598,-0.5598 z m -21.48534,-3.2902 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28888,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 20.98468,-1.91667 c -0.0729,-2.31866 -0.31441,-2.65933 -1.06363,-1.5 -0.53316,0.825 -0.96937,1.05 -0.96937,0.5 0,-0.55 0.41219,-1.65153 0.91597,-2.44785 0.71982,-1.13778 1.05868,-0.87928 1.58233,1.20709 0.36649,1.46021 0.43293,3.23675 0.14765,3.94785 -0.28527,0.7111 -0.5611,-0.0571 -0.61295,-1.70709 z m -23.90573,-0.5 c 0,-1.375 0.22697,-1.9375 0.50438,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50438,0.125 -0.50438,-1.25 z m 1.09428,-6.5 c 0.0111,-2.2 0.21589,-2.98225 0.45508,-1.73834 0.23919,1.24391 0.23011,3.04391 -0.0202,4 -0.25029,0.95609 -0.446,-0.0617 -0.4349,-2.26166 z m -17.15792,2 c -0.035,-0.55 0.37947,-1.675 0.92105,-2.5 0.87528,-1.33333 1.0941,-1.33333 1.96938,0 1.45049,2.20958 1.22527,3.41914 -0.38744,2.08071 -1.07718,-0.89398 -1.52305,-0.86437 -1.92106,0.12755 -0.28506,0.71046 -0.54693,0.84174 -0.58193,0.29174 z m 9.47003,-6.79313 c 0.37553,-0.98622 0.9347,-1.54122 1.24258,-1.23333 0.30789,0.30789 6.4e-4,1.11479 -0.68278,1.79313 -0.98762,0.98026 -1.10248,0.8654 -0.5598,-0.5598 z m 5.10428,-0.12819 c -0.9109,-2.37375 -0.84229,-2.80408 0.33143,-2.07868 0.55,0.33992 1,0.0665 1,-0.60765 0,-0.67413 0.23467,-0.99102 0.52148,-0.7042 0.28682,0.28682 0.13767,1.55903 -0.33143,2.82713 -0.74565,2.01568 -0.937,2.08654 -1.52148,0.5634 z m 23.28966,-4.26168 c -0.68261,-2.09935 -1.85246,-4.17686 -2.59967,-4.61669 -0.74721,-0.43983 -1.30532,-2.01483 -1.24025,-3.5 l 0.11832,-2.70031 0.75388,3 c 0.48757,1.94025 0.77694,-0.76403 0.81916,-7.65542 0.0944,-15.40748 2.54778,-28.0062 8.42754,-43.27728 5.99432,-15.56864 8.39174,-24.35871 9.60755,-35.22588 0.49643,-4.43715 1.44342,-8.91667 2.10442,-9.95449 1.14869,-1.8035 1.17196,-1.7985 0.52626,0.11307 -1.1538,3.41578 -1.88069,32.86849 -0.79462,32.19727 0.53933,-0.33333 0.90229,0.38403 0.80909,1.59911 -0.093,1.21199 0.13299,3.32862 0.50211,4.70362 0.52193,1.94428 1.2087,2.42152 3.08954,2.14694 1.33014,-0.19418 2.74905,-0.86918 3.15313,-1.5 1.03639,-1.61793 0.97503,0.1385 -0.4287,12.27216 -0.94747,8.18983 -1.37126,9.79881 -1.98071,7.51998 -0.42644,-1.59452 -0.54197,-4.70812 -0.25673,-6.91911 l 0.51863,-4.01997 -1.36392,2.99105 -1.36393,2.99105 -0.75002,-2.49105 c -0.63804,-2.11912 -1.02099,-1.44589 -2.56482,4.50895 -2.2867,8.82025 -2.51484,7.4221 -0.4895,-3 1.30962,-6.73914 1.36263,-9.26086 0.33633,-16 -1.17021,-7.6841 -2.78719,-13.0511 -2.86218,-9.5 -0.0174,0.825 -2.31833,7.125 -5.11314,14 -4.79821,11.80321 -5.04917,12.86233 -4.50222,19 1.63694,18.36884 1.72523,21.61362 0.65304,24 -1.02406,2.27926 -1.08446,2.29978 -0.68405,0.23241 0.24156,-1.24718 -0.12641,-2.83319 -0.8177,-3.52448 -0.69129,-0.6913 -1.10652,-2.24223 -0.92274,-3.44652 0.25187,-1.65034 -0.0544,-2.0405 -1.24364,-1.58416 -1.0322,0.39609 -1.42031,1.42933 -1.12235,2.98797 0.25049,1.31038 0.13186,2.5825 -0.26362,2.82692 -0.71897,0.44435 -0.34987,7.84252 0.51493,10.32124 0.25202,0.72236 0.8464,1.07348 1.32083,0.78026 0.47443,-0.29321 0.63646,0.6499 0.36005,2.09582 -0.47337,2.4763 -0.5811,2.5215 -1.85554,0.77861 -1.29785,-1.77492 -1.35299,-1.76615 -1.35299,0.21507 0,1.13598 0.6798,3.99218 1.51068,6.34712 0.83087,2.35495 1.32572,4.46667 1.09966,4.69273 -0.22605,0.22606 -0.96951,-1.30664 -1.65211,-3.40599 z m 8.04177,1.183 c 0,-1.375 0.3876,-2.5 0.86133,-2.5 0.47373,0 0.64627,1.125 0.38342,2.5 -0.26285,1.375 -0.65044,2.5 -0.86133,2.5 -0.21088,0 -0.38342,-1.125 -0.38342,-2.5 z m 5.232,-0.5 c 0,-1.925 0.2058,-2.7125 0.45733,-1.75 0.25152,0.9625 0.25152,2.5375 0,3.5 -0.25153,0.9625 -0.45733,0.175 -0.45733,-1.75 z m -46.0741,0 c 0,-1.375 0.22697,-1.9375 0.50438,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50438,0.125 -0.50438,-1.25 z m 12.92105,0.41667 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 31.03062,-2.22569 c -0.0603,-1.26996 -0.49456,-2.07107 -0.96511,-1.78026 -0.47055,0.29082 -0.63518,-0.624 -0.36585,-2.03293 0.35824,-1.87399 0.71803,-2.20144 1.34023,-1.21974 0.63922,1.00854 0.85434,0.86575 0.86585,-0.57472 0.008,-1.05416 0.2312,-1.70077 0.49507,-1.4369 0.26387,0.26387 0.0882,2.47637 -0.39043,4.91666 -0.47861,2.4403 -0.9195,3.39785 -0.97976,2.12789 z m -14.03062,-0.77431 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58438 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -20.0419,-2.01413 c 0.66445,-1.74762 0.63485,-3.90731 -0.0905,-6.60094 -0.59291,-2.20192 -0.85247,-4.22904 -0.57678,-4.50473 0.27568,-0.27568 0.8046,1.11581 1.17537,3.0922 0.37077,1.97638 1.04367,3.36505 1.49531,3.08591 0.45165,-0.27913 0.61448,-1.64741 0.36185,-3.04061 -0.25264,-1.3932 -0.138,-3.05303 0.25474,-3.68851 1.33278,-2.15648 1.34532,-6.86322 0.025,-9.38314 -1.23611,-2.3592 -1.40111,-2.40388 -2.74856,-0.74434 -1.09806,1.35241 -1.11766,1.57538 -0.0837,0.9529 1.08541,-0.65347 1.13437,-0.41016 0.25,1.2423 -0.60486,1.13022 -1.09976,3.28452 -1.09976,4.78735 0,1.50282 -0.25714,2.47526 -0.57143,2.16097 -0.76041,-0.76041 -0.71938,-16.79301 0.0613,-23.95019 0.38099,-3.49285 0.13264,-7.35242 -0.64346,-10 -0.69516,-2.37144 -1.29078,-4.7709 -1.32359,-5.33212 -0.0328,-0.56123 -1.00511,-2.36123 -2.16066,-4 -3.37024,-4.77963 -6.13771,-10.76884 -6.94318,-15.0261 l -0.74799,-3.95349 -1.2376,5.5 c -2.84772,12.65562 -2.43687,16.55929 3.99943,38 3.14432,10.4744 5.94889,23.55373 3.64528,17 -0.85135,-2.42206 -0.88185,-2.40052 -0.97842,0.69098 -0.0548,1.75504 -0.61492,3.50942 -1.24467,3.89863 -0.77527,0.47914 -1.00393,-0.0669 -0.70815,-1.69099 0.44003,-2.41618 -2.36336,-6.34879 -3.62583,-5.08632 -0.3551,0.3551 -0.15793,-0.63713 0.43816,-2.20497 0.7997,-2.10336 0.77661,-3.22074 -0.0881,-4.26263 -0.64453,-0.77661 -1.27588,-2.73417 -1.40301,-4.35013 -0.20104,-2.55568 0.005,-2.81171 1.58335,-1.96703 1.67218,0.89492 1.62635,0.2873 -0.58446,-7.74826 -1.45535,-5.28974 -3.16897,-9.32112 -4.35668,-10.24931 -1.07676,-0.84148 -2.1558,-2.65497 -2.39785,-4.02997 -0.40615,-2.30716 -0.45829,-2.26859 -0.67596,0.5 -0.23178,2.94803 -0.24862,2.95669 -0.97245,0.5 -0.54301,-1.84301 -0.22384,-2.99825 1.21455,-4.39597 1.75609,-1.70645 1.78971,-1.9863 0.33626,-2.79969 -0.88817,-0.49704 -1.67872,-1.66886 -1.75677,-2.60403 -0.078,-0.93517 -0.46419,0.0997 -0.85809,2.29969 -0.5953,3.32482 -0.74014,2.69184 -0.8581,-3.75 -0.0823,-4.49358 0.27008,-7.75 0.83857,-7.75 0.53926,0 0.82394,1.34443 0.63261,2.98762 -0.68476,5.88119 4.84573,6.41407 5.94162,0.57248 1.40134,-7.46975 0.86005,-24.06298 -1.12737,-34.5601 -0.42532,-2.24645 -0.37907,-2.28862 0.45609,-0.41585 0.51118,1.14628 1.46311,5.64628 2.11539,10 0.65228,4.35372 1.85046,10.39085 2.66263,13.41585 0.81217,3.025 1.57974,5.95 1.70571,6.5 0.12597,0.55 0.75406,1.95333 1.39576,3.11852 0.6417,1.16518 0.88255,2.40268 0.53524,2.75 -0.34732,0.34731 -0.10648,0.63148 0.53518,0.63148 0.64167,0 1.07775,0.3375 0.96907,0.75 -0.10867,0.4125 1.47211,4.01275 3.51286,8.00056 4.41229,8.62203 6.33131,15.50598 7.81538,28.03553 1.1598,9.7918 0.35729,26.6335 -1.22256,25.6571 -0.50151,-0.30995 -1.34985,0.58854 -1.8852,1.99664 -0.53536,1.40809 -1.19838,2.56017 -1.47338,2.56017 -0.275,0 -0.0556,-1.16886 0.48755,-2.59746 z m -9.23449,-19.03441 c -0.12342,-3.28307 -0.26456,-3.4568 -1.46955,-1.80887 -1.5691,2.14587 -1.7589,3.82199 -0.33301,2.94074 0.55,-0.33992 1,0.0835 1,0.94098 0,0.85746 0.2113,1.55902 0.46955,1.55902 0.25825,0 0.40811,-1.63434 0.33301,-3.63187 z m 10.38077,-8.5848 c -0.71756,-0.71756 -1.18333,-0.7766 -1.18333,-0.15 0,1.33478 1.18261,2.51739 1.85,1.85 0.28417,-0.28416 -0.0158,-1.04916 -0.66667,-1.7 z m -12.61022,26.47814 c -0.39984,-1.7812 -1.14236,-3.49525 -1.65005,-3.80902 -0.50768,-0.31377 -0.89852,-1.55643 -0.86853,-2.76147 0.0354,-1.42162 0.75081,-0.47466 2.03741,2.69679 1.09058,2.68827 1.80857,5.38827 1.59552,6 -0.21306,0.61173 -0.71451,-0.34511 -1.11435,-2.1263 z m 48.44207,1.17966 c 0.008,-0.51762 0.65325,-2.96613 1.4331,-5.44113 l 1.41793,-4.5 0.0351,3.5 c 0.0193,1.925 -0.6256,4.37351 -1.4331,5.44113 -0.80751,1.06762 -1.46137,1.51762 -1.45302,1 z m -45.21894,-4.50618 c 0.23889,-1.62769 0.75104,-3.15516 1.13811,-3.39438 0.38707,-0.23922 0.5083,0.8968 0.26941,2.52448 -0.23889,1.62769 -0.75104,3.15516 -1.13811,3.39438 -0.38707,0.23922 -0.5083,-0.8968 -0.26941,-2.52448 z m 40.59853,-2.49821 c -0.60885,-2.42583 1.02221,-12.23284 4.06419,-24.43674 0.83777,-3.36097 1.40402,-4.49076 1.45599,-2.90499 0.0468,1.42726 0.98505,3.4095 2.08505,4.40499 2.03098,1.83801 2.84515,5.14037 0.98369,3.98992 -0.55897,-0.34546 -0.79459,-0.98688 -0.52358,-1.42537 0.271,-0.43849 -0.39666,-1.60214 -1.48369,-2.58589 -1.90813,-1.72683 -1.97642,-1.71705 -1.97642,0.28302 0,1.13941 0.47575,2.23024 1.05723,2.42406 0.58147,0.19383 0.75932,1.12874 0.39521,2.07759 -0.3641,0.94885 -1.06486,1.47621 -1.55722,1.17191 -0.96397,-0.59576 -1.16578,1.36022 -0.90979,8.81764 0.1234,3.59488 -0.23853,4.90701 -1.48553,5.38553 -1.15604,0.44362 -1.47136,1.33918 -1.05524,2.99713 0.32639,1.30045 0.36844,2.36446 0.0934,2.36446 -0.275,0 -0.7895,-1.15347 -1.14333,-2.56326 z m -14.03981,-12.93674 c -0.003,-4.95 0.16605,-7.10108 0.37577,-4.78017 0.20972,2.3209 0.21222,6.3709 0.006,9 -0.20667,2.62909 -0.37827,0.73017 -0.38131,-4.21983 z m -11.17011,-10 c -0.11377,-2.75 -0.43853,-6.8 -0.72168,-9 -0.44634,-3.46796 -0.37289,-3.67434 0.55218,-1.5516 0.58684,1.34661 0.9116,5.39661 0.72168,9 -0.30327,5.75389 -0.3705,5.94281 -0.55218,1.5516 z m 36.8941,0.91667 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -60.07895,-4.91667 c 0,-0.825 0.17685,-1.5 0.39301,-1.5 0.21616,0 0.65203,0.675 0.96862,1.5 0.31658,0.825 0.13972,1.5 -0.39301,1.5 -0.53274,0 -0.96862,-0.675 -0.96862,-1.5 z m 61.15789,-0.5 c 0,-1.375 0.22698,-1.9375 0.50439,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50439,0.125 -0.50439,-1.25 z m -26.41892,-2.875 c -0.40643,-1.85625 -0.67511,-5.68125 -0.59706,-8.5 0.14167,-5.11657 0.14293,-5.11842 0.76514,-1.125 l 0.62324,4 1.23486,-4.69282 c 0.67917,-2.58105 1.23449,-5.95605 1.23406,-7.5 -8.5e-4,-3.02126 -5.68335,-15.95637 -6.60491,-15.03481 -0.30599,0.30599 -0.0407,1.51983 0.58953,2.69742 0.63023,1.1776 1.00419,2.54536 0.83102,3.03947 -0.17317,0.49412 -1.06893,-0.88083 -1.99059,-3.05543 -1.34525,-3.17406 -1.40798,-3.95383 -0.31809,-3.95383 1.63979,0 5.16817,4.76737 6.62826,8.95577 1.21929,3.49766 2.45841,3.90243 3.34971,1.09421 0.77412,-2.43904 -1.64743,-7.24666 -4.96416,-9.8556 -1.38599,-1.09022 -2.51998,-2.5584 -2.51998,-3.26261 0,-1.78703 4.84243,2.89985 6.71364,6.49797 l 1.52361,2.92973 1.34594,-2.42973 c 1.79805,-3.24591 1.7511,-2.12459 -0.13374,3.19453 -1.83477,5.17779 -6.18527,23.09375 -6.64759,27.37573 l -0.32391,3 -0.73898,-3.375 z m -36.00776,-1.04484 c -0.43497,-1.66335 -0.30483,-2.05378 0.43724,-1.31171 0.5811,0.5811 0.85979,1.64682 0.61931,2.36826 -0.24964,0.74895 -0.70294,0.29565 -1.05655,-1.05655 z m -3.53626,-1.58016 c 0.0204,-1.65 0.2445,-2.20394 0.49804,-1.23097 0.25354,0.97297 0.23687,2.32297 -0.037,3 -0.27393,0.67703 -0.48137,-0.11903 -0.46099,-1.76903 z m 64.884,0.91667 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -67,-5 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 26.25661,-6.72714 c -1.16529,-3.95424 -2.42358,-8.08953 -2.7962,-9.18953 -0.48918,-1.44408 -0.28094,-1.33697 0.74919,0.38535 l 1.42669,2.38535 0.61884,-2.46566 c 0.34037,-1.35612 0.88252,-4.66218 1.20478,-7.34681 0.58045,-4.83547 0.56716,-4.86416 -1.41978,-3.06599 -1.10315,0.99833 -2.30857,3.19401 -2.67872,4.87929 -0.56254,2.56122 -0.82748,2.78811 -1.61417,1.38237 -0.66272,-1.18421 -0.48037,-2.14258 0.61632,-3.23927 0.85662,-0.85662 1.55749,-1.92359 1.55749,-2.37105 0,-0.44746 1.11873,-1.54658 2.48607,-2.4425 2.31749,-1.51847 2.60816,-1.50684 4.28648,0.17147 1.26255,1.26255 1.59523,2.53635 1.1136,4.26392 -0.67741,2.42987 -0.68815,2.42515 -0.78647,-0.34549 -0.17456,-4.91912 -1.87838,-1.93167 -3.12984,5.48781 -0.94597,5.60836 -0.94612,8.34935 -6.7e-4,12.57405 1.7626,7.87613 0.81997,7.26258 -1.63361,-1.06331 z m 3.99258,-2.18953 c 0.004,-3.85 0.18518,-5.30246 0.40166,-3.2277 0.21647,2.07477 0.21284,5.22477 -0.008,7 -0.22091,1.77524 -0.39803,0.0777 -0.39359,-3.7723 z m 9.75081,-6.08333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 25.93636,-1.66667 c -0.0103,-1.17572 0.72305,-1.72409 2.23469,-1.67105 1.50344,0.0528 1.75229,0.2684 0.75,0.64994 -0.825,0.31405 -1.83061,1.06602 -2.23469,1.67105 -0.45317,0.67854 -0.74055,0.42949 -0.75,-0.64994 z m -98.58657,-5.93539 c 0.2524,-0.92697 0.0937,-1.82697 -0.35273,-2 -0.4464,-0.17304 -1.11461,-1.28982 -1.48491,-2.48173 -0.56747,-1.82659 -0.35008,-2.08261 1.3834,-1.6293 2.85515,0.74664 3.03688,1.36322 1.41371,4.79642 -0.78011,1.65 -1.21186,2.24157 -0.95947,1.31461 z M 530.06751,503.214 c -0.0807,-2.90116 -0.86824,-7.70418 -1.75,-10.67338 -1.94272,-6.54184 -2.00633,-8.61298 -0.13931,-4.53556 1.19094,2.60093 1.38448,2.70936 1.45489,0.8151 0.0447,-1.2017 -0.41834,-3.4517 -1.02891,-5 -1.0315,-2.61568 -1.16819,-2.67342 -1.92972,-0.8151 -0.74185,1.81031 -0.82078,1.76288 -0.83224,-0.5 -0.007,-1.375 0.31197,-4.3 0.70872,-6.5 0.70352,-3.90101 0.76292,-3.78964 2.40003,4.5 1.92599,9.75238 3.27809,28.00395 2.07368,27.99188 -0.44569,-0.004 -0.8764,-2.38179 -0.95714,-5.28294 z m -120.84623,3.27978 c 0.5538,-0.89606 6.38591,-3.03658 7.88489,-2.89394 0.49053,0.0467 1.78416,-1.32442 2.87475,-3.04688 1.09058,-1.72246 2.2127,-2.90192 2.49359,-2.62103 0.90408,0.90407 -2.79431,5.63759 -5.06309,6.48018 -5.55552,2.06324 -8.66761,2.85423 -8.19014,2.08167 z m 69.60414,-2.09983 c -0.61607,-1.76726 -0.94513,-3.38821 -0.73124,-3.60209 0.21389,-0.21389 0.89295,1.05705 1.50902,2.82431 0.61607,1.76726 0.94513,3.38821 0.73124,3.60209 -0.21389,0.21389 -0.89295,-1.05705 -1.50902,-2.82431 z m 83.7358,0.61111 c -0.91968,-1.51721 -0.10855,-6.65105 1.24778,-7.89751 0.90626,-0.83285 1.04906,-0.67449 0.58387,0.64751 -0.3426,0.97364 -0.13176,1.75 0.47527,1.75 0.74743,0 0.77143,0.39369 0.0762,1.25 -0.55816,0.6875 -1.18631,2.15 -1.3959,3.25 -0.20959,1.1 -0.65385,1.55 -0.98724,1 z m 12.61553,-0.56373 c -1.67066,-0.48585 -4.37066,-2.34058 -6,-4.12162 -1.62934,-1.78105 -2.06244,-2.58045 -0.96244,-1.77646 1.1,0.804 2.26033,1.81351 2.57852,2.24336 0.31818,0.42985 2.79318,1.6463 5.5,2.70323 5.02922,1.96374 4.35149,2.54152 -1.11608,0.95149 z m -65.16831,-3.74481 c -2.25695,-7.20537 -2.30559,-7.64766 -0.41852,-3.80558 1.87438,3.81624 1.93024,3.84541 3.11705,1.62783 0.6703,-1.25246 0.94164,-3.65098 0.6093,-5.38588 -0.37323,-1.9484 -0.26975,-2.61623 0.27444,-1.77107 1.16132,1.80362 1.91366,0.41258 2.67835,-4.95214 l 0.62784,-4.40462 -2.63463,3.21276 c -1.44905,1.76702 -4.07763,4.22444 -5.8413,5.46093 -1.76366,1.2365 -2.64806,1.54935 -1.96534,0.69523 0.68273,-0.85412 0.90773,-1.92118 0.5,-2.37125 -0.40772,-0.45008 -0.26079,-0.54528 0.32653,-0.21156 0.58731,0.33372 1.68178,-0.24503 2.43215,-1.28611 0.75037,-1.04108 1.70221,-1.68404 2.1152,-1.4288 0.41299,0.25524 1.55304,-0.89386 2.53345,-2.55356 2.50328,-4.23771 3.29211,-3.76635 2.8991,1.73236 -0.26454,3.70131 -4.57316,17.60874 -5.85128,18.88686 -0.13533,0.13533 -0.76638,-1.4151 -1.40234,-3.4454 z m -50.22367,-0.92711 c -0.0387,-0.67961 0.469,-3.25264 1.12835,-5.71786 1.21207,-4.53179 0.47418,-7.22467 -1.23787,-4.51753 -0.79481,1.25677 -0.93255,1.23313 -0.94563,-0.16233 -0.008,-0.89835 0.88469,-1.86872 1.98469,-2.15638 1.52083,-0.39771 2,-1.36401 2,-4.0333 0,-1.93065 -0.3618,-3.66028 -0.804,-3.84362 -0.44221,-0.18333 -0.22384,-1.45833 0.48525,-2.83333 l 1.28927,-2.5 0.13974,2.75 c 0.0769,1.5125 0.17746,3.3125 0.22356,4 0.20261,3.02175 -1.43017,12.70636 -2.74968,16.30929 -0.79377,2.16739 -1.47492,3.38467 -1.51368,2.70506 z m 36.04554,-4.01435 c 0.0638,-2.0625 0.31249,-3.01082 0.55264,-2.10739 0.29027,1.09196 1.1178,1.46449 2.46854,1.11127 1.55172,-0.40579 1.71651,-0.73127 0.69735,-1.3773 -0.90971,-0.57666 -0.9554,-0.85083 -0.14355,-0.86127 2.03373,-0.0262 2.51157,1.925 0.87278,3.56379 -0.86007,0.86007 -1.56376,1.98161 -1.56376,2.49233 0,0.51071 -0.675,0.92857 -1.5,0.92857 -1.08729,0 -1.46808,-1.03178 -1.384,-3.75 z m -9.18227,-0.5123 c -2.31077,-3.08622 -3.50231,-8.20714 -1.64213,-7.05748 0.48545,0.30002 0.64361,1.45953 0.35147,2.57669 -0.3987,1.52463 -0.24585,1.74587 0.61288,0.88714 1.3627,-1.3627 3.10408,-1.53561 2.29591,-0.22797 -0.31139,0.50385 -0.10036,2.14126 0.46896,3.63869 1.47093,3.86884 0.72186,3.93449 -2.08709,0.18293 z m 5.3996,0.80629 c 0,-0.80081 0.38234,-1.21971 0.84965,-0.9309 0.4673,0.28881 0.59075,0.94401 0.27431,1.45601 -0.80862,1.30838 -1.12396,1.16106 -1.12396,-0.52511 z m -18.10483,-4.93916 c -1.24932,-3.24234 -2.0974,-6.06927 -1.8846,-6.28206 0.21279,-0.2128 0.98442,1.09003 1.71472,2.89517 0.73031,1.80513 1.73025,3.55795 2.2221,3.89515 0.49184,0.3372 0.74239,1.6872 0.55677,3 -0.26428,1.86914 -0.83022,1.10813 -2.60899,-3.50826 z m -46.06183,2.59104 c 0.98567,-2.37782 13.44331,-21.1439 14.05195,-21.16773 1.39871,-0.0548 -0.61111,3.58103 -7.03248,12.72186 -5.75151,8.1873 -8.06733,10.97369 -7.01947,8.44587 z m -1.6103,-2.94587 c 5.5688,-8.5727 8.76483,-13.25 9.05382,-13.25 1.02521,0 -2.29413,6.37842 -6.11019,11.74127 -3.29576,4.63167 -5.80907,5.91984 -2.94363,1.50873 z m 133.34515,-3.51185 c -5.4699,-7.9623 -7.18182,-10.73815 -6.62245,-10.73815 0.67247,0 11.72093,14.44013 11.72093,15.31902 0,1.81963 -1.8327,0.17299 -5.09848,-4.58087 z m -139.82257,-0.32148 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 146.6604,-3.28077 c -1.33949,-2.26757 -1.38988,-2.80257 -0.26401,-2.80257 0.76533,0 1.66837,1.1031 2.00675,2.45134 0.87249,3.47628 0.18511,3.61481 -1.74274,0.35123 z m -137.73935,-1.1359 c 0.5887,-1.1 1.29537,-2 1.57037,-2 0.275,0 0.0183,0.9 -0.57037,2 -0.5887,1.1 -1.29537,2 -1.57037,2 -0.275,0 -0.0183,-0.9 0.57037,-2 z m -3.4581,0 c 0.45983,-0.825 2.50671,-3.975 4.54864,-7 5.60179,-8.29873 9.89567,-17.34595 10.02546,-21.1237 0.0638,-1.85697 0.32286,-2.58329 0.57568,-1.61406 0.26818,1.0281 0.9489,1.46888 1.634,1.05804 0.88281,-0.52939 0.89441,-0.34625 0.0467,0.73776 -0.62018,0.79308 -1.45006,2.56696 -1.84417,3.94196 -0.39411,1.375 -2.23155,5.48014 -4.08319,9.12253 -1.85164,3.6424 -3.04677,6.97704 -2.65583,7.41033 0.39094,0.43328 0.16807,0.4763 -0.49527,0.0956 -0.71817,-0.41218 -1.92855,0.43317 -2.99203,2.08967 -1.99683,3.11034 -6.06682,7.62654 -4.75999,5.28187 z m 45.15405,-1.51563 c -0.35629,-1.6414 -0.93612,-3.99687 -1.28851,-5.23437 -1.18516,-4.162 1.09163,-2.29643 2.71839,2.2274 0.88554,2.46258 1.25792,4.25977 0.82753,3.99377 -0.4304,-0.266 -0.96863,0.0746 -1.19607,0.75697 -0.22745,0.68234 -0.70505,-0.10236 -1.06134,-1.74377 z m -48.62508,0.0156 c 0,-0.55 0.64311,-2.125 1.42913,-3.5 0.78602,-1.375 1.42913,-2.05 1.42913,-1.5 0,0.55 -0.64311,2.125 -1.42913,3.5 -0.78602,1.375 -1.42913,2.05 -1.42913,1.5 z m 9.49342,-2.79313 c 0.37553,-0.98622 0.93469,-1.54122 1.24258,-1.23333 0.30789,0.30789 6.4e-4,1.11479 -0.68278,1.79313 -0.98762,0.98026 -1.10248,0.8654 -0.5598,-0.5598 z m 132.51466,-0.2902 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -20.46723,-6.57176 c -1.39094,-3.15172 -2.06067,-6.16352 -1.72335,-7.75 l 0.55174,-2.59491 0.29261,2.5 c 0.49609,4.23855 2.30562,10 3.14075,10 0.43626,0 0.7932,0.675 0.7932,1.5 0,2.53251 -0.68688,1.7107 -3.05495,-3.65509 z m 20.73336,2.61196 c -0.32569,-0.84872 -0.36872,-1.76657 -0.0956,-2.03966 0.27309,-0.2731 0.73656,0.42131 1.02992,1.54313 0.62315,2.38293 -0.0692,2.75089 -0.9343,0.49653 z m -45.84508,-2.45687 c 2.74909,-1.18132 4.32797,-1.18132 2.5,0 -0.825,0.53316 -2.175,0.94464 -3,0.9144 -0.98906,-0.0362 -0.81874,-0.34772 0.5,-0.9144 z m 36.88807,-3.75 c -4.83048,-6.14739 -6.26406,-8.83261 -5.43324,-10.17692 0.54067,-0.87481 0.97062,-0.50626 1.39857,1.19883 0.33985,1.35408 2.20683,4.77184 4.14884,7.59502 4.1405,6.01923 4.08234,6.72367 -0.11417,1.38307 z m -92.38807,1.75 c 0,-0.55 0.47656,-1 1.05902,-1 0.58246,0 0.7809,0.45 0.44098,1 -0.33992,0.55 -0.81648,1 -1.05902,1 -0.24254,0 -0.44098,-0.45 -0.44098,-1 z m 0.079,-3.58333 c 0.048,-1.16495 0.28494,-1.4019 0.60417,-0.60417 0.28887,0.72187 0.25334,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 61.98216,-2.95105 c -2.53022,-8.73182 -2.74219,-10.02848 -1.96436,-12.01642 0.54311,-1.38803 0.78291,-0.71133 0.83296,2.35046 0.0387,2.36481 0.7726,5.65777 1.63097,7.31768 0.85838,1.65992 1.42088,3.9846 1.25,5.16597 -0.21008,1.45239 -0.77662,0.53997 -1.74957,-2.81769 z m 35.05451,-0.5638 c -0.61359,-1.76015 -1.08391,-3.69562 -1.04516,-4.30104 0.0388,-0.60543 0.71555,0.65993 1.50398,2.81191 0.78843,2.15198 1.25875,4.08745 1.04516,4.30105 -0.2136,0.21359 -0.89039,-1.05177 -1.50398,-2.81192 z m -130.39788,0.45049 c -0.72222,-1.16859 0.47602,-6.1445 2.17418,-9.02858 0.84781,-1.4399 0.9376,-1.08711 0.42661,1.67627 -1.15996,6.273 -1.92725,8.44211 -2.60079,7.35231 z m 34.90784,-2.35231 c 0.62324,-3.58742 1.09563,-4.64993 1.74134,-3.91667 0.2018,0.22917 -0.24426,1.99167 -0.99124,3.91667 l -1.35816,3.5 0.60806,-3.5 z m 35.18692,2.31689 c 0.72187,-0.28887 1.58437,-0.25335 1.91667,0.0789 0.33229,0.33229 -0.25834,0.56864 -1.3125,0.52522 -1.16495,-0.048 -1.4019,-0.28494 -0.60417,-0.60416 z m -18,-2 c 0.72187,-0.28887 1.58437,-0.25335 1.91667,0.0789 0.33229,0.33229 -0.25834,0.56864 -1.3125,0.52522 -1.16495,-0.048 -1.4019,-0.28494 -0.60417,-0.60416 z m 61.33733,-2.50787 c -0.20184,-3.62509 1.18055,-4.2374 3.46652,-1.53544 l 1.88365,2.22642 -2.17516,-1.83726 c -2.14929,-1.81541 -2.18021,-1.80352 -2.60017,1 l -0.42501,2.83726 -0.14983,-2.69098 z m -7.19567,-1.89467 c -0.61391,-1.1471 -0.92784,-2.274 -0.69762,-2.50422 0.23022,-0.23022 0.93203,0.70832 1.55958,2.08564 1.37807,3.02454 0.70709,3.35038 -0.86196,0.41858 z m -69.95416,-2.89335 c 0,-3.86312 -4.27735,-14.93293 -6.62069,-17.13438 l -2.37931,-2.23525 0,2.56733 c 0,1.41203 -0.68541,2.83034 -1.52314,3.15181 -1.21429,0.46596 -1.32281,0.21016 -0.53518,-1.26153 0.54337,-1.01531 0.77676,-2.05721 0.51863,-2.31534 -0.25813,-0.25813 -0.0271,-1.7798 0.51338,-3.38148 0.5405,-1.60169 1.16144,-4.48716 1.37989,-6.41216 0.21844,-1.925 0.74388,-4.80462 1.16764,-6.39915 0.60009,-2.25806 0.48225,-2.72103 -0.5329,-2.09363 -0.967,0.59764 -1.15784,0.24902 -0.73946,-1.35085 0.40636,-1.55392 0.10114,-2.17601 -1.09248,-2.22666 -1.33096,-0.0565 -1.27649,-0.21905 0.27724,-0.82749 1.32926,-0.52054 1.56368,-0.98586 0.75,-1.48873 -0.65099,-0.40234 -1.70315,-0.41044 -2.33813,-0.018 -0.7153,0.44208 -0.88306,0.27431 -0.44098,-0.44099 1.11546,-1.80486 -1.93561,-1.37071 -4.1849,0.59549 -1.10109,0.9625 -2.77682,4 -3.72385,6.75 -2.1668,6.29193 -3.01462,22.55206 -1.23483,23.68242 0.87512,0.55581 0.72505,0.79145 -0.51093,0.80227 -1.50863,0.0132 -1.75,-0.99398 -1.75,-7.30232 0,-4.02469 0.85271,-10.56555 1.89492,-14.53524 1.47415,-5.6149 1.58517,-6.96053 0.5,-6.05992 -0.89167,0.74002 -1.39492,0.78215 -1.39492,0.11679 0,-0.57248 1.56762,-2.00972 3.4836,-3.19387 1.91599,-1.18414 4.33969,-3.24131 5.386,-4.57149 1.78721,-2.27206 1.933,-2.30151 2.40771,-0.48621 0.27792,1.06277 2.87462,3.39015 5.77044,5.17197 4.12103,2.53569 4.88413,3.37332 3.51174,3.85473 -1.43313,0.50272 -1.50737,0.80958 -0.40644,1.68008 0.74082,0.58576 2.55457,1.35314 4.03056,1.70529 1.47598,0.35215 3.6902,2.1017 4.92049,3.88789 l 2.23689,3.24761 -2.99577,-2.7697 c -2.86278,-2.64674 -9.16636,-5.24249 -10.20609,-4.20277 -0.67051,0.67052 4.9664,6.47052 6.29796,6.48017 0.5846,0.004 2.12266,1.91674 3.4179,4.25 l 2.355,4.2423 -3.12611,-3.68729 c -2.39769,-2.82812 -7.99164,-6.81271 -9.56433,-6.81271 -0.0952,0 0.0259,1.35639 0.26923,3.01421 0.27001,1.83974 1.55079,3.80346 3.28703,5.03977 1.56455,1.11406 3.83927,3.47017 5.05491,5.23579 l 2.21027,3.21023 -3.17049,-2.93709 c -1.74378,-1.6154 -3.1705,-2.54189 -3.1705,-2.05887 0,0.48302 -0.66069,0.005 -1.4682,-1.06291 -2.67269,-3.53362 -1.58527,-0.5779 1.39055,3.77963 1.60729,2.35358 3.19543,5.40424 3.5292,6.77924 0.33377,1.375 -0.52418,0.39345 -1.90656,-2.18123 -2.18049,-4.06114 -4.54499,-6.90874 -4.54499,-5.47358 0,0.25478 1.12186,3.76884 2.49303,7.80902 2.73675,8.06394 3.00948,9.84579 1.50697,9.84579 -0.55,0 -1,-0.89055 -1,-1.979 z m 71.43452,-0.12695 c -0.47331,-0.76584 -0.32088,-0.94185 0.41943,-0.48431 0.69957,0.43235 1.5328,-0.20339 2.09112,-1.5955 0.61096,-1.52335 0.94982,-1.75803 0.99154,-0.68668 0.0896,2.30097 -2.51713,4.36018 -3.50209,2.76649 z m -88.42395,-1.38132 c -0.67888,-0.81799 -0.9731,-2.16799 -0.65383,-3 0.63525,-1.65544 3.64326,-2.10468 3.64326,-0.54411 0,0.53273 -0.675,0.70959 -1.5,0.39301 -1.81355,-0.69593 -2.02386,1.7145 -0.3,3.43837 0.66,0.66 0.9401,1.2 0.62244,1.2 -0.31765,0 -1.133,-0.66927 -1.81187,-1.48727 z m 70.94371,-6.42217 c 1.64069,-3.25019 4.12217,-7.58798 5.5144,-9.63954 4.38034,-6.4548 2.67234,-6.20072 -3.6904,0.54898 -4.20949,4.46549 -5.23386,5.24799 -3.27273,2.5 1.57005,-2.2 4.28882,-5.62264 6.04171,-7.60586 2.73355,-3.09272 3.19408,-4.38433 3.23624,-9.07636 0.0614,-6.82836 -0.76988,-8.43062 -3.59058,-6.92102 -1.13379,0.60678 -2.87852,1.08349 -3.87718,1.05935 -0.99866,-0.0241 -0.0856,-0.66078 2.02907,-1.41476 2.11465,-0.75397 5.03965,-2.42172 6.5,-3.70611 1.46036,-1.28438 2.86716,-2.47221 3.12623,-2.63961 0.25907,-0.16741 -0.19093,-0.75939 -1,-1.31551 -1.11702,-0.7678 -0.92956,-0.85882 0.77896,-0.37824 1.2375,0.34809 2.25,0.32559 2.25,-0.05 0,-1.12219 -8.68369,-13.73208 -11.54669,-16.76735 -1.46062,-1.54851 -2.41601,-3.05516 -2.12307,-3.34809 0.29294,-0.29294 3.26559,3.22403 6.6059,7.81548 7.97252,10.9587 12.76476,16.61765 15.15649,17.89767 1.74629,0.93458 1.92226,0.72885 1.71402,-2.00404 -0.12764,-1.67505 -0.58635,-3.04554 -1.01936,-3.04554 -0.43301,0 -0.78729,-0.47656 -0.78729,-1.05902 0,-0.58246 0.46804,-0.76975 1.04008,-0.41621 1.21642,0.75179 0.20773,-4.357 -1.21971,-6.17752 -0.56015,-0.71442 -0.4795,-1.29421 0.21209,-1.52474 1.15444,-0.38481 -2.02653,-9.77682 -4.36148,-12.87752 -0.64404,-0.85525 5e-5,-0.27687 1.4313,1.28529 3.25958,3.5577 4.58722,8.08861 5.35338,18.26972 0.33111,4.4 0.80202,10.475 1.04646,13.5 0.42662,5.27949 0.3899,5.38122 -0.91584,2.53732 -0.74816,-1.62947 -1.1635,-3.47549 -0.92299,-4.10225 0.59193,-1.54254 -6.25664,-7.43507 -8.64138,-7.43507 -3.4247,0 -4.76605,3.40614 -4.33462,11.00702 0.21784,3.83779 1.03235,8.78121 1.81003,10.98539 1.40164,3.97266 1.39256,4.00759 -1.04168,4.00759 -1.3506,0 -2.45772,0.1125 -2.46027,0.25 -0.0293,1.58018 -4.95842,11.71138 -4.98695,10.25 -0.0324,-1.6597 -0.20398,-1.74478 -1.00842,-0.5 -0.86167,1.33333 -0.97599,1.33333 -1.02888,0 -0.0327,-0.825 -0.95037,0.1875 -2.03921,2.25 -3.23569,6.12916 -3.21629,4.25632 0.0224,-2.15944 z m 14.48297,0.17523 c 0.0866,-1.77882 -0.26885,-3.37632 -0.78989,-3.55 -0.52105,-0.17369 -0.76736,-0.81414 -0.54736,-1.42323 0.22,-0.6091 1.26438,0.05 2.32085,1.4646 1.05646,1.41463 1.42311,2.26444 0.81477,1.88846 -0.6795,-0.41995 -1.26993,0.38431 -1.53095,2.0854 -0.3453,2.25034 -0.39539,2.1632 -0.26742,-0.46523 z m 13.7577,1.23421 c 0.0204,-1.65 0.2445,-2.20394 0.49804,-1.23097 0.25354,0.97297 0.23687,2.32297 -0.0371,3 -0.27393,0.67703 -0.48137,-0.11903 -0.46099,-1.76903 z m 6.40238,0.82536 c -0.87822,-2.73897 -5.58175,-7.89766 -5.68114,-6.2309 -0.15297,2.5655 -2.78877,-10.5389 -2.73437,-13.59446 0.0371,-2.08063 0.29471,-1.57031 0.84077,1.66522 0.43305,2.56587 2.69024,7.86825 5.01599,11.78306 2.32575,3.91481 3.9846,7.36188 3.68633,7.66014 -0.29826,0.29827 -0.80567,-0.27911 -1.12758,-1.28306 z M 446.78464,444.9217 c 0.0893,-2.435 1.76231,-6.46547 1.85943,-4.47958 0.0471,0.96331 1.11873,0.46879 3.25048,-1.5 2.91965,-2.69647 2.86106,-2.52746 -0.71515,2.06291 -2.14244,2.75 -4.02353,5.1875 -4.18019,5.41667 -0.15667,0.22916 -0.25322,-0.44584 -0.21457,-1.5 z m 8.08762,-1.41667 c 0,-1.375 0.22697,-1.9375 0.50438,-1.25 0.27741,0.6875 0.27741,1.8125 0,2.5 -0.27741,0.6875 -0.50438,0.125 -0.50438,-1.25 z m -15.84779,-0.43148 c -0.65444,-0.74548 -0.93977,-1.60552 -0.63408,-1.91122 0.3057,-0.30569 0.90758,-2.04114 1.33753,-3.85655 0.70987,-2.99737 0.79113,-2.81822 0.88408,1.94925 0.11249,5.76942 0.11655,5.75964 -1.58753,3.81852 z m 96.09488,-4.81852 -1.90499,-2.25 2.25,1.90499 c 1.2375,1.04774 2.25,2.06024 2.25,2.25 0,0.80025 -0.80479,0.20945 -2.59501,-1.90499 z m 9.67396,-2.33333 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72187 0.25335,1.58437 -0.0789,1.91667 -0.3323,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m -103.847,-6.41664 c 0,-1.925 0.2058,-2.7125 0.45733,-1.75 0.25152,0.9625 0.25152,2.5375 0,3.5 -0.25153,0.9625 -0.45733,0.175 -0.45733,-1.75 z m 76.8144,-0.6496 c 0.72011,-1.18227 2.81952,-2.86977 4.66537,-3.75 4.38126,-2.08927 5.06992,-2.02031 2.7132,0.27172 -1.05874,1.02967 -2.29578,1.65752 -2.749,1.39523 -0.45321,-0.26229 -1.97486,0.58276 -3.38144,1.87788 -2.38361,2.19473 -2.46844,2.20868 -1.24813,0.20517 z m 0.0416,-7.95638 c 0.63631,-0.76671 1.9017,-1.39402 2.81198,-1.39402 0.91028,0 2.76768,-0.74163 4.12755,-1.64807 2.37542,-1.58336 2.40591,-1.57706 0.7764,0.16039 -2.14811,2.29041 -9.50575,5.0383 -7.71593,2.8817 z m -2.27546,-4.07713 c 0.72187,-0.28887 1.58437,-0.25335 1.91667,0.0789 0.33229,0.3323 -0.25834,0.56864 -1.3125,0.52522 -1.16495,-0.048 -1.4019,-0.28494 -0.60417,-0.60416 z m -71.81254,-14.89794 c 0,-5.74935 1.91701,-12.41895 3.56952,-12.41895 0.91716,0 -0.029,3.45714 -1.31952,4.82143 -1.40307,1.48324 -1.70039,5.17857 -0.41667,5.17857 0.45834,0 0.83334,0.6552 0.83334,1.45601 0,0.80081 -0.37636,1.22341 -0.83635,0.93912 -0.95674,-0.59129 -0.63148,2.53009 0.44287,4.25009 0.39343,0.62986 0.0429,1.40324 -0.77893,1.71861 -1.2315,0.47257 -1.49426,-0.57283 -1.49426,-5.94488 z m 6,-15.91895 c 1.29174,-1.375 2.57363,-2.5 2.84863,-2.5 0.275,0 -0.55689,1.125 -1.84863,2.5 -1.29175,1.375 -2.57363,2.5 -2.84863,2.5 -0.275,0 0.55688,-1.125 1.84863,-2.5 z m 41,0.77084 c 0,-0.12604 -1.35,-4.90122 -3,-10.61153 -1.65,-5.7103 -3,-10.68551 -3,-11.05602 0,-0.37051 0.9,-0.19199 2,0.39671 2.95125,1.57946 2.43296,0.69622 -1.14274,-1.94741 -1.72851,-1.27795 -2.82695,-1.81257 -2.44099,-1.18806 0.38597,0.62451 0.16252,1.13547 -0.49654,1.13547 -1.87478,0 -0.45407,8.73473 2.51131,15.43999 3.09014,6.98736 3.09006,6.98661 0.54128,4.80428 -1.11523,-0.95489 -2.50339,-3.50279 -3.08481,-5.66201 -0.78518,-2.91596 -1.28861,-3.56011 -1.957,-2.50406 -0.49494,0.78199 -0.90678,2.2093 -0.9152,3.1718 -0.0105,1.19592 -0.80686,1.75 -2.51531,1.75 -3.15958,0 -3.15877,-1.03249 0.003,-4.00294 1.37672,-1.29337 2.43075,-2.83431 2.34228,-3.42432 -0.0885,-0.59001 0.16068,-1.80138 0.55367,-2.69194 0.39298,-0.89056 0.57645,-4.04056 0.40771,-7 -0.26492,-4.64643 0.0344,-5.71266 2.19321,-7.81241 2.25237,-2.19075 3.64493,-6.0848 2.11124,-5.90372 -1.86515,0.22022 -2.96585,-0.34341 -3.52715,-1.80611 -0.47128,-1.22816 -0.30938,-1.3877 0.64302,-0.63364 0.88846,0.70344 2.14063,0.47107 4.14609,-0.7694 l 2.8732,-1.77722 -3.26665,0.16085 c -1.94391,0.0957 -3.38065,-0.35542 -3.5482,-1.11415 -0.15485,-0.70125 -0.0746,-0.87915 0.17833,-0.39534 0.53306,1.01962 5.17665,0.32476 5.92535,-0.88667 0.27812,-0.45001 -1.28069,-0.79354 -3.46402,-0.76341 -2.77458,0.0383 -4.11583,0.54636 -4.4551,1.6876 -0.26697,0.89805 -0.40231,0.55939 -0.30076,-0.75258 0.22517,-2.90893 4.09626,-5.87565 5.24386,-4.01879 0.4775,0.77262 0.33053,0.95408 -0.4047,0.49968 -0.63495,-0.39244 -1.15448,-0.23697 -1.15448,0.34549 0,1.3786 2.72663,1.37914 3.18613,6.3e-4 0.19935,-0.59804 3.7463,-1.1521 8.15485,-1.27384 4.29113,-0.1185 7.31987,-0.0547 6.73054,0.14172 -1.6112,0.53707 -1.28777,2.19051 0.42848,2.19051 0.825,0 1.5,-0.43588 1.5,-0.96862 0,-0.53273 0.675,-0.70959 1.5,-0.39301 0.825,0.31659 1.5,1.09113 1.5,1.72121 0,0.74199 -1.81198,1.06491 -5.1431,0.91658 -4.95326,-0.22057 -6.30565,0.35672 -2.29618,0.98016 1.0666,0.16585 2.50178,0.65258 3.18928,1.08163 0.6875,0.42905 1.76953,0.459 2.40451,0.0666 0.74696,-0.46165 0.88166,-0.27206 0.38158,0.5371 -0.43803,0.70875 -1.9986,1.07074 -3.6017,0.83545 -1.55582,-0.22834 -2.60097,-0.0466 -2.32256,0.40388 0.27841,0.45048 1.15465,0.81906 1.94719,0.81906 0.79254,0 1.44098,0.51974 1.44098,1.15499 0,0.64405 0.96476,0.31227 2.18088,-0.75 l 2.18088,-1.90499 -1.70014,2.5 c -0.93507,1.375 -2.20383,2.5 -2.81946,2.5 -0.61563,0 -1.23643,1.35 -1.37957,3 -0.14313,1.65 -0.037,2.41872 0.23583,1.70826 0.40541,-1.05565 0.78437,-1.05565 2.07347,0 1.26557,1.03638 1.22289,0.69868 -0.21591,-1.70826 l -1.79332,-3 2.09643,2.5 c 1.15304,1.375 2.13807,2.95 2.18896,3.5 0.0509,0.55 0.45276,0.1 0.89305,-1 0.44029,-1.1 0.5756,2.08597 0.3007,7.07993 l -0.49982,9.07993 9.37901,4.1503 c 5.15846,2.28267 8.6475,4.1592 7.75344,4.17007 -0.89406,0.0109 -4.16939,-1.10523 -7.27851,-2.48023 -7.51296,-3.32259 -9.74057,-3.34733 -6.66547,-0.074 2.35693,2.50883 2.09366,4.57403 -0.58309,4.57403 -0.84403,0 -1.77477,-0.9184 -2.0683,-2.04089 -0.73567,-2.81319 -2.64714,-1.90339 -3.41075,1.62339 -0.34742,1.60462 -0.72163,2.2425 -0.83157,1.4175 -0.10994,-0.825 -0.83947,-0.0375 -1.62118,1.75 -0.78171,1.7875 -1.63387,3.25 -1.89368,3.25 -0.58788,0 0.53731,-2.90537 3.8728,-10 2.42296,-5.15368 3.79777,-15.72355 1.74942,-13.45 -1.18914,1.31987 -4.77467,10.85265 -6.5634,17.45 -1.3925,5.13589 -1.69278,5.5 -4.53596,5.5 -1.67461,0 -3.04474,-0.10312 -3.04474,-0.22916 z m 1.46978,-14.18973 c -0.4585,-3.15103 -0.90066,-4.01179 -1.54107,-3 -1.07717,1.70183 -1.1899,7.39152 -0.23861,12.04389 l 0.69009,3.375 0.86629,-4 c 0.47646,-2.2 0.57694,-5.9885 0.2233,-8.4189 z m 4.90421,4.10884 c -0.34615,-3.12947 -1.06339,-6.13995 -1.59386,-6.68995 -0.62132,-0.64418 -0.76246,0.95699 -0.39667,4.5 0.3123,3.025 0.60602,6.29723 0.6527,7.27161 0.0467,0.97439 0.5084,1.50987 1.02604,1.18995 0.53288,-0.32934 0.66814,-3.04997 0.31179,-6.27161 z m 7.62601,-16.19903 c 0,-1.03009 -0.52647,-2.19826 -1.16994,-2.59595 -0.80757,-0.4991 -0.9528,-0.15722 -0.4689,1.10381 0.4852,1.26443 -0.15519,2.75284 -2.08006,4.83454 l -2.7811,3.00768 3.25,-2.2386 c 1.7875,-1.23122 3.25,-3.08139 3.25,-4.11148 z m -9.76008,3.65736 c 0.64585,0.39915 0.7759,0.18633 0.3285,-0.53758 -0.40733,-0.65907 -0.13936,-1.95833 0.59549,-2.88724 1.24425,-1.57284 1.16424,-1.58051 -1.16391,-0.11153 -2.72966,1.72231 -6.40111,1.4498 -3.86315,-0.28674 1.02331,-0.70017 0.86454,-0.85356 -0.63685,-0.61525 -2.30655,0.36611 -2.75091,3.29006 -0.5,3.29006 0.825,0 1.91635,0.66344 2.42523,1.47432 0.67488,1.0754 1.03621,1.14136 1.33541,0.24377 0.2256,-0.6768 0.89127,-0.93322 1.47928,-0.56981 z m 4.22145,-3.52025 c -1.00443,-1.00443 -3.36206,0.96719 -2.82624,2.36351 0.5293,1.37934 0.75726,1.3541 1.90138,-0.21058 0.71498,-0.9778 1.13117,-1.94662 0.92486,-2.15293 z m -13.34887,-1.41553 c -0.81667,-0.81667 -1.1125,-0.70476 -1.1125,0.42083 0,1.98786 1.3447,3.33256 1.84167,1.84167 0.21083,-0.6325 -0.1173,-1.65063 -0.72917,-2.2625 z m 16.34479,1.3566 c 0.31644,-0.512 0.11799,-1.21355 -0.44098,-1.55902 -0.55897,-0.34546 -1.01631,0.0734 -1.01631,0.9309 0,1.75653 0.60006,2.01516 1.45729,0.62812 z m -18.77418,-2.2566 c -0.31922,-0.79773 -0.55618,-0.56078 -0.60416,0.60417 -0.0434,1.05416 0.19292,1.64479 0.52522,1.3125 0.33229,-0.3323 0.36781,-1.19479 0.0789,-1.91667 z m 16.04045,-0.79281 c 0.082,-1.08917 -0.27953,-2.24526 -0.8035,-2.5691 -0.52398,-0.32383 -0.65081,-1.07722 -0.28186,-1.6742 0.42963,-0.69516 0.19794,-0.79315 -0.64441,-0.27256 -0.72337,0.44707 -3.1554,0.8541 -5.4045,0.90451 -3.41485,0.0765 -4.14082,0.45377 -4.40171,2.28724 -0.28279,1.98738 0.19132,2.2306 5,2.56501 2.92183,0.2032 5.55416,0.45269 5.84962,0.55443 0.29545,0.10174 0.60432,-0.70616 0.68636,-1.79533 z m -7.45453,-0.71268 c 0.97297,-0.25354 2.32297,-0.23687 3,0.0371 0.67703,0.27393 -0.11903,0.48137 -1.76903,0.46099 -1.65,-0.0204 -2.20394,-0.2445 -1.23097,-0.49804 z m 4.85492,-7.35877 c -0.20683,-0.79653 -0.50188,-2.43503 -0.65567,-3.64111 -0.84751,-6.64635 -4.25823,-5.34803 -5.8849,2.24013 -0.64012,2.98608 -0.57723,3.04528 3.13169,2.94824 2.78051,-0.0727 3.68514,-0.48334 3.40888,-1.54726 z m -30.04062,28.68721 c 0.22917,-0.2005 1.54167,-0.90032 2.91667,-1.55516 2.35727,-1.12265 2.38918,-1.10183 0.55887,0.36454 -1.593,1.27626 -4.84786,2.39128 -3.47554,1.19062 z m 11.91667,-23.63545 c 0,-1.86667 0.26667,-2.13333 1.2,-1.2 0.93333,0.93333 0.93333,1.46667 0,2.4 -0.93333,0.93333 -1.2,0.66667 -1.2,-1.2 z m 4.5,-2 c -0.33992,-0.55 -0.14148,-1 0.44098,-1 0.58246,0 1.05902,0.45 1.05902,1 0,0.55 -0.19844,1 -0.44098,1 -0.24254,0 -0.7191,-0.45 -1.05902,-1 z m -5.22764,-5 c 0,-2.475 0.19502,-3.4875 0.43337,-2.25 0.23836,1.2375 0.23836,3.2625 0,4.5 -0.23835,1.2375 -0.43337,0.225 -0.43337,-2.25 z m -1.27236,-10.5 c 0,-2.65833 0.29799,-4.53534 0.6622,-4.17113 0.76192,0.76191 0.64989,7.69238 -0.13707,8.47933 -0.28882,0.28882 -0.52513,-1.64987 -0.52513,-4.3082 z m 15.02764,-2.9667 c -1.0901,-1.31348 -0.88463,-1.5333 1.43325,-1.5333 1.64422,0 2.55048,0.46589 2.30994,1.1875 -0.6213,1.86392 -2.35068,2.02368 -3.74319,0.3458 z m -10.94869,-2.11663 c 0.048,-1.16495 0.28494,-1.4019 0.60416,-0.60417 0.28887,0.72188 0.25335,1.58438 -0.0789,1.91667 -0.33229,0.33229 -0.56864,-0.25834 -0.52522,-1.3125 z m 23.37993,-2.4832 c -0.36253,-0.58659 -0.44468,-1.281 -0.18255,-1.54313 0.26212,-0.26213 0.74306,0.21781 1.06875,1.06653 0.67618,1.76211 0.0999,2.07206 -0.8862,0.4766 z"
- id="path3016"
- inkscape:connector-curvature="0" />
- </g>
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/secondary/muscle-1.svg b/wger/core/static/react/muscles/secondary/muscle-1.svg
deleted file mode 100644
index ad611f823..000000000
--- a/wger/core/static/react/muscles/secondary/muscle-1.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="362"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="Muscular_system-small.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.979899"
- inkscape:cx="155.35481"
- inkscape:cy="205.55431"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="954"
- inkscape:window-height="767"
- inkscape:window-x="714"
- inkscape:window-y="135"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-323.50506)">
- <path
- sodipodi:nodetypes="caazccsc"
- inkscape:connector-curvature="0"
- id="path2992"
- d="m 531.54658,419.32035 c -1.66702,1.72091 -1.36035,8.07119 -0.96047,12.0961 0.48201,4.85145 1.48196,9.89493 4.00392,14.0673 1.93253,3.19721 5.88888,6.82248 8.11807,7.72711 2.22918,0.90463 3.49786,-6.77307 2.98965,-9.2699 -0.0486,-4.08929 0.0901,-8.62941 -0.70841,-14.0304 -0.85269,-5.60328 -2.91091,-8.13876 -5.79988,-10.75663 -1.88829,-1.7111 -6.11492,-2.96833 -7.64288,0.16642 z"
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none" />
- <path
- sodipodi:nodetypes="caazccsc"
- inkscape:connector-curvature="0"
- id="path2992-9"
- d="m 456.65005,420.35548 c 1.66702,1.72091 1.36035,8.07119 0.96047,12.0961 -0.48201,4.85145 -1.48196,9.89493 -4.00392,14.0673 -1.93253,3.19721 -5.88888,6.82248 -8.11807,7.72711 -2.22918,0.90463 -3.49786,-6.77307 -2.98965,-9.2699 0.0486,-4.08929 -0.0901,-8.62941 0.70841,-14.0304 0.85269,-5.60328 2.91091,-8.13876 5.79988,-10.75663 1.88829,-1.7111 6.11492,-2.96833 7.64288,0.16642 z"
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/secondary/muscle-10.svg b/wger/core/static/react/muscles/secondary/muscle-10.svg
deleted file mode 100644
index 8c2f2be6d..000000000
--- a/wger/core/static/react/muscles/secondary/muscle-10.svg
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_front.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.979899"
- inkscape:cx="180.17271"
- inkscape:cy="118.17094"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="910"
- inkscape:window-height="624"
- inkscape:window-x="169"
- inkscape:window-y="137"
- inkscape:window-maximized="0"
- height="524.41px" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-316.50506)">
- <path
- sodipodi:nodetypes="cssszacsc"
- inkscape:connector-curvature="0"
- id="path2992"
- d="m 520.2455,501.96347 c -1.66702,1.72091 -9.04566,17.0447 -10.99886,26.3645 -2.03299,9.70052 -5.11378,23.09955 -4.48703,30.75514 0.18671,2.28058 1.71644,5.12395 3.81899,6.48252 4.03864,2.60959 11.57099,-3.7841 13.04257,-6.16247 1.47158,-2.37837 2.99174,-8.38181 4.12606,-12.67917 1.95283,-7.39828 5.39338,-17.08945 4.5949,-22.49044 -3.88315,-2.57282 -5.35165,-3.5051 -6.55749,-6.96854 -1.58244,-4.54509 -3.337,-15.59524 -3.53914,-15.30154 z"
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none" />
- <path
- sodipodi:nodetypes="cssszacsc"
- inkscape:connector-curvature="0"
- id="path2992-4"
- d="m 469.80904,501.37145 c 1.66702,1.72091 9.04566,17.0447 10.99886,26.3645 2.03299,9.70052 5.11378,23.09955 4.48703,30.75514 -0.18671,2.28058 -1.71644,5.12395 -3.81899,6.48252 -4.03864,2.60959 -11.57099,-3.7841 -13.04257,-6.16247 -1.47158,-2.37837 -2.99174,-8.38181 -4.12606,-12.67917 -1.95283,-7.39828 -5.39338,-17.08945 -4.5949,-22.49044 3.88315,-2.57282 5.35165,-3.5051 6.55749,-6.96854 1.58244,-4.54509 3.337,-15.59524 3.53914,-15.30154 z"
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/secondary/muscle-11.svg b/wger/core/static/react/muscles/secondary/muscle-11.svg
deleted file mode 100644
index 17ca9d73f..000000000
--- a/wger/core/static/react/muscles/secondary/muscle-11.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369.03"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_back.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="0.9899495"
- inkscape:cx="12.249371"
- inkscape:cy="222.62521"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="663"
- inkscape:window-height="739"
- inkscape:window-x="902"
- inkscape:window-y="63"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-54.28571,-335.71492)">
- <path
- sodipodi:nodetypes="cssszaasc"
- inkscape:connector-curvature="0"
- id="path2992"
- d="m 130.51664,546.66621 c -1.66702,1.72091 -0.65329,16.56398 -1.14987,25.85942 -0.5571,10.42819 0.18952,12.74549 -0.9515,20.90616 -0.31685,2.26616 -0.30386,10.17471 -0.34789,13.55358 -0.0626,4.80798 2.35335,-0.5011 3.82493,-2.87947 1.47158,-2.37837 2.69818,-7.33515 3.36845,-11.16394 1.27278,-7.27057 1.14177,-14.73063 1.18563,-22.11163 0.0476,-8.01178 0.20419,-20.55143 -1.00165,-24.01487 -1.58244,-4.54509 -4.72596,-0.44295 -4.9281,-0.14925 z"
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none" />
- <path
- sodipodi:nodetypes="cssszaasc"
- inkscape:connector-curvature="0"
- id="path2992-7"
- d="m 178.26043,546.55155 c 1.66702,1.72091 0.65329,16.56398 1.14987,25.85942 0.5571,10.42819 -0.18952,12.74549 0.9515,20.90616 0.31685,2.26616 0.30386,10.17471 0.34789,13.55358 0.0626,4.80798 -2.35335,-0.5011 -3.82493,-2.87947 -1.47158,-2.37837 -2.69818,-7.33515 -3.36845,-11.16394 -1.27278,-7.27057 -1.14177,-14.73063 -1.18563,-22.11163 -0.0476,-8.01178 -0.20419,-20.55143 1.00165,-24.01487 1.58244,-4.54509 4.72596,-0.44295 4.9281,-0.14925 z"
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/secondary/muscle-12.svg b/wger/core/static/react/muscles/secondary/muscle-12.svg
deleted file mode 100644
index fa3f89250..000000000
--- a/wger/core/static/react/muscles/secondary/muscle-12.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369.03"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_back.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.4"
- inkscape:cx="107.63794"
- inkscape:cy="278.23728"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="844"
- inkscape:window-height="577"
- inkscape:window-x="392"
- inkscape:window-y="244"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-54.28571,-335.71492)">
- <path
- sodipodi:nodetypes="csscccsc"
- inkscape:connector-curvature="0"
- id="path2992"
- d="m 118.2971,433.23148 c -1.66702,1.72091 -0.41996,16.06091 0.11282,25.35434 0.45305,7.90281 5.37207,13.58301 8.39241,16.86555 2.6401,2.86931 4.24182,4.87141 5.96556,7.99774 6.27792,-6.98998 11.67715,-13.36645 14.51699,-25.40762 1.45421,-8.08311 -1.34647,-9.50395 -9.16844,-22.86925 -6.82053,0.62685 -8.3821,1.67193 -13.12348,0.48133 -4.66777,-1.17211 -3.96834,-2.71579 -6.69586,-2.42209 z"
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none" />
- <path
- sodipodi:nodetypes="csscccsc"
- inkscape:connector-curvature="0"
- id="path2992-7"
- d="m 190.2688,433.68217 c 1.66702,1.72091 0.41996,16.06091 -0.11282,25.35434 -0.45305,7.90281 -5.37207,13.58301 -8.39241,16.86555 -2.6401,2.86931 -4.24182,4.87141 -5.96556,7.99774 -6.27792,-6.98998 -11.67715,-13.36645 -14.51699,-25.40762 -1.45421,-8.08311 1.34647,-9.50395 9.16844,-22.86925 6.82053,0.62685 8.3821,1.67193 13.12348,0.48133 4.66777,-1.17211 3.96834,-2.71579 6.69586,-2.42209 z"
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/secondary/muscle-13.svg b/wger/core/static/react/muscles/secondary/muscle-13.svg
deleted file mode 100644
index 0fb7d7b87..000000000
--- a/wger/core/static/react/muscles/secondary/muscle-13.svg
+++ /dev/null
@@ -1,92 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscle-13.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="0.98994949"
- inkscape:cx="392.27036"
- inkscape:cy="172.33272"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="910"
- inkscape:window-height="624"
- inkscape:window-x="593"
- inkscape:window-y="77"
- inkscape:window-maximized="0"
- height="524.41px" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title />
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-316.50506)">
- <g
- id="g3021">
- <path
- sodipodi:nodetypes="cssc"
- inkscape:connector-curvature="0"
- id="path2992-9-5-6"
- d="m 444.70857,445.05695 c -4.92777,-3.55571 -4.87537,-6.74571 -4.20323,-11.98404 0.70445,-5.49015 0.0274,-6.01827 2.95018,-10.58218 4.34954,-6.79174 -1.87623,-1.26849 1.25305,22.56622 z"
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none;display:inline" />
- <path
- sodipodi:nodetypes="cssc"
- inkscape:connector-curvature="0"
- id="path2992-9-5-6-5"
- d="m 447.66963,445.34485 c 4.92777,-3.55571 8.44247,-5.29361 8.49638,-10.34254 0.0591,-5.53485 0.98278,-6.14454 0.20654,-11.46606 -1.16407,-7.98068 2.50757,8.07542 -8.70292,21.8086 z"
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none;display:inline" />
- </g>
- <g
- transform="matrix(-1,0,0,1,987.71404,-0.61367048)"
- id="g3021-5">
- <path
- sodipodi:nodetypes="cssc"
- inkscape:connector-curvature="0"
- id="path2992-9-5-6-3"
- d="m 444.70857,445.05695 c -4.92777,-3.55571 -4.87537,-6.74571 -4.20323,-11.98404 0.70445,-5.49015 0.0274,-6.01827 2.95018,-10.58218 4.34954,-6.79174 -1.87623,-1.26849 1.25305,22.56622 z"
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none;display:inline" />
- <path
- sodipodi:nodetypes="cssc"
- inkscape:connector-curvature="0"
- id="path2992-9-5-6-5-8"
- d="m 447.66963,445.34485 c 4.92777,-3.55571 8.44247,-5.29361 8.49638,-10.34254 0.0591,-5.53485 0.98278,-6.14454 0.20654,-11.46606 -1.16407,-7.98068 2.50757,8.07542 -8.70292,21.8086 z"
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none;display:inline" />
- </g>
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/secondary/muscle-14.svg b/wger/core/static/react/muscles/secondary/muscle-14.svg
deleted file mode 100644
index ce2259f20..000000000
--- a/wger/core/static/react/muscles/secondary/muscle-14.svg
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscle-14.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="0.98994949"
- inkscape:cx="-33.854548"
- inkscape:cy="118.46731"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="1055"
- inkscape:window-height="624"
- inkscape:window-x="732"
- inkscape:window-y="116"
- inkscape:window-maximized="0"
- height="524.41px" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title />
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-316.50506)">
- <path
- sodipodi:nodetypes="czszaasc"
- inkscape:connector-curvature="0"
- id="path2992"
- d="m 463.34788,436.83405 c -1.66702,1.72091 1.94058,-0.85823 2.08236,15.56356 0.14179,16.4218 -1.53044,1.46344 1.87157,19.37308 1.28332,6.75597 14.52159,23.09571 15.99317,20.71734 1.47158,-2.37837 -3.45627,-13.04831 -4.13155,-19.73537 -0.75251,-7.45179 0.296,-14.98129 0.1142,-22.46877 -0.15118,-6.22636 0.20419,-15.19429 -1.00165,-18.65773 -1.58244,-4.54509 -14.72596,4.91419 -14.9281,5.20789 z"
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none" />
- <path
- sodipodi:nodetypes="czszaasc"
- inkscape:connector-curvature="0"
- id="path2992-3"
- d="m 526.31803,436.83405 c 1.66702,1.72091 -1.94058,-0.85823 -2.08236,15.56356 -0.14179,16.4218 1.53044,1.46344 -1.87157,19.37308 -1.28332,6.75597 -14.52159,23.09571 -15.99317,20.71734 -1.47158,-2.37837 3.45627,-13.04831 4.13155,-19.73537 0.75251,-7.45179 -0.296,-14.98129 -0.1142,-22.46877 0.15118,-6.22636 -0.20419,-15.19429 1.00165,-18.65773 1.58244,-4.54509 14.72596,4.91419 14.9281,5.20789 z"
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/secondary/muscle-15.svg b/wger/core/static/react/muscles/secondary/muscle-15.svg
deleted file mode 100644
index e3dc9e4ca..000000000
--- a/wger/core/static/react/muscles/secondary/muscle-15.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369.03"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscle-15.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="0.7"
- inkscape:cx="196.7602"
- inkscape:cy="37.965661"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="844"
- inkscape:window-height="577"
- inkscape:window-x="867"
- inkscape:window-y="81"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title />
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-54.28571,-335.71492)">
- <path
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none;display:inline"
- d="m 138.64274,667.76525 c 1.92234,6.09379 2.43161,13.69837 2.93313,19.74399 -1.91818,-6.10327 -5.62207,-11.84939 -7.54025,-17.95266 -1.74736,-6.91174 -4.03043,-15.25206 -5.77779,-22.1638 3.16402,6.96939 6.49829,15.35011 10.38491,20.37247 z"
- id="path2992-9-5-1-4"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccc" />
- <path
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none;display:inline"
- d="m 170.38125,667.76525 c -1.92234,6.09379 -2.43161,13.69837 -2.93313,19.74399 1.91818,-6.10327 5.62207,-11.84939 7.54025,-17.95266 1.74736,-6.91174 4.03043,-15.25206 5.77779,-22.1638 -3.16402,6.96939 -6.49829,15.35011 -10.38491,20.37247 z"
- id="path2992-9-5-1-4-3"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccc" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/secondary/muscle-16.svg b/wger/core/static/react/muscles/secondary/muscle-16.svg
deleted file mode 100644
index cf0297a57..000000000
--- a/wger/core/static/react/muscles/secondary/muscle-16.svg
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_back.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.4"
- inkscape:cx="43.443717"
- inkscape:cy="150.28664"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="910"
- inkscape:window-height="624"
- inkscape:window-x="479"
- inkscape:window-y="100"
- inkscape:window-maximized="0"
- height="524.41px" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-316.50506)">
- <path
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none;display:inline"
- d="m 498.36277,434.58481 c -1.55631,1.52025 -0.13048,3.98753 -0.1711,5.9819 -0.052,2.55449 -0.0434,5.10996 -0.093,7.66451 -0.0875,4.50962 -0.22147,9.01828 -0.36082,13.5266 -0.16948,5.48319 0.15327,9.90598 -0.57803,16.44726 -0.95978,8.58488 -1.33969,19.65754 -0.5009,20.05568 1.58892,0.91978 5.5552,-3.03663 7.45027,-5.46433 1.5127,-1.93786 1.48305,-0.70542 2.78771,-6.82793 0.90275,-4.23642 1.43029,-9.25519 1.67209,-9.72652 0.60636,-1.09903 0.9424,-4.81204 1.38902,-9.40737 0.41377,-4.25735 0.28622,-7.00608 0.23245,-10.50979 -0.092,-5.99405 0.0362,-15.57164 -0.94915,-17.95919 -0.0822,-3.20813 -1.11029,-3.60426 -3.2829,-5.17335 -2.55028,-0.64249 -6.11949,-0.63047 -7.5956,1.39249 z"
- id="path2992-9-5"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="caaascascsacccc" />
- <path
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none;display:inline"
- d="m 490.21813,434.48339 c 1.55631,1.52025 0.13048,3.98753 0.1711,5.9819 0.052,2.55449 0.0434,5.10996 0.093,7.66451 0.0875,4.50962 0.22147,9.01828 0.36082,13.5266 0.16948,5.48319 -0.15327,9.90598 0.57803,16.44726 0.95978,8.58488 1.33969,19.65754 0.5009,20.05568 -1.58892,0.91978 -5.5552,-3.03663 -7.45027,-5.46433 -1.5127,-1.93786 -1.48305,-0.70542 -2.78771,-6.82793 -0.90275,-4.23642 -1.43029,-9.25519 -1.67209,-9.72652 -0.60636,-1.09903 -0.9424,-4.81204 -1.38902,-9.40737 -0.41377,-4.25735 -0.28622,-7.00608 -0.23245,-10.50979 0.092,-5.99405 -0.0362,-15.57164 0.94915,-17.95919 0.0822,-3.20813 1.11029,-3.60426 3.2829,-5.17335 2.55028,-0.64249 6.11949,-0.63047 7.5956,1.39249 z"
- id="path2992-9-5-5"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="caaascascsacccc" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/secondary/muscle-2.svg b/wger/core/static/react/muscles/secondary/muscle-2.svg
deleted file mode 100644
index 875c3d71f..000000000
--- a/wger/core/static/react/muscles/secondary/muscle-2.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="362"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="Muscular_system-small.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="0.98994949"
- inkscape:cx="265.81673"
- inkscape:cy="163.65381"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="910"
- inkscape:window-height="624"
- inkscape:window-x="308"
- inkscape:window-y="114"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-323.50506)">
- <path
- sodipodi:nodetypes="caazccac"
- inkscape:connector-curvature="0"
- id="path2992"
- d="m 518.74726,391.26389 c -1.66702,1.72091 4.14667,4.86002 6.04747,7.42414 2.14217,2.88973 3.84239,6.09351 6.02422,8.9534 3.14045,4.11642 7.90919,10.8631 10.13838,11.76773 2.22918,0.90463 2.61397,1.68695 2.10576,-0.80988 -0.0486,-4.08929 0.46888,-10.39718 -0.3296,-15.79817 -0.85269,-5.60328 -4.22913,-9.95851 -8.70407,-12.14559 -4.58031,-2.23858 -15.08002,0.31467 -15.28216,0.60837 z"
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none" />
- <path
- sodipodi:nodetypes="caazccac"
- inkscape:connector-curvature="0"
- id="path2992-1"
- d="m 469.94763,392.44977 c 1.66702,1.72091 -4.14667,4.86002 -6.04747,7.42414 -2.14217,2.88973 -3.84239,6.09351 -6.02421,8.9534 -3.14045,4.11642 -7.9092,10.8631 -10.13838,11.76773 -2.22919,0.90463 -2.61397,1.68695 -2.10577,-0.80988 0.0486,-4.08929 -0.46888,-10.39718 0.32961,-15.79817 0.85269,-5.60328 4.22913,-9.95851 8.70407,-12.14559 4.58031,-2.23858 15.08001,0.31467 15.28215,0.60837 z"
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/secondary/muscle-3.svg b/wger/core/static/react/muscles/secondary/muscle-3.svg
deleted file mode 100644
index a3a054590..000000000
--- a/wger/core/static/react/muscles/secondary/muscle-3.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="362"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="Muscular_system-small.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.4"
- inkscape:cx="216.88503"
- inkscape:cy="225.31721"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="910"
- inkscape:window-height="624"
- inkscape:window-x="248"
- inkscape:window-y="122"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-323.50506)">
- <path
- sodipodi:nodetypes="cssssssscccc"
- inkscape:connector-curvature="0"
- id="path2992"
- d="m 517.82599,424.19421 c -0.48916,0.78934 2.89077,0.99122 2.70983,1.91809 -0.17283,0.88532 -2.52633,2.44538 -2.55228,3.56965 -0.0273,1.18223 2.40506,-0.0843 2.45526,1.13441 0.0477,1.15763 -3.74052,6.13027 -3.69954,7.11544 0.0605,1.45328 4.6749,0.46385 4.5579,2.23717 -0.12135,1.83909 -3.52179,5.11873 -3.42929,6.81101 0.0926,1.6943 1.9109,0.79061 2.63119,1.83626 0.43784,0.63563 -0.48538,3.50418 0.30725,3.75107 2.72142,-4.80332 7.36232,-10.43996 6.94084,-12.65447 -0.16995,-2.23726 1.64472,-16.08653 -0.88932,-18.59985 -2.0865,0.41346 -6.01996,1.94692 -9.03184,2.88122 z"
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none" />
- <path
- sodipodi:nodetypes="cssssssscccc"
- inkscape:connector-curvature="0"
- id="path2992-3"
- d="m 468.06573,428.23907 c 0.48916,0.78934 -4.09033,1.05436 -3.90939,1.98123 0.17283,0.88532 2.96828,3.51866 2.99423,4.64293 0.0273,1.18223 -3.66776,-0.39997 -3.71796,0.81874 -0.0477,1.15763 4.37187,6.95102 4.33089,7.93619 -0.0605,1.45328 -3.28594,-3.00855 -3.16894,-1.23523 0.12135,1.83909 2.4485,5.75008 2.356,7.44236 -0.0926,1.6943 -0.83761,0.15926 -1.5579,1.20491 -0.43784,0.63563 0.48538,3.50418 -0.30725,3.75107 -2.72142,-4.80332 -7.36232,-10.43996 -6.94084,-12.65447 0.16995,-2.23726 -1.64472,-16.08653 0.88932,-18.59985 1.70769,0.666 6.01996,3.77782 9.03184,4.71212 z"
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/secondary/muscle-4.svg b/wger/core/static/react/muscles/secondary/muscle-4.svg
deleted file mode 100644
index d8c1c0c7f..000000000
--- a/wger/core/static/react/muscles/secondary/muscle-4.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="362"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="Muscular_system-small.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.979899"
- inkscape:cx="80.312997"
- inkscape:cy="304.21851"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="910"
- inkscape:window-height="624"
- inkscape:window-x="707"
- inkscape:window-y="45"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-323.50506)">
- <path
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none;display:inline"
- d="m 496.71569,400.4595 c -1.55631,1.52025 -1.10288,3.85607 -1.4211,5.80333 -0.3625,2.35132 -0.80068,4.79415 -0.093,7.12879 0.81079,11.41842 4.2154,10.19708 8.2193,10.89959 12.2635,2.15171 15.18392,0.30379 22.10382,-2.34424 3.55323,-1.35971 6.39202,-3.72964 9.25399,-6.68073 -3.82356,-5.55838 -5.1382,-9.45509 -8.75855,-13.3601 -3.74892,-4.04369 -7.62508,-9.52034 -13.10984,-10.08881 -5.37765,-0.55737 -13.05255,6.83988 -14.60926,7.04537 -0.71523,0.30386 -1.16231,0.98036 -1.58532,1.59676 z"
- id="path2992-9-5"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cccsacaaccc" />
- <path
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none;display:inline"
- d="m 492.21306,400.04042 c 1.55631,1.52025 1.10288,3.85607 1.4211,5.80333 0.3625,2.35132 0.80068,4.79415 0.093,7.12879 -0.81079,11.41842 -4.2154,10.19708 -8.2193,10.89959 -12.2635,2.15171 -15.18392,0.30379 -22.10382,-2.34424 -3.55323,-1.35971 -6.39202,-3.72964 -9.25399,-6.68073 3.82356,-5.55838 5.1382,-9.45509 8.75855,-13.3601 3.74892,-4.04369 7.62508,-9.52034 13.10984,-10.08881 5.37765,-0.55737 13.05255,6.83988 14.60926,7.04537 0.71523,0.30386 1.16231,0.98036 1.58532,1.59676 z"
- id="path2992-9-5-6"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cccsacaaccc" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/secondary/muscle-5.svg b/wger/core/static/react/muscles/secondary/muscle-5.svg
deleted file mode 100644
index 30e1c0ebb..000000000
--- a/wger/core/static/react/muscles/secondary/muscle-5.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369.0256"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_back.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="0.7"
- inkscape:cx="420.23066"
- inkscape:cy="94.1613"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="844"
- inkscape:window-height="577"
- inkscape:window-x="318"
- inkscape:window-y="157"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-54.28571,-335.71932)">
- <path
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none;display:inline"
- d="m 191.55063,438.91472 c -0.3625,2.35132 -0.62211,10.687 0.0856,13.02164 3.8465,9.09699 3.62452,11.21449 7.14787,12.86388 6.10219,2.85662 4.81236,1.08698 6.92525,0.15576 2.05497,-0.9057 4.7139,-2.75842 4.43256,-5.07359 -0.87122,-7.16941 1.00012,-14.25906 -1.07998,-20.8601 -16.47188,-16.75749 -16.00743,-10.16063 -17.51127,-0.10759 z"
- id="path2992-9-5"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccsascc" />
- <path
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none;display:inline"
- d="m 116.92894,439.13084 c 0.3625,2.35132 0.62211,10.687 -0.0856,13.02164 -3.8465,9.09699 -3.62452,11.21449 -7.14787,12.86388 -6.10219,2.85662 -4.81236,1.08698 -6.92525,0.15576 -2.05497,-0.9057 -4.713898,-2.75842 -4.432558,-5.07359 0.87122,-7.16941 -1.00012,-14.25906 1.07998,-20.8601 16.471878,-16.75749 16.007428,-10.16063 17.511268,-0.10759 z"
- id="path2992-9-5-1"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccsascc" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/secondary/muscle-6.svg b/wger/core/static/react/muscles/secondary/muscle-6.svg
deleted file mode 100644
index 401176180..000000000
--- a/wger/core/static/react/muscles/secondary/muscle-6.svg
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_front.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.4"
- inkscape:cx="43.443717"
- inkscape:cy="150.28664"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="910"
- inkscape:window-height="624"
- inkscape:window-x="479"
- inkscape:window-y="100"
- inkscape:window-maximized="0"
- height="524.41px" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-395.71431,-316.50506)">
- <path
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none;display:inline"
- d="m 498.36277,434.58481 c -1.55631,1.52025 -0.13048,3.98753 -0.1711,5.9819 -0.052,2.55449 -0.0434,5.10996 -0.093,7.66451 -0.0875,4.50962 -0.22147,9.01828 -0.36082,13.5266 -0.16948,5.48319 0.15327,9.90598 -0.57803,16.44726 -0.95978,8.58488 -1.33969,19.65754 -0.5009,20.05568 1.58892,0.91978 5.5552,-3.03663 7.45027,-5.46433 1.5127,-1.93786 1.48305,-0.70542 2.78771,-6.82793 0.90275,-4.23642 1.43029,-9.25519 1.67209,-9.72652 0.60636,-1.09903 0.9424,-4.81204 1.38902,-9.40737 0.41377,-4.25735 0.28622,-7.00608 0.23245,-10.50979 -0.092,-5.99405 0.0362,-15.57164 -0.94915,-17.95919 -0.0822,-3.20813 -1.11029,-3.60426 -3.2829,-5.17335 -2.55028,-0.64249 -6.11949,-0.63047 -7.5956,1.39249 z"
- id="path2992-9-5"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="caaascascsacccc" />
- <path
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none;display:inline"
- d="m 490.21813,434.48339 c 1.55631,1.52025 0.13048,3.98753 0.1711,5.9819 0.052,2.55449 0.0434,5.10996 0.093,7.66451 0.0875,4.50962 0.22147,9.01828 0.36082,13.5266 0.16948,5.48319 -0.15327,9.90598 0.57803,16.44726 0.95978,8.58488 1.33969,19.65754 0.5009,20.05568 -1.58892,0.91978 -5.5552,-3.03663 -7.45027,-5.46433 -1.5127,-1.93786 -1.48305,-0.70542 -2.78771,-6.82793 -0.90275,-4.23642 -1.43029,-9.25519 -1.67209,-9.72652 -0.60636,-1.09903 -0.9424,-4.81204 -1.38902,-9.40737 -0.41377,-4.25735 -0.28622,-7.00608 -0.23245,-10.50979 0.092,-5.99405 -0.0362,-15.57164 0.94915,-17.95919 0.0822,-3.20813 1.11029,-3.60426 3.2829,-5.17335 2.55028,-0.64249 6.11949,-0.63047 7.5956,1.39249 z"
- id="path2992-9-5-5"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="caaascascsacccc" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/secondary/muscle-7.svg b/wger/core/static/react/muscles/secondary/muscle-7.svg
deleted file mode 100644
index 3d981c306..000000000
--- a/wger/core/static/react/muscles/secondary/muscle-7.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369.03"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_back.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.4"
- inkscape:cx="187.27864"
- inkscape:cy="81.858086"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="844"
- inkscape:window-height="577"
- inkscape:window-x="484"
- inkscape:window-y="65"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-54.28571,-335.71492)">
- <path
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none;display:inline"
- d="m 157.84649,628.07391 c 0.18417,4.50671 0.628,11.65178 1.91202,17.31467 0.83063,3.6633 2.37474,5.09284 3.71512,10.63888 2.14383,8.8704 -0.81431,29.19307 0.0245,29.59121 1.58892,0.91978 1.82319,-0.28511 2.39951,-0.91864 4.22119,-4.64016 2.74914,-12.29168 5.04025,-18.13123 2.62168,-6.6821 4.96173,-6.44129 9.87964,-19.13389 0.41377,-4.25735 2.33285,-10.64845 2.50529,-16.06563 0.14015,-4.40301 -0.21634,-10.77342 -1.20169,-13.16097 -0.0822,-3.20813 -7.17121,-16.98878 -9.34382,-18.55787 -2.55028,-0.64249 -5.10933,-3.66092 -6.58544,-1.63796 -3.4339,1.48689 -3.36742,1.68575 -4.67162,4.03725 -2.30927,4.16367 -0.88234,14.44818 -3.67374,26.02418 z"
- id="path2992-9-5"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cascaacacccsc" />
- <path
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none;display:inline"
- d="m 151.38626,628.55089 c -0.18417,4.50671 -0.628,11.65178 -1.91202,17.31467 -0.83063,3.6633 -2.37474,5.09284 -3.71512,10.63888 -2.14383,8.8704 0.81431,29.19307 -0.0245,29.59121 -1.58892,0.91978 -1.82319,-0.28511 -2.39951,-0.91864 -4.22119,-4.64016 -2.74914,-12.29168 -5.04025,-18.13123 -2.62168,-6.6821 -4.96173,-6.44129 -9.87964,-19.13389 -0.41377,-4.25735 -2.33285,-10.64845 -2.50529,-16.06563 -0.14015,-4.40301 0.21634,-10.77342 1.20169,-13.16097 0.0822,-3.20813 7.17121,-16.98878 9.34382,-18.55787 2.55028,-0.64249 5.10933,-3.66092 6.58544,-1.63796 3.4339,1.48689 3.36742,1.68575 4.67162,4.03725 2.30927,4.16367 0.88234,14.44818 3.67374,26.02418 z"
- id="path2992-9-5-1"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cascaacacccsc" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/secondary/muscle-8.svg b/wger/core/static/react/muscles/secondary/muscle-8.svg
deleted file mode 100644
index eb0720b36..000000000
--- a/wger/core/static/react/muscles/secondary/muscle-8.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369.03"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscular_system_back.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="2.8"
- inkscape:cx="152.38763"
- inkscape:cy="162.95615"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="844"
- inkscape:window-height="577"
- inkscape:window-x="643"
- inkscape:window-y="68"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-54.28571,-335.71492)">
- <path
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none;display:inline"
- d="m 164.02666,497.12852 c -1.55631,1.52025 -1.56504,4.09871 -2.31396,6.16047 -1.07519,2.95998 -2.07652,5.94628 -3.12871,8.91451 -0.94527,2.6666 -2.81581,5.50344 -2.86083,7.99088 -0.12727,7.03248 5.37882,9.33869 8.71656,12.20652 3.33774,2.86783 6.9498,5.51311 9.32708,7.83922 2.37728,2.32611 6.07419,4.2694 9.30355,7.71468 2.2591,2.41015 4.83843,5.12955 5.17102,9.6188 0.46426,6.26654 -1.41009,15.04789 -0.92068,14.42208 3.2937,-4.21159 5.83554,-31.16875 4.06336,-40.6264 -0.62961,-3.36009 -0.57506,-9.6715 -2.31541,-14.10789 -2.41369,-6.1528 -6.45379,-11.68558 -10.94915,-16.53062 -2.83801,-3.05877 -7.71744,-6.10426 -9.89005,-7.67335 -2.55028,-0.64249 -2.72663,2.0481 -4.20274,4.07106 z"
- id="path2992-9-5"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="caaszzssssaaccc" />
- <path
- style="opacity:0.52424239;fill:#f57900;fill-opacity:1;stroke:none;display:inline"
- d="m 144.10239,497.59374 c 1.55631,1.52025 1.56504,4.09871 2.31396,6.16047 1.07519,2.95998 2.07652,5.94628 3.12871,8.91451 0.94527,2.6666 2.81581,5.50344 2.86083,7.99088 0.12727,7.03248 -5.37882,9.33869 -8.71656,12.20652 -3.33774,2.86783 -6.9498,5.51311 -9.32708,7.83922 -2.37728,2.32611 -6.07419,4.2694 -9.30355,7.71468 -2.2591,2.41015 -4.83843,5.12955 -5.17102,9.6188 -0.46426,6.26654 1.41009,15.04789 0.92068,14.42208 -3.2937,-4.21159 -5.83554,-31.16875 -4.06336,-40.6264 0.62961,-3.36009 0.57506,-9.6715 2.31541,-14.10789 2.41369,-6.1528 6.45379,-11.68558 10.94915,-16.53062 2.83801,-3.05877 7.71744,-6.10426 9.89005,-7.67335 2.55028,-0.64249 2.72663,2.0481 4.20274,4.07106 z"
- id="path2992-9-5-8"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="caaszzssssaaccc" />
- </g>
-</svg>
diff --git a/wger/core/static/react/muscles/secondary/muscle-9.svg b/wger/core/static/react/muscles/secondary/muscle-9.svg
deleted file mode 100644
index 9d27144c8..000000000
--- a/wger/core/static/react/muscles/secondary/muscle-9.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="200"
- height="369.03"
- id="svg2"
- version="1.1"
- inkscape:version="0.48.3.1 r9886"
- sodipodi:docname="muscle-9.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.4"
- inkscape:cx="132.1017"
- inkscape:cy="240.25278"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- inkscape:window-width="844"
- inkscape:window-height="547"
- inkscape:window-x="178"
- inkscape:window-y="24"
- inkscape:window-maximized="0" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title />
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Ebene 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-54.28571,-335.71492)">
- <path
- style="opacity:0.52424238999999995;fill:#f57900;fill-opacity:1;stroke:none;display:inline"
- d="m 133.87398,415.10147 c 3.8465,9.09699 4.87096,25.50048 14.82644,36.25673 -0.0143,-4.0028 1.59476,-25.62206 1.53638,-26.52497 -0.87122,-7.16941 0.64298,-37.65192 -1.43712,-44.25296 -2.73371,-2.7811 -1.12578,-1.74427 -2.21898,-0.14255 -6.90139,10.11167 -15.08205,15.48176 -25.82801,19.49925 6.10446,3.54937 10.82182,8.1217 13.12129,15.1645 z"
- id="path2992-9-5"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccscc" />
- <path
- style="opacity:0.52424238999999995;fill:#f57900;fill-opacity:1;stroke:none;display:inline"
- d="m 176.08582,415.27863 c -3.8465,9.09699 -4.87096,25.50048 -14.82644,36.25673 0.0143,-4.0028 -1.59476,-25.62206 -1.53638,-26.52497 0.87122,-7.16941 -0.64298,-37.65192 1.43712,-44.25296 2.73371,-2.7811 1.12578,-1.74427 2.21898,-0.14255 6.90139,10.11167 15.08205,15.48176 25.82801,19.49925 -6.10446,3.54937 -10.82182,8.1217 -13.12129,15.1645 z"
- id="path2992-9-5-7"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccscc" />
- </g>
-</svg>
diff --git a/wger/core/static/scss/main.scss b/wger/core/static/scss/main.scss
index b972b06a9..bb24642ae 100644
--- a/wger/core/static/scss/main.scss
+++ b/wger/core/static/scss/main.scss
@@ -16,8 +16,8 @@ $wger-green: #307916 !default;
$link-color: $wger-blue-2 !default;
-@import "../yarn/bootstrap/scss/functions";
-@import "../yarn/bootstrap/scss/variables";
+@import "../../../../node_modules/bootstrap/scss/functions";
+@import "../../../../node_modules/bootstrap/scss/variables";
$theme-colors: (
"primary": $wger-blue,
@@ -38,4 +38,4 @@ $enable-responsive-font-sizes: true;
/*
* Import the rest of the bootstrap files
*/
-@import "../yarn/bootstrap/scss/bootstrap";
+@import "../../../../node_modules/bootstrap/scss/bootstrap";
diff --git a/wger/core/templates/template.html b/wger/core/templates/template.html
index ce63c2278..943f75d57 100644
--- a/wger/core/templates/template.html
+++ b/wger/core/templates/template.html
@@ -47,11 +47,10 @@
{% compress css %}
<link rel="stylesheet" type="text/css" href="{% static 'css/workout-manager.css' %}">
- <link rel="stylesheet" type="text/css" href="{% static 'yarn/bootstrap-compiled.css' %}">
+ <link rel="stylesheet" type="text/css" href="{% static 'bootstrap-compiled.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/bootstrap-custom.css' %}">
- <link rel="stylesheet" type="text/css"
- href="{% static 'fontawesomefree/css/all.min.css' %}">
- <link rel="stylesheet" type="text/css" href="{% static 'react/main.css' %}" id="react-css">
+ <link rel="stylesheet" type="text/css" href="{% static 'fontawesomefree/css/all.min.css' %}">
+ <link rel="stylesheet" type="text/css" href="{% static 'node/@wger-project/react-components/build/assets/index.css' %}" id="react-css">
{% endcompress %}
{# this needs to be outside of the compress block! #}
@@ -67,18 +66,18 @@
<link rel="icon" href="{% static 'images/favicon.png' %}" type="image/png">
{% compress js %}
- <script src="{% static 'yarn/jquery/dist/jquery.js' %}"></script>
- <script src="{% static 'yarn/bootstrap/dist/js/bootstrap.bundle.min.js' %}"></script>
- <script src="{% static 'yarn/htmx.org/dist/htmx.min.js' %}"></script>
- <script src="{% static 'yarn/popper.js/dist/umd/popper.js' %}"></script>
- <script src="{% static 'yarn/devbridge-autocomplete/dist/jquery.autocomplete.min.js' %}">
+ <script src="{% static 'node/jquery/dist/jquery.js' %}"></script>
+ <script src="{% static 'node/bootstrap/dist/js/bootstrap.bundle.min.js' %}"></script>
+ <script src="{% static 'node/htmx.org/dist/htmx.min.js' %}"></script>
+ <script src="{% static 'node/popper.js/dist/umd/popper.js' %}"></script>
+ <script src="{% static 'node/devbridge-autocomplete/dist/jquery.autocomplete.min.js' %}">
</script>
- <script src="{% static 'yarn/masonry-layout/dist/masonry.pkgd.min.js' %}"></script>
+ <script src="{% static 'node/masonry-layout/dist/masonry.pkgd.min.js' %}"></script>
<script src="{% static 'js/nutrition.js' %}"></script>
{% endcompress %}
{# this needs to be outside of the compress block! #}
- <script src="{% static 'react/main.js' %}" type="module" defer="defer"></script>
+ <script src="{% static 'node/@wger-project/react-components/build/main.js' %}" type="module" defer="defer"></script>
{% block header %}{% endblock %}
diff --git a/wger/core/templates/template_features.html b/wger/core/templates/template_features.html
index 4b87031d6..b8f268cbf 100644
--- a/wger/core/templates/template_features.html
+++ b/wger/core/templates/template_features.html
@@ -45,16 +45,16 @@
{% compress css %}
- <link rel="stylesheet" type="text/css" href="{% static 'yarn/bootstrap-compiled.css' %}">
- <link rel="stylesheet" type="text/css" href="{% static 'yarn/components-font-awesome/css/all.css' %}">
+ <link rel="stylesheet" type="text/css" href="{% static 'bootstrap-compiled.css' %}">
+ <link rel="stylesheet" type="text/css" href="{% static 'node/components-font-awesome/css/all.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/landing_page.css' %}">
{% endcompress %}
<link rel="icon" href="{% static 'images/favicon.png' %}" type="image/png">
{% compress js %}
- <script src="{% static 'yarn/bootstrap/dist/js/bootstrap.bundle.min.js' %}"></script>
- <script src="{% static 'yarn/popper.js/dist/umd/popper.js' %}"></script>
+ <script src="{% static 'node/bootstrap/dist/js/bootstrap.bundle.min.js' %}"></script>
+ <script src="{% static 'node/popper.js/dist/umd/popper.js' %}"></script>
{% endcompress %}
<title>wger Workout Manager - {% translate "Features" %}</title>
diff --git a/wger/core/templates/template_no_context.html b/wger/core/templates/template_no_context.html
index aa90ca2a5..456dbdc19 100644
--- a/wger/core/templates/template_no_context.html
+++ b/wger/core/templates/template_no_context.html
@@ -24,9 +24,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" type="text/css"
- href="{% static 'yarn/components-font-awesome/css/all.css' %}">
+ href="{% static 'node/components-font-awesome/css/all.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/workout-manager.css' %}">
- <link rel="stylesheet" type="text/css" href="{% static 'yarn/bootstrap-compiled.css' %}">
+ <link rel="stylesheet" type="text/css" href="{% static 'bootstrap-compiled.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/bootstrap-custom.css' %}">
<link rel="icon" href="{% static 'images/favicon.png' %}" type="image/png">
diff --git a/wger/gym/templates/gym/partial_user_list.html b/wger/gym/templates/gym/partial_user_list.html
index cda067710..049fca4ec 100644
--- a/wger/gym/templates/gym/partial_user_list.html
+++ b/wger/gym/templates/gym/partial_user_list.html
@@ -1,8 +1,8 @@
{% load i18n static %}
-<link rel="stylesheet" type="text/css" href="{% static 'yarn/datatables.net-bs5/css/dataTables.bootstrap5.css' %}">
-<script src="{% static 'yarn/datatables.net/js/dataTables.js' %}" ></script>
-<script src="{% static 'yarn/datatables.net-bs5/js/dataTables.bootstrap5.js' %}" ></script>
+<link rel="stylesheet" type="text/css" href="{% static 'node/datatables.net-bs5/css/dataTables.bootstrap5.css' %}">
+<script src="{% static 'node/datatables.net/js/dataTables.js' %}" ></script>
+<script src="{% static 'node/datatables.net-bs5/js/dataTables.bootstrap5.js' %}" ></script>
<script>
$(document).ready(function () {
$('#main_member_list').DataTable({
@@ -17,7 +17,7 @@
});
});
</script>
-
+
<table class="table table-hover table-responsive" id="main_member_list">
diff --git a/wger/settings_global.py b/wger/settings_global.py
index 7b6478e21..bbe41cc37 100644
--- a/wger/settings_global.py
+++ b/wger/settings_global.py
@@ -199,6 +199,14 @@ STATICFILES_FINDERS = (
'compressor.finders.CompressorFinder',
)
+# Additional places to copy to static files
+# TODO: only copy needed packages!
+STATICFILES_DIRS = (
+ ('node', os.path.join(BASE_DIR, '..', 'node_modules')),
+)
+
+print(STATICFILES_DIRS)
+
#
# Email
#
diff --git a/yarn.lock b/yarn.lock
deleted file mode 100644
index 34280b807..000000000
--- a/yarn.lock
+++ /dev/null
@@ -1,145 +0,0 @@
-# This file is generated by running "yarn install" inside your project.
-# Manual changes might be lost - proceed with caution!
-
-__metadata:
- version: 8
- cacheKey: 10c0
-
-"@popperjs/core@npm:^2.11.8":
- version: 2.11.8
- resolution: "@popperjs/core@npm:2.11.8"
- checksum: 10c0/4681e682abc006d25eb380d0cf3efc7557043f53b6aea7a5057d0d1e7df849a00e281cd8ea79c902a35a414d7919621fc2ba293ecec05f413598e0b23d5a1e63
- languageName: node
- linkType: hard
-
-"bootstrap@npm:5.3.8":
- version: 5.3.8
- resolution: "bootstrap@npm:5.3.8"
- peerDependencies:
- "@popperjs/core": ^2.11.8
- checksum: 10c0/0039a9df2c3e7bfa04f1abca199c299ff3b75869d578c0cb1721c6f1f203c91531788a5631ecbee01513481979314d0e4ba0d90c2011e6ce18fc2e0bc93e18d9
- languageName: node
- linkType: hard
-
-"components-font-awesome@npm:5.9.0":
- version: 5.9.0
- resolution: "components-font-awesome@npm:5.9.0"
- checksum: 10c0/f2db52e788844bdb1bbf0eebc8f4ef233c04fb52e64b2ce3f6871922f43708379518cf0aa5c599b895633d063c6d8f44ea687a06f82f7be522ee081c31480536
- languageName: node
- linkType: hard
-
-"datatables.net-bs5@npm:^2.3.4":
- version: 2.3.4
- resolution: "datatables.net-bs5@npm:2.3.4"
- dependencies:
- datatables.net: "npm:2.3.4"
- jquery: "npm:>=1.7"
- checksum: 10c0/27dab5a78fd98aed45fadd40f2b5da551663a8292cdc90384135dfdf99cb1397758b54b0d1934389fb04768fa00ca66be4cc1aca079c3bb13f6265b3c91716fa
- languageName: node
- linkType: hard
-
-"datatables.net@npm:2.3.4":
- version: 2.3.4
- resolution: "datatables.net@npm:2.3.4"
- dependencies:
- jquery: "npm:>=1.7"
- checksum: 10c0/8683653cf1aacb50cc637c799f73bc91e477ccbf49ec99859e991034ba43c8e01b9c5a245fadcb0d10cbba9dca69989a5a36e886212fb4c62d53cd6e38081287
- languageName: node
- linkType: hard
-
-"desandro-matches-selector@npm:^2.0.0":
- version: 2.0.2
- resolution: "desandro-matches-selector@npm:2.0.2"
- checksum: 10c0/f4b1f42e6ccd6c97e93e3f99a64461eef2722075b03d8a9e349e31766436f8b385d1fd50802b024dae951dc69399f13de20a139c1187000fd5e2fcf11cb5eb00
- languageName: node
- linkType: hard
-
-"devbridge-autocomplete@npm:^1.5.0":
- version: 1.5.0
- resolution: "devbridge-autocomplete@npm:1.5.0"
- peerDependencies:
- jquery: ">=1.9"
- checksum: 10c0/c675e0ede93df2a3f78e1229c8608f75dc28b540b267d8aeaf299a618bcbb376946b8dd8b7e253c0eea2cf2f32003ffd5d7bf6fe9432d627e582d6144e38669e
- languageName: node
- linkType: hard
-
-"ev-emitter@npm:^1.0.0":
- version: 1.1.1
- resolution: "ev-emitter@npm:1.1.1"
- checksum: 10c0/332dcb444de2b1d81035fb22a10dd33926311baa7ea6fc24f1de7b60c6eff5b7e133611000fce740471f0c8f95259d3914d49b4201af2d85a51f0aeb8cb1ceda
- languageName: node
- linkType: hard
-
-"fizzy-ui-utils@npm:^2.0.0":
- version: 2.0.7
- resolution: "fizzy-ui-utils@npm:2.0.7"
- dependencies:
- desandro-matches-selector: "npm:^2.0.0"
- checksum: 10c0/4c36d45db4e2e0cf1507aa9633af6710a12bdc047146fa89505e10aedc5bfb16cbfb0da686d5dfd89a37e1da4bce86bbee365e22be88705ab4ffccd530b4902a
- languageName: node
- linkType: hard
-
-"get-size@npm:^2.0.2":
- version: 2.0.3
- resolution: "get-size@npm:2.0.3"
- checksum: 10c0/c9703caa61b4d38385eab34aa5068f3a25ab40f6d9cda6dac3f0dc4dcd8da38f7b0283035e71c9f52a47b670b9315372cae46f58d66ad709a4939e57c1fdc6cc
- languageName: node
- linkType: hard
-
-"htmx.org@npm:^2.0.7":
- version: 2.0.7
- resolution: "htmx.org@npm:2.0.7"
- checksum: 10c0/3b97e78cd28619574f34ab58d92aae201219cc02826292c535711c17768b7d9f05a4107192ea575651bc60d95a32afa084520d416696b4402beb95dfa715ac16
- languageName: node
- linkType: hard
-
-"jquery@npm:>=1.7, jquery@npm:^3.7.1":
- version: 3.7.1
- resolution: "jquery@npm:3.7.1"
- checksum: 10c0/808cfbfb758438560224bf26e17fcd5afc7419170230c810dd11f5c1792e2263e2970cca8d659eb84fcd9acc301edb6d310096e450277d54be4f57071b0c82d9
- languageName: node
- linkType: hard
-
-"masonry-layout@npm:^4.2.2":
- version: 4.2.2
- resolution: "masonry-layout@npm:4.2.2"
- dependencies:
- get-size: "npm:^2.0.2"
- outlayer: "npm:^2.1.0"
- checksum: 10c0/991044cf7c22acbbb1135690314d68f9f237ef17315494c9dd25ed00fa0c526a8eb27d6bcf99a141a9d049bd62c5c251f66f9c8a4c201ca9c0944d8e44c0f09f
- languageName: node
- linkType: hard
-
-"outlayer@npm:^2.1.0":
- version: 2.1.1
- resolution: "outlayer@npm:2.1.1"
- dependencies:
- ev-emitter: "npm:^1.0.0"
- fizzy-ui-utils: "npm:^2.0.0"
- get-size: "npm:^2.0.2"
- checksum: 10c0/863f5568e16833d11d048a760ddd92395a9e1e49b51b669d863ff4ffda4cf8f6d91ebb2c4c20e26ca30175cb295f8f436075772a56c7e17ae40d3f095d449a53
- languageName: node
- linkType: hard
-
-"popper.js@npm:^1.16.1":
- version: 1.16.1
- resolution: "popper.js@npm:1.16.1"
- checksum: 10c0/1c1a826f757edb5b8c2049dfd7a9febf6ae1e9d0e51342fc715b49a0c1020fced250d26484619883651e097c5764bbcacd2f31496e3646027f079dd83e072681
- languageName: node
- linkType: hard
-
-"wger@workspace:.":
- version: 0.0.0-use.local
- resolution: "wger@workspace:."
- dependencies:
- "@popperjs/core": "npm:^2.11.8"
- bootstrap: "npm:5.3.8"
- components-font-awesome: "npm:5.9.0"
- datatables.net-bs5: "npm:^2.3.4"
- devbridge-autocomplete: "npm:^1.5.0"
- htmx.org: "npm:^2.0.7"
- jquery: "npm:^3.7.1"
- masonry-layout: "npm:^4.2.2"
- popper.js: "npm:^1.16.1"
- languageName: unknown
- linkType: soft